@nulogy/components 14.8.2 → 15.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 (899) hide show
  1. package/dist/locales/de_DE.json +63 -0
  2. package/dist/locales/en_US.json +63 -0
  3. package/dist/locales/es_ES.json +63 -0
  4. package/dist/locales/es_MX.json +63 -0
  5. package/dist/locales/fr_FR.json +63 -0
  6. package/dist/locales/nl_NL.json +63 -0
  7. package/dist/locales/pl_PL.json +63 -0
  8. package/dist/locales/pt_BR.json +63 -0
  9. package/dist/locales/ro_RO.json +63 -0
  10. package/dist/locales/zh_CN.json +63 -0
  11. package/dist/main.js +6615 -6668
  12. package/dist/main.module.js +6611 -6664
  13. package/dist/src/Alert/Alert.d.ts +26 -26
  14. package/dist/src/Alert/Alert.js +70 -0
  15. package/dist/src/Alert/Alert.story.d.ts +24 -24
  16. package/dist/src/Alert/Alert.story.js +27 -0
  17. package/dist/src/Alert/CloseButton.d.ts +7 -7
  18. package/dist/src/Alert/CloseButton.js +10 -0
  19. package/dist/src/Alert/index.d.ts +2 -2
  20. package/dist/src/Alert/index.js +1 -0
  21. package/dist/src/AppTag/AppTag.d.ts +9 -9
  22. package/dist/src/AppTag/AppTag.js +39 -0
  23. package/dist/src/AppTag/components/LogoWrapper.d.ts +5 -5
  24. package/dist/src/AppTag/components/LogoWrapper.js +12 -0
  25. package/dist/src/AppTag/components/NulogyLogo.d.ts +2 -2
  26. package/dist/src/AppTag/components/NulogyLogo.js +17 -0
  27. package/dist/src/AppTag/constants.d.ts +5 -5
  28. package/dist/src/AppTag/constants.js +14 -0
  29. package/dist/src/AppTag/index.d.ts +2 -2
  30. package/dist/src/AppTag/index.js +1 -0
  31. package/dist/src/AppTag/stories/AppTag.story.d.ts +12 -12
  32. package/dist/src/AppTag/stories/AppTag.story.js +34 -0
  33. package/dist/src/AppTag/stories/AppTag.usecases.story.d.ts +27 -27
  34. package/dist/src/AppTag/stories/AppTag.usecases.story.js +118 -0
  35. package/dist/src/AppTag/types.d.ts +3 -3
  36. package/dist/src/AppTag/types.js +1 -0
  37. package/dist/src/AsyncSelect/AsyncSelect.d.ts +24 -24
  38. package/dist/src/AsyncSelect/AsyncSelect.graphql.story.d.ts +6 -6
  39. package/dist/src/AsyncSelect/AsyncSelect.graphql.story.js +61 -0
  40. package/dist/src/AsyncSelect/AsyncSelect.js +46 -0
  41. package/dist/src/AsyncSelect/AsyncSelect.story.d.ts +29 -29
  42. package/dist/src/AsyncSelect/AsyncSelect.story.js +54 -0
  43. package/dist/src/AsyncSelect/AsyncSelectComponents.d.ts +22 -22
  44. package/dist/src/AsyncSelect/AsyncSelectComponents.js +54 -0
  45. package/dist/src/AsyncSelect/fixtures.d.ts +5 -5
  46. package/dist/src/AsyncSelect/fixtures.js +68 -0
  47. package/dist/src/AsyncSelect/index.d.ts +1 -1
  48. package/dist/src/AsyncSelect/index.js +1 -0
  49. package/dist/src/Banner/Banner.d.ts +4 -4
  50. package/dist/src/Banner/Banner.js +18 -0
  51. package/dist/src/Banner/Banner.story.d.ts +14 -14
  52. package/dist/src/Banner/Banner.story.js +38 -0
  53. package/dist/src/Banner/index.d.ts +1 -1
  54. package/dist/src/Banner/index.js +1 -0
  55. package/dist/src/BottomSheet/BottomSheet.d.ts +22 -22
  56. package/dist/src/BottomSheet/BottomSheet.js +49 -0
  57. package/dist/src/BottomSheet/BottomSheet.parts.d.ts +50 -50
  58. package/dist/src/BottomSheet/BottomSheet.parts.js +64 -0
  59. package/dist/src/BottomSheet/BottomSheet.styled.d.ts +50 -50
  60. package/dist/src/BottomSheet/BottomSheet.styled.js +86 -0
  61. package/dist/src/BottomSheet/BottomSheetProvider.d.ts +12 -12
  62. package/dist/src/BottomSheet/BottomSheetProvider.js +15 -0
  63. package/dist/src/BottomSheet/index.d.ts +3 -3
  64. package/dist/src/BottomSheet/index.js +2 -0
  65. package/dist/src/BottomSheet/stories/BottomSheet.actions.story.d.ts +13 -13
  66. package/dist/src/BottomSheet/stories/BottomSheet.actions.story.js +25 -0
  67. package/dist/src/BottomSheet/stories/BottomSheet.content.story.d.ts +13 -13
  68. package/dist/src/BottomSheet/stories/BottomSheet.content.story.js +29 -0
  69. package/dist/src/BottomSheet/stories/BottomSheet.features.story.d.ts +20 -20
  70. package/dist/src/BottomSheet/stories/BottomSheet.features.story.js +77 -0
  71. package/dist/src/BottomSheet/stories/BottomSheet.parts.story.d.ts +12 -12
  72. package/dist/src/BottomSheet/stories/BottomSheet.parts.story.js +45 -0
  73. package/dist/src/BottomSheet/stories/BottomSheet.story.d.ts +12 -12
  74. package/dist/src/BottomSheet/stories/BottomSheet.story.js +18 -0
  75. package/dist/src/Box/Box.d.ts +268 -268
  76. package/dist/src/Box/Box.js +6 -0
  77. package/dist/src/Box/Box.story.d.ts +72 -72
  78. package/dist/src/Box/Box.story.js +85 -0
  79. package/dist/src/Box/index.d.ts +2 -2
  80. package/dist/src/Box/index.js +1 -0
  81. package/dist/src/BrandedNavBar/BrandLogoContainer.d.ts +12 -12
  82. package/dist/src/BrandedNavBar/BrandLogoContainer.js +14 -0
  83. package/dist/src/BrandedNavBar/DesktopMenu.d.ts +11 -11
  84. package/dist/src/BrandedNavBar/DesktopMenu.js +98 -0
  85. package/dist/src/BrandedNavBar/MenuTrigger.d.ts +19 -19
  86. package/dist/src/BrandedNavBar/MenuTrigger.js +59 -0
  87. package/dist/src/BrandedNavBar/MenuTriggerButton.d.ts +10 -10
  88. package/dist/src/BrandedNavBar/MenuTriggerButton.js +56 -0
  89. package/dist/src/BrandedNavBar/MobileMenu.d.ts +20 -20
  90. package/dist/src/BrandedNavBar/MobileMenu.js +153 -0
  91. package/dist/src/BrandedNavBar/NavBar.d.ts +15 -15
  92. package/dist/src/BrandedNavBar/NavBar.js +69 -0
  93. package/dist/src/BrandedNavBar/NavBar.story.d.ts +84 -84
  94. package/dist/src/BrandedNavBar/NavBar.story.js +416 -0
  95. package/dist/src/BrandedNavBar/NavBarBackground.d.ts +10 -10
  96. package/dist/src/BrandedNavBar/NavBarBackground.js +12 -0
  97. package/dist/src/BrandedNavBar/NavBarDropdownMenu.d.ts +4 -4
  98. package/dist/src/BrandedNavBar/NavBarDropdownMenu.js +94 -0
  99. package/dist/src/BrandedNavBar/NulogyLogo.d.ts +3 -3
  100. package/dist/src/BrandedNavBar/NulogyLogo.js +15 -0
  101. package/dist/src/BrandedNavBar/NulogyLogoContainer.d.ts +8 -8
  102. package/dist/src/BrandedNavBar/NulogyLogoContainer.js +11 -0
  103. package/dist/src/BrandedNavBar/SmallNavBar.d.ts +39 -39
  104. package/dist/src/BrandedNavBar/SmallNavBar.js +92 -0
  105. package/dist/src/BrandedNavBar/SmallNavBar.story.d.ts +21 -21
  106. package/dist/src/BrandedNavBar/SmallNavBar.story.js +89 -0
  107. package/dist/src/BrandedNavBar/SubMenuTrigger.d.ts +15 -15
  108. package/dist/src/BrandedNavBar/SubMenuTrigger.js +61 -0
  109. package/dist/src/BrandedNavBar/SubMenuTriggerButton.d.ts +8 -8
  110. package/dist/src/BrandedNavBar/SubMenuTriggerButton.js +31 -0
  111. package/dist/src/BrandedNavBar/TriggerFunctionProps.d.ts +10 -10
  112. package/dist/src/BrandedNavBar/TriggerFunctionProps.js +1 -0
  113. package/dist/src/BrandedNavBar/index.d.ts +11 -11
  114. package/dist/src/BrandedNavBar/index.js +6 -0
  115. package/dist/src/BrandedNavBar/isValidMenuItem.d.ts +2 -2
  116. package/dist/src/BrandedNavBar/isValidMenuItem.js +19 -0
  117. package/dist/src/BrandedNavBar/renderSubMenuItems.d.ts +3 -3
  118. package/dist/src/BrandedNavBar/renderSubMenuItems.js +52 -0
  119. package/dist/src/Branding/Branding.d.ts +12 -12
  120. package/dist/src/Branding/Branding.js +81 -0
  121. package/dist/src/Branding/Branding.story.d.ts +6 -6
  122. package/dist/src/Branding/Branding.story.js +81 -0
  123. package/dist/src/Branding/BrandingText.d.ts +7 -7
  124. package/dist/src/Branding/BrandingText.js +23 -0
  125. package/dist/src/Branding/LettermarkLogo.d.ts +7 -7
  126. package/dist/src/Branding/LettermarkLogo.js +32 -0
  127. package/dist/src/Branding/WordmarkLogo.d.ts +9 -9
  128. package/dist/src/Branding/WordmarkLogo.js +39 -0
  129. package/dist/src/Branding/index.d.ts +2 -2
  130. package/dist/src/Branding/index.js +2 -0
  131. package/dist/src/Breadcrumbs/Breadcrumbs.d.ts +8 -8
  132. package/dist/src/Breadcrumbs/Breadcrumbs.js +35 -0
  133. package/dist/src/Breadcrumbs/Breadcrumbs.story.d.ts +18 -18
  134. package/dist/src/Breadcrumbs/Breadcrumbs.story.js +29 -0
  135. package/dist/src/Breadcrumbs/BreadcrumbsList.d.ts +3 -3
  136. package/dist/src/Breadcrumbs/BreadcrumbsList.js +7 -0
  137. package/dist/src/Breadcrumbs/BreadcrumbsListItem.d.ts +6 -6
  138. package/dist/src/Breadcrumbs/BreadcrumbsListItem.js +34 -0
  139. package/dist/src/Breadcrumbs/index.d.ts +1 -1
  140. package/dist/src/Breadcrumbs/index.js +1 -0
  141. package/dist/src/Button/Button.d.ts +19 -19
  142. package/dist/src/Button/Button.js +87 -0
  143. package/dist/src/Button/Button.story.d.ts +49 -49
  144. package/dist/src/Button/Button.story.js +53 -0
  145. package/dist/src/Button/CloseButton.d.ts +5 -5
  146. package/dist/src/Button/CloseButton.js +51 -0
  147. package/dist/src/Button/ControlIcon.d.ts +14 -14
  148. package/dist/src/Button/ControlIcon.js +46 -0
  149. package/dist/src/Button/ControlIcon.story.d.ts +8 -8
  150. package/dist/src/Button/ControlIcon.story.js +9 -0
  151. package/dist/src/Button/DangerButton.d.ts +4 -4
  152. package/dist/src/Button/DangerButton.js +22 -0
  153. package/dist/src/Button/IconicButton.d.ts +19 -19
  154. package/dist/src/Button/IconicButton.js +129 -0
  155. package/dist/src/Button/IconicButton.story.d.ts +82 -82
  156. package/dist/src/Button/IconicButton.story.js +74 -0
  157. package/dist/src/Button/PrimaryButton.d.ts +4 -4
  158. package/dist/src/Button/PrimaryButton.js +22 -0
  159. package/dist/src/Button/QuietButton.d.ts +4 -4
  160. package/dist/src/Button/QuietButton.js +8 -0
  161. package/dist/src/Button/index.d.ts +7 -7
  162. package/dist/src/Button/index.js +7 -0
  163. package/dist/src/ButtonGroup/ButtonGroup.d.ts +9 -9
  164. package/dist/src/ButtonGroup/ButtonGroup.js +30 -0
  165. package/dist/src/ButtonGroup/ButtonGroup.story.d.ts +40 -40
  166. package/dist/src/ButtonGroup/ButtonGroup.story.js +63 -0
  167. package/dist/src/ButtonGroup/index.d.ts +1 -1
  168. package/dist/src/ButtonGroup/index.js +1 -0
  169. package/dist/src/Card/Card.d.ts +3 -3
  170. package/dist/src/Card/Card.js +17 -0
  171. package/dist/src/Card/Card.story.d.ts +19 -19
  172. package/dist/src/Card/Card.story.js +56 -0
  173. package/dist/src/Card/CardSet.d.ts +3 -3
  174. package/dist/src/Card/CardSet.js +8 -0
  175. package/dist/src/Card/index.d.ts +2 -2
  176. package/dist/src/Card/index.js +2 -0
  177. package/dist/src/Checkbox/Checkbox.d.ts +18 -18
  178. package/dist/src/Checkbox/Checkbox.js +97 -0
  179. package/dist/src/Checkbox/Checkbox.story.d.ts +58 -58
  180. package/dist/src/Checkbox/Checkbox.story.js +73 -0
  181. package/dist/src/Checkbox/CheckboxGroup.d.ts +20 -20
  182. package/dist/src/Checkbox/CheckboxGroup.js +44 -0
  183. package/dist/src/Checkbox/CheckboxGroup.story.d.ts +36 -36
  184. package/dist/src/Checkbox/CheckboxGroup.story.js +45 -0
  185. package/dist/src/Checkbox/index.d.ts +2 -2
  186. package/dist/src/Checkbox/index.js +2 -0
  187. package/dist/src/DatePickers/DatePicker.d.ts +4 -4
  188. package/dist/src/DatePickers/DatePicker.js +51 -0
  189. package/dist/src/DatePickers/MonthPicker.d.ts +6 -6
  190. package/dist/src/DatePickers/MonthPicker.js +41 -0
  191. package/dist/src/DatePickers/WeekPicker.d.ts +27 -27
  192. package/dist/src/DatePickers/WeekPicker.js +131 -0
  193. package/dist/src/DatePickers/custom/MonthPickerHeader.d.ts +5 -5
  194. package/dist/src/DatePickers/custom/MonthPickerHeader.js +13 -0
  195. package/dist/src/DatePickers/custom/weekPickerStyles.d.ts +5 -5
  196. package/dist/src/DatePickers/custom/weekPickerStyles.js +107 -0
  197. package/dist/src/DatePickers/index.d.ts +3 -3
  198. package/dist/src/DatePickers/index.js +3 -0
  199. package/dist/src/DatePickers/shared/components/BasePicker.d.ts +16 -16
  200. package/dist/src/DatePickers/shared/components/BasePicker.js +64 -0
  201. package/dist/src/DatePickers/shared/components/DatePickerHeader.d.ts +15 -15
  202. package/dist/src/DatePickers/shared/components/DatePickerHeader.js +19 -0
  203. package/dist/src/DatePickers/shared/components/DatePickerInput.d.ts +18 -18
  204. package/dist/src/DatePickers/shared/components/DatePickerInput.js +45 -0
  205. package/dist/src/DatePickers/shared/helpers.d.ts +4 -4
  206. package/dist/src/DatePickers/shared/helpers.js +6 -0
  207. package/dist/src/DatePickers/shared/styles.d.ts +2 -2
  208. package/dist/src/DatePickers/shared/styles.js +165 -0
  209. package/dist/src/DatePickers/shared/types.d.ts +23 -23
  210. package/dist/src/DatePickers/shared/types.js +1 -0
  211. package/dist/src/DatePickers/stories/DatePicker.story.d.ts +12 -12
  212. package/dist/src/DatePickers/stories/DatePicker.story.js +46 -0
  213. package/dist/src/DatePickers/stories/MonthPicker.story.d.ts +11 -11
  214. package/dist/src/DatePickers/stories/MonthPicker.story.js +50 -0
  215. package/dist/src/DatePickers/stories/WeekPicker.story.d.ts +13 -13
  216. package/dist/src/DatePickers/stories/WeekPicker.story.js +44 -0
  217. package/dist/src/DateRange/DateRange.d.ts +36 -36
  218. package/dist/src/DateRange/DateRange.js +105 -0
  219. package/dist/src/DateRange/DateRange.story.d.ts +17 -17
  220. package/dist/src/DateRange/DateRange.story.js +67 -0
  221. package/dist/src/DateRange/DateRangeStyles.d.ts +23 -23
  222. package/dist/src/DateRange/DateRangeStyles.js +61 -0
  223. package/dist/src/DateRange/EndTime.d.ts +49 -49
  224. package/dist/src/DateRange/EndTime.js +6 -0
  225. package/dist/src/DateRange/StartTime.d.ts +49 -49
  226. package/dist/src/DateRange/StartTime.js +6 -0
  227. package/dist/src/DateRange/index.d.ts +1 -1
  228. package/dist/src/DateRange/index.js +1 -0
  229. package/dist/src/Decorations/index.d.ts +3 -3
  230. package/dist/src/Decorations/index.js +17 -0
  231. package/dist/src/DescriptionList/DescriptionList.d.ts +3 -3
  232. package/dist/src/DescriptionList/DescriptionList.js +22 -0
  233. package/dist/src/DescriptionList/DescriptionList.parts.d.ts +14 -14
  234. package/dist/src/DescriptionList/DescriptionList.parts.js +109 -0
  235. package/dist/src/DescriptionList/DescriptionListContext.d.ts +19 -19
  236. package/dist/src/DescriptionList/DescriptionListContext.js +24 -0
  237. package/dist/src/DescriptionList/index.d.ts +5 -5
  238. package/dist/src/DescriptionList/index.js +4 -0
  239. package/dist/src/DescriptionList/lib/types.d.ts +26 -26
  240. package/dist/src/DescriptionList/lib/types.js +1 -0
  241. package/dist/src/DescriptionList/lib/utils.d.ts +5 -5
  242. package/dist/src/DescriptionList/lib/utils.js +8 -0
  243. package/dist/src/DescriptionList/stories/DescriptionList.column.story.d.ts +17 -17
  244. package/dist/src/DescriptionList/stories/DescriptionList.column.story.js +53 -0
  245. package/dist/src/DescriptionList/stories/DescriptionList.group-min-width.story.d.ts +9 -9
  246. package/dist/src/DescriptionList/stories/DescriptionList.group-min-width.story.js +26 -0
  247. package/dist/src/DescriptionList/stories/DescriptionList.layout.story.d.ts +17 -17
  248. package/dist/src/DescriptionList/stories/DescriptionList.layout.story.js +58 -0
  249. package/dist/src/DescriptionList/stories/DescriptionList.playground.story.d.ts +9 -9
  250. package/dist/src/DescriptionList/stories/DescriptionList.playground.story.js +217 -0
  251. package/dist/src/DescriptionList/stories/DescriptionList.sizing.story.d.ts +10 -10
  252. package/dist/src/DescriptionList/stories/DescriptionList.sizing.story.js +52 -0
  253. package/dist/src/DescriptionList/stories/DescriptionList.spanning.story.d.ts +10 -10
  254. package/dist/src/DescriptionList/stories/DescriptionList.spanning.story.js +79 -0
  255. package/dist/src/DescriptionList/stories/DescriptionList.story.d.ts +8 -8
  256. package/dist/src/DescriptionList/stories/DescriptionList.story.js +7 -0
  257. package/dist/src/DescriptionList/stories/fixtures.d.ts +17 -17
  258. package/dist/src/DescriptionList/stories/fixtures.js +57 -0
  259. package/dist/src/Divider/Divider.d.ts +7 -7
  260. package/dist/src/Divider/Divider.js +12 -0
  261. package/dist/src/Divider/Divider.story.d.ts +10 -10
  262. package/dist/src/Divider/Divider.story.js +23 -0
  263. package/dist/src/Divider/index.d.ts +1 -1
  264. package/dist/src/Divider/index.js +1 -0
  265. package/dist/src/DropdownMenu/DropdownButton.d.ts +13 -13
  266. package/dist/src/DropdownMenu/DropdownButton.js +42 -0
  267. package/dist/src/DropdownMenu/DropdownItem.d.ts +8 -8
  268. package/dist/src/DropdownMenu/DropdownItem.js +40 -0
  269. package/dist/src/DropdownMenu/DropdownLink.d.ts +12 -12
  270. package/dist/src/DropdownMenu/DropdownLink.js +47 -0
  271. package/dist/src/DropdownMenu/DropdownMenu.d.ts +27 -27
  272. package/dist/src/DropdownMenu/DropdownMenu.js +40 -0
  273. package/dist/src/DropdownMenu/DropdownMenu.story.d.ts +60 -60
  274. package/dist/src/DropdownMenu/DropdownMenu.story.js +81 -0
  275. package/dist/src/DropdownMenu/DropdownMenuContainer.d.ts +12 -12
  276. package/dist/src/DropdownMenu/DropdownMenuContainer.js +29 -0
  277. package/dist/src/DropdownMenu/DropdownText.d.ts +13 -13
  278. package/dist/src/DropdownMenu/DropdownText.js +15 -0
  279. package/dist/src/DropdownMenu/index.d.ts +5 -5
  280. package/dist/src/DropdownMenu/index.js +5 -0
  281. package/dist/src/FieldLabel/FieldLabel.d.ts +3 -3
  282. package/dist/src/FieldLabel/FieldLabel.js +31 -0
  283. package/dist/src/FieldLabel/FieldLabel.story.d.ts +17 -17
  284. package/dist/src/FieldLabel/FieldLabel.story.js +40 -0
  285. package/dist/src/FieldLabel/FieldLabel.type.d.ts +14 -14
  286. package/dist/src/FieldLabel/FieldLabel.type.js +6 -0
  287. package/dist/src/FieldLabel/HelpText.d.ts +12 -12
  288. package/dist/src/FieldLabel/HelpText.js +11 -0
  289. package/dist/src/FieldLabel/Label.d.ts +7 -7
  290. package/dist/src/FieldLabel/Label.js +7 -0
  291. package/dist/src/FieldLabel/LabelText.d.ts +4 -4
  292. package/dist/src/FieldLabel/LabelText.js +13 -0
  293. package/dist/src/FieldLabel/MaybeFieldLabel.d.ts +7 -7
  294. package/dist/src/FieldLabel/MaybeFieldLabel.js +18 -0
  295. package/dist/src/FieldLabel/RequirementText.d.ts +4 -4
  296. package/dist/src/FieldLabel/RequirementText.js +4 -0
  297. package/dist/src/FieldLabel/index.d.ts +4 -4
  298. package/dist/src/FieldLabel/index.js +4 -0
  299. package/dist/src/Flex/Flex.d.ts +9 -9
  300. package/dist/src/Flex/Flex.js +11 -0
  301. package/dist/src/Flex/Flex.story.d.ts +108 -108
  302. package/dist/src/Flex/Flex.story.js +200 -0
  303. package/dist/src/Flex/index.d.ts +2 -2
  304. package/dist/src/Flex/index.js +2 -0
  305. package/dist/src/Form/Field.d.ts +5 -5
  306. package/dist/src/Form/Field.js +7 -0
  307. package/dist/src/Form/Fieldset.d.ts +3 -3
  308. package/dist/src/Form/Fieldset.js +12 -0
  309. package/dist/src/Form/Form.d.ts +8 -8
  310. package/dist/src/Form/Form.js +47 -0
  311. package/dist/src/Form/Form.story.d.ts +31 -31
  312. package/dist/src/Form/Form.story.js +85 -0
  313. package/dist/src/Form/FormSection.d.ts +6 -6
  314. package/dist/src/Form/FormSection.js +42 -0
  315. package/dist/src/Form/index.d.ts +4 -4
  316. package/dist/src/Form/index.js +4 -0
  317. package/dist/src/Icon/Icon.d.ts +16 -16
  318. package/dist/src/Icon/Icon.js +57 -0
  319. package/dist/src/Icon/Icon.story.d.ts +41 -41
  320. package/dist/src/Icon/Icon.story.js +66 -0
  321. package/dist/src/Icon/LoadingIcon.d.ts +6 -6
  322. package/dist/src/Icon/LoadingIcon.js +30 -0
  323. package/dist/src/Icon/index.d.ts +2 -2
  324. package/dist/src/Icon/index.js +2 -0
  325. package/dist/src/Input/Input.d.ts +10 -10
  326. package/dist/src/Input/Input.js +27 -0
  327. package/dist/src/Input/Input.story.d.ts +56 -56
  328. package/dist/src/Input/Input.story.js +91 -0
  329. package/dist/src/Input/InputField.d.ts +31 -31
  330. package/dist/src/Input/InputField.js +107 -0
  331. package/dist/src/Input/Prefix.d.ts +8 -8
  332. package/dist/src/Input/Prefix.js +20 -0
  333. package/dist/src/Input/Suffix.d.ts +8 -8
  334. package/dist/src/Input/Suffix.js +19 -0
  335. package/dist/src/Input/index.d.ts +1 -1
  336. package/dist/src/Input/index.js +1 -0
  337. package/dist/src/Layout/ApplicationFrame.d.ts +9 -9
  338. package/dist/src/Layout/ApplicationFrame.js +24 -0
  339. package/dist/src/Layout/ApplicationFrame.story.d.ts +9 -9
  340. package/dist/src/Layout/ApplicationFrame.story.js +9 -0
  341. package/dist/src/Layout/Header.d.ts +17 -17
  342. package/dist/src/Layout/Header.js +41 -0
  343. package/dist/src/Layout/Header.story.d.ts +19 -19
  344. package/dist/src/Layout/Header.story.js +65 -0
  345. package/dist/src/Layout/Page.applicationFrame.story.d.ts +11 -11
  346. package/dist/src/Layout/Page.applicationFrame.story.js +24 -0
  347. package/dist/src/Layout/Page.d.ts +12 -12
  348. package/dist/src/Layout/Page.js +24 -0
  349. package/dist/src/Layout/Page.story.d.ts +13 -13
  350. package/dist/src/Layout/Page.story.js +31 -0
  351. package/dist/src/Layout/Sidebar.d.ts +25 -25
  352. package/dist/src/Layout/Sidebar.js +121 -0
  353. package/dist/src/Layout/Sidebar.story.d.ts +22 -22
  354. package/dist/src/Layout/Sidebar.story.js +205 -0
  355. package/dist/src/Layout/index.d.ts +4 -4
  356. package/dist/src/Layout/index.js +4 -0
  357. package/dist/src/Link/Link.d.ts +14 -14
  358. package/dist/src/Link/Link.js +54 -0
  359. package/dist/src/Link/Link.story.d.ts +55 -55
  360. package/dist/src/Link/Link.story.js +42 -0
  361. package/dist/src/Link/index.d.ts +1 -1
  362. package/dist/src/Link/index.js +1 -0
  363. package/dist/src/List/List.d.ts +10 -10
  364. package/dist/src/List/List.js +13 -0
  365. package/dist/src/List/List.story.d.ts +30 -30
  366. package/dist/src/List/List.story.js +37 -0
  367. package/dist/src/List/ListItem.d.ts +5 -5
  368. package/dist/src/List/ListItem.js +10 -0
  369. package/dist/src/List/index.d.ts +2 -2
  370. package/dist/src/List/index.js +2 -0
  371. package/dist/src/LoadingAnimation/LoadingAnimation.d.ts +6 -6
  372. package/dist/src/LoadingAnimation/LoadingAnimation.js +29 -0
  373. package/dist/src/LoadingAnimation/LoadingAnimation.story.d.ts +19 -19
  374. package/dist/src/LoadingAnimation/LoadingAnimation.story.js +33 -0
  375. package/dist/src/LoadingAnimation/index.d.ts +1 -1
  376. package/dist/src/LoadingAnimation/index.js +1 -0
  377. package/dist/src/{Tooltip2 → MiniTooltip}/index.d.ts +10 -10
  378. package/dist/src/MiniTooltip/index.js +83 -0
  379. package/dist/src/Modal/Modal.d.ts +25 -25
  380. package/dist/src/Modal/Modal.js +80 -0
  381. package/dist/src/Modal/Modal.story.d.ts +66 -66
  382. package/dist/src/Modal/Modal.story.js +120 -0
  383. package/dist/src/Modal/ModalCloseButton.d.ts +7 -7
  384. package/dist/src/Modal/ModalCloseButton.js +8 -0
  385. package/dist/src/Modal/ModalContent.d.ts +8 -8
  386. package/dist/src/Modal/ModalContent.js +11 -0
  387. package/dist/src/Modal/ModalFooter.d.ts +3 -3
  388. package/dist/src/Modal/ModalFooter.js +20 -0
  389. package/dist/src/Modal/ModalHeader.d.ts +5 -5
  390. package/dist/src/Modal/ModalHeader.js +21 -0
  391. package/dist/src/Modal/index.d.ts +1 -1
  392. package/dist/src/Modal/index.js +1 -0
  393. package/dist/src/NDSProvider/ComponentVariantContext.d.ts +10 -10
  394. package/dist/src/NDSProvider/ComponentVariantContext.js +12 -0
  395. package/dist/src/NDSProvider/FeatureFlagsContext.d.ts +12 -12
  396. package/dist/src/NDSProvider/FeatureFlagsContext.js +12 -0
  397. package/dist/src/NDSProvider/GlobalStyles.d.ts +5 -5
  398. package/dist/src/NDSProvider/GlobalStyles.js +29 -0
  399. package/dist/src/NDSProvider/GlobalStylesComposer.d.ts +10 -10
  400. package/dist/src/NDSProvider/GlobalStylesComposer.js +13 -0
  401. package/dist/src/NDSProvider/LocaleContext.d.ts +11 -11
  402. package/dist/src/NDSProvider/LocaleContext.js +12 -0
  403. package/dist/src/NDSProvider/ModalStyleOverride.d.ts +5 -5
  404. package/dist/src/NDSProvider/ModalStyleOverride.js +32 -0
  405. package/dist/src/NDSProvider/NDSProvider.d.ts +14 -14
  406. package/dist/src/NDSProvider/NDSProvider.js +22 -0
  407. package/dist/src/NDSProvider/Reset.d.ts +3 -3
  408. package/dist/src/NDSProvider/Reset.js +9 -0
  409. package/dist/src/NDSProvider/index.d.ts +1 -1
  410. package/dist/src/NDSProvider/index.js +1 -0
  411. package/dist/src/NDSProvider/mountWithNDSProvider.spec-utils.d.ts +1 -1
  412. package/dist/src/NDSProvider/mountWithNDSProvider.spec-utils.js +4 -0
  413. package/dist/src/NDSProvider/renderWithNDSProvider.spec-utils.d.ts +1 -1
  414. package/dist/src/NDSProvider/renderWithNDSProvider.spec-utils.js +4 -0
  415. package/dist/src/NavBarSearch/NavBarSearch.d.ts +11 -0
  416. package/dist/src/NavBarSearch/NavBarSearch.js +78 -0
  417. package/dist/src/NavBarSearch/index.d.ts +1 -0
  418. package/dist/src/NavBarSearch/index.js +1 -0
  419. package/dist/src/Navigation/Navigation.d.ts +16 -16
  420. package/dist/src/Navigation/Navigation.js +26 -0
  421. package/dist/src/Navigation/components/AppSwitcher/NulogyAppSwitcher.d.ts +14 -14
  422. package/dist/src/Navigation/components/AppSwitcher/NulogyAppSwitcher.js +74 -0
  423. package/dist/src/Navigation/components/AppSwitcher/parts/Item.d.ts +4 -4
  424. package/dist/src/Navigation/components/AppSwitcher/parts/Item.js +23 -0
  425. package/dist/src/Navigation/components/AppSwitcher/parts/Link.d.ts +8 -8
  426. package/dist/src/Navigation/components/AppSwitcher/parts/Link.js +39 -0
  427. package/dist/src/Navigation/components/AppSwitcher/parts/index.d.ts +56 -56
  428. package/dist/src/Navigation/components/AppSwitcher/parts/index.js +35 -0
  429. package/dist/src/Navigation/components/DesktopNav/DesktopNav.d.ts +5 -5
  430. package/dist/src/Navigation/components/DesktopNav/DesktopNav.js +48 -0
  431. package/dist/src/Navigation/components/DesktopNav/parts/MoreMenuItem.d.ts +8 -8
  432. package/dist/src/Navigation/components/DesktopNav/parts/MoreMenuItem.js +20 -0
  433. package/dist/src/Navigation/components/EnvironmentBanner/EnvironmentBanner.d.ts +6 -6
  434. package/dist/src/Navigation/components/EnvironmentBanner/EnvironmentBanner.js +6 -0
  435. package/dist/src/Navigation/components/EnvironmentBanner/index.d.ts +2 -2
  436. package/dist/src/Navigation/components/EnvironmentBanner/index.js +1 -0
  437. package/dist/src/Navigation/components/MenuSubItem/MenuSubItem.d.ts +8 -8
  438. package/dist/src/Navigation/components/MenuSubItem/MenuSubItem.js +41 -0
  439. package/dist/src/Navigation/components/MenuSubItem/parts/styled.d.ts +8 -8
  440. package/dist/src/Navigation/components/MenuSubItem/parts/styled.js +40 -0
  441. package/dist/src/Navigation/components/MobileNav/MobileNav.d.ts +5 -5
  442. package/dist/src/Navigation/components/MobileNav/MobileNav.js +46 -0
  443. package/dist/src/Navigation/components/MobileNav/parts/MobileMenuItem.d.ts +9 -9
  444. package/dist/src/Navigation/components/MobileNav/parts/MobileMenuItem.js +84 -0
  445. package/dist/src/Navigation/components/MobileNav/parts/styled.d.ts +18 -18
  446. package/dist/src/Navigation/components/MobileNav/parts/styled.js +23 -0
  447. package/dist/src/Navigation/components/NulogyLogo/NulogyLogo.d.ts +6 -6
  448. package/dist/src/Navigation/components/NulogyLogo/NulogyLogo.js +20 -0
  449. package/dist/src/Navigation/components/NulogyLogo/SvgNulogyLogo.d.ts +2 -2
  450. package/dist/src/Navigation/components/NulogyLogo/SvgNulogyLogo.js +11 -0
  451. package/dist/src/Navigation/components/UserMenu/UserMenu.d.ts +14 -14
  452. package/dist/src/Navigation/components/UserMenu/UserMenu.js +16 -0
  453. package/dist/src/Navigation/components/UserMenu/parts/Header.d.ts +7 -7
  454. package/dist/src/Navigation/components/UserMenu/parts/Header.js +39 -0
  455. package/dist/src/Navigation/components/UserMenu/parts/Item.d.ts +10 -10
  456. package/dist/src/Navigation/components/UserMenu/parts/Item.js +23 -0
  457. package/dist/src/Navigation/components/UserMenu/parts/MobileItem.d.ts +6 -6
  458. package/dist/src/Navigation/components/UserMenu/parts/MobileItem.js +27 -0
  459. package/dist/src/Navigation/components/UserMenu/parts/styled.d.ts +8 -8
  460. package/dist/src/Navigation/components/UserMenu/parts/styled.js +21 -0
  461. package/dist/src/Navigation/components/shared/NavigationLogo.d.ts +8 -8
  462. package/dist/src/Navigation/components/shared/NavigationLogo.js +27 -0
  463. package/dist/src/Navigation/components/shared/NavigationLogoLink.d.ts +7 -7
  464. package/dist/src/Navigation/components/shared/NavigationLogoLink.js +23 -0
  465. package/dist/src/Navigation/components/shared/NavigationMenuContent.d.ts +7 -7
  466. package/dist/src/Navigation/components/shared/NavigationMenuContent.js +23 -0
  467. package/dist/src/Navigation/components/shared/NavigationMenuItem.d.ts +12 -12
  468. package/dist/src/Navigation/components/shared/NavigationMenuItem.js +76 -0
  469. package/dist/src/Navigation/components/shared/components.d.ts +17 -17
  470. package/dist/src/Navigation/components/shared/components.js +87 -0
  471. package/dist/src/Navigation/components/shared/constants.d.ts +6 -6
  472. package/dist/src/Navigation/components/shared/constants.js +5 -0
  473. package/dist/src/Navigation/components/shared/disableHoverEvents.d.ts +6 -6
  474. package/dist/src/Navigation/components/shared/disableHoverEvents.js +5 -0
  475. package/dist/src/Navigation/components/utils/getNavigationBarItems.d.ts +2 -2
  476. package/dist/src/Navigation/components/utils/getNavigationBarItems.js +15 -0
  477. package/dist/src/Navigation/hooks/useResponsiveMenu.d.ts +12 -12
  478. package/dist/src/Navigation/hooks/useResponsiveMenu.js +66 -0
  479. package/dist/src/Navigation/index.d.ts +9 -9
  480. package/dist/src/Navigation/index.js +5 -0
  481. package/dist/src/Navigation/stories/Navigation.appSwitcher.story.d.ts +12 -12
  482. package/dist/src/Navigation/stories/Navigation.appSwitcher.story.js +147 -0
  483. package/dist/src/Navigation/stories/Navigation.logos.story.d.ts +22 -22
  484. package/dist/src/Navigation/stories/Navigation.logos.story.js +116 -0
  485. package/dist/src/Navigation/stories/Navigation.mobileVisibility.story.d.ts +13 -13
  486. package/dist/src/Navigation/stories/Navigation.mobileVisibility.story.js +172 -0
  487. package/dist/src/Navigation/stories/Navigation.navigationMenus.story.d.ts +13 -13
  488. package/dist/src/Navigation/stories/Navigation.navigationMenus.story.js +305 -0
  489. package/dist/src/Navigation/stories/Navigation.navigationMenus.subMenus.story.d.ts +11 -11
  490. package/dist/src/Navigation/stories/Navigation.navigationMenus.subMenus.story.js +203 -0
  491. package/dist/src/Navigation/stories/Navigation.story.d.ts +11 -11
  492. package/dist/src/Navigation/stories/Navigation.story.js +208 -0
  493. package/dist/src/Navigation/stories/Navigation.userMenu.story.d.ts +13 -13
  494. package/dist/src/Navigation/stories/Navigation.userMenu.story.js +215 -0
  495. package/dist/src/Navigation/stories/fixtures/logos/CustomLogo2.d.ts +2 -2
  496. package/dist/src/Navigation/stories/fixtures/logos/CustomLogo2.js +15 -0
  497. package/dist/src/Navigation/stories/fixtures/logos/CustomLogo3.d.ts +2 -2
  498. package/dist/src/Navigation/stories/fixtures/logos/CustomLogo3.js +31 -0
  499. package/dist/src/Navigation/stories/fixtures/logos/Customlogo1.d.ts +2 -2
  500. package/dist/src/Navigation/stories/fixtures/logos/Customlogo1.js +5 -0
  501. package/dist/src/Navigation/types.d.ts +86 -86
  502. package/dist/src/Navigation/types.js +1 -0
  503. package/dist/src/Overlay/Overlay.d.ts +7 -7
  504. package/dist/src/Overlay/Overlay.js +15 -0
  505. package/dist/src/Overlay/Overlay.story.d.ts +12 -12
  506. package/dist/src/Overlay/Overlay.story.js +17 -0
  507. package/dist/src/Overlay/index.d.ts +1 -1
  508. package/dist/src/Overlay/index.js +1 -0
  509. package/dist/src/Pagination/NextButton.d.ts +10 -10
  510. package/dist/src/Pagination/NextButton.js +13 -0
  511. package/dist/src/Pagination/PageNumber.d.ts +12 -12
  512. package/dist/src/Pagination/PageNumber.js +7 -0
  513. package/dist/src/Pagination/Pagination.d.ts +19 -19
  514. package/dist/src/Pagination/Pagination.js +66 -0
  515. package/dist/src/Pagination/Pagination.story.d.ts +26 -26
  516. package/dist/src/Pagination/Pagination.story.js +93 -0
  517. package/dist/src/Pagination/PaginationButton.d.ts +7 -7
  518. package/dist/src/Pagination/PaginationButton.js +27 -0
  519. package/dist/src/Pagination/PaginationCount.d.ts +7 -7
  520. package/dist/src/Pagination/PaginationCount.js +8 -0
  521. package/dist/src/Pagination/PreviousButton.d.ts +10 -10
  522. package/dist/src/Pagination/PreviousButton.js +13 -0
  523. package/dist/src/Pagination/index.d.ts +1 -1
  524. package/dist/src/Pagination/index.js +1 -0
  525. package/dist/src/Pagination/lib.d.ts +9 -9
  526. package/dist/src/Pagination/lib.js +39 -0
  527. package/dist/src/Popper/Popper.d.ts +20 -20
  528. package/dist/src/Popper/Popper.js +107 -0
  529. package/dist/src/Popper/index.d.ts +1 -1
  530. package/dist/src/Popper/index.js +1 -0
  531. package/dist/src/Primitives/index.d.ts +5 -5
  532. package/dist/src/Primitives/index.js +5 -0
  533. package/dist/src/Radio/Radio.d.ts +14 -14
  534. package/dist/src/Radio/Radio.js +118 -0
  535. package/dist/src/Radio/Radio.story.d.ts +37 -37
  536. package/dist/src/Radio/Radio.story.js +44 -0
  537. package/dist/src/Radio/RadioGroup.d.ts +20 -20
  538. package/dist/src/Radio/RadioGroup.js +41 -0
  539. package/dist/src/Radio/RadioGroup.story.d.ts +46 -46
  540. package/dist/src/Radio/RadioGroup.story.js +54 -0
  541. package/dist/src/Radio/index.d.ts +2 -2
  542. package/dist/src/Radio/index.js +2 -0
  543. package/dist/src/RangeContainer/RangeContainer.d.ts +12 -12
  544. package/dist/src/RangeContainer/RangeContainer.js +35 -0
  545. package/dist/src/RangeContainer/RangeContainer.story.d.ts +11 -11
  546. package/dist/src/RangeContainer/RangeContainer.story.js +9 -0
  547. package/dist/src/RangeContainer/index.d.ts +1 -1
  548. package/dist/src/RangeContainer/index.js +1 -0
  549. package/dist/src/Select/MenuList.d.ts +3 -3
  550. package/dist/src/Select/MenuList.js +126 -0
  551. package/dist/src/Select/Select.d.ts +32 -32
  552. package/dist/src/Select/Select.js +60 -0
  553. package/dist/src/Select/Select.spec-utils.d.ts +5 -5
  554. package/dist/src/Select/Select.spec-utils.js +14 -0
  555. package/dist/src/Select/Select.story.d.ts +110 -110
  556. package/dist/src/Select/Select.story.fixture.d.ts +24 -24
  557. package/dist/src/Select/Select.story.fixture.js +89 -0
  558. package/dist/src/Select/Select.story.js +196 -0
  559. package/dist/src/Select/SelectComponents.d.ts +10 -10
  560. package/dist/src/Select/SelectComponents.js +31 -0
  561. package/dist/src/Select/SelectOption.d.ts +12 -12
  562. package/dist/src/Select/SelectOption.js +42 -0
  563. package/dist/src/Select/customReactSelectStyles.d.ts +40 -40
  564. package/dist/src/Select/customReactSelectStyles.js +162 -0
  565. package/dist/src/Select/index.d.ts +3 -3
  566. package/dist/src/Select/index.js +3 -0
  567. package/dist/src/Select/lib.d.ts +21 -21
  568. package/dist/src/Select/lib.js +85 -0
  569. package/dist/src/SortingTable/SortingTable.d.ts +7 -7
  570. package/dist/src/SortingTable/SortingTable.js +49 -0
  571. package/dist/src/SortingTable/SortingTable.story.d.ts +8 -8
  572. package/dist/src/SortingTable/SortingTable.story.js +24 -0
  573. package/dist/src/SortingTable/index.d.ts +1 -1
  574. package/dist/src/SortingTable/index.js +1 -0
  575. package/dist/src/StatusIndicator/StatusIndicator.d.ts +17 -17
  576. package/dist/src/StatusIndicator/StatusIndicator.js +51 -0
  577. package/dist/src/StatusIndicator/StatusIndicator.story.d.ts +25 -25
  578. package/dist/src/StatusIndicator/StatusIndicator.story.js +64 -0
  579. package/dist/src/StatusIndicator/index.d.ts +2 -2
  580. package/dist/src/StatusIndicator/index.js +1 -0
  581. package/dist/src/StyledProps/index.d.ts +39 -39
  582. package/dist/src/StyledProps/index.js +36 -0
  583. package/dist/src/Summary/Summary.d.ts +7 -7
  584. package/dist/src/Summary/Summary.js +43 -0
  585. package/dist/src/Summary/Summary.story.d.ts +7 -7
  586. package/dist/src/Summary/Summary.story.js +20 -0
  587. package/dist/src/Summary/SummaryContext.d.ts +7 -7
  588. package/dist/src/Summary/SummaryContext.js +14 -0
  589. package/dist/src/Summary/SummaryDivider.d.ts +3 -3
  590. package/dist/src/Summary/SummaryDivider.js +21 -0
  591. package/dist/src/Summary/SummaryItem.d.ts +8 -8
  592. package/dist/src/Summary/SummaryItem.js +34 -0
  593. package/dist/src/Summary/index.d.ts +3 -3
  594. package/dist/src/Summary/index.js +3 -0
  595. package/dist/src/Switcher/Switch.d.ts +9 -9
  596. package/dist/src/Switcher/Switch.js +35 -0
  597. package/dist/src/Switcher/Switcher.d.ts +11 -11
  598. package/dist/src/Switcher/Switcher.js +53 -0
  599. package/dist/src/Switcher/Switcher.story.d.ts +8 -8
  600. package/dist/src/Switcher/Switcher.story.js +32 -0
  601. package/dist/src/Switcher/index.d.ts +2 -2
  602. package/dist/src/Switcher/index.js +2 -0
  603. package/dist/src/Table/BaseTable.d.ts +22 -22
  604. package/dist/src/Table/BaseTable.js +31 -0
  605. package/dist/src/Table/SortingColumnHeader.d.ts +10 -10
  606. package/dist/src/Table/SortingColumnHeader.js +13 -0
  607. package/dist/src/Table/StatefulTable.d.ts +107 -107
  608. package/dist/src/Table/StatefulTable.js +214 -0
  609. package/dist/src/Table/StyledTh.d.ts +8 -8
  610. package/dist/src/Table/StyledTh.js +15 -0
  611. package/dist/src/Table/Table.d.ts +13 -13
  612. package/dist/src/Table/Table.js +21 -0
  613. package/dist/src/Table/Table.mock-utils.d.ts +32 -0
  614. package/dist/src/Table/Table.mock-utils.js +58 -0
  615. package/dist/src/Table/Table.types.d.ts +28 -28
  616. package/dist/src/Table/Table.types.js +1 -0
  617. package/dist/src/Table/TableBody.d.ts +16 -16
  618. package/dist/src/Table/TableBody.js +37 -0
  619. package/dist/src/Table/TableCell.d.ts +10 -10
  620. package/dist/src/Table/TableCell.js +26 -0
  621. package/dist/src/Table/TableFoot.d.ts +10 -10
  622. package/dist/src/Table/TableFoot.js +26 -0
  623. package/dist/src/Table/TableHead.d.ts +9 -9
  624. package/dist/src/Table/TableHead.js +21 -0
  625. package/dist/src/Table/addExpandableControl.d.ts +4 -4
  626. package/dist/src/Table/addExpandableControl.js +38 -0
  627. package/dist/src/Table/addSelectableControl.d.ts +15 -15
  628. package/dist/src/Table/addSelectableControl.js +38 -0
  629. package/dist/src/Table/index.d.ts +3 -3
  630. package/dist/src/Table/index.js +2 -0
  631. package/dist/src/Table/stories/BaseTable.story.d.ts +19 -19
  632. package/dist/src/Table/stories/BaseTable.story.js +300 -0
  633. package/dist/src/Table/stories/CustomContent.story.d.ts +7 -7
  634. package/dist/src/Table/stories/CustomContent.story.js +281 -0
  635. package/dist/src/Table/stories/Density.story.d.ts +17 -17
  636. package/dist/src/Table/stories/Density.story.js +68 -0
  637. package/dist/src/Table/stories/SortingColumnHeader.story.d.ts +6 -6
  638. package/dist/src/Table/stories/SortingColumnHeader.story.js +8 -0
  639. package/dist/src/Table/stories/Table.story.d.ts +18 -18
  640. package/dist/src/Table/stories/Table.story.js +302 -0
  641. package/dist/src/Table/stories/TableWithCustomSorting.story.d.ts +11 -11
  642. package/dist/src/Table/stories/TableWithCustomSorting.story.js +60 -0
  643. package/dist/src/Table/stories/TableWithExpandableRows.story.d.ts +17 -17
  644. package/dist/src/Table/stories/TableWithExpandableRows.story.js +75 -0
  645. package/dist/src/Table/stories/TableWithFiltering.story.d.ts +17 -17
  646. package/dist/src/Table/stories/TableWithFiltering.story.js +54 -0
  647. package/dist/src/Table/stories/TableWithSelectableRows.story.d.ts +17 -17
  648. package/dist/src/Table/stories/TableWithSelectableRows.story.js +69 -0
  649. package/dist/src/Table/stories/TableWithServerSidePagination.story.d.ts +11 -11
  650. package/dist/src/Table/stories/TableWithServerSidePagination.story.js +73 -0
  651. package/dist/src/Tabs/Tab.d.ts +12 -12
  652. package/dist/src/Tabs/Tab.js +87 -0
  653. package/dist/src/Tabs/TabContainer.d.ts +3 -3
  654. package/dist/src/Tabs/TabContainer.js +24 -0
  655. package/dist/src/Tabs/TabScrollIndicator.d.ts +11 -11
  656. package/dist/src/Tabs/TabScrollIndicator.js +61 -0
  657. package/dist/src/Tabs/TabScrollIndicators.d.ts +30 -30
  658. package/dist/src/Tabs/TabScrollIndicators.js +132 -0
  659. package/dist/src/Tabs/Tabs.d.ts +27 -27
  660. package/dist/src/Tabs/Tabs.js +110 -0
  661. package/dist/src/Tabs/Tabs.story.d.ts +55 -55
  662. package/dist/src/Tabs/Tabs.story.js +109 -0
  663. package/dist/src/Tabs/index.d.ts +4 -4
  664. package/dist/src/Tabs/index.js +4 -0
  665. package/dist/src/Textarea/StyledTextarea.d.ts +15 -15
  666. package/dist/src/Textarea/StyledTextarea.js +59 -0
  667. package/dist/src/Textarea/Textarea.d.ts +18 -18
  668. package/dist/src/Textarea/Textarea.js +30 -0
  669. package/dist/src/Textarea/Textarea.story.d.ts +14 -14
  670. package/dist/src/Textarea/Textarea.story.js +24 -0
  671. package/dist/src/Textarea/index.d.ts +1 -1
  672. package/dist/src/Textarea/index.js +1 -0
  673. package/dist/src/TimePicker/TimePicker.d.ts +42 -42
  674. package/dist/src/TimePicker/TimePicker.js +231 -0
  675. package/dist/src/TimePicker/TimePicker.story.d.ts +65 -65
  676. package/dist/src/TimePicker/TimePicker.story.js +58 -0
  677. package/dist/src/TimePicker/TimePickerDropdown.d.ts +3 -3
  678. package/dist/src/TimePicker/TimePickerDropdown.js +23 -0
  679. package/dist/src/TimePicker/TimePickerInput.d.ts +7 -7
  680. package/dist/src/TimePicker/TimePickerInput.js +7 -0
  681. package/dist/src/TimePicker/TimePickerOption.d.ts +10 -10
  682. package/dist/src/TimePicker/TimePickerOption.js +26 -0
  683. package/dist/src/TimePicker/index.d.ts +1 -1
  684. package/dist/src/TimePicker/index.js +1 -0
  685. package/dist/src/TimeRange/TimeRange.d.ts +24 -24
  686. package/dist/src/TimeRange/TimeRange.js +81 -0
  687. package/dist/src/TimeRange/TimeRange.story.d.ts +35 -35
  688. package/dist/src/TimeRange/TimeRange.story.js +39 -0
  689. package/dist/src/TimeRange/TimeRange.utils.d.ts +1 -1
  690. package/dist/src/TimeRange/TimeRange.utils.js +12 -0
  691. package/dist/src/TimeRange/index.d.ts +1 -1
  692. package/dist/src/TimeRange/index.js +1 -0
  693. package/dist/src/Toast/Toast.d.ts +36 -36
  694. package/dist/src/Toast/Toast.js +93 -0
  695. package/dist/src/Toast/Toast.story.d.ts +42 -42
  696. package/dist/src/Toast/Toast.story.js +192 -0
  697. package/dist/src/Toast/index.d.ts +1 -1
  698. package/dist/src/Toast/index.js +1 -0
  699. package/dist/src/ToastContainer/ToastContainer.d.ts +10 -10
  700. package/dist/src/ToastContainer/ToastContainer.js +31 -0
  701. package/dist/src/ToastContainer/ToastContainer.story.d.ts +6 -6
  702. package/dist/src/ToastContainer/ToastContainer.story.js +83 -0
  703. package/dist/src/ToastContainer/ToastFunction.d.ts +14 -14
  704. package/dist/src/ToastContainer/ToastFunction.js +32 -0
  705. package/dist/src/ToastContainer/index.d.ts +2 -2
  706. package/dist/src/ToastContainer/index.js +2 -0
  707. package/dist/src/Toggle/Toggle.d.ts +27 -27
  708. package/dist/src/Toggle/Toggle.js +68 -0
  709. package/dist/src/Toggle/Toggle.story.d.ts +50 -50
  710. package/dist/src/Toggle/Toggle.story.js +51 -0
  711. package/dist/src/Toggle/ToggleButton.d.ts +11 -11
  712. package/dist/src/Toggle/ToggleButton.js +67 -0
  713. package/dist/src/Toggle/index.d.ts +1 -1
  714. package/dist/src/Toggle/index.js +1 -0
  715. package/dist/src/Tokens/Tokens.story.d.ts +14 -14
  716. package/dist/src/Tokens/Tokens.story.js +80 -0
  717. package/dist/src/Tooltip/Tooltip.d.ts +19 -13
  718. package/dist/src/Tooltip/Tooltip.js +13 -0
  719. package/dist/src/Tooltip/Tooltip.story.d.ts +61 -68
  720. package/dist/src/Tooltip/Tooltip.story.js +121 -0
  721. package/dist/src/Tooltip/TooltipContainer.d.ts +11 -11
  722. package/dist/src/Tooltip/TooltipContainer.js +31 -0
  723. package/dist/src/{TruncatedText → Tooltip}/components/TooltipComponents.d.ts +17 -17
  724. package/dist/src/Tooltip/components/TooltipComponents.js +143 -0
  725. package/dist/src/Tooltip/helpers.d.ts +8 -0
  726. package/dist/src/Tooltip/helpers.js +4 -0
  727. package/dist/src/Tooltip/index.d.ts +1 -1
  728. package/dist/src/Tooltip/index.js +1 -0
  729. package/dist/src/TopBar/TopBar.d.ts +18 -18
  730. package/dist/src/TopBar/TopBar.js +20 -0
  731. package/dist/src/TopBar/TopBar.styled.d.ts +282 -282
  732. package/dist/src/TopBar/TopBar.styled.js +140 -0
  733. package/dist/src/TopBar/components/BackLink.d.ts +7 -7
  734. package/dist/src/TopBar/components/BackLink.js +31 -0
  735. package/dist/src/TopBar/components/Menu.d.ts +6 -6
  736. package/dist/src/TopBar/components/Menu.js +67 -0
  737. package/dist/src/TopBar/components/MenuItem.d.ts +2 -2
  738. package/dist/src/TopBar/components/MenuItem.js +27 -0
  739. package/dist/src/TopBar/components/MenuItemLink.d.ts +9 -9
  740. package/dist/src/TopBar/components/MenuItemLink.js +26 -0
  741. package/dist/src/TopBar/components/PageTitle.d.ts +3 -3
  742. package/dist/src/TopBar/components/PageTitle.js +17 -0
  743. package/dist/src/TopBar/constants.d.ts +3 -3
  744. package/dist/src/TopBar/constants.js +3 -0
  745. package/dist/src/TopBar/index.d.ts +2 -2
  746. package/dist/src/TopBar/index.js +1 -0
  747. package/dist/src/TopBar/stories/TopBar.backButton.story.d.ts +19 -19
  748. package/dist/src/TopBar/stories/TopBar.backButton.story.js +40 -0
  749. package/dist/src/TopBar/stories/TopBar.menu.story.d.ts +22 -22
  750. package/dist/src/TopBar/stories/TopBar.menu.story.js +64 -0
  751. package/dist/src/TopBar/stories/TopBar.story.d.ts +19 -19
  752. package/dist/src/TopBar/stories/TopBar.story.js +59 -0
  753. package/dist/src/TopBar/stories/fixtures.d.ts +44 -44
  754. package/dist/src/TopBar/stories/fixtures.js +54 -0
  755. package/dist/src/TruncatedText/TruncatedText.d.ts +4 -4
  756. package/dist/src/TruncatedText/TruncatedText.js +24 -0
  757. package/dist/src/TruncatedText/TruncatedText.story.d.ts +57 -57
  758. package/dist/src/TruncatedText/TruncatedText.story.js +51 -0
  759. package/dist/src/TruncatedText/components/MaybeTooltip.d.ts +24 -14
  760. package/dist/src/TruncatedText/components/MaybeTooltip.js +10 -0
  761. package/dist/src/TruncatedText/components/TruncatedTextFillWidth.d.ts +4 -4
  762. package/dist/src/TruncatedText/components/TruncatedTextFillWidth.js +28 -0
  763. package/dist/src/TruncatedText/components/TruncatedTextMaxCharacters.d.ts +4 -4
  764. package/dist/src/TruncatedText/components/TruncatedTextMaxCharacters.js +24 -0
  765. package/dist/src/TruncatedText/index.d.ts +1 -1
  766. package/dist/src/TruncatedText/index.js +1 -0
  767. package/dist/src/TruncatedText/types.d.ts +13 -13
  768. package/dist/src/TruncatedText/types.js +1 -0
  769. package/dist/src/Type/Headings.d.ts +50 -50
  770. package/dist/src/Type/Headings.js +67 -0
  771. package/dist/src/Type/Headings.story.d.ts +8 -8
  772. package/dist/src/Type/Headings.story.js +17 -0
  773. package/dist/src/Type/Text.d.ts +13 -13
  774. package/dist/src/Type/Text.js +17 -0
  775. package/dist/src/Type/Text.story.d.ts +36 -36
  776. package/dist/src/Type/Text.story.js +44 -0
  777. package/dist/src/Type/Typography.story.d.ts +7 -7
  778. package/dist/src/Type/Typography.story.js +214 -0
  779. package/dist/src/Type/index.d.ts +3 -3
  780. package/dist/src/Type/index.js +2 -0
  781. package/dist/src/Validation/InlineValidation.d.ts +10 -10
  782. package/dist/src/Validation/InlineValidation.js +34 -0
  783. package/dist/src/Validation/InlineValidation.story.d.ts +24 -24
  784. package/dist/src/Validation/InlineValidation.story.js +24 -0
  785. package/dist/src/Validation/index.d.ts +2 -2
  786. package/dist/src/Validation/index.js +2 -0
  787. package/dist/src/Validation/mapErrorsToList.d.ts +3 -3
  788. package/dist/src/Validation/mapErrorsToList.js +9 -0
  789. package/dist/src/VerticalDivider/VerticalDivider.d.ts +7 -7
  790. package/dist/src/VerticalDivider/VerticalDivider.js +16 -0
  791. package/dist/src/VerticalDivider/VerticalDivider.story.d.ts +8 -8
  792. package/dist/src/VerticalDivider/VerticalDivider.story.js +15 -0
  793. package/dist/src/VerticalDivider/index.d.ts +1 -1
  794. package/dist/src/VerticalDivider/index.js +1 -0
  795. package/dist/src/VisualTests/Select.story.d.ts +41 -41
  796. package/dist/src/VisualTests/Select.story.js +73 -0
  797. package/dist/src/VisualTests/WithSpace.story.d.ts +23 -23
  798. package/dist/src/VisualTests/WithSpace.story.js +115 -0
  799. package/dist/src/constants/index.d.ts +1 -1
  800. package/dist/src/constants/index.js +1 -0
  801. package/dist/src/constants/keyCodes.d.ts +15 -15
  802. package/dist/src/constants/keyCodes.js +15 -0
  803. package/dist/src/hooks/useMediaQuery/index.d.ts +2 -2
  804. package/dist/src/hooks/useMediaQuery/index.js +2 -0
  805. package/dist/src/hooks/useMediaQuery/useMediaQuery.d.ts +5 -5
  806. package/dist/src/hooks/useMediaQuery/useMediaQuery.js +30 -0
  807. package/dist/src/i18n.d.ts +2 -2
  808. package/dist/src/i18n.js +56 -0
  809. package/dist/src/index.d.ts +71 -71
  810. package/dist/src/index.js +59 -0
  811. package/dist/src/locale.story.d.ts +9 -9
  812. package/dist/src/locale.story.js +93 -0
  813. package/dist/src/locales.const.d.ts +53 -53
  814. package/dist/src/locales.const.js +66 -0
  815. package/dist/src/pages/ErrorPage.story.d.ts +21 -21
  816. package/dist/src/pages/ErrorPage.story.js +50 -0
  817. package/dist/src/pages/LoginPage.story.d.ts +30 -30
  818. package/dist/src/pages/LoginPage.story.js +71 -0
  819. package/dist/src/testing/matchers/toMatchDate.d.ts +0 -0
  820. package/dist/src/testing/matchers/toMatchDate.js +20 -0
  821. package/dist/src/testing/mockUtils/mockDates.d.ts +2 -0
  822. package/dist/src/testing/mockUtils/mockDates.js +17 -0
  823. package/dist/src/theme/NDSThemeProvider.d.ts +5 -5
  824. package/dist/src/theme/NDSThemeProvider.js +17 -0
  825. package/dist/src/theme/index.d.ts +2 -2
  826. package/dist/src/theme/index.js +1 -0
  827. package/dist/src/theme/mergeThemes.util.d.ts +2 -2
  828. package/dist/src/theme/mergeThemes.util.js +6 -0
  829. package/dist/src/theme/theme.d.ts +5 -5
  830. package/dist/src/theme/theme.js +652 -0
  831. package/dist/src/theme/theme.type.d.ts +153 -153
  832. package/dist/src/theme/theme.type.js +1 -0
  833. package/dist/src/theme/useNDSTheme.d.ts +21 -21
  834. package/dist/src/theme/useNDSTheme.js +32 -0
  835. package/dist/src/types/NulogyApp.d.ts +3 -3
  836. package/dist/src/types/NulogyApp.js +18 -0
  837. package/dist/src/utils/ClickInputLabel.d.ts +7 -7
  838. package/dist/src/utils/ClickInputLabel.js +13 -0
  839. package/dist/src/utils/DetectOutsideClick.d.ts +8 -0
  840. package/dist/src/utils/DetectOutsideClick.js +36 -0
  841. package/dist/src/utils/PopperArrow.d.ts +9 -9
  842. package/dist/src/utils/PopperArrow.js +132 -0
  843. package/dist/src/utils/ScrollIndicators.d.ts +16 -0
  844. package/dist/src/utils/ScrollIndicators.js +62 -0
  845. package/dist/src/utils/convertPxToNumber.d.ts +2 -0
  846. package/dist/src/utils/convertPxToNumber.js +4 -0
  847. package/dist/src/utils/datePickerLocales.d.ts +1 -0
  848. package/dist/src/utils/datePickerLocales.js +3 -0
  849. package/dist/src/utils/generateId.d.ts +2 -0
  850. package/dist/src/utils/generateId.js +7 -0
  851. package/dist/src/utils/index.d.ts +11 -11
  852. package/dist/src/utils/index.js +10 -0
  853. package/dist/src/utils/localized-date-fns.d.ts +1 -1
  854. package/dist/src/utils/localized-date-fns.js +5 -0
  855. package/dist/src/utils/noop.d.ts +5 -5
  856. package/dist/src/utils/noop.js +7 -0
  857. package/dist/src/utils/numberFromDimension/index.d.ts +5 -5
  858. package/dist/src/utils/numberFromDimension/index.js +7 -0
  859. package/dist/src/utils/numberFromDimension/numberFromDimension.spec.d.ts +1 -1
  860. package/dist/src/utils/numberFromDimension/numberFromDimension.spec.js +13 -0
  861. package/dist/src/utils/omit.d.ts +2 -0
  862. package/dist/src/utils/omit.js +6 -0
  863. package/dist/src/utils/story/code.d.ts +8 -8
  864. package/dist/src/utils/story/code.js +14 -0
  865. package/dist/src/utils/story/dashed.d.ts +9 -9
  866. package/dist/src/utils/story/dashed.js +12 -0
  867. package/dist/src/utils/story/placeholder.d.ts +7 -7
  868. package/dist/src/utils/story/placeholder.js +33 -0
  869. package/dist/src/utils/story/resizable.d.ts +25 -25
  870. package/dist/src/utils/story/resizable.js +38 -0
  871. package/dist/src/utils/story/simulatedAPIRequests.d.ts +4 -4
  872. package/dist/src/utils/story/simulatedAPIRequests.js +22 -0
  873. package/dist/src/utils/subPx.d.ts +9 -9
  874. package/dist/src/utils/subPx.js +10 -0
  875. package/dist/src/utils/subset.d.ts +3 -0
  876. package/dist/src/utils/subset.js +21 -0
  877. package/dist/src/utils/testing/createMatchMedia.d.ts +7 -7
  878. package/dist/src/utils/testing/createMatchMedia.js +17 -0
  879. package/dist/src/utils/testing/useConditionalAutoClick.d.ts +60 -60
  880. package/dist/src/utils/testing/useConditionalAutoClick.js +52 -0
  881. package/dist/src/utils/testing/useUrlProps.d.ts +6 -6
  882. package/dist/src/utils/testing/useUrlProps.js +23 -0
  883. package/dist/src/utils/ts/FocusManager.d.ts +17 -17
  884. package/dist/src/utils/ts/FocusManager.js +40 -0
  885. package/dist/src/utils/ts/recursivePartial.d.ts +3 -3
  886. package/dist/src/utils/ts/recursivePartial.js +1 -0
  887. package/dist/src/utils/useScrollLock.d.ts +55 -55
  888. package/dist/src/utils/useScrollLock.js +81 -0
  889. package/dist/src/utils/useWindowDimension.story.d.ts +6 -0
  890. package/dist/src/utils/useWindowDimension.story.js +25 -0
  891. package/dist/src/utils/useWindowDimensions.d.ts +39 -0
  892. package/dist/src/utils/useWindowDimensions.js +48 -0
  893. package/dist/src/utils/withMenuState.d.ts +12 -12
  894. package/dist/src/utils/withMenuState.js +76 -0
  895. package/dist/src/utils/withWindowDimensions.d.ts +3 -0
  896. package/dist/src/utils/withWindowDimensions.js +28 -0
  897. package/package.json +10 -14
  898. package/dist/src/TruncatedText/MaybeTooltip.d.ts +0 -8
  899. package/dist/src/TruncatedText/TooltipContent.d.ts +0 -7
@@ -1,5 +1,5 @@
1
- import React from "react";
2
- import { BaseNavigationProps } from "../../Navigation";
3
- type DesktopNavProps = BaseNavigationProps;
4
- export default function DesktopNav({ primaryNavigation, secondaryNavigation, appSwitcher, secondaryLogo, primaryLogo, userMenu, }: DesktopNavProps): React.JSX.Element;
5
- export {};
1
+ import React from "react";
2
+ import { BaseNavigationProps } from "../../Navigation";
3
+ type DesktopNavProps = BaseNavigationProps;
4
+ export default function DesktopNav({ primaryNavigation, secondaryNavigation, appSwitcher, secondaryLogo, primaryLogo, userMenu, }: DesktopNavProps): React.JSX.Element;
5
+ export {};
@@ -0,0 +1,48 @@
1
+ import React, { useMemo } from "react";
2
+ import * as RadixNavigationMenu from "@radix-ui/react-navigation-menu";
3
+ import { useTranslation } from "react-i18next";
4
+ import { Box, Divider, Flex, TruncatedText, VerticalDivider } from "../../..";
5
+ import { NavigationMenuItem, NavigationMenuSubList } from "../shared/NavigationMenuItem";
6
+ import UserMenu from "../UserMenu/UserMenu";
7
+ import { CaretDown, NavigationMenuList, NavigationMenuTrigger, NavigationMenuRoot, RadixNavigationMenuItem, } from "../shared/components";
8
+ import NavigationMenuContent from "../shared/NavigationMenuContent";
9
+ import { NulogyAppSwitcher } from "../AppSwitcher/NulogyAppSwitcher";
10
+ import { useResponsiveMenu } from "../../hooks/useResponsiveMenu";
11
+ import { NulogyLogo } from "../NulogyLogo/NulogyLogo";
12
+ import { NavigationLogoLink } from "../shared/NavigationLogoLink";
13
+ import MoreMenuItem, { HiddenNavigationMenuItem } from "./parts/MoreMenuItem";
14
+ export default function DesktopNav({ primaryNavigation = [], secondaryNavigation = [], appSwitcher, secondaryLogo, primaryLogo, userMenu, }) {
15
+ const { t } = useTranslation();
16
+ const userMenuExists = !!userMenu;
17
+ const { menuItems, moreMenu, hiddenMenuItem, primaryMenuRef, secondaryMenuRef, hiddenButtonRef } = useResponsiveMenu(primaryNavigation);
18
+ const hasUserMenuContent = useMemo(() => userMenuExists && (userMenu.header || userMenu.controls || (userMenu.menuItems && userMenu.menuItems.length > 0)), [userMenuExists, userMenu]);
19
+ return (React.createElement(NavigationMenuRoot, null,
20
+ React.createElement(NavigationMenuList, { ref: primaryMenuRef },
21
+ React.createElement(NulogyAppSwitcher, { config: appSwitcher }),
22
+ React.createElement(RadixNavigationMenuItem, { display: "flex" }, primaryLogo !== null && primaryLogo !== void 0 ? primaryLogo : (React.createElement(NavigationLogoLink, { href: "/", "aria-label": "Nulogy Logo" },
23
+ React.createElement(NulogyLogo, null)))),
24
+ menuItems.map((item) => (React.createElement(NavigationMenuItem, { key: item.key, item: item }))),
25
+ moreMenu.length > 0 && React.createElement(MoreMenuItem, { moreMenu: moreMenu }),
26
+ hiddenMenuItem && React.createElement(HiddenNavigationMenuItem, { ref: hiddenButtonRef, item: hiddenMenuItem })),
27
+ React.createElement(NavigationMenuList, { ref: secondaryMenuRef },
28
+ secondaryNavigation.map((item) => (React.createElement(NavigationMenuItem, { key: item.key, item: item }))),
29
+ secondaryNavigation.length > 0 && userMenuExists && React.createElement(VerticalDivider, null),
30
+ secondaryLogo && React.createElement(RadixNavigationMenuItem, { display: "flex" }, secondaryLogo),
31
+ secondaryLogo && userMenuExists && React.createElement(VerticalDivider, null),
32
+ userMenuExists && (React.createElement(RadixNavigationMenu.Item, null,
33
+ React.createElement(NavigationMenuTrigger, { py: "half", disabled: !hasUserMenuContent, "aria-label": t("toggle user menu") },
34
+ React.createElement(Flex, { flexDirection: "column", alignItems: "flex-start" },
35
+ React.createElement(TruncatedText, { showTooltip: false, fontSize: "smaller", lineHeight: "smallerText", fontWeight: "normal" }, userMenu.triggerText.title),
36
+ userMenu.triggerText.subtitle1 && (React.createElement(TruncatedText, { showTooltip: false, fontSize: "smaller", lineHeight: "smallerText", fontWeight: "normal" }, userMenu.triggerText.subtitle1)),
37
+ userMenu.triggerText.subtitle2 && (React.createElement(TruncatedText, { showTooltip: false, fontSize: "smaller", lineHeight: "smallerText", fontWeight: "normal" }, userMenu.triggerText.subtitle2))),
38
+ hasUserMenuContent && React.createElement(CaretDown, { icon: "downArrow", size: "x2", "aria-hidden": true })),
39
+ hasUserMenuContent && (React.createElement(NavigationMenuContent, { right: 0, p: "none", pt: userMenu.header || userMenu.controls ? "none" : "x1", pb: userMenu.menuItems && userMenu.menuItems.length ? "x1" : "none", "aria-label": t("user menu") },
40
+ userMenu.header && React.createElement(UserMenu.Header, Object.assign({}, userMenu.header)),
41
+ (userMenu.controls || (userMenu.menuItems && userMenu.menuItems.length > 0)) && (React.createElement(UserMenu.Container, { p: "none", display: "flex", flexDirection: "column" },
42
+ userMenu.controls && React.createElement(Box, { p: "x2" }, userMenu.controls({ withinMobileNav: false })),
43
+ userMenu.controls && userMenu.menuItems && userMenu.menuItems.length > 0 && (React.createElement(Box, { px: "x2" },
44
+ React.createElement(Divider, { my: "x2" }))),
45
+ userMenu.menuItems && userMenu.menuItems.length > 0 && (React.createElement(Box, { px: "none" },
46
+ React.createElement(RadixNavigationMenu.Sub, { orientation: "vertical" },
47
+ React.createElement(NavigationMenuSubList, null, userMenu.menuItems.map((item) => (React.createElement(UserMenu.Item, { key: item.key, item: item }))))))))))))))));
48
+ }
@@ -1,8 +1,8 @@
1
- import React from "react";
2
- import type { MenuItem, MenuItems } from "../../../types";
3
- export default function MoreMenuItem({ moreMenu }: {
4
- moreMenu: MenuItems;
5
- }): React.JSX.Element;
6
- export declare const HiddenNavigationMenuItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("../../shared/NavigationMenuItem").NavigationMenuItemProps & React.RefAttributes<HTMLLIElement>, import("../../shared/NavigationMenuItem").NavigationMenuItemProps & React.RefAttributes<HTMLLIElement>>, never>, {
7
- item: MenuItem;
8
- }>> & string & Omit<React.ForwardRefExoticComponent<import("../../shared/NavigationMenuItem").NavigationMenuItemProps & React.RefAttributes<HTMLLIElement>>, keyof React.Component<any, {}, any>>;
1
+ import React from "react";
2
+ import type { MenuItem, MenuItems } from "../../../types";
3
+ export default function MoreMenuItem({ moreMenu }: {
4
+ moreMenu: MenuItems;
5
+ }): React.JSX.Element;
6
+ export declare const HiddenNavigationMenuItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("../../shared/NavigationMenuItem").NavigationMenuItemProps & React.RefAttributes<HTMLLIElement>, import("../../shared/NavigationMenuItem").NavigationMenuItemProps & React.RefAttributes<HTMLLIElement>>, never>, {
7
+ item: MenuItem;
8
+ }>> & string & Omit<React.ForwardRefExoticComponent<import("../../shared/NavigationMenuItem").NavigationMenuItemProps & React.RefAttributes<HTMLLIElement>>, keyof React.Component<any, {}, any>>;
@@ -0,0 +1,20 @@
1
+ import React from "react";
2
+ import { useTranslation } from "react-i18next";
3
+ import styled from "styled-components";
4
+ import { NavigationMenuItem } from "../../shared/NavigationMenuItem";
5
+ export default function MoreMenuItem({ moreMenu }) {
6
+ const { t } = useTranslation();
7
+ return (React.createElement(NavigationMenuItem, { item: {
8
+ key: "nds-primary-menu-more-item",
9
+ label: t("more"),
10
+ type: "button",
11
+ items: moreMenu,
12
+ } }));
13
+ }
14
+ export const HiddenNavigationMenuItem = styled(NavigationMenuItem).attrs({
15
+ tabIndex: -1,
16
+ "aria-hidden": true,
17
+ })({
18
+ position: "absolute",
19
+ visibility: "hidden",
20
+ });
@@ -1,6 +1,6 @@
1
- import React from "react";
2
- export type EnvironmentBannerProps = {
3
- children?: React.ReactNode;
4
- };
5
- declare const EnvironmentBanner: ({ children }: EnvironmentBannerProps) => React.JSX.Element;
6
- export default EnvironmentBanner;
1
+ import React from "react";
2
+ export type EnvironmentBannerProps = {
3
+ children?: React.ReactNode;
4
+ };
5
+ declare const EnvironmentBanner: ({ children }: EnvironmentBannerProps) => React.JSX.Element;
6
+ export default EnvironmentBanner;
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ import { Box } from "../../../Box";
3
+ import { Text } from "../../../Type";
4
+ const EnvironmentBanner = ({ children }) => (React.createElement(Box, { bg: "darkBlue", textAlign: "center" },
5
+ React.createElement(Text, { fontSize: "10px", letterSpacing: "0.5px", fontWeight: "bold", color: "white", textTransform: "uppercase", py: "2px" }, children)));
6
+ export default EnvironmentBanner;
@@ -1,2 +1,2 @@
1
- export { default as EnvironmentBanner } from "./EnvironmentBanner";
2
- export type { EnvironmentBannerProps } from "./EnvironmentBanner";
1
+ export { default as EnvironmentBanner } from "./EnvironmentBanner";
2
+ export type { EnvironmentBannerProps } from "./EnvironmentBanner";
@@ -0,0 +1 @@
1
+ export { default as EnvironmentBanner } from "./EnvironmentBanner";
@@ -1,8 +1,8 @@
1
- import React from "react";
2
- import { MenuItem } from "../../types";
3
- type Props = {
4
- item: MenuItem;
5
- level: number;
6
- };
7
- export declare function MenuSubItem({ item, level }: Props): React.JSX.Element;
8
- export {};
1
+ import React from "react";
2
+ import { MenuItem } from "../../types";
3
+ type Props = {
4
+ item: MenuItem;
5
+ level: number;
6
+ };
7
+ export declare function MenuSubItem({ item, level }: Props): React.JSX.Element;
8
+ export {};
@@ -0,0 +1,41 @@
1
+ import React from "react";
2
+ import * as RadixNavigationMenu from "@radix-ui/react-navigation-menu";
3
+ import { useTheme } from "styled-components";
4
+ import { Icon } from "../../../Icon";
5
+ import { CaretRight } from "../shared/components";
6
+ import { Flex } from "../../../Flex";
7
+ import { Divider } from "../../../Divider";
8
+ import { SubMenuContent, SubMenuItem, SubMenuItemButton, SubMenuItemLink, SubMenuList } from "./parts/styled";
9
+ export function MenuSubItem({ item, level }) {
10
+ var _a, _b;
11
+ const theme = useTheme();
12
+ /* ---------------------------------------------------------------------
13
+ * Separator
14
+ * -------------------------------------------------------------------*/
15
+ if (item.type === "separator") {
16
+ return React.createElement(Divider, { my: "x1", mx: "x1", width: "auto" });
17
+ }
18
+ /* ---------------------------------------------------------------------
19
+ * Custom render
20
+ * -------------------------------------------------------------------*/
21
+ if (item.type === "custom") {
22
+ return (React.createElement(RadixNavigationMenu.Item, { key: item.key }, item.render({ withinSubMenu: true, level, withinMobileNav: false })));
23
+ }
24
+ /* ---------------------------------------------------------------------
25
+ * Default render
26
+ * -------------------------------------------------------------------*/
27
+ const hasIcon = "icon" in item;
28
+ const isLink = item.type === "link";
29
+ const hasSubMenu = item.type === "button" && !!item.items && item.items.length > 0;
30
+ const content = (React.createElement(React.Fragment, null,
31
+ hasIcon && (React.createElement(Flex, { alignItems: "center", gap: "x1" },
32
+ React.createElement(Icon, { icon: item.icon, size: "x3", "aria-hidden": true }),
33
+ React.createElement("span", null, (_a = item.label) !== null && _a !== void 0 ? _a : item.tooltip))),
34
+ "label" in item && item.label && !hasIcon && React.createElement("span", null, item.label),
35
+ hasSubMenu && React.createElement(CaretRight, { "aria-hidden": true, size: "x2" })));
36
+ return (React.createElement(SubMenuItem, { key: item.key, value: "label" in item ? item.label : item.key }, isLink ? (React.createElement(SubMenuItemLink, { asChild: true }, item.element ? (React.cloneElement(item.element, Object.assign(Object.assign({}, item.props), { children: content }))) : (React.createElement("a", Object.assign({}, item.props), content)))) : (React.createElement(React.Fragment, null,
37
+ React.createElement(SubMenuItemButton, Object.assign({}, item.props), content),
38
+ hasSubMenu && (React.createElement(SubMenuContent, { left: `calc(100% - ${theme.space.half})`, top: `calc(-1 * ${theme.space.x1})` },
39
+ React.createElement(RadixNavigationMenu.Sub, { orientation: "vertical" },
40
+ React.createElement(SubMenuList, null, (_b = item.items) === null || _b === void 0 ? void 0 : _b.map((subItem) => React.createElement(MenuSubItem, { key: subItem.key, item: subItem, level: level + 1 }))))))))));
41
+ }
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
2
- import * as RadixNavigationMenu from "@radix-ui/react-navigation-menu";
3
- import { StyledProps } from "../../../../StyledProps";
4
- export declare const SubMenuItemLink: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<RadixNavigationMenu.NavigationMenuLinkProps & import("react").RefAttributes<HTMLAnchorElement>, StyledProps>> & string & Omit<import("react").ForwardRefExoticComponent<RadixNavigationMenu.NavigationMenuLinkProps & import("react").RefAttributes<HTMLAnchorElement>>, keyof import("react").Component<any, {}, any>>;
5
- export declare const SubMenuItemButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<RadixNavigationMenu.NavigationMenuTriggerProps & import("react").RefAttributes<HTMLButtonElement>, StyledProps>> & string & Omit<import("react").ForwardRefExoticComponent<RadixNavigationMenu.NavigationMenuTriggerProps & import("react").RefAttributes<HTMLButtonElement>>, keyof import("react").Component<any, {}, any>>;
6
- export declare const SubMenuContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<RadixNavigationMenu.NavigationMenuContentProps & import("react").RefAttributes<HTMLDivElement>, RadixNavigationMenu.NavigationMenuContentProps & import("react").RefAttributes<HTMLDivElement>>, never>, StyledProps>> & string & Omit<import("react").ForwardRefExoticComponent<RadixNavigationMenu.NavigationMenuContentProps & import("react").RefAttributes<HTMLDivElement>>, keyof import("react").Component<any, {}, any>>;
7
- export declare const SubMenuItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<RadixNavigationMenu.NavigationMenuItemProps & import("react").RefAttributes<HTMLLIElement>, StyledProps>> & string & Omit<import("react").ForwardRefExoticComponent<RadixNavigationMenu.NavigationMenuItemProps & import("react").RefAttributes<HTMLLIElement>>, keyof import("react").Component<any, {}, any>>;
8
- export declare const SubMenuList: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<RadixNavigationMenu.NavigationMenuListProps & import("react").RefAttributes<HTMLUListElement>, StyledProps>> & string & Omit<import("react").ForwardRefExoticComponent<RadixNavigationMenu.NavigationMenuListProps & import("react").RefAttributes<HTMLUListElement>>, keyof import("react").Component<any, {}, any>>;
1
+ /// <reference types="react" />
2
+ import * as RadixNavigationMenu from "@radix-ui/react-navigation-menu";
3
+ import { StyledProps } from "../../../../StyledProps";
4
+ export declare const SubMenuItemLink: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<RadixNavigationMenu.NavigationMenuLinkProps & import("react").RefAttributes<HTMLAnchorElement>, StyledProps>> & string & Omit<import("react").ForwardRefExoticComponent<RadixNavigationMenu.NavigationMenuLinkProps & import("react").RefAttributes<HTMLAnchorElement>>, keyof import("react").Component<any, {}, any>>;
5
+ export declare const SubMenuItemButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<RadixNavigationMenu.NavigationMenuTriggerProps & import("react").RefAttributes<HTMLButtonElement>, StyledProps>> & string & Omit<import("react").ForwardRefExoticComponent<RadixNavigationMenu.NavigationMenuTriggerProps & import("react").RefAttributes<HTMLButtonElement>>, keyof import("react").Component<any, {}, any>>;
6
+ export declare const SubMenuContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<RadixNavigationMenu.NavigationMenuContentProps & import("react").RefAttributes<HTMLDivElement>, RadixNavigationMenu.NavigationMenuContentProps & import("react").RefAttributes<HTMLDivElement>>, never>, StyledProps>> & string & Omit<import("react").ForwardRefExoticComponent<RadixNavigationMenu.NavigationMenuContentProps & import("react").RefAttributes<HTMLDivElement>>, keyof import("react").Component<any, {}, any>>;
7
+ export declare const SubMenuItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<RadixNavigationMenu.NavigationMenuItemProps & import("react").RefAttributes<HTMLLIElement>, StyledProps>> & string & Omit<import("react").ForwardRefExoticComponent<RadixNavigationMenu.NavigationMenuItemProps & import("react").RefAttributes<HTMLLIElement>>, keyof import("react").Component<any, {}, any>>;
8
+ export declare const SubMenuList: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<RadixNavigationMenu.NavigationMenuListProps & import("react").RefAttributes<HTMLUListElement>, StyledProps>> & string & Omit<import("react").ForwardRefExoticComponent<RadixNavigationMenu.NavigationMenuListProps & import("react").RefAttributes<HTMLUListElement>>, keyof import("react").Component<any, {}, any>>;
@@ -0,0 +1,40 @@
1
+ import * as RadixNavigationMenu from "@radix-ui/react-navigation-menu";
2
+ import styled from "styled-components";
3
+ import { addStyledProps } from "../../../../StyledProps";
4
+ import { NAVIGATION_SUB_MENU_MIN_WIDTH_PX } from "../../shared/constants";
5
+ import { disableHoverEvents } from "../../shared/disableHoverEvents";
6
+ const getSharedPaddingStyles = (theme) => ({
7
+ paddingTop: theme.space.x1,
8
+ paddingBottom: theme.space.x1,
9
+ });
10
+ const getSharedInteractiveItemStyles = (theme) => ({
11
+ paddingLeft: theme.space.x1_5,
12
+ paddingRight: theme.space.x1_5,
13
+ fontWeight: theme.fontWeights.medium,
14
+ fontSize: theme.fontSizes.small,
15
+ lineHeight: theme.lineHeights.smallRelaxed,
16
+ whiteSpace: "nowrap",
17
+ transition: "background-color 250ms ease",
18
+ });
19
+ export const SubMenuItemLink = styled(RadixNavigationMenu.Link)(({ theme }) => (Object.assign(Object.assign(Object.assign({}, getSharedPaddingStyles(theme)), getSharedInteractiveItemStyles(theme)), { display: "flex", flexDirection: "column", alignItems: "flex-start", alignSelf: "stretch", width: "100%", textDecoration: "none", "&:hover, &:focus": {
20
+ backgroundColor: theme.colors.lightBlue,
21
+ color: theme.colors.darkBlue,
22
+ outline: "none",
23
+ }, "&:visited": {
24
+ color: "inherit",
25
+ } })), addStyledProps);
26
+ export const SubMenuItemButton = styled(RadixNavigationMenu.Trigger)(({ theme }) => (Object.assign(Object.assign(Object.assign({}, getSharedPaddingStyles(theme)), getSharedInteractiveItemStyles(theme)), { display: "flex", alignItems: "center", justifyContent: "space-between", width: "100%", gap: theme.space.x2, background: "none", border: "none", outline: "none", color: theme.colors.darkGrey, userSelect: "none", "&:hover, &:focus": {
27
+ backgroundColor: theme.colors.lightBlue,
28
+ color: theme.colors.darkBlue,
29
+ } })), addStyledProps);
30
+ export const SubMenuContent = styled(RadixNavigationMenu.Content).attrs(disableHoverEvents)(({ theme }) => (Object.assign(Object.assign({}, getSharedPaddingStyles(theme)), { position: "absolute", top: `calc(100% + ${theme.space.half})`, left: 0, minWidth: NAVIGATION_SUB_MENU_MIN_WIDTH_PX, display: "flex", flexDirection: "column", alignItems: "flex-start", background: theme.colors.white, color: theme.colors.darkGrey, borderRadius: theme.radii.medium, boxShadow: theme.shadows.medium, paddingRight: 0, paddingLeft: 0, listStyle: "none", "& > div": {
31
+ width: "100%",
32
+ } })), addStyledProps);
33
+ export const SubMenuItem = styled(RadixNavigationMenu.Item)({
34
+ position: "relative",
35
+ width: "100%",
36
+ }, addStyledProps);
37
+ export const SubMenuList = styled(RadixNavigationMenu.List)({
38
+ padding: 0,
39
+ listStyle: "none",
40
+ }, addStyledProps);
@@ -1,5 +1,5 @@
1
- import React from "react";
2
- import { BaseNavigationProps } from "../../Navigation";
3
- type MobileNavProps = BaseNavigationProps;
4
- export default function MobileNav({ primaryNavigation, secondaryNavigation, appSwitcher, primaryLogo, secondaryLogo, userMenu, }: MobileNavProps): React.JSX.Element;
5
- export {};
1
+ import React from "react";
2
+ import { BaseNavigationProps } from "../../Navigation";
3
+ type MobileNavProps = BaseNavigationProps;
4
+ export default function MobileNav({ primaryNavigation, secondaryNavigation, appSwitcher, primaryLogo, secondaryLogo, userMenu, }: MobileNavProps): React.JSX.Element;
5
+ export {};
@@ -0,0 +1,46 @@
1
+ import React from "react";
2
+ import * as RadixNavigationMenu from "@radix-ui/react-navigation-menu";
3
+ import { useTranslation } from "react-i18next";
4
+ import { NavigationMenuList, NavigationMenuRoot, NavigationMenuTrigger, RadixNavigationMenuItem, } from "../shared/components";
5
+ import { NulogyAppSwitcher } from "../AppSwitcher/NulogyAppSwitcher";
6
+ import { Icon } from "../../../Icon";
7
+ import NavigationMenuContent from "../shared/NavigationMenuContent";
8
+ import UserMenu from "../UserMenu/UserMenu";
9
+ import { Box } from "../../../Box";
10
+ import { getNavigationBarItems } from "../utils/getNavigationBarItems";
11
+ import { NavigationMenuItem, NavigationMenuSubList } from "../shared/NavigationMenuItem";
12
+ import { NulogyLogo } from "../NulogyLogo/NulogyLogo";
13
+ import { NavigationLogoLink } from "../shared/NavigationLogoLink";
14
+ import { MobileMenuItem } from "./parts/MobileMenuItem";
15
+ import { MobileSecondaryLogoContainer } from "./parts/styled";
16
+ export default function MobileNav({ primaryNavigation = [], secondaryNavigation = [], appSwitcher, primaryLogo, secondaryLogo, userMenu, }) {
17
+ const { t } = useTranslation();
18
+ return (React.createElement(NavigationMenuRoot, null,
19
+ React.createElement(NavigationMenuList, null,
20
+ React.createElement(NulogyAppSwitcher, { config: appSwitcher }),
21
+ React.createElement(RadixNavigationMenuItem, { display: "flex" }, primaryLogo !== null && primaryLogo !== void 0 ? primaryLogo : (React.createElement(NavigationLogoLink, { href: "/", "aria-label": t("nulogy logo") },
22
+ React.createElement(NulogyLogo, null))))),
23
+ (primaryNavigation.length > 0 || secondaryNavigation.length > 0 || userMenu) && (React.createElement(NavigationMenuList, null,
24
+ getNavigationBarItems([...primaryNavigation, ...secondaryNavigation]).map((item) => (React.createElement(RadixNavigationMenu.Item, { key: item.key },
25
+ React.createElement(NavigationMenuItem, { item: item })))),
26
+ React.createElement(RadixNavigationMenu.Item, null,
27
+ React.createElement(NavigationMenuTrigger, { "aria-label": t("toggle mobile menu") },
28
+ React.createElement(Icon, { icon: "menu" })),
29
+ React.createElement(NavigationMenuContent, { right: 0 },
30
+ React.createElement(UserMenu.Container, { p: "none", display: "flex", flexDirection: "column", gap: "x4" },
31
+ primaryNavigation.length > 0 && (React.createElement(Box, { px: "x2" },
32
+ React.createElement(RadixNavigationMenu.Sub, { orientation: "vertical" },
33
+ React.createElement(NavigationMenuSubList, null, primaryNavigation.map((item) => (React.createElement(MobileMenuItem, { menuItem: item, key: item.key }))))))),
34
+ secondaryNavigation.length > 0 && (React.createElement(Box, { px: "x2" },
35
+ React.createElement(RadixNavigationMenu.Sub, { orientation: "vertical" },
36
+ React.createElement(NavigationMenuSubList, null, secondaryNavigation.map((item) => (React.createElement(MobileMenuItem, { menuItem: item, key: item.key }))))))),
37
+ userMenu && (React.createElement(React.Fragment, null,
38
+ userMenu.header && (React.createElement(Box, { px: "x2" },
39
+ React.createElement(UserMenu.Header, Object.assign({}, userMenu.header, { containerProps: { borderRadius: "large" } })))),
40
+ userMenu.controls && React.createElement(Box, { px: "x2" }, userMenu.controls({ withinMobileNav: true })),
41
+ userMenu.menuItems && userMenu.menuItems.length > 0 && (React.createElement(Box, { px: "none" },
42
+ React.createElement(NavigationMenuSubList, null, userMenu.menuItems.map((item) => (React.createElement(UserMenu.MobileItem, { key: item.key, item: item }))))))))),
43
+ secondaryLogo && (React.createElement(MobileSecondaryLogoContainer, null,
44
+ React.createElement(NavigationMenuSubList, null,
45
+ React.createElement(RadixNavigationMenuItem, null, secondaryLogo))))))))));
46
+ }
@@ -1,9 +1,9 @@
1
- import React from "react";
2
- import { MenuItem } from "../../../types";
3
- interface MobileMenuItemProps {
4
- menuItem: MenuItem;
5
- /** Depth (root = 0). */
6
- level?: number;
7
- }
8
- export declare const MobileMenuItem: React.ForwardRefExoticComponent<MobileMenuItemProps & React.RefAttributes<HTMLLIElement>>;
9
- export {};
1
+ import React from "react";
2
+ import { MenuItem } from "../../../types";
3
+ interface MobileMenuItemProps {
4
+ menuItem: MenuItem;
5
+ /** Depth (root = 0). */
6
+ level?: number;
7
+ }
8
+ export declare const MobileMenuItem: React.ForwardRefExoticComponent<MobileMenuItemProps & React.RefAttributes<HTMLLIElement>>;
9
+ export {};
@@ -0,0 +1,84 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import React from "react";
13
+ import * as RadixNavigationMenu from "@radix-ui/react-navigation-menu";
14
+ import { Text } from "../../../../Type";
15
+ import { Icon } from "../../../../Icon";
16
+ import { Divider } from "../../../../Divider";
17
+ import { RadixNavigationMenuItem } from "../../shared/components";
18
+ import { NavigationMenuSubList } from "../../shared/NavigationMenuItem";
19
+ import { IndentedContainer, MobileNavigationButton, MobileNavigationLink, MenuItemGroupLabel } from "./styled";
20
+ export const MobileMenuItem = React.forwardRef((_a, forwardedRef) => {
21
+ var { menuItem, level = 0 } = _a, props = __rest(_a, ["menuItem", "level"]);
22
+ if (menuItem.mobileVisibility !== undefined && menuItem.mobileVisibility !== "navigationMenu") {
23
+ return null;
24
+ }
25
+ /* -------------------------------------------------------------------
26
+ * Separator
27
+ * -----------------------------------------------------------------*/
28
+ if (menuItem.type === "separator") {
29
+ return (React.createElement(RadixNavigationMenuItem, Object.assign({ ref: forwardedRef }, props),
30
+ React.createElement(IndentedContainer, { level: level },
31
+ React.createElement(Divider, { secondary: level > 0, my: "x2" }))));
32
+ }
33
+ /* -------------------------------------------------------------------
34
+ * Custom render fragment
35
+ * -----------------------------------------------------------------*/
36
+ if (menuItem.type === "custom") {
37
+ return (React.createElement(RadixNavigationMenuItem, Object.assign({ ref: forwardedRef }, props),
38
+ React.createElement(IndentedContainer, { level: level }, menuItem.render({ withinSubMenu: level > 0, level, withinMobileNav: true }))));
39
+ }
40
+ /* -------------------------------------------------------------------
41
+ * Helpers shared by link & button
42
+ * -----------------------------------------------------------------*/
43
+ const hasIcon = "icon" in menuItem;
44
+ const hasLabel = "label" in menuItem && !!menuItem.label;
45
+ const hasTooltip = "tooltip" in menuItem && !!menuItem.tooltip;
46
+ const IconFragment = hasIcon ? React.createElement(Icon, { icon: menuItem.icon, size: "x3", "aria-hidden": true }) : null;
47
+ // Determine the text to display: use label if available, otherwise use tooltip if icon is present
48
+ const labelText = hasLabel ? menuItem.label : hasIcon && hasTooltip ? menuItem.tooltip : null;
49
+ const LabelFragment = labelText ? (React.createElement(Text, { fontSize: "small", lineHeight: "smallTextCompressed" }, labelText)) : null;
50
+ /* -------------------------------------------------------------------
51
+ * Link
52
+ * -----------------------------------------------------------------*/
53
+ if (menuItem.type === "link") {
54
+ return (React.createElement(RadixNavigationMenuItem, Object.assign({ ref: forwardedRef }, props),
55
+ React.createElement(IndentedContainer, { level: level },
56
+ React.createElement(MobileNavigationLink, { asChild: true }, menuItem.element ? (React.cloneElement(menuItem.element, Object.assign(Object.assign({}, menuItem.props), { children: (React.createElement(React.Fragment, null,
57
+ IconFragment,
58
+ LabelFragment)) }))) : (React.createElement("a", Object.assign({}, menuItem.props),
59
+ IconFragment,
60
+ LabelFragment))))));
61
+ }
62
+ /* -------------------------------------------------------------------
63
+ * Button
64
+ * -----------------------------------------------------------------*/
65
+ if (menuItem.type === "button") {
66
+ const hasItems = !!menuItem.items && menuItem.items.length > 0;
67
+ // Button with nested items – show group label then children
68
+ if (hasItems) {
69
+ return (React.createElement(RadixNavigationMenuItem, Object.assign({ ref: forwardedRef }, props),
70
+ LabelFragment && (React.createElement(IndentedContainer, { level: level },
71
+ React.createElement(MenuItemGroupLabel, null, labelText))),
72
+ React.createElement(RadixNavigationMenu.Sub, { orientation: "vertical" },
73
+ React.createElement(NavigationMenuSubList, null, (menuItem.items || []).map((item) => (React.createElement(MobileMenuItem, { key: item.key, menuItem: item, level: level + 1 })))))));
74
+ }
75
+ // Simple button with no children
76
+ return (React.createElement(RadixNavigationMenuItem, Object.assign({ ref: forwardedRef }, props),
77
+ React.createElement(IndentedContainer, { level: level },
78
+ React.createElement(MobileNavigationButton, Object.assign({}, ("props" in menuItem ? menuItem.props : {})),
79
+ IconFragment,
80
+ LabelFragment))));
81
+ }
82
+ return null;
83
+ });
84
+ MobileMenuItem.displayName = "MobileMenuItem";
@@ -1,18 +1,18 @@
1
- /// <reference types="react" />
2
- import * as RadixNavigationMenu from "@radix-ui/react-navigation-menu";
3
- export declare const IndentedContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("../../../../Box").BoxProps> & import("../../../../Box").BoxProps, {
4
- level: number;
5
- }>> & string;
6
- export declare const MenuItemGroupLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, keyof import("react").HTMLAttributes<HTMLParagraphElement> | "disabled" | "inline" | "compact" | "textTransform" | keyof import("../../../..").StyledProps> & import("react").HTMLAttributes<HTMLParagraphElement> & {
7
- variant?: import("../../../../NDSProvider/ComponentVariantContext").ComponentVariant;
8
- inline?: boolean;
9
- compact?: boolean;
10
- disabled?: boolean;
11
- textTransform?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | "full-width" | "capitalize" | "full-size-kana" | "lowercase" | "uppercase";
12
- fontSize?: string;
13
- } & import("../../../..").StyledProps, "ref"> & {
14
- ref?: import("react").Ref<HTMLParagraphElement>;
15
- }, never>> & string;
16
- export declare const MobileNavigationButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<RadixNavigationMenu.NavigationMenuTriggerProps & import("react").RefAttributes<HTMLButtonElement>, never>> & string & Omit<import("react").ForwardRefExoticComponent<RadixNavigationMenu.NavigationMenuTriggerProps & import("react").RefAttributes<HTMLButtonElement>>, keyof import("react").Component<any, {}, any>>;
17
- export declare const MobileNavigationLink: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<RadixNavigationMenu.NavigationMenuLinkProps & import("react").RefAttributes<HTMLAnchorElement>, never>> & string & Omit<import("react").ForwardRefExoticComponent<RadixNavigationMenu.NavigationMenuLinkProps & import("react").RefAttributes<HTMLAnchorElement>>, keyof import("react").Component<any, {}, any>>;
18
- export declare const MobileSecondaryLogoContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<RadixNavigationMenu.NavigationMenuSubProps & import("react").RefAttributes<HTMLDivElement>, never>> & string & Omit<import("react").ForwardRefExoticComponent<RadixNavigationMenu.NavigationMenuSubProps & import("react").RefAttributes<HTMLDivElement>>, keyof import("react").Component<any, {}, any>>;
1
+ /// <reference types="react" />
2
+ import * as RadixNavigationMenu from "@radix-ui/react-navigation-menu";
3
+ export declare const IndentedContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("../../../../Box").BoxProps> & import("../../../../Box").BoxProps, {
4
+ level: number;
5
+ }>> & string;
6
+ export declare const MenuItemGroupLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "textTransform" | "disabled" | keyof import("react").HTMLAttributes<HTMLParagraphElement> | "inline" | "compact" | keyof import("../../../..").StyledProps> & import("react").HTMLAttributes<HTMLParagraphElement> & {
7
+ variant?: import("../../../../NDSProvider/ComponentVariantContext").ComponentVariant;
8
+ inline?: boolean;
9
+ compact?: boolean;
10
+ disabled?: boolean;
11
+ textTransform?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | "full-width" | "capitalize" | "full-size-kana" | "lowercase" | "uppercase";
12
+ fontSize?: string;
13
+ } & import("../../../..").StyledProps, "ref"> & {
14
+ ref?: import("react").Ref<HTMLParagraphElement>;
15
+ }, never>> & string;
16
+ export declare const MobileNavigationButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<RadixNavigationMenu.NavigationMenuTriggerProps & import("react").RefAttributes<HTMLButtonElement>, never>> & string & Omit<import("react").ForwardRefExoticComponent<RadixNavigationMenu.NavigationMenuTriggerProps & import("react").RefAttributes<HTMLButtonElement>>, keyof import("react").Component<any, {}, any>>;
17
+ export declare const MobileNavigationLink: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<RadixNavigationMenu.NavigationMenuLinkProps & import("react").RefAttributes<HTMLAnchorElement>, never>> & string & Omit<import("react").ForwardRefExoticComponent<RadixNavigationMenu.NavigationMenuLinkProps & import("react").RefAttributes<HTMLAnchorElement>>, keyof import("react").Component<any, {}, any>>;
18
+ export declare const MobileSecondaryLogoContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<RadixNavigationMenu.NavigationMenuSubProps & import("react").RefAttributes<HTMLDivElement>, never>> & string & Omit<import("react").ForwardRefExoticComponent<RadixNavigationMenu.NavigationMenuSubProps & import("react").RefAttributes<HTMLDivElement>>, keyof import("react").Component<any, {}, any>>;
@@ -0,0 +1,23 @@
1
+ import styled from "styled-components";
2
+ import * as RadixNavigationMenu from "@radix-ui/react-navigation-menu";
3
+ import { Box } from "../../../../Box";
4
+ import { Text } from "../../../../Type";
5
+ export const IndentedContainer = styled(Box)(({ theme, level }) => ({
6
+ paddingLeft: `calc(${level} * ${theme.space.x2})`,
7
+ }));
8
+ const commonPadding = (theme) => ({
9
+ paddingLeft: 0,
10
+ paddingRight: 0,
11
+ paddingTop: theme.space.x2,
12
+ paddingBottom: theme.space.x2,
13
+ });
14
+ const commonStyles = (theme) => (Object.assign(Object.assign({}, commonPadding(theme)), { background: "none", border: "none", outline: "none", userSelect: "none", display: "flex", alignItems: "center", gap: theme.space.x1, color: theme.colors.darkGrey, fontSize: theme.fontSizes.small, fontWeight: theme.fontWeights.medium, lineHeight: theme.lineHeights.smallTextBase, width: "100%", textAlign: "left" }));
15
+ export const MenuItemGroupLabel = styled(Text)(({ theme }) => (Object.assign(Object.assign({}, commonPadding(theme)), { display: "flex", alignItems: "center", gap: theme.space.x1, color: theme.colors.darkGrey, fontSize: theme.fontSizes.small, fontWeight: theme.fontWeights.medium, lineHeight: theme.lineHeights.smallTextBase, width: "100%", textAlign: "left" })));
16
+ export const MobileNavigationButton = styled(RadixNavigationMenu.Trigger)(({ theme }) => (Object.assign({}, commonStyles(theme))));
17
+ export const MobileNavigationLink = styled(RadixNavigationMenu.Link)(({ theme }) => (Object.assign(Object.assign({}, commonStyles(theme)), { textDecoration: "none" })));
18
+ export const MobileSecondaryLogoContainer = styled(RadixNavigationMenu.Sub)(({ theme }) => ({
19
+ marginTop: theme.space.x2,
20
+ padding: theme.space.x2,
21
+ display: "flex",
22
+ justifyContent: "center",
23
+ }));
@@ -1,6 +1,6 @@
1
- import React from "react";
2
- import type { NulogyAppName } from "../../../types/NulogyApp";
3
- export interface NulogyLogoProps {
4
- app?: NulogyAppName;
5
- }
6
- export declare function NulogyLogo({ app }: NulogyLogoProps): React.JSX.Element;
1
+ import React from "react";
2
+ import type { NulogyAppName } from "../../../types/NulogyApp";
3
+ export interface NulogyLogoProps {
4
+ app?: NulogyAppName;
5
+ }
6
+ export declare function NulogyLogo({ app }: NulogyLogoProps): React.JSX.Element;
@@ -0,0 +1,20 @@
1
+ import React from "react";
2
+ import { Flex } from "../../../Flex";
3
+ import { Text } from "../../../Type";
4
+ import { APP_DISPLAY_NAMES } from "../../../types/NulogyApp";
5
+ import { SvgNulogyLogo } from "./SvgNulogyLogo";
6
+ export function NulogyLogo({ app }) {
7
+ const appDisplayName = APP_DISPLAY_NAMES[app];
8
+ if (app && !(app in APP_DISPLAY_NAMES)) {
9
+ throw new Error(`Invalid app name: ${app}. Valid names are: ${Object.keys(APP_DISPLAY_NAMES).join(", ")}`);
10
+ }
11
+ return (React.createElement(Flex, { alignItems: "flex-start", justifyContent: "center", flexDirection: appDisplayName ? "column" : "row" },
12
+ React.createElement(SvgNulogyLogo, { width: "102", height: "24" }),
13
+ appDisplayName && (
14
+ /*
15
+ This Text component is using custom properties that are not
16
+ in the theme because we're trying to match the branding
17
+ typography and colors of the Nulogy logo.
18
+ */
19
+ React.createElement(Text, { fontSize: "10px", lineHeight: "12px", color: "#1C68A5", fontWeight: "normal", textTransform: "uppercase", letterSpacing: "0.4px" }, appDisplayName))));
20
+ }
@@ -1,2 +1,2 @@
1
- import React, { SVGProps } from "react";
2
- export declare function SvgNulogyLogo(props: SVGProps<SVGSVGElement>): React.JSX.Element;
1
+ import React, { SVGProps } from "react";
2
+ export declare function SvgNulogyLogo(props: SVGProps<SVGSVGElement>): React.JSX.Element;
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ export function SvgNulogyLogo(props) {
3
+ return (React.createElement("svg", Object.assign({ viewBox: "0 0 102 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
4
+ React.createElement("path", { d: "M23.4218 0.867146L27.759 2.60144V18.2175C27.759 21.5706 23.6157 22.1596 20.8189 22.5547C22.4185 22.1596 23.4307 21.7156 23.4218 18.2175V4.33721L19.0846 2.60144L23.4218 0.867146ZM5.20435 21.6875V12.1474C5.20435 11.1871 5.925 10.1009 6.79955 9.72653L11.2773 7.80283V13.8699L15.6145 16.4846C16.4891 16.9286 18.2175 16.9389 18.2175 15.616V13.0131L16.4802 12.1445V0L3.2555 4.87288C1.45757 5.53434 0 7.61934 0 9.54304V23.8569L5.20435 21.6875Z", fill: "#F0B41C" }),
5
+ React.createElement("path", { d: "M36.7354 18.4818H32.8096V7.1808H36.435V9.07491C36.9583 8.39756 37.6125 7.83242 38.3587 7.41313C39.0371 7.04867 39.7964 6.86089 40.5665 6.86709C41.7622 6.86709 42.6693 7.20991 43.2878 7.89553C43.9064 8.58116 44.2156 9.58444 44.2156 10.9054V18.4818H40.3105V12.0078C40.3105 11.4159 40.1892 10.9685 39.9465 10.6657C39.7038 10.3628 39.3442 10.2148 38.8678 10.2217C38.1831 10.2217 37.6563 10.4516 37.2874 10.9113C36.9184 11.371 36.7344 12.0404 36.7354 12.9194V18.4818Z", fill: "#1C68A5" }),
6
+ React.createElement("path", { d: "M54.0493 6.86694H57.9515V17.2594L54.3261 18.7081V16.5003C53.802 17.1785 53.148 17.7454 52.4024 18.168C51.7277 18.5291 50.9731 18.7149 50.2079 18.7081C49.0102 18.7081 48.1007 18.3628 47.4792 17.6722C46.8577 16.9817 46.5459 15.9779 46.5439 14.6609V6.86694H50.4698V13.5659C50.4698 14.1578 50.5911 14.6071 50.8338 14.9139C51.0765 15.2207 51.4361 15.3732 51.9126 15.3712C52.6031 15.3712 53.1299 15.1394 53.4929 14.6757C53.856 14.212 54.04 13.5451 54.0449 12.675L54.0493 6.86694Z", fill: "#1C68A5" }),
7
+ React.createElement("path", { d: "M62.349 18.7354H60.2773V0.830151L62.349 0V18.7354Z", fill: "#1C68A5" }),
8
+ React.createElement("path", { d: "M64.0928 13.0257C64.0928 11.2362 64.6615 9.76236 65.7989 8.60419C66.9364 7.44603 68.3787 6.86694 70.1258 6.86694C71.8729 6.86694 73.3152 7.44603 74.4526 8.60419C75.5901 9.76236 76.1588 11.2362 76.1588 13.0257C76.1588 14.8232 75.5901 16.3029 74.4526 17.4651C73.3152 18.6272 71.8729 19.2063 70.1258 19.2023C68.3856 19.2023 66.9453 18.6232 65.8049 17.4651C64.6645 16.3069 64.0938 14.8271 64.0928 13.0257ZM66.1497 13.0257C66.1497 14.4315 66.5132 15.5626 67.2402 16.4189C67.9673 17.2752 68.9208 17.7038 70.1006 17.7048C71.2845 17.7048 72.2419 17.2761 72.9729 16.4189C73.7039 15.5616 74.0719 14.4305 74.0768 13.0257C74.0768 11.6298 73.7088 10.5032 72.9729 9.64595C72.2369 8.78867 71.2795 8.36053 70.1006 8.36151C68.9168 8.36151 67.9634 8.79015 67.2402 9.64743C66.5171 10.5047 66.1536 11.6308 66.1497 13.0257Z", fill: "#1C68A5" }),
9
+ React.createElement("path", { d: "M86.2825 17.9933C85.7073 18.3338 85.0919 18.6013 84.4505 18.7895C83.8592 18.9596 83.2471 19.0463 82.6319 19.0469C80.9686 19.0469 79.6245 18.495 78.5995 17.3911C77.5745 16.2872 77.0625 14.8365 77.0635 13.0391C77.0635 11.2071 77.611 9.72043 78.706 8.57904C79.8011 7.43764 81.2315 6.86694 82.9974 6.86694C83.5542 6.87509 84.1095 6.92854 84.6577 7.02676C85.289 7.13133 86.0191 7.29213 86.8477 7.50916L88.3142 6.91726V17.1129C88.3142 18.4753 88.2496 19.4721 88.1203 20.1035C88.0069 20.6938 87.7835 21.2575 87.4618 21.7653C86.9756 22.5003 86.284 23.0761 85.473 23.4211C84.5283 23.8233 83.5089 24.0201 82.4824 23.9982C81.7434 23.9982 81.0074 23.9037 80.2923 23.7171C79.5452 23.5188 78.8236 23.2342 78.1422 22.8692L77.8034 20.4113L79.3201 21.4027C79.7777 21.6876 80.277 21.8993 80.7999 22.0302C81.3712 22.1909 81.9614 22.275 82.5549 22.2802C83.7387 22.2802 84.6567 21.9843 85.3088 21.3924C85.9608 20.8005 86.2854 19.958 86.2825 18.8649V17.9933ZM86.2825 16.4499V9.21238C85.7948 8.96846 85.2843 8.77317 84.7583 8.62935C84.298 8.50417 83.8235 8.43901 83.3466 8.4355C82.0848 8.4355 81.0692 8.8597 80.2997 9.7081C79.5303 10.5565 79.145 11.6851 79.144 13.0938C79.144 14.4473 79.4893 15.5216 80.1799 16.3168C80.8704 17.1119 81.8007 17.509 82.9707 17.508C83.461 17.5022 83.9474 17.4218 84.4135 17.2697C85.0592 17.0516 85.6846 16.7773 86.2825 16.4499Z", fill: "#1C68A5" }),
10
+ React.createElement("path", { d: "M90.0352 6.86694H92.1927L95.5784 15.7456L99.3044 6.86694H101.061L95.6672 19.3222L95.5784 19.4983C94.726 21.4378 94.0695 22.8189 93.6088 23.6416H91.364C91.8422 23.1454 92.2709 22.6037 92.644 22.0242C93.1111 21.2739 93.526 20.4922 93.8855 19.6847L94.6136 18.1176L90.0352 6.86694Z", fill: "#1C68A5" })));
11
+ }
@@ -1,14 +1,14 @@
1
- /// <reference types="react" />
2
- import * as RadixNavigationMenu from "@radix-ui/react-navigation-menu";
3
- import { StyledProps } from "../../../StyledProps";
4
- declare const UserMenu: {
5
- Header: ({ title, subtitle1, subtitle2, containerProps }: import("./parts/Header").HeaderProps) => import("react").JSX.Element;
6
- Container: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<RadixNavigationMenu.NavigationMenuSubProps & import("react").RefAttributes<HTMLDivElement>, RadixNavigationMenu.NavigationMenuSubProps & import("react").RefAttributes<HTMLDivElement>>, never>, StyledProps>> & string & Omit<import("react").ForwardRefExoticComponent<RadixNavigationMenu.NavigationMenuSubProps & import("react").RefAttributes<HTMLDivElement>>, keyof import("react").Component<any, {}, any>>;
7
- Item: import("react").ForwardRefExoticComponent<import("./parts/Item").UserMenuItemProps & {
8
- level?: number;
9
- } & import("react").RefAttributes<HTMLLIElement>>;
10
- MobileItem: import("react").ForwardRefExoticComponent<import("./parts/Item").UserMenuItemProps & {
11
- level?: number;
12
- } & import("react").RefAttributes<HTMLLIElement>>;
13
- };
14
- export default UserMenu;
1
+ /// <reference types="react" />
2
+ import * as RadixNavigationMenu from "@radix-ui/react-navigation-menu";
3
+ import { StyledProps } from "../../../StyledProps";
4
+ declare const UserMenu: {
5
+ Header: ({ title, subtitle1, subtitle2, containerProps }: import("./parts/Header").HeaderProps) => import("react").JSX.Element;
6
+ Container: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<RadixNavigationMenu.NavigationMenuSubProps & import("react").RefAttributes<HTMLDivElement>, RadixNavigationMenu.NavigationMenuSubProps & import("react").RefAttributes<HTMLDivElement>>, never>, StyledProps>> & string & Omit<import("react").ForwardRefExoticComponent<RadixNavigationMenu.NavigationMenuSubProps & import("react").RefAttributes<HTMLDivElement>>, keyof import("react").Component<any, {}, any>>;
7
+ Item: import("react").ForwardRefExoticComponent<import("./parts/Item").UserMenuItemProps & {
8
+ level?: number;
9
+ } & import("react").RefAttributes<HTMLLIElement>>;
10
+ MobileItem: import("react").ForwardRefExoticComponent<import("./parts/Item").UserMenuItemProps & {
11
+ level?: number;
12
+ } & import("react").RefAttributes<HTMLLIElement>>;
13
+ };
14
+ export default UserMenu;