ddingdong-design-system 0.3.5 → 0.3.7

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.
@@ -194,9 +194,9 @@ const ce = "-", Xe = (e) => {
194
194
  if (s.includes(L))
195
195
  continue;
196
196
  s.push(L);
197
- const P = n(x, k);
198
- for (let j = 0; j < P.length; ++j) {
199
- const _ = P[j];
197
+ const G = n(x, k);
198
+ for (let j = 0; j < G.length; ++j) {
199
+ const _ = G[j];
200
200
  s.push(f + _);
201
201
  }
202
202
  i = u + (i.length > 0 ? " " + i : i);
@@ -237,7 +237,7 @@ function ct(e, ...r) {
237
237
  const b = (e) => {
238
238
  const r = (t) => t[e] || [];
239
239
  return r.isThemeGetter = !0, r;
240
- }, je = /^\[(?:([a-z-]+):)?(.+)\]$/i, dt = /^\d+\/\d+$/, ut = /* @__PURE__ */ new Set(["px", "full", "screen"]), pt = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, gt = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, mt = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, ht = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, ft = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, S = (e) => R(e) || ut.has(e) || dt.test(e), z = (e) => V(e, "length", Nt), R = (e) => !!e && !Number.isNaN(Number(e)), ne = (e) => V(e, "number", R), W = (e) => !!e && Number.isInteger(Number(e)), bt = (e) => e.endsWith("%") && R(e.slice(0, -1)), p = (e) => je.test(e), A = (e) => pt.test(e), wt = /* @__PURE__ */ new Set(["length", "size", "percentage"]), xt = (e) => V(e, wt, Be), yt = (e) => V(e, "position", Be), vt = /* @__PURE__ */ new Set(["image", "url"]), Ct = (e) => V(e, vt, Et), kt = (e) => V(e, "", Lt), F = () => !0, V = (e, r, t) => {
240
+ }, je = /^\[(?:([a-z-]+):)?(.+)\]$/i, dt = /^\d+\/\d+$/, ut = /* @__PURE__ */ new Set(["px", "full", "screen"]), pt = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, gt = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, mt = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, ht = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, ft = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, S = (e) => R(e) || ut.has(e) || dt.test(e), z = (e) => V(e, "length", Nt), R = (e) => !!e && !Number.isNaN(Number(e)), ne = (e) => V(e, "number", R), F = (e) => !!e && Number.isInteger(Number(e)), bt = (e) => e.endsWith("%") && R(e.slice(0, -1)), p = (e) => je.test(e), A = (e) => pt.test(e), wt = /* @__PURE__ */ new Set(["length", "size", "percentage"]), xt = (e) => V(e, wt, Be), yt = (e) => V(e, "position", Be), vt = /* @__PURE__ */ new Set(["image", "url"]), Ct = (e) => V(e, vt, Et), kt = (e) => V(e, "", Lt), H = () => !0, V = (e, r, t) => {
241
241
  const o = je.exec(e);
242
242
  return o ? o[1] ? typeof r == "string" ? o[1] === r : r.has(o[1]) : t(o[2]) : !1;
243
243
  }, Nt = (e) => (
@@ -246,12 +246,12 @@ const b = (e) => {
246
246
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
247
247
  gt.test(e) && !mt.test(e)
248
248
  ), Be = () => !1, Lt = (e) => ht.test(e), Et = (e) => ft.test(e), Mt = () => {
249
- const e = b("colors"), r = b("spacing"), t = b("blur"), o = b("brightness"), n = b("borderColor"), s = b("borderRadius"), a = b("borderSpacing"), i = b("borderWidth"), d = b("contrast"), u = b("grayscale"), m = b("hueRotate"), h = b("invert"), v = b("gap"), N = b("gradientColorStops"), k = b("gradientColorStopPositions"), x = b("inset"), g = b("margin"), f = b("opacity"), L = b("padding"), P = b("saturate"), j = b("scale"), _ = b("sepia"), me = b("skew"), he = b("space"), fe = b("translate"), ee = () => ["auto", "contain", "none"], te = () => ["auto", "hidden", "clip", "visible", "scroll"], re = () => ["auto", p, r], w = () => [p, r], be = () => ["", S, z], $ = () => ["auto", R, p], we = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], Z = () => ["solid", "dashed", "dotted", "double", "none"], xe = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], oe = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], G = () => ["", "0", p], ye = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], I = () => [R, p];
249
+ const e = b("colors"), r = b("spacing"), t = b("blur"), o = b("brightness"), n = b("borderColor"), s = b("borderRadius"), a = b("borderSpacing"), i = b("borderWidth"), d = b("contrast"), u = b("grayscale"), m = b("hueRotate"), h = b("invert"), v = b("gap"), N = b("gradientColorStops"), k = b("gradientColorStopPositions"), x = b("inset"), g = b("margin"), f = b("opacity"), L = b("padding"), G = b("saturate"), j = b("scale"), _ = b("sepia"), me = b("skew"), he = b("space"), fe = b("translate"), ee = () => ["auto", "contain", "none"], te = () => ["auto", "hidden", "clip", "visible", "scroll"], re = () => ["auto", p, r], w = () => [p, r], be = () => ["", S, z], $ = () => ["auto", R, p], we = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], Z = () => ["solid", "dashed", "dotted", "double", "none"], xe = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], oe = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], W = () => ["", "0", p], ye = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], I = () => [R, p];
250
250
  return {
251
251
  cacheSize: 500,
252
252
  separator: ":",
253
253
  theme: {
254
- colors: [F],
254
+ colors: [H],
255
255
  spacing: [S, z],
256
256
  blur: ["none", "", A, p],
257
257
  brightness: I(),
@@ -260,9 +260,9 @@ const b = (e) => {
260
260
  borderSpacing: w(),
261
261
  borderWidth: be(),
262
262
  contrast: I(),
263
- grayscale: G(),
263
+ grayscale: W(),
264
264
  hueRotate: I(),
265
- invert: G(),
265
+ invert: W(),
266
266
  gap: w(),
267
267
  gradientColorStops: [e],
268
268
  gradientColorStopPositions: [bt, z],
@@ -272,7 +272,7 @@ const b = (e) => {
272
272
  padding: w(),
273
273
  saturate: I(),
274
274
  scale: I(),
275
- sepia: G(),
275
+ sepia: W(),
276
276
  skew: I(),
277
277
  space: w(),
278
278
  translate: w()
@@ -491,7 +491,7 @@ const b = (e) => {
491
491
  * @see https://tailwindcss.com/docs/z-index
492
492
  */
493
493
  z: [{
494
- z: ["auto", W, p]
494
+ z: ["auto", F, p]
495
495
  }],
496
496
  // Flexbox and Grid
497
497
  /**
@@ -527,28 +527,28 @@ const b = (e) => {
527
527
  * @see https://tailwindcss.com/docs/flex-grow
528
528
  */
529
529
  grow: [{
530
- grow: G()
530
+ grow: W()
531
531
  }],
532
532
  /**
533
533
  * Flex Shrink
534
534
  * @see https://tailwindcss.com/docs/flex-shrink
535
535
  */
536
536
  shrink: [{
537
- shrink: G()
537
+ shrink: W()
538
538
  }],
539
539
  /**
540
540
  * Order
541
541
  * @see https://tailwindcss.com/docs/order
542
542
  */
543
543
  order: [{
544
- order: ["first", "last", "none", W, p]
544
+ order: ["first", "last", "none", F, p]
545
545
  }],
546
546
  /**
547
547
  * Grid Template Columns
548
548
  * @see https://tailwindcss.com/docs/grid-template-columns
549
549
  */
550
550
  "grid-cols": [{
551
- "grid-cols": [F]
551
+ "grid-cols": [H]
552
552
  }],
553
553
  /**
554
554
  * Grid Column Start / End
@@ -556,7 +556,7 @@ const b = (e) => {
556
556
  */
557
557
  "col-start-end": [{
558
558
  col: ["auto", {
559
- span: ["full", W, p]
559
+ span: ["full", F, p]
560
560
  }, p]
561
561
  }],
562
562
  /**
@@ -578,7 +578,7 @@ const b = (e) => {
578
578
  * @see https://tailwindcss.com/docs/grid-template-rows
579
579
  */
580
580
  "grid-rows": [{
581
- "grid-rows": [F]
581
+ "grid-rows": [H]
582
582
  }],
583
583
  /**
584
584
  * Grid Row Start / End
@@ -586,7 +586,7 @@ const b = (e) => {
586
586
  */
587
587
  "row-start-end": [{
588
588
  row: ["auto", {
589
- span: [W, p]
589
+ span: [F, p]
590
590
  }, p]
591
591
  }],
592
592
  /**
@@ -941,7 +941,7 @@ const b = (e) => {
941
941
  * @see https://tailwindcss.com/docs/font-family
942
942
  */
943
943
  "font-family": [{
944
- font: [F]
944
+ font: [H]
945
945
  }],
946
946
  /**
947
947
  * Font Variant Numeric
@@ -1626,7 +1626,7 @@ const b = (e) => {
1626
1626
  * @see https://tailwindcss.com/docs/box-shadow-color
1627
1627
  */
1628
1628
  "shadow-color": [{
1629
- shadow: [F]
1629
+ shadow: [H]
1630
1630
  }],
1631
1631
  /**
1632
1632
  * Opacity
@@ -1712,7 +1712,7 @@ const b = (e) => {
1712
1712
  * @see https://tailwindcss.com/docs/saturate
1713
1713
  */
1714
1714
  saturate: [{
1715
- saturate: [P]
1715
+ saturate: [G]
1716
1716
  }],
1717
1717
  /**
1718
1718
  * Sepia
@@ -1783,7 +1783,7 @@ const b = (e) => {
1783
1783
  * @see https://tailwindcss.com/docs/backdrop-saturate
1784
1784
  */
1785
1785
  "backdrop-saturate": [{
1786
- "backdrop-saturate": [P]
1786
+ "backdrop-saturate": [G]
1787
1787
  }],
1788
1788
  /**
1789
1789
  * Backdrop Sepia
@@ -1905,7 +1905,7 @@ const b = (e) => {
1905
1905
  * @see https://tailwindcss.com/docs/rotate
1906
1906
  */
1907
1907
  rotate: [{
1908
- rotate: [W, p]
1908
+ rotate: [F, p]
1909
1909
  }],
1910
1910
  /**
1911
1911
  * Translate X
@@ -2339,12 +2339,12 @@ const b = (e) => {
2339
2339
  trash: Dt,
2340
2340
  write: Ut,
2341
2341
  loading: Ft
2342
- }, Mr = Object.keys(Ve);
2342
+ }, Er = Object.keys(Ve);
2343
2343
  function E({ name: e, color: r = "gray", size: t = 25, ...o }) {
2344
2344
  const n = Ve[e];
2345
2345
  return /* @__PURE__ */ l(n, { width: `${t}px`, height: `${t}px`, style: { color: Re[r] }, ...o });
2346
2346
  }
2347
- function Ir({
2347
+ function Mr({
2348
2348
  type: e = "single",
2349
2349
  className: r = "",
2350
2350
  children: t,
@@ -2370,7 +2370,7 @@ const U = {
2370
2370
  opacity: { duration: 0.1 }
2371
2371
  }
2372
2372
  }, qt = (e) => ["INPUT", "TEXTAREA", "A"].includes(e.tagName);
2373
- function Sr({
2373
+ function Ir({
2374
2374
  trigger: e,
2375
2375
  isArrow: r = !0,
2376
2376
  value: t,
@@ -2433,7 +2433,7 @@ const Jt = {
2433
2433
  lg: { class: "size-18", width: 72, height: 72 },
2434
2434
  xl: { class: "size-20", width: 80, height: 80 }
2435
2435
  };
2436
- function zr({ size: e = "lg", src: r, alt: t, className: o, ...n }) {
2436
+ function Sr({ size: e = "lg", src: r, alt: t, className: o, ...n }) {
2437
2437
  const { class: s, width: a, height: i } = Jt[e];
2438
2438
  return /* @__PURE__ */ l(
2439
2439
  "img",
@@ -2453,7 +2453,7 @@ const Kt = {
2453
2453
  negative: "bg-red-100 text-red-300",
2454
2454
  neutral: "bg-gray-100 text-gray-400"
2455
2455
  };
2456
- function Ar({ variant: e = "neutral", text: r, ...t }) {
2456
+ function zr({ variant: e = "neutral", text: r, ...t }) {
2457
2457
  const o = Kt[e];
2458
2458
  return /* @__PURE__ */ l(
2459
2459
  "div",
@@ -2538,7 +2538,7 @@ const Le = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ee = Se, Q
2538
2538
  ]
2539
2539
  }
2540
2540
  );
2541
- function Tr({
2541
+ function Ar({
2542
2542
  children: e,
2543
2543
  variant: r,
2544
2544
  color: t,
@@ -2619,7 +2619,7 @@ const Pe = X(null), de = () => {
2619
2619
  handleMouseLeave: N
2620
2620
  };
2621
2621
  };
2622
- function jr({ className: e = "", children: r }) {
2622
+ function Tr({ className: e = "", children: r }) {
2623
2623
  const t = Yt();
2624
2624
  return /* @__PURE__ */ l(Pe.Provider, { value: t, children: /* @__PURE__ */ C(
2625
2625
  "div",
@@ -2637,7 +2637,7 @@ function jr({ className: e = "", children: r }) {
2637
2637
  }
2638
2638
  ) });
2639
2639
  }
2640
- function Br({ children: e, className: r = "" }) {
2640
+ function jr({ children: e, className: r = "" }) {
2641
2641
  const { scrollContainerRef: t } = de();
2642
2642
  return /* @__PURE__ */ l(
2643
2643
  "div",
@@ -2651,7 +2651,7 @@ function Br({ children: e, className: r = "" }) {
2651
2651
  }
2652
2652
  );
2653
2653
  }
2654
- function Or({ children: e, className: r = "" }) {
2654
+ function Br({ children: e, className: r = "" }) {
2655
2655
  return /* @__PURE__ */ l("div", { className: y("w-full min-w-full flex-shrink-0", r), children: e });
2656
2656
  }
2657
2657
  function Qt() {
@@ -2680,7 +2680,7 @@ function er() {
2680
2680
  }
2681
2681
  ) : null;
2682
2682
  }
2683
- function Rr({
2683
+ function Or({
2684
2684
  as: e,
2685
2685
  className: r,
2686
2686
  children: t,
@@ -2723,7 +2723,7 @@ const tr = {
2723
2723
  wrap: "flex-wrap",
2724
2724
  "wrap-reverse": "flex-wrap-reverse"
2725
2725
  };
2726
- function H({
2726
+ function P({
2727
2727
  as: e = "div",
2728
2728
  dir: r = "row",
2729
2729
  alignItems: t = "stretch",
@@ -2751,8 +2751,8 @@ function H({
2751
2751
  }
2752
2752
  );
2753
2753
  }
2754
- function Vr({ left: e, right: r }) {
2755
- return /* @__PURE__ */ C(H, { dir: "row", justifyContent: "between", alignItems: "center", className: "w-full gap-2 md:gap-4", children: [
2754
+ function Rr({ left: e, right: r }) {
2755
+ return /* @__PURE__ */ C(P, { dir: "row", justifyContent: "between", alignItems: "center", className: "w-full gap-2 md:gap-4", children: [
2756
2756
  /* @__PURE__ */ l("div", { className: "flex-1", children: e }),
2757
2757
  /* @__PURE__ */ l("div", { className: "flex-1", children: r })
2758
2758
  ] });
@@ -2771,7 +2771,7 @@ const se = {
2771
2771
  exit: { x: "100%" },
2772
2772
  transition: { type: "spring", damping: 30, stiffness: 260 }
2773
2773
  };
2774
- function Pr({ isOpen: e, onClose: r, children: t }) {
2774
+ function Vr({ isOpen: e, onClose: r, children: t }) {
2775
2775
  return /* @__PURE__ */ C(ue, { isOpen: e, children: [
2776
2776
  /* @__PURE__ */ l(
2777
2777
  T.div,
@@ -2840,8 +2840,8 @@ const B = (e) => {
2840
2840
  return /* @__PURE__ */ l(ir, { variant: e, ...t });
2841
2841
  }
2842
2842
  return r;
2843
- }, ar = B("Title1"), Gr = B("Title2"), lr = B("Title3"), Wr = B("Body1"), Fr = B("Body2"), cr = B("Body3"), Ge = B("Caption1");
2844
- function Hr({ id: e, mode: r, ...t }) {
2843
+ }, ar = B("Title1"), Pr = B("Title2"), lr = B("Title3"), Gr = B("Body1"), Wr = B("Body2"), cr = B("Body3"), Ge = B("Caption1");
2844
+ function Fr({ id: e, mode: r, ...t }) {
2845
2845
  const o = le(), n = e || o;
2846
2846
  return /* @__PURE__ */ C(
2847
2847
  "label",
@@ -2849,7 +2849,7 @@ function Hr({ id: e, mode: r, ...t }) {
2849
2849
  className: "focus-within:bg-primary-50 block w-full cursor-pointer rounded-xl border border-gray-200 bg-gray-50 px-4 py-3 transition-colors hover:bg-gray-100 md:py-3.5",
2850
2850
  htmlFor: n,
2851
2851
  children: [
2852
- /* @__PURE__ */ C(H, { alignItems: "center", children: [
2852
+ /* @__PURE__ */ C(P, { alignItems: "center", children: [
2853
2853
  /* @__PURE__ */ l(E, { name: "file", size: 25, color: "gray" }),
2854
2854
  /* @__PURE__ */ l(cr, { className: "text-gray-400", weight: "medium", children: t.placeholder || (r === "single" ? "파일을 업로드해주세요" : "파일 여러개를 선택해주세요") })
2855
2855
  ] }),
@@ -2893,13 +2893,13 @@ function ur({
2893
2893
  }
2894
2894
  );
2895
2895
  }
2896
- function _r({ value: e, onClickReset: r, ...t }) {
2897
- return /* @__PURE__ */ C(H, { gap: 8, alignItems: "center", className: "relative w-full", children: [
2896
+ function Hr({ value: e, onClickReset: r, ...t }) {
2897
+ return /* @__PURE__ */ C(P, { gap: 8, alignItems: "center", className: "relative w-full", children: [
2898
2898
  /* @__PURE__ */ l(
2899
2899
  "input",
2900
2900
  {
2901
2901
  value: e,
2902
- className: "w-full rounded-xl border-none bg-white px-4 py-3 outline-1 outline-gray-200 focus:ring-4 focus:ring-blue-200 focus:outline-blue-500 md:py-3.5",
2902
+ className: "w-full rounded-xl border-none bg-white px-4 py-3.5 outline-1 outline-gray-200 focus:ring-4 focus:ring-blue-200 focus:outline-blue-500",
2903
2903
  ...t
2904
2904
  }
2905
2905
  ),
@@ -2923,7 +2923,7 @@ const J = {
2923
2923
  exit: { opacity: 0 },
2924
2924
  transition: { duration: 0.3 }
2925
2925
  };
2926
- function $r({ isOpen: e, closeModal: r, children: t, className: o }) {
2926
+ function _r({ isOpen: e, closeModal: r, children: t, className: o }) {
2927
2927
  const n = (s) => {
2928
2928
  s.target instanceof HTMLElement && s.target === s.currentTarget && r && r();
2929
2929
  };
@@ -2944,7 +2944,7 @@ function $r({ isOpen: e, closeModal: r, children: t, className: o }) {
2944
2944
  }
2945
2945
  function pr({ children: e }) {
2946
2946
  return /* @__PURE__ */ l(
2947
- H,
2947
+ P,
2948
2948
  {
2949
2949
  role: "dialog",
2950
2950
  "aria-modal": "true",
@@ -2955,7 +2955,7 @@ function pr({ children: e }) {
2955
2955
  }
2956
2956
  );
2957
2957
  }
2958
- function Zr({ title: e, size: r, onClick: t }) {
2958
+ function $r({ title: e, size: r, onClick: t }) {
2959
2959
  return /* @__PURE__ */ l(
2960
2960
  "button",
2961
2961
  {
@@ -2998,7 +2998,7 @@ function mr({ page: e, isActive: r, onClick: t }) {
2998
2998
  }
2999
2999
  );
3000
3000
  }
3001
- function Dr({ currentPage: e, totalPages: r, onPageChange: t, className: o = "" }) {
3001
+ function Zr({ currentPage: e, totalPages: r, onPageChange: t, className: o = "" }) {
3002
3002
  const n = () => {
3003
3003
  e > 1 && t(e - 1);
3004
3004
  }, s = () => {
@@ -3039,12 +3039,12 @@ const We = X(null), Fe = () => {
3039
3039
  if (!e) throw new Error("error");
3040
3040
  return e;
3041
3041
  }, hr = Q(
3042
- "font-semibold text- cursor-pointer first:rounded-t-md last:rounded-b-md hover:bg-gray-50",
3042
+ "font-semibold text- cursor-pointer first:rounded-t-md last:rounded-b-md hover:bg-gray-100",
3043
3043
  {
3044
3044
  variants: {
3045
3045
  size: {
3046
3046
  md: "px-3 py-1 text-sm",
3047
- lg: "px-5 py-2 md:py-2.5"
3047
+ lg: "px-4 py-3.5"
3048
3048
  }
3049
3049
  },
3050
3050
  defaultVariants: {
@@ -3070,15 +3070,15 @@ function He({ name: e, size: r, className: t }) {
3070
3070
  );
3071
3071
  }
3072
3072
  function fr({ name: e }) {
3073
- return /* @__PURE__ */ l("div", { className: "border-b-2 border-gray-100 px-5 py-2 text-base text-gray-300 md:text-lg", children: e });
3073
+ return /* @__PURE__ */ l("div", { className: "border-b-2 border-gray-100 px-4 py-3.5 text-lg text-gray-300", children: e });
3074
3074
  }
3075
3075
  const br = Q(
3076
- "absolute top-full left-0 z-50 mt-1 max-h-60 w-full overflow-y-auto rounded-md border border-gray-200 bg-white font-semibold text-gray-400 shadow-lg",
3076
+ "absolute z-50 mt-1 max-h-60 w-full overflow-y-auto rounded-md border border-gray-200 bg-white font-semibold text-gray-400 shadow-lg",
3077
3077
  {
3078
3078
  variants: {
3079
3079
  size: {
3080
3080
  md: "text-sm min-w-24",
3081
- lg: "text-base md:text-lg"
3081
+ lg: "md:text-lg min-w-64"
3082
3082
  }
3083
3083
  },
3084
3084
  defaultVariants: {
@@ -3091,23 +3091,25 @@ function pe({ children: e, size: r }) {
3091
3091
  return /* @__PURE__ */ l("div", { className: y(br({ size: r || t })), children: e });
3092
3092
  }
3093
3093
  const wr = {
3094
- md: "px-3 py-1 text-sm w-fit min-w-24",
3095
- lg: "px-5 py-1.5 md:py-2.5 min-w-64 md:w-72 text-base md:text-lg"
3094
+ md: "px-3 py-1 text-sm min-w-24",
3095
+ lg: "px-4 py-3.5 min-w-64 text-lg"
3096
3096
  };
3097
3097
  function ge({ selected: e, onClick: r, isOpen: t, size: o = "lg" }) {
3098
3098
  return /* @__PURE__ */ l(
3099
- "div",
3099
+ P,
3100
3100
  {
3101
+ alignItems: "center",
3101
3102
  onClick: r,
3102
3103
  className: y(
3103
3104
  wr[o],
3104
- "flex cursor-pointer items-center rounded-lg border border-gray-200 bg-white text-start font-semibold text-gray-400"
3105
+ "w-full rounded-lg border border-gray-200 bg-white font-semibold text-gray-400"
3105
3106
  ),
3106
3107
  children: /* @__PURE__ */ C(
3107
3108
  "button",
3108
3109
  {
3110
+ type: "button",
3109
3111
  className: y(
3110
- "flex w-full items-center justify-between rounded-lg align-middle hover:rounded-lg",
3112
+ "flex w-full cursor-pointer items-center justify-between rounded-lg align-middle",
3111
3113
  t && "hover:rounded-b-none"
3112
3114
  ),
3113
3115
  children: [
@@ -3129,47 +3131,47 @@ function ge({ selected: e, onClick: r, isOpen: t, size: o = "lg" }) {
3129
3131
  }
3130
3132
  );
3131
3133
  }
3132
- function _e({ value: e, onChange: r, size: t = "lg", children: o }) {
3133
- const [n, s] = M(!1), a = (i) => {
3134
- s(!1), r == null || r(i);
3134
+ function _e({ value: e, onChange: r, size: t = "lg", defaultValue: o, children: n }) {
3135
+ const [s, a] = M(!1), i = (d) => {
3136
+ a(!1), r == null || r(d);
3135
3137
  };
3136
3138
  return /* @__PURE__ */ l(
3137
3139
  We.Provider,
3138
3140
  {
3139
3141
  value: {
3140
3142
  selected: e,
3141
- onSelect: a,
3143
+ onSelect: i,
3142
3144
  size: t
3143
3145
  },
3144
- children: /* @__PURE__ */ C("div", { className: "relative w-fit", children: [
3146
+ children: /* @__PURE__ */ C("div", { className: "relative w-full", children: [
3145
3147
  /* @__PURE__ */ l(
3146
3148
  ge,
3147
3149
  {
3148
- selected: e,
3149
- onClick: () => s(!n),
3150
+ selected: e || o,
3151
+ onClick: () => a(!s),
3150
3152
  size: t,
3151
- isOpen: n
3153
+ isOpen: s
3152
3154
  }
3153
3155
  ),
3154
- n && /* @__PURE__ */ l(pe, { children: o })
3156
+ s && /* @__PURE__ */ l(pe, { children: n })
3155
3157
  ] })
3156
3158
  }
3157
3159
  );
3158
3160
  }
3159
- const Ur = Object.assign(_e, {
3161
+ const Dr = Object.assign(_e, {
3160
3162
  Option: He,
3161
3163
  Button: ge,
3162
3164
  List: pe
3163
- }), qr = Object.assign(_e, {
3165
+ }), Ur = Object.assign(_e, {
3164
3166
  Option: He,
3165
3167
  Select: ge,
3166
3168
  List: pe,
3167
3169
  Group: fr
3168
3170
  });
3169
- function Jr({ className: e, ...r }) {
3171
+ function qr({ className: e, ...r }) {
3170
3172
  return /* @__PURE__ */ l("div", { className: y("w-full animate-pulse rounded-md bg-gray-200", e), ...r });
3171
3173
  }
3172
- function Kr({ color: e = "primary", ...r }) {
3174
+ function Jr({ color: e = "primary", ...r }) {
3173
3175
  return /* @__PURE__ */ l(
3174
3176
  Ce.Root,
3175
3177
  {
@@ -3181,7 +3183,7 @@ function Kr({ color: e = "primary", ...r }) {
3181
3183
  );
3182
3184
  }
3183
3185
  const $e = X(void 0);
3184
- function Xr({ children: e, defaultIndex: r = 0, ...t }) {
3186
+ function Kr({ children: e, defaultIndex: r = 0, ...t }) {
3185
3187
  const o = De(
3186
3188
  () => Ue.toArray(e).filter((a) => qe(a)).map((a) => a.props.label),
3187
3189
  [e]
@@ -3209,43 +3211,37 @@ function Xr({ children: e, defaultIndex: r = 0, ...t }) {
3209
3211
  e
3210
3212
  ] }) });
3211
3213
  }
3212
- function Yr({ label: e, children: r, ...t }) {
3214
+ function Xr({ label: e, children: r, ...t }) {
3213
3215
  const o = Y($e), n = (o == null ? void 0 : o.activeLabel) === e;
3214
3216
  return /* @__PURE__ */ l("div", { className: `${!n && "hidden"}`, ...t, children: r });
3215
3217
  }
3216
- const xr = {
3217
- gray: "bg-gray-50",
3218
- white: "bg-white"
3219
- };
3220
- function Qr({
3218
+ function Yr({
3221
3219
  value: e,
3222
- variant: r = "gray",
3223
- rows: t = 3,
3224
- showCounter: o = !1,
3225
- className: n,
3226
- ...s
3220
+ rows: r = 3,
3221
+ showCounter: t = !1,
3222
+ className: o,
3223
+ ...n
3227
3224
  }) {
3228
- return /* @__PURE__ */ C(H, { dir: "col", gap: 2, children: [
3225
+ return /* @__PURE__ */ C(P, { dir: "col", gap: 2, children: [
3229
3226
  /* @__PURE__ */ l(
3230
3227
  "textarea",
3231
3228
  {
3232
- rows: t,
3229
+ rows: r,
3233
3230
  className: y(
3234
- "focus:border-primary-100 w-full resize-none rounded-xl border-none px-4 py-3 text-gray-900 outline-1 outline-gray-200 transition-colors placeholder:text-gray-400 focus:border-1",
3235
- xr[r],
3236
- n
3231
+ "w-full resize-none rounded-xl border-none bg-white px-4 py-3.5 text-gray-900 outline-1 outline-gray-200 transition-colors placeholder:text-gray-400 focus:ring-4 focus:ring-blue-200 focus:outline-blue-500",
3232
+ o
3237
3233
  ),
3238
- ...s
3234
+ ...n
3239
3235
  }
3240
3236
  ),
3241
- o && s.maxLength && /* @__PURE__ */ C(Ge, { weight: "normal", className: "text-right text-gray-500", children: [
3237
+ t && n.maxLength && /* @__PURE__ */ C(Ge, { weight: "normal", className: "text-right text-gray-500", children: [
3242
3238
  e.length ?? 0,
3243
3239
  "/",
3244
- s.maxLength
3240
+ n.maxLength
3245
3241
  ] })
3246
3242
  ] });
3247
3243
  }
3248
- const yr = {
3244
+ const xr = {
3249
3245
  SPRING: {
3250
3246
  initial: { opacity: 0, scale: 0.6, y: 15 },
3251
3247
  animate: {
@@ -3300,7 +3296,7 @@ const yr = {
3300
3296
  transition: { duration: 0.15, ease: "easeIn" }
3301
3297
  }
3302
3298
  }
3303
- }, vr = {
3299
+ }, yr = {
3304
3300
  primary: {
3305
3301
  bg: "bg-primary-300",
3306
3302
  text: "text-white"
@@ -3337,7 +3333,7 @@ const yr = {
3337
3333
  bg: "bg-black",
3338
3334
  text: "text-white"
3339
3335
  }
3340
- }, Cr = () => {
3336
+ }, vr = () => {
3341
3337
  const [e, r] = M(!1), [t, o] = M(null), n = ie(null), s = () => r(!0), a = () => r(!1);
3342
3338
  return K(() => {
3343
3339
  if (n.current && e) {
@@ -3352,13 +3348,13 @@ const yr = {
3352
3348
  position: t
3353
3349
  };
3354
3350
  };
3355
- function eo({
3351
+ function Qr({
3356
3352
  content: e,
3357
3353
  color: r = "gray",
3358
3354
  animationMode: t = "SPRING",
3359
3355
  children: o
3360
3356
  }) {
3361
- const n = le(), { open: s, ref: a, show: i, hide: d, position: u } = Cr(), m = vr[r], h = yr[t];
3357
+ const n = le(), { open: s, ref: a, show: i, hide: d, position: u } = vr(), m = yr[r], h = xr[t];
3362
3358
  return /* @__PURE__ */ C(
3363
3359
  "div",
3364
3360
  {
@@ -3396,7 +3392,7 @@ function eo({
3396
3392
  }
3397
3393
  );
3398
3394
  }
3399
- const to = () => {
3395
+ const eo = () => {
3400
3396
  const [e, r] = M(!1);
3401
3397
  return {
3402
3398
  isOpen: e,
@@ -3405,45 +3401,45 @@ const to = () => {
3405
3401
  };
3406
3402
  };
3407
3403
  export {
3408
- Ir as Accordion,
3409
- Sr as AccordionItem,
3410
- zr as Avatar,
3411
- Ar as Badge,
3412
- Wr as Body1,
3413
- Fr as Body2,
3404
+ Mr as Accordion,
3405
+ Ir as AccordionItem,
3406
+ Sr as Avatar,
3407
+ zr as Badge,
3408
+ Gr as Body1,
3409
+ Wr as Body2,
3414
3410
  cr as Body3,
3415
- Tr as Button,
3411
+ Ar as Button,
3416
3412
  Ge as Caption1,
3417
- Rr as Card,
3418
- jr as Carousel,
3419
- Br as CarouselContent,
3420
- Or as CarouselItem,
3421
- Vr as DoubleButton,
3422
- Pr as Drawer,
3423
- Hr as FileUpload,
3424
- H as Flex,
3425
- qr as GroupingSelect,
3413
+ Or as Card,
3414
+ Tr as Carousel,
3415
+ jr as CarouselContent,
3416
+ Br as CarouselItem,
3417
+ Rr as DoubleButton,
3418
+ Vr as Drawer,
3419
+ Fr as FileUpload,
3420
+ P as Flex,
3421
+ Ur as GroupingSelect,
3426
3422
  E as Icon,
3427
3423
  ur as IconButton,
3428
3424
  Ve as Icons,
3429
- _r as Input,
3430
- $r as Modal,
3431
- Zr as NavBack,
3432
- Dr as Pagination,
3425
+ Hr as Input,
3426
+ _r as Modal,
3427
+ $r as NavBack,
3428
+ Zr as Pagination,
3433
3429
  ue as Portal,
3434
- Ur as Select,
3435
- Jr as Skeleton,
3436
- Kr as Switch,
3437
- Yr as TabItem,
3438
- Xr as Tabs,
3439
- Qr as TextArea,
3430
+ Dr as Select,
3431
+ qr as Skeleton,
3432
+ Jr as Switch,
3433
+ Xr as TabItem,
3434
+ Kr as Tabs,
3435
+ Yr as TextArea,
3440
3436
  ar as Title1,
3441
- Gr as Title2,
3437
+ Pr as Title2,
3442
3438
  lr as Title3,
3443
- eo as Tooltip,
3439
+ Qr as Tooltip,
3444
3440
  y as cn,
3445
3441
  O as colors,
3446
- Mr as iconNames,
3447
- to as usePortal
3442
+ Er as iconNames,
3443
+ eo as usePortal
3448
3444
  };
3449
3445
  //# sourceMappingURL=ddingdong-design-system.es.js.map