@momentum-design/components 0.22.4 → 0.22.6

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 (32) hide show
  1. package/dist/browser/index.js +88 -75
  2. package/dist/browser/index.js.map +4 -4
  3. package/dist/components/checkbox/checkbox.component.d.ts +9 -1
  4. package/dist/components/checkbox/checkbox.component.js +21 -3
  5. package/dist/components/checkboxgroup/checkboxgroup.component.d.ts +43 -0
  6. package/dist/components/checkboxgroup/checkboxgroup.component.js +94 -0
  7. package/dist/components/checkboxgroup/checkboxgroup.constants.d.ts +2 -0
  8. package/dist/components/checkboxgroup/checkboxgroup.constants.js +3 -0
  9. package/dist/components/checkboxgroup/checkboxgroup.styles.d.ts +2 -0
  10. package/dist/components/checkboxgroup/checkboxgroup.styles.js +9 -0
  11. package/dist/components/checkboxgroup/index.d.ts +8 -0
  12. package/dist/components/checkboxgroup/index.js +5 -0
  13. package/dist/components/icon/icon.component.d.ts +9 -2
  14. package/dist/components/icon/icon.component.js +36 -5
  15. package/dist/components/icon/icon.utils.d.ts +2 -2
  16. package/dist/components/icon/icon.utils.js +2 -8
  17. package/dist/components/iconprovider/iconprovider.component.d.ts +31 -0
  18. package/dist/components/iconprovider/iconprovider.component.js +20 -1
  19. package/dist/components/iconprovider/iconprovider.constants.d.ts +1 -0
  20. package/dist/components/iconprovider/iconprovider.constants.js +1 -0
  21. package/dist/components/iconprovider/iconprovider.context.d.ts +2 -0
  22. package/dist/components/iconprovider/iconprovider.context.js +3 -0
  23. package/dist/custom-elements.json +1012 -846
  24. package/dist/index.d.ts +2 -1
  25. package/dist/index.js +2 -1
  26. package/dist/react/checkboxgroup/index.d.ts +17 -0
  27. package/dist/react/checkboxgroup/index.js +26 -0
  28. package/dist/react/iconprovider/index.d.ts +6 -0
  29. package/dist/react/iconprovider/index.js +6 -0
  30. package/dist/react/index.d.ts +4 -3
  31. package/dist/react/index.js +4 -3
  32. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -14,8 +14,9 @@ import Input from './components/input';
14
14
  import Link from './components/link';
15
15
  import Toggle from './components/toggle';
16
16
  import Checkbox from './components/checkbox';
17
+ import CheckboxGroup from './components/checkboxgroup';
17
18
  import Radio from './components/radio';
18
19
  import Tab from './components/tab';
19
20
  import type { TextType } from './components/text/text.types';
20
- export { ThemeProvider, Icon, IconProvider, Avatar, Badge, Presence, Text, Button, Bullet, Marker, Divider, AvatarButton, Input, Link, Toggle, Checkbox, Radio, Tab, };
21
+ export { ThemeProvider, Icon, IconProvider, Avatar, Badge, Presence, Text, Button, Bullet, Marker, Divider, AvatarButton, Input, Link, Toggle, Checkbox, CheckboxGroup, Radio, Tab, };
21
22
  export type { TextType, };
package/dist/index.js CHANGED
@@ -14,6 +14,7 @@ import Input from './components/input';
14
14
  import Link from './components/link';
15
15
  import Toggle from './components/toggle';
16
16
  import Checkbox from './components/checkbox';
17
+ import CheckboxGroup from './components/checkboxgroup';
17
18
  import Radio from './components/radio';
18
19
  import Tab from './components/tab';
19
- export { ThemeProvider, Icon, IconProvider, Avatar, Badge, Presence, Text, Button, Bullet, Marker, Divider, AvatarButton, Input, Link, Toggle, Checkbox, Radio, Tab, };
20
+ export { ThemeProvider, Icon, IconProvider, Avatar, Badge, Presence, Text, Button, Bullet, Marker, Divider, AvatarButton, Input, Link, Toggle, Checkbox, CheckboxGroup, Radio, Tab, };
@@ -0,0 +1,17 @@
1
+ import Component from '../../components/checkboxgroup';
2
+ /**
3
+ * `mdc-checkboxgroup` component allows you to select multiple options from a predefined list.
4
+ * It is commonly used in forms where multiple selections are required, such as preferences, filters, or categories.
5
+ *
6
+ * A checkbox group typically consists of multiple checkboxes grouped together,
7
+ * each representing a selectable option. You can check or uncheck options based on their preferences.
8
+ *
9
+ * @dependency mdc-text
10
+ *
11
+ * @tagname mdc-checkboxgroup
12
+ *
13
+ * @slot help-text - This is a help text slot.
14
+ * @slot default - This is a default slot for children.
15
+ */
16
+ declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
17
+ export default reactWrapper;
@@ -0,0 +1,26 @@
1
+ import * as React from 'react';
2
+ import { createComponent } from '@lit/react';
3
+ import Component from '../../components/checkboxgroup';
4
+ import { TAG_NAME } from '../../components/checkboxgroup/checkboxgroup.constants';
5
+ /**
6
+ * `mdc-checkboxgroup` component allows you to select multiple options from a predefined list.
7
+ * It is commonly used in forms where multiple selections are required, such as preferences, filters, or categories.
8
+ *
9
+ * A checkbox group typically consists of multiple checkboxes grouped together,
10
+ * each representing a selectable option. You can check or uncheck options based on their preferences.
11
+ *
12
+ * @dependency mdc-text
13
+ *
14
+ * @tagname mdc-checkboxgroup
15
+ *
16
+ * @slot help-text - This is a help text slot.
17
+ * @slot default - This is a default slot for children.
18
+ */
19
+ const reactWrapper = createComponent({
20
+ tagName: TAG_NAME,
21
+ elementClass: Component,
22
+ react: React,
23
+ events: {},
24
+ displayName: 'Checkboxgroup',
25
+ });
26
+ export default reactWrapper;
@@ -7,6 +7,12 @@ import Component from '../../components/iconprovider';
7
7
  * that only a url has to be passed in from which the icons will be
8
8
  * fetched.
9
9
  *
10
+ * If `shouldCache` is set to true, the IconProvider will cache the icons
11
+ * in a Map to avoid fetching the same icon multiple times over the network.
12
+ * This is useful when the same icon is used multiple times in the application.
13
+ * Keep in mind that this cache is not persisted and will be lost when the
14
+ * IconProvider is removed from the DOM.
15
+ *
10
16
  * @tagname mdc-iconprovider
11
17
  *
12
18
  * @slot - children
@@ -10,6 +10,12 @@ import { TAG_NAME } from '../../components/iconprovider/iconprovider.constants';
10
10
  * that only a url has to be passed in from which the icons will be
11
11
  * fetched.
12
12
  *
13
+ * If `shouldCache` is set to true, the IconProvider will cache the icons
14
+ * in a Map to avoid fetching the same icon multiple times over the network.
15
+ * This is useful when the same icon is used multiple times in the application.
16
+ * Keep in mind that this cache is not persisted and will be lost when the
17
+ * IconProvider is removed from the DOM.
18
+ *
13
19
  * @tagname mdc-iconprovider
14
20
  *
15
21
  * @slot - children
@@ -1,10 +1,11 @@
1
+ export { default as Avatar } from './avatar';
1
2
  export { default as AvatarButton } from './avatarbutton';
2
3
  export { default as Badge } from './badge';
3
- export { default as Avatar } from './avatar';
4
4
  export { default as Bullet } from './bullet';
5
- export { default as Button } from './button';
6
- export { default as Buttonsimple } from './buttonsimple';
7
5
  export { default as Checkbox } from './checkbox';
6
+ export { default as Buttonsimple } from './buttonsimple';
7
+ export { default as Button } from './button';
8
+ export { default as Checkboxgroup } from './checkboxgroup';
8
9
  export { default as Divider } from './divider';
9
10
  export { default as FormfieldWrapper } from './formfieldwrapper';
10
11
  export { default as Icon } from './icon';
@@ -1,10 +1,11 @@
1
+ export { default as Avatar } from './avatar';
1
2
  export { default as AvatarButton } from './avatarbutton';
2
3
  export { default as Badge } from './badge';
3
- export { default as Avatar } from './avatar';
4
4
  export { default as Bullet } from './bullet';
5
- export { default as Button } from './button';
6
- export { default as Buttonsimple } from './buttonsimple';
7
5
  export { default as Checkbox } from './checkbox';
6
+ export { default as Buttonsimple } from './buttonsimple';
7
+ export { default as Button } from './button';
8
+ export { default as Checkboxgroup } from './checkboxgroup';
8
9
  export { default as Divider } from './divider';
9
10
  export { default as FormfieldWrapper } from './formfieldwrapper';
10
11
  export { default as Icon } from './icon';
package/package.json CHANGED
@@ -36,5 +36,5 @@
36
36
  "lit": "^3.2.0",
37
37
  "uuid": "^11.0.5"
38
38
  },
39
- "version": "0.22.4"
39
+ "version": "0.22.6"
40
40
  }