@momentum-design/components 0.117.3 → 0.117.4

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 +216 -211
  2. package/dist/browser/index.js.map +3 -3
  3. package/dist/components/checkbox/checkbox.component.d.ts +5 -0
  4. package/dist/components/checkbox/checkbox.component.js +5 -0
  5. package/dist/components/combobox/combobox.component.d.ts +4 -0
  6. package/dist/components/combobox/combobox.component.js +4 -0
  7. package/dist/components/formfieldgroup/formfieldgroup.component.d.ts +4 -0
  8. package/dist/components/formfieldgroup/formfieldgroup.component.js +4 -0
  9. package/dist/components/formfieldwrapper/formfieldwrapper.component.d.ts +10 -6
  10. package/dist/components/formfieldwrapper/formfieldwrapper.component.js +37 -23
  11. package/dist/components/formfieldwrapper/formfieldwrapper.constants.d.ts +1 -0
  12. package/dist/components/formfieldwrapper/formfieldwrapper.constants.js +1 -0
  13. package/dist/components/input/input.component.d.ts +9 -0
  14. package/dist/components/input/input.component.js +9 -0
  15. package/dist/components/popover/popover.constants.d.ts +1 -1
  16. package/dist/components/popover/popover.constants.js +1 -1
  17. package/dist/custom-elements.json +1878 -1020
  18. package/dist/react/checkbox/index.d.ts +5 -0
  19. package/dist/react/checkbox/index.js +5 -0
  20. package/dist/react/combobox/index.d.ts +4 -0
  21. package/dist/react/combobox/index.js +4 -0
  22. package/dist/react/formfieldgroup/index.d.ts +4 -0
  23. package/dist/react/formfieldgroup/index.js +4 -0
  24. package/dist/react/formfieldwrapper/index.d.ts +4 -1
  25. package/dist/react/formfieldwrapper/index.js +4 -1
  26. package/dist/react/index.d.ts +2 -2
  27. package/dist/react/index.js +2 -2
  28. package/dist/react/input/index.d.ts +9 -0
  29. package/dist/react/input/index.js +9 -0
  30. package/package.json +1 -1
@@ -25,6 +25,11 @@ import type { Events } from '../../components/checkbox/checkbox.types';
25
25
  * @cssproperty --mdc-checkbox-checked-pressed-icon-color - Background color for a selected checkbox when pressed.
26
26
  * @cssproperty --mdc-checkbox-pressed-icon-color - Background color for a selected checkbox when pressed.
27
27
  * @cssproperty --mdc-checkbox-disabled-checked-icon-color - Background color for a selected checkbox when disabled.
28
+ *
29
+ * @slot label - Slot for the label element. If not provided, the `label` property will be used to render the label.
30
+ * @slot toggletip - Slot for the toggletip info icon button. If not provided, the `toggletip-text` property will be used to render the info icon button and toggletip.
31
+ * @slot help-icon - Slot for the helper/validation icon. If not provided, the icon will be rendered based on the `helpTextType` property.
32
+ * @slot help-text - Slot for the helper/validation text. If not provided, the `helpText` property will be used to render the helper/validation text.
28
33
  */
29
34
  declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
30
35
  onChange: EventName<Events["onChangeEvent"]>;
@@ -26,6 +26,11 @@ import { TAG_NAME } from '../../components/checkbox/checkbox.constants';
26
26
  * @cssproperty --mdc-checkbox-checked-pressed-icon-color - Background color for a selected checkbox when pressed.
27
27
  * @cssproperty --mdc-checkbox-pressed-icon-color - Background color for a selected checkbox when pressed.
28
28
  * @cssproperty --mdc-checkbox-disabled-checked-icon-color - Background color for a selected checkbox when disabled.
29
+ *
30
+ * @slot label - Slot for the label element. If not provided, the `label` property will be used to render the label.
31
+ * @slot toggletip - Slot for the toggletip info icon button. If not provided, the `toggletip-text` property will be used to render the info icon button and toggletip.
32
+ * @slot help-icon - Slot for the helper/validation icon. If not provided, the icon will be rendered based on the `helpTextType` property.
33
+ * @slot help-text - Slot for the helper/validation text. If not provided, the `helpText` property will be used to render the helper/validation text.
29
34
  */
30
35
  const reactWrapper = createComponent({
31
36
  tagName: TAG_NAME,
@@ -32,6 +32,10 @@ import type { Events } from '../../components/combobox/combobox.types';
32
32
  * @tagname mdc-combobox
33
33
  *
34
34
  * @slot default - This is a default/unnamed slot for Selectlistbox including options and/or option group.
35
+ * @slot label - Slot for the label element. If not provided, the `label` property will be used to render the label.
36
+ * @slot toggletip - Slot for the toggletip info icon button. If not provided, the `toggletip-text` property will be used to render the info icon button and toggletip.
37
+ * @slot help-icon - Slot for the helper/validation icon. If not provided, the icon will be rendered based on the `helpTextType` property.
38
+ * @slot help-text - Slot for the helper/validation text. If not provided, the `helpText` property will be used to render the helper/validation text.
35
39
  *
36
40
  * @event click - (React: onClick) This event is dispatched when the combobox is clicked.
37
41
  * @event change - (React: onChange) This event is dispatched when the combobox is changed.
@@ -33,6 +33,10 @@ import { TAG_NAME } from '../../components/combobox/combobox.constants';
33
33
  * @tagname mdc-combobox
34
34
  *
35
35
  * @slot default - This is a default/unnamed slot for Selectlistbox including options and/or option group.
36
+ * @slot label - Slot for the label element. If not provided, the `label` property will be used to render the label.
37
+ * @slot toggletip - Slot for the toggletip info icon button. If not provided, the `toggletip-text` property will be used to render the info icon button and toggletip.
38
+ * @slot help-icon - Slot for the helper/validation icon. If not provided, the icon will be rendered based on the `helpTextType` property.
39
+ * @slot help-text - Slot for the helper/validation text. If not provided, the `helpText` property will be used to render the helper/validation text.
36
40
  *
37
41
  * @event click - (React: onClick) This event is dispatched when the combobox is clicked.
38
42
  * @event change - (React: onChange) This event is dispatched when the combobox is changed.
@@ -23,6 +23,10 @@ import Component from '../../components/formfieldgroup';
23
23
  * @dependency mdc-toggletip
24
24
  *
25
25
  * @slot default - This is a default slot for checkbox or toggle components.
26
+ * @slot label - Slot for the label element. If not provided, the `label` property will be used to render the label.
27
+ * @slot toggletip - Slot for the toggletip info icon button. If not provided, the `toggletip-text` property will be used to render the info icon button and toggletip.
28
+ * @slot help-icon - Slot for the helper/validation icon. If not provided, the icon will be rendered based on the `helpTextType` property.
29
+ * @slot help-text - Slot for the helper/validation text. If not provided, the `helpText` property will be used to render the helper/validation text.
26
30
  */
27
31
  declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
28
32
  export default reactWrapper;
@@ -26,6 +26,10 @@ import { TAG_NAME } from '../../components/formfieldgroup/formfieldgroup.constan
26
26
  * @dependency mdc-toggletip
27
27
  *
28
28
  * @slot default - This is a default slot for checkbox or toggle components.
29
+ * @slot label - Slot for the label element. If not provided, the `label` property will be used to render the label.
30
+ * @slot toggletip - Slot for the toggletip info icon button. If not provided, the `toggletip-text` property will be used to render the info icon button and toggletip.
31
+ * @slot help-icon - Slot for the helper/validation icon. If not provided, the icon will be rendered based on the `helpTextType` property.
32
+ * @slot help-text - Slot for the helper/validation text. If not provided, the `helpText` property will be used to render the helper/validation text.
29
33
  */
30
34
  const reactWrapper = createComponent({
31
35
  tagName: TAG_NAME,
@@ -11,7 +11,10 @@ import Component from '../../components/formfieldwrapper';
11
11
  * @dependency mdc-button
12
12
  * @dependency mdc-toggletip
13
13
  *
14
- *
14
+ * @slot label - Slot for the label element. If not provided, the `label` property will be used to render the label.
15
+ * @slot toggletip - Slot for the toggletip info icon button. If not provided, the `toggletip-text` property will be used to render the info icon button and toggletip.
16
+ * @slot help-icon - Slot for the helper/validation icon. If not provided, the icon will be rendered based on the `helpTextType` property.
17
+ * @slot help-text - Slot for the helper/validation text. If not provided, the `helpText` property will be used to render the helper/validation text.
15
18
  */
16
19
  declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
17
20
  export default reactWrapper;
@@ -14,7 +14,10 @@ import { TAG_NAME } from '../../components/formfieldwrapper/formfieldwrapper.con
14
14
  * @dependency mdc-button
15
15
  * @dependency mdc-toggletip
16
16
  *
17
- *
17
+ * @slot label - Slot for the label element. If not provided, the `label` property will be used to render the label.
18
+ * @slot toggletip - Slot for the toggletip info icon button. If not provided, the `toggletip-text` property will be used to render the info icon button and toggletip.
19
+ * @slot help-icon - Slot for the helper/validation icon. If not provided, the icon will be rendered based on the `helpTextType` property.
20
+ * @slot help-text - Slot for the helper/validation text. If not provided, the `helpText` property will be used to render the helper/validation text.
18
21
  */
19
22
  const reactWrapper = createComponent({
20
23
  tagName: TAG_NAME,
@@ -1,6 +1,6 @@
1
- export { default as Accordion } from './accordion';
2
1
  export { default as AccordionButton } from './accordionbutton';
3
2
  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 Appheader } from './appheader';
@@ -14,8 +14,8 @@ export { default as Button } from './button';
14
14
  export { default as ButtonGroup } from './buttongroup';
15
15
  export { default as ButtonLink } from './buttonlink';
16
16
  export { default as Buttonsimple } from './buttonsimple';
17
- export { default as Card } from './card';
18
17
  export { default as CardButton } from './cardbutton';
18
+ export { default as Card } from './card';
19
19
  export { default as CardCheckbox } from './cardcheckbox';
20
20
  export { default as CardRadio } from './cardradio';
21
21
  export { default as Checkbox } from './checkbox';
@@ -1,6 +1,6 @@
1
- export { default as Accordion } from './accordion';
2
1
  export { default as AccordionButton } from './accordionbutton';
3
2
  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 Appheader } from './appheader';
@@ -14,8 +14,8 @@ export { default as Button } from './button';
14
14
  export { default as ButtonGroup } from './buttongroup';
15
15
  export { default as ButtonLink } from './buttonlink';
16
16
  export { default as Buttonsimple } from './buttonsimple';
17
- export { default as Card } from './card';
18
17
  export { default as CardButton } from './cardbutton';
18
+ export { default as Card } from './card';
19
19
  export { default as CardCheckbox } from './cardcheckbox';
20
20
  export { default as CardRadio } from './cardradio';
21
21
  export { default as Checkbox } from './checkbox';
@@ -26,6 +26,15 @@ import type { Events } from '../../components/input/input.types';
26
26
  * @dependency mdc-button
27
27
  * @dependency mdc-toggletip
28
28
  *
29
+ * @slot label - Slot for the label element. If not provided, the `label` property will be used to render the label.
30
+ * @slot toggletip - Slot for the toggletip info icon button. If not provided, the `toggletip-text` property will be used to render the info icon button and toggletip.
31
+ * @slot help-icon - Slot for the helper/validation icon. If not provided, the icon will be rendered based on the `helpTextType` property.
32
+ * @slot help-text - Slot for the helper/validation text. If not provided, the `helpText` property will be used to render the helper/validation text.
33
+ * @slot input - Slot for the input element. If not provided, the input field will be rendered.
34
+ * @slot input-leading-icon - Slot for the leading icon before the input field. If not provided, the `leadingIcon` property will be used to render the leading icon.
35
+ * @slot input-prefix-text - Slot for the prefix text before the input field. If not provided, the `prefixText` property will be used to render the prefix text.
36
+ * @slot trailing-button - Slot for the trailing button to clear the input field. If not provided, the clear button will be rendered when `trailingButton` property is set to true.
37
+ *
29
38
  * @cssproperty --mdc-input-disabled-border-color - Border color for the input container when disabled
30
39
  * @cssproperty --mdc-input-disabled-text-color - Text color for the input field when disabled
31
40
  * @cssproperty --mdc-input-disabled-background-color - Background color for the input field when disabled
@@ -27,6 +27,15 @@ import { TAG_NAME } from '../../components/input/input.constants';
27
27
  * @dependency mdc-button
28
28
  * @dependency mdc-toggletip
29
29
  *
30
+ * @slot label - Slot for the label element. If not provided, the `label` property will be used to render the label.
31
+ * @slot toggletip - Slot for the toggletip info icon button. If not provided, the `toggletip-text` property will be used to render the info icon button and toggletip.
32
+ * @slot help-icon - Slot for the helper/validation icon. If not provided, the icon will be rendered based on the `helpTextType` property.
33
+ * @slot help-text - Slot for the helper/validation text. If not provided, the `helpText` property will be used to render the helper/validation text.
34
+ * @slot input - Slot for the input element. If not provided, the input field will be rendered.
35
+ * @slot input-leading-icon - Slot for the leading icon before the input field. If not provided, the `leadingIcon` property will be used to render the leading icon.
36
+ * @slot input-prefix-text - Slot for the prefix text before the input field. If not provided, the `prefixText` property will be used to render the prefix text.
37
+ * @slot trailing-button - Slot for the trailing button to clear the input field. If not provided, the clear button will be rendered when `trailingButton` property is set to true.
38
+ *
30
39
  * @cssproperty --mdc-input-disabled-border-color - Border color for the input container when disabled
31
40
  * @cssproperty --mdc-input-disabled-text-color - Text color for the input field when disabled
32
41
  * @cssproperty --mdc-input-disabled-background-color - Background color for the input field when disabled
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@momentum-design/components",
3
3
  "packageManager": "yarn@3.2.4",
4
- "version": "0.117.3",
4
+ "version": "0.117.4",
5
5
  "engines": {
6
6
  "node": ">=20.0.0",
7
7
  "npm": ">=8.0.0"