@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,19 +1,18 @@
1
- import { default as React, ReactNode } from 'react';
2
- export interface ContentContainerProps extends React.HTMLAttributes<HTMLDivElement> {
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
+ export interface ContentContainerProps extends HTMLAttributes<HTMLDivElement> {
3
3
  /**
4
- * Additional CSS classes for custom styling.
4
+ * Additional CSS class names for styling the content container.
5
+ * @default ""
5
6
  */
6
7
  className?: string;
7
- /**
8
- * Custom content to render within the container.
9
- */
8
+ /** Components or elements to render inside the content container. */
10
9
  children?: ReactNode;
11
10
  }
12
11
  /**
13
- * ContentContainer serves as a wrapper for app content.
14
- * It is intended for manual app scaffold creation. In most cases, using the AppShell component instead is recommended.
15
- *
16
- * Note: When the browser window is wider than the max breakpoint width, the content within this container will be centered on the screen.
12
+ * The `ContentContainer` serves as a wrapper for application content, designed for manual layout creation.
13
+ * It can center content when the browser window is wider than the max breakpoint.
14
+ * @see https://cloudoperators.github.io/juno/?path=/docs/internal-contentcontainer--docs
15
+ * @see {@link ContentContainerProps}
17
16
  */
18
- export declare const ContentContainer: React.FC<ContentContainerProps>;
17
+ export declare const ContentContainer: ({ className, children, ...props }: ContentContainerProps) => ReactNode;
19
18
  //# sourceMappingURL=ContentContainer.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ContentContainer.component.d.ts","sourceRoot":"","sources":["../../../src/components/ContentContainer/ContentContainer.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAWxC,MAAM,WAAW,qBAAsB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACjF;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB;AAED;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAM5D,CAAA"}
1
+ {"version":3,"file":"ContentContainer.component.d.ts","sourceRoot":"","sources":["../../../src/components/ContentContainer/ContentContainer.component.tsx"],"names":[],"mappings":"AAKA,OAAc,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAWxD,MAAM,WAAW,qBAAsB,SAAQ,cAAc,CAAC,cAAc,CAAC;IAC3E;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB,qEAAqE;IACrE,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB;AAED;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,GAAI,mCAAwC,qBAAqB,KAAG,SAMhG,CAAA"}
@@ -1,24 +1,26 @@
1
- import { default as React, ReactNode } from 'react';
2
- export interface ContentHeadingProps extends React.HTMLAttributes<HTMLHeadingElement> {
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
+ export interface ContentHeadingProps extends HTMLAttributes<HTMLHeadingElement> {
3
3
  /**
4
- * Custom content to render within the container heading.
5
- * Takes precedence over the heading prop.
4
+ * Custom content to render within the heading.
5
+ * Takes precedence over the `heading` prop.
6
6
  */
7
7
  children?: ReactNode;
8
8
  /**
9
- * Text for the heading. Used if children is not provided.
10
- * Children prop takes precedence.
9
+ * Text for the heading, used if `children` is not provided.
10
+ * Note that the `children` prop takes precedence over this prop.
11
11
  */
12
12
  heading?: string;
13
13
  /**
14
- * Additional CSS classes for custom styling.
14
+ * Custom CSS classes for styling the heading.
15
+ * @default ""
15
16
  */
16
17
  className?: string;
17
18
  }
18
19
  /**
19
- * ContentHeading represents the main heading of a page or view.
20
- * It can be used within an `<AppShell>` component or, if scaffolding manually, within a `<ContentContainer>` component.
21
- * The heading text can be provided either via the `heading` prop or by passing it as `children`.
20
+ * The `ContentHeading` represents the primary heading of a page or view, usable within a `<ContentContainer>`
21
+ * or `<AppShell>`. The heading can be defined via the `heading` prop or the `children` prop.
22
+ * @see https://cloudoperators.github.io/juno/?path=/docs/internal-contentheading--docs
23
+ * @see {@link ContentHeadingProps}
22
24
  */
23
- export declare const ContentHeading: React.FC<ContentHeadingProps>;
25
+ export declare const ContentHeading: ({ heading, className, children, ...props }: ContentHeadingProps) => ReactNode;
24
26
  //# sourceMappingURL=ContentHeading.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ContentHeading.component.d.ts","sourceRoot":"","sources":["../../../src/components/ContentHeading/ContentHeading.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AASxC,MAAM,WAAW,mBAAoB,SAAQ,KAAK,CAAC,cAAc,CAAC,kBAAkB,CAAC;IACnF;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;GAIG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAMxD,CAAA"}
1
+ {"version":3,"file":"ContentHeading.component.d.ts","sourceRoot":"","sources":["../../../src/components/ContentHeading/ContentHeading.component.tsx"],"names":[],"mappings":"AAKA,OAAc,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AASxD,MAAM,WAAW,mBAAoB,SAAQ,cAAc,CAAC,kBAAkB,CAAC;IAC7E;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;IAEpB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;GAKG;AACH,eAAO,MAAM,cAAc,GAAI,4CAK5B,mBAAmB,KAAG,SAMxB,CAAA"}
@@ -1,36 +1,47 @@
1
- import { default as React } from 'react';
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
2
  interface DataGridContextType {
3
3
  cellVerticalAlignment?: CellVerticalAlignmentType;
4
4
  }
5
5
  export declare const useDataGridContext: () => DataGridContextType;
6
6
  /**
7
- * The `DataGrid` component is primarily used to display lists of items that contain substantial metadata.
8
- *
9
- * **For advanced features and interactions**, please refer to the [DataGridRow](?path=/docs/components-datagrid-datagridrow--docs) component, which includes:
10
- * - **Clickable row functionality & interactive styling:** Allows for custom behavior when a row is clicked. This also enables responsive styling, such as **hover effects**, for better user experience.
11
- * - **Selected row styling:** Provides styling to integrate active rows.
7
+ * The `DataGrid` component displays tabular data with customizable columns and layout.
8
+ * It supports interactive styling through child components like `DataGridRow` for advanced interactions.
9
+ * @see https://cloudoperators.github.io/juno/?path=/docs/components-datagrid-datagrid--docs
10
+ * @see {@link DataGridProps}
12
11
  */
13
- export declare const DataGrid: React.FC<DataGridProps>;
12
+ export declare const DataGrid: ({ columns, columnMaxSize, columnMinSize, minContentColumns, gridColumnTemplate, cellVerticalAlignment, className, children, ...props }: DataGridProps) => ReactNode;
14
13
  export type CellVerticalAlignmentType = "center" | "top";
15
- export interface DataGridProps extends React.HTMLAttributes<HTMLDivElement> {
16
- /** Set number of columns */
14
+ export interface DataGridProps extends HTMLAttributes<HTMLDivElement> {
15
+ /**
16
+ * Specifies the number of columns in the grid.
17
+ * @default 1
18
+ */
17
19
  columns?: number;
18
- /** Set column max sizing. Default: auto. For equally sized columns use "1fr" */
20
+ /**
21
+ * Defines maximum column sizing.
22
+ * @default "auto"
23
+ */
19
24
  columnMaxSize?: string;
20
- /** Set column minimum size. Default: 0px */
25
+ /**
26
+ * Specifies minimum column size.
27
+ * @default "0px"
28
+ */
21
29
  columnMinSize?: string;
22
- /** Specify which columns should be sized by minimum content size (i.e. as small as possible). Pass an array of column numbers (first column is 0) */
30
+ /** Array of indices for columns sized by minimum content. */
23
31
  minContentColumns?: number[];
24
- /** Set the grid column template in CSS grid 'grid-template-columns' notation. If this prop is passed, all other template props (columns, columnMaxSize,
25
- * columnMinSize, minContentColumns) are ignored. The easiest case where you might need this is e.g. if you want to set specific column widths for some
26
- * or all columns, e.g. "20% auto auto 10%" (The first column is set to 20%, the next two to auto size, the last to 10%). */
32
+ /** Custom CSS grid-template-columns. Overwrites other sizing props. */
27
33
  gridColumnTemplate?: string;
28
- /** Set the vertical alignment for all GridCells. Default: center. PLEASE NOTE: the center alignment is achieved by using a flexbox column layout,
29
- * which means that all child elements of the cell will be stacked vertically. To avoid this, wrap the elements in their own div */
34
+ /**
35
+ * Vertical alignment for all grid cells, using a flexbox column layout.
36
+ * @default "center"
37
+ */
30
38
  cellVerticalAlignment?: CellVerticalAlignmentType;
31
- /** Children to render in the DataGrid */
32
- children?: React.ReactNode;
33
- /** Add a class name */
39
+ /** Components or elements to render within the DataGrid container. */
40
+ children?: ReactNode;
41
+ /**
42
+ * Additional class names for styling.
43
+ * @default ""
44
+ */
34
45
  className?: string;
35
46
  }
36
47
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"DataGrid.component.d.ts","sourceRoot":"","sources":["../../../src/components/DataGrid/DataGrid.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,C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cAAc,CAAC;IACnE;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IAEtB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IAEtB,6DAA6D;IAC7D,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAA;IAE5B,uEAAuE;IACvE,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAE3B;;;OAGG;IACH,qBAAqB,CAAC,EAAE,yBAAyB,CAAA;IAEjD,sEAAsE;IACtE,QAAQ,CAAC,EAAE,SAAS,CAAA;IAEpB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB"}
@@ -1,13 +1,25 @@
1
- import { default as React } from 'react';
1
+ import { default as React, HTMLAttributes, ReactNode } from 'react';
2
+ /**
3
+ * `DataGridCell` is a versatile layout component for `DataGrid`, supporting cell-specific configurations
4
+ * like column span and wrapping. It adapts orientation based on grid context.
5
+ * @see https://cloudoperators.github.io/juno/?path=/docs/components-datagrid-datagridcell--docs
6
+ * @see {@link DataGridCellProps}
7
+ */
2
8
  export declare const DataGridCell: React.ForwardRefExoticComponent<DataGridCellProps & React.RefAttributes<HTMLDivElement>>;
3
- export interface DataGridCellProps extends React.HTMLAttributes<HTMLDivElement> {
4
- /** Add a col span to the cell. This works like a colspan in a normal html table, so you have to take care not to place too many cells in a row if some of them have a colspan. */
9
+ export interface DataGridCellProps extends HTMLAttributes<HTMLDivElement> {
10
+ /** Defines the number of columns the cell spans. */
5
11
  colSpan?: number;
6
- /** Set nowrap to true if the cell content shouldn't wrap (this is achieved by adding white-space: nowrap;) */
12
+ /**
13
+ * If set, content within the cell will not wrap.
14
+ * @default false
15
+ */
7
16
  nowrap?: boolean;
8
- /** Children to render in the DataGridCell */
9
- children?: React.ReactNode;
10
- /** Add a classname */
17
+ /** Components or elements to render within the DataGridCell. */
18
+ children?: ReactNode;
19
+ /**
20
+ * Additional CSS class names for custom styling.
21
+ * @default ""
22
+ */
11
23
  className?: string;
12
24
  }
13
25
  //# sourceMappingURL=DataGridCell.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DataGridCell.component.d.ts","sourceRoot":"","sources":["../../../src/components/DataGridCell/DataGridCell.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAqB,MAAM,OAAO,CAAA;AAgCzC,eAAO,MAAM,YAAY,0FAiBxB,CAAA;AAID,MAAM,WAAW,iBAAkB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC7E,mLAAmL;IACnL,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,8GAA8G;IAC9G,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,sBAAsB;IACtB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB"}
1
+ {"version":3,"file":"DataGridCell.component.d.ts","sourceRoot":"","sources":["../../../src/components/DataGridCell/DataGridCell.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAc,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAgCpE;;;;;GAKG;AACH,eAAO,MAAM,YAAY,0FAiBxB,CAAA;AAID,MAAM,WAAW,iBAAkB,SAAQ,cAAc,CAAC,cAAc,CAAC;IACvE,oDAAoD;IACpD,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB,gEAAgE;IAChE,QAAQ,CAAC,EAAE,SAAS,CAAA;IAEpB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB"}
@@ -1,13 +1,28 @@
1
- import { default as React } from 'react';
2
- export declare const DataGridCheckboxCell: React.FC<DataGridCheckboxCellProps>;
3
- export interface DataGridCheckboxCellProps extends React.HTMLAttributes<HTMLElement> {
4
- /** Whether the row this cell belongs to is selected */
1
+ import { ChangeEventHandler, HTMLAttributes, ReactNode } from 'react';
2
+ /**
3
+ * `DataGridCheckboxCell` integrates a checkbox within a `DataGrid` cell, ideal for selection-based interactions.
4
+ * It manages the selected state and supports custom behaviors upon state changes.
5
+ * @see https://cloudoperators.github.io/juno/?path=/docs/wip-datagrid-datagridcheckboxcell--docs
6
+ * @see {@link DataGridCheckboxCellProps}
7
+ */
8
+ export declare const DataGridCheckboxCell: ({ selected, disabled, className, onChange, ...props }: DataGridCheckboxCellProps) => ReactNode;
9
+ export interface DataGridCheckboxCellProps extends HTMLAttributes<HTMLElement> {
10
+ /**
11
+ * Indicates selected state of the associated row.
12
+ * @default false
13
+ */
5
14
  selected?: boolean;
6
- /** Whether the item is disabled */
15
+ /**
16
+ * Determines if the checkbox is disabled.
17
+ * @default false
18
+ */
7
19
  disabled?: boolean;
8
- /** Add a classname to the cell */
20
+ /**
21
+ * Additional class names for styling.
22
+ * @default ""
23
+ */
9
24
  className?: string;
10
- /** Handler to change the selected state of the row */
11
- onChange?: React.ChangeEventHandler<HTMLInputElement>;
25
+ /** Event handler for changes in the checkbox's state. */
26
+ onChange?: ChangeEventHandler<HTMLInputElement>;
12
27
  }
13
28
  //# sourceMappingURL=DataGridCheckboxCell.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DataGridCheckboxCell.component.d.ts","sourceRoot":"","sources":["../../../src/components/DataGridCheckboxCell/DataGridCheckboxCell.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CAYpE,CAAA;AAED,MAAM,WAAW,yBAA0B,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IAClF,uDAAuD;IACvD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,mCAAmC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,kCAAkC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,sDAAsD;IACtD,QAAQ,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAA;CACtD"}
1
+ {"version":3,"file":"DataGridCheckboxCell.component.d.ts","sourceRoot":"","sources":["../../../src/components/DataGridCheckboxCell/DataGridCheckboxCell.component.tsx"],"names":[],"mappings":"AAKA,OAAc,EAAE,kBAAkB,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAI5E;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,GAAI,uDAMlC,yBAAyB,KAAG,SAM9B,CAAA;AAED,MAAM,WAAW,yBAA0B,SAAQ,cAAc,CAAC,WAAW,CAAC;IAC5E;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB,yDAAyD;IACzD,QAAQ,CAAC,EAAE,kBAAkB,CAAC,gBAAgB,CAAC,CAAA;CAChD"}
@@ -1,9 +1,20 @@
1
- import { default as React } from 'react';
2
- export declare const DataGridFoot: React.FC<DataGridFootProps>;
3
- export interface DataGridFootProps extends React.HTMLAttributes<HTMLTableSectionElement> {
4
- /** Children to render in the DataGridFoot */
5
- children?: React.ReactNode;
6
- /** Add a classname */
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
+ /**
3
+ * `DataGridFoot` is used to display a footer section for a `DataGrid`, supporting summary data or controls
4
+ * related to the grid content. It is styled consistently with other grid sections.
5
+ * @see https://cloudoperators.github.io/juno/?path=/docs/wip-datagrid-datagridfoot--docs
6
+ * @see {@link DataGridFootProps}
7
+ */
8
+ export declare const DataGridFoot: ({ className, children, ...props }: DataGridFootProps) => ReactNode;
9
+ export interface DataGridFootProps extends HTMLAttributes<HTMLTableSectionElement> {
10
+ /**
11
+ * Elements or components to render within the DataGridFoot.
12
+ */
13
+ children?: ReactNode;
14
+ /**
15
+ * Custom CSS class names for styling.
16
+ * @default ""
17
+ */
7
18
  className?: string;
8
19
  }
9
20
  //# sourceMappingURL=DataGridFoot.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DataGridFoot.component.d.ts","sourceRoot":"","sources":["../../../src/components/DataGridFoot/DataGridFoot.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAMpD,CAAA;AAED,MAAM,WAAW,iBAAkB,SAAQ,KAAK,CAAC,cAAc,CAAC,uBAAuB,CAAC;IACtF,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,sBAAsB;IACtB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB"}
1
+ {"version":3,"file":"DataGridFoot.component.d.ts","sourceRoot":"","sources":["../../../src/components/DataGridFoot/DataGridFoot.component.tsx"],"names":[],"mappings":"AAKA,OAAc,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAExD;;;;;GAKG;AACH,eAAO,MAAM,YAAY,GAAI,mCAAwC,iBAAiB,KAAG,SAMxF,CAAA;AAED,MAAM,WAAW,iBAAkB,SAAQ,cAAc,CAAC,uBAAuB,CAAC;IAChF;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;IAEpB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB"}
@@ -1,13 +1,19 @@
1
- import { default as React } from 'react';
1
+ import { default as React, HTMLAttributes, ReactNode } from 'react';
2
+ /**
3
+ * `DataGridHeadCell` is designed for use within a `DataGrid` header, defining column attributes and appearance.
4
+ * It accommodates configurations like sorting (future implementation) and display styles.
5
+ * @see https://cloudoperators.github.io/juno/?path=/docs/components-datagrid-datagridheadcell--docs
6
+ * @see {@link DataGridHeadCellProps}
7
+ */
2
8
  export declare const DataGridHeadCell: React.ForwardRefExoticComponent<DataGridHeadCellProps & React.RefAttributes<HTMLDivElement>>;
3
- export interface DataGridHeadCellProps extends React.HTMLAttributes<HTMLElement> {
9
+ export interface DataGridHeadCellProps extends HTMLAttributes<HTMLElement> {
4
10
  /** Whether the DataGrid should be sortable by this column */
5
11
  /** Add a col span to the cell. This works like a colspan in a normal html table, so you have to take care not to place too many cells in a row if some of them have a colspan. */
6
12
  colSpan?: number;
7
13
  /** Set nowrap to true if the cell content shouldn't wrap (this is achieved by adding white-space: nowrap;) */
8
14
  nowrap?: boolean;
9
15
  /** Children to render in the DataGridHeadCell */
10
- children?: React.ReactNode;
16
+ children?: ReactNode;
11
17
  /** Add a classname */
12
18
  className?: string;
13
19
  }
@@ -1 +1 @@
1
- {"version":3,"file":"DataGridHeadCell.component.d.ts","sourceRoot":"","sources":["../../../src/components/DataGridHeadCell/DataGridHeadCell.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAqB,MAAM,OAAO,CAAA;AAUzC,eAAO,MAAM,gBAAgB,8FAgC5B,CAAA;AAID,MAAM,WAAW,qBAAsB,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IAC9E,6DAA6D;IAE7D,mLAAmL;IACnL,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,8GAA8G;IAC9G,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,iDAAiD;IACjD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,sBAAsB;IACtB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB"}
1
+ {"version":3,"file":"DataGridHeadCell.component.d.ts","sourceRoot":"","sources":["../../../src/components/DataGridHeadCell/DataGridHeadCell.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAc,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAUpE;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,8FAgC5B,CAAA;AAID,MAAM,WAAW,qBAAsB,SAAQ,cAAc,CAAC,WAAW,CAAC;IACxE,6DAA6D;IAE7D,mLAAmL;IACnL,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,8GAA8G;IAC9G,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,iDAAiD;IACjD,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,sBAAsB;IACtB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB"}
@@ -1,6 +1,12 @@
1
- import { default as React } from 'react';
1
+ import { default as React, HTMLAttributes, MouseEvent, ReactNode } from 'react';
2
+ /**
3
+ * `DataGridRow` represents a row in a `DataGrid`, supporting interactions such as selection and click handling.
4
+ * It provides styles for active states and custom behavior when interacted with.
5
+ * @see https://cloudoperators.github.io/juno/?path=/docs/components-datagrid-datagridrow--docs
6
+ * @see {@link DataGridRowProps}
7
+ */
2
8
  export declare const DataGridRow: React.ForwardRefExoticComponent<DataGridRowProps & React.RefAttributes<HTMLDivElement>>;
3
- export interface DataGridRowProps extends React.HTMLAttributes<HTMLDivElement> {
9
+ export interface DataGridRowProps extends HTMLAttributes<HTMLDivElement> {
4
10
  /**
5
11
  * Indicates if the DataGridRow should be in an active state,
6
12
  * applying styles for persistent selection or activation.
@@ -9,7 +15,7 @@ export interface DataGridRowProps extends React.HTMLAttributes<HTMLDivElement> {
9
15
  /**
10
16
  * Row click handler
11
17
  */
12
- onClick?: (_event: React.MouseEvent<HTMLDivElement>) => void;
18
+ onClick?: (_event: MouseEvent<HTMLDivElement>) => void;
13
19
  /**
14
20
  * Additional custom CSS class names that can be applied to the DataGridRow.
15
21
  */
@@ -17,6 +23,6 @@ export interface DataGridRowProps extends React.HTMLAttributes<HTMLDivElement> {
17
23
  /**
18
24
  * Elements or components that will be rendered within the DataGridRow.
19
25
  */
20
- children?: React.ReactNode;
26
+ children?: ReactNode;
21
27
  }
22
28
  //# sourceMappingURL=DataGridRow.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DataGridRow.component.d.ts","sourceRoot":"","sources":["../../../src/components/DataGridRow/DataGridRow.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAqB,MAAM,OAAO,CAAA;AACzC,OAAO,qBAAqB,CAAA;AAE5B,eAAO,MAAM,WAAW,yFAmBvB,CAAA;AAID,MAAM,WAAW,gBAAiB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC5E;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IAEpB;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,KAAK,IAAI,CAAA;IAE5D;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B"}
1
+ {"version":3,"file":"DataGridRow.component.d.ts","sourceRoot":"","sources":["../../../src/components/DataGridRow/DataGridRow.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAc,cAAc,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAChF,OAAO,qBAAqB,CAAA;AAE5B;;;;;GAKG;AACH,eAAO,MAAM,WAAW,yFAmBvB,CAAA;AAID,MAAM,WAAW,gBAAiB,SAAQ,cAAc,CAAC,cAAc,CAAC;IACtE;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IAEpB;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,CAAC,cAAc,CAAC,KAAK,IAAI,CAAA;IAEtD;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB"}
@@ -1,12 +1,24 @@
1
- import { default as React } from 'react';
2
- /** This is the toolbar for use with a DataGrid. This is the place where you would put buttons and other controls that affect the items in the DataGrid (e.g. triggering batch actions). Optionally a search input can be added. */
3
- export declare const DataGridToolbar: React.FC<DataGridToolbarProps>;
4
- export interface DataGridToolbarProps extends React.HTMLAttributes<HTMLDivElement> {
5
- /** Pass an optional SearchInput component */
6
- search?: React.ReactElement;
7
- /** Children to render in the DataGridToolbar */
8
- children?: React.ReactNode;
9
- /** Add a classname */
1
+ import { HTMLAttributes, ReactElement, ReactNode } from 'react';
2
+ /**
3
+ * `DataGridToolbar` provides an action bar for a `DataGrid`, designed to hold controls like buttons and search inputs
4
+ * for performing group operations and interfacing with the grid content.
5
+ * @see https://cloudoperators.github.io/juno/?path=/docs/components-datagrid-datagridtoolbar--docs
6
+ * @see {@link DataGridToolbarProps}
7
+ */
8
+ export declare const DataGridToolbar: ({ search, className, children, ...props }: DataGridToolbarProps) => ReactNode;
9
+ export interface DataGridToolbarProps extends HTMLAttributes<HTMLDivElement> {
10
+ /**
11
+ * An optional `SearchInput` component for inclusion in the toolbar.
12
+ */
13
+ search?: ReactElement;
14
+ /**
15
+ * Elements or components to render within the DataGridToolbar.
16
+ */
17
+ children?: ReactNode;
18
+ /**
19
+ * Custom CSS class names for styling the toolbar.
20
+ * @default ""
21
+ */
10
22
  className?: string;
11
23
  }
12
24
  //# sourceMappingURL=DataGridToolbar.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DataGridToolbar.component.d.ts","sourceRoot":"","sources":["../../../src/components/DataGridToolbar/DataGridToolbar.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AAezB,mOAAmO;AACnO,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAO1D,CAAA;AAED,MAAM,WAAW,oBAAqB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAChF,6CAA6C;IAC7C,MAAM,CAAC,EAAE,KAAK,CAAC,YAAY,CAAA;IAC3B,gDAAgD;IAChD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,sBAAsB;IACtB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB"}
1
+ {"version":3,"file":"DataGridToolbar.component.d.ts","sourceRoot":"","sources":["../../../src/components/DataGridToolbar/DataGridToolbar.component.tsx"],"names":[],"mappings":"AAKA,OAAc,EAAE,cAAc,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAetE;;;;;GAKG;AACH,eAAO,MAAM,eAAe,GAAI,2CAAgD,oBAAoB,KAAG,SAOtG,CAAA;AAED,MAAM,WAAW,oBAAqB,SAAQ,cAAc,CAAC,cAAc,CAAC;IAC1E;;OAEG;IACH,MAAM,CAAC,EAAE,YAAY,CAAA;IAErB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;IAEpB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB"}
@@ -1,14 +1,16 @@
1
- import { default as React, ReactNode } from 'react';
2
- import { default as flatpickr } from 'flatpickr';
3
- import { DateOption, DateLimit } from 'flatpickr/dist/types/options';
4
- import { key as LocaleKey, CustomLocale } from 'flatpickr/dist/types/locale';
5
- /** A all-purpose date and time picker component. Highly configurable, based on Flatpickr. */
6
- export declare const DateTimePicker: React.FC<DateTimePickerProps>;
7
- type DateChangeHandler = (dates?: Date[], dateStr?: string, instance?: flatpickr.Instance) => void;
8
- export interface DateTimePickerProps extends Omit<React.HTMLAttributes<HTMLInputElement>, "defaultValue" | "onFocus" | "onBlur" | "onChange"> {
9
- /** Whether the DateTimePicker input element allows direct user keyboard input. Default is `false`. */
1
+ import { ReactNode, HTMLAttributes } from 'react';
2
+ import { DateOption, DateLimit, LocaleKey, CustomLocale, DateChangeHandler } from './DateTimePicker.types';
3
+ /**
4
+ * An all-purpose date and time picker component. Highly configurable, based on Flatpickr.
5
+ * @see https://cloudoperators.github.io/juno/?path=/docs/wip-datetimepicker-datetimepicker--docs
6
+ * @see {@link DateTimePickerProps}
7
+ */
8
+ export declare const DateTimePicker: ({ allowInput, allowInvalidPreload, ariaDateFormat, className, conjunction, dateFormat, defaultHour, defaultMinute, defaultDate, defaultValue, disable, disabled, enableSeconds, enableTime, errortext, helptext, hourIncrement, id, invalid, label, locale, maxDate, minDate, minuteIncrement, mode, monthSelectorType, name, noCalendar, onBlur, onChange, onClear, onClose, onFocus, onMonthChange, onOpen, onReady, onYearChange, placeholder, required, shorthandCurrentMonth, showMonths, successtext, time_24hr, valid, value, weekNumbers, width, wrapperClassName, ...props }: DateTimePickerProps) => ReactNode;
9
+ export interface DateTimePickerProps extends Omit<HTMLAttributes<HTMLInputElement>, "defaultValue" | "onFocus" | "onBlur" | "onChange"> {
10
+ /** Whether the DateTimePicker input element allows direct user keyboard input. Default is `false`.
11
+ */
10
12
  allowInput?: boolean;
11
- /** Allows the preloading of an invalid date (e.g. a date that hass been disable by passing `disable`). When disabled, the field will be cleared if the provided date is invalid */
13
+ /** Allows preloading of an invalid date (e.g. a date that has been disabled by passing disable). When disabled, the field will be cleared if the provided date is invalid */
12
14
  allowInvalidPreload?: boolean;
13
15
  /** How the `aria-label` date for each day in the calendar will be formed. Uses the same rules/tokens as `dateFormat´ as described here: https://flatpickr.js.org/formatting/. When changing this, make sure the outcome makes sense when using a screenreader.*/
14
16
  ariaDateFormat?: string;
@@ -33,7 +35,7 @@ export interface DateTimePickerProps extends Omit<React.HTMLAttributes<HTMLInput
33
35
  /**
34
36
  * Pass an array of dates, date strings, date ranges or functions to disable dates. More on disabling dates: https://flatpickr.js.org/examples/#disabling-specific-dates
35
37
  */
36
- disable?: DateLimit<DateOption>[];
38
+ disable?: DateLimit[];
37
39
  /** Whether the DateTimePicker is disabled */
38
40
  disabled?: boolean;
39
41
  /** Whether to show seconds when showing a time picker. */
@@ -135,5 +137,4 @@ export interface DateTimePickerProps extends Omit<React.HTMLAttributes<HTMLInput
135
137
  /** Pass a custom className to the wrapping element. This can be useful if you must add styling to the outermost wrapping element of this component, e.g. for positioning. */
136
138
  wrapperClassName?: string;
137
139
  }
138
- export {};
139
140
  //# sourceMappingURL=DateTimePicker.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3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AO,CAAC,EAAE,iBAAiB,CAAA;IAC3B;;OAEG;IACH,OAAO,CAAC,EAAE,iBAAiB,CAAA;IAC3B;;OAEG;IACH,OAAO,CAAC,EAAE,iBAAiB,CAAA;IAC3B;;OAEG;IACH,aAAa,CAAC,EAAE,iBAAiB,CAAA;IACjC;;OAEG;IACH,MAAM,CAAC,EAAE,iBAAiB,CAAA;IAC1B;;OAEG;IACH,OAAO,CAAC,EAAE,iBAAiB,CAAA;IAC3B;;OAEG;IACH,YAAY,CAAC,EAAE,iBAAiB,CAAA;IAChC,0DAA0D;IAC1D,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,6FAA6F;IAC7F,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,qHAAqH;IACrH,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,sDAAsD;IACtD,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,0EAA0E;IAC1E,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,2IAA2I;IAC3I,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,iEAAiE;IACjE,KAAK,CAAC,EAAE,OAAO,CAAA;IACf;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,UAAU,EAAE,CAAA;IAC7C,0DAA0D;IAC1D,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,4EAA4E;IAC5E,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,6KAA6K;IAC7K,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B"}
1
+ {"version":3,"file":"DateTimePicker.component.d.ts","sourceRoot":"","sources":["../../../src/components/DateTimePicker/DateTimePicker.component.tsx"],"names":[],"mappings":"AAKA,OAAc,EAA+C,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAKrG,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,wBAA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IACtD,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,0EAA0E;IAC1E,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,2IAA2I;IAC3I,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,iEAAiE;IACjE,KAAK,CAAC,EAAE,OAAO,CAAA;IACf;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,UAAU,EAAE,CAAA;IAC7C,0DAA0D;IAC1D,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,4EAA4E;IAC5E,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,6KAA6K;IAC7K,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B"}
@@ -0,0 +1,24 @@
1
+ import { DateOption as FlatpickrDateOption, DateLimit as FlatpickrDateLimit } from 'flatpickr/dist/types/options';
2
+ import { key as FlatpickrLocaleKey, CustomLocale as FlatpickrCustomLocale } from 'flatpickr/dist/types/locale';
3
+ import { DateOption, DateLimit, LocaleKey, CustomLocale } from './DateTimePicker.types';
4
+ /**
5
+ * Maps public DateTimePicker date option to flatpickr DateOption.
6
+ * Both types are structurally identical (string | Date | number),
7
+ * but TypeScript treats them as distinct types.
8
+ */
9
+ export declare function mapDateOption(date: DateOption): FlatpickrDateOption;
10
+ /**
11
+ * Maps public DateTimePicker date limit to flatpickr DateLimit.
12
+ * Handles simple dates, date ranges, and filter functions.
13
+ */
14
+ export declare function mapDateLimit(limit: DateLimit): FlatpickrDateLimit<FlatpickrDateOption>;
15
+ /**
16
+ * Maps array of public DateTimePicker date limits to flatpickr DateLimit array.
17
+ */
18
+ export declare function mapDateLimits(limits: DateLimit[]): FlatpickrDateLimit<FlatpickrDateOption>[];
19
+ /**
20
+ * Maps public DateTimePicker locale to flatpickr locale.
21
+ * Handles both locale key strings and custom locale objects.
22
+ */
23
+ export declare function mapLocale(locale: LocaleKey | Partial<CustomLocale>): FlatpickrLocaleKey | Partial<FlatpickrCustomLocale>;
24
+ //# sourceMappingURL=DateTimePicker.mappers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DateTimePicker.mappers.d.ts","sourceRoot":"","sources":["../../../src/components/DateTimePicker/DateTimePicker.mappers.ts"],"names":[],"mappings":"AAKA;;;;;;GAMG;AAEH,OAAO,EAAE,UAAU,IAAI,mBAAmB,EAAE,SAAS,IAAI,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AACjH,OAAO,EAAE,GAAG,IAAI,kBAAkB,EAAE,YAAY,IAAI,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AAC9G,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAE5F;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,UAAU,GAAG,mBAAmB,CAEnE;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,SAAS,GAAG,kBAAkB,CAAC,mBAAmB,CAAC,CAkBtF;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,SAAS,EAAE,GAAG,kBAAkB,CAAC,mBAAmB,CAAC,EAAE,CAE5F;AAED;;;GAGG;AACH,wBAAgB,SAAS,CACvB,MAAM,EAAE,SAAS,GAAG,OAAO,CAAC,YAAY,CAAC,GACxC,kBAAkB,GAAG,OAAO,CAAC,qBAAqB,CAAC,CASrD"}
@@ -0,0 +1,79 @@
1
+ /**
2
+ * Custom types to replace flatpickr types and eliminate type leakage.
3
+ * These types mirror the functionality of flatpickr without depending on its type definitions.
4
+ */
5
+ /**
6
+ * Date option type that can represent a date in various formats.
7
+ * Replaces flatpickr's DateOption type.
8
+ */
9
+ export type DateOption = string | Date | number;
10
+ /**
11
+ * Date limit function type for disabling specific dates.
12
+ * Replaces flatpickr's DateLimit type.
13
+ */
14
+ export type DateLimit = DateOption | {
15
+ from: DateOption;
16
+ to: DateOption;
17
+ } | ((_date: Date) => boolean);
18
+ /**
19
+ * Locale key type for predefined locales.
20
+ * Replaces flatpickr's LocaleKey type.
21
+ */
22
+ export type LocaleKey = "ar" | "at" | "az" | "be" | "bg" | "bn" | "bs" | "ca" | "cat" | "ckb" | "cs" | "cy" | "da" | "de" | "default" | "en" | "eo" | "es" | "et" | "fa" | "fi" | "fo" | "fr" | "gr" | "he" | "hi" | "hr" | "hu" | "hy" | "id" | "is" | "it" | "ja" | "ka" | "ko" | "km" | "kz" | "lt" | "lv" | "mk" | "mn" | "ms" | "my" | "nl" | "nn" | "no" | "pa" | "pl" | "pt" | "ro" | "ru" | "si" | "sk" | "sl" | "sq" | "sr" | "sv" | "th" | "tr" | "uk" | "vn" | "zh" | "uz" | "uz_latn" | "zh_tw";
23
+ type Locale = {
24
+ weekdays: {
25
+ shorthand: [string, string, string, string, string, string, string];
26
+ longhand: [string, string, string, string, string, string, string];
27
+ };
28
+ months: {
29
+ shorthand: [string, string, string, string, string, string, string, string, string, string, string, string];
30
+ longhand: [string, string, string, string, string, string, string, string, string, string, string, string];
31
+ };
32
+ daysInMonth: [number, number, number, number, number, number, number, number, number, number, number, number];
33
+ firstDayOfWeek: number;
34
+ ordinal: (_nth: number) => string;
35
+ rangeSeparator: string;
36
+ weekAbbreviation: string;
37
+ scrollTitle: string;
38
+ toggleTitle: string;
39
+ amPM: [string, string];
40
+ yearAriaLabel: string;
41
+ monthAriaLabel: string;
42
+ hourAriaLabel: string;
43
+ minuteAriaLabel: string;
44
+ time_24hr: boolean;
45
+ };
46
+ /**
47
+ * Custom locale configuration object.
48
+ * Replaces flatpickr's CustomLocale type.
49
+ */
50
+ export interface CustomLocale {
51
+ ordinal?: Locale["ordinal"];
52
+ daysInMonth?: Locale["daysInMonth"];
53
+ firstDayOfWeek?: Locale["firstDayOfWeek"];
54
+ rangeSeparator?: Locale["rangeSeparator"];
55
+ weekAbbreviation?: Locale["weekAbbreviation"];
56
+ toggleTitle?: Locale["toggleTitle"];
57
+ scrollTitle?: Locale["scrollTitle"];
58
+ yearAriaLabel?: string;
59
+ monthAriaLabel?: string;
60
+ hourAriaLabel?: string;
61
+ minuteAriaLabel?: string;
62
+ amPM?: Locale["amPM"];
63
+ time_24hr?: Locale["time_24hr"];
64
+ weekdays: {
65
+ shorthand: [string, string, string, string, string, string, string];
66
+ longhand: [string, string, string, string, string, string, string];
67
+ };
68
+ months: {
69
+ shorthand: [string, string, string, string, string, string, string, string, string, string, string, string];
70
+ longhand: [string, string, string, string, string, string, string, string, string, string, string, string];
71
+ };
72
+ }
73
+ /**
74
+ * Date change handler type.
75
+ * Provides the same interface as flatpickr's onChange handlers but without flatpickr.Instance dependency.
76
+ */
77
+ export type DateChangeHandler = (_dates?: Date[], _dateStr?: string) => void;
78
+ export {};
79
+ //# sourceMappingURL=DateTimePicker.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DateTimePicker.types.d.ts","sourceRoot":"","sources":["../../../src/components/DateTimePicker/DateTimePicker.types.ts"],"names":[],"mappings":"AAKA;;;GAGG;AAEH;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,IAAI,GAAG,MAAM,CAAA;AAE/C;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG,UAAU,GAAG;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,EAAE,EAAE,UAAU,CAAA;CAAE,GAAG,CAAC,CAAC,KAAK,EAAE,IAAI,KAAK,OAAO,CAAC,CAAA;AAEtG;;;GAGG;AACH,MAAM,MAAM,SAAS,GACjB,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,KAAK,GACL,KAAK,GACL,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,SAAS,GACT,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI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AS,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAA;QACnE,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAA;KACnE,CAAA;IACD,MAAM,EAAE;QACN,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAA;QAC3G,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAA;KAC3G,CAAA;CACF;AAED;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA"}
@@ -1,11 +1,13 @@
1
- import { default as React, ReactNode, FormHTMLAttributes } from 'react';
1
+ import { ReactNode, FormHTMLAttributes } from 'react';
2
2
  export interface FormProps extends FormHTMLAttributes<HTMLFormElement> {
3
3
  /**
4
4
  * Title for the form.
5
+ * @default ""
5
6
  */
6
7
  title?: string;
7
8
  /**
8
9
  * Additional CSS classes to apply to the form for custom styling.
10
+ * @default ""
9
11
  */
10
12
  className?: string;
11
13
  /**
@@ -15,8 +17,11 @@ export interface FormProps extends FormHTMLAttributes<HTMLFormElement> {
15
17
  children?: ReactNode;
16
18
  }
17
19
  /**
18
- * A Form component used to encapsulate FormSections and/or FormGroups.
19
- * Can be used to build complex forms with structured sections.
20
+ * The `Form` component is designed to encapsulate form sections and groups,
21
+ * providing a structured way to build complex forms. It can include a title and
22
+ * supports additional styling through custom CSS classes.
23
+ * @see https://cloudoperators.github.io/juno/?path=/docs/forms-form--docs
24
+ * @see {@link FormProps}
20
25
  */
21
- export declare const Form: React.FC<FormProps>;
26
+ export declare const Form: ({ title, className, children, ...props }: FormProps) => ReactNode;
22
27
  //# sourceMappingURL=Form.component.d.ts.map