@navikt/ds-react 1.2.1 → 1.2.4

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.
@@ -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
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@navikt/ds-react",
3
- "version": "1.2.1",
3
+ "version": "1.2.4",
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.1",
39
+ "@navikt/ds-icons": "^1.2.4",
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": "249607f5b2c5f987e445c9194a2fa69f55d8c68e"
77
+ "gitHead": "ad3f7e174c67fb9df7626ffc3aedaa6e4bda96c1"
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>