@sellmate/design-system 1.0.49 → 1.0.50
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/{component.button-BKa5OPya.js → component.button-DUsddONR.js} +15 -14
- package/dist/cjs/{component.modal-CtW5Gmy5.js → component.modal-DmQUWbve.js} +0 -4
- package/dist/cjs/{component.textinput-43trvZ5m.js → component.textinput-DIDZPtYE.js} +0 -3
- package/dist/cjs/design-system.cjs.js +1 -1
- package/dist/cjs/index.cjs.js +0 -5
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{resolveColor-Di1RNekE.js → resolveColor-LhfOKtTZ.js} +2 -0
- package/dist/cjs/sd-action-modal.cjs.entry.js +2 -4
- package/dist/cjs/sd-barcode-input.cjs.entry.js +5 -7
- package/dist/cjs/{sd-button-v2.config-CQoTThio.js → sd-button-v2.config-B4___nhv.js} +5 -5
- package/dist/cjs/sd-button-v2_2.cjs.entry.js +3 -3
- package/dist/cjs/sd-button_4.cjs.entry.js +8 -8
- package/dist/cjs/sd-calendar.cjs.entry.js +1 -1
- package/dist/cjs/sd-confirm-modal.cjs.entry.js +4 -6
- package/dist/cjs/sd-dropdown-button.cjs.entry.js +17 -6
- package/dist/cjs/sd-file-picker.cjs.entry.js +5 -3
- package/dist/cjs/sd-ghost-button.cjs.entry.js +148 -0
- package/dist/cjs/sd-guide.cjs.entry.js +2 -2
- package/dist/cjs/sd-input_2.cjs.entry.js +7 -12
- package/dist/cjs/sd-loading-spinner_3.cjs.entry.js +4 -4
- package/dist/cjs/sd-number-input.cjs.entry.js +3 -3
- package/dist/cjs/sd-popover.cjs.entry.js +10 -10
- package/dist/cjs/sd-progress.cjs.entry.js +2 -2
- package/dist/cjs/sd-select-dropdown_2.cjs.entry.js +3 -3
- package/dist/cjs/sd-select-group.cjs.entry.js +1 -1
- package/dist/cjs/sd-select-multiple.cjs.entry.js +1 -1
- package/dist/cjs/sd-select-option-group.cjs.entry.js +3 -3
- package/dist/cjs/sd-select-v2-list-item_2.cjs.entry.js +5 -5
- package/dist/cjs/sd-select-v2-listbox_2.cjs.entry.js +3 -3
- package/dist/cjs/sd-select-v2.cjs.entry.js +3 -3
- package/dist/cjs/sd-tabs.cjs.entry.js +2 -3
- package/dist/cjs/sd-tag.cjs.entry.js +2 -2
- package/dist/cjs/sd-text-link.cjs.entry.js +3 -3
- package/dist/cjs/sd-textarea.cjs.entry.js +2 -2
- package/dist/cjs/sd-toast.cjs.entry.js +3 -3
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/sd-action-modal/sd-action-modal.config.js +0 -2
- package/dist/collection/components/sd-action-modal/sd-action-modal.js +2 -2
- package/dist/collection/components/sd-barcode-input/sd-barcode-input.config.js +0 -5
- package/dist/collection/components/sd-barcode-input/sd-barcode-input.css +8 -5
- package/dist/collection/components/sd-barcode-input/sd-barcode-input.js +4 -2
- package/dist/collection/components/sd-button/sd-button.js +5 -5
- package/dist/collection/components/sd-button-v2/sd-button-v2.config.js +4 -4
- package/dist/collection/components/sd-confirm-modal/sd-confirm-modal.config.js +0 -2
- package/dist/collection/components/sd-confirm-modal/sd-confirm-modal.css +2 -3
- package/dist/collection/components/sd-confirm-modal/sd-confirm-modal.js +3 -3
- package/dist/collection/components/sd-file-picker/sd-file-picker.js +5 -3
- package/dist/collection/components/sd-floating-portal/sd-floating-portal.css +0 -4
- package/dist/collection/components/sd-ghost-button/sd-ghost-button.config.js +37 -0
- package/dist/collection/components/sd-ghost-button/sd-ghost-button.css +43 -0
- package/dist/collection/components/sd-ghost-button/sd-ghost-button.js +205 -0
- package/dist/collection/components/sd-guide/sd-guide.js +2 -2
- package/dist/collection/components/sd-input/sd-input.config.js +0 -5
- package/dist/collection/components/sd-input/sd-input.css +0 -1
- package/dist/collection/components/sd-input/sd-input.js +3 -3
- package/dist/collection/components/sd-loading-spinner/sd-loading-spinner.js +1 -1
- package/dist/collection/components/sd-number-input/sd-number-input.js +3 -3
- package/dist/collection/components/sd-pagination/sd-pagination.js +2 -2
- package/dist/collection/components/sd-popover/sd-popover.js +11 -7
- package/dist/collection/components/sd-progress/sd-progress.js +2 -34
- package/dist/collection/components/sd-select/sd-select-dropdown/sd-select-dropdown.js +2 -2
- package/dist/collection/components/sd-select/sd-select-option/sd-select-option.js +1 -1
- package/dist/collection/components/sd-select/sd-select-search-input/sd-select-search-input.js +3 -3
- package/dist/collection/components/sd-select-group/sd-select-group.js +1 -1
- package/dist/collection/components/sd-select-multiple/sd-select-multiple.js +1 -1
- package/dist/collection/components/sd-select-multiple-group/sd-select-option-group/sd-select-option-group.js +3 -3
- package/dist/collection/components/sd-select-v2/sd-select-v2-list-item/sd-select-v2-list-item.js +2 -2
- package/dist/collection/components/sd-select-v2/sd-select-v2-list-item-search/sd-select-v2-list-item-search.js +3 -3
- package/dist/collection/components/sd-select-v2/sd-select-v2-listbox/sd-select-v2-listbox.js +1 -1
- package/dist/collection/components/sd-select-v2/sd-select-v2-trigger/sd-select-v2-trigger.js +2 -2
- package/dist/collection/components/sd-select-v2/sd-select-v2.js +3 -3
- package/dist/collection/components/sd-tabs/sd-tabs.js +2 -3
- package/dist/collection/components/sd-tag/sd-tag.js +2 -2
- package/dist/collection/components/sd-text-link/sd-text-link.js +3 -3
- package/dist/collection/components/sd-textarea/sd-textarea.js +2 -2
- package/dist/collection/components/sd-toast/sd-toast.css +0 -14
- package/dist/collection/components/sd-toast/sd-toast.js +2 -2
- package/dist/collection/index.js +0 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{p-BBYig1zV.js → p-9cpjtLyu.js} +1 -1
- package/dist/components/p-AFiQTtI8.js +1 -0
- package/dist/components/p-B2f7Cose.js +1 -0
- package/dist/components/{p-BYaBx4Ar.js → p-B9ODOaHR.js} +1 -1
- package/dist/components/{p-uWsY9w9i.js → p-BDddwnsY.js} +1 -1
- package/dist/components/{p-CbjDAdZ_.js → p-BGovA1BG.js} +1 -1
- package/dist/components/p-BSD19ZXd.js +1 -0
- package/dist/components/{p-DqwiOEb3.js → p-BWpdlAkY.js} +1 -1
- package/dist/components/p-BcM38Hvd.js +1 -0
- package/dist/components/{p-CUy8ulXZ.js → p-BkGwQ37a.js} +1 -1
- package/dist/components/p-BlIVa7pk.js +1 -0
- package/dist/components/{p-CdoxVzYC.js → p-Bm5vdtK6.js} +1 -1
- package/dist/components/p-BxPyZJaz.js +1 -0
- package/dist/components/p-C-ITXCaO.js +1 -0
- package/dist/components/{p-DAWMGK_A.js → p-C6dJGijx.js} +1 -1
- package/dist/components/{p-C0ptbo29.js → p-CID8dmhm.js} +1 -1
- package/dist/components/{p-ZoQO0p2E.js → p-CMIQp1d_.js} +1 -1
- package/dist/components/{p-B6NYLHOZ.js → p-CSCkf9FA.js} +1 -1
- package/dist/components/p-CS_IUXhu.js +1 -0
- package/dist/components/{p-Dl7yIIDW.js → p-CuKx-cil.js} +1 -1
- package/dist/components/{p-BeZsmobQ.js → p-CzJDdzv9.js} +1 -1
- package/dist/components/{p-By4ufaS3.js → p-D3hfkcth.js} +1 -1
- package/dist/components/p-DVFkk4Uh.js +1 -0
- package/dist/components/{p-DJScHgLW.js → p-DYzmoNdd.js} +1 -1
- package/dist/components/{p-BeIOWDKk.js → p-DgH5_0xH.js} +1 -1
- package/dist/components/p-Do9_zPoB.js +1 -0
- package/dist/components/{p-DhKZT8lW.js → p-Dpm7Otkw.js} +1 -1
- package/dist/components/p-mO5GcwI3.js +1 -0
- package/dist/components/{p-DdjivpAF.js → p-z1GAfC0Y.js} +1 -1
- package/dist/components/sd-action-modal.js +1 -1
- package/dist/components/sd-barcode-input.js +1 -1
- package/dist/components/sd-button-v2.js +1 -1
- package/dist/components/sd-button.js +1 -1
- package/dist/components/sd-calendar.js +1 -1
- package/dist/components/sd-checkbox.js +1 -1
- package/dist/components/sd-confirm-modal.js +1 -1
- package/dist/components/sd-date-picker.js +1 -1
- package/dist/components/sd-date-range-picker.js +1 -1
- package/dist/components/sd-dropdown-button.js +1 -1
- package/dist/components/sd-field.js +1 -1
- package/dist/components/sd-file-picker.js +1 -1
- package/dist/components/sd-floating-portal.js +1 -1
- package/dist/components/sd-ghost-button.d.ts +11 -0
- package/dist/components/sd-ghost-button.js +1 -0
- package/dist/components/sd-guide.js +1 -1
- package/dist/components/sd-icon.js +1 -1
- package/dist/components/sd-input.js +1 -1
- package/dist/components/sd-loading-spinner.js +1 -1
- package/dist/components/sd-modal-container.js +1 -1
- package/dist/components/sd-number-input.js +1 -1
- package/dist/components/sd-pagination.js +1 -1
- package/dist/components/sd-popover.js +1 -1
- package/dist/components/sd-progress.js +1 -1
- package/dist/components/sd-select-dropdown.js +1 -1
- package/dist/components/sd-select-group.js +1 -1
- package/dist/components/sd-select-multiple-group.js +1 -1
- package/dist/components/sd-select-multiple.js +1 -1
- package/dist/components/sd-select-option-group.js +1 -1
- package/dist/components/sd-select-option.js +1 -1
- package/dist/components/sd-select-search-input.js +1 -1
- package/dist/components/sd-select-v2-list-item-search.js +1 -1
- package/dist/components/sd-select-v2-list-item.js +1 -1
- package/dist/components/sd-select-v2-listbox.js +1 -1
- package/dist/components/sd-select-v2-trigger.js +1 -1
- package/dist/components/sd-select-v2.js +1 -1
- package/dist/components/sd-select.js +1 -1
- package/dist/components/sd-table.js +1 -1
- package/dist/components/sd-tabs.js +1 -1
- package/dist/components/sd-tag.js +1 -1
- package/dist/components/sd-text-link.js +1 -1
- package/dist/components/sd-textarea.js +1 -1
- package/dist/components/sd-toast-container.js +1 -1
- package/dist/components/sd-toast.js +1 -1
- package/dist/components/sd-tooltip.js +1 -1
- package/dist/design-system/design-system.css +1 -1
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/design-system/index.esm.js +1 -1
- package/dist/design-system/{p-19b18e4c.entry.js → p-075c1811.entry.js} +1 -1
- package/dist/design-system/{p-4e9abae8.entry.js → p-28f46b43.entry.js} +1 -1
- package/dist/design-system/{p-d4da5815.entry.js → p-3046d095.entry.js} +1 -1
- package/dist/design-system/p-3165d54b.entry.js +1 -0
- package/dist/design-system/{p-e58e5fa2.entry.js → p-3a507d25.entry.js} +1 -1
- package/dist/design-system/{p-d659e98e.entry.js → p-426c7f12.entry.js} +1 -1
- package/dist/design-system/p-45f6bd30.entry.js +1 -0
- package/dist/design-system/{p-0e0992bf.entry.js → p-49611410.entry.js} +1 -1
- package/dist/design-system/p-513306a1.entry.js +1 -0
- package/dist/design-system/p-559d6c56.entry.js +1 -0
- package/dist/design-system/{p-fd2e0035.entry.js → p-57e3132f.entry.js} +1 -1
- package/dist/design-system/p-5ce6b4e1.entry.js +1 -0
- package/dist/design-system/p-6a0fe603.entry.js +1 -0
- package/dist/design-system/{p-ee25a675.entry.js → p-7b14c068.entry.js} +1 -1
- package/dist/design-system/p-8b11f4f1.entry.js +1 -0
- package/dist/design-system/p-9d5d578e.entry.js +1 -0
- package/dist/design-system/{p-CbjDAdZ_.js → p-BGovA1BG.js} +1 -1
- package/dist/design-system/p-BcM38Hvd.js +1 -0
- package/dist/design-system/p-BxPyZJaz.js +1 -0
- package/dist/design-system/p-a589cab8.entry.js +1 -0
- package/dist/design-system/{p-4d904e5a.entry.js → p-a6946300.entry.js} +1 -1
- package/dist/design-system/{p-e8cb12b7.entry.js → p-ae21d6ba.entry.js} +1 -1
- package/dist/design-system/{p-ef654bbe.entry.js → p-d2db1b44.entry.js} +1 -1
- package/dist/design-system/p-d47fdd44.entry.js +1 -0
- package/dist/design-system/{p-53326ad6.entry.js → p-d83673a2.entry.js} +1 -1
- package/dist/design-system/{p-07a3c3fc.entry.js → p-d87aa2ec.entry.js} +1 -1
- package/dist/design-system/{p-DzagopqQ.js → p-ePjRdqmD.js} +1 -1
- package/dist/design-system/p-f193b3b9.entry.js +1 -0
- package/dist/design-system/{p-de02d3b8.entry.js → p-f23038d4.entry.js} +1 -1
- package/dist/design-system/{p-242c605c.entry.js → p-f496bd56.entry.js} +1 -1
- package/dist/design-system/{p-19e62a3d.entry.js → p-fc2dc308.entry.js} +1 -1
- package/dist/design-system/p-mO5GcwI3.js +1 -0
- package/dist/esm/{component.button-DwYSoCyW.js → component.button-BcM38Hvd.js} +15 -14
- package/dist/esm/{component.modal-rGbM8XR_.js → component.modal-mO5GcwI3.js} +0 -4
- package/dist/esm/{component.textinput-CbjDAdZ_.js → component.textinput-BGovA1BG.js} +0 -3
- package/dist/esm/design-system.js +1 -1
- package/dist/esm/index.js +1 -5
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{resolveColor-CquSJNHV.js → resolveColor-BxPyZJaz.js} +2 -0
- package/dist/esm/sd-action-modal.entry.js +2 -4
- package/dist/esm/sd-barcode-input.entry.js +5 -7
- package/dist/esm/{sd-button-v2.config-B4Fmn4Ju.js → sd-button-v2.config-C7s1j4_P.js} +5 -5
- package/dist/esm/sd-button-v2_2.entry.js +3 -3
- package/dist/esm/sd-button_4.entry.js +8 -8
- package/dist/esm/sd-calendar.entry.js +1 -1
- package/dist/esm/sd-confirm-modal.entry.js +4 -6
- package/dist/esm/sd-dropdown-button.entry.js +14 -3
- package/dist/esm/sd-file-picker.entry.js +5 -3
- package/dist/esm/sd-ghost-button.entry.js +146 -0
- package/dist/esm/sd-guide.entry.js +2 -2
- package/dist/esm/sd-input_2.entry.js +7 -12
- package/dist/esm/sd-loading-spinner_3.entry.js +4 -4
- package/dist/esm/sd-number-input.entry.js +3 -3
- package/dist/esm/sd-popover.entry.js +10 -10
- package/dist/esm/sd-progress.entry.js +2 -2
- package/dist/esm/sd-select-dropdown_2.entry.js +3 -3
- package/dist/esm/sd-select-group.entry.js +1 -1
- package/dist/esm/sd-select-multiple.entry.js +1 -1
- package/dist/esm/sd-select-option-group.entry.js +3 -3
- package/dist/esm/sd-select-v2-list-item_2.entry.js +5 -5
- package/dist/esm/sd-select-v2-listbox_2.entry.js +3 -3
- package/dist/esm/sd-select-v2.entry.js +3 -3
- package/dist/esm/sd-tabs.entry.js +2 -3
- package/dist/esm/sd-tag.entry.js +2 -2
- package/dist/esm/sd-text-link.entry.js +3 -3
- package/dist/esm/sd-textarea.entry.js +2 -2
- package/dist/esm/sd-toast.entry.js +3 -3
- package/dist/types/components/sd-action-modal/sd-action-modal.config.d.ts +0 -2
- package/dist/types/components/sd-barcode-input/sd-barcode-input.config.d.ts +0 -4
- package/dist/types/components/sd-confirm-modal/sd-confirm-modal.config.d.ts +0 -2
- package/dist/types/components/sd-ghost-button/sd-ghost-button.config.d.ts +12 -0
- package/dist/types/components/sd-ghost-button/sd-ghost-button.d.ts +15 -0
- package/dist/types/components/sd-input/sd-input.config.d.ts +0 -4
- package/dist/types/components.d.ts +76 -4
- package/dist/types/index.d.ts +0 -1
- package/hydrate/index.js +284 -143
- package/hydrate/index.mjs +284 -143
- package/package.json +1 -1
- package/dist/cjs/system-lN7yOMPF.js +0 -20
- package/dist/collection/components/event-management.js +0 -19
- package/dist/collection/styles/fonts/fontBase64.js +0 -141910
- package/dist/collection/utils/utils.js +0 -3
- package/dist/components/p-7tPcjtqM.js +0 -1
- package/dist/components/p-B09D2cZD.js +0 -1
- package/dist/components/p-C3XBhNH9.js +0 -1
- package/dist/components/p-CS6ohqwt.js +0 -1
- package/dist/components/p-CquSJNHV.js +0 -1
- package/dist/components/p-DE3qbfEZ.js +0 -1
- package/dist/components/p-DeTDTmN7.js +0 -1
- package/dist/components/p-Du3VqeNP.js +0 -1
- package/dist/components/p-DwYSoCyW.js +0 -1
- package/dist/components/p-poQ9yAeD.js +0 -1
- package/dist/components/p-rGbM8XR_.js +0 -1
- package/dist/design-system/p-021e4171.entry.js +0 -1
- package/dist/design-system/p-127445af.entry.js +0 -1
- package/dist/design-system/p-14d1d9d7.entry.js +0 -1
- package/dist/design-system/p-498d333c.entry.js +0 -1
- package/dist/design-system/p-7a029f03.entry.js +0 -1
- package/dist/design-system/p-CS6ohqwt.js +0 -1
- package/dist/design-system/p-CquSJNHV.js +0 -1
- package/dist/design-system/p-DwYSoCyW.js +0 -1
- package/dist/design-system/p-ade2ed02.entry.js +0 -1
- package/dist/design-system/p-aeed9b29.entry.js +0 -1
- package/dist/design-system/p-b5d8e54d.entry.js +0 -1
- package/dist/design-system/p-bddf2246.entry.js +0 -1
- package/dist/design-system/p-d93c6ea8.entry.js +0 -1
- package/dist/design-system/p-rGbM8XR_.js +0 -1
- package/dist/esm/system-CS6ohqwt.js +0 -18
- package/dist/types/components/event-management.d.ts +0 -6
- package/dist/types/styles/fonts/fontBase64.d.ts +0 -3
- package/dist/types/utils/utils.d.ts +0 -1
|
@@ -206,13 +206,13 @@ export class SdSelectV2 {
|
|
|
206
206
|
this.closeDropdown();
|
|
207
207
|
},
|
|
208
208
|
};
|
|
209
|
-
return (h("sd-field", { key: '
|
|
209
|
+
return (h("sd-field", { key: '4a2253174ec791043f98ecca8703670b8423beaf', name: this.fieldName || this.internalName, label: this.label, addonLabel: this.addonLabel, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, onMouseEnter: () => {
|
|
210
210
|
this.hovered = true;
|
|
211
211
|
}, onMouseLeave: () => {
|
|
212
212
|
this.hovered = false;
|
|
213
|
-
} }, h("div", { key: '
|
|
213
|
+
} }, h("div", { key: 'a1cf728f0d8f133ed5766c5f9adb3a955e8927ca', class: "sd-select-v2", ref: el => {
|
|
214
214
|
this.triggerRef = el;
|
|
215
|
-
} }, h("sd-select-v2-trigger", { key: '
|
|
215
|
+
} }, h("sd-select-v2-trigger", { key: 'b939f8fe711b253b00a094a9c60f4f67892b166f', displayText: this.displayText, placeholder: this.placeholder, disabled: this.disabled, isOpen: this.isOpen, onSdTriggerClick: this.handleTriggerClick })), (this.isOpen || this.isAnimatingOut) && (h("sd-portal", { key: '9a50037ca13cd754f820d6f2f6052f9c4928feb7', ...portalProps }, h("sd-select-v2-listbox", { key: 'e6e5b14376647bf4204bab2b65f6468b85b768c1', name: this.name, options: this.options, value: this.value, emitValue: this.emitValue, triggerWidth: this.triggerWidth, maxWidth: this.resolvedMaxDropdownWidth, maxHeight: this.resolvedDropdownHeight, onSdOptionSelect: event => this.handleOptionSelect(event.detail) })))));
|
|
216
216
|
}
|
|
217
217
|
static get is() { return "sd-select-v2"; }
|
|
218
218
|
static get originalStyleUrls() {
|
|
@@ -14,7 +14,6 @@ export class SdTabs {
|
|
|
14
14
|
this.value = newValue;
|
|
15
15
|
}
|
|
16
16
|
handleTabClick = (tabValue) => {
|
|
17
|
-
this.value = tabValue;
|
|
18
17
|
this.value = tabValue;
|
|
19
18
|
this.update.emit(tabValue);
|
|
20
19
|
};
|
|
@@ -40,9 +39,9 @@ export class SdTabs {
|
|
|
40
39
|
return `square_${this.size}_${color}`;
|
|
41
40
|
}
|
|
42
41
|
render() {
|
|
43
|
-
return (h("div", { key: '
|
|
42
|
+
return (h("div", { key: '74a25ee4311c84e79f4918b884385f27d6af6313', class: this.getContainerClasses() }, this.tabs.map((tab, index) => {
|
|
44
43
|
const badgeName = this.getBadgeName(tab);
|
|
45
|
-
return (h("div", { key: `tab-${index}`, class: this.getTabClasses(tab), "aria-label": tab.label || 'tab', onClick: () => this.handleTabClick(tab.value) }, h("span", { "data-label": tab.label, class: "sd-tabs__label" }, tab.label), tab.badge &&
|
|
44
|
+
return (h("div", { key: `tab-${index}`, class: this.getTabClasses(tab), "aria-label": tab.label || 'tab', onClick: () => this.handleTabClick(tab.value) }, h("span", { "data-label": tab.label, class: "sd-tabs__label" }, tab.label), tab.badge && h("sd-tag", { name: badgeName, label: tab.badge.toString() })));
|
|
46
45
|
})));
|
|
47
46
|
}
|
|
48
47
|
static get is() { return "sd-tabs"; }
|
|
@@ -19,7 +19,7 @@ export class SdTag {
|
|
|
19
19
|
render() {
|
|
20
20
|
const config = this.resolvedConfig;
|
|
21
21
|
const iconNode = this.renderIcon(config.icon, config.iconSize);
|
|
22
|
-
return (h("span", { key: '
|
|
22
|
+
return (h("span", { key: '1cfaeb97f648f8929cdaf6bd5650e400f47cb207', class: "sd-tag", style: {
|
|
23
23
|
'--sd-tag-background': config.background,
|
|
24
24
|
'--sd-tag-content': config.content,
|
|
25
25
|
'--sd-tag-height': config.height,
|
|
@@ -29,7 +29,7 @@ export class SdTag {
|
|
|
29
29
|
'--sd-tag-font-weight': config.fontWeight,
|
|
30
30
|
'--sd-tag-line-height': config.lineHeight,
|
|
31
31
|
'--sd-tag-radius': config.radius,
|
|
32
|
-
}, "aria-label": this.label || 'tag' }, this.icon && this.isLeft && iconNode, h("span", { key: '
|
|
32
|
+
}, "aria-label": this.label || 'tag' }, this.icon && this.isLeft && iconNode, h("span", { key: 'c858d07e4b33f9d142a7d2719399374c37785fe3', class: "sd-tag__label" }, this.label), this.icon && !this.isLeft && iconNode));
|
|
33
33
|
}
|
|
34
34
|
static get is() { return "sd-tag"; }
|
|
35
35
|
static get originalStyleUrls() {
|
|
@@ -30,16 +30,16 @@ export class SdTextLink {
|
|
|
30
30
|
'--sd-text-link-text-decoration': typo.textDecoration,
|
|
31
31
|
'--sd-text-link-color': contentColor,
|
|
32
32
|
};
|
|
33
|
-
return (h("span", { key: '
|
|
33
|
+
return (h("span", { key: '518661e48081a4c128667608ebda9a1dca1b19c0', class: {
|
|
34
34
|
'sd-text-link': true,
|
|
35
35
|
'sd-text-link--disabled': this.disabled,
|
|
36
|
-
}, style: cssVars, onClick: this.handleClick }, this.icon && (h("sd-icon", { key: '
|
|
36
|
+
}, style: cssVars, onClick: this.handleClick }, this.icon && (h("sd-icon", { key: 'b73b19f38036987ab312e8ce9960280fa863a44e', name: this.icon, size: TEXT_LINK_LAYOUT.iconSize, color: iconColor, class: "sd-text-link__icon" })), h("span", { key: 'a61877f0c9740259fa81344b41f43de50d76d582', class: "sd-text-link__label" }, this.label), this.useArrow && (h("span", { key: '2887c482820bff0dcbd3e753f979b242b765e5b9', class: "sd-text-link__arrow", style: {
|
|
37
37
|
width: `${TEXT_LINK_LAYOUT.arrowFrame}px`,
|
|
38
38
|
height: `${TEXT_LINK_LAYOUT.arrowFrame}px`,
|
|
39
39
|
display: 'inline-flex',
|
|
40
40
|
alignItems: 'center',
|
|
41
41
|
justifyContent: 'center',
|
|
42
|
-
} }, h("sd-icon", { key: '
|
|
42
|
+
} }, h("sd-icon", { key: 'da303224cde569553d8eca8e6215761640ea2470', name: "chevronRight", size: TEXT_LINK_LAYOUT.arrowIconSize, color: arrowColor })))));
|
|
43
43
|
}
|
|
44
44
|
static get is() { return "sd-text-link"; }
|
|
45
45
|
static get originalStyleUrls() {
|
|
@@ -75,10 +75,10 @@ export class SdTextarea {
|
|
|
75
75
|
}
|
|
76
76
|
render() {
|
|
77
77
|
const maxLengthCounter = this.getMaxLengthCounter();
|
|
78
|
-
return (h("div", { key: '
|
|
78
|
+
return (h("div", { key: 'cd47db7305c089848a3385932945a99cd3932ebb', class: {
|
|
79
79
|
'sd-textarea': true,
|
|
80
80
|
[this.getTextareaStatus()]: true,
|
|
81
|
-
}, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, h("div", { key: '
|
|
81
|
+
}, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, h("div", { key: '2768eed1797ecc42e3e9d7a15416f93fa8eb211f', class: "sd-textarea__content" }, h("textarea", { key: '91af1337c1209d9798728912a7eae52acf02b6ca', name: this.name, ref: el => (this.nativeEl = el), class: `sd-textarea__native ${this.textareaClass}`, value: this.internalValue || '', placeholder: this.placeholder, disabled: this.disabled, autofocus: this.autoFocus, maxLength: this.maxLength, onInput: this.handleInput.bind(this), onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event) })), this.hasFooter() && (h("div", { key: '9d4e2e72a87beb9e95009c8824165f136e2b194c', class: "sd-textarea__footer" }, this.helpText !== undefined && h("span", { key: 'e420045dbb4cd253125594ea7230818281aa920f', class: "sd-textarea__help-text" }, this.helpText), maxLengthCounter !== null && h("span", { key: '3658f7f91c21e301f0fe5b69226a6380d500fbca', class: "sd-textarea__counter" }, maxLengthCounter)))));
|
|
82
82
|
}
|
|
83
83
|
static get is() { return "sd-textarea"; }
|
|
84
84
|
static get originalStyleUrls() {
|
|
@@ -49,19 +49,5 @@ sd-toast .sd-toast__button button {
|
|
|
49
49
|
color: var(--button-text-color, inherit) !important;
|
|
50
50
|
}
|
|
51
51
|
sd-toast .sd-toast__close {
|
|
52
|
-
display: flex;
|
|
53
|
-
align-items: center;
|
|
54
|
-
justify-content: center;
|
|
55
|
-
padding: 4px;
|
|
56
|
-
background-color: transparent;
|
|
57
|
-
border: none;
|
|
58
|
-
cursor: pointer;
|
|
59
|
-
transition: opacity 0.2s ease;
|
|
60
52
|
flex-shrink: 0;
|
|
61
|
-
}
|
|
62
|
-
sd-toast .sd-toast__close:hover {
|
|
63
|
-
opacity: 0.7;
|
|
64
|
-
}
|
|
65
|
-
sd-toast .sd-toast__close:active {
|
|
66
|
-
opacity: 0.5;
|
|
67
53
|
}
|
|
@@ -11,10 +11,10 @@ export class SdToast {
|
|
|
11
11
|
render() {
|
|
12
12
|
const typeConfig = TOAST_TYPE_CONFIG[this.type] ?? TOAST_TYPE_CONFIG.default;
|
|
13
13
|
const iconSize = Number(TOAST_LAYOUT.iconSize);
|
|
14
|
-
return (h("div", { key: '
|
|
14
|
+
return (h("div", { key: '9f9332b868ad1ae09854a6eeb7dc0935d412147c', style: {
|
|
15
15
|
'--sd-toast-bg': typeConfig.bg,
|
|
16
16
|
'--sd-toast-text': typeConfig.content,
|
|
17
|
-
} }, h("div", { key: '
|
|
17
|
+
} }, h("div", { key: '762ac3406fd9d98dc4583244de6744f1e2c6eec6', class: "sd-toast", role: "status", "aria-live": "polite", "aria-atomic": "true" }, this.icon && (h("div", { key: '8f7f2ce05c5e0f26b5d4af17284cc67ae35c9677', class: "sd-toast__icon" }, h("sd-icon", { key: '456de7bdf8b1ed1c11ec35d73b7b78ee7fd2c9d8', name: this.icon, size: iconSize, color: typeConfig.content }))), h("div", { key: 'a4feb91f9a79023413f01f79e2012dc9f9af0d3b', class: "sd-toast__content" }, h("span", { key: '091acd520b42f2cd2d0ae199ea540ce9d3a3f59f', class: "sd-toast__message" }, this.message)), this.link && (h("a", { key: 'f1738019a27b9f6f98c17183c7acdcbee9f6e00e', href: this.link, class: "sd-toast__link", target: "_blank", rel: "noopener noreferrer" }, this.linkLabel || this.link)), this.useClose && (h("sd-ghost-button", { key: '8cfb8c54a20d71fdc17f9bf8ba5fe6d6ce028ed3', class: "sd-toast__close", icon: "close", ariaLabel: "close", size: "xs", onClick: () => this.close.emit() })))));
|
|
18
18
|
}
|
|
19
19
|
static get is() { return "sd-toast"; }
|
|
20
20
|
static get originalStyleUrls() {
|
package/dist/collection/index.js
CHANGED
|
@@ -7,6 +7,5 @@
|
|
|
7
7
|
* DO NOT use this file to export your components. Instead, use the recommended approaches
|
|
8
8
|
* to consume components of this package as outlined in the `README.md`.
|
|
9
9
|
*/
|
|
10
|
-
export { format } from './utils/utils';
|
|
11
10
|
export { sdToast } from './utils/toast';
|
|
12
11
|
export { sdModal } from './utils/modal';
|
package/dist/components/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{g as getAssetPath,r as render,s as setAssetPath,a as setNonce,b as setPlatformOptions}from"./p-B1vJXa29.js";
|
|
1
|
+
export{g as getAssetPath,r as render,s as setAssetPath,a as setNonce,b as setPlatformOptions}from"./p-B1vJXa29.js";let t=null;function n(t,n){n&&(n.position&&t.setAttribute("position",n.position),null!=n.maxVisible&&t.setAttribute("max-visible",n.maxVisible+""),null!=n.defaultDuration&&t.setAttribute("default-duration",n.defaultDuration+""),null!=n.zIndex&&t.setAttribute("z-index",n.zIndex+""))}function e(e){return t&&document.body.contains(t)?(n(t,e),t):(t=document.createElement("sd-toast-container"),n(t,e),document.body.appendChild(t),t)}function o(t){return"function"==typeof t.create?Promise.resolve():new Promise((n=>{const e=()=>{"function"==typeof t.create?n():requestAnimationFrame(e)};requestAnimationFrame(e)}))}const i={async create(t,n,s){const{globalOptions:i,...r}=s??{},a=e(i);return await o(a),a.create({message:t,type:n,...r})},async dismiss(n){if(t)return await o(t),t.dismiss(n)},async dismissAll(){if(t)return await o(t),t.dismissAll()},configure(t){e(t)}},c="sd-modal-container";class u{modalId;okFn;cancelFn;closeFn;dismissedFn;containerRef;pendingActions=[];constructor(t,n){this.modalId=t,this.containerRef=n}onOk(t){return this.okFn=t,this}onCancel(t){return this.cancelFn=t,this}onClose(t){return this.closeFn=t,this}onDismissed(t){return this.dismissedFn=t,this}update(t){return this.runOrQueue((()=>{this.containerRef.update?.(this.modalId,t)})),this}_triggerOk(){this.okFn?.()}_triggerCancel(){this.cancelFn?.()}_triggerClose(){this.closeFn?.()}_triggerDismissed(){this.dismissedFn?.()}_setId(t){this.modalId=t;const n=[...this.pendingActions];this.pendingActions=[],n.forEach((t=>t()))}runOrQueue(t){this.modalId?t():this.pendingActions.push(t)}}let d=null;function l(t,n){n&&null!=n.zIndex&&t.style.setProperty("--sd-modal-container-z-index",n.zIndex+"")}function m(t){return function(){if("undefined"==typeof window||"undefined"==typeof document||"undefined"==typeof customElements)throw Error("[sdModal] Browser APIs are unavailable. Use `sdModal` only on the client.")}(),function(){if(!customElements.get(c))throw Error("[sdModal] `sd-modal-container` is not registered. Call `defineCustomElements(window)` before using `sdModal`.")}(),d&&document.body.contains(d)?(l(d,t),d):(d=document.createElement(c),l(d,t),document.body.appendChild(d),d)}async function f(t){if(await customElements.whenDefined(c),"function"==typeof t.open)return Promise.resolve();throw Error("[sdModal] `sd-modal-container` is registered but not ready to open dialogs.")}const h={confirm(t){const n=m(),e=new u("",n);return f(n).then((async()=>{const s=await n.open(t,e);e._setId(s)})),e},create(t){const{component:n,persist:e}=t,s=m(),o=new u("",s),i={persistent:e};return f(s).then((async()=>{const t=await s.createCustom(n,i,o);o._setId(t)})),o},configure(t){m(t)}};export{h as sdModal,i as sdToast}
|