@iamfiro/design 0.3.0 → 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 +76 -76
  4. package/lib/components/ActionBar/ActionBar2.js +43 -43
  5. package/lib/components/Alert/Alert2.js +46 -46
  6. package/lib/components/AppShell/AppShell2.js +58 -58
  7. package/lib/components/AreaChart/AreaChart.js +39 -40
  8. package/lib/components/BarChart/BarChart2.js +169 -169
  9. package/lib/components/BarList/BarList2.js +99 -99
  10. package/lib/components/Breadcrumb/Breadcrumb2.js +65 -66
  11. package/lib/components/Calendar/Calendar2.js +172 -171
  12. package/lib/components/Calendar/DatePicker2.js +101 -102
  13. package/lib/components/Calendar/date.js +71 -71
  14. package/lib/components/Card/Card2.js +55 -56
  15. package/lib/components/CardFrame/CardFrame2.js +52 -52
  16. package/lib/components/Chart/ChartParts.js +90 -90
  17. package/lib/components/Chart/chart2.js +52 -52
  18. package/lib/components/Chart/useChartInteraction.js +44 -44
  19. package/lib/components/ChatBubble/ChatBubble2.js +112 -112
  20. package/lib/components/ChatBubble/formatChatTime.js +44 -42
  21. package/lib/components/ChatComposer/ChatComposer2.js +94 -94
  22. package/lib/components/CodeBlock/CodeBlock2.js +66 -66
  23. package/lib/components/CodeBlock/highlight.js +67 -70
  24. package/lib/components/ColorPicker/ColorPicker2.js +404 -405
  25. package/lib/components/ColorPicker/color.js +81 -81
  26. package/lib/components/ColorPicker/presets.js +44 -43
  27. package/lib/components/Combobox/Combobox2.js +128 -128
  28. package/lib/components/CommandMenu/CommandMenu.js +137 -137
  29. package/lib/components/Comment/Comment2.js +55 -80
  30. package/lib/components/ContextMenu/ContextMenu2.js +93 -94
  31. package/lib/components/DataGrid/DataGrid2.js +1181 -1180
  32. package/lib/components/DataGrid/GridPopover.js +112 -112
  33. package/lib/components/DataGrid/anchor.js +23 -25
  34. package/lib/components/DataGrid/model.js +274 -275
  35. package/lib/components/DataGrid/panels.js +423 -423
  36. package/lib/components/DataGrid/typeMeta.js +21 -22
  37. package/lib/components/DataGrid/types.js +38 -37
  38. package/lib/components/DescriptionList/DescriptionList2.js +107 -107
  39. package/lib/components/Dialog/AlertDialog.js +53 -53
  40. package/lib/components/Dialog/Dialog2.js +71 -70
  41. package/lib/components/Dialog/modal.js +59 -58
  42. package/lib/components/Drawer/Drawer2.js +123 -124
  43. package/lib/components/DropdownMenu/DropdownMenu2.js +198 -200
  44. package/lib/components/DropdownMenu/menuCore.js +46 -47
  45. package/lib/components/Dropzone/Dropzone2.js +77 -77
  46. package/lib/components/EmptyState/EmptyState2.js +57 -56
  47. package/lib/components/FileChip/FileChip2.js +71 -71
  48. package/lib/components/FileUpload/FileUpload.js +119 -119
  49. package/lib/components/FilterChips/FilterChips2.js +61 -61
  50. package/lib/components/FunnelChart/FunnelChart2.js +141 -141
  51. package/lib/components/FunnelChart/funnel.js +51 -51
  52. package/lib/components/Highlight/Highlight2.js +54 -54
  53. package/lib/components/HoverCard/HoverCard.js +108 -83
  54. package/lib/components/InlineDiff/InlineDiff2.js +126 -126
  55. package/lib/components/InlineDiff/diff.js +82 -82
  56. package/lib/components/InlineDiff/useDiffReview.js +62 -60
  57. package/lib/components/Kanban/Kanban2.js +382 -382
  58. package/lib/components/Kanban/KanbanCard.js +92 -92
  59. package/lib/components/Kanban/move.js +45 -49
  60. package/lib/components/LineChart/LineChart2.js +207 -207
  61. package/lib/components/List/List2.js +71 -71
  62. package/lib/components/Listbox/Listbox2.js +115 -115
  63. package/lib/components/Marker/Marker2.js +67 -60
  64. package/lib/components/Menubar/Menubar2.js +130 -133
  65. package/lib/components/MultiSelect/MultiSelect2.js +104 -104
  66. package/lib/components/NavigationMenu/NavigationMenu2.js +261 -262
  67. package/lib/components/NoticeStack/NoticeStack2.js +105 -105
  68. package/lib/components/NumberStepper/NumberStepper2.js +67 -67
  69. package/lib/components/OtpInput/OtpInput2.js +66 -67
  70. package/lib/components/Pagination/Pagination2.js +90 -90
  71. package/lib/components/Pagination/paginationRange.js +24 -24
  72. package/lib/components/PhoneInput/PhoneInput.js +74 -74
  73. package/lib/components/PieChart/PieChart2.js +119 -119
  74. package/lib/components/PieChart/arc.js +63 -42
  75. package/lib/components/PieChart/useArcTween.js +56 -54
  76. package/lib/components/Popover/Popover2.js +61 -61
  77. package/lib/components/ProgressTracker/ProgressTracker2.js +127 -127
  78. package/lib/components/Rating/Rating2.js +81 -81
  79. package/lib/components/Resizable/Resizable2.js +112 -110
  80. package/lib/components/Resizable/layout.js +50 -50
  81. package/lib/components/ScaledPreview/ScaledPreview2.js +49 -50
  82. package/lib/components/ScatterChart/ScatterChart2.js +226 -227
  83. package/lib/components/ScatterChart/scatter.js +59 -57
  84. package/lib/components/ScrollArea/ScrollArea2.js +112 -112
  85. package/lib/components/Select/Select2.js +79 -79
  86. package/lib/components/Sidebar/Sidebar2.js +79 -79
  87. package/lib/components/Skeleton/Skeleton2.js +68 -68
  88. package/lib/components/Slider/Slider2.js +78 -77
  89. package/lib/components/SocialLoginButton/SocialLoginButton.js +65 -66
  90. package/lib/components/SparkChart/SparkChart2.js +146 -145
  91. package/lib/components/SparkChart/spark.js +41 -67
  92. package/lib/components/Sparkbar/Sparkbar2.js +61 -60
  93. package/lib/components/SplitView/SplitView2.js +53 -53
  94. package/lib/components/Stat/Stat2.js +94 -94
  95. package/lib/components/StepList/StepList2.js +70 -70
  96. package/lib/components/Table/Table2.js +63 -63
  97. package/lib/components/Tabs/Tabs2.js +70 -70
  98. package/lib/components/TagInput/TagInput2.js +236 -239
  99. package/lib/components/TimePicker/TimePicker2.js +231 -232
  100. package/lib/components/TimePicker/time.js +63 -65
  101. package/lib/components/Timeline/Timeline2.js +167 -167
  102. package/lib/components/Timeline/scale.js +55 -55
  103. package/lib/components/Toast/Toaster.js +151 -152
  104. package/lib/components/Toast/store.js +90 -87
  105. package/lib/components/ToggleGroup/ToggleGroup2.js +91 -91
  106. package/lib/components/Toolbar/Toolbar2.js +145 -145
  107. package/lib/components/Tracker/Tracker2.js +76 -76
  108. package/lib/components/TreeDiagram/TreeDiagram2.js +112 -111
  109. package/lib/components/TreeView/TreeView2.js +124 -124
  110. package/lib/hooks/timing.js +30 -29
  111. package/lib/hooks/useControllableState.js +37 -36
  112. package/lib/hooks/useCountdown.js +56 -59
  113. package/lib/hooks/useDigitInput.js +52 -78
  114. package/lib/hooks/useDismiss.js +58 -57
  115. package/lib/hooks/useElapsed.js +54 -54
  116. package/lib/hooks/useFloating.js +26 -26
  117. package/lib/hooks/useFocusTrap.js +42 -42
  118. package/lib/hooks/usePresence.js +49 -48
  119. package/lib/hooks/usePressToOpen.js +42 -41
  120. package/lib/hooks/useScrollLock.js +45 -44
  121. package/lib/hooks/useSelection.js +45 -39
  122. package/lib/index.js +71 -71
  123. package/lib/primitives/AspectRatio2.js +60 -60
  124. package/lib/primitives/BrandIcon.js +161 -161
  125. package/lib/primitives/ColorDot2.js +42 -45
  126. package/lib/primitives/CopyButton2.js +57 -56
  127. package/lib/primitives/CountBadge2.js +55 -51
  128. package/lib/primitives/Countdown2.js +41 -46
  129. package/lib/primitives/Delta2.js +36 -36
  130. package/lib/primitives/Elapsed.js +49 -49
  131. package/lib/primitives/FileIcon2.js +96 -96
  132. package/lib/primitives/Flag2.js +135 -135
  133. package/lib/primitives/IconStack2.js +38 -60
  134. package/lib/primitives/IconTile2.js +28 -29
  135. package/lib/primitives/Kbd2.js +50 -50
  136. package/lib/primitives/Layout2.js +71 -71
  137. package/lib/primitives/Link2.js +32 -31
  138. package/lib/primitives/MaskedText2.js +49 -74
  139. package/lib/primitives/Progress2.js +65 -66
  140. package/lib/primitives/RelativeTime.js +58 -57
  141. package/lib/primitives/SearchInput2.js +65 -65
  142. package/lib/primitives/SelectorButton2.js +74 -73
  143. package/lib/primitives/Spinner2.js +50 -50
  144. package/lib/primitives/StatusIcon2.js +68 -68
  145. package/lib/primitives/Swatch2.js +59 -55
  146. package/lib/primitives/Tooltip2.js +81 -81
  147. package/lib/primitives/Typography2.js +53 -53
  148. package/lib/primitives/formatCountdown.js +21 -22
  149. package/lib/primitives/formatElapsed.js +43 -42
  150. package/lib/primitives/formatRelativeTime.js +50 -50
  151. package/lib/primitives/hotkey.js +82 -82
  152. package/lib/primitives/index.js +193 -174
  153. package/lib/primitives/maskValue.js +28 -28
  154. package/lib/style.css +1 -1
  155. package/lib/types/primitives/index.d.ts +6 -2
  156. package/package.json +1 -1
@@ -1,107 +1,104 @@
1
1
  "use client";
2
2
  function e() {
3
3
  let t = [
4
- "mZi1mZiYmuTAtKrhqq",
5
- "BNvTyMvY",
6
- "BgvUz3rO",
7
- "mJG4mNDkELHmDq",
8
- "Dgv4Da",
9
- "C3rYAw5N",
10
- "mJqYnJbkCuz1ueq",
4
+ "mtrqrxrjDey",
5
+ "ntaYntq3nfjOwu9SBa",
6
+ "CgXHAw4",
7
+ "mJC1oda5ogLTqu1Nva",
8
+ "mJy1otq3z0HWuvfe",
9
+ "DgfN",
11
10
  "zxHLyW",
12
- "mJy0mtu3mKnSC1L3Aq",
11
+ "y29TBwvUDa",
13
12
  "A2v5D29Yza",
14
- "DgfN",
15
- "mtm2mdu0mMnezfrhrq",
16
- "yxr0CG",
17
- "mw9lsNfUua",
18
- "ote3v2ryzNjx",
19
13
  "BgfZDeLUzgv4",
20
- "y29TBwvUDa",
21
- "mZm2ofbAB2Lfva",
22
- "CgXHAw4",
23
- "mtaYndeWohDWrg10yG",
24
- "mtvZD213v2G",
14
+ "Dgv4Da",
25
15
  "ChvZAa",
26
- "mZi2ndC4uhjJENPT",
16
+ "mtm1odqWz3fbC29U",
17
+ "yxr0CG",
18
+ "mJuXmdq2nvLrs2f6vG",
19
+ "ota3nty4vxnQyuzr",
20
+ "nLvyDNf4CG",
21
+ "C3rYAw5N",
22
+ "ChjVCa",
23
+ "mta1nZy3mK5Svg9Zwa",
27
24
  "ChvUy3q",
28
- "ChjVCa"
25
+ "BgvUz3rO"
29
26
  ];
30
27
  return e = function() {
31
28
  return t;
32
29
  }, e();
33
30
  }
34
- const t = r;
35
- (function(e, t) {
36
- let n = r, i = e();
31
+ function t(n, r) {
32
+ n -= 275;
33
+ let i = e(), a = i[n];
34
+ t.bsjmPq === void 0 && (t.HpQIDY = function(e) {
35
+ let t = "", n = "";
36
+ 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);
37
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
38
+ return decodeURIComponent(n);
39
+ }, t.OIfJZT = {}, t.bsjmPq = !0);
40
+ let o = i[0];
41
+ t.wLNuLx !== o && (t.OIfJZT = {}, t.wLNuLx = o);
42
+ let s = t.OIfJZT[n];
43
+ return s === void 0 ? (a = t.HpQIDY(a), t.OIfJZT[n] = a) : a = s, a;
44
+ }
45
+ const n = t;
46
+ (function(e, n) {
47
+ let r = t, i = e();
37
48
  for (;;) try {
38
- if (-parseInt(n(372)) / 1 * (-parseInt(n(353)) / 2) + -parseInt(n(370)) / 3 + parseInt(n(367)) / 4 + -parseInt(n(354)) / 5 * (-parseInt(n(356)) / 6) + parseInt(n(373)) / 7 * (-parseInt(n(351)) / 8) + parseInt(n(359)) / 9 + parseInt(n(365)) / 10 * (-parseInt(n(362)) / 11) == t) break;
49
+ if (-parseInt(r(280)) / 1 + -parseInt(r(290)) / 2 * (-parseInt(r(294)) / 3) + -parseInt(r(287)) / 4 + parseInt(r(282)) / 5 + -parseInt(r(284)) / 6 * (-parseInt(r(293)) / 7) + -parseInt(r(283)) / 8 + -parseInt(r(291)) / 9 == n) break;
39
50
  i.push(i.shift());
40
51
  } catch {
41
52
  i.push(i.shift());
42
53
  }
43
- })(e, 552878);
44
- var n = {
54
+ })(e, 444560);
55
+ var r = {
45
56
  tsx: [
46
- [t(375), /\/\/[^\n]*|\/\*[\s\S]*?\*\//y],
47
- [t(364), /'(?:\\.|[^'\\])*'|"(?:\\.|[^"\\])*"|`(?:\\.|[^`\\])*`/y],
48
- [t(369), /<\/?[A-Za-z][\w.]*|\/?>/y],
49
- [t(368), /\b(?:import|from|export|default|const|let|var|function|return|if|else|for|of|in|new|type|interface|extends|as|async|await|true|false|null|undefined|typeof|keyof)\b/y],
57
+ [n(275), /\/\/[^\n]*|\/\*[\s\S]*?\*\//y],
58
+ [n(285), /'(?:\\.|[^'\\])*'|"(?:\\.|[^"\\])*"|`(?:\\.|[^`\\])*`/y],
59
+ [n(295), /<\/?[A-Za-z][\w.]*|\/?>/y],
60
+ [n(276), /\b(?:import|from|export|default|const|let|var|function|return|if|else|for|of|in|new|type|interface|extends|as|async|await|true|false|null|undefined|typeof|keyof)\b/y],
50
61
  ["number", /\b\d[\d_.]*\b/y],
51
- [t(371), /\b[a-zA-Z-]+(?==)/y],
62
+ [n(281), /\b[a-zA-Z-]+(?==)/y],
52
63
  ["fn", /\b[a-zA-Z_]\w*(?=\()/y],
53
- [t(357), /[{}()[\];,.:?=+\-*&|!<>]/y]
64
+ [n(288), /[{}()[\];,.:?=+\-*&|!<>]/y]
54
65
  ],
55
66
  css: [
56
- ["comment", /\/\*[\s\S]*?\*\//y],
57
- [t(364), /'[^']*'|"[^"]*"/y],
58
- [t(358), /--?[a-zA-Z][\w-]*(?=\s*:)/y],
59
- [t(369), /[.#]?[a-zA-Z][\w-]*(?=[^{;]*\{)/y],
60
- [t(360), /\b\d[\d.]*(?:px|rem|em|%|ms|s|deg|fr)?\b|#[0-9a-fA-F]{3,8}\b/y],
67
+ [n(275), /\/\*[\s\S]*?\*\//y],
68
+ [n(285), /'[^']*'|"[^"]*"/y],
69
+ [n(286), /--?[a-zA-Z][\w-]*(?=\s*:)/y],
70
+ ["tag", /[.#]?[a-zA-Z][\w-]*(?=[^{;]*\{)/y],
71
+ ["number", /\b\d[\d.]*(?:px|rem|em|%|ms|s|deg|fr)?\b|#[0-9a-fA-F]{3,8}\b/y],
61
72
  ["fn", /\b[a-z-]+(?=\()/y],
62
- ["punct", /[{}();:,]/y]
73
+ [n(288), /[{}();:,]/y]
63
74
  ],
64
75
  bash: [
65
- ["comment", /#[^\n]*/y],
66
- [t(364), /'[^']*'|"[^"]*"/y],
67
- [t(368), /\b(?:npm|npx|pnpm|yarn|git|cd)\b/y],
68
- [t(371), /\s--?[\w-]+/y]
76
+ [n(275), /#[^\n]*/y],
77
+ ["string", /'[^']*'|"[^"]*"/y],
78
+ [n(276), /\b(?:npm|npx|pnpm|yarn|git|cd)\b/y],
79
+ [n(281), /\s--?[\w-]+/y]
69
80
  ]
70
81
  };
71
- function r(t, n) {
72
- t -= 351;
73
- let i = e(), a = i[t];
74
- r.JEKwER === void 0 && (r.FZZxSD = function(e) {
75
- let t = "", n = "";
76
- 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);
77
- for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
78
- return decodeURIComponent(n);
79
- }, r.uYIfsY = {}, r.JEKwER = !0);
80
- let o = i[0];
81
- r.mpHpcs !== o && (r.uYIfsY = {}, r.mpHpcs = o);
82
- let s = r.uYIfsY[t];
83
- return s === void 0 ? (a = r.FZZxSD(a), r.uYIfsY[t] = a) : a = s, a;
84
- }
85
- function i(e, r) {
86
- let i = t;
87
- if (r === i(363)) return [{
88
- type: i(352),
82
+ function i(e, t) {
83
+ let i = n;
84
+ if (t === i(278)) return [{
85
+ type: "plain",
89
86
  text: e
90
87
  }];
91
- let a = n[r], o = [], s = "", c = 0;
92
- L: for (; c < e[i(361)];) {
88
+ let a = r[t], o = [], s = "", c = 0;
89
+ j: for (; c < e[i(289)];) {
93
90
  for (let [t, n] of a) {
94
- n[i(374)] = c;
95
- let r = n[i(366)](e);
96
- if (r && r[0][i(361)]) {
97
- s && o[i(355)]({
98
- type: i(352),
91
+ n[i(277)] = c;
92
+ let r = n[i(296)](e);
93
+ if (r && r[0].length) {
94
+ s && o[i(279)]({
95
+ type: i(292),
99
96
  text: s
100
- }), s = "", o[i(355)]({
97
+ }), s = "", o.push({
101
98
  type: t,
102
99
  text: r[0]
103
- }), c += r[0][i(361)];
104
- continue L;
100
+ }), c += r[0][i(289)];
101
+ continue j;
105
102
  }
106
103
  }
107
104
  s += e[c++];