@iamfiro/design 0.3.2 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agents/INDEX.md +1 -1
- package/agents/app-shell/AGENTS.md +99 -1
- package/agents/brand-icon/AGENTS.md +1 -1
- package/agents/social-login-button/AGENTS.md +4 -3
- package/lib/components/Accordion/Accordion2.js +74 -74
- package/lib/components/ActionBar/ActionBar2.js +44 -42
- package/lib/components/Alert/Alert2.js +67 -67
- package/lib/components/AppShell/AppShell2.js +72 -66
- package/lib/components/AreaChart/AreaChart.js +45 -45
- package/lib/components/BarChart/BarChart2.js +128 -128
- package/lib/components/BarList/BarList2.js +105 -105
- package/lib/components/Breadcrumb/Breadcrumb2.js +63 -64
- package/lib/components/Calendar/Calendar2.js +197 -197
- package/lib/components/Calendar/DatePicker2.js +100 -100
- package/lib/components/Calendar/date.js +47 -70
- package/lib/components/Card/Card2.js +101 -74
- package/lib/components/CardFrame/CardFrame2.js +52 -56
- package/lib/components/Chart/ChartParts.js +88 -88
- package/lib/components/Chart/chart2.js +63 -63
- package/lib/components/Chart/useChartInteraction.js +43 -43
- package/lib/components/ChatBubble/ChatBubble2.js +111 -111
- package/lib/components/ChatBubble/formatChatTime.js +38 -43
- package/lib/components/ChatComposer/ChatComposer2.js +96 -96
- package/lib/components/CodeBlock/CodeBlock2.js +65 -65
- package/lib/components/CodeBlock/highlight.js +84 -84
- package/lib/components/ColorPicker/ColorPicker2.js +263 -263
- package/lib/components/ColorPicker/color.js +92 -92
- package/lib/components/ColorPicker/presets.js +35 -39
- package/lib/components/Combobox/Combobox2.js +134 -134
- package/lib/components/CommandMenu/CommandMenu.js +130 -131
- package/lib/components/Comment/Comment2.js +64 -63
- package/lib/components/ContextMenu/ContextMenu2.js +84 -84
- package/lib/components/DataGrid/DataGrid2.js +1182 -1180
- package/lib/components/DataGrid/GridPopover.js +84 -84
- package/lib/components/DataGrid/anchor.js +29 -28
- package/lib/components/DataGrid/model.js +308 -307
- package/lib/components/DataGrid/panels.js +398 -399
- package/lib/components/DataGrid/typeMeta.js +41 -40
- package/lib/components/DataGrid/types.js +39 -40
- package/lib/components/DescriptionList/DescriptionList2.js +105 -105
- package/lib/components/Dialog/AlertDialog.js +90 -89
- package/lib/components/Dialog/Dialog2.js +71 -72
- package/lib/components/Dialog/modal.js +62 -60
- package/lib/components/Drawer/Drawer2.js +167 -166
- package/lib/components/DropdownMenu/DropdownMenu2.js +260 -258
- package/lib/components/DropdownMenu/menuCore.js +29 -28
- package/lib/components/Dropzone/Dropzone2.js +78 -77
- package/lib/components/EmptyState/EmptyState2.js +57 -57
- package/lib/components/FileChip/FileChip2.js +53 -77
- package/lib/components/FileUpload/FileUpload.js +168 -167
- package/lib/components/FilterChips/FilterChips2.js +60 -60
- package/lib/components/FunnelChart/FunnelChart2.js +174 -174
- package/lib/components/FunnelChart/funnel.js +44 -42
- package/lib/components/Highlight/Highlight2.js +55 -55
- package/lib/components/HoverCard/HoverCard.js +71 -96
- package/lib/components/InlineDiff/InlineDiff2.js +128 -129
- package/lib/components/InlineDiff/diff.js +79 -79
- package/lib/components/InlineDiff/useDiffReview.js +61 -62
- package/lib/components/Kanban/Kanban2.js +387 -389
- package/lib/components/Kanban/KanbanCard.js +84 -84
- package/lib/components/Kanban/move.js +32 -25
- package/lib/components/LineChart/LineChart2.js +228 -228
- package/lib/components/List/List2.js +62 -62
- package/lib/components/Listbox/Listbox2.js +92 -92
- package/lib/components/Marker/Marker2.js +50 -56
- package/lib/components/Menubar/Menubar2.js +117 -116
- package/lib/components/MultiSelect/MultiSelect2.js +111 -111
- package/lib/components/NavigationMenu/NavigationMenu2.js +231 -231
- package/lib/components/NoticeStack/NoticeStack2.js +99 -99
- package/lib/components/NumberStepper/NumberStepper2.js +60 -60
- package/lib/components/OtpInput/OtpInput2.js +90 -89
- package/lib/components/Pagination/Pagination2.js +105 -105
- package/lib/components/Pagination/paginationRange.js +37 -37
- package/lib/components/PhoneInput/PhoneInput.js +75 -76
- package/lib/components/PieChart/PieChart2.js +166 -166
- package/lib/components/PieChart/arc.js +71 -69
- package/lib/components/PieChart/useArcTween.js +60 -62
- package/lib/components/Popover/Popover2.js +85 -86
- package/lib/components/ProgressTracker/ProgressTracker2.js +134 -134
- package/lib/components/Rating/Rating2.js +90 -89
- package/lib/components/Resizable/Resizable2.js +128 -129
- package/lib/components/Resizable/layout.js +51 -51
- package/lib/components/ScaledPreview/ScaledPreview2.js +49 -48
- package/lib/components/ScatterChart/ScatterChart2.js +214 -213
- package/lib/components/ScatterChart/scatter.js +49 -52
- package/lib/components/ScrollArea/ScrollArea2.js +115 -117
- package/lib/components/Select/Select2.js +82 -82
- package/lib/components/Sidebar/Sidebar2.js +91 -85
- package/lib/components/Sidebar/rail.js +43 -0
- package/lib/components/Skeleton/Skeleton2.js +63 -64
- package/lib/components/Slider/Slider2.js +65 -66
- package/lib/components/SocialLoginButton/SocialLoginButton.js +76 -69
- package/lib/components/SparkChart/SparkChart2.js +126 -127
- package/lib/components/SparkChart/spark.js +66 -42
- package/lib/components/Sparkbar/Sparkbar2.js +60 -60
- package/lib/components/SplitView/SplitView2.js +51 -51
- package/lib/components/Stat/Stat2.js +79 -79
- package/lib/components/StepList/StepList2.js +75 -75
- package/lib/components/Table/Table2.js +71 -71
- package/lib/components/Tabs/Tabs2.js +74 -74
- package/lib/components/TagInput/TagInput2.js +223 -221
- package/lib/components/TimePicker/TimePicker2.js +197 -195
- package/lib/components/TimePicker/time.js +59 -56
- package/lib/components/Timeline/Timeline2.js +195 -195
- package/lib/components/Timeline/scale.js +64 -66
- package/lib/components/Toast/Toaster.js +139 -139
- package/lib/components/Toast/store.js +72 -76
- package/lib/components/ToggleGroup/ToggleGroup2.js +79 -79
- package/lib/components/Toolbar/Toolbar2.js +165 -164
- package/lib/components/Tracker/Tracker2.js +72 -72
- package/lib/components/TreeDiagram/TreeDiagram2.js +96 -97
- package/lib/components/TreeView/TreeView2.js +152 -151
- package/lib/hooks/timing.js +34 -36
- package/lib/hooks/useControllableState.js +29 -30
- package/lib/hooks/useCountdown.js +51 -53
- package/lib/hooks/useDigitInput.js +81 -55
- package/lib/hooks/useDismiss.js +53 -56
- package/lib/hooks/useElapsed.js +48 -49
- package/lib/hooks/useFloating.js +36 -36
- package/lib/hooks/useFocusTrap.js +32 -32
- package/lib/hooks/usePresence.js +49 -49
- package/lib/hooks/usePressToOpen.js +40 -40
- package/lib/hooks/useScrollLock.js +50 -49
- package/lib/hooks/useSelection.js +42 -47
- package/lib/index.js +138 -139
- package/lib/primitives/AspectRatio2.js +58 -57
- package/lib/primitives/BrandIcon.js +210 -179
- package/lib/primitives/ColorDot2.js +42 -41
- package/lib/primitives/CopyButton2.js +59 -58
- package/lib/primitives/CountBadge2.js +58 -63
- package/lib/primitives/Countdown2.js +38 -37
- package/lib/primitives/Delta2.js +37 -37
- package/lib/primitives/Elapsed.js +42 -40
- package/lib/primitives/FileIcon2.js +102 -102
- package/lib/primitives/Flag2.js +124 -124
- package/lib/primitives/IconStack2.js +45 -23
- package/lib/primitives/IconTile2.js +45 -41
- package/lib/primitives/Kbd2.js +48 -48
- package/lib/primitives/Layout2.js +71 -71
- package/lib/primitives/Link2.js +40 -42
- package/lib/primitives/MaskedText2.js +50 -50
- package/lib/primitives/Progress2.js +78 -77
- package/lib/primitives/RelativeTime.js +55 -58
- package/lib/primitives/SearchInput2.js +72 -68
- package/lib/primitives/SelectorButton2.js +60 -61
- package/lib/primitives/Spinner2.js +48 -49
- package/lib/primitives/StatusIcon2.js +69 -69
- package/lib/primitives/Swatch2.js +65 -69
- package/lib/primitives/Tooltip2.js +92 -92
- package/lib/primitives/Typography2.js +37 -37
- package/lib/primitives/formatCountdown.js +38 -38
- package/lib/primitives/formatElapsed.js +43 -45
- package/lib/primitives/formatRelativeTime.js +54 -54
- package/lib/primitives/hotkey.js +77 -77
- package/lib/primitives/index.js +162 -161
- package/lib/primitives/maskValue.js +54 -51
- package/lib/style.css +1 -1
- package/lib/types/components/AppShell/AppShell.d.ts +9 -2
- package/lib/types/components/Sidebar/rail.d.ts +4 -0
- package/lib/types/components/SocialLoginButton/SocialLoginButton.d.ts +1 -1
- package/lib/types/components/index.d.ts +1 -0
- package/lib/types/primitives/BrandIcon.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,104 +1,104 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
let
|
|
2
|
+
function e(t, n) {
|
|
3
|
+
t -= 373;
|
|
4
|
+
let r = i(), a = r[t];
|
|
5
|
+
e.HjvkNa === void 0 && (e.dPEZNJ = 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.QRGKdM = {}, e.HjvkNa = !0);
|
|
11
|
+
let o = r[0];
|
|
12
|
+
e.pqNIhv !== o && (e.QRGKdM = {}, e.pqNIhv = o);
|
|
13
|
+
let s = e.QRGKdM[t];
|
|
14
|
+
return s === void 0 ? (a = e.dPEZNJ(a), e.QRGKdM[t] = a) : a = s, a;
|
|
15
|
+
}
|
|
16
|
+
const t = e;
|
|
17
|
+
(function(t, n) {
|
|
18
|
+
let r = e, i = t();
|
|
5
19
|
for (;;) try {
|
|
6
|
-
if (
|
|
20
|
+
if (parseInt(r(412)) / 1 + parseInt(r(402)) / 2 + parseInt(r(393)) / 3 + -parseInt(r(373)) / 4 * (parseInt(r(376)) / 5) + -parseInt(r(390)) / 6 + -parseInt(r(391)) / 7 + -parseInt(r(406)) / 8 * (-parseInt(r(404)) / 9) == n) break;
|
|
7
21
|
i.push(i.shift());
|
|
8
22
|
} catch {
|
|
9
23
|
i.push(i.shift());
|
|
10
24
|
}
|
|
11
|
-
})(
|
|
12
|
-
import { Inline as
|
|
13
|
-
import { cx as
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
let t = "", n = "";
|
|
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);
|
|
21
|
-
for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
|
|
22
|
-
return decodeURIComponent(n);
|
|
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;
|
|
25
|
+
})(i, 119304);
|
|
26
|
+
import { Inline as n } from "../../primitives/Layout2.js";
|
|
27
|
+
import { cx as r } from "../../primitives/index.js";
|
|
28
|
+
function i() {
|
|
29
|
+
let e = /* @__PURE__ */ "zhmTDgfIBguTD3jHCa.B3zLCMXPBMu.CMLNAhq.BwfW.y2vUDgvY.nZy2ntz0weXOveS.otC2nJbcCez5uw8.BNvTzxjPyW.zhmTDgfIBguTlq.mJvNAwrRzwW.rw50zxi.zhmTDgfIBguTlwLUDgvYywn0AxzL.AgvHzgvYtgvHzgLUzW.zhmTDgfIBgu.A2v5.BgvUz3rO.DgHLywq.zhmTDgfIBguTlxn0CMLWzwq.zhmTDgfIBgvFx2vTChr5.C3bHBG.CMvUzgvY.y2fWDgLVBG.C3rHCNq.mta0mtmZmhDwtLjYtW.nZa2mZqYy2PbsMjl.ywXPz24.ndmXndmWq3P6rxPH.ChjLDMvUDerLzMf1Bhq.zgvMyxvSDa.DgfYz2v0.zhmTC2nYB2XS.y29S.D2LKDgG.zhmTDgfIBguTlw92zxjSAw5L.zw5K.mJi3odq0CLDwAxHX.zgL2.owfpD2nHEa.AgvHzgvY.mtq1mtyXnLLSELPbrq".split(".");
|
|
30
|
+
return i = function() {
|
|
31
|
+
return e;
|
|
32
|
+
}, i();
|
|
28
33
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
/* empty css */
|
|
35
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
36
|
+
var s = {
|
|
37
|
+
start: t(389),
|
|
38
|
+
center: "center",
|
|
39
|
+
end: "end"
|
|
40
|
+
}, c = {
|
|
35
41
|
start: void 0,
|
|
36
|
-
center:
|
|
37
|
-
end:
|
|
42
|
+
center: t(411),
|
|
43
|
+
end: t(409)
|
|
38
44
|
};
|
|
39
|
-
function
|
|
40
|
-
let y =
|
|
45
|
+
function l({ columns: e, rows: i, rowKey: l, density: u = t(395), striped: d = !0, headerVariant: f = "label", selectedKey: p, onRowClick: m, empty: h, caption: g, className: _, style: v }) {
|
|
46
|
+
let y = t, b = (e) => e[y(392)] ?? (e.numeric ? y(401) : y(389)), x = !!m, S = (e, t, n) => {
|
|
41
47
|
let r = y;
|
|
42
|
-
e[r(
|
|
48
|
+
e[r(396)] !== e.currentTarget || e[r(381)] !== r(377) && e[r(381)] !== " " || (e[r(394)](), m?.(t, n));
|
|
43
49
|
};
|
|
44
|
-
return
|
|
45
|
-
className:
|
|
50
|
+
return a(y(403), {
|
|
51
|
+
className: r(y(407), y(397), _),
|
|
46
52
|
style: v,
|
|
47
|
-
children:
|
|
48
|
-
className:
|
|
53
|
+
children: o("table", {
|
|
54
|
+
className: r(y(380), y(375) + u, d && y(384), f === y(408) && y(400), x && y(378)),
|
|
49
55
|
children: [
|
|
50
|
-
g &&
|
|
51
|
-
|
|
52
|
-
let
|
|
53
|
-
return
|
|
54
|
-
scope:
|
|
56
|
+
g && a(y(388), { children: g }),
|
|
57
|
+
a(y(383), { children: a("tr", { children: e[y(410)]((e) => {
|
|
58
|
+
let t = y, r = b(e);
|
|
59
|
+
return a("th", {
|
|
60
|
+
scope: t(398),
|
|
55
61
|
style: {
|
|
56
|
-
width: e[
|
|
57
|
-
textAlign:
|
|
62
|
+
width: e[t(399)],
|
|
63
|
+
textAlign: c[r]
|
|
58
64
|
},
|
|
59
|
-
children: e
|
|
65
|
+
children: e.headerLeading == null ? e[t(405)] : o(n, {
|
|
60
66
|
gap: 2,
|
|
61
67
|
wrap: !1,
|
|
62
|
-
justify:
|
|
63
|
-
children: [e[
|
|
68
|
+
justify: s[r],
|
|
69
|
+
children: [e[t(379)], a(t(386), { children: e[t(405)] })]
|
|
64
70
|
})
|
|
65
|
-
}, e[
|
|
71
|
+
}, e[t(381)]);
|
|
66
72
|
}) }) }),
|
|
67
|
-
|
|
68
|
-
let
|
|
69
|
-
return
|
|
73
|
+
o("tbody", { children: [i[y(410)]((t, r) => {
|
|
74
|
+
let i = y, u = l ? l(t, r) : r, d = p != null && p === u;
|
|
75
|
+
return a("tr", {
|
|
70
76
|
"data-selected": d || void 0,
|
|
71
77
|
"aria-current": d || void 0,
|
|
72
78
|
tabIndex: x ? 0 : void 0,
|
|
73
|
-
onClick: m ? () => m(
|
|
74
|
-
onKeyDown: x ? (
|
|
75
|
-
children:
|
|
76
|
-
let l =
|
|
77
|
-
return
|
|
78
|
-
className:
|
|
79
|
-
style: { textAlign:
|
|
80
|
-
children: f == null ? d :
|
|
79
|
+
onClick: m ? () => m(t, r) : void 0,
|
|
80
|
+
onKeyDown: x ? (e) => S(e, t, r) : void 0,
|
|
81
|
+
children: e[i(410)]((e) => {
|
|
82
|
+
let l = i, u = b(e), d = e.render ? e[l(387)](t, r) : t[e[l(381)]] ?? null, f = e.leading?.(t, r);
|
|
83
|
+
return a("td", {
|
|
84
|
+
className: e[l(374)] ? "ds-table__num" : void 0,
|
|
85
|
+
style: { textAlign: c[u] },
|
|
86
|
+
children: f == null ? d : o(n, {
|
|
81
87
|
gap: 3,
|
|
82
88
|
wrap: !1,
|
|
83
|
-
justify:
|
|
84
|
-
children: [f,
|
|
89
|
+
justify: s[u],
|
|
90
|
+
children: [f, a(l(386), { children: d })]
|
|
85
91
|
})
|
|
86
|
-
},
|
|
92
|
+
}, e[l(381)]);
|
|
87
93
|
})
|
|
88
94
|
}, u);
|
|
89
|
-
}), !
|
|
90
|
-
colSpan:
|
|
91
|
-
className: y(
|
|
95
|
+
}), !i.length && h && a("tr", { children: a("td", {
|
|
96
|
+
colSpan: e[y(382)],
|
|
97
|
+
className: y(385),
|
|
92
98
|
children: h
|
|
93
99
|
}) })] })
|
|
94
100
|
]
|
|
95
101
|
})
|
|
96
102
|
});
|
|
97
103
|
}
|
|
98
|
-
|
|
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 };
|
|
104
|
+
export { l as Table };
|
|
@@ -1,131 +1,131 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
const e =
|
|
2
|
+
const e = v;
|
|
3
3
|
(function(e, t) {
|
|
4
|
-
let n =
|
|
4
|
+
let n = v, r = e();
|
|
5
5
|
for (;;) try {
|
|
6
|
-
if (-parseInt(n(
|
|
6
|
+
if (-parseInt(n(226)) / 1 * (-parseInt(n(225)) / 2) + -parseInt(n(211)) / 3 + -parseInt(n(245)) / 4 * (-parseInt(n(233)) / 5) + parseInt(n(238)) / 6 + -parseInt(n(218)) / 7 * (-parseInt(n(214)) / 8) + -parseInt(n(224)) / 9 + -parseInt(n(207)) / 10 == t) break;
|
|
7
7
|
r.push(r.shift());
|
|
8
8
|
} catch {
|
|
9
9
|
r.push(r.shift());
|
|
10
10
|
}
|
|
11
|
-
})(
|
|
11
|
+
})(y, 748281);
|
|
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
|
-
return e;
|
|
20
|
-
}, l();
|
|
21
|
-
}
|
|
22
|
-
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
23
|
-
var f = r(null), p = () => {
|
|
24
|
-
let e = i(f);
|
|
16
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
17
|
+
var d = r(null), f = () => {
|
|
18
|
+
let e = i(d);
|
|
25
19
|
if (!e) throw Error("Tab parts must be used inside <Tabs>");
|
|
26
20
|
return e;
|
|
27
|
-
},
|
|
28
|
-
function
|
|
29
|
-
let
|
|
30
|
-
return
|
|
21
|
+
}, p = (e) => e.replace(/[^\w-]/g, "_");
|
|
22
|
+
function m({ value: r, defaultValue: i = "", onValueChange: o, activation: s = e(215), children: c, className: u }) {
|
|
23
|
+
let f = e, [p, m] = t(r, i, o), h = a();
|
|
24
|
+
return l(d.Provider, {
|
|
31
25
|
value: {
|
|
32
26
|
value: p,
|
|
33
27
|
select: m,
|
|
34
28
|
baseId: h,
|
|
35
29
|
activation: s
|
|
36
30
|
},
|
|
37
|
-
children:
|
|
38
|
-
className: n(
|
|
31
|
+
children: l(f(241), {
|
|
32
|
+
className: n(f(242), u),
|
|
39
33
|
children: c
|
|
40
34
|
})
|
|
41
35
|
});
|
|
42
36
|
}
|
|
43
|
-
function
|
|
44
|
-
let m = e, { value: h, select: g, activation:
|
|
37
|
+
function h({ children: t, variant: r = "underline", size: i = "md", fitted: a, "aria-label": d, className: p }) {
|
|
38
|
+
let m = e, { value: h, select: g, activation: _ } = f(), y = s(null), [b, x] = c(null);
|
|
45
39
|
return o(() => {
|
|
46
|
-
let e =
|
|
40
|
+
let e = v, t = y[e(250)];
|
|
47
41
|
if (!t) return;
|
|
48
|
-
if (!t[e(
|
|
49
|
-
let n = t
|
|
42
|
+
if (!t[e(235)](e(221))) {
|
|
43
|
+
let n = t[e(235)](e(206))?.dataset[e(234)];
|
|
50
44
|
n !== void 0 && g(n);
|
|
51
45
|
}
|
|
52
46
|
let n = () => {
|
|
53
|
-
let n = e, r = t[n(
|
|
47
|
+
let n = e, r = t[n(235)](n(221));
|
|
54
48
|
x(r ? {
|
|
55
|
-
left: r
|
|
56
|
-
width: r[n(
|
|
49
|
+
left: r.offsetLeft,
|
|
50
|
+
width: r[n(212)]
|
|
57
51
|
} : null);
|
|
58
52
|
};
|
|
59
53
|
n();
|
|
60
54
|
let r = new ResizeObserver(n);
|
|
61
|
-
return r[e(
|
|
62
|
-
}, [h, g]),
|
|
55
|
+
return r[e(248)](t), () => r[e(246)]();
|
|
56
|
+
}, [h, g]), u(m(241), {
|
|
63
57
|
ref: y,
|
|
64
|
-
role: m(
|
|
65
|
-
"aria-label":
|
|
66
|
-
className: n(
|
|
58
|
+
role: m(247),
|
|
59
|
+
"aria-label": d,
|
|
60
|
+
className: n(m(209), m(251) + r, "ds-tablist--" + i, a && m(229), p),
|
|
67
61
|
onKeyDown: (e) => {
|
|
68
|
-
let t =
|
|
69
|
-
e[t(
|
|
62
|
+
let t = v, n = [...y.current?.[t(249)](t(206)) ?? []], r = n[t(219)](document[t(205)]), i;
|
|
63
|
+
e[t(239)] === t(213) ? i = n[(r + 1) % n[t(217)]] : e.key === t(244) ? i = n[(r - 1 + n[t(217)]) % n[t(217)]] : e.key === t(222) ? i = n[0] : e.key === "End" && (i = n[n.length - 1]), i && (e.preventDefault(), i[t(216)](), _ === t(215) && i[t(210)][t(234)] && g(i[t(210)][t(234)]));
|
|
70
64
|
},
|
|
71
|
-
children: [b &&
|
|
72
|
-
className: m(
|
|
65
|
+
children: [b && l(m(232), {
|
|
66
|
+
className: m(240),
|
|
73
67
|
"aria-hidden": !0,
|
|
74
68
|
style: {
|
|
75
|
-
left: b[m(
|
|
76
|
-
width: b
|
|
69
|
+
left: b[m(243)],
|
|
70
|
+
width: b.width
|
|
77
71
|
}
|
|
78
72
|
}), t]
|
|
79
73
|
});
|
|
80
74
|
}
|
|
81
|
-
function
|
|
82
|
-
e
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
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
|
-
function v({ value: t, children: n, icon: r, count: i, disabled: a }) {
|
|
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
|
-
"aria-selected": f,
|
|
103
|
-
tabIndex: f ? 0 : -1,
|
|
75
|
+
function g({ value: t, children: n, icon: r, count: i, disabled: a }) {
|
|
76
|
+
let o = e, { value: s, select: c, baseId: d } = f(), m = s === t;
|
|
77
|
+
return u(o(252), {
|
|
78
|
+
type: o(252),
|
|
79
|
+
role: o(228),
|
|
80
|
+
id: d + "-tab-" + p(t),
|
|
81
|
+
"aria-controls": d + o(208) + p(t),
|
|
82
|
+
"aria-selected": m,
|
|
83
|
+
tabIndex: m ? 0 : -1,
|
|
104
84
|
disabled: a,
|
|
105
85
|
"data-value": t,
|
|
106
|
-
className:
|
|
86
|
+
className: o(223),
|
|
107
87
|
onClick: () => c(t),
|
|
108
88
|
children: [
|
|
109
89
|
r,
|
|
110
90
|
n,
|
|
111
|
-
i != null &&
|
|
112
|
-
className: o(
|
|
91
|
+
i != null && l("span", {
|
|
92
|
+
className: o(237),
|
|
113
93
|
children: i
|
|
114
94
|
})
|
|
115
95
|
]
|
|
116
96
|
});
|
|
117
97
|
}
|
|
118
|
-
function
|
|
119
|
-
let o = e, { value: s, baseId: c } =
|
|
120
|
-
return !
|
|
121
|
-
role: o(
|
|
122
|
-
id: c + o(
|
|
123
|
-
"aria-labelledby": c + o(
|
|
98
|
+
function _({ value: t, children: r, keepMounted: i, className: a }) {
|
|
99
|
+
let o = e, { value: s, baseId: c } = f(), u = s === t;
|
|
100
|
+
return !u && !i ? null : l(o(241), {
|
|
101
|
+
role: o(236),
|
|
102
|
+
id: c + o(208) + p(t),
|
|
103
|
+
"aria-labelledby": c + o(230) + p(t),
|
|
124
104
|
tabIndex: 0,
|
|
125
|
-
hidden: !
|
|
126
|
-
className: n(o(
|
|
105
|
+
hidden: !u,
|
|
106
|
+
className: n(o(227), a),
|
|
127
107
|
children: r
|
|
128
108
|
});
|
|
129
109
|
}
|
|
130
|
-
|
|
131
|
-
|
|
110
|
+
function v(e, t) {
|
|
111
|
+
e -= 205;
|
|
112
|
+
let n = y(), r = n[e];
|
|
113
|
+
v.BYNygx === void 0 && (v.kQflLY = function(e) {
|
|
114
|
+
let t = "", n = "";
|
|
115
|
+
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);
|
|
116
|
+
for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
|
|
117
|
+
return decodeURIComponent(n);
|
|
118
|
+
}, v.BTAGgO = {}, v.BYNygx = !0);
|
|
119
|
+
let i = n[0];
|
|
120
|
+
v.GlomNm !== i && (v.BTAGgO = {}, v.GlomNm = i);
|
|
121
|
+
let a = v.BTAGgO[e];
|
|
122
|
+
return a === void 0 ? (r = v.kQflLY(r), v.BTAGgO[e] = r) : r = a, r;
|
|
123
|
+
}
|
|
124
|
+
m[e(231)] = h, m[e(220)] = g, m.Panel = _;
|
|
125
|
+
export { g as Tab, h as TabList, _ as TabPanel, m as Tabs };
|
|
126
|
+
function y() {
|
|
127
|
+
let e = /* @__PURE__ */ "DgfIBgLZDa.B2jZzxj2zq.CxvLCNLtzwXLy3rVCKfSBa.y3vYCMvUDa.zhmTDgfIBgLZDc0T.yNv0Dg9U.ywn0AxzLrwXLBwvUDa.w3jVBgu9iNrHyIjDoM5VDcG6zgLZywjSzwqP.mte2nJG4ntb6re1QDe8.lxbHBMvSlq.zhmTDgfIBgLZDa.zgf0yxnLDa.mZy2nde5n3ziAfb3ra.B2zMC2v0v2LKDgG.qxjYB3DsAwDODa.mJKZodqWqwjeCeDk.yxv0BW.zM9JDxm.BgvUz3rO.mtyXueDWt2Lk.Aw5KzxHpzG.vgfI.w3jVBgu9iNrHyIjDw2fYAweTC2vSzwn0zwq9iNrYDwuIxq.sg9Tzq.zhmTDgfI.mJuWmJiYnuvhtufYuq.mLLOChbdyG.ntC3nZy3Cgnlzhf1.zhmTDgfICgfUzwW.DgfI.zhmTDgfIBgLZDc0TzML0DgvK.lxrHyI0.tgLZDa.C3bHBG.mZe3otCYmg1sv2nrzG.DMfSDwu.CxvLCNLtzwXLy3rVCG.DgfICgfUzwW.zhmTDgfIx19JB3vUDa.ndmYmdG3mfHNvgjqtq.A2v5.zhmTDgfIBgLZDf9FDgH1Bwi.zgL2.zhmTDgfICW.BgvMDa.qxjYB3Dmzwz0.oenfCujArG.zgLZy29UBMvJDa".split(".");
|
|
128
|
+
return y = function() {
|
|
129
|
+
return e;
|
|
130
|
+
}, y();
|
|
131
|
+
}
|