@konstructio/ui 0.1.0-alpha.2 → 0.1.0-alpha.20
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-b348x__d.js → Combination-VYaRRJBZ.js} +155 -157
- package/dist/DatePicker.css +1 -0
- package/dist/Modal-CrG0m703.js +98 -0
- package/dist/assets/icons/components/Search.js +26 -0
- package/dist/assets/icons/components/Warning.js +22 -0
- package/dist/assets/icons/components/index.js +6 -0
- package/dist/chevron-down-3QGcvbP_.js +11 -0
- package/dist/{chevron-up-DgLBQCKD.js → chevron-up-RLP4nX7V.js} +1 -1
- package/dist/components/Alert/Alert.js +2 -2
- package/dist/components/AlertDialog/AlertDialog.js +55 -41
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/Badge/Badge.js +14 -14
- package/dist/components/Badge/Badge.variants.js +18 -17
- package/dist/components/Breadcrumb/Breadcrumb.js +44 -53
- package/dist/components/Breadcrumb/Breadcrumb.variants.js +10 -41
- package/dist/components/Breadcrumb/components/Item/Item.js +27 -27
- package/dist/components/Breadcrumb/components/Item/Item.variants.js +43 -56
- package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +1 -1
- package/dist/components/Button/Button.js +30 -26
- package/dist/components/Button/Button.variants.js +116 -29
- package/dist/components/Checkbox/Checkbox.js +300 -185
- package/dist/components/Checkbox/Checkbox.variants.js +12 -15
- 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 +2728 -0
- package/dist/components/Datepicker/DatePicker.variants.js +5 -0
- package/dist/components/Dropdown/components/List/List.js +55 -18
- package/dist/components/Dropdown/components/List/List.variants.js +5 -3
- package/dist/components/Dropdown/components/ListItem/ListItem.js +28 -22
- package/dist/components/Dropdown/components/Wrapper.js +110 -86
- package/dist/components/Dropdown/contexts/dropdown.context.js +6 -2
- package/dist/components/Dropdown/contexts/dropdown.hook.js +5 -3
- package/dist/components/Dropdown/contexts/dropdown.provider.js +18 -11
- package/dist/components/DropdownButton/DropdownButton.js +136 -0
- package/dist/components/Filter/Filter.js +20 -0
- package/dist/components/Filter/Filter.variants.js +22 -0
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.js +86 -0
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +95 -0
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +87 -0
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +90 -0
- package/dist/components/Filter/components/ResetButton/ResetButton.js +24 -0
- package/dist/components/Filter/components/index.js +8 -0
- package/dist/components/Filter/events/index.js +12 -0
- package/dist/components/Input/Input.js +134 -163
- package/dist/components/Input/Input.variants.js +15 -13
- package/dist/components/Loading/Loading.js +2 -2
- 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/Wrapper/Wrapper.variants.js +4 -6
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/NumberInput/NumberInput.js +2 -2
- package/dist/components/PieChart/PieChart.js +5130 -0
- package/dist/components/Radio/Radio.js +64 -49
- package/dist/components/Radio/Radio.variants.js +14 -12
- package/dist/components/RadioCard/RadioCard.js +23 -21
- package/dist/components/RadioCardGroup/RadioCardGroup.js +18 -18
- package/dist/components/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/Range/Range.js +1 -1
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Switch/Switch.js +141 -126
- package/dist/components/Tabs/Tabs.js +27 -0
- package/dist/components/Tabs/Tabs.variants.js +58 -0
- package/dist/components/Tabs/components/Content.js +19 -0
- package/dist/components/Tabs/components/List.js +20 -0
- package/dist/components/Tabs/components/Trigger.js +26 -0
- package/dist/components/Tabs/components/index.js +8 -0
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/TagSelect/components/Wrapper/Wrapper.js +2 -2
- package/dist/components/TimePicker/TimePicker.js +8 -0
- package/dist/components/TimePicker/TimePicker.variants.js +62 -0
- package/dist/components/TimePicker/components/HoursList/HoursList.js +93 -0
- package/dist/components/TimePicker/components/MeridianList/MeridianList.js +68 -0
- package/dist/components/TimePicker/components/MinutesList/MinutesList.js +60 -0
- package/dist/components/TimePicker/components/Wrapper/Wrapper.js +96 -0
- package/dist/components/TimePicker/components/WrapperList/WrapperList.js +51 -0
- package/dist/components/TimePicker/components/WrapperList/WrapperList.variants.js +16 -0
- package/dist/components/TimePicker/components/index.js +4 -0
- package/dist/components/TimePicker/contexts/index.js +8 -0
- package/dist/components/TimePicker/contexts/time-picker.context.js +22 -0
- package/dist/components/TimePicker/contexts/time-picker.hook.js +13 -0
- package/dist/components/TimePicker/contexts/time-picker.provider.js +46 -0
- package/dist/components/TimePicker/utils/index.js +6 -0
- package/dist/components/Toast/Toast.js +38 -36
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/components/Typography/Typography.js +14 -16
- package/dist/components/index.js +90 -66
- package/dist/createLucideIcon-B7yPYScZ.js +94 -0
- package/dist/index--EmNlyHx.js +31 -0
- package/dist/{index-Bk324h27.js → index-B5MIi2tR.js} +6 -5
- package/dist/{index-g-TFwd6Y.js → index-BCGvACM9.js} +2 -1
- package/dist/{index-AM3avohj.js → index-BNU3RH-3.js} +3 -3
- package/dist/{index-Bry5AFQ2.js → index-Bc1LNrRD.js} +1 -1
- package/dist/index-BdMNhZnh.js +9 -0
- package/dist/index-BvCZBMfr.js +432 -0
- package/dist/index-Cq1I1cG9.js +129 -0
- package/dist/index-Cs8Lv8Wj.js +13 -0
- package/dist/index-CvfCCTEO.js +323 -0
- package/dist/{index-DvFiic6N.js → index-DLYwlPRZ.js} +96 -102
- package/dist/{index-YaQrdkGE.js → index-DNRcvRTB.js} +31 -30
- package/dist/{index-dRxIWVBr.js → index-Dkt8F6CZ.js} +6 -5
- package/dist/{index-G_6jG4Qc.js → index-Dm-ooN_M.js} +18 -18
- package/dist/index-DwYXX2sM.js +13 -0
- package/dist/{index-C5psggHV.js → index-h-Ul0anl.js} +1 -2
- package/dist/{index-D9BbbgUq.js → index-rUBNhTeF.js} +2 -2
- package/dist/index.d.ts +263 -18
- package/dist/index.js +96 -72
- package/dist/package.json +42 -40
- package/dist/styles.css +1 -1
- package/dist/ui/civo-theme.css +263 -0
- package/dist/ui/kubefirst-theme.css +1 -1
- package/dist/ui/theme.css +11 -0
- package/dist/useBreadcrumb-DMERrNkJ.js +1280 -0
- package/dist/utils/index.js +4 -4
- package/dist/{x-DU-Zw-L_.js → x-BPcqkRZd.js} +1 -1
- package/package.json +42 -40
- package/dist/Modal-i7eolhYH.js +0 -926
- package/dist/createLucideIcon-CoF3ywd5.js +0 -89
- package/dist/index-BOx5P4tS.js +0 -423
- package/dist/index-CWKdynYu.js +0 -32
- package/dist/index-bYyfdsls.js +0 -118
- package/dist/useBreadcrumb-BsIeMoR1.js +0 -1279
package/dist/components/index.js
CHANGED
|
@@ -1,72 +1,96 @@
|
|
|
1
|
-
import { Alert as
|
|
1
|
+
import { Alert as e } from "./Alert/Alert.js";
|
|
2
2
|
import { AlertDialog as p } from "./AlertDialog/AlertDialog.js";
|
|
3
3
|
import { Autocomplete as x } from "./Autocomplete/Autocomplete.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
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 {
|
|
4
|
+
import { Badge as a } from "./Badge/Badge.js";
|
|
5
|
+
import { Breadcrumb as d } from "./Breadcrumb/Breadcrumb.js";
|
|
6
|
+
import { Button as n } from "./Button/Button.js";
|
|
7
|
+
import { Card as u } from "./Card/Card.js";
|
|
8
|
+
import { Checkbox as c } from "./Checkbox/Checkbox.js";
|
|
9
|
+
import { DatePicker as b } from "./Datepicker/DatePicker.js";
|
|
10
|
+
import { Divider as B } from "./Divider/Divider.js";
|
|
11
|
+
import { Dropdown as S } from "./Dropdown/Dropdown.js";
|
|
12
|
+
import { DropdownButton as N } from "./DropdownButton/DropdownButton.js";
|
|
13
|
+
import { Filter as h } from "./Filter/Filter.js";
|
|
14
|
+
import { Input as A } from "./Input/Input.js";
|
|
15
|
+
import { Loading as k } from "./Loading/Loading.js";
|
|
16
|
+
import { M as G } from "../Modal-CrG0m703.js";
|
|
17
|
+
import { NumberInput as M } from "./NumberInput/NumberInput.js";
|
|
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";
|
|
24
|
+
import { Range as W } from "./Range/Range.js";
|
|
25
|
+
import { Sidebar as Y } from "./Sidebar/Sidebar.js";
|
|
26
|
+
import { Slider as _ } from "./Slider/Slider.js";
|
|
27
|
+
import { Switch as oo } from "./Switch/Switch.js";
|
|
28
|
+
import { Table as eo } from "./Table/Table.js";
|
|
29
|
+
import { Tabs as po } from "./Tabs/Tabs.js";
|
|
30
|
+
import { Tag as xo } from "./Tag/Tag.js";
|
|
31
|
+
import { TagSelect as ao } from "./TagSelect/TagSelect.js";
|
|
32
|
+
import { TextArea as go } from "./TextArea/TextArea.js";
|
|
33
|
+
import { TimePicker as lo } from "./TimePicker/TimePicker.js";
|
|
34
|
+
import { Toast as To } from "./Toast/Toast.js";
|
|
35
|
+
import { Tooltip as Do } from "./Tooltip/Tooltip.js";
|
|
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 { List as Oo } from "./Tabs/components/List.js";
|
|
46
|
+
import { Trigger as qo } from "./Tabs/components/Trigger.js";
|
|
47
|
+
import { Content as Eo } from "./Tabs/components/Content.js";
|
|
36
48
|
export {
|
|
37
|
-
|
|
49
|
+
e as Alert,
|
|
38
50
|
p as AlertDialog,
|
|
39
51
|
x as Autocomplete,
|
|
40
|
-
a as
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
G as
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
52
|
+
a as Badge,
|
|
53
|
+
Co as BadgeMultiSelect,
|
|
54
|
+
d as Breadcrumb,
|
|
55
|
+
n as Button,
|
|
56
|
+
u as Card,
|
|
57
|
+
c as Checkbox,
|
|
58
|
+
Eo as Content,
|
|
59
|
+
vo as DateFilterDropdown,
|
|
60
|
+
b as DatePicker,
|
|
61
|
+
B as Divider,
|
|
62
|
+
S as Dropdown,
|
|
63
|
+
N as DropdownButton,
|
|
64
|
+
h as Filter,
|
|
65
|
+
Ro as Footer,
|
|
66
|
+
A as Input,
|
|
67
|
+
Oo as List,
|
|
68
|
+
k as Loading,
|
|
69
|
+
wo as Logo,
|
|
70
|
+
G as Modal,
|
|
71
|
+
Po as Navigation,
|
|
72
|
+
Fo as NavigationGroup,
|
|
73
|
+
Lo as NavigationOption,
|
|
74
|
+
yo as NavigationSeparator,
|
|
75
|
+
M as NumberInput,
|
|
76
|
+
I as PieChart,
|
|
77
|
+
j as ProgressBar,
|
|
78
|
+
z as Radio,
|
|
79
|
+
H as RadioCard,
|
|
80
|
+
K as RadioCardGroup,
|
|
81
|
+
U as RadioGroup,
|
|
82
|
+
W as Range,
|
|
83
|
+
Y as Sidebar,
|
|
84
|
+
_ as Slider,
|
|
85
|
+
oo as Switch,
|
|
86
|
+
eo as Table,
|
|
87
|
+
po as Tabs,
|
|
88
|
+
xo as Tag,
|
|
89
|
+
ao as TagSelect,
|
|
90
|
+
go as TextArea,
|
|
91
|
+
lo as TimePicker,
|
|
92
|
+
To as Toast,
|
|
93
|
+
Do as Tooltip,
|
|
94
|
+
qo as Trigger,
|
|
95
|
+
so as Typography
|
|
72
96
|
};
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { forwardRef as l, createElement as n } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* @license lucide-react v0.539.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 w = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), h = (t) => t.replace(
|
|
9
|
+
/^([A-Z])|[\s-_]+(\w)/g,
|
|
10
|
+
(e, r, o) => o ? o.toUpperCase() : r.toLowerCase()
|
|
11
|
+
), i = (t) => {
|
|
12
|
+
const e = h(t);
|
|
13
|
+
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
14
|
+
}, u = (...t) => t.filter((e, r, o) => !!e && e.trim() !== "" && o.indexOf(e) === r).join(" ").trim(), f = (t) => {
|
|
15
|
+
for (const e in t)
|
|
16
|
+
if (e.startsWith("aria-") || e === "role" || e === "title")
|
|
17
|
+
return !0;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* @license lucide-react v0.539.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
|
+
var g = {
|
|
26
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
27
|
+
width: 24,
|
|
28
|
+
height: 24,
|
|
29
|
+
viewBox: "0 0 24 24",
|
|
30
|
+
fill: "none",
|
|
31
|
+
stroke: "currentColor",
|
|
32
|
+
strokeWidth: 2,
|
|
33
|
+
strokeLinecap: "round",
|
|
34
|
+
strokeLinejoin: "round"
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* @license lucide-react v0.539.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
|
+
const A = l(
|
|
43
|
+
({
|
|
44
|
+
color: t = "currentColor",
|
|
45
|
+
size: e = 24,
|
|
46
|
+
strokeWidth: r = 2,
|
|
47
|
+
absoluteStrokeWidth: o,
|
|
48
|
+
className: s = "",
|
|
49
|
+
children: a,
|
|
50
|
+
iconNode: p,
|
|
51
|
+
...c
|
|
52
|
+
}, m) => n(
|
|
53
|
+
"svg",
|
|
54
|
+
{
|
|
55
|
+
ref: m,
|
|
56
|
+
...g,
|
|
57
|
+
width: e,
|
|
58
|
+
height: e,
|
|
59
|
+
stroke: t,
|
|
60
|
+
strokeWidth: o ? Number(r) * 24 / Number(e) : r,
|
|
61
|
+
className: u("lucide", s),
|
|
62
|
+
...!a && !f(c) && { "aria-hidden": "true" },
|
|
63
|
+
...c
|
|
64
|
+
},
|
|
65
|
+
[
|
|
66
|
+
...p.map(([C, d]) => n(C, d)),
|
|
67
|
+
...Array.isArray(a) ? a : [a]
|
|
68
|
+
]
|
|
69
|
+
)
|
|
70
|
+
);
|
|
71
|
+
/**
|
|
72
|
+
* @license lucide-react v0.539.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
|
+
const k = (t, e) => {
|
|
78
|
+
const r = l(
|
|
79
|
+
({ className: o, ...s }, a) => n(A, {
|
|
80
|
+
ref: a,
|
|
81
|
+
iconNode: e,
|
|
82
|
+
className: u(
|
|
83
|
+
`lucide-${w(i(t))}`,
|
|
84
|
+
`lucide-${t}`,
|
|
85
|
+
o
|
|
86
|
+
),
|
|
87
|
+
...s
|
|
88
|
+
})
|
|
89
|
+
);
|
|
90
|
+
return r.displayName = i(t), r;
|
|
91
|
+
};
|
|
92
|
+
export {
|
|
93
|
+
k as c
|
|
94
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as i from "react";
|
|
2
|
+
import { P as o } from "./index-BCGvACM9.js";
|
|
3
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
+
var d = Object.freeze({
|
|
5
|
+
// See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
|
|
6
|
+
position: "absolute",
|
|
7
|
+
border: 0,
|
|
8
|
+
width: 1,
|
|
9
|
+
height: 1,
|
|
10
|
+
padding: 0,
|
|
11
|
+
margin: -1,
|
|
12
|
+
overflow: "hidden",
|
|
13
|
+
clip: "rect(0, 0, 0, 0)",
|
|
14
|
+
whiteSpace: "nowrap",
|
|
15
|
+
wordWrap: "normal"
|
|
16
|
+
}), s = "VisuallyHidden", e = i.forwardRef(
|
|
17
|
+
(r, a) => /* @__PURE__ */ t(
|
|
18
|
+
o.span,
|
|
19
|
+
{
|
|
20
|
+
...r,
|
|
21
|
+
ref: a,
|
|
22
|
+
style: { ...d, ...r.style }
|
|
23
|
+
}
|
|
24
|
+
)
|
|
25
|
+
);
|
|
26
|
+
e.displayName = s;
|
|
27
|
+
var n = e;
|
|
28
|
+
export {
|
|
29
|
+
n as R,
|
|
30
|
+
e as V
|
|
31
|
+
};
|
|
@@ -27,10 +27,10 @@ function x(...e) {
|
|
|
27
27
|
// @__NO_SIDE_EFFECTS__
|
|
28
28
|
function C(e) {
|
|
29
29
|
const n = /* @__PURE__ */ b(e), r = i.forwardRef((o, t) => {
|
|
30
|
-
const { children: l, ...a } = o, s = i.Children.toArray(l),
|
|
31
|
-
if (
|
|
32
|
-
const
|
|
33
|
-
return /* @__PURE__ */ f(n, { ...a, ref: t, children: i.isValidElement(
|
|
30
|
+
const { children: l, ...a } = o, s = i.Children.toArray(l), c = s.find(E);
|
|
31
|
+
if (c) {
|
|
32
|
+
const u = c.props.children, S = s.map((p) => p === c ? i.Children.count(u) > 1 ? i.Children.only(null) : i.isValidElement(u) ? u.props.children : null : p);
|
|
33
|
+
return /* @__PURE__ */ f(n, { ...a, ref: t, children: i.isValidElement(u) ? i.cloneElement(u, void 0, S) : null });
|
|
34
34
|
}
|
|
35
35
|
return /* @__PURE__ */ f(n, { ...a, ref: t, children: l });
|
|
36
36
|
});
|
|
@@ -63,7 +63,8 @@ function R(e, n) {
|
|
|
63
63
|
for (const o in n) {
|
|
64
64
|
const t = e[o], l = n[o];
|
|
65
65
|
/^on[A-Z]/.test(o) ? t && l ? r[o] = (...s) => {
|
|
66
|
-
l(...s)
|
|
66
|
+
const c = l(...s);
|
|
67
|
+
return t(...s), c;
|
|
67
68
|
} : t && (r[o] = t) : o === "style" ? r[o] = { ...t, ...l } : o === "className" && (r[o] = [t, l].filter(Boolean).join(" "));
|
|
68
69
|
}
|
|
69
70
|
return { ...e, ...r };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as D from "react";
|
|
2
2
|
import R from "react";
|
|
3
3
|
import { g as b } from "./_commonjsHelpers-C6fGbg64.js";
|
|
4
|
-
import { c as w } from "./index-
|
|
4
|
+
import { c as w } from "./index-B5MIi2tR.js";
|
|
5
5
|
import { jsx as N } from "react/jsx-runtime";
|
|
6
6
|
var v = { exports: {} }, u = {};
|
|
7
7
|
/**
|
|
@@ -401,6 +401,7 @@ var P = [
|
|
|
401
401
|
"nav",
|
|
402
402
|
"ol",
|
|
403
403
|
"p",
|
|
404
|
+
"select",
|
|
404
405
|
"span",
|
|
405
406
|
"svg",
|
|
406
407
|
"ul"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as i, jsxs as w } from "react/jsx-runtime";
|
|
2
2
|
import * as l from "react";
|
|
3
|
-
import { c as M, b as x } from "./index-
|
|
4
|
-
import { u as A, b as I } from "./index-
|
|
5
|
-
import { c as v, R as $, P as L, O as F, W as G, C as W, T as j, d as B, b as D, e as Y } from "./index-
|
|
3
|
+
import { c as M, b as x } from "./index-Cq1I1cG9.js";
|
|
4
|
+
import { u as A, b as I } from "./index-B5MIi2tR.js";
|
|
5
|
+
import { c as v, R as $, P as L, O as F, W as G, C as W, T as j, d as B, b as D, e as Y } from "./index-DLYwlPRZ.js";
|
|
6
6
|
import { Button as k } from "./components/Button/Button.js";
|
|
7
7
|
import { cn as q } from "./utils/index.js";
|
|
8
8
|
var f = "AlertDialog", [H, se] = M(f, [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as f from "react";
|
|
2
|
-
import { u as a } from "./index-
|
|
2
|
+
import { u as a } from "./index-Cq1I1cG9.js";
|
|
3
3
|
function h(r) {
|
|
4
4
|
const e = f.useRef({ value: r, previous: r });
|
|
5
5
|
return f.useMemo(() => (e.current.value !== r && (e.current.previous = e.current.value, e.current.value = r), e.current.previous), [r]);
|