@konstructio/ui 0.1.0-alpha.2 → 0.1.0-alpha.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) 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-3QGcvbP_.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 +14 -14
  14. package/dist/components/Badge/Badge.variants.js +18 -17
  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 +27 -27
  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 +2728 -0
  35. package/dist/components/Datepicker/DatePicker.variants.js +5 -0
  36. package/dist/components/Dropdown/components/List/List.js +55 -18
  37. package/dist/components/Dropdown/components/List/List.variants.js +5 -3
  38. package/dist/components/Dropdown/components/ListItem/ListItem.js +28 -22
  39. package/dist/components/Dropdown/components/Wrapper.js +110 -86
  40. package/dist/components/Dropdown/contexts/dropdown.context.js +6 -2
  41. package/dist/components/Dropdown/contexts/dropdown.hook.js +5 -3
  42. package/dist/components/Dropdown/contexts/dropdown.provider.js +18 -11
  43. package/dist/components/DropdownButton/DropdownButton.js +136 -0
  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 +86 -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 +24 -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 +2 -2
  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/PieChart/PieChart.js +5130 -0
  65. package/dist/components/Radio/Radio.js +64 -49
  66. package/dist/components/Radio/Radio.variants.js +14 -12
  67. package/dist/components/RadioCard/RadioCard.js +23 -21
  68. package/dist/components/RadioCardGroup/RadioCardGroup.js +18 -18
  69. package/dist/components/RadioGroup/RadioGroup.js +1 -1
  70. package/dist/components/Range/Range.js +1 -1
  71. package/dist/components/Slider/Slider.js +1 -1
  72. package/dist/components/Switch/Switch.js +141 -126
  73. package/dist/components/Tabs/Tabs.js +27 -0
  74. package/dist/components/Tabs/Tabs.variants.js +58 -0
  75. package/dist/components/Tabs/components/Content.js +19 -0
  76. package/dist/components/Tabs/components/List.js +20 -0
  77. package/dist/components/Tabs/components/Trigger.js +26 -0
  78. package/dist/components/Tabs/components/index.js +8 -0
  79. package/dist/components/Tag/Tag.js +1 -1
  80. package/dist/components/TagSelect/components/Wrapper/Wrapper.js +2 -2
  81. package/dist/components/TimePicker/TimePicker.js +8 -0
  82. package/dist/components/TimePicker/TimePicker.variants.js +62 -0
  83. package/dist/components/TimePicker/components/HoursList/HoursList.js +93 -0
  84. package/dist/components/TimePicker/components/MeridianList/MeridianList.js +68 -0
  85. package/dist/components/TimePicker/components/MinutesList/MinutesList.js +60 -0
  86. package/dist/components/TimePicker/components/Wrapper/Wrapper.js +96 -0
  87. package/dist/components/TimePicker/components/WrapperList/WrapperList.js +51 -0
  88. package/dist/components/TimePicker/components/WrapperList/WrapperList.variants.js +16 -0
  89. package/dist/components/TimePicker/components/index.js +4 -0
  90. package/dist/components/TimePicker/contexts/index.js +8 -0
  91. package/dist/components/TimePicker/contexts/time-picker.context.js +22 -0
  92. package/dist/components/TimePicker/contexts/time-picker.hook.js +13 -0
  93. package/dist/components/TimePicker/contexts/time-picker.provider.js +46 -0
  94. package/dist/components/TimePicker/utils/index.js +6 -0
  95. package/dist/components/Toast/Toast.js +38 -36
  96. package/dist/components/Tooltip/Tooltip.js +1 -1
  97. package/dist/components/Typography/Typography.js +14 -16
  98. package/dist/components/index.js +90 -66
  99. package/dist/createLucideIcon-B7yPYScZ.js +94 -0
  100. package/dist/index--EmNlyHx.js +31 -0
  101. package/dist/{index-Bk324h27.js → index-B5MIi2tR.js} +6 -5
  102. package/dist/{index-g-TFwd6Y.js → index-BCGvACM9.js} +2 -1
  103. package/dist/{index-AM3avohj.js → index-BNU3RH-3.js} +3 -3
  104. package/dist/{index-Bry5AFQ2.js → index-Bc1LNrRD.js} +1 -1
  105. package/dist/index-BdMNhZnh.js +9 -0
  106. package/dist/index-BvCZBMfr.js +432 -0
  107. package/dist/index-Cq1I1cG9.js +129 -0
  108. package/dist/index-Cs8Lv8Wj.js +13 -0
  109. package/dist/index-CvfCCTEO.js +323 -0
  110. package/dist/{index-DvFiic6N.js → index-DLYwlPRZ.js} +96 -102
  111. package/dist/{index-YaQrdkGE.js → index-DNRcvRTB.js} +31 -30
  112. package/dist/{index-dRxIWVBr.js → index-Dkt8F6CZ.js} +6 -5
  113. package/dist/{index-G_6jG4Qc.js → index-Dm-ooN_M.js} +18 -18
  114. package/dist/index-DwYXX2sM.js +13 -0
  115. package/dist/{index-C5psggHV.js → index-h-Ul0anl.js} +1 -2
  116. package/dist/{index-D9BbbgUq.js → index-rUBNhTeF.js} +2 -2
  117. package/dist/index.d.ts +263 -18
  118. package/dist/index.js +96 -72
  119. package/dist/package.json +42 -40
  120. package/dist/styles.css +1 -1
  121. package/dist/ui/civo-theme.css +263 -0
  122. package/dist/ui/kubefirst-theme.css +1 -1
  123. package/dist/ui/theme.css +11 -0
  124. package/dist/useBreadcrumb-DMERrNkJ.js +1280 -0
  125. package/dist/utils/index.js +4 -4
  126. package/dist/{x-DU-Zw-L_.js → x-BPcqkRZd.js} +1 -1
  127. package/package.json +42 -40
  128. package/dist/Modal-i7eolhYH.js +0 -926
  129. package/dist/createLucideIcon-CoF3ywd5.js +0 -89
  130. package/dist/index-BOx5P4tS.js +0 -423
  131. package/dist/index-CWKdynYu.js +0 -32
  132. package/dist/index-bYyfdsls.js +0 -118
  133. 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,13 +1,21 @@
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 { FunctionComponent } from 'react';
10
+ import { getAllTimezones } from 'countries-and-timezones';
6
11
  import { HTMLAttributes } from 'react';
7
12
  import { HtmlHTMLAttributes } from 'react';
8
13
  import { InputHTMLAttributes } from 'react';
14
+ import { JSX } from 'react/jsx-runtime';
9
15
  import { PropsWithChildren } from 'react';
10
16
  import { ReactNode } from 'react';
17
+ import * as ReactTabs from '@radix-ui/react-tabs';
18
+ import { Ref } from 'react';
11
19
  import { RefAttributes } from 'react';
12
20
  import { SliderProps } from '@radix-ui/react-slider';
13
21
  import { VariantProps } from 'class-variance-authority';
@@ -16,17 +24,17 @@ export declare const Alert: FC<AlertProps>;
16
24
 
17
25
  export declare const AlertDialog: FC<AlertDialogProps>;
18
26
 
19
- declare interface AlertDialogProps extends PropsWithChildren {
20
- buttonCancelClassName?: string;
21
- buttonCancelText?: string;
22
- buttonConfirmClassName?: string;
23
- buttonConfirmText?: string;
24
- buttonText?: string;
27
+ declare interface AlertDialogProps extends PropsWithChildren, AlertDialogProps_2 {
28
+ buttonCancel?: ButtonCancelProps;
29
+ buttonConfirm?: ButtonConfirmProps;
30
+ buttonTriggerText?: string;
25
31
  buttonTriggerClassName?: string;
26
32
  className?: string;
27
- description?: string;
33
+ description?: string | ReactNode;
34
+ showCancelButton?: boolean;
28
35
  theme?: Theme;
29
- title?: string;
36
+ title?: string | ReactNode;
37
+ wrapperClassName?: string;
30
38
  onConfirm?: () => void;
31
39
  }
32
40
 
@@ -63,6 +71,31 @@ declare const autocompleteVariants: (props?: ({
63
71
  variant?: "default" | null | undefined;
64
72
  } & ClassProp) | undefined) => string;
65
73
 
74
+ export declare const Badge: FC<BadgeProps>;
75
+
76
+ export declare const BadgeMultiSelect: FC<BadgeMultiSelectProps>;
77
+
78
+ declare type BadgeMultiSelectProps = {
79
+ label: string;
80
+ options: Option_5[];
81
+ position?: 'left' | 'right';
82
+ onApply?: (selectedOptions: Option_5[]) => void;
83
+ };
84
+
85
+ declare type BadgeProps = VariantProps<typeof badgeVariants> & {
86
+ label: string;
87
+ className?: string;
88
+ loading?: boolean;
89
+ dismissible?: true;
90
+ onClick?: VoidFunction;
91
+ onDismiss?: VoidFunction;
92
+ };
93
+
94
+ declare const badgeVariants: (props?: ({
95
+ variant?: "info" | "warning" | "danger" | "default" | "success" | null | undefined;
96
+ size?: "default" | null | undefined;
97
+ } & ClassProp) | undefined) => string;
98
+
66
99
  declare interface BodyProps extends React.HTMLAttributes<HTMLTableSectionElement>, PropsWithChildren, VariantProps<typeof bodyVariants> {
67
100
  }
68
101
 
@@ -76,23 +109,33 @@ declare interface BreadcrumbProps extends VariantProps<typeof breadcrumbVariants
76
109
  theme?: Theme;
77
110
  }
78
111
 
79
- declare const breadcrumbVariants: (props?: ({
80
- size?: "base" | "sm" | "lg" | "xl" | null | undefined;
81
- } & ClassProp) | undefined) => string;
112
+ declare const breadcrumbVariants: (props?: ClassProp | undefined) => string;
82
113
 
83
114
  export declare const Button: FC<ButtonProps>;
84
115
 
116
+ declare type ButtonBaseProps = Partial<ButtonProps> & {
117
+ className?: string;
118
+ text?: string;
119
+ };
120
+
121
+ declare type ButtonCancelProps = ButtonBaseProps;
122
+
123
+ declare type ButtonConfirmProps = ButtonBaseProps;
124
+
85
125
  declare interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'disabled'>, VariantProps<typeof buttonVariants> {
126
+ ref?: Ref<HTMLButtonElement>;
86
127
  asChild?: boolean;
87
128
  disabled?: boolean;
88
129
  theme?: Theme;
89
130
  }
90
131
 
91
132
  declare const buttonVariants: (props?: ({
92
- variant?: "danger" | "circle" | "text" | "primary" | "secondary" | null | undefined;
133
+ variant?: "danger" | "text" | "primary" | "secondary" | null | undefined;
134
+ shape?: "circle" | null | undefined;
93
135
  version?: "default" | "alternate" | null | undefined;
94
136
  disabled?: boolean | null | undefined;
95
137
  size?: "medium" | "large" | null | undefined;
138
+ appearance?: "compact" | null | undefined;
96
139
  } & ClassProp) | undefined) => string;
97
140
 
98
141
  export declare const Card: FC<CardProps>;
@@ -111,7 +154,7 @@ declare const cardVariants: (props?: ({
111
154
 
112
155
  export declare const Checkbox: FC<CheckboxProps>;
113
156
 
114
- declare interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'checked'>, VariantProps<typeof checkboxVariants> {
157
+ declare interface CheckboxProps extends Omit<CheckboxProps_2, 'onChange'>, Omit<VariantProps<typeof checkboxVariants>, 'checked'> {
115
158
  ariaLabelledBy?: string;
116
159
  className?: string;
117
160
  defaultChecked?: boolean;
@@ -121,7 +164,7 @@ declare interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElemen
121
164
  labelClassName?: string;
122
165
  name?: string;
123
166
  theme?: Theme;
124
- onChange?: () => void;
167
+ onChange?: (checked: boolean) => void;
125
168
  }
126
169
 
127
170
  declare const checkboxVariants: (props?: ({
@@ -129,26 +172,71 @@ declare const checkboxVariants: (props?: ({
129
172
  checked?: boolean | null | undefined;
130
173
  } & ClassProp) | undefined) => string;
131
174
 
175
+ export declare const Content: ({ children, className, ...rest }: ReactTabs.TabsContentProps) => JSX.Element;
176
+
177
+ export declare const DateFilterDropdown: FC<DateFilterDropdownProps>;
178
+
179
+ declare type DateFilterDropdownProps = {
180
+ label: string;
181
+ position?: 'left' | 'right';
182
+ onApply?: (date?: Date) => void;
183
+ };
184
+
185
+ export declare const DatePicker: FC<DatePickerProps>;
186
+
187
+ declare type DatePickerProps = Omit<DayPickerProps, 'mode'> & VariantProps<typeof datePickerVariants> & {
188
+ arrowClassName?: string;
189
+ monthsClassName?: string;
190
+ timeZone?: TimeZone;
191
+ defaultSelected?: Date;
192
+ onSelect?: (date: Date) => void;
193
+ };
194
+
195
+ declare const datePickerVariants: (props?: ClassProp | undefined) => string;
196
+
132
197
  export declare const Divider: FC<HTMLAttributes<HTMLDivElement>>;
133
198
 
134
199
  export declare const Dropdown: FC<DropdownProps>;
135
200
 
201
+ export declare const DropdownButton: FC<Props>;
202
+
136
203
  declare interface DropdownProps extends VariantProps<typeof dropdownVariants>, Omit<React.InputHTMLAttributes<HTMLInputElement>, 'value' | 'onChange'> {
204
+ className?: string;
205
+ iconClassName?: string;
137
206
  isLoading?: boolean;
138
207
  label?: string;
139
208
  labelClassName?: string;
209
+ listClassName?: string;
210
+ listItemClassName?: string;
140
211
  options: Option_3[];
212
+ searchable?: boolean;
141
213
  theme?: Theme;
142
214
  value?: string;
215
+ wrapperClassName?: string;
143
216
  onChange?: OnChangeFn;
144
217
  }
145
218
 
146
219
  declare const dropdownVariants: (props?: ClassProp | undefined) => string;
147
220
 
148
- declare interface FilterProps extends React.InputHTMLAttributes<HTMLInputElement>, PropsWithChildren {
221
+ export declare const Filter: FilterComponentProps;
222
+
223
+ declare type FilterComponentProps = FC<FilterProps> & {
224
+ BadgeMultiSelect: FC<BadgeMultiSelectProps>;
225
+ DateFilterDropdown: FC<DateFilterDropdownProps>;
226
+ ResetButton: FC<ResetButtonProps>;
227
+ };
228
+
229
+ declare type FilterProps = VariantProps<typeof filterVariants> & PropsWithChildren & {
230
+ className?: string;
231
+ theme?: Theme;
232
+ };
233
+
234
+ declare interface FilterProps_2 extends React.InputHTMLAttributes<HTMLInputElement>, PropsWithChildren {
149
235
  placeholder?: string;
150
236
  }
151
237
 
238
+ declare const filterVariants: (props?: ClassProp | undefined) => string;
239
+
152
240
  export declare const Footer: FC<FooterProps>;
153
241
 
154
242
  declare interface FooterProps extends PropsWithChildren, VariantProps<typeof footerVariants> {
@@ -171,12 +259,21 @@ declare interface InputProps extends InputHTMLAttributes<HTMLInputElement>, Vari
171
259
  label?: string | ReactNode;
172
260
  labelClassName?: string;
173
261
  theme?: Theme;
262
+ isRequired?: boolean;
263
+ isSearch?: boolean;
264
+ helperText?: string;
174
265
  }
175
266
 
176
267
  declare const inputVariants: (props?: ({
177
268
  variant?: "error" | "default" | null | undefined;
178
269
  } & ClassProp) | undefined) => string;
179
270
 
271
+ export declare const List: FunctionComponent<ListProps>;
272
+
273
+ declare interface ListProps extends React.HTMLAttributes<HTMLDivElement>, PropsWithChildren {
274
+ orientation: 'horizontal' | 'vertical';
275
+ }
276
+
180
277
  export declare const Loading: FC<LoadingProps>;
181
278
 
182
279
  declare type LoadingProps = InputHTMLAttributes<SVGSVGElement> & VariantProps<typeof loadingVariants> & {
@@ -313,6 +410,19 @@ declare type Option_3 = {
313
410
  value: string;
314
411
  };
315
412
 
413
+ declare type Option_4 = {
414
+ label: string | ReactNode;
415
+ onClick?: VoidFunction;
416
+ };
417
+
418
+ declare type Option_5 = {
419
+ id: string;
420
+ label: string;
421
+ variant?: BadgeProps['variant'];
422
+ };
423
+
424
+ export declare const PieChart: FC<Props_2>;
425
+
316
426
  export declare const ProgressBar: FC<ProgressBarProps>;
317
427
 
318
428
  declare interface ProgressBarProps extends VariantProps<typeof progressBarVariants> {
@@ -325,6 +435,92 @@ declare interface ProgressBarProps extends VariantProps<typeof progressBarVarian
325
435
 
326
436
  declare const progressBarVariants: (props?: ClassProp | undefined) => string;
327
437
 
438
+ declare type Props = {
439
+ buttonClassName?: string;
440
+ className?: string;
441
+ itemClassName?: string;
442
+ listClassName?: string;
443
+ options: Option_4[];
444
+ };
445
+
446
+ /**
447
+ * Props for the PieChart component
448
+ */
449
+ declare type Props_2 = {
450
+ /**
451
+ * Array of hexadecimal colors for the borders of the pie chart segments
452
+ * @default ['#FFFFFF', '#FFFFFF']
453
+ */
454
+ borderColors?: HexColor[];
455
+ /**
456
+ * Width of the border for pie chart segments in pixels
457
+ * @default 0
458
+ */
459
+ borderWidth?: number;
460
+ /**
461
+ * Array of hexadecimal colors for filling the pie chart segments
462
+ * @default ['#525252', '#00D492']
463
+ */
464
+ colors?: HexColor[];
465
+ /**
466
+ * Percentage of the pie chart's center that should be cut out, creating a donut chart effect
467
+ * @default 80
468
+ */
469
+ cutoutPercentage?: number;
470
+ /**
471
+ * Whether to redraw the entire chart when props change
472
+ * @default true
473
+ */
474
+ redraw?: boolean;
475
+ /**
476
+ * Hexadecimal color for the subtitle text
477
+ * @default '#6B7280'
478
+ */
479
+ subtitleColor?: HexColor;
480
+ /**
481
+ * Font size for the subtitle in pixels
482
+ * @default 14
483
+ */
484
+ subtitleFontSize?: number;
485
+ /**
486
+ * Font weight for the subtitle
487
+ * @default 'normal'
488
+ */
489
+ subtitleFontWeight?: 'bold' | 'normal';
490
+ /**
491
+ * Hexadecimal color for the title text
492
+ * @default '#111827'
493
+ */
494
+ titleColor?: HexColor;
495
+ /**
496
+ * Font size for the title in pixels
497
+ * @default 16
498
+ */
499
+ titleFontSize?: number;
500
+ /**
501
+ * Font weight for the title
502
+ * @default 'bold'
503
+ */
504
+ titleFontWeight?: 'bold' | 'normal';
505
+ /**
506
+ * Array of numeric values representing data for each segment of the pie chart
507
+ * @required
508
+ */
509
+ values: number[];
510
+ } &
511
+ /**
512
+ * Union type that enforces either:
513
+ * - No title and no subtitle
514
+ * - Title with optional subtitle
515
+ */
516
+ ({
517
+ title?: undefined;
518
+ subtitle?: never;
519
+ } | {
520
+ title: string;
521
+ subtitle?: string;
522
+ });
523
+
328
524
  export declare const Radio: FC<RadioProps>;
329
525
 
330
526
  export declare const RadioCard: FC<RadioCardProps>;
@@ -343,7 +539,7 @@ declare type RadioCardGroupProps = {
343
539
  onValueChange?: (value: string) => void;
344
540
  };
345
541
 
346
- declare type RadioCardProps = Omit<CardProps, 'canHover' | 'isActive'> & Pick<RadioProps, 'name' | 'value' | 'checked' | 'onChange' | 'label' | 'disabled' | 'defaultChecked' | 'labelTextClassName'> & {
542
+ declare type RadioCardProps = Omit<CardProps, 'canHover' | 'isActive'> & Pick<RadioProps, 'name' | 'value' | 'checked' | 'onChange' | 'label' | 'disabled' | 'defaultChecked' | 'labelTextClassName' | 'description' | 'descriptionClassName'> & {
347
543
  labelWrapperClassName?: string;
348
544
  theme?: Theme;
349
545
  };
@@ -370,6 +566,8 @@ declare interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>,
370
566
  label?: string | ReactNode;
371
567
  labelTextClassName?: string;
372
568
  name: string;
569
+ description?: string | ReactNode;
570
+ descriptionClassName?: string;
373
571
  value: string;
374
572
  wrapperClassName?: string;
375
573
  theme?: Theme;
@@ -398,6 +596,11 @@ declare interface RangeProps extends VariantProps<typeof rangeVariants> {
398
596
 
399
597
  declare const rangeVariants: (props?: ClassProp | undefined) => string;
400
598
 
599
+ declare type ResetButtonProps = {
600
+ disabled?: boolean;
601
+ onClick?: VoidFunction;
602
+ };
603
+
401
604
  declare interface RowProps extends React.HTMLAttributes<HTMLTableRowElement>, PropsWithChildren, VariantProps<typeof rowVariants> {
402
605
  width?: string;
403
606
  isSelected?: boolean;
@@ -448,6 +651,7 @@ declare type Step = {
448
651
  to?: string;
449
652
  target?: '_self' | '_blank';
450
653
  isActive?: boolean;
654
+ component?: FC<any>;
451
655
  };
452
656
 
453
657
  export declare const Switch: FC<SwitchProps>;
@@ -469,7 +673,7 @@ declare const switchVariants: (props?: ClassProp | undefined) => string;
469
673
  export declare const Table: FC<TableProps> & {
470
674
  Head: FC<HeadProps>;
471
675
  Row: FC<RowProps>;
472
- Filter: FC<FilterProps>;
676
+ Filter: FC<FilterProps_2>;
473
677
  Body: FC<BodyProps>;
474
678
  };
475
679
 
@@ -479,6 +683,16 @@ declare interface TableProps extends React.HTMLAttributes<HTMLTableElement>, Pro
479
683
 
480
684
  declare const tableVariants: (props?: ClassProp | undefined) => string;
481
685
 
686
+ export declare const Tabs: FunctionComponent<TabsProps> & {
687
+ List: FunctionComponent<ListProps>;
688
+ Trigger: FunctionComponent<TriggerProps>;
689
+ Content: FunctionComponent<ReactTabs.TabsContentProps>;
690
+ };
691
+
692
+ declare interface TabsProps extends ReactTabs.TabsProps, PropsWithChildren {
693
+ theme?: Theme;
694
+ }
695
+
482
696
  export declare const Tag: FC<TagProps>;
483
697
 
484
698
  declare type TagProps = {
@@ -538,6 +752,25 @@ declare type ThemeProps = {
538
752
 
539
753
  export declare const ThemeProvider: FC<ThemeContextProps>;
540
754
 
755
+ export declare const TimePicker: FC<TimePickerProps>;
756
+
757
+ declare type TimePickerProps = VariantProps<typeof timePickerVariants> & {
758
+ format?: '12' | '24';
759
+ scrollBehavior?: 'smooth' | 'auto';
760
+ time?: Date;
761
+ name?: string;
762
+ label?: string;
763
+ required?: boolean;
764
+ className?: string;
765
+ listClassName?: string;
766
+ listItemClassName?: string;
767
+ listItemButtonClassName?: string;
768
+ };
769
+
770
+ declare const timePickerVariants: (props?: ClassProp | undefined) => string;
771
+
772
+ declare type TimeZone = keyof ReturnType<typeof getAllTimezones>;
773
+
541
774
  export declare const Toast: FC<ToastProps>;
542
775
 
543
776
  declare interface ToastProps extends PropsWithChildren, VariantProps<typeof toastVariants> {
@@ -566,7 +799,19 @@ declare interface TooltipProps extends PropsWithChildren, VariantProps<typeof to
566
799
  }
567
800
 
568
801
  declare const tooltipVariants: (props?: ({
569
- position?: "left" | "right" | "top" | "bottom" | null | undefined;
802
+ position?: "left" | "right" | "bottom" | "top" | null | undefined;
803
+ } & ClassProp) | undefined) => string;
804
+
805
+ export declare const Trigger: FunctionComponent<TriggerProps>;
806
+
807
+ declare interface TriggerProps extends VariantProps<typeof triggerVariants>, React.HTMLAttributes<HTMLDivElement> {
808
+ tab: string;
809
+ label: string;
810
+ isActive: boolean;
811
+ }
812
+
813
+ declare const triggerVariants: (props?: ({
814
+ variant?: "default" | "active" | "inactive" | null | undefined;
570
815
  } & ClassProp) | undefined) => string;
571
816
 
572
817
  export declare const Typography: FC<TypographyProps>;