@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.
Files changed (128) hide show
  1. package/dist/{Combination-b348x__d.js → Combination-VYaRRJBZ.js} +155 -157
  2. package/dist/DatePicker.css +1 -0
  3. package/dist/Modal-CrG0m703.js +98 -0
  4. package/dist/assets/icons/components/Search.js +26 -0
  5. package/dist/assets/icons/components/Warning.js +22 -0
  6. package/dist/assets/icons/components/index.js +6 -0
  7. package/dist/chevron-down-UW8ts6wI.js +11 -0
  8. package/dist/{chevron-up-DgLBQCKD.js → chevron-up-RLP4nX7V.js} +1 -1
  9. package/dist/components/Alert/Alert.js +2 -2
  10. package/dist/components/AlertDialog/AlertDialog.js +55 -41
  11. package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
  12. package/dist/components/AlertDialog/components/index.js +1 -1
  13. package/dist/components/Badge/Badge.js +79 -0
  14. package/dist/components/Badge/Badge.variants.js +68 -0
  15. package/dist/components/Breadcrumb/Breadcrumb.js +44 -53
  16. package/dist/components/Breadcrumb/Breadcrumb.variants.js +10 -41
  17. package/dist/components/Breadcrumb/components/Item/Item.js +22 -23
  18. package/dist/components/Breadcrumb/components/Item/Item.variants.js +43 -56
  19. package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +1 -1
  20. package/dist/components/Button/Button.js +30 -26
  21. package/dist/components/Button/Button.variants.js +116 -29
  22. package/dist/components/Checkbox/Checkbox.js +300 -185
  23. package/dist/components/Checkbox/Checkbox.variants.js +12 -15
  24. package/dist/components/Command/Command.js +2 -2
  25. package/dist/components/Command/components/Command.js +1 -1
  26. package/dist/components/Command/components/CommandEmpty.js +1 -1
  27. package/dist/components/Command/components/CommandGroup.js +1 -1
  28. package/dist/components/Command/components/CommandInput.js +2 -2
  29. package/dist/components/Command/components/CommandItem.js +1 -1
  30. package/dist/components/Command/components/CommandList.js +1 -1
  31. package/dist/components/Command/components/CommandSeparator.js +1 -1
  32. package/dist/components/Command/components/DialogContent.js +2 -2
  33. package/dist/components/Command/components/DialogOverlay.js +1 -1
  34. package/dist/components/Datepicker/DatePicker.js +2722 -0
  35. package/dist/components/Datepicker/DatePicker.variants.js +5 -0
  36. package/dist/components/Divider/Divider.variants.js +9 -12
  37. package/dist/components/Dropdown/components/List/List.js +55 -18
  38. package/dist/components/Dropdown/components/List/List.variants.js +5 -3
  39. package/dist/components/Dropdown/components/ListItem/ListItem.js +28 -22
  40. package/dist/components/Dropdown/components/Wrapper.js +110 -86
  41. package/dist/components/Dropdown/contexts/dropdown.context.js +6 -2
  42. package/dist/components/Dropdown/contexts/dropdown.hook.js +5 -3
  43. package/dist/components/Dropdown/contexts/dropdown.provider.js +18 -11
  44. package/dist/components/Filter/Filter.js +20 -0
  45. package/dist/components/Filter/Filter.variants.js +22 -0
  46. package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.js +87 -0
  47. package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +95 -0
  48. package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +87 -0
  49. package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +90 -0
  50. package/dist/components/Filter/components/ResetButton/ResetButton.js +18 -0
  51. package/dist/components/Filter/components/index.js +8 -0
  52. package/dist/components/Filter/events/index.js +12 -0
  53. package/dist/components/Input/Input.js +134 -163
  54. package/dist/components/Input/Input.variants.js +15 -13
  55. package/dist/components/Loading/Loading.js +14 -99
  56. package/dist/components/Modal/Modal.js +2 -2
  57. package/dist/components/Modal/components/Body/Body.js +1 -1
  58. package/dist/components/Modal/components/Footer/Footer.js +1 -1
  59. package/dist/components/Modal/components/Header/Header.js +1 -1
  60. package/dist/components/Modal/components/Wrapper/Wrapper.js +4 -4
  61. package/dist/components/Modal/components/Wrapper/Wrapper.variants.js +4 -6
  62. package/dist/components/Modal/components/index.js +1 -1
  63. package/dist/components/NumberInput/NumberInput.js +2 -2
  64. package/dist/components/Radio/Radio.variants.js +14 -12
  65. package/dist/components/RadioGroup/RadioGroup.js +1 -1
  66. package/dist/components/Range/Range.js +1 -1
  67. package/dist/components/Slider/Slider.js +1 -1
  68. package/dist/components/Switch/Switch.js +141 -126
  69. package/dist/components/Tabs/Tabs.js +24 -0
  70. package/dist/components/Tabs/Tabs.variants.js +58 -0
  71. package/dist/components/Tabs/components/Content.js +19 -0
  72. package/dist/components/Tabs/components/List.js +20 -0
  73. package/dist/components/Tabs/components/Trigger.js +26 -0
  74. package/dist/components/Tag/Tag.js +1 -1
  75. package/dist/components/TagSelect/components/Wrapper/Wrapper.js +2 -2
  76. package/dist/components/TimePicker/TimePicker.js +8 -0
  77. package/dist/components/TimePicker/TimePicker.variants.js +62 -0
  78. package/dist/components/TimePicker/components/HoursList/HoursList.js +93 -0
  79. package/dist/components/TimePicker/components/MeridianList/MeridianList.js +68 -0
  80. package/dist/components/TimePicker/components/MinutesList/MinutesList.js +60 -0
  81. package/dist/components/TimePicker/components/Wrapper/Wrapper.js +96 -0
  82. package/dist/components/TimePicker/components/WrapperList/WrapperList.js +51 -0
  83. package/dist/components/TimePicker/components/WrapperList/WrapperList.variants.js +16 -0
  84. package/dist/components/TimePicker/components/index.js +4 -0
  85. package/dist/components/TimePicker/contexts/index.js +8 -0
  86. package/dist/components/TimePicker/contexts/time-picker.context.js +22 -0
  87. package/dist/components/TimePicker/contexts/time-picker.hook.js +13 -0
  88. package/dist/components/TimePicker/contexts/time-picker.provider.js +46 -0
  89. package/dist/components/TimePicker/utils/index.js +6 -0
  90. package/dist/components/Toast/Toast.js +38 -36
  91. package/dist/components/Tooltip/Tooltip.js +1 -1
  92. package/dist/components/Typography/Typography.js +14 -16
  93. package/dist/components/index.js +78 -66
  94. package/dist/createLucideIcon-ByJ0JZvK.js +94 -0
  95. package/dist/index--EmNlyHx.js +31 -0
  96. package/dist/{index-Bk324h27.js → index-B5MIi2tR.js} +6 -5
  97. package/dist/{index-g-TFwd6Y.js → index-BCGvACM9.js} +2 -1
  98. package/dist/{index-AM3avohj.js → index-BNU3RH-3.js} +3 -3
  99. package/dist/{index-Bry5AFQ2.js → index-Bc1LNrRD.js} +1 -1
  100. package/dist/index-BdMNhZnh.js +9 -0
  101. package/dist/index-BvCZBMfr.js +432 -0
  102. package/dist/index-Cq1I1cG9.js +129 -0
  103. package/dist/index-Cs8Lv8Wj.js +13 -0
  104. package/dist/index-CvfCCTEO.js +323 -0
  105. package/dist/{index-DvFiic6N.js → index-DLYwlPRZ.js} +96 -102
  106. package/dist/{index-YaQrdkGE.js → index-DNRcvRTB.js} +31 -30
  107. package/dist/{index-dRxIWVBr.js → index-Dkt8F6CZ.js} +6 -5
  108. package/dist/{index-G_6jG4Qc.js → index-Dm-ooN_M.js} +18 -18
  109. package/dist/index-DwYXX2sM.js +13 -0
  110. package/dist/{index-C5psggHV.js → index-h-Ul0anl.js} +1 -2
  111. package/dist/{index-D9BbbgUq.js → index-rUBNhTeF.js} +2 -2
  112. package/dist/index.d.ts +128 -17
  113. package/dist/index.js +84 -72
  114. package/dist/package.json +37 -37
  115. package/dist/styles.css +1 -1
  116. package/dist/ui/civo-theme.css +263 -0
  117. package/dist/ui/kubefirst-theme.css +1 -1
  118. package/dist/ui/theme.css +11 -0
  119. package/dist/ui/utilities.css +11 -2
  120. package/dist/useBreadcrumb-DMERrNkJ.js +1280 -0
  121. package/dist/utils/index.js +3 -3
  122. package/dist/{x-DU-Zw-L_.js → x-BPcqkRZd.js} +1 -1
  123. package/package.json +37 -37
  124. package/dist/Modal-i7eolhYH.js +0 -926
  125. package/dist/index-BOx5P4tS.js +0 -423
  126. package/dist/index-CWKdynYu.js +0 -32
  127. package/dist/index-bYyfdsls.js +0 -118
  128. 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-Bk324h27.js";
3
- import { u as A } from "./index-bYyfdsls.js";
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), o = typeof r == "function" ? r({ present: t.isPresent }) : a.Children.only(r), c = T(t.ref, v(o));
9
- return typeof r == "function" || t.isPresent ? a.cloneElement(o, { ref: c }) : null;
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({}), o = a.useRef(n), c = a.useRef("none"), p = n ? "mounted" : "unmounted", [N, s] = E(p, {
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 i = l(t.current);
28
- c.current = N === "mounted" ? i : "none";
27
+ const o = l(t.current);
28
+ c.current = N === "mounted" ? o : "none";
29
29
  }, [N]), A(() => {
30
- const i = t.current, m = o.current;
30
+ const o = t.current, m = i.current;
31
31
  if (m !== n) {
32
- const f = c.current, u = l(i);
33
- n ? s("MOUNT") : u === "none" || (i == null ? void 0 : i.display) === "none" ? s("UNMOUNT") : s(m && f !== u ? "ANIMATION_OUT" : "UNMOUNT"), o.current = n;
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 i;
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"), !o.current)) {
40
+ if (u.target === e && g && (s("ANIMATION_END"), !i.current)) {
41
41
  const O = e.style.animationFillMode;
42
- e.style.animationFillMode = "forwards", i = m.setTimeout(() => {
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(i), e.removeEventListener("animationstart", f), e.removeEventListener("animationcancel", d), e.removeEventListener("animationend", d);
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((i) => {
57
- i && (t.current = getComputedStyle(i)), r(i);
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, o;
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 = (o = Object.getOwnPropertyDescriptor(n, "ref")) == null ? void 0 : o.get, r = e && "isReactWarning" in e && e.isReactWarning, r ? n.props.ref : n.props.ref || n.ref);
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
+ };
@@ -663,6 +663,5 @@ function Ce() {
663
663
  var we = /* @__PURE__ */ Ce();
664
664
  const Ie = /* @__PURE__ */ ge(we);
665
665
  export {
666
- Ie as P,
667
- we as p
666
+ Ie as P
668
667
  };
@@ -1,6 +1,6 @@
1
1
  import r from "react";
2
- import { c as y } from "./index-bYyfdsls.js";
3
- import { u as M, c as x } from "./index-Bk324h27.js";
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
- buttonCancelClassName?: string;
21
- buttonCancelText?: string;
22
- buttonConfirmClassName?: string;
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" | "circle" | "text" | "primary" | "secondary" | null | undefined;
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<InputHTMLAttributes<HTMLInputElement>, 'checked'>, VariantProps<typeof checkboxVariants> {
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 interface FilterProps extends React.InputHTMLAttributes<HTMLInputElement>, PropsWithChildren {
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<FilterProps>;
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" | "top" | "bottom" | null | undefined;
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 { Breadcrumb as a } from "./components/Breadcrumb/Breadcrumb.js";
5
- import { Button as d } from "./components/Button/Button.js";
6
- import { Card as n } from "./components/Card/Card.js";
7
- import { Checkbox as T } from "./components/Checkbox/Checkbox.js";
8
- import { Dropdown as h } from "./components/Dropdown/Dropdown.js";
9
- import { Input as v } from "./components/Input/Input.js";
10
- import { M as c } from "./Modal-i7eolhYH.js";
11
- import { NumberInput as N } from "./components/NumberInput/NumberInput.js";
12
- import { ProgressBar as S } from "./components/ProgressBar/ProgressBar.js";
13
- import { Radio as B } from "./components/Radio/Radio.js";
14
- import { RadioCard as G } from "./components/RadioCard/RadioCard.js";
15
- import { RadioCardGroup as y } from "./components/RadioCardGroup/RadioCardGroup.js";
16
- import { RadioGroup as L } from "./components/RadioGroup/RadioGroup.js";
17
- import { Range as P } from "./components/Range/Range.js";
18
- import { Footer as F } from "./components/Sidebar/components/Footer/Footer.js";
19
- import { Logo as j } from "./components/Sidebar/components/Logo/Logo.js";
20
- import { Navigation as z } from "./components/Sidebar/components/Navigation/Navigation.js";
21
- import { NavigationGroup as H } from "./components/Sidebar/components/NavigationGroup/NavigationGroup.js";
22
- import { NavigationOption as K } from "./components/Sidebar/components/NavigationOption/NavigationOption.js";
23
- import { NavigationSeparator as U } from "./components/Sidebar/components/NavigationSeparator/NavigationSeparator.js";
24
- import { Sidebar as W } from "./components/Sidebar/Sidebar.js";
25
- import { Slider as Y } from "./components/Slider/Slider.js";
26
- import { Switch as _ } from "./components/Switch/Switch.js";
27
- import { Tag as oo } from "./components/Tag/Tag.js";
28
- import { TagSelect as eo } from "./components/TagSelect/TagSelect.js";
29
- import { TextArea as po } from "./components/TextArea/TextArea.js";
30
- import { Toast as xo } from "./components/Toast/Toast.js";
31
- import { Tooltip as ao } from "./components/Tooltip/Tooltip.js";
32
- import { Loading as go } from "./components/Loading/Loading.js";
33
- import { Typography as uo } from "./components/Typography/Typography.js";
34
- import { Divider as lo } from "./components/Divider/Divider.js";
35
- import { Table as so } from "./components/Table/Table.js";
36
- import { ThemeContext as bo } from "./contexts/theme.context.js";
37
- import { useTheme as Co } from "./contexts/theme.hook.js";
38
- import { ThemeProvider as Ro } from "./contexts/theme.provider.js";
39
- import { useToggle as Ao } from "./hooks/useToggle.js";
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 Breadcrumb,
45
- d as Button,
46
- n as Card,
47
- T as Checkbox,
48
- lo as Divider,
49
- h as Dropdown,
50
- F as Footer,
51
- v as Input,
52
- go as Loading,
53
- j as Logo,
54
- c as Modal,
55
- z as Navigation,
56
- H as NavigationGroup,
57
- K as NavigationOption,
58
- U as NavigationSeparator,
59
- N as NumberInput,
60
- S as ProgressBar,
61
- B as Radio,
62
- G as RadioCard,
63
- y as RadioCardGroup,
64
- L as RadioGroup,
65
- P as Range,
66
- W as Sidebar,
67
- Y as Slider,
68
- _ as Switch,
69
- so as Table,
70
- oo as Tag,
71
- eo as TagSelect,
72
- po as TextArea,
73
- bo as ThemeContext,
74
- Ro as ThemeProvider,
75
- xo as Toast,
76
- ao as Tooltip,
77
- uo as Typography,
78
- Co as useTheme,
79
- Ao as useToggle
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
  };