@pingux/astro 2.119.0 → 2.120.0-alpha.1
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/lib/cjs/components/Badge/Badge.styles.d.ts +31 -0
- package/lib/cjs/components/Badge/Badge.styles.js +5 -0
- package/lib/cjs/components/DataTable/DataTable.js +6 -6
- package/lib/cjs/components/DataTable/DataTable.stories.d.ts +13 -0
- package/lib/cjs/components/DataTable/DataTable.stories.js +113 -1
- package/lib/cjs/components/DataTable/DataTableBadge.js +12 -5
- package/lib/cjs/{styles/themes/next-gen → components/DataTable}/stories/DataTableNextGenComponent.d.ts +0 -4
- package/lib/cjs/{styles/themes/next-gen → components/DataTable}/stories/DataTableNextGenComponent.js +30 -33
- package/lib/cjs/{styles/themeOverrides/nextGenDarkMode → components/DataTable}/stories/NextGenDarkDataTable.chomatic.stories.js +2 -2
- package/lib/cjs/{styles/themes/next-gen → components/DataTable}/stories/NextGenDataTable.chromatic.stories.js +1 -1
- package/lib/cjs/components/MultivaluesField/MultivaluesField.mdx +5 -1
- package/lib/cjs/components/MultivaluesField/MultivaluesField.test.js +54 -1
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.d.ts +13 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.js +14 -1
- package/lib/cjs/styles/themes/next-gen/convertedComponentList.d.ts +2 -1
- package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +2 -1
- package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +139 -3
- package/lib/cjs/styles/themes/next-gen/variants/badges.d.ts +97 -2
- package/lib/cjs/styles/themes/next-gen/variants/badges.js +72 -50
- package/lib/cjs/styles/themes/next-gen/variants/dataTable.d.ts +68 -0
- package/lib/cjs/styles/themes/next-gen/variants/dataTable.js +82 -0
- package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +42 -1
- package/lib/cjs/styles/themes/next-gen/variants/variants.js +2 -28
- package/lib/components/Badge/Badge.styles.js +5 -0
- package/lib/components/DataTable/DataTable.js +5 -5
- package/lib/components/DataTable/DataTable.stories.js +111 -0
- package/lib/components/DataTable/DataTableBadge.js +11 -3
- package/lib/{styles/themes/next-gen → components/DataTable}/stories/DataTableNextGenComponent.js +4 -6
- package/lib/{styles/themeOverrides/nextGenDarkMode → components/DataTable}/stories/NextGenDarkDataTable.chomatic.stories.js +2 -2
- package/lib/{styles/themes/next-gen → components/DataTable}/stories/NextGenDataTable.chromatic.stories.js +1 -1
- package/lib/components/MultivaluesField/MultivaluesField.mdx +5 -1
- package/lib/components/MultivaluesField/MultivaluesField.test.js +54 -0
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/variants.js +14 -1
- package/lib/styles/themes/next-gen/convertedComponentList.js +2 -1
- package/lib/styles/themes/next-gen/variants/badges.js +72 -50
- package/lib/styles/themes/next-gen/variants/dataTable.js +74 -0
- package/lib/styles/themes/next-gen/variants/variants.js +1 -27
- package/package.json +1 -1
- package/lib/cjs/recipes/NextGen/NextGenDataTable.stories.d.ts +0 -6
- package/lib/cjs/recipes/NextGen/NextGenDataTable.stories.js +0 -19
- package/lib/recipes/NextGen/NextGenDataTable.stories.js +0 -9
- /package/lib/cjs/{styles/themeOverrides/nextGenDarkMode → components/DataTable}/stories/NextGenDarkDataTable.chomatic.stories.d.ts +0 -0
- /package/lib/cjs/{styles/themes/next-gen → components/DataTable}/stories/NextGenDataTable.chromatic.stories.d.ts +0 -0
@@ -19,6 +19,7 @@ var _Skeleton = _interopRequireDefault(require("../../../../components/Skeleton/
|
|
19
19
|
var _codeView = _interopRequireDefault(require("../codeView/codeView"));
|
20
20
|
var _avatar = require("./avatar");
|
21
21
|
var _button = _interopRequireDefault(require("./button"));
|
22
|
+
var _dataTable = require("./dataTable");
|
22
23
|
var _iconWrapper = _interopRequireDefault(require("./iconWrapper"));
|
23
24
|
var _listview = require("./listview");
|
24
25
|
var _menu = require("./menu");
|
@@ -257,33 +258,6 @@ var progressBar = {
|
|
257
258
|
backgroundColor: 'active'
|
258
259
|
})
|
259
260
|
};
|
260
|
-
var dataTable = {
|
261
|
-
container: {
|
262
|
-
border: '1px solid',
|
263
|
-
borderColor: 'border.base',
|
264
|
-
borderRadius: '16px'
|
265
|
-
},
|
266
|
-
tableRow: {
|
267
|
-
borderTop: '1px solid',
|
268
|
-
borderTopColor: 'border.base',
|
269
|
-
borderBottom: '0',
|
270
|
-
pl: 'lg'
|
271
|
-
},
|
272
|
-
tableHeadWrapper: {
|
273
|
-
borderBottom: '0'
|
274
|
-
},
|
275
|
-
tableHeadCell: {
|
276
|
-
pl: 'lg',
|
277
|
-
fontWeight: '2',
|
278
|
-
fontSize: 'md'
|
279
|
-
},
|
280
|
-
rowHeader: {
|
281
|
-
py: '20px !important'
|
282
|
-
},
|
283
|
-
tableCell: {
|
284
|
-
fontSize: 'md'
|
285
|
-
}
|
286
|
-
};
|
287
261
|
var overlayPanel = {
|
288
262
|
container: {
|
289
263
|
backgroundColor: 'background.base',
|
@@ -342,7 +316,7 @@ var _default = {
|
|
342
316
|
listViewItem: _listview.listViewItem,
|
343
317
|
progressBar: progressBar,
|
344
318
|
listView: _listview.listView,
|
345
|
-
dataTable: dataTable,
|
319
|
+
dataTable: _dataTable.dataTable,
|
346
320
|
codeView: _codeView["default"],
|
347
321
|
prompt: _prompt["default"],
|
348
322
|
tabs: _tabs.tabs,
|
@@ -193,6 +193,10 @@ var activeStatusBadge = _objectSpread(_objectSpread({}, statusBadge), {}, {
|
|
193
193
|
borderColor: 'active',
|
194
194
|
backgroundColor: '#F7F8FD !important'
|
195
195
|
});
|
196
|
+
var secondaryStatusBadge = _objectSpread(_objectSpread({}, statusBadge), {}, {
|
197
|
+
borderColor: 'neutral.80',
|
198
|
+
backgroundColor: '#F7F8FD !important'
|
199
|
+
});
|
196
200
|
var invertedRemovableBadge = _objectSpread(_objectSpread({}, baseBadge), {}, {
|
197
201
|
height: '21px',
|
198
202
|
'& span': {
|
@@ -268,6 +272,7 @@ export default {
|
|
268
272
|
warningCalloutBadge: warningCalloutBadge,
|
269
273
|
warningStatusBadge: warningStatusBadge,
|
270
274
|
healthyStatusBadge: healthyStatusBadge,
|
275
|
+
secondaryStatusBadge: secondaryStatusBadge,
|
271
276
|
removableBadge: removableBadge,
|
272
277
|
invertedRemovableBadge: invertedRemovableBadge,
|
273
278
|
dataTable: dataTable
|
@@ -97,7 +97,9 @@ var DataTable = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
97
97
|
var domRef = useLocalOrForwardRef(ref);
|
98
98
|
var headerRef = useRef(null);
|
99
99
|
var bodyRef = useRef(null);
|
100
|
-
var
|
100
|
+
var _useGetTheme = useGetTheme(),
|
101
|
+
isOnyx = _useGetTheme.themeState.isOnyx;
|
102
|
+
var density = isOnyx ? 'spacious' : props.density || 'regular';
|
101
103
|
var columnLayout = useMemo(function () {
|
102
104
|
return new TableColumnLayout({
|
103
105
|
getDefaultMinWidth: getDefaultMinWidth
|
@@ -273,8 +275,8 @@ var TableColumnHeader = function TableColumnHeader(props) {
|
|
273
275
|
var ref = useRef(null);
|
274
276
|
var _useDataTableContext = useDataTableContext(),
|
275
277
|
state = _useDataTableContext.state;
|
276
|
-
var
|
277
|
-
icons =
|
278
|
+
var _useGetTheme2 = useGetTheme(),
|
279
|
+
icons = _useGetTheme2.icons;
|
278
280
|
var MenuUp = icons.MenuUp,
|
279
281
|
MenuDown = icons.MenuDown;
|
280
282
|
var _useTableColumnHeader = useTableColumnHeader({
|
@@ -306,7 +308,6 @@ var TableColumnHeader = function TableColumnHeader(props) {
|
|
306
308
|
focusRingClass: "is-key-focused",
|
307
309
|
focusClass: "is-click-focused"
|
308
310
|
}, ___EmotionJSX(Box, _extends({
|
309
|
-
pl: column.index === 0 ? 0 : 'lg',
|
310
311
|
ref: ref,
|
311
312
|
variant: "dataTable.tableHeadCell",
|
312
313
|
className: classNames
|
@@ -399,7 +400,6 @@ var TableCell = function TableCell(_ref6) {
|
|
399
400
|
return ___EmotionJSX(FocusRing, {
|
400
401
|
focusRingClass: "is-key-focused"
|
401
402
|
}, ___EmotionJSX(Box, _extends({
|
402
|
-
pl: cell.index === 0 ? 0 : 'lg',
|
403
403
|
ref: ref,
|
404
404
|
variant: "dataTable.tableCell",
|
405
405
|
className: classNames
|
@@ -267,6 +267,117 @@ Default.parameters = {
|
|
267
267
|
}
|
268
268
|
}
|
269
269
|
};
|
270
|
+
export var OnyxDefault = function OnyxDefault(args) {
|
271
|
+
var date = '2023-05-03';
|
272
|
+
var time = '07:16:30 pm UTC';
|
273
|
+
var timestampCell = ___EmotionJSX(React.Fragment, null, ___EmotionJSX(Box, null, date), ___EmotionJSX(Box, null, time));
|
274
|
+
var columns = [{
|
275
|
+
name: 'Timestamp',
|
276
|
+
key: 'timestamp'
|
277
|
+
}, {
|
278
|
+
name: 'Event Type',
|
279
|
+
key: 'eventType'
|
280
|
+
}, {
|
281
|
+
name: 'Description',
|
282
|
+
key: 'description'
|
283
|
+
}, {
|
284
|
+
name: 'Status',
|
285
|
+
key: 'status',
|
286
|
+
isSortable: true
|
287
|
+
}, {
|
288
|
+
name: 'User Identity',
|
289
|
+
key: 'userIdentity'
|
290
|
+
}, {
|
291
|
+
name: 'Menu',
|
292
|
+
key: 'menu'
|
293
|
+
}];
|
294
|
+
var rows = [{
|
295
|
+
id: 1,
|
296
|
+
timestamp: timestampCell,
|
297
|
+
eventType: 'User Access Allowed',
|
298
|
+
description: ___EmotionJSX(Box, null, "Passed Role Access Control"),
|
299
|
+
status: ___EmotionJSX(DataTableBadge, {
|
300
|
+
cell: "Approved"
|
301
|
+
}),
|
302
|
+
userIdentity: 'Vincent Diep',
|
303
|
+
menu: ___EmotionJSX(DataTableMenu, null)
|
304
|
+
}, {
|
305
|
+
id: 2,
|
306
|
+
timestamp: timestampCell,
|
307
|
+
eventType: 'User Access Denied',
|
308
|
+
description: ___EmotionJSX(Box, {
|
309
|
+
display: "block"
|
310
|
+
}, "Passed Role Access Control"),
|
311
|
+
status: ___EmotionJSX(DataTableBadge, {
|
312
|
+
cell: "Rejected"
|
313
|
+
}),
|
314
|
+
userIdentity: 'Vincent Diep',
|
315
|
+
menu: ___EmotionJSX(DataTableMenu, null)
|
316
|
+
}, {
|
317
|
+
id: 3,
|
318
|
+
timestamp: timestampCell,
|
319
|
+
eventType: 'User Access Allowed',
|
320
|
+
description: ___EmotionJSX(Box, {
|
321
|
+
display: "block"
|
322
|
+
}, "Passed Role Access Control"),
|
323
|
+
status: ___EmotionJSX(DataTableBadge, {
|
324
|
+
cell: "Inactive"
|
325
|
+
}),
|
326
|
+
userIdentity: 'Vincent Diep',
|
327
|
+
menu: ___EmotionJSX(DataTableMenu, null)
|
328
|
+
}, {
|
329
|
+
id: 4,
|
330
|
+
timestamp: timestampCell,
|
331
|
+
eventType: 'User Access Allowed',
|
332
|
+
description: ___EmotionJSX(Box, null, "Passed Role Access Control"),
|
333
|
+
status: ___EmotionJSX(DataTableBadge, {
|
334
|
+
cell: "Approved"
|
335
|
+
}),
|
336
|
+
userIdentity: 'Vincent Diep',
|
337
|
+
menu: ___EmotionJSX(DataTableMenu, null)
|
338
|
+
}, {
|
339
|
+
id: 5,
|
340
|
+
timestamp: timestampCell,
|
341
|
+
eventType: 'User Access Allowed',
|
342
|
+
description: ___EmotionJSX(Box, null, "Passed Role Access Control"),
|
343
|
+
status: ___EmotionJSX(DataTableBadge, {
|
344
|
+
cell: "Approved"
|
345
|
+
}),
|
346
|
+
userIdentity: 'Vincent Diep',
|
347
|
+
menu: ___EmotionJSX(DataTableMenu, null)
|
348
|
+
}];
|
349
|
+
return ___EmotionJSX(DataTable, _extends({}, args, {
|
350
|
+
"aria-label": "Onyx table",
|
351
|
+
height: "100%",
|
352
|
+
scale: "xl"
|
353
|
+
}), ___EmotionJSX(DataTableHeader, {
|
354
|
+
columns: columns
|
355
|
+
}, function (column) {
|
356
|
+
return ___EmotionJSX(DataTableColumn, {
|
357
|
+
hideHeader: column.key === 'menu',
|
358
|
+
minWidth: column.key !== 'menu' ? 175 : 75,
|
359
|
+
width: column.key !== 'menu' ? '19.4%' : 75
|
360
|
+
}, column.name);
|
361
|
+
}), ___EmotionJSX(DataTableBody, {
|
362
|
+
items: rows
|
363
|
+
}, function (item) {
|
364
|
+
return ___EmotionJSX(DataTableRow, null, function (columnKey) {
|
365
|
+
return ___EmotionJSX(DataTableCell, null, item[columnKey]);
|
366
|
+
});
|
367
|
+
}));
|
368
|
+
};
|
369
|
+
|
370
|
+
// Added to bypass color contrast issue due to virtualizer
|
371
|
+
OnyxDefault.parameters = {
|
372
|
+
a11y: {
|
373
|
+
config: {
|
374
|
+
rules: [{
|
375
|
+
id: 'color-contrast',
|
376
|
+
enabled: false
|
377
|
+
}]
|
378
|
+
}
|
379
|
+
}
|
380
|
+
};
|
270
381
|
export var Dynamic = function Dynamic(args) {
|
271
382
|
var columns = [{
|
272
383
|
name: 'Country',
|
@@ -1,10 +1,13 @@
|
|
1
1
|
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
2
|
+
import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectWithoutProperties";
|
3
|
+
var _excluded = ["cell"];
|
2
4
|
/* eslint-disable no-nested-ternary */
|
3
5
|
import React, { forwardRef } from 'react';
|
4
6
|
import { Badge } from '../../index';
|
5
7
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
6
|
-
var DataTableBadge = /*#__PURE__*/forwardRef(function (
|
7
|
-
var cell =
|
8
|
+
var DataTableBadge = /*#__PURE__*/forwardRef(function (props, ref) {
|
9
|
+
var cell = props.cell,
|
10
|
+
others = _objectWithoutProperties(props, _excluded);
|
8
11
|
var componentProps = {
|
9
12
|
'Pending': {
|
10
13
|
badgeProps: {
|
@@ -25,11 +28,16 @@ var DataTableBadge = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
25
28
|
badgeProps: {
|
26
29
|
variant: 'healthyStatusBadge'
|
27
30
|
}
|
31
|
+
},
|
32
|
+
'Inactive': {
|
33
|
+
badgeProps: {
|
34
|
+
variant: 'secondaryStatusBadge'
|
35
|
+
}
|
28
36
|
}
|
29
37
|
};
|
30
38
|
return ___EmotionJSX(Badge, _extends({
|
31
39
|
label: cell,
|
32
40
|
ref: ref
|
33
|
-
}, cell && componentProps[cell].badgeProps));
|
41
|
+
}, cell && componentProps[cell].badgeProps, others));
|
34
42
|
});
|
35
43
|
export default DataTableBadge;
|
package/lib/{styles/themes/next-gen → components/DataTable}/stories/DataTableNextGenComponent.js
RENAMED
@@ -1,10 +1,7 @@
|
|
1
1
|
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
2
2
|
import React from 'react';
|
3
|
-
import { Badge, Box, DataTable, DataTableBody, DataTableCell, DataTableColumn, DataTableHeader, DataTableMenu, DataTableRow
|
3
|
+
import { Badge, Box, DataTable, DataTableBody, DataTableCell, DataTableColumn, DataTableHeader, DataTableMenu, DataTableRow } from '../../..';
|
4
4
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
5
|
-
export default {
|
6
|
-
title: 'Onyx Recipes/DataTable'
|
7
|
-
};
|
8
5
|
var getCellProps = function getCellProps(columnKey, align) {
|
9
6
|
return {
|
10
7
|
pr: columnKey !== 'menu' ? 'lg' : 12,
|
@@ -120,7 +117,7 @@ export var DataTableNextGenComponent = function DataTableNextGenComponent() {
|
|
120
117
|
backgroundColor: "background.base",
|
121
118
|
p: "lg"
|
122
119
|
}, ___EmotionJSX(DataTable, {
|
123
|
-
"aria-label": "
|
120
|
+
"aria-label": "Onyx table",
|
124
121
|
height: "100%",
|
125
122
|
density: "spacious",
|
126
123
|
scale: "xl"
|
@@ -128,9 +125,10 @@ export var DataTableNextGenComponent = function DataTableNextGenComponent() {
|
|
128
125
|
columns: columns
|
129
126
|
}, function (column) {
|
130
127
|
return ___EmotionJSX(DataTableColumn, _extends({}, getCellProps(column.key, false), {
|
128
|
+
hideHeader: column.key === 'menu',
|
131
129
|
minWidth: column.key !== 'menu' ? 175 : 50,
|
132
130
|
width: column.key !== 'menu' ? '19.4%' : 50
|
133
|
-
}),
|
131
|
+
}), column.name);
|
134
132
|
}), ___EmotionJSX(DataTableBody, {
|
135
133
|
items: rows
|
136
134
|
}, function (item) {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import { AstroProvider, NextGenDarkTheme } from '
|
3
|
-
import { DataTableNextGenComponent } from '
|
2
|
+
import { AstroProvider, NextGenDarkTheme } from '../../..';
|
3
|
+
import { DataTableNextGenComponent } from './DataTableNextGenComponent';
|
4
4
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
5
5
|
export default {
|
6
6
|
title: 'Chromatic Only Onyx Dark DataTable'
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import { AstroProvider, NextGenTheme } from '
|
2
|
+
import { AstroProvider, NextGenTheme } from '../../..';
|
3
3
|
import { DataTableNextGenComponent } from './DataTableNextGenComponent';
|
4
4
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
5
5
|
export default {
|
@@ -41,4 +41,8 @@ This component uses the following attributes to assist screen readers:
|
|
41
41
|
- The input uses the **`aria-expanded`** attribute to show the expansion and collapse of the popover, the **`aria-invalid`** attribute set to “True” when an incorrect value or status error occurs, and the **`aria-labelledby`** attribute is used to reference the label.
|
42
42
|
- The list box **`aria-multiselectable`** attribute is set to “True” by default.
|
43
43
|
- Each option uses the **`aria-selected`** attribute to indicate the state of selection, **`aria-posinset`** to give the option position in the current set of list items, and the **`aria-setsize`** attribute to define the current set of options.
|
44
|
-
- The **`aria-disabled`** attribute is set to “False” for each option by default.
|
44
|
+
- The **`aria-disabled`** attribute is set to “False” for each option by default.
|
45
|
+
|
46
|
+
### Children
|
47
|
+
|
48
|
+
Item and Section as dynamic children components must have key props with unique values.
|
@@ -6,10 +6,21 @@ import _Object$setPrototypeOf from "@babel/runtime-corejs3/core-js-stable/object
|
|
6
6
|
import _Promise from "@babel/runtime-corejs3/core-js-stable/promise";
|
7
7
|
import _reverseInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/reverse";
|
8
8
|
import _sliceInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/slice";
|
9
|
+
import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
|
10
|
+
import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
|
11
|
+
import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
|
12
|
+
import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";
|
13
|
+
import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
|
14
|
+
import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
|
9
15
|
import _typeof from "@babel/runtime-corejs3/helpers/esm/typeof";
|
16
|
+
import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectWithoutProperties";
|
17
|
+
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
10
18
|
import _asyncToGenerator from "@babel/runtime-corejs3/helpers/esm/asyncToGenerator";
|
11
19
|
import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
|
12
20
|
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
21
|
+
var _excluded = ["key"];
|
22
|
+
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
23
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context9, _context10; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context9 = ownKeys(Object(source), !0)).call(_context9, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context10 = ownKeys(Object(source))).call(_context10, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
13
24
|
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = _Object$defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof _Symbol ? _Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return _Object$defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = _Object$create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = _Object$getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = _Object$create(IteratorPrototype); function defineIteratorMethods(prototype) { var _context7; _forEachInstanceProperty(_context7 = ["next", "throw", "return"]).call(_context7, function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], _forEachInstanceProperty(tryLocsList).call(tryLocsList, pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return _Object$setPrototypeOf ? _Object$setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = _Object$create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = _Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return _reverseInstanceProperty(keys).call(keys), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { var _context8; if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, _forEachInstanceProperty(_context8 = this.tryEntries).call(_context8, resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+_sliceInstanceProperty(name).call(name, 1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
14
25
|
import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
|
15
26
|
import _fillInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/fill";
|
@@ -1104,6 +1115,22 @@ test('trigger button handles popover open and close in condensed', function () {
|
|
1104
1115
|
fireEvent.click(screen.getAllByRole('button')[0]);
|
1105
1116
|
expect(screen.queryByRole('listbox')).not.toBeInTheDocument();
|
1106
1117
|
});
|
1118
|
+
test('renders items with duplicate keys', function () {
|
1119
|
+
getComponent({
|
1120
|
+
items: _mapInstanceProperty(items).call(items, function (item) {
|
1121
|
+
return _objectSpread(_objectSpread({}, item), {}, {
|
1122
|
+
key: 'DUPLICATE_KEY'
|
1123
|
+
});
|
1124
|
+
}),
|
1125
|
+
mode: 'condensed'
|
1126
|
+
});
|
1127
|
+
var input = screen.getByRole('combobox');
|
1128
|
+
userEvent.tab();
|
1129
|
+
expect(input).toHaveFocus();
|
1130
|
+
expect(screen.getByRole('listbox')).toBeInTheDocument();
|
1131
|
+
var options = screen.getAllByRole('option');
|
1132
|
+
expect(options.length).toBe(1);
|
1133
|
+
});
|
1107
1134
|
test('should render items with sections passed in props', function () {
|
1108
1135
|
getSectionsComponent();
|
1109
1136
|
expect(screen.queryByRole('listbox')).not.toBeInTheDocument();
|
@@ -1137,6 +1164,33 @@ test('should render the separators', function () {
|
|
1137
1164
|
}
|
1138
1165
|
});
|
1139
1166
|
});
|
1167
|
+
test('renders duplicate groups for duplicate keys on items group ', function () {
|
1168
|
+
getSectionsComponent({
|
1169
|
+
items: _mapInstanceProperty(withSection).call(withSection, function (item) {
|
1170
|
+
return _objectSpread(_objectSpread({}, item), {}, {
|
1171
|
+
key: 'DUPLICATE_KEY'
|
1172
|
+
});
|
1173
|
+
})
|
1174
|
+
});
|
1175
|
+
var input = screen.getByRole('combobox');
|
1176
|
+
userEvent.click(input);
|
1177
|
+
expect(screen.getAllByRole('group')).not.toHaveLength(2);
|
1178
|
+
});
|
1179
|
+
test('renders with error without key on item groups ', function () {
|
1180
|
+
var errorMessage = '';
|
1181
|
+
try {
|
1182
|
+
getSectionsComponent({
|
1183
|
+
items: _mapInstanceProperty(withSection).call(withSection, function (_ref8) {
|
1184
|
+
var key = _ref8.key,
|
1185
|
+
item = _objectWithoutProperties(_ref8, _excluded);
|
1186
|
+
return item;
|
1187
|
+
})
|
1188
|
+
});
|
1189
|
+
} catch (error) {
|
1190
|
+
errorMessage = error.message;
|
1191
|
+
}
|
1192
|
+
expect(errorMessage).toMatch(/No key found for item/);
|
1193
|
+
});
|
1140
1194
|
test('escape focus delegate calls correct functions if anything else is pressed', function () {
|
1141
1195
|
render(___EmotionJSX(ComponentOnPrevLoad, null));
|
1142
1196
|
userEvent.tab();
|
@@ -66,5 +66,18 @@ export default {
|
|
66
66
|
modal: modal,
|
67
67
|
tab: tab,
|
68
68
|
iconBadge: iconBadge,
|
69
|
-
skeleton: skeleton
|
69
|
+
skeleton: skeleton,
|
70
|
+
dataTable: {
|
71
|
+
selectableTableRow: {
|
72
|
+
'&.is-selected': {
|
73
|
+
bg: 'background.hover'
|
74
|
+
},
|
75
|
+
'&.is-hovered': {
|
76
|
+
bg: 'background.hover'
|
77
|
+
},
|
78
|
+
'&.is-focused': {
|
79
|
+
boxShadow: '0 0 0 3px inset #1a73e8'
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
70
83
|
};
|
@@ -8,9 +8,10 @@ export var componentSpecificNextGenBlacklist = {
|
|
8
8
|
PasswordField: ['Success'],
|
9
9
|
TextField: ['Success'],
|
10
10
|
OverlayPanel: ['Expandable'],
|
11
|
-
|
11
|
+
DataTable: ['Default']
|
12
12
|
};
|
13
13
|
export var astroBlacklistStory = {
|
14
|
+
DataTable: ['Onyx Default'],
|
14
15
|
NavBar: ['Onyx Default']
|
15
16
|
};
|
16
17
|
export var nextGenOnlyComponents = ['NavigationHeader', 'Prompt', 'AI Panel', 'Response', 'Suggestions', 'Prompt Input'];
|
@@ -26,6 +26,56 @@ var baseBadge = {
|
|
26
26
|
width: 'fit-content',
|
27
27
|
'& span': _objectSpread({}, badgeFont)
|
28
28
|
};
|
29
|
+
var primary = _objectSpread(_objectSpread({}, baseBadge), {}, {
|
30
|
+
backgroundColor: '#eaf1fb !important',
|
31
|
+
'& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
|
32
|
+
color: '#1967d2'
|
33
|
+
})
|
34
|
+
});
|
35
|
+
var secondary = _objectSpread(_objectSpread({}, baseBadge), {}, {
|
36
|
+
backgroundColor: '#f6f8fa !important',
|
37
|
+
'& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
|
38
|
+
color: 'gray-900'
|
39
|
+
})
|
40
|
+
});
|
41
|
+
var success = _objectSpread(_objectSpread({}, baseBadge), {}, {
|
42
|
+
backgroundColor: '#d3eddf !important',
|
43
|
+
'& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
|
44
|
+
color: 'success.dark'
|
45
|
+
})
|
46
|
+
});
|
47
|
+
var danger = _objectSpread(_objectSpread({}, baseBadge), {}, {
|
48
|
+
backgroundColor: '#f8d8d5 !important',
|
49
|
+
'& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
|
50
|
+
color: 'red-700'
|
51
|
+
})
|
52
|
+
});
|
53
|
+
var warning = _objectSpread(_objectSpread({}, baseBadge), {}, {
|
54
|
+
backgroundColor: '#fff1da !important',
|
55
|
+
'& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
|
56
|
+
color: 'yellow-700'
|
57
|
+
})
|
58
|
+
});
|
59
|
+
var dark = _objectSpread(_objectSpread({}, baseBadge), {}, {
|
60
|
+
backgroundColor: 'black !important',
|
61
|
+
'& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
|
62
|
+
color: 'white'
|
63
|
+
})
|
64
|
+
});
|
65
|
+
var selectedItemBadge = _objectSpread(_objectSpread({}, baseBadge), {}, {
|
66
|
+
backgroundColor: '#eaf2fd !important',
|
67
|
+
paddingRight: '0px !important',
|
68
|
+
'& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
|
69
|
+
fontSize: '14px',
|
70
|
+
color: 'text.primary',
|
71
|
+
fontWeight: 400
|
72
|
+
})
|
73
|
+
});
|
74
|
+
var readOnlyBadge = {
|
75
|
+
'& span': {
|
76
|
+
fontSize: '14px'
|
77
|
+
}
|
78
|
+
};
|
29
79
|
export var badgeDeleteButton = _objectSpread(_objectSpread({}, buttons.iconButtons.base), {}, {
|
30
80
|
borderRadius: '50%',
|
31
81
|
cursor: 'pointer',
|
@@ -33,62 +83,34 @@ export var badgeDeleteButton = _objectSpread(_objectSpread({}, buttons.iconButto
|
|
33
83
|
p: 0,
|
34
84
|
width: 14
|
35
85
|
});
|
86
|
+
var dataTableBadge = {
|
87
|
+
minWidth: '100px',
|
88
|
+
border: 'none'
|
89
|
+
};
|
90
|
+
var activeStatusBadge = _objectSpread(_objectSpread({}, primary), dataTableBadge);
|
91
|
+
var warningStatusBadge = _objectSpread(_objectSpread({}, warning), dataTableBadge);
|
92
|
+
var criticalStatusBadge = _objectSpread(_objectSpread({}, danger), dataTableBadge);
|
93
|
+
var healthyStatusBadge = _objectSpread(_objectSpread({}, success), dataTableBadge);
|
94
|
+
var secondaryStatusBadge = _objectSpread(_objectSpread({}, secondary), dataTableBadge);
|
36
95
|
export var badges = {
|
37
|
-
primary: _objectSpread(_objectSpread({}, baseBadge), {}, {
|
38
|
-
backgroundColor: '#eaf1fb !important',
|
39
|
-
'& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
|
40
|
-
color: '#1967d2'
|
41
|
-
})
|
42
|
-
}),
|
43
96
|
baseBadge: _objectSpread(_objectSpread({}, baseBadge), {}, {
|
44
97
|
backgroundColor: '#eaf1fb !important',
|
45
98
|
'& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
|
46
99
|
color: '#1967d2'
|
47
100
|
})
|
48
101
|
}),
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
backgroundColor: '#f8d8d5 !important',
|
63
|
-
'& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
|
64
|
-
color: 'red-700'
|
65
|
-
})
|
66
|
-
}),
|
67
|
-
warning: _objectSpread(_objectSpread({}, baseBadge), {}, {
|
68
|
-
backgroundColor: '#fff1da !important',
|
69
|
-
'& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
|
70
|
-
color: 'yellow-700'
|
71
|
-
})
|
72
|
-
}),
|
73
|
-
dark: _objectSpread(_objectSpread({}, baseBadge), {}, {
|
74
|
-
backgroundColor: 'black !important',
|
75
|
-
'& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
|
76
|
-
color: 'white'
|
77
|
-
})
|
78
|
-
}),
|
79
|
-
selectedItemBadge: _objectSpread(_objectSpread({}, baseBadge), {}, {
|
80
|
-
backgroundColor: '#eaf2fd !important',
|
81
|
-
paddingRight: '0px !important',
|
82
|
-
'& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
|
83
|
-
fontSize: '14px',
|
84
|
-
color: 'text.primary',
|
85
|
-
fontWeight: 400
|
86
|
-
})
|
87
|
-
}),
|
88
|
-
readOnlyBadge: {
|
89
|
-
'& span': {
|
90
|
-
fontSize: '14px'
|
91
|
-
}
|
92
|
-
},
|
102
|
+
primary: primary,
|
103
|
+
secondary: secondary,
|
104
|
+
success: success,
|
105
|
+
danger: danger,
|
106
|
+
warning: warning,
|
107
|
+
dark: dark,
|
108
|
+
selectedItemBadge: selectedItemBadge,
|
109
|
+
readOnlyBadge: readOnlyBadge,
|
110
|
+
activeStatusBadge: activeStatusBadge,
|
111
|
+
warningStatusBadge: warningStatusBadge,
|
112
|
+
criticalStatusBadge: criticalStatusBadge,
|
113
|
+
healthyStatusBadge: healthyStatusBadge,
|
114
|
+
secondaryStatusBadge: secondaryStatusBadge,
|
93
115
|
badgeDeleteButton: badgeDeleteButton
|
94
116
|
};
|