@pingux/astro 2.119.0-alpha.1 → 2.119.0-alpha.3

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.
Files changed (98) hide show
  1. package/lib/cjs/components/Button/Buttons.styles.d.ts +40 -0
  2. package/lib/cjs/components/Button/Buttons.styles.js +4 -0
  3. package/lib/cjs/components/ListView/ListView.stories.d.ts +3 -0
  4. package/lib/cjs/components/ListView/ListView.stories.js +2 -1
  5. package/lib/cjs/components/NavBar/NavBar.stories.d.ts +1 -0
  6. package/lib/cjs/components/NavBar/NavBar.stories.js +272 -107
  7. package/lib/cjs/{styles/themeOverrides → components/NavBar}/stories/NavBar.chromatic.stories.js +53 -53
  8. package/lib/cjs/components/NavBar/stories/NavBarNextGenComponent.js +191 -0
  9. package/lib/cjs/{styles/themeOverrides/nextGenDarkMode → components/NavBar}/stories/NextGenDarkNavStory.chomatic.stories.js +2 -2
  10. package/lib/cjs/{styles/themes/next-gen → components/NavBar}/stories/NextGenNavBar.chromatic.stories.js +1 -1
  11. package/lib/cjs/components/NavBarSection/NavBarItem.js +3 -1
  12. package/lib/cjs/components/NavBarSection/NavBarItemHeader.js +9 -6
  13. package/lib/cjs/components/NavBarSection/NavBarItemHeader.test.d.ts +1 -0
  14. package/lib/cjs/components/NavBarSection/NavBarItemHeader.test.js +86 -0
  15. package/lib/cjs/components/Pagination/Pagination.d.ts +4 -0
  16. package/lib/cjs/components/Pagination/Pagination.js +78 -0
  17. package/lib/cjs/components/Pagination/Pagination.mdx +68 -0
  18. package/lib/cjs/components/Pagination/Pagination.stories.d.ts +39 -0
  19. package/lib/cjs/components/Pagination/Pagination.stories.js +159 -0
  20. package/lib/cjs/components/Pagination/Pagination.styles.d.ts +17 -0
  21. package/lib/cjs/components/Pagination/Pagination.styles.js +27 -0
  22. package/lib/cjs/components/Pagination/Pagination.test.d.ts +1 -0
  23. package/lib/cjs/components/Pagination/Pagination.test.js +208 -0
  24. package/lib/cjs/components/Pagination/PaginationProvider.d.ts +4 -0
  25. package/lib/cjs/components/Pagination/PaginationProvider.js +38 -0
  26. package/lib/cjs/components/Pagination/index.d.ts +2 -0
  27. package/lib/cjs/components/Pagination/index.js +33 -0
  28. package/lib/cjs/context/PaginationContext/index.d.ts +10 -0
  29. package/lib/cjs/context/PaginationContext/index.js +20 -0
  30. package/lib/cjs/hooks/index.d.ts +2 -0
  31. package/lib/cjs/hooks/index.js +14 -0
  32. package/lib/cjs/hooks/usePagination/index.d.ts +1 -0
  33. package/lib/cjs/hooks/usePagination/index.js +14 -0
  34. package/lib/cjs/hooks/usePagination/usePagination.d.ts +682 -0
  35. package/lib/cjs/hooks/usePagination/usePagination.js +178 -0
  36. package/lib/cjs/hooks/usePaginationState/index.d.ts +1 -0
  37. package/lib/cjs/hooks/usePaginationState/index.js +14 -0
  38. package/lib/cjs/hooks/usePaginationState/usePaginationState.d.ts +4 -0
  39. package/lib/cjs/hooks/usePaginationState/usePaginationState.js +18 -0
  40. package/lib/cjs/index.d.ts +3 -0
  41. package/lib/cjs/index.js +24 -0
  42. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/buttons.d.ts +3 -0
  43. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/buttons.js +3 -0
  44. package/lib/cjs/styles/themes/next-gen/convertedComponentList.d.ts +4 -0
  45. package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +8 -3
  46. package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +30 -0
  47. package/lib/cjs/styles/themes/next-gen/variants/button.d.ts +17 -0
  48. package/lib/cjs/styles/themes/next-gen/variants/button.js +7 -1
  49. package/lib/cjs/styles/themes/next-gen/variants/links.d.ts +9 -0
  50. package/lib/cjs/styles/themes/next-gen/variants/links.js +12 -1
  51. package/lib/cjs/styles/themes/next-gen/variants/navbar.d.ts +4 -0
  52. package/lib/cjs/styles/themes/next-gen/variants/navbar.js +11 -7
  53. package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +4 -0
  54. package/lib/cjs/styles/variants/variants.js +3 -1
  55. package/lib/cjs/types/pagination.d.ts +46 -0
  56. package/lib/cjs/types/pagination.js +6 -0
  57. package/lib/cjs/utils/devUtils/shouldReturnComingSoon.js +8 -2
  58. package/lib/components/Button/Buttons.styles.js +4 -0
  59. package/lib/components/ListView/ListView.stories.js +1 -1
  60. package/lib/components/NavBar/NavBar.stories.js +196 -32
  61. package/lib/{styles/themeOverrides → components/NavBar}/stories/NavBar.chromatic.stories.js +2 -2
  62. package/lib/components/NavBar/stories/NavBarNextGenComponent.js +182 -0
  63. package/lib/{styles/themeOverrides/nextGenDarkMode → components/NavBar}/stories/NextGenDarkNavStory.chomatic.stories.js +2 -2
  64. package/lib/{styles/themes/next-gen → components/NavBar}/stories/NextGenNavBar.chromatic.stories.js +1 -1
  65. package/lib/components/NavBarSection/NavBarItem.js +4 -2
  66. package/lib/components/NavBarSection/NavBarItemHeader.js +7 -4
  67. package/lib/components/NavBarSection/NavBarItemHeader.test.js +83 -0
  68. package/lib/components/Pagination/Pagination.js +64 -0
  69. package/lib/components/Pagination/Pagination.mdx +68 -0
  70. package/lib/components/Pagination/Pagination.stories.js +141 -0
  71. package/lib/components/Pagination/Pagination.styles.js +19 -0
  72. package/lib/components/Pagination/Pagination.test.js +205 -0
  73. package/lib/components/Pagination/PaginationProvider.js +24 -0
  74. package/lib/components/Pagination/index.js +2 -0
  75. package/lib/context/PaginationContext/index.js +11 -0
  76. package/lib/hooks/index.js +2 -0
  77. package/lib/hooks/usePagination/index.js +1 -0
  78. package/lib/hooks/usePagination/usePagination.js +170 -0
  79. package/lib/hooks/usePaginationState/index.js +1 -0
  80. package/lib/hooks/usePaginationState/usePaginationState.js +10 -0
  81. package/lib/index.js +3 -0
  82. package/lib/styles/themeOverrides/nextGenDarkMode/variants/buttons.js +3 -0
  83. package/lib/styles/themes/next-gen/convertedComponentList.js +6 -2
  84. package/lib/styles/themes/next-gen/variants/button.js +7 -1
  85. package/lib/styles/themes/next-gen/variants/links.js +12 -1
  86. package/lib/styles/themes/next-gen/variants/navbar.js +11 -7
  87. package/lib/styles/variants/variants.js +3 -1
  88. package/lib/types/pagination.js +1 -0
  89. package/lib/utils/devUtils/shouldReturnComingSoon.js +9 -3
  90. package/package.json +1 -1
  91. package/lib/cjs/recipes/NextGen/NavBarNextGen.stories.d.ts +0 -6
  92. package/lib/cjs/recipes/NextGen/NavBarNextGen.stories.js +0 -19
  93. package/lib/cjs/styles/themes/next-gen/stories/NavBarNextGenComponent.js +0 -191
  94. package/lib/recipes/NextGen/NavBarNextGen.stories.js +0 -9
  95. package/lib/styles/themes/next-gen/stories/NavBarNextGenComponent.js +0 -182
  96. /package/lib/cjs/{styles/themes/next-gen → components/NavBar}/stories/NavBarNextGenComponent.d.ts +0 -0
  97. /package/lib/cjs/{styles/themeOverrides/nextGenDarkMode → components/NavBar}/stories/NextGenDarkNavStory.chomatic.stories.d.ts +0 -0
  98. /package/lib/cjs/{styles/themes/next-gen → components/NavBar}/stories/NextGenNavBar.chromatic.stories.d.ts +0 -0
@@ -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 _index = require("../../../index");
20
- var _withUiLibraryCss = _interopRequireDefault(require("../withUiLibraryCss"));
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: _index.NavBar,
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)(_index.NavBarItemLink, {
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)(_index.NavBarItemButton, {
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)(_index.NavBarItemLink, {
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)(_index.NavBarItemLink, {
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)(_index.NavBarItemLink, {
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)(_index.NavBarItemLink, {
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)(_index.NavBarItemButton, {
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)(_index.NavBarItemLink, {
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)(_index.NavBarItemLink, {
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)(_index.NavBarItemLink, {
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)(_index.NavBarItemLink, {
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)(_index.NavBarItemLink, {
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)(_index.NavBarItemLink, {
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)(_index.Separator, {
192
+ }, "PingIntelligence"), (0, _react2.jsx)(_.Separator, {
193
193
  variant: "separator.navBarSubtitleSeparator"
194
- }), (0, _react2.jsx)(_index.NavBarItemLink, {
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)(_index.NavBarItemLink, {
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)(_index.NavBarItemLink, {
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)(_index.NavBarItemLink, {
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)(_index.NavBarItemButton, {
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)(_index.NavBarItemLink, {
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)(_index.NavBarItemLink, {
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)(_index.NavBarItemLink, {
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)(_index.Separator, {
234
+ }, "Password"), (0, _react2.jsx)(_.Separator, {
235
235
  variant: "separator.navBarSubtitleSeparator"
236
- }), (0, _react2.jsx)(_index.NavBarItemLink, {
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)(_index.NavBarItemLink, {
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)(_index.NavBarItemLink, {
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)(_index.NavBarItemLink, {
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)(_index.NavBarItemLink, {
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)(_index.NavBarItemLink, {
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)(_index.NavBarItemLink, {
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)(_index.NavBarItemLink, {
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)(_index.NavBarItemButton, {
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)(_index.NavBarItemButton, {
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)(_index.NavBarItemButton, {
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)(_index.NavBarItemButton, {
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)(_index.NavBarItemButton, {
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)(_index.NavBarItemButton, {
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)(_index.NavBarItemButton, {
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)(_index.NavBarItemButton, {
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)(_index.NavBarItemButton, {
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)(_index.NavBarItemButton, {
341
+ children: [(0, _react2.jsx)(_.NavBarItemButton, {
342
342
  key: "Earth Button Users",
343
343
  id: "Earth Button Users"
344
- }, "Users"), (0, _react2.jsx)(_index.NavBarItemButton, {
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)(_index.NavBar, null, (0, _react2.jsx)(_index.Box, {
350
+ return (0, _react2.jsx)(_.NavBar, null, (0, _react2.jsx)(_.Box, {
351
351
  padding: "md"
352
- }, (0, _react2.jsx)(_index.Link, {
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)(_index.Separator, {
356
+ }, logo)), (0, _react2.jsx)(_.Separator, {
357
357
  m: 0,
358
358
  backgroundColor: "neutral.60"
359
- }), (0, _react2.jsx)(_index.Box, {
359
+ }), (0, _react2.jsx)(_.Box, {
360
360
  variant: "navBar.sectionContainer",
361
361
  paddingBottom: "xl"
362
- }, (0, _react2.jsx)(_index.NavBarItem, {
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)(_index.NavBarSection, {
368
+ }), (0, _react2.jsx)(_.NavBarSection, {
369
369
  items: data,
370
370
  "data-id": "nav-bar-section"
371
- }), (0, _react2.jsx)(_index.NavBarSection, {
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)(_index.NavBarSection, {
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("../../../themes/next-gen/stories/NavBarNextGenComponent");
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: "sm",
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 _useGetTheme2 = _interopRequireDefault(require("../../hooks/useGetTheme"));
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, _useGetTheme2["default"])(),
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: "sm",
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: "sm",
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: "sm",
142
+ size: isOnyx ? 'icon-200' : 'sm',
140
143
  sx: {
141
144
  color: 'neutral.95',
142
145
  fill: 'neutral.95'