@konstructio/ui 0.0.12-alpha.1 → 0.0.12
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/{index-BVppSRDQ.js → AlertDialogTrigger-D4Tm_9M0.js} +21 -19
- package/dist/{Combination-BQYb0Gw7.js → Combination-Cmu9JRkv.js} +72 -72
- package/dist/{Modal-W2GbkC_F.js → Modal-L73dmnHv.js} +246 -238
- package/dist/{chevron-up-DgLBQCKD.js → chevron-up-CvquEaNg.js} +1 -1
- package/dist/components/AlertDialog/AlertDialog.d.ts +3 -0
- package/dist/components/AlertDialog/AlertDialog.js +23 -20
- package/dist/components/AlertDialog/AlertDialog.types.d.ts +18 -0
- package/dist/components/AlertDialog/AlertDialog.types.js +1 -0
- package/dist/components/AlertDialog/AlertDialog.variants.d.ts +3 -0
- package/dist/components/AlertDialog/components/AlertDialogTrigger.d.ts +3 -0
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +6 -3
- package/dist/components/AlertDialog/components/AlertDialogTrigger.types.d.ts +6 -0
- package/dist/components/AlertDialog/components/AlertDialogTrigger.types.js +1 -0
- package/dist/components/AlertDialog/components/index.d.ts +1 -0
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/AlertDialog/hooks/index.d.ts +1 -0
- package/dist/components/AlertDialog/hooks/useAlertDialog.d.ts +7 -0
- package/dist/components/Autocomplete/Autocomplete.d.ts +3 -0
- package/dist/components/Autocomplete/Autocomplete.js +17 -15
- package/dist/components/Autocomplete/Autocomplete.types.d.ts +18 -0
- package/dist/components/Autocomplete/Autocomplete.types.js +1 -0
- package/dist/components/Autocomplete/Autocomplete.variants.d.ts +8 -0
- package/dist/components/Autocomplete/components/List/List.d.ts +3 -0
- package/dist/components/Autocomplete/components/List/List.js +7 -7
- package/dist/components/Autocomplete/components/List/List.types.d.ts +13 -0
- package/dist/components/Autocomplete/components/List/List.types.js +1 -0
- package/dist/components/Autocomplete/components/List/List.variants.d.ts +16 -0
- package/dist/components/Autocomplete/components/index.d.ts +1 -0
- package/dist/components/Autocomplete/hooks/index.d.ts +2 -0
- package/dist/components/Autocomplete/hooks/useAutocomplete.d.ts +17 -0
- package/dist/components/Autocomplete/hooks/useNavigationList.d.ts +10 -0
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +3 -0
- package/dist/components/Breadcrumb/Breadcrumb.js +69 -68
- package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +11 -0
- package/dist/components/Breadcrumb/Breadcrumb.types.js +1 -0
- package/dist/components/Breadcrumb/Breadcrumb.variants.d.ts +12 -0
- package/dist/components/Breadcrumb/Breadcrumb.variants.js +17 -16
- package/dist/components/Breadcrumb/hooks/useBreadcrumb.d.ts +3 -0
- package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +3 -2
- package/dist/components/Button/Button.d.ts +4 -0
- package/dist/components/Button/Button.js +16 -14
- package/dist/components/Button/Button.types.d.ts +7 -0
- package/dist/components/Button/Button.types.js +1 -0
- package/dist/components/Button/Button.variants.d.ts +7 -0
- package/dist/components/Card/Card.d.ts +4 -0
- package/dist/components/Card/Card.js +12 -10
- package/dist/components/Card/Card.types.d.ts +8 -0
- package/dist/components/Card/Card.types.js +1 -0
- package/dist/components/Card/Card.variants.d.ts +10 -0
- package/dist/components/Checkbox/Checkbox.d.ts +3 -0
- package/dist/components/Checkbox/Checkbox.js +15 -13
- package/dist/components/Checkbox/Checkbox.types.d.ts +14 -0
- package/dist/components/Checkbox/Checkbox.types.js +1 -0
- package/dist/components/Checkbox/Checkbox.variants.d.ts +9 -0
- package/dist/components/Dropdown/Dropdown.d.ts +3 -0
- package/dist/components/Dropdown/Dropdown.js +6 -4
- package/dist/components/Dropdown/Dropdown.types.d.ts +16 -0
- package/dist/components/Dropdown/Dropdown.types.js +1 -0
- package/dist/components/Dropdown/Dropdown.variants.d.ts +3 -0
- package/dist/components/Dropdown/components/EmptyList.d.ts +2 -0
- package/dist/components/Dropdown/components/List/List.d.ts +3 -0
- package/dist/components/Dropdown/components/List/List.js +10 -9
- package/dist/components/Dropdown/components/List/List.types.d.ts +6 -0
- package/dist/components/Dropdown/components/List/List.types.js +1 -0
- package/dist/components/Dropdown/components/List/List.variants.d.ts +3 -0
- package/dist/components/Dropdown/components/ListItem/ListItem.d.ts +3 -0
- package/dist/components/Dropdown/components/ListItem/ListItem.js +21 -20
- package/dist/components/Dropdown/components/ListItem/ListItem.types.d.ts +4 -0
- package/dist/components/Dropdown/components/ListItem/ListItem.types.js +1 -0
- package/dist/components/Dropdown/components/ListItem/ListItem.variants.d.ts +3 -0
- package/dist/components/Dropdown/components/Wrapper.d.ts +3 -0
- package/dist/components/Dropdown/components/Wrapper.js +34 -31
- package/dist/components/Dropdown/components/index.d.ts +3 -0
- package/dist/components/Dropdown/contexts/dropdown.context.d.ts +8 -0
- package/dist/components/Dropdown/contexts/dropdown.hook.d.ts +2 -0
- package/dist/components/Dropdown/contexts/dropdown.provider.d.ts +5 -0
- package/dist/components/Dropdown/contexts/dropdown.provider.js +4 -4
- package/dist/components/Dropdown/contexts/index.d.ts +2 -0
- package/dist/components/Dropdown/hooks/useDropdown.d.ts +11 -0
- package/dist/components/Dropdown/hooks/useDropdown.js +14 -12
- package/dist/components/Dropdown/hooks/useNavigationList.d.ts +8 -0
- package/dist/components/Dropdown/hooks/useNavigationList.js +10 -8
- package/dist/components/Input/Input.d.ts +3 -0
- package/dist/components/Input/Input.js +14 -12
- package/dist/components/Input/Input.types.d.ts +9 -0
- package/dist/components/Input/Input.types.js +1 -0
- package/dist/components/Input/Input.variants.d.ts +4 -0
- package/dist/components/Modal/Modal.d.ts +8 -0
- package/dist/components/Modal/Modal.js +3 -3
- package/dist/components/Modal/Modal.types.d.ts +12 -0
- package/dist/components/Modal/Modal.types.js +1 -0
- package/dist/components/Modal/components/Body/Body.d.ts +3 -0
- package/dist/components/Modal/components/Body/Body.types.d.ts +5 -0
- package/dist/components/Modal/components/Body/Body.types.js +1 -0
- package/dist/components/Modal/components/Footer/Footer.d.ts +3 -0
- package/dist/components/Modal/components/Footer/Footer.types.d.ts +5 -0
- package/dist/components/Modal/components/Footer/Footer.types.js +1 -0
- package/dist/components/Modal/components/Header/Header.d.ts +3 -0
- package/dist/components/Modal/components/Header/Header.types.d.ts +5 -0
- package/dist/components/Modal/components/Header/Header.types.js +1 -0
- package/dist/components/Modal/components/Wrapper/Wrapper.d.ts +3 -0
- package/dist/components/Modal/components/Wrapper/Wrapper.js +9 -7
- package/dist/components/Modal/components/Wrapper/Wrapper.types.d.ts +7 -0
- package/dist/components/Modal/components/Wrapper/Wrapper.types.js +1 -0
- package/dist/components/Modal/components/Wrapper/Wrapper.variants.d.ts +6 -0
- package/dist/components/Modal/components/index.d.ts +4 -0
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/Modal/contexts/Modal.context.d.ts +2 -0
- package/dist/components/Modal/contexts/Modal.provider.d.ts +4 -0
- package/dist/components/Modal/contexts/Modal.provider.js +4 -4
- package/dist/components/Modal/contexts/Modal.types.d.ts +9 -0
- package/dist/components/Modal/contexts/Modal.types.js +1 -0
- package/dist/components/Modal/contexts/index.d.ts +1 -0
- package/dist/components/Modal/hooks/index.d.ts +1 -0
- package/dist/components/Modal/hooks/useModal.d.ts +9 -0
- package/dist/components/NumberInput/NumberInput.d.ts +3 -0
- package/dist/components/NumberInput/NumberInput.js +11 -9
- package/dist/components/NumberInput/NumberInput.types.d.ts +11 -0
- package/dist/components/NumberInput/NumberInput.types.js +1 -0
- package/dist/components/NumberInput/NumberInput.variants.d.ts +11 -0
- package/dist/components/ProgressBar/ProgressBar.d.ts +3 -0
- package/dist/components/ProgressBar/ProgressBar.js +16 -13
- package/dist/components/ProgressBar/ProgressBar.types.d.ts +8 -0
- package/dist/components/ProgressBar/ProgressBar.types.js +1 -0
- package/dist/components/ProgressBar/ProgressBar.variants.d.ts +7 -0
- package/dist/components/Radio/Radio.d.ts +3 -0
- package/dist/components/Radio/Radio.js +37 -55
- package/dist/components/Radio/Radio.types.d.ts +12 -0
- package/dist/components/Radio/Radio.types.js +1 -0
- package/dist/components/Radio/Radio.variants.d.ts +3 -0
- package/dist/components/Radio/Radio.variants.js +16 -69
- package/dist/components/RadioGroup/RadioGroup.d.ts +3 -0
- package/dist/components/RadioGroup/RadioGroup.js +27 -37
- package/dist/components/RadioGroup/RadioGroup.types.d.ts +12 -0
- package/dist/components/RadioGroup/RadioGroup.types.js +1 -0
- package/dist/components/Range/Range.d.ts +3 -0
- package/dist/components/Range/Range.js +22 -20
- package/dist/components/Range/Range.types.d.ts +13 -0
- package/dist/components/Range/Range.types.js +1 -0
- package/dist/components/Range/Range.variants.d.ts +14 -0
- package/dist/components/Sidebar/Sidebar.d.ts +5 -0
- package/dist/components/Sidebar/Sidebar.js +22 -20
- package/dist/components/Sidebar/Sidebar.types.d.ts +18 -0
- package/dist/components/Sidebar/Sidebar.types.js +1 -0
- package/dist/components/Sidebar/Sidebar.variants.d.ts +6 -0
- package/dist/components/Sidebar/components/Footer/Footer.d.ts +3 -0
- package/dist/components/Sidebar/components/Footer/Footer.js +12 -9
- package/dist/components/Sidebar/components/Footer/Footer.types.d.ts +6 -0
- package/dist/components/Sidebar/components/Footer/Footer.types.js +1 -0
- package/dist/components/Sidebar/components/Footer/Footer.variants.d.ts +3 -0
- package/dist/components/Sidebar/components/Logo/Logo.d.ts +3 -0
- package/dist/components/Sidebar/components/Logo/Logo.js +12 -9
- package/dist/components/Sidebar/components/Logo/Logo.types.d.ts +6 -0
- package/dist/components/Sidebar/components/Logo/Logo.types.js +1 -0
- package/dist/components/Sidebar/components/Logo/Logo.variants.d.ts +3 -0
- package/dist/components/Sidebar/components/Navigation/Navigation.d.ts +4 -0
- package/dist/components/Sidebar/components/Navigation/Navigation.js +15 -12
- package/dist/components/Sidebar/components/Navigation/Navigation.types.d.ts +16 -0
- package/dist/components/Sidebar/components/Navigation/Navigation.types.js +1 -0
- package/dist/components/Sidebar/components/Navigation/Navigation.variants.d.ts +3 -0
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.d.ts +3 -0
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.js +26 -24
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.types.d.ts +7 -0
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.types.js +1 -0
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.variants.d.ts +3 -0
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.d.ts +3 -0
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +20 -17
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.types.d.ts +17 -0
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.types.js +1 -0
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.d.ts +4 -0
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.d.ts +3 -0
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.js +11 -8
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.types.d.ts +5 -0
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.types.js +1 -0
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.variants.d.ts +3 -0
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.d.ts +3 -0
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.js +13 -10
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.types.d.ts +8 -0
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.types.js +1 -0
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.variants.d.ts +3 -0
- package/dist/components/Sidebar/components/Wrapper/Wrapper.d.ts +3 -0
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +27 -29
- package/dist/components/Sidebar/components/index.d.ts +15 -0
- package/dist/components/Slider/Slider.d.ts +3 -0
- package/dist/components/Slider/Slider.js +20 -18
- package/dist/components/Slider/Slider.types.d.ts +13 -0
- package/dist/components/Slider/Slider.types.js +1 -0
- package/dist/components/Slider/Slider.variants.d.ts +11 -0
- package/dist/components/Switch/Switch.d.ts +3 -0
- package/dist/components/Switch/Switch.js +21 -19
- package/dist/components/Switch/Switch.types.d.ts +10 -0
- package/dist/components/Switch/Switch.types.js +1 -0
- package/dist/components/Switch/Switch.variants.d.ts +6 -0
- package/dist/components/Tag/Tag.d.ts +3 -0
- package/dist/components/Tag/Tag.types.d.ts +4 -0
- package/dist/components/Tag/Tag.types.js +1 -0
- package/dist/components/Tag/Tag.variants.d.ts +3 -0
- package/dist/components/TagSelect/TagSelect.d.ts +3 -0
- package/dist/components/TagSelect/TagSelect.js +21 -19
- package/dist/components/TagSelect/TagSelect.types.d.ts +9 -0
- package/dist/components/TagSelect/TagSelect.types.js +1 -0
- package/dist/components/TagSelect/TagSelect.variants.d.ts +9 -0
- package/dist/components/TagSelect/hooks/useTagSelect.d.ts +9 -0
- package/dist/components/TextArea/TextArea.d.ts +3 -0
- package/dist/components/TextArea/TextArea.js +19 -17
- package/dist/components/TextArea/TextArea.types.d.ts +10 -0
- package/dist/components/TextArea/TextArea.types.js +1 -0
- package/dist/components/TextArea/TextArea.variants.d.ts +3 -0
- package/dist/components/Toast/Toast.d.ts +3 -0
- package/dist/components/Toast/Toast.js +54 -52
- package/dist/components/Toast/Toast.types.d.ts +12 -0
- package/dist/components/Toast/Toast.types.js +1 -0
- package/dist/components/Toast/Toast.variants.d.ts +9 -0
- package/dist/components/Tooltip/Tooltip.d.ts +3 -0
- package/dist/components/Tooltip/Tooltip.js +12 -10
- package/dist/components/Tooltip/Tooltip.types.d.ts +8 -0
- package/dist/components/Tooltip/Tooltip.types.js +1 -0
- package/dist/components/Tooltip/Tooltip.variants.d.ts +8 -0
- package/dist/components/Tooltip/hooks/useTooltip.d.ts +4 -0
- package/dist/components/index.d.ts +21 -0
- package/dist/components/index.js +44 -50
- package/dist/contexts/index.d.ts +3 -0
- package/dist/contexts/theme.context.d.ts +6 -0
- package/dist/contexts/theme.hook.d.ts +7 -0
- package/dist/contexts/theme.provider.d.ts +6 -0
- package/dist/contexts/theme.provider.js +14 -84
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useToggle.d.ts +1 -0
- package/dist/{index-1GLoikpT.js → index-BaNV0qac.js} +6585 -6555
- package/dist/{index-CoqDsznq.js → index-BedjZUuB.js} +1 -1
- package/dist/{index-KEdwcThH.js → index-BtibbG81.js} +1 -1
- package/dist/{index-C5psggHV.js → index-D68N8v8R.js} +17 -17
- package/dist/{index-CJsYodgi.js → index-z-AJyzdv.js} +10 -10
- package/dist/index.d.ts +4 -522
- package/dist/index.js +53 -59
- package/dist/js.cookie-OLEfuq_g.js +74 -0
- package/dist/package.json +1 -1
- package/dist/plugins/index.d.ts +1 -0
- package/dist/plugins/konstruct.d.ts +4 -0
- package/dist/plugins/konstruct.js +3 -3
- package/dist/plugins/utils/colors.d.ts +328 -0
- package/dist/styles.css +1 -1
- package/dist/styles.d.ts +0 -0
- package/dist/styles.js +1 -1
- package/dist/useBreadcrumb-DxYsZvj_.js +1398 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/{x-DU-Zw-L_.js → x-CRBgmX1Q.js} +1 -1
- package/package.json +1 -1
- package/dist/components/Breadcrumb/components/Item/Item.js +0 -61
- package/dist/components/Breadcrumb/components/Item/Item.variants.js +0 -90
- package/dist/components/Breadcrumb/components/index.js +0 -4
- package/dist/components/RadioCard/RadioCard.js +0 -41
- package/dist/components/RadioCard/RadioCard.variants.js +0 -19
- package/dist/components/RadioCardGroup/RadioCardGroup.js +0 -47
- package/dist/components/RadioCardGroup/RadioCardGroup.variants.js +0 -21
- package/dist/components/RadioGroup/RadioGroup.variants.js +0 -21
- package/dist/useBreadcrumb-CojbXFVD.js +0 -1279
|
@@ -1,33 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import "
|
|
5
|
-
import "
|
|
6
|
-
import "../NavigationSeparator/NavigationSeparator.js";
|
|
7
|
-
import "../NavigationTitle/NavigationTitle.js";
|
|
8
|
-
import { jsxs as T, jsx as V } from "react/jsx-runtime";
|
|
9
|
-
import { useRef as d, useCallback as l, useMemo as s, Children as i, isValidElement as v, useEffect as b } from "react";
|
|
1
|
+
import { jsxs as x, jsx as C } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as d, useCallback as l, useMemo as s, Children as a, isValidElement as v, useEffect as D } from "react";
|
|
3
|
+
import "../../../../contexts/theme.context.js";
|
|
4
|
+
import { useTheme as T } from "../../../../contexts/theme.hook.js";
|
|
5
|
+
import "../../../../js.cookie-OLEfuq_g.js";
|
|
10
6
|
import { cn as E } from "../../../../utils/index.js";
|
|
11
|
-
import { wrapperSiderbarVariants as
|
|
12
|
-
import {
|
|
13
|
-
|
|
7
|
+
import { wrapperSiderbarVariants as V, dragVariants as b } from "../../Sidebar.variants.js";
|
|
8
|
+
import { Footer as j } from "../Footer/Footer.js";
|
|
9
|
+
import { Logo as z } from "../Logo/Logo.js";
|
|
10
|
+
import { Navigation as k } from "../Navigation/Navigation.js";
|
|
11
|
+
const I = ({
|
|
14
12
|
canResize: M = !0,
|
|
15
13
|
children: y,
|
|
16
|
-
maxWith:
|
|
14
|
+
maxWith: i = 300,
|
|
17
15
|
minWith: m = 240,
|
|
18
16
|
theme: c,
|
|
19
17
|
wrapperClassName: w
|
|
20
18
|
}) => {
|
|
21
|
-
const r = d(null), u = d(null), f = d(!1), { theme: g, setTheme: L } =
|
|
19
|
+
const r = d(null), u = d(null), f = d(!1), { theme: g, setTheme: L } = T(), n = l(
|
|
22
20
|
(e) => {
|
|
23
21
|
if (!f.current) {
|
|
24
22
|
r.current && (r.current.style.opacity = "0");
|
|
25
23
|
return;
|
|
26
24
|
}
|
|
27
25
|
let o = e.clientX;
|
|
28
|
-
o < m && (o = m), o >
|
|
26
|
+
o < m && (o = m), o > i && (o = i), u.current && r.current && (u.current.style.width = `${o}px`, r.current.classList.add("opacity-100"));
|
|
29
27
|
},
|
|
30
|
-
[
|
|
28
|
+
[i, m]
|
|
31
29
|
), p = l(() => {
|
|
32
30
|
f.current = !1, r.current && r.current.classList.remove("opacity-100"), document.removeEventListener("mousemove", n), document.removeEventListener("mouseup", p);
|
|
33
31
|
}, [n]), R = l(
|
|
@@ -36,32 +34,32 @@ const K = ({
|
|
|
36
34
|
},
|
|
37
35
|
[n, p]
|
|
38
36
|
), t = s(
|
|
39
|
-
() =>
|
|
37
|
+
() => a.toArray(y),
|
|
40
38
|
[y]
|
|
41
39
|
), h = s(
|
|
42
|
-
() =>
|
|
43
|
-
(e) => v(e) && e.type ===
|
|
40
|
+
() => a.toArray(t).find(
|
|
41
|
+
(e) => v(e) && e.type === z
|
|
44
42
|
),
|
|
45
43
|
[t]
|
|
46
44
|
), A = s(
|
|
47
|
-
() =>
|
|
48
|
-
(e) => v(e) && e.type ===
|
|
45
|
+
() => a.toArray(t).find(
|
|
46
|
+
(e) => v(e) && e.type === k
|
|
49
47
|
),
|
|
50
48
|
[t]
|
|
51
49
|
), N = s(
|
|
52
|
-
() =>
|
|
53
|
-
(e) => v(e) && e.type ===
|
|
50
|
+
() => a.toArray(t).find(
|
|
51
|
+
(e) => v(e) && e.type === j
|
|
54
52
|
),
|
|
55
53
|
[t]
|
|
56
54
|
);
|
|
57
|
-
return
|
|
55
|
+
return D(() => {
|
|
58
56
|
c && L(c);
|
|
59
|
-
}, [L, c]), /* @__PURE__ */
|
|
57
|
+
}, [L, c]), /* @__PURE__ */ x(
|
|
60
58
|
"aside",
|
|
61
59
|
{
|
|
62
60
|
ref: u,
|
|
63
61
|
className: E(
|
|
64
|
-
|
|
62
|
+
V({
|
|
65
63
|
className: w,
|
|
66
64
|
theme: g
|
|
67
65
|
})
|
|
@@ -70,11 +68,11 @@ const K = ({
|
|
|
70
68
|
h,
|
|
71
69
|
A,
|
|
72
70
|
N,
|
|
73
|
-
M && /* @__PURE__ */
|
|
71
|
+
M && /* @__PURE__ */ C(
|
|
74
72
|
"div",
|
|
75
73
|
{
|
|
76
74
|
ref: r,
|
|
77
|
-
className: E(
|
|
75
|
+
className: E(b({ theme: g })),
|
|
78
76
|
onMouseDown: R
|
|
79
77
|
}
|
|
80
78
|
)
|
|
@@ -83,5 +81,5 @@ const K = ({
|
|
|
83
81
|
);
|
|
84
82
|
};
|
|
85
83
|
export {
|
|
86
|
-
|
|
84
|
+
I as Wrapper
|
|
87
85
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export * from './Footer/Footer';
|
|
2
|
+
export type * from './Footer/Footer.types';
|
|
3
|
+
export * from './Logo/Logo';
|
|
4
|
+
export type * from './Logo/Logo.types';
|
|
5
|
+
export * from './Navigation/Navigation';
|
|
6
|
+
export type * from './Navigation/Navigation.types';
|
|
7
|
+
export * from './NavigationGroup/NavigationGroup';
|
|
8
|
+
export type * from './NavigationGroup/NavigationGroup.types';
|
|
9
|
+
export * from './NavigationOption/NavigationOption';
|
|
10
|
+
export type * from './NavigationOption/NavigationOption.types';
|
|
11
|
+
export * from './NavigationSeparator/NavigationSeparator';
|
|
12
|
+
export type * from './NavigationSeparator/NavigationSeparator.types';
|
|
13
|
+
export * from './NavigationTitle/NavigationTitle';
|
|
14
|
+
export type * from './NavigationTitle/NavigationTitle.types';
|
|
15
|
+
export * from './Wrapper/Wrapper';
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { jsxs as l, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { R as v, T,
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
import { R as v, T, b as V } from "../../index-z-AJyzdv.js";
|
|
3
|
+
import { forwardRef as b, useRef as R, useState as g, useImperativeHandle as j, useEffect as k, useCallback as w } from "react";
|
|
4
|
+
import "../../contexts/theme.context.js";
|
|
5
|
+
import { useTheme as y } from "../../contexts/theme.hook.js";
|
|
6
|
+
import "../../js.cookie-OLEfuq_g.js";
|
|
7
|
+
import { cn as a } from "../../utils/index.js";
|
|
8
|
+
import { sliderVariants as C, trackVariants as S, thumbVariants as E } from "./Slider.variants.js";
|
|
9
|
+
const J = b(
|
|
10
|
+
({ label: s, defaultValue: i = [0], name: c, theme: o, size: m, showValue: u, ...f }, h) => {
|
|
11
|
+
const e = R(null), [r, d] = g(i), { theme: p } = y(), n = o ?? p;
|
|
10
12
|
j(h, () => e.current, [e]), k(() => {
|
|
11
|
-
e.current && (e.current.value =
|
|
12
|
-
}, [
|
|
13
|
+
e.current && (e.current.value = r.toString());
|
|
14
|
+
}, [r]);
|
|
13
15
|
const x = w(
|
|
14
16
|
(N) => d(N),
|
|
15
17
|
[]
|
|
@@ -18,27 +20,27 @@ const F = R(
|
|
|
18
20
|
/* @__PURE__ */ l(
|
|
19
21
|
"div",
|
|
20
22
|
{
|
|
21
|
-
className:
|
|
23
|
+
className: a(
|
|
22
24
|
"flex items-center",
|
|
23
25
|
s ? "justify-between" : "justify-end"
|
|
24
26
|
),
|
|
25
27
|
children: [
|
|
26
28
|
s ? /* @__PURE__ */ t("label", { children: s }) : null,
|
|
27
|
-
u ? /* @__PURE__ */ t("span", { className: "text-xs", children:
|
|
29
|
+
u ? /* @__PURE__ */ t("span", { className: "text-xs", children: r }) : null
|
|
28
30
|
]
|
|
29
31
|
}
|
|
30
32
|
),
|
|
31
|
-
/* @__PURE__ */ t("input", { ref: e, name:
|
|
33
|
+
/* @__PURE__ */ t("input", { ref: e, name: c, className: "hidden", type: "number" }),
|
|
32
34
|
/* @__PURE__ */ l(
|
|
33
35
|
v,
|
|
34
36
|
{
|
|
35
|
-
value:
|
|
36
|
-
className:
|
|
37
|
+
value: r,
|
|
38
|
+
className: a(C({ theme: n })),
|
|
37
39
|
onValueChange: x,
|
|
38
40
|
...f,
|
|
39
41
|
children: [
|
|
40
|
-
/* @__PURE__ */ t(T, { className:
|
|
41
|
-
/* @__PURE__ */ t(V, { className:
|
|
42
|
+
/* @__PURE__ */ t(T, { className: a(S({ theme: n, size: m })) }),
|
|
43
|
+
/* @__PURE__ */ t(V, { className: a(E({ theme: n, size: m })) })
|
|
42
44
|
]
|
|
43
45
|
}
|
|
44
46
|
)
|
|
@@ -46,5 +48,5 @@ const F = R(
|
|
|
46
48
|
}
|
|
47
49
|
);
|
|
48
50
|
export {
|
|
49
|
-
|
|
51
|
+
J as Slider
|
|
50
52
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { SliderProps as SliderPropsBase } from '@radix-ui/react-slider';
|
|
3
|
+
import { sliderVariants } from './Slider.variants';
|
|
4
|
+
export interface SliderProps extends VariantProps<typeof sliderVariants> {
|
|
5
|
+
className?: string;
|
|
6
|
+
defaultValue?: SliderPropsBase['defaultValue'];
|
|
7
|
+
label?: string;
|
|
8
|
+
max?: SliderPropsBase['max'];
|
|
9
|
+
min?: SliderPropsBase['min'];
|
|
10
|
+
name?: string;
|
|
11
|
+
showValue?: boolean;
|
|
12
|
+
size?: 'sm' | 'md' | 'lg';
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const sliderVariants: (props?: ({
|
|
2
|
+
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
3
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
4
|
+
export declare const trackVariants: (props?: ({
|
|
5
|
+
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
6
|
+
size?: "sm" | "lg" | "md" | null | undefined;
|
|
7
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
|
+
export declare const thumbVariants: (props?: ({
|
|
9
|
+
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
10
|
+
size?: "sm" | "lg" | "md" | null | undefined;
|
|
11
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -1,29 +1,31 @@
|
|
|
1
1
|
import { jsxs as P, jsx as u } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
2
|
+
import * as h from "react";
|
|
3
3
|
import { forwardRef as _, useState as H, useRef as A, useId as M, useImperativeHandle as $, useEffect as j, useCallback as z } from "react";
|
|
4
4
|
import { c as B, a as q, d as F } from "../../index-8vgf-x5i.js";
|
|
5
5
|
import { u as O } from "../../index-DoOsnuB6.js";
|
|
6
6
|
import { u as V, a as D } from "../../index-BxeV34ij.js";
|
|
7
|
-
import { P as g } from "../../index-
|
|
7
|
+
import { P as g } from "../../index-BaNV0qac.js";
|
|
8
|
+
import "../../contexts/theme.context.js";
|
|
9
|
+
import { useTheme as L } from "../../contexts/theme.hook.js";
|
|
10
|
+
import "../../js.cookie-OLEfuq_g.js";
|
|
8
11
|
import { cn as x } from "../../utils/index.js";
|
|
9
|
-
import { switchVariants as
|
|
10
|
-
|
|
11
|
-
var k = "Switch", [X, ie] = B(k), [G, J] = X(k), R = p.forwardRef(
|
|
12
|
+
import { switchVariants as U, thumbVariants as W } from "./Switch.variants.js";
|
|
13
|
+
var k = "Switch", [X, de] = B(k), [G, J] = X(k), R = h.forwardRef(
|
|
12
14
|
(e, s) => {
|
|
13
15
|
const {
|
|
14
16
|
__scopeSwitch: t,
|
|
15
17
|
name: c,
|
|
16
18
|
checked: n,
|
|
17
|
-
defaultChecked:
|
|
19
|
+
defaultChecked: p,
|
|
18
20
|
required: o,
|
|
19
21
|
disabled: a,
|
|
20
22
|
value: i = "on",
|
|
21
23
|
onCheckedChange: m,
|
|
22
24
|
form: r,
|
|
23
25
|
...d
|
|
24
|
-
} = e, [l, b] =
|
|
26
|
+
} = e, [l, b] = h.useState(null), v = O(s, (C) => b(C)), f = h.useRef(!1), w = l ? r || !!l.closest("form") : !0, [S = !1, T] = q({
|
|
25
27
|
prop: n,
|
|
26
|
-
defaultProp:
|
|
28
|
+
defaultProp: p,
|
|
27
29
|
onChange: m
|
|
28
30
|
});
|
|
29
31
|
return /* @__PURE__ */ P(G, { scope: t, checked: S, disabled: a, children: [
|
|
@@ -63,7 +65,7 @@ var k = "Switch", [X, ie] = B(k), [G, J] = X(k), R = p.forwardRef(
|
|
|
63
65
|
}
|
|
64
66
|
);
|
|
65
67
|
R.displayName = k;
|
|
66
|
-
var y = "SwitchThumb", N =
|
|
68
|
+
var y = "SwitchThumb", N = h.forwardRef(
|
|
67
69
|
(e, s) => {
|
|
68
70
|
const { __scopeSwitch: t, ...c } = e, n = J(y, t);
|
|
69
71
|
return /* @__PURE__ */ u(
|
|
@@ -79,9 +81,9 @@ var y = "SwitchThumb", N = p.forwardRef(
|
|
|
79
81
|
);
|
|
80
82
|
N.displayName = y;
|
|
81
83
|
var K = (e) => {
|
|
82
|
-
const { control: s, checked: t, bubbles: c = !0, ...n } = e,
|
|
83
|
-
return
|
|
84
|
-
const i =
|
|
84
|
+
const { control: s, checked: t, bubbles: c = !0, ...n } = e, p = h.useRef(null), o = V(t), a = D(s);
|
|
85
|
+
return h.useEffect(() => {
|
|
86
|
+
const i = p.current, m = window.HTMLInputElement.prototype, d = Object.getOwnPropertyDescriptor(m, "checked").set;
|
|
85
87
|
if (o !== t && d) {
|
|
86
88
|
const l = new Event("click", { bubbles: c });
|
|
87
89
|
d.call(i, t), i.dispatchEvent(l);
|
|
@@ -94,7 +96,7 @@ var K = (e) => {
|
|
|
94
96
|
defaultChecked: t,
|
|
95
97
|
...n,
|
|
96
98
|
tabIndex: -1,
|
|
97
|
-
ref:
|
|
99
|
+
ref: p,
|
|
98
100
|
style: {
|
|
99
101
|
...e.style,
|
|
100
102
|
...a,
|
|
@@ -110,17 +112,17 @@ function E(e) {
|
|
|
110
112
|
return e ? "checked" : "unchecked";
|
|
111
113
|
}
|
|
112
114
|
var Q = R, Y = N;
|
|
113
|
-
const
|
|
115
|
+
const le = _(
|
|
114
116
|
({
|
|
115
117
|
name: e,
|
|
116
118
|
defaultChecked: s,
|
|
117
119
|
alignment: t = "horizontal",
|
|
118
120
|
theme: c,
|
|
119
121
|
thumbClassName: n,
|
|
120
|
-
className:
|
|
122
|
+
className: p,
|
|
121
123
|
label: o
|
|
122
124
|
}, a) => {
|
|
123
|
-
const [i, m] = H(s ?? !1), r = A(null), d = M(), { theme: l } =
|
|
125
|
+
const [i, m] = H(s ?? !1), r = A(null), d = M(), { theme: l } = L(), b = c ?? l, v = e ? `${d}-${e}` : d;
|
|
124
126
|
$(a, () => r.current, [r]), j(() => {
|
|
125
127
|
r.current && (r.current.value = `${i}`);
|
|
126
128
|
}, [i]);
|
|
@@ -151,12 +153,12 @@ const ue = _(
|
|
|
151
153
|
id: v,
|
|
152
154
|
defaultChecked: s,
|
|
153
155
|
onCheckedChange: f,
|
|
154
|
-
className: x(
|
|
156
|
+
className: x(U({ theme: b, className: p })),
|
|
155
157
|
"aria-label": o,
|
|
156
158
|
children: /* @__PURE__ */ u(
|
|
157
159
|
Y,
|
|
158
160
|
{
|
|
159
|
-
className:
|
|
161
|
+
className: W({
|
|
160
162
|
theme: b,
|
|
161
163
|
className: n
|
|
162
164
|
})
|
|
@@ -180,5 +182,5 @@ const ue = _(
|
|
|
180
182
|
}
|
|
181
183
|
);
|
|
182
184
|
export {
|
|
183
|
-
|
|
185
|
+
le as Switch
|
|
184
186
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { switchVariants } from './Switch.variants';
|
|
3
|
+
export interface SwitchProps extends VariantProps<typeof switchVariants> {
|
|
4
|
+
alignment?: 'horizontal' | 'vertical';
|
|
5
|
+
className?: string;
|
|
6
|
+
defaultChecked?: boolean;
|
|
7
|
+
label?: string;
|
|
8
|
+
name?: string;
|
|
9
|
+
thumbClassName?: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const switchVariants: (props?: ({
|
|
2
|
+
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
3
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
4
|
+
export declare const thumbVariants: (props?: ({
|
|
5
|
+
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const tagVariants: (props?: ({
|
|
2
|
+
color?: "default" | "gray" | "cyan" | "gold" | "green" | "light blue" | "lime" | "pink" | "purple" | "emerald" | "fuscia" | "indigo" | "light-orange" | "dark-sky-blue" | "mistery" | null | undefined;
|
|
3
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
import { jsxs as u, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as g, useId as w, useRef as C, useImperativeHandle as T, useEffect as R } from "react";
|
|
3
|
+
import "../../contexts/theme.context.js";
|
|
4
|
+
import { useTheme as S } from "../../contexts/theme.hook.js";
|
|
5
|
+
import "../../js.cookie-OLEfuq_g.js";
|
|
3
6
|
import { cn as r } from "../../utils/index.js";
|
|
4
7
|
import { Tag as d } from "../Tag/Tag.js";
|
|
5
|
-
import { useTagSelect as
|
|
6
|
-
import { tagSelectVariants as
|
|
7
|
-
import { C as
|
|
8
|
-
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
isOpen: n,
|
|
8
|
+
import { useTagSelect as k } from "./hooks/useTagSelect.js";
|
|
9
|
+
import { tagSelectVariants as I, tagListVariants as V, tagItemVariants as j } from "./TagSelect.variants.js";
|
|
10
|
+
import { C as y } from "../../chevron-up-CvquEaNg.js";
|
|
11
|
+
const B = g(({ label: s, name: l, options: f, placeholder: h = "Select a value...", theme: o }, x) => {
|
|
12
|
+
const c = w(), { theme: a } = S(), t = C(null), {
|
|
13
|
+
isOpen: i,
|
|
12
14
|
selectedTag: m,
|
|
13
15
|
value: p,
|
|
14
16
|
wrapperRef: b,
|
|
15
17
|
handleClickTag: N,
|
|
16
18
|
handleOpenDropdown: v
|
|
17
|
-
} =
|
|
19
|
+
} = k();
|
|
18
20
|
return T(x, () => t.current, [t]), R(() => {
|
|
19
21
|
t.current && (t.current.value = p);
|
|
20
22
|
}, [p]), /* @__PURE__ */ u("div", { ref: b, className: "flex flex-col w-full relative", children: [
|
|
@@ -23,18 +25,18 @@ const z = g(({ label: s, name: l, options: f, placeholder: h = "Select a value..
|
|
|
23
25
|
"div",
|
|
24
26
|
{
|
|
25
27
|
id: l ?? c,
|
|
26
|
-
className: r(
|
|
28
|
+
className: r(I({ theme: o ?? a })),
|
|
27
29
|
role: "combobox",
|
|
28
30
|
onClick: v,
|
|
29
|
-
"aria-expanded":
|
|
31
|
+
"aria-expanded": i,
|
|
30
32
|
children: [
|
|
31
33
|
m ? /* @__PURE__ */ e(d, { ...m }) : /* @__PURE__ */ e("span", { className: "text-base text-inherit", children: h }),
|
|
32
34
|
/* @__PURE__ */ e(
|
|
33
|
-
|
|
35
|
+
y,
|
|
34
36
|
{
|
|
35
37
|
className: r(
|
|
36
38
|
"w-4 h-4 text-inherit transition-all duration-50",
|
|
37
|
-
|
|
39
|
+
i ? "rotate-0" : "rotate-180"
|
|
38
40
|
)
|
|
39
41
|
}
|
|
40
42
|
)
|
|
@@ -42,15 +44,15 @@ const z = g(({ label: s, name: l, options: f, placeholder: h = "Select a value..
|
|
|
42
44
|
}
|
|
43
45
|
),
|
|
44
46
|
/* @__PURE__ */ e("input", { ref: t, type: "text", name: l, className: "hidden" }),
|
|
45
|
-
|
|
47
|
+
i ? /* @__PURE__ */ e(
|
|
46
48
|
"ul",
|
|
47
49
|
{
|
|
48
50
|
role: "listbox",
|
|
49
|
-
className: r(
|
|
50
|
-
children: f.map((
|
|
51
|
+
className: r(V({ theme: o ?? a })),
|
|
52
|
+
children: f.map((n) => /* @__PURE__ */ e(
|
|
51
53
|
"li",
|
|
52
54
|
{
|
|
53
|
-
className: r(
|
|
55
|
+
className: r(j({ theme: o ?? a })),
|
|
54
56
|
role: "option",
|
|
55
57
|
children: /* @__PURE__ */ e(
|
|
56
58
|
"button",
|
|
@@ -58,8 +60,8 @@ const z = g(({ label: s, name: l, options: f, placeholder: h = "Select a value..
|
|
|
58
60
|
type: "button",
|
|
59
61
|
role: "button",
|
|
60
62
|
className: "m-0 p-0 w-full",
|
|
61
|
-
onClick: () => N(
|
|
62
|
-
children: /* @__PURE__ */ e(d, { label:
|
|
63
|
+
onClick: () => N(n),
|
|
64
|
+
children: /* @__PURE__ */ e(d, { label: n.label, color: n.color })
|
|
63
65
|
}
|
|
64
66
|
)
|
|
65
67
|
}
|
|
@@ -69,5 +71,5 @@ const z = g(({ label: s, name: l, options: f, placeholder: h = "Select a value..
|
|
|
69
71
|
] });
|
|
70
72
|
});
|
|
71
73
|
export {
|
|
72
|
-
|
|
74
|
+
B as TagSelect
|
|
73
75
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { TagProps } from '../Tag/Tag.types';
|
|
3
|
+
import { tagSelectVariants } from './TagSelect.variants';
|
|
4
|
+
export interface TagSelectProps extends VariantProps<typeof tagSelectVariants> {
|
|
5
|
+
label?: string;
|
|
6
|
+
options: TagProps[];
|
|
7
|
+
name?: string;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const tagSelectVariants: (props?: ({
|
|
2
|
+
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
3
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
4
|
+
export declare const tagListVariants: (props?: ({
|
|
5
|
+
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
+
export declare const tagItemVariants: (props?: ({
|
|
8
|
+
theme?: "kubefirst" | "colony" | "civo" | null | undefined;
|
|
9
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TagProps } from '../../Tag/Tag.types';
|
|
2
|
+
export declare const useTagSelect: () => {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
selectedTag: TagProps | null;
|
|
5
|
+
value: string;
|
|
6
|
+
wrapperRef: import('react').RefObject<HTMLDivElement | null>;
|
|
7
|
+
handleClickTag: (tag: TagProps) => void;
|
|
8
|
+
handleOpenDropdown: () => void;
|
|
9
|
+
};
|
|
@@ -1,33 +1,35 @@
|
|
|
1
|
-
import { jsxs as h, jsx as
|
|
1
|
+
import { jsxs as h, jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as v, useId as N, useState as T, useCallback as j } from "react";
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
import "../../contexts/theme.context.js";
|
|
4
|
+
import { useTheme as A } from "../../contexts/theme.hook.js";
|
|
5
|
+
import "../../js.cookie-OLEfuq_g.js";
|
|
6
|
+
import { cn as I } from "../../utils/index.js";
|
|
7
|
+
import { textAreaVariants as V } from "./TextArea.variants.js";
|
|
8
|
+
const q = v(
|
|
9
|
+
({ initialValue: o, label: t, name: a, placeholder: l, rows: c = 3, theme: i, onChange: e }, p) => {
|
|
10
|
+
const r = N(), { theme: u } = A(), m = a ? `${r}-name` : r, [d, f] = T(o ?? ""), n = j(
|
|
11
|
+
(x) => {
|
|
12
|
+
f(x.target.value), e == null || e();
|
|
11
13
|
},
|
|
12
14
|
[e]
|
|
13
15
|
);
|
|
14
16
|
return /* @__PURE__ */ h("div", { className: "flex flex-col gap-2", children: [
|
|
15
|
-
t ? /* @__PURE__ */
|
|
16
|
-
/* @__PURE__ */
|
|
17
|
+
t ? /* @__PURE__ */ s("label", { htmlFor: m, className: "cursor-pointer", children: t }) : null,
|
|
18
|
+
/* @__PURE__ */ s(
|
|
17
19
|
"textarea",
|
|
18
20
|
{
|
|
19
|
-
id:
|
|
20
|
-
ref:
|
|
21
|
-
className:
|
|
21
|
+
id: m,
|
|
22
|
+
ref: p,
|
|
23
|
+
className: I(V({ theme: i ?? u })),
|
|
22
24
|
rows: c,
|
|
23
25
|
placeholder: l,
|
|
24
|
-
value:
|
|
25
|
-
onChange:
|
|
26
|
+
value: d,
|
|
27
|
+
onChange: n
|
|
26
28
|
}
|
|
27
29
|
)
|
|
28
30
|
] });
|
|
29
31
|
}
|
|
30
32
|
);
|
|
31
33
|
export {
|
|
32
|
-
|
|
34
|
+
q as TextArea
|
|
33
35
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { InputHTMLAttributes } from 'react';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
import { textAreaVariants } from './TextArea.variants';
|
|
4
|
+
export interface TextAreaProps extends InputHTMLAttributes<HTMLTextAreaElement>, VariantProps<typeof textAreaVariants> {
|
|
5
|
+
rows?: number;
|
|
6
|
+
label?: string;
|
|
7
|
+
name?: string;
|
|
8
|
+
initialValue?: string;
|
|
9
|
+
onChange?: () => void;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|