@navikt/ds-react 1.2.2 → 1.2.5
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 +3 -3
- package/esm/chat/Chat.d.ts +1 -1
- package/esm/form/TextField.d.ts +2 -2
- package/package.json +3 -3
- package/src/chat/Chat.tsx +1 -1
- package/src/chat/chat.stories.tsx +1 -5
- package/src/form/TextField.tsx +2 -2
package/_docs.json
CHANGED
|
@@ -778,7 +778,7 @@
|
|
|
778
778
|
"name": "ChatProps"
|
|
779
779
|
}
|
|
780
780
|
],
|
|
781
|
-
"required":
|
|
781
|
+
"required": false,
|
|
782
782
|
"type": {
|
|
783
783
|
"name": "string"
|
|
784
784
|
}
|
|
@@ -1606,7 +1606,7 @@
|
|
|
1606
1606
|
],
|
|
1607
1607
|
"required": false,
|
|
1608
1608
|
"type": {
|
|
1609
|
-
"name": "string"
|
|
1609
|
+
"name": "string | number"
|
|
1610
1610
|
}
|
|
1611
1611
|
},
|
|
1612
1612
|
"defaultValue": {
|
|
@@ -1625,7 +1625,7 @@
|
|
|
1625
1625
|
],
|
|
1626
1626
|
"required": false,
|
|
1627
1627
|
"type": {
|
|
1628
|
-
"name": "string"
|
|
1628
|
+
"name": "string | number"
|
|
1629
1629
|
}
|
|
1630
1630
|
},
|
|
1631
1631
|
"htmlSize": {
|
package/esm/chat/Chat.d.ts
CHANGED
package/esm/form/TextField.d.ts
CHANGED
|
@@ -4,11 +4,11 @@ export interface TextFieldProps extends FormFieldProps, Omit<InputHTMLAttributes
|
|
|
4
4
|
/**
|
|
5
5
|
* Controlled value
|
|
6
6
|
*/
|
|
7
|
-
value?: string;
|
|
7
|
+
value?: string | number;
|
|
8
8
|
/**
|
|
9
9
|
* Defaults input-value without needing controlled-state
|
|
10
10
|
*/
|
|
11
|
-
defaultValue?: string;
|
|
11
|
+
defaultValue?: string | number;
|
|
12
12
|
/**
|
|
13
13
|
* Exposes the HTML size attribute
|
|
14
14
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@navikt/ds-react",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.5",
|
|
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.2.
|
|
39
|
+
"@navikt/ds-icons": "^1.2.5",
|
|
40
40
|
"@radix-ui/react-tabs": "1.0.0",
|
|
41
41
|
"@radix-ui/react-toggle-group": "1.0.0",
|
|
42
42
|
"clsx": "^1.1.1",
|
|
@@ -74,5 +74,5 @@
|
|
|
74
74
|
"optional": true
|
|
75
75
|
}
|
|
76
76
|
},
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "f2eab3f636387ed025fd57f44178c41ae1ffbaff"
|
|
78
78
|
}
|
package/src/chat/Chat.tsx
CHANGED
|
@@ -118,11 +118,7 @@ export const Position = () => {
|
|
|
118
118
|
|
|
119
119
|
export const Avatar = () => {
|
|
120
120
|
return (
|
|
121
|
-
<Chat
|
|
122
|
-
avatar={<Illustration />}
|
|
123
|
-
name={"Ola Normann"}
|
|
124
|
-
timestamp={"01.01.21 14:00"}
|
|
125
|
-
>
|
|
121
|
+
<Chat avatar={<Illustration />} timestamp={"01.01.21 14:00"}>
|
|
126
122
|
<Chat.Bubble>
|
|
127
123
|
Aute minim nisi sunt mollit duis sunt nulla minim non proident.
|
|
128
124
|
</Chat.Bubble>
|
package/src/form/TextField.tsx
CHANGED
|
@@ -9,11 +9,11 @@ export interface TextFieldProps
|
|
|
9
9
|
/**
|
|
10
10
|
* Controlled value
|
|
11
11
|
*/
|
|
12
|
-
value?: string;
|
|
12
|
+
value?: string | number;
|
|
13
13
|
/**
|
|
14
14
|
* Defaults input-value without needing controlled-state
|
|
15
15
|
*/
|
|
16
|
-
defaultValue?: string;
|
|
16
|
+
defaultValue?: string | number;
|
|
17
17
|
/**
|
|
18
18
|
* Exposes the HTML size attribute
|
|
19
19
|
*/
|