@momentum-design/components 0.129.37 → 0.129.39
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 +12 -7
- package/dist/browser/index.js.map +2 -2
- package/dist/components/bullet/bullet.component.d.ts +16 -6
- package/dist/components/bullet/bullet.component.js +16 -6
- package/dist/components/bullet/bullet.styles.js +5 -6
- package/dist/components/dialog/dialog.styles.js +7 -1
- package/dist/components/divider/divider.component.d.ts +50 -55
- package/dist/components/divider/divider.component.js +50 -55
- package/dist/components/marker/marker.component.d.ts +20 -15
- package/dist/components/marker/marker.component.js +20 -15
- package/dist/components/staticcheckbox/staticcheckbox.component.d.ts +22 -11
- package/dist/components/staticcheckbox/staticcheckbox.component.js +22 -11
- package/dist/components/staticradio/staticradio.component.d.ts +21 -11
- package/dist/components/staticradio/staticradio.component.js +21 -11
- package/dist/components/statictoggle/statictoggle.component.d.ts +25 -12
- package/dist/components/statictoggle/statictoggle.component.js +25 -12
- package/dist/custom-elements.json +73 -75
- package/dist/react/bullet/index.d.ts +16 -6
- package/dist/react/bullet/index.js +16 -6
- package/dist/react/divider/index.d.ts +33 -38
- package/dist/react/divider/index.js +33 -38
- package/dist/react/marker/index.d.ts +17 -12
- package/dist/react/marker/index.js +17 -12
- package/dist/react/staticcheckbox/index.d.ts +22 -11
- package/dist/react/staticcheckbox/index.js +22 -11
- package/dist/react/staticradio/index.d.ts +21 -11
- package/dist/react/staticradio/index.js +21 -11
- package/dist/react/statictoggle/index.d.ts +25 -12
- package/dist/react/statictoggle/index.js +25 -12
- package/package.json +1 -1
|
@@ -2,23 +2,33 @@ import { CSSResult } from 'lit';
|
|
|
2
2
|
import { Component } from '../../models';
|
|
3
3
|
declare const StaticRadio_base: import("../../utils/mixins/index.types").Constructor<import("../../utils/mixins/DisabledMixin").DisabledMixinInterface> & typeof Component;
|
|
4
4
|
/**
|
|
5
|
-
* StaticRadio is a decorative
|
|
6
|
-
* Unlike the interactive `mdc-radio`,
|
|
7
|
-
*
|
|
5
|
+
* The StaticRadio component is a decorative, non-interactive radio button used for visual
|
|
6
|
+
* presentation in read-only scenarios. Unlike the interactive `mdc-radio`, it does not
|
|
7
|
+
* handle user interactions or form submissions.
|
|
8
8
|
*
|
|
9
|
-
* This component supports
|
|
9
|
+
* This component supports multiple visual states: checked, disabled, readonly, and soft-disabled.
|
|
10
|
+
*
|
|
11
|
+
* ## When to use
|
|
12
|
+
* Use StaticRadio to display radio button states in read-only contexts such as summary views,
|
|
13
|
+
* confirmation screens, or when showing historical form data. For interactive radio buttons, use
|
|
14
|
+
* `mdc-radio` instead.
|
|
15
|
+
*
|
|
16
|
+
* ## Accessibility
|
|
17
|
+
* - StaticRadio is decorative and non-interactive by design
|
|
18
|
+
* - Always pair with descriptive text labels in the default slot
|
|
19
|
+
* - Do not use this as a replacement for interactive radio buttons in forms
|
|
10
20
|
*
|
|
11
21
|
* @tagname mdc-staticradio
|
|
12
22
|
*
|
|
13
|
-
* @cssproperty --mdc-staticradio-inner-circle-size -
|
|
14
|
-
* @cssproperty --mdc-staticradio-outer-circle-size -
|
|
15
|
-
* @cssproperty --mdc-staticradio-inner-circle-background-color -
|
|
16
|
-
* @cssproperty --mdc-staticradio-outer-circle-border-color -
|
|
17
|
-
* @cssproperty --mdc-staticradio-outer-circle-background-color -
|
|
23
|
+
* @cssproperty --mdc-staticradio-inner-circle-size - Size of the inner circle when checked.
|
|
24
|
+
* @cssproperty --mdc-staticradio-outer-circle-size - Size of the outer circle border.
|
|
25
|
+
* @cssproperty --mdc-staticradio-inner-circle-background-color - Background color of the inner circle when checked.
|
|
26
|
+
* @cssproperty --mdc-staticradio-outer-circle-border-color - Border color of the outer circle.
|
|
27
|
+
* @cssproperty --mdc-staticradio-outer-circle-background-color - Background color of the outer circle.
|
|
18
28
|
*
|
|
19
|
-
* @csspart radio-icon - The radio icon element
|
|
29
|
+
* @csspart radio-icon - The radio icon element.
|
|
20
30
|
*
|
|
21
|
-
* @slot - Default slot for the label of the radio
|
|
31
|
+
* @slot - Default slot for the label of the radio.
|
|
22
32
|
*/
|
|
23
33
|
declare class StaticRadio extends StaticRadio_base {
|
|
24
34
|
/**
|
|
@@ -13,23 +13,33 @@ import { Component } from '../../models';
|
|
|
13
13
|
import { DisabledMixin } from '../../utils/mixins/DisabledMixin';
|
|
14
14
|
import styles from './staticradio.styles';
|
|
15
15
|
/**
|
|
16
|
-
* StaticRadio is a decorative
|
|
17
|
-
* Unlike the interactive `mdc-radio`,
|
|
18
|
-
*
|
|
16
|
+
* The StaticRadio component is a decorative, non-interactive radio button used for visual
|
|
17
|
+
* presentation in read-only scenarios. Unlike the interactive `mdc-radio`, it does not
|
|
18
|
+
* handle user interactions or form submissions.
|
|
19
19
|
*
|
|
20
|
-
* This component supports
|
|
20
|
+
* This component supports multiple visual states: checked, disabled, readonly, and soft-disabled.
|
|
21
|
+
*
|
|
22
|
+
* ## When to use
|
|
23
|
+
* Use StaticRadio to display radio button states in read-only contexts such as summary views,
|
|
24
|
+
* confirmation screens, or when showing historical form data. For interactive radio buttons, use
|
|
25
|
+
* `mdc-radio` instead.
|
|
26
|
+
*
|
|
27
|
+
* ## Accessibility
|
|
28
|
+
* - StaticRadio is decorative and non-interactive by design
|
|
29
|
+
* - Always pair with descriptive text labels in the default slot
|
|
30
|
+
* - Do not use this as a replacement for interactive radio buttons in forms
|
|
21
31
|
*
|
|
22
32
|
* @tagname mdc-staticradio
|
|
23
33
|
*
|
|
24
|
-
* @cssproperty --mdc-staticradio-inner-circle-size -
|
|
25
|
-
* @cssproperty --mdc-staticradio-outer-circle-size -
|
|
26
|
-
* @cssproperty --mdc-staticradio-inner-circle-background-color -
|
|
27
|
-
* @cssproperty --mdc-staticradio-outer-circle-border-color -
|
|
28
|
-
* @cssproperty --mdc-staticradio-outer-circle-background-color -
|
|
34
|
+
* @cssproperty --mdc-staticradio-inner-circle-size - Size of the inner circle when checked.
|
|
35
|
+
* @cssproperty --mdc-staticradio-outer-circle-size - Size of the outer circle border.
|
|
36
|
+
* @cssproperty --mdc-staticradio-inner-circle-background-color - Background color of the inner circle when checked.
|
|
37
|
+
* @cssproperty --mdc-staticradio-outer-circle-border-color - Border color of the outer circle.
|
|
38
|
+
* @cssproperty --mdc-staticradio-outer-circle-background-color - Background color of the outer circle.
|
|
29
39
|
*
|
|
30
|
-
* @csspart radio-icon - The radio icon element
|
|
40
|
+
* @csspart radio-icon - The radio icon element.
|
|
31
41
|
*
|
|
32
|
-
* @slot - Default slot for the label of the radio
|
|
42
|
+
* @slot - Default slot for the label of the radio.
|
|
33
43
|
*/
|
|
34
44
|
class StaticRadio extends DisabledMixin(Component) {
|
|
35
45
|
constructor() {
|
|
@@ -3,26 +3,39 @@ import { Component } from '../../models';
|
|
|
3
3
|
import type { ToggleSize } from './statictoggle.types';
|
|
4
4
|
declare const StaticToggle_base: import("../../utils/mixins/index.types").Constructor<import("../../utils/mixins/DisabledMixin").DisabledMixinInterface> & typeof Component;
|
|
5
5
|
/**
|
|
6
|
-
* The StaticToggle is a decorative
|
|
7
|
-
* It
|
|
8
|
-
*
|
|
6
|
+
* The StaticToggle component is a decorative, non-interactive toggle switch used for visual
|
|
7
|
+
* presentation. It shares the same styling as the interactive `mdc-toggle` component but does
|
|
8
|
+
* not provide user interaction functionality.
|
|
9
9
|
*
|
|
10
|
-
*
|
|
10
|
+
* This component supports multiple visual states: checked, disabled, readonly, soft-disabled,
|
|
11
|
+
* and size variations (default, compact).
|
|
12
|
+
*
|
|
13
|
+
* ## When to use
|
|
14
|
+
* Use StaticToggle to display toggle states in read-only contexts such as summary views,
|
|
15
|
+
* confirmation screens, or as a building block within custom interactive components. For
|
|
16
|
+
* interactive toggles, use `mdc-toggle` instead.
|
|
17
|
+
*
|
|
18
|
+
* ## Accessibility
|
|
19
|
+
* - StaticToggle is decorative and non-interactive by design
|
|
20
|
+
* - When used within parent components, ensure proper ARIA attributes are provided by the parent
|
|
21
|
+
* - Do not use this as a replacement for interactive toggles in forms
|
|
11
22
|
*
|
|
12
23
|
* @tagname mdc-statictoggle
|
|
13
24
|
*
|
|
14
|
-
* @
|
|
25
|
+
* @dependency mdc-icon
|
|
15
26
|
*
|
|
16
|
-
* @cssproperty --mdc-statictoggle-width -
|
|
17
|
-
* @cssproperty --mdc-statictoggle-height -
|
|
18
|
-
* @cssproperty --mdc-statictoggle-border-radius -
|
|
19
|
-
* @cssproperty --mdc-statictoggle-border-color -
|
|
20
|
-
* @cssproperty --mdc-statictoggle-background-color -
|
|
21
|
-
* @cssproperty --mdc-statictoggle-icon-color -
|
|
22
|
-
* @cssproperty --mdc-statictoggle-icon-background-color -
|
|
27
|
+
* @cssproperty --mdc-statictoggle-width - Width of the static toggle.
|
|
28
|
+
* @cssproperty --mdc-statictoggle-height - Height of the static toggle.
|
|
29
|
+
* @cssproperty --mdc-statictoggle-border-radius - Border radius of the static toggle.
|
|
30
|
+
* @cssproperty --mdc-statictoggle-border-color - Border color of the static toggle.
|
|
31
|
+
* @cssproperty --mdc-statictoggle-background-color - Background color of the static toggle.
|
|
32
|
+
* @cssproperty --mdc-statictoggle-icon-color - Icon color of the static toggle.
|
|
33
|
+
* @cssproperty --mdc-statictoggle-icon-background-color - Icon background color of the static toggle.
|
|
23
34
|
*
|
|
24
35
|
* @csspart slider - The slider part of the toggle.
|
|
25
36
|
* @csspart toggle-icon - The icon part of the toggle.
|
|
37
|
+
*
|
|
38
|
+
* @slot - Default slot for slotted content (typically used by parent `mdc-toggle` for the checkbox input).
|
|
26
39
|
*/
|
|
27
40
|
declare class StaticToggle extends StaticToggle_base {
|
|
28
41
|
/**
|
|
@@ -14,26 +14,39 @@ import { DisabledMixin } from '../../utils/mixins/DisabledMixin';
|
|
|
14
14
|
import { DEFAULTS, ICON_NAME, ICON_SIZE_IN_REM } from './statictoggle.constants';
|
|
15
15
|
import styles from './statictoggle.styles';
|
|
16
16
|
/**
|
|
17
|
-
* The StaticToggle is a decorative
|
|
18
|
-
* It
|
|
19
|
-
*
|
|
17
|
+
* The StaticToggle component is a decorative, non-interactive toggle switch used for visual
|
|
18
|
+
* presentation. It shares the same styling as the interactive `mdc-toggle` component but does
|
|
19
|
+
* not provide user interaction functionality.
|
|
20
20
|
*
|
|
21
|
-
*
|
|
21
|
+
* This component supports multiple visual states: checked, disabled, readonly, soft-disabled,
|
|
22
|
+
* and size variations (default, compact).
|
|
23
|
+
*
|
|
24
|
+
* ## When to use
|
|
25
|
+
* Use StaticToggle to display toggle states in read-only contexts such as summary views,
|
|
26
|
+
* confirmation screens, or as a building block within custom interactive components. For
|
|
27
|
+
* interactive toggles, use `mdc-toggle` instead.
|
|
28
|
+
*
|
|
29
|
+
* ## Accessibility
|
|
30
|
+
* - StaticToggle is decorative and non-interactive by design
|
|
31
|
+
* - When used within parent components, ensure proper ARIA attributes are provided by the parent
|
|
32
|
+
* - Do not use this as a replacement for interactive toggles in forms
|
|
22
33
|
*
|
|
23
34
|
* @tagname mdc-statictoggle
|
|
24
35
|
*
|
|
25
|
-
* @
|
|
36
|
+
* @dependency mdc-icon
|
|
26
37
|
*
|
|
27
|
-
* @cssproperty --mdc-statictoggle-width -
|
|
28
|
-
* @cssproperty --mdc-statictoggle-height -
|
|
29
|
-
* @cssproperty --mdc-statictoggle-border-radius -
|
|
30
|
-
* @cssproperty --mdc-statictoggle-border-color -
|
|
31
|
-
* @cssproperty --mdc-statictoggle-background-color -
|
|
32
|
-
* @cssproperty --mdc-statictoggle-icon-color -
|
|
33
|
-
* @cssproperty --mdc-statictoggle-icon-background-color -
|
|
38
|
+
* @cssproperty --mdc-statictoggle-width - Width of the static toggle.
|
|
39
|
+
* @cssproperty --mdc-statictoggle-height - Height of the static toggle.
|
|
40
|
+
* @cssproperty --mdc-statictoggle-border-radius - Border radius of the static toggle.
|
|
41
|
+
* @cssproperty --mdc-statictoggle-border-color - Border color of the static toggle.
|
|
42
|
+
* @cssproperty --mdc-statictoggle-background-color - Background color of the static toggle.
|
|
43
|
+
* @cssproperty --mdc-statictoggle-icon-color - Icon color of the static toggle.
|
|
44
|
+
* @cssproperty --mdc-statictoggle-icon-background-color - Icon background color of the static toggle.
|
|
34
45
|
*
|
|
35
46
|
* @csspart slider - The slider part of the toggle.
|
|
36
47
|
* @csspart toggle-icon - The icon part of the toggle.
|
|
48
|
+
*
|
|
49
|
+
* @slot - Default slot for slotted content (typically used by parent `mdc-toggle` for the checkbox input).
|
|
37
50
|
*/
|
|
38
51
|
class StaticToggle extends DisabledMixin(Component) {
|
|
39
52
|
constructor() {
|