@sakaniui/react 0.3.28 → 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/index.cjs +1 -1
- package/dist/index.mjs +108 -108
- 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", {
|
|
@@ -3561,18 +3561,18 @@ var X = {
|
|
|
3561
3561
|
})]
|
|
3562
3562
|
})
|
|
3563
3563
|
}), Z = {
|
|
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: "
|
|
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
3576
|
}, si = {
|
|
3577
3577
|
up: ut,
|
|
3578
3578
|
down: lt,
|
|
@@ -3820,15 +3820,15 @@ var hi = {
|
|
|
3820
3820
|
});
|
|
3821
3821
|
gi.displayName = "Textarea";
|
|
3822
3822
|
var _i = {
|
|
3823
|
-
toast: "
|
|
3824
|
-
toast__icon: "
|
|
3825
|
-
"toast--success": "_toast--
|
|
3826
|
-
"toast--error": "_toast--
|
|
3827
|
-
"toast--info": "_toast--
|
|
3828
|
-
toast__content: "
|
|
3829
|
-
toast__title: "
|
|
3830
|
-
toast__description: "
|
|
3831
|
-
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"
|
|
3832
3832
|
}, vi = {
|
|
3833
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" })] }),
|
|
3834
3834
|
error: /* @__PURE__ */ k(He, { children: [
|