@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.
- package/lib/cjs/components/Button/Buttons.styles.d.ts +40 -0
- package/lib/cjs/components/Button/Buttons.styles.js +4 -0
- package/lib/cjs/components/ListView/ListView.stories.d.ts +3 -0
- package/lib/cjs/components/ListView/ListView.stories.js +2 -1
- 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/components/Pagination/Pagination.d.ts +4 -0
- package/lib/cjs/components/Pagination/Pagination.js +78 -0
- package/lib/cjs/components/Pagination/Pagination.mdx +68 -0
- package/lib/cjs/components/Pagination/Pagination.stories.d.ts +39 -0
- package/lib/cjs/components/Pagination/Pagination.stories.js +159 -0
- package/lib/cjs/components/Pagination/Pagination.styles.d.ts +17 -0
- package/lib/cjs/components/Pagination/Pagination.styles.js +27 -0
- package/lib/cjs/components/Pagination/Pagination.test.d.ts +1 -0
- package/lib/cjs/components/Pagination/Pagination.test.js +208 -0
- package/lib/cjs/components/Pagination/PaginationProvider.d.ts +4 -0
- package/lib/cjs/components/Pagination/PaginationProvider.js +38 -0
- package/lib/cjs/components/Pagination/index.d.ts +2 -0
- package/lib/cjs/components/Pagination/index.js +33 -0
- package/lib/cjs/context/PaginationContext/index.d.ts +10 -0
- package/lib/cjs/context/PaginationContext/index.js +20 -0
- package/lib/cjs/hooks/index.d.ts +2 -0
- package/lib/cjs/hooks/index.js +14 -0
- package/lib/cjs/hooks/usePagination/index.d.ts +1 -0
- package/lib/cjs/hooks/usePagination/index.js +14 -0
- package/lib/cjs/hooks/usePagination/usePagination.d.ts +682 -0
- package/lib/cjs/hooks/usePagination/usePagination.js +178 -0
- package/lib/cjs/hooks/usePaginationState/index.d.ts +1 -0
- package/lib/cjs/hooks/usePaginationState/index.js +14 -0
- package/lib/cjs/hooks/usePaginationState/usePaginationState.d.ts +4 -0
- package/lib/cjs/hooks/usePaginationState/usePaginationState.js +18 -0
- package/lib/cjs/index.d.ts +3 -0
- package/lib/cjs/index.js +24 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/buttons.d.ts +3 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/buttons.js +3 -0
- package/lib/cjs/styles/themes/next-gen/convertedComponentList.d.ts +4 -0
- package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +8 -3
- package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +30 -0
- package/lib/cjs/styles/themes/next-gen/variants/button.d.ts +17 -0
- package/lib/cjs/styles/themes/next-gen/variants/button.js +7 -1
- 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/styles/variants/variants.js +3 -1
- package/lib/cjs/types/pagination.d.ts +46 -0
- package/lib/cjs/types/pagination.js +6 -0
- package/lib/cjs/utils/devUtils/shouldReturnComingSoon.js +8 -2
- package/lib/components/Button/Buttons.styles.js +4 -0
- package/lib/components/ListView/ListView.stories.js +1 -1
- 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/components/Pagination/Pagination.js +64 -0
- package/lib/components/Pagination/Pagination.mdx +68 -0
- package/lib/components/Pagination/Pagination.stories.js +141 -0
- package/lib/components/Pagination/Pagination.styles.js +19 -0
- package/lib/components/Pagination/Pagination.test.js +205 -0
- package/lib/components/Pagination/PaginationProvider.js +24 -0
- package/lib/components/Pagination/index.js +2 -0
- package/lib/context/PaginationContext/index.js +11 -0
- package/lib/hooks/index.js +2 -0
- package/lib/hooks/usePagination/index.js +1 -0
- package/lib/hooks/usePagination/usePagination.js +170 -0
- package/lib/hooks/usePaginationState/index.js +1 -0
- package/lib/hooks/usePaginationState/usePaginationState.js +10 -0
- package/lib/index.js +3 -0
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/buttons.js +3 -0
- package/lib/styles/themes/next-gen/convertedComponentList.js +6 -2
- package/lib/styles/themes/next-gen/variants/button.js +7 -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/styles/variants/variants.js +3 -1
- package/lib/types/pagination.js +1 -0
- 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
@@ -1,182 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import AccountCheckIcon from '@pingux/mdi-react/AccountCheckOutlineIcon';
|
3
|
-
import AccountMultipleOutlineIcon from '@pingux/mdi-react/AccountMultipleOutlineIcon';
|
4
|
-
import AppsIcon from '@pingux/mdi-react/AppsIcon';
|
5
|
-
import CheckCircleOutlineIcon from '@pingux/mdi-react/CheckCircleOutlineIcon';
|
6
|
-
import CodeTagsIcon from '@pingux/mdi-react/CodeTagsIcon';
|
7
|
-
import CogOutlineIcon from '@pingux/mdi-react/CogOutlineIcon';
|
8
|
-
import FileTreeIcon from '@pingux/mdi-react/FileTreeIcon';
|
9
|
-
import LayersOutlineIcon from '@pingux/mdi-react/LayersOutlineIcon';
|
10
|
-
import PaletteOutlineIcon from '@pingux/mdi-react/PaletteOutlineIcon';
|
11
|
-
import ShieldCheckOutlineIcon from '@pingux/mdi-react/ShieldCheckOutlineIcon';
|
12
|
-
import ShowChartIcon from '@pingux/mdi-react/ShowChartIcon';
|
13
|
-
import DashboardIcon from '@pingux/mdi-react/ViewDashboardOutlineIcon';
|
14
|
-
import WidgetsOutlineIcon from '@pingux/mdi-react/WidgetsOutlineIcon';
|
15
|
-
import useGetTheme from '../../../../hooks/useGetTheme';
|
16
|
-
import { Box, NavBar, NavBarItem, NavBarItemButton, NavBarSection, Separator } from '../../../../index';
|
17
|
-
import { jsx as ___EmotionJSX } from "@emotion/react";
|
18
|
-
var data = [{
|
19
|
-
'data-id': 'dashboard-data-id',
|
20
|
-
heading: 'Monitoring',
|
21
|
-
icon: ShowChartIcon,
|
22
|
-
key: 'Monitoring',
|
23
|
-
children: [___EmotionJSX(NavBarItemButton, {
|
24
|
-
key: "Dashboards",
|
25
|
-
id: "Dashboards"
|
26
|
-
}, "Dashboards"), ___EmotionJSX(NavBarItemButton, {
|
27
|
-
key: "Audit",
|
28
|
-
id: "Audit"
|
29
|
-
}, "Audits")]
|
30
|
-
}, {
|
31
|
-
'data-id': 'Directory-data-id',
|
32
|
-
heading: 'Directory',
|
33
|
-
icon: AccountMultipleOutlineIcon,
|
34
|
-
key: 'Directory',
|
35
|
-
children: [___EmotionJSX(NavBarItemButton, {
|
36
|
-
key: "Users",
|
37
|
-
id: "Users"
|
38
|
-
}, "Users"), ___EmotionJSX(NavBarItemButton, {
|
39
|
-
key: "Group",
|
40
|
-
id: "Group"
|
41
|
-
}, "Groups")]
|
42
|
-
}, {
|
43
|
-
'data-id': 'Applications-data-id',
|
44
|
-
heading: 'Applications',
|
45
|
-
icon: AppsIcon,
|
46
|
-
key: 'Applications',
|
47
|
-
children: [___EmotionJSX(NavBarItemButton, {
|
48
|
-
key: "Applications-sub",
|
49
|
-
id: "Applications-sub"
|
50
|
-
}, "Applications"), ___EmotionJSX(NavBarItemButton, {
|
51
|
-
key: "Resources",
|
52
|
-
id: "Resources"
|
53
|
-
}, "Resourcess")]
|
54
|
-
}];
|
55
|
-
var secondData = [{
|
56
|
-
'data-id': 'Authentication-data-id',
|
57
|
-
heading: 'Authentication',
|
58
|
-
icon: CheckCircleOutlineIcon,
|
59
|
-
key: 'Authentication',
|
60
|
-
children: [___EmotionJSX(NavBarItemButton, {
|
61
|
-
key: "Authentication-Policies",
|
62
|
-
id: "Authentication-Policies"
|
63
|
-
}, "Authentication Policies"), ___EmotionJSX(NavBarItemButton, {
|
64
|
-
key: "Password-Policies",
|
65
|
-
id: "Password-Policies"
|
66
|
-
}, "Password Policies")]
|
67
|
-
}, {
|
68
|
-
'data-id': 'Threat Protection-data-id',
|
69
|
-
heading: 'Threat Protection',
|
70
|
-
icon: ShieldCheckOutlineIcon,
|
71
|
-
key: 'Threat Protection',
|
72
|
-
children: [___EmotionJSX(NavBarItemButton, {
|
73
|
-
key: "Risk Policies",
|
74
|
-
id: "Risk Policies"
|
75
|
-
}, "Risk Policies"), ___EmotionJSX(NavBarItemButton, {
|
76
|
-
key: "Predictors",
|
77
|
-
id: "Predictors"
|
78
|
-
}, "Predictors")]
|
79
|
-
}, {
|
80
|
-
'data-id': 'Threat Protection-data-id',
|
81
|
-
heading: 'Identity Verification',
|
82
|
-
icon: LayersOutlineIcon,
|
83
|
-
key: 'Identity Verification',
|
84
|
-
children: [___EmotionJSX(NavBarItemButton, {
|
85
|
-
key: "Verify Policies",
|
86
|
-
id: "Verify Policies"
|
87
|
-
}, "Verify Policies")]
|
88
|
-
}, {
|
89
|
-
'data-id': 'Digital Credentials-data-id',
|
90
|
-
heading: 'Digital Credentials',
|
91
|
-
icon: CodeTagsIcon,
|
92
|
-
key: 'Digital Credentials',
|
93
|
-
children: [___EmotionJSX(NavBarItemButton, {
|
94
|
-
key: "Management",
|
95
|
-
id: "Management"
|
96
|
-
}, "Management")]
|
97
|
-
}, {
|
98
|
-
'data-id': 'Authorization-data-id',
|
99
|
-
heading: 'Authorization',
|
100
|
-
icon: AccountCheckIcon,
|
101
|
-
key: 'Authorization',
|
102
|
-
children: [___EmotionJSX(NavBarItemButton, {
|
103
|
-
key: "Trust Framework",
|
104
|
-
id: "Trust Framework"
|
105
|
-
}, "Trust Framework"), ___EmotionJSX(NavBarItemButton, {
|
106
|
-
key: "Policies",
|
107
|
-
id: "Policies"
|
108
|
-
}, "Policies")]
|
109
|
-
}];
|
110
|
-
var thirdData = [{
|
111
|
-
'data-id': 'Integrations-data-id',
|
112
|
-
heading: 'Integrations',
|
113
|
-
icon: WidgetsOutlineIcon,
|
114
|
-
key: 'Integrations',
|
115
|
-
children: [___EmotionJSX(NavBarItemButton, {
|
116
|
-
key: "External IDPs",
|
117
|
-
id: "External IDPs"
|
118
|
-
}, "External IDPs"), ___EmotionJSX(NavBarItemButton, {
|
119
|
-
key: "Provisioning",
|
120
|
-
id: "Provisioning"
|
121
|
-
}, "Provisioning")]
|
122
|
-
}, {
|
123
|
-
'data-id': 'User Experience-data-id',
|
124
|
-
heading: 'User Experience',
|
125
|
-
icon: PaletteOutlineIcon,
|
126
|
-
key: 'User Experience',
|
127
|
-
children: [___EmotionJSX(NavBarItemButton, {
|
128
|
-
key: "Notification Templates",
|
129
|
-
id: "Notification Templates"
|
130
|
-
}, "Notification Templates"), ___EmotionJSX(NavBarItemButton, {
|
131
|
-
key: "Notification Policies",
|
132
|
-
id: "Notification Policies"
|
133
|
-
}, "Notification Policies")]
|
134
|
-
}, {
|
135
|
-
'data-id': 'Settings-data-id',
|
136
|
-
heading: 'Settings',
|
137
|
-
icon: CogOutlineIcon,
|
138
|
-
key: 'Settings',
|
139
|
-
children: [___EmotionJSX(NavBarItemButton, {
|
140
|
-
key: "Certificates & Key Pairs",
|
141
|
-
id: "Certificates & Key Pairs"
|
142
|
-
}, "Certificates & Key Pairs"), ___EmotionJSX(NavBarItemButton, {
|
143
|
-
key: "Domains",
|
144
|
-
id: "Domains"
|
145
|
-
}, "Domains")]
|
146
|
-
}];
|
147
|
-
export var NavBarNextGenComponent = function NavBarNextGenComponent() {
|
148
|
-
var _useGetTheme = useGetTheme(),
|
149
|
-
icons = _useGetTheme.icons;
|
150
|
-
return ___EmotionJSX(NavBar, null, ___EmotionJSX(Box, {
|
151
|
-
padding: "md",
|
152
|
-
key: "top-logo-parent"
|
153
|
-
}, icons.pingLogoHorizontalSmall), ___EmotionJSX(Box, {
|
154
|
-
paddingBottom: "xl",
|
155
|
-
key: "first-section-container"
|
156
|
-
}, ___EmotionJSX(NavBarItem, {
|
157
|
-
"data-id": "nav-bar-item",
|
158
|
-
icon: DashboardIcon,
|
159
|
-
id: "Overview",
|
160
|
-
key: "Overview",
|
161
|
-
text: "Overview"
|
162
|
-
}), ___EmotionJSX(NavBarSection, {
|
163
|
-
items: data,
|
164
|
-
"data-id": "nav-bar-section"
|
165
|
-
}), ___EmotionJSX(Separator, {
|
166
|
-
variant: "separator.navBarSeparator"
|
167
|
-
}), ___EmotionJSX(NavBarItem, {
|
168
|
-
"data-id": "nav-bar-item",
|
169
|
-
icon: FileTreeIcon,
|
170
|
-
id: "DaVinci",
|
171
|
-
key: "DaVinci",
|
172
|
-
text: "DaVinci"
|
173
|
-
}), ___EmotionJSX(NavBarSection, {
|
174
|
-
items: secondData,
|
175
|
-
"data-id": "second-nav-bar-section"
|
176
|
-
}), ___EmotionJSX(Separator, {
|
177
|
-
variant: "separator.navBarSeparator"
|
178
|
-
}), ___EmotionJSX(NavBarSection, {
|
179
|
-
items: thirdData,
|
180
|
-
"data-id": "third-nav-bar-section"
|
181
|
-
})));
|
182
|
-
};
|
/package/lib/cjs/{styles/themes/next-gen → components/NavBar}/stories/NavBarNextGenComponent.d.ts
RENAMED
File without changes
|
File without changes
|
File without changes
|