@juspay/blend-design-system 0.0.37-beta.8 → 0.0.37

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 (240) hide show
  1. package/dist/components/Accordion/index.d.ts +2 -0
  2. package/dist/components/AccordionV2/accordionV2.animations.d.ts +1 -1
  3. package/dist/components/Alert/index.d.ts +1 -0
  4. package/dist/components/Avatar/index.d.ts +1 -0
  5. package/dist/components/Breadcrumb/index.d.ts +1 -0
  6. package/dist/components/Button/index.d.ts +1 -0
  7. package/dist/components/ButtonGroup/index.d.ts +1 -0
  8. package/dist/components/Card/index.d.ts +1 -0
  9. package/dist/components/CardV2/CardV2.d.ts +45 -0
  10. package/dist/components/CardV2/CardV2.utils.d.ts +14 -0
  11. package/dist/components/CardV2/CardV2Components.d.ts +8 -0
  12. package/dist/components/CardV2/CardV2Context.d.ts +14 -0
  13. package/dist/components/CardV2/CardV2Skeleton.d.ts +6 -0
  14. package/dist/components/CardV2/accessibility/CardV2AccessibilityReport.d.ts +2 -0
  15. package/dist/components/CardV2/accessibility/index.d.ts +1 -0
  16. package/dist/components/CardV2/cardV2.dark.tokens.d.ts +3 -0
  17. package/dist/components/CardV2/cardV2.light.tokens.d.ts +3 -0
  18. package/dist/components/CardV2/cardV2.tokens.d.ts +5 -0
  19. package/dist/components/CardV2/cardV2.tokens.types.d.ts +92 -0
  20. package/dist/components/CardV2/cardV2.types.d.ts +106 -0
  21. package/dist/components/CardV2/index.d.ts +5 -0
  22. package/dist/components/Charts/index.d.ts +10 -0
  23. package/dist/components/Charts/types.d.ts +2 -0
  24. package/dist/components/ChatInput/index.d.ts +1 -0
  25. package/dist/components/Checkbox/index.d.ts +1 -0
  26. package/dist/components/CodeEditor/index.d.ts +1 -0
  27. package/dist/components/DataTable/PivotTableModal/pivotModal.styled.d.ts +184 -0
  28. package/dist/components/DataTable/TableBody/types.d.ts +3 -1
  29. package/dist/components/DataTable/hooks/index.d.ts +2 -0
  30. package/dist/components/DataTable/hooks/useReducedMotion.d.ts +1 -0
  31. package/dist/components/DataTable/hooks/useRowFlip.d.ts +6 -0
  32. package/dist/components/DataTable/types.d.ts +26 -0
  33. package/dist/components/DateRangePicker/CalendarGrid.d.ts +5 -2
  34. package/dist/components/DateRangePicker/types.d.ts +3 -1
  35. package/dist/components/DateRangePicker/utils.d.ts +5 -5
  36. package/dist/components/Directory/Directory.d.ts +1 -1
  37. package/dist/components/Directory/NavItem.d.ts +1 -1
  38. package/dist/components/Directory/Section.d.ts +1 -1
  39. package/dist/components/Directory/VirtualizedDirectory.d.ts +3 -0
  40. package/dist/components/Directory/directory.tokens.d.ts +7 -0
  41. package/dist/components/Directory/types.d.ts +38 -1
  42. package/dist/components/Directory/utils.d.ts +3 -1
  43. package/dist/components/Drawer/index.d.ts +1 -0
  44. package/dist/components/Inputs/MultiValueInput/index.d.ts +1 -0
  45. package/dist/components/Inputs/NumberInput/index.d.ts +1 -0
  46. package/dist/components/Inputs/OTPInput/index.d.ts +1 -0
  47. package/dist/components/Inputs/SearchInput/index.d.ts +1 -0
  48. package/dist/components/Inputs/TextArea/index.d.ts +1 -0
  49. package/dist/components/Inputs/TextInput/index.d.ts +1 -0
  50. package/dist/components/InputsV2/TextAreaV2/utils.d.ts +2 -1
  51. package/dist/components/InputsV2/TextInputV2/utils.d.ts +2 -1
  52. package/dist/components/InputsV2/UploadV2/UploadContainerV2.d.ts +24 -0
  53. package/dist/components/InputsV2/UploadV2/UploadV2.d.ts +31 -0
  54. package/dist/components/InputsV2/UploadV2/UploadV2.dark.tokens.d.ts +3 -0
  55. package/dist/components/InputsV2/UploadV2/UploadV2.light.tokens.d.ts +3 -0
  56. package/dist/components/InputsV2/UploadV2/UploadV2.tokens.d.ts +5 -0
  57. package/dist/components/InputsV2/UploadV2/UploadV2.tokens.types.d.ts +115 -0
  58. package/dist/components/InputsV2/UploadV2/UploadV2.types.d.ts +56 -0
  59. package/dist/components/InputsV2/UploadV2/index.d.ts +3 -0
  60. package/dist/components/InputsV2/UploadV2/utils.d.ts +32 -0
  61. package/dist/components/KeyValuePair/index.d.ts +1 -0
  62. package/dist/components/Menu/Menu.d.ts +1 -1
  63. package/dist/components/Menu/index.d.ts +1 -0
  64. package/dist/components/Menu/types.d.ts +7 -0
  65. package/dist/components/Menu/utils.d.ts +10 -2
  66. package/dist/components/Modal/index.d.ts +1 -0
  67. package/dist/components/ModalV2/ModalV2.d.ts +22 -0
  68. package/dist/components/ModalV2/ModalV2Footer.d.ts +10 -0
  69. package/dist/components/ModalV2/ModalV2Header.d.ts +15 -0
  70. package/dist/components/ModalV2/ModalV2Skeleton.d.ts +4 -0
  71. package/dist/components/ModalV2/index.d.ts +4 -0
  72. package/dist/components/ModalV2/mobileModalV2.d.ts +23 -0
  73. package/dist/components/ModalV2/modalAnimationV2.d.ts +3 -0
  74. package/dist/components/ModalV2/modalV2.dark.tokens.d.ts +3 -0
  75. package/dist/components/ModalV2/modalV2.light.tokens.d.ts +3 -0
  76. package/dist/components/ModalV2/modalV2.tokens.d.ts +5 -0
  77. package/dist/components/ModalV2/modalV2.tokens.types.d.ts +91 -0
  78. package/dist/components/ModalV2/modalV2.types.d.ts +66 -0
  79. package/dist/components/MultiSelect/index.d.ts +2 -0
  80. package/dist/components/Popover/index.d.ts +1 -0
  81. package/dist/components/Primitives/Block/Block.d.ts +1 -1
  82. package/dist/components/ProgressBar/index.d.ts +1 -0
  83. package/dist/components/Radio/index.d.ts +2 -0
  84. package/dist/components/Sidebar/SidebarContent.d.ts +9 -1
  85. package/dist/components/Sidebar/index.d.ts +1 -0
  86. package/dist/components/Sidebar/types.d.ts +9 -1
  87. package/dist/components/SidebarV2/SidebarV2Panel.d.ts +10 -2
  88. package/dist/components/SidebarV2/types.d.ts +9 -1
  89. package/dist/components/SingleSelect/index.d.ts +1 -0
  90. package/dist/components/Skeleton/SkeletonCompound.d.ts +24 -33
  91. package/dist/components/Snackbar/index.d.ts +2 -0
  92. package/dist/components/StatCard/index.d.ts +1 -0
  93. package/dist/components/Stepper/index.d.ts +1 -0
  94. package/dist/components/Switch/index.d.ts +2 -0
  95. package/dist/components/Tabs/index.d.ts +1 -0
  96. package/dist/components/Tags/index.d.ts +1 -0
  97. package/dist/components/Timeline/Timeline.d.ts +13 -37
  98. package/dist/components/Tooltip/index.d.ts +1 -0
  99. package/dist/components/Topbar/index.d.ts +1 -0
  100. package/dist/components/Upload/index.d.ts +1 -0
  101. package/dist/context/ThemeContext.d.ts +6 -0
  102. package/dist/context/useComponentToken.d.ts +4 -1
  103. package/dist/main.d.ts +6 -0
  104. package/dist/main.js +45081 -41934
  105. package/dist/node-B3rrXW84.js +1023 -0
  106. package/dist/node.d.ts +2 -0
  107. package/dist/node.js +21 -18
  108. package/dist/token-engine.js +1 -1
  109. package/lib/components/Accordion/AccordionItem.tsx +2 -6
  110. package/lib/components/Accordion/index.ts +2 -0
  111. package/lib/components/AccordionV2/AccordionV2Item.tsx +1 -1
  112. package/lib/components/AccordionV2/accordionV2.animations.ts +1 -5
  113. package/lib/components/Alert/index.ts +1 -0
  114. package/lib/components/Avatar/index.ts +1 -0
  115. package/lib/components/Breadcrumb/index.ts +1 -0
  116. package/lib/components/Button/index.ts +1 -0
  117. package/lib/components/ButtonGroup/index.ts +1 -0
  118. package/lib/components/Card/index.ts +1 -0
  119. package/lib/components/CardV2/CardV2.tsx +327 -0
  120. package/lib/components/CardV2/CardV2.utils.tsx +77 -0
  121. package/lib/components/CardV2/CardV2Components.tsx +297 -0
  122. package/lib/components/CardV2/CardV2Context.tsx +18 -0
  123. package/lib/components/CardV2/CardV2Skeleton.tsx +40 -0
  124. package/lib/components/CardV2/accessibility/CardV2AccessibilityReport.ts +284 -0
  125. package/lib/components/CardV2/accessibility/index.ts +1 -0
  126. package/lib/components/CardV2/cardV2.dark.tokens.ts +177 -0
  127. package/lib/components/CardV2/cardV2.light.tokens.ts +177 -0
  128. package/lib/components/CardV2/cardV2.tokens.ts +21 -0
  129. package/lib/components/CardV2/cardV2.tokens.types.ts +94 -0
  130. package/lib/components/CardV2/cardV2.types.ts +131 -0
  131. package/lib/components/CardV2/index.ts +13 -0
  132. package/lib/components/Charts/ChartLegend.tsx +25 -5
  133. package/lib/components/Charts/Charts.tsx +10 -0
  134. package/lib/components/Charts/index.ts +10 -0
  135. package/lib/components/Charts/types.tsx +2 -0
  136. package/lib/components/ChatInput/index.tsx +1 -0
  137. package/lib/components/Checkbox/index.ts +1 -0
  138. package/lib/components/CodeEditor/index.ts +1 -0
  139. package/lib/components/DataTable/DataTable.tsx +8 -0
  140. package/lib/components/DataTable/TableBody/index.tsx +47 -11
  141. package/lib/components/DataTable/TableBody/types.ts +7 -1
  142. package/lib/components/DataTable/TableCell/index.tsx +1 -1
  143. package/lib/components/DataTable/hooks/index.ts +2 -0
  144. package/lib/components/DataTable/hooks/useReducedMotion.ts +19 -0
  145. package/lib/components/DataTable/hooks/useRowFlip.ts +170 -0
  146. package/lib/components/DataTable/types.ts +32 -0
  147. package/lib/components/DateRangePicker/CalendarGrid.tsx +36 -6
  148. package/lib/components/DateRangePicker/DateRangePicker.tsx +22 -3
  149. package/lib/components/DateRangePicker/types.ts +6 -1
  150. package/lib/components/DateRangePicker/utils.ts +123 -12
  151. package/lib/components/Directory/Directory.tsx +31 -0
  152. package/lib/components/Directory/NavItem.tsx +177 -86
  153. package/lib/components/Directory/Section.tsx +9 -0
  154. package/lib/components/Directory/VirtualizedDirectory.tsx +670 -0
  155. package/lib/components/Directory/directory.tokens.ts +21 -0
  156. package/lib/components/Directory/types.ts +43 -1
  157. package/lib/components/Directory/utils.ts +81 -1
  158. package/lib/components/Drawer/index.ts +1 -0
  159. package/lib/components/Inputs/DropdownInput/DropdownInput.tsx +6 -2
  160. package/lib/components/Inputs/MultiValueInput/index.ts +1 -0
  161. package/lib/components/Inputs/NumberInput/NumberInput.tsx +6 -2
  162. package/lib/components/Inputs/NumberInput/index.ts +1 -0
  163. package/lib/components/Inputs/OTPInput/index.ts +1 -0
  164. package/lib/components/Inputs/SearchInput/index.ts +1 -0
  165. package/lib/components/Inputs/TextArea/TextArea.tsx +4 -2
  166. package/lib/components/Inputs/TextArea/index.ts +1 -0
  167. package/lib/components/Inputs/TextInput/TextInput.tsx +6 -2
  168. package/lib/components/Inputs/TextInput/index.ts +1 -0
  169. package/lib/components/Inputs/UnitInput/UnitInput.tsx +6 -2
  170. package/lib/components/InputsV2/NumberInputV2/NumberInputV2.tsx +6 -2
  171. package/lib/components/InputsV2/TextAreaV2/TextAreaV2.tsx +2 -1
  172. package/lib/components/InputsV2/TextAreaV2/utils.ts +3 -1
  173. package/lib/components/InputsV2/TextInputV2/TextInputV2.tsx +1 -0
  174. package/lib/components/InputsV2/TextInputV2/utils.ts +6 -8
  175. package/lib/components/InputsV2/UploadV2/UploadContainerV2.tsx +470 -0
  176. package/lib/components/InputsV2/UploadV2/UploadV2.dark.tokens.ts +348 -0
  177. package/lib/components/InputsV2/UploadV2/UploadV2.light.tokens.ts +348 -0
  178. package/lib/components/InputsV2/UploadV2/UploadV2.tokens.ts +20 -0
  179. package/lib/components/InputsV2/UploadV2/UploadV2.tokens.types.ts +117 -0
  180. package/lib/components/InputsV2/UploadV2/UploadV2.tsx +336 -0
  181. package/lib/components/InputsV2/UploadV2/UploadV2.types.ts +67 -0
  182. package/lib/components/InputsV2/UploadV2/index.ts +3 -0
  183. package/lib/components/InputsV2/UploadV2/utils.ts +170 -0
  184. package/lib/components/KeyValuePair/index.ts +1 -0
  185. package/lib/components/Menu/Menu.tsx +18 -2
  186. package/lib/components/Menu/SubMenu.tsx +25 -3
  187. package/lib/components/Menu/index.ts +1 -0
  188. package/lib/components/Menu/types.tsx +14 -0
  189. package/lib/components/Menu/utils.ts +46 -3
  190. package/lib/components/Modal/index.ts +1 -0
  191. package/lib/components/ModalV2/ModalV2.tsx +269 -0
  192. package/lib/components/ModalV2/ModalV2Footer.tsx +76 -0
  193. package/lib/components/ModalV2/ModalV2Header.tsx +144 -0
  194. package/lib/components/ModalV2/ModalV2Skeleton.tsx +80 -0
  195. package/lib/components/ModalV2/index.ts +4 -0
  196. package/lib/components/ModalV2/mobileModalV2.tsx +411 -0
  197. package/lib/components/ModalV2/modalAnimationV2.tsx +19 -0
  198. package/lib/components/ModalV2/modalV2.dark.tokens.ts +183 -0
  199. package/lib/components/ModalV2/modalV2.light.tokens.ts +183 -0
  200. package/lib/components/ModalV2/modalV2.tokens.ts +21 -0
  201. package/lib/components/ModalV2/modalV2.tokens.types.ts +94 -0
  202. package/lib/components/ModalV2/modalV2.types.ts +80 -0
  203. package/lib/components/MultiSelect/MultiSelect.tsx +2 -1
  204. package/lib/components/MultiSelect/MultiSelectTrigger.tsx +2 -1
  205. package/lib/components/MultiSelect/index.ts +2 -0
  206. package/lib/components/MultiSelectV2/MultiSelectV2Trigger.tsx +4 -1
  207. package/lib/components/Popover/index.ts +1 -0
  208. package/lib/components/Primitives/Block/Block.tsx +1 -1
  209. package/lib/components/ProgressBar/index.ts +1 -0
  210. package/lib/components/Radio/index.ts +2 -0
  211. package/lib/components/Sidebar/Sidebar.tsx +38 -0
  212. package/lib/components/Sidebar/SidebarContent.tsx +25 -1
  213. package/lib/components/Sidebar/index.ts +1 -0
  214. package/lib/components/Sidebar/types.ts +13 -1
  215. package/lib/components/SidebarV2/SidebarV2.tsx +30 -0
  216. package/lib/components/SidebarV2/SidebarV2Panel.tsx +25 -1
  217. package/lib/components/SidebarV2/types.ts +9 -1
  218. package/lib/components/SingleSelect/SingleSelect.tsx +2 -1
  219. package/lib/components/SingleSelect/SingleSelectTrigger.tsx +3 -1
  220. package/lib/components/SingleSelect/index.ts +1 -0
  221. package/lib/components/SingleSelectV2/SingleSelectV2Trigger.tsx +3 -1
  222. package/lib/components/Skeleton/SkeletonCompound.tsx +45 -31
  223. package/lib/components/Snackbar/index.ts +2 -0
  224. package/lib/components/StatCard/index.ts +1 -0
  225. package/lib/components/Stepper/index.ts +1 -0
  226. package/lib/components/Switch/index.ts +2 -0
  227. package/lib/components/Tabs/index.ts +1 -0
  228. package/lib/components/Tags/index.ts +1 -0
  229. package/lib/components/Timeline/Timeline.tsx +9 -1
  230. package/lib/components/Tooltip/index.ts +1 -0
  231. package/lib/components/Topbar/index.ts +1 -0
  232. package/lib/components/Upload/index.ts +1 -0
  233. package/lib/context/ThemeContext.tsx +16 -0
  234. package/lib/context/initComponentTokens.ts +11 -0
  235. package/lib/context/useComponentToken.ts +15 -1
  236. package/lib/hooks/useResponsiveTokens.ts +63 -0
  237. package/lib/main.ts +16 -0
  238. package/lib/node.ts +2 -0
  239. package/package.json +1 -1
  240. /package/dist/{node-CovJEwot.js → breadcrumbV2.tokens-CovJEwot.js} +0 -0
@@ -17,6 +17,7 @@ export type MenuSkeletonProps = {
17
17
  show?: boolean;
18
18
  variant?: SkeletonVariant;
19
19
  };
20
+ export type MenuSearchSortFn = (items: MenuItemType[], searchText: string) => MenuItemType[];
20
21
  export type MenuProps = {
21
22
  trigger: React.ReactNode;
22
23
  items?: MenuGroupType[];
@@ -26,6 +27,8 @@ export type MenuProps = {
26
27
  minWidth?: number;
27
28
  enableSearch?: boolean;
28
29
  searchPlaceholder?: string;
30
+ searchSortFn?: MenuSearchSortFn;
31
+ onEnter?: (searchText: string, filteredGroups: MenuGroupType[]) => void;
29
32
  enableVirtualScrolling?: boolean;
30
33
  virtualItemHeight?: number | ((item: MenuItemType, index: number) => number);
31
34
  virtualOverscan?: number;
@@ -68,6 +71,10 @@ export type MenuItemType = {
68
71
  subMenu?: MenuItemType[];
69
72
  enableSubMenuSearch?: boolean;
70
73
  subMenuSearchPlaceholder?: string;
74
+ /** Custom sort function for submenu search results. Defaults to exact → prefix → substring. */
75
+ subMenuSearchSortFn?: MenuSearchSortFn;
76
+ /** Called when the user presses Enter while focused on the submenu search input. */
77
+ onSubMenuSearchEnter?: (searchText: string, filteredResults: MenuItemType[]) => void;
71
78
  tooltip?: string | React.ReactNode;
72
79
  tooltipProps?: {
73
80
  side?: TooltipSide;
@@ -1,3 +1,11 @@
1
- import { MenuGroupType, MenuItemType } from './types';
2
- export declare const filterMenuGroups: (groups: MenuGroupType[], searchText: string) => MenuGroupType[];
1
+ import { MenuGroupType, MenuItemType, MenuSearchSortFn } from './types';
2
+ export declare enum MenuMatchRank {
3
+ EXACT = 0,
4
+ PREFIX = 1,
5
+ SUBSTRING = 2,
6
+ NONE = 3
7
+ }
8
+ export declare const getItemMatchRank: (item: MenuItemType, lower: string) => MenuMatchRank;
9
+ export declare const defaultSearchSortFn: MenuSearchSortFn;
10
+ export declare const filterMenuGroups: (groups: MenuGroupType[], searchText: string, searchSortFn?: MenuSearchSortFn) => MenuGroupType[];
3
11
  export declare const filterMenuItem: (item: MenuItemType, lower: string) => MenuItemType | null;
@@ -1,3 +1,4 @@
1
+ /** @deprecated Will be deprecated soon. Use ModalV2 instead. */
1
2
  export { default as Modal } from './Modal';
2
3
  export * from './modal.tokens';
3
4
  export * from './types';
@@ -0,0 +1,22 @@
1
+ declare const ModalV2: import('react').ForwardRefExoticComponent<{
2
+ isOpen: boolean;
3
+ isCustom?: boolean;
4
+ onClose: () => void;
5
+ title?: string;
6
+ subtitle?: string;
7
+ children: import('react').ReactNode;
8
+ primaryAction?: import('./modalV2.types').ModalV2ButtonAction;
9
+ secondaryAction?: import('./modalV2.types').ModalV2ButtonAction;
10
+ showCloseButton?: boolean;
11
+ showHeader?: boolean;
12
+ showFooter?: boolean;
13
+ closeOnBackdropClick?: boolean;
14
+ customHeader?: import('react').ReactNode;
15
+ customFooter?: import('react').ReactNode;
16
+ headerSlot?: import('react').ReactNode;
17
+ showDivider?: boolean;
18
+ dimensions?: import('./modalV2.types').ModalV2Dimensions;
19
+ useDrawerOnMobile?: boolean;
20
+ skeleton?: import('./modalV2.types').ModalV2BodySkeletonProps;
21
+ } & Omit<import('react').HTMLAttributes<HTMLDivElement>, "style" | "className" | "title" | "children"> & import('react').RefAttributes<HTMLDivElement>>;
22
+ export default ModalV2;
@@ -0,0 +1,10 @@
1
+ import { ModalV2Props } from './modalV2.types';
2
+ import { SkeletonVariant } from '../Skeleton';
3
+ declare const ModalV2Footer: ({ primaryAction, secondaryAction, showDivider, showSkeleton, skeletonVariant, }: {
4
+ primaryAction?: ModalV2Props["primaryAction"];
5
+ secondaryAction?: ModalV2Props["secondaryAction"];
6
+ showDivider?: boolean;
7
+ showSkeleton?: boolean;
8
+ skeletonVariant?: SkeletonVariant;
9
+ }) => import("react/jsx-runtime").JSX.Element | null;
10
+ export default ModalV2Footer;
@@ -0,0 +1,15 @@
1
+ import { ReactNode } from 'react';
2
+ import { SkeletonVariant } from '../Skeleton';
3
+ declare const ModalV2Header: ({ title, subtitle, onClose, showCloseButton, headerSlot, showDivider, showSkeleton, skeletonVariant, titleId, subtitleId, }: {
4
+ title?: string;
5
+ subtitle?: string;
6
+ onClose: () => void;
7
+ showCloseButton?: boolean;
8
+ headerSlot?: ReactNode;
9
+ showDivider?: boolean;
10
+ showSkeleton?: boolean;
11
+ skeletonVariant?: SkeletonVariant;
12
+ titleId?: string;
13
+ subtitleId?: string;
14
+ }) => import("react/jsx-runtime").JSX.Element | null;
15
+ export default ModalV2Header;
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+ import { ModalV2SkeletonProps } from './modalV2.types';
3
+ declare const ModalV2Skeleton: FC<ModalV2SkeletonProps>;
4
+ export default ModalV2Skeleton;
@@ -0,0 +1,4 @@
1
+ export { default as ModalV2 } from './ModalV2';
2
+ export * from './modalV2.tokens';
3
+ export * from './modalV2.tokens.types';
4
+ export * from './modalV2.types';
@@ -0,0 +1,23 @@
1
+ import { default as React } from 'react';
2
+ declare const MobileModalV2: React.ForwardRefExoticComponent<{
3
+ isOpen: boolean;
4
+ isCustom?: boolean;
5
+ onClose: () => void;
6
+ title?: string;
7
+ subtitle?: string;
8
+ children: React.ReactNode;
9
+ primaryAction?: import('./modalV2.types').ModalV2ButtonAction;
10
+ secondaryAction?: import('./modalV2.types').ModalV2ButtonAction;
11
+ showCloseButton?: boolean;
12
+ showHeader?: boolean;
13
+ showFooter?: boolean;
14
+ closeOnBackdropClick?: boolean;
15
+ customHeader?: React.ReactNode;
16
+ customFooter?: React.ReactNode;
17
+ headerSlot?: React.ReactNode;
18
+ showDivider?: boolean;
19
+ dimensions?: import('./modalV2.types').ModalV2Dimensions;
20
+ useDrawerOnMobile?: boolean;
21
+ skeleton?: import('./modalV2.types').ModalV2BodySkeletonProps;
22
+ } & Omit<React.HTMLAttributes<HTMLDivElement>, "style" | "className" | "title" | "children"> & React.RefAttributes<HTMLDivElement>>;
23
+ export default MobileModalV2;
@@ -0,0 +1,3 @@
1
+ export declare const modalBackdropAnimationsV2: (isAnimatingIn: boolean) => import('styled-components').RuleSet<object>;
2
+ export declare const modalContentAnimationsV2: (isAnimatingIn: boolean) => import('styled-components').RuleSet<object>;
3
+ export declare const ANIMATION_DURATION = 300;
@@ -0,0 +1,3 @@
1
+ import { FoundationTokenType } from '../../tokens/theme.token';
2
+ import { ResponsiveModalV2Tokens } from './modalV2.tokens.types';
3
+ export declare const getModalV2DarkToken: (foundationToken: FoundationTokenType) => ResponsiveModalV2Tokens;
@@ -0,0 +1,3 @@
1
+ import { FoundationTokenType } from '../../tokens/theme.token';
2
+ import { ResponsiveModalV2Tokens } from './modalV2.tokens.types';
3
+ export declare const getModalV2LightToken: (foundationToken: FoundationTokenType) => ResponsiveModalV2Tokens;
@@ -0,0 +1,5 @@
1
+ import { FoundationTokenType } from '../../tokens/theme.token';
2
+ import { Theme } from '../../context/theme.enum';
3
+ import { ResponsiveModalV2Tokens } from './modalV2.tokens.types';
4
+ export type { ModalV2State, ModalV2TokensType, ResponsiveModalV2Tokens, } from './modalV2.tokens.types';
5
+ export declare const getModalV2Tokens: (foundationToken: FoundationTokenType, theme?: Theme | string) => ResponsiveModalV2Tokens;
@@ -0,0 +1,91 @@
1
+ import { CSSObject } from 'styled-components';
2
+ import { BreakpointType } from '../../breakpoints/breakPoints';
3
+ export type ModalV2State = 'default';
4
+ export type ModalV2TokensType = {
5
+ boxShadow: CSSObject['boxShadow'];
6
+ borderRadius: CSSObject['borderRadius'];
7
+ overlay: {
8
+ backgroundColor: CSSObject['backgroundColor'];
9
+ offset: CSSObject['offset'];
10
+ };
11
+ paddingTop: CSSObject['paddingTop'];
12
+ paddingRight: CSSObject['paddingRight'];
13
+ paddingBottom: CSSObject['paddingBottom'];
14
+ paddingLeft: CSSObject['paddingLeft'];
15
+ backgroundColor: CSSObject['backgroundColor'];
16
+ header: {
17
+ gap: CSSObject['gap'];
18
+ paddingTop: CSSObject['paddingTop'];
19
+ paddingRight: CSSObject['paddingRight'];
20
+ paddingBottom: CSSObject['paddingBottom'];
21
+ paddingLeft: CSSObject['paddingLeft'];
22
+ maxHeight: CSSObject['maxHeight'];
23
+ borderBottom: CSSObject['border'];
24
+ backgroundColor: CSSObject['backgroundColor'];
25
+ borderTopLeftRadius: CSSObject['borderTopLeftRadius'];
26
+ borderTopRightRadius: CSSObject['borderTopRightRadius'];
27
+ slot: {
28
+ gap: CSSObject['gap'];
29
+ };
30
+ text: {
31
+ title: {
32
+ color: CSSObject['color'];
33
+ fontSize: CSSObject['fontSize'];
34
+ fontWeight: CSSObject['fontWeight'];
35
+ lineHeight: CSSObject['lineHeight'];
36
+ };
37
+ subtitle: {
38
+ color: CSSObject['color'];
39
+ fontSize: CSSObject['fontSize'];
40
+ fontWeight: CSSObject['fontWeight'];
41
+ lineHeight: CSSObject['lineHeight'];
42
+ };
43
+ };
44
+ };
45
+ divider: {
46
+ borderColor: CSSObject['borderColor'];
47
+ };
48
+ skeleton: {
49
+ header: {
50
+ gap: CSSObject['gap'];
51
+ paddingTop: CSSObject['paddingTop'];
52
+ paddingRight: CSSObject['paddingRight'];
53
+ paddingBottom: CSSObject['paddingBottom'];
54
+ paddingLeft: CSSObject['paddingLeft'];
55
+ borderBottom: CSSObject['border'];
56
+ width: CSSObject['width'];
57
+ height: CSSObject['height'];
58
+ borderRadius: CSSObject['borderRadius'];
59
+ };
60
+ body: {
61
+ gap: CSSObject['gap'];
62
+ width: CSSObject['width'];
63
+ height: CSSObject['height'];
64
+ borderRadius: CSSObject['borderRadius'];
65
+ };
66
+ };
67
+ body: {
68
+ paddingTop: CSSObject['paddingTop'];
69
+ paddingRight: CSSObject['paddingRight'];
70
+ paddingBottom: CSSObject['paddingBottom'];
71
+ paddingLeft: CSSObject['paddingLeft'];
72
+ backgroundColor: CSSObject['backgroundColor'];
73
+ };
74
+ footer: {
75
+ paddingTop: CSSObject['paddingTop'];
76
+ paddingRight: CSSObject['paddingRight'];
77
+ paddingBottom: CSSObject['paddingBottom'];
78
+ paddingLeft: CSSObject['paddingLeft'];
79
+ borderTop: CSSObject['border'];
80
+ backgroundColor: CSSObject['backgroundColor'];
81
+ gap: CSSObject['gap'];
82
+ };
83
+ closeButton: {
84
+ color: CSSObject['color'];
85
+ width: CSSObject['width'];
86
+ height: CSSObject['height'];
87
+ };
88
+ };
89
+ export type ResponsiveModalV2Tokens = {
90
+ [key in keyof BreakpointType]: ModalV2TokensType;
91
+ };
@@ -0,0 +1,66 @@
1
+ import { SkeletonVariant } from '../Skeleton';
2
+ import { ModalV2TokensType } from './modalV2.tokens.types';
3
+ import { HTMLAttributes, ReactNode } from 'react';
4
+ import { ButtonV2Props } from '../ButtonV2';
5
+ import { CSSObject } from 'styled-components';
6
+ export type HeaderSkeletonConfig = {
7
+ show: boolean;
8
+ showDivider: boolean;
9
+ showCloseButton: boolean;
10
+ };
11
+ export type BodySkeletonConfig = {
12
+ show: boolean;
13
+ width: string;
14
+ height: string | number;
15
+ };
16
+ export type FooterSkeletonConfig = {
17
+ show: boolean;
18
+ showDivider: boolean;
19
+ };
20
+ export type ModalV2SkeletonProps = {
21
+ modalTokens: ModalV2TokensType;
22
+ headerSkeleton?: HeaderSkeletonConfig;
23
+ bodySkeleton?: BodySkeletonConfig;
24
+ footerSkeleton?: FooterSkeletonConfig;
25
+ skeletonVariant: SkeletonVariant;
26
+ };
27
+ export type ModalV2ButtonAction = Omit<ButtonV2Props, 'buttonGroupPosition'>;
28
+ export type BodySkeletonProps = {
29
+ show?: boolean;
30
+ width?: string;
31
+ height?: string | number;
32
+ };
33
+ export type ModalV2BodySkeletonProps = {
34
+ show?: boolean;
35
+ variant?: SkeletonVariant;
36
+ bodySkeletonProps?: BodySkeletonProps;
37
+ };
38
+ export type ModalV2Dimensions = {
39
+ width?: CSSObject['width'];
40
+ height?: CSSObject['height'];
41
+ minWidth?: CSSObject['minWidth'];
42
+ maxWidth?: CSSObject['maxWidth'];
43
+ minHeight?: CSSObject['minHeight'];
44
+ maxHeight?: CSSObject['maxHeight'];
45
+ };
46
+ export type ModalV2Props = {
47
+ isOpen: boolean;
48
+ isCustom?: boolean;
49
+ onClose: () => void;
50
+ title?: string;
51
+ subtitle?: string;
52
+ children: ReactNode;
53
+ primaryAction?: ModalV2ButtonAction;
54
+ secondaryAction?: ModalV2ButtonAction;
55
+ showCloseButton?: boolean;
56
+ showHeader?: boolean;
57
+ showFooter?: boolean;
58
+ closeOnBackdropClick?: boolean;
59
+ customHeader?: ReactNode;
60
+ customFooter?: ReactNode;
61
+ headerSlot?: ReactNode;
62
+ showDivider?: boolean;
63
+ dimensions?: ModalV2Dimensions;
64
+ useDrawerOnMobile?: boolean;
65
+ skeleton?: ModalV2BodySkeletonProps;
66
+ } & Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'title' | 'className' | 'style'>;
@@ -1,4 +1,6 @@
1
+ /** @deprecated Will be deprecated soon. Use MultiSelectV2 instead. */
1
2
  export { default as MultiSelect } from './MultiSelect';
3
+ /** @deprecated Will be deprecated soon. Use MultiSelectV2 instead. */
2
4
  export { default as MultiSelectTrigger } from './MultiSelectTrigger';
3
5
  export * from './multiSelect.tokens';
4
6
  export * from './types';
@@ -1,3 +1,4 @@
1
+ /** @deprecated Will be deprecated soon. Use PopoverV2 instead. */
1
2
  export { default as Popover } from './Popover';
2
3
  export * from './popover.tokens';
3
4
  export * from './types';
@@ -1,7 +1,7 @@
1
1
  import { default as React, JSX } from 'react';
2
2
  import { CSSObject } from 'styled-components';
3
3
  type SpacingValue = string | number;
4
- type StateStyles = {
4
+ export type StateStyles = {
5
5
  _hover?: StyledBlockProps;
6
6
  _focus?: StyledBlockProps;
7
7
  _active?: StyledBlockProps;
@@ -1,3 +1,4 @@
1
+ /** @deprecated Will be deprecated soon. Use ProgressBarV2 instead. */
1
2
  export { default as ProgressBar } from './ProgressBar';
2
3
  export * from './progressbar.tokens';
3
4
  export * from './types';
@@ -1,4 +1,6 @@
1
+ /** @deprecated Will be deprecated soon. Use RadioV2 instead. */
1
2
  export { default as Radio } from './Radio';
3
+ /** @deprecated Will be deprecated soon. Use RadioV2 instead. */
2
4
  export { default as RadioGroup } from './RadioGroup';
3
5
  export { RadioSize } from './types';
4
6
  export type { RadioProps, RadioGroupProps } from './types';
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { DirectoryData } from '../Directory/types';
2
+ import { DirectoryData, DirectoryProps } from '../Directory/types';
3
3
  import { SidebarMerchantInfo, SidebarStateChangeType } from './types';
4
4
  export type SidebarContentProps = {
5
5
  sidebarTopSlot?: React.ReactNode;
@@ -20,6 +20,14 @@ export type SidebarContentProps = {
20
20
  footer?: React.ReactNode;
21
21
  setIsHovering?: (isHovering: boolean) => void;
22
22
  sidebarState?: SidebarStateChangeType;
23
+ showHierarchyLines?: DirectoryProps['showHierarchyLines'];
24
+ hierarchyLineBorderRadius?: DirectoryProps['hierarchyLineBorderRadius'];
25
+ expandedItems?: DirectoryProps['expandedItems'];
26
+ defaultExpandedItems?: DirectoryProps['defaultExpandedItems'];
27
+ onExpandedItemsChange?: DirectoryProps['onExpandedItemsChange'];
28
+ onItemExpand?: DirectoryProps['onItemExpand'];
29
+ enableVirtualization?: DirectoryProps['enableVirtualization'];
30
+ virtualization?: DirectoryProps['virtualization'];
23
31
  };
24
32
  declare const SidebarContent: React.FC<SidebarContentProps>;
25
33
  export default SidebarContent;
@@ -1,3 +1,4 @@
1
+ /** @deprecated Will be deprecated soon. Use SidebarV2 instead. */
1
2
  export { default as Sidebar } from './Sidebar';
2
3
  export * from './sidebar.tokens';
3
4
  export * from './types';
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- import { DirectoryData, NavbarItem } from '../Directory/types';
2
+ import { DirectoryData, DirectoryProps, NavbarItem } from '../Directory/types';
3
3
  import { MerchantInfo, LeftPanelInfo, TenantBadge } from '../shared/layoutTypes';
4
4
  export type { LeftPanelInfo, LeftPanelItem, TenantBadge, } from '../shared/layoutTypes';
5
5
  export type TenantItem = {
@@ -48,6 +48,14 @@ export type SidebarProps = {
48
48
  onActiveItemChange?: (item: string | null) => void;
49
49
  defaultActiveItem?: string | null;
50
50
  onHoveringChange?: (isHovering: boolean) => void;
51
+ showHierarchyLines?: DirectoryProps['showHierarchyLines'];
52
+ hierarchyLineBorderRadius?: DirectoryProps['hierarchyLineBorderRadius'];
53
+ expandedItems?: DirectoryProps['expandedItems'];
54
+ defaultExpandedItems?: DirectoryProps['defaultExpandedItems'];
55
+ onExpandedItemsChange?: DirectoryProps['onExpandedItemsChange'];
56
+ onItemExpand?: DirectoryProps['onItemExpand'];
57
+ enableVirtualization?: DirectoryProps['enableVirtualization'];
58
+ virtualization?: DirectoryProps['virtualization'];
51
59
  };
52
60
  export type MobileNavigationItem = NavbarItem & {
53
61
  sectionLabel?: string;
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- import { DirectoryData } from '../Directory/types';
2
+ import { DirectoryData, DirectoryProps } from '../Directory/types';
3
3
  import { SidebarV2StateChangeType } from './types';
4
4
  import { SidebarV2TokensType } from './sidebarV2.tokens';
5
5
  export type SidebarV2PanelProps = {
@@ -29,6 +29,14 @@ export type SidebarV2PanelProps = {
29
29
  setIsHovering?: (isHovering: boolean) => void;
30
30
  sidebarState?: SidebarV2StateChangeType;
31
31
  tokens: SidebarV2TokensType;
32
+ showHierarchyLines?: DirectoryProps['showHierarchyLines'];
33
+ hierarchyLineBorderRadius?: DirectoryProps['hierarchyLineBorderRadius'];
34
+ expandedItems?: DirectoryProps['expandedItems'];
35
+ defaultExpandedItems?: DirectoryProps['defaultExpandedItems'];
36
+ onExpandedItemsChange?: DirectoryProps['onExpandedItemsChange'];
37
+ onItemExpand?: DirectoryProps['onItemExpand'];
38
+ enableVirtualization?: DirectoryProps['enableVirtualization'];
39
+ virtualization?: DirectoryProps['virtualization'];
32
40
  };
33
- declare const SidebarV2Panel: ({ sidebarTopSlot, merchantInfo, isExpanded, isScrolled, sidebarCollapseKey, onToggle, sidebarNavId, data, idPrefix, activeItem, onActiveItemChange, defaultActiveItem, iconOnlyMode, hideToggleButton, footer, setIsHovering, sidebarState, tokens, }: SidebarV2PanelProps) => import("react/jsx-runtime").JSX.Element;
41
+ declare const SidebarV2Panel: ({ sidebarTopSlot, merchantInfo, isExpanded, isScrolled, sidebarCollapseKey, onToggle, sidebarNavId, data, idPrefix, activeItem, onActiveItemChange, defaultActiveItem, iconOnlyMode, hideToggleButton, footer, setIsHovering, sidebarState, tokens, showHierarchyLines, hierarchyLineBorderRadius, expandedItems, defaultExpandedItems, onExpandedItemsChange, onItemExpand, enableVirtualization, virtualization, }: SidebarV2PanelProps) => import("react/jsx-runtime").JSX.Element;
34
42
  export default SidebarV2Panel;
@@ -1,5 +1,5 @@
1
1
  import { ButtonHTMLAttributes, ReactNode } from 'react';
2
- import { DirectoryData } from '../Directory/types';
2
+ import { DirectoryData, DirectoryProps } from '../Directory/types';
3
3
  import { MerchantInfo } from '../Topbar/types';
4
4
  import { TenantBadge } from '../Sidebar/types';
5
5
  export type { TenantBadge } from '../Sidebar/types';
@@ -50,5 +50,13 @@ export type SidebarV2Props = {
50
50
  activeItem?: string | null;
51
51
  onActiveItemChange?: (item: string | null) => void;
52
52
  defaultActiveItem?: string | null;
53
+ showHierarchyLines?: DirectoryProps['showHierarchyLines'];
54
+ hierarchyLineBorderRadius?: DirectoryProps['hierarchyLineBorderRadius'];
55
+ expandedItems?: DirectoryProps['expandedItems'];
56
+ defaultExpandedItems?: DirectoryProps['defaultExpandedItems'];
57
+ onExpandedItemsChange?: DirectoryProps['onExpandedItemsChange'];
58
+ onItemExpand?: DirectoryProps['onItemExpand'];
59
+ enableVirtualization?: DirectoryProps['enableVirtualization'];
60
+ virtualization?: DirectoryProps['virtualization'];
53
61
  };
54
62
  export type { SidebarV2MobileNavigationItem, SidebarV2MobileNavigationProps, } from './SidebarV2MobileNavigation/types';
@@ -1,3 +1,4 @@
1
+ /** @deprecated Will be deprecated soon. Use SingleSelectV2 instead. */
1
2
  export { default as SingleSelect } from './SingleSelect';
2
3
  export * from './singleSelect.tokens';
3
4
  export * from './types';
@@ -1,4 +1,21 @@
1
+ import { default as Skeleton } from './Skeleton';
2
+ import { default as SkeletonAvatar } from './SkeletonAvatar';
3
+ import { default as SkeletonCard } from './SkeletonCard';
1
4
  import { SkeletonProps } from './types';
5
+ declare const SkeletonRoot: import('react').ForwardRefExoticComponent<import('./types').BaseSkeletonProps & Omit<import('../Primitives/Block/Block').BlockProps, "children"> & {
6
+ children?: import('react').ReactNode;
7
+ animate?: boolean;
8
+ width?: string | number;
9
+ height?: string | number;
10
+ maxHeight?: string | number;
11
+ minHeight?: string | number;
12
+ maxWidth?: string | number;
13
+ minWidth?: string | number;
14
+ shape?: import('./skeleton.tokens').SkeletonShape;
15
+ } & import('react').RefAttributes<HTMLDivElement>>;
16
+ declare const SkeletonCircle: import('react').ForwardRefExoticComponent<Omit<SkeletonProps, "shape"> & import('react').RefAttributes<HTMLDivElement>>;
17
+ declare const SkeletonRectangle: import('react').ForwardRefExoticComponent<Omit<SkeletonProps, "shape"> & import('react').RefAttributes<HTMLDivElement>>;
18
+ declare const SkeletonRounded: import('react').ForwardRefExoticComponent<Omit<SkeletonProps, "shape"> & import('react').RefAttributes<HTMLDivElement>>;
2
19
  /**
3
20
  * Enhanced Skeleton with compound component pattern
4
21
  *
@@ -11,47 +28,21 @@ import { SkeletonProps } from './types';
11
28
  * Or traditional:
12
29
  * <Skeleton.Text loading={isLoading} lines={3} />
13
30
  */
14
- declare const SkeletonCompound: import('react').ForwardRefExoticComponent<import('./types').BaseSkeletonProps & Omit<import('../Primitives/Block/Block').BlockProps, "children"> & {
15
- children?: import('react').ReactNode;
16
- animate?: boolean;
17
- width?: string | number;
18
- height?: string | number;
19
- maxHeight?: string | number;
20
- minHeight?: string | number;
21
- maxWidth?: string | number;
22
- minWidth?: string | number;
23
- shape?: import('./skeleton.tokens').SkeletonShape;
24
- } & import('react').RefAttributes<HTMLDivElement>> & {
31
+ declare const SkeletonCompound: typeof SkeletonRoot & {
25
32
  /**
26
33
  * Avatar skeleton with circular or square shapes and multiple sizes
27
34
  */
28
- Avatar: import('react').ForwardRefExoticComponent<import('./types').BaseSkeletonProps & Omit<import('../Primitives/Block/Block').BlockProps, "children"> & {
29
- size?: import('./types').SkeletonSize;
30
- shape?: "circle" | "square";
31
- } & import('react').RefAttributes<HTMLDivElement>>;
35
+ Avatar: typeof SkeletonAvatar;
32
36
  /**
33
37
  * Card skeleton with default layout or custom children
34
38
  */
35
- Card: import('react').ForwardRefExoticComponent<import('./types').BaseSkeletonProps & Omit<import('../Primitives/Block/Block').BlockProps, "children"> & {
36
- children?: import('react').ReactNode;
37
- padding?: string | number;
38
- } & import('react').RefAttributes<HTMLDivElement>>;
39
+ Card: typeof SkeletonCard;
39
40
  /**
40
41
  * Base skeleton component for custom shapes and layouts
41
42
  */
42
- Base: import('react').ForwardRefExoticComponent<import('./types').BaseSkeletonProps & Omit<import('../Primitives/Block/Block').BlockProps, "children"> & {
43
- children?: import('react').ReactNode;
44
- animate?: boolean;
45
- width?: string | number;
46
- height?: string | number;
47
- maxHeight?: string | number;
48
- minHeight?: string | number;
49
- maxWidth?: string | number;
50
- minWidth?: string | number;
51
- shape?: import('./skeleton.tokens').SkeletonShape;
52
- } & import('react').RefAttributes<HTMLDivElement>>;
53
- Circle: import('react').ForwardRefExoticComponent<Omit<SkeletonProps, "shape"> & import('react').RefAttributes<HTMLDivElement>>;
54
- Rectangle: import('react').ForwardRefExoticComponent<Omit<SkeletonProps, "shape"> & import('react').RefAttributes<HTMLDivElement>>;
55
- Rounded: import('react').ForwardRefExoticComponent<Omit<SkeletonProps, "shape"> & import('react').RefAttributes<HTMLDivElement>>;
43
+ Base: typeof Skeleton;
44
+ Circle: typeof SkeletonCircle;
45
+ Rectangle: typeof SkeletonRectangle;
46
+ Rounded: typeof SkeletonRounded;
56
47
  };
57
48
  export default SkeletonCompound;
@@ -1,4 +1,6 @@
1
+ /** @deprecated Will be deprecated soon. Use SnackbarV2 instead. */
1
2
  export { default as Snackbar } from './Snackbar';
3
+ /** @deprecated Will be deprecated soon. Use SnackbarV2 instead. */
2
4
  export { addSnackbar } from './Snackbar';
3
5
  export * from './snackbar.tokens';
4
6
  export * from './types';
@@ -1,3 +1,4 @@
1
+ /** @deprecated Will be deprecated soon. Use StatCardV2 instead. */
1
2
  export { default as StatCard } from './StatCard';
2
3
  export * from './statcard.tokens';
3
4
  export * from './types';
@@ -1,3 +1,4 @@
1
+ /** @deprecated Will be deprecated soon. Use StepperV2 instead. */
1
2
  export { default as Stepper } from './Stepper';
2
3
  export * from './stepper.tokens';
3
4
  export * from './types';
@@ -1,4 +1,6 @@
1
+ /** @deprecated Will be deprecated soon. Use SwitchV2 instead. */
1
2
  export { Switch } from './Switch';
3
+ /** @deprecated Will be deprecated soon. Use SwitchV2 instead. */
2
4
  export { default as SwitchGroup } from './SwitchGroup';
3
5
  export { SwitchSize } from './types';
4
6
  export type { SwitchProps, SwitchGroupProps } from './types';
@@ -2,6 +2,7 @@ import { default as Tabs } from './Tabs';
2
2
  import { default as TabsList } from './TabsList';
3
3
  import { default as TabsTrigger } from './TabsTrigger';
4
4
  import { default as TabsContent } from './TabsContent';
5
+ /** @deprecated Will be deprecated soon. Use TabsV2 instead. */
5
6
  export { Tabs, TabsList, TabsTrigger, TabsContent };
6
7
  export * from './types';
7
8
  export * from './tabs.token';
@@ -1,3 +1,4 @@
1
+ /** @deprecated Will be deprecated soon. Use TagV2 instead. */
1
2
  export { default as Tag } from './Tag';
2
3
  export * from './tag.tokens';
3
4
  export * from './types';
@@ -1,41 +1,17 @@
1
- declare const Timeline: import('react').ForwardRefExoticComponent<{
1
+ import { default as TimelineLabel } from './TimelineLabel';
2
+ import { default as TimelineHeader } from './TimelineHeader';
3
+ import { default as TimelineSubstep } from './TimelineSubstep';
4
+ import { default as TimelineNode } from './TimelineNode';
5
+ import { default as TimelineShowMore } from './TimelineShowMore';
6
+ declare const TimelineRoot: import('react').ForwardRefExoticComponent<{
2
7
  children: import('react').ReactNode;
3
8
  className?: string;
4
- } & Omit<import('react').HTMLAttributes<HTMLDivElement>, "style" | "className" | "children"> & import('react').RefAttributes<HTMLDivElement>> & {
5
- Label: import('react').ForwardRefExoticComponent<import('./types').TimelineLabelProps & import('react').RefAttributes<HTMLDivElement>>;
6
- Header: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
7
- title: string;
8
- status?: import('./types').TimelineNodeStatus;
9
- timestamp?: string;
10
- children?: import('react').ReactNode;
11
- leftSlot?: import('react').ReactNode;
12
- rightSlot?: import('react').ReactNode;
13
- } & import('react').RefAttributes<HTMLDivElement>>;
14
- Substep: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
15
- title: string;
16
- isNestedUnderHeader?: boolean;
17
- showIndicator?: boolean;
18
- description?: string;
19
- timestamp?: string;
20
- rightSlot?: import('react').ReactNode;
21
- datetimeLeftSlot?: import('react').ReactNode;
22
- datetimeRightSlot?: import('react').ReactNode;
23
- } & import('react').RefAttributes<HTMLDivElement>>;
24
- Node: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
25
- title?: string;
26
- leftSlot?: import('react').ReactNode;
27
- headerRightSlot?: import('react').ReactNode;
28
- datetime?: string;
29
- datetimeLeftSlot?: import('react').ReactNode;
30
- datetimeRightSlot?: import('react').ReactNode;
31
- text?: string;
32
- maxLines?: number;
33
- user?: import('./types').TimelineUser;
34
- avatarProps?: Partial<Omit<import('../AvatarV2').AvatarV2Props, "src" | "fallbackText">>;
35
- time?: string;
36
- status?: import('./types').TimelineNodeStatus;
37
- children?: import('react').ReactNode;
38
- } & import('react').RefAttributes<HTMLDivElement>>;
39
- ShowMore: import('react').ForwardRefExoticComponent<import('./types').TimelineShowMoreProps & import('react').RefAttributes<HTMLDivElement>>;
9
+ } & Omit<import('react').HTMLAttributes<HTMLDivElement>, "style" | "className" | "children"> & import('react').RefAttributes<HTMLDivElement>>;
10
+ declare const Timeline: typeof TimelineRoot & {
11
+ Label: typeof TimelineLabel;
12
+ Header: typeof TimelineHeader;
13
+ Substep: typeof TimelineSubstep;
14
+ Node: typeof TimelineNode;
15
+ ShowMore: typeof TimelineShowMore;
40
16
  };
41
17
  export default Timeline;