@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.
- package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.js +8 -2
- package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.test.js +35 -0
- package/lib/cjs/recipes/ListAndPanel.stories.js +102 -87
- package/lib/cjs/recipes/SelectedFieldOverlay.story.js +25 -21
- package/lib/cjs/recipes/TrialExperienceStatusBar.stories.js +81 -72
- package/lib/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.js +7 -2
- package/lib/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.test.js +25 -0
- package/lib/recipes/ListAndPanel.stories.js +102 -87
- package/lib/recipes/SelectedFieldOverlay.story.js +25 -21
- package/lib/recipes/TrialExperienceStatusBar.stories.js +81 -72
- package/package.json +56 -50
@@ -1,6 +1,20 @@
|
|
1
|
+
import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
|
2
|
+
import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
|
3
|
+
import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
|
4
|
+
import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
|
5
|
+
import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";
|
6
|
+
import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
|
7
|
+
import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
|
8
|
+
import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
|
1
9
|
import _regeneratorRuntime from "@babel/runtime-corejs3/regenerator";
|
2
10
|
import _asyncToGenerator from "@babel/runtime-corejs3/helpers/esm/asyncToGenerator";
|
11
|
+
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
3
12
|
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
13
|
+
|
14
|
+
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; }
|
15
|
+
|
16
|
+
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) { _defineProperty(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; }
|
17
|
+
|
4
18
|
import React from 'react';
|
5
19
|
import userEvent from '@testing-library/user-event';
|
6
20
|
import { Section } from '@react-stately/collections';
|
@@ -38,6 +52,10 @@ var defaultProps = {
|
|
38
52
|
},
|
39
53
|
items: items
|
40
54
|
};
|
55
|
+
var popoverProps = {
|
56
|
+
maxWidth: '100px',
|
57
|
+
'data-testid': 'popover-container'
|
58
|
+
};
|
41
59
|
var defaultWithSectionsProps = {
|
42
60
|
'data-testid': testEnvBreadcrumb,
|
43
61
|
name: testName,
|
@@ -115,6 +133,13 @@ test('should display name', function () {
|
|
115
133
|
getComponent();
|
116
134
|
expect(screen.getByText(testName)).toBeInTheDocument();
|
117
135
|
});
|
136
|
+
test('should spread props into popover container', function () {
|
137
|
+
getComponent(_objectSpread(_objectSpread({}, popoverProps), {}, {
|
138
|
+
isDefaultOpen: true
|
139
|
+
}));
|
140
|
+
userEvent.click(screen.getByText(testSelectedItem));
|
141
|
+
expect(screen.queryByTestId('popover-container')).toHaveStyle('max-width: 100px');
|
142
|
+
});
|
118
143
|
test('should display selectedItem', function () {
|
119
144
|
getComponent();
|
120
145
|
expect(screen.getByText(testSelectedItem)).toBeInTheDocument();
|
@@ -92,44 +92,106 @@ var items = [{
|
|
92
92
|
avatar: AccountIcon,
|
93
93
|
hasSeparator: false
|
94
94
|
}];
|
95
|
+
var sx = {
|
96
|
+
wrapper: {
|
97
|
+
px: 'lg',
|
98
|
+
py: 'lg',
|
99
|
+
bg: 'accent.99',
|
100
|
+
height: '900px',
|
101
|
+
overflowY: 'scroll'
|
102
|
+
},
|
103
|
+
searchField: {
|
104
|
+
position: 'fixed',
|
105
|
+
mb: 'sm',
|
106
|
+
width: '400px'
|
107
|
+
},
|
108
|
+
listElementWrapper: {
|
109
|
+
px: 'md',
|
110
|
+
bg: 'accent.99',
|
111
|
+
justifyContent: 'center'
|
112
|
+
},
|
113
|
+
separator: {
|
114
|
+
bg: 'accent.90'
|
115
|
+
},
|
116
|
+
tabsWrapper: {
|
117
|
+
px: 'lg',
|
118
|
+
pt: 'xs'
|
119
|
+
},
|
120
|
+
iconButton: {
|
121
|
+
position: 'absolute',
|
122
|
+
top: 0,
|
123
|
+
right: 0
|
124
|
+
},
|
125
|
+
itemLabel: {
|
126
|
+
fontSize: 'sm',
|
127
|
+
fontWeight: 3,
|
128
|
+
lineHeight: '16px',
|
129
|
+
mb: 'xs'
|
130
|
+
},
|
131
|
+
itemValue: {
|
132
|
+
fontWeight: 0,
|
133
|
+
lineHeight: '18px',
|
134
|
+
variant: 'base',
|
135
|
+
mb: 'md'
|
136
|
+
},
|
137
|
+
listElement: {
|
138
|
+
wrapper: {
|
139
|
+
minHeight: '60px'
|
140
|
+
},
|
141
|
+
iconWrapper: {
|
142
|
+
mr: 'auto',
|
143
|
+
alignItems: 'center'
|
144
|
+
},
|
145
|
+
icon: {
|
146
|
+
mr: 'sm',
|
147
|
+
alignSelf: 'center',
|
148
|
+
color: 'accent.40'
|
149
|
+
},
|
150
|
+
avatar: {
|
151
|
+
width: '25px',
|
152
|
+
height: '25px',
|
153
|
+
mr: 'md'
|
154
|
+
},
|
155
|
+
title: {
|
156
|
+
alignSelf: 'start'
|
157
|
+
},
|
158
|
+
subtitle: {
|
159
|
+
fontSize: 'sm',
|
160
|
+
my: '1px',
|
161
|
+
lineHeight: '16px',
|
162
|
+
alignSelf: 'start'
|
163
|
+
},
|
164
|
+
menuWrapper: {
|
165
|
+
alignSelf: 'center'
|
166
|
+
}
|
167
|
+
}
|
168
|
+
};
|
95
169
|
|
96
170
|
var ListElement = function ListElement(_ref) {
|
97
171
|
var item = _ref.item,
|
98
172
|
onClosePanel = _ref.onClosePanel;
|
99
173
|
return ___EmotionJSX(Box, {
|
100
174
|
isRow: true,
|
101
|
-
|
175
|
+
sx: sx.listElement.wrapper
|
102
176
|
}, ___EmotionJSX(Box, {
|
103
177
|
isRow: true,
|
104
|
-
|
105
|
-
alignItems: "center"
|
178
|
+
sx: sx.listElement.iconWrapper
|
106
179
|
}, item.hasIcon ? ___EmotionJSX(Icon, {
|
107
180
|
icon: item.avatar,
|
108
|
-
alignSelf: "center",
|
109
181
|
size: 24,
|
110
|
-
|
111
|
-
color: "accent.40"
|
182
|
+
sx: sx.listElement.icon
|
112
183
|
}) : ___EmotionJSX(Avatar, {
|
113
|
-
|
114
|
-
sx: {
|
115
|
-
width: '25px',
|
116
|
-
height: '25px'
|
117
|
-
},
|
184
|
+
sx: sx.listElement.avatar,
|
118
185
|
src: item.avatar
|
119
186
|
}), ___EmotionJSX(Box, null, ___EmotionJSX(Text, {
|
120
187
|
variant: "bodyStrong",
|
121
|
-
|
188
|
+
sx: sx.listElement.title
|
122
189
|
}, item.lastName, ", ", item.firstName), ___EmotionJSX(Text, {
|
123
|
-
sx: {
|
124
|
-
fontSize: 'sm',
|
125
|
-
my: '1px',
|
126
|
-
lineHeight: '16px'
|
127
|
-
},
|
128
190
|
variant: "subtitle",
|
129
|
-
|
191
|
+
sx: sx.listElement.subtitle
|
130
192
|
}, item.email))), ___EmotionJSX(Box, {
|
131
193
|
isRow: true,
|
132
|
-
|
194
|
+
sx: sx.listElement.menuWrapper
|
133
195
|
}, ___EmotionJSX(SwitchField, {
|
134
196
|
"aria-label": "active user",
|
135
197
|
isDefaultSelected: true,
|
@@ -186,11 +248,7 @@ export var Default = function Default() {
|
|
186
248
|
};
|
187
249
|
|
188
250
|
return ___EmotionJSX(Box, {
|
189
|
-
|
190
|
-
py: "lg",
|
191
|
-
bg: "accent.99",
|
192
|
-
height: "900px",
|
193
|
-
overflowY: "scroll"
|
251
|
+
sx: sx.wrapper
|
194
252
|
}, ___EmotionJSX(SearchField, {
|
195
253
|
position: "fixed",
|
196
254
|
mb: "sm",
|
@@ -224,18 +282,15 @@ export var Default = function Default() {
|
|
224
282
|
restoreFocus: true,
|
225
283
|
autoFocus: true
|
226
284
|
}, ___EmotionJSX(Box, {
|
227
|
-
|
228
|
-
bg: "accent.99",
|
229
|
-
justifyContent: "center"
|
285
|
+
sx: sx.listElementWrapper
|
230
286
|
}, ___EmotionJSX(ListElement, {
|
231
287
|
item: selectedItemId >= 0 ? items[selectedItemId] : [],
|
232
288
|
onClosePanel: closePanelHandler
|
233
289
|
})), ___EmotionJSX(Separator, {
|
234
290
|
margin: 0,
|
235
|
-
|
291
|
+
sx: sx.separator
|
236
292
|
}), ___EmotionJSX(Box, {
|
237
|
-
|
238
|
-
pt: "xs"
|
293
|
+
sx: sx.tabsWrapper
|
239
294
|
}, ___EmotionJSX(Tabs, {
|
240
295
|
tabListProps: {
|
241
296
|
justifyContent: 'center'
|
@@ -249,73 +304,33 @@ export var Default = function Default() {
|
|
249
304
|
title: "Profile"
|
250
305
|
}, selectedItemId >= 0 && ___EmotionJSX(React.Fragment, null, ___EmotionJSX(IconButton, {
|
251
306
|
variant: "inverted",
|
252
|
-
sx:
|
253
|
-
position: 'absolute',
|
254
|
-
top: 0,
|
255
|
-
right: 0
|
256
|
-
}
|
307
|
+
sx: sx.iconButton
|
257
308
|
}, ___EmotionJSX(PencilIcon, {
|
258
309
|
size: 20
|
259
310
|
})), ___EmotionJSX(Text, {
|
260
|
-
sx:
|
261
|
-
|
262
|
-
fontWeight: 3,
|
263
|
-
lineHeight: '16px'
|
264
|
-
},
|
265
|
-
variant: "base",
|
266
|
-
mb: "xs"
|
311
|
+
sx: sx.itemLabel,
|
312
|
+
variant: "base"
|
267
313
|
}, "Full Name"), ___EmotionJSX(Text, {
|
268
|
-
sx:
|
269
|
-
|
270
|
-
lineHeight: '18px'
|
271
|
-
},
|
272
|
-
variant: "base",
|
273
|
-
mb: "md"
|
314
|
+
sx: sx.itemValue,
|
315
|
+
variant: "base"
|
274
316
|
}, items[selectedItemId].firstName, " ", items[selectedItemId].lastName), ___EmotionJSX(Text, {
|
275
|
-
sx:
|
276
|
-
|
277
|
-
fontWeight: 3,
|
278
|
-
lineHeight: '16px'
|
279
|
-
},
|
280
|
-
variant: "base",
|
281
|
-
mb: "xs"
|
317
|
+
sx: sx.itemLabel,
|
318
|
+
variant: "base"
|
282
319
|
}, "First Name"), ___EmotionJSX(Text, {
|
283
|
-
sx:
|
284
|
-
|
285
|
-
lineHeight: '18px'
|
286
|
-
},
|
287
|
-
variant: "base",
|
288
|
-
mb: "md"
|
320
|
+
sx: sx.itemValue,
|
321
|
+
variant: "base"
|
289
322
|
}, items[selectedItemId].firstName), ___EmotionJSX(Text, {
|
290
|
-
sx:
|
291
|
-
|
292
|
-
fontWeight: 3,
|
293
|
-
lineHeight: '16px'
|
294
|
-
},
|
295
|
-
variant: "base",
|
296
|
-
mb: "xs"
|
323
|
+
sx: sx.itemLabel,
|
324
|
+
variant: "base"
|
297
325
|
}, "Last Name"), ___EmotionJSX(Text, {
|
298
|
-
sx:
|
299
|
-
|
300
|
-
lineHeight: '18px'
|
301
|
-
},
|
302
|
-
variant: "base",
|
303
|
-
mb: "md"
|
326
|
+
sx: sx.itemValue,
|
327
|
+
variant: "base"
|
304
328
|
}, items[selectedItemId].lastName), ___EmotionJSX(Text, {
|
305
|
-
sx:
|
306
|
-
|
307
|
-
fontWeight: 3,
|
308
|
-
lineHeight: '16px'
|
309
|
-
},
|
310
|
-
variant: "base",
|
311
|
-
mb: "xs"
|
329
|
+
sx: sx.itemLabel,
|
330
|
+
variant: "base"
|
312
331
|
}, "Email"), ___EmotionJSX(Text, {
|
313
|
-
sx:
|
314
|
-
|
315
|
-
lineHeight: '18px'
|
316
|
-
},
|
317
|
-
variant: "base",
|
318
|
-
mb: "md"
|
332
|
+
sx: sx.itemValue,
|
333
|
+
variant: "base"
|
319
334
|
}, items[selectedItemId].email))), ___EmotionJSX(Tab, {
|
320
335
|
title: "Group Memberships"
|
321
336
|
}, ___EmotionJSX(Text, null, "Group Memberships")), ___EmotionJSX(Tab, {
|
@@ -7,35 +7,39 @@ import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
7
7
|
export default {
|
8
8
|
title: 'Recipes/Selected Field Overlay'
|
9
9
|
};
|
10
|
+
var sx = {
|
11
|
+
container: {
|
12
|
+
padding: 'md',
|
13
|
+
position: 'relative',
|
14
|
+
borderWidth: 2,
|
15
|
+
borderStyle: 'solid',
|
16
|
+
borderColor: 'active',
|
17
|
+
borderRadius: 4,
|
18
|
+
cursor: 'pointer'
|
19
|
+
},
|
20
|
+
overlay: {
|
21
|
+
position: 'absolute',
|
22
|
+
width: '100%',
|
23
|
+
height: '100%',
|
24
|
+
top: 0,
|
25
|
+
left: 0,
|
26
|
+
alignItems: 'center',
|
27
|
+
justifyContent: 'center',
|
28
|
+
'&:focus': {
|
29
|
+
outline: 'none'
|
30
|
+
}
|
31
|
+
}
|
32
|
+
};
|
10
33
|
export var Default = function Default() {
|
11
34
|
return ___EmotionJSX(Box, {
|
12
|
-
|
13
|
-
sx: {
|
14
|
-
position: 'relative',
|
15
|
-
borderWidth: 2,
|
16
|
-
borderStyle: 'solid',
|
17
|
-
borderColor: 'active',
|
18
|
-
borderRadius: 4,
|
19
|
-
cursor: 'pointer'
|
20
|
-
}
|
35
|
+
sx: sx.container
|
21
36
|
}, ___EmotionJSX(TextField, {
|
22
37
|
label: "Name",
|
23
38
|
controlProps: {
|
24
39
|
tabIndex: '-1'
|
25
40
|
}
|
26
41
|
}), ___EmotionJSX(Box, {
|
27
|
-
sx:
|
28
|
-
position: 'absolute',
|
29
|
-
width: '100%',
|
30
|
-
height: '100%',
|
31
|
-
top: 0,
|
32
|
-
left: 0,
|
33
|
-
alignItems: 'center',
|
34
|
-
justifyContent: 'center',
|
35
|
-
'&:focus': {
|
36
|
-
outline: 'none'
|
37
|
-
}
|
38
|
-
},
|
42
|
+
sx: sx.overlay,
|
39
43
|
tabIndex: "0"
|
40
44
|
}, ___EmotionJSX(Icon, {
|
41
45
|
icon: VisibilityOffOutlineIcon,
|
@@ -104,6 +104,79 @@ var data = [{
|
|
104
104
|
title: 'View a workflow'
|
105
105
|
}]
|
106
106
|
}];
|
107
|
+
var sx = {
|
108
|
+
iconContainer: {
|
109
|
+
backgroundColor: 'accent.80',
|
110
|
+
alignItems: 'center',
|
111
|
+
justifyContent: 'center',
|
112
|
+
mr: 'sm',
|
113
|
+
borderRadius: '50%',
|
114
|
+
zIndex: 3
|
115
|
+
},
|
116
|
+
headingSeparator: {
|
117
|
+
flexGrow: 1,
|
118
|
+
backgroundColor: 'accent.80',
|
119
|
+
maxHeight: '100%',
|
120
|
+
width: '6px !important',
|
121
|
+
zIndex: 2,
|
122
|
+
m: '0px 5px 0px 17px !important'
|
123
|
+
},
|
124
|
+
title: {
|
125
|
+
fontSize: 'md',
|
126
|
+
color: 'accent.30',
|
127
|
+
lineHeight: '18px',
|
128
|
+
fontWeight: '3',
|
129
|
+
m: '12px 0px 28px 5px',
|
130
|
+
maxWidth: '195px'
|
131
|
+
},
|
132
|
+
linkRowIconButton: {
|
133
|
+
'&.is-pressed': {
|
134
|
+
backgroundColor: 'transparent'
|
135
|
+
},
|
136
|
+
'&.is-pressed > svg > path': {
|
137
|
+
fill: 'accent.30'
|
138
|
+
},
|
139
|
+
'&.is-hovered': {
|
140
|
+
backgroundColor: 'transparent'
|
141
|
+
}
|
142
|
+
},
|
143
|
+
linkRowIconSelected: {
|
144
|
+
zIndex: 3,
|
145
|
+
'path': {
|
146
|
+
fill: 'accent.30'
|
147
|
+
}
|
148
|
+
},
|
149
|
+
linkRowIconNotSelected: {
|
150
|
+
zIndex: 3,
|
151
|
+
'path': {
|
152
|
+
fill: 'accent.80'
|
153
|
+
}
|
154
|
+
},
|
155
|
+
linkRowSeparator: {
|
156
|
+
flexGrow: 1,
|
157
|
+
backgroundColor: 'accent.30',
|
158
|
+
maxHeight: '100%',
|
159
|
+
width: '1px !important',
|
160
|
+
zIndex: 2,
|
161
|
+
m: '-5px 5px -5px 11.5px !important'
|
162
|
+
},
|
163
|
+
linkRowText: {
|
164
|
+
fontSize: 'md',
|
165
|
+
color: '#163CE3',
|
166
|
+
lineHeight: '18px',
|
167
|
+
fontWeight: '0',
|
168
|
+
m: '3px 0px 20px 10px',
|
169
|
+
maxWidth: '140px'
|
170
|
+
},
|
171
|
+
container: {
|
172
|
+
p: '15px 15px 0px 15px',
|
173
|
+
width: '280px',
|
174
|
+
backgroundColor: 'accent.95',
|
175
|
+
borderRadius: '8px',
|
176
|
+
zIndex: 1,
|
177
|
+
boxShadow: '3px 8px 4px rgba(202, 206, 211, 0.36)'
|
178
|
+
}
|
179
|
+
};
|
107
180
|
|
108
181
|
var Stage = function Stage(props) {
|
109
182
|
var title = props.title,
|
@@ -139,14 +212,7 @@ var Stage = function Stage(props) {
|
|
139
212
|
}, ___EmotionJSX(Box, null, ___EmotionJSX(Box, {
|
140
213
|
minWidth: "39.5px",
|
141
214
|
minHeight: "39.5px",
|
142
|
-
sx:
|
143
|
-
backgroundColor: 'accent.80',
|
144
|
-
alignItems: 'center',
|
145
|
-
justifyContent: 'center',
|
146
|
-
mr: '10px',
|
147
|
-
borderRadius: '50%',
|
148
|
-
zIndex: 3
|
149
|
-
}
|
215
|
+
sx: sx.iconContainer
|
150
216
|
}, ___EmotionJSX(Icon, {
|
151
217
|
icon: icon,
|
152
218
|
color: "accent.40",
|
@@ -155,24 +221,10 @@ var Stage = function Stage(props) {
|
|
155
221
|
zIndex: 3
|
156
222
|
}
|
157
223
|
})), !isLastStage && ___EmotionJSX(Separator, {
|
158
|
-
sx:
|
159
|
-
flexGrow: 1,
|
160
|
-
backgroundColor: 'accent.80',
|
161
|
-
maxHeight: '100%',
|
162
|
-
width: '6px !important',
|
163
|
-
zIndex: 2,
|
164
|
-
m: '0px 5px 0px 17px !important'
|
165
|
-
},
|
224
|
+
sx: sx.headingSeparator,
|
166
225
|
orientation: "vertical"
|
167
226
|
})), ___EmotionJSX(Box, null, ___EmotionJSX(Text, {
|
168
|
-
sx:
|
169
|
-
fontSize: '15px',
|
170
|
-
color: 'accent.30',
|
171
|
-
lineHeight: '18px',
|
172
|
-
fontWeight: '3',
|
173
|
-
m: '12px 0px 28px 5px',
|
174
|
-
maxWidth: '195px'
|
175
|
-
}
|
227
|
+
sx: sx.title
|
176
228
|
}, title), ___EmotionJSX(Box, {
|
177
229
|
pl: "0px",
|
178
230
|
mb: "25px"
|
@@ -213,53 +265,19 @@ var LinkRow = function LinkRow(props) {
|
|
213
265
|
}
|
214
266
|
}, ___EmotionJSX(IconButton, {
|
215
267
|
onPress: onIconPress,
|
216
|
-
sx:
|
217
|
-
'&.is-pressed': {
|
218
|
-
backgroundColor: 'transparent'
|
219
|
-
},
|
220
|
-
'&.is-pressed > svg > path': {
|
221
|
-
fill: 'accent.30'
|
222
|
-
},
|
223
|
-
'&.is-hovered': {
|
224
|
-
backgroundColor: 'transparent'
|
225
|
-
}
|
226
|
-
},
|
268
|
+
sx: sx.linkRowIconButton,
|
227
269
|
"aria-label": "completed step icon indicator"
|
228
270
|
}, ___EmotionJSX(Icon, {
|
229
271
|
icon: isSelected ? CheckCircleIcon : RadioButtonIcon,
|
230
272
|
size: isSelected ? '20px' : '18px',
|
231
|
-
sx: isSelected ?
|
232
|
-
zIndex: 3,
|
233
|
-
'path': {
|
234
|
-
fill: 'accent.30'
|
235
|
-
}
|
236
|
-
} : {
|
237
|
-
zIndex: 3,
|
238
|
-
'path': {
|
239
|
-
fill: 'accent.80'
|
240
|
-
}
|
241
|
-
}
|
273
|
+
sx: isSelected ? sx.linkRowIconButton : sx.linkRowIconNotSelected
|
242
274
|
}))), !isLastLink && isLinkSelected && ___EmotionJSX(Separator, {
|
243
|
-
sx:
|
244
|
-
flexGrow: 1,
|
245
|
-
backgroundColor: 'accent.30',
|
246
|
-
maxHeight: '100%',
|
247
|
-
width: '1px !important',
|
248
|
-
zIndex: 2,
|
249
|
-
m: '-5px 5px -5px 11.5px !important'
|
250
|
-
},
|
275
|
+
sx: sx.linkRowSeparator,
|
251
276
|
orientation: "vertical"
|
252
277
|
})), ___EmotionJSX(Box, null, ___EmotionJSX(Link, {
|
253
278
|
href: "https://www.pingidentity.com",
|
254
279
|
target: "_blank",
|
255
|
-
sx:
|
256
|
-
fontSize: '15px',
|
257
|
-
color: '#163CE3',
|
258
|
-
lineHeight: '18px',
|
259
|
-
fontWeight: '0',
|
260
|
-
m: '3px 0px 20px 10px',
|
261
|
-
maxWidth: '140px'
|
262
|
-
}
|
280
|
+
sx: sx.linkRowText
|
263
281
|
}, title)));
|
264
282
|
};
|
265
283
|
|
@@ -267,16 +285,7 @@ export var Default = function Default() {
|
|
267
285
|
// Open the `Story` addons tab to view the source code for full context.
|
268
286
|
return ___EmotionJSX(Box, {
|
269
287
|
as: "nav",
|
270
|
-
|
271
|
-
width: "280px",
|
272
|
-
sx: {
|
273
|
-
p: '15px 15px 0px 15px',
|
274
|
-
width: '280px',
|
275
|
-
backgroundColor: 'accent.95',
|
276
|
-
borderRadius: '8px',
|
277
|
-
zIndex: 1,
|
278
|
-
boxShadow: '3px 8px 4px rgba(202, 206, 211, 0.36)'
|
279
|
-
}
|
288
|
+
sx: sx.container
|
280
289
|
}, ___EmotionJSX(Box, {
|
281
290
|
paddingLeft: "0px"
|
282
291
|
}, _mapInstanceProperty(data).call(data, function (stage, index) {
|