@iamfiro/design 0.3.1 → 0.3.2

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.
Files changed (156) hide show
  1. package/agents/avatar/AGENTS.md +29 -1
  2. package/agents/tooltip/AGENTS.md +1 -1
  3. package/lib/components/Accordion/Accordion2.js +81 -81
  4. package/lib/components/ActionBar/ActionBar2.js +38 -39
  5. package/lib/components/Alert/Alert2.js +79 -79
  6. package/lib/components/AppShell/AppShell2.js +45 -45
  7. package/lib/components/AreaChart/AreaChart.js +45 -46
  8. package/lib/components/BarChart/BarChart2.js +166 -166
  9. package/lib/components/BarList/BarList2.js +83 -83
  10. package/lib/components/Breadcrumb/Breadcrumb2.js +68 -72
  11. package/lib/components/Calendar/Calendar2.js +166 -165
  12. package/lib/components/Calendar/DatePicker2.js +139 -139
  13. package/lib/components/Calendar/date.js +61 -58
  14. package/lib/components/Card/Card2.js +47 -47
  15. package/lib/components/CardFrame/CardFrame2.js +50 -45
  16. package/lib/components/Chart/ChartParts.js +78 -78
  17. package/lib/components/Chart/chart2.js +62 -62
  18. package/lib/components/Chart/useChartInteraction.js +56 -56
  19. package/lib/components/ChatBubble/ChatBubble2.js +116 -116
  20. package/lib/components/ChatBubble/formatChatTime.js +46 -39
  21. package/lib/components/ChatComposer/ChatComposer2.js +43 -43
  22. package/lib/components/CodeBlock/CodeBlock2.js +57 -57
  23. package/lib/components/CodeBlock/highlight.js +74 -74
  24. package/lib/components/ColorPicker/ColorPicker2.js +357 -357
  25. package/lib/components/ColorPicker/color.js +83 -83
  26. package/lib/components/ColorPicker/presets.js +47 -41
  27. package/lib/components/Combobox/Combobox2.js +143 -142
  28. package/lib/components/CommandMenu/CommandMenu.js +100 -100
  29. package/lib/components/Comment/Comment2.js +59 -60
  30. package/lib/components/ContextMenu/ContextMenu2.js +95 -96
  31. package/lib/components/DataGrid/DataGrid2.js +1202 -1203
  32. package/lib/components/DataGrid/GridPopover.js +87 -87
  33. package/lib/components/DataGrid/anchor.js +17 -19
  34. package/lib/components/DataGrid/model.js +261 -261
  35. package/lib/components/DataGrid/panels.js +397 -395
  36. package/lib/components/DataGrid/typeMeta.js +51 -51
  37. package/lib/components/DataGrid/types.js +38 -36
  38. package/lib/components/DescriptionList/DescriptionList2.js +74 -74
  39. package/lib/components/Dialog/AlertDialog.js +81 -82
  40. package/lib/components/Dialog/Dialog2.js +63 -63
  41. package/lib/components/Dialog/modal.js +70 -69
  42. package/lib/components/Drawer/Drawer2.js +122 -123
  43. package/lib/components/DropdownMenu/DropdownMenu2.js +257 -258
  44. package/lib/components/DropdownMenu/menuCore.js +43 -44
  45. package/lib/components/Dropzone/Dropzone2.js +76 -77
  46. package/lib/components/EmptyState/EmptyState2.js +59 -56
  47. package/lib/components/FileChip/FileChip2.js +73 -49
  48. package/lib/components/FileUpload/FileUpload.js +149 -150
  49. package/lib/components/FilterChips/FilterChips2.js +59 -59
  50. package/lib/components/FunnelChart/FunnelChart2.js +123 -123
  51. package/lib/components/FunnelChart/funnel.js +44 -47
  52. package/lib/components/Highlight/Highlight2.js +48 -48
  53. package/lib/components/HoverCard/HoverCard.js +89 -64
  54. package/lib/components/InlineDiff/InlineDiff2.js +123 -123
  55. package/lib/components/InlineDiff/diff.js +76 -76
  56. package/lib/components/InlineDiff/useDiffReview.js +69 -68
  57. package/lib/components/Kanban/Kanban2.js +366 -366
  58. package/lib/components/Kanban/KanbanCard.js +67 -67
  59. package/lib/components/Kanban/move.js +41 -45
  60. package/lib/components/LineChart/LineChart2.js +196 -196
  61. package/lib/components/List/List2.js +60 -59
  62. package/lib/components/Listbox/Listbox2.js +94 -94
  63. package/lib/components/Marker/Marker2.js +59 -52
  64. package/lib/components/Menubar/Menubar2.js +110 -112
  65. package/lib/components/MultiSelect/MultiSelect2.js +112 -112
  66. package/lib/components/NavigationMenu/NavigationMenu2.js +239 -240
  67. package/lib/components/NoticeStack/NoticeStack2.js +99 -99
  68. package/lib/components/NumberStepper/NumberStepper2.js +66 -65
  69. package/lib/components/OtpInput/OtpInput2.js +87 -88
  70. package/lib/components/Pagination/Pagination2.js +81 -81
  71. package/lib/components/Pagination/paginationRange.js +25 -24
  72. package/lib/components/PhoneInput/PhoneInput.js +77 -77
  73. package/lib/components/PieChart/PieChart2.js +101 -101
  74. package/lib/components/PieChart/arc.js +73 -76
  75. package/lib/components/PieChart/useArcTween.js +61 -57
  76. package/lib/components/Popover/Popover2.js +65 -64
  77. package/lib/components/ProgressTracker/ProgressTracker2.js +119 -119
  78. package/lib/components/Rating/Rating2.js +85 -85
  79. package/lib/components/Resizable/Resizable2.js +139 -139
  80. package/lib/components/Resizable/layout.js +68 -68
  81. package/lib/components/ScaledPreview/ScaledPreview2.js +55 -55
  82. package/lib/components/ScatterChart/ScatterChart2.js +249 -249
  83. package/lib/components/ScatterChart/scatter.js +55 -55
  84. package/lib/components/ScrollArea/ScrollArea2.js +132 -131
  85. package/lib/components/Select/Select2.js +81 -81
  86. package/lib/components/Sidebar/Sidebar2.js +61 -61
  87. package/lib/components/Skeleton/Skeleton2.js +46 -46
  88. package/lib/components/Slider/Slider2.js +74 -73
  89. package/lib/components/SocialLoginButton/SocialLoginButton.js +70 -70
  90. package/lib/components/SparkChart/SparkChart2.js +138 -137
  91. package/lib/components/SparkChart/spark.js +40 -61
  92. package/lib/components/Sparkbar/Sparkbar2.js +60 -59
  93. package/lib/components/SplitView/SplitView2.js +42 -42
  94. package/lib/components/Stat/Stat2.js +88 -88
  95. package/lib/components/StepList/StepList2.js +71 -71
  96. package/lib/components/Table/Table2.js +70 -70
  97. package/lib/components/Tabs/Tabs2.js +89 -89
  98. package/lib/components/TagInput/TagInput2.js +154 -154
  99. package/lib/components/TimePicker/TimePicker2.js +225 -226
  100. package/lib/components/TimePicker/time.js +50 -50
  101. package/lib/components/Timeline/Timeline2.js +201 -201
  102. package/lib/components/Timeline/scale.js +55 -53
  103. package/lib/components/Toast/Toaster.js +90 -92
  104. package/lib/components/Toast/store.js +91 -87
  105. package/lib/components/ToggleGroup/ToggleGroup2.js +84 -84
  106. package/lib/components/Toolbar/Toolbar2.js +166 -168
  107. package/lib/components/Tracker/Tracker2.js +89 -89
  108. package/lib/components/TreeDiagram/TreeDiagram2.js +126 -125
  109. package/lib/components/TreeView/TreeView2.js +154 -156
  110. package/lib/hooks/timing.js +35 -36
  111. package/lib/hooks/useControllableState.js +40 -39
  112. package/lib/hooks/useCountdown.js +57 -55
  113. package/lib/hooks/useDigitInput.js +59 -83
  114. package/lib/hooks/useDismiss.js +49 -46
  115. package/lib/hooks/useElapsed.js +53 -55
  116. package/lib/hooks/useFloating.js +44 -44
  117. package/lib/hooks/useFocusTrap.js +46 -70
  118. package/lib/hooks/usePresence.js +32 -29
  119. package/lib/hooks/usePressToOpen.js +50 -50
  120. package/lib/hooks/useScrollLock.js +51 -51
  121. package/lib/hooks/useSelection.js +55 -46
  122. package/lib/index.js +34 -35
  123. package/lib/primitives/AspectRatio2.js +59 -55
  124. package/lib/primitives/BrandIcon.js +160 -160
  125. package/lib/primitives/ColorDot2.js +38 -42
  126. package/lib/primitives/CopyButton2.js +56 -56
  127. package/lib/primitives/CountBadge2.js +66 -64
  128. package/lib/primitives/Countdown2.js +31 -32
  129. package/lib/primitives/Delta2.js +46 -71
  130. package/lib/primitives/Elapsed.js +44 -44
  131. package/lib/primitives/FileIcon2.js +82 -82
  132. package/lib/primitives/Flag2.js +134 -134
  133. package/lib/primitives/IconStack2.js +31 -53
  134. package/lib/primitives/IconTile2.js +46 -48
  135. package/lib/primitives/Kbd2.js +57 -57
  136. package/lib/primitives/Layout2.js +78 -78
  137. package/lib/primitives/Link2.js +29 -30
  138. package/lib/primitives/MaskedText2.js +47 -73
  139. package/lib/primitives/Progress2.js +77 -78
  140. package/lib/primitives/RelativeTime.js +49 -46
  141. package/lib/primitives/SearchInput2.js +58 -59
  142. package/lib/primitives/SelectorButton2.js +76 -74
  143. package/lib/primitives/Spinner2.js +62 -58
  144. package/lib/primitives/StatusIcon2.js +56 -56
  145. package/lib/primitives/Swatch2.js +69 -65
  146. package/lib/primitives/Tooltip2.js +92 -92
  147. package/lib/primitives/Typography2.js +68 -68
  148. package/lib/primitives/formatCountdown.js +39 -43
  149. package/lib/primitives/formatElapsed.js +43 -39
  150. package/lib/primitives/formatRelativeTime.js +50 -50
  151. package/lib/primitives/hotkey.js +76 -76
  152. package/lib/primitives/index.js +201 -181
  153. package/lib/primitives/maskValue.js +35 -39
  154. package/lib/style.css +1 -1
  155. package/lib/types/primitives/index.d.ts +6 -2
  156. package/package.json +1 -1
@@ -1,137 +1,137 @@
1
1
  "use client";
2
- const e = p;
2
+ const e = s;
3
3
  (function(e, t) {
4
- let n = p, r = e();
4
+ let n = s, r = e();
5
5
  for (;;) try {
6
- if (parseInt(n(313)) / 1 * (parseInt(n(376)) / 2) + parseInt(n(366)) / 3 * (-parseInt(n(358)) / 4) + parseInt(n(377)) / 5 + parseInt(n(303)) / 6 + parseInt(n(375)) / 7 + parseInt(n(315)) / 8 * (-parseInt(n(343)) / 9) + -parseInt(n(325)) / 10 == t) break;
6
+ if (-parseInt(n(196)) / 1 + parseInt(n(210)) / 2 * (parseInt(n(229)) / 3) + -parseInt(n(214)) / 4 + -parseInt(n(234)) / 5 * (-parseInt(n(201)) / 6) + -parseInt(n(208)) / 7 * (-parseInt(n(172)) / 8) + -parseInt(n(188)) / 9 + parseInt(n(198)) / 10 * (parseInt(n(209)) / 11) == t) break;
7
7
  r.push(r.shift());
8
8
  } catch {
9
9
  r.push(r.shift());
10
10
  }
11
- })(l, 830432);
11
+ })(a, 879864);
12
12
  import { Text as t } from "../../primitives/Typography2.js";
13
13
  import { ColorDot as n } from "../../primitives/ColorDot2.js";
14
14
  import { Inline as r, Stack as i } from "../../primitives/Layout2.js";
15
- import { cx as a } from "../../primitives/index.js";
16
- import { ChartTooltip as o } from "../Chart/ChartParts.js";
17
- import { barPath as s, chartColor as c, formatNumber as ee, formatPercent as te } from "../Chart/chart2.js";
18
- function l() {
19
- let e = /* @__PURE__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BMvSlwnOyxj0x19Wy3q.BgfIzwW.yMfY.lwHHDgnOlq.zMLYC3q".split(".");
17
+ return a = function() {
21
18
  return e;
22
- }, l();
19
+ }, a();
23
20
  }
24
- import { useChartInteraction as u } from "../Chart/useChartInteraction.js";
25
- import { estimateTextWidth as d, funnelStats as ne, hBarPath as f } from "./funnel.js";
26
- function p(e, t) {
27
- e -= 303;
28
- let n = l(), r = n[e];
29
- p.oGoebU === void 0 && (p.twkWgz = function(e) {
21
+ import { cx as o } from "../../primitives/index.js";
22
+ import { ChartTooltip as ee } from "../Chart/ChartParts.js";
23
+ function s(e, t) {
24
+ e -= 172;
25
+ let n = a(), r = n[e];
26
+ s.GGCxEt === void 0 && (s.tciwKd = function(e) {
30
27
  let t = "", n = "";
31
28
  for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
32
29
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
33
30
  return decodeURIComponent(n);
34
- }, p.WAJVaD = {}, p.oGoebU = !0);
31
+ }, s.MQCfsN = {}, s.GGCxEt = !0);
35
32
  let i = n[0];
36
- p.BcMVTf !== i && (p.WAJVaD = {}, p.BcMVTf = i);
37
- let a = p.WAJVaD[e];
38
- return a === void 0 ? (r = p.twkWgz(r), p.WAJVaD[e] = r) : r = a, r;
33
+ s.UAafFk !== i && (s.MQCfsN = {}, s.UAafFk = i);
34
+ let o = s.MQCfsN[e];
35
+ return o === void 0 ? (r = s.tciwKd(r), s.MQCfsN[e] = r) : r = o, r;
39
36
  }
37
+ import { barPath as c, chartColor as l, formatNumber as te, formatPercent as u } from "../Chart/chart2.js";
38
+ import { useChartInteraction as ne } from "../Chart/useChartInteraction.js";
39
+ import { estimateTextWidth as d, funnelStats as f, hBarPath as p } from "./funnel.js";
40
40
  /* empty css */
41
41
  import { useId as re } from "react";
42
42
  import { jsx as m, jsxs as h } from "react/jsx-runtime";
43
43
  var g = 14, ie = 28, _ = 8, v = 4, y = 44;
44
- function b({ data: l, orientation: p = "horizontal", calculateFrom: b = e(335), color: ae = e(351), gradient: oe = !1, showDropOff: x = !0, height: S = 260, barSize: C = 32, formatValue: w = ee, formatPercent: T = te, legend: se = !0, activeIndex: ce, defaultActiveIndex: le, onActiveIndexChange: ue, "aria-label": de = "퍼널 차트", className: fe, style: pe }) {
45
- let E = e, D = re(), O = ne(l, b), k = O[E(334)], { open: A, shown: j, settled: me, width: M, tipRef: he, tipSize: N, hover: P, leave: ge, plotProps: F } = u({
44
+ function b({ data: a, orientation: s = e(192), calculateFrom: b = e(246), color: ae = e(194), gradient: oe = !1, showDropOff: x = !0, height: S = 260, barSize: C = 32, formatValue: w = te, formatPercent: T = u, legend: se = !0, activeIndex: ce, defaultActiveIndex: le, onActiveIndexChange: ue, "aria-label": de = e(202), className: fe, style: pe }) {
45
+ let E = e, D = re(), O = f(a, b), k = O[E(221)], { open: A, shown: j, settled: me, width: M, tipRef: he, tipSize: N, hover: P, leave: ge, plotProps: F } = ne({
46
46
  count: k,
47
47
  activeIndex: ce,
48
48
  defaultActiveIndex: le,
49
49
  onActiveIndexChange: ue,
50
- initialKeyboardIndex: E(335)
51
- }), I = p === E(356), _e = Math[E(353)](0, ...O[E(341)]((e) => e.value)) || 1, L = (e) => {
52
- let t = E, n = O[e]?.color;
53
- return n ? c(n, e) : oe ? "var(--chart-seq-" + (k > 1 ? 1 + Math[t(308)](e * 3 / (k - 1)) : 1) + ")" : c(ae, 0);
54
- }, ve = (e) => "color-mix(in srgb, " + e + E(316), R = I ? Math[E(359)](Math[E(353)](0, ...O.map((e) => d(e[E(349)])))) + 16 : 0, ye = Math[E(359)](Math[E(353)](0, ...O[E(341)]((e) => d(w(e[E(361)], e))))) + 4, be = I ? 16 + ye + 10 + y : 0, xe = Math.max(0, M - R - be), z = C + g, B = I ? Math[E(353)](0, k * C + (k - 1) * g) : S, V = S - ie, Se = Math.max(0, V - 50), H = k ? M / k : 0, U = H * .78, W = (e) => e / _e * (I ? xe : Se), G = O[E(341)]((e, t) => {
55
- let n = E, r = t ? O[t - 1].value : e.value, i = W(e[n(361)]), a = W(Math[n(353)](r, e[n(361)]));
50
+ initialKeyboardIndex: "first"
51
+ }), I = s === "horizontal", _e = Math[E(216)](0, ...O[E(175)]((e) => e[E(223)])) || 1, L = (e) => {
52
+ let t = E, n = O[e]?.[t(184)];
53
+ return n ? l(n, e) : oe ? t(232) + (k > 1 ? 1 + Math[t(233)](e * 3 / (k - 1)) : 1) + ")" : l(ae, 0);
54
+ }, ve = (e) => E(235) + e + E(247), R = I ? Math[E(222)](Math[E(216)](0, ...O[E(175)]((e) => d(e[E(243)])))) + 16 : 0, ye = Math.ceil(Math[E(216)](0, ...O[E(175)]((e) => d(w(e[E(223)], e))))) + 4, be = I ? 16 + ye + 10 + y : 0, xe = Math[E(216)](0, M - R - be), z = C + g, B = I ? Math[E(216)](0, k * C + (k - 1) * g) : S, V = S - ie, Se = Math[E(216)](0, V - 50), H = k ? M / k : 0, U = H * .78, W = (e) => e / _e * (I ? xe : Se), G = O[E(175)]((e, t) => {
55
+ let n = E, r = t ? O[t - 1].value : e[n(223)], i = W(e.value), a = W(Math[n(216)](r, e[n(223)]));
56
56
  if (I) {
57
57
  let e = t * z;
58
58
  return {
59
- bar: f(R, e, i, C, v),
60
- drop: f(R + i, e, a - i, C, v),
59
+ bar: p(R, e, i, C, v),
60
+ drop: p(R + i, e, a - i, C, v),
61
61
  end: R + a,
62
62
  mid: e + C / 2
63
63
  };
64
64
  }
65
65
  let o = t * H + (H - U) / 2;
66
66
  return {
67
- bar: s(o, V - i, U, i, v),
68
- drop: s(o, V - a, U, a - i, v),
67
+ bar: c(o, V - i, U, i, v),
68
+ drop: c(o, V - a, U, a - i, v),
69
69
  end: (t + 1) * H,
70
70
  mid: t * H + H / 2
71
71
  };
72
- }), K = j === null ? void 0 : O[j], q = (e) => E(e === "first" ? 360 : 368), J = b === E(335) ? E(342) : E(335), Ce = K && j !== null ? [{
73
- key: E(336),
72
+ }), K = j === null ? void 0 : O[j], q = (e) => e === E(246) ? E(203) : E(187), J = b === E(246) ? E(238) : "first", Ce = K && j !== null ? [{
73
+ key: "conversion",
74
74
  label: q(b),
75
75
  color: L(j),
76
- value: T(K[E(336)])
76
+ value: T(K[E(205)])
77
77
  }, ...j > 0 ? [{
78
- key: E(332),
78
+ key: E(182),
79
79
  label: q(J),
80
80
  color: L(j),
81
- value: T(J === E(335) ? K[E(373)] : K[E(374)])
81
+ value: T(J === E(246) ? K.fromFirst : K[E(179)])
82
82
  }, {
83
- key: "drop",
83
+ key: E(241),
84
84
  label: "이탈",
85
85
  color: ve(L(j - 1)),
86
- value: w(K[E(347)], K) + E(357) + T(K[E(323)])
86
+ value: w(K[E(241)], K) + E(189) + T(K[E(248)])
87
87
  }] : []] : [], Y = j === null ? void 0 : G[j], X = 0, Z = 0;
88
88
  if (Y && j !== null) {
89
- if (I) X = Math[E(353)](0, Math[E(370)](Y[E(355)] + _, M - N.w)), Z = Math[E(353)](0, Math[E(370)](Y[E(371)] - N.h / 2, B - N.h));
89
+ if (I) X = Math[E(216)](0, Math[E(249)](Y.end + _, M - N.w)), Z = Math[E(216)](0, Math[E(249)](Y[E(181)] - N.h / 2, B - N.h));
90
90
  else {
91
91
  let e = j * H;
92
- X = Y[E(355)] + _ + N.w > M ? Math.max(0, e - _ - N.w) : Y[E(355)] + _, Z = 50;
92
+ X = Y[E(178)] + _ + N.w > M ? Math[E(216)](0, e - _ - N.w) : Y.end + _, Z = 50;
93
93
  }
94
94
  }
95
95
  let Q = j === null ? 0 : I ? j * z - g / 2 : j * H, $ = (e) => {
96
96
  let t = E;
97
97
  if (!k) return;
98
- let n = e[t(310)][t(337)](), r = I ? Math.floor((e[t(322)] - n[t(367)] + g / 2) / z) : Math[t(338)]((e[t(309)] - n[t(364)]) / n[t(333)] * k);
99
- P(Math[t(370)](k - 1, Math[t(353)](0, r)));
100
- }, we = A && K ? K[E(349)] + ": " + w(K.value, K) + ", " + q(b) + " " + T(K[E(336)]) + (j ? ", 이탈 " + w(K.drop, K) : "") : "";
98
+ let n = e.currentTarget[t(237)](), r = I ? Math[t(228)]((e[t(218)] - n.top + g / 2) / z) : Math[t(228)]((e[t(200)] - n.left) / n[t(220)] * k);
99
+ P(Math[t(249)](k - 1, Math.max(0, r)));
100
+ }, we = A && K ? K.label + ": " + w(K[E(223)], K) + ", " + q(b) + " " + T(K.conversion) + (j ? E(204) + w(K.drop, K) : "") : "";
101
101
  return h(i, {
102
102
  gap: 3,
103
- className: a(E(318), E(320), fe),
103
+ className: o(E(195), E(183), fe),
104
104
  style: pe,
105
- children: [h(E(348), {
105
+ children: [h(E(193), {
106
106
  ...F,
107
- className: "ds-chart__plot",
107
+ className: E(174),
108
108
  style: { height: B },
109
- "data-orientation": p,
110
- "aria-roledescription": E(331),
109
+ "data-orientation": s,
110
+ "aria-roledescription": E(202),
111
111
  "aria-label": de,
112
112
  "aria-describedby": D + "-live",
113
113
  children: [
114
114
  M > 0 && h("svg", {
115
- className: "ds-chart__svg ds-funnel-chart__svg",
115
+ className: E(211),
116
116
  width: M,
117
117
  height: B,
118
118
  "aria-hidden": !0,
119
- "data-orientation": p,
119
+ "data-orientation": s,
120
120
  children: [
121
- m(E(329), { children: O[E(341)]((e, t) => t > 0 ? h("pattern", {
122
- id: D + E(317) + t,
121
+ m(E(206), { children: O[E(175)]((e, t) => t > 0 ? h("pattern", {
122
+ id: D + E(245) + t,
123
123
  width: 6,
124
124
  height: 6,
125
- patternUnits: E(305),
126
- patternTransform: E(307),
127
- children: [m(E(345), {
125
+ patternUnits: E(199),
126
+ patternTransform: "rotate(45)",
127
+ children: [m(E(173), {
128
128
  width: 6,
129
129
  height: 6,
130
130
  style: {
131
131
  fill: L(t - 1),
132
132
  fillOpacity: .1
133
133
  }
134
- }), m(E(339), {
134
+ }), m(E(213), {
135
135
  x1: 1.5,
136
136
  y1: 0,
137
137
  x2: 1.5,
@@ -142,88 +142,88 @@ function b({ data: l, orientation: p = "horizontal", calculateFrom: b = e(335),
142
142
  strokeOpacity: .28
143
143
  }
144
144
  })]
145
- }, e.key) : null) }),
146
- m(E(345), {
147
- className: E(328),
148
- "data-state": E(A ? 354 : 344),
145
+ }, e[E(217)]) : null) }),
146
+ m("rect", {
147
+ className: E(219),
148
+ "data-state": E(A ? 230 : 231),
149
149
  x: 0,
150
150
  y: 0,
151
151
  width: I ? M : H,
152
152
  height: I ? z : B,
153
153
  rx: 8,
154
- style: { transform: I ? "translateY(" + Q + E(362) : E(311) + Q + E(362) }
154
+ style: { transform: I ? E(227) + Q + "px)" : E(197) + Q + E(207) }
155
155
  }),
156
- O.map((e, t) => {
156
+ O[E(175)]((e, t) => {
157
157
  let n = E, r = G[t], i = A && j !== t || void 0, a = { "--_i": t };
158
158
  return h("g", {
159
- className: n(346),
159
+ className: "ds-funnel-chart__step",
160
160
  "data-faded": i,
161
- children: [x && t > 0 && m(n(330), {
162
- className: n(321),
163
- d: r[n(347)],
164
- fill: n(304) + D + n(317) + t + ")",
161
+ children: [x && t > 0 && m(n(224), {
162
+ className: n(185),
163
+ d: r[n(241)],
164
+ fill: "url(#" + D + n(245) + t + ")",
165
165
  style: a
166
- }), m(n(330), {
167
- className: "ds-funnel-chart__bar",
168
- d: r[n(340)],
166
+ }), m(n(224), {
167
+ className: n(226),
168
+ d: r[n(244)],
169
169
  fill: L(t),
170
170
  style: a
171
171
  })]
172
- }, e.key);
172
+ }, e[n(217)]);
173
173
  }),
174
- O[E(341)]((e, t) => {
175
- let n = E, r = G[t], i = w(e.value, e), a = T(e[n(336)]);
174
+ O[E(175)]((e, t) => {
175
+ let n = E, r = G[t], i = w(e[n(223)], e), a = T(e.conversion);
176
176
  return I ? h("g", { children: [
177
- m(n(306), {
178
- className: "ds-funnel-chart__label",
177
+ m("text", {
178
+ className: n(212),
179
179
  x: 0,
180
- y: r[n(371)],
181
- dominantBaseline: n(372),
182
- children: e.label
180
+ y: r[n(181)],
181
+ dominantBaseline: "middle",
182
+ children: e[n(243)]
183
183
  }),
184
- m(n(306), {
185
- className: n(327),
184
+ m(n(250), {
185
+ className: n(225),
186
186
  x: M - y - 10,
187
- y: r[n(371)],
188
- dominantBaseline: n(372),
189
- textAnchor: n(355),
187
+ y: r[n(181)],
188
+ dominantBaseline: n(239),
189
+ textAnchor: n(178),
190
190
  children: i
191
191
  }),
192
- m(n(306), {
193
- className: n(312),
192
+ m(n(250), {
193
+ className: n(242),
194
194
  x: M,
195
- y: r[n(371)],
196
- dominantBaseline: n(372),
195
+ y: r.mid,
196
+ dominantBaseline: n(239),
197
197
  textAnchor: "end",
198
198
  children: a
199
199
  })
200
- ] }, e[n(324)]) : h("g", { children: [
201
- m(n(306), {
202
- className: n(327),
203
- x: r[n(371)],
200
+ ] }, e[n(217)]) : h("g", { children: [
201
+ m("text", {
202
+ className: n(225),
203
+ x: r[n(181)],
204
204
  y: 16,
205
- dominantBaseline: n(372),
206
- textAnchor: "middle",
205
+ dominantBaseline: n(239),
206
+ textAnchor: n(239),
207
207
  children: i
208
208
  }),
209
- m(n(306), {
210
- className: n(312),
211
- x: r[n(371)],
209
+ m(n(250), {
210
+ className: "ds-funnel-chart__pct",
211
+ x: r[n(181)],
212
212
  y: 35,
213
- dominantBaseline: n(372),
214
- textAnchor: n(372),
213
+ dominantBaseline: n(239),
214
+ textAnchor: n(239),
215
215
  children: a
216
216
  }),
217
- m("text", {
218
- className: n(365),
219
- x: r[n(371)],
217
+ m(n(250), {
218
+ className: n(212),
219
+ x: r[n(181)],
220
220
  y: S - 6,
221
- textAnchor: n(372),
222
- children: e[n(349)]
221
+ textAnchor: n(239),
222
+ children: e[n(243)]
223
223
  })
224
- ] }, e[n(324)]);
224
+ ] }, e[n(217)]);
225
225
  }),
226
- m(E(345), {
226
+ m(E(173), {
227
227
  className: "ds-chart__hit",
228
228
  x: 0,
229
229
  y: 0,
@@ -235,23 +235,23 @@ function b({ data: l, orientation: p = "horizontal", calculateFrom: b = e(335),
235
235
  })
236
236
  ]
237
237
  }),
238
- m(E(348), {
238
+ m("div", {
239
239
  ref: he,
240
- className: E(319),
241
- "data-state": E(A ? 354 : 344),
240
+ className: E(190),
241
+ "data-state": A ? "open" : E(231),
242
242
  "data-settled": me || void 0,
243
- style: { transform: "translate(" + X + E(352) + Z + E(362) },
243
+ style: { transform: E(191) + X + E(186) + Z + "px)" },
244
244
  "aria-hidden": !0,
245
- children: m(o, {
246
- title: K?.[E(349)],
247
- value: K ? w(K[E(361)], K) : void 0,
245
+ children: m(ee, {
246
+ title: K?.[E(243)],
247
+ value: K ? w(K[E(223)], K) : void 0,
248
248
  rows: Ce
249
249
  })
250
250
  }),
251
- m(E(314), {
252
- id: D + E(363),
253
- className: E(369),
254
- "aria-live": "polite",
251
+ m(E(177), {
252
+ id: D + E(176),
253
+ className: "ds-chart__sr",
254
+ "aria-live": E(240),
255
255
  children: we
256
256
  })
257
257
  ]
@@ -261,8 +261,8 @@ function b({ data: l, orientation: p = "horizontal", calculateFrom: b = e(335),
261
261
  gap: 2,
262
262
  wrap: !1,
263
263
  children: [m(n, { color: L(0) }), m(t, {
264
- variant: E(326),
265
- tone: E(350),
264
+ variant: E(236),
265
+ tone: E(215),
266
266
  children: "전환"
267
267
  })]
268
268
  }), h(r, {
@@ -270,10 +270,10 @@ function b({ data: l, orientation: p = "horizontal", calculateFrom: b = e(335),
270
270
  wrap: !1,
271
271
  children: [m(n, {
272
272
  color: L(0),
273
- variant: "hatched"
273
+ variant: E(180)
274
274
  }), m(t, {
275
- variant: E(326),
276
- tone: E(350),
275
+ variant: "body-sm",
276
+ tone: E(215),
277
277
  children: "이탈"
278
278
  })]
279
279
  })]
@@ -1,72 +1,69 @@
1
1
  "use client";
2
- const e = i;
3
- (function(e, t) {
4
- let n = i, r = e();
5
- for (;;) try {
6
- if (-parseInt(n(238)) / 1 * (-parseInt(n(232)) / 2) + -parseInt(n(239)) / 3 + -parseInt(n(235)) / 4 * (parseInt(n(234)) / 5) + -parseInt(n(233)) / 6 * (-parseInt(n(231)) / 7) + parseInt(n(226)) / 8 + -parseInt(n(221)) / 9 * (-parseInt(n(222)) / 10) + -parseInt(n(223)) / 11 * (parseInt(n(230)) / 12) == t) break;
7
- r.push(r.shift());
8
- } catch {
9
- r.push(r.shift());
10
- }
11
- })(t, 912199);
2
+ const e = r;
12
3
  function t() {
13
4
  let e = [
14
- "mZK2mdy2mfvWzvH0vq",
15
- "nfnby0nHrG",
16
- "Bwf4",
17
- "BwLU",
18
- "nty3nZKWBhf5yxvV",
19
- "mtm0nJm0m1fZuenIBq",
20
- "ovDmuKnlvG",
21
- "mtaYnJK1ntbxDeLKD1u",
22
- "mtG3zKrvvvzi",
23
- "BwfW",
5
+ "mZeWmduZDxHHvMDf",
6
+ "odiYmdK2t2HSvufo",
7
+ "nwHbD0Pwsa",
8
+ "nteWntG4Dxz1uLr0",
9
+ "mtzOyMHXEgO",
10
+ "nMHJsuzYza",
24
11
  "zNjVBq",
25
- "nJq1mJu1mLHRsKHQqG",
26
- "DMfSDwu",
27
- "y29KzvbVAw50qxq",
12
+ "nta4odeZognOv0XIDa",
13
+ "mty5oty0oxvyBfPPEq",
14
+ "mJqWmZa5AeDbuMDO",
15
+ "Bwf4",
16
+ "owvTqLLWrq",
28
17
  "zMLYC3q",
29
- "mta2ndu1nKfuAwHpBq",
30
- "ndG0ndKWm0HSDvbZta",
31
- "nfr4DK9Tsq",
32
- "nK5ZD2PdrG"
18
+ "mtuXnZi3mgjVvu9Wwa",
19
+ "DMfSDwu",
20
+ "BwfW"
33
21
  ];
34
22
  return t = function() {
35
23
  return e;
36
24
  }, t();
37
25
  }
26
+ (function(e, t) {
27
+ let n = r, i = e();
28
+ for (;;) try {
29
+ if (parseInt(n(500)) / 1 * (-parseInt(n(496)) / 2) + -parseInt(n(507)) / 3 + parseInt(n(494)) / 4 + -parseInt(n(493)) / 5 * (-parseInt(n(498)) / 6) + -parseInt(n(499)) / 7 * (-parseInt(n(495)) / 8) + parseInt(n(502)) / 9 * (-parseInt(n(504)) / 10) + parseInt(n(492)) / 11 == t) break;
30
+ i.push(i.shift());
31
+ } catch {
32
+ i.push(i.shift());
33
+ }
34
+ })(t, 560015);
38
35
  function n(e, t) {
39
- let n = i, r = e[0]?.[n(227)] ?? 0;
40
- return e[n(224)]((i, a) => {
41
- let o = n, s = Math[o(236)](0, i[o(227)]), c = a ? Math[o(236)](0, e[a - 1][o(227)]) : s, l = a === 0 ? 1 : r > 0 ? s / r : 0, u = a === 0 ? 1 : c > 0 ? s / c : 0, d = a ? Math[o(236)](0, c - s) : 0;
36
+ let n = r, i = e[0]?.value ?? 0;
37
+ return e[n(506)]((r, a) => {
38
+ let o = n, s = Math[o(501)](0, r[o(505)]), c = a ? Math[o(501)](0, e[a - 1][o(505)]) : s, l = a === 0 ? 1 : i > 0 ? s / i : 0, u = a === 0 ? 1 : c > 0 ? s / c : 0, d = a ? Math[o(501)](0, c - s) : 0;
42
39
  return {
43
- ...i,
40
+ ...r,
44
41
  value: s,
45
42
  fromFirst: l,
46
43
  fromPrevious: u,
47
- conversion: t === o(229) ? l : u,
44
+ conversion: t === o(503) ? l : u,
48
45
  drop: d,
49
46
  dropRate: a && c > 0 ? d / c : 0
50
47
  };
51
48
  });
52
49
  }
53
- function r(e, t, n, r, a) {
54
- let o = i, s = Math[o(236)](0, Math[o(237)](a, r / 2, n));
55
- return "M" + e + "," + t + "H" + (e + n - s) + "Q" + (e + n) + "," + t + " " + (e + n) + "," + (t + s) + "V" + (t + r - s) + "Q" + (e + n) + "," + (t + r) + " " + (e + n - s) + "," + (t + r) + "H" + e + "Z";
56
- }
57
- function i(e, n) {
58
- e -= 221;
59
- let r = t(), a = r[e];
60
- i.FUblpD === void 0 && (i.PXnMZL = function(e) {
50
+ function r(e, n) {
51
+ e -= 492;
52
+ let i = t(), a = i[e];
53
+ r.tPzIhD === void 0 && (r.XvSIYx = function(e) {
61
54
  let t = "", n = "";
62
55
  for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
63
56
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
64
57
  return decodeURIComponent(n);
65
- }, i.osNwMa = {}, i.FUblpD = !0);
66
- let o = r[0];
67
- i.ZjMToi !== o && (i.osNwMa = {}, i.ZjMToi = o);
68
- let s = i.osNwMa[e];
69
- return s === void 0 ? (a = i.PXnMZL(a), i.osNwMa[e] = a) : a = s, a;
58
+ }, r.FPHkna = {}, r.tPzIhD = !0);
59
+ let o = i[0];
60
+ r.KWvJZY !== o && (r.FPHkna = {}, r.KWvJZY = o);
61
+ let s = r.FPHkna[e];
62
+ return s === void 0 ? (a = r.XvSIYx(a), r.FPHkna[e] = a) : a = s, a;
63
+ }
64
+ function i(e, t, n, i, a) {
65
+ let o = Math[r(501)](0, Math.min(a, i / 2, n));
66
+ return "M" + e + "," + t + "H" + (e + n - o) + "Q" + (e + n) + "," + t + " " + (e + n) + "," + (t + o) + "V" + (t + i - o) + "Q" + (e + n) + "," + (t + i) + " " + (e + n - o) + "," + (t + i) + "H" + e + "Z";
70
67
  }
71
- var a = (t) => Array[e(225)](t).reduce((t, n) => t + ((n[e(228)](0) ?? 0) >= 11904 ? 13 : 7.5), 0);
72
- export { a as estimateTextWidth, n as funnelStats, r as hBarPath };
68
+ var a = (t) => Array[e(497)](t).reduce((e, t) => e + ((t.codePointAt(0) ?? 0) >= 11904 ? 13 : 7.5), 0);
69
+ export { a as estimateTextWidth, n as funnelStats, i as hBarPath };