@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 CHANGED
@@ -778,7 +778,7 @@
778
778
  "name": "ChatProps"
779
779
  }
780
780
  ],
781
- "required": true,
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": {
@@ -8,7 +8,7 @@ export interface ChatProps extends HTMLAttributes<HTMLDivElement> {
8
8
  /**
9
9
  * Chat-message name
10
10
  */
11
- name: string;
11
+ name?: string;
12
12
  /**
13
13
  * Timestamp for sent message
14
14
  */
@@ -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.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.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": "7da8246ce3fbf84239ac4d68993100d81524fb41"
77
+ "gitHead": "f2eab3f636387ed025fd57f44178c41ae1ffbaff"
78
78
  }
package/src/chat/Chat.tsx CHANGED
@@ -11,7 +11,7 @@ export interface ChatProps extends HTMLAttributes<HTMLDivElement> {
11
11
  /**
12
12
  * Chat-message name
13
13
  */
14
- name: string;
14
+ name?: string;
15
15
  /**
16
16
  * Timestamp for sent message
17
17
  */
@@ -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>
@@ -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
  */