@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
package/dist/esm/sd-tag.entry.js
CHANGED
|
@@ -169,7 +169,7 @@ const SdTag = class {
|
|
|
169
169
|
render() {
|
|
170
170
|
const config = this.resolvedConfig;
|
|
171
171
|
const iconNode = this.renderIcon(config.icon, config.iconSize);
|
|
172
|
-
return (h("span", { key: '
|
|
172
|
+
return (h("span", { key: '1cfaeb97f648f8929cdaf6bd5650e400f47cb207', class: "sd-tag", style: {
|
|
173
173
|
'--sd-tag-background': config.background,
|
|
174
174
|
'--sd-tag-content': config.content,
|
|
175
175
|
'--sd-tag-height': config.height,
|
|
@@ -179,7 +179,7 @@ const SdTag = class {
|
|
|
179
179
|
'--sd-tag-font-weight': config.fontWeight,
|
|
180
180
|
'--sd-tag-line-height': config.lineHeight,
|
|
181
181
|
'--sd-tag-radius': config.radius,
|
|
182
|
-
}, "aria-label": this.label || 'tag' }, this.icon && this.isLeft && iconNode, h("span", { key: '
|
|
182
|
+
}, "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));
|
|
183
183
|
}
|
|
184
184
|
};
|
|
185
185
|
SdTag.style = sdTagCss();
|
|
@@ -84,16 +84,16 @@ const SdTextLink = class {
|
|
|
84
84
|
'--sd-text-link-text-decoration': typo.textDecoration,
|
|
85
85
|
'--sd-text-link-color': contentColor,
|
|
86
86
|
};
|
|
87
|
-
return (h("span", { key: '
|
|
87
|
+
return (h("span", { key: '518661e48081a4c128667608ebda9a1dca1b19c0', class: {
|
|
88
88
|
'sd-text-link': true,
|
|
89
89
|
'sd-text-link--disabled': this.disabled,
|
|
90
|
-
}, style: cssVars, onClick: this.handleClick }, this.icon && (h("sd-icon", { key: '
|
|
90
|
+
}, 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: {
|
|
91
91
|
width: `${TEXT_LINK_LAYOUT.arrowFrame}px`,
|
|
92
92
|
height: `${TEXT_LINK_LAYOUT.arrowFrame}px`,
|
|
93
93
|
display: 'inline-flex',
|
|
94
94
|
alignItems: 'center',
|
|
95
95
|
justifyContent: 'center',
|
|
96
|
-
} }, h("sd-icon", { key: '
|
|
96
|
+
} }, h("sd-icon", { key: 'da303224cde569553d8eca8e6215761640ea2470', name: "chevronRight", size: TEXT_LINK_LAYOUT.arrowIconSize, color: arrowColor })))));
|
|
97
97
|
}
|
|
98
98
|
};
|
|
99
99
|
SdTextLink.style = sdTextLinkCss();
|
|
@@ -84,10 +84,10 @@ const SdTextarea = class {
|
|
|
84
84
|
}
|
|
85
85
|
render() {
|
|
86
86
|
const maxLengthCounter = this.getMaxLengthCounter();
|
|
87
|
-
return (h("div", { key: '
|
|
87
|
+
return (h("div", { key: 'cd47db7305c089848a3385932945a99cd3932ebb', class: {
|
|
88
88
|
'sd-textarea': true,
|
|
89
89
|
[this.getTextareaStatus()]: true,
|
|
90
|
-
}, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, h("div", { key: '
|
|
90
|
+
}, 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)))));
|
|
91
91
|
}
|
|
92
92
|
static get watchers() { return {
|
|
93
93
|
"value": [{
|
|
@@ -38,7 +38,7 @@ const TOAST_LAYOUT = {
|
|
|
38
38
|
iconSize: toastTokens.toast.icon,
|
|
39
39
|
};
|
|
40
40
|
|
|
41
|
-
const sdToastCss = () => `sd-toast{display:block;width:fit-content;height:fit-content}sd-toast .sd-toast{display:flex;width:fit-content;align-items:center;gap:var(--sd-toast-gap, 16px);padding:var(--sd-toast-padding-y, 12px) var(--sd-toast-padding-x, 24px);border-radius:var(--sd-toast-radius, 8px);background-color:var(--sd-toast-bg);color:var(--sd-toast-text);box-shadow:2px 2px 8px 2px rgba(0, 0, 0, 0.2)}sd-toast .sd-toast__icon{display:flex;align-items:center;flex-shrink:0}sd-toast .sd-toast__content{display:flex;flex:1}sd-toast .sd-toast__message{font-size:14px;line-height:24px;font-weight:700;white-space:nowrap}sd-toast .sd-toast__link{font-size:14px;line-height:24px;font-weight:700;color:var(--sd-toast-text);text-decoration:underline;cursor:pointer;transition:opacity 0.2s ease;margin-left:4px}sd-toast .sd-toast__link:hover{opacity:0.8}sd-toast .sd-toast__button{flex-shrink:0}sd-toast .sd-toast__button button{color:var(--button-text-color, inherit) !important}sd-toast .sd-toast__close{
|
|
41
|
+
const sdToastCss = () => `sd-toast{display:block;width:fit-content;height:fit-content}sd-toast .sd-toast{display:flex;width:fit-content;align-items:center;gap:var(--sd-toast-gap, 16px);padding:var(--sd-toast-padding-y, 12px) var(--sd-toast-padding-x, 24px);border-radius:var(--sd-toast-radius, 8px);background-color:var(--sd-toast-bg);color:var(--sd-toast-text);box-shadow:2px 2px 8px 2px rgba(0, 0, 0, 0.2)}sd-toast .sd-toast__icon{display:flex;align-items:center;flex-shrink:0}sd-toast .sd-toast__content{display:flex;flex:1}sd-toast .sd-toast__message{font-size:14px;line-height:24px;font-weight:700;white-space:nowrap}sd-toast .sd-toast__link{font-size:14px;line-height:24px;font-weight:700;color:var(--sd-toast-text);text-decoration:underline;cursor:pointer;transition:opacity 0.2s ease;margin-left:4px}sd-toast .sd-toast__link:hover{opacity:0.8}sd-toast .sd-toast__button{flex-shrink:0}sd-toast .sd-toast__button button{color:var(--button-text-color, inherit) !important}sd-toast .sd-toast__close{flex-shrink:0}`;
|
|
42
42
|
|
|
43
43
|
const SdToast = class {
|
|
44
44
|
constructor(hostRef) {
|
|
@@ -55,10 +55,10 @@ const SdToast = class {
|
|
|
55
55
|
render() {
|
|
56
56
|
const typeConfig = TOAST_TYPE_CONFIG[this.type] ?? TOAST_TYPE_CONFIG.default;
|
|
57
57
|
const iconSize = Number(TOAST_LAYOUT.iconSize);
|
|
58
|
-
return (h("div", { key: '
|
|
58
|
+
return (h("div", { key: '9f9332b868ad1ae09854a6eeb7dc0935d412147c', style: {
|
|
59
59
|
'--sd-toast-bg': typeConfig.bg,
|
|
60
60
|
'--sd-toast-text': typeConfig.content,
|
|
61
|
-
} }, h("div", { key: '
|
|
61
|
+
} }, 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() })))));
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
64
|
SdToast.style = sdToastCss();
|
|
@@ -9,7 +9,5 @@ export declare const CONFIRM_MODAL_DEFAULT_BUTTON: Record<ConfirmModalType, Conf
|
|
|
9
9
|
export declare const CONFIRM_MODAL_ICON_MAP: Record<ConfirmModalType, IconName | null>;
|
|
10
10
|
export declare const CONFIRM_MODAL_ICON_COLOR: Record<ConfirmModalType, string>;
|
|
11
11
|
export declare const TITLE_ICON_SIZE: number;
|
|
12
|
-
export declare const CLOSE_ICON_SIZE: number;
|
|
13
|
-
export declare const CLOSE_ICON_COLOR: string;
|
|
14
12
|
export declare const SUB_BUTTON_PRESET: ButtonV2Name;
|
|
15
13
|
export type { TagName, ButtonV2Name };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type GhostButtonSize = 'xxs' | 'xs' | 'sm' | 'md' | 'lg';
|
|
2
|
+
export type GhostButtonIntent = 'default' | 'danger' | 'action';
|
|
3
|
+
export declare const GHOST_BUTTON_FOCUS_RING_COLOR = "#0075FF";
|
|
4
|
+
export declare const GHOST_BUTTON_SIZES: Record<GhostButtonSize, {
|
|
5
|
+
size: number;
|
|
6
|
+
icon: number;
|
|
7
|
+
}>;
|
|
8
|
+
export declare const GHOST_BUTTON_RADIUS: number;
|
|
9
|
+
export declare const GHOST_BUTTON_HOVER_OPACITY: string;
|
|
10
|
+
export declare const GHOST_BUTTON_CONTENT_COLORS: Record<GhostButtonIntent, string>;
|
|
11
|
+
export declare const GHOST_BUTTON_HOVER_BG_COLORS: Record<GhostButtonIntent, string>;
|
|
12
|
+
export declare const GHOST_BUTTON_DISABLED_ICON: string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { type GhostButtonIntent, type GhostButtonSize } from './sd-ghost-button.config';
|
|
3
|
+
export declare class SdGhostButton {
|
|
4
|
+
icon: IconName;
|
|
5
|
+
size: GhostButtonSize;
|
|
6
|
+
intent: GhostButtonIntent;
|
|
7
|
+
ariaLabel: string;
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
click: EventEmitter<MouseEvent>;
|
|
10
|
+
private hasWarnedMissingAriaLabel;
|
|
11
|
+
private handleClick;
|
|
12
|
+
componentWillRender(): void;
|
|
13
|
+
private warnIfMissingAriaLabel;
|
|
14
|
+
render(): any;
|
|
15
|
+
}
|
|
@@ -18,6 +18,7 @@ import { ConfirmModalMainButton, ConfirmModalType, TagName } from "./components/
|
|
|
18
18
|
import { Type } from "./components/sd-date-box/sd-date-box";
|
|
19
19
|
import { DropdownButtonItem, DropdownButtonName, DropdownButtonValue } from "./components/sd-dropdown-button/sd-dropdown-button.config";
|
|
20
20
|
import { ValidatableField } from "./components/sd-form/sd-form";
|
|
21
|
+
import { GhostButtonIntent, GhostButtonSize } from "./components/sd-ghost-button/sd-ghost-button.config";
|
|
21
22
|
import { InputSize } from "./components/sd-input/sd-input.config";
|
|
22
23
|
import { ConfirmModalOptions, ModalDialogChainLike, SdModalCreateOptions } from "./components/sd-modal-container/sd-modal-container.config";
|
|
23
24
|
import { NumberInputSize } from "./components/sd-number-input/sd-number-input.config";
|
|
@@ -50,6 +51,7 @@ export { ConfirmModalMainButton, ConfirmModalType, TagName } from "./components/
|
|
|
50
51
|
export { Type } from "./components/sd-date-box/sd-date-box";
|
|
51
52
|
export { DropdownButtonItem, DropdownButtonName, DropdownButtonValue } from "./components/sd-dropdown-button/sd-dropdown-button.config";
|
|
52
53
|
export { ValidatableField } from "./components/sd-form/sd-form";
|
|
54
|
+
export { GhostButtonIntent, GhostButtonSize } from "./components/sd-ghost-button/sd-ghost-button.config";
|
|
53
55
|
export { InputSize } from "./components/sd-input/sd-input.config";
|
|
54
56
|
export { ConfirmModalOptions, ModalDialogChainLike, SdModalCreateOptions } from "./components/sd-modal-container/sd-modal-container.config";
|
|
55
57
|
export { NumberInputSize } from "./components/sd-number-input/sd-number-input.config";
|
|
@@ -536,6 +538,25 @@ export namespace Components {
|
|
|
536
538
|
"sdUnregisterField": (name: string) => Promise<void>;
|
|
537
539
|
"sdValidate": () => Promise<boolean>;
|
|
538
540
|
}
|
|
541
|
+
interface SdGhostButton {
|
|
542
|
+
/**
|
|
543
|
+
* @default ''
|
|
544
|
+
*/
|
|
545
|
+
"ariaLabel": string;
|
|
546
|
+
/**
|
|
547
|
+
* @default false
|
|
548
|
+
*/
|
|
549
|
+
"disabled": boolean;
|
|
550
|
+
"icon": IconName;
|
|
551
|
+
/**
|
|
552
|
+
* @default 'default'
|
|
553
|
+
*/
|
|
554
|
+
"intent": GhostButtonIntent;
|
|
555
|
+
/**
|
|
556
|
+
* @default 'sm'
|
|
557
|
+
*/
|
|
558
|
+
"size": GhostButtonSize;
|
|
559
|
+
}
|
|
539
560
|
interface SdGuide {
|
|
540
561
|
/**
|
|
541
562
|
* @default ''
|
|
@@ -818,8 +839,8 @@ export namespace Components {
|
|
|
818
839
|
* @default []
|
|
819
840
|
*/
|
|
820
841
|
"buttons": {
|
|
821
|
-
|
|
822
|
-
|
|
842
|
+
[key: string]: any;
|
|
843
|
+
}[];
|
|
823
844
|
/**
|
|
824
845
|
* @default '#01BB4B'
|
|
825
846
|
*/
|
|
@@ -1877,6 +1898,10 @@ export interface SdFormCustomEvent<T> extends CustomEvent<T> {
|
|
|
1877
1898
|
detail: T;
|
|
1878
1899
|
target: HTMLSdFormElement;
|
|
1879
1900
|
}
|
|
1901
|
+
export interface SdGhostButtonCustomEvent<T> extends CustomEvent<T> {
|
|
1902
|
+
detail: T;
|
|
1903
|
+
target: HTMLSdGhostButtonElement;
|
|
1904
|
+
}
|
|
1880
1905
|
export interface SdInputCustomEvent<T> extends CustomEvent<T> {
|
|
1881
1906
|
detail: T;
|
|
1882
1907
|
target: HTMLSdInputElement;
|
|
@@ -2257,6 +2282,23 @@ declare global {
|
|
|
2257
2282
|
prototype: HTMLSdFormElement;
|
|
2258
2283
|
new (): HTMLSdFormElement;
|
|
2259
2284
|
};
|
|
2285
|
+
interface HTMLSdGhostButtonElementEventMap {
|
|
2286
|
+
"sdClick": MouseEvent;
|
|
2287
|
+
}
|
|
2288
|
+
interface HTMLSdGhostButtonElement extends Components.SdGhostButton, HTMLStencilElement {
|
|
2289
|
+
addEventListener<K extends keyof HTMLSdGhostButtonElementEventMap>(type: K, listener: (this: HTMLSdGhostButtonElement, ev: SdGhostButtonCustomEvent<HTMLSdGhostButtonElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2290
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2291
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2292
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
2293
|
+
removeEventListener<K extends keyof HTMLSdGhostButtonElementEventMap>(type: K, listener: (this: HTMLSdGhostButtonElement, ev: SdGhostButtonCustomEvent<HTMLSdGhostButtonElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
2294
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2295
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2296
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
2297
|
+
}
|
|
2298
|
+
var HTMLSdGhostButtonElement: {
|
|
2299
|
+
prototype: HTMLSdGhostButtonElement;
|
|
2300
|
+
new (): HTMLSdGhostButtonElement;
|
|
2301
|
+
};
|
|
2260
2302
|
interface HTMLSdGuideElement extends Components.SdGuide, HTMLStencilElement {
|
|
2261
2303
|
}
|
|
2262
2304
|
var HTMLSdGuideElement: {
|
|
@@ -2842,6 +2884,7 @@ declare global {
|
|
|
2842
2884
|
"sd-file-picker": HTMLSdFilePickerElement;
|
|
2843
2885
|
"sd-floating-portal": HTMLSdFloatingPortalElement;
|
|
2844
2886
|
"sd-form": HTMLSdFormElement;
|
|
2887
|
+
"sd-ghost-button": HTMLSdGhostButtonElement;
|
|
2845
2888
|
"sd-guide": HTMLSdGuideElement;
|
|
2846
2889
|
"sd-icon": HTMLSdIconElement;
|
|
2847
2890
|
"sd-input": HTMLSdInputElement;
|
|
@@ -3361,6 +3404,26 @@ declare namespace LocalJSX {
|
|
|
3361
3404
|
"onSdSubmit"?: (event: SdFormCustomEvent<void>) => void;
|
|
3362
3405
|
"onSdValidationError"?: (event: SdFormCustomEvent<void>) => void;
|
|
3363
3406
|
}
|
|
3407
|
+
interface SdGhostButton {
|
|
3408
|
+
/**
|
|
3409
|
+
* @default ''
|
|
3410
|
+
*/
|
|
3411
|
+
"ariaLabel"?: string;
|
|
3412
|
+
/**
|
|
3413
|
+
* @default false
|
|
3414
|
+
*/
|
|
3415
|
+
"disabled"?: boolean;
|
|
3416
|
+
"icon": IconName;
|
|
3417
|
+
/**
|
|
3418
|
+
* @default 'default'
|
|
3419
|
+
*/
|
|
3420
|
+
"intent"?: GhostButtonIntent;
|
|
3421
|
+
"onSdClick"?: (event: SdGhostButtonCustomEvent<MouseEvent>) => void;
|
|
3422
|
+
/**
|
|
3423
|
+
* @default 'sm'
|
|
3424
|
+
*/
|
|
3425
|
+
"size"?: GhostButtonSize;
|
|
3426
|
+
}
|
|
3364
3427
|
interface SdGuide {
|
|
3365
3428
|
/**
|
|
3366
3429
|
* @default ''
|
|
@@ -3637,8 +3700,8 @@ declare namespace LocalJSX {
|
|
|
3637
3700
|
* @default []
|
|
3638
3701
|
*/
|
|
3639
3702
|
"buttons"?: {
|
|
3640
|
-
|
|
3641
|
-
|
|
3703
|
+
[key: string]: any;
|
|
3704
|
+
}[];
|
|
3642
3705
|
/**
|
|
3643
3706
|
* @default '#01BB4B'
|
|
3644
3707
|
*/
|
|
@@ -4793,6 +4856,13 @@ declare namespace LocalJSX {
|
|
|
4793
4856
|
interface SdFormAttributes {
|
|
4794
4857
|
"formClass": string;
|
|
4795
4858
|
}
|
|
4859
|
+
interface SdGhostButtonAttributes {
|
|
4860
|
+
"icon": IconName;
|
|
4861
|
+
"size": GhostButtonSize;
|
|
4862
|
+
"intent": GhostButtonIntent;
|
|
4863
|
+
"ariaLabel": string;
|
|
4864
|
+
"disabled": boolean;
|
|
4865
|
+
}
|
|
4796
4866
|
interface SdGuideAttributes {
|
|
4797
4867
|
"type": GuideType;
|
|
4798
4868
|
"label": string;
|
|
@@ -5137,6 +5207,7 @@ declare namespace LocalJSX {
|
|
|
5137
5207
|
"sd-file-picker": Omit<SdFilePicker, keyof SdFilePickerAttributes> & { [K in keyof SdFilePicker & keyof SdFilePickerAttributes]?: SdFilePicker[K] } & { [K in keyof SdFilePicker & keyof SdFilePickerAttributes as `attr:${K}`]?: SdFilePickerAttributes[K] } & { [K in keyof SdFilePicker & keyof SdFilePickerAttributes as `prop:${K}`]?: SdFilePicker[K] };
|
|
5138
5208
|
"sd-floating-portal": Omit<SdFloatingPortal, keyof SdFloatingPortalAttributes> & { [K in keyof SdFloatingPortal & keyof SdFloatingPortalAttributes]?: SdFloatingPortal[K] } & { [K in keyof SdFloatingPortal & keyof SdFloatingPortalAttributes as `attr:${K}`]?: SdFloatingPortalAttributes[K] } & { [K in keyof SdFloatingPortal & keyof SdFloatingPortalAttributes as `prop:${K}`]?: SdFloatingPortal[K] };
|
|
5139
5209
|
"sd-form": Omit<SdForm, keyof SdFormAttributes> & { [K in keyof SdForm & keyof SdFormAttributes]?: SdForm[K] } & { [K in keyof SdForm & keyof SdFormAttributes as `attr:${K}`]?: SdFormAttributes[K] } & { [K in keyof SdForm & keyof SdFormAttributes as `prop:${K}`]?: SdForm[K] };
|
|
5210
|
+
"sd-ghost-button": Omit<SdGhostButton, keyof SdGhostButtonAttributes> & { [K in keyof SdGhostButton & keyof SdGhostButtonAttributes]?: SdGhostButton[K] } & { [K in keyof SdGhostButton & keyof SdGhostButtonAttributes as `attr:${K}`]?: SdGhostButtonAttributes[K] } & { [K in keyof SdGhostButton & keyof SdGhostButtonAttributes as `prop:${K}`]?: SdGhostButton[K] } & OneOf<"icon", SdGhostButton["icon"], SdGhostButtonAttributes["icon"]>;
|
|
5140
5211
|
"sd-guide": Omit<SdGuide, keyof SdGuideAttributes> & { [K in keyof SdGuide & keyof SdGuideAttributes]?: SdGuide[K] } & { [K in keyof SdGuide & keyof SdGuideAttributes as `attr:${K}`]?: SdGuideAttributes[K] } & { [K in keyof SdGuide & keyof SdGuideAttributes as `prop:${K}`]?: SdGuide[K] };
|
|
5141
5212
|
"sd-icon": Omit<SdIcon, keyof SdIconAttributes> & { [K in keyof SdIcon & keyof SdIconAttributes]?: SdIcon[K] } & { [K in keyof SdIcon & keyof SdIconAttributes as `attr:${K}`]?: SdIconAttributes[K] } & { [K in keyof SdIcon & keyof SdIconAttributes as `prop:${K}`]?: SdIcon[K] } & OneOf<"name", SdIcon["name"], SdIconAttributes["name"]>;
|
|
5142
5213
|
"sd-input": Omit<SdInput, keyof SdInputAttributes> & { [K in keyof SdInput & keyof SdInputAttributes]?: SdInput[K] } & { [K in keyof SdInput & keyof SdInputAttributes as `attr:${K}`]?: SdInputAttributes[K] } & { [K in keyof SdInput & keyof SdInputAttributes as `prop:${K}`]?: SdInput[K] };
|
|
@@ -5196,6 +5267,7 @@ declare module "@stencil/core" {
|
|
|
5196
5267
|
"sd-file-picker": LocalJSX.IntrinsicElements["sd-file-picker"] & JSXBase.HTMLAttributes<HTMLSdFilePickerElement>;
|
|
5197
5268
|
"sd-floating-portal": LocalJSX.IntrinsicElements["sd-floating-portal"] & JSXBase.HTMLAttributes<HTMLSdFloatingPortalElement>;
|
|
5198
5269
|
"sd-form": LocalJSX.IntrinsicElements["sd-form"] & JSXBase.HTMLAttributes<HTMLSdFormElement>;
|
|
5270
|
+
"sd-ghost-button": LocalJSX.IntrinsicElements["sd-ghost-button"] & JSXBase.HTMLAttributes<HTMLSdGhostButtonElement>;
|
|
5199
5271
|
"sd-guide": LocalJSX.IntrinsicElements["sd-guide"] & JSXBase.HTMLAttributes<HTMLSdGuideElement>;
|
|
5200
5272
|
"sd-icon": LocalJSX.IntrinsicElements["sd-icon"] & JSXBase.HTMLAttributes<HTMLSdIconElement>;
|
|
5201
5273
|
"sd-input": LocalJSX.IntrinsicElements["sd-input"] & JSXBase.HTMLAttributes<HTMLSdInputElement>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -7,7 +7,6 @@
|
|
|
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 type * from './components.d.ts';
|
|
12
11
|
export type { SdTableSortDir, SdTableColumn, Row } from './components/sd-table/sd-table';
|
|
13
12
|
export type { ButtonV2Name, ButtonV2Size, ButtonV2Type, } from './components/sd-button-v2/sd-button-v2.config';
|