@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
|
@@ -73,7 +73,7 @@ const SdSelectV2ListItem = class {
|
|
|
73
73
|
if (isDepth1Group) {
|
|
74
74
|
cssVars['--list-item-border-top'] = `${sdSelectV2_config.LIST_ITEM_COLORS.depth1.borderWidth}px solid ${sdSelectV2_config.LIST_ITEM_COLORS.depth1.border}`;
|
|
75
75
|
}
|
|
76
|
-
return (index.h("div", { key: '
|
|
76
|
+
return (index.h("div", { key: '5c11caeeb2a5d8e13f47098adb32af0d771a9b00', class: {
|
|
77
77
|
'sd-select-v2-list-item': true,
|
|
78
78
|
'sd-select-v2-list-item--group': isGroup,
|
|
79
79
|
'sd-select-v2-list-item--depth1-group': isDepth1Group,
|
|
@@ -83,7 +83,7 @@ const SdSelectV2ListItem = class {
|
|
|
83
83
|
'sd-select-v2-list-item--focused': this.isFocused,
|
|
84
84
|
'sd-select-v2-list-item--selectable': this.isSelectable && !this.option.disabled,
|
|
85
85
|
'sd-select-v2-list-item--disabled': !!this.option.disabled,
|
|
86
|
-
}, style: cssVars, onClick: this.handleClick }, this.useCheckbox && (index.h("sd-checkbox", { key: '
|
|
86
|
+
}, style: cssVars, onClick: this.handleClick }, this.useCheckbox && (index.h("sd-checkbox", { key: 'fe911e3eb7b3ce57a1c6ff88007c9322070712b5', value: this.isSelected === null ? null : !!this.isSelected, disabled: this.option.disabled, class: "sd-select-v2-list-item__checkbox", onClick: this.handleCheckboxClick, onSdUpdate: this.handleCheckboxUpdate })), index.h("span", { key: 'c2fcc803ca012f6a1f708b8a959e2dc5e724ae65', class: "sd-select-v2-list-item__label" }, this.option.label), this.countInfo && (index.h("span", { key: 'efd3d5c4328e0b0f3dfc8176e93f80c8d73cf3b4', class: "sd-select-v2-list-item__count" }, "(", this.countInfo.selected, "/", this.countInfo.total, ")"))));
|
|
87
87
|
}
|
|
88
88
|
};
|
|
89
89
|
SdSelectV2ListItem.style = sdSelectV2ListItemCss();
|
|
@@ -136,12 +136,12 @@ const SdSelectV2ListItemSearch = class {
|
|
|
136
136
|
clearTimeout(this.debounceTimer);
|
|
137
137
|
}
|
|
138
138
|
render() {
|
|
139
|
-
return (index.h("div", { key: '
|
|
139
|
+
return (index.h("div", { key: '76aabf7d27484909131a5a019b091a9162cf579e', class: {
|
|
140
140
|
'sd-select-v2-list-item-search': true,
|
|
141
141
|
'sd-select-v2-list-item-search--scrolled': this.isScrolled,
|
|
142
|
-
} }, index.h("div", { key: '
|
|
142
|
+
} }, index.h("div", { key: 'add67bf72a66f391e59d5b36a0132c8ce3104a72', class: "sd-select-v2-list-item-search__inner" }, index.h("sd-icon", { key: '631a0335fac05e7188132a2c04adcab70b4f8e0f', name: "search", size: 16, color: "grey_70", class: "sd-select-v2-list-item-search__icon" }), index.h("input", { key: '206ea8ce226bf5a9a39da20643dec26682752f56', ref: el => {
|
|
143
143
|
this.inputEl = el;
|
|
144
|
-
}, type: "text", class: "sd-select-v2-list-item-search__input", placeholder: "\uAC80\uC0C9\uC5B4 \uC785\uB825", value: this.searchText, onInput: this.handleInput, onFocus: () => this.searchFocus.emit() }), this.searchText && (index.h("button", { key: '
|
|
144
|
+
}, type: "text", class: "sd-select-v2-list-item-search__input", placeholder: "\uAC80\uC0C9\uC5B4 \uC785\uB825", value: this.searchText, onInput: this.handleInput, onFocus: () => this.searchFocus.emit() }), this.searchText && (index.h("button", { key: '6d1aa5a22f358da1f702c1a4c44acf561bdc2d5f', type: "button", class: "sd-select-v2-list-item-search__clear", onClick: this.handleClear }, index.h("sd-icon", { key: 'a1ec717b949e539bf32701a604e098ffa4c9e783', name: "close", size: 12, color: "#888888" }))))));
|
|
145
145
|
}
|
|
146
146
|
};
|
|
147
147
|
SdSelectV2ListItemSearch.style = sdSelectV2ListItemSearchCss();
|
|
@@ -292,7 +292,7 @@ const SdSelectV2Listbox = class {
|
|
|
292
292
|
'--listbox-radius': `${sdSelectV2_config.LIST_BOX_LAYOUT.radius}px`,
|
|
293
293
|
'--listbox-padding-bottom': `${sdSelectV2_config.LIST_BOX_LAYOUT.paddingBottom}px`,
|
|
294
294
|
};
|
|
295
|
-
return (index.h("div", { key: '
|
|
295
|
+
return (index.h("div", { key: '7728feee63a4e282220abfefcf79a0225255d3e0', class: "sd-select-v2-listbox", style: cssVars }, this.showSearch && (index.h("sd-select-v2-list-item-search", { key: '0c2cbd8ba7ec612307a94962bae3d07655ec6554', isScrolled: this.isScrolled, onSdSearchFilter: this.handleSearchFilter })), index.h("div", { key: 'e0b594dbc86e9dee867fd9573fc84228f5cb48ec', class: "sd-select-v2-listbox__list", onScroll: this.handleScroll, ref: el => {
|
|
296
296
|
this.listEl = el;
|
|
297
297
|
} }, this.isEmpty ? (index.h("div", { class: "sd-select-v2-listbox__empty" }, sdSelectV2_config.EMPTY_MESSAGE)) : this.isDepth ? (this.renderOptions(this.filteredOptions)) : (this.filteredOptions.map(option => (index.h("sd-select-v2-list-item", { option: option, depth: 1, isSelected: this.isOptionSelected(option), isFocused: this.isOptionFocused(option), useCheckbox: this.isMulti, onSdListItemClick: this.handleOptionClick, onMouseEnter: () => this.handleOptionHover(option) })))))));
|
|
298
298
|
}
|
|
@@ -338,11 +338,11 @@ const SdSelectV2Trigger = class {
|
|
|
338
338
|
? sdSelectV2_config.SELECT_COLORS.icon.disabled
|
|
339
339
|
: sdSelectV2_config.SELECT_COLORS.icon.default,
|
|
340
340
|
};
|
|
341
|
-
return (index.h("div", { key: '
|
|
341
|
+
return (index.h("div", { key: 'c26c6817d3df7db251e3043e44504b70a6232dd1', class: {
|
|
342
342
|
'sd-select-v2-trigger': true,
|
|
343
343
|
'sd-select-v2-trigger--open': this.isOpen,
|
|
344
344
|
'sd-select-v2-trigger--disabled': this.disabled,
|
|
345
|
-
}, style: cssVars, onClick: this.handleClick }, index.h("div", { key: '
|
|
345
|
+
}, style: cssVars, onClick: this.handleClick }, index.h("div", { key: '2c99a628d315f1bfe999429f816a21ea62dab6ae', class: "sd-select-v2-trigger__content" }, index.h("span", { key: 'fd9ccefa586982ac1695a3f16cf83bc3d1e11719', class: "sd-select-v2-trigger__text" }, hasValue ? this.displayText : this.placeholder), index.h("sd-icon", { key: '1c7e82fb106945a537931726795d3440e71714c8', name: "chevronDown", size: 12, color: "var(--trigger-icon-color)", class: {
|
|
346
346
|
'sd-select-v2-trigger__icon': true,
|
|
347
347
|
'sd-select-v2-trigger__icon--open': this.isOpen,
|
|
348
348
|
} }))));
|
|
@@ -216,13 +216,13 @@ const SdSelectV2 = class {
|
|
|
216
216
|
this.closeDropdown();
|
|
217
217
|
},
|
|
218
218
|
};
|
|
219
|
-
return (index.h("sd-field", { key: '
|
|
219
|
+
return (index.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: () => {
|
|
220
220
|
this.hovered = true;
|
|
221
221
|
}, onMouseLeave: () => {
|
|
222
222
|
this.hovered = false;
|
|
223
|
-
} }, index.h("div", { key: '
|
|
223
|
+
} }, index.h("div", { key: 'a1cf728f0d8f133ed5766c5f9adb3a955e8927ca', class: "sd-select-v2", ref: el => {
|
|
224
224
|
this.triggerRef = el;
|
|
225
|
-
} }, index.h("sd-select-v2-trigger", { key: '
|
|
225
|
+
} }, index.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) && (index.h("sd-portal", { key: '9a50037ca13cd754f820d6f2f6052f9c4928feb7', ...portalProps }, index.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) })))));
|
|
226
226
|
}
|
|
227
227
|
static get watchers() { return {
|
|
228
228
|
"isOpen": [{
|
|
@@ -23,7 +23,6 @@ const SdTabs = class {
|
|
|
23
23
|
this.value = newValue;
|
|
24
24
|
}
|
|
25
25
|
handleTabClick = (tabValue) => {
|
|
26
|
-
this.value = tabValue;
|
|
27
26
|
this.value = tabValue;
|
|
28
27
|
this.update.emit(tabValue);
|
|
29
28
|
};
|
|
@@ -49,9 +48,9 @@ const SdTabs = class {
|
|
|
49
48
|
return `square_${this.size}_${color}`;
|
|
50
49
|
}
|
|
51
50
|
render() {
|
|
52
|
-
return (index.h("div", { key: '
|
|
51
|
+
return (index.h("div", { key: '74a25ee4311c84e79f4918b884385f27d6af6313', class: this.getContainerClasses() }, this.tabs.map((tab, index$1) => {
|
|
53
52
|
const badgeName = this.getBadgeName(tab);
|
|
54
|
-
return (index.h("div", { key: `tab-${index$1}`, class: this.getTabClasses(tab), "aria-label": tab.label || 'tab', onClick: () => this.handleTabClick(tab.value) }, index.h("span", { "data-label": tab.label, class: "sd-tabs__label" }, tab.label), tab.badge &&
|
|
53
|
+
return (index.h("div", { key: `tab-${index$1}`, class: this.getTabClasses(tab), "aria-label": tab.label || 'tab', onClick: () => this.handleTabClick(tab.value) }, index.h("span", { "data-label": tab.label, class: "sd-tabs__label" }, tab.label), tab.badge && index.h("sd-tag", { name: badgeName, label: tab.badge.toString() })));
|
|
55
54
|
})));
|
|
56
55
|
}
|
|
57
56
|
static get watchers() { return {
|
|
@@ -171,7 +171,7 @@ const SdTag = class {
|
|
|
171
171
|
render() {
|
|
172
172
|
const config = this.resolvedConfig;
|
|
173
173
|
const iconNode = this.renderIcon(config.icon, config.iconSize);
|
|
174
|
-
return (index.h("span", { key: '
|
|
174
|
+
return (index.h("span", { key: '1cfaeb97f648f8929cdaf6bd5650e400f47cb207', class: "sd-tag", style: {
|
|
175
175
|
'--sd-tag-background': config.background,
|
|
176
176
|
'--sd-tag-content': config.content,
|
|
177
177
|
'--sd-tag-height': config.height,
|
|
@@ -181,7 +181,7 @@ const SdTag = class {
|
|
|
181
181
|
'--sd-tag-font-weight': config.fontWeight,
|
|
182
182
|
'--sd-tag-line-height': config.lineHeight,
|
|
183
183
|
'--sd-tag-radius': config.radius,
|
|
184
|
-
}, "aria-label": this.label || 'tag' }, this.icon && this.isLeft && iconNode, index.h("span", { key: '
|
|
184
|
+
}, "aria-label": this.label || 'tag' }, this.icon && this.isLeft && iconNode, index.h("span", { key: 'c858d07e4b33f9d142a7d2719399374c37785fe3', class: "sd-tag__label" }, this.label), this.icon && !this.isLeft && iconNode));
|
|
185
185
|
}
|
|
186
186
|
};
|
|
187
187
|
SdTag.style = sdTagCss();
|
|
@@ -86,16 +86,16 @@ const SdTextLink = class {
|
|
|
86
86
|
'--sd-text-link-text-decoration': typo.textDecoration,
|
|
87
87
|
'--sd-text-link-color': contentColor,
|
|
88
88
|
};
|
|
89
|
-
return (index.h("span", { key: '
|
|
89
|
+
return (index.h("span", { key: '518661e48081a4c128667608ebda9a1dca1b19c0', class: {
|
|
90
90
|
'sd-text-link': true,
|
|
91
91
|
'sd-text-link--disabled': this.disabled,
|
|
92
|
-
}, style: cssVars, onClick: this.handleClick }, this.icon && (index.h("sd-icon", { key: '
|
|
92
|
+
}, style: cssVars, onClick: this.handleClick }, this.icon && (index.h("sd-icon", { key: 'b73b19f38036987ab312e8ce9960280fa863a44e', name: this.icon, size: TEXT_LINK_LAYOUT.iconSize, color: iconColor, class: "sd-text-link__icon" })), index.h("span", { key: 'a61877f0c9740259fa81344b41f43de50d76d582', class: "sd-text-link__label" }, this.label), this.useArrow && (index.h("span", { key: '2887c482820bff0dcbd3e753f979b242b765e5b9', class: "sd-text-link__arrow", style: {
|
|
93
93
|
width: `${TEXT_LINK_LAYOUT.arrowFrame}px`,
|
|
94
94
|
height: `${TEXT_LINK_LAYOUT.arrowFrame}px`,
|
|
95
95
|
display: 'inline-flex',
|
|
96
96
|
alignItems: 'center',
|
|
97
97
|
justifyContent: 'center',
|
|
98
|
-
} }, index.h("sd-icon", { key: '
|
|
98
|
+
} }, index.h("sd-icon", { key: 'da303224cde569553d8eca8e6215761640ea2470', name: "chevronRight", size: TEXT_LINK_LAYOUT.arrowIconSize, color: arrowColor })))));
|
|
99
99
|
}
|
|
100
100
|
};
|
|
101
101
|
SdTextLink.style = sdTextLinkCss();
|
|
@@ -86,10 +86,10 @@ const SdTextarea = class {
|
|
|
86
86
|
}
|
|
87
87
|
render() {
|
|
88
88
|
const maxLengthCounter = this.getMaxLengthCounter();
|
|
89
|
-
return (index.h("div", { key: '
|
|
89
|
+
return (index.h("div", { key: 'cd47db7305c089848a3385932945a99cd3932ebb', class: {
|
|
90
90
|
'sd-textarea': true,
|
|
91
91
|
[this.getTextareaStatus()]: true,
|
|
92
|
-
}, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, index.h("div", { key: '
|
|
92
|
+
}, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, index.h("div", { key: '2768eed1797ecc42e3e9d7a15416f93fa8eb211f', class: "sd-textarea__content" }, index.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() && (index.h("div", { key: '9d4e2e72a87beb9e95009c8824165f136e2b194c', class: "sd-textarea__footer" }, this.helpText !== undefined && index.h("span", { key: 'e420045dbb4cd253125594ea7230818281aa920f', class: "sd-textarea__help-text" }, this.helpText), maxLengthCounter !== null && index.h("span", { key: '3658f7f91c21e301f0fe5b69226a6380d500fbca', class: "sd-textarea__counter" }, maxLengthCounter)))));
|
|
93
93
|
}
|
|
94
94
|
static get watchers() { return {
|
|
95
95
|
"value": [{
|
|
@@ -40,7 +40,7 @@ const TOAST_LAYOUT = {
|
|
|
40
40
|
iconSize: toastTokens.toast.icon,
|
|
41
41
|
};
|
|
42
42
|
|
|
43
|
-
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{
|
|
43
|
+
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}`;
|
|
44
44
|
|
|
45
45
|
const SdToast = class {
|
|
46
46
|
constructor(hostRef) {
|
|
@@ -57,10 +57,10 @@ const SdToast = class {
|
|
|
57
57
|
render() {
|
|
58
58
|
const typeConfig = TOAST_TYPE_CONFIG[this.type] ?? TOAST_TYPE_CONFIG.default;
|
|
59
59
|
const iconSize = Number(TOAST_LAYOUT.iconSize);
|
|
60
|
-
return (index.h("div", { key: '
|
|
60
|
+
return (index.h("div", { key: '9f9332b868ad1ae09854a6eeb7dc0935d412147c', style: {
|
|
61
61
|
'--sd-toast-bg': typeConfig.bg,
|
|
62
62
|
'--sd-toast-text': typeConfig.content,
|
|
63
|
-
} }, index.h("div", { key: '
|
|
63
|
+
} }, index.h("div", { key: '762ac3406fd9d98dc4583244de6744f1e2c6eec6', class: "sd-toast", role: "status", "aria-live": "polite", "aria-atomic": "true" }, this.icon && (index.h("div", { key: '8f7f2ce05c5e0f26b5d4af17284cc67ae35c9677', class: "sd-toast__icon" }, index.h("sd-icon", { key: '456de7bdf8b1ed1c11ec35d73b7b78ee7fd2c9d8', name: this.icon, size: iconSize, color: typeConfig.content }))), index.h("div", { key: 'a4feb91f9a79023413f01f79e2012dc9f9af0d3b', class: "sd-toast__content" }, index.h("span", { key: '091acd520b42f2cd2d0ae199ea540ce9d3a3f59f', class: "sd-toast__message" }, this.message)), this.link && (index.h("a", { key: 'f1738019a27b9f6f98c17183c7acdcbee9f6e00e', href: this.link, class: "sd-toast__link", target: "_blank", rel: "noopener noreferrer" }, this.linkLabel || this.link)), this.useClose && (index.h("sd-ghost-button", { key: '8cfb8c54a20d71fdc17f9bf8ba5fe6d6ce028ed3', class: "sd-toast__close", icon: "close", ariaLabel: "close", size: "xs", onClick: () => this.close.emit() })))));
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
SdToast.style = sdToastCss();
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"components/sd-field/sd-field.js",
|
|
26
26
|
"components/sd-file-picker/sd-file-picker.js",
|
|
27
27
|
"components/sd-floating-portal/sd-floating-portal.js",
|
|
28
|
+
"components/sd-ghost-button/sd-ghost-button.js",
|
|
28
29
|
"components/sd-guide/sd-guide.js",
|
|
29
30
|
"components/sd-icon/sd-icon.js",
|
|
30
31
|
"components/sd-input/sd-input.js",
|
|
@@ -22,5 +22,3 @@ export const ACTION_MODAL_TITLE = {
|
|
|
22
22
|
fontSize: Number(action.title.typography.fontSize),
|
|
23
23
|
lineHeight: Number(action.title.typography.lineHeight),
|
|
24
24
|
};
|
|
25
|
-
export const CLOSE_ICON_SIZE = Number(modal.close.size);
|
|
26
|
-
export const CLOSE_ICON_COLOR = modal.close.color;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { ACTION_MODAL_LAYOUT, ACTION_MODAL_TITLE
|
|
2
|
+
import { ACTION_MODAL_LAYOUT, ACTION_MODAL_TITLE } from "./sd-action-modal.config";
|
|
3
3
|
export class SdActionModal {
|
|
4
4
|
modalTitle = '';
|
|
5
5
|
buttonLabel = '확인';
|
|
@@ -25,7 +25,7 @@ export class SdActionModal {
|
|
|
25
25
|
'--sd-action-modal-title-font-size': `${ACTION_MODAL_TITLE.fontSize}px`,
|
|
26
26
|
'--sd-action-modal-title-line-height': `${ACTION_MODAL_TITLE.lineHeight}px`,
|
|
27
27
|
};
|
|
28
|
-
return (h("div", { key: '
|
|
28
|
+
return (h("div", { key: 'c8d2ab2b26ed09c4e7af102d5c63bd15bea93556', class: "sd-action-modal", style: cssVars }, h("header", { key: '0a2b8ed31201b01570002fc22acd721bfca7cb94', class: "sd-action-modal__header" }, h("h2", { key: '434595ee377242447556598a9e60e94fb776f8a3', class: "sd-action-modal__title" }, this.modalTitle), h("div", { key: 'e60988af90d0abc16508144cb45e2334e096539c', class: "sd-action-modal__header-sub" }, h("slot", { key: '74aabd257bfcbc1458446d8712df399573cecca7', name: "header-sub-title" })), h("sd-ghost-button", { key: 'b4937b9d686047ae8e9bfcd12413dbf42f4e90ad', class: "sd-action-modal__close", icon: "close", ariaLabel: "close", onClick: () => this.close.emit() })), h("div", { key: '9a0a7b4927a4edb4252f843dd1bd71037dbb94dd', class: "sd-action-modal__body" }, h("slot", { key: 'cc92c17e415edf18f990d633fbdaf70dd757da72', name: "body" })), h("footer", { key: '35ff49a26c607430e0bd0553aa6d350cbd6e9423', class: "sd-action-modal__footer" }, h("div", { key: 'cd346a4a7195ad262f2298b512dfac5b3cabff2f', class: "sd-action-modal__footer-sub" }, h("slot", { key: '207c68c831e06e05cc2d17c3ac93aefd47ed9b28', name: "bottom-sub-content" })), h("sd-button-v2", { key: 'f2de8110262e9bc403a3d65ba9324c3b9a6225c9', name: "primary_md", label: this.buttonLabel, onSdClick: () => this.ok.emit() }))));
|
|
29
29
|
}
|
|
30
30
|
static get is() { return "sd-action-modal"; }
|
|
31
31
|
static get originalStyleUrls() {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import inputTokens from "../../tokens/generated/component.textinput.json";
|
|
2
|
-
import systemTokens from "../../tokens/generated/system.json";
|
|
3
2
|
const sm = inputTokens.input.sm;
|
|
4
3
|
const md = inputTokens.input.md;
|
|
5
4
|
export const BARCODE_INPUT_SIZE_MAP = {
|
|
@@ -28,7 +27,3 @@ export const BARCODE_INPUT_COLORS = {
|
|
|
28
27
|
text: inputTokens.input.text,
|
|
29
28
|
icon: inputTokens.input.icon,
|
|
30
29
|
};
|
|
31
|
-
export const BARCODE_INPUT_ICON = {
|
|
32
|
-
frameSize: Number(inputTokens.input.size.icon),
|
|
33
|
-
iconSize: Number(systemTokens.size.field.icon),
|
|
34
|
-
};
|
|
@@ -17,8 +17,8 @@ input:-webkit-autofill:hover,
|
|
|
17
17
|
input:-webkit-autofill:focus,
|
|
18
18
|
input:-webkit-autofill:active {
|
|
19
19
|
-webkit-text-fill-color: #000;
|
|
20
|
-
-webkit-box-shadow: 0 0 0px 1000px #
|
|
21
|
-
box-shadow: 0 0 0px 1000px #
|
|
20
|
+
-webkit-box-shadow: 0 0 0px 1000px #fafaa1 inset;
|
|
21
|
+
box-shadow: 0 0 0px 1000px #fafaa1 inset;
|
|
22
22
|
transition: background-color 5000s ease-in-out 0s;
|
|
23
23
|
}
|
|
24
24
|
|
|
@@ -27,8 +27,8 @@ input:autofill:hover,
|
|
|
27
27
|
input:autofill:focus,
|
|
28
28
|
input:autofill:active {
|
|
29
29
|
-webkit-text-fill-color: #000;
|
|
30
|
-
-webkit-box-shadow: 0 0 0px 1000px #
|
|
31
|
-
box-shadow: 0 0 0px 1000px #
|
|
30
|
+
-webkit-box-shadow: 0 0 0px 1000px #fafaa1 inset;
|
|
31
|
+
box-shadow: 0 0 0px 1000px #fafaa1 inset;
|
|
32
32
|
transition: background-color 5000s ease-in-out 0s;
|
|
33
33
|
}
|
|
34
34
|
|
|
@@ -68,5 +68,8 @@ sd-barcode-input .sd-barcode-input__content .sd-barcode-input__native::placehold
|
|
|
68
68
|
}
|
|
69
69
|
sd-barcode-input .sd-barcode-input__content .sd-barcode-input__clear-icon {
|
|
70
70
|
flex-shrink: 0;
|
|
71
|
-
|
|
71
|
+
}
|
|
72
|
+
sd-barcode-input .sd-barcode-input__content .sd-barcode-input__native[disabled] ~ .sd-barcode-input__clear-icon {
|
|
73
|
+
cursor: not-allowed;
|
|
74
|
+
pointer-events: none;
|
|
72
75
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h, } from "@stencil/core";
|
|
2
2
|
import { nanoid } from "nanoid/non-secure";
|
|
3
|
-
import { BARCODE_INPUT_SIZE_MAP, BARCODE_INPUT_COLORS,
|
|
3
|
+
import { BARCODE_INPUT_SIZE_MAP, BARCODE_INPUT_COLORS, } from "./sd-barcode-input.config";
|
|
4
4
|
export class SdBarcodeInput {
|
|
5
5
|
host;
|
|
6
6
|
value = null;
|
|
@@ -100,7 +100,9 @@ export class SdBarcodeInput {
|
|
|
100
100
|
'--sd-system-radius-field-sm': `${sizeTokens.radius}px`,
|
|
101
101
|
'--sd-system-color-field-bg-default': BARCODE_INPUT_COLORS.bg.barcode,
|
|
102
102
|
};
|
|
103
|
-
return (h("sd-field", { key: '
|
|
103
|
+
return (h("sd-field", { key: '9987023d28947334836b6b0b0c5f493eab91c59c', name: this.name, 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, status: this.status, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("label", { key: 'a3b70f106f4d05a82b9da0fda0c1450fef5a4bd4', class: "sd-barcode-input__content" }, h("slot", { key: '5c6aa9b488ca414d191b538bca0bbcc1aca6cf75', name: "prefix" }), h("input", { key: '94133a24b1ba1e691584a27c5ddd13ded76ff462', name: this.name, ref: el => (this.nativeEl = el), class: `sd-barcode-input__native ${this.inputClass}`, type: "text", value: this.internalValue || '', placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, onInput: this.handleInput, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event), style: this.inputStyle }), h("slot", { key: '04d64be5bd466b68423e44caab9cc513610bef92', name: "suffix" }), this.clearable && this.internalValue && (h("sd-ghost-button", { key: '052388d8e79b249752a6668db221af140b3eea1f', icon: "close", ariaLabel: "close", size: "xxs", disabled: this.disabled, class: "sd-barcode-input__clear-icon", onClick: async () => {
|
|
104
|
+
if (this.disabled)
|
|
105
|
+
return;
|
|
104
106
|
this.internalValue = '';
|
|
105
107
|
await this.formField?.sdValidate();
|
|
106
108
|
} })))));
|
|
@@ -2,10 +2,10 @@ import { h } from "@stencil/core";
|
|
|
2
2
|
import buttonTokens from "../../tokens/generated/component.button.json";
|
|
3
3
|
import { resolveColor } from "../../utils/color";
|
|
4
4
|
const ICON_SIZES = {
|
|
5
|
-
xs: Number(buttonTokens.
|
|
6
|
-
sm: Number(buttonTokens.
|
|
7
|
-
md: Number(buttonTokens.
|
|
8
|
-
lg: Number(buttonTokens.
|
|
5
|
+
xs: Number(buttonTokens.xs.icon),
|
|
6
|
+
sm: Number(buttonTokens.sm.icon),
|
|
7
|
+
md: Number(buttonTokens.md.icon),
|
|
8
|
+
lg: Number(buttonTokens.lg.icon),
|
|
9
9
|
};
|
|
10
10
|
export class SdButton {
|
|
11
11
|
el;
|
|
@@ -51,7 +51,7 @@ export class SdButton {
|
|
|
51
51
|
const buttonClasses = this.getButtonClasses();
|
|
52
52
|
// 유틸로 색상 키 -> HEX 매핑 (없으면 원본 그대로)
|
|
53
53
|
const resolvedColor = resolveColor(this.color);
|
|
54
|
-
return (h("button", { key: '
|
|
54
|
+
return (h("button", { key: '079f66bd47a67c5e7cf95ff6b0b6a10aa84697d5', class: `${buttonClasses} ${this.sdClass}`, type: this.type, disabled: this.disabled, style: { '--button-color': resolvedColor }, onClick: this.handleClick }, h("div", { key: '78c7b1b6b7828fe93c5a2752fbaf41b0b8c17cb2', class: "sd-button__content" }, this.icon && (h("sd-icon", { key: '3f0afbeec89e0064f404d4967870516c87f35ac2', class: "sd-button__icon sd-button__icon--left", name: this.icon, size: this.iconSize ?? ICON_SIZES[this.size], color: this.iconColor ?? (this.variant === 'primary' ? '#fff' : resolvedColor) })), this.label && h("div", { key: '319ac39031f4118489d88eec50eb590067422f87', class: "sd-button__label" }, this.label), this.iconRight && (h("sd-icon", { key: '3e25e709e39ffbaceec0863c4fc5c54b8d34d5e1', class: "sd-button__icon sd-button__icon--right", name: this.iconRight, size: ICON_SIZES[this.size], color: this.variant === 'primary' ? '#fff' : resolvedColor })))));
|
|
55
55
|
}
|
|
56
56
|
static get is() { return "sd-button"; }
|
|
57
57
|
static get originalStyleUrls() {
|
|
@@ -131,10 +131,10 @@ export const BUTTON_CONFIG = {
|
|
|
131
131
|
},
|
|
132
132
|
};
|
|
133
133
|
export const BUTTON_ICON_SIZES = {
|
|
134
|
-
xs: Number(buttonTokens.
|
|
135
|
-
sm: Number(buttonTokens.
|
|
136
|
-
md: Number(buttonTokens.
|
|
137
|
-
lg: Number(buttonTokens.
|
|
134
|
+
xs: Number(buttonTokens.xs.icon),
|
|
135
|
+
sm: Number(buttonTokens.sm.icon),
|
|
136
|
+
md: Number(buttonTokens.md.icon),
|
|
137
|
+
lg: Number(buttonTokens.lg.icon),
|
|
138
138
|
};
|
|
139
139
|
export const PRESET_HOVER_BACKGROUNDS = {
|
|
140
140
|
primary: buttonTokens.brand.strong.bg.hover,
|
|
@@ -15,6 +15,4 @@ export const CONFIRM_MODAL_ICON_COLOR = {
|
|
|
15
15
|
default: '',
|
|
16
16
|
};
|
|
17
17
|
export const TITLE_ICON_SIZE = Number(modalTokens.modal.confirm.title.icon);
|
|
18
|
-
export const CLOSE_ICON_SIZE = Number(modalTokens.modal.close.size);
|
|
19
|
-
export const CLOSE_ICON_COLOR = modalTokens.modal.close.color;
|
|
20
18
|
export const SUB_BUTTON_PRESET = 'neutral_outline_md';
|
|
@@ -12,9 +12,8 @@ sd-confirm-modal .sd-confirm-modal {
|
|
|
12
12
|
}
|
|
13
13
|
sd-confirm-modal .sd-confirm-modal__close-button {
|
|
14
14
|
position: absolute;
|
|
15
|
-
top:
|
|
16
|
-
right:
|
|
17
|
-
cursor: pointer;
|
|
15
|
+
top: 12px;
|
|
16
|
+
right: 12px;
|
|
18
17
|
}
|
|
19
18
|
sd-confirm-modal .sd-confirm-modal__icon {
|
|
20
19
|
display: block;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { CONFIRM_MODAL_ICON_MAP, CONFIRM_MODAL_ICON_COLOR, CONFIRM_MODAL_DEFAULT_BUTTON, TITLE_ICON_SIZE,
|
|
2
|
+
import { CONFIRM_MODAL_ICON_MAP, CONFIRM_MODAL_ICON_COLOR, CONFIRM_MODAL_DEFAULT_BUTTON, TITLE_ICON_SIZE, SUB_BUTTON_PRESET, } from "./sd-confirm-modal.config";
|
|
3
3
|
export class SdConfirmModal {
|
|
4
4
|
el;
|
|
5
5
|
hasSlottedContent = false;
|
|
@@ -67,9 +67,9 @@ export class SdConfirmModal {
|
|
|
67
67
|
render() {
|
|
68
68
|
const iconName = CONFIRM_MODAL_ICON_MAP[this.type];
|
|
69
69
|
const iconColor = CONFIRM_MODAL_ICON_COLOR[this.type];
|
|
70
|
-
return (h("div", { key: '
|
|
70
|
+
return (h("div", { key: '8c4e6a948ffb27ea597dfc9d200b689c2667404a', class: "sd-confirm-modal" }, h("sd-ghost-button", { key: '4acc52151149bdaf882e097fc12cae7ea10303c4', class: "sd-confirm-modal__close-button", icon: "close", ariaLabel: "close", onClick: () => this.close.emit() }), iconName && (h("sd-icon", { key: '95ba699cf46bb6eaefdca98f37b45eef38e3e8b2', class: "sd-confirm-modal__icon", name: iconName, size: TITLE_ICON_SIZE, color: iconColor })), h("h2", { key: 'bb58b92c976751935ba4984f46a41edf0ee7ecb9', class: `sd-confirm-modal__title ${this.titleClass}` }, this.modalTitle), h("div", { key: 'eccfb9b1f1c87e75a4a768802720b5f3468f167a', class: "sd-confirm-modal__body" }, (this.topMessage ?? []).length > 0 && (h("div", { key: '4c318650406ed9e75cc584ad3262d3782425fe31', class: "sd-confirm-modal__message" }, (this.topMessage ?? []).map(msg => (h("p", { class: "sd-confirm-modal__message-text", innerHTML: msg }))))), this.showContentBox && (h("div", { key: 'f19744c657f73883ecafcbddc6b69e055e4694ec', class: "sd-confirm-modal__content-box" }, this.tagContents ? (h("div", { class: "sd-confirm-modal__custom-content", ref: el => {
|
|
71
71
|
this.customContentRef = el;
|
|
72
|
-
} })) : (h("slot", { onSlotchange: () => this.syncHasSlottedContent() }, this.tagLabel && h("sd-tag", { name: this.tagPreset, label: this.tagLabel }), this.slotLabel && (h("span", { class: "sd-confirm-modal__slot-label" }, this.slotLabel)))))), (this.bottomMessage ?? []).length > 0 && (h("div", { key: '
|
|
72
|
+
} })) : (h("slot", { onSlotchange: () => this.syncHasSlottedContent() }, this.tagLabel && h("sd-tag", { name: this.tagPreset, label: this.tagLabel }), this.slotLabel && (h("span", { class: "sd-confirm-modal__slot-label" }, this.slotLabel)))))), (this.bottomMessage ?? []).length > 0 && (h("div", { key: '32cdf1a8ad4289cde89c13d1d250bc93f9392c73', class: "sd-confirm-modal__message" }, (this.bottomMessage ?? []).map(msg => (h("p", { class: "sd-confirm-modal__message-text", innerHTML: msg })))))), h("div", { key: '1ced06b3bbc49593b9709fad227adcc3119e895b', class: "sd-confirm-modal__button" }, this.subButtonLabel && (h("sd-button-v2", { key: 'cc7f45c6e6d3e0f925f581eff030e20dc0c40163', name: SUB_BUTTON_PRESET, label: this.subButtonLabel, onSdClick: () => this.cancel.emit() })), h("sd-button-v2", { key: '78d55d4d0f2e2aae9d2692bbc142cf74d8d1795b', name: this.resolvedMainButton, label: this.mainButtonLabel, onSdClick: () => this.ok.emit() }))));
|
|
73
73
|
}
|
|
74
74
|
static get is() { return "sd-confirm-modal"; }
|
|
75
75
|
static get originalStyleUrls() {
|
|
@@ -39,6 +39,8 @@ export class SdFilePicker {
|
|
|
39
39
|
this.update?.emit(this.value);
|
|
40
40
|
};
|
|
41
41
|
handleClear = (event) => {
|
|
42
|
+
if (this.disabled)
|
|
43
|
+
return;
|
|
42
44
|
event.stopPropagation();
|
|
43
45
|
const clearedValue = this.multiple ? [] : null;
|
|
44
46
|
this.value = clearedValue;
|
|
@@ -91,15 +93,15 @@ export class SdFilePicker {
|
|
|
91
93
|
render() {
|
|
92
94
|
const hasFiles = this.hasFiles();
|
|
93
95
|
const displayText = this.getDisplayText();
|
|
94
|
-
return (h("div", { key: '
|
|
96
|
+
return (h("div", { key: 'b30f68abd7b5954ed60843fb436963306b3c9d58', class: {
|
|
95
97
|
'sd-file-picker': true,
|
|
96
98
|
[this.getStatusClass()]: true,
|
|
97
99
|
'sd-file-picker--inline': this.inline,
|
|
98
|
-
}, onClick: this.handleClick, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, h("input", { key: '
|
|
100
|
+
}, onClick: this.handleClick, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, h("input", { key: '6b0432850bc995ced5a87d2db33d5c669bb9f53d', ref: el => (this.fileInputRef = el), type: "file", class: "sd-file-picker__input", disabled: this.disabled, multiple: this.multiple, accept: this.accept, onInput: this.handleFileChange, "aria-label": this.placeholder }), h("sd-icon", { key: 'bf0efeaf7aac37cc8fed9a1f6dca8179be053506', name: "attachFile", size: 16, color: this.getIconColor(), class: "sd-file-picker__icon" }), h("div", { key: '7b8cdf49421b152f1cc14360a93b0b8a088e6125', ref: el => (this.fileNamesRef = el), class: {
|
|
99
101
|
'sd-file-picker__text': true,
|
|
100
102
|
'sd-file-picker__text--placeholder': !hasFiles,
|
|
101
103
|
'sd-file-picker__text--active': hasFiles,
|
|
102
|
-
} }, displayText), !this.disabled && hasFiles && (h("sd-
|
|
104
|
+
} }, displayText), !this.disabled && hasFiles && (h("sd-ghost-button", { key: '73386aa53e838065297d444310a33e32e0cb7c8a', icon: "close", size: "xxs", disabled: this.disabled, class: "sd-file-picker__clear-icon", onClick: this.handleClear })), this.showTooltip && hasFiles && this.hovered && (h("div", { key: '54b4337797351ba86b391a020fa5260e807ff27e', class: "sd-file-picker__tooltip" }, displayText))));
|
|
103
105
|
}
|
|
104
106
|
static get is() { return "sd-file-picker"; }
|
|
105
107
|
static get originalStyleUrls() {
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import ghostButtonTokens from "../../tokens/generated/component.ghostButton.json";
|
|
2
|
+
export const GHOST_BUTTON_FOCUS_RING_COLOR = '#0075FF';
|
|
3
|
+
export const GHOST_BUTTON_SIZES = {
|
|
4
|
+
xxs: {
|
|
5
|
+
size: Number(ghostButtonTokens.ghostButton.xxs.size),
|
|
6
|
+
icon: Number(ghostButtonTokens.ghostButton.xxs.icon),
|
|
7
|
+
},
|
|
8
|
+
xs: {
|
|
9
|
+
size: Number(ghostButtonTokens.ghostButton.xs.size),
|
|
10
|
+
icon: Number(ghostButtonTokens.ghostButton.xs.icon),
|
|
11
|
+
},
|
|
12
|
+
sm: {
|
|
13
|
+
size: Number(ghostButtonTokens.ghostButton.sm.size),
|
|
14
|
+
icon: Number(ghostButtonTokens.ghostButton.sm.icon),
|
|
15
|
+
},
|
|
16
|
+
md: {
|
|
17
|
+
size: Number(ghostButtonTokens.ghostButton.md.size),
|
|
18
|
+
icon: Number(ghostButtonTokens.ghostButton.md.icon),
|
|
19
|
+
},
|
|
20
|
+
lg: {
|
|
21
|
+
size: Number(ghostButtonTokens.ghostButton.lg.size),
|
|
22
|
+
icon: Number(ghostButtonTokens.ghostButton.lg.icon),
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
export const GHOST_BUTTON_RADIUS = Number(ghostButtonTokens.ghostButton.radius);
|
|
26
|
+
export const GHOST_BUTTON_HOVER_OPACITY = ghostButtonTokens.ghostButton.hover.opacity;
|
|
27
|
+
export const GHOST_BUTTON_CONTENT_COLORS = {
|
|
28
|
+
default: ghostButtonTokens.ghostButton.default.content,
|
|
29
|
+
danger: ghostButtonTokens.ghostButton.danger.content,
|
|
30
|
+
action: ghostButtonTokens.ghostButton.action.content,
|
|
31
|
+
};
|
|
32
|
+
export const GHOST_BUTTON_HOVER_BG_COLORS = {
|
|
33
|
+
default: ghostButtonTokens.ghostButton.default.hover.bg,
|
|
34
|
+
danger: ghostButtonTokens.ghostButton.danger.hover.bg,
|
|
35
|
+
action: ghostButtonTokens.ghostButton.action.hover.bg,
|
|
36
|
+
};
|
|
37
|
+
export const GHOST_BUTTON_DISABLED_ICON = ghostButtonTokens.ghostButton.icon.disabled;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
sd-ghost-button {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
width: fit-content;
|
|
4
|
+
height: fit-content;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.sd-ghost-button {
|
|
8
|
+
position: relative;
|
|
9
|
+
display: inline-flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
width: var(--sd-ghost-button-size);
|
|
13
|
+
height: var(--sd-ghost-button-size);
|
|
14
|
+
padding: 0;
|
|
15
|
+
border: none;
|
|
16
|
+
border-radius: var(--sd-ghost-button-radius);
|
|
17
|
+
background: transparent;
|
|
18
|
+
cursor: pointer;
|
|
19
|
+
box-sizing: border-box;
|
|
20
|
+
transition: box-shadow 0.2s ease;
|
|
21
|
+
-webkit-user-select: none;
|
|
22
|
+
user-select: none;
|
|
23
|
+
}
|
|
24
|
+
.sd-ghost-button::before {
|
|
25
|
+
content: "";
|
|
26
|
+
position: absolute;
|
|
27
|
+
inset: 0;
|
|
28
|
+
border-radius: inherit;
|
|
29
|
+
background: var(--sd-ghost-button-hover-bg);
|
|
30
|
+
opacity: 0;
|
|
31
|
+
transition: opacity 0.2s ease;
|
|
32
|
+
pointer-events: none;
|
|
33
|
+
}
|
|
34
|
+
.sd-ghost-button:hover:not(.sd-ghost-button--disabled)::before {
|
|
35
|
+
opacity: var(--sd-ghost-button-hover-opacity);
|
|
36
|
+
}
|
|
37
|
+
.sd-ghost-button:focus-visible {
|
|
38
|
+
outline: 0;
|
|
39
|
+
box-shadow: 0 0 0 2px var(--sd-ghost-button-accent);
|
|
40
|
+
}
|
|
41
|
+
.sd-ghost-button--disabled {
|
|
42
|
+
cursor: not-allowed;
|
|
43
|
+
}
|