@idbrnd/design-system 1.0.0 → 1.1.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/index.js CHANGED
@@ -1,868 +1,919 @@
1
- import { jsx as n, jsxs as k, Fragment as xe } from "react/jsx-runtime";
2
- import { Children as le, useMemo as q, useState as oe, useId as Ae, useRef as Me, useEffect as Re } from "react";
3
- import De from "react-dom";
4
- import './style.css';const qe = "_button_150dq_1", Le = "_large_150dq_36", Fe = "_small_150dq_47", ye = {
5
- button: qe,
6
- large: Le,
7
- small: Fe
1
+ import { jsx as n, jsxs as v, Fragment as Be } from "react/jsx-runtime";
2
+ import { Children as ae, useMemo as q, useId as Te, useState as Me, useRef as Le, useEffect as Re } from "react";
3
+ import He from "react-dom";
4
+ import './style.css';const Fe = "_button_r7m14_1", We = "_large_r7m14_37", Oe = "_small_r7m14_49", Ee = {
5
+ button: Fe,
6
+ large: We,
7
+ small: Oe
8
8
  };
9
- function He({
9
+ function ye({
10
10
  size: e = "large",
11
- disabled: o = !1,
12
- keepFocusOnClick: t = !1,
13
- customStyle: i = {},
14
- onClick: l,
15
- className: c,
16
- children: u,
17
- type: r = "button",
18
- ...a
11
+ disabled: t = !1,
12
+ keepFocusOnClick: s = !1,
13
+ customStyle: o = {},
14
+ onClick: i,
15
+ className: u,
16
+ children: c,
17
+ type: a = "button",
18
+ ...l
19
19
  }) {
20
20
  const _ = [
21
- ye.button,
22
- ye[e],
23
- c ?? ""
21
+ Ee.button,
22
+ Ee[e],
23
+ u ?? ""
24
24
  ].filter(Boolean).join(" ");
25
25
  return /* @__PURE__ */ n(
26
26
  "button",
27
27
  {
28
28
  "data-idb-component": !0,
29
- type: r,
29
+ type: a,
30
30
  className: _,
31
31
  onClick: (d) => {
32
- l?.(d), !t && !d.defaultPrevented && d.currentTarget.blur();
32
+ i?.(d), !s && !d.defaultPrevented && d.currentTarget.blur();
33
33
  },
34
- disabled: o,
35
- style: i,
36
- ...a,
37
- children: u
34
+ disabled: t,
35
+ style: o,
36
+ ...l,
37
+ children: c
38
38
  }
39
39
  );
40
40
  }
41
- const Oe = "_clipWrapper_3mxht_1", We = "_clip_3mxht_1", je = "_sync_3mxht_59", Pe = "_syncDot_3mxht_65", Ke = "_fade_3mxht_72", Ve = "_fadeBar_3mxht_77", F = {
42
- clipWrapper: Oe,
43
- clip: We,
44
- sync: je,
45
- syncDot: Pe,
46
- fade: Ke,
47
- fadeBar: Ve
48
- }, ge = "var(--semantic-before-main)";
49
- function Yo() {
50
- return /* @__PURE__ */ n(Ue, {});
41
+ const Pe = "_clipWrapper_3mxht_1", ze = "_clip_3mxht_1", Ve = "_sync_3mxht_59", Ke = "_syncDot_3mxht_65", Ze = "_fade_3mxht_72", Ue = "_fadeBar_3mxht_77", P = {
42
+ clipWrapper: Pe,
43
+ clip: ze,
44
+ sync: Ve,
45
+ syncDot: Ke,
46
+ fade: Ze,
47
+ fadeBar: Ue
48
+ }, Ne = "var(--semantic-before-main)";
49
+ function Ao() {
50
+ return /* @__PURE__ */ n(Ye, {});
51
51
  }
52
- function Ue({ color: e = ge, size: o = 10 }) {
53
- const t = Math.max(2, Math.round(o)), i = Math.max(2, Math.round(o * 0.5));
52
+ function Ye({ color: e = Ne, size: t = 10 }) {
53
+ const s = Math.max(2, Math.round(t)), o = Math.max(2, Math.round(t * 0.5));
54
54
  return (
55
55
  // 점 3개를 가로로 배치하는 컨테이너
56
- /* @__PURE__ */ n("span", { className: F.sync, style: { color: e, gap: i }, children: Array.from({ length: 3 }).map((l, c) => /* @__PURE__ */ n(
56
+ /* @__PURE__ */ n("span", { className: P.sync, style: { color: e, gap: o }, children: Array.from({ length: 3 }).map((i, u) => /* @__PURE__ */ n(
57
57
  "span",
58
58
  {
59
- className: F.syncDot,
59
+ className: P.syncDot,
60
60
  style: {
61
- width: t,
62
- height: t,
63
- animationDelay: `${c * 0.12}s`
61
+ width: s,
62
+ height: s,
63
+ animationDelay: `${u * 0.12}s`
64
64
  }
65
65
  },
66
- c
66
+ u
67
67
  )) })
68
68
  );
69
69
  }
70
- function Z({ color: e = ge, size: o = 10, text: t = "" }) {
71
- const i = Math.max(2, Math.round(o / 12)), l = {
72
- width: o,
73
- height: o,
74
- "--clip-size": `${o}px`,
75
- "--clip-stroke": `${i}px`
70
+ function Q({ color: e = Ne, size: t = 10, text: s = "" }) {
71
+ const o = Math.max(2, Math.round(t / 12)), i = {
72
+ width: t,
73
+ height: t,
74
+ "--clip-size": `${t}px`,
75
+ "--clip-stroke": `${o}px`
76
76
  };
77
- return /* @__PURE__ */ k(
77
+ return /* @__PURE__ */ v(
78
78
  "span",
79
79
  {
80
- className: F.clipWrapper,
80
+ className: P.clipWrapper,
81
81
  style: {
82
82
  color: e
83
83
  },
84
84
  children: [
85
- /* @__PURE__ */ n("span", { className: F.clip, style: l }),
86
- t ? /* @__PURE__ */ n("span", { style: { color: "var(--semantic-bg-default)", fontSize: "1rem", marginTop: "10px" }, children: t }) : null
85
+ /* @__PURE__ */ n("span", { className: P.clip, style: i }),
86
+ s ? /* @__PURE__ */ n("span", { style: { color: "var(--semantic-bg-default)", fontSize: "1rem", marginTop: "10px" }, children: s }) : null
87
87
  ]
88
88
  }
89
89
  );
90
90
  }
91
- function Xo({ color: e = ge, width: o = 4, height: t = 12, radius: i = 2, margin: l = 2 }) {
92
- const u = Math.max(6, Math.round(t + l + 1)), r = u * 2 + t, a = 1, _ = a / 8;
91
+ function Do({ color: e = Ne, width: t = 4, height: s = 12, radius: o = 2, margin: i = 2 }) {
92
+ const c = Math.max(6, Math.round(s + i + 1)), a = c * 2 + s, l = 1, _ = l / 8;
93
93
  return (
94
94
  // 원형 막대 스피너의 기준 좌표가 되는 컨테이너(막대 위치는 고정)
95
- /* @__PURE__ */ n("span", { className: F.fade, style: { color: e, width: r, height: r }, children: Array.from({ length: 8 }).map((p, d) => /* @__PURE__ */ n(
95
+ /* @__PURE__ */ n("span", { className: P.fade, style: { color: e, width: a, height: a }, children: Array.from({ length: 8 }).map((m, d) => /* @__PURE__ */ n(
96
96
  "span",
97
97
  {
98
- className: F.fadeBar,
98
+ className: P.fadeBar,
99
99
  style: {
100
- width: o,
101
- height: t,
102
- borderRadius: i,
103
- transform: `translate(-50%, -50%) rotate(${360 / 8 * d}deg) translateY(-${u}px)`,
100
+ width: t,
101
+ height: s,
102
+ borderRadius: o,
103
+ transform: `translate(-50%, -50%) rotate(${360 / 8 * d}deg) translateY(-${c}px)`,
104
104
  animationDelay: `${-(7 - d) * _}s`,
105
- animationDuration: `${a}s`
105
+ animationDuration: `${l}s`
106
106
  }
107
107
  },
108
108
  d
109
109
  )) })
110
110
  );
111
111
  }
112
- const ze = "_button_1h0bn_1", Ze = "_content_1h0bn_12", Ye = "_fixed_1h0bn_33", Xe = "_fixedContent_1h0bn_39", Ge = "_node_1h0bn_48", Je = "_text_1h0bn_54", Qe = "_large_1h0bn_64", en = "_medium_1h0bn_65", nn = "_small_1h0bn_66", tn = "_xsmall_1h0bn_70", on = "_flexible_1h0bn_74", sn = "_primary_1h0bn_90", ln = "_loading_1h0bn_90", rn = "_assistive_1h0bn_91", an = "_error_1h0bn_92", cn = "_spinnerWrapper_1h0bn_151", E = {
113
- button: ze,
114
- content: Ze,
115
- fixed: Ye,
116
- fixedContent: Xe,
117
- node: Ge,
118
- text: Je,
119
- large: Qe,
120
- medium: en,
121
- small: nn,
122
- xsmall: tn,
123
- flexible: on,
124
- primary: sn,
125
- loading: ln,
126
- assistive: rn,
127
- error: an,
128
- spinnerWrapper: cn,
112
+ const Xe = "_button_1h0bn_1", Ge = "_content_1h0bn_12", Je = "_fixed_1h0bn_33", Qe = "_fixedContent_1h0bn_39", en = "_node_1h0bn_48", nn = "_text_1h0bn_54", tn = "_large_1h0bn_64", sn = "_medium_1h0bn_65", on = "_small_1h0bn_66", ln = "_xsmall_1h0bn_70", rn = "_flexible_1h0bn_74", an = "_primary_1h0bn_90", cn = "_loading_1h0bn_90", _n = "_assistive_1h0bn_91", un = "_error_1h0bn_92", dn = "_spinnerWrapper_1h0bn_151", B = {
113
+ button: Xe,
114
+ content: Ge,
115
+ fixed: Je,
116
+ fixedContent: Qe,
117
+ node: en,
118
+ text: nn,
119
+ large: tn,
120
+ medium: sn,
121
+ small: on,
122
+ xsmall: ln,
123
+ flexible: rn,
124
+ primary: an,
125
+ loading: cn,
126
+ assistive: _n,
127
+ error: un,
128
+ spinnerWrapper: dn,
129
129
  "spinner-primary": "_spinner-primary_1h0bn_157",
130
130
  "spinner-error": "_spinner-error_1h0bn_158",
131
131
  "spinner-assistive": "_spinner-assistive_1h0bn_162"
132
132
  };
133
- function Go({
133
+ function qo({
134
134
  widthType: e = "flexible",
135
- variant: o = "primary",
136
- size: t = "medium",
137
- disabled: i = !1,
138
- loading: l = !1,
139
- keepFocusOnClick: c = !1,
140
- customStyle: u = {},
141
- onClick: r,
142
- className: a,
135
+ variant: t = "primary",
136
+ size: s = "medium",
137
+ disabled: o = !1,
138
+ loading: i = !1,
139
+ keepFocusOnClick: u = !1,
140
+ customStyle: c = {},
141
+ onClick: a,
142
+ className: l,
143
143
  children: _,
144
- type: p = "button",
144
+ type: m = "button",
145
145
  ...d
146
146
  }) {
147
- const h = [
148
- E.button,
149
- E[e],
150
- E[o],
151
- E[t],
152
- l ? E.loading : "",
153
- a ?? ""
154
- ].filter(Boolean).join(" "), b = [E.spinnerWrapper, E[`spinner-${o}`]].filter(Boolean).join(" "), x = [E.content, e === "fixed" ? E.fixedContent : ""].filter(Boolean).join(" "), N = e === "fixed" ? le.map(_, (s) => {
155
- const y = typeof s == "string" || typeof s == "number" ? E.text : E.node;
156
- return /* @__PURE__ */ n("span", { className: y, children: s });
157
- }) : _, C = q(() => ({
147
+ const g = [
148
+ B.button,
149
+ B[e],
150
+ B[t],
151
+ B[s],
152
+ i ? B.loading : "",
153
+ l ?? ""
154
+ ].filter(Boolean).join(" "), h = [B.spinnerWrapper, B[`spinner-${t}`]].filter(Boolean).join(" "), C = [B.content, e === "fixed" ? B.fixedContent : ""].filter(Boolean).join(" "), N = e === "fixed" ? ae.map(_, (r) => {
155
+ const x = typeof r == "string" || typeof r == "number" ? B.text : B.node;
156
+ return /* @__PURE__ */ n("span", { className: x, children: r });
157
+ }) : _, w = q(() => ({
158
158
  large: 24,
159
159
  medium: 24,
160
160
  small: 24,
161
161
  xsmall: 16
162
- })[t], [t]);
162
+ })[s], [s]);
163
163
  return /* @__PURE__ */ n(
164
164
  "button",
165
165
  {
166
166
  "data-idb-component": !0,
167
- type: p,
168
- className: h,
169
- onClick: l ? void 0 : (s) => {
170
- r?.(s), !c && !s.defaultPrevented && s.currentTarget.blur();
167
+ type: m,
168
+ className: g,
169
+ onClick: i ? void 0 : (r) => {
170
+ a?.(r), !u && !r.defaultPrevented && r.currentTarget.blur();
171
171
  },
172
- disabled: i,
173
- style: u,
172
+ disabled: o,
173
+ style: c,
174
174
  ...d,
175
- children: l ? /* @__PURE__ */ n("span", { className: b, children: /* @__PURE__ */ n(Z, { size: C, color: "currentColor" }) }) : /* @__PURE__ */ n("span", { className: x, children: N })
175
+ children: i ? /* @__PURE__ */ n("span", { className: h, children: /* @__PURE__ */ n(Q, { size: w, color: "currentColor" }) }) : /* @__PURE__ */ n("span", { className: C, children: N })
176
176
  }
177
177
  );
178
178
  }
179
- const un = "_button_lqb7w_1", _n = "_basic_lqb7w_27", dn = "_overlay_lqb7w_45", mn = "_primary_lqb7w_63", pn = "_large_lqb7w_83", fn = "_medium_lqb7w_94", de = {
180
- button: un,
181
- basic: _n,
182
- overlay: dn,
183
- primary: mn,
184
- large: pn,
185
- medium: fn
179
+ const mn = "_button_1mqol_1", pn = "_basic_1mqol_27", fn = "_overlay_1mqol_45", hn = "_primary_1mqol_63", gn = "_large_1mqol_83", Cn = "_medium_1mqol_95", be = {
180
+ button: mn,
181
+ basic: pn,
182
+ overlay: fn,
183
+ primary: hn,
184
+ large: gn,
185
+ medium: Cn
186
186
  };
187
- function Jo({
187
+ function Ho({
188
188
  variant: e = "basic",
189
- size: o = "medium",
190
- disabled: t = !1,
191
- keepFocusOnClick: i = !1,
192
- customStyle: l = {},
193
- onClick: c,
194
- children: u,
195
- type: r = "button",
196
- ...a
189
+ size: t = "medium",
190
+ disabled: s = !1,
191
+ keepFocusOnClick: o = !1,
192
+ customStyle: i = {},
193
+ onClick: u,
194
+ children: c,
195
+ type: a = "button",
196
+ ...l
197
197
  }) {
198
- const _ = [de.button, de[e], de[o]].filter(Boolean).join(" ");
198
+ const _ = [be.button, be[e], be[t]].filter(Boolean).join(" ");
199
199
  return /* @__PURE__ */ n(
200
200
  "button",
201
201
  {
202
202
  "data-idb-component": !0,
203
- type: r,
203
+ type: a,
204
204
  className: _,
205
205
  onClick: (d) => {
206
- c?.(d), !i && !d.defaultPrevented && d.currentTarget.blur();
206
+ u?.(d), !o && !d.defaultPrevented && d.currentTarget.blur();
207
207
  },
208
- disabled: t,
209
- style: l,
210
- ...a,
211
- children: u
208
+ disabled: s,
209
+ style: i,
210
+ ...l,
211
+ children: c
212
212
  }
213
213
  );
214
214
  }
215
- const hn = "_root_15y9v_1", gn = "_label_15y9v_8", xn = "_labelDisabled_15y9v_16", yn = "_requiredMark_15y9v_20", bn = "_controlRow_15y9v_24", Cn = "_control_15y9v_24", vn = "_small_15y9v_48", $n = "_outline_15y9v_53", Nn = "_fill_15y9v_57", wn = "_basic_15y9v_61", kn = "_success_15y9v_65", Bn = "_error_15y9v_70", En = "_focused_15y9v_86", Sn = "_typing_15y9v_87", Tn = "_disabled_15y9v_103", In = "_leadingIcon_15y9v_118", An = "_trailingIcon_15y9v_119", Mn = "_trailingText_15y9v_120", Rn = "_readOnly_15y9v_124", Dn = "_inputField_15y9v_146", qn = "_trailingButton_15y9v_193", Ln = "_trailingIconButton_15y9v_194", Fn = "_trailingSlot_15y9v_198", Hn = "_trailingSlotDisabled_15y9v_205", On = "_trailingBasicIconButton_15y9v_209", Wn = "_helper_15y9v_290", jn = "_helperFixed_15y9v_296", Pn = "_helperPlaceholder_15y9v_300", Kn = "_errorHelper_15y9v_304", Vn = "_errorHelperBounce_15y9v_308", Un = "_errorMessageBounceY_15y9v_1", zn = "_helperDisabled_15y9v_312", m = {
216
- root: hn,
217
- label: gn,
218
- labelDisabled: xn,
219
- requiredMark: yn,
220
- controlRow: bn,
221
- control: Cn,
222
- default: "_default_15y9v_43",
223
- small: vn,
224
- outline: $n,
225
- fill: Nn,
226
- basic: wn,
227
- success: kn,
228
- error: Bn,
229
- focused: En,
230
- typing: Sn,
215
+ const xn = "_root_ir5jh_1", bn = "_label_ir5jh_8", yn = "_labelDisabled_ir5jh_16", vn = "_requiredMark_ir5jh_20", wn = "_controlRow_ir5jh_24", $n = "_control_ir5jh_24", kn = "_small_ir5jh_48", Nn = "_outline_ir5jh_53", Bn = "_fill_ir5jh_57", En = "_basic_ir5jh_61", Sn = "_success_ir5jh_65", In = "_error_ir5jh_70", jn = "_focused_ir5jh_82", Tn = "_disabled_ir5jh_87", Mn = "_leadingIcon_ir5jh_102", Ln = "_trailingIcon_ir5jh_103", Rn = "_trailingText_ir5jh_104", An = "_inputField_ir5jh_126", Dn = "_trailingButton_ir5jh_173", qn = "_trailingIconButton_ir5jh_174", Hn = "_trailingSlot_ir5jh_178", Fn = "_trailingSlotDisabled_ir5jh_185", Wn = "_trailingBasicIconButton_ir5jh_189", On = "_helper_ir5jh_270", Pn = "_helperFixed_ir5jh_276", zn = "_helperPlaceholder_ir5jh_280", Vn = "_errorHelper_ir5jh_284", Kn = "_errorHelperBounce_ir5jh_288", Zn = "_errorMessageBounceY_ir5jh_1", Un = "_helperDisabled_ir5jh_292", p = {
216
+ root: xn,
217
+ label: bn,
218
+ labelDisabled: yn,
219
+ requiredMark: vn,
220
+ controlRow: wn,
221
+ control: $n,
222
+ default: "_default_ir5jh_43",
223
+ small: kn,
224
+ outline: Nn,
225
+ fill: Bn,
226
+ basic: En,
227
+ success: Sn,
228
+ error: In,
229
+ focused: jn,
231
230
  disabled: Tn,
232
- leadingIcon: In,
233
- trailingIcon: An,
234
- trailingText: Mn,
235
- readOnly: Rn,
236
- inputField: Dn,
237
- "input-default": "_input-default_15y9v_157",
238
- "input-small": "_input-small_15y9v_161",
239
- trailingButton: qn,
240
- trailingIconButton: Ln,
241
- trailingSlot: Fn,
242
- trailingSlotDisabled: Hn,
243
- trailingBasicIconButton: On,
244
- helper: Wn,
245
- helperFixed: jn,
246
- helperPlaceholder: Pn,
247
- errorHelper: Kn,
248
- errorHelperBounce: Vn,
249
- errorMessageBounceY: Un,
250
- helperDisabled: zn
231
+ leadingIcon: Mn,
232
+ trailingIcon: Ln,
233
+ trailingText: Rn,
234
+ inputField: An,
235
+ "input-default": "_input-default_ir5jh_137",
236
+ "input-small": "_input-small_ir5jh_141",
237
+ trailingButton: Dn,
238
+ trailingIconButton: qn,
239
+ trailingSlot: Hn,
240
+ trailingSlotDisabled: Fn,
241
+ trailingBasicIconButton: Wn,
242
+ helper: On,
243
+ helperFixed: Pn,
244
+ helperPlaceholder: zn,
245
+ errorHelper: Vn,
246
+ errorHelperBounce: Kn,
247
+ errorMessageBounceY: Zn,
248
+ helperDisabled: Un
251
249
  };
252
- function Zn({
250
+ function Yn({
253
251
  content: e,
254
- disabled: o = !1
252
+ disabled: t = !1
255
253
  }) {
256
254
  if (e == null)
257
255
  return null;
258
- const t = (i) => {
259
- i.preventDefault();
256
+ const s = (o) => {
257
+ o.preventDefault();
260
258
  };
261
259
  return /* @__PURE__ */ n(
262
260
  "span",
263
261
  {
264
- className: [m.trailingSlot, o ? m.trailingSlotDisabled : ""].filter(Boolean).join(" "),
265
- onMouseDownCapture: t,
262
+ className: [p.trailingSlot, t ? p.trailingSlotDisabled : ""].filter(Boolean).join(" "),
263
+ onMouseDownCapture: s,
266
264
  children: e
267
265
  }
268
266
  );
269
267
  }
270
- function Yn({
268
+ function Xn({
271
269
  value: e,
272
- onFocus: o,
273
- onBlur: t,
274
- onChange: i
270
+ onFocus: t,
271
+ onBlur: s,
272
+ onChange: o
275
273
  }) {
276
- const [l, c] = oe(!1), [u, r] = oe(!1);
277
274
  return {
278
275
  currentValue: e,
279
- isFocused: l,
280
- isTyping: u,
281
- handleFocus: (h) => {
282
- c(!0), r(!1), o?.(h);
276
+ handleFocus: (l) => {
277
+ t?.(l);
283
278
  },
284
- handleBlur: (h) => {
285
- c(!1), r(!1), t?.(h);
279
+ handleBlur: (l) => {
280
+ s?.(l);
286
281
  },
287
- handleChange: (h) => {
288
- r(!0), i?.(h);
282
+ handleChange: (l) => {
283
+ o?.(l);
289
284
  }
290
285
  };
291
286
  }
292
- function Xn({
287
+ function Gn({
293
288
  type: e = "text",
294
289
  // input HTML 타입
295
- designType: o = "outline",
290
+ designType: t = "outline",
296
291
  // 인풋 외형 타입
297
- size: t = "default",
292
+ size: s = "default",
298
293
  // 인풋 높이 크기
299
- variant: i,
294
+ variant: o,
300
295
  // 상태 variant
301
- width: l,
296
+ width: i,
302
297
  // 루트 너비
303
- heading: c = !0,
298
+ heading: u = !0,
304
299
  // 라벨 표시 여부
305
- headingContent: u = "Label",
300
+ headingContent: c = "Label",
306
301
  // 라벨 내용
307
- required: r = !1,
302
+ required: a = !1,
308
303
  // 라벨 우측 *
309
- description: a = !1,
304
+ description: l = !1,
310
305
  // 하단 안내 문구
311
306
  fixedDescriptionHeight: _ = !0,
312
307
  // 하단 문구 영역 높이 고정 여부
313
- errorMessage: p,
308
+ errorMessage: m,
314
309
  // 에러 상태 문구
315
310
  leadingIcon: d,
316
311
  // 좌측 아이콘 슬롯
317
- trailingContent: h,
312
+ trailingContent: g,
318
313
  // 우측 trailing 슬롯 콘텐츠
319
- customStyle: b = {},
314
+ customStyle: h = {},
320
315
  // 루트 커스텀 스타일
321
- id: x,
316
+ id: C,
322
317
  // input id
323
318
  onFocus: N,
324
319
  // 포커스 진입 핸들러
325
- onBlur: C,
320
+ onBlur: w,
326
321
  // 포커스 이탈 핸들러
327
- onChange: w,
322
+ onChange: j,
328
323
  // 값 변경 핸들러
329
- value: s,
324
+ value: r,
330
325
  // 현재 값
331
- disabled: y = !1,
326
+ disabled: x = !1,
332
327
  // 전체 비활성화 여부
333
- readOnly: Y = !1,
328
+ readOnly: ce = !1,
334
329
  // 읽기 전용 여부
335
- ...re
330
+ ..._e
336
331
  }) {
337
- const ae = Ae(), D = x ?? ae, A = c, O = u, { currentValue: B, isFocused: W, isTyping: X, handleFocus: ce, handleBlur: ue, handleChange: _e } = Yn(
338
- {
339
- value: s,
340
- onFocus: N,
341
- onBlur: C,
342
- onChange: w
343
- }
344
- ), G = q(() => B == null ? !1 : Array.isArray(B) ? B.length > 0 : typeof B == "number" ? !0 : String(B).length > 0, [B]), f = q(() => i !== void 0 ? i : X && W ? "onTyping" : W ? "onFocus" : G ? "typed" : "basic", [i, X, W, G]), M = f === "error", ke = f === "success", Be = [
345
- m.control,
346
- m[o],
347
- M ? m.error : ke ? m.success : m.basic,
348
- m[t],
349
- !y && (f === "onFocus" || f === "onTyping") ? m.focused : "",
350
- !y && f === "onTyping" ? m.typing : "",
351
- y ? m.disabled : "",
352
- Y ? m.readOnly : ""
353
- ].filter(Boolean).join(" "), Ee = [m.inputField, m[`input-${t}`]].join(" "), Se = m.root, Te = [m.label, y ? m.labelDisabled : ""].filter(Boolean).join(" "), J = q(() => M ? p ?? "에러 메시지가 표시됩니다." : a === !1 || a === void 0 || a === null ? null : a === !0 ? "2~19자 이내로 입력해 주세요." : a, [a, p, M]), Ie = [
354
- m.helper,
355
- _ ? m.helperFixed : "",
356
- M ? m.errorHelper : "",
357
- M && J !== null ? m.errorHelperBounce : "",
358
- y ? m.helperDisabled : "",
359
- _ && J === null ? m.helperPlaceholder : ""
332
+ const ue = Te(), ee = C ?? ue, de = u, H = c, { currentValue: b, handleFocus: me, handleBlur: ne, handleChange: V } = Xn({
333
+ value: r,
334
+ onFocus: N,
335
+ onBlur: w,
336
+ onChange: j
337
+ }), K = q(() => b == null ? !1 : Array.isArray(b) ? b.length > 0 : typeof b == "number" ? !0 : String(b).length > 0, [b]), F = q(() => o !== void 0 ? o : K ? "typed" : "basic", [o, K]), R = F === "error", pe = F === "success", fe = F === "onFocus" || F === "onTyping", he = [
338
+ p.control,
339
+ p[t],
340
+ R ? p.error : pe ? p.success : p.basic,
341
+ p[s],
342
+ !x && fe ? p.focused : "",
343
+ x ? p.disabled : ""
344
+ ].filter(Boolean).join(" "), ge = [p.inputField, p[`input-${s}`]].join(" "), Ce = p.root, xe = [p.label, x ? p.labelDisabled : ""].filter(Boolean).join(" "), W = q(() => R ? m ?? "에러 메시지가 표시됩니다." : l === !1 || l === void 0 || l === null ? null : l === !0 ? "2~19자 이내로 입력해 주세요." : l, [l, m, R]), f = [
345
+ p.helper,
346
+ _ ? p.helperFixed : "",
347
+ R ? p.errorHelper : "",
348
+ R && W !== null ? p.errorHelperBounce : "",
349
+ x ? p.helperDisabled : "",
350
+ _ && W === null ? p.helperPlaceholder : ""
360
351
  ].filter(Boolean).join(" ");
361
- return /* @__PURE__ */ k(
352
+ return /* @__PURE__ */ v(
362
353
  "div",
363
354
  {
364
355
  "data-idb-component": !0,
365
- className: Se,
356
+ className: Ce,
366
357
  style: {
367
- width: l ?? "100%",
368
- ...b
358
+ width: i ?? "100%",
359
+ ...h
369
360
  },
370
361
  children: [
371
- A ? /* @__PURE__ */ k("label", { htmlFor: D, className: Te, children: [
372
- /* @__PURE__ */ n("span", { children: O }),
373
- r ? /* @__PURE__ */ n("span", { className: m.requiredMark, children: "*" }) : null
362
+ de ? /* @__PURE__ */ v("label", { htmlFor: ee, className: xe, children: [
363
+ /* @__PURE__ */ n("span", { children: H }),
364
+ a ? /* @__PURE__ */ n("span", { className: p.requiredMark, children: "*" }) : null
374
365
  ] }) : null,
375
- /* @__PURE__ */ n("div", { className: m.controlRow, children: /* @__PURE__ */ k("div", { className: Be, children: [
376
- d ? /* @__PURE__ */ n("span", { className: m.leadingIcon, children: d }) : null,
366
+ /* @__PURE__ */ n("div", { className: p.controlRow, children: /* @__PURE__ */ v("div", { className: he, children: [
367
+ d ? /* @__PURE__ */ n("span", { className: p.leadingIcon, children: d }) : null,
377
368
  /* @__PURE__ */ n(
378
369
  "input",
379
370
  {
380
- id: D,
371
+ id: ee,
381
372
  type: e,
382
- value: B,
383
- className: Ee,
384
- onFocus: ce,
385
- onBlur: ue,
386
- onChange: _e,
387
- disabled: y,
388
- readOnly: Y,
389
- required: r,
390
- ...re
373
+ value: b,
374
+ className: ge,
375
+ onFocus: me,
376
+ onBlur: ne,
377
+ onChange: V,
378
+ disabled: x,
379
+ readOnly: ce,
380
+ required: a,
381
+ ..._e
391
382
  }
392
383
  ),
393
384
  /* @__PURE__ */ n(
394
- Zn,
385
+ Yn,
395
386
  {
396
- content: h,
397
- disabled: y
387
+ content: g,
388
+ disabled: x
398
389
  }
399
390
  )
400
391
  ] }) }),
401
- _ || J !== null ? /* @__PURE__ */ n("p", { className: Ie, children: J }) : null
392
+ _ || W !== null ? /* @__PURE__ */ n("p", { className: f, children: W }) : null
402
393
  ]
403
394
  }
404
395
  );
405
396
  }
406
- const Gn = "_button_1wh5k_1", Jn = "_content_1wh5k_19", Qn = "_fixed_1wh5k_37", et = "_fixedContent_1wh5k_43", nt = "_node_1wh5k_53", tt = "_text_1wh5k_59", ot = "_large_1wh5k_69", st = "_medium_1wh5k_70", it = "_small_1wh5k_71", lt = "_xsmall_1wh5k_75", rt = "_flexible_1wh5k_80", at = "_primary_1wh5k_98", ct = "_secondary_1wh5k_99", ut = "_assistive_1wh5k_100", _t = "_loading_1wh5k_101", dt = "_spinnerWrapper_1wh5k_172", S = {
407
- button: Gn,
408
- content: Jn,
409
- fixed: Qn,
410
- fixedContent: et,
411
- node: nt,
412
- text: tt,
397
+ const Jn = "_button_1wh5k_1", Qn = "_content_1wh5k_19", et = "_fixed_1wh5k_37", nt = "_fixedContent_1wh5k_43", tt = "_node_1wh5k_53", st = "_text_1wh5k_59", ot = "_large_1wh5k_69", it = "_medium_1wh5k_70", lt = "_small_1wh5k_71", rt = "_xsmall_1wh5k_75", at = "_flexible_1wh5k_80", ct = "_primary_1wh5k_98", _t = "_secondary_1wh5k_99", ut = "_assistive_1wh5k_100", dt = "_loading_1wh5k_101", mt = "_spinnerWrapper_1wh5k_172", E = {
398
+ button: Jn,
399
+ content: Qn,
400
+ fixed: et,
401
+ fixedContent: nt,
402
+ node: tt,
403
+ text: st,
413
404
  large: ot,
414
- medium: st,
415
- small: it,
416
- xsmall: lt,
417
- flexible: rt,
418
- primary: at,
419
- secondary: ct,
405
+ medium: it,
406
+ small: lt,
407
+ xsmall: rt,
408
+ flexible: at,
409
+ primary: ct,
410
+ secondary: _t,
420
411
  assistive: ut,
421
- loading: _t,
422
- spinnerWrapper: dt,
412
+ loading: dt,
413
+ spinnerWrapper: mt,
423
414
  "spinner-primary": "_spinner-primary_1wh5k_179",
424
415
  "spinner-assistive": "_spinner-assistive_1wh5k_180",
425
416
  "spinner-secondary": "_spinner-secondary_1wh5k_184"
426
417
  };
427
- function Qo({
418
+ function Fo({
428
419
  widthType: e = "flexible",
429
- variant: o = "primary",
430
- size: t = "medium",
431
- disabled: i = !1,
432
- loading: l = !1,
433
- keepFocusOnClick: c = !1,
434
- customStyle: u = {},
435
- onClick: r,
436
- className: a,
420
+ variant: t = "primary",
421
+ size: s = "medium",
422
+ disabled: o = !1,
423
+ loading: i = !1,
424
+ keepFocusOnClick: u = !1,
425
+ customStyle: c = {},
426
+ onClick: a,
427
+ className: l,
437
428
  children: _,
438
- type: p = "button",
429
+ type: m = "button",
439
430
  ...d
440
431
  }) {
441
- const h = [
442
- S.button,
443
- S[e],
444
- S[o],
445
- S[t],
446
- l ? S.loading : "",
447
- a ?? ""
448
- ].filter(Boolean).join(" "), b = [S.spinnerWrapper, S[`spinner-${o}`]].filter(Boolean).join(" "), x = [S.content, e === "fixed" ? S.fixedContent : ""].filter(Boolean).join(" "), N = e === "fixed" ? le.map(_, (s) => {
449
- const y = typeof s == "string" || typeof s == "number" ? S.text : S.node;
450
- return /* @__PURE__ */ n("span", { className: y, children: s });
451
- }) : _, C = q(() => ({
432
+ const g = [
433
+ E.button,
434
+ E[e],
435
+ E[t],
436
+ E[s],
437
+ i ? E.loading : "",
438
+ l ?? ""
439
+ ].filter(Boolean).join(" "), h = [E.spinnerWrapper, E[`spinner-${t}`]].filter(Boolean).join(" "), C = [E.content, e === "fixed" ? E.fixedContent : ""].filter(Boolean).join(" "), N = e === "fixed" ? ae.map(_, (r) => {
440
+ const x = typeof r == "string" || typeof r == "number" ? E.text : E.node;
441
+ return /* @__PURE__ */ n("span", { className: x, children: r });
442
+ }) : _, w = q(() => ({
452
443
  large: 24,
453
444
  medium: 24,
454
445
  small: 24,
455
446
  xsmall: 16
456
- })[t], [t]);
447
+ })[s], [s]);
457
448
  return /* @__PURE__ */ n(
458
449
  "button",
459
450
  {
460
451
  "data-idb-component": !0,
461
- type: p,
462
- className: h,
463
- onClick: l ? void 0 : (s) => {
464
- r?.(s), !c && !s.defaultPrevented && s.currentTarget.blur();
452
+ type: m,
453
+ className: g,
454
+ onClick: i ? void 0 : (r) => {
455
+ a?.(r), !u && !r.defaultPrevented && r.currentTarget.blur();
465
456
  },
466
- disabled: i,
467
- style: u,
457
+ disabled: o,
458
+ style: c,
468
459
  ...d,
469
- children: l ? /* @__PURE__ */ n("span", { className: b, children: /* @__PURE__ */ n(Z, { size: C, color: "currentColor" }) }) : /* @__PURE__ */ n("span", { className: x, children: N })
460
+ children: i ? /* @__PURE__ */ n("span", { className: h, children: /* @__PURE__ */ n(Q, { size: w, color: "currentColor" }) }) : /* @__PURE__ */ n("span", { className: C, children: N })
470
461
  }
471
462
  );
472
463
  }
473
- const mt = "_button_lctga_1", pt = "_large_lctga_40", ft = "_medium_lctga_51", be = {
474
- button: mt,
475
- large: pt,
476
- medium: ft
464
+ const pt = "_button_1ur9u_1", ft = "_large_1ur9u_40", ht = "_medium_1ur9u_52", Se = {
465
+ button: pt,
466
+ large: ft,
467
+ medium: ht
477
468
  };
478
- function es({
469
+ function Wo({
479
470
  size: e = "medium",
480
- disabled: o = !1,
481
- keepFocusOnClick: t = !1,
482
- customStyle: i = {},
483
- onClick: l,
484
- children: c,
485
- type: u = "button",
486
- ...r
471
+ disabled: t = !1,
472
+ keepFocusOnClick: s = !1,
473
+ customStyle: o = {},
474
+ onClick: i,
475
+ children: u,
476
+ type: c = "button",
477
+ ...a
487
478
  }) {
488
- const a = [be.button, be[e]].filter(Boolean).join(" ");
479
+ const l = [Se.button, Se[e]].filter(Boolean).join(" ");
489
480
  return /* @__PURE__ */ n(
490
481
  "button",
491
482
  {
492
483
  "data-idb-component": !0,
493
- type: u,
494
- className: a,
495
- onClick: (p) => {
496
- l?.(p), !t && !p.defaultPrevented && p.currentTarget.blur();
484
+ type: c,
485
+ className: l,
486
+ onClick: (m) => {
487
+ i?.(m), !s && !m.defaultPrevented && m.currentTarget.blur();
497
488
  },
498
- disabled: o,
499
- style: i,
500
- ...r,
501
- children: c
489
+ disabled: t,
490
+ style: o,
491
+ ...a,
492
+ children: u
502
493
  }
503
494
  );
504
495
  }
505
- const ht = "_badge_iiym7_1", gt = "_dot_iiym7_16", xt = "_number_iiym7_23", yt = "_info_iiym7_36", Ce = {
506
- badge: ht,
507
- dot: gt,
496
+ const gt = "_badge_iiym7_1", Ct = "_dot_iiym7_16", xt = "_number_iiym7_23", bt = "_info_iiym7_36", Ie = {
497
+ badge: gt,
498
+ dot: Ct,
508
499
  number: xt,
509
- info: yt
500
+ info: bt
510
501
  };
511
- function ns({
502
+ function Oo({
512
503
  variant: e = "number",
513
- count: o = 1,
514
- bgColor: t,
515
- color: i,
516
- disabled: l = !1,
517
- customStyle: c = {},
518
- className: u
504
+ count: t = 1,
505
+ bgColor: s,
506
+ color: o,
507
+ disabled: i = !1,
508
+ customStyle: u = {},
509
+ className: c
519
510
  }) {
520
- if (l)
511
+ if (i)
521
512
  return null;
522
- const r = o > 999 ? "999+" : o, a = {
523
- ...t ? { backgroundColor: t } : {},
524
- ...i ? { color: i } : {},
525
- ...c
526
- }, _ = [Ce.badge, Ce[e], u ?? ""].filter(Boolean).join(" ");
527
- return /* @__PURE__ */ k("span", { "data-idb-component": !0, className: _, style: a, children: [
528
- e === "number" ? r : null,
513
+ const a = t > 999 ? "999+" : t, l = {
514
+ ...s ? { backgroundColor: s } : {},
515
+ ...o ? { color: o } : {},
516
+ ...u
517
+ }, _ = [Ie.badge, Ie[e], c ?? ""].filter(Boolean).join(" ");
518
+ return /* @__PURE__ */ v("span", { "data-idb-component": !0, className: _, style: l, children: [
519
+ e === "number" ? a : null,
529
520
  e === "info" ? "?" : null
530
521
  ] });
531
522
  }
532
- function ts({
523
+ const yt = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M1.74995%2010C1.74995%205.44365%205.44359%201.75%209.99992%201.75C14.5562%201.75%2018.2499%205.44365%2018.2499%2010C18.2499%2014.5563%2014.5562%2018.25%209.99992%2018.25C5.44359%2018.25%201.74995%2014.5563%201.74995%2010ZM7.61358%206.55302C7.32069%206.26013%206.84582%206.26013%206.55293%206.55302C6.26003%206.84592%206.26003%207.32079%206.55293%207.61368L8.93925%2010L6.55293%2012.3864C6.26003%2012.6793%206.26003%2013.1541%206.55293%2013.447C6.84582%2013.7399%207.32069%2013.7399%207.61358%2013.447L9.99991%2011.0607L12.3862%2013.447C12.6791%2013.7399%2013.154%2013.7399%2013.4469%2013.447C13.7398%2013.1541%2013.7398%2012.6793%2013.4469%2012.3864L11.0606%2010L13.4469%207.61368C13.7398%207.32079%2013.7398%206.84592%2013.4469%206.55302C13.154%206.26013%2012.6791%206.26013%2012.3862%206.55302L9.99991%208.93936L7.61358%206.55302Z'%20fill='%23C2C4C8'/%3e%3c/svg%3e", vt = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8.33331%201.75C4.69745%201.75%201.75%204.69746%201.75%208.33333C1.75%2011.9692%204.69745%2014.9167%208.33331%2014.9167C9.88105%2014.9167%2011.3041%2014.3826%2012.428%2013.4886L16.5531%2017.6136C16.846%2017.9065%2017.3208%2017.9065%2017.6137%2017.6136C17.9066%2017.3207%2017.9066%2016.8459%2017.6137%2016.553L13.4887%2012.4279C14.3826%2011.3039%2014.9166%209.88101%2014.9166%208.33333C14.9166%204.69746%2011.9692%201.75%208.33331%201.75ZM3.24999%208.33333C3.24999%205.52589%205.52587%203.25%208.33331%203.25C11.1407%203.25%2013.4166%205.52589%2013.4166%208.33333C13.4166%2011.1408%2011.1407%2013.4167%208.33331%2013.4167C5.52587%2013.4167%203.24999%2011.1408%203.24999%208.33333Z'%20fill='%23171719'/%3e%3c/svg%3e", wt = "_actionButtons_1ngrw_1", $t = {
524
+ actionButtons: wt
525
+ }, kt = {
526
+ default: "basic",
527
+ onTyping: "onTyping",
528
+ typed: "typed",
529
+ error: "error"
530
+ };
531
+ function Po({
533
532
  value: e,
534
533
  // 검색어 값
535
- onChange: o,
534
+ onChange: t,
536
535
  // 입력 변경 핸들러
537
- onSearch: t,
536
+ onSearch: s,
538
537
  // 검색 실행 핸들러
538
+ onClear: o,
539
+ // 입력내용 전체 삭제 핸들러(미전달 시 기본 삭제 동작)
539
540
  size: i = "default",
540
541
  // 인풋 크기
541
- width: l,
542
+ width: u,
542
543
  // 컴포넌트 너비
543
544
  designType: c = "outline",
544
545
  // 인풋 외형 타입
545
- heading: u = !1,
546
+ heading: a = !1,
546
547
  // 라벨 표시 여부
547
- headingContent: r,
548
+ headingContent: l,
548
549
  // 라벨 내용
549
- variant: a,
550
- // 인풋 상태 variant
551
- description: _ = !1,
550
+ variant: _,
551
+ // SearchBar 상태 variant
552
+ description: m = !1,
552
553
  // 하단 안내 문구
553
- fixedDescriptionHeight: p = !0,
554
+ fixedDescriptionHeight: d = !0,
554
555
  // 하단 문구 영역 높이 고정 여부
555
- disabled: d = !1,
556
+ disabled: g = !1,
556
557
  // 전체 비활성화 여부
557
558
  readOnly: h = !1,
558
559
  // 읽기 전용 여부
559
- id: b,
560
+ id: C,
560
561
  // input id
561
- name: x,
562
+ name: N,
562
563
  // input name
563
- placeholder: N,
564
+ placeholder: w,
564
565
  // placeholder 텍스트
565
- leadingIcon: C,
566
+ leadingIcon: j,
566
567
  // 좌측 아이콘 슬롯
567
- maxLength: w = 20,
568
+ trailingContent: r,
569
+ // 우측 trailing 콘텐츠(미지정 시 검색 버튼 사용)
570
+ maxLength: x = 20,
568
571
  // 최대 입력 길이
569
- required: s = !1,
572
+ required: ce = !1,
570
573
  // 필수 입력 여부
571
- errorMessage: y,
574
+ errorMessage: _e,
572
575
  // 에러 상태 문구
573
- onBlur: Y,
576
+ onBlur: ue,
574
577
  // 포커스 이탈 핸들러
575
- onKeyDown: re,
578
+ onKeyDown: ee,
576
579
  // 키다운 핸들러
577
- ...ae
580
+ ...de
578
581
  }) {
579
- const [D, A] = oe(null), O = (f) => f.length >= w, B = (f) => f.length === 1, W = (f) => {
580
- const M = f.target.value;
581
- O(M) ? A("max") : D !== null && A(null), o(f);
582
- }, X = () => {
583
- if (O(e)) {
584
- A("max");
582
+ const [H, b] = Me(null), me = Te(), ne = C ?? me, V = (f) => f.length >= x, K = (f) => f.length === 1, F = (f) => {
583
+ const D = f.target.value;
584
+ V(D) ? b("max") : H !== null && b(null), t(f);
585
+ }, R = () => {
586
+ if (V(e)) {
587
+ b("max");
585
588
  return;
586
589
  }
587
- if (B(e)) {
588
- A("min");
590
+ if (K(e)) {
591
+ b("min");
589
592
  return;
590
593
  }
591
- A(null), t(e);
592
- }, ce = (f) => {
593
- const M = f.currentTarget.value;
594
- O(M) ? A("max") : B(M) ? A("min") : A(null), Y?.(f);
595
- }, ue = (f) => {
596
- re?.(f), !f.defaultPrevented && (f.key !== "Enter" || f.nativeEvent.isComposing || (f.preventDefault(), X()));
597
- }, _e = D !== null ? "error" : a, G = D === "max" ? `최대 ${Math.max(0, w - 1)}자 까지 가능합니다.` : D === "min" ? "최소 2자 이상 입력해 주세요." : y;
594
+ b(null), s(e);
595
+ }, pe = () => {
596
+ const f = document.getElementById(ne);
597
+ if (!(f instanceof HTMLInputElement))
598
+ return;
599
+ const D = Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, "value")?.set;
600
+ D !== void 0 && (D.call(f, ""), f.dispatchEvent(new Event("input", { bubbles: !0 })));
601
+ }, fe = () => {
602
+ if (!(g || h || e.length === 0)) {
603
+ if (b(null), o !== void 0) {
604
+ o();
605
+ return;
606
+ }
607
+ pe();
608
+ }
609
+ }, he = (f) => {
610
+ const D = f.currentTarget.value;
611
+ V(D) ? b("max") : K(D) ? b("min") : b(null), ue?.(f);
612
+ }, ge = (f) => {
613
+ ee?.(f), !f.defaultPrevented && (f.key !== "Enter" || f.nativeEvent.isComposing || (f.preventDefault(), R()));
614
+ }, Ce = H !== null ? "error" : _ === void 0 ? void 0 : kt[_], xe = H === "max" ? `최대 ${Math.max(0, x - 1)}자 까지 가능합니다.` : H === "min" ? "최소 2자 이상 입력해 주세요." : _e, W = r ?? /* @__PURE__ */ v("span", { className: $t.actionButtons, children: [
615
+ e.length > 0 ? /* @__PURE__ */ n(
616
+ ye,
617
+ {
618
+ size: "small",
619
+ keepFocusOnClick: !0,
620
+ onClick: fe,
621
+ disabled: g || h,
622
+ children: /* @__PURE__ */ n(
623
+ "img",
624
+ {
625
+ src: yt,
626
+ alt: ""
627
+ }
628
+ )
629
+ }
630
+ ) : null,
631
+ /* @__PURE__ */ n(
632
+ ye,
633
+ {
634
+ size: "small",
635
+ keepFocusOnClick: !0,
636
+ onClick: R,
637
+ disabled: g,
638
+ children: /* @__PURE__ */ n(
639
+ "img",
640
+ {
641
+ src: vt,
642
+ alt: ""
643
+ }
644
+ )
645
+ }
646
+ )
647
+ ] });
598
648
  return /* @__PURE__ */ n(
599
- Xn,
649
+ Gn,
600
650
  {
601
- ...ae,
602
- id: b,
603
- name: x,
651
+ ...de,
652
+ id: ne,
653
+ name: N,
604
654
  value: e,
605
- placeholder: N,
606
- onChange: W,
607
- onBlur: ce,
608
- onKeyDown: ue,
655
+ placeholder: w,
656
+ onChange: F,
657
+ onBlur: he,
658
+ onKeyDown: ge,
609
659
  type: "text",
610
- width: l,
660
+ width: u,
611
661
  designType: c,
612
662
  size: i,
613
- heading: u,
614
- headingContent: r,
615
- required: s,
616
- description: _,
617
- fixedDescriptionHeight: p,
618
- variant: _e,
619
- errorMessage: G,
620
- leadingIcon: C,
621
- maxLength: w,
622
- disabled: d,
663
+ heading: a,
664
+ headingContent: l,
665
+ required: ce,
666
+ description: m,
667
+ fixedDescriptionHeight: d,
668
+ variant: Ce,
669
+ errorMessage: xe,
670
+ leadingIcon: j,
671
+ trailingContent: W,
672
+ maxLength: x,
673
+ disabled: g,
623
674
  readOnly: h
624
675
  }
625
676
  );
626
677
  }
627
- var L = {}, ve;
628
- function bt() {
629
- if (ve) return L;
630
- ve = 1;
631
- var e = De;
678
+ var O = {}, je;
679
+ function Nt() {
680
+ if (je) return O;
681
+ je = 1;
682
+ var e = He;
632
683
  if (process.env.NODE_ENV === "production")
633
- L.createRoot = e.createRoot, L.hydrateRoot = e.hydrateRoot;
684
+ O.createRoot = e.createRoot, O.hydrateRoot = e.hydrateRoot;
634
685
  else {
635
- var o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
636
- L.createRoot = function(t, i) {
637
- o.usingClientEntryPoint = !0;
686
+ var t = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
687
+ O.createRoot = function(s, o) {
688
+ t.usingClientEntryPoint = !0;
638
689
  try {
639
- return e.createRoot(t, i);
690
+ return e.createRoot(s, o);
640
691
  } finally {
641
- o.usingClientEntryPoint = !1;
692
+ t.usingClientEntryPoint = !1;
642
693
  }
643
- }, L.hydrateRoot = function(t, i, l) {
644
- o.usingClientEntryPoint = !0;
694
+ }, O.hydrateRoot = function(s, o, i) {
695
+ t.usingClientEntryPoint = !0;
645
696
  try {
646
- return e.hydrateRoot(t, i, l);
697
+ return e.hydrateRoot(s, o, i);
647
698
  } finally {
648
- o.usingClientEntryPoint = !1;
699
+ t.usingClientEntryPoint = !1;
649
700
  }
650
701
  };
651
702
  }
652
- return L;
703
+ return O;
653
704
  }
654
- var $e = bt();
655
- const Ct = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_1969_3981)'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M13.9354%204.93441C14.2478%204.62219%2014.7539%204.62206%2015.0662%204.93441C15.3786%205.24677%2015.3785%205.75284%2015.0662%206.06527L11.1307%2010.0008L15.0643%2013.9344C15.3767%2014.2468%2015.3767%2014.7529%2015.0643%2015.0653C14.7519%2015.3777%2014.2459%2015.3777%2013.9334%2015.0653L9.99984%2011.1317L6.06625%2015.0653C5.75383%2015.3777%205.24781%2015.3777%204.93539%2015.0653C4.62297%2014.7529%204.62297%2014.2468%204.93539%2013.9344L8.86898%2010.0008L4.93344%206.06527C4.62121%205.75284%204.62108%205.24677%204.93344%204.93441C5.24579%204.62206%205.75186%204.62219%206.06429%204.93441L9.99984%208.86996L13.9354%204.93441Z'%20fill='%2370737C'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1969_3981'%3e%3crect%20width='20'%20height='20'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", vt = "_button_xqfx2_1", $t = "_content_xqfx2_18", Nt = "_fixed_xqfx2_36", wt = "_fixedContent_xqfx2_42", kt = "_node_xqfx2_52", Bt = "_text_xqfx2_58", Et = "_large_xqfx2_68", St = "_medium_xqfx2_69", Tt = "_small_xqfx2_70", It = "_xsmall_xqfx2_74", At = "_flexible_xqfx2_79", Mt = "_primary_xqfx2_109", Rt = "_secondary_xqfx2_110", Dt = "_assistive_xqfx2_111", qt = "_loading_xqfx2_112", Lt = "_spinnerWrapper_xqfx2_180", T = {
656
- button: vt,
657
- content: $t,
658
- fixed: Nt,
659
- fixedContent: wt,
660
- node: kt,
661
- text: Bt,
662
- large: Et,
663
- medium: St,
664
- small: Tt,
665
- xsmall: It,
666
- flexible: At,
667
- primary: Mt,
668
- secondary: Rt,
669
- assistive: Dt,
670
- loading: qt,
671
- spinnerWrapper: Lt,
705
+ var Ae = Nt();
706
+ const Bt = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_1969_3981)'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M13.9354%204.93441C14.2478%204.62219%2014.7539%204.62206%2015.0662%204.93441C15.3786%205.24677%2015.3785%205.75284%2015.0662%206.06527L11.1307%2010.0008L15.0643%2013.9344C15.3767%2014.2468%2015.3767%2014.7529%2015.0643%2015.0653C14.7519%2015.3777%2014.2459%2015.3777%2013.9334%2015.0653L9.99984%2011.1317L6.06625%2015.0653C5.75383%2015.3777%205.24781%2015.3777%204.93539%2015.0653C4.62297%2014.7529%204.62297%2014.2468%204.93539%2013.9344L8.86898%2010.0008L4.93344%206.06527C4.62121%205.75284%204.62108%205.24677%204.93344%204.93441C5.24579%204.62206%205.75186%204.62219%206.06429%204.93441L9.99984%208.86996L13.9354%204.93441Z'%20fill='%2370737C'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1969_3981'%3e%3crect%20width='20'%20height='20'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", Et = "_button_xqfx2_1", St = "_content_xqfx2_18", It = "_fixed_xqfx2_36", jt = "_fixedContent_xqfx2_42", Tt = "_node_xqfx2_52", Mt = "_text_xqfx2_58", Lt = "_large_xqfx2_68", Rt = "_medium_xqfx2_69", At = "_small_xqfx2_70", Dt = "_xsmall_xqfx2_74", qt = "_flexible_xqfx2_79", Ht = "_primary_xqfx2_109", Ft = "_secondary_xqfx2_110", Wt = "_assistive_xqfx2_111", Ot = "_loading_xqfx2_112", Pt = "_spinnerWrapper_xqfx2_180", S = {
707
+ button: Et,
708
+ content: St,
709
+ fixed: It,
710
+ fixedContent: jt,
711
+ node: Tt,
712
+ text: Mt,
713
+ large: Lt,
714
+ medium: Rt,
715
+ small: At,
716
+ xsmall: Dt,
717
+ flexible: qt,
718
+ primary: Ht,
719
+ secondary: Ft,
720
+ assistive: Wt,
721
+ loading: Ot,
722
+ spinnerWrapper: Pt,
672
723
  "spinner-primary": "_spinner-primary_xqfx2_187",
673
724
  "spinner-secondary": "_spinner-secondary_xqfx2_191",
674
725
  "spinner-assistive": "_spinner-assistive_xqfx2_192"
675
726
  };
676
- function Ft({
727
+ function zt({
677
728
  widthType: e = "flexible",
678
- variant: o = "primary",
679
- size: t = "medium",
680
- disabled: i = !1,
681
- loading: l = !1,
682
- keepFocusOnClick: c = !1,
683
- customStyle: u = {},
684
- onClick: r,
685
- className: a,
729
+ variant: t = "primary",
730
+ size: s = "medium",
731
+ disabled: o = !1,
732
+ loading: i = !1,
733
+ keepFocusOnClick: u = !1,
734
+ customStyle: c = {},
735
+ onClick: a,
736
+ className: l,
686
737
  children: _,
687
- type: p = "button",
738
+ type: m = "button",
688
739
  ...d
689
740
  }) {
690
- const h = [
691
- T.button,
692
- T[e],
693
- T[o],
694
- T[t],
695
- l ? T.loading : "",
696
- a ?? ""
697
- ].filter(Boolean).join(" "), b = [T.spinnerWrapper, T[`spinner-${o}`]].filter(Boolean).join(" "), x = [T.content, e === "fixed" ? T.fixedContent : ""].filter(Boolean).join(" "), N = e === "fixed" ? le.map(_, (s) => {
698
- const y = typeof s == "string" || typeof s == "number" ? T.text : T.node;
699
- return /* @__PURE__ */ n("span", { className: y, children: s });
700
- }) : _, C = q(() => ({
741
+ const g = [
742
+ S.button,
743
+ S[e],
744
+ S[t],
745
+ S[s],
746
+ i ? S.loading : "",
747
+ l ?? ""
748
+ ].filter(Boolean).join(" "), h = [S.spinnerWrapper, S[`spinner-${t}`]].filter(Boolean).join(" "), C = [S.content, e === "fixed" ? S.fixedContent : ""].filter(Boolean).join(" "), N = e === "fixed" ? ae.map(_, (r) => {
749
+ const x = typeof r == "string" || typeof r == "number" ? S.text : S.node;
750
+ return /* @__PURE__ */ n("span", { className: x, children: r });
751
+ }) : _, w = q(() => ({
701
752
  large: 24,
702
753
  medium: 24,
703
754
  small: 24,
704
755
  xsmall: 16
705
- })[t], [t]);
756
+ })[s], [s]);
706
757
  return /* @__PURE__ */ n(
707
758
  "button",
708
759
  {
709
760
  "data-idb-component": !0,
710
- type: p,
711
- className: h,
712
- onClick: l ? void 0 : (s) => {
713
- r?.(s), !c && !s.defaultPrevented && s.currentTarget.blur();
761
+ type: m,
762
+ className: g,
763
+ onClick: i ? void 0 : (r) => {
764
+ a?.(r), !u && !r.defaultPrevented && r.currentTarget.blur();
714
765
  },
715
- disabled: i,
716
- style: u,
766
+ disabled: o,
767
+ style: c,
717
768
  ...d,
718
- children: l ? /* @__PURE__ */ n("span", { className: b, children: /* @__PURE__ */ n(Z, { size: C, color: "currentColor" }) }) : /* @__PURE__ */ n("span", { className: x, children: N })
769
+ children: i ? /* @__PURE__ */ n("span", { className: h, children: /* @__PURE__ */ n(Q, { size: w, color: "currentColor" }) }) : /* @__PURE__ */ n("span", { className: C, children: N })
719
770
  }
720
771
  );
721
772
  }
722
- const Ht = "_designContainer_2k7ic_1", Ot = "_snackbar_2k7ic_12", Wt = "_snackbarEnter_2k7ic_1", jt = "_content_2k7ic_32", Pt = "_leading_2k7ic_41", Kt = "_iconSlot_2k7ic_51", Vt = "_message_2k7ic_67", Ut = "_heading_2k7ic_77", zt = "_description_2k7ic_78", Zt = "_measureContent_2k7ic_93", Yt = "_closeButton_2k7ic_107", Xt = "_trailing_2k7ic_111", Gt = "_actionButton_2k7ic_118", Jt = "_closeIcon_2k7ic_122", Qt = "_basic_2k7ic_129", eo = "_loading_2k7ic_130", no = "_snackbarExit_2k7ic_138", g = {
723
- designContainer: Ht,
724
- snackbar: Ot,
725
- snackbarEnter: Wt,
726
- content: jt,
727
- leading: Pt,
728
- iconSlot: Kt,
729
- message: Vt,
730
- heading: Ut,
731
- description: zt,
732
- measureContent: Zt,
733
- closeButton: Yt,
734
- trailing: Xt,
735
- actionButton: Gt,
736
- closeIcon: Jt,
737
- basic: Qt,
738
- loading: eo,
739
- snackbarExit: no
740
- }, to = 6e3, oo = 1e4, so = 180;
741
- let j = null, $ = null, io = 0, P = null, ee = null, se = null, U = 0;
742
- function K(e) {
773
+ const Vt = "_designContainer_2k7ic_1", Kt = "_snackbar_2k7ic_12", Zt = "_snackbarEnter_2k7ic_1", Ut = "_content_2k7ic_32", Yt = "_leading_2k7ic_41", Xt = "_iconSlot_2k7ic_51", Gt = "_message_2k7ic_67", Jt = "_heading_2k7ic_77", Qt = "_description_2k7ic_78", es = "_measureContent_2k7ic_93", ns = "_closeButton_2k7ic_107", ts = "_trailing_2k7ic_111", ss = "_actionButton_2k7ic_118", os = "_closeIcon_2k7ic_122", is = "_basic_2k7ic_129", ls = "_loading_2k7ic_130", rs = "_snackbarExit_2k7ic_138", y = {
774
+ designContainer: Vt,
775
+ snackbar: Kt,
776
+ snackbarEnter: Zt,
777
+ content: Ut,
778
+ leading: Yt,
779
+ iconSlot: Xt,
780
+ message: Gt,
781
+ heading: Jt,
782
+ description: Qt,
783
+ measureContent: es,
784
+ closeButton: ns,
785
+ trailing: ts,
786
+ actionButton: ss,
787
+ closeIcon: os,
788
+ basic: is,
789
+ loading: ls,
790
+ snackbarExit: rs
791
+ }, as = 6e3, cs = 1e4, _s = 180;
792
+ let Z = null, k = null, us = 0, U = null, se = null, le = null, G = 0;
793
+ function Y(e) {
743
794
  return e != null && typeof e != "boolean" && (typeof e != "string" || e.trim() !== "");
744
795
  }
745
- function H() {
746
- P !== null && (window.clearTimeout(P), P = null), se = null;
747
- }
748
796
  function z() {
749
- ee !== null && (window.clearTimeout(ee), ee = null);
797
+ U !== null && (window.clearTimeout(U), U = null), le = null;
798
+ }
799
+ function J() {
800
+ se !== null && (window.clearTimeout(se), se = null);
750
801
  }
751
- function lo() {
802
+ function ds() {
752
803
  if (typeof window > "u" || typeof document > "u")
753
804
  return !1;
754
- if (j)
805
+ if (Z)
755
806
  return !0;
756
807
  const e = document.createElement("div");
757
- return e.setAttribute("data-idb-snackbar-root", "true"), document.body.appendChild(e), j = $e.createRoot(e), !0;
808
+ return e.setAttribute("data-idb-snackbar-root", "true"), document.body.appendChild(e), Z = Ae.createRoot(e), !0;
758
809
  }
759
- function ro() {
760
- if (P === null || se === null || !$ || $.isExiting)
810
+ function ms() {
811
+ if (U === null || le === null || !k || k.isExiting)
761
812
  return;
762
- const e = Date.now() - se;
763
- U = Math.max(0, U - e), H();
813
+ const e = Date.now() - le;
814
+ G = Math.max(0, G - e), z();
764
815
  }
765
- function me() {
766
- if (!$ || $.isExiting)
816
+ function ve() {
817
+ if (!k || k.isExiting)
767
818
  return;
768
- H(), z(), $ = {
769
- ...$,
819
+ z(), J(), k = {
820
+ ...k,
770
821
  isExiting: !0
771
822
  };
772
- const e = $.renderKey;
773
- pe(), ee = window.setTimeout(() => {
774
- $?.renderKey === e && $.isExiting && ($ = null, pe()), z();
775
- }, so);
823
+ const e = k.renderKey;
824
+ we(), se = window.setTimeout(() => {
825
+ k?.renderKey === e && k.isExiting && (k = null, we()), J();
826
+ }, _s);
776
827
  }
777
- function Ne() {
778
- if (!(!$ || $.isExiting)) {
779
- if (U <= 0) {
780
- me();
828
+ function De() {
829
+ if (!(!k || k.isExiting)) {
830
+ if (G <= 0) {
831
+ ve();
781
832
  return;
782
833
  }
783
- H(), se = Date.now(), P = window.setTimeout(() => {
784
- me();
785
- }, U);
834
+ z(), le = Date.now(), U = window.setTimeout(() => {
835
+ ve();
836
+ }, G);
786
837
  }
787
838
  }
788
- function ao(e) {
789
- H(), z(), U = e, Ne();
839
+ function ps(e) {
840
+ z(), J(), G = e, De();
790
841
  }
791
- function co({ snackbar: e, onPauseAutoHide: o, onResumeAutoHide: t, onClose: i }) {
792
- const l = Me(null), [c, u] = oe(!1), r = K(e.heading), a = K(e.description);
842
+ function fs({ snackbar: e, onPauseAutoHide: t, onResumeAutoHide: s, onClose: o }) {
843
+ const i = Le(null), [u, c] = Me(!1), a = Y(e.heading), l = Y(e.description);
793
844
  Re(() => {
794
- if (!r) {
795
- u(!1);
845
+ if (!a) {
846
+ c(!1);
796
847
  return;
797
848
  }
798
- const b = l.current;
799
- if (!b)
849
+ const h = i.current;
850
+ if (!h)
800
851
  return;
801
- let x = null;
852
+ let C = null;
802
853
  const N = () => {
803
- u(b.scrollHeight > b.clientHeight + 1);
804
- }, C = () => {
805
- x !== null && window.cancelAnimationFrame(x), x = window.requestAnimationFrame(N);
854
+ c(h.scrollHeight > h.clientHeight + 1);
855
+ }, w = () => {
856
+ C !== null && window.cancelAnimationFrame(C), C = window.requestAnimationFrame(N);
806
857
  };
807
- C();
808
- const w = typeof ResizeObserver < "u";
809
- let s = null;
810
- return w ? (s = new ResizeObserver(C), s.observe(b)) : window.addEventListener("resize", C), () => {
811
- x !== null && window.cancelAnimationFrame(x), s?.disconnect(), w || window.removeEventListener("resize", C);
858
+ w();
859
+ const j = typeof ResizeObserver < "u";
860
+ let r = null;
861
+ return j ? (r = new ResizeObserver(w), r.observe(h)) : window.addEventListener("resize", w), () => {
862
+ C !== null && window.cancelAnimationFrame(C), r?.disconnect(), j || window.removeEventListener("resize", w);
812
863
  };
813
- }, [r, e.description, e.heading]);
814
- const _ = r && !c, p = r ? a ? /* @__PURE__ */ k(xe, { children: [
864
+ }, [a, e.description, e.heading]);
865
+ const _ = a && !u, m = a ? l ? /* @__PURE__ */ v(Be, { children: [
815
866
  e.heading,
816
867
  " ",
817
868
  e.description
818
- ] }) : e.heading : e.description, d = e.icon ? /* @__PURE__ */ n("span", { className: g.iconSlot, children: e.icon }) : e.variant === "loading" ? /* @__PURE__ */ n(Z, { size: 20, color: "currentColor" }) : null, h = K(e.actionLabel);
819
- return /* @__PURE__ */ n("div", { className: g.designContainer, children: /* @__PURE__ */ n(
869
+ ] }) : e.heading : e.description, d = e.icon ? /* @__PURE__ */ n("span", { className: y.iconSlot, children: e.icon }) : e.variant === "loading" ? /* @__PURE__ */ n(Q, { size: 20, color: "currentColor" }) : null, g = Y(e.actionLabel);
870
+ return /* @__PURE__ */ n("div", { className: y.designContainer, children: /* @__PURE__ */ n(
820
871
  "div",
821
872
  {
822
873
  "data-idb-component": !0,
823
874
  className: [
824
- g.snackbar,
825
- g[e.variant],
826
- e.isExiting ? g.snackbarExit : ""
875
+ y.snackbar,
876
+ y[e.variant],
877
+ e.isExiting ? y.snackbarExit : ""
827
878
  ].filter(Boolean).join(" "),
828
879
  style: e.customStyle,
829
880
  role: "status",
830
881
  "aria-live": "polite",
831
- onMouseEnter: o,
832
- onMouseLeave: t,
833
- children: /* @__PURE__ */ k("div", { className: g.content, children: [
834
- d ? /* @__PURE__ */ n("span", { className: g.leading, children: d }) : null,
835
- /* @__PURE__ */ k("div", { className: g.message, children: [
836
- _ ? /* @__PURE__ */ k(xe, { children: [
837
- /* @__PURE__ */ n("p", { className: g.heading, children: e.heading }),
838
- a ? /* @__PURE__ */ n("p", { className: g.description, children: e.description }) : null
839
- ] }) : /* @__PURE__ */ n("p", { className: g.description, children: p }),
840
- r ? (
882
+ onMouseEnter: t,
883
+ onMouseLeave: s,
884
+ children: /* @__PURE__ */ v("div", { className: y.content, children: [
885
+ d ? /* @__PURE__ */ n("span", { className: y.leading, children: d }) : null,
886
+ /* @__PURE__ */ v("div", { className: y.message, children: [
887
+ _ ? /* @__PURE__ */ v(Be, { children: [
888
+ /* @__PURE__ */ n("p", { className: y.heading, children: e.heading }),
889
+ l ? /* @__PURE__ */ n("p", { className: y.description, children: e.description }) : null
890
+ ] }) : /* @__PURE__ */ n("p", { className: y.description, children: m }),
891
+ a ? (
841
892
  // 실제 화면에는 보이지 않지만 heading 2줄 초과 여부를 안정적으로 측정하기 위한 숨김 영역
842
- /* @__PURE__ */ k("div", { ref: l, className: g.measureContent, "aria-hidden": "true", children: [
843
- /* @__PURE__ */ n("p", { className: g.heading, children: e.heading }),
844
- a ? /* @__PURE__ */ n("p", { className: g.description, children: e.description }) : null
893
+ /* @__PURE__ */ v("div", { ref: i, className: y.measureContent, "aria-hidden": "true", children: [
894
+ /* @__PURE__ */ n("p", { className: y.heading, children: e.heading }),
895
+ l ? /* @__PURE__ */ n("p", { className: y.description, children: e.description }) : null
845
896
  ] })
846
897
  ) : null
847
898
  ] }),
848
- h || e.closeButton ? /* @__PURE__ */ k("span", { className: g.trailing, children: [
849
- h ? /* @__PURE__ */ n(
850
- Ft,
899
+ g || e.closeButton ? /* @__PURE__ */ v("span", { className: y.trailing, children: [
900
+ g ? /* @__PURE__ */ n(
901
+ zt,
851
902
  {
852
903
  widthType: "flexible",
853
904
  variant: "primary",
854
- className: g.actionButton,
905
+ className: y.actionButton,
855
906
  onClick: e.onActionClick,
856
907
  children: e.actionLabel
857
908
  }
858
909
  ) : null,
859
910
  e.closeButton ? /* @__PURE__ */ n(
860
- He,
911
+ ye,
861
912
  {
862
913
  size: "small",
863
- className: g.closeButton,
864
- onClick: i,
865
- children: /* @__PURE__ */ n("img", { src: Ct, alt: "", "aria-hidden": "true", className: g.closeIcon })
914
+ className: y.closeButton,
915
+ onClick: o,
916
+ children: /* @__PURE__ */ n("img", { src: Bt, alt: "", "aria-hidden": "true", className: y.closeIcon })
866
917
  }
867
918
  ) : null
868
919
  ] }) : null
@@ -871,215 +922,388 @@ function co({ snackbar: e, onPauseAutoHide: o, onResumeAutoHide: t, onClose: i }
871
922
  e.renderKey
872
923
  ) });
873
924
  }
874
- function pe() {
875
- if (j) {
876
- if (!$) {
877
- H(), z(), j.render(null);
925
+ function we() {
926
+ if (Z) {
927
+ if (!k) {
928
+ z(), J(), Z.render(null);
878
929
  return;
879
930
  }
880
- j.render(
931
+ Z.render(
881
932
  /* @__PURE__ */ n(
882
- co,
933
+ fs,
883
934
  {
884
- snackbar: $,
885
- onPauseAutoHide: ro,
886
- onResumeAutoHide: Ne,
887
- onClose: uo
935
+ snackbar: k,
936
+ onPauseAutoHide: ms,
937
+ onResumeAutoHide: De,
938
+ onClose: hs
888
939
  }
889
940
  )
890
941
  );
891
942
  }
892
943
  }
893
- function os({
944
+ function zo({
894
945
  variant: e = "basic",
895
- heading: o,
896
- description: t,
897
- icon: i,
898
- actionLabel: l,
899
- onActionClick: c,
900
- closeButton: u = !1,
901
- customStyle: r
946
+ heading: t,
947
+ description: s,
948
+ icon: o,
949
+ actionLabel: i,
950
+ onActionClick: u,
951
+ closeButton: c = !1,
952
+ customStyle: a
902
953
  }) {
903
- if (!K(o) && !K(t) || !lo())
954
+ if (!Y(t) && !Y(s) || !ds())
904
955
  return;
905
- H(), z();
906
- const a = u ? oo : to;
907
- $ = {
956
+ z(), J();
957
+ const l = c ? cs : as;
958
+ k = {
908
959
  variant: e,
909
- heading: o,
910
- description: t,
911
- icon: i,
912
- actionLabel: l,
913
- onActionClick: c,
914
- closeButton: u,
915
- customStyle: r,
960
+ heading: t,
961
+ description: s,
962
+ icon: o,
963
+ actionLabel: i,
964
+ onActionClick: u,
965
+ closeButton: c,
966
+ customStyle: a,
916
967
  isExiting: !1,
917
- renderKey: io++
918
- }, pe(), ao(a);
968
+ renderKey: us++
969
+ }, we(), ps(l);
919
970
  }
920
- function uo() {
921
- me();
971
+ function hs() {
972
+ ve();
922
973
  }
923
- const _o = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M1.74995%2010C1.74995%205.44365%205.44359%201.75%209.99992%201.75C14.5562%201.75%2018.2499%205.44365%2018.2499%2010C18.2499%2014.5563%2014.5562%2018.25%209.99992%2018.25C5.44359%2018.25%201.74995%2014.5563%201.74995%2010ZM13.8722%208.22987C14.1602%207.93224%2014.1525%207.45743%2013.8549%207.16935C13.5572%206.88127%2013.0824%206.88901%2012.7944%207.18664L8.89773%2011.2124L7.20623%209.4601C6.91856%209.16208%206.44376%209.15369%206.14574%209.44137C5.84772%209.72904%205.83933%2010.2038%206.12701%2010.5019L8.35739%2012.8125C8.4986%2012.9588%208.69316%2013.0414%208.89649%2013.0416C9.09982%2013.0417%209.29449%2012.9593%209.4359%2012.8132L13.8722%208.22987Z'%20fill='%2300CC89'/%3e%3c/svg%3e", mo = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M9.01687%202.58344C9.64256%202.30487%2010.3571%202.30487%2010.9828%202.58344C11.4189%202.77761%2011.7337%203.13353%2012.0073%203.52081C12.2786%203.90474%2012.577%204.42169%2012.9401%205.05063L17.1992%2012.4276C17.5623%2013.0565%2017.8608%2013.5734%2018.0576%2014.0003C18.2562%2014.4309%2018.407%2014.8815%2018.3571%2015.3563C18.2855%2016.0374%2017.9283%2016.6562%2017.3742%2017.0588C16.988%2017.3394%2016.5223%2017.4341%2016.0501%2017.4774C15.582%2017.5204%2014.9851%2017.5204%2014.2588%2017.5203H5.74078C5.01454%2017.5204%204.41762%2017.5204%203.94949%2017.4774C3.4773%2017.4341%203.01164%2017.3394%202.62544%2017.0588C2.07134%2016.6562%201.71409%2016.0374%201.64249%2015.3563C1.59259%2014.8815%201.74341%2014.4309%201.94199%2014.0003C2.13886%2013.5734%202.43733%2013.0565%202.80046%2012.4275L7.0595%205.05064C7.42261%204.42169%207.72106%203.90474%207.99231%203.5208C8.26593%203.13353%208.58077%202.77761%209.01687%202.58344ZM9.99995%206.74951C10.4142%206.74951%2010.7499%207.0853%2010.7499%207.49951V10.8328C10.7499%2011.2471%2010.4142%2011.5828%209.99995%2011.5828C9.58574%2011.5828%209.24995%2011.2471%209.24995%2010.8328V7.49951C9.24995%207.0853%209.58574%206.74951%209.99995%206.74951ZM10.8332%2013.7495C10.8332%2014.2097%2010.4601%2014.5828%209.99985%2014.5828C9.53961%2014.5828%209.16652%2014.2097%209.16652%2013.7495C9.16652%2013.2893%209.53961%2012.9162%209.99985%2012.9162C10.4601%2012.9162%2010.8332%2013.2893%2010.8332%2013.7495Z'%20fill='%23FF334B'/%3e%3c/svg%3e", po = "_designContainer_1kal7_1", fo = "_toast_1kal7_11", ho = "_toastEnter_1kal7_1", go = "_basic_1kal7_32", xo = "_positive_1kal7_36", yo = "_negative_1kal7_40", bo = "_content_1kal7_44", Co = "_iconSlot_1kal7_55", vo = "_message_1kal7_64", $o = "_icon_1kal7_55", No = "_toastExit_1kal7_89", R = {
924
- designContainer: po,
925
- toast: fo,
926
- toastEnter: ho,
927
- basic: go,
928
- positive: xo,
929
- negative: yo,
930
- content: bo,
931
- iconSlot: Co,
932
- message: vo,
933
- icon: $o,
934
- toastExit: No
935
- }, wo = 3e3, ko = 180;
936
- let V = null, Q = null, v = null, Bo = 0, ne = null, te = null;
937
- function fe() {
938
- ne !== null && (window.clearTimeout(ne), ne = null);
974
+ const gs = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M1.74995%2010C1.74995%205.44365%205.44359%201.75%209.99992%201.75C14.5562%201.75%2018.2499%205.44365%2018.2499%2010C18.2499%2014.5563%2014.5562%2018.25%209.99992%2018.25C5.44359%2018.25%201.74995%2014.5563%201.74995%2010ZM13.8722%208.22987C14.1602%207.93224%2014.1525%207.45743%2013.8549%207.16935C13.5572%206.88127%2013.0824%206.88901%2012.7944%207.18664L8.89773%2011.2124L7.20623%209.4601C6.91856%209.16208%206.44376%209.15369%206.14574%209.44137C5.84772%209.72904%205.83933%2010.2038%206.12701%2010.5019L8.35739%2012.8125C8.4986%2012.9588%208.69316%2013.0414%208.89649%2013.0416C9.09982%2013.0417%209.29449%2012.9593%209.4359%2012.8132L13.8722%208.22987Z'%20fill='%2300CC89'/%3e%3c/svg%3e", Cs = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M9.01687%202.58344C9.64256%202.30487%2010.3571%202.30487%2010.9828%202.58344C11.4189%202.77761%2011.7337%203.13353%2012.0073%203.52081C12.2786%203.90474%2012.577%204.42169%2012.9401%205.05063L17.1992%2012.4276C17.5623%2013.0565%2017.8608%2013.5734%2018.0576%2014.0003C18.2562%2014.4309%2018.407%2014.8815%2018.3571%2015.3563C18.2855%2016.0374%2017.9283%2016.6562%2017.3742%2017.0588C16.988%2017.3394%2016.5223%2017.4341%2016.0501%2017.4774C15.582%2017.5204%2014.9851%2017.5204%2014.2588%2017.5203H5.74078C5.01454%2017.5204%204.41762%2017.5204%203.94949%2017.4774C3.4773%2017.4341%203.01164%2017.3394%202.62544%2017.0588C2.07134%2016.6562%201.71409%2016.0374%201.64249%2015.3563C1.59259%2014.8815%201.74341%2014.4309%201.94199%2014.0003C2.13886%2013.5734%202.43733%2013.0565%202.80046%2012.4275L7.0595%205.05064C7.42261%204.42169%207.72106%203.90474%207.99231%203.5208C8.26593%203.13353%208.58077%202.77761%209.01687%202.58344ZM9.99995%206.74951C10.4142%206.74951%2010.7499%207.0853%2010.7499%207.49951V10.8328C10.7499%2011.2471%2010.4142%2011.5828%209.99995%2011.5828C9.58574%2011.5828%209.24995%2011.2471%209.24995%2010.8328V7.49951C9.24995%207.0853%209.58574%206.74951%209.99995%206.74951ZM10.8332%2013.7495C10.8332%2014.2097%2010.4601%2014.5828%209.99985%2014.5828C9.53961%2014.5828%209.16652%2014.2097%209.16652%2013.7495C9.16652%2013.2893%209.53961%2012.9162%209.99985%2012.9162C10.4601%2012.9162%2010.8332%2013.2893%2010.8332%2013.7495Z'%20fill='%23FF334B'/%3e%3c/svg%3e", xs = "_designContainer_1kal7_1", bs = "_toast_1kal7_11", ys = "_toastEnter_1kal7_1", vs = "_basic_1kal7_32", ws = "_positive_1kal7_36", $s = "_negative_1kal7_40", ks = "_content_1kal7_44", Ns = "_iconSlot_1kal7_55", Bs = "_message_1kal7_64", Es = "_icon_1kal7_55", Ss = "_toastExit_1kal7_89", M = {
975
+ designContainer: xs,
976
+ toast: bs,
977
+ toastEnter: ys,
978
+ basic: vs,
979
+ positive: ws,
980
+ negative: $s,
981
+ content: ks,
982
+ iconSlot: Ns,
983
+ message: Bs,
984
+ icon: Es,
985
+ toastExit: Ss
986
+ }, Is = 3e3, js = 180;
987
+ let X = null, te = null, $ = null, Ts = 0, oe = null, ie = null;
988
+ function $e() {
989
+ oe !== null && (window.clearTimeout(oe), oe = null);
939
990
  }
940
- function he() {
941
- te !== null && (window.clearTimeout(te), te = null);
991
+ function ke() {
992
+ ie !== null && (window.clearTimeout(ie), ie = null);
942
993
  }
943
- function ie() {
944
- if (!V)
994
+ function re() {
995
+ if (!X)
945
996
  return;
946
- if (!v) {
947
- V.render(null);
997
+ if (!$) {
998
+ X.render(null);
948
999
  return;
949
1000
  }
950
- const e = v.variant === "positive" ? /* @__PURE__ */ n("img", { src: _o, className: R.icon, alt: "", "aria-hidden": "true" }) : v.variant === "negative" ? /* @__PURE__ */ n("img", { src: mo, className: R.icon, alt: "", "aria-hidden": "true" }) : null, o = v.icon !== void 0 ? v.icon : e;
951
- V.render(
952
- /* @__PURE__ */ n("div", { className: R.designContainer, children: /* @__PURE__ */ n(
1001
+ const e = $.variant === "positive" ? /* @__PURE__ */ n("img", { src: gs, className: M.icon, alt: "", "aria-hidden": "true" }) : $.variant === "negative" ? /* @__PURE__ */ n("img", { src: Cs, className: M.icon, alt: "", "aria-hidden": "true" }) : null, t = $.icon !== void 0 ? $.icon : e;
1002
+ X.render(
1003
+ /* @__PURE__ */ n("div", { className: M.designContainer, children: /* @__PURE__ */ n(
953
1004
  "div",
954
1005
  {
955
1006
  className: [
956
- R.toast,
957
- R[v.variant],
958
- v.isExiting ? R.toastExit : ""
1007
+ M.toast,
1008
+ M[$.variant],
1009
+ $.isExiting ? M.toastExit : ""
959
1010
  ].filter(Boolean).join(" "),
960
- style: v.customStyle,
961
- children: /* @__PURE__ */ k("span", { className: R.content, children: [
962
- o ? /* @__PURE__ */ n("span", { className: R.iconSlot, children: o }) : null,
963
- /* @__PURE__ */ n("span", { className: R.message, children: v.message })
1011
+ style: $.customStyle,
1012
+ children: /* @__PURE__ */ v("span", { className: M.content, children: [
1013
+ t ? /* @__PURE__ */ n("span", { className: M.iconSlot, children: t }) : null,
1014
+ /* @__PURE__ */ n("span", { className: M.message, children: $.message })
964
1015
  ] })
965
1016
  },
966
- v.renderKey
1017
+ $.renderKey
967
1018
  ) })
968
1019
  );
969
1020
  }
970
- function we() {
971
- !v || v.isExiting || (fe(), he(), v = {
972
- ...v,
1021
+ function qe() {
1022
+ !$ || $.isExiting || ($e(), ke(), $ = {
1023
+ ...$,
973
1024
  isExiting: !0
974
- }, ie(), te = window.setTimeout(() => {
975
- v = null, ie(), he();
976
- }, ko));
1025
+ }, re(), ie = window.setTimeout(() => {
1026
+ $ = null, re(), ke();
1027
+ }, js));
977
1028
  }
978
- function Eo() {
979
- fe(), he(), ne = window.setTimeout(() => {
980
- we(), fe();
981
- }, wo);
1029
+ function Ms() {
1030
+ $e(), ke(), oe = window.setTimeout(() => {
1031
+ qe(), $e();
1032
+ }, Is);
982
1033
  }
983
- function So() {
984
- return typeof window > "u" || typeof document > "u" ? !1 : (V || (Q = document.createElement("div"), Q.setAttribute("data-idb-toast-root", "true"), document.body.appendChild(Q), V = $e.createRoot(Q), ie()), !0);
1034
+ function Ls() {
1035
+ return typeof window > "u" || typeof document > "u" ? !1 : (X || (te = document.createElement("div"), te.setAttribute("data-idb-toast-root", "true"), document.body.appendChild(te), X = Ae.createRoot(te), re()), !0);
985
1036
  }
986
- function ss({ message: e, variant: o = "basic", customStyle: t, icon: i }) {
987
- e != null && So() && (v = {
1037
+ function Vo({ message: e, variant: t = "basic", customStyle: s, icon: o }) {
1038
+ e != null && Ls() && ($ = {
988
1039
  message: e,
989
- variant: o,
990
- customStyle: t,
991
- icon: i,
1040
+ variant: t,
1041
+ customStyle: s,
1042
+ icon: o,
992
1043
  isExiting: !1,
993
- renderKey: Bo++
994
- }, ie(), Eo());
1044
+ renderKey: Ts++
1045
+ }, re(), Ms());
995
1046
  }
996
- function is() {
997
- we();
1047
+ function Ko() {
1048
+ qe();
998
1049
  }
999
- const To = "_button_16957_1", Io = "_content_16957_18", Ao = "_fixed_16957_36", Mo = "_fixedContent_16957_42", Ro = "_node_16957_52", Do = "_text_16957_58", qo = "_large_16957_68", Lo = "_medium_16957_69", Fo = "_small_16957_70", Ho = "_xsmall_16957_74", Oo = "_flexible_16957_79", Wo = "_primary_16957_97", jo = "_assistive_16957_98", Po = "_error_16957_99", Ko = "_loading_16957_100", Vo = "_spinnerWrapper_16957_171", I = {
1000
- button: To,
1001
- content: Io,
1002
- fixed: Ao,
1003
- fixedContent: Mo,
1004
- node: Ro,
1005
- text: Do,
1006
- large: qo,
1007
- medium: Lo,
1008
- small: Fo,
1009
- xsmall: Ho,
1010
- flexible: Oo,
1011
- primary: Wo,
1012
- assistive: jo,
1013
- error: Po,
1014
- loading: Ko,
1015
- spinnerWrapper: Vo,
1050
+ const Rs = "_button_16957_1", As = "_content_16957_18", Ds = "_fixed_16957_36", qs = "_fixedContent_16957_42", Hs = "_node_16957_52", Fs = "_text_16957_58", Ws = "_large_16957_68", Os = "_medium_16957_69", Ps = "_small_16957_70", zs = "_xsmall_16957_74", Vs = "_flexible_16957_79", Ks = "_primary_16957_97", Zs = "_assistive_16957_98", Us = "_error_16957_99", Ys = "_loading_16957_100", Xs = "_spinnerWrapper_16957_171", I = {
1051
+ button: Rs,
1052
+ content: As,
1053
+ fixed: Ds,
1054
+ fixedContent: qs,
1055
+ node: Hs,
1056
+ text: Fs,
1057
+ large: Ws,
1058
+ medium: Os,
1059
+ small: Ps,
1060
+ xsmall: zs,
1061
+ flexible: Vs,
1062
+ primary: Ks,
1063
+ assistive: Zs,
1064
+ error: Us,
1065
+ loading: Ys,
1066
+ spinnerWrapper: Xs,
1016
1067
  "spinner-primary": "_spinner-primary_16957_178",
1017
1068
  "spinner-error": "_spinner-error_16957_182",
1018
1069
  "spinner-assistive": "_spinner-assistive_16957_183"
1019
1070
  };
1020
- function ls({
1071
+ function Zo({
1021
1072
  widthType: e = "flexible",
1022
- variant: o = "primary",
1023
- size: t = "medium",
1024
- disabled: i = !1,
1025
- loading: l = !1,
1026
- keepFocusOnClick: c = !1,
1027
- customStyle: u = {},
1028
- onClick: r,
1029
- className: a,
1073
+ variant: t = "primary",
1074
+ size: s = "medium",
1075
+ disabled: o = !1,
1076
+ loading: i = !1,
1077
+ keepFocusOnClick: u = !1,
1078
+ customStyle: c = {},
1079
+ onClick: a,
1080
+ className: l,
1030
1081
  children: _,
1031
- type: p = "button",
1082
+ type: m = "button",
1032
1083
  ...d
1033
1084
  }) {
1034
- const h = [
1085
+ const g = [
1035
1086
  I.button,
1036
1087
  I[e],
1037
- I[o],
1038
1088
  I[t],
1039
- l ? I.loading : "",
1040
- a ?? ""
1041
- ].filter(Boolean).join(" "), b = [I.spinnerWrapper, I[`spinner-${o}`]].filter(Boolean).join(" "), x = [I.content, e === "fixed" ? I.fixedContent : ""].filter(Boolean).join(" "), N = e === "fixed" ? le.map(_, (s) => {
1042
- const y = typeof s == "string" || typeof s == "number" ? I.text : I.node;
1043
- return /* @__PURE__ */ n("span", { className: y, children: s });
1044
- }) : _, C = q(() => ({
1089
+ I[s],
1090
+ i ? I.loading : "",
1091
+ l ?? ""
1092
+ ].filter(Boolean).join(" "), h = [I.spinnerWrapper, I[`spinner-${t}`]].filter(Boolean).join(" "), C = [I.content, e === "fixed" ? I.fixedContent : ""].filter(Boolean).join(" "), N = e === "fixed" ? ae.map(_, (r) => {
1093
+ const x = typeof r == "string" || typeof r == "number" ? I.text : I.node;
1094
+ return /* @__PURE__ */ n("span", { className: x, children: r });
1095
+ }) : _, w = q(() => ({
1045
1096
  large: 24,
1046
1097
  medium: 24,
1047
1098
  small: 24,
1048
1099
  xsmall: 16
1049
- })[t], [t]);
1100
+ })[s], [s]);
1050
1101
  return /* @__PURE__ */ n(
1051
1102
  "button",
1052
1103
  {
1053
1104
  "data-idb-component": !0,
1054
- type: p,
1055
- className: h,
1056
- onClick: l ? void 0 : (s) => {
1057
- r?.(s), !c && !s.defaultPrevented && s.currentTarget.blur();
1105
+ type: m,
1106
+ className: g,
1107
+ onClick: i ? void 0 : (r) => {
1108
+ a?.(r), !u && !r.defaultPrevented && r.currentTarget.blur();
1058
1109
  },
1059
- disabled: i,
1060
- style: u,
1110
+ disabled: o,
1111
+ style: c,
1061
1112
  ...d,
1062
- children: l ? /* @__PURE__ */ n("span", { className: b, children: /* @__PURE__ */ n(Z, { size: C, color: "currentColor" }) }) : /* @__PURE__ */ n("span", { className: x, children: N })
1113
+ children: i ? /* @__PURE__ */ n("span", { className: h, children: /* @__PURE__ */ n(Q, { size: w, color: "currentColor" }) }) : /* @__PURE__ */ n("span", { className: C, children: N })
1063
1114
  }
1064
1115
  );
1065
1116
  }
1117
+ const Gs = "data:image/svg+xml,%3csvg%20width='12'%20height='9'%20viewBox='0%200%2012%209'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.2773%200.197703C11.5409%200.461307%2011.5409%200.888693%2011.2773%201.1523L4.52728%207.9023C4.26368%208.1659%203.83629%208.1659%203.57269%207.9023L0.197702%204.5273C-0.0659007%204.26369%20-0.0659007%203.83631%200.197702%203.5727C0.461305%203.3091%200.88869%203.3091%201.15229%203.5727L4.04998%206.47041L10.3227%200.197703C10.5863%20-0.065901%2011.0136%20-0.065901%2011.2773%200.197703Z'%20fill='white'/%3e%3c/svg%3e", Js = "data:image/svg+xml,%3csvg%20width='11'%20height='8'%20viewBox='0%200%2011%208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.0242%200.175736C10.2585%200.410051%2010.2585%200.78995%2010.0242%201.02426L4.02425%207.02426C3.78993%207.25858%203.41004%207.25858%203.17572%207.02426L0.175735%204.02426C-0.0585784%203.78995%20-0.0585784%203.41005%200.175735%203.17574C0.410049%202.94142%200.789946%202.94142%201.02426%203.17574L3.59999%205.75147L9.1757%200.175736C9.41001%20-0.0585787%209.78991%20-0.0585787%2010.0242%200.175736Z'%20fill='white'/%3e%3c/svg%3e", Qs = "data:image/svg+xml,%3csvg%20width='11'%20height='2'%20viewBox='0%200%2011%202'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M0%200.675C0%200.302208%200.302208%200%200.675%200H9.675C10.0478%200%2010.35%200.302208%2010.35%200.675C10.35%201.04779%2010.0478%201.35%209.675%201.35H0.675C0.302208%201.35%200%201.04779%200%200.675Z'%20fill='white'/%3e%3c/svg%3e", eo = "_wrapper_zleo7_1", no = "_disabled_zleo7_9", to = "_input_zleo7_13", so = "_box_zleo7_22", oo = "_checkIcon_zleo7_36", io = "_dashIcon_zleo7_41", lo = "_medium_zleo7_48", ro = "_small_zleo7_53", ao = "_compact_zleo7_68", co = "_active_zleo7_80", _o = "_primary_zleo7_87", uo = "_assistive_zleo7_92", T = {
1118
+ wrapper: eo,
1119
+ disabled: no,
1120
+ input: to,
1121
+ box: so,
1122
+ checkIcon: oo,
1123
+ dashIcon: io,
1124
+ medium: lo,
1125
+ small: ro,
1126
+ compact: ao,
1127
+ active: co,
1128
+ primary: _o,
1129
+ assistive: uo
1130
+ };
1131
+ function Uo({
1132
+ variant: e = "primary",
1133
+ size: t = "medium",
1134
+ density: s = "default",
1135
+ disabled: o = !1,
1136
+ customStyle: i = {},
1137
+ className: u,
1138
+ checked: c = !1,
1139
+ indeterminate: a = !1,
1140
+ onChange: l,
1141
+ ..._
1142
+ }) {
1143
+ const m = Le(null);
1144
+ Re(() => {
1145
+ m.current && (m.current.indeterminate = a);
1146
+ }, [a]);
1147
+ const d = (C) => {
1148
+ l?.(C.target.checked);
1149
+ }, g = t === "small" ? Js : Gs, h = [
1150
+ T.wrapper,
1151
+ T[e],
1152
+ T[t],
1153
+ T[s],
1154
+ c ? T.active : "",
1155
+ o ? T.disabled : "",
1156
+ u ?? ""
1157
+ ].filter(Boolean).join(" ");
1158
+ return /* @__PURE__ */ v("label", { "data-idb-component": !0, className: h, style: i, children: [
1159
+ /* @__PURE__ */ n(
1160
+ "input",
1161
+ {
1162
+ ref: m,
1163
+ type: "checkbox",
1164
+ className: T.input,
1165
+ checked: c,
1166
+ disabled: o,
1167
+ onChange: d,
1168
+ ..._
1169
+ }
1170
+ ),
1171
+ /* @__PURE__ */ v("span", { className: T.box, children: [
1172
+ c && a && /* @__PURE__ */ n(
1173
+ "img",
1174
+ {
1175
+ src: Qs,
1176
+ className: T.dashIcon,
1177
+ alt: "",
1178
+ "aria-hidden": "true"
1179
+ }
1180
+ ),
1181
+ c && !a && /* @__PURE__ */ n(
1182
+ "img",
1183
+ {
1184
+ src: g,
1185
+ className: T.checkIcon,
1186
+ alt: "",
1187
+ "aria-hidden": "true"
1188
+ }
1189
+ )
1190
+ ] })
1191
+ ] });
1192
+ }
1193
+ const mo = "_wrapper_kav3p_1", po = "_disabled_kav3p_9", fo = "_input_kav3p_14", ho = "_circle_kav3p_23", go = "_medium_kav3p_40", Co = "_small_kav3p_45", xo = "_compact_kav3p_60", bo = "_checked_kav3p_82", yo = "_primary_kav3p_82", vo = "_assistive_kav3p_87", L = {
1194
+ wrapper: mo,
1195
+ disabled: po,
1196
+ input: fo,
1197
+ circle: ho,
1198
+ medium: go,
1199
+ small: Co,
1200
+ compact: xo,
1201
+ checked: bo,
1202
+ primary: yo,
1203
+ assistive: vo
1204
+ };
1205
+ function Yo({
1206
+ variant: e = "primary",
1207
+ size: t = "medium",
1208
+ density: s = "default",
1209
+ disabled: o = !1,
1210
+ checked: i = !1,
1211
+ customStyle: u = {},
1212
+ className: c,
1213
+ onChange: a,
1214
+ ...l
1215
+ }) {
1216
+ const _ = (d) => {
1217
+ a?.(d.target.checked);
1218
+ }, m = [
1219
+ L.wrapper,
1220
+ L[e],
1221
+ L[t],
1222
+ L[s],
1223
+ i ? L.checked : L.unchecked,
1224
+ o ? L.disabled : "",
1225
+ c ?? ""
1226
+ ].filter(Boolean).join(" ");
1227
+ return /* @__PURE__ */ v("label", { "data-idb-component": !0, className: m, style: u, children: [
1228
+ /* @__PURE__ */ n(
1229
+ "input",
1230
+ {
1231
+ type: "radio",
1232
+ className: L.input,
1233
+ checked: i,
1234
+ disabled: o,
1235
+ onChange: _,
1236
+ ...l
1237
+ }
1238
+ ),
1239
+ /* @__PURE__ */ n("span", { className: L.circle })
1240
+ ] });
1241
+ }
1242
+ const wo = "_wrapper_tycam_1", $o = "_disabled_tycam_8", ko = "_input_tycam_13", No = "_track_tycam_22", Bo = "_thumb_tycam_31", Eo = "_small_tycam_41", So = "_medium_tycam_52", Io = "_large_tycam_63", jo = "_off_tycam_76", To = "_on_tycam_82", A = {
1243
+ wrapper: wo,
1244
+ disabled: $o,
1245
+ input: ko,
1246
+ track: No,
1247
+ thumb: Bo,
1248
+ small: Eo,
1249
+ medium: So,
1250
+ large: Io,
1251
+ off: jo,
1252
+ on: To
1253
+ };
1254
+ function Xo({
1255
+ size: e = "medium",
1256
+ active: t = !1,
1257
+ disabled: s = !1,
1258
+ customStyle: o = {},
1259
+ className: i,
1260
+ onChange: u,
1261
+ ...c
1262
+ }) {
1263
+ const a = (_) => {
1264
+ u?.(_.target.checked);
1265
+ }, l = [
1266
+ A.wrapper,
1267
+ A[e],
1268
+ t ? A.on : A.off,
1269
+ s ? A.disabled : "",
1270
+ i ?? ""
1271
+ ].filter(Boolean).join(" ");
1272
+ return /* @__PURE__ */ v("label", { "data-idb-component": !0, className: l, style: o, children: [
1273
+ /* @__PURE__ */ n(
1274
+ "input",
1275
+ {
1276
+ type: "checkbox",
1277
+ className: A.input,
1278
+ checked: t,
1279
+ disabled: s,
1280
+ onChange: a,
1281
+ ...c
1282
+ }
1283
+ ),
1284
+ /* @__PURE__ */ n("span", { className: A.track, children: /* @__PURE__ */ n("span", { className: A.thumb }) })
1285
+ ] });
1286
+ }
1066
1287
  export {
1067
- He as BasicIconButton,
1068
- Z as Clip,
1069
- Ue as CustomSpinner,
1070
- Xo as FadeSpinner,
1071
- Go as FillButton,
1072
- Jo as FillIconButton,
1073
- Xn as Input,
1074
- Qo as OutlineButton,
1075
- es as OutlineIconButton,
1076
- ns as PushBadge,
1077
- ts as SearchBar,
1078
- Yo as Spinner,
1079
- Ft as TextButton,
1080
- ls as WeakButton,
1081
- uo as dismissSnackbar,
1082
- is as dismissToast,
1083
- os as showSnackbar,
1084
- ss as showToast
1288
+ ye as BasicIconButton,
1289
+ Uo as CheckBox,
1290
+ Q as Clip,
1291
+ Ye as CustomSpinner,
1292
+ Do as FadeSpinner,
1293
+ qo as FillButton,
1294
+ Ho as FillIconButton,
1295
+ Gn as Input,
1296
+ Fo as OutlineButton,
1297
+ Wo as OutlineIconButton,
1298
+ Oo as PushBadge,
1299
+ Yo as Radio,
1300
+ Po as SearchBar,
1301
+ Ao as Spinner,
1302
+ zt as TextButton,
1303
+ Xo as ToggleSwitch,
1304
+ Zo as WeakButton,
1305
+ hs as dismissSnackbar,
1306
+ Ko as dismissToast,
1307
+ zo as showSnackbar,
1308
+ Vo as showToast
1085
1309
  };