@momentum-design/components 0.8.3 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -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?:
|
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?:
|
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": "
|
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": "
|
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": "
|
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": "
|
499
|
+
"text": "IconNames | undefined"
|
500
500
|
},
|
501
501
|
"description": "Name of the icon (= filename)",
|
502
502
|
"fieldName": "name"
|
package/package.json
CHANGED