@cloudoperators/juno-ui-components 6.1.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/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 +11 -6
- package/build/components/DateTimePicker/DateTimePicker.component.d.ts.map +1 -1
- 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 +21 -17
- 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 +2 -2
- package/build/components/SignInForm/SignInForm.component.d.ts.map +1 -1
- 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 -8
- package/build/components/Tab/Tab.component.d.ts.map +1 -1
- package/build/components/TabList/TabList.component.d.ts +9 -5
- 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 -5
- 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.js +1802 -1795
- package/package.json +1 -1
|
@@ -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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface NativeSelectOptionProps extends Omit<
|
|
1
|
+
import { OptionHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export interface NativeSelectOptionProps extends Omit<OptionHTMLAttributes<HTMLOptionElement>, "label" | "value"> {
|
|
3
3
|
/**
|
|
4
4
|
* A visible label for the option.
|
|
5
5
|
* It will be displayed to the user in the dropdown.
|
|
@@ -13,16 +13,20 @@ export interface NativeSelectOptionProps extends Omit<React.OptionHTMLAttributes
|
|
|
13
13
|
/**
|
|
14
14
|
* Determines whether the option is disabled.
|
|
15
15
|
* If true, the option will be unselectable.
|
|
16
|
+
* @default false
|
|
16
17
|
*/
|
|
17
18
|
disabled?: boolean;
|
|
18
19
|
/**
|
|
19
20
|
* Additional CSS classes to apply to the option for custom styling.
|
|
21
|
+
* @default ""
|
|
20
22
|
*/
|
|
21
23
|
className?: string;
|
|
22
24
|
}
|
|
23
25
|
/**
|
|
24
|
-
* The NativeSelectOption
|
|
25
|
-
*
|
|
26
|
+
* The `NativeSelectOption` represents individual options within a dropdown list
|
|
27
|
+
* for use in `NativeSelect`, offering label-value pairs with optional disable state.
|
|
28
|
+
* @see https://cloudoperators.github.io/juno/?path=/docs/forms-nativeselect-nativeselectoption--docs
|
|
29
|
+
* @see {@link NativeSelectOptionProps}
|
|
26
30
|
*/
|
|
27
|
-
export declare const NativeSelectOption:
|
|
31
|
+
export declare const NativeSelectOption: ({ value, label, disabled, className, ...props }: NativeSelectOptionProps) => ReactNode;
|
|
28
32
|
//# sourceMappingURL=NativeSelectOption.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NativeSelectOption.component.d.ts","sourceRoot":"","sources":["../../../src/components/NativeSelectOption/NativeSelectOption.component.tsx"],"names":[],"mappings":"AAKA,
|
|
1
|
+
{"version":3,"file":"NativeSelectOption.component.d.ts","sourceRoot":"","sources":["../../../src/components/NativeSelectOption/NativeSelectOption.component.tsx"],"names":[],"mappings":"AAKA,OAAc,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAE9D,MAAM,WAAW,uBAAwB,SAAQ,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IAC/G;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAEvB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAEvB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,GAAI,iDAMhC,uBAAuB,KAAG,SAM5B,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface NativeSelectOptionGroupProps extends
|
|
1
|
+
import { OptgroupHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export interface NativeSelectOptionGroupProps extends OptgroupHTMLAttributes<HTMLOptGroupElement> {
|
|
3
3
|
/**
|
|
4
4
|
* A visible label for the option group.
|
|
5
5
|
* It will be displayed as the group heading in the dropdown.
|
|
@@ -8,21 +8,25 @@ export interface NativeSelectOptionGroupProps extends React.OptgroupHTMLAttribut
|
|
|
8
8
|
/**
|
|
9
9
|
* Determines whether the option group is disabled.
|
|
10
10
|
* If true, all options within the group will also be disabled.
|
|
11
|
+
* @default false
|
|
11
12
|
*/
|
|
12
13
|
disabled?: boolean;
|
|
13
14
|
/**
|
|
14
15
|
* Additional CSS classes to apply to the option group for custom styling.
|
|
16
|
+
* @default ""
|
|
15
17
|
*/
|
|
16
18
|
className?: string;
|
|
17
19
|
/**
|
|
18
20
|
* Elements to be rendered within the option group.
|
|
19
21
|
* Typically, these should be NativeSelectOption components.
|
|
20
22
|
*/
|
|
21
|
-
children?:
|
|
23
|
+
children?: ReactNode;
|
|
22
24
|
}
|
|
23
25
|
/**
|
|
24
|
-
* The NativeSelectOptionGroup
|
|
25
|
-
*
|
|
26
|
+
* The `NativeSelectOptionGroup` categorizes related options within a dropdown list,
|
|
27
|
+
* enhancing semantic groupings for larger datasets in `NativeSelect`.
|
|
28
|
+
* @see https://cloudoperators.github.io/juno/?path=/docs/forms-nativeselect-nativeselectoptiongroup--docs
|
|
29
|
+
* @see {@link NativeSelectOptionGroupProps}
|
|
26
30
|
*/
|
|
27
|
-
export declare const NativeSelectOptionGroup:
|
|
31
|
+
export declare const NativeSelectOptionGroup: ({ label, disabled, className, children, ...props }: NativeSelectOptionGroupProps) => ReactNode;
|
|
28
32
|
//# sourceMappingURL=NativeSelectOptionGroup.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NativeSelectOptionGroup.component.d.ts","sourceRoot":"","sources":["../../../src/components/NativeSelectOptionGroup/NativeSelectOptionGroup.component.tsx"],"names":[],"mappings":"AAKA,
|
|
1
|
+
{"version":3,"file":"NativeSelectOptionGroup.component.d.ts","sourceRoot":"","sources":["../../../src/components/NativeSelectOptionGroup/NativeSelectOptionGroup.component.tsx"],"names":[],"mappings":"AAKA,OAAc,EAAE,sBAAsB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEhE,MAAM,WAAW,4BAA6B,SAAQ,sBAAsB,CAAC,mBAAmB,CAAC;IAC/F;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB;AAED;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,GAAI,oDAMrC,4BAA4B,KAAG,SAMjC,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { default as React, ReactNode } from 'react';
|
|
1
|
+
import { default as React, ReactNode, HTMLAttributes } from 'react';
|
|
2
2
|
type ItemChangeHandler = (value: ReactNode) => void;
|
|
3
3
|
type AddItemFunction = (key: ReactNode, children: ReactNode, label: string, value: string) => void;
|
|
4
4
|
export interface NavigationContextType {
|
|
@@ -9,20 +9,40 @@ export interface NavigationContextType {
|
|
|
9
9
|
navigationRole?: string;
|
|
10
10
|
}
|
|
11
11
|
export declare const NavigationContext: React.Context<NavigationContextType | undefined>;
|
|
12
|
-
/**
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
/**
|
|
13
|
+
* A generic `Navigation` component that offers context-managed item selection,
|
|
14
|
+
* designed for internal use with semantic wrappers like `SideNavigation`,
|
|
15
|
+
* `TabNavigation`, and `TopNavigation`.
|
|
16
|
+
* @see https://cloudoperators.github.io/juno/?path=/docs/internal-navigation--docs
|
|
17
|
+
* @see {@link NavigationProps}
|
|
18
|
+
*/
|
|
19
|
+
export declare const Navigation: ({ activeItem, ariaLabel, children, className, disabled, onActiveItemChange, ...props }: NavigationProps) => ReactNode;
|
|
20
|
+
export interface NavigationProps extends HTMLAttributes<HTMLUListElement> {
|
|
21
|
+
/**
|
|
22
|
+
* The currently active item. Pass the `value`, `label` prop, or the child string of the respective NavigationItem.
|
|
23
|
+
*/
|
|
16
24
|
activeItem?: ReactNode;
|
|
17
|
-
/**
|
|
25
|
+
/**
|
|
26
|
+
* The aria label of the navigation for accessibility purposes.
|
|
27
|
+
*/
|
|
18
28
|
ariaLabel?: string;
|
|
19
|
-
/**
|
|
29
|
+
/**
|
|
30
|
+
* The child navigation items to be rendered within the navigation component.
|
|
31
|
+
*/
|
|
20
32
|
children?: ReactNode;
|
|
21
|
-
/**
|
|
33
|
+
/**
|
|
34
|
+
* Pass a custom className to the navigation parent element.
|
|
35
|
+
* @default ""
|
|
36
|
+
*/
|
|
22
37
|
className?: string;
|
|
23
|
-
/**
|
|
38
|
+
/**
|
|
39
|
+
* Whether the navigation is disabled, affecting interactivity for all children.
|
|
40
|
+
* @default false
|
|
41
|
+
*/
|
|
24
42
|
disabled?: boolean;
|
|
25
|
-
/**
|
|
43
|
+
/**
|
|
44
|
+
* Handler to execute when the active item changes.
|
|
45
|
+
*/
|
|
26
46
|
onActiveItemChange?: ItemChangeHandler;
|
|
27
47
|
}
|
|
28
48
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Navigation.component.d.ts","sourceRoot":"","sources":["../../../src/components/Navigation/Navigation.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAsC,SAAS,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"Navigation.component.d.ts","sourceRoot":"","sources":["../../../src/components/Navigation/Navigation.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAsC,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAG5F,KAAK,iBAAiB,GAAG,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAA;AAGnD,KAAK,eAAe,GAAG,CAAC,GAAG,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;AAIlG,MAAM,WAAW,qBAAqB;IACpC,UAAU,CAAC,EAAE,SAAS,CAAA;IACtB,OAAO,CAAC,EAAE,eAAe,CAAA;IACzB,sBAAsB,CAAC,EAAE,iBAAiB,CAAA;IAC1C,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB;AAED,eAAO,MAAM,iBAAiB,kDAA8D,CAAA;AAY5F;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,GAAI,wFAQxB,eAAe,KAAG,SAmFpB,CAAA;AAED,MAAM,WAAW,eAAgB,SAAQ,cAAc,CAAC,gBAAgB,CAAC;IACvE;;OAEG;IACH,UAAU,CAAC,EAAE,SAAS,CAAA;IAEtB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;IAEpB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,kBAAkB,CAAC,EAAE,iBAAiB,CAAA;CACvC"}
|