@momentum-design/components 0.124.0 → 0.125.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/browser/index.js +200 -162
- package/dist/browser/index.js.map +3 -3
- package/dist/components/textarea/textarea.component.d.ts +56 -0
- package/dist/components/textarea/textarea.component.js +122 -2
- package/dist/components/textarea/textarea.styles.js +25 -0
- package/dist/custom-elements.json +477 -366
- package/dist/react/index.d.ts +2 -2
- package/dist/react/index.js +2 -2
- package/dist/react/textarea/index.d.ts +20 -0
- package/dist/react/textarea/index.js +20 -0
- package/package.json +1 -1
package/dist/react/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export { default as Accordion } from './accordion';
|
|
2
|
-
export { default as AccordionGroup } from './accordiongroup';
|
|
3
2
|
export { default as AccordionButton } from './accordionbutton';
|
|
3
|
+
export { default as AccordionGroup } from './accordiongroup';
|
|
4
4
|
export { default as AlertChip } from './alertchip';
|
|
5
|
-
export { default as Animation } from './animation';
|
|
6
5
|
export { default as AnnouncementDialog } from './announcementdialog';
|
|
7
6
|
export { default as Appheader } from './appheader';
|
|
7
|
+
export { default as Animation } from './animation';
|
|
8
8
|
export { default as Avatar } from './avatar';
|
|
9
9
|
export { default as AvatarButton } from './avatarbutton';
|
|
10
10
|
export { default as Badge } from './badge';
|
package/dist/react/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export { default as Accordion } from './accordion';
|
|
2
|
-
export { default as AccordionGroup } from './accordiongroup';
|
|
3
2
|
export { default as AccordionButton } from './accordionbutton';
|
|
3
|
+
export { default as AccordionGroup } from './accordiongroup';
|
|
4
4
|
export { default as AlertChip } from './alertchip';
|
|
5
|
-
export { default as Animation } from './animation';
|
|
6
5
|
export { default as AnnouncementDialog } from './announcementdialog';
|
|
7
6
|
export { default as Appheader } from './appheader';
|
|
7
|
+
export { default as Animation } from './animation';
|
|
8
8
|
export { default as Avatar } from './avatar';
|
|
9
9
|
export { default as AvatarButton } from './avatarbutton';
|
|
10
10
|
export { default as Badge } from './badge';
|
|
@@ -21,6 +21,21 @@ import type { Events } from '../../components/textarea/textarea.types';
|
|
|
21
21
|
* help-text attribute with the error message using limitexceeded event.
|
|
22
22
|
* The same help-text value will be used for the validation message to be displayed.
|
|
23
23
|
*
|
|
24
|
+
* ### Accessibility
|
|
25
|
+
*
|
|
26
|
+
* #### Resize
|
|
27
|
+
*
|
|
28
|
+
* Accessible text area resizing can be turned on with the `resizable`.
|
|
29
|
+
* It is strongly recommended to set the `resize-button-aria-label` attribute as well to describe what it is and what are the shortcuts (up/down arrows) of the button.
|
|
30
|
+
*
|
|
31
|
+
* #### Best practices
|
|
32
|
+
*
|
|
33
|
+
* - Always provide a `label` for screen readers to identify the textarea's purpose
|
|
34
|
+
* - Use `help-text` to provide additional context or instructions
|
|
35
|
+
* - When using `max-character-limit`, consider providing `character-limit-announcement` for screen reader updates
|
|
36
|
+
* - Use appropriate `help-text-type` (error, warning, success) to convey validation state
|
|
37
|
+
* - Ensure `validation-message` is set for form validation errors
|
|
38
|
+
*
|
|
24
39
|
* @tagname mdc-textarea
|
|
25
40
|
*
|
|
26
41
|
* @event input - (React: onInput) This event is dispatched when the value of the textarea field changes (every press).
|
|
@@ -45,6 +60,11 @@ import type { Events } from '../../components/textarea/textarea.types';
|
|
|
45
60
|
* @csspart required-indicator - The required indicator element that is displayed next to the label when the `required` property is set to true.
|
|
46
61
|
* @csspart info-icon-btn - The info icon button element that is displayed next to the label when the `toggletip-text` property is set.
|
|
47
62
|
* @csspart label-toggletip - The toggletip element that is displayed when the info icon button is clicked.
|
|
63
|
+
* @csspart textarea - The textarea element.
|
|
64
|
+
* @csspart textarea-container - The container element that wraps the textarea and resize button.
|
|
65
|
+
* @csspart textarea-footer - The footer element that contains the character counter.
|
|
66
|
+
* @csspart character-counter - The character counter element.
|
|
67
|
+
* @csspart resize-button - The resize button element (shown when `resizable` is true).
|
|
48
68
|
* @csspart help-text - The helper/validation text element.
|
|
49
69
|
* @csspart helper-icon - The helper/validation icon element that is displayed next to the helper/validation text.
|
|
50
70
|
* @csspart help-text-container - The container for the helper/validation icon and text elements.
|
|
@@ -22,6 +22,21 @@ import { TAG_NAME } from '../../components/textarea/textarea.constants';
|
|
|
22
22
|
* help-text attribute with the error message using limitexceeded event.
|
|
23
23
|
* The same help-text value will be used for the validation message to be displayed.
|
|
24
24
|
*
|
|
25
|
+
* ### Accessibility
|
|
26
|
+
*
|
|
27
|
+
* #### Resize
|
|
28
|
+
*
|
|
29
|
+
* Accessible text area resizing can be turned on with the `resizable`.
|
|
30
|
+
* It is strongly recommended to set the `resize-button-aria-label` attribute as well to describe what it is and what are the shortcuts (up/down arrows) of the button.
|
|
31
|
+
*
|
|
32
|
+
* #### Best practices
|
|
33
|
+
*
|
|
34
|
+
* - Always provide a `label` for screen readers to identify the textarea's purpose
|
|
35
|
+
* - Use `help-text` to provide additional context or instructions
|
|
36
|
+
* - When using `max-character-limit`, consider providing `character-limit-announcement` for screen reader updates
|
|
37
|
+
* - Use appropriate `help-text-type` (error, warning, success) to convey validation state
|
|
38
|
+
* - Ensure `validation-message` is set for form validation errors
|
|
39
|
+
*
|
|
25
40
|
* @tagname mdc-textarea
|
|
26
41
|
*
|
|
27
42
|
* @event input - (React: onInput) This event is dispatched when the value of the textarea field changes (every press).
|
|
@@ -46,6 +61,11 @@ import { TAG_NAME } from '../../components/textarea/textarea.constants';
|
|
|
46
61
|
* @csspart required-indicator - The required indicator element that is displayed next to the label when the `required` property is set to true.
|
|
47
62
|
* @csspart info-icon-btn - The info icon button element that is displayed next to the label when the `toggletip-text` property is set.
|
|
48
63
|
* @csspart label-toggletip - The toggletip element that is displayed when the info icon button is clicked.
|
|
64
|
+
* @csspart textarea - The textarea element.
|
|
65
|
+
* @csspart textarea-container - The container element that wraps the textarea and resize button.
|
|
66
|
+
* @csspart textarea-footer - The footer element that contains the character counter.
|
|
67
|
+
* @csspart character-counter - The character counter element.
|
|
68
|
+
* @csspart resize-button - The resize button element (shown when `resizable` is true).
|
|
49
69
|
* @csspart help-text - The helper/validation text element.
|
|
50
70
|
* @csspart helper-icon - The helper/validation icon element that is displayed next to the helper/validation text.
|
|
51
71
|
* @csspart help-text-container - The container for the helper/validation icon and text elements.
|