@navikt/ds-react 1.3.18 → 1.3.19
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
CHANGED
|
@@ -3097,25 +3097,6 @@
|
|
|
3097
3097
|
"filePath": "src/help-text/HelpText.tsx",
|
|
3098
3098
|
"displayName": "HelpText",
|
|
3099
3099
|
"props": {
|
|
3100
|
-
"children": {
|
|
3101
|
-
"defaultValue": null,
|
|
3102
|
-
"description": "Helptext-dialog content",
|
|
3103
|
-
"name": "children",
|
|
3104
|
-
"parent": {
|
|
3105
|
-
"fileName": "src/help-text/HelpText.tsx",
|
|
3106
|
-
"name": "HelpTextProps"
|
|
3107
|
-
},
|
|
3108
|
-
"declarations": [
|
|
3109
|
-
{
|
|
3110
|
-
"fileName": "src/help-text/HelpText.tsx",
|
|
3111
|
-
"name": "HelpTextProps"
|
|
3112
|
-
}
|
|
3113
|
-
],
|
|
3114
|
-
"required": true,
|
|
3115
|
-
"type": {
|
|
3116
|
-
"name": "string"
|
|
3117
|
-
}
|
|
3118
|
-
},
|
|
3119
3100
|
"title": {
|
|
3120
3101
|
"defaultValue": {
|
|
3121
3102
|
"value": "hjelp"
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { PopoverProps } from "..";
|
|
3
3
|
export interface HelpTextProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, Pick<PopoverProps, "strategy" | "placement"> {
|
|
4
|
-
|
|
5
|
-
* Helptext-dialog content
|
|
6
|
-
*/
|
|
7
|
-
children: string;
|
|
4
|
+
children: React.ReactNode;
|
|
8
5
|
/**
|
|
9
6
|
* Adds a title-tooltip with the given text
|
|
10
7
|
* @default "hjelp"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HelpText.js","sourceRoot":"","sources":["../../src/help-text/HelpText.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,QAAQ,IAAI,YAAY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AE;gBACb,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;gBACnB,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAG,CAAC,CAAC,CAAC;YACf,CAAC,EACD,SAAS,EAAE,EAAE,CAAC,SAAS,EAAE,yBAAyB,CAAC,EACnD,IAAI,EAAC,QAAQ,mBACE,IAAI;YAEnB,oBAAC,YAAY,IAAC,SAAS,EAAC,uBAAuB,EAAC,KAAK,EAAE,KAAK,GAAI;YAChE,oBAAC,cAAc,IACb,SAAS,EAAC,qDAAqD,EAC/D,KAAK,EAAE,KAAK,GACZ,CACK;QACT,oBAAC,OAAO,IACN,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,EAC7B,SAAS,EAAC,0BAA0B,EACpC,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,SAAS,CAAC,OAAO,EAC3B,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,QAAQ;YAElB,oBAAC,OAAO,CAAC,OAAO,IAAC,SAAS,EAAC,kBAAkB,IAC1C,QAAQ,CACO,CACV,CACN,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@navikt/ds-react",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.19",
|
|
4
4
|
"description": "NAV designsystem react components",
|
|
5
5
|
"author": "NAV Designsystem team",
|
|
6
6
|
"license": "MIT",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@floating-ui/react-dom-interactions": "0.9.2",
|
|
39
|
-
"@navikt/ds-icons": "^1.3.
|
|
39
|
+
"@navikt/ds-icons": "^1.3.19",
|
|
40
40
|
"@radix-ui/react-tabs": "1.0.0",
|
|
41
41
|
"@radix-ui/react-toggle-group": "1.0.0",
|
|
42
42
|
"clsx": "^1.2.1",
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"optional": true
|
|
77
77
|
}
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "5179b09e671b5b377de741da0ea0b62f1691462e"
|
|
80
80
|
}
|
|
@@ -6,10 +6,7 @@ import { Popover, PopoverProps, mergeRefs } from "..";
|
|
|
6
6
|
export interface HelpTextProps
|
|
7
7
|
extends React.ButtonHTMLAttributes<HTMLButtonElement>,
|
|
8
8
|
Pick<PopoverProps, "strategy" | "placement"> {
|
|
9
|
-
|
|
10
|
-
* Helptext-dialog content
|
|
11
|
-
*/
|
|
12
|
-
children: string;
|
|
9
|
+
children: React.ReactNode;
|
|
13
10
|
/**
|
|
14
11
|
* Adds a title-tooltip with the given text
|
|
15
12
|
* @default "hjelp"
|