@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 +1 @@
1
- {"version":3,"file":"DragDropFile.context-oKnUu6d3.js","sources":["../src/components/DragDropFile/DragDropFile.context.tsx"],"sourcesContent":["import React, { createContext, useContext, useCallback, useMemo } from 'react'\n\nimport type { DragDropFileContextValue, DragDropFileProviderProps, FileWithStatus } from './types'\n\nexport const DragDropFileContext = createContext<DragDropFileContextValue | undefined>(undefined)\n\nexport const DragDropFileProvider = ({\n fileList,\n onFilesAdded,\n onFileRemoved,\n onRetryUpload,\n children,\n}: DragDropFileProviderProps): JSX.Element => {\n const onRemoveFile = useCallback(\n (removedItem: FileWithStatus, index: number) => {\n onFileRemoved([...fileList.slice(0, index), ...fileList.slice(index + 1)], removedItem, index)\n },\n [fileList]\n )\n\n const contextValue = useMemo(\n () => ({ fileList, onFilesAdded, onRemoveFile, onRetryUpload }),\n [fileList, onFilesAdded, onRemoveFile, onRetryUpload]\n )\n\n return (\n <DragDropFileContext.Provider value={contextValue}>{children}</DragDropFileContext.Provider>\n )\n}\n\nexport const useDragDropFileContext = (): DragDropFileContextValue => {\n const context = useContext(DragDropFileContext)\n\n if (!context) {\n throw new Error('useDragDropFileContext must be used within an DragDropFileProvider')\n }\n\n return context\n}\n"],"names":["DragDropFileContext","createContext","undefined","DragDropFileProvider","fileList","onFilesAdded","onFileRemoved","onRetryUpload","children","onRemoveFile","useCallback","removedItem","index","slice","contextValue","useMemo","useDragDropFileContext","context","useContext","Error"],"mappings":";AAIaA,MAAAA,sBAAsBC,cAAoDC,MAAS;AAEzF,MAAMC,uBAAuBA,CAAC;AAAA,EACnCC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AACyB,MAAmB;AAC5C,QAAMC,eAAeC,YACnB,CAACC,aAA6BC,UAAkB;AAC9CN,kBAAc,CAAC,GAAGF,SAASS,MAAM,GAAGD,KAAK,GAAG,GAAGR,SAASS,MAAMD,QAAQ,CAAC,CAAC,GAAGD,aAAaC,KAAK;AAAA,EAAA,GAE/F,CAACR,QAAQ,CACX;AAEMU,QAAAA,eAAeC,QACnB,OAAO;AAAA,IAAEX;AAAAA,IAAUC;AAAAA,IAAcI;AAAAA,IAAcF;AAAAA,MAC/C,CAACH,UAAUC,cAAcI,cAAcF,aAAa,CACtD;AAEA,sDACG,oBAAoB,UAApB,EAA6B,OAAOO,gBAAeN,QAAS;AAEjE;AAEO,MAAMQ,yBAAyBA,MAAgC;AAC9DC,QAAAA,UAAUC,WAAWlB,mBAAmB;AAE9C,MAAI,CAACiB,SAAS;AACN,UAAA,IAAIE,MAAM,oEAAoE;AAAA,EAAA;AAG/EF,SAAAA;AACT;"}
1
+ {"version":3,"file":"DragDropFile.context-oKnUu6d3.js","sources":["../src/components/DragDropFile/DragDropFile.context.tsx"],"sourcesContent":["import React, { createContext, useContext, useCallback, useMemo } from 'react'\n\nimport type { DragDropFileContextValue, DragDropFileProviderProps, FileWithStatus } from './types'\n\nexport const DragDropFileContext = createContext<DragDropFileContextValue | undefined>(undefined)\n\nexport const DragDropFileProvider = ({\n fileList,\n onFilesAdded,\n onFileRemoved,\n onRetryUpload,\n children,\n}: DragDropFileProviderProps) => {\n const onRemoveFile = useCallback(\n (removedItem: FileWithStatus, index: number) => {\n onFileRemoved([...fileList.slice(0, index), ...fileList.slice(index + 1)], removedItem, index)\n },\n [fileList]\n )\n\n const contextValue = useMemo(\n () => ({ fileList, onFilesAdded, onRemoveFile, onRetryUpload }),\n [fileList, onFilesAdded, onRemoveFile, onRetryUpload]\n )\n\n return (\n <DragDropFileContext.Provider value={contextValue}>{children}</DragDropFileContext.Provider>\n )\n}\n\nexport const useDragDropFileContext = (): DragDropFileContextValue => {\n const context = useContext(DragDropFileContext)\n\n if (!context) {\n throw new Error('useDragDropFileContext must be used within an DragDropFileProvider')\n }\n\n return context\n}\n"],"names":["DragDropFileContext","createContext","undefined","DragDropFileProvider","fileList","onFilesAdded","onFileRemoved","onRetryUpload","children","onRemoveFile","useCallback","removedItem","index","slice","contextValue","useMemo","useDragDropFileContext","context","useContext","Error"],"mappings":";AAIO,MAAMA,sBAAsBC,cAAoDC,MAAS;AAEzF,MAAMC,uBAAuBA,CAAC;AAAA,EACnCC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AACyB,MAAM;AAC/B,QAAMC,eAAeC,YACnB,CAACC,aAA6BC,UAAkB;AAC9CN,kBAAc,CAAC,GAAGF,SAASS,MAAM,GAAGD,KAAK,GAAG,GAAGR,SAASS,MAAMD,QAAQ,CAAC,CAAC,GAAGD,aAAaC,KAAK;AAAA,EAC/F,GACA,CAACR,QAAQ,CACX;AAEA,QAAMU,eAAeC,QACnB,OAAO;AAAA,IAAEX;AAAAA,IAAUC;AAAAA,IAAcI;AAAAA,IAAcF;AAAAA,EAAAA,IAC/C,CAACH,UAAUC,cAAcI,cAAcF,aAAa,CACtD;AAEA,sDACG,oBAAoB,UAApB,EAA6B,OAAOO,gBAAeN,QAAS;AAEjE;AAEO,MAAMQ,yBAAyBA,MAAgC;AACpE,QAAMC,UAAUC,WAAWlB,mBAAmB;AAE9C,MAAI,CAACiB,SAAS;AACZ,UAAM,IAAIE,MAAM,oEAAoE;AAAA,EACtF;AAEA,SAAOF;AACT;"}
@@ -1,4 +1,5 @@
1
+ import { default as React } from 'react';
1
2
  import { ButtonProps } from '../../components/Button';
2
3
  export type BackButtonProps = Omit<ButtonProps, 'children'>;
3
- declare function BackButton({ scale, ...others }: BackButtonProps): JSX.Element;
4
+ declare function BackButton({ scale, ...others }: BackButtonProps): React.JSX.Element;
4
5
  export default BackButton;
@@ -1,6 +1,7 @@
1
+ import { default as React } from 'react';
1
2
  import { ButtonProps } from '../../components/Button';
2
3
  export interface CloseButtonProps extends ButtonProps {
3
- size?: string | number;
4
+ readonly size?: string | number;
4
5
  }
5
- declare function CloseButton({ scale, size, ...others }: CloseButtonProps): JSX.Element;
6
+ declare function CloseButton({ scale, size, ...others }: CloseButtonProps): React.JSX.Element;
6
7
  export default CloseButton;
@@ -1,14 +1,14 @@
1
- import { LabelHTMLAttributes, ReactNode } from 'react';
1
+ import { LabelHTMLAttributes, ReactNode, default as React } from 'react';
2
2
  import { default as ColorScheme } from '../utils/types/ColorScheme';
3
3
  export interface SelectionStyleProps {
4
- scale?: 'small' | 'default';
5
- scheme?: ColorScheme;
6
- disabled?: boolean;
4
+ readonly scale?: 'small' | 'default';
5
+ readonly scheme?: ColorScheme;
6
+ readonly disabled?: boolean;
7
7
  }
8
8
  export interface SelectionWrapperProps extends LabelHTMLAttributes<HTMLLabelElement>, SelectionStyleProps {
9
- selector: ReactNode;
10
- leading?: ReactNode;
11
- trailing?: ReactNode;
9
+ readonly selector: ReactNode;
10
+ readonly leading?: ReactNode;
11
+ readonly trailing?: ReactNode;
12
12
  }
13
- declare function SelectionWrapper({ selector, children, leading, trailing, className, disabled, ...others }: SelectionWrapperProps): JSX.Element;
13
+ declare function SelectionWrapper({ selector, children, leading, trailing, className, disabled, ...others }: SelectionWrapperProps): React.JSX.Element;
14
14
  export default SelectionWrapper;
@@ -1,10 +1,10 @@
1
- import { ReactNode } from 'react';
1
+ import { ReactNode, default as React } from 'react';
2
2
  type AccordionContextType = [boolean, () => void];
3
3
  declare function AccordionProvider({ expanded, children, onExpandedChange, initialExpanded, }: {
4
- children: ReactNode;
5
- initialExpanded?: boolean;
6
- expanded?: boolean;
7
- onExpandedChange?: (expanded: boolean) => void;
8
- }): JSX.Element;
4
+ readonly children: ReactNode;
5
+ readonly initialExpanded?: boolean;
6
+ readonly expanded?: boolean;
7
+ readonly onExpandedChange?: (expanded: boolean) => void;
8
+ }): React.JSX.Element;
9
9
  declare function useAccordionContext(): AccordionContextType;
10
10
  export { AccordionProvider, useAccordionContext };
@@ -1,17 +1,17 @@
1
- import { PropsWithChildren, HTMLAttributes, ReactNode } from 'react';
2
- export type AccordionToggleProps = {
3
- leading?: ReactNode | ((expanded: boolean) => ReactNode);
4
- trailing?: ReactNode | ((expanded: boolean) => ReactNode);
5
- };
6
- declare function AccordionToggle({ leading, trailing: propsTrailing, children, }: PropsWithChildren<AccordionToggleProps>): JSX.Element;
1
+ import { default as React, PropsWithChildren, HTMLAttributes, ReactNode } from 'react';
2
+ export interface AccordionToggleProps {
3
+ readonly leading?: ReactNode | ((expanded: boolean) => ReactNode);
4
+ readonly trailing?: ReactNode | ((expanded: boolean) => ReactNode);
5
+ }
6
+ declare function AccordionToggle({ leading, trailing: propsTrailing, children, }: PropsWithChildren<AccordionToggleProps>): React.JSX.Element;
7
7
  export type AccordionBodyProps = HTMLAttributes<HTMLElement>;
8
- declare function AccordionBody({ children, ...props }: PropsWithChildren<AccordionBodyProps>): JSX.Element;
8
+ declare function AccordionBody({ children, ...props }: PropsWithChildren<AccordionBodyProps>): React.JSX.Element;
9
9
  export interface AccordionProps extends HTMLAttributes<HTMLElement> {
10
- expanded?: boolean;
11
- initialExpanded?: boolean;
12
- onExpandedChange?: (expanded: boolean) => void;
10
+ readonly expanded?: boolean;
11
+ readonly initialExpanded?: boolean;
12
+ readonly onExpandedChange?: (expanded: boolean) => void;
13
13
  }
14
- declare function Accordion({ children, expanded, initialExpanded, onExpandedChange, ...others }: AccordionProps): JSX.Element;
14
+ declare function Accordion({ children, expanded, initialExpanded, onExpandedChange, ...others }: AccordionProps): React.JSX.Element;
15
15
  declare namespace Accordion {
16
16
  var Toggle: typeof AccordionToggle;
17
17
  var Body: typeof AccordionBody;
@@ -1,8 +1,9 @@
1
+ import { default as React } from 'react';
1
2
  import { AccordionProps } from './Accordion';
2
3
  import { Meta } from '@storybook/react';
3
4
  declare const _default: Meta;
4
5
  export default _default;
5
- export declare function Playground(args: AccordionProps): JSX.Element;
6
- export declare function CustomIndicators(): JSX.Element;
7
- export declare function ControlledOpened(args: AccordionProps): JSX.Element;
8
- export declare function ControlledBasedOnExpandedProp(args: AccordionProps): JSX.Element;
6
+ export declare function Playground(args: AccordionProps): React.JSX.Element;
7
+ export declare function CustomIndicators(): React.JSX.Element;
8
+ export declare function ControlledOpened(args: AccordionProps): React.JSX.Element;
9
+ export declare function ControlledBasedOnExpandedProp(args: AccordionProps): React.JSX.Element;
@@ -1,25 +1,25 @@
1
- import { default as React, ReactElement } from 'react';
1
+ import { ReactNode, default as React } from 'react';
2
2
  import { default as DefaultCloseButton } from '../../common/CloseButton';
3
3
  export interface BannerProps {
4
- className?: string;
5
- variant?: 'success' | 'danger' | 'warning' | 'neutral';
6
- icon?: JSX.Element;
7
- scale?: 'default' | 'large';
8
- title?: string | ReactElement;
9
- description?: string | ReactElement;
10
- onClose?: () => void;
11
- dismissible?: boolean;
4
+ readonly className?: string;
5
+ readonly variant?: 'success' | 'danger' | 'warning' | 'neutral';
6
+ readonly icon?: ReactNode;
7
+ readonly scale?: 'default' | 'large';
8
+ readonly title?: string | ReactNode;
9
+ readonly description?: string | ReactNode;
10
+ readonly onClose?: () => void;
11
+ readonly dismissible?: boolean;
12
12
  }
13
13
  export interface BannerActionProps extends BannerProps {
14
- action?: string;
15
- secondaryAction?: string;
16
- onActionButtonClick?: () => void;
17
- onSecondaryActionButtonClick?: () => void;
14
+ readonly action?: string;
15
+ readonly secondaryAction?: string;
16
+ readonly onActionButtonClick?: () => void;
17
+ readonly onSecondaryActionButtonClick?: () => void;
18
18
  }
19
19
  export declare const CloseButton: import('styled-components').StyledComponent<typeof DefaultCloseButton, any, {}, never>;
20
20
  export declare const Icon: import('styled-components').StyledComponent<React.ComponentType<import('../IconFactory').IconProps<import('../IconFactory').IconMapping>>, any, {}, never>;
21
21
  declare function Banner({ scale, variant, icon, title, description, onClose, dismissible, ...others }: BannerProps): React.JSX.Element | null;
22
22
  export declare function BannerLarge({ scale, variant, icon, title, description, onClose, dismissible, ...others }: BannerProps): React.JSX.Element | null;
23
- export declare function BannerAction({ scale, variant, icon, title, action, secondaryAction, onActionButtonClick, onSecondaryActionButtonClick, ...others }: BannerActionProps): JSX.Element;
23
+ export declare function BannerAction({ scale, variant, icon, title, action, secondaryAction, onActionButtonClick, onSecondaryActionButtonClick, ...others }: BannerActionProps): React.JSX.Element;
24
24
  export declare function BannerActionLarge({ scale, variant, icon, title, description, action, secondaryAction, onActionButtonClick, onSecondaryActionButtonClick, onClose, dismissible, ...others }: BannerActionProps): React.JSX.Element | null;
25
25
  export default Banner;
@@ -3,7 +3,7 @@ import { Meta } from '@storybook/react';
3
3
  import { BannerProps, BannerActionProps } from './Banner';
4
4
  declare const _default: Meta;
5
5
  export default _default;
6
- export declare function Playground(args: BannerProps): JSX.Element;
6
+ export declare function Playground(args: BannerProps): React.JSX.Element;
7
7
  export declare namespace Playground {
8
8
  var args: {
9
9
  scale: string;
@@ -11,7 +11,7 @@ export declare namespace Playground {
11
11
  title: string;
12
12
  };
13
13
  }
14
- export declare function Warning(args: BannerProps): JSX.Element;
14
+ export declare function Warning(args: BannerProps): React.JSX.Element;
15
15
  export declare namespace Warning {
16
16
  var args: {
17
17
  scale: string;
@@ -19,7 +19,7 @@ export declare namespace Warning {
19
19
  title: string;
20
20
  };
21
21
  }
22
- export declare function Danger(args: BannerProps): JSX.Element;
22
+ export declare function Danger(args: BannerProps): React.JSX.Element;
23
23
  export declare namespace Danger {
24
24
  var args: {
25
25
  scale: string;
@@ -27,7 +27,7 @@ export declare namespace Danger {
27
27
  title: string;
28
28
  };
29
29
  }
30
- export declare function Neutral(args: BannerProps): JSX.Element;
30
+ export declare function Neutral(args: BannerProps): React.JSX.Element;
31
31
  export declare namespace Neutral {
32
32
  var args: {
33
33
  scale: string;
@@ -35,7 +35,7 @@ export declare namespace Neutral {
35
35
  title: string;
36
36
  };
37
37
  }
38
- export declare function CustomIcon(args: BannerProps): JSX.Element;
38
+ export declare function CustomIcon(args: BannerProps): React.JSX.Element;
39
39
  export declare namespace CustomIcon {
40
40
  var args: {
41
41
  scale: string;
@@ -44,7 +44,7 @@ export declare namespace CustomIcon {
44
44
  icon: React.JSX.Element;
45
45
  };
46
46
  }
47
- export declare function Large(args: BannerProps): JSX.Element;
47
+ export declare function Large(args: BannerProps): React.JSX.Element;
48
48
  export declare namespace Large {
49
49
  var args: {
50
50
  scale: string;
@@ -53,7 +53,7 @@ export declare namespace Large {
53
53
  description: string;
54
54
  };
55
55
  }
56
- export declare function Action(args: BannerActionProps): JSX.Element;
56
+ export declare function Action(args: BannerActionProps): React.JSX.Element;
57
57
  export declare namespace Action {
58
58
  var args: {
59
59
  scale: string;
@@ -62,7 +62,7 @@ export declare namespace Action {
62
62
  action: string;
63
63
  };
64
64
  }
65
- export declare function ActionWithSecondaryAction(args: BannerActionProps): JSX.Element;
65
+ export declare function ActionWithSecondaryAction(args: BannerActionProps): React.JSX.Element;
66
66
  export declare namespace ActionWithSecondaryAction {
67
67
  var args: {
68
68
  scale: string;
@@ -72,7 +72,7 @@ export declare namespace ActionWithSecondaryAction {
72
72
  secondaryAction: string;
73
73
  };
74
74
  }
75
- export declare function ActionLarge(args: BannerActionProps): JSX.Element;
75
+ export declare function ActionLarge(args: BannerActionProps): React.JSX.Element;
76
76
  export declare namespace ActionLarge {
77
77
  var args: {
78
78
  scale: string;
@@ -82,7 +82,7 @@ export declare namespace ActionLarge {
82
82
  action: string;
83
83
  };
84
84
  }
85
- export declare function ActionLargeWithSecondaryAction(args: BannerActionProps): JSX.Element;
85
+ export declare function ActionLargeWithSecondaryAction(args: BannerActionProps): React.JSX.Element;
86
86
  export declare namespace ActionLargeWithSecondaryAction {
87
87
  var args: {
88
88
  scale: string;
@@ -93,7 +93,7 @@ export declare namespace ActionLargeWithSecondaryAction {
93
93
  secondaryAction: string;
94
94
  };
95
95
  }
96
- export declare function ActionLargeDismissibleWithSecondaryAction(args: BannerActionProps): JSX.Element;
96
+ export declare function ActionLargeDismissibleWithSecondaryAction(args: BannerActionProps): React.JSX.Element;
97
97
  export declare namespace ActionLargeDismissibleWithSecondaryAction {
98
98
  var args: {
99
99
  scale: string;
@@ -1,8 +1,8 @@
1
- import { HTMLAttributes } from 'react';
1
+ import { HTMLAttributes, default as React } from 'react';
2
2
  export interface BreadcrumbProps extends HTMLAttributes<HTMLElement> {
3
- active?: boolean;
4
- label: string;
5
- url?: string;
3
+ readonly active?: boolean;
4
+ readonly label: string;
5
+ readonly url?: string;
6
6
  }
7
- declare function Breadcrumb({ active, label, url, ...rest }: BreadcrumbProps): JSX.Element;
7
+ declare function Breadcrumb({ active, label, url, ...rest }: BreadcrumbProps): React.JSX.Element;
8
8
  export default Breadcrumb;
@@ -1,10 +1,10 @@
1
- import { MouseEvent } from 'react';
1
+ import { MouseEvent, default as React } from 'react';
2
2
  import { BreadcrumbProps } from './Breadcrumb';
3
3
  export interface BreadcrumbsProps {
4
- className?: string;
5
- disabled?: boolean;
6
- entries: BreadcrumbProps[];
7
- onBack?: (e: MouseEvent<HTMLButtonElement>) => void;
4
+ readonly className?: string;
5
+ readonly disabled?: boolean;
6
+ readonly entries: BreadcrumbProps[];
7
+ readonly onBack?: (e: MouseEvent<HTMLButtonElement>) => void;
8
8
  }
9
- declare function Breadcrumbs({ entries, onBack, disabled, ...others }: BreadcrumbsProps): JSX.Element;
9
+ declare function Breadcrumbs({ entries, onBack, disabled, ...others }: BreadcrumbsProps): React.JSX.Element;
10
10
  export default Breadcrumbs;
@@ -3,18 +3,18 @@ import { IconProps } from '../Icon';
3
3
  import { default as ColorScheme } from '../../utils/types/ColorScheme';
4
4
  export type ButtonVariants = 'primary' | 'secondary' | 'warning' | 'icon' | 'tertiary';
5
5
  export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
6
- className?: string;
7
- leading?: ReactNode;
8
- scheme?: ColorScheme;
9
- trailing?: ReactNode;
10
- variant?: ButtonVariants;
11
- scale?: 'small' | 'default' | 'large';
12
- loading?: boolean;
6
+ readonly className?: string;
7
+ readonly leading?: ReactNode;
8
+ readonly scheme?: ColorScheme;
9
+ readonly trailing?: ReactNode;
10
+ readonly variant?: ButtonVariants;
11
+ readonly scale?: 'small' | 'default' | 'large';
12
+ readonly loading?: boolean;
13
13
  }
14
14
  export declare const Children: import('styled-components').StyledComponent<"span", any, ButtonProps, never>;
15
15
  export declare const BaseButton: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
16
16
  declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
17
- export declare function Caret(props: Omit<IconProps, 'name'>): JSX.Element;
17
+ export declare function Caret(props: Omit<IconProps, 'name'>): React.JSX.Element;
18
18
  export declare const SelectorButton: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
19
19
  export type IconButtonProps = Omit<ButtonProps, 'leading' | 'trailing' | 'variant' | 'loading'>;
20
20
  export declare const IconButton: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
@@ -5,7 +5,7 @@ import { ButtonProps } from './Button';
5
5
  import { CloseButtonProps } from '../../common/CloseButton';
6
6
  declare const _default: Meta;
7
7
  export default _default;
8
- export declare function Playground(args: ButtonProps): JSX.Element;
8
+ export declare function Playground(args: ButtonProps): React.JSX.Element;
9
9
  export declare namespace Playground {
10
10
  var args: {
11
11
  scale: string;
@@ -14,20 +14,20 @@ export declare namespace Playground {
14
14
  trailing: React.JSX.Element;
15
15
  };
16
16
  }
17
- export declare function Base(args: ButtonProps): JSX.Element;
18
- export declare function Selector(args: ButtonProps): JSX.Element;
17
+ export declare function Base(args: ButtonProps): React.JSX.Element;
18
+ export declare function Selector(args: ButtonProps): React.JSX.Element;
19
19
  export declare namespace Selector {
20
20
  var args: {
21
21
  scale: string;
22
22
  variant: string;
23
23
  };
24
24
  }
25
- export declare function Icon(args: ButtonProps): JSX.Element;
25
+ export declare function Icon(args: ButtonProps): React.JSX.Element;
26
26
  export declare namespace Icon {
27
27
  var args: {
28
28
  scale: string;
29
29
  };
30
30
  }
31
- export declare function Back(args: BackButtonProps): JSX.Element;
32
- export declare function Close(args: CloseButtonProps): JSX.Element;
33
- export declare function Loading(args: ButtonProps): JSX.Element;
31
+ export declare function Back(args: BackButtonProps): React.JSX.Element;
32
+ export declare function Close(args: CloseButtonProps): React.JSX.Element;
33
+ export declare function Loading(args: ButtonProps): React.JSX.Element;
@@ -1,9 +1,10 @@
1
+ import { default as React } from 'react';
1
2
  import { CalendarProps, GenericCalendarProps } from './Calendar.types';
2
3
  /**
3
4
  * Implementation based on
4
5
  * * https://medium.com/swlh/build-a-date-picker-in-15mins-using-javascript-react-from-scratch-f6932c77db09
5
6
  * * https://codepen.io/zellwk/pen/xNpKwp
6
7
  */
7
- export declare function GenericCalendar(props: GenericCalendarProps): JSX.Element;
8
- declare function Calendar(props: CalendarProps): JSX.Element;
8
+ export declare function GenericCalendar(props: GenericCalendarProps): React.JSX.Element;
9
+ declare function Calendar(props: CalendarProps): React.JSX.Element;
9
10
  export default Calendar;
@@ -1,12 +1,13 @@
1
+ import { default as React } from 'react';
1
2
  import { Meta } from '@storybook/react';
2
3
  import { CalendarDate } from './Date.helper';
3
4
  import { CalendarProps } from './Calendar.types';
4
5
  declare const _default: Meta;
5
6
  export default _default;
6
7
  export declare const Playground: import('@storybook/core/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, CalendarProps>;
7
- export declare function Selection(): JSX.Element;
8
+ export declare function Selection(): React.JSX.Element;
8
9
  declare function isWeekend(date: CalendarDate): boolean;
9
- export declare function CalendarConstraints(args: CalendarProps): JSX.Element;
10
+ export declare function CalendarConstraints(args: CalendarProps): React.JSX.Element;
10
11
  export declare namespace CalendarConstraints {
11
12
  var args: {
12
13
  constraints: ((string | null)[] | typeof isWeekend)[];
@@ -1,10 +1,10 @@
1
1
  import { HTMLAttributes } from 'react';
2
2
  import { CalendarDate, CalendarConstraint } from './Date.helper';
3
- export type RenderableMonth = {
3
+ export interface RenderableMonth {
4
4
  month: number;
5
5
  year: number;
6
6
  days: CalendarDate[];
7
- };
7
+ }
8
8
  export type CalendarMode = 'single' | 'range';
9
9
  export interface useCalendarProps {
10
10
  year?: number;
@@ -45,8 +45,8 @@ export interface CalendarPickerProps {
45
45
  onYearClick?: (year: number) => void;
46
46
  }
47
47
  export interface usePickerModeReturn {
48
- get(): PickerMode;
49
- is(other: PickerMode): boolean;
48
+ get: () => PickerMode;
49
+ is: (other: PickerMode) => boolean;
50
50
  dispatch: React.Dispatch<PickerModeAction>;
51
51
  Picker: (props: CalendarPickerProps) => JSX.Element;
52
52
  }
@@ -1,9 +1,9 @@
1
- export type DateHelperOptions = {
1
+ export interface DateHelperOptions {
2
2
  normalize?: boolean;
3
- };
3
+ }
4
4
  export declare const DEFAULT_OPTIONS: DateHelperOptions;
5
5
  export type InputDate = string | number | Date;
6
- type Unit = 'year' | 'month' | 'day' | 'hour' | 'minute' | 'second' | 'millisecond';
6
+ export type Unit = 'year' | 'month' | 'day' | 'hour' | 'minute' | 'second' | 'millisecond';
7
7
  type Operator = '>=' | '>' | '=' | '<' | '<=';
8
8
  export type DateConstraint = InputDate | [InputDate, InputDate] | [null, InputDate] | [InputDate, null];
9
9
  export type FunctionConstraint = (day: CalendarDate) => boolean;
@@ -11,126 +11,104 @@ export type CalendarConstraint = DateConstraint | FunctionConstraint;
11
11
  export interface CalendarDate {
12
12
  /**
13
13
  * Get `Date` object representing this date.
14
- * @returns {Date}
15
14
  */
16
- get(): Date;
15
+ get: () => Date;
17
16
  /**
18
17
  * Get the year using Universal Coordinated Time (UTC).
19
- * @returns {number}
20
18
  */
21
- getYear(): number;
19
+ getYear: () => number;
22
20
  /**
23
21
  * Gets the month using Universal Coordinated Time (UTC).
24
- * @returns {number}
25
22
  */
26
- getMonth(): number;
23
+ getMonth: () => number;
27
24
  /**
28
25
  * Get the day-of-the-month, using Universal Coordinated Time (UTC).
29
- * @returns {number}
30
26
  */
31
- getDate(): number;
27
+ getDate: () => number;
32
28
  /**
33
29
  * Get the time value in milliseconds.
34
30
  *
35
31
  * [!] Be aware that it might be normalized to 12:00:00 (UTC), if you did not call the helper with
36
32
  * `options.normalize: false`.
37
33
  *
38
- * @returns {number}
39
34
  */
40
- getTime(): number;
35
+ getTime: () => number;
41
36
  /**
42
37
  * Get the day of the week.
43
38
  *
44
39
  * [!] Be aware that it might be normalized to 12:00:00 (UTC), if you did not call the helper with
45
40
  * `options.normalize: false`.
46
41
  *
47
- * @returns {number}
48
42
  */
49
- getWeekday(): number;
43
+ getWeekday: () => number;
50
44
  /**
51
45
  * Get the hours value.
52
46
  *
53
47
  * [!] Be aware that it might be normalized to 12:00:00 (UTC), if you did not call the helper with
54
48
  * `options.normalize: false`.
55
49
  *
56
- * @returns {number}
57
50
  */
58
- getHours(): number;
51
+ getHours: () => number;
59
52
  /**
60
53
  * Get the minutes value.
61
54
  *
62
55
  * [!] Be aware that it might be normalized to 12:00:00 (UTC), if you did not call the helper with
63
56
  * `options.normalize: false`.
64
57
  *
65
- * @returns {number}
66
58
  */
67
- getMinutes(): number;
59
+ getMinutes: () => number;
68
60
  /**
69
61
  * Get the seconds value.
70
62
  *
71
63
  * [!] Be aware that it might be normalized to 12:00:00 (UTC), if you did not call the helper with
72
64
  * `options.normalize: false`.
73
65
  *
74
- * @returns {number}
75
66
  */
76
- getSeconds(): number;
67
+ getSeconds: () => number;
77
68
  /**
78
69
  * Get the milliseconds value.
79
70
  *
80
71
  * [!] Be aware that it might be normalized to 12:00:00 (UTC), if you did not call the helper with
81
72
  * `options.normalize: false`.
82
73
  *
83
- * @returns {number}
84
74
  */
85
- getMilliseconds(): number;
75
+ getMilliseconds: () => number;
86
76
  /**
87
77
  * Check if the current date matches **at least one** of the provided constraints.
88
78
  *
89
79
  * [!] Be aware that all dates in this comparison will be normalized to 12:00:00 (UTC).
90
80
  *
91
- * @param {...CalendarConstraint[]} constraintsArg
92
- * @returns {boolean}
93
81
  */
94
- matches(...constraints: CalendarConstraint[]): boolean;
82
+ matches: (...constraints: CalendarConstraint[]) => boolean;
95
83
  /**
96
84
  * Set the given `value` to the `unit` property of this instance.
97
85
  * This function mutates the internal date instance.
98
- * @param {Unit} unit
99
- * @param {number} value
100
- * @returns {CalendarDate}
101
86
  */
102
- set(unit: Unit, value: number): CalendarDate;
87
+ set: (unit: Unit, value: number) => CalendarDate;
103
88
  /**
104
89
  * Return a copy of this instance, adding the given `value` to the `unit` property.
105
- * @param {Unit} unit
106
- * @param {number} value
107
- * @returns {CalendarDate}
108
90
  */
109
- add(unit: Unit, value: number): CalendarDate;
91
+ add: (unit: Unit, value: number) => CalendarDate;
110
92
  /**
111
93
  * Return a copy of this instance, subtracting the given `value` from the `unit` property.
112
- * @param {Unit} unit
113
- * @param {number} value
114
- * @returns {CalendarDate}
115
94
  */
116
- subtract(unit: Unit, value: number): CalendarDate;
95
+ subtract: (unit: Unit, value: number) => CalendarDate;
117
96
  /**
118
97
  * Compare this date with the given `other`.
119
98
  *
120
99
  * [!] Be aware that it might be normalized to 12:00:00 (UTC), if you did not call the helper with
121
100
  * `options.normalize: false`.
122
101
  *
123
- * @param {Operator} operator - type of comparison to be performed.
124
- * @param {CalendarDate} other - Other `CalendarDate` to compare with.
125
- * @param {Unit} [precision] - notice that the precision increases with the evaluated period, so year < month < day < hour < minute < second < millisecond. Default is 'day'.
126
- * @return {boolean} comparison result
102
+ * @param operator - type of comparison to be performed.
103
+ * @param other - Other `CalendarDate` to compare with.
104
+ * @param precision - notice that the precision increases with the evaluated period, so year < month < day < hour < minute < second < millisecond. Default is 'day'.
105
+ * @return comparison result
127
106
  */
128
- is(operator: Operator, other: CalendarDate, precision?: string): boolean;
107
+ is: (operator: Operator, other: CalendarDate, precision?: Unit) => boolean;
129
108
  /**
130
109
  * Return this date as a string value in ISO format.
131
- * @returns {string}
132
110
  */
133
- toString(): string;
111
+ toString: () => string;
134
112
  }
135
113
  export type CalendarDateRange = [CalendarDate | null, CalendarDate | null];
136
114
  /**
@@ -145,8 +123,7 @@ export type CalendarDateRange = [CalendarDate | null, CalendarDate | null];
145
123
  * of this when using this helper for time relate logic.
146
124
  * You can disable this behavior by passing `options.normalize: false`.
147
125
  *
148
- * @param {InputDate} [dateArg]
149
- * @return {CalendarDate}
126
+ * @param dateArg - The input date.
150
127
  */
151
128
  declare function DateHelper(dateArg?: InputDate, optionsArg?: DateHelperOptions): CalendarDate;
152
129
  /**
@@ -161,9 +138,9 @@ declare function DateHelper(dateArg?: InputDate, optionsArg?: DateHelperOptions)
161
138
  * // 1665680400000 is equal to: new Date('2022-10-13T17:00:00.000Z').getTime()
162
139
  * ```
163
140
  *
164
- * @param {Date} date
165
- * @param {Unit} precision
166
- * @returns {number}
141
+ * @param date - The input date.
142
+ * @param precision - The unit of precision for normalization.
143
+ * @returns The timestamp of the normalized date.
167
144
  */
168
145
  export declare function getComparableDate(date: Date, precision?: Unit): number;
169
146
  /**
@@ -190,14 +167,10 @@ export declare function getComparableDate(date: Date, precision?: Unit): number;
190
167
  * getConstraintRange([null, 1643371200000]) // returns [0, 1643371200000]
191
168
  * getConstraintRange([null, '2022-01-28T12:00:00.000Z']) // returns [0, 1643371200000]
192
169
  * ```
193
- * @param rangeArg
194
- * @returns
195
170
  */
196
171
  export declare function getConstraintRange(rangeArg: DateConstraint): [number, number];
197
172
  /**
198
173
  * Wrap range constraint into a function and return a function constraint untouched.
199
- * @param {CalendarConstraint} constraint
200
- * @returns {(day: CalendarDate) => boolean}
201
174
  */
202
175
  export declare function getConstraintEvaluator(constraint: CalendarConstraint): (day: CalendarDate) => boolean;
203
176
  export declare function padded(value: number | string, maxLength?: number): string;
@@ -1,6 +1,6 @@
1
1
  import { CalendarDate } from './Date.helper';
2
2
  export interface DateFormat {
3
- format(date: CalendarDate): string;
3
+ format: (date: CalendarDate) => string;
4
4
  }
5
5
  /**
6
6
  * This helpers provides a convenient layer on top of `Intl.DateTimeFormat`,
@@ -29,7 +29,5 @@ export default function DateFormatHelper(format: string): DateFormat;
29
29
  *| Ordinal numbers | o | 1st, 2nd, 3rd, ..., 10th |
30
30
  *| Scaped sequence | [] | |
31
31
  *
32
- * @param format
33
- * @returns
34
32
  */
35
33
  export declare function tokenizer(format: string): string[];