@pingux/astro 2.84.0-alpha.1 → 2.84.0-alpha.2
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 +5 -2
- package/lib/cjs/components/CodeView/CodeView.styles.d.ts +2 -1
- package/lib/cjs/components/CodeView/CodeView.styles.js +4 -3
- package/lib/cjs/components/Link/Link.js +3 -1
- package/lib/cjs/components/MenuItem/MenuItem.styles.d.ts +1 -0
- package/lib/cjs/components/MenuItem/MenuItem.styles.js +2 -1
- package/lib/cjs/components/Tabs/Tabs.js +0 -1
- package/lib/cjs/components/Tabs/Tabs.style.d.ts +1 -0
- package/lib/cjs/components/Tabs/Tabs.style.js +2 -1
- package/lib/cjs/styles/theme.js +5 -1
- package/lib/cjs/styles/themes/next-gen/codeView/codeView.d.ts +105 -0
- package/lib/cjs/styles/themes/next-gen/codeView/codeView.js +134 -0
- package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +1 -1
- package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +278 -6
- package/lib/cjs/styles/themes/next-gen/next-gen.js +31 -4
- package/lib/cjs/styles/themes/next-gen/spacing.d.ts +9 -0
- package/lib/cjs/styles/themes/next-gen/spacing.js +17 -0
- package/lib/cjs/styles/themes/next-gen/text.d.ts +2 -2
- package/lib/cjs/styles/themes/next-gen/text.js +8 -13
- package/lib/cjs/styles/themes/next-gen/variants/button.d.ts +36 -3
- package/lib/cjs/styles/themes/next-gen/variants/button.js +25 -5
- package/lib/cjs/styles/themes/next-gen/variants/cards.d.ts +20 -0
- package/lib/cjs/styles/themes/next-gen/variants/cards.js +28 -0
- package/lib/cjs/styles/themes/next-gen/variants/links.d.ts +56 -0
- package/lib/cjs/styles/themes/next-gen/variants/links.js +62 -0
- package/lib/cjs/styles/themes/next-gen/variants/text.d.ts +7 -0
- package/lib/cjs/styles/themes/next-gen/variants/text.js +9 -2
- package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +31 -1
- package/lib/cjs/styles/themes/next-gen/variants/variants.js +38 -5
- package/lib/cjs/types/codeView.d.ts +1 -0
- package/lib/cjs/types/link.d.ts +1 -0
- package/lib/components/CodeView/CodeView.js +5 -2
- package/lib/components/CodeView/CodeView.styles.js +4 -3
- package/lib/components/Link/Link.js +3 -1
- package/lib/components/MenuItem/MenuItem.styles.js +2 -1
- package/lib/components/Tabs/Tabs.js +0 -1
- package/lib/components/Tabs/Tabs.style.js +2 -1
- package/lib/styles/theme.js +5 -1
- package/lib/styles/themes/next-gen/codeView/codeView.js +126 -0
- package/lib/styles/themes/next-gen/convertedComponentList.js +1 -1
- package/lib/styles/themes/next-gen/next-gen.js +31 -4
- package/lib/styles/themes/next-gen/spacing.js +9 -0
- package/lib/styles/themes/next-gen/text.js +8 -13
- package/lib/styles/themes/next-gen/variants/button.js +25 -5
- package/lib/styles/themes/next-gen/variants/cards.js +20 -0
- package/lib/styles/themes/next-gen/variants/links.js +54 -0
- package/lib/styles/themes/next-gen/variants/text.js +9 -2
- package/lib/styles/themes/next-gen/variants/variants.js +38 -5
- package/package.json +1 -1
@@ -0,0 +1,28 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
4
|
+
_Object$defineProperty(exports, "__esModule", {
|
5
|
+
value: true
|
6
|
+
});
|
7
|
+
exports["default"] = void 0;
|
8
|
+
var interactive = {
|
9
|
+
boxShadow: 'none',
|
10
|
+
borderRadius: '24px',
|
11
|
+
border: '1px solid',
|
12
|
+
borderColor: 'gray-300',
|
13
|
+
transition: 'border-color .15s ease-in',
|
14
|
+
'&.is-focused': {
|
15
|
+
outline: '2px solid',
|
16
|
+
outlineColor: 'focus',
|
17
|
+
outlineOffset: '0px'
|
18
|
+
},
|
19
|
+
'&.is-hovered': {
|
20
|
+
outline: 'none',
|
21
|
+
borderColor: 'blue',
|
22
|
+
bg: 'default'
|
23
|
+
}
|
24
|
+
};
|
25
|
+
var _default = {
|
26
|
+
interactive: interactive
|
27
|
+
};
|
28
|
+
exports["default"] = _default;
|
@@ -0,0 +1,56 @@
|
|
1
|
+
declare const _default: {
|
2
|
+
nextGen: {
|
3
|
+
color: string;
|
4
|
+
fontSize: string;
|
5
|
+
py: string;
|
6
|
+
px: string;
|
7
|
+
textDecoration: string;
|
8
|
+
borderRadius: string;
|
9
|
+
lineHeight: string;
|
10
|
+
minHeight: string;
|
11
|
+
fontFamily: string;
|
12
|
+
'&.is-hovered': {
|
13
|
+
color: string;
|
14
|
+
};
|
15
|
+
'&.is-pressed': {
|
16
|
+
color: string;
|
17
|
+
};
|
18
|
+
};
|
19
|
+
sideNav: {
|
20
|
+
px: string;
|
21
|
+
display: string;
|
22
|
+
position: string;
|
23
|
+
'&:before': {
|
24
|
+
position: string;
|
25
|
+
display: string;
|
26
|
+
borderRadius: string;
|
27
|
+
content: string;
|
28
|
+
top: string;
|
29
|
+
right: string;
|
30
|
+
bottom: number;
|
31
|
+
left: string;
|
32
|
+
transition: string;
|
33
|
+
};
|
34
|
+
'&.is-selected': {
|
35
|
+
color: string;
|
36
|
+
'&:before': {
|
37
|
+
backgroundColor: string;
|
38
|
+
};
|
39
|
+
};
|
40
|
+
color: string;
|
41
|
+
fontSize: string;
|
42
|
+
py: string;
|
43
|
+
textDecoration: string;
|
44
|
+
borderRadius: string;
|
45
|
+
lineHeight: string;
|
46
|
+
minHeight: string;
|
47
|
+
fontFamily: string;
|
48
|
+
'&.is-hovered': {
|
49
|
+
color: string;
|
50
|
+
};
|
51
|
+
'&.is-pressed': {
|
52
|
+
color: string;
|
53
|
+
};
|
54
|
+
};
|
55
|
+
};
|
56
|
+
export default _default;
|
@@ -0,0 +1,62 @@
|
|
1
|
+
"use strict";
|
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");
|
10
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
11
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
12
|
+
_Object$defineProperty(exports, "__esModule", {
|
13
|
+
value: true
|
14
|
+
});
|
15
|
+
exports["default"] = void 0;
|
16
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
|
17
|
+
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; }
|
18
|
+
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) { (0, _defineProperty2["default"])(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; }
|
19
|
+
var nextGen = {
|
20
|
+
color: 'gray-800',
|
21
|
+
fontSize: 'md',
|
22
|
+
py: 'sm',
|
23
|
+
px: 'md',
|
24
|
+
textDecoration: 'none',
|
25
|
+
borderRadius: '4px',
|
26
|
+
lineHeight: '22.5px',
|
27
|
+
minHeight: '22.5px',
|
28
|
+
fontFamily: 'standard',
|
29
|
+
'&.is-hovered': {
|
30
|
+
color: '#155cba'
|
31
|
+
},
|
32
|
+
'&.is-pressed': {
|
33
|
+
color: '#155cba'
|
34
|
+
}
|
35
|
+
};
|
36
|
+
var sideNav = _objectSpread(_objectSpread({}, nextGen), {}, {
|
37
|
+
px: '0',
|
38
|
+
display: 'block',
|
39
|
+
position: 'relative',
|
40
|
+
'&:before': {
|
41
|
+
position: 'absolute',
|
42
|
+
display: 'block',
|
43
|
+
borderRadius: '.25rem',
|
44
|
+
content: '""',
|
45
|
+
top: '0',
|
46
|
+
right: '-1rem',
|
47
|
+
bottom: 0,
|
48
|
+
left: '-1rem',
|
49
|
+
transition: 'background-color .15s ease'
|
50
|
+
},
|
51
|
+
'&.is-selected': {
|
52
|
+
color: '#155cba',
|
53
|
+
'&:before': {
|
54
|
+
backgroundColor: 'active_light'
|
55
|
+
}
|
56
|
+
}
|
57
|
+
});
|
58
|
+
var _default = {
|
59
|
+
nextGen: nextGen,
|
60
|
+
sideNav: sideNav
|
61
|
+
};
|
62
|
+
exports["default"] = _default;
|
@@ -46,6 +46,7 @@ export declare const text: {
|
|
46
46
|
};
|
47
47
|
placeholder: {
|
48
48
|
color: string;
|
49
|
+
fontWeight: number;
|
49
50
|
};
|
50
51
|
paragraph: {
|
51
52
|
lineHeight: string;
|
@@ -53,4 +54,10 @@ export declare const text: {
|
|
53
54
|
listViewItemText: {
|
54
55
|
fontWeight: number;
|
55
56
|
};
|
57
|
+
small: {
|
58
|
+
fontSize: string;
|
59
|
+
color: string;
|
60
|
+
fontFamily: string;
|
61
|
+
lineHeight: string;
|
62
|
+
};
|
56
63
|
};
|
@@ -52,7 +52,7 @@ var hTags = {
|
|
52
52
|
color: 'text.primary',
|
53
53
|
fontFamily: 'standard',
|
54
54
|
fontWeight: 1,
|
55
|
-
fontSize: '
|
55
|
+
fontSize: 'xs'
|
56
56
|
}
|
57
57
|
};
|
58
58
|
var text = _objectSpread({
|
@@ -65,13 +65,20 @@ var text = _objectSpread({
|
|
65
65
|
color: 'text.primary'
|
66
66
|
},
|
67
67
|
placeholder: {
|
68
|
-
color: 'text.primary'
|
68
|
+
color: 'text.primary',
|
69
|
+
fontWeight: 1
|
69
70
|
},
|
70
71
|
paragraph: {
|
71
72
|
lineHeight: 'body'
|
72
73
|
},
|
73
74
|
listViewItemText: {
|
74
75
|
fontWeight: 2
|
76
|
+
},
|
77
|
+
small: {
|
78
|
+
fontSize: 'sm',
|
79
|
+
color: 'gray-500',
|
80
|
+
fontFamily: 'standard',
|
81
|
+
lineHeight: '1.75rem'
|
75
82
|
}
|
76
83
|
}, hTags);
|
77
84
|
exports.text = text;
|
@@ -446,6 +446,9 @@ declare const _default: {
|
|
446
446
|
bg: string;
|
447
447
|
};
|
448
448
|
};
|
449
|
+
separator: {
|
450
|
+
my: string;
|
451
|
+
};
|
449
452
|
};
|
450
453
|
avatar: {
|
451
454
|
xl: {
|
@@ -482,8 +485,12 @@ declare const _default: {
|
|
482
485
|
};
|
483
486
|
};
|
484
487
|
listViewItem: {
|
488
|
+
rightOfData: {
|
489
|
+
flexShrink: number;
|
490
|
+
whiteSpace: string;
|
491
|
+
};
|
485
492
|
iconContainer: {
|
486
|
-
|
493
|
+
ml: string;
|
487
494
|
};
|
488
495
|
styledListItem: {
|
489
496
|
bg: string;
|
@@ -576,5 +583,28 @@ declare const _default: {
|
|
576
583
|
fontSize: string;
|
577
584
|
};
|
578
585
|
};
|
586
|
+
codeView: {
|
587
|
+
wrapper: {
|
588
|
+
backgroundColor: string;
|
589
|
+
borderRadius: string;
|
590
|
+
'> button >svg': {
|
591
|
+
color: string;
|
592
|
+
path: {
|
593
|
+
fill: string;
|
594
|
+
};
|
595
|
+
};
|
596
|
+
'> pre': {
|
597
|
+
p: string;
|
598
|
+
};
|
599
|
+
};
|
600
|
+
};
|
601
|
+
tabs: {
|
602
|
+
gap: string;
|
603
|
+
};
|
604
|
+
menu: {
|
605
|
+
p: string;
|
606
|
+
border: string;
|
607
|
+
borderColor: string;
|
608
|
+
};
|
579
609
|
};
|
580
610
|
export default _default;
|
@@ -235,11 +235,14 @@ var menuItem = {
|
|
235
235
|
color: 'text.primary',
|
236
236
|
bg: 'lightblue'
|
237
237
|
}
|
238
|
+
},
|
239
|
+
separator: {
|
240
|
+
my: 'sm'
|
238
241
|
}
|
239
242
|
};
|
240
243
|
var separator = {
|
241
244
|
base: {
|
242
|
-
bg: 'gray-
|
245
|
+
bg: 'gray-300'
|
243
246
|
}
|
244
247
|
};
|
245
248
|
var avatarBase = {
|
@@ -282,8 +285,12 @@ var progressBar = {
|
|
282
285
|
})
|
283
286
|
};
|
284
287
|
var listViewItem = {
|
288
|
+
rightOfData: {
|
289
|
+
flexShrink: 4,
|
290
|
+
whiteSpace: 'nowrap'
|
291
|
+
},
|
285
292
|
iconContainer: {
|
286
|
-
|
293
|
+
ml: '0px'
|
287
294
|
},
|
288
295
|
styledListItem: {
|
289
296
|
bg: 'white',
|
@@ -304,8 +311,8 @@ var listViewItem = {
|
|
304
311
|
}
|
305
312
|
},
|
306
313
|
styledContainer: {
|
307
|
-
py: '
|
308
|
-
px: '
|
314
|
+
py: '1rem',
|
315
|
+
px: '1.5rem',
|
309
316
|
bg: 'transparent',
|
310
317
|
'&.is-hovered': {
|
311
318
|
bg: 'transparent',
|
@@ -459,6 +466,29 @@ var dataTable = {
|
|
459
466
|
fontSize: 'md'
|
460
467
|
}
|
461
468
|
};
|
469
|
+
var codeView = {
|
470
|
+
wrapper: {
|
471
|
+
backgroundColor: 'gray-900',
|
472
|
+
borderRadius: '4px',
|
473
|
+
'> button >svg': {
|
474
|
+
color: 'gray-300',
|
475
|
+
path: {
|
476
|
+
fill: 'gray-300'
|
477
|
+
}
|
478
|
+
},
|
479
|
+
'> pre': {
|
480
|
+
p: 'md'
|
481
|
+
}
|
482
|
+
}
|
483
|
+
};
|
484
|
+
var tabs = {
|
485
|
+
gap: '0px'
|
486
|
+
};
|
487
|
+
var menu = {
|
488
|
+
p: 'sm',
|
489
|
+
border: '1px solid',
|
490
|
+
borderColor: 'gray-300'
|
491
|
+
};
|
462
492
|
var _default = {
|
463
493
|
navBar: navBar,
|
464
494
|
fieldHelperText: fieldHelperText,
|
@@ -473,6 +503,9 @@ var _default = {
|
|
473
503
|
listViewItem: listViewItem,
|
474
504
|
progressBar: progressBar,
|
475
505
|
listView: listView,
|
476
|
-
dataTable: dataTable
|
506
|
+
dataTable: dataTable,
|
507
|
+
codeView: codeView,
|
508
|
+
tabs: tabs,
|
509
|
+
menu: menu
|
477
510
|
};
|
478
511
|
exports["default"] = _default;
|
package/lib/cjs/types/link.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
2
2
|
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
3
3
|
import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectWithoutProperties";
|
4
|
-
var _excluded = ["children", "className", "hasLineNumbers", "hasNoCopyButton", "language", "Prism"];
|
4
|
+
var _excluded = ["children", "className", "hasLineNumbers", "hasNoCopyButton", "language", "Prism", "stylesProp"];
|
5
5
|
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; }
|
6
6
|
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; }
|
7
7
|
import _trimInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/trim";
|
@@ -30,6 +30,8 @@ var CodeView = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
30
30
|
hasNoCopyButton = props.hasNoCopyButton,
|
31
31
|
language = props.language,
|
32
32
|
customPrism = props.Prism,
|
33
|
+
_props$stylesProp = props.stylesProp,
|
34
|
+
stylesProp = _props$stylesProp === void 0 ? styles : _props$stylesProp,
|
33
35
|
others = _objectWithoutProperties(props, _excluded);
|
34
36
|
var _useFocusRing = useFocusRing(),
|
35
37
|
isFocusVisible = _useFocusRing.isFocusVisible,
|
@@ -46,12 +48,13 @@ var CodeView = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
46
48
|
classNames = _useStatusClasses.classNames;
|
47
49
|
|
48
50
|
// Get the width for the line number element depending on the total amount of lines
|
51
|
+
|
49
52
|
var getLineNoWidth = function getLineNoWidth(tokens) {
|
50
53
|
return tokens.length.toString().length * 12;
|
51
54
|
};
|
52
55
|
var code = (children === null || children === void 0 ? void 0 : _trimInstanceProperty(children).call(children)) || '';
|
53
56
|
var content = ___EmotionJSX(Highlight, _extends({}, defaultProps, {
|
54
|
-
theme:
|
57
|
+
theme: stylesProp.theme,
|
55
58
|
code: code,
|
56
59
|
language: language,
|
57
60
|
Prism: customPrism || Prism
|
@@ -105,14 +105,15 @@ var wrapper = {
|
|
105
105
|
pre: {
|
106
106
|
backgroundColor: 'transparent',
|
107
107
|
m: 0,
|
108
|
-
p:
|
108
|
+
p: 'sm',
|
109
109
|
pr: 0,
|
110
110
|
height: '100%',
|
111
111
|
width: '100%',
|
112
112
|
overflowX: 'hidden',
|
113
113
|
overflowY: 'auto',
|
114
|
-
fontFamily: '
|
115
|
-
fontSize: '
|
114
|
+
fontFamily: 'codeView',
|
115
|
+
fontSize: '13px',
|
116
|
+
lineHeight: 'md',
|
116
117
|
'& .token-line': {
|
117
118
|
display: 'block',
|
118
119
|
alignItems: 'center',
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
2
2
|
import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectWithoutProperties";
|
3
|
-
var _excluded = ["className", "isDisabled", "onPress", "isSafariCompatible"];
|
3
|
+
var _excluded = ["className", "isDisabled", "onPress", "isSelected", "isSafariCompatible"];
|
4
4
|
import React, { forwardRef, useImperativeHandle, useRef } from 'react';
|
5
5
|
import { mergeProps, useFocusRing, useLink } from 'react-aria';
|
6
6
|
import { useHover, usePress } from '@react-aria/interactions';
|
@@ -11,6 +11,7 @@ var Link = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
11
11
|
var className = props.className,
|
12
12
|
isDisabled = props.isDisabled,
|
13
13
|
onPress = props.onPress,
|
14
|
+
isSelected = props.isSelected,
|
14
15
|
isSafariCompatible = props.isSafariCompatible,
|
15
16
|
others = _objectWithoutProperties(props, _excluded);
|
16
17
|
var linkRef = useRef(null);
|
@@ -33,6 +34,7 @@ var Link = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
33
34
|
pressProps = _usePress.pressProps,
|
34
35
|
isPressed = _usePress.isPressed;
|
35
36
|
var _useStatusClasses = useStatusClasses(className, {
|
37
|
+
isSelected: isSelected,
|
36
38
|
isDisabled: isDisabled,
|
37
39
|
isFocused: isFocusVisible,
|
38
40
|
isHovered: isHovered,
|
@@ -82,7 +82,6 @@ var Tabs = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
82
82
|
value: state
|
83
83
|
}, ___EmotionJSX(Box, others, ___EmotionJSX(Box, _extends({
|
84
84
|
variant: "tabs",
|
85
|
-
gap: "25px",
|
86
85
|
isRow: orientation === ORIENTATION.HORIZONTAL
|
87
86
|
}, tabListProps, raTabListProps, {
|
88
87
|
ref: tabListRef,
|
package/lib/styles/theme.js
CHANGED
@@ -26,10 +26,14 @@ export default {
|
|
26
26
|
},
|
27
27
|
breakpoints: breakpoints,
|
28
28
|
fonts: {
|
29
|
-
standard: '"Helvetica Neue", Helvetica, sans-serif'
|
29
|
+
standard: '"Helvetica Neue", Helvetica, sans-serif',
|
30
|
+
codeView: '"Roboto Mono", "Lucida Console", Courier, monospace'
|
30
31
|
},
|
31
32
|
fontSizes: fontSizes,
|
32
33
|
fontWeights: fontWeights,
|
34
|
+
lineHeights: {
|
35
|
+
md: '1.5'
|
36
|
+
},
|
33
37
|
sizes: {
|
34
38
|
buttonHeight: 36,
|
35
39
|
column: 400,
|
@@ -0,0 +1,126 @@
|
|
1
|
+
var nextGenCodeViewTheme = {
|
2
|
+
plain: {
|
3
|
+
color: '#f8f8f2',
|
4
|
+
backgroundColor: '#272822'
|
5
|
+
},
|
6
|
+
styles: [{
|
7
|
+
types: ['comment', 'prolog', 'doctype', 'cdata'],
|
8
|
+
style: {
|
9
|
+
color: '#93a1a1'
|
10
|
+
}
|
11
|
+
}, {
|
12
|
+
types: ['punctuation'],
|
13
|
+
style: {
|
14
|
+
color: '#999999'
|
15
|
+
}
|
16
|
+
}, {
|
17
|
+
types: ['deleted', 'property', 'tag', 'boolean', 'number', 'constant', 'symbol'],
|
18
|
+
style: {
|
19
|
+
color: '#c792ea'
|
20
|
+
}
|
21
|
+
}, {
|
22
|
+
types: ['inserted', 'selector', 'string', 'char', 'builtin', 'inserted', 'attr-name'],
|
23
|
+
style: {
|
24
|
+
color: '#A1C281'
|
25
|
+
}
|
26
|
+
}, {
|
27
|
+
types: ['operator', 'entity', 'url', 'language-css', 'style'],
|
28
|
+
style: {
|
29
|
+
color: '#dfc084',
|
30
|
+
background: 'transparent'
|
31
|
+
}
|
32
|
+
}, {
|
33
|
+
types: ['atrule', 'attr-value', 'keyword'],
|
34
|
+
style: {
|
35
|
+
color: '#c792ea'
|
36
|
+
}
|
37
|
+
}, {
|
38
|
+
types: ['function'],
|
39
|
+
style: {
|
40
|
+
color: '#53bcfd'
|
41
|
+
}
|
42
|
+
}, {
|
43
|
+
types: ['regex', 'important', 'variable'],
|
44
|
+
style: {
|
45
|
+
color: '#f07178'
|
46
|
+
}
|
47
|
+
}, {
|
48
|
+
types: ['important', 'bold'],
|
49
|
+
style: {
|
50
|
+
fontWeight: 'bold'
|
51
|
+
}
|
52
|
+
}, {
|
53
|
+
types: ['entity'],
|
54
|
+
style: {
|
55
|
+
cursor: 'help'
|
56
|
+
}
|
57
|
+
}]
|
58
|
+
};
|
59
|
+
var nextGenCodeViewWrapper = {
|
60
|
+
bg: 'accent.99',
|
61
|
+
border: '1px solid',
|
62
|
+
borderColor: 'accent.95',
|
63
|
+
width: 400,
|
64
|
+
height: 200,
|
65
|
+
my: 'xs',
|
66
|
+
overflow: 'auto',
|
67
|
+
alignItems: 'center',
|
68
|
+
'&.is-focused, &:focus': {
|
69
|
+
boxShadow: 'focus',
|
70
|
+
outline: 'none'
|
71
|
+
},
|
72
|
+
pre: {
|
73
|
+
backgroundColor: 'transparent',
|
74
|
+
padding: '1em',
|
75
|
+
height: '100%',
|
76
|
+
width: '100%',
|
77
|
+
overflowX: 'hidden',
|
78
|
+
overflowY: 'auto',
|
79
|
+
fontSize: '13px',
|
80
|
+
'& .token-line': {
|
81
|
+
display: 'block',
|
82
|
+
alignItems: 'center',
|
83
|
+
'& .token': {
|
84
|
+
whiteSpace: 'pre-wrap',
|
85
|
+
wordBreak: 'break-all'
|
86
|
+
}
|
87
|
+
},
|
88
|
+
fontFamily: 'Consolas, Monaco, Andale Mono, Ubuntu Mono, monospace',
|
89
|
+
lineHeight: 1.75
|
90
|
+
},
|
91
|
+
'&.has-no-copy-button': {
|
92
|
+
pre: {
|
93
|
+
p: 'sm'
|
94
|
+
}
|
95
|
+
},
|
96
|
+
'&.has-line-numbers': {
|
97
|
+
pre: {
|
98
|
+
p: '0 10px 0 0',
|
99
|
+
overflow: 'auto',
|
100
|
+
'& .token-line:first-of-type *': {
|
101
|
+
pt: 'sm'
|
102
|
+
},
|
103
|
+
'& .token-line': {
|
104
|
+
display: 'flex',
|
105
|
+
'& .token': {
|
106
|
+
whiteSpace: 'pre'
|
107
|
+
}
|
108
|
+
}
|
109
|
+
}
|
110
|
+
}
|
111
|
+
};
|
112
|
+
var lineNo = {
|
113
|
+
display: 'table-cell',
|
114
|
+
userSelect: 'none',
|
115
|
+
px: 'xs',
|
116
|
+
m: '0 10px 0 0',
|
117
|
+
bg: 'accent.30',
|
118
|
+
minWidth: 26,
|
119
|
+
color: 'white',
|
120
|
+
lineHeight: '20px'
|
121
|
+
};
|
122
|
+
export default {
|
123
|
+
theme: nextGenCodeViewTheme,
|
124
|
+
wrapper: nextGenCodeViewWrapper,
|
125
|
+
lineNo: lineNo
|
126
|
+
};
|
@@ -1,2 +1,2 @@
|
|
1
|
-
var nextGenConvertedComponents = ['DataTable', 'Message', 'Button', 'Badge', 'IconButton', 'CheckboxField', 'Messages', 'PopoverMenu', 'TextField', 'PasswordField', 'SearchField', 'SelectField', 'Modal', 'RadioField', 'MultiValuesField', 'TextAreaField', 'RadioGroupField', 'Tabs', 'ProgressBar', 'NavBar', 'OverlayPanel', 'AstroProvider', 'ListView'];
|
1
|
+
var nextGenConvertedComponents = ['DataTable', 'Message', 'Button', 'Badge', 'IconButton', 'CheckboxField', 'Messages', 'PopoverMenu', 'TextField', 'PasswordField', 'SearchField', 'SelectField', 'Modal', 'RadioField', 'MultiValuesField', 'TextAreaField', 'RadioGroupField', 'Tabs', 'ProgressBar', 'NavBar', 'OverlayPanel', 'AstroProvider', 'ListView', 'MultivaluesField', 'Text', 'Link', 'Card'];
|
2
2
|
export default nextGenConvertedComponents;
|
@@ -11,31 +11,58 @@ function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (
|
|
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
12
|
import merge from 'deepmerge';
|
13
13
|
import theme from '../../theme.js';
|
14
|
+
import codeView from './codeView/codeView';
|
14
15
|
import colors from './colors/colors';
|
15
16
|
import buttons from './variants/button';
|
17
|
+
import cards from './variants/cards';
|
18
|
+
import links from './variants/links';
|
16
19
|
import { text as newText } from './variants/text';
|
17
20
|
import variants, { badges } from './variants/variants';
|
18
21
|
import forms from './forms';
|
22
|
+
import spacing from './spacing';
|
19
23
|
import { fontSizes, fontWeights } from './text';
|
20
24
|
import './open_sans.css';
|
25
|
+
var breakpoints = ['0px', '576px', '768px', '992px', '1200px', '1600px'];
|
21
26
|
var nextGenTheme = {
|
22
27
|
name: 'Next Gen',
|
23
28
|
colors: colors,
|
29
|
+
breakpoints: breakpoints,
|
24
30
|
buttons: buttons,
|
25
31
|
forms: forms,
|
26
32
|
fontSizes: fontSizes,
|
27
33
|
fontWeights: fontWeights,
|
28
34
|
lineHeights: {
|
29
|
-
body: '1.5'
|
35
|
+
body: '1.5',
|
36
|
+
md: '1.75'
|
30
37
|
},
|
31
38
|
text: newText,
|
32
39
|
fonts: {
|
33
40
|
standard: '"Open Sans", sans-serif',
|
34
41
|
body: '"Open Sans", sans-serif',
|
35
|
-
heading: '"Open Sans", sans-serif'
|
42
|
+
heading: '"Open Sans", sans-serif',
|
43
|
+
codeView: 'Consolas, Monaco, Andale Mono, Ubuntu Mono, monospace'
|
44
|
+
},
|
45
|
+
sizes: {
|
46
|
+
container: {
|
47
|
+
xs: ['100%', '540px', '720px', '960px', '1140px', '1540px'],
|
48
|
+
sm: ['100%', '540px', '720px', '960px', '1140px', '1540px'],
|
49
|
+
md: ['100%', '100%', '720px', '960px', '1140px', '1540px'],
|
50
|
+
lg: ['100%', '100%', '100%', '960px', '1140px', '1540px'],
|
51
|
+
xl: ['100%', '100%', '100%', '100%', '1140px', '1540px'],
|
52
|
+
xx: ['100%', '100%', '100%', '100%', '100%', '1540px'],
|
53
|
+
fluid: ['100%', '100%', '100%', '100%', '100%', '100%']
|
54
|
+
}
|
36
55
|
},
|
37
56
|
badges: badges,
|
38
|
-
|
57
|
+
space: spacing,
|
58
|
+
links: links,
|
59
|
+
cards: cards,
|
60
|
+
variants: variants,
|
61
|
+
overrides: {
|
62
|
+
codeView: codeView
|
63
|
+
}
|
39
64
|
};
|
40
65
|
var mergedTheme = merge(theme, nextGenTheme);
|
41
|
-
export default _objectSpread({}, mergedTheme)
|
66
|
+
export default _objectSpread(_objectSpread({}, mergedTheme), {}, {
|
67
|
+
breakpoints: breakpoints
|
68
|
+
});
|