@momentum-design/components 0.129.13 → 0.129.15

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.
Files changed (30) hide show
  1. package/dist/browser/index.js.map +2 -2
  2. package/dist/components/appheader/appheader.component.d.ts +16 -12
  3. package/dist/components/appheader/appheader.component.js +16 -12
  4. package/dist/components/avatar/avatar.component.d.ts +22 -15
  5. package/dist/components/avatar/avatar.component.js +22 -15
  6. package/dist/components/avatarbutton/avatarbutton.component.d.ts +13 -11
  7. package/dist/components/avatarbutton/avatarbutton.component.js +13 -11
  8. package/dist/components/bullet/bullet.component.d.ts +5 -2
  9. package/dist/components/bullet/bullet.component.js +5 -2
  10. package/dist/components/button/button.component.d.ts +65 -29
  11. package/dist/components/button/button.component.js +65 -29
  12. package/dist/components/buttongroup/buttongroup.component.d.ts +26 -21
  13. package/dist/components/buttongroup/buttongroup.component.js +26 -21
  14. package/dist/components/buttonsimple/buttonsimple.component.d.ts +5 -3
  15. package/dist/components/buttonsimple/buttonsimple.component.js +5 -3
  16. package/dist/custom-elements.json +166 -80
  17. package/dist/react/appheader/index.d.ts +16 -12
  18. package/dist/react/appheader/index.js +16 -12
  19. package/dist/react/avatar/index.d.ts +25 -18
  20. package/dist/react/avatar/index.js +25 -18
  21. package/dist/react/avatarbutton/index.d.ts +13 -11
  22. package/dist/react/avatarbutton/index.js +13 -11
  23. package/dist/react/button/index.d.ts +39 -22
  24. package/dist/react/button/index.js +39 -22
  25. package/dist/react/buttongroup/index.d.ts +16 -18
  26. package/dist/react/buttongroup/index.js +16 -18
  27. package/dist/react/buttonsimple/index.d.ts +5 -3
  28. package/dist/react/buttonsimple/index.js +5 -3
  29. package/dist/utils/mixins/ButtonComponentMixin.js +12 -5
  30. package/package.json +1 -1
@@ -13,24 +13,22 @@ import { Component } from '../../models';
13
13
  import { DEFAULTS } from './buttongroup.constants';
14
14
  import styles from './buttongroup.styles';
15
15
  /**
16
- * buttongroup component, is a wrapper to group multiple buttons.
17
- * It can support icon buttons, combination of icon and pill buttons, and text buttons.
18
- * Button group can be positioned in horizontal orientation and vertical orientation.
16
+ * `mdc-buttongroup` is a wrapper component that groups multiple buttons together.
19
17
  *
20
- * The sizes of buttons within the button group can be set using the `size` attribute on the button group,
21
- * which will apply the size to all buttons within the group.
18
+ * ## Supported button types
19
+ * - Icon buttons
20
+ * - Pill buttons
21
+ * - Combination of icon and pill buttons
22
22
  *
23
- * Buttons of sizes 24, 28, 32, and 40 are only supported inside a button group. Default size is 28.
23
+ * ## Features
24
+ * - Horizontal or vertical orientation
25
+ * - Unified size and variant applied to all child buttons
26
+ * - Optional compact mode for reduced height
27
+ * - Supported sizes: 24, 28 (default), 32, 40
24
28
  *
25
- * The variant of buttons within the button group can be set using the `variant` attribute on the button group,
26
- * which will apply the variant to all buttons within the group. Default variant is `primary`.
27
- *
28
- * All buttons are placed horizontally by default. To change the orientation to vertical, set the `orientation` attribute to `vertical`.
29
- *
30
- * Things to note:
31
- * - Button group will allow only `mdc-button` components as its direct children.
32
- * - Button group will set the `size` and `variant` attributes on the buttons within it,
33
- * so any `size` or `variant` set directly on any button will be overridden.
29
+ * ## Usage
30
+ * - Only `mdc-button` components are allowed as direct children
31
+ * - The `size` and `variant` set on buttongroup override individual button settings
34
32
  *
35
33
  * @tagname mdc-buttongroup
36
34
  *
@@ -46,23 +44,30 @@ class ButtonGroup extends Component {
46
44
  constructor() {
47
45
  super(...arguments);
48
46
  /**
49
- * Orientation of the buttongroup.
47
+ * Layout direction of the buttons within the group.
48
+ * - `horizontal`: Buttons are arranged side by side (default)
49
+ * - `vertical`: Buttons are stacked vertically
50
50
  * @default 'horizontal'
51
51
  */
52
52
  this.orientation = DEFAULTS.ORIENTATION;
53
53
  /**
54
- * Variant of the buttons within the buttongroup.
54
+ * Visual style variant applied to all buttons in the group.
55
+ * - `primary`: Solid background color
56
+ * - `secondary`: Transparent background with solid border
57
+ * - `tertiary`: No background or border, text-only appearance
55
58
  * @default 'primary'
56
59
  */
57
60
  this.variant = DEFAULTS.VARIANT;
58
61
  /**
59
- * Size of the buttons within the buttongroup.
60
- * @default '28'
62
+ * Size applied to all buttons in the group.
63
+ * Available sizes: 24, 28, 32, 40
64
+ * @default 28
61
65
  */
62
66
  this.size = DEFAULTS.SIZE;
63
67
  /**
64
- * When this is true, the buttons within the buttongroup will be compact.
65
- * i.e. Irrespective of the size of the buttons, they will have a height of 24px.
68
+ * Enables compact mode with reduced height.
69
+ * When true, all buttons have a fixed height of 24px regardless of their size setting.
70
+ * Useful for space-constrained layouts.
66
71
  * @default false
67
72
  */
68
73
  this.compact = false;
@@ -9,16 +9,18 @@ declare const Buttonsimple_base: import("../../utils/mixins/index.types").Constr
9
9
  * It is used as an internal component and is not intended to be used directly by consumers.
10
10
  * Consumers should use the `mdc-button` component instead.
11
11
  *
12
+ * @tagname mdc-buttonsimple
13
+ *
14
+ * @slot - Text label of the button.
15
+ *
12
16
  * @event click - (React: onClick) This event is dispatched when the button is clicked.
13
17
  * @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the button.
14
18
  * @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the button.
15
19
  * @event focus - (React: onFocus) This event is dispatched when the button receives focus.
16
20
  *
17
- * @tagname mdc-buttonsimple
18
- *
19
21
  * @cssproperty --mdc-button-height - Height for button size
20
22
  * @cssproperty --mdc-button-background - Background color of the button
21
- * @cssproperty --mdc-button-border-color - Borer color of the button
23
+ * @cssproperty --mdc-button-border-color - Border color of the button
22
24
  * @cssproperty --mdc-button-text-color - Text color of the button
23
25
  */
24
26
  declare class Buttonsimple extends Buttonsimple_base {
@@ -21,16 +21,18 @@ import styles from './buttonsimple.styles';
21
21
  * It is used as an internal component and is not intended to be used directly by consumers.
22
22
  * Consumers should use the `mdc-button` component instead.
23
23
  *
24
+ * @tagname mdc-buttonsimple
25
+ *
26
+ * @slot - Text label of the button.
27
+ *
24
28
  * @event click - (React: onClick) This event is dispatched when the button is clicked.
25
29
  * @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the button.
26
30
  * @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the button.
27
31
  * @event focus - (React: onFocus) This event is dispatched when the button receives focus.
28
32
  *
29
- * @tagname mdc-buttonsimple
30
- *
31
33
  * @cssproperty --mdc-button-height - Height for button size
32
34
  * @cssproperty --mdc-button-background - Background color of the button
33
- * @cssproperty --mdc-button-border-color - Borer color of the button
35
+ * @cssproperty --mdc-button-border-color - Border color of the button
34
36
  * @cssproperty --mdc-button-text-color - Text color of the button
35
37
  */
36
38
  class Buttonsimple extends AutoFocusOnMountMixin(TabIndexMixin(DisabledMixin(Component))) {