@konstructio/ui 0.1.2-alpha.2 → 0.1.2-alpha.21

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 (110) hide show
  1. package/dist/{Modal-V67Uz78z.js → Modal-B8jrP02v.js} +20 -20
  2. package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
  3. package/dist/{chevron-down-BLZPftpV.js → chevron-down-J5nS1Tu0.js} +2 -2
  4. package/dist/chevron-right-DeMVrnIg.js +19 -0
  5. package/dist/components/Alert/Alert.js +2 -2
  6. package/dist/components/AlertDialog/AlertDialog.js +1 -1
  7. package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
  8. package/dist/components/AlertDialog/components/index.js +1 -1
  9. package/dist/components/Badge/Badge.js +31 -28
  10. package/dist/components/Badge/Badge.variants.js +7 -5
  11. package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
  12. package/dist/components/Breadcrumb/components/Item/Item.js +24 -23
  13. package/dist/components/Button/Button.variants.js +1 -1
  14. package/dist/components/Checkbox/Checkbox.js +5 -4
  15. package/dist/components/Checkbox/Checkbox.variants.js +5 -4
  16. package/dist/components/Command/Command.js +2 -2
  17. package/dist/components/Command/components/Command.js +1 -1
  18. package/dist/components/Command/components/CommandEmpty.js +1 -1
  19. package/dist/components/Command/components/CommandGroup.js +1 -1
  20. package/dist/components/Command/components/CommandInput.js +2 -2
  21. package/dist/components/Command/components/CommandItem.js +1 -1
  22. package/dist/components/Command/components/CommandList.js +1 -1
  23. package/dist/components/Command/components/CommandSeparator.js +1 -1
  24. package/dist/components/Command/components/DialogContent.js +2 -2
  25. package/dist/components/Command/components/DialogOverlay.js +1 -1
  26. package/dist/components/Datepicker/DatePicker.js +545 -543
  27. package/dist/components/Dropdown/Dropdown.js +36 -24
  28. package/dist/components/Dropdown/Dropdown.variants.js +32 -9
  29. package/dist/components/Dropdown/components/List/List.js +64 -45
  30. package/dist/components/Dropdown/components/List/List.variants.js +9 -7
  31. package/dist/components/Dropdown/components/ListItem/ListItem.js +70 -24
  32. package/dist/components/Dropdown/components/ListItem/ListItem.variants.js +9 -7
  33. package/dist/components/Dropdown/components/Wrapper.js +157 -111
  34. package/dist/components/Dropdown/contexts/dropdown.context.js +9 -8
  35. package/dist/components/Dropdown/contexts/dropdown.provider.js +20 -19
  36. package/dist/components/Dropdown/hooks/useDropdown.js +30 -27
  37. package/dist/components/Dropdown/hooks/useNavigationList.js +32 -28
  38. package/dist/components/DropdownButton/DropdownButton.js +1 -1
  39. package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +1 -1
  40. package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +1 -1
  41. package/dist/components/Input/Input.js +1 -1
  42. package/dist/components/Loading/Loading.js +2 -2
  43. package/dist/components/Modal/Modal.js +2 -2
  44. package/dist/components/Modal/components/Wrapper/Wrapper.js +3 -3
  45. package/dist/components/Modal/components/index.js +1 -1
  46. package/dist/components/NumberInput/NumberInput.js +2 -2
  47. package/dist/components/PieChart/PieChart.js +649 -648
  48. package/dist/components/Range/Range.js +1 -1
  49. package/dist/components/Sidebar/components/Wrapper/Wrapper.js +29 -28
  50. package/dist/components/Skeleton/Skeleton.js +42 -0
  51. package/dist/components/Slider/Slider.js +1 -1
  52. package/dist/components/Switch/Switch.js +6 -5
  53. package/dist/components/Tabs/Tabs.js +1 -1
  54. package/dist/components/Tabs/Tabs.variants.js +45 -24
  55. package/dist/components/Tabs/components/Content.js +1 -1
  56. package/dist/components/Tabs/components/List.js +1 -1
  57. package/dist/components/Tabs/components/Trigger.js +9 -8
  58. package/dist/components/TagSelect/components/Wrapper/Wrapper.js +98 -49
  59. package/dist/components/TimePicker/components/Wrapper/Wrapper.js +1 -1
  60. package/dist/components/Toast/Toast.js +57 -55
  61. package/dist/components/VirtualizedTable/VirtualizedTable.js +121 -0
  62. package/dist/components/VirtualizedTable/VirtualizedTable.variants.js +5 -0
  63. package/dist/components/VirtualizedTable/assets/chevron-down.js +25 -0
  64. package/dist/components/VirtualizedTable/assets/chevron-up.js +25 -0
  65. package/dist/components/VirtualizedTable/assets/index.js +6 -0
  66. package/dist/components/VirtualizedTable/components/Actions/Actions.js +40 -0
  67. package/dist/components/VirtualizedTable/components/Body/Body.js +26 -0
  68. package/dist/components/VirtualizedTable/components/DotPaginate/DotPaginate.js +165 -0
  69. package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +34 -0
  70. package/dist/components/VirtualizedTable/components/Filter/Filter.js +88 -0
  71. package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +48 -0
  72. package/dist/components/VirtualizedTable/components/Header/Header.js +82 -0
  73. package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +45 -0
  74. package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +1871 -0
  75. package/dist/components/VirtualizedTable/components/index.js +14 -0
  76. package/dist/components/VirtualizedTable/constants/index.js +5 -0
  77. package/dist/components/VirtualizedTable/constants/pagination.js +5 -0
  78. package/dist/components/VirtualizedTable/contexts/index.js +8 -0
  79. package/dist/components/VirtualizedTable/contexts/table.context.js +31 -0
  80. package/dist/components/VirtualizedTable/contexts/table.hook.js +11 -0
  81. package/dist/components/VirtualizedTable/contexts/table.provider.js +84 -0
  82. package/dist/components/index.js +44 -40
  83. package/dist/{createLucideIcon-DbC6TvM5.js → createLucideIcon-DGhJ8Z4k.js} +4 -4
  84. package/dist/debounce-BFejQm9P.js +200 -0
  85. package/dist/ellipsis-vertical-DpnVYRxI.js +15 -0
  86. package/dist/{index-D3xzCzcO.js → index-0XtjXVpJ.js} +2 -2
  87. package/dist/index-BAEWsOG1.js +27 -0
  88. package/dist/index-BVRIAMfe.js +36 -0
  89. package/dist/index-BZPx6jYI.js +8 -0
  90. package/dist/{index-Oq5GlCHP.js → index-Bn4c-gww.js} +1 -1
  91. package/dist/index-CffpTFMi.js +137 -0
  92. package/dist/{index-BAraV3ai.js → index-DQJhMz8c.js} +1 -1
  93. package/dist/index-DdXGVVBv.js +15 -0
  94. package/dist/index-Dx2grAuN.js +1742 -0
  95. package/dist/{index-h-Ul0anl.js → index-N2OStZoU.js} +1 -1
  96. package/dist/{index-BXuxPoz7.js → index-amYX3uxF.js} +18 -17
  97. package/dist/{index-DB2XhXHn.js → index-l3NwplN0.js} +11 -10
  98. package/dist/{index-iXyXtdgP.js → index-sp5ZfG6g.js} +1 -1
  99. package/dist/index.d.ts +121 -10
  100. package/dist/index.js +41 -37
  101. package/dist/package.json +33 -25
  102. package/dist/styles.css +1 -1
  103. package/dist/ui/civo-theme.css +191 -167
  104. package/dist/{x-BPcqkRZd.js → x-4F_5p77m.js} +1 -1
  105. package/package.json +33 -25
  106. package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
  107. package/dist/chevron-up-RLP4nX7V.js +0 -54
  108. package/dist/index-C9T9HQaa.js +0 -423
  109. package/dist/index-CZnD2QxM.js +0 -32
  110. package/dist/index-CrBonFvu.js +0 -144
@@ -0,0 +1,14 @@
1
+ import { Actions as e } from "./Actions/Actions.js";
2
+ import { Body as x } from "./Body/Body.js";
3
+ import { Filter as m } from "./Filter/Filter.js";
4
+ import { Header as a } from "./Header/Header.js";
5
+ import { Pagination as n } from "./Pagination/Pagination.js";
6
+ import { TruncateText as d } from "./TruncateText/TruncateText.js";
7
+ export {
8
+ e as Actions,
9
+ x as Body,
10
+ m as Filter,
11
+ a as Header,
12
+ n as Pagination,
13
+ d as TruncateText
14
+ };
@@ -0,0 +1,5 @@
1
+ import { DEFAULT_PAGE_SIZE as _, DEFAULT_PAGE_SIZES as S } from "./pagination.js";
2
+ export {
3
+ _ as DEFAULT_PAGE_SIZE,
4
+ S as DEFAULT_PAGE_SIZES
5
+ };
@@ -0,0 +1,5 @@
1
+ const E = 10, A = [10, 20, 50, 100];
2
+ export {
3
+ E as DEFAULT_PAGE_SIZE,
4
+ A as DEFAULT_PAGE_SIZES
5
+ };
@@ -0,0 +1,8 @@
1
+ import { TableContext as r } from "./table.context.js";
2
+ import { useTableContext as x } from "./table.hook.js";
3
+ import { TableProvider as b } from "./table.provider.js";
4
+ export {
5
+ r as TableContext,
6
+ b as TableProvider,
7
+ x as useTableContext
8
+ };
@@ -0,0 +1,31 @@
1
+ import { createContext as e } from "react";
2
+ import { DEFAULT_PAGE_SIZE as t } from "../constants/pagination.js";
3
+ const r = e({
4
+ sortedData: [],
5
+ table: {},
6
+ tableFetching: !1,
7
+ tableLoading: !1,
8
+ totalItems: -1 / 0,
9
+ termOfSearch: "",
10
+ page: 0,
11
+ pageSize: t,
12
+ totalPages: 1 / 0,
13
+ onSorting() {
14
+ throw new Error("onSorting function is not implemented");
15
+ },
16
+ onChangeTermOfSearch() {
17
+ throw new Error("onChangeTermOfSearch function is not implemented");
18
+ },
19
+ onSelectMultiselect() {
20
+ throw new Error("onSelectMultiselect function is not implemented");
21
+ },
22
+ handlePage() {
23
+ throw new Error("handlePage function is not implemented");
24
+ },
25
+ onPageSize() {
26
+ throw new Error("onPageSize function is not implemented");
27
+ }
28
+ });
29
+ export {
30
+ r as TableContext
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,84 @@
1
+ import { jsx as z } from "react/jsx-runtime";
2
+ import { useQuery as _ } from "@tanstack/react-query";
3
+ import { u as k, g as A, a as D } from "../../../index-Dx2grAuN.js";
4
+ import { useState as o, useMemo as Q, useCallback as c } from "react";
5
+ import { TableContext as $ } from "./table.context.js";
6
+ import { DEFAULT_PAGE_SIZE as G } from "../constants/pagination.js";
7
+ const N = ({
8
+ children: S,
9
+ id: r,
10
+ data: g = [],
11
+ columns: d = [],
12
+ totalItems: y,
13
+ isPaginationEnabled: b,
14
+ queryOptions: M = {},
15
+ fetchData: m
16
+ }) => {
17
+ const [f, h] = o([]), [i, p] = o(0), [n, C] = o(), [s, P] = o(G), [l, w] = o(y), O = Q(
18
+ () => Math.ceil(l / s),
19
+ [l, s]
20
+ ), [a, T] = o({}), F = () => {
21
+ const e = typeof r == "string" || typeof r == "number" ? [r] : r;
22
+ return b && e.push(i, s), n && e.push(n), Object.entries(a).forEach(([t, u]) => {
23
+ e.push(`${t}:${u.join(",")}`);
24
+ }), e;
25
+ }, { data: R, isLoading: j, isFetching: x } = _({
26
+ queryKey: F(),
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: n,
34
+ ...Object.keys(a).length > 0 ? a : {}
35
+ }).then(({ data: e, totalItemsCount: t }) => (t && w(t), e)) : g ?? [],
36
+ ...M
37
+ }), E = c((e) => {
38
+ C(e), p(0);
39
+ }, []), I = c((e, t) => {
40
+ const u = e.toLowerCase().replace(/\s+/g, "_");
41
+ T((v) => ({
42
+ ...v,
43
+ [u]: t
44
+ }));
45
+ }, []), K = c((e) => p(e), []), L = c(
46
+ (e) => P(e),
47
+ []
48
+ ), q = k({
49
+ data: R,
50
+ columns: d,
51
+ state: {
52
+ sorting: f
53
+ },
54
+ onSortingChange: h,
55
+ getCoreRowModel: D(),
56
+ getSortedRowModel: A()
57
+ });
58
+ return /* @__PURE__ */ z(
59
+ $.Provider,
60
+ {
61
+ value: {
62
+ sortedData: f,
63
+ table: q,
64
+ tableFetching: x,
65
+ tableLoading: j,
66
+ totalItems: l,
67
+ termOfSearch: n,
68
+ page: i,
69
+ multiselectSelected: a,
70
+ pageSize: s,
71
+ totalPages: O,
72
+ handlePage: K,
73
+ onPageSize: L,
74
+ onChangeTermOfSearch: E,
75
+ onSorting: h,
76
+ onSelectMultiselect: I
77
+ },
78
+ children: S
79
+ }
80
+ );
81
+ };
82
+ export {
83
+ N as TableProvider
84
+ };
@@ -3,24 +3,24 @@ 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 n } from "./Button/Button.js";
6
+ import { Button as g } 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 b } from "./Datepicker/DatePicker.js";
9
+ import { DatePicker as D } from "./Datepicker/DatePicker.js";
10
10
  import { Divider as B } from "./Divider/Divider.js";
11
11
  import { Dropdown as S } from "./Dropdown/Dropdown.js";
12
12
  import { DropdownButton as N } from "./DropdownButton/DropdownButton.js";
13
13
  import { Filter as h } from "./Filter/Filter.js";
14
14
  import { Input as A } from "./Input/Input.js";
15
15
  import { Loading as k } from "./Loading/Loading.js";
16
- import { M as G } from "../Modal-V67Uz78z.js";
16
+ import { M as G } from "../Modal-B8jrP02v.js";
17
17
  import { NumberInput as M } from "./NumberInput/NumberInput.js";
18
18
  import { PieChart as I } from "./PieChart/PieChart.js";
19
- import { ProgressBar as j } from "./ProgressBar/ProgressBar.js";
20
- import { Radio as z } from "./Radio/Radio.js";
21
- import { RadioCard as H } from "./RadioCard/RadioCard.js";
22
- import { RadioCardGroup as K } from "./RadioCardGroup/RadioCardGroup.js";
23
- import { RadioGroup as U } from "./RadioGroup/RadioGroup.js";
19
+ import { ProgressBar as O } from "./ProgressBar/ProgressBar.js";
20
+ import { Radio as j } from "./Radio/Radio.js";
21
+ import { RadioCard as E } from "./RadioCard/RadioCard.js";
22
+ import { RadioCardGroup as J } from "./RadioCardGroup/RadioCardGroup.js";
23
+ import { RadioGroup as Q } from "./RadioGroup/RadioGroup.js";
24
24
  import { Range as W } from "./Range/Range.js";
25
25
  import { Sidebar as Y } from "./Sidebar/Sidebar.js";
26
26
  import { Slider as _ } from "./Slider/Slider.js";
@@ -29,56 +29,58 @@ import { Table as eo } from "./Table/Table.js";
29
29
  import { Tabs as po } from "./Tabs/Tabs.js";
30
30
  import { Tag as xo } from "./Tag/Tag.js";
31
31
  import { TagSelect as ao } from "./TagSelect/TagSelect.js";
32
- import { TextArea as go } from "./TextArea/TextArea.js";
32
+ import { TextArea as no } from "./TextArea/TextArea.js";
33
33
  import { TimePicker as lo } from "./TimePicker/TimePicker.js";
34
34
  import { Toast as To } from "./Toast/Toast.js";
35
- import { Tooltip as Do } from "./Tooltip/Tooltip.js";
35
+ import { Tooltip as bo } from "./Tooltip/Tooltip.js";
36
36
  import { Typography as so } from "./Typography/Typography.js";
37
- import { BadgeMultiSelect as Co } from "./Filter/components/BadgeDropdown/BadgeMultiSelect.js";
38
- import { DateFilterDropdown as vo } from "./Filter/components/DateFilterDropdown/DateFilterDropdown.js";
39
- import { Footer as Ro } from "./Sidebar/components/Footer/Footer.js";
40
- import { Logo as wo } from "./Sidebar/components/Logo/Logo.js";
41
- import { Navigation as Po } from "./Sidebar/components/Navigation/Navigation.js";
42
- import { NavigationGroup as Fo } from "./Sidebar/components/NavigationGroup/NavigationGroup.js";
43
- import { NavigationOption as Lo } from "./Sidebar/components/NavigationOption/NavigationOption.js";
44
- import { NavigationSeparator as yo } from "./Sidebar/components/NavigationSeparator/NavigationSeparator.js";
45
- import { Content as Oo } from "./Tabs/components/Content.js";
37
+ import { VirtualizedTable as Co } from "./VirtualizedTable/VirtualizedTable.js";
38
+ import { BadgeMultiSelect as vo } from "./Filter/components/BadgeDropdown/BadgeMultiSelect.js";
39
+ import { DateFilterDropdown as Ro } from "./Filter/components/DateFilterDropdown/DateFilterDropdown.js";
40
+ import { Footer as wo } from "./Sidebar/components/Footer/Footer.js";
41
+ import { Logo as Po } from "./Sidebar/components/Logo/Logo.js";
42
+ import { Navigation as Fo } from "./Sidebar/components/Navigation/Navigation.js";
43
+ import { NavigationGroup as Lo } from "./Sidebar/components/NavigationGroup/NavigationGroup.js";
44
+ import { NavigationOption as yo } from "./Sidebar/components/NavigationOption/NavigationOption.js";
45
+ import { NavigationSeparator as zo } from "./Sidebar/components/NavigationSeparator/NavigationSeparator.js";
46
+ import { Content as Vo } from "./Tabs/components/Content.js";
46
47
  import { List as qo } from "./Tabs/components/List.js";
47
- import { Trigger as Eo } from "./Tabs/components/Trigger.js";
48
+ import { Trigger as Ho } from "./Tabs/components/Trigger.js";
49
+ import { TruncateText as Ko } from "./VirtualizedTable/components/TruncateText/TruncateText.js";
48
50
  export {
49
51
  e as Alert,
50
52
  p as AlertDialog,
51
53
  x as Autocomplete,
52
54
  a as Badge,
53
- Co as BadgeMultiSelect,
55
+ vo as BadgeMultiSelect,
54
56
  d as Breadcrumb,
55
- n as Button,
57
+ g as Button,
56
58
  u as Card,
57
59
  c as Checkbox,
58
- Oo as Content,
59
- vo as DateFilterDropdown,
60
- b as DatePicker,
60
+ Vo as Content,
61
+ Ro as DateFilterDropdown,
62
+ D as DatePicker,
61
63
  B as Divider,
62
64
  S as Dropdown,
63
65
  N as DropdownButton,
64
66
  h as Filter,
65
- Ro as Footer,
67
+ wo as Footer,
66
68
  A as Input,
67
69
  qo as List,
68
70
  k as Loading,
69
- wo as Logo,
71
+ Po as Logo,
70
72
  G as Modal,
71
- Po as Navigation,
72
- Fo as NavigationGroup,
73
- Lo as NavigationOption,
74
- yo as NavigationSeparator,
73
+ Fo as Navigation,
74
+ Lo as NavigationGroup,
75
+ yo as NavigationOption,
76
+ zo as NavigationSeparator,
75
77
  M as NumberInput,
76
78
  I as PieChart,
77
- j as ProgressBar,
78
- z as Radio,
79
- H as RadioCard,
80
- K as RadioCardGroup,
81
- U as RadioGroup,
79
+ O as ProgressBar,
80
+ j as Radio,
81
+ E as RadioCard,
82
+ J as RadioCardGroup,
83
+ Q as RadioGroup,
82
84
  W as Range,
83
85
  Y as Sidebar,
84
86
  _ as Slider,
@@ -87,10 +89,12 @@ export {
87
89
  po as Tabs,
88
90
  xo as Tag,
89
91
  ao as TagSelect,
90
- go as TextArea,
92
+ no as TextArea,
91
93
  lo as TimePicker,
92
94
  To as Toast,
93
- Do as Tooltip,
94
- Eo as Trigger,
95
- so as Typography
95
+ bo as Tooltip,
96
+ Ho as Trigger,
97
+ Ko as TruncateText,
98
+ so as Typography,
99
+ Co as VirtualizedTable
96
100
  };
@@ -1,6 +1,6 @@
1
1
  import { forwardRef as l, createElement as n } from "react";
2
2
  /**
3
- * @license lucide-react v0.544.0 - ISC
3
+ * @license lucide-react v0.548.0 - ISC
4
4
  *
5
5
  * This source code is licensed under the ISC license.
6
6
  * See the LICENSE file in the root directory of this source tree.
@@ -17,7 +17,7 @@ const w = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), h = (t)
17
17
  return !0;
18
18
  };
19
19
  /**
20
- * @license lucide-react v0.544.0 - ISC
20
+ * @license lucide-react v0.548.0 - ISC
21
21
  *
22
22
  * This source code is licensed under the ISC license.
23
23
  * See the LICENSE file in the root directory of this source tree.
@@ -34,7 +34,7 @@ var g = {
34
34
  strokeLinejoin: "round"
35
35
  };
36
36
  /**
37
- * @license lucide-react v0.544.0 - ISC
37
+ * @license lucide-react v0.548.0 - ISC
38
38
  *
39
39
  * This source code is licensed under the ISC license.
40
40
  * See the LICENSE file in the root directory of this source tree.
@@ -69,7 +69,7 @@ const A = l(
69
69
  )
70
70
  );
71
71
  /**
72
- * @license lucide-react v0.544.0 - ISC
72
+ * @license lucide-react v0.548.0 - ISC
73
73
  *
74
74
  * This source code is licensed under the ISC license.
75
75
  * See the LICENSE file in the root directory of this source tree.
@@ -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,15 @@
1
+ import { c } from "./createLucideIcon-DGhJ8Z4k.js";
2
+ /**
3
+ * @license lucide-react v0.548.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
+ const e = [
9
+ ["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
10
+ ["circle", { cx: "12", cy: "5", r: "1", key: "gxeob9" }],
11
+ ["circle", { cx: "12", cy: "19", r: "1", key: "lyex9k" }]
12
+ ], r = c("ellipsis-vertical", e);
13
+ export {
14
+ r as E
15
+ };
@@ -1,6 +1,6 @@
1
- import { R as Ee, P as ke, O as Se, C as Ie } from "./index-BXuxPoz7.js";
1
+ import { R as Ee, P as ke, O as Se, C as Ie } from "./index-amYX3uxF.js";
2
2
  import * as n from "react";
3
- import { P as C } from "./index-C9T9HQaa.js";
3
+ import { P as C } from "./index-BVRIAMfe.js";
4
4
  import { u as P } from "./index-bwWKd82e.js";
5
5
  import { a as j } from "./index-DQH6odE9.js";
6
6
  var de = 1, xe = 0.9, Re = 0.8, Ce = 0.17, Q = 0.1, Z = 0.999, Ae = 0.9999, Me = 0.99, $e = /[\\\/_+.#"@\[\(\{&]/, De = /[\\\/_+.#"@\[\(\{&]/g, Fe = /[\s-]/, me = /[\s-]/g;
@@ -0,0 +1,27 @@
1
+ import * as h from "react";
2
+ import { u as z } from "./index-BfXxHr_2.js";
3
+ function n(r) {
4
+ const [d, e] = h.useState(void 0);
5
+ return z(() => {
6
+ if (r) {
7
+ e({ width: r.offsetWidth, height: r.offsetHeight });
8
+ const f = new ResizeObserver((i) => {
9
+ if (!Array.isArray(i) || !i.length)
10
+ return;
11
+ const b = i[0];
12
+ let o, t;
13
+ if ("borderBoxSize" in b) {
14
+ const s = b.borderBoxSize, u = Array.isArray(s) ? s[0] : s;
15
+ o = u.inlineSize, t = u.blockSize;
16
+ } else
17
+ o = r.offsetWidth, t = r.offsetHeight;
18
+ e({ width: o, height: t });
19
+ });
20
+ return f.observe(r, { box: "border-box" }), () => f.unobserve(r);
21
+ } else
22
+ e(void 0);
23
+ }, [r]), d;
24
+ }
25
+ export {
26
+ n as u
27
+ };
@@ -0,0 +1,36 @@
1
+ import * as c from "react";
2
+ import * as f from "react-dom";
3
+ import { c as p } from "./index-DQH6odE9.js";
4
+ import { jsx as l } from "react/jsx-runtime";
5
+ var u = [
6
+ "a",
7
+ "button",
8
+ "div",
9
+ "form",
10
+ "h2",
11
+ "h3",
12
+ "img",
13
+ "input",
14
+ "label",
15
+ "li",
16
+ "nav",
17
+ "ol",
18
+ "p",
19
+ "select",
20
+ "span",
21
+ "svg",
22
+ "ul"
23
+ ], h = u.reduce((t, i) => {
24
+ const o = p(`Primitive.${i}`), r = c.forwardRef((e, s) => {
25
+ const { asChild: a, ...m } = e, n = a ? o : i;
26
+ return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ l(n, { ...m, ref: s });
27
+ });
28
+ return r.displayName = `Primitive.${i}`, { ...t, [i]: r };
29
+ }, {});
30
+ function w(t, i) {
31
+ t && f.flushSync(() => t.dispatchEvent(i));
32
+ }
33
+ export {
34
+ h as P,
35
+ w as d
36
+ };
@@ -0,0 +1,8 @@
1
+ import * as u from "react";
2
+ function t(r) {
3
+ const e = u.useRef({ value: r, previous: r });
4
+ return u.useMemo(() => (e.current.value !== r && (e.current.previous = e.current.value, e.current.value = r), e.current.previous), [r]);
5
+ }
6
+ export {
7
+ t as u
8
+ };
@@ -2,7 +2,7 @@ import { jsx as i, jsxs as O } from "react/jsx-runtime";
2
2
  import * as l from "react";
3
3
  import { c as w, b as M } from "./index-BfXxHr_2.js";
4
4
  import { u, b as x } from "./index-DQH6odE9.js";
5
- import { c as A, R as I, P as $, O as L, W as F, C as G, T as W, d as j, b as v, e as B } from "./index-BXuxPoz7.js";
5
+ import { c as A, R as I, P as $, O as L, W as F, C as G, T as W, d as j, b as v, e as B } from "./index-amYX3uxF.js";
6
6
  import { Button as Y } from "./components/Button/Button.js";
7
7
  import { cn as k } from "./utils/index.js";
8
8
  var D = "AlertDialog", [q, le] = w(D, [