@iamfiro/design 0.3.2 → 0.3.4

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 (158) hide show
  1. package/agents/INDEX.md +1 -1
  2. package/agents/brand-icon/AGENTS.md +1 -1
  3. package/agents/social-login-button/AGENTS.md +4 -3
  4. package/lib/components/Accordion/Accordion2.js +87 -87
  5. package/lib/components/ActionBar/ActionBar2.js +42 -44
  6. package/lib/components/Alert/Alert2.js +61 -61
  7. package/lib/components/AppShell/AppShell2.js +70 -71
  8. package/lib/components/AreaChart/AreaChart.js +38 -40
  9. package/lib/components/BarChart/BarChart2.js +126 -126
  10. package/lib/components/BarList/BarList2.js +95 -95
  11. package/lib/components/Breadcrumb/Breadcrumb2.js +68 -66
  12. package/lib/components/Calendar/Calendar2.js +164 -164
  13. package/lib/components/Calendar/DatePicker2.js +103 -102
  14. package/lib/components/Calendar/date.js +64 -66
  15. package/lib/components/Card/Card2.js +67 -67
  16. package/lib/components/CardFrame/CardFrame2.js +43 -51
  17. package/lib/components/Chart/ChartParts.js +94 -94
  18. package/lib/components/Chart/chart2.js +52 -52
  19. package/lib/components/Chart/useChartInteraction.js +54 -54
  20. package/lib/components/ChatBubble/ChatBubble2.js +92 -92
  21. package/lib/components/ChatBubble/formatChatTime.js +35 -41
  22. package/lib/components/ChatComposer/ChatComposer2.js +63 -63
  23. package/lib/components/CodeBlock/CodeBlock2.js +61 -61
  24. package/lib/components/CodeBlock/highlight.js +84 -84
  25. package/lib/components/ColorPicker/ColorPicker2.js +387 -386
  26. package/lib/components/ColorPicker/color.js +71 -71
  27. package/lib/components/ColorPicker/presets.js +41 -46
  28. package/lib/components/Combobox/Combobox2.js +117 -118
  29. package/lib/components/CommandMenu/CommandMenu.js +127 -127
  30. package/lib/components/Comment/Comment2.js +86 -60
  31. package/lib/components/ContextMenu/ContextMenu2.js +77 -75
  32. package/lib/components/DataGrid/DataGrid2.js +1192 -1190
  33. package/lib/components/DataGrid/GridPopover.js +94 -94
  34. package/lib/components/DataGrid/anchor.js +34 -31
  35. package/lib/components/DataGrid/model.js +284 -283
  36. package/lib/components/DataGrid/panels.js +398 -399
  37. package/lib/components/DataGrid/typeMeta.js +51 -50
  38. package/lib/components/DataGrid/types.js +38 -39
  39. package/lib/components/DescriptionList/DescriptionList2.js +103 -103
  40. package/lib/components/Dialog/AlertDialog.js +79 -78
  41. package/lib/components/Dialog/Dialog2.js +59 -59
  42. package/lib/components/Dialog/modal.js +44 -46
  43. package/lib/components/Drawer/Drawer2.js +130 -129
  44. package/lib/components/DropdownMenu/DropdownMenu2.js +235 -233
  45. package/lib/components/DropdownMenu/menuCore.js +69 -42
  46. package/lib/components/Dropzone/Dropzone2.js +79 -78
  47. package/lib/components/EmptyState/EmptyState2.js +34 -35
  48. package/lib/components/FileChip/FileChip2.js +73 -73
  49. package/lib/components/FileUpload/FileUpload.js +159 -159
  50. package/lib/components/FilterChips/FilterChips2.js +61 -61
  51. package/lib/components/FunnelChart/FunnelChart2.js +161 -161
  52. package/lib/components/FunnelChart/funnel.js +48 -44
  53. package/lib/components/Highlight/Highlight2.js +43 -43
  54. package/lib/components/HoverCard/HoverCard.js +59 -84
  55. package/lib/components/InlineDiff/InlineDiff2.js +112 -112
  56. package/lib/components/InlineDiff/diff.js +90 -90
  57. package/lib/components/InlineDiff/useDiffReview.js +64 -63
  58. package/lib/components/Kanban/Kanban2.js +386 -387
  59. package/lib/components/Kanban/KanbanCard.js +70 -95
  60. package/lib/components/Kanban/move.js +50 -46
  61. package/lib/components/LineChart/LineChart2.js +211 -211
  62. package/lib/components/List/List2.js +53 -54
  63. package/lib/components/Listbox/Listbox2.js +115 -115
  64. package/lib/components/Marker/Marker2.js +56 -61
  65. package/lib/components/Menubar/Menubar2.js +144 -141
  66. package/lib/components/MultiSelect/MultiSelect2.js +108 -108
  67. package/lib/components/NavigationMenu/NavigationMenu2.js +298 -299
  68. package/lib/components/NoticeStack/NoticeStack2.js +84 -84
  69. package/lib/components/NumberStepper/NumberStepper2.js +65 -66
  70. package/lib/components/OtpInput/OtpInput2.js +70 -69
  71. package/lib/components/Pagination/Pagination2.js +106 -106
  72. package/lib/components/Pagination/paginationRange.js +37 -39
  73. package/lib/components/PhoneInput/PhoneInput.js +87 -88
  74. package/lib/components/PieChart/PieChart2.js +160 -160
  75. package/lib/components/PieChart/arc.js +65 -62
  76. package/lib/components/PieChart/useArcTween.js +53 -60
  77. package/lib/components/Popover/Popover2.js +62 -62
  78. package/lib/components/ProgressTracker/ProgressTracker2.js +121 -121
  79. package/lib/components/Rating/Rating2.js +82 -81
  80. package/lib/components/Resizable/Resizable2.js +126 -127
  81. package/lib/components/Resizable/layout.js +73 -73
  82. package/lib/components/ScaledPreview/ScaledPreview2.js +68 -67
  83. package/lib/components/ScatterChart/ScatterChart2.js +214 -213
  84. package/lib/components/ScatterChart/scatter.js +47 -49
  85. package/lib/components/ScrollArea/ScrollArea2.js +117 -118
  86. package/lib/components/Select/Select2.js +78 -79
  87. package/lib/components/Sidebar/Sidebar2.js +69 -69
  88. package/lib/components/Skeleton/Skeleton2.js +57 -57
  89. package/lib/components/Slider/Slider2.js +73 -74
  90. package/lib/components/SocialLoginButton/SocialLoginButton.js +76 -68
  91. package/lib/components/SparkChart/SparkChart2.js +145 -145
  92. package/lib/components/SparkChart/spark.js +64 -42
  93. package/lib/components/Sparkbar/Sparkbar2.js +60 -60
  94. package/lib/components/SplitView/SplitView2.js +51 -52
  95. package/lib/components/Stat/Stat2.js +90 -90
  96. package/lib/components/StepList/StepList2.js +70 -70
  97. package/lib/components/Table/Table2.js +70 -70
  98. package/lib/components/Tabs/Tabs2.js +81 -81
  99. package/lib/components/TagInput/TagInput2.js +220 -217
  100. package/lib/components/TimePicker/TimePicker2.js +187 -186
  101. package/lib/components/TimePicker/time.js +63 -62
  102. package/lib/components/Timeline/Timeline2.js +199 -199
  103. package/lib/components/Timeline/scale.js +67 -64
  104. package/lib/components/Toast/Toaster.js +100 -98
  105. package/lib/components/Toast/store.js +90 -94
  106. package/lib/components/ToggleGroup/ToggleGroup2.js +76 -76
  107. package/lib/components/Toolbar/Toolbar2.js +163 -161
  108. package/lib/components/Tracker/Tracker2.js +82 -82
  109. package/lib/components/TreeDiagram/TreeDiagram2.js +123 -124
  110. package/lib/components/TreeView/TreeView2.js +154 -152
  111. package/lib/hooks/timing.js +31 -30
  112. package/lib/hooks/useControllableState.js +37 -38
  113. package/lib/hooks/useCountdown.js +53 -56
  114. package/lib/hooks/useDigitInput.js +66 -41
  115. package/lib/hooks/useDismiss.js +55 -58
  116. package/lib/hooks/useElapsed.js +57 -55
  117. package/lib/hooks/useFloating.js +44 -44
  118. package/lib/hooks/useFocusTrap.js +70 -46
  119. package/lib/hooks/usePresence.js +23 -22
  120. package/lib/hooks/usePressToOpen.js +51 -51
  121. package/lib/hooks/useScrollLock.js +57 -58
  122. package/lib/hooks/useSelection.js +49 -52
  123. package/lib/index.js +65 -65
  124. package/lib/primitives/AspectRatio2.js +57 -57
  125. package/lib/primitives/BrandIcon.js +189 -158
  126. package/lib/primitives/ColorDot2.js +50 -45
  127. package/lib/primitives/CopyButton2.js +52 -50
  128. package/lib/primitives/CountBadge2.js +53 -55
  129. package/lib/primitives/Countdown2.js +28 -25
  130. package/lib/primitives/Delta2.js +41 -41
  131. package/lib/primitives/Elapsed.js +47 -47
  132. package/lib/primitives/FileIcon2.js +86 -86
  133. package/lib/primitives/Flag2.js +122 -122
  134. package/lib/primitives/IconStack2.js +55 -31
  135. package/lib/primitives/IconTile2.js +43 -43
  136. package/lib/primitives/Kbd2.js +55 -55
  137. package/lib/primitives/Layout2.js +78 -78
  138. package/lib/primitives/Link2.js +39 -36
  139. package/lib/primitives/MaskedText2.js +74 -52
  140. package/lib/primitives/Progress2.js +67 -66
  141. package/lib/primitives/RelativeTime.js +54 -61
  142. package/lib/primitives/SearchInput2.js +45 -45
  143. package/lib/primitives/SelectorButton2.js +72 -76
  144. package/lib/primitives/Spinner2.js +56 -56
  145. package/lib/primitives/StatusIcon2.js +63 -63
  146. package/lib/primitives/Swatch2.js +55 -61
  147. package/lib/primitives/Tooltip2.js +78 -78
  148. package/lib/primitives/Typography2.js +53 -53
  149. package/lib/primitives/formatCountdown.js +30 -29
  150. package/lib/primitives/formatElapsed.js +46 -49
  151. package/lib/primitives/formatRelativeTime.js +76 -50
  152. package/lib/primitives/hotkey.js +80 -80
  153. package/lib/primitives/index.js +169 -168
  154. package/lib/primitives/maskValue.js +55 -50
  155. package/lib/style.css +1 -1
  156. package/lib/types/components/SocialLoginButton/SocialLoginButton.d.ts +1 -1
  157. package/lib/types/primitives/BrandIcon.d.ts +1 -1
  158. package/package.json +1 -1
@@ -1,137 +1,137 @@
1
1
  "use client";
2
- const e = s;
2
+ const e = f;
3
3
  (function(e, t) {
4
- let n = s, r = e();
4
+ let n = f, 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(327)) / 1 * (-parseInt(n(331)) / 2) + parseInt(n(337)) / 3 * (-parseInt(n(363)) / 4) + -parseInt(n(350)) / 5 + -parseInt(n(339)) / 6 + parseInt(n(364)) / 7 + parseInt(n(326)) / 8 + parseInt(n(315)) / 9 * (parseInt(n(325)) / 10) == t) break;
7
7
  r.push(r.shift());
8
8
  } catch {
9
9
  r.push(r.shift());
10
10
  }
11
- })(a, 879864);
11
+ })(o, 919290);
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
+ function o() {
17
+ let e = /* @__PURE__ */ "y2XPzw50wa.zhmTzNvUBMvSlwnOyxj0x19Iyw5K.z2v0qM91BMrPBMDdBgLLBNrszwn0.DxjSkcm.ngDtqwTcva.mtaYodi1mtbRyLz3B0y.DhjHBNnSyxrLwcG.zhmTzNvUBMvSlwnOyxj0x192ywX1zq.zMXVB3i.DMfYkc0Ty2HHCNqTC2vXlq.lcdSNBtTG4GG.BwfW.zMLYC3q.Ag9YAxPVBNrHBa.zhmTy2HHCNq.B3bLBG.DMfSDwu.BwLK.zNjVBvbYzxzPB3vZ.zhmTy2HHCNrFx3n2zYbKCY1MDw5UzwWTy2HHCNrFx3n2zW.A2v5.ChjLDMLVDxm.7y2864sqioYWQo2kUa.zhmTy2HHCNrFx3nY.ChGP.Dgv4Da.mZm2nZK4odfurePztKK.zhjVCfjHDgu.zhmTy2HHCNrFx3rPCa.y2vPBa.DhjHBNnSyxrLka.y3vYCMvUDfrHCMDLDa.ChGSia.BwLKzgXL.idmWjsWGDMfYkc0TC3vYzMfJzsKP.lwXPDMu.mtbjD2HLCwC.nJG1mtC2oeP0r2Ttra.mvDNuKP6CG.BgfIzwW.y29SB3i.Bwf4.mty4ndG0y0vpqMHW.zhjVCa.y2XPzw50wq.Cgf0DgvYBG.zhmTzNvUBMvSlwnOyxj0x19ZDgvW.zhmTzNvUBMvSlwnOyxj0x19SywjLBa.ntq5ndq0m3jLuKDbCq.yM9KEs1ZBq.otq3mtK0oeHVCfzezq.zhmTzNvUBMvSlwnOyxj0.y2XVC2vK.7lkRioUlQoQZHcdRJidRUyq.D2LKDgG.imk3ia.BgvUz3rO.zw5K.zhmTy2HHCNrFx3bSB3q.BwLU.BgLUzq.odi2oty5nuTvsNbfvW.C3bHBG.Cgf0Aa.zgL2.lwHHDgnOlq.DhjHBNnSyxrLwsG.y29UDMvYC2LVBG.CMvJDa.7j207kceioUlQoQZHcdRJidRUyq".split(".");
18
+ return o = function() {
18
19
  return e;
19
- }, a();
20
+ }, o();
20
21
  }
21
- import { cx as o } from "../../primitives/index.js";
22
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) {
23
+ import { barPath as s, chartColor as c, formatNumber as te, formatPercent as ne } from "../Chart/chart2.js";
24
+ import { useChartInteraction as l } from "../Chart/useChartInteraction.js";
25
+ import { estimateTextWidth as u, funnelStats as re, hBarPath as d } from "./funnel.js";
26
+ function f(e, t) {
27
+ e -= 300;
28
+ let n = o(), r = n[e];
29
+ f.TJqKhw === void 0 && (f.AcTBlD = function(e) {
27
30
  let t = "", n = "";
28
31
  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
32
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
30
33
  return decodeURIComponent(n);
31
- }, s.MQCfsN = {}, s.GGCxEt = !0);
34
+ }, f.HhxFRk = {}, f.TJqKhw = !0);
32
35
  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;
36
+ f.prtjta !== i && (f.HhxFRk = {}, f.prtjta = i);
37
+ let a = f.HhxFRk[e];
38
+ return a === void 0 ? (r = f.AcTBlD(r), f.HhxFRk[e] = r) : r = a, r;
36
39
  }
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
- 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,
41
+ import { useId as ie } from "react";
42
+ import { jsx as p, jsxs as m } from "react/jsx-runtime";
43
+ var h = 14, ae = 28, g = 8, _ = 4, v = 44;
44
+ function y({ data: o, orientation: f = e(302), calculateFrom: y = e(301), color: oe = "--chart-seq-1", gradient: se = !1, showDropOff: b = !0, height: x = 260, barSize: S = 32, formatValue: C = te, formatPercent: w = ne, legend: ce = !0, activeIndex: le, defaultActiveIndex: ue, onActiveIndexChange: de, "aria-label": fe = e(311), className: pe, style: me }) {
45
+ let T = e, E = ie(), D = re(o, y), O = D[T(345)], { open: k, shown: A, settled: he, width: j, tipRef: ge, tipSize: M, hover: N, leave: P, plotProps: F } = l({
46
+ count: O,
47
+ activeIndex: le,
48
+ defaultActiveIndex: ue,
49
+ onActiveIndexChange: de,
50
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)]));
51
+ }), I = f === T(302), _e = Math[T(330)](0, ...D[T(300)]((e) => e[T(305)])) || 1, L = (e) => {
52
+ let t = T, n = D[e]?.[t(329)];
53
+ return n ? c(n, e) : se ? t(368) + (O > 1 ? 1 + Math.round(e * 3 / (O - 1)) : 1) + ")" : c(oe, 0);
54
+ }, ve = (e) => "color-mix(in srgb, " + e + T(323), R = I ? Math.ceil(Math[T(330)](0, ...D[T(300)]((e) => u(e[T(328)])))) + 16 : 0, ye = Math[T(318)](Math[T(330)](0, ...D[T(300)]((e) => u(C(e.value, e))))) + 4, be = I ? 16 + ye + 10 + v : 0, xe = Math[T(330)](0, j - R - be), z = S + h, B = I ? Math.max(0, O * S + (O - 1) * h) : x, V = x - ae, Se = Math[T(330)](0, V - 50), H = O ? j / O : 0, U = H * .78, W = (e) => e / _e * (I ? xe : Se), G = D[T(300)]((e, t) => {
55
+ let n = T, r = t ? D[t - 1][n(305)] : e.value, i = W(e[n(305)]), a = W(Math[n(330)](r, e[n(305)]));
56
56
  if (I) {
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),
59
+ bar: d(R, e, i, S, _),
60
+ drop: d(R + i, e, a - i, S, _),
61
61
  end: R + a,
62
- mid: e + C / 2
62
+ mid: e + S / 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, _),
68
+ drop: s(o, V - a, U, a - i, _),
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 = A === null ? void 0 : D[A], q = (e) => e === T(301) ? T(342) : T(358), J = y === "first" ? T(310) : "first", Ce = K && A !== null ? [{
73
+ key: T(356),
74
+ label: q(y),
75
+ color: L(A),
76
+ value: w(K[T(356)])
77
+ }, ...A > 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: L(A),
81
+ value: w(J === T(301) ? K.fromFirst : K[T(307)])
82
82
  }, {
83
- key: E(241),
83
+ key: T(332),
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: ve(L(A - 1)),
86
+ value: C(K[T(332)], K) + T(344) + w(K[T(316)])
87
+ }] : []] : [], Y = A === null ? void 0 : G[A], X = 0, Z = 0;
88
+ if (Y && A !== null) {
89
+ if (I) X = Math[T(330)](0, Math[T(348)](Y[T(346)] + g, j - M.w)), Z = Math[T(330)](0, Math[T(348)](Y[T(306)] - M.h / 2, B - M.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 = A * H;
92
+ X = Y[T(346)] + g + M.w > j ? Math[T(330)](0, e - g - M.w) : Y[T(346)] + g, 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 = A === null ? 0 : I ? A * z - h / 2 : A * H, $ = (e) => {
96
+ let t = T;
97
+ if (!O) return;
98
+ let n = e[t(320)][t(361)](), r = I ? Math[t(367)]((e[t(333)] - n.top + h / 2) / z) : Math[t(367)]((e[t(359)] - n.left) / n[t(343)] * O);
99
+ N(Math[t(348)](O - 1, Math[t(330)](0, r)));
100
+ }, we = k && K ? K[T(328)] + ": " + C(K[T(305)], K) + ", " + q(y) + " " + w(K[T(356)]) + (A ? T(369) + C(K.drop, K) : "") : "";
101
+ return m(i, {
102
102
  gap: 3,
103
- className: o(E(195), E(183), fe),
104
- style: pe,
105
- children: [h(E(193), {
103
+ className: a(T(303), T(340), pe),
104
+ style: me,
105
+ children: [m(T(353), {
106
106
  ...F,
107
- className: E(174),
107
+ className: T(347),
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": f,
110
+ "aria-roledescription": T(311),
111
+ "aria-label": fe,
112
+ "aria-describedby": E + T(324),
113
113
  children: [
114
- M > 0 && h("svg", {
115
- className: E(211),
116
- width: M,
114
+ j > 0 && m("svg", {
115
+ className: T(308),
116
+ width: j,
117
117
  height: B,
118
118
  "aria-hidden": !0,
119
- "data-orientation": s,
119
+ "data-orientation": f,
120
120
  children: [
121
- m(E(206), { children: O[E(175)]((e, t) => t > 0 ? h("pattern", {
122
- id: D + E(245) + t,
121
+ p("defs", { children: D[T(300)]((e, t) => t > 0 ? m(T(334), {
122
+ id: E + T(354) + t,
123
123
  width: 6,
124
124
  height: 6,
125
- patternUnits: E(199),
125
+ patternUnits: "userSpaceOnUse",
126
126
  patternTransform: "rotate(45)",
127
- children: [m(E(173), {
127
+ children: [p(T(357), {
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(213), {
134
+ }), p(T(349), {
135
135
  x1: 1.5,
136
136
  y1: 0,
137
137
  x2: 1.5,
@@ -142,142 +142,142 @@ function b({ data: a, orientation: s = e(192), calculateFrom: b = e(246), color:
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.key) : null) }),
146
+ p(T(357), {
147
+ className: T(360),
148
+ "data-state": k ? T(304) : "closed",
149
149
  x: 0,
150
150
  y: 0,
151
- width: I ? M : H,
151
+ width: I ? j : H,
152
152
  height: I ? z : B,
153
153
  rx: 8,
154
- style: { transform: I ? E(227) + Q + "px)" : E(197) + Q + E(207) }
154
+ style: { transform: I ? T(355) + Q + "px)" : T(365) + Q + T(313) }
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
+ D.map((e, t) => {
157
+ let n = T, r = G[t], i = k && A !== t || void 0, a = { "--_i": t };
158
+ return m("g", {
159
+ className: n(335),
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: [b && t > 0 && p(n(352), {
162
+ className: "ds-funnel-chart__drop",
163
+ d: r[n(332)],
164
+ fill: n(362) + E + "-hatch-" + t + ")",
165
165
  style: a
166
- }), m(n(224), {
167
- className: n(226),
168
- d: r[n(244)],
166
+ }), p(n(352), {
167
+ className: "ds-funnel-chart__bar",
168
+ d: r.bar,
169
169
  fill: L(t),
170
170
  style: a
171
171
  })]
172
- }, e[n(217)]);
172
+ }, e[n(309)]);
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
+ D[T(300)]((e, t) => {
175
+ let n = T, r = G[t], i = C(e[n(305)], e), a = w(e[n(356)]);
176
+ return I ? m("g", { children: [
177
+ p(n(314), {
178
+ className: "ds-funnel-chart__label",
179
179
  x: 0,
180
- y: r[n(181)],
181
- dominantBaseline: "middle",
182
- children: e[n(243)]
180
+ y: r[n(306)],
181
+ dominantBaseline: n(322),
182
+ children: e[n(328)]
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
+ p(n(314), {
185
+ className: n(366),
186
+ x: j - v - 10,
187
+ y: r[n(306)],
188
+ dominantBaseline: n(322),
189
+ textAnchor: "end",
190
190
  children: i
191
191
  }),
192
- m(n(250), {
193
- className: n(242),
194
- x: M,
192
+ p("text", {
193
+ className: "ds-funnel-chart__pct",
194
+ x: j,
195
195
  y: r.mid,
196
- dominantBaseline: n(239),
197
- textAnchor: "end",
196
+ dominantBaseline: n(322),
197
+ textAnchor: n(346),
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) : m("g", { children: [
201
+ p(n(314), {
202
+ className: n(366),
203
+ x: r[n(306)],
204
204
  y: 16,
205
- dominantBaseline: n(239),
206
- textAnchor: n(239),
205
+ dominantBaseline: "middle",
206
+ textAnchor: n(322),
207
207
  children: i
208
208
  }),
209
- m(n(250), {
209
+ p("text", {
210
210
  className: "ds-funnel-chart__pct",
211
- x: r[n(181)],
211
+ x: r[n(306)],
212
212
  y: 35,
213
- dominantBaseline: n(239),
214
- textAnchor: n(239),
213
+ dominantBaseline: n(322),
214
+ textAnchor: n(322),
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
+ p(n(314), {
218
+ className: n(336),
219
+ x: r[n(306)],
220
+ y: x - 6,
221
+ textAnchor: "middle",
222
+ children: e[n(328)]
223
223
  })
224
- ] }, e[n(217)]);
224
+ ] }, e[n(309)]);
225
225
  }),
226
- m(E(173), {
226
+ p(T(357), {
227
227
  className: "ds-chart__hit",
228
228
  x: 0,
229
229
  y: 0,
230
- width: M,
230
+ width: j,
231
231
  height: B,
232
232
  onPointerMove: $,
233
233
  onPointerDown: $,
234
- onPointerLeave: ge
234
+ onPointerLeave: P
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
+ p(T(353), {
239
+ ref: ge,
240
+ className: T(317),
241
+ "data-state": T(k ? 304 : 341),
242
+ "data-settled": he || void 0,
243
+ style: { transform: T(319) + X + T(321) + Z + T(313) },
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: p(ee, {
246
+ title: K?.label,
247
+ value: K ? C(K[T(305)], 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
+ p(T(351), {
252
+ id: E + "-live",
253
+ className: T(312),
254
+ "aria-live": "polite",
255
255
  children: we
256
256
  })
257
257
  ]
258
- }), se && x && h(r, {
258
+ }), ce && b && m(r, {
259
259
  gap: 4,
260
- children: [h(r, {
260
+ children: [m(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: [p(n, { color: L(0) }), p(t, {
264
+ variant: T(338),
265
+ tone: "secondary",
266
266
  children: "전환"
267
267
  })]
268
- }), h(r, {
268
+ }), m(r, {
269
269
  gap: 2,
270
270
  wrap: !1,
271
- children: [m(n, {
271
+ children: [p(n, {
272
272
  color: L(0),
273
- variant: E(180)
274
- }), m(t, {
273
+ variant: "hatched"
274
+ }), p(t, {
275
275
  variant: "body-sm",
276
- tone: E(215),
276
+ tone: "secondary",
277
277
  children: "이탈"
278
278
  })]
279
279
  })]
280
280
  })]
281
281
  });
282
282
  }
283
- export { b as FunnelChart };
283
+ export { y as FunnelChart };
@@ -1,69 +1,73 @@
1
1
  "use client";
2
- const e = r;
2
+ function e(n, r) {
3
+ n -= 160;
4
+ let i = t(), a = i[n];
5
+ e.XwHzWS === void 0 && (e.YAAJUc = function(e) {
6
+ let t = "", n = "";
7
+ 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);
8
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
9
+ return decodeURIComponent(n);
10
+ }, e.IBdzIZ = {}, e.XwHzWS = !0);
11
+ let o = i[0];
12
+ e.iqSGoN !== o && (e.IBdzIZ = {}, e.iqSGoN = o);
13
+ let s = e.IBdzIZ[n];
14
+ return s === void 0 ? (a = e.YAAJUc(a), e.IBdzIZ[n] = a) : a = s, a;
15
+ }
3
16
  function t() {
4
17
  let e = [
5
- "mZeWmduZDxHHvMDf",
6
- "odiYmdK2t2HSvufo",
7
- "nwHbD0Pwsa",
8
- "nteWntG4Dxz1uLr0",
9
- "mtzOyMHXEgO",
10
- "nMHJsuzYza",
11
- "zNjVBq",
12
- "nta4odeZognOv0XIDa",
13
- "mty5oty0oxvyBfPPEq",
14
- "mJqWmZa5AeDbuMDO",
18
+ "mJi2nJu2m0rdteDQyW",
19
+ "BwLU",
20
+ "ogD1EfjrBW",
21
+ "mtbPzuvoyw0",
22
+ "mJK0mdu1m3HquvrZAG",
23
+ "BwfW",
24
+ "DMfSDwu",
25
+ "CMvKDwnL",
26
+ "mJq0odm2Du1QtwTf",
27
+ "ohzry3PYqW",
28
+ "odK1mZy4nKfwvgrMAW",
15
29
  "Bwf4",
16
- "owvTqLLWrq",
30
+ "mJC4mJCWq0jivxn6",
31
+ "y29KzvbVAw50qxq",
32
+ "mtuWvLbfBw1k",
33
+ "mtj3zMvQAKe",
17
34
  "zMLYC3q",
18
- "mtuXnZi3mgjVvu9Wwa",
19
- "DMfSDwu",
20
- "BwfW"
35
+ "odrluhDwB2G",
36
+ "mZu4nZaZCeTYD1n2",
37
+ "odqXntq3DvbWwuHw"
21
38
  ];
22
39
  return t = function() {
23
40
  return e;
24
41
  }, t();
25
42
  }
26
- (function(e, t) {
27
- let n = r, i = e();
43
+ const n = e;
44
+ (function(t, n) {
45
+ let r = e, i = t();
28
46
  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;
47
+ if (parseInt(r(160)) / 1 * (parseInt(r(164)) / 2) + parseInt(r(170)) / 3 * (-parseInt(r(177)) / 4) + -parseInt(r(174)) / 5 * (-parseInt(r(176)) / 6) + parseInt(r(161)) / 7 * (parseInt(r(171)) / 8) + -parseInt(r(172)) / 9 + parseInt(r(165)) / 10 * (parseInt(r(166)) / 11) + -parseInt(r(179)) / 12 * (parseInt(r(162)) / 13) == n) break;
30
48
  i.push(i.shift());
31
49
  } catch {
32
50
  i.push(i.shift());
33
51
  }
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;
52
+ })(t, 753559);
53
+ function r(t, n) {
54
+ let r = e, i = t[0]?.[r(168)] ?? 0;
55
+ return t[r(167)]((e, a) => {
56
+ let o = r, s = Math[o(173)](0, e.value), c = a ? Math[o(173)](0, t[a - 1][o(168)]) : s, l = a === 0 ? 1 : i > 0 ? s / i : 0, u = a === 0 ? 1 : c > 0 ? s / c : 0, d = a ? Math[o(173)](0, c - s) : 0;
39
57
  return {
40
- ...r,
58
+ ...e,
41
59
  value: s,
42
60
  fromFirst: l,
43
61
  fromPrevious: u,
44
- conversion: t === o(503) ? l : u,
62
+ conversion: n === o(178) ? l : u,
45
63
  drop: d,
46
64
  dropRate: a && c > 0 ? d / c : 0
47
65
  };
48
66
  });
49
67
  }
50
- function r(e, n) {
51
- e -= 492;
52
- let i = t(), a = i[e];
53
- r.tPzIhD === void 0 && (r.XvSIYx = function(e) {
54
- let t = "", n = "";
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);
56
- for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
57
- return decodeURIComponent(n);
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";
68
+ function i(t, n, r, i, a) {
69
+ let o = e, s = Math[o(173)](0, Math[o(163)](a, i / 2, r));
70
+ return "M" + t + "," + n + "H" + (t + r - s) + "Q" + (t + r) + "," + n + " " + (t + r) + "," + (n + s) + "V" + (n + i - s) + "Q" + (t + r) + "," + (n + i) + " " + (t + r - s) + "," + (n + i) + "H" + t + "Z";
67
71
  }
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 };
72
+ var a = (e) => Array.from(e)[n(169)]((e, t) => e + ((t[n(175)](0) ?? 0) >= 11904 ? 13 : 7.5), 0);
73
+ export { a as estimateTextWidth, r as funnelStats, i as hBarPath };