@iamfiro/design 0.3.2 → 0.3.5

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 (163) hide show
  1. package/agents/INDEX.md +1 -1
  2. package/agents/app-shell/AGENTS.md +99 -1
  3. package/agents/brand-icon/AGENTS.md +1 -1
  4. package/agents/social-login-button/AGENTS.md +4 -3
  5. package/lib/components/Accordion/Accordion2.js +74 -74
  6. package/lib/components/ActionBar/ActionBar2.js +44 -42
  7. package/lib/components/Alert/Alert2.js +67 -67
  8. package/lib/components/AppShell/AppShell2.js +72 -66
  9. package/lib/components/AreaChart/AreaChart.js +45 -45
  10. package/lib/components/BarChart/BarChart2.js +128 -128
  11. package/lib/components/BarList/BarList2.js +105 -105
  12. package/lib/components/Breadcrumb/Breadcrumb2.js +63 -64
  13. package/lib/components/Calendar/Calendar2.js +197 -197
  14. package/lib/components/Calendar/DatePicker2.js +100 -100
  15. package/lib/components/Calendar/date.js +47 -70
  16. package/lib/components/Card/Card2.js +101 -74
  17. package/lib/components/CardFrame/CardFrame2.js +52 -56
  18. package/lib/components/Chart/ChartParts.js +88 -88
  19. package/lib/components/Chart/chart2.js +63 -63
  20. package/lib/components/Chart/useChartInteraction.js +43 -43
  21. package/lib/components/ChatBubble/ChatBubble2.js +111 -111
  22. package/lib/components/ChatBubble/formatChatTime.js +38 -43
  23. package/lib/components/ChatComposer/ChatComposer2.js +96 -96
  24. package/lib/components/CodeBlock/CodeBlock2.js +65 -65
  25. package/lib/components/CodeBlock/highlight.js +84 -84
  26. package/lib/components/ColorPicker/ColorPicker2.js +263 -263
  27. package/lib/components/ColorPicker/color.js +92 -92
  28. package/lib/components/ColorPicker/presets.js +35 -39
  29. package/lib/components/Combobox/Combobox2.js +134 -134
  30. package/lib/components/CommandMenu/CommandMenu.js +130 -131
  31. package/lib/components/Comment/Comment2.js +64 -63
  32. package/lib/components/ContextMenu/ContextMenu2.js +84 -84
  33. package/lib/components/DataGrid/DataGrid2.js +1182 -1180
  34. package/lib/components/DataGrid/GridPopover.js +84 -84
  35. package/lib/components/DataGrid/anchor.js +29 -28
  36. package/lib/components/DataGrid/model.js +308 -307
  37. package/lib/components/DataGrid/panels.js +398 -399
  38. package/lib/components/DataGrid/typeMeta.js +41 -40
  39. package/lib/components/DataGrid/types.js +39 -40
  40. package/lib/components/DescriptionList/DescriptionList2.js +105 -105
  41. package/lib/components/Dialog/AlertDialog.js +90 -89
  42. package/lib/components/Dialog/Dialog2.js +71 -72
  43. package/lib/components/Dialog/modal.js +62 -60
  44. package/lib/components/Drawer/Drawer2.js +167 -166
  45. package/lib/components/DropdownMenu/DropdownMenu2.js +260 -258
  46. package/lib/components/DropdownMenu/menuCore.js +29 -28
  47. package/lib/components/Dropzone/Dropzone2.js +78 -77
  48. package/lib/components/EmptyState/EmptyState2.js +57 -57
  49. package/lib/components/FileChip/FileChip2.js +53 -77
  50. package/lib/components/FileUpload/FileUpload.js +168 -167
  51. package/lib/components/FilterChips/FilterChips2.js +60 -60
  52. package/lib/components/FunnelChart/FunnelChart2.js +174 -174
  53. package/lib/components/FunnelChart/funnel.js +44 -42
  54. package/lib/components/Highlight/Highlight2.js +55 -55
  55. package/lib/components/HoverCard/HoverCard.js +71 -96
  56. package/lib/components/InlineDiff/InlineDiff2.js +128 -129
  57. package/lib/components/InlineDiff/diff.js +79 -79
  58. package/lib/components/InlineDiff/useDiffReview.js +61 -62
  59. package/lib/components/Kanban/Kanban2.js +387 -389
  60. package/lib/components/Kanban/KanbanCard.js +84 -84
  61. package/lib/components/Kanban/move.js +32 -25
  62. package/lib/components/LineChart/LineChart2.js +228 -228
  63. package/lib/components/List/List2.js +62 -62
  64. package/lib/components/Listbox/Listbox2.js +92 -92
  65. package/lib/components/Marker/Marker2.js +50 -56
  66. package/lib/components/Menubar/Menubar2.js +117 -116
  67. package/lib/components/MultiSelect/MultiSelect2.js +111 -111
  68. package/lib/components/NavigationMenu/NavigationMenu2.js +231 -231
  69. package/lib/components/NoticeStack/NoticeStack2.js +99 -99
  70. package/lib/components/NumberStepper/NumberStepper2.js +60 -60
  71. package/lib/components/OtpInput/OtpInput2.js +90 -89
  72. package/lib/components/Pagination/Pagination2.js +105 -105
  73. package/lib/components/Pagination/paginationRange.js +37 -37
  74. package/lib/components/PhoneInput/PhoneInput.js +75 -76
  75. package/lib/components/PieChart/PieChart2.js +166 -166
  76. package/lib/components/PieChart/arc.js +71 -69
  77. package/lib/components/PieChart/useArcTween.js +60 -62
  78. package/lib/components/Popover/Popover2.js +85 -86
  79. package/lib/components/ProgressTracker/ProgressTracker2.js +134 -134
  80. package/lib/components/Rating/Rating2.js +90 -89
  81. package/lib/components/Resizable/Resizable2.js +128 -129
  82. package/lib/components/Resizable/layout.js +51 -51
  83. package/lib/components/ScaledPreview/ScaledPreview2.js +49 -48
  84. package/lib/components/ScatterChart/ScatterChart2.js +214 -213
  85. package/lib/components/ScatterChart/scatter.js +49 -52
  86. package/lib/components/ScrollArea/ScrollArea2.js +115 -117
  87. package/lib/components/Select/Select2.js +82 -82
  88. package/lib/components/Sidebar/Sidebar2.js +91 -85
  89. package/lib/components/Sidebar/rail.js +43 -0
  90. package/lib/components/Skeleton/Skeleton2.js +63 -64
  91. package/lib/components/Slider/Slider2.js +65 -66
  92. package/lib/components/SocialLoginButton/SocialLoginButton.js +76 -69
  93. package/lib/components/SparkChart/SparkChart2.js +126 -127
  94. package/lib/components/SparkChart/spark.js +66 -42
  95. package/lib/components/Sparkbar/Sparkbar2.js +60 -60
  96. package/lib/components/SplitView/SplitView2.js +51 -51
  97. package/lib/components/Stat/Stat2.js +79 -79
  98. package/lib/components/StepList/StepList2.js +75 -75
  99. package/lib/components/Table/Table2.js +71 -71
  100. package/lib/components/Tabs/Tabs2.js +74 -74
  101. package/lib/components/TagInput/TagInput2.js +223 -221
  102. package/lib/components/TimePicker/TimePicker2.js +197 -195
  103. package/lib/components/TimePicker/time.js +59 -56
  104. package/lib/components/Timeline/Timeline2.js +195 -195
  105. package/lib/components/Timeline/scale.js +64 -66
  106. package/lib/components/Toast/Toaster.js +139 -139
  107. package/lib/components/Toast/store.js +72 -76
  108. package/lib/components/ToggleGroup/ToggleGroup2.js +79 -79
  109. package/lib/components/Toolbar/Toolbar2.js +165 -164
  110. package/lib/components/Tracker/Tracker2.js +72 -72
  111. package/lib/components/TreeDiagram/TreeDiagram2.js +96 -97
  112. package/lib/components/TreeView/TreeView2.js +152 -151
  113. package/lib/hooks/timing.js +34 -36
  114. package/lib/hooks/useControllableState.js +29 -30
  115. package/lib/hooks/useCountdown.js +51 -53
  116. package/lib/hooks/useDigitInput.js +81 -55
  117. package/lib/hooks/useDismiss.js +53 -56
  118. package/lib/hooks/useElapsed.js +48 -49
  119. package/lib/hooks/useFloating.js +36 -36
  120. package/lib/hooks/useFocusTrap.js +32 -32
  121. package/lib/hooks/usePresence.js +49 -49
  122. package/lib/hooks/usePressToOpen.js +40 -40
  123. package/lib/hooks/useScrollLock.js +50 -49
  124. package/lib/hooks/useSelection.js +42 -47
  125. package/lib/index.js +138 -139
  126. package/lib/primitives/AspectRatio2.js +58 -57
  127. package/lib/primitives/BrandIcon.js +210 -179
  128. package/lib/primitives/ColorDot2.js +42 -41
  129. package/lib/primitives/CopyButton2.js +59 -58
  130. package/lib/primitives/CountBadge2.js +58 -63
  131. package/lib/primitives/Countdown2.js +38 -37
  132. package/lib/primitives/Delta2.js +37 -37
  133. package/lib/primitives/Elapsed.js +42 -40
  134. package/lib/primitives/FileIcon2.js +102 -102
  135. package/lib/primitives/Flag2.js +124 -124
  136. package/lib/primitives/IconStack2.js +45 -23
  137. package/lib/primitives/IconTile2.js +45 -41
  138. package/lib/primitives/Kbd2.js +48 -48
  139. package/lib/primitives/Layout2.js +71 -71
  140. package/lib/primitives/Link2.js +40 -42
  141. package/lib/primitives/MaskedText2.js +50 -50
  142. package/lib/primitives/Progress2.js +78 -77
  143. package/lib/primitives/RelativeTime.js +55 -58
  144. package/lib/primitives/SearchInput2.js +72 -68
  145. package/lib/primitives/SelectorButton2.js +60 -61
  146. package/lib/primitives/Spinner2.js +48 -49
  147. package/lib/primitives/StatusIcon2.js +69 -69
  148. package/lib/primitives/Swatch2.js +65 -69
  149. package/lib/primitives/Tooltip2.js +92 -92
  150. package/lib/primitives/Typography2.js +37 -37
  151. package/lib/primitives/formatCountdown.js +38 -38
  152. package/lib/primitives/formatElapsed.js +43 -45
  153. package/lib/primitives/formatRelativeTime.js +54 -54
  154. package/lib/primitives/hotkey.js +77 -77
  155. package/lib/primitives/index.js +162 -161
  156. package/lib/primitives/maskValue.js +54 -51
  157. package/lib/style.css +1 -1
  158. package/lib/types/components/AppShell/AppShell.d.ts +9 -2
  159. package/lib/types/components/Sidebar/rail.d.ts +4 -0
  160. package/lib/types/components/SocialLoginButton/SocialLoginButton.d.ts +1 -1
  161. package/lib/types/components/index.d.ts +1 -0
  162. package/lib/types/primitives/BrandIcon.d.ts +1 -1
  163. package/package.json +1 -1
@@ -1,233 +1,233 @@
1
1
  "use client";
2
- const e = s;
2
+ const e = m;
3
3
  (function(e, t) {
4
- let n = s, r = e();
4
+ let n = m, r = e();
5
5
  for (;;) try {
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;
6
+ if (parseInt(n(462)) / 1 + -parseInt(n(448)) / 2 + -parseInt(n(479)) / 3 + parseInt(n(482)) / 4 * (-parseInt(n(451)) / 5) + -parseInt(n(489)) / 6 * (parseInt(n(461)) / 7) + -parseInt(n(459)) / 8 + parseInt(n(476)) / 9 == t) break;
7
7
  r.push(r.shift());
8
8
  } catch {
9
9
  r.push(r.shift());
10
10
  }
11
- })(a, 879864);
11
+ })(p, 980069);
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
- function a() {
16
- let e = /* @__PURE__ */ "idmWjsWGDMfYkc0TC3vYzMfJzsKP.zhjVCfjHDgu.BwLU.Dgv4Da.ota5nteYruXsrNrR.CMvJDa.zhmTy2HHCNrFx3bSB3q.BwfW.lwXPDMu.C3bHBG.zw5K.zNjVBvbYzxzPB3vZ.Agf0y2HLza.BwLK.B3rOzxi.zhmTzNvUBMvSlwnOyxj0.y29SB3i.zhmTzNvUBMvSlwnOyxj0x19KCM9W.ChGSia.7j207kceioUlQoQZHcdRJidRUyq.mte1ntG0mZbqqKjQuNG.imk3ia.zhmTy2HHCNrFx3rPCa.DhjHBNnSyxrLka.Ag9YAxPVBNrHBa.zgL2.ls1JAgfYDc1ZzxeTmq.zhmTy2HHCNq.mti1ndmWmhjSsgziAG.DhjHBNnSyxrLwcG.mJmZmJK0mtbIt2POyNi.DxnLCLnWywnLt25vC2u.y2XPzw50wa.mtKXngTMEgfhEq.7y2864sqioYWQo2kUa.7lkRioUlQoQZHcdRJidRUyq.lcdSNBtTG4GG.y29UDMvYC2LVBG.zgvMCW.ChGP.mtr3CNvKAMe.mtfYugHKCfy.mteYu1PVu05W.zhmTy2HHCNrFx3n2zYbKCY1MDw5UzwWTy2HHCNrFx3n2zW.zhmTzNvUBMvSlwnOyxj0x19SywjLBa.BgLUzq.ntq5mZC2mgzcA3bjsq.C2vJB25Kyxj5.Bwf4.A2v5.y2XPzw50wq.zhmTzNvUBMvSlwnOyxj0x19Iyw5K.D2LKDgG.BgvUz3rO.y2vPBa.DMfSDwu.Cgf0Aa.zhmTzNvUBMvSlwnOyxj0x192ywX1zq.zhmTzNvUBMvSlwnOyxj0x19Iyxi.DhjHBNnSyxrLwsG.zMXVB3i.nZqWnZnWqxrbu1q.B3bLBG.y2XVC2vK.DMfYkc0Ty2HHCNqTC2vXlq.CM91BMq.mtmZmdvHAvnrrhi.y29SB3iTBwL4kgLUihnYz2iSia.yM9KEs1ZBq.z2v0qM91BMrPBMDdBgLLBNrszwn0.ChjLDMLVDxm.BwLKzgXL.Cg9SAxrL.zhjVCa.zhmTzNvUBMvSlwnOyxj0x19Wy3q.BgfIzwW.yMfY.lwHHDgnOlq.zMLYC3q".split(".");
17
- return a = function() {
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 l } from "../Chart/chart2.js";
18
+ import { useChartInteraction as u } from "../Chart/useChartInteraction.js";
19
+ import { estimateTextWidth as d, funnelStats as te, hBarPath as f } from "./funnel.js";
20
+ function p() {
21
+ let e = /* @__PURE__ */ "Agf0y2HLza.zhmTy2HHCNrFx3nY.zhmTzNvUBMvSlwnOyxj0x19Wy3q.ls1JAgfYDc1ZzxeTmq.BgvMDa.zhmTzNvUBMvSlwnOyxj0x192ywX1zq.Dg9W.zhmTzNvUBMvSlwnOyxj0x19KCM9W.y29SB3iTBwL4kgLUihnYz2iSia.mtm1nJe4ogfJA0LlzW.lwXPDMu.A2v5.mtC2ndu1qNforfnk.BgvUz3rO.idmWjsWGDMfYkc0TC3vYzMfJzsKP.y2XVC2vK.DhjHBNnSyxrLwcG.imk3ia.zhmTy2HHCNrFx3n2zYbKCY1MDw5UzwWTy2HHCNrFx3n2zW.DhjHBNnSyxrLwsG.mti3mJCYnJrewvnQDMO.lwHHDgnOlq.mZCXyuj6tNfb.nZC3mtiYD2jhBeXL.DMfSDwu.Ag9YAxPVBNrHBa.7lkRioUlQoQZHcdRJidRUyq.zhmTy2HHCNq.BwfW.zhmTzNvUBMvSlwnOyxj0x19ZDgvW.C2vJB25Kyxj5.B3bLBG.D2LKDgG.7y2864sqioYWQo2kUa.zNjVBvbYzxzPB3vZ.DMfYkc0Ty2HHCNqTC2vXlq.y2vPBa.nJaXnJG4mZrRuePTy20.zhjVCa.zhmTzNvUBMvSlwnOyxj0x19Iyw5K.ntC1mJi2nNHjzM1eta.BgfIzwW.Cgf0Aa.mtG4CxDyu050.z2v0qM91BMrPBMDdBgLLBNrszwn0.DxnLCLnWywnLt25vC2u.zhmTzNvUBMvSlwnOyxj0x19Iyxi.Dgv4Da.CM91BMq.yM9KEs1ZBq.nZiXntzvt2zNENy.DhjHBNnSyxrLka.CM90yxrLkdq1kq.Cgf0DgvYBG.y2XPzw50wq.zgvMCW.y29UDMvYC2LVBG.zMLYC3q.zw5K.y29SB3i.DxjSkcm.BwLK.ChGSia.zNjVBuzPCNn0.Bwf4.ChGP.BwLU.zMXVB3i.CMvJDa.zhmTy2HHCNrFx3rPCa.zhmTy2HHCNrFx3bSB3q.BwLKzgXL.ChjLDMLVDxm".split(".");
22
+ return p = function() {
18
23
  return e;
19
- }, a();
24
+ }, p();
20
25
  }
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) {
26
+ /* empty css */
27
+ import { useId as ne } from "react";
28
+ function m(e, t) {
29
+ e -= 419;
30
+ let n = p(), r = n[e];
31
+ m.zlCHZr === void 0 && (m.mOfeZE = function(e) {
27
32
  let t = "", n = "";
28
33
  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);
29
34
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
30
35
  return decodeURIComponent(n);
31
- }, s.MQCfsN = {}, s.GGCxEt = !0);
36
+ }, m.yjLaya = {}, m.zlCHZr = !0);
32
37
  let i = n[0];
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;
38
+ m.uBWYKG !== i && (m.yjLaya = {}, m.uBWYKG = i);
39
+ let a = m.yjLaya[e];
40
+ return a === void 0 ? (r = m.mOfeZE(r), m.yjLaya[e] = r) : r = a, r;
36
41
  }
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
- /* empty css */
41
- import { useId as re } from "react";
42
- import { jsx as m, jsxs as h } from "react/jsx-runtime";
43
- var g = 14, ie = 28, _ = 8, v = 4, y = 44;
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
- count: k,
47
- activeIndex: ce,
48
- defaultActiveIndex: le,
49
- onActiveIndexChange: ue,
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
- if (I) {
42
+ import { jsx as h, jsxs as g } from "react/jsx-runtime";
43
+ var _ = 14, re = 28, v = 8, y = 4, b = 44;
44
+ function x({ data: p, orientation: m = e(464), calculateFrom: x = e(423), color: ie = e(442), gradient: ae = !1, showDropOff: S = !0, height: C = 260, barSize: w = 32, formatValue: T = ee, formatPercent: E = l, legend: oe = !0, activeIndex: se, defaultActiveIndex: ce, onActiveIndexChange: le, "aria-label": ue = e(472), className: de, style: fe }) {
45
+ let D = e, O = ne(), k = te(p, x), A = k[D(452)], { open: j, shown: M, settled: pe, width: N, tipRef: me, tipSize: P, hover: he, leave: ge, plotProps: _e } = u({
46
+ count: A,
47
+ activeIndex: se,
48
+ defaultActiveIndex: ce,
49
+ onActiveIndexChange: le,
50
+ initialKeyboardIndex: D(423)
51
+ }), F = m === D(464), ve = Math[D(430)](0, ...k[D(467)]((e) => e[D(463)])) || 1, I = (e) => {
52
+ let t = D, n = k[e]?.[t(425)];
53
+ return n ? c(n, e) : ae ? t(474) + (A > 1 ? 1 + Math[t(487)](e * 3 / (A - 1)) : 1) + ")" : c(ie, 0);
54
+ }, ye = (e) => D(447) + e + D(453), L = F ? Math[D(475)](Math[D(430)](0, ...k.map((e) => d(e.label)))) + 16 : 0, R = Math[D(475)](Math[D(430)](0, ...k[D(467)]((e) => d(T(e.value, e))))) + 4, be = F ? 16 + R + 10 + b : 0, xe = Math[D(430)](0, N - L - be), z = w + _, B = F ? Math[D(430)](0, A * w + (A - 1) * _) : C, V = C - re, Se = Math[D(430)](0, V - 50), H = A ? N / A : 0, U = H * .78, W = (e) => e / ve * (F ? xe : Se), G = k.map((e, t) => {
55
+ let n = D, r = t ? k[t - 1][n(463)] : e[n(463)], i = W(e.value), a = W(Math[n(430)](r, e.value));
56
+ if (F) {
57
57
  let e = t * z;
58
58
  return {
59
- bar: p(R, e, i, C, v),
60
- drop: p(R + i, e, a - i, C, v),
61
- end: R + a,
62
- mid: e + C / 2
59
+ bar: f(L, e, i, w, y),
60
+ drop: f(L + i, e, a - i, w, y),
61
+ end: L + a,
62
+ mid: e + w / 2
63
63
  };
64
64
  }
65
65
  let o = t * H + (H - U) / 2;
66
66
  return {
67
- bar: c(o, V - i, U, i, v),
68
- drop: c(o, V - a, U, a - i, v),
67
+ bar: s(o, V - i, U, i, y),
68
+ drop: s(o, V - a, U, a - i, y),
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(246) ? E(203) : E(187), J = b === E(246) ? E(238) : "first", Ce = K && j !== null ? [{
73
- key: "conversion",
74
- label: q(b),
75
- color: L(j),
76
- value: T(K[E(205)])
77
- }, ...j > 0 ? [{
78
- key: E(182),
72
+ }), K = M === null ? void 0 : k[M], q = (e) => e === "first" ? D(465) : "이전 단계 대비", J = x === D(423) ? D(438) : D(423), Ce = K && M !== null ? [{
73
+ key: D(422),
74
+ label: q(x),
75
+ color: I(M),
76
+ value: E(K[D(422)])
77
+ }, ...M > 0 ? [{
78
+ key: "other",
79
79
  label: q(J),
80
- color: L(j),
81
- value: T(J === E(246) ? K.fromFirst : K[E(179)])
80
+ color: I(M),
81
+ value: E(J === D(423) ? K[D(429)] : K[D(473)])
82
82
  }, {
83
- key: E(241),
83
+ key: D(477),
84
84
  label: "이탈",
85
- color: ve(L(j - 1)),
86
- value: w(K[E(241)], K) + E(189) + T(K[E(248)])
87
- }] : []] : [], Y = j === null ? void 0 : G[j], X = 0, Z = 0;
88
- if (Y && j !== null) {
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));
85
+ color: ye(I(M - 1)),
86
+ value: T(K.drop, K) + D(456) + E(K.dropRate)
87
+ }] : []] : [], Y = M === null ? void 0 : G[M], X = 0, Z = 0;
88
+ if (Y && M !== null) {
89
+ if (F) X = Math[D(430)](0, Math.min(Y[D(424)] + v, N - P.w)), Z = Math[D(430)](0, Math[D(432)](Y[D(427)] - P.h / 2, B - P.h));
90
90
  else {
91
- let e = j * H;
92
- X = Y[E(178)] + _ + N.w > M ? Math[E(216)](0, e - _ - N.w) : Y.end + _, Z = 50;
91
+ let e = M * H;
92
+ X = Y.end + v + P.w > N ? Math.max(0, e - v - P.w) : Y[D(424)] + v, Z = 50;
93
93
  }
94
94
  }
95
- let Q = j === null ? 0 : I ? j * z - g / 2 : j * H, $ = (e) => {
96
- let t = E;
97
- if (!k) return;
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
- return h(i, {
95
+ let Q = M === null ? 0 : F ? M * z - _ / 2 : M * H, $ = (e) => {
96
+ let t = D;
97
+ if (!A) return;
98
+ let n = e.currentTarget[t(483)](), r = F ? Math[t(433)]((e[t(420)] - n[t(445)] + _ / 2) / z) : Math.floor((e.clientX - n[t(443)]) / n[t(471)] * A);
99
+ he(Math[t(432)](A - 1, Math[t(430)](0, r)));
100
+ }, we = j && K ? K[D(480)] + ": " + T(K[D(463)], K) + ", " + q(x) + " " + E(K[D(422)]) + (M ? ", 이탈 " + T(K[D(477)], K) : "") : "";
101
+ return g(i, {
102
102
  gap: 3,
103
- className: o(E(195), E(183), fe),
104
- style: pe,
105
- children: [h(E(193), {
106
- ...F,
107
- className: E(174),
103
+ className: a(D(466), "ds-funnel-chart", de),
104
+ style: fe,
105
+ children: [g("div", {
106
+ ..._e,
107
+ className: D(436),
108
108
  style: { height: B },
109
- "data-orientation": s,
110
- "aria-roledescription": E(202),
111
- "aria-label": de,
112
- "aria-describedby": D + "-live",
109
+ "data-orientation": m,
110
+ "aria-roledescription": D(472),
111
+ "aria-label": ue,
112
+ "aria-describedby": O + D(449),
113
113
  children: [
114
- M > 0 && h("svg", {
115
- className: E(211),
116
- width: M,
114
+ N > 0 && g("svg", {
115
+ className: D(457),
116
+ width: N,
117
117
  height: B,
118
118
  "aria-hidden": !0,
119
- "data-orientation": s,
119
+ "data-orientation": m,
120
120
  children: [
121
- m(E(206), { children: O[E(175)]((e, t) => t > 0 ? h("pattern", {
122
- id: D + E(245) + t,
121
+ h(D(421), { children: k[D(467)]((e, t) => t > 0 ? g(D(419), {
122
+ id: O + "-hatch-" + t,
123
123
  width: 6,
124
124
  height: 6,
125
- patternUnits: E(199),
126
- patternTransform: "rotate(45)",
127
- children: [m(E(173), {
125
+ patternUnits: D(484),
126
+ patternTransform: D(491),
127
+ children: [h(D(434), {
128
128
  width: 6,
129
129
  height: 6,
130
130
  style: {
131
- fill: L(t - 1),
131
+ fill: I(t - 1),
132
132
  fillOpacity: .1
133
133
  }
134
- }), m(E(213), {
134
+ }), h("line", {
135
135
  x1: 1.5,
136
136
  y1: 0,
137
137
  x2: 1.5,
138
138
  y2: 6,
139
139
  style: {
140
- stroke: L(t - 1),
140
+ stroke: I(t - 1),
141
141
  strokeWidth: 3,
142
142
  strokeOpacity: .28
143
143
  }
144
144
  })]
145
- }, e[E(217)]) : null) }),
146
- m("rect", {
147
- className: E(219),
148
- "data-state": E(A ? 230 : 231),
145
+ }, e[D(450)]) : null) }),
146
+ h(D(434), {
147
+ className: D(478),
148
+ "data-state": j ? D(470) : "closed",
149
149
  x: 0,
150
150
  y: 0,
151
- width: I ? M : H,
152
- height: I ? z : B,
151
+ width: F ? N : H,
152
+ height: F ? z : B,
153
153
  rx: 8,
154
- style: { transform: I ? E(227) + Q + "px)" : E(197) + Q + E(207) }
154
+ style: { transform: F ? D(458) + Q + D(431) : D(455) + Q + "px)" }
155
155
  }),
156
- O[E(175)]((e, t) => {
157
- let n = E, r = G[t], i = A && j !== t || void 0, a = { "--_i": t };
158
- return h("g", {
159
- className: "ds-funnel-chart__step",
156
+ k.map((e, t) => {
157
+ let n = D, r = G[t], i = j && M !== t || void 0, a = { "--_i": t };
158
+ return g("g", {
159
+ className: n(468),
160
160
  "data-faded": i,
161
- children: [x && t > 0 && m(n(224), {
162
- className: n(185),
163
- d: r[n(241)],
164
- fill: "url(#" + D + n(245) + t + ")",
161
+ children: [S && t > 0 && h(n(481), {
162
+ className: n(446),
163
+ d: r[n(477)],
164
+ fill: n(426) + O + n(460) + t + ")",
165
165
  style: a
166
- }), m(n(224), {
167
- className: n(226),
168
- d: r[n(244)],
169
- fill: L(t),
166
+ }), h(n(481), {
167
+ className: n(485),
168
+ d: r.bar,
169
+ fill: I(t),
170
170
  style: a
171
171
  })]
172
- }, e[n(217)]);
172
+ }, e[n(450)]);
173
173
  }),
174
- O[E(175)]((e, t) => {
175
- let n = E, r = G[t], i = w(e[n(223)], e), a = T(e.conversion);
176
- return I ? h("g", { children: [
177
- m("text", {
178
- className: n(212),
174
+ k[D(467)]((e, t) => {
175
+ let n = D, r = G[t], i = T(e[n(463)], e), a = E(e[n(422)]);
176
+ return F ? g("g", { children: [
177
+ h(n(486), {
178
+ className: "ds-funnel-chart__label",
179
179
  x: 0,
180
- y: r[n(181)],
180
+ y: r[n(427)],
181
181
  dominantBaseline: "middle",
182
- children: e[n(243)]
182
+ children: e.label
183
183
  }),
184
- m(n(250), {
185
- className: n(225),
186
- x: M - y - 10,
187
- y: r[n(181)],
188
- dominantBaseline: n(239),
189
- textAnchor: n(178),
184
+ h(n(486), {
185
+ className: n(444),
186
+ x: N - b - 10,
187
+ y: r.mid,
188
+ dominantBaseline: n(437),
189
+ textAnchor: n(424),
190
190
  children: i
191
191
  }),
192
- m(n(250), {
193
- className: n(242),
194
- x: M,
195
- y: r.mid,
196
- dominantBaseline: n(239),
197
- textAnchor: "end",
192
+ h(n(486), {
193
+ className: n(441),
194
+ x: N,
195
+ y: r[n(427)],
196
+ dominantBaseline: n(437),
197
+ textAnchor: n(424),
198
198
  children: a
199
199
  })
200
- ] }, e[n(217)]) : h("g", { children: [
201
- m("text", {
202
- className: n(225),
203
- x: r[n(181)],
200
+ ] }, e.key) : g("g", { children: [
201
+ h(n(486), {
202
+ className: "ds-funnel-chart__value",
203
+ x: r.mid,
204
204
  y: 16,
205
- dominantBaseline: n(239),
206
- textAnchor: n(239),
205
+ dominantBaseline: n(437),
206
+ textAnchor: n(437),
207
207
  children: i
208
208
  }),
209
- m(n(250), {
210
- className: "ds-funnel-chart__pct",
211
- x: r[n(181)],
209
+ h(n(486), {
210
+ className: n(441),
211
+ x: r.mid,
212
212
  y: 35,
213
- dominantBaseline: n(239),
214
- textAnchor: n(239),
213
+ dominantBaseline: n(437),
214
+ textAnchor: "middle",
215
215
  children: a
216
216
  }),
217
- m(n(250), {
218
- className: n(212),
219
- x: r[n(181)],
220
- y: S - 6,
221
- textAnchor: n(239),
222
- children: e[n(243)]
217
+ h(n(486), {
218
+ className: "ds-funnel-chart__label",
219
+ x: r[n(427)],
220
+ y: C - 6,
221
+ textAnchor: n(437),
222
+ children: e.label
223
223
  })
224
- ] }, e[n(217)]);
224
+ ] }, e[n(450)]);
225
225
  }),
226
- m(E(173), {
226
+ h(D(434), {
227
227
  className: "ds-chart__hit",
228
228
  x: 0,
229
229
  y: 0,
230
- width: M,
230
+ width: N,
231
231
  height: B,
232
232
  onPointerMove: $,
233
233
  onPointerDown: $,
@@ -235,49 +235,49 @@ function b({ data: a, orientation: s = e(192), calculateFrom: b = e(246), color:
235
235
  })
236
236
  ]
237
237
  }),
238
- m("div", {
239
- ref: he,
240
- className: E(190),
241
- "data-state": A ? "open" : E(231),
242
- "data-settled": me || void 0,
243
- style: { transform: E(191) + X + E(186) + Z + "px)" },
238
+ h("div", {
239
+ ref: me,
240
+ className: D(435),
241
+ "data-state": D(j ? 470 : 454),
242
+ "data-settled": pe || void 0,
243
+ style: { transform: D(490) + X + D(428) + Z + "px)" },
244
244
  "aria-hidden": !0,
245
- children: m(ee, {
246
- title: K?.[E(243)],
247
- value: K ? w(K[E(223)], K) : void 0,
245
+ children: h(o, {
246
+ title: K?.[D(480)],
247
+ value: K ? T(K[D(463)], K) : void 0,
248
248
  rows: Ce
249
249
  })
250
250
  }),
251
- m(E(177), {
252
- id: D + E(176),
253
- className: "ds-chart__sr",
254
- "aria-live": E(240),
251
+ h("span", {
252
+ id: O + "-live",
253
+ className: D(440),
254
+ "aria-live": "polite",
255
255
  children: we
256
256
  })
257
257
  ]
258
- }), se && x && h(r, {
258
+ }), oe && S && g(r, {
259
259
  gap: 4,
260
- children: [h(r, {
260
+ children: [g(r, {
261
261
  gap: 2,
262
262
  wrap: !1,
263
- children: [m(n, { color: L(0) }), m(t, {
264
- variant: E(236),
265
- tone: E(215),
263
+ children: [h(n, { color: I(0) }), h(t, {
264
+ variant: D(488),
265
+ tone: D(469),
266
266
  children: "전환"
267
267
  })]
268
- }), h(r, {
268
+ }), g(r, {
269
269
  gap: 2,
270
270
  wrap: !1,
271
- children: [m(n, {
272
- color: L(0),
273
- variant: E(180)
274
- }), m(t, {
275
- variant: "body-sm",
276
- tone: E(215),
271
+ children: [h(n, {
272
+ color: I(0),
273
+ variant: D(439)
274
+ }), h(t, {
275
+ variant: D(488),
276
+ tone: D(469),
277
277
  children: "이탈"
278
278
  })]
279
279
  })]
280
280
  })]
281
281
  });
282
282
  }
283
- export { b as FunnelChart };
283
+ export { x as FunnelChart };
@@ -1,69 +1,71 @@
1
1
  "use client";
2
2
  const e = r;
3
- function t() {
4
- let e = [
5
- "mZeWmduZDxHHvMDf",
6
- "odiYmdK2t2HSvufo",
7
- "nwHbD0Pwsa",
8
- "nteWntG4Dxz1uLr0",
9
- "mtzOyMHXEgO",
10
- "nMHJsuzYza",
11
- "zNjVBq",
12
- "nta4odeZognOv0XIDa",
13
- "mty5oty0oxvyBfPPEq",
14
- "mJqWmZa5AeDbuMDO",
15
- "Bwf4",
16
- "owvTqLLWrq",
17
- "zMLYC3q",
18
- "mtuXnZi3mgjVvu9Wwa",
19
- "DMfSDwu",
20
- "BwfW"
21
- ];
22
- return t = function() {
23
- return e;
24
- }, t();
25
- }
26
3
  (function(e, t) {
27
4
  let n = r, i = e();
28
5
  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;
6
+ if (-parseInt(n(389)) / 1 + -parseInt(n(401)) / 2 * (parseInt(n(391)) / 3) + -parseInt(n(406)) / 4 * (parseInt(n(400)) / 5) + -parseInt(n(402)) / 6 * (-parseInt(n(393)) / 7) + -parseInt(n(392)) / 8 + parseInt(n(398)) / 9 + parseInt(n(397)) / 10 == t) break;
30
7
  i.push(i.shift());
31
8
  } catch {
32
9
  i.push(i.shift());
33
10
  }
34
- })(t, 560015);
35
- function n(e, t) {
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;
11
+ })(n, 598284);
12
+ function t(e, t) {
13
+ let n = r, i = e[0]?.[n(405)] ?? 0;
14
+ return e[n(395)]((r, a) => {
15
+ let o = n, s = Math[o(403)](0, r[o(405)]), c = a ? Math.max(0, e[a - 1].value) : s, l = a === 0 ? 1 : i > 0 ? s / i : 0, u = a === 0 ? 1 : c > 0 ? s / c : 0, d = a ? Math[o(403)](0, c - s) : 0;
39
16
  return {
40
17
  ...r,
41
18
  value: s,
42
19
  fromFirst: l,
43
20
  fromPrevious: u,
44
- conversion: t === o(503) ? l : u,
21
+ conversion: t === o(394) ? l : u,
45
22
  drop: d,
46
23
  dropRate: a && c > 0 ? d / c : 0
47
24
  };
48
25
  });
49
26
  }
50
- function r(e, n) {
51
- e -= 492;
52
- let i = t(), a = i[e];
53
- r.tPzIhD === void 0 && (r.XvSIYx = function(e) {
27
+ function n() {
28
+ let e = [
29
+ "DMfSDwu",
30
+ "mJHsq2PXEgC",
31
+ "ota2oti0zfjcserY",
32
+ "y29KzvbVAw50qxq",
33
+ "m2Poz294qG",
34
+ "nJi2mZmXmM5drxjxuW",
35
+ "mZKYntG3m1PAvxnTra",
36
+ "zMLYC3q",
37
+ "BwfW",
38
+ "zNjVBq",
39
+ "mtGXmJC3nZbHvhbyvvm",
40
+ "oti0mJG1nNbqAwvMAq",
41
+ "BwLU",
42
+ "mtGYmti1Dhrgq0rx",
43
+ "mtCXntaWnKriz0DXzW",
44
+ "nLHbuuvsCG",
45
+ "Bwf4",
46
+ "CMvKDwnL"
47
+ ];
48
+ return n = function() {
49
+ return e;
50
+ }, n();
51
+ }
52
+ function r(e, t) {
53
+ e -= 389;
54
+ let i = n(), a = i[e];
55
+ r.meFgBJ === void 0 && (r.qCRGeK = function(e) {
54
56
  let t = "", n = "";
55
57
  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);
56
58
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
57
59
  return decodeURIComponent(n);
58
- }, r.FPHkna = {}, r.tPzIhD = !0);
60
+ }, r.kCvhev = {}, r.meFgBJ = !0);
59
61
  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;
62
+ r.MRrUTB !== o && (r.kCvhev = {}, r.MRrUTB = o);
63
+ let s = r.kCvhev[e];
64
+ return s === void 0 ? (a = r.qCRGeK(a), r.kCvhev[e] = a) : a = s, a;
63
65
  }
64
66
  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";
67
+ let o = r, s = Math[o(403)](0, Math[o(399)](a, i / 2, n));
68
+ return "M" + e + "," + t + "H" + (e + n - s) + "Q" + (e + n) + "," + t + " " + (e + n) + "," + (t + s) + "V" + (t + i - s) + "Q" + (e + n) + "," + (t + i) + " " + (e + n - s) + "," + (t + i) + "H" + e + "Z";
67
69
  }
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 };
70
+ var a = (t) => Array[e(396)](t)[e(404)]((t, n) => t + ((n[e(390)](0) ?? 0) >= 11904 ? 13 : 7.5), 0);
71
+ export { a as estimateTextWidth, t as funnelStats, i as hBarPath };