@konstructio/ui 0.1.2-alpha.4 → 0.1.2-alpha.40
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/{Combination-VYaRRJBZ.js → Combination-BtmnusWq.js} +141 -138
- package/dist/DatePicker.css +1 -1
- package/dist/Modal-CtAG97Ts.js +99 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist/chevron-down-DgT-uSF9.js +5 -0
- package/dist/chevron-left-C4LEg1fH.js +7 -0
- package/dist/chevron-up-CRyLc5Ml.js +54 -0
- package/dist/chevron-up-DrQr2Fwd.js +5 -0
- package/dist/components/Alert/Alert.js +2 -2
- package/dist/components/AlertDialog/AlertDialog.js +1 -1
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/Badge/Badge.js +42 -44
- package/dist/components/Badge/Badge.variants.js +8 -6
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Breadcrumb/components/Item/Item.js +24 -23
- package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +1 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Button/Button.variants.js +1 -1
- package/dist/components/Card/Card.variants.js +5 -9
- package/dist/components/Checkbox/Checkbox.js +6 -6
- package/dist/components/Command/Command.js +2 -2
- package/dist/components/Command/components/Command.js +1 -1
- package/dist/components/Command/components/CommandEmpty.js +1 -1
- package/dist/components/Command/components/CommandGroup.js +1 -1
- package/dist/components/Command/components/CommandInput.js +2 -2
- package/dist/components/Command/components/CommandItem.js +1 -1
- package/dist/components/Command/components/CommandList.js +1 -1
- package/dist/components/Command/components/CommandSeparator.js +1 -1
- package/dist/components/Command/components/DialogContent.js +2 -2
- package/dist/components/Command/components/DialogOverlay.js +1 -1
- package/dist/components/Datepicker/DatePicker.js +1243 -1191
- package/dist/components/Divider/Divider.variants.js +1 -1
- package/dist/components/Dropdown/Dropdown.js +37 -31
- package/dist/components/Dropdown/Dropdown.variants.js +9 -4
- package/dist/components/Dropdown/components/List/List.js +128 -59
- package/dist/components/Dropdown/components/ListItem/ListItem.js +90 -39
- package/dist/components/Dropdown/components/Wrapper.js +141 -134
- package/dist/components/Dropdown/constants/index.js +4 -0
- package/dist/components/Dropdown/constants/pagination.js +4 -0
- package/dist/components/Dropdown/contexts/dropdown.context.js +17 -0
- package/dist/components/Dropdown/contexts/dropdown.provider.js +48 -20
- package/dist/components/Dropdown/hooks/useDropdown.js +74 -29
- package/dist/components/Dropdown/hooks/useNavigationList.js +27 -39
- package/dist/components/DropdownButton/DropdownButton.js +1 -1
- package/dist/components/Filter/Filter.variants.js +2 -2
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +1 -1
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +1 -1
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Input/Input.variants.js +2 -1
- package/dist/components/Loading/Loading.js +1 -7
- package/dist/components/Modal/Modal.js +2 -2
- package/dist/components/Modal/components/Body/Body.js +1 -1
- package/dist/components/Modal/components/Footer/Footer.js +1 -1
- package/dist/components/Modal/components/Header/Header.js +1 -1
- package/dist/components/Modal/components/Wrapper/Wrapper.js +4 -4
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.js +34 -0
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.variants.js +34 -0
- package/dist/components/MultiSelectDropdown/components/Item/Item.js +38 -0
- package/dist/components/MultiSelectDropdown/components/Item/Item.variants.js +38 -0
- package/dist/components/MultiSelectDropdown/components/List/List.js +37 -0
- package/dist/components/MultiSelectDropdown/components/List/List.variants.js +23 -0
- package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +105 -0
- package/dist/components/MultiSelectDropdown/components/index.js +8 -0
- package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.context.js +21 -0
- package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.hook.js +13 -0
- package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.provider.js +138 -0
- package/dist/components/MultiSelectDropdown/contexts/index.js +6 -0
- package/dist/components/MultiSelectDropdown/hooks/useMultiSelectDropdown.js +32 -0
- package/dist/components/NumberInput/NumberInput.js +2 -2
- package/dist/components/PhoneNumberInput/PhoneNumberInput.js +8 -0
- package/dist/components/PhoneNumberInput/PhoneNumberInput.variants.js +46 -0
- package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +27 -0
- package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +629 -0
- package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +36 -0
- package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +45 -0
- package/dist/components/PhoneNumberInput/components/Wrapper.js +625 -0
- package/dist/components/PhoneNumberInput/components/index.js +6 -0
- package/dist/components/PhoneNumberInput/contexts/index.js +8 -0
- package/dist/components/PhoneNumberInput/contexts/phone-number.context.js +28 -0
- package/dist/components/PhoneNumberInput/contexts/phone-number.hook.js +13 -0
- package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +6144 -0
- package/dist/components/PhoneNumberInput/utils/index.js +11 -0
- package/dist/components/PieChart/PieChart.js +647 -664
- package/dist/components/RadioCard/RadioCard.variants.js +1 -6
- package/dist/components/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/Range/Range.js +1 -1
- package/dist/components/Sidebar/Sidebar.variants.js +2 -2
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +29 -28
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Switch/Switch.js +8 -8
- package/dist/components/Switch/Switch.variants.js +4 -4
- package/dist/components/Tabs/Tabs.js +1 -1
- package/dist/components/Tabs/Tabs.variants.js +1 -1
- package/dist/components/Tabs/components/Content.js +1 -1
- package/dist/components/Tabs/components/List.js +1 -1
- package/dist/components/Tabs/components/Trigger.js +1 -1
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/Tag/Tag.variants.js +1 -0
- package/dist/components/TagSelect/components/Wrapper/Wrapper.js +49 -98
- package/dist/components/TimePicker/TimePicker.variants.js +2 -2
- package/dist/components/TimePicker/components/Wrapper/Wrapper.js +2 -2
- package/dist/components/Toast/Toast.js +283 -255
- package/dist/components/Toast/Toast.variants.js +37 -24
- package/dist/components/Tooltip/Tooltip.js +15 -14
- package/dist/components/Tooltip/Tooltip.variants.js +5 -4
- package/dist/components/Typography/Typography.variants.js +18 -23
- package/dist/components/VirtualizedTable/VirtualizedTable.js +121 -0
- package/dist/components/VirtualizedTable/VirtualizedTable.variants.js +5 -0
- package/dist/components/VirtualizedTable/assets/chevron-down.js +25 -0
- package/dist/components/VirtualizedTable/assets/chevron-up.js +25 -0
- package/dist/components/VirtualizedTable/assets/index.js +6 -0
- package/dist/components/VirtualizedTable/components/Actions/Actions.js +72 -0
- package/dist/components/VirtualizedTable/components/Body/Body.js +51 -0
- package/dist/components/VirtualizedTable/components/DotPaginate/DotPaginate.js +165 -0
- package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +34 -0
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +93 -0
- package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +48 -0
- package/dist/components/VirtualizedTable/components/Header/Header.js +84 -0
- package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +53 -0
- package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +67 -0
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +34 -0
- package/dist/components/VirtualizedTable/components/WrapperBody/WrapperBody.js +27 -0
- package/dist/components/VirtualizedTable/components/index.js +16 -0
- package/dist/components/VirtualizedTable/constants/index.js +5 -0
- package/dist/components/VirtualizedTable/constants/pagination.js +5 -0
- package/dist/components/VirtualizedTable/contexts/index.js +8 -0
- package/dist/components/VirtualizedTable/contexts/table.context.js +32 -0
- package/dist/components/VirtualizedTable/contexts/table.hook.js +11 -0
- package/dist/components/VirtualizedTable/contexts/table.provider.js +85 -0
- package/dist/components/index.js +88 -80
- package/dist/contexts/theme.provider.js +0 -1
- package/dist/{createLucideIcon-DbC6TvM5.js → createLucideIcon-D4r5Phnh.js} +0 -24
- package/dist/debounce-BFejQm9P.js +200 -0
- package/dist/ellipsis-vertical-BVPtjl5f.js +9 -0
- package/dist/{index-h-Ul0anl.js → index--V_ZsiQe.js} +1 -22
- package/dist/index-2hB40Iuc.js +1873 -0
- package/dist/index-BZPx6jYI.js +8 -0
- package/dist/{index-bwWKd82e.js → index-BbQkJE5L.js} +1 -1
- package/dist/index-BtQfgaSF.js +60 -0
- package/dist/index-C3tHPg8y.js +662 -0
- package/dist/index-C65LtGuU.js +137 -0
- package/dist/index-CIAmiWcw.js +200 -0
- package/dist/index-CSFe9uC5.js +14 -0
- package/dist/index-CSWGJT-v.js +1722 -0
- package/dist/{index-D3xzCzcO.js → index-CdwPV0FE.js} +4 -4
- package/dist/index-CigKKiZS.js +91 -0
- package/dist/{index-BAraV3ai.js → index-DH2Fnov1.js} +11 -12
- package/dist/index-DLcqcWxM.js +29 -0
- package/dist/index-Dbt2vBmS.js +136 -0
- package/dist/{index-DB2XhXHn.js → index-DpW9ExsS.js} +7 -7
- package/dist/index-DrWQH0QF.js +55 -0
- package/dist/index-Ds6U2x4Z.js +479 -0
- package/dist/{index-C1g_chDT.js → index-mPY_8Y5v.js} +2 -2
- package/dist/index-ohdbKsws.js +27 -0
- package/dist/index.d.ts +232 -23
- package/dist/index.js +112 -102
- package/dist/libphonenumber-_7ZyKWA7.js +11549 -0
- package/dist/loader-juvMSJ9L.js +5 -0
- package/dist/package.json +48 -34
- package/dist/styles.css +1 -1
- package/dist/ui/civo-theme.css +191 -167
- package/dist/{useBreadcrumb-B8DnuqkR.js → useBreadcrumb-BAHbGQ_O.js} +0 -10
- package/dist/utils/index.js +534 -501
- package/dist/{x-BPcqkRZd.js → x-DPU9OdYH.js} +1 -1
- package/package.json +48 -34
- package/dist/Modal-V67Uz78z.js +0 -98
- package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
- package/dist/chevron-down-BLZPftpV.js +0 -11
- package/dist/index-BXuxPoz7.js +0 -435
- package/dist/index-BfXxHr_2.js +0 -125
- package/dist/index-C9T9HQaa.js +0 -423
- package/dist/index-CZnD2QxM.js +0 -32
- package/dist/index-CrBonFvu.js +0 -144
- package/dist/index-Cvx4lqTq.js +0 -47
- package/dist/index-DQH6odE9.js +0 -82
- package/dist/index-Oq5GlCHP.js +0 -131
- package/dist/index-iXyXtdgP.js +0 -31
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { useContext as e } from "react";
|
|
2
|
+
import { TableContext as o } from "./table.context.js";
|
|
3
|
+
const s = () => {
|
|
4
|
+
const t = e(o);
|
|
5
|
+
if (!t)
|
|
6
|
+
throw new Error("useTableContext must be used within a TableProvider");
|
|
7
|
+
return t;
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
s as useTableContext
|
|
11
|
+
};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { jsx as k } from "react/jsx-runtime";
|
|
2
|
+
import { useQuery as A } from "@tanstack/react-query";
|
|
3
|
+
import { u as D, g as Q, a as $ } from "../../../index-CSWGJT-v.js";
|
|
4
|
+
import { useState as t, useMemo as G, useCallback as c } from "react";
|
|
5
|
+
import { TableContext as U } from "./table.context.js";
|
|
6
|
+
import { DEFAULT_PAGE_SIZE as W } from "../constants/pagination.js";
|
|
7
|
+
const X = ({
|
|
8
|
+
children: p,
|
|
9
|
+
id: r,
|
|
10
|
+
data: g = [],
|
|
11
|
+
columns: S = [],
|
|
12
|
+
totalItems: y,
|
|
13
|
+
isPaginationEnabled: b,
|
|
14
|
+
queryOptions: M = {},
|
|
15
|
+
fetchData: m
|
|
16
|
+
}) => {
|
|
17
|
+
const [f, d] = t([]), [C, P] = t(!0), [i, h] = t(0), [a, w] = t(), [s, F] = t(W), [l, O] = t(y), T = G(
|
|
18
|
+
() => Math.ceil(l / s),
|
|
19
|
+
[l, s]
|
|
20
|
+
), [n, L] = t({}), I = () => {
|
|
21
|
+
const e = typeof r == "string" || typeof r == "number" ? [r] : r;
|
|
22
|
+
return b && e.push(i, s), a && e.push(a), Object.entries(n).forEach(([o, u]) => {
|
|
23
|
+
e.push(`${o}:${u.join(",")}`);
|
|
24
|
+
}), e;
|
|
25
|
+
}, { data: R, isLoading: j, isFetching: x } = A({
|
|
26
|
+
queryKey: I(),
|
|
27
|
+
refetchOnMount: !1,
|
|
28
|
+
refetchOnWindowFocus: !1,
|
|
29
|
+
initialData: g,
|
|
30
|
+
queryFn: async () => m ? m({
|
|
31
|
+
page: Math.max(i + 1, 1),
|
|
32
|
+
pageSize: s,
|
|
33
|
+
termOfSearch: a,
|
|
34
|
+
...Object.keys(n).length > 0 ? n : {}
|
|
35
|
+
}).then(({ data: e, totalItemsCount: o }) => (P(!1), o && O(o), e)) : g ?? [],
|
|
36
|
+
...M
|
|
37
|
+
}), E = c((e) => {
|
|
38
|
+
w(e), h(0);
|
|
39
|
+
}, []), K = c((e, o) => {
|
|
40
|
+
const u = e.toLowerCase().replace(/\s+/g, "_");
|
|
41
|
+
L((_) => ({
|
|
42
|
+
..._,
|
|
43
|
+
[u]: o
|
|
44
|
+
}));
|
|
45
|
+
}, []), q = c((e) => h(e), []), v = c(
|
|
46
|
+
(e) => F(e),
|
|
47
|
+
[]
|
|
48
|
+
), z = D({
|
|
49
|
+
data: R,
|
|
50
|
+
columns: S,
|
|
51
|
+
state: {
|
|
52
|
+
sorting: f
|
|
53
|
+
},
|
|
54
|
+
onSortingChange: d,
|
|
55
|
+
getCoreRowModel: $(),
|
|
56
|
+
getSortedRowModel: Q()
|
|
57
|
+
});
|
|
58
|
+
return /* @__PURE__ */ k(
|
|
59
|
+
U.Provider,
|
|
60
|
+
{
|
|
61
|
+
value: {
|
|
62
|
+
sortedData: f,
|
|
63
|
+
table: z,
|
|
64
|
+
tableFetching: x,
|
|
65
|
+
tableLoading: j,
|
|
66
|
+
totalItems: l,
|
|
67
|
+
termOfSearch: a,
|
|
68
|
+
page: i,
|
|
69
|
+
multiselectSelected: n,
|
|
70
|
+
pageSize: s,
|
|
71
|
+
totalPages: T,
|
|
72
|
+
isFirstLoad: C,
|
|
73
|
+
handlePage: q,
|
|
74
|
+
onPageSize: v,
|
|
75
|
+
onChangeTermOfSearch: E,
|
|
76
|
+
onSorting: d,
|
|
77
|
+
onSelectMultiselect: K
|
|
78
|
+
},
|
|
79
|
+
children: p
|
|
80
|
+
}
|
|
81
|
+
);
|
|
82
|
+
};
|
|
83
|
+
export {
|
|
84
|
+
X as TableProvider
|
|
85
|
+
};
|
package/dist/components/index.js
CHANGED
|
@@ -3,94 +3,102 @@ import { AlertDialog as p } from "./AlertDialog/AlertDialog.js";
|
|
|
3
3
|
import { Autocomplete as x } from "./Autocomplete/Autocomplete.js";
|
|
4
4
|
import { Badge as a } from "./Badge/Badge.js";
|
|
5
5
|
import { Breadcrumb as d } from "./Breadcrumb/Breadcrumb.js";
|
|
6
|
-
import { Button as
|
|
6
|
+
import { Button as l } from "./Button/Button.js";
|
|
7
7
|
import { Card as u } from "./Card/Card.js";
|
|
8
8
|
import { Checkbox as c } from "./Checkbox/Checkbox.js";
|
|
9
|
-
import { DatePicker as
|
|
10
|
-
import { Divider as
|
|
11
|
-
import { Dropdown as
|
|
12
|
-
import { DropdownButton as
|
|
13
|
-
import { Filter as
|
|
14
|
-
import { Input as
|
|
15
|
-
import { Loading as
|
|
16
|
-
import { M as
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
9
|
+
import { DatePicker as D } from "./Datepicker/DatePicker.js";
|
|
10
|
+
import { Divider as s } from "./Divider/Divider.js";
|
|
11
|
+
import { Dropdown as C } from "./Dropdown/Dropdown.js";
|
|
12
|
+
import { DropdownButton as h } from "./DropdownButton/DropdownButton.js";
|
|
13
|
+
import { Filter as w } from "./Filter/Filter.js";
|
|
14
|
+
import { Input as R } from "./Input/Input.js";
|
|
15
|
+
import { Loading as M } from "./Loading/Loading.js";
|
|
16
|
+
import { M as F } from "../Modal-CtAG97Ts.js";
|
|
17
|
+
import { MultiSelectDropdown as I } from "./MultiSelectDropdown/MultiSelectDropdown.js";
|
|
18
|
+
import { NumberInput as y } from "./NumberInput/NumberInput.js";
|
|
19
|
+
import { PhoneNumberInput as O } from "./PhoneNumberInput/PhoneNumberInput.js";
|
|
20
|
+
import { PieChart as j } from "./PieChart/PieChart.js";
|
|
21
|
+
import { ProgressBar as E } from "./ProgressBar/ProgressBar.js";
|
|
22
|
+
import { Radio as J } from "./Radio/Radio.js";
|
|
23
|
+
import { RadioCard as Q } from "./RadioCard/RadioCard.js";
|
|
24
|
+
import { RadioCardGroup as W } from "./RadioCardGroup/RadioCardGroup.js";
|
|
25
|
+
import { RadioGroup as Y } from "./RadioGroup/RadioGroup.js";
|
|
26
|
+
import { Range as _ } from "./Range/Range.js";
|
|
27
|
+
import { Sidebar as oo } from "./Sidebar/Sidebar.js";
|
|
28
|
+
import { Slider as eo } from "./Slider/Slider.js";
|
|
29
|
+
import { Switch as po } from "./Switch/Switch.js";
|
|
30
|
+
import { Table as xo } from "./Table/Table.js";
|
|
31
|
+
import { Tabs as ao } from "./Tabs/Tabs.js";
|
|
32
|
+
import { Tag as no } from "./Tag/Tag.js";
|
|
33
|
+
import { TagSelect as go } from "./TagSelect/TagSelect.js";
|
|
34
|
+
import { TextArea as To } from "./TextArea/TextArea.js";
|
|
35
|
+
import { TimePicker as bo } from "./TimePicker/TimePicker.js";
|
|
36
|
+
import { Toast as So } from "./Toast/Toast.js";
|
|
37
|
+
import { Tooltip as Bo } from "./Tooltip/Tooltip.js";
|
|
38
|
+
import { Typography as No } from "./Typography/Typography.js";
|
|
39
|
+
import { VirtualizedTable as vo } from "./VirtualizedTable/VirtualizedTable.js";
|
|
40
|
+
import { BadgeMultiSelect as Po } from "./Filter/components/BadgeDropdown/BadgeMultiSelect.js";
|
|
41
|
+
import { DateFilterDropdown as Ao } from "./Filter/components/DateFilterDropdown/DateFilterDropdown.js";
|
|
42
|
+
import { Footer as ko } from "./Sidebar/components/Footer/Footer.js";
|
|
43
|
+
import { Logo as Go } from "./Sidebar/components/Logo/Logo.js";
|
|
44
|
+
import { Navigation as Lo } from "./Sidebar/components/Navigation/Navigation.js";
|
|
45
|
+
import { NavigationGroup as zo } from "./Sidebar/components/NavigationGroup/NavigationGroup.js";
|
|
46
|
+
import { NavigationOption as Vo } from "./Sidebar/components/NavigationOption/NavigationOption.js";
|
|
47
|
+
import { NavigationSeparator as qo } from "./Sidebar/components/NavigationSeparator/NavigationSeparator.js";
|
|
48
|
+
import { Content as Ho } from "./Tabs/components/Content.js";
|
|
49
|
+
import { List as Ko } from "./Tabs/components/List.js";
|
|
50
|
+
import { Trigger as Uo } from "./Tabs/components/Trigger.js";
|
|
51
|
+
import { TruncateText as Xo } from "./VirtualizedTable/components/TruncateText/TruncateText.js";
|
|
48
52
|
export {
|
|
49
53
|
e as Alert,
|
|
50
54
|
p as AlertDialog,
|
|
51
55
|
x as Autocomplete,
|
|
52
56
|
a as Badge,
|
|
53
|
-
|
|
57
|
+
Po as BadgeMultiSelect,
|
|
54
58
|
d as Breadcrumb,
|
|
55
|
-
|
|
59
|
+
l as Button,
|
|
56
60
|
u as Card,
|
|
57
61
|
c as Checkbox,
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
W as
|
|
83
|
-
Y as
|
|
84
|
-
_ as
|
|
85
|
-
oo as
|
|
86
|
-
eo as
|
|
87
|
-
po as
|
|
88
|
-
xo as
|
|
89
|
-
ao as
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
To as
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
62
|
+
Ho as Content,
|
|
63
|
+
Ao as DateFilterDropdown,
|
|
64
|
+
D as DatePicker,
|
|
65
|
+
s as Divider,
|
|
66
|
+
C as Dropdown,
|
|
67
|
+
h as DropdownButton,
|
|
68
|
+
w as Filter,
|
|
69
|
+
ko as Footer,
|
|
70
|
+
R as Input,
|
|
71
|
+
Ko as List,
|
|
72
|
+
M as Loading,
|
|
73
|
+
Go as Logo,
|
|
74
|
+
F as Modal,
|
|
75
|
+
I as MultiSelectDropdown,
|
|
76
|
+
Lo as Navigation,
|
|
77
|
+
zo as NavigationGroup,
|
|
78
|
+
Vo as NavigationOption,
|
|
79
|
+
qo as NavigationSeparator,
|
|
80
|
+
y as NumberInput,
|
|
81
|
+
O as PhoneNumberInput,
|
|
82
|
+
j as PieChart,
|
|
83
|
+
E as ProgressBar,
|
|
84
|
+
J as Radio,
|
|
85
|
+
Q as RadioCard,
|
|
86
|
+
W as RadioCardGroup,
|
|
87
|
+
Y as RadioGroup,
|
|
88
|
+
_ as Range,
|
|
89
|
+
oo as Sidebar,
|
|
90
|
+
eo as Slider,
|
|
91
|
+
po as Switch,
|
|
92
|
+
xo as Table,
|
|
93
|
+
ao as Tabs,
|
|
94
|
+
no as Tag,
|
|
95
|
+
go as TagSelect,
|
|
96
|
+
To as TextArea,
|
|
97
|
+
bo as TimePicker,
|
|
98
|
+
So as Toast,
|
|
99
|
+
Bo as Tooltip,
|
|
100
|
+
Uo as Trigger,
|
|
101
|
+
Xo as TruncateText,
|
|
102
|
+
No as Typography,
|
|
103
|
+
vo as VirtualizedTable
|
|
96
104
|
};
|
|
@@ -2,7 +2,6 @@ import { jsx as v } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState as h, useEffect as g } from "react";
|
|
3
3
|
import { isClient as l } from "../utils/index.js";
|
|
4
4
|
import { ThemeContext as C } from "./theme.context.js";
|
|
5
|
-
/*! js-cookie v3.0.5 | MIT */
|
|
6
5
|
function p(r) {
|
|
7
6
|
for (var o = 1; o < arguments.length; o++) {
|
|
8
7
|
var t = arguments[o];
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
import { forwardRef as l, createElement as n } from "react";
|
|
2
|
-
/**
|
|
3
|
-
* @license lucide-react v0.544.0 - ISC
|
|
4
|
-
*
|
|
5
|
-
* This source code is licensed under the ISC license.
|
|
6
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
-
*/
|
|
8
2
|
const w = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), h = (t) => t.replace(
|
|
9
3
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
10
4
|
(e, r, o) => o ? o.toUpperCase() : r.toLowerCase()
|
|
@@ -16,12 +10,6 @@ const w = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), h = (t)
|
|
|
16
10
|
if (e.startsWith("aria-") || e === "role" || e === "title")
|
|
17
11
|
return !0;
|
|
18
12
|
};
|
|
19
|
-
/**
|
|
20
|
-
* @license lucide-react v0.544.0 - ISC
|
|
21
|
-
*
|
|
22
|
-
* This source code is licensed under the ISC license.
|
|
23
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
24
|
-
*/
|
|
25
13
|
var g = {
|
|
26
14
|
xmlns: "http://www.w3.org/2000/svg",
|
|
27
15
|
width: 24,
|
|
@@ -33,12 +21,6 @@ var g = {
|
|
|
33
21
|
strokeLinecap: "round",
|
|
34
22
|
strokeLinejoin: "round"
|
|
35
23
|
};
|
|
36
|
-
/**
|
|
37
|
-
* @license lucide-react v0.544.0 - ISC
|
|
38
|
-
*
|
|
39
|
-
* This source code is licensed under the ISC license.
|
|
40
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/
|
|
42
24
|
const A = l(
|
|
43
25
|
({
|
|
44
26
|
color: t = "currentColor",
|
|
@@ -68,12 +50,6 @@ const A = l(
|
|
|
68
50
|
]
|
|
69
51
|
)
|
|
70
52
|
);
|
|
71
|
-
/**
|
|
72
|
-
* @license lucide-react v0.544.0 - ISC
|
|
73
|
-
*
|
|
74
|
-
* This source code is licensed under the ISC license.
|
|
75
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
76
|
-
*/
|
|
77
53
|
const k = (t, e) => {
|
|
78
54
|
const r = l(
|
|
79
55
|
({ className: o, ...s }, a) => n(A, {
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import { c as h, g as be } from "./_commonjsHelpers-DaMA6jEr.js";
|
|
2
|
+
var I, U;
|
|
3
|
+
function ie() {
|
|
4
|
+
if (U) return I;
|
|
5
|
+
U = 1;
|
|
6
|
+
function r(e) {
|
|
7
|
+
var n = typeof e;
|
|
8
|
+
return e != null && (n == "object" || n == "function");
|
|
9
|
+
}
|
|
10
|
+
return I = r, I;
|
|
11
|
+
}
|
|
12
|
+
var R, H;
|
|
13
|
+
function de() {
|
|
14
|
+
if (H) return R;
|
|
15
|
+
H = 1;
|
|
16
|
+
var r = typeof h == "object" && h && h.Object === Object && h;
|
|
17
|
+
return R = r, R;
|
|
18
|
+
}
|
|
19
|
+
var x, X;
|
|
20
|
+
function ae() {
|
|
21
|
+
if (X) return x;
|
|
22
|
+
X = 1;
|
|
23
|
+
var r = /* @__PURE__ */ de(), e = typeof self == "object" && self && self.Object === Object && self, n = r || e || Function("return this")();
|
|
24
|
+
return x = n, x;
|
|
25
|
+
}
|
|
26
|
+
var E, z;
|
|
27
|
+
function me() {
|
|
28
|
+
if (z) return E;
|
|
29
|
+
z = 1;
|
|
30
|
+
var r = /* @__PURE__ */ ae(), e = function() {
|
|
31
|
+
return r.Date.now();
|
|
32
|
+
};
|
|
33
|
+
return E = e, E;
|
|
34
|
+
}
|
|
35
|
+
var k, J;
|
|
36
|
+
function le() {
|
|
37
|
+
if (J) return k;
|
|
38
|
+
J = 1;
|
|
39
|
+
var r = /\s/;
|
|
40
|
+
function e(n) {
|
|
41
|
+
for (var i = n.length; i-- && r.test(n.charAt(i)); )
|
|
42
|
+
;
|
|
43
|
+
return i;
|
|
44
|
+
}
|
|
45
|
+
return k = e, k;
|
|
46
|
+
}
|
|
47
|
+
var G, K;
|
|
48
|
+
function ve() {
|
|
49
|
+
if (K) return G;
|
|
50
|
+
K = 1;
|
|
51
|
+
var r = /* @__PURE__ */ le(), e = /^\s+/;
|
|
52
|
+
function n(i) {
|
|
53
|
+
return i && i.slice(0, r(i) + 1).replace(e, "");
|
|
54
|
+
}
|
|
55
|
+
return G = n, G;
|
|
56
|
+
}
|
|
57
|
+
var N, Q;
|
|
58
|
+
function oe() {
|
|
59
|
+
if (Q) return N;
|
|
60
|
+
Q = 1;
|
|
61
|
+
var r = /* @__PURE__ */ ae(), e = r.Symbol;
|
|
62
|
+
return N = e, N;
|
|
63
|
+
}
|
|
64
|
+
var w, V;
|
|
65
|
+
function ge() {
|
|
66
|
+
if (V) return w;
|
|
67
|
+
V = 1;
|
|
68
|
+
var r = /* @__PURE__ */ oe(), e = Object.prototype, n = e.hasOwnProperty, i = e.toString, o = r ? r.toStringTag : void 0;
|
|
69
|
+
function m(u) {
|
|
70
|
+
var f = n.call(u, o), c = u[o];
|
|
71
|
+
try {
|
|
72
|
+
u[o] = void 0;
|
|
73
|
+
var t = !0;
|
|
74
|
+
} catch {
|
|
75
|
+
}
|
|
76
|
+
var s = i.call(u);
|
|
77
|
+
return t && (f ? u[o] = c : delete u[o]), s;
|
|
78
|
+
}
|
|
79
|
+
return w = m, w;
|
|
80
|
+
}
|
|
81
|
+
var L, Y;
|
|
82
|
+
function Te() {
|
|
83
|
+
if (Y) return L;
|
|
84
|
+
Y = 1;
|
|
85
|
+
var r = Object.prototype, e = r.toString;
|
|
86
|
+
function n(i) {
|
|
87
|
+
return e.call(i);
|
|
88
|
+
}
|
|
89
|
+
return L = n, L;
|
|
90
|
+
}
|
|
91
|
+
var W, Z;
|
|
92
|
+
function je() {
|
|
93
|
+
if (Z) return W;
|
|
94
|
+
Z = 1;
|
|
95
|
+
var r = /* @__PURE__ */ oe(), e = /* @__PURE__ */ ge(), n = /* @__PURE__ */ Te(), i = "[object Null]", o = "[object Undefined]", m = r ? r.toStringTag : void 0;
|
|
96
|
+
function u(f) {
|
|
97
|
+
return f == null ? f === void 0 ? o : i : m && m in Object(f) ? e(f) : n(f);
|
|
98
|
+
}
|
|
99
|
+
return W = u, W;
|
|
100
|
+
}
|
|
101
|
+
var C, ee;
|
|
102
|
+
function ye() {
|
|
103
|
+
if (ee) return C;
|
|
104
|
+
ee = 1;
|
|
105
|
+
function r(e) {
|
|
106
|
+
return e != null && typeof e == "object";
|
|
107
|
+
}
|
|
108
|
+
return C = r, C;
|
|
109
|
+
}
|
|
110
|
+
var P, re;
|
|
111
|
+
function Se() {
|
|
112
|
+
if (re) return P;
|
|
113
|
+
re = 1;
|
|
114
|
+
var r = /* @__PURE__ */ je(), e = /* @__PURE__ */ ye(), n = "[object Symbol]";
|
|
115
|
+
function i(o) {
|
|
116
|
+
return typeof o == "symbol" || e(o) && r(o) == n;
|
|
117
|
+
}
|
|
118
|
+
return P = i, P;
|
|
119
|
+
}
|
|
120
|
+
var A, te;
|
|
121
|
+
function _e() {
|
|
122
|
+
if (te) return A;
|
|
123
|
+
te = 1;
|
|
124
|
+
var r = /* @__PURE__ */ ve(), e = /* @__PURE__ */ ie(), n = /* @__PURE__ */ Se(), i = NaN, o = /^[-+]0x[0-9a-f]+$/i, m = /^0b[01]+$/i, u = /^0o[0-7]+$/i, f = parseInt;
|
|
125
|
+
function c(t) {
|
|
126
|
+
if (typeof t == "number")
|
|
127
|
+
return t;
|
|
128
|
+
if (n(t))
|
|
129
|
+
return i;
|
|
130
|
+
if (e(t)) {
|
|
131
|
+
var s = typeof t.valueOf == "function" ? t.valueOf() : t;
|
|
132
|
+
t = e(s) ? s + "" : s;
|
|
133
|
+
}
|
|
134
|
+
if (typeof t != "string")
|
|
135
|
+
return t === 0 ? t : +t;
|
|
136
|
+
t = r(t);
|
|
137
|
+
var d = m.test(t);
|
|
138
|
+
return d || u.test(t) ? f(t.slice(2), d ? 2 : 8) : o.test(t) ? i : +t;
|
|
139
|
+
}
|
|
140
|
+
return A = c, A;
|
|
141
|
+
}
|
|
142
|
+
var D, ne;
|
|
143
|
+
function he() {
|
|
144
|
+
if (ne) return D;
|
|
145
|
+
ne = 1;
|
|
146
|
+
var r = /* @__PURE__ */ ie(), e = /* @__PURE__ */ me(), n = /* @__PURE__ */ _e(), i = "Expected a function", o = Math.max, m = Math.min;
|
|
147
|
+
function u(f, c, t) {
|
|
148
|
+
var s, d, S, g, b, v, T = 0, F = !1, j = !1, q = !0;
|
|
149
|
+
if (typeof f != "function")
|
|
150
|
+
throw new TypeError(i);
|
|
151
|
+
c = n(c) || 0, r(t) && (F = !!t.leading, j = "maxWait" in t, S = j ? o(n(t.maxWait) || 0, c) : S, q = "trailing" in t ? !!t.trailing : q);
|
|
152
|
+
function O(a) {
|
|
153
|
+
var l = s, y = d;
|
|
154
|
+
return s = d = void 0, T = a, g = f.apply(y, l), g;
|
|
155
|
+
}
|
|
156
|
+
function ue(a) {
|
|
157
|
+
return T = a, b = setTimeout(_, c), F ? O(a) : g;
|
|
158
|
+
}
|
|
159
|
+
function fe(a) {
|
|
160
|
+
var l = a - v, y = a - T, $ = c - l;
|
|
161
|
+
return j ? m($, S - y) : $;
|
|
162
|
+
}
|
|
163
|
+
function M(a) {
|
|
164
|
+
var l = a - v, y = a - T;
|
|
165
|
+
return v === void 0 || l >= c || l < 0 || j && y >= S;
|
|
166
|
+
}
|
|
167
|
+
function _() {
|
|
168
|
+
var a = e();
|
|
169
|
+
if (M(a))
|
|
170
|
+
return B(a);
|
|
171
|
+
b = setTimeout(_, fe(a));
|
|
172
|
+
}
|
|
173
|
+
function B(a) {
|
|
174
|
+
return b = void 0, q && s ? O(a) : (s = d = void 0, g);
|
|
175
|
+
}
|
|
176
|
+
function ce() {
|
|
177
|
+
b !== void 0 && clearTimeout(b), T = 0, s = v = d = b = void 0;
|
|
178
|
+
}
|
|
179
|
+
function se() {
|
|
180
|
+
return b === void 0 ? g : B(e());
|
|
181
|
+
}
|
|
182
|
+
function p() {
|
|
183
|
+
var a = e(), l = M(a);
|
|
184
|
+
if (s = arguments, d = this, v = a, l) {
|
|
185
|
+
if (b === void 0)
|
|
186
|
+
return ue(v);
|
|
187
|
+
if (j)
|
|
188
|
+
return clearTimeout(b), b = setTimeout(_, c), O(v);
|
|
189
|
+
}
|
|
190
|
+
return b === void 0 && (b = setTimeout(_, c)), g;
|
|
191
|
+
}
|
|
192
|
+
return p.cancel = ce, p.flush = se, p;
|
|
193
|
+
}
|
|
194
|
+
return D = u, D;
|
|
195
|
+
}
|
|
196
|
+
var qe = /* @__PURE__ */ he();
|
|
197
|
+
const pe = /* @__PURE__ */ be(qe);
|
|
198
|
+
export {
|
|
199
|
+
pe as d
|
|
200
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { c } from "./createLucideIcon-D4r5Phnh.js";
|
|
2
|
+
const e = [
|
|
3
|
+
["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
|
|
4
|
+
["circle", { cx: "12", cy: "5", r: "1", key: "gxeob9" }],
|
|
5
|
+
["circle", { cx: "12", cy: "19", r: "1", key: "lyex9k" }]
|
|
6
|
+
], r = c("ellipsis-vertical", e);
|
|
7
|
+
export {
|
|
8
|
+
r as E
|
|
9
|
+
};
|
|
@@ -1,13 +1,5 @@
|
|
|
1
|
-
import { g as ge } from "./_commonjsHelpers-
|
|
1
|
+
import { g as ge } from "./_commonjsHelpers-DaMA6jEr.js";
|
|
2
2
|
var V = { exports: {} }, N = { exports: {} }, T = {};
|
|
3
|
-
/** @license React v16.13.1
|
|
4
|
-
* react-is.production.min.js
|
|
5
|
-
*
|
|
6
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
7
|
-
*
|
|
8
|
-
* This source code is licensed under the MIT license found in the
|
|
9
|
-
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/
|
|
11
3
|
var ue;
|
|
12
4
|
function Se() {
|
|
13
5
|
if (ue) return T;
|
|
@@ -75,14 +67,6 @@ function Se() {
|
|
|
75
67
|
}, T.typeOf = I, T;
|
|
76
68
|
}
|
|
77
69
|
var m = {};
|
|
78
|
-
/** @license React v16.13.1
|
|
79
|
-
* react-is.development.js
|
|
80
|
-
*
|
|
81
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
82
|
-
*
|
|
83
|
-
* This source code is licensed under the MIT license found in the
|
|
84
|
-
* LICENSE file in the root directory of this source tree.
|
|
85
|
-
*/
|
|
86
70
|
var fe;
|
|
87
71
|
function Pe() {
|
|
88
72
|
return fe || (fe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
@@ -170,11 +154,6 @@ var le;
|
|
|
170
154
|
function he() {
|
|
171
155
|
return le || (le = 1, process.env.NODE_ENV === "production" ? N.exports = /* @__PURE__ */ Se() : N.exports = /* @__PURE__ */ Pe()), N.exports;
|
|
172
156
|
}
|
|
173
|
-
/*
|
|
174
|
-
object-assign
|
|
175
|
-
(c) Sindre Sorhus
|
|
176
|
-
@license MIT
|
|
177
|
-
*/
|
|
178
157
|
var re, pe;
|
|
179
158
|
function Oe() {
|
|
180
159
|
if (pe) return re;
|