@cloudoperators/juno-ui-components 6.0.0 → 6.1.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 (220) hide show
  1. package/README.md +1 -1
  2. package/build/components/AppBody/AppBody.component.d.ts +18 -8
  3. package/build/components/AppBody/AppBody.component.d.ts.map +1 -1
  4. package/build/components/AppBody/AppBody.stories.d.ts.map +1 -1
  5. package/build/components/AppShell/AppShell.component.d.ts +39 -15
  6. package/build/components/AppShell/AppShell.component.d.ts.map +1 -1
  7. package/build/components/AppShellProvider/AppShellProvider.component.d.ts +30 -9
  8. package/build/components/AppShellProvider/AppShellProvider.component.d.ts.map +1 -1
  9. package/build/components/Badge/Badge.component.d.ts +20 -17
  10. package/build/components/Badge/Badge.component.d.ts.map +1 -1
  11. package/build/components/Box/Box.component.d.ts +16 -10
  12. package/build/components/Box/Box.component.d.ts.map +1 -1
  13. package/build/components/Breadcrumb/Breadcrumb.component.d.ts +14 -12
  14. package/build/components/Breadcrumb/Breadcrumb.component.d.ts.map +1 -1
  15. package/build/components/Breadcrumb/Breadcrumb.stories.d.ts +1 -1
  16. package/build/components/BreadcrumbItem/BreadcrumbItem.component.d.ts +25 -15
  17. package/build/components/BreadcrumbItem/BreadcrumbItem.component.d.ts.map +1 -1
  18. package/build/components/BreadcrumbItem/BreadcrumbItem.stories.d.ts +1 -1
  19. package/build/components/Button/Button.component.d.ts +48 -16
  20. package/build/components/Button/Button.component.d.ts.map +1 -1
  21. package/build/components/ButtonRow/ButtonRow.component.d.ts +21 -7
  22. package/build/components/ButtonRow/ButtonRow.component.d.ts.map +1 -1
  23. package/build/components/Card/Card.component.d.ts +13 -7
  24. package/build/components/Card/Card.component.d.ts.map +1 -1
  25. package/build/components/Checkbox/Checkbox.component.d.ts +69 -21
  26. package/build/components/Checkbox/Checkbox.component.d.ts.map +1 -1
  27. package/build/components/CheckboxGroup/CheckboxGroup.component.d.ts +43 -16
  28. package/build/components/CheckboxGroup/CheckboxGroup.component.d.ts.map +1 -1
  29. package/build/components/Code/Code.component.d.ts +17 -6
  30. package/build/components/Code/Code.component.d.ts.map +1 -1
  31. package/build/components/CodeBlock/CodeBlock.component.d.ts +39 -13
  32. package/build/components/CodeBlock/CodeBlock.component.d.ts.map +1 -1
  33. package/build/components/ComboBox/ComboBox.component.d.ts +70 -33
  34. package/build/components/ComboBox/ComboBox.component.d.ts.map +1 -1
  35. package/build/components/ComboBoxOption/ComboBoxOption.component.d.ts +22 -8
  36. package/build/components/ComboBoxOption/ComboBoxOption.component.d.ts.map +1 -1
  37. package/build/components/Container/Container.component.d.ts +20 -8
  38. package/build/components/Container/Container.component.d.ts.map +1 -1
  39. package/build/components/ContentAreaToolbar/ContentAreaToolbar.component.d.ts +11 -8
  40. package/build/components/ContentAreaToolbar/ContentAreaToolbar.component.d.ts.map +1 -1
  41. package/build/components/ContentContainer/ContentContainer.component.d.ts +10 -11
  42. package/build/components/ContentContainer/ContentContainer.component.d.ts.map +1 -1
  43. package/build/components/ContentHeading/ContentHeading.component.d.ts +13 -11
  44. package/build/components/ContentHeading/ContentHeading.component.d.ts.map +1 -1
  45. package/build/components/DataGrid/DataGrid.component.d.ts +31 -20
  46. package/build/components/DataGrid/DataGrid.component.d.ts.map +1 -1
  47. package/build/components/DataGridCell/DataGridCell.component.d.ts +19 -7
  48. package/build/components/DataGridCell/DataGridCell.component.d.ts.map +1 -1
  49. package/build/components/DataGridCheckboxCell/DataGridCheckboxCell.component.d.ts +23 -8
  50. package/build/components/DataGridCheckboxCell/DataGridCheckboxCell.component.d.ts.map +1 -1
  51. package/build/components/DataGridFoot/DataGridFoot.component.d.ts +17 -6
  52. package/build/components/DataGridFoot/DataGridFoot.component.d.ts.map +1 -1
  53. package/build/components/DataGridHeadCell/DataGridHeadCell.component.d.ts +9 -3
  54. package/build/components/DataGridHeadCell/DataGridHeadCell.component.d.ts.map +1 -1
  55. package/build/components/DataGridRow/DataGridRow.component.d.ts +10 -4
  56. package/build/components/DataGridRow/DataGridRow.component.d.ts.map +1 -1
  57. package/build/components/DataGridToolbar/DataGridToolbar.component.d.ts +21 -9
  58. package/build/components/DataGridToolbar/DataGridToolbar.component.d.ts.map +1 -1
  59. package/build/components/DateTimePicker/DateTimePicker.component.d.ts +13 -12
  60. package/build/components/DateTimePicker/DateTimePicker.component.d.ts.map +1 -1
  61. package/build/components/DateTimePicker/DateTimePicker.mappers.d.ts +24 -0
  62. package/build/components/DateTimePicker/DateTimePicker.mappers.d.ts.map +1 -0
  63. package/build/components/DateTimePicker/DateTimePicker.types.d.ts +79 -0
  64. package/build/components/DateTimePicker/DateTimePicker.types.d.ts.map +1 -0
  65. package/build/components/Form/Form.component.d.ts +9 -4
  66. package/build/components/Form/Form.component.d.ts.map +1 -1
  67. package/build/components/FormHint/FormHint.component.d.ts +13 -4
  68. package/build/components/FormHint/FormHint.component.d.ts.map +1 -1
  69. package/build/components/FormRow/FormRow.component.d.ts +10 -6
  70. package/build/components/FormRow/FormRow.component.d.ts.map +1 -1
  71. package/build/components/FormSection/FormSection.component.d.ts +9 -4
  72. package/build/components/FormSection/FormSection.component.d.ts.map +1 -1
  73. package/build/components/FormattedText/FormattedText.component.d.ts +13 -6
  74. package/build/components/FormattedText/FormattedText.component.d.ts.map +1 -1
  75. package/build/components/Grid/Grid.component.d.ts +11 -6
  76. package/build/components/Grid/Grid.component.d.ts.map +1 -1
  77. package/build/components/GridColumn/GridColumn.component.d.ts +11 -5
  78. package/build/components/GridColumn/GridColumn.component.d.ts.map +1 -1
  79. package/build/components/GridRow/GridRow.component.d.ts +9 -6
  80. package/build/components/GridRow/GridRow.component.d.ts.map +1 -1
  81. package/build/components/HeaderContainer/HeaderContainer.component.d.ts +21 -6
  82. package/build/components/HeaderContainer/HeaderContainer.component.d.ts.map +1 -1
  83. package/build/components/Icon/Icon.component.d.ts +22 -3
  84. package/build/components/Icon/Icon.component.d.ts.map +1 -1
  85. package/build/components/InputGroup/InputGroup.component.d.ts +8 -4
  86. package/build/components/InputGroup/InputGroup.component.d.ts.map +1 -1
  87. package/build/components/IntroBox/IntroBox.component.d.ts +32 -13
  88. package/build/components/IntroBox/IntroBox.component.d.ts.map +1 -1
  89. package/build/components/JsonViewer/JsonViewer.component.d.ts +38 -11
  90. package/build/components/JsonViewer/JsonViewer.component.d.ts.map +1 -1
  91. package/build/components/Label/Label.component.d.ts +32 -10
  92. package/build/components/Label/Label.component.d.ts.map +1 -1
  93. package/build/components/LoadingIndicator/LoadingIndicator.component.d.ts +12 -8
  94. package/build/components/LoadingIndicator/LoadingIndicator.component.d.ts.map +1 -1
  95. package/build/components/MainContainer/MainContainer.component.d.ts +15 -7
  96. package/build/components/MainContainer/MainContainer.component.d.ts.map +1 -1
  97. package/build/components/MainContainerInner/MainContainerInner.component.d.ts +19 -8
  98. package/build/components/MainContainerInner/MainContainerInner.component.d.ts.map +1 -1
  99. package/build/components/MainTabs/MainTabs.component.d.ts +25 -11
  100. package/build/components/MainTabs/MainTabs.component.d.ts.map +1 -1
  101. package/build/components/Message/Message.component.d.ts +15 -8
  102. package/build/components/Message/Message.component.d.ts.map +1 -1
  103. package/build/components/Modal/Modal.component.d.ts +91 -42
  104. package/build/components/Modal/Modal.component.d.ts.map +1 -1
  105. package/build/components/ModalFooter/ModalFooter.component.d.ts +47 -21
  106. package/build/components/ModalFooter/ModalFooter.component.d.ts.map +1 -1
  107. package/build/components/NativeSelect/NativeSelect.component.d.ts +16 -6
  108. package/build/components/NativeSelect/NativeSelect.component.d.ts.map +1 -1
  109. package/build/components/NativeSelectOption/NativeSelectOption.component.d.ts +9 -5
  110. package/build/components/NativeSelectOption/NativeSelectOption.component.d.ts.map +1 -1
  111. package/build/components/NativeSelectOptionGroup/NativeSelectOptionGroup.component.d.ts +10 -6
  112. package/build/components/NativeSelectOptionGroup/NativeSelectOptionGroup.component.d.ts.map +1 -1
  113. package/build/components/Navigation/Navigation.component.d.ts +30 -10
  114. package/build/components/Navigation/Navigation.component.d.ts.map +1 -1
  115. package/build/components/NavigationItem/NavigationItem.component.d.ts +56 -17
  116. package/build/components/NavigationItem/NavigationItem.component.d.ts.map +1 -1
  117. package/build/components/PageFooter/PageFooter.component.d.ts +17 -11
  118. package/build/components/PageFooter/PageFooter.component.d.ts.map +1 -1
  119. package/build/components/PageFooter/PageFooter.stories.d.ts +1 -1
  120. package/build/components/PageHeader/PageHeader.component.d.ts +17 -12
  121. package/build/components/PageHeader/PageHeader.component.d.ts.map +1 -1
  122. package/build/components/Pagination/Pagination.component.d.ts +5 -3
  123. package/build/components/Pagination/Pagination.component.d.ts.map +1 -1
  124. package/build/components/Panel/Panel.component.d.ts +4 -2
  125. package/build/components/Panel/Panel.component.d.ts.map +1 -1
  126. package/build/components/PanelBody/PanelBody.component.d.ts +4 -2
  127. package/build/components/PanelBody/PanelBody.component.d.ts.map +1 -1
  128. package/build/components/PanelFooter/PanelFooter.component.d.ts +4 -2
  129. package/build/components/PanelFooter/PanelFooter.component.d.ts.map +1 -1
  130. package/build/components/Pill/Pill.component.d.ts +7 -5
  131. package/build/components/Pill/Pill.component.d.ts.map +1 -1
  132. package/build/components/PopupMenu/PopupMenu.component.d.ts +30 -22
  133. package/build/components/PopupMenu/PopupMenu.component.d.ts.map +1 -1
  134. package/build/components/PortalProvider/PortalProvider.Portal.component.d.ts +6 -3
  135. package/build/components/PortalProvider/PortalProvider.Portal.component.d.ts.map +1 -1
  136. package/build/components/PortalProvider/PortalProvider.component.d.ts +8 -3
  137. package/build/components/PortalProvider/PortalProvider.component.d.ts.map +1 -1
  138. package/build/components/Radio/Radio.component.d.ts +8 -4
  139. package/build/components/Radio/Radio.component.d.ts.map +1 -1
  140. package/build/components/RadioGroup/RadioGroup.component.d.ts +7 -5
  141. package/build/components/RadioGroup/RadioGroup.component.d.ts.map +1 -1
  142. package/build/components/SearchInput/SearchInput.component.d.ts +9 -7
  143. package/build/components/SearchInput/SearchInput.component.d.ts.map +1 -1
  144. package/build/components/SecretText/SecretText.component.d.ts +11 -7
  145. package/build/components/SecretText/SecretText.component.d.ts.map +1 -1
  146. package/build/components/Select/Select.component.d.ts +8 -6
  147. package/build/components/Select/Select.component.d.ts.map +1 -1
  148. package/build/components/SelectDivider/SelectDivider.component.d.ts +7 -3
  149. package/build/components/SelectDivider/SelectDivider.component.d.ts.map +1 -1
  150. package/build/components/SelectOption/SelectOption.component.d.ts +15 -3
  151. package/build/components/SelectOption/SelectOption.component.d.ts.map +1 -1
  152. package/build/components/ShadowRoot/ShadowRoot.component.d.ts +5 -3
  153. package/build/components/ShadowRoot/ShadowRoot.component.d.ts.map +1 -1
  154. package/build/components/SideNavigation/SideNavigation.component.d.ts +8 -6
  155. package/build/components/SideNavigation/SideNavigation.component.d.ts.map +1 -1
  156. package/build/components/SideNavigationGroup/SideNavigationGroup.component.d.ts +5 -2
  157. package/build/components/SideNavigationGroup/SideNavigationGroup.component.d.ts.map +1 -1
  158. package/build/components/SideNavigationItem/SideNavigationItem.component.d.ts +7 -4
  159. package/build/components/SideNavigationItem/SideNavigationItem.component.d.ts.map +1 -1
  160. package/build/components/SideNavigationList/SideNavigationList.component.d.ts +10 -2
  161. package/build/components/SideNavigationList/SideNavigationList.component.d.ts.map +1 -1
  162. package/build/components/SideNavigationList/SideNavigationList.stories.d.ts.map +1 -1
  163. package/build/components/SignInForm/SignInForm.component.d.ts +39 -0
  164. package/build/components/SignInForm/SignInForm.component.d.ts.map +1 -0
  165. package/build/components/SignInForm/SignInForm.stories.d.ts +8 -0
  166. package/build/components/SignInForm/SignInForm.stories.d.ts.map +1 -0
  167. package/build/components/SignInForm/SignInForm.test.d.ts +2 -0
  168. package/build/components/SignInForm/SignInForm.test.d.ts.map +1 -0
  169. package/build/components/SignInForm/index.d.ts +3 -0
  170. package/build/components/SignInForm/index.d.ts.map +1 -0
  171. package/build/components/SortButton/SortButton.component.d.ts +14 -3
  172. package/build/components/SortButton/SortButton.component.d.ts.map +1 -1
  173. package/build/components/SortButton/SortButton.stories.d.ts.map +1 -1
  174. package/build/components/Spinner/Spinner.component.d.ts +8 -5
  175. package/build/components/Spinner/Spinner.component.d.ts.map +1 -1
  176. package/build/components/Stack/Stack.component.d.ts +6 -4
  177. package/build/components/Stack/Stack.component.d.ts.map +1 -1
  178. package/build/components/StyleProvider/StyleProvider.component.d.ts +3 -0
  179. package/build/components/StyleProvider/StyleProvider.component.d.ts.map +1 -1
  180. package/build/components/Switch/Switch.component.d.ts +8 -5
  181. package/build/components/Switch/Switch.component.d.ts.map +1 -1
  182. package/build/components/Tab/Tab.component.d.ts +9 -11
  183. package/build/components/Tab/Tab.component.d.ts.map +1 -1
  184. package/build/components/TabList/TabList.component.d.ts +9 -6
  185. package/build/components/TabList/TabList.component.d.ts.map +1 -1
  186. package/build/components/TabNavigation/TabNavigation.component.d.ts +8 -4
  187. package/build/components/TabNavigation/TabNavigation.component.d.ts.map +1 -1
  188. package/build/components/TabNavigationItem/TabNavigationItem.component.d.ts +11 -7
  189. package/build/components/TabNavigationItem/TabNavigationItem.component.d.ts.map +1 -1
  190. package/build/components/TabPanel/TabPanel.component.d.ts +7 -10
  191. package/build/components/TabPanel/TabPanel.component.d.ts.map +1 -1
  192. package/build/components/Tabs/Tabs.component.d.ts +9 -7
  193. package/build/components/Tabs/Tabs.component.d.ts.map +1 -1
  194. package/build/components/TextInput/TextInput.component.d.ts +11 -9
  195. package/build/components/TextInput/TextInput.component.d.ts.map +1 -1
  196. package/build/components/Textarea/Textarea.component.d.ts +11 -9
  197. package/build/components/Textarea/Textarea.component.d.ts.map +1 -1
  198. package/build/components/ThemeToggle/ThemeToggle.component.d.ts +4 -2
  199. package/build/components/ThemeToggle/ThemeToggle.component.d.ts.map +1 -1
  200. package/build/components/Toast/Toast.component.d.ts +8 -6
  201. package/build/components/Toast/Toast.component.d.ts.map +1 -1
  202. package/build/components/ToggleButton/ToggleButton.component.d.ts +21 -0
  203. package/build/components/ToggleButton/ToggleButton.component.d.ts.map +1 -1
  204. package/build/components/ToggleButton/ToggleButton.stories.d.ts.map +1 -1
  205. package/build/components/Tooltip/Tooltip.component.d.ts +8 -5
  206. package/build/components/Tooltip/Tooltip.component.d.ts.map +1 -1
  207. package/build/components/TooltipContent/TooltipContent.component.d.ts +5 -3
  208. package/build/components/TooltipContent/TooltipContent.component.d.ts.map +1 -1
  209. package/build/components/TooltipTrigger/TooltipTrigger.component.d.ts +5 -3
  210. package/build/components/TooltipTrigger/TooltipTrigger.component.d.ts.map +1 -1
  211. package/build/components/TopNavigation/TopNavigation.component.d.ts +8 -6
  212. package/build/components/TopNavigation/TopNavigation.component.d.ts.map +1 -1
  213. package/build/components/TopNavigationItem/TopNavigationItem.component.d.ts +10 -8
  214. package/build/components/TopNavigationItem/TopNavigationItem.component.d.ts.map +1 -1
  215. package/build/components/withDeprecationWarning/withDeprecationWarning.component.d.ts.map +1 -1
  216. package/build/index.d.ts +3 -0
  217. package/build/index.d.ts.map +1 -1
  218. package/build/index.js +3618 -3568
  219. package/build/juno-ui-components.css +1 -1
  220. package/package.json +1 -5
@@ -1,5 +1,5 @@
1
- import { default as React } from 'react';
2
- export interface NativeSelectOptionProps extends Omit<React.OptionHTMLAttributes<HTMLOptionElement>, "label" | "value"> {
1
+ import { OptionHTMLAttributes, ReactNode } from 'react';
2
+ export interface NativeSelectOptionProps extends Omit<OptionHTMLAttributes<HTMLOptionElement>, "label" | "value"> {
3
3
  /**
4
4
  * A visible label for the option.
5
5
  * It will be displayed to the user in the dropdown.
@@ -13,16 +13,20 @@ export interface NativeSelectOptionProps extends Omit<React.OptionHTMLAttributes
13
13
  /**
14
14
  * Determines whether the option is disabled.
15
15
  * If true, the option will be unselectable.
16
+ * @default false
16
17
  */
17
18
  disabled?: boolean;
18
19
  /**
19
20
  * Additional CSS classes to apply to the option for custom styling.
21
+ * @default ""
20
22
  */
21
23
  className?: string;
22
24
  }
23
25
  /**
24
- * The NativeSelectOption component represents an individual option in a dropdown list.
25
- * It should be used inside the NativeSelect component to define each option.
26
+ * The `NativeSelectOption` represents individual options within a dropdown list
27
+ * for use in `NativeSelect`, offering label-value pairs with optional disable state.
28
+ * @see https://cloudoperators.github.io/juno/?path=/docs/forms-nativeselect-nativeselectoption--docs
29
+ * @see {@link NativeSelectOptionProps}
26
30
  */
27
- export declare const NativeSelectOption: React.FC<NativeSelectOptionProps>;
31
+ export declare const NativeSelectOption: ({ value, label, disabled, className, ...props }: NativeSelectOptionProps) => ReactNode;
28
32
  //# sourceMappingURL=NativeSelectOption.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NativeSelectOption.component.d.ts","sourceRoot":"","sources":["../../../src/components/NativeSelectOption/NativeSelectOption.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,WAAW,uBACf,SAAQ,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IAC9E;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAEvB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAEvB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAYhE,CAAA"}
1
+ {"version":3,"file":"NativeSelectOption.component.d.ts","sourceRoot":"","sources":["../../../src/components/NativeSelectOption/NativeSelectOption.component.tsx"],"names":[],"mappings":"AAKA,OAAc,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAE9D,MAAM,WAAW,uBAAwB,SAAQ,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IAC/G;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAEvB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAEvB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,GAAI,iDAMhC,uBAAuB,KAAG,SAM5B,CAAA"}
@@ -1,5 +1,5 @@
1
- import { default as React } from 'react';
2
- export interface NativeSelectOptionGroupProps extends React.OptgroupHTMLAttributes<HTMLOptGroupElement> {
1
+ import { OptgroupHTMLAttributes, ReactNode } from 'react';
2
+ export interface NativeSelectOptionGroupProps extends OptgroupHTMLAttributes<HTMLOptGroupElement> {
3
3
  /**
4
4
  * A visible label for the option group.
5
5
  * It will be displayed as the group heading in the dropdown.
@@ -8,21 +8,25 @@ export interface NativeSelectOptionGroupProps extends React.OptgroupHTMLAttribut
8
8
  /**
9
9
  * Determines whether the option group is disabled.
10
10
  * If true, all options within the group will also be disabled.
11
+ * @default false
11
12
  */
12
13
  disabled?: boolean;
13
14
  /**
14
15
  * Additional CSS classes to apply to the option group for custom styling.
16
+ * @default ""
15
17
  */
16
18
  className?: string;
17
19
  /**
18
20
  * Elements to be rendered within the option group.
19
21
  * Typically, these should be NativeSelectOption components.
20
22
  */
21
- children?: React.ReactNode;
23
+ children?: ReactNode;
22
24
  }
23
25
  /**
24
- * The NativeSelectOptionGroup component groups related options within a dropdown list.
25
- * It should be used inside the <NativeSelect> component to group <NativeSelectOption> components.
26
+ * The `NativeSelectOptionGroup` categorizes related options within a dropdown list,
27
+ * enhancing semantic groupings for larger datasets in `NativeSelect`.
28
+ * @see https://cloudoperators.github.io/juno/?path=/docs/forms-nativeselect-nativeselectoptiongroup--docs
29
+ * @see {@link NativeSelectOptionGroupProps}
26
30
  */
27
- export declare const NativeSelectOptionGroup: React.FC<NativeSelectOptionGroupProps>;
31
+ export declare const NativeSelectOptionGroup: ({ label, disabled, className, children, ...props }: NativeSelectOptionGroupProps) => ReactNode;
28
32
  //# sourceMappingURL=NativeSelectOptionGroup.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NativeSelectOptionGroup.component.d.ts","sourceRoot":"","sources":["../../../src/components/NativeSelectOptionGroup/NativeSelectOptionGroup.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,WAAW,4BAA6B,SAAQ,KAAK,CAAC,sBAAsB,CAAC,mBAAmB,CAAC;IACrG;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED;;;GAGG;AACH,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,4BAA4B,CAY1E,CAAA"}
1
+ {"version":3,"file":"NativeSelectOptionGroup.component.d.ts","sourceRoot":"","sources":["../../../src/components/NativeSelectOptionGroup/NativeSelectOptionGroup.component.tsx"],"names":[],"mappings":"AAKA,OAAc,EAAE,sBAAsB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEhE,MAAM,WAAW,4BAA6B,SAAQ,sBAAsB,CAAC,mBAAmB,CAAC;IAC/F;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB;AAED;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,GAAI,oDAMrC,4BAA4B,KAAG,SAMjC,CAAA"}
@@ -1,4 +1,4 @@
1
- import { default as React, ReactNode } from 'react';
1
+ import { default as React, ReactNode, HTMLAttributes } from 'react';
2
2
  type ItemChangeHandler = (value: ReactNode) => void;
3
3
  type AddItemFunction = (key: ReactNode, children: ReactNode, label: string, value: string) => void;
4
4
  export interface NavigationContextType {
@@ -9,20 +9,40 @@ export interface NavigationContextType {
9
9
  navigationRole?: string;
10
10
  }
11
11
  export declare const NavigationContext: React.Context<NavigationContextType | undefined>;
12
- /** A generic Navigation component providing all the necessary functionality for a navigation. For internal use only. Not to be used directly, but to be wrapped by more role-specific / semantic navigation components such as `TabNavigation`, `TopNavigation`, `SideNavigation`. */
13
- export declare const Navigation: React.FC<NavigationProps>;
14
- export interface NavigationProps extends React.HTMLAttributes<HTMLUListElement> {
15
- /** The currently active item. Pass the `value`, `label` prop, or the child string of the respective NavigationItem. */
12
+ /**
13
+ * A generic `Navigation` component that offers context-managed item selection,
14
+ * designed for internal use with semantic wrappers like `SideNavigation`,
15
+ * `TabNavigation`, and `TopNavigation`.
16
+ * @see https://cloudoperators.github.io/juno/?path=/docs/internal-navigation--docs
17
+ * @see {@link NavigationProps}
18
+ */
19
+ export declare const Navigation: ({ activeItem, ariaLabel, children, className, disabled, onActiveItemChange, ...props }: NavigationProps) => ReactNode;
20
+ export interface NavigationProps extends HTMLAttributes<HTMLUListElement> {
21
+ /**
22
+ * The currently active item. Pass the `value`, `label` prop, or the child string of the respective NavigationItem.
23
+ */
16
24
  activeItem?: ReactNode;
17
- /** The aria label of the navigation */
25
+ /**
26
+ * The aria label of the navigation for accessibility purposes.
27
+ */
18
28
  ariaLabel?: string;
19
- /** The child navigation items of the navigation */
29
+ /**
30
+ * The child navigation items to be rendered within the navigation component.
31
+ */
20
32
  children?: ReactNode;
21
- /** Pass a custom className to the navigation parent element */
33
+ /**
34
+ * Pass a custom className to the navigation parent element.
35
+ * @default ""
36
+ */
22
37
  className?: string;
23
- /** Whether the navigation is disabled. Will disable all children. */
38
+ /**
39
+ * Whether the navigation is disabled, affecting interactivity for all children.
40
+ * @default false
41
+ */
24
42
  disabled?: boolean;
25
- /** Handler to execute when the active item changes. */
43
+ /**
44
+ * Handler to execute when the active item changes.
45
+ */
26
46
  onActiveItemChange?: ItemChangeHandler;
27
47
  }
28
48
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"Navigation.component.d.ts","sourceRoot":"","sources":["../../../src/components/Navigation/Navigation.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAsC,SAAS,EAAE,MAAM,OAAO,CAAA;AAG5E,KAAK,iBAAiB,GAAG,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAA;AAGnD,KAAK,eAAe,GAAG,CAAC,GAAG,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;AAIlG,MAAM,WAAW,qBAAqB;IACpC,UAAU,CAAC,EAAE,SAAS,CAAA;IACtB,OAAO,CAAC,EAAE,eAAe,CAAA;IACzB,sBAAsB,CAAC,EAAE,iBAAiB,CAAA;IAC1C,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB;AAED,eAAO,MAAM,iBAAiB,kDAA8D,CAAA;AAY5F,sRAAsR;AACtR,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA2FhD,CAAA;AAED,MAAM,WAAW,eAAgB,SAAQ,KAAK,CAAC,cAAc,CAAC,gBAAgB,CAAC;IAC7E,uHAAuH;IACvH,UAAU,CAAC,EAAE,SAAS,CAAA;IACtB,uCAAuC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,oDAAoD;IACpD,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,+DAA+D;IAC/D,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,qEAAqE;IACrE,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,uDAAuD;IACvD,kBAAkB,CAAC,EAAE,iBAAiB,CAAA;CACvC"}
1
+ {"version":3,"file":"Navigation.component.d.ts","sourceRoot":"","sources":["../../../src/components/Navigation/Navigation.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAsC,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAG5F,KAAK,iBAAiB,GAAG,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAA;AAGnD,KAAK,eAAe,GAAG,CAAC,GAAG,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;AAIlG,MAAM,WAAW,qBAAqB;IACpC,UAAU,CAAC,EAAE,SAAS,CAAA;IACtB,OAAO,CAAC,EAAE,eAAe,CAAA;IACzB,sBAAsB,CAAC,EAAE,iBAAiB,CAAA;IAC1C,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB;AAED,eAAO,MAAM,iBAAiB,kDAA8D,CAAA;AAY5F;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,GAAI,wFAQxB,eAAe,KAAG,SAmFpB,CAAA;AAED,MAAM,WAAW,eAAgB,SAAQ,cAAc,CAAC,gBAAgB,CAAC;IACvE;;OAEG;IACH,UAAU,CAAC,EAAE,SAAS,CAAA;IAEtB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;IAEpB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,kBAAkB,CAAC,EAAE,iBAAiB,CAAA;CACvC"}
@@ -1,32 +1,71 @@
1
- import { default as React, ReactNode } from 'react';
1
+ import { ReactNode, HTMLAttributes, MouseEventHandler } from 'react';
2
2
  import { KnownIcons } from '../Icon/Icon.component';
3
- /** A generic Navigation Item component. For internal use only. Use to wrap more semantic, role-specific navigation item components such as `SidenavigationItem`, `TabNavigationItem` , `TopNavigationItem` around. */
4
- export declare const NavigationItem: React.FC<NavigationItemProps>;
5
- export interface NavigationItemProps extends React.HTMLAttributes<HTMLElement> {
6
- /** Whether the navigation item is the currently active item. If an acitve item is set on the parent, the one on the parent will win. */
3
+ /**
4
+ * `NavigationItem` acts as a singular navigational unit within a `Navigation`,
5
+ * offering styles for active and inactive states, and supporting disabled
6
+ * interactions internally.
7
+ * @see https://cloudoperators.github.io/juno/?path=/docs/internal-navigation-navigationitem--docs
8
+ * @see {@link NavigationItemProps}
9
+ */
10
+ export declare const NavigationItem: ({ active, activeItemStyles, ariaLabel, children, className, disabled, icon, inactiveItemStyles, label, href, onClick, value, wrapperClassName, ...props }: NavigationItemProps) => ReactNode;
11
+ export interface NavigationItemProps extends HTMLAttributes<HTMLElement> {
12
+ /**
13
+ * Whether the navigation item is the currently active item. If an active item is set on the parent, the one on the parent will win.
14
+ * @default false
15
+ */
7
16
  active?: boolean;
8
- /** Styles to apply to the active item*/
17
+ /**
18
+ * Styles to apply when the item is active.
19
+ * @default ""
20
+ */
9
21
  activeItemStyles?: string;
10
- /** The aria-label of the item */
22
+ /**
23
+ * The aria-label of the item for accessibility.
24
+ */
11
25
  ariaLabel?: string;
12
- /** Pass custom classNames to the item itself. */
26
+ /**
27
+ * Pass custom classNames to the item itself.
28
+ * @default ""
29
+ */
13
30
  className?: string;
14
- /** The child string of the item. Will override `label` when passed. */
31
+ /**
32
+ * The child nodes of the item, overriding `label` if specified.
33
+ */
15
34
  children?: ReactNode;
16
- /** Whether the item is disabled */
35
+ /**
36
+ * Determines if the item is disabled.
37
+ * @default false
38
+ */
17
39
  disabled?: boolean;
18
- /** An icon to render in the item */
40
+ /**
41
+ * An icon to render within the item for visual indication.
42
+ */
19
43
  icon?: KnownIcons;
44
+ /**
45
+ * Styles applied to inactive items, ensuring differentiation from active.
46
+ * @default ""
47
+ */
20
48
  inactiveItemStyles?: string;
21
- /** The label of the item. Will be rendered if no children are passed */
49
+ /**
50
+ * The label of the item, displayed if `children` are not provided.
51
+ */
22
52
  label?: string;
23
- /** The href of the item. The item will be rendered as an `<a>` element when passed, instead of a `<button>`. */
53
+ /**
54
+ * Presence transforms the item into an anchor, enabling navigation.
55
+ */
24
56
  href?: string;
25
- /** Handler to execute when the item is clicked */
26
- onClick?: React.MouseEventHandler<EventTarget>;
27
- /** The value of the item as a technical identifier. Use if needed to be different from the visble `label` or child string. Will only be rendered when no `label` prop and no children are passed. */
57
+ /**
58
+ * Handler executed during item clicks for operational logic.
59
+ */
60
+ onClick?: MouseEventHandler<EventTarget>;
61
+ /**
62
+ * Value for technical/item identification purposes, utilized when differing from `label` or child strings.
63
+ */
28
64
  value?: string;
29
- /** Pass a custom className to the parent `<li>` element of the item. */
65
+ /**
66
+ * Pass className to parent `<li>` element, styling the container.
67
+ * @default ""
68
+ */
30
69
  wrapperClassName?: string;
31
70
  }
32
71
  //# sourceMappingURL=NavigationItem.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NavigationItem.component.d.ts","sourceRoot":"","sources":["../../../src/components/NavigationItem/NavigationItem.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAmC,SAAS,EAAE,MAAM,OAAO,CAAA;AAGzE,OAAO,EAAQ,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAYzD,sNAAsN;AACtN,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAgIxD,CAAA;AAED,MAAM,WAAW,mBAAoB,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IAC5E,wIAAwI;IACxI,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,wCAAwC;IACxC,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,iDAAiD;IACjD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,uEAAuE;IACvE,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,mCAAmC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,oCAAoC;IACpC,IAAI,CAAC,EAAE,UAAU,CAAA;IAEjB,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,wEAAwE;IACxE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,iHAAiH;IACjH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,kDAAkD;IAClD,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAA;IAC9C,qMAAqM;IACrM,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,wEAAwE;IACxE,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B"}
1
+ {"version":3,"file":"NavigationItem.component.d.ts","sourceRoot":"","sources":["../../../src/components/NavigationItem/NavigationItem.component.tsx"],"names":[],"mappings":"AAKA,OAAc,EAAmC,SAAS,EAAc,cAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAGxH,OAAO,EAAQ,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAYzD;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,GAAI,2JAe5B,mBAAmB,KAAG,SAiHxB,CAAA;AAED,MAAM,WAAW,mBAAoB,SAAQ,cAAc,CAAC,WAAW,CAAC;IACtE;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;IAEzB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;IAEpB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,IAAI,CAAC,EAAE,UAAU,CAAA;IAEjB;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAE3B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,OAAO,CAAC,EAAE,iBAAiB,CAAC,WAAW,CAAC,CAAA;IAExC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B"}
@@ -1,8 +1,11 @@
1
- import { default as React } from 'react';
2
- export interface PageFooterProps extends React.HTMLAttributes<HTMLDivElement> {
3
- /** Additional custom styling class name for the footer container */
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
+ export interface PageFooterProps extends HTMLAttributes<HTMLDivElement> {
3
+ /**
4
+ * Additional custom styling class name for the footer container.
5
+ * @default ""
6
+ */
4
7
  className?: string;
5
- /** The content to render inside the footer, typically links or informational text
8
+ /** The content to render inside the footer, typically links or informational text.
6
9
  * Use a list structure e.g. `<ul>` with `<li>` for grouped content or links, as in examples.
7
10
  * Available CSS classes for styling:
8
11
  * - `.juno-pagefooter-title`: Style for a title element within a column.
@@ -10,15 +13,18 @@ export interface PageFooterProps extends React.HTMLAttributes<HTMLDivElement> {
10
13
  * - `.juno-pagefooter-items-inline`: Style for a single line list with pipe separators.
11
14
  * - `.juno-pagefooter-item`: Style for individual list items.
12
15
  */
13
- children?: React.ReactNode;
14
- /** Optional copyright notice to display within the footer */
16
+ children?: ReactNode;
17
+ /**
18
+ * Optional copyright notice to display within the footer.
19
+ * @default ""
20
+ */
15
21
  copyright?: string;
16
22
  }
17
23
  /**
18
- * PageFooter component renders a footer at the bottom of the page.
19
- * It consists of a flexible content area for children and an optional copyright section.
20
- * Usage:
21
- * The component can be used to add legal disclaimers, links, or other contextual information at the page's footer.
24
+ * `PageFooter` component renders a footer at the bottom of the page.
25
+ * It can include links, informational text, and an optional copyright notice.
26
+ * @see https://cloudoperators.github.io/juno/?path=/docs/layout-pagefooter--docs
27
+ * @see {@link PageFooterProps}
22
28
  */
23
- export declare const PageFooter: React.FC<PageFooterProps>;
29
+ export declare const PageFooter: ({ className, children, copyright, ...props }: PageFooterProps) => ReactNode;
24
30
  //# sourceMappingURL=PageFooter.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PageFooter.component.d.ts","sourceRoot":"","sources":["../../../src/components/PageFooter/PageFooter.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,mBAAmB,CAAA;AAa1B,MAAM,WAAW,eAAgB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC3E,oEAAoE;IACpE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,6DAA6D;IAC7D,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;GAKG;AACH,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAShD,CAAA"}
1
+ {"version":3,"file":"PageFooter.component.d.ts","sourceRoot":"","sources":["../../../src/components/PageFooter/PageFooter.component.tsx"],"names":[],"mappings":"AAKA,OAAc,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACxD,OAAO,mBAAmB,CAAA;AAa1B,MAAM,WAAW,eAAgB,SAAQ,cAAc,CAAC,cAAc,CAAC;IACrE;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;GAKG;AACH,eAAO,MAAM,UAAU,GAAI,8CAAwD,eAAe,KAAG,SASpG,CAAA"}
@@ -2,7 +2,7 @@ import { default as React } from 'react';
2
2
  import { PageFooterProps } from './index';
3
3
  declare const _default: {
4
4
  title: string;
5
- component: React.FC<PageFooterProps>;
5
+ component: ({ className, children, copyright, ...props }: PageFooterProps) => React.ReactNode;
6
6
  argTypes: {
7
7
  children: {
8
8
  control: boolean;
@@ -1,38 +1,43 @@
1
- import { default as React, ReactElement, ReactNode } from 'react';
1
+ import { HTMLAttributes, MouseEventHandler, ReactElement, ReactNode } from 'react';
2
2
  /**
3
- * The `PageHeader` component renders a header for an application with customisable `logo`, `title` and other options.
4
- * Ideally, the custom logo component should return an `<img />` or an inline `<svg>` element.
5
- * When using SVG, ensure the file is optimized to eliminate any superfluous elements or data that can contribute to increased file size and reduced performance. `Svgo` is a great tool to optimize `svg` files. Make sure the `viewBox` element is not removed when optimizing a file for usage a a header logo.
6
- * Pass as prop to `AppShell` so it gets slotted into the correct place in the layout. If building your layout manually without `AppShell` place as first child of AppBody.
3
+ * `PageHeader` component renders the top header of an application.
4
+ * It includes customizable `logo`, `title`, and other options.
5
+ * @see https://cloudoperators.github.io/juno/?path=/docs/layout-pageheader--docs
6
+ * @see {@link PageHeaderProps}
7
7
  */
8
- export declare const PageHeader: React.FC<PageHeaderProps>;
9
- export interface PageHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
8
+ export declare const PageHeader: ({ heading, applicationName, href, className, logo, children, onClick, ...props }: PageHeaderProps) => ReactNode;
9
+ export interface PageHeaderProps extends HTMLAttributes<HTMLDivElement> {
10
10
  /**
11
11
  * Name of the application.
12
+ * @default ""
12
13
  */
13
14
  applicationName?: string | ReactElement;
14
15
  /**
15
- * @deprecated - Replaced by `applicationName`. If `applicationName` is provided, it will take precedence.
16
+ * Deprecated - Replaced by `applicationName`. If `applicationName` is provided, it takes precedence.
17
+ * @default ""
16
18
  */
17
19
  heading?: string | ReactElement;
18
20
  /**
19
- * Link to open when applicationName or logo is clicked. If `onClick` is provided, it will take precedence.
21
+ * Link to open when applicationName or logo is clicked.
22
+ * @default ""
20
23
  */
21
24
  href?: string;
22
25
  /**
23
26
  * Custom class names.
27
+ * @default ""
24
28
  */
25
29
  className?: string;
26
30
  /**
27
31
  * Application logo.
32
+ * @default true
28
33
  */
29
34
  logo?: boolean | ReactElement;
30
35
  /**
31
- * Handler executed when `applicationName` or `logo` are clicked.
36
+ * Handler executed on click of `applicationName` or `logo`.
32
37
  */
33
- onClick?: React.MouseEventHandler<HTMLDivElement>;
38
+ onClick?: MouseEventHandler<HTMLDivElement>;
34
39
  /**
35
- * Children to render in the header such as user name, avatar, log-in/out button, etc.
40
+ * Children to render in header like user info, avatar, log-in/out button, etc.
36
41
  */
37
42
  children?: ReactNode;
38
43
  }
@@ -1 +1 @@
1
- {"version":3,"file":"PageHeader.component.d.ts","sourceRoot":"","sources":["../../../src/components/PageHeader/PageHeader.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AA0DtD;;;;;GAKG;AAEH,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA4ChD,CAAA;AAED,MAAM,WAAW,eAAgB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC3E;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,YAAY,CAAA;IACvC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,YAAY,CAAA;IAC/B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,YAAY,CAAA;IAC7B;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,cAAc,CAAC,CAAA;IACjD;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB"}
1
+ {"version":3,"file":"PageHeader.component.d.ts","sourceRoot":"","sources":["../../../src/components/PageHeader/PageHeader.component.tsx"],"names":[],"mappings":"AAKA,OAAc,EAAE,cAAc,EAAkB,iBAAiB,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AA0DzG;;;;;GAKG;AAEH,eAAO,MAAM,UAAU,GAAI,kFASxB,eAAe,KAAG,SAmCpB,CAAA;AAED,MAAM,WAAW,eAAgB,SAAQ,cAAc,CAAC,cAAc,CAAC;IACrE;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,YAAY,CAAA;IACvC;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,YAAY,CAAA;IAC/B;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,YAAY,CAAA;IAC7B;;OAEG;IACH,OAAO,CAAC,EAAE,iBAAiB,CAAC,cAAc,CAAC,CAAA;IAC3C;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB"}
@@ -1,5 +1,5 @@
1
- import { default as React } from 'react';
2
- export type PaginationProps = Omit<React.HTMLAttributes<HTMLDivElement>, "onBlur"> & {
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
+ export type PaginationProps = Omit<HTMLAttributes<HTMLDivElement>, "onBlur"> & {
3
3
  /**
4
4
  * The variant determines the style and user interaction method of the Pagination component:
5
5
  * - "default": Renders previous and next buttons only.
@@ -67,6 +67,8 @@ export type PaginationProps = Omit<React.HTMLAttributes<HTMLDivElement>, "onBlur
67
67
  };
68
68
  /**
69
69
  * The Pagination component provides navigation controls for paginated content.
70
+ * @see https://cloudoperators.github.io/juno/?path=/docs/components-pagination--docs
71
+ * @see {@link PaginationProps}
70
72
  */
71
- export declare const Pagination: React.FC<PaginationProps>;
73
+ export declare const Pagination: ({ variant, currentPage, totalPages, pages, disabled, isFirstPage, isLastPage, onPressPrevious, onPressNext, onSelectChange, onInputChange, onKeyPress, onBlur, progress, className, ...props }: PaginationProps) => ReactNode;
72
74
  //# sourceMappingURL=Pagination.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Pagination.component.d.ts","sourceRoot":"","sources":["../../../src/components/Pagination/Pagination.component.tsx"],"names":[],"mappings":"AAOA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAkBlD,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,QAAQ,CAAC,GAAG;IACnF;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAA;IACnD;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;OAEG;IACH,eAAe,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IAC5C;;OAEG;IACH,WAAW,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACxC;;OAEG;IACH,cAAc,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IAC3C;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,UAAU,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IAC7C;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,kBAAkB,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IAClD;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,kBAAkB,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IAC9C;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAuMhD,CAAA"}
1
+ {"version":3,"file":"Pagination.component.d.ts","sourceRoot":"","sources":["../../../src/components/Pagination/Pagination.component.tsx"],"names":[],"mappings":"AAOA,OAAc,EAAe,cAAc,EAAE,SAAS,EAAsC,MAAM,OAAO,CAAA;AAkBzG,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,QAAQ,CAAC,GAAG;IAC7E;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAA;IACnD;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;OAEG;IACH,eAAe,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IAC5C;;OAEG;IACH,WAAW,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACxC;;OAEG;IACH,cAAc,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IAC3C;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,UAAU,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IAC7C;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,kBAAkB,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IAClD;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,kBAAkB,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IAC9C;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,UAAU,GAAI,gMAiBxB,eAAe,KAAG,SAsLpB,CAAA"}
@@ -1,4 +1,4 @@
1
- import { FC, HTMLAttributes, ReactNode, MouseEventHandler } from 'react';
1
+ import { HTMLAttributes, ReactNode, MouseEventHandler } from 'react';
2
2
  type PanelSize = "default" | "large";
3
3
  export interface PanelProps extends HTMLAttributes<HTMLDivElement> {
4
4
  /**
@@ -33,7 +33,9 @@ export interface PanelProps extends HTMLAttributes<HTMLDivElement> {
33
33
  /**
34
34
  * A Panel component that slides in from the right side of the screen.
35
35
  * It can be used to display additional content/controls for the content area.
36
+ * @see https://cloudoperators.github.io/juno/?path=/docs/layout-panel-panel--docs
37
+ * @see {@link PanelProps}
36
38
  */
37
- export declare const Panel: FC<PanelProps>;
39
+ export declare const Panel: ({ heading, size, opened, closeable, onClose, className, children, ...props }: PanelProps) => ReactNode;
38
40
  export {};
39
41
  //# sourceMappingURL=Panel.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Panel.component.d.ts","sourceRoot":"","sources":["../../../src/components/Panel/Panel.component.tsx"],"names":[],"mappings":"AAKA,OAAc,EAA+B,EAAE,EAAE,cAAc,EAAE,SAAS,EAAc,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAsDxH,KAAK,SAAS,GAAG,SAAS,GAAG,OAAO,CAAA;AAEpC,MAAM,WAAW,UAAW,SAAQ,cAAc,CAAC,cAAc,CAAC;IAChE;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;OAEG;IAEH,OAAO,CAAC,EAAE,iBAAiB,CAAC,WAAW,CAAC,CAAA;IACxC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB;AAED;;;GAGG;AACH,eAAO,MAAM,KAAK,EAAE,EAAE,CAAC,UAAU,CA8DhC,CAAA"}
1
+ {"version":3,"file":"Panel.component.d.ts","sourceRoot":"","sources":["../../../src/components/Panel/Panel.component.tsx"],"names":[],"mappings":"AAKA,OAAc,EAA+B,cAAc,EAAE,SAAS,EAAc,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAsDpH,KAAK,SAAS,GAAG,SAAS,GAAG,OAAO,CAAA;AAEpC,MAAM,WAAW,UAAW,SAAQ,cAAc,CAAC,cAAc,CAAC;IAChE;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;OAEG;IAEH,OAAO,CAAC,EAAE,iBAAiB,CAAC,WAAW,CAAC,CAAA;IACxC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB;AAED;;;;;GAKG;AACH,eAAO,MAAM,KAAK,GAAI,8EASnB,UAAU,KAAG,SAqDf,CAAA"}
@@ -1,4 +1,4 @@
1
- import { default as React, ReactNode, ReactElement, HTMLAttributes } from 'react';
1
+ import { ReactNode, ReactElement, HTMLAttributes } from 'react';
2
2
  export interface PanelBodyProps extends HTMLAttributes<HTMLDivElement> {
3
3
  /**
4
4
  * Additional CSS classes to apply to the panel body for custom styling.
@@ -18,6 +18,8 @@ export interface PanelBodyProps extends HTMLAttributes<HTMLDivElement> {
18
18
  /**
19
19
  * A PanelBody component is used to encapsulate the main content of a panel.
20
20
  * The primary content for the panel, such as forms or information, is rendered here.
21
+ * @see https://cloudoperators.github.io/juno/?path=/docs/layout-panel-panelbody--docs
22
+ * @see {@link PanelBodyProps}
21
23
  */
22
- export declare const PanelBody: React.FC<PanelBodyProps>;
24
+ export declare const PanelBody: ({ className, footer, children, ...props }: PanelBodyProps) => ReactNode;
23
25
  //# sourceMappingURL=PanelBody.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PanelBody.component.d.ts","sourceRoot":"","sources":["../../../src/components/PanelBody/PanelBody.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAOtE,MAAM,WAAW,cAAe,SAAQ,cAAc,CAAC,cAAc,CAAC;IACpE;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;IAEpB;;;OAGG;IACH,MAAM,CAAC,EAAE,YAAY,CAAA;CACtB;AAED;;;GAGG;AACH,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAO9C,CAAA"}
1
+ {"version":3,"file":"PanelBody.component.d.ts","sourceRoot":"","sources":["../../../src/components/PanelBody/PanelBody.component.tsx"],"names":[],"mappings":"AAKA,OAAc,EAAE,SAAS,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAOtE,MAAM,WAAW,cAAe,SAAQ,cAAc,CAAC,cAAc,CAAC;IACpE;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;IAEpB;;;OAGG;IACH,MAAM,CAAC,EAAE,YAAY,CAAA;CACtB;AAED;;;;;GAKG;AACH,eAAO,MAAM,SAAS,GAAI,2CAAgD,cAAc,KAAG,SAO1F,CAAA"}
@@ -1,4 +1,4 @@
1
- import { default as React, ReactNode, HTMLAttributes } from 'react';
1
+ import { ReactNode, HTMLAttributes } from 'react';
2
2
  export interface PanelFooterProps extends HTMLAttributes<HTMLDivElement> {
3
3
  /**
4
4
  * Additional CSS classes to apply to the panel footer for custom styling.
@@ -14,6 +14,8 @@ export interface PanelFooterProps extends HTMLAttributes<HTMLDivElement> {
14
14
  * The PanelFooter component renders the footer section of a panel.
15
15
  * Typically used to contain footer elements like buttons, which can be added to the PanelBody component via its `footer` property.
16
16
  * Buttons placed inside will be automatically aligned to the right.
17
+ * @see https://cloudoperators.github.io/juno/?path=/docs/layout-panel-panelfooter--docs
18
+ * @see {@link PanelFooterProps}
17
19
  */
18
- export declare const PanelFooter: React.FC<PanelFooterProps>;
20
+ export declare const PanelFooter: ({ className, children, ...props }: PanelFooterProps) => ReactNode;
19
21
  //# sourceMappingURL=PanelFooter.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PanelFooter.component.d.ts","sourceRoot":"","sources":["../../../src/components/PanelFooter/PanelFooter.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAcxD,MAAM,WAAW,gBAAiB,SAAQ,cAAc,CAAC,cAAc,CAAC;IACtE;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB;AAED;;;;GAIG;AACH,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAMlD,CAAA"}
1
+ {"version":3,"file":"PanelFooter.component.d.ts","sourceRoot":"","sources":["../../../src/components/PanelFooter/PanelFooter.component.tsx"],"names":[],"mappings":"AAKA,OAAc,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAcxD,MAAM,WAAW,gBAAiB,SAAQ,cAAc,CAAC,cAAc,CAAC;IACtE;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,GAAI,mCAAwC,gBAAgB,KAAG,SAMtF,CAAA"}
@@ -1,10 +1,12 @@
1
- import { default as React, FC } from 'react';
2
- type EventHandler = (event: React.MouseEvent<HTMLElement>, id: string) => void;
1
+ import { HTMLAttributes, ReactNode, MouseEvent } from 'react';
2
+ type EventHandler = (event: MouseEvent<HTMLElement>, id: string) => void;
3
3
  /**
4
- A Pill to represent a value, or key and value. Can e.g. be used to represent selected filter values in a filter component. Can optionally be closed. On close the uid, if provided, or the pillKey is returned in the callback.
4
+ * A Pill to represent a value, or key and value. Can e.g. be used to represent selected filter values in a filter component. Can optionally be closed. On close the uid, if provided, or the pillKey is returned in the callback.
5
+ * @see https://cloudoperators.github.io/juno/?path=/docs/components-pill--docs
6
+ * @see {@link PillProps}
5
7
  */
6
- export declare const Pill: FC<PillProps>;
7
- export interface PillProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onClick"> {
8
+ export declare const Pill: ({ uid, pillKey, pillKeyLabel, pillValue, pillValueLabel, closeable, onClick, onClose, className, ...props }: PillProps) => ReactNode;
9
+ export interface PillProps extends Omit<HTMLAttributes<HTMLDivElement>, "onClick"> {
8
10
  /** The unique identifier of the pill. Returned by the onClose callback */
9
11
  uid?: string;
10
12
  /** The key of the filter the pill represents. Returned by the onClose callback if uid undefined. Optional. */
@@ -1 +1 @@
1
- {"version":3,"file":"Pill.component.d.ts","sourceRoot":"","sources":["../../../src/components/Pill/Pill.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAIjC,KAAK,YAAY,GAAG,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;AAyC9E;;GAEG;AACH,eAAO,MAAM,IAAI,EAAE,EAAE,CAAC,SAAS,C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Ac,CAAC,EAAE,MAAM,CAAA;IACvB,4BAA4B;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,2CAA2C;IAC3C,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,yIAAyI;IACzI,OAAO,CAAC,EAAE,YAAY,CAAA;IACtB,2KAA2K;IAC3K,OAAO,CAAC,EAAE,YAAY,CAAA;CACvB"}
@@ -1,16 +1,11 @@
1
- import { default as React, ReactNode } from 'react';
2
- import { Menu as HeadlessMenu, MenuButton, MenuItem } from '@headlessui/react';
1
+ import { default as React, ReactNode, HTMLAttributes, ElementType, ComponentPropsWithRef, Key } from 'react';
3
2
  import { KnownIcons } from '../Icon/Icon.component';
4
3
  export interface PopupMenuContextType {
5
4
  close: () => void;
6
5
  isOpen: boolean;
7
6
  menuSize: "normal" | "small";
8
7
  }
9
- export interface PopupMenuProps extends React.ComponentProps<typeof HeadlessMenu> {
10
- /** The children to render. If no PopupMenu.Toggle child is passed, PopupMenu will render a default toggle. Pass a PopupMenu.Menu child in order to have a working component. */
11
- children?: ReactNode;
12
- /** Add a custom className to the wrapping element. NOTE: The Menu will be rendered into a Portal outside the wrapping parent element, so the Menu and its children will be outside the scope of the parent CSS selector.*/
13
- className?: string;
8
+ export interface PopupMenuProps extends HTMLAttributes<HTMLElement> {
14
9
  /** Whether the PopupMenu is disabled. */
15
10
  disabled?: boolean;
16
11
  /** The icon to render when using the default toggle. Will be ignored if a PopupMenu.Toggle child is passed. */
@@ -22,18 +17,27 @@ export interface PopupMenuProps extends React.ComponentProps<typeof HeadlessMenu
22
17
  /** Handler to run when the Menu opens. */
23
18
  onOpen?: () => void;
24
19
  }
25
- export interface PopupMenuToggleProps extends React.ComponentProps<typeof MenuButton> {
26
- className?: string;
20
+ export interface PopupMenuToggleProps extends HTMLAttributes<HTMLElement> {
21
+ /** Element type to render as */
22
+ as?: ElementType;
23
+ /** Whether the toggle is disabled */
24
+ disabled?: boolean;
27
25
  }
28
- type HeadlessMenuItemsProps = React.ComponentPropsWithRef<React.ElementType>;
26
+ type HeadlessMenuItemsProps = ComponentPropsWithRef<ElementType>;
29
27
  export interface PopupMenuOptionsProps extends HeadlessMenuItemsProps {
30
- as?: React.ElementType;
28
+ as?: ElementType;
31
29
  className?: string;
32
30
  children?: ReactNode;
33
- key?: React.Key;
31
+ key?: Key;
32
+ }
33
+ export interface PopupMenuItemBag {
34
+ active: boolean;
35
+ disabled: boolean;
36
+ focus: boolean;
34
37
  }
35
- export interface PopupMenuItemProps extends React.ComponentProps<typeof MenuItem> {
36
- as?: React.ElementType;
38
+ export interface PopupMenuItemProps extends Omit<HTMLAttributes<HTMLElement>, "children"> {
39
+ as?: ElementType;
40
+ children?: ReactNode | ((_itemBag: PopupMenuItemBag) => ReactNode);
37
41
  className?: string;
38
42
  disabled?: boolean;
39
43
  href?: string;
@@ -57,13 +61,17 @@ export interface PopupMenuSectionSeparatorProps {
57
61
  declare const PopupMenuContext: React.Context<PopupMenuContextType | null>;
58
62
  export declare const usePopupMenuContext: () => PopupMenuContextType;
59
63
  export { PopupMenuContext };
60
- /** A Popup Menu component that wraps Headless UI Menu. The Menu will be rendered into a Juno Portal, so using Juno's PortalProvider (which is already included when using Juno's AppShell) is mandatory. */
61
- declare const PopupMenu: React.FC<PopupMenuProps>;
62
- export declare const PopupMenuToggle: React.FC<PopupMenuToggleProps>;
63
- export declare const PopupMenuOptions: React.FC<PopupMenuOptionsProps>;
64
- export declare const PopupMenuItem: React.FC<PopupMenuItemProps>;
65
- export declare const PopupMenuSection: React.FC<PopupMenuSectionProps>;
66
- export declare const PopupMenuSectionHeading: React.FC<PopupMenuSectionHeadingProps>;
67
- export declare const PopupMenuSectionSeparator: React.FC<PopupMenuSectionSeparatorProps>;
64
+ /**
65
+ * A Popup Menu component that wraps Headless UI Menu. The Menu will be rendered into a Juno Portal, so using Juno's PortalProvider (which is already included when using Juno's AppShell) is mandatory.
66
+ * @see https://cloudoperators.github.io/juno/?path=/docs/wip-popupmenu--docs
67
+ * @see {@link PopupMenuProps}
68
+ */
69
+ declare const PopupMenu: ({ children, className, disabled, icon, menuSize, onClose, onOpen, ...props }: PopupMenuProps) => ReactNode;
70
+ export declare const PopupMenuToggle: ({ as, disabled, children, className, ...props }: PopupMenuToggleProps) => ReactNode;
71
+ export declare const PopupMenuOptions: ({ children, className, ...props }: PopupMenuOptionsProps) => ReactNode;
72
+ export declare const PopupMenuItem: ({ as, children, className, disabled, href, icon, label, rel, target, ...props }: PopupMenuItemProps) => ReactNode;
73
+ export declare const PopupMenuSection: ({ children, className, ...props }: PopupMenuSectionProps) => ReactNode;
74
+ export declare const PopupMenuSectionHeading: ({ children, label, className, ...props }: PopupMenuSectionHeadingProps) => ReactNode;
75
+ export declare const PopupMenuSectionSeparator: ({ className, ...props }: PopupMenuSectionSeparatorProps) => ReactNode;
68
76
  export { PopupMenu };
69
77
  //# sourceMappingURL=PopupMenu.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PopupMenu.component.d.ts","sourceRoot":"","sources":["../../../src/components/PopupMenu/PopupMenu.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAA0D,SAAS,EAAE,MAAM,OAAO,CAAA;AAChG,OAAO,EAAE,IAAI,IAAI,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAa,MAAM,mBAAmB,CAAA;AAEzF,OAAO,EAAQ,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAyFzD,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,IAAI,CAAA;IACjB,MAAM,EAAE,OAAO,CAAA;IACf,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAA;CAC7B;AAED,MAAM,WAAW,cAAe,SAAQ,KAAK,CAAC,cAAc,CAAC,OAAO,YAAY,CAAC;IAC/E,gLAAgL;IAChL,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,2NAA2N;IAC3N,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,yCAAyC;IACzC,QAAQ,CAAC,EA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