@momentum-design/components 0.8.2 → 0.9.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.
@@ -1,5 +1,6 @@
1
1
  import { CSSResult, PropertyValues, TemplateResult } from 'lit';
2
2
  import { Component } from '../../models';
3
+ import IconNames from '../../../../assets/icons/dist/types/types';
3
4
  import type { IconVariant, BadgeType } from './badge.types';
4
5
  /**
5
6
  * The `mdc-badge` component is a versatile UI element used to
@@ -34,7 +35,7 @@ declare class Badge extends Component {
34
35
  *
35
36
  * If no `icon-name` is provided, no icon will be rendered.
36
37
  */
37
- iconName?: string;
38
+ iconName?: IconNames;
38
39
  /**
39
40
  * Type of the variant can be `primary` or `secondary`.
40
41
  * It defines the background and foreground color of the icon.
@@ -1,5 +1,6 @@
1
1
  import { CSSResult } from 'lit';
2
2
  import { Component } from '../../models';
3
+ import IconNames from '../../../../assets/icons/dist/types/types';
3
4
  /**
4
5
  * Icon component that dynamically displays SVG icons based on a valid name.
5
6
  *
@@ -44,7 +45,7 @@ declare class Icon extends Component {
44
45
  /**
45
46
  * Name of the icon (= filename)
46
47
  */
47
- name?: string;
48
+ name?: IconNames;
48
49
  /**
49
50
  * Size of the icon (works in combination with length unit)
50
51
  */
@@ -137,7 +137,7 @@
137
137
  "kind": "field",
138
138
  "name": "iconName",
139
139
  "type": {
140
- "text": "string | undefined"
140
+ "text": "IconNames | undefined"
141
141
  },
142
142
  "description": "Name of the icon (= filename).\n\nIf no `icon-name` is provided, no icon will be rendered.",
143
143
  "attribute": "icon-name"
@@ -305,7 +305,7 @@
305
305
  {
306
306
  "name": "icon-name",
307
307
  "type": {
308
- "text": "string | undefined"
308
+ "text": "IconNames | undefined"
309
309
  },
310
310
  "description": "Name of the icon (= filename).\n\nIf no `icon-name` is provided, no icon will be rendered.",
311
311
  "fieldName": "iconName"
@@ -418,7 +418,7 @@
418
418
  "kind": "field",
419
419
  "name": "name",
420
420
  "type": {
421
- "text": "string | undefined"
421
+ "text": "IconNames | undefined"
422
422
  },
423
423
  "description": "Name of the icon (= filename)",
424
424
  "attribute": "name",
@@ -496,7 +496,7 @@
496
496
  {
497
497
  "name": "name",
498
498
  "type": {
499
- "text": "string | undefined"
499
+ "text": "IconNames | undefined"
500
500
  },
501
501
  "description": "Name of the icon (= filename)",
502
502
  "fieldName": "name"
package/package.json CHANGED
@@ -30,12 +30,10 @@
30
30
  "dependencies": {
31
31
  "@lit/context": "^1.1.2",
32
32
  "@lit/react": "^1.0.5",
33
- "lit": "^3.2.0"
34
- },
35
- "peerDependencies": {
36
33
  "@momentum-design/fonts": "*",
37
34
  "@momentum-design/icons": "*",
38
- "@momentum-design/tokens": "*"
35
+ "@momentum-design/tokens": "*",
36
+ "lit": "^3.2.0"
39
37
  },
40
- "version": "0.8.2"
38
+ "version": "0.9.0"
41
39
  }