@pingux/astro 1.27.0-alpha.2 → 1.27.0-alpha.20

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.
@@ -58,6 +58,8 @@ var _overlays = require("@react-stately/overlays");
58
58
 
59
59
  var _overlays2 = require("@react-aria/overlays");
60
60
 
61
+ var _utils = require("@react-aria/utils");
62
+
61
63
  var _ArrowDropUpIcon = _interopRequireDefault(require("mdi-react/ArrowDropUpIcon"));
62
64
 
63
65
  var _ArrowDropDownIcon = _interopRequireDefault(require("mdi-react/ArrowDropDownIcon"));
@@ -74,7 +76,7 @@ var _index = require("../../index");
74
76
 
75
77
  var _react2 = require("@emotion/react");
76
78
 
77
- var _excluded = ["children", "disabledKeys", "emptySearchText", "isDefaultOpen", "isOpen", "items", "itemsFilter", "onOpenChange", "onNamePress", "onPopoverClose", "onPopoverOpen", "onSelectionChange", "name", "searchProps", "selectedItem"];
79
+ var _excluded = ["children", "disabledKeys", "emptySearchText", "isDefaultOpen", "isOpen", "items", "itemsFilter", "onOpenChange", "onNamePress", "onPopoverClose", "onPopoverOpen", "onSelectionChange", "name", "searchProps", "selectedItem", "popoverProps"];
78
80
 
79
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); }
80
82
 
@@ -101,6 +103,7 @@ var EnvironmentBreadcrumb = /*#__PURE__*/(0, _react.forwardRef)(function (props,
101
103
  name = props.name,
102
104
  searchProps = props.searchProps,
103
105
  selectedItem = props.selectedItem,
106
+ popoverProps = props.popoverProps,
104
107
  others = (0, _objectWithoutProperties2["default"])(props, _excluded);
105
108
 
106
109
  var _useState = (0, _react.useState)(''),
@@ -267,7 +270,7 @@ var EnvironmentBreadcrumb = /*#__PURE__*/(0, _react.forwardRef)(function (props,
267
270
  "aria-label": "".concat((typeof selectedItem === 'string' ? selectedItem : selectedValue) || 'Selected Item')
268
271
  }), selectedItem, (0, _react2.jsx)(_index.Icon, {
269
272
  icon: popoverState.isOpen ? _ArrowDropUpIcon["default"] : _ArrowDropDownIcon["default"]
270
- })), (0, _react2.jsx)(_index.PopoverContainer, (0, _extends2["default"])({}, overlayProps, positionProps, {
273
+ })), (0, _react2.jsx)(_index.PopoverContainer, (0, _extends2["default"])({}, overlayProps, positionProps, (0, _utils.mergeProps)(overlayProps, positionProps, popoverProps), {
271
274
  ref: overlayRef,
272
275
  isOpen: popoverState.isOpen,
273
276
  scrollRef: scrollBoxRef,
@@ -355,6 +358,9 @@ EnvironmentBreadcrumb.propTypes = {
355
358
  /** Callback function that fires when the dropdown is closed. */
356
359
  onPopoverClose: _propTypes["default"].func,
357
360
 
361
+ /** Props object that is spread directly into the popover container component. */
362
+ popoverProps: _propTypes["default"].shape({}),
363
+
358
364
  /** Props object that is spread directly into the SearchField element. */
359
365
  searchProps: _propTypes["default"].shape({}),
360
366
 
@@ -2,10 +2,28 @@
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
4
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
+
5
21
  var _regenerator = _interopRequireDefault(require("@babel/runtime-corejs3/regenerator"));
6
22
 
7
23
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/asyncToGenerator"));
8
24
 
25
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
26
+
9
27
  var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
10
28
 
11
29
  var _react = _interopRequireDefault(require("react"));
@@ -22,6 +40,10 @@ var _index = require("../../index");
22
40
 
23
41
  var _react2 = require("@emotion/react");
24
42
 
43
+ 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; }
44
+
45
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context3, _context4; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context3 = ownKeys(Object(source), !0)).call(_context3, function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context4 = ownKeys(Object(source))).call(_context4, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
46
+
25
47
  var testEnvBreadcrumb = 'test-env-breadcrumb';
26
48
  var testName = 'test-name';
27
49
  var testSelectedItem = 'test-selected-item';
@@ -52,6 +74,10 @@ var defaultProps = {
52
74
  },
53
75
  items: items
54
76
  };
77
+ var popoverProps = {
78
+ maxWidth: '100px',
79
+ 'data-testid': 'popover-container'
80
+ };
55
81
  var defaultWithSectionsProps = {
56
82
  'data-testid': testEnvBreadcrumb,
57
83
  name: testName,
@@ -135,6 +161,15 @@ test('should display name', function () {
135
161
  getComponent();
136
162
  expect(_testWrapper.screen.getByText(testName)).toBeInTheDocument();
137
163
  });
164
+ test('should spread props into popover container', function () {
165
+ getComponent(_objectSpread(_objectSpread({}, popoverProps), {}, {
166
+ isDefaultOpen: true
167
+ }));
168
+
169
+ _userEvent["default"].click(_testWrapper.screen.getByText(testSelectedItem));
170
+
171
+ expect(_testWrapper.screen.queryByTestId('popover-container')).toHaveStyle('max-width: 100px');
172
+ });
138
173
  test('should display selectedItem', function () {
139
174
  getComponent();
140
175
  expect(_testWrapper.screen.getByText(testSelectedItem)).toBeInTheDocument();
@@ -128,44 +128,106 @@ var items = [{
128
128
  avatar: _AccountIcon["default"],
129
129
  hasSeparator: false
130
130
  }];
131
+ var sx = {
132
+ wrapper: {
133
+ px: 'lg',
134
+ py: 'lg',
135
+ bg: 'accent.99',
136
+ height: '900px',
137
+ overflowY: 'scroll'
138
+ },
139
+ searchField: {
140
+ position: 'fixed',
141
+ mb: 'sm',
142
+ width: '400px'
143
+ },
144
+ listElementWrapper: {
145
+ px: 'md',
146
+ bg: 'accent.99',
147
+ justifyContent: 'center'
148
+ },
149
+ separator: {
150
+ bg: 'accent.90'
151
+ },
152
+ tabsWrapper: {
153
+ px: 'lg',
154
+ pt: 'xs'
155
+ },
156
+ iconButton: {
157
+ position: 'absolute',
158
+ top: 0,
159
+ right: 0
160
+ },
161
+ itemLabel: {
162
+ fontSize: 'sm',
163
+ fontWeight: 3,
164
+ lineHeight: '16px',
165
+ mb: 'xs'
166
+ },
167
+ itemValue: {
168
+ fontWeight: 0,
169
+ lineHeight: '18px',
170
+ variant: 'base',
171
+ mb: 'md'
172
+ },
173
+ listElement: {
174
+ wrapper: {
175
+ minHeight: '60px'
176
+ },
177
+ iconWrapper: {
178
+ mr: 'auto',
179
+ alignItems: 'center'
180
+ },
181
+ icon: {
182
+ mr: 'sm',
183
+ alignSelf: 'center',
184
+ color: 'accent.40'
185
+ },
186
+ avatar: {
187
+ width: '25px',
188
+ height: '25px',
189
+ mr: 'md'
190
+ },
191
+ title: {
192
+ alignSelf: 'start'
193
+ },
194
+ subtitle: {
195
+ fontSize: 'sm',
196
+ my: '1px',
197
+ lineHeight: '16px',
198
+ alignSelf: 'start'
199
+ },
200
+ menuWrapper: {
201
+ alignSelf: 'center'
202
+ }
203
+ }
204
+ };
131
205
 
132
206
  var ListElement = function ListElement(_ref) {
133
207
  var item = _ref.item,
134
208
  onClosePanel = _ref.onClosePanel;
135
209
  return (0, _react2.jsx)(_index.Box, {
136
210
  isRow: true,
137
- minHeight: "60px"
211
+ sx: sx.listElement.wrapper
138
212
  }, (0, _react2.jsx)(_index.Box, {
139
213
  isRow: true,
140
- mr: "auto",
141
- alignItems: "center"
214
+ sx: sx.listElement.iconWrapper
142
215
  }, item.hasIcon ? (0, _react2.jsx)(_index.Icon, {
143
216
  icon: item.avatar,
144
- alignSelf: "center",
145
217
  size: 24,
146
- mr: "sm",
147
- color: "accent.40"
218
+ sx: sx.listElement.icon
148
219
  }) : (0, _react2.jsx)(_index.Avatar, {
149
- mr: "md",
150
- sx: {
151
- width: '25px',
152
- height: '25px'
153
- },
220
+ sx: sx.listElement.avatar,
154
221
  src: item.avatar
155
222
  }), (0, _react2.jsx)(_index.Box, null, (0, _react2.jsx)(_index.Text, {
156
223
  variant: "bodyStrong",
157
- alignSelf: "start"
224
+ sx: sx.listElement.title
158
225
  }, item.lastName, ", ", item.firstName), (0, _react2.jsx)(_index.Text, {
159
- sx: {
160
- fontSize: 'sm',
161
- my: '1px',
162
- lineHeight: '16px'
163
- },
164
226
  variant: "subtitle",
165
- alignSelf: "start"
227
+ sx: sx.listElement.subtitle
166
228
  }, item.email))), (0, _react2.jsx)(_index.Box, {
167
229
  isRow: true,
168
- alignSelf: "center"
230
+ sx: sx.listElement.menuWrapper
169
231
  }, (0, _react2.jsx)(_index.SwitchField, {
170
232
  "aria-label": "active user",
171
233
  isDefaultSelected: true,
@@ -222,11 +284,7 @@ var Default = function Default() {
222
284
  };
223
285
 
224
286
  return (0, _react2.jsx)(_index.Box, {
225
- px: "lg",
226
- py: "lg",
227
- bg: "accent.99",
228
- height: "900px",
229
- overflowY: "scroll"
287
+ sx: sx.wrapper
230
288
  }, (0, _react2.jsx)(_index.SearchField, {
231
289
  position: "fixed",
232
290
  mb: "sm",
@@ -260,18 +318,15 @@ var Default = function Default() {
260
318
  restoreFocus: true,
261
319
  autoFocus: true
262
320
  }, (0, _react2.jsx)(_index.Box, {
263
- px: "md",
264
- bg: "accent.99",
265
- justifyContent: "center"
321
+ sx: sx.listElementWrapper
266
322
  }, (0, _react2.jsx)(ListElement, {
267
323
  item: selectedItemId >= 0 ? items[selectedItemId] : [],
268
324
  onClosePanel: closePanelHandler
269
325
  })), (0, _react2.jsx)(_index.Separator, {
270
326
  margin: 0,
271
- bg: "accent.90"
327
+ sx: sx.separator
272
328
  }), (0, _react2.jsx)(_index.Box, {
273
- px: "lg",
274
- pt: "xs"
329
+ sx: sx.tabsWrapper
275
330
  }, (0, _react2.jsx)(_index.Tabs, {
276
331
  tabListProps: {
277
332
  justifyContent: 'center'
@@ -285,73 +340,33 @@ var Default = function Default() {
285
340
  title: "Profile"
286
341
  }, selectedItemId >= 0 && (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)(_index.IconButton, {
287
342
  variant: "inverted",
288
- sx: {
289
- position: 'absolute',
290
- top: 0,
291
- right: 0
292
- }
343
+ sx: sx.iconButton
293
344
  }, (0, _react2.jsx)(_PencilIcon["default"], {
294
345
  size: 20
295
346
  })), (0, _react2.jsx)(_index.Text, {
296
- sx: {
297
- fontSize: 'sm',
298
- fontWeight: 3,
299
- lineHeight: '16px'
300
- },
301
- variant: "base",
302
- mb: "xs"
347
+ sx: sx.itemLabel,
348
+ variant: "base"
303
349
  }, "Full Name"), (0, _react2.jsx)(_index.Text, {
304
- sx: {
305
- fontWeight: 0,
306
- lineHeight: '18px'
307
- },
308
- variant: "base",
309
- mb: "md"
350
+ sx: sx.itemValue,
351
+ variant: "base"
310
352
  }, items[selectedItemId].firstName, " ", items[selectedItemId].lastName), (0, _react2.jsx)(_index.Text, {
311
- sx: {
312
- fontSize: 'sm',
313
- fontWeight: 3,
314
- lineHeight: '16px'
315
- },
316
- variant: "base",
317
- mb: "xs"
353
+ sx: sx.itemLabel,
354
+ variant: "base"
318
355
  }, "First Name"), (0, _react2.jsx)(_index.Text, {
319
- sx: {
320
- fontWeight: 0,
321
- lineHeight: '18px'
322
- },
323
- variant: "base",
324
- mb: "md"
356
+ sx: sx.itemValue,
357
+ variant: "base"
325
358
  }, items[selectedItemId].firstName), (0, _react2.jsx)(_index.Text, {
326
- sx: {
327
- fontSize: 'sm',
328
- fontWeight: 3,
329
- lineHeight: '16px'
330
- },
331
- variant: "base",
332
- mb: "xs"
359
+ sx: sx.itemLabel,
360
+ variant: "base"
333
361
  }, "Last Name"), (0, _react2.jsx)(_index.Text, {
334
- sx: {
335
- fontWeight: 0,
336
- lineHeight: '18px'
337
- },
338
- variant: "base",
339
- mb: "md"
362
+ sx: sx.itemValue,
363
+ variant: "base"
340
364
  }, items[selectedItemId].lastName), (0, _react2.jsx)(_index.Text, {
341
- sx: {
342
- fontSize: 'sm',
343
- fontWeight: 3,
344
- lineHeight: '16px'
345
- },
346
- variant: "base",
347
- mb: "xs"
365
+ sx: sx.itemLabel,
366
+ variant: "base"
348
367
  }, "Email"), (0, _react2.jsx)(_index.Text, {
349
- sx: {
350
- fontWeight: 0,
351
- lineHeight: '18px'
352
- },
353
- variant: "base",
354
- mb: "md"
368
+ sx: sx.itemValue,
369
+ variant: "base"
355
370
  }, items[selectedItemId].email))), (0, _react2.jsx)(_index.Tab, {
356
371
  title: "Group Memberships"
357
372
  }, (0, _react2.jsx)(_index.Text, null, "Group Memberships")), (0, _react2.jsx)(_index.Tab, {
@@ -26,36 +26,40 @@ var _default = {
26
26
  title: 'Recipes/Selected Field Overlay'
27
27
  };
28
28
  exports["default"] = _default;
29
+ var sx = {
30
+ container: {
31
+ padding: 'md',
32
+ position: 'relative',
33
+ borderWidth: 2,
34
+ borderStyle: 'solid',
35
+ borderColor: 'active',
36
+ borderRadius: 4,
37
+ cursor: 'pointer'
38
+ },
39
+ overlay: {
40
+ position: 'absolute',
41
+ width: '100%',
42
+ height: '100%',
43
+ top: 0,
44
+ left: 0,
45
+ alignItems: 'center',
46
+ justifyContent: 'center',
47
+ '&:focus': {
48
+ outline: 'none'
49
+ }
50
+ }
51
+ };
29
52
 
30
53
  var Default = function Default() {
31
54
  return (0, _react2.jsx)(_Box["default"], {
32
- p: 15,
33
- sx: {
34
- position: 'relative',
35
- borderWidth: 2,
36
- borderStyle: 'solid',
37
- borderColor: 'active',
38
- borderRadius: 4,
39
- cursor: 'pointer'
40
- }
55
+ sx: sx.container
41
56
  }, (0, _react2.jsx)(_TextField["default"], {
42
57
  label: "Name",
43
58
  controlProps: {
44
59
  tabIndex: '-1'
45
60
  }
46
61
  }), (0, _react2.jsx)(_Box["default"], {
47
- sx: {
48
- position: 'absolute',
49
- width: '100%',
50
- height: '100%',
51
- top: 0,
52
- left: 0,
53
- alignItems: 'center',
54
- justifyContent: 'center',
55
- '&:focus': {
56
- outline: 'none'
57
- }
58
- },
62
+ sx: sx.overlay,
59
63
  tabIndex: "0"
60
64
  }, (0, _react2.jsx)(_Icon["default"], {
61
65
  icon: _VisibilityOffOutlineIcon["default"],
@@ -137,6 +137,79 @@ var data = [{
137
137
  title: 'View a workflow'
138
138
  }]
139
139
  }];
140
+ var sx = {
141
+ iconContainer: {
142
+ backgroundColor: 'accent.80',
143
+ alignItems: 'center',
144
+ justifyContent: 'center',
145
+ mr: 'sm',
146
+ borderRadius: '50%',
147
+ zIndex: 3
148
+ },
149
+ headingSeparator: {
150
+ flexGrow: 1,
151
+ backgroundColor: 'accent.80',
152
+ maxHeight: '100%',
153
+ width: '6px !important',
154
+ zIndex: 2,
155
+ m: '0px 5px 0px 17px !important'
156
+ },
157
+ title: {
158
+ fontSize: 'md',
159
+ color: 'accent.30',
160
+ lineHeight: '18px',
161
+ fontWeight: '3',
162
+ m: '12px 0px 28px 5px',
163
+ maxWidth: '195px'
164
+ },
165
+ linkRowIconButton: {
166
+ '&.is-pressed': {
167
+ backgroundColor: 'transparent'
168
+ },
169
+ '&.is-pressed > svg > path': {
170
+ fill: 'accent.30'
171
+ },
172
+ '&.is-hovered': {
173
+ backgroundColor: 'transparent'
174
+ }
175
+ },
176
+ linkRowIconSelected: {
177
+ zIndex: 3,
178
+ 'path': {
179
+ fill: 'accent.30'
180
+ }
181
+ },
182
+ linkRowIconNotSelected: {
183
+ zIndex: 3,
184
+ 'path': {
185
+ fill: 'accent.80'
186
+ }
187
+ },
188
+ linkRowSeparator: {
189
+ flexGrow: 1,
190
+ backgroundColor: 'accent.30',
191
+ maxHeight: '100%',
192
+ width: '1px !important',
193
+ zIndex: 2,
194
+ m: '-5px 5px -5px 11.5px !important'
195
+ },
196
+ linkRowText: {
197
+ fontSize: 'md',
198
+ color: '#163CE3',
199
+ lineHeight: '18px',
200
+ fontWeight: '0',
201
+ m: '3px 0px 20px 10px',
202
+ maxWidth: '140px'
203
+ },
204
+ container: {
205
+ p: '15px 15px 0px 15px',
206
+ width: '280px',
207
+ backgroundColor: 'accent.95',
208
+ borderRadius: '8px',
209
+ zIndex: 1,
210
+ boxShadow: '3px 8px 4px rgba(202, 206, 211, 0.36)'
211
+ }
212
+ };
140
213
 
141
214
  var Stage = function Stage(props) {
142
215
  var title = props.title,
@@ -172,14 +245,7 @@ var Stage = function Stage(props) {
172
245
  }, (0, _react2.jsx)(_index.Box, null, (0, _react2.jsx)(_index.Box, {
173
246
  minWidth: "39.5px",
174
247
  minHeight: "39.5px",
175
- sx: {
176
- backgroundColor: 'accent.80',
177
- alignItems: 'center',
178
- justifyContent: 'center',
179
- mr: '10px',
180
- borderRadius: '50%',
181
- zIndex: 3
182
- }
248
+ sx: sx.iconContainer
183
249
  }, (0, _react2.jsx)(_index.Icon, {
184
250
  icon: icon,
185
251
  color: "accent.40",
@@ -188,24 +254,10 @@ var Stage = function Stage(props) {
188
254
  zIndex: 3
189
255
  }
190
256
  })), !isLastStage && (0, _react2.jsx)(_index.Separator, {
191
- sx: {
192
- flexGrow: 1,
193
- backgroundColor: 'accent.80',
194
- maxHeight: '100%',
195
- width: '6px !important',
196
- zIndex: 2,
197
- m: '0px 5px 0px 17px !important'
198
- },
257
+ sx: sx.headingSeparator,
199
258
  orientation: "vertical"
200
259
  })), (0, _react2.jsx)(_index.Box, null, (0, _react2.jsx)(_index.Text, {
201
- sx: {
202
- fontSize: '15px',
203
- color: 'accent.30',
204
- lineHeight: '18px',
205
- fontWeight: '3',
206
- m: '12px 0px 28px 5px',
207
- maxWidth: '195px'
208
- }
260
+ sx: sx.title
209
261
  }, title), (0, _react2.jsx)(_index.Box, {
210
262
  pl: "0px",
211
263
  mb: "25px"
@@ -246,53 +298,19 @@ var LinkRow = function LinkRow(props) {
246
298
  }
247
299
  }, (0, _react2.jsx)(_index.IconButton, {
248
300
  onPress: onIconPress,
249
- sx: {
250
- '&.is-pressed': {
251
- backgroundColor: 'transparent'
252
- },
253
- '&.is-pressed > svg > path': {
254
- fill: 'accent.30'
255
- },
256
- '&.is-hovered': {
257
- backgroundColor: 'transparent'
258
- }
259
- },
301
+ sx: sx.linkRowIconButton,
260
302
  "aria-label": "completed step icon indicator"
261
303
  }, (0, _react2.jsx)(_index.Icon, {
262
304
  icon: isSelected ? _CheckCircleIcon["default"] : RadioButtonIcon,
263
305
  size: isSelected ? '20px' : '18px',
264
- sx: isSelected ? {
265
- zIndex: 3,
266
- 'path': {
267
- fill: 'accent.30'
268
- }
269
- } : {
270
- zIndex: 3,
271
- 'path': {
272
- fill: 'accent.80'
273
- }
274
- }
306
+ sx: isSelected ? sx.linkRowIconButton : sx.linkRowIconNotSelected
275
307
  }))), !isLastLink && isLinkSelected && (0, _react2.jsx)(_index.Separator, {
276
- sx: {
277
- flexGrow: 1,
278
- backgroundColor: 'accent.30',
279
- maxHeight: '100%',
280
- width: '1px !important',
281
- zIndex: 2,
282
- m: '-5px 5px -5px 11.5px !important'
283
- },
308
+ sx: sx.linkRowSeparator,
284
309
  orientation: "vertical"
285
310
  })), (0, _react2.jsx)(_index.Box, null, (0, _react2.jsx)(_index.Link, {
286
311
  href: "https://www.pingidentity.com",
287
312
  target: "_blank",
288
- sx: {
289
- fontSize: '15px',
290
- color: '#163CE3',
291
- lineHeight: '18px',
292
- fontWeight: '0',
293
- m: '3px 0px 20px 10px',
294
- maxWidth: '140px'
295
- }
313
+ sx: sx.linkRowText
296
314
  }, title)));
297
315
  };
298
316
 
@@ -300,16 +318,7 @@ var Default = function Default() {
300
318
  // Open the `Story` addons tab to view the source code for full context.
301
319
  return (0, _react2.jsx)(_index.Box, {
302
320
  as: "nav",
303
- backgroundColor: "accent.95",
304
- width: "280px",
305
- sx: {
306
- p: '15px 15px 0px 15px',
307
- width: '280px',
308
- backgroundColor: 'accent.95',
309
- borderRadius: '8px',
310
- zIndex: 1,
311
- boxShadow: '3px 8px 4px rgba(202, 206, 211, 0.36)'
312
- }
321
+ sx: sx.container
313
322
  }, (0, _react2.jsx)(_index.Box, {
314
323
  paddingLeft: "0px"
315
324
  }, (0, _map["default"])(data).call(data, function (stage, index) {
@@ -12,7 +12,7 @@ import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance
12
12
  import _Array$from from "@babel/runtime-corejs3/core-js-stable/array/from";
13
13
  import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
14
14
  import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectWithoutProperties";
15
- var _excluded = ["children", "disabledKeys", "emptySearchText", "isDefaultOpen", "isOpen", "items", "itemsFilter", "onOpenChange", "onNamePress", "onPopoverClose", "onPopoverOpen", "onSelectionChange", "name", "searchProps", "selectedItem"];
15
+ var _excluded = ["children", "disabledKeys", "emptySearchText", "isDefaultOpen", "isOpen", "items", "itemsFilter", "onOpenChange", "onNamePress", "onPopoverClose", "onPopoverOpen", "onSelectionChange", "name", "searchProps", "selectedItem", "popoverProps"];
16
16
 
17
17
  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; }
18
18
 
@@ -25,6 +25,7 @@ import HomeIcon from 'mdi-react/HomeIcon';
25
25
  import PropTypes from 'prop-types';
26
26
  import { useOverlayTriggerState } from '@react-stately/overlays';
27
27
  import { useOverlayPosition, useOverlayTrigger } from '@react-aria/overlays';
28
+ import { mergeProps } from '@react-aria/utils';
28
29
  import ArrowDropUpIcon from 'mdi-react/ArrowDropUpIcon';
29
30
  import ArrowDropDownIcon from 'mdi-react/ArrowDropDownIcon';
30
31
  import { FocusScope } from '@react-aria/focus';
@@ -51,6 +52,7 @@ var EnvironmentBreadcrumb = /*#__PURE__*/forwardRef(function (props, ref) {
51
52
  name = props.name,
52
53
  searchProps = props.searchProps,
53
54
  selectedItem = props.selectedItem,
55
+ popoverProps = props.popoverProps,
54
56
  others = _objectWithoutProperties(props, _excluded);
55
57
 
56
58
  var _useState = useState(''),
@@ -215,7 +217,7 @@ var EnvironmentBreadcrumb = /*#__PURE__*/forwardRef(function (props, ref) {
215
217
  "aria-label": "".concat((typeof selectedItem === 'string' ? selectedItem : selectedValue) || 'Selected Item')
216
218
  }), selectedItem, ___EmotionJSX(Icon, {
217
219
  icon: popoverState.isOpen ? ArrowDropUpIcon : ArrowDropDownIcon
218
- })), ___EmotionJSX(PopoverContainer, _extends({}, overlayProps, positionProps, {
220
+ })), ___EmotionJSX(PopoverContainer, _extends({}, overlayProps, positionProps, mergeProps(overlayProps, positionProps, popoverProps), {
219
221
  ref: overlayRef,
220
222
  isOpen: popoverState.isOpen,
221
223
  scrollRef: scrollBoxRef,
@@ -303,6 +305,9 @@ EnvironmentBreadcrumb.propTypes = {
303
305
  /** Callback function that fires when the dropdown is closed. */
304
306
  onPopoverClose: PropTypes.func,
305
307
 
308
+ /** Props object that is spread directly into the popover container component. */
309
+ popoverProps: PropTypes.shape({}),
310
+
306
311
  /** Props object that is spread directly into the SearchField element. */
307
312
  searchProps: PropTypes.shape({}),
308
313