@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,37 +1,85 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { ReactNode, HTMLAttributes, ChangeEventHandler, MouseEventHandler } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* The `Checkbox` component is a versatile form element that allows users to
|
|
4
|
+
* select one or multiple options. It can display states such as checked,
|
|
5
|
+
* indeterminate, invalid, and valid, and integrates with a checkbox group context
|
|
6
|
+
* for collective state management. This component supports labels, icons,
|
|
7
|
+
* error/success indicators, and custom event handlers.
|
|
8
|
+
* @see https://cloudoperators.github.io/juno/?path=/docs/forms-checkbox-checkbox--docs
|
|
9
|
+
* @see {@link CheckboxProps}
|
|
10
|
+
*/
|
|
11
|
+
export declare const Checkbox: ({ checked, className, disabled, errortext, helptext, id, indeterminate, invalid, label, name, onChange, onClick, required, successtext, valid, value, ...props }: CheckboxProps) => ReactNode;
|
|
12
|
+
export interface CheckboxProps extends HTMLAttributes<HTMLDivElement> {
|
|
13
|
+
/**
|
|
14
|
+
* Specifies if the Checkbox is checked.
|
|
15
|
+
* @default false
|
|
16
|
+
*/
|
|
5
17
|
checked?: boolean;
|
|
6
|
-
/**
|
|
18
|
+
/**
|
|
19
|
+
* Custom CSS class for styling the Checkbox.
|
|
20
|
+
* @default ""
|
|
21
|
+
*/
|
|
7
22
|
className?: string;
|
|
8
|
-
/**
|
|
23
|
+
/**
|
|
24
|
+
* Specifies if the Checkbox is disabled.
|
|
25
|
+
* @default false
|
|
26
|
+
*/
|
|
9
27
|
disabled?: boolean;
|
|
10
|
-
/**
|
|
28
|
+
/**
|
|
29
|
+
* Text to display when the Checkbox has an error.
|
|
30
|
+
*/
|
|
11
31
|
errortext?: ReactNode;
|
|
12
|
-
/**
|
|
32
|
+
/**
|
|
33
|
+
* Help text explaining the significance of the Checkbox.
|
|
34
|
+
*/
|
|
13
35
|
helptext?: ReactNode;
|
|
14
|
-
/**
|
|
36
|
+
/**
|
|
37
|
+
* The ID of the Checkbox. Auto-generated if not provided.
|
|
38
|
+
*/
|
|
15
39
|
id?: string;
|
|
16
|
-
/**
|
|
40
|
+
/**
|
|
41
|
+
* Specifies if the Checkbox is in an indeterminate state; used for mixed states.
|
|
42
|
+
* @default false
|
|
43
|
+
*/
|
|
17
44
|
indeterminate?: boolean;
|
|
18
|
-
/**
|
|
45
|
+
/**
|
|
46
|
+
* Indicates whether the Checkbox validation failed.
|
|
47
|
+
* @default false
|
|
48
|
+
*/
|
|
19
49
|
invalid?: boolean;
|
|
20
|
-
/**
|
|
50
|
+
/**
|
|
51
|
+
* The label text for the Checkbox.
|
|
52
|
+
*/
|
|
21
53
|
label?: string;
|
|
22
|
-
/**
|
|
54
|
+
/**
|
|
55
|
+
* The name attribute of the Checkbox.
|
|
56
|
+
*/
|
|
23
57
|
name?: string;
|
|
24
|
-
/**
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
/**
|
|
58
|
+
/**
|
|
59
|
+
* Event handler for change events on the Checkbox.
|
|
60
|
+
*/
|
|
61
|
+
onChange?: ChangeEventHandler<HTMLInputElement>;
|
|
62
|
+
/**
|
|
63
|
+
* Event handler for click events on the Checkbox.
|
|
64
|
+
*/
|
|
65
|
+
onClick?: MouseEventHandler<HTMLInputElement>;
|
|
66
|
+
/**
|
|
67
|
+
* Specifies if the Checkbox is required for form validation.
|
|
68
|
+
* @default false
|
|
69
|
+
*/
|
|
29
70
|
required?: boolean;
|
|
30
|
-
/**
|
|
71
|
+
/**
|
|
72
|
+
* Text to display when the Checkbox passes validation.
|
|
73
|
+
*/
|
|
31
74
|
successtext?: ReactNode;
|
|
32
|
-
/**
|
|
75
|
+
/**
|
|
76
|
+
* Indicates whether the Checkbox validation succeeded.
|
|
77
|
+
* @default false
|
|
78
|
+
*/
|
|
33
79
|
valid?: boolean;
|
|
34
|
-
/**
|
|
80
|
+
/**
|
|
81
|
+
* The value attribute of the Checkbox.
|
|
82
|
+
*/
|
|
35
83
|
value?: string;
|
|
36
84
|
}
|
|
37
85
|
//# sourceMappingURL=Checkbox.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.component.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.component.tsx"],"names":[],"mappings":"AAKA,
|
|
1
|
+
{"version":3,"file":"Checkbox.component.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.component.tsx"],"names":[],"mappings":"AAKA,OAAc,EAMZ,SAAS,EAGT,cAAc,EACd,kBAAkB,EAClB,iBAAiB,EAClB,MAAM,OAAO,CAAA;AA2Fd;;;;;;;;GAQG;AACH,eAAO,MAAM,QAAQ,GAAI,kKAkBtB,aAAa,KAAG,SA0MlB,CAAA;AAED,MAAM,WAAW,aAAc,SAAQ,cAAc,CAAC,cAAc,CAAC;IACnE;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAA;IAErB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;IAEpB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;IAEvB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,QAAQ,CAAC,EAAE,kBAAkB,CAAC,gBAAgB,CAAC,CAAA;IAE/C;;OAEG;IACH,OAAO,CAAC,EAAE,iBAAiB,CAAC,gBAAgB,CAAC,CAAA;IAE7C;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,WAAW,CAAC,EAAE,SAAS,CAAA;IAEvB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IAEf;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACf"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { default as React, ReactNode } from 'react';
|
|
1
|
+
import { default as React, ReactNode, HTMLAttributes } from 'react';
|
|
2
2
|
type EventUpdateHandler = (value: string) => void;
|
|
3
3
|
export interface CheckboxGroupContextProps {
|
|
4
4
|
selectedOptions?: string[];
|
|
@@ -8,34 +8,61 @@ export interface CheckboxGroupContextProps {
|
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
}
|
|
10
10
|
export declare const CheckboxGroupContext: React.Context<CheckboxGroupContextProps | undefined>;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
/**
|
|
12
|
+
* The `CheckboxGroup` component provides a context-managed grouping of checkbox elements.
|
|
13
|
+
* It manages the collective state for checkboxes, allowing for individual or batch validation
|
|
14
|
+
* and selection. It supports states such as disabled, valid, and invalid, and offers customization
|
|
15
|
+
* for error and success messages. It also furnishes a grouped label and help text for a unified UI.
|
|
16
|
+
* @see https://cloudoperators.github.io/juno/?path=/docs/forms-checkbox-checkboxgroup--docs
|
|
17
|
+
* @see {@link CheckboxGroupProps}
|
|
18
|
+
*/
|
|
19
|
+
export declare const CheckboxGroup: ({ children, className, disabled, errortext, helptext, id, invalid, label, name, onChange, required, selected, successtext, valid, ...props }: CheckboxGroupProps) => ReactNode;
|
|
20
|
+
export interface CheckboxGroupProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange"> {
|
|
21
|
+
/** The Checkbox children of the CheckboxGroup. */
|
|
14
22
|
children?: ReactNode;
|
|
15
|
-
/**
|
|
23
|
+
/**
|
|
24
|
+
* Custom class names for styling the CheckboxGroup.
|
|
25
|
+
* @default ""
|
|
26
|
+
*/
|
|
16
27
|
className?: string;
|
|
17
|
-
/**
|
|
28
|
+
/**
|
|
29
|
+
* Disables all checkboxes in the group.
|
|
30
|
+
* @default false
|
|
31
|
+
*/
|
|
18
32
|
disabled?: boolean;
|
|
19
|
-
/** Text
|
|
33
|
+
/** Text displayed if validation fails or there is an error. Indicates group invalidity when set. */
|
|
20
34
|
errortext?: ReactNode;
|
|
21
|
-
/**
|
|
35
|
+
/** Additional text explaining the significance of this group. */
|
|
22
36
|
helptext?: ReactNode;
|
|
23
|
-
/** The
|
|
37
|
+
/** The group's ID. Automatically generated if not provided. */
|
|
24
38
|
id?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Indicates if the CheckboxGroup is marked as invalid.
|
|
41
|
+
* @default false
|
|
42
|
+
*/
|
|
25
43
|
invalid?: boolean;
|
|
26
|
-
/** The label
|
|
44
|
+
/** The label text for the CheckboxGroup. */
|
|
27
45
|
label?: string;
|
|
28
|
-
/**
|
|
46
|
+
/**
|
|
47
|
+
* Name for all checkboxes in the group. Generated if not supplied.
|
|
48
|
+
* @default A unique identifier
|
|
49
|
+
*/
|
|
29
50
|
name?: string;
|
|
30
|
-
/**
|
|
51
|
+
/** Event handler triggered when any checkbox selection changes. */
|
|
31
52
|
onChange?: EventUpdateHandler;
|
|
32
|
-
/**
|
|
53
|
+
/**
|
|
54
|
+
* Specifies if a selection is required in this group.
|
|
55
|
+
* @default false
|
|
56
|
+
*/
|
|
33
57
|
required?: boolean;
|
|
34
|
-
/** Array of values
|
|
58
|
+
/** Array of values representing the initially selected checkboxes in the group. */
|
|
35
59
|
selected?: string[];
|
|
36
|
-
/** Text
|
|
60
|
+
/** Text displayed upon successful validation, which marks the group as valid. */
|
|
37
61
|
successtext?: ReactNode;
|
|
38
|
-
/**
|
|
62
|
+
/**
|
|
63
|
+
* Specifies if the CheckboxGroup has been successfully validated.
|
|
64
|
+
* @default false
|
|
65
|
+
*/
|
|
39
66
|
valid?: boolean;
|
|
40
67
|
}
|
|
41
68
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckboxGroup.component.d.ts","sourceRoot":"","sources":["../../../src/components/CheckboxGroup/CheckboxGroup.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAsD,SAAS,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"CheckboxGroup.component.d.ts","sourceRoot":"","sources":["../../../src/components/CheckboxGroup/CheckboxGroup.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAsD,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAsC5G,KAAK,kBAAkB,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;AAEjD,MAAM,WAAW,yBAAyB;IACxC,eAAe,CAAC,EAAE,MAAM,EAAE,CAAA;IAC1B,oBAAoB,CAAC,EAAE,kBAAkB,CAAA;IACzC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,mBAAmB,CAAC,EAAE,kBAAkB,CAAA;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,eAAO,MAAM,oBAAoB,sDAAkE,CAAA;AAEnG;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,GAAI,8IAgB3B,kBAAkB,KAAG,SA+GvB,CAAA;AAED,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC;IAC1F,kDAAkD;IAClD,QAAQ,CAAC,EAAE,SAAS,CAAA;IAEpB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB,oGAAoG;IACpG,SAAS,CAAC,EAAE,SAAS,CAAA;IAErB,iEAAiE;IACjE,QAAQ,CAAC,EAAE,SAAS,CAAA;IAEpB,+DAA+D;IAC/D,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB,4CAA4C;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb,mEAAmE;IACnE,QAAQ,CAAC,EAAE,kBAAkB,CAAA;IAE7B;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB,mFAAmF;IACnF,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;IAEnB,iFAAiF;IACjF,WAAW,CAAC,EAAE,SAAS,CAAA;IAEvB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB"}
|
|
@@ -1,11 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
/**
|
|
3
|
-
*
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* The `Code` component is a lightweight inline `<code>` element used for displaying code snippets or text.
|
|
4
|
+
* It can accept content directly through the `content` prop or render children encapsulated within it.
|
|
5
|
+
* @see https://cloudoperators.github.io/juno/?path=/docs/components-code--docs
|
|
6
|
+
* @see {@link CodeProps}
|
|
4
7
|
*/
|
|
5
|
-
export declare const Code:
|
|
6
|
-
export interface CodeProps extends
|
|
8
|
+
export declare const Code: ({ content, children, className, ...props }: CodeProps) => ReactNode;
|
|
9
|
+
export interface CodeProps extends ComponentPropsWithoutRef<"code"> {
|
|
10
|
+
/**
|
|
11
|
+
* Text content to render within the code element. Overrides `children`.
|
|
12
|
+
* @default ""
|
|
13
|
+
*/
|
|
7
14
|
content?: string;
|
|
15
|
+
/** Additional CSS class names for styling the code element.
|
|
16
|
+
* @default ""
|
|
17
|
+
*/
|
|
8
18
|
className?: string;
|
|
9
|
-
|
|
19
|
+
/** Elements or text to render inside the code element. */
|
|
20
|
+
children?: ReactNode;
|
|
10
21
|
}
|
|
11
22
|
//# sourceMappingURL=Code.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Code.component.d.ts","sourceRoot":"","sources":["../../../src/components/Code/Code.component.tsx"],"names":[],"mappings":"AAKA,
|
|
1
|
+
{"version":3,"file":"Code.component.d.ts","sourceRoot":"","sources":["../../../src/components/Code/Code.component.tsx"],"names":[],"mappings":"AAKA,OAAc,EAAE,wBAAwB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAOlE;;;;;GAKG;AACH,eAAO,MAAM,IAAI,GAAI,4CAAsD,SAAS,KAAG,SAMtF,CAAA;AAED,MAAM,WAAW,SAAU,SAAQ,wBAAwB,CAAC,MAAM,CAAC;IACjE;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB"}
|
|
@@ -1,23 +1,49 @@
|
|
|
1
|
-
import {
|
|
2
|
-
/**
|
|
3
|
-
|
|
1
|
+
import { ReactNode, HTMLAttributes } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* The `CodeBlock` component renders a block of preformatted code or content. It offers features such
|
|
4
|
+
* as optional wrapping, copying to clipboard, and syntax highlighting for JSON content via a custom viewer.
|
|
5
|
+
* @see https://cloudoperators.github.io/juno/?path=/docs/components-codeblock--docs
|
|
6
|
+
* @see {@link CodeBlockProps}
|
|
7
|
+
*/
|
|
8
|
+
export declare const CodeBlock: ({ content, children, wrap, size, copy, lang, className, ...props }: CodeBlockProps) => ReactNode;
|
|
4
9
|
type CodeBlockSize = "auto" | "small" | "medium" | "large";
|
|
5
|
-
export interface CodeBlockProps extends Omit<
|
|
6
|
-
/**
|
|
10
|
+
export interface CodeBlockProps extends Omit<HTMLAttributes<HTMLDivElement>, "content" | "children"> {
|
|
11
|
+
/**
|
|
12
|
+
* The content to render. Used when `lang` is "json". Overrides children if not specified.
|
|
13
|
+
* Defaults to an empty string or object.
|
|
14
|
+
*/
|
|
7
15
|
content?: string | object;
|
|
8
|
-
/**
|
|
9
|
-
|
|
10
|
-
|
|
16
|
+
/**
|
|
17
|
+
* Elements or text to render inside the code block. Used when `lang` is not "json", overriding `content`.
|
|
18
|
+
*/
|
|
19
|
+
children?: ReactNode;
|
|
20
|
+
/**
|
|
21
|
+
* Optional caption or title to render, styled like a tab.
|
|
22
|
+
*/
|
|
11
23
|
heading?: string;
|
|
12
|
-
/**
|
|
24
|
+
/**
|
|
25
|
+
* Determines whether the code should wrap.
|
|
26
|
+
* @default true
|
|
27
|
+
*/
|
|
13
28
|
wrap?: boolean;
|
|
14
|
-
/**
|
|
29
|
+
/**
|
|
30
|
+
* Specifies the size of the CodeBlock.
|
|
31
|
+
* @default "auto"
|
|
32
|
+
*/
|
|
15
33
|
size?: CodeBlockSize;
|
|
16
|
-
/**
|
|
34
|
+
/**
|
|
35
|
+
* Enables or disables the copy-to-clipboard option.
|
|
36
|
+
* @default true
|
|
37
|
+
*/
|
|
17
38
|
copy?: boolean;
|
|
18
|
-
/**
|
|
39
|
+
/**
|
|
40
|
+
* Language for the content. "json" will render a structured JsonView. Adds a data-lang attribute.
|
|
41
|
+
*/
|
|
19
42
|
lang?: string;
|
|
20
|
-
/**
|
|
43
|
+
/**
|
|
44
|
+
* Additional CSS classes for customizing the CodeBlock styling.
|
|
45
|
+
* @default ""
|
|
46
|
+
*/
|
|
21
47
|
className?: string;
|
|
22
48
|
}
|
|
23
49
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodeBlock.component.d.ts","sourceRoot":"","sources":["../../../src/components/CodeBlock/CodeBlock.component.tsx"],"names":[],"mappings":"AAKA,
|
|
1
|
+
{"version":3,"file":"CodeBlock.component.d.ts","sourceRoot":"","sources":["../../../src/components/CodeBlock/CodeBlock.component.tsx"],"names":[],"mappings":"AAKA,OAAc,EAA4C,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAsGlG;;;;;GAKG;AACH,eAAO,MAAM,SAAS,GAAI,oEASvB,cAAc,KAAG,SA6DnB,CAAA;AAED,KAAK,aAAa,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;AAE1D,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC;IAClG;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAEzB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;IAEpB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;IAEd;;;OAGG;IACH,IAAI,CAAC,EAAE,aAAa,CAAA;IAEpB;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;IAEd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { default as React, ReactNode } from 'react';
|
|
1
|
+
import { default as React, ReactNode, HTMLAttributes, FocusEventHandler, ChangeEventHandler } from 'react';
|
|
2
2
|
type AddOptionValueAndLabelFunction = (value: string, label: string, children: ReactNode) => void;
|
|
3
3
|
export type ComboBoxContextType = {
|
|
4
4
|
selectedValue?: string;
|
|
@@ -6,60 +6,97 @@ export type ComboBoxContextType = {
|
|
|
6
6
|
addOptionValueAndLabel: AddOptionValueAndLabelFunction;
|
|
7
7
|
};
|
|
8
8
|
export declare const ComboBoxContext: React.Context<ComboBoxContextType | undefined>;
|
|
9
|
-
|
|
9
|
+
/**
|
|
10
|
+
* The `ComboBox` component is a customizable, accessible, and interactive dropdown component, allowing users to select from a list of options.
|
|
11
|
+
* It features dynamic filtering and optional asynchronous loading for extended functionality.
|
|
12
|
+
* @see https://cloudoperators.github.io/juno/?path=/docs/forms-combobox-combobox--docs
|
|
13
|
+
* @see {@link ComboBoxProps}
|
|
14
|
+
*/
|
|
15
|
+
export declare const ComboBox: ({ ariaLabel, children, className, defaultValue, disabled, error, errortext, helptext, id, invalid, loading, label, name, onBlur, onChange, onFocus, onInputChange, placeholder, required, successtext, truncateOptions, valid, value, valueLabel, width, wrapperClassName, ...props }: ComboBoxProps) => ReactNode;
|
|
10
16
|
export type ComboBoxWidth = "full" | "auto";
|
|
11
|
-
export interface ComboBoxProps extends Omit<
|
|
12
|
-
/**
|
|
17
|
+
export interface ComboBoxProps extends Omit<HTMLAttributes<HTMLElement>, "onChange" | "onInput" | "children"> {
|
|
18
|
+
/** ARIA label for accessibility. Defaults to label if provided. */
|
|
13
19
|
ariaLabel?: string;
|
|
14
|
-
/**
|
|
20
|
+
/** Children to render, typically using `ComboBox.Option`. */
|
|
15
21
|
children?: ReactNode;
|
|
16
|
-
/**
|
|
22
|
+
/**
|
|
23
|
+
* Additional class names for styling.
|
|
24
|
+
* @default ""
|
|
25
|
+
*/
|
|
17
26
|
className?: string;
|
|
18
|
-
/**
|
|
27
|
+
/** Default value for ComboBox, applicable in uncontrolled mode. */
|
|
19
28
|
defaultValue?: string;
|
|
20
|
-
/**
|
|
29
|
+
/**
|
|
30
|
+
* Indicates if ComboBox is disabled.
|
|
31
|
+
* @default false
|
|
32
|
+
*/
|
|
21
33
|
disabled?: boolean;
|
|
22
|
-
/**
|
|
34
|
+
/**
|
|
35
|
+
* Indicates internal ComboBox error. Use `invalid` for validation failures.
|
|
36
|
+
* @default false
|
|
37
|
+
*/
|
|
23
38
|
error?: boolean;
|
|
24
|
-
/**
|
|
39
|
+
/** Text displayed for validation errors or internal issues. */
|
|
25
40
|
errortext?: ReactNode;
|
|
26
|
-
/**
|
|
41
|
+
/** Additional context or instructions displayed below the ComboBox. */
|
|
27
42
|
helptext?: ReactNode;
|
|
28
|
-
/**
|
|
43
|
+
/** ID for ComboBox. If unspecified, auto-generated. */
|
|
29
44
|
id?: string;
|
|
30
|
-
/**
|
|
45
|
+
/**
|
|
46
|
+
* Identifies invalid ComboBox state.
|
|
47
|
+
* @default false
|
|
48
|
+
*/
|
|
31
49
|
invalid?: boolean;
|
|
32
|
-
/**
|
|
50
|
+
/** ComboBox label text. */
|
|
33
51
|
label?: string;
|
|
34
|
-
/**
|
|
52
|
+
/**
|
|
53
|
+
* Loading state for asynchronous actions.
|
|
54
|
+
* @default false
|
|
55
|
+
*/
|
|
35
56
|
loading?: boolean;
|
|
36
|
-
/**
|
|
57
|
+
/** Name attribute when used within a form. */
|
|
37
58
|
name?: string;
|
|
38
|
-
/**
|
|
39
|
-
onBlur?:
|
|
40
|
-
/**
|
|
41
|
-
onChange?: (
|
|
42
|
-
/**
|
|
43
|
-
onFocus?:
|
|
44
|
-
/** Handler
|
|
45
|
-
onInputChange?:
|
|
46
|
-
/**
|
|
59
|
+
/** Handler for when the ComboBox loses focus. */
|
|
60
|
+
onBlur?: FocusEventHandler<HTMLInputElement>;
|
|
61
|
+
/** Handler for changes in the ComboBox selection. */
|
|
62
|
+
onChange?: (_value: string) => void;
|
|
63
|
+
/** Handler for when the ComboBox input gains focus. */
|
|
64
|
+
onFocus?: FocusEventHandler<HTMLInputElement>;
|
|
65
|
+
/** Handler for changes in the ComboBox's text input value. */
|
|
66
|
+
onInputChange?: ChangeEventHandler<HTMLInputElement>;
|
|
67
|
+
/** Placeholder text for ComboBox input.
|
|
68
|
+
* @default "Select…"
|
|
69
|
+
*/
|
|
47
70
|
placeholder?: string;
|
|
48
|
-
/**
|
|
71
|
+
/**
|
|
72
|
+
* Flags the ComboBox as a required field.
|
|
73
|
+
* @default false
|
|
74
|
+
*/
|
|
49
75
|
required?: boolean;
|
|
50
|
-
/**
|
|
76
|
+
/** Text shown upon successful validation of the ComboBox. */
|
|
51
77
|
successtext?: ReactNode;
|
|
52
|
-
/**
|
|
78
|
+
/**
|
|
79
|
+
* Controls option text truncation in the dropdown.
|
|
80
|
+
* @default false
|
|
81
|
+
*/
|
|
53
82
|
truncateOptions?: boolean;
|
|
54
|
-
/**
|
|
83
|
+
/**
|
|
84
|
+
* Specifies successful validation state.
|
|
85
|
+
* @default false
|
|
86
|
+
*/
|
|
55
87
|
valid?: boolean;
|
|
56
|
-
/**
|
|
88
|
+
/** Controlled value for ComboBox in managed state. */
|
|
57
89
|
value?: string;
|
|
58
|
-
/**
|
|
90
|
+
/** Label corresponding to the selected or default value for display. */
|
|
59
91
|
valueLabel?: string;
|
|
60
|
-
/**
|
|
92
|
+
/**
|
|
93
|
+
* Width determination for input: "full" or "auto".
|
|
94
|
+
* @default "full"
|
|
95
|
+
*/
|
|
61
96
|
width?: ComboBoxWidth;
|
|
62
|
-
/**
|
|
97
|
+
/** Custom styling classes for the ComboBox's wrapper.
|
|
98
|
+
* @default ""
|
|
99
|
+
*/
|
|
63
100
|
wrapperClassName?: string;
|
|
64
101
|
}
|
|
65
102
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComboBox.component.d.ts","sourceRoot":"","sources":["../../../src/components/ComboBox/ComboBox.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"ComboBox.component.d.ts","sourceRoot":"","sources":["../../../src/components/ComboBox/ComboBox.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAMZ,SAAS,EAKT,cAAc,EACd,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,OAAO,CAAA;AAwId,KAAK,8BAA8B,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,KAAK,IAAI,CAAA;AAEjG,MAAM,MAAM,mBAAmB,GAAG;IAChC,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,eAAe,EAAE,OAAO,CAAA;IACxB,sBAAsB,EAAE,8BAA8B,CAAA;CACvD,CAAA;AAED,eAAO,MAAM,eAAe,gDAA4D,CAAA;AASxF;;;;;GAKG;AAEH,eAAO,MAAM,QAAQ,GAAI,uRA4BtB,aAAa,KAAG,SAqUlB,CAAA;AAED,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,MAAM,CAAA;AAC3C,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,UAAU,GAAG,SAAS,GAAG,UAAU,CAAC;IAC3G,mEAAmE;IACnE,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,SAAS,CAAA;IAEpB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB,mEAAmE;IACnE,YAAY,CAAC,EAAE,MAAM,CAAA;IAErB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IAEf,+DAA+D;IAC/D,SAAS,CAAC,EAAE,SAAS,CAAA;IAErB,uEAAuE;IACvE,QAAQ,CAAC,EAAE,SAAS,CAAA;IAEpB,uDAAuD;IACvD,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB,2BAA2B;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB,8CAA8C;IAC9C,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb,iDAAiD;IACjD,MAAM,CAAC,EAAE,iBAAiB,CAAC,gBAAgB,CAAC,CAAA;IAE5C,qDAAqD;IACrD,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;IAEnC,uDAAuD;IACvD,OAAO,CAAC,EAAE,iBAAiB,CAAC,gBAAgB,CAAC,CAAA;IAE7C,8DAA8D;IAC9D,aAAa,CAAC,EAAE,kBAAkB,CAAC,gBAAgB,CAAC,CAAA;IAEpD;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB,6DAA6D;IAC7D,WAAW,CAAC,EAAE,SAAS,CAAA;IAEvB;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IAEzB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IAEf,sDAAsD;IACtD,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd,wEAAwE;IACxE,UAAU,CAAC,EAAE,MAAM,CAAA;IAEnB;;;OAGG;IACH,KAAK,CAAC,EAAE,aAAa,CAAA;IAErB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B"}
|
|
@@ -1,15 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { HTMLProps, ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* `ComboBoxOption` is a component used within a `ComboBox` to represent each selectable option.
|
|
4
|
+
* It displays the option's label and value, and indicates the selected state with styles or an icon.
|
|
5
|
+
* @see https://cloudoperators.github.io/juno/?path=/docs/forms-combobox-comboboxoption--docs
|
|
6
|
+
* @see {@link ComboBoxOptionProps}
|
|
7
|
+
*/
|
|
8
|
+
export declare const ComboBoxOption: ({ children, disabled, value, label, className, ...props }: ComboBoxOptionProps) => ReactNode;
|
|
9
|
+
export interface ComboBoxOptionProps extends HTMLProps<HTMLLIElement> {
|
|
10
|
+
/**
|
|
11
|
+
* Content to render inside the ComboBoxOption. Should be specified as a string.
|
|
12
|
+
*/
|
|
5
13
|
children?: string;
|
|
6
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* If true, the option is disabled and not selectable.
|
|
16
|
+
* @default false
|
|
17
|
+
*/
|
|
7
18
|
disabled?: boolean;
|
|
8
|
-
/**
|
|
19
|
+
/** The value to be submitted if this option is selected. */
|
|
9
20
|
value?: string;
|
|
10
|
-
/**
|
|
21
|
+
/** The label text for the option, displayed when `children` is not provided. */
|
|
11
22
|
label?: string;
|
|
12
|
-
/**
|
|
23
|
+
/**
|
|
24
|
+
* CSS class names for custom styling.
|
|
25
|
+
* @default ""
|
|
26
|
+
*/
|
|
13
27
|
className?: string;
|
|
14
28
|
}
|
|
15
29
|
//# sourceMappingURL=ComboBoxOption.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComboBoxOption.component.d.ts","sourceRoot":"","sources":["../../../src/components/ComboBoxOption/ComboBoxOption.component.tsx"],"names":[],"mappings":"AAKA,
|
|
1
|
+
{"version":3,"file":"ComboBoxOption.component.d.ts","sourceRoot":"","sources":["../../../src/components/ComboBoxOption/ComboBoxOption.component.tsx"],"names":[],"mappings":"AAKA,OAAc,EAAmC,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AA8CpF;;;;;GAKG;AAEH,eAAO,MAAM,cAAc,GAAI,2DAO5B,mBAAmB,KAAG,SAyCxB,CAAA;AAED,MAAM,WAAW,mBAAoB,SAAQ,SAAS,CAAC,aAAa,CAAC;IACnE;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB,4DAA4D;IAC5D,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd,gFAAgF;IAChF,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB"}
|
|
@@ -1,15 +1,27 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* The `Container` component serves as a basic layout container with configurable padding options,
|
|
4
|
+
* providing structure and spacing within layouts.
|
|
5
|
+
* @see https://cloudoperators.github.io/juno/?path=/docs/layout-container--docs
|
|
6
|
+
* @see {@link ContainerProps}
|
|
4
7
|
*/
|
|
5
|
-
export declare const Container:
|
|
6
|
-
export interface ContainerProps extends
|
|
7
|
-
/**
|
|
8
|
+
export declare const Container: ({ px, py, className, children, ...props }: ContainerProps) => ReactNode;
|
|
9
|
+
export interface ContainerProps extends HTMLAttributes<HTMLDivElement> {
|
|
10
|
+
/**
|
|
11
|
+
* Specifies whether horizontal padding should be added.
|
|
12
|
+
* @default true
|
|
13
|
+
*/
|
|
8
14
|
px?: boolean;
|
|
9
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* Specifies whether vertical padding should be added.
|
|
17
|
+
* @default false
|
|
18
|
+
*/
|
|
10
19
|
py?: boolean;
|
|
11
|
-
/**
|
|
20
|
+
/** Additional custom class names for styling the container.
|
|
21
|
+
* @default ""
|
|
22
|
+
*/
|
|
12
23
|
className?: string;
|
|
13
|
-
|
|
24
|
+
/** Elements or components to render within the Container. */
|
|
25
|
+
children?: ReactNode;
|
|
14
26
|
}
|
|
15
27
|
//# sourceMappingURL=Container.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Container.component.d.ts","sourceRoot":"","sources":["../../../src/components/Container/Container.component.tsx"],"names":[],"mappings":"AAKA,
|
|
1
|
+
{"version":3,"file":"Container.component.d.ts","sourceRoot":"","sources":["../../../src/components/Container/Container.component.tsx"],"names":[],"mappings":"AAKA,OAAc,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AASxD;;;;;GAKG;AACH,eAAO,MAAM,SAAS,GAAI,2CAA+D,cAAc,KAAG,SAMzG,CAAA;AAED,MAAM,WAAW,cAAe,SAAQ,cAAc,CAAC,cAAc,CAAC;IACpE;;;OAGG;IACH,EAAE,CAAC,EAAE,OAAO,CAAA;IAEZ;;;OAGG;IACH,EAAE,CAAC,EAAE,OAAO,CAAA;IAEZ;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB"}
|
|
@@ -1,17 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface ContentAreaToolbarProps extends
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export interface ContentAreaToolbarProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Custom CSS classes for styling the toolbar.
|
|
5
|
+
* @default ""
|
|
5
6
|
*/
|
|
6
7
|
className?: string;
|
|
7
8
|
/**
|
|
8
|
-
*
|
|
9
|
+
* Content or elements to render within the content area toolbar.
|
|
9
10
|
*/
|
|
10
|
-
children?:
|
|
11
|
+
children?: ReactNode;
|
|
11
12
|
}
|
|
12
13
|
/**
|
|
13
|
-
* ContentAreaToolbar represents the main toolbar within
|
|
14
|
-
*
|
|
14
|
+
* The `ContentAreaToolbar` represents the main toolbar within a content area, providing space
|
|
15
|
+
* for main actions relevant to the current page context. It supports custom content and styling.
|
|
16
|
+
* @see https://cloudoperators.github.io/juno/?path=/docs/layout-contentareatoolbar--docs
|
|
17
|
+
* @see {@link ContentAreaToolbarProps}
|
|
15
18
|
*/
|
|
16
|
-
export declare const ContentAreaToolbar:
|
|
19
|
+
export declare const ContentAreaToolbar: ({ className, children, ...props }: ContentAreaToolbarProps) => ReactNode;
|
|
17
20
|
//# sourceMappingURL=ContentAreaToolbar.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentAreaToolbar.component.d.ts","sourceRoot":"","sources":["../../../src/components/ContentAreaToolbar/ContentAreaToolbar.component.tsx"],"names":[],"mappings":"AAKA,
|
|
1
|
+
{"version":3,"file":"ContentAreaToolbar.component.d.ts","sourceRoot":"","sources":["../../../src/components/ContentAreaToolbar/ContentAreaToolbar.component.tsx"],"names":[],"mappings":"AAKA,OAAc,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAWxD,MAAM,WAAW,uBAAwB,SAAQ,cAAc,CAAC,cAAc,CAAC;IAC7E;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB;AAED;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,GAAI,mCAAwC,uBAAuB,KAAG,SAMpG,CAAA"}
|