@momentum-design/components 0.122.18 → 0.122.19
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/browser/index.js +2 -2
- package/dist/browser/index.js.map +2 -2
- package/dist/components/buttongroup/buttongroup.component.d.ts +17 -2
- package/dist/components/buttongroup/buttongroup.component.js +17 -2
- package/dist/components/buttongroup/buttongroup.styles.js +2 -2
- package/dist/custom-elements.json +598 -598
- package/dist/react/buttongroup/index.d.ts +17 -2
- package/dist/react/buttongroup/index.js +17 -2
- package/dist/react/index.d.ts +1 -1
- package/dist/react/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,23 @@
|
|
|
1
1
|
import Component from '../../components/buttongroup';
|
|
2
2
|
/**
|
|
3
|
-
* buttongroup component, is a
|
|
3
|
+
* buttongroup component, is a wrapper to group multiple buttons.
|
|
4
4
|
* It can support icon buttons, combination of icon and pill buttons, and text buttons.
|
|
5
|
-
*
|
|
5
|
+
* Button group can be positioned in horizontal orientation and vertical orientation.
|
|
6
|
+
*
|
|
7
|
+
* The sizes of buttons within the button group can be set using the `size` attribute on the button group,
|
|
8
|
+
* which will apply the size to all buttons within the group.
|
|
9
|
+
*
|
|
10
|
+
* Buttons of sizes 24, 28, 32, and 40 are only supported inside a button group. Default size is 28.
|
|
11
|
+
*
|
|
12
|
+
* The variant of buttons within the button group can be set using the `variant` attribute on the button group,
|
|
13
|
+
* which will apply the variant to all buttons within the group. Default variant is `primary`.
|
|
14
|
+
*
|
|
15
|
+
* All buttons are placed horizontally by default. To change the orientation to vertical, set the `orientation` attribute to `vertical`.
|
|
16
|
+
*
|
|
17
|
+
* Things to note:
|
|
18
|
+
* - Button group will allow only `mdc-button` components as its direct children.
|
|
19
|
+
* - Button group will set the `size` and `variant` attributes on the buttons within it,
|
|
20
|
+
* so any `size` or `variant` set directly on any button will be overridden.
|
|
6
21
|
*
|
|
7
22
|
* @tagname mdc-buttongroup
|
|
8
23
|
*
|
|
@@ -3,9 +3,24 @@ import { createComponent } from '@lit/react';
|
|
|
3
3
|
import Component from '../../components/buttongroup';
|
|
4
4
|
import { TAG_NAME } from '../../components/buttongroup/buttongroup.constants';
|
|
5
5
|
/**
|
|
6
|
-
* buttongroup component, is a
|
|
6
|
+
* buttongroup component, is a wrapper to group multiple buttons.
|
|
7
7
|
* It can support icon buttons, combination of icon and pill buttons, and text buttons.
|
|
8
|
-
*
|
|
8
|
+
* Button group can be positioned in horizontal orientation and vertical orientation.
|
|
9
|
+
*
|
|
10
|
+
* The sizes of buttons within the button group can be set using the `size` attribute on the button group,
|
|
11
|
+
* which will apply the size to all buttons within the group.
|
|
12
|
+
*
|
|
13
|
+
* Buttons of sizes 24, 28, 32, and 40 are only supported inside a button group. Default size is 28.
|
|
14
|
+
*
|
|
15
|
+
* The variant of buttons within the button group can be set using the `variant` attribute on the button group,
|
|
16
|
+
* which will apply the variant to all buttons within the group. Default variant is `primary`.
|
|
17
|
+
*
|
|
18
|
+
* All buttons are placed horizontally by default. To change the orientation to vertical, set the `orientation` attribute to `vertical`.
|
|
19
|
+
*
|
|
20
|
+
* Things to note:
|
|
21
|
+
* - Button group will allow only `mdc-button` components as its direct children.
|
|
22
|
+
* - Button group will set the `size` and `variant` attributes on the buttons within it,
|
|
23
|
+
* so any `size` or `variant` set directly on any button will be overridden.
|
|
9
24
|
*
|
|
10
25
|
* @tagname mdc-buttongroup
|
|
11
26
|
*
|
package/dist/react/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
export { default as Accordion } from './accordion';
|
|
1
2
|
export { default as AccordionButton } from './accordionbutton';
|
|
2
3
|
export { default as AccordionGroup } from './accordiongroup';
|
|
3
|
-
export { default as Accordion } from './accordion';
|
|
4
4
|
export { default as AlertChip } from './alertchip';
|
|
5
5
|
export { default as Animation } from './animation';
|
|
6
6
|
export { default as AnnouncementDialog } from './announcementdialog';
|
package/dist/react/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
export { default as Accordion } from './accordion';
|
|
1
2
|
export { default as AccordionButton } from './accordionbutton';
|
|
2
3
|
export { default as AccordionGroup } from './accordiongroup';
|
|
3
|
-
export { default as Accordion } from './accordion';
|
|
4
4
|
export { default as AlertChip } from './alertchip';
|
|
5
5
|
export { default as Animation } from './animation';
|
|
6
6
|
export { default as AnnouncementDialog } from './announcementdialog';
|