@carbon/react 1.41.0 → 1.41.2

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.
@@ -28,7 +28,7 @@ export interface FileUploaderDropContainerProps extends Omit<ReactAttr<HTMLButto
28
28
  * Provide the label text to be read by screen readers when interacting with
29
29
  * this control
30
30
  */
31
- labelText: string;
31
+ labelText?: string;
32
32
  /**
33
33
  * Specify if the component should accept multiple files to upload
34
34
  */
@@ -151,7 +151,7 @@ export interface ToastNotificationProps extends HTMLAttributes<HTMLDivElement> {
151
151
  /**
152
152
  * Specify what state the notification represents
153
153
  */
154
- kind: 'error' | 'info' | 'info-square' | 'success' | 'warning' | 'warning-alt';
154
+ kind?: 'error' | 'info' | 'info-square' | 'success' | 'warning' | 'warning-alt';
155
155
  /**
156
156
  * Specify whether you are using the low contrast variant of the ToastNotification.
157
157
  */
@@ -163,12 +163,12 @@ export interface ToastNotificationProps extends HTMLAttributes<HTMLDivElement> {
163
163
  /**
164
164
  * Provide a function that is called when the close button is clicked
165
165
  */
166
- onCloseButtonClick(event: MouseEvent): void;
166
+ onCloseButtonClick?(event: MouseEvent): void;
167
167
  /**
168
168
  * By default, this value is "status". You can also provide an alternate
169
169
  * role if it makes sense from the accessibility-side
170
170
  */
171
- role: 'alert' | 'log' | 'status';
171
+ role?: 'alert' | 'log' | 'status';
172
172
  /**
173
173
  * Provide a description for "status" icon that can be read by screen readers
174
174
  */
@@ -277,7 +277,7 @@ export interface InlineNotificationProps extends HTMLAttributes<HTMLDivElement>
277
277
  /**
278
278
  * Specify what state the notification represents
279
279
  */
280
- kind: 'error' | 'info' | 'info-square' | 'success' | 'warning' | 'warning-alt';
280
+ kind?: 'error' | 'info' | 'info-square' | 'success' | 'warning' | 'warning-alt';
281
281
  /**
282
282
  * Specify whether you are using the low contrast variant of the InlineNotification.
283
283
  */
@@ -289,12 +289,12 @@ export interface InlineNotificationProps extends HTMLAttributes<HTMLDivElement>
289
289
  /**
290
290
  * Provide a function that is called when the close button is clicked
291
291
  */
292
- onCloseButtonClick(event: MouseEvent): void;
292
+ onCloseButtonClick?(event: MouseEvent): void;
293
293
  /**
294
294
  * By default, this value is "status". You can also provide an alternate
295
295
  * role if it makes sense from the accessibility-side.
296
296
  */
297
- role: 'alert' | 'log' | 'status';
297
+ role?: 'alert' | 'log' | 'status';
298
298
  /**
299
299
  * Provide a description for "status" icon that can be read by screen readers
300
300
  */
@@ -399,7 +399,7 @@ export interface ActionableNotificationProps extends HTMLAttributes<HTMLDivEleme
399
399
  /**
400
400
  * Specify what state the notification represents
401
401
  */
402
- kind: 'error' | 'info' | 'info-square' | 'success' | 'warning' | 'warning-alt';
402
+ kind?: 'error' | 'info' | 'info-square' | 'success' | 'warning' | 'warning-alt';
403
403
  /**
404
404
  * Specify whether you are using the low contrast variant of the ActionableNotification.
405
405
  */
@@ -416,7 +416,7 @@ export interface ActionableNotificationProps extends HTMLAttributes<HTMLDivEleme
416
416
  /**
417
417
  * Provide a function that is called when the close button is clicked
418
418
  */
419
- onCloseButtonClick(event: MouseEvent): void;
419
+ onCloseButtonClick?(event: MouseEvent): void;
420
420
  /**
421
421
  * By default, this value is "alertdialog". You can also provide an alternate
422
422
  * role if it makes sense from from an accessibility perspective.
@@ -28,7 +28,7 @@ export interface FileUploaderDropContainerProps extends Omit<ReactAttr<HTMLButto
28
28
  * Provide the label text to be read by screen readers when interacting with
29
29
  * this control
30
30
  */
31
- labelText: string;
31
+ labelText?: string;
32
32
  /**
33
33
  * Specify if the component should accept multiple files to upload
34
34
  */
@@ -151,7 +151,7 @@ export interface ToastNotificationProps extends HTMLAttributes<HTMLDivElement> {
151
151
  /**
152
152
  * Specify what state the notification represents
153
153
  */
154
- kind: 'error' | 'info' | 'info-square' | 'success' | 'warning' | 'warning-alt';
154
+ kind?: 'error' | 'info' | 'info-square' | 'success' | 'warning' | 'warning-alt';
155
155
  /**
156
156
  * Specify whether you are using the low contrast variant of the ToastNotification.
157
157
  */
@@ -163,12 +163,12 @@ export interface ToastNotificationProps extends HTMLAttributes<HTMLDivElement> {
163
163
  /**
164
164
  * Provide a function that is called when the close button is clicked
165
165
  */
166
- onCloseButtonClick(event: MouseEvent): void;
166
+ onCloseButtonClick?(event: MouseEvent): void;
167
167
  /**
168
168
  * By default, this value is "status". You can also provide an alternate
169
169
  * role if it makes sense from the accessibility-side
170
170
  */
171
- role: 'alert' | 'log' | 'status';
171
+ role?: 'alert' | 'log' | 'status';
172
172
  /**
173
173
  * Provide a description for "status" icon that can be read by screen readers
174
174
  */
@@ -277,7 +277,7 @@ export interface InlineNotificationProps extends HTMLAttributes<HTMLDivElement>
277
277
  /**
278
278
  * Specify what state the notification represents
279
279
  */
280
- kind: 'error' | 'info' | 'info-square' | 'success' | 'warning' | 'warning-alt';
280
+ kind?: 'error' | 'info' | 'info-square' | 'success' | 'warning' | 'warning-alt';
281
281
  /**
282
282
  * Specify whether you are using the low contrast variant of the InlineNotification.
283
283
  */
@@ -289,12 +289,12 @@ export interface InlineNotificationProps extends HTMLAttributes<HTMLDivElement>
289
289
  /**
290
290
  * Provide a function that is called when the close button is clicked
291
291
  */
292
- onCloseButtonClick(event: MouseEvent): void;
292
+ onCloseButtonClick?(event: MouseEvent): void;
293
293
  /**
294
294
  * By default, this value is "status". You can also provide an alternate
295
295
  * role if it makes sense from the accessibility-side.
296
296
  */
297
- role: 'alert' | 'log' | 'status';
297
+ role?: 'alert' | 'log' | 'status';
298
298
  /**
299
299
  * Provide a description for "status" icon that can be read by screen readers
300
300
  */
@@ -399,7 +399,7 @@ export interface ActionableNotificationProps extends HTMLAttributes<HTMLDivEleme
399
399
  /**
400
400
  * Specify what state the notification represents
401
401
  */
402
- kind: 'error' | 'info' | 'info-square' | 'success' | 'warning' | 'warning-alt';
402
+ kind?: 'error' | 'info' | 'info-square' | 'success' | 'warning' | 'warning-alt';
403
403
  /**
404
404
  * Specify whether you are using the low contrast variant of the ActionableNotification.
405
405
  */
@@ -416,7 +416,7 @@ export interface ActionableNotificationProps extends HTMLAttributes<HTMLDivEleme
416
416
  /**
417
417
  * Provide a function that is called when the close button is clicked
418
418
  */
419
- onCloseButtonClick(event: MouseEvent): void;
419
+ onCloseButtonClick?(event: MouseEvent): void;
420
420
  /**
421
421
  * By default, this value is "alertdialog". You can also provide an alternate
422
422
  * role if it makes sense from from an accessibility perspective.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@carbon/react",
3
3
  "description": "React components for the Carbon Design System",
4
- "version": "1.41.0",
4
+ "version": "1.41.2",
5
5
  "license": "Apache-2.0",
6
6
  "main": "lib/index.js",
7
7
  "module": "es/index.js",
@@ -47,9 +47,9 @@
47
47
  "dependencies": {
48
48
  "@babel/runtime": "^7.18.3",
49
49
  "@carbon/feature-flags": "^0.16.0",
50
- "@carbon/icons-react": "^11.29.0",
51
- "@carbon/layout": "^11.20.0",
52
- "@carbon/styles": "^1.41.0",
50
+ "@carbon/icons-react": "^11.29.2",
51
+ "@carbon/layout": "^11.20.1",
52
+ "@carbon/styles": "^1.41.2",
53
53
  "@carbon/telemetry": "0.1.0",
54
54
  "classnames": "2.3.2",
55
55
  "copy-to-clipboard": "^3.3.1",
@@ -77,7 +77,7 @@
77
77
  "@babel/preset-react": "^7.22.3",
78
78
  "@babel/preset-typescript": "^7.21.5",
79
79
  "@carbon/test-utils": "^10.30.0",
80
- "@carbon/themes": "^11.26.0",
80
+ "@carbon/themes": "^11.26.1",
81
81
  "@rollup/plugin-babel": "^6.0.0",
82
82
  "@rollup/plugin-commonjs": "^25.0.0",
83
83
  "@rollup/plugin-node-resolve": "^15.0.0",
@@ -124,7 +124,7 @@
124
124
  "storybook-readme": "^5.0.9",
125
125
  "stream-browserify": "^3.0.0",
126
126
  "style-loader": "^3.3.1",
127
- "typescript-config-carbon": "^0.2.0",
127
+ "typescript-config-carbon": "^0.2.1",
128
128
  "webpack": "^5.65.0",
129
129
  "webpack-dev-server": "^4.7.4"
130
130
  },
@@ -139,5 +139,5 @@
139
139
  "**/*.scss",
140
140
  "**/*.css"
141
141
  ],
142
- "gitHead": "abe693e46a9b76731f51e47104f3634b6346f845"
142
+ "gitHead": "a4709f9f15fd713e910528118e5192faf5a48985"
143
143
  }