@pingux/astro 2.171.0-alpha.0 → 2.172.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.
- package/lib/cjs/components/Icon/Icon.js +15 -49
- package/lib/cjs/components/Icon/Icon.test.js +7 -36
- package/lib/cjs/components/Icon/IconDefault.d.ts +4 -0
- package/lib/cjs/components/Icon/IconDefault.js +63 -0
- package/lib/cjs/components/Icon/IconDefault.test.js +92 -0
- package/lib/cjs/components/Icon/IconSymbol.d.ts +4 -0
- package/lib/cjs/components/Icon/IconSymbol.js +60 -0
- package/lib/cjs/components/Icon/IconSymbol.mdx +46 -0
- package/lib/cjs/components/Icon/IconSymbol.test.js +80 -0
- package/lib/cjs/components/Icon/MaterialSymbolIcon.stories.d.ts +7 -0
- package/lib/cjs/components/Icon/MaterialSymbolIcon.stories.js +207 -0
- package/lib/cjs/hooks/useGetTheme/useGetTheme.d.ts +31 -31
- package/lib/cjs/index.d.ts +1 -0
- package/lib/cjs/index.js +1 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/customProperties/icons.d.ts +31 -31
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/customProperties/index.d.ts +31 -31
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.d.ts +18 -20
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.js +18 -20
- package/lib/cjs/styles/themeOverrides/onyxSideNav.d.ts +32 -29
- package/lib/cjs/styles/themeOverrides/onyxSideNav.js +3 -0
- package/lib/cjs/styles/themes/next-gen/convertedComponentList.d.ts +1 -0
- package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +3 -2
- package/lib/cjs/styles/themes/next-gen/customProperties/icons.d.ts +32 -32
- package/lib/cjs/styles/themes/next-gen/customProperties/icons.js +1 -32
- package/lib/cjs/styles/themes/next-gen/customProperties/index.d.ts +32 -32
- package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +60 -56
- package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +28 -24
- package/lib/cjs/styles/themes/next-gen/variants/variants.js +28 -24
- package/lib/cjs/types/icon.d.ts +3 -1
- package/lib/cjs/types/navBar.d.ts +2 -1
- package/lib/components/Icon/Icon.js +11 -47
- package/lib/components/Icon/Icon.test.js +5 -34
- package/lib/components/Icon/IconDefault.js +53 -0
- package/lib/components/Icon/IconDefault.test.js +84 -0
- package/lib/components/Icon/IconSymbol.js +50 -0
- package/lib/components/Icon/IconSymbol.mdx +46 -0
- package/lib/components/Icon/IconSymbol.test.js +77 -0
- package/lib/components/Icon/MaterialSymbolIcon.stories.js +200 -0
- package/lib/index.js +1 -1
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/variants.js +18 -20
- package/lib/styles/themeOverrides/onyxSideNav.js +3 -0
- package/lib/styles/themes/next-gen/convertedComponentList.js +3 -2
- package/lib/styles/themes/next-gen/customProperties/icons.js +1 -32
- package/lib/styles/themes/next-gen/variants/variants.js +28 -24
- package/lib/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +4 -2
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
|
|
2
|
+
import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
|
|
3
|
+
import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
|
|
4
|
+
import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";
|
|
5
|
+
import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
|
|
6
|
+
import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
|
|
7
|
+
import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
|
|
8
|
+
import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
|
|
9
|
+
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
|
10
|
+
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
|
11
|
+
import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
|
|
12
|
+
function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14
|
+
import React from 'react';
|
|
15
|
+
import { withDesign } from 'storybook-addon-designs';
|
|
16
|
+
import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
|
17
|
+
import { Box, Icon, Table, TableBody, TableCell, TableHead, TableRow, Text } from '../../index';
|
|
18
|
+
import { FIGMA_LINKS } from '../../utils/designUtils/figmaLinks';
|
|
19
|
+
import { sizeArgTypes } from '../../utils/docUtils/iconSizeProps';
|
|
20
|
+
import IconReadme from './IconSymbol.mdx';
|
|
21
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
22
|
+
export default {
|
|
23
|
+
title: 'Components/MaterialSymbolIcon',
|
|
24
|
+
component: Icon,
|
|
25
|
+
decorators: [withDesign],
|
|
26
|
+
parameters: {
|
|
27
|
+
docs: {
|
|
28
|
+
page: function page() {
|
|
29
|
+
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(IconReadme, null), ___EmotionJSX(DocsLayout, null));
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
argTypes: _objectSpread({
|
|
34
|
+
icon: {
|
|
35
|
+
control: {
|
|
36
|
+
type: {
|
|
37
|
+
name: 'string'
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
description: 'The font icon to render. List of font icons at https://marella.github.io/material-symbols/demo/'
|
|
41
|
+
}
|
|
42
|
+
}, sizeArgTypes),
|
|
43
|
+
args: {
|
|
44
|
+
icon: 'disabled_by_default',
|
|
45
|
+
className: 'material-symbols-outlined',
|
|
46
|
+
size: 'md'
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
export var Default = function Default(args) {
|
|
50
|
+
return ___EmotionJSX(Icon, _extends({}, args, {
|
|
51
|
+
icon: "search",
|
|
52
|
+
title: {
|
|
53
|
+
name: 'Search Icon'
|
|
54
|
+
}
|
|
55
|
+
}));
|
|
56
|
+
};
|
|
57
|
+
Default.parameters = {
|
|
58
|
+
design: {
|
|
59
|
+
type: 'figma',
|
|
60
|
+
url: FIGMA_LINKS.icon["default"]
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
var rowHeadings = ['Size', 'Code Example', 'Icon Example'];
|
|
64
|
+
export var Sizes = function Sizes() {
|
|
65
|
+
return ___EmotionJSX(Table, null, ___EmotionJSX(TableHead, null, ___EmotionJSX(TableRow, {
|
|
66
|
+
key: "head"
|
|
67
|
+
}, _mapInstanceProperty(rowHeadings).call(rowHeadings, function (head) {
|
|
68
|
+
return ___EmotionJSX(TableCell, {
|
|
69
|
+
isHeading: true,
|
|
70
|
+
key: head
|
|
71
|
+
}, head);
|
|
72
|
+
}))), ___EmotionJSX(TableBody, {
|
|
73
|
+
sx: {
|
|
74
|
+
borderBottom: 'unset'
|
|
75
|
+
}
|
|
76
|
+
}, ___EmotionJSX(TableRow, {
|
|
77
|
+
height: "80px",
|
|
78
|
+
bg: "transparent !important"
|
|
79
|
+
}, ___EmotionJSX(TableCell, {
|
|
80
|
+
justifyContent: "center"
|
|
81
|
+
}, ___EmotionJSX(Text, null, "XXS | 9px")), ___EmotionJSX(TableCell, null, ___EmotionJSX(Text, {
|
|
82
|
+
fontFamily: "monospace"
|
|
83
|
+
}, '<Icon icon="search" size="xxs"/>')), ___EmotionJSX(TableCell, {
|
|
84
|
+
justifyContent: "center"
|
|
85
|
+
}, ___EmotionJSX(Icon, {
|
|
86
|
+
icon: "search",
|
|
87
|
+
title: {
|
|
88
|
+
name: 'Search Icon'
|
|
89
|
+
},
|
|
90
|
+
size: "xxs"
|
|
91
|
+
}))), ___EmotionJSX(TableRow, {
|
|
92
|
+
height: "80px",
|
|
93
|
+
bg: "transparent !important"
|
|
94
|
+
}, ___EmotionJSX(TableCell, {
|
|
95
|
+
justifyContent: "center"
|
|
96
|
+
}, ___EmotionJSX(Text, null, "XS | 15px")), ___EmotionJSX(TableCell, null, ___EmotionJSX(Text, {
|
|
97
|
+
fontFamily: "monospace"
|
|
98
|
+
}, '<Icon icon="search" size="xs"/>')), ___EmotionJSX(TableCell, {
|
|
99
|
+
justifyContent: "center"
|
|
100
|
+
}, ___EmotionJSX(Icon, {
|
|
101
|
+
icon: "search",
|
|
102
|
+
size: "xs",
|
|
103
|
+
title: {
|
|
104
|
+
name: 'Search Icon'
|
|
105
|
+
}
|
|
106
|
+
}))), ___EmotionJSX(TableRow, {
|
|
107
|
+
height: "80px",
|
|
108
|
+
bg: "transparent !important"
|
|
109
|
+
}, ___EmotionJSX(TableCell, {
|
|
110
|
+
justifyContent: "center"
|
|
111
|
+
}, ___EmotionJSX(Text, null, "SM | 20px")), ___EmotionJSX(TableCell, null, ___EmotionJSX(Text, {
|
|
112
|
+
fontFamily: "monospace"
|
|
113
|
+
}, '<Icon icon="search" size="sm"/>')), ___EmotionJSX(TableCell, {
|
|
114
|
+
justifyContent: "center"
|
|
115
|
+
}, ___EmotionJSX(Icon, {
|
|
116
|
+
icon: "search",
|
|
117
|
+
size: "sm",
|
|
118
|
+
title: {
|
|
119
|
+
name: 'Search Icon'
|
|
120
|
+
}
|
|
121
|
+
}))), ___EmotionJSX(TableRow, {
|
|
122
|
+
height: "80px",
|
|
123
|
+
bg: "transparent !important"
|
|
124
|
+
}, ___EmotionJSX(TableCell, {
|
|
125
|
+
justifyContent: "center"
|
|
126
|
+
}, ___EmotionJSX(Text, null, "MD | 25px")), ___EmotionJSX(TableCell, null, ___EmotionJSX(Text, {
|
|
127
|
+
fontFamily: "monospace"
|
|
128
|
+
}, '<Icon icon="search" size="md"/>')), ___EmotionJSX(TableCell, {
|
|
129
|
+
justifyContent: "center"
|
|
130
|
+
}, ___EmotionJSX(Icon, {
|
|
131
|
+
icon: "search",
|
|
132
|
+
size: "md",
|
|
133
|
+
title: {
|
|
134
|
+
name: 'Search Icon'
|
|
135
|
+
}
|
|
136
|
+
})))));
|
|
137
|
+
};
|
|
138
|
+
export var CommonlyUsed = function CommonlyUsed() {
|
|
139
|
+
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(Box, {
|
|
140
|
+
isRow: true,
|
|
141
|
+
gap: "md",
|
|
142
|
+
mb: "xs"
|
|
143
|
+
}, ___EmotionJSX(Icon, {
|
|
144
|
+
icon: "account_circle",
|
|
145
|
+
color: "accent.40",
|
|
146
|
+
size: "sm",
|
|
147
|
+
title: {
|
|
148
|
+
name: 'Account Icon'
|
|
149
|
+
},
|
|
150
|
+
hasFill: true
|
|
151
|
+
})), ___EmotionJSX(Box, {
|
|
152
|
+
isRow: true,
|
|
153
|
+
gap: "md",
|
|
154
|
+
mb: "xs"
|
|
155
|
+
}, ___EmotionJSX(Icon, {
|
|
156
|
+
icon: "groups",
|
|
157
|
+
color: "accent.40",
|
|
158
|
+
size: "sm",
|
|
159
|
+
title: {
|
|
160
|
+
name: 'Account Group Icon'
|
|
161
|
+
},
|
|
162
|
+
hasFill: true
|
|
163
|
+
})), ___EmotionJSX(Box, {
|
|
164
|
+
isRow: true,
|
|
165
|
+
gap: "md",
|
|
166
|
+
mb: "xs"
|
|
167
|
+
}, ___EmotionJSX(Icon, {
|
|
168
|
+
icon: "lock",
|
|
169
|
+
color: "accent.40",
|
|
170
|
+
size: "sm",
|
|
171
|
+
title: {
|
|
172
|
+
name: 'Lock Icon'
|
|
173
|
+
},
|
|
174
|
+
hasFill: true
|
|
175
|
+
})), ___EmotionJSX(Box, {
|
|
176
|
+
isRow: true,
|
|
177
|
+
gap: "md",
|
|
178
|
+
mb: "xs"
|
|
179
|
+
}, ___EmotionJSX(Icon, {
|
|
180
|
+
icon: "search",
|
|
181
|
+
color: "accent.40",
|
|
182
|
+
size: "sm",
|
|
183
|
+
title: {
|
|
184
|
+
name: 'Search Icon'
|
|
185
|
+
},
|
|
186
|
+
hasFill: true
|
|
187
|
+
})), ___EmotionJSX(Box, {
|
|
188
|
+
isRow: true,
|
|
189
|
+
gap: "md",
|
|
190
|
+
mb: "xs"
|
|
191
|
+
}, ___EmotionJSX(Icon, {
|
|
192
|
+
icon: "notifications",
|
|
193
|
+
color: "accent.40",
|
|
194
|
+
size: "sm",
|
|
195
|
+
title: {
|
|
196
|
+
name: 'Notification Icon'
|
|
197
|
+
},
|
|
198
|
+
hasFill: true
|
|
199
|
+
})));
|
|
200
|
+
};
|
package/lib/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// NOTE: Named exports must be unique across files, otherwise collisions will occur.
|
|
2
2
|
|
|
3
3
|
/* eslint-disable import/export */
|
|
4
|
-
|
|
4
|
+
import '@material-symbols/font-400';
|
|
5
5
|
export { default as AccordionGridGroup } from './components/AccordionGridGroup';
|
|
6
6
|
export * from './components/AccordionGridGroup';
|
|
7
7
|
export { default as AccordionGridItem } from './components/AccordionGridItem';
|
|
@@ -120,58 +120,56 @@ var statusIcon = {
|
|
|
120
120
|
base: {
|
|
121
121
|
'&.is-default': {
|
|
122
122
|
bg: 'gray-100',
|
|
123
|
-
|
|
124
|
-
|
|
123
|
+
span: {
|
|
124
|
+
color: 'black'
|
|
125
125
|
}
|
|
126
126
|
},
|
|
127
127
|
'&.is-critical': {
|
|
128
128
|
bg: 'red-500',
|
|
129
|
-
|
|
130
|
-
|
|
129
|
+
span: {
|
|
130
|
+
color: 'black'
|
|
131
131
|
}
|
|
132
132
|
},
|
|
133
133
|
'&.is-warning': {
|
|
134
134
|
bg: 'yellow-500',
|
|
135
|
-
|
|
136
|
-
|
|
135
|
+
span: {
|
|
136
|
+
color: 'black'
|
|
137
137
|
}
|
|
138
138
|
},
|
|
139
139
|
'&.is-info': {
|
|
140
140
|
bg: 'blue-500',
|
|
141
|
-
|
|
142
|
-
|
|
141
|
+
span: {
|
|
142
|
+
color: 'black'
|
|
143
143
|
}
|
|
144
144
|
},
|
|
145
145
|
'&.is-major': {
|
|
146
146
|
bg: 'orange-500',
|
|
147
|
-
|
|
148
|
-
|
|
147
|
+
span: {
|
|
148
|
+
color: 'black'
|
|
149
149
|
}
|
|
150
150
|
},
|
|
151
151
|
'&.is-minor': {
|
|
152
152
|
bg: 'yellow-500',
|
|
153
|
-
|
|
154
|
-
|
|
153
|
+
span: {
|
|
154
|
+
color: 'black'
|
|
155
155
|
}
|
|
156
156
|
},
|
|
157
157
|
'&.is-warning-neutral': {
|
|
158
158
|
bg: 'gray-700',
|
|
159
|
-
|
|
160
|
-
|
|
159
|
+
span: {
|
|
160
|
+
color: 'gray-100'
|
|
161
161
|
}
|
|
162
162
|
},
|
|
163
163
|
'&.is-fatal': {
|
|
164
164
|
bg: 'gray-100',
|
|
165
|
-
|
|
166
|
-
|
|
165
|
+
span: {
|
|
166
|
+
color: 'gray-700'
|
|
167
167
|
}
|
|
168
168
|
},
|
|
169
169
|
'&.is-selected.is-selected': {
|
|
170
170
|
bg: 'black',
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
fill: 'active'
|
|
174
|
-
}
|
|
171
|
+
span: {
|
|
172
|
+
color: 'active'
|
|
175
173
|
}
|
|
176
174
|
}
|
|
177
175
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var nextGenConvertedComponents = ['AccordionGridGroup', 'AccordionGroup', 'ArrayField', 'AstroProvider', 'Avatar', 'Badge', 'Base Components', 'Breadcrumbs', 'Button', 'ButtonBar', 'Callout', 'Card', 'CheckboxField', 'CodeView', 'ColorField', 'ComboBoxField', 'CopyText', 'DataTable', 'EnvironmentBreadcrumb', 'GridList', 'HelpHint', 'Icon', 'IconBadge', 'IconButton', 'IconWrapper', 'ImageUploadField', 'Loader', 'Link', 'LinkSelectField', 'ListView', 'ListViewItem', 'Message', 'Messages', 'Modal', 'MultiValuesField', 'MultivaluesField', 'NavBar', 'NavList', 'NavigationHeader', 'NextGen ListViewItem', 'NumberField', 'OverlayPanel', 'PageHeader', 'Pagination', 'PanelHeader', 'PasswordField', 'PopoverMenu', 'ProgressBar', 'RadioField', 'RadioGroupField', 'RangeCalendar', 'RequirementsList', 'RockerButtonGroup', 'SearchField', 'SelectField', 'Skeleton', 'SliderField', 'Stepper', 'Sticker Sheet', 'SwitchField', 'StatusIcon', 'Table', 'TableBase', 'Tabs', 'Text', 'TextAreaField', 'TextField', 'TooltipTrigger', 'ArrayField', 'ColorField', 'LinkSelectField', 'NumberField', 'SwitchField', 'Base Components', 'SliderField', 'ServerErrorBoundary', 'Avatar', 'Box', 'TimeField'];
|
|
1
|
+
var nextGenConvertedComponents = ['AccordionGridGroup', 'AccordionGroup', 'ArrayField', 'AstroProvider', 'Avatar', 'Badge', 'Base Components', 'Breadcrumbs', 'Button', 'ButtonBar', 'Callout', 'Card', 'CheckboxField', 'CodeView', 'ColorField', 'ComboBoxField', 'CopyText', 'DataTable', 'EnvironmentBreadcrumb', 'GridList', 'HelpHint', 'Icon', 'MaterialSymbolIcon', 'IconBadge', 'IconButton', 'IconWrapper', 'ImageUploadField', 'Loader', 'Link', 'LinkSelectField', 'ListView', 'ListViewItem', 'Message', 'Messages', 'Modal', 'MultiValuesField', 'MultivaluesField', 'NavBar', 'NavList', 'NavigationHeader', 'NextGen ListViewItem', 'NumberField', 'OverlayPanel', 'PageHeader', 'Pagination', 'PanelHeader', 'PasswordField', 'PopoverMenu', 'ProgressBar', 'RadioField', 'RadioGroupField', 'RangeCalendar', 'RequirementsList', 'RockerButtonGroup', 'SearchField', 'SelectField', 'Skeleton', 'SliderField', 'Stepper', 'Sticker Sheet', 'SwitchField', 'StatusIcon', 'Table', 'TableBase', 'Tabs', 'Text', 'TextAreaField', 'TextField', 'TooltipTrigger', 'ArrayField', 'ColorField', 'LinkSelectField', 'NumberField', 'SwitchField', 'Base Components', 'SliderField', 'ServerErrorBoundary', 'Avatar', 'Box', 'TimeField'];
|
|
2
2
|
export var componentSpecificNextGenBlacklist = {
|
|
3
3
|
AstroProvider: ['Default', 'With Custom Theme Override'],
|
|
4
4
|
Messages: ['Customization'],
|
|
@@ -21,7 +21,8 @@ export var astroBlacklistStory = {
|
|
|
21
21
|
Avatar: ['Size Variation', 'Color Variation', 'Icon Variation', 'Square Variation', 'Logo Variation'],
|
|
22
22
|
Text: ['Onyx'],
|
|
23
23
|
Loader: ['Circular', 'Custom Circular'],
|
|
24
|
-
Card: ['With Shadow']
|
|
24
|
+
Card: ['With Shadow'],
|
|
25
|
+
MaterialSymbolIcon: ['Default', 'Sizes', 'Commonly Used']
|
|
25
26
|
};
|
|
26
27
|
export var nextGenOnlyComponents = ['NavigationHeader', 'Prompt', 'AI Panel', 'Response', 'Suggestions', 'Prompt Input', 'Footer', 'Onyx Input Patterns'];
|
|
27
28
|
export default nextGenConvertedComponents;
|
|
@@ -1,43 +1,12 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
|
2
2
|
var _icons;
|
|
3
|
-
import AccountCheckIcon from '@pingux/mdi-react/AccountCheckOutlineIcon';
|
|
4
|
-
import mdiAccountCog from '@pingux/mdi-react/AccountCogIcon';
|
|
5
|
-
import AccountMultipleOutlineIcon from '@pingux/mdi-react/AccountMultipleOutlineIcon';
|
|
6
|
-
import AlertCircleOutlineIcon from '@pingux/mdi-react/AlertCircleOutlineIcon';
|
|
7
|
-
import AlertOutlineIcon from '@pingux/mdi-react/AlertOutlineIcon';
|
|
8
|
-
import AppsIcon from '@pingux/mdi-react/AppsIcon';
|
|
9
|
-
import ArrowDownIcon from '@pingux/mdi-react/ArrowDownIcon';
|
|
10
|
-
import ArrowUpIcon from '@pingux/mdi-react/ArrowUpIcon';
|
|
11
|
-
import CardAccountDetailsOutlineIcon from '@pingux/mdi-react/CardAccountDetailsOutlineIcon';
|
|
12
|
-
import ChatIcon from '@pingux/mdi-react/ChatIcon';
|
|
13
|
-
import DefaultCircle from '@pingux/mdi-react/CheckboxBlankCircleOutlineIcon';
|
|
14
|
-
import CheckCircleOutlineIcon from '@pingux/mdi-react/CheckCircleOutlineIcon';
|
|
15
|
-
import ChevronDownIcon from '@pingux/mdi-react/ChevronDownIcon';
|
|
16
|
-
import ChevronUpIcon from '@pingux/mdi-react/ChevronUpIcon';
|
|
17
|
-
import Clipboard from '@pingux/mdi-react/ClipboardIcon';
|
|
18
|
-
import CloseOctagonOutlineIcon from '@pingux/mdi-react/CloseOctagonOutlineIcon';
|
|
19
|
-
import CreateOutlineIcon from '@pingux/mdi-react/CreateOutlineIcon';
|
|
20
|
-
import DotsHorizontalIcon from '@pingux/mdi-react/DotsHorizontalIcon';
|
|
21
3
|
import EmoticonHappy from '@pingux/mdi-react/EmoticonHappyOutlineIcon';
|
|
22
|
-
import FileTreeIcon from '@pingux/mdi-react/FileTreeOutlineIcon';
|
|
23
|
-
import Fingerprint from '@pingux/mdi-react/FingerprintIcon';
|
|
24
|
-
import GlobeIcon from '@pingux/mdi-react/GlobeIcon';
|
|
25
|
-
import InformationOutlineIcon from '@pingux/mdi-react/InformationOutlineIcon';
|
|
26
|
-
import KeyOutline from '@pingux/mdi-react/KeyOutlineIcon';
|
|
27
|
-
import OpenInNew from '@pingux/mdi-react/OpenInNewIcon';
|
|
28
|
-
import PaletteOutlineIcon from '@pingux/mdi-react/PaletteOutlineIcon';
|
|
29
|
-
import PlayCircleOutline from '@pingux/mdi-react/PlayCircleOutlineIcon';
|
|
30
|
-
import RocketLaunchIcon from '@pingux/mdi-react/RocketLaunchIcon';
|
|
31
|
-
import ScaleBalance from '@pingux/mdi-react/ScaleBalanceIcon';
|
|
32
4
|
import Settings from '@pingux/mdi-react/SettingsOutlineIcon';
|
|
33
5
|
import ShieldStarOutlineIcon from '@pingux/mdi-react/ShieldStarOutlineIcon';
|
|
34
6
|
import ShowChartIcon from '@pingux/mdi-react/ShowChartIcon';
|
|
35
7
|
import TransitConnection from '@pingux/mdi-react/TransitConnectionVariantIcon';
|
|
36
|
-
import ViewDashboard from '@pingux/mdi-react/ViewDashboardIcon';
|
|
37
|
-
import DashboardIcon from '@pingux/mdi-react/ViewDashboardOutlineIcon';
|
|
38
|
-
import WidgetsOutlineIcon from '@pingux/mdi-react/WidgetsOutlineIcon';
|
|
39
8
|
import { pingLogoHorizontalSmall } from '../../../../utils/devUtils/constants/logos';
|
|
40
9
|
import statuses, { statusIcon } from '../../../../utils/devUtils/constants/statuses';
|
|
41
10
|
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,
|
|
11
|
+
var icons = (_icons = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_icons, statuses.DEFAULT, 'info'), statuses.ERROR, 'error'), statuses.SUCCESS, 'check_circle'), statuses.WARNING, 'warning'), statusIcon.CRITICAL, 'error'), statusIcon.FATAL, 'dangerous'), statusIcon.INFO, 'info'), statusIcon.MAJOR, 'arrow_upward'), statusIcon.MINOR, 'arrow_downward'), statusIcon.WARNING_NEUTRAL, 'warning'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_icons, "aic", Aic), "applicationsIcon", 'apps'), "Ascending", 'arrow_upward'), "authenticationIcon", 'check_circle'), "clipboard", 'content_paste'), "CreateIcon", 'edit'), "daVinci", 'account_tree'), "DefaultCircle", 'circle'), "Descending", 'arrow_downward'), "popoverMenuIcon", 'more_horiz'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_icons, "ErrorCircle", 'error'), "integrationsIcon", 'widgets'), "listViewMenu", 'more_horiz'), "mdiAccountCog", 'manage_accounts'), "mdiAccountMultiple", 'group'), "mdiEarth", Settings), "mdiEmoticonHappyOutline", EmoticonHappy), "mdiFingerprint", 'fingerprint'), "mdiPlayCircleIcon", 'play_circle'), "mdiScaleBalance", 'balance'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_icons, "mdiShoCard", 'id_card'), "mdiTransitConnectionVariant", TransitConnection), "mdiViewDashboard", 'dashboard'), "mdiWeb", 'globe'), "MenuDown", 'keyboard_arrow_down'), "MenuUp", 'keyboard_arrow_up'), "monitoringIcon", ShowChartIcon), "openInNew", 'open_in_new'), "overviewIcon", 'dashboard'), "p1verify", 'person_check'), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_icons, "pam", PamIcon), "PingAuthorize", 'key'), "pingLogoHorizontalSmall", pingLogoHorizontalSmall), "protect", Protect), "rocketLaunchIcon", 'rocket_launch'), "shareFeedbackIcon", 'chat'), "shieldStar", ShieldStarOutlineIcon), "SuccessCircle", 'check_circle'), "userExperienceIcon", 'palette'), "WarningIcon", 'warning'));
|
|
43
12
|
export default icons;
|
|
@@ -316,10 +316,8 @@ var rockerButton = {
|
|
|
316
316
|
backgroundColor: 'active',
|
|
317
317
|
'& > div.status-icon': {
|
|
318
318
|
bg: 'white',
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
fill: 'active'
|
|
322
|
-
}
|
|
319
|
+
span: {
|
|
320
|
+
color: 'active'
|
|
323
321
|
}
|
|
324
322
|
}
|
|
325
323
|
},
|
|
@@ -358,58 +356,64 @@ var statusIcon = {
|
|
|
358
356
|
base: {
|
|
359
357
|
'&.is-default': {
|
|
360
358
|
bg: 'gray-100',
|
|
361
|
-
|
|
362
|
-
|
|
359
|
+
span: {
|
|
360
|
+
fontSize: 'md',
|
|
361
|
+
color: 'gray-700'
|
|
363
362
|
}
|
|
364
363
|
},
|
|
365
364
|
'&.is-critical': {
|
|
366
365
|
bg: 'red-100',
|
|
367
|
-
|
|
368
|
-
|
|
366
|
+
span: {
|
|
367
|
+
fontSize: 'md',
|
|
368
|
+
color: 'red-700'
|
|
369
369
|
}
|
|
370
370
|
},
|
|
371
371
|
'&.is-warning': {
|
|
372
372
|
bg: 'yellow-100',
|
|
373
|
-
|
|
374
|
-
|
|
373
|
+
span: {
|
|
374
|
+
fontSize: 'md',
|
|
375
|
+
color: 'yellow-800'
|
|
375
376
|
}
|
|
376
377
|
},
|
|
377
378
|
'&.is-info': {
|
|
378
379
|
bg: 'blue-100',
|
|
379
|
-
|
|
380
|
-
|
|
380
|
+
span: {
|
|
381
|
+
fontSize: 'md',
|
|
382
|
+
color: 'blue-600'
|
|
381
383
|
}
|
|
382
384
|
},
|
|
383
385
|
'&.is-major': {
|
|
384
386
|
bg: 'orange-100',
|
|
385
|
-
|
|
386
|
-
|
|
387
|
+
span: {
|
|
388
|
+
fontSize: 'md',
|
|
389
|
+
color: 'orange-700'
|
|
387
390
|
}
|
|
388
391
|
},
|
|
389
392
|
'&.is-minor': {
|
|
390
393
|
bg: 'yellow-100',
|
|
391
|
-
|
|
392
|
-
|
|
394
|
+
span: {
|
|
395
|
+
fontSize: 'md',
|
|
396
|
+
color: 'yellow-800'
|
|
393
397
|
}
|
|
394
398
|
},
|
|
395
399
|
'&.is-warning-neutral': {
|
|
396
400
|
bg: 'gray-100',
|
|
397
|
-
|
|
398
|
-
|
|
401
|
+
span: {
|
|
402
|
+
fontSize: 'md',
|
|
403
|
+
color: 'gray-700'
|
|
399
404
|
}
|
|
400
405
|
},
|
|
401
406
|
'&.is-fatal': {
|
|
402
407
|
bg: 'gray-700',
|
|
403
|
-
|
|
404
|
-
|
|
408
|
+
span: {
|
|
409
|
+
fontSize: 'md',
|
|
410
|
+
color: 'gray-100'
|
|
405
411
|
}
|
|
406
412
|
},
|
|
407
413
|
'&.is-selected.is-selected': {
|
|
408
414
|
bg: 'white',
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
fill: 'active'
|
|
412
|
-
}
|
|
415
|
+
span: {
|
|
416
|
+
color: 'active'
|
|
413
417
|
}
|
|
414
418
|
}
|
|
415
419
|
}
|