@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Label.component.d.ts","sourceRoot":"","sources":["../../../src/components/Label/Label.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"Label.component.d.ts","sourceRoot":"","sources":["../../../src/components/Label/Label.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAc,cAAc,EAAE,MAAM,OAAO,CAAA;AAsCzD;;;;;GAKG;AACH,eAAO,MAAM,KAAK,qFA0CjB,CAAA;AAID,MAAM,WAAW,UAAW,SAAQ,cAAc,CAAC,gBAAgB,CAAC;IAClE;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface LoadingIndicatorProps extends
|
|
1
|
+
import { ReactNode, SVGAttributes } from 'react';
|
|
2
|
+
export interface LoadingIndicatorProps extends SVGAttributes<SVGElement> {
|
|
3
3
|
/**
|
|
4
|
-
* The size of the LoadingIndicator in pixels.
|
|
5
|
-
*
|
|
6
|
-
*
|
|
4
|
+
* The size of the LoadingIndicator in pixels. Must be a positive number value.
|
|
5
|
+
* If a string, must be a valid number.
|
|
6
|
+
* @default 96
|
|
7
7
|
*/
|
|
8
8
|
size?: string | number;
|
|
9
9
|
/**
|
|
@@ -15,12 +15,16 @@ export interface LoadingIndicatorProps extends React.SVGAttributes<SVGElement> {
|
|
|
15
15
|
color?: string;
|
|
16
16
|
/**
|
|
17
17
|
* Additional CSS classes for custom styling.
|
|
18
|
+
* @default ""
|
|
18
19
|
*/
|
|
19
20
|
className?: string;
|
|
20
21
|
}
|
|
21
22
|
/**
|
|
22
|
-
*
|
|
23
|
-
*
|
|
23
|
+
* The `LoadingIndicator` visually represents ongoing loading processes for pages,
|
|
24
|
+
* large sections, or panels, offering custom size and color adjustments.
|
|
25
|
+
* It's suitable for prominent loading displays rather than granular elements.
|
|
26
|
+
* @see https://cloudoperators.github.io/juno/?path=/docs/components-loadingindicator--docs
|
|
27
|
+
* @see {@link LoadingIndicatorProps}
|
|
24
28
|
*/
|
|
25
|
-
export declare const LoadingIndicator:
|
|
29
|
+
export declare const LoadingIndicator: ({ size, color, className, ...props }: LoadingIndicatorProps) => ReactNode;
|
|
26
30
|
//# sourceMappingURL=LoadingIndicator.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoadingIndicator.component.d.ts","sourceRoot":"","sources":["../../../src/components/LoadingIndicator/LoadingIndicator.component.tsx"],"names":[],"mappings":"AAKA,
|
|
1
|
+
{"version":3,"file":"LoadingIndicator.component.d.ts","sourceRoot":"","sources":["../../../src/components/LoadingIndicator/LoadingIndicator.component.tsx"],"names":[],"mappings":"AAKA,OAAc,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAGvD,MAAM,WAAW,qBAAsB,SAAQ,aAAa,CAAC,UAAU,CAAC;IACtE;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAEtB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAID;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,GAAI,sCAK9B,qBAAqB,KAAG,SAgB1B,CAAA"}
|
|
@@ -1,12 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
3
|
+
* The `MainContainer` is the core container for application content, ideal for manual scaffold setups.
|
|
4
|
+
* In most instances, `AppShell` offers a comprehensive layout alternative.
|
|
5
|
+
* @see https://cloudoperators.github.io/juno/?path=/docs/internal-maincontainer--docs
|
|
6
|
+
* @see {@link MainContainerProps}
|
|
5
7
|
*/
|
|
6
|
-
export declare const MainContainer:
|
|
7
|
-
export interface MainContainerProps extends
|
|
8
|
-
/**
|
|
8
|
+
export declare const MainContainer: ({ className, children, ...props }: MainContainerProps) => ReactNode;
|
|
9
|
+
export interface MainContainerProps extends HTMLAttributes<HTMLElement> {
|
|
10
|
+
/**
|
|
11
|
+
* Custom CSS class names for styling the main container.
|
|
12
|
+
* @default ""
|
|
13
|
+
*/
|
|
9
14
|
className?: string;
|
|
10
|
-
|
|
15
|
+
/**
|
|
16
|
+
* Components or content to render within the main container.
|
|
17
|
+
*/
|
|
18
|
+
children?: ReactNode;
|
|
11
19
|
}
|
|
12
20
|
//# sourceMappingURL=MainContainer.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MainContainer.component.d.ts","sourceRoot":"","sources":["../../../src/components/MainContainer/MainContainer.component.tsx"],"names":[],"mappings":"AAKA,
|
|
1
|
+
{"version":3,"file":"MainContainer.component.d.ts","sourceRoot":"","sources":["../../../src/components/MainContainer/MainContainer.component.tsx"],"names":[],"mappings":"AAKA,OAAc,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAQxD;;;;;GAKG;AACH,eAAO,MAAM,aAAa,GAAI,mCAAwC,kBAAkB,KAAG,SAM1F,CAAA;AAED,MAAM,WAAW,kBAAmB,SAAQ,cAAc,CAAC,WAAW,CAAC;IACrE;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB"}
|
|
@@ -1,12 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
/**
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* `MainContainerInner` offers a structured inner wrapper for page content, enabling width constraints
|
|
4
|
+
* or full-width rendering as needed.
|
|
5
|
+
*/
|
|
6
|
+
export declare const MainContainerInner: ({ children, fullWidth, className, ...props }: MainContainerInnerProps) => ReactNode;
|
|
7
|
+
export interface MainContainerInnerProps extends HTMLAttributes<HTMLDivElement> {
|
|
8
|
+
/**
|
|
9
|
+
* The children to render within the container.
|
|
10
|
+
*/
|
|
11
|
+
children?: ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* Determines if content stretches to full viewport width.
|
|
14
|
+
* @default false
|
|
15
|
+
*/
|
|
8
16
|
fullWidth?: boolean;
|
|
9
|
-
/**
|
|
17
|
+
/**
|
|
18
|
+
* Custom CSS class names for stylized rendering.
|
|
19
|
+
* @default ""
|
|
20
|
+
*/
|
|
10
21
|
className?: string;
|
|
11
22
|
}
|
|
12
23
|
//# sourceMappingURL=MainContainerInner.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MainContainerInner.component.d.ts","sourceRoot":"","sources":["../../../src/components/MainContainerInner/MainContainerInner.component.tsx"],"names":[],"mappings":"AAKA,
|
|
1
|
+
{"version":3,"file":"MainContainerInner.component.d.ts","sourceRoot":"","sources":["../../../src/components/MainContainerInner/MainContainerInner.component.tsx"],"names":[],"mappings":"AAKA,OAAc,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAYxD;;;GAGG;AACH,eAAO,MAAM,kBAAkB,GAAI,8CAKhC,uBAAuB,KAAG,SAa5B,CAAA;AAED,MAAM,WAAW,uBAAwB,SAAQ,cAAc,CAAC,cAAc,CAAC;IAC7E;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;IAEpB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IAEnB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB"}
|
|
@@ -1,18 +1,32 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
/**
|
|
3
|
-
|
|
3
|
+
* `MainTabs` represents primary tab navigation at the content area's top, for complete content switching.
|
|
4
|
+
* Ideal for major interface tabbing; use `Tabs` for partial content areas.
|
|
5
|
+
* @see https://cloudoperators.github.io/juno/?path=/docs/layout-tabs-maintabs--docs
|
|
6
|
+
* @see {@link MainTabsProps}
|
|
4
7
|
*/
|
|
5
|
-
export declare const MainTabs:
|
|
6
|
-
export interface MainTabsProps extends Omit<
|
|
7
|
-
/**
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
export declare const MainTabs: ({ children, defaultIndex, selectedIndex, onSelect, className, ...props }: MainTabsProps) => ReactNode;
|
|
9
|
+
export interface MainTabsProps extends Omit<HTMLAttributes<HTMLElement>, "onSelect"> {
|
|
10
|
+
/**
|
|
11
|
+
* All the child elements of MainTabs: Tab(s) inside a TabList and TabPanel(s).
|
|
12
|
+
*/
|
|
13
|
+
children?: ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* The index of the Tab to be selected by default in "Uncontrolled Mode" (default) where Tabs handle their state internally. Do not use in "Controlled Mode".
|
|
16
|
+
*/
|
|
10
17
|
defaultIndex?: number;
|
|
11
|
-
/**
|
|
18
|
+
/**
|
|
19
|
+
* The index of the Tab to be selected by default. This enables "Controlled Mode" where the developer takes over control of the Tabs state and behaviour. Requires onSelect to be set.
|
|
20
|
+
*/
|
|
12
21
|
selectedIndex?: number | null;
|
|
13
|
-
/**
|
|
14
|
-
|
|
15
|
-
|
|
22
|
+
/**
|
|
23
|
+
* Handler required in "Controlled Mode".
|
|
24
|
+
*/
|
|
25
|
+
onSelect?: (_value: number) => void;
|
|
26
|
+
/**
|
|
27
|
+
* Add a custom className to the whole Tabs construct.
|
|
28
|
+
* @default ""
|
|
29
|
+
*/
|
|
16
30
|
className?: string;
|
|
17
31
|
}
|
|
18
32
|
//# sourceMappingURL=MainTabs.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MainTabs.component.d.ts","sourceRoot":"","sources":["../../../src/components/MainTabs/MainTabs.component.tsx"],"names":[],"mappings":"AAKA,
|
|
1
|
+
{"version":3,"file":"MainTabs.component.d.ts","sourceRoot":"","sources":["../../../src/components/MainTabs/MainTabs.component.tsx"],"names":[],"mappings":"AAKA,OAAc,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGxD;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,GAAI,0EAOtB,aAAa,KAAG,SAalB,CAAA;AAED,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,UAAU,CAAC;IAClF;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;IAEpB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IAErB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAE7B;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;IAEnC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB"}
|
|
@@ -1,31 +1,35 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactNode, HTMLAttributes } from 'react';
|
|
2
2
|
export type MessageVariantType = "info" | "warning" | "danger" | "error" | "success";
|
|
3
|
-
export interface MessageProps extends
|
|
3
|
+
export interface MessageProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Optional title for the message.
|
|
6
6
|
*/
|
|
7
7
|
title?: string;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Optional string of text to be rendered as content.
|
|
10
10
|
* Alternatively, content can be passed as children (see below).
|
|
11
11
|
* If children are provided, they will take precedence.
|
|
12
12
|
*/
|
|
13
13
|
text?: string;
|
|
14
14
|
/**
|
|
15
15
|
* Specify an optional semantic variant that determines the appearance of a message.
|
|
16
|
+
* @default "info"
|
|
16
17
|
*/
|
|
17
18
|
variant?: MessageVariantType;
|
|
18
19
|
/**
|
|
19
20
|
* Optional. If true, the message will have a 'close' button to dismiss it.
|
|
21
|
+
* @default false
|
|
20
22
|
*/
|
|
21
23
|
dismissible?: boolean;
|
|
22
24
|
/**
|
|
23
25
|
* Optional. If true, the message will be automatically dismissed after the default or passed autoDismissTimeout.
|
|
26
|
+
* @default false
|
|
24
27
|
*/
|
|
25
28
|
autoDismiss?: boolean;
|
|
26
29
|
/**
|
|
27
30
|
* Optional. The timeout in milliseconds after which the message auto-dismisses.
|
|
28
31
|
* By default 10000 (10s).
|
|
32
|
+
* @default 10000
|
|
29
33
|
*/
|
|
30
34
|
autoDismissTimeout?: number;
|
|
31
35
|
/**
|
|
@@ -34,17 +38,20 @@ export interface MessageProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
34
38
|
onDismiss?: () => void;
|
|
35
39
|
/**
|
|
36
40
|
* Pass an optional CSS class to apply to the message.
|
|
41
|
+
* @default ""
|
|
37
42
|
*/
|
|
38
43
|
className?: string;
|
|
39
44
|
/**
|
|
40
45
|
* Pass optional React nodes or a collection of React nodes to be rendered as content.
|
|
41
46
|
* Takes precedence over the text property.
|
|
42
47
|
*/
|
|
43
|
-
children?:
|
|
48
|
+
children?: ReactNode;
|
|
44
49
|
}
|
|
45
50
|
/**
|
|
46
|
-
*
|
|
47
|
-
*
|
|
51
|
+
* The `Message` component displays important information or alerts concerning the content,
|
|
52
|
+
* page state, or the view's purpose, with support for dismissible and auto-dismiss features.
|
|
53
|
+
* @see https://cloudoperators.github.io/juno/?path=/docs/components-message--docs
|
|
54
|
+
* @see {@link MessageProps}
|
|
48
55
|
*/
|
|
49
|
-
export declare const Message:
|
|
56
|
+
export declare const Message: ({ title, variant, dismissible, autoDismiss, autoDismissTimeout, onDismiss, className, ...props }: MessageProps) => ReactNode;
|
|
50
57
|
//# sourceMappingURL=Message.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Message.component.d.ts","sourceRoot":"","sources":["../../../src/components/Message/Message.component.tsx"],"names":[],"mappings":"AAKA,
|
|
1
|
+
{"version":3,"file":"Message.component.d.ts","sourceRoot":"","sources":["../../../src/components/Message/Message.component.tsx"],"names":[],"mappings":"AAKA,OAAc,EAAiD,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AA0DvG,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAA;AAEpF,MAAM,WAAW,YAAa,SAAQ,cAAc,CAAC,cAAc,CAAC;IAClE;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;;OAGG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAA;IAE5B;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IAErB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IAErB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAE3B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IAEtB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB;AA6FD;;;;;GAKG;AACH,eAAO,MAAM,OAAO,GAAI,kGASrB,YAAY,KAAG,SAgDjB,CAAA"}
|
|
@@ -1,65 +1,114 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactNode, MouseEvent, HTMLProps, ReactElement, MouseEventHandler } from 'react';
|
|
2
2
|
import { KnownIcons } from '../Icon/Icon.component';
|
|
3
3
|
/**
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
The Modal uses a boolean 'open' prop to determine whether it is open or not. Alternatively, the open state can be handled outside the component, e.g. in a global state. In this case the 'open' prop needs to be passed as true always, otherwise the Modal component will not render.
|
|
11
|
-
|
|
12
|
-
By default, the modal will close (i.e. set its `open` state to false) once the user cancels the Modal. When confirming, you will have to either set the `open` to false to close the modal, or use whatever global state mechanism you have to handle modals.
|
|
13
|
-
|
|
14
|
-
To make the modal less intrusive and effectively un-modal it, pass `closeOnBackdropClick`. This will close the modal when the user clicks the modal backdrop.
|
|
15
|
-
*/
|
|
16
|
-
export declare const Modal: React.FC<ModalProps>;
|
|
4
|
+
* The `Modal` component provides a flexible dialog window for user interactions,
|
|
5
|
+
* supporting titles, dismissal controls, sizing options, and comprehensive footer configurations.
|
|
6
|
+
* @see https://cloudoperators.github.io/juno/?path=/docs/components-modal-modal--docs
|
|
7
|
+
* @see {@link ModalProps}
|
|
8
|
+
*/
|
|
9
|
+
export declare const Modal: ({ title, heading, ariaLabel, initialFocus, open, closeable, closeOnEsc, closeOnBackdropClick, disableCloseButton, size, unpad, className, children, modalFooter, confirmButtonLabel, cancelButtonLabel, confirmButtonIcon, cancelButtonIcon, disableConfirmButton, disableCancelButton, onConfirm, onCancel, ...props }: ModalProps) => ReactNode;
|
|
17
10
|
type ModalSize = "small" | "large" | "xl" | "2xl";
|
|
18
|
-
export interface ModalProps extends Omit<
|
|
19
|
-
/**
|
|
11
|
+
export interface ModalProps extends Omit<HTMLProps<HTMLDivElement>, "size" | "title"> {
|
|
12
|
+
/**
|
|
13
|
+
* The title of the modal. This will be rendering as the heading of the modal, and the modal's `aria-labelledby` attribute will reference the title/heading element. If the modal does not have `title` or `heading`, use `ariaLabel` to provide an accessible name for the modal.
|
|
14
|
+
*/
|
|
20
15
|
title?: ReactNode;
|
|
21
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* Also the title of the modal, just for API flexibility. If both `title` and `heading` are passed, `title` will take precedence.
|
|
18
|
+
*/
|
|
22
19
|
heading?: ReactNode;
|
|
23
|
-
/**
|
|
20
|
+
/**
|
|
21
|
+
* The aria-label of the modal. Use only if the modal does NOT have a `title` or `heading`.
|
|
22
|
+
*/
|
|
24
23
|
ariaLabel?: string;
|
|
25
|
-
/**
|
|
24
|
+
/**
|
|
25
|
+
* By default, the first element in the tab order of the Modal content will be focussed. To specify an element to be focussed when the modal opens, pass an element, DOM node, or selector string.
|
|
26
|
+
*/
|
|
26
27
|
initialFocus?: HTMLElement | SVGElement | string;
|
|
27
|
-
/**
|
|
28
|
+
/**
|
|
29
|
+
* Whether the modal will be open.
|
|
30
|
+
* @default false
|
|
31
|
+
*/
|
|
28
32
|
open?: boolean;
|
|
29
|
-
/**
|
|
33
|
+
/**
|
|
34
|
+
* Whether the modal can be closed using an "X"-Button at the top right.
|
|
35
|
+
* @default true
|
|
36
|
+
*/
|
|
30
37
|
closeable?: boolean;
|
|
31
|
-
/**
|
|
32
|
-
|
|
33
|
-
|
|
38
|
+
/**
|
|
39
|
+
* Whether the modal should be closed when the backdrop is clicked. Essentially 'un-modals' the modal.
|
|
40
|
+
* @default false
|
|
41
|
+
*/
|
|
34
42
|
closeOnBackdropClick?: boolean;
|
|
35
|
-
/**
|
|
43
|
+
/**
|
|
44
|
+
* Determines whether the close button should be disabled.
|
|
45
|
+
* @default false
|
|
46
|
+
*/
|
|
36
47
|
disableCloseButton?: boolean;
|
|
37
|
-
/**
|
|
48
|
+
/**
|
|
49
|
+
* Whether the modal can be closed by hitting the ESC key.
|
|
50
|
+
* @default true
|
|
51
|
+
*/
|
|
52
|
+
closeOnEsc?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* The Modal size, determines the aesthetics of the modal.
|
|
55
|
+
* @default small
|
|
56
|
+
*/
|
|
38
57
|
size?: ModalSize;
|
|
39
|
-
/**
|
|
58
|
+
/**
|
|
59
|
+
* Pass to remove default padding from the content area of the modal.
|
|
60
|
+
* @default false
|
|
61
|
+
*/
|
|
40
62
|
unpad?: boolean;
|
|
41
|
-
/**
|
|
63
|
+
/**
|
|
64
|
+
* Custom className to add to the modal for additional styling.
|
|
65
|
+
* @default ""
|
|
66
|
+
*/
|
|
42
67
|
className?: string;
|
|
43
|
-
/**
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
/**
|
|
68
|
+
/**
|
|
69
|
+
* The children of the modal. These will be rendered as the modal content. To render custom buttons at the bottom, see `modalFooter` below.
|
|
70
|
+
*/
|
|
71
|
+
children?: ReactNode;
|
|
72
|
+
/**
|
|
73
|
+
* Optional. Pass a `<ModalFooter />` component with custom content as required. Will default to using the `<ModalFooter/>` component internally.
|
|
74
|
+
*/
|
|
75
|
+
modalFooter?: ReactElement;
|
|
76
|
+
/**
|
|
77
|
+
* Pass a label to render a confirm button and a Cancel button.
|
|
78
|
+
* @default ""
|
|
79
|
+
*/
|
|
48
80
|
confirmButtonLabel?: string;
|
|
49
|
-
/**
|
|
81
|
+
/**
|
|
82
|
+
* Pass a label for the cancel button. Defaults to "Cancel".
|
|
83
|
+
* @default "Cancel"
|
|
84
|
+
*/
|
|
50
85
|
cancelButtonLabel?: string;
|
|
51
|
-
/**
|
|
86
|
+
/**
|
|
87
|
+
* Pass an Icon name to show on the confirming action button.
|
|
88
|
+
*/
|
|
52
89
|
confirmButtonIcon?: KnownIcons;
|
|
53
|
-
/**
|
|
90
|
+
/**
|
|
91
|
+
* Pass an icon name to show on the cancelling button.
|
|
92
|
+
*/
|
|
54
93
|
cancelButtonIcon?: KnownIcons;
|
|
55
|
-
/**
|
|
94
|
+
/**
|
|
95
|
+
* Determines whether the confirm action button should be disabled.
|
|
96
|
+
* @default false
|
|
97
|
+
*/
|
|
56
98
|
disableConfirmButton?: boolean;
|
|
57
|
-
/**
|
|
99
|
+
/**
|
|
100
|
+
* Determines whether the cancel action button should be disabled.
|
|
101
|
+
* @default false
|
|
102
|
+
*/
|
|
58
103
|
disableCancelButton?: boolean;
|
|
59
|
-
/**
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
104
|
+
/**
|
|
105
|
+
* A handler to execute once the modal is confirmed by clicking the confirm button if exists. Note that we do not close the modal automatically.
|
|
106
|
+
*/
|
|
107
|
+
onConfirm?: MouseEventHandler<HTMLElement>;
|
|
108
|
+
/**
|
|
109
|
+
* A handler to execute once the modal is cancelled or dismissed using the x-Close button, Cancel-button or pressing ESC.
|
|
110
|
+
*/
|
|
111
|
+
onCancel?: (_event: MouseEvent<HTMLElement> | KeyboardEvent) => void;
|
|
63
112
|
}
|
|
64
113
|
export {};
|
|
65
114
|
//# sourceMappingURL=Modal.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.component.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/Modal.component.tsx"],"names":[],"mappings":"AAKA,
|
|
1
|
+
{"version":3,"file":"Modal.component.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/Modal.component.tsx"],"names":[],"mappings":"AAKA,OAAc,EAKZ,SAAS,EACT,UAAU,EACV,SAAS,EACT,YAAY,EACZ,iBAAiB,EAClB,MAAM,OAAO,CAAA;AAId,OAAO,EAAQ,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAiEzD;;;;;GAKG;AACH,eAAO,MAAM,KAAK,GAAI,yTAwBnB,UAAU,KAAG,SA4If,CAAA;AAED,KAAK,SAAS,GAAG,OAAO,GAAG,OAAO,GAAG,IAAI,GAAG,KAAK,CAAA;AAEjD,MAAM,WAAW,UAAW,SAAQ,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACnF;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAA;IAEjB;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,CAAA;IAEnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,YAAY,CAAC,EAAE,WAAW,GAAG,UAAU,GAAG,MAAM,CAAA;IAEhD;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;IAEd;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IAEnB;;;OAGG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAE9B;;;OAGG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAE5B;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IAEpB;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,CAAA;IAEhB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IAEf;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;IAEpB;;OAEG;IACH,WAAW,CAAC,EAAE,YAAY,CAAA;IAE1B;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAE3B;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAE1B;;OAEG;IACH,iBAAiB,CAAC,EAAE,UAAU,CAAA;IAE9B;;OAEG;IACH,gBAAgB,CAAC,EAAE,UAAU,CAAA;IAE7B;;;OAGG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAE9B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAE7B;;OAEG;IACH,SAAS,CAAC,EAAE,iBAAiB,CAAC,WAAW,CAAC,CAAA;IAE1C;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC,GAAG,aAAa,KAAK,IAAI,CAAA;CACrE"}
|
|
@@ -1,32 +1,58 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactNode, MouseEventHandler, HTMLProps } from 'react';
|
|
2
2
|
import { KnownIcons } from '../Icon/Icon.component';
|
|
3
3
|
/**
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export
|
|
11
|
-
|
|
4
|
+
* The `ModalFooter` component is a versatile footer meant for the `Modal`, offering
|
|
5
|
+
* default or customizable confirm and cancel buttons, and an option to pass
|
|
6
|
+
* custom content.
|
|
7
|
+
* @see https://cloudoperators.github.io/juno/?path=/docs/components-modal-modalfooter--docs
|
|
8
|
+
* @see {@link ModalFooterProps}
|
|
9
|
+
*/
|
|
10
|
+
export declare const ModalFooter: ({ className, children, confirmButtonLabel, cancelButtonLabel, confirmButtonIcon, cancelButtonIcon, disableConfirmButton, disableCancelButton, onConfirm, onCancel, ...props }: ModalFooterProps) => ReactNode;
|
|
11
|
+
export interface ModalFooterProps extends HTMLProps<HTMLDivElement> {
|
|
12
|
+
/**
|
|
13
|
+
* A custom className. Useful to configure flex items alignment when passing custom content as children.
|
|
14
|
+
* @default ""
|
|
15
|
+
*/
|
|
12
16
|
className?: string;
|
|
13
|
-
/**
|
|
14
|
-
|
|
15
|
-
|
|
17
|
+
/**
|
|
18
|
+
* Custom children content replacing default button structure.
|
|
19
|
+
*/
|
|
20
|
+
children?: ReactNode;
|
|
21
|
+
/**
|
|
22
|
+
* The label for the Confirm-button. When passed, the component will render a Confirm button and a cancel button, otherwise the component will ONLY render a Close-Button.
|
|
23
|
+
* @default ""
|
|
24
|
+
*/
|
|
16
25
|
confirmButtonLabel?: string;
|
|
17
|
-
/**
|
|
26
|
+
/**
|
|
27
|
+
* Custom label for the cancel button. ONLY has an effect if a `confirmButtonLabel` is passed.
|
|
28
|
+
* @default "Close"
|
|
29
|
+
*/
|
|
18
30
|
cancelButtonLabel?: string;
|
|
19
|
-
/**
|
|
31
|
+
/**
|
|
32
|
+
* Pass an Icon name to show on the confirming action button.
|
|
33
|
+
*/
|
|
20
34
|
confirmButtonIcon?: KnownIcons;
|
|
21
|
-
/**
|
|
35
|
+
/**
|
|
36
|
+
* Pass an icon name to show on the cancelling button.
|
|
37
|
+
*/
|
|
22
38
|
cancelButtonIcon?: KnownIcons;
|
|
23
|
-
/**
|
|
39
|
+
/**
|
|
40
|
+
* Determines whether the confirm action button should be disabled.
|
|
41
|
+
* @default false
|
|
42
|
+
*/
|
|
24
43
|
disableConfirmButton?: boolean;
|
|
25
|
-
/**
|
|
44
|
+
/**
|
|
45
|
+
* Determines whether the cancel action button should be disabled.
|
|
46
|
+
* @default false
|
|
47
|
+
*/
|
|
26
48
|
disableCancelButton?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
49
|
+
/**
|
|
50
|
+
* Handler to execute once the confirming button is clicked.
|
|
51
|
+
*/
|
|
52
|
+
onConfirm?: MouseEventHandler<HTMLElement>;
|
|
53
|
+
/**
|
|
54
|
+
* Handler to execute once the cancelling button is clicked.
|
|
55
|
+
*/
|
|
56
|
+
onCancel?: MouseEventHandler<HTMLElement>;
|
|
31
57
|
}
|
|
32
58
|
//# sourceMappingURL=ModalFooter.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModalFooter.component.d.ts","sourceRoot":"","sources":["../../../src/components/ModalFooter/ModalFooter.component.tsx"],"names":[],"mappings":"AAKA,
|
|
1
|
+
{"version":3,"file":"ModalFooter.component.d.ts","sourceRoot":"","sources":["../../../src/components/ModalFooter/ModalFooter.component.tsx"],"names":[],"mappings":"AAKA,OAAc,EAAE,SAAS,EAAc,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGlF,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAgBnD;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,GAAI,+KAYzB,gBAAgB,KAAG,SA8CrB,CAAA;AAED,MAAM,WAAW,gBAAiB,SAAQ,SAAS,CAAC,cAAc,CAAC;IACjE;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;IAEpB;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAE3B;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAE1B;;OAEG;IACH,iBAAiB,CAAC,EAAE,UAAU,CAAA;IAE9B;;OAEG;IACH,gBAAgB,CAAC,EAAE,UAAU,CAAA;IAE7B;;;OAGG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAE9B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAE7B;;OAEG;IACH,SAAS,CAAC,EAAE,iBAAiB,CAAC,WAAW,CAAC,CAAA;IAE1C;;OAEG;IACH,QAAQ,CAAC,EAAE,iBAAiB,CAAC,WAAW,CAAC,CAAA;CAC1C"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface NativeSelectProps extends
|
|
1
|
+
import { ReactNode, ChangeEventHandler, MouseEventHandler, SelectHTMLAttributes } from 'react';
|
|
2
|
+
export interface NativeSelectProps extends SelectHTMLAttributes<HTMLSelectElement> {
|
|
3
3
|
/**
|
|
4
4
|
* Name of the select element.
|
|
5
5
|
* Used as a key for the selected value if a form is submitted.
|
|
6
|
+
* @default "Unnamed Select"
|
|
6
7
|
*/
|
|
7
8
|
name?: string;
|
|
8
9
|
/**
|
|
@@ -11,6 +12,7 @@ export interface NativeSelectProps extends React.SelectHTMLAttributes<HTMLSelect
|
|
|
11
12
|
id?: string;
|
|
12
13
|
/**
|
|
13
14
|
* Additional CSS classes to apply to the select element for custom styling.
|
|
15
|
+
* @default ""
|
|
14
16
|
*/
|
|
15
17
|
className?: string;
|
|
16
18
|
/**
|
|
@@ -21,24 +23,29 @@ export interface NativeSelectProps extends React.SelectHTMLAttributes<HTMLSelect
|
|
|
21
23
|
children?: ReactNode;
|
|
22
24
|
/**
|
|
23
25
|
* Disables the select element, making it unclickable.
|
|
26
|
+
* @default false
|
|
24
27
|
*/
|
|
25
28
|
disabled?: boolean;
|
|
26
29
|
/**
|
|
27
30
|
* Highlights the select element as invalid, indicating incorrect user input or validation errors.
|
|
31
|
+
* @default false
|
|
28
32
|
*/
|
|
29
33
|
invalid?: boolean;
|
|
30
34
|
/**
|
|
31
35
|
* Highlights the select element as valid, indicating correct user input or successful validation.
|
|
36
|
+
* @default false
|
|
32
37
|
*/
|
|
33
38
|
valid?: boolean;
|
|
34
39
|
/**
|
|
35
40
|
* Displays a loading indicator over the select element.
|
|
36
41
|
* Used for async operations like fetching data.
|
|
42
|
+
* @default false
|
|
37
43
|
*/
|
|
38
44
|
loading?: boolean;
|
|
39
45
|
/**
|
|
40
46
|
* Displays an error state over the select element, such as during data fetching errors.
|
|
41
47
|
* Should not be used for validation errors.
|
|
48
|
+
* @default false
|
|
42
49
|
*/
|
|
43
50
|
error?: boolean;
|
|
44
51
|
/**
|
|
@@ -53,13 +60,16 @@ export interface NativeSelectProps extends React.SelectHTMLAttributes<HTMLSelect
|
|
|
53
60
|
onClick?: MouseEventHandler<HTMLSelectElement>;
|
|
54
61
|
/**
|
|
55
62
|
* Additional CSS classes to apply to the outer wrapper of the select component for custom styling.
|
|
63
|
+
* @default ""
|
|
56
64
|
*/
|
|
57
65
|
wrapperClassName?: string;
|
|
58
66
|
}
|
|
59
67
|
/**
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
68
|
+
* The `NativeSelect` component is a basic HTML select element with extra features
|
|
69
|
+
* such as styles and loading/error states. It supports native select options while
|
|
70
|
+
* offering customization for validation indicators.
|
|
71
|
+
* @see https://cloudoperators.github.io/juno/?path=/docs/forms-nativeselect-nativeselect--docs
|
|
72
|
+
* @see {@link NativeSelectProps}
|
|
63
73
|
*/
|
|
64
|
-
export declare const NativeSelect:
|
|
74
|
+
export declare const NativeSelect: ({ name, id, children, className, disabled, invalid, valid, loading, error, onChange, onClick, wrapperClassName, ...props }: NativeSelectProps) => ReactNode;
|
|
65
75
|
//# sourceMappingURL=NativeSelect.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NativeSelect.component.d.ts","sourceRoot":"","sources":["../../../src/components/NativeSelect/NativeSelect.component.tsx"],"names":[],"mappings":"AAKA,
|
|
1
|
+
{"version":3,"file":"NativeSelect.component.d.ts","sourceRoot":"","sources":["../../../src/components/NativeSelect/NativeSelect.component.tsx"],"names":[],"mappings":"AAKA,OAAc,EAGZ,SAAS,EAET,kBAAkB,EAElB,iBAAiB,EACjB,oBAAoB,EACrB,MAAM,OAAO,CAAA;AA+Ed,MAAM,WAAW,iBAAkB,SAAQ,oBAAoB,CAAC,iBAAiB,CAAC;IAChF;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;IAEpB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IAEf;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IAEf;;;OAGG;IACH,QAAQ,CAAC,EAAE,kBAAkB,CAAC,iBAAiB,CAAC,CAAA;IAEhD;;;OAGG;IACH,OAAO,CAAC,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAA;IAE9C;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B;AAqCD;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,GAAI,4HAc1B,iBAAiB,KAAG,SA8CtB,CAAA"}
|