@konstructio/ui 0.0.13-alpha.2 → 0.1.0-alpha.11
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-UW8ts6wI.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 +79 -0
- package/dist/components/Badge/Badge.variants.js +68 -0
- 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 +22 -23
- 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 +2722 -0
- package/dist/components/Datepicker/DatePicker.variants.js +5 -0
- package/dist/components/Divider/Divider.variants.js +9 -12
- 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/Filter/Filter.js +20 -0
- package/dist/components/Filter/Filter.variants.js +22 -0
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.js +87 -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 +18 -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 +14 -99
- 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/Radio/Radio.variants.js +14 -12
- 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 +24 -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/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 +78 -66
- package/dist/createLucideIcon-ByJ0JZvK.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 +128 -17
- package/dist/index.js +84 -72
- package/dist/package.json +37 -37
- 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/ui/utilities.css +11 -2
- package/dist/useBreadcrumb-DMERrNkJ.js +1280 -0
- package/dist/utils/index.js +3 -3
- package/dist/{x-DU-Zw-L_.js → x-BPcqkRZd.js} +1 -1
- package/package.json +37 -37
- package/dist/Modal-i7eolhYH.js +0 -926
- 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
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import * as a from "react";
|
|
2
|
-
import { u as T } from "./index-
|
|
3
|
-
import { u as A } from "./index-
|
|
2
|
+
import { u as T } from "./index-B5MIi2tR.js";
|
|
3
|
+
import { u as A } from "./index-Cq1I1cG9.js";
|
|
4
4
|
function E(n, e) {
|
|
5
5
|
return a.useReducer((r, t) => e[r][t] ?? r, n);
|
|
6
6
|
}
|
|
7
7
|
var R = (n) => {
|
|
8
|
-
const { present: e, children: r } = n, t = P(e),
|
|
9
|
-
return typeof r == "function" || t.isPresent ? a.cloneElement(
|
|
8
|
+
const { present: e, children: r } = n, t = P(e), i = typeof r == "function" ? r({ present: t.isPresent }) : a.Children.only(r), c = T(t.ref, v(i));
|
|
9
|
+
return typeof r == "function" || t.isPresent ? a.cloneElement(i, { ref: c }) : null;
|
|
10
10
|
};
|
|
11
11
|
R.displayName = "Presence";
|
|
12
12
|
function P(n) {
|
|
13
|
-
const [e, r] = a.useState(), t = a.useRef(
|
|
13
|
+
const [e, r] = a.useState(), t = a.useRef(null), i = a.useRef(n), c = a.useRef("none"), p = n ? "mounted" : "unmounted", [N, s] = E(p, {
|
|
14
14
|
mounted: {
|
|
15
15
|
UNMOUNT: "unmounted",
|
|
16
16
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -24,22 +24,22 @@ function P(n) {
|
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
26
|
return a.useEffect(() => {
|
|
27
|
-
const
|
|
28
|
-
c.current = N === "mounted" ?
|
|
27
|
+
const o = l(t.current);
|
|
28
|
+
c.current = N === "mounted" ? o : "none";
|
|
29
29
|
}, [N]), A(() => {
|
|
30
|
-
const
|
|
30
|
+
const o = t.current, m = i.current;
|
|
31
31
|
if (m !== n) {
|
|
32
|
-
const f = c.current, u = l(
|
|
33
|
-
n ? s("MOUNT") : u === "none" || (
|
|
32
|
+
const f = c.current, u = l(o);
|
|
33
|
+
n ? s("MOUNT") : u === "none" || (o == null ? void 0 : o.display) === "none" ? s("UNMOUNT") : s(m && f !== u ? "ANIMATION_OUT" : "UNMOUNT"), i.current = n;
|
|
34
34
|
}
|
|
35
35
|
}, [n, s]), A(() => {
|
|
36
36
|
if (e) {
|
|
37
|
-
let
|
|
37
|
+
let o;
|
|
38
38
|
const m = e.ownerDocument.defaultView ?? window, d = (u) => {
|
|
39
39
|
const g = l(t.current).includes(u.animationName);
|
|
40
|
-
if (u.target === e && g && (s("ANIMATION_END"), !
|
|
40
|
+
if (u.target === e && g && (s("ANIMATION_END"), !i.current)) {
|
|
41
41
|
const O = e.style.animationFillMode;
|
|
42
|
-
e.style.animationFillMode = "forwards",
|
|
42
|
+
e.style.animationFillMode = "forwards", o = m.setTimeout(() => {
|
|
43
43
|
e.style.animationFillMode === "forwards" && (e.style.animationFillMode = O);
|
|
44
44
|
});
|
|
45
45
|
}
|
|
@@ -47,14 +47,14 @@ function P(n) {
|
|
|
47
47
|
u.target === e && (c.current = l(t.current));
|
|
48
48
|
};
|
|
49
49
|
return e.addEventListener("animationstart", f), e.addEventListener("animationcancel", d), e.addEventListener("animationend", d), () => {
|
|
50
|
-
m.clearTimeout(
|
|
50
|
+
m.clearTimeout(o), e.removeEventListener("animationstart", f), e.removeEventListener("animationcancel", d), e.removeEventListener("animationend", d);
|
|
51
51
|
};
|
|
52
52
|
} else
|
|
53
53
|
s("ANIMATION_END");
|
|
54
54
|
}, [e, s]), {
|
|
55
55
|
isPresent: ["mounted", "unmountSuspended"].includes(N),
|
|
56
|
-
ref: a.useCallback((
|
|
57
|
-
|
|
56
|
+
ref: a.useCallback((o) => {
|
|
57
|
+
t.current = o ? getComputedStyle(o) : null, r(o);
|
|
58
58
|
}, [])
|
|
59
59
|
};
|
|
60
60
|
}
|
|
@@ -62,9 +62,9 @@ function l(n) {
|
|
|
62
62
|
return (n == null ? void 0 : n.animationName) || "none";
|
|
63
63
|
}
|
|
64
64
|
function v(n) {
|
|
65
|
-
var t,
|
|
65
|
+
var t, i;
|
|
66
66
|
let e = (t = Object.getOwnPropertyDescriptor(n.props, "ref")) == null ? void 0 : t.get, r = e && "isReactWarning" in e && e.isReactWarning;
|
|
67
|
-
return r ? n.ref : (e = (
|
|
67
|
+
return r ? n.ref : (e = (i = Object.getOwnPropertyDescriptor(n, "ref")) == null ? void 0 : i.get, r = e && "isReactWarning" in e && e.isReactWarning, r ? n.props.ref : n.props.ref || n.ref);
|
|
68
68
|
}
|
|
69
69
|
export {
|
|
70
70
|
R as P
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as r from "react";
|
|
2
|
+
function n(t) {
|
|
3
|
+
const e = r.useRef(t);
|
|
4
|
+
return r.useEffect(() => {
|
|
5
|
+
e.current = t;
|
|
6
|
+
}), r.useMemo(() => (...s) => {
|
|
7
|
+
var u;
|
|
8
|
+
return (u = e.current) == null ? void 0 : u.call(e, ...s);
|
|
9
|
+
}, []);
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
n as u
|
|
13
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import r from "react";
|
|
2
|
-
import { c as y } from "./index-
|
|
3
|
-
import { u as M, c as x } from "./index-
|
|
2
|
+
import { c as y } from "./index-Cq1I1cG9.js";
|
|
3
|
+
import { u as M, c as x } from "./index-B5MIi2tR.js";
|
|
4
4
|
import { jsx as d } from "react/jsx-runtime";
|
|
5
5
|
function D(s) {
|
|
6
6
|
const f = s + "CollectionProvider", [A, N] = y(f), [_, m] = A(
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
import { AlertDialogProps as AlertDialogProps_2 } from '@radix-ui/react-alert-dialog';
|
|
1
2
|
import { ButtonHTMLAttributes } from 'react';
|
|
3
|
+
import { CheckboxProps as CheckboxProps_2 } from '@radix-ui/react-checkbox';
|
|
2
4
|
import { ClassProp } from 'class-variance-authority/types';
|
|
3
5
|
import { Context } from 'react';
|
|
6
|
+
import { DayPickerProps } from 'react-day-picker';
|
|
4
7
|
import { FC } from 'react';
|
|
5
8
|
import { ForwardRefExoticComponent } from 'react';
|
|
9
|
+
import { getAllTimezones } from 'countries-and-timezones';
|
|
6
10
|
import { HTMLAttributes } from 'react';
|
|
7
11
|
import { HtmlHTMLAttributes } from 'react';
|
|
8
12
|
import { InputHTMLAttributes } from 'react';
|
|
@@ -16,17 +20,17 @@ export declare const Alert: FC<AlertProps>;
|
|
|
16
20
|
|
|
17
21
|
export declare const AlertDialog: FC<AlertDialogProps>;
|
|
18
22
|
|
|
19
|
-
declare interface AlertDialogProps extends PropsWithChildren {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
buttonConfirmText?: string;
|
|
24
|
-
buttonText?: string;
|
|
23
|
+
declare interface AlertDialogProps extends PropsWithChildren, AlertDialogProps_2 {
|
|
24
|
+
buttonCancel?: ButtonCancelProps;
|
|
25
|
+
buttonConfirm?: ButtonConfirmProps;
|
|
26
|
+
buttonTriggerText?: string;
|
|
25
27
|
buttonTriggerClassName?: string;
|
|
26
28
|
className?: string;
|
|
27
|
-
description?: string;
|
|
29
|
+
description?: string | ReactNode;
|
|
30
|
+
showCancelButton?: boolean;
|
|
28
31
|
theme?: Theme;
|
|
29
|
-
title?: string;
|
|
32
|
+
title?: string | ReactNode;
|
|
33
|
+
wrapperClassName?: string;
|
|
30
34
|
onConfirm?: () => void;
|
|
31
35
|
}
|
|
32
36
|
|
|
@@ -63,6 +67,31 @@ declare const autocompleteVariants: (props?: ({
|
|
|
63
67
|
variant?: "default" | null | undefined;
|
|
64
68
|
} & ClassProp) | undefined) => string;
|
|
65
69
|
|
|
70
|
+
export declare const Badge: FC<BadgeProps>;
|
|
71
|
+
|
|
72
|
+
export declare const BadgeMultiSelect: FC<BadgeMultiSelectProps>;
|
|
73
|
+
|
|
74
|
+
declare type BadgeMultiSelectProps = {
|
|
75
|
+
label: string;
|
|
76
|
+
options: Option_4[];
|
|
77
|
+
position?: 'left' | 'right';
|
|
78
|
+
onApply?: (selectedOptions: Option_4[]) => void;
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
declare type BadgeProps = VariantProps<typeof badgeVariants> & {
|
|
82
|
+
label: string;
|
|
83
|
+
className?: string;
|
|
84
|
+
loading?: boolean;
|
|
85
|
+
dismissible?: true;
|
|
86
|
+
onClick?: VoidFunction;
|
|
87
|
+
onDismiss?: VoidFunction;
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
declare const badgeVariants: (props?: ({
|
|
91
|
+
variant?: "info" | "warning" | "danger" | "default" | "success" | null | undefined;
|
|
92
|
+
size?: "default" | null | undefined;
|
|
93
|
+
} & ClassProp) | undefined) => string;
|
|
94
|
+
|
|
66
95
|
declare interface BodyProps extends React.HTMLAttributes<HTMLTableSectionElement>, PropsWithChildren, VariantProps<typeof bodyVariants> {
|
|
67
96
|
}
|
|
68
97
|
|
|
@@ -76,12 +105,19 @@ declare interface BreadcrumbProps extends VariantProps<typeof breadcrumbVariants
|
|
|
76
105
|
theme?: Theme;
|
|
77
106
|
}
|
|
78
107
|
|
|
79
|
-
declare const breadcrumbVariants: (props?:
|
|
80
|
-
size?: "base" | "sm" | "lg" | "xl" | null | undefined;
|
|
81
|
-
} & ClassProp) | undefined) => string;
|
|
108
|
+
declare const breadcrumbVariants: (props?: ClassProp | undefined) => string;
|
|
82
109
|
|
|
83
110
|
export declare const Button: FC<ButtonProps>;
|
|
84
111
|
|
|
112
|
+
declare type ButtonBaseProps = Partial<ButtonProps> & {
|
|
113
|
+
className?: string;
|
|
114
|
+
text?: string;
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
declare type ButtonCancelProps = ButtonBaseProps;
|
|
118
|
+
|
|
119
|
+
declare type ButtonConfirmProps = ButtonBaseProps;
|
|
120
|
+
|
|
85
121
|
declare interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'disabled'>, VariantProps<typeof buttonVariants> {
|
|
86
122
|
asChild?: boolean;
|
|
87
123
|
disabled?: boolean;
|
|
@@ -89,10 +125,12 @@ declare interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElemen
|
|
|
89
125
|
}
|
|
90
126
|
|
|
91
127
|
declare const buttonVariants: (props?: ({
|
|
92
|
-
variant?: "danger" | "
|
|
128
|
+
variant?: "danger" | "text" | "primary" | "secondary" | null | undefined;
|
|
129
|
+
shape?: "circle" | null | undefined;
|
|
93
130
|
version?: "default" | "alternate" | null | undefined;
|
|
94
131
|
disabled?: boolean | null | undefined;
|
|
95
132
|
size?: "medium" | "large" | null | undefined;
|
|
133
|
+
appearance?: "compact" | null | undefined;
|
|
96
134
|
} & ClassProp) | undefined) => string;
|
|
97
135
|
|
|
98
136
|
export declare const Card: FC<CardProps>;
|
|
@@ -111,7 +149,7 @@ declare const cardVariants: (props?: ({
|
|
|
111
149
|
|
|
112
150
|
export declare const Checkbox: FC<CheckboxProps>;
|
|
113
151
|
|
|
114
|
-
declare interface CheckboxProps extends Omit<
|
|
152
|
+
declare interface CheckboxProps extends Omit<CheckboxProps_2, 'onChange'>, Omit<VariantProps<typeof checkboxVariants>, 'checked'> {
|
|
115
153
|
ariaLabelledBy?: string;
|
|
116
154
|
className?: string;
|
|
117
155
|
defaultChecked?: boolean;
|
|
@@ -121,7 +159,7 @@ declare interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElemen
|
|
|
121
159
|
labelClassName?: string;
|
|
122
160
|
name?: string;
|
|
123
161
|
theme?: Theme;
|
|
124
|
-
onChange?: () => void;
|
|
162
|
+
onChange?: (checked: boolean) => void;
|
|
125
163
|
}
|
|
126
164
|
|
|
127
165
|
declare const checkboxVariants: (props?: ({
|
|
@@ -129,26 +167,67 @@ declare const checkboxVariants: (props?: ({
|
|
|
129
167
|
checked?: boolean | null | undefined;
|
|
130
168
|
} & ClassProp) | undefined) => string;
|
|
131
169
|
|
|
170
|
+
export declare const DateFilterDropdown: FC<DateFilterDropdownProps>;
|
|
171
|
+
|
|
172
|
+
declare type DateFilterDropdownProps = {
|
|
173
|
+
label: string;
|
|
174
|
+
position?: 'left' | 'right';
|
|
175
|
+
onApply?: (date?: Date) => void;
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
export declare const DatePicker: FC<DatePickerProps>;
|
|
179
|
+
|
|
180
|
+
declare type DatePickerProps = Omit<DayPickerProps, 'mode'> & VariantProps<typeof datePickerVariants> & {
|
|
181
|
+
arrowClassName?: string;
|
|
182
|
+
monthsClassName?: string;
|
|
183
|
+
timeZone?: TimeZone;
|
|
184
|
+
defaultSelected?: Date;
|
|
185
|
+
onSelect?: (date: Date) => void;
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
declare const datePickerVariants: (props?: ClassProp | undefined) => string;
|
|
189
|
+
|
|
132
190
|
export declare const Divider: FC<HTMLAttributes<HTMLDivElement>>;
|
|
133
191
|
|
|
134
192
|
export declare const Dropdown: FC<DropdownProps>;
|
|
135
193
|
|
|
136
194
|
declare interface DropdownProps extends VariantProps<typeof dropdownVariants>, Omit<React.InputHTMLAttributes<HTMLInputElement>, 'value' | 'onChange'> {
|
|
195
|
+
className?: string;
|
|
196
|
+
iconClassName?: string;
|
|
137
197
|
isLoading?: boolean;
|
|
138
198
|
label?: string;
|
|
139
199
|
labelClassName?: string;
|
|
200
|
+
listClassName?: string;
|
|
201
|
+
listItemClassName?: string;
|
|
140
202
|
options: Option_3[];
|
|
203
|
+
searchable?: boolean;
|
|
141
204
|
theme?: Theme;
|
|
142
205
|
value?: string;
|
|
206
|
+
wrapperClassName?: string;
|
|
143
207
|
onChange?: OnChangeFn;
|
|
144
208
|
}
|
|
145
209
|
|
|
146
210
|
declare const dropdownVariants: (props?: ClassProp | undefined) => string;
|
|
147
211
|
|
|
148
|
-
declare
|
|
212
|
+
export declare const Filter: FilterComponentProps;
|
|
213
|
+
|
|
214
|
+
declare type FilterComponentProps = FC<FilterProps> & {
|
|
215
|
+
BadgeMultiSelect: FC<BadgeMultiSelectProps>;
|
|
216
|
+
DateFilterDropdown: FC<DateFilterDropdownProps>;
|
|
217
|
+
ResetButton: FC<ResetButtonProps>;
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
declare type FilterProps = VariantProps<typeof filterVariants> & PropsWithChildren & {
|
|
221
|
+
className?: string;
|
|
222
|
+
theme?: Theme;
|
|
223
|
+
};
|
|
224
|
+
|
|
225
|
+
declare interface FilterProps_2 extends React.InputHTMLAttributes<HTMLInputElement>, PropsWithChildren {
|
|
149
226
|
placeholder?: string;
|
|
150
227
|
}
|
|
151
228
|
|
|
229
|
+
declare const filterVariants: (props?: ClassProp | undefined) => string;
|
|
230
|
+
|
|
152
231
|
export declare const Footer: FC<FooterProps>;
|
|
153
232
|
|
|
154
233
|
declare interface FooterProps extends PropsWithChildren, VariantProps<typeof footerVariants> {
|
|
@@ -171,6 +250,9 @@ declare interface InputProps extends InputHTMLAttributes<HTMLInputElement>, Vari
|
|
|
171
250
|
label?: string | ReactNode;
|
|
172
251
|
labelClassName?: string;
|
|
173
252
|
theme?: Theme;
|
|
253
|
+
isRequired?: boolean;
|
|
254
|
+
isSearch?: boolean;
|
|
255
|
+
helperText?: string;
|
|
174
256
|
}
|
|
175
257
|
|
|
176
258
|
declare const inputVariants: (props?: ({
|
|
@@ -313,6 +395,12 @@ declare type Option_3 = {
|
|
|
313
395
|
value: string;
|
|
314
396
|
};
|
|
315
397
|
|
|
398
|
+
declare type Option_4 = {
|
|
399
|
+
id: string;
|
|
400
|
+
label: string;
|
|
401
|
+
variant?: BadgeProps['variant'];
|
|
402
|
+
};
|
|
403
|
+
|
|
316
404
|
export declare const ProgressBar: FC<ProgressBarProps>;
|
|
317
405
|
|
|
318
406
|
declare interface ProgressBarProps extends VariantProps<typeof progressBarVariants> {
|
|
@@ -398,6 +486,10 @@ declare interface RangeProps extends VariantProps<typeof rangeVariants> {
|
|
|
398
486
|
|
|
399
487
|
declare const rangeVariants: (props?: ClassProp | undefined) => string;
|
|
400
488
|
|
|
489
|
+
declare type ResetButtonProps = {
|
|
490
|
+
disabled?: boolean;
|
|
491
|
+
};
|
|
492
|
+
|
|
401
493
|
declare interface RowProps extends React.HTMLAttributes<HTMLTableRowElement>, PropsWithChildren, VariantProps<typeof rowVariants> {
|
|
402
494
|
width?: string;
|
|
403
495
|
isSelected?: boolean;
|
|
@@ -469,7 +561,7 @@ declare const switchVariants: (props?: ClassProp | undefined) => string;
|
|
|
469
561
|
export declare const Table: FC<TableProps> & {
|
|
470
562
|
Head: FC<HeadProps>;
|
|
471
563
|
Row: FC<RowProps>;
|
|
472
|
-
Filter: FC<
|
|
564
|
+
Filter: FC<FilterProps_2>;
|
|
473
565
|
Body: FC<BodyProps>;
|
|
474
566
|
};
|
|
475
567
|
|
|
@@ -538,6 +630,25 @@ declare type ThemeProps = {
|
|
|
538
630
|
|
|
539
631
|
export declare const ThemeProvider: FC<ThemeContextProps>;
|
|
540
632
|
|
|
633
|
+
export declare const TimePicker: FC<TimePickerProps>;
|
|
634
|
+
|
|
635
|
+
declare type TimePickerProps = VariantProps<typeof timePickerVariants> & {
|
|
636
|
+
format?: '12' | '24';
|
|
637
|
+
scrollBehavior?: 'smooth' | 'auto';
|
|
638
|
+
time?: Date;
|
|
639
|
+
name?: string;
|
|
640
|
+
label?: string;
|
|
641
|
+
required?: boolean;
|
|
642
|
+
className?: string;
|
|
643
|
+
listClassName?: string;
|
|
644
|
+
listItemClassName?: string;
|
|
645
|
+
listItemButtonClassName?: string;
|
|
646
|
+
};
|
|
647
|
+
|
|
648
|
+
declare const timePickerVariants: (props?: ClassProp | undefined) => string;
|
|
649
|
+
|
|
650
|
+
declare type TimeZone = keyof ReturnType<typeof getAllTimezones>;
|
|
651
|
+
|
|
541
652
|
export declare const Toast: FC<ToastProps>;
|
|
542
653
|
|
|
543
654
|
declare interface ToastProps extends PropsWithChildren, VariantProps<typeof toastVariants> {
|
|
@@ -566,7 +677,7 @@ declare interface TooltipProps extends PropsWithChildren, VariantProps<typeof to
|
|
|
566
677
|
}
|
|
567
678
|
|
|
568
679
|
declare const tooltipVariants: (props?: ({
|
|
569
|
-
position?: "left" | "right" | "
|
|
680
|
+
position?: "left" | "right" | "bottom" | "top" | null | undefined;
|
|
570
681
|
} & ClassProp) | undefined) => string;
|
|
571
682
|
|
|
572
683
|
export declare const Typography: FC<TypographyProps>;
|
package/dist/index.js
CHANGED
|
@@ -1,80 +1,92 @@
|
|
|
1
1
|
import { Alert as e } from "./components/Alert/Alert.js";
|
|
2
2
|
import { AlertDialog as p } from "./components/AlertDialog/AlertDialog.js";
|
|
3
3
|
import { Autocomplete as x } from "./components/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 {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
4
|
+
import { Badge as a } from "./components/Badge/Badge.js";
|
|
5
|
+
import { Breadcrumb as d } from "./components/Breadcrumb/Breadcrumb.js";
|
|
6
|
+
import { Button as l } from "./components/Button/Button.js";
|
|
7
|
+
import { Card as u } from "./components/Card/Card.js";
|
|
8
|
+
import { Checkbox as c } from "./components/Checkbox/Checkbox.js";
|
|
9
|
+
import { DatePicker as s } from "./components/Datepicker/DatePicker.js";
|
|
10
|
+
import { Divider as D } from "./components/Divider/Divider.js";
|
|
11
|
+
import { Dropdown as b } from "./components/Dropdown/Dropdown.js";
|
|
12
|
+
import { Filter as C } from "./components/Filter/Filter.js";
|
|
13
|
+
import { BadgeMultiSelect as R } from "./components/Filter/components/BadgeDropdown/BadgeMultiSelect.js";
|
|
14
|
+
import { DateFilterDropdown as P } from "./components/Filter/components/DateFilterDropdown/DateFilterDropdown.js";
|
|
15
|
+
import { Input as w } from "./components/Input/Input.js";
|
|
16
|
+
import { Loading as G } from "./components/Loading/Loading.js";
|
|
17
|
+
import { M as y } from "./Modal-CrG0m703.js";
|
|
18
|
+
import { NumberInput as L } from "./components/NumberInput/NumberInput.js";
|
|
19
|
+
import { ProgressBar as j } from "./components/ProgressBar/ProgressBar.js";
|
|
20
|
+
import { Radio as z } from "./components/Radio/Radio.js";
|
|
21
|
+
import { RadioCard as H } from "./components/RadioCard/RadioCard.js";
|
|
22
|
+
import { RadioCardGroup as K } from "./components/RadioCardGroup/RadioCardGroup.js";
|
|
23
|
+
import { RadioGroup as U } from "./components/RadioGroup/RadioGroup.js";
|
|
24
|
+
import { Range as W } from "./components/Range/Range.js";
|
|
25
|
+
import { Footer as Y } from "./components/Sidebar/components/Footer/Footer.js";
|
|
26
|
+
import { Logo as _ } from "./components/Sidebar/components/Logo/Logo.js";
|
|
27
|
+
import { Navigation as oo } from "./components/Sidebar/components/Navigation/Navigation.js";
|
|
28
|
+
import { NavigationGroup as eo } from "./components/Sidebar/components/NavigationGroup/NavigationGroup.js";
|
|
29
|
+
import { NavigationOption as po } from "./components/Sidebar/components/NavigationOption/NavigationOption.js";
|
|
30
|
+
import { NavigationSeparator as xo } from "./components/Sidebar/components/NavigationSeparator/NavigationSeparator.js";
|
|
31
|
+
import { Sidebar as ao } from "./components/Sidebar/Sidebar.js";
|
|
32
|
+
import { Slider as go } from "./components/Slider/Slider.js";
|
|
33
|
+
import { Switch as no } from "./components/Switch/Switch.js";
|
|
34
|
+
import { Table as To } from "./components/Table/Table.js";
|
|
35
|
+
import { Tag as ho } from "./components/Tag/Tag.js";
|
|
36
|
+
import { TagSelect as vo } from "./components/TagSelect/TagSelect.js";
|
|
37
|
+
import { TextArea as So } from "./components/TextArea/TextArea.js";
|
|
38
|
+
import { TimePicker as Bo } from "./components/TimePicker/TimePicker.js";
|
|
39
|
+
import { Toast as No } from "./components/Toast/Toast.js";
|
|
40
|
+
import { Tooltip as Ao } from "./components/Tooltip/Tooltip.js";
|
|
41
|
+
import { Typography as ko } from "./components/Typography/Typography.js";
|
|
42
|
+
import { ThemeContext as Fo } from "./contexts/theme.context.js";
|
|
43
|
+
import { useTheme as Mo } from "./contexts/theme.hook.js";
|
|
44
|
+
import { ThemeProvider as Io } from "./contexts/theme.provider.js";
|
|
45
|
+
import { useToggle as Oo } from "./hooks/useToggle.js";
|
|
40
46
|
export {
|
|
41
47
|
e as Alert,
|
|
42
48
|
p as AlertDialog,
|
|
43
49
|
x as Autocomplete,
|
|
44
|
-
a as
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
L as
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
50
|
+
a as Badge,
|
|
51
|
+
R as BadgeMultiSelect,
|
|
52
|
+
d as Breadcrumb,
|
|
53
|
+
l as Button,
|
|
54
|
+
u as Card,
|
|
55
|
+
c as Checkbox,
|
|
56
|
+
P as DateFilterDropdown,
|
|
57
|
+
s as DatePicker,
|
|
58
|
+
D as Divider,
|
|
59
|
+
b as Dropdown,
|
|
60
|
+
C as Filter,
|
|
61
|
+
Y as Footer,
|
|
62
|
+
w as Input,
|
|
63
|
+
G as Loading,
|
|
64
|
+
_ as Logo,
|
|
65
|
+
y as Modal,
|
|
66
|
+
oo as Navigation,
|
|
67
|
+
eo as NavigationGroup,
|
|
68
|
+
po as NavigationOption,
|
|
69
|
+
xo as NavigationSeparator,
|
|
70
|
+
L as NumberInput,
|
|
71
|
+
j as ProgressBar,
|
|
72
|
+
z as Radio,
|
|
73
|
+
H as RadioCard,
|
|
74
|
+
K as RadioCardGroup,
|
|
75
|
+
U as RadioGroup,
|
|
76
|
+
W as Range,
|
|
77
|
+
ao as Sidebar,
|
|
78
|
+
go as Slider,
|
|
79
|
+
no as Switch,
|
|
80
|
+
To as Table,
|
|
81
|
+
ho as Tag,
|
|
82
|
+
vo as TagSelect,
|
|
83
|
+
So as TextArea,
|
|
84
|
+
Fo as ThemeContext,
|
|
85
|
+
Io as ThemeProvider,
|
|
86
|
+
Bo as TimePicker,
|
|
87
|
+
No as Toast,
|
|
88
|
+
Ao as Tooltip,
|
|
89
|
+
ko as Typography,
|
|
90
|
+
Mo as useTheme,
|
|
91
|
+
Oo as useToggle
|
|
80
92
|
};
|