react-magma-dom 4.14.0-next.3 → 4.14.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/dist/components/ButtonGroup/index.d.ts +13 -5
- package/dist/esm/index.js +125 -59
- package/dist/esm/index.js.map +1 -1
- package/dist/properties.json +269 -229
- package/dist/react-magma-dom.cjs.development.js +108 -51
- package/dist/react-magma-dom.cjs.development.js.map +1 -1
- package/dist/react-magma-dom.cjs.production.min.js +1 -1
- package/dist/react-magma-dom.cjs.production.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -12,10 +12,12 @@ export declare enum ButtonGroupOrientation {
|
|
|
12
12
|
horizontal = "horizontal",
|
|
13
13
|
vertical = "vertical"
|
|
14
14
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
declare type ButtonGroupElement = HTMLDivElement | HTMLUListElement;
|
|
16
|
+
export interface ButtonGroupProps extends React.HTMLAttributes<ButtonGroupElement> {
|
|
17
|
+
/**
|
|
18
|
+
* @children required
|
|
19
|
+
*/
|
|
20
|
+
children: React.ReactNode;
|
|
19
21
|
/**
|
|
20
22
|
* Alignment of the dropdown content
|
|
21
23
|
* @default ButtonGroupAlignment.left
|
|
@@ -60,6 +62,11 @@ export interface ButtonGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
60
62
|
* @internal
|
|
61
63
|
*/
|
|
62
64
|
theme?: ThemeInterface;
|
|
65
|
+
/**
|
|
66
|
+
* Renders ButtonGroup as a `<ul>` with children wrapped in `<li>`.
|
|
67
|
+
* @default false
|
|
68
|
+
*/
|
|
69
|
+
isList?: boolean;
|
|
63
70
|
}
|
|
64
71
|
export interface ButtonGroupContextInterface {
|
|
65
72
|
variant?: ButtonVariant;
|
|
@@ -69,4 +76,5 @@ export interface ButtonGroupContextInterface {
|
|
|
69
76
|
isInverse?: boolean;
|
|
70
77
|
}
|
|
71
78
|
export declare const ButtonGroupContext: React.Context<ButtonGroupContextInterface>;
|
|
72
|
-
export declare const ButtonGroup: React.ForwardRefExoticComponent<ButtonGroupProps & React.RefAttributes<
|
|
79
|
+
export declare const ButtonGroup: React.ForwardRefExoticComponent<ButtonGroupProps & React.RefAttributes<ButtonGroupElement>>;
|
|
80
|
+
export {};
|