@sellmate/design-system 1.0.25 → 1.0.27
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-C6xBMwHf.js → component.button-ASC_hRm6.js} +0 -7
- 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 +29 -6
- package/dist/cjs/sd-button-v2.cjs.entry.js +5 -6
- package/dist/cjs/{sd-button-v2.config-BK45EPK_.js → sd-button-v2.config-DGJDtL6W.js} +1 -27
- package/dist/cjs/sd-button_21.cjs.entry.js +77 -50
- package/dist/cjs/sd-card.cjs.entry.js +1 -1
- package/dist/cjs/sd-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/sd-dropdown-button.cjs.entry.js +7 -22
- package/dist/cjs/sd-file-picker.cjs.entry.js +3 -3
- package/dist/cjs/sd-form.cjs.entry.js +1 -1
- package/dist/cjs/sd-guide.cjs.entry.js +2 -2
- package/dist/cjs/sd-popover.cjs.entry.js +15 -2
- package/dist/cjs/sd-progress.cjs.entry.js +2 -2
- package/dist/cjs/sd-radio-button-group.cjs.entry.js +1 -1
- package/dist/cjs/sd-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/sd-select-multiple-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-tabs.cjs.entry.js +1 -1
- package/dist/cjs/sd-tag.cjs.entry.js +104 -35
- package/dist/cjs/sd-toast.cjs.entry.js +3 -3
- package/dist/cjs/sd-toggle-button.cjs.entry.js +1 -1
- package/dist/cjs/sd-toggle.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/sd-badge/sd-badge.config.js +12 -0
- package/dist/collection/components/sd-badge/sd-badge.css +5 -14
- package/dist/collection/components/sd-badge/sd-badge.js +15 -29
- package/dist/collection/components/sd-button-v2/sd-button-v2.config.js +0 -24
- package/dist/collection/components/sd-button-v2/sd-button-v2.css +6 -5
- package/dist/collection/components/sd-button-v2/sd-button-v2.js +4 -5
- package/dist/collection/components/sd-card/sd-card.js +1 -1
- package/dist/collection/components/sd-date-picker/sd-date-picker.js +1 -1
- package/dist/collection/components/sd-date-range-picker/sd-date-range-picker.js +2 -2
- package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.config.js +1 -10
- package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.css +9 -5
- package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.js +3 -9
- package/dist/collection/components/sd-field/sd-field.js +5 -5
- package/dist/collection/components/sd-file-picker/sd-file-picker.js +3 -3
- package/dist/collection/components/sd-floating-portal/sd-floating-portal.css +52 -28
- package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +1 -1
- package/dist/collection/components/sd-form/sd-form.js +1 -1
- package/dist/collection/components/sd-guide/sd-guide.js +2 -2
- package/dist/collection/components/sd-icon/sd-icon.js +1 -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-modal-card/sd-modal-card.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 +2 -2
- package/dist/collection/components/sd-popover/sd-popover.js +6 -2
- package/dist/collection/components/sd-portal/sd-portal.js +11 -10
- package/dist/collection/components/sd-progress/sd-progress.js +2 -2
- package/dist/collection/components/sd-radio/sd-radio.js +1 -1
- package/dist/collection/components/sd-radio-button-group/sd-radio-button-group.js +1 -1
- package/dist/collection/components/sd-radio-group/sd-radio-group.js +1 -1
- 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/sd-select.js +3 -3
- package/dist/collection/components/sd-select-multiple/sd-select-multiple.js +1 -1
- package/dist/collection/components/sd-select-multiple-group/sd-select-multiple-group.js +3 -3
- package/dist/collection/components/sd-select-multiple-group/sd-select-option-group/sd-select-option-group.js +3 -3
- package/dist/collection/components/sd-table/sd-table.js +4 -4
- package/dist/collection/components/sd-tabs/sd-tabs.js +1 -1
- package/dist/collection/components/sd-tag/sd-tag.config.js +35 -31
- package/dist/collection/components/sd-tag/sd-tag.css +1 -1
- package/dist/collection/components/sd-tag/sd-tag.js +6 -5
- package/dist/collection/components/sd-textarea/sd-textarea.js +2 -2
- package/dist/collection/components/sd-toast/sd-toast.js +2 -2
- package/dist/collection/components/sd-toggle/sd-toggle.js +1 -1
- package/dist/collection/components/sd-toggle-button/sd-toggle-button.js +1 -1
- package/dist/collection/components/sd-tooltip/sd-tooltip.config.js +7 -0
- package/dist/collection/components/sd-tooltip/sd-tooltip.js +21 -32
- package/dist/components/{p-Dc4UTGgQ.js → p-2CurSZ9q.js} +1 -1
- package/dist/components/{p-CAZeEBeS.js → p-BDPJKxrr.js} +1 -1
- package/dist/components/{p-D9mJxIjm.js → p-BFVe-fGw.js} +1 -1
- package/dist/components/{p-DYoNy5I7.js → p-BVIzG0vO.js} +1 -1
- package/dist/components/p-BZt0PSLv.js +1 -0
- package/dist/components/{p-2FdkYfts.js → p-CGgmrFwF.js} +1 -1
- package/dist/components/p-COsw7PE1.js +1 -0
- package/dist/components/{p-CdCMe4bN.js → p-CS4tniB3.js} +1 -1
- package/dist/components/{p-CwM24aVj.js → p-CZLePSDf.js} +1 -1
- package/dist/components/{p-B1o7vc2v.js → p-CgilbV-B.js} +1 -1
- package/dist/components/{p-DUqcOPNn.js → p-CquSJNHV.js} +1 -1
- package/dist/components/{p-CzHa12Ax.js → p-D4eRE9J1.js} +1 -1
- package/dist/components/{p-BxXKe48B.js → p-DNQE5SAA.js} +1 -1
- package/dist/components/{p-G4t0nGLP.js → p-DfhTm5zs.js} +1 -1
- package/dist/components/p-DghTuouQ.js +1 -0
- package/dist/components/{p-Czq-8oT7.js → p-DtNd46kD.js} +1 -1
- package/dist/components/p-DuzMehmA.js +1 -0
- package/dist/components/p-fvvA-prd.js +1 -0
- package/dist/components/{p-BKTfQGcR.js → p-kyuN077y.js} +1 -1
- package/dist/components/p-wt_xdZCl.js +1 -0
- package/dist/components/sd-badge.js +1 -1
- package/dist/components/sd-button-v2.js +1 -1
- package/dist/components/sd-button.js +1 -1
- package/dist/components/sd-card.js +1 -1
- package/dist/components/sd-checkbox.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-form.js +1 -1
- 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-card.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-portal.js +1 -1
- package/dist/components/sd-progress.js +1 -1
- package/dist/components/sd-radio-button-group.js +1 -1
- package/dist/components/sd-radio-group.js +1 -1
- package/dist/components/sd-radio.js +1 -1
- package/dist/components/sd-select-dropdown.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.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-textarea.js +1 -1
- package/dist/components/sd-toast.js +1 -1
- package/dist/components/sd-toggle-button.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.css +1 -1
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/design-system/{p-c0655cd1.entry.js → p-141f5a74.entry.js} +1 -1
- package/dist/design-system/{p-e6d84ecf.entry.js → p-19805249.entry.js} +1 -1
- package/dist/design-system/{p-Dc4UTGgQ.js → p-2CurSZ9q.js} +1 -1
- package/dist/design-system/p-37e9e161.entry.js +1 -0
- package/dist/design-system/{p-1b80635f.entry.js → p-3d91bd65.entry.js} +1 -1
- package/dist/design-system/{p-5094848f.entry.js → p-58e3bd95.entry.js} +1 -1
- package/dist/design-system/{p-02c5ab69.entry.js → p-5ef7ff34.entry.js} +1 -1
- package/dist/design-system/{p-83f320e6.entry.js → p-680c5afb.entry.js} +1 -1
- package/dist/design-system/p-73362d34.entry.js +1 -0
- package/dist/design-system/p-73d29523.entry.js +1 -0
- package/dist/design-system/{p-3565f871.entry.js → p-7801d0bb.entry.js} +1 -1
- package/dist/design-system/p-8be27d6e.entry.js +1 -0
- package/dist/design-system/p-995f2846.entry.js +1 -0
- package/dist/design-system/{p-DUqcOPNn.js → p-CquSJNHV.js} +1 -1
- package/dist/design-system/p-DuzMehmA.js +1 -0
- package/dist/design-system/{p-ea26b8e9.entry.js → p-a493d89a.entry.js} +1 -1
- package/dist/design-system/{p-8b013328.entry.js → p-a7815753.entry.js} +1 -1
- package/dist/design-system/{p-712c1ef1.entry.js → p-b9f3d804.entry.js} +1 -1
- package/dist/design-system/p-c32943cf.entry.js +1 -0
- package/dist/design-system/p-ce410fca.entry.js +1 -0
- package/dist/design-system/p-d8b04e91.entry.js +1 -0
- package/dist/design-system/{p-df3d3a2a.entry.js → p-e711ab13.entry.js} +1 -1
- package/dist/design-system/{p-5032c700.entry.js → p-e9040a63.entry.js} +1 -1
- package/dist/design-system/{p-f1b31194.entry.js → p-e9bd0893.entry.js} +1 -1
- package/dist/esm/{component.button-Dc4UTGgQ.js → component.button-2CurSZ9q.js} +0 -7
- package/dist/esm/design-system.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/sd-badge.entry.js +29 -6
- package/dist/esm/{sd-button-v2.config-BWmcscrt.js → sd-button-v2.config-FpT7FqlI.js} +2 -27
- package/dist/esm/sd-button-v2.entry.js +5 -6
- package/dist/esm/sd-button_21.entry.js +77 -50
- package/dist/esm/sd-card.entry.js +1 -1
- package/dist/esm/sd-date-picker.entry.js +1 -1
- package/dist/esm/sd-dropdown-button.entry.js +7 -22
- package/dist/esm/sd-file-picker.entry.js +3 -3
- package/dist/esm/sd-form.entry.js +1 -1
- package/dist/esm/sd-guide.entry.js +2 -2
- package/dist/esm/sd-popover.entry.js +15 -2
- package/dist/esm/sd-progress.entry.js +2 -2
- package/dist/esm/sd-radio-button-group.entry.js +1 -1
- package/dist/esm/sd-radio-group.entry.js +1 -1
- package/dist/esm/sd-select-multiple-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-tabs.entry.js +1 -1
- package/dist/esm/sd-tag.entry.js +104 -35
- package/dist/esm/sd-toast.entry.js +3 -3
- package/dist/esm/sd-toggle-button.entry.js +1 -1
- package/dist/esm/sd-toggle.entry.js +1 -1
- package/dist/types/components/sd-badge/sd-badge.config.d.ts +3 -0
- package/dist/types/components/sd-badge/sd-badge.d.ts +2 -2
- package/dist/types/components/sd-button-v2/sd-button-v2.config.d.ts +0 -23
- package/dist/types/components/sd-dropdown-button/sd-dropdown-button.config.d.ts +1 -4
- package/dist/types/components/sd-field/sd-field.d.ts +1 -1
- package/dist/types/components/sd-input/sd-input.d.ts +1 -1
- package/dist/types/components/sd-select/sd-select.d.ts +1 -1
- package/dist/types/components/sd-select-multiple-group/sd-select-multiple-group.d.ts +1 -1
- package/dist/types/components/sd-tag/sd-tag.config.d.ts +2 -1
- package/dist/types/components/sd-tooltip/sd-tooltip.config.d.ts +18 -0
- package/dist/types/components/sd-tooltip/sd-tooltip.d.ts +2 -15
- package/dist/types/components.d.ts +18 -34
- package/hydrate/index.js +384 -301
- package/hydrate/index.mjs +384 -301
- package/package.json +1 -1
- package/dist/components/p-BFO8hHjW.js +0 -1
- package/dist/components/p-CDzGasXW.js +0 -1
- package/dist/components/p-CVvYLd5J.js +0 -1
- package/dist/components/p-Dun2lZmi.js +0 -1
- package/dist/components/p-NAapFxTw.js +0 -1
- package/dist/components/p-VKF2AWs1.js +0 -1
- package/dist/design-system/p-285cc646.entry.js +0 -1
- package/dist/design-system/p-59a52297.entry.js +0 -1
- package/dist/design-system/p-9563ffe1.entry.js +0 -1
- package/dist/design-system/p-VKF2AWs1.js +0 -1
- package/dist/design-system/p-b1e45f3f.entry.js +0 -1
- package/dist/design-system/p-d8a141e7.entry.js +0 -1
- package/dist/design-system/p-e7d7ceb4.entry.js +0 -1
- package/dist/design-system/p-efd52bd3.entry.js +0 -1
- package/dist/design-system/p-f81d3798.entry.js +0 -1
- package/dist/cjs/{resolveColor-4RlaGD62.js → resolveColor-Di1RNekE.js} +2 -2
- package/dist/esm/{resolveColor-DUqcOPNn.js → resolveColor-CquSJNHV.js} +2 -2
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { b as buttonTokens } from './component.button-
|
|
1
|
+
import { b as buttonTokens } from './component.button-2CurSZ9q.js';
|
|
2
2
|
|
|
3
3
|
const BUTTON_FOCUS_RING_COLOR = '#0075FF';
|
|
4
4
|
const PRESET_DEFAULT_COLORS = {
|
|
5
5
|
primary: buttonTokens.brand.strong.bg.default,
|
|
6
6
|
secondary: buttonTokens.brand.subtle.bg.default,
|
|
7
7
|
primary_outline: buttonTokens.brand.outline.bg.default,
|
|
8
|
-
neutral: buttonTokens.neutral.subtle.bg.default,
|
|
9
8
|
neutral_outline: buttonTokens.neutral.outline.bg.default,
|
|
10
9
|
danger: buttonTokens.danger.strong.bg.default,
|
|
11
10
|
danger_outline: buttonTokens.danger.outline.bg.default,
|
|
@@ -26,11 +25,6 @@ const BUTTON_CONFIG = {
|
|
|
26
25
|
size: 'xs',
|
|
27
26
|
color: PRESET_DEFAULT_COLORS.primary_outline,
|
|
28
27
|
},
|
|
29
|
-
neutral_xs: {
|
|
30
|
-
variant: 'primary',
|
|
31
|
-
size: 'xs',
|
|
32
|
-
color: PRESET_DEFAULT_COLORS.neutral,
|
|
33
|
-
},
|
|
34
28
|
neutral_outline_xs: {
|
|
35
29
|
variant: 'outline',
|
|
36
30
|
size: 'xs',
|
|
@@ -61,11 +55,6 @@ const BUTTON_CONFIG = {
|
|
|
61
55
|
size: 'sm',
|
|
62
56
|
color: PRESET_DEFAULT_COLORS.primary_outline,
|
|
63
57
|
},
|
|
64
|
-
neutral_sm: {
|
|
65
|
-
variant: 'primary',
|
|
66
|
-
size: 'sm',
|
|
67
|
-
color: PRESET_DEFAULT_COLORS.neutral,
|
|
68
|
-
},
|
|
69
58
|
neutral_outline_sm: {
|
|
70
59
|
variant: 'outline',
|
|
71
60
|
size: 'sm',
|
|
@@ -96,11 +85,6 @@ const BUTTON_CONFIG = {
|
|
|
96
85
|
size: 'md',
|
|
97
86
|
color: PRESET_DEFAULT_COLORS.primary_outline,
|
|
98
87
|
},
|
|
99
|
-
neutral_md: {
|
|
100
|
-
variant: 'primary',
|
|
101
|
-
size: 'md',
|
|
102
|
-
color: PRESET_DEFAULT_COLORS.neutral,
|
|
103
|
-
},
|
|
104
88
|
neutral_outline_md: {
|
|
105
89
|
variant: 'outline',
|
|
106
90
|
size: 'md',
|
|
@@ -131,11 +115,6 @@ const BUTTON_CONFIG = {
|
|
|
131
115
|
size: 'lg',
|
|
132
116
|
color: PRESET_DEFAULT_COLORS.primary_outline,
|
|
133
117
|
},
|
|
134
|
-
neutral_lg: {
|
|
135
|
-
variant: 'primary',
|
|
136
|
-
size: 'lg',
|
|
137
|
-
color: PRESET_DEFAULT_COLORS.neutral,
|
|
138
|
-
},
|
|
139
118
|
neutral_outline_lg: {
|
|
140
119
|
variant: 'outline',
|
|
141
120
|
size: 'lg',
|
|
@@ -162,7 +141,6 @@ const PRESET_HOVER_BACKGROUNDS = {
|
|
|
162
141
|
primary: buttonTokens.brand.strong.bg.hover,
|
|
163
142
|
secondary: buttonTokens.brand.subtle.bg.hover,
|
|
164
143
|
primary_outline: buttonTokens.brand.outline.bg.hover,
|
|
165
|
-
neutral: buttonTokens.neutral.subtle.bg.hover,
|
|
166
144
|
neutral_outline: buttonTokens.neutral.outline.bg.hover,
|
|
167
145
|
danger: buttonTokens.danger.strong.bg.hover,
|
|
168
146
|
danger_outline: buttonTokens.danger.outline.bg.hover,
|
|
@@ -171,7 +149,6 @@ const PRESET_CONTENT_COLORS = {
|
|
|
171
149
|
primary: buttonTokens.brand.strong.content,
|
|
172
150
|
secondary: buttonTokens.brand.subtle.content,
|
|
173
151
|
primary_outline: buttonTokens.brand.outline.content,
|
|
174
|
-
neutral: buttonTokens.neutral.subtle.content,
|
|
175
152
|
neutral_outline: buttonTokens.neutral.outline.content,
|
|
176
153
|
danger: buttonTokens.danger.strong.content,
|
|
177
154
|
danger_outline: buttonTokens.danger.outline.content,
|
|
@@ -180,14 +157,12 @@ const PRESET_BORDER_COLORS = {
|
|
|
180
157
|
primary: 'transparent',
|
|
181
158
|
secondary: 'transparent',
|
|
182
159
|
primary_outline: buttonTokens.brand.outline.border,
|
|
183
|
-
neutral: 'transparent',
|
|
184
160
|
neutral_outline: buttonTokens.neutral.outline.border,
|
|
185
161
|
danger: 'transparent',
|
|
186
162
|
danger_outline: buttonTokens.danger.outline.border,
|
|
187
163
|
};
|
|
188
|
-
const DISABLED_CONTENT = buttonTokens.content.disabled;
|
|
189
164
|
const SIZE_SUFFIX_PATTERN = /_(xs|sm|md|lg)$/;
|
|
190
165
|
const isButtonV2Name = (value) => value in BUTTON_CONFIG;
|
|
191
166
|
const getPresetName = (value) => value.replace(SIZE_SUFFIX_PATTERN, '');
|
|
192
167
|
|
|
193
|
-
export { BUTTON_CONFIG as B,
|
|
168
|
+
export { BUTTON_CONFIG as B, PRESET_CONTENT_COLORS as P, BUTTON_ICON_SIZES as a, BUTTON_FOCUS_RING_COLOR as b, PRESET_BORDER_COLORS as c, PRESET_HOVER_BACKGROUNDS as d, getPresetName as g, isButtonV2Name as i };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-B8tGP77V.js';
|
|
2
|
-
import { i as isButtonV2Name, g as getPresetName, B as BUTTON_CONFIG,
|
|
3
|
-
import './component.button-
|
|
2
|
+
import { i as isButtonV2Name, g as getPresetName, B as BUTTON_CONFIG, a as BUTTON_ICON_SIZES, b as BUTTON_FOCUS_RING_COLOR, P as PRESET_CONTENT_COLORS, c as PRESET_BORDER_COLORS, d as PRESET_HOVER_BACKGROUNDS } from './sd-button-v2.config-FpT7FqlI.js';
|
|
3
|
+
import './component.button-2CurSZ9q.js';
|
|
4
4
|
|
|
5
|
-
const sdButtonV2Css = () => `sd-button-v2{display:inline-flex;width:fit-content;height:fit-content}.sd-button-v2{--sd-button-v2-height:34px;--sd-button-v2-padding-x:20px;--sd-button-v2-gap:8px;--sd-button-v2-font-family:inherit;--sd-button-v2-font-size:16px;--sd-button-v2-font-weight:500;--sd-button-v2-text-decoration:none;--sd-button-v2-label-min-width:auto;--sd-button-v2-icon-only-size:var(--sd-button-v2-height);--sd-button-v2-bg
|
|
5
|
+
const sdButtonV2Css = () => `sd-button-v2{display:inline-flex;width:fit-content;height:fit-content}.sd-button-v2{--sd-button-v2-height:34px;--sd-button-v2-padding-x:20px;--sd-button-v2-gap:8px;--sd-button-v2-font-family:inherit;--sd-button-v2-font-size:16px;--sd-button-v2-font-weight:500;--sd-button-v2-text-decoration:none;--sd-button-v2-label-min-width:auto;--sd-button-v2-icon-only-size:var(--sd-button-v2-height);--sd-button-v2-bg:$oceanblue_75;--sd-button-v2-bg-hover:$oceanblue_80;--sd-button-v2-border:transparent;--sd-button-v2-content:$white;--sd-button-v2-current-content:var(--sd-button-v2-content);display:inline-flex;align-items:center;justify-content:center;min-height:var(--sd-button-v2-height);min-width:var(--sd-button-v2-min-width, auto);padding:0 var(--sd-button-v2-padding-x);border:var(--sd-button-border-width-default, 1px) solid var(--sd-button-v2-border);border-radius:var(--sd-button-radius-default, 4px);background:var(--sd-button-v2-bg);color:var(--sd-button-v2-current-content);cursor:pointer;box-sizing:border-box;font-family:var(--sd-button-v2-font-family);font-size:var(--sd-button-v2-font-size);font-weight:var(--sd-button-v2-font-weight);line-height:1;text-decoration:var(--sd-button-v2-text-decoration);transition:background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;white-space:nowrap;-webkit-user-select:none;user-select:none}.sd-button-v2:hover:not(.sd-button-v2--disabled){background:var(--sd-button-v2-bg-hover)}.sd-button-v2:focus-visible{outline:0;box-shadow:0 0 0 2px var(--sd-button-v2-accent)}.sd-button-v2--xs{--sd-button-v2-height:var(--sd-button-xs-height, 24px);--sd-button-v2-padding-x:var(--sd-button-xs-padding-x, 8px);--sd-button-v2-gap:var(--sd-button-xs-gap, 4px);--sd-button-v2-font-family:var(--sd-button-xs-typography-font-family, inherit);--sd-button-v2-font-size:var(--sd-button-xs-typography-font-size, 12px);--sd-button-v2-font-weight:var(--sd-button-xs-typography-font-weight, 500);--sd-button-v2-text-decoration:var(--sd-button-xs-typography-text-decoration, none);--sd-button-v2-label-min-width:var(--sd-button-label-xs-min-width, auto);--sd-button-v2-icon-only-size:var(--sd-button-icon-only-xs-width, var(--sd-button-v2-height))}.sd-button-v2--sm{--sd-button-v2-height:var(--sd-button-sm-height, 28px);--sd-button-v2-padding-x:var(--sd-button-sm-padding-x, 12px);--sd-button-v2-gap:var(--sd-button-sm-gap, 6px);--sd-button-v2-font-family:var(--sd-button-sm-typography-font-family, inherit);--sd-button-v2-font-size:var(--sd-button-sm-typography-font-size, 12px);--sd-button-v2-font-weight:var(--sd-button-sm-typography-font-weight, 500);--sd-button-v2-text-decoration:var(--sd-button-sm-typography-text-decoration, none);--sd-button-v2-label-min-width:var(--sd-button-label-sm-min-width, auto);--sd-button-v2-icon-only-size:var(--sd-button-icon-only-sm-width, var(--sd-button-v2-height))}.sd-button-v2--md{--sd-button-v2-height:var(--sd-button-md-height, 34px);--sd-button-v2-padding-x:var(--sd-button-md-padding-x, 20px);--sd-button-v2-gap:var(--sd-button-md-gap, 8px);--sd-button-v2-font-family:var(--sd-button-md-typography-font-family, inherit);--sd-button-v2-font-size:var(--sd-button-md-typography-font-size, 16px);--sd-button-v2-font-weight:var(--sd-button-md-typography-font-weight, 500);--sd-button-v2-text-decoration:var(--sd-button-md-typography-text-decoration, none);--sd-button-v2-label-min-width:var(--sd-button-label-md-min-width, auto);--sd-button-v2-icon-only-size:var(--sd-button-icon-only-md-width, var(--sd-button-v2-height))}.sd-button-v2--lg{--sd-button-v2-height:var(--sd-button-lg-height, 62px);--sd-button-v2-padding-x:var(--sd-button-lg-padding-x, 28px);--sd-button-v2-gap:var(--sd-button-lg-gap, 12px);--sd-button-v2-font-family:var(--sd-button-lg-typography-font-family, inherit);--sd-button-v2-font-size:var(--sd-button-lg-typography-font-size, 18px);--sd-button-v2-font-weight:var(--sd-button-lg-typography-font-weight, 500);--sd-button-v2-text-decoration:var(--sd-button-lg-typography-text-decoration, none);--sd-button-v2-label-min-width:var(--sd-button-label-lg-min-width, auto);--sd-button-v2-icon-only-size:var(--sd-button-icon-only-lg-width, var(--sd-button-v2-height))}.sd-button-v2--has-label{--sd-button-v2-min-width:var(--sd-button-v2-label-min-width, auto)}.sd-button-v2--icon-only{width:var(--sd-button-v2-icon-only-size, var(--sd-button-v2-height));min-width:var(--sd-button-v2-icon-only-size, var(--sd-button-v2-height));height:var(--sd-button-v2-icon-only-size, var(--sd-button-v2-height));padding:0}.sd-button-v2--icon-only .sd-button-v2__content{gap:0}.sd-button-v2--disabled{border-color:var(--sd-button-border-disabled, #CCCCCC);background:var(--sd-button-bg-disabled, #E1E1E1);--sd-button-v2-current-content:var(--sd-button-content-disabled, $grey_65);cursor:not-allowed}.sd-button-v2 .sd-button-v2__content{display:inline-flex;align-items:center;justify-content:center;gap:var(--sd-button-v2-gap)}.sd-button-v2 .sd-button-v2__label{font:inherit}`;
|
|
6
6
|
|
|
7
7
|
const SdButtonV2 = class {
|
|
8
8
|
constructor(hostRef) {
|
|
@@ -69,14 +69,13 @@ const SdButtonV2 = class {
|
|
|
69
69
|
const hasLabel = Boolean(this.label);
|
|
70
70
|
const iconOnly = !this.label && Boolean(this.icon);
|
|
71
71
|
const accessibleName = iconOnly && this.ariaLabel.trim() ? this.ariaLabel : undefined;
|
|
72
|
-
|
|
73
|
-
return (h("button", { key: '9adec3868e5337822463a5a37a741ef146a081be', class: this.getButtonClasses(preset, config.size, hasLabel, iconOnly), type: this.type, disabled: this.disabled, "aria-label": accessibleName, style: {
|
|
72
|
+
return (h("button", { key: '248e85751b7f7f1cdb770e4f4c1466fa8736f024', class: this.getButtonClasses(preset, config.size, hasLabel, iconOnly), type: this.type, disabled: this.disabled, "aria-label": accessibleName, style: {
|
|
74
73
|
'--sd-button-v2-bg': config.variant === 'primary' ? config.color : '#FFFFFF',
|
|
75
74
|
'--sd-button-v2-bg-hover': PRESET_HOVER_BACKGROUNDS[preset],
|
|
76
75
|
'--sd-button-v2-border': PRESET_BORDER_COLORS[preset],
|
|
77
76
|
'--sd-button-v2-content': PRESET_CONTENT_COLORS[preset],
|
|
78
77
|
'--sd-button-v2-accent': BUTTON_FOCUS_RING_COLOR,
|
|
79
|
-
}, onClick: this.handleClick }, h("span", { key: '
|
|
78
|
+
}, onClick: this.handleClick }, h("span", { key: '0b68fdf9711cd26d6f143fec848d3e16e32c81e2', class: "sd-button-v2__content" }, this.icon && (h("sd-icon", { key: '26bffa7135658f790e65a8b0aa32af055ea269f2', class: "sd-button-v2__icon", name: this.icon, size: BUTTON_ICON_SIZES[config.size], color: "var(--sd-button-v2-current-content)" })), this.label && h("span", { key: '5016092b05b4f068f823ae8dbd6a47ea23763086', class: "sd-button-v2__label" }, this.label))));
|
|
80
79
|
}
|
|
81
80
|
};
|
|
82
81
|
SdButtonV2.style = sdButtonV2Css();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, g as getElement, h, F as Fragment, a as readTask } from './index-B8tGP77V.js';
|
|
2
|
-
import { b as buttonTokens } from './component.button-
|
|
3
|
-
import { r as resolveColor } from './resolveColor-
|
|
2
|
+
import { b as buttonTokens } from './component.button-2CurSZ9q.js';
|
|
3
|
+
import { r as resolveColor } from './resolveColor-CquSJNHV.js';
|
|
4
4
|
import { u as useDatePicker, t as today } from './useDatePicker-DTrMR0rx.js';
|
|
5
5
|
import { n as nanoid, S as SelectKeyboardNavigation } from './select-keyboard-navigation-xxEHPVkL.js';
|
|
6
6
|
import { B as BaseDropdownEvent } from './base-dropdown-event-CRdYeSBK.js';
|
|
@@ -371,10 +371,10 @@ const SdDateRangePicker = class {
|
|
|
371
371
|
this.setHoverDate(hoverDate);
|
|
372
372
|
}
|
|
373
373
|
render() {
|
|
374
|
-
return (h("div", { key: '
|
|
374
|
+
return (h("div", { key: '80ba555e36642dabe58a34a344ec751684307eb6', class: {
|
|
375
375
|
'sd-date-range-picker': true,
|
|
376
376
|
'sd-date-range-picker--disabled': this.disabled,
|
|
377
|
-
} }, h("sd-input", { key: '
|
|
377
|
+
} }, h("sd-input", { key: '12c5dca1cfad0dafee1531c62be818d4cd8f12c2', ref: el => (this.inputEl = el), value: !!this.dateRange[0] ? `${this.dateRange[0]} ~ ${this.dateRange[1]}` : '', label: this.label, "inside-label": true, readonly: true, disabled: this.disabled, placeholder: this.placeholder, inputClass: "sd-date-range-picker__input", onClick: () => this.openMenu() }, h("sd-icon", { key: 'a62fa8ce117ff983062d5d39b927692c8088781d', slot: "prefix", name: "date", size: "16", color: this.disabled ? 'grey_65' : 'grey_70', class: "date-icon", onClick: () => this.openMenu() })), this.isOpen && (h("sd-portal", { key: 'e79962823af4c29121c18236d886199268a03eb3', open: this.isOpen, parentRef: this.inputEl, onSdClose: this.closeMenu }, h("div", { key: '7c5fe668dabda4cf5219bcfd062997a8f5337cfa', class: "sd-date-range-picker__menu" }, h("div", { key: '33b5d471d9db5f703b6f846442e27dd5425775bb', class: "sd-date-range-picker__header mb-16pxr flex flex-nowrap items-center justify-center" }, h("button", { key: 'd54d8f953be79447ee708404329178d9e1ad3a23', type: "button", name: "prev", title: "Previous", onClick: () => this.setPrevYear(this.prevYear - 1) }, h("sd-icon", { key: '64444f120884efa30f9b58944cd9bc8918648aaf', name: "arrowLeft", size: "12", color: "#CCCCCC" })), h("div", { key: '0ae2129755ba9a30bb41522893bd1d27905e6666', class: "header-label" }, this.prevYear), h("button", { key: '7d8f3627e72869fd35e964e0c555680d47744f5c', type: "button", name: "next", title: "Next", onClick: () => this.setPrevYear(this.prevYear + 1) }, h("sd-icon", { key: 'caeb87d6cac5b5c89bc65c97d60f5b45b55becb1', name: "arrowRight", size: "12", color: "#CCCCCC" }))), h("div", { key: '958cd5ed27b2f1a72214c4e2426dc60349e65c50', class: "sd-date-range-picker__body" }, [this.prevCalendar, this.nextCalendar].map((calendar, index) => (h(Fragment, null, index === 1 && h("div", { class: "separator" }), h("div", { key: index, class: "calendar-container" }, h("div", { class: "calendar-header" }, h("button", { type: "button", name: "month", title: "Month", class: index === 0 ? 'header-button-prev' : 'header-button-next', onClick: () => this.updateYearMonth(index === 0 ? 'prev' : 'next') }, h("sd-icon", { name: index === 0 ? 'arrowLeft' : 'arrowRight', size: "12", color: "#CCCCCC" })), index === 0
|
|
378
378
|
? `${this.prevYear}.${String(this.prevMonth).padStart(2, '0')}`
|
|
379
379
|
: `${this.nextYear}.${String(this.nextMonth).padStart(2, '0')}`), h("div", { class: "calendar-days" }, ['일', '월', '화', '수', '목', '금', '토'].map(day => (h("sd-date-box", { key: day, date: day, disabled: true, class: "day" })))), h("div", { class: "calendar-body mt-12pxr grid grid-cols-7 gap-y-8pxr" }, [...calendar.prevMonthDays, ...calendar.days, ...calendar.afterMonthDays].map((day, idx) => (h("sd-date-box", { key: `prev${day}_${idx}`, date: !day ? '' : Number(day), selected: this.dateRange.some(date => date === this.formatDate(index, Number(day))), type: this.getDateBoxType(this.formatDate(index, Number(day))), isToday: today === this.formatDate(index, Number(day)), disabled: !day ? true : this.isDisabledDate(this.formatDate(index, Number(day))), inRange: this.isDateInRange(this.formatDate(index, Number(day))), isStartDate: this.dateRange[0] === this.formatDate(index, Number(day)), isEndDate: this.dateRange[1] === this.formatDate(index, Number(day)), onSdClick: () => this.handleDateClick(index, Number(day)), onSdMouseOver: () => this.handleDateHover(index, Number(day)) }))))))))))))));
|
|
380
380
|
}
|
|
@@ -506,15 +506,15 @@ const SdField = class {
|
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
508
|
render() {
|
|
509
|
-
return (h("div", { key: '
|
|
509
|
+
return (h("div", { key: 'd92c9080fdf4c060dcded1c17af36bec35d3b6ce', class: {
|
|
510
510
|
'sd-field': true,
|
|
511
511
|
'sd-field--has-label': !!this.label,
|
|
512
512
|
'sd-field--has-label-inside': !!this.label && this.insideLabel,
|
|
513
513
|
[this.fieldStatus]: !!this.fieldStatus,
|
|
514
|
-
} }, h("div", { key: '
|
|
514
|
+
} }, h("div", { key: '2c07af0bdc9490177d030b670e67a128563af488', class: "sd-field__wrapper" }, this.renderLabel(this.label), h("div", { key: '5fa2079b2123688c0eab63780b55e70fe9f4a77b', class: {
|
|
515
515
|
'sd-field__control': true,
|
|
516
516
|
'sd-field__control--label-inside ': !!this.label && this.insideLabel,
|
|
517
|
-
} }, h("slot", { key: '
|
|
517
|
+
} }, h("slot", { key: '2b0b3240afe20e1759853928fcd2846d1321262b' }))), this.errorMsg && h("div", { key: 'f932da0af97a7d1e2253bdc5a64a8269fa55625d', class: "sd-field__error-message" }, this.errorMsg)));
|
|
518
518
|
}
|
|
519
519
|
renderLabel(label) {
|
|
520
520
|
if (!label)
|
|
@@ -524,7 +524,7 @@ const SdField = class {
|
|
|
524
524
|
};
|
|
525
525
|
SdField.style = sdFieldCss();
|
|
526
526
|
|
|
527
|
-
const sdFloatingPortalCss = () => `.sd-floating-menu{width:fit-content;padding:12px
|
|
527
|
+
const sdFloatingPortalCss = () => `.sd-floating-menu{width:fit-content;padding:12px 16px;border-radius:6px;font-size:12px;font-weight:500;line-height:20px;position:relative;box-sizing:border-box;background:var(--sd-floating-bg, #07284A);color:var(--sd-floating-content, #FFFFFF)}.sd-floating-menu .sd-floating-menu__arrow{color:var(--sd-floating-bg, #07284A)}.sd-floating-menu--default{background:var(--sd-floating-bg, #07284A);color:var(--sd-floating-content, #FFFFFF);font-weight:500}.sd-floating-menu--default .sd-floating-menu__arrow{color:var(--sd-floating-bg, #07284A)}.sd-floating-menu--danger{background:var(--sd-floating-bg, #FCE6E6);color:var(--sd-floating-content, #FB4444);font-weight:700}.sd-floating-menu--danger .sd-floating-menu__arrow{color:var(--sd-floating-bg, #FCE6E6)}.sd-floating-menu--warning{background:var(--sd-floating-bg, #FEF1EA);color:var(--sd-floating-content, #FF6B00);font-weight:700}.sd-floating-menu--warning .sd-floating-menu__arrow{color:var(--sd-floating-bg, #FEF1EA)}.sd-floating-menu--accent{background:var(--sd-floating-bg, #E6F1FF);color:var(--sd-floating-content, #0075FF);font-weight:700}.sd-floating-menu--accent .sd-floating-menu__arrow{color:var(--sd-floating-bg, #E6F1FF)}.sd-floating-menu__arrow{position:absolute;display:flex;width:16px;height:12px}.sd-floating-menu__arrow svg{width:100%;height:100%}.sd-floating-menu__arrow--top{bottom:-12px;left:50%;transform:translateX(-50%)}.sd-floating-menu__arrow--bottom{top:-12px;left:50%;transform:translateX(-50%) rotate(180deg)}.sd-floating-menu__arrow--left{right:-12px;top:50%;transform:translateY(-50%) rotate(-90deg)}.sd-floating-menu__arrow--right{left:-12px;top:50%;transform:translateY(-50%) rotate(90deg)}.sd-floating-menu__content{font-size:12px;line-height:20px}.sd-floating-menu__content .sd-floating-menu__title{font-size:14px;font-weight:700;line-height:24px;margin-bottom:4px}.sd-floating-menu__content .sd-floating-menu__messages{font-weight:500}.sd-floating-menu__content .sd-floating-menu__buttons{margin-top:12px;display:flex;gap:8px;align-items:center}.sd-floating-menu__content .sd-floating-menu__buttons--1{justify-content:flex-end}.sd-floating-menu__content .sd-floating-menu__buttons--2{justify-content:space-between}.sd-floating-menu--popover{padding:16px 20px}.sd-floating-menu--popover .sd-floating-menu__content{gap:4px}.sd-floating-menu--popover .sd-floating-menu__title{font-size:14px;font-weight:700;line-height:24px}.sd-floating-menu--popover .sd-floating-menu__messages{font-size:12px;font-weight:500;line-height:20px}.sd-floating-menu__close-button{position:absolute;top:12px;right:12px;padding:0;background:none;border:none;cursor:pointer}`;
|
|
528
528
|
|
|
529
529
|
const SdFloatingPopover = class {
|
|
530
530
|
constructor(hostRef) {
|
|
@@ -675,7 +675,7 @@ const SdFloatingPopover = class {
|
|
|
675
675
|
this.close.emit();
|
|
676
676
|
}
|
|
677
677
|
render() {
|
|
678
|
-
return h("slot", { key: '
|
|
678
|
+
return h("slot", { key: '770ec3be9d1e2b830eaebfde37a664feafc3da3b' });
|
|
679
679
|
}
|
|
680
680
|
};
|
|
681
681
|
SdFloatingPopover.style = sdFloatingPortalCss();
|
|
@@ -2689,7 +2689,7 @@ const SdIcon = class {
|
|
|
2689
2689
|
}
|
|
2690
2690
|
render() {
|
|
2691
2691
|
const IconComponent = Icons[this.name]?.[this.size];
|
|
2692
|
-
return (h("i", { key: '
|
|
2692
|
+
return (h("i", { key: '1c418bee61e2b1e7286c15cb489953cd6969639c', class: this.getIconClasses(), style: this.iconStyle }, h(IconComponent, { key: 'cf93af4d1a911a6da2bef0cdfea104cb74627ec8', color: this.resolvedColor })));
|
|
2693
2693
|
}
|
|
2694
2694
|
};
|
|
2695
2695
|
SdIcon.style = sdIconCss();
|
|
@@ -2787,7 +2787,7 @@ const SdInput = class {
|
|
|
2787
2787
|
}
|
|
2788
2788
|
};
|
|
2789
2789
|
render() {
|
|
2790
|
-
return (h("sd-field", { key: '
|
|
2790
|
+
return (h("sd-field", { key: '3db7e60bfcf01accd87d3cab199bdc4f9cd6314b', name: this.name, label: this.label, insideLabel: this.insideLabel, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, useLabelRequired: this.useLabelRequired, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, h("label", { key: 'ed629d14db71ca2e5e129dbbe6c960d1c4bafc31', class: "sd-input__content", style: { width: '100%' } }, h("slot", { key: '7504feda5598a7d784a83fb8cf5d0991bd3999bc', name: "prefix" }), h("input", { key: '06aef31e033ddf688f03c4752302f83b4ca54f77', name: this.name, ref: el => (this.nativeEl = el), class: `sd-input__native ${this.inputClass}`, type: this.type, 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: '3f933f1f844596b78bd5946833aa334840b65a01', name: "suffix" }), this.clearable && this.internalValue && (h("sd-icon", { key: '972e64c5369057cf4a409e5456a0f1e92b578477', name: "close", color: "grey_65", size: "16", class: "sd-input__clear-icon", onClick: async () => {
|
|
2791
2791
|
this.internalValue = '';
|
|
2792
2792
|
await this.formField?.sdValidate();
|
|
2793
2793
|
} })))));
|
|
@@ -2814,7 +2814,7 @@ const SdLoadingSpinner = class {
|
|
|
2814
2814
|
return resolveColor(this.color);
|
|
2815
2815
|
}
|
|
2816
2816
|
render() {
|
|
2817
|
-
return (h(Fragment, { key: '
|
|
2817
|
+
return (h(Fragment, { key: '5783716d94ef4a1dea295a4190660d98248c2ec4' }, h("svg", { key: '574752fdf4c55f4a77dcefac163e1e6651864963', class: "sd-loading-spinner", width: "72px", height: "72px", viewBox: "25 25 50 50", style: { color: this.resolvedColor } }, h("circle", { key: '2591fabc88f588079a9ea98f91126f20737827df', class: "path", cx: "50", cy: "50", r: "20", fill: "none", stroke: "currentColor", "stroke-width": "5", "stroke-miterlimit": "10" }))));
|
|
2818
2818
|
}
|
|
2819
2819
|
};
|
|
2820
2820
|
SdLoadingSpinner.style = sdLoadingSpinnerCss();
|
|
@@ -2856,7 +2856,7 @@ const SdModalCard = class {
|
|
|
2856
2856
|
return modalClass;
|
|
2857
2857
|
}
|
|
2858
2858
|
render() {
|
|
2859
|
-
return (h("div", { key: '
|
|
2859
|
+
return (h("div", { key: 'f0adc3cc3df163622ebfb4ecf24f871c89f4b676', class: this.getModalClass, style: { '--point-color': this.pointColor } }, this.useCloseButton && (h("sd-icon", { key: 'e281e73d5a31e3f3c688f7fa67cc6dab49e9105b', class: "sd-modal-card__close-button", name: "close", size: "20", color: "grey_65", onClick: () => this.close.emit() })), this.type !== 'normal' && (h("sd-icon", { key: 'a8d93fa991ad43d4f602662de048f2677e6f15f6', class: "sd-modal-card__icon", name: this.type === 'info' ? 'notificationOutline' : 'warningOutline', size: "32", color: this.type === 'info' ? 'brilliantblue_75' : 'red_75' })), h("h2", { key: '1462056d43620a2f7db1f3e6b26a9a10576cceb8', class: "sd-modal-card__title" }, this.modalTitle), h("slot", { key: '9c3b4860e7c4940356aa17353c437e711163434b' }, h("div", { key: 'db17a4b60ddaab999b0ed8fca546c336b6f4b597', class: `sd-modal-card__message-container` }, this.message.map(msg => (h("p", { class: "sd-modal-card__message" }, msg))))), h("div", { key: 'ada9c87b3cec0de87e795ed5de34d9b37acddd59', class: `sd-modal-card__button-container flex-${this.buttonFlexDirection}` }, this.buttonProps?.map(button => (h("sd-button", { sdClass: `sd-modal-card__button ${button.class || ''}`, variant: button.variant ? button.variant : 'outline', label: button.label, color: button.color, size: button.size, onSdClick: () => !button.type || button.type === 'confirm' ? this.confirm.emit() : this.close.emit() }))))));
|
|
2860
2860
|
}
|
|
2861
2861
|
};
|
|
2862
2862
|
SdModalCard.style = sdModalCardCss();
|
|
@@ -3109,17 +3109,17 @@ const SdNumberInput = class {
|
|
|
3109
3109
|
const inputStyles = {
|
|
3110
3110
|
textAlign: this.useButton ? 'center' : 'right',
|
|
3111
3111
|
};
|
|
3112
|
-
return (h("sd-field", { key: '
|
|
3112
|
+
return (h("sd-field", { key: '0e9e4da15a63aa6a3375b43757d607fcd087d55b', name: this.name, label: this.label, insideLabel: this.insideLabel, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, ref: el => (this.formField = el), style: inputWidth }, h("label", { key: 'ed02f94f0d5f14161dbe951f72b66e7dc1603c47', class: {
|
|
3113
3113
|
'sd-number-input': true,
|
|
3114
3114
|
[this.getInputStatus()]: true,
|
|
3115
3115
|
'sd-number-input--with-buttons': this.useButton,
|
|
3116
|
-
}, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: this.inputStyle }, h("input", { key: '
|
|
3116
|
+
}, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: this.inputStyle }, h("input", { key: '5e80258cf2146431deecf23919de347eb5c29fb2', name: this.name, ref: el => (this.nativeEl = el), class: `sd-number-input__input ${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, style: inputStyles, onFocus: this.handleFocus, onBlur: this.handleBlur }), this.useButton && (h("div", { key: 'd8293f93d5bb0f9bc88e9702df590526238820ac', class: "sd-number-input__buttons" }, h("button", { key: '8c945155ccc8faaf3737fd8fc1bdeb7e3e5694ec', type: "button", class: {
|
|
3117
3117
|
'sd-number-input__button': true,
|
|
3118
3118
|
'sd-number-input__button--decrement': true,
|
|
3119
|
-
}, disabled: this.isDecrementDisabled(), onClick: this.handleDecrement, tabindex: -1 }, h("sd-icon", { key: '
|
|
3119
|
+
}, disabled: this.isDecrementDisabled(), onClick: this.handleDecrement, tabindex: -1 }, h("sd-icon", { key: '91d31a14ff787c6dbe35f40ff5eb9eff3d7b4e02', name: "minus", size: 12, color: this.isDecrementDisabled() ? 'grey_45' : 'brilliantblue_70' })), h("button", { key: '0d54618d34e3fd06b7b89496e8f825137f9dd7a2', type: "button", class: {
|
|
3120
3120
|
'sd-number-input__button': true,
|
|
3121
3121
|
'sd-number-input__button--increment': true,
|
|
3122
|
-
}, disabled: this.isIncrementDisabled(), onClick: this.handleIncrement, tabindex: -1 }, h("sd-icon", { key: '
|
|
3122
|
+
}, disabled: this.isIncrementDisabled(), onClick: this.handleIncrement, tabindex: -1 }, h("sd-icon", { key: '44c1021a4f5588ff473f9dc7cc696ec4526d4abd', name: "add", size: 12, color: this.isIncrementDisabled() ? 'grey_45' : 'brilliantblue_70' })))))));
|
|
3123
3123
|
}
|
|
3124
3124
|
static get watchers() { return {
|
|
3125
3125
|
"value": [{
|
|
@@ -3207,12 +3207,12 @@ const SdPagination = class {
|
|
|
3207
3207
|
}
|
|
3208
3208
|
}
|
|
3209
3209
|
render() {
|
|
3210
|
-
return (h("div", { key: '
|
|
3210
|
+
return (h("div", { key: '3113faf5d75fa4a13e267653cae820035270e652', class: this.paginationClasses }, h("div", { key: 'a770afe37da389511bbfda99324e7794ffa299f5', class: "prepend-btns" }, this.renderPrevButtons()), this.simple ? (h("div", { class: "pagination-info" }, h("span", { class: "current-page" }, this.currentPage), h("span", null, "/"), h("span", { class: "last-page" }, this.lastPage))) : (this.pageNumbers.map(n => (h("button", { type: "button", "aria-current": this.currentPage === n ? 'page' : undefined, class: {
|
|
3211
3211
|
'pagination-btn': true,
|
|
3212
3212
|
'pagination-btn--selected': this.currentPage === n,
|
|
3213
3213
|
}, disabled: this.currentPage === n, style: {
|
|
3214
3214
|
'--pagination-btn-width': `${this.buttonWidth}px`,
|
|
3215
|
-
}, onClick: () => this.handlePageChange(n) }, n)))), h("div", { key: '
|
|
3215
|
+
}, onClick: () => this.handlePageChange(n) }, n)))), h("div", { key: '7e3842b531373d6485ae8912addea1aa531ca891', class: "append-btns" }, this.renderNextButtons())));
|
|
3216
3216
|
}
|
|
3217
3217
|
};
|
|
3218
3218
|
SdPagination.style = sdPaginationCss();
|
|
@@ -3267,7 +3267,7 @@ const SdPortal = class {
|
|
|
3267
3267
|
this.wrapper = document.createElement('div');
|
|
3268
3268
|
Object.assign(this.wrapper.style, {
|
|
3269
3269
|
position: 'absolute',
|
|
3270
|
-
zIndex: this.zIndex.toString(),
|
|
3270
|
+
zIndex: (this.zIndex ?? 9999).toString(),
|
|
3271
3271
|
transition: 'opacity 0.4s',
|
|
3272
3272
|
});
|
|
3273
3273
|
this.container.appendChild(this.wrapper);
|
|
@@ -3311,21 +3311,22 @@ const SdPortal = class {
|
|
|
3311
3311
|
width: window.innerWidth,
|
|
3312
3312
|
height: window.innerHeight,
|
|
3313
3313
|
};
|
|
3314
|
-
|
|
3315
|
-
let
|
|
3314
|
+
const offset = this.offset ?? [0, 4];
|
|
3315
|
+
let top = parentRect.bottom + window.scrollY + offset[1];
|
|
3316
|
+
let left = parentRect.left + window.scrollX + offset[0];
|
|
3316
3317
|
// 화면 상하단 넘어갈 시 반전
|
|
3317
|
-
if (parentRect.bottom + wrapperRect.height +
|
|
3318
|
-
top = parentRect.top + window.scrollY - wrapperRect.height -
|
|
3318
|
+
if (parentRect.bottom + wrapperRect.height + offset[1] > viewport.height) {
|
|
3319
|
+
top = parentRect.top + window.scrollY - wrapperRect.height - offset[1];
|
|
3319
3320
|
}
|
|
3320
3321
|
if (top < window.scrollY) {
|
|
3321
|
-
top = parentRect.bottom + window.scrollY +
|
|
3322
|
+
top = parentRect.bottom + window.scrollY + offset[1];
|
|
3322
3323
|
}
|
|
3323
3324
|
// 화면 좌우측 넘어갈 시 반전
|
|
3324
|
-
if (parentRect.left + wrapperRect.width +
|
|
3325
|
-
left = parentRect.right + window.scrollX - wrapperRect.width -
|
|
3325
|
+
if (parentRect.left + wrapperRect.width + offset[0] > viewport.width) {
|
|
3326
|
+
left = parentRect.right + window.scrollX - wrapperRect.width - offset[0];
|
|
3326
3327
|
}
|
|
3327
3328
|
if (left < 0) {
|
|
3328
|
-
left =
|
|
3329
|
+
left = offset[0];
|
|
3329
3330
|
}
|
|
3330
3331
|
this.wrapper.style.top = `${top}px`;
|
|
3331
3332
|
this.wrapper.style.left = `${left}px`;
|
|
@@ -3399,7 +3400,7 @@ const SdPortal = class {
|
|
|
3399
3400
|
this.close.emit();
|
|
3400
3401
|
}
|
|
3401
3402
|
render() {
|
|
3402
|
-
return h("slot", { key: '
|
|
3403
|
+
return h("slot", { key: '5fe94d224d2a647a1e7cb3fed1a42073b45a2525' });
|
|
3403
3404
|
}
|
|
3404
3405
|
static get watchers() { return {
|
|
3405
3406
|
"open": [{
|
|
@@ -3438,7 +3439,7 @@ const SdRadio = class {
|
|
|
3438
3439
|
this.update.emit(this.value);
|
|
3439
3440
|
}
|
|
3440
3441
|
render() {
|
|
3441
|
-
return (h("div", { key: '
|
|
3442
|
+
return (h("div", { key: '4044958bc2fd4812508ffc65b3cc42bc1091470a', "aria-label": this.val || 'radio option', "aria-checked": String(this.val) === String(this.value) ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', class: this.getRadioClasses() }, h("label", { key: `radio-${this.val}` }, h("input", { key: 'f7ee60381c34f4e9fe22c90c1a982a14d1b87880', type: "radio", name: this.val, value: String(this.val), checked: String(this.val) === String(this.value), disabled: this.disabled, onInput: ({ detail }) => this.handleRadioChange(detail) }), this.val && h("span", { key: '276b647bdc90f33443f0aa98a0a056be5b7eaa5d', class: "sd-radio-group__label" }, this.label || this.val))));
|
|
3442
3443
|
}
|
|
3443
3444
|
};
|
|
3444
3445
|
SdRadio.style = sdRadioCss();
|
|
@@ -3582,7 +3583,7 @@ const SdSelect = class extends BaseDropdownEvent {
|
|
|
3582
3583
|
}
|
|
3583
3584
|
};
|
|
3584
3585
|
render() {
|
|
3585
|
-
return (h("sd-field", { key: '
|
|
3586
|
+
return (h("sd-field", { key: '331489106e60e2304ef08ab8bb9e0b92f883c14f', label: this.label, name: this.name, rules: this.rules, error: this.error, disabled: this.disabled, useLabelRequired: this.useLabelRequired, insideLabel: this.insideLabel, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el) }, h("div", { key: '790254f507e924fcb7a32620a2c0ea264f49a9ae', class: {
|
|
3586
3587
|
'sd-select': true,
|
|
3587
3588
|
'sd-select--disabled': this.disabled,
|
|
3588
3589
|
'sd-select--error': !!this.error,
|
|
@@ -3765,10 +3766,10 @@ const SdSelectDropdown = class {
|
|
|
3765
3766
|
this.isScrolled = scrollTop > 0;
|
|
3766
3767
|
};
|
|
3767
3768
|
render() {
|
|
3768
|
-
return (h("div", { key: '
|
|
3769
|
+
return (h("div", { key: 'ff55e2e133114accc2641a0025bdcf551eda3511', class: {
|
|
3769
3770
|
'sd-select-dropdown': true,
|
|
3770
3771
|
'sd-select-dropdown--ready': this.isDropdownReady,
|
|
3771
|
-
}, style: this.dropdownSize, onScroll: this.handleDropdownScroll, ref: el => (this.dropdownRef = el) }, this.searchable && (h("sd-select-search-input", { key: '
|
|
3772
|
+
}, style: this.dropdownSize, onScroll: this.handleDropdownScroll, ref: el => (this.dropdownRef = el) }, this.searchable && (h("sd-select-search-input", { key: 'bfcee14aa06a9a259dd8e67013ed1074c1f9c318', ref: el => (this.searchRef = el), isScrolled: this.isScrolled, searchText: this.searchText, onSdSearchInput: (event) => (this.searchText = event.detail || ''), onSdSearchFocus: () => (this.itemIndex = -1) })), this.filteredOptions.length > 0 ? (this.filteredOptions.map((option, index) => (h("slot", { name: `option-${option.value}` }, h("sd-select-option", { option: option, index: index, isSelected: this.isOptionSelected(option.value), isFocused: index === this.itemIndex, onOptionClick: ({ detail }) => this.optionClick.emit(detail), useCheckbox: this.useCheckbox }))))) : (h("slot", { name: "option-placeholder" }, h("div", { class: 'sd-select-option-placeholder' }, this.optionPlaceholder)))));
|
|
3772
3773
|
}
|
|
3773
3774
|
static get watchers() { return {
|
|
3774
3775
|
"filteredOptions": [{
|
|
@@ -3815,7 +3816,7 @@ const SdSelectOption = class {
|
|
|
3815
3816
|
}
|
|
3816
3817
|
};
|
|
3817
3818
|
render() {
|
|
3818
|
-
return (h("div", { key: '
|
|
3819
|
+
return (h("div", { key: 'a4fcca24b0bdde4f4665585c6cede84bd3b64d59', class: {
|
|
3819
3820
|
'sd-select__option': true,
|
|
3820
3821
|
'sd-select__option--selected': this.isSelected,
|
|
3821
3822
|
'sd-select__option--disabled': !!this.option.disabled,
|
|
@@ -3861,17 +3862,17 @@ const SdSelectSearchInput = class {
|
|
|
3861
3862
|
input?.focus({ preventScroll: true });
|
|
3862
3863
|
}
|
|
3863
3864
|
render() {
|
|
3864
|
-
return (h("div", { key: '
|
|
3865
|
+
return (h("div", { key: 'b19a029ef82d876c984c1f827d7a0f29bb823f5d', class: {
|
|
3865
3866
|
'sd-select-search-input': true,
|
|
3866
3867
|
'sd-select-search-input--scrolled': !!this.isScrolled,
|
|
3867
|
-
}, onClick: event => event.stopPropagation() }, h("sd-input", { key: '
|
|
3868
|
+
}, onClick: event => event.stopPropagation() }, h("sd-input", { key: '8e27f40e1b507f0c5cb2d4bde48750cd0089a9da', ref: el => (this.searchRef = el), value: this.searchText, placeholder: "\uAC80\uC0C9", clearable: true, inputStyle: { 'padding-left': '8px' }, autofocus: true, onSdUpdate: event => {
|
|
3868
3869
|
this.searchInput.emit(String(event?.detail));
|
|
3869
3870
|
}, onSdFocus: () => {
|
|
3870
3871
|
this.searchFocus.emit();
|
|
3871
3872
|
}, onKeyDown: event => {
|
|
3872
3873
|
if (event.code === 'Enter')
|
|
3873
3874
|
event.stopPropagation();
|
|
3874
|
-
} }, h("sd-icon", { key: '
|
|
3875
|
+
} }, h("sd-icon", { key: '2b38a07cbc0bb0d7dd020ece45f18bdff4c262e5', name: "search", size: 16, color: "#737373", style: { marginRight: '4px' }, slot: "prefix" }))));
|
|
3875
3876
|
}
|
|
3876
3877
|
};
|
|
3877
3878
|
SdSelectSearchInput.style = sdSelectSearchInputCss();
|
|
@@ -4644,16 +4645,16 @@ const SdTable = class {
|
|
|
4644
4645
|
return (h("td", { key: `virtual-${position}-spacer-${rowIdx}`, class: "sd-table__virtual-spacer", style: this.getSpacerCellStyle(spacerWidth), "aria-hidden": "true" }, h("div", { class: "sd-table__skeleton-cell" })));
|
|
4645
4646
|
}
|
|
4646
4647
|
render() {
|
|
4647
|
-
return (h(Fragment, { key: '
|
|
4648
|
+
return (h(Fragment, { key: '882ded3f26849b023ade24914d2d88b7278a9d4a' }, h("div", { key: 'cdaaaed9dbda39eae701e2cbfa9f22fbcdc86cf1', class: "sd-table__wrapper", style: {
|
|
4648
4649
|
'--table-width': this.width,
|
|
4649
4650
|
'--table-height': this.height,
|
|
4650
|
-
} }, h("div", { key: '
|
|
4651
|
+
} }, h("div", { key: '818b1f6f742861fe8515b2fd8bb826bbe357100f', class: "sd-table__container", style: {
|
|
4651
4652
|
'--table-container-height': `calc(${this.height} - ${this.pagination && this.innerRows.length > 0 ? 48 : 0}px)`,
|
|
4652
|
-
} }, h("div", { key: '
|
|
4653
|
+
} }, h("div", { key: 'b9fd1c56e1ab374ee7da80a82e1b96a2f1584eea', class: {
|
|
4653
4654
|
'sd-table__middle': true,
|
|
4654
4655
|
'sd-table__middle--scrollable': this.paginatedRows.length > 0,
|
|
4655
4656
|
'sd-table__middle--loading': this.isLoading,
|
|
4656
|
-
} }, this.isLoading && (h("div", { key: '
|
|
4657
|
+
} }, this.isLoading && (h("div", { key: '30521e8896081a62ea96391bf7bc7f20103fc3ed', class: "sd-table__middle--loading__spinner" }, h("sd-loading-spinner", { key: 'db184565e08194d4f6a35da66aa011f0b7641d8a' }))), h("table", { key: 'c8585073a95c0391c14db74d54242998a648437d', part: "table", class: this.sdTableClasses }, this.renderHead(), this.renderBody())), !this.paginatedRows.length && (h("div", { key: '27d8471253fe0a1e6ee8637ed8aecaf1ce9071c2', class: "sd-table__bottom" }, h("div", { key: 'c35591b39ff87a55d38f9b0cb2b91fbd54081f0b', class: "sd-table__no-data" }, h("slot", { key: '0af141458219896bd93dbc7a195389d4a40cf654', name: "no-data" }, this.noDataLabel))))), this.pagination && this.innerRows.length > 0 && (h("div", { key: '981becdef62a000bd6d338428fa1e20b5205c77e', class: "sd-table__pagination" }, h("sd-pagination", { key: '47f042431c47d7dcdb3acfb2e4687d8c8e66ba6c', currentPage: !this.useInternalPagination ? this.pagination.page : this.currentPage, lastPage: !this.useInternalPagination ? this.pagination.lastPage : this.lastPageNumber, onSdPageChange: (e) => this.changePage(e.detail) }), this.useRowsPerPageSelect && (h("sd-select", { key: '0f9edc63cf7e119c9dc1e343ec043c28b36ee83d', value: this.pagination.rowsPerPage, options: this.rowsPerPageOption, width: "128px", onSdUpdate: (e) => this.changeRowsPerPage(e.detail.value) })))))));
|
|
4657
4658
|
}
|
|
4658
4659
|
static get watchers() { return {
|
|
4659
4660
|
"columns": [{
|
|
@@ -4771,10 +4772,10 @@ const SdTextarea = class {
|
|
|
4771
4772
|
}
|
|
4772
4773
|
render() {
|
|
4773
4774
|
const maxLengthCounter = this.getMaxLengthCounter();
|
|
4774
|
-
return (h("div", { key: '
|
|
4775
|
+
return (h("div", { key: 'b8d0496866829b85f6678f648ccc944d57b45378', class: {
|
|
4775
4776
|
'sd-textarea': true,
|
|
4776
4777
|
[this.getTextareaStatus()]: true,
|
|
4777
|
-
}, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, h("div", { key: '
|
|
4778
|
+
}, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, h("div", { key: 'b43d91b1c7381a2b6c7a0ab1437e43e32396419c', class: "sd-textarea__content" }, h("textarea", { key: '9b77710a8344db09172f57212c55db6a70ec96f2', name: this.name, ref: el => (this.nativeEl = el), class: `sd-textarea__native ${this.textareaClass}`, value: this.internalValue || '', placeholder: this.placeholder, disabled: this.disabled, autofocus: this.autoFocus, maxLength: this.maxLength, onInput: this.handleInput.bind(this), onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event) })), this.hasFooter() && (h("div", { key: '67056ceb0778d11a607cfc1de9de9440c98bd165', class: "sd-textarea__footer" }, this.helpText !== undefined && h("span", { key: 'bcdb6b7991cae0e68a21f04a53299952602e5039', class: "sd-textarea__help-text" }, this.helpText), maxLengthCounter !== null && h("span", { key: '526ff7bcd19688f086ef1f129008b4849a8d3491', class: "sd-textarea__counter" }, maxLengthCounter)))));
|
|
4778
4779
|
}
|
|
4779
4780
|
static get watchers() { return {
|
|
4780
4781
|
"value": [{
|
|
@@ -4787,6 +4788,31 @@ const SdTextarea = class {
|
|
|
4787
4788
|
};
|
|
4788
4789
|
SdTextarea.style = sdTextareaCss();
|
|
4789
4790
|
|
|
4791
|
+
const tooltip = {
|
|
4792
|
+
"default": {
|
|
4793
|
+
bg: "#07284A",
|
|
4794
|
+
content: "#FFFFFF"},
|
|
4795
|
+
danger: {
|
|
4796
|
+
bg: "#FCEFEF",
|
|
4797
|
+
content: "#FB4444"},
|
|
4798
|
+
warning: {
|
|
4799
|
+
bg: "#FEF1EA",
|
|
4800
|
+
content: "#FF6B00"},
|
|
4801
|
+
accent: {
|
|
4802
|
+
bg: "#E6F1FF",
|
|
4803
|
+
content: "#0075FF"}
|
|
4804
|
+
};
|
|
4805
|
+
var tooltipTokens = {
|
|
4806
|
+
tooltip: tooltip
|
|
4807
|
+
};
|
|
4808
|
+
|
|
4809
|
+
const TOOLTIP_TYPE_CONFIG = {
|
|
4810
|
+
default: { bg: tooltipTokens.tooltip.default.bg, content: tooltipTokens.tooltip.default.content },
|
|
4811
|
+
danger: { bg: tooltipTokens.tooltip.danger.bg, content: tooltipTokens.tooltip.danger.content },
|
|
4812
|
+
warning: { bg: tooltipTokens.tooltip.warning.bg, content: tooltipTokens.tooltip.warning.content },
|
|
4813
|
+
accent: { bg: tooltipTokens.tooltip.accent.bg, content: tooltipTokens.tooltip.accent.content },
|
|
4814
|
+
};
|
|
4815
|
+
|
|
4790
4816
|
const sdTooltipCss = () => `sd-tooltip{visibility:hidden !important;display:inline-flex}sd-tooltip.visible{visibility:visible !important}sd-tooltip .sd-tooltip{position:relative;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}`;
|
|
4791
4817
|
|
|
4792
4818
|
const SdTooltip = class {
|
|
@@ -4797,14 +4823,13 @@ const SdTooltip = class {
|
|
|
4797
4823
|
trigger = 'hover';
|
|
4798
4824
|
placement = 'top';
|
|
4799
4825
|
color = '#01BB4B';
|
|
4800
|
-
|
|
4826
|
+
tooltipType = 'default';
|
|
4801
4827
|
icon = 'helpOutline';
|
|
4802
4828
|
iconSize = 12;
|
|
4803
4829
|
label = '';
|
|
4804
4830
|
buttonSize = 'sm';
|
|
4805
4831
|
buttonVariant = 'primary';
|
|
4806
4832
|
noHover = true;
|
|
4807
|
-
useClose = false;
|
|
4808
4833
|
showTooltip = false;
|
|
4809
4834
|
slotContentHTML = '';
|
|
4810
4835
|
buttonEl;
|
|
@@ -4814,10 +4839,10 @@ const SdTooltip = class {
|
|
|
4814
4839
|
componentWillLoad() {
|
|
4815
4840
|
this.slotContentHTML = this.el.innerHTML;
|
|
4816
4841
|
this.el.replaceChildren();
|
|
4817
|
-
// 깜빡이는 현상을 막기 위해 기본으로 <sd-tooltip></sd-tooltip> hidden이 된 elment를 visible로 만들어줌
|
|
4818
4842
|
this.el.classList.toggle('visible', true);
|
|
4819
4843
|
}
|
|
4820
4844
|
render() {
|
|
4845
|
+
const typeConfig = TOOLTIP_TYPE_CONFIG[this.tooltipType] ?? TOOLTIP_TYPE_CONFIG.default;
|
|
4821
4846
|
const handleTrigger = this.trigger === 'hover'
|
|
4822
4847
|
? {
|
|
4823
4848
|
onMouseEnter: () => (this.showTooltip = true),
|
|
@@ -4834,12 +4859,14 @@ const SdTooltip = class {
|
|
|
4834
4859
|
: {
|
|
4835
4860
|
onSdClick: () => (this.showTooltip = !this.showTooltip),
|
|
4836
4861
|
};
|
|
4837
|
-
return (h(Fragment, { key: '
|
|
4862
|
+
return (h(Fragment, { key: '59034499ad4215be8135ec8da7a86d09b2d6b295' }, this.label ? (h("sd-button", { ref: el => (this.buttonEl = el), label: this.label, icon: this.icon, size: this.buttonSize, color: this.color, variant: this.buttonVariant, class: "sd-tooltip", ...buttonTrigger })) : (h("sd-icon", { ref: el => (this.buttonEl = el), name: this.icon, size: this.iconSize, color: this.color, class: "sd-tooltip", ...handleTrigger })), this.showTooltip && (h("sd-floating-portal", { key: '53bae57a86e523feeba3d96246375dd62fa13b80', parentRef: this.buttonEl, onSdClose: this.handleClose.bind(this), placement: this.placement }, h("div", { key: '6d084515f879936e04f7210ae59e008bbe7e8dd6', class: {
|
|
4838
4863
|
'sd-floating-menu': true,
|
|
4839
|
-
[`sd-floating-menu--${this.
|
|
4864
|
+
[`sd-floating-menu--${this.tooltipType}`]: true,
|
|
4840
4865
|
[`sd-floating-menu--${this.placement}`]: true,
|
|
4841
|
-
|
|
4842
|
-
|
|
4866
|
+
}, style: {
|
|
4867
|
+
'--sd-floating-bg': typeConfig.bg,
|
|
4868
|
+
'--sd-floating-content': typeConfig.content,
|
|
4869
|
+
} }, h("i", { key: '38a80cb95be6bbd79dca41c36a9e48764bc8d3e7', class: `sd-floating-menu__arrow sd-floating-menu__arrow--${this.placement}` }, h(TooltipArrow, { key: 'e501bc5eab4cbe38a7f6c37202e2f10dc7f480c1' })), h("div", { key: '99346441a1cffa893312c98132dd819047500b69', class: "sd-floating-menu__content", innerHTML: this.slotContentHTML }))))));
|
|
4843
4870
|
}
|
|
4844
4871
|
};
|
|
4845
4872
|
SdTooltip.style = sdTooltipCss();
|
|
@@ -9,7 +9,7 @@ const SdCard = class {
|
|
|
9
9
|
bordered = false;
|
|
10
10
|
sdClass = '';
|
|
11
11
|
render() {
|
|
12
|
-
return (h(Fragment, { key: '
|
|
12
|
+
return (h(Fragment, { key: '01df653d1718aab046ee74275f13c926fbf05573' }, h("div", { key: '82dcf247f0f718328fa4f1c3548becff1c1d6fd3', class: `sd-card ${this.bordered ? 'sd-card--bordered' : ''} ${this.sdClass}` }, h("slot", { key: '33b518500426f3abd40ee4a5719c8f784bfeb65a' }))));
|
|
13
13
|
}
|
|
14
14
|
};
|
|
15
15
|
SdCard.style = sdCardCss();
|
|
@@ -82,7 +82,7 @@ const SdDatePicker = class {
|
|
|
82
82
|
this.isOpen = false;
|
|
83
83
|
};
|
|
84
84
|
render() {
|
|
85
|
-
return (h("div", { key: '
|
|
85
|
+
return (h("div", { key: '3cef7a7c9eeb6008003a70c863817330f1f9327d', class: { 'sd-date-picker': true, 'sd-date-picker--disabled': this.disabled } }, h("sd-input", { key: '410d7911e51728fa60553f3fc3c50c144b55714c', ref: el => (this.inputEl = el), value: this.value, label: this.label, "inside-label": true, readonly: true, disabled: this.disabled, placeholder: this.placeholder, inputClass: "sd-date-picker__input", onClick: () => this.openMenu() }, h("sd-icon", { key: '8f8911ccb8ce048d14550db0d693248d697dbd21', slot: "prefix", name: "date", size: "16", color: this.disabled ? 'grey_65' : 'grey_70', class: "date-icon", onClick: () => this.openMenu() })), this.isOpen && (h("sd-portal", { key: '41cbcd7a67305abf795e49f2faad0cfb01dd0e92', open: this.isOpen, parentRef: this.inputEl, onSdClose: this.handleClose }, h("div", { key: 'b307cd035a8c99eeb2c0a5353f5131c218d800f9', class: "sd-date-picker__menu" }, h("div", { key: '7448c069921dad201e0b6701a260eb1fd4bfb217', class: "sd-date-picker__header" }, h("div", { key: 'ed1f0a9f59d528dd743f71c72106b8d7c0be07a4', class: "year-nav" }, h("button", { key: '364346026bfd1650b9ccb38fd9d996eea7486989', type: "button", name: "prev-year", title: "Previous Year", onClick: () => this.setCurrentYear(this.currentYear - 1) }, h("sd-icon", { key: 'a256a1adc87cdb5f7876cb76183825d82d87de19', name: "arrowLeft", size: "12", color: "#CCCCCC" })), h("span", { key: '60110caede0ed656cfa58ae1200b08de7631abca', class: "year-nav__current" }, this.currentYear), h("button", { key: '07f8040d822605f4461fd80dd3910ebd973060b7', type: "button", name: "next-year", title: "Next Year", onClick: () => this.setCurrentYear(this.currentYear + 1) }, h("sd-icon", { key: '820cd76287e851cb2a25db93183a0d90e71dfd9d', name: "arrowRight", size: "12", color: "#CCCCCC" }))), h("div", { key: '979262f63bb16e954a661b80e6cef155f329b651', class: "month-nav" }, h("button", { key: 'f9e93031b0b8e07067d1ff562bbb2f3d41a2a761', type: "button", name: "prev-month", title: "Previous ", onClick: () => this.handleUpdateMonth('prev') }, h("sd-icon", { key: '1202cfb15fb886fc31c495c1f6fd37eb990ba3a3', name: "arrowLeft", size: "12", color: "#CCCCCC" })), h("span", { key: 'b29c00421943e45fed684e63dfebf895686f6d45', class: "month-nav__current" }, this.currentMonth, "\uC6D4"), h("button", { key: '13eda140f8dbe92cb75ae288942f1e2fda3b2891', type: "button", name: "next-month", title: "Next Month", onClick: () => this.handleUpdateMonth('next') }, h("sd-icon", { key: '4ee850a4c9ae4a92e42df78d214ae5380c572dc4', name: "arrowRight", size: "12", color: "#CCCCCC" })))), h("div", { key: '13887a76bdea27522798fde506ad04851bb701aa', class: "sd-date-picker__days" }, ['일', '월', '화', '수', '목', '금', '토'].map(day => (h("div", { key: day, class: "day" }, day)))), h("div", { key: 'a887e352065fe18797104b2271920f98a8392775', class: "sd-date-picker__body" }, [
|
|
86
86
|
...this.calendar.prevMonthDays,
|
|
87
87
|
...this.calendar.days,
|
|
88
88
|
...this.calendar.afterMonthDays,
|