2022-07-12 10:55:28 +02:00
|
|
|
export const orugaConfig = {
|
|
|
|
iconPack: "",
|
|
|
|
iconComponent: "material-icon",
|
|
|
|
statusIcon: true,
|
|
|
|
button: {
|
|
|
|
rootClass: "btn",
|
2024-02-09 15:00:45 +01:00
|
|
|
variantClass: (variant: string) => {
|
|
|
|
return `btn-${variant}`;
|
|
|
|
},
|
2022-07-12 10:55:28 +02:00
|
|
|
roundedClass: "btn-rounded",
|
2024-02-09 15:00:45 +01:00
|
|
|
outlinedClass: (variant: string) => {
|
|
|
|
return `btn-outlined-${variant}`;
|
|
|
|
},
|
2022-07-12 10:55:28 +02:00
|
|
|
disabledClass: "btn-disabled",
|
2024-02-09 15:00:45 +01:00
|
|
|
sizeClass: (size: string) => {
|
|
|
|
return `"btn-size-${size}`;
|
|
|
|
},
|
2022-07-12 10:55:28 +02:00
|
|
|
},
|
|
|
|
field: {
|
|
|
|
rootClass: "field",
|
|
|
|
labelClass: "field-label",
|
|
|
|
messageClass: "text-sm italic",
|
2024-02-09 15:00:45 +01:00
|
|
|
variantMessageClass: (variant: string) => {
|
|
|
|
return `field-message-${variant}`;
|
|
|
|
},
|
2022-07-12 10:55:28 +02:00
|
|
|
},
|
|
|
|
input: {
|
|
|
|
inputClass: "input",
|
|
|
|
roundedClass: "rounded",
|
2024-02-09 15:00:45 +01:00
|
|
|
variantClass: (variant: string) => {
|
|
|
|
return `input-${variant}`;
|
|
|
|
},
|
2022-07-12 10:55:28 +02:00
|
|
|
iconRightClass: "input-icon-right",
|
2024-02-09 15:00:45 +01:00
|
|
|
sizeClass: (size: string) => {
|
|
|
|
return `input-size-${size}`;
|
|
|
|
},
|
2022-07-12 10:55:28 +02:00
|
|
|
},
|
2023-12-14 10:50:38 +01:00
|
|
|
taginput: {
|
|
|
|
itemClass: "taginput-item",
|
|
|
|
rootClass: "taginput",
|
2024-01-09 17:20:53 +01:00
|
|
|
containerClass: "taginput-container",
|
2024-02-08 11:25:34 +01:00
|
|
|
expandedClass: "taginput-expanded",
|
2024-01-05 15:18:18 +01:00
|
|
|
autocompleteClasses: {
|
|
|
|
rootClass: "taginput-autocomplete",
|
2024-02-08 11:25:34 +01:00
|
|
|
itemClass: "taginput-autocomplete-item",
|
2024-01-05 15:18:18 +01:00
|
|
|
inputClasses: {
|
2024-01-05 17:37:23 +01:00
|
|
|
rootClass: "taginput-input-wrapper",
|
2024-01-05 15:18:18 +01:00
|
|
|
inputClass: "taginput-input",
|
|
|
|
},
|
|
|
|
},
|
2022-07-12 10:55:28 +02:00
|
|
|
},
|
|
|
|
autocomplete: {
|
2023-12-14 10:50:38 +01:00
|
|
|
rootClass: "autocomplete",
|
2022-07-12 10:55:28 +02:00
|
|
|
itemClass: "autocomplete-item",
|
2023-12-14 10:50:38 +01:00
|
|
|
itemGroupTitleClass: "autocomplete-item-group-title",
|
2022-07-12 10:55:28 +02:00
|
|
|
},
|
|
|
|
icon: {
|
2024-02-09 15:00:45 +01:00
|
|
|
variantClass: (variant: string) => {
|
|
|
|
return `icon-${variant}`;
|
|
|
|
},
|
2022-07-12 10:55:28 +02:00
|
|
|
},
|
|
|
|
checkbox: {
|
2023-11-20 09:35:21 +01:00
|
|
|
rootClass: "checkbox",
|
2023-12-14 10:50:38 +01:00
|
|
|
inputClass: "checkbox-check",
|
|
|
|
inputCheckedClass: "checkbox-checked",
|
2022-07-12 10:55:28 +02:00
|
|
|
labelClass: "checkbox-label",
|
|
|
|
},
|
|
|
|
dropdown: {
|
|
|
|
rootClass: "dropdown",
|
|
|
|
menuClass: "dropdown-menu",
|
|
|
|
itemClass: "dropdown-item",
|
|
|
|
itemActiveClass: "dropdown-item-active",
|
|
|
|
},
|
|
|
|
steps: {
|
|
|
|
itemHeaderActiveClass: "steps-nav-item-active",
|
|
|
|
itemHeaderPreviousClass: "steps-nav-item-previous",
|
|
|
|
stepMarkerClass: "step-marker",
|
|
|
|
stepDividerClass: "step-divider",
|
|
|
|
},
|
|
|
|
datepicker: {
|
|
|
|
iconNext: "ChevronRight",
|
|
|
|
iconPrev: "ChevronLeft",
|
2024-01-05 15:18:18 +01:00
|
|
|
boxClass: "datepicker-box",
|
2022-07-12 10:55:28 +02:00
|
|
|
},
|
|
|
|
modal: {
|
|
|
|
rootClass: "modal",
|
|
|
|
contentClass: "modal-content",
|
|
|
|
},
|
|
|
|
switch: {
|
|
|
|
labelClass: "switch-label",
|
2023-12-14 10:50:38 +01:00
|
|
|
switchCheckedClass: "switch-check-checked",
|
2022-07-12 10:55:28 +02:00
|
|
|
},
|
|
|
|
select: {
|
|
|
|
selectClass: "select",
|
|
|
|
},
|
|
|
|
radio: {
|
2023-12-14 10:50:38 +01:00
|
|
|
rootClass: "radio",
|
|
|
|
inputCheckedClass: "radio-checked",
|
|
|
|
inputClass: "form-radio",
|
2022-07-12 10:55:28 +02:00
|
|
|
labelClass: "radio-label",
|
|
|
|
},
|
|
|
|
notification: {
|
|
|
|
rootClass: "notification",
|
2024-02-09 15:00:45 +01:00
|
|
|
variantClass: (variant: string) => {
|
|
|
|
return `notification-${variant}`;
|
|
|
|
},
|
2022-07-12 10:55:28 +02:00
|
|
|
},
|
|
|
|
table: {
|
|
|
|
tableClass: "table",
|
|
|
|
tdClass: "table-td",
|
2022-08-26 16:08:58 +02:00
|
|
|
thClass: "table-th",
|
|
|
|
rootClass: "table-root",
|
2022-07-12 10:55:28 +02:00
|
|
|
},
|
2022-08-22 12:12:09 +02:00
|
|
|
pagination: {
|
|
|
|
rootClass: "pagination",
|
|
|
|
simpleClass: "pagination-simple",
|
|
|
|
listClass: "pagination-list",
|
|
|
|
infoClass: "pagination-info",
|
|
|
|
linkClass: "pagination-link",
|
|
|
|
linkCurrentClass: "pagination-link-current",
|
|
|
|
linkDisabledClass: "pagination-link-disabled",
|
2023-12-14 10:50:38 +01:00
|
|
|
nextButtonClass: "pagination-next",
|
|
|
|
prevButtonClass: "pagination-previous",
|
2022-08-22 12:12:09 +02:00
|
|
|
ellipsisClass: "pagination-ellipsis",
|
|
|
|
},
|
|
|
|
tabs: {
|
|
|
|
rootClass: "tabs",
|
|
|
|
navTabsClass: "tabs-nav",
|
2024-02-09 15:00:45 +01:00
|
|
|
navTypeClass: (type: string) => {
|
|
|
|
return `tabs-nav-${type}`;
|
|
|
|
},
|
|
|
|
navSizeClass: (size: string) => {
|
|
|
|
return `tabs-nav-${size}`;
|
|
|
|
},
|
2023-12-14 10:50:38 +01:00
|
|
|
itemWrapperClass: "tabs-nav-item-wrapper",
|
2024-02-09 15:00:45 +01:00
|
|
|
itemHeaderTypeClass: (type: string) => {
|
|
|
|
return `tabs-nav-item-${type}`;
|
|
|
|
},
|
|
|
|
itemHeaderActiveClass: "tabs-nav-item-active",
|
2022-08-22 12:12:09 +02:00
|
|
|
},
|
2022-08-26 16:08:58 +02:00
|
|
|
tooltip: {
|
|
|
|
rootClass: "tooltip",
|
|
|
|
contentClass: "tooltip-content",
|
|
|
|
arrowClass: "tooltip-arrow",
|
2024-02-09 15:00:45 +01:00
|
|
|
variantClass: (variant: string) => {
|
|
|
|
return `tooltip-content-${variant}`;
|
|
|
|
},
|
2022-08-26 16:08:58 +02:00
|
|
|
},
|
2022-07-12 10:55:28 +02:00
|
|
|
};
|