@hybr1d-tech/charizard 0.6.108 → 0.6.109

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 (218) hide show
  1. package/dist/hybr1d-ui.js +3636 -3635
  2. package/dist/hybr1d-ui.umd.cjs +14 -14
  3. package/dist/index.d.ts +2941 -1
  4. package/package.json +17 -16
  5. package/dist/components/alert/Alert.d.ts +0 -24
  6. package/dist/components/alert/index.d.ts +0 -1
  7. package/dist/components/asyncImage/AsyncImage.d.ts +0 -14
  8. package/dist/components/asyncImage/index.d.ts +0 -1
  9. package/dist/components/asyncImage/types.d.ts +0 -4
  10. package/dist/components/avatar/Avatar.d.ts +0 -6
  11. package/dist/components/avatar/index.d.ts +0 -1
  12. package/dist/components/badge/Badge.d.ts +0 -50
  13. package/dist/components/badge/index.d.ts +0 -1
  14. package/dist/components/breadcrumbs/BreadCrumbs.d.ts +0 -1
  15. package/dist/components/breadcrumbs/index.d.ts +0 -3
  16. package/dist/components/breadcrumbs/store.d.ts +0 -11
  17. package/dist/components/breadcrumbs/useBreadCrumbs.d.ts +0 -7
  18. package/dist/components/button/Button.d.ts +0 -55
  19. package/dist/components/button/actions-dropdown.stories.d.ts +0 -7
  20. package/dist/components/button/button.stories.d.ts +0 -11
  21. package/dist/components/button/index.d.ts +0 -1
  22. package/dist/components/button/menu-button.stories.d.ts +0 -7
  23. package/dist/components/button-v2/ButtonV2.d.ts +0 -77
  24. package/dist/components/button-v2/buttonV2.stories.d.ts +0 -9
  25. package/dist/components/button-v2/group-action.stories.d.ts +0 -9
  26. package/dist/components/button-v2/index.d.ts +0 -2
  27. package/dist/components/button-v2/types.d.ts +0 -21
  28. package/dist/components/checkbox/Checkbox.d.ts +0 -44
  29. package/dist/components/checkbox/checkbox.stories.d.ts +0 -7
  30. package/dist/components/checkbox/index.d.ts +0 -1
  31. package/dist/components/checkbox-v2/CheckboxV2.d.ts +0 -10
  32. package/dist/components/checkbox-v2/index.d.ts +0 -1
  33. package/dist/components/color-picker/ColorPicker.d.ts +0 -10
  34. package/dist/components/color-picker/index.d.ts +0 -1
  35. package/dist/components/date-picker/DatePicker.d.ts +0 -30
  36. package/dist/components/date-picker/index.d.ts +0 -1
  37. package/dist/components/drawer/Drawer.d.ts +0 -76
  38. package/dist/components/drawer/index.d.ts +0 -1
  39. package/dist/components/drawer-v2/Drawer.d.ts +0 -83
  40. package/dist/components/drawer-v2/index.d.ts +0 -1
  41. package/dist/components/empty-state/EmptyState.d.ts +0 -16
  42. package/dist/components/empty-state/empty-state.stories.d.ts +0 -7
  43. package/dist/components/empty-state/index.d.ts +0 -1
  44. package/dist/components/index.d.ts +0 -43
  45. package/dist/components/input/Input.d.ts +0 -72
  46. package/dist/components/input/InputAddon.d.ts +0 -41
  47. package/dist/components/input/InputContainer.d.ts +0 -26
  48. package/dist/components/input/InputElement.d.ts +0 -19
  49. package/dist/components/input/InputGroup.d.ts +0 -14
  50. package/dist/components/input/InputLabel.d.ts +0 -46
  51. package/dist/components/input/index.d.ts +0 -6
  52. package/dist/components/input/input.stories.d.ts +0 -7
  53. package/dist/components/input/types.d.ts +0 -13
  54. package/dist/components/input-v2/Input.d.ts +0 -20
  55. package/dist/components/input-v2/InputAdornment.d.ts +0 -64
  56. package/dist/components/input-v2/InputControl.d.ts +0 -27
  57. package/dist/components/input-v2/InputCount.d.ts +0 -32
  58. package/dist/components/input-v2/InputGroup.d.ts +0 -6
  59. package/dist/components/input-v2/InputIcon.d.ts +0 -48
  60. package/dist/components/input-v2/InputNumber.d.ts +0 -24
  61. package/dist/components/input-v2/Label.d.ts +0 -24
  62. package/dist/components/input-v2/NumberAdornment.d.ts +0 -24
  63. package/dist/components/input-v2/Textarea.d.ts +0 -23
  64. package/dist/components/input-v2/index.d.ts +0 -10
  65. package/dist/components/input-v2/types.d.ts +0 -329
  66. package/dist/components/layout-tabs/LayoutTabs.d.ts +0 -22
  67. package/dist/components/layout-tabs/index.d.ts +0 -1
  68. package/dist/components/loader/Loader.d.ts +0 -17
  69. package/dist/components/loader/index.d.ts +0 -1
  70. package/dist/components/loader/loader.stories.d.ts +0 -14
  71. package/dist/components/modal/Modal.d.ts +0 -30
  72. package/dist/components/modal/ModalBody.d.ts +0 -17
  73. package/dist/components/modal/ModalContent.d.ts +0 -18
  74. package/dist/components/modal/ModalFooter.d.ts +0 -38
  75. package/dist/components/modal/ModalHeader.d.ts +0 -21
  76. package/dist/components/modal/ModalOverlay.d.ts +0 -9
  77. package/dist/components/modal/index.d.ts +0 -6
  78. package/dist/components/modal/usage.d.ts +0 -1
  79. package/dist/components/pill/Pill.d.ts +0 -15
  80. package/dist/components/pill/index.d.ts +0 -1
  81. package/dist/components/popover/Popover.d.ts +0 -26
  82. package/dist/components/popover/PopoverCloseButton.d.ts +0 -23
  83. package/dist/components/popover/PopoverContent.d.ts +0 -32
  84. package/dist/components/popover/PopoverDescription.d.ts +0 -23
  85. package/dist/components/popover/PopoverTitle.d.ts +0 -23
  86. package/dist/components/popover/PopoverTrigger.d.ts +0 -29
  87. package/dist/components/popover/index.d.ts +0 -6
  88. package/dist/components/popover/usage.d.ts +0 -1
  89. package/dist/components/progress/Progress.d.ts +0 -63
  90. package/dist/components/progress/index.d.ts +0 -1
  91. package/dist/components/radio-group/RadioGroup.d.ts +0 -45
  92. package/dist/components/radio-group/index.d.ts +0 -1
  93. package/dist/components/radio-group/radio.stories.d.ts +0 -7
  94. package/dist/components/search/Search.d.ts +0 -14
  95. package/dist/components/search/index.d.ts +0 -1
  96. package/dist/components/search/search.stories.d.ts +0 -7
  97. package/dist/components/search-v2/Search.d.ts +0 -20
  98. package/dist/components/search-v2/index.d.ts +0 -1
  99. package/dist/components/search-v2/types.d.ts +0 -6
  100. package/dist/components/segmented-control/SegmentedControl.d.ts +0 -22
  101. package/dist/components/segmented-control/index.d.ts +0 -1
  102. package/dist/components/select/Common.d.ts +0 -6
  103. package/dist/components/select/CreatableSelect.d.ts +0 -97
  104. package/dist/components/select/Select.d.ts +0 -87
  105. package/dist/components/select/SelectAsync.d.ts +0 -81
  106. package/dist/components/select/config.d.ts +0 -4
  107. package/dist/components/select/index.d.ts +0 -3
  108. package/dist/components/select/types.d.ts +0 -15
  109. package/dist/components/select-v2/Common.d.ts +0 -56
  110. package/dist/components/select-v2/CreatableSelect.d.ts +0 -15
  111. package/dist/components/select-v2/Select.d.ts +0 -14
  112. package/dist/components/select-v2/index.d.ts +0 -3
  113. package/dist/components/select-v2/styles.d.ts +0 -3
  114. package/dist/components/select-v2/types.d.ts +0 -37
  115. package/dist/components/selectors/Selectors.d.ts +0 -7
  116. package/dist/components/selectors/index.d.ts +0 -1
  117. package/dist/components/skeleton/Skeleton.d.ts +0 -3
  118. package/dist/components/skeleton/index.d.ts +0 -1
  119. package/dist/components/svg/SVG.d.ts +0 -11
  120. package/dist/components/svg/index.d.ts +0 -1
  121. package/dist/components/switch/Switch.d.ts +0 -12
  122. package/dist/components/switch/index.d.ts +0 -1
  123. package/dist/components/switch/switch.stories.d.ts +0 -9
  124. package/dist/components/table/Table.d.ts +0 -114
  125. package/dist/components/table/constants.d.ts +0 -3
  126. package/dist/components/table/index.d.ts +0 -1
  127. package/dist/components/table/store.d.ts +0 -15
  128. package/dist/components/table/table-actions/TableActions.d.ts +0 -8
  129. package/dist/components/table/table-actions/index.d.ts +0 -1
  130. package/dist/components/table/table-columns/TableCheckbox.d.ts +0 -11
  131. package/dist/components/table/table-columns/TableRadio.d.ts +0 -7
  132. package/dist/components/table/table-columns/index.d.ts +0 -2
  133. package/dist/components/table/table-empty/TableEmpty.d.ts +0 -6
  134. package/dist/components/table/table-empty/index.d.ts +0 -1
  135. package/dist/components/table/table-filters/FilterCheckbox.d.ts +0 -13
  136. package/dist/components/table/table-filters/FilterTooltip.d.ts +0 -9
  137. package/dist/components/table/table-filters/TableFilter.d.ts +0 -14
  138. package/dist/components/table/table-filters/TableFilters.d.ts +0 -7
  139. package/dist/components/table/table-filters/index.d.ts +0 -1
  140. package/dist/components/table/table-loader/TableLoader.d.ts +0 -4
  141. package/dist/components/table/table-loader/index.d.ts +0 -1
  142. package/dist/components/table/table-selected-actions/TableSelectedActions.d.ts +0 -8
  143. package/dist/components/table/table-selected-actions/index.d.ts +0 -1
  144. package/dist/components/table/types.d.ts +0 -36
  145. package/dist/components/table-v3/TableV3.d.ts +0 -119
  146. package/dist/components/table-v3/constants.d.ts +0 -3
  147. package/dist/components/table-v3/index.d.ts +0 -4
  148. package/dist/components/table-v3/inventory/inventory.store.d.ts +0 -40
  149. package/dist/components/table-v3/store.d.ts +0 -16
  150. package/dist/components/table-v3/table-actions/TableActions.d.ts +0 -8
  151. package/dist/components/table-v3/table-actions/index.d.ts +0 -1
  152. package/dist/components/table-v3/table-columns/TableCheckbox.d.ts +0 -8
  153. package/dist/components/table-v3/table-columns/TableRadio.d.ts +0 -7
  154. package/dist/components/table-v3/table-columns/index.d.ts +0 -2
  155. package/dist/components/table-v3/table-custom-cols/CustomColCheckbox.d.ts +0 -10
  156. package/dist/components/table-v3/table-custom-cols/TableCustomCols.d.ts +0 -30
  157. package/dist/components/table-v3/table-custom-cols/index.d.ts +0 -1
  158. package/dist/components/table-v3/table-custom-cols/sortable/SortableItem.d.ts +0 -10
  159. package/dist/components/table-v3/table-custom-cols/sortable/SortableList.d.ts +0 -19
  160. package/dist/components/table-v3/table-custom-cols/sortable/SortableOverlay.d.ts +0 -6
  161. package/dist/components/table-v3/table-custom-cols/utils.d.ts +0 -16
  162. package/dist/components/table-v3/table-empty/TableEmpty.d.ts +0 -6
  163. package/dist/components/table-v3/table-empty/index.d.ts +0 -1
  164. package/dist/components/table-v3/table-filters-drawer/TableFiltersDrawer.d.ts +0 -7
  165. package/dist/components/table-v3/table-filters-drawer/TableFiltersDrawerNew.d.ts +0 -7
  166. package/dist/components/table-v3/table-filters-drawer/index.d.ts +0 -1
  167. package/dist/components/table-v3/table-filters-drawer/utils.d.ts +0 -16
  168. package/dist/components/table-v3/table-header-filters/FilterCheckbox.d.ts +0 -13
  169. package/dist/components/table-v3/table-header-filters/FilterDrawerAllCheckbox.d.ts +0 -7
  170. package/dist/components/table-v3/table-header-filters/FilterDrawerCheckbox.d.ts +0 -12
  171. package/dist/components/table-v3/table-header-filters/FilterDrawerCheckboxNew.d.ts +0 -9
  172. package/dist/components/table-v3/table-header-filters/FilterTooltip.d.ts +0 -9
  173. package/dist/components/table-v3/table-header-filters/TableHeaderFilter.d.ts +0 -14
  174. package/dist/components/table-v3/table-header-filters/TableHeaderFilters.d.ts +0 -8
  175. package/dist/components/table-v3/table-header-filters/index.d.ts +0 -1
  176. package/dist/components/table-v3/table-loader/TableLoader.d.ts +0 -4
  177. package/dist/components/table-v3/table-loader/index.d.ts +0 -1
  178. package/dist/components/table-v3/table-meta-header/TableMetaHeader.d.ts +0 -18
  179. package/dist/components/table-v3/table-meta-header/index.d.ts +0 -1
  180. package/dist/components/table-v3/table-pagination/TableEllipses.d.ts +0 -6
  181. package/dist/components/table-v3/table-pagination/TableLimit.d.ts +0 -7
  182. package/dist/components/table-v3/table-pagination/TablePagination.d.ts +0 -7
  183. package/dist/components/table-v3/table-pagination/index.d.ts +0 -1
  184. package/dist/components/table-v3/table-pagination/utils.d.ts +0 -4
  185. package/dist/components/table-v3/table-selected-actions/TableSelectedActions.d.ts +0 -8
  186. package/dist/components/table-v3/table-selected-actions/index.d.ts +0 -1
  187. package/dist/components/table-v3/types.d.ts +0 -52
  188. package/dist/components/table-v3/value-cells/table-box-ellipses/TableBoxEllipses.d.ts +0 -7
  189. package/dist/components/table-v3/value-cells/table-box-ellipses/index.d.ts +0 -1
  190. package/dist/components/table-v3/value-cells/table-device-cell/TableDeviceCell.d.ts +0 -7
  191. package/dist/components/table-v3/value-cells/table-user-cell/TableUserCell.d.ts +0 -7
  192. package/dist/components/tabs/Tab.d.ts +0 -12
  193. package/dist/components/tabs/Tabs.d.ts +0 -12
  194. package/dist/components/tabs/index.d.ts +0 -2
  195. package/dist/components/tag/Tag.d.ts +0 -15
  196. package/dist/components/tag/index.d.ts +0 -1
  197. package/dist/components/task-cards/TaskCards.d.ts +0 -24
  198. package/dist/components/task-cards/components/task-card/TaskCard.d.ts +0 -7
  199. package/dist/components/task-cards/components/task-card-header/TaskCardHeader.d.ts +0 -3
  200. package/dist/components/task-cards/helper.d.ts +0 -1
  201. package/dist/components/task-cards/index.d.ts +0 -1
  202. package/dist/components/task-cards/types.d.ts +0 -36
  203. package/dist/components/toasts/Toasts.d.ts +0 -14
  204. package/dist/components/toasts/index.d.ts +0 -1
  205. package/dist/components/toasts/types.d.ts +0 -5
  206. package/dist/components/tooltip/Tooltip.d.ts +0 -28
  207. package/dist/components/tooltip/TooltipContent.d.ts +0 -24
  208. package/dist/components/tooltip/TooltipTrigger.d.ts +0 -16
  209. package/dist/components/tooltip/index.d.ts +0 -1
  210. package/dist/components/tooltip-v2/TooltipV2.d.ts +0 -14
  211. package/dist/components/tooltip-v2/index.d.ts +0 -1
  212. package/dist/components/upload/Upload.d.ts +0 -52
  213. package/dist/components/upload/helper.d.ts +0 -2
  214. package/dist/components/upload/index.d.ts +0 -1
  215. package/dist/components/upload/types.d.ts +0 -15
  216. package/dist/components/upload/upload.stories.d.ts +0 -7
  217. package/dist/components/user-chip/UserChip.d.ts +0 -17
  218. package/dist/components/user-chip/index.d.ts +0 -1
package/dist/index.d.ts CHANGED
@@ -1 +1,2941 @@
1
- export * from './components/index'
1
+ import { ActionMeta } from 'react-select';
2
+ import { default as default_2 } from 'react';
3
+ import * as dialog from '@zag-js/dialog';
4
+ import { HTMLInputTypeAttribute } from 'react';
5
+ import { Id } from 'react-toastify';
6
+ import { JSX as JSX_2 } from 'react/jsx-runtime';
7
+ import { Matcher } from 'react-day-picker';
8
+ import { MenuPlacement } from 'react-select';
9
+ import { MultiValue } from 'react-select';
10
+ import { Placement } from '@zag-js/popper';
11
+ import { Placement as Placement_2 } from '@popperjs/core';
12
+ import { PositioningOptions } from '@zag-js/popper';
13
+ import { Props } from 'react-select';
14
+ import { PropsSingle } from 'react-day-picker';
15
+ import * as React_2 from 'react';
16
+ import { ReactElement } from 'react';
17
+ import { SingleValue } from 'react-select';
18
+ import { StoreApi } from 'zustand';
19
+ import { StylesConfig } from 'react-select';
20
+ import { ToastOptions } from 'react-toastify';
21
+ import { UseBoundStore } from 'zustand';
22
+
23
+ export declare function ActionsDropdown({ variant, disabled, menuItems, customData, size, positionerProps, isTable, children, customStyles, }: ActionsDropdownProps): JSX_2.Element;
24
+
25
+ export declare interface ActionsDropdownProps {
26
+ variant?: BUTTON_V2_VARIANT;
27
+ disabled?: boolean;
28
+ menuItems: MenuItemV2[];
29
+ customData?: any;
30
+ size?: BUTTON_V2_SIZE;
31
+ positionerProps?: PositioningOptions;
32
+ isTable?: boolean;
33
+ children?: React_2.ReactNode;
34
+ customStyles?: {
35
+ customMenuStyles?: React_2.CSSProperties;
36
+ customButtonStyles?: React_2.CSSProperties;
37
+ };
38
+ }
39
+
40
+ export declare function Alert({ alertType, actionType, header, body }: AlertPropTypes): false | JSX_2.Element;
41
+
42
+ export declare enum ALERT_ACTION_TYPES {
43
+ CLOSE = "close",
44
+ SHOW_MORE = "show-more"
45
+ }
46
+
47
+ export declare enum ALERT_TYPES {
48
+ DEFAULT = "default",
49
+ POSITIVE = "positive"
50
+ }
51
+
52
+ declare interface AlertPropTypes {
53
+ alertType: string;
54
+ actionType: string;
55
+ header: React_2.ReactNode;
56
+ body?: React_2.ReactNode;
57
+ }
58
+
59
+ export declare const alertTypeMap: {
60
+ [key: string]: {
61
+ bg: string;
62
+ color: string;
63
+ icon: string;
64
+ };
65
+ };
66
+
67
+ /**
68
+ * AsyncImage component that displays an image asynchronously.
69
+ * While the image is loading, it shows a skeleton loader.
70
+ *
71
+ * @param {Object} props - The image properties object.
72
+ * @param {string} props.src - The source URL of the image.
73
+ * @param {string} props.alt - The alt text for the image.
74
+ * @param {string} [props.className] - Additional CSS classes for styling the image and skelton.
75
+ * @param {React.ImgHTMLAttributes<HTMLImageElement>} props - Additional props for the img element.
76
+ * @returns {JSX.Element} The rendered component.
77
+ */
78
+ export declare function AsyncImage({ src, alt, className, ...props }: ImageProps): JSX_2.Element;
79
+
80
+ export declare function Avatar({ user, imageStyles }: AvatarProps): JSX_2.Element;
81
+
82
+ declare interface AvatarProps {
83
+ user: any;
84
+ imageStyles?: React.CSSProperties;
85
+ }
86
+
87
+ export declare function Badge({ highlight, status, selected, children, icon, customSvgStyles, }: BadgeProps): JSX_2.Element;
88
+
89
+ export declare enum BADGE_HIGHLIGHT {
90
+ ICON = "icon",
91
+ DOT = "dot",
92
+ NONE = "none"
93
+ }
94
+
95
+ export declare enum BADGE_STATUS {
96
+ DEFAULT = "default",
97
+ NEUTRAL = "neutral",
98
+ POSITIVE = "positive",
99
+ WARNING = "warning",
100
+ NEGATIVE = "negative",
101
+ HIGHLIGHT = "highlight"
102
+ }
103
+
104
+ declare interface BadgeProps {
105
+ highlight?: BADGE_HIGHLIGHT;
106
+ status?: BADGE_STATUS;
107
+ selected?: boolean;
108
+ children: React_2.ReactNode;
109
+ icon?: string;
110
+ customSvgStyles?: React_2.CSSProperties;
111
+ }
112
+
113
+ declare interface BaseButtonProps {
114
+ variant?: BUTTON_V2_VARIANT;
115
+ disabled?: boolean;
116
+ onClick?: React_2.MouseEventHandler<HTMLButtonElement>;
117
+ size?: BUTTON_V2_SIZE | 'xs' | 'sm' | 'md' | 'adapt';
118
+ customStyles?: React_2.CSSProperties;
119
+ btnType?: 'button' | 'reset' | 'submit';
120
+ }
121
+
122
+ /**
123
+ * Base props for input adornment components. It can be dropdown or non actionable
124
+ *
125
+ * @interface BaseInputAdornmentProps
126
+ *
127
+ * @property {React.ReactNode} children - The elements or text inside the adornment.
128
+ * @property {boolean} [disabled] - Whether the adornment is disabled.
129
+ */
130
+ declare interface BaseInputAdornmentProps {
131
+ children: React.ReactNode;
132
+ disabled?: boolean;
133
+ }
134
+
135
+ declare interface Breadcrumb {
136
+ label: string;
137
+ href?: string;
138
+ active?: boolean;
139
+ }
140
+
141
+ declare interface Breadcrumb_2 {
142
+ label: string;
143
+ href?: string;
144
+ active?: boolean;
145
+ }
146
+
147
+ export declare function Breadcrumbs(): JSX_2.Element;
148
+
149
+ declare interface BreadcrumbsStore {
150
+ breadcrumbs: Breadcrumb[];
151
+ setBreadcrumbs: (breadcrumbs: Breadcrumb[]) => void;
152
+ }
153
+
154
+ export declare function Button({ children, variant, disabled, onClick, type, size, customStyles, }: ButtonProps): JSX_2.Element;
155
+
156
+ export declare namespace Button {
157
+ var MenuButton: ({ children, variant, disabled, menuItems, onClick, isCustomTrigger, isSingleBtnTrigger, customData, size, actionsDropdownOptions, positionerProps, isTable, }: MenuButtonProps) => JSX_2.Element;
158
+ var ActionsDropdown: typeof MenuActionsDropdown;
159
+ }
160
+
161
+ export declare enum BUTTON_V2_SIZE {
162
+ SMALL = "small",
163
+ DEFAULT = "default"
164
+ }
165
+
166
+ export declare enum BUTTON_V2_TYPE {
167
+ BASIC = "basic",
168
+ ICON_LEFT = "iconLeft",
169
+ ICON_RIGHT = "iconRight",
170
+ ICON_ONLY = "iconOnly",
171
+ BUTTON = "button",
172
+ RESET = "reset"
173
+ }
174
+
175
+ export declare enum BUTTON_V2_VARIANT {
176
+ PRIMARY = "primary",
177
+ SECONDARY = "secondary",
178
+ TERTIARY = "tertiary",
179
+ GHOST = "tertiary",
180
+ DANGER = "primary",
181
+ LINK = "link",
182
+ MINIMAL = "tertiary"
183
+ }
184
+
185
+ export declare enum BUTTON_VARIANT {
186
+ PRIMARY = "primary",
187
+ SECONDARY = "secondary",
188
+ GHOST = "ghost",
189
+ DANGER = "danger",
190
+ LINK = "link",
191
+ MINIMAL = "minimal"
192
+ }
193
+
194
+ export declare type ButtonProps = {
195
+ children: React_2.ReactNode;
196
+ variant?: BUTTON_VARIANT;
197
+ disabled?: boolean;
198
+ onClick?: React_2.MouseEventHandler<HTMLButtonElement>;
199
+ type?: 'button' | 'submit' | 'reset';
200
+ size?: 'xs' | 'sm' | 'md' | 'adapt';
201
+ customStyles?: React_2.CSSProperties;
202
+ };
203
+
204
+ export declare function ButtonV2({ children, variant, disabled, onClick, type, size, customStyles, icon, btnType, }: ButtonV2Props): JSX_2.Element;
205
+
206
+ export declare namespace ButtonV2 {
207
+ var GroupAction: ({ children, variant, disabled, menuItems, customData, size, actionsDropdownOptions, positionerProps, isTable, isCustomTrigger, customStyles, onClick, isSingleBtnTrigger, }: GroupActionProps) => JSX_2.Element;
208
+ var ActionsDropdown: ActionsDropdown;
209
+ }
210
+
211
+ export declare type ButtonV2Props = IconOnlyButtonV2TypeProps | IconButtonV2TypeProps | OtherButtonV2TypeProps;
212
+
213
+ export declare function Checkbox({ id, name, children, onChange, customClasses, customStyles, errorMsg, checked, indeterminate, disabled, }: CheckboxProps): JSX_2.Element;
214
+
215
+ declare interface CheckboxProps {
216
+ /**
217
+ * Checkbox id
218
+ */
219
+ id: string;
220
+ /**
221
+ * Checkbox name
222
+ */
223
+ name: string;
224
+ /**
225
+ * children
226
+ */
227
+ children: React.ReactNode;
228
+ /**
229
+ * handle checkbox clicked
230
+ */
231
+ onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
232
+ /**
233
+ * custom classes
234
+ */
235
+ customClasses?: string;
236
+ /**
237
+ * custom styles
238
+ */
239
+ customStyles?: React.CSSProperties;
240
+ /**
241
+ * error message
242
+ */
243
+ errorMsg?: string;
244
+ /**
245
+ * Checkbox checked
246
+ */
247
+ checked?: boolean;
248
+ /**
249
+ * Checkbox indeterminate state
250
+ */
251
+ indeterminate?: boolean;
252
+ /**
253
+ * Checkbox disabled
254
+ */
255
+ disabled?: boolean;
256
+ }
257
+
258
+ declare interface CheckboxProps_2 {
259
+ label: string;
260
+ checked?: boolean;
261
+ indeterminate?: boolean;
262
+ disabled?: boolean;
263
+ onChange: (checked: boolean) => void;
264
+ }
265
+
266
+ export declare const CheckboxV2: React_2.FC<CheckboxProps_2>;
267
+
268
+ export declare function ColorPicker({ name, label, errorMsg, required, onChange, defaultColor, }: ColorPickerProps): JSX_2.Element;
269
+
270
+ declare interface ColorPickerProps {
271
+ name: string;
272
+ label?: string;
273
+ errorMsg?: string | false;
274
+ required?: boolean;
275
+ onChange: (color: string) => void;
276
+ defaultColor?: string;
277
+ }
278
+
279
+ export declare function CreatableSelect({ options, onChange, name, id, className, placeholder, selectStyles, defaultValue, formatGroupLabel, customContainerStyles, menuPlacement, errorMsg, extraprops, isDisabled, isSearchable, isMulti, isClearable, createNewOption, refetchOptions, }: CreatableSelectProps): JSX_2.Element;
280
+
281
+ declare interface CreatableSelectProps {
282
+ /**
283
+ * The options to be displayed in the select
284
+ * should atleast have {label: string, value: string}
285
+ */
286
+ options: Array<{
287
+ label: string | '';
288
+ value: string | '';
289
+ profileImgUrl?: string;
290
+ }> | any;
291
+ /**
292
+ * Handle change events on the select
293
+ */
294
+ onChange: (newValue: string | string[], actionMeta: SelectActionMeta_2) => void;
295
+ /**
296
+ * The name of the select
297
+ */
298
+ name?: string;
299
+ /**
300
+ * The id of the select
301
+ */
302
+ id?: string;
303
+ /**
304
+ * The className of the select
305
+ */
306
+ className?: string;
307
+ /**
308
+ * The placeholder of the select
309
+ */
310
+ placeholder?: string;
311
+ /**
312
+ * Whether the select is searchable
313
+ */
314
+ isSearchable?: boolean;
315
+ /**
316
+ * Whether multiple selection is possible
317
+ */
318
+ isMulti?: boolean;
319
+ /**
320
+ * Whether the select is clearable
321
+ */
322
+ isClearable?: boolean;
323
+ /**
324
+ * The styles of the select component
325
+ */
326
+ selectStyles?: StylesConfig<any>;
327
+ /**
328
+ * The default value of the select
329
+ */
330
+ defaultValue?: {
331
+ label: string;
332
+ value: string;
333
+ profileImgUrl?: string;
334
+ };
335
+ /**
336
+ * Formats group labels in the menu as React components
337
+ */
338
+ formatGroupLabel?: (data: any) => React_2.ReactNode;
339
+ /**
340
+ * The custom styles of the select container
341
+ */
342
+ customContainerStyles?: React_2.CSSProperties;
343
+ /**
344
+ * Whether the select is disabled
345
+ */
346
+ isDisabled?: boolean;
347
+ /**
348
+ * Default placement of the menu in relation to the control. 'auto' will flip when there isn't enough space below the control.
349
+ */
350
+ menuPlacement?: MenuPlacement;
351
+ /**
352
+ * The error message to be displayed
353
+ */
354
+ errorMsg?: string | false;
355
+ /**
356
+ * extra props to pass for select component
357
+ */
358
+ extraprops?: any;
359
+ /**
360
+ * create new option api mutate function
361
+ */
362
+ createNewOption: (value: string | string[]) => Promise<OptionType | Array<OptionType>>;
363
+ /**
364
+ * refetch options to show options in dropdown
365
+ */
366
+ refetchOptions?: Function;
367
+ }
368
+
369
+ /**
370
+ * A custom select component based on react-select.
371
+ * @param props - The properties for the SelectV2 component:
372
+ * - `options` (Array<Option>): An array of options to be displayed in the dropdown. Each option can include a label, value, and optional profile image or icon.
373
+ * - `mainContainerClassName` (string, optional): A custom CSS class name to apply to the main container for additional styling.
374
+ * - `variant` (SELECT_VARIANT, optional): Defines the variant of the select component (e.g., 'default', 'users', 'checkbox', 'tags') to control the styling and behavior.
375
+ * - `errorMsg` (string, optional): An error message to display below the select component for validation purposes.
376
+ * - `onChange` (function): A callback function that is triggered when the selected value(s) change. It receives the selected value(s) and action meta information.
377
+ * - `customStyles` (StylesConfig<any>): custom styles for react select. it will override default styles
378
+ * - `onCreateOption` (Promise<void> | void): function to create new option which is not in the list
379
+ * @returns The SelectV2 component.
380
+ */
381
+ export declare function CreatableSelectV2(props: CreatableSelectV2Props): JSX_2.Element;
382
+
383
+ export declare interface CreatableSelectV2Props extends SelectV2Props {
384
+ onCreateOption: (value: string) => Promise<void> | void;
385
+ }
386
+
387
+ export declare function DatePicker({ value, onChange, mode, variant, displayDateFormat, errorMsg, disableDatepicker, disabled, buttonVariant, customContainerStyles, popoverConfig, isError, showOutsideDays, ...props }: DatePickerProps): JSX_2.Element;
388
+
389
+ declare interface DatePickerProps extends PropsSingle {
390
+ value?: Date | string;
391
+ onChange: (value?: Date | string) => void;
392
+ mode: 'single';
393
+ variant?: 'default' | 'form';
394
+ /**
395
+ * @default 'do LLL y'
396
+ * 'do LLL y' => 1st Jan 2021
397
+ * 'dd LLL y' => 01 Jan 2021
398
+ * 'yyyy-MM-dd' => 2021-01-01
399
+ * 'dd/MM/yyyy' => 01/01/2021
400
+ */
401
+ displayDateFormat?: 'do LLL y' | 'dd LLL y' | 'yyyy-MM-dd' | 'dd/MM/yyyy';
402
+ disableDatepicker?: boolean;
403
+ errorMsg?: string;
404
+ isError?: boolean;
405
+ buttonVariant?: BUTTON_VARIANT;
406
+ customContainerStyles?: React_2.CSSProperties;
407
+ popoverConfig?: {
408
+ placement?: Placement_2;
409
+ };
410
+ showOutsideDays?: boolean;
411
+ disabled?: Matcher | Matcher[];
412
+ }
413
+
414
+ declare enum DOCS_TYPE {
415
+ USER_DOCS = "user_document",
416
+ COMPANY_DOCS = "company_document",
417
+ IDENTIFICATION_DOC = "identification_document",
418
+ COMMENT_DOCS = "comment_document",
419
+ ORDER_DOC = "order_document",
420
+ SOFTWARE_DOCS = "software_document",
421
+ SOFTWARE_LOGO = "software_logo",
422
+ INVENTORY_DOCS = "inventory_document",
423
+ INVENTORY_DOCS_EQUIPMENT = "equipment",
424
+ INVENTORY_DOCS_FINANCE = "finance",
425
+ USER_OFFBOARDING_DOCS = "user_offboarding_document",
426
+ LEAVE_DOCS = "leave_document",
427
+ INTEGRATION_DOCS = "integration_document"
428
+ }
429
+
430
+ export declare function Drawer({ isOpen, onClose, children, title, subTitle, customHeader, customFooter, size, showBackdrop, showHeader, showFooter, buttons, footerAddon, headerClassName, contentClassName, footerClassName, showHeaderBorder, drawerPosition, customContainerStyles, }: DrawerProps): JSX_2.Element;
431
+
432
+ export declare type DrawerFooterButtons = Array<{
433
+ variant?: BUTTON_V2_VARIANT;
434
+ onClick: () => void;
435
+ btnText: string;
436
+ btnType?: 'button' | 'submit' | 'reset';
437
+ btnSize?: BUTTON_V2_SIZE;
438
+ disabled?: boolean;
439
+ isLoading?: boolean;
440
+ loadingText?: string;
441
+ type?: BUTTON_V2_TYPE;
442
+ }>;
443
+
444
+ declare interface DrawerProps {
445
+ /**
446
+ * Drawer footer className
447
+ */
448
+ footerClassName?: string;
449
+ /**
450
+ * Drawer header className
451
+ */
452
+ headerClassName?: string;
453
+ /**
454
+ * Drawer content className
455
+ */
456
+ contentClassName?: string;
457
+ /**
458
+ * Drawer is open or not
459
+ */
460
+ isOpen: boolean;
461
+ /**
462
+ * Callback function when drawer is closed
463
+ */
464
+ onClose: () => void;
465
+ /**
466
+ * Drawer content
467
+ */
468
+ children: React_2.ReactNode;
469
+ /**
470
+ * Drawer title
471
+ */
472
+ title?: string;
473
+ /**
474
+ * Drawer subTitle
475
+ */
476
+ subTitle?: string;
477
+ /**
478
+ * Custom drawer header
479
+ */
480
+ customHeader?: React_2.ReactNode;
481
+ /**
482
+ * Custom drawer footer
483
+ */
484
+ customFooter?: React_2.ReactNode;
485
+ /**
486
+ * Drawer size
487
+ */
488
+ size?: 'sm' | 'md' | 'lg' | 'xlg' | 'xxlg';
489
+ /**
490
+ * Show backdrop or not
491
+ */
492
+ showBackdrop?: boolean;
493
+ /**
494
+ * Show header or not
495
+ */
496
+ showHeader?: boolean;
497
+ /**
498
+ * Show footer or not
499
+ */
500
+ showFooter?: boolean;
501
+ /**
502
+ * footer buttons to show
503
+ */
504
+ buttons?: FooterButtons;
505
+ footerAddon?: React_2.ReactNode;
506
+ /**
507
+ * show header border or not
508
+ */
509
+ showHeaderBorder?: boolean;
510
+ /**
511
+ * Drawer position
512
+ */
513
+ drawerPosition?: 'left' | 'right';
514
+ customContainerStyles?: React_2.CSSProperties;
515
+ }
516
+
517
+ declare interface DrawerProps_2 {
518
+ /**
519
+ * Drawer footer className
520
+ */
521
+ footerClassName?: string;
522
+ /**
523
+ * Drawer header className
524
+ */
525
+ headerClassName?: string;
526
+ /**
527
+ * Drawer content className
528
+ */
529
+ contentClassName?: string;
530
+ /**
531
+ * Drawer is open or not
532
+ */
533
+ isOpen: boolean;
534
+ /**
535
+ * Callback function when drawer is closed
536
+ */
537
+ onClose: () => void;
538
+ /**
539
+ * Drawer content
540
+ */
541
+ children: React_2.ReactNode;
542
+ /**
543
+ * Drawer title
544
+ */
545
+ title?: string;
546
+ /**
547
+ * Drawer subTitle
548
+ */
549
+ subTitle?: string;
550
+ /**
551
+ * Custom drawer header
552
+ */
553
+ customHeader?: React_2.ReactNode;
554
+ /**
555
+ * Custom drawer footer
556
+ */
557
+ customFooter?: React_2.ReactNode;
558
+ /**
559
+ * Drawer size
560
+ */
561
+ size?: 'sm' | 'md' | 'lg' | 'xlg' | 'xxlg';
562
+ /**
563
+ * Show backdrop or not
564
+ */
565
+ showBackdrop?: boolean;
566
+ /**
567
+ * Show header or not
568
+ */
569
+ showHeader?: boolean;
570
+ /**
571
+ * Show footer or not
572
+ */
573
+ showFooter?: boolean;
574
+ /**
575
+ * footer buttons to show
576
+ */
577
+ buttons?: DrawerFooterButtons;
578
+ footerAddon?: React_2.ReactNode;
579
+ /**
580
+ * Drawer position
581
+ */
582
+ drawerPosition?: 'left' | 'right';
583
+ customContainerStyles?: React_2.CSSProperties;
584
+ }
585
+
586
+ export declare function DrawerV2({ isOpen, onClose, children, title, subTitle, customHeader, customFooter, size, showBackdrop, showHeader, showFooter, buttons, footerAddon, headerClassName, contentClassName, footerClassName, drawerPosition, customContainerStyles, }: DrawerProps_2): JSX_2.Element;
587
+
588
+ /**
589
+ * Represents an option in a dropdown menu for adornment.
590
+ *
591
+ * @interface DropdownOption
592
+ *
593
+ * @property {string} value - The value associated with the dropdown option.
594
+ * @property {string} label - The label displayed for the dropdown option.
595
+ *
596
+ * @example
597
+ * const options: DropdownOption[] = [
598
+ * { value: '1', label: 'Option 1' },
599
+ * { value: '2', label: 'Option 2' },
600
+ * ];
601
+ */
602
+ declare interface DropdownOption {
603
+ value: string;
604
+ label: string;
605
+ }
606
+
607
+ /**
608
+ * Props for a dropdown adornment.
609
+ *
610
+ * @interface DropdownProps
611
+ * @extends {BaseInputAdornmentProps}
612
+ *
613
+ * @property {true} isDropdown - Indicates this adornment is a dropdown.
614
+ * @property {DropdownOption[]} options - List of options available in the dropdown.
615
+ * @property {(value: string) => void} onOptionSelect - Callback function when an option is selected.
616
+ * @property {boolean} [hideSearch] - Whether to hide the search bar within the dropdown.
617
+ * @property {boolean} [isLoading] - Whether the dropdown is currently loading options.
618
+ *
619
+ * @example
620
+ * <InputGroupV2>
621
+ * <InputLeftAdornment isDropdown options={options} onOptionSelect={handleSelect}>...</InputLeftAdornment>
622
+ * <InputV2 />
623
+ * </InputGroupV2>
624
+ */
625
+ declare interface DropdownProps extends BaseInputAdornmentProps {
626
+ isDropdown: true;
627
+ options: DropdownOption[];
628
+ onOptionSelect: (value: string) => void;
629
+ hideSearch?: boolean;
630
+ isLoading?: boolean;
631
+ }
632
+
633
+ /**
634
+ * adapts to parent's width and height
635
+ */
636
+ export declare function EmptyState({ icon, title, desc, flexDir, btnText, onClick, customSvgClassName, }: EmptyStateProps): JSX_2.Element;
637
+
638
+ declare interface EmptyStateProps {
639
+ icon: string;
640
+ title: string;
641
+ desc?: string;
642
+ flexDir?: 'row' | 'column';
643
+ btnText?: string;
644
+ onClick?: React_2.MouseEventHandler<HTMLButtonElement>;
645
+ customSvgStyles?: React_2.CSSProperties;
646
+ customSvgClassName?: string;
647
+ }
648
+
649
+ declare interface FileType {
650
+ details: {
651
+ ext: string;
652
+ key: string;
653
+ type: string;
654
+ file_name: string;
655
+ icon?: string;
656
+ };
657
+ doc_link: string;
658
+ file_name: string;
659
+ }
660
+
661
+ /**
662
+ * @param filters comes from an api, must follow the type definition strictly
663
+ * @param isLoading is fetching from api
664
+ * @param isError api threw error
665
+ * @param filterDispatch must be of @type (value) => dispatch({type,payload})
666
+ * this is used to sync the internal table filter state with the external zustand store of the consumer
667
+ * @param filterReset same type as above but is used to reset all the filters
668
+ *
669
+ *
670
+ */
671
+ declare type FilterConfig = {
672
+ filters: FilterOptions[];
673
+ isLoading: boolean;
674
+ isError: boolean;
675
+ filterDispatch: (value: any) => void;
676
+ filterReset: (value: any) => void;
677
+ };
678
+
679
+ /**
680
+ * @param filters comes from an api, must follow the type definition strictly
681
+ * @param isLoading is fetching from api
682
+ * @param isError api threw error
683
+ * @param filterDispatch must be of @type (value) => dispatch({type,payload})
684
+ * this is used to sync the internal table filter state with the external zustand store of the consumer
685
+ * @param filterReset same type as above but is used to reset all the filters
686
+ * @param headerFilterIds this is used for the filters which should be in the table header itself, and not inside the filters drawer
687
+ *
688
+ *
689
+ */
690
+ declare type FilterConfig_2 = {
691
+ filters?: TableFilters;
692
+ isLoading: boolean;
693
+ isError: boolean;
694
+ filterDispatch: (value: any) => void;
695
+ filterReset: (value: any) => void;
696
+ headerFilterIds?: string[];
697
+ };
698
+
699
+ declare type FilterOptions = {
700
+ id: string;
701
+ name: string;
702
+ key: string;
703
+ options: {
704
+ name: string;
705
+ value: string;
706
+ country_code?: string;
707
+ customName?: string;
708
+ }[];
709
+ config?: {
710
+ hideSearch?: boolean;
711
+ placeholder?: string;
712
+ };
713
+ };
714
+
715
+ declare type FilterOptions_2 = {
716
+ id: string;
717
+ name: string;
718
+ key: string;
719
+ options: {
720
+ name: string;
721
+ value: string;
722
+ country_code?: string;
723
+ customName?: string;
724
+ }[];
725
+ config?: {
726
+ hideSearch?: boolean;
727
+ placeholder?: string;
728
+ type?: string;
729
+ };
730
+ };
731
+
732
+ declare type FooterButtons = Array<{
733
+ variant?: BUTTON_VARIANT | BUTTON_V2_VARIANT;
734
+ onClick: () => void;
735
+ btnText: string;
736
+ btnType?: BUTTON_V2_TYPE | 'submit';
737
+ btnSize?: BUTTON_V2_SIZE;
738
+ disabled?: boolean;
739
+ isLoading?: boolean;
740
+ loadingText?: string;
741
+ icon?: string;
742
+ }>;
743
+
744
+ export declare const getProductIconFromType: (type?: string) => string;
745
+
746
+ export declare interface GroupActionProps {
747
+ children: React_2.ReactNode;
748
+ variant?: BUTTON_V2_VARIANT;
749
+ disabled?: boolean;
750
+ menuItems: MenuItemV2[];
751
+ customData?: any;
752
+ size?: BUTTON_V2_SIZE;
753
+ actionsDropdownOptions?: {
754
+ setIsActive: React_2.Dispatch<React_2.SetStateAction<boolean>>;
755
+ };
756
+ positionerProps?: PositioningOptions;
757
+ isTable?: boolean;
758
+ customStyles?: {
759
+ customMenuStyles?: React_2.CSSProperties;
760
+ customButtonStyles?: React_2.CSSProperties;
761
+ };
762
+ onClick?: any;
763
+ isCustomTrigger?: boolean;
764
+ isSingleBtnTrigger?: boolean;
765
+ }
766
+
767
+ declare interface IconButtonV2TypeProps extends BaseButtonProps {
768
+ type: BUTTON_V2_TYPE.ICON_LEFT | BUTTON_V2_TYPE.ICON_RIGHT;
769
+ icon: React_2.ReactNode;
770
+ children: React_2.ReactNode;
771
+ }
772
+
773
+ declare interface IconOnlyButtonV2TypeProps extends BaseButtonProps {
774
+ type: BUTTON_V2_TYPE.ICON_ONLY;
775
+ icon: React_2.ReactNode;
776
+ children?: React_2.ReactNode;
777
+ }
778
+
779
+ declare interface ImageProps extends React.ImgHTMLAttributes<HTMLImageElement> {
780
+ src: string;
781
+ alt: string;
782
+ }
783
+
784
+ export declare function Input({ customClasses, customStyles, name, id, value, onChange, restprops, cols, errorMsg, disabled, rows, type, placeholder, onBlur, }: InputProps): JSX_2.Element;
785
+
786
+ export declare namespace Input {
787
+ var displayName: Inputs;
788
+ var id: Inputs;
789
+ }
790
+
791
+ /**
792
+ * Enum representing the different components within the input system.
793
+ * This can be used to identify and manage the different subcomponents
794
+ * of a more complex and nested input structure.
795
+ */
796
+ declare enum INPUT_COMPONENTS {
797
+ INPUT = "input",
798
+ TEXTAREA = "textarea",
799
+ CONTROL = "control",
800
+ LABEL = "label",
801
+ GROUP = "group",
802
+ LEFT_ICON = "leftIcon",
803
+ RIGHT_ICON = "rightIcon",
804
+ LEFT_ADORNMENT = "leftAdornment",
805
+ RIGHT_ADORNMENT = "rightAdornment",
806
+ COUNT = "count",
807
+ NUMBER = "number",
808
+ NUMBER_ADORNMENT = "numberAdornment"
809
+ }
810
+
811
+ /**
812
+ * Type representing the possible props for input adornments, which can either be a dropdown or non actionable.
813
+ */
814
+ declare type InputAdornmentProps = DropdownProps | NonDropdownProps;
815
+
816
+ export declare function InputContainer({ children, customClassName, customStyles, size, }: InputContainerProps): JSX_2.Element;
817
+
818
+ export declare namespace InputContainer {
819
+ var displayName: Inputs;
820
+ var id: Inputs;
821
+ }
822
+
823
+ declare interface InputContainerProps {
824
+ /**
825
+ * Children of the input container
826
+ */
827
+ children: React.ReactNode;
828
+ /**
829
+ * Size of the input container
830
+ */
831
+ size?: 'sm' | 'md' | 'adapt';
832
+ /**
833
+ * Custom classes to be applied to the input container
834
+ */
835
+ customClassName?: string;
836
+ /**
837
+ * Custom styles to be applied to the input container
838
+ */
839
+ customStyles?: React.CSSProperties;
840
+ }
841
+
842
+ /**
843
+ * Props for the InputControl component, used as a wrapper to group multiple input-related components.
844
+ *
845
+ * @interface InputControlPropsV2
846
+ * @extends {React.HTMLAttributes<HTMLDivElement>}
847
+ *
848
+ * @property {React.ReactNode} children - The elements that will be rendered inside the control.
849
+ *
850
+ * @example
851
+ * <InputControlV2>
852
+ * <LabelV2>Username</LabelV2>
853
+ * <InputV2
854
+ * placeholder="Enter"
855
+ * errorMsg="This field is required"
856
+ * />
857
+ * </InputControlV2>
858
+ */
859
+ declare interface InputControlPropsV2 extends React.HTMLAttributes<HTMLDivElement> {
860
+ children: React.ReactNode;
861
+ }
862
+
863
+ /**
864
+ * InputControlV2 is a wrapper component that provides a container for form control elements.
865
+ * It applies consistent styling to its children, typically used for grouping form elements like
866
+ * labels, inputs, and additional controls.
867
+ *
868
+ * @param {InputControlPropsV2} props - The properties for the InputControlV2 component.
869
+ * @param {string} [props.className=''] - Additional class names to apply to the control container.
870
+ * @param {React.ReactNode} props.children - The content to be rendered within the control container.
871
+ * @param {React.HTMLAttributes<HTMLDivElement>} [props] - Additional HTML attributes to apply to the control container.
872
+ *
873
+ * @returns {JSX.Element} The rendered control container with the specified children.
874
+ *
875
+ * @example
876
+ * <InputControlV2>
877
+ * <LabelV2>Username</LabelV2>
878
+ * <InputV2
879
+ * placeholder="Enter"
880
+ * errorMsg="This field is required"
881
+ * />
882
+ * </InputControlV2>
883
+ */
884
+ export declare function InputControlV2({ className, children, ...props }: InputControlPropsV2): JSX_2.Element;
885
+
886
+ export declare namespace InputControlV2 {
887
+ var displayName: INPUT_COMPONENTS;
888
+ }
889
+
890
+ /**
891
+ * InputCount is a specialized input component that allows users to increment
892
+ * or decrement a numeric value within a specified range. It includes buttons
893
+ * for incrementing and decrementing the value, and supports keyboard input for
894
+ * adjusting the count.
895
+ *
896
+ * @param {InputCountProps} props - The properties for the InputCount component.
897
+ * @param {(value: number) => void} props.onCountChange - Callback function called when the count value changes.
898
+ * @param {number} [props.min=-Infinity] - The minimum value that the count can be set to.
899
+ * @param {number} [props.max=Infinity] - The maximum value that the count can be set to.
900
+ * @param {number} [props.count=0] - The current count value.
901
+ * @param {string} [props.countContainerClassName] - Additional class names to apply to the container.
902
+ * @param {boolean} [props.disabled] - Whether the input is disabled.
903
+ * @param {React.InputHTMLAttributes<HTMLInputElement>} [props] - Additional HTML input attributes.
904
+ *
905
+ * @returns {JSX.Element} The rendered InputCount component.
906
+ *
907
+ * @example
908
+ * <InputCount
909
+ * onCountChange={(value) => console.log(value)}
910
+ * min={0}
911
+ * max={10}
912
+ * count={5}
913
+ * disabled={false}
914
+ * />
915
+ */
916
+ export declare function InputCount({ onCountChange, min, max, count, countContainerClassName, disabled, ...props }: InputCountProps): JSX_2.Element;
917
+
918
+ export declare namespace InputCount {
919
+ var displayName: INPUT_COMPONENTS;
920
+ }
921
+
922
+ /**
923
+ * Props for an input field which can be use as counter i.e. product count.
924
+ *
925
+ * @interface InputCountProps
926
+ * @extends {InputV2Props}
927
+ *
928
+ * @property {(value: number) => void} onCountChange - Callback when the count changes.
929
+ * @property {never} [onChange] - `onChange` is disabled for this component; use `onCountChange`.
930
+ * @property {number} [min] - Minimum allowable value for the count (by default Infinity).
931
+ * @property {number} [max] - Maximum allowable value for the count (by default Infinity).
932
+ * @property {number} [count] - Current count value (enable for two way binding).
933
+ * @property {string} [countContainerClassName] - Additional className for the count container.
934
+ *
935
+ * @example
936
+ * <InputCount onCountChange={(value) => ...} count={10} min={0} max={100} />
937
+ */
938
+ declare interface InputCountProps extends InputV2Props {
939
+ onCountChange: (value: number) => void;
940
+ onChange?: never;
941
+ min?: number;
942
+ max?: number;
943
+ count?: number;
944
+ countContainerClassName?: string;
945
+ }
946
+
947
+ declare interface InputDirectionAddonProps {
948
+ /**
949
+ * Children of the input addon
950
+ */
951
+ children: React_2.ReactNode;
952
+ /**
953
+ * to enable dropdown or not
954
+ */
955
+ isDropdown?: boolean;
956
+ /**
957
+ * dropdown options
958
+ */
959
+ dropdownOptions?: Array<{
960
+ label: string;
961
+ value: string;
962
+ }>;
963
+ /**
964
+ * handle dropdown option click
965
+ */
966
+ handleOptionClick?: (selectedOption: {
967
+ label: string;
968
+ value: string;
969
+ }) => void;
970
+ /**
971
+ * show dropdown search
972
+ */
973
+ showDropdownSearch?: boolean;
974
+ }
975
+
976
+ declare interface InputDirectionElementProps {
977
+ /**
978
+ * Children of the input element
979
+ */
980
+ children: React.ReactNode;
981
+ }
982
+
983
+ export declare function InputGroup({ children }: InputGroupProps): JSX_2.Element;
984
+
985
+ export declare namespace InputGroup {
986
+ var displayName: Inputs;
987
+ var id: Inputs;
988
+ }
989
+
990
+ declare interface InputGroupProps {
991
+ /**
992
+ * Children of the input group
993
+ */
994
+ children: React_2.ReactNode;
995
+ }
996
+
997
+ /**
998
+ * Props for the InputGroup component, which groups input icons and adornments elements together.
999
+ *
1000
+ * @interface InputGroupPropsV2
1001
+ * @extends {React.HTMLAttributes<HTMLDivElement>}
1002
+ *
1003
+ * @property {React.ReactNode} children - The elements to be grouped together.
1004
+ *
1005
+ * @example
1006
+ * <InputGroupV2>
1007
+ * <InputLeftAdornment>+</InputLeftAdornment>
1008
+ * <InputV2 />
1009
+ * <InputRightAdornment>-</InputRightAdornment>
1010
+ * </InputGroupV2>
1011
+ * @example
1012
+ * with label
1013
+ * <InputControlV2>
1014
+ * <LabelV2>Username</LabelV2>
1015
+ * <InputGroupV2>
1016
+ * <InputLeftAdornment>+</InputLeftAdornment>
1017
+ * <InputV2 />
1018
+ * <InputRightAdornment>-</InputRightAdornment>
1019
+ * </InputGroupV2>
1020
+ * </InputControlV2>
1021
+ */
1022
+ declare interface InputGroupPropsV2 extends React.HTMLAttributes<HTMLDivElement> {
1023
+ children: React.ReactNode;
1024
+ }
1025
+
1026
+ export declare function InputGroupV2({ className, children, ...props }: InputGroupPropsV2): JSX_2.Element;
1027
+
1028
+ export declare namespace InputGroupV2 {
1029
+ var displayName: INPUT_COMPONENTS;
1030
+ }
1031
+
1032
+ /**
1033
+ * Props for the InputIcon component, which is used to display an icon within an input field. It can be left, right or both.
1034
+ *
1035
+ * @interface InputIconProps
1036
+ *
1037
+ * @property {string} icon - The icon to display.
1038
+ * @property {() => void} [onClick] - Optional click handler for the icon.
1039
+ * @property {never} [iconStyles] - Used for internal styling when grouping it with multiple components. use className for styling icon if clickable.
1040
+ * @property {boolean} [disabled] - Whether the icon should be disabled with input.
1041
+ * @property {string} [className] - Additional classNames for the icon if it is clickable.
1042
+ *
1043
+ * @example
1044
+ * <InputGroupV2>
1045
+ * <InputLeftIcon icon={...} />
1046
+ * <InputV2 />
1047
+ * <InputRightIcon icon={...} />
1048
+ * </InputGroupV2>
1049
+ */
1050
+ declare interface InputIconProps {
1051
+ icon: string;
1052
+ onClick?: () => void;
1053
+ iconStyles?: never;
1054
+ disabled?: boolean;
1055
+ className?: string;
1056
+ }
1057
+
1058
+ export declare function InputLabel({ children, customClasses, customStyles, required, htmlFor, restprops, infoText, infoTextTooltipStyles, isDisabled, }: InputLabelProps): JSX_2.Element;
1059
+
1060
+ export declare namespace InputLabel {
1061
+ var displayName: Inputs;
1062
+ var id: Inputs;
1063
+ }
1064
+
1065
+ declare interface InputLabelProps {
1066
+ /**
1067
+ * Children of the input label
1068
+ */
1069
+ children: React_2.ReactNode;
1070
+ /**
1071
+ * Custom classes to be applied to the input label
1072
+ */
1073
+ customClasses?: string[] | string;
1074
+ /**
1075
+ * Custom styles to be applied to the input label
1076
+ */
1077
+ customStyles?: Record<string, string>;
1078
+ /**
1079
+ * Whether the input is required
1080
+ */
1081
+ required?: boolean;
1082
+ /**
1083
+ * htmlFor attribute of the input label
1084
+ */
1085
+ htmlFor?: string;
1086
+ /**
1087
+ * Rest props to be applied to the input label
1088
+ */
1089
+ restprops?: any;
1090
+ /**
1091
+ * info text
1092
+ */
1093
+ infoText?: string;
1094
+ /**
1095
+ * info text tooltip styles
1096
+ */
1097
+ infoTextTooltipStyles?: React_2.CSSProperties;
1098
+ /**
1099
+ * Disabled state when component inactive
1100
+ */
1101
+ isDisabled?: boolean;
1102
+ }
1103
+
1104
+ export declare function InputLeftAddon({ children, isDropdown, dropdownOptions, handleOptionClick, showDropdownSearch, }: InputDirectionAddonProps): JSX_2.Element;
1105
+
1106
+ export declare namespace InputLeftAddon {
1107
+ var displayName: Inputs;
1108
+ var id: Inputs;
1109
+ }
1110
+
1111
+ /**
1112
+ * Component for rendering an adornment on the left side of an input.
1113
+ * It can either display static content or function as a dropdown trigger.
1114
+ *
1115
+ * @param {InputAdornmentProps} props - The properties for the InputLeftAdornment component.
1116
+ * @param {React.ReactNode} props.children - The content to display inside the adornment.
1117
+ * @param {boolean} [props.isLoading=false] - Indicates if the dropdown is in a loading state.
1118
+ * @param {boolean} [props.disabled] - Whether the adornment is disabled.
1119
+ * @param {boolean} [props.isDropdown] - Whether the adornment is a dropdown trigger.
1120
+ * @param {DropdownOption[]} [props.options] - Options to display in the dropdown.
1121
+ * @param {boolean} [props.hideSearch=false] - Whether to hide the search input in the dropdown.
1122
+ * @param {(value: string) => void} [props.onOptionSelect] - Callback for when an option is selected.
1123
+ *
1124
+ * @returns {JSX.Element} The left adornment for an input field.
1125
+ *
1126
+ * @example
1127
+ * <InputGroupV2>
1128
+ * <InputV2 />
1129
+ * <InputLeftAdornment>...</InputLeftAdornment>
1130
+ * </InputGroupV2>
1131
+ *
1132
+ * @example
1133
+ * <InputGroupV2>
1134
+ * <InputLeftAdornment isDropdown options={options} onOptionSelect={handleSelect}>...</InputLeftAdornment>
1135
+ * <InputV2 />
1136
+ * </InputGroupV2>
1137
+ */
1138
+ export declare function InputLeftAdornment({ children, isLoading, disabled, isDropdown, options, hideSearch, onOptionSelect, }: InputAdornmentProps): JSX_2.Element;
1139
+
1140
+ export declare namespace InputLeftAdornment {
1141
+ var displayName: INPUT_COMPONENTS;
1142
+ }
1143
+
1144
+ export declare function InputLeftElement({ children }: InputDirectionElementProps): JSX_2.Element;
1145
+
1146
+ export declare namespace InputLeftElement {
1147
+ var displayName: Inputs;
1148
+ var id: Inputs;
1149
+ }
1150
+
1151
+ /**
1152
+ * InputLeftIcon renders an icon on the left side of an input field.
1153
+ * If `onClick` is provided, the icon is rendered as a button.
1154
+ *
1155
+ * @param {InputIconProps} props - The properties for the InputLeftIcon component.
1156
+ * @param {string} props.icon - The SVG path for the icon to display.
1157
+ * @param {() => void} [props.onClick] - Optional click handler for the icon. When provided, the icon is rendered as a button.
1158
+ * @param {React.CSSProperties} [props.iconStyles] - Optional inline styles to apply to the icon.
1159
+ * @param {boolean} [props.disabled=false] - Whether the icon or button is disabled.
1160
+ * @param {string} [props.className] - Additional class names to apply to the icon container.
1161
+ *
1162
+ * @returns {JSX.Element} The rendered InputLeftIcon component.
1163
+ *
1164
+ * @example
1165
+ * <InputGroupV2>
1166
+ * <InputLeftIcon icon={...} />
1167
+ * <InputV2 />
1168
+ * </InputGroupV2>
1169
+ */
1170
+ export declare function InputLeftIcon({ icon, onClick, iconStyles, disabled, className, }: InputIconProps): JSX_2.Element;
1171
+
1172
+ export declare namespace InputLeftIcon {
1173
+ var displayName: INPUT_COMPONENTS;
1174
+ }
1175
+
1176
+ /**
1177
+ * InputNumber is a numeric input component with increment and decrement controls.
1178
+ * It ensures that the value stays within the specified min and max bounds.
1179
+ *
1180
+ * @param {InputNumberProps} props - The properties for the InputNumber component.
1181
+ * @param {(value: number) => void} props.onCountChange - Callback function that is called when the numeric value changes.
1182
+ * @param {number} [props.min=-Infinity] - The minimum value allowed.
1183
+ * @param {number} [props.max=Infinity] - The maximum value allowed.
1184
+ * @param {number} [props.count=0] - The initial value of the input.
1185
+ * @param {string} [props.countContainerClassName] - Additional class names for the container of the numeric input.
1186
+ * @param {boolean} [props.disabled=false] - Whether the input and controls are disabled.
1187
+ * @param {React.InputHTMLAttributes<HTMLInputElement>} props - Additional props are passed to the underlying input component.
1188
+ *
1189
+ * @returns {JSX.Element} The rendered InputNumber component.
1190
+ *
1191
+ * @example
1192
+ * <InputNumber onCountChange={(value) => ...)} count={5} min={0} max={10} />
1193
+ */
1194
+ export declare function InputNumber({ onCountChange, min, max, count, countContainerClassName, disabled, ...props }: InputNumberProps): JSX_2.Element;
1195
+
1196
+ export declare namespace InputNumber {
1197
+ var displayName: INPUT_COMPONENTS;
1198
+ }
1199
+
1200
+ /**
1201
+ * Props for an input field designed to accept numeric values.
1202
+ *
1203
+ * @interface InputNumberProps
1204
+ * @extends {InputV2Props}
1205
+ *
1206
+ * @property {(value: number) => void} onCountChange - Callback when the numeric value changes.
1207
+ * @property {never} [onChange] - `onChange` is disabled for this component; use `onCountChange`.
1208
+ * @property {number} [min] - Minimum allowable value for the input (by default Infinity)
1209
+ * @property {number} [max] - Maximum allowable value for the input (by default Infinity)
1210
+ * @property {number} [count] - Current numeric value (enable for two way binding).
1211
+ * @property {string} [countContainerClassName] -Additional className for the count container.
1212
+ *
1213
+ * @example
1214
+ * <InputNumber onCountChange={(value) => ...)} count={5} min={0} max={10} />
1215
+ */
1216
+ declare interface InputNumberProps extends InputV2Props {
1217
+ onCountChange: (value: number) => void;
1218
+ onChange?: never;
1219
+ min?: number;
1220
+ max?: number;
1221
+ count?: number;
1222
+ countContainerClassName?: string;
1223
+ }
1224
+
1225
+ declare interface InputProps {
1226
+ /**
1227
+ * Custom classes to be applied to the input
1228
+ */
1229
+ customClasses?: string[] | string;
1230
+ /**
1231
+ * Custom styles to be applied to the input
1232
+ */
1233
+ customStyles?: Record<string, string>;
1234
+ /**
1235
+ * Type of the input
1236
+ */
1237
+ type?: HTMLInputTypeAttribute | 'textarea';
1238
+ /**
1239
+ * Placeholder of the input
1240
+ */
1241
+ placeholder?: string;
1242
+ /**
1243
+ * Name of the input
1244
+ */
1245
+ name?: string;
1246
+ /**
1247
+ * Id of the input
1248
+ */
1249
+ id?: string;
1250
+ /**
1251
+ * Value of the input
1252
+ */
1253
+ value?: string | number;
1254
+ /**
1255
+ * On change handler of the input
1256
+ */
1257
+ onChange?: (e: React_2.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>, arg?: any) => void;
1258
+ /**
1259
+ * whether the input is disabled or not
1260
+ */
1261
+ disabled?: boolean;
1262
+ /**
1263
+ * Rest props of the input
1264
+ */
1265
+ restprops?: any;
1266
+ /**
1267
+ * Number of rows of the textarea
1268
+ */
1269
+ rows?: number;
1270
+ /**
1271
+ * Number of cols of the textarea
1272
+ */
1273
+ cols?: number;
1274
+ /**
1275
+ * Error message of the input
1276
+ */
1277
+ errorMsg?: string | false;
1278
+ /** Multiple select? */
1279
+ multiple?: boolean;
1280
+ /** Blur event handler */
1281
+ onBlur?: {
1282
+ /** Classic React blur handler, keyed by input name */
1283
+ (e: React_2.FocusEvent<any>): void;
1284
+ /** Preact-like linkState. Will return a handleBlur function. */
1285
+ <T = string | any>(fieldOrEvent: T): T extends string ? (e: any) => void : void;
1286
+ };
1287
+ }
1288
+
1289
+ export declare function InputRightAddon({ children, isDropdown, dropdownOptions, handleOptionClick, showDropdownSearch, }: InputDirectionAddonProps): JSX_2.Element;
1290
+
1291
+ export declare namespace InputRightAddon {
1292
+ var displayName: Inputs;
1293
+ var id: Inputs;
1294
+ }
1295
+
1296
+ /**
1297
+ * Component for rendering an adornment on the right side of an input.
1298
+ * It can either display static content or function as a dropdown trigger.
1299
+ *
1300
+ * @param {InputAdornmentProps} props - The properties for the InputRightAdornment component.
1301
+ * @param {React.ReactNode} props.children - The content to display inside the adornment.
1302
+ * @param {boolean} [props.isLoading=false] - Indicates if the dropdown is in a loading state.
1303
+ * @param {boolean} [props.disabled] - Whether the adornment is disabled.
1304
+ * @param {boolean} [props.isDropdown] - Whether the adornment is a dropdown trigger.
1305
+ * @param {DropdownOption[]} [props.options] - Options to display in the dropdown.
1306
+ * @param {boolean} [props.hideSearch=false] - Whether to hide the search input in the dropdown.
1307
+ * @param {(value: string) => void} [props.onOptionSelect] - Callback for when an option is selected.
1308
+ *
1309
+ * @returns {JSX.Element} The right adornment for an input field.
1310
+ *
1311
+ * @example
1312
+ * <InputGroupV2>
1313
+ * <InputV2 />
1314
+ * <InputRightAdornment>...</InputRightAdornment>
1315
+ * </InputGroupV2>
1316
+ *
1317
+ * @example
1318
+ * <InputGroupV2>
1319
+ * <InputRightAdornment isDropdown options={options} onOptionSelect={handleSelect}>...</InputRightAdornment>
1320
+ * <InputV2 />
1321
+ * </InputGroupV2>
1322
+ */
1323
+ export declare function InputRightAdornment({ children, isLoading, disabled, isDropdown, options, hideSearch, onOptionSelect, }: InputAdornmentProps): JSX_2.Element;
1324
+
1325
+ export declare namespace InputRightAdornment {
1326
+ var displayName: INPUT_COMPONENTS;
1327
+ }
1328
+
1329
+ export declare function InputRightElement({ children }: InputDirectionElementProps): JSX_2.Element;
1330
+
1331
+ export declare namespace InputRightElement {
1332
+ var displayName: Inputs;
1333
+ var id: Inputs;
1334
+ }
1335
+
1336
+ /**
1337
+ * InputRightIcon renders an icon on the right side of an input field.
1338
+ * If `onClick` is provided, the icon is rendered as a button.
1339
+ *
1340
+ * @param {InputIconProps} props - The properties for the InputRightIcon component.
1341
+ * @param {string} props.icon - The SVG path for the icon to display.
1342
+ * @param {() => void} [props.onClick] - Optional click handler for the icon. When provided, the icon is rendered as a button.
1343
+ * @param {React.CSSProperties} [props.iconStyles] - Optional inline styles to apply to the icon.
1344
+ * @param {boolean} [props.disabled=false] - Whether the icon or button is disabled.
1345
+ * @param {string} [props.className] - Additional class names to apply to the icon container.
1346
+ *
1347
+ * @returns {JSX.Element} The rendered InputRightIcon component.
1348
+ *
1349
+ * @example
1350
+ * <InputGroupV2>
1351
+ * <InputV2 />
1352
+ * <InputRightIcon icon={...} />
1353
+ * </InputGroupV2>
1354
+ */
1355
+ export declare function InputRightIcon({ icon, onClick, iconStyles, disabled, className, }: InputIconProps): JSX_2.Element;
1356
+
1357
+ export declare namespace InputRightIcon {
1358
+ var displayName: INPUT_COMPONENTS;
1359
+ }
1360
+
1361
+ declare enum Inputs {
1362
+ INPUT_ADDON = "InputAddon",
1363
+ INPUT_LEFT_ADDON = "InputLeftAddon",
1364
+ INPUT_RIGHT_ADDON = "InputRightAddon",
1365
+ INPUT_ELEMENT = "InputElement",
1366
+ INPUT_LEFT_ELEMENT = "InputLeftElement",
1367
+ INPUT_RIGHT_ELEMENT = "InputRightElement",
1368
+ INPUT_CONTAINER = "InputContainer",
1369
+ INPUT_LABEL = "InputLabel",
1370
+ INPUT_GROUP = "InputGroup",
1371
+ INPUT = "Input"
1372
+ }
1373
+
1374
+ /**
1375
+ * InputV2 component - A custom input component with extended functionality and built-in error handling.
1376
+ *
1377
+ * @param {InputV2Props} props - The props object containing configurations and attributes for the input element.
1378
+ * @param {React.Ref<HTMLInputElement>} ref - A React ref that can be used to access the input element directly.
1379
+ *
1380
+ * @returns {JSX.Element} A JSX element representing the custom input field.
1381
+ *
1382
+ * @example
1383
+ * <InputV2 placeholder="Enter your name" />
1384
+ *
1385
+ * @example
1386
+ * <InputV2 errorMsg="Name is required" placeholder="Enter your name" />
1387
+ * @example
1388
+ * with formik
1389
+ * <InputV2 {...formik.getFieldProps(key)} placeholder="Enter your name" />
1390
+ */
1391
+ export declare const InputV2: React_2.ForwardRefExoticComponent<InputV2Props & React_2.RefAttributes<HTMLInputElement>>;
1392
+
1393
+ /**
1394
+ * Props for the InputV2 component, which extends the standard HTML input element
1395
+ * with additional styling and error handling.
1396
+ *
1397
+ * @interface InputV2Props
1398
+ * @extends {React.InputHTMLAttributes<HTMLInputElement>}
1399
+ *
1400
+ * @property {string} [errorMsg] - Error message to display below the input if there is a validation error.
1401
+ * @property {string} [containerClassName] - Additional class name(s) for the input container div.
1402
+ * @property {never} [inputStyles] - Used for internal styling when grouping it with multiple components. use className for styling input.
1403
+ * @property {never} [containerStyles] - Used for internal styling when grouping it with multiple components. use containerClassName for styling input container.
1404
+ *
1405
+ * @example
1406
+ * <InputV2
1407
+ * placeholder="Enter"
1408
+ * errorMsg="This field is required"
1409
+ * />
1410
+ * @example
1411
+ * with formik
1412
+ * <InputV2
1413
+ * {...formik.getFieldProps(key)}
1414
+ * placeholder="Enter"
1415
+ * errorMsg="This field is required"
1416
+ * />
1417
+ */
1418
+ declare interface InputV2Props extends React.InputHTMLAttributes<HTMLInputElement> {
1419
+ errorMsg?: string;
1420
+ containerClassName?: string;
1421
+ inputStyles?: never;
1422
+ containerStyles?: never;
1423
+ }
1424
+
1425
+ declare interface ITask {
1426
+ module_id: string;
1427
+ module_reference: string;
1428
+ module_name: string;
1429
+ form_link: string | null;
1430
+ external_link: string | null;
1431
+ static_module: boolean;
1432
+ icon_url: string;
1433
+ name: string;
1434
+ date: string;
1435
+ details: ITaskDetails[];
1436
+ status: string;
1437
+ }
1438
+
1439
+ declare interface ITaskDetails {
1440
+ key: string;
1441
+ value: string | ITaskObjectValue | FileType[] | null;
1442
+ }
1443
+
1444
+ declare interface ITaskObjectValue {
1445
+ first_name: string;
1446
+ middle_name: string | null;
1447
+ last_name: string | null;
1448
+ profile_img_url: string;
1449
+ work_email: string;
1450
+ }
1451
+
1452
+ /**
1453
+ * Props for the Label component, used to provide descriptive text for form inputs.
1454
+ *
1455
+ * @interface LabelPropsV2
1456
+ * @extends {React.LabelHTMLAttributes<HTMLLabelElement>}
1457
+ *
1458
+ * @property {React.ReactNode} children - The text or elements inside the label.
1459
+ * @property {string} [info] - Additional info to display, such as help text in tooltip.
1460
+ * @property {boolean} [disabled] - Whether the associated input is disabled.
1461
+ * @property {boolean} [required] - Whether the field is required (red * will be shown beside label).
1462
+ * @property {Partial<TooltipV2Props>} [tooltipProps] - Props for the tooltip, if additional information is provided and want to customize tooltip styles.
1463
+ *
1464
+ * @example
1465
+ * <LabelV2 info="Your full name">Name</LabelV2>
1466
+ */
1467
+ declare interface LabelPropsV2 extends React.LabelHTMLAttributes<HTMLLabelElement> {
1468
+ children: React.ReactNode;
1469
+ info?: string;
1470
+ disabled?: boolean;
1471
+ required?: boolean;
1472
+ tooltipProps?: Partial<TooltipV2Props>;
1473
+ }
1474
+
1475
+ /**
1476
+ * LabelV2 is a label component that can display additional information via a tooltip,
1477
+ * mark the field as required, and adjust styles based on the disabled state.
1478
+ *
1479
+ * @param {LabelPropsV2} props - The properties for the LabelV2 component.
1480
+ * @param {string} [props.className=''] - Additional class names to apply to the label element.
1481
+ * @param {string} [props.info=''] - Information text to be displayed in a tooltip. If provided, an info icon will appear next to the label.
1482
+ * @param {boolean} [props.disabled=false] - Whether the label and its associated input are disabled.
1483
+ * @param {boolean} [props.required=false] - Whether the associated input field is required. If true, an asterisk (*) will be displayed.
1484
+ * @param {object} [props.tooltipProps={}] - Optional props to pass to the TooltipV2 component.
1485
+ * @param {React.ReactNode} props.children - The content of the label, usually text.
1486
+ * @returns {JSX.Element} The rendered LabelV2 component.
1487
+ *
1488
+ * @example
1489
+ * <LabelV2 required info="This field is required">
1490
+ * Username
1491
+ * </LabelV2>
1492
+ */
1493
+ export declare function LabelV2({ className, info, disabled, required, tooltipProps, children, ...props }: LabelPropsV2): JSX_2.Element;
1494
+
1495
+ export declare namespace LabelV2 {
1496
+ var displayName: INPUT_COMPONENTS;
1497
+ }
1498
+
1499
+ export declare function LayoutTabs({ tabs, defaultValue, tabClassName, onValueChange }: LayoutTabsProps): JSX_2.Element;
1500
+
1501
+ declare interface LayoutTabsProps {
1502
+ tabClassName?: string;
1503
+ /**
1504
+ * tabs to render
1505
+ */
1506
+ tabs: Array<{
1507
+ label: string;
1508
+ value: string;
1509
+ content: React_2.ReactNode | string;
1510
+ }>;
1511
+ /**
1512
+ * default value (initial tab to render)
1513
+ */
1514
+ defaultValue: string;
1515
+ /**
1516
+ * callback function when tab is changed
1517
+ */
1518
+ onValueChange?: (value: string) => void;
1519
+ }
1520
+
1521
+ export declare function Loader({ containerStyle, loaderStyle, variant }: LoaderProps): JSX_2.Element;
1522
+
1523
+ export declare enum LOADER_VARIANT {
1524
+ RING = "ring",
1525
+ DUAL_RING = "dual_ring",
1526
+ RIPPLE = "ripple",
1527
+ ELLIPSES = "ellipses",
1528
+ ROLLER = "roller",
1529
+ SPINNER = "spinner",
1530
+ HOURGLASS = "hourglass",
1531
+ GRID = "grid"
1532
+ }
1533
+
1534
+ export declare type LoaderProps = {
1535
+ containerStyle?: React_2.CSSProperties;
1536
+ loaderStyle?: React_2.CSSProperties;
1537
+ variant?: LOADER_VARIANT;
1538
+ };
1539
+
1540
+ declare function MenuActionsDropdown({ menuItems, data, variant, isTable, }: MenuActionsDropdownProps): JSX_2.Element;
1541
+
1542
+ export declare type MenuActionsDropdownProps = {
1543
+ menuItems: MenuItem[];
1544
+ data?: any;
1545
+ variant?: 'regular' | 'small';
1546
+ isTable?: boolean;
1547
+ };
1548
+
1549
+ export declare interface MenuButtonProps {
1550
+ children: React_2.ReactNode;
1551
+ variant?: BUTTON_VARIANT;
1552
+ disabled?: boolean;
1553
+ menuItems: MenuItem[];
1554
+ onClick?: React_2.MouseEventHandler<HTMLButtonElement>;
1555
+ isCustomTrigger?: boolean;
1556
+ isSingleBtnTrigger?: boolean;
1557
+ customData?: any;
1558
+ size?: 'sm' | 'md';
1559
+ actionsDropdownOptions?: {
1560
+ setIsActive: React_2.Dispatch<React_2.SetStateAction<boolean>>;
1561
+ };
1562
+ positionerProps?: PositioningOptions;
1563
+ isTable?: boolean;
1564
+ }
1565
+
1566
+ export declare type MenuItem = {
1567
+ label: string;
1568
+ iconSrc?: string;
1569
+ onClick: any;
1570
+ filterFn?: any;
1571
+ disabled?: boolean;
1572
+ };
1573
+
1574
+ export declare type MenuItemV2 = {
1575
+ label: string;
1576
+ iconSrc?: string;
1577
+ onClick: any;
1578
+ filterFn?: any;
1579
+ disabled?: boolean;
1580
+ customStyles?: React_2.CSSProperties;
1581
+ customSvgClassName?: React_2.CSSProperties;
1582
+ };
1583
+
1584
+ export declare function Modal({ isOpen, onClose, children, size, showOverlay, machineProps, }: ModalProps): JSX_2.Element;
1585
+
1586
+ export declare function ModalBody({ children, api, customStyles }: ModalBodyProps): JSX_2.Element;
1587
+
1588
+ declare interface ModalBodyProps {
1589
+ /**
1590
+ * Modal body children
1591
+ */
1592
+ children: React.ReactNode;
1593
+ /**
1594
+ * Zagjs modal API (no need to pass when using this component)
1595
+ * will be inserted by default
1596
+ */
1597
+ api?: any;
1598
+ /**
1599
+ * custom styles
1600
+ */
1601
+ customStyles?: React.CSSProperties;
1602
+ }
1603
+
1604
+ export declare function ModalContent({ children, api, size }: ModalContentProps): JSX_2.Element;
1605
+
1606
+ declare interface ModalContentProps {
1607
+ /**
1608
+ * Modal content children
1609
+ */
1610
+ children: React_2.ReactNode;
1611
+ /**
1612
+ * Zagjs modal API (no need to pass when using this component)
1613
+ * will be inserted by default
1614
+ */
1615
+ api?: any;
1616
+ /**
1617
+ * size of the modal
1618
+ */
1619
+ size?: 'sm' | 'md' | 'fullScreen';
1620
+ }
1621
+
1622
+ export declare function ModalFooter({ children, api, buttons, showBorder }: ModalFooterProps): JSX_2.Element;
1623
+
1624
+ declare interface ModalFooterProps {
1625
+ /**
1626
+ * Modal footer children
1627
+ * if children is passed, default buttons will not be shown
1628
+ * children acts like a custom footer
1629
+ */
1630
+ children?: React.ReactNode;
1631
+ /**
1632
+ * zagjs modal API (no need to pass when using this component)
1633
+ * will be inserted by default
1634
+ */
1635
+ api?: any;
1636
+ /**
1637
+ * set of buttons to display
1638
+ */
1639
+ buttons: FooterButtons;
1640
+ /**
1641
+ * show border or not
1642
+ */
1643
+ showBorder?: boolean;
1644
+ }
1645
+
1646
+ export declare function ModalHeader({ children, api, showCrossBtn, showBorder, }: ModalHeaderProps): JSX_2.Element;
1647
+
1648
+ declare interface ModalHeaderProps {
1649
+ /**
1650
+ * Modal header children
1651
+ */
1652
+ children: React.ReactNode;
1653
+ /**
1654
+ * Zagjs modal API (no need to pass when using this component)
1655
+ * will be inserted by default
1656
+ */
1657
+ api?: any;
1658
+ /**
1659
+ * Show cross button or not
1660
+ */
1661
+ showCrossBtn?: boolean;
1662
+ /**
1663
+ * Show border or not
1664
+ */
1665
+ showBorder?: boolean;
1666
+ }
1667
+
1668
+ export declare function ModalOverlay({ api }: ModalOverlayProps): JSX_2.Element;
1669
+
1670
+ declare interface ModalOverlayProps {
1671
+ /**
1672
+ * Zagjs modal API (no need to pass when using this component)
1673
+ * will be inserted by default
1674
+ */
1675
+ api?: any;
1676
+ }
1677
+
1678
+ declare type ModalProps = {
1679
+ /**
1680
+ * Modal is open or not
1681
+ */
1682
+ isOpen: boolean;
1683
+ /**
1684
+ * Modal close handler
1685
+ */
1686
+ onClose: () => void;
1687
+ /**
1688
+ * Modal content
1689
+ */
1690
+ children: React_2.ReactNode;
1691
+ /**
1692
+ * size of modal
1693
+ */
1694
+ size?: 'sm' | 'md' | 'fullScreen';
1695
+ /**
1696
+ * show overlay
1697
+ */
1698
+ showOverlay?: boolean;
1699
+ /**
1700
+ * Machine Props
1701
+ */
1702
+ machineProps?: dialog.Context | {};
1703
+ };
1704
+
1705
+ /**
1706
+ * Props for a non-dropdown adornment within an input field, such as an icon.
1707
+ *
1708
+ * @interface NonDropdownProps
1709
+ * @extends {BaseInputAdornmentProps}
1710
+ *
1711
+ * @property {false} [isDropdown] - Indicates this adornment is not a dropdown.
1712
+ * @property {never} [options] - Options are not applicable to non-dropdown adornments.
1713
+ * @property {never} [hideSearch] - Search hiding is not applicable to non-dropdown adornments.
1714
+ * @property {never} [onOptionSelect] - Option selection is not applicable to non-dropdown adornments.
1715
+ * @property {never} [isLoading] - Loading state is not applicable to non-dropdown adornments.
1716
+ *
1717
+ * @example
1718
+ * @example
1719
+ * <InputGroupV2>
1720
+ * <InputV2 />
1721
+ * <InputRightAdornment>...</InputRightAdornment>
1722
+ * </InputGroupV2>
1723
+ */
1724
+ declare interface NonDropdownProps extends BaseInputAdornmentProps {
1725
+ isDropdown?: false;
1726
+ options?: never;
1727
+ hideSearch?: never;
1728
+ onOptionSelect?: never;
1729
+ isLoading?: never;
1730
+ }
1731
+
1732
+ declare type Option_2 = OptionWithProfileImg | OptionWithIcon;
1733
+ export { Option_2 as Option }
1734
+
1735
+ export declare type OptionBase = {
1736
+ label: string;
1737
+ value: string;
1738
+ subLabel?: string;
1739
+ };
1740
+
1741
+ declare type OptionType = {
1742
+ label: string;
1743
+ value: string;
1744
+ __isNew__?: boolean;
1745
+ };
1746
+
1747
+ export declare type OptionWithIcon = OptionBase & {
1748
+ icon?: string;
1749
+ profileImgUrl?: never;
1750
+ };
1751
+
1752
+ export declare type OptionWithProfileImg = OptionBase & {
1753
+ profileImgUrl?: string;
1754
+ icon?: never;
1755
+ };
1756
+
1757
+ declare interface OtherButtonV2TypeProps extends BaseButtonProps {
1758
+ type?: BUTTON_V2_TYPE.BASIC | BUTTON_V2_TYPE.BUTTON | BUTTON_V2_TYPE.RESET;
1759
+ icon?: React_2.ReactNode;
1760
+ children: React_2.ReactNode;
1761
+ }
1762
+
1763
+ export declare function Pill({ status, children }: PillProps): JSX_2.Element;
1764
+
1765
+ export declare enum PILL_STATUS {
1766
+ DEFAULT = "default",
1767
+ NEUTRAL = "neutral",
1768
+ POSITIVE = "positive",
1769
+ WARNING = "warning",
1770
+ NEGATIVE = "negative",
1771
+ HIGHLIGHT = "highlight"
1772
+ }
1773
+
1774
+ declare interface PillProps {
1775
+ status?: PILL_STATUS;
1776
+ children: React_2.ReactNode;
1777
+ }
1778
+
1779
+ export declare function Popover({ children, placement, popoverProps, closeOnScroll, containerRef, }: PopoverProps): JSX_2.Element;
1780
+
1781
+ export declare function PopoverCloseButton({ children, api, styles, className }: PopoverCloseButtonProps): JSX_2.Element;
1782
+
1783
+ /**
1784
+ * @author Pratik Awaik <pratik@hybr1d.io>
1785
+ */
1786
+ declare interface PopoverCloseButtonProps {
1787
+ /**
1788
+ * The content of the close button.
1789
+ */
1790
+ children: React.ReactNode;
1791
+ /**
1792
+ * The popover API object.
1793
+ */
1794
+ api?: any;
1795
+ /**
1796
+ * The styles to apply to the PopoverCloseButton.
1797
+ */
1798
+ styles?: React.CSSProperties;
1799
+ /**
1800
+ * The className to apply to the PopoverCloseButton.
1801
+ */
1802
+ className?: string;
1803
+ }
1804
+
1805
+ export declare function PopoverContent({ children, api, bg, styles, className, positionerStyles, }: PopoverContentProps): JSX_2.Element;
1806
+
1807
+ declare interface PopoverContentProps {
1808
+ /**
1809
+ * The content of the PopoverContent.
1810
+ */
1811
+ children: React_2.ReactNode;
1812
+ /**
1813
+ * The popover API object.
1814
+ */
1815
+ api?: any;
1816
+ /**
1817
+ * The background color of the PopoverContent.
1818
+ */
1819
+ bg?: 'black' | 'gray' | string;
1820
+ /**
1821
+ * The styles to apply to the PopoverContent.
1822
+ */
1823
+ styles?: React_2.CSSProperties;
1824
+ /**
1825
+ * The className to apply to the PopoverContent.
1826
+ */
1827
+ className?: string;
1828
+ /**
1829
+ * The styles to apply to Popover positioner
1830
+ */
1831
+ positionerStyles?: React_2.CSSProperties;
1832
+ }
1833
+
1834
+ export declare function PopoverDescription({ children, api, styles, className }: PopoverDescriptionProps): JSX_2.Element;
1835
+
1836
+ /**
1837
+ * @author Pratik Awaik <pratik@hybr1d.io>
1838
+ */
1839
+ declare interface PopoverDescriptionProps {
1840
+ /**
1841
+ * The content of the PopoverDescription.
1842
+ */
1843
+ children: React.ReactNode;
1844
+ /**
1845
+ * The popover API object.
1846
+ */
1847
+ api?: any;
1848
+ /**
1849
+ * The styles to apply to the PopoverDescription.
1850
+ */
1851
+ styles?: React.CSSProperties;
1852
+ /**
1853
+ * The className to apply to the PopoverDescription.
1854
+ */
1855
+ className?: string;
1856
+ }
1857
+
1858
+ declare type PopoverProps = {
1859
+ /**
1860
+ * Content of the trigger
1861
+ */
1862
+ children: React_2.ReactNode;
1863
+ /**
1864
+ * Placement of the popover
1865
+ */
1866
+ placement?: Placement;
1867
+ /**
1868
+ * Props to pass to the popover machine
1869
+ */
1870
+ popoverProps?: any;
1871
+ /**
1872
+ * close popover on scroll
1873
+ */
1874
+ closeOnScroll?: boolean;
1875
+ /**
1876
+ * when using closeOnScroll, its necessary to pass containerRef to track scroll movement of the container you want to close the popover with respect to.
1877
+ */
1878
+ containerRef?: React_2.RefObject<HTMLElement>;
1879
+ };
1880
+
1881
+ export declare function PopoverTitle({ children, api, styles, className }: PopoverTitleProps): JSX_2.Element;
1882
+
1883
+ /**
1884
+ * @author Pratik Awaik <pratik@hybr1d.io>
1885
+ */
1886
+ declare interface PopoverTitleProps {
1887
+ /**
1888
+ * The content of the PopoverTitle.
1889
+ */
1890
+ children: React.ReactNode;
1891
+ /**
1892
+ * The popover API object.
1893
+ */
1894
+ api?: any;
1895
+ /**
1896
+ * The styles to apply to the PopoverTitle.
1897
+ */
1898
+ styles?: React.CSSProperties;
1899
+ /**
1900
+ * The className to apply to the PopoverTitle.
1901
+ */
1902
+ className?: string;
1903
+ }
1904
+
1905
+ export declare function PopoverTrigger({ children, api, openOnHover, styles, className, }: PopoverTriggerProps): JSX_2.Element;
1906
+
1907
+ /**
1908
+ * @author Pratik Awaik <pratik@hybr1d.io>
1909
+ */
1910
+ declare interface PopoverTriggerProps {
1911
+ /**
1912
+ * The content of the PopoverTrigger.
1913
+ */
1914
+ children: React.ReactNode;
1915
+ /**
1916
+ * The popover API object.
1917
+ */
1918
+ api?: any;
1919
+ /**
1920
+ * Whether the popover should open on hover.
1921
+ * @default true
1922
+ * If set to false, the popover will only open on click.
1923
+ */
1924
+ openOnHover?: boolean;
1925
+ /**
1926
+ * The styles to apply to the PopoverTrigger.
1927
+ */
1928
+ styles?: React.CSSProperties;
1929
+ /**
1930
+ * The className to apply to the PopoverTrigger.
1931
+ */
1932
+ className?: string;
1933
+ }
1934
+
1935
+ export declare function Progress({ steps, onCancelClick, onFinalStepClick, stepToShowSkipBtn, lastStepFooterContinueBtnText, showSkipBtn, showHeaderBtns, showFooter, lastStepHeaderContinueBtnText, allowNavigationOnStepClick, skipBtnText, jumpToStep, onSkipClick, }: ProgressProps): JSX_2.Element;
1936
+
1937
+ declare type ProgressProps = {
1938
+ /**
1939
+ * steps to show
1940
+ * if there isError is true, user won't be able to click on Continue or finish button
1941
+ */
1942
+ steps: {
1943
+ label: string;
1944
+ component: React_2.ReactNode;
1945
+ isError: boolean;
1946
+ onContinueClick?: Function;
1947
+ }[];
1948
+ /**
1949
+ * handle cancel click
1950
+ */
1951
+ onCancelClick: () => void;
1952
+ /**
1953
+ * handle final step click
1954
+ */
1955
+ onFinalStepClick: () => void;
1956
+ /**
1957
+ * text to show on footer continue button when the step is last step
1958
+ */
1959
+ lastStepFooterContinueBtnText: string;
1960
+ /**
1961
+ * show skip button or not
1962
+ */
1963
+ showSkipBtn?: boolean;
1964
+ /**
1965
+ * show buttons on header
1966
+ */
1967
+ showHeaderBtns?: boolean;
1968
+ /**
1969
+ * show footer
1970
+ */
1971
+ showFooter?: boolean;
1972
+ /**
1973
+ * text to show on header continue button when the step is last step
1974
+ */
1975
+ lastStepHeaderContinueBtnText?: string;
1976
+ /**
1977
+ * allow navigation of steps when user click on certain step
1978
+ */
1979
+ allowNavigationOnStepClick?: boolean;
1980
+ /**
1981
+ * step to show skip button (counting starts from zero)
1982
+ */
1983
+ stepToShowSkipBtn?: number;
1984
+ /**
1985
+ * skip button text
1986
+ */
1987
+ skipBtnText?: string;
1988
+ /**
1989
+ * directly jump to particular step (index starts from 0)
1990
+ */
1991
+ jumpToStep?: number;
1992
+ /**
1993
+ * on skip click
1994
+ */
1995
+ onSkipClick?: () => void;
1996
+ };
1997
+
1998
+ export declare function RadioGroup({ items, radioHeading, defaultValue, onChange, required, errorMsg, optionsContainerStyles, disabled, showSkeleton, }: RadioGroupProps): JSX_2.Element;
1999
+
2000
+ declare interface RadioGroupProps {
2001
+ /**
2002
+ * heading for radio group
2003
+ */
2004
+ radioHeading?: string;
2005
+ /**
2006
+ * items to show in radio group
2007
+ */
2008
+ items: Array<{
2009
+ label: {
2010
+ heading: string | React_2.ReactNode;
2011
+ subHeading?: string;
2012
+ };
2013
+ value: string;
2014
+ tooltip?: {
2015
+ txt: string;
2016
+ trigger?: React_2.ReactNode;
2017
+ placement?: string;
2018
+ };
2019
+ }>;
2020
+ /**
2021
+ * default value to be selected on first render
2022
+ */
2023
+ defaultValue?: string;
2024
+ /**
2025
+ * callback to be called on change of radio group
2026
+ * @param value
2027
+ * value of selected radio
2028
+ * */
2029
+ onChange: (value: string) => void;
2030
+ /**
2031
+ * if radio group is required
2032
+ * */
2033
+ required?: boolean;
2034
+ /**
2035
+ * error msg to display
2036
+ */
2037
+ errorMsg?: string;
2038
+ optionsContainerStyles?: React_2.CSSProperties;
2039
+ disabled?: boolean;
2040
+ showSkeleton?: boolean;
2041
+ }
2042
+
2043
+ export declare function Search({ id, search, setSearch, placeholder, clearIconClearFn, customStyles, disabled, }: SearchProps): JSX_2.Element;
2044
+
2045
+ export declare interface SearchProps {
2046
+ id: string;
2047
+ search?: string;
2048
+ setSearch?: React_2.Dispatch<React_2.SetStateAction<string>>;
2049
+ placeholder?: string;
2050
+ clearIconClearFn?: any;
2051
+ customStyles?: {
2052
+ customInputStyles?: React_2.CSSProperties;
2053
+ customIconStyles?: React_2.CSSProperties;
2054
+ };
2055
+ disabled?: boolean;
2056
+ }
2057
+
2058
+ /**
2059
+ * SearchV2 is a customizable search input component that integrates with the `InputV2` component.
2060
+ * It includes search and clear icons, and supports controlled and uncontrolled modes for managing the search input value.
2061
+ *
2062
+ * @param {SearchV2Props} props - The properties for the SearchV2 component.
2063
+ * @param {string} [props.search=''] - The current search term value (used in uncontrolled mode).
2064
+ * @param {React.Dispatch<React.SetStateAction<string>>} [props.setSearch] - Function to update the search term (used in controlled mode).
2065
+ * @param {InputV2Props} [props] - Additional properties to pass to the `InputV2` component.
2066
+ * @returns {JSX.Element} The rendered SearchV2 component.
2067
+ *
2068
+ * @example
2069
+ * <SearchV2
2070
+ * search={searchTerm}
2071
+ * setSearch={setSearchTerm}
2072
+ * placeholder="Search..."
2073
+ * />
2074
+ */
2075
+ export declare function SearchV2({ search, setSearch, ...props }: SearchV2Props): JSX_2.Element;
2076
+
2077
+ declare interface SearchV2Props extends InputV2Props {
2078
+ search?: string;
2079
+ setSearch?: React.Dispatch<React.SetStateAction<string>>;
2080
+ }
2081
+
2082
+ export declare function SegmentedControl({ items, defaultValue, handleOnChange }: SegmentedControlProps): JSX_2.Element;
2083
+
2084
+ declare interface SegmentedControlProps {
2085
+ /**
2086
+ * items to show in segmented control
2087
+ */
2088
+ items: Array<{
2089
+ label: string;
2090
+ value: string;
2091
+ component: React_2.ReactNode;
2092
+ }>;
2093
+ /**
2094
+ * default value to be selected on first render
2095
+ */
2096
+ defaultValue?: string;
2097
+ /**
2098
+ * handle on change
2099
+ * use this if you are controlling the behavior of segmented control from an external entity
2100
+ */
2101
+ handleOnChange?: (value: string) => void;
2102
+ }
2103
+
2104
+ export declare function Select({ options, onChange, name, id, className, placeholder, selectStyles, defaultValue, formatGroupLabel, customContainerStyles, customErrorStyles, menuPlacement, errorMsg, extraprops, isDisabled, isSearchable, isMulti, isClearable, customValue, CustomDropdownIndicator, }: SelectProps): JSX_2.Element;
2105
+
2106
+ export declare enum SELECT_VARIANT {
2107
+ DEFAULT = "default",
2108
+ USERS = "users",
2109
+ CHECKBOX = "checkbox",
2110
+ TAGS = "tags"
2111
+ }
2112
+
2113
+ export declare type SelectActionMeta = ActionMeta<Option_2>;
2114
+
2115
+ declare type SelectActionMeta_2 = ActionMeta<{
2116
+ label: string;
2117
+ value: string;
2118
+ }>;
2119
+
2120
+ export declare function SelectAsync({ options, onChange, name, id, className, placeholder, selectStyles, defaultValue, formatGroupLabel, customContainerStyles, menuPlacement, errorMsg, extraProps, isDisabled, isSearchable, isMulti, isClearable, customValue, }: SelectAsyncProps): JSX_2.Element;
2121
+
2122
+ declare interface SelectAsyncProps {
2123
+ /**
2124
+ * The options to be displayed in the select
2125
+ * should atleast have {label: string, value: string}
2126
+ */
2127
+ options: (inputValue: string) => Promise<Array<{
2128
+ label: string | '';
2129
+ value: string | '';
2130
+ profileImgUrl?: string | null;
2131
+ }> | void>;
2132
+ /**
2133
+ * Handle change events on the select
2134
+ */
2135
+ onChange: (newValue: string | string[], actionMeta: SelectActionMeta_2) => void;
2136
+ /**
2137
+ * The name of the select
2138
+ */
2139
+ name?: string;
2140
+ /**
2141
+ * The id of the select
2142
+ */
2143
+ id?: string;
2144
+ /**
2145
+ * The className of the select
2146
+ */
2147
+ className?: string;
2148
+ /**
2149
+ * The placeholder of the select
2150
+ */
2151
+ placeholder?: string;
2152
+ /**
2153
+ * Whether the select is searchable
2154
+ */
2155
+ isSearchable?: boolean;
2156
+ /**
2157
+ * Whether multiple selection is possible
2158
+ */
2159
+ isMulti?: boolean;
2160
+ /**
2161
+ * Whether the select is clearable
2162
+ */
2163
+ isClearable?: boolean;
2164
+ /**
2165
+ * The styles of the select component
2166
+ */
2167
+ selectStyles?: StylesConfig<any>;
2168
+ /**
2169
+ * The default value of the select
2170
+ */
2171
+ defaultValue?: any;
2172
+ /**
2173
+ * Formats group labels in the menu as React components
2174
+ */
2175
+ formatGroupLabel?: (data: any) => React_2.ReactNode;
2176
+ /**
2177
+ * The custom styles of the select container
2178
+ */
2179
+ customContainerStyles?: React_2.CSSProperties;
2180
+ /**
2181
+ * Whether the select is disabled
2182
+ */
2183
+ isDisabled?: boolean;
2184
+ /**
2185
+ * Default placement of the menu in relation to the control. 'auto' will flip when there isn't enough space below the control.
2186
+ */
2187
+ menuPlacement?: MenuPlacement;
2188
+ /**
2189
+ * The error message to be displayed
2190
+ */
2191
+ errorMsg?: string | string[] | false;
2192
+ /**
2193
+ * extra props to pass for select component
2194
+ */
2195
+ extraProps?: any;
2196
+ customValue?: any;
2197
+ }
2198
+
2199
+ export declare type SelectMultiValue = MultiValue<Option_2>;
2200
+
2201
+ export declare function Selectors({ selectors }: SelectorsProps): JSX_2.Element;
2202
+
2203
+ export declare interface SelectorsProps {
2204
+ selectors: {
2205
+ name: string;
2206
+ onClick: any;
2207
+ }[];
2208
+ }
2209
+
2210
+ declare interface SelectProps {
2211
+ /**
2212
+ * The options to be displayed in the select
2213
+ * should atleast have {label: string, value: string}
2214
+ */
2215
+ options: Array<{
2216
+ label: string | '';
2217
+ value: string | '';
2218
+ profileImgUrl?: string;
2219
+ }> | any;
2220
+ /**
2221
+ * Handle change events on the select
2222
+ */
2223
+ onChange: (newValue: string | string[], actionMeta: SelectActionMeta_2) => void;
2224
+ /**
2225
+ * The name of the select
2226
+ */
2227
+ name?: string;
2228
+ /**
2229
+ * The id of the select
2230
+ */
2231
+ id?: string;
2232
+ /**
2233
+ * The className of the select
2234
+ */
2235
+ className?: string;
2236
+ /**
2237
+ * The placeholder of the select
2238
+ */
2239
+ placeholder?: string;
2240
+ /**
2241
+ * Whether the select is searchable
2242
+ */
2243
+ isSearchable?: boolean;
2244
+ /**
2245
+ * Whether multiple selection is possible
2246
+ */
2247
+ isMulti?: boolean;
2248
+ /**
2249
+ * Whether the select is clearable
2250
+ */
2251
+ isClearable?: boolean;
2252
+ /**
2253
+ * The styles of the select component
2254
+ */
2255
+ selectStyles?: StylesConfig<any>;
2256
+ /**
2257
+ * The default value of the select
2258
+ */
2259
+ defaultValue?: {
2260
+ label: string;
2261
+ value: string;
2262
+ profileImgUrl?: string;
2263
+ };
2264
+ /**
2265
+ * Formats group labels in the menu as React components
2266
+ */
2267
+ formatGroupLabel?: (data: any) => React_2.ReactNode;
2268
+ /**
2269
+ * The custom styles of the select container
2270
+ */
2271
+ customContainerStyles?: React_2.CSSProperties;
2272
+ customErrorStyles?: React_2.CSSProperties;
2273
+ isDisabled?: boolean;
2274
+ /**
2275
+ * Default placement of the menu in relation to the control. 'auto' will flip when there isn't enough space below the control.
2276
+ */
2277
+ menuPlacement?: MenuPlacement;
2278
+ /**
2279
+ * The error message to be displayed
2280
+ */
2281
+ errorMsg?: string | false;
2282
+ /**
2283
+ * extra props to pass for select component
2284
+ */
2285
+ extraprops?: any;
2286
+ /**
2287
+ * props to add custom dropdown
2288
+ */
2289
+ CustomDropdownIndicator?: React_2.ReactNode;
2290
+ customValue?: any;
2291
+ }
2292
+
2293
+ export declare type SelectSingleValue = SingleValue<Option_2>;
2294
+
2295
+ /**
2296
+ * A custom select component based on react-select.
2297
+ * @param props - The properties for the SelectV2 component:
2298
+ * - `options` (Array<Option>): An array of options to be displayed in the dropdown. Each option can include a label, value, and optional profile image or icon.
2299
+ * - `mainContainerClassName` (string, optional): A custom CSS class name to apply to the main container for additional styling.
2300
+ * - `variant` (SELECT_VARIANT, optional): Defines the variant of the select component (e.g., 'default', 'users', 'checkbox', 'tags') to control the styling and behavior.
2301
+ * - `errorMsg` (string, optional): An error message to display below the select component for validation purposes.
2302
+ * - `onChange` (function): A callback function that is triggered when the selected value(s) change. It receives the selected value(s) and action meta information.
2303
+ * - `customStyles` (StylesConfig<any>): custom styles for react select. it will override default styles
2304
+ * @returns The SelectV2 component.
2305
+ */
2306
+ export declare function SelectV2(props: SelectV2Props): JSX_2.Element;
2307
+
2308
+ export declare interface SelectV2Props extends Props<any, boolean> {
2309
+ options: Option_2[];
2310
+ onChange: (value: string | string[], actionMeta: SelectActionMeta) => void;
2311
+ mainContainerClassName?: string;
2312
+ variant?: SELECT_VARIANT;
2313
+ errorMsg?: string;
2314
+ customStyles?: StylesConfig<any>;
2315
+ }
2316
+
2317
+ export declare type SelectValue = SelectMultiValue | SelectSingleValue;
2318
+
2319
+ export declare function Skeleton({ className, ...props }: SkeletonProps): JSX_2.Element;
2320
+
2321
+ declare type SkeletonProps = React.HTMLAttributes<HTMLDivElement>;
2322
+
2323
+ export declare enum STATUS_MAP {
2324
+ SUCCESS = "success",
2325
+ INFO = "info",
2326
+ ERROR = "error",
2327
+ WARNING = "warning",
2328
+ DEFAULT = "default"
2329
+ }
2330
+
2331
+ export declare const statusMap: {
2332
+ neutral: {
2333
+ bg: string;
2334
+ color: string;
2335
+ };
2336
+ default: {
2337
+ bg: string;
2338
+ color: string;
2339
+ };
2340
+ positive: {
2341
+ bg: string;
2342
+ color: string;
2343
+ };
2344
+ highlight: {
2345
+ bg: string;
2346
+ color: string;
2347
+ };
2348
+ warning: {
2349
+ bg: string;
2350
+ color: string;
2351
+ };
2352
+ negative: {
2353
+ bg: string;
2354
+ color: string;
2355
+ };
2356
+ };
2357
+
2358
+ export declare function SVG({ path, width, height, spanClassName, svgClassName, customSpanStyles, customSvgStyles, handleClick, }: SVGProps): JSX_2.Element;
2359
+
2360
+ export declare type SVGProps = {
2361
+ path: string;
2362
+ width?: number;
2363
+ height?: number;
2364
+ spanClassName?: string;
2365
+ svgClassName?: string;
2366
+ customSvgStyles?: React.CSSProperties;
2367
+ customSpanStyles?: React.CSSProperties;
2368
+ handleClick?: (e: any) => void;
2369
+ };
2370
+
2371
+ export declare function Switch({ isToggled, handleToggleChange, name, switchClassName, subText, size, disabled, title, }: SwitchProps): JSX_2.Element;
2372
+
2373
+ declare type SwitchProps = {
2374
+ isToggled: boolean | any;
2375
+ handleToggleChange: (val: boolean) => void;
2376
+ name: string;
2377
+ subText?: string | React.ReactNode;
2378
+ switchClassName?: string;
2379
+ size?: 'sm' | 'md' | 'lg';
2380
+ disabled?: boolean;
2381
+ title?: string;
2382
+ };
2383
+
2384
+ export declare const Tab: default_2.FC<TabProps>;
2385
+
2386
+ export declare function Table({ data, loaderConfig, columns, filterConfig, sortConfig, rowSelectionConfig, actionsConfig, searchConfig, totalText, selectorConfig, paginationConfig, emptyStateConfig, headerText, infiniteScrollConfig, }: TableProps): JSX_2.Element;
2387
+
2388
+ declare type TableCustomColumns = {
2389
+ checked_state: Array<{
2390
+ id: string;
2391
+ label: string;
2392
+ checked: boolean;
2393
+ }>;
2394
+ is_default: boolean;
2395
+ table_name: string;
2396
+ };
2397
+
2398
+ export declare function TableDeviceCell({ device, onClick }: TableDeviceCellProps): JSX_2.Element;
2399
+
2400
+ declare interface TableDeviceCellProps {
2401
+ device: any;
2402
+ onClick: any;
2403
+ }
2404
+
2405
+ declare type TableFilters = {
2406
+ header?: FilterOptions_2[];
2407
+ drawer?: FilterOptions_2[];
2408
+ };
2409
+
2410
+ export declare function TablePagination({ paginationConfig }: TablePaginationProps): JSX_2.Element | null;
2411
+
2412
+ declare interface TablePaginationProps {
2413
+ paginationConfig: TableV3Props['paginationConfig'];
2414
+ }
2415
+
2416
+ export declare interface TableProps {
2417
+ data: any;
2418
+ columns: any;
2419
+ /**
2420
+ * column for actions dropdown in the last row
2421
+ */
2422
+ actionsConfig?: {
2423
+ isDropdownActions?: boolean;
2424
+ menuItems?: {
2425
+ label: string;
2426
+ iconSrc?: string;
2427
+ onClick: any;
2428
+ filterFn?: any;
2429
+ disabled?: boolean | ((data: any) => boolean);
2430
+ }[];
2431
+ key?: string;
2432
+ customComp?: (data: any) => React_2.ReactNode | JSX.Element;
2433
+ };
2434
+ loaderConfig: {
2435
+ text?: string;
2436
+ isFetching: boolean;
2437
+ isError: boolean;
2438
+ errMsg?: string;
2439
+ };
2440
+ /**
2441
+ * table search
2442
+ */
2443
+ searchConfig?: {
2444
+ placeholder?: string;
2445
+ search: string;
2446
+ setSearch: any;
2447
+ };
2448
+ /**
2449
+ * table sorting
2450
+ * @param sortBy used for
2451
+ */
2452
+ sortConfig?: {
2453
+ sortBy: string;
2454
+ setSortBy: any;
2455
+ sortOrd: 'asc' | 'desc' | '';
2456
+ setSortOrd: any;
2457
+ sortMap: Record<string, string>;
2458
+ };
2459
+ /**
2460
+ * table filtering, data comes from an api
2461
+ */
2462
+ filterConfig?: FilterConfig;
2463
+ totalText?: string;
2464
+ /**
2465
+ * Row checkbox or radio selection config
2466
+ *
2467
+ * @param rowIdKey: needed to keep the selected rows when search is being used server side https://tanstack.com/table/v8/docs/guide/row-selection#useful-row-ids
2468
+ */
2469
+ rowSelectionConfig?: {
2470
+ isCheckbox?: boolean;
2471
+ isRadio?: boolean;
2472
+ actions?: {
2473
+ icon: string;
2474
+ text: string;
2475
+ onClick: any;
2476
+ }[];
2477
+ setSelectedRows?: React_2.Dispatch<React_2.SetStateAction<any>>;
2478
+ iconSrc?: string;
2479
+ clearOnSearch?: boolean;
2480
+ rowIdKey?: string;
2481
+ rowSelection?: {};
2482
+ setRowSelection?: React_2.Dispatch<React_2.SetStateAction<{}>>;
2483
+ };
2484
+ selectorConfig?: {
2485
+ selectors: {
2486
+ name: string;
2487
+ onClick: any;
2488
+ }[];
2489
+ };
2490
+ /**
2491
+ * @deprecated use infiniteScrollConfig
2492
+ */
2493
+ paginationConfig?: {
2494
+ metaData: {
2495
+ total_items: number;
2496
+ items_on_page: number;
2497
+ page_no: number;
2498
+ };
2499
+ loader: React_2.ReactNode;
2500
+ fetchNextPage: () => void;
2501
+ height?: string;
2502
+ scrollThreshold?: string | number;
2503
+ scrollableTarget?: string;
2504
+ };
2505
+ /**
2506
+ * Used for infinite scroll, all the properties comes from useInfiniteQuery
2507
+ */
2508
+ infiniteScrollConfig?: {
2509
+ fetchNextPage: () => void;
2510
+ isFetchingNextPage: boolean;
2511
+ };
2512
+ emptyStateConfig?: {
2513
+ icon: string;
2514
+ isCustom?: {
2515
+ value: boolean;
2516
+ component: React_2.ReactNode;
2517
+ };
2518
+ title: string;
2519
+ desc: string;
2520
+ btnText: string;
2521
+ onClick: any;
2522
+ columns: number;
2523
+ emptySearchTitle?: string;
2524
+ };
2525
+ headerText?: string;
2526
+ }
2527
+
2528
+ export declare function TableUserCell({ user, onClick, showCopy }: TableUserCellProps): JSX.Element | null;
2529
+
2530
+ declare interface TableUserCellProps {
2531
+ user: any;
2532
+ onClick: any;
2533
+ showCopy?: boolean;
2534
+ }
2535
+
2536
+ export declare function TableV3({ data, loaderConfig, columns, filterConfig, sortConfig, rowSelectionConfig, actionsConfig, searchConfig, totalText, paginationConfig, emptyStateConfig, tableStyleConfig, customColumnConfig, exportConfig, }: TableV3Props): JSX_2.Element;
2537
+
2538
+ export declare interface TableV3Props {
2539
+ data: any;
2540
+ columns: any;
2541
+ /**
2542
+ * column for actions dropdown in the last row
2543
+ */
2544
+ actionsConfig?: {
2545
+ isDropdownActions?: boolean;
2546
+ menuItems?: {
2547
+ label: string;
2548
+ iconSrc?: string;
2549
+ onClick: any;
2550
+ filterFn?: any;
2551
+ disabled?: boolean | ((data: any) => boolean);
2552
+ }[];
2553
+ };
2554
+ loaderConfig: {
2555
+ text?: string;
2556
+ isFetching: boolean;
2557
+ isError: boolean;
2558
+ errMsg?: string;
2559
+ };
2560
+ /**
2561
+ * table search
2562
+ */
2563
+ searchConfig?: {
2564
+ placeholder?: string;
2565
+ search: string;
2566
+ setSearch: any;
2567
+ };
2568
+ /**
2569
+ * table sorting
2570
+ * @param sortBy used for
2571
+ */
2572
+ sortConfig?: {
2573
+ sortBy: string;
2574
+ setSortBy: any;
2575
+ sortOrd: 'asc' | 'desc' | '';
2576
+ setSortOrd: any;
2577
+ sortMap: Record<string, string>;
2578
+ };
2579
+ /**
2580
+ * table filtering, data comes from an api
2581
+ */
2582
+ filterConfig?: FilterConfig_2;
2583
+ totalText?: string;
2584
+ /**
2585
+ * Row checkbox or radio selection config
2586
+ *
2587
+ * @param rowIdKey: needed to keep the selected rows when search is being used server side https://tanstack.com/table/v8/docs/guide/row-selection#useful-row-ids
2588
+ * @param entityName: singular format of entity name
2589
+ */
2590
+ rowSelectionConfig?: {
2591
+ isCheckbox?: boolean;
2592
+ isRadio?: boolean;
2593
+ entityName: string;
2594
+ actions?: {
2595
+ icon: string;
2596
+ text: string;
2597
+ onClick: any;
2598
+ }[];
2599
+ setSelectedRows?: React_2.Dispatch<React_2.SetStateAction<any>>;
2600
+ iconSrc?: string;
2601
+ clearOnSearch?: boolean;
2602
+ rowIdKey: string;
2603
+ rowSelection?: {};
2604
+ setRowSelection?: React_2.Dispatch<React_2.SetStateAction<{}>>;
2605
+ };
2606
+ paginationConfig?: {
2607
+ metaData?: {
2608
+ total_items: number;
2609
+ items_on_page: number;
2610
+ page_no: number;
2611
+ };
2612
+ page: number;
2613
+ setPage: (page: number) => void;
2614
+ limit: number;
2615
+ setLimit: (limit: number) => void;
2616
+ };
2617
+ emptyStateConfig?: {
2618
+ icon: string;
2619
+ isCustom?: {
2620
+ value: boolean;
2621
+ component: React_2.ReactNode;
2622
+ };
2623
+ title: string;
2624
+ desc: string;
2625
+ btnText: string;
2626
+ onClick: any;
2627
+ columns: number;
2628
+ emptySearchTitle?: string;
2629
+ };
2630
+ tableStyleConfig?: {
2631
+ maxHeight?: string;
2632
+ stickyIds?: string[];
2633
+ };
2634
+ /**
2635
+ * custom columns
2636
+ */
2637
+ customColumnConfig?: {
2638
+ description?: string;
2639
+ columns?: TableCustomColumns;
2640
+ isPending: boolean;
2641
+ isError: boolean;
2642
+ handleSaveColumns: (columns: any) => Promise<void>;
2643
+ };
2644
+ /**
2645
+ * export config (csv)
2646
+ */
2647
+ exportConfig?: {
2648
+ isPending: boolean;
2649
+ isError: boolean;
2650
+ handleExport: any;
2651
+ };
2652
+ }
2653
+
2654
+ export declare interface TabProps {
2655
+ title: string;
2656
+ eventKey: string;
2657
+ isActive: boolean;
2658
+ customClassName?: string;
2659
+ customStyles?: default_2.CSSProperties;
2660
+ children: default_2.ReactNode;
2661
+ onClick: () => void;
2662
+ }
2663
+
2664
+ export declare const Tabs: default_2.FC<TabsProps>;
2665
+
2666
+ declare interface TabsProps {
2667
+ id: string;
2668
+ activeKey: string;
2669
+ onSelect: (key: string) => void;
2670
+ customClassName?: string;
2671
+ customStyles?: default_2.CSSProperties;
2672
+ children: ReactElement[];
2673
+ }
2674
+
2675
+ export declare function Tag({ status, text, icon, customStyles }: TagProps): JSX_2.Element;
2676
+
2677
+ declare interface TagProps {
2678
+ text: string;
2679
+ status: STATUS_MAP;
2680
+ icon?: string;
2681
+ customStyles?: React.CSSProperties;
2682
+ }
2683
+
2684
+ export declare function TaskCards({ headers, data, isLoading, isError, emptyText, menuItems, paginationConfig, }: TaskCardsProps): JSX_2.Element;
2685
+
2686
+ declare interface TaskCardsProps {
2687
+ headers: string[];
2688
+ data: ITask[];
2689
+ isLoading?: boolean;
2690
+ isError?: boolean;
2691
+ emptyText?: string;
2692
+ menuItems: MenuItemV2[][];
2693
+ paginationConfig?: {
2694
+ metaData?: {
2695
+ total_items: number;
2696
+ items_on_page: number;
2697
+ page_no: number;
2698
+ };
2699
+ page: number;
2700
+ setPage: (page: number) => void;
2701
+ limit: number;
2702
+ setLimit: (limit: number) => void;
2703
+ };
2704
+ }
2705
+
2706
+ /**
2707
+ * TextareaV2 is a styled textarea component with optional error message display.
2708
+ * It provides a flexible way to render a textarea with custom styles and error handling.
2709
+ *
2710
+ * @param {TextareaV2Props} props - The properties for the TextareaV2 component.
2711
+ * @param {string} [props.errorMsg=''] - Error message to display below the textarea.
2712
+ * @param {string} [props.containerClassName=''] - Additional CSS classes to apply to the container.
2713
+ * @param {string} [props.className=''] - Additional CSS classes to apply to the textarea.
2714
+ * @param {React.CSSProperties} [props.inputStyles={}] - Used for internal styling when grouping it with multiple components. use className for styling textarea.
2715
+ * @param {React.CSSProperties} [props.containerStyles={}] -Used for internal styling when grouping it with multiple components. use containerClassName for styling textarea container.
2716
+ * @param {React.TextareaHTMLAttributes<HTMLTextAreaElement>} [props] - Other standard textarea attributes.
2717
+ * @param {React.Ref<HTMLTextAreaElement>} ref - Ref to the underlying textarea element.
2718
+ * @returns {JSX.Element} The rendered TextareaV2 component.
2719
+ *
2720
+ * @example
2721
+ * <TextareaV2
2722
+ * errorMsg="This field is required."
2723
+ * placeholder="Enter text..."
2724
+ * />
2725
+ */
2726
+ export declare const TextareaV2: React_2.ForwardRefExoticComponent<TextareaV2Props & React_2.RefAttributes<HTMLTextAreaElement>>;
2727
+
2728
+ /**
2729
+ * Props for the TextareaV2 component, which extends the standard HTML textarea element
2730
+ * with additional styling and error handling.
2731
+ *
2732
+ * @interface InputV2Props
2733
+ * @extends {React.TextareaHTMLAttributes<HTMLTextAreaElement>}
2734
+ *
2735
+ *
2736
+ * @property {string} [errorMsg] - Error message to display below the textarea if there is a validation error.
2737
+ * @property {string} [containerClassName] - Additional class name(s) for the textarea container div.
2738
+ * @property {never} [inputStyles] - Used for internal styling when grouping it with multiple components. use className for styling textarea.
2739
+ * @property {never} [containerStyles] - Used for internal styling when grouping it with multiple components. use containerClassName for styling textarea container.
2740
+ *
2741
+ * @example
2742
+ * <TextareaV2
2743
+ * placeholder="Enter"
2744
+ * errorMsg="This field is required"
2745
+ * />
2746
+ * @example
2747
+ * with formik
2748
+ * <TextareaV2
2749
+ * {...formik.getFieldProps(key)}
2750
+ * placeholder="Enter"
2751
+ * errorMsg="This field is required"
2752
+ * />
2753
+ */
2754
+ declare interface TextareaV2Props extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
2755
+ errorMsg?: string;
2756
+ containerClassName?: string;
2757
+ inputStyles?: never;
2758
+ containerStyles?: never;
2759
+ }
2760
+
2761
+ export declare function ToastCloseButton({ closeToast }: ToastCloseButtonProps): JSX_2.Element;
2762
+
2763
+ declare type ToastCloseButtonProps = {
2764
+ closeToast: (e: default_2.MouseEvent<HTMLElement, MouseEvent>) => void;
2765
+ };
2766
+
2767
+ export declare const toastError: ToastType;
2768
+
2769
+ export declare const toastInfo: ToastType;
2770
+
2771
+ export declare const toastSuccess: ToastType;
2772
+
2773
+ declare type ToastType = ({ msg, options }: {
2774
+ msg: string | React_2.ReactElement;
2775
+ options?: ToastOptions;
2776
+ }) => Id;
2777
+
2778
+ export declare const toastWarning: ToastType;
2779
+
2780
+ export declare function Tooltip({ children, openDelay, closeDelay, placement, }: TooltipProps): JSX_2.Element;
2781
+
2782
+ export declare namespace Tooltip {
2783
+ var Trigger: typeof TooltipTrigger;
2784
+ var Content: typeof TooltipContent;
2785
+ }
2786
+
2787
+ declare function TooltipContent({ children, api, bg, positionerStyles, containerStyles, }: TooltipContentProps): JSX_2.Element;
2788
+
2789
+ /**
2790
+ * @author Pratik Awaik <pratik@hybr1d.io>
2791
+ */
2792
+ declare interface TooltipContentProps {
2793
+ /**
2794
+ * tooltip content children
2795
+ */
2796
+ children: React.ReactNode;
2797
+ /**
2798
+ * tooltip API object
2799
+ */
2800
+ api?: any;
2801
+ /**
2802
+ * content background
2803
+ */
2804
+ bg?: 'black' | 'gray' | string;
2805
+ /**
2806
+ * positioner styles
2807
+ */
2808
+ positionerStyles?: React.CSSProperties;
2809
+ containerStyles?: React.CSSProperties;
2810
+ }
2811
+
2812
+ declare interface TooltipProps {
2813
+ /**
2814
+ * tooltip children
2815
+ */
2816
+ children: React_2.ReactNode;
2817
+ /**
2818
+ * open tooltip after delay
2819
+ */
2820
+ openDelay?: number;
2821
+ /**
2822
+ * close tooltip after delay
2823
+ */
2824
+ closeDelay?: number;
2825
+ /**
2826
+ * placement of the tooltip
2827
+ */
2828
+ placement?: Placement;
2829
+ }
2830
+
2831
+ declare function TooltipTrigger({ children, api, customStyles }: TooltipTriggerProps): JSX_2.Element;
2832
+
2833
+ declare interface TooltipTriggerProps {
2834
+ /**
2835
+ * tooltip trigger
2836
+ */
2837
+ children: React.ReactNode;
2838
+ /**
2839
+ * The tooltip API object.
2840
+ */
2841
+ api?: any;
2842
+ customStyles?: React.CSSProperties;
2843
+ }
2844
+
2845
+ export declare function TooltipV2({ id, placement, trigger, content, variant, customStyle, portalId, portalClass, contentMaxLength, }: TooltipV2Props): JSX_2.Element;
2846
+
2847
+ declare interface TooltipV2Props {
2848
+ id: string;
2849
+ placement?: 'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end';
2850
+ trigger: React_2.ReactNode;
2851
+ content: string;
2852
+ variant?: 'dark' | 'light' | 'success' | 'warning' | 'error' | 'info';
2853
+ customStyle?: React_2.CSSProperties;
2854
+ opacity?: number;
2855
+ portalId?: string;
2856
+ portalClass?: string;
2857
+ contentMaxLength?: number;
2858
+ }
2859
+
2860
+ export declare function Upload({ getUploadDoc, setIsUploading, customComponent, fileUploadLimit, type, isMultiple, uploadFileLimit, singleFileClassName, fileContainerClassName, uploadBtnClassName, alignContent, showUploadIcon, additionalNode, disabled, addDocumentText, customUrl, beforeUploadHandler, extraSubtitleText, inventoryId, softwareId, preLoadedFiles, showFileList, acceptedFileTypes, error, addDocumentSubtitle, handleImageUpload, }: UploadProps): JSX_2.Element;
2861
+
2862
+ declare enum UPLOAD_ALIGN_BTN_CONTENT {
2863
+ LEFT = "flex-start",
2864
+ CENTER = "center",
2865
+ RIGHT = "flex-end"
2866
+ }
2867
+
2868
+ declare type UploadFileType = {
2869
+ id?: string;
2870
+ ext: string;
2871
+ type: string;
2872
+ url: string;
2873
+ metaData?: {
2874
+ fileName: string;
2875
+ key: string;
2876
+ };
2877
+ key: string;
2878
+ fileName: string;
2879
+ isUploaded: boolean;
2880
+ size: string;
2881
+ setIntervalFunction?: any;
2882
+ };
2883
+
2884
+ declare interface UploadProps {
2885
+ type: DOCS_TYPE;
2886
+ disabled?: boolean;
2887
+ getUploadDoc: (arg: any) => void;
2888
+ setIsUploading?: (arg: any) => void;
2889
+ customComponent?: React_2.ReactChild;
2890
+ fileUploadLimit?: number;
2891
+ isMultiple?: boolean;
2892
+ singleFileClassName?: string;
2893
+ fileContainerClassName?: string;
2894
+ uploadFileLimit?: number;
2895
+ uploadBtnClassName?: string;
2896
+ alignContent?: UPLOAD_ALIGN_BTN_CONTENT;
2897
+ showUploadIcon?: boolean;
2898
+ additionalNode?: React_2.ReactElement;
2899
+ addDocumentText?: string;
2900
+ customUrl?: string;
2901
+ beforeUploadHandler?: () => void;
2902
+ inventoryId?: string | null;
2903
+ softwareId?: string | null;
2904
+ preLoadedFiles?: Array<UploadFileType>;
2905
+ showFileList?: boolean;
2906
+ acceptedFileTypes?: string;
2907
+ extraSubtitleText?: string;
2908
+ error?: string | null;
2909
+ addDocumentSubtitle?: string;
2910
+ handleImageUpload: (images: any[], type: DOCS_TYPE, key?: string, value?: string, customUrl?: string, inventoryId?: string | null, softwareId?: string | null) => Promise<UploadFileType[]>;
2911
+ }
2912
+
2913
+ export declare const useBreadcrumbs: (breadcrumbs: Breadcrumb_2[]) => void;
2914
+
2915
+ export declare const useBreadcrumbsStore: UseBoundStore<StoreApi<BreadcrumbsStore>>;
2916
+
2917
+ export declare enum USER_CHIP_STATUS {
2918
+ DEFAULT = "default",
2919
+ NEUTRAL = "neutral",
2920
+ POSITIVE = "positive",
2921
+ WARNING = "warning",
2922
+ ERROR = "error",
2923
+ HIGHLIGHT = "highlight",
2924
+ WHITE = "white"
2925
+ }
2926
+
2927
+ export declare function UserChip({ status, selected, username, profileImgUrl, }: UserChipProps): JSX_2.Element;
2928
+
2929
+ declare interface UserChipProps {
2930
+ status?: USER_CHIP_STATUS;
2931
+ selected?: boolean;
2932
+ username: string;
2933
+ profileImgUrl: string;
2934
+ }
2935
+
2936
+ export { }
2937
+
2938
+
2939
+ declare namespace NumberAdornment {
2940
+ var displayName: INPUT_COMPONENTS;
2941
+ }