@sakaniui/react 0.3.27 → 0.3.29
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/dist/{TopBar-Cbskdj4E.js → TopBar-BFua2Hnk.js} +56 -56
- package/dist/{TopBar-P5mbIdH5.cjs → TopBar-CvreVtZH.cjs} +1 -1
- package/dist/blocks.cjs +1 -1
- package/dist/blocks.mjs +93 -93
- package/dist/components/Switch/Switch.d.ts +4 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +196 -183
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as e, A as t, B as n, C as r, D as i, E as a, F as o, G as s, H as c, I as l, J as u, K as d, L as f, M as p, N as m, O as h, P as g, Q as _, R as v, S as y, T as b, U as x, V as ee, W as S, X as C, Y as te, Z as ne, _ as re, a as ie, at as w, b as T, c as ae, ct as oe, d as se, dt as ce, et as le, f as ue, ft as de, g as fe, h as pe, i as me, it as he, j as ge, k as _e, l as ve, lt as ye, m as be, n as xe, nt as Se, o as Ce, ot as we, p as Te, pt as E, q as Ee, r as De, rt as Oe, s as ke, st as Ae, t as je, tt as Me, u as Ne, ut as Pe, v as Fe, w as Ie, x as Le, y as Re, z as ze } from "./TopBar-
|
|
1
|
+
import { $ as e, A as t, B as n, C as r, D as i, E as a, F as o, G as s, H as c, I as l, J as u, K as d, L as f, M as p, N as m, O as h, P as g, Q as _, R as v, S as y, T as b, U as x, V as ee, W as S, X as C, Y as te, Z as ne, _ as re, a as ie, at as w, b as T, c as ae, ct as oe, d as se, dt as ce, et as le, f as ue, ft as de, g as fe, h as pe, i as me, it as he, j as ge, k as _e, l as ve, lt as ye, m as be, n as xe, nt as Se, o as Ce, ot as we, p as Te, pt as E, q as Ee, r as De, rt as Oe, s as ke, st as Ae, t as je, tt as Me, u as Ne, ut as Pe, v as Fe, w as Ie, x as Le, y as Re, z as ze } from "./TopBar-BFua2Hnk.js";
|
|
2
2
|
import D, { useEffect as Be, useState as Ve } from "react";
|
|
3
3
|
import { Fragment as He, jsx as O, jsxs as k } from "react/jsx-runtime";
|
|
4
4
|
import { ArrowRight as Ue, ChartColumn as We, Check as Ge, ChevronDown as Ke, ChevronLeft as qe, ChevronRight as Je, ChevronsUpDown as Ye, Copy as Xe, File as Ze, Info as Qe, LogOut as $e, Menu as et, Minus as tt, MoreHorizontal as nt, Play as rt, Plus as it, Quote as at, Receipt as ot, Search as st, Sparkles as ct, TrendingDown as lt, TrendingUp as ut, TriangleAlert as dt, UploadCloud as ft, X as pt } from "lucide-react";
|
|
@@ -1568,23 +1568,23 @@ var $t = [
|
|
|
1568
1568
|
})
|
|
1569
1569
|
]
|
|
1570
1570
|
}), V = {
|
|
1571
|
-
calendar: "
|
|
1572
|
-
header: "
|
|
1573
|
-
header__label: "
|
|
1574
|
-
navBtn: "
|
|
1575
|
-
weekdays: "
|
|
1576
|
-
weekday: "
|
|
1577
|
-
grid: "
|
|
1578
|
-
day: "
|
|
1579
|
-
"day--default": "_day--
|
|
1580
|
-
"day--hover": "_day--
|
|
1581
|
-
"day--selected": "_day--
|
|
1582
|
-
"day--today": "_day--
|
|
1583
|
-
"day--in-range": "_day--in-
|
|
1584
|
-
"day--outside": "_day--
|
|
1585
|
-
"day--disabled": "_day--
|
|
1586
|
-
dropdowns: "
|
|
1587
|
-
dropdown: "
|
|
1571
|
+
calendar: "_calendar_qvyxg_2",
|
|
1572
|
+
header: "_header_qvyxg_14",
|
|
1573
|
+
header__label: "_header__label_qvyxg_15",
|
|
1574
|
+
navBtn: "_navBtn_qvyxg_16",
|
|
1575
|
+
weekdays: "_weekdays_qvyxg_27",
|
|
1576
|
+
weekday: "_weekday_qvyxg_27",
|
|
1577
|
+
grid: "_grid_qvyxg_34",
|
|
1578
|
+
day: "_day_qvyxg_35",
|
|
1579
|
+
"day--default": "_day--default_qvyxg_49",
|
|
1580
|
+
"day--hover": "_day--hover_qvyxg_50",
|
|
1581
|
+
"day--selected": "_day--selected_qvyxg_51",
|
|
1582
|
+
"day--today": "_day--today_qvyxg_52",
|
|
1583
|
+
"day--in-range": "_day--in-range_qvyxg_53",
|
|
1584
|
+
"day--outside": "_day--outside_qvyxg_54",
|
|
1585
|
+
"day--disabled": "_day--disabled_qvyxg_55",
|
|
1586
|
+
dropdowns: "_dropdowns_qvyxg_58",
|
|
1587
|
+
dropdown: "_dropdown_qvyxg_58"
|
|
1588
1588
|
}, Kn = [
|
|
1589
1589
|
"Su",
|
|
1590
1590
|
"Mo",
|
|
@@ -1772,46 +1772,46 @@ var $t = [
|
|
|
1772
1772
|
}))
|
|
1773
1773
|
]
|
|
1774
1774
|
}), U = {
|
|
1775
|
-
field: "
|
|
1776
|
-
field__label: "
|
|
1777
|
-
field__description: "
|
|
1778
|
-
field__error: "
|
|
1779
|
-
control: "
|
|
1780
|
-
"control--sm": "_control--
|
|
1781
|
-
"control--md": "_control--
|
|
1782
|
-
"control--lg": "_control--
|
|
1783
|
-
"control--open": "_control--
|
|
1784
|
-
"control--error": "_control--
|
|
1785
|
-
"control--disabled": "_control--
|
|
1786
|
-
control__value: "
|
|
1787
|
-
"control__value--placeholder": "_control__value--
|
|
1788
|
-
control__input: "
|
|
1789
|
-
control__chevron: "
|
|
1790
|
-
"control__chevron--open": "_control__chevron--
|
|
1791
|
-
chips: "
|
|
1792
|
-
chip: "
|
|
1793
|
-
"chip--leaving": "_chip--
|
|
1794
|
-
"sakani-combobox-chip-out": "_sakani-combobox-chip-
|
|
1795
|
-
chip__remove: "
|
|
1796
|
-
panel: "
|
|
1797
|
-
"panel--entering": "_panel--
|
|
1798
|
-
"sakani-combobox-panel-in": "_sakani-combobox-panel-
|
|
1799
|
-
"panel--exiting": "_panel--
|
|
1800
|
-
"sakani-combobox-panel-out": "_sakani-combobox-panel-
|
|
1801
|
-
panel__empty: "
|
|
1802
|
-
option: "
|
|
1803
|
-
"option--selected": "_option--
|
|
1804
|
-
"option--disabled": "_option--
|
|
1805
|
-
optionHighlight: "
|
|
1806
|
-
"optionHighlight--animated": "_optionHighlight--
|
|
1807
|
-
option__box: "
|
|
1808
|
-
"option__box--checked": "_option__box--
|
|
1809
|
-
option__icon: "
|
|
1810
|
-
option__label: "
|
|
1811
|
-
option__check: "
|
|
1812
|
-
panel__loading: "
|
|
1813
|
-
panel__spinner: "
|
|
1814
|
-
"sakani-cb-spin": "_sakani-cb-
|
|
1775
|
+
field: "_field_1oby0_7",
|
|
1776
|
+
field__label: "_field__label_1oby0_8",
|
|
1777
|
+
field__description: "_field__description_1oby0_9",
|
|
1778
|
+
field__error: "_field__error_1oby0_10",
|
|
1779
|
+
control: "_control_1oby0_13",
|
|
1780
|
+
"control--sm": "_control--sm_1oby0_25",
|
|
1781
|
+
"control--md": "_control--md_1oby0_26",
|
|
1782
|
+
"control--lg": "_control--lg_1oby0_27",
|
|
1783
|
+
"control--open": "_control--open_1oby0_30",
|
|
1784
|
+
"control--error": "_control--error_1oby0_41",
|
|
1785
|
+
"control--disabled": "_control--disabled_1oby0_46",
|
|
1786
|
+
control__value: "_control__value_1oby0_52",
|
|
1787
|
+
"control__value--placeholder": "_control__value--placeholder_1oby0_62",
|
|
1788
|
+
control__input: "_control__input_1oby0_63",
|
|
1789
|
+
control__chevron: "_control__chevron_1oby0_83",
|
|
1790
|
+
"control__chevron--open": "_control__chevron--open_1oby0_84",
|
|
1791
|
+
chips: "_chips_1oby0_90",
|
|
1792
|
+
chip: "_chip_1oby0_90",
|
|
1793
|
+
"chip--leaving": "_chip--leaving_1oby0_102",
|
|
1794
|
+
"sakani-combobox-chip-out": "_sakani-combobox-chip-out_1oby0_1",
|
|
1795
|
+
chip__remove: "_chip__remove_1oby0_110",
|
|
1796
|
+
panel: "_panel_1oby0_121",
|
|
1797
|
+
"panel--entering": "_panel--entering_1oby0_145",
|
|
1798
|
+
"sakani-combobox-panel-in": "_sakani-combobox-panel-in_1oby0_1",
|
|
1799
|
+
"panel--exiting": "_panel--exiting_1oby0_146",
|
|
1800
|
+
"sakani-combobox-panel-out": "_sakani-combobox-panel-out_1oby0_1",
|
|
1801
|
+
panel__empty: "_panel__empty_1oby0_156",
|
|
1802
|
+
option: "_option_1oby0_164",
|
|
1803
|
+
"option--selected": "_option--selected_1oby0_189",
|
|
1804
|
+
"option--disabled": "_option--disabled_1oby0_190",
|
|
1805
|
+
optionHighlight: "_optionHighlight_1oby0_165",
|
|
1806
|
+
"optionHighlight--animated": "_optionHighlight--animated_1oby0_221",
|
|
1807
|
+
option__box: "_option__box_1oby0_228",
|
|
1808
|
+
"option__box--checked": "_option__box--checked_1oby0_245",
|
|
1809
|
+
option__icon: "_option__icon_1oby0_250",
|
|
1810
|
+
option__label: "_option__label_1oby0_251",
|
|
1811
|
+
option__check: "_option__check_1oby0_252",
|
|
1812
|
+
panel__loading: "_panel__loading_1oby0_255",
|
|
1813
|
+
panel__spinner: "_panel__spinner_1oby0_259",
|
|
1814
|
+
"sakani-cb-spin": "_sakani-cb-spin_1oby0_1"
|
|
1815
1815
|
}, Qn = ({ options: e, mode: t = "single", size: n = "md", label: r, description: i, error: a, placeholder: o = "Select...", disabled: s, loading: c, value: l, onChange: u, className: d }) => {
|
|
1816
1816
|
let f = D.useId(), [p, m] = D.useState(!1), [h, g] = D.useState(!1), [_, v] = D.useState(0), y = D.useRef(null), b = e;
|
|
1817
1817
|
D.useEffect(() => {
|
|
@@ -2127,19 +2127,19 @@ var $t = [
|
|
|
2127
2127
|
})]
|
|
2128
2128
|
});
|
|
2129
2129
|
}, W = {
|
|
2130
|
-
wrap: "
|
|
2131
|
-
dropzone: "
|
|
2132
|
-
"dropzone--dragging": "_dropzone--
|
|
2133
|
-
dropzone__icon: "
|
|
2134
|
-
dropzone__label: "
|
|
2135
|
-
dropzone__link: "
|
|
2136
|
-
dropzone__hint: "
|
|
2137
|
-
input: "
|
|
2138
|
-
files: "
|
|
2139
|
-
file: "
|
|
2140
|
-
file__icon: "
|
|
2141
|
-
file__name: "
|
|
2142
|
-
file__remove: "
|
|
2130
|
+
wrap: "_wrap_1j16e_2",
|
|
2131
|
+
dropzone: "_dropzone_1j16e_4",
|
|
2132
|
+
"dropzone--dragging": "_dropzone--dragging_1j16e_21",
|
|
2133
|
+
dropzone__icon: "_dropzone__icon_1j16e_23",
|
|
2134
|
+
dropzone__label: "_dropzone__label_1j16e_28",
|
|
2135
|
+
dropzone__link: "_dropzone__link_1j16e_29",
|
|
2136
|
+
dropzone__hint: "_dropzone__hint_1j16e_30",
|
|
2137
|
+
input: "_input_1j16e_32",
|
|
2138
|
+
files: "_files_1j16e_35",
|
|
2139
|
+
file: "_file_1j16e_35",
|
|
2140
|
+
file__icon: "_file__icon_1j16e_45",
|
|
2141
|
+
file__name: "_file__name_1j16e_46",
|
|
2142
|
+
file__remove: "_file__remove_1j16e_47"
|
|
2143
2143
|
}, nr = ({ accept: e, multiple: t, hint: n = "SVG, PNG, JPG or PDF (max. 2MB)", onFilesChange: r, className: i }) => {
|
|
2144
2144
|
let a = D.useRef(null), [o, s] = D.useState(!1), [c, l] = D.useState([]), u = (e) => {
|
|
2145
2145
|
l(e), r?.(e);
|
|
@@ -2564,14 +2564,14 @@ var hr = { chart: "_chart_18fgd_2" }, gr = {
|
|
|
2564
2564
|
})
|
|
2565
2565
|
});
|
|
2566
2566
|
}, yr = {
|
|
2567
|
-
item: "
|
|
2568
|
-
"item--disabled": "_item--
|
|
2569
|
-
"item--selected": "_item--
|
|
2570
|
-
item__leading: "
|
|
2571
|
-
item__text: "
|
|
2572
|
-
item__title: "
|
|
2573
|
-
item__description: "
|
|
2574
|
-
item__trailing: "
|
|
2567
|
+
item: "_item_4gag1_2",
|
|
2568
|
+
"item--disabled": "_item--disabled_4gag1_22",
|
|
2569
|
+
"item--selected": "_item--selected_4gag1_26",
|
|
2570
|
+
item__leading: "_item__leading_4gag1_30",
|
|
2571
|
+
item__text: "_item__text_4gag1_31",
|
|
2572
|
+
item__title: "_item__title_4gag1_32",
|
|
2573
|
+
item__description: "_item__description_4gag1_33",
|
|
2574
|
+
item__trailing: "_item__trailing_4gag1_34"
|
|
2575
2575
|
}, br = ({ title: e, description: t, leading: n, trailing: r, selected: i, disabled: a, onClick: o, className: s }) => /* @__PURE__ */ k("button", {
|
|
2576
2576
|
type: "button",
|
|
2577
2577
|
"data-hover-item": "",
|
|
@@ -2622,14 +2622,14 @@ var hr = { chart: "_chart_18fgd_2" }, gr = {
|
|
|
2622
2622
|
className: xr.divider,
|
|
2623
2623
|
role: "separator"
|
|
2624
2624
|
}), wr = {
|
|
2625
|
-
item: "
|
|
2626
|
-
item__icon: "
|
|
2627
|
-
item__label: "
|
|
2628
|
-
item__shortcut: "
|
|
2629
|
-
item__check: "
|
|
2630
|
-
"item--checked": "_item--
|
|
2631
|
-
"item--disabled": "_item--
|
|
2632
|
-
"item--destructive": "_item--
|
|
2625
|
+
item: "_item_1ezjp_2",
|
|
2626
|
+
item__icon: "_item__icon_1ezjp_27",
|
|
2627
|
+
item__label: "_item__label_1ezjp_28",
|
|
2628
|
+
item__shortcut: "_item__shortcut_1ezjp_29",
|
|
2629
|
+
item__check: "_item__check_1ezjp_36",
|
|
2630
|
+
"item--checked": "_item--checked_1ezjp_38",
|
|
2631
|
+
"item--disabled": "_item--disabled_1ezjp_39",
|
|
2632
|
+
"item--destructive": "_item--destructive_1ezjp_40"
|
|
2633
2633
|
}, Tr = ({ state: e = "default", icon: t, shortcut: n, children: r, onSelect: i, className: a }) => {
|
|
2634
2634
|
let o = e === "disabled";
|
|
2635
2635
|
return /* @__PURE__ */ k("div", {
|
|
@@ -3480,16 +3480,16 @@ var X = {
|
|
|
3480
3480
|
children: r
|
|
3481
3481
|
})
|
|
3482
3482
|
]
|
|
3483
|
-
}),
|
|
3483
|
+
}), ri = {
|
|
3484
3484
|
search: "_search_1airw_2",
|
|
3485
3485
|
search__icon: "_search__icon_1airw_25",
|
|
3486
3486
|
search__input: "_search__input_1airw_26",
|
|
3487
3487
|
search__placeholder: "_search__placeholder_1airw_38",
|
|
3488
3488
|
search__kbd: "_search__kbd_1airw_39",
|
|
3489
3489
|
collapsed: "_collapsed_1airw_53"
|
|
3490
|
-
},
|
|
3490
|
+
}, ii = ({ type: e = "field", placeholder: t = "Search…", collapsed: n, value: r, onChange: i, onClick: a }) => n ? /* @__PURE__ */ O("button", {
|
|
3491
3491
|
type: "button",
|
|
3492
|
-
className:
|
|
3492
|
+
className: ri.collapsed,
|
|
3493
3493
|
onClick: a,
|
|
3494
3494
|
"aria-label": "Search",
|
|
3495
3495
|
children: /* @__PURE__ */ O(st, {
|
|
@@ -3498,48 +3498,48 @@ var X = {
|
|
|
3498
3498
|
})
|
|
3499
3499
|
}) : e === "command" ? /* @__PURE__ */ k("button", {
|
|
3500
3500
|
type: "button",
|
|
3501
|
-
className:
|
|
3501
|
+
className: ri.search,
|
|
3502
3502
|
onClick: a,
|
|
3503
3503
|
children: [
|
|
3504
3504
|
/* @__PURE__ */ O(st, {
|
|
3505
3505
|
size: 16,
|
|
3506
3506
|
strokeWidth: E(16),
|
|
3507
|
-
className:
|
|
3507
|
+
className: ri.search__icon
|
|
3508
3508
|
}),
|
|
3509
3509
|
/* @__PURE__ */ O("span", {
|
|
3510
|
-
className:
|
|
3510
|
+
className: ri.search__placeholder,
|
|
3511
3511
|
children: t
|
|
3512
3512
|
}),
|
|
3513
3513
|
/* @__PURE__ */ O("kbd", {
|
|
3514
|
-
className:
|
|
3514
|
+
className: ri.search__kbd,
|
|
3515
3515
|
children: "⌘K"
|
|
3516
3516
|
})
|
|
3517
3517
|
]
|
|
3518
3518
|
}) : /* @__PURE__ */ k("div", {
|
|
3519
|
-
className:
|
|
3519
|
+
className: ri.search,
|
|
3520
3520
|
children: [/* @__PURE__ */ O(st, {
|
|
3521
3521
|
size: 16,
|
|
3522
3522
|
strokeWidth: E(16),
|
|
3523
|
-
className:
|
|
3523
|
+
className: ri.search__icon
|
|
3524
3524
|
}), /* @__PURE__ */ O("input", {
|
|
3525
|
-
className:
|
|
3525
|
+
className: ri.search__input,
|
|
3526
3526
|
placeholder: t,
|
|
3527
3527
|
value: r,
|
|
3528
3528
|
onChange: (e) => i?.(e.target.value)
|
|
3529
3529
|
})]
|
|
3530
|
-
}),
|
|
3530
|
+
}), ai = {
|
|
3531
3531
|
spinner: "_spinner_14r00_3",
|
|
3532
3532
|
"spinner--sm": "_spinner--sm_14r00_12",
|
|
3533
3533
|
"spinner--md": "_spinner--md_14r00_13",
|
|
3534
3534
|
"spinner--lg": "_spinner--lg_14r00_14",
|
|
3535
3535
|
spinner__svg: "_spinner__svg_14r00_17",
|
|
3536
3536
|
"spinner-rotate": "_spinner-rotate_14r00_1"
|
|
3537
|
-
},
|
|
3537
|
+
}, oi = ({ size: e = "md", label: t = "Loading...", className: n }) => /* @__PURE__ */ O("span", {
|
|
3538
3538
|
role: "status",
|
|
3539
3539
|
"aria-label": t,
|
|
3540
3540
|
className: [
|
|
3541
|
-
|
|
3542
|
-
|
|
3541
|
+
ai.spinner,
|
|
3542
|
+
ai[`spinner--${e}`],
|
|
3543
3543
|
n ?? ""
|
|
3544
3544
|
].filter(Boolean).join(" "),
|
|
3545
3545
|
children: /* @__PURE__ */ k("svg", {
|
|
@@ -3549,7 +3549,7 @@ var X = {
|
|
|
3549
3549
|
strokeWidth: 2.5,
|
|
3550
3550
|
strokeLinecap: "round",
|
|
3551
3551
|
"aria-hidden": "true",
|
|
3552
|
-
className:
|
|
3552
|
+
className: ai.spinner__svg,
|
|
3553
3553
|
children: [/* @__PURE__ */ O("circle", {
|
|
3554
3554
|
cx: 12,
|
|
3555
3555
|
cy: 12,
|
|
@@ -3557,35 +3557,35 @@ var X = {
|
|
|
3557
3557
|
opacity: .2
|
|
3558
3558
|
}), /* @__PURE__ */ O("path", {
|
|
3559
3559
|
d: "M12 3a9 9 0 0 1 9 9",
|
|
3560
|
-
className:
|
|
3560
|
+
className: ai.spinner__arc
|
|
3561
3561
|
})]
|
|
3562
3562
|
})
|
|
3563
|
-
}),
|
|
3564
|
-
card: "
|
|
3565
|
-
"card--featured": "_card--
|
|
3566
|
-
card__head: "
|
|
3567
|
-
card__icon: "
|
|
3568
|
-
card__title: "
|
|
3569
|
-
card__menu: "
|
|
3570
|
-
card__value: "
|
|
3571
|
-
card__meta: "
|
|
3572
|
-
card__sparkline: "
|
|
3573
|
-
"card--trend-up": "_card--trend-
|
|
3574
|
-
"card--trend-down": "_card--trend-
|
|
3575
|
-
card__description: "
|
|
3576
|
-
},
|
|
3563
|
+
}), Z = {
|
|
3564
|
+
card: "_card_1qi93_4",
|
|
3565
|
+
"card--featured": "_card--featured_1qi93_24",
|
|
3566
|
+
card__head: "_card__head_1qi93_26",
|
|
3567
|
+
card__icon: "_card__icon_1qi93_27",
|
|
3568
|
+
card__title: "_card__title_1qi93_41",
|
|
3569
|
+
card__menu: "_card__menu_1qi93_42",
|
|
3570
|
+
card__value: "_card__value_1qi93_50",
|
|
3571
|
+
card__meta: "_card__meta_1qi93_59",
|
|
3572
|
+
card__sparkline: "_card__sparkline_1qi93_66",
|
|
3573
|
+
"card--trend-up": "_card--trend-up_1qi93_68",
|
|
3574
|
+
"card--trend-down": "_card--trend-down_1qi93_69",
|
|
3575
|
+
card__description: "_card__description_1qi93_72"
|
|
3576
|
+
}, si = {
|
|
3577
3577
|
up: ut,
|
|
3578
3578
|
down: lt,
|
|
3579
3579
|
flat: tt
|
|
3580
|
-
},
|
|
3580
|
+
}, ci = {
|
|
3581
3581
|
up: "success",
|
|
3582
3582
|
down: "danger",
|
|
3583
3583
|
flat: "neutral"
|
|
3584
|
-
},
|
|
3584
|
+
}, li = ({ data: e }) => {
|
|
3585
3585
|
if (e.length < 2) return null;
|
|
3586
3586
|
let t = Math.min(...e), n = Math.max(...e) - t || 1;
|
|
3587
3587
|
return /* @__PURE__ */ O("svg", {
|
|
3588
|
-
className:
|
|
3588
|
+
className: ui,
|
|
3589
3589
|
viewBox: "0 0 100 32",
|
|
3590
3590
|
preserveAspectRatio: "none",
|
|
3591
3591
|
"aria-hidden": "true",
|
|
@@ -3598,21 +3598,21 @@ var X = {
|
|
|
3598
3598
|
strokeLinecap: "round"
|
|
3599
3599
|
})
|
|
3600
3600
|
});
|
|
3601
|
-
},
|
|
3602
|
-
let f =
|
|
3601
|
+
}, ui = Z.card__sparkline, di = ({ title: e, value: t, description: n, sparkline: r, delta: i, trend: a = "up", badgeVariant: o, variant: s = "minimal", icon: c, showMenu: l, onMenu: u, className: d }) => {
|
|
3602
|
+
let f = si[a], p = (s === "icon" || s === "featured") && c;
|
|
3603
3603
|
return /* @__PURE__ */ k("div", {
|
|
3604
3604
|
className: [
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3605
|
+
Z.card,
|
|
3606
|
+
Z[`card--${s}`],
|
|
3607
|
+
Z[`card--trend-${a}`],
|
|
3608
3608
|
d ?? ""
|
|
3609
3609
|
].filter(Boolean).join(" "),
|
|
3610
3610
|
children: [
|
|
3611
3611
|
/* @__PURE__ */ k("div", {
|
|
3612
|
-
className:
|
|
3612
|
+
className: Z.card__head,
|
|
3613
3613
|
children: [
|
|
3614
3614
|
p && /* @__PURE__ */ O("span", {
|
|
3615
|
-
className:
|
|
3615
|
+
className: Z.card__icon,
|
|
3616
3616
|
"aria-hidden": "true",
|
|
3617
3617
|
children: /* @__PURE__ */ O(c, {
|
|
3618
3618
|
size: 18,
|
|
@@ -3620,12 +3620,12 @@ var X = {
|
|
|
3620
3620
|
})
|
|
3621
3621
|
}),
|
|
3622
3622
|
/* @__PURE__ */ O("span", {
|
|
3623
|
-
className:
|
|
3623
|
+
className: Z.card__title,
|
|
3624
3624
|
children: e
|
|
3625
3625
|
}),
|
|
3626
3626
|
l && /* @__PURE__ */ O("button", {
|
|
3627
3627
|
type: "button",
|
|
3628
|
-
className:
|
|
3628
|
+
className: Z.card__menu,
|
|
3629
3629
|
onClick: u,
|
|
3630
3630
|
"aria-label": "More options",
|
|
3631
3631
|
children: /* @__PURE__ */ O(nt, {
|
|
@@ -3636,27 +3636,27 @@ var X = {
|
|
|
3636
3636
|
]
|
|
3637
3637
|
}),
|
|
3638
3638
|
/* @__PURE__ */ O("div", {
|
|
3639
|
-
className:
|
|
3639
|
+
className: Z.card__value,
|
|
3640
3640
|
children: t
|
|
3641
3641
|
}),
|
|
3642
|
-
r && /* @__PURE__ */ O(
|
|
3642
|
+
r && /* @__PURE__ */ O(li, { data: r }),
|
|
3643
3643
|
(i || n) && /* @__PURE__ */ k("div", {
|
|
3644
|
-
className:
|
|
3644
|
+
className: Z.card__meta,
|
|
3645
3645
|
children: [i && /* @__PURE__ */ O(C, {
|
|
3646
|
-
variant: o ??
|
|
3646
|
+
variant: o ?? ci[a],
|
|
3647
3647
|
leftIcon: /* @__PURE__ */ O(f, {
|
|
3648
3648
|
size: 12,
|
|
3649
3649
|
strokeWidth: 2
|
|
3650
3650
|
}),
|
|
3651
3651
|
children: i
|
|
3652
3652
|
}), n && /* @__PURE__ */ O("p", {
|
|
3653
|
-
className:
|
|
3653
|
+
className: Z.card__description,
|
|
3654
3654
|
children: n
|
|
3655
3655
|
})]
|
|
3656
3656
|
})
|
|
3657
3657
|
]
|
|
3658
3658
|
});
|
|
3659
|
-
},
|
|
3659
|
+
}, Q = {
|
|
3660
3660
|
stepper: "_stepper_kxw14_3",
|
|
3661
3661
|
"stepper--horizontal": "_stepper--horizontal_kxw14_4",
|
|
3662
3662
|
"stepper--vertical": "_stepper--vertical_kxw14_5",
|
|
@@ -3677,41 +3677,41 @@ var X = {
|
|
|
3677
3677
|
"connector--horizontal": "_connector--horizontal_kxw14_47",
|
|
3678
3678
|
"connector--vertical": "_connector--vertical_kxw14_48",
|
|
3679
3679
|
"connector--filled": "_connector--filled_kxw14_49"
|
|
3680
|
-
},
|
|
3681
|
-
className: [
|
|
3680
|
+
}, fi = ({ index: e, state: t, label: n, description: r, orientation: i = "horizontal" }) => /* @__PURE__ */ k("div", {
|
|
3681
|
+
className: [Q.step, Q[`step--${i}`]].join(" "),
|
|
3682
3682
|
children: [/* @__PURE__ */ O("span", {
|
|
3683
|
-
className: [
|
|
3683
|
+
className: [Q.circle, Q[`circle--${t}`]].join(" "),
|
|
3684
3684
|
"aria-hidden": "true",
|
|
3685
3685
|
children: t === "completed" ? /* @__PURE__ */ O(Ge, {
|
|
3686
3686
|
size: 14,
|
|
3687
3687
|
strokeWidth: E(14)
|
|
3688
3688
|
}) : /* @__PURE__ */ O("span", {
|
|
3689
|
-
className:
|
|
3689
|
+
className: Q.circle__num,
|
|
3690
3690
|
children: e + 1
|
|
3691
3691
|
})
|
|
3692
3692
|
}), /* @__PURE__ */ k("span", {
|
|
3693
|
-
className:
|
|
3693
|
+
className: Q.step__text,
|
|
3694
3694
|
children: [/* @__PURE__ */ O("span", {
|
|
3695
3695
|
className: [
|
|
3696
|
-
|
|
3697
|
-
t === "current" ?
|
|
3698
|
-
t === "upcoming" ?
|
|
3696
|
+
Q.step__label,
|
|
3697
|
+
t === "current" ? Q["step__label--current"] : "",
|
|
3698
|
+
t === "upcoming" ? Q["step__label--upcoming"] : ""
|
|
3699
3699
|
].filter(Boolean).join(" "),
|
|
3700
3700
|
children: n
|
|
3701
3701
|
}), r && /* @__PURE__ */ O("span", {
|
|
3702
|
-
className:
|
|
3702
|
+
className: Q.step__desc,
|
|
3703
3703
|
children: r
|
|
3704
3704
|
})]
|
|
3705
3705
|
})]
|
|
3706
|
-
}),
|
|
3706
|
+
}), pi = ({ steps: e, current: t, orientation: n = "horizontal", className: r }) => {
|
|
3707
3707
|
let i = (e) => e < t ? "completed" : e === t ? "current" : "upcoming";
|
|
3708
3708
|
return /* @__PURE__ */ O("div", {
|
|
3709
3709
|
className: [
|
|
3710
|
-
|
|
3711
|
-
|
|
3710
|
+
Q.stepper,
|
|
3711
|
+
Q[`stepper--${n}`],
|
|
3712
3712
|
r ?? ""
|
|
3713
3713
|
].filter(Boolean).join(" "),
|
|
3714
|
-
children: e.map((r, a) => /* @__PURE__ */ k(D.Fragment, { children: [/* @__PURE__ */ O(
|
|
3714
|
+
children: e.map((r, a) => /* @__PURE__ */ k(D.Fragment, { children: [/* @__PURE__ */ O(fi, {
|
|
3715
3715
|
index: a,
|
|
3716
3716
|
state: i(a),
|
|
3717
3717
|
label: r.label,
|
|
@@ -3719,46 +3719,59 @@ var X = {
|
|
|
3719
3719
|
orientation: n
|
|
3720
3720
|
}), a < e.length - 1 && /* @__PURE__ */ O("span", {
|
|
3721
3721
|
className: [
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
a < t ?
|
|
3722
|
+
Q.connector,
|
|
3723
|
+
Q[`connector--${n}`],
|
|
3724
|
+
a < t ? Q["connector--filled"] : ""
|
|
3725
3725
|
].filter(Boolean).join(" "),
|
|
3726
3726
|
"aria-hidden": "true"
|
|
3727
3727
|
})] }, a))
|
|
3728
3728
|
});
|
|
3729
|
-
},
|
|
3730
|
-
wrapper: "
|
|
3731
|
-
"wrapper--disabled": "_wrapper--
|
|
3732
|
-
input: "
|
|
3733
|
-
track: "
|
|
3734
|
-
thumb: "
|
|
3735
|
-
label: "
|
|
3736
|
-
|
|
3737
|
-
|
|
3729
|
+
}, $ = {
|
|
3730
|
+
wrapper: "_wrapper_1xxik_3",
|
|
3731
|
+
"wrapper--disabled": "_wrapper--disabled_1xxik_11",
|
|
3732
|
+
input: "_input_1xxik_13",
|
|
3733
|
+
track: "_track_1xxik_15",
|
|
3734
|
+
thumb: "_thumb_1xxik_28",
|
|
3735
|
+
label: "_label_1xxik_55",
|
|
3736
|
+
"wrapper--withDescription": "_wrapper--withDescription_1xxik_60",
|
|
3737
|
+
text: "_text_1xxik_61",
|
|
3738
|
+
description: "_description_1xxik_63"
|
|
3739
|
+
}, mi = D.forwardRef(({ label: e, description: t, disabled: n, id: r, className: i, ...a }, o) => {
|
|
3740
|
+
let s = D.useId(), c = r ?? s;
|
|
3738
3741
|
return /* @__PURE__ */ k("label", {
|
|
3739
|
-
htmlFor:
|
|
3742
|
+
htmlFor: c,
|
|
3740
3743
|
className: [
|
|
3741
|
-
|
|
3742
|
-
t ?
|
|
3743
|
-
|
|
3744
|
+
$.wrapper,
|
|
3745
|
+
t ? $["wrapper--withDescription"] : "",
|
|
3746
|
+
n ? $["wrapper--disabled"] : "",
|
|
3747
|
+
i ?? ""
|
|
3744
3748
|
].filter(Boolean).join(" "),
|
|
3745
3749
|
children: [
|
|
3746
3750
|
/* @__PURE__ */ O("input", {
|
|
3747
|
-
ref:
|
|
3748
|
-
id:
|
|
3751
|
+
ref: o,
|
|
3752
|
+
id: c,
|
|
3749
3753
|
type: "checkbox",
|
|
3750
3754
|
role: "switch",
|
|
3751
|
-
disabled:
|
|
3752
|
-
className:
|
|
3753
|
-
...
|
|
3755
|
+
disabled: n,
|
|
3756
|
+
className: $.input,
|
|
3757
|
+
...a
|
|
3754
3758
|
}),
|
|
3755
3759
|
/* @__PURE__ */ O("span", {
|
|
3756
|
-
className:
|
|
3760
|
+
className: $.track,
|
|
3757
3761
|
"aria-hidden": "true",
|
|
3758
|
-
children: /* @__PURE__ */ O("span", { className:
|
|
3762
|
+
children: /* @__PURE__ */ O("span", { className: $.thumb })
|
|
3759
3763
|
}),
|
|
3760
|
-
|
|
3761
|
-
className:
|
|
3764
|
+
t ? /* @__PURE__ */ k("span", {
|
|
3765
|
+
className: $.text,
|
|
3766
|
+
children: [e && /* @__PURE__ */ O("span", {
|
|
3767
|
+
className: $.label,
|
|
3768
|
+
children: e
|
|
3769
|
+
}), /* @__PURE__ */ O("span", {
|
|
3770
|
+
className: $.description,
|
|
3771
|
+
children: t
|
|
3772
|
+
})]
|
|
3773
|
+
}) : e && /* @__PURE__ */ O("span", {
|
|
3774
|
+
className: $.label,
|
|
3762
3775
|
children: e
|
|
3763
3776
|
})
|
|
3764
3777
|
]
|
|
@@ -3807,15 +3820,15 @@ var hi = {
|
|
|
3807
3820
|
});
|
|
3808
3821
|
gi.displayName = "Textarea";
|
|
3809
3822
|
var _i = {
|
|
3810
|
-
toast: "
|
|
3811
|
-
toast__icon: "
|
|
3812
|
-
"toast--success": "_toast--
|
|
3813
|
-
"toast--error": "_toast--
|
|
3814
|
-
"toast--info": "_toast--
|
|
3815
|
-
toast__content: "
|
|
3816
|
-
toast__title: "
|
|
3817
|
-
toast__description: "
|
|
3818
|
-
toast__dismiss: "
|
|
3823
|
+
toast: "_toast_dshlf_3",
|
|
3824
|
+
toast__icon: "_toast__icon_dshlf_17",
|
|
3825
|
+
"toast--success": "_toast--success_dshlf_18",
|
|
3826
|
+
"toast--error": "_toast--error_dshlf_19",
|
|
3827
|
+
"toast--info": "_toast--info_dshlf_20",
|
|
3828
|
+
toast__content: "_toast__content_dshlf_22",
|
|
3829
|
+
toast__title: "_toast__title_dshlf_23",
|
|
3830
|
+
toast__description: "_toast__description_dshlf_24",
|
|
3831
|
+
toast__dismiss: "_toast__dismiss_dshlf_26"
|
|
3819
3832
|
}, vi = {
|
|
3820
3833
|
success: /* @__PURE__ */ k(He, { children: [/* @__PURE__ */ O("path", { d: "M22 11.08V12a10 10 0 1 1-5.93-9.14" }), /* @__PURE__ */ O("polyline", { points: "22 4 12 14.01 9 11.01" })] }),
|
|
3821
3834
|
error: /* @__PURE__ */ k(He, { children: [
|
|
@@ -3968,4 +3981,4 @@ var _i = {
|
|
|
3968
3981
|
]
|
|
3969
3982
|
});
|
|
3970
3983
|
//#endregion
|
|
3971
|
-
export { ce as Accordion, de as AccordionItem, oe as ActivityFeed, ye as ActivityFeedHighlight, h as Alert, zt as Announcement, Wn as AreaChart, Pe as Avatar, m as AvatarGroup, he as AvatarUpload, C as Badge, Oe as Balance, on as BarChart, _n as BlogBlockquote, yn as BlogFeatureText, xn as BlogImage, l as BlogListingCard, o as BlogListingFeaturedCard, i as BoardCard, Gn as BoardColumn, Ie as Breadcrumb, w as Button, Xn as Calendar, Zn as Card, r as CardMetaItem, u as CartItem, y as ChatComposer, Le as Checkbox, d as CheckoutSteps, Ut as CodeSnippet, S as ColorSwatch, Qn as Combobox, T as ConversationItem, Ee as DEFAULT_CHECKOUT_STEPS, Me as Divider, tr as DonutChart, Re as EmptyState, Kt as Expenses, g as FeaturedIcon, nr as FileUpload, Fe as FilterChip, Cn as FirstPageHeading, sr as FunnelChart, ur as HeatmapChart, b as HoverGroup, we as IconButton, Yt as InlineHint, re as Input, ge as JobListing, fr as Kbd, mr as Label, vr as LineChart, Ae as Link, Tn as List, br as ListItem, p as LocationDot, On as Marquee, Sr as Menu, Cr as MenuDivider, Tr as MenuItem, fe as MessageBubble, An as Metric, jn as MobileNavigationMenu, le as Modal, e as NotificationItem, pe as Pagination, Nr as PieChart, Pn as PlaceholderLogo, Pr as Popover, x as PriceDisplay, ee as ProductCard, n as ProductGallery, Fn as ProfileCard, Se as Progress, Xt as ProgressItem, _ as ProgressStat, te as QuantitySelector, Wr as RadarChart, Qr as RadialChart, $r as Radio, Qt as RichSeparator, Ln as RichTextHeading, zn as RichTextParagraph, t as SectionHeading, be as SegmentedControl, Te as Select, ue as Sidebar, se as SidebarDivider, ei as SidebarFooter, Ne as SidebarGroupLabel, ve as SidebarHeader, ae as SidebarItem, ni as SidebarPromo,
|
|
3984
|
+
export { ce as Accordion, de as AccordionItem, oe as ActivityFeed, ye as ActivityFeedHighlight, h as Alert, zt as Announcement, Wn as AreaChart, Pe as Avatar, m as AvatarGroup, he as AvatarUpload, C as Badge, Oe as Balance, on as BarChart, _n as BlogBlockquote, yn as BlogFeatureText, xn as BlogImage, l as BlogListingCard, o as BlogListingFeaturedCard, i as BoardCard, Gn as BoardColumn, Ie as Breadcrumb, w as Button, Xn as Calendar, Zn as Card, r as CardMetaItem, u as CartItem, y as ChatComposer, Le as Checkbox, d as CheckoutSteps, Ut as CodeSnippet, S as ColorSwatch, Qn as Combobox, T as ConversationItem, Ee as DEFAULT_CHECKOUT_STEPS, Me as Divider, tr as DonutChart, Re as EmptyState, Kt as Expenses, g as FeaturedIcon, nr as FileUpload, Fe as FilterChip, Cn as FirstPageHeading, sr as FunnelChart, ur as HeatmapChart, b as HoverGroup, we as IconButton, Yt as InlineHint, re as Input, ge as JobListing, fr as Kbd, mr as Label, vr as LineChart, Ae as Link, Tn as List, br as ListItem, p as LocationDot, On as Marquee, Sr as Menu, Cr as MenuDivider, Tr as MenuItem, fe as MessageBubble, An as Metric, jn as MobileNavigationMenu, le as Modal, e as NotificationItem, pe as Pagination, Nr as PieChart, Pn as PlaceholderLogo, Pr as Popover, x as PriceDisplay, ee as ProductCard, n as ProductGallery, Fn as ProfileCard, Se as Progress, Xt as ProgressItem, _ as ProgressStat, te as QuantitySelector, Wr as RadarChart, Qr as RadialChart, $r as Radio, Qt as RichSeparator, Ln as RichTextHeading, zn as RichTextParagraph, t as SectionHeading, be as SegmentedControl, Te as Select, ue as Sidebar, se as SidebarDivider, ei as SidebarFooter, Ne as SidebarGroupLabel, ve as SidebarHeader, ae as SidebarItem, ni as SidebarPromo, ii as SidebarSearch, ke as SidebarSubItem, ze as SizeSelector, Ce as Skeleton, ie as Slider, ne as SpendingBalance, oi as Spinner, v as StarRating, di as StatCard, pi as Stepper, fi as StepperStep, cn as StockMarket, f as StockStatus, Vn as SubFeature, mi as Switch, me as Table, De as Tabs, dn as Tags, _e as TeamCard, gi as Textarea, mn as Ticker, yi as Toast, xe as Tooltip, je as TopBar, xi as TopBarMobile, gn as Transactions, c as WishlistButton, s as getContrastColor, E as iconStrokeWidth, a as useHoverHighlight };
|