@pingux/astro 2.163.1-alpha.2 → 2.163.1-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/MenuItem/MenuItem.js +22 -13
- package/lib/cjs/components/MenuItem/MenuItem.styles.d.ts +1 -1
- package/lib/cjs/components/MenuItem/MenuItem.styles.js +1 -1
- package/lib/cjs/components/MenuItem/MenuItem.test.js +217 -194
- package/lib/cjs/components/MenuSection/MenuSection.js +2 -1
- package/lib/cjs/components/PopoverMenu/PopoverMenu.stories.js +57 -33
- package/lib/cjs/hooks/useGetTheme/useGetTheme.d.ts +2 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/colors.d.ts +3 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/colors.js +3 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/customProperties/icons.d.ts +1 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/customProperties/index.d.ts +1 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/menu.d.ts +15 -2
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/menu.js +20 -7
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.d.ts +15 -2
- package/lib/cjs/styles/themeOverrides/onyxSideNav.d.ts +1 -0
- package/lib/cjs/styles/themes/astro/customProperties/icons.d.ts +1 -0
- package/lib/cjs/styles/themes/astro/customProperties/icons.js +1 -1
- package/lib/cjs/styles/themes/astro/customProperties/index.d.ts +1 -0
- package/lib/cjs/styles/themes/next-gen/customProperties/icons.d.ts +1 -0
- package/lib/cjs/styles/themes/next-gen/customProperties/icons.js +1 -1
- package/lib/cjs/styles/themes/next-gen/customProperties/index.d.ts +1 -0
- package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +34 -2
- package/lib/cjs/styles/themes/next-gen/variants/menu.d.ts +32 -2
- package/lib/cjs/styles/themes/next-gen/variants/menu.js +39 -9
- package/lib/cjs/styles/themes/next-gen/variants/popoverMenu.d.ts +1 -0
- package/lib/cjs/styles/themes/next-gen/variants/popoverMenu.js +1 -0
- package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +33 -2
- package/lib/cjs/styles/themes/next-gen/variants/variants.js +1 -0
- package/lib/components/MenuItem/MenuItem.js +25 -16
- package/lib/components/MenuItem/MenuItem.styles.js +1 -1
- package/lib/components/MenuItem/MenuItem.test.js +224 -201
- package/lib/components/MenuSection/MenuSection.js +2 -1
- package/lib/components/PopoverMenu/PopoverMenu.stories.js +57 -33
- package/lib/styles/themeOverrides/nextGenDarkMode/colors.js +3 -0
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/menu.js +20 -7
- package/lib/styles/themes/astro/customProperties/icons.js +1 -1
- package/lib/styles/themes/next-gen/customProperties/icons.js +1 -1
- package/lib/styles/themes/next-gen/variants/menu.js +38 -8
- package/lib/styles/themes/next-gen/variants/popoverMenu.js +1 -0
- package/lib/styles/themes/next-gen/variants/variants.js +2 -1
- package/lib/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
|
|
2
2
|
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
|
3
3
|
import React, { useState } from 'react';
|
|
4
|
-
import DotsVerticalIcon from '@pingux/mdi-react/DotsVerticalIcon';
|
|
5
4
|
import { action } from '@storybook/addon-actions';
|
|
6
5
|
import { withDesign } from 'storybook-addon-designs';
|
|
7
6
|
import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
|
7
|
+
import { useGetTheme } from '../../hooks';
|
|
8
8
|
import { Icon, IconButton, Item, Menu, OverlayProvider, PopoverMenu, Section, Text } from '../../index';
|
|
9
9
|
import { FIGMA_LINKS } from '../../utils/designUtils/figmaLinks';
|
|
10
10
|
import PopoverMenuReadme from './PopoverMenu.mdx';
|
|
@@ -37,17 +37,20 @@ export default {
|
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
39
|
export var Default = function Default(args) {
|
|
40
|
+
var _useGetTheme = useGetTheme(),
|
|
41
|
+
isOnyx = _useGetTheme.themeState.isOnyx,
|
|
42
|
+
popoverMenuIcon = _useGetTheme.icons.popoverMenuIcon;
|
|
40
43
|
return (
|
|
41
44
|
// Application must be wrapped in an OverlayProvider so that it can be hidden from screen
|
|
42
45
|
// readers when an overlay opens.
|
|
43
46
|
___EmotionJSX(OverlayProvider, null, ___EmotionJSX(PopoverMenu, args, ___EmotionJSX(IconButton, {
|
|
44
47
|
"aria-label": "more options",
|
|
45
|
-
variant:
|
|
48
|
+
variant: isOnyx ? undefined : 'inverted'
|
|
46
49
|
}, ___EmotionJSX(Icon, {
|
|
47
|
-
icon:
|
|
50
|
+
icon: popoverMenuIcon,
|
|
48
51
|
size: "md",
|
|
49
52
|
title: {
|
|
50
|
-
name: 'Dots
|
|
53
|
+
name: 'Dots Icon'
|
|
51
54
|
}
|
|
52
55
|
})), ___EmotionJSX(Menu, {
|
|
53
56
|
onAction: action('onAction')
|
|
@@ -59,7 +62,7 @@ export var Default = function Default(args) {
|
|
|
59
62
|
key: "delete",
|
|
60
63
|
textValue: "delete"
|
|
61
64
|
}, ___EmotionJSX(Text, {
|
|
62
|
-
color:
|
|
65
|
+
color: isOnyx ? 'critical.dark' : 'critical.bright'
|
|
63
66
|
}, "Delete")))))
|
|
64
67
|
);
|
|
65
68
|
};
|
|
@@ -70,6 +73,9 @@ Default.parameters = {
|
|
|
70
73
|
}
|
|
71
74
|
};
|
|
72
75
|
export var DefaultOpen = function DefaultOpen(args) {
|
|
76
|
+
var _useGetTheme2 = useGetTheme(),
|
|
77
|
+
isOnyx = _useGetTheme2.themeState.isOnyx,
|
|
78
|
+
popoverMenuIcon = _useGetTheme2.icons.popoverMenuIcon;
|
|
73
79
|
return (
|
|
74
80
|
// Application must be wrapped in an OverlayProvider so that it can be hidden from screen
|
|
75
81
|
// readers when an overlay opens.
|
|
@@ -77,12 +83,12 @@ export var DefaultOpen = function DefaultOpen(args) {
|
|
|
77
83
|
isDefaultOpen: true
|
|
78
84
|
}), ___EmotionJSX(IconButton, {
|
|
79
85
|
"aria-label": "more options",
|
|
80
|
-
variant:
|
|
86
|
+
variant: isOnyx ? undefined : 'inverted'
|
|
81
87
|
}, ___EmotionJSX(Icon, {
|
|
82
|
-
icon:
|
|
88
|
+
icon: popoverMenuIcon,
|
|
83
89
|
size: "md",
|
|
84
90
|
title: {
|
|
85
|
-
name: 'Dots
|
|
91
|
+
name: 'Dots Icon'
|
|
86
92
|
}
|
|
87
93
|
})), ___EmotionJSX(Menu, {
|
|
88
94
|
onAction: action('onAction'),
|
|
@@ -95,7 +101,7 @@ export var DefaultOpen = function DefaultOpen(args) {
|
|
|
95
101
|
key: "delete",
|
|
96
102
|
textValue: "delete"
|
|
97
103
|
}, ___EmotionJSX(Text, {
|
|
98
|
-
color:
|
|
104
|
+
color: isOnyx ? 'critical.dark' : 'critical.bright'
|
|
99
105
|
}, "Delete")))))
|
|
100
106
|
);
|
|
101
107
|
};
|
|
@@ -104,6 +110,9 @@ export var Controlled = function Controlled() {
|
|
|
104
110
|
_useState2 = _slicedToArray(_useState, 2),
|
|
105
111
|
isOpen = _useState2[0],
|
|
106
112
|
setIsOpen = _useState2[1];
|
|
113
|
+
var _useGetTheme3 = useGetTheme(),
|
|
114
|
+
isOnyx = _useGetTheme3.themeState.isOnyx,
|
|
115
|
+
popoverMenuIcon = _useGetTheme3.icons.popoverMenuIcon;
|
|
107
116
|
return (
|
|
108
117
|
// Application must be wrapped in an OverlayProvider so that it can be hidden from screen
|
|
109
118
|
// readers when an overlay opens.
|
|
@@ -112,12 +121,12 @@ export var Controlled = function Controlled() {
|
|
|
112
121
|
onOpenChange: setIsOpen
|
|
113
122
|
}, ___EmotionJSX(IconButton, {
|
|
114
123
|
"aria-label": "more options",
|
|
115
|
-
variant:
|
|
124
|
+
variant: isOnyx ? undefined : 'inverted'
|
|
116
125
|
}, ___EmotionJSX(Icon, {
|
|
117
|
-
icon:
|
|
126
|
+
icon: popoverMenuIcon,
|
|
118
127
|
size: "md",
|
|
119
128
|
title: {
|
|
120
|
-
name: 'Dots
|
|
129
|
+
name: 'Dots Icon'
|
|
121
130
|
}
|
|
122
131
|
})), ___EmotionJSX(Menu, {
|
|
123
132
|
onAction: action('onAction')
|
|
@@ -129,11 +138,14 @@ export var Controlled = function Controlled() {
|
|
|
129
138
|
key: "delete",
|
|
130
139
|
textValue: "delete"
|
|
131
140
|
}, ___EmotionJSX(Text, {
|
|
132
|
-
color:
|
|
141
|
+
color: isOnyx ? 'critical.dark' : 'critical.bright'
|
|
133
142
|
}, "Delete")))))
|
|
134
143
|
);
|
|
135
144
|
};
|
|
136
145
|
export var Placement = function Placement(args) {
|
|
146
|
+
var _useGetTheme4 = useGetTheme(),
|
|
147
|
+
isOnyx = _useGetTheme4.themeState.isOnyx,
|
|
148
|
+
popoverMenuIcon = _useGetTheme4.icons.popoverMenuIcon;
|
|
137
149
|
return (
|
|
138
150
|
// Application must be wrapped in an OverlayProvider so that it can be hidden from screen
|
|
139
151
|
// readers when an overlay opens.
|
|
@@ -141,12 +153,12 @@ export var Placement = function Placement(args) {
|
|
|
141
153
|
direction: "left"
|
|
142
154
|
}), ___EmotionJSX(IconButton, {
|
|
143
155
|
"aria-label": "more options",
|
|
144
|
-
variant:
|
|
156
|
+
variant: isOnyx ? undefined : 'inverted'
|
|
145
157
|
}, ___EmotionJSX(Icon, {
|
|
146
|
-
icon:
|
|
158
|
+
icon: popoverMenuIcon,
|
|
147
159
|
size: "md",
|
|
148
160
|
title: {
|
|
149
|
-
name: 'Dots
|
|
161
|
+
name: 'Dots Icon'
|
|
150
162
|
}
|
|
151
163
|
})), ___EmotionJSX(Menu, {
|
|
152
164
|
onAction: action('onAction')
|
|
@@ -158,11 +170,14 @@ export var Placement = function Placement(args) {
|
|
|
158
170
|
key: "delete",
|
|
159
171
|
textValue: "delete"
|
|
160
172
|
}, ___EmotionJSX(Text, {
|
|
161
|
-
color:
|
|
173
|
+
color: isOnyx ? 'critical.dark' : 'critical.bright'
|
|
162
174
|
}, "Delete")))))
|
|
163
175
|
);
|
|
164
176
|
};
|
|
165
177
|
export var NotFlippable = function NotFlippable(args) {
|
|
178
|
+
var _useGetTheme5 = useGetTheme(),
|
|
179
|
+
isOnyx = _useGetTheme5.themeState.isOnyx,
|
|
180
|
+
popoverMenuIcon = _useGetTheme5.icons.popoverMenuIcon;
|
|
166
181
|
return (
|
|
167
182
|
// Application must be wrapped in an OverlayProvider so that it can be hidden from screen
|
|
168
183
|
// readers when an overlay opens.
|
|
@@ -171,12 +186,12 @@ export var NotFlippable = function NotFlippable(args) {
|
|
|
171
186
|
isNotFlippable: true
|
|
172
187
|
}), ___EmotionJSX(IconButton, {
|
|
173
188
|
"aria-label": "more options",
|
|
174
|
-
variant:
|
|
189
|
+
variant: isOnyx ? undefined : 'inverted'
|
|
175
190
|
}, ___EmotionJSX(Icon, {
|
|
176
|
-
icon:
|
|
191
|
+
icon: popoverMenuIcon,
|
|
177
192
|
size: "md",
|
|
178
193
|
title: {
|
|
179
|
-
name: 'Dots
|
|
194
|
+
name: 'Dots Icon'
|
|
180
195
|
}
|
|
181
196
|
})), ___EmotionJSX(Menu, {
|
|
182
197
|
onAction: action('onAction')
|
|
@@ -188,11 +203,14 @@ export var NotFlippable = function NotFlippable(args) {
|
|
|
188
203
|
key: "delete",
|
|
189
204
|
textValue: "delete"
|
|
190
205
|
}, ___EmotionJSX(Text, {
|
|
191
|
-
color:
|
|
206
|
+
color: isOnyx ? 'critical.dark' : 'critical.bright'
|
|
192
207
|
}, "Delete")))))
|
|
193
208
|
);
|
|
194
209
|
};
|
|
195
210
|
export var NotClosedOnSelect = function NotClosedOnSelect(args) {
|
|
211
|
+
var _useGetTheme6 = useGetTheme(),
|
|
212
|
+
isOnyx = _useGetTheme6.themeState.isOnyx,
|
|
213
|
+
popoverMenuIcon = _useGetTheme6.icons.popoverMenuIcon;
|
|
196
214
|
return (
|
|
197
215
|
// Application must be wrapped in an OverlayProvider so that it can be hidden from screen
|
|
198
216
|
// readers when an overlay opens.
|
|
@@ -200,12 +218,12 @@ export var NotClosedOnSelect = function NotClosedOnSelect(args) {
|
|
|
200
218
|
isNotClosedOnSelect: true
|
|
201
219
|
}), ___EmotionJSX(IconButton, {
|
|
202
220
|
"aria-label": "more options",
|
|
203
|
-
variant:
|
|
221
|
+
variant: isOnyx ? undefined : 'inverted'
|
|
204
222
|
}, ___EmotionJSX(Icon, {
|
|
205
|
-
icon:
|
|
223
|
+
icon: popoverMenuIcon,
|
|
206
224
|
size: "md",
|
|
207
225
|
title: {
|
|
208
|
-
name: 'Dots
|
|
226
|
+
name: 'Dots Icon'
|
|
209
227
|
}
|
|
210
228
|
})), ___EmotionJSX(Menu, {
|
|
211
229
|
onAction: action('onAction')
|
|
@@ -217,22 +235,25 @@ export var NotClosedOnSelect = function NotClosedOnSelect(args) {
|
|
|
217
235
|
key: "delete",
|
|
218
236
|
textValue: "delete"
|
|
219
237
|
}, ___EmotionJSX(Text, {
|
|
220
|
-
color:
|
|
238
|
+
color: isOnyx ? 'critical.dark' : 'critical.bright'
|
|
221
239
|
}, "Delete")))))
|
|
222
240
|
);
|
|
223
241
|
};
|
|
224
242
|
export var WithSeparator = function WithSeparator(args) {
|
|
243
|
+
var _useGetTheme7 = useGetTheme(),
|
|
244
|
+
isOnyx = _useGetTheme7.themeState.isOnyx,
|
|
245
|
+
popoverMenuIcon = _useGetTheme7.icons.popoverMenuIcon;
|
|
225
246
|
return (
|
|
226
247
|
// Application must be wrapped in an OverlayProvider so that it can be hidden from screen
|
|
227
248
|
// readers when an overlay opens.
|
|
228
249
|
___EmotionJSX(OverlayProvider, null, ___EmotionJSX(PopoverMenu, args, ___EmotionJSX(IconButton, {
|
|
229
250
|
"aria-label": "more options",
|
|
230
|
-
variant:
|
|
251
|
+
variant: isOnyx ? undefined : 'inverted'
|
|
231
252
|
}, ___EmotionJSX(Icon, {
|
|
232
|
-
icon:
|
|
253
|
+
icon: popoverMenuIcon,
|
|
233
254
|
size: "md",
|
|
234
255
|
title: {
|
|
235
|
-
name: 'Dots
|
|
256
|
+
name: 'Dots Icon'
|
|
236
257
|
}
|
|
237
258
|
})), ___EmotionJSX(Menu, {
|
|
238
259
|
onAction: action('onAction'),
|
|
@@ -245,22 +266,25 @@ export var WithSeparator = function WithSeparator(args) {
|
|
|
245
266
|
key: "delete",
|
|
246
267
|
textValue: "delete"
|
|
247
268
|
}, ___EmotionJSX(Text, {
|
|
248
|
-
color:
|
|
269
|
+
color: isOnyx ? 'critical.dark' : 'critical.bright'
|
|
249
270
|
}, "Delete"))))))
|
|
250
271
|
);
|
|
251
272
|
};
|
|
252
273
|
export var WithSections = function WithSections(args) {
|
|
274
|
+
var _useGetTheme8 = useGetTheme(),
|
|
275
|
+
isOnyx = _useGetTheme8.themeState.isOnyx,
|
|
276
|
+
popoverMenuIcon = _useGetTheme8.icons.popoverMenuIcon;
|
|
253
277
|
return (
|
|
254
278
|
// Application must be wrapped in an OverlayProvider so that it can be hidden from screen
|
|
255
279
|
// readers when an overlay opens.
|
|
256
280
|
___EmotionJSX(OverlayProvider, null, ___EmotionJSX(PopoverMenu, args, ___EmotionJSX(IconButton, {
|
|
257
281
|
"aria-label": "more options",
|
|
258
|
-
variant:
|
|
282
|
+
variant: isOnyx ? undefined : 'inverted'
|
|
259
283
|
}, ___EmotionJSX(Icon, {
|
|
260
|
-
icon:
|
|
284
|
+
icon: popoverMenuIcon,
|
|
261
285
|
size: "md",
|
|
262
286
|
title: {
|
|
263
|
-
name: 'Dots
|
|
287
|
+
name: 'Dots Icon'
|
|
264
288
|
}
|
|
265
289
|
})), ___EmotionJSX(Menu, {
|
|
266
290
|
onAction: action('onAction'),
|
|
@@ -283,7 +307,7 @@ export var WithSections = function WithSections(args) {
|
|
|
283
307
|
key: "delete",
|
|
284
308
|
textValue: "delete"
|
|
285
309
|
}, ___EmotionJSX(Text, {
|
|
286
|
-
color:
|
|
310
|
+
color: isOnyx ? 'critical.dark' : 'critical.bright'
|
|
287
311
|
}, "Delete"))))))
|
|
288
312
|
);
|
|
289
313
|
};
|
|
@@ -1,20 +1,33 @@
|
|
|
1
1
|
export var menuItem = {
|
|
2
2
|
item: {
|
|
3
3
|
bg: 'transparent',
|
|
4
|
-
padding: '
|
|
4
|
+
padding: '12px 12px',
|
|
5
5
|
outline: 'none',
|
|
6
6
|
color: 'gray-400',
|
|
7
7
|
cursor: 'pointer',
|
|
8
|
-
'&.is-
|
|
9
|
-
bg: '
|
|
10
|
-
color: '
|
|
8
|
+
'&.is-hovered': {
|
|
9
|
+
bg: '#2C323A',
|
|
10
|
+
color: 'gray-200',
|
|
11
|
+
'> *': {
|
|
12
|
+
color: 'gray-200'
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
'&.is-focused': {
|
|
16
|
+
bg: '#2C323A',
|
|
17
|
+
color: 'gray-200',
|
|
18
|
+
outline: '1px solid',
|
|
19
|
+
outlineOffset: '1px',
|
|
20
|
+
outlineColor: 'primary',
|
|
11
21
|
'> *': {
|
|
12
|
-
color: '
|
|
22
|
+
color: 'gray-200'
|
|
13
23
|
}
|
|
14
24
|
},
|
|
15
|
-
'&.is-pressed': {
|
|
25
|
+
'&.is-selected, &.is-pressed': {
|
|
16
26
|
color: 'text.secondary',
|
|
17
|
-
bg: 'gray-800'
|
|
27
|
+
bg: 'gray-800',
|
|
28
|
+
'> *': {
|
|
29
|
+
color: 'gray-200'
|
|
30
|
+
}
|
|
18
31
|
}
|
|
19
32
|
},
|
|
20
33
|
separator: {
|
|
@@ -40,4 +40,4 @@ import WebIcon from '@pingux/mdi-react/WebIcon';
|
|
|
40
40
|
import { pingLogoHorizontalSmallWhite } from '../../../../utils/devUtils/constants/logos';
|
|
41
41
|
import statuses, { statusIcon } from '../../../../utils/devUtils/constants/statuses';
|
|
42
42
|
import { Aic, Credentials, DaVinci, PamIcon, Protect, Verify } from './navBarIcons';
|
|
43
|
-
export default (_statuses$DEFAULT$sta = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_statuses$DEFAULT$sta, statuses.DEFAULT, InformationIcon), statuses.ERROR, AlertCircleIcon), statuses.SUCCESS, CheckCircleIcon), statuses.WARNING, AlertIcon), statusIcon.CRITICAL, AlertCircleOutlineIcon), statusIcon.FATAL, CloseOctagonOutlineIcon), statusIcon.INFO, InformationOutlineIcon), statusIcon.MAJOR, ArrowUpIcon), statusIcon.MINOR, ArrowDownIcon), statusIcon.WARNING_NEUTRAL, WarningIcon), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_statuses$DEFAULT$sta, "aic", Aic), "applicationsIcon", ApplicationOutlineIcon), "Ascending", MenuUp), "authenticationIcon", CheckCircleOutlineIcon), "clipboard", Clipboard), "CreateIcon", CreateIcon), "daVinci", DaVinci), "DefaultCircle", DefaultCircle), "Descending", MenuDown), "
|
|
43
|
+
export default (_statuses$DEFAULT$sta = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_statuses$DEFAULT$sta, statuses.DEFAULT, InformationIcon), statuses.ERROR, AlertCircleIcon), statuses.SUCCESS, CheckCircleIcon), statuses.WARNING, AlertIcon), statusIcon.CRITICAL, AlertCircleOutlineIcon), statusIcon.FATAL, CloseOctagonOutlineIcon), statusIcon.INFO, InformationOutlineIcon), statusIcon.MAJOR, ArrowUpIcon), statusIcon.MINOR, ArrowDownIcon), statusIcon.WARNING_NEUTRAL, WarningIcon), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_statuses$DEFAULT$sta, "aic", Aic), "applicationsIcon", ApplicationOutlineIcon), "Ascending", MenuUp), "authenticationIcon", CheckCircleOutlineIcon), "clipboard", Clipboard), "CreateIcon", CreateIcon), "daVinci", DaVinci), "DefaultCircle", DefaultCircle), "Descending", MenuDown), "popoverMenuIcon", MoreVertIcon), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_statuses$DEFAULT$sta, "ErrorCircle", AlertCircleIcon), "integrationsIcon", ConnectionIcon), "listViewMenu", MoreVertIcon), "mdiAccountCog", mdiAccountCog), "mdiAccountMultiple", AccountMultiple), "mdiEarth", Earth), "mdiEmoticonHappyOutline", EmoticonHappy), "mdiFingerprint", Fingerprint), "mdiPlayCircleIcon", PlayCircle), "mdiScaleBalance", ScaleBalance), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_statuses$DEFAULT$sta, "mdiShoCard", Credentials), "mdiTransitConnectionVariant", TransitConnection), "mdiViewDashboard", ViewDashboard), "mdiWeb", GlobeIcon), "MenuDown", MenuDown), "MenuUp", MenuUp), "monitoringIcon", PulseIcon), "openInNew", OpenInNew), "overviewIcon", WebIcon), "p1verify", Verify), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_statuses$DEFAULT$sta, "pam", PamIcon), "PingAuthorize", KeyChainVariant), "pingLogoHorizontalSmall", pingLogoHorizontalSmallWhite), "protect", Protect), "rocketLaunchIcon", RocketLaunchIcon), "shareFeedbackIcon", ChatIcon), "shieldStar", ShieldStarOutlineIcon), "SuccessCircle", CheckCircleIcon), "userExperienceIcon", MonitorScreenshotIcon), "WarningIcon", WarningIcon));
|
|
@@ -39,5 +39,5 @@ import WidgetsOutlineIcon from '@pingux/mdi-react/WidgetsOutlineIcon';
|
|
|
39
39
|
import { pingLogoHorizontalSmall } from '../../../../utils/devUtils/constants/logos';
|
|
40
40
|
import statuses, { statusIcon } from '../../../../utils/devUtils/constants/statuses';
|
|
41
41
|
import { Aic, PamIcon, Protect } from '../../astro/customProperties/navBarIcons';
|
|
42
|
-
var icons = (_icons = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_icons, statuses.DEFAULT, InformationOutlineIcon), statuses.ERROR, AlertCircleOutlineIcon), statuses.SUCCESS, CheckCircleOutlineIcon), statuses.WARNING, AlertOutlineIcon), statusIcon.CRITICAL, AlertCircleOutlineIcon), statusIcon.FATAL, CloseOctagonOutlineIcon), statusIcon.INFO, InformationOutlineIcon), statusIcon.MAJOR, ArrowUpIcon), statusIcon.MINOR, ArrowDownIcon), statusIcon.WARNING_NEUTRAL, AlertOutlineIcon), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_icons, "aic", Aic), "applicationsIcon", AppsIcon), "Ascending", ArrowUpIcon), "authenticationIcon", CheckCircleOutlineIcon), "clipboard", Clipboard), "CreateIcon", CreateOutlineIcon), "daVinci", FileTreeIcon), "DefaultCircle", DefaultCircle), "Descending", ArrowDownIcon), "
|
|
42
|
+
var icons = (_icons = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_icons, statuses.DEFAULT, InformationOutlineIcon), statuses.ERROR, AlertCircleOutlineIcon), statuses.SUCCESS, CheckCircleOutlineIcon), statuses.WARNING, AlertOutlineIcon), statusIcon.CRITICAL, AlertCircleOutlineIcon), statusIcon.FATAL, CloseOctagonOutlineIcon), statusIcon.INFO, InformationOutlineIcon), statusIcon.MAJOR, ArrowUpIcon), statusIcon.MINOR, ArrowDownIcon), statusIcon.WARNING_NEUTRAL, AlertOutlineIcon), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_icons, "aic", Aic), "applicationsIcon", AppsIcon), "Ascending", ArrowUpIcon), "authenticationIcon", CheckCircleOutlineIcon), "clipboard", Clipboard), "CreateIcon", CreateOutlineIcon), "daVinci", FileTreeIcon), "DefaultCircle", DefaultCircle), "Descending", ArrowDownIcon), "popoverMenuIcon", DotsHorizontalIcon), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_icons, "ErrorCircle", AlertCircleOutlineIcon), "integrationsIcon", WidgetsOutlineIcon), "listViewMenu", DotsHorizontalIcon), "mdiAccountCog", mdiAccountCog), "mdiAccountMultiple", AccountMultipleOutlineIcon), "mdiEarth", Settings), "mdiEmoticonHappyOutline", EmoticonHappy), "mdiFingerprint", Fingerprint), "mdiPlayCircleIcon", PlayCircleOutline), "mdiScaleBalance", ScaleBalance), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_icons, "mdiShoCard", CardAccountDetailsOutlineIcon), "mdiTransitConnectionVariant", TransitConnection), "mdiViewDashboard", ViewDashboard), "mdiWeb", GlobeIcon), "MenuDown", ChevronDownIcon), "MenuUp", ChevronUpIcon), "monitoringIcon", ShowChartIcon), "openInNew", OpenInNew), "overviewIcon", DashboardIcon), "p1verify", AccountCheckIcon), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_icons, "pam", PamIcon), "PingAuthorize", KeyOutline), "pingLogoHorizontalSmall", pingLogoHorizontalSmall), "protect", Protect), "rocketLaunchIcon", RocketLaunchIcon), "shareFeedbackIcon", ChatIcon), "shieldStar", ShieldStarOutlineIcon), "SuccessCircle", CheckCircleOutlineIcon), "userExperienceIcon", PaletteOutlineIcon), "WarningIcon", AlertOutlineIcon));
|
|
43
43
|
export default icons;
|
|
@@ -3,23 +3,53 @@ export var menu = {
|
|
|
3
3
|
border: '1px solid',
|
|
4
4
|
borderColor: 'border.base'
|
|
5
5
|
};
|
|
6
|
+
export var menuSection = {
|
|
7
|
+
sectionTitle: {
|
|
8
|
+
fontWeight: '1',
|
|
9
|
+
fontSize: 'tiny',
|
|
10
|
+
lineHeight: 'md',
|
|
11
|
+
textTransform: 'uppercase',
|
|
12
|
+
letterSpacing: '1px',
|
|
13
|
+
height: 'unset',
|
|
14
|
+
py: 'sm',
|
|
15
|
+
px: '12px',
|
|
16
|
+
color: 'font.light',
|
|
17
|
+
ml: 0
|
|
18
|
+
}
|
|
19
|
+
};
|
|
6
20
|
export var menuItem = {
|
|
7
21
|
item: {
|
|
8
22
|
bg: 'transparent',
|
|
9
|
-
padding: '
|
|
23
|
+
padding: '12px 12px',
|
|
10
24
|
outline: 'none',
|
|
11
|
-
color: '
|
|
25
|
+
color: 'gray-700',
|
|
26
|
+
fontSize: 'md',
|
|
27
|
+
lineHeight: 'body',
|
|
12
28
|
cursor: 'pointer',
|
|
13
|
-
'
|
|
29
|
+
borderRadius: '4px',
|
|
30
|
+
'&.is-hovered': {
|
|
31
|
+
bg: 'gray-100',
|
|
32
|
+
color: '#121518',
|
|
33
|
+
'> *': {
|
|
34
|
+
color: '#121518'
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
'&.is-focused': {
|
|
14
38
|
bg: 'gray-100',
|
|
15
|
-
color: '
|
|
39
|
+
color: '#121518',
|
|
40
|
+
outline: '1px solid',
|
|
41
|
+
outlineOffset: '1px',
|
|
42
|
+
outlineColor: 'primary',
|
|
16
43
|
'> *': {
|
|
17
|
-
color: '
|
|
44
|
+
color: '#121518'
|
|
18
45
|
}
|
|
19
46
|
},
|
|
20
|
-
'&.is-pressed': {
|
|
21
|
-
|
|
22
|
-
|
|
47
|
+
'&.is-pressed, &.is-selected': {
|
|
48
|
+
bg: 'lightblue',
|
|
49
|
+
color: '#121518',
|
|
50
|
+
'> *': {
|
|
51
|
+
color: '#121518'
|
|
52
|
+
}
|
|
23
53
|
}
|
|
24
54
|
},
|
|
25
55
|
separator: {
|
|
@@ -21,7 +21,7 @@ import { dataTable } from './dataTable';
|
|
|
21
21
|
import { footer } from './footer';
|
|
22
22
|
import iconWrapper from './iconWrapper';
|
|
23
23
|
import { listView, listViewItem, lisViewItemChart } from './listview';
|
|
24
|
-
import { menu, menuItem } from './menu';
|
|
24
|
+
import { menu, menuItem, menuSection } from './menu';
|
|
25
25
|
import { message } from './messages';
|
|
26
26
|
import { navBar } from './navbar';
|
|
27
27
|
import panelHeader from './panelHeader';
|
|
@@ -419,6 +419,7 @@ export default {
|
|
|
419
419
|
loader: loader,
|
|
420
420
|
menu: menu,
|
|
421
421
|
menuItem: menuItem,
|
|
422
|
+
menuSection: menuSection,
|
|
422
423
|
menuTab: menuTab,
|
|
423
424
|
message: message,
|
|
424
425
|
modal: modal,
|