@momentum-design/components 0.53.9 → 0.54.1

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 (43) hide show
  1. package/dist/browser/index.js +350 -314
  2. package/dist/browser/index.js.map +4 -4
  3. package/dist/components/buttonsimple/buttonsimple.component.js +4 -2
  4. package/dist/components/checkbox/checkbox.component.d.ts +1 -9
  5. package/dist/components/checkbox/checkbox.component.js +7 -21
  6. package/dist/components/checkbox/checkbox.styles.js +30 -67
  7. package/dist/components/checkbox/index.d.ts +1 -0
  8. package/dist/components/checkbox/index.js +1 -0
  9. package/dist/components/radio/index.d.ts +1 -0
  10. package/dist/components/radio/index.js +1 -0
  11. package/dist/components/radio/radio.component.d.ts +3 -11
  12. package/dist/components/radio/radio.component.js +10 -16
  13. package/dist/components/radio/radio.styles.js +36 -111
  14. package/dist/components/staticcheckbox/index.d.ts +8 -0
  15. package/dist/components/staticcheckbox/index.js +5 -0
  16. package/dist/components/staticcheckbox/staticcheckbox.component.d.ts +42 -0
  17. package/dist/components/staticcheckbox/staticcheckbox.component.js +76 -0
  18. package/dist/components/staticcheckbox/staticcheckbox.constants.d.ts +3 -0
  19. package/dist/components/staticcheckbox/staticcheckbox.constants.js +4 -0
  20. package/dist/components/staticcheckbox/staticcheckbox.styles.d.ts +2 -0
  21. package/dist/components/staticcheckbox/staticcheckbox.styles.js +60 -0
  22. package/dist/components/staticradio/index.d.ts +7 -0
  23. package/dist/components/staticradio/index.js +4 -0
  24. package/dist/components/staticradio/staticradio.component.d.ts +41 -0
  25. package/dist/components/staticradio/staticradio.component.js +67 -0
  26. package/dist/components/staticradio/staticradio.constants.d.ts +2 -0
  27. package/dist/components/staticradio/staticradio.constants.js +3 -0
  28. package/dist/components/staticradio/staticradio.styles.d.ts +2 -0
  29. package/dist/components/staticradio/staticradio.styles.js +86 -0
  30. package/dist/custom-elements.json +306 -70
  31. package/dist/index.d.ts +3 -1
  32. package/dist/index.js +3 -1
  33. package/dist/react/checkbox/index.d.ts +1 -9
  34. package/dist/react/checkbox/index.js +1 -9
  35. package/dist/react/index.d.ts +2 -0
  36. package/dist/react/index.js +2 -0
  37. package/dist/react/radio/index.d.ts +3 -11
  38. package/dist/react/radio/index.js +3 -11
  39. package/dist/react/staticcheckbox/index.d.ts +25 -0
  40. package/dist/react/staticcheckbox/index.js +34 -0
  41. package/dist/react/staticradio/index.d.ts +24 -0
  42. package/dist/react/staticradio/index.js +33 -0
  43. package/package.json +1 -1
@@ -0,0 +1,34 @@
1
+ import * as React from 'react';
2
+ import { createComponent } from '@lit/react';
3
+ import Component from '../../components/staticcheckbox';
4
+ import { TAG_NAME } from '../../components/staticcheckbox/staticcheckbox.constants';
5
+ /**
6
+ * This is a decorative component that is styled to look as a checkbox.
7
+ *
8
+ * It has 3 properties - checked, indeterminate and disabled.
9
+ *
10
+ * We are using the same styling that has been created for the `mdc-checkbox` component.
11
+ *
12
+ * @tagname mdc-staticcheckbox
13
+ *
14
+ * @dependency mdc-icon
15
+ *
16
+ * @cssproperty --mdc-staticcheckbox-border-color - Border color in high contrast.
17
+ * @cssproperty --mdc-staticcheckbox-checked-background-color - Background color for a selected checkbox.
18
+ * @cssproperty --mdc-staticcheckbox-disabled-background-color - Background color for a disabled checkbox.
19
+ * @cssproperty --mdc-checkbox-disabled-border-color - Border color for a disabled checkbox.
20
+ * @cssproperty --mdc-checkbox-disabled-checked-icon-color - Background color for a disabled, selected checkbox.
21
+ * @cssproperty --mdc-staticcheckbox-disabled-icon-color - Icon color for a disabled checkbox.
22
+ * @cssproperty --mdc-staticcheckbox-icon-background-color - Background color for an unselected checkbox.
23
+ * @cssproperty --mdc-staticcheckbox-icon-border-color - Default background color for an unselected checkbox.
24
+ * @cssproperty --mdc-staticcheckbox-icon-color - Icon color for an unselected checkbox.
25
+ *
26
+ */
27
+ const reactWrapper = createComponent({
28
+ tagName: TAG_NAME,
29
+ elementClass: Component,
30
+ react: React,
31
+ events: {},
32
+ displayName: 'StaticCheckbox',
33
+ });
34
+ export default reactWrapper;
@@ -0,0 +1,24 @@
1
+ import Component from '../../components/staticradio';
2
+ /**
3
+ * This is a decorative component that is styled to look as a radio.
4
+ * It has 2 properties - checked and disabled.
5
+ *
6
+ * We are using the same styling that has been created for the `mdc-radio` component.
7
+ *
8
+ * @tagname mdc-staticradio
9
+ *
10
+ * @cssproperty --mdc-staticradio-inner-circle-size - size of the inner circle
11
+ * @cssproperty --mdc-staticradio-text-disabled-color - color of the label when disabled
12
+ * @cssproperty --mdc-staticradio-normal-border-color - color of the radio button border when normal
13
+ * @cssproperty --mdc-staticradio-disabled-border-color - color of the radio button border when disabled
14
+ * @cssproperty --mdc-staticradio-inner-circle-normal-background - background color of the inner circle when normal
15
+ * @cssproperty --mdc-staticradio-inner-circle-disabled-background - background color of the inner circle when disabled
16
+ * @cssproperty --mdc-staticradio-control-inactive-color - color of the radio button when inactive
17
+ * @cssproperty --mdc-staticradio-control-inactive-disabled-background - background color of the radio button when
18
+ * inactive and disabled
19
+ * @cssproperty --mdc-staticradio-control-active-color - color of the radio button when active
20
+ * @cssproperty --mdc-staticradio-control-active-disabled-background - background color of the radio button
21
+ * when active and disabled
22
+ */
23
+ declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
24
+ export default reactWrapper;
@@ -0,0 +1,33 @@
1
+ import * as React from 'react';
2
+ import { createComponent } from '@lit/react';
3
+ import Component from '../../components/staticradio';
4
+ import { TAG_NAME } from '../../components/staticradio/staticradio.constants';
5
+ /**
6
+ * This is a decorative component that is styled to look as a radio.
7
+ * It has 2 properties - checked and disabled.
8
+ *
9
+ * We are using the same styling that has been created for the `mdc-radio` component.
10
+ *
11
+ * @tagname mdc-staticradio
12
+ *
13
+ * @cssproperty --mdc-staticradio-inner-circle-size - size of the inner circle
14
+ * @cssproperty --mdc-staticradio-text-disabled-color - color of the label when disabled
15
+ * @cssproperty --mdc-staticradio-normal-border-color - color of the radio button border when normal
16
+ * @cssproperty --mdc-staticradio-disabled-border-color - color of the radio button border when disabled
17
+ * @cssproperty --mdc-staticradio-inner-circle-normal-background - background color of the inner circle when normal
18
+ * @cssproperty --mdc-staticradio-inner-circle-disabled-background - background color of the inner circle when disabled
19
+ * @cssproperty --mdc-staticradio-control-inactive-color - color of the radio button when inactive
20
+ * @cssproperty --mdc-staticradio-control-inactive-disabled-background - background color of the radio button when
21
+ * inactive and disabled
22
+ * @cssproperty --mdc-staticradio-control-active-color - color of the radio button when active
23
+ * @cssproperty --mdc-staticradio-control-active-disabled-background - background color of the radio button
24
+ * when active and disabled
25
+ */
26
+ const reactWrapper = createComponent({
27
+ tagName: TAG_NAME,
28
+ elementClass: Component,
29
+ react: React,
30
+ events: {},
31
+ displayName: 'StaticRadio',
32
+ });
33
+ export default reactWrapper;
package/package.json CHANGED
@@ -39,5 +39,5 @@
39
39
  "lit": "^3.2.0",
40
40
  "uuid": "^11.0.5"
41
41
  },
42
- "version": "0.53.9"
42
+ "version": "0.54.1"
43
43
  }