@pingux/astro 2.119.0-alpha.0 → 2.119.0-alpha.2
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.d.ts +1 -0
- package/lib/cjs/components/NavBar/NavBar.stories.js +272 -107
- package/lib/cjs/{styles/themeOverrides → components/NavBar}/stories/NavBar.chromatic.stories.js +53 -53
- package/lib/cjs/components/NavBar/stories/NavBarNextGenComponent.js +191 -0
- package/lib/cjs/{styles/themeOverrides/nextGenDarkMode → components/NavBar}/stories/NextGenDarkNavStory.chomatic.stories.js +2 -2
- package/lib/cjs/{styles/themes/next-gen → components/NavBar}/stories/NextGenNavBar.chromatic.stories.js +1 -1
- package/lib/cjs/components/NavBarSection/NavBarItem.js +3 -1
- package/lib/cjs/components/NavBarSection/NavBarItemHeader.js +9 -6
- package/lib/cjs/components/NavBarSection/NavBarItemHeader.test.d.ts +1 -0
- package/lib/cjs/components/NavBarSection/NavBarItemHeader.test.js +86 -0
- package/lib/cjs/styles/themes/next-gen/convertedComponentList.d.ts +4 -0
- package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +7 -2
- package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +13 -0
- package/lib/cjs/styles/themes/next-gen/variants/links.d.ts +9 -0
- package/lib/cjs/styles/themes/next-gen/variants/links.js +12 -1
- package/lib/cjs/styles/themes/next-gen/variants/navbar.d.ts +4 -0
- package/lib/cjs/styles/themes/next-gen/variants/navbar.js +11 -7
- package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +4 -0
- package/lib/cjs/utils/devUtils/shouldReturnComingSoon.js +8 -2
- package/lib/components/NavBar/NavBar.stories.js +196 -32
- package/lib/{styles/themeOverrides → components/NavBar}/stories/NavBar.chromatic.stories.js +2 -2
- package/lib/components/NavBar/stories/NavBarNextGenComponent.js +182 -0
- package/lib/{styles/themeOverrides/nextGenDarkMode → components/NavBar}/stories/NextGenDarkNavStory.chomatic.stories.js +2 -2
- package/lib/{styles/themes/next-gen → components/NavBar}/stories/NextGenNavBar.chromatic.stories.js +1 -1
- package/lib/components/NavBarSection/NavBarItem.js +4 -2
- package/lib/components/NavBarSection/NavBarItemHeader.js +7 -4
- package/lib/components/NavBarSection/NavBarItemHeader.test.js +83 -0
- package/lib/styles/themes/next-gen/convertedComponentList.js +5 -1
- package/lib/styles/themes/next-gen/variants/links.js +12 -1
- package/lib/styles/themes/next-gen/variants/navbar.js +11 -7
- package/lib/utils/devUtils/shouldReturnComingSoon.js +9 -3
- package/package.json +1 -1
- package/lib/cjs/recipes/NextGen/NavBarNextGen.stories.d.ts +0 -6
- package/lib/cjs/recipes/NextGen/NavBarNextGen.stories.js +0 -19
- package/lib/cjs/styles/themes/next-gen/stories/NavBarNextGenComponent.js +0 -191
- package/lib/recipes/NextGen/NavBarNextGen.stories.js +0 -9
- package/lib/styles/themes/next-gen/stories/NavBarNextGenComponent.js +0 -182
- /package/lib/cjs/{styles/themes/next-gen → components/NavBar}/stories/NavBarNextGenComponent.d.ts +0 -0
- /package/lib/cjs/{styles/themeOverrides/nextGenDarkMode → components/NavBar}/stories/NextGenDarkNavStory.chomatic.stories.d.ts +0 -0
- /package/lib/cjs/{styles/themes/next-gen → components/NavBar}/stories/NextGenNavBar.chromatic.stories.d.ts +0 -0
package/lib/cjs/{styles/themeOverrides → components/NavBar}/stories/NavBar.chromatic.stories.js
RENAMED
@@ -16,12 +16,12 @@ var _GlobeIcon = _interopRequireDefault(require("@pingux/mdi-react/GlobeIcon"));
|
|
16
16
|
var _ScaleBalanceIcon = _interopRequireDefault(require("@pingux/mdi-react/ScaleBalanceIcon"));
|
17
17
|
var _TransitConnectionVariantIcon = _interopRequireDefault(require("@pingux/mdi-react/TransitConnectionVariantIcon"));
|
18
18
|
var _ViewDashboardIcon = _interopRequireDefault(require("@pingux/mdi-react/ViewDashboardIcon"));
|
19
|
-
var
|
20
|
-
var _withUiLibraryCss = _interopRequireDefault(require("
|
19
|
+
var _ = require("../../..");
|
20
|
+
var _withUiLibraryCss = _interopRequireDefault(require("../../../styles/themeOverrides/withUiLibraryCss"));
|
21
21
|
var _react2 = require("@emotion/react");
|
22
22
|
var _default = {
|
23
23
|
title: 'Chromatic Only NavBar',
|
24
|
-
component:
|
24
|
+
component: _.NavBar,
|
25
25
|
decorators: [_withUiLibraryCss["default"]]
|
26
26
|
};
|
27
27
|
exports["default"] = _default;
|
@@ -119,12 +119,12 @@ var data = [{
|
|
119
119
|
heading: 'Dashboard',
|
120
120
|
icon: _ViewDashboardIcon["default"],
|
121
121
|
key: 'Dashboard',
|
122
|
-
children: [(0, _react2.jsx)(
|
122
|
+
children: [(0, _react2.jsx)(_.NavBarItemLink, {
|
123
123
|
key: "Dashboard Link Group",
|
124
124
|
id: "Dashboard Link Group",
|
125
125
|
variant: "variants.navBar.itemButton",
|
126
126
|
href: "https://pingidentity.com/"
|
127
|
-
}, "Group"), (0, _react2.jsx)(
|
127
|
+
}, "Group"), (0, _react2.jsx)(_.NavBarItemButton, {
|
128
128
|
key: "Dashboard Link Populations",
|
129
129
|
id: "Dashboard Link Populations"
|
130
130
|
}, "Populations")]
|
@@ -133,23 +133,23 @@ var data = [{
|
|
133
133
|
icon: _AccountMultipleIcon["default"],
|
134
134
|
key: 'Identities',
|
135
135
|
heading: 'Identities',
|
136
|
-
children: [(0, _react2.jsx)(
|
136
|
+
children: [(0, _react2.jsx)(_.NavBarItemLink, {
|
137
137
|
key: "Identities Link Users",
|
138
138
|
id: "Identities Link Users",
|
139
139
|
href: "https://pingidentity.com/"
|
140
|
-
}, "Users"), (0, _react2.jsx)(
|
140
|
+
}, "Users"), (0, _react2.jsx)(_.NavBarItemLink, {
|
141
141
|
key: "Identities Link Groups",
|
142
142
|
id: "Identities Link Groups",
|
143
143
|
href: "https://pingidentity.com/"
|
144
|
-
}, "Groups"), (0, _react2.jsx)(
|
144
|
+
}, "Groups"), (0, _react2.jsx)(_.NavBarItemLink, {
|
145
145
|
key: "Identities Link Populations",
|
146
146
|
id: "Identities Link Populations",
|
147
147
|
href: "https://pingidentity.com/"
|
148
|
-
}, "Populations"), (0, _react2.jsx)(
|
148
|
+
}, "Populations"), (0, _react2.jsx)(_.NavBarItemLink, {
|
149
149
|
key: "Identities Link Attributes",
|
150
150
|
id: "Identities Link Attributes",
|
151
151
|
href: "https://pingidentity.com/"
|
152
|
-
}, "Attributes"), (0, _react2.jsx)(
|
152
|
+
}, "Attributes"), (0, _react2.jsx)(_.NavBarItemButton, {
|
153
153
|
key: "Identities Link Roles",
|
154
154
|
id: "Identities Link Roles"
|
155
155
|
}, "Roles")]
|
@@ -161,53 +161,53 @@ var data = [{
|
|
161
161
|
children: [{
|
162
162
|
hasSeparator: false,
|
163
163
|
subTitle: 'Applications'
|
164
|
-
}, (0, _react2.jsx)(
|
164
|
+
}, (0, _react2.jsx)(_.NavBarItemLink, {
|
165
165
|
key: "Connections Applications",
|
166
166
|
id: "Connections Applications",
|
167
167
|
href: "https://pingidentity.com/"
|
168
|
-
}, "Applications"), (0, _react2.jsx)(
|
168
|
+
}, "Applications"), (0, _react2.jsx)(_.NavBarItemLink, {
|
169
169
|
key: "Connections Application Catalog",
|
170
170
|
id: "Connections Application Catalog",
|
171
171
|
href: "https://pingidentity.com/"
|
172
|
-
}, "Application Catalog"), (0, _react2.jsx)(
|
172
|
+
}, "Application Catalog"), (0, _react2.jsx)(_.NavBarItemLink, {
|
173
173
|
key: "Connections Application Portal",
|
174
174
|
id: "Connections Application Portal",
|
175
175
|
href: "https://pingidentity.com/"
|
176
176
|
}, "Application Portal"), {
|
177
177
|
subTitle: 'Identity Providers'
|
178
|
-
}, (0, _react2.jsx)(
|
178
|
+
}, (0, _react2.jsx)(_.NavBarItemLink, {
|
179
179
|
key: "Connections External IDPs",
|
180
180
|
id: "Connections External IDPs",
|
181
181
|
href: "https://pingidentity.com/"
|
182
182
|
}, "External IDPs"), {
|
183
183
|
subTitle: 'Ping Products'
|
184
|
-
}, (0, _react2.jsx)(
|
184
|
+
}, (0, _react2.jsx)(_.NavBarItemLink, {
|
185
185
|
key: "Connections PingFederate",
|
186
186
|
id: "Connections PingFederate",
|
187
187
|
href: "https://pingidentity.com/"
|
188
|
-
}, "PingFederate"), (0, _react2.jsx)(
|
188
|
+
}, "PingFederate"), (0, _react2.jsx)(_.NavBarItemLink, {
|
189
189
|
key: "Connections PingIntelligence",
|
190
190
|
id: "Connections PingIntelligence",
|
191
191
|
href: "https://pingidentity.com/"
|
192
|
-
}, "PingIntelligence"), (0, _react2.jsx)(
|
192
|
+
}, "PingIntelligence"), (0, _react2.jsx)(_.Separator, {
|
193
193
|
variant: "separator.navBarSubtitleSeparator"
|
194
|
-
}), (0, _react2.jsx)(
|
194
|
+
}), (0, _react2.jsx)(_.NavBarItemLink, {
|
195
195
|
key: "Connections Provisioning",
|
196
196
|
id: "Connections Provisioning",
|
197
197
|
href: "https://pingidentity.com/"
|
198
|
-
}, "Provisioning"), (0, _react2.jsx)(
|
198
|
+
}, "Provisioning"), (0, _react2.jsx)(_.NavBarItemLink, {
|
199
199
|
key: "Connections WebHooks",
|
200
200
|
id: "Connections WebHooks",
|
201
201
|
href: "https://pingidentity.com/"
|
202
|
-
}, "WebHooks"), (0, _react2.jsx)(
|
202
|
+
}, "WebHooks"), (0, _react2.jsx)(_.NavBarItemLink, {
|
203
203
|
key: "Connections Gateways",
|
204
204
|
id: "Connections Gateways",
|
205
205
|
href: "https://pingidentity.com/"
|
206
|
-
}, "Gateways"), (0, _react2.jsx)(
|
206
|
+
}, "Gateways"), (0, _react2.jsx)(_.NavBarItemLink, {
|
207
207
|
key: "Connections Certificates & Key Pairs",
|
208
208
|
id: "Connections Certificates & Key Pairs",
|
209
209
|
href: "https://pingidentity.com/"
|
210
|
-
}, "Certificates & Key Pairs"), (0, _react2.jsx)(
|
210
|
+
}, "Certificates & Key Pairs"), (0, _react2.jsx)(_.NavBarItemButton, {
|
211
211
|
key: "Connections Resources",
|
212
212
|
id: "Connections Resources"
|
213
213
|
}, "Resources")]
|
@@ -219,56 +219,56 @@ var data = [{
|
|
219
219
|
children: [{
|
220
220
|
hasSeparator: false,
|
221
221
|
subTitle: 'Policies'
|
222
|
-
}, (0, _react2.jsx)(
|
222
|
+
}, (0, _react2.jsx)(_.NavBarItemLink, {
|
223
223
|
key: "Experiences Authentication",
|
224
224
|
id: "Experiences Authentication",
|
225
225
|
href: "https://pingidentity.com/"
|
226
|
-
}, "Authentication"), (0, _react2.jsx)(
|
226
|
+
}, "Authentication"), (0, _react2.jsx)(_.NavBarItemLink, {
|
227
227
|
key: "Experiences MFA",
|
228
228
|
id: "Experiences MFA",
|
229
229
|
href: "https://pingidentity.com/"
|
230
|
-
}, "MFA"), (0, _react2.jsx)(
|
230
|
+
}, "MFA"), (0, _react2.jsx)(_.NavBarItemLink, {
|
231
231
|
key: "Experiences Password",
|
232
232
|
id: "Experiences Password",
|
233
233
|
href: "https://pingidentity.com/"
|
234
|
-
}, "Password"), (0, _react2.jsx)(
|
234
|
+
}, "Password"), (0, _react2.jsx)(_.Separator, {
|
235
235
|
variant: "separator.navBarSubtitleSeparator"
|
236
|
-
}), (0, _react2.jsx)(
|
236
|
+
}), (0, _react2.jsx)(_.NavBarItemLink, {
|
237
237
|
key: "Experiences Risk",
|
238
238
|
id: "Experiences Risk",
|
239
239
|
href: "https://pingidentity.com/"
|
240
|
-
}, "Risk"), (0, _react2.jsx)(
|
240
|
+
}, "Risk"), (0, _react2.jsx)(_.NavBarItemLink, {
|
241
241
|
key: "Experiences Flows",
|
242
242
|
id: "Experiences Flows",
|
243
243
|
href: "https://pingidentity.com/"
|
244
|
-
}, "Flows"), (0, _react2.jsx)(
|
244
|
+
}, "Flows"), (0, _react2.jsx)(_.NavBarItemLink, {
|
245
245
|
key: "Experiences Forms",
|
246
246
|
id: "Experiences Forms",
|
247
247
|
href: "https://pingidentity.com/"
|
248
|
-
}, "Forms"), (0, _react2.jsx)(
|
248
|
+
}, "Forms"), (0, _react2.jsx)(_.NavBarItemLink, {
|
249
249
|
key: "Experiences Languages",
|
250
250
|
id: "Experiences Languages",
|
251
251
|
href: "https://pingidentity.com/"
|
252
|
-
}, "Languages"), (0, _react2.jsx)(
|
252
|
+
}, "Languages"), (0, _react2.jsx)(_.NavBarItemLink, {
|
253
253
|
key: "Experiences Agreements",
|
254
254
|
id: "Experiences Agreements",
|
255
255
|
href: "https://pingidentity.com/"
|
256
|
-
}, "Agreements"), (0, _react2.jsx)(
|
256
|
+
}, "Agreements"), (0, _react2.jsx)(_.NavBarItemLink, {
|
257
257
|
key: "Experiences Branding & Themes",
|
258
258
|
id: "Experiences Branding & Themes",
|
259
259
|
href: "https://pingidentity.com/"
|
260
|
-
}, "Branding & Themes"), (0, _react2.jsx)(
|
260
|
+
}, "Branding & Themes"), (0, _react2.jsx)(_.NavBarItemLink, {
|
261
261
|
key: "Experiences Notifications",
|
262
262
|
id: "Experiences Notifications",
|
263
263
|
href: "https://pingidentity.com/"
|
264
|
-
}, "Notifications"), (0, _react2.jsx)(
|
264
|
+
}, "Notifications"), (0, _react2.jsx)(_.NavBarItemLink, {
|
265
265
|
key: "Experiences Vanity Domains",
|
266
266
|
id: "Experiences Vanity Domains",
|
267
267
|
href: "https://pingidentity.com/",
|
268
268
|
onClick: function onClick(e) {
|
269
269
|
return e.preventDefault();
|
270
270
|
}
|
271
|
-
}, "Vanity Domains"), (0, _react2.jsx)(
|
271
|
+
}, "Vanity Domains"), (0, _react2.jsx)(_.NavBarItemButton, {
|
272
272
|
key: "Experiences Sender",
|
273
273
|
id: "Experiences Sender"
|
274
274
|
}, "Sender")]
|
@@ -278,12 +278,12 @@ var secondData = [{
|
|
278
278
|
icon: _FingerprintIcon["default"],
|
279
279
|
key: 'MFA',
|
280
280
|
heading: 'MFA',
|
281
|
-
children: [(0, _react2.jsx)(
|
281
|
+
children: [(0, _react2.jsx)(_.NavBarItemButton, {
|
282
282
|
id: "MFA Button Users",
|
283
283
|
key: "MFA Button Users"
|
284
284
|
}, "Users"), {
|
285
285
|
subTitle: 'PingOne Services'
|
286
|
-
}, (0, _react2.jsx)(
|
286
|
+
}, (0, _react2.jsx)(_.NavBarItemButton, {
|
287
287
|
key: "MFA Button Group",
|
288
288
|
id: "MFA Button Group"
|
289
289
|
}, "Group Test")]
|
@@ -292,13 +292,13 @@ var secondData = [{
|
|
292
292
|
icon: _ScaleBalanceIcon["default"],
|
293
293
|
key: 'Risk',
|
294
294
|
heading: 'Risk',
|
295
|
-
children: [(0, _react2.jsx)(
|
295
|
+
children: [(0, _react2.jsx)(_.NavBarItemButton, {
|
296
296
|
key: "Risk Button Users",
|
297
297
|
id: "Risk Button Users"
|
298
298
|
}, "Users"), {
|
299
299
|
hasSeparator: false,
|
300
300
|
subTitle: 'PingOne Services'
|
301
|
-
}, (0, _react2.jsx)(
|
301
|
+
}, (0, _react2.jsx)(_.NavBarItemButton, {
|
302
302
|
key: "Risk Button Group",
|
303
303
|
id: "Risk Button Group"
|
304
304
|
}, "Group")]
|
@@ -307,13 +307,13 @@ var secondData = [{
|
|
307
307
|
icon: Verify,
|
308
308
|
key: 'Verify',
|
309
309
|
heading: 'Verify',
|
310
|
-
children: [(0, _react2.jsx)(
|
310
|
+
children: [(0, _react2.jsx)(_.NavBarItemButton, {
|
311
311
|
key: "Verify Button Users",
|
312
312
|
id: "Verify Button Users"
|
313
313
|
}, "Users"), {
|
314
314
|
hasSeparator: false,
|
315
315
|
subTitle: 'PingOne Services'
|
316
|
-
}, (0, _react2.jsx)(
|
316
|
+
}, (0, _react2.jsx)(_.NavBarItemButton, {
|
317
317
|
key: "Verify Button Group",
|
318
318
|
id: "Verify Button Group"
|
319
319
|
}, "Group")]
|
@@ -322,13 +322,13 @@ var secondData = [{
|
|
322
322
|
icon: Credentials,
|
323
323
|
key: 'Credentials',
|
324
324
|
heading: 'Credentials',
|
325
|
-
children: [(0, _react2.jsx)(
|
325
|
+
children: [(0, _react2.jsx)(_.NavBarItemButton, {
|
326
326
|
key: "Credentials Button Users",
|
327
327
|
id: "Credentials Button Users"
|
328
328
|
}, "Users"), {
|
329
329
|
hasSeparator: false,
|
330
330
|
subTitle: 'PingOne Services'
|
331
|
-
}, (0, _react2.jsx)(
|
331
|
+
}, (0, _react2.jsx)(_.NavBarItemButton, {
|
332
332
|
key: "Credentials Button Group",
|
333
333
|
id: "Credentials Button Group"
|
334
334
|
}, "Group")]
|
@@ -338,42 +338,42 @@ var thirdData = [{
|
|
338
338
|
icon: _EarthIcon["default"],
|
339
339
|
key: 'Environment',
|
340
340
|
heading: 'Environment title that is so long, it wraps',
|
341
|
-
children: [(0, _react2.jsx)(
|
341
|
+
children: [(0, _react2.jsx)(_.NavBarItemButton, {
|
342
342
|
key: "Earth Button Users",
|
343
343
|
id: "Earth Button Users"
|
344
|
-
}, "Users"), (0, _react2.jsx)(
|
344
|
+
}, "Users"), (0, _react2.jsx)(_.NavBarItemButton, {
|
345
345
|
key: "Earth Button Group",
|
346
346
|
id: "Earth Button Group"
|
347
347
|
}, "Group")]
|
348
348
|
}];
|
349
349
|
var Default = function Default() {
|
350
|
-
return (0, _react2.jsx)(
|
350
|
+
return (0, _react2.jsx)(_.NavBar, null, (0, _react2.jsx)(_.Box, {
|
351
351
|
padding: "md"
|
352
|
-
}, (0, _react2.jsx)(
|
352
|
+
}, (0, _react2.jsx)(_.Link, {
|
353
353
|
"aria-label": "home link",
|
354
354
|
href: "https://pingidentity.com",
|
355
355
|
target: "_blank"
|
356
|
-
}, logo)), (0, _react2.jsx)(
|
356
|
+
}, logo)), (0, _react2.jsx)(_.Separator, {
|
357
357
|
m: 0,
|
358
358
|
backgroundColor: "neutral.60"
|
359
|
-
}), (0, _react2.jsx)(
|
359
|
+
}), (0, _react2.jsx)(_.Box, {
|
360
360
|
variant: "navBar.sectionContainer",
|
361
361
|
paddingBottom: "xl"
|
362
|
-
}, (0, _react2.jsx)(
|
362
|
+
}, (0, _react2.jsx)(_.NavBarItem, {
|
363
363
|
"data-id": "nav-bar-item",
|
364
364
|
icon: _GlobeIcon["default"],
|
365
365
|
id: "Overview",
|
366
366
|
key: "Overview",
|
367
367
|
text: "Overview"
|
368
|
-
}), (0, _react2.jsx)(
|
368
|
+
}), (0, _react2.jsx)(_.NavBarSection, {
|
369
369
|
items: data,
|
370
370
|
"data-id": "nav-bar-section"
|
371
|
-
}), (0, _react2.jsx)(
|
371
|
+
}), (0, _react2.jsx)(_.NavBarSection, {
|
372
372
|
items: secondData,
|
373
373
|
hasSeparator: true,
|
374
374
|
title: "PingOne Services",
|
375
375
|
"data-id": "second-nav-bar-section"
|
376
|
-
}), (0, _react2.jsx)(
|
376
|
+
}), (0, _react2.jsx)(_.NavBarSection, {
|
377
377
|
items: thirdData,
|
378
378
|
hasSeparator: true,
|
379
379
|
"data-id": "third-nav-bar-section"
|
@@ -0,0 +1,191 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
4
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
5
|
+
_Object$defineProperty(exports, "__esModule", {
|
6
|
+
value: true
|
7
|
+
});
|
8
|
+
exports.NavBarNextGenComponent = void 0;
|
9
|
+
var _react = _interopRequireDefault(require("react"));
|
10
|
+
var _AccountCheckOutlineIcon = _interopRequireDefault(require("@pingux/mdi-react/AccountCheckOutlineIcon"));
|
11
|
+
var _AccountMultipleOutlineIcon = _interopRequireDefault(require("@pingux/mdi-react/AccountMultipleOutlineIcon"));
|
12
|
+
var _AppsIcon = _interopRequireDefault(require("@pingux/mdi-react/AppsIcon"));
|
13
|
+
var _CheckCircleOutlineIcon = _interopRequireDefault(require("@pingux/mdi-react/CheckCircleOutlineIcon"));
|
14
|
+
var _CodeTagsIcon = _interopRequireDefault(require("@pingux/mdi-react/CodeTagsIcon"));
|
15
|
+
var _CogOutlineIcon = _interopRequireDefault(require("@pingux/mdi-react/CogOutlineIcon"));
|
16
|
+
var _FileTreeIcon = _interopRequireDefault(require("@pingux/mdi-react/FileTreeIcon"));
|
17
|
+
var _LayersOutlineIcon = _interopRequireDefault(require("@pingux/mdi-react/LayersOutlineIcon"));
|
18
|
+
var _PaletteOutlineIcon = _interopRequireDefault(require("@pingux/mdi-react/PaletteOutlineIcon"));
|
19
|
+
var _ShieldCheckOutlineIcon = _interopRequireDefault(require("@pingux/mdi-react/ShieldCheckOutlineIcon"));
|
20
|
+
var _ShowChartIcon = _interopRequireDefault(require("@pingux/mdi-react/ShowChartIcon"));
|
21
|
+
var _ViewDashboardOutlineIcon = _interopRequireDefault(require("@pingux/mdi-react/ViewDashboardOutlineIcon"));
|
22
|
+
var _WidgetsOutlineIcon = _interopRequireDefault(require("@pingux/mdi-react/WidgetsOutlineIcon"));
|
23
|
+
var _ = require("../../..");
|
24
|
+
var _hooks = require("../../../hooks");
|
25
|
+
var _react2 = require("@emotion/react");
|
26
|
+
var NavBarNextGenComponent = function NavBarNextGenComponent() {
|
27
|
+
var firstSectionData = [{
|
28
|
+
'data-id': 'dashboard-data-id',
|
29
|
+
heading: 'Monitoring',
|
30
|
+
icon: _ShowChartIcon["default"],
|
31
|
+
key: 'Monitoring',
|
32
|
+
children: [(0, _react2.jsx)(_.NavBarItemButton, {
|
33
|
+
key: "Dashboards",
|
34
|
+
id: "Dashboards"
|
35
|
+
}, "Dashboards"), (0, _react2.jsx)(_.NavBarItemButton, {
|
36
|
+
key: "Audit",
|
37
|
+
id: "Audit"
|
38
|
+
}, "Audits")]
|
39
|
+
}, {
|
40
|
+
'data-id': 'Directory-data-id',
|
41
|
+
heading: 'Directory',
|
42
|
+
icon: _AccountMultipleOutlineIcon["default"],
|
43
|
+
key: 'Directory',
|
44
|
+
children: [(0, _react2.jsx)(_.NavBarItemButton, {
|
45
|
+
key: "Users",
|
46
|
+
id: "Users"
|
47
|
+
}, "Users"), (0, _react2.jsx)(_.NavBarItemButton, {
|
48
|
+
key: "Group",
|
49
|
+
id: "Group"
|
50
|
+
}, "Groups")]
|
51
|
+
}, {
|
52
|
+
'data-id': 'Applications-data-id',
|
53
|
+
heading: 'Applications',
|
54
|
+
icon: _AppsIcon["default"],
|
55
|
+
key: 'Applications',
|
56
|
+
children: [(0, _react2.jsx)(_.NavBarItemButton, {
|
57
|
+
key: "Applications-sub",
|
58
|
+
id: "Applications-sub"
|
59
|
+
}, "Applications"), (0, _react2.jsx)(_.NavBarItemButton, {
|
60
|
+
key: "Resources",
|
61
|
+
id: "Resources"
|
62
|
+
}, "Resourcess")]
|
63
|
+
}];
|
64
|
+
var secondSectionData = [{
|
65
|
+
'data-id': 'Authentication-data-id',
|
66
|
+
heading: 'Authentication',
|
67
|
+
icon: _CheckCircleOutlineIcon["default"],
|
68
|
+
key: 'Authentication',
|
69
|
+
children: [(0, _react2.jsx)(_.NavBarItemButton, {
|
70
|
+
key: "Authentication-Policies",
|
71
|
+
id: "Authentication-Policies"
|
72
|
+
}, "Authentication Policies"), (0, _react2.jsx)(_.NavBarItemButton, {
|
73
|
+
key: "Password-Policies",
|
74
|
+
id: "Password-Policies"
|
75
|
+
}, "Password Policies")]
|
76
|
+
}, {
|
77
|
+
'data-id': 'Threat Protection-data-id',
|
78
|
+
heading: 'Threat Protection',
|
79
|
+
icon: _ShieldCheckOutlineIcon["default"],
|
80
|
+
key: 'Threat Protection',
|
81
|
+
children: [(0, _react2.jsx)(_.NavBarItemButton, {
|
82
|
+
key: "Risk Policies",
|
83
|
+
id: "Risk Policies"
|
84
|
+
}, "Risk Policies"), (0, _react2.jsx)(_.NavBarItemButton, {
|
85
|
+
key: "Predictors",
|
86
|
+
id: "Predictors"
|
87
|
+
}, "Predictors")]
|
88
|
+
}, {
|
89
|
+
'data-id': 'Threat Protection-data-id',
|
90
|
+
heading: 'Identity Verification',
|
91
|
+
icon: _LayersOutlineIcon["default"],
|
92
|
+
key: 'Identity Verification',
|
93
|
+
children: [(0, _react2.jsx)(_.NavBarItemButton, {
|
94
|
+
key: "Verify Policies",
|
95
|
+
id: "Verify Policies"
|
96
|
+
}, "Verify Policies")]
|
97
|
+
}, {
|
98
|
+
'data-id': 'Digital Credentials-data-id',
|
99
|
+
heading: 'Digital Credentials',
|
100
|
+
icon: _CodeTagsIcon["default"],
|
101
|
+
key: 'Digital Credentials',
|
102
|
+
children: [(0, _react2.jsx)(_.NavBarItemButton, {
|
103
|
+
key: "Management",
|
104
|
+
id: "Management"
|
105
|
+
}, "Management")]
|
106
|
+
}, {
|
107
|
+
'data-id': 'Authorization-data-id',
|
108
|
+
heading: 'Authorization',
|
109
|
+
icon: _AccountCheckOutlineIcon["default"],
|
110
|
+
key: 'Authorization',
|
111
|
+
children: [(0, _react2.jsx)(_.NavBarItemButton, {
|
112
|
+
key: "Trust Framework",
|
113
|
+
id: "Trust Framework"
|
114
|
+
}, "Trust Framework"), (0, _react2.jsx)(_.NavBarItemButton, {
|
115
|
+
key: "Policies",
|
116
|
+
id: "Policies"
|
117
|
+
}, "Policies")]
|
118
|
+
}];
|
119
|
+
var thirdSectionData = [{
|
120
|
+
'data-id': 'Integrations-data-id',
|
121
|
+
heading: 'Integrations',
|
122
|
+
icon: _WidgetsOutlineIcon["default"],
|
123
|
+
key: 'Integrations',
|
124
|
+
children: [(0, _react2.jsx)(_.NavBarItemButton, {
|
125
|
+
key: "External IDPs",
|
126
|
+
id: "External IDPs"
|
127
|
+
}, "External IDPs"), (0, _react2.jsx)(_.NavBarItemButton, {
|
128
|
+
key: "Provisioning",
|
129
|
+
id: "Provisioning"
|
130
|
+
}, "Provisioning")]
|
131
|
+
}, {
|
132
|
+
'data-id': 'User Experience-data-id',
|
133
|
+
heading: 'User Experience',
|
134
|
+
icon: _PaletteOutlineIcon["default"],
|
135
|
+
key: 'User Experience',
|
136
|
+
children: [(0, _react2.jsx)(_.NavBarItemButton, {
|
137
|
+
key: "Notification Templates",
|
138
|
+
id: "Notification Templates"
|
139
|
+
}, "Notification Templates"), (0, _react2.jsx)(_.NavBarItemButton, {
|
140
|
+
key: "Notification Policies",
|
141
|
+
id: "Notification Policies"
|
142
|
+
}, "Notification Policies")]
|
143
|
+
}, {
|
144
|
+
'data-id': 'Settings-data-id',
|
145
|
+
heading: 'Settings',
|
146
|
+
icon: _CogOutlineIcon["default"],
|
147
|
+
key: 'Settings',
|
148
|
+
children: [(0, _react2.jsx)(_.NavBarItemButton, {
|
149
|
+
key: "Certificates & Key Pairs",
|
150
|
+
id: "Certificates & Key Pairs"
|
151
|
+
}, "Certificates & Key Pairs"), (0, _react2.jsx)(_.NavBarItemButton, {
|
152
|
+
key: "Domains",
|
153
|
+
id: "Domains"
|
154
|
+
}, "Domains")]
|
155
|
+
}];
|
156
|
+
var _useGetTheme = (0, _hooks.useGetTheme)(),
|
157
|
+
icons = _useGetTheme.icons;
|
158
|
+
return (0, _react2.jsx)(_.NavBar, null, (0, _react2.jsx)(_.Box, {
|
159
|
+
padding: "md",
|
160
|
+
key: "top-logo-parent"
|
161
|
+
}, icons.pingLogoHorizontalSmall), (0, _react2.jsx)(_.Box, {
|
162
|
+
variant: "navBar.sectionContainer",
|
163
|
+
paddingBottom: "xl",
|
164
|
+
key: "first-section-container"
|
165
|
+
}, (0, _react2.jsx)(_.NavBarItem, {
|
166
|
+
"data-id": "nav-bar-item",
|
167
|
+
icon: _ViewDashboardOutlineIcon["default"],
|
168
|
+
id: "Overview",
|
169
|
+
key: "Overview",
|
170
|
+
text: "Overview"
|
171
|
+
}), (0, _react2.jsx)(_.NavBarSection, {
|
172
|
+
items: firstSectionData,
|
173
|
+
"data-id": "nav-bar-section"
|
174
|
+
}), (0, _react2.jsx)(_.Separator, {
|
175
|
+
variant: "separator.navBarSeparator"
|
176
|
+
}), (0, _react2.jsx)(_.NavBarItem, {
|
177
|
+
"data-id": "nav-bar-item",
|
178
|
+
icon: _FileTreeIcon["default"],
|
179
|
+
id: "DaVinci",
|
180
|
+
key: "DaVinci",
|
181
|
+
text: "DaVinci"
|
182
|
+
}), (0, _react2.jsx)(_.NavBarSection, {
|
183
|
+
items: secondSectionData,
|
184
|
+
"data-id": "second-nav-bar-section"
|
185
|
+
}), (0, _react2.jsx)(_.NavBarSection, {
|
186
|
+
items: thirdSectionData,
|
187
|
+
hasSeparator: true,
|
188
|
+
"data-id": "third-nav-bar-section"
|
189
|
+
})));
|
190
|
+
};
|
191
|
+
exports.NavBarNextGenComponent = NavBarNextGenComponent;
|
@@ -7,8 +7,8 @@ _Object$defineProperty(exports, "__esModule", {
|
|
7
7
|
});
|
8
8
|
exports["default"] = exports.Default = void 0;
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
10
|
-
var _ = require("
|
11
|
-
var _NavBarNextGenComponent = require("
|
10
|
+
var _ = require("../../..");
|
11
|
+
var _NavBarNextGenComponent = require("./NavBarNextGenComponent");
|
12
12
|
var _react2 = require("@emotion/react");
|
13
13
|
var _default = {
|
14
14
|
title: 'Chromatic Only Onyx Dark NavBar'
|
@@ -7,7 +7,7 @@ _Object$defineProperty(exports, "__esModule", {
|
|
7
7
|
});
|
8
8
|
exports["default"] = exports.Default = void 0;
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
10
|
-
var _ = require("
|
10
|
+
var _ = require("../../..");
|
11
11
|
var _NavBarNextGenComponent = require("./NavBarNextGenComponent");
|
12
12
|
var _react2 = require("@emotion/react");
|
13
13
|
var _default = {
|
@@ -66,6 +66,8 @@ var NavBarItem = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
66
66
|
}),
|
67
67
|
classNames = _useStatusClasses.classNames;
|
68
68
|
var color = isSelected ? 'white' : 'neutral.95';
|
69
|
+
var _useGetTheme = (0, _hooks.useGetTheme)(),
|
70
|
+
isOnyx = _useGetTheme.themeState.isOnyx;
|
69
71
|
return (0, _react2.jsx)(_index.Box, (0, _extends2["default"])({
|
70
72
|
id: key,
|
71
73
|
variant: state.navStyles.navBarItem,
|
@@ -87,7 +89,7 @@ var NavBarItem = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
87
89
|
title: {
|
88
90
|
name: text
|
89
91
|
},
|
90
|
-
size:
|
92
|
+
size: isOnyx ? 'icon-200' : 'sm',
|
91
93
|
sx: {
|
92
94
|
mr: 'sm',
|
93
95
|
color: color,
|
@@ -15,7 +15,7 @@ var _concat = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-sta
|
|
15
15
|
var _react = _interopRequireWildcard(require("react"));
|
16
16
|
var _NavBarContext = require("../../context/NavBarContext");
|
17
17
|
var _hooks = require("../../hooks");
|
18
|
-
var
|
18
|
+
var _useGetTheme3 = _interopRequireDefault(require("../../hooks/useGetTheme"));
|
19
19
|
var _index = require("../../index");
|
20
20
|
var _react2 = require("@emotion/react");
|
21
21
|
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); }
|
@@ -38,7 +38,8 @@ var NavBarSectionItemHeader = function NavBarSectionItemHeader(_ref2) {
|
|
38
38
|
className = item.className,
|
39
39
|
heading = item.heading;
|
40
40
|
var navBarState = (0, _NavBarContext.useNavBarContext)();
|
41
|
-
var _useGetTheme = (0,
|
41
|
+
var _useGetTheme = (0, _useGetTheme3["default"])(),
|
42
|
+
isOnyx = _useGetTheme.themeState.isOnyx,
|
42
43
|
icons = _useGetTheme.icons;
|
43
44
|
var MenuDown = icons.MenuDown,
|
44
45
|
MenuUp = icons.MenuUp;
|
@@ -74,7 +75,7 @@ var NavBarSectionItemHeader = function NavBarSectionItemHeader(_ref2) {
|
|
74
75
|
"data-testid": heading
|
75
76
|
}, icon && (0, _react2.jsx)(_index.Icon, {
|
76
77
|
icon: icon,
|
77
|
-
size:
|
78
|
+
size: isOnyx ? 'icon-200' : 'sm',
|
78
79
|
sx: {
|
79
80
|
mr: 'sm',
|
80
81
|
color: getIconColor(),
|
@@ -91,7 +92,7 @@ var NavBarSectionItemHeader = function NavBarSectionItemHeader(_ref2) {
|
|
91
92
|
}
|
92
93
|
}, (0, _react2.jsx)(_index.Icon, {
|
93
94
|
icon: isExpanded ? MenuUp : MenuDown,
|
94
|
-
size: navStyles.navBarItemHeaderIconSize,
|
95
|
+
size: isOnyx ? 'icon-100' : navStyles.navBarItemHeaderIconSize,
|
95
96
|
sx: {
|
96
97
|
color: getIconColor(),
|
97
98
|
fill: getIconColor()
|
@@ -109,6 +110,8 @@ var NavBarPrimaryItemHeader = function NavBarPrimaryItemHeader(_ref3) {
|
|
109
110
|
customIcon = item.customIcon;
|
110
111
|
var navBarState = (0, _NavBarContext.useNavBarContext)();
|
111
112
|
var navStyles = navBarState.navStyles;
|
113
|
+
var _useGetTheme2 = (0, _useGetTheme3["default"])(),
|
114
|
+
isOnyx = _useGetTheme2.themeState.isOnyx;
|
112
115
|
return (0, _react2.jsx)(_index.Box, {
|
113
116
|
variant: navStyles.navBarItemHeader,
|
114
117
|
className: className,
|
@@ -116,7 +119,7 @@ var NavBarPrimaryItemHeader = function NavBarPrimaryItemHeader(_ref3) {
|
|
116
119
|
"data-testid": heading
|
117
120
|
}, icon && (0, _react2.jsx)(_index.Icon, {
|
118
121
|
icon: icon,
|
119
|
-
size:
|
122
|
+
size: isOnyx ? 'icon-200' : 'sm',
|
120
123
|
sx: {
|
121
124
|
mr: 'sm',
|
122
125
|
color: 'neutral.95',
|
@@ -136,7 +139,7 @@ var NavBarPrimaryItemHeader = function NavBarPrimaryItemHeader(_ref3) {
|
|
136
139
|
}
|
137
140
|
}, customIcon && (0, _react2.jsx)(_index.Icon, {
|
138
141
|
icon: customIcon,
|
139
|
-
size:
|
142
|
+
size: isOnyx ? 'icon-200' : 'sm',
|
140
143
|
sx: {
|
141
144
|
color: 'neutral.95',
|
142
145
|
fill: 'neutral.95'
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|