@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/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-Cbskdj4E.js";
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: "_calendar_1ljjb_2",
1572
- header: "_header_1ljjb_14",
1573
- header__label: "_header__label_1ljjb_15",
1574
- navBtn: "_navBtn_1ljjb_16",
1575
- weekdays: "_weekdays_1ljjb_27",
1576
- weekday: "_weekday_1ljjb_27",
1577
- grid: "_grid_1ljjb_34",
1578
- day: "_day_1ljjb_35",
1579
- "day--default": "_day--default_1ljjb_45",
1580
- "day--hover": "_day--hover_1ljjb_46",
1581
- "day--selected": "_day--selected_1ljjb_47",
1582
- "day--today": "_day--today_1ljjb_48",
1583
- "day--in-range": "_day--in-range_1ljjb_49",
1584
- "day--outside": "_day--outside_1ljjb_50",
1585
- "day--disabled": "_day--disabled_1ljjb_51",
1586
- dropdowns: "_dropdowns_1ljjb_54",
1587
- dropdown: "_dropdown_1ljjb_54"
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: "_field_12ugs_7",
1776
- field__label: "_field__label_12ugs_8",
1777
- field__description: "_field__description_12ugs_9",
1778
- field__error: "_field__error_12ugs_10",
1779
- control: "_control_12ugs_13",
1780
- "control--sm": "_control--sm_12ugs_25",
1781
- "control--md": "_control--md_12ugs_26",
1782
- "control--lg": "_control--lg_12ugs_27",
1783
- "control--open": "_control--open_12ugs_30",
1784
- "control--error": "_control--error_12ugs_41",
1785
- "control--disabled": "_control--disabled_12ugs_46",
1786
- control__value: "_control__value_12ugs_52",
1787
- "control__value--placeholder": "_control__value--placeholder_12ugs_62",
1788
- control__input: "_control__input_12ugs_63",
1789
- control__chevron: "_control__chevron_12ugs_83",
1790
- "control__chevron--open": "_control__chevron--open_12ugs_84",
1791
- chips: "_chips_12ugs_90",
1792
- chip: "_chip_12ugs_90",
1793
- "chip--leaving": "_chip--leaving_12ugs_102",
1794
- "sakani-combobox-chip-out": "_sakani-combobox-chip-out_12ugs_1",
1795
- chip__remove: "_chip__remove_12ugs_110",
1796
- panel: "_panel_12ugs_121",
1797
- "panel--entering": "_panel--entering_12ugs_145",
1798
- "sakani-combobox-panel-in": "_sakani-combobox-panel-in_12ugs_1",
1799
- "panel--exiting": "_panel--exiting_12ugs_146",
1800
- "sakani-combobox-panel-out": "_sakani-combobox-panel-out_12ugs_1",
1801
- panel__empty: "_panel__empty_12ugs_156",
1802
- option: "_option_12ugs_164",
1803
- "option--selected": "_option--selected_12ugs_189",
1804
- "option--disabled": "_option--disabled_12ugs_190",
1805
- optionHighlight: "_optionHighlight_12ugs_165",
1806
- "optionHighlight--animated": "_optionHighlight--animated_12ugs_221",
1807
- option__box: "_option__box_12ugs_228",
1808
- "option__box--checked": "_option__box--checked_12ugs_245",
1809
- option__icon: "_option__icon_12ugs_250",
1810
- option__label: "_option__label_12ugs_251",
1811
- option__check: "_option__check_12ugs_252",
1812
- panel__loading: "_panel__loading_12ugs_255",
1813
- panel__spinner: "_panel__spinner_12ugs_259",
1814
- "sakani-cb-spin": "_sakani-cb-spin_12ugs_1"
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: "_wrap_1b5p5_2",
2131
- dropzone: "_dropzone_1b5p5_4",
2132
- "dropzone--dragging": "_dropzone--dragging_1b5p5_21",
2133
- dropzone__icon: "_dropzone__icon_1b5p5_23",
2134
- dropzone__label: "_dropzone__label_1b5p5_28",
2135
- dropzone__link: "_dropzone__link_1b5p5_29",
2136
- dropzone__hint: "_dropzone__hint_1b5p5_30",
2137
- input: "_input_1b5p5_32",
2138
- files: "_files_1b5p5_35",
2139
- file: "_file_1b5p5_35",
2140
- file__icon: "_file__icon_1b5p5_45",
2141
- file__name: "_file__name_1b5p5_46",
2142
- file__remove: "_file__remove_1b5p5_47"
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: "_item_va3db_2",
2568
- "item--disabled": "_item--disabled_va3db_18",
2569
- "item--selected": "_item--selected_va3db_22",
2570
- item__leading: "_item__leading_va3db_26",
2571
- item__text: "_item__text_va3db_27",
2572
- item__title: "_item__title_va3db_28",
2573
- item__description: "_item__description_va3db_29",
2574
- item__trailing: "_item__trailing_va3db_30"
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: "_item_1n6g9_2",
2626
- item__icon: "_item__icon_1n6g9_23",
2627
- item__label: "_item__label_1n6g9_24",
2628
- item__shortcut: "_item__shortcut_1n6g9_25",
2629
- item__check: "_item__check_1n6g9_32",
2630
- "item--checked": "_item--checked_1n6g9_34",
2631
- "item--disabled": "_item--disabled_1n6g9_35",
2632
- "item--destructive": "_item--destructive_1n6g9_36"
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: "_card_u5kvg_4",
3565
- "card--featured": "_card--featured_u5kvg_24",
3566
- card__head: "_card__head_u5kvg_26",
3567
- card__icon: "_card__icon_u5kvg_27",
3568
- card__title: "_card__title_u5kvg_41",
3569
- card__menu: "_card__menu_u5kvg_42",
3570
- card__value: "_card__value_u5kvg_50",
3571
- card__meta: "_card__meta_u5kvg_59",
3572
- card__sparkline: "_card__sparkline_u5kvg_66",
3573
- "card--trend-up": "_card--trend-up_u5kvg_68",
3574
- "card--trend-down": "_card--trend-down_u5kvg_69",
3575
- card__description: "_card__description_u5kvg_72"
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: "_toast_8yqwj_3",
3824
- toast__icon: "_toast__icon_8yqwj_17",
3825
- "toast--success": "_toast--success_8yqwj_18",
3826
- "toast--error": "_toast--error_8yqwj_19",
3827
- "toast--info": "_toast--info_8yqwj_20",
3828
- toast__content: "_toast__content_8yqwj_22",
3829
- toast__title: "_toast__title_8yqwj_23",
3830
- toast__description: "_toast__description_8yqwj_24",
3831
- toast__dismiss: "_toast__dismiss_8yqwj_26"
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: [