@nulogy/components 16.0.0 → 16.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 (471) hide show
  1. package/dist/locales/ja_JP.json +63 -0
  2. package/dist/main.js +1733 -587
  3. package/dist/main.js.map +1 -1
  4. package/dist/main.module.js +1732 -586
  5. package/dist/main.module.js.map +1 -1
  6. package/dist/src/Alert/Alert.d.ts +1 -1
  7. package/dist/src/Alert/Alert.js +3 -8
  8. package/dist/src/Alert/Alert.story.d.ts +1 -1
  9. package/dist/src/Alert/Alert.story.js +3 -9
  10. package/dist/src/Alert/CloseButton.d.ts +1 -1
  11. package/dist/src/Alert/CloseButton.js +2 -3
  12. package/dist/src/AppTag/AppTag.d.ts +1 -2
  13. package/dist/src/AppTag/AppTag.js +2 -6
  14. package/dist/src/AppTag/components/NulogyLogo.d.ts +1 -1
  15. package/dist/src/AppTag/components/NulogyLogo.js +2 -3
  16. package/dist/src/AppTag/stories/AppTag.story.d.ts +2 -3
  17. package/dist/src/AppTag/stories/AppTag.story.js +6 -8
  18. package/dist/src/AppTag/stories/AppTag.usecases.story.d.ts +5 -6
  19. package/dist/src/AppTag/stories/AppTag.usecases.story.js +12 -58
  20. package/dist/src/AsyncSelect/AsyncSelect.graphql.story.d.ts +1 -2
  21. package/dist/src/AsyncSelect/AsyncSelect.graphql.story.js +4 -4
  22. package/dist/src/AsyncSelect/AsyncSelect.js +21 -23
  23. package/dist/src/AsyncSelect/AsyncSelect.story.d.ts +9 -10
  24. package/dist/src/AsyncSelect/AsyncSelect.story.js +11 -14
  25. package/dist/src/AsyncSelect/AsyncSelectComponents.d.ts +8 -9
  26. package/dist/src/AsyncSelect/AsyncSelectComponents.js +9 -19
  27. package/dist/src/Banner/Banner.d.ts +2 -2
  28. package/dist/src/Banner/Banner.js +2 -2
  29. package/dist/src/Banner/Banner.story.d.ts +6 -7
  30. package/dist/src/Banner/Banner.story.js +7 -24
  31. package/dist/src/BottomSheet/BottomSheet.d.ts +1 -1
  32. package/dist/src/BottomSheet/BottomSheet.js +3 -17
  33. package/dist/src/BottomSheet/BottomSheet.parts.d.ts +3 -3
  34. package/dist/src/BottomSheet/BottomSheet.parts.js +6 -5
  35. package/dist/src/BottomSheet/BottomSheet.styled.d.ts +4 -4
  36. package/dist/src/BottomSheet/BottomSheetProvider.d.ts +1 -1
  37. package/dist/src/BottomSheet/BottomSheetProvider.js +2 -2
  38. package/dist/src/BottomSheet/stories/BottomSheet.actions.story.d.ts +3 -4
  39. package/dist/src/BottomSheet/stories/BottomSheet.actions.story.js +4 -9
  40. package/dist/src/BottomSheet/stories/BottomSheet.content.story.d.ts +3 -4
  41. package/dist/src/BottomSheet/stories/BottomSheet.content.story.js +4 -11
  42. package/dist/src/BottomSheet/stories/BottomSheet.features.story.d.ts +5 -6
  43. package/dist/src/BottomSheet/stories/BottomSheet.features.story.js +12 -42
  44. package/dist/src/BottomSheet/stories/BottomSheet.parts.story.d.ts +2 -3
  45. package/dist/src/BottomSheet/stories/BottomSheet.parts.story.js +3 -23
  46. package/dist/src/BottomSheet/stories/BottomSheet.story.d.ts +2 -3
  47. package/dist/src/BottomSheet/stories/BottomSheet.story.js +3 -5
  48. package/dist/src/Box/Box.story.d.ts +12 -13
  49. package/dist/src/Box/Box.story.js +14 -32
  50. package/dist/src/BrandedNavBar/BrandLogoContainer.d.ts +1 -1
  51. package/dist/src/BrandedNavBar/BrandLogoContainer.js +2 -5
  52. package/dist/src/BrandedNavBar/DesktopMenu.js +6 -9
  53. package/dist/src/BrandedNavBar/MenuTrigger.d.ts +1 -1
  54. package/dist/src/BrandedNavBar/MenuTrigger.js +12 -12
  55. package/dist/src/BrandedNavBar/MenuTriggerButton.js +7 -8
  56. package/dist/src/BrandedNavBar/MobileMenu.d.ts +1 -1
  57. package/dist/src/BrandedNavBar/MobileMenu.js +8 -24
  58. package/dist/src/BrandedNavBar/NavBar.d.ts +1 -1
  59. package/dist/src/BrandedNavBar/NavBar.js +6 -16
  60. package/dist/src/BrandedNavBar/NavBar.story.d.ts +13 -14
  61. package/dist/src/BrandedNavBar/NavBar.story.js +27 -42
  62. package/dist/src/BrandedNavBar/NavBarDropdownMenu.js +34 -39
  63. package/dist/src/BrandedNavBar/NulogyLogo.d.ts +1 -2
  64. package/dist/src/BrandedNavBar/NulogyLogo.js +2 -14
  65. package/dist/src/BrandedNavBar/NulogyLogoContainer.d.ts +1 -2
  66. package/dist/src/BrandedNavBar/NulogyLogoContainer.js +2 -5
  67. package/dist/src/BrandedNavBar/SmallNavBar.js +9 -17
  68. package/dist/src/BrandedNavBar/SmallNavBar.story.d.ts +6 -7
  69. package/dist/src/BrandedNavBar/SmallNavBar.story.js +10 -16
  70. package/dist/src/BrandedNavBar/SubMenuTrigger.d.ts +1 -1
  71. package/dist/src/BrandedNavBar/SubMenuTrigger.js +4 -5
  72. package/dist/src/BrandedNavBar/SubMenuTriggerButton.js +2 -4
  73. package/dist/src/BrandedNavBar/renderSubMenuItems.js +5 -10
  74. package/dist/src/Branding/Branding.d.ts +1 -2
  75. package/dist/src/Branding/Branding.js +5 -10
  76. package/dist/src/Branding/Branding.story.d.ts +1 -2
  77. package/dist/src/Branding/Branding.story.js +2 -77
  78. package/dist/src/Branding/LettermarkLogo.d.ts +1 -2
  79. package/dist/src/Branding/LettermarkLogo.js +2 -3
  80. package/dist/src/Branding/WordmarkLogo.d.ts +1 -1
  81. package/dist/src/Branding/WordmarkLogo.js +2 -10
  82. package/dist/src/Breadcrumbs/Breadcrumbs.d.ts +1 -2
  83. package/dist/src/Breadcrumbs/Breadcrumbs.js +4 -5
  84. package/dist/src/Breadcrumbs/Breadcrumbs.story.d.ts +3 -4
  85. package/dist/src/Breadcrumbs/Breadcrumbs.story.js +4 -16
  86. package/dist/src/Button/Button.js +2 -4
  87. package/dist/src/Button/Button.story.d.ts +9 -10
  88. package/dist/src/Button/Button.story.js +10 -26
  89. package/dist/src/Button/CloseButton.js +2 -2
  90. package/dist/src/Button/ControlIcon.js +2 -2
  91. package/dist/src/Button/ControlIcon.story.d.ts +3 -4
  92. package/dist/src/Button/ControlIcon.story.js +4 -4
  93. package/dist/src/Button/IconicButton.js +13 -17
  94. package/dist/src/Button/IconicButton.story.d.ts +15 -16
  95. package/dist/src/Button/IconicButton.story.js +16 -31
  96. package/dist/src/ButtonGroup/ButtonGroup.story.d.ts +5 -6
  97. package/dist/src/ButtonGroup/ButtonGroup.story.js +6 -43
  98. package/dist/src/Card/Card.d.ts +1 -2
  99. package/dist/src/Card/Card.js +2 -2
  100. package/dist/src/Card/Card.story.d.ts +4 -5
  101. package/dist/src/Card/Card.story.js +6 -39
  102. package/dist/src/Checkbox/Checkbox.js +3 -6
  103. package/dist/src/Checkbox/Checkbox.story.d.ts +11 -12
  104. package/dist/src/Checkbox/Checkbox.story.js +13 -26
  105. package/dist/src/Checkbox/CheckboxGroup.d.ts +1 -1
  106. package/dist/src/Checkbox/CheckboxGroup.js +3 -11
  107. package/dist/src/Checkbox/CheckboxGroup.story.d.ts +6 -7
  108. package/dist/src/Checkbox/CheckboxGroup.story.js +7 -25
  109. package/dist/src/DatePickers/DatePicker.js +3 -2
  110. package/dist/src/DatePickers/MonthPicker.js +3 -2
  111. package/dist/src/DatePickers/WeekPicker.js +4 -7
  112. package/dist/src/DatePickers/custom/MonthPickerHeader.d.ts +1 -2
  113. package/dist/src/DatePickers/custom/MonthPickerHeader.js +2 -5
  114. package/dist/src/DatePickers/shared/components/BasePicker.js +3 -5
  115. package/dist/src/DatePickers/shared/components/DatePickerHeader.d.ts +2 -2
  116. package/dist/src/DatePickers/shared/components/DatePickerHeader.js +3 -9
  117. package/dist/src/DatePickers/shared/components/DatePickerInput.js +2 -1
  118. package/dist/src/DatePickers/stories/DatePicker.story.d.ts +4 -4
  119. package/dist/src/DatePickers/stories/DatePicker.story.js +6 -7
  120. package/dist/src/DatePickers/stories/MonthPicker.story.d.ts +6 -7
  121. package/dist/src/DatePickers/stories/MonthPicker.story.js +8 -7
  122. package/dist/src/DatePickers/stories/WeekPicker.story.d.ts +8 -9
  123. package/dist/src/DatePickers/stories/WeekPicker.story.js +10 -11
  124. package/dist/src/DateRange/DateRange.js +12 -17
  125. package/dist/src/DateRange/DateRange.story.d.ts +12 -13
  126. package/dist/src/DateRange/DateRange.story.js +14 -20
  127. package/dist/src/Decorations/index.d.ts +1 -2
  128. package/dist/src/Decorations/index.js +2 -4
  129. package/dist/src/DescriptionList/DescriptionList.d.ts +1 -2
  130. package/dist/src/DescriptionList/DescriptionList.js +2 -4
  131. package/dist/src/DescriptionList/DescriptionListContext.d.ts +2 -2
  132. package/dist/src/DescriptionList/DescriptionListContext.js +3 -2
  133. package/dist/src/DescriptionList/stories/DescriptionList.column.story.d.ts +3 -4
  134. package/dist/src/DescriptionList/stories/DescriptionList.column.story.js +7 -26
  135. package/dist/src/DescriptionList/stories/DescriptionList.group-min-width.story.js +2 -8
  136. package/dist/src/DescriptionList/stories/DescriptionList.layout.story.d.ts +3 -4
  137. package/dist/src/DescriptionList/stories/DescriptionList.layout.story.js +4 -30
  138. package/dist/src/DescriptionList/stories/DescriptionList.playground.story.js +83 -148
  139. package/dist/src/DescriptionList/stories/DescriptionList.sizing.story.d.ts +3 -4
  140. package/dist/src/DescriptionList/stories/DescriptionList.sizing.story.js +5 -44
  141. package/dist/src/DescriptionList/stories/DescriptionList.spanning.story.d.ts +3 -4
  142. package/dist/src/DescriptionList/stories/DescriptionList.spanning.story.js +5 -59
  143. package/dist/src/DescriptionList/stories/fixtures.d.ts +1 -1
  144. package/dist/src/DescriptionList/stories/fixtures.js +2 -27
  145. package/dist/src/Divider/Divider.story.d.ts +4 -4
  146. package/dist/src/Divider/Divider.story.js +5 -17
  147. package/dist/src/DropdownMenu/DropdownMenu.js +10 -10
  148. package/dist/src/DropdownMenu/DropdownMenu.story.d.ts +12 -13
  149. package/dist/src/DropdownMenu/DropdownMenu.story.js +13 -45
  150. package/dist/src/DropdownMenu/DropdownText.d.ts +2 -2
  151. package/dist/src/FieldLabel/FieldLabel.d.ts +1 -2
  152. package/dist/src/FieldLabel/FieldLabel.js +2 -10
  153. package/dist/src/FieldLabel/FieldLabel.story.d.ts +7 -8
  154. package/dist/src/FieldLabel/FieldLabel.story.js +12 -32
  155. package/dist/src/FieldLabel/MaybeFieldLabel.d.ts +1 -2
  156. package/dist/src/FieldLabel/MaybeFieldLabel.js +2 -2
  157. package/dist/src/FieldLabel/RequirementText.d.ts +1 -2
  158. package/dist/src/FieldLabel/RequirementText.js +2 -2
  159. package/dist/src/Flex/Flex.story.d.ts +18 -19
  160. package/dist/src/Flex/Flex.story.js +23 -122
  161. package/dist/src/Form/Form.d.ts +1 -1
  162. package/dist/src/Form/Form.js +2 -4
  163. package/dist/src/Form/Form.story.d.ts +6 -7
  164. package/dist/src/Form/Form.story.js +7 -59
  165. package/dist/src/Form/FormSection.d.ts +1 -1
  166. package/dist/src/Form/FormSection.js +2 -4
  167. package/dist/src/Icon/Icon.js +5 -5
  168. package/dist/src/Icon/Icon.story.d.ts +6 -7
  169. package/dist/src/Icon/Icon.story.js +8 -37
  170. package/dist/src/Icon/LoadingIcon.js +2 -11
  171. package/dist/src/Input/Input.js +3 -4
  172. package/dist/src/Input/Input.story.d.ts +11 -12
  173. package/dist/src/Input/Input.story.js +24 -55
  174. package/dist/src/Input/InputField.js +5 -13
  175. package/dist/src/Input/Prefix.d.ts +1 -2
  176. package/dist/src/Input/Prefix.js +2 -3
  177. package/dist/src/Input/Suffix.d.ts +1 -2
  178. package/dist/src/Input/Suffix.js +2 -3
  179. package/dist/src/Layout/ApplicationFrame.d.ts +2 -2
  180. package/dist/src/Layout/ApplicationFrame.js +2 -6
  181. package/dist/src/Layout/ApplicationFrame.story.d.ts +1 -2
  182. package/dist/src/Layout/ApplicationFrame.story.js +2 -2
  183. package/dist/src/Layout/Header.d.ts +2 -2
  184. package/dist/src/Layout/Header.js +2 -13
  185. package/dist/src/Layout/Header.story.d.ts +10 -11
  186. package/dist/src/Layout/Header.story.js +12 -52
  187. package/dist/src/Layout/Page.applicationFrame.story.d.ts +2 -3
  188. package/dist/src/Layout/Page.applicationFrame.story.js +7 -14
  189. package/dist/src/Layout/Page.d.ts +2 -2
  190. package/dist/src/Layout/Page.js +4 -6
  191. package/dist/src/Layout/Page.story.d.ts +1 -2
  192. package/dist/src/Layout/Page.story.js +15 -28
  193. package/dist/src/Layout/Sidebar.d.ts +1 -1
  194. package/dist/src/Layout/Sidebar.js +4 -16
  195. package/dist/src/Layout/Sidebar.story.d.ts +10 -11
  196. package/dist/src/Layout/Sidebar.story.js +17 -88
  197. package/dist/src/Link/Link.d.ts +1 -1
  198. package/dist/src/Link/Link.js +3 -6
  199. package/dist/src/Link/Link.story.d.ts +10 -11
  200. package/dist/src/Link/Link.story.js +11 -12
  201. package/dist/src/List/List.story.d.ts +5 -6
  202. package/dist/src/List/List.story.js +6 -21
  203. package/dist/src/LoadingAnimation/LoadingAnimation.d.ts +1 -1
  204. package/dist/src/LoadingAnimation/LoadingAnimation.js +2 -21
  205. package/dist/src/LoadingAnimation/LoadingAnimation.story.d.ts +4 -5
  206. package/dist/src/LoadingAnimation/LoadingAnimation.story.js +5 -22
  207. package/dist/src/MaybeTooltip/MaybeTooltip.d.ts +1 -2
  208. package/dist/src/MaybeTooltip/MaybeTooltip.js +3 -3
  209. package/dist/src/MaybeTooltip/MaybeTooltip.story.d.ts +1 -2
  210. package/dist/src/MaybeTooltip/MaybeTooltip.story.js +4 -5
  211. package/dist/src/MiniTooltip/index.d.ts +2 -2
  212. package/dist/src/MiniTooltip/index.js +3 -7
  213. package/dist/src/Modal/Modal.js +5 -10
  214. package/dist/src/Modal/Modal.story.js +10 -40
  215. package/dist/src/NDSProvider/ComponentVariantContext.d.ts +1 -1
  216. package/dist/src/NDSProvider/ComponentVariantContext.js +3 -2
  217. package/dist/src/NDSProvider/FeatureFlagsContext.d.ts +1 -1
  218. package/dist/src/NDSProvider/FeatureFlagsContext.js +3 -2
  219. package/dist/src/NDSProvider/GlobalStylesComposer.d.ts +1 -1
  220. package/dist/src/NDSProvider/GlobalStylesComposer.js +3 -6
  221. package/dist/src/NDSProvider/LocaleContext.d.ts +1 -1
  222. package/dist/src/NDSProvider/LocaleContext.js +2 -1
  223. package/dist/src/NDSProvider/NDSProvider.d.ts +1 -1
  224. package/dist/src/NDSProvider/NDSProvider.js +3 -7
  225. package/dist/src/NDSProvider/renderWithNDSProvider.spec-utils.js +2 -2
  226. package/dist/src/NavBarSearch/NavBarSearch.d.ts +1 -1
  227. package/dist/src/NavBarSearch/NavBarSearch.js +2 -5
  228. package/dist/src/Navigation/Navigation.d.ts +1 -1
  229. package/dist/src/Navigation/Navigation.js +2 -2
  230. package/dist/src/Navigation/components/AppSwitcher/NulogyAppSwitcher.d.ts +1 -1
  231. package/dist/src/Navigation/components/AppSwitcher/NulogyAppSwitcher.js +3 -12
  232. package/dist/src/Navigation/components/AppSwitcher/parts/Item.js +2 -1
  233. package/dist/src/Navigation/components/AppSwitcher/parts/Link.js +2 -2
  234. package/dist/src/Navigation/components/DesktopNav/DesktopNav.d.ts +1 -2
  235. package/dist/src/Navigation/components/DesktopNav/DesktopNav.js +3 -30
  236. package/dist/src/Navigation/components/DesktopNav/parts/MoreMenuItem.d.ts +1 -1
  237. package/dist/src/Navigation/components/DesktopNav/parts/MoreMenuItem.js +2 -2
  238. package/dist/src/Navigation/components/EnvironmentBanner/EnvironmentBanner.d.ts +1 -1
  239. package/dist/src/Navigation/components/EnvironmentBanner/EnvironmentBanner.js +2 -3
  240. package/dist/src/Navigation/components/MenuSubItem/MenuSubItem.d.ts +1 -2
  241. package/dist/src/Navigation/components/MenuSubItem/MenuSubItem.js +5 -13
  242. package/dist/src/Navigation/components/MobileNav/MobileNav.d.ts +1 -2
  243. package/dist/src/Navigation/components/MobileNav/MobileNav.js +2 -29
  244. package/dist/src/Navigation/components/MobileNav/parts/MobileMenuItem.js +11 -27
  245. package/dist/src/Navigation/components/NulogyLogo/NulogyLogo.d.ts +1 -2
  246. package/dist/src/Navigation/components/NulogyLogo/NulogyLogo.js +8 -10
  247. package/dist/src/Navigation/components/NulogyLogo/SvgNulogyLogo.d.ts +2 -2
  248. package/dist/src/Navigation/components/NulogyLogo/SvgNulogyLogo.js +2 -9
  249. package/dist/src/Navigation/components/UserMenu/UserMenu.d.ts +1 -1
  250. package/dist/src/Navigation/components/UserMenu/parts/Header.d.ts +1 -2
  251. package/dist/src/Navigation/components/UserMenu/parts/Header.js +2 -6
  252. package/dist/src/Navigation/components/UserMenu/parts/Item.js +5 -7
  253. package/dist/src/Navigation/components/UserMenu/parts/MobileItem.js +6 -10
  254. package/dist/src/Navigation/components/shared/NavigationLogo.d.ts +1 -1
  255. package/dist/src/Navigation/components/shared/NavigationLogo.js +2 -2
  256. package/dist/src/Navigation/components/shared/NavigationLogoLink.d.ts +1 -2
  257. package/dist/src/Navigation/components/shared/NavigationLogoLink.js +2 -2
  258. package/dist/src/Navigation/components/shared/NavigationMenuItem.js +9 -18
  259. package/dist/src/Navigation/stories/Navigation.appSwitcher.story.d.ts +4 -5
  260. package/dist/src/Navigation/stories/Navigation.appSwitcher.story.js +10 -30
  261. package/dist/src/Navigation/stories/Navigation.logos.story.d.ts +9 -10
  262. package/dist/src/Navigation/stories/Navigation.logos.story.js +11 -70
  263. package/dist/src/Navigation/stories/Navigation.mobileVisibility.story.d.ts +5 -6
  264. package/dist/src/Navigation/stories/Navigation.mobileVisibility.story.js +12 -38
  265. package/dist/src/Navigation/stories/Navigation.navigationMenus.story.d.ts +5 -6
  266. package/dist/src/Navigation/stories/Navigation.navigationMenus.story.js +17 -70
  267. package/dist/src/Navigation/stories/Navigation.navigationMenus.subMenus.story.d.ts +3 -4
  268. package/dist/src/Navigation/stories/Navigation.navigationMenus.subMenus.story.js +4 -4
  269. package/dist/src/Navigation/stories/Navigation.story.d.ts +3 -4
  270. package/dist/src/Navigation/stories/Navigation.story.js +16 -36
  271. package/dist/src/Navigation/stories/Navigation.userMenu.story.d.ts +5 -6
  272. package/dist/src/Navigation/stories/Navigation.userMenu.story.js +40 -71
  273. package/dist/src/Navigation/stories/fixtures/logos/CustomLogo2.d.ts +2 -2
  274. package/dist/src/Navigation/stories/fixtures/logos/CustomLogo2.js +2 -13
  275. package/dist/src/Navigation/stories/fixtures/logos/CustomLogo3.d.ts +2 -2
  276. package/dist/src/Navigation/stories/fixtures/logos/CustomLogo3.js +2 -29
  277. package/dist/src/Navigation/stories/fixtures/logos/Customlogo1.d.ts +2 -2
  278. package/dist/src/Navigation/stories/fixtures/logos/Customlogo1.js +2 -3
  279. package/dist/src/Overlay/Overlay.story.d.ts +2 -3
  280. package/dist/src/Overlay/Overlay.story.js +3 -9
  281. package/dist/src/Pagination/NextButton.d.ts +1 -1
  282. package/dist/src/Pagination/NextButton.js +2 -4
  283. package/dist/src/Pagination/Pagination.d.ts +2 -2
  284. package/dist/src/Pagination/Pagination.js +23 -26
  285. package/dist/src/Pagination/Pagination.story.d.ts +6 -7
  286. package/dist/src/Pagination/Pagination.story.js +12 -44
  287. package/dist/src/Pagination/PaginationCount.d.ts +1 -2
  288. package/dist/src/Pagination/PaginationCount.js +2 -2
  289. package/dist/src/Pagination/PreviousButton.d.ts +1 -1
  290. package/dist/src/Pagination/PreviousButton.js +2 -4
  291. package/dist/src/Popper/Popper.js +25 -26
  292. package/dist/src/Radio/Radio.js +3 -9
  293. package/dist/src/Radio/Radio.story.js +8 -16
  294. package/dist/src/Radio/RadioGroup.d.ts +1 -1
  295. package/dist/src/Radio/RadioGroup.js +3 -8
  296. package/dist/src/Radio/RadioGroup.story.d.ts +6 -7
  297. package/dist/src/Radio/RadioGroup.story.js +7 -28
  298. package/dist/src/RangeContainer/RangeContainer.d.ts +1 -1
  299. package/dist/src/RangeContainer/RangeContainer.js +2 -9
  300. package/dist/src/RangeContainer/RangeContainer.story.d.ts +1 -2
  301. package/dist/src/RangeContainer/RangeContainer.story.js +2 -2
  302. package/dist/src/Select/MenuList.d.ts +1 -2
  303. package/dist/src/Select/MenuList.js +10 -10
  304. package/dist/src/Select/Select.js +18 -20
  305. package/dist/src/Select/Select.story.d.ts +24 -24
  306. package/dist/src/Select/Select.story.fixture.d.ts +2 -3
  307. package/dist/src/Select/Select.story.fixture.js +4 -8
  308. package/dist/src/Select/Select.story.js +29 -52
  309. package/dist/src/Select/SelectComponents.d.ts +7 -8
  310. package/dist/src/Select/SelectComponents.js +8 -15
  311. package/dist/src/Select/SelectOption.d.ts +1 -1
  312. package/dist/src/Select/SelectOption.js +2 -3
  313. package/dist/src/SortingTable/SortingTable.d.ts +1 -2
  314. package/dist/src/SortingTable/SortingTable.js +4 -3
  315. package/dist/src/SortingTable/SortingTable.story.d.ts +1 -2
  316. package/dist/src/SortingTable/SortingTable.story.js +2 -2
  317. package/dist/src/StatusIndicator/StatusIndicator.story.d.ts +10 -11
  318. package/dist/src/StatusIndicator/StatusIndicator.story.js +11 -51
  319. package/dist/src/Summary/Summary.js +2 -3
  320. package/dist/src/Summary/Summary.story.d.ts +2 -3
  321. package/dist/src/Summary/Summary.story.js +3 -11
  322. package/dist/src/Summary/SummaryContext.js +4 -3
  323. package/dist/src/Summary/SummaryDivider.d.ts +1 -2
  324. package/dist/src/Summary/SummaryDivider.js +2 -2
  325. package/dist/src/Summary/SummaryItem.js +2 -4
  326. package/dist/src/Switcher/Switch.js +2 -1
  327. package/dist/src/Switcher/Switcher.js +2 -2
  328. package/dist/src/Switcher/Switcher.story.d.ts +3 -4
  329. package/dist/src/Switcher/Switcher.story.js +5 -17
  330. package/dist/src/Table/BaseTable.d.ts +2 -2
  331. package/dist/src/Table/BaseTable.js +2 -5
  332. package/dist/src/Table/SortingColumnHeader.d.ts +1 -1
  333. package/dist/src/Table/SortingColumnHeader.js +2 -4
  334. package/dist/src/Table/StatefulTable.d.ts +1 -1
  335. package/dist/src/Table/StatefulTable.js +3 -4
  336. package/dist/src/Table/Table.d.ts +1 -2
  337. package/dist/src/Table/Table.js +2 -2
  338. package/dist/src/Table/TableBody.d.ts +2 -2
  339. package/dist/src/Table/TableBody.js +8 -13
  340. package/dist/src/Table/TableCell.d.ts +1 -1
  341. package/dist/src/Table/TableCell.js +3 -3
  342. package/dist/src/Table/TableFoot.d.ts +1 -2
  343. package/dist/src/Table/TableFoot.js +8 -8
  344. package/dist/src/Table/TableHead.d.ts +1 -2
  345. package/dist/src/Table/TableHead.js +3 -4
  346. package/dist/src/Table/addExpandableControl.js +3 -3
  347. package/dist/src/Table/addSelectableControl.js +4 -4
  348. package/dist/src/Table/stories/BaseTable.story.d.ts +7 -8
  349. package/dist/src/Table/stories/BaseTable.story.js +15 -24
  350. package/dist/src/Table/stories/CustomContent.story.d.ts +2 -3
  351. package/dist/src/Table/stories/CustomContent.story.js +89 -116
  352. package/dist/src/Table/stories/Density.story.d.ts +2 -3
  353. package/dist/src/Table/stories/Density.story.js +3 -3
  354. package/dist/src/Table/stories/Table.story.js +6 -13
  355. package/dist/src/Table/stories/TableWithCustomSorting.story.d.ts +1 -2
  356. package/dist/src/Table/stories/TableWithCustomSorting.story.js +5 -4
  357. package/dist/src/Table/stories/TableWithExpandableRows.story.d.ts +2 -3
  358. package/dist/src/Table/stories/TableWithExpandableRows.story.js +4 -5
  359. package/dist/src/Table/stories/TableWithFiltering.story.d.ts +2 -3
  360. package/dist/src/Table/stories/TableWithFiltering.story.js +7 -6
  361. package/dist/src/Table/stories/TableWithSelectableRows.story.d.ts +2 -3
  362. package/dist/src/Table/stories/TableWithSelectableRows.story.js +3 -3
  363. package/dist/src/Table/stories/TableWithServerSidePagination.story.d.ts +1 -2
  364. package/dist/src/Table/stories/TableWithServerSidePagination.story.js +3 -4
  365. package/dist/src/Tabs/Tab.js +2 -1
  366. package/dist/src/Tabs/TabScrollIndicator.js +2 -3
  367. package/dist/src/Tabs/TabScrollIndicators.d.ts +1 -1
  368. package/dist/src/Tabs/TabScrollIndicators.js +5 -8
  369. package/dist/src/Tabs/Tabs.d.ts +2 -2
  370. package/dist/src/Tabs/Tabs.js +3 -6
  371. package/dist/src/Tabs/Tabs.story.d.ts +9 -10
  372. package/dist/src/Tabs/Tabs.story.js +11 -60
  373. package/dist/src/Textarea/Textarea.js +3 -5
  374. package/dist/src/Textarea/Textarea.story.d.ts +9 -10
  375. package/dist/src/Textarea/Textarea.story.js +11 -12
  376. package/dist/src/TimePicker/TimePicker.js +10 -14
  377. package/dist/src/TimePicker/TimePicker.story.d.ts +10 -11
  378. package/dist/src/TimePicker/TimePicker.story.js +13 -14
  379. package/dist/src/TimeRange/TimeRange.js +5 -4
  380. package/dist/src/TimeRange/TimeRange.story.d.ts +5 -6
  381. package/dist/src/TimeRange/TimeRange.story.js +7 -9
  382. package/dist/src/Toast/Toast.d.ts +1 -2
  383. package/dist/src/Toast/Toast.js +3 -3
  384. package/dist/src/Toast/Toast.story.d.ts +7 -8
  385. package/dist/src/Toast/Toast.story.js +18 -39
  386. package/dist/src/ToastContainer/ToastContainer.d.ts +1 -2
  387. package/dist/src/ToastContainer/ToastContainer.js +3 -2
  388. package/dist/src/ToastContainer/ToastContainer.story.d.ts +1 -2
  389. package/dist/src/ToastContainer/ToastContainer.story.js +26 -51
  390. package/dist/src/ToastContainer/ToastFunction.js +6 -7
  391. package/dist/src/Toggle/Toggle.js +2 -5
  392. package/dist/src/Toggle/Toggle.story.d.ts +8 -9
  393. package/dist/src/Toggle/Toggle.story.js +10 -14
  394. package/dist/src/Toggle/ToggleButton.js +5 -6
  395. package/dist/src/Tokens/Tokens.story.d.ts +9 -10
  396. package/dist/src/Tokens/Tokens.story.js +13 -46
  397. package/dist/src/Tooltip/Tooltip.d.ts +1 -1
  398. package/dist/src/Tooltip/Tooltip.js +2 -6
  399. package/dist/src/Tooltip/Tooltip.story.js +14 -89
  400. package/dist/src/Tooltip/components/TooltipComponents.d.ts +1 -1
  401. package/dist/src/Tooltip/components/TooltipComponents.js +5 -7
  402. package/dist/src/TopBar/TopBar.d.ts +1 -1
  403. package/dist/src/TopBar/TopBar.js +2 -4
  404. package/dist/src/TopBar/components/BackLink.d.ts +2 -2
  405. package/dist/src/TopBar/components/BackLink.js +2 -5
  406. package/dist/src/TopBar/components/Menu.d.ts +1 -1
  407. package/dist/src/TopBar/components/Menu.js +6 -10
  408. package/dist/src/TopBar/components/MenuItem.d.ts +1 -1
  409. package/dist/src/TopBar/components/MenuItem.js +2 -2
  410. package/dist/src/TopBar/components/MenuItemLink.d.ts +2 -2
  411. package/dist/src/TopBar/components/MenuItemLink.js +2 -6
  412. package/dist/src/TopBar/components/PageTitle.d.ts +2 -2
  413. package/dist/src/TopBar/components/PageTitle.js +2 -2
  414. package/dist/src/TopBar/stories/TopBar.backButton.story.d.ts +3 -4
  415. package/dist/src/TopBar/stories/TopBar.backButton.story.js +9 -21
  416. package/dist/src/TopBar/stories/TopBar.menu.story.d.ts +5 -6
  417. package/dist/src/TopBar/stories/TopBar.menu.story.js +6 -27
  418. package/dist/src/TopBar/stories/TopBar.story.d.ts +3 -4
  419. package/dist/src/TopBar/stories/TopBar.story.js +4 -38
  420. package/dist/src/TruncatedText/TruncatedText.d.ts +1 -2
  421. package/dist/src/TruncatedText/TruncatedText.js +3 -3
  422. package/dist/src/TruncatedText/TruncatedText.story.d.ts +9 -10
  423. package/dist/src/TruncatedText/TruncatedText.story.js +10 -17
  424. package/dist/src/TruncatedText/components/TruncatedTextFillWidth.d.ts +1 -2
  425. package/dist/src/TruncatedText/components/TruncatedTextFillWidth.js +3 -3
  426. package/dist/src/TruncatedText/components/TruncatedTextMaxCharacters.d.ts +1 -2
  427. package/dist/src/TruncatedText/components/TruncatedTextMaxCharacters.js +2 -3
  428. package/dist/src/Type/Headings.d.ts +8 -8
  429. package/dist/src/Type/Headings.story.d.ts +3 -4
  430. package/dist/src/Type/Headings.story.js +4 -12
  431. package/dist/src/Type/Text.story.d.ts +6 -7
  432. package/dist/src/Type/Text.story.js +7 -24
  433. package/dist/src/Type/Typography.story.d.ts +2 -3
  434. package/dist/src/Type/Typography.story.js +3 -204
  435. package/dist/src/Validation/InlineValidation.d.ts +1 -1
  436. package/dist/src/Validation/InlineValidation.js +2 -7
  437. package/dist/src/Validation/InlineValidation.story.d.ts +4 -5
  438. package/dist/src/Validation/InlineValidation.story.js +5 -10
  439. package/dist/src/Validation/mapErrorsToList.d.ts +1 -2
  440. package/dist/src/Validation/mapErrorsToList.js +2 -2
  441. package/dist/src/VerticalDivider/VerticalDivider.story.d.ts +2 -2
  442. package/dist/src/VerticalDivider/VerticalDivider.story.js +3 -9
  443. package/dist/src/VisualTests/Select.story.d.ts +6 -7
  444. package/dist/src/VisualTests/Select.story.js +7 -15
  445. package/dist/src/VisualTests/WithSpace.story.d.ts +18 -19
  446. package/dist/src/VisualTests/WithSpace.story.js +19 -39
  447. package/dist/src/i18n.js +4 -0
  448. package/dist/src/locale.story.d.ts +1 -2
  449. package/dist/src/locale.story.js +8 -7
  450. package/dist/src/locales.const.d.ts +5 -0
  451. package/dist/src/locales.const.js +7 -1
  452. package/dist/src/pages/ErrorPage.story.d.ts +4 -5
  453. package/dist/src/pages/ErrorPage.story.js +5 -31
  454. package/dist/src/pages/LoginPage.story.d.ts +5 -6
  455. package/dist/src/pages/LoginPage.story.js +6 -55
  456. package/dist/src/theme/NDSThemeProvider.d.ts +1 -2
  457. package/dist/src/theme/NDSThemeProvider.js +2 -3
  458. package/dist/src/utils/DetectOutsideClick.d.ts +1 -1
  459. package/dist/src/utils/DetectOutsideClick.js +2 -1
  460. package/dist/src/utils/ScrollIndicators.d.ts +1 -1
  461. package/dist/src/utils/ScrollIndicators.js +7 -13
  462. package/dist/src/utils/story/placeholder.d.ts +1 -2
  463. package/dist/src/utils/story/placeholder.js +2 -7
  464. package/dist/src/utils/story/resizable.d.ts +1 -1
  465. package/dist/src/utils/story/resizable.js +5 -8
  466. package/dist/src/utils/ts/FocusManager.js +7 -6
  467. package/dist/src/utils/useWindowDimension.story.d.ts +1 -2
  468. package/dist/src/utils/useWindowDimension.story.js +2 -14
  469. package/dist/src/utils/withMenuState.js +2 -1
  470. package/dist/vite.config.js +2 -0
  471. package/package.json +22 -24
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { styled } from "styled-components";
3
3
  import { BrowserRouter, Link as ReactRouterLink } from "react-router-dom";
4
4
  import { Heading1 } from "../Type";
@@ -16,9 +16,7 @@ const ResetStorybookView = styled.div({
16
16
  width: "100vw",
17
17
  height: "100vh",
18
18
  });
19
- const BrandedNavBar = (props) => (React.createElement(ResetStorybookView, null,
20
- React.createElement(NDSBrandedNavBar, { ...props }),
21
- React.createElement(Heading1, { mt: "x3", ml: "x1" }, "Some content")));
19
+ const BrandedNavBar = (props) => (_jsxs(ResetStorybookView, { children: [_jsx(NDSBrandedNavBar, { ...props }), _jsx(Heading1, { mt: "x3", ml: "x1", children: "Some content" })] }));
22
20
  const primaryMenu = [
23
21
  {
24
22
  name: "Dashboard",
@@ -101,7 +99,7 @@ const secondaryMenuWithIcon = [
101
99
  ],
102
100
  },
103
101
  {
104
- name: React.createElement(Icon, { icon: "settings" }),
102
+ name: _jsx(Icon, { icon: "settings" }),
105
103
  ariaLabel: "Settings",
106
104
  key: "Settings",
107
105
  items: [
@@ -110,7 +108,7 @@ const secondaryMenuWithIcon = [
110
108
  ],
111
109
  },
112
110
  {
113
- name: React.createElement(Icon, { icon: "chatBubble" }),
111
+ name: _jsx(Icon, { icon: "chatBubble" }),
114
112
  ariaLabel: "chat",
115
113
  key: "chat",
116
114
  items: [
@@ -122,24 +120,24 @@ const secondaryMenuWithIcon = [
122
120
  export default {
123
121
  title: "Components/BrandedNavBar",
124
122
  };
125
- export const _BrandedNavBar = () => React.createElement(BrandedNavBar, { menuData: { primaryMenu, secondaryMenu } });
123
+ export const _BrandedNavBar = () => _jsx(BrandedNavBar, { menuData: { primaryMenu, secondaryMenu } });
126
124
  _BrandedNavBar.story = {
127
125
  name: "BrandedNavBar",
128
126
  };
129
- export const WithACompanyLogo = () => React.createElement(BrandedNavBar, { menuData: { primaryMenu, secondaryMenu }, logoSrc: sampleLogo });
127
+ export const WithACompanyLogo = () => _jsx(BrandedNavBar, { menuData: { primaryMenu, secondaryMenu }, logoSrc: sampleLogo });
130
128
  WithACompanyLogo.story = {
131
129
  name: "With a company logo",
132
130
  };
133
- export const WithAppName = () => React.createElement(BrandedNavBar, { subtext: "Quality Control", menuData: { primaryMenu, secondaryMenu } });
131
+ export const WithAppName = () => _jsx(BrandedNavBar, { subtext: "Quality Control", menuData: { primaryMenu, secondaryMenu } });
134
132
  WithAppName.story = {
135
133
  name: "With app name",
136
134
  };
137
- export const WithACompanyLogoAndAppName = () => (React.createElement(BrandedNavBar, { menuData: { primaryMenu, secondaryMenu }, subtext: "Quality control", logoSrc: sampleLogo }));
135
+ export const WithACompanyLogoAndAppName = () => (_jsx(BrandedNavBar, { menuData: { primaryMenu, secondaryMenu }, subtext: "Quality control", logoSrc: sampleLogo }));
138
136
  WithACompanyLogoAndAppName.story = {
139
137
  name: "With a company logo and app name",
140
138
  };
141
139
  export const WithEnvironmentBanner = {
142
- render: (args) => (React.createElement(BrandedNavBar, { menuData: { primaryMenu, secondaryMenu }, subtext: "Quality control", logoSrc: sampleLogo, environment: args.environment })),
140
+ render: (args) => (_jsx(BrandedNavBar, { menuData: { primaryMenu, secondaryMenu }, subtext: "Quality control", logoSrc: sampleLogo, environment: args.environment })),
143
141
  args: {
144
142
  environment: "training",
145
143
  },
@@ -151,14 +149,14 @@ export const WithEnvironmentBanner = {
151
149
  },
152
150
  name: "with environment banner",
153
151
  };
154
- export const WithIcon = () => (React.createElement(BrandedNavBar, { menuData: {
152
+ export const WithIcon = () => (_jsx(BrandedNavBar, { menuData: {
155
153
  primaryMenu: primaryMenu,
156
154
  secondaryMenu: secondaryMenuWithIcon,
157
155
  } }));
158
156
  WithIcon.story = {
159
157
  name: "With icon",
160
158
  };
161
- export const WithPrimaryAndSecondarySubMenus = () => (React.createElement(BrandedNavBar, { menuData: {
159
+ export const WithPrimaryAndSecondarySubMenus = () => (_jsx(BrandedNavBar, { menuData: {
162
160
  primaryMenu: [
163
161
  {
164
162
  name: "Operations",
@@ -208,7 +206,7 @@ export const WithPrimaryAndSecondarySubMenus = () => (React.createElement(Brande
208
206
  },
209
207
  ],
210
208
  } }));
211
- export const WithExternalLinks = () => (React.createElement(BrandedNavBar, { menuData: {
209
+ export const WithExternalLinks = () => (_jsx(BrandedNavBar, { menuData: {
212
210
  primaryMenu: [
213
211
  {
214
212
  name: "Top level open in new tab link",
@@ -324,16 +322,15 @@ const primaryMenuReactRouter = [
324
322
  },
325
323
  { name: "Link", to: "/Link" },
326
324
  ];
327
- export const WithReactRouter = () => (React.createElement(BrowserRouter, { basename: "/" },
328
- React.createElement(BrandedNavBar, { brandingLinkTo: "/Home", brandingLinkComponent: ReactRouterLink, menuData: {
325
+ export const WithReactRouter = () => (_jsx(BrowserRouter, { basename: "/", children: _jsx(BrandedNavBar, { brandingLinkTo: "/Home", brandingLinkComponent: ReactRouterLink, menuData: {
329
326
  primaryMenu: primaryMenuReactRouter,
330
327
  secondaryMenu: secondaryMenuWithIcon,
331
- } })));
328
+ } }) }));
332
329
  WithReactRouter.story = {
333
330
  name: "With react router",
334
331
  };
335
332
  export const WithHamburgerMenu = () => {
336
- return React.createElement(BrandedNavBar, { menuData: { primaryMenu, secondaryMenu }, defaultOpen: true });
333
+ return _jsx(BrandedNavBar, { menuData: { primaryMenu, secondaryMenu }, defaultOpen: true });
337
334
  };
338
335
  WithHamburgerMenu.parameters = {
339
336
  viewport: {
@@ -348,28 +345,26 @@ const customPrimaryMenu = [
348
345
  { name: "Submenu link", href: "/" },
349
346
  {
350
347
  name: "Custom submenu HTML Link",
351
- render: () => React.createElement("a", { href: "/" }, "Submenu Raw HTML Link"),
348
+ render: () => _jsx("a", { href: "/", children: "Submenu Raw HTML Link" }),
352
349
  },
353
350
  {
354
351
  name: "Custom submenu DropdownLink",
355
- render: () => React.createElement(DropdownLink, { href: "/" }, "DropdownLink"),
352
+ render: () => _jsx(DropdownLink, { href: "/", children: "DropdownLink" }),
356
353
  },
357
354
  {
358
355
  name: "Custom submenu DropdownButton",
359
- render: ({ layer }) => React.createElement(DropdownButton, null,
360
- "DropdownButton at layer ",
361
- layer),
356
+ render: ({ layer }) => _jsxs(DropdownButton, { children: ["DropdownButton at layer ", layer] }),
362
357
  },
363
358
  ],
364
359
  },
365
360
  { name: "Menu link", href: "/" },
366
361
  {
367
362
  name: "Custom Menu HTML Link",
368
- render: () => React.createElement("a", { href: "/" }, "Menu Raw HTML Link"),
363
+ render: () => _jsx("a", { href: "/", children: "Menu Raw HTML Link" }),
369
364
  },
370
365
  ];
371
- export const CustomRendering = () => React.createElement(BrandedNavBar, { menuData: { primaryMenu: customPrimaryMenu, secondaryMenu } });
372
- export const CustomRenderingInHamburger = () => (React.createElement(BrandedNavBar, { menuData: { primaryMenu: customPrimaryMenu, secondaryMenu }, defaultOpen: true }));
366
+ export const CustomRendering = () => _jsx(BrandedNavBar, { menuData: { primaryMenu: customPrimaryMenu, secondaryMenu } });
367
+ export const CustomRenderingInHamburger = () => (_jsx(BrandedNavBar, { menuData: { primaryMenu: customPrimaryMenu, secondaryMenu }, defaultOpen: true }));
373
368
  CustomRenderingInHamburger.parameters = {
374
369
  viewport: {
375
370
  defaultViewport: "small", // for some reason this has to match the viewport key, NOT the name!
@@ -379,43 +374,33 @@ CustomRenderingInHamburger.parameters = {
379
374
  const primaryMenuWithCustomTriggers = [
380
375
  {
381
376
  name: "Menu",
382
- trigger: ({ size, layer }) => (React.createElement(Button, null,
383
- "Custom menu trigger for ",
384
- size,
385
- ". layer: ",
386
- layer)),
377
+ trigger: ({ size, layer }) => (_jsxs(Button, { children: ["Custom menu trigger for ", size, ". layer: ", layer] })),
387
378
  items: [
388
379
  { name: "Menu 1 link", href: "/" },
389
380
  {
390
381
  name: "Submenu 1 (pass-through to hamburger default)",
391
- trigger: ({ size, defaultRender, layer }) => size === "medium" ? React.createElement(Button, null,
392
- "Custom submenu trigger. layer: ",
393
- layer) : defaultRender(),
382
+ trigger: ({ size, defaultRender, layer }) => size === "medium" ? _jsxs(Button, { children: ["Custom submenu trigger. layer: ", layer] }) : defaultRender(),
394
383
  items: [{ name: "Submenu 1 link", href: "/" }],
395
384
  },
396
385
  {
397
386
  name: "Submenu 2",
398
387
  trigger: ({ size, openMenu, closeMenu, defaultRender, layer }) => {
399
- return size === "medium" ? (React.createElement(Button, { onMouseEnter: openMenu, onMouseLeave: closeMenu },
400
- "Custom submenu trigger w/ open on hover. layer: ",
401
- layer)) : (defaultRender());
388
+ return size === "medium" ? (_jsxs(Button, { onMouseEnter: openMenu, onMouseLeave: closeMenu, children: ["Custom submenu trigger w/ open on hover. layer: ", layer] })) : (defaultRender());
402
389
  },
403
390
  items: [{ name: "Submenu 2 link", href: "/" }],
404
391
  },
405
392
  {
406
393
  name: "Submenu 3 (pass-through to desktop default)",
407
394
  trigger: ({ size, defaultRender, layer }) => {
408
- return size === "small" ? (React.createElement(Text, { color: "black", pl: "x6" },
409
- "Custom submenu hamburger heading 2. layer: ",
410
- layer)) : (defaultRender());
395
+ return size === "small" ? (_jsxs(Text, { color: "black", pl: "x6", children: ["Custom submenu hamburger heading 2. layer: ", layer] })) : (defaultRender());
411
396
  },
412
397
  items: [{ name: "Submenu 3 link", href: "/" }],
413
398
  },
414
399
  ],
415
400
  },
416
401
  ];
417
- export const CustomMenuTriggers = () => (React.createElement(BrandedNavBar, { menuData: { primaryMenu: primaryMenuWithCustomTriggers, secondaryMenu } }));
418
- export const CustomMenuTriggersInHamburger = () => (React.createElement(BrandedNavBar, { menuData: { primaryMenu: primaryMenuWithCustomTriggers, secondaryMenu }, defaultOpen: true }));
402
+ export const CustomMenuTriggers = () => (_jsx(BrandedNavBar, { menuData: { primaryMenu: primaryMenuWithCustomTriggers, secondaryMenu } }));
403
+ export const CustomMenuTriggersInHamburger = () => (_jsx(BrandedNavBar, { menuData: { primaryMenu: primaryMenuWithCustomTriggers, secondaryMenu }, defaultOpen: true }));
419
404
  CustomMenuTriggersInHamburger.parameters = {
420
405
  viewport: {
421
406
  defaultViewport: "small", // for some reason this has to match the viewport key, NOT the name!
@@ -1,3 +1,4 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
1
2
  import React from "react";
2
3
  import { Manager, Reference, Popper } from "react-popper";
3
4
  import { DetectOutsideClick, withMenuState, PopperArrow } from "../utils";
@@ -44,45 +45,39 @@ class StatelessNavBarDropdownMenu extends StatelessNavBarDropdownMenuClass {
44
45
  render() {
45
46
  const { trigger, children, placement, modifiers, showArrow, dropdownMenuContainerEventHandlers, menuState: { isOpen, closeMenu, openMenu }, } = this.props;
46
47
  const childrenFnc = typeof children === "function" ? children : () => children;
47
- return (React.createElement(Manager, null,
48
- React.createElement(Reference, null, ({ ref }) => React.cloneElement(trigger({
49
- closeMenu,
50
- openMenu,
51
- isOpen,
52
- }), {
53
- "aria-haspopup": true,
54
- "aria-expanded": isOpen,
55
- type: "button",
56
- ...this.menuTriggerEventHandlers(),
57
- ref: (node) => {
58
- ref(node);
59
- this.setTriggerRef(node);
60
- },
61
- })),
62
- isOpen && (React.createElement(Popper, { placement: placement, modifiers: modifiers }, (popperProps) => {
63
- const { ref: popperRef, style, placement: popperPlacement } = popperProps;
64
- return (React.createElement(React.Fragment, null,
65
- React.createElement(DropdownMenuContainer, { dataPlacement: popperPlacement, style: style, placement: placement, showArrow: showArrow, ...this.menuEventHandlers(), ...{
66
- ref: (node) => {
67
- if (typeof popperRef === "function") {
68
- popperRef(node);
69
- }
70
- this.setMenuRef(node);
71
- },
72
- }, onMouseDown: (e) => {
73
- e.preventDefault();
74
- e.target.focus();
75
- }, ...dropdownMenuContainerEventHandlers({
76
- openMenu,
77
- closeMenu,
78
- }) },
79
- React.createElement(PopperArrow, { ...popperProps.arrowProps, placement: placement, ref: popperProps.arrowProps.ref, backgroundColor: "white", borderColor: "white" }),
80
- React.createElement(DetectOutsideClick, { onClick: this.handleOutsideClick, clickRef: [this.menuRef, this.triggerRef] }),
81
- childrenFnc({
82
- closeMenu,
83
- openMenu,
84
- }))));
85
- }))));
48
+ return (_jsxs(Manager, { children: [_jsx(Reference, { children: ({ ref }) => React.cloneElement(trigger({
49
+ closeMenu,
50
+ openMenu,
51
+ isOpen,
52
+ }), {
53
+ "aria-haspopup": true,
54
+ "aria-expanded": isOpen,
55
+ type: "button",
56
+ ...this.menuTriggerEventHandlers(),
57
+ ref: (node) => {
58
+ ref(node);
59
+ this.setTriggerRef(node);
60
+ },
61
+ }) }), isOpen && (_jsx(Popper, { placement: placement, modifiers: modifiers, children: (popperProps) => {
62
+ const { ref: popperRef, style, placement: popperPlacement } = popperProps;
63
+ return (_jsx(_Fragment, { children: _jsxs(DropdownMenuContainer, { dataPlacement: popperPlacement, style: style, placement: placement, showArrow: showArrow, ...this.menuEventHandlers(), ...{
64
+ ref: (node) => {
65
+ if (typeof popperRef === "function") {
66
+ popperRef(node);
67
+ }
68
+ this.setMenuRef(node);
69
+ },
70
+ }, onMouseDown: (e) => {
71
+ e.preventDefault();
72
+ e.target.focus();
73
+ }, ...dropdownMenuContainerEventHandlers({
74
+ openMenu,
75
+ closeMenu,
76
+ }), children: [_jsx(PopperArrow, { ...popperProps.arrowProps, placement: placement, ref: popperProps.arrowProps.ref, backgroundColor: "white", borderColor: "white" }), _jsx(DetectOutsideClick, { onClick: this.handleOutsideClick, clickRef: [this.menuRef, this.triggerRef] }), childrenFnc({
77
+ closeMenu,
78
+ openMenu,
79
+ })] }) }));
80
+ } }))] }));
86
81
  }
87
82
  }
88
83
  // @ts-expect-error - defaultProps is not recognized on functional components in newer React types
@@ -1,3 +1,2 @@
1
- import React from "react";
2
- declare const NulogyLogo: () => React.JSX.Element;
1
+ declare const NulogyLogo: () => import("react/jsx-runtime").JSX.Element;
3
2
  export default NulogyLogo;
@@ -1,15 +1,3 @@
1
- import React from "react";
2
- const NulogyLogo = () => (React.createElement("svg", { width: "76px", height: "18px", viewBox: "0 0 76 18" },
3
- React.createElement("g", { id: "FInal", stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd" },
4
- React.createElement("g", { id: "DQI", transform: "translate(-924.000000, -30.000000)" },
5
- React.createElement("g", { id: "Branding", transform: "translate(916.000000, 24.000000)" },
6
- React.createElement("g", { id: "Logo/Wordmark/White", transform: "translate(8.000000, 6.000000)" },
7
- React.createElement("g", { id: "Group" },
8
- React.createElement("path", { d: "M27.2853035,13.6251552 L24.3693609,13.6251552 L24.3693609,5.29388243 L27.0621839,5.29388243 L27.0621839,6.69024606 C27.4508582,6.19089626 27.9367815,5.77426587 28.4910287,5.46515515 C28.9949427,5.19647371 29.5588999,5.05803724 30.1309029,5.0626097 C31.018985,5.0626097 31.6927403,5.31533697 32.1521688,5.82079152 C32.6115974,6.32624606 32.8413117,7.06588243 32.8413117,8.03970061 L32.8413117,13.6251552 L29.9407567,13.6251552 L29.9407567,8.85242788 C29.9407567,8.41606425 29.8506295,8.08624606 29.6703753,7.86297334 C29.490121,7.63970061 29.2230369,7.5306097 28.869123,7.53570061 C28.3606008,7.53570061 27.9693172,7.70515515 27.695272,8.04406425 C27.4212269,8.38297334 27.2845707,8.87642788 27.2853035,9.52442788 L27.2853035,13.6251552 Z", id: "Path", fill: "#00438F" }),
9
- React.createElement("path", { d: "M40.1451818,5.0625 L43.0435386,5.0625 L43.0435386,12.7239545 L40.3507157,13.7919545 L40.3507157,12.1643182 C39.9614808,12.6643061 39.4757347,13.082268 38.9218708,13.3937727 C38.4207722,13.6600419 37.8602579,13.7969677 37.2918886,13.7919545 C36.4023411,13.7919545 35.7267539,13.5374091 35.2651271,13.0283182 C34.8035003,12.5192273 34.5719542,11.7792273 34.5704887,10.8083182 L34.5704887,5.0625 L37.4864313,5.0625 L37.4864313,10.0010455 C37.4864313,10.4374091 37.5765584,10.7686818 37.7568127,10.9948636 C37.937067,11.2210455 38.2041511,11.3334091 38.5580649,11.3319545 C39.0709836,11.3319545 39.4622673,11.1610455 39.7319159,10.8192273 C40.0015646,10.4774091 40.1382208,9.98577273 40.1418845,9.34431818 L40.1451818,5.0625 Z", id: "Path", fill: "#00438F" }),
10
- React.createElement("polygon", { id: "Path", fill: "#00438F", points: "46.3103725 13.812 44.7716165 13.812 44.7716165 0.612 46.3103725 9.99200722e-16" }),
11
- React.createElement("path", { d: "M47.6052632,9.60286364 C47.6052632,8.28359091 48.0276883,7.19704545 48.8725386,6.34322727 C49.7173889,5.48940909 50.7886562,5.0625 52.0863404,5.0625 C53.3840246,5.0625 54.4552919,5.48940909 55.3001422,6.34322727 C56.1449925,7.19704545 56.5674176,8.28359091 56.5674176,9.60286364 C56.5674176,10.9279545 56.1449925,12.0188636 55.3001422,12.8755909 C54.4552919,13.7323182 53.3840246,14.1592273 52.0863404,14.1563329 C50.7937854,14.1563329 49.7239836,13.7294091 48.8769351,12.8755909 C48.0298865,12.0217727 47.6059959,10.9308636 47.6052632,9.60286364 Z M49.133028,9.60286364 C49.133028,10.6392273 49.4030431,11.4730455 49.9430731,12.1043182 C50.4831032,12.7355909 51.1912973,13.0515909 52.0676555,13.0523182 C52.9469446,13.0523182 53.6580697,12.7363182 54.2010308,12.1043182 C54.7439918,11.4723182 55.0173042,10.6385 55.0209679,9.60286364 C55.0209679,8.57377273 54.7476555,7.74322727 54.2010308,7.11122727 C53.654406,6.47922727 52.9432809,6.16359091 52.0676555,6.16431693 C51.1883664,6.16431693 50.4801722,6.48031818 49.9430731,7.11231818 C49.405974,7.74431818 49.135959,8.5745 49.133028,9.60286364 Z", id: "Shape", fill: "#00438F" }),
12
- React.createElement("path", { d: "M64.0871268,13.2650455 C63.6599049,13.5160632 63.2028112,13.7132209 62.7264269,13.8519545 C62.2872699,13.9773973 61.8326004,14.0412883 61.375619,14.0417727 C60.1402177,14.0417727 59.1418582,13.6348636 58.3805404,12.8210455 C57.6192225,12.0072273 57.23893,10.9377727 57.2396617,9.61268182 C57.2396617,8.26213636 57.6463339,7.16613636 58.4596764,6.32468182 C59.2730188,5.48322727 60.3354932,5.0625 61.6470995,5.0625 C62.0607066,5.06850508 62.4731354,5.10790785 62.8803025,5.18031818 C63.3492567,5.25740909 63.891485,5.37595455 64.5069874,5.53595455 L65.5962068,5.09959091 L65.5962068,12.6159545 C65.5962068,13.6203182 65.5482123,14.3552273 65.4522232,14.8206818 C65.3679541,15.2558519 65.2020399,15.6714278 64.9631186,16.0457727 C64.6019617,16.5876404 64.0882569,17.0121536 63.4859129,17.2665 C62.7842363,17.5630036 62.0270581,17.7080287 61.2646087,17.6919545 C60.7156985,17.6919213 60.1690427,17.6222662 59.6379238,17.4846818 C59.0829675,17.3384872 58.5470293,17.1287137 58.0409149,16.8595909 L57.7892184,15.0475909 L58.9158076,15.7785 C59.2556951,15.9885109 59.62653,16.1445715 60.014919,16.2410455 C60.4392817,16.3595698 60.8776378,16.4215675 61.3184652,16.4254091 C62.1977543,16.4254091 62.8795698,16.2072273 63.3639115,15.7708636 C63.8482533,15.3345 64.089325,14.7134091 64.0871268,13.9075909 L64.0871268,13.2650455 Z M64.0871268,12.1272273 L64.0871268,6.79159091 C63.7249004,6.6117699 63.3457079,6.46780202 62.9550421,6.36177273 C62.6131894,6.26948879 62.2607514,6.22145438 61.9064898,6.21886364 C60.9693141,6.21886364 60.2149573,6.53159091 59.6434194,7.15704545 C59.0718814,7.7825 58.7857461,8.6145 58.7850134,9.65304545 C58.7850134,10.6508636 59.0414727,11.4428636 59.5543914,12.0290455 C60.06731,12.6152273 60.7582847,12.9079545 61.6273155,12.9072286 C61.9914329,12.9029522 62.3527769,12.8437294 62.6989491,12.7315909 C63.1785695,12.5707605 63.6430713,12.3685328 64.0871268,12.1272273 L64.0871268,12.1272273 Z", id: "Shape", fill: "#00438F" }),
13
- React.createElement("path", { d: "M66.8740602,5.0625 L68.4765646,5.0625 L70.9913315,11.6079545 L73.7588941,5.0625 L75.0635393,5.0625 L71.0572782,14.2446818 L70.9913315,14.3745 C70.3582433,15.8043182 69.8706042,16.8225 69.5284142,17.4290455 L67.8610622,17.4290455 C68.2162734,17.063213 68.5346911,16.6638682 68.8117936,16.2366818 C69.158768,15.6835017 69.4668841,15.1072249 69.7339481,14.5119545 L70.2747109,13.3566818 L66.8740602,5.0625 Z", id: "Path", fill: "#00438F" }),
14
- React.createElement("path", { d: "M17.3967355,0.639272727 L20.618231,1.91781818 L20.618231,13.4301818 C20.618231,15.9021818 17.5407191,16.3363636 15.4633985,16.6276364 C16.6515379,16.3363636 17.4033301,16.0090909 17.3967355,13.4301818 L17.3967355,3.19745455 L14.1752399,1.91781818 L17.3967355,0.639272727 Z M3.86557485,15.9883636 L3.86557485,8.95527273 C3.86557485,8.24727273 4.40084211,7.44654545 5.05041695,7.17054545 L8.37632809,5.75236364 L8.37632809,10.2250909 L11.5978237,12.1527273 C12.2473985,12.48 13.5311606,12.4876364 13.5311606,11.5123636 L13.5311606,9.59345455 L12.2408038,8.95309091 L12.2408038,0 L2.41804511,3.59236364 C1.08262474,4.08 1.81208432e-14,5.61709091 1.81208432e-14,7.03527273 L1.81208432e-14,17.5876364 L3.86557485,15.9883636 Z", id: "Shape", fill: "#F0B41C" }))))))));
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ const NulogyLogo = () => (_jsx("svg", { width: "76px", height: "18px", viewBox: "0 0 76 18", children: _jsx("g", { id: "FInal", stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd", children: _jsx("g", { id: "DQI", transform: "translate(-924.000000, -30.000000)", children: _jsx("g", { id: "Branding", transform: "translate(916.000000, 24.000000)", children: _jsx("g", { id: "Logo/Wordmark/White", transform: "translate(8.000000, 6.000000)", children: _jsxs("g", { id: "Group", children: [_jsx("path", { d: "M27.2853035,13.6251552 L24.3693609,13.6251552 L24.3693609,5.29388243 L27.0621839,5.29388243 L27.0621839,6.69024606 C27.4508582,6.19089626 27.9367815,5.77426587 28.4910287,5.46515515 C28.9949427,5.19647371 29.5588999,5.05803724 30.1309029,5.0626097 C31.018985,5.0626097 31.6927403,5.31533697 32.1521688,5.82079152 C32.6115974,6.32624606 32.8413117,7.06588243 32.8413117,8.03970061 L32.8413117,13.6251552 L29.9407567,13.6251552 L29.9407567,8.85242788 C29.9407567,8.41606425 29.8506295,8.08624606 29.6703753,7.86297334 C29.490121,7.63970061 29.2230369,7.5306097 28.869123,7.53570061 C28.3606008,7.53570061 27.9693172,7.70515515 27.695272,8.04406425 C27.4212269,8.38297334 27.2845707,8.87642788 27.2853035,9.52442788 L27.2853035,13.6251552 Z", id: "Path", fill: "#00438F" }), _jsx("path", { d: "M40.1451818,5.0625 L43.0435386,5.0625 L43.0435386,12.7239545 L40.3507157,13.7919545 L40.3507157,12.1643182 C39.9614808,12.6643061 39.4757347,13.082268 38.9218708,13.3937727 C38.4207722,13.6600419 37.8602579,13.7969677 37.2918886,13.7919545 C36.4023411,13.7919545 35.7267539,13.5374091 35.2651271,13.0283182 C34.8035003,12.5192273 34.5719542,11.7792273 34.5704887,10.8083182 L34.5704887,5.0625 L37.4864313,5.0625 L37.4864313,10.0010455 C37.4864313,10.4374091 37.5765584,10.7686818 37.7568127,10.9948636 C37.937067,11.2210455 38.2041511,11.3334091 38.5580649,11.3319545 C39.0709836,11.3319545 39.4622673,11.1610455 39.7319159,10.8192273 C40.0015646,10.4774091 40.1382208,9.98577273 40.1418845,9.34431818 L40.1451818,5.0625 Z", id: "Path", fill: "#00438F" }), _jsx("polygon", { id: "Path", fill: "#00438F", points: "46.3103725 13.812 44.7716165 13.812 44.7716165 0.612 46.3103725 9.99200722e-16" }), _jsx("path", { d: "M47.6052632,9.60286364 C47.6052632,8.28359091 48.0276883,7.19704545 48.8725386,6.34322727 C49.7173889,5.48940909 50.7886562,5.0625 52.0863404,5.0625 C53.3840246,5.0625 54.4552919,5.48940909 55.3001422,6.34322727 C56.1449925,7.19704545 56.5674176,8.28359091 56.5674176,9.60286364 C56.5674176,10.9279545 56.1449925,12.0188636 55.3001422,12.8755909 C54.4552919,13.7323182 53.3840246,14.1592273 52.0863404,14.1563329 C50.7937854,14.1563329 49.7239836,13.7294091 48.8769351,12.8755909 C48.0298865,12.0217727 47.6059959,10.9308636 47.6052632,9.60286364 Z M49.133028,9.60286364 C49.133028,10.6392273 49.4030431,11.4730455 49.9430731,12.1043182 C50.4831032,12.7355909 51.1912973,13.0515909 52.0676555,13.0523182 C52.9469446,13.0523182 53.6580697,12.7363182 54.2010308,12.1043182 C54.7439918,11.4723182 55.0173042,10.6385 55.0209679,9.60286364 C55.0209679,8.57377273 54.7476555,7.74322727 54.2010308,7.11122727 C53.654406,6.47922727 52.9432809,6.16359091 52.0676555,6.16431693 C51.1883664,6.16431693 50.4801722,6.48031818 49.9430731,7.11231818 C49.405974,7.74431818 49.135959,8.5745 49.133028,9.60286364 Z", id: "Shape", fill: "#00438F" }), _jsx("path", { d: "M64.0871268,13.2650455 C63.6599049,13.5160632 63.2028112,13.7132209 62.7264269,13.8519545 C62.2872699,13.9773973 61.8326004,14.0412883 61.375619,14.0417727 C60.1402177,14.0417727 59.1418582,13.6348636 58.3805404,12.8210455 C57.6192225,12.0072273 57.23893,10.9377727 57.2396617,9.61268182 C57.2396617,8.26213636 57.6463339,7.16613636 58.4596764,6.32468182 C59.2730188,5.48322727 60.3354932,5.0625 61.6470995,5.0625 C62.0607066,5.06850508 62.4731354,5.10790785 62.8803025,5.18031818 C63.3492567,5.25740909 63.891485,5.37595455 64.5069874,5.53595455 L65.5962068,5.09959091 L65.5962068,12.6159545 C65.5962068,13.6203182 65.5482123,14.3552273 65.4522232,14.8206818 C65.3679541,15.2558519 65.2020399,15.6714278 64.9631186,16.0457727 C64.6019617,16.5876404 64.0882569,17.0121536 63.4859129,17.2665 C62.7842363,17.5630036 62.0270581,17.7080287 61.2646087,17.6919545 C60.7156985,17.6919213 60.1690427,17.6222662 59.6379238,17.4846818 C59.0829675,17.3384872 58.5470293,17.1287137 58.0409149,16.8595909 L57.7892184,15.0475909 L58.9158076,15.7785 C59.2556951,15.9885109 59.62653,16.1445715 60.014919,16.2410455 C60.4392817,16.3595698 60.8776378,16.4215675 61.3184652,16.4254091 C62.1977543,16.4254091 62.8795698,16.2072273 63.3639115,15.7708636 C63.8482533,15.3345 64.089325,14.7134091 64.0871268,13.9075909 L64.0871268,13.2650455 Z M64.0871268,12.1272273 L64.0871268,6.79159091 C63.7249004,6.6117699 63.3457079,6.46780202 62.9550421,6.36177273 C62.6131894,6.26948879 62.2607514,6.22145438 61.9064898,6.21886364 C60.9693141,6.21886364 60.2149573,6.53159091 59.6434194,7.15704545 C59.0718814,7.7825 58.7857461,8.6145 58.7850134,9.65304545 C58.7850134,10.6508636 59.0414727,11.4428636 59.5543914,12.0290455 C60.06731,12.6152273 60.7582847,12.9079545 61.6273155,12.9072286 C61.9914329,12.9029522 62.3527769,12.8437294 62.6989491,12.7315909 C63.1785695,12.5707605 63.6430713,12.3685328 64.0871268,12.1272273 L64.0871268,12.1272273 Z", id: "Shape", fill: "#00438F" }), _jsx("path", { d: "M66.8740602,5.0625 L68.4765646,5.0625 L70.9913315,11.6079545 L73.7588941,5.0625 L75.0635393,5.0625 L71.0572782,14.2446818 L70.9913315,14.3745 C70.3582433,15.8043182 69.8706042,16.8225 69.5284142,17.4290455 L67.8610622,17.4290455 C68.2162734,17.063213 68.5346911,16.6638682 68.8117936,16.2366818 C69.158768,15.6835017 69.4668841,15.1072249 69.7339481,14.5119545 L70.2747109,13.3566818 L66.8740602,5.0625 Z", id: "Path", fill: "#00438F" }), _jsx("path", { d: "M17.3967355,0.639272727 L20.618231,1.91781818 L20.618231,13.4301818 C20.618231,15.9021818 17.5407191,16.3363636 15.4633985,16.6276364 C16.6515379,16.3363636 17.4033301,16.0090909 17.3967355,13.4301818 L17.3967355,3.19745455 L14.1752399,1.91781818 L17.3967355,0.639272727 Z M3.86557485,15.9883636 L3.86557485,8.95527273 C3.86557485,8.24727273 4.40084211,7.44654545 5.05041695,7.17054545 L8.37632809,5.75236364 L8.37632809,10.2250909 L11.5978237,12.1527273 C12.2473985,12.48 13.5311606,12.4876364 13.5311606,11.5123636 L13.5311606,9.59345455 L12.2408038,8.95309091 L12.2408038,0 L2.41804511,3.59236364 C1.08262474,4.08 1.81208432e-14,5.61709091 1.81208432e-14,7.03527273 L1.81208432e-14,17.5876364 L3.86557485,15.9883636 Z", id: "Shape", fill: "#F0B41C" })] }) }) }) }) }) }));
15
3
  export default NulogyLogo;
@@ -1,8 +1,7 @@
1
- import React from "react";
2
1
  type NulogyLogoContainerProps = {
3
2
  subText?: string;
4
3
  height?: string;
5
4
  };
6
5
  /** @deprecated The BrandedNavBar component is deprecated. Use the Navigation component instead. */
7
- export declare const NulogyLogoContainer: ({ subText, height }: NulogyLogoContainerProps) => React.JSX.Element;
6
+ export declare const NulogyLogoContainer: ({ subText, height }: NulogyLogoContainerProps) => import("react/jsx-runtime").JSX.Element;
8
7
  export {};
@@ -1,11 +1,8 @@
1
- import React from "react";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Flex } from "../Flex";
3
3
  import { Box } from "../Box";
4
4
  import { Text } from "../Type";
5
5
  import NulogyLogo from "./NulogyLogo";
6
6
  const borderStyle = "1px solid #e4e7eb";
7
7
  /** @deprecated The BrandedNavBar component is deprecated. Use the Navigation component instead. */
8
- export const NulogyLogoContainer = ({ subText, height }) => (React.createElement(Flex, { px: "x1", py: "half", alignItems: "center", justifyContent: "center", flexDirection: subText ? "column" : "row", height: height, borderLeft: borderStyle, borderRight: borderStyle },
9
- React.createElement(Box, { width: "76px", height: "18px" },
10
- React.createElement(NulogyLogo, null)),
11
- subText && (React.createElement(Text, { fontSize: "8px", lineHeight: "10px", color: "darkGrey", fontWeight: "medium", textTransform: "uppercase", letterSpacing: ".5px" }, subText))));
8
+ export const NulogyLogoContainer = ({ subText, height }) => (_jsxs(Flex, { px: "x1", py: "half", alignItems: "center", justifyContent: "center", flexDirection: subText ? "column" : "row", height: height, borderLeft: borderStyle, borderRight: borderStyle, children: [_jsx(Box, { width: "76px", height: "18px", children: _jsx(NulogyLogo, {}) }), subText && (_jsx(Text, { fontSize: "8px", lineHeight: "10px", color: "darkGrey", fontWeight: "medium", textTransform: "uppercase", letterSpacing: ".5px", children: subText }))] }));
@@ -1,3 +1,4 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
2
  import { styled, useTheme } from "styled-components";
2
3
  import { useTranslation } from "react-i18next";
3
4
  import React, { useEffect } from "react";
@@ -45,7 +46,7 @@ const MenuIcon = ({ isOpen }) => {
45
46
  const { t } = useTranslation();
46
47
  const icon = isOpen ? "close" : "menu";
47
48
  const title = isOpen ? t("close menu") : t("open menu");
48
- return React.createElement(Icon, { icon: icon, title: title });
49
+ return _jsx(Icon, { icon: icon, title: title });
49
50
  };
50
51
  const SmallNavBarNoState = ({ menuData, menuState: { isOpen, toggleMenu, closeMenu }, subtext, environment, showNulogyLogo, breakpointLower = "small", themeColorObject, navBarHeight, logo, renderMenuButton, ...props }) => {
51
52
  const navRef = React.useRef(null);
@@ -56,22 +57,13 @@ const SmallNavBarNoState = ({ menuData, menuState: { isOpen, toggleMenu, closeMe
56
57
  }, [isOpen]);
57
58
  const { breakpoints } = useTheme();
58
59
  const ariaExpanded = isOpen ? true : null;
59
- return (React.createElement(SmallHeader, { ref: navRef, isOpen: isOpen, breakpointLower: breakpoints ? breakpoints[breakpointLower] : breakpointLower, ...props },
60
- environment && React.createElement(EnvironmentBanner, null, environment),
61
- React.createElement(NavBarBackground, { backgroundColor: "white", height: navBarHeight },
62
- logo,
63
- React.createElement(Flex, { justifyContent: "flex-end", ml: "x3", flexGrow: 1 },
64
- menuData.search && (React.createElement(Flex, { maxWidth: "18em", alignItems: "center", px: "0" },
65
- React.createElement(NavBarSearch, { ...menuData.search }))),
66
- (menuData.primaryMenu || menuData.secondaryMenu) &&
67
- (renderMenuButton ? (renderMenuButton({
68
- themeColorObject: themeColorObject,
69
- onClick: toggleMenu,
70
- ariaExpanded,
71
- isOpen,
72
- })) : (React.createElement(MobileMenuTrigger, { ...themeColorObject, onClick: toggleMenu, "aria-expanded": ariaExpanded },
73
- React.createElement(MenuIcon, { isOpen: isOpen })))))),
74
- isOpen && (React.createElement(MobileMenu, { themeColorObject: themeColorObject, subtext: subtext, menuData: menuData, closeMenu: closeMenu, showNulogyLogo: showNulogyLogo }))));
60
+ return (_jsxs(SmallHeader, { ref: navRef, isOpen: isOpen, breakpointLower: breakpoints ? breakpoints[breakpointLower] : breakpointLower, ...props, children: [environment && _jsx(EnvironmentBanner, { children: environment }), _jsxs(NavBarBackground, { backgroundColor: "white", height: navBarHeight, children: [logo, _jsxs(Flex, { justifyContent: "flex-end", ml: "x3", flexGrow: 1, children: [menuData.search && (_jsx(Flex, { maxWidth: "18em", alignItems: "center", px: "0", children: _jsx(NavBarSearch, { ...menuData.search }) })), (menuData.primaryMenu || menuData.secondaryMenu) &&
61
+ (renderMenuButton ? (renderMenuButton({
62
+ themeColorObject: themeColorObject,
63
+ onClick: toggleMenu,
64
+ ariaExpanded,
65
+ isOpen,
66
+ })) : (_jsx(MobileMenuTrigger, { ...themeColorObject, onClick: toggleMenu, "aria-expanded": ariaExpanded, children: _jsx(MenuIcon, { isOpen: isOpen }) })))] })] }), isOpen && (_jsx(MobileMenu, { themeColorObject: themeColorObject, subtext: subtext, menuData: menuData, closeMenu: closeMenu, showNulogyLogo: showNulogyLogo }))] }));
75
67
  };
76
68
  const SmallNavBar = withMenuState(SmallNavBarNoState);
77
69
  /** @deprecated The BrandedNavBar component is deprecated. Use the Navigation component instead. */
@@ -1,5 +1,4 @@
1
1
  import type { StoryObj } from "@storybook/react";
2
- import React from "react";
3
2
  import { SmallNavBar } from "./index";
4
3
  declare const _default: {
5
4
  title: string;
@@ -14,11 +13,11 @@ declare const _default: {
14
13
  };
15
14
  export default _default;
16
15
  type Story = StoryObj<typeof SmallNavBar>;
17
- export declare const _SmallNavBar: () => React.JSX.Element;
18
- export declare const SmallNavBarOpen: () => React.JSX.Element;
19
- export declare const WithALogo: () => React.JSX.Element;
20
- export declare const WithALogoOpen: () => React.JSX.Element;
21
- export declare const WithABrandLogoContainerLogo: () => React.JSX.Element;
22
- export declare const WithANulogyLogoAndAppName: () => React.JSX.Element;
16
+ export declare const _SmallNavBar: () => import("react/jsx-runtime").JSX.Element;
17
+ export declare const SmallNavBarOpen: () => import("react/jsx-runtime").JSX.Element;
18
+ export declare const WithALogo: () => import("react/jsx-runtime").JSX.Element;
19
+ export declare const WithALogoOpen: () => import("react/jsx-runtime").JSX.Element;
20
+ export declare const WithABrandLogoContainerLogo: () => import("react/jsx-runtime").JSX.Element;
21
+ export declare const WithANulogyLogoAndAppName: () => import("react/jsx-runtime").JSX.Element;
23
22
  export declare const WithEnvironmentBanner: Story;
24
23
  export declare const WithCustomMenuButton: Story;
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { styled } from "styled-components";
3
3
  import { Branding } from "../Branding";
4
4
  import { Button } from "../index";
@@ -14,9 +14,7 @@ const ResetStorybookView = styled.div({
14
14
  width: "100vw",
15
15
  height: "100vh",
16
16
  });
17
- const WrappedSmallNavBar = (props) => (React.createElement(ResetStorybookView, null,
18
- React.createElement(SmallNavBar, { navBarHeight: "56px", ...props }),
19
- React.createElement(Heading1, { mt: "x3", ml: "x1" }, "Some content")));
17
+ const WrappedSmallNavBar = (props) => (_jsxs(ResetStorybookView, { children: [_jsx(SmallNavBar, { navBarHeight: "56px", ...props }), _jsx(Heading1, { mt: "x3", ml: "x1", children: "Some content" })] }));
20
18
  const primaryMenu = [
21
19
  {
22
20
  name: "Dashboard",
@@ -74,16 +72,14 @@ export default {
74
72
  title: "Components/BrandedNavBar/SmallNavBar",
75
73
  parameters: smallViewport,
76
74
  };
77
- export const _SmallNavBar = () => React.createElement(WrappedSmallNavBar, { menuData: { primaryMenu, secondaryMenu } });
78
- export const SmallNavBarOpen = () => React.createElement(WrappedSmallNavBar, { menuData: { primaryMenu, secondaryMenu }, defaultOpen: true });
79
- export const WithALogo = () => (React.createElement(WrappedSmallNavBar, { menuData: { primaryMenu, secondaryMenu }, logo: React.createElement(Link, { "aria-label": "Home", href: "/", underline: false, style: { display: "block" } },
80
- React.createElement(Branding, { size: "medium", logoType: "wordmark", logoColor: "blue" })) }));
81
- export const WithALogoOpen = () => (React.createElement(WrappedSmallNavBar, { menuData: { primaryMenu, secondaryMenu }, defaultOpen: true, logo: React.createElement(Link, { "aria-label": "Home", href: "/", underline: false, style: { display: "block" } },
82
- React.createElement(Branding, { size: "medium", logoType: "wordmark", logoColor: "blue" })) }));
83
- export const WithABrandLogoContainerLogo = () => (React.createElement(WrappedSmallNavBar, { menuData: { primaryMenu, secondaryMenu }, logo: React.createElement(BrandLogoContainer, { brandingLinkHref: "/" }) }));
84
- export const WithANulogyLogoAndAppName = () => (React.createElement(WrappedSmallNavBar, { menuData: { primaryMenu, secondaryMenu }, subtext: "Quality control", showNulogyLogo: true, defaultOpen: true }));
75
+ export const _SmallNavBar = () => _jsx(WrappedSmallNavBar, { menuData: { primaryMenu, secondaryMenu } });
76
+ export const SmallNavBarOpen = () => _jsx(WrappedSmallNavBar, { menuData: { primaryMenu, secondaryMenu }, defaultOpen: true });
77
+ export const WithALogo = () => (_jsx(WrappedSmallNavBar, { menuData: { primaryMenu, secondaryMenu }, logo: _jsx(Link, { "aria-label": "Home", href: "/", underline: false, style: { display: "block" }, children: _jsx(Branding, { size: "medium", logoType: "wordmark", logoColor: "blue" }) }) }));
78
+ export const WithALogoOpen = () => (_jsx(WrappedSmallNavBar, { menuData: { primaryMenu, secondaryMenu }, defaultOpen: true, logo: _jsx(Link, { "aria-label": "Home", href: "/", underline: false, style: { display: "block" }, children: _jsx(Branding, { size: "medium", logoType: "wordmark", logoColor: "blue" }) }) }));
79
+ export const WithABrandLogoContainerLogo = () => (_jsx(WrappedSmallNavBar, { menuData: { primaryMenu, secondaryMenu }, logo: _jsx(BrandLogoContainer, { brandingLinkHref: "/" }) }));
80
+ export const WithANulogyLogoAndAppName = () => (_jsx(WrappedSmallNavBar, { menuData: { primaryMenu, secondaryMenu }, subtext: "Quality control", showNulogyLogo: true, defaultOpen: true }));
85
81
  export const WithEnvironmentBanner = {
86
- render: (args) => React.createElement(WrappedSmallNavBar, { menuData: { primaryMenu, secondaryMenu }, environment: args.environment }),
82
+ render: (args) => _jsx(WrappedSmallNavBar, { menuData: { primaryMenu, secondaryMenu }, environment: args.environment }),
87
83
  args: {
88
84
  environment: "training",
89
85
  },
@@ -95,9 +91,7 @@ export const WithEnvironmentBanner = {
95
91
  },
96
92
  };
97
93
  export const WithCustomMenuButton = {
98
- render: (args) => (React.createElement(WrappedSmallNavBar, { menuData: { primaryMenu, secondaryMenu }, environment: args.environment, renderMenuButton: ({ onClick, ariaExpanded, isOpen }) => (React.createElement(Button, { onClick: onClick, "aria-expanded": ariaExpanded },
99
- "Click to ",
100
- isOpen ? "close" : "open")) })),
94
+ render: (args) => (_jsx(WrappedSmallNavBar, { menuData: { primaryMenu, secondaryMenu }, environment: args.environment, renderMenuButton: ({ onClick, ariaExpanded, isOpen }) => (_jsxs(Button, { onClick: onClick, "aria-expanded": ariaExpanded, children: ["Click to ", isOpen ? "close" : "open"] })) })),
101
95
  args: {
102
96
  environment: "training",
103
97
  },
@@ -10,6 +10,6 @@ type SubMenuTriggerProps = React.ComponentPropsWithRef<"button"> & {
10
10
  layer: number;
11
11
  menuType: MenuType;
12
12
  };
13
- declare const SubMenuTrigger: ({ menuData, name, onItemClick, trigger, layer, menuType, ...props }: SubMenuTriggerProps) => React.JSX.Element;
13
+ declare const SubMenuTrigger: ({ menuData, name, onItemClick, trigger, layer, menuType, ...props }: SubMenuTriggerProps) => import("react/jsx-runtime").JSX.Element;
14
14
  /** @deprecated The BrandedNavBar component is deprecated. Use the Navigation component instead. */
15
15
  export default SubMenuTrigger;
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { styled, useTheme } from "styled-components";
3
3
  import { addStyledProps } from "../StyledProps";
4
4
  import NavBarDropdownMenu from "./NavBarDropdownMenu";
@@ -7,7 +7,7 @@ import SubMenuTriggerButton from "./SubMenuTriggerButton";
7
7
  import { NAVBAR_HEIGHT } from "./NavBar";
8
8
  const SubMenuTrigger = ({ menuData, name, onItemClick, trigger, layer, menuType, ...props }) => {
9
9
  const theme = useTheme();
10
- return (React.createElement(NavBarDropdownMenu, { placement: getPlacement(menuType), modifiers: {
10
+ return (_jsx(NavBarDropdownMenu, { placement: getPlacement(menuType), modifiers: {
11
11
  preventOverflow: {
12
12
  enabled: true,
13
13
  padding: theme.space.x1,
@@ -17,7 +17,7 @@ const SubMenuTrigger = ({ menuData, name, onItemClick, trigger, layer, menuType,
17
17
  onMouseEnter: openMenu,
18
18
  onMouseLeave: closeMenu,
19
19
  }), trigger: ({ closeMenu, openMenu, isOpen }) => {
20
- const defaultRender = () => (React.createElement(SubMenuTriggerButton, { isOpen: isOpen, name: name, onMouseEnter: openMenu, onMouseLeave: closeMenu }));
20
+ const defaultRender = () => (_jsx(SubMenuTriggerButton, { isOpen: isOpen, name: name, onMouseEnter: openMenu, onMouseLeave: closeMenu }));
21
21
  const triggerProps = {
22
22
  size: "medium",
23
23
  closeMenu,
@@ -27,8 +27,7 @@ const SubMenuTrigger = ({ menuData, name, onItemClick, trigger, layer, menuType,
27
27
  layer,
28
28
  };
29
29
  return trigger ? trigger(triggerProps) : defaultRender();
30
- } },
31
- React.createElement(SubMenuItemsList, null, renderSubMenuItems(menuData, onItemClick, SubMenuTrigger, layer + 1, menuType))));
30
+ }, children: _jsx(SubMenuItemsList, { children: renderSubMenuItems(menuData, onItemClick, SubMenuTrigger, layer + 1, menuType) }) }));
32
31
  };
33
32
  const SubMenuItemsList = styled("ul")(({ theme }) => ({
34
33
  listStyle: "none",
@@ -1,3 +1,4 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
2
  import { styled } from "styled-components";
2
3
  import React from "react";
3
4
  import { DropdownButton } from "../DropdownMenu";
@@ -9,10 +10,7 @@ const StyledButton = styled(DropdownButton)(({ isOpen, theme }) => ({
9
10
  color: isOpen ? theme.colors.darkBlue : theme.colors.darkGrey,
10
11
  }));
11
12
  const SubMenuTriggerButton = React.forwardRef(({ name, isOpen, ...props }, ref) => {
12
- return (React.createElement(StyledButton, { isOpen: isOpen, ref: ref, ...props },
13
- React.createElement(Flex, { gap: "half", justifyContent: "space-between", alignItems: "center" },
14
- name,
15
- React.createElement(Icon, { icon: "rightArrow", size: "20px" }))));
13
+ return (_jsx(StyledButton, { isOpen: isOpen, ref: ref, ...props, children: _jsxs(Flex, { gap: "half", justifyContent: "space-between", alignItems: "center", children: [name, _jsx(Icon, { icon: "rightArrow", size: "20px" })] }) }));
16
14
  });
17
15
  SubMenuTriggerButton.displayName = "SubMenuTriggerButton";
18
16
  /** @deprecated The BrandedNavBar component is deprecated. Use the Navigation component instead. */
@@ -1,9 +1,8 @@
1
- import React from "react";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { styled } from "styled-components";
3
3
  import { DropdownText, DropdownLink } from "../DropdownMenu";
4
4
  import { Icon } from "../Icon";
5
- const renderSubMenuTrigger = (subMenuItem, onItemClick, SubMenuTrigger, layer, menuType) => (React.createElement(NoWrapLi, { key: subMenuItem.key ?? subMenuItem.name },
6
- React.createElement(SubMenuTrigger, { onItemClick: onItemClick, name: subMenuItem.name, menuData: subMenuItem.items, trigger: subMenuItem.trigger, layer: layer, menuType: menuType })));
5
+ const renderSubMenuTrigger = (subMenuItem, onItemClick, SubMenuTrigger, layer, menuType) => (_jsx(NoWrapLi, { children: _jsx(SubMenuTrigger, { onItemClick: onItemClick, name: subMenuItem.name, menuData: subMenuItem.items, trigger: subMenuItem.trigger, layer: layer, menuType: menuType }) }, subMenuItem.key ?? subMenuItem.name));
7
6
  const renderSubMenuLink = (subMenuItem, onItemClick) => {
8
7
  const linkProps = {
9
8
  onClick: onItemClick,
@@ -12,14 +11,10 @@ const renderSubMenuLink = (subMenuItem, onItemClick) => {
12
11
  as: subMenuItem.as,
13
12
  target: subMenuItem.openInNew ? "_blank" : undefined,
14
13
  };
15
- return (React.createElement(NoWrapLi, { key: subMenuItem.key ?? subMenuItem.name },
16
- React.createElement(DropdownLink, { ...linkProps },
17
- subMenuItem.name,
18
- subMenuItem.openInNew && React.createElement(Icon, { size: "x2", icon: "openInNew" }))));
14
+ return (_jsx(NoWrapLi, { children: _jsxs(DropdownLink, { ...linkProps, children: [subMenuItem.name, subMenuItem.openInNew && _jsx(Icon, { size: "x2", icon: "openInNew" })] }) }, subMenuItem.key ?? subMenuItem.name));
19
15
  };
20
- const renderCustom = (subMenuItem, onItemClick, _SubMenuTrigger, layer) => (React.createElement(NoWrapLi, { key: subMenuItem.key ?? subMenuItem.name }, subMenuItem.render({ size: "medium", onItemClick, layer })));
21
- const renderText = (subMenuItem) => (React.createElement(NoWrapLi, { key: subMenuItem.key ?? subMenuItem.name },
22
- React.createElement(DropdownText, null, subMenuItem.name)));
16
+ const renderCustom = (subMenuItem, onItemClick, _SubMenuTrigger, layer) => (_jsx(NoWrapLi, { children: subMenuItem.render({ size: "medium", onItemClick, layer }) }, subMenuItem.key ?? subMenuItem.name));
17
+ const renderText = (subMenuItem) => (_jsx(NoWrapLi, { children: _jsx(DropdownText, { children: subMenuItem.name }) }, subMenuItem.key ?? subMenuItem.name));
23
18
  const getRenderFunction = (subMenuItem) => {
24
19
  if (subMenuItem.items) {
25
20
  return renderSubMenuTrigger;
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  type BrandingProps = {
3
2
  logoType?: "wordmark" | "lettermark";
4
3
  logoColor?: "blue" | "white";
@@ -8,5 +7,5 @@ type BrandingProps = {
8
7
  subtext?: string;
9
8
  className?: string;
10
9
  };
11
- declare const Branding: ({ logoType, subtext, size, alignment, withLine, logoColor, className, ...props }: BrandingProps) => React.JSX.Element;
10
+ declare const Branding: ({ logoType, subtext, size, alignment, withLine, logoColor, className, ...props }: BrandingProps) => import("react/jsx-runtime").JSX.Element;
12
11
  export default Branding;