@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,128 +1,128 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
const e =
|
|
3
|
-
function
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
const e = n;
|
|
3
|
+
(function(e, t) {
|
|
4
|
+
let r = n, i = e();
|
|
5
|
+
for (;;) try {
|
|
6
|
+
if (-parseInt(r(453)) / 1 * (-parseInt(r(437)) / 2) + -parseInt(r(426)) / 3 * (-parseInt(r(435)) / 4) + -parseInt(r(434)) / 5 * (-parseInt(r(452)) / 6) + -parseInt(r(443)) / 7 + parseInt(r(431)) / 8 * (-parseInt(r(447)) / 9) + parseInt(r(440)) / 10 + -parseInt(r(425)) / 11 * (parseInt(r(460)) / 12) == t) break;
|
|
7
|
+
i.push(i.shift());
|
|
8
|
+
} catch {
|
|
9
|
+
i.push(i.shift());
|
|
10
|
+
}
|
|
11
|
+
})(s, 974946);
|
|
12
|
+
import { Text as t } from "../../primitives/Typography2.js";
|
|
13
|
+
function n(e, t) {
|
|
14
|
+
e -= 425;
|
|
15
|
+
let r = s(), i = r[e];
|
|
16
|
+
n.wfkQqv === void 0 && (n.JDbRHG = function(e) {
|
|
7
17
|
let t = "", n = "";
|
|
8
18
|
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);
|
|
9
19
|
for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
|
|
10
20
|
return decodeURIComponent(n);
|
|
11
|
-
},
|
|
21
|
+
}, n.zRflTv = {}, n.wfkQqv = !0);
|
|
12
22
|
let a = r[0];
|
|
13
|
-
|
|
14
|
-
let o =
|
|
15
|
-
return o === void 0 ? (i =
|
|
23
|
+
n.tOZvIq !== a && (n.zRflTv = {}, n.tOZvIq = a);
|
|
24
|
+
let o = n.zRflTv[e];
|
|
25
|
+
return o === void 0 ? (i = n.JDbRHG(i), n.zRflTv[e] = i) : i = o, i;
|
|
16
26
|
}
|
|
17
|
-
(function(e, n) {
|
|
18
|
-
let r = t, i = e();
|
|
19
|
-
for (;;) try {
|
|
20
|
-
if (parseInt(r(301)) / 1 * (-parseInt(r(333)) / 2) + parseInt(r(335)) / 3 + parseInt(r(321)) / 4 + -parseInt(r(339)) / 5 * (-parseInt(r(331)) / 6) + -parseInt(r(319)) / 7 + -parseInt(r(305)) / 8 + -parseInt(r(334)) / 9 * (parseInt(r(320)) / 10) == n) break;
|
|
21
|
-
i.push(i.shift());
|
|
22
|
-
} catch {
|
|
23
|
-
i.push(i.shift());
|
|
24
|
-
}
|
|
25
|
-
})(d, 128665);
|
|
26
|
-
import { Text as n } from "../../primitives/Typography2.js";
|
|
27
27
|
import { Inline as r, Stack as i } from "../../primitives/Layout2.js";
|
|
28
28
|
import { StatusIcon as a } from "../../primitives/StatusIcon2.js";
|
|
29
29
|
import { cx as o } from "../../primitives/index.js";
|
|
30
30
|
/* empty css */
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
return d = function() {
|
|
31
|
+
function s() {
|
|
32
|
+
let e = /* @__PURE__ */ "zhmTC3rLCc1SAxn0x19TyxjRzxi.mtjZsfDRwNC.mtzVtMz3BNG.yM9KEs1ZBq.zhmTC3rLCc1SAxn0x19TzxrH.C2vJB25Kyxj5.zhmTC3rLCc1SAxn0x190AxrSzq.C3bHBG.zhmTC3rLCc1SAxn0.odrKqxzYrKe.C3rHDhvZ.zhmTC3rLCc1SAxn0x19PDgvT.mtG3ody3ouv2s1HevG.mJeZB2vLB1LT.zMLSDgvY.zhmTC3rLCc1SAxn0x19IB2r5.zgvMyxvSDa.zhmTC3rLCc1SAxn0x19JB250zw50.mtuYD3bQCwvy.yMfZzwXPBMu.Dg9bCNjHEq.mZCYnde0mfjPq0zLuW.mta2otjxyMPTDwy.zhmTC3rLCc1SAxn0ls1JB25Uzwn0B3iT.otmXmtrRyuTrEuu.C3rLCa.yM9KEs1SzW.mty1odK2mtbSq2jbA2i.uhjVDMLKzxi.zgL2.otuXody3mfrKC0LzAq.BwfW.ywn0AxzL.yM9KEs1Tza.mJyXotyZtK5SBfz6.yMv0D2vLBG.DgvYDgLHCNK.C2L6zq".split(".");
|
|
33
|
+
return s = function() {
|
|
35
34
|
return e;
|
|
36
|
-
},
|
|
35
|
+
}, s();
|
|
37
36
|
}
|
|
37
|
+
import { Children as c, createContext as l, isValidElement as u, useContext as d } from "react";
|
|
38
38
|
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
39
39
|
var m = {
|
|
40
40
|
sm: 16,
|
|
41
41
|
md: 18,
|
|
42
42
|
lg: 22
|
|
43
43
|
}, h = {
|
|
44
|
-
sm:
|
|
45
|
-
md: e(
|
|
46
|
-
lg: e(
|
|
44
|
+
sm: e(454),
|
|
45
|
+
md: e(446),
|
|
46
|
+
lg: e(439)
|
|
47
47
|
}, g = {
|
|
48
48
|
sm: "body-xs",
|
|
49
|
-
md:
|
|
50
|
-
lg:
|
|
51
|
-
}, _ =
|
|
52
|
-
marker: e(
|
|
49
|
+
md: e(454),
|
|
50
|
+
lg: e(446)
|
|
51
|
+
}, _ = l({
|
|
52
|
+
marker: e(461),
|
|
53
53
|
size: "md"
|
|
54
|
-
}), v =
|
|
55
|
-
function y({ steps: t, children: n, marker: r = e(
|
|
56
|
-
let g = e, y = t ? t[g(
|
|
57
|
-
return f(_[g(
|
|
54
|
+
}), v = l(void 0);
|
|
55
|
+
function y({ steps: t, children: n, marker: r = e(461), connector: i = e(429), size: a = "md", density: s = "default", start: l = 1, "aria-label": d, className: p, style: h }) {
|
|
56
|
+
let g = e, y = t ? t[g(444)](({ id: e, ...t }) => f(b, { ...t }, e)) : c[g(433)](n)[g(427)]((e) => u(e));
|
|
57
|
+
return f(_[g(441)], {
|
|
58
58
|
value: {
|
|
59
59
|
marker: r,
|
|
60
60
|
size: a
|
|
61
61
|
},
|
|
62
62
|
children: f("ol", {
|
|
63
|
-
className: o("ds-step-list"
|
|
63
|
+
className: o(g(459), "ds-step-list--" + a, "ds-step-list--" + s, g(436) + i, p),
|
|
64
64
|
style: {
|
|
65
65
|
"--_m": m[a] + "px",
|
|
66
66
|
...h
|
|
67
67
|
},
|
|
68
68
|
"aria-label": d,
|
|
69
|
-
children: y.map((e, t) => f(v[g(
|
|
70
|
-
value:
|
|
69
|
+
children: y.map((e, t) => f(v[g(441)], {
|
|
70
|
+
value: l + t,
|
|
71
71
|
children: e
|
|
72
|
-
}, e
|
|
72
|
+
}, e.key ?? t))
|
|
73
73
|
})
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
|
-
function b({ status:
|
|
77
|
-
let w = e, T =
|
|
78
|
-
return A = D === w(
|
|
79
|
-
status:
|
|
76
|
+
function b({ status: n, title: s, description: c, meta: l, children: u, marker: y, number: b, progress: x, className: S, style: C }) {
|
|
77
|
+
let w = e, T = d(_), E = d(v), D = y ?? T.marker, O = b ?? E, k = m[T[w(450)]], A;
|
|
78
|
+
return A = D === w(461) || D === "number" || D === "status-number" ? f(a, {
|
|
79
|
+
status: n,
|
|
80
80
|
size: k,
|
|
81
81
|
progress: x,
|
|
82
|
-
number: D === w(
|
|
83
|
-
persistNumber: D ===
|
|
82
|
+
number: D === w(461) ? void 0 : O,
|
|
83
|
+
persistNumber: D === "number"
|
|
84
84
|
}) : D, p("li", {
|
|
85
|
-
className: o(w(
|
|
85
|
+
className: o(w(462), S),
|
|
86
86
|
style: C,
|
|
87
|
-
"data-status":
|
|
88
|
-
"aria-current":
|
|
89
|
-
children: [f(w(
|
|
90
|
-
className: w(
|
|
87
|
+
"data-status": n,
|
|
88
|
+
"aria-current": n === w(445) ? w(438) : void 0,
|
|
89
|
+
children: [f(w(458), {
|
|
90
|
+
className: w(451),
|
|
91
91
|
children: A
|
|
92
92
|
}), p(i, {
|
|
93
93
|
gap: 1,
|
|
94
|
-
className: w(
|
|
94
|
+
className: w(428),
|
|
95
95
|
children: [
|
|
96
96
|
p(r, {
|
|
97
97
|
gap: 3,
|
|
98
|
-
justify: w(
|
|
99
|
-
align: w(
|
|
98
|
+
justify: w(448),
|
|
99
|
+
align: w(432),
|
|
100
100
|
wrap: !1,
|
|
101
|
-
children: [f(
|
|
102
|
-
as:
|
|
103
|
-
variant: h[T[w(
|
|
104
|
-
weight:
|
|
105
|
-
className: w(
|
|
101
|
+
children: [f(t, {
|
|
102
|
+
as: w(458),
|
|
103
|
+
variant: h[T[w(450)]],
|
|
104
|
+
weight: "medium",
|
|
105
|
+
className: w(457),
|
|
106
106
|
children: s
|
|
107
|
-
}), l != null && f(
|
|
108
|
-
as:
|
|
109
|
-
variant:
|
|
110
|
-
tone:
|
|
107
|
+
}), l != null && f(t, {
|
|
108
|
+
as: "span",
|
|
109
|
+
variant: "caption",
|
|
110
|
+
tone: w(449),
|
|
111
111
|
numeric: !0,
|
|
112
|
-
className: w(
|
|
112
|
+
className: w(455),
|
|
113
113
|
children: l
|
|
114
114
|
})]
|
|
115
115
|
}),
|
|
116
|
-
c != null && f(
|
|
117
|
-
as: w(
|
|
118
|
-
variant: g[T[w(
|
|
119
|
-
tone: w(
|
|
116
|
+
c != null && f(t, {
|
|
117
|
+
as: w(442),
|
|
118
|
+
variant: g[T[w(450)]],
|
|
119
|
+
tone: w(456),
|
|
120
120
|
children: c
|
|
121
121
|
}),
|
|
122
|
-
|
|
122
|
+
u != null && f(i, {
|
|
123
123
|
gap: 1,
|
|
124
|
-
className: w(
|
|
125
|
-
children:
|
|
124
|
+
className: w(430),
|
|
125
|
+
children: u
|
|
126
126
|
})
|
|
127
127
|
]
|
|
128
128
|
})]
|
|
@@ -1,104 +1,104 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
const e =
|
|
2
|
+
const e = r;
|
|
3
3
|
(function(e, t) {
|
|
4
|
-
let n =
|
|
4
|
+
let n = r, i = e();
|
|
5
5
|
for (;;) try {
|
|
6
|
-
if (parseInt(n(
|
|
7
|
-
|
|
6
|
+
if (-parseInt(n(424)) / 1 + -parseInt(n(441)) / 2 * (parseInt(n(434)) / 3) + -parseInt(n(429)) / 4 * (-parseInt(n(435)) / 5) + parseInt(n(455)) / 6 * (-parseInt(n(454)) / 7) + -parseInt(n(452)) / 8 + parseInt(n(457)) / 9 + parseInt(n(432)) / 10 * (parseInt(n(444)) / 11) == t) break;
|
|
7
|
+
i.push(i.shift());
|
|
8
8
|
} catch {
|
|
9
|
-
|
|
9
|
+
i.push(i.shift());
|
|
10
10
|
}
|
|
11
|
-
})(
|
|
11
|
+
})(l, 985532);
|
|
12
12
|
import { Inline as t } from "../../primitives/Layout2.js";
|
|
13
13
|
import { cx as n } from "../../primitives/index.js";
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
function i(e, t) {
|
|
21
|
-
e -= 287;
|
|
22
|
-
let n = r(), a = n[e];
|
|
23
|
-
i.NjPyXt === void 0 && (i.yBXfDn = function(e) {
|
|
14
|
+
/* empty css */
|
|
15
|
+
function r(e, t) {
|
|
16
|
+
e -= 419;
|
|
17
|
+
let n = l(), i = n[e];
|
|
18
|
+
r.vBFykT === void 0 && (r.QDvdkV = function(e) {
|
|
24
19
|
let t = "", n = "";
|
|
25
20
|
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);
|
|
26
21
|
for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
|
|
27
22
|
return decodeURIComponent(n);
|
|
28
|
-
},
|
|
29
|
-
let
|
|
30
|
-
|
|
31
|
-
let
|
|
32
|
-
return
|
|
23
|
+
}, r.JRMhxj = {}, r.vBFykT = !0);
|
|
24
|
+
let a = n[0];
|
|
25
|
+
r.zMwXxU !== a && (r.JRMhxj = {}, r.zMwXxU = a);
|
|
26
|
+
let o = r.JRMhxj[e];
|
|
27
|
+
return o === void 0 ? (i = r.QDvdkV(i), r.JRMhxj[e] = i) : i = o, i;
|
|
33
28
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}, c = {
|
|
29
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
30
|
+
var o = {
|
|
31
|
+
start: e(422),
|
|
32
|
+
center: e(426),
|
|
33
|
+
end: e(440)
|
|
34
|
+
}, s = {
|
|
41
35
|
start: void 0,
|
|
42
|
-
center: e(
|
|
43
|
-
end: e(
|
|
36
|
+
center: e(426),
|
|
37
|
+
end: e(431)
|
|
44
38
|
};
|
|
45
|
-
function
|
|
46
|
-
let y = e, b = (e) => e
|
|
39
|
+
function c({ columns: r, rows: c, rowKey: l, density: u = e(433), striped: d = !0, headerVariant: f = "label", selectedKey: p, onRowClick: m, empty: h, caption: g, className: _, style: v }) {
|
|
40
|
+
let y = e, b = (e) => e.align ?? (e.numeric ? y(440) : "start"), x = !!m, S = (e, t, n) => {
|
|
47
41
|
let r = y;
|
|
48
|
-
e[r(
|
|
42
|
+
e[r(428)] !== e[r(449)] || e.key !== r(460) && e[r(438)] !== " " || (e[r(448)](), m?.(t, n));
|
|
49
43
|
};
|
|
50
|
-
return
|
|
51
|
-
className: n(y(
|
|
44
|
+
return i(y(439), {
|
|
45
|
+
className: n(y(436), y(461), _),
|
|
52
46
|
style: v,
|
|
53
|
-
children:
|
|
54
|
-
className: n(y(
|
|
47
|
+
children: a(y(447), {
|
|
48
|
+
className: n(y(462), y(445) + u, d && y(420), f === y(443) && "ds-table--overline", x && y(442)),
|
|
55
49
|
children: [
|
|
56
|
-
g &&
|
|
57
|
-
|
|
50
|
+
g && i(y(459), { children: g }),
|
|
51
|
+
i("thead", { children: i("tr", { children: r[y(456)]((e) => {
|
|
58
52
|
let n = y, r = b(e);
|
|
59
|
-
return
|
|
60
|
-
scope: n(
|
|
53
|
+
return i("th", {
|
|
54
|
+
scope: n(427),
|
|
61
55
|
style: {
|
|
62
|
-
width: e[n(
|
|
63
|
-
textAlign:
|
|
56
|
+
width: e[n(458)],
|
|
57
|
+
textAlign: s[r]
|
|
64
58
|
},
|
|
65
|
-
children: e
|
|
59
|
+
children: e[n(423)] == null ? e[n(419)] : a(t, {
|
|
66
60
|
gap: 2,
|
|
67
61
|
wrap: !1,
|
|
68
|
-
justify:
|
|
69
|
-
children: [e[n(
|
|
62
|
+
justify: o[r],
|
|
63
|
+
children: [e[n(423)], i(n(450), { children: e.header })]
|
|
70
64
|
})
|
|
71
|
-
}, e[n(
|
|
65
|
+
}, e[n(438)]);
|
|
72
66
|
}) }) }),
|
|
73
|
-
|
|
74
|
-
let
|
|
75
|
-
return
|
|
67
|
+
a(y(453), { children: [c[y(456)]((e, n) => {
|
|
68
|
+
let c = y, u = l ? l(e, n) : n, d = p != null && p === u;
|
|
69
|
+
return i("tr", {
|
|
76
70
|
"data-selected": d || void 0,
|
|
77
71
|
"aria-current": d || void 0,
|
|
78
72
|
tabIndex: x ? 0 : void 0,
|
|
79
73
|
onClick: m ? () => m(e, n) : void 0,
|
|
80
74
|
onKeyDown: x ? (t) => S(t, e, n) : void 0,
|
|
81
|
-
children: r[
|
|
82
|
-
let l =
|
|
83
|
-
return
|
|
84
|
-
className: r[l(
|
|
85
|
-
style: { textAlign:
|
|
86
|
-
children: f == null ? d :
|
|
75
|
+
children: r[c(456)]((r) => {
|
|
76
|
+
let l = c, u = b(r), d = r.render ? r[l(421)](e, n) : e[r[l(438)]] ?? null, f = r[l(446)]?.(e, n);
|
|
77
|
+
return i("td", {
|
|
78
|
+
className: r[l(451)] ? l(425) : void 0,
|
|
79
|
+
style: { textAlign: s[u] },
|
|
80
|
+
children: f == null ? d : a(t, {
|
|
87
81
|
gap: 3,
|
|
88
82
|
wrap: !1,
|
|
89
|
-
justify:
|
|
90
|
-
children: [f,
|
|
83
|
+
justify: o[u],
|
|
84
|
+
children: [f, i(l(450), { children: d })]
|
|
91
85
|
})
|
|
92
|
-
}, r
|
|
86
|
+
}, r.key);
|
|
93
87
|
})
|
|
94
88
|
}, u);
|
|
95
|
-
}), !
|
|
96
|
-
colSpan: r[y(
|
|
97
|
-
className: y(
|
|
89
|
+
}), !c[y(430)] && h && i("tr", { children: i("td", {
|
|
90
|
+
colSpan: r[y(430)],
|
|
91
|
+
className: y(437),
|
|
98
92
|
children: h
|
|
99
93
|
}) })] })
|
|
100
94
|
]
|
|
101
95
|
})
|
|
102
96
|
});
|
|
103
97
|
}
|
|
104
|
-
|
|
98
|
+
function l() {
|
|
99
|
+
let e = /* @__PURE__ */ "zhmTDgfIBguTlq.BgvHzgLUzW.DgfIBgu.ChjLDMvUDerLzMf1Bhq.y3vYCMvUDfrHCMDLDa.C3bHBG.BNvTzxjPyW.mti0mte4ndb4zNLzreW.DgjVzhK.n3HeBgrSvG.mtG3nJyZogvMvfLTwa.BwfW.otuXmtG4nhj4z2LUAG.D2LKDgG.y2fWDgLVBG.rw50zxi.zhmTC2nYB2XS.zhmTDgfIBgu.AgvHzgvY.zhmTDgfIBguTlxn0CMLWzwq.CMvUzgvY.C3rHCNq.AgvHzgvYtgvHzgLUzW.mtm3nJmXoePdwvfnAq.zhmTDgfIBgvFx251Bq.y2vUDgvY.y29S.DgfYz2v0.mtmZmtu2r3PjrMPP.BgvUz3rO.CMLNAhq.mtuWqwvJtgTR.zgvMyxvSDa.m1fTzgz1BW.mJe1vvHgD0n5.zhmTDgfIBguTD3jHCa.zhmTDgfIBgvFx2vTChr5.A2v5.zgL2.zw5K.mZCYntGXmgT2zNLqsq.zhmTDgfIBguTlwLUDgvYywn0AxzL.B3zLCMXPBMu.mJy0mduXn1DrC1rUrW".split(".");
|
|
100
|
+
return l = function() {
|
|
101
|
+
return e;
|
|
102
|
+
}, l();
|
|
103
|
+
}
|
|
104
|
+
export { c as Table };
|
|
@@ -1,131 +1,131 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
const e =
|
|
2
|
+
const e = _;
|
|
3
3
|
(function(e, t) {
|
|
4
|
-
let n =
|
|
4
|
+
let n = _, r = e();
|
|
5
5
|
for (;;) try {
|
|
6
|
-
if (-parseInt(n(
|
|
6
|
+
if (-parseInt(n(244)) / 1 + parseInt(n(220)) / 2 + -parseInt(n(219)) / 3 + -parseInt(n(238)) / 4 + parseInt(n(253)) / 5 + parseInt(n(224)) / 6 + -parseInt(n(243)) / 7 == t) break;
|
|
7
7
|
r.push(r.shift());
|
|
8
8
|
} catch {
|
|
9
9
|
r.push(r.shift());
|
|
10
10
|
}
|
|
11
|
-
})(
|
|
11
|
+
})(l, 789753);
|
|
12
12
|
import { useControllableState as t } from "../../hooks/useControllableState.js";
|
|
13
13
|
import { cx as n } from "../../primitives/index.js";
|
|
14
14
|
/* empty css */
|
|
15
15
|
import { createContext as r, useContext as i, useId as a, useLayoutEffect as o, useRef as s, useState as c } from "react";
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
let n = h(), r = n[e];
|
|
20
|
-
d.RtcHtz === void 0 && (d.vMWeNG = function(e) {
|
|
21
|
-
let t = "", n = "";
|
|
22
|
-
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);
|
|
23
|
-
for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
|
|
24
|
-
return decodeURIComponent(n);
|
|
25
|
-
}, d.sydbgW = {}, d.RtcHtz = !0);
|
|
26
|
-
let i = n[0];
|
|
27
|
-
d.oelsbp !== i && (d.sydbgW = {}, d.oelsbp = i);
|
|
28
|
-
let a = d.sydbgW[e];
|
|
29
|
-
return a === void 0 ? (r = d.vMWeNG(r), d.sydbgW[e] = r) : r = a, r;
|
|
30
|
-
}
|
|
31
|
-
var f = r(null), p = () => {
|
|
32
|
-
let e = d, t = i(f);
|
|
33
|
-
if (!t) throw Error(e(440));
|
|
34
|
-
return t;
|
|
35
|
-
}, m = (t) => t[e(449)](/[^\w-]/g, "_");
|
|
36
|
-
function h() {
|
|
37
|
-
let e = /* @__PURE__ */ "zhmTDgfIBgLZDc0TzML0DgvK.CxvLCNLtzwXLy3rVCG.zgf0yxnLDa.qxjYB3DsAwDODa.zhmTDgfIBgLZDa.w3jVBgu9iNrHyIjDw2fYAweTC2vSzwn0zwq9iNrYDwuIxq.mJuXmZC5B0jfCLvJ.BgvMDa.ndq1nJC3muXxBwnNBW.lxbHBMvSlq.sg9Tzq.A2v5.zhmTDgfIBgLZDc0T.y3vYCMvUDa.zhmTDgfIBgLZDf9FDgH1Bwi.BgvUz3rO.mZjsrvn0u2G.ugfUzwW.yxv0BW.C3bHBG.qxjYB3Dmzwz0.vgfIihbHCNrZig11C3qGyMuGDxnLzcbPBNnPzguGpfrHyNm+.DgfIBgLZDa.ChjLDMvUDerLzMf1Bhq.D2LKDgG.B2jZzxj2zq.yNv0Dg9U.zgL2.ywn0AxzLrwXLBwvUDa.DMfSDwu.CMvWBgfJzq.zM9JDxm.ndbiqwnuzfa.lxrHyI0.mZbSrKX6rMq.zhmTDgfICW.w3jVBgu9iNrHyIjDoM5VDcG6zgLZywjSzwqP.mty0odK2mLPSwLjAvG.mJiZnZy5mgryt2THBW.zgLZy29UBMvJDa.ndG4mZDUz0r6r3q.rw5K.ndq3mdC1wwLyu3PV.nJu0nZuZnvzJserSvq.zhmTDgfICgfUzwW.nNDRzNnRra.Aw5KzxHpzG.B2zMC2v0tgvMDa.zhmTDgfI.DgfICgfUzwW".split(".");
|
|
38
|
-
return h = function() {
|
|
16
|
+
function l() {
|
|
17
|
+
let e = /* @__PURE__ */ "B2zMC2v0tgvMDa.qxjYB3DsAwDODa.yNv0Dg9U.mJqXmtC4n0jTuhD3Cq.mJe3ndG5mgjmBK9uEa.DgfI.A2v5.zgf0yxnLDa.ota1ndyWmhbKAvzIyW.lxrHyI0.zhmTDgfIx19JB3vUDa.uhjVDMLKzxi.CxvLCNLtzwXLy3rVCG.CMvWBgfJzq.BgvMDa.zgL2.DMfSDwu.ChjLDMvUDerLzMf1Bhq.zhmTDgfIBgLZDc0T.rw5K.D2LKDgG.lxbHBMvSlq.mJC3mtm2oe9ky1zPqW.C3bHBG.zgLZy29UBMvJDa.zhmTDgfICgfUzwW.w3jVBgu9iNrHyIjDw2fYAweTC2vSzwn0zwq9iNrYDwuIxq.mJi0ndmXmNHSswjgyW.mtm3ntK3ovPisfn0zq.zhmTDgfIBgLZDc0TzML0DgvK.vgfI.CxvLCNLtzwXLy3rVCKfSBa.DgfIBgLZDa.ugfUzwW.zM9JDxm.B2jZzxj2zq.BgvUz3rO.nJKZmJG3mhjTs1DZEG.yxv0BW.y3vYCMvUDa.B2zMC2v0v2LKDgG.DgfICgfUzwW.zhmTDgfIBgLZDf9FDgH1Bwi.tgLZDa".split(".");
|
|
18
|
+
return l = function() {
|
|
39
19
|
return e;
|
|
40
|
-
},
|
|
20
|
+
}, l();
|
|
41
21
|
}
|
|
42
|
-
|
|
22
|
+
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
23
|
+
var f = r(null), p = () => {
|
|
24
|
+
let e = i(f);
|
|
25
|
+
if (!e) throw Error("Tab parts must be used inside <Tabs>");
|
|
26
|
+
return e;
|
|
27
|
+
}, m = (t) => t[e(229)](/[^\w-]/g, "_");
|
|
28
|
+
function h({ value: r, defaultValue: i = "", onValueChange: o, activation: s = e(254), children: c, className: l }) {
|
|
43
29
|
let d = e, [p, m] = t(r, i, o), h = a();
|
|
44
|
-
return
|
|
30
|
+
return u(f[d(227)], {
|
|
45
31
|
value: {
|
|
46
32
|
value: p,
|
|
47
33
|
select: m,
|
|
48
34
|
baseId: h,
|
|
49
35
|
activation: s
|
|
50
36
|
},
|
|
51
|
-
children:
|
|
52
|
-
className: n(
|
|
37
|
+
children: u(d(231), {
|
|
38
|
+
className: n("ds-tabs", l),
|
|
53
39
|
children: c
|
|
54
40
|
})
|
|
55
41
|
});
|
|
56
42
|
}
|
|
57
|
-
function
|
|
58
|
-
let
|
|
43
|
+
function g({ children: t, variant: r = "underline", size: i = "md", fitted: a, "aria-label": l, className: f }) {
|
|
44
|
+
let m = e, { value: h, select: g, activation: v } = p(), y = s(null), [b, x] = c(null);
|
|
59
45
|
return o(() => {
|
|
60
|
-
let e =
|
|
46
|
+
let e = _, t = y[e(255)];
|
|
61
47
|
if (!t) return;
|
|
62
|
-
if (!t[e(
|
|
63
|
-
let n = t[
|
|
64
|
-
n !== void 0 &&
|
|
48
|
+
if (!t[e(228)](e(242))) {
|
|
49
|
+
let n = t.querySelector("[role=\"tab\"]:not(:disabled)")?.[e(223)].value;
|
|
50
|
+
n !== void 0 && g(n);
|
|
65
51
|
}
|
|
66
52
|
let n = () => {
|
|
67
|
-
let n = e, r = t
|
|
53
|
+
let n = e, r = t[n(228)](n(242));
|
|
68
54
|
x(r ? {
|
|
69
|
-
left: r[n(
|
|
70
|
-
width: r
|
|
55
|
+
left: r[n(216)],
|
|
56
|
+
width: r[n(256)]
|
|
71
57
|
} : null);
|
|
72
58
|
};
|
|
73
59
|
n();
|
|
74
60
|
let r = new ResizeObserver(n);
|
|
75
|
-
return r[e(
|
|
76
|
-
}, [
|
|
61
|
+
return r[e(251)](t), () => r[e(240)]();
|
|
62
|
+
}, [h, g]), d(m(231), {
|
|
77
63
|
ref: y,
|
|
78
|
-
role:
|
|
79
|
-
"aria-label":
|
|
80
|
-
className: n(
|
|
64
|
+
role: m(248),
|
|
65
|
+
"aria-label": l,
|
|
66
|
+
className: n("ds-tablist", m(234) + r, m(234) + i, a && m(245), f),
|
|
81
67
|
onKeyDown: (e) => {
|
|
82
|
-
let t =
|
|
83
|
-
e[t(
|
|
68
|
+
let t = _, n = [...y[t(255)]?.[t(247)]("[role=\"tab\"]:not(:disabled)") ?? []], r = n.indexOf(document.activeElement), i;
|
|
69
|
+
e[t(222)] === t(217) ? i = n[(r + 1) % n[t(252)]] : e.key === "ArrowLeft" ? i = n[(r - 1 + n[t(252)]) % n[t(252)]] : e[t(222)] === "Home" ? i = n[0] : e[t(222)] === t(235) && (i = n[n.length - 1]), i && (e[t(233)](), i[t(250)](), v === t(254) && i.dataset[t(232)] && g(i[t(223)][t(232)]));
|
|
84
70
|
},
|
|
85
|
-
children: [b &&
|
|
86
|
-
className:
|
|
71
|
+
children: [b && u(m(239), {
|
|
72
|
+
className: m(214),
|
|
87
73
|
"aria-hidden": !0,
|
|
88
74
|
style: {
|
|
89
|
-
left: b[
|
|
90
|
-
width: b[
|
|
75
|
+
left: b[m(230)],
|
|
76
|
+
width: b[m(236)]
|
|
91
77
|
}
|
|
92
78
|
}), t]
|
|
93
79
|
});
|
|
94
80
|
}
|
|
81
|
+
function _(e, t) {
|
|
82
|
+
e -= 213;
|
|
83
|
+
let n = l(), r = n[e];
|
|
84
|
+
_.BEcidJ === void 0 && (_.UjzjSo = function(e) {
|
|
85
|
+
let t = "", n = "";
|
|
86
|
+
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);
|
|
87
|
+
for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
|
|
88
|
+
return decodeURIComponent(n);
|
|
89
|
+
}, _.PnnkZP = {}, _.BEcidJ = !0);
|
|
90
|
+
let i = n[0];
|
|
91
|
+
_.QNVUua !== i && (_.PnnkZP = {}, _.QNVUua = i);
|
|
92
|
+
let a = _.PnnkZP[e];
|
|
93
|
+
return a === void 0 ? (r = _.UjzjSo(r), _.PnnkZP[e] = r) : r = a, r;
|
|
94
|
+
}
|
|
95
95
|
function v({ value: t, children: n, icon: r, count: i, disabled: a }) {
|
|
96
|
-
let o = e, { value: s, select: c, baseId:
|
|
97
|
-
return
|
|
98
|
-
type:
|
|
99
|
-
role:
|
|
100
|
-
id:
|
|
101
|
-
"aria-controls":
|
|
96
|
+
let o = e, { value: s, select: c, baseId: l } = p(), f = s === t;
|
|
97
|
+
return d(o(218), {
|
|
98
|
+
type: "button",
|
|
99
|
+
role: o(221),
|
|
100
|
+
id: l + "-tab-" + m(t),
|
|
101
|
+
"aria-controls": l + "-panel-" + m(t),
|
|
102
102
|
"aria-selected": f,
|
|
103
103
|
tabIndex: f ? 0 : -1,
|
|
104
104
|
disabled: a,
|
|
105
105
|
"data-value": t,
|
|
106
|
-
className:
|
|
106
|
+
className: "ds-tab",
|
|
107
107
|
onClick: () => c(t),
|
|
108
108
|
children: [
|
|
109
109
|
r,
|
|
110
110
|
n,
|
|
111
|
-
i != null &&
|
|
112
|
-
className:
|
|
111
|
+
i != null && u("span", {
|
|
112
|
+
className: o(226),
|
|
113
113
|
children: i
|
|
114
114
|
})
|
|
115
115
|
]
|
|
116
116
|
});
|
|
117
117
|
}
|
|
118
118
|
function y({ value: t, children: r, keepMounted: i, className: a }) {
|
|
119
|
-
let o = e, { value: s, baseId: c } = p(),
|
|
120
|
-
return !
|
|
121
|
-
role: o(
|
|
122
|
-
id: c + o(
|
|
123
|
-
"aria-labelledby": c +
|
|
119
|
+
let o = e, { value: s, baseId: c } = p(), l = s === t;
|
|
120
|
+
return !l && !i ? null : u(o(231), {
|
|
121
|
+
role: o(213),
|
|
122
|
+
id: c + o(237) + m(t),
|
|
123
|
+
"aria-labelledby": c + o(225) + m(t),
|
|
124
124
|
tabIndex: 0,
|
|
125
|
-
hidden: !
|
|
126
|
-
className: n(o(
|
|
125
|
+
hidden: !l,
|
|
126
|
+
className: n(o(241), a),
|
|
127
127
|
children: r
|
|
128
128
|
});
|
|
129
129
|
}
|
|
130
|
-
|
|
131
|
-
export { v as Tab,
|
|
130
|
+
h[e(215)] = g, h[e(246)] = v, h[e(249)] = y;
|
|
131
|
+
export { v as Tab, g as TabList, y as TabPanel, h as Tabs };
|