@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.
- package/agents/avatar/AGENTS.md +29 -1
- package/agents/tooltip/AGENTS.md +1 -1
- package/lib/components/Accordion/Accordion2.js +76 -76
- package/lib/components/ActionBar/ActionBar2.js +43 -43
- package/lib/components/Alert/Alert2.js +46 -46
- package/lib/components/AppShell/AppShell2.js +58 -58
- package/lib/components/AreaChart/AreaChart.js +39 -40
- package/lib/components/BarChart/BarChart2.js +169 -169
- package/lib/components/BarList/BarList2.js +99 -99
- package/lib/components/Breadcrumb/Breadcrumb2.js +65 -66
- package/lib/components/Calendar/Calendar2.js +172 -171
- package/lib/components/Calendar/DatePicker2.js +101 -102
- package/lib/components/Calendar/date.js +71 -71
- package/lib/components/Card/Card2.js +55 -56
- package/lib/components/CardFrame/CardFrame2.js +52 -52
- package/lib/components/Chart/ChartParts.js +90 -90
- package/lib/components/Chart/chart2.js +52 -52
- package/lib/components/Chart/useChartInteraction.js +44 -44
- package/lib/components/ChatBubble/ChatBubble2.js +112 -112
- package/lib/components/ChatBubble/formatChatTime.js +44 -42
- package/lib/components/ChatComposer/ChatComposer2.js +94 -94
- package/lib/components/CodeBlock/CodeBlock2.js +66 -66
- package/lib/components/CodeBlock/highlight.js +67 -70
- package/lib/components/ColorPicker/ColorPicker2.js +404 -405
- package/lib/components/ColorPicker/color.js +81 -81
- package/lib/components/ColorPicker/presets.js +44 -43
- package/lib/components/Combobox/Combobox2.js +128 -128
- package/lib/components/CommandMenu/CommandMenu.js +137 -137
- package/lib/components/Comment/Comment2.js +55 -80
- package/lib/components/ContextMenu/ContextMenu2.js +93 -94
- package/lib/components/DataGrid/DataGrid2.js +1181 -1180
- package/lib/components/DataGrid/GridPopover.js +112 -112
- package/lib/components/DataGrid/anchor.js +23 -25
- package/lib/components/DataGrid/model.js +274 -275
- package/lib/components/DataGrid/panels.js +423 -423
- package/lib/components/DataGrid/typeMeta.js +21 -22
- package/lib/components/DataGrid/types.js +38 -37
- package/lib/components/DescriptionList/DescriptionList2.js +107 -107
- package/lib/components/Dialog/AlertDialog.js +53 -53
- package/lib/components/Dialog/Dialog2.js +71 -70
- package/lib/components/Dialog/modal.js +59 -58
- package/lib/components/Drawer/Drawer2.js +123 -124
- package/lib/components/DropdownMenu/DropdownMenu2.js +198 -200
- package/lib/components/DropdownMenu/menuCore.js +46 -47
- package/lib/components/Dropzone/Dropzone2.js +77 -77
- package/lib/components/EmptyState/EmptyState2.js +57 -56
- package/lib/components/FileChip/FileChip2.js +71 -71
- package/lib/components/FileUpload/FileUpload.js +119 -119
- package/lib/components/FilterChips/FilterChips2.js +61 -61
- package/lib/components/FunnelChart/FunnelChart2.js +141 -141
- package/lib/components/FunnelChart/funnel.js +51 -51
- package/lib/components/Highlight/Highlight2.js +54 -54
- package/lib/components/HoverCard/HoverCard.js +108 -83
- package/lib/components/InlineDiff/InlineDiff2.js +126 -126
- package/lib/components/InlineDiff/diff.js +82 -82
- package/lib/components/InlineDiff/useDiffReview.js +62 -60
- package/lib/components/Kanban/Kanban2.js +382 -382
- package/lib/components/Kanban/KanbanCard.js +92 -92
- package/lib/components/Kanban/move.js +45 -49
- package/lib/components/LineChart/LineChart2.js +207 -207
- package/lib/components/List/List2.js +71 -71
- package/lib/components/Listbox/Listbox2.js +115 -115
- package/lib/components/Marker/Marker2.js +67 -60
- package/lib/components/Menubar/Menubar2.js +130 -133
- package/lib/components/MultiSelect/MultiSelect2.js +104 -104
- package/lib/components/NavigationMenu/NavigationMenu2.js +261 -262
- package/lib/components/NoticeStack/NoticeStack2.js +105 -105
- package/lib/components/NumberStepper/NumberStepper2.js +67 -67
- package/lib/components/OtpInput/OtpInput2.js +66 -67
- package/lib/components/Pagination/Pagination2.js +90 -90
- package/lib/components/Pagination/paginationRange.js +24 -24
- package/lib/components/PhoneInput/PhoneInput.js +74 -74
- package/lib/components/PieChart/PieChart2.js +119 -119
- package/lib/components/PieChart/arc.js +63 -42
- package/lib/components/PieChart/useArcTween.js +56 -54
- package/lib/components/Popover/Popover2.js +61 -61
- package/lib/components/ProgressTracker/ProgressTracker2.js +127 -127
- package/lib/components/Rating/Rating2.js +81 -81
- package/lib/components/Resizable/Resizable2.js +112 -110
- package/lib/components/Resizable/layout.js +50 -50
- package/lib/components/ScaledPreview/ScaledPreview2.js +49 -50
- package/lib/components/ScatterChart/ScatterChart2.js +226 -227
- package/lib/components/ScatterChart/scatter.js +59 -57
- package/lib/components/ScrollArea/ScrollArea2.js +112 -112
- package/lib/components/Select/Select2.js +79 -79
- package/lib/components/Sidebar/Sidebar2.js +79 -79
- package/lib/components/Skeleton/Skeleton2.js +68 -68
- package/lib/components/Slider/Slider2.js +78 -77
- package/lib/components/SocialLoginButton/SocialLoginButton.js +65 -66
- package/lib/components/SparkChart/SparkChart2.js +146 -145
- package/lib/components/SparkChart/spark.js +41 -67
- package/lib/components/Sparkbar/Sparkbar2.js +61 -60
- package/lib/components/SplitView/SplitView2.js +53 -53
- package/lib/components/Stat/Stat2.js +94 -94
- package/lib/components/StepList/StepList2.js +70 -70
- package/lib/components/Table/Table2.js +63 -63
- package/lib/components/Tabs/Tabs2.js +70 -70
- package/lib/components/TagInput/TagInput2.js +236 -239
- package/lib/components/TimePicker/TimePicker2.js +231 -232
- package/lib/components/TimePicker/time.js +63 -65
- package/lib/components/Timeline/Timeline2.js +167 -167
- package/lib/components/Timeline/scale.js +55 -55
- package/lib/components/Toast/Toaster.js +151 -152
- package/lib/components/Toast/store.js +90 -87
- package/lib/components/ToggleGroup/ToggleGroup2.js +91 -91
- package/lib/components/Toolbar/Toolbar2.js +145 -145
- package/lib/components/Tracker/Tracker2.js +76 -76
- package/lib/components/TreeDiagram/TreeDiagram2.js +112 -111
- package/lib/components/TreeView/TreeView2.js +124 -124
- package/lib/hooks/timing.js +30 -29
- package/lib/hooks/useControllableState.js +37 -36
- package/lib/hooks/useCountdown.js +56 -59
- package/lib/hooks/useDigitInput.js +52 -78
- package/lib/hooks/useDismiss.js +58 -57
- package/lib/hooks/useElapsed.js +54 -54
- package/lib/hooks/useFloating.js +26 -26
- package/lib/hooks/useFocusTrap.js +42 -42
- package/lib/hooks/usePresence.js +49 -48
- package/lib/hooks/usePressToOpen.js +42 -41
- package/lib/hooks/useScrollLock.js +45 -44
- package/lib/hooks/useSelection.js +45 -39
- package/lib/index.js +71 -71
- package/lib/primitives/AspectRatio2.js +60 -60
- package/lib/primitives/BrandIcon.js +161 -161
- package/lib/primitives/ColorDot2.js +42 -45
- package/lib/primitives/CopyButton2.js +57 -56
- package/lib/primitives/CountBadge2.js +55 -51
- package/lib/primitives/Countdown2.js +41 -46
- package/lib/primitives/Delta2.js +36 -36
- package/lib/primitives/Elapsed.js +49 -49
- package/lib/primitives/FileIcon2.js +96 -96
- package/lib/primitives/Flag2.js +135 -135
- package/lib/primitives/IconStack2.js +38 -60
- package/lib/primitives/IconTile2.js +28 -29
- package/lib/primitives/Kbd2.js +50 -50
- package/lib/primitives/Layout2.js +71 -71
- package/lib/primitives/Link2.js +32 -31
- package/lib/primitives/MaskedText2.js +49 -74
- package/lib/primitives/Progress2.js +65 -66
- package/lib/primitives/RelativeTime.js +58 -57
- package/lib/primitives/SearchInput2.js +65 -65
- package/lib/primitives/SelectorButton2.js +74 -73
- package/lib/primitives/Spinner2.js +50 -50
- package/lib/primitives/StatusIcon2.js +68 -68
- package/lib/primitives/Swatch2.js +59 -55
- package/lib/primitives/Tooltip2.js +81 -81
- package/lib/primitives/Typography2.js +53 -53
- package/lib/primitives/formatCountdown.js +21 -22
- package/lib/primitives/formatElapsed.js +43 -42
- package/lib/primitives/formatRelativeTime.js +50 -50
- package/lib/primitives/hotkey.js +82 -82
- package/lib/primitives/index.js +193 -174
- package/lib/primitives/maskValue.js +28 -28
- package/lib/style.css +1 -1
- package/lib/types/primitives/index.d.ts +6 -2
- package/package.json +1 -1
|
@@ -1,107 +1,104 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
function e() {
|
|
3
3
|
let t = [
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"mJqYnJbkCuz1ueq",
|
|
4
|
+
"mtrqrxrjDey",
|
|
5
|
+
"ntaYntq3nfjOwu9SBa",
|
|
6
|
+
"CgXHAw4",
|
|
7
|
+
"mJC1oda5ogLTqu1Nva",
|
|
8
|
+
"mJy1otq3z0HWuvfe",
|
|
9
|
+
"DgfN",
|
|
11
10
|
"zxHLyW",
|
|
12
|
-
"
|
|
11
|
+
"y29TBwvUDa",
|
|
13
12
|
"A2v5D29Yza",
|
|
14
|
-
"DgfN",
|
|
15
|
-
"mtm2mdu0mMnezfrhrq",
|
|
16
|
-
"yxr0CG",
|
|
17
|
-
"mw9lsNfUua",
|
|
18
|
-
"ote3v2ryzNjx",
|
|
19
13
|
"BgfZDeLUzgv4",
|
|
20
|
-
"
|
|
21
|
-
"mZm2ofbAB2Lfva",
|
|
22
|
-
"CgXHAw4",
|
|
23
|
-
"mtaYndeWohDWrg10yG",
|
|
24
|
-
"mtvZD213v2G",
|
|
14
|
+
"Dgv4Da",
|
|
25
15
|
"ChvZAa",
|
|
26
|
-
"
|
|
16
|
+
"mtm1odqWz3fbC29U",
|
|
17
|
+
"yxr0CG",
|
|
18
|
+
"mJuXmdq2nvLrs2f6vG",
|
|
19
|
+
"ota3nty4vxnQyuzr",
|
|
20
|
+
"nLvyDNf4CG",
|
|
21
|
+
"C3rYAw5N",
|
|
22
|
+
"ChjVCa",
|
|
23
|
+
"mta1nZy3mK5Svg9Zwa",
|
|
27
24
|
"ChvUy3q",
|
|
28
|
-
"
|
|
25
|
+
"BgvUz3rO"
|
|
29
26
|
];
|
|
30
27
|
return e = function() {
|
|
31
28
|
return t;
|
|
32
29
|
}, e();
|
|
33
30
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
let
|
|
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(
|
|
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,
|
|
44
|
-
var
|
|
54
|
+
})(e, 444560);
|
|
55
|
+
var r = {
|
|
45
56
|
tsx: [
|
|
46
|
-
[
|
|
47
|
-
[
|
|
48
|
-
[
|
|
49
|
-
[
|
|
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
|
-
[
|
|
62
|
+
[n(281), /\b[a-zA-Z-]+(?==)/y],
|
|
52
63
|
["fn", /\b[a-zA-Z_]\w*(?=\()/y],
|
|
53
|
-
[
|
|
64
|
+
[n(288), /[{}()[\];,.:?=+\-*&|!<>]/y]
|
|
54
65
|
],
|
|
55
66
|
css: [
|
|
56
|
-
[
|
|
57
|
-
[
|
|
58
|
-
[
|
|
59
|
-
[
|
|
60
|
-
[
|
|
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
|
-
[
|
|
73
|
+
[n(288), /[{}();:,]/y]
|
|
63
74
|
],
|
|
64
75
|
bash: [
|
|
65
|
-
[
|
|
66
|
-
[
|
|
67
|
-
[
|
|
68
|
-
[
|
|
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
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
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 =
|
|
92
|
-
|
|
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(
|
|
95
|
-
let r = n[i(
|
|
96
|
-
if (r && r[0]
|
|
97
|
-
s && o[i(
|
|
98
|
-
type: i(
|
|
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
|
|
97
|
+
}), s = "", o.push({
|
|
101
98
|
type: t,
|
|
102
99
|
text: r[0]
|
|
103
|
-
}), c += r[0][i(
|
|
104
|
-
continue
|
|
100
|
+
}), c += r[0][i(289)];
|
|
101
|
+
continue j;
|
|
105
102
|
}
|
|
106
103
|
}
|
|
107
104
|
s += e[c++];
|