@konstructio/ui 0.1.2-alpha.4 → 0.1.2-alpha.40

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 (179) hide show
  1. package/dist/{Combination-VYaRRJBZ.js → Combination-BtmnusWq.js} +141 -138
  2. package/dist/DatePicker.css +1 -1
  3. package/dist/Modal-CtAG97Ts.js +99 -0
  4. package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
  5. package/dist/chevron-down-DgT-uSF9.js +5 -0
  6. package/dist/chevron-left-C4LEg1fH.js +7 -0
  7. package/dist/chevron-up-CRyLc5Ml.js +54 -0
  8. package/dist/chevron-up-DrQr2Fwd.js +5 -0
  9. package/dist/components/Alert/Alert.js +2 -2
  10. package/dist/components/AlertDialog/AlertDialog.js +1 -1
  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 +42 -44
  14. package/dist/components/Badge/Badge.variants.js +8 -6
  15. package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
  16. package/dist/components/Breadcrumb/components/Item/Item.js +24 -23
  17. package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +1 -1
  18. package/dist/components/Button/Button.js +1 -1
  19. package/dist/components/Button/Button.variants.js +1 -1
  20. package/dist/components/Card/Card.variants.js +5 -9
  21. package/dist/components/Checkbox/Checkbox.js +6 -6
  22. package/dist/components/Command/Command.js +2 -2
  23. package/dist/components/Command/components/Command.js +1 -1
  24. package/dist/components/Command/components/CommandEmpty.js +1 -1
  25. package/dist/components/Command/components/CommandGroup.js +1 -1
  26. package/dist/components/Command/components/CommandInput.js +2 -2
  27. package/dist/components/Command/components/CommandItem.js +1 -1
  28. package/dist/components/Command/components/CommandList.js +1 -1
  29. package/dist/components/Command/components/CommandSeparator.js +1 -1
  30. package/dist/components/Command/components/DialogContent.js +2 -2
  31. package/dist/components/Command/components/DialogOverlay.js +1 -1
  32. package/dist/components/Datepicker/DatePicker.js +1243 -1191
  33. package/dist/components/Divider/Divider.variants.js +1 -1
  34. package/dist/components/Dropdown/Dropdown.js +37 -31
  35. package/dist/components/Dropdown/Dropdown.variants.js +9 -4
  36. package/dist/components/Dropdown/components/List/List.js +128 -59
  37. package/dist/components/Dropdown/components/ListItem/ListItem.js +90 -39
  38. package/dist/components/Dropdown/components/Wrapper.js +141 -134
  39. package/dist/components/Dropdown/constants/index.js +4 -0
  40. package/dist/components/Dropdown/constants/pagination.js +4 -0
  41. package/dist/components/Dropdown/contexts/dropdown.context.js +17 -0
  42. package/dist/components/Dropdown/contexts/dropdown.provider.js +48 -20
  43. package/dist/components/Dropdown/hooks/useDropdown.js +74 -29
  44. package/dist/components/Dropdown/hooks/useNavigationList.js +27 -39
  45. package/dist/components/DropdownButton/DropdownButton.js +1 -1
  46. package/dist/components/Filter/Filter.variants.js +2 -2
  47. package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +1 -1
  48. package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +1 -1
  49. package/dist/components/Input/Input.js +1 -1
  50. package/dist/components/Input/Input.variants.js +2 -1
  51. package/dist/components/Loading/Loading.js +1 -7
  52. package/dist/components/Modal/Modal.js +2 -2
  53. package/dist/components/Modal/components/Body/Body.js +1 -1
  54. package/dist/components/Modal/components/Footer/Footer.js +1 -1
  55. package/dist/components/Modal/components/Header/Header.js +1 -1
  56. package/dist/components/Modal/components/Wrapper/Wrapper.js +4 -4
  57. package/dist/components/Modal/components/index.js +1 -1
  58. package/dist/components/MultiSelectDropdown/MultiSelectDropdown.js +34 -0
  59. package/dist/components/MultiSelectDropdown/MultiSelectDropdown.variants.js +34 -0
  60. package/dist/components/MultiSelectDropdown/components/Item/Item.js +38 -0
  61. package/dist/components/MultiSelectDropdown/components/Item/Item.variants.js +38 -0
  62. package/dist/components/MultiSelectDropdown/components/List/List.js +37 -0
  63. package/dist/components/MultiSelectDropdown/components/List/List.variants.js +23 -0
  64. package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +105 -0
  65. package/dist/components/MultiSelectDropdown/components/index.js +8 -0
  66. package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.context.js +21 -0
  67. package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.hook.js +13 -0
  68. package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.provider.js +138 -0
  69. package/dist/components/MultiSelectDropdown/contexts/index.js +6 -0
  70. package/dist/components/MultiSelectDropdown/hooks/useMultiSelectDropdown.js +32 -0
  71. package/dist/components/NumberInput/NumberInput.js +2 -2
  72. package/dist/components/PhoneNumberInput/PhoneNumberInput.js +8 -0
  73. package/dist/components/PhoneNumberInput/PhoneNumberInput.variants.js +46 -0
  74. package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +27 -0
  75. package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +629 -0
  76. package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +36 -0
  77. package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +45 -0
  78. package/dist/components/PhoneNumberInput/components/Wrapper.js +625 -0
  79. package/dist/components/PhoneNumberInput/components/index.js +6 -0
  80. package/dist/components/PhoneNumberInput/contexts/index.js +8 -0
  81. package/dist/components/PhoneNumberInput/contexts/phone-number.context.js +28 -0
  82. package/dist/components/PhoneNumberInput/contexts/phone-number.hook.js +13 -0
  83. package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +6144 -0
  84. package/dist/components/PhoneNumberInput/utils/index.js +11 -0
  85. package/dist/components/PieChart/PieChart.js +647 -664
  86. package/dist/components/RadioCard/RadioCard.variants.js +1 -6
  87. package/dist/components/RadioGroup/RadioGroup.js +1 -1
  88. package/dist/components/Range/Range.js +1 -1
  89. package/dist/components/Sidebar/Sidebar.variants.js +2 -2
  90. package/dist/components/Sidebar/components/Wrapper/Wrapper.js +29 -28
  91. package/dist/components/Slider/Slider.js +1 -1
  92. package/dist/components/Switch/Switch.js +8 -8
  93. package/dist/components/Switch/Switch.variants.js +4 -4
  94. package/dist/components/Tabs/Tabs.js +1 -1
  95. package/dist/components/Tabs/Tabs.variants.js +1 -1
  96. package/dist/components/Tabs/components/Content.js +1 -1
  97. package/dist/components/Tabs/components/List.js +1 -1
  98. package/dist/components/Tabs/components/Trigger.js +1 -1
  99. package/dist/components/Tag/Tag.js +1 -1
  100. package/dist/components/Tag/Tag.variants.js +1 -0
  101. package/dist/components/TagSelect/components/Wrapper/Wrapper.js +49 -98
  102. package/dist/components/TimePicker/TimePicker.variants.js +2 -2
  103. package/dist/components/TimePicker/components/Wrapper/Wrapper.js +2 -2
  104. package/dist/components/Toast/Toast.js +283 -255
  105. package/dist/components/Toast/Toast.variants.js +37 -24
  106. package/dist/components/Tooltip/Tooltip.js +15 -14
  107. package/dist/components/Tooltip/Tooltip.variants.js +5 -4
  108. package/dist/components/Typography/Typography.variants.js +18 -23
  109. package/dist/components/VirtualizedTable/VirtualizedTable.js +121 -0
  110. package/dist/components/VirtualizedTable/VirtualizedTable.variants.js +5 -0
  111. package/dist/components/VirtualizedTable/assets/chevron-down.js +25 -0
  112. package/dist/components/VirtualizedTable/assets/chevron-up.js +25 -0
  113. package/dist/components/VirtualizedTable/assets/index.js +6 -0
  114. package/dist/components/VirtualizedTable/components/Actions/Actions.js +72 -0
  115. package/dist/components/VirtualizedTable/components/Body/Body.js +51 -0
  116. package/dist/components/VirtualizedTable/components/DotPaginate/DotPaginate.js +165 -0
  117. package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +34 -0
  118. package/dist/components/VirtualizedTable/components/Filter/Filter.js +93 -0
  119. package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +48 -0
  120. package/dist/components/VirtualizedTable/components/Header/Header.js +84 -0
  121. package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +53 -0
  122. package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +67 -0
  123. package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +34 -0
  124. package/dist/components/VirtualizedTable/components/WrapperBody/WrapperBody.js +27 -0
  125. package/dist/components/VirtualizedTable/components/index.js +16 -0
  126. package/dist/components/VirtualizedTable/constants/index.js +5 -0
  127. package/dist/components/VirtualizedTable/constants/pagination.js +5 -0
  128. package/dist/components/VirtualizedTable/contexts/index.js +8 -0
  129. package/dist/components/VirtualizedTable/contexts/table.context.js +32 -0
  130. package/dist/components/VirtualizedTable/contexts/table.hook.js +11 -0
  131. package/dist/components/VirtualizedTable/contexts/table.provider.js +85 -0
  132. package/dist/components/index.js +88 -80
  133. package/dist/contexts/theme.provider.js +0 -1
  134. package/dist/{createLucideIcon-DbC6TvM5.js → createLucideIcon-D4r5Phnh.js} +0 -24
  135. package/dist/debounce-BFejQm9P.js +200 -0
  136. package/dist/ellipsis-vertical-BVPtjl5f.js +9 -0
  137. package/dist/{index-h-Ul0anl.js → index--V_ZsiQe.js} +1 -22
  138. package/dist/index-2hB40Iuc.js +1873 -0
  139. package/dist/index-BZPx6jYI.js +8 -0
  140. package/dist/{index-bwWKd82e.js → index-BbQkJE5L.js} +1 -1
  141. package/dist/index-BtQfgaSF.js +60 -0
  142. package/dist/index-C3tHPg8y.js +662 -0
  143. package/dist/index-C65LtGuU.js +137 -0
  144. package/dist/index-CIAmiWcw.js +200 -0
  145. package/dist/index-CSFe9uC5.js +14 -0
  146. package/dist/index-CSWGJT-v.js +1722 -0
  147. package/dist/{index-D3xzCzcO.js → index-CdwPV0FE.js} +4 -4
  148. package/dist/index-CigKKiZS.js +91 -0
  149. package/dist/{index-BAraV3ai.js → index-DH2Fnov1.js} +11 -12
  150. package/dist/index-DLcqcWxM.js +29 -0
  151. package/dist/index-Dbt2vBmS.js +136 -0
  152. package/dist/{index-DB2XhXHn.js → index-DpW9ExsS.js} +7 -7
  153. package/dist/index-DrWQH0QF.js +55 -0
  154. package/dist/index-Ds6U2x4Z.js +479 -0
  155. package/dist/{index-C1g_chDT.js → index-mPY_8Y5v.js} +2 -2
  156. package/dist/index-ohdbKsws.js +27 -0
  157. package/dist/index.d.ts +232 -23
  158. package/dist/index.js +112 -102
  159. package/dist/libphonenumber-_7ZyKWA7.js +11549 -0
  160. package/dist/loader-juvMSJ9L.js +5 -0
  161. package/dist/package.json +48 -34
  162. package/dist/styles.css +1 -1
  163. package/dist/ui/civo-theme.css +191 -167
  164. package/dist/{useBreadcrumb-B8DnuqkR.js → useBreadcrumb-BAHbGQ_O.js} +0 -10
  165. package/dist/utils/index.js +534 -501
  166. package/dist/{x-BPcqkRZd.js → x-DPU9OdYH.js} +1 -1
  167. package/package.json +48 -34
  168. package/dist/Modal-V67Uz78z.js +0 -98
  169. package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
  170. package/dist/chevron-down-BLZPftpV.js +0 -11
  171. package/dist/index-BXuxPoz7.js +0 -435
  172. package/dist/index-BfXxHr_2.js +0 -125
  173. package/dist/index-C9T9HQaa.js +0 -423
  174. package/dist/index-CZnD2QxM.js +0 -32
  175. package/dist/index-CrBonFvu.js +0 -144
  176. package/dist/index-Cvx4lqTq.js +0 -47
  177. package/dist/index-DQH6odE9.js +0 -82
  178. package/dist/index-Oq5GlCHP.js +0 -131
  179. package/dist/index-iXyXtdgP.js +0 -31
package/dist/index.d.ts CHANGED
@@ -1,7 +1,10 @@
1
1
  import { AlertDialogProps as AlertDialogProps_2 } from '@radix-ui/react-alert-dialog';
2
2
  import { ButtonHTMLAttributes } from 'react';
3
+ import { CellContext } from '@tanstack/react-table';
3
4
  import { CheckboxProps as CheckboxProps_2 } from '@radix-ui/react-checkbox';
4
5
  import { ClassProp } from 'class-variance-authority/types';
6
+ import { ClassValue } from 'clsx';
7
+ import { ColumnDef as ColumnDef_2 } from '@tanstack/react-table';
5
8
  import { ComponentRef } from 'react';
6
9
  import { Context } from 'react';
7
10
  import { DayPickerProps } from 'react-day-picker';
@@ -11,15 +14,26 @@ import { getAllTimezones } from 'countries-and-timezones';
11
14
  import { HTMLAttributes } from 'react';
12
15
  import { HtmlHTMLAttributes } from 'react';
13
16
  import { InputHTMLAttributes } from 'react';
17
+ import { JSX } from 'react/jsx-runtime';
18
+ import { JSX as JSX_2 } from 'react';
14
19
  import { PropsWithChildren } from 'react';
15
20
  import { ReactNode } from 'react';
16
21
  import * as ReactTabs from '@radix-ui/react-tabs';
17
22
  import { Ref } from 'react';
18
23
  import { RefAttributes } from 'react';
24
+ import { RegionCode } from 'google-libphonenumber';
25
+ import { RowData as RowData_2 } from '@tanstack/react-table';
19
26
  import { SliderProps } from '@radix-ui/react-slider';
20
27
  import { TabsContentProps } from '@radix-ui/react-tabs';
28
+ import { UseQueryOptions } from '@tanstack/react-query';
21
29
  import { VariantProps } from 'class-variance-authority';
22
30
 
31
+ declare type Action<TData> = {
32
+ label: string | React.ReactNode;
33
+ onClick: (rowData: TData) => void;
34
+ className?: string;
35
+ };
36
+
23
37
  export declare const Alert: FC<AlertProps>;
24
38
 
25
39
  export declare const AlertDialog: FC<AlertDialogProps>;
@@ -81,16 +95,17 @@ declare type BadgeMultiSelectProps = {
81
95
  };
82
96
 
83
97
  declare type BadgeProps = VariantProps<typeof badgeVariants> & {
84
- label: string;
85
98
  className?: string;
86
- loading?: boolean;
87
99
  dismissible?: true;
100
+ label: string;
101
+ leftIcon?: ReactNode;
102
+ loading?: boolean;
88
103
  onClick?: VoidFunction;
89
104
  onDismiss?: VoidFunction;
90
105
  };
91
106
 
92
107
  declare const badgeVariants: (props?: ({
93
- variant?: "info" | "warning" | "danger" | "default" | "success" | null | undefined;
108
+ variant?: "info" | "warning" | "danger" | "default" | "success" | "violet" | null | undefined;
94
109
  size?: "default" | null | undefined;
95
110
  } & ClassProp) | undefined) => string;
96
111
 
@@ -170,8 +185,14 @@ declare const checkboxVariants: (props?: ({
170
185
  checked?: boolean | null | undefined;
171
186
  } & ClassProp) | undefined) => string;
172
187
 
188
+ export declare const cn: (...inputs: ClassValue[]) => string;
189
+
190
+ export declare type ColumnDef<TData extends RowData> = ColumnDef_2<TData, string>;
191
+
173
192
  export declare const Content: FC<TabsContentProps>;
174
193
 
194
+ declare type CSSColor = `var(--${string})` | `rgb(${number}, ${number}, ${number})` | `rgba(${number}, ${number}, ${number}, ${number})` | `hsl(${number}, ${number}%, ${number}%)` | `hsla(${number}, ${number}%, ${number}%, ${number})`;
195
+
175
196
  export declare const DateFilterDropdown: FC<DateFilterDropdownProps>;
176
197
 
177
198
  declare type DateFilterDropdownProps = {
@@ -201,6 +222,7 @@ export declare const DropdownButton: FC<Props>;
201
222
  declare type DropdownProps = VariantProps<typeof dropdownVariants> & Omit<InputHTMLAttributes<HTMLInputElement>, 'value' | 'onChange'> & {
202
223
  additionalOptions?: ReactNode[] | string[];
203
224
  className?: string;
225
+ disabled?: boolean;
204
226
  error?: string;
205
227
  helperText?: string;
206
228
  highlightSearch?: boolean;
@@ -212,22 +234,48 @@ declare type DropdownProps = VariantProps<typeof dropdownVariants> & Omit<InputH
212
234
  labelClassName?: string;
213
235
  listClassName?: string;
214
236
  listItemClassName?: string;
237
+ listItemSecondRowClassName?: string;
238
+ mainWrapperClassName?: string;
215
239
  options: Option_3[];
216
240
  searchable?: boolean;
217
241
  showSearchIcon?: boolean;
218
242
  theme?: Theme;
219
243
  value?: string;
220
244
  wrapperClassName?: string;
245
+ errorClassName?: string;
246
+ helperTextClassName?: string;
221
247
  onBlur?: VoidFunction;
222
248
  onChange?: OnChangeFn;
223
- };
249
+ onSearchChange?: (searchTerm: string) => void;
250
+ noOptionsText?: string;
251
+ } & ({
252
+ isInfiniteScrollEnabled: true;
253
+ onFetchMoreOptions: (params: {
254
+ page: number;
255
+ pageSize: number;
256
+ termOfSearch?: string;
257
+ }) => Promise<{
258
+ data: Option_3[];
259
+ hasMore: boolean;
260
+ }>;
261
+ } | {
262
+ isInfiniteScrollEnabled?: false | undefined;
263
+ onFetchMoreOptions?: never;
264
+ });
224
265
 
225
266
  declare const dropdownVariants: (props?: ({
226
267
  hasError?: boolean | null | undefined;
268
+ disabled?: boolean | null | undefined;
227
269
  } & ClassProp) | undefined) => string;
228
270
 
229
271
  export declare const Filter: FilterComponentProps;
230
272
 
273
+ declare type FilterAction = {
274
+ label: string;
275
+ onClick: () => void;
276
+ variant?: ButtonProps['variant'];
277
+ };
278
+
231
279
  declare type FilterComponentProps = FC<FilterProps> & {
232
280
  BadgeMultiSelect: FC<BadgeMultiSelectProps>;
233
281
  DateFilterDropdown: FC<DateFilterDropdownProps>;
@@ -266,13 +314,13 @@ export declare const Input: ForwardRefExoticComponent<InputProps & RefAttributes
266
314
 
267
315
  declare interface InputProps extends InputHTMLAttributes<HTMLInputElement>, VariantProps<typeof inputVariants> {
268
316
  error?: string;
317
+ helperText?: string;
318
+ helperTextClassName?: string;
319
+ isRequired?: boolean;
320
+ isSearch?: boolean;
269
321
  label?: string | ReactNode;
270
322
  labelClassName?: string;
271
323
  theme?: Theme;
272
- isRequired?: boolean;
273
- isSearch?: boolean;
274
- helperText?: string;
275
- helperTextClassName?: string;
276
324
  }
277
325
 
278
326
  declare const inputVariants: (props?: ({
@@ -318,12 +366,47 @@ declare interface ModalProps extends PropsWithChildren, VariantProps<typeof moda
318
366
  className?: string;
319
367
  container?: Element | DocumentFragment;
320
368
  isOpen?: boolean;
369
+ showCloseButton?: boolean;
321
370
  theme?: Theme;
322
371
  onClose?: () => void;
323
372
  }
324
373
 
325
374
  declare const modalVariants: (props?: ClassProp | undefined) => string;
326
375
 
376
+ export declare const MultiSelectDropdown: FC<MultiSelectDropdownProps>;
377
+
378
+ declare type MultiSelectDropdownOption = {
379
+ id: string | number;
380
+ label: string;
381
+ tagLabel?: string;
382
+ tagColor?: TagProps['color'];
383
+ value?: string;
384
+ };
385
+
386
+ declare interface MultiSelectDropdownProps extends VariantProps<typeof multiSelectDropdownVariants>, Omit<InputHTMLAttributes<HTMLInputElement>, 'value' | 'onChange' | 'onBlur'> {
387
+ label?: string;
388
+ options: MultiSelectDropdownOption[];
389
+ name?: string;
390
+ placeholder?: string;
391
+ labelClassName?: string;
392
+ wrapperClassName?: string;
393
+ multiselect?: boolean;
394
+ value?: MultiSelectDropdownOption[];
395
+ onChange?: OnChangeFn_2;
396
+ onBlur?: OnBlurFn;
397
+ isLoading?: boolean;
398
+ noOptionsText?: string;
399
+ }
400
+
401
+ declare const multiSelectDropdownVariants: (props?: ClassProp | undefined) => string;
402
+
403
+ declare type MultiSelectFilter = {
404
+ key: string;
405
+ label: string;
406
+ position?: 'right' | 'left';
407
+ options: Option_5[];
408
+ };
409
+
327
410
  export declare const Navigation: FC<NavigationProps> & NavigationChildrenProps;
328
411
 
329
412
  declare type NavigationChildrenProps = {
@@ -405,6 +488,11 @@ declare interface NumberInputProps extends VariantProps<typeof numberInputVarian
405
488
 
406
489
  declare const numberInputVariants: (props?: ClassProp | undefined) => string;
407
490
 
491
+ declare type OnBlurFn = (event: {
492
+ target: HTMLInputElement | null;
493
+ type?: string;
494
+ }) => void;
495
+
408
496
  declare type OnChangeFn = (params: {
409
497
  target: {
410
498
  value: string;
@@ -412,13 +500,26 @@ declare type OnChangeFn = (params: {
412
500
  };
413
501
  }) => void;
414
502
 
503
+ declare type OnChangeFn_2 = (params: {
504
+ target: {
505
+ value: MultiSelectDropdownOption[];
506
+ name: string;
507
+ };
508
+ }) => void;
509
+
415
510
  declare type Option_2 = {
416
511
  value: string;
417
512
  };
418
513
 
419
514
  declare type Option_3 = {
420
- label: string | ReactNode;
515
+ label: string;
516
+ subLabel?: string | ReactNode;
421
517
  leftIcon?: ReactNode | string;
518
+ leftIconClassName?: string;
519
+ showRightComponentOnselectedValue?: boolean;
520
+ rightComponent?: ReactNode | string;
521
+ rightComponentClassName?: string;
522
+ wrapperClassNameOnSelectedValue?: string;
422
523
  value: string;
423
524
  };
424
525
 
@@ -433,7 +534,9 @@ declare type Option_5 = {
433
534
  variant?: BadgeProps['variant'];
434
535
  };
435
536
 
436
- export declare const PieChart: FC<Props_2>;
537
+ export declare const PhoneNumberInput: FC<Props_2>;
538
+
539
+ export declare const PieChart: FC<Props_3>;
437
540
 
438
541
  export declare const ProgressBar: FC<ProgressBarProps>;
439
542
 
@@ -461,15 +564,33 @@ declare type Props = {
461
564
  options: Option_4[];
462
565
  };
463
566
 
567
+ declare type Props_2 = InputHTMLAttributes<HTMLInputElement> & {
568
+ defaultCountryCode?: RegionCode;
569
+ disabled?: boolean;
570
+ error?: string;
571
+ helperText?: string;
572
+ helperTextClassName?: string;
573
+ isRequired?: boolean;
574
+ label?: string;
575
+ labelClassName?: string;
576
+ name?: string;
577
+ placeholder?: string;
578
+ showFlagOnSearch?: boolean;
579
+ showInputFilter?: boolean;
580
+ showNameOnSearch?: boolean;
581
+ showPlaceHolder?: boolean;
582
+ wrapperClassName?: string;
583
+ };
584
+
464
585
  /**
465
586
  * Props for the PieChart component
466
587
  */
467
- declare type Props_2 = {
588
+ declare type Props_3 = {
468
589
  /**
469
590
  * Array of hexadecimal colors for the borders of the pie chart segments
470
591
  * @default ['#FFFFFF', '#FFFFFF']
471
592
  */
472
- borderColors?: HexColor[];
593
+ borderColors?: HexColor[] | CSSColor[] | (HexColor | CSSColor)[];
473
594
  /**
474
595
  * Width of the border for pie chart segments in pixels
475
596
  * @default 0
@@ -479,7 +600,7 @@ declare type Props_2 = {
479
600
  * Array of hexadecimal colors for filling the pie chart segments
480
601
  * @default ['#525252', '#00D492']
481
602
  */
482
- colors?: HexColor[];
603
+ colors?: HexColor[] | CSSColor[] | (HexColor | CSSColor)[];
483
604
  /**
484
605
  * Percentage of the pie chart's center that should be cut out, creating a donut chart effect
485
606
  * @default 80
@@ -525,13 +646,11 @@ declare type Props_2 = {
525
646
  * @required
526
647
  */
527
648
  values: number[];
528
- } &
529
- /**
649
+ } /**
530
650
  * Union type that enforces either:
531
651
  * - No title and no subtitle
532
652
  * - Title with optional subtitle
533
- */
534
- ({
653
+ */ & ({
535
654
  title?: undefined;
536
655
  subtitle?: never;
537
656
  } | {
@@ -539,6 +658,70 @@ declare type Props_2 = {
539
658
  subtitle?: string;
540
659
  });
541
660
 
661
+ declare type Props_4<TData extends RowData> = CellContext<TData, string> & {
662
+ value?: string;
663
+ };
664
+
665
+ declare type Props_5<TData extends RowData_2> = VariantProps<typeof virtualizeTableVariants> & {
666
+ id: string | string[];
667
+ ariaLabel?: string;
668
+ columns: ColumnDef_2<TData, string>[];
669
+ data: TData[];
670
+ className?: string;
671
+ classNameHeaderActiveArrows?: string;
672
+ classNameHeaderArrows?: string;
673
+ classNameHeaderTable?: string;
674
+ classNameTable?: string;
675
+ classNameWrapperTable?: string;
676
+ queryOptions?: Omit<UseQueryOptions<any, any, any, any>, 'queryKey' | 'queryFn'>;
677
+ isLoading?: boolean;
678
+ fetchData?: (params: Record<string, string | number | string[] | number[] | undefined>) => Promise<{
679
+ data: TData[];
680
+ totalItemsCount?: number;
681
+ }>;
682
+ } & ({
683
+ showPagination: true;
684
+ showTotalItems?: boolean;
685
+ showDropdownPagination?: boolean;
686
+ showDotPagination?: boolean;
687
+ showFormPagination?: boolean;
688
+ pageSizes?: number[] | string[];
689
+ totalItems: number;
690
+ } | {
691
+ showPagination?: false | undefined;
692
+ showTotalItems?: never;
693
+ showDropdownPagination?: never;
694
+ showDotPagination?: never;
695
+ showFormPagination?: never;
696
+ pageSizes?: never;
697
+ totalItems?: never;
698
+ }) & ({
699
+ filterSearchPlaceholder?: string;
700
+ multiSelectFilter?: MultiSelectFilter[];
701
+ showFilter: true;
702
+ showFilterInput?: boolean;
703
+ filterActions?: FilterAction[];
704
+ showResetButton?: boolean;
705
+ resetButtonClassName?: string;
706
+ } | {
707
+ filterSearchPlaceholder?: never;
708
+ multiSelectFilter?: never;
709
+ showFilter?: false | undefined;
710
+ showFilterInput?: never;
711
+ filterActions?: FilterAction[];
712
+ showResetButton?: never;
713
+ resetButtonClassName?: never;
714
+ });
715
+
716
+ declare type Props_6<TData extends RowData> = CellContext<TData, unknown> & {
717
+ actions: Action<TData>[];
718
+ iconTriggerButtonClassName?: string;
719
+ triggerButtonClassName?: string;
720
+ wrapperActionsClassName?: string;
721
+ wrapperClassName?: string;
722
+ wrapperContentActionsClassName?: string;
723
+ };
724
+
542
725
  export declare const Radio: FC<RadioProps>;
543
726
 
544
727
  export declare const RadioCard: FC<RadioCardProps>;
@@ -619,6 +802,8 @@ declare type ResetButtonProps = ButtonProps & {
619
802
  onClick?: VoidFunction;
620
803
  };
621
804
 
805
+ export declare type RowData = RowData_2;
806
+
622
807
  declare interface RowProps extends React.HTMLAttributes<HTMLTableRowElement>, PropsWithChildren, VariantProps<typeof rowVariants> {
623
808
  width?: string;
624
809
  isSelected?: boolean;
@@ -641,11 +826,12 @@ declare type SidebarChildrenProps = {
641
826
  };
642
827
 
643
828
  declare interface SidebarProps extends VariantProps<typeof wrapperSiderbarVariants>, PropsWithChildren {
644
- wrapperClassName?: string;
645
- minWith?: number;
646
- maxWith?: number;
647
829
  canResize?: boolean;
830
+ dividerClassName?: string;
831
+ maxWith?: number;
832
+ minWith?: number;
648
833
  theme?: Theme;
834
+ wrapperClassName?: string;
649
835
  }
650
836
 
651
837
  export declare const Slider: FC<SliderProps_2>;
@@ -715,7 +901,7 @@ declare interface TabsProps extends ReactTabs.TabsProps, PropsWithChildren {
715
901
  export declare const Tag: FC<TagProps>;
716
902
 
717
903
  declare type TagProps = {
718
- color?: 'gray' | 'cyan' | 'gold' | 'green' | 'light blue' | 'lime' | 'pink' | 'purple' | 'emerald' | 'fuscia' | 'indigo' | 'light-orange' | 'dark-sky-blue' | 'mistery';
904
+ color?: 'gray' | 'gray-800' | 'cyan' | 'gold' | 'green' | 'light blue' | 'lime' | 'pink' | 'purple' | 'emerald' | 'fuscia' | 'indigo' | 'light-orange' | 'dark-sky-blue' | 'mistery';
719
905
  id: string | number;
720
906
  label: string;
721
907
  rightIcon?: ReactNode;
@@ -806,7 +992,9 @@ declare interface ToastProps extends PropsWithChildren, VariantProps<typeof toas
806
992
  setOpen: (open: boolean) => void;
807
993
  }
808
994
 
809
- declare const toastVariants: (props?: ClassProp | undefined) => string;
995
+ declare const toastVariants: (props?: ({
996
+ variant?: "warning" | "error" | "success" | null | undefined;
997
+ } & ClassProp) | undefined) => string;
810
998
 
811
999
  export declare const Tooltip: FC<TooltipProps>;
812
1000
 
@@ -818,7 +1006,7 @@ declare interface TooltipProps extends PropsWithChildren, VariantProps<typeof to
818
1006
  }
819
1007
 
820
1008
  declare const tooltipVariants: (props?: ({
821
- position?: "left" | "right" | "bottom" | "top" | null | undefined;
1009
+ position?: "left" | "right" | "top" | "bottom" | null | undefined;
822
1010
  } & ClassProp) | undefined) => string;
823
1011
 
824
1012
  export declare const Trigger: FC<TriggerProps>;
@@ -833,6 +1021,8 @@ declare const triggerVariants: (props?: ({
833
1021
  variant?: "default" | "active" | "inactive" | null | undefined;
834
1022
  } & ClassProp) | undefined) => string;
835
1023
 
1024
+ export declare const TruncateText: <TData>({ getValue, value }: Props_4<TData>) => JSX.Element;
1025
+
836
1026
  export declare const Typography: ForwardRefExoticComponent<Omit<TypographyProps, 'ref'> & RefAttributes<HTMLParagraphElement | HTMLHeadingElement>>;
837
1027
 
838
1028
  declare interface TypographyProps extends HTMLAttributes<ComponentRef<HeadingTag | 'p' | 'span'>>, VariantProps<typeof typographyVariants> {
@@ -850,6 +1040,25 @@ export declare const useTheme: () => ThemeProps;
850
1040
 
851
1041
  export declare const useToggle: (initialState?: boolean) => [boolean, (value?: boolean) => void];
852
1042
 
1043
+ export declare const VirtualizedTable: VirtualizedTableCompound;
1044
+
1045
+ declare type VirtualizedTableCompound = (<TData extends RowData>(props: Props_5<TData>) => JSX_2.Element) & {
1046
+ TruncateText: typeof TruncateText;
1047
+ Actions: <TData extends RowData>(props: Props_6<TData>) => JSX_2.Element | null;
1048
+ displayName?: string;
1049
+ };
1050
+
1051
+ declare const virtualizeTableVariants: (props?: ClassProp | undefined) => string;
1052
+
853
1053
  declare const wrapperSiderbarVariants: (props?: ClassProp | undefined) => string;
854
1054
 
855
1055
  export { }
1056
+
1057
+
1058
+ declare module '@tanstack/react-table' {
1059
+ interface ColumnMeta<TData extends RowData, TValue> {
1060
+ className?: string | ((row: TData) => string);
1061
+ attributes?: Record<string, string | number | boolean>;
1062
+ headerClassName?: string;
1063
+ }
1064
+ }