@sula-tech/webcomponents 0.20.1 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs.js +7 -3
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{sula-avatar_31.cjs.entry.js → sula-avatar_32.cjs.entry.js} +411 -81
- package/dist/cjs/sula-avatar_32.cjs.entry.js.map +1 -0
- package/dist/cjs/{sula-menu.model-BDxbWyPG.js → sula-calendar.model-BI5cNrUo.js} +8 -2
- package/dist/cjs/sula-calendar.model-BI5cNrUo.js.map +1 -0
- package/dist/cjs/sula-toast-stack.cjs.entry.js +4 -4
- package/dist/cjs/sula-toast.cjs.entry.js +2 -2
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/sula-calendar/model/sula-calendar.model.js +6 -0
- package/dist/collection/components/sula-calendar/model/sula-calendar.model.js.map +1 -0
- package/dist/collection/components/sula-calendar/sula-calendar.css +1 -0
- package/dist/collection/components/sula-calendar/sula-calendar.js +747 -0
- package/dist/collection/components/sula-calendar/sula-calendar.js.map +1 -0
- package/dist/collection/components/sula-calendar/sula-calendar.stories.js +273 -0
- package/dist/collection/components/sula-calendar/sula-calendar.stories.js.map +1 -0
- package/dist/collection/components/sula-checkbox/sula-checkbox.js +3 -3
- package/dist/collection/components/sula-chip/sula-chip.js +3 -3
- package/dist/collection/components/sula-dropdown/sula-dropdown.js +3 -3
- package/dist/collection/components/sula-icon/sula-icon.css +1 -1
- package/dist/collection/components/sula-icon/sula-icon.js +1 -1
- package/dist/collection/components/sula-icon-picker/sula-icon-picker.js +2 -2
- package/dist/collection/components/sula-loader/sula-loader.js +1 -1
- package/dist/collection/components/sula-menu/sula-menu.js +8 -8
- package/dist/collection/components/sula-menu-select-list/sula-menu-select-list.js +1 -1
- package/dist/collection/components/sula-progress-bar/sula-progress-bar.js +2 -2
- package/dist/collection/components/sula-radio-button/sula-radio-button.js +2 -2
- package/dist/collection/components/sula-search-bar/sula-search-bar.js +2 -2
- package/dist/collection/components/sula-segmented-control/sula-segmented-control.js +1 -1
- package/dist/collection/components/sula-switch/sula-switch.js +4 -4
- package/dist/collection/components/sula-table/sula-table.js +3 -3
- package/dist/collection/components/sula-table-body/sula-table-body.js +1 -1
- package/dist/collection/components/sula-table-cell/sula-table-cell.js +2 -2
- package/dist/collection/components/sula-table-head-cell/sula-table-head-cell.js +2 -2
- package/dist/collection/components/sula-table-header/sula-table-header.js +1 -1
- package/dist/collection/components/sula-table-row/sula-table-row.js +1 -1
- package/dist/collection/components/sula-tag/sula-tag.js +3 -3
- package/dist/collection/components/sula-textarea/sula-textarea.js +6 -6
- package/dist/collection/components/sula-textfield/sula-textfield.css +1 -1
- package/dist/collection/components/sula-textfield/sula-textfield.js +27 -3
- package/dist/collection/components/sula-textfield/sula-textfield.js.map +1 -1
- package/dist/collection/components/sula-textfield/sula-textfield.stories.js +9 -0
- package/dist/collection/components/sula-textfield/sula-textfield.stories.js.map +1 -1
- package/dist/collection/components/sula-tiles/sula-tiles.js +1 -1
- package/dist/collection/components/sula-timeline-list/sula-timeline-list.js +1 -1
- package/dist/collection/components/sula-toast/sula-toast.js +2 -2
- package/dist/collection/components/sula-toast-stack/sula-toast-stack.js +4 -4
- package/dist/collection/components/sula-toggle/sula-toggle.js +1 -1
- package/dist/collection/components/sula-tooltip/sula-tooltip.js +1 -1
- package/dist/collection/index.js +1 -0
- package/dist/collection/index.js.map +1 -1
- package/dist/components/index.js +1 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/{p-DmQoJS86.js → p-B_NGmHsm.js} +5 -5
- package/dist/components/{p-DmQoJS86.js.map → p-B_NGmHsm.js.map} +1 -1
- package/dist/components/{p-D0ZAC0yK.js → p-BjgwRn5o.js} +7 -7
- package/dist/components/{p-D0ZAC0yK.js.map → p-BjgwRn5o.js.map} +1 -1
- package/dist/components/{p-DGfvh6dZ.js → p-BlH9b-mx.js} +4 -4
- package/dist/components/{p-DGfvh6dZ.js.map → p-BlH9b-mx.js.map} +1 -1
- package/dist/components/p-Cp_4qTxj.js +10 -0
- package/dist/components/p-Cp_4qTxj.js.map +1 -0
- package/dist/components/{p-DqRqPukj.js → p-DaG0HavP.js} +4 -4
- package/dist/components/{p-DqRqPukj.js.map → p-DaG0HavP.js.map} +1 -1
- package/dist/components/{p-b7t6bSNa.js → p-DtVQ10Ux.js} +4 -4
- package/dist/components/{p-b7t6bSNa.js.map → p-DtVQ10Ux.js.map} +1 -1
- package/dist/components/{p-CJ2i2jVV.js → p-VozP-C7p.js} +5 -5
- package/dist/components/{p-CJ2i2jVV.js.map → p-VozP-C7p.js.map} +1 -1
- package/dist/components/{p-DmCNhtp_.js → p-rCU8ay8s.js} +3 -3
- package/dist/components/{p-DmCNhtp_.js.map → p-rCU8ay8s.js.map} +1 -1
- package/dist/components/p-rm8YKiRh.js +555 -0
- package/dist/components/p-rm8YKiRh.js.map +1 -0
- package/dist/components/sula-avatar.js +1 -1
- package/dist/components/sula-badge.js +1 -1
- package/dist/components/sula-breadcrumb.js +1 -1
- package/dist/components/sula-button.js +1 -1
- package/dist/components/sula-calendar.d.ts +11 -0
- package/dist/components/sula-calendar.js +385 -0
- package/dist/components/sula-calendar.js.map +1 -0
- package/dist/components/sula-checkbox.js +4 -4
- package/dist/components/sula-chip.js +5 -5
- package/dist/components/sula-dropdown.js +1 -1
- package/dist/components/sula-icon-picker.js +6 -6
- package/dist/components/sula-icon.js +1 -1
- package/dist/components/sula-loader.js +1 -1
- package/dist/components/sula-menu-select-list.js +1 -1
- package/dist/components/sula-menu.js +9 -9
- package/dist/components/sula-modal.js +3 -3
- package/dist/components/sula-progress-bar.js +3 -3
- package/dist/components/sula-radio-button.js +2 -2
- package/dist/components/sula-search-bar.js +1 -1
- package/dist/components/sula-segmented-control.js +2 -2
- package/dist/components/sula-switch.js +4 -4
- package/dist/components/sula-table-body.js +1 -1
- package/dist/components/sula-table-cell.js +2 -2
- package/dist/components/sula-table-head-cell.js +2 -2
- package/dist/components/sula-table-header.js +1 -1
- package/dist/components/sula-table-row.js +1 -1
- package/dist/components/sula-table.js +3 -3
- package/dist/components/sula-tag.js +4 -4
- package/dist/components/sula-textarea.js +6 -6
- package/dist/components/sula-textfield.js +1 -545
- package/dist/components/sula-textfield.js.map +1 -1
- package/dist/components/sula-tiles.js +2 -2
- package/dist/components/sula-timeline-list.js +2 -2
- package/dist/components/sula-toast-stack.js +6 -6
- package/dist/components/sula-toast.js +1 -1
- package/dist/components/sula-toggle.js +2 -2
- package/dist/components/sula-tooltip.js +2 -2
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{sula-avatar_31.entry.js → sula-avatar_32.entry.js} +405 -76
- package/dist/esm/sula-avatar_32.entry.js.map +1 -0
- package/dist/esm/{sula-menu.model-Cs9RR1ZV.js → sula-calendar.model-BbsLJDfp.js} +9 -3
- package/dist/esm/sula-calendar.model-BbsLJDfp.js.map +1 -0
- package/dist/esm/sula-toast-stack.entry.js +4 -4
- package/dist/esm/sula-toast.entry.js +2 -2
- package/dist/esm/webcomponents.js +1 -1
- package/dist/types/components/sula-calendar/model/sula-calendar.model.d.ts +28 -0
- package/dist/types/components/sula-calendar/sula-calendar.d.ts +128 -0
- package/dist/types/components/sula-calendar/sula-calendar.stories.d.ts +159 -0
- package/dist/types/components/sula-textfield/sula-textfield.d.ts +4 -0
- package/dist/types/components/sula-textfield/sula-textfield.stories.d.ts +8 -0
- package/dist/types/components.d.ts +199 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/webcomponents/index.esm.js +1 -1
- package/dist/webcomponents/{p-f4ef50ea.entry.js → p-0004eff8.entry.js} +790 -366
- package/dist/webcomponents/p-0004eff8.entry.js.map +1 -0
- package/dist/webcomponents/{p-170854a5.entry.js → p-9a8a1133.entry.js} +16 -16
- package/dist/webcomponents/{p-Cs9RR1ZV.js → p-BbsLJDfp.js} +11 -4
- package/dist/webcomponents/p-BbsLJDfp.js.map +1 -0
- package/dist/webcomponents/{p-c58125e1.entry.js → p-aafb83bd.entry.js} +6 -6
- package/dist/webcomponents/webcomponents.esm.js +46 -23
- package/package.json +1 -1
- package/dist/cjs/sula-avatar_31.cjs.entry.js.map +0 -1
- package/dist/cjs/sula-menu.model-BDxbWyPG.js.map +0 -1
- package/dist/esm/sula-avatar_31.entry.js.map +0 -1
- package/dist/esm/sula-menu.model-Cs9RR1ZV.js.map +0 -1
- package/dist/webcomponents/p-Cs9RR1ZV.js.map +0 -1
- package/dist/webcomponents/p-f4ef50ea.entry.js.map +0 -1
- /package/dist/webcomponents/{p-170854a5.entry.js.map → p-9a8a1133.entry.js.map} +0 -0
- /package/dist/webcomponents/{p-c58125e1.entry.js.map → p-aafb83bd.entry.js.map} +0 -0
|
@@ -7,7 +7,7 @@ export class SulaIcon {
|
|
|
7
7
|
this.customClass = '';
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return (h(Host, { key: '
|
|
10
|
+
return (h(Host, { key: '6cacc01af5a40b143eafa5544dee1b91ba5c7afb' }, h("i", { key: 'eaf53c23b299bcf71c239b1ce29eed32639b4d7e', class: `${this.icon} ${this.customClass} sula-icon` })));
|
|
11
11
|
}
|
|
12
12
|
static get is() { return "sula-icon"; }
|
|
13
13
|
static get originalStyleUrls() {
|
|
@@ -100,13 +100,13 @@ export class SulaIconPicker {
|
|
|
100
100
|
? { id: this.selectedIcon.className, title: this.selectedIcon.name, icon: this.selectedIcon.className }
|
|
101
101
|
: undefined;
|
|
102
102
|
const dropdownLabel = this.required && this.label ? `${this.label} *` : this.label;
|
|
103
|
-
return (h(Host, { key: '
|
|
103
|
+
return (h(Host, { key: '5a2c244adc8dc6fd220998c9f65a5cf42259c75f' }, h("div", { key: 'fd96ca2b1a0bc5c63051a23034ae4e190e0d2c24', class: "relative" }, h("sula-dropdown", { key: '58f30a933398eb4ee07c1362d7d8593f6b22e58c', ref: el => (this.dropdownEl = el), label: dropdownLabel, disabled: this.disabled, hasError: !!this.error, customContent: true, contentMaxHeight: this.menuMaxHeight, value: dropdownValue, onDropdownClicked: this.handleDropdownClicked, onDropdownFocused: this.handleDropdownFocused, onDropdownFocusedOut: this.handleDropdownFocusedOut }, this.showSearch && (h("div", { key: '057722c36ff1e396d82a09fd57a48363d9bb9b09', class: "border-b border-line-general bg-surface-body p-16", onClick: this.handleContentClick }, h("sula-search-bar", { key: '10bc23d96dad42d8efe09d29e5fc806dca4e6648', value: this.searchTerm, placeholder: this.searchPlaceholder, onValueChanged: this.handleSearchChange }))), h("div", { key: 'e32bf78b5d7812f4342d55eee8a449bf92f4df5f', class: "overflow-y-auto", role: "listbox", onClick: this.handleContentClick }, filteredIcons.length > 0 ? (h("div", { class: "grid gap-12 p-16", style: { gridTemplateColumns: 'repeat(auto-fill, minmax(56px, 56px))' } }, filteredIcons.map(icon => {
|
|
104
104
|
var _a, _b, _c;
|
|
105
105
|
return (h("button", { key: icon.name, type: "button", onClick: () => this.handleSelectIcon(icon), class: {
|
|
106
106
|
'flex h-56 w-56 items-center justify-center rounded-sm border-2 border-line-general transition-all hover:border-brand-primary hover:bg-surface-on-body-brand': true,
|
|
107
107
|
'border-brand-primary bg-surface-on-body-brand': ((_a = this.selectedIcon) === null || _a === void 0 ? void 0 : _a.name) === icon.name,
|
|
108
108
|
}, "aria-label": `Selecionar ícone ${icon.name}`, "aria-selected": ((_b = this.selectedIcon) === null || _b === void 0 ? void 0 : _b.name) === icon.name ? 'true' : 'false', role: "option" }, h("sula-icon", { icon: icon.className, customClass: `text-2xl ${((_c = this.selectedIcon) === null || _c === void 0 ? void 0 : _c.name) === icon.name ? 'text-brand-primary' : 'text-icon-primary'}` })));
|
|
109
|
-
}))) : (h("div", { class: "p-32 text-center" }, h("span", { class: "text-base-paragraph-medium-regular text-text-tertiary" }, "Nenhum \u00EDcone encontrado"))))), this.error && (h("span", { key: '
|
|
109
|
+
}))) : (h("div", { class: "p-32 text-center" }, h("span", { class: "text-base-paragraph-medium-regular text-text-tertiary" }, "Nenhum \u00EDcone encontrado"))))), this.error && (h("span", { key: 'f7dc8d804a1b660b24c8c1c8b47f4b5511cfa319', class: "text-base-label-small-regular text-feedback-error mt-8 block", role: "alert" }, this.error)))));
|
|
110
110
|
}
|
|
111
111
|
static get is() { return "sula-icon-picker"; }
|
|
112
112
|
static get encapsulation() { return "shadow"; }
|
|
@@ -60,7 +60,7 @@ export class SulaLoader {
|
|
|
60
60
|
}
|
|
61
61
|
render() {
|
|
62
62
|
const { width, height } = this.getDimensions();
|
|
63
|
-
return (h(Host, { key: '
|
|
63
|
+
return (h(Host, { key: 'f77601977c9c96a230e3023b39de27ca403c4941' }, h("div", { key: '07d53ada7a121d96dab1b0fd8f7c7df495003da7', ref: el => (this.containerRef = el), style: {
|
|
64
64
|
width: width,
|
|
65
65
|
height: height,
|
|
66
66
|
} })));
|
|
@@ -298,24 +298,24 @@ export class SulaMenu {
|
|
|
298
298
|
}
|
|
299
299
|
render() {
|
|
300
300
|
const expandedView = !this.collapsed || this.previewExpanded;
|
|
301
|
-
return (h(Host, { key: '
|
|
301
|
+
return (h(Host, { key: '12aa38778852562834f6d30b3090b97143251514', class: {
|
|
302
302
|
'menu-host--collapsed': this.collapsed,
|
|
303
303
|
'menu-host--density-compact': this.density === SulaMenuDensity.Compact,
|
|
304
304
|
'menu-host--density-comfortable': this.density === SulaMenuDensity.Comfortable,
|
|
305
|
-
}, style: this.hostStyleVariables }, h("aside", { key: '
|
|
305
|
+
}, style: this.hostStyleVariables }, h("aside", { key: '6a990f913ca867498e3b5a7ba5daac0721c96c34', part: "shell", onMouseEnter: () => this.handleMenuMouseEnter(), onMouseLeave: () => this.handleMenuMouseLeave(), class: {
|
|
306
306
|
'menu-shell flex h-full flex-col bg-surface-body py-16 pt-12 shadow-md z-50': true,
|
|
307
307
|
'menu-shell--collapsed': this.collapsed && !this.previewExpanded,
|
|
308
308
|
'menu-shell--expanded': expandedView,
|
|
309
309
|
'menu-shell--preview': this.collapsed && this.previewExpanded,
|
|
310
|
-
} }, h("div", { key: '
|
|
310
|
+
} }, h("div", { key: '4325ec041b61b724df0e20d42bb7d507c563102b', class: {
|
|
311
311
|
'menu-header flex items-center pb-12': true,
|
|
312
312
|
'mb-3 px-7': expandedView,
|
|
313
313
|
'mb-0 justify-center px-0': !expandedView,
|
|
314
|
-
} }, this.image && (h("div", { key: '
|
|
314
|
+
} }, this.image && (h("div", { key: '1dd5dba04d19df0d0d556e5ad2c794df1e42a137', class: { 'menu-brand-image max-h-10 max-w-10 overflow-hidden': true, 'mr-6': expandedView } }, h("img", { key: 'd3431d836dcee0c9af25e595b0308a06662d1c34', src: this.image, alt: this.menuTitle }))), h("div", { key: '27013d62670dd2b5d1ce4f01d6b19bc8b91102fc', "aria-hidden": !expandedView, title: expandedView ? this.menuTitle : undefined, class: {
|
|
315
315
|
'menu-title menu-copy': true,
|
|
316
316
|
'menu-copy--visible': expandedView,
|
|
317
317
|
'menu-copy--hidden': !expandedView,
|
|
318
|
-
} }, h("h1", { key: '
|
|
318
|
+
} }, h("h1", { key: 'b510dc74292e7809d4f089d5e0a5edc5a0681339', part: "title", class: "truncate text-xl font-semibold leading-tight text-text-primary" }, this.menuTitle))), h("nav", { key: '817fe1b58ba7f0872c39cb39efad5e4cbde2757b', class: {
|
|
319
319
|
'menu-nav flex h-full flex-col overflow-y-auto overflow-x-hidden pb-16': true,
|
|
320
320
|
'px-20': expandedView,
|
|
321
321
|
'px-12': !expandedView,
|
|
@@ -348,15 +348,15 @@ export class SulaMenu {
|
|
|
348
348
|
'menu-item-caret--visible': expandedView,
|
|
349
349
|
'menu-item-caret--hidden': !expandedView,
|
|
350
350
|
}, icon: "ph ph-caret-down", customClass: this.getCaretIconClass(item) }))), itemHasChildren && (h("ul", { "aria-hidden": !expandedView || !item.expanded, class: { 'submenu': true, 'submenu--expanded': expandedView && !!item.expanded, 'ml-[1.6rem] border-l border-line-general': true } }, this.renderSubmenuItems(item, expandedView)))));
|
|
351
|
-
})), h("div", { key: '
|
|
351
|
+
})), h("div", { key: '158feec60843a951a2f1ed7065edb6ab04af13e2', class: {
|
|
352
352
|
'menu-toggle-wrapper pb-16': true,
|
|
353
353
|
'px-20': expandedView,
|
|
354
354
|
'px-12': !expandedView,
|
|
355
|
-
} }, h("button", { key: '
|
|
355
|
+
} }, h("button", { key: '18956fc2aed75ed4b13985d2805c4f9615a68e33', type: "button", class: {
|
|
356
356
|
'menu-toggle flex w-full cursor-pointer items-center rounded-xs p-8 hover:bg-box-shadow-body': true,
|
|
357
357
|
'justify-start': expandedView,
|
|
358
358
|
'justify-center': !expandedView,
|
|
359
|
-
}, title: this.collapsed ? 'Fixar menu' : 'Ocultar menu', onClick: () => this.toggleMenu() }, h("div", { key: '
|
|
359
|
+
}, title: this.collapsed ? 'Fixar menu' : 'Ocultar menu', onClick: () => this.toggleMenu() }, h("div", { key: 'df6ff603abcaf3fb23e31699590ec566b39818e9', class: "menu-toggle-icon flex h-10 w-10 items-center justify-center rounded-full border border-line-general bg-surface-body" }, h("sula-icon", { key: '6b01bd52f802d2291802679ac56bc1017b8d0cef', icon: `ph ph-arrow-${this.collapsed ? 'right' : 'left'}`, customClass: "text-text-secondary text-xl" })), h("span", { key: 'd662bac6f8e2fd811a91af3513cf61c05840c303', part: "toggle-label", "aria-hidden": !expandedView, class: {
|
|
360
360
|
'menu-toggle-label menu-copy text-base text-text-secondary': true,
|
|
361
361
|
'menu-copy--visible': expandedView,
|
|
362
362
|
'menu-copy--hidden': !expandedView,
|
|
@@ -18,7 +18,7 @@ export class SulaMenuSelectList {
|
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
|
-
return (h(Host, { key: '
|
|
21
|
+
return (h(Host, { key: '5f7f26fa8513470373f9cd3d429fc700af8a70c6' }, h("ul", { key: 'e1331b63ab26101d0941838a64c86a527842efcd', class: {
|
|
22
22
|
'bg-surface-body border border-line-general sula-menu-select-list rounded-sm py-12 overflow-auto': true,
|
|
23
23
|
'w-300': !this.fullWidth,
|
|
24
24
|
'w-full': this.fullWidth,
|
|
@@ -53,10 +53,10 @@ export class SulaProgressBar {
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
render() {
|
|
56
|
-
return (h(Host, { key: '
|
|
56
|
+
return (h(Host, { key: '4687f382c8ece70212ac86842a0300192f61ce61' }, h("div", { key: 'f93c2d0064b5be621740059047555aef9254e974', class: "flex flex-col w-full space-y-8" }, h("div", { key: '1cfd6fb923fd4a6216f1f0bb8696e3637ebeef7e', class: "flex justify-between items-center" }, h("label", { key: 'e0e48018d3ccf7da34611298d72d4daf7c90226c', class: "text-sm text-text-secondary leading-[14px]" }, this.topLabel), this.getProgressBarStateElement()), h("div", { key: '691331d0512e57de6d5ebf084393c7d48c99ab8b', style: { width: `${this.progress}%` }, class: {
|
|
57
57
|
'h-12 rounded-xxl': true,
|
|
58
58
|
[this.getProgressBarStyle()]: true,
|
|
59
|
-
} }), h("label", { key: '
|
|
59
|
+
} }), h("label", { key: '45964d2c60ae4d97572ffe25e7642e274123e0a7', class: "text-sm text-text-secondary leading-[14px]" }, this.bottomLabel))));
|
|
60
60
|
}
|
|
61
61
|
static get is() { return "sula-progress-bar"; }
|
|
62
62
|
static get encapsulation() { return "shadow"; }
|
|
@@ -34,14 +34,14 @@ export class SulaRadioButton {
|
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
36
|
render() {
|
|
37
|
-
return (h(Host, { key: '
|
|
37
|
+
return (h(Host, { key: '7a304d036ffbddc1ac6eab35214d3aa209c52e42' }, h("div", { key: '2231ebc8b13a1675ec72250d27710c72962e66ba', class: { 'w-fit': true, 'flex items-center': !!this.label }, onClick: this.handleClick }, h("div", { key: '6b41f5c42b5dbae6c7f53af3068ae57b2b305804', class: {
|
|
38
38
|
'min-w-[30px] min-h-[30px] rounded-full flex justify-center items-center outline-none': true,
|
|
39
39
|
'active:bg-states-empty-bg-pressed cursor-pointer': !this.disabled,
|
|
40
40
|
'bg-brand-primary': this.checked,
|
|
41
41
|
'border border-line-input': !this.checked,
|
|
42
42
|
'container-focus': this.radioIsFocus,
|
|
43
43
|
'bg-states-bg-disabled border-2 border-states-bg-disabled cursor-not-allowed': this.disabled,
|
|
44
|
-
}, tabIndex: 0, onFocus: this.handleFocus, onBlur: this.handleFocusOut }, this.checked && h("div", { key: '
|
|
44
|
+
}, tabIndex: 0, onFocus: this.handleFocus, onBlur: this.handleFocusOut }, this.checked && h("div", { key: '7663ea3f28465d9e85a3c4735a20fe954c2179fe', class: "bg-transparent border-2 border-negative-negative-1 w-[18px] h-[18px] rounded-full" })), this.label && h("label", { key: '5f4eb7bd6c94803fd509407d09c5dd15b76edcd7', class: { 'ml-16 text-base text-text-primary': true, 'cursor-pointer': !this.disabled } }, this.label))));
|
|
45
45
|
}
|
|
46
46
|
static get is() { return "sula-radio-button"; }
|
|
47
47
|
static get encapsulation() { return "shadow"; }
|
|
@@ -43,11 +43,11 @@ export class SulaSearchBar {
|
|
|
43
43
|
return style[this.searchBarStyle];
|
|
44
44
|
}
|
|
45
45
|
render() {
|
|
46
|
-
return (h(Host, { key: '
|
|
46
|
+
return (h(Host, { key: 'd35e244367359a79d06ca0a84246d07ce50d0782' }, h("div", { key: '38dd57227497f2547232f03983b42e51fd04a4b3', class: {
|
|
47
47
|
'flex flex-row items-center space-x-12 px-16 rounded-xxl h-44 caret-brand-primary outline-none group': true,
|
|
48
48
|
[this.getStyleClass()]: true,
|
|
49
49
|
'search-bar-focus': this.isFocused,
|
|
50
|
-
}, tabIndex: 0, onFocus: this.handleInputFocus, onClick: this.handleInputFocus }, !this.isFocused && this.leftIcon && (h("div", { key: '
|
|
50
|
+
}, tabIndex: 0, onFocus: this.handleInputFocus, onClick: this.handleInputFocus }, !this.isFocused && this.leftIcon && (h("div", { key: '0390957221f4db1beb46d51faf712b6cc7694109', class: "flex justify-center items-center leading-6" }, h("sula-icon", { key: 'a4184312e120c5be78ba4929f273dd96c30d657c', icon: this.leftIcon, customClass: "text-2xl text-icon-primary group-hover:text-brand-primary" }))), h("input", { key: '08d3be2ccca739ad7306f5ee9583c2196f68ec70', ref: node => (this.inputElement = node), type: "text", class: "outline-none border-none w-full bg-transparent text-text-primary", placeholder: this.placeholder, onBlur: this.handleInputBlur, value: this.value, onInput: this.handleValueChanges }), this.rightIcon && (h("div", { key: '1239392abda66a20031e949afe109dfe555d2155', class: "flex justify-center items-center leading-6 cursor-pointer", onClick: this.handleRightIconClick, onMouseDown: e => e.preventDefault() }, h("sula-icon", { key: 'df4bde8b4b3702c8a3ac6298ca056f0513ce00b9', icon: this.rightIcon, customClass: "text-2xl text-icon-primary" }))))));
|
|
51
51
|
}
|
|
52
52
|
static get is() { return "sula-search-bar"; }
|
|
53
53
|
static get encapsulation() { return "shadow"; }
|
|
@@ -36,7 +36,7 @@ export class SulaSegmentedControl {
|
|
|
36
36
|
return item.selected ? 'text-brand-primary' : 'text-text-primary';
|
|
37
37
|
}
|
|
38
38
|
render() {
|
|
39
|
-
return (h(Host, { key: '
|
|
39
|
+
return (h(Host, { key: 'e4d257cbdefcae292ace48939622ac2b6c86808d' }, h("div", { key: '831495bf8af249b2d0ded6fa457cf76c1020a1fa', class: {
|
|
40
40
|
'flex flex-row items-center rounded-xxl p-2 w-fit backdrop-blur-[20px]': true,
|
|
41
41
|
'bg-opacity-on-body': this.color === SulaSegmentedControlColor.Gray,
|
|
42
42
|
'bg-opacity-body': this.color === SulaSegmentedControlColor.White,
|
|
@@ -40,7 +40,7 @@ export class SulaSwitch {
|
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
42
|
render() {
|
|
43
|
-
return (h(Host, { key: '
|
|
43
|
+
return (h(Host, { key: '03ac13764a97e343c005d0b6ad86aedd63d3fcc0' }, h("div", { key: 'ddca75645b49d3b965011eb36e57a6eeaece645f', class: {
|
|
44
44
|
'outline-none': true,
|
|
45
45
|
'flex items-center space-x-12': !!this.label && this.type === SulaSwitchType.Default,
|
|
46
46
|
'flex items-center justify-between bg-surface-on-body rounded-md min-h-[85px] px-24 py-16': this.type === SulaSwitchType.List,
|
|
@@ -48,17 +48,17 @@ export class SulaSwitch {
|
|
|
48
48
|
'w-[280px]': this.type === SulaSwitchType.List && !this.responsive,
|
|
49
49
|
'hover:bg-states-empty-bg-hover active:bg-states-empty-bg-pressed cursor-pointer': this.type === SulaSwitchType.List && !this.disabled,
|
|
50
50
|
'container-focus': this.isFocus && this.type === SulaSwitchType.List,
|
|
51
|
-
}, onFocus: this.handleFocus, onBlur: this.handleBlur, onClick: this.handleClick, tabIndex: 0 }, this.type === SulaSwitchType.List && (h("div", { key: '
|
|
51
|
+
}, onFocus: this.handleFocus, onBlur: this.handleBlur, onClick: this.handleClick, tabIndex: 0 }, this.type === SulaSwitchType.List && (h("div", { key: 'e15ca8ec7506497d574a76b523ce5c4fd6def934', class: "flex flex-col flex-1 mr-16 overflow-hidden" }, !!this.label && h("label", { key: '2bcd6af3688e18d597b39db6ee2eb4355a3c0377', class: "text-text-primary font-bold text-base cursor-pointer break-words" }, this.label), !!this.subTitle && h("span", { key: '7433a736246106dddfff92f681c274d2ea6d6938', class: "text-text-secondary text-base break-words" }, this.subTitle))), h("div", { key: 'cfe3186e0a7409a0cfe2092f0cca822eecf45727', class: {
|
|
52
52
|
'switch-container w-56 h-32 flex items-center rounded-xxl p-2 outline-none': true,
|
|
53
53
|
'switch-on bg-brand-primary justify-end': this.active,
|
|
54
54
|
'switch-off bg-neutral-neutral-3 justify-start': !this.active,
|
|
55
55
|
'cursor-not-allowed bg-states-bg-disabled': this.disabled,
|
|
56
56
|
'switch-focus': this.isFocus && this.type === SulaSwitchType.Default,
|
|
57
|
-
}, tabIndex: 0, onFocus: this.handleFocus, onBlur: this.handleBlur }, h("div", { key: '
|
|
57
|
+
}, tabIndex: 0, onFocus: this.handleFocus, onBlur: this.handleBlur }, h("div", { key: '411f40ad8ad8b6395ea24a076f88602342126cfc', class: {
|
|
58
58
|
'switch-thumb w-[28px] h-[28px] rounded-full flex justify-center items-center': true,
|
|
59
59
|
'bg-negative-negative-1': !this.disabled,
|
|
60
60
|
'bg-states-bg-disabled shadow-md': this.disabled,
|
|
61
|
-
} }, h("div", { key: '
|
|
61
|
+
} }, h("div", { key: 'ee793fac1da4897922c413dc253b66b47bebaec2', class: {
|
|
62
62
|
'switch-indicator rounded-full': true,
|
|
63
63
|
'switch-indicator-on w-12 h-12 bg-brand-primary': this.active,
|
|
64
64
|
'switch-indicator-off w-[10px] h-4 bg-neutral-neutral-4': !this.active,
|
|
@@ -16,15 +16,15 @@ export class SulaTable {
|
|
|
16
16
|
this.fullWidth = true;
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
return (h(Host, { key: '
|
|
19
|
+
return (h(Host, { key: 'c4c85f0a00f5848a5ceeee0fa975b98dd8aaca10', class: {
|
|
20
20
|
'block max-w-full overflow-x-auto': true,
|
|
21
|
-
} }, h("table", { key: '
|
|
21
|
+
} }, h("table", { key: '429f48bb7125d0623a0896e2ffd64b5096bf3dcc', class: {
|
|
22
22
|
'w-full': this.fullWidth && this.equalWidth,
|
|
23
23
|
'w-max': !this.equalWidth,
|
|
24
24
|
'min-w-full': this.fullWidth && !this.equalWidth,
|
|
25
25
|
'table-fixed': this.equalWidth,
|
|
26
26
|
'border-collapse border-spacing-0 box-border': true,
|
|
27
|
-
} }, h("slot", { key: '
|
|
27
|
+
} }, h("slot", { key: '8887f401133f605293b98b0408e3b605270fcaad' }))));
|
|
28
28
|
}
|
|
29
29
|
static get is() { return "sula-table"; }
|
|
30
30
|
static get originalStyleUrls() {
|
|
@@ -5,7 +5,7 @@ export class SulaTableBody {
|
|
|
5
5
|
replaceHostWithRenderedElement(this.host, 'tbody');
|
|
6
6
|
}
|
|
7
7
|
render() {
|
|
8
|
-
return (h(Host, { key: '
|
|
8
|
+
return (h(Host, { key: 'b9f5648337032d4e589e940439a0099f1d43cffa' }, h("tbody", { key: 'b7cdcb725274bd440f9561aada4c7aac517de710' }, h("slot", { key: '02978fec755b66e807c8b8c57d8da66ba348a45d' }))));
|
|
9
9
|
}
|
|
10
10
|
static get is() { return "sula-table-body"; }
|
|
11
11
|
static get originalStyleUrls() {
|
|
@@ -10,13 +10,13 @@ export class SulaTableCell {
|
|
|
10
10
|
replaceHostWithRenderedElement(this.host, 'td');
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return (h(Host, { key: '
|
|
13
|
+
return (h(Host, { key: '347aabb92b3ae336b47c092b4836a9683abdb945' }, h("td", { key: 'abe8e1a42e60ca0314f2bccedaf51953d6e3efe6', class: "align-middle text-left border-b border-dashed border-line-general" }, h("div", { key: '5fb52f18fea375e0db464b1a81194ae2a5f5d53f', class: {
|
|
14
14
|
'px-16 py-4 w-full flex flex-col justify-center items-start box-border text-label-medium-regular text-text-secondary': true,
|
|
15
15
|
'min-h-56': this.tableDensity === SulaTableDensity.Compact,
|
|
16
16
|
'min-h-60': this.tableDensity === SulaTableDensity.Default,
|
|
17
17
|
'min-h-64': this.tableDensity === SulaTableDensity.Spaced,
|
|
18
18
|
'min-h-72': this.tableDensity === SulaTableDensity.Confortable,
|
|
19
|
-
} }, h("slot", { key: '
|
|
19
|
+
} }, h("slot", { key: 'fce54db787004cec755f69f9eabd1931ed27f7cf' })))));
|
|
20
20
|
}
|
|
21
21
|
static get is() { return "sula-table-cell"; }
|
|
22
22
|
static get originalStyleUrls() {
|
|
@@ -10,13 +10,13 @@ export class SulaTableHeadCell {
|
|
|
10
10
|
replaceHostWithRenderedElement(this.host, 'th');
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return (h(Host, { key: '
|
|
13
|
+
return (h(Host, { key: '41e5f68802c240cd1e691e3df61066d585117122' }, h("th", { key: '42907dc4d92bb3f70ad1a2c88e2580a3c07b8bc5', scope: "col", class: "align-middle text-left border-b border-line-general" }, h("div", { key: '482ebc9be886ea48becf0f72035c26ec694ff8c8', class: {
|
|
14
14
|
'px-16 py-4 w-full flex justify-start items-center box-border text-label-small-bold text-text-secondary': true,
|
|
15
15
|
'min-h-40': this.tableDensity === SulaTableDensity.Compact,
|
|
16
16
|
'min-h-44': this.tableDensity === SulaTableDensity.Default,
|
|
17
17
|
'min-h-48': this.tableDensity === SulaTableDensity.Spaced,
|
|
18
18
|
'min-h-56': this.tableDensity === SulaTableDensity.Confortable,
|
|
19
|
-
} }, h("slot", { key: '
|
|
19
|
+
} }, h("slot", { key: '328c07d328409e3e6c571ada4e36ede8609d38f4' })))));
|
|
20
20
|
}
|
|
21
21
|
static get is() { return "sula-table-head-cell"; }
|
|
22
22
|
static get originalStyleUrls() {
|
|
@@ -5,7 +5,7 @@ export class SulaTableHeader {
|
|
|
5
5
|
replaceHostWithRenderedElement(this.host, 'thead');
|
|
6
6
|
}
|
|
7
7
|
render() {
|
|
8
|
-
return (h(Host, { key: '
|
|
8
|
+
return (h(Host, { key: '9b60e1345817d85150547d9f6a8c4aea18fecf35' }, h("thead", { key: 'e1280134d0f2efa76aaada715771a9d3cb59c2cb' }, h("slot", { key: '9014c8901806203c448b8a263b39da14541ee4c2' }))));
|
|
9
9
|
}
|
|
10
10
|
static get is() { return "sula-table-header"; }
|
|
11
11
|
static get originalStyleUrls() {
|
|
@@ -5,7 +5,7 @@ export class SulaTableRow {
|
|
|
5
5
|
replaceHostWithRenderedElement(this.host, 'tr');
|
|
6
6
|
}
|
|
7
7
|
render() {
|
|
8
|
-
return (h(Host, { key: '
|
|
8
|
+
return (h(Host, { key: '2f3bfac0df53bdac8f2bcd85b09719da7cef4f1d' }, h("tr", { key: '5b4a56ae49d512bcbe0ff49c878fcbe2cfde6386' }, h("slot", { key: '7bc654792d9375c53f000e4fb9b370e16b3bed19' }))));
|
|
9
9
|
}
|
|
10
10
|
static get is() { return "sula-table-row"; }
|
|
11
11
|
static get originalStyleUrls() {
|
|
@@ -72,14 +72,14 @@ export class SulaTag {
|
|
|
72
72
|
return iconStatusStyles[this.iconStatus];
|
|
73
73
|
}
|
|
74
74
|
render() {
|
|
75
|
-
return (h(Host, { key: '
|
|
75
|
+
return (h(Host, { key: 'a2b77019aff1c066579e1b7aef2a95fba5039b71' }, h("div", { key: '63ff50af0b9ad7fe808d7d57865fe6febd855d94', class: {
|
|
76
76
|
'flex items-center rounded-xxl w-fit': true,
|
|
77
77
|
[this.getSizeClass()]: true,
|
|
78
78
|
[this.getAppearanceClass()]: true,
|
|
79
|
-
} }, this.icon && (h("div", { key: '
|
|
79
|
+
} }, this.icon && (h("div", { key: 'a7f85beae1c42d19fe6b03ba4bba5b64b1b8e076', class: {
|
|
80
80
|
'flex justify-center items-center mr-8 rounded-full leading-4 px-2 py-1': true,
|
|
81
81
|
[this.getIconStatusClass()]: true,
|
|
82
|
-
} }, h("sula-icon", { key: '
|
|
82
|
+
} }, h("sula-icon", { key: '4f2059c35afb8e6b0a51d54acac9b85988883e0c', icon: this.icon, "custom-class": "text-base text-negative-negative-1 leading-4" }))), h("span", { key: '6ec9221c71bab0fb9aa60b4e0bc70d1c681030a6', class: {
|
|
83
83
|
'text-base leading-4': true,
|
|
84
84
|
[this.getTextColorClass()]: true,
|
|
85
85
|
[this.getTextWeightClass()]: true,
|
|
@@ -124,32 +124,32 @@ export class SulaTextarea {
|
|
|
124
124
|
}
|
|
125
125
|
render() {
|
|
126
126
|
const containerHeight = this.rows * 24 + 48;
|
|
127
|
-
return (h(Host, { key: '
|
|
127
|
+
return (h(Host, { key: '69414124a1d0d623de74dd294f5a7c12d03be510', ref: node => (this.node = node) }, h("div", { key: 'd7aed61f535cb6a78200f03d276acc2d698c4ca0' }, h("div", { key: '1eb5db4d428026b4e81349e6d414681b854175ee', id: "textarea-container", class: {
|
|
128
128
|
'relative border rounded-sm px-16 py-12 outline-none caret-brand-primary': true,
|
|
129
129
|
'textarea-focus': this.textareaIsFocused && !this.disabled && this.status === SulaTextareaStatus.Default,
|
|
130
130
|
'textarea-error': this.status === SulaTextareaStatus.Error && !this.disabled,
|
|
131
131
|
'bg-states-bg-disabled border-line-general cursor-not-allowed': this.disabled,
|
|
132
132
|
'bg-surface-body border-line-input cursor-text': !this.disabled,
|
|
133
|
-
}, style: { height: `${containerHeight}px` }, tabIndex: 0, onFocus: this.handleFocus, onClick: this.handleTextareaClick }, h("label", { key: '
|
|
133
|
+
}, style: { height: `${containerHeight}px` }, tabIndex: 0, onFocus: this.handleFocus, onClick: this.handleTextareaClick }, h("label", { key: '2bb9278a3114114c869940be38c0c3887f539a45', class: {
|
|
134
134
|
'text-base top-16 left-12 absolute transition-all duration-200 ease-in-out pointer-events-none z-10 w-[85%]': true,
|
|
135
135
|
'text-text-primary': !this.disabled && (this.isActive || this.status === SulaTextareaStatus.Default),
|
|
136
136
|
'text-text-disabled': this.disabled,
|
|
137
137
|
'bg-surface-body': !this.disabled && this.isActive,
|
|
138
|
-
}, ref: node => (this.labelElement = node) }, this.label), h("label", { key: '
|
|
138
|
+
}, ref: node => (this.labelElement = node) }, this.label), h("label", { key: 'c3904b5cb4b240d963b295d8cb21525d3335aafb', class: {
|
|
139
139
|
'absolute font-bold transition-all duration-200 ease-in-out pointer-events-none z-10 active-label hidden from-down': true,
|
|
140
140
|
'text-sm top-12 left-16': this.isActive,
|
|
141
141
|
'text-text-primary': !this.disabled && (this.isActive || this.status === SulaTextareaStatus.Default),
|
|
142
142
|
'text-text-disabled': this.disabled,
|
|
143
143
|
'bg-surface-body': !this.disabled && this.isActive,
|
|
144
|
-
}, ref: node => (this.activeLabelElement = node) }, this.label), h("textarea", { key: '
|
|
144
|
+
}, ref: node => (this.activeLabelElement = node) }, this.label), h("textarea", { key: '23b6a8c876b771decfb7c89df727cd6a23c34a20', ref: node => (this.textareaElement = node), placeholder: this.isActive ? this.placeholder : '', rows: this.rows, maxLength: this.maxLength, disabled: this.disabled, class: {
|
|
145
145
|
'w-full h-full outline-none text-base bg-transparent border-none resize-none': true,
|
|
146
146
|
'text-text-primary': !this.disabled,
|
|
147
147
|
'text-text-disabled cursor-not-allowed overflow-hidden': this.disabled,
|
|
148
|
-
}, style: { paddingTop: this.isActive ? `${this.labelPadding}px` : '0' }, onInput: this.handleTextareaChanges, onFocus: this.handleTextareaFocus, onBlur: this.handleBlur, value: this.textValue })), (this.helpText || this.maxLength) && (h("div", { key: '
|
|
148
|
+
}, style: { paddingTop: this.isActive ? `${this.labelPadding}px` : '0' }, onInput: this.handleTextareaChanges, onFocus: this.handleTextareaFocus, onBlur: this.handleBlur, value: this.textValue })), (this.helpText || this.maxLength) && (h("div", { key: '2fc851e5b752a0745be44c2caa50d7cd3bfeb1bb', class: "flex justify-between items-center px-16 mt-4 text-sm" }, this.helpText && (h("div", { key: 'd3a91b547841b7de10dded53bcace7789a9f5ba5', id: "textarea-help-text", class: {
|
|
149
149
|
'text-text-primary': this.status === SulaTextareaStatus.Default && !this.disabled,
|
|
150
150
|
'text-feedback-error': this.status === SulaTextareaStatus.Error && !this.disabled,
|
|
151
151
|
'text-text-disabled': this.disabled,
|
|
152
|
-
} }, this.helpText)), this.maxLength && (h("div", { key: '
|
|
152
|
+
} }, this.helpText)), this.maxLength && (h("div", { key: '3c6df29600df35826cfd75aad2cef9b55ef1ac17', id: "max-length-container", class: {
|
|
153
153
|
'text-text-primary': this.status === SulaTextareaStatus.Default && !this.disabled,
|
|
154
154
|
'text-feedback-error': this.status === SulaTextareaStatus.Error && !this.disabled,
|
|
155
155
|
'text-text-disabled': this.disabled,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
*,:after,:before{--tw-ring-color:rgba(59,130,246,.5);--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(147,197,253,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: ;border:0 solid #e5e7eb;box-sizing:border-box}::backdrop{--tw-ring-color:rgba(59,130,246,.5);--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(147,197,253,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;tab-size:4}body{font-family:Figtree;line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.block{display:block}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.outline{outline-style:solid}:host,:host button,:host input,:host option,:host select,:host textarea{font-family:Figtree,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}:host{display:block}.button-focus{outline:2px solid var(--color-feedback-informational)!important;outline-offset:2px!important}.button-error{outline:2px solid var(--color-feedback-error)!important;outline-offset:2px!important}.from-down{animation:from-down .2s ease-in-out}.from-up{animation:from-up .2s ease-in-out}@keyframes from-down{0%{opacity:0;transform:translateY(75%)}to{opacity:1;transform:translateY(0)}}@keyframes from-up{0%{opacity:0;transform:translateY(-75%)}to{opacity:1;transform:translateY(0)}}@font-face{font-display:swap;font-family:Figtree;font-style:normal;font-weight:300;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-Light.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:italic;font-weight:300;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-LightItalic.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:normal;font-weight:400;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-Regular.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:italic;font-weight:400;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-Italic.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:normal;font-weight:500;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-Medium.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:italic;font-weight:500;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-MediumItalic.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:normal;font-weight:600;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-SemiBold.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:italic;font-weight:600;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-SemiBoldItalic.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:normal;font-weight:700;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-Bold.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:italic;font-weight:700;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-BoldItalic.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:normal;font-weight:800;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-ExtraBold.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:italic;font-weight:800;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-ExtraBoldItalic.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:normal;font-weight:900;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-Black.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:italic;font-weight:900;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-BlackItalic.ttf) format("truetype")}:root{--color-green-50:#f1f9f4;--color-green-100:#e6f4ed;--color-green-200:#cae7d8;--color-green-300:#a0d4b8;--color-green-400:#68bb8e;--color-green-500:#04843f;--color-green-600:#037236;--color-green-700:#03632f;--color-green-800:#035428;--color-green-900:#024521;--color-green-950:#012b15;--color-red-50:#fef6f6;--color-red-100:#fde8e8;--color-red-200:#fad1d1;--color-red-300:#f7abab;--color-red-400:#f17474;--color-red-500:#c80505;--color-red-600:#b30404;--color-red-700:#9f0404;--color-red-800:#860303;--color-red-900:#6d0303;--color-red-950:#330d00;--color-yellow-50:#fdf4e7;--color-yellow-100:#fcedd9;--color-yellow-200:#fae0bd;--color-yellow-300:#f6c788;--color-yellow-400:#f3b159;--color-yellow-500:#ef9928;--color-yellow-600:#e49226;--color-yellow-700:#d17e10;--color-yellow-800:#b46d0e;--color-yellow-900:#93590b;--color-yellow-950:#402705;--color-orange-50:#fef4f1;--color-orange-100:#fde8e2;--color-orange-200:#fbd2c6;--color-orange-300:#f8b4a0;--color-orange-400:#f58e70;--color-orange-500:#f05223;--color-orange-600:#ea4210;--color-orange-700:#d23b0e;--color-orange-800:#b5330c;--color-orange-900:#942a0a;--color-orange-950:#401204;--color-blue-50:#ecf0f9;--color-blue-100:#dde3f4;--color-blue-200:#b2c2e5;--color-blue-300:#7994d2;--color-blue-400:#4066bf;--color-blue-500:#001e64;--color-blue-600:#001c5c;--color-blue-700:#00174c;--color-blue-800:#00123d;--color-blue-900:#000f33;--color-blue-950:#000d2b;--color-ambar-50:#fff6eb;--color-ambar-100:#ffefdc;--color-ambar-200:#fedfb9;--color-ambar-300:#fdca8b;--color-ambar-400:#fdb359;--color-ambar-500:#fc9c26;--color-ambar-600:#ec8403;--color-ambar-700:#d87803;--color-ambar-800:#ba6803;--color-ambar-900:#975402;--color-ambar-950:#402301;--color-gray-50:#fff;--color-gray-100:#f3f4f4;--color-gray-200:#e5e6e6;--color-gray-300:#bfc0c0;--color-gray-400:#acaeae;--color-gray-500:#949595;--color-gray-600:#737575;--color-gray-700:#6c6e6e;--color-gray-800:#313333;--color-gray-900:#272929;--color-gray-950:#191d1d;--color-white-opacity-50:#ffffff0d;--color-white-opacity-100:#ffffff1a;--color-white-opacity-200:#ffffff26;--color-white-opacity-300:#ffffff45;--color-white-opacity-400:#ffffff5c;--color-white-opacity-500:#ffffff80;--color-white-opacity-600:#ffffff8c;--color-white-opacity-700:#ffffffa3;--color-white-opacity-800:#ffffffba;--color-white-opacity-900:#fffc;--color-white-opacity-950:#ffffffe8;--color-ciano-50:#f1f6fe;--color-ciano-100:#dfeafc;--color-ciano-200:#c3d9f9;--color-ciano-300:#90b9f4;--color-ciano-400:#5d98ee;--color-ciano-500:#1769e0;--color-ciano-600:#155fcb;--color-ciano-700:#1355b4;--color-ciano-800:#104899;--color-ciano-900:#0d3b7d;--color-ciano-950:#071e40;--color-extra-color-blue-light:#e7f0f4;--color-extra-color-blue-dark:#162931;--color-black-opacity-50:rgba(25,29,29,.02);--color-black-opacity-100:rgba(25,29,29,.05);--color-black-opacity-200:rgba(25,29,29,.11);--color-black-opacity-300:rgba(25,29,29,.28);--color-black-opacity-400:rgba(25,29,29,.36);--color-black-opacity-500:rgba(25,29,29,.44);--color-black-opacity-600:rgba(25,29,29,.62);--color-black-opacity-700:rgba(25,29,29,.64);--color-black-opacity-800:rgba(25,29,29,.72);--color-black-opacity-900:rgba(25,29,29,.8);--color-black-opacity-950:rgba(25,29,29,.96);--color-shadow-opacity-50:rgba(0,0,0,.04);--color-shadow-opacity-100:rgba(0,0,0,.06);--color-shadow-opacity-200:rgba(0,0,0,.12);--color-shadow-opacity-300:rgba(0,0,0,.2);--color-shadow-opacity-400:rgba(0,0,0,.32);--color-shadow-opacity-500:rgba(0,0,0,.5);--color-shadow-opacity-600:rgba(0,0,0,.55);--color-shadow-opacity-700:rgba(0,0,0,.64);--color-shadow-opacity-800:rgba(0,0,0,.73);--color-shadow-opacity-900:rgba(0,0,0,.8);--color-shadow-opacity-950:rgba(0,0,0,.91);--color-feedback-success:#04843f;--color-feedback-error:#c80505;--color-feedback-informational:#1355b4;--color-feedback-alert:#ef9928;--color-brand-primary:#f05223;--color-brand-secondary:#001c5c;--color-brand-tertiary-1:#1769e0;--color-brand-tertiary-2:#fc9c26;--color-surface-body:#fff;--color-surface-on-body:#f3f4f4;--color-surface-on-body-blue:#e7f0f4;--color-surface-on-body-brand:#fff6eb;--color-surface-on-body-feedback-success:#e6f4ed;--color-surface-on-body-feedback-error:#fde8e8;--color-surface-on-body-feedback-alert:#fdf4e7;--color-surface-on-body-feedback-info:#dfeafc;--color-text-brand:#f05223;--color-text-primary:#313333;--color-text-secondary:#6c6e6e;--color-text-disabled:#949595;--color-text-link:#1355b4;--color-states-empty-bg-hover:rgba(25,29,29,.05);--color-states-empty-bg-pressed:rgba(25,29,29,.11);--color-states-bg-disabled:rgba(25,29,29,.02);--color-states-bg-focus:#1355b4;--color-states-primary-hover:#ea4210;--color-states-primary-pressed:#d23b0e;--color-states-danger-hover:#b30404;--color-states-danger-pressed:#9f0404;--color-states-negative-hover:#e5e6e6;--color-states-negative-pressed:#bfc0c0;--color-icon-primary:#6c6e6e;--color-icon-secondary:#fff;--color-icon-tertiary:#b30404;--color-icon-disabled:#acaeae;--color-neutral-neutral-1:#fff;--color-neutral-neutral-2:#f3f4f4;--color-neutral-neutral-3:#acaeae;--color-neutral-neutral-4:#949595;--color-neutral-neutral-5:#737575;--color-neutral-neutral-6:#6c6e6e;--color-neutral-neutral-7:#313333;--color-neutral-neutral-8:#272929;--color-negative-negative-1:#fff;--color-negative-negative-2:#313333;--color-opacity-body:#fffc;--color-opacity-on-body:rgba(25,29,29,.02);--color-opacity-overlay:rgba(25,29,29,.62);--color-opacity-on-overlay:#ffffff1a;--color-opacity-toast:#ffffff45;--color-line-input:#949595;--color-line-general-strong:#bfc0c0;--color-line-general:#e5e6e6;--color-line-hair:rgba(25,29,29,.05);--color-box-shadow-body:#fff;--color-box-shadow-shadow-color-1:rgba(0,0,0,.04);--color-box-shadow-shadow-color-2:rgba(0,0,0,.06)}.static{position:static}.mt-4{margin-top:.25rem}.flex{display:flex}.hidden{display:none}.h-\[72px\]{height:72px}.w-full{width:100%}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.rounded-sm{border-radius:.75rem}.border{border-width:1px}.border-line-general{border-color:var(--color-line-general)}.border-line-input{border-color:var(--color-line-input)}.bg-states-bg-disabled{background-color:var(--color-states-bg-disabled)}.bg-surface-body{background-color:var(--color-surface-body)}.bg-transparent{background-color:transparent}.px-16{padding-left:1rem;padding-right:1rem}.pr-12{padding-right:.75rem}.text-2xl{font-size:1.5rem;line-height:2rem}.text-base{font-size:1rem;line-height:1.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.text-feedback-error{color:var(--color-feedback-error)}.text-icon-disabled{color:var(--color-icon-disabled)}.text-icon-primary{color:var(--color-icon-primary)}.text-text-disabled{color:var(--color-text-disabled)}.text-text-primary{color:var(--color-text-primary)}.caret-brand-primary{caret-color:var(--color-brand-primary)}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}
|
|
1
|
+
*,:after,:before{--tw-ring-color:rgba(59,130,246,.5);--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(147,197,253,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: ;border:0 solid #e5e7eb;box-sizing:border-box}::backdrop{--tw-ring-color:rgba(59,130,246,.5);--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(147,197,253,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;tab-size:4}body{font-family:Figtree;line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.block{display:block}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.outline{outline-style:solid}:host,:host button,:host input,:host option,:host select,:host textarea{font-family:Figtree,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}:host{display:block}.button-focus{outline:2px solid var(--color-feedback-informational)!important;outline-offset:2px!important}.button-error{outline:2px solid var(--color-feedback-error)!important;outline-offset:2px!important}.from-down{animation:from-down .2s ease-in-out}.from-up{animation:from-up .2s ease-in-out}@keyframes from-down{0%{opacity:0;transform:translateY(75%)}to{opacity:1;transform:translateY(0)}}@keyframes from-up{0%{opacity:0;transform:translateY(-75%)}to{opacity:1;transform:translateY(0)}}:root{--color-green-50:#f1f9f4;--color-green-100:#e6f4ed;--color-green-200:#cae7d8;--color-green-300:#a0d4b8;--color-green-400:#68bb8e;--color-green-500:#04843f;--color-green-600:#037236;--color-green-700:#03632f;--color-green-800:#035428;--color-green-900:#024521;--color-green-950:#012b15;--color-red-50:#fef6f6;--color-red-100:#fde8e8;--color-red-200:#fad1d1;--color-red-300:#f7abab;--color-red-400:#f17474;--color-red-500:#c80505;--color-red-600:#b30404;--color-red-700:#9f0404;--color-red-800:#860303;--color-red-900:#6d0303;--color-red-950:#330d00;--color-yellow-50:#fdf4e7;--color-yellow-100:#fcedd9;--color-yellow-200:#fae0bd;--color-yellow-300:#f6c788;--color-yellow-400:#f3b159;--color-yellow-500:#ef9928;--color-yellow-600:#e49226;--color-yellow-700:#d17e10;--color-yellow-800:#b46d0e;--color-yellow-900:#93590b;--color-yellow-950:#402705;--color-orange-50:#fef4f1;--color-orange-100:#fde8e2;--color-orange-200:#fbd2c6;--color-orange-300:#f8b4a0;--color-orange-400:#f58e70;--color-orange-500:#f05223;--color-orange-600:#ea4210;--color-orange-700:#d23b0e;--color-orange-800:#b5330c;--color-orange-900:#942a0a;--color-orange-950:#401204;--color-blue-50:#ecf0f9;--color-blue-100:#dde3f4;--color-blue-200:#b2c2e5;--color-blue-300:#7994d2;--color-blue-400:#4066bf;--color-blue-500:#001e64;--color-blue-600:#001c5c;--color-blue-700:#00174c;--color-blue-800:#00123d;--color-blue-900:#000f33;--color-blue-950:#000d2b;--color-ambar-50:#fff6eb;--color-ambar-100:#ffefdc;--color-ambar-200:#fedfb9;--color-ambar-300:#fdca8b;--color-ambar-400:#fdb359;--color-ambar-500:#fc9c26;--color-ambar-600:#ec8403;--color-ambar-700:#d87803;--color-ambar-800:#ba6803;--color-ambar-900:#975402;--color-ambar-950:#402301;--color-gray-50:#fff;--color-gray-100:#f3f4f4;--color-gray-200:#e5e6e6;--color-gray-300:#bfc0c0;--color-gray-400:#acaeae;--color-gray-500:#949595;--color-gray-600:#737575;--color-gray-700:#6c6e6e;--color-gray-800:#313333;--color-gray-900:#272929;--color-gray-950:#191d1d;--color-white-opacity-50:#ffffff0d;--color-white-opacity-100:#ffffff1a;--color-white-opacity-200:#ffffff26;--color-white-opacity-300:#ffffff45;--color-white-opacity-400:#ffffff5c;--color-white-opacity-500:#ffffff80;--color-white-opacity-600:#ffffff8c;--color-white-opacity-700:#ffffffa3;--color-white-opacity-800:#ffffffba;--color-white-opacity-900:#fffc;--color-white-opacity-950:#ffffffe8;--color-ciano-50:#f1f6fe;--color-ciano-100:#dfeafc;--color-ciano-200:#c3d9f9;--color-ciano-300:#90b9f4;--color-ciano-400:#5d98ee;--color-ciano-500:#1769e0;--color-ciano-600:#155fcb;--color-ciano-700:#1355b4;--color-ciano-800:#104899;--color-ciano-900:#0d3b7d;--color-ciano-950:#071e40;--color-extra-color-blue-light:#e7f0f4;--color-extra-color-blue-dark:#162931;--color-black-opacity-50:rgba(25,29,29,.02);--color-black-opacity-100:rgba(25,29,29,.05);--color-black-opacity-200:rgba(25,29,29,.11);--color-black-opacity-300:rgba(25,29,29,.28);--color-black-opacity-400:rgba(25,29,29,.36);--color-black-opacity-500:rgba(25,29,29,.44);--color-black-opacity-600:rgba(25,29,29,.62);--color-black-opacity-700:rgba(25,29,29,.64);--color-black-opacity-800:rgba(25,29,29,.72);--color-black-opacity-900:rgba(25,29,29,.8);--color-black-opacity-950:rgba(25,29,29,.96);--color-shadow-opacity-50:rgba(0,0,0,.04);--color-shadow-opacity-100:rgba(0,0,0,.06);--color-shadow-opacity-200:rgba(0,0,0,.12);--color-shadow-opacity-300:rgba(0,0,0,.2);--color-shadow-opacity-400:rgba(0,0,0,.32);--color-shadow-opacity-500:rgba(0,0,0,.5);--color-shadow-opacity-600:rgba(0,0,0,.55);--color-shadow-opacity-700:rgba(0,0,0,.64);--color-shadow-opacity-800:rgba(0,0,0,.73);--color-shadow-opacity-900:rgba(0,0,0,.8);--color-shadow-opacity-950:rgba(0,0,0,.91);--color-feedback-success:#04843f;--color-feedback-error:#c80505;--color-feedback-informational:#1355b4;--color-feedback-alert:#ef9928;--color-brand-primary:#f05223;--color-brand-secondary:#001c5c;--color-brand-tertiary-1:#1769e0;--color-brand-tertiary-2:#fc9c26;--color-surface-body:#fff;--color-surface-on-body:#f3f4f4;--color-surface-on-body-blue:#e7f0f4;--color-surface-on-body-brand:#fff6eb;--color-surface-on-body-feedback-success:#e6f4ed;--color-surface-on-body-feedback-error:#fde8e8;--color-surface-on-body-feedback-alert:#fdf4e7;--color-surface-on-body-feedback-info:#dfeafc;--color-text-brand:#f05223;--color-text-primary:#313333;--color-text-secondary:#6c6e6e;--color-text-disabled:#949595;--color-text-link:#1355b4;--color-states-empty-bg-hover:rgba(25,29,29,.05);--color-states-empty-bg-pressed:rgba(25,29,29,.11);--color-states-bg-disabled:rgba(25,29,29,.02);--color-states-bg-focus:#1355b4;--color-states-primary-hover:#ea4210;--color-states-primary-pressed:#d23b0e;--color-states-danger-hover:#b30404;--color-states-danger-pressed:#9f0404;--color-states-negative-hover:#e5e6e6;--color-states-negative-pressed:#bfc0c0;--color-icon-primary:#6c6e6e;--color-icon-secondary:#fff;--color-icon-tertiary:#b30404;--color-icon-disabled:#acaeae;--color-neutral-neutral-1:#fff;--color-neutral-neutral-2:#f3f4f4;--color-neutral-neutral-3:#acaeae;--color-neutral-neutral-4:#949595;--color-neutral-neutral-5:#737575;--color-neutral-neutral-6:#6c6e6e;--color-neutral-neutral-7:#313333;--color-neutral-neutral-8:#272929;--color-negative-negative-1:#fff;--color-negative-negative-2:#313333;--color-opacity-body:#fffc;--color-opacity-on-body:rgba(25,29,29,.02);--color-opacity-overlay:rgba(25,29,29,.62);--color-opacity-on-overlay:#ffffff1a;--color-opacity-toast:#ffffff45;--color-line-input:#949595;--color-line-general-strong:#bfc0c0;--color-line-general:#e5e6e6;--color-line-hair:rgba(25,29,29,.05);--color-box-shadow-body:#fff;--color-box-shadow-shadow-color-1:rgba(0,0,0,.04);--color-box-shadow-shadow-color-2:rgba(0,0,0,.06)}.static{position:static}.absolute{position:absolute}.relative{position:relative}.inset-x-0{left:0;right:0}.inset-y-0{bottom:0;top:0}.bottom-full{bottom:100%}.left-0{left:0}.right-0{right:0}.top-full{top:100%}.z-50{z-index:50}.mb-8{margin-bottom:.5rem}.mt-8{margin-top:.5rem}.inline{display:inline}.flex{display:flex}.grid{display:grid}.h-22{height:1.375rem}.h-28{height:1.75rem}.h-36{height:2.25rem}.w-1\/2{width:50%}.w-28{width:1.75rem}.w-36{width:2.25rem}.w-full{width:100%}.cursor-not-allowed{cursor:not-allowed}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-12{gap:.75rem}.gap-24{gap:1.5rem}.gap-y-8{row-gap:.5rem}.rounded-lg{border-radius:2.5rem}.rounded-xs{border-radius:.5rem}.rounded-xxl{border-radius:18.75rem}.border{border-width:1px}.border-brand-primary{border-color:var(--color-brand-primary)}.border-line-general{border-color:var(--color-line-general)}.bg-brand-primary{background-color:var(--color-brand-primary)}.bg-states-empty-bg-hover{background-color:var(--color-states-empty-bg-hover)}.bg-surface-body{background-color:var(--color-surface-body)}.bg-surface-on-body-brand{background-color:var(--color-surface-on-body-brand)}.p-24{padding:1.5rem}.px-4{padding-left:.25rem;padding-right:.25rem}.pt-8{padding-top:.5rem}.text-base{font-size:1rem;line-height:1.5rem}.text-label-medium-regular{font-size:1rem;font-weight:400;letter-spacing:0;line-height:20px}.text-label-small-regular{font-size:.875rem;font-weight:400;letter-spacing:0;line-height:16px}.capitalize{text-transform:capitalize}.text-neutral-neutral-1{color:var(--color-neutral-neutral-1)}.text-text-disabled{color:var(--color-text-disabled)}.text-text-primary{color:var(--color-text-primary)}.text-text-secondary{color:var(--color-text-secondary)}.line-through{text-decoration-line:line-through}.opacity-50{opacity:.5}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\:bg-states-empty-bg-hover:hover{background-color:var(--color-states-empty-bg-hover)}.mt-4{margin-top:.25rem}.hidden{display:none}.h-\[72px\]{height:72px}.cursor-pointer{cursor:pointer}.rounded-sm{border-radius:.75rem}.border-line-input{border-color:var(--color-line-input)}.bg-states-bg-disabled{background-color:var(--color-states-bg-disabled)}.bg-transparent{background-color:transparent}.px-16{padding-left:1rem;padding-right:1rem}.pr-12{padding-right:.75rem}.text-2xl{font-size:1.5rem;line-height:2rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.text-feedback-error{color:var(--color-feedback-error)}.text-icon-disabled{color:var(--color-icon-disabled)}.text-icon-primary{color:var(--color-icon-primary)}.caret-brand-primary{caret-color:var(--color-brand-primary)}.outline-none{outline:2px solid transparent;outline-offset:2px}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}@font-face{font-display:swap;font-family:Figtree;font-style:normal;font-weight:300;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-Light.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:italic;font-weight:300;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-LightItalic.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:normal;font-weight:400;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-Regular.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:italic;font-weight:400;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-Italic.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:normal;font-weight:500;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-Medium.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:italic;font-weight:500;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-MediumItalic.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:normal;font-weight:600;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-SemiBold.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:italic;font-weight:600;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-SemiBoldItalic.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:normal;font-weight:700;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-Bold.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:italic;font-weight:700;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-BoldItalic.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:normal;font-weight:800;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-ExtraBold.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:italic;font-weight:800;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-ExtraBoldItalic.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:normal;font-weight:900;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-Black.ttf) format("truetype")}@font-face{font-display:swap;font-family:Figtree;font-style:italic;font-weight:900;src:local("Figtree"),url(@sula-tech/tailwind-css-plugin/assets/fonts/Figtree-BlackItalic.ttf) format("truetype")}
|
|
@@ -11,6 +11,10 @@ export class SulaTextfield {
|
|
|
11
11
|
* The textfield status
|
|
12
12
|
*/
|
|
13
13
|
this.status = SulaTextfieldStatus.Default;
|
|
14
|
+
/**
|
|
15
|
+
* The textfield is read only, blocking typing while keeping it focusable
|
|
16
|
+
*/
|
|
17
|
+
this.readOnly = false;
|
|
14
18
|
this.inputIsOpen = false;
|
|
15
19
|
this.textValue = '';
|
|
16
20
|
this.showPassword = false;
|
|
@@ -85,7 +89,7 @@ export class SulaTextfield {
|
|
|
85
89
|
handleClick(event) {
|
|
86
90
|
if (!this.node || !this.inputIsFocused)
|
|
87
91
|
return;
|
|
88
|
-
const clickInside =
|
|
92
|
+
const clickInside = event.composedPath().includes(this.node);
|
|
89
93
|
if (!clickInside) {
|
|
90
94
|
this.toggleOptions(false);
|
|
91
95
|
this.focusedOut.emit();
|
|
@@ -232,14 +236,14 @@ export class SulaTextfield {
|
|
|
232
236
|
return this.icon;
|
|
233
237
|
}
|
|
234
238
|
render() {
|
|
235
|
-
return (h(Host, { key: '
|
|
239
|
+
return (h(Host, { key: 'ccd4bc62d78a1d76a451df3b06100b49b640f71c', ref: node => (this.node = node) }, h("div", { key: '94e32141a850cf75f7d65dd8bb6ca0aac227664e' }, h("div", { key: 'bfcf141688e05ea8960e3c645f3197b323d04832', id: "button-container", class: {
|
|
236
240
|
'flex items-center border rounded-sm px-16 outline-none h-[72px] caret-brand-primary': true,
|
|
237
241
|
'flex-row justify-between': !!this.icon || this.type === SulaTextfieldType.Password,
|
|
238
242
|
'button-focus': this.inputIsFocused && !this.disabled && this.status === SulaTextfieldStatus.Default,
|
|
239
243
|
'button-error': this.status === SulaTextfieldStatus.Error && !this.disabled,
|
|
240
244
|
'bg-states-bg-disabled border-line-general cursor-not-allowed': this.disabled,
|
|
241
245
|
'bg-surface-body border-line-input cursor-pointer': !this.disabled,
|
|
242
|
-
}, tabIndex: 0, onFocus: this.handleFocus, onClick: this.handleInputClick }, h("div", { key: '
|
|
246
|
+
}, tabIndex: 0, onFocus: this.handleFocus, onClick: this.handleInputClick }, h("div", { key: '242800c336bb4f3b48bbcedf2a1b99d04845dd9c', class: { 'hidden flex-col w-full': true, 'pr-12': !!this.icon }, ref: node => (this.inputContainer = node) }, h("label", { key: '9c86c5421951ce2fb906b4f28aaa32820c86b426', class: { 'font-bold text-sm from-down': true, 'text-text-primary': !this.disabled, 'text-text-disabled': this.disabled } }, this.label), h("input", { key: '6ed485afa4b994a6aea29527907aa40a397b9bd9', type: this.type, ref: node => (this.inputElement = node), placeholder: this.placeholder, class: { 'outline-none text-base bg-transparent': true, 'text-text-primary': !this.disabled, 'text-text-disabled': this.disabled }, onInput: this.handleInputChanges, onFocus: this.handleInputFocus, value: this.textValue, disabled: this.disabled, readOnly: this.readOnly })), h("div", { key: '7052974f3d486753d3ddb00ede7edd503122fe15', id: "textfield-label", class: { 'text-base flex items-center': true, 'text-text-primary': !this.disabled, 'text-text-disabled': this.disabled }, ref: node => (this.labelElement = node) }, this.label), (!!this.icon || this.type === SulaTextfieldType.Password) && (h("div", { key: 'c3fe8b8aa080b41653d4390c0b095d2eded9be79', class: "flex items-center justify-center", onClick: this.handleIconClick }, h("sula-icon", { key: '5649c5a8b5e3682a131bb3d9f6ad16e61d4854cc', icon: this.getInputIcon(), customClass: `text-2xl ${this.disabled ? 'text-icon-disabled' : 'text-icon-primary'}` })))), (this.helpText || this.maxLength) && !this.disabled && (h("div", { key: '038b7df61a889030b715818a0e609b6d1ce5b1df', class: "flex justify-between items-center px-16 mt-4 text-sm" }, this.helpText && (h("div", { key: 'fb4f50eef561107bd14a1a6d3a880d9631c68fcb', id: "textfield-help-text", class: { 'text-text-primary': this.status === SulaTextfieldStatus.Default, 'text-feedback-error': this.status === SulaTextfieldStatus.Error } }, this.helpText)), this.maxLength && (h("div", { key: '2727ef96f189af5750c9f278fdbb7786484a6afd', id: "max-length-container", class: { 'text-text-primary': this.status === SulaTextfieldStatus.Default, 'text-feedback-error': this.status === SulaTextfieldStatus.Error } }, this.textValue ? this.textValue.length : 0, "/", this.maxLength)))))));
|
|
243
247
|
}
|
|
244
248
|
static get is() { return "sula-textfield"; }
|
|
245
249
|
static get encapsulation() { return "shadow"; }
|
|
@@ -383,6 +387,26 @@ export class SulaTextfield {
|
|
|
383
387
|
"setter": false,
|
|
384
388
|
"reflect": false
|
|
385
389
|
},
|
|
390
|
+
"readOnly": {
|
|
391
|
+
"type": "boolean",
|
|
392
|
+
"attribute": "read-only",
|
|
393
|
+
"mutable": false,
|
|
394
|
+
"complexType": {
|
|
395
|
+
"original": "boolean",
|
|
396
|
+
"resolved": "boolean",
|
|
397
|
+
"references": {}
|
|
398
|
+
},
|
|
399
|
+
"required": false,
|
|
400
|
+
"optional": false,
|
|
401
|
+
"docs": {
|
|
402
|
+
"tags": [],
|
|
403
|
+
"text": "The textfield is read only, blocking typing while keeping it focusable"
|
|
404
|
+
},
|
|
405
|
+
"getter": false,
|
|
406
|
+
"setter": false,
|
|
407
|
+
"reflect": false,
|
|
408
|
+
"defaultValue": "false"
|
|
409
|
+
},
|
|
386
410
|
"helpText": {
|
|
387
411
|
"type": "string",
|
|
388
412
|
"attribute": "help-text",
|