@cloudoperators/juno-ui-components 2.28.0 → 2.30.0
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/{AppShellProvider.component-OYNJWgl1.js → AppShellProvider.component-CoGCOuox.js} +1 -1
- package/build/AppShellProvider.js +1 -1
- package/build/{ButtonRow.component-DlpAnXKj.js → ButtonRow.component-CnJPyZ99.js} +1 -1
- package/build/{Checkbox.component-O8sJ_9IS.js → Checkbox.component-DxULmNji.js} +1 -1
- package/build/Checkbox.js +1 -1
- package/build/{CheckboxGroup.component-78sw6_Rv.js → CheckboxGroup.component-DJN7waSM.js} +1 -1
- package/build/CheckboxGroup.js +1 -1
- package/build/{CheckboxRow.component-n5GWBEDU.js → CheckboxRow.component-CrN2DXEm.js} +1 -1
- package/build/CheckboxRow.js +1 -1
- package/build/CodeBlock.component-CXDUnHIb.js +1 -0
- package/build/CodeBlock.js +1 -1
- package/build/ContextMenu.component-DyB2n7er.js +1 -0
- package/build/ContextMenu.js +1 -1
- package/build/DataGridCheckboxCell.js +1 -1
- package/build/{NativeSelect.component-DtTnqH-z.js → FilterInput.component-CBfEzQ3x.js} +27 -2
- package/build/FilterInput.js +1 -1
- package/build/{Filters.component-CPqHl_ZP.js → Filters.component-Cu8sV-IL.js} +1 -1
- package/build/Filters.js +1 -1
- package/build/Form.component-D-BE29tV.js +1 -0
- package/build/Form.js +1 -1
- package/build/FormHint.component-B30ehV71.js +1 -0
- package/build/FormHint.js +1 -1
- package/build/FormRow.component--LSv8Yz8.js +1 -0
- package/build/FormRow.js +1 -1
- package/build/FormSection.component-D-txM2wI.js +1 -0
- package/build/FormSection.js +1 -1
- package/build/Grid.component-DhdNobry.js +1 -0
- package/build/Grid.js +1 -1
- package/build/GridColumn.component-Dn_zRSnd.js +1 -0
- package/build/GridColumn.js +1 -1
- package/build/GridRow.component-DP4HP_Ai.js +1 -0
- package/build/GridRow.js +1 -1
- package/build/Menu.component-B2zPLmdP.js +1 -0
- package/build/Menu.js +1 -1
- package/build/MenuItem.component-2A91klk9.js +1 -0
- package/build/MenuItem.js +1 -1
- package/build/MenuSection.component-CXCYKlVr.js +1 -0
- package/build/MenuSection.js +1 -1
- package/build/NativeSelect.component-BeYgemsP.js +1 -0
- package/build/NativeSelect.js +1 -1
- package/build/NativeSelectOption.component-CLFcWbs7.js +1 -0
- package/build/NativeSelectOption.js +1 -1
- package/build/NativeSelectOptionGroup.component-B9j74Fm2.js +1 -0
- package/build/NativeSelectOptionGroup.js +1 -1
- package/build/{Pagination.component-Dmf8HSAf.js → Pagination.component-6CTFGCb-.js} +1 -1
- package/build/Pagination.js +1 -1
- package/build/{Radio.component-D5E4PrMW.js → Radio.component-qjlCYiuP.js} +1 -1
- package/build/Radio.js +1 -1
- package/build/{RadioGroup.component-C8y2zs-R.js → RadioGroup.component-Cj0bQHOM.js} +1 -1
- package/build/RadioGroup.js +1 -1
- package/build/{RadioRow.component-BuAImxFY.js → RadioRow.component-CqrB8Bvr.js} +1 -1
- package/build/RadioRow.js +1 -1
- package/build/SecretText.js +1 -1
- package/build/{Select.component-qFgtNL11.js → Select.component-BpoPsXOT.js} +1 -1
- package/build/Select.js +1 -1
- package/build/SelectOption.js +1 -1
- package/build/{Button.component-BKRhw0J0.js → Stack.component-fYvcWRNi.js} +5 -1
- package/build/{StyleProvider.component-BJXpG1ZL.js → StyleProvider.component-DpOVgdlo.js} +1 -1
- package/build/StyleProvider.js +1 -1
- package/build/Switch.component-BxCFYGD_.js +1 -0
- package/build/Switch.js +1 -1
- package/build/{Switch.component-D3qUVHCF.js → SwitchRow.component-BNceFC47.js} +2 -2
- package/build/SwitchRow.js +1 -1
- package/build/{TextInput.component-BBTA8JYe.js → TextInput.component-D1qpmHfA.js} +1 -1
- package/build/TextInput.js +1 -1
- package/build/{Textarea.component-Bn-CfmYI.js → Textarea.component-BrJM-k2b.js} +1 -1
- package/build/Textarea.js +1 -1
- package/build/{ThemeToggle.component-CNiLRHO4.js → ThemeToggle.component-CNb4Nbso.js} +1 -1
- package/build/ThemeToggle.js +1 -1
- package/build/components/AppShellProvider/AppShellProvider.component.d.ts +22 -0
- package/build/components/AppShellProvider/AppShellProvider.component.d.ts.map +1 -0
- package/build/components/CodeBlock/CodeBlock.component.d.ts +24 -0
- package/build/components/CodeBlock/CodeBlock.component.d.ts.map +1 -0
- package/build/components/CodeBlock/index.d.ts +2 -0
- package/build/components/CodeBlock/index.d.ts.map +1 -0
- package/build/components/ContextMenu/ContextMenu.component.d.ts +11 -0
- package/build/components/ContextMenu/ContextMenu.component.d.ts.map +1 -0
- package/build/components/ContextMenu/index.d.ts +2 -0
- package/build/components/ContextMenu/index.d.ts.map +1 -0
- package/build/components/Form/Form.component.d.ts +22 -0
- package/build/components/Form/Form.component.d.ts.map +1 -0
- package/build/components/Form/index.d.ts +2 -0
- package/build/components/Form/index.d.ts.map +1 -0
- package/build/components/FormHint/FormHint.component.d.ts +18 -8
- package/build/components/FormHint/FormHint.component.d.ts.map +1 -1
- package/build/components/FormRow/FormRow.component.d.ts +18 -0
- package/build/components/FormRow/FormRow.component.d.ts.map +1 -0
- package/build/components/FormRow/index.d.ts +2 -0
- package/build/components/FormRow/index.d.ts.map +1 -0
- package/build/components/FormSection/FormSection.component.d.ts +21 -0
- package/build/components/FormSection/FormSection.component.d.ts.map +1 -0
- package/build/components/FormSection/index.d.ts +2 -0
- package/build/components/FormSection/index.d.ts.map +1 -0
- package/build/components/Grid/Grid.component.d.ts +22 -0
- package/build/components/Grid/Grid.component.d.ts.map +1 -0
- package/build/components/Grid/index.d.ts +2 -0
- package/build/components/Grid/index.d.ts.map +1 -0
- package/build/components/GridColumn/GridColumn.component.d.ts +29 -0
- package/build/components/GridColumn/GridColumn.component.d.ts.map +1 -0
- package/build/components/GridColumn/index.d.ts +2 -0
- package/build/components/GridColumn/index.d.ts.map +1 -0
- package/build/components/GridRow/GridRow.component.d.ts +18 -0
- package/build/components/GridRow/GridRow.component.d.ts.map +1 -0
- package/build/components/GridRow/index.d.ts +2 -0
- package/build/components/GridRow/index.d.ts.map +1 -0
- package/build/components/JsonViewer/JsonViewer.component.d.ts +1 -1
- package/build/components/JsonViewer/JsonViewer.component.d.ts.map +1 -1
- package/build/components/Menu/Menu.component.d.ts +17 -0
- package/build/components/Menu/Menu.component.d.ts.map +1 -0
- package/build/components/Menu/index.d.ts +2 -0
- package/build/components/Menu/index.d.ts.map +1 -0
- package/build/components/MenuItem/MenuItem.component.d.ts +24 -0
- package/build/components/MenuItem/MenuItem.component.d.ts.map +1 -0
- package/build/components/MenuItem/index.d.ts +2 -0
- package/build/components/MenuItem/index.d.ts.map +1 -0
- package/build/components/MenuSection/MenuSection.component.d.ts +12 -0
- package/build/components/MenuSection/MenuSection.component.d.ts.map +1 -0
- package/build/components/MenuSection/index.d.ts +2 -0
- package/build/components/MenuSection/index.d.ts.map +1 -0
- package/build/components/NativeSelect/NativeSelect.component.d.ts +65 -0
- package/build/components/NativeSelect/NativeSelect.component.d.ts.map +1 -0
- package/build/components/NativeSelect/index.d.ts +2 -0
- package/build/components/NativeSelect/index.d.ts.map +1 -0
- package/build/components/NativeSelectOption/NativeSelectOption.component.d.ts +28 -0
- package/build/components/NativeSelectOption/NativeSelectOption.component.d.ts.map +1 -0
- package/build/components/NativeSelectOption/index.d.ts +2 -0
- package/build/components/NativeSelectOption/index.d.ts.map +1 -0
- package/build/components/NativeSelectOptionGroup/NativeSelectOptionGroup.component.d.ts +28 -0
- package/build/components/NativeSelectOptionGroup/NativeSelectOptionGroup.component.d.ts.map +1 -0
- package/build/components/NativeSelectOptionGroup/index.d.ts +2 -0
- package/build/components/NativeSelectOptionGroup/index.d.ts.map +1 -0
- package/build/components/StyleProvider/StyleProvider.component.d.ts +2 -1
- package/build/components/StyleProvider/StyleProvider.component.d.ts.map +1 -1
- package/build/components/Switch/Switch.component.d.ts +77 -0
- package/build/components/Switch/Switch.component.d.ts.map +1 -0
- package/build/components/Switch/index.d.ts +2 -0
- package/build/components/Switch/index.d.ts.map +1 -0
- package/build/ibm-plex-BfDpQmIi.js +1 -0
- package/build/index.js +1 -1
- package/package.json +1 -1
- package/build/CodeBlock.component-BnqSUSJi.js +0 -48
- package/build/ContextMenu.component-Cy6taTZ_.js +0 -16
- package/build/FilterInput.component-DGKAGon-.js +0 -26
- package/build/Form.component-DnZ1t2Ji.js +0 -7
- package/build/FormHint.component-Dkh3ieaZ.js +0 -1
- package/build/FormSection.component-CBaG8F_I.js +0 -8
- package/build/Grid.component-DZToHwWP.js +0 -1
- package/build/GridColumn.component-CTrDBjxI.js +0 -28
- package/build/GridRow.component-XRlLoWMg.js +0 -5
- package/build/Menu.component-Dw3i5vRh.js +0 -17
- package/build/MenuItem.component-C9O5Fl8B.js +0 -32
- package/build/MenuSection.component-Dg5PpsbU.js +0 -11
- package/build/NativeSelectOption.component-ozgJZgGf.js +0 -1
- package/build/NativeSelectOptionGroup.component-kDCnJXl8.js +0 -1
- package/build/Stack.component-D-jW201_.js +0 -5
- package/build/SwitchRow.component-C1sGisCh.js +0 -1
- package/build/ibm-plex-Ryg6-k3L.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/MenuItem/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
/** Use MenuSection to structure and sub-divide MenuItems in a menu. All but the last MenuSection will render a visible divider at the bottom. Optionally, a MenuSection can have a title.*/
|
|
3
|
+
export declare const MenuSection: React.FC<MenuSectionProps>;
|
|
4
|
+
export interface MenuSectionProps {
|
|
5
|
+
/** The children to render in the MenuSection */
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
/** Pass a custom className */
|
|
8
|
+
className?: string;
|
|
9
|
+
/** Pass an optional section title */
|
|
10
|
+
title?: string;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=MenuSection.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuSection.component.d.ts","sourceRoot":"","sources":["../../../src/components/MenuSection/MenuSection.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AAezB,4LAA4L;AAC5L,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAOlD,CAAA;AAED,MAAM,WAAW,gBAAgB;IAC/B,gDAAgD;IAChD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,8BAA8B;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,qCAAqC;IACrC,KAAK,CAAC,EAAE,MAAM,CAAA;CACf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/MenuSection/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,yBAAyB,CAAA"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import React, { ReactNode, ChangeEvent, MouseEvent, FC } from "react";
|
|
2
|
+
export interface NativeSelectProps extends React.SelectHTMLAttributes<HTMLSelectElement> {
|
|
3
|
+
/**
|
|
4
|
+
* Name of the select element.
|
|
5
|
+
* Used as a key for the selected value if a form is submitted.
|
|
6
|
+
*/
|
|
7
|
+
name?: string;
|
|
8
|
+
/**
|
|
9
|
+
* ID of the select element.
|
|
10
|
+
*/
|
|
11
|
+
id?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Additional CSS classes to apply to the select element for custom styling.
|
|
14
|
+
*/
|
|
15
|
+
className?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Elements to be rendered inside the select element.
|
|
18
|
+
* This can be any React node or a collection of React nodes.
|
|
19
|
+
* Typically, these are SelectOption or SelectOptionGroup components.
|
|
20
|
+
*/
|
|
21
|
+
children?: ReactNode;
|
|
22
|
+
/**
|
|
23
|
+
* Disables the select element, making it unclickable.
|
|
24
|
+
*/
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Highlights the select element as invalid, indicating incorrect user input or validation errors.
|
|
28
|
+
*/
|
|
29
|
+
invalid?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Highlights the select element as valid, indicating correct user input or successful validation.
|
|
32
|
+
*/
|
|
33
|
+
valid?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Displays a loading indicator over the select element.
|
|
36
|
+
* Used for async operations like fetching data.
|
|
37
|
+
*/
|
|
38
|
+
loading?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Displays an error state over the select element, such as during data fetching errors.
|
|
41
|
+
* Should not be used for validation errors.
|
|
42
|
+
*/
|
|
43
|
+
error?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Event handler for the change event of the select element.
|
|
46
|
+
* Triggered when the user changes the selected option.
|
|
47
|
+
*/
|
|
48
|
+
onChange?: (event: ChangeEvent<HTMLSelectElement>) => void;
|
|
49
|
+
/**
|
|
50
|
+
* Event handler for the click event on the select element.
|
|
51
|
+
* Triggered when the user clicks on the select element.
|
|
52
|
+
*/
|
|
53
|
+
onClick?: (event: MouseEvent<HTMLSelectElement>) => void;
|
|
54
|
+
/**
|
|
55
|
+
* Additional CSS classes to apply to the outer wrapper of the select component for custom styling.
|
|
56
|
+
*/
|
|
57
|
+
wrapperClassName?: string;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* A basic, uncontrolled native HTML select component.
|
|
61
|
+
* Takes NativeSelectOption and NativeSelectOptionGroup children as options.
|
|
62
|
+
* Handles states such as loading, valid, invalid, and error.
|
|
63
|
+
*/
|
|
64
|
+
export declare const NativeSelect: FC<NativeSelectProps>;
|
|
65
|
+
//# sourceMappingURL=NativeSelect.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NativeSelect.component.d.ts","sourceRoot":"","sources":["../../../src/components/NativeSelect/NativeSelect.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAuB,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AA+E1F,MAAM,WAAW,iBAAkB,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;IACtF;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;IAEpB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IAEf;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IAEf;;;OAGG;IAEH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAA;IAE1D;;;OAGG;IAEH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAA;IAExD;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B;AAmCD;;;;GAIG;AACH,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CA4D9C,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/NativeSelect/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface NativeSelectOptionProps extends Omit<React.OptionHTMLAttributes<HTMLOptionElement>, "label" | "value"> {
|
|
3
|
+
/**
|
|
4
|
+
* A visible label for the option.
|
|
5
|
+
* It will be displayed to the user in the dropdown.
|
|
6
|
+
*/
|
|
7
|
+
label?: string | number;
|
|
8
|
+
/**
|
|
9
|
+
* The value that the option represents.
|
|
10
|
+
* It will be sent when submitting a form.
|
|
11
|
+
*/
|
|
12
|
+
value?: string | number;
|
|
13
|
+
/**
|
|
14
|
+
* Determines whether the option is disabled.
|
|
15
|
+
* If true, the option will be unselectable.
|
|
16
|
+
*/
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Additional CSS classes to apply to the option for custom styling.
|
|
20
|
+
*/
|
|
21
|
+
className?: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* The NativeSelectOption component represents an individual option in a dropdown list.
|
|
25
|
+
* It should be used inside the NativeSelect component to define each option.
|
|
26
|
+
*/
|
|
27
|
+
export declare const NativeSelectOption: React.FC<NativeSelectOptionProps>;
|
|
28
|
+
//# sourceMappingURL=NativeSelectOption.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NativeSelectOption.component.d.ts","sourceRoot":"","sources":["../../../src/components/NativeSelectOption/NativeSelectOption.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,WAAW,uBACf,SAAQ,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IAC9E;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAEvB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAEvB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAYhE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/NativeSelectOption/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface NativeSelectOptionGroupProps extends React.OptgroupHTMLAttributes<HTMLOptGroupElement> {
|
|
3
|
+
/**
|
|
4
|
+
* A visible label for the option group.
|
|
5
|
+
* It will be displayed as the group heading in the dropdown.
|
|
6
|
+
*/
|
|
7
|
+
label?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Determines whether the option group is disabled.
|
|
10
|
+
* If true, all options within the group will also be disabled.
|
|
11
|
+
*/
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Additional CSS classes to apply to the option group for custom styling.
|
|
15
|
+
*/
|
|
16
|
+
className?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Elements to be rendered within the option group.
|
|
19
|
+
* Typically, these should be NativeSelectOption components.
|
|
20
|
+
*/
|
|
21
|
+
children?: React.ReactNode;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* The NativeSelectOptionGroup component groups related options within a dropdown list.
|
|
25
|
+
* It should be used inside the <NativeSelect> component to group <NativeSelectOption> components.
|
|
26
|
+
*/
|
|
27
|
+
export declare const NativeSelectOptionGroup: React.FC<NativeSelectOptionGroupProps>;
|
|
28
|
+
//# sourceMappingURL=NativeSelectOptionGroup.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NativeSelectOptionGroup.component.d.ts","sourceRoot":"","sources":["../../../src/components/NativeSelectOptionGroup/NativeSelectOptionGroup.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,WAAW,4BAA6B,SAAQ,KAAK,CAAC,sBAAsB,CAAC,mBAAmB,CAAC;IACrG;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED;;;GAGG;AACH,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,4BAA4B,CAY1E,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/NativeSelectOptionGroup/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAA"}
|
|
@@ -11,6 +11,7 @@ export interface StyleContextProps {
|
|
|
11
11
|
addCssClass: AddClassFunc;
|
|
12
12
|
removeCssClass: RemoveCssClassFunc;
|
|
13
13
|
}
|
|
14
|
+
export declare const DEFAULT_THEME_NAME = "theme-dark";
|
|
14
15
|
/**
|
|
15
16
|
* Component that inserts the ui styles and manages theming and styles.
|
|
16
17
|
* Also creates a shadow DOM element with styes inside if 'stylesWrapper' is equal to "shadowRoot".
|
|
@@ -39,7 +40,7 @@ export interface StyleProviderProps {
|
|
|
39
40
|
/** What element to render as a wrapper, respectively where to render the StyleProvider. */
|
|
40
41
|
stylesWrapper?: StyleProviderStylesWrapper;
|
|
41
42
|
/** The name of the theme to render. */
|
|
42
|
-
theme?: string;
|
|
43
|
+
theme?: string | null;
|
|
43
44
|
/** The mode of the shadowRoot. Only relevant when `stylesWrapper="shadowRoot"`. */
|
|
44
45
|
shadowRootMode?: ShadowRootMode;
|
|
45
46
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StyleProvider.component.d.ts","sourceRoot":"","sources":["../../../src/components/StyleProvider/StyleProvider.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAiE,MAAM,OAAO,CAAA;AACrF,OAAO,EAAc,cAAc,EAAE,MAAM,oCAAoC,CAAA;AAO/E,KAAK,iBAAiB,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;AAEhD,KAAK,YAAY,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;AAE3C,KAAK,kBAAkB,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;AAEjD,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,YAAY,EAAE,MAAM,CAAA;IACpB,aAAa,EAAE,iBAAiB,CAAA;IAChC,WAAW,EAAE,YAAY,CAAA;IACzB,cAAc,EAAE,kBAAkB,CAAA;CACnC;
|
|
1
|
+
{"version":3,"file":"StyleProvider.component.d.ts","sourceRoot":"","sources":["../../../src/components/StyleProvider/StyleProvider.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAiE,MAAM,OAAO,CAAA;AACrF,OAAO,EAAc,cAAc,EAAE,MAAM,oCAAoC,CAAA;AAO/E,KAAK,iBAAiB,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;AAEhD,KAAK,YAAY,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;AAE3C,KAAK,kBAAkB,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;AAEjD,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,YAAY,EAAE,MAAM,CAAA;IACpB,aAAa,EAAE,iBAAiB,CAAA;IAChC,WAAW,EAAE,YAAY,CAAA;IACzB,cAAc,EAAE,kBAAkB,CAAA;CACnC;AAKD,eAAO,MAAM,kBAAkB,eAAe,CAAA;AAE9C;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,aAAa;qEAKvB,kBAAkB;;CAsFpB,CAAA;AAED,KAAK,0BAA0B,GAAG,MAAM,GAAG,QAAQ,GAAG,YAAY,CAAA;AAElE,MAAM,WAAW,kBAAkB;IACjC,8BAA8B;IAC9B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,4FAA4F;IAC5F,aAAa,CAAC,EAAE,0BAA0B,CAAA;IAC1C,uCAAuC;IACvC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,mFAAmF;IACnF,cAAc,CAAC,EAAE,cAAc,CAAA;CAChC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type SwitchSize = "small" | "default" | "large";
|
|
3
|
+
export interface SwitchProps extends Omit<React.ComponentPropsWithoutRef<"button">, "ref"> {
|
|
4
|
+
/**
|
|
5
|
+
* HTML name attribute for the switch button
|
|
6
|
+
*/
|
|
7
|
+
name?: string;
|
|
8
|
+
/**
|
|
9
|
+
* HTML id attribute for the switch button
|
|
10
|
+
*/
|
|
11
|
+
id?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Label to display next to the Switch component
|
|
14
|
+
*/
|
|
15
|
+
label?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Indicates if the Switch is required
|
|
18
|
+
*/
|
|
19
|
+
required?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Specifies the size of the Switch component
|
|
22
|
+
*/
|
|
23
|
+
size?: SwitchSize;
|
|
24
|
+
/**
|
|
25
|
+
* Sets the initial checked state of the Switch component for use in uncontrolled mode
|
|
26
|
+
*/
|
|
27
|
+
on?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Disabled state of the Switch component
|
|
30
|
+
*/
|
|
31
|
+
disabled?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Indicates if the Switch has an error state
|
|
34
|
+
*/
|
|
35
|
+
invalid?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Indicates if the Switch has been validated successfully
|
|
38
|
+
*/
|
|
39
|
+
valid?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Help text to provide additional information about the Switch
|
|
42
|
+
*/
|
|
43
|
+
helptext?: React.ReactNode;
|
|
44
|
+
/**
|
|
45
|
+
* Text to display when the Switch has validation errors
|
|
46
|
+
*/
|
|
47
|
+
errortext?: React.ReactNode;
|
|
48
|
+
/**
|
|
49
|
+
* Text to display when the Switch has been validated successfully
|
|
50
|
+
*/
|
|
51
|
+
successtext?: React.ReactNode;
|
|
52
|
+
/**
|
|
53
|
+
* Custom class name to apply to the internal button element
|
|
54
|
+
*/
|
|
55
|
+
className?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Callback function to handle changes to the switch state
|
|
58
|
+
*/
|
|
59
|
+
onChange?: (event: React.ChangeEvent<HTMLButtonElement>) => void;
|
|
60
|
+
/**
|
|
61
|
+
* Callback function to handle click events on the switch
|
|
62
|
+
*/
|
|
63
|
+
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
64
|
+
/**
|
|
65
|
+
* Custom class name to apply to the wrapper element
|
|
66
|
+
* Useful for styling and positioning the outermost element of the component
|
|
67
|
+
*/
|
|
68
|
+
wrapperClassName?: string;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* A basic switch component for toggling between two options.
|
|
72
|
+
* Use this component for interactions that produce immediate results.
|
|
73
|
+
* For form scenarios requiring submission, use checkboxes instead.
|
|
74
|
+
*/
|
|
75
|
+
export declare const Switch: React.FC<SwitchProps>;
|
|
76
|
+
export {};
|
|
77
|
+
//# sourceMappingURL=Switch.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Switch.component.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA8C,MAAM,OAAO,CAAA;AAmElE,KAAK,UAAU,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,CAAA;AAE/C,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,QAAQ,CAAC,EAAE,KAAK,CAAC;IACxF;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB;;OAEG;IACH,EAAE,CAAC,EAAE,OAAO,CAAA;IACZ;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC3B;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC7B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;OAEG;IAEH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAA;IAChE;;OAEG;IAEH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAA;IAC9D;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B;AA0DD;;;;GAIG;AACH,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAiGxC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA"}
|