@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.
- package/README.md +1 -1
- package/build/components/AppBody/AppBody.component.d.ts +18 -8
- package/build/components/AppBody/AppBody.component.d.ts.map +1 -1
- package/build/components/AppBody/AppBody.stories.d.ts.map +1 -1
- package/build/components/AppShell/AppShell.component.d.ts +39 -15
- package/build/components/AppShell/AppShell.component.d.ts.map +1 -1
- package/build/components/AppShellProvider/AppShellProvider.component.d.ts +30 -9
- package/build/components/AppShellProvider/AppShellProvider.component.d.ts.map +1 -1
- package/build/components/Badge/Badge.component.d.ts +20 -17
- package/build/components/Badge/Badge.component.d.ts.map +1 -1
- package/build/components/Box/Box.component.d.ts +16 -10
- package/build/components/Box/Box.component.d.ts.map +1 -1
- package/build/components/Breadcrumb/Breadcrumb.component.d.ts +14 -12
- package/build/components/Breadcrumb/Breadcrumb.component.d.ts.map +1 -1
- package/build/components/Breadcrumb/Breadcrumb.stories.d.ts +1 -1
- package/build/components/BreadcrumbItem/BreadcrumbItem.component.d.ts +25 -15
- package/build/components/BreadcrumbItem/BreadcrumbItem.component.d.ts.map +1 -1
- package/build/components/BreadcrumbItem/BreadcrumbItem.stories.d.ts +1 -1
- package/build/components/Button/Button.component.d.ts +48 -16
- package/build/components/Button/Button.component.d.ts.map +1 -1
- package/build/components/ButtonRow/ButtonRow.component.d.ts +21 -7
- package/build/components/ButtonRow/ButtonRow.component.d.ts.map +1 -1
- package/build/components/Card/Card.component.d.ts +13 -7
- package/build/components/Card/Card.component.d.ts.map +1 -1
- package/build/components/Checkbox/Checkbox.component.d.ts +69 -21
- package/build/components/Checkbox/Checkbox.component.d.ts.map +1 -1
- package/build/components/CheckboxGroup/CheckboxGroup.component.d.ts +43 -16
- package/build/components/CheckboxGroup/CheckboxGroup.component.d.ts.map +1 -1
- package/build/components/Code/Code.component.d.ts +17 -6
- package/build/components/Code/Code.component.d.ts.map +1 -1
- package/build/components/CodeBlock/CodeBlock.component.d.ts +39 -13
- package/build/components/CodeBlock/CodeBlock.component.d.ts.map +1 -1
- package/build/components/ComboBox/ComboBox.component.d.ts +70 -33
- package/build/components/ComboBox/ComboBox.component.d.ts.map +1 -1
- package/build/components/ComboBoxOption/ComboBoxOption.component.d.ts +22 -8
- package/build/components/ComboBoxOption/ComboBoxOption.component.d.ts.map +1 -1
- package/build/components/Container/Container.component.d.ts +20 -8
- package/build/components/Container/Container.component.d.ts.map +1 -1
- package/build/components/ContentAreaToolbar/ContentAreaToolbar.component.d.ts +11 -8
- package/build/components/ContentAreaToolbar/ContentAreaToolbar.component.d.ts.map +1 -1
- package/build/components/ContentContainer/ContentContainer.component.d.ts +10 -11
- package/build/components/ContentContainer/ContentContainer.component.d.ts.map +1 -1
- package/build/components/ContentHeading/ContentHeading.component.d.ts +13 -11
- package/build/components/ContentHeading/ContentHeading.component.d.ts.map +1 -1
- package/build/components/DataGrid/DataGrid.component.d.ts +31 -20
- package/build/components/DataGrid/DataGrid.component.d.ts.map +1 -1
- package/build/components/DataGridCell/DataGridCell.component.d.ts +19 -7
- package/build/components/DataGridCell/DataGridCell.component.d.ts.map +1 -1
- package/build/components/DataGridCheckboxCell/DataGridCheckboxCell.component.d.ts +23 -8
- package/build/components/DataGridCheckboxCell/DataGridCheckboxCell.component.d.ts.map +1 -1
- package/build/components/DataGridFoot/DataGridFoot.component.d.ts +17 -6
- package/build/components/DataGridFoot/DataGridFoot.component.d.ts.map +1 -1
- package/build/components/DataGridHeadCell/DataGridHeadCell.component.d.ts +9 -3
- package/build/components/DataGridHeadCell/DataGridHeadCell.component.d.ts.map +1 -1
- package/build/components/DataGridRow/DataGridRow.component.d.ts +10 -4
- package/build/components/DataGridRow/DataGridRow.component.d.ts.map +1 -1
- package/build/components/DataGridToolbar/DataGridToolbar.component.d.ts +21 -9
- package/build/components/DataGridToolbar/DataGridToolbar.component.d.ts.map +1 -1
- package/build/components/DateTimePicker/DateTimePicker.component.d.ts +13 -12
- package/build/components/DateTimePicker/DateTimePicker.component.d.ts.map +1 -1
- package/build/components/DateTimePicker/DateTimePicker.mappers.d.ts +24 -0
- package/build/components/DateTimePicker/DateTimePicker.mappers.d.ts.map +1 -0
- package/build/components/DateTimePicker/DateTimePicker.types.d.ts +79 -0
- package/build/components/DateTimePicker/DateTimePicker.types.d.ts.map +1 -0
- package/build/components/Form/Form.component.d.ts +9 -4
- package/build/components/Form/Form.component.d.ts.map +1 -1
- package/build/components/FormHint/FormHint.component.d.ts +13 -4
- package/build/components/FormHint/FormHint.component.d.ts.map +1 -1
- package/build/components/FormRow/FormRow.component.d.ts +10 -6
- package/build/components/FormRow/FormRow.component.d.ts.map +1 -1
- package/build/components/FormSection/FormSection.component.d.ts +9 -4
- package/build/components/FormSection/FormSection.component.d.ts.map +1 -1
- package/build/components/FormattedText/FormattedText.component.d.ts +13 -6
- package/build/components/FormattedText/FormattedText.component.d.ts.map +1 -1
- package/build/components/Grid/Grid.component.d.ts +11 -6
- package/build/components/Grid/Grid.component.d.ts.map +1 -1
- package/build/components/GridColumn/GridColumn.component.d.ts +11 -5
- package/build/components/GridColumn/GridColumn.component.d.ts.map +1 -1
- package/build/components/GridRow/GridRow.component.d.ts +9 -6
- package/build/components/GridRow/GridRow.component.d.ts.map +1 -1
- package/build/components/HeaderContainer/HeaderContainer.component.d.ts +21 -6
- package/build/components/HeaderContainer/HeaderContainer.component.d.ts.map +1 -1
- package/build/components/Icon/Icon.component.d.ts +22 -3
- package/build/components/Icon/Icon.component.d.ts.map +1 -1
- package/build/components/InputGroup/InputGroup.component.d.ts +8 -4
- package/build/components/InputGroup/InputGroup.component.d.ts.map +1 -1
- package/build/components/IntroBox/IntroBox.component.d.ts +32 -13
- package/build/components/IntroBox/IntroBox.component.d.ts.map +1 -1
- package/build/components/JsonViewer/JsonViewer.component.d.ts +38 -11
- package/build/components/JsonViewer/JsonViewer.component.d.ts.map +1 -1
- package/build/components/Label/Label.component.d.ts +32 -10
- package/build/components/Label/Label.component.d.ts.map +1 -1
- package/build/components/LoadingIndicator/LoadingIndicator.component.d.ts +12 -8
- package/build/components/LoadingIndicator/LoadingIndicator.component.d.ts.map +1 -1
- package/build/components/MainContainer/MainContainer.component.d.ts +15 -7
- package/build/components/MainContainer/MainContainer.component.d.ts.map +1 -1
- package/build/components/MainContainerInner/MainContainerInner.component.d.ts +19 -8
- package/build/components/MainContainerInner/MainContainerInner.component.d.ts.map +1 -1
- package/build/components/MainTabs/MainTabs.component.d.ts +25 -11
- package/build/components/MainTabs/MainTabs.component.d.ts.map +1 -1
- package/build/components/Message/Message.component.d.ts +15 -8
- package/build/components/Message/Message.component.d.ts.map +1 -1
- package/build/components/Modal/Modal.component.d.ts +91 -42
- package/build/components/Modal/Modal.component.d.ts.map +1 -1
- package/build/components/ModalFooter/ModalFooter.component.d.ts +47 -21
- package/build/components/ModalFooter/ModalFooter.component.d.ts.map +1 -1
- package/build/components/NativeSelect/NativeSelect.component.d.ts +16 -6
- package/build/components/NativeSelect/NativeSelect.component.d.ts.map +1 -1
- package/build/components/NativeSelectOption/NativeSelectOption.component.d.ts +9 -5
- package/build/components/NativeSelectOption/NativeSelectOption.component.d.ts.map +1 -1
- package/build/components/NativeSelectOptionGroup/NativeSelectOptionGroup.component.d.ts +10 -6
- package/build/components/NativeSelectOptionGroup/NativeSelectOptionGroup.component.d.ts.map +1 -1
- package/build/components/Navigation/Navigation.component.d.ts +30 -10
- package/build/components/Navigation/Navigation.component.d.ts.map +1 -1
- package/build/components/NavigationItem/NavigationItem.component.d.ts +56 -17
- package/build/components/NavigationItem/NavigationItem.component.d.ts.map +1 -1
- package/build/components/PageFooter/PageFooter.component.d.ts +17 -11
- package/build/components/PageFooter/PageFooter.component.d.ts.map +1 -1
- package/build/components/PageFooter/PageFooter.stories.d.ts +1 -1
- package/build/components/PageHeader/PageHeader.component.d.ts +17 -12
- package/build/components/PageHeader/PageHeader.component.d.ts.map +1 -1
- package/build/components/Pagination/Pagination.component.d.ts +5 -3
- package/build/components/Pagination/Pagination.component.d.ts.map +1 -1
- package/build/components/Panel/Panel.component.d.ts +4 -2
- package/build/components/Panel/Panel.component.d.ts.map +1 -1
- package/build/components/PanelBody/PanelBody.component.d.ts +4 -2
- package/build/components/PanelBody/PanelBody.component.d.ts.map +1 -1
- package/build/components/PanelFooter/PanelFooter.component.d.ts +4 -2
- package/build/components/PanelFooter/PanelFooter.component.d.ts.map +1 -1
- package/build/components/Pill/Pill.component.d.ts +7 -5
- package/build/components/Pill/Pill.component.d.ts.map +1 -1
- package/build/components/PopupMenu/PopupMenu.component.d.ts +30 -22
- package/build/components/PopupMenu/PopupMenu.component.d.ts.map +1 -1
- package/build/components/PortalProvider/PortalProvider.Portal.component.d.ts +6 -3
- package/build/components/PortalProvider/PortalProvider.Portal.component.d.ts.map +1 -1
- package/build/components/PortalProvider/PortalProvider.component.d.ts +8 -3
- package/build/components/PortalProvider/PortalProvider.component.d.ts.map +1 -1
- package/build/components/Radio/Radio.component.d.ts +8 -4
- package/build/components/Radio/Radio.component.d.ts.map +1 -1
- package/build/components/RadioGroup/RadioGroup.component.d.ts +7 -5
- package/build/components/RadioGroup/RadioGroup.component.d.ts.map +1 -1
- package/build/components/SearchInput/SearchInput.component.d.ts +9 -7
- package/build/components/SearchInput/SearchInput.component.d.ts.map +1 -1
- package/build/components/SecretText/SecretText.component.d.ts +11 -7
- package/build/components/SecretText/SecretText.component.d.ts.map +1 -1
- package/build/components/Select/Select.component.d.ts +8 -6
- package/build/components/Select/Select.component.d.ts.map +1 -1
- package/build/components/SelectDivider/SelectDivider.component.d.ts +7 -3
- package/build/components/SelectDivider/SelectDivider.component.d.ts.map +1 -1
- package/build/components/SelectOption/SelectOption.component.d.ts +15 -3
- package/build/components/SelectOption/SelectOption.component.d.ts.map +1 -1
- package/build/components/ShadowRoot/ShadowRoot.component.d.ts +5 -3
- package/build/components/ShadowRoot/ShadowRoot.component.d.ts.map +1 -1
- package/build/components/SideNavigation/SideNavigation.component.d.ts +8 -6
- package/build/components/SideNavigation/SideNavigation.component.d.ts.map +1 -1
- package/build/components/SideNavigationGroup/SideNavigationGroup.component.d.ts +5 -2
- package/build/components/SideNavigationGroup/SideNavigationGroup.component.d.ts.map +1 -1
- package/build/components/SideNavigationItem/SideNavigationItem.component.d.ts +7 -4
- package/build/components/SideNavigationItem/SideNavigationItem.component.d.ts.map +1 -1
- package/build/components/SideNavigationList/SideNavigationList.component.d.ts +10 -2
- package/build/components/SideNavigationList/SideNavigationList.component.d.ts.map +1 -1
- package/build/components/SideNavigationList/SideNavigationList.stories.d.ts.map +1 -1
- package/build/components/SignInForm/SignInForm.component.d.ts +39 -0
- package/build/components/SignInForm/SignInForm.component.d.ts.map +1 -0
- package/build/components/SignInForm/SignInForm.stories.d.ts +8 -0
- package/build/components/SignInForm/SignInForm.stories.d.ts.map +1 -0
- package/build/components/SignInForm/SignInForm.test.d.ts +2 -0
- package/build/components/SignInForm/SignInForm.test.d.ts.map +1 -0
- package/build/components/SignInForm/index.d.ts +3 -0
- package/build/components/SignInForm/index.d.ts.map +1 -0
- package/build/components/SortButton/SortButton.component.d.ts +14 -3
- package/build/components/SortButton/SortButton.component.d.ts.map +1 -1
- package/build/components/SortButton/SortButton.stories.d.ts.map +1 -1
- package/build/components/Spinner/Spinner.component.d.ts +8 -5
- package/build/components/Spinner/Spinner.component.d.ts.map +1 -1
- package/build/components/Stack/Stack.component.d.ts +6 -4
- package/build/components/Stack/Stack.component.d.ts.map +1 -1
- package/build/components/StyleProvider/StyleProvider.component.d.ts +3 -0
- package/build/components/StyleProvider/StyleProvider.component.d.ts.map +1 -1
- package/build/components/Switch/Switch.component.d.ts +8 -5
- package/build/components/Switch/Switch.component.d.ts.map +1 -1
- package/build/components/Tab/Tab.component.d.ts +9 -11
- package/build/components/Tab/Tab.component.d.ts.map +1 -1
- package/build/components/TabList/TabList.component.d.ts +9 -6
- package/build/components/TabList/TabList.component.d.ts.map +1 -1
- package/build/components/TabNavigation/TabNavigation.component.d.ts +8 -4
- package/build/components/TabNavigation/TabNavigation.component.d.ts.map +1 -1
- package/build/components/TabNavigationItem/TabNavigationItem.component.d.ts +11 -7
- package/build/components/TabNavigationItem/TabNavigationItem.component.d.ts.map +1 -1
- package/build/components/TabPanel/TabPanel.component.d.ts +7 -10
- package/build/components/TabPanel/TabPanel.component.d.ts.map +1 -1
- package/build/components/Tabs/Tabs.component.d.ts +9 -7
- package/build/components/Tabs/Tabs.component.d.ts.map +1 -1
- package/build/components/TextInput/TextInput.component.d.ts +11 -9
- package/build/components/TextInput/TextInput.component.d.ts.map +1 -1
- package/build/components/Textarea/Textarea.component.d.ts +11 -9
- package/build/components/Textarea/Textarea.component.d.ts.map +1 -1
- package/build/components/ThemeToggle/ThemeToggle.component.d.ts +4 -2
- package/build/components/ThemeToggle/ThemeToggle.component.d.ts.map +1 -1
- package/build/components/Toast/Toast.component.d.ts +8 -6
- package/build/components/Toast/Toast.component.d.ts.map +1 -1
- package/build/components/ToggleButton/ToggleButton.component.d.ts +21 -0
- package/build/components/ToggleButton/ToggleButton.component.d.ts.map +1 -1
- package/build/components/ToggleButton/ToggleButton.stories.d.ts.map +1 -1
- package/build/components/Tooltip/Tooltip.component.d.ts +8 -5
- package/build/components/Tooltip/Tooltip.component.d.ts.map +1 -1
- package/build/components/TooltipContent/TooltipContent.component.d.ts +5 -3
- package/build/components/TooltipContent/TooltipContent.component.d.ts.map +1 -1
- package/build/components/TooltipTrigger/TooltipTrigger.component.d.ts +5 -3
- package/build/components/TooltipTrigger/TooltipTrigger.component.d.ts.map +1 -1
- package/build/components/TopNavigation/TopNavigation.component.d.ts +8 -6
- package/build/components/TopNavigation/TopNavigation.component.d.ts.map +1 -1
- package/build/components/TopNavigationItem/TopNavigationItem.component.d.ts +10 -8
- package/build/components/TopNavigationItem/TopNavigationItem.component.d.ts.map +1 -1
- package/build/components/withDeprecationWarning/withDeprecationWarning.component.d.ts.map +1 -1
- package/build/index.d.ts +3 -0
- package/build/index.d.ts.map +1 -1
- package/build/index.js +3618 -3568
- package/build/juno-ui-components.css +1 -1
- package/package.json +1 -5
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface ContentContainerProps extends
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export interface ContentContainerProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
3
|
/**
|
|
4
|
-
* Additional CSS
|
|
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
|
|
14
|
-
* It
|
|
15
|
-
*
|
|
16
|
-
*
|
|
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:
|
|
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,
|
|
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 {
|
|
2
|
-
export interface ContentHeadingProps extends
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export interface ContentHeadingProps extends HTMLAttributes<HTMLHeadingElement> {
|
|
3
3
|
/**
|
|
4
|
-
* Custom content to render within the
|
|
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
|
|
10
|
-
*
|
|
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
|
-
*
|
|
14
|
+
* Custom CSS classes for styling the heading.
|
|
15
|
+
* @default ""
|
|
15
16
|
*/
|
|
16
17
|
className?: string;
|
|
17
18
|
}
|
|
18
19
|
/**
|
|
19
|
-
* ContentHeading represents the
|
|
20
|
-
*
|
|
21
|
-
*
|
|
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:
|
|
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,
|
|
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 {
|
|
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
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
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:
|
|
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
|
|
16
|
-
/**
|
|
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
|
-
/**
|
|
20
|
+
/**
|
|
21
|
+
* Defines maximum column sizing.
|
|
22
|
+
* @default "auto"
|
|
23
|
+
*/
|
|
19
24
|
columnMaxSize?: string;
|
|
20
|
-
/**
|
|
25
|
+
/**
|
|
26
|
+
* Specifies minimum column size.
|
|
27
|
+
* @default "0px"
|
|
28
|
+
*/
|
|
21
29
|
columnMinSize?: string;
|
|
22
|
-
/**
|
|
30
|
+
/** Array of indices for columns sized by minimum content. */
|
|
23
31
|
minContentColumns?: number[];
|
|
24
|
-
/**
|
|
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
|
-
/**
|
|
29
|
-
*
|
|
34
|
+
/**
|
|
35
|
+
* Vertical alignment for all grid cells, using a flexbox column layout.
|
|
36
|
+
* @default "center"
|
|
37
|
+
*/
|
|
30
38
|
cellVerticalAlignment?: CellVerticalAlignmentType;
|
|
31
|
-
/**
|
|
32
|
-
children?:
|
|
33
|
-
/**
|
|
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,
|
|
1
|
+
{"version":3,"file":"DataGrid.component.d.ts","sourceRoot":"","sources":["../../../src/components/DataGrid/DataGrid.component.tsx"],"names":[],"mappings":"AAKA,OAAc,EAAiB,cAAc,EAAE,SAAS,EAAc,MAAM,OAAO,CAAA;AAyCnF,UAAU,mBAAmB;IAC3B,qBAAqB,CAAC,EAAE,yBAAyB,CAAA;CAClD;AAID,eAAO,MAAM,kBAAkB,2BAAoC,CAAA;AAGnE;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,GAAI,wIAUtB,aAAa,KAAG,SAiBlB,CAAA;AAED,MAAM,MAAM,yBAAyB,GAAG,QAAQ,GAAG,KAAK,CAAA;AAExD,MAAM,WAAW,aAAc,SAAQ,cAAc,CAAC,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
|
|
4
|
-
/**
|
|
9
|
+
export interface DataGridCellProps extends HTMLAttributes<HTMLDivElement> {
|
|
10
|
+
/** Defines the number of columns the cell spans. */
|
|
5
11
|
colSpan?: number;
|
|
6
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* If set, content within the cell will not wrap.
|
|
14
|
+
* @default false
|
|
15
|
+
*/
|
|
7
16
|
nowrap?: boolean;
|
|
8
|
-
/**
|
|
9
|
-
children?:
|
|
10
|
-
/**
|
|
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,
|
|
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 {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* Determines if the checkbox is disabled.
|
|
17
|
+
* @default false
|
|
18
|
+
*/
|
|
7
19
|
disabled?: boolean;
|
|
8
|
-
/**
|
|
20
|
+
/**
|
|
21
|
+
* Additional class names for styling.
|
|
22
|
+
* @default ""
|
|
23
|
+
*/
|
|
9
24
|
className?: string;
|
|
10
|
-
/**
|
|
11
|
-
onChange?:
|
|
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,
|
|
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 {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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,
|
|
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
|
|
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?:
|
|
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,
|
|
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
|
|
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:
|
|
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?:
|
|
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,
|
|
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 {
|
|
2
|
-
/**
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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,
|
|
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 {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export
|
|
9
|
-
|
|
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
|
|
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
|
|
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,"file":"DateTimePicker.component.d.ts","sourceRoot":"","sources":["../../../src/components/DateTimePicker/DateTimePicker.component.tsx"],"names":[],"mappings":"AAKA,
|
|
1
|
+
{"version":3,"file":"DateTimePicker.component.d.ts","sourceRoot":"","sources":["../../../src/components/DateTimePicker/DateTimePicker.component.tsx"],"names":[],"mappings":"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"}
|
|
@@ -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":"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"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import {
|
|
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
|
-
*
|
|
19
|
-
*
|
|
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:
|
|
26
|
+
export declare const Form: ({ title, className, children, ...props }: FormProps) => ReactNode;
|
|
22
27
|
//# sourceMappingURL=Form.component.d.ts.map
|