@pingux/astro 2.122.1-alpha.1 → 2.123.0-alpha.0
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/NavBar/NavBar.stories.js +235 -178
- package/lib/cjs/components/NavBar/NavBar.styles.js +5 -4
- package/lib/cjs/components/NavBarSection/NavBarItem.js +4 -3
- package/lib/cjs/components/NavBarSection/NavBarItemButton.js +1 -2
- package/lib/cjs/components/NavBarSection/NavBarItemHeader.js +3 -3
- package/lib/cjs/components/NavBarSection/NavBarItemHeader.test.js +1 -1
- package/lib/cjs/components/NavBarSection/NavBarItemLink.js +4 -1
- package/lib/cjs/styles/themes/astro/customProperties/styles.js +1 -1
- package/lib/cjs/types/navBar.d.ts +2 -1
- package/lib/cjs/utils/devUtils/constants/logos.js +2 -2
- package/lib/components/NavBar/NavBar.stories.js +235 -178
- package/lib/components/NavBar/NavBar.styles.js +5 -4
- package/lib/components/NavBarSection/NavBarItem.js +4 -3
- package/lib/components/NavBarSection/NavBarItemButton.js +1 -2
- package/lib/components/NavBarSection/NavBarItemHeader.js +3 -3
- package/lib/components/NavBarSection/NavBarItemHeader.test.js +1 -1
- package/lib/components/NavBarSection/NavBarItemLink.js +4 -1
- package/lib/styles/themes/astro/customProperties/styles.js +1 -1
- package/lib/utils/devUtils/constants/logos.js +2 -2
- package/package.json +1 -1
@@ -15,23 +15,24 @@ var _react = _interopRequireWildcard(require("react"));
|
|
15
15
|
var _AccountCheckOutlineIcon = _interopRequireDefault(require("@pingux/mdi-react/AccountCheckOutlineIcon"));
|
16
16
|
var _AccountMultipleIcon = _interopRequireDefault(require("@pingux/mdi-react/AccountMultipleIcon"));
|
17
17
|
var _AccountMultipleOutlineIcon = _interopRequireDefault(require("@pingux/mdi-react/AccountMultipleOutlineIcon"));
|
18
|
+
var _ApplicationOutlineIcon = _interopRequireDefault(require("@pingux/mdi-react/ApplicationOutlineIcon"));
|
18
19
|
var _AppsIcon = _interopRequireDefault(require("@pingux/mdi-react/AppsIcon"));
|
19
20
|
var _CheckCircleOutlineIcon = _interopRequireDefault(require("@pingux/mdi-react/CheckCircleOutlineIcon"));
|
20
21
|
var _CodeTagsIcon = _interopRequireDefault(require("@pingux/mdi-react/CodeTagsIcon"));
|
21
22
|
var _CogOutlineIcon = _interopRequireDefault(require("@pingux/mdi-react/CogOutlineIcon"));
|
23
|
+
var _ConnectionIcon = _interopRequireDefault(require("@pingux/mdi-react/ConnectionIcon"));
|
22
24
|
var _EarthIcon = _interopRequireDefault(require("@pingux/mdi-react/EarthIcon"));
|
23
|
-
var _EmoticonHappyOutlineIcon = _interopRequireDefault(require("@pingux/mdi-react/EmoticonHappyOutlineIcon"));
|
24
25
|
var _FileTreeIcon = _interopRequireDefault(require("@pingux/mdi-react/FileTreeIcon"));
|
25
|
-
var _FingerprintIcon = _interopRequireDefault(require("@pingux/mdi-react/FingerprintIcon"));
|
26
26
|
var _GlobeIcon = _interopRequireDefault(require("@pingux/mdi-react/GlobeIcon"));
|
27
|
+
var _KeyChainIcon = _interopRequireDefault(require("@pingux/mdi-react/KeyChainIcon"));
|
27
28
|
var _LayersOutlineIcon = _interopRequireDefault(require("@pingux/mdi-react/LayersOutlineIcon"));
|
29
|
+
var _MonitorScreenshotIcon = _interopRequireDefault(require("@pingux/mdi-react/MonitorScreenshotIcon"));
|
28
30
|
var _OpenInNewIcon = _interopRequireDefault(require("@pingux/mdi-react/OpenInNewIcon"));
|
29
31
|
var _PaletteOutlineIcon = _interopRequireDefault(require("@pingux/mdi-react/PaletteOutlineIcon"));
|
30
|
-
var
|
32
|
+
var _PulseIcon = _interopRequireDefault(require("@pingux/mdi-react/PulseIcon"));
|
31
33
|
var _ShieldCheckOutlineIcon = _interopRequireDefault(require("@pingux/mdi-react/ShieldCheckOutlineIcon"));
|
34
|
+
var _ShieldStarOutlineIcon = _interopRequireDefault(require("@pingux/mdi-react/ShieldStarOutlineIcon"));
|
32
35
|
var _ShowChartIcon = _interopRequireDefault(require("@pingux/mdi-react/ShowChartIcon"));
|
33
|
-
var _TransitConnectionVariantIcon = _interopRequireDefault(require("@pingux/mdi-react/TransitConnectionVariantIcon"));
|
34
|
-
var _ViewDashboardIcon = _interopRequireDefault(require("@pingux/mdi-react/ViewDashboardIcon"));
|
35
36
|
var _ViewDashboardOutlineIcon = _interopRequireDefault(require("@pingux/mdi-react/ViewDashboardOutlineIcon"));
|
36
37
|
var _ViewGridPlusOutlineIcon = _interopRequireDefault(require("@pingux/mdi-react/ViewGridPlusOutlineIcon"));
|
37
38
|
var _WidgetsOutlineIcon = _interopRequireDefault(require("@pingux/mdi-react/WidgetsOutlineIcon"));
|
@@ -130,250 +131,300 @@ var Verify = function Verify(props) {
|
|
130
131
|
}))))));
|
131
132
|
};
|
132
133
|
var data = [{
|
133
|
-
'data-id': '
|
134
|
-
|
135
|
-
|
136
|
-
|
134
|
+
'data-id': 'ipsum-data-id',
|
135
|
+
icon: _PulseIcon["default"],
|
136
|
+
key: 'Ipsum',
|
137
|
+
heading: 'Ipsum',
|
137
138
|
children: [(0, _react2.jsx)(_.NavBarItemLink, {
|
138
|
-
key: "
|
139
|
-
id: "
|
140
|
-
variant: "variants.navBar.itemButton",
|
141
|
-
href: "https://pingidentity.com/"
|
142
|
-
}, "Group"), (0, _react2.jsx)(_.NavBarItemButton, {
|
143
|
-
key: "Dashboard Link Populations",
|
144
|
-
id: "Dashboard Link Populations"
|
145
|
-
}, "Populations")]
|
146
|
-
}, {
|
147
|
-
'data-id': 'identities-data-id',
|
148
|
-
icon: _AccountMultipleIcon["default"],
|
149
|
-
key: 'Identities',
|
150
|
-
heading: 'Identities',
|
151
|
-
children: [(0, _react2.jsx)(_.NavBarItemLink, {
|
152
|
-
key: "Identities Link Users",
|
153
|
-
id: "Identities Link Users",
|
139
|
+
key: "Ipsum Link Users",
|
140
|
+
id: "Ipsum Link Users",
|
154
141
|
href: "https://pingidentity.com/"
|
155
142
|
}, "Users"), (0, _react2.jsx)(_.NavBarItemLink, {
|
156
|
-
key: "
|
157
|
-
id: "
|
143
|
+
key: "Ipsum Link Groups",
|
144
|
+
id: "Ipsum Link Groups",
|
158
145
|
href: "https://pingidentity.com/"
|
159
146
|
}, "Groups"), (0, _react2.jsx)(_.NavBarItemLink, {
|
160
|
-
key: "
|
161
|
-
id: "
|
147
|
+
key: "Ipsum Link Populations",
|
148
|
+
id: "Ipsum Link Populations",
|
162
149
|
href: "https://pingidentity.com/"
|
163
150
|
}, "Populations"), (0, _react2.jsx)(_.NavBarItemLink, {
|
164
|
-
key: "
|
165
|
-
id: "
|
151
|
+
key: "Ipsum Link Attributes",
|
152
|
+
id: "Ipsum Link Attributes",
|
166
153
|
href: "https://pingidentity.com/"
|
167
154
|
}, "Attributes"), (0, _react2.jsx)(_.NavBarItemButton, {
|
168
|
-
key: "
|
169
|
-
id: "
|
155
|
+
key: "Ipsum Link Roles",
|
156
|
+
id: "Ipsum Link Roles",
|
157
|
+
sx: {
|
158
|
+
fontWeight: '500'
|
159
|
+
}
|
170
160
|
}, "Roles")]
|
171
161
|
}, {
|
172
|
-
'data-id': '
|
173
|
-
icon:
|
174
|
-
key: '
|
175
|
-
heading: '
|
176
|
-
children: [{
|
177
|
-
|
178
|
-
|
179
|
-
subTitle: 'Applications'
|
180
|
-
}, (0, _react2.jsx)(_.NavBarItemLink, {
|
181
|
-
key: "Connections Applications",
|
182
|
-
id: "Connections Applications",
|
162
|
+
'data-id': 'dolor-data-id',
|
163
|
+
icon: _AccountMultipleIcon["default"],
|
164
|
+
key: 'Dolor',
|
165
|
+
heading: 'Dolor',
|
166
|
+
children: [(0, _react2.jsx)(_.NavBarItemLink, {
|
167
|
+
key: "Dolor Applications",
|
168
|
+
id: "Dolor Applications",
|
183
169
|
href: "https://pingidentity.com/"
|
184
170
|
}, "Applications"), (0, _react2.jsx)(_.NavBarItemLink, {
|
185
|
-
key: "
|
186
|
-
id: "
|
171
|
+
key: "Dolor Application Catalog",
|
172
|
+
id: "Dolor Application Catalog",
|
187
173
|
href: "https://pingidentity.com/"
|
188
174
|
}, "Application Catalog"), (0, _react2.jsx)(_.NavBarItemLink, {
|
189
|
-
key: "
|
190
|
-
id: "
|
175
|
+
key: "Dolor Application Portal",
|
176
|
+
id: "Dolor Application Portal",
|
191
177
|
href: "https://pingidentity.com/"
|
192
|
-
}, "Application Portal"), {
|
193
|
-
key:
|
194
|
-
|
195
|
-
}, (0, _react2.jsx)(_.NavBarItemLink, {
|
196
|
-
key: "Connections External IDPs",
|
197
|
-
id: "Connections External IDPs",
|
178
|
+
}, "Application Portal"), (0, _react2.jsx)(_.NavBarItemLink, {
|
179
|
+
key: "Dolor External IDPs",
|
180
|
+
id: "Dolor External IDPs",
|
198
181
|
href: "https://pingidentity.com/"
|
199
|
-
}, "External IDPs"), {
|
200
|
-
key:
|
201
|
-
|
202
|
-
}, (0, _react2.jsx)(_.NavBarItemLink, {
|
203
|
-
key: "Connections PingFederate",
|
204
|
-
id: "Connections PingFederate",
|
182
|
+
}, "External IDPs"), (0, _react2.jsx)(_.NavBarItemLink, {
|
183
|
+
key: "Dolor PingFederate",
|
184
|
+
id: "Dolor PingFederate",
|
205
185
|
href: "https://pingidentity.com/"
|
206
186
|
}, "PingFederate"), (0, _react2.jsx)(_.NavBarItemLink, {
|
207
|
-
key: "
|
208
|
-
id: "
|
187
|
+
key: "Dolor PingIntelligence",
|
188
|
+
id: "Dolor PingIntelligence",
|
209
189
|
href: "https://pingidentity.com/"
|
210
190
|
}, "PingIntelligence"), (0, _react2.jsx)(_.Separator, {
|
211
191
|
variant: "separator.navBarSubtitleSeparator"
|
212
192
|
}), (0, _react2.jsx)(_.NavBarItemLink, {
|
213
|
-
key: "
|
214
|
-
id: "
|
193
|
+
key: "Dolor Provisioning",
|
194
|
+
id: "Dolor Provisioning",
|
215
195
|
href: "https://pingidentity.com/"
|
216
196
|
}, "Provisioning"), (0, _react2.jsx)(_.NavBarItemLink, {
|
217
|
-
key: "
|
218
|
-
id: "
|
197
|
+
key: "Dolor WebHooks",
|
198
|
+
id: "Dolor WebHooks",
|
219
199
|
href: "https://pingidentity.com/"
|
220
200
|
}, "WebHooks"), (0, _react2.jsx)(_.NavBarItemLink, {
|
221
|
-
key: "
|
222
|
-
id: "
|
201
|
+
key: "Dolor Gateways",
|
202
|
+
id: "Dolor Gateways",
|
223
203
|
href: "https://pingidentity.com/"
|
224
204
|
}, "Gateways"), (0, _react2.jsx)(_.NavBarItemLink, {
|
225
|
-
key: "
|
226
|
-
id: "
|
205
|
+
key: "Dolor Certificates & Key Pairs",
|
206
|
+
id: "Dolor Certificates & Key Pairs",
|
227
207
|
href: "https://pingidentity.com/"
|
228
208
|
}, "Certificates & Key Pairs"), (0, _react2.jsx)(_.NavBarItemButton, {
|
229
|
-
key: "
|
230
|
-
id: "
|
209
|
+
key: "Dolor Resources",
|
210
|
+
id: "Dolor Resources",
|
211
|
+
sx: {
|
212
|
+
fontWeight: '500'
|
213
|
+
}
|
231
214
|
}, "Resources")]
|
232
215
|
}, {
|
233
|
-
'data-id': '
|
234
|
-
icon:
|
235
|
-
key: '
|
236
|
-
heading: '
|
237
|
-
children: [{
|
238
|
-
|
239
|
-
|
240
|
-
subTitle: 'Policies'
|
241
|
-
}, (0, _react2.jsx)(_.NavBarItemLink, {
|
242
|
-
key: "Experiences Authentication",
|
243
|
-
id: "Experiences Authentication",
|
216
|
+
'data-id': 'sit-data-id',
|
217
|
+
icon: _ApplicationOutlineIcon["default"],
|
218
|
+
key: 'Sit',
|
219
|
+
heading: 'Sit',
|
220
|
+
children: [(0, _react2.jsx)(_.NavBarItemLink, {
|
221
|
+
key: "Sit Authentication",
|
222
|
+
id: "Sit Authentication",
|
244
223
|
href: "https://pingidentity.com/"
|
245
224
|
}, "Authentication"), (0, _react2.jsx)(_.NavBarItemLink, {
|
246
|
-
key: "
|
247
|
-
id: "
|
225
|
+
key: "Sit MFA",
|
226
|
+
id: "Sit MFA",
|
248
227
|
href: "https://pingidentity.com/"
|
249
228
|
}, "MFA"), (0, _react2.jsx)(_.NavBarItemLink, {
|
250
|
-
key: "
|
251
|
-
id: "
|
229
|
+
key: "Sit Password",
|
230
|
+
id: "Sit Password",
|
252
231
|
href: "https://pingidentity.com/"
|
253
232
|
}, "Password"), (0, _react2.jsx)(_.Separator, {
|
254
233
|
variant: "separator.navBarSubtitleSeparator"
|
255
234
|
}), (0, _react2.jsx)(_.NavBarItemLink, {
|
256
|
-
key: "
|
257
|
-
id: "
|
235
|
+
key: "Sit Risk",
|
236
|
+
id: "Sit Risk",
|
258
237
|
href: "https://pingidentity.com/"
|
259
238
|
}, "Risk"), (0, _react2.jsx)(_.NavBarItemLink, {
|
260
|
-
key: "
|
261
|
-
id: "
|
239
|
+
key: "Sit Flows",
|
240
|
+
id: "Sit Flows",
|
262
241
|
href: "https://pingidentity.com/"
|
263
242
|
}, "Flows"), (0, _react2.jsx)(_.NavBarItemLink, {
|
264
|
-
key: "
|
265
|
-
id: "
|
243
|
+
key: "Sit Forms",
|
244
|
+
id: "Sit Forms",
|
266
245
|
href: "https://pingidentity.com/"
|
267
246
|
}, "Forms"), (0, _react2.jsx)(_.NavBarItemLink, {
|
268
|
-
key: "
|
269
|
-
id: "
|
247
|
+
key: "Sit Languages",
|
248
|
+
id: "Sit Languages",
|
270
249
|
href: "https://pingidentity.com/"
|
271
250
|
}, "Languages"), (0, _react2.jsx)(_.NavBarItemLink, {
|
272
|
-
key: "
|
273
|
-
id: "
|
251
|
+
key: "Sit Agreements",
|
252
|
+
id: "Sit Agreements",
|
274
253
|
href: "https://pingidentity.com/"
|
275
254
|
}, "Agreements"), (0, _react2.jsx)(_.NavBarItemLink, {
|
276
|
-
key: "
|
277
|
-
id: "
|
255
|
+
key: "Sit Branding & Themes",
|
256
|
+
id: "Sit Branding & Themes",
|
278
257
|
href: "https://pingidentity.com/"
|
279
258
|
}, "Branding & Themes"), (0, _react2.jsx)(_.NavBarItemLink, {
|
280
|
-
key: "
|
281
|
-
id: "
|
259
|
+
key: "Sit Notifications",
|
260
|
+
id: "Sit Notifications",
|
282
261
|
href: "https://pingidentity.com/"
|
283
262
|
}, "Notifications"), (0, _react2.jsx)(_.NavBarItemLink, {
|
284
|
-
key: "
|
285
|
-
id: "
|
263
|
+
key: "Sit Vanity Domains",
|
264
|
+
id: "Sit Vanity Domains",
|
286
265
|
href: "https://pingidentity.com/",
|
287
266
|
onClick: function onClick(e) {
|
288
267
|
return e.preventDefault();
|
289
268
|
}
|
290
269
|
}, "Vanity Domains"), (0, _react2.jsx)(_.NavBarItemButton, {
|
291
|
-
key: "
|
292
|
-
id: "
|
270
|
+
key: "Sit Sender",
|
271
|
+
id: "Sit Sender",
|
272
|
+
sx: {
|
273
|
+
fontWeight: '500'
|
274
|
+
}
|
293
275
|
}, "Sender")]
|
294
276
|
}];
|
295
277
|
var secondData = [{
|
296
|
-
'data-id': '
|
278
|
+
'data-id': 'amet-data-id',
|
297
279
|
icon: _ViewGridPlusOutlineIcon["default"],
|
298
|
-
key: '
|
299
|
-
heading: '
|
280
|
+
key: 'Amet',
|
281
|
+
heading: 'Amet',
|
300
282
|
customIcon: _OpenInNewIcon["default"],
|
301
|
-
href: 'https://pingidentity.com/'
|
283
|
+
href: 'https://pingidentity.com/',
|
284
|
+
size: 'xs'
|
302
285
|
}, {
|
303
|
-
'data-id': '
|
304
|
-
icon:
|
305
|
-
key: '
|
306
|
-
heading: '
|
286
|
+
'data-id': 'consectur-data-id',
|
287
|
+
icon: _CheckCircleOutlineIcon["default"],
|
288
|
+
key: 'Consectur',
|
289
|
+
heading: 'Consectur',
|
307
290
|
children: [(0, _react2.jsx)(_.NavBarItemButton, {
|
308
|
-
id: "
|
309
|
-
key: "
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
}, (0, _react2.jsx)(_.NavBarItemButton, {
|
314
|
-
key: "
|
315
|
-
id: "
|
291
|
+
id: "Consectur Button Users",
|
292
|
+
key: "Consectur Button Users",
|
293
|
+
sx: {
|
294
|
+
fontWeight: '500'
|
295
|
+
}
|
296
|
+
}, "Users"), (0, _react2.jsx)(_.NavBarItemButton, {
|
297
|
+
key: "Consectur Button Group",
|
298
|
+
id: "Consectur Button Group",
|
299
|
+
sx: {
|
300
|
+
fontWeight: '500'
|
301
|
+
}
|
316
302
|
}, "Group Test")]
|
317
303
|
}, {
|
318
|
-
'data-id': '
|
319
|
-
icon:
|
320
|
-
key: '
|
321
|
-
heading: '
|
304
|
+
'data-id': 'adipiscing-data-id',
|
305
|
+
icon: _ShieldStarOutlineIcon["default"],
|
306
|
+
key: 'Adipiscing',
|
307
|
+
heading: 'Adipiscing',
|
322
308
|
children: [(0, _react2.jsx)(_.NavBarItemButton, {
|
323
|
-
key: "
|
324
|
-
id: "
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
309
|
+
key: "Adipiscing Button Users",
|
310
|
+
id: "Adipiscing Button Users",
|
311
|
+
sx: {
|
312
|
+
fontWeight: '500'
|
313
|
+
}
|
314
|
+
}, "Users"), (0, _react2.jsx)(_.NavBarItemButton, {
|
315
|
+
key: "Adipiscing Button Group",
|
316
|
+
id: "Adipiscing Button Group",
|
317
|
+
sx: {
|
318
|
+
fontWeight: '500'
|
319
|
+
}
|
332
320
|
}, "Group")]
|
333
321
|
}, {
|
334
|
-
'data-id': '
|
322
|
+
'data-id': 'elit-data-id',
|
335
323
|
icon: Verify,
|
336
|
-
key: '
|
337
|
-
heading: '
|
324
|
+
key: 'Elit',
|
325
|
+
heading: 'Elit',
|
338
326
|
children: [(0, _react2.jsx)(_.NavBarItemButton, {
|
339
|
-
key: "
|
340
|
-
id: "
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
327
|
+
key: "Elit Button Users",
|
328
|
+
id: "Elit Button Users",
|
329
|
+
sx: {
|
330
|
+
fontWeight: '500'
|
331
|
+
}
|
332
|
+
}, "Users"), (0, _react2.jsx)(_.NavBarItemButton, {
|
333
|
+
key: "Elit Button Group",
|
334
|
+
id: "Elit Button Group",
|
335
|
+
sx: {
|
336
|
+
fontWeight: '500'
|
337
|
+
}
|
348
338
|
}, "Group")]
|
349
339
|
}, {
|
350
|
-
'data-id': '
|
340
|
+
'data-id': 'sed-do-eiusmod-data-id',
|
351
341
|
icon: Credentials,
|
352
|
-
key: '
|
353
|
-
heading: '
|
342
|
+
key: 'Sed Do Eiusmod',
|
343
|
+
heading: 'Sed Do Eiusmod',
|
354
344
|
children: [(0, _react2.jsx)(_.NavBarItemButton, {
|
355
|
-
key: "
|
356
|
-
id: "
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
345
|
+
key: "Sed Do Eiusmod Button Users",
|
346
|
+
id: "Sed Do Eiusmod Button Users",
|
347
|
+
sx: {
|
348
|
+
fontWeight: '500'
|
349
|
+
}
|
350
|
+
}, "Users"), (0, _react2.jsx)(_.NavBarItemButton, {
|
351
|
+
key: "Sed Do Eiusmod Button Group",
|
352
|
+
id: "Sed Do Eiusmod Button Group",
|
353
|
+
sx: {
|
354
|
+
fontWeight: '500'
|
355
|
+
}
|
364
356
|
}, "Group")]
|
357
|
+
}, {
|
358
|
+
'data-id': 'tempor-data-id',
|
359
|
+
heading: 'Tempor Incididunt ut Labore et Dolore Magna Aliqua',
|
360
|
+
icon: _KeyChainIcon["default"],
|
361
|
+
key: 'tempor',
|
362
|
+
children: [(0, _react2.jsx)(_.NavBarItemLink, {
|
363
|
+
key: "tempor Link Group",
|
364
|
+
id: "tempor Link Group",
|
365
|
+
variant: "variants.navBar.itemButton",
|
366
|
+
href: "https://pingidentity.com/"
|
367
|
+
}, "Group"), (0, _react2.jsx)(_.NavBarItemButton, {
|
368
|
+
key: "tempor Link Populations",
|
369
|
+
id: "tempor Link Populations",
|
370
|
+
sx: {
|
371
|
+
fontWeight: '500'
|
372
|
+
}
|
373
|
+
}, "Populations")]
|
365
374
|
}];
|
366
375
|
var thirdData = [{
|
367
|
-
'data-id': '
|
376
|
+
'data-id': 'ut-enim-data-id',
|
377
|
+
icon: _ConnectionIcon["default"],
|
378
|
+
key: 'Ut-Enim',
|
379
|
+
heading: 'Ut Enim',
|
380
|
+
children: [(0, _react2.jsx)(_.NavBarItemButton, {
|
381
|
+
key: "Ut Enim Button Users",
|
382
|
+
id: "Ut Enim Button Users",
|
383
|
+
sx: {
|
384
|
+
fontWeight: '500'
|
385
|
+
}
|
386
|
+
}, "Users"), (0, _react2.jsx)(_.NavBarItemButton, {
|
387
|
+
key: "Ut Enim Button Group",
|
388
|
+
id: "Ut Enim Button Group",
|
389
|
+
sx: {
|
390
|
+
fontWeight: '500'
|
391
|
+
}
|
392
|
+
}, "Group")]
|
393
|
+
}, {
|
394
|
+
'data-id': 'ad-minim-data-id',
|
395
|
+
icon: _MonitorScreenshotIcon["default"],
|
396
|
+
key: 'ad-minim',
|
397
|
+
heading: 'Ad Minim',
|
398
|
+
children: [(0, _react2.jsx)(_.NavBarItemButton, {
|
399
|
+
key: "Ad Minim Button Users",
|
400
|
+
id: "Ad Minim Button Users",
|
401
|
+
sx: {
|
402
|
+
fontWeight: '500'
|
403
|
+
}
|
404
|
+
}, "Users"), (0, _react2.jsx)(_.NavBarItemButton, {
|
405
|
+
key: "Ad Minim Button Group",
|
406
|
+
id: "Ad Minim Button Group",
|
407
|
+
sx: {
|
408
|
+
fontWeight: '500'
|
409
|
+
}
|
410
|
+
}, "Group")]
|
411
|
+
}, {
|
412
|
+
'data-id': 'veniam-data-id',
|
368
413
|
icon: _EarthIcon["default"],
|
369
|
-
key: '
|
370
|
-
heading: '
|
414
|
+
key: 'Veniam',
|
415
|
+
heading: 'Veniam',
|
371
416
|
children: [(0, _react2.jsx)(_.NavBarItemButton, {
|
372
|
-
key: "
|
373
|
-
id: "
|
417
|
+
key: "Veniam Button Users",
|
418
|
+
id: "Veniam Button Users",
|
419
|
+
sx: {
|
420
|
+
fontWeight: '500'
|
421
|
+
}
|
374
422
|
}, "Users"), (0, _react2.jsx)(_.NavBarItemButton, {
|
375
|
-
key: "
|
376
|
-
id: "
|
423
|
+
key: "Veniam Button Group",
|
424
|
+
id: "Veniam Button Group",
|
425
|
+
sx: {
|
426
|
+
fontWeight: '500'
|
427
|
+
}
|
377
428
|
}, "Group")]
|
378
429
|
}];
|
379
430
|
var Default = function Default() {
|
@@ -396,16 +447,18 @@ var Default = function Default() {
|
|
396
447
|
}, (0, _react2.jsx)(_.NavBarItem, {
|
397
448
|
"data-id": "nav-bar-item",
|
398
449
|
icon: _GlobeIcon["default"],
|
399
|
-
id: "
|
400
|
-
key: "
|
401
|
-
text: "
|
450
|
+
id: "Lorem",
|
451
|
+
key: "Lorem",
|
452
|
+
text: "Lorem",
|
453
|
+
iconProps: {
|
454
|
+
size: '18px'
|
455
|
+
}
|
402
456
|
}), (0, _react2.jsx)(_.NavBarSection, {
|
403
457
|
items: data,
|
404
458
|
"data-id": "nav-bar-section"
|
405
459
|
}), (0, _react2.jsx)(_.NavBarSection, {
|
406
460
|
items: secondData,
|
407
461
|
hasSeparator: true,
|
408
|
-
title: "PingOne Services",
|
409
462
|
"data-id": "second-nav-bar-section"
|
410
463
|
}), (0, _react2.jsx)(_.NavBarSection, {
|
411
464
|
items: thirdData,
|
@@ -591,7 +644,7 @@ var OnyxDefault = function OnyxDefault() {
|
|
591
644
|
};
|
592
645
|
exports.OnyxDefault = OnyxDefault;
|
593
646
|
var Controlled = function Controlled() {
|
594
|
-
var _useState = (0, _react.useState)('
|
647
|
+
var _useState = (0, _react.useState)('Lorem Link Group'),
|
595
648
|
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
596
649
|
selectedKey = _useState2[0],
|
597
650
|
setSelectedKey = _useState2[1];
|
@@ -633,16 +686,18 @@ var Controlled = function Controlled() {
|
|
633
686
|
}, (0, _react2.jsx)(_.NavBarItem, {
|
634
687
|
"data-id": "nav-bar-item",
|
635
688
|
icon: _GlobeIcon["default"],
|
636
|
-
id: "
|
637
|
-
key: "
|
638
|
-
text: "
|
689
|
+
id: "Lorem",
|
690
|
+
key: "Lorem",
|
691
|
+
text: "Lorem",
|
692
|
+
iconProps: {
|
693
|
+
size: '18px'
|
694
|
+
}
|
639
695
|
}), (0, _react2.jsx)(_.NavBarSection, {
|
640
696
|
items: data,
|
641
697
|
"data-id": "first-nav-bar-section"
|
642
698
|
}), (0, _react2.jsx)(_.NavBarSection, {
|
643
699
|
items: secondData,
|
644
700
|
hasSeparator: true,
|
645
|
-
title: "PingOne Services",
|
646
701
|
"data-id": "second-nav-bar-section"
|
647
702
|
}), (0, _react2.jsx)(_.NavBarSection, {
|
648
703
|
items: customData,
|
@@ -672,16 +727,18 @@ var AutoCollapse = function AutoCollapse() {
|
|
672
727
|
}, (0, _react2.jsx)(_.NavBarItem, {
|
673
728
|
"data-id": "nav-bar-item",
|
674
729
|
icon: _GlobeIcon["default"],
|
675
|
-
id: "
|
676
|
-
key: "
|
677
|
-
text: "
|
730
|
+
id: "Lorem",
|
731
|
+
key: "Lorem",
|
732
|
+
text: "Lorem",
|
733
|
+
iconProps: {
|
734
|
+
size: '18px'
|
735
|
+
}
|
678
736
|
}), (0, _react2.jsx)(_.NavBarSection, {
|
679
737
|
items: data,
|
680
738
|
"data-id": "nav-bar-section"
|
681
739
|
}), (0, _react2.jsx)(_.NavBarSection, {
|
682
740
|
items: secondData,
|
683
741
|
hasSeparator: true,
|
684
|
-
title: "PingOne Services",
|
685
742
|
"data-id": "second-nav-bar-section"
|
686
743
|
}), (0, _react2.jsx)(_.NavBarSection, {
|
687
744
|
items: thirdData,
|
@@ -14,6 +14,7 @@ _Object$defineProperty(exports, "__esModule", {
|
|
14
14
|
});
|
15
15
|
exports["default"] = void 0;
|
16
16
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
|
17
|
+
var _colors = require("../../styles/colors");
|
17
18
|
var _AccordionGrid = _interopRequireDefault(require("../AccordionGridGroup/AccordionGrid.styles"));
|
18
19
|
var _Buttons = require("../Button/Buttons.styles");
|
19
20
|
var _Text = require("../Text/Text.styles");
|
@@ -202,7 +203,7 @@ var subtitle = {
|
|
202
203
|
};
|
203
204
|
var headerText = _objectSpread(_objectSpread({}, _Text.wordWrap), {}, {
|
204
205
|
whiteSpace: 'break-spaces',
|
205
|
-
lineHeight: 1,
|
206
|
+
lineHeight: 1.15,
|
206
207
|
fontSize: 'md',
|
207
208
|
fontWeight: 1,
|
208
209
|
maxWidth: '150px',
|
@@ -237,9 +238,9 @@ var headerNav = {
|
|
237
238
|
fontSize: '16px',
|
238
239
|
'&.is-focused': {
|
239
240
|
outline: 'none',
|
240
|
-
boxShadow:
|
241
|
-
WebkitBoxShadow:
|
242
|
-
MozBoxShadow:
|
241
|
+
boxShadow: "0 0 0 1px ".concat(_colors.focus),
|
242
|
+
WebkitBoxShadow: "0 0 0 1px ".concat(_colors.focus),
|
243
|
+
MozBoxShadow: "0 0 0 1px ".concat(_colors.focus)
|
243
244
|
},
|
244
245
|
'&.is-hovered': {
|
245
246
|
backgroundColor: 'accent.10'
|
@@ -18,7 +18,7 @@ var _NavBarContext = require("../../context/NavBarContext");
|
|
18
18
|
var _hooks = require("../../hooks");
|
19
19
|
var _index = require("../../index");
|
20
20
|
var _react2 = require("@emotion/react");
|
21
|
-
var _excluded = ["icon", "text", "className", "id", "onPress"];
|
21
|
+
var _excluded = ["icon", "text", "className", "id", "onPress", "iconProps"];
|
22
22
|
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); }
|
23
23
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { _Object$defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
24
24
|
var NavBarItem = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
@@ -27,6 +27,7 @@ var NavBarItem = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
27
27
|
className = props.className,
|
28
28
|
key = props.id,
|
29
29
|
onPressCallback = props.onPress,
|
30
|
+
iconProps = props.iconProps,
|
30
31
|
others = (0, _objectWithoutProperties2["default"])(props, _excluded);
|
31
32
|
var navItemRef = (0, _hooks.useLocalOrForwardRef)(null);
|
32
33
|
|
@@ -84,7 +85,7 @@ var NavBarItem = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
84
85
|
sx: {
|
85
86
|
alignItems: 'center'
|
86
87
|
}
|
87
|
-
}, icon && (0, _react2.jsx)(_index.Icon, {
|
88
|
+
}, icon && (0, _react2.jsx)(_index.Icon, (0, _extends2["default"])({
|
88
89
|
icon: icon,
|
89
90
|
title: {
|
90
91
|
name: text
|
@@ -95,7 +96,7 @@ var NavBarItem = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
95
96
|
color: color,
|
96
97
|
fill: color
|
97
98
|
}
|
98
|
-
}), (0, _react2.jsx)(_index.Text, {
|
99
|
+
}, iconProps)), (0, _react2.jsx)(_index.Text, {
|
99
100
|
variant: state.navStyles.navBarItemText
|
100
101
|
}, text)));
|
101
102
|
});
|
@@ -13,12 +13,11 @@ var _NavBarContext = require("../../context/NavBarContext");
|
|
13
13
|
var _hooks = require("../../hooks");
|
14
14
|
var _index = require("../../index");
|
15
15
|
var _react2 = require("@emotion/react");
|
16
|
-
var _excluded = ["className", "id", "onPress"
|
16
|
+
var _excluded = ["className", "id", "onPress"];
|
17
17
|
var NavBarItemButton = function NavBarItemButton(props) {
|
18
18
|
var className = props.className,
|
19
19
|
key = props.id,
|
20
20
|
onPressCallback = props.onPress,
|
21
|
-
sx = props.sx,
|
22
21
|
others = (0, _objectWithoutProperties2["default"])(props, _excluded);
|
23
22
|
var state = (0, _NavBarContext.useNavBarContext)();
|
24
23
|
var isSelected = state.selectedKey === key;
|