@konstructio/ui 0.1.2-alpha.4 → 0.1.2-alpha.5
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/{Modal-V67Uz78z.js → Modal-D-NOEWMX.js} +3 -3
- package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist/{chevron-down-BLZPftpV.js → chevron-down-MZvQoT2F.js} +2 -2
- package/dist/chevron-right-VYBOBhRt.js +19 -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 +2 -2
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Breadcrumb/components/Item/Item.js +16 -15
- package/dist/components/Checkbox/Checkbox.js +5 -4
- 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 +545 -543
- package/dist/components/Dropdown/components/List/List.js +36 -33
- package/dist/components/Dropdown/components/ListItem/ListItem.js +19 -18
- package/dist/components/Dropdown/components/Wrapper.js +3 -3
- package/dist/components/Dropdown/contexts/dropdown.provider.js +18 -18
- package/dist/components/Dropdown/hooks/useNavigationList.js +25 -25
- package/dist/components/DropdownButton/DropdownButton.js +1 -1
- 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/Loading/Loading.js +2 -2
- package/dist/components/Modal/Modal.js +2 -2
- package/dist/components/Modal/components/Wrapper/Wrapper.js +3 -3
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/NumberInput/NumberInput.js +2 -2
- package/dist/components/PieChart/PieChart.js +217 -215
- package/dist/components/Range/Range.js +1 -1
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +29 -28
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Switch/Switch.js +6 -5
- package/dist/components/Tabs/Tabs.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/TagSelect/components/Wrapper/Wrapper.js +2 -2
- package/dist/components/TimePicker/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/Toast/Toast.js +8 -7
- package/dist/components/VirtualizedTable/VirtualizedTable.js +99 -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 +46 -0
- package/dist/components/VirtualizedTable/components/Body/Body.js +25 -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 +73 -0
- package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +48 -0
- package/dist/components/VirtualizedTable/components/Header/Header.js +82 -0
- package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +45 -0
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +1870 -0
- package/dist/components/VirtualizedTable/components/index.js +14 -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 +31 -0
- package/dist/components/VirtualizedTable/contexts/table.hook.js +11 -0
- package/dist/components/VirtualizedTable/contexts/table.provider.js +778 -0
- package/dist/components/index.js +44 -40
- package/dist/{createLucideIcon-DbC6TvM5.js → createLucideIcon-D2CN7Ma9.js} +4 -4
- package/dist/debounce-BFejQm9P.js +200 -0
- package/dist/{index-D3xzCzcO.js → index-B7t8D14s.js} +2 -2
- package/dist/index-BAEWsOG1.js +27 -0
- package/dist/{index-C9T9HQaa.js → index-BITvcJAz.js} +1 -1
- package/dist/index-BZPx6jYI.js +8 -0
- package/dist/{index-BAraV3ai.js → index-Bnb0ezr3.js} +1 -1
- package/dist/{index-DB2XhXHn.js → index-C84F4YyO.js} +11 -10
- package/dist/index-Cd2vhaop.js +137 -0
- package/dist/{index-iXyXtdgP.js → index-DBbEcSUG.js} +1 -1
- package/dist/index-Dx2grAuN.js +1742 -0
- package/dist/{index-BXuxPoz7.js → index-DzIBBMjs.js} +18 -17
- package/dist/{index-h-Ul0anl.js → index-N2OStZoU.js} +1 -1
- package/dist/{index-Oq5GlCHP.js → index-os7vysFS.js} +1 -1
- package/dist/index-ti1b9kqV.js +14 -0
- package/dist/index.d.ts +88 -3
- package/dist/index.js +41 -37
- package/dist/package.json +19 -15
- package/dist/styles.css +1 -1
- package/dist/{x-BPcqkRZd.js → x-4F_5p77m.js} +1 -1
- package/package.json +19 -15
- package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
- package/dist/index-CZnD2QxM.js +0 -32
- package/dist/index-CrBonFvu.js +0 -144
package/dist/components/index.js
CHANGED
|
@@ -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
|
|
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
|
|
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-
|
|
16
|
+
import { M as G } from "../Modal-D-NOEWMX.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
|
|
20
|
-
import { Radio as
|
|
21
|
-
import { RadioCard as
|
|
22
|
-
import { RadioCardGroup as
|
|
23
|
-
import { RadioGroup as
|
|
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
|
|
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
|
|
35
|
+
import { Tooltip as bo } from "./Tooltip/Tooltip.js";
|
|
36
36
|
import { Typography as so } from "./Typography/Typography.js";
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
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
|
|
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
|
-
|
|
55
|
+
vo as BadgeMultiSelect,
|
|
54
56
|
d as Breadcrumb,
|
|
55
|
-
|
|
57
|
+
g as Button,
|
|
56
58
|
u as Card,
|
|
57
59
|
c as Checkbox,
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
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
|
-
|
|
67
|
+
wo as Footer,
|
|
66
68
|
A as Input,
|
|
67
69
|
qo as List,
|
|
68
70
|
k as Loading,
|
|
69
|
-
|
|
71
|
+
Po as Logo,
|
|
70
72
|
G as Modal,
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
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
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
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
|
-
|
|
92
|
+
no as TextArea,
|
|
91
93
|
lo as TimePicker,
|
|
92
94
|
To as Toast,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
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.
|
|
3
|
+
* @license lucide-react v0.545.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.
|
|
20
|
+
* @license lucide-react v0.545.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.
|
|
37
|
+
* @license lucide-react v0.545.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.
|
|
72
|
+
* @license lucide-react v0.545.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
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { R as Ee, P as ke, O as Se, C as Ie } from "./index-
|
|
1
|
+
import { R as Ee, P as ke, O as Se, C as Ie } from "./index-DzIBBMjs.js";
|
|
2
2
|
import * as n from "react";
|
|
3
|
-
import { P as C } from "./index-
|
|
3
|
+
import { P as C } from "./index-BITvcJAz.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
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as D from "react";
|
|
2
2
|
import R from "react";
|
|
3
|
-
import { g as b } from "./_commonjsHelpers-
|
|
3
|
+
import { g as b } from "./_commonjsHelpers-DaMA6jEr.js";
|
|
4
4
|
import { c as w } from "./index-DQH6odE9.js";
|
|
5
5
|
import { jsx as N } from "react/jsx-runtime";
|
|
6
6
|
var v = { exports: {} }, u = {};
|
|
@@ -3,7 +3,7 @@ import { c as K, b as I, a as L } from "./index-BfXxHr_2.js";
|
|
|
3
3
|
import { c as ce } from "./index-Cvx4lqTq.js";
|
|
4
4
|
import { u as ie } from "./index-DQH6odE9.js";
|
|
5
5
|
import { u as O } from "./index-bwWKd82e.js";
|
|
6
|
-
import { P as C } from "./index-
|
|
6
|
+
import { P as C } from "./index-BITvcJAz.js";
|
|
7
7
|
import { u as ue } from "./index-0ioNhtNM.js";
|
|
8
8
|
import { u as k } from "./index-BdMNhZnh.js";
|
|
9
9
|
import { jsx as l } from "react/jsx-runtime";
|
|
@@ -2,8 +2,9 @@ import * as l from "react";
|
|
|
2
2
|
import { a as ce, c as le, b as _ } from "./index-BfXxHr_2.js";
|
|
3
3
|
import { u as M } from "./index-DQH6odE9.js";
|
|
4
4
|
import { u as de } from "./index-BdMNhZnh.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { u as ue } from "./index-BZPx6jYI.js";
|
|
6
|
+
import { u as fe } from "./index-BAEWsOG1.js";
|
|
7
|
+
import { P as T } from "./index-BITvcJAz.js";
|
|
7
8
|
import { c as me } from "./index-Cvx4lqTq.js";
|
|
8
9
|
import { jsx as g, jsxs as Se } from "react/jsx-runtime";
|
|
9
10
|
function $(e, [t, n]) {
|
|
@@ -14,7 +15,7 @@ var j = ["PageUp", "PageDown"], X = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arrow
|
|
|
14
15
|
"from-right": ["Home", "PageDown", "ArrowDown", "ArrowRight"],
|
|
15
16
|
"from-bottom": ["Home", "PageDown", "ArrowDown", "ArrowLeft"],
|
|
16
17
|
"from-top": ["Home", "PageDown", "ArrowUp", "ArrowLeft"]
|
|
17
|
-
}, C = "Slider", [N, pe, he] = me(C), [W,
|
|
18
|
+
}, C = "Slider", [N, pe, he] = me(C), [W, He] = le(C, [
|
|
18
19
|
he
|
|
19
20
|
]), [ge, V] = W(C), q = l.forwardRef(
|
|
20
21
|
(e, t) => {
|
|
@@ -305,7 +306,7 @@ var O = "SliderThumb", oe = l.forwardRef(
|
|
|
305
306
|
}
|
|
306
307
|
), be = l.forwardRef(
|
|
307
308
|
(e, t) => {
|
|
308
|
-
const { __scopeSlider: n, index: o, name: s, ...c } = e, r = V(O, n), a = Q(O, n), [u, w] = l.useState(null), p = M(t, (D) => w(D)), i = u ? r.form || !!u.closest("form") : !0, d =
|
|
309
|
+
const { __scopeSlider: n, index: o, name: s, ...c } = e, r = V(O, n), a = Q(O, n), [u, w] = l.useState(null), p = M(t, (D) => w(D)), i = u ? r.form || !!u.closest("form") : !0, d = fe(u), v = r.values[o], y = v === void 0 ? 0 : ie(v, r.min, r.max), h = Pe(o, r.values.length), m = d?.[a.size], f = m ? De(m, y, a.direction) : 0;
|
|
309
310
|
return l.useEffect(() => {
|
|
310
311
|
if (u)
|
|
311
312
|
return r.thumbs.add(u), () => {
|
|
@@ -357,7 +358,7 @@ var O = "SliderThumb", oe = l.forwardRef(
|
|
|
357
358
|
oe.displayName = O;
|
|
358
359
|
var Re = "RadioBubbleInput", re = l.forwardRef(
|
|
359
360
|
({ __scopeSlider: e, value: t, ...n }, o) => {
|
|
360
|
-
const s = l.useRef(null), c = M(s, o), r =
|
|
361
|
+
const s = l.useRef(null), c = M(s, o), r = ue(t);
|
|
361
362
|
return l.useEffect(() => {
|
|
362
363
|
const a = s.current;
|
|
363
364
|
if (!a) return;
|
|
@@ -422,10 +423,10 @@ function Ce(e, t) {
|
|
|
422
423
|
const n = Math.pow(10, t);
|
|
423
424
|
return Math.round(e * n) / n;
|
|
424
425
|
}
|
|
425
|
-
var
|
|
426
|
+
var Ne = q, Le = te, Oe = ne, Ue = oe;
|
|
426
427
|
export {
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
428
|
+
Ne as R,
|
|
429
|
+
Le as T,
|
|
430
|
+
Oe as a,
|
|
431
|
+
Ue as b
|
|
431
432
|
};
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import * as i from "react";
|
|
2
|
+
import { b as h } from "./index-BfXxHr_2.js";
|
|
3
|
+
import { P as R, d as z } from "./index-BITvcJAz.js";
|
|
4
|
+
import { u as g } from "./index-DQH6odE9.js";
|
|
5
|
+
import { u as m } from "./index-0ioNhtNM.js";
|
|
6
|
+
import { jsx as B } from "react/jsx-runtime";
|
|
7
|
+
function H(n, e = globalThis?.document) {
|
|
8
|
+
const t = m(n);
|
|
9
|
+
i.useEffect(() => {
|
|
10
|
+
const o = (s) => {
|
|
11
|
+
s.key === "Escape" && t(s);
|
|
12
|
+
};
|
|
13
|
+
return e.addEventListener("keydown", o, { capture: !0 }), () => e.removeEventListener("keydown", o, { capture: !0 });
|
|
14
|
+
}, [t, e]);
|
|
15
|
+
}
|
|
16
|
+
var K = "DismissableLayer", p = "dismissableLayer.update", M = "dismissableLayer.pointerDownOutside", j = "dismissableLayer.focusOutside", C, T = i.createContext({
|
|
17
|
+
layers: /* @__PURE__ */ new Set(),
|
|
18
|
+
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
19
|
+
branches: /* @__PURE__ */ new Set()
|
|
20
|
+
}), x = i.forwardRef(
|
|
21
|
+
(n, e) => {
|
|
22
|
+
const {
|
|
23
|
+
disableOutsidePointerEvents: t = !1,
|
|
24
|
+
onEscapeKeyDown: o,
|
|
25
|
+
onPointerDownOutside: s,
|
|
26
|
+
onFocusOutside: c,
|
|
27
|
+
onInteractOutside: f,
|
|
28
|
+
onDismiss: d,
|
|
29
|
+
...E
|
|
30
|
+
} = n, a = i.useContext(T), [u, S] = i.useState(null), l = u?.ownerDocument ?? globalThis?.document, [, W] = i.useState({}), k = g(e, (r) => S(r)), b = Array.from(a.layers), [A] = [...a.layersWithOutsidePointerEventsDisabled].slice(-1), N = b.indexOf(A), D = u ? b.indexOf(u) : -1, _ = a.layersWithOutsidePointerEventsDisabled.size > 0, P = D >= N, U = Y((r) => {
|
|
31
|
+
const v = r.target, L = [...a.branches].some((y) => y.contains(v));
|
|
32
|
+
!P || L || (s?.(r), f?.(r), r.defaultPrevented || d?.());
|
|
33
|
+
}, l), O = q((r) => {
|
|
34
|
+
const v = r.target;
|
|
35
|
+
[...a.branches].some((y) => y.contains(v)) || (c?.(r), f?.(r), r.defaultPrevented || d?.());
|
|
36
|
+
}, l);
|
|
37
|
+
return H((r) => {
|
|
38
|
+
D === a.layers.size - 1 && (o?.(r), !r.defaultPrevented && d && (r.preventDefault(), d()));
|
|
39
|
+
}, l), i.useEffect(() => {
|
|
40
|
+
if (u)
|
|
41
|
+
return t && (a.layersWithOutsidePointerEventsDisabled.size === 0 && (C = l.body.style.pointerEvents, l.body.style.pointerEvents = "none"), a.layersWithOutsidePointerEventsDisabled.add(u)), a.layers.add(u), w(), () => {
|
|
42
|
+
t && a.layersWithOutsidePointerEventsDisabled.size === 1 && (l.body.style.pointerEvents = C);
|
|
43
|
+
};
|
|
44
|
+
}, [u, l, t, a]), i.useEffect(() => () => {
|
|
45
|
+
u && (a.layers.delete(u), a.layersWithOutsidePointerEventsDisabled.delete(u), w());
|
|
46
|
+
}, [u, a]), i.useEffect(() => {
|
|
47
|
+
const r = () => W({});
|
|
48
|
+
return document.addEventListener(p, r), () => document.removeEventListener(p, r);
|
|
49
|
+
}, []), /* @__PURE__ */ B(
|
|
50
|
+
R.div,
|
|
51
|
+
{
|
|
52
|
+
...E,
|
|
53
|
+
ref: k,
|
|
54
|
+
style: {
|
|
55
|
+
pointerEvents: _ ? P ? "auto" : "none" : void 0,
|
|
56
|
+
...n.style
|
|
57
|
+
},
|
|
58
|
+
onFocusCapture: h(n.onFocusCapture, O.onFocusCapture),
|
|
59
|
+
onBlurCapture: h(n.onBlurCapture, O.onBlurCapture),
|
|
60
|
+
onPointerDownCapture: h(
|
|
61
|
+
n.onPointerDownCapture,
|
|
62
|
+
U.onPointerDownCapture
|
|
63
|
+
)
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
);
|
|
68
|
+
x.displayName = K;
|
|
69
|
+
var X = "DismissableLayerBranch", F = i.forwardRef((n, e) => {
|
|
70
|
+
const t = i.useContext(T), o = i.useRef(null), s = g(e, o);
|
|
71
|
+
return i.useEffect(() => {
|
|
72
|
+
const c = o.current;
|
|
73
|
+
if (c)
|
|
74
|
+
return t.branches.add(c), () => {
|
|
75
|
+
t.branches.delete(c);
|
|
76
|
+
};
|
|
77
|
+
}, [t.branches]), /* @__PURE__ */ B(R.div, { ...n, ref: s });
|
|
78
|
+
});
|
|
79
|
+
F.displayName = X;
|
|
80
|
+
function Y(n, e = globalThis?.document) {
|
|
81
|
+
const t = m(n), o = i.useRef(!1), s = i.useRef(() => {
|
|
82
|
+
});
|
|
83
|
+
return i.useEffect(() => {
|
|
84
|
+
const c = (d) => {
|
|
85
|
+
if (d.target && !o.current) {
|
|
86
|
+
let E = function() {
|
|
87
|
+
I(
|
|
88
|
+
M,
|
|
89
|
+
t,
|
|
90
|
+
a,
|
|
91
|
+
{ discrete: !0 }
|
|
92
|
+
);
|
|
93
|
+
};
|
|
94
|
+
const a = { originalEvent: d };
|
|
95
|
+
d.pointerType === "touch" ? (e.removeEventListener("click", s.current), s.current = E, e.addEventListener("click", s.current, { once: !0 })) : E();
|
|
96
|
+
} else
|
|
97
|
+
e.removeEventListener("click", s.current);
|
|
98
|
+
o.current = !1;
|
|
99
|
+
}, f = window.setTimeout(() => {
|
|
100
|
+
e.addEventListener("pointerdown", c);
|
|
101
|
+
}, 0);
|
|
102
|
+
return () => {
|
|
103
|
+
window.clearTimeout(f), e.removeEventListener("pointerdown", c), e.removeEventListener("click", s.current);
|
|
104
|
+
};
|
|
105
|
+
}, [e, t]), {
|
|
106
|
+
// ensures we check React component tree (not just DOM tree)
|
|
107
|
+
onPointerDownCapture: () => o.current = !0
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
function q(n, e = globalThis?.document) {
|
|
111
|
+
const t = m(n), o = i.useRef(!1);
|
|
112
|
+
return i.useEffect(() => {
|
|
113
|
+
const s = (c) => {
|
|
114
|
+
c.target && !o.current && I(j, t, { originalEvent: c }, {
|
|
115
|
+
discrete: !1
|
|
116
|
+
});
|
|
117
|
+
};
|
|
118
|
+
return e.addEventListener("focusin", s), () => e.removeEventListener("focusin", s);
|
|
119
|
+
}, [e, t]), {
|
|
120
|
+
onFocusCapture: () => o.current = !0,
|
|
121
|
+
onBlurCapture: () => o.current = !1
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
function w() {
|
|
125
|
+
const n = new CustomEvent(p);
|
|
126
|
+
document.dispatchEvent(n);
|
|
127
|
+
}
|
|
128
|
+
function I(n, e, t, { discrete: o }) {
|
|
129
|
+
const s = t.originalEvent.target, c = new CustomEvent(n, { bubbles: !1, cancelable: !0, detail: t });
|
|
130
|
+
e && s.addEventListener(n, e, { once: !0 }), o ? z(s, c) : s.dispatchEvent(c);
|
|
131
|
+
}
|
|
132
|
+
var $ = x, ee = F;
|
|
133
|
+
export {
|
|
134
|
+
ee as B,
|
|
135
|
+
x as D,
|
|
136
|
+
$ as R
|
|
137
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i from "react";
|
|
2
|
-
import { P as o } from "./index-
|
|
2
|
+
import { P as o } from "./index-BITvcJAz.js";
|
|
3
3
|
import { jsx as t } from "react/jsx-runtime";
|
|
4
4
|
var d = Object.freeze({
|
|
5
5
|
// See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
|