@pingux/astro 2.136.1-alpha.2 → 2.137.0-alpha.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/Badge/Badge.stories.js +72 -69
- package/lib/cjs/components/Badge/Badge.styles.d.ts +1 -14
- package/lib/cjs/components/Badge/Badge.styles.js +3 -8
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/colors.js +5 -4
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/badges.d.ts +71 -54
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/badges.js +99 -52
- package/lib/cjs/styles/themes/next-gen/colors/colors.d.ts +10 -1
- package/lib/cjs/styles/themes/next-gen/colors/colors.js +11 -4
- package/lib/cjs/styles/themes/next-gen/convertedComponentList.d.ts +0 -1
- package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +0 -1
- package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +686 -29
- package/lib/cjs/styles/themes/next-gen/variants/badges.d.ts +597 -4
- package/lib/cjs/styles/themes/next-gen/variants/badges.js +90 -37
- package/lib/cjs/styles/themes/next-gen/variants/button.d.ts +60 -0
- package/lib/cjs/styles/themes/next-gen/variants/button.js +21 -0
- package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +0 -208
- package/lib/cjs/styles/themes/next-gen/variants/variants.js +2 -90
- package/lib/components/Badge/Badge.stories.js +72 -69
- package/lib/components/Badge/Badge.styles.js +3 -8
- package/lib/styles/themeOverrides/nextGenDarkMode/colors.js +5 -4
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/badges.js +99 -52
- package/lib/styles/themes/next-gen/colors/colors.js +9 -3
- package/lib/styles/themes/next-gen/convertedComponentList.js +0 -1
- package/lib/styles/themes/next-gen/variants/badges.js +90 -37
- package/lib/styles/themes/next-gen/variants/button.js +21 -0
- package/lib/styles/themes/next-gen/variants/variants.js +1 -83
- package/package.json +1 -1
@@ -4,10 +4,12 @@ import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
|
|
4
4
|
import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
|
5
5
|
import React from 'react';
|
6
6
|
import Clear from '@pingux/mdi-react/CloseIcon';
|
7
|
-
import
|
8
|
-
import
|
7
|
+
import CogIcon from '@pingux/mdi-react/CogIcon';
|
8
|
+
import PencilOutlineIcon from '@pingux/mdi-react/PencilOutlineIcon';
|
9
|
+
import PlusCircleMultipleOutlineIcon from '@pingux/mdi-react/PlusCircleMultipleOutlineIcon';
|
9
10
|
import { withDesign } from 'storybook-addon-designs';
|
10
11
|
import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
12
|
+
import { useGetTheme } from '../../hooks';
|
11
13
|
import { Badge, Box, Icon, IconButton } from '../../index';
|
12
14
|
import { flatColorList } from '../../styles/colors';
|
13
15
|
import { FIGMA_LINKS } from '../../utils/designUtils/figmaLinks.ts';
|
@@ -58,43 +60,9 @@ export default {
|
|
58
60
|
page: function page() {
|
59
61
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(BadgeReadme, null), ___EmotionJSX(DocsLayout, null));
|
60
62
|
}
|
61
|
-
},
|
62
|
-
codesandbox: {
|
63
|
-
mapComponent: {
|
64
|
-
'@pingux/astro': ['Badge', 'Box', 'Icon', 'IconButton']
|
65
|
-
}
|
66
63
|
}
|
67
64
|
}
|
68
65
|
};
|
69
|
-
var VariableIcon = function VariableIcon(props) {
|
70
|
-
return ___EmotionJSX("svg", _extends({
|
71
|
-
width: "16",
|
72
|
-
height: "16",
|
73
|
-
viewBox: "0 0 16 16",
|
74
|
-
fill: "none",
|
75
|
-
xmlns: "http://www.w3.org/2000/svg",
|
76
|
-
"aria-labelledby": "variable-icon-title"
|
77
|
-
}, props), ___EmotionJSX("title", {
|
78
|
-
id: "variable-icon-title"
|
79
|
-
}, "Variable Icon"), ___EmotionJSX("g", {
|
80
|
-
clipPath: "url(#clip0_709_18965)"
|
81
|
-
}, ___EmotionJSX("circle", {
|
82
|
-
cx: "8",
|
83
|
-
cy: "8",
|
84
|
-
r: "7.5",
|
85
|
-
fill: "white",
|
86
|
-
stroke: "#7AC7F2"
|
87
|
-
}), ___EmotionJSX("path", {
|
88
|
-
d: "M11.5042 4.25C12.0833 5.37917 12.3125 6.68333 12.1667 8C12.0833 9.31667 11.625 10.6208 10.8458 11.75L10.2083 11.3333C10.8792 10.3208 11.2708 9.16667 11.3333 8C11.475 6.83333 11.2875 5.67917 10.7917 4.66667L11.5042 4.25ZM5.15416 4.25L5.79166 4.66667C5.12083 5.67917 4.72916 6.83333 4.66666 8C4.525 9.16667 4.71666 10.3208 5.20833 11.3333L4.50416 11.75C3.92083 10.6208 3.6875 9.32083 3.83333 8C3.91666 6.68333 4.375 5.37917 5.15416 4.25ZM8.03333 7.45L9 6.10417H10.0542L8.47916 8.1875L9.39583 10.2375H8.45416L7.87916 8.83333L6.86666 10.2208H5.81666L7.44166 8.0875L6.55416 6.10417H7.5L8.03333 7.45Z",
|
89
|
-
fill: "#7AC7F2"
|
90
|
-
})), ___EmotionJSX("defs", null, ___EmotionJSX("clipPath", {
|
91
|
-
id: "clip0_709_18965"
|
92
|
-
}, ___EmotionJSX("rect", {
|
93
|
-
width: "16",
|
94
|
-
height: "16",
|
95
|
-
fill: "white"
|
96
|
-
}))));
|
97
|
-
};
|
98
66
|
export var Default = function Default(_ref5) {
|
99
67
|
var args = _extends({}, (_objectDestructuringEmpty(_ref5), _ref5));
|
100
68
|
return ___EmotionJSX(Badge, _extends({
|
@@ -126,63 +94,100 @@ CountBadge.parameters = {
|
|
126
94
|
}
|
127
95
|
};
|
128
96
|
export var BadgeWithCustomColors = function BadgeWithCustomColors(args) {
|
97
|
+
var _useGetTheme = useGetTheme(),
|
98
|
+
isOnyx = _useGetTheme.themeState.isOnyx;
|
99
|
+
var bg = isOnyx ? 'indigo-100' : 'green';
|
100
|
+
var textColor = isOnyx ? 'cyan-800' : 'white';
|
129
101
|
return ___EmotionJSX(Badge, _extends({}, args, {
|
130
102
|
label: "Custom Colors",
|
131
|
-
bg:
|
132
|
-
textColor:
|
103
|
+
bg: bg,
|
104
|
+
textColor: textColor,
|
105
|
+
sx: {
|
106
|
+
color: textColor
|
107
|
+
}
|
133
108
|
}));
|
134
109
|
};
|
135
110
|
export var BadgeWithIcon = function BadgeWithIcon() {
|
136
|
-
|
111
|
+
var _useGetTheme2 = useGetTheme(),
|
112
|
+
isOnyx = _useGetTheme2.themeState.isOnyx;
|
113
|
+
return ___EmotionJSX(Box, {
|
114
|
+
gap: "10px"
|
115
|
+
}, !isOnyx ? ___EmotionJSX(React.Fragment, null, ___EmotionJSX(Badge, {
|
137
116
|
label: "Badge with Icon Button",
|
138
|
-
bg: "navy"
|
117
|
+
bg: "navy",
|
118
|
+
textColor: "white"
|
119
|
+
}, ___EmotionJSX(IconButton, {
|
120
|
+
"aria-label": "Setting Badge with Icon Button",
|
121
|
+
variant: "inverted",
|
122
|
+
ml: "xs"
|
123
|
+
}, ___EmotionJSX(Icon, {
|
124
|
+
icon: CogIcon,
|
125
|
+
size: "14px",
|
126
|
+
title: {
|
127
|
+
name: 'Setting Icon'
|
128
|
+
}
|
129
|
+
}))), ___EmotionJSX(Badge, {
|
130
|
+
label: "Badge with Icon Button"
|
139
131
|
}, ___EmotionJSX(IconButton, {
|
140
132
|
"aria-label": "Clear Badge with Icon Button",
|
141
|
-
variant: "inverted"
|
133
|
+
variant: "inverted",
|
134
|
+
ml: "xs"
|
142
135
|
}, ___EmotionJSX(Icon, {
|
143
136
|
icon: Clear,
|
144
|
-
ml: "xs",
|
145
137
|
size: "14px",
|
146
138
|
title: {
|
147
139
|
name: 'Clear Icon'
|
148
140
|
}
|
149
|
-
}))), ___EmotionJSX(
|
150
|
-
|
151
|
-
|
141
|
+
}))), ___EmotionJSX(Badge, {
|
142
|
+
label: "Badge with Icon",
|
143
|
+
bg: "green",
|
144
|
+
textColor: "white"
|
145
|
+
}, ___EmotionJSX(Icon, {
|
146
|
+
icon: PencilOutlineIcon,
|
147
|
+
ml: "xs",
|
148
|
+
size: "14px",
|
149
|
+
color: "white",
|
150
|
+
"aria-hidden": "true",
|
151
|
+
focusable: "false",
|
152
|
+
title: {
|
153
|
+
name: 'Edit Icon'
|
154
|
+
}
|
155
|
+
}))) : ___EmotionJSX(React.Fragment, null, ___EmotionJSX(Badge, {
|
156
|
+
label: "Badge with Icon Button",
|
157
|
+
variant: "primary"
|
158
|
+
}, ___EmotionJSX(IconButton, {
|
159
|
+
"aria-label": "Setting Badge with Icon Button",
|
160
|
+
ml: "xs"
|
161
|
+
}, ___EmotionJSX(Icon, {
|
162
|
+
icon: CogIcon,
|
163
|
+
size: "xxs",
|
164
|
+
title: {
|
165
|
+
name: 'Setting Icon'
|
152
166
|
}
|
153
|
-
}), ___EmotionJSX(Badge, {
|
167
|
+
}))), ___EmotionJSX(Badge, {
|
154
168
|
label: "Badge with Icon Button"
|
155
169
|
}, ___EmotionJSX(IconButton, {
|
156
170
|
"aria-label": "Clear Badge with Icon Button",
|
157
|
-
|
171
|
+
ml: "xs"
|
158
172
|
}, ___EmotionJSX(Icon, {
|
159
|
-
icon:
|
160
|
-
|
161
|
-
size: "14px",
|
173
|
+
icon: Clear,
|
174
|
+
size: "xxs",
|
162
175
|
title: {
|
163
|
-
name: '
|
164
|
-
}
|
165
|
-
}))), ___EmotionJSX("div", {
|
166
|
-
style: {
|
167
|
-
padding: '5px'
|
176
|
+
name: 'Clear Icon'
|
168
177
|
}
|
169
|
-
}), ___EmotionJSX(Badge, {
|
178
|
+
}))), ___EmotionJSX(Badge, {
|
170
179
|
label: "Badge with Icon",
|
171
|
-
|
180
|
+
variant: "success"
|
172
181
|
}, ___EmotionJSX(Icon, {
|
173
|
-
icon:
|
182
|
+
icon: PencilOutlineIcon,
|
174
183
|
ml: "xs",
|
175
184
|
size: "14px",
|
176
|
-
color: "white",
|
177
185
|
"aria-hidden": "true",
|
178
186
|
focusable: "false",
|
179
187
|
title: {
|
180
|
-
name: '
|
188
|
+
name: 'Edit Icon'
|
181
189
|
}
|
182
|
-
})));
|
183
|
-
};
|
184
|
-
BadgeWithIcon.parameters = {
|
185
|
-
codesandbox: false
|
190
|
+
}))));
|
186
191
|
};
|
187
192
|
export var BadgeWithLeftSlotAndIcon = function BadgeWithLeftSlotAndIcon() {
|
188
193
|
return ___EmotionJSX(Badge, {
|
@@ -191,8 +196,9 @@ export var BadgeWithLeftSlotAndIcon = function BadgeWithLeftSlotAndIcon() {
|
|
191
196
|
variant: "itemBadgeWithSlot",
|
192
197
|
slots: {
|
193
198
|
leftIcon: ___EmotionJSX(Icon, {
|
194
|
-
icon:
|
195
|
-
size: 16
|
199
|
+
icon: PlusCircleMultipleOutlineIcon,
|
200
|
+
size: 16,
|
201
|
+
color: "text.primary"
|
196
202
|
})
|
197
203
|
}
|
198
204
|
}, ___EmotionJSX(IconButton, {
|
@@ -206,9 +212,6 @@ export var BadgeWithLeftSlotAndIcon = function BadgeWithLeftSlotAndIcon() {
|
|
206
212
|
}
|
207
213
|
})));
|
208
214
|
};
|
209
|
-
BadgeWithLeftSlotAndIcon.parameters = {
|
210
|
-
codesandbox: false
|
211
|
-
};
|
212
215
|
export var StatusBadgeVariants = function StatusBadgeVariants(_ref6) {
|
213
216
|
var args = _extends({}, (_objectDestructuringEmpty(_ref6), _ref6));
|
214
217
|
return ___EmotionJSX(Box, null, ___EmotionJSX(Badge, _extends({}, args, {
|
@@ -37,10 +37,7 @@ export var baseBadge = {
|
|
37
37
|
var defaultBadge = _objectSpread(_objectSpread({}, baseBadge), {}, {
|
38
38
|
backgroundColor: 'white !important',
|
39
39
|
outline: '1px solid',
|
40
|
-
outlineColor: 'neutral.80'
|
41
|
-
'& span': {
|
42
|
-
color: 'text.primary'
|
43
|
-
}
|
40
|
+
outlineColor: 'neutral.80'
|
44
41
|
});
|
45
42
|
var multivaluesBadge = _objectSpread(_objectSpread({}, baseBadge), {}, {
|
46
43
|
alignSelf: 'center',
|
@@ -147,11 +144,11 @@ var countNeutral = _objectSpread(_objectSpread({}, countDefault), {}, {
|
|
147
144
|
var convenienceDefault = _objectSpread(_objectSpread({}, baseBadge), {}, {
|
148
145
|
backgroundColor: '#4462ED !important',
|
149
146
|
'& span': {
|
150
|
-
fontWeight: 1
|
147
|
+
fontWeight: 1,
|
148
|
+
color: 'white'
|
151
149
|
}
|
152
150
|
});
|
153
151
|
var calloutBadge = _objectSpread(_objectSpread({}, baseBadge), {}, {
|
154
|
-
height: '21px',
|
155
152
|
backgroundColor: '#FFF !important',
|
156
153
|
border: 'solid 1px',
|
157
154
|
'& span': {
|
@@ -172,7 +169,6 @@ var infoCalloutBadge = _objectSpread(_objectSpread({}, calloutBadge), {}, {
|
|
172
169
|
});
|
173
170
|
var statusBadge = _objectSpread(_objectSpread({}, baseBadge), {}, {
|
174
171
|
border: 'solid 1px',
|
175
|
-
height: '21px',
|
176
172
|
'& span': {
|
177
173
|
color: 'text.primary'
|
178
174
|
}
|
@@ -198,7 +194,6 @@ var secondaryStatusBadge = _objectSpread(_objectSpread({}, statusBadge), {}, {
|
|
198
194
|
backgroundColor: '#F7F8FD !important'
|
199
195
|
});
|
200
196
|
var invertedRemovableBadge = _objectSpread(_objectSpread({}, baseBadge), {}, {
|
201
|
-
height: '21px',
|
202
197
|
'& span': {
|
203
198
|
color: 'white'
|
204
199
|
},
|
@@ -17,6 +17,9 @@ export var overrides = {
|
|
17
17
|
},
|
18
18
|
disabled: '#30373f'
|
19
19
|
};
|
20
|
+
var font = {
|
21
|
+
base: nextGenColors['gray-100']
|
22
|
+
};
|
20
23
|
var hoverDark = chroma.mix('#23282e', 'white', 0.04, 'rgb').hex();
|
21
24
|
var border = {
|
22
25
|
base: chroma.mix('#23282e', 'white', 0.15, 'rgb').hex(),
|
@@ -26,7 +29,7 @@ var border = {
|
|
26
29
|
attachment: '#39414b'
|
27
30
|
};
|
28
31
|
var badge = {
|
29
|
-
background: nextGenColors['gray-
|
32
|
+
background: nextGenColors['gray-800'],
|
30
33
|
textColor: nextGenColors['gray-100']
|
31
34
|
};
|
32
35
|
var iconWrapper = {
|
@@ -104,8 +107,6 @@ export var colors = _objectSpread(_objectSpread({
|
|
104
107
|
card: '#1a1e22',
|
105
108
|
hover: hoverDark
|
106
109
|
},
|
107
|
-
font:
|
108
|
-
base: nextGenColors['gray-100']
|
109
|
-
},
|
110
|
+
font: font,
|
110
111
|
badge: badge
|
111
112
|
});
|
@@ -9,75 +9,122 @@ import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object
|
|
9
9
|
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
10
10
|
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
11
11
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
12
|
-
var badgeFont = {
|
13
|
-
fontSize: '11.25px',
|
14
|
-
fontWeight: 2
|
15
|
-
};
|
16
12
|
var baseBadge = {
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
13
|
+
color: 'badge.textColor'
|
14
|
+
};
|
15
|
+
var primary = {
|
16
|
+
backgroundColor: '#1a73e8 !important',
|
17
|
+
color: 'black'
|
18
|
+
};
|
19
|
+
var secondary = {
|
20
|
+
backgroundColor: '#324054 !important',
|
21
|
+
color: 'gray-100'
|
22
|
+
};
|
23
|
+
var success = {
|
24
|
+
backgroundColor: '#22a75f !important',
|
25
|
+
color: 'black'
|
26
|
+
};
|
27
|
+
var danger = {
|
28
|
+
backgroundColor: '#da3a2b !important',
|
29
|
+
color: 'black'
|
30
|
+
};
|
31
|
+
var warning = {
|
32
|
+
backgroundColor: '#ffb946 !important',
|
33
|
+
color: 'black'
|
34
|
+
};
|
35
|
+
var info = {
|
36
|
+
backgroundColor: '#324054 !important',
|
37
|
+
color: 'gray-100'
|
38
|
+
};
|
39
|
+
var dark = {
|
40
|
+
backgroundColor: '#c0c9d5 !important',
|
41
|
+
color: 'gray-100'
|
42
|
+
};
|
43
|
+
var activeStatusBadge = _objectSpread({}, primary);
|
44
|
+
var warningStatusBadge = _objectSpread({}, warning);
|
45
|
+
var criticalStatusBadge = _objectSpread({}, danger);
|
46
|
+
var healthyStatusBadge = _objectSpread({}, success);
|
47
|
+
var secondaryStatusBadge = _objectSpread({}, secondary);
|
48
|
+
var countBadge = {
|
49
|
+
backgroundColor: '#F6F8FA !important',
|
50
|
+
'& span': {
|
51
|
+
color: 'black'
|
52
|
+
}
|
53
|
+
};
|
54
|
+
var countNeutral = {
|
55
|
+
backgroundColor: '#455469 !important',
|
56
|
+
'& span': {
|
57
|
+
color: 'white'
|
58
|
+
}
|
59
|
+
};
|
60
|
+
var itemBadgeWithSlot = {
|
61
|
+
bg: '#455469 !important',
|
62
|
+
fontWeight: 2,
|
63
|
+
'& span': {
|
64
|
+
color: 'gray-100'
|
65
|
+
},
|
66
|
+
'& svg': {
|
67
|
+
path: {
|
68
|
+
fill: 'gray-100'
|
69
|
+
}
|
70
|
+
}
|
27
71
|
};
|
28
72
|
var badges = {
|
29
|
-
|
30
|
-
|
73
|
+
baseBadge: baseBadge,
|
74
|
+
primary: primary,
|
75
|
+
secondary: secondary,
|
76
|
+
success: success,
|
77
|
+
danger: danger,
|
78
|
+
warning: warning,
|
79
|
+
info: info,
|
80
|
+
dark: dark,
|
81
|
+
activeStatusBadge: activeStatusBadge,
|
82
|
+
warningStatusBadge: warningStatusBadge,
|
83
|
+
criticalStatusBadge: criticalStatusBadge,
|
84
|
+
healthyStatusBadge: healthyStatusBadge,
|
85
|
+
secondaryStatusBadge: secondaryStatusBadge,
|
86
|
+
readOnlyFieldBadge: {
|
87
|
+
backgroundColor: '#F6F8FA !important',
|
31
88
|
'& span': {
|
32
|
-
color: '
|
89
|
+
color: 'black'
|
33
90
|
}
|
34
91
|
},
|
35
|
-
|
36
|
-
backgroundColor: '#
|
37
|
-
'
|
38
|
-
|
39
|
-
})
|
40
|
-
}),
|
41
|
-
baseBadge: _objectSpread({}, baseBadge),
|
42
|
-
success: {
|
43
|
-
backgroundColor: '#0E4326 !important',
|
92
|
+
selectedItemBadge: {
|
93
|
+
backgroundColor: '#1a73e8 !important',
|
94
|
+
paddingRight: '0px !important',
|
95
|
+
pl: '10px',
|
44
96
|
'& span': {
|
45
|
-
|
97
|
+
fontSize: '14px',
|
98
|
+
color: 'gray-400',
|
99
|
+
fontWeight: 400
|
46
100
|
}
|
47
101
|
},
|
48
|
-
|
49
|
-
|
102
|
+
countBadge: countBadge,
|
103
|
+
countNeutral: countNeutral,
|
104
|
+
itemBadgeWithSlot: itemBadgeWithSlot,
|
105
|
+
errorCalloutBadge: {
|
106
|
+
backgroundColor: '#23282e !important',
|
50
107
|
'& span': {
|
51
|
-
color: '
|
108
|
+
color: 'font.base'
|
52
109
|
}
|
53
110
|
},
|
54
|
-
|
55
|
-
backgroundColor: '#
|
111
|
+
infoCalloutBadge: {
|
112
|
+
backgroundColor: '#23282e !important',
|
56
113
|
'& span': {
|
57
|
-
color: '
|
114
|
+
color: 'font.base'
|
58
115
|
}
|
59
116
|
},
|
60
|
-
|
61
|
-
backgroundColor: '#
|
62
|
-
'& span': _objectSpread({
|
63
|
-
color: 'dark'
|
64
|
-
}, badgeFont)
|
65
|
-
}),
|
66
|
-
dark: {
|
67
|
-
backgroundColor: '#F6F8FA !important',
|
117
|
+
successCalloutBadge: {
|
118
|
+
backgroundColor: '#23282e !important',
|
68
119
|
'& span': {
|
69
|
-
color: '
|
120
|
+
color: 'font.base'
|
70
121
|
}
|
71
122
|
},
|
72
|
-
|
73
|
-
backgroundColor: '#
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
color: 'gray-400',
|
79
|
-
fontWeight: 400
|
80
|
-
})
|
81
|
-
})
|
123
|
+
warningCalloutBadge: {
|
124
|
+
backgroundColor: '#23282e !important',
|
125
|
+
'& span': {
|
126
|
+
color: 'font.base'
|
127
|
+
}
|
128
|
+
}
|
82
129
|
};
|
83
130
|
export default badges;
|
@@ -64,8 +64,8 @@ var colorsObject = {
|
|
64
64
|
};
|
65
65
|
export var critical = {
|
66
66
|
bright: colorsObject.red,
|
67
|
-
dark: nextGenColors['red-
|
68
|
-
light:
|
67
|
+
dark: nextGenColors['red-700'],
|
68
|
+
light: nextGenColors['red-100']
|
69
69
|
};
|
70
70
|
export var success = {
|
71
71
|
bright: nextGenColors['green-600'],
|
@@ -77,6 +77,11 @@ export var warning = {
|
|
77
77
|
dark: nextGenColors['yellow-800'],
|
78
78
|
light: nextGenColors['yellow-100']
|
79
79
|
};
|
80
|
+
export var info = {
|
81
|
+
bright: colorsObject.blue,
|
82
|
+
dark: nextGenColors['blue-600'],
|
83
|
+
light: nextGenColors['blue-100']
|
84
|
+
};
|
80
85
|
var text = {
|
81
86
|
primary: nextGenColors['gray-900'],
|
82
87
|
secondary: nextGenColors['gray-500'],
|
@@ -107,7 +112,7 @@ var card = {
|
|
107
112
|
gray: nextGenColors['gray-100']
|
108
113
|
};
|
109
114
|
var badge = {
|
110
|
-
textColor: nextGenColors
|
115
|
+
textColor: nextGenColors.font.base,
|
111
116
|
background: nextGenColors['gray-100']
|
112
117
|
};
|
113
118
|
var tooltip = nextGenColors['gray-900'];
|
@@ -117,6 +122,7 @@ var colors = _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, subColo
|
|
117
122
|
critical: critical,
|
118
123
|
success: success,
|
119
124
|
warning: warning,
|
125
|
+
info: info,
|
120
126
|
text: text,
|
121
127
|
border: border,
|
122
128
|
active: colorsObject.blue,
|
@@ -1,7 +1,6 @@
|
|
1
1
|
var nextGenConvertedComponents = ['GridList', 'DataTable', 'Message', 'Button', 'Badge', 'IconButton', 'CheckboxField', 'Messages', 'PopoverMenu', 'TextField', 'PasswordField', 'SearchField', 'SelectField', 'Modal', 'RadioField', 'MultiValuesField', 'TextAreaField', 'RadioGroupField', 'RockerButtonGroup', 'Tabs', 'ProgressBar', 'NavBar', 'OverlayPanel', 'AstroProvider', 'ListView', 'NavigationHeader', 'Avatar', 'MultivaluesField', 'Text', 'Link', 'Card', 'IconWrapper', 'ComboBoxField', 'CodeView', 'Sticker Sheet', 'NextGen ListViewItem', 'Skeleton', 'TooltipTrigger', 'ListViewItem', 'Pagination', 'StatusIcon', 'Callout', 'Table', 'TableBase', 'ArrayField', 'ColorField', 'LinkSelectField', 'NumberField', 'SwitchField', 'Base Components', 'SliderField'];
|
2
2
|
export var componentSpecificNextGenBlacklist = {
|
3
3
|
AstroProvider: ['Default', 'With Custom Theme Override'],
|
4
|
-
Badge: ['Status Badge Variants', 'Badge With Left Slot And Icon', 'Callout Badges', 'Removable'],
|
5
4
|
Messages: ['Customization'],
|
6
5
|
MultivaluesField: ['Condensed', 'Condensed With Section'],
|
7
6
|
PasswordField: ['Success'],
|