@navikt/ds-react 1.5.0 → 1.5.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.
- package/_docs.json +2 -21
- package/esm/tag/Tag.d.ts +1 -5
- package/esm/tag/Tag.js.map +1 -1
- package/package.json +2 -2
- package/src/tag/Tag.tsx +1 -5
package/_docs.json
CHANGED
|
@@ -6671,28 +6671,9 @@
|
|
|
6671
6671
|
"filePath": "src/tag/Tag.tsx",
|
|
6672
6672
|
"displayName": "Tag",
|
|
6673
6673
|
"props": {
|
|
6674
|
-
"children": {
|
|
6675
|
-
"defaultValue": null,
|
|
6676
|
-
"description": "Tag label",
|
|
6677
|
-
"name": "children",
|
|
6678
|
-
"parent": {
|
|
6679
|
-
"fileName": "src/tag/Tag.tsx",
|
|
6680
|
-
"name": "TagProps"
|
|
6681
|
-
},
|
|
6682
|
-
"declarations": [
|
|
6683
|
-
{
|
|
6684
|
-
"fileName": "src/tag/Tag.tsx",
|
|
6685
|
-
"name": "TagProps"
|
|
6686
|
-
}
|
|
6687
|
-
],
|
|
6688
|
-
"required": true,
|
|
6689
|
-
"type": {
|
|
6690
|
-
"name": "ReactNode"
|
|
6691
|
-
}
|
|
6692
|
-
},
|
|
6693
6674
|
"variant": {
|
|
6694
6675
|
"defaultValue": null,
|
|
6695
|
-
"description": "Changes
|
|
6676
|
+
"description": "Changes visual profile of tag",
|
|
6696
6677
|
"name": "variant",
|
|
6697
6678
|
"parent": {
|
|
6698
6679
|
"fileName": "src/tag/Tag.tsx",
|
|
@@ -6713,7 +6694,7 @@
|
|
|
6713
6694
|
"defaultValue": {
|
|
6714
6695
|
"value": "medium"
|
|
6715
6696
|
},
|
|
6716
|
-
"description": "
|
|
6697
|
+
"description": "",
|
|
6717
6698
|
"name": "size",
|
|
6718
6699
|
"parent": {
|
|
6719
6700
|
"fileName": "src/tag/Tag.tsx",
|
package/esm/tag/Tag.d.ts
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
import React, { HTMLAttributes } from "react";
|
|
2
2
|
export interface TagProps extends HTMLAttributes<HTMLSpanElement> {
|
|
3
|
-
/**
|
|
4
|
-
* Tag label
|
|
5
|
-
*/
|
|
6
3
|
children: React.ReactNode;
|
|
7
4
|
/**
|
|
8
|
-
* Changes
|
|
5
|
+
* Changes visual profile of tag
|
|
9
6
|
*/
|
|
10
7
|
variant: "warning" | "warning-filled" | "error" | "error-filled" | "info" | "info-filled" | "success" | "success-filled" | "neutral" | "neutral-filled" | "alt1" | "alt1-filled" | "alt2" | "alt2-filled" | "alt3" | "alt3-filled";
|
|
11
8
|
/**
|
|
12
|
-
* Changes padding and font-sizes
|
|
13
9
|
* @default "medium"
|
|
14
10
|
*/
|
|
15
11
|
size?: "medium" | "small" | "xsmall";
|
package/esm/tag/Tag.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tag.js","sourceRoot":"","sources":["../../src/tag/Tag.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAkB,MAAM,OAAO,CAAC;AAC1D,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"Tag.js","sourceRoot":"","sources":["../../src/tag/Tag.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAkB,MAAM,OAAO,CAAC;AAC1D,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC;AA8BvC,MAAM,CAAC,MAAM,GAAG,GAAG,UAAU,CAC3B,CAAC,EAAgD,EAAE,GAAG,EAAE,EAAE;QAAzD,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,GAAG,QAAQ,OAAW,EAAN,IAAI,cAA9C,gCAAgD,CAAF;IAC7C,MAAM,SAAS,GAAG,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC;IAEzD,OAAO,CACL,oBAAC,SAAS,oBACJ,IAAI,IACR,GAAG,EAAE,GAAG,EACR,EAAE,EAAC,MAAM,EACT,IAAI,EAAE,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAC5C,SAAS,EAAE,EAAE,CACX,WAAW,EACX,SAAS,EACT,cAAc,OAAO,EAAE,EACvB,cAAc,IAAI,EAAE,CACrB,IACD,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,GAAG,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@navikt/ds-react",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.1",
|
|
4
4
|
"description": "NAV designsystem react components",
|
|
5
5
|
"author": "NAV Designsystem team",
|
|
6
6
|
"license": "MIT",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@floating-ui/react-dom-interactions": "0.9.2",
|
|
40
|
-
"@navikt/ds-icons": "^1.5.
|
|
40
|
+
"@navikt/ds-icons": "^1.5.1",
|
|
41
41
|
"@radix-ui/react-tabs": "1.0.0",
|
|
42
42
|
"@radix-ui/react-toggle-group": "1.0.0",
|
|
43
43
|
"clsx": "^1.2.1",
|
package/src/tag/Tag.tsx
CHANGED
|
@@ -3,12 +3,9 @@ import cl from "clsx";
|
|
|
3
3
|
import { BodyShort, Detail } from "..";
|
|
4
4
|
|
|
5
5
|
export interface TagProps extends HTMLAttributes<HTMLSpanElement> {
|
|
6
|
-
/**
|
|
7
|
-
* Tag label
|
|
8
|
-
*/
|
|
9
6
|
children: React.ReactNode;
|
|
10
7
|
/**
|
|
11
|
-
* Changes
|
|
8
|
+
* Changes visual profile of tag
|
|
12
9
|
*/
|
|
13
10
|
variant:
|
|
14
11
|
| "warning"
|
|
@@ -28,7 +25,6 @@ export interface TagProps extends HTMLAttributes<HTMLSpanElement> {
|
|
|
28
25
|
| "alt3"
|
|
29
26
|
| "alt3-filled";
|
|
30
27
|
/**
|
|
31
|
-
* Changes padding and font-sizes
|
|
32
28
|
* @default "medium"
|
|
33
29
|
*/
|
|
34
30
|
size?: "medium" | "small" | "xsmall";
|