anysystem-design 0.0.47 → 0.0.48

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.
Files changed (42) hide show
  1. package/README.md +4 -1
  2. package/dist/{calculate-active-index-xXUBsarF.js → calculate-active-index-DbdO98Z_.js} +2 -2
  3. package/dist/{combobox-DcjIgW1K.js → combobox-BGEhR2HT.js} +4 -4
  4. package/dist/components/AutoComplete/AutoCompleteBase.js +1 -1
  5. package/dist/components/AutoComplete/AutoCompleteMultiple.js +2 -2
  6. package/dist/components/Checkbox/Checkbox.d.ts +1 -1
  7. package/dist/components/Checkbox/CheckboxBase.d.ts +1 -1
  8. package/dist/components/Checkbox/FormCheckbox.d.ts +1 -2
  9. package/dist/components/Column/Column.d.ts +1 -1
  10. package/dist/components/Component.d.ts +1 -3
  11. package/dist/components/Container/Container.d.ts +1 -1
  12. package/dist/components/DataTable/components/DataTableBody.d.ts +1 -3
  13. package/dist/components/DataTable/components/DataTableHead.d.ts +1 -3
  14. package/dist/components/DataTable/components/FieldSelectbox.js +3 -3
  15. package/dist/components/DatePicker/DatePicker.d.ts +1 -2
  16. package/dist/components/DatePicker/DatePicker.js +1 -1
  17. package/dist/components/FormControl/FormContent.d.ts +1 -2
  18. package/dist/components/FormControl/FormContent.js +2 -2
  19. package/dist/components/FormControl/type.d.ts +1 -1
  20. package/dist/components/Label/FormLabel.d.ts +1 -1
  21. package/dist/components/Label/Label.d.ts +1 -1
  22. package/dist/components/Modal/Modal.js +1 -1
  23. package/dist/components/NavList/NavList.d.ts +4 -2
  24. package/dist/components/NavList/NavList.js +38 -38
  25. package/dist/components/Navbar/Navbar.d.ts +1 -1
  26. package/dist/components/RadioGroup/RadioGroup.js +1 -1
  27. package/dist/components/Row/Row.d.ts +1 -1
  28. package/dist/components/Selectbox/SelectboxBase.js +4 -4
  29. package/dist/components/Selectbox/SelectboxMultiple.js +10 -10
  30. package/dist/components/Switch/Switch.d.ts +1 -3
  31. package/dist/components/Switch/Switch.js +1 -1
  32. package/dist/components/Text/Text.d.ts +3 -1
  33. package/dist/contexts/AppContext.d.ts +1 -1
  34. package/dist/{floating-ui.react-dom-YTFlGVA5.js → floating-ui.react-dom-BCi5XVbY.js} +1 -1
  35. package/dist/{headless-datepicker-BV7tOa5a.js → headless-datepicker-DRvAXFm1.js} +1 -1
  36. package/dist/index-CTu7UrOL.js +383 -0
  37. package/dist/index.css +1 -1
  38. package/dist/{label-9PX7EyLe.js → label-BU1UL9Xe.js} +1 -1
  39. package/dist/{listbox-T8TrOULl.js → listbox-BHRihzeO.js} +4 -4
  40. package/dist/{portal-B7hH6hDh.js → portal-BgeE7-lt.js} +1 -1
  41. package/package.json +12 -12
  42. package/dist/index-DsprzSCj.js +0 -19066
package/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Anysystem Design
2
- Powerful open source libraries for React.
2
+ Powerful open source libraries for React and Tailwind CSS.
3
+
4
+ ## Usage Guide
5
+ Please visit [https://david-marstree.github.io/anysystem](https://david-marstree.github.io/anysystem)
3
6
 
4
7
  ## Getting started
5
8
  ```bash
@@ -1,8 +1,8 @@
1
1
  import * as c from "react";
2
2
  import be, { useReducer as We, useMemo as X, useRef as de, useLayoutEffect as Be, useEffect as Ve, createContext as He, useContext as Z, useCallback as Ye, useState as Q } from "react";
3
3
  import { n as te, o as Ae, p as je } from "./use-sync-refs-TDnk3jQt.js";
4
- import { i as Ue, b as me, c as S, g as re, u as Xe, d as qe, e as ye, h as Ge, j as Je, k as Qe, o as $e, l as oe, s as Ze, f as ze, m as et, a as tt } from "./floating-ui.react-dom-YTFlGVA5.js";
5
- import { r as ne } from "./index-DsprzSCj.js";
4
+ import { i as Ue, b as me, c as S, g as re, u as Xe, d as qe, e as ye, h as Ge, j as Je, k as Qe, o as $e, l as oe, s as Ze, f as ze, m as et, a as tt } from "./floating-ui.react-dom-BCi5XVbY.js";
5
+ import { r as ne } from "./index-CTu7UrOL.js";
6
6
  function nt(e) {
7
7
  if (e === null) return { width: 0, height: 0 };
8
8
  let { width: n, height: t } = e.getBoundingClientRect();
@@ -1,13 +1,13 @@
1
1
  import { $ as Pe, a as $e, r as je } from "./bugs-CHTtT8VX.js";
2
2
  import * as oe from "react";
3
3
  import $, { useRef as W, useEffect as He, createContext as ve, useReducer as Ke, createRef as Ue, useCallback as Te, useMemo as G, useId as ce, useContext as be, useState as Ge, Fragment as De } from "react";
4
- import { r as X } from "./index-DsprzSCj.js";
4
+ import { r as X } from "./index-CTu7UrOL.js";
5
5
  import { w as qe, T as Je } from "./use-resolve-button-type-DkEA2l9L.js";
6
6
  import { u as Ye } from "./use-by-comparator-CVuf9KBq.js";
7
- import { K as Qe, l as Xe, T as Ze, z as et, j as tt, u as nt, I as ge } from "./label-9PX7EyLe.js";
7
+ import { K as Qe, l as Xe, T as Ze, z as et, j as tt, u as nt, I as ge } from "./label-BU1UL9Xe.js";
8
8
  import { o as x, n as q, M as Re, W as se, u as ee, H as re, y as de, p as ot, D as xe, s as it, b as Ee } from "./use-sync-refs-TDnk3jQt.js";
9
- import { v as st, y as rt, x as lt, R as at, f as ut, g as ye, l as Ce, k as ct, h as dt, i as _, j as Me } from "./calculate-active-index-xXUBsarF.js";
10
- import { F as pt, n as Fe, f as ft, y as ht, t as mt, a as vt } from "./portal-B7hH6hDh.js";
9
+ import { v as st, y as rt, x as lt, R as at, f as ut, g as ye, l as Ce, k as ct, h as dt, i as _, j as Me } from "./calculate-active-index-DbdO98Z_.js";
10
+ import { F as pt, n as Fe, f as ft, y as ht, t as mt, a as vt } from "./portal-BgeE7-lt.js";
11
11
  import { m as bt } from "./transition-6o20faRl.js";
12
12
  import { E as gt, m as we, r as _e } from "./active-element-history-Djev6nPQ.js";
13
13
  import { c as xt, i as ue, u as St, V as It, A as Ot } from "./open-closed-CowzTowH.js";
@@ -5,7 +5,7 @@ import { H as E } from "../../index-BVp57yIc.js";
5
5
  import { c as C } from "../../index-CBEJ8A3p.js";
6
6
  import { G as w } from "../../iconBase-Bipuk9tK.js";
7
7
  import { getValue as c } from "../Selectbox/helper.js";
8
- import { N, G as A, H as L, z as S, K as H } from "../../combobox-DcjIgW1K.js";
8
+ import { N, G as A, H as L, z as S, K as H } from "../../combobox-BGEhR2HT.js";
9
9
  import { X as T } from "../../transition-6o20faRl.js";
10
10
  function R(t) {
11
11
  return w({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "m289.94 256 95-95A24 24 0 0 0 351 127l-95 95-95-95a24 24 0 0 0-34 34l95 95-95 95a24 24 0 1 0 34 34l95-95 95 95a24 24 0 0 0 34-34z" }, child: [] }] })(t);
@@ -6,7 +6,7 @@ import { H as C } from "../../index-BVp57yIc.js";
6
6
  import { c as w } from "../../index-CBEJ8A3p.js";
7
7
  import { g as N } from "../../index-Be1bsSGe.js";
8
8
  import { getValue as o } from "../Selectbox/helper.js";
9
- import { N as L, G as S, H as T, z as k, K as q } from "../../combobox-DcjIgW1K.js";
9
+ import { N as L, G as S, H as T, z as k, K as q } from "../../combobox-BGEhR2HT.js";
10
10
  import { X as A } from "../../transition-6o20faRl.js";
11
11
  const R = (r, t) => {
12
12
  if (t.type === "SEARCH")
@@ -84,7 +84,7 @@ const R = (r, t) => {
84
84
  },
85
85
  multiple: !0,
86
86
  children: /* @__PURE__ */ m("div", { className: "relative flex gap-1", children: [
87
- s.selected.length > 0 && /* @__PURE__ */ l("ul", { className: "flex form-control gap-1", children: (h = s.selected) == null ? void 0 : h.map((e, u) => /* @__PURE__ */ l("li", { children: /* @__PURE__ */ m("div", { className: "flex p-1 rounded bg-blue-50 dark:bg-blue-900", children: [
87
+ s.selected.length > 0 && /* @__PURE__ */ l("ul", { className: "flex form-control gap-1 transform translate-y-[12px]", children: (h = s.selected) == null ? void 0 : h.map((e, u) => /* @__PURE__ */ l("li", { children: /* @__PURE__ */ m("div", { className: "flex p-1 rounded bg-blue-50 dark:bg-blue-900", children: [
88
88
  /* @__PURE__ */ l("span", { className: "text-xs whitespace-nowrap", children: e.label }),
89
89
  /* @__PURE__ */ l(
90
90
  "button",
@@ -8,4 +8,4 @@ export type CheckboxProps = React.InputHTMLAttributes<HTMLInputElement> & {
8
8
  isError?: boolean;
9
9
  inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
10
10
  };
11
- export declare const Checkbox: React.FC<CheckboxProps>;
11
+ export declare const Checkbox: ({ className, name, label, hidden, isError, inputProps, ...props }: CheckboxProps) => import("react/jsx-runtime").JSX.Element;
@@ -6,4 +6,4 @@ export type CheckboxBaseProps = React.InputHTMLAttributes<HTMLInputElement> & {
6
6
  inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
7
7
  intermediate?: boolean;
8
8
  };
9
- export declare const CheckboxBase: React.FC<CheckboxBaseProps>;
9
+ export declare const CheckboxBase: ({ className, isError, inputProps, intermediate, ...props }: CheckboxBaseProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,4 @@
1
- import { default as React } from 'react';
2
1
  import { CheckboxProps } from './Checkbox';
3
2
 
4
3
  export type FormCheckboxProps = CheckboxProps;
5
- export declare const FormCheckbox: React.FC<FormCheckboxProps>;
4
+ export declare const FormCheckbox: ({ name, ...props }: FormCheckboxProps) => import("react/jsx-runtime").JSX.Element;
@@ -6,5 +6,5 @@ export type ColumnProps = React.HtmlHTMLAttributes<HTMLDivElement> & {
6
6
  span?: ResponsiveColumn;
7
7
  children: React.ReactNode;
8
8
  };
9
- declare const Column: React.FC<ColumnProps>;
9
+ declare const Column: ({ id, span, className, children, ...props }: ColumnProps) => import("react/jsx-runtime").JSX.Element;
10
10
  export default Column;
@@ -1,6 +1,4 @@
1
- import { default as React } from 'react';
2
-
3
1
  export type ComponentObject = {};
4
2
  export type ComponentProps = {};
5
- declare const Component: React.FC<ComponentProps>;
3
+ declare const Component: () => import("react/jsx-runtime").JSX.Element;
6
4
  export default Component;
@@ -4,4 +4,4 @@ export type ContainerProps = {
4
4
  className?: string;
5
5
  children: React.ReactNode;
6
6
  };
7
- export declare const Container: React.FC<ContainerProps>;
7
+ export declare const Container: ({ className, ...props }: ContainerProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,2 @@
1
- import { default as React } from 'react';
2
-
3
- declare const DataTableBody: React.FC;
1
+ declare const DataTableBody: () => import("react/jsx-runtime").JSX.Element;
4
2
  export default DataTableBody;
@@ -1,4 +1,2 @@
1
- import { default as React } from 'react';
2
-
3
- declare const DataTableHead: React.FC;
1
+ declare const DataTableHead: () => import("react/jsx-runtime").JSX.Element;
4
2
  export default DataTableHead;
@@ -2,10 +2,10 @@ import { jsxs as n, jsx as s, Fragment as F } from "react/jsx-runtime";
2
2
  import w, { Fragment as k } from "react";
3
3
  import { A as N, a as T } from "../../../index-Be1bsSGe.js";
4
4
  import { t as c } from "../../../bundle-mjs-SHnj3fHy.js";
5
- import { u as C, a as D, b as S, c as j, d as M, e as R } from "../../../calculate-active-index-xXUBsarF.js";
5
+ import { u as C, a as D, b as S, c as j, d as M, e as R } from "../../../calculate-active-index-DbdO98Z_.js";
6
6
  import { DataTableContext as A } from "../contexts/DataTableContext.js";
7
- import { o as E, f as P, s as U, a as _ } from "../../../floating-ui.react-dom-YTFlGVA5.js";
8
- import { M as B, U as G, G as I, V } from "../../../listbox-T8TrOULl.js";
7
+ import { o as E, f as P, s as U, a as _ } from "../../../floating-ui.react-dom-BCi5XVbY.js";
8
+ import { M as B, U as G, G as I, V } from "../../../listbox-BHRihzeO.js";
9
9
  import { X } from "../../../transition-6o20faRl.js";
10
10
  const W = () => {
11
11
  const { fields: a, state: i, dispatch: m } = w.useContext(A), { refs: l, x: d, y: u, strategy: p, floatingStyles: f, context: o } = C({
@@ -1,4 +1,3 @@
1
- import { default as React } from 'react';
2
1
  import { LabelBaseProps } from '../Label';
3
2
 
4
3
  export type DatePickerProps = {
@@ -9,5 +8,5 @@ export type DatePickerProps = {
9
8
  readOnly?: boolean;
10
9
  labelProps?: LabelBaseProps;
11
10
  };
12
- declare const DatePicker: React.FC<DatePickerProps>;
11
+ declare const DatePicker: ({ name, value, showTime, onChange, readOnly, labelProps, }: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
13
12
  export default DatePicker;
@@ -1,5 +1,5 @@
1
1
  import { jsx as r, jsxs as o, Fragment as n } from "react/jsx-runtime";
2
- import { h as y, G as a } from "../../headless-datepicker-BV7tOa5a.js";
2
+ import { h as y, G as a } from "../../headless-datepicker-DRvAXFm1.js";
3
3
  import { t as l } from "../../bundle-mjs-SHnj3fHy.js";
4
4
  import { d as k, e as v } from "../../index-Be1bsSGe.js";
5
5
  import w from "../Label/Label.js";
@@ -1,4 +1,3 @@
1
- import { default as React } from 'react';
2
1
  import { FormFieldWithStructure } from './type';
3
2
 
4
3
  export type FormContentProps = {
@@ -9,5 +8,5 @@ export type FormContentProps = {
9
8
  touched?: any;
10
9
  errors?: any;
11
10
  };
12
- declare const FormContent: React.FC<FormContentProps>;
11
+ declare const FormContent: ({ fields, values, setFieldValue, touched, errors, }: FormContentProps) => import("react/jsx-runtime").JSX.Element;
13
12
  export default FormContent;
@@ -1,10 +1,10 @@
1
1
  import { jsx as p, Fragment as F } from "react/jsx-runtime";
2
2
  import O, { useLayoutEffect as N, useEffect as X, useMemo as D, createContext as $, useContext as G, useRef as H } from "react";
3
3
  import { t as V } from "../../bundle-mjs-SHnj3fHy.js";
4
- import "../../index-DsprzSCj.js";
4
+ import "../../index-CTu7UrOL.js";
5
5
  import "../Button/Button.js";
6
6
  import J from "../Column/Column.js";
7
- import "../../headless-datepicker-BV7tOa5a.js";
7
+ import "../../headless-datepicker-DRvAXFm1.js";
8
8
  import "../Input/Input.js";
9
9
  import "../Input/FormInput.js";
10
10
  import "../Input/Textarea.js";
@@ -33,7 +33,7 @@ export type FormField = {
33
33
  dataType: "string" | "number" | "boolean" | "string[]";
34
34
  value: string | number | boolean | string[];
35
35
  validation?: Validation[];
36
- component?: React.FC<any>;
36
+ component?: (props: any) => React.ReactElement;
37
37
  componentProps: FormFieldInputProps | FormFieldDateTimeProps | FormFieldRadioProps<SelectOption> | FormFieldSwitchProps | FormFieldConfirmProps | FormFieldTelephoneProps | FormFieldSelectboxProps<SelectOption> | FormFieldAutoCompleteProps<SelectOption>;
38
38
  };
39
39
  export type FormFieldWithStructure = (FormField | FormField[])[];
@@ -6,4 +6,4 @@ export type FormLabelProps = {
6
6
  className?: string;
7
7
  htmlFor?: string;
8
8
  };
9
- export declare const FormLabel: React.FC<FormLabelProps>;
9
+ export declare const FormLabel: ({ label, className, htmlFor, children, }: FormLabelProps) => import("react/jsx-runtime").JSX.Element;
@@ -12,5 +12,5 @@ export type LabelBaseProps = {
12
12
  export type LabelProps = LabelBaseProps & {
13
13
  children: React.ReactNode;
14
14
  };
15
- declare const LabelBase: React.FC<LabelProps>;
15
+ declare const LabelBase: ({ label, className, htmlFor, isError, errorMessage, type, variant, children, }: LabelProps) => import("react/jsx-runtime").JSX.Element;
16
16
  export default LabelBase;
@@ -4,7 +4,7 @@ import { t as M } from "../../bundle-mjs-SHnj3fHy.js";
4
4
  import He from "../Button/Button.js";
5
5
  import { o as Ne, u as Ae } from "../../keyboard-DnlWU23I.js";
6
6
  import { E as fe, m as Z, r as V } from "../../active-element-history-Djev6nPQ.js";
7
- import { x as J, n as Q, s as Be, c as je, e as Ue, y as Ye, F as qe, f as Ve, l as le, t as _e, J as Ge } from "../../portal-B7hH6hDh.js";
7
+ import { x as J, n as Q, s as Be, c as je, e as Ue, y as Ye, F as qe, f as Ve, l as le, t as _e, J as Ge } from "../../portal-BgeE7-lt.js";
8
8
  import { n as We, o as E, W as C, y as j, u as G, p as Xe, H as N, c as me, M as ae } from "../../use-sync-refs-TDnk3jQt.js";
9
9
  import { l as pe, f as ve, m as Ke, X as ge, I as B } from "../../transition-6o20faRl.js";
10
10
  import { T as W, s as X, w as Ze, U as Je } from "../../description-BGLBXSvA.js";
@@ -3,7 +3,9 @@ import { default as React } from 'react';
3
3
  export type NavItemObject = {
4
4
  label: string;
5
5
  path?: string;
6
- icon?: React.FC;
6
+ icon?: React.ComponentType<{
7
+ size?: number;
8
+ }>;
7
9
  title?: boolean;
8
10
  list?: NavItemObject[];
9
11
  onClick?: () => void;
@@ -14,5 +16,5 @@ export type NavListProps = {
14
16
  pathname: string;
15
17
  };
16
18
  };
17
- declare const NavList: React.FC<NavListProps>;
19
+ declare const NavList: ({ list, location }: NavListProps) => import("react/jsx-runtime").JSX.Element;
18
20
  export default NavList;
@@ -1,4 +1,4 @@
1
- import { jsx as p, jsxs as C, Fragment as le } from "react/jsx-runtime";
1
+ import { jsx as s, jsxs as C, Fragment as le } from "react/jsx-runtime";
2
2
  import { G as ae } from "../../iconBase-Bipuk9tK.js";
3
3
  import { t as x } from "../../bundle-mjs-SHnj3fHy.js";
4
4
  import { $ as ne, a as oe, r as se } from "../../bugs-CHTtT8VX.js";
@@ -51,70 +51,70 @@ function xe(e, t) {
51
51
  }
52
52
  let De = J;
53
53
  function Ee(e, t) {
54
- let { defaultOpen: r = !1, ...d } = e, n = D(null), s = F(t, ce((i) => {
55
- n.current = i;
56
- }, e.as === void 0 || e.as === J)), l = D(null), a = D(null), o = ue(xe, { disclosureState: r ? 0 : 1, linkedPanel: !1, buttonRef: a, panelRef: l, buttonId: null, panelId: null }), [{ disclosureState: g, buttonId: u }, h] = o, f = E((i) => {
54
+ let { defaultOpen: r = !1, ...c } = e, n = D(null), u = F(t, ce((d) => {
55
+ n.current = d;
56
+ }, e.as === void 0 || e.as === J)), l = D(null), a = D(null), o = ue(xe, { disclosureState: r ? 0 : 1, linkedPanel: !1, buttonRef: a, panelRef: l, buttonId: null, panelId: null }), [{ disclosureState: g, buttonId: i }, h] = o, f = E((d) => {
57
57
  h({ type: 1 });
58
58
  let v = ve(n);
59
- if (!v || !u) return;
60
- let m = i ? i instanceof HTMLElement ? i : i.current instanceof HTMLElement ? i.current : v.getElementById(u) : v.getElementById(u);
59
+ if (!v || !i) return;
60
+ let m = d ? d instanceof HTMLElement ? d : d.current instanceof HTMLElement ? d.current : v.getElementById(i) : v.getElementById(i);
61
61
  m == null || m.focus();
62
- }), b = w(() => ({ close: f }), [f]), k = w(() => ({ open: g === 0, close: f }), [g, f]), P = { ref: s };
63
- return y.createElement(H.Provider, { value: o }, y.createElement(j.Provider, { value: b }, y.createElement(ke, { value: f }, y.createElement(pe, { value: M(g, { 0: T.Open, 1: T.Closed }) }, O({ ourProps: P, theirProps: d, slot: k, defaultTag: De, name: "Disclosure" })))));
62
+ }), b = w(() => ({ close: f }), [f]), k = w(() => ({ open: g === 0, close: f }), [g, f]), P = { ref: u };
63
+ return y.createElement(H.Provider, { value: o }, y.createElement(j.Provider, { value: b }, y.createElement(ke, { value: f }, y.createElement(pe, { value: M(g, { 0: T.Open, 1: T.Closed }) }, O({ ourProps: P, theirProps: c, slot: k, defaultTag: De, name: "Disclosure" })))));
64
64
  }
65
65
  let we = "button";
66
66
  function Te(e, t) {
67
- let r = Q(), { id: d = `headlessui-disclosure-button-${r}`, disabled: n = !1, autoFocus: s = !1, ...l } = e, [a, o] = L("Disclosure.Button"), g = Se(), u = g === null ? !1 : g === a.panelId, h = D(null), f = F(h, t, u ? null : a.buttonRef), b = Y();
67
+ let r = Q(), { id: c = `headlessui-disclosure-button-${r}`, disabled: n = !1, autoFocus: u = !1, ...l } = e, [a, o] = L("Disclosure.Button"), g = Se(), i = g === null ? !1 : g === a.panelId, h = D(null), f = F(h, t, i ? null : a.buttonRef), b = Y();
68
68
  X(() => {
69
- if (!u) return o({ type: 2, buttonId: d }), () => {
69
+ if (!i) return o({ type: 2, buttonId: c }), () => {
70
70
  o({ type: 2, buttonId: null });
71
71
  };
72
- }, [d, o, u]);
73
- let k = E((c) => {
72
+ }, [c, o, i]);
73
+ let k = E((p) => {
74
74
  var $;
75
- if (u) {
75
+ if (i) {
76
76
  if (a.disclosureState === 1) return;
77
- switch (c.key) {
77
+ switch (p.key) {
78
78
  case S.Space:
79
79
  case S.Enter:
80
- c.preventDefault(), c.stopPropagation(), o({ type: 0 }), ($ = a.buttonRef.current) == null || $.focus();
80
+ p.preventDefault(), p.stopPropagation(), o({ type: 0 }), ($ = a.buttonRef.current) == null || $.focus();
81
81
  break;
82
82
  }
83
- } else switch (c.key) {
83
+ } else switch (p.key) {
84
84
  case S.Space:
85
85
  case S.Enter:
86
- c.preventDefault(), c.stopPropagation(), o({ type: 0 });
86
+ p.preventDefault(), p.stopPropagation(), o({ type: 0 });
87
87
  break;
88
88
  }
89
- }), P = E((c) => {
90
- switch (c.key) {
89
+ }), P = E((p) => {
90
+ switch (p.key) {
91
91
  case S.Space:
92
- c.preventDefault();
92
+ p.preventDefault();
93
93
  break;
94
94
  }
95
- }), i = E((c) => {
95
+ }), d = E((p) => {
96
96
  var $;
97
- se(c.currentTarget) || n || (u ? (o({ type: 0 }), ($ = a.buttonRef.current) == null || $.focus()) : o({ type: 0 }));
98
- }), { isFocusVisible: v, focusProps: m } = ne({ autoFocus: s }), { isHovered: V, hoverProps: z } = oe({ isDisabled: n }), { pressed: A, pressProps: G } = ie({ disabled: n }), re = w(() => ({ open: a.disclosureState === 0, hover: V, active: A, disabled: n, focus: v, autofocus: s }), [a, V, A, v, n, s]), K = de(e, h), te = u ? _({ ref: f, type: K, disabled: n || void 0, autoFocus: s, onKeyDown: k, onClick: i }, m, z, G) : _({ ref: f, id: d, type: K, "aria-expanded": a.disclosureState === 0, "aria-controls": a.linkedPanel ? a.panelId : void 0, disabled: n || void 0, autoFocus: s, onKeyDown: k, onKeyUp: P, onClick: i }, m, z, G);
97
+ se(p.currentTarget) || n || (i ? (o({ type: 0 }), ($ = a.buttonRef.current) == null || $.focus()) : o({ type: 0 }));
98
+ }), { isFocusVisible: v, focusProps: m } = ne({ autoFocus: u }), { isHovered: V, hoverProps: z } = oe({ isDisabled: n }), { pressed: A, pressProps: G } = ie({ disabled: n }), re = w(() => ({ open: a.disclosureState === 0, hover: V, active: A, disabled: n, focus: v, autofocus: u }), [a, V, A, v, n, u]), K = de(e, h), te = i ? _({ ref: f, type: K, disabled: n || void 0, autoFocus: u, onKeyDown: k, onClick: d }, m, z, G) : _({ ref: f, id: c, type: K, "aria-expanded": a.disclosureState === 0, "aria-controls": a.linkedPanel ? a.panelId : void 0, disabled: n || void 0, autoFocus: u, onKeyDown: k, onKeyUp: P, onClick: d }, m, z, G);
99
99
  return O({ mergeRefs: b, ourProps: te, theirProps: l, slot: re, defaultTag: we, name: "Disclosure.Button" });
100
100
  }
101
101
  let Ce = "div", Ie = W.RenderStrategy | W.Static;
102
102
  function Re(e, t) {
103
- let r = Q(), { id: d = `headlessui-disclosure-panel-${r}`, transition: n = !1, ...s } = e, [l, a] = L("Disclosure.Panel"), { close: o } = Z("Disclosure.Panel"), g = Y(), u = F(t, l.panelRef, (i) => {
104
- be(() => a({ type: i ? 4 : 5 }));
103
+ let r = Q(), { id: c = `headlessui-disclosure-panel-${r}`, transition: n = !1, ...u } = e, [l, a] = L("Disclosure.Panel"), { close: o } = Z("Disclosure.Panel"), g = Y(), i = F(t, l.panelRef, (d) => {
104
+ be(() => a({ type: d ? 4 : 5 }));
105
105
  });
106
- X(() => (a({ type: 3, panelId: d }), () => {
106
+ X(() => (a({ type: 3, panelId: c }), () => {
107
107
  a({ type: 3, panelId: null });
108
- }), [d, a]);
109
- let h = fe(), [f, b] = ge(n, l.panelRef, h !== null ? (h & T.Open) === T.Open : l.disclosureState === 0), k = w(() => ({ open: l.disclosureState === 0, close: o }), [l.disclosureState, o]), P = { ref: u, id: d, ...he(b) };
110
- return y.createElement(ye, null, y.createElement(U.Provider, { value: l.panelId }, O({ mergeRefs: g, ourProps: P, theirProps: s, slot: k, defaultTag: Ce, features: Ie, visible: f, name: "Disclosure.Panel" })));
108
+ }), [c, a]);
109
+ let h = fe(), [f, b] = ge(n, l.panelRef, h !== null ? (h & T.Open) === T.Open : l.disclosureState === 0), k = w(() => ({ open: l.disclosureState === 0, close: o }), [l.disclosureState, o]), P = { ref: i, id: c, ...he(b) };
110
+ return y.createElement(ye, null, y.createElement(U.Provider, { value: l.panelId }, O({ mergeRefs: g, ourProps: P, theirProps: u, slot: k, defaultTag: Ce, features: Ie, visible: f, name: "Disclosure.Panel" })));
111
111
  }
112
112
  let Ne = B(Ee), I = B(Te), ee = B(Re), Be = Object.assign(Ne, { Button: I, Panel: ee });
113
113
  function Fe(e) {
114
114
  return ae({ tag: "svg", attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { fillRule: "evenodd", d: "M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708" }, child: [] }] })(e);
115
115
  }
116
- const Ke = ({ list: e, location: t }) => /* @__PURE__ */ p("nav", { className: "w-full px-4 py-6 bg-white dark:bg-gray-950", children: /* @__PURE__ */ p("ul", { children: e && e.map((r, d) => /* @__PURE__ */ p("li", { children: r != null && r.title ? /* @__PURE__ */ p("div", { className: "px-3 py-2 text-sm font-bold dark:text-white", children: r.label }) : r.list ? /* @__PURE__ */ p(Be, { as: "div", children: ({ open: n }) => {
117
- var s;
116
+ const Ke = ({ list: e, location: t }) => /* @__PURE__ */ s("nav", { className: "w-full px-4 py-6 bg-white dark:bg-gray-950", children: /* @__PURE__ */ s("ul", { children: e && e.map((r, c) => /* @__PURE__ */ s("li", { children: r != null && r.title ? /* @__PURE__ */ s("div", { className: "px-3 py-2 text-sm font-bold dark:text-white", children: r.label }) : r.list ? /* @__PURE__ */ s(Be, { as: "div", children: ({ open: n }) => {
117
+ var u;
118
118
  return /* @__PURE__ */ C(le, { children: [
119
119
  /* @__PURE__ */ C(
120
120
  I,
@@ -123,9 +123,9 @@ const Ke = ({ list: e, location: t }) => /* @__PURE__ */ p("nav", { className: "
123
123
  "flex items-center w-full p-3 font-semibold text-left rounded gap-2 hover:bg-primary-50 dark:text-white dark:hover:bg-gray-700"
124
124
  ),
125
125
  children: [
126
- r.icon && r.icon({ size: 20 }),
127
- /* @__PURE__ */ p("span", { children: r.label }),
128
- /* @__PURE__ */ p(
126
+ r.icon && /* @__PURE__ */ s(r.icon, { size: 20 }),
127
+ /* @__PURE__ */ s("span", { children: r.label }),
128
+ /* @__PURE__ */ s(
129
129
  Fe,
130
130
  {
131
131
  className: x(
@@ -138,7 +138,7 @@ const Ke = ({ list: e, location: t }) => /* @__PURE__ */ p("nav", { className: "
138
138
  ]
139
139
  }
140
140
  ),
141
- /* @__PURE__ */ p(ee, { as: "ul", className: "px-2 mt-1", children: (s = r == null ? void 0 : r.list) == null ? void 0 : s.map((l, a) => /* @__PURE__ */ p("li", { children: /* @__PURE__ */ p(
141
+ /* @__PURE__ */ s(ee, { as: "ul", className: "px-2 mt-1", children: (u = r == null ? void 0 : r.list) == null ? void 0 : u.map((l, a) => /* @__PURE__ */ s("li", { children: /* @__PURE__ */ s(
142
142
  I,
143
143
  {
144
144
  as: "a",
@@ -162,11 +162,11 @@ const Ke = ({ list: e, location: t }) => /* @__PURE__ */ p("nav", { className: "
162
162
  ),
163
163
  onClick: r == null ? void 0 : r.onClick,
164
164
  children: [
165
- r.icon && r.icon({ size: 20 }),
166
- /* @__PURE__ */ p("span", { children: r.label })
165
+ r.icon && /* @__PURE__ */ s(r.icon, { size: 20 }),
166
+ /* @__PURE__ */ s("span", { children: r.label })
167
167
  ]
168
168
  }
169
- ) }, d)) }) });
169
+ ) }, c)) }) });
170
170
  export {
171
171
  Ke as default
172
172
  };
@@ -6,5 +6,5 @@ export type NavbarProps = {
6
6
  menuRef?: React.RefObject<SideMenuHandler>;
7
7
  children?: React.ReactNode;
8
8
  };
9
- declare const Navbar: React.FC<NavbarProps>;
9
+ declare const Navbar: ({ title, menuRef, children }: NavbarProps) => import("react/jsx-runtime").JSX.Element;
10
10
  export default Navbar;
@@ -5,7 +5,7 @@ import { a as ke, b as Ee } from "../../index-BVp57yIc.js";
5
5
  import { getValue as z } from "../Selectbox/helper.js";
6
6
  import { $ as ae, a as ie, r as oe } from "../../bugs-CHTtT8VX.js";
7
7
  import { u as Te } from "../../use-by-comparator-CVuf9KBq.js";
8
- import { K as Oe, z as le, l as xe, T as Ce, j as Pe, u as De, I as we, p as Ge } from "../../label-9PX7EyLe.js";
8
+ import { K as Oe, z as le, l as xe, T as Ce, j as Pe, u as De, I as we, p as Ge } from "../../label-BU1UL9Xe.js";
9
9
  import { W, y as K, o as U, H as q, s as ne, n as se, D as ue, u as Se } from "../../use-sync-refs-TDnk3jQt.js";
10
10
  import { w as Fe, a as de, U as ce, G as Ne } from "../../description-BGLBXSvA.js";
11
11
  import { P as Z, F as H, T as ee, _ as Ae } from "../../focus-management-BnM4wN4Z.js";
@@ -11,5 +11,5 @@ export type RowProps = {
11
11
  children: React.ReactNode;
12
12
  };
13
13
  export declare const getColumns: (column?: ResponsiveColumn, data?: React.ReactNode) => string;
14
- declare const Row: React.FC<RowProps>;
14
+ declare const Row: ({ column, className, children }: RowProps) => import("react/jsx-runtime").JSX.Element;
15
15
  export default Row;
@@ -2,11 +2,11 @@ import { jsxs as i, jsx as t, Fragment as p } from "react/jsx-runtime";
2
2
  import y, { Fragment as j } from "react";
3
3
  import { H } from "../../index-BVp57yIc.js";
4
4
  import { c as M } from "../../index-CBEJ8A3p.js";
5
- import { u as A, a as C, b as z, c as B, d as D, e as G } from "../../calculate-active-index-xXUBsarF.js";
5
+ import { u as A, a as C, b as z, c as B, d as D, e as G } from "../../calculate-active-index-DbdO98Z_.js";
6
6
  import { t as v } from "../../bundle-mjs-SHnj3fHy.js";
7
7
  import { getValue as n } from "./helper.js";
8
- import { M as I, U as P, G as X, V as _ } from "../../listbox-T8TrOULl.js";
9
- import { o as $, f as O, s as q, a as J } from "../../floating-ui.react-dom-YTFlGVA5.js";
8
+ import { M as I, U as P, G as X, V as _ } from "../../listbox-BHRihzeO.js";
9
+ import { o as $, f as O, s as q, a as J } from "../../floating-ui.react-dom-BCi5XVbY.js";
10
10
  import { X as K } from "../../transition-6o20faRl.js";
11
11
  const Q = (s, a) => a.type === "SETVALUE" ? {
12
12
  ...s,
@@ -121,7 +121,7 @@ const Q = (s, a) => a.type === "SETVALUE" ? {
121
121
  children: /* @__PURE__ */ t(
122
122
  X,
123
123
  {
124
- className: "absolute !z-[999] mt-2 inline-block w-full origin-top-right divide-y divide-gray-100 rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none",
124
+ className: "absolute !z-[999] mt-2 inline-block w-full origin-top-right divide-y divide-gray-100 rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none min-w-[150px]",
125
125
  ref: g.setFloating,
126
126
  style: F,
127
127
  ...L({
@@ -3,19 +3,19 @@ import g, { Fragment as k } from "react";
3
3
  import { _ as A } from "../../lodash-DH2GRwR5.js";
4
4
  import { H as L } from "../../index-BVp57yIc.js";
5
5
  import { c as H } from "../../index-CBEJ8A3p.js";
6
- import { u as C, a as _, b as z, c as D, d as G, e as I } from "../../calculate-active-index-xXUBsarF.js";
6
+ import { u as C, a as _, b as z, c as D, d as G, e as I } from "../../calculate-active-index-DbdO98Z_.js";
7
7
  import { t as h } from "../../bundle-mjs-SHnj3fHy.js";
8
8
  import { getValue as n } from "./helper.js";
9
- import { o as O, f as P, s as X, a as $ } from "../../floating-ui.react-dom-YTFlGVA5.js";
10
- import { M as q, U as B, G as J, V as K } from "../../listbox-T8TrOULl.js";
9
+ import { o as O, f as P, s as X, a as $ } from "../../floating-ui.react-dom-BCi5XVbY.js";
10
+ import { M as q, U as B, G as J, V as K } from "../../listbox-BHRihzeO.js";
11
11
  import { X as Q } from "../../transition-6o20faRl.js";
12
12
  const W = (r, s) => s.type === "SETVALUE" ? {
13
13
  ...r,
14
14
  value: s.value,
15
15
  selected: r.list.filter((o) => {
16
- var d;
16
+ var m;
17
17
  const c = n(o, r.valueField);
18
- return (d = s == null ? void 0 : s.value) == null ? void 0 : d.includes(c);
18
+ return (m = s == null ? void 0 : s.value) == null ? void 0 : m.includes(c);
19
19
  }) || []
20
20
  } : s.type === "SETSELECT" ? {
21
21
  ...r,
@@ -28,7 +28,7 @@ const W = (r, s) => s.type === "SETVALUE" ? {
28
28
  name: s,
29
29
  options: o,
30
30
  onChange: c,
31
- placeholder: d = "Select a option",
31
+ placeholder: m = "Select a option",
32
32
  valueField: u = "value",
33
33
  value: p = []
34
34
  }, w) => {
@@ -41,12 +41,12 @@ const W = (r, s) => s.type === "SETVALUE" ? {
41
41
  const a = n(e, u);
42
42
  return A.some(p, (i) => i + "" == a + "");
43
43
  }) : []
44
- }), { refs: b, x: E, y: N, strategy: S, floatingStyles: T, context: m } = C({
44
+ }), { refs: b, x: E, y: N, strategy: S, floatingStyles: T, context: d } = C({
45
45
  open: !0,
46
46
  middleware: [O(10), P(), X()],
47
47
  whileElementsMounted: $,
48
48
  placement: "bottom"
49
- }), F = _(m, { move: !1 }), U = z(m), V = D(m), j = G(m, { role: "tooltip" }), { getReferenceProps: M, getFloatingProps: R } = I([
49
+ }), F = _(d, { move: !1 }), U = z(d), V = D(d), j = G(d, { role: "tooltip" }), { getReferenceProps: M, getFloatingProps: R } = I([
50
50
  F,
51
51
  U,
52
52
  V,
@@ -104,7 +104,7 @@ const W = (r, s) => s.type === "SETVALUE" ? {
104
104
  ...M(),
105
105
  children: [
106
106
  /* @__PURE__ */ f(B, { className: "relative z-10 inline-flex w-full justify-between !p-0 focus:outline-none", children: [
107
- /* @__PURE__ */ l("span", { children: t.value && t.value.length > 0 ? /* @__PURE__ */ l(y, { children: ((x = t == null ? void 0 : t.selected) == null ? void 0 : x.map((e) => e.label).join(", ")) || "" }) : d }),
107
+ /* @__PURE__ */ l("span", { children: t.value && t.value.length > 0 ? /* @__PURE__ */ l(y, { children: ((x = t == null ? void 0 : t.selected) == null ? void 0 : x.map((e) => e.label).join(", ")) || "" }) : m }),
108
108
  /* @__PURE__ */ l(
109
109
  L,
110
110
  {
@@ -126,7 +126,7 @@ const W = (r, s) => s.type === "SETVALUE" ? {
126
126
  children: /* @__PURE__ */ l(
127
127
  J,
128
128
  {
129
- className: "absolute !z-[999] mt-2 inline-block w-full origin-top-right divide-y divide-gray-100 rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none",
129
+ className: "absolute !z-[999] mt-2 inline-block w-full origin-top-right divide-y divide-gray-100 rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none min-w-[150px]",
130
130
  ref: b.setFloating,
131
131
  style: T,
132
132
  ...R({
@@ -1,5 +1,3 @@
1
- import { default as React } from 'react';
2
-
3
1
  export type SwitchProps = {
4
2
  variant?: "sm" | "md";
5
3
  name: string;
@@ -7,5 +5,5 @@ export type SwitchProps = {
7
5
  checked?: boolean;
8
6
  onChange: (v: boolean) => void;
9
7
  };
10
- declare const Switch: React.FC<SwitchProps>;
8
+ declare const Switch: ({ checked, onChange, name, value, }: SwitchProps) => import("react/jsx-runtime").JSX.Element;
11
9
  export default Switch;
@@ -3,7 +3,7 @@ import { t as A } from "../../bundle-mjs-SHnj3fHy.js";
3
3
  import { $ as Q, a as Y, r as Z } from "../../bugs-CHTtT8VX.js";
4
4
  import n, { createContext as ee, useState as F, useMemo as I, useId as te, useContext as ae, useRef as re, useCallback as oe, Fragment as le } from "react";
5
5
  import { w as ne, T as se } from "../../use-resolve-button-type-DkEA2l9L.js";
6
- import { K as ie, z as ue, u as ce, l as de, T as pe, I as fe, j as me, p as he } from "../../label-9PX7EyLe.js";
6
+ import { K as ie, z as ue, u as ce, l as de, T as pe, I as fe, j as me, p as he } from "../../label-BU1UL9Xe.js";
7
7
  import { W as be, H as j, y as ve, p as ge, o as m, D as $e } from "../../use-sync-refs-TDnk3jQt.js";
8
8
  import { w as we, U as ke, a as xe, G as ye } from "../../description-BGLBXSvA.js";
9
9
  import { o as E } from "../../keyboard-DnlWU23I.js";
@@ -5,5 +5,7 @@ export type TextProps = {
5
5
  className?: string;
6
6
  children: React.ReactNode;
7
7
  };
8
- declare const Text: React.FC<TextProps>;
8
+ declare const Text: ({ tag, className, children }: TextProps) => React.DetailedReactHTMLElement<{
9
+ className: string;
10
+ }, HTMLElement>;
9
11
  export default Text;
@@ -8,4 +8,4 @@ export type AppProviderProps = {
8
8
  appName: string;
9
9
  children: React.ReactNode;
10
10
  };
11
- export declare const AppProvider: React.FC<AppProviderProps>;
11
+ export declare const AppProvider: ({ appName, children, }: AppProviderProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import * as C from "react";
2
2
  import { useLayoutEffect as Wt, useEffect as Bt } from "react";
3
- import { r as Nt } from "./index-DsprzSCj.js";
3
+ import { r as Nt } from "./index-CTu7UrOL.js";
4
4
  function J(t) {
5
5
  return At(t) ? (t.nodeName || "").toLowerCase() : "#document";
6
6
  }
@@ -1,6 +1,6 @@
1
1
  import Un, { createContext as fa, forwardRef as ha, useRef as je, useReducer as En, useEffect as We, Fragment as ma, isValidElement as Rn, cloneElement as Fn, createElement as Ln, useContext as pt, useId as Hn, useMemo as yr, useState as va, useCallback as In, useLayoutEffect as ya } from "react";
2
2
  import { jsx as wa } from "react/jsx-runtime";
3
- import { u as An, a as Gn, o as jn, f as qn, s as $n } from "./floating-ui.react-dom-YTFlGVA5.js";
3
+ import { u as An, a as Gn, o as jn, f as qn, s as $n } from "./floating-ui.react-dom-BCi5XVbY.js";
4
4
  //! moment.js
5
5
  //! version : 2.30.1
6
6
  //! authors : Tim Wood, Iskren Chernev, Moment.js contributors