@pingux/astro 1.2.0-alpha.8 → 1.3.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.
Files changed (137) hide show
  1. package/CHANGELOG.md +64 -0
  2. package/lib/cjs/components/AccordionGridGroup/AccordionGridGroup.js +35 -22
  3. package/lib/cjs/components/AccordionGridGroup/AccordionGridGroup.stories.js +148 -169
  4. package/lib/cjs/components/AccordionGridGroup/AccordionGridGroup.test.js +25 -30
  5. package/lib/cjs/components/AccordionGridItem/AccordionGridItem.js +29 -14
  6. package/lib/cjs/components/AccordionGridItem/AccordionGridItemBody.js +8 -5
  7. package/lib/cjs/components/AccordionGridItem/AccordionGridItemHeader.js +20 -17
  8. package/lib/cjs/components/AccordionGroup/AccordionGroup.js +2 -1
  9. package/lib/cjs/components/AccordionGroup/AccordionGroup.test.js +20 -1
  10. package/lib/cjs/components/ArrayField/ArrayField.js +213 -0
  11. package/lib/cjs/components/ArrayField/ArrayField.stories.js +223 -0
  12. package/lib/cjs/components/ArrayField/ArrayField.test.js +208 -0
  13. package/lib/cjs/components/ArrayField/ArrayFieldDeleteButton.js +61 -0
  14. package/lib/cjs/components/ArrayField/index.js +27 -0
  15. package/lib/cjs/components/Breadcrumbs/Breadcrumbs.stories.js +3 -3
  16. package/lib/cjs/components/Button/Button.js +14 -2
  17. package/lib/cjs/components/Button/Button.stories.js +33 -33
  18. package/lib/cjs/components/CodeView/CodeView.js +3 -3
  19. package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.js +5 -3
  20. package/lib/cjs/components/Link/Link.js +2 -1
  21. package/lib/cjs/components/ListView/ListView.js +9 -13
  22. package/lib/cjs/components/ListView/ListView.stories.js +3 -0
  23. package/lib/cjs/components/ListViewItem/ListViewItem.js +15 -3
  24. package/lib/cjs/components/Loader/Loader.stories.js +3 -3
  25. package/lib/cjs/components/Modal/Modal.js +3 -0
  26. package/lib/cjs/components/Modal/Modal.stories.js +12 -67
  27. package/lib/cjs/components/NavBar/NavBar.js +30 -4
  28. package/lib/cjs/components/NavBar/NavBar.stories.js +70 -463
  29. package/lib/cjs/components/NavBar/NavBar.test.js +51 -1
  30. package/lib/cjs/components/NavBarSection/NavBarItem.js +137 -0
  31. package/lib/cjs/components/NavBarSection/NavBarItemButton.js +96 -0
  32. package/lib/cjs/components/NavBarSection/NavBarItemHeader.js +1 -1
  33. package/lib/cjs/components/NavBarSection/NavBarItemLink.js +98 -0
  34. package/lib/cjs/components/NavBarSection/NavBarSection.js +10 -8
  35. package/lib/cjs/components/NavBarSection/index.js +28 -1
  36. package/lib/cjs/components/OverlayPanel/OverlayPanel.js +2 -16
  37. package/lib/cjs/components/OverlayPanel/OverlayPanel.test.js +44 -0
  38. package/lib/cjs/components/RockerButton/RockerButton.js +14 -22
  39. package/lib/cjs/components/RockerButtonGroup/RockerButtonGroup.js +5 -9
  40. package/lib/cjs/components/RockerButtonGroup/RockerButtonGroup.stories.js +4 -22
  41. package/lib/cjs/components/RockerButtonGroup/RockerButtonGroup.test.js +5 -14
  42. package/lib/cjs/components/SearchField/SearchField.stories.js +1 -15
  43. package/lib/cjs/components/SelectFieldBase/SelectFieldBase.js +8 -1
  44. package/lib/cjs/components/TextAreaField/TextAreaField.js +54 -9
  45. package/lib/cjs/components/TextAreaField/TextAreaField.stories.js +31 -52
  46. package/lib/cjs/components/TextAreaField/TextAreaField.test.js +12 -0
  47. package/lib/cjs/context/AccordionGridContext/index.js +20 -0
  48. package/lib/cjs/context/NavBarContext/index.js +20 -0
  49. package/lib/cjs/hooks/index.js +9 -0
  50. package/lib/cjs/hooks/useAriaLabelWarning/useAriaLabelWarning.js +2 -1
  51. package/lib/cjs/hooks/useField/useField.js +5 -0
  52. package/lib/cjs/{components/AccordionGridGroup/AccordionGridContext.js → hooks/useNavBarPress/index.js} +7 -6
  53. package/lib/cjs/hooks/useNavBarPress/useNavBarPress.js +38 -0
  54. package/lib/cjs/hooks/useNavBarPress/useNavBarPress.test.js +42 -0
  55. package/lib/cjs/hooks/useRockerButton/useRockerButton.js +4 -6
  56. package/lib/cjs/index.js +80 -58
  57. package/lib/cjs/layouts/ListLayout.stories.js +6 -6
  58. package/lib/cjs/recipes/ConditionalFilter.stories.js +7 -3
  59. package/lib/cjs/recipes/RadioButtonsWithLinks.stories.js +1 -1
  60. package/lib/cjs/styles/variants/accordion.js +39 -7
  61. package/lib/cjs/styles/variants/boxes.js +10 -24
  62. package/lib/cjs/styles/variants/buttons.js +27 -1
  63. package/lib/cjs/styles/variants/codeView.js +91 -0
  64. package/lib/cjs/styles/variants/navBar.js +68 -0
  65. package/lib/cjs/styles/variants/separator.js +2 -1
  66. package/lib/cjs/styles/variants/text.js +3 -1
  67. package/lib/cjs/styles/variants/variants.js +3 -0
  68. package/lib/components/AccordionGridGroup/AccordionGridGroup.js +35 -22
  69. package/lib/components/AccordionGridGroup/AccordionGridGroup.stories.js +143 -166
  70. package/lib/components/AccordionGridGroup/AccordionGridGroup.test.js +24 -25
  71. package/lib/components/AccordionGridItem/AccordionGridItem.js +29 -15
  72. package/lib/components/AccordionGridItem/AccordionGridItemBody.js +8 -6
  73. package/lib/components/AccordionGridItem/AccordionGridItemHeader.js +22 -18
  74. package/lib/components/AccordionGroup/AccordionGroup.js +2 -1
  75. package/lib/components/AccordionGroup/AccordionGroup.test.js +16 -2
  76. package/lib/components/ArrayField/ArrayField.js +179 -0
  77. package/lib/components/ArrayField/ArrayField.stories.js +196 -0
  78. package/lib/components/ArrayField/ArrayField.test.js +185 -0
  79. package/lib/components/ArrayField/ArrayFieldDeleteButton.js +43 -0
  80. package/lib/components/ArrayField/index.js +2 -0
  81. package/lib/components/Breadcrumbs/Breadcrumbs.stories.js +3 -3
  82. package/lib/components/Button/Button.js +15 -3
  83. package/lib/components/Button/Button.stories.js +17 -15
  84. package/lib/components/CodeView/CodeView.js +2 -2
  85. package/lib/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.js +5 -3
  86. package/lib/components/Link/Link.js +2 -1
  87. package/lib/components/ListView/ListView.js +9 -12
  88. package/lib/components/ListView/ListView.stories.js +3 -0
  89. package/lib/components/ListViewItem/ListViewItem.js +14 -3
  90. package/lib/components/Loader/Loader.stories.js +1 -1
  91. package/lib/components/Modal/Modal.js +4 -1
  92. package/lib/components/Modal/Modal.stories.js +11 -60
  93. package/lib/components/NavBar/NavBar.js +25 -4
  94. package/lib/components/NavBar/NavBar.stories.js +71 -462
  95. package/lib/components/NavBar/NavBar.test.js +39 -2
  96. package/lib/components/NavBarSection/NavBarItem.js +111 -0
  97. package/lib/components/NavBarSection/NavBarItemButton.js +69 -0
  98. package/lib/components/NavBarSection/NavBarItemHeader.js +1 -1
  99. package/lib/components/NavBarSection/NavBarItemLink.js +71 -0
  100. package/lib/components/NavBarSection/NavBarSection.js +9 -8
  101. package/lib/components/NavBarSection/index.js +4 -1
  102. package/lib/components/OverlayPanel/OverlayPanel.js +3 -16
  103. package/lib/components/OverlayPanel/OverlayPanel.test.js +38 -0
  104. package/lib/components/RockerButton/RockerButton.js +14 -21
  105. package/lib/components/RockerButtonGroup/RockerButtonGroup.js +5 -9
  106. package/lib/components/RockerButtonGroup/RockerButtonGroup.stories.js +2 -17
  107. package/lib/components/RockerButtonGroup/RockerButtonGroup.test.js +5 -11
  108. package/lib/components/SearchField/SearchField.stories.js +0 -11
  109. package/lib/components/SelectFieldBase/SelectFieldBase.js +8 -1
  110. package/lib/components/TextAreaField/TextAreaField.js +54 -10
  111. package/lib/components/TextAreaField/TextAreaField.stories.js +26 -42
  112. package/lib/components/TextAreaField/TextAreaField.test.js +13 -0
  113. package/lib/context/AccordionGridContext/index.js +5 -0
  114. package/lib/context/NavBarContext/index.js +5 -0
  115. package/lib/hooks/index.js +1 -0
  116. package/lib/hooks/useAriaLabelWarning/useAriaLabelWarning.js +2 -1
  117. package/lib/hooks/useField/useField.js +5 -0
  118. package/lib/hooks/useNavBarPress/index.js +1 -0
  119. package/lib/hooks/useNavBarPress/useNavBarPress.js +27 -0
  120. package/lib/hooks/useNavBarPress/useNavBarPress.test.js +36 -0
  121. package/lib/hooks/useRockerButton/useRockerButton.js +4 -6
  122. package/lib/index.js +2 -0
  123. package/lib/layouts/ListLayout.stories.js +6 -6
  124. package/lib/recipes/ConditionalFilter.stories.js +7 -3
  125. package/lib/recipes/RadioButtonsWithLinks.stories.js +1 -1
  126. package/lib/styles/variants/accordion.js +26 -5
  127. package/lib/styles/variants/boxes.js +10 -24
  128. package/lib/styles/variants/buttons.js +27 -1
  129. package/lib/styles/variants/codeView.js +91 -0
  130. package/lib/styles/variants/navBar.js +46 -0
  131. package/lib/styles/variants/separator.js +2 -1
  132. package/lib/styles/variants/text.js +3 -1
  133. package/lib/styles/variants/variants.js +2 -0
  134. package/package.json +5 -3
  135. package/lib/cjs/recipes/ArrayField.stories.js +0 -169
  136. package/lib/components/AccordionGridGroup/AccordionGridContext.js +0 -2
  137. package/lib/recipes/ArrayField.stories.js +0 -134
@@ -8,15 +8,15 @@ import EmoticonHappy from 'mdi-react/EmoticonHappyOutlineIcon';
8
8
  import Fingerprint from 'mdi-react/FingerprintIcon';
9
9
  import ScaleBalance from 'mdi-react/ScaleBalanceIcon';
10
10
  import Earth from 'mdi-react/EarthIcon';
11
- import NavBarSection from '../NavBarSection';
12
- import NavBar from './NavBar';
13
- import { Separator, Box, Link, Button } from '../../index';
11
+ import { Separator, Box, Link, NavBar, NavBarSection, NavBarItemButton, NavBarItemLink, NavBarItem } from '../../index';
14
12
  import { jsx as ___EmotionJSX } from "@emotion/react";
15
13
  export default {
16
14
  title: 'NavBar',
17
15
  component: 'NavBar',
18
16
  subcomponents: {
19
- NavBarSection: NavBarSection
17
+ NavBarSection: NavBarSection,
18
+ NavBarItemLink: NavBarItemLink,
19
+ NavBarItemButton: NavBarItemButton
20
20
  }
21
21
  };
22
22
 
@@ -104,108 +104,56 @@ var logo = ___EmotionJSX("svg", {
104
104
  }));
105
105
 
106
106
  var data = [{
107
- icon: GlobeIcon,
108
- key: 'Overview',
109
- heading: 'Overview',
110
- children: [___EmotionJSX(Link, {
111
- key: "Overview Link Users",
112
- variant: "buttons.navItemButton",
113
- sx: {
114
- paddingLeft: '45px',
115
- paddingRight: '45px'
116
- },
117
- href: "https://pingidentity.com/"
118
- }, "Users"), ___EmotionJSX(Link, {
119
- key: "Overview Link Roles",
120
- variant: "buttons.navItemButton",
121
- sx: {
122
- paddingLeft: '45px',
123
- paddingRight: '45px'
124
- },
125
- href: "https://pingidentity.com/"
126
- }, "A roles title that is really really really really long")]
127
- }, {
128
107
  icon: ViewDashboard,
129
108
  key: 'Dashboard',
130
109
  heading: 'Dashboard',
131
- children: [___EmotionJSX(Link, {
110
+ children: [___EmotionJSX(NavBarItemLink, {
132
111
  key: "Dashboard Link Group",
112
+ id: "Dashboard Link Group",
133
113
  variant: "buttons.navItemButton",
134
- sx: {
135
- paddingLeft: '45px',
136
- paddingRight: '45px'
137
- },
138
114
  href: "https://pingidentity.com/"
139
- }, "Group"), ___EmotionJSX(Link, {
115
+ }, "Group"), ___EmotionJSX(NavBarItemLink, {
140
116
  key: "Dashboard Link Populations",
141
- variant: "buttons.navItemButton",
142
- sx: {
143
- paddingLeft: '45px',
144
- paddingRight: '45px'
145
- },
117
+ id: "Dashboard Link Populations",
146
118
  href: "https://pingidentity.com/"
147
119
  }, "Populations")]
148
120
  }, {
149
121
  icon: AccountMultiple,
150
122
  key: 'Identities',
151
123
  heading: 'Identities',
152
- children: [___EmotionJSX(Link, {
124
+ children: [___EmotionJSX(NavBarItemLink, {
153
125
  key: "Identities Link Users",
154
- variant: "buttons.navItemButton",
155
- sx: {
156
- paddingLeft: '45px',
157
- paddingRight: '45px'
158
- },
126
+ id: "Identities Link Users",
159
127
  href: "https://pingidentity.com/"
160
- }, "Users"), ___EmotionJSX(Link, {
128
+ }, "Users"), ___EmotionJSX(NavBarItemLink, {
161
129
  key: "Identities Link Group",
162
- variant: "buttons.navItemButton",
163
- sx: {
164
- paddingLeft: '45px',
165
- paddingRight: '45px'
166
- },
130
+ id: "Identities Link Group",
167
131
  href: "https://pingidentity.com/"
168
132
  }, "Group")]
169
133
  }, {
170
134
  icon: TransitConnection,
171
135
  key: 'Connections',
172
136
  heading: 'Connections',
173
- children: [___EmotionJSX(Link, {
137
+ children: [___EmotionJSX(NavBarItemLink, {
174
138
  key: "Connection Link Users",
175
- variant: "buttons.navItemButton",
176
- sx: {
177
- paddingLeft: '45px',
178
- paddingRight: '45px'
179
- },
139
+ id: "Connection Link Users",
180
140
  href: "https://pingidentity.com/"
181
- }, "Users"), ___EmotionJSX(Link, {
141
+ }, "Users"), ___EmotionJSX(NavBarItemLink, {
182
142
  key: "Connections Link Group",
183
- variant: "buttons.navItemButton",
184
- sx: {
185
- paddingLeft: '45px',
186
- paddingRight: '45px'
187
- },
143
+ id: "Connections Link Group",
188
144
  href: "https://pingidentity.com/"
189
145
  }, "Group")]
190
146
  }, {
191
147
  icon: EmoticonHappy,
192
148
  key: 'Experiences',
193
149
  heading: 'Experiences',
194
- children: [___EmotionJSX(Link, {
150
+ children: [___EmotionJSX(NavBarItemLink, {
195
151
  key: "Experiences Link Attributes",
196
- variant: "buttons.navItemButton",
197
- sx: {
198
- paddingLeft: '45px',
199
- paddingRight: '45px'
200
- },
152
+ id: "Experiences Link Attributes",
201
153
  href: "https://pingidentity.com/"
202
- }, "Attributes"), ___EmotionJSX(Link, {
154
+ }, "Attributes"), ___EmotionJSX(NavBarItemLink, {
203
155
  key: "Experiences Link Roles",
204
- variant: "buttons.navItemButton",
205
- sx: {
206
- paddingLeft: '45px',
207
- paddingRight: '45px'
208
- },
156
+ id: "Experiences Link Roles",
209
157
  href: "https://pingidentity.com/"
210
158
  }, "Roles")]
211
159
  }];
@@ -213,438 +161,99 @@ var secondData = [{
213
161
  icon: Fingerprint,
214
162
  key: 'MFA',
215
163
  heading: 'MFA',
216
- children: [___EmotionJSX(Button, {
217
- key: "MFA Button Users",
218
- variant: "navItemButton",
219
- sx: {
220
- paddingLeft: '45px',
221
- paddingRight: '45px'
222
- }
164
+ children: [___EmotionJSX(NavBarItemButton, {
165
+ id: "MFA Button Users",
166
+ key: "MFA Button Users"
223
167
  }, "Users"), {
224
168
  isSubTitle: true,
225
169
  subTitle: 'PingOne Services'
226
- }, ___EmotionJSX(Button, {
170
+ }, ___EmotionJSX(NavBarItemButton, {
227
171
  key: "MFA Button Group",
228
- variant: "navItemButton",
229
- sx: {
230
- paddingLeft: '45px',
231
- paddingRight: '45px'
232
- }
233
- }, "Group")]
172
+ id: "MFA Button Group"
173
+ }, "Group Test")]
234
174
  }, {
235
175
  icon: ScaleBalance,
236
176
  key: 'Risk',
237
177
  heading: 'Risk',
238
- children: [___EmotionJSX(Button, {
178
+ children: [___EmotionJSX(NavBarItemButton, {
239
179
  key: "Risk Button Users",
240
- variant: "navItemButton",
241
- sx: {
242
- paddingLeft: '45px',
243
- paddingRight: '45px'
244
- }
180
+ id: "Risk Button Users"
245
181
  }, "Users"), {
246
182
  isSubTitle: true,
247
183
  subTitle: 'PingOne Services'
248
- }, ___EmotionJSX(Button, {
184
+ }, ___EmotionJSX(NavBarItemButton, {
249
185
  key: "Risk Button Group",
250
- variant: "navItemButton",
251
- sx: {
252
- paddingLeft: '45px',
253
- paddingRight: '45px'
254
- }
186
+ id: "Risk Button Group"
255
187
  }, "Group")]
256
188
  }, {
257
189
  icon: Verify,
258
190
  key: 'Verify',
259
191
  heading: 'Verify',
260
- children: [___EmotionJSX(Button, {
192
+ children: [___EmotionJSX(NavBarItemButton, {
261
193
  key: "Verify Button Users",
262
- variant: "navItemButton",
263
- sx: {
264
- paddingLeft: '45px',
265
- paddingRight: '45px'
266
- }
194
+ id: "Verify Button Users"
267
195
  }, "Users"), {
268
196
  isSubTitle: true,
269
197
  subTitle: 'PingOne Services'
270
- }, ___EmotionJSX(Button, {
198
+ }, ___EmotionJSX(NavBarItemButton, {
271
199
  key: "Verify Button Group",
272
- variant: "navItemButton",
273
- sx: {
274
- paddingLeft: '45px',
275
- paddingRight: '45px'
276
- }
200
+ id: "Verify Button Group"
277
201
  }, "Group")]
278
202
  }, {
279
203
  icon: Credentials,
280
204
  key: 'Credentials',
281
205
  heading: 'Credentials',
282
- children: [___EmotionJSX(Button, {
206
+ children: [___EmotionJSX(NavBarItemButton, {
283
207
  key: "Credentials Button Users",
284
- variant: "navItemButton",
285
- sx: {
286
- paddingLeft: '45px',
287
- paddingRight: '45px'
288
- }
208
+ id: "Credentials Button Users"
289
209
  }, "Users"), {
290
210
  isSubTitle: true,
291
211
  subTitle: 'PingOne Services'
292
- }, ___EmotionJSX(Button, {
212
+ }, ___EmotionJSX(NavBarItemButton, {
293
213
  key: "Credentials Button Group",
294
- variant: "navItemButton",
295
- sx: {
296
- paddingLeft: '45px',
297
- paddingRight: '45px'
298
- }
214
+ id: "Credentials Button Group"
299
215
  }, "Group")]
300
216
  }];
301
217
  var thirdData = [{
302
218
  icon: Earth,
303
219
  key: 'Environment',
304
220
  heading: 'Environment title that is so long, it wraps',
305
- children: [___EmotionJSX(Button, {
221
+ children: [___EmotionJSX(NavBarItemButton, {
306
222
  key: "Earth Button Users",
307
- variant: "navItemButton",
308
- sx: {
309
- paddingLeft: '45px',
310
- paddingRight: '45px'
311
- }
312
- }, "Users"), ___EmotionJSX(Button, {
223
+ id: "Earth Button Users"
224
+ }, "Users"), ___EmotionJSX(NavBarItemButton, {
313
225
  key: "Earth Button Group",
314
- variant: "navItemButton",
315
- sx: {
316
- paddingLeft: '45px',
317
- paddingRight: '45px'
318
- }
226
+ id: "Earth Button Group"
319
227
  }, "Group")]
320
228
  }];
321
229
  export var Default = function Default() {
322
- return (// const data = [
323
- // {
324
- // icon: GlobeIcon,
325
- // key: 'Overview',
326
- // heading: 'Overview',
327
- // children: [
328
- // <Link
329
- // key="Overview Link Users"
330
- // variant="buttons.navItemButton"
331
- // sx={{
332
- // paddingLeft: '45px',
333
- // paddingRight: '45px',
334
- // }}
335
- // href="https://pingidentity.com/"
336
- // >
337
- // Users
338
- // </Link>,
339
- // <Link
340
- // key="Overview Link Roles"
341
- // variant="buttons.navItemButton"
342
- // sx={{
343
- // paddingLeft: '45px',
344
- // paddingRight: '45px',
345
- // }}
346
- // href="https://pingidentity.com/"
347
- // >
348
- // A roles title that is really really really really long
349
- // </Link>,
350
- // ],
351
- // },
352
- // {
353
- // icon: ViewDashboard,
354
- // key: 'Dashboard',
355
- // heading: 'Dashboard',
356
- // children: [
357
- // <Link
358
- // key="Dashboard Link Group"
359
- // variant="buttons.navItemButton"
360
- // sx={{
361
- // paddingLeft: '45px',
362
- // paddingRight: '45px',
363
- // }}
364
- // href="https://pingidentity.com/"
365
- // >
366
- // Group
367
- // </Link>,
368
- // <Link
369
- // key="Dashboard Link Populations"
370
- // variant="buttons.navItemButton"
371
- // sx={{
372
- // paddingLeft: '45px',
373
- // paddingRight: '45px',
374
- // }}
375
- // href="https://pingidentity.com/"
376
- // >
377
- // Populations
378
- // </Link>,
379
- // ],
380
- // },
381
- // {
382
- // icon: AccountMultiple,
383
- // key: 'Identities',
384
- // heading: 'Identities',
385
- // children: [
386
- // <Link
387
- // key="Identities Link Users"
388
- // variant="buttons.navItemButton"
389
- // sx={{
390
- // paddingLeft: '45px',
391
- // paddingRight: '45px',
392
- // }}
393
- // href="https://pingidentity.com/"
394
- // >
395
- // Users
396
- // </Link>,
397
- // <Link
398
- // key="Identities Link Group"
399
- // variant="buttons.navItemButton"
400
- // sx={{
401
- // paddingLeft: '45px',
402
- // paddingRight: '45px',
403
- // }}
404
- // href="https://pingidentity.com/"
405
- // >
406
- // Group
407
- // </Link>,
408
- // ],
409
- // },
410
- // {
411
- // icon: TransitConnection,
412
- // key: 'Connections',
413
- // heading: 'Connections',
414
- // children: [
415
- // <Link
416
- // key="Connection Link Users"
417
- // variant="buttons.navItemButton"
418
- // sx={{
419
- // paddingLeft: '45px',
420
- // paddingRight: '45px',
421
- // }}
422
- // href="https://pingidentity.com/"
423
- // >
424
- // Users
425
- // </Link>,
426
- // <Link
427
- // key="Connections Link Group"
428
- // variant="buttons.navItemButton"
429
- // sx={{
430
- // paddingLeft: '45px',
431
- // paddingRight: '45px',
432
- // }}
433
- // href="https://pingidentity.com/"
434
- // >
435
- // Group
436
- // </Link>,
437
- // ],
438
- // },
439
- // {
440
- // icon: EmoticonHappy,
441
- // key: 'Experiences',
442
- // heading: 'Experiences',
443
- // children: [
444
- // <Link
445
- // key="Experiences Link Attributes"
446
- // variant="buttons.navItemButton"
447
- // sx={{
448
- // paddingLeft: '45px',
449
- // paddingRight: '45px',
450
- // }}
451
- // href="https://pingidentity.com/"
452
- // >
453
- // Attributes
454
- // </Link>,
455
- // <Link
456
- // key="Experiences Link Roles"
457
- // variant="buttons.navItemButton"
458
- // sx={{
459
- // paddingLeft: '45px',
460
- // paddingRight: '45px',
461
- // }}
462
- // href="https://pingidentity.com/"
463
- // >
464
- // Roles
465
- // </Link>,
466
- // ],
467
- // },
468
- // ];
469
- // const secondData = [
470
- // {
471
- // icon: Fingerprint,
472
- // key: 'MFA',
473
- // heading: 'MFA',
474
- // children: [
475
- // <Button
476
- // key="MFA Button Users"
477
- // variant="navItemButton"
478
- // sx={{
479
- // paddingLeft: '45px',
480
- // paddingRight: '45px',
481
- // }}
482
- // >
483
- // Users
484
- // </Button>,
485
- // {
486
- // isSubTitle: true,
487
- // subTitle: 'PingOne Services',
488
- // },
489
- // <Button
490
- // key="MFA Button Group"
491
- // variant="navItemButton"
492
- // sx={{
493
- // paddingLeft: '45px',
494
- // paddingRight: '45px',
495
- // }}
496
- // >
497
- // Group
498
- // </Button>,
499
- // ],
500
- // },
501
- // {
502
- // icon: ScaleBalance,
503
- // key: 'Risk',
504
- // heading: 'Risk',
505
- // children: [
506
- // <Button
507
- // key="Risk Button Users"
508
- // variant="navItemButton"
509
- // sx={{
510
- // paddingLeft: '45px',
511
- // paddingRight: '45px',
512
- // }}
513
- // >
514
- // Users
515
- // </Button>,
516
- // {
517
- // isSubTitle: true,
518
- // subTitle: 'PingOne Services',
519
- // },
520
- // <Button
521
- // key="Risk Button Group"
522
- // variant="navItemButton"
523
- // sx={{
524
- // paddingLeft: '45px',
525
- // paddingRight: '45px',
526
- // }}
527
- // >
528
- // Group
529
- // </Button>,
530
- // ],
531
- // },
532
- // {
533
- // icon: Verify,
534
- // key: 'Verify',
535
- // heading: 'Verify',
536
- // children: [
537
- // <Button
538
- // key="Verify Button Users"
539
- // variant="navItemButton"
540
- // sx={{
541
- // paddingLeft: '45px',
542
- // paddingRight: '45px',
543
- // }}
544
- // >
545
- // Users
546
- // </Button>,
547
- // {
548
- // isSubTitle: true,
549
- // subTitle: 'PingOne Services',
550
- // },
551
- // <Button
552
- // key="Verify Button Group"
553
- // variant="navItemButton"
554
- // sx={{
555
- // paddingLeft: '45px',
556
- // paddingRight: '45px',
557
- // }}
558
- // >
559
- // Group
560
- // </Button>,
561
- // ],
562
- // },
563
- // {
564
- // icon: Verify,
565
- // key: 'Credentials',
566
- // heading: 'Credentials',
567
- // children: [
568
- // <Button
569
- // key="Credentials Button Users"
570
- // variant="navItemButton"
571
- // sx={{
572
- // paddingLeft: '45px',
573
- // paddingRight: '45px',
574
- // }}
575
- // >
576
- // Users
577
- // </Button>,
578
- // {
579
- // isSubTitle: true,
580
- // subTitle: 'PingOne Services',
581
- // },
582
- // <Button
583
- // key="Credentials Button Group"
584
- // variant="navItemButton"
585
- // sx={{
586
- // paddingLeft: '45px',
587
- // paddingRight: '45px',
588
- // }}
589
- // >
590
- // Group
591
- // </Button>,
592
- // ],
593
- // },
594
- // ];
595
- // const thirdData = [
596
- // {
597
- // icon: Earth,
598
- // key: 'Environment',
599
- // heading: 'Environment title that is so long, it wraps',
600
- // children: [
601
- // <Button
602
- // key="Earth Button Users"
603
- // variant="navItemButton"
604
- // sx={{
605
- // paddingLeft: '45px',
606
- // paddingRight: '45px',
607
- // }}
608
- // >
609
- // Users
610
- // </Button>,
611
- // <Button
612
- // key="Earth Button Group"
613
- // variant="navItemButton"
614
- // sx={{
615
- // paddingLeft: '45px',
616
- // paddingRight: '45px',
617
- // }}
618
- // >
619
- // Group
620
- // </Button>,
621
- // ],
622
- // },
623
- // ];
624
- ___EmotionJSX(NavBar, null, ___EmotionJSX(Box, {
625
- sx: {
626
- padding: '15px'
627
- }
628
- }, ___EmotionJSX(Link, {
629
- href: "https://pingidentity.com",
630
- target: "_blank",
631
- "aria-label": "home link"
632
- }, logo)), ___EmotionJSX(Separator, {
633
- sx: {
634
- mt: '10px',
635
- mb: '10px'
636
- }
637
- }), ___EmotionJSX(Box, {
638
- variant: "boxes.navBarSectionContainer"
639
- }, ___EmotionJSX(NavBarSection, {
640
- items: data,
641
- hasSeparator: true
642
- }), ___EmotionJSX(NavBarSection, {
643
- items: secondData,
644
- hasSeparator: true,
645
- title: "PingOne Services"
646
- }), ___EmotionJSX(NavBarSection, {
647
- items: thirdData
648
- })))
649
- );
230
+ return ___EmotionJSX(NavBar, {
231
+ defaultSelectedKeys: ['Dashboard Link Group']
232
+ }, ___EmotionJSX(Box, {
233
+ padding: "md"
234
+ }, ___EmotionJSX(Link, {
235
+ href: "https://pingidentity.com",
236
+ target: "_blank",
237
+ "aria-label": "home link"
238
+ }, logo)), ___EmotionJSX(Separator, {
239
+ marginTop: "lg",
240
+ marginBottom: "sm"
241
+ }), ___EmotionJSX(Box, {
242
+ variant: "navBar.sectionContainer",
243
+ paddingBottom: "xl"
244
+ }, ___EmotionJSX(NavBarItem, {
245
+ id: "Overview",
246
+ key: "Overview",
247
+ text: "Overview",
248
+ icon: GlobeIcon
249
+ }), ___EmotionJSX(NavBarSection, {
250
+ items: data,
251
+ hasSeparator: true
252
+ }), ___EmotionJSX(NavBarSection, {
253
+ items: secondData,
254
+ hasSeparator: true,
255
+ title: "PingOne Services"
256
+ }), ___EmotionJSX(NavBarSection, {
257
+ items: thirdData
258
+ })));
650
259
  };