@momentum-design/components 0.129.36 → 0.129.38
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 +263 -264
- package/dist/browser/index.js.map +4 -4
- 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/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/popover/popover.component.d.ts +5 -2
- package/dist/components/popover/popover.component.js +39 -21
- package/dist/components/popover/popover.constants.d.ts +6 -1
- package/dist/components/popover/popover.constants.js +6 -1
- 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 +169 -79
- 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/dist/utils/controllers/Timers.d.ts +49 -0
- package/dist/utils/controllers/Timers.js +96 -0
- package/package.json +1 -1
|
@@ -1,14 +1,24 @@
|
|
|
1
1
|
import Component from '../../components/bullet';
|
|
2
2
|
/**
|
|
3
|
-
* Bullet component
|
|
4
|
-
*
|
|
3
|
+
* The Bullet component displays a small circular visual indicator used to organize and present
|
|
4
|
+
* items in a list format. It provides a simple, consistent way to mark list items or emphasize
|
|
5
|
+
* content points.
|
|
6
|
+
*
|
|
7
|
+
* Bullets are available in three sizes (small, medium, large) to accommodate different layout
|
|
8
|
+
* densities and visual hierarchies.
|
|
9
|
+
*
|
|
10
|
+
* ## When to use
|
|
11
|
+
* Use bullets to create unordered lists, mark navigation items, or provide visual indicators
|
|
12
|
+
* for list content. Choose bullet size based on content importance and layout density.
|
|
13
|
+
*
|
|
14
|
+
* ## Accessibility
|
|
15
|
+
* - Bullets are purely decorative and should be used alongside meaningful text content
|
|
16
|
+
* - Do not rely solely on bullet size or color to convey information
|
|
5
17
|
*
|
|
6
18
|
* @tagname mdc-bullet
|
|
7
19
|
*
|
|
8
|
-
* @cssproperty --mdc-bullet-background-color -
|
|
9
|
-
* @cssproperty --mdc-bullet-size
|
|
10
|
-
* @cssproperty --mdc-bullet-size-medium - medium size value of the bullet
|
|
11
|
-
* @cssproperty --mdc-bullet-size-large - large size value of the bullet
|
|
20
|
+
* @cssproperty --mdc-bullet-background-color - Background color of the bullet.
|
|
21
|
+
* @cssproperty --mdc-bullet-size - Height of the bullet.
|
|
12
22
|
*/
|
|
13
23
|
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
|
|
14
24
|
export default reactWrapper;
|
|
@@ -3,15 +3,25 @@ import { createComponent } from '@lit/react';
|
|
|
3
3
|
import Component from '../../components/bullet';
|
|
4
4
|
import { TAG_NAME } from '../../components/bullet/bullet.constants';
|
|
5
5
|
/**
|
|
6
|
-
* Bullet component
|
|
7
|
-
*
|
|
6
|
+
* The Bullet component displays a small circular visual indicator used to organize and present
|
|
7
|
+
* items in a list format. It provides a simple, consistent way to mark list items or emphasize
|
|
8
|
+
* content points.
|
|
9
|
+
*
|
|
10
|
+
* Bullets are available in three sizes (small, medium, large) to accommodate different layout
|
|
11
|
+
* densities and visual hierarchies.
|
|
12
|
+
*
|
|
13
|
+
* ## When to use
|
|
14
|
+
* Use bullets to create unordered lists, mark navigation items, or provide visual indicators
|
|
15
|
+
* for list content. Choose bullet size based on content importance and layout density.
|
|
16
|
+
*
|
|
17
|
+
* ## Accessibility
|
|
18
|
+
* - Bullets are purely decorative and should be used alongside meaningful text content
|
|
19
|
+
* - Do not rely solely on bullet size or color to convey information
|
|
8
20
|
*
|
|
9
21
|
* @tagname mdc-bullet
|
|
10
22
|
*
|
|
11
|
-
* @cssproperty --mdc-bullet-background-color -
|
|
12
|
-
* @cssproperty --mdc-bullet-size
|
|
13
|
-
* @cssproperty --mdc-bullet-size-medium - medium size value of the bullet
|
|
14
|
-
* @cssproperty --mdc-bullet-size-large - large size value of the bullet
|
|
23
|
+
* @cssproperty --mdc-bullet-background-color - Background color of the bullet.
|
|
24
|
+
* @cssproperty --mdc-bullet-size - Height of the bullet.
|
|
15
25
|
*/
|
|
16
26
|
const reactWrapper = createComponent({
|
|
17
27
|
tagName: TAG_NAME,
|
|
@@ -1,50 +1,45 @@
|
|
|
1
1
|
import Component from '../../components/divider';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
* It
|
|
3
|
+
* The Divider component provides a visual line to separate and organize content within layouts.
|
|
4
|
+
* It supports both horizontal and vertical orientations with solid or gradient styles, and can
|
|
5
|
+
* optionally include centered text labels or interactive grabber buttons.
|
|
5
6
|
*
|
|
6
|
-
*
|
|
7
|
-
* - **
|
|
8
|
-
* - **
|
|
7
|
+
* The divider automatically infers its type based on the content in its slot:
|
|
8
|
+
* - **Primary**: Simple line with no content
|
|
9
|
+
* - **Text**: Horizontal line with centered text label
|
|
10
|
+
* - **Grabber Button**: Line with centered interactive button
|
|
9
11
|
*
|
|
10
|
-
* **
|
|
11
|
-
* -
|
|
12
|
-
* -
|
|
12
|
+
* **Note:**
|
|
13
|
+
* - Vertical text dividers are not currently supported.
|
|
14
|
+
* - If the slot contains invalid tag names or multiple elements, the divider defaults to the Primary type
|
|
15
|
+
* - Use the provided CSS custom properties to customize divider styles
|
|
13
16
|
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* - **Text**: A horizontal divider with a text label in the center.
|
|
18
|
-
* - **Grabber Button**: A horizontal or vertical divider with a styled button in the center.
|
|
17
|
+
* ## When to use
|
|
18
|
+
* Use dividers to create visual separation between content sections, list items, or layout regions.
|
|
19
|
+
* Add text labels to provide context, or grabber buttons to create resizable panes.
|
|
19
20
|
*
|
|
20
|
-
*
|
|
21
|
-
* - When
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* **Notes:**
|
|
26
|
-
* - If the slot is replaced by an invalid tag name or contains multiple elements,
|
|
27
|
-
* the divider defaults to the **Primary** type.
|
|
28
|
-
* - To override the styles of the divider, use the provided CSS custom properties.
|
|
21
|
+
* ## Accessibility
|
|
22
|
+
* - When using a grabber button, provide `aria-label` to describe its purpose
|
|
23
|
+
* - Set `aria-expanded` on the button to indicate the current state of resizable sections
|
|
24
|
+
* - Ensure sufficient color contrast for the divider line
|
|
29
25
|
*
|
|
30
26
|
* @tagname mdc-divider
|
|
31
27
|
*
|
|
32
|
-
* @cssproperty --mdc-divider-background-color -
|
|
33
|
-
* @cssproperty --mdc-divider-width -
|
|
34
|
-
* @cssproperty --mdc-divider-horizontal-gradient -
|
|
35
|
-
* @cssproperty --mdc-divider-vertical-gradient -
|
|
36
|
-
* @cssproperty --mdc-divider-text-size -
|
|
37
|
-
* @cssproperty --mdc-divider-text-color -
|
|
38
|
-
* @cssproperty --mdc-divider-text-margin -
|
|
39
|
-
* @cssproperty --mdc-divider-text-line-height -
|
|
40
|
-
* @cssproperty --mdc-divider-grabber-button-background-color-normal -
|
|
41
|
-
*
|
|
42
|
-
* @cssproperty --mdc-divider-grabber-button-background-color-
|
|
43
|
-
*
|
|
44
|
-
* @cssproperty --mdc-divider-grabber-button-
|
|
45
|
-
*
|
|
46
|
-
* @
|
|
47
|
-
* @cssproperty --mdc-divider-grabber-button-border-radius - border radius of the grabber button
|
|
28
|
+
* @cssproperty --mdc-divider-background-color - Background color of the divider line.
|
|
29
|
+
* @cssproperty --mdc-divider-width - Width (thickness) of the divider line.
|
|
30
|
+
* @cssproperty --mdc-divider-horizontal-gradient - Gradient for horizontal dividers.
|
|
31
|
+
* @cssproperty --mdc-divider-vertical-gradient - Gradient for vertical dividers.
|
|
32
|
+
* @cssproperty --mdc-divider-text-size - Font size of the text label in text dividers.
|
|
33
|
+
* @cssproperty --mdc-divider-text-color - Font color of the text label in text dividers.
|
|
34
|
+
* @cssproperty --mdc-divider-text-margin - Left and right margin of the text label.
|
|
35
|
+
* @cssproperty --mdc-divider-text-line-height - Line height of the text label.
|
|
36
|
+
* @cssproperty --mdc-divider-grabber-button-background-color-normal - Background color of the grabber button in rest state.
|
|
37
|
+
* @cssproperty --mdc-divider-grabber-button-background-color-hover - Background color of the grabber button in hover state.
|
|
38
|
+
* @cssproperty --mdc-divider-grabber-button-background-color-pressed - Background color of the grabber button in pressed state.
|
|
39
|
+
* @cssproperty --mdc-divider-grabber-button-border-color - Border color of the grabber button.
|
|
40
|
+
* @cssproperty --mdc-divider-grabber-button-border-radius - Border radius of the grabber button.
|
|
41
|
+
*
|
|
42
|
+
* @slot - Content for the divider. Use `mdc-text` for text labels or `mdc-button` for grabber buttons.
|
|
48
43
|
*/
|
|
49
44
|
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
|
|
50
45
|
export default reactWrapper;
|
|
@@ -3,51 +3,46 @@ import { createComponent } from '@lit/react';
|
|
|
3
3
|
import Component from '../../components/divider';
|
|
4
4
|
import { TAG_NAME } from '../../components/divider/divider.constants';
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
* It
|
|
6
|
+
* The Divider component provides a visual line to separate and organize content within layouts.
|
|
7
|
+
* It supports both horizontal and vertical orientations with solid or gradient styles, and can
|
|
8
|
+
* optionally include centered text labels or interactive grabber buttons.
|
|
8
9
|
*
|
|
9
|
-
*
|
|
10
|
-
* - **
|
|
11
|
-
* - **
|
|
10
|
+
* The divider automatically infers its type based on the content in its slot:
|
|
11
|
+
* - **Primary**: Simple line with no content
|
|
12
|
+
* - **Text**: Horizontal line with centered text label
|
|
13
|
+
* - **Grabber Button**: Line with centered interactive button
|
|
12
14
|
*
|
|
13
|
-
* **
|
|
14
|
-
* -
|
|
15
|
-
* -
|
|
15
|
+
* **Note:**
|
|
16
|
+
* - Vertical text dividers are not currently supported.
|
|
17
|
+
* - If the slot contains invalid tag names or multiple elements, the divider defaults to the Primary type
|
|
18
|
+
* - Use the provided CSS custom properties to customize divider styles
|
|
16
19
|
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* - **Text**: A horizontal divider with a text label in the center.
|
|
21
|
-
* - **Grabber Button**: A horizontal or vertical divider with a styled button in the center.
|
|
20
|
+
* ## When to use
|
|
21
|
+
* Use dividers to create visual separation between content sections, list items, or layout regions.
|
|
22
|
+
* Add text labels to provide context, or grabber buttons to create resizable panes.
|
|
22
23
|
*
|
|
23
|
-
*
|
|
24
|
-
* - When
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
* **Notes:**
|
|
29
|
-
* - If the slot is replaced by an invalid tag name or contains multiple elements,
|
|
30
|
-
* the divider defaults to the **Primary** type.
|
|
31
|
-
* - To override the styles of the divider, use the provided CSS custom properties.
|
|
24
|
+
* ## Accessibility
|
|
25
|
+
* - When using a grabber button, provide `aria-label` to describe its purpose
|
|
26
|
+
* - Set `aria-expanded` on the button to indicate the current state of resizable sections
|
|
27
|
+
* - Ensure sufficient color contrast for the divider line
|
|
32
28
|
*
|
|
33
29
|
* @tagname mdc-divider
|
|
34
30
|
*
|
|
35
|
-
* @cssproperty --mdc-divider-background-color -
|
|
36
|
-
* @cssproperty --mdc-divider-width -
|
|
37
|
-
* @cssproperty --mdc-divider-horizontal-gradient -
|
|
38
|
-
* @cssproperty --mdc-divider-vertical-gradient -
|
|
39
|
-
* @cssproperty --mdc-divider-text-size -
|
|
40
|
-
* @cssproperty --mdc-divider-text-color -
|
|
41
|
-
* @cssproperty --mdc-divider-text-margin -
|
|
42
|
-
* @cssproperty --mdc-divider-text-line-height -
|
|
43
|
-
* @cssproperty --mdc-divider-grabber-button-background-color-normal -
|
|
44
|
-
*
|
|
45
|
-
* @cssproperty --mdc-divider-grabber-button-background-color-
|
|
46
|
-
*
|
|
47
|
-
* @cssproperty --mdc-divider-grabber-button-
|
|
48
|
-
*
|
|
49
|
-
* @
|
|
50
|
-
* @cssproperty --mdc-divider-grabber-button-border-radius - border radius of the grabber button
|
|
31
|
+
* @cssproperty --mdc-divider-background-color - Background color of the divider line.
|
|
32
|
+
* @cssproperty --mdc-divider-width - Width (thickness) of the divider line.
|
|
33
|
+
* @cssproperty --mdc-divider-horizontal-gradient - Gradient for horizontal dividers.
|
|
34
|
+
* @cssproperty --mdc-divider-vertical-gradient - Gradient for vertical dividers.
|
|
35
|
+
* @cssproperty --mdc-divider-text-size - Font size of the text label in text dividers.
|
|
36
|
+
* @cssproperty --mdc-divider-text-color - Font color of the text label in text dividers.
|
|
37
|
+
* @cssproperty --mdc-divider-text-margin - Left and right margin of the text label.
|
|
38
|
+
* @cssproperty --mdc-divider-text-line-height - Line height of the text label.
|
|
39
|
+
* @cssproperty --mdc-divider-grabber-button-background-color-normal - Background color of the grabber button in rest state.
|
|
40
|
+
* @cssproperty --mdc-divider-grabber-button-background-color-hover - Background color of the grabber button in hover state.
|
|
41
|
+
* @cssproperty --mdc-divider-grabber-button-background-color-pressed - Background color of the grabber button in pressed state.
|
|
42
|
+
* @cssproperty --mdc-divider-grabber-button-border-color - Border color of the grabber button.
|
|
43
|
+
* @cssproperty --mdc-divider-grabber-button-border-radius - Border radius of the grabber button.
|
|
44
|
+
*
|
|
45
|
+
* @slot - Content for the divider. Use `mdc-text` for text labels or `mdc-button` for grabber buttons.
|
|
51
46
|
*/
|
|
52
47
|
const reactWrapper = createComponent({
|
|
53
48
|
tagName: TAG_NAME,
|
|
@@ -1,21 +1,26 @@
|
|
|
1
1
|
import Component from '../../components/marker';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* the content or to signify important information.
|
|
3
|
+
* The Marker component displays a vertical line (0.25rem wide) used to draw attention to specific content
|
|
4
|
+
* or signify important information. It provides visual emphasis through color and pattern variations.
|
|
6
5
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
6
|
+
* Markers are commonly used alongside list items, cards, or content blocks to indicate status,
|
|
7
|
+
* priority, or categorization.
|
|
8
|
+
*
|
|
9
|
+
* ## When to use
|
|
10
|
+
* Use markers to highlight important content, indicate status or priority levels, or provide
|
|
11
|
+
* visual categorization in lists and layouts.
|
|
12
|
+
*
|
|
13
|
+
* ## Accessibility
|
|
14
|
+
* - Markers are purely decorative and should not convey information solely through color
|
|
15
|
+
* - Always pair markers with text labels or other indicators to convey meaning
|
|
16
|
+
* - Ensure sufficient color contrast for visibility
|
|
10
17
|
*
|
|
11
18
|
* @tagname mdc-marker
|
|
12
19
|
*
|
|
13
|
-
* @cssproperty --mdc-marker-solid-background-color -
|
|
14
|
-
*
|
|
15
|
-
* @cssproperty --mdc-marker-striped-color -
|
|
16
|
-
* @cssproperty --mdc-marker-
|
|
17
|
-
* in striped variant.
|
|
18
|
-
* @cssproperty --mdc-marker-width - Allows customization of the default width.
|
|
20
|
+
* @cssproperty --mdc-marker-solid-background-color - Background color for solid variant markers.
|
|
21
|
+
* @cssproperty --mdc-marker-striped-color - Stripe color for striped variant markers.
|
|
22
|
+
* @cssproperty --mdc-marker-striped-background-color - Background color for striped variant markers.
|
|
23
|
+
* @cssproperty --mdc-marker-width - Width (thickness) of the marker line.
|
|
19
24
|
*/
|
|
20
25
|
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
|
|
21
26
|
export default reactWrapper;
|
|
@@ -3,22 +3,27 @@ import { createComponent } from '@lit/react';
|
|
|
3
3
|
import Component from '../../components/marker';
|
|
4
4
|
import { TAG_NAME } from '../../components/marker/marker.constants';
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* the content or to signify important information.
|
|
6
|
+
* The Marker component displays a vertical line (0.25rem wide) used to draw attention to specific content
|
|
7
|
+
* or signify important information. It provides visual emphasis through color and pattern variations.
|
|
9
8
|
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
9
|
+
* Markers are commonly used alongside list items, cards, or content blocks to indicate status,
|
|
10
|
+
* priority, or categorization.
|
|
11
|
+
*
|
|
12
|
+
* ## When to use
|
|
13
|
+
* Use markers to highlight important content, indicate status or priority levels, or provide
|
|
14
|
+
* visual categorization in lists and layouts.
|
|
15
|
+
*
|
|
16
|
+
* ## Accessibility
|
|
17
|
+
* - Markers are purely decorative and should not convey information solely through color
|
|
18
|
+
* - Always pair markers with text labels or other indicators to convey meaning
|
|
19
|
+
* - Ensure sufficient color contrast for visibility
|
|
13
20
|
*
|
|
14
21
|
* @tagname mdc-marker
|
|
15
22
|
*
|
|
16
|
-
* @cssproperty --mdc-marker-solid-background-color -
|
|
17
|
-
*
|
|
18
|
-
* @cssproperty --mdc-marker-striped-color -
|
|
19
|
-
* @cssproperty --mdc-marker-
|
|
20
|
-
* in striped variant.
|
|
21
|
-
* @cssproperty --mdc-marker-width - Allows customization of the default width.
|
|
23
|
+
* @cssproperty --mdc-marker-solid-background-color - Background color for solid variant markers.
|
|
24
|
+
* @cssproperty --mdc-marker-striped-color - Stripe color for striped variant markers.
|
|
25
|
+
* @cssproperty --mdc-marker-striped-background-color - Background color for striped variant markers.
|
|
26
|
+
* @cssproperty --mdc-marker-width - Width (thickness) of the marker line.
|
|
22
27
|
*/
|
|
23
28
|
const reactWrapper = createComponent({
|
|
24
29
|
tagName: TAG_NAME,
|
|
@@ -1,24 +1,35 @@
|
|
|
1
1
|
import Component from '../../components/staticcheckbox';
|
|
2
2
|
/**
|
|
3
|
-
* StaticCheckbox is a decorative
|
|
4
|
-
* Unlike the interactive `mdc-checkbox`,
|
|
5
|
-
*
|
|
3
|
+
* The StaticCheckbox component is a decorative, non-interactive checkbox used for visual
|
|
4
|
+
* presentation in read-only scenarios. Unlike the interactive `mdc-checkbox`, it does not
|
|
5
|
+
* handle user interactions or form submissions.
|
|
6
6
|
*
|
|
7
|
-
* This component supports
|
|
7
|
+
* This component supports multiple visual states: checked, indeterminate, disabled, readonly,
|
|
8
|
+
* and soft-disabled.
|
|
9
|
+
*
|
|
10
|
+
* ## When to use
|
|
11
|
+
* Use StaticCheckbox to display checkbox states in read-only contexts such as summary views,
|
|
12
|
+
* confirmation screens, or when showing historical form data. For interactive checkboxes, use
|
|
13
|
+
* `mdc-checkbox` instead.
|
|
14
|
+
*
|
|
15
|
+
* ## Accessibility
|
|
16
|
+
* - StaticCheckbox is decorative and non-interactive by design
|
|
17
|
+
* - Always pair with descriptive text labels in the default slot
|
|
18
|
+
* - Do not use this as a replacement for interactive checkboxes in forms
|
|
8
19
|
*
|
|
9
20
|
* @tagname mdc-staticcheckbox
|
|
10
21
|
*
|
|
11
22
|
* @dependency mdc-icon
|
|
12
23
|
*
|
|
13
|
-
* @cssproperty --mdc-staticcheckbox-border-color -
|
|
14
|
-
* @cssproperty --mdc-staticcheckbox-background-color -
|
|
15
|
-
* @cssproperty --mdc-staticcheckbox-icon-color -
|
|
16
|
-
* @cssproperty --mdc-staticcheckbox-size -
|
|
24
|
+
* @cssproperty --mdc-staticcheckbox-border-color - Border color of the checkbox.
|
|
25
|
+
* @cssproperty --mdc-staticcheckbox-background-color - Background color of the checkbox.
|
|
26
|
+
* @cssproperty --mdc-staticcheckbox-icon-color - Icon color of the checkbox.
|
|
27
|
+
* @cssproperty --mdc-staticcheckbox-size - Size of the checkbox.
|
|
17
28
|
*
|
|
18
|
-
* @csspart icon-container - The container for the checkbox icon
|
|
19
|
-
* @csspart checkbox-icon - The checkbox icon element
|
|
29
|
+
* @csspart icon-container - The container for the checkbox icon.
|
|
30
|
+
* @csspart checkbox-icon - The checkbox icon element.
|
|
20
31
|
*
|
|
21
|
-
* @slot - Default slot for
|
|
32
|
+
* @slot - Default slot for label text.
|
|
22
33
|
*/
|
|
23
34
|
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
|
|
24
35
|
export default reactWrapper;
|
|
@@ -3,25 +3,36 @@ import { createComponent } from '@lit/react';
|
|
|
3
3
|
import Component from '../../components/staticcheckbox';
|
|
4
4
|
import { TAG_NAME } from '../../components/staticcheckbox/staticcheckbox.constants';
|
|
5
5
|
/**
|
|
6
|
-
* StaticCheckbox is a decorative
|
|
7
|
-
* Unlike the interactive `mdc-checkbox`,
|
|
8
|
-
*
|
|
6
|
+
* The StaticCheckbox component is a decorative, non-interactive checkbox used for visual
|
|
7
|
+
* presentation in read-only scenarios. Unlike the interactive `mdc-checkbox`, it does not
|
|
8
|
+
* handle user interactions or form submissions.
|
|
9
9
|
*
|
|
10
|
-
* This component supports
|
|
10
|
+
* This component supports multiple visual states: checked, indeterminate, disabled, readonly,
|
|
11
|
+
* and soft-disabled.
|
|
12
|
+
*
|
|
13
|
+
* ## When to use
|
|
14
|
+
* Use StaticCheckbox to display checkbox states in read-only contexts such as summary views,
|
|
15
|
+
* confirmation screens, or when showing historical form data. For interactive checkboxes, use
|
|
16
|
+
* `mdc-checkbox` instead.
|
|
17
|
+
*
|
|
18
|
+
* ## Accessibility
|
|
19
|
+
* - StaticCheckbox is decorative and non-interactive by design
|
|
20
|
+
* - Always pair with descriptive text labels in the default slot
|
|
21
|
+
* - Do not use this as a replacement for interactive checkboxes in forms
|
|
11
22
|
*
|
|
12
23
|
* @tagname mdc-staticcheckbox
|
|
13
24
|
*
|
|
14
25
|
* @dependency mdc-icon
|
|
15
26
|
*
|
|
16
|
-
* @cssproperty --mdc-staticcheckbox-border-color -
|
|
17
|
-
* @cssproperty --mdc-staticcheckbox-background-color -
|
|
18
|
-
* @cssproperty --mdc-staticcheckbox-icon-color -
|
|
19
|
-
* @cssproperty --mdc-staticcheckbox-size -
|
|
27
|
+
* @cssproperty --mdc-staticcheckbox-border-color - Border color of the checkbox.
|
|
28
|
+
* @cssproperty --mdc-staticcheckbox-background-color - Background color of the checkbox.
|
|
29
|
+
* @cssproperty --mdc-staticcheckbox-icon-color - Icon color of the checkbox.
|
|
30
|
+
* @cssproperty --mdc-staticcheckbox-size - Size of the checkbox.
|
|
20
31
|
*
|
|
21
|
-
* @csspart icon-container - The container for the checkbox icon
|
|
22
|
-
* @csspart checkbox-icon - The checkbox icon element
|
|
32
|
+
* @csspart icon-container - The container for the checkbox icon.
|
|
33
|
+
* @csspart checkbox-icon - The checkbox icon element.
|
|
23
34
|
*
|
|
24
|
-
* @slot - Default slot for
|
|
35
|
+
* @slot - Default slot for label text.
|
|
25
36
|
*/
|
|
26
37
|
const reactWrapper = createComponent({
|
|
27
38
|
tagName: TAG_NAME,
|
|
@@ -1,22 +1,32 @@
|
|
|
1
1
|
import Component from '../../components/staticradio';
|
|
2
2
|
/**
|
|
3
|
-
* StaticRadio is a decorative
|
|
4
|
-
* Unlike the interactive `mdc-radio`,
|
|
5
|
-
*
|
|
3
|
+
* The StaticRadio component is a decorative, non-interactive radio button used for visual
|
|
4
|
+
* presentation in read-only scenarios. Unlike the interactive `mdc-radio`, it does not
|
|
5
|
+
* handle user interactions or form submissions.
|
|
6
6
|
*
|
|
7
|
-
* This component supports
|
|
7
|
+
* This component supports multiple visual states: checked, disabled, readonly, and soft-disabled.
|
|
8
|
+
*
|
|
9
|
+
* ## When to use
|
|
10
|
+
* Use StaticRadio to display radio button states in read-only contexts such as summary views,
|
|
11
|
+
* confirmation screens, or when showing historical form data. For interactive radio buttons, use
|
|
12
|
+
* `mdc-radio` instead.
|
|
13
|
+
*
|
|
14
|
+
* ## Accessibility
|
|
15
|
+
* - StaticRadio is decorative and non-interactive by design
|
|
16
|
+
* - Always pair with descriptive text labels in the default slot
|
|
17
|
+
* - Do not use this as a replacement for interactive radio buttons in forms
|
|
8
18
|
*
|
|
9
19
|
* @tagname mdc-staticradio
|
|
10
20
|
*
|
|
11
|
-
* @cssproperty --mdc-staticradio-inner-circle-size -
|
|
12
|
-
* @cssproperty --mdc-staticradio-outer-circle-size -
|
|
13
|
-
* @cssproperty --mdc-staticradio-inner-circle-background-color -
|
|
14
|
-
* @cssproperty --mdc-staticradio-outer-circle-border-color -
|
|
15
|
-
* @cssproperty --mdc-staticradio-outer-circle-background-color -
|
|
21
|
+
* @cssproperty --mdc-staticradio-inner-circle-size - Size of the inner circle when checked.
|
|
22
|
+
* @cssproperty --mdc-staticradio-outer-circle-size - Size of the outer circle border.
|
|
23
|
+
* @cssproperty --mdc-staticradio-inner-circle-background-color - Background color of the inner circle when checked.
|
|
24
|
+
* @cssproperty --mdc-staticradio-outer-circle-border-color - Border color of the outer circle.
|
|
25
|
+
* @cssproperty --mdc-staticradio-outer-circle-background-color - Background color of the outer circle.
|
|
16
26
|
*
|
|
17
|
-
* @csspart radio-icon - The radio icon element
|
|
27
|
+
* @csspart radio-icon - The radio icon element.
|
|
18
28
|
*
|
|
19
|
-
* @slot - Default slot for the label of the radio
|
|
29
|
+
* @slot - Default slot for the label of the radio.
|
|
20
30
|
*/
|
|
21
31
|
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
|
|
22
32
|
export default reactWrapper;
|
|
@@ -3,23 +3,33 @@ import { createComponent } from '@lit/react';
|
|
|
3
3
|
import Component from '../../components/staticradio';
|
|
4
4
|
import { TAG_NAME } from '../../components/staticradio/staticradio.constants';
|
|
5
5
|
/**
|
|
6
|
-
* StaticRadio is a decorative
|
|
7
|
-
* Unlike the interactive `mdc-radio`,
|
|
8
|
-
*
|
|
6
|
+
* The StaticRadio component is a decorative, non-interactive radio button used for visual
|
|
7
|
+
* presentation in read-only scenarios. Unlike the interactive `mdc-radio`, it does not
|
|
8
|
+
* handle user interactions or form submissions.
|
|
9
9
|
*
|
|
10
|
-
* This component supports
|
|
10
|
+
* This component supports multiple visual states: checked, disabled, readonly, and soft-disabled.
|
|
11
|
+
*
|
|
12
|
+
* ## When to use
|
|
13
|
+
* Use StaticRadio to display radio button states in read-only contexts such as summary views,
|
|
14
|
+
* confirmation screens, or when showing historical form data. For interactive radio buttons, use
|
|
15
|
+
* `mdc-radio` instead.
|
|
16
|
+
*
|
|
17
|
+
* ## Accessibility
|
|
18
|
+
* - StaticRadio is decorative and non-interactive by design
|
|
19
|
+
* - Always pair with descriptive text labels in the default slot
|
|
20
|
+
* - Do not use this as a replacement for interactive radio buttons in forms
|
|
11
21
|
*
|
|
12
22
|
* @tagname mdc-staticradio
|
|
13
23
|
*
|
|
14
|
-
* @cssproperty --mdc-staticradio-inner-circle-size -
|
|
15
|
-
* @cssproperty --mdc-staticradio-outer-circle-size -
|
|
16
|
-
* @cssproperty --mdc-staticradio-inner-circle-background-color -
|
|
17
|
-
* @cssproperty --mdc-staticradio-outer-circle-border-color -
|
|
18
|
-
* @cssproperty --mdc-staticradio-outer-circle-background-color -
|
|
24
|
+
* @cssproperty --mdc-staticradio-inner-circle-size - Size of the inner circle when checked.
|
|
25
|
+
* @cssproperty --mdc-staticradio-outer-circle-size - Size of the outer circle border.
|
|
26
|
+
* @cssproperty --mdc-staticradio-inner-circle-background-color - Background color of the inner circle when checked.
|
|
27
|
+
* @cssproperty --mdc-staticradio-outer-circle-border-color - Border color of the outer circle.
|
|
28
|
+
* @cssproperty --mdc-staticradio-outer-circle-background-color - Background color of the outer circle.
|
|
19
29
|
*
|
|
20
|
-
* @csspart radio-icon - The radio icon element
|
|
30
|
+
* @csspart radio-icon - The radio icon element.
|
|
21
31
|
*
|
|
22
|
-
* @slot - Default slot for the label of the radio
|
|
32
|
+
* @slot - Default slot for the label of the radio.
|
|
23
33
|
*/
|
|
24
34
|
const reactWrapper = createComponent({
|
|
25
35
|
tagName: TAG_NAME,
|
|
@@ -1,25 +1,38 @@
|
|
|
1
1
|
import Component from '../../components/statictoggle';
|
|
2
2
|
/**
|
|
3
|
-
* The StaticToggle is a decorative
|
|
4
|
-
* It
|
|
5
|
-
*
|
|
3
|
+
* The StaticToggle component is a decorative, non-interactive toggle switch used for visual
|
|
4
|
+
* presentation. It shares the same styling as the interactive `mdc-toggle` component but does
|
|
5
|
+
* not provide user interaction functionality.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
7
|
+
* This component supports multiple visual states: checked, disabled, readonly, soft-disabled,
|
|
8
|
+
* and size variations (default, compact).
|
|
9
|
+
*
|
|
10
|
+
* ## When to use
|
|
11
|
+
* Use StaticToggle to display toggle states in read-only contexts such as summary views,
|
|
12
|
+
* confirmation screens, or as a building block within custom interactive components. For
|
|
13
|
+
* interactive toggles, use `mdc-toggle` instead.
|
|
14
|
+
*
|
|
15
|
+
* ## Accessibility
|
|
16
|
+
* - StaticToggle is decorative and non-interactive by design
|
|
17
|
+
* - When used within parent components, ensure proper ARIA attributes are provided by the parent
|
|
18
|
+
* - Do not use this as a replacement for interactive toggles in forms
|
|
8
19
|
*
|
|
9
20
|
* @tagname mdc-statictoggle
|
|
10
21
|
*
|
|
11
|
-
* @
|
|
22
|
+
* @dependency mdc-icon
|
|
12
23
|
*
|
|
13
|
-
* @cssproperty --mdc-statictoggle-width -
|
|
14
|
-
* @cssproperty --mdc-statictoggle-height -
|
|
15
|
-
* @cssproperty --mdc-statictoggle-border-radius -
|
|
16
|
-
* @cssproperty --mdc-statictoggle-border-color -
|
|
17
|
-
* @cssproperty --mdc-statictoggle-background-color -
|
|
18
|
-
* @cssproperty --mdc-statictoggle-icon-color -
|
|
19
|
-
* @cssproperty --mdc-statictoggle-icon-background-color -
|
|
24
|
+
* @cssproperty --mdc-statictoggle-width - Width of the static toggle.
|
|
25
|
+
* @cssproperty --mdc-statictoggle-height - Height of the static toggle.
|
|
26
|
+
* @cssproperty --mdc-statictoggle-border-radius - Border radius of the static toggle.
|
|
27
|
+
* @cssproperty --mdc-statictoggle-border-color - Border color of the static toggle.
|
|
28
|
+
* @cssproperty --mdc-statictoggle-background-color - Background color of the static toggle.
|
|
29
|
+
* @cssproperty --mdc-statictoggle-icon-color - Icon color of the static toggle.
|
|
30
|
+
* @cssproperty --mdc-statictoggle-icon-background-color - Icon background color of the static toggle.
|
|
20
31
|
*
|
|
21
32
|
* @csspart slider - The slider part of the toggle.
|
|
22
33
|
* @csspart toggle-icon - The icon part of the toggle.
|
|
34
|
+
*
|
|
35
|
+
* @slot - Default slot for slotted content (typically used by parent `mdc-toggle` for the checkbox input).
|
|
23
36
|
*/
|
|
24
37
|
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
|
|
25
38
|
export default reactWrapper;
|
|
@@ -3,26 +3,39 @@ import { createComponent } from '@lit/react';
|
|
|
3
3
|
import Component from '../../components/statictoggle';
|
|
4
4
|
import { TAG_NAME } from '../../components/statictoggle/statictoggle.constants';
|
|
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
|
const reactWrapper = createComponent({
|
|
28
41
|
tagName: TAG_NAME,
|