@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 +1 @@
1
- {"version":3,"file":"Label.component.d.ts","sourceRoot":"","sources":["../../../src/components/Label/Label.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AAsCzB;;GAEG;AAEH,eAAO,MAAM,KAAK,qFA0CjB,CAAA;AAID,MAAM,WAAW,UAAW,SAAQ,KAAK,CAAC,cAAc,CAAC,gBAAgB,CAAC;IACxE,mEAAmE;IACnE,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,4DAA4D;IAC5D,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,eAAe;IACf,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,uBAAuB;IACvB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,iCAAiC;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,oCAAoC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,yGAAyG;IACzG,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB"}
1
+ {"version":3,"file":"Label.component.d.ts","sourceRoot":"","sources":["../../../src/components/Label/Label.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAc,cAAc,EAAE,MAAM,OAAO,CAAA;AAsCzD;;;;;GAKG;AACH,eAAO,MAAM,KAAK,qFA0CjB,CAAA;AAID,MAAM,WAAW,UAAW,SAAQ,cAAc,CAAC,gBAAgB,CAAC;IAClE;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB"}
@@ -1,9 +1,9 @@
1
- import { default as React } from 'react';
2
- export interface LoadingIndicatorProps extends React.SVGAttributes<SVGElement> {
1
+ import { ReactNode, SVGAttributes } from 'react';
2
+ export interface LoadingIndicatorProps extends SVGAttributes<SVGElement> {
3
3
  /**
4
- * The size of the LoadingIndicator in pixels.
5
- * Must be a positive number value.
6
- * If a string, must be a valid number
4
+ * The size of the LoadingIndicator in pixels. Must be a positive number value.
5
+ * If a string, must be a valid number.
6
+ * @default 96
7
7
  */
8
8
  size?: string | number;
9
9
  /**
@@ -15,12 +15,16 @@ export interface LoadingIndicatorProps extends React.SVGAttributes<SVGElement> {
15
15
  color?: string;
16
16
  /**
17
17
  * Additional CSS classes for custom styling.
18
+ * @default ""
18
19
  */
19
20
  className?: string;
20
21
  }
21
22
  /**
22
- * Use this loading indicator to indicate that a full page, a significant portion of a page, or a panel is loading.
23
- * For more generic use cases, including individual components and micro-interactions, use the Spinner component instead.
23
+ * The `LoadingIndicator` visually represents ongoing loading processes for pages,
24
+ * large sections, or panels, offering custom size and color adjustments.
25
+ * It's suitable for prominent loading displays rather than granular elements.
26
+ * @see https://cloudoperators.github.io/juno/?path=/docs/components-loadingindicator--docs
27
+ * @see {@link LoadingIndicatorProps}
24
28
  */
25
- export declare const LoadingIndicator: React.FC<LoadingIndicatorProps>;
29
+ export declare const LoadingIndicator: ({ size, color, className, ...props }: LoadingIndicatorProps) => ReactNode;
26
30
  //# sourceMappingURL=LoadingIndicator.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LoadingIndicator.component.d.ts","sourceRoot":"","sources":["../../../src/components/LoadingIndicator/LoadingIndicator.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,MAAM,WAAW,qBAAsB,SAAQ,KAAK,CAAC,aAAa,CAAC,UAAU,CAAC;IAC5E;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAID;;;GAGG;AAEH,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAqB5D,CAAA"}
1
+ {"version":3,"file":"LoadingIndicator.component.d.ts","sourceRoot":"","sources":["../../../src/components/LoadingIndicator/LoadingIndicator.component.tsx"],"names":[],"mappings":"AAKA,OAAc,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAGvD,MAAM,WAAW,qBAAsB,SAAQ,aAAa,CAAC,UAAU,CAAC;IACtE;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAEtB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAID;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,GAAI,sCAK9B,qBAAqB,KAAG,SAgB1B,CAAA"}
@@ -1,12 +1,20 @@
1
- import { default as React } from 'react';
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
2
  /**
3
- * Only needed if you want to build your app's scaffold manually. In most cases it is better to use the AppShell component instead.
4
- * The main container for app content.
3
+ * The `MainContainer` is the core container for application content, ideal for manual scaffold setups.
4
+ * In most instances, `AppShell` offers a comprehensive layout alternative.
5
+ * @see https://cloudoperators.github.io/juno/?path=/docs/internal-maincontainer--docs
6
+ * @see {@link MainContainerProps}
5
7
  */
6
- export declare const MainContainer: React.FC<MainContainerProps>;
7
- export interface MainContainerProps extends React.HTMLAttributes<HTMLElement> {
8
- /** Add custom class name */
8
+ export declare const MainContainer: ({ className, children, ...props }: MainContainerProps) => ReactNode;
9
+ export interface MainContainerProps extends HTMLAttributes<HTMLElement> {
10
+ /**
11
+ * Custom CSS class names for styling the main container.
12
+ * @default ""
13
+ */
9
14
  className?: string;
10
- children?: React.ReactNode;
15
+ /**
16
+ * Components or content to render within the main container.
17
+ */
18
+ children?: ReactNode;
11
19
  }
12
20
  //# sourceMappingURL=MainContainer.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MainContainer.component.d.ts","sourceRoot":"","sources":["../../../src/components/MainContainer/MainContainer.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AAQzB;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAMtD,CAAA;AAED,MAAM,WAAW,kBAAmB,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IAC3E,4BAA4B;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B"}
1
+ {"version":3,"file":"MainContainer.component.d.ts","sourceRoot":"","sources":["../../../src/components/MainContainer/MainContainer.component.tsx"],"names":[],"mappings":"AAKA,OAAc,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAQxD;;;;;GAKG;AACH,eAAO,MAAM,aAAa,GAAI,mCAAwC,kBAAkB,KAAG,SAM1F,CAAA;AAED,MAAM,WAAW,kBAAmB,SAAQ,cAAc,CAAC,WAAW,CAAC;IACrE;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB"}
@@ -1,12 +1,23 @@
1
- import { default as React } from 'react';
2
- /** An inner wrapper to constrain page / view content width. */
3
- export declare const MainContainerInner: React.FC<MainContainerInnerProps>;
4
- export interface MainContainerInnerProps extends React.HTMLAttributes<HTMLDivElement> {
5
- /** The children to render */
6
- children?: React.ReactNode;
7
- /** Whether the page/view content will stretch over the full width of the viewport or not. Default is `false`. */
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
+ /**
3
+ * `MainContainerInner` offers a structured inner wrapper for page content, enabling width constraints
4
+ * or full-width rendering as needed.
5
+ */
6
+ export declare const MainContainerInner: ({ children, fullWidth, className, ...props }: MainContainerInnerProps) => ReactNode;
7
+ export interface MainContainerInnerProps extends HTMLAttributes<HTMLDivElement> {
8
+ /**
9
+ * The children to render within the container.
10
+ */
11
+ children?: ReactNode;
12
+ /**
13
+ * Determines if content stretches to full viewport width.
14
+ * @default false
15
+ */
8
16
  fullWidth?: boolean;
9
- /** Add a custom class */
17
+ /**
18
+ * Custom CSS class names for stylized rendering.
19
+ * @default ""
20
+ */
10
21
  className?: string;
11
22
  }
12
23
  //# sourceMappingURL=MainContainerInner.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MainContainerInner.component.d.ts","sourceRoot":"","sources":["../../../src/components/MainContainerInner/MainContainerInner.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AAYzB,+DAA+D;AAC/D,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAkBhE,CAAA;AAED,MAAM,WAAW,uBAAwB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACnF,6BAA6B;IAC7B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,iHAAiH;IACjH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,yBAAyB;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB"}
1
+ {"version":3,"file":"MainContainerInner.component.d.ts","sourceRoot":"","sources":["../../../src/components/MainContainerInner/MainContainerInner.component.tsx"],"names":[],"mappings":"AAKA,OAAc,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAYxD;;;GAGG;AACH,eAAO,MAAM,kBAAkB,GAAI,8CAKhC,uBAAuB,KAAG,SAa5B,CAAA;AAED,MAAM,WAAW,uBAAwB,SAAQ,cAAc,CAAC,cAAc,CAAC;IAC7E;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;IAEpB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IAEnB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB"}
@@ -1,18 +1,32 @@
1
- import { default as React } from 'react';
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
2
  /**
3
- Main Tabs are used at the top of the content area when using the tabs to switch the complete content area content. If you only want to have tabs for parts of the content use 'Tabs' instead and place them in the part of the content where the tabbed content should live. You will probably want to use a 'Container' inside the TabPanels to get nice padding.
3
+ * `MainTabs` represents primary tab navigation at the content area's top, for complete content switching.
4
+ * Ideal for major interface tabbing; use `Tabs` for partial content areas.
5
+ * @see https://cloudoperators.github.io/juno/?path=/docs/layout-tabs-maintabs--docs
6
+ * @see {@link MainTabsProps}
4
7
  */
5
- export declare const MainTabs: React.FC<MainTabsProps>;
6
- export interface MainTabsProps extends Omit<React.HTMLAttributes<HTMLElement>, "onSelect"> {
7
- /** All the child elements of MainTabs: Tab(s) inside a TabList and TabPanel(s) */
8
- children?: React.ReactNode;
9
- /** The index of the Tab to be selected by default in "Uncontrolled Mode" (default) where Tabs handle their state internally. Do not use in "Controlled Mode".*/
8
+ export declare const MainTabs: ({ children, defaultIndex, selectedIndex, onSelect, className, ...props }: MainTabsProps) => ReactNode;
9
+ export interface MainTabsProps extends Omit<HTMLAttributes<HTMLElement>, "onSelect"> {
10
+ /**
11
+ * All the child elements of MainTabs: Tab(s) inside a TabList and TabPanel(s).
12
+ */
13
+ children?: ReactNode;
14
+ /**
15
+ * The index of the Tab to be selected by default in "Uncontrolled Mode" (default) where Tabs handle their state internally. Do not use in "Controlled Mode".
16
+ */
10
17
  defaultIndex?: number;
11
- /** The index of the Tab to be selected by default. This enables "Controlled Mode" where the developer takes over control of the Tabs state and behaviour. Requires onSelect to be set.*/
18
+ /**
19
+ * The index of the Tab to be selected by default. This enables "Controlled Mode" where the developer takes over control of the Tabs state and behaviour. Requires onSelect to be set.
20
+ */
12
21
  selectedIndex?: number | null;
13
- /** Handler required in "Controlled Mode" */
14
- onSelect?: (value: number) => void;
15
- /** Add a custom className to the whole Tabs construct */
22
+ /**
23
+ * Handler required in "Controlled Mode".
24
+ */
25
+ onSelect?: (_value: number) => void;
26
+ /**
27
+ * Add a custom className to the whole Tabs construct.
28
+ * @default ""
29
+ */
16
30
  className?: string;
17
31
  }
18
32
  //# sourceMappingURL=MainTabs.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MainTabs.component.d.ts","sourceRoot":"","sources":["../../../src/components/MainTabs/MainTabs.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAoB5C,CAAA;AAED,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,UAAU,CAAC;IACxF,kFAAkF;IAClF,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,gKAAgK;IAChK,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,yLAAyL;IACzL,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,4CAA4C;IAE5C,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,yDAAyD;IACzD,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB"}
1
+ {"version":3,"file":"MainTabs.component.d.ts","sourceRoot":"","sources":["../../../src/components/MainTabs/MainTabs.component.tsx"],"names":[],"mappings":"AAKA,OAAc,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGxD;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,GAAI,0EAOtB,aAAa,KAAG,SAalB,CAAA;AAED,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,UAAU,CAAC;IAClF;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;IAEpB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IAErB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAE7B;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;IAEnC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB"}
@@ -1,31 +1,35 @@
1
- import { default as React } from 'react';
1
+ import { ReactNode, HTMLAttributes } from 'react';
2
2
  export type MessageVariantType = "info" | "warning" | "danger" | "error" | "success";
3
- export interface MessageProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ export interface MessageProps extends HTMLAttributes<HTMLDivElement> {
4
4
  /**
5
- * Pass an optional title.
5
+ * Optional title for the message.
6
6
  */
7
7
  title?: string;
8
8
  /**
9
- * Pass an optional string of text to be rendered as content.
9
+ * Optional string of text to be rendered as content.
10
10
  * Alternatively, content can be passed as children (see below).
11
11
  * If children are provided, they will take precedence.
12
12
  */
13
13
  text?: string;
14
14
  /**
15
15
  * Specify an optional semantic variant that determines the appearance of a message.
16
+ * @default "info"
16
17
  */
17
18
  variant?: MessageVariantType;
18
19
  /**
19
20
  * Optional. If true, the message will have a 'close' button to dismiss it.
21
+ * @default false
20
22
  */
21
23
  dismissible?: boolean;
22
24
  /**
23
25
  * Optional. If true, the message will be automatically dismissed after the default or passed autoDismissTimeout.
26
+ * @default false
24
27
  */
25
28
  autoDismiss?: boolean;
26
29
  /**
27
30
  * Optional. The timeout in milliseconds after which the message auto-dismisses.
28
31
  * By default 10000 (10s).
32
+ * @default 10000
29
33
  */
30
34
  autoDismissTimeout?: number;
31
35
  /**
@@ -34,17 +38,20 @@ export interface MessageProps extends React.HTMLAttributes<HTMLDivElement> {
34
38
  onDismiss?: () => void;
35
39
  /**
36
40
  * Pass an optional CSS class to apply to the message.
41
+ * @default ""
37
42
  */
38
43
  className?: string;
39
44
  /**
40
45
  * Pass optional React nodes or a collection of React nodes to be rendered as content.
41
46
  * Takes precedence over the text property.
42
47
  */
43
- children?: React.ReactNode;
48
+ children?: ReactNode;
44
49
  }
45
50
  /**
46
- * A Message holds generally important information to help understand the contents, purpose, or state of a whole page or view.
47
- * Use sparingly, there should never be two or more subsequent instances of Message as direct siblings/neighbors on an individual view.
51
+ * The `Message` component displays important information or alerts concerning the content,
52
+ * page state, or the view's purpose, with support for dismissible and auto-dismiss features.
53
+ * @see https://cloudoperators.github.io/juno/?path=/docs/components-message--docs
54
+ * @see {@link MessageProps}
48
55
  */
49
- export declare const Message: React.FC<MessageProps>;
56
+ export declare const Message: ({ title, variant, dismissible, autoDismiss, autoDismissTimeout, onDismiss, className, ...props }: MessageProps) => ReactNode;
50
57
  //# sourceMappingURL=Message.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Message.component.d.ts","sourceRoot":"","sources":["../../../src/components/Message/Message.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAsC,MAAM,OAAO,CAAA;AA0D1D,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAA;AAEpF,MAAM,WAAW,YAAa,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACxE;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAA;IAE5B;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IAErB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IAErB;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAE3B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IAEtB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AA6FD;;;GAGG;AACH,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAyD1C,CAAA"}
1
+ {"version":3,"file":"Message.component.d.ts","sourceRoot":"","sources":["../../../src/components/Message/Message.component.tsx"],"names":[],"mappings":"AAKA,OAAc,EAAiD,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AA0DvG,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAA;AAEpF,MAAM,WAAW,YAAa,SAAQ,cAAc,CAAC,cAAc,CAAC;IAClE;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;;OAGG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAA;IAE5B;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IAErB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IAErB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAE3B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IAEtB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB;AA6FD;;;;;GAKG;AACH,eAAO,MAAM,OAAO,GAAI,kGASrB,YAAY,KAAG,SAgDjB,CAAA"}
@@ -1,65 +1,114 @@
1
- import { default as React, ReactNode } from 'react';
1
+ import { ReactNode, MouseEvent, HTMLProps, ReactElement, MouseEventHandler } from 'react';
2
2
  import { KnownIcons } from '../Icon/Icon.component';
3
3
  /**
4
- A generic Modal component.
5
-
6
- The Modal component can automatically create cancelling and confirming buttons with the desired labels and handlers.
7
-
8
- For more complex use cases, more buttons, etc., an instance of `<ModalFooter>` with all custom content as children can be passed as prop `modalFooter` and will be rendered.
9
-
10
- The Modal uses a boolean 'open' prop to determine whether it is open or not. Alternatively, the open state can be handled outside the component, e.g. in a global state. In this case the 'open' prop needs to be passed as true always, otherwise the Modal component will not render.
11
-
12
- By default, the modal will close (i.e. set its `open` state to false) once the user cancels the Modal. When confirming, you will have to either set the `open` to false to close the modal, or use whatever global state mechanism you have to handle modals.
13
-
14
- To make the modal less intrusive and effectively un-modal it, pass `closeOnBackdropClick`. This will close the modal when the user clicks the modal backdrop.
15
- */
16
- export declare const Modal: React.FC<ModalProps>;
4
+ * The `Modal` component provides a flexible dialog window for user interactions,
5
+ * supporting titles, dismissal controls, sizing options, and comprehensive footer configurations.
6
+ * @see https://cloudoperators.github.io/juno/?path=/docs/components-modal-modal--docs
7
+ * @see {@link ModalProps}
8
+ */
9
+ export declare const Modal: ({ title, heading, ariaLabel, initialFocus, open, closeable, closeOnEsc, closeOnBackdropClick, disableCloseButton, size, unpad, className, children, modalFooter, confirmButtonLabel, cancelButtonLabel, confirmButtonIcon, cancelButtonIcon, disableConfirmButton, disableCancelButton, onConfirm, onCancel, ...props }: ModalProps) => ReactNode;
17
10
  type ModalSize = "small" | "large" | "xl" | "2xl";
18
- export interface ModalProps extends Omit<React.HTMLProps<HTMLDivElement>, "size" | "title"> {
19
- /** The title of the modal. This will be rendering as the heading of the modal, and the modal's `arial-labelledby` attribute will reference the title/heading element. If the modal does not have `title` or `heading`, use `ariaLabel` to provide an accessible name for the modal. */
11
+ export interface ModalProps extends Omit<HTMLProps<HTMLDivElement>, "size" | "title"> {
12
+ /**
13
+ * The title of the modal. This will be rendering as the heading of the modal, and the modal's `aria-labelledby` attribute will reference the title/heading element. If the modal does not have `title` or `heading`, use `ariaLabel` to provide an accessible name for the modal.
14
+ */
20
15
  title?: ReactNode;
21
- /** Also the title of the modal, just for API flexibility. If both `title` and `heading` are passed, `title` will take precedence. */
16
+ /**
17
+ * Also the title of the modal, just for API flexibility. If both `title` and `heading` are passed, `title` will take precedence.
18
+ */
22
19
  heading?: ReactNode;
23
- /** The aria-label of the modal. Use only if the modal does NOT have a `title` or `heading`. */
20
+ /**
21
+ * The aria-label of the modal. Use only if the modal does NOT have a `title` or `heading`.
22
+ */
24
23
  ariaLabel?: string;
25
- /** By default, the first element in the tab order of the Modal content will be focussed. To specify an element to be focussed when the modal opens, pass an element, DOM node, or selector string. */
24
+ /**
25
+ * By default, the first element in the tab order of the Modal content will be focussed. To specify an element to be focussed when the modal opens, pass an element, DOM node, or selector string.
26
+ */
26
27
  initialFocus?: HTMLElement | SVGElement | string;
27
- /** Whether the modal will be open */
28
+ /**
29
+ * Whether the modal will be open.
30
+ * @default false
31
+ */
28
32
  open?: boolean;
29
- /** Whether the modal can be closed using an "X"-Button at the top right. Defaults to true. */
33
+ /**
34
+ * Whether the modal can be closed using an "X"-Button at the top right.
35
+ * @default true
36
+ */
30
37
  closeable?: boolean;
31
- /** Whether the modal should be closed when the backdrop is clicked. Essentially 'un-modals' the modal. */
32
- closeOnEsc?: boolean;
33
- /** The Modal size */
38
+ /**
39
+ * Whether the modal should be closed when the backdrop is clicked. Essentially 'un-modals' the modal.
40
+ * @default false
41
+ */
34
42
  closeOnBackdropClick?: boolean;
35
- /** Determines whether the close button should be disabled */
43
+ /**
44
+ * Determines whether the close button should be disabled.
45
+ * @default false
46
+ */
36
47
  disableCloseButton?: boolean;
37
- /** Whether the modal can be closed by hitting the ESC key */
48
+ /**
49
+ * Whether the modal can be closed by hitting the ESC key.
50
+ * @default true
51
+ */
52
+ closeOnEsc?: boolean;
53
+ /**
54
+ * The Modal size, determines the aesthetics of the modal.
55
+ * @default small
56
+ */
38
57
  size?: ModalSize;
39
- /** Pass to remove default padding from the content area of the modal */
58
+ /**
59
+ * Pass to remove default padding from the content area of the modal.
60
+ * @default false
61
+ */
40
62
  unpad?: boolean;
41
- /** Custom className to add to the modal */
63
+ /**
64
+ * Custom className to add to the modal for additional styling.
65
+ * @default ""
66
+ */
42
67
  className?: string;
43
- /** The children of the modal. These will be rendered as the modal content. To render custom buttons at the bottom, see `modalFooter` below.*/
44
- children?: React.ReactNode;
45
- /** Optional. Pass a `<ModalFooter />` component with custom content as required. Will default to using the `<ModalFooter/>` component internally. */
46
- modalFooter?: React.ReactElement;
47
- /** Pass a label to render a confirm button and a Cancel button */
68
+ /**
69
+ * The children of the modal. These will be rendered as the modal content. To render custom buttons at the bottom, see `modalFooter` below.
70
+ */
71
+ children?: ReactNode;
72
+ /**
73
+ * Optional. Pass a `<ModalFooter />` component with custom content as required. Will default to using the `<ModalFooter/>` component internally.
74
+ */
75
+ modalFooter?: ReactElement;
76
+ /**
77
+ * Pass a label to render a confirm button and a Cancel button.
78
+ * @default ""
79
+ */
48
80
  confirmButtonLabel?: string;
49
- /** Pass a label for the cancel button. Defaults to "Cancel" */
81
+ /**
82
+ * Pass a label for the cancel button. Defaults to "Cancel".
83
+ * @default "Cancel"
84
+ */
50
85
  cancelButtonLabel?: string;
51
- /** Pass an Icon name to show on the confirming action button */
86
+ /**
87
+ * Pass an Icon name to show on the confirming action button.
88
+ */
52
89
  confirmButtonIcon?: KnownIcons;
53
- /** Pass an icon name to show on the cancelling button */
90
+ /**
91
+ * Pass an icon name to show on the cancelling button.
92
+ */
54
93
  cancelButtonIcon?: KnownIcons;
55
- /** Determines whether the confirm action button should be disabled */
94
+ /**
95
+ * Determines whether the confirm action button should be disabled.
96
+ * @default false
97
+ */
56
98
  disableConfirmButton?: boolean;
57
- /** Determines whether the cancel action button should be disabled */
99
+ /**
100
+ * Determines whether the cancel action button should be disabled.
101
+ * @default false
102
+ */
58
103
  disableCancelButton?: boolean;
59
- /** A handler to execute once the modal is confirmed by clicking the confrim button if exists. Note that we do not close the modal automatically. */
60
- onConfirm?: React.MouseEventHandler<HTMLElement>;
61
- /** A handler to execute once the modal is cancelled or dismissed using the x-Close button, Cancel-button or pressing ESC */
62
- onCancel?: (event: React.MouseEvent<HTMLElement> | KeyboardEvent) => void;
104
+ /**
105
+ * A handler to execute once the modal is confirmed by clicking the confirm button if exists. Note that we do not close the modal automatically.
106
+ */
107
+ onConfirm?: MouseEventHandler<HTMLElement>;
108
+ /**
109
+ * A handler to execute once the modal is cancelled or dismissed using the x-Close button, Cancel-button or pressing ESC.
110
+ */
111
+ onCancel?: (_event: MouseEvent<HTMLElement> | KeyboardEvent) => void;
63
112
  }
64
113
  export {};
65
114
  //# sourceMappingURL=Modal.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Modal.component.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/Modal.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAsC,SAAS,EAAE,MAAM,OAAO,CAAA;AAI5E,OAAO,EAAQ,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAiEzD;;;;;;;;;;;;EAYE;AACF,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAoKtC,CAAA;AAED,KAAK,SAAS,GAAG,OAAO,GAAG,OAAO,GAAG,IAAI,GAAG,KAAK,CAAA;AAEjD,MAAM,WAAW,UAAW,SAAQ,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACzF,uRAAuR;IACvR,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,qIAAqI;IACrI,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB,gGAAgG;IAChG,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,sMAAsM;IACtM,YAAY,CAAC,EAAE,WAAW,GAAG,UAAU,GAAG,MAAM,CAAA;IAChD,qCAAqC;IACrC,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,8FAA8F;IAC9F,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,0GAA0G;IAC1G,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,qBAAqB;IACrB,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,6DAA6D;IAC7D,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,6DAA6D;IAC7D,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,wEAAwE;IACxE,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,2CAA2C;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,8IAA8I;IAC9I,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,qJAAqJ;IACrJ,WAAW,CAAC,EAAE,KAAK,CAAC,YAAY,CAAA;IAChC,kEAAkE;IAClE,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,+DAA+D;IAC/D,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,gEAAgE;IAChE,iBAAiB,CAAC,EAAE,UAAU,CAAA;IAC9B,yDAAyD;IACzD,gBAAgB,CAAC,EAAE,UAAU,CAAA;IAC7B,sEAAsE;IACtE,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,qEAAqE;IACrE,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,oJAAoJ;IACpJ,SAAS,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAA;IAChD,6HAA6H;IAE7H,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,GAAG,aAAa,KAAK,IAAI,CAAA;CAC1E"}
1
+ {"version":3,"file":"Modal.component.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/Modal.component.tsx"],"names":[],"mappings":"AAKA,OAAc,EAKZ,SAAS,EACT,UAAU,EACV,SAAS,EACT,YAAY,EACZ,iBAAiB,EAClB,MAAM,OAAO,CAAA;AAId,OAAO,EAAQ,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAiEzD;;;;;GAKG;AACH,eAAO,MAAM,KAAK,GAAI,yTAwBnB,UAAU,KAAG,SA4If,CAAA;AAED,KAAK,SAAS,GAAG,OAAO,GAAG,OAAO,GAAG,IAAI,GAAG,KAAK,CAAA;AAEjD,MAAM,WAAW,UAAW,SAAQ,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACnF;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAA;IAEjB;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,CAAA;IAEnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,YAAY,CAAC,EAAE,WAAW,GAAG,UAAU,GAAG,MAAM,CAAA;IAEhD;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;IAEd;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IAEnB;;;OAGG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAE9B;;;OAGG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAE5B;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IAEpB;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,CAAA;IAEhB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IAEf;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;IAEpB;;OAEG;IACH,WAAW,CAAC,EAAE,YAAY,CAAA;IAE1B;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAE3B;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAE1B;;OAEG;IACH,iBAAiB,CAAC,EAAE,UAAU,CAAA;IAE9B;;OAEG;IACH,gBAAgB,CAAC,EAAE,UAAU,CAAA;IAE7B;;;OAGG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAE9B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAE7B;;OAEG;IACH,SAAS,CAAC,EAAE,iBAAiB,CAAC,WAAW,CAAC,CAAA;IAE1C;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC,GAAG,aAAa,KAAK,IAAI,CAAA;CACrE"}
@@ -1,32 +1,58 @@
1
- import { default as React } from 'react';
1
+ import { ReactNode, MouseEventHandler, HTMLProps } from 'react';
2
2
  import { KnownIcons } from '../Icon/Icon.component';
3
3
  /**
4
- A Footer component for Modal.
5
- Renders a simple "Close" Button (and accepts a corresponding onCancel-handler) by default.
6
- Can be passed a confirmButtonLabel and cancelButton label with corresponding onConfirm- and onCancel-handlers.
7
- Can alternatively render all custom children as passed.
8
- */
9
- export declare const ModalFooter: React.FC<ModalFooterProps>;
10
- export interface ModalFooterProps extends React.HTMLProps<HTMLDivElement> {
11
- /** A custom className. Useful to configure flex items alignment when passing custom content as children. */
4
+ * The `ModalFooter` component is a versatile footer meant for the `Modal`, offering
5
+ * default or customizable confirm and cancel buttons, and an option to pass
6
+ * custom content.
7
+ * @see https://cloudoperators.github.io/juno/?path=/docs/components-modal-modalfooter--docs
8
+ * @see {@link ModalFooterProps}
9
+ */
10
+ export declare const ModalFooter: ({ className, children, confirmButtonLabel, cancelButtonLabel, confirmButtonIcon, cancelButtonIcon, disableConfirmButton, disableCancelButton, onConfirm, onCancel, ...props }: ModalFooterProps) => ReactNode;
11
+ export interface ModalFooterProps extends HTMLProps<HTMLDivElement> {
12
+ /**
13
+ * A custom className. Useful to configure flex items alignment when passing custom content as children.
14
+ * @default ""
15
+ */
12
16
  className?: string;
13
- /** Custom children to render. */
14
- children?: React.ReactNode;
15
- /** The label for the Confirm-button. When passed, the component will render a Confirm button and a cancel button, otherwise the component will ONLY render a Close-Button. */
17
+ /**
18
+ * Custom children content replacing default button structure.
19
+ */
20
+ children?: ReactNode;
21
+ /**
22
+ * The label for the Confirm-button. When passed, the component will render a Confirm button and a cancel button, otherwise the component will ONLY render a Close-Button.
23
+ * @default ""
24
+ */
16
25
  confirmButtonLabel?: string;
17
- /** Custom label for the cancel button. ONLY has an effect if a `confirmButtonLabel` is passed. */
26
+ /**
27
+ * Custom label for the cancel button. ONLY has an effect if a `confirmButtonLabel` is passed.
28
+ * @default "Close"
29
+ */
18
30
  cancelButtonLabel?: string;
19
- /** Pass an Icon name to show on the confirming action button */
31
+ /**
32
+ * Pass an Icon name to show on the confirming action button.
33
+ */
20
34
  confirmButtonIcon?: KnownIcons;
21
- /** Pass an icon name to show on the cancelling button */
35
+ /**
36
+ * Pass an icon name to show on the cancelling button.
37
+ */
22
38
  cancelButtonIcon?: KnownIcons;
23
- /** Determines whether the confirm action button should be disabled */
39
+ /**
40
+ * Determines whether the confirm action button should be disabled.
41
+ * @default false
42
+ */
24
43
  disableConfirmButton?: boolean;
25
- /** Determines whether the cancel action button should be disabled */
44
+ /**
45
+ * Determines whether the cancel action button should be disabled.
46
+ * @default false
47
+ */
26
48
  disableCancelButton?: boolean;
27
- /** Handler to execute once the confirming button is clicked */
28
- onConfirm?: React.MouseEventHandler<HTMLElement>;
29
- /** Handler to execute once the cancelling button is clicked */
30
- onCancel?: React.MouseEventHandler<HTMLElement>;
49
+ /**
50
+ * Handler to execute once the confirming button is clicked.
51
+ */
52
+ onConfirm?: MouseEventHandler<HTMLElement>;
53
+ /**
54
+ * Handler to execute once the cancelling button is clicked.
55
+ */
56
+ onCancel?: MouseEventHandler<HTMLElement>;
31
57
  }
32
58
  //# sourceMappingURL=ModalFooter.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ModalFooter.component.d.ts","sourceRoot":"","sources":["../../../src/components/ModalFooter/ModalFooter.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAgBnD;;;;;EAKE;AAEF,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA0DlD,CAAA;AAED,MAAM,WAAW,gBAAiB,SAAQ,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC;IACvE,4GAA4G;IAC5G,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,iCAAiC;IACjC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,8KAA8K;IAC9K,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,kGAAkG;IAClG,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,gEAAgE;IAChE,iBAAiB,CAAC,EAAE,UAAU,CAAA;IAC9B,yDAAyD;IACzD,gBAAgB,CAAC,EAAE,UAAU,CAAA;IAC7B,sEAAsE;IACtE,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,qEAAqE;IACrE,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,+DAA+D;IAC/D,SAAS,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAA;IAChD,+DAA+D;IAC/D,QAAQ,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAA;CAChD"}
1
+ {"version":3,"file":"ModalFooter.component.d.ts","sourceRoot":"","sources":["../../../src/components/ModalFooter/ModalFooter.component.tsx"],"names":[],"mappings":"AAKA,OAAc,EAAE,SAAS,EAAc,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGlF,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAgBnD;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,GAAI,+KAYzB,gBAAgB,KAAG,SA8CrB,CAAA;AAED,MAAM,WAAW,gBAAiB,SAAQ,SAAS,CAAC,cAAc,CAAC;IACjE;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;IAEpB;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAE3B;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAE1B;;OAEG;IACH,iBAAiB,CAAC,EAAE,UAAU,CAAA;IAE9B;;OAEG;IACH,gBAAgB,CAAC,EAAE,UAAU,CAAA;IAE7B;;;OAGG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAE9B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAE7B;;OAEG;IACH,SAAS,CAAC,EAAE,iBAAiB,CAAC,WAAW,CAAC,CAAA;IAE1C;;OAEG;IACH,QAAQ,CAAC,EAAE,iBAAiB,CAAC,WAAW,CAAC,CAAA;CAC1C"}
@@ -1,8 +1,9 @@
1
- import { default as React, ReactNode, ChangeEventHandler, MouseEventHandler, FC } from 'react';
2
- export interface NativeSelectProps extends React.SelectHTMLAttributes<HTMLSelectElement> {
1
+ import { ReactNode, ChangeEventHandler, MouseEventHandler, SelectHTMLAttributes } from 'react';
2
+ export interface NativeSelectProps extends SelectHTMLAttributes<HTMLSelectElement> {
3
3
  /**
4
4
  * Name of the select element.
5
5
  * Used as a key for the selected value if a form is submitted.
6
+ * @default "Unnamed Select"
6
7
  */
7
8
  name?: string;
8
9
  /**
@@ -11,6 +12,7 @@ export interface NativeSelectProps extends React.SelectHTMLAttributes<HTMLSelect
11
12
  id?: string;
12
13
  /**
13
14
  * Additional CSS classes to apply to the select element for custom styling.
15
+ * @default ""
14
16
  */
15
17
  className?: string;
16
18
  /**
@@ -21,24 +23,29 @@ export interface NativeSelectProps extends React.SelectHTMLAttributes<HTMLSelect
21
23
  children?: ReactNode;
22
24
  /**
23
25
  * Disables the select element, making it unclickable.
26
+ * @default false
24
27
  */
25
28
  disabled?: boolean;
26
29
  /**
27
30
  * Highlights the select element as invalid, indicating incorrect user input or validation errors.
31
+ * @default false
28
32
  */
29
33
  invalid?: boolean;
30
34
  /**
31
35
  * Highlights the select element as valid, indicating correct user input or successful validation.
36
+ * @default false
32
37
  */
33
38
  valid?: boolean;
34
39
  /**
35
40
  * Displays a loading indicator over the select element.
36
41
  * Used for async operations like fetching data.
42
+ * @default false
37
43
  */
38
44
  loading?: boolean;
39
45
  /**
40
46
  * Displays an error state over the select element, such as during data fetching errors.
41
47
  * Should not be used for validation errors.
48
+ * @default false
42
49
  */
43
50
  error?: boolean;
44
51
  /**
@@ -53,13 +60,16 @@ export interface NativeSelectProps extends React.SelectHTMLAttributes<HTMLSelect
53
60
  onClick?: MouseEventHandler<HTMLSelectElement>;
54
61
  /**
55
62
  * Additional CSS classes to apply to the outer wrapper of the select component for custom styling.
63
+ * @default ""
56
64
  */
57
65
  wrapperClassName?: string;
58
66
  }
59
67
  /**
60
- * A basic, uncontrolled native HTML select component.
61
- * Takes NativeSelectOption and NativeSelectOptionGroup children as options.
62
- * Handles states such as loading, valid, invalid, and error.
68
+ * The `NativeSelect` component is a basic HTML select element with extra features
69
+ * such as styles and loading/error states. It supports native select options while
70
+ * offering customization for validation indicators.
71
+ * @see https://cloudoperators.github.io/juno/?path=/docs/forms-nativeselect-nativeselect--docs
72
+ * @see {@link NativeSelectProps}
63
73
  */
64
- export declare const NativeSelect: FC<NativeSelectProps>;
74
+ export declare const NativeSelect: ({ name, id, children, className, disabled, invalid, valid, loading, error, onChange, onClick, wrapperClassName, ...props }: NativeSelectProps) => ReactNode;
65
75
  //# sourceMappingURL=NativeSelect.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NativeSelect.component.d.ts","sourceRoot":"","sources":["../../../src/components/NativeSelect/NativeSelect.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAGZ,SAAS,EAET,kBAAkB,EAElB,iBAAiB,EACjB,EAAE,EACH,MAAM,OAAO,CAAA;AA+Ed,MAAM,WAAW,iBAAkB,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;IACtF;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;IAEpB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IAEf;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IAEf;;;OAGG;IAEH,QAAQ,CAAC,EAAE,kBAAkB,CAAC,iBAAiB,CAAC,CAAA;IAEhD;;;OAGG;IAEH,OAAO,CAAC,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAA;IAE9C;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B;AAmCD;;;;GAIG;AACH,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CA4D9C,CAAA"}
1
+ {"version":3,"file":"NativeSelect.component.d.ts","sourceRoot":"","sources":["../../../src/components/NativeSelect/NativeSelect.component.tsx"],"names":[],"mappings":"AAKA,OAAc,EAGZ,SAAS,EAET,kBAAkB,EAElB,iBAAiB,EACjB,oBAAoB,EACrB,MAAM,OAAO,CAAA;AA+Ed,MAAM,WAAW,iBAAkB,SAAQ,oBAAoB,CAAC,iBAAiB,CAAC;IAChF;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;IAEpB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IAEf;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IAEf;;;OAGG;IACH,QAAQ,CAAC,EAAE,kBAAkB,CAAC,iBAAiB,CAAC,CAAA;IAEhD;;;OAGG;IACH,OAAO,CAAC,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAA;IAE9C;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B;AAqCD;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,GAAI,4HAc1B,iBAAiB,KAAG,SA8CtB,CAAA"}