@loadsmart/loadsmart-ui 8.0.0 → 8.0.1

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 (184) hide show
  1. package/dist/DragDropFile.context-oKnUu6d3.js.map +1 -1
  2. package/dist/common/BackButton/BackButton.d.ts +2 -1
  3. package/dist/common/CloseButton/CloseButton.d.ts +3 -2
  4. package/dist/common/SelectionWrapper.d.ts +8 -8
  5. package/dist/components/Accordion/Accordion.context.d.ts +6 -6
  6. package/dist/components/Accordion/Accordion.d.ts +11 -11
  7. package/dist/components/Accordion/Accordion.stories.d.ts +5 -4
  8. package/dist/components/Banner/Banner.d.ts +14 -14
  9. package/dist/components/Banner/Banner.stories.d.ts +11 -11
  10. package/dist/components/Breadcrumbs/Breadcrumb.d.ts +5 -5
  11. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +6 -6
  12. package/dist/components/Button/Button.d.ts +8 -8
  13. package/dist/components/Button/Button.stories.d.ts +7 -7
  14. package/dist/components/Calendar/Calendar.d.ts +3 -2
  15. package/dist/components/Calendar/Calendar.stories.d.ts +3 -2
  16. package/dist/components/Calendar/Calendar.types.d.ts +4 -4
  17. package/dist/components/Calendar/Date.helper.d.ts +27 -54
  18. package/dist/components/Calendar/DateFormat.helper.d.ts +1 -3
  19. package/dist/components/Calendar/Month.helper.d.ts +5 -5
  20. package/dist/components/Calendar/PickerModeToggle.d.ts +2 -1
  21. package/dist/components/Calendar/Pickers/DayPicker.d.ts +2 -1
  22. package/dist/components/Calendar/Pickers/MonthPicker.d.ts +2 -1
  23. package/dist/components/Calendar/Pickers/YearPicker.d.ts +2 -1
  24. package/dist/components/Calendar/useCalendar.d.ts +4 -9
  25. package/dist/components/Card/Card.d.ts +5 -5
  26. package/dist/components/Card/CardTitle.d.ts +3 -3
  27. package/dist/components/Checkbox/Checkbox.d.ts +6 -6
  28. package/dist/components/Checkbox/Checkbox.stories.d.ts +2 -1
  29. package/dist/components/DatePicker/DatePicker.d.ts +2 -2
  30. package/dist/components/DatePicker/DatePicker.stories.d.ts +2 -1
  31. package/dist/components/DatePicker/DateRangePicker.d.ts +2 -1
  32. package/dist/components/DatePicker/DateRangePicker.stories.d.ts +2 -1
  33. package/dist/components/Dialog/Dialog.d.ts +13 -13
  34. package/dist/components/Dialog/Dialog.stories.d.ts +10 -9
  35. package/dist/components/DragDropFile/DragDropFile.context.d.ts +1 -1
  36. package/dist/components/DragDropFile/DragDropFile.d.ts +2 -2
  37. package/dist/components/DragDropFile/DragDropFile.stories.d.ts +5 -4
  38. package/dist/components/DragDropFile/components/DropZone.d.ts +2 -1
  39. package/dist/components/DragDropFile/components/FileItem.d.ts +2 -1
  40. package/dist/components/DragDropFile/components/FileList.d.ts +2 -1
  41. package/dist/components/DragDropFile/types.d.ts +4 -4
  42. package/dist/components/Drawer/Drawer.d.ts +7 -7
  43. package/dist/components/Dropdown/Dropdown.d.ts +2 -5
  44. package/dist/components/Dropdown/Dropdown.types.d.ts +1 -1
  45. package/dist/components/Dropdown/DropdownMenu.d.ts +2 -2
  46. package/dist/components/Dropdown/DropdownTrigger.d.ts +9 -9
  47. package/dist/components/EmptyState/EmptyState.d.ts +1 -1
  48. package/dist/components/EmptyState/EmptyState.stories.d.ts +8 -7
  49. package/dist/components/EmptyState/EmptyState.types.d.ts +2 -2
  50. package/dist/components/EmptyState/index.d.ts +1 -1
  51. package/dist/components/ErrorMessage/ErrorMessage.stories.d.ts +3 -2
  52. package/dist/components/HighlightMatch/HighlightMatch.d.ts +4 -4
  53. package/dist/components/IconFactory/IconFactory.d.ts +8 -8
  54. package/dist/components/IconFactory/IconFactory.fixtures.d.ts +6 -6
  55. package/dist/components/Label/Label.d.ts +9 -9
  56. package/dist/components/Label/Label.stories.d.ts +2 -1
  57. package/dist/components/Layout/Box.d.ts +8 -9
  58. package/dist/components/Layout/Grid.d.ts +4 -5
  59. package/dist/components/Layout/Group.d.ts +5 -6
  60. package/dist/components/Layout/Layout.stories.d.ts +8 -7
  61. package/dist/components/Layout/Sidebar.d.ts +6 -7
  62. package/dist/components/Layout/Stack.d.ts +5 -6
  63. package/dist/components/Layout/Switcher.d.ts +5 -6
  64. package/dist/components/Link/Link.d.ts +3 -3
  65. package/dist/components/Link/Link.stories.d.ts +2 -1
  66. package/dist/components/Loaders/LoadingBar.d.ts +6 -6
  67. package/dist/components/Loaders/LoadingDots.d.ts +4 -3
  68. package/dist/components/Loaders/Spinner.d.ts +4 -3
  69. package/dist/components/Modal/Modal.d.ts +3 -3
  70. package/dist/components/Modal/Modal.stories.d.ts +4 -3
  71. package/dist/components/Pagination/Pagination.d.ts +2 -1
  72. package/dist/components/Pagination/Pagination.types.d.ts +4 -4
  73. package/dist/components/Pagination/PaginationItem.d.ts +2 -1
  74. package/dist/components/Popover/Popover.d.ts +4 -3
  75. package/dist/components/ProgressBar/ProgressBar.d.ts +6 -6
  76. package/dist/components/ProgressBar/ProgressBar.stories.d.ts +2 -1
  77. package/dist/components/Radio/Radio.d.ts +6 -6
  78. package/dist/components/Radio/Radio.stories.d.ts +2 -1
  79. package/dist/components/Section/Section.d.ts +4 -4
  80. package/dist/components/Section/Sections.stories.d.ts +2 -1
  81. package/dist/components/Select/Select.d.ts +1 -1
  82. package/dist/components/Select/Select.fixtures.d.ts +4 -4
  83. package/dist/components/Select/Select.types.d.ts +14 -14
  84. package/dist/components/Select/SelectCreatableOption.d.ts +2 -1
  85. package/dist/components/Select/SelectEmpty.d.ts +2 -1
  86. package/dist/components/Select/SelectOption.d.ts +2 -1
  87. package/dist/components/Select/useSelect.d.ts +0 -2
  88. package/dist/components/SideNavigation/Logo/Logo.d.ts +4 -4
  89. package/dist/components/SideNavigation/Menu/Menu.d.ts +5 -5
  90. package/dist/components/SideNavigation/Menu/MenuBaseItem.d.ts +7 -7
  91. package/dist/components/SideNavigation/Menu/MenuExpandable.d.ts +3 -3
  92. package/dist/components/SideNavigation/Menu/MenuLink.d.ts +5 -5
  93. package/dist/components/SideNavigation/Separator/Separator.d.ts +3 -2
  94. package/dist/components/SideNavigation/SideNavigation.d.ts +13 -13
  95. package/dist/components/SideNavigation/SideNavigation.stories.d.ts +2 -1
  96. package/dist/components/Steps/ProgressSteps/ProgressStep.d.ts +5 -5
  97. package/dist/components/Steps/ProgressSteps/ProgressSteps.d.ts +4 -3
  98. package/dist/components/Steps/Steps.d.ts +7 -7
  99. package/dist/components/Steps/Steps.types.d.ts +2 -2
  100. package/dist/components/Steps/StepsStep.d.ts +4 -4
  101. package/dist/components/Steps/useSteps.d.ts +2 -2
  102. package/dist/components/Switch/Switch.d.ts +6 -6
  103. package/dist/components/Table/Selection.d.ts +5 -5
  104. package/dist/components/Table/Table.d.ts +14 -13
  105. package/dist/components/Table/Table.stories.d.ts +7 -6
  106. package/dist/components/Table/Table.types.d.ts +5 -5
  107. package/dist/components/Table/TableSortHandle.d.ts +3 -2
  108. package/dist/components/Table/useSortBy.d.ts +3 -3
  109. package/dist/components/TablePagination/RowsPerPage.d.ts +2 -1
  110. package/dist/components/TablePagination/TablePagination.d.ts +2 -1
  111. package/dist/components/TablePagination/TablePaginationActions.d.ts +1 -1
  112. package/dist/components/Tabs/Tabs.d.ts +10 -10
  113. package/dist/components/Tabs/Tabs.stories.d.ts +3 -2
  114. package/dist/components/Tag/Tag.d.ts +11 -11
  115. package/dist/components/Tag/Tag.stories.d.ts +5 -5
  116. package/dist/components/TextField/TextField.d.ts +7 -7
  117. package/dist/components/TextField/TextField.stories.d.ts +2 -1
  118. package/dist/components/Textarea/Textarea.d.ts +7 -7
  119. package/dist/components/Textarea/Textarea.stories.d.ts +2 -1
  120. package/dist/components/Toast/Toast.d.ts +7 -7
  121. package/dist/components/Toast/Toast.stories.d.ts +2 -1
  122. package/dist/components/ToggleGroup/Toggle.d.ts +2 -1
  123. package/dist/components/ToggleGroup/ToggleGroup.d.ts +3 -2
  124. package/dist/components/Tooltip/Tooltip.d.ts +6 -6
  125. package/dist/components/Tooltip/Tooltip.stories.d.ts +4 -3
  126. package/dist/components/TopNavigation/Logo/Logo.d.ts +4 -4
  127. package/dist/components/TopNavigation/Menu/Menu.d.ts +7 -7
  128. package/dist/components/TopNavigation/Menu/MenuItemDropdown.d.ts +8 -8
  129. package/dist/components/TopNavigation/Menu/MenuItemIcon.d.ts +7 -7
  130. package/dist/components/TopNavigation/OpenSideNavButton/OpenSideNavButton.d.ts +6 -5
  131. package/dist/components/TopNavigation/TopNavigation.d.ts +5 -5
  132. package/dist/components/TopNavigation/TopNavigation.stories.d.ts +2 -1
  133. package/dist/components/VisuallyHidden/VisuallyHidden.stories.d.ts +2 -1
  134. package/dist/hooks/useDidMount/useDidMount.d.ts +1 -1
  135. package/dist/hooks/useFingerprint/useFingerprint.d.ts +0 -1
  136. package/dist/hooks/useFocusTrap/useFocusTrap.d.ts +7 -8
  137. package/dist/hooks/useFocusWithin/useFocusWithin.d.ts +1 -1
  138. package/dist/hooks/useHeightExpansionToggler/useHeightExpansionToggler.d.ts +3 -3
  139. package/dist/hooks/useSelectable/SelectableStrategy.d.ts +4 -4
  140. package/dist/hooks/useSelectable/useSelectable.types.d.ts +2 -2
  141. package/dist/index.js +316 -257
  142. package/dist/index.js.map +1 -1
  143. package/dist/{miranda-compatibility.theme-kYNEZ7mW.js → miranda-compatibility.theme-CIu9fa89.js} +2 -2
  144. package/dist/miranda-compatibility.theme-CIu9fa89.js.map +1 -0
  145. package/dist/{prop-K2Z3EsyG.js → prop-Fs2axl9W.js} +12 -18
  146. package/dist/prop-Fs2axl9W.js.map +1 -0
  147. package/dist/styles/activatable.d.ts +2 -3
  148. package/dist/styles/disableable.d.ts +3 -3
  149. package/dist/styles/ellipsizable.d.ts +1 -2
  150. package/dist/styles/focusable.d.ts +3 -3
  151. package/dist/styles/font.d.ts +0 -1
  152. package/dist/styles/hidden.d.ts +1 -2
  153. package/dist/styles/hoverable.d.ts +3 -3
  154. package/dist/styles/transition.d.ts +0 -1
  155. package/dist/styles/typography.d.ts +6 -7
  156. package/dist/testing/DatePickerEvent/DatePickerEvent.d.ts +7 -12
  157. package/dist/testing/DatePickerEvent/DateRangePickerEvent.d.ts +7 -12
  158. package/dist/testing/SelectEvent/SelectEvent.d.ts +11 -19
  159. package/dist/testing/getInterpolatedStyles/getInterpolatedStyles.d.ts +2 -2
  160. package/dist/testing/index.js +7 -9
  161. package/dist/testing/index.js.map +1 -1
  162. package/dist/tests/generator.d.ts +2 -2
  163. package/dist/tests/renderer.d.ts +5 -4
  164. package/dist/theming/index.d.ts +3 -3
  165. package/dist/theming/index.js +2 -2
  166. package/dist/theming/index.js.map +1 -1
  167. package/dist/theming/theming.helpers.d.ts +2 -2
  168. package/dist/toArray-BJJzFRD1.js +13 -0
  169. package/dist/toArray-BJJzFRD1.js.map +1 -0
  170. package/dist/tools/conditional.d.ts +3 -3
  171. package/dist/tools/index.js +1 -1
  172. package/dist/tools/prop.d.ts +1 -1
  173. package/dist/utils/toolset/getID.d.ts +0 -6
  174. package/dist/utils/toolset/highlightMatch.d.ts +5 -6
  175. package/dist/utils/toolset/keyboard.d.ts +3 -4
  176. package/dist/utils/toolset/toArray.d.ts +7 -1
  177. package/package.json +53 -56
  178. package/dist/miranda-compatibility.theme-kYNEZ7mW.js.map +0 -1
  179. package/dist/prop-K2Z3EsyG.js.map +0 -1
  180. package/dist/toArray-Dxb1kUxx.js +0 -14
  181. package/dist/toArray-Dxb1kUxx.js.map +0 -1
  182. package/dist/utils/toolset/flatten.d.ts +0 -2
  183. package/dist/utils/toolset/isThenable.d.ts +0 -5
  184. package/dist/utils/toolset/isThenable.test.d.ts +0 -1
@@ -1,3 +1,4 @@
1
+ import { default as React } from 'react';
1
2
  import { SelectOptionProps } from './Select.types';
2
- declare function SelectOption({ children, value, leading, trailing, ...rest }: SelectOptionProps): JSX.Element;
3
+ declare function SelectOption({ children, value, leading, trailing, ...rest }: SelectOptionProps): React.JSX.Element;
3
4
  export default SelectOption;
@@ -1,8 +1,6 @@
1
1
  import { SelectProps, useSelectReturn } from './Select.types';
2
2
  /**
3
3
  * Based on https://www.w3.org/TR/wai-aria-practices-1.1/examples/combobox/aria1.1pattern/listbox-combo.html
4
- * @param props
5
- * @returns
6
4
  */
7
5
  declare function useSelect(props: SelectProps): useSelectReturn;
8
6
  export default useSelect;
@@ -1,8 +1,8 @@
1
- import { PropsWithChildren } from 'react';
1
+ import { default as React, PropsWithChildren } from 'react';
2
2
  export type LogoProps = PropsWithChildren<{
3
- url: string;
4
- className?: string;
3
+ readonly url: string;
4
+ readonly className?: string;
5
5
  }>;
6
- declare function Logo({ className, url, children }: LogoProps): JSX.Element;
6
+ declare function Logo({ className, url, children }: LogoProps): React.JSX.Element;
7
7
  declare const _default: import('styled-components').StyledComponent<typeof Logo, any, LogoProps, never>;
8
8
  export default _default;
@@ -1,16 +1,16 @@
1
- import { default as React, PropsWithChildren } from 'react';
1
+ import { PropsWithChildren, default as React } from 'react';
2
2
  import { MenuExpandableProps } from './MenuExpandable';
3
3
  import { MenuLinkProps } from './MenuLink';
4
4
  export interface MenuProps extends React.HTMLAttributes<HTMLDivElement> {
5
- label?: string;
5
+ readonly label?: string;
6
6
  }
7
- declare function Menu({ label, children, ...props }: MenuProps): JSX.Element;
7
+ declare function Menu({ label, children, ...props }: MenuProps): React.JSX.Element;
8
8
  type MenuItemProps = {
9
- active?: boolean;
9
+ readonly active?: boolean;
10
10
  } & PropsWithChildren<MenuLinkProps & MenuExpandableProps>;
11
11
  declare function MenuItem(props: MenuItemProps): React.JSX.Element;
12
12
  declare const _default: string & import('styled-components').StyledComponentBase<typeof Menu, any, {}, never> & import('hoist-non-react-statics').NonReactStatics<typeof Menu, {}> & {
13
13
  Item: typeof MenuItem;
14
- SubItem: import('styled-components').StyledComponent<({ url, ...props }: MenuLinkProps) => JSX.Element, any, {}, never>;
14
+ SubItem: import('styled-components').StyledComponent<({ url, ...props }: MenuLinkProps) => React.JSX.Element, any, {}, never>;
15
15
  };
16
16
  export default _default;
@@ -1,11 +1,11 @@
1
- import { ReactNode, HTMLAttributes } from 'react';
1
+ import { default as React, ReactNode, HTMLAttributes } from 'react';
2
2
  import { MenuLinkProps } from './MenuLink';
3
3
  export type MenuBaseItemProps = HTMLAttributes<HTMLElement> & {
4
- label: string;
5
- leading?: ReactNode;
6
- trailing?: ReactNode;
7
- url?: string;
8
- subItems?: MenuLinkProps[];
4
+ readonly label: string;
5
+ readonly leading?: ReactNode;
6
+ readonly trailing?: ReactNode;
7
+ readonly url?: string;
8
+ readonly subItems?: MenuLinkProps[];
9
9
  };
10
- declare function MenuBaseItem({ label, leading, trailing, ...props }: MenuBaseItemProps): JSX.Element;
10
+ declare function MenuBaseItem({ label, leading, trailing, ...props }: MenuBaseItemProps): React.JSX.Element;
11
11
  export default MenuBaseItem;
@@ -1,6 +1,6 @@
1
- import { PropsWithChildren, HTMLAttributes } from 'react';
1
+ import { default as React, PropsWithChildren, HTMLAttributes } from 'react';
2
2
  export type MenuExpandableProps = HTMLAttributes<HTMLDivElement> & PropsWithChildren<{
3
- label: string;
3
+ readonly label: string;
4
4
  }>;
5
- declare function MenuExpandable({ label, children, ...props }: MenuExpandableProps): JSX.Element;
5
+ declare function MenuExpandable({ label, children, ...props }: MenuExpandableProps): React.JSX.Element;
6
6
  export default MenuExpandable;
@@ -1,10 +1,10 @@
1
1
  import { default as React, ReactNode } from 'react';
2
2
  export type MenuLinkProps = React.HTMLAttributes<HTMLAnchorElement> & {
3
- label: string;
4
- leading?: ReactNode;
5
- trailing?: ReactNode;
6
- url?: string;
3
+ readonly label: string;
4
+ readonly leading?: ReactNode;
5
+ readonly trailing?: ReactNode;
6
+ readonly url?: string;
7
7
  };
8
- declare function MenuLink({ url, ...props }: MenuLinkProps): JSX.Element;
8
+ declare function MenuLink({ url, ...props }: MenuLinkProps): React.JSX.Element;
9
9
  declare const _default: import('styled-components').StyledComponent<typeof MenuLink, any, {}, never>;
10
10
  export default _default;
@@ -1,5 +1,6 @@
1
+ import { default as React } from 'react';
1
2
  export interface SeparatorProps {
2
- className?: string;
3
+ readonly className?: string;
3
4
  }
4
- declare function Separator(props: SeparatorProps): JSX.Element;
5
+ declare function Separator(props: SeparatorProps): React.JSX.Element;
5
6
  export default Separator;
@@ -1,26 +1,26 @@
1
1
  import { CloseButtonProps } from '../../common/CloseButton';
2
- import { default as React, ReactNode } from 'react';
2
+ import { ReactNode, default as React } from 'react';
3
3
  export interface SideNavigationProps {
4
- className?: string;
5
- children: ReactNode;
4
+ readonly className?: string;
5
+ readonly children: ReactNode;
6
6
  }
7
- declare function SideNavigation({ className, children }: SideNavigationProps): JSX.Element;
7
+ declare function SideNavigation({ className, children }: SideNavigationProps): React.JSX.Element;
8
8
  declare namespace SideNavigation {
9
- var Logo: import("styled-components").StyledComponent<({ className, url, children }: import("./Logo/Logo").LogoProps) => JSX.Element, any, import("./Logo/Logo").LogoProps, never>;
10
- var Menu: string & import("styled-components").StyledComponentBase<({ label, children, ...props }: import("./Menu/Menu").MenuProps) => JSX.Element, any, {}, never> & import("hoist-non-react-statics").NonReactStatics<({ label, children, ...props }: import("./Menu/Menu").MenuProps) => JSX.Element, {}> & {
9
+ var Logo: import("styled-components").StyledComponent<({ className, url, children }: import("./Logo/Logo").LogoProps) => React.JSX.Element, any, import("./Logo/Logo").LogoProps, never>;
10
+ var Menu: string & import("styled-components").StyledComponentBase<({ label, children, ...props }: import("./Menu/Menu").MenuProps) => React.JSX.Element, any, {}, never> & import("hoist-non-react-statics").NonReactStatics<({ label, children, ...props }: import("./Menu/Menu").MenuProps) => React.JSX.Element, {}> & {
11
11
  Item: (props: {
12
- active?: boolean;
12
+ readonly active?: boolean;
13
13
  } & React.HTMLAttributes<HTMLAnchorElement> & {
14
- label: string;
15
- leading?: ReactNode;
16
- trailing?: ReactNode;
17
- url?: string;
14
+ readonly label: string;
15
+ readonly leading?: ReactNode;
16
+ readonly trailing?: ReactNode;
17
+ readonly url?: string;
18
18
  } & React.HTMLAttributes<HTMLDivElement> & {
19
- label: string;
19
+ readonly label: string;
20
20
  } & {
21
21
  children?: ReactNode | undefined;
22
22
  }) => React.JSX.Element;
23
- SubItem: import("styled-components").StyledComponent<({ url, ...props }: import("./Menu/MenuLink").MenuLinkProps) => JSX.Element, any, {}, never>;
23
+ SubItem: import("styled-components").StyledComponent<({ url, ...props }: import("./Menu/MenuLink").MenuLinkProps) => React.JSX.Element, any, {}, never>;
24
24
  };
25
25
  var Separator: typeof import("./Separator").Separator;
26
26
  var CloseButton: import("styled-components").StyledComponent<typeof import("common/CloseButton").default, any, CloseButtonProps, never>;
@@ -1,5 +1,6 @@
1
+ import { default as React } from 'react';
1
2
  import { Meta } from '@storybook/react';
2
3
  import { SideNavigationProps } from './SideNavigation';
3
4
  declare const _default: Meta;
4
5
  export default _default;
5
- export declare function Playground(args: SideNavigationProps): JSX.Element;
6
+ export declare function Playground(args: SideNavigationProps): React.JSX.Element;
@@ -1,12 +1,12 @@
1
- import { ReactNode } from 'react';
1
+ import { ReactNode, default as React } from 'react';
2
2
  import { Step } from '../Steps.types';
3
3
  export interface StepsProgressProps {
4
4
  steps: Array<Step>;
5
5
  current: number | string;
6
6
  }
7
7
  declare function ProgressStep(props: {
8
- step: Step;
9
- current: boolean;
10
- indicator: ReactNode;
11
- }): JSX.Element;
8
+ readonly step: Step;
9
+ readonly current: boolean;
10
+ readonly indicator: ReactNode;
11
+ }): React.JSX.Element;
12
12
  export default ProgressStep;
@@ -1,7 +1,8 @@
1
+ import { default as React } from 'react';
1
2
  import { Step } from '../Steps.types';
2
3
  export interface StepsProgressProps {
3
- steps: Array<Step>;
4
- current: number | string;
4
+ readonly steps: Array<Step>;
5
+ readonly current: number | string;
5
6
  }
6
- declare function StepsProgress(props: StepsProgressProps): JSX.Element;
7
+ declare function StepsProgress(props: StepsProgressProps): React.JSX.Element;
7
8
  export default StepsProgress;
@@ -1,15 +1,15 @@
1
- import { PropsWithChildren } from 'react';
1
+ import { default as React, PropsWithChildren } from 'react';
2
2
  import { default as StepsStep } from './StepsStep';
3
3
  import { default as ColorScheme } from '../../utils/types/ColorScheme';
4
4
  import { Step } from './Steps.types';
5
5
  export interface StepsProps {
6
- current: number | string;
7
- id: number | string;
8
- steps: Array<Step>;
9
- className?: string;
10
- scheme?: ColorScheme;
6
+ readonly current: number | string;
7
+ readonly id: number | string;
8
+ readonly steps: Array<Step>;
9
+ readonly className?: string;
10
+ readonly scheme?: ColorScheme;
11
11
  }
12
- declare function Steps({ id, children, current, steps, ...others }: PropsWithChildren<StepsProps>): JSX.Element;
12
+ declare function Steps({ id, children, current, steps, ...others }: PropsWithChildren<StepsProps>): React.JSX.Element;
13
13
  declare namespace Steps {
14
14
  var Step: typeof StepsStep;
15
15
  }
@@ -1,5 +1,5 @@
1
- export type Step = {
1
+ export interface Step {
2
2
  id: number | string;
3
3
  label: string;
4
4
  complete: boolean;
5
- };
5
+ }
@@ -1,8 +1,8 @@
1
- import { PropsWithChildren } from 'react';
1
+ import { default as React, PropsWithChildren } from 'react';
2
2
  export interface StepsStepProps {
3
- id: number | string;
4
- className?: string;
3
+ readonly id: number | string;
4
+ readonly className?: string;
5
5
  }
6
6
  export declare const StepWrapper: import('styled-components').StyledComponent<"article", any, import('../../theming').ThemedProps, never>;
7
- declare function StepsStep({ children, id, ...others }: PropsWithChildren<StepsStepProps>): JSX.Element;
7
+ declare function StepsStep({ children, id, ...others }: PropsWithChildren<StepsStepProps>): React.JSX.Element;
8
8
  export default StepsStep;
@@ -4,10 +4,10 @@ export interface useStepsProps {
4
4
  steps: Array<Step>;
5
5
  current?: number | string;
6
6
  }
7
- type State = {
7
+ interface State {
8
8
  current: number | string;
9
9
  steps: Array<Step>;
10
- };
10
+ }
11
11
  type Action = {
12
12
  type: 'navigate';
13
13
  payload: {
@@ -1,11 +1,11 @@
1
- import { ChangeEvent, InputHTMLAttributes } from 'react';
1
+ import { ChangeEvent, InputHTMLAttributes, default as React } from 'react';
2
2
  interface WithAdditionalProps {
3
- active?: boolean;
4
- onToggle?: (event: ChangeEvent<HTMLInputElement>) => void;
5
- scale?: 'default' | 'large';
3
+ readonly active?: boolean;
4
+ readonly onToggle?: (event: ChangeEvent<HTMLInputElement>) => void;
5
+ readonly scale?: 'default' | 'large';
6
6
  }
7
7
  export interface SwitchProps extends InputHTMLAttributes<HTMLInputElement>, WithAdditionalProps {
8
- className?: string;
8
+ readonly className?: string;
9
9
  }
10
- declare function Switch({ active, className, disabled, name, onToggle, scale, ...others }: SwitchProps): JSX.Element;
10
+ declare function Switch({ active, className, disabled, name, onToggle, scale, ...others }: SwitchProps): React.JSX.Element;
11
11
  export default Switch;
@@ -20,15 +20,15 @@ export interface TableSelectionCore<T extends Selectable = TableSelectableRow> {
20
20
  export declare function useTableSelectionCore<T extends Selectable>(config?: TableSelectionConfig<T>): TableSelectionCore<T>;
21
21
  export declare const TableSelectionContext: React.Context<TableSelectionCore<TableSelectableRow>>;
22
22
  type TableSelectionProviderProps = PropsWithChildren<{
23
- selection?: TableSelectionConfig;
23
+ readonly selection?: TableSelectionConfig;
24
24
  }>;
25
- export declare function TableSelectionProvider({ children, selection, }: TableSelectionProviderProps): JSX.Element;
25
+ export declare function TableSelectionProvider({ children, selection }: TableSelectionProviderProps): React.JSX.Element;
26
26
  export declare function useTableSelection<T extends Selectable = TableSelectableRow>(): TableSelectionCore<T>;
27
- type TableSelectionHook<T extends Selectable = TableSelectableRow> = {
27
+ interface TableSelectionHook<T extends Selectable = TableSelectableRow> {
28
28
  values: T[];
29
29
  clear: TableSelectionCore<T>['clear'];
30
- };
30
+ }
31
31
  export declare function useSelection<T extends Selectable = TableSelectableRow>(): TableSelectionHook<T>;
32
32
  export declare function isCellSelected<T extends Selectable>(value: T, selectedRows: SelectableState<T>, config: TableSelectionSelectable<T>): boolean;
33
- export declare function useIsCellSelected<T extends Selectable = TableSelectableRow>(value?: T): boolean;
33
+ export declare function useIsCellSelected(value?: Selectable): boolean;
34
34
  export {};
@@ -1,7 +1,8 @@
1
+ import { default as React } from 'react';
1
2
  import { useSelection, TableSelectableRow } from './Selection';
2
3
  import { default as TableSortHandle } from './TableSortHandle';
3
4
  import { TableProps, TableSectionProps, TableRowProps, TableCellProps, TableCaptionProps, TableSelectionProps, SelectionCellProps, TablePickerItemProps, TablePickerProps, ExpandableTableRowProps } from './Table.types';
4
- declare function Table<T extends TableSelectableRow>({ children, selection, scale, ...others }: TableProps<T>): JSX.Element;
5
+ declare function Table<T extends TableSelectableRow>({ children, selection, scale, ...others }: TableProps<T>): React.JSX.Element;
5
6
  declare namespace Table {
6
7
  var Head: typeof TableHead;
7
8
  var Body: typeof TableBody;
@@ -19,18 +20,18 @@ declare namespace Table {
19
20
  var SortHandle: typeof TableSortHandle;
20
21
  var Picker: typeof TablePicker;
21
22
  }
22
- declare function TableCaption({ children, position, height }: TableCaptionProps): JSX.Element;
23
- declare function TableHead({ children, ...others }: TableSectionProps): JSX.Element;
24
- declare function TableBody({ children, ...others }: TableSectionProps): JSX.Element;
25
- declare function TableCell({ children, alignment, format, ...others }: TableCellProps): JSX.Element;
26
- declare function SelectionCell<T extends TableSelectableRow>({ value, ...props }: SelectionCellProps<T>): JSX.Element;
27
- declare function SelectionHeadCell<T extends TableSelectableRow>(props: SelectionCellProps<T>): JSX.Element;
28
- declare function TableRow({ children, ...others }: TableRowProps): JSX.Element;
29
- declare function ExpandableTableRow({ expandableContent, expanded, leading: propsLeading, children, onExpandedChange, initialExpanded, ...others }: ExpandableTableRowProps): JSX.Element;
30
- declare function TableHeadCell({ alignment, children, onClick, ...others }: TableCellProps): JSX.Element;
31
- declare function TableSelectionActions({ buttons, children, ...others }: TableSelectionProps): JSX.Element;
32
- declare function TablePickerItem<T>({ option, checked, children, ...props }: TablePickerItemProps<T>): JSX.Element;
33
- declare function TablePicker<T>({ value, onChange, options, align, children, trigger: propsTrigger, ...props }: TablePickerProps<T>): JSX.Element;
23
+ declare function TableCaption({ children, position, height }: TableCaptionProps): React.JSX.Element;
24
+ declare function TableHead({ children, ...others }: TableSectionProps): React.JSX.Element;
25
+ declare function TableBody({ children, ...others }: TableSectionProps): React.JSX.Element;
26
+ declare function TableCell({ children, alignment, format, ...others }: TableCellProps): React.JSX.Element;
27
+ declare function SelectionCell<T extends TableSelectableRow>({ value, ...props }: SelectionCellProps<T>): React.JSX.Element;
28
+ declare function SelectionHeadCell<T extends TableSelectableRow>({ children, ...props }: SelectionCellProps<T>): React.JSX.Element;
29
+ declare function TableRow({ children, ...others }: TableRowProps): React.JSX.Element;
30
+ declare function ExpandableTableRow({ expandableContent, expanded, leading: propsLeading, children, onExpandedChange, initialExpanded, ...others }: ExpandableTableRowProps): React.JSX.Element;
31
+ declare function TableHeadCell({ alignment, children, onClick, ...others }: TableCellProps): React.JSX.Element;
32
+ declare function TableSelectionActions({ buttons, children, ...others }: TableSelectionProps): React.JSX.Element;
33
+ declare function TablePickerItem<T>({ option, checked, children, ...props }: TablePickerItemProps<T>): React.JSX.Element;
34
+ declare function TablePicker<T>({ value, onChange, options, align, children, trigger: propsTrigger, ...props }: TablePickerProps<T>): React.JSX.Element;
34
35
  declare namespace TablePicker {
35
36
  var Item: typeof TablePickerItem;
36
37
  }
@@ -1,20 +1,21 @@
1
+ import { default as React } from 'react';
1
2
  import { Meta } from '@storybook/react';
2
3
  import { TableProps } from './Table.types';
3
4
  declare const _default: Meta;
4
5
  export default _default;
5
- export declare function Playground(args: TableProps): JSX.Element;
6
+ export declare function Playground(args: TableProps): React.JSX.Element;
6
7
  export declare namespace Playground {
7
8
  var args: {
8
9
  scale: string;
9
10
  };
10
11
  }
11
- export declare function WithSorting(args: TableProps): JSX.Element;
12
+ export declare function WithSorting(args: TableProps): React.JSX.Element;
12
13
  export declare namespace WithSorting {
13
14
  var args: {
14
15
  scale: string;
15
16
  };
16
17
  }
17
- export declare function WithColumnPicker(args: TableProps): JSX.Element;
18
+ export declare function WithColumnPicker(args: TableProps): React.JSX.Element;
18
19
  export declare namespace WithColumnPicker {
19
20
  var args: {
20
21
  scale: string;
@@ -30,7 +31,7 @@ export declare namespace WithColumnPicker {
30
31
  };
31
32
  };
32
33
  }
33
- export declare function WithRowSelection(args: TableProps): JSX.Element;
34
+ export declare function WithRowSelection(args: TableProps): React.JSX.Element;
34
35
  export declare namespace WithRowSelection {
35
36
  var parameters: {
36
37
  docs: {
@@ -43,7 +44,7 @@ export declare namespace WithRowSelection {
43
44
  scale: string;
44
45
  };
45
46
  }
46
- export declare function WithCustomRowSelection(): JSX.Element;
47
+ export declare function WithCustomRowSelection(): React.JSX.Element;
47
48
  export declare namespace WithCustomRowSelection {
48
49
  var parameters: {
49
50
  docs: {
@@ -53,7 +54,7 @@ export declare namespace WithCustomRowSelection {
53
54
  };
54
55
  };
55
56
  }
56
- export declare function WithExpandableRow(args: TableProps): JSX.Element;
57
+ export declare function WithExpandableRow(args: TableProps): React.JSX.Element;
57
58
  export declare namespace WithExpandableRow {
58
59
  var args: {
59
60
  scale: string;
@@ -1,5 +1,5 @@
1
1
  import { Selectable } from '../../hooks/useSelectable';
2
- import { ComponentType, HTMLAttributes, PropsWithChildren, ReactNode, ReactElement } from 'react';
2
+ import { ComponentType, HTMLAttributes, PropsWithChildren, ReactNode } from 'react';
3
3
  import { DropdownMenuItemProps, DropdownMenuProps } from '../Dropdown';
4
4
  import { DropdownTriggerButtonProps } from '../Dropdown/DropdownTrigger';
5
5
  import { TableSelectableRow, TableSelectionConfig } from './Selection';
@@ -22,7 +22,7 @@ export interface SelectionCellProps<T extends TableSelectableRow = TableSelectab
22
22
  children?: (props: {
23
23
  selected: boolean;
24
24
  toggle: () => void;
25
- }) => ReactElement;
25
+ }) => ReactNode;
26
26
  }
27
27
  export interface TableSectionProps extends HTMLAttributes<HTMLTableSectionElement> {
28
28
  scale?: Scale;
@@ -42,11 +42,11 @@ export interface TableCellProps extends HTMLAttributes<HTMLTableCellElement> {
42
42
  scale?: Scale;
43
43
  selected?: boolean;
44
44
  }
45
- export type TableColumn<T = Record<string, unknown>> = {
45
+ export interface TableColumn<T = Record<string, unknown>> {
46
46
  /**
47
47
  * The accessor of you entry interface
48
48
  */
49
- key: keyof T;
49
+ key: Exclude<keyof T, symbol>;
50
50
  /**
51
51
  * The label that should go in the Header cell
52
52
  */
@@ -56,7 +56,7 @@ export type TableColumn<T = Record<string, unknown>> = {
56
56
  * If omitted, `title` is used
57
57
  */
58
58
  option?: string;
59
- };
59
+ }
60
60
  export type TableColumns<T> = Array<TableColumn<T>>;
61
61
  export interface TablePickerItemProps<T> extends DropdownMenuItemProps {
62
62
  option?: TableColumn<T>;
@@ -1,7 +1,8 @@
1
+ import { default as React } from 'react';
1
2
  import { SortDirection } from './useSortBy.types';
2
3
  import { BoxProps } from '../Layout/Box';
3
4
  interface TableSortHandleProps extends BoxProps {
4
- order?: SortDirection | null;
5
+ readonly order?: SortDirection | null;
5
6
  }
6
- declare function TableSortHandle({ order, ...rest }: TableSortHandleProps): JSX.Element | null;
7
+ declare function TableSortHandle({ order, ...rest }: TableSortHandleProps): React.JSX.Element;
7
8
  export default TableSortHandle;
@@ -3,10 +3,10 @@ import { TableRowGroup, SortableColumn, ColumnGroup } from './useSortBy.types';
3
3
  * A hook that receives columns and table rows to sort them when sortByColumn function is called.
4
4
  * Exposes columnData, tableData and sortByColumn to be consumed by the Table component.
5
5
  *
6
- * @param {ColumnGroup} columnGroup a group of table columns
7
- * @param {TableRowGroup} tableRowGroup a group of table rows
6
+ * @param columnGroup a group of table columns
7
+ * @param tableRowGroup a group of table rows
8
8
  *
9
- * @returns {TableRowGroup} sorted table rows
9
+ * @returns sorted table rows
10
10
  */
11
11
  declare function useSortBy(columnGroup: ColumnGroup, tableRowGroup: TableRowGroup): {
12
12
  tableData: TableRowGroup;
@@ -1,3 +1,4 @@
1
+ import { default as React } from 'react';
1
2
  import { RowsPerPageProps } from './TablePagination.types';
2
- declare function RowsPerPage({ page, rowsPerPage, onRowsPerPageChange, labelRowsPerPage, count, rowsPerPageOptions, disabled, position, align, }: RowsPerPageProps): JSX.Element;
3
+ declare function RowsPerPage({ page, rowsPerPage, onRowsPerPageChange, labelRowsPerPage, count, rowsPerPageOptions, disabled, position, align, }: RowsPerPageProps): React.JSX.Element;
3
4
  export default RowsPerPage;
@@ -1,3 +1,4 @@
1
+ import { default as React } from 'react';
1
2
  import { TablePaginationProps } from './TablePagination.types';
2
- declare function TablePagination(props: TablePaginationProps): JSX.Element;
3
+ declare function TablePagination(props: TablePaginationProps): React.JSX.Element;
3
4
  export default TablePagination;
@@ -7,5 +7,5 @@ export declare const ActionIcon: import('styled-components').StyledComponent<Rea
7
7
  } & IconProps & {
8
8
  rotate?: number;
9
9
  }, "size" | "color">;
10
- declare function TablePaginationActions({ variant, disabled, onPageChange, page, count, rowsPerPage, }: TablePaginationActionsProps): JSX.Element;
10
+ declare function TablePaginationActions({ variant, disabled, onPageChange, page, count, rowsPerPage, }: TablePaginationActionsProps): React.JSX.Element;
11
11
  export default TablePaginationActions;
@@ -1,28 +1,28 @@
1
- import { default as React, HTMLAttributes, ReactNode } from 'react';
1
+ import { HTMLAttributes, ReactNode, default as React } from 'react';
2
2
  import { WithDirectionProps } from './Tabs.types';
3
3
  type TabsItemsProps = HTMLAttributes<HTMLUListElement>;
4
4
  declare function TabsItems({ children, ...props }: TabsItemsProps): React.JSX.Element;
5
5
  interface TabsItemProps extends HTMLAttributes<HTMLInputElement> {
6
- name: string;
7
- default?: boolean;
8
- leading?: ReactNode;
9
- disabled?: boolean;
6
+ readonly name: string;
7
+ readonly default?: boolean;
8
+ readonly leading?: ReactNode;
9
+ readonly disabled?: boolean;
10
10
  }
11
11
  declare function TabsItem({ children, name, default: isDefault, className, onChange, leading, disabled, ...props }: TabsItemProps): React.JSX.Element;
12
12
  type PanelsItemsProps = HTMLAttributes<HTMLDivElement>;
13
13
  declare function PanelsItems({ children, ...props }: PanelsItemsProps): React.JSX.Element;
14
14
  interface PanelsItemProps extends HTMLAttributes<HTMLElement> {
15
- name: string;
15
+ readonly name: string;
16
16
  /**
17
17
  * Renders the Panel.Item only when is visible
18
18
  * @default false
19
19
  */
20
- lazy?: boolean;
20
+ readonly lazy?: boolean;
21
21
  }
22
22
  declare function PanelsItem({ children, name, lazy, ...props }: PanelsItemProps): React.JSX.Element;
23
23
  export interface TabsProps extends HTMLAttributes<HTMLElement>, WithDirectionProps {
24
- activeTab?: string;
25
- onTabChange?: (tab: string) => void;
24
+ readonly activeTab?: string;
25
+ readonly onTabChange?: (tab: string) => void;
26
26
  }
27
27
  /**
28
28
  * @example
@@ -39,7 +39,7 @@ export interface TabsProps extends HTMLAttributes<HTMLElement>, WithDirectionPro
39
39
  </Tabs.Panels>
40
40
  * </Tabs>
41
41
  */
42
- declare function Tabs({ children, direction, id: propId, activeTab: propTab, onTabChange, ...props }: TabsProps): JSX.Element;
42
+ declare function Tabs({ children, direction, id: propId, activeTab: propTab, onTabChange, ...props }: TabsProps): React.JSX.Element;
43
43
  declare namespace Tabs {
44
44
  var Items: typeof TabsItems;
45
45
  var Item: typeof TabsItem;
@@ -1,14 +1,15 @@
1
+ import { default as React } from 'react';
1
2
  import { Meta } from '@storybook/react';
2
3
  import { TabsProps } from './Tabs';
3
4
  declare const _default: Meta;
4
5
  export default _default;
5
- export declare function Playground(args: TabsProps): JSX.Element;
6
+ export declare function Playground(args: TabsProps): React.JSX.Element;
6
7
  export declare namespace Playground {
7
8
  var args: {
8
9
  direction: string;
9
10
  };
10
11
  }
11
- export declare function Controlled(): JSX.Element;
12
+ export declare function Controlled(): React.JSX.Element;
12
13
  export declare namespace Controlled {
13
14
  var args: {
14
15
  direction: string;
@@ -1,18 +1,18 @@
1
- import { default as React, ReactNode, ButtonHTMLAttributes } from 'react';
1
+ import { default as React, ButtonHTMLAttributes, ReactNode } from 'react';
2
2
  interface WithSizeProps {
3
- size?: 'small' | 'default' | 'large';
3
+ readonly size?: 'small' | 'default' | 'large';
4
4
  }
5
5
  export interface TagProps extends React.HTMLAttributes<HTMLElement>, WithSizeProps {
6
- className?: string;
7
- children?: ReactNode;
8
- disabled?: boolean;
9
- leading?: ReactNode;
10
- removable?: boolean;
11
- variant?: 'accent' | 'danger' | 'default' | 'outlined' | 'success' | 'warning';
12
- onRemove?: () => void;
13
- getRemoveButtonProps?: () => Partial<ButtonHTMLAttributes<HTMLButtonElement>> & {
6
+ readonly className?: string;
7
+ readonly children?: ReactNode;
8
+ readonly disabled?: boolean;
9
+ readonly leading?: ReactNode;
10
+ readonly removable?: boolean;
11
+ readonly variant?: 'accent' | 'danger' | 'default' | 'outlined' | 'success' | 'warning';
12
+ readonly onRemove?: () => void;
13
+ readonly getRemoveButtonProps?: () => Partial<ButtonHTMLAttributes<HTMLButtonElement>> & {
14
14
  'data-testid'?: string;
15
15
  };
16
16
  }
17
- declare function Tag(props: TagProps): JSX.Element;
17
+ declare function Tag(props: TagProps): React.JSX.Element;
18
18
  export default Tag;
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { default as Tag, TagProps } from './Tag';
2
+ import { TagProps, default as Tag } from './Tag';
3
3
  declare const _default: {
4
4
  title: string;
5
5
  component: typeof Tag;
@@ -24,7 +24,7 @@ declare const _default: {
24
24
  };
25
25
  };
26
26
  export default _default;
27
- export declare function Default(args: TagProps): JSX.Element;
27
+ export declare function Default(args: TagProps): React.JSX.Element;
28
28
  export declare namespace Default {
29
29
  var args: {
30
30
  size: string;
@@ -33,7 +33,7 @@ export declare namespace Default {
33
33
  href: string;
34
34
  };
35
35
  }
36
- export declare function Icon(args: TagProps): JSX.Element;
36
+ export declare function Icon(args: TagProps): React.JSX.Element;
37
37
  export declare namespace Icon {
38
38
  var args: {
39
39
  size: string;
@@ -42,7 +42,7 @@ export declare namespace Icon {
42
42
  removable: boolean;
43
43
  };
44
44
  }
45
- export declare function Removable(args: TagProps): JSX.Element;
45
+ export declare function Removable(args: TagProps): React.JSX.Element;
46
46
  export declare namespace Removable {
47
47
  var args: {
48
48
  size: string;
@@ -52,7 +52,7 @@ export declare namespace Removable {
52
52
  onRemove: () => void;
53
53
  };
54
54
  }
55
- export declare function Disabled(args: TagProps): JSX.Element;
55
+ export declare function Disabled(args: TagProps): React.JSX.Element;
56
56
  export declare namespace Disabled {
57
57
  var args: {
58
58
  size: string;