@youversion/design-system-components 1.18.2 → 2.0.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 (242) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/index.es.js +1747 -1744
  3. package/dist/index.umd.js +2 -2
  4. package/dist/src/AutocompleteSelect/AutocompleteSelect.d.ts +0 -1
  5. package/dist/src/AutocompleteSelect/AutocompleteSelect.d.ts.map +1 -1
  6. package/dist/src/AutocompleteSelect/AutocompleteSelect.stories.d.ts +4 -4
  7. package/dist/src/AutocompleteSelect/AutocompleteSelect.stories.d.ts.map +1 -1
  8. package/dist/src/Banner/Banner.d.ts +13 -13
  9. package/dist/src/Banner/Banner.d.ts.map +1 -1
  10. package/dist/src/Banner/Banner.stories.d.ts +7 -7
  11. package/dist/src/Banner/Banner.stories.d.ts.map +1 -1
  12. package/dist/src/Box/Box.stories.d.ts +4 -3
  13. package/dist/src/Box/Box.stories.d.ts.map +1 -1
  14. package/dist/src/Breadcrumb/Breadcrumb.d.ts +1 -2
  15. package/dist/src/Breadcrumb/Breadcrumb.d.ts.map +1 -1
  16. package/dist/src/Breadcrumb/Breadcrumb.stories.d.ts +9 -7
  17. package/dist/src/Breadcrumb/Breadcrumb.stories.d.ts.map +1 -1
  18. package/dist/src/Breadcrumb/Breadcrumbs.d.ts +0 -1
  19. package/dist/src/Breadcrumb/Breadcrumbs.d.ts.map +1 -1
  20. package/dist/src/Button/Button.d.ts +1 -1
  21. package/dist/src/Button/Button.d.ts.map +1 -1
  22. package/dist/src/Button/Button.stories.d.ts +3 -4
  23. package/dist/src/Button/Button.stories.d.ts.map +1 -1
  24. package/dist/src/Checkbox/Checkbox.d.ts +0 -1
  25. package/dist/src/Checkbox/Checkbox.d.ts.map +1 -1
  26. package/dist/src/Checkbox/Checkbox.stories.d.ts +7 -6
  27. package/dist/src/Checkbox/Checkbox.stories.d.ts.map +1 -1
  28. package/dist/src/ColorSelect/ColorSelect.stories.d.ts +6 -5
  29. package/dist/src/ColorSelect/ColorSelect.stories.d.ts.map +1 -1
  30. package/dist/src/DataTable/DataTable.d.ts +35 -35
  31. package/dist/src/DataTable/DataTable.d.ts.map +1 -1
  32. package/dist/src/DataTable/DataTable.stories.d.ts +23 -926
  33. package/dist/src/DataTable/DataTable.stories.d.ts.map +1 -1
  34. package/dist/src/DataTable/DataTableBody.d.ts +1 -1
  35. package/dist/src/DataTable/DataTableBody.d.ts.map +1 -1
  36. package/dist/src/DataTable/DataTableCell.d.ts +1 -1
  37. package/dist/src/DataTable/DataTableCell.d.ts.map +1 -1
  38. package/dist/src/DataTable/DataTableCellContent.d.ts +1 -1
  39. package/dist/src/DataTable/DataTableCellContent.d.ts.map +1 -1
  40. package/dist/src/DataTable/DataTableHead.d.ts +1 -1
  41. package/dist/src/DataTable/DataTableHead.d.ts.map +1 -1
  42. package/dist/src/DataTable/DataTableHeader.d.ts +1 -1
  43. package/dist/src/DataTable/DataTableHeader.d.ts.map +1 -1
  44. package/dist/src/DataTable/DataTableRow.d.ts +1 -1
  45. package/dist/src/DataTable/DataTableRow.d.ts.map +1 -1
  46. package/dist/src/DataTableContainer/DataTableContainer.d.ts +6 -6
  47. package/dist/src/DataTableContainer/DataTableContainer.d.ts.map +1 -1
  48. package/dist/src/DataTableContainer/DataTableContainer.stories.d.ts +7 -41
  49. package/dist/src/DataTableContainer/DataTableContainer.stories.d.ts.map +1 -1
  50. package/dist/src/Dialog/Dialog.stories.d.ts +3 -4
  51. package/dist/src/Dialog/Dialog.stories.d.ts.map +1 -1
  52. package/dist/src/Divider/Divider.d.ts +1 -1
  53. package/dist/src/Divider/Divider.d.ts.map +1 -1
  54. package/dist/src/Divider/Divider.stories.d.ts +4 -3
  55. package/dist/src/Divider/Divider.stories.d.ts.map +1 -1
  56. package/dist/src/Dropdown/Dropdown.stories.d.ts +7 -7
  57. package/dist/src/Dropdown/Dropdown.stories.d.ts.map +1 -1
  58. package/dist/src/Dropdown/DropdownOption.d.ts +1 -1
  59. package/dist/src/Dropdown/DropdownOption.d.ts.map +1 -1
  60. package/dist/src/EditableWell/EditableWell.stories.d.ts +6 -4
  61. package/dist/src/EditableWell/EditableWell.stories.d.ts.map +1 -1
  62. package/dist/src/FauxPhone/FauxPhone.stories.d.ts +3 -3
  63. package/dist/src/FauxPhone/FauxPhone.stories.d.ts.map +1 -1
  64. package/dist/src/FeatureWell/FeatureWell.d.ts +1 -1
  65. package/dist/src/FeatureWell/FeatureWell.d.ts.map +1 -1
  66. package/dist/src/FeatureWell/FeatureWell.stories.d.ts +3 -3
  67. package/dist/src/FeatureWell/FeatureWell.stories.d.ts.map +1 -1
  68. package/dist/src/FeatureWell/FeatureWellButton.d.ts +1 -1
  69. package/dist/src/FeatureWell/FeatureWellButton.d.ts.map +1 -1
  70. package/dist/src/FeatureWell/FeatureWellColumn.d.ts +1 -1
  71. package/dist/src/FeatureWell/FeatureWellColumn.d.ts.map +1 -1
  72. package/dist/src/FeatureWell/FeatureWellImage.d.ts +1 -1
  73. package/dist/src/FeatureWell/FeatureWellImage.d.ts.map +1 -1
  74. package/dist/src/FeatureWell/FeatureWellText.d.ts +1 -1
  75. package/dist/src/FeatureWell/FeatureWellText.d.ts.map +1 -1
  76. package/dist/src/FileUpload/FileUpload.stories.d.ts +4 -4
  77. package/dist/src/FileUpload/FileUpload.stories.d.ts.map +1 -1
  78. package/dist/src/FocusTrap/FocusTrap.d.ts +1 -1
  79. package/dist/src/FocusTrap/FocusTrap.d.ts.map +1 -1
  80. package/dist/src/Grid/Grid.stories.d.ts +4 -2
  81. package/dist/src/Grid/Grid.stories.d.ts.map +1 -1
  82. package/dist/src/HorizontalLoader/HorizontalLoader.d.ts +1 -1
  83. package/dist/src/HorizontalLoader/HorizontalLoader.d.ts.map +1 -1
  84. package/dist/src/HorizontalLoader/HorizontalLoader.stories.d.ts +4 -2
  85. package/dist/src/HorizontalLoader/HorizontalLoader.stories.d.ts.map +1 -1
  86. package/dist/src/IconButton/IconButton.stories.d.ts +3 -4
  87. package/dist/src/IconButton/IconButton.stories.d.ts.map +1 -1
  88. package/dist/src/IconLinkButton/IconLinkButton.stories.d.ts +5 -4
  89. package/dist/src/IconLinkButton/IconLinkButton.stories.d.ts.map +1 -1
  90. package/dist/src/ImageUpload/ImageUpload.d.ts +2 -0
  91. package/dist/src/ImageUpload/ImageUpload.d.ts.map +1 -1
  92. package/dist/src/ImageUpload/ImageUpload.stories.d.ts +9 -8
  93. package/dist/src/ImageUpload/ImageUpload.stories.d.ts.map +1 -1
  94. package/dist/src/Input/Input.d.ts +0 -1
  95. package/dist/src/Input/Input.d.ts.map +1 -1
  96. package/dist/src/Input/Input.stories.d.ts +15 -14
  97. package/dist/src/Input/Input.stories.d.ts.map +1 -1
  98. package/dist/src/LinkButton/LinkButton.d.ts +1 -1
  99. package/dist/src/LinkButton/LinkButton.d.ts.map +1 -1
  100. package/dist/src/LinkButton/LinkButton.stories.d.ts +4 -3
  101. package/dist/src/LinkButton/LinkButton.stories.d.ts.map +1 -1
  102. package/dist/src/List/List.stories.d.ts +17 -16
  103. package/dist/src/List/List.stories.d.ts.map +1 -1
  104. package/dist/src/ListItem/ListItem.d.ts +2 -2
  105. package/dist/src/ListItem/ListItem.d.ts.map +1 -1
  106. package/dist/src/ListItem/ListItem.stories.d.ts +12 -31
  107. package/dist/src/ListItem/ListItem.stories.d.ts.map +1 -1
  108. package/dist/src/ListItemActions/ListItemActions.d.ts +1 -2
  109. package/dist/src/ListItemActions/ListItemActions.d.ts.map +1 -1
  110. package/dist/src/ListItemContent/ListItemContent.d.ts +1 -2
  111. package/dist/src/ListItemContent/ListItemContent.d.ts.map +1 -1
  112. package/dist/src/ListItemOrderMarker/ListItemOrderMarker.d.ts +1 -1
  113. package/dist/src/ListItemOrderMarker/ListItemOrderMarker.d.ts.map +1 -1
  114. package/dist/src/ListItemText/ListItemText.d.ts +1 -1
  115. package/dist/src/ListItemText/ListItemText.d.ts.map +1 -1
  116. package/dist/src/ListItemText/ListItemText.stories.d.ts +7 -5
  117. package/dist/src/ListItemText/ListItemText.stories.d.ts.map +1 -1
  118. package/dist/src/LoadingSpinner/LoadingSpinner.d.ts +1 -2
  119. package/dist/src/LoadingSpinner/LoadingSpinner.d.ts.map +1 -1
  120. package/dist/src/LoadingSpinner/LoadingSpinner.stories.d.ts +7 -0
  121. package/dist/src/LoadingSpinner/LoadingSpinner.stories.d.ts.map +1 -0
  122. package/dist/src/Navs/Navs.stories.d.ts +1 -1
  123. package/dist/src/Navs/Navs.stories.d.ts.map +1 -1
  124. package/dist/src/PageTitle/PageTitle.d.ts +1 -1
  125. package/dist/src/PageTitle/PageTitle.d.ts.map +1 -1
  126. package/dist/src/PageTitle/PageTitle.stories.d.ts +8 -6
  127. package/dist/src/PageTitle/PageTitle.stories.d.ts.map +1 -1
  128. package/dist/src/Pagination/Pagination.d.ts +1 -1
  129. package/dist/src/Pagination/Pagination.d.ts.map +1 -1
  130. package/dist/src/Pagination/Pagination.stories.d.ts +2 -2
  131. package/dist/src/Pagination/Pagination.stories.d.ts.map +1 -1
  132. package/dist/src/Popover/Popover.d.ts +1 -1
  133. package/dist/src/Popover/Popover.d.ts.map +1 -1
  134. package/dist/src/Popover/Popover.stories.d.ts +4 -2
  135. package/dist/src/Popover/Popover.stories.d.ts.map +1 -1
  136. package/dist/src/PopoverBody/PopoverBody.d.ts +1 -1
  137. package/dist/src/PopoverBody/PopoverBody.d.ts.map +1 -1
  138. package/dist/src/PopoverBody/PopoverBodyContents.d.ts +1 -1
  139. package/dist/src/PopoverBody/PopoverBodyContents.d.ts.map +1 -1
  140. package/dist/src/PopoverBody/PopoverBodyWrapper.d.ts +1 -2
  141. package/dist/src/PopoverBody/PopoverBodyWrapper.d.ts.map +1 -1
  142. package/dist/src/PopoverTrigger/PopoverTrigger.d.ts +1 -2
  143. package/dist/src/PopoverTrigger/PopoverTrigger.d.ts.map +1 -1
  144. package/dist/src/RadioSet/RadioSet.d.ts +0 -1
  145. package/dist/src/RadioSet/RadioSet.d.ts.map +1 -1
  146. package/dist/src/RadioSet/RadioSet.stories.d.ts +6 -5
  147. package/dist/src/RadioSet/RadioSet.stories.d.ts.map +1 -1
  148. package/dist/src/RadioSet/RadioSetItem.stories.d.ts +6 -5
  149. package/dist/src/RadioSet/RadioSetItem.stories.d.ts.map +1 -1
  150. package/dist/src/Search/Search.d.ts +0 -1
  151. package/dist/src/Search/Search.d.ts.map +1 -1
  152. package/dist/src/Search/Search.stories.d.ts +10 -9
  153. package/dist/src/Search/Search.stories.d.ts.map +1 -1
  154. package/dist/src/SearchableSelect/SearchableSelect.d.ts +0 -1
  155. package/dist/src/SearchableSelect/SearchableSelect.d.ts.map +1 -1
  156. package/dist/src/SearchableSelect/SearchableSelect.stories.d.ts +2 -2
  157. package/dist/src/SearchableSelect/SearchableSelect.stories.d.ts.map +1 -1
  158. package/dist/src/SegmentedControl/SegmentedControl.d.ts +0 -1
  159. package/dist/src/SegmentedControl/SegmentedControl.d.ts.map +1 -1
  160. package/dist/src/SegmentedControl/SegmentedControl.stories.d.ts +5 -4
  161. package/dist/src/SegmentedControl/SegmentedControl.stories.d.ts.map +1 -1
  162. package/dist/src/SegmentedControl/SegmentedControlItem.d.ts +1 -1
  163. package/dist/src/SegmentedControl/SegmentedControlItem.d.ts.map +1 -1
  164. package/dist/src/Select/Option.d.ts +1 -1
  165. package/dist/src/Select/Option.d.ts.map +1 -1
  166. package/dist/src/Select/Select.stories.d.ts +18 -17
  167. package/dist/src/Select/Select.stories.d.ts.map +1 -1
  168. package/dist/src/SideNav/SideNav.d.ts +15 -16
  169. package/dist/src/SideNav/SideNav.d.ts.map +1 -1
  170. package/dist/src/SideNav/SideNav.stories.d.ts +5 -4
  171. package/dist/src/SideNav/SideNav.stories.d.ts.map +1 -1
  172. package/dist/src/SideNav/SideNavContent.d.ts +0 -1
  173. package/dist/src/SideNav/SideNavContent.d.ts.map +1 -1
  174. package/dist/src/SideNav/SideNavFooter.d.ts +0 -1
  175. package/dist/src/SideNav/SideNavFooter.d.ts.map +1 -1
  176. package/dist/src/SideNav/SideNavGroup.d.ts +0 -1
  177. package/dist/src/SideNav/SideNavGroup.d.ts.map +1 -1
  178. package/dist/src/SideNav/SideNavGroupDivider.d.ts +1 -1
  179. package/dist/src/SideNav/SideNavGroupLabel.d.ts +0 -1
  180. package/dist/src/SideNav/SideNavGroupLabel.d.ts.map +1 -1
  181. package/dist/src/SideNav/SideNavHeader.d.ts +0 -1
  182. package/dist/src/SideNav/SideNavHeader.d.ts.map +1 -1
  183. package/dist/src/SideNav/SideNavItem.d.ts +1 -1
  184. package/dist/src/SideNav/SideNavItemIcon.d.ts +1 -1
  185. package/dist/src/SideNav/SideNavItems.d.ts +0 -1
  186. package/dist/src/SideNav/SideNavItems.d.ts.map +1 -1
  187. package/dist/src/Switch/Switch.stories.d.ts +4 -3
  188. package/dist/src/Switch/Switch.stories.d.ts.map +1 -1
  189. package/dist/src/Tab/Tab.stories.d.ts +7 -0
  190. package/dist/src/Tab/Tab.stories.d.ts.map +1 -0
  191. package/dist/src/TabBar/TabBar.d.ts +1 -1
  192. package/dist/src/TabBar/TabBar.d.ts.map +1 -1
  193. package/dist/src/TabBar/TabBar.stories.d.ts +6 -0
  194. package/dist/src/TabBar/TabBar.stories.d.ts.map +1 -0
  195. package/dist/src/TabBar/TabBarItem.d.ts +1 -1
  196. package/dist/src/TabBar/TabBarItem.d.ts.map +1 -1
  197. package/dist/src/Table/Table.d.ts +1 -1
  198. package/dist/src/Table/Table.d.ts.map +1 -1
  199. package/dist/src/Table/Table.stories.d.ts +3 -2
  200. package/dist/src/Table/Table.stories.d.ts.map +1 -1
  201. package/dist/src/Tabs/TabPanel.d.ts +1 -1
  202. package/dist/src/Tabs/TabPanel.d.ts.map +1 -1
  203. package/dist/src/Tabs/Tabs.stories.d.ts +1 -1
  204. package/dist/src/Tabs/Tabs.stories.d.ts.map +1 -1
  205. package/dist/src/Tag/Tag.d.ts +1 -1
  206. package/dist/src/Tag/Tag.d.ts.map +1 -1
  207. package/dist/src/Tag/Tag.stories.d.ts +4 -4
  208. package/dist/src/Tag/Tag.stories.d.ts.map +1 -1
  209. package/dist/src/TextArea/TextArea.d.ts +0 -1
  210. package/dist/src/TextArea/TextArea.d.ts.map +1 -1
  211. package/dist/src/TextArea/TextArea.stories.d.ts +11 -10
  212. package/dist/src/TextArea/TextArea.stories.d.ts.map +1 -1
  213. package/dist/src/TimePicker/TimePicker.stories.d.ts +6 -5
  214. package/dist/src/TimePicker/TimePicker.stories.d.ts.map +1 -1
  215. package/dist/src/Toast/Toast.stories.d.ts +8 -8
  216. package/dist/src/Toast/Toast.stories.d.ts.map +1 -1
  217. package/dist/src/Tooltip/Tooltip.d.ts +1 -1
  218. package/dist/src/Tooltip/Tooltip.d.ts.map +1 -1
  219. package/dist/src/Tooltip/Tooltip.stories.d.ts +4 -2
  220. package/dist/src/Tooltip/Tooltip.stories.d.ts.map +1 -1
  221. package/dist/src/Typography/Heading/Heading.d.ts +0 -1
  222. package/dist/src/Typography/Heading/Heading.d.ts.map +1 -1
  223. package/dist/src/Typography/Heading/Heading.stories.d.ts +4 -3
  224. package/dist/src/Typography/Heading/Heading.stories.d.ts.map +1 -1
  225. package/dist/src/Typography/Text/Text.d.ts +0 -1
  226. package/dist/src/Typography/Text/Text.d.ts.map +1 -1
  227. package/dist/src/Typography/Text/Text.stories.d.ts +4 -3
  228. package/dist/src/Typography/Text/Text.stories.d.ts.map +1 -1
  229. package/dist/src/UserProfileButton/UserProfileButton.stories.d.ts +7 -9
  230. package/dist/src/UserProfileButton/UserProfileButton.stories.d.ts.map +1 -1
  231. package/dist/src/hooks/useCombinedRefs.d.ts.map +1 -1
  232. package/dist/src/hooks/useOnClickOutside.d.ts +3 -3
  233. package/dist/src/hooks/useOnClickOutside.d.ts.map +1 -1
  234. package/dist/src/test-utils/test-utils.d.ts +1 -1
  235. package/dist/src/test-utils/test-utils.d.ts.map +1 -1
  236. package/dist/src/utils/get-resolved-dark-mode-value.d.ts +1 -1
  237. package/dist/src/utils/get-resolved-dark-mode-value.d.ts.map +1 -1
  238. package/dist/src/utils/get-resolved-logical-property.d.ts +1 -1
  239. package/dist/src/utils/get-resolved-logical-property.d.ts.map +1 -1
  240. package/dist/src/utils/storybook-helpers.d.ts +64 -0
  241. package/dist/src/utils/storybook-helpers.d.ts.map +1 -0
  242. package/package.json +18 -16
@@ -1,12 +1,13 @@
1
- /// <reference types="react" />
2
- declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("./TextArea").TextAreaProps & import("react").RefAttributes<HTMLTextAreaElement>>;
1
+ import { Meta } from '@storybook/react';
2
+ import { TextArea } from './TextArea';
3
+ declare const _default: Meta<typeof TextArea>;
3
4
  export default _default;
4
- export declare const Uncontrolled: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./TextArea").TextAreaProps & import("react").RefAttributes<HTMLTextAreaElement>>;
5
- export declare const UncontrolledPlaceholder: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./TextArea").TextAreaProps & import("react").RefAttributes<HTMLTextAreaElement>>;
6
- export declare const Controlled: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./TextArea").TextAreaProps & import("react").RefAttributes<HTMLTextAreaElement>>;
7
- export declare const ControlledPlaceholder: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./TextArea").TextAreaProps & import("react").RefAttributes<HTMLTextAreaElement>>;
8
- export declare const Disabled: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./TextArea").TextAreaProps & import("react").RefAttributes<HTMLTextAreaElement>>;
9
- export declare const WithHint: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./TextArea").TextAreaProps & import("react").RefAttributes<HTMLTextAreaElement>>;
10
- export declare const WithError: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./TextArea").TextAreaProps & import("react").RefAttributes<HTMLTextAreaElement>>;
11
- export declare const WithErrorAndHint: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./TextArea").TextAreaProps & import("react").RefAttributes<HTMLTextAreaElement>>;
5
+ export declare const Uncontrolled: any;
6
+ export declare const UncontrolledPlaceholder: any;
7
+ export declare const Controlled: any;
8
+ export declare const ControlledPlaceholder: any;
9
+ export declare const Disabled: any;
10
+ export declare const WithHint: any;
11
+ export declare const WithError: any;
12
+ export declare const WithErrorAndHint: any;
12
13
  //# sourceMappingURL=TextArea.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextArea.stories.d.ts","sourceRoot":"","sources":["../../../src/TextArea/TextArea.stories.tsx"],"names":[],"mappings":";;AAKA,wBAgB2B;AAuB3B,eAAO,MAAM,YAAY,wLAAoB,CAAC;AAG9C,eAAO,MAAM,uBAAuB,wLAAoB,CAAC;AAGzD,eAAO,MAAM,UAAU,wLAAoB,CAAC;AAG5C,eAAO,MAAM,qBAAqB,wLAAoB,CAAC;AAOvD,eAAO,MAAM,QAAQ,wLAAoB,CAAC;AAG1C,eAAO,MAAM,QAAQ,wLAAoB,CAAC;AAG1C,eAAO,MAAM,SAAS,wLAAoB,CAAC;AAG3C,eAAO,MAAM,gBAAgB,wLAAoB,CAAC"}
1
+ {"version":3,"file":"TextArea.stories.d.ts","sourceRoot":"","sources":["../../../src/TextArea/TextArea.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAW,MAAM,kBAAkB,CAAC;AAGjD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;wBAkBjC,IAAI,CAAC,OAAO,QAAQ,CAAC;AAhB1B,wBAgB2B;AAuB3B,eAAO,MAAM,YAAY,KAAoB,CAAC;AAG9C,eAAO,MAAM,uBAAuB,KAAoB,CAAC;AAGzD,eAAO,MAAM,UAAU,KAAoB,CAAC;AAM5C,eAAO,MAAM,qBAAqB,KAAoB,CAAC;AAOvD,eAAO,MAAM,QAAQ,KAAoB,CAAC;AAG1C,eAAO,MAAM,QAAQ,KAAoB,CAAC;AAG1C,eAAO,MAAM,SAAS,KAAoB,CAAC;AAG3C,eAAO,MAAM,gBAAgB,KAAoB,CAAC"}
@@ -1,7 +1,8 @@
1
- /// <reference types="react" />
2
- declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("./TimePicker").TimePickerProps & import("react").RefAttributes<HTMLInputElement>>;
1
+ import { Meta } from '@storybook/react';
2
+ import { TimePicker } from './TimePicker';
3
+ declare const _default: Meta<typeof TimePicker>;
3
4
  export default _default;
4
- export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./TimePicker").TimePickerProps & import("react").RefAttributes<HTMLInputElement>>;
5
- export declare const Disabled: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./TimePicker").TimePickerProps & import("react").RefAttributes<HTMLInputElement>>;
6
- export declare const Error: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./TimePicker").TimePickerProps & import("react").RefAttributes<HTMLInputElement>>;
5
+ export declare const Default: any;
6
+ export declare const Disabled: any;
7
+ export declare const Error: any;
7
8
  //# sourceMappingURL=TimePicker.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TimePicker.stories.d.ts","sourceRoot":"","sources":["../../../src/TimePicker/TimePicker.stories.tsx"],"names":[],"mappings":";;AAIA,wBAO6B;AAM7B,eAAO,MAAM,OAAO,yLAAoB,CAAC;AAGzC,eAAO,MAAM,QAAQ,yLAAoB,CAAC;AAG1C,eAAO,MAAM,KAAK,yLAAoB,CAAC"}
1
+ {"version":3,"file":"TimePicker.stories.d.ts","sourceRoot":"","sources":["../../../src/TimePicker/TimePicker.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAW,MAAM,kBAAkB,CAAC;AAGjD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;wBASrC,IAAI,CAAC,OAAO,UAAU,CAAC;AAP5B,wBAO6B;AAM7B,eAAO,MAAM,OAAO,KAAoB,CAAC;AAGzC,eAAO,MAAM,QAAQ,KAAoB,CAAC;AAG1C,eAAO,MAAM,KAAK,KAAoB,CAAC"}
@@ -3,12 +3,12 @@ declare const _default: {
3
3
  title: string;
4
4
  };
5
5
  export default _default;
6
- export declare const StandardToast: () => JSX.Element;
7
- export declare const ErrorLeftToast: () => JSX.Element;
8
- export declare const SuccessRightToast: () => JSX.Element;
9
- export declare const InfoRightToast: () => JSX.Element;
10
- export declare const CautionRightToast: () => JSX.Element;
11
- export declare const TimeoutLongToast: () => JSX.Element;
12
- export declare const NoDismissToast: () => JSX.Element;
13
- export declare const MultipleToasts: () => JSX.Element;
6
+ export declare const StandardToast: () => import("react/jsx-runtime").JSX.Element;
7
+ export declare const ErrorLeftToast: () => import("react/jsx-runtime").JSX.Element;
8
+ export declare const SuccessRightToast: () => import("react/jsx-runtime").JSX.Element;
9
+ export declare const InfoRightToast: () => import("react/jsx-runtime").JSX.Element;
10
+ export declare const CautionRightToast: () => import("react/jsx-runtime").JSX.Element;
11
+ export declare const TimeoutLongToast: () => import("react/jsx-runtime").JSX.Element;
12
+ export declare const NoDismissToast: () => import("react/jsx-runtime").JSX.Element;
13
+ export declare const MultipleToasts: () => import("react/jsx-runtime").JSX.Element;
14
14
  //# sourceMappingURL=Toast.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Toast.stories.d.ts","sourceRoot":"","sources":["../../../src/Toast/Toast.stories.tsx"],"names":[],"mappings":";;;;AAEA,wBAGE;AAEF,eAAO,MAAM,aAAa,mBAEzB,CAAC;AAEF,eAAO,MAAM,cAAc,mBAM1B,CAAC;AAEF,eAAO,MAAM,iBAAiB,mBAM7B,CAAC;AAEF,eAAO,MAAM,cAAc,mBAM1B,CAAC;AAEF,eAAO,MAAM,iBAAiB,mBAM7B,CAAC;AAEF,eAAO,MAAM,gBAAgB,mBAW5B,CAAC;AAEF,eAAO,MAAM,cAAc,mBAM1B,CAAC;AAEF,eAAO,MAAM,cAAc,mBAU1B,CAAC"}
1
+ {"version":3,"file":"Toast.stories.d.ts","sourceRoot":"","sources":["../../../src/Toast/Toast.stories.tsx"],"names":[],"mappings":";;;;AAEA,wBAGE;AAEF,eAAO,MAAM,aAAa,+CAEzB,CAAC;AAEF,eAAO,MAAM,cAAc,+CAM1B,CAAC;AAEF,eAAO,MAAM,iBAAiB,+CAM7B,CAAC;AAEF,eAAO,MAAM,cAAc,+CAM1B,CAAC;AAEF,eAAO,MAAM,iBAAiB,+CAM7B,CAAC;AAEF,eAAO,MAAM,gBAAgB,+CAW5B,CAAC;AAEF,eAAO,MAAM,cAAc,+CAM1B,CAAC;AAEF,eAAO,MAAM,cAAc,+CAU1B,CAAC"}
@@ -27,5 +27,5 @@ export interface TooltipProps extends AllHTMLAttributes<HTMLDivElement> {
27
27
  * }
28
28
  * ```
29
29
  */
30
- export declare const Tooltip: ({ content, className, ...rest }: TooltipProps) => JSX.Element;
30
+ export declare const Tooltip: ({ content, className, ...rest }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
31
31
  //# sourceMappingURL=Tooltip.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAI1C,MAAM,WAAW,YAAa,SAAQ,iBAAiB,CAAC,cAAc,CAAC;IACrE,kDAAkD;IAClD,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,OAAO,oCAAqC,YAAY,gBAYpE,CAAC"}
1
+ {"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAI1C,MAAM,WAAW,YAAa,SAAQ,iBAAiB,CAAC,cAAc,CAAC;IACrE,kDAAkD;IAClD,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,OAAO,oCAAqC,YAAY,4CAYpE,CAAC"}
@@ -1,4 +1,6 @@
1
- declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("./Tooltip").TooltipProps>;
1
+ import { Meta } from '@storybook/react';
2
+ import { Tooltip } from './Tooltip';
3
+ declare const _default: Meta<typeof Tooltip>;
2
4
  export default _default;
3
- export declare const Story: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./Tooltip").TooltipProps>;
5
+ export declare const Story: any;
4
6
  //# sourceMappingURL=Tooltip.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.stories.d.ts","sourceRoot":"","sources":["../../../src/Tooltip/Tooltip.stories.tsx"],"names":[],"mappings":";AAIA,wBAG0B;AAK1B,eAAO,MAAM,KAAK,iIAAoB,CAAC"}
1
+ {"version":3,"file":"Tooltip.stories.d.ts","sourceRoot":"","sources":["../../../src/Tooltip/Tooltip.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAW,MAAM,kBAAkB,CAAC;AAGjD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;wBAK/B,IAAI,CAAC,OAAO,OAAO,CAAC;AAHzB,wBAG0B;AAK1B,eAAO,MAAM,KAAK,KAAoB,CAAC"}
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TypographyProps } from '../Typography';
3
2
  declare const resolveHeadingLevel: {
4
3
  readonly 1: "h1";
@@ -1 +1 @@
1
- {"version":3,"file":"Heading.d.ts","sourceRoot":"","sources":["../../../../src/Typography/Heading/Heading.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAGhD,QAAA,MAAM,mBAAmB;;;;;CAKf,CAAC;AAEX,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,eAAe,EAAE,WAAW,CAAC;IACtE,KAAK,CAAC,EAAE,MAAM,OAAO,mBAAmB,CAAC;CAC1C;AAwBD;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,OAAO,sGAA+B,CAAC"}
1
+ {"version":3,"file":"Heading.d.ts","sourceRoot":"","sources":["../../../../src/Typography/Heading/Heading.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAGhD,QAAA,MAAM,mBAAmB;;;;;CAKf,CAAC;AAEX,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,eAAe,EAAE,WAAW,CAAC;IACtE,KAAK,CAAC,EAAE,MAAM,OAAO,mBAAmB,CAAC;CAC1C;AAwBD;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,OAAO,sGAA+B,CAAC"}
@@ -1,5 +1,6 @@
1
- /// <reference types="react" />
2
- declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("./Heading").HeadingProps & import("react").RefAttributes<HTMLElement>>;
1
+ import { Meta } from '@storybook/react';
2
+ import { Heading } from './Heading';
3
+ declare const _default: Meta<typeof Heading>;
3
4
  export default _default;
4
- export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./Heading").HeadingProps & import("react").RefAttributes<HTMLElement>>;
5
+ export declare const Default: any;
5
6
  //# sourceMappingURL=Heading.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Heading.stories.d.ts","sourceRoot":"","sources":["../../../../src/Typography/Heading/Heading.stories.tsx"],"names":[],"mappings":";;AAIA,wBA+B0B;AAK1B,eAAO,MAAM,OAAO,8KAAoB,CAAC"}
1
+ {"version":3,"file":"Heading.stories.d.ts","sourceRoot":"","sources":["../../../../src/Typography/Heading/Heading.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAW,MAAM,kBAAkB,CAAC;AAGjD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;wBAiC/B,IAAI,CAAC,OAAO,OAAO,CAAC;AA/BzB,wBA+B0B;AAK1B,eAAO,MAAM,OAAO,KAAoB,CAAC"}
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TypographyProps } from '../Typography';
3
2
  /**
4
3
  * Text is the used to render text and paragraphs within an interface. Text component renders as a **paragraph** tag by default. Other elements can be passed in through the **component** prop.
@@ -1 +1 @@
1
- {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../../src/Typography/Text/Text.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAyBhD;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,IAAI,yGAA4B,CAAC"}
1
+ {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../../src/Typography/Text/Text.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAyBhD;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,IAAI,yGAA4B,CAAC"}
@@ -1,5 +1,6 @@
1
- /// <reference types="react" />
2
- declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("../Typography").TypographyProps & import("react").RefAttributes<HTMLElement>>;
1
+ import { Meta } from '@storybook/react';
2
+ import { Text } from './Text';
3
+ declare const _default: Meta<typeof Text>;
3
4
  export default _default;
4
- export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("../Typography").TypographyProps & import("react").RefAttributes<HTMLElement>>;
5
+ export declare const Default: any;
5
6
  //# sourceMappingURL=Text.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Text.stories.d.ts","sourceRoot":"","sources":["../../../../src/Typography/Text/Text.stories.tsx"],"names":[],"mappings":";;AAIA,wBAauB;AAKvB,eAAO,MAAM,OAAO,qLAAoB,CAAC"}
1
+ {"version":3,"file":"Text.stories.d.ts","sourceRoot":"","sources":["../../../../src/Typography/Text/Text.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAW,MAAM,kBAAkB,CAAC;AAGjD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;wBAezB,IAAI,CAAC,OAAO,IAAI,CAAC;AAbtB,wBAauB;AAKvB,eAAO,MAAM,OAAO,KAAoB,CAAC"}
@@ -1,11 +1,9 @@
1
- import { UserProfileButtonProps } from './UserProfileButton';
2
- declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, UserProfileButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
1
+ import { Meta } from '@storybook/react';
2
+ import { UserProfileButton } from './UserProfileButton';
3
+ declare const _default: Meta<typeof UserProfileButton>;
3
4
  export default _default;
4
- type TemplateProps = Omit<UserProfileButtonProps, 'label' | 'userName' | 'userAvatar'> & {
5
- avatarSrc?: string | null;
6
- };
7
- export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, TemplateProps>;
8
- export declare const WithoutImage: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, TemplateProps>;
9
- export declare const WithPopover: () => JSX.Element;
10
- export declare const ThemeWhite: () => JSX.Element;
5
+ export declare const Default: any;
6
+ export declare const WithoutImage: any;
7
+ export declare const WithPopover: () => import("react/jsx-runtime").JSX.Element;
8
+ export declare const ThemeWhite: () => import("react/jsx-runtime").JSX.Element;
11
9
  //# sourceMappingURL=UserProfileButton.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UserProfileButton.stories.d.ts","sourceRoot":"","sources":["../../../src/UserProfileButton/UserProfileButton.stories.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAqB,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;;AAEhF,wBAIoC;AAEpC,KAAK,aAAa,GAAG,IAAI,CAAC,sBAAsB,EAAE,OAAO,GAAG,UAAU,GAAG,YAAY,CAAC,GAAG;IAAE,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAAC;AAyBvH,eAAO,MAAM,OAAO,8GAAoB,CAAC;AAEzC,eAAO,MAAM,YAAY,8GAAoB,CAAC;AAI9C,eAAO,MAAM,WAAW,mBAwBvB,CAAC;AAEF,eAAO,MAAM,UAAU,mBAOtB,CAAC"}
1
+ {"version":3,"file":"UserProfileButton.stories.d.ts","sourceRoot":"","sources":["../../../src/UserProfileButton/UserProfileButton.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAW,MAAM,kBAAkB,CAAC;AAUjD,OAAO,EAAE,iBAAiB,EAA0B,MAAM,qBAAqB,CAAC;wBAM3E,IAAI,CAAC,OAAO,iBAAiB,CAAC;AAJnC,wBAIoC;AA2BpC,eAAO,MAAM,OAAO,KAAoB,CAAC;AAEzC,eAAO,MAAM,YAAY,KAAoB,CAAC;AAI9C,eAAO,MAAM,WAAW,+CAwBvB,CAAC;AAEF,eAAO,MAAM,UAAU,+CAOtB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useCombinedRefs.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCombinedRefs.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAa,MAAM,OAAO,CAAC;AAElE,MAAM,WAAW,iBAAiB,CAAC,CAAC;IAElC,YAAY,EAAE,YAAY,CAAC,GAAG,CAAC,CAAC;IAChC,QAAQ,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC;CAC/B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,eAAO,MAAM,eAAe,8EAa3B,CAAC"}
1
+ {"version":3,"file":"useCombinedRefs.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCombinedRefs.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAa,MAAM,OAAO,CAAC;AAElE,MAAM,WAAW,iBAAiB,CAAC,CAAC;IAElC,YAAY,EAAE,YAAY,CAAC,GAAG,CAAC,CAAC;IAChC,QAAQ,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC;CAC/B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,eAAO,MAAM,eAAe,GAAI,CAAC,8BAA+B,iBAAiB,CAAC,CAAC,CAAC,wBAanF,CAAC"}
@@ -1,10 +1,10 @@
1
1
  import { RefObject } from 'react';
2
2
  type Handler = (event: MouseEvent) => void;
3
- export interface UseOnClickOutsideProps<T> {
3
+ export interface UseOnClickOutsideProps {
4
4
  /** Callback that is invoked when the user clicks outside the element referenced by `ref`. */
5
5
  handler: Handler;
6
6
  /** Reference to the element. */
7
- ref: RefObject<T>;
7
+ ref: RefObject<HTMLElement | null>;
8
8
  }
9
9
  /**
10
10
  * Invokes `handler` when the user clicks outside the element referenced by `ref`.
@@ -27,6 +27,6 @@ export interface UseOnClickOutsideProps<T> {
27
27
  * }
28
28
  * ```
29
29
  */
30
- export declare function useOnClickOutside<T extends HTMLElement = HTMLElement>({ handler, ref, }: UseOnClickOutsideProps<T>): void;
30
+ export declare function useOnClickOutside({ handler, ref }: UseOnClickOutsideProps): void;
31
31
  export {};
32
32
  //# sourceMappingURL=useOnClickOutside.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useOnClickOutside.d.ts","sourceRoot":"","sources":["../../../src/hooks/useOnClickOutside.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAa,MAAM,OAAO,CAAC;AAE7C,KAAK,OAAO,GAAG,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;AAE3C,MAAM,WAAW,sBAAsB,CAAC,CAAC;IACvC,6FAA6F;IAC7F,OAAO,EAAE,OAAO,CAAC;IACjB,gCAAgC;IAChC,GAAG,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC;CACnB;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW,EAAE,EACrE,OAAO,EACP,GAAG,GACJ,EAAE,sBAAsB,CAAC,CAAC,CAAC,GAAG,IAAI,CAgBlC"}
1
+ {"version":3,"file":"useOnClickOutside.d.ts","sourceRoot":"","sources":["../../../src/hooks/useOnClickOutside.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAa,MAAM,OAAO,CAAC;AAE7C,KAAK,OAAO,GAAG,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;AAE3C,MAAM,WAAW,sBAAsB;IACrC,6FAA6F;IAC7F,OAAO,EAAE,OAAO,CAAC;IACjB,gCAAgC;IAChC,GAAG,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;CACpC;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,EAAE,sBAAsB,GAAG,IAAI,CAgBhF"}
@@ -1,7 +1,7 @@
1
1
  import { render, RenderOptions } from '@testing-library/react';
2
2
  import userEvent from '@testing-library/user-event';
3
3
  import { ReactElement } from 'react';
4
- declare const customRender: (ui: ReactElement, options?: Omit<RenderOptions, 'wrapper'>) => ReturnType<typeof render> & {
4
+ declare const customRender: (ui: ReactElement, options?: Omit<RenderOptions, "wrapper">) => ReturnType<typeof render> & {
5
5
  user: ReturnType<typeof userEvent.setup>;
6
6
  };
7
7
  export * from '@testing-library/react';
@@ -1 +1 @@
1
- {"version":3,"file":"test-utils.d.ts","sourceRoot":"","sources":["../../../src/test-utils/test-utils.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,SAAS,MAAM,6BAA6B,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAMrC,QAAA,MAAM,YAAY,OACZ,YAAY,YACN,KAAK,aAAa,EAAE,SAAS,CAAC,KACvC,WAAW,aAAa,CAAC,GAAG;IAC7B,IAAI,EAAE,WAAW,OAAO,UAAU,KAAK,CAAC,CAAC;CAIzC,CAAC;AAEH,cAAc,wBAAwB,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,CAAC"}
1
+ {"version":3,"file":"test-utils.d.ts","sourceRoot":"","sources":["../../../src/test-utils/test-utils.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,SAAS,MAAM,6BAA6B,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAMrC,QAAA,MAAM,YAAY,OACZ,YAAY,YACN,IAAI,CAAC,aAAa,EAAE,SAAS,CAAC,KACvC,UAAU,CAAC,OAAO,MAAM,CAAC,GAAG;IAC7B,IAAI,EAAE,UAAU,CAAC,OAAO,SAAS,CAAC,KAAK,CAAC,CAAC;CAIzC,CAAC;AAEH,cAAc,wBAAwB,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,CAAC"}
@@ -20,6 +20,6 @@ type DarkModeProperties = TextDarkModeProperties | BgDarkModeProperties | Border
20
20
  *
21
21
  * ```
22
22
  */
23
- export declare const getResolvedDarkModeValue: <T extends string | DarkModeProperties>(value?: T | undefined) => string | undefined;
23
+ export declare const getResolvedDarkModeValue: <T extends string | DarkModeProperties>(value?: T) => string | undefined;
24
24
  export {};
25
25
  //# sourceMappingURL=get-resolved-dark-mode-value.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-resolved-dark-mode-value.d.ts","sourceRoot":"","sources":["../../../src/utils/get-resolved-dark-mode-value.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAE1G,KAAK,kBAAkB,GAAG,sBAAsB,GAAG,oBAAoB,GAAG,wBAAwB,CAAC;AAEnG;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,wBAAwB,oEAAuD,MAAM,GAAG,SAUpG,CAAC"}
1
+ {"version":3,"file":"get-resolved-dark-mode-value.d.ts","sourceRoot":"","sources":["../../../src/utils/get-resolved-dark-mode-value.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAE1G,KAAK,kBAAkB,GAAG,sBAAsB,GAAG,oBAAoB,GAAG,wBAAwB,CAAC;AAEnG;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,wBAAwB,GAAI,CAAC,SAAS,MAAM,GAAG,kBAAkB,UAAU,CAAC,KAAG,MAAM,GAAG,SAUpG,CAAC"}
@@ -20,6 +20,6 @@ type FlowRelativeProperties = MarginLogicalProperties | PaddingLogicalProperties
20
20
  *
21
21
  * ```
22
22
  */
23
- export declare const getResolvedLogicalProperty: <T extends string | FlowRelativeProperties>(value?: T | undefined) => string | undefined;
23
+ export declare const getResolvedLogicalProperty: <T extends string | FlowRelativeProperties>(value?: T) => string | undefined;
24
24
  export {};
25
25
  //# sourceMappingURL=get-resolved-logical-property.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-resolved-logical-property.d.ts","sourceRoot":"","sources":["../../../src/utils/get-resolved-logical-property.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAErF,KAAK,sBAAsB,GAAG,uBAAuB,GAAG,wBAAwB,CAAC;AAEjF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,0BAA0B,wEAEpC,MAAM,GAAG,SAUX,CAAC"}
1
+ {"version":3,"file":"get-resolved-logical-property.d.ts","sourceRoot":"","sources":["../../../src/utils/get-resolved-logical-property.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAErF,KAAK,sBAAsB,GAAG,uBAAuB,GAAG,wBAAwB,CAAC;AAEjF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,0BAA0B,GAAI,CAAC,SAAS,MAAM,GAAG,sBAAsB,UAC1E,CAAC,KACR,MAAM,GAAG,SAUX,CAAC"}
@@ -0,0 +1,64 @@
1
+ import * as Icons from '@youversion/design-system-icons/lib/index';
2
+ import { ReactNode } from 'react';
3
+ export type IconName = keyof typeof Icons;
4
+ export declare const icons: Record<string, React.FC<React.SVGProps<SVGSVGElement>>>;
5
+ /**
6
+ * Returns the values to be passed into the `control` section of a storybook argTypes.
7
+ *
8
+ * @param optional - Boolean - Whether or not the control should have a "None" option.
9
+ * @returns An object with a labels property, an options property, and a type property.
10
+ *
11
+ * @example
12
+ * ```tsx
13
+ * import { Meta, StoryFn } from '@storybook/react';
14
+ *
15
+ * import { iconSelectControl, StorybookIcon } from '../utils/storybook-helpers';
16
+ * import { IconButton } from './IconButton';
17
+ *
18
+ * export default {
19
+ * args: {
20
+ * children: 'AaStroked',
21
+ * },
22
+ * argTypes: {
23
+ * children: iconSelectControl(false),
24
+ * },
25
+ * component: IconButton,
26
+ * title: 'Components/IconButton',
27
+ *} as Meta<typeof IconButton>;
28
+ * ```
29
+ */
30
+ export declare const iconSelectControl: (optional?: boolean) => {
31
+ control: {
32
+ labels: {
33
+ undefined: string;
34
+ };
35
+ type: string;
36
+ };
37
+ options: (string | undefined)[];
38
+ };
39
+ export interface StorybookIconProps {
40
+ /** Name of icon in design system to render. */
41
+ iconName: ReactNode;
42
+ /** Size to render the icon. */
43
+ size?: string;
44
+ }
45
+ /**
46
+ * Used for rendering out an icon in a story.
47
+ *
48
+ * Accepts {@link StorybookIconProps}.
49
+ *
50
+ * @returns Icon from design system with matching name an element.
51
+ *
52
+ * @example
53
+ * ```tsx
54
+ * import { Meta, StoryFn } from '@storybook/react';
55
+ * import { StorybookIcon } from '../utils/storybook-helpers';
56
+ * import { IconButton } from './IconButton';
57
+ *
58
+ * const Template: StoryFn<typeof IconButton> = ({ children, ...rest }) => (
59
+ * <IconButton {...rest}>{StorybookIcon({ iconName: children })}</IconButton>
60
+ * );
61
+ * ```
62
+ */
63
+ export declare const StorybookIcon: ({ iconName, size }: StorybookIconProps) => import("react").FunctionComponentElement<import("react").SVGProps<SVGSVGElement>>;
64
+ //# sourceMappingURL=storybook-helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storybook-helpers.d.ts","sourceRoot":"","sources":["../../../src/utils/storybook-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,2CAA2C,CAAC;AACnE,OAAO,EAAiB,SAAS,EAAE,MAAM,OAAO,CAAC;AAEjD,MAAM,MAAM,QAAQ,GAAG,MAAM,OAAO,KAAK,CAAC;AAE1C,eAAO,MAAM,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAEzE,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,iBAAiB,cAAe,OAAO;;;;;;;;CAenD,CAAC;AAEF,MAAM,WAAW,kBAAkB;IACjC,+CAA+C;IAC/C,QAAQ,EAAE,SAAS,CAAC;IACpB,+BAA+B;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,aAAa,uBAAwB,kBAAkB,sFAEnE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@youversion/design-system-components",
3
- "version": "1.18.2",
3
+ "version": "2.0.0",
4
4
  "main": "./dist/index.umd.js",
5
5
  "module": "./dist/index.es.js",
6
6
  "types": "./dist/index.d.ts",
@@ -22,23 +22,23 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "@radix-ui/react-slot": "1.1.0",
25
- "@youversion/design-system-core": "2.0.0",
26
- "@youversion/design-system-icons": "1.5.0",
27
- "@youversion/design-system-tokens": "1.4.1",
25
+ "@youversion/design-system-core": "3.0.0",
26
+ "@youversion/design-system-icons": "2.0.0",
27
+ "@youversion/design-system-tokens": "2.0.0",
28
28
  "clsx": "1.2.1",
29
29
  "tailwind-merge": "1.13.2"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@mdx-js/react": "1.6.22",
33
- "@storybook/react": "7.3.2",
34
- "@testing-library/dom": "9.0.0",
35
- "@testing-library/jest-dom": "5.16.5",
36
- "@testing-library/react": "14.0.0",
37
- "@testing-library/user-event": "14.4.3",
33
+ "@storybook/react": "8.5.8",
34
+ "@testing-library/dom": "10.4.0",
35
+ "@testing-library/jest-dom": "6.6.3",
36
+ "@testing-library/react": "16.2.0",
37
+ "@testing-library/user-event": "14.6.1",
38
38
  "@types/jest": "29.4.0",
39
- "@types/node": "18.14.1",
40
- "@types/react": "18.0.29",
41
- "@types/react-dom": "17.0.11",
39
+ "@types/node": "22.13.4",
40
+ "@types/react": "19.0.10",
41
+ "@types/react-dom": "19.0.4",
42
42
  "@types/testing-library__jest-dom": "5.14.5",
43
43
  "@vitejs/plugin-react": "4.0.4",
44
44
  "@youversion/types": "0.1.1",
@@ -50,18 +50,19 @@
50
50
  "postcss-import": "15.1.0",
51
51
  "postcss-mixins": "9.0.4",
52
52
  "prettier": "2.8.4",
53
- "react": "18.2.0",
53
+ "react": "19.0.0",
54
+ "react-dom": "19.0.0",
54
55
  "rollup-plugin-visualizer": "5.9.0",
55
56
  "tailwindcss": "3.3.2",
56
57
  "ts-jest": "29.0.5",
57
58
  "ts-node": "10.9.1",
58
59
  "typed-css-modules": "0.7.2",
59
- "typescript": "4.9.3",
60
+ "typescript": "5.7.3",
60
61
  "vite": "4.4.9",
61
62
  "vite-plugin-dts": "3.5.2"
62
63
  },
63
64
  "peerDependencies": {
64
- "react": ">= 18"
65
+ "react": ">= 19"
65
66
  },
66
67
  "exports": {
67
68
  ".": {
@@ -75,6 +76,7 @@
75
76
  "./dist/style.css": "./dist/style.css"
76
77
  },
77
78
  "resolutions": {
78
- "cross-spawn": "7.0.6"
79
+ "cross-spawn": "7.0.6",
80
+ "typescript": "5.7.3"
79
81
  }
80
82
  }