@sellmate/design-system 1.9.0 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/design-system.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/sd-badge.cjs.entry.js +1 -1
- package/dist/cjs/sd-barcode-input.cjs.entry.js +1 -1
- package/dist/cjs/{sd-button.config-WeoddlTQ.js → sd-button.config-eTAJM2iW.js} +17 -3
- package/dist/cjs/sd-button_2.cjs.entry.js +6 -5
- package/dist/cjs/sd-calendar_2.cjs.entry.js +5 -5
- package/dist/cjs/sd-callout.cjs.entry.js +1 -1
- package/dist/cjs/sd-card.cjs.entry.js +1 -1
- package/dist/cjs/sd-chip-input.cjs.entry.js +274 -0
- package/dist/cjs/sd-chip.cjs.entry.js +14 -84
- package/dist/cjs/sd-chip.config-DiLoRpct.js +71 -0
- package/dist/cjs/sd-circle-progress.cjs.entry.js +1 -1
- package/dist/cjs/sd-confirm-modal_2.cjs.entry.js +3 -3
- package/dist/cjs/sd-date-picker_7.cjs.entry.js +9 -9
- package/dist/cjs/sd-date-range-picker-calendar.cjs.entry.js +1 -1
- package/dist/cjs/sd-divider.cjs.entry.js +1 -1
- package/dist/cjs/sd-dropdown-button.cjs.entry.js +9 -5
- package/dist/cjs/sd-field_3.cjs.entry.js +9 -8
- package/dist/cjs/sd-ghost-button_2.cjs.entry.js +407 -0
- package/dist/cjs/sd-linear-progress.cjs.entry.js +1 -1
- package/dist/cjs/sd-loading-container.cjs.entry.js +2 -2
- package/dist/cjs/sd-pagination_4.cjs.entry.js +8 -8
- package/dist/cjs/sd-popup.cjs.entry.js +1 -1
- package/dist/cjs/sd-portal.cjs.entry.js +1 -1
- package/dist/cjs/sd-select-list-item_2.cjs.entry.js +6 -6
- package/dist/cjs/sd-select_3.cjs.entry.js +8 -8
- package/dist/cjs/sd-switch.cjs.entry.js +1 -1
- package/dist/cjs/sd-table.cjs.entry.js +6 -6
- package/dist/cjs/sd-tabs.cjs.entry.js +5 -2
- package/dist/cjs/sd-td.cjs.entry.js +1 -1
- package/dist/cjs/sd-toast-container.cjs.entry.js +1 -1
- package/dist/cjs/sd-toast.cjs.entry.js +2 -2
- package/dist/cjs/sd-toggle.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/sd-badge/sd-badge.js +1 -1
- package/dist/collection/components/sd-barcode-input/sd-barcode-input.js +1 -1
- package/dist/collection/components/sd-button/sd-button.config.js +9 -1
- package/dist/collection/components/sd-button/sd-button.css +6 -5
- package/dist/collection/components/sd-button/sd-button.js +5 -4
- package/dist/collection/components/sd-calendar/sd-calendar.js +3 -3
- package/dist/collection/components/sd-callout/sd-callout.js +1 -1
- package/dist/collection/components/sd-card/sd-card.js +1 -1
- package/dist/collection/components/sd-chip/sd-chip.config.js +0 -1
- package/dist/collection/components/sd-chip/sd-chip.css +5 -0
- package/dist/collection/components/sd-chip/sd-chip.js +7 -5
- package/dist/collection/components/sd-chip-input/sd-chip-input.config.js +48 -0
- package/dist/collection/components/sd-chip-input/sd-chip-input.css +92 -0
- package/dist/collection/components/sd-chip-input/sd-chip-input.js +709 -0
- package/dist/collection/components/sd-circle-progress/sd-circle-progress.js +1 -1
- package/dist/collection/components/sd-confirm-modal/sd-confirm-modal.js +2 -2
- package/dist/collection/components/sd-date-picker/sd-date-picker-trigger/sd-date-picker-trigger.js +2 -2
- package/dist/collection/components/sd-date-picker/sd-date-picker.js +2 -2
- package/dist/collection/components/sd-date-range-picker/sd-date-range-picker-calendar/sd-date-range-picker-calendar.js +1 -1
- package/dist/collection/components/sd-divider/sd-divider.js +1 -1
- package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.config.js +3 -2
- package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.css +4 -0
- package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.js +5 -3
- package/dist/collection/components/sd-field/sd-field.js +6 -5
- package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +1 -1
- package/dist/collection/components/sd-ghost-button/sd-ghost-button.css +21 -0
- package/dist/collection/components/sd-ghost-button/sd-ghost-button.js +27 -2
- package/dist/collection/components/sd-input/sd-input.js +2 -2
- package/dist/collection/components/sd-linear-progress/sd-linear-progress.js +1 -1
- package/dist/collection/components/sd-loading-container/sd-loading-container.js +2 -2
- package/dist/collection/components/sd-loading-modal/sd-loading-modal.js +1 -1
- package/dist/collection/components/sd-number-input/sd-number-input.js +4 -4
- package/dist/collection/components/sd-pagination/sd-pagination.js +3 -3
- package/dist/collection/components/sd-popup/sd-popup.js +1 -1
- package/dist/collection/components/sd-portal/sd-portal.js +1 -1
- package/dist/collection/components/sd-select/sd-select-list-item/sd-select-list-item.js +2 -2
- package/dist/collection/components/sd-select/sd-select-list-item-search/sd-select-list-item-search.js +4 -4
- package/dist/collection/components/sd-select/sd-select-listbox/sd-select-listbox.js +2 -2
- package/dist/collection/components/sd-select/sd-select-trigger/sd-select-trigger.js +2 -2
- package/dist/collection/components/sd-select/sd-select.js +4 -4
- package/dist/collection/components/sd-switch/sd-switch.js +1 -1
- package/dist/collection/components/sd-table/sd-table.js +6 -6
- package/dist/collection/components/sd-table/sd-tbody/sd-tbody.js +2 -2
- package/dist/collection/components/sd-table/sd-td/sd-td.js +1 -1
- package/dist/collection/components/sd-table/sd-thead/sd-thead.js +3 -3
- package/dist/collection/components/sd-tabs/sd-tabs.css +27 -0
- package/dist/collection/components/sd-tabs/sd-tabs.js +24 -1
- package/dist/collection/components/sd-tag/sd-tag.js +2 -2
- package/dist/collection/components/sd-textarea/sd-textarea.js +1 -1
- package/dist/collection/components/sd-toast/sd-toast.js +2 -2
- package/dist/collection/components/sd-toast-container/sd-toast-container.js +1 -1
- package/dist/collection/components/sd-toggle/sd-toggle.js +1 -1
- package/dist/collection/components/sd-tooltip/sd-tooltip.js +2 -2
- package/dist/components/{p-CnCH_nnG.js → p-0KaFFbD8.js} +1 -1
- package/dist/components/{p-B3vmDhWb.js → p-4XivETkt.js} +1 -1
- package/dist/components/p-AmkZCF9y.js +1 -0
- package/dist/components/p-BA8i1i5_.js +1 -0
- package/dist/components/{p-7TYtYYrb.js → p-BcsFHQH8.js} +1 -1
- package/dist/components/{p-C_RL1gZR.js → p-BnaD56dI.js} +1 -1
- package/dist/components/p-Bq9q5LoZ.js +1 -0
- package/dist/components/p-BwUUaGFU.js +1 -0
- package/dist/components/{p-C2LhOf89.js → p-CJdrq8cV.js} +1 -1
- package/dist/components/{p-Due8URWT.js → p-CJr5BdNN.js} +1 -1
- package/dist/components/p-CWlwx4xx.js +1 -0
- package/dist/components/p-CWz_dfBG.js +1 -0
- package/dist/components/{p-PDLDFsH7.js → p-CjVOfLam.js} +1 -1
- package/dist/components/{p-BaOCZ7B6.js → p-Ck9bJZTm.js} +1 -1
- package/dist/components/{p-BS1cT5dG.js → p-CkQzw2e0.js} +1 -1
- package/dist/components/p-CqvS2J1B.js +1 -0
- package/dist/components/p-CyGi6aGo.js +1 -0
- package/dist/components/p-Cz9ralVS.js +1 -0
- package/dist/components/{p-C8MKSPNX.js → p-D4TisqIF.js} +1 -1
- package/dist/components/{p-B5XCkCeg.js → p-D5O7fZYw.js} +1 -1
- package/dist/components/{p-BDUIw6As.js → p-DApxX0af.js} +1 -1
- package/dist/components/p-DR0N8_Vt.js +1 -0
- package/dist/components/p-DUhqd8c7.js +1 -0
- package/dist/components/{p-DLNwV8Wa.js → p-DmbwfZF7.js} +1 -1
- package/dist/components/p-Dp6NByuZ.js +1 -0
- package/dist/components/{p-CwUPCrDk.js → p-Dt9-l05k.js} +1 -1
- package/dist/components/{p-J57vnHhu.js → p-DwU-e9i1.js} +1 -1
- package/dist/components/{p-BnJJAhY6.js → p-Dwl1u73P.js} +1 -1
- package/dist/components/{p-yTY5CmAx.js → p-NaAHdFVI.js} +1 -1
- package/dist/components/{p-B8Z5qc_1.js → p-jtJFHONo.js} +1 -1
- package/dist/components/sd-action-modal.js +1 -1
- package/dist/components/sd-badge.js +1 -1
- package/dist/components/sd-barcode-input.js +1 -1
- package/dist/components/sd-button.js +1 -1
- package/dist/components/sd-calendar.js +1 -1
- package/dist/components/sd-callout.js +1 -1
- package/dist/components/sd-card.js +1 -1
- package/dist/components/sd-chip-input.d.ts +11 -0
- package/dist/components/sd-chip-input.js +1 -0
- package/dist/components/sd-chip.js +1 -1
- package/dist/components/sd-circle-progress.js +1 -1
- package/dist/components/sd-confirm-modal.js +1 -1
- package/dist/components/sd-date-picker-trigger.js +1 -1
- package/dist/components/sd-date-picker.js +1 -1
- package/dist/components/sd-date-range-picker-calendar.js +1 -1
- package/dist/components/sd-date-range-picker.js +1 -1
- package/dist/components/sd-divider.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.js +1 -1
- package/dist/components/sd-guide.js +1 -1
- package/dist/components/sd-input.js +1 -1
- package/dist/components/sd-key-value-table.js +1 -1
- package/dist/components/sd-linear-progress.js +1 -1
- package/dist/components/sd-loading-container.js +1 -1
- package/dist/components/sd-loading-modal.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-popup.js +1 -1
- package/dist/components/sd-portal.js +1 -1
- package/dist/components/sd-select-list-item-search.js +1 -1
- package/dist/components/sd-select-list-item.js +1 -1
- package/dist/components/sd-select-listbox.js +1 -1
- package/dist/components/sd-select-trigger.js +1 -1
- package/dist/components/sd-select.js +1 -1
- package/dist/components/sd-switch.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-tbody.js +1 -1
- package/dist/components/sd-td.js +1 -1
- package/dist/components/sd-textarea.js +1 -1
- package/dist/components/sd-thead.js +1 -1
- package/dist/components/sd-toast-container.js +1 -1
- package/dist/components/sd-toast.js +1 -1
- package/dist/components/sd-toggle.js +1 -1
- package/dist/components/sd-tooltip.js +1 -1
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/design-system/{p-6716691b.entry.js → p-0ac4d17b.entry.js} +1 -1
- package/dist/design-system/{p-19d47ac2.entry.js → p-12c1ddfc.entry.js} +1 -1
- package/dist/design-system/{p-8926c5ec.entry.js → p-15518cf5.entry.js} +1 -1
- package/dist/design-system/{p-de743615.entry.js → p-20ebfd9e.entry.js} +1 -1
- package/dist/design-system/{p-11e99ac5.entry.js → p-24cb3aef.entry.js} +1 -1
- package/dist/design-system/p-2f53e2f9.entry.js +1 -0
- package/dist/design-system/{p-3eb72b33.entry.js → p-36b8f224.entry.js} +1 -1
- package/dist/design-system/{p-86db28ce.entry.js → p-3bd59260.entry.js} +1 -1
- package/dist/design-system/p-4fd59127.entry.js +1 -0
- package/dist/design-system/{p-95cce55d.entry.js → p-5b2dd552.entry.js} +1 -1
- package/dist/design-system/p-5deefcbc.entry.js +1 -0
- package/dist/design-system/{p-e1ef1eb8.entry.js → p-6ebd85ae.entry.js} +1 -1
- package/dist/design-system/p-798c0f9b.entry.js +1 -0
- package/dist/design-system/p-7ca9a6c9.entry.js +1 -0
- package/dist/design-system/{p-5b7ea330.entry.js → p-9f899376.entry.js} +1 -1
- package/dist/design-system/p-9ff473b2.entry.js +1 -0
- package/dist/design-system/p-DDj5KTBF.js +1 -0
- package/dist/design-system/p-DjcjlPt7.js +1 -0
- package/dist/design-system/p-a1f248ed.entry.js +1 -0
- package/dist/design-system/{p-1dd139cb.entry.js → p-a9892cbe.entry.js} +1 -1
- package/dist/design-system/{p-39a2bf05.entry.js → p-acaaf137.entry.js} +1 -1
- package/dist/design-system/{p-06344171.entry.js → p-b1d1f1d3.entry.js} +1 -1
- package/dist/design-system/{p-4ca63a2d.entry.js → p-b495f26c.entry.js} +1 -1
- package/dist/design-system/{p-362ac234.entry.js → p-b63c672a.entry.js} +1 -1
- package/dist/design-system/{p-b3b46576.entry.js → p-bbae006c.entry.js} +1 -1
- package/dist/design-system/p-bbb51afa.entry.js +1 -0
- package/dist/design-system/p-d40ffa84.entry.js +1 -0
- package/dist/design-system/{p-acfe5585.entry.js → p-e4944ae6.entry.js} +1 -1
- package/dist/design-system/{p-a0607a9f.entry.js → p-e5f1156c.entry.js} +1 -1
- package/dist/design-system/p-f462bc54.entry.js +1 -0
- package/dist/design-system/{p-21f654e3.entry.js → p-f8b6b169.entry.js} +1 -1
- package/dist/design-system/{p-a0daadc8.entry.js → p-fcd3961f.entry.js} +1 -1
- package/dist/esm/design-system.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/sd-badge.entry.js +1 -1
- package/dist/esm/sd-barcode-input.entry.js +1 -1
- package/dist/esm/{sd-button.config-CdRvJ-Uc.js → sd-button.config-DjcjlPt7.js} +16 -3
- package/dist/esm/sd-button_2.entry.js +6 -5
- package/dist/esm/sd-calendar_2.entry.js +5 -5
- package/dist/esm/sd-callout.entry.js +1 -1
- package/dist/esm/sd-card.entry.js +1 -1
- package/dist/esm/sd-chip-input.entry.js +272 -0
- package/dist/esm/sd-chip.config-DDj5KTBF.js +67 -0
- package/dist/esm/sd-chip.entry.js +9 -79
- package/dist/esm/sd-circle-progress.entry.js +1 -1
- package/dist/esm/sd-confirm-modal_2.entry.js +3 -3
- package/dist/esm/sd-date-picker_7.entry.js +9 -9
- package/dist/esm/sd-date-range-picker-calendar.entry.js +1 -1
- package/dist/esm/sd-divider.entry.js +1 -1
- package/dist/esm/sd-dropdown-button.entry.js +9 -5
- package/dist/esm/sd-field_3.entry.js +9 -8
- package/dist/esm/sd-ghost-button_2.entry.js +404 -0
- package/dist/esm/sd-linear-progress.entry.js +1 -1
- package/dist/esm/sd-loading-container.entry.js +2 -2
- package/dist/esm/sd-pagination_4.entry.js +8 -8
- package/dist/esm/sd-popup.entry.js +1 -1
- package/dist/esm/sd-portal.entry.js +1 -1
- package/dist/esm/sd-select-list-item_2.entry.js +6 -6
- package/dist/esm/sd-select_3.entry.js +8 -8
- package/dist/esm/sd-switch.entry.js +1 -1
- package/dist/esm/sd-table.entry.js +6 -6
- package/dist/esm/sd-tabs.entry.js +5 -2
- package/dist/esm/sd-td.entry.js +1 -1
- package/dist/esm/sd-toast-container.entry.js +1 -1
- package/dist/esm/sd-toast.entry.js +2 -2
- package/dist/esm/sd-toggle.entry.js +1 -1
- package/dist/types/components/sd-button/sd-button.config.d.ts +10 -2
- package/dist/types/components/sd-chip/sd-chip.config.d.ts +0 -1
- package/dist/types/components/sd-chip-input/sd-chip-input.config.d.ts +34 -0
- package/dist/types/components/sd-chip-input/sd-chip-input.d.ts +53 -0
- package/dist/types/components/sd-dropdown-button/sd-dropdown-button.config.d.ts +9 -1
- package/dist/types/components/sd-ghost-button/sd-ghost-button.d.ts +1 -0
- package/dist/types/components/sd-tabs/sd-tabs.d.ts +1 -0
- package/dist/types/components.d.ts +210 -0
- package/hydrate/index.js +449 -121
- package/hydrate/index.mjs +449 -121
- package/package.json +1 -1
- package/dist/cjs/sd-ghost-button.cjs.entry.js +0 -179
- package/dist/cjs/sd-tag.cjs.entry.js +0 -227
- package/dist/components/p-B8QZRiYH.js +0 -1
- package/dist/components/p-BYgOJUk0.js +0 -1
- package/dist/components/p-BmmIQQlT.js +0 -1
- package/dist/components/p-CMUpMkva.js +0 -1
- package/dist/components/p-CeoBnd3w.js +0 -1
- package/dist/components/p-CpdFMy8s.js +0 -1
- package/dist/components/p-CqcGVHzJ.js +0 -1
- package/dist/components/p-CtxH9xQc.js +0 -1
- package/dist/components/p-DEfG8t7h.js +0 -1
- package/dist/components/p-DGCbSjhn.js +0 -1
- package/dist/components/p-DLeITJ-j.js +0 -1
- package/dist/components/p-DqXt80Qn.js +0 -1
- package/dist/design-system/p-0a225a4a.entry.js +0 -1
- package/dist/design-system/p-17d8457d.entry.js +0 -1
- package/dist/design-system/p-2bd09b2f.entry.js +0 -1
- package/dist/design-system/p-515e837b.entry.js +0 -1
- package/dist/design-system/p-5ee1e5e6.entry.js +0 -1
- package/dist/design-system/p-79e73305.entry.js +0 -1
- package/dist/design-system/p-97b16b63.entry.js +0 -1
- package/dist/design-system/p-CdRvJ-Uc.js +0 -1
- package/dist/design-system/p-a39016ac.entry.js +0 -1
- package/dist/design-system/p-d9c1ec16.entry.js +0 -1
- package/dist/design-system/p-de565b9f.entry.js +0 -1
- package/dist/esm/sd-ghost-button.entry.js +0 -177
- package/dist/esm/sd-tag.entry.js +0 -225
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-C63F8C0_.js');
|
|
4
|
+
var index$1 = require('./index-BUvXpPc3.js');
|
|
5
|
+
var sdChip_config = require('./sd-chip.config-DiLoRpct.js');
|
|
6
|
+
|
|
7
|
+
const chipInput = {
|
|
8
|
+
sm: {
|
|
9
|
+
minHeight: "36",
|
|
10
|
+
paddingX: "12",
|
|
11
|
+
paddingY: "6",
|
|
12
|
+
radius: "4",
|
|
13
|
+
typography: {
|
|
14
|
+
fontFamily: "Pretendard Variable, Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Segoe UI, Apple SD Gothic Neo, Noto Sans KR, Malgun Gothic, Apple Color Emoji, Segoe UI Emoji, sans-serif",
|
|
15
|
+
fontWeight: "400",
|
|
16
|
+
fontSize: "12",
|
|
17
|
+
lineHeight: "20"}
|
|
18
|
+
},
|
|
19
|
+
md: {
|
|
20
|
+
minHeight: "40",
|
|
21
|
+
paddingX: "16",
|
|
22
|
+
paddingY: "8",
|
|
23
|
+
radius: "6",
|
|
24
|
+
typography: {
|
|
25
|
+
fontFamily: "Pretendard Variable, Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Segoe UI, Apple SD Gothic Neo, Noto Sans KR, Malgun Gothic, Apple Color Emoji, Segoe UI Emoji, sans-serif",
|
|
26
|
+
fontWeight: "400",
|
|
27
|
+
fontSize: "14",
|
|
28
|
+
lineHeight: "24"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
chip: {
|
|
32
|
+
gap: "8"
|
|
33
|
+
},
|
|
34
|
+
text: {
|
|
35
|
+
placeholder: "#AAAAAA"
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
var chipInputTokens = {
|
|
39
|
+
chipInput: chipInput
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
const sm = chipInputTokens.chipInput.sm;
|
|
43
|
+
const md = chipInputTokens.chipInput.md;
|
|
44
|
+
const CHIP_INPUT_SIZE_MAP = {
|
|
45
|
+
sm: {
|
|
46
|
+
minHeight: sm.minHeight,
|
|
47
|
+
paddingX: sm.paddingX,
|
|
48
|
+
paddingY: sm.paddingY,
|
|
49
|
+
radius: sm.radius,
|
|
50
|
+
fontSize: sm.typography.fontSize,
|
|
51
|
+
lineHeight: sm.typography.lineHeight,
|
|
52
|
+
fontWeight: sm.typography.fontWeight,
|
|
53
|
+
fontFamily: sm.typography.fontFamily,
|
|
54
|
+
},
|
|
55
|
+
md: {
|
|
56
|
+
minHeight: md.minHeight,
|
|
57
|
+
paddingX: md.paddingX,
|
|
58
|
+
paddingY: md.paddingY,
|
|
59
|
+
radius: md.radius,
|
|
60
|
+
fontSize: md.typography.fontSize,
|
|
61
|
+
lineHeight: md.typography.lineHeight,
|
|
62
|
+
fontWeight: md.typography.fontWeight,
|
|
63
|
+
fontFamily: md.typography.fontFamily,
|
|
64
|
+
},
|
|
65
|
+
};
|
|
66
|
+
const CHIP_INPUT_COLORS = {
|
|
67
|
+
text: {
|
|
68
|
+
placeholder: chipInputTokens.chipInput.text.placeholder,
|
|
69
|
+
},
|
|
70
|
+
};
|
|
71
|
+
const CHIP_INPUT_LAYOUT = {
|
|
72
|
+
chipGap: `${chipInputTokens.chipInput.chip.gap}px`,
|
|
73
|
+
};
|
|
74
|
+
const CHIP_INPUT_RESET = {
|
|
75
|
+
dividerColor: '#E1E1E1', // TODO: 토큰 반영 후 교체
|
|
76
|
+
iconColor: '#888888', // TODO: 토큰 반영 후 교체 (grey_65)
|
|
77
|
+
labelColor: '#555555', // TODO: 토큰 반영 후 교체 (grey_70)
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
const sdChipInputCss = () => `sd-chip-input{display:inline-flex}sd-chip-input .sd-chip-input{position:relative;width:100%;min-height:var(--sd-chip-input-min-height);display:flex;flex-flow:row wrap;align-items:center;gap:var(--sd-chip-input-chip-gap);padding:var(--sd-chip-input-padding-y) var(--sd-chip-input-padding-x);cursor:text}sd-chip-input .sd-chip-input__reset{display:inline-flex;align-items:center;gap:var(--sd-chip-input-reset-gap);flex-shrink:0}sd-chip-input .sd-chip-input__divider{display:inline-block;width:1px;height:12px;background-color:var(--sd-chip-input-divider-color);flex-shrink:0}sd-chip-input .sd-chip-input__field{flex:0 0 auto;display:inline-grid;grid-template-columns:minmax(0, max-content);align-items:center;min-width:1ch;max-width:100%;height:var(--sd-chip-input-field-height);box-sizing:border-box;padding:0;border:none;border-radius:0;background:transparent;overflow:hidden}sd-chip-input .sd-chip-input__field::after{content:attr(data-value);grid-area:1/1;visibility:hidden;white-space:pre;font-size:var(--sd-chip-input-field-font-size);line-height:var(--sd-chip-input-field-line-height);font-weight:var(--sd-chip-input-field-font-weight);font-family:var(--sd-chip-input-field-font-family)}sd-chip-input .sd-chip-input__field--filled{padding:0 var(--sd-chip-input-field-padding-x);border:var(--sd-chip-input-field-border-width) solid var(--sd-chip-input-field-border-color);border-radius:var(--sd-chip-input-field-radius);background:var(--sd-chip-input-field-bg)}sd-chip-input .sd-chip-input__field--empty{position:absolute;top:0;left:0;width:0;height:0;min-width:0;overflow:hidden}sd-chip-input .sd-chip-input__input{grid-area:1/1;width:100%;min-width:1ch;height:var(--sd-chip-input-field-height);margin:0;padding:0;border:none;outline:none;overflow:hidden;text-overflow:ellipsis;background:transparent;font-size:var(--sd-chip-input-field-font-size);line-height:var(--sd-chip-input-field-line-height);font-weight:var(--sd-chip-input-field-font-weight);font-family:var(--sd-chip-input-field-font-family);color:var(--sd-chip-input-field-content)}sd-chip-input .sd-chip-input__input[disabled]{cursor:not-allowed;pointer-events:none}sd-chip-input .sd-chip-input__input::placeholder{color:var(--sd-chip-input-placeholder-color)}`;
|
|
81
|
+
|
|
82
|
+
const SdChipInput = class {
|
|
83
|
+
constructor(hostRef) {
|
|
84
|
+
index.registerInstance(this, hostRef);
|
|
85
|
+
this.update = index.createEvent(this, "sdUpdate", 7);
|
|
86
|
+
this.focusEvent = index.createEvent(this, "sdFocus", 7);
|
|
87
|
+
this.blurEvent = index.createEvent(this, "sdBlur", 7);
|
|
88
|
+
}
|
|
89
|
+
get host() { return index.getElement(this); }
|
|
90
|
+
values = [];
|
|
91
|
+
errors = [];
|
|
92
|
+
size = 'sm';
|
|
93
|
+
disabled = false;
|
|
94
|
+
placeholder = '입력해 주세요.';
|
|
95
|
+
name = index$1.nanoid();
|
|
96
|
+
rules = [];
|
|
97
|
+
error = false;
|
|
98
|
+
useReset = false;
|
|
99
|
+
// sd-field props
|
|
100
|
+
label = '';
|
|
101
|
+
labelWidth = '';
|
|
102
|
+
hint = '';
|
|
103
|
+
errorMessage = '';
|
|
104
|
+
width = '';
|
|
105
|
+
status;
|
|
106
|
+
icon = undefined;
|
|
107
|
+
labelTooltip = '';
|
|
108
|
+
labelTooltipProps = null;
|
|
109
|
+
internalValues = [];
|
|
110
|
+
internalErrors = [];
|
|
111
|
+
focused = false;
|
|
112
|
+
hovered = false;
|
|
113
|
+
inputValue = '';
|
|
114
|
+
inputEl;
|
|
115
|
+
formField;
|
|
116
|
+
get value() {
|
|
117
|
+
return this.internalValues;
|
|
118
|
+
}
|
|
119
|
+
valuesChanged(newValues) {
|
|
120
|
+
this.internalValues = [...(newValues ?? [])];
|
|
121
|
+
}
|
|
122
|
+
errorsChanged(newErrors) {
|
|
123
|
+
if (Array.isArray(newErrors)) {
|
|
124
|
+
this.internalErrors = [...newErrors];
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
componentWillLoad() {
|
|
128
|
+
this.internalValues = [...(this.values ?? [])];
|
|
129
|
+
if (Array.isArray(this.errors)) {
|
|
130
|
+
this.internalErrors = [...this.errors];
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
getChipError(index) {
|
|
134
|
+
if (typeof this.errors === 'function') {
|
|
135
|
+
return this.errors(this.internalValues[index] ?? '');
|
|
136
|
+
}
|
|
137
|
+
return this.internalErrors[index] ?? false;
|
|
138
|
+
}
|
|
139
|
+
update;
|
|
140
|
+
focusEvent;
|
|
141
|
+
blurEvent;
|
|
142
|
+
async sdValidate() {
|
|
143
|
+
return this.formField?.sdValidate();
|
|
144
|
+
}
|
|
145
|
+
async sdReset() {
|
|
146
|
+
return this.formField?.sdReset();
|
|
147
|
+
}
|
|
148
|
+
async sdResetValidate() {
|
|
149
|
+
return this.formField?.sdResetValidation();
|
|
150
|
+
}
|
|
151
|
+
async sdFocus() {
|
|
152
|
+
return this.formField?.sdFocus();
|
|
153
|
+
}
|
|
154
|
+
handleChipUpdate = (index, newValue) => {
|
|
155
|
+
if (newValue.trim() === '') {
|
|
156
|
+
this.handleChipRemove(index);
|
|
157
|
+
return;
|
|
158
|
+
}
|
|
159
|
+
const next = [...this.internalValues];
|
|
160
|
+
next[index] = newValue;
|
|
161
|
+
this.internalValues = next;
|
|
162
|
+
this.values = next;
|
|
163
|
+
this.update.emit(next);
|
|
164
|
+
};
|
|
165
|
+
handleChipRemove = (index) => {
|
|
166
|
+
const next = this.internalValues.filter((_, i) => i !== index);
|
|
167
|
+
this.internalValues = next;
|
|
168
|
+
this.values = next;
|
|
169
|
+
if (Array.isArray(this.errors)) {
|
|
170
|
+
const nextErrors = this.internalErrors.filter((_, i) => i !== index);
|
|
171
|
+
this.internalErrors = nextErrors;
|
|
172
|
+
this.errors = nextErrors;
|
|
173
|
+
}
|
|
174
|
+
this.update.emit(next);
|
|
175
|
+
this.inputEl?.focus();
|
|
176
|
+
};
|
|
177
|
+
handleKeyDown = (event) => {
|
|
178
|
+
const input = event.target;
|
|
179
|
+
if (event.key === 'Enter' && !event.isComposing && input.value.trim() !== '') {
|
|
180
|
+
event.preventDefault();
|
|
181
|
+
const next = [...this.internalValues, input.value.trim()];
|
|
182
|
+
this.internalValues = next;
|
|
183
|
+
this.values = next;
|
|
184
|
+
input.value = '';
|
|
185
|
+
this.inputValue = '';
|
|
186
|
+
this.update.emit(next);
|
|
187
|
+
}
|
|
188
|
+
else if (event.key === 'Backspace' && input.value === '' && this.internalValues.length > 0) {
|
|
189
|
+
event.preventDefault();
|
|
190
|
+
const next = this.internalValues.slice(0, -1);
|
|
191
|
+
const nextErrors = this.internalErrors.slice(0, -1);
|
|
192
|
+
this.internalValues = next;
|
|
193
|
+
this.internalErrors = nextErrors;
|
|
194
|
+
this.values = next;
|
|
195
|
+
this.errors = nextErrors;
|
|
196
|
+
this.update.emit(next);
|
|
197
|
+
}
|
|
198
|
+
};
|
|
199
|
+
handleInput = (event) => {
|
|
200
|
+
this.inputValue = event.target.value;
|
|
201
|
+
};
|
|
202
|
+
handleFocus = () => {
|
|
203
|
+
this.focused = true;
|
|
204
|
+
this.focusEvent.emit();
|
|
205
|
+
};
|
|
206
|
+
handleBlur = () => {
|
|
207
|
+
this.focused = false;
|
|
208
|
+
this.blurEvent.emit();
|
|
209
|
+
};
|
|
210
|
+
handleContainerClick = () => {
|
|
211
|
+
if (!this.disabled) {
|
|
212
|
+
this.inputEl?.focus();
|
|
213
|
+
}
|
|
214
|
+
};
|
|
215
|
+
handleResetInput = () => {
|
|
216
|
+
this.internalValues = [];
|
|
217
|
+
this.internalErrors = [];
|
|
218
|
+
this.values = [];
|
|
219
|
+
if (Array.isArray(this.errors)) {
|
|
220
|
+
this.errors = [];
|
|
221
|
+
}
|
|
222
|
+
this.update.emit([]);
|
|
223
|
+
this.inputEl?.focus();
|
|
224
|
+
};
|
|
225
|
+
render() {
|
|
226
|
+
const sizeTokens = CHIP_INPUT_SIZE_MAP[this.size] ?? CHIP_INPUT_SIZE_MAP.sm;
|
|
227
|
+
const cssVars = {
|
|
228
|
+
[`--sd-system-size-field-${this.size}-height`]: 'auto',
|
|
229
|
+
[`--sd-system-radius-field-${this.size}`]: `${sizeTokens.radius}px`,
|
|
230
|
+
'--sd-chip-input-min-height': `${sizeTokens.minHeight}px`,
|
|
231
|
+
'--sd-chip-input-padding-x': `${sizeTokens.paddingX}px`,
|
|
232
|
+
'--sd-chip-input-padding-y': `${sizeTokens.paddingY}px`,
|
|
233
|
+
'--sd-chip-input-font-size': `${sizeTokens.fontSize}px`,
|
|
234
|
+
'--sd-chip-input-line-height': `${sizeTokens.lineHeight}px`,
|
|
235
|
+
'--sd-chip-input-font-weight': sizeTokens.fontWeight,
|
|
236
|
+
'--sd-chip-input-font-family': sizeTokens.fontFamily,
|
|
237
|
+
'--sd-chip-input-chip-gap': CHIP_INPUT_LAYOUT.chipGap,
|
|
238
|
+
'--sd-chip-input-placeholder-color': CHIP_INPUT_COLORS.text.placeholder,
|
|
239
|
+
'--sd-chip-input-reset-gap': CHIP_INPUT_LAYOUT.chipGap,
|
|
240
|
+
'--sd-chip-input-divider-color': CHIP_INPUT_RESET.dividerColor,
|
|
241
|
+
'--sd-chip-input-field-height': sdChip_config.CHIP_LAYOUT.height,
|
|
242
|
+
'--sd-chip-input-field-padding-x': sdChip_config.CHIP_LAYOUT.paddingX,
|
|
243
|
+
'--sd-chip-input-field-radius': sdChip_config.CHIP_LAYOUT.radius,
|
|
244
|
+
'--sd-chip-input-field-border-width': sdChip_config.CHIP_LAYOUT.borderWidth,
|
|
245
|
+
'--sd-chip-input-field-bg': sdChip_config.CHIP_COLORS.bg.default,
|
|
246
|
+
'--sd-chip-input-field-border-color': 'transparent',
|
|
247
|
+
'--sd-chip-input-field-content': sdChip_config.CHIP_COLORS.content.focus,
|
|
248
|
+
'--sd-chip-input-field-font-size': sdChip_config.CHIP_TYPOGRAPHY.focus.fontSize,
|
|
249
|
+
'--sd-chip-input-field-font-weight': sdChip_config.CHIP_TYPOGRAPHY.focus.fontWeight,
|
|
250
|
+
'--sd-chip-input-field-line-height': sdChip_config.CHIP_TYPOGRAPHY.focus.lineHeight,
|
|
251
|
+
'--sd-chip-input-field-font-family': sdChip_config.CHIP_TYPOGRAPHY.focus.fontFamily,
|
|
252
|
+
};
|
|
253
|
+
return (index.h("sd-field", { key: 'cfff85a1732e23052fb2c736512f48f5653c4e1a', name: this.name, label: this.label, labelWidth: this.labelWidth, hint: this.hint, errorMessage: this.errorMessage, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, size: this.size, width: this.width, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), style: cssVars, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, index.h("div", { key: '872d73f015e8aa79a9afcf1592372b3ba3bbb9a5', class: "sd-chip-input", onClick: this.handleContainerClick }, this.internalValues.map((value, i) => (index.h("sd-chip", { key: i, value: value, error: this.getChipError(i), disabled: this.disabled, onSdUpdate: (e) => this.handleChipUpdate(i, e.detail), onSdRemove: () => this.handleChipRemove(i), onSdFocus: () => {
|
|
254
|
+
this.focused = true;
|
|
255
|
+
}, onSdBlur: () => {
|
|
256
|
+
this.focused = false;
|
|
257
|
+
} }))), index.h("div", { key: '33746a3ce014b5d28329c193d93d8bf1fc4957a6', class: {
|
|
258
|
+
'sd-chip-input__field': true,
|
|
259
|
+
'sd-chip-input__field--filled': this.inputValue !== '',
|
|
260
|
+
'sd-chip-input__field--empty': this.inputValue === '' && this.internalValues.length > 0 && !this.focused,
|
|
261
|
+
}, "data-value": this.inputValue !== '' ? this.inputValue : this.internalValues.length === 0 ? this.placeholder : '' }, index.h("input", { key: '74b1e76b3123c371fffe344d922ff42801f028e7', ref: el => (this.inputEl = el), class: "sd-chip-input__input", placeholder: this.internalValues.length === 0 ? this.placeholder : '', disabled: this.disabled, size: 1, onInput: this.handleInput, onKeyDown: this.handleKeyDown, onFocus: this.handleFocus, onBlur: this.handleBlur })), this.useReset && this.internalValues.length > 0 && (index.h("div", { key: '3343b3d3fed05856739675d802115f7e5b2ea110', class: "sd-chip-input__reset" }, this.inputValue === '' && index.h("span", { key: 'c0398e9c476309964c132b3647dd95cd2a65d948', class: "sd-chip-input__divider" }), index.h("sd-text-link", { key: 'e00af312380d40e8b6a3c9a463cea796146632a1', icon: "reset", iconColor: CHIP_INPUT_RESET.iconColor, label: "\uC785\uB825 \uCD08\uAE30\uD654", underline: true, disabled: this.disabled, style: { '--sd-text-link-color': CHIP_INPUT_RESET.labelColor }, onSdClick: this.handleResetInput }))))));
|
|
262
|
+
}
|
|
263
|
+
static get watchers() { return {
|
|
264
|
+
"values": [{
|
|
265
|
+
"valuesChanged": 0
|
|
266
|
+
}],
|
|
267
|
+
"errors": [{
|
|
268
|
+
"errorsChanged": 0
|
|
269
|
+
}]
|
|
270
|
+
}; }
|
|
271
|
+
};
|
|
272
|
+
SdChipInput.style = sdChipInputCss();
|
|
273
|
+
|
|
274
|
+
exports.sd_chip_input = SdChipInput;
|
|
@@ -1,81 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-C63F8C0_.js');
|
|
4
|
+
var sdChip_config = require('./sd-chip.config-DiLoRpct.js');
|
|
4
5
|
|
|
5
|
-
const
|
|
6
|
-
height: "24",
|
|
7
|
-
paddingX: "8",
|
|
8
|
-
gap: "4",
|
|
9
|
-
radius: "9999",
|
|
10
|
-
typography: {
|
|
11
|
-
"default": {
|
|
12
|
-
fontFamily: "Pretendard Variable, Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Segoe UI, Apple SD Gothic Neo, Noto Sans KR, Malgun Gothic, Apple Color Emoji, Segoe UI Emoji, sans-serif",
|
|
13
|
-
fontSize: "12",
|
|
14
|
-
fontWeight: "500",
|
|
15
|
-
lineHeight: "20"
|
|
16
|
-
},
|
|
17
|
-
focus: {
|
|
18
|
-
fontFamily: "Pretendard Variable, Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Segoe UI, Apple SD Gothic Neo, Noto Sans KR, Malgun Gothic, Apple Color Emoji, Segoe UI Emoji, sans-serif",
|
|
19
|
-
fontSize: "12",
|
|
20
|
-
fontWeight: "400",
|
|
21
|
-
lineHeight: "20"
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
bg: {
|
|
25
|
-
"default": "#F6F6F6",
|
|
26
|
-
error: "#FCEFEF",
|
|
27
|
-
focus: "#FFFFFF"},
|
|
28
|
-
content: {
|
|
29
|
-
"default": "#555555",
|
|
30
|
-
error: "#E30000",
|
|
31
|
-
focus: "#222222"},
|
|
32
|
-
border: {
|
|
33
|
-
focus: "#E1E1E1",
|
|
34
|
-
width: "1"
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
var chipTokens = {
|
|
38
|
-
chip: chip
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
const CHIP_LAYOUT = {
|
|
42
|
-
height: `${chipTokens.chip.height}px`,
|
|
43
|
-
paddingX: `${chipTokens.chip.paddingX}px`,
|
|
44
|
-
gap: `${chipTokens.chip.gap}px`,
|
|
45
|
-
radius: `${chipTokens.chip.radius}px`,
|
|
46
|
-
borderWidth: `${chipTokens.chip.border.width}px`,
|
|
47
|
-
};
|
|
48
|
-
const CHIP_COLORS = {
|
|
49
|
-
bg: {
|
|
50
|
-
default: chipTokens.chip.bg.default,
|
|
51
|
-
error: chipTokens.chip.bg.error,
|
|
52
|
-
focus: chipTokens.chip.bg.focus,
|
|
53
|
-
},
|
|
54
|
-
content: {
|
|
55
|
-
default: chipTokens.chip.content.default,
|
|
56
|
-
error: chipTokens.chip.content.error,
|
|
57
|
-
focus: chipTokens.chip.content.focus,
|
|
58
|
-
},
|
|
59
|
-
border: {
|
|
60
|
-
focus: chipTokens.chip.border.focus,
|
|
61
|
-
},
|
|
62
|
-
};
|
|
63
|
-
const CHIP_TYPOGRAPHY = {
|
|
64
|
-
default: {
|
|
65
|
-
fontFamily: chipTokens.chip.typography.default.fontFamily,
|
|
66
|
-
fontSize: `${chipTokens.chip.typography.default.fontSize}px`,
|
|
67
|
-
fontWeight: chipTokens.chip.typography.default.fontWeight,
|
|
68
|
-
lineHeight: `${chipTokens.chip.typography.default.lineHeight}px`,
|
|
69
|
-
},
|
|
70
|
-
focus: {
|
|
71
|
-
fontFamily: chipTokens.chip.typography.focus.fontFamily,
|
|
72
|
-
fontSize: `${chipTokens.chip.typography.focus.fontSize}px`,
|
|
73
|
-
fontWeight: chipTokens.chip.typography.focus.fontWeight,
|
|
74
|
-
lineHeight: `${chipTokens.chip.typography.focus.lineHeight}px`,
|
|
75
|
-
},
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
const sdChipCss = () => `sd-chip{display:inline-flex;width:fit-content;height:fit-content}sd-chip .sd-chip{display:inline-flex;align-items:center;justify-content:center;gap:var(--sd-chip-gap);height:var(--sd-chip-height);padding:0 var(--sd-chip-padding-x);border-radius:var(--sd-chip-radius);background:var(--sd-chip-bg);color:var(--sd-chip-content);border:var(--sd-chip-border-width) solid var(--sd-chip-border-color);font-family:var(--sd-chip-font-family);font-size:var(--sd-chip-font-size);font-weight:var(--sd-chip-font-weight);line-height:var(--sd-chip-line-height);box-sizing:border-box;white-space:nowrap;-webkit-user-select:none;user-select:none}sd-chip .sd-chip--editable:not(.sd-chip--focus){cursor:text}sd-chip .sd-chip--disabled{cursor:not-allowed;opacity:0.6}sd-chip .sd-chip__label{display:inline-flex;align-items:center;min-width:0}sd-chip .sd-chip__input{display:inline-block;min-width:1ch;outline:none;background:transparent;color:inherit;font:inherit;white-space:nowrap;cursor:text}sd-chip .sd-chip__input:empty::before{content:attr(data-placeholder);color:inherit;opacity:0.6;pointer-events:none}sd-chip .sd-chip__remove{flex-shrink:0}`;
|
|
6
|
+
const sdChipCss = () => `sd-chip{display:inline-flex;width:fit-content;max-width:100%;height:fit-content}sd-chip .sd-chip{display:inline-flex;align-items:center;justify-content:center;gap:var(--sd-chip-gap);max-width:100%;height:var(--sd-chip-height);padding:0 var(--sd-chip-padding-x);border-radius:var(--sd-chip-radius);background:var(--sd-chip-bg);color:var(--sd-chip-content);border:var(--sd-chip-border-width) solid var(--sd-chip-border-color);font-family:var(--sd-chip-font-family);font-size:var(--sd-chip-font-size);font-weight:var(--sd-chip-font-weight);line-height:var(--sd-chip-line-height);box-sizing:border-box;white-space:nowrap;overflow:hidden;-webkit-user-select:none;user-select:none}sd-chip .sd-chip--editable:not(.sd-chip--focus){cursor:text}sd-chip .sd-chip--disabled{cursor:not-allowed;opacity:0.6}sd-chip .sd-chip__label{display:inline-flex;align-items:center;min-width:0;overflow:hidden;text-overflow:ellipsis}sd-chip .sd-chip__input{display:inline-block;min-width:1ch;outline:none;background:transparent;color:inherit;font:inherit;white-space:nowrap;cursor:text}sd-chip .sd-chip__input:empty::before{content:attr(data-placeholder);color:inherit;opacity:0.6;pointer-events:none}sd-chip .sd-chip__remove{flex-shrink:0}`;
|
|
79
7
|
|
|
80
8
|
const SdChip = class {
|
|
81
9
|
constructor(hostRef) {
|
|
@@ -210,10 +138,12 @@ const SdChip = class {
|
|
|
210
138
|
handleInputKeyDown = (event) => {
|
|
211
139
|
if (event.key === 'Enter') {
|
|
212
140
|
event.preventDefault();
|
|
141
|
+
event.stopPropagation();
|
|
213
142
|
this.commitEdit();
|
|
214
143
|
}
|
|
215
144
|
else if (event.key === 'Escape') {
|
|
216
145
|
event.preventDefault();
|
|
146
|
+
event.stopPropagation();
|
|
217
147
|
this.cancelEdit();
|
|
218
148
|
}
|
|
219
149
|
};
|
|
@@ -274,22 +204,22 @@ const SdChip = class {
|
|
|
274
204
|
}
|
|
275
205
|
render() {
|
|
276
206
|
const state = this.resolveState();
|
|
277
|
-
const typography =
|
|
207
|
+
const typography = sdChip_config.CHIP_TYPOGRAPHY.default;
|
|
278
208
|
const cssVars = {
|
|
279
|
-
'--sd-chip-height': CHIP_LAYOUT.height,
|
|
280
|
-
'--sd-chip-padding-x': CHIP_LAYOUT.paddingX,
|
|
281
|
-
'--sd-chip-gap': CHIP_LAYOUT.gap,
|
|
282
|
-
'--sd-chip-radius': CHIP_LAYOUT.radius,
|
|
283
|
-
'--sd-chip-border-width': CHIP_LAYOUT.borderWidth,
|
|
284
|
-
'--sd-chip-bg': CHIP_COLORS.bg
|
|
285
|
-
'--sd-chip-content': CHIP_COLORS.content
|
|
286
|
-
'--sd-chip-border-color':
|
|
209
|
+
'--sd-chip-height': sdChip_config.CHIP_LAYOUT.height,
|
|
210
|
+
'--sd-chip-padding-x': sdChip_config.CHIP_LAYOUT.paddingX,
|
|
211
|
+
'--sd-chip-gap': sdChip_config.CHIP_LAYOUT.gap,
|
|
212
|
+
'--sd-chip-radius': sdChip_config.CHIP_LAYOUT.radius,
|
|
213
|
+
'--sd-chip-border-width': sdChip_config.CHIP_LAYOUT.borderWidth,
|
|
214
|
+
'--sd-chip-bg': state === 'error' ? sdChip_config.CHIP_COLORS.bg.error : sdChip_config.CHIP_COLORS.bg.default,
|
|
215
|
+
'--sd-chip-content': state === 'error' ? sdChip_config.CHIP_COLORS.content.error : sdChip_config.CHIP_COLORS.content.default,
|
|
216
|
+
'--sd-chip-border-color': 'transparent',
|
|
287
217
|
'--sd-chip-font-family': typography.fontFamily,
|
|
288
218
|
'--sd-chip-font-size': typography.fontSize,
|
|
289
219
|
'--sd-chip-font-weight': typography.fontWeight,
|
|
290
220
|
'--sd-chip-line-height': typography.lineHeight,
|
|
291
221
|
};
|
|
292
|
-
return (index.h("span", { key: '
|
|
222
|
+
return (index.h("span", { key: 'e1c1386f3143f4830256784853c1d931706a6beb', class: {
|
|
293
223
|
'sd-chip': true,
|
|
294
224
|
[`sd-chip--${state}`]: true,
|
|
295
225
|
'sd-chip--disabled': this.disabled,
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const chip = {
|
|
4
|
+
height: "24",
|
|
5
|
+
paddingX: "8",
|
|
6
|
+
gap: "4",
|
|
7
|
+
radius: "9999",
|
|
8
|
+
typography: {
|
|
9
|
+
"default": {
|
|
10
|
+
fontFamily: "Pretendard Variable, Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Segoe UI, Apple SD Gothic Neo, Noto Sans KR, Malgun Gothic, Apple Color Emoji, Segoe UI Emoji, sans-serif",
|
|
11
|
+
fontSize: "12",
|
|
12
|
+
fontWeight: "500",
|
|
13
|
+
lineHeight: "20"
|
|
14
|
+
},
|
|
15
|
+
focus: {
|
|
16
|
+
fontFamily: "Pretendard Variable, Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Segoe UI, Apple SD Gothic Neo, Noto Sans KR, Malgun Gothic, Apple Color Emoji, Segoe UI Emoji, sans-serif",
|
|
17
|
+
fontSize: "12",
|
|
18
|
+
fontWeight: "400",
|
|
19
|
+
lineHeight: "20"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
bg: {
|
|
23
|
+
"default": "#F6F6F6",
|
|
24
|
+
error: "#FCEFEF"},
|
|
25
|
+
content: {
|
|
26
|
+
"default": "#555555",
|
|
27
|
+
error: "#E30000",
|
|
28
|
+
focus: "#222222"},
|
|
29
|
+
border: {
|
|
30
|
+
width: "1"
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
var chipTokens = {
|
|
34
|
+
chip: chip
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
const CHIP_LAYOUT = {
|
|
38
|
+
height: `${chipTokens.chip.height}px`,
|
|
39
|
+
paddingX: `${chipTokens.chip.paddingX}px`,
|
|
40
|
+
gap: `${chipTokens.chip.gap}px`,
|
|
41
|
+
radius: `${chipTokens.chip.radius}px`,
|
|
42
|
+
borderWidth: `${chipTokens.chip.border.width}px`,
|
|
43
|
+
};
|
|
44
|
+
const CHIP_COLORS = {
|
|
45
|
+
bg: {
|
|
46
|
+
default: chipTokens.chip.bg.default,
|
|
47
|
+
error: chipTokens.chip.bg.error,
|
|
48
|
+
},
|
|
49
|
+
content: {
|
|
50
|
+
default: chipTokens.chip.content.default,
|
|
51
|
+
error: chipTokens.chip.content.error,
|
|
52
|
+
focus: chipTokens.chip.content.focus,
|
|
53
|
+
}};
|
|
54
|
+
const CHIP_TYPOGRAPHY = {
|
|
55
|
+
default: {
|
|
56
|
+
fontFamily: chipTokens.chip.typography.default.fontFamily,
|
|
57
|
+
fontSize: `${chipTokens.chip.typography.default.fontSize}px`,
|
|
58
|
+
fontWeight: chipTokens.chip.typography.default.fontWeight,
|
|
59
|
+
lineHeight: `${chipTokens.chip.typography.default.lineHeight}px`,
|
|
60
|
+
},
|
|
61
|
+
focus: {
|
|
62
|
+
fontFamily: chipTokens.chip.typography.focus.fontFamily,
|
|
63
|
+
fontSize: `${chipTokens.chip.typography.focus.fontSize}px`,
|
|
64
|
+
fontWeight: chipTokens.chip.typography.focus.fontWeight,
|
|
65
|
+
lineHeight: `${chipTokens.chip.typography.focus.lineHeight}px`,
|
|
66
|
+
},
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
exports.CHIP_COLORS = CHIP_COLORS;
|
|
70
|
+
exports.CHIP_LAYOUT = CHIP_LAYOUT;
|
|
71
|
+
exports.CHIP_TYPOGRAPHY = CHIP_TYPOGRAPHY;
|
|
@@ -72,7 +72,7 @@ const SdCircleProgress = class {
|
|
|
72
72
|
}
|
|
73
73
|
const c = CIRCLE_PROGRESS_VIEWBOX_SIZE / 2;
|
|
74
74
|
const showPercent = !this.indeterminate;
|
|
75
|
-
return (index.h(index.Host, { key: '
|
|
75
|
+
return (index.h(index.Host, { key: '46d74c0edb5a5e8cd0472c83efc45a0efaf353b4', style: hostStyle }, index.h("svg", { key: '34117c89eb180370a215807e614ad08f4f72b517', class: "sd-circle-progress", viewBox: `0 0 ${CIRCLE_PROGRESS_VIEWBOX_SIZE} ${CIRCLE_PROGRESS_VIEWBOX_SIZE}`, xmlns: "http://www.w3.org/2000/svg" }, index.h("circle", { key: '08ac6f011b6a4b6744ddcf437b1e0a5b96abfc6e', class: "sd-circle-progress__track", cx: c, cy: c, r: CIRCLE_PROGRESS_RADIUS, fill: "none", "stroke-width": CIRCLE_PROGRESS_STROKE_WIDTH }), index.h("circle", { key: '5ae0a53ce10bd5a8b2f316ebd00d3ee28c4336d6', class: "sd-circle-progress__arc", cx: c, cy: c, r: CIRCLE_PROGRESS_RADIUS, fill: "none", "stroke-width": CIRCLE_PROGRESS_STROKE_WIDTH, "stroke-linecap": "round", style: arcStyle })), showPercent && (index.h("span", { key: 'fd52ee1947d41b2117c9ea6e4cc9a448799342e3', class: "sd-circle-progress__percent" }, Math.round(this.clampedValue), "%")), this.label && index.h("span", { key: 'a58776c4ef67eb900eba97ff4fed138c8f5e8452', class: "sd-circle-progress__label" }, this.label)));
|
|
76
76
|
}
|
|
77
77
|
};
|
|
78
78
|
SdCircleProgress.style = sdCircleProgressCss();
|
|
@@ -102,9 +102,9 @@ const SdConfirmModal = class {
|
|
|
102
102
|
const type = this.resolvedType;
|
|
103
103
|
const iconName = CONFIRM_MODAL_ICON_MAP[type];
|
|
104
104
|
const iconColor = CONFIRM_MODAL_ICON_COLOR[type];
|
|
105
|
-
return (index.h("div", { key: '
|
|
105
|
+
return (index.h("div", { key: '4d3ce0662b2d860a4ed6ae3c8177ae75dae4fb92', class: "sd-confirm-modal" }, index.h("sd-ghost-button", { key: '7c406d59c2470b610a187bf45aa5cd4ab5c6b26b', class: "sd-confirm-modal__close-button", icon: "close", ariaLabel: "close", onClick: () => this.close.emit() }), iconName && (index.h("sd-icon", { key: '10e3d2c8a87a728df4e3f3be7dfab96475738e2b', class: "sd-confirm-modal__icon", name: iconName, size: TITLE_ICON_SIZE, color: iconColor })), index.h("h2", { key: '9cc844c8cefb2fd0dc96871b55fc1c7c6e41c526', class: `sd-confirm-modal__title ${this.titleClass ?? ''}` }, this.modalTitle), index.h("div", { key: 'bbaa81a02c067d66c4cc19cf805b7a6939231311', class: "sd-confirm-modal__body" }, (this.topMessage ?? []).length > 0 && (index.h("div", { key: '31734f096eee6e6a9be770eafa43066c8e763608', class: "sd-confirm-modal__message" }, (this.topMessage ?? []).map(msg => (index.h("p", { class: "sd-confirm-modal__message-text", innerHTML: sanitizeInlineHtml.sanitizeInlineHtml(msg) }))))), this.showContentBox && (index.h("div", { key: 'a10838fb7c7081fdaa85cdaa33f92ef30c00a888', class: "sd-confirm-modal__content-box" }, this.tagContents ? (index.h("div", { class: "sd-confirm-modal__custom-content", ref: el => {
|
|
106
106
|
this.customContentRef = el;
|
|
107
|
-
} })) : (index.h("slot", { onSlotchange: () => this.syncHasSlottedContent() }, this.tagLabel && (index.h("sd-tag", { name: this.tagPreset ?? 'square_sm_grey', label: this.tagLabel })), this.slotLabel && (index.h("span", { class: "sd-confirm-modal__slot-label" }, this.slotLabel)))))), (this.bottomMessage ?? []).length > 0 && (index.h("div", { key: '
|
|
107
|
+
} })) : (index.h("slot", { onSlotchange: () => this.syncHasSlottedContent() }, this.tagLabel && (index.h("sd-tag", { name: this.tagPreset ?? 'square_sm_grey', label: this.tagLabel })), this.slotLabel && (index.h("span", { class: "sd-confirm-modal__slot-label" }, this.slotLabel)))))), (this.bottomMessage ?? []).length > 0 && (index.h("div", { key: '540f3bb73aa61a1a2a041eba9a22a198c7772914', class: "sd-confirm-modal__message" }, (this.bottomMessage ?? []).map(msg => (index.h("p", { class: "sd-confirm-modal__message-text", innerHTML: sanitizeInlineHtml.sanitizeInlineHtml(msg) })))))), index.h("div", { key: '1944aeb4d140c779d0af1304160a86c5056335a8', class: "sd-confirm-modal__button" }, this.subButtonLabel && (index.h("sd-button", { key: 'efd463686d98e9d2edc3e1cd7b4f54d8da4fef56', name: SUB_BUTTON_PRESET, label: this.subButtonLabel, onSdClick: () => this.cancel.emit() })), index.h("sd-button", { key: 'b9033fb98acf3de36b7fb3e1969ccf5a7becef39', name: this.resolvedMainButton, label: this.mainButtonLabel ?? '확인', onSdClick: () => this.ok.emit() }))));
|
|
108
108
|
}
|
|
109
109
|
};
|
|
110
110
|
SdConfirmModal.style = sdConfirmModalCss();
|
|
@@ -188,7 +188,7 @@ const SdLoadingModal = class {
|
|
|
188
188
|
'--sd-loading-modal-width': this.toCssSize(this.width) ?? `${LOADING_MODAL_LAYOUT.minWidth}px`,
|
|
189
189
|
'--sd-loading-modal-height': this.toCssSize(this.height) ?? `${LOADING_MODAL_LAYOUT.minHeight}px`,
|
|
190
190
|
};
|
|
191
|
-
return (index.h(index.Host, { key: '
|
|
191
|
+
return (index.h(index.Host, { key: '17636253239532d90e596f20d84795fe2e65508d', style: hostStyle }, index.h("div", { key: '2f925afceca4102049d7876ab4d1e33fa1ef5ef7', class: "sd-loading-modal" }, index.h("div", { key: '0598cff340210ca9ec5e28fb1992cbbc1b8e5a06', class: "sd-loading-modal__content" }, this.resolvedState === 'loading' ? (this.progress !== undefined ? (index.h("sd-circle-progress", { value: this.progress })) : (index.h("sd-circle-progress", { indeterminate: true }))) : (index.h("sd-icon", { class: "sd-loading-modal__icon", name: "warningOutline", size: LOADING_MODAL_LAYOUT.contentSize, color: LOADING_MODAL_COLORS.errorIcon }))), index.h("div", { key: '3d699238c19ee66fd3afc72194133a865501cc08', class: "sd-loading-modal__message-wrapper" }, Array.isArray(this.resolvedMessage) ? (this.resolvedMessage.map(message => (index.h("p", { class: "sd-loading-modal__message" }, message)))) : (index.h("p", { class: "sd-loading-modal__message" }, this.resolvedMessage))), this.useButton && (index.h("div", { key: 'd454a168360cd23a3e71482d67ee81d8eabdec58', class: "sd-loading-modal__button" }, index.h("sd-button", { key: '0aa26dc830d1c4827f2ee0ca0bfdf4bb8cd2c9f5', name: LOADING_MODAL_BUTTON_PRESET, label: this.resolvedButtonLabel, onSdClick: this.handleClick }))))));
|
|
192
192
|
}
|
|
193
193
|
};
|
|
194
194
|
SdLoadingModal.style = sdLoadingModalCss();
|
|
@@ -106,9 +106,9 @@ const SdDatePicker = class {
|
|
|
106
106
|
'--sd-system-color-field-border-focus': sdDatePicker_config.DATEPICKER_COLORS.border.focus,
|
|
107
107
|
'--sd-system-color-field-bg-default': sdDatePicker_config.DATEPICKER_COLORS.bg.default,
|
|
108
108
|
};
|
|
109
|
-
return (index.h("sd-field", { key: '
|
|
109
|
+
return (index.h("sd-field", { key: 'baa957e5534b6587da2ef067ecad4a0934693800', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, size: this.size, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, index.h("div", { key: '652f9f5c6bd5c6ee58f3c89eee45325a98234ac0', class: "sd-date-picker", ref: el => {
|
|
110
110
|
this.triggerRef = el;
|
|
111
|
-
} }, index.h("sd-date-picker-trigger", { key: '
|
|
111
|
+
} }, index.h("sd-date-picker-trigger", { key: '7b0f81badbcf7ca283afd274b4572e4a6eaa590b', displayText: this.value ?? '', placeholder: this.placeholder, disabled: this.disabled, size: this.size, onSdTriggerClick: this.handleTriggerClick })), (this.isOpen || this.isAnimatingOut) && (index.h("sd-portal", { key: '65fbe892e4cdd9d643b5000d69220b5e28972902', open: this.isOpen, parentRef: this.triggerRef, onSdClose: () => this.closeDropdown() }, index.h("sd-calendar", { key: 'e9187264f336295907f1d5574810df4a07a0f114', elevated: true, value: this.value, selectable: this.selectable, onSdUpdate: this.handleSelect, onSdViewChange: this.handleViewChange })))));
|
|
112
112
|
}
|
|
113
113
|
static get watchers() { return {
|
|
114
114
|
"isOpen": [{
|
|
@@ -651,12 +651,12 @@ const SdInput = class {
|
|
|
651
651
|
'--sd-system-size-field-sm-height': `${sizeTokens.height}px`,
|
|
652
652
|
'--sd-system-radius-field-sm': `${sizeTokens.radius}px`,
|
|
653
653
|
};
|
|
654
|
-
return (index.h("sd-field", { key: '
|
|
654
|
+
return (index.h("sd-field", { key: 'fce402fae267b5700501e44935f23bebc28efb62', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, readonly: this.readonly, focused: this.focused, hovered: this.hovered, status: this.status, size: this.size, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, index.h("label", { key: 'f7d8f95cf5ee38a7aa2e44940ba39b9eb001064c', class: "sd-input__content" }, index.h("slot", { key: '23f1f770a268a0798293420ce0df9e5cc94e07b2', name: "prefix" }), index.h("input", { key: 'b8c041cc4a8761cf1cf93a8d1af139cd7720d2d8', name: this.name, ref: el => (this.nativeEl = el), class: `sd-input__native ${this.inputClass}`, type: this.type === 'password' && this.passwordVisible ? 'text' : (this.type ?? 'text'), value: this.internalValue || '', placeholder: this.placeholder ?? '입력해 주세요.', disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, autocomplete: this.autocomplete || undefined, maxlength: this.maxlength, minlength: this.minlength, inputmode: this.inputmode, enterkeyhint: this.enterkeyhint, spellcheck: this.spellcheck, onInput: this.handleInput, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event), style: this.inputStyle }), index.h("slot", { key: '5a288d50726b21c156da480937b9759e6c76d33a', name: "suffix" }), this.clearable && this.internalValue && !this.disabled && !this.readonly && (index.h("sd-ghost-button", { key: 'b5315624a6fd5fdcb70526b1abea4fbac83641c1', icon: "close", ariaLabel: "clear", size: "xxs", disabled: this.disabled, class: "sd-input__clear-icon", onClick: async () => {
|
|
655
655
|
if (this.disabled || this.readonly)
|
|
656
656
|
return;
|
|
657
657
|
this.internalValue = '';
|
|
658
658
|
await this.formField?.sdValidate();
|
|
659
|
-
} })), this.type === 'password' && (index.h("sd-ghost-button", { key: '
|
|
659
|
+
} })), this.type === 'password' && (index.h("sd-ghost-button", { key: '5ae70d65c531db0bc57d17f85c328a275f7aab2b', icon: this.passwordVisible ? 'visibilityOn' : 'visibilityOff', ariaLabel: "visibility", size: "xxs", disabled: this.disabled || this.readonly, class: "sd-input__password-icon", onClick: () => {
|
|
660
660
|
if (this.disabled || this.readonly)
|
|
661
661
|
return;
|
|
662
662
|
this.passwordVisible = !this.passwordVisible;
|
|
@@ -1042,15 +1042,15 @@ const SdNumberInput = class {
|
|
|
1042
1042
|
'--sd-textinput-input-hint-typography-line-height': `${NUMBER_INPUT_HINT.typography.lineHeight}px`,
|
|
1043
1043
|
'--sd-textinput-input-contents-gap': `${NUMBER_INPUT_CONTENTS_GAP}px`,
|
|
1044
1044
|
};
|
|
1045
|
-
return (index.h("sd-field", { key: '
|
|
1045
|
+
return (index.h("sd-field", { key: '53c6935bbf98ed1eb0f28d6bed675ea369b0b2bc', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, readonly: this.readonly, focused: this.focused, hovered: this.hovered, status: this.status, size: this.size, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, index.h("div", { key: '8f0da8b179cd3946d625ab6b525a2ffd614a5333', class: {
|
|
1046
1046
|
'sd-number-input__content': true,
|
|
1047
1047
|
'sd-number-input__content--no-stepper': !this.useButton,
|
|
1048
|
-
} }, this.useButton && (index.h("button", { key: '
|
|
1048
|
+
} }, this.useButton && (index.h("button", { key: '1be42c16d5e671c567d4768f505c2c17c50f1b60', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--decrement", disabled: this.isDecrementDisabled(), onClick: this.handleDecrement, tabindex: -1 }, index.h("sd-icon", { key: 'dc074328208c8da2ee43ea2cb03dbc838b7d46c9', name: "minus", size: iconSize, color: this.isDecrementDisabled()
|
|
1049
1049
|
? NUMBER_INPUT_STEPPER.icon.disabled
|
|
1050
|
-
: NUMBER_INPUT_STEPPER.icon.default }))), this.inputPrefix && index.h("span", { key: '
|
|
1050
|
+
: NUMBER_INPUT_STEPPER.icon.default }))), this.inputPrefix && index.h("span", { key: '84896d40d79e936480052ab45d618cd73550ee87', class: "sd-number-input__prefix" }, this.inputPrefix), index.h("input", { key: 'f2c8995b6c059c2a4130018b2ff0c7eabcd7abfb', name: this.name, ref: el => (this.nativeEl = el), class: `sd-number-input__native ${this.inputClass}`, type: "text", inputMode: "numeric", value: this.displayValue, placeholder: this.placeholder ?? '입력해 주세요.', disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, onInput: this.handleInput, onKeyDown: this.handleKeyDown, onFocus: this.handleFocus, onBlur: this.handleBlur, style: {
|
|
1051
1051
|
textAlign: this.useButton ? 'center' : 'right',
|
|
1052
1052
|
...this.inputStyle,
|
|
1053
|
-
} }), this.inputSuffix && index.h("span", { key: '
|
|
1053
|
+
} }), this.inputSuffix && index.h("span", { key: 'd6b1ca9f5991f1b2382dd4a35ae4f20832192e3c', class: "sd-number-input__suffix" }, this.inputSuffix), this.useButton && (index.h("button", { key: '56a59f94ca27e8ef4255cabdd5fe003c602bb8d6', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--increment", disabled: this.isIncrementDisabled(), onClick: this.handleIncrement, tabindex: -1 }, index.h("sd-icon", { key: '1b8fca91e893b5ade47ed63db4d4d54933c94e53', name: "add", size: iconSize, color: this.isIncrementDisabled()
|
|
1054
1054
|
? NUMBER_INPUT_STEPPER.icon.disabled
|
|
1055
1055
|
: NUMBER_INPUT_STEPPER.icon.default }))))));
|
|
1056
1056
|
}
|
|
@@ -1232,7 +1232,7 @@ const SdTextarea = class {
|
|
|
1232
1232
|
'--sd-system-size-field-sm-height': 'auto',
|
|
1233
1233
|
'--sd-system-radius-field-sm': `${TEXTAREA_TOKENS.radius}px`,
|
|
1234
1234
|
};
|
|
1235
|
-
return (index.h("sd-field", { key: '
|
|
1235
|
+
return (index.h("sd-field", { key: '2a1cd03e4f0fa5457b3164f1b6b71d808633414c', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, readonly: this.readonly, 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 }, index.h("div", { key: 'b4e25ced8e583ed3d6e8a6026db0d3a2f198acb4', class: "sd-textarea__content" }, index.h("textarea", { key: '4faeceee380a7ab9a4ff337d16f46c4d7f42fa50', name: this.name, ref: el => (this.nativeEl = el), class: `sd-textarea__native ${this.textareaClass}`, value: this.internalValue || '', placeholder: this.placeholder ?? '입력해 주세요.', disabled: this.disabled, readOnly: this.readonly, autofocus: this.autoFocus, maxLength: this.maxLength, rows: this.rows, spellcheck: this.spellcheck, onInput: this.handleInput, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event), style: this.textareaStyle }))));
|
|
1236
1236
|
}
|
|
1237
1237
|
static get watchers() { return {
|
|
1238
1238
|
"value": [{
|
|
@@ -267,7 +267,7 @@ const SdDateRangePickerCalendar = class {
|
|
|
267
267
|
'--range-panel-gap': `${RANGE_LAYOUT.panelGap}px`,
|
|
268
268
|
'--range-divider': RANGE_LAYOUT.divider,
|
|
269
269
|
};
|
|
270
|
-
return (index.h(index.Fragment, { key: '
|
|
270
|
+
return (index.h(index.Fragment, { key: '91ba95cf0786d59363ac6b72e9c8f91d1802feee' }, index.h("div", { key: '98f66737a15e5c3129dd20f674736115a4fad42e', class: "sd-date-range-picker-calendar", style: cssVars }, this.renderYearNav(), index.h("div", { key: 'd9f326b485864484ed786cb172d3bd33136987ea', class: "sd-date-range-picker-calendar__panels" }, this.renderPanel(this.currentYear, this.currentMonth, true), index.h("span", { key: 'df7d835ac0da6788f08c7963ed04ed98b7fd6091', class: "sd-date-range-picker-calendar__divider", "aria-hidden": "true" }), this.renderPanel(this.rightYear, this.rightMonth, false)))));
|
|
271
271
|
}
|
|
272
272
|
static get watchers() { return {
|
|
273
273
|
"value": [{
|
|
@@ -19,7 +19,7 @@ const SdDivider = class {
|
|
|
19
19
|
const hostStyle = {
|
|
20
20
|
'--sd-divider-color': DIVIDER_COLORS.default,
|
|
21
21
|
};
|
|
22
|
-
return (index.h(index.Host, { key: '
|
|
22
|
+
return (index.h(index.Host, { key: '8282aae8e5cd26630c54f4347cd26f544672d15d', style: hostStyle }, index.h("hr", { key: '94df7dc7465b05ecad6527da2c008a4ff503f034', "aria-orientation": this.vertical ? 'vertical' : 'horizontal' })));
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
25
|
SdDivider.style = sdDividerCss();
|