@pingux/astro 2.150.0 → 2.151.0-alpha.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.
Files changed (69) hide show
  1. package/lib/cjs/components/Avatar/Avatar.js +2 -1
  2. package/lib/cjs/components/Box/Box.js +5 -3
  3. package/lib/cjs/components/IconButtonToggle/IconButtonToggle.js +4 -2
  4. package/lib/cjs/components/ListViewItem/ListViewItem.styles.js +1 -11
  5. package/lib/cjs/components/ListViewItem/controls/ListViewItemEditButton.js +1 -1
  6. package/lib/cjs/components/ListViewItem/controls/ListViewItemMenu.js +1 -1
  7. package/lib/cjs/components/Modal/Modal.mdx +5 -1
  8. package/lib/cjs/components/Modal/Modal.stories.js +4 -2
  9. package/lib/cjs/components/MultivaluesField/CondensedMultivaluesField.js +18 -25
  10. package/lib/cjs/components/PanelHeader/PanelHeader.js +6 -4
  11. package/lib/cjs/components/PanelHeader/PanelHeader.stories.js +5 -5
  12. package/lib/cjs/components/PanelHeader/PanelHeader.styles.js +2 -1
  13. package/lib/cjs/components/PanelHeader/stories/OnyxDarkPanelHeader.chromatic.stories.js +22 -0
  14. package/lib/cjs/components/PanelHeader/stories/OnyxPanelHeader.chromatic.stories.js +22 -0
  15. package/lib/cjs/components/PanelHeader/stories/OnyxPanelHeaderComponent.js +89 -0
  16. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.d.ts +8 -0
  17. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.js +8 -0
  18. package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +1 -1
  19. package/lib/cjs/styles/themes/next-gen/customProperties/customSizes.js +1 -1
  20. package/lib/cjs/styles/themes/next-gen/forms.d.ts +1 -1
  21. package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +159 -18
  22. package/lib/cjs/styles/themes/next-gen/next-gen.js +2 -0
  23. package/lib/cjs/styles/themes/next-gen/stories/OnyxInputPatterns.chromatic.stories.d.ts +11 -0
  24. package/lib/cjs/styles/themes/next-gen/stories/OnyxInputPatterns.chromatic.stories.js +197 -0
  25. package/lib/cjs/styles/themes/next-gen/variants/box.d.ts +61 -0
  26. package/lib/cjs/styles/themes/next-gen/variants/box.js +58 -0
  27. package/lib/cjs/styles/themes/next-gen/variants/button.d.ts +106 -5
  28. package/lib/cjs/styles/themes/next-gen/variants/button.js +40 -4
  29. package/lib/cjs/styles/themes/next-gen/variants/input.js +21 -0
  30. package/lib/cjs/styles/themes/next-gen/variants/listview.d.ts +0 -8
  31. package/lib/cjs/styles/themes/next-gen/variants/listview.js +0 -8
  32. package/lib/cjs/styles/themes/next-gen/variants/panelHeader.d.ts +5 -3
  33. package/lib/cjs/styles/themes/next-gen/variants/panelHeader.js +5 -3
  34. package/lib/cjs/styles/themes/next-gen/variants/switch.d.ts +1 -1
  35. package/lib/cjs/styles/themes/next-gen/variants/switch.js +2 -2
  36. package/lib/cjs/styles/themes/next-gen/variants/text.d.ts +7 -1
  37. package/lib/cjs/styles/themes/next-gen/variants/text.js +8 -1
  38. package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +43 -11
  39. package/lib/cjs/styles/themes/next-gen/variants/variants.js +2 -16
  40. package/lib/cjs/types/iconButtonToggle.d.ts +2 -0
  41. package/lib/components/Avatar/Avatar.js +2 -1
  42. package/lib/components/Box/Box.js +5 -3
  43. package/lib/components/IconButtonToggle/IconButtonToggle.js +4 -2
  44. package/lib/components/ListViewItem/ListViewItem.styles.js +1 -11
  45. package/lib/components/ListViewItem/controls/ListViewItemEditButton.js +1 -1
  46. package/lib/components/ListViewItem/controls/ListViewItemMenu.js +1 -1
  47. package/lib/components/Modal/Modal.mdx +5 -1
  48. package/lib/components/Modal/Modal.stories.js +4 -2
  49. package/lib/components/MultivaluesField/CondensedMultivaluesField.js +18 -25
  50. package/lib/components/PanelHeader/PanelHeader.js +6 -4
  51. package/lib/components/PanelHeader/PanelHeader.stories.js +5 -5
  52. package/lib/components/PanelHeader/PanelHeader.styles.js +2 -1
  53. package/lib/components/PanelHeader/stories/OnyxDarkPanelHeader.chromatic.stories.js +12 -0
  54. package/lib/components/PanelHeader/stories/OnyxPanelHeader.chromatic.stories.js +12 -0
  55. package/lib/components/PanelHeader/stories/OnyxPanelHeaderComponent.js +80 -0
  56. package/lib/styles/themeOverrides/nextGenDarkMode/variants/variants.js +8 -0
  57. package/lib/styles/themes/next-gen/convertedComponentList.js +1 -1
  58. package/lib/styles/themes/next-gen/customProperties/customSizes.js +1 -1
  59. package/lib/styles/themes/next-gen/next-gen.js +2 -0
  60. package/lib/styles/themes/next-gen/stories/OnyxInputPatterns.chromatic.stories.js +178 -0
  61. package/lib/styles/themes/next-gen/variants/box.js +49 -0
  62. package/lib/styles/themes/next-gen/variants/button.js +40 -4
  63. package/lib/styles/themes/next-gen/variants/input.js +21 -0
  64. package/lib/styles/themes/next-gen/variants/listview.js +0 -8
  65. package/lib/styles/themes/next-gen/variants/panelHeader.js +5 -3
  66. package/lib/styles/themes/next-gen/variants/switch.js +2 -2
  67. package/lib/styles/themes/next-gen/variants/text.js +8 -1
  68. package/lib/styles/themes/next-gen/variants/variants.js +2 -16
  69. package/package.json +1 -1
@@ -139,8 +139,20 @@ declare const buttons: {
139
139
  backgroundColor: string;
140
140
  borderColor: string;
141
141
  color: string;
142
+ '&.is-focused': {
143
+ outlineColor: string;
144
+ backgroundColor: string;
145
+ outline: string;
146
+ outlineOffset: string;
147
+ };
148
+ '&.is-pressed': {
149
+ backgroundColor: string;
150
+ color: string;
151
+ };
142
152
  '&.is-hovered': {
143
153
  boxShadow: string;
154
+ backgroundColor: string;
155
+ color: string;
144
156
  };
145
157
  alignItems: string;
146
158
  justifyContent: string;
@@ -164,11 +176,6 @@ declare const buttons: {
164
176
  '&.is-disabled': {
165
177
  opacity: number;
166
178
  };
167
- '&.is-focused': {
168
- outline: string;
169
- outlineColor: string;
170
- outlineOffset: string;
171
- };
172
179
  transition: string;
173
180
  };
174
181
  inverse: {
@@ -1184,6 +1191,47 @@ declare const buttons: {
1184
1191
  outlineOffset: string;
1185
1192
  };
1186
1193
  };
1194
+ passwordVisibilityIcon: {
1195
+ right: number;
1196
+ padding: string;
1197
+ border: string;
1198
+ '&:hover, &.is-pressed': {
1199
+ background: string;
1200
+ boxShadow: string;
1201
+ };
1202
+ '&.is-focused': {
1203
+ outline: string;
1204
+ outlineOffset: string;
1205
+ outlineColor: string;
1206
+ };
1207
+ position: string;
1208
+ top: string;
1209
+ transform: string;
1210
+ height: string;
1211
+ width: string;
1212
+ justifyContent: string;
1213
+ path: {
1214
+ fill: string;
1215
+ };
1216
+ '&.is-hovered': {
1217
+ backgroundColor: string;
1218
+ path: {
1219
+ fill: string;
1220
+ };
1221
+ };
1222
+ '&.is-pressed': {
1223
+ backgroundColor: string;
1224
+ path: {
1225
+ fill: string;
1226
+ };
1227
+ };
1228
+ p: string;
1229
+ transition: string;
1230
+ outline: string;
1231
+ borderRadius: string;
1232
+ cursor: string;
1233
+ boxShadow: string;
1234
+ };
1187
1235
  };
1188
1236
  modalCloseButton: {
1189
1237
  position: string;
@@ -1283,5 +1331,58 @@ declare const buttons: {
1283
1331
  outline: string;
1284
1332
  };
1285
1333
  };
1334
+ ButtonInputGroupContentRight: {
1335
+ right: number;
1336
+ padding: string;
1337
+ borderRadius: string;
1338
+ borderWidth: string;
1339
+ borderLeftWidth: string;
1340
+ borderRightWidth: string;
1341
+ borderLeftColor: string;
1342
+ position: string;
1343
+ top: string;
1344
+ transform: string;
1345
+ height: string;
1346
+ width: string;
1347
+ justifyContent: string;
1348
+ backgroundColor: string;
1349
+ borderColor: string;
1350
+ color: string;
1351
+ '&.is-focused': {
1352
+ outlineColor: string;
1353
+ backgroundColor: string;
1354
+ outline: string;
1355
+ outlineOffset: string;
1356
+ };
1357
+ '&.is-pressed': {
1358
+ backgroundColor: string;
1359
+ color: string;
1360
+ };
1361
+ '&.is-hovered': {
1362
+ boxShadow: string;
1363
+ backgroundColor: string;
1364
+ color: string;
1365
+ };
1366
+ alignItems: string;
1367
+ flexShrink: number;
1368
+ minWidth: string;
1369
+ cursor: string;
1370
+ display: string;
1371
+ maxWidth: string;
1372
+ fontFamily: string;
1373
+ fontSize: string;
1374
+ fontWeight: number;
1375
+ textAlign: string;
1376
+ verticalAlign: string;
1377
+ lineHeight: number;
1378
+ border: string;
1379
+ px: string;
1380
+ py: string;
1381
+ maxHeight: string;
1382
+ '&.is-disabled': {
1383
+ opacity: number;
1384
+ };
1385
+ transition: string;
1386
+ };
1286
1387
  };
1287
1388
  export default buttons;
@@ -18,6 +18,7 @@ var _chromaJs = _interopRequireDefault(require("chroma-js"));
18
18
  var _codeView = require("../codeView/codeView");
19
19
  var _colors = _interopRequireDefault(require("../colors/colors"));
20
20
  var _tShirtSizes = _interopRequireDefault(require("../customProperties/tShirtSizes"));
21
+ var _box = require("./box");
21
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; }
22
23
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
23
24
  var primaryBlue = _colors["default"].primary,
@@ -117,8 +118,19 @@ var secondary = _objectSpread(_objectSpread({}, buttonBase), {}, {
117
118
  var tertiary = _objectSpread(_objectSpread({}, buttonBase), {}, {
118
119
  backgroundColor: 'transparent',
119
120
  borderColor: 'border.base',
120
- color: 'text.secondary',
121
- '&.is-hovered': _objectSpread({}, boxShadowNone)
121
+ color: 'font.base',
122
+ '&.is-focused': _objectSpread(_objectSpread({}, defaultFocus), {}, {
123
+ outlineColor: 'gray-700',
124
+ backgroundColor: 'background.secondary'
125
+ }),
126
+ '&.is-pressed': {
127
+ backgroundColor: 'background.secondary',
128
+ color: 'font.base'
129
+ },
130
+ '&.is-hovered': _objectSpread({
131
+ backgroundColor: 'background.secondary',
132
+ color: 'font.base'
133
+ }, boxShadowNone)
122
134
  });
123
135
  var outlineCritical = _objectSpread(_objectSpread({}, buttonBase), {}, {
124
136
  backgroundColor: 'transparent',
@@ -508,7 +520,21 @@ var iconButtons = {
508
520
  }
509
521
  }
510
522
  }),
511
- hintButton: _objectSpread({}, hintButton)
523
+ hintButton: _objectSpread({}, hintButton),
524
+ passwordVisibilityIcon: _objectSpread(_objectSpread(_objectSpread({}, baseIconButton), _box.commonContentProps), {}, {
525
+ right: 0,
526
+ padding: '12px 20px',
527
+ border: '0px solid !important',
528
+ '&:hover, &.is-pressed': {
529
+ background: 'transparent',
530
+ boxShadow: 'none'
531
+ },
532
+ '&.is-focused': {
533
+ outline: '2px solid',
534
+ outlineOffset: '2px',
535
+ outlineColor: 'gray-700'
536
+ }
537
+ })
512
538
  };
513
539
  var listBoxLink = {
514
540
  color: 'active',
@@ -537,6 +563,15 @@ var listBoxLink = {
537
563
  }
538
564
  })
539
565
  };
566
+ var ButtonInputGroupContentRight = _objectSpread(_objectSpread(_objectSpread({}, tertiary), _box.commonContentProps), {}, {
567
+ right: 0,
568
+ padding: '12px 20px',
569
+ borderRadius: '0px 4px 4px 0px !important',
570
+ borderWidth: '0px !important',
571
+ borderLeftWidth: '1px !important',
572
+ borderRightWidth: '1px !important',
573
+ borderLeftColor: 'gray-500'
574
+ });
540
575
  var buttons = {
541
576
  neutral: neutral,
542
577
  primary: primary,
@@ -560,7 +595,8 @@ var buttons = {
560
595
  iconButtons: iconButtons,
561
596
  modalCloseButton: modalCloseButton,
562
597
  aiChat: aiChat,
563
- paginationMenu: paginationMenu
598
+ paginationMenu: paginationMenu,
599
+ ButtonInputGroupContentRight: ButtonInputGroupContentRight
564
600
  };
565
601
  var _default = buttons;
566
602
  exports["default"] = _default;
@@ -201,4 +201,25 @@ input.promptInputAttachmentWrapper = {
201
201
  overflowY: 'hidden',
202
202
  whiteSpace: 'nowrap',
203
203
  px: '.75rem'
204
+ };
205
+ input.dropDownContentRight = {
206
+ background: 'inherit',
207
+ '& button': {
208
+ borderRadius: '0px 4px 4px 0px !important',
209
+ '&.is-focused': {
210
+ outline: '2px solid',
211
+ outlineOffset: '2px',
212
+ outlineColor: 'gray-700'
213
+ }
214
+ }
215
+ };
216
+ input.dropDownContentLeft = {
217
+ '& button': {
218
+ borderRadius: '4px 0px 0px 4px !important',
219
+ '&.is-focused': {
220
+ outline: '2px solid',
221
+ outlineOffset: '2px',
222
+ outlineColor: 'gray-700'
223
+ }
224
+ }
204
225
  };
@@ -92,14 +92,6 @@ export declare const listViewItem: {
92
92
  border: string;
93
93
  };
94
94
  };
95
- editIcon: {
96
- width: string;
97
- height: string;
98
- };
99
- menuIcon: {
100
- width: string;
101
- height: string;
102
- };
103
95
  };
104
96
  export declare const listView: {
105
97
  container: {
@@ -100,14 +100,6 @@ var listViewItem = {
100
100
  '&.has-separator.is-last-row': {
101
101
  border: 'none'
102
102
  }
103
- },
104
- editIcon: {
105
- width: '1.5rem !important',
106
- height: '1.5rem !important'
107
- },
108
- menuIcon: {
109
- width: '1.5rem !important',
110
- height: '1.5rem !important'
111
103
  }
112
104
  };
113
105
  exports.listViewItem = listViewItem;
@@ -2,12 +2,14 @@ declare const _default: {
2
2
  container: {
3
3
  bg: string;
4
4
  border: string;
5
- minHeight: number;
6
- maxHeight: number;
5
+ pt: string;
6
+ px: string;
7
+ pb: string;
7
8
  };
8
9
  controls: {
10
+ gap: string;
9
11
  alignSelf: string;
10
- pt: string;
12
+ mr: string;
11
13
  };
12
14
  wrapper: {
13
15
  mr: string;
@@ -8,12 +8,14 @@ exports["default"] = void 0;
8
8
  var container = {
9
9
  bg: 'backgroundBase',
10
10
  border: 'none',
11
- minHeight: 72,
12
- maxHeight: 72
11
+ pt: 'lg',
12
+ px: 'lg',
13
+ pb: 'md'
13
14
  };
14
15
  var controls = {
16
+ gap: '12px',
15
17
  alignSelf: 'start',
16
- pt: 'xs'
18
+ mr: '0'
17
19
  };
18
20
  var wrapper = {
19
21
  mr: 'md'
@@ -14,7 +14,7 @@ export declare const switchable: {
14
14
  thumbContainer: {
15
15
  bg: string;
16
16
  border: string;
17
- maxWidth: number;
17
+ width: string;
18
18
  height: number;
19
19
  py: string;
20
20
  px: string;
@@ -9,7 +9,7 @@ var switchable = {
9
9
  container: {
10
10
  minWidth: '32px',
11
11
  color: 'neutral.80',
12
- bg: 'backgorund.base',
12
+ bg: 'background.base',
13
13
  border: '1px solid',
14
14
  borderColor: 'neutral.80',
15
15
  borderRadius: 9999,
@@ -21,7 +21,7 @@ var switchable = {
21
21
  thumbContainer: {
22
22
  bg: 'transparent',
23
23
  border: 'none',
24
- maxWidth: 24,
24
+ width: '32px',
25
25
  height: 16,
26
26
  py: '3px',
27
27
  px: '3px',
@@ -9,9 +9,10 @@ export declare const text: {
9
9
  textOverflow: string;
10
10
  overflow: string;
11
11
  whiteSpace: string;
12
+ color: string;
13
+ lineHeight: string;
12
14
  fontSize: string;
13
15
  fontWeight: number;
14
- color: string;
15
16
  fontFamily: string;
16
17
  };
17
18
  messagesText: {
@@ -24,6 +25,11 @@ export declare const text: {
24
25
  };
25
26
  };
26
27
  };
28
+ panelHeaderSubtext: {
29
+ fontSize: string;
30
+ lineHeight: string;
31
+ color: string;
32
+ };
27
33
  H1: {
28
34
  fontSize: string;
29
35
  fontWeight: number;
@@ -183,7 +183,9 @@ var text = _objectSpread(_objectSpread({
183
183
  panelHeaderText: _objectSpread(_objectSpread({}, hTags.h4), {}, {
184
184
  textOverflow: 'ellipsis',
185
185
  overflow: 'hidden',
186
- whiteSpace: 'nowrap'
186
+ whiteSpace: 'nowrap',
187
+ color: 'font.base',
188
+ lineHeight: 'xs'
187
189
  }),
188
190
  messagesText: {
189
191
  '&.is-success, &.is-warning, &.is-error, &.is-default': {
@@ -194,6 +196,11 @@ var text = _objectSpread(_objectSpread({
194
196
  color: 'gray-700'
195
197
  }
196
198
  }
199
+ },
200
+ panelHeaderSubtext: {
201
+ fontSize: 'md',
202
+ lineHeight: 'body',
203
+ color: 'font.light'
197
204
  }
198
205
  });
199
206
  exports.text = text;
@@ -168,6 +168,44 @@ declare const _default: {
168
168
  boxShadow: string;
169
169
  };
170
170
  };
171
+ inputDropDownContentLeft: {
172
+ left: number;
173
+ position: string;
174
+ top: string;
175
+ transform: string;
176
+ height: string;
177
+ width: string;
178
+ justifyContent: string;
179
+ };
180
+ inputGroupContentLeft: {
181
+ left: number;
182
+ borderRight: string;
183
+ position: string;
184
+ top: string;
185
+ transform: string;
186
+ height: string;
187
+ width: string;
188
+ justifyContent: string;
189
+ };
190
+ inputDropDownContentRight: {
191
+ right: number;
192
+ position: string;
193
+ top: string;
194
+ transform: string;
195
+ height: string;
196
+ width: string;
197
+ justifyContent: string;
198
+ };
199
+ inputGroupContentRight: {
200
+ right: number;
201
+ borderLeft: string;
202
+ position: string;
203
+ top: string;
204
+ transform: string;
205
+ height: string;
206
+ width: string;
207
+ justifyContent: string;
208
+ };
171
209
  };
172
210
  buttonBar: {
173
211
  container: {
@@ -620,14 +658,6 @@ declare const _default: {
620
658
  border: string;
621
659
  };
622
660
  };
623
- editIcon: {
624
- width: string;
625
- height: string;
626
- };
627
- menuIcon: {
628
- width: string;
629
- height: string;
630
- };
631
661
  };
632
662
  lisViewItemChart: {
633
663
  title: {
@@ -971,12 +1001,14 @@ declare const _default: {
971
1001
  container: {
972
1002
  bg: string;
973
1003
  border: string;
974
- minHeight: number;
975
- maxHeight: number;
1004
+ pt: string;
1005
+ px: string;
1006
+ pb: string;
976
1007
  };
977
1008
  controls: {
1009
+ gap: string;
978
1010
  alignSelf: string;
979
- pt: string;
1011
+ mr: string;
980
1012
  };
981
1013
  wrapper: {
982
1014
  mr: string;
@@ -19,9 +19,9 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/he
19
19
  var _Attachment = _interopRequireDefault(require("../../../../components/AIComponents/Attachment/Attachment.styles"));
20
20
  var _Skeleton = _interopRequireDefault(require("../../../../components/Skeleton/Skeleton.styles"));
21
21
  var _codeView = _interopRequireDefault(require("../codeView/codeView"));
22
- var _colors = _interopRequireDefault(require("../colors/colors"));
23
22
  var _accordion = _interopRequireDefault(require("./accordion"));
24
23
  var _avatar = require("./avatar");
24
+ var _box = require("./box");
25
25
  var _button = _interopRequireWildcard(require("./button"));
26
26
  var _callout = _interopRequireDefault(require("./callout"));
27
27
  var _dataTable = require("./dataTable");
@@ -394,21 +394,7 @@ var _default = {
394
394
  attachment: _Attachment["default"],
395
395
  avatar: _avatar.avatar,
396
396
  breadcrumb: breadcrumb,
397
- box: {
398
- indeterminateCheckboxIcon: {
399
- height: '19.25px',
400
- width: '19.25px',
401
- '&.is-disabled': {
402
- '& rect[id="indeterminate-checkbox-icon-wrapper"]': {
403
- fill: 'gray-500',
404
- stroke: 'gray-500'
405
- }
406
- },
407
- '&.is-focused': {
408
- boxShadow: "inset 0px 0px 0px 1px ".concat(_colors["default"].focus)
409
- }
410
- }
411
- },
397
+ box: _box.box,
412
398
  buttonBar: buttonBar,
413
399
  callout: _callout["default"],
414
400
  codeView: _codeView["default"],
@@ -17,4 +17,6 @@ export interface IconButtonToggleProps extends TestingAttributes {
17
17
  onToggle?: () => void;
18
18
  /** Content will be displayed in a tooltip on hover or focus. */
19
19
  title?: string;
20
+ /** The styling variation of the element. */
21
+ variant?: string;
20
22
  }
@@ -42,7 +42,8 @@ var Avatar = /*#__PURE__*/forwardRef(function (props, ref) {
42
42
  sx: _objectSpread({
43
43
  size: size,
44
44
  width: sizes.avatar[size],
45
- height: sizes.avatar[size]
45
+ height: sizes.avatar[size],
46
+ borderRadius: isSquare ? '0px' : '100%'
46
47
  }, sx)
47
48
  }, others));
48
49
  }
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
2
2
  import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
3
3
  import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectWithoutProperties";
4
4
  import _styled from "@emotion/styled/base";
5
- var _excluded = ["as", "flexDirection", "gap", "isRow", "isDisabled", "className", "fontSize", "sx"];
5
+ var _excluded = ["as", "flexDirection", "gap", "isRow", "isDisabled", "className", "fontSize", "sx", "variant"];
6
6
  import _Number$isNaN from "@babel/runtime-corejs3/core-js-stable/number/is-nan";
7
7
  import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
8
8
  import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
@@ -25,7 +25,7 @@ var ExtendedBox = /*#__PURE__*/_styled(ThemeUIBox, process.env.NODE_ENV === "pro
25
25
  } : {
26
26
  target: "ejf9h0h0",
27
27
  label: "ExtendedBox"
28
- })(layout, flexbox, typography, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0JveC9Cb3gudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVNvQiIsImZpbGUiOiIuLi8uLi8uLi9zcmMvY29tcG9uZW50cy9Cb3gvQm94LnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCwgeyBmb3J3YXJkUmVmLCB1c2VNZW1vIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IHsgdG9OdW1iZXIgfSBmcm9tICdsb2Rhc2gnO1xuaW1wb3J0IHsgZmxleGJveCw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m5vdCg6Zmlyc3Qtb2YtdHlwZSB+ICopKSddID0ge1xuICAgICAgW2ZkID09PSAncm93JyA/ICdtYXJnaW5MZWZ0JyA6ICdtYXJnaW5Ub3AnXTogZ2FwLFxuICAgIH07XG4gIH1cblxuICBjb25zdCBjdXN0b21Gb250U2l6ZSA9IHVzZU1lbW8oKCkgPT4ge1xuICAgIGNvbnN0IG51bWVyaWNhbEZvbnRTaXplID0gdG9OdW1iZXIoZm9udFNpemUpO1xuICAgIGlmIChOdW1iZXIuaXNOYU4obnVtZXJpY2FsRm9udFNpemUpKSB7XG4gICAgICByZXR1cm4gZm9udFNpemU7XG4gICAgfVxuICAgIHJldHVybiBudW1lcmljYWxGb250U2l6ZTtcbiAgfSwgW2ZvbnRTaXplXSk7XG5cbiAgcmV0dXJuIChcbiAgICA8RXh0ZW5kZWRCb3hcbiAgICAgIGNsYXNzTmFtZT17Y2xhc3NOYW1lc31cbiAgICAgIHJlZj17cmVmfVxuICAgICAgZGlzcGxheT1cImZsZXhcIlxuICAgICAgZmxleERpcmVjdGlvbj17ZmR9XG4gICAgICB2YXJpYW50PVwiYm94LmJhc2VcIlxuICAgICAgZm9udFNpemU9e2N1c3RvbUZvbnRTaXplfVxuICAgICAgYXM9e2FzfVxuICAgICAgey4uLm90aGVyc31cbiAgICAgIHN4PXtjdXN0b219XG4gICAgLz5cbiAgKTtcbn0pO1xuXG5Cb3guZGlzcGxheU5hbWUgPSAnQm94JztcblxuZXhwb3J0IGRlZmF1bHQgQm94O1xuIl19 */");
28
+ })(layout, flexbox, typography, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0JveC9Cb3gudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVNvQiIsImZpbGUiOiIuLi8uLi8uLi9zcmMvY29tcG9uZW50cy9Cb3gvQm94LnRz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29
29
  var Box = /*#__PURE__*/forwardRef(function (props, ref) {
30
30
  var _props$as = props.as,
31
31
  as = _props$as === void 0 ? 'div' : _props$as,
@@ -38,6 +38,8 @@ var Box = /*#__PURE__*/forwardRef(function (props, ref) {
38
38
  className = props.className,
39
39
  fontSize = props.fontSize,
40
40
  sx = props.sx,
41
+ _props$variant = props.variant,
42
+ variant = _props$variant === void 0 ? 'box.base' : _props$variant,
41
43
  others = _objectWithoutProperties(props, _excluded);
42
44
  var fd = flexDirection || isRow ? 'row' : 'column';
43
45
  var custom = _objectSpread({}, sx);
@@ -61,7 +63,7 @@ var Box = /*#__PURE__*/forwardRef(function (props, ref) {
61
63
  ref: ref,
62
64
  display: "flex",
63
65
  flexDirection: fd,
64
- variant: "box.base",
66
+ variant: variant,
65
67
  fontSize: customFontSize,
66
68
  as: as
67
69
  }, others, {
@@ -11,7 +11,8 @@ var IconButtonToggle = /*#__PURE__*/forwardRef(function (props, ref) {
11
11
  iconProps = props.iconProps,
12
12
  isToggled = props.isToggled,
13
13
  onToggle = props.onToggle,
14
- title = props.title;
14
+ title = props.title,
15
+ variant = props.variant;
15
16
  var conditionalRenderProps = {
16
17
  ComponentToRenderIfTrue: toggledIcon,
17
18
  ComponentToRenderIfFalse: defaultIcon,
@@ -24,7 +25,8 @@ var IconButtonToggle = /*#__PURE__*/forwardRef(function (props, ref) {
24
25
  return ___EmotionJSX(IconButton, _extends({
25
26
  onPress: handleConditionChange,
26
27
  ref: ref,
27
- title: title
28
+ title: title,
29
+ variant: variant
28
30
  }, buttonProps), ___EmotionJSX(Icon, _extends({
29
31
  icon: RenderedComponent
30
32
  }, iconProps)));
@@ -148,14 +148,6 @@ var expandableRow = {
148
148
  var expandIcon = {
149
149
  color: 'gray-900'
150
150
  };
151
- var editIcon = {
152
- width: '25px !important',
153
- height: '25px !important'
154
- };
155
- var menuIcon = {
156
- width: '25px !important',
157
- height: '25px !important'
158
- };
159
151
  export default {
160
152
  container: container,
161
153
  controls: controls,
@@ -171,7 +163,5 @@ export default {
171
163
  expandableItemBody: expandableItemBody,
172
164
  expandableStyledListItem: expandableStyledListItem,
173
165
  expandableRow: expandableRow,
174
- expandIcon: expandIcon,
175
- editIcon: editIcon,
176
- menuIcon: menuIcon
166
+ expandIcon: expandIcon
177
167
  };
@@ -17,7 +17,7 @@ var ListViewItemEditButton = /*#__PURE__*/forwardRef(function (props, ref) {
17
17
  ml: "sm"
18
18
  }, ___EmotionJSX(IconButton, props, ___EmotionJSX(Icon, {
19
19
  icon: CreateIcon,
20
- variant: "listViewItem.editIcon"
20
+ size: "md"
21
21
  })));
22
22
  });
23
23
  ListViewItemEditButton.propTypes = iconButtonPropTypes;
@@ -26,7 +26,7 @@ var ListViewItemMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
26
26
  ref: ref
27
27
  }, iconButtonProps), ___EmotionJSX(Icon, {
28
28
  icon: listViewMenu,
29
- variant: "listViewItem.menuIcon",
29
+ size: "md",
30
30
  title: {
31
31
  name: 'Menu Icon'
32
32
  }
@@ -55,4 +55,8 @@ These keys provide additional functionality to the component.
55
55
  This component uses the following attributes to assist screen readers:
56
56
  - The button uses the **`aria-label`** attribute to provide an accessible name.
57
57
  - The **`aria-labelledby`** attribute is supplied with label ID.
58
- - The **`aria-modal`** attribute allows the assistive technologies to inform users that the ability to interact with or access other content on the page requires the modal dialog to be closed.
58
+ - The **`aria-modal`** attribute allows the assistive technologies to inform users that the ability to interact with or access other content on the page requires the modal dialog to be closed.
59
+
60
+ #### Note
61
+
62
+ AutoFocus is not enabled by default. To ensure accessibility and expected keyboard navigation support set the `hasAutoFocus` prop to true.
@@ -84,7 +84,8 @@ export default {
84
84
  }
85
85
  },
86
86
  args: {
87
- hasCloseButton: true
87
+ hasCloseButton: true,
88
+ hasAutoFocus: true
88
89
  }
89
90
  };
90
91
  export var Default = function Default(args) {
@@ -176,7 +177,8 @@ export var WithInputField = function WithInputField() {
176
177
  "aria-label": "Open modal"
177
178
  }, "Open Modal"), state.isOpen && ___EmotionJSX(Modal, {
178
179
  isOpen: state.isOpen,
179
- onClose: state.close
180
+ onClose: state.close,
181
+ hasAutoFocus: true
180
182
  }, ___EmotionJSX(Box, {
181
183
  gap: "lg"
182
184
  }, ___EmotionJSX(Text, null, "Lorem ipsum dolor sit amet consectetur"), ___EmotionJSX(SelectField, {