@loadsmart/loadsmart-ui 5.10.0 → 5.11.0

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 (271) hide show
  1. package/dist/common/SelectionWrapper.d.ts +1 -1
  2. package/dist/components/Accordion/Accordion.d.ts +1 -1
  3. package/dist/components/Accordion/Accordion.stories.d.ts +1 -1
  4. package/dist/components/Banner/Banner.stories.d.ts +1 -1
  5. package/dist/components/Breadcrumbs/Breadcrumbs.stories.d.ts +1 -1
  6. package/dist/components/Button/Button.stories.d.ts +1 -1
  7. package/dist/components/Calendar/Calendar.stories.d.ts +2 -7
  8. package/dist/components/Calendar/Date.helper.d.ts +47 -12
  9. package/dist/components/Card/Card.stories.d.ts +1 -1
  10. package/dist/components/Checkbox/Checkbox.d.ts +1 -1
  11. package/dist/components/Checkbox/Checkbox.stories.d.ts +1 -1
  12. package/dist/components/Dialog/Dialog.stories.d.ts +1 -1
  13. package/dist/components/DragDropFile/DragDropFile.stories.d.ts +1 -1
  14. package/dist/components/Drawer/Drawer.stories.d.ts +1 -1
  15. package/dist/components/Dropdown/Dropdown.stories.d.ts +5 -2
  16. package/dist/components/EmptyState/EmptyState.stories.d.ts +1 -1
  17. package/dist/components/ErrorMessage/ErrorMessage.stories.d.ts +1 -1
  18. package/dist/components/HighlightMatch/HighlightMatch.stories.d.ts +1 -1
  19. package/dist/components/IconFactory/IconFactory.stories.d.ts +1 -1
  20. package/dist/components/Label/Label.d.ts +2 -2
  21. package/dist/components/Label/Label.stories.d.ts +1 -1
  22. package/dist/components/Layout/Box.d.ts +1 -1
  23. package/dist/components/Layout/Grid.d.ts +1 -1
  24. package/dist/components/Layout/Layout.stories.d.ts +1 -1
  25. package/dist/components/Layout/Sidebar.d.ts +1 -1
  26. package/dist/components/Layout/Switcher.d.ts +1 -1
  27. package/dist/components/Link/Link.stories.d.ts +1 -1
  28. package/dist/components/Link/useSafeLink.d.ts +1 -1
  29. package/dist/components/Loaders/LoadingBar.stories.d.ts +2 -2
  30. package/dist/components/Loaders/LoadingDots.stories.d.ts +1 -1
  31. package/dist/components/Loaders/Spinner.stories.d.ts +1 -1
  32. package/dist/components/Modal/Modal.stories.d.ts +1 -1
  33. package/dist/components/Pagination/Pagination.stories.d.ts +1 -1
  34. package/dist/components/Pagination/Pagination.types.d.ts +2 -2
  35. package/dist/components/Popover/Popover.stories.d.ts +1 -1
  36. package/dist/components/ProgressBar/ProgressBar.stories.d.ts +1 -1
  37. package/dist/components/Radio/Radio.d.ts +1 -1
  38. package/dist/components/Radio/Radio.stories.d.ts +1 -1
  39. package/dist/components/Section/Sections.stories.d.ts +1 -1
  40. package/dist/components/Select/Select.fixtures.d.ts +1 -1
  41. package/dist/components/Select/Select.stories.d.ts +1 -1
  42. package/dist/components/Select/Select.types.d.ts +2 -2
  43. package/dist/components/Select/SelectCreatableOption.d.ts +1 -1
  44. package/dist/components/Select/SelectEmpty.d.ts +1 -1
  45. package/dist/components/Select/components.d.ts +1 -1
  46. package/dist/components/Select/useSelectExternal.d.ts +1 -1
  47. package/dist/components/SideNavigation/SideNavigation.stories.d.ts +1 -1
  48. package/dist/components/Steps/Steps.d.ts +1 -1
  49. package/dist/components/Steps/Steps.stories.d.ts +1 -1
  50. package/dist/components/Steps/StepsStep.d.ts +1 -1
  51. package/dist/components/Switch/Switch.stories.d.ts +1 -1
  52. package/dist/components/Table/Table.stories.d.ts +1 -1
  53. package/dist/components/Table/Table.types.d.ts +3 -4
  54. package/dist/components/Table/TableSortHandle.d.ts +1 -1
  55. package/dist/components/TablePagination/RowsPerPage.d.ts +1 -1
  56. package/dist/components/TablePagination/TablePagination.stories.d.ts +1 -1
  57. package/dist/components/TablePagination/TablePagination.types.d.ts +1 -1
  58. package/dist/components/TablePagination/TablePaginationActions.d.ts +1 -1
  59. package/dist/components/Tag/Tag.stories.d.ts +1 -1
  60. package/dist/components/Text/Text.d.ts +1 -1
  61. package/dist/components/Text/Text.stories.d.ts +1 -1
  62. package/dist/components/TextField/TextField.d.ts +1 -1
  63. package/dist/components/TextField/TextField.stories.d.ts +1 -1
  64. package/dist/components/Textarea/Textarea.d.ts +1 -1
  65. package/dist/components/Textarea/Textarea.stories.d.ts +1 -1
  66. package/dist/components/Toast/Toast.stories.d.ts +1 -1
  67. package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +1 -1
  68. package/dist/components/Tooltip/Tooltip.d.ts +3 -2
  69. package/dist/components/Tooltip/Tooltip.stories.d.ts +1 -1
  70. package/dist/hooks/useFocusTrap/useFocusTrap.stories.d.ts +1 -1
  71. package/dist/hooks/useHeightExpansionToggler/useHeightExpansionToggler.d.ts +1 -1
  72. package/dist/index.js +339 -491
  73. package/dist/index.js.map +1 -1
  74. package/dist/styles/activatable.d.ts +1 -1
  75. package/dist/styles/disableable.d.ts +1 -1
  76. package/dist/styles/focusable.d.ts +1 -1
  77. package/dist/styles/hoverable.d.ts +1 -1
  78. package/dist/testing/getInterpolatedStyles/getInterpolatedStyles.d.ts +1 -1
  79. package/dist/testing/index.js.map +1 -1
  80. package/dist/tests/generator.d.ts +35 -0
  81. package/dist/tests/renderer.d.ts +10 -0
  82. package/dist/theming/index.d.ts +2 -2
  83. package/dist/theming/index.js.map +1 -1
  84. package/package.json +9 -10
  85. package/src/common/CloseButton/CloseButton.tsx +7 -11
  86. package/src/common/SelectionWrapper.tsx +8 -8
  87. package/src/components/Accordion/Accordion.stories.tsx +2 -2
  88. package/src/components/Accordion/Accordion.test.tsx +2 -2
  89. package/src/components/Accordion/Accordion.tsx +24 -29
  90. package/src/components/Banner/Banner.stories.tsx +1 -1
  91. package/src/components/Banner/Banner.test.tsx +2 -2
  92. package/src/components/Banner/Banner.tsx +2 -2
  93. package/src/components/Breadcrumbs/Breadbrumbs.test.tsx +2 -2
  94. package/src/components/Breadcrumbs/Breadcrumb.tsx +3 -4
  95. package/src/components/Breadcrumbs/Breadcrumbs.stories.tsx +1 -1
  96. package/src/components/Breadcrumbs/Breadcrumbs.tsx +1 -1
  97. package/src/components/Button/Button.stories.tsx +1 -1
  98. package/src/components/Button/Button.test.tsx +2 -2
  99. package/src/components/Button/Button.tsx +17 -20
  100. package/src/components/Calendar/Calendar.stories.tsx +4 -2
  101. package/src/components/Calendar/Calendar.test.tsx +3 -3
  102. package/src/components/Calendar/Calendar.tsx +4 -8
  103. package/src/components/Calendar/Date.helper.test.ts +463 -15
  104. package/src/components/Calendar/Date.helper.ts +106 -45
  105. package/src/components/Calendar/PickerModeToggle.tsx +3 -6
  106. package/src/components/Calendar/Pickers/DayPicker.test.tsx +2 -2
  107. package/src/components/Calendar/Pickers/DayPicker.tsx +1 -1
  108. package/src/components/Calendar/Pickers/MonthPicker.test.tsx +2 -2
  109. package/src/components/Calendar/Pickers/MonthPicker.tsx +1 -1
  110. package/src/components/Calendar/Pickers/PickerButton.tsx +29 -39
  111. package/src/components/Calendar/Pickers/YearPicker.test.tsx +9 -7
  112. package/src/components/Calendar/Pickers/YearPicker.tsx +1 -1
  113. package/src/components/Card/Card.stories.tsx +2 -2
  114. package/src/components/Card/Card.test.tsx +2 -2
  115. package/src/components/Card/Card.tsx +6 -9
  116. package/src/components/Card/CardTitle.tsx +3 -3
  117. package/src/components/Checkbox/Checkbox.stories.tsx +1 -1
  118. package/src/components/Checkbox/Checkbox.test.tsx +2 -2
  119. package/src/components/Checkbox/Checkbox.tsx +15 -27
  120. package/src/components/DatePicker/DatePicker.test.tsx +2 -2
  121. package/src/components/DatePicker/DateRangePicker.stories.tsx +6 -1
  122. package/src/components/DatePicker/DateRangePicker.test.tsx +2 -2
  123. package/src/components/Dialog/Dialog.stories.tsx +1 -1
  124. package/src/components/Dialog/Dialog.test.tsx +2 -2
  125. package/src/components/Dialog/Dialog.tsx +5 -5
  126. package/src/components/DragDropFile/DragDropFile.stories.tsx +1 -1
  127. package/src/components/DragDropFile/components/DropZone.test.tsx +1 -1
  128. package/src/components/DragDropFile/styles.tsx +6 -11
  129. package/src/components/Drawer/Drawer.stories.tsx +1 -1
  130. package/src/components/Drawer/Drawer.test.tsx +1 -1
  131. package/src/components/Drawer/Drawer.tsx +6 -6
  132. package/src/components/Dropdown/Dropdown.stories.tsx +11 -6
  133. package/src/components/Dropdown/Dropdown.test.tsx +14 -16
  134. package/src/components/Dropdown/DropdownMenu.tsx +15 -28
  135. package/src/components/Dropdown/DropdownTrigger.tsx +24 -34
  136. package/src/components/EmptyState/EmptyState.stories.tsx +1 -1
  137. package/src/components/EmptyState/EmptyState.test.tsx +1 -1
  138. package/src/components/ErrorMessage/ErrorMessage.stories.tsx +1 -1
  139. package/src/components/ErrorMessage/ErrorMessage.test.tsx +1 -1
  140. package/src/components/HighlightMatch/HighlightMatch.stories.tsx +1 -1
  141. package/src/components/HighlightMatch/HighlightMatch.test.tsx +2 -2
  142. package/src/components/HighlightMatch/HighlightMatch.tsx +1 -1
  143. package/src/components/IconFactory/IconFactory.stories.tsx +1 -1
  144. package/src/components/IconFactory/IconFactory.test.tsx +2 -2
  145. package/src/components/Label/Label.stories.tsx +1 -1
  146. package/src/components/Label/Label.test.tsx +2 -2
  147. package/src/components/Label/Label.tsx +5 -5
  148. package/src/components/Layout/Box.tsx +1 -1
  149. package/src/components/Layout/Grid.tsx +1 -1
  150. package/src/components/Layout/Layout.stories.tsx +1 -1
  151. package/src/components/Layout/Sidebar.tsx +1 -1
  152. package/src/components/Layout/Switcher.tsx +1 -1
  153. package/src/components/Link/Link.stories.tsx +1 -1
  154. package/src/components/Link/Link.test.tsx +2 -2
  155. package/src/components/Link/Link.tsx +9 -13
  156. package/src/components/Link/useSafeLink.ts +1 -1
  157. package/src/components/Loaders/LoadingBar.stories.tsx +3 -3
  158. package/src/components/Loaders/LoadingBar.test.tsx +1 -1
  159. package/src/components/Loaders/LoadingBar.tsx +2 -2
  160. package/src/components/Loaders/LoadingDots.stories.tsx +1 -1
  161. package/src/components/Loaders/LoadingDots.test.tsx +1 -1
  162. package/src/components/Loaders/Spinner.stories.tsx +1 -1
  163. package/src/components/Loaders/Spinner.test.tsx +2 -2
  164. package/src/components/Modal/Modal.stories.tsx +1 -1
  165. package/src/components/Modal/Modal.test.tsx +2 -2
  166. package/src/components/Modal/Modal.tsx +7 -12
  167. package/src/components/Pagination/Pagination.stories.tsx +1 -1
  168. package/src/components/Pagination/Pagination.test.tsx +2 -2
  169. package/src/components/Pagination/Pagination.types.ts +2 -2
  170. package/src/components/Popover/Popover.stories.tsx +1 -1
  171. package/src/components/Popover/Popover.test.tsx +2 -2
  172. package/src/components/ProgressBar/ProgressBar.stories.tsx +1 -1
  173. package/src/components/ProgressBar/ProgressBar.test.tsx +1 -1
  174. package/src/components/ProgressBar/ProgressBar.tsx +4 -6
  175. package/src/components/Radio/Radio.stories.tsx +1 -1
  176. package/src/components/Radio/Radio.test.tsx +2 -2
  177. package/src/components/Radio/Radio.tsx +12 -20
  178. package/src/components/Section/Section.test.tsx +2 -2
  179. package/src/components/Section/Section.tsx +6 -8
  180. package/src/components/Section/Sections.stories.tsx +2 -2
  181. package/src/components/Select/Select.fixtures.ts +2 -2
  182. package/src/components/Select/Select.stories.tsx +3 -3
  183. package/src/components/Select/Select.test.tsx +12 -5
  184. package/src/components/Select/Select.types.ts +2 -2
  185. package/src/components/Select/SelectCreatableOption.tsx +1 -1
  186. package/src/components/Select/SelectEmpty.tsx +5 -6
  187. package/src/components/Select/SelectOption.test.tsx +1 -1
  188. package/src/components/Select/SelectTrigger.tsx +6 -11
  189. package/src/components/Select/components.tsx +1 -1
  190. package/src/components/Select/useSelect.helpers.test.ts +1 -1
  191. package/src/components/Select/useSelect.ts +1 -1
  192. package/src/components/Select/useSelectExternal.ts +1 -1
  193. package/src/components/SideNavigation/Logo/Logo.test.tsx +2 -2
  194. package/src/components/SideNavigation/Menu/Menu.test.tsx +3 -3
  195. package/src/components/SideNavigation/Menu/Menu.tsx +3 -3
  196. package/src/components/SideNavigation/Menu/MenuBaseItem.tsx +4 -5
  197. package/src/components/SideNavigation/Menu/MenuExpandable.tsx +2 -3
  198. package/src/components/SideNavigation/Separator/Separator.test.tsx +1 -1
  199. package/src/components/SideNavigation/SideNavigation.stories.tsx +1 -1
  200. package/src/components/SideNavigation/SideNavigation.test.tsx +2 -2
  201. package/src/components/Steps/ProgressSteps/ProgressStep.tsx +31 -39
  202. package/src/components/Steps/Steps.fixtures.ts +1 -1
  203. package/src/components/Steps/Steps.stories.tsx +1 -1
  204. package/src/components/Steps/Steps.test.tsx +2 -2
  205. package/src/components/Steps/Steps.tsx +2 -1
  206. package/src/components/Steps/StepsStep.tsx +2 -1
  207. package/src/components/Steps/useStep.test.tsx +1 -1
  208. package/src/components/Switch/Switch.stories.tsx +1 -1
  209. package/src/components/Switch/Switch.test.tsx +1 -1
  210. package/src/components/Switch/Switch.tsx +6 -18
  211. package/src/components/Table/Table.fixtures.ts +1 -1
  212. package/src/components/Table/Table.stories.tsx +1 -1
  213. package/src/components/Table/Table.test.tsx +1 -1
  214. package/src/components/Table/Table.tsx +2 -2
  215. package/src/components/Table/Table.types.ts +9 -4
  216. package/src/components/Table/TableSortHandle.tsx +1 -1
  217. package/src/components/TablePagination/RowsPerPage.tsx +2 -2
  218. package/src/components/TablePagination/TablePagination.stories.tsx +1 -1
  219. package/src/components/TablePagination/TablePagination.test.tsx +2 -2
  220. package/src/components/TablePagination/TablePagination.types.ts +1 -1
  221. package/src/components/TablePagination/TablePaginationActions.tsx +1 -1
  222. package/src/components/Tabs/Tabs.test.tsx +1 -1
  223. package/src/components/Tabs/Tabs.tsx +26 -32
  224. package/src/components/Tag/Tag.stories.tsx +2 -2
  225. package/src/components/Tag/Tag.test.tsx +2 -2
  226. package/src/components/Tag/Tag.tsx +35 -44
  227. package/src/components/Text/Text.stories.tsx +1 -1
  228. package/src/components/Text/Text.test.tsx +2 -2
  229. package/src/components/Text/Text.tsx +1 -1
  230. package/src/components/TextField/TextField.stories.tsx +1 -1
  231. package/src/components/TextField/TextField.test.tsx +1 -1
  232. package/src/components/TextField/TextField.tsx +16 -23
  233. package/src/components/Textarea/Textarea.stories.tsx +1 -1
  234. package/src/components/Textarea/Textarea.test.tsx +1 -1
  235. package/src/components/Textarea/Textarea.tsx +18 -23
  236. package/src/components/Toast/Toast.stories.tsx +1 -1
  237. package/src/components/Toast/Toast.test.tsx +2 -2
  238. package/src/components/Toast/Toast.tsx +3 -3
  239. package/src/components/ToggleGroup/Toggle.test.tsx +2 -2
  240. package/src/components/ToggleGroup/Toggle.tsx +7 -7
  241. package/src/components/ToggleGroup/ToggleGroup.stories.tsx +1 -1
  242. package/src/components/ToggleGroup/ToggleGroup.test.tsx +2 -2
  243. package/src/components/Tooltip/Tooltip.stories.tsx +1 -1
  244. package/src/components/Tooltip/Tooltip.test.tsx +2 -2
  245. package/src/components/Tooltip/Tooltip.tsx +23 -24
  246. package/src/components/TopNavigation/Logo/Logo.test.tsx +2 -2
  247. package/src/components/TopNavigation/Menu/Menu.test.tsx +1 -1
  248. package/src/components/TopNavigation/Menu/MenuItemDropdown.tsx +1 -1
  249. package/src/components/TopNavigation/OpenSideNavButton/OpenSideNavButton.tsx +1 -1
  250. package/src/components/VisuallyHidden/VisuallyHidden.test.tsx +1 -1
  251. package/src/hooks/useClickOutside/useClickOutside.test.tsx +1 -1
  252. package/src/hooks/useDidMount/useDidMount.test.tsx +1 -1
  253. package/src/hooks/useFocusTrap/useFocusTrap.stories.tsx +1 -1
  254. package/src/hooks/useFocusTrap/useFocusTrap.test.tsx +1 -1
  255. package/src/hooks/useFocusWithin/useFocusWithin.test.tsx +1 -1
  256. package/src/hooks/useHeightExpansionToggler/useHeightExpansionToggler.test.tsx +1 -1
  257. package/src/hooks/useHeightExpansionToggler/useHeightExpansionToggler.ts +1 -1
  258. package/src/hooks/useSelectable/SelectableStrategy.test.ts +1 -1
  259. package/src/hooks/useSelectable/useSelectable.test.ts +1 -1
  260. package/src/styles/activatable.tsx +1 -1
  261. package/src/styles/disableable.tsx +1 -1
  262. package/src/styles/focusable.tsx +1 -1
  263. package/src/styles/font.tsx +3 -3
  264. package/src/styles/hoverable.tsx +1 -1
  265. package/src/testing/SelectEvent/SelectEvent.test.tsx +2 -2
  266. package/src/testing/getInterpolatedStyles/getInterpolatedStyles.ts +1 -1
  267. package/src/tests/generator.ts +127 -0
  268. package/src/tests/renderer.tsx +39 -0
  269. package/src/theming/index.ts +3 -2
  270. package/src/tools/conditional.test.ts +1 -1
  271. package/src/utils/toolset/interleave.test.ts +1 -1
@@ -1,5 +1,5 @@
1
1
  import { LabelHTMLAttributes, ReactNode } from 'react';
2
- import ColorScheme from "../utils/types/ColorScheme";
2
+ import type ColorScheme from "../utils/types/ColorScheme";
3
3
  export interface SelectionStyleProps {
4
4
  scale?: 'small' | 'default';
5
5
  scheme?: ColorScheme;
@@ -1,4 +1,4 @@
1
- import { HTMLAttributes, PropsWithChildren, ReactNode } from 'react';
1
+ import type { PropsWithChildren, HTMLAttributes, ReactNode } from 'react';
2
2
  export declare type AccordionToggleProps = {
3
3
  leading?: ReactNode | ((expanded: boolean) => ReactNode);
4
4
  trailing?: ReactNode | ((expanded: boolean) => ReactNode);
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { Meta } from '@storybook/react/types-6-0';
2
+ import type { Meta } from '@storybook/react/types-6-0';
3
3
  import type { AccordionProps } from './Accordion';
4
4
  declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
5
5
  export default _default;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { Meta } from '@storybook/react/types-6-0';
2
+ import type { Meta } from '@storybook/react/types-6-0';
3
3
  import type { BannerProps, BannerActionProps } from './Banner';
4
4
  declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
5
5
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { BreadcrumbsProps } from './Breadcrumbs';
2
- import { Story, Meta } from '@storybook/react/types-6-0';
2
+ import type { Story, Meta } from '@storybook/react/types-6-0';
3
3
  declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
4
4
  export default _default;
5
5
  export declare const Playground: Story<BreadcrumbsProps>;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { Meta } from '@storybook/react/types-6-0';
2
+ import type { Meta } from '@storybook/react/types-6-0';
3
3
  import type { BackButtonProps } from '../../common/BackButton';
4
4
  import type { ButtonProps } from './Button';
5
5
  import type { CloseButtonProps } from '../../common/CloseButton';
@@ -1,15 +1,10 @@
1
1
  /// <reference types="react" />
2
- import type { Meta } from '@storybook/react/types-6-0';
2
+ import type { Story, Meta } from '@storybook/react/types-6-0';
3
3
  import type { CalendarDate } from './Date.helper';
4
4
  import type { CalendarProps } from './Calendar.types';
5
5
  declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
6
6
  export default _default;
7
- export declare function Playground(args: CalendarProps): JSX.Element;
8
- export declare namespace Playground {
9
- var args: {
10
- mode: string;
11
- };
12
- }
7
+ export declare const Playground: Story<CalendarProps>;
13
8
  export declare function Selection(): JSX.Element;
14
9
  declare function isWeekend(date: CalendarDate): boolean;
15
10
  export declare function CalendarConstraints(args: CalendarProps): JSX.Element;
@@ -3,6 +3,8 @@ export declare type DateHelperOptions = {
3
3
  };
4
4
  export declare const DEFAULT_OPTIONS: DateHelperOptions;
5
5
  export declare type InputDate = string | number | Date;
6
+ declare type Unit = 'year' | 'month' | 'day' | 'hour' | 'minute' | 'second' | 'millisecond';
7
+ declare type Operator = '>=' | '>' | '=' | '<' | '<=';
6
8
  export declare type DateConstraint = InputDate | [InputDate, InputDate] | [null, InputDate] | [InputDate, null];
7
9
  export declare type FunctionConstraint = (day: CalendarDate) => boolean;
8
10
  export declare type CalendarConstraint = DateConstraint | FunctionConstraint;
@@ -72,42 +74,58 @@ export interface CalendarDate {
72
74
  * @returns {number}
73
75
  */
74
76
  getSeconds(): number;
77
+ /**
78
+ * Get the milliseconds value.
79
+ *
80
+ * [!] Be aware that it might be normalized to 12:00:00 (UTC), if you did not call the helper with
81
+ * `options.normalize: false`.
82
+ *
83
+ * @returns {number}
84
+ */
85
+ getMilliseconds(): number;
75
86
  /**
76
87
  * Check if the current date matches **at least one** of the provided constraints.
88
+ *
89
+ * [!] Be aware that all dates in this comparison will be normalized to 12:00:00 (UTC).
90
+ *
77
91
  * @param {...CalendarConstraint[]} constraintsArg
78
92
  * @returns {boolean}
79
93
  */
80
94
  matches(...constraints: CalendarConstraint[]): boolean;
81
95
  /**
82
- * Set the given `value` to the `key` property of this instance.
96
+ * Set the given `value` to the `unit` property of this instance.
83
97
  * This function mutates the internal date instance.
84
- * @param {('year' | 'month' | 'day')} key
98
+ * @param {Unit} unit
85
99
  * @param {number} value
86
100
  * @returns {CalendarDate}
87
101
  */
88
- set(key: 'year' | 'month' | 'day', value: number): CalendarDate;
102
+ set(unit: Unit, value: number): CalendarDate;
89
103
  /**
90
- * Return a copy of this instance, adding the given `value` to the `key` property.
91
- * @param {('year' | 'month' | 'day')} key
104
+ * Return a copy of this instance, adding the given `value` to the `unit` property.
105
+ * @param {Unit} unit
92
106
  * @param {number} value
93
107
  * @returns {CalendarDate}
94
108
  */
95
- add(key: 'year' | 'month' | 'day', value: number): CalendarDate;
109
+ add(unit: Unit, value: number): CalendarDate;
96
110
  /**
97
- * Return a copy of this instance, subtracting the given `value` from the `key` property.
98
- * @param {('year' | 'month' | 'day')} key
111
+ * Return a copy of this instance, subtracting the given `value` from the `unit` property.
112
+ * @param {Unit} unit
99
113
  * @param {number} value
100
114
  * @returns {CalendarDate}
101
115
  */
102
- subtract(key: 'year' | 'month' | 'day', value: number): CalendarDate;
116
+ subtract(unit: Unit, value: number): CalendarDate;
103
117
  /**
104
118
  * Compare this date with the given `other`.
105
- * @param {('>=' | '>' | '=' | '<' | '<=')} operator - type of comparison to be performed.
119
+ *
120
+ * [!] Be aware that it might be normalized to 12:00:00 (UTC), if you did not call the helper with
121
+ * `options.normalize: false`.
122
+ *
123
+ * @param {Operator} operator - type of comparison to be performed.
106
124
  * @param {CalendarDate} other - Other `CalendarDate` to compare with.
107
- * @param {('year' | 'month' | 'day')} [precision] - notice that the precision increases with the evaluated period, so year < month < day < hour < minute < second < millisecond. Default is 'day'.
125
+ * @param {Unit} [precision] - notice that the precision increases with the evaluated period, so year < month < day < hour < minute < second < millisecond. Default is 'day'.
108
126
  * @return {boolean} comparison result
109
127
  */
110
- is(operator: '>=' | '>' | '=' | '<' | '<=', other: CalendarDate, precision?: string): boolean;
128
+ is(operator: Operator, other: CalendarDate, precision?: string): boolean;
111
129
  /**
112
130
  * Return this date as a string value in ISO format.
113
131
  * @returns {string}
@@ -131,6 +149,23 @@ export declare type CalendarDateRange = [CalendarDate | null, CalendarDate | nul
131
149
  * @return {CalendarDate}
132
150
  */
133
151
  declare function DateHelper(dateArg?: InputDate, optionsArg?: DateHelperOptions): CalendarDate;
152
+ /**
153
+ * This method takes a date and a unit of precision and then normalizes the given date based on that precision.
154
+ * The return will be the timestamp of the normalized date
155
+ *
156
+ * @example
157
+ * ```js
158
+ * getComparableDate(new Date('2022-10-13T17:42:19.948Z'), 'hour')) // returns 1665680400000
159
+ *
160
+ * // '2022-10-13T17:42:19.948Z' will be normalized to '2022-10-13T17:00:00.000Z'
161
+ * // 1665680400000 is equal to: new Date('2022-10-13T17:00:00.000Z').getTime()
162
+ * ```
163
+ *
164
+ * @param {Date} date
165
+ * @param {Unit} precision
166
+ * @returns {number}
167
+ */
168
+ export declare function getComparableDate(date: Date, precision?: Unit): number;
134
169
  /**
135
170
  * Constraints represent ranges of dates, inclusive in both ends.
136
171
  * Returns an array representing the initial and final timestamps (after the transformations applied by `DateHelper`).
@@ -1,4 +1,4 @@
1
- import { Story, Meta } from '@storybook/react/types-6-0';
1
+ import type { Story, Meta } from '@storybook/react/types-6-0';
2
2
  import type { CardProps } from './Card';
3
3
  declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
4
4
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { InputHTMLAttributes, ReactNode } from 'react';
2
- import ColorScheme from "../../utils/types/ColorScheme";
2
+ import type ColorScheme from "../../utils/types/ColorScheme";
3
3
  import { SelectionStyleProps } from "../../common/SelectionWrapper";
4
4
  export interface CheckboxProps extends InputHTMLAttributes<HTMLInputElement>, SelectionStyleProps {
5
5
  leading?: ReactNode;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { CheckboxProps } from './Checkbox';
3
- import { Meta } from '@storybook/react/types-6-0';
3
+ import type { Meta } from '@storybook/react/types-6-0';
4
4
  declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
5
5
  export default _default;
6
6
  export declare function Playground(args: CheckboxProps): JSX.Element;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { Meta } from '@storybook/react/types-6-0';
2
+ import type { Meta } from '@storybook/react/types-6-0';
3
3
  import type { DialogProps } from './Dialog';
4
4
  declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
5
5
  export default _default;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { Meta } from '@storybook/react/types-6-0';
2
+ import type { Meta } from '@storybook/react/types-6-0';
3
3
  import type { DropZoneProps } from './types';
4
4
  declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
5
5
  export default _default;
@@ -1,4 +1,4 @@
1
- import { Story, Meta } from '@storybook/react/types-6-0';
1
+ import type { Story, Meta } from '@storybook/react/types-6-0';
2
2
  import type { DrawerProps } from './Drawer';
3
3
  declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
4
4
  export default _default;
@@ -1,8 +1,11 @@
1
- import { Story, Meta } from '@storybook/react/types-6-0';
1
+ import type { Story, Meta } from '@storybook/react/types-6-0';
2
2
  import type { DropdownProps, DropdownMenuProps, DropdownTriggerProps } from './Dropdown.types';
3
3
  declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
4
4
  export default _default;
5
- declare type DropdownStoryProps = DropdownProps & DropdownMenuProps & DropdownTriggerProps;
5
+ export declare type DropdownStoryProps = DropdownProps & {
6
+ align?: DropdownMenuProps['align'];
7
+ outlined?: DropdownTriggerProps['outlined'];
8
+ };
6
9
  export declare const Playground: Story<DropdownStoryProps>;
7
10
  export declare const WithSections: Story<DropdownStoryProps>;
8
11
  export declare const Extended: Story<DropdownStoryProps>;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { Meta } from '@storybook/react/types-6-0';
2
+ import type { Meta } from '@storybook/react/types-6-0';
3
3
  import type { EmptyStateProps, EmptyStateWithIllustrationProps, EmptyStateWithIconProps } from './EmptyState.types';
4
4
  declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
5
5
  export default _default;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { Meta } from '@storybook/react/types-6-0';
2
+ import type { Meta } from '@storybook/react/types-6-0';
3
3
  import { ErrorMessageProps } from './ErrorMessage';
4
4
  declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
5
5
  export default _default;
@@ -1,4 +1,4 @@
1
- import { Story, Meta } from '@storybook/react/types-6-0';
1
+ import type { Story, Meta } from '@storybook/react/types-6-0';
2
2
  import { HighlightMatchProps } from './HighlightMatch';
3
3
  declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
- import { Story, Meta } from '@storybook/react/types-6-0';
1
+ import type { Story, Meta } from '@storybook/react/types-6-0';
2
2
  import { icons } from './IconFactory.fixtures';
3
3
  import type { IconProps } from './IconFactory';
4
4
  declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
@@ -1,5 +1,5 @@
1
- import { LabelHTMLAttributes } from 'react';
2
- import ColorScheme from "../../utils/types/ColorScheme";
1
+ import type { LabelHTMLAttributes } from 'react';
2
+ import type ColorScheme from "../../utils/types/ColorScheme";
3
3
  declare type AcceptedType = 'label' | 'div' | 'span';
4
4
  interface WithAdditionalProps {
5
5
  as?: AcceptedType;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { LabelProps } from './Label';
3
- import { Meta } from '@storybook/react/types-6-0';
3
+ import type { Meta } from '@storybook/react/types-6-0';
4
4
  declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
5
5
  export default _default;
6
6
  export declare function Playground(args: LabelProps): JSX.Element;
@@ -1,4 +1,4 @@
1
- import { Spacing } from './Layout.types';
1
+ import type { Spacing } from './Layout.types';
2
2
  import type { HTMLAttributes } from 'react';
3
3
  export interface BoxProps extends HTMLAttributes<HTMLElement> {
4
4
  background?: 'transparent' | 'neutral-white' | 'neutral-lighter' | 'neutral-lightest';
@@ -1,4 +1,4 @@
1
- import { Spacing } from './Layout.types';
1
+ import type { Spacing } from './Layout.types';
2
2
  import type { HTMLAttributes } from 'react';
3
3
  export interface GridProps extends HTMLAttributes<HTMLElement> {
4
4
  space?: Spacing;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { Meta } from '@storybook/react/types-6-0';
2
+ import type { Meta } from '@storybook/react/types-6-0';
3
3
  import type { BoxProps } from './Box';
4
4
  import type { SidebarProps } from './Sidebar';
5
5
  import type { StackProps } from './Stack';
@@ -1,4 +1,4 @@
1
- import { Spacing } from './Layout.types';
1
+ import type { Spacing } from './Layout.types';
2
2
  import type { HTMLAttributes } from 'react';
3
3
  export interface SidebarProps extends HTMLAttributes<HTMLElement> {
4
4
  space?: Spacing;
@@ -1,4 +1,4 @@
1
- import { Spacing } from './Layout.types';
1
+ import type { Spacing } from './Layout.types';
2
2
  import type { HTMLAttributes } from 'react';
3
3
  export interface SwitcherProps extends HTMLAttributes<HTMLElement> {
4
4
  space?: Spacing;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { LinkProps } from './Link';
3
- import { Meta } from '@storybook/react/types-6-0';
3
+ import type { Meta } from '@storybook/react/types-6-0';
4
4
  declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
5
5
  export default _default;
6
6
  export declare function Playground(args: LinkProps): JSX.Element;
@@ -1,3 +1,3 @@
1
- import { AnchorHTMLAttributes } from 'react';
1
+ import type { AnchorHTMLAttributes } from 'react';
2
2
  declare function useSafeLink(props: AnchorHTMLAttributes<HTMLAnchorElement>): AnchorHTMLAttributes<HTMLAnchorElement>;
3
3
  export default useSafeLink;
@@ -1,5 +1,5 @@
1
- import { Story, Meta } from '@storybook/react/types-6-0';
2
- import { LoadingBarProps } from './LoadingBar';
1
+ import type { Story, Meta } from '@storybook/react/types-6-0';
2
+ import type { LoadingBarProps } from './LoadingBar';
3
3
  declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
4
4
  export default _default;
5
5
  export declare const Playground: Story<LoadingBarProps>;
@@ -1,4 +1,4 @@
1
- import { Story, Meta } from '@storybook/react/types-6-0';
1
+ import type { Story, Meta } from '@storybook/react/types-6-0';
2
2
  import { LoadingDotsProps } from './LoadingDots';
3
3
  declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
- import { Story, Meta } from '@storybook/react/types-6-0';
1
+ import type { Story, Meta } from '@storybook/react/types-6-0';
2
2
  import { SpinnerProps } from './Spinner';
3
3
  declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
4
4
  export default _default;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { Meta } from '@storybook/react/types-6-0';
2
+ import type { Meta } from '@storybook/react/types-6-0';
3
3
  import type { ModalProps } from './Modal';
4
4
  declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
5
5
  export default _default;
@@ -1,4 +1,4 @@
1
- import { Story, Meta } from '@storybook/react/types-6-0';
1
+ import type { Story, Meta } from '@storybook/react/types-6-0';
2
2
  import type { PaginationProps } from './Pagination.types';
3
3
  declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
4
4
  export default _default;
@@ -1,5 +1,5 @@
1
- import { HTMLAttributes } from 'react';
2
- import { ButtonProps } from "../Button";
1
+ import type { HTMLAttributes } from 'react';
2
+ import type { ButtonProps } from "../Button";
3
3
  export declare type PaginationProps = Omit<HTMLAttributes<HTMLElement>, 'onChange'> & {
4
4
  /**
5
5
  * Number of pages displayed before the ellipsis
@@ -1,4 +1,4 @@
1
- import { Story, Meta } from '@storybook/react/types-6-0';
1
+ import type { Story, Meta } from '@storybook/react/types-6-0';
2
2
  import type { PopoverProps } from './Popover';
3
3
  declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
4
4
  export default _default;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { ProgressBarProps } from './ProgressBar';
3
- import { Meta } from '@storybook/react/types-6-0';
3
+ import type { Meta } from '@storybook/react/types-6-0';
4
4
  import Status from "../../utils/types/Status";
5
5
  declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
6
6
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { InputHTMLAttributes, ReactNode } from 'react';
2
- import ColorScheme from "../../utils/types/ColorScheme";
2
+ import type ColorScheme from "../../utils/types/ColorScheme";
3
3
  import { SelectionStyleProps } from "../../common/SelectionWrapper";
4
4
  export interface RadioProps extends InputHTMLAttributes<HTMLInputElement>, SelectionStyleProps {
5
5
  leading?: ReactNode;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { RadioProps } from './Radio';
3
- import { Meta } from '@storybook/react/types-6-0';
3
+ import type { Meta } from '@storybook/react/types-6-0';
4
4
  declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
5
5
  export default _default;
6
6
  export declare function Playground(args: RadioProps): JSX.Element;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { Meta } from '@storybook/react/types-6-0';
2
+ import type { Meta } from '@storybook/react/types-6-0';
3
3
  import type { SectionProps } from './Section';
4
4
  declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
5
5
  export default _default;
@@ -1,4 +1,4 @@
1
- import { SelectableKeyType } from "../../hooks/useSelectable";
1
+ import type { SelectableKeyType } from "../../hooks/useSelectable";
2
2
  import type { SelectDatasource } from './Select.types';
3
3
  export declare type Fruit = {
4
4
  label: string;
@@ -1,4 +1,4 @@
1
- import { Story, Meta } from '@storybook/react/types-6-0';
1
+ import type { Story, Meta } from '@storybook/react/types-6-0';
2
2
  import type { SelectProps } from './Select.types';
3
3
  declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
4
4
  export default _default;
@@ -1,8 +1,8 @@
1
- import EventLike from "../../utils/types/EventLike";
1
+ import type EventLike from "../../utils/types/EventLike";
2
2
  import type { DropdownMenuItemProps, DropdownProps } from "../Dropdown";
3
3
  import type { TextFieldProps } from "../TextField";
4
4
  import type { Selectable, SelectableAdapter, SelectableKeyType, SelectableState } from "../../hooks/useSelectable";
5
- import { useSelectableReturn } from "../../hooks/useSelectable/useSelectable.types";
5
+ import type { useSelectableReturn } from "../../hooks/useSelectable/useSelectable.types";
6
6
  import type { ChangeEvent, ComponentType, FocusEvent, HTMLAttributes } from 'react';
7
7
  export declare type Option = Selectable;
8
8
  export interface GenericOption {
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { SelectCreatableOptionProps } from './Select.types';
2
+ import type { SelectCreatableOptionProps } from './Select.types';
3
3
  declare function SelectCreatableOption({ children, ...rest }: SelectCreatableOptionProps): JSX.Element;
4
4
  export default SelectCreatableOption;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { SelectEmptyProps } from './Select.types';
2
+ import type { SelectEmptyProps } from './Select.types';
3
3
  declare function SelectEmpty({ children, ...others }: SelectEmptyProps): JSX.Element;
4
4
  export default SelectEmpty;
@@ -1,2 +1,2 @@
1
- import { Components } from './Select.types';
1
+ import type { Components } from './Select.types';
2
2
  export declare function getComponents(components?: Components): Required<Components>;
@@ -1,2 +1,2 @@
1
- import { useSelectExternalReturn } from './Select.types';
1
+ import type { useSelectExternalReturn } from './Select.types';
2
2
  export declare function useSelectExternal(): useSelectExternalReturn;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { Meta } from '@storybook/react/types-6-0';
2
+ import type { Meta } from '@storybook/react/types-6-0';
3
3
  import type { SideNavigationProps } from './SideNavigation';
4
4
  declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
5
5
  export default _default;
@@ -1,4 +1,4 @@
1
- import { PropsWithChildren } from 'react';
1
+ import type { PropsWithChildren } from 'react';
2
2
  import StepsStep from './StepsStep';
3
3
  import type ColorScheme from "../../utils/types/ColorScheme";
4
4
  import type { Step } from './Steps.types';
@@ -1,4 +1,4 @@
1
- import { Story, Meta } from '@storybook/react/types-6-0';
1
+ import type { Story, Meta } from '@storybook/react/types-6-0';
2
2
  import type { StepsProps } from './Steps';
3
3
  declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
- import { PropsWithChildren } from 'react';
1
+ import type { PropsWithChildren } from 'react';
2
2
  export interface StepsStepProps {
3
3
  id: number | string;
4
4
  className?: string;
@@ -1,4 +1,4 @@
1
- import { Story, Meta } from '@storybook/react/types-6-0';
1
+ import type { Story, Meta } from '@storybook/react/types-6-0';
2
2
  import { SwitchProps } from './Switch';
3
3
  declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
4
4
  export default _default;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { Meta } from '@storybook/react/types-6-0';
2
+ import type { Meta } from '@storybook/react/types-6-0';
3
3
  import type { TableProps } from './Table.types';
4
4
  declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
5
5
  export default _default;
@@ -1,6 +1,5 @@
1
- import { Selectable } from "../../hooks/useSelectable";
2
- import type { ComponentType, HTMLAttributes, PropsWithChildren, ReactNode } from 'react';
3
- import React from 'react';
1
+ import type { Selectable } from "../../hooks/useSelectable";
2
+ import type { ComponentType, HTMLAttributes, PropsWithChildren, ReactNode, ReactElement } from 'react';
4
3
  import type { DropdownMenuItemProps, DropdownMenuProps } from "../Dropdown";
5
4
  import type { DropdownTriggerButtonProps } from "../Dropdown/DropdownTrigger";
6
5
  import type { TableSelectableRow, TableSelectionConfig } from './Selection';
@@ -23,7 +22,7 @@ export interface SelectionCellProps<T extends Selectable = TableSelectableRow> e
23
22
  children?: (props: {
24
23
  selected: boolean;
25
24
  toggle: () => void;
26
- }) => React.ReactElement;
25
+ }) => ReactElement;
27
26
  }
28
27
  export interface TableSectionProps extends HTMLAttributes<HTMLTableSectionElement> {
29
28
  scale?: Scale;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { SortDirection } from './useSortBy.types';
2
+ import type { SortDirection } from './useSortBy.types';
3
3
  import type { BoxProps } from "../Layout/Box";
4
4
  interface TableSortHandleProps extends BoxProps {
5
5
  order?: SortDirection | null;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { RowsPerPageProps } from './TablePagination.types';
2
+ import type { RowsPerPageProps } from './TablePagination.types';
3
3
  declare function RowsPerPage({ page, rowsPerPage, onRowsPerPageChange, labelRowsPerPage, count, rowsPerPageOptions, disabled, }: RowsPerPageProps): JSX.Element;
4
4
  export default RowsPerPage;
@@ -1,4 +1,4 @@
1
- import { Meta, Story } from '@storybook/react/types-6-0';
1
+ import type { Meta, Story } from '@storybook/react/types-6-0';
2
2
  import type { TablePaginationProps } from './TablePagination.types';
3
3
  declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
- import { GroupProps } from "../Layout/Group";
1
+ import type { GroupProps } from "../Layout/Group";
2
2
  export interface TablePaginationProps extends GroupProps {
3
3
  /**
4
4
  * The pagination variant
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { TablePaginationActionsProps } from "./TablePagination.types";
2
+ import type { TablePaginationActionsProps } from "./TablePagination.types";
3
3
  import { IconProps } from "../Icon";
4
4
  export declare const ActionIcon: import("styled-components").StyledComponent<(props: import("../IconFactory").IconProps<import("../IconFactory").IconMapping>) => JSX.Element, any, {
5
5
  color: "neutral-darker";
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { TagProps } from './Tag';
3
- import { Meta } from '@storybook/react/types-6-0';
3
+ import type { Meta } from '@storybook/react/types-6-0';
4
4
  declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
5
5
  export default _default;
6
6
  export declare function Default(args: TagProps): JSX.Element;
@@ -1,4 +1,4 @@
1
- import { PropsWithChildren } from 'react';
1
+ import type { PropsWithChildren } from 'react';
2
2
  import { TypographyOptions, TypographyVariants } from "../../styles/typography";
3
3
  export declare type TextProps = PropsWithChildren<{
4
4
  variant?: TypographyVariants;
@@ -1,4 +1,4 @@
1
- import { Story, Meta } from '@storybook/react/types-6-0';
1
+ import type { Story, Meta } from '@storybook/react/types-6-0';
2
2
  import type { TextProps } from './Text';
3
3
  declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
4
4
  export default _default;