@pingux/astro 1.25.1-alpha.1 → 1.25.1-alpha.10

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.
@@ -280,5 +280,24 @@ test('adds focus to inputs', function () {
280
280
  _userEvent["default"].click(secondInput);
281
281
 
282
282
  expect(firstInput).not.toHaveFocus();
283
+ expect(secondInput).toHaveFocus();
284
+ });
285
+ test('adds focus to input on a single click after onBlur', function () {
286
+ getComponentWithTextFields();
287
+
288
+ var firstInput = _testWrapper.screen.getAllByRole('gridcell')[0];
289
+
290
+ var secondInput = _testWrapper.screen.getAllByRole('gridcell')[1];
291
+
292
+ expect(secondInput).not.toHaveFocus();
293
+
294
+ _userEvent["default"].click(firstInput);
295
+
296
+ _userEvent["default"].click(secondInput);
297
+
298
+ secondInput.blur();
299
+
300
+ _userEvent["default"].click(secondInput);
301
+
283
302
  expect(secondInput).toHaveFocus();
284
303
  });
@@ -90,7 +90,6 @@ var AccordionGridItemBody = /*#__PURE__*/(0, _react.forwardRef)(function (props,
90
90
  var ariaLabel = props['aria-label'];
91
91
  delete mergedProps.onMouseDown;
92
92
  delete mergedProps.onPointerDown;
93
- delete mergedProps.onClick;
94
93
  return (0, _react2.jsx)(_Box["default"], (0, _extends2["default"])({
95
94
  as: "div",
96
95
  variant: "accordion.accordionGridBody",
@@ -28,6 +28,8 @@ _Object$defineProperty(exports, "__esModule", {
28
28
 
29
29
  exports["default"] = void 0;
30
30
 
31
+ var _values = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/object/values"));
32
+
31
33
  var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
32
34
 
33
35
  var _find = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/find"));
@@ -70,6 +72,10 @@ var _isIterable = require("../../utils/devUtils/props/isIterable");
70
72
 
71
73
  var _hooks = require("../../hooks");
72
74
 
75
+ var _statuses = _interopRequireDefault(require("../../utils/devUtils/constants/statuses"));
76
+
77
+ var _FieldHelperText = _interopRequireDefault(require("../FieldHelperText"));
78
+
73
79
  var _react2 = require("@emotion/react");
74
80
 
75
81
  function _getRequireWildcardCache(nodeInterop) { if (typeof _WeakMap !== "function") return null; var cacheBabelInterop = new _WeakMap(); var cacheNodeInterop = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -96,8 +102,10 @@ var MultivaluesField = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref)
96
102
  direction = props.direction,
97
103
  _props$disabledKeys = props.disabledKeys,
98
104
  disabledKeys = _props$disabledKeys === void 0 ? [] : _props$disabledKeys,
105
+ containerProps = props.containerProps,
99
106
  hasAutoFocus = props.hasAutoFocus,
100
107
  hasNoStatusIndicator = props.hasNoStatusIndicator,
108
+ helperText = props.helperText,
101
109
  customInputProps = props.inputProps,
102
110
  isDisabled = props.isDisabled,
103
111
  isNotFlippable = props.isNotFlippable,
@@ -117,7 +125,8 @@ var MultivaluesField = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref)
117
125
  _props$readOnlyKeys = props.readOnlyKeys,
118
126
  readOnlyKeys = _props$readOnlyKeys === void 0 ? [] : _props$readOnlyKeys,
119
127
  selectedKeys = props.selectedKeys,
120
- scrollBoxProps = props.scrollBoxProps;
128
+ scrollBoxProps = props.scrollBoxProps,
129
+ status = props.status;
121
130
  var hasCustomValue = mode === 'non-restrictive';
122
131
  (0, _hooks.usePropWarning)(props, 'disabled', 'isDisabled');
123
132
 
@@ -395,10 +404,11 @@ var MultivaluesField = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref)
395
404
  wrapperProps: {
396
405
  ref: inputRef,
397
406
  variant: 'forms.input.multivaluesWrapper'
398
- }
407
+ },
408
+ status: status
399
409
  });
400
410
 
401
- return (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)(_.TextField, (0, _extends2["default"])({
411
+ return (0, _react2.jsx)(_.Box, containerProps, (0, _react2.jsx)(_.TextField, (0, _extends2["default"])({
402
412
  onBlur: function onBlur(e) {
403
413
  setIsOpen(false);
404
414
  if (_onBlur) _onBlur(e.nativeEvent);
@@ -420,7 +430,9 @@ var MultivaluesField = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref)
420
430
  beforeInput: (0, _react2.jsx)(_react["default"].Fragment, null, readOnlyItems, " ", selectedItems)
421
431
  },
422
432
  value: filterString
423
- }, inputProps)), (0, _react2.jsx)(_.PopoverContainer, {
433
+ }, inputProps)), helperText && (0, _react2.jsx)(_FieldHelperText["default"], {
434
+ status: status
435
+ }, helperText), (0, _react2.jsx)(_.PopoverContainer, {
424
436
  ref: popoverRef,
425
437
  hasNoArrow: true,
426
438
  isNonModal: true,
@@ -430,6 +442,9 @@ var MultivaluesField = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref)
430
442
  }, listbox));
431
443
  });
432
444
  MultivaluesField.propTypes = {
445
+ /** Props object that is spread directly into the root (top-level) Box component. */
446
+ containerProps: _propTypes["default"].shape({}),
447
+
433
448
  /** The initial selected keys in the collection (uncontrolled). */
434
449
  defaultSelectedKeys: _isIterable.isIterableProp,
435
450
 
@@ -447,6 +462,9 @@ MultivaluesField.propTypes = {
447
462
  /** Whether the field has a status indicator. */
448
463
  hasNoStatusIndicator: _propTypes["default"].bool,
449
464
 
465
+ /** Text rendered below the input. */
466
+ helperText: _propTypes["default"].node,
467
+
450
468
  /**
451
469
  * Props that get passed as-is to the underlying TextField element
452
470
  */
@@ -545,14 +563,18 @@ MultivaluesField.propTypes = {
545
563
  /** @ignore */
546
564
  scrollBoxProps: _propTypes["default"].shape({
547
565
  maxHeight: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].object, _propTypes["default"].number])
548
- })
566
+ }),
567
+
568
+ /** Determines the input status indicator and helper text styling. */
569
+ status: _propTypes["default"].oneOf((0, _values["default"])(_statuses["default"]))
549
570
  };
550
571
  MultivaluesField.defaultProps = {
551
572
  direction: 'bottom',
552
573
  mode: 'restrictive',
553
574
  scrollBoxProps: {
554
575
  maxHeight: 300
555
- }
576
+ },
577
+ status: _statuses["default"].DEFAULT
556
578
  };
557
579
  var _default = MultivaluesField;
558
580
  exports["default"] = _default;
@@ -14,7 +14,7 @@ _Object$defineProperty(exports, "__esModule", {
14
14
  value: true
15
15
  });
16
16
 
17
- exports["default"] = exports.WithReadOnlyValues = exports.WithDisabledKeys = exports.WithCustomValues = exports.WithCustomSize = exports.Uncontrolled = exports.Default = exports.Controlled = void 0;
17
+ exports["default"] = exports.WithReadOnlyValues = exports.WithDisabledKeys = exports.WithCustomValues = exports.WithCustomSize = exports.Uncontrolled = exports.Error = exports.Default = exports.Controlled = void 0;
18
18
 
19
19
  var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
20
20
 
@@ -24,6 +24,8 @@ var _react = _interopRequireWildcard(require("react"));
24
24
 
25
25
  var _ = require("../..");
26
26
 
27
+ var _statuses = _interopRequireDefault(require("../../utils/devUtils/constants/statuses"));
28
+
27
29
  var _react2 = require("@emotion/react");
28
30
 
29
31
  function _getRequireWildcardCache(nodeInterop) { if (typeof _WeakMap !== "function") return null; var cacheBabelInterop = new _WeakMap(); var cacheNodeInterop = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -67,6 +69,18 @@ var _default = {
67
69
  control: {
68
70
  type: 'none'
69
71
  }
72
+ },
73
+ status: {
74
+ control: {
75
+ type: 'select',
76
+ options: _statuses["default"]
77
+ },
78
+ defaultValue: _statuses["default"].DEFAULT
79
+ },
80
+ helperText: {
81
+ control: {
82
+ type: 'text'
83
+ }
70
84
  }
71
85
  },
72
86
  parameters: {
@@ -354,4 +368,34 @@ var WithReadOnlyValues = function WithReadOnlyValues(args) {
354
368
  }));
355
369
  };
356
370
 
357
- exports.WithReadOnlyValues = WithReadOnlyValues;
371
+ exports.WithReadOnlyValues = WithReadOnlyValues;
372
+
373
+ var Error = function Error(args) {
374
+ var _useState17 = (0, _react.useState)(false),
375
+ _useState18 = (0, _slicedToArray2["default"])(_useState17, 2),
376
+ isOpen = _useState18[0],
377
+ setIsOpen = _useState18[1];
378
+
379
+ var direction = args.direction;
380
+
381
+ var onOpenChange = function onOpenChange() {
382
+ setIsOpen(true);
383
+ };
384
+
385
+ return (0, _react2.jsx)(_.OverlayProvider // note: spacing for demo purpose only so that the select list renders in the correct place
386
+ , {
387
+ style: setOverlayStyle(direction, isOpen, '50%', '50%', '20%')
388
+ }, (0, _react2.jsx)(_.MultivaluesField, (0, _extends2["default"])({}, args, {
389
+ items: items,
390
+ helperText: "Here is some helpful text...",
391
+ status: "error",
392
+ onOpenChange: onOpenChange
393
+ }), function (item) {
394
+ return (0, _react2.jsx)(_.Item, {
395
+ key: item.key,
396
+ "data-id": item.name
397
+ }, item.name);
398
+ }));
399
+ };
400
+
401
+ exports.Error = Error;
@@ -18,6 +18,8 @@ var _index = require("../../index");
18
18
 
19
19
  var _testWrapper = require("../../utils/testUtils/testWrapper");
20
20
 
21
+ var _statuses = _interopRequireDefault(require("../../utils/devUtils/constants/statuses"));
22
+
21
23
  var _react2 = require("@emotion/react");
22
24
 
23
25
  var items = [{
@@ -479,4 +481,16 @@ test('read only keys', function () {
479
481
  expect(secondChip).toBeInTheDocument();
480
482
  var deleteButton2 = firstChip.nextSibling;
481
483
  expect(deleteButton2).toBeNull();
484
+ });
485
+ test(' multivalue field with helper text', function () {
486
+ var helperText = 'helper text';
487
+ getComponent({
488
+ helperText: helperText,
489
+ status: _statuses["default"].ERROR
490
+ });
491
+
492
+ var helper = _testWrapper.screen.getByText(helperText);
493
+
494
+ expect(helper).toBeInTheDocument();
495
+ expect(helper).toHaveClass("is-".concat(_statuses["default"].ERROR));
482
496
  });
@@ -61,7 +61,7 @@ function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (
61
61
  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; }
62
62
 
63
63
  /**
64
- * PopoverContainer component used for popover on SelectField, ComboBox, and PopoverMenu.
64
+ * PopoverContainer component used for popover on SelectField, ComboBox & PopoverMenu.
65
65
  */
66
66
  var PopoverContainer = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
67
67
  var children = props.children,
@@ -26,6 +26,8 @@ var _focus = require("@react-aria/focus");
26
26
 
27
27
  var _collections = require("@react-stately/collections");
28
28
 
29
+ var _AccountIcon = _interopRequireDefault(require("mdi-react/AccountIcon"));
30
+
29
31
  var _CloseIcon = _interopRequireDefault(require("mdi-react/CloseIcon"));
30
32
 
31
33
  var _MoreVertIcon = _interopRequireDefault(require("mdi-react/MoreVertIcon"));
@@ -52,7 +54,8 @@ var items = [{
52
54
  email: 'dburkitt5@columbia.edu',
53
55
  firstName: 'Nicola',
54
56
  lastName: 'Burkitt',
55
- avatar: _images.pingImg
57
+ hasIcon: true,
58
+ avatar: _AccountIcon["default"]
56
59
  }, {
57
60
  email: 'idixie2@elegantthemes.com',
58
61
  firstName: 'Cacilia',
@@ -67,52 +70,62 @@ var items = [{
67
70
  email: 'jgolde8@jimdo.com',
68
71
  firstName: 'Celisse',
69
72
  lastName: 'Golde',
70
- avatar: _images.pingImg
73
+ hasIcon: true,
74
+ avatar: _AccountIcon["default"]
71
75
  }, {
72
76
  email: 'shearst9@answers.com',
73
77
  firstName: 'Jeth',
74
78
  lastName: 'Hearst',
75
- avatar: _images.pingImg
79
+ hasIcon: true,
80
+ avatar: _AccountIcon["default"]
76
81
  }, {
77
82
  email: 'ajinaa@mapquest.com',
78
83
  firstName: 'Kaycee',
79
84
  lastName: 'Jina',
80
- avatar: _images.pingImg
85
+ hasIcon: true,
86
+ avatar: _AccountIcon["default"]
81
87
  }, {
82
88
  email: 'vmalster4@biblegateway.com',
83
89
  firstName: 'Lorry',
84
90
  lastName: 'Malster',
85
- avatar: _images.pingImg
91
+ hasIcon: true,
92
+ avatar: _AccountIcon["default"]
86
93
  }, {
87
94
  email: 'yphipp6@yellowpages.com',
88
95
  firstName: 'Stanley',
89
96
  lastName: 'Phipp',
90
- avatar: _images.pingImg
97
+ hasIcon: true,
98
+ avatar: _AccountIcon["default"]
91
99
  }, {
92
100
  email: 'mskilbeck3@bbc.co.uk',
93
101
  firstName: 'Gradey',
94
102
  lastName: 'Skilbeck',
95
- avatar: _images.pingImg
103
+ hasIcon: true,
104
+ avatar: _AccountIcon["default"]
96
105
  }, {
97
106
  email: 'dstebbing1@msu.edu',
98
107
  firstName: 'Marnia',
99
108
  lastName: 'Stebbing',
100
- avatar: _images.pingImg
109
+ hasIcon: true,
110
+ avatar: _AccountIcon["default"]
101
111
  }, {
102
112
  email: 'lsterley7@lulu.com',
103
113
  firstName: 'Joshua',
104
114
  lastName: 'Sterley',
105
- avatar: _images.pingImg
115
+ hasIcon: true,
116
+ avatar: _AccountIcon["default"]
106
117
  }, {
107
118
  email: 'luttleyb@hugedomains.com',
108
119
  firstName: 'Jarrod',
109
120
  lastName: 'Uttley',
110
- avatar: _images.pingImg
121
+ hasIcon: true,
122
+ avatar: _AccountIcon["default"]
111
123
  }, {
112
124
  email: 'lidelc@yelp.com',
113
125
  firstName: 'Andromache',
114
126
  lastName: 'Idel',
115
- avatar: _images.pingImg,
127
+ hasIcon: true,
128
+ avatar: _AccountIcon["default"],
116
129
  hasSeparator: false
117
130
  }];
118
131
 
@@ -126,7 +139,13 @@ var ListElement = function ListElement(_ref) {
126
139
  isRow: true,
127
140
  mr: "auto",
128
141
  alignItems: "center"
129
- }, (0, _react2.jsx)(_index.Avatar, {
142
+ }, item.hasIcon ? (0, _react2.jsx)(_index.Icon, {
143
+ icon: item.avatar,
144
+ alignSelf: "center",
145
+ size: 24,
146
+ mr: "sm",
147
+ color: "accent.40"
148
+ }) : (0, _react2.jsx)(_index.Avatar, {
130
149
  mr: "md",
131
150
  sx: {
132
151
  width: '25px',
@@ -205,8 +224,11 @@ var Default = function Default() {
205
224
  return (0, _react2.jsx)(_index.Box, {
206
225
  px: "lg",
207
226
  py: "lg",
208
- bg: "accent.99"
227
+ bg: "accent.99",
228
+ height: "900px",
229
+ overflowY: "scroll"
209
230
  }, (0, _react2.jsx)(_index.SearchField, {
231
+ position: "fixed",
210
232
  mb: "sm",
211
233
  width: "400px",
212
234
  placeholder: "Search",
@@ -262,6 +284,7 @@ var Default = function Default() {
262
284
  }, (0, _react2.jsx)(_index.Tab, {
263
285
  title: "Profile"
264
286
  }, selectedItemId >= 0 && (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)(_index.IconButton, {
287
+ variant: "inverted",
265
288
  sx: {
266
289
  position: 'absolute',
267
290
  top: 0,
@@ -10,6 +10,8 @@ _Object$defineProperty(exports, "__esModule", {
10
10
 
11
11
  exports["default"] = exports.Default = void 0;
12
12
 
13
+ var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
14
+
13
15
  var _react = _interopRequireDefault(require("react"));
14
16
 
15
17
  var _DragVerticalIcon = _interopRequireDefault(require("mdi-react/DragVerticalIcon"));
@@ -40,42 +42,52 @@ var items = [{
40
42
  }];
41
43
 
42
44
  var Default = function Default() {
43
- var CustomOnSvg = function CustomOnSvg() {
44
- return (0, _react2.jsx)("svg", {
45
- width: "24",
46
- height: "24",
47
- viewBox: "0 0 24 24",
45
+ var CustomOnSvg = function CustomOnSvg(props) {
46
+ return (0, _react2.jsx)("svg", (0, _extends2["default"])({
47
+ width: "16",
48
+ height: "16",
49
+ viewBox: "0 0 16 16",
48
50
  fill: "none",
49
51
  xmlns: "http://www.w3.org/2000/svg"
50
- }, (0, _react2.jsx)("path", {
51
- d: "M8 10V13H14V18H8V21L2 15.5L8 10Z",
52
- fill: "#CACED3"
53
- }), (0, _react2.jsx)("path", {
54
- d: "M9.83325 10.6251V6.37511H15.4999V2.94678L21.0533 8.50011L15.4999 14.0534V10.6251H9.83325Z",
55
- fill: "#4462ED"
52
+ }, props), (0, _react2.jsx)("path", {
53
+ d: "M5.33325 6.66666V8.66666H9.33325V12H5.33325V14L1.33325 10.3333L5.33325 6.66666Z",
54
+ fill: "currentColor"
56
55
  }), (0, _react2.jsx)("path", {
57
- d: "M8 10V13H14V18H8V21L2 15.5L8 10ZM22 8.5L16 3V6H10V11H16V14L22 8.5Z",
58
- fill: "#515F6B"
56
+ d: "M14.6666 5.66667L10.6666 2V4H6.66658V7.33333H10.6666V9.33333L14.6666 5.66667Z",
57
+ fill: "currentColor"
59
58
  }));
60
59
  };
61
60
 
62
- var CustomOffSvg = function CustomOffSvg() {
63
- return (0, _react2.jsx)("svg", {
64
- width: "24",
65
- height: "24",
66
- viewBox: "0 0 24 24",
61
+ var CustomOffSvg = function CustomOffSvg(props) {
62
+ return (0, _react2.jsx)("svg", (0, _extends2["default"])({
63
+ width: "16",
64
+ height: "16",
65
+ viewBox: "0 0 16 16",
67
66
  fill: "none",
68
67
  xmlns: "http://www.w3.org/2000/svg"
69
- }, (0, _react2.jsx)("path", {
70
- d: "M8 10V13H14V18H8V21L2 15.5L8 10Z",
68
+ }, props), (0, _react2.jsx)("path", {
69
+ d: "M5.33325 6.66667V8.66667H9.33325V12H5.33325V14L1.33325 10.3333L5.33325 6.66667Z",
71
70
  fill: "#CACED3"
72
71
  }), (0, _react2.jsx)("path", {
73
- d: "M9.83331 10.6251V6.37511H15.5V2.94678L21.0533 8.50011L15.5 14.0534V10.6251H9.83331Z",
74
- fill: "#4462ED"
72
+ d: "M14.6666 5.66667L10.6666 2V4H6.66658V7.33333H10.6666V9.33333L14.6666 5.66667Z",
73
+ fill: "currentColor"
74
+ }));
75
+ };
76
+
77
+ var CustomRightSvg = function CustomRightSvg(props) {
78
+ return (0, _react2.jsx)("svg", (0, _extends2["default"])({
79
+ width: "8",
80
+ height: "8",
81
+ viewBox: "0 0 8 8",
82
+ fill: "none",
83
+ xmlns: "http://www.w3.org/2000/svg"
84
+ }, props), (0, _react2.jsx)("path", {
85
+ d: "M8 4L4 0V2.18182H0V5.81818H4V8L8 4Z",
86
+ fill: "currentColor"
75
87
  }));
76
88
  };
77
89
 
78
- return (0, _react2.jsx)(_Box["default"], {
90
+ return (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)(_Box["default"], {
79
91
  sx: {
80
92
  alignItems: 'center'
81
93
  },
@@ -104,8 +116,7 @@ var Default = function Default() {
104
116
  }, item.name);
105
117
  }), (0, _react2.jsx)(_Box["default"], {
106
118
  sx: {
107
- ml: '5px',
108
- mr: '5px',
119
+ mx: 'sm',
109
120
  flexShrink: 0
110
121
  }
111
122
  }, (0, _react2.jsx)(_index.IconButtonToggle, {
@@ -113,10 +124,10 @@ var Default = function Default() {
113
124
  defaultIcon: CustomOffSvg,
114
125
  title: "Bidirectional/ Outbound toggle",
115
126
  iconProps: {
116
- size: 20
127
+ size: 16
117
128
  },
118
129
  buttonProps: {
119
- variant: 'svgIconButton'
130
+ variant: 'bidirectionalIconButton'
120
131
  }
121
132
  })), (0, _react2.jsx)(_index.ComboBoxField, {
122
133
  items: items,
@@ -142,19 +153,103 @@ var Default = function Default() {
142
153
  marginLeft: '12px',
143
154
  marginRight: '12px'
144
155
  }
145
- }, (0, _react2.jsx)(_index.IconButton, null, (0, _react2.jsx)(_index.Icon, {
156
+ }, (0, _react2.jsx)(_index.IconButton, {
157
+ "aria-label": "Edit"
158
+ }, (0, _react2.jsx)(_index.Icon, {
159
+ icon: _CogsIcon["default"],
160
+ color: "neutral.30",
161
+ size: 20,
162
+ title: "edit icon"
163
+ })), (0, _react2.jsx)(_index.IconButton, {
164
+ ml: "5px",
165
+ "aria-label": "Delete"
166
+ }, (0, _react2.jsx)(_index.Icon, {
167
+ icon: _DeleteIcon["default"],
168
+ color: "neutral.30",
169
+ size: 20,
170
+ title: "delete icon"
171
+ })))), (0, _react2.jsx)(_Box["default"], {
172
+ sx: {
173
+ alignItems: 'center'
174
+ },
175
+ isRow: true
176
+ }, (0, _react2.jsx)(_index.Icon, {
177
+ icon: _DragVerticalIcon["default"],
178
+ size: 25,
179
+ color: "neutral.50"
180
+ }), (0, _react2.jsx)(_index.ComboBoxField, {
181
+ items: items,
182
+ defaultSelectedKey: "Last Name",
183
+ containerProps: {
184
+ width: '275px'
185
+ },
186
+ labelProps: {
187
+ mb: 0
188
+ },
189
+ "aria-label": "Row one value",
190
+ controlProps: {
191
+ 'aria-label': 'test'
192
+ }
193
+ }, function (item) {
194
+ return (0, _react2.jsx)(_index.Item, {
195
+ key: item.name,
196
+ "data-id": item.name
197
+ }, item.name);
198
+ }), (0, _react2.jsx)(_Box["default"], {
199
+ sx: {
200
+ mx: 'sm',
201
+ flexShrink: 0
202
+ }
203
+ }, (0, _react2.jsx)(_index.IconButtonToggle, {
204
+ toggledIcon: CustomRightSvg,
205
+ defaultIcon: CustomRightSvg,
206
+ title: "This attribute does not support write-back.",
207
+ iconProps: {
208
+ size: 8
209
+ },
210
+ buttonProps: {
211
+ variant: 'bidirectionalIconButton'
212
+ }
213
+ })), (0, _react2.jsx)(_index.ComboBoxField, {
214
+ items: items,
215
+ defaultSelectedKey: "First Name",
216
+ containerProps: {
217
+ width: '275px'
218
+ },
219
+ labelProps: {
220
+ mb: 0
221
+ },
222
+ controlProps: {
223
+ 'aria-label': 'Row one Pingone value'
224
+ }
225
+ }, function (item) {
226
+ return (0, _react2.jsx)(_index.Item, {
227
+ key: item.name,
228
+ "data-id": item.name
229
+ }, item.name);
230
+ }), (0, _react2.jsx)(_Box["default"], {
231
+ isRow: true,
232
+ alignItems: "center",
233
+ sx: {
234
+ marginLeft: '12px',
235
+ marginRight: '12px'
236
+ }
237
+ }, (0, _react2.jsx)(_index.IconButton, {
238
+ "aria-label": "Edit"
239
+ }, (0, _react2.jsx)(_index.Icon, {
146
240
  icon: _CogsIcon["default"],
147
241
  color: "neutral.30",
148
242
  size: 20,
149
243
  title: "edit icon"
150
244
  })), (0, _react2.jsx)(_index.IconButton, {
151
- ml: "5px"
245
+ ml: "5px",
246
+ "aria-label": "Delete"
152
247
  }, (0, _react2.jsx)(_index.Icon, {
153
248
  icon: _DeleteIcon["default"],
154
249
  color: "neutral.30",
155
250
  size: 20,
156
251
  title: "delete icon"
157
- }))));
252
+ })))));
158
253
  };
159
254
 
160
255
  exports.Default = Default;
@@ -84,7 +84,9 @@ var _default = {
84
84
  forms: _forms["default"],
85
85
  text: _variants.text,
86
86
  images: _variants.images,
87
- buttons: _variants.buttons,
87
+ buttons: _objectSpread(_objectSpread({}, _variants.buttons), {}, {
88
+ bidirectionalIconButton: _variants.bidirectionalIconButton
89
+ }),
88
90
  textColors: _text.textColors,
89
91
  links: _variants.links,
90
92
  variants: _variants.variants
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
4
+
5
+ var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
6
+
7
+ var _Object$defineProperties = require("@babel/runtime-corejs3/core-js-stable/object/define-properties");
8
+
9
+ var _Object$getOwnPropertyDescriptors = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors");
10
+
11
+ var _forEachInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/for-each");
12
+
13
+ var _Object$getOwnPropertyDescriptor = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor");
14
+
15
+ var _filterInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/filter");
16
+
17
+ var _Object$getOwnPropertySymbols = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols");
18
+
19
+ var _Object$keys = require("@babel/runtime-corejs3/core-js-stable/object/keys");
20
+
21
+ _Object$defineProperty(exports, "__esModule", {
22
+ value: true
23
+ });
24
+
25
+ exports["default"] = void 0;
26
+
27
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
28
+
29
+ var _buttons = require("./buttons");
30
+
31
+ 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; }
32
+
33
+ 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; }
34
+
35
+ var bidirectionalIconButton = {
36
+ border: '1px solid',
37
+ outline: 'none',
38
+ height: '24px',
39
+ width: '24px',
40
+ color: 'active',
41
+ borderRadius: '12px',
42
+ borderColor: 'active',
43
+ '&.is-hovered': {
44
+ color: 'accent.40',
45
+ borderColor: 'accent.40'
46
+ },
47
+ '&.is-pressed': {
48
+ color: 'accent.20',
49
+ borderColor: 'accent.20'
50
+ },
51
+ '&.is-focused': _objectSpread({}, _buttons.defaultFocus)
52
+ };
53
+ var _default = bidirectionalIconButton;
54
+ exports["default"] = _default;