@pingux/astro 2.151.0-alpha.5 → 2.151.1-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/CodeView/CodeView.js +14 -10
- package/lib/cjs/components/CodeView/CodeView.stories.d.ts +1 -0
- package/lib/cjs/components/CodeView/CodeView.stories.js +17 -1
- package/lib/cjs/components/CodeView/CodeView.styles.d.ts +79 -77
- package/lib/cjs/components/CodeView/CodeView.styles.js +5 -3
- package/lib/cjs/components/CopyText/CopyButton.js +9 -3
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/colors.d.ts +10 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/colors.js +13 -1
- package/lib/cjs/styles/themes/next-gen/codeView/codeView.d.ts +252 -92
- package/lib/cjs/styles/themes/next-gen/codeView/codeView.js +104 -15
- package/lib/cjs/styles/themes/next-gen/colors/colors.d.ts +5 -0
- package/lib/cjs/styles/themes/next-gen/colors/colors.js +5 -0
- package/lib/cjs/styles/themes/next-gen/convertedComponentList.d.ts +1 -0
- package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +1 -0
- package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +496 -180
- package/lib/cjs/styles/themes/next-gen/tokens/colorTokens.d.ts +1 -0
- package/lib/cjs/styles/themes/next-gen/tokens/colorTokens.js +2 -1
- package/lib/cjs/styles/themes/next-gen/variants/button.d.ts +13 -4
- package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +239 -88
- package/lib/components/CodeView/CodeView.js +14 -10
- package/lib/components/CodeView/CodeView.stories.js +15 -0
- package/lib/components/CodeView/CodeView.styles.js +5 -3
- package/lib/components/CopyText/CopyButton.js +9 -3
- package/lib/styles/themeOverrides/nextGenDarkMode/colors.js +13 -1
- package/lib/styles/themes/next-gen/codeView/codeView.js +104 -15
- package/lib/styles/themes/next-gen/colors/colors.js +5 -0
- package/lib/styles/themes/next-gen/convertedComponentList.js +1 -0
- package/lib/styles/themes/next-gen/tokens/colorTokens.js +2 -1
- package/package.json +1 -1
|
@@ -1,121 +1,281 @@
|
|
|
1
1
|
export declare const copyButton: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
default: {
|
|
3
|
+
mx: string;
|
|
4
|
+
path: {
|
|
5
|
+
fill: string;
|
|
6
|
+
};
|
|
7
|
+
border: string;
|
|
8
|
+
};
|
|
9
|
+
light: {
|
|
10
|
+
mx: string;
|
|
11
|
+
path: {
|
|
12
|
+
fill: string;
|
|
13
|
+
};
|
|
14
|
+
border: string;
|
|
5
15
|
};
|
|
6
|
-
border: string;
|
|
7
16
|
};
|
|
8
17
|
declare const _default: {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
backgroundColor: string;
|
|
13
|
-
};
|
|
14
|
-
styles: ({
|
|
15
|
-
types: string[];
|
|
16
|
-
style: {
|
|
18
|
+
default: {
|
|
19
|
+
theme: {
|
|
20
|
+
plain: {
|
|
17
21
|
color: string;
|
|
18
|
-
|
|
19
|
-
fontWeight?: undefined;
|
|
20
|
-
cursor?: undefined;
|
|
22
|
+
backgroundColor: string;
|
|
21
23
|
};
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
styles: ({
|
|
25
|
+
types: string[];
|
|
26
|
+
style: {
|
|
27
|
+
color: string;
|
|
28
|
+
background?: undefined;
|
|
29
|
+
fontWeight?: undefined;
|
|
30
|
+
cursor?: undefined;
|
|
31
|
+
};
|
|
32
|
+
} | {
|
|
33
|
+
types: string[];
|
|
34
|
+
style: {
|
|
35
|
+
color: string;
|
|
36
|
+
background: string;
|
|
37
|
+
fontWeight?: undefined;
|
|
38
|
+
cursor?: undefined;
|
|
39
|
+
};
|
|
40
|
+
} | {
|
|
41
|
+
types: string[];
|
|
42
|
+
style: {
|
|
43
|
+
fontWeight: string;
|
|
44
|
+
color?: undefined;
|
|
45
|
+
background?: undefined;
|
|
46
|
+
cursor?: undefined;
|
|
47
|
+
};
|
|
48
|
+
} | {
|
|
49
|
+
types: string[];
|
|
50
|
+
style: {
|
|
51
|
+
cursor: string;
|
|
52
|
+
color?: undefined;
|
|
53
|
+
background?: undefined;
|
|
54
|
+
fontWeight?: undefined;
|
|
55
|
+
};
|
|
56
|
+
})[];
|
|
57
|
+
};
|
|
58
|
+
wrapper: {
|
|
59
|
+
backgroundColor: string;
|
|
60
|
+
border: string;
|
|
61
|
+
borderColor: string;
|
|
62
|
+
borderRadius: string;
|
|
63
|
+
width: number;
|
|
64
|
+
height: number;
|
|
65
|
+
my: string;
|
|
66
|
+
overflow: string;
|
|
67
|
+
alignItems: string;
|
|
68
|
+
'&.is-focused, &:focus': {
|
|
69
|
+
boxShadow: string;
|
|
70
|
+
outline: string;
|
|
71
|
+
};
|
|
72
|
+
pre: {
|
|
73
|
+
backgroundColor: string;
|
|
74
|
+
padding: string;
|
|
75
|
+
height: string;
|
|
76
|
+
width: string;
|
|
77
|
+
overflowX: string;
|
|
78
|
+
overflowY: string;
|
|
79
|
+
fontSize: string;
|
|
80
|
+
'& .token-line': {
|
|
81
|
+
display: string;
|
|
82
|
+
alignItems: string;
|
|
83
|
+
'& .token': {
|
|
84
|
+
whiteSpace: string;
|
|
85
|
+
wordBreak: string;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
fontFamily: string;
|
|
89
|
+
lineHeight: string;
|
|
29
90
|
};
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
color?: undefined;
|
|
35
|
-
background?: undefined;
|
|
36
|
-
cursor?: undefined;
|
|
91
|
+
'&.has-no-copy-button': {
|
|
92
|
+
pre: {
|
|
93
|
+
p: string;
|
|
94
|
+
};
|
|
37
95
|
};
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
96
|
+
'&.has-line-numbers': {
|
|
97
|
+
pre: {
|
|
98
|
+
p: string;
|
|
99
|
+
overflow: string;
|
|
100
|
+
'& .token-line:first-of-type *': {
|
|
101
|
+
pt: string;
|
|
102
|
+
};
|
|
103
|
+
'& .token-line': {
|
|
104
|
+
display: string;
|
|
105
|
+
'& .token': {
|
|
106
|
+
whiteSpace: string;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
};
|
|
45
110
|
};
|
|
46
|
-
})[];
|
|
47
|
-
};
|
|
48
|
-
wrapper: {
|
|
49
|
-
backgroundColor: string;
|
|
50
|
-
border: string;
|
|
51
|
-
borderColor: string;
|
|
52
|
-
borderRadius: string;
|
|
53
|
-
width: number;
|
|
54
|
-
height: number;
|
|
55
|
-
my: string;
|
|
56
|
-
overflow: string;
|
|
57
|
-
alignItems: string;
|
|
58
|
-
'&.is-focused, &:focus': {
|
|
59
|
-
boxShadow: string;
|
|
60
|
-
outline: string;
|
|
61
111
|
};
|
|
62
|
-
|
|
112
|
+
lineNo: {
|
|
113
|
+
display: string;
|
|
114
|
+
userSelect: string;
|
|
115
|
+
px: string;
|
|
116
|
+
m: string;
|
|
117
|
+
bg: string;
|
|
118
|
+
minWidth: number;
|
|
119
|
+
color: string;
|
|
120
|
+
lineHeight: string;
|
|
63
121
|
backgroundColor: string;
|
|
64
|
-
|
|
65
|
-
|
|
122
|
+
};
|
|
123
|
+
header: {
|
|
124
|
+
backgroundColor: string;
|
|
125
|
+
color: string;
|
|
126
|
+
px: string;
|
|
66
127
|
width: string;
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
128
|
+
borderBottom: string;
|
|
129
|
+
borderBottomColor: string;
|
|
130
|
+
lineHeight: string;
|
|
131
|
+
};
|
|
132
|
+
copyButton: {
|
|
133
|
+
default: {
|
|
134
|
+
mx: string;
|
|
135
|
+
path: {
|
|
136
|
+
fill: string;
|
|
76
137
|
};
|
|
138
|
+
border: string;
|
|
139
|
+
};
|
|
140
|
+
light: {
|
|
141
|
+
mx: string;
|
|
142
|
+
path: {
|
|
143
|
+
fill: string;
|
|
144
|
+
};
|
|
145
|
+
border: string;
|
|
77
146
|
};
|
|
78
|
-
fontFamily: string;
|
|
79
|
-
lineHeight: string;
|
|
80
147
|
};
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
148
|
+
};
|
|
149
|
+
light: {
|
|
150
|
+
theme: {
|
|
151
|
+
styles: ({
|
|
152
|
+
types: string[];
|
|
153
|
+
style: {
|
|
154
|
+
color: string;
|
|
155
|
+
background?: undefined;
|
|
156
|
+
fontWeight?: undefined;
|
|
157
|
+
cursor?: undefined;
|
|
158
|
+
};
|
|
159
|
+
} | {
|
|
160
|
+
types: string[];
|
|
161
|
+
style: {
|
|
162
|
+
color: string;
|
|
163
|
+
background: string;
|
|
164
|
+
fontWeight?: undefined;
|
|
165
|
+
cursor?: undefined;
|
|
166
|
+
};
|
|
167
|
+
} | {
|
|
168
|
+
types: string[];
|
|
169
|
+
style: {
|
|
170
|
+
fontWeight: string;
|
|
171
|
+
color?: undefined;
|
|
172
|
+
background?: undefined;
|
|
173
|
+
cursor?: undefined;
|
|
174
|
+
};
|
|
175
|
+
} | {
|
|
176
|
+
types: string[];
|
|
177
|
+
style: {
|
|
178
|
+
cursor: string;
|
|
179
|
+
color?: undefined;
|
|
180
|
+
background?: undefined;
|
|
181
|
+
fontWeight?: undefined;
|
|
182
|
+
};
|
|
183
|
+
})[];
|
|
184
|
+
plain: {
|
|
185
|
+
color: string;
|
|
186
|
+
backgroundColor: string;
|
|
84
187
|
};
|
|
85
188
|
};
|
|
86
|
-
|
|
189
|
+
wrapper: {
|
|
190
|
+
backgroundColor: string;
|
|
191
|
+
borderColor: string;
|
|
192
|
+
border: string;
|
|
193
|
+
borderRadius: string;
|
|
194
|
+
width: number;
|
|
195
|
+
height: number;
|
|
196
|
+
my: string;
|
|
197
|
+
overflow: string;
|
|
198
|
+
alignItems: string;
|
|
199
|
+
'&.is-focused, &:focus': {
|
|
200
|
+
boxShadow: string;
|
|
201
|
+
outline: string;
|
|
202
|
+
};
|
|
87
203
|
pre: {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
204
|
+
backgroundColor: string;
|
|
205
|
+
padding: string;
|
|
206
|
+
height: string;
|
|
207
|
+
width: string;
|
|
208
|
+
overflowX: string;
|
|
209
|
+
overflowY: string;
|
|
210
|
+
fontSize: string;
|
|
93
211
|
'& .token-line': {
|
|
94
212
|
display: string;
|
|
213
|
+
alignItems: string;
|
|
95
214
|
'& .token': {
|
|
96
215
|
whiteSpace: string;
|
|
216
|
+
wordBreak: string;
|
|
217
|
+
};
|
|
218
|
+
};
|
|
219
|
+
fontFamily: string;
|
|
220
|
+
lineHeight: string;
|
|
221
|
+
};
|
|
222
|
+
'&.has-no-copy-button': {
|
|
223
|
+
pre: {
|
|
224
|
+
p: string;
|
|
225
|
+
};
|
|
226
|
+
};
|
|
227
|
+
'&.has-line-numbers': {
|
|
228
|
+
pre: {
|
|
229
|
+
p: string;
|
|
230
|
+
overflow: string;
|
|
231
|
+
'& .token-line:first-of-type *': {
|
|
232
|
+
pt: string;
|
|
233
|
+
};
|
|
234
|
+
'& .token-line': {
|
|
235
|
+
display: string;
|
|
236
|
+
'& .token': {
|
|
237
|
+
whiteSpace: string;
|
|
238
|
+
};
|
|
97
239
|
};
|
|
98
240
|
};
|
|
99
241
|
};
|
|
100
242
|
};
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
243
|
+
header: {
|
|
244
|
+
backgroundColor: string;
|
|
245
|
+
borderBottomColor: string;
|
|
246
|
+
color: string;
|
|
247
|
+
px: string;
|
|
248
|
+
width: string;
|
|
249
|
+
borderBottom: string;
|
|
250
|
+
lineHeight: string;
|
|
251
|
+
};
|
|
252
|
+
lineNo: {
|
|
253
|
+
display: string;
|
|
254
|
+
userSelect: string;
|
|
255
|
+
px: string;
|
|
256
|
+
m: string;
|
|
257
|
+
bg: string;
|
|
258
|
+
minWidth: number;
|
|
259
|
+
color: string;
|
|
260
|
+
lineHeight: string;
|
|
261
|
+
backgroundColor: string;
|
|
262
|
+
};
|
|
263
|
+
copyButton: {
|
|
264
|
+
default: {
|
|
265
|
+
mx: string;
|
|
266
|
+
path: {
|
|
267
|
+
fill: string;
|
|
268
|
+
};
|
|
269
|
+
border: string;
|
|
270
|
+
};
|
|
271
|
+
light: {
|
|
272
|
+
mx: string;
|
|
273
|
+
path: {
|
|
274
|
+
fill: string;
|
|
275
|
+
};
|
|
276
|
+
border: string;
|
|
277
|
+
};
|
|
278
|
+
};
|
|
119
279
|
};
|
|
120
280
|
};
|
|
121
281
|
export default _default;
|
|
@@ -1,14 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _Object$keys = require("@babel/runtime-corejs3/core-js-stable/object/keys");
|
|
4
|
+
var _Object$getOwnPropertySymbols = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols");
|
|
5
|
+
var _filterInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/filter");
|
|
6
|
+
var _Object$getOwnPropertyDescriptor = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor");
|
|
7
|
+
var _forEachInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/for-each");
|
|
8
|
+
var _Object$getOwnPropertyDescriptors = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors");
|
|
9
|
+
var _Object$defineProperties = require("@babel/runtime-corejs3/core-js-stable/object/define-properties");
|
|
3
10
|
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
|
11
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
12
|
_Object$defineProperty(exports, "__esModule", {
|
|
5
13
|
value: true
|
|
6
14
|
});
|
|
7
15
|
exports["default"] = exports.copyButton = void 0;
|
|
16
|
+
var _concat = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/concat"));
|
|
17
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
|
|
18
|
+
var _context;
|
|
19
|
+
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; }
|
|
20
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context2, _context3; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context2 = ownKeys(Object(source), !0)).call(_context2, function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context3 = ownKeys(Object(source))).call(_context3, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
8
21
|
var nextGenCodeViewTheme = {
|
|
9
22
|
plain: {
|
|
10
|
-
color: '#
|
|
11
|
-
backgroundColor: '
|
|
23
|
+
color: '#999999',
|
|
24
|
+
backgroundColor: 'codeEditor.backgroundColor'
|
|
12
25
|
},
|
|
13
26
|
styles: [{
|
|
14
27
|
types: ['comment', 'prolog', 'doctype', 'cdata'],
|
|
@@ -64,9 +77,9 @@ var nextGenCodeViewTheme = {
|
|
|
64
77
|
}]
|
|
65
78
|
};
|
|
66
79
|
var nextGenCodeViewWrapper = {
|
|
67
|
-
backgroundColor: '
|
|
80
|
+
backgroundColor: 'codeEditor.backgroundColor',
|
|
68
81
|
border: '1px solid',
|
|
69
|
-
borderColor: '
|
|
82
|
+
borderColor: 'codeEditor.headerColor',
|
|
70
83
|
borderRadius: '4px',
|
|
71
84
|
width: 400,
|
|
72
85
|
height: 200,
|
|
@@ -118,11 +131,12 @@ var nextGenCodeViewWrapper = {
|
|
|
118
131
|
}
|
|
119
132
|
};
|
|
120
133
|
var nextGenCodeViewHeader = {
|
|
121
|
-
|
|
134
|
+
backgroundColor: 'codeEditor.headerColor',
|
|
135
|
+
color: 'font.reverse',
|
|
122
136
|
px: 'md',
|
|
123
137
|
width: '100%',
|
|
124
|
-
|
|
125
|
-
|
|
138
|
+
borderBottom: '1px solid',
|
|
139
|
+
borderBottomColor: 'gray-800',
|
|
126
140
|
lineHeight: 'body'
|
|
127
141
|
};
|
|
128
142
|
var lineNo = {
|
|
@@ -132,21 +146,96 @@ var lineNo = {
|
|
|
132
146
|
m: '0 10px 0 0',
|
|
133
147
|
bg: 'accent.30',
|
|
134
148
|
minWidth: 26,
|
|
135
|
-
color: '
|
|
136
|
-
lineHeight: '20px'
|
|
149
|
+
color: '#93A1A1',
|
|
150
|
+
lineHeight: '20px',
|
|
151
|
+
backgroundColor: 'transparent'
|
|
137
152
|
};
|
|
138
153
|
var copyButton = {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
154
|
+
"default": {
|
|
155
|
+
mx: 'sm',
|
|
156
|
+
path: {
|
|
157
|
+
fill: 'font.reverse'
|
|
158
|
+
},
|
|
159
|
+
border: 'none !important'
|
|
142
160
|
},
|
|
143
|
-
|
|
161
|
+
light: {
|
|
162
|
+
mx: 'sm',
|
|
163
|
+
path: {
|
|
164
|
+
fill: '#23282f'
|
|
165
|
+
},
|
|
166
|
+
border: 'none !important'
|
|
167
|
+
}
|
|
144
168
|
};
|
|
145
169
|
exports.copyButton = copyButton;
|
|
146
|
-
var
|
|
170
|
+
var codeView = {
|
|
147
171
|
theme: nextGenCodeViewTheme,
|
|
148
172
|
wrapper: nextGenCodeViewWrapper,
|
|
149
173
|
lineNo: lineNo,
|
|
150
|
-
header: nextGenCodeViewHeader
|
|
174
|
+
header: nextGenCodeViewHeader,
|
|
175
|
+
copyButton: copyButton
|
|
176
|
+
};
|
|
177
|
+
var light = _objectSpread(_objectSpread({}, codeView), {}, {
|
|
178
|
+
theme: _objectSpread(_objectSpread({}, nextGenCodeViewTheme), {}, {
|
|
179
|
+
styles: (0, _concat["default"])(_context = []).call(_context, nextGenCodeViewTheme.styles, [{
|
|
180
|
+
types: ['comment', 'prolog', 'doctype', 'cdata'],
|
|
181
|
+
style: {
|
|
182
|
+
color: '#94a0a0'
|
|
183
|
+
}
|
|
184
|
+
}, {
|
|
185
|
+
types: ['deleted', 'property', 'tag', 'boolean', 'number', 'constant', 'symbol'],
|
|
186
|
+
style: {
|
|
187
|
+
color: '#99329f'
|
|
188
|
+
}
|
|
189
|
+
}, {
|
|
190
|
+
types: ['inserted', 'selector', 'string', 'char', 'builtin', 'inserted', 'attr-name'],
|
|
191
|
+
style: {
|
|
192
|
+
color: '#63a058'
|
|
193
|
+
}
|
|
194
|
+
}, {
|
|
195
|
+
types: ['operator', 'entity', 'url', 'language-css', 'style'],
|
|
196
|
+
style: {
|
|
197
|
+
color: '#a67f35',
|
|
198
|
+
background: 'transparent'
|
|
199
|
+
}
|
|
200
|
+
}, {
|
|
201
|
+
types: ['atrule', 'attr-value', 'keyword'],
|
|
202
|
+
style: {
|
|
203
|
+
color: '#99329f'
|
|
204
|
+
}
|
|
205
|
+
}, {
|
|
206
|
+
types: ['function'],
|
|
207
|
+
style: {
|
|
208
|
+
color: '#4e76ea'
|
|
209
|
+
}
|
|
210
|
+
}, {
|
|
211
|
+
types: ['regex', 'important', 'variable'],
|
|
212
|
+
style: {
|
|
213
|
+
color: '#f07178'
|
|
214
|
+
}
|
|
215
|
+
}, {
|
|
216
|
+
types: ['important', 'bold'],
|
|
217
|
+
style: {
|
|
218
|
+
fontWeight: 'bold'
|
|
219
|
+
}
|
|
220
|
+
}, {
|
|
221
|
+
types: ['entity'],
|
|
222
|
+
style: {
|
|
223
|
+
cursor: 'help'
|
|
224
|
+
}
|
|
225
|
+
}])
|
|
226
|
+
}),
|
|
227
|
+
wrapper: _objectSpread(_objectSpread({}, nextGenCodeViewWrapper), {}, {
|
|
228
|
+
backgroundColor: '#f7f8fa',
|
|
229
|
+
borderColor: '#f7f8fa'
|
|
230
|
+
}),
|
|
231
|
+
header: _objectSpread(_objectSpread({}, nextGenCodeViewHeader), {}, {
|
|
232
|
+
backgroundColor: '#f7f8fa',
|
|
233
|
+
borderBottomColor: '#e6edf5',
|
|
234
|
+
color: '#23282f'
|
|
235
|
+
})
|
|
236
|
+
});
|
|
237
|
+
var _default = {
|
|
238
|
+
"default": codeView,
|
|
239
|
+
light: light
|
|
151
240
|
};
|
|
152
241
|
exports["default"] = _default;
|
|
@@ -104,6 +104,10 @@ declare const colors: {
|
|
|
104
104
|
};
|
|
105
105
|
};
|
|
106
106
|
tooltip: string;
|
|
107
|
+
codeEditor: {
|
|
108
|
+
backgroundColor: string;
|
|
109
|
+
headerColor: string;
|
|
110
|
+
};
|
|
107
111
|
twoTone: {
|
|
108
112
|
bg: {
|
|
109
113
|
orange: string;
|
|
@@ -268,6 +272,7 @@ declare const colors: {
|
|
|
268
272
|
light: string;
|
|
269
273
|
link: string;
|
|
270
274
|
label: string;
|
|
275
|
+
reverse: string;
|
|
271
276
|
};
|
|
272
277
|
active_hover: string;
|
|
273
278
|
active_pressed: string;
|
|
@@ -127,6 +127,10 @@ var badge = {
|
|
|
127
127
|
textColor: _colorTokens.nextGenColors.font.base,
|
|
128
128
|
background: _colorTokens.nextGenColors['gray-100']
|
|
129
129
|
};
|
|
130
|
+
var codeEditor = {
|
|
131
|
+
backgroundColor: _colorTokens.nextGenColors['gray-900'],
|
|
132
|
+
headerColor: _colorTokens.nextGenColors['gray-900']
|
|
133
|
+
};
|
|
130
134
|
var tooltip = 'black';
|
|
131
135
|
var colors = _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, subColors), _colorTokens.nextGenColors), overrides), {}, {
|
|
132
136
|
badge: badge,
|
|
@@ -147,6 +151,7 @@ var colors = _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, subColo
|
|
|
147
151
|
backgroundHover: backgroundHover,
|
|
148
152
|
iconWrapper: _iconWrapper.iconWrapper,
|
|
149
153
|
tooltip: tooltip,
|
|
154
|
+
codeEditor: codeEditor,
|
|
150
155
|
twoTone: _twoTone["default"]
|
|
151
156
|
});
|
|
152
157
|
var _default = colors;
|
|
@@ -22,6 +22,7 @@ var astroBlacklistStory = {
|
|
|
22
22
|
NavBar: ['Onyx Default'],
|
|
23
23
|
SearchField: ['Onyx With Filter'],
|
|
24
24
|
Callout: ['Customizations'],
|
|
25
|
+
CodeView: ['Light'],
|
|
25
26
|
StatusIcon: ['Default', 'In Rocker Button'],
|
|
26
27
|
Avatar: ['With Size Variation', 'With Color Variation', 'With Icon Variation', 'With Square Variation'],
|
|
27
28
|
Text: ['Onyx'],
|