@pingux/astro 2.84.0-alpha.1 → 2.84.0-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/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/LinkSelectField/LinkSelectField.stories.js +3 -6
- package/lib/cjs/components/Menu/Menu.js +15 -3
- package/lib/cjs/components/Menu/Menu.test.js +23 -0
- 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/MenuSection/MenuSection.d.ts +9 -0
- package/lib/cjs/components/MenuSection/MenuSection.js +76 -0
- package/lib/cjs/components/MenuSection/MenuSection.styles.d.ts +21 -0
- package/lib/cjs/components/MenuSection/MenuSection.styles.js +35 -0
- package/lib/cjs/components/MenuSection/MenuSection.test.d.ts +1 -0
- package/lib/cjs/components/MenuSection/MenuSection.test.js +100 -0
- package/lib/cjs/components/MenuSection/index.d.ts +1 -0
- package/lib/cjs/components/MenuSection/index.js +14 -0
- package/lib/cjs/components/PopoverMenu/PopoverMenu.stories.d.ts +2 -0
- package/lib/cjs/components/PopoverMenu/PopoverMenu.stories.js +73 -5
- package/lib/cjs/components/SelectField/SelectField.stories.js +3 -6
- 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/styles/variants/variants.js +2 -0
- package/lib/cjs/types/codeView.d.ts +1 -0
- package/lib/cjs/types/index.d.ts +1 -0
- package/lib/cjs/types/index.js +32 -21
- package/lib/cjs/types/link.d.ts +1 -0
- package/lib/cjs/types/menuSection.d.ts +24 -0
- package/lib/cjs/types/menuSection.js +6 -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/LinkSelectField/LinkSelectField.stories.js +4 -7
- package/lib/components/Menu/Menu.js +15 -3
- package/lib/components/Menu/Menu.test.js +24 -1
- package/lib/components/MenuItem/MenuItem.styles.js +2 -1
- package/lib/components/MenuSection/MenuSection.js +64 -0
- package/lib/components/MenuSection/MenuSection.styles.js +27 -0
- package/lib/components/MenuSection/MenuSection.test.js +97 -0
- package/lib/components/MenuSection/index.js +1 -0
- package/lib/components/PopoverMenu/PopoverMenu.stories.js +70 -4
- package/lib/components/SelectField/SelectField.stories.js +4 -7
- 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/lib/styles/variants/variants.js +2 -0
- package/lib/types/index.js +1 -0
- package/lib/types/menuSection.js +1 -0
- package/package.json +1 -1
@@ -18,36 +18,63 @@ exports["default"] = void 0;
|
|
18
18
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
|
19
19
|
var _deepmerge = _interopRequireDefault(require("deepmerge"));
|
20
20
|
var _theme = _interopRequireDefault(require("../../theme.js"));
|
21
|
+
var _codeView = _interopRequireDefault(require("./codeView/codeView"));
|
21
22
|
var _colors = _interopRequireDefault(require("./colors/colors"));
|
22
23
|
var _button = _interopRequireDefault(require("./variants/button"));
|
24
|
+
var _cards = _interopRequireDefault(require("./variants/cards"));
|
25
|
+
var _links = _interopRequireDefault(require("./variants/links"));
|
23
26
|
var _text = require("./variants/text");
|
24
27
|
var _variants = _interopRequireWildcard(require("./variants/variants"));
|
25
28
|
var _forms = _interopRequireDefault(require("./forms"));
|
29
|
+
var _spacing = _interopRequireDefault(require("./spacing"));
|
26
30
|
var _text2 = require("./text");
|
27
31
|
require("./open_sans.css");
|
28
32
|
function _getRequireWildcardCache(nodeInterop) { if (typeof _WeakMap !== "function") return null; var cacheBabelInterop = new _WeakMap(); var cacheNodeInterop = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
29
33
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { _Object$defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
30
34
|
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; }
|
31
35
|
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; }
|
36
|
+
var breakpoints = ['0px', '576px', '768px', '992px', '1200px', '1600px'];
|
32
37
|
var nextGenTheme = {
|
33
38
|
name: 'Next Gen',
|
34
39
|
colors: _colors["default"],
|
40
|
+
breakpoints: breakpoints,
|
35
41
|
buttons: _button["default"],
|
36
42
|
forms: _forms["default"],
|
37
43
|
fontSizes: _text2.fontSizes,
|
38
44
|
fontWeights: _text2.fontWeights,
|
39
45
|
lineHeights: {
|
40
|
-
body: '1.5'
|
46
|
+
body: '1.5',
|
47
|
+
md: '1.75'
|
41
48
|
},
|
42
49
|
text: _text.text,
|
43
50
|
fonts: {
|
44
51
|
standard: '"Open Sans", sans-serif',
|
45
52
|
body: '"Open Sans", sans-serif',
|
46
|
-
heading: '"Open Sans", sans-serif'
|
53
|
+
heading: '"Open Sans", sans-serif',
|
54
|
+
codeView: 'Consolas, Monaco, Andale Mono, Ubuntu Mono, monospace'
|
55
|
+
},
|
56
|
+
sizes: {
|
57
|
+
container: {
|
58
|
+
xs: ['100%', '540px', '720px', '960px', '1140px', '1540px'],
|
59
|
+
sm: ['100%', '540px', '720px', '960px', '1140px', '1540px'],
|
60
|
+
md: ['100%', '100%', '720px', '960px', '1140px', '1540px'],
|
61
|
+
lg: ['100%', '100%', '100%', '960px', '1140px', '1540px'],
|
62
|
+
xl: ['100%', '100%', '100%', '100%', '1140px', '1540px'],
|
63
|
+
xx: ['100%', '100%', '100%', '100%', '100%', '1540px'],
|
64
|
+
fluid: ['100%', '100%', '100%', '100%', '100%', '100%']
|
65
|
+
}
|
47
66
|
},
|
48
67
|
badges: _variants.badges,
|
49
|
-
|
68
|
+
space: _spacing["default"],
|
69
|
+
links: _links["default"],
|
70
|
+
cards: _cards["default"],
|
71
|
+
variants: _variants["default"],
|
72
|
+
overrides: {
|
73
|
+
codeView: _codeView["default"]
|
74
|
+
}
|
50
75
|
};
|
51
76
|
var mergedTheme = (0, _deepmerge["default"])(_theme["default"], nextGenTheme);
|
52
|
-
var _default = _objectSpread({}, mergedTheme)
|
77
|
+
var _default = _objectSpread(_objectSpread({}, mergedTheme), {}, {
|
78
|
+
breakpoints: breakpoints
|
79
|
+
});
|
53
80
|
exports["default"] = _default;
|
@@ -0,0 +1,17 @@
|
|
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 scale = {
|
9
|
+
xs: '.25rem',
|
10
|
+
sm: '.5rem',
|
11
|
+
md: '1rem',
|
12
|
+
lg: '1.5rem',
|
13
|
+
xl: '3rem',
|
14
|
+
xx: '4rem'
|
15
|
+
};
|
16
|
+
var _default = scale;
|
17
|
+
exports["default"] = _default;
|
@@ -8,20 +8,15 @@ _Object$defineProperty(exports, "__esModule", {
|
|
8
8
|
exports.fontWeights = exports.fontSizes = void 0;
|
9
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
|
10
10
|
var _fontWeights;
|
11
|
-
var baseSize = 15;
|
12
|
-
var majorMultiplier = 1.15;
|
13
|
-
var getFontSize = function getFontSize(major) {
|
14
|
-
return Math.round(baseSize * Math.pow(majorMultiplier, major));
|
15
|
-
};
|
16
11
|
var fontSizes = {
|
17
|
-
'xs':
|
18
|
-
'sm':
|
19
|
-
'md': '
|
20
|
-
'lg': '
|
21
|
-
'xl': '
|
22
|
-
'xx': '
|
23
|
-
'xxx': '
|
12
|
+
'xs': '0.75rem',
|
13
|
+
'sm': '0.875rem',
|
14
|
+
'md': '.9375rem',
|
15
|
+
'lg': '1.171875rem',
|
16
|
+
'xl': '1.40625rem',
|
17
|
+
'xx': '1.640625rem',
|
18
|
+
'xxx': '2.109375rem'
|
24
19
|
};
|
25
20
|
exports.fontSizes = fontSizes;
|
26
|
-
var fontWeights = (_fontWeights = {}, (0, _defineProperty2["default"])(_fontWeights, -1,
|
21
|
+
var fontWeights = (_fontWeights = {}, (0, _defineProperty2["default"])(_fontWeights, -1, 300), (0, _defineProperty2["default"])(_fontWeights, 0, 400), (0, _defineProperty2["default"])(_fontWeights, 1, 400), (0, _defineProperty2["default"])(_fontWeights, 2, 600), (0, _defineProperty2["default"])(_fontWeights, 3, 600), _fontWeights);
|
27
22
|
exports.fontWeights = fontWeights;
|
@@ -1,11 +1,12 @@
|
|
1
1
|
declare const buttons: {
|
2
2
|
neutral: {
|
3
3
|
'&.is-pressed': {
|
4
|
-
|
4
|
+
color: string;
|
5
5
|
};
|
6
6
|
'&.is-hovered': {
|
7
|
-
|
7
|
+
borderColor: string;
|
8
8
|
};
|
9
|
+
transition: string;
|
9
10
|
alignItems: string;
|
10
11
|
justifyContent: string;
|
11
12
|
minWidth: string;
|
@@ -34,7 +35,6 @@ declare const buttons: {
|
|
34
35
|
outlineColor: string;
|
35
36
|
outlineOffset: string;
|
36
37
|
};
|
37
|
-
transition: string;
|
38
38
|
color: string;
|
39
39
|
};
|
40
40
|
primary: {
|
@@ -417,6 +417,7 @@ declare const buttons: {
|
|
417
417
|
};
|
418
418
|
iconButtons: {
|
419
419
|
base: {
|
420
|
+
cursor: string;
|
420
421
|
transition: string;
|
421
422
|
outline: string;
|
422
423
|
borderRadius: string;
|
@@ -500,6 +501,7 @@ declare const buttons: {
|
|
500
501
|
position: string;
|
501
502
|
top: number;
|
502
503
|
right: number;
|
504
|
+
cursor: string;
|
503
505
|
transition: string;
|
504
506
|
outline: string;
|
505
507
|
borderRadius: string;
|
@@ -563,6 +565,7 @@ declare const buttons: {
|
|
563
565
|
};
|
564
566
|
};
|
565
567
|
messageCloseButton: {
|
568
|
+
cursor: string;
|
566
569
|
transition: string;
|
567
570
|
outline: string;
|
568
571
|
borderRadius: string;
|
@@ -590,11 +593,41 @@ declare const buttons: {
|
|
590
593
|
};
|
591
594
|
};
|
592
595
|
};
|
596
|
+
headerNav: {
|
597
|
+
borderRadius: string;
|
598
|
+
path: {
|
599
|
+
fill: string;
|
600
|
+
};
|
601
|
+
px: string;
|
602
|
+
py: string;
|
603
|
+
width: string;
|
604
|
+
'&.is-hovered': {
|
605
|
+
path: {
|
606
|
+
fill: string;
|
607
|
+
};
|
608
|
+
};
|
609
|
+
'&.is-pressed': {
|
610
|
+
path: {
|
611
|
+
fill: string;
|
612
|
+
};
|
613
|
+
};
|
614
|
+
cursor: string;
|
615
|
+
transition: string;
|
616
|
+
outline: string;
|
617
|
+
border: string;
|
618
|
+
borderColor: string;
|
619
|
+
'&.is-focused': {
|
620
|
+
outline: string;
|
621
|
+
outlineColor: string;
|
622
|
+
outlineOffset: string;
|
623
|
+
};
|
624
|
+
};
|
593
625
|
};
|
594
626
|
modalCloseButton: {
|
595
627
|
position: string;
|
596
628
|
top: number;
|
597
629
|
right: number;
|
630
|
+
cursor: string;
|
598
631
|
transition: string;
|
599
632
|
outline: string;
|
600
633
|
borderRadius: string;
|
@@ -54,14 +54,14 @@ var buttonBase = _objectSpread(_objectSpread({}, transitions), {}, {
|
|
54
54
|
},
|
55
55
|
'&.is-focused': _objectSpread({}, defaultFocus)
|
56
56
|
});
|
57
|
-
var neutral = _objectSpread(_objectSpread({
|
57
|
+
var neutral = _objectSpread(_objectSpread(_objectSpread({
|
58
58
|
color: 'gray-600'
|
59
|
-
}, buttonBase), {}, {
|
59
|
+
}, buttonBase), transitions), {}, {
|
60
60
|
'&.is-pressed': {
|
61
|
-
|
61
|
+
color: 'white'
|
62
62
|
},
|
63
63
|
'&.is-hovered': {
|
64
|
-
|
64
|
+
borderColor: 'primary'
|
65
65
|
}
|
66
66
|
});
|
67
67
|
var primary = _objectSpread(_objectSpread({}, buttonBase), {}, {
|
@@ -159,6 +159,7 @@ var primaryWithIcon = _objectSpread(_objectSpread({}, primary), {}, {
|
|
159
159
|
color: 'white'
|
160
160
|
});
|
161
161
|
var baseIconButton = {
|
162
|
+
cursor: 'pointer',
|
162
163
|
transition: 'color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out',
|
163
164
|
outline: 'none',
|
164
165
|
borderRadius: '28px',
|
@@ -238,7 +239,26 @@ var iconButtons = {
|
|
238
239
|
}
|
239
240
|
}, transitions)
|
240
241
|
},
|
241
|
-
messageCloseButton: _objectSpread({}, baseIconButton)
|
242
|
+
messageCloseButton: _objectSpread({}, baseIconButton),
|
243
|
+
headerNav: _objectSpread(_objectSpread({}, baseIconButton), {}, {
|
244
|
+
borderRadius: '4px',
|
245
|
+
path: {
|
246
|
+
fill: 'gray-800'
|
247
|
+
},
|
248
|
+
px: 'md',
|
249
|
+
py: 'sm',
|
250
|
+
width: '56px',
|
251
|
+
'&.is-hovered': {
|
252
|
+
path: {
|
253
|
+
fill: 'gray-500'
|
254
|
+
}
|
255
|
+
},
|
256
|
+
'&.is-pressed': {
|
257
|
+
path: {
|
258
|
+
fill: 'gray-500'
|
259
|
+
}
|
260
|
+
}
|
261
|
+
})
|
242
262
|
};
|
243
263
|
var buttons = {
|
244
264
|
neutral: neutral,
|
@@ -0,0 +1,20 @@
|
|
1
|
+
declare const _default: {
|
2
|
+
interactive: {
|
3
|
+
boxShadow: string;
|
4
|
+
borderRadius: string;
|
5
|
+
border: string;
|
6
|
+
borderColor: string;
|
7
|
+
transition: string;
|
8
|
+
'&.is-focused': {
|
9
|
+
outline: string;
|
10
|
+
outlineColor: string;
|
11
|
+
outlineOffset: string;
|
12
|
+
};
|
13
|
+
'&.is-hovered': {
|
14
|
+
outline: string;
|
15
|
+
borderColor: string;
|
16
|
+
bg: string;
|
17
|
+
};
|
18
|
+
};
|
19
|
+
};
|
20
|
+
export default _default;
|
@@ -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;
|
@@ -41,6 +41,7 @@ var _ListViewItem = _interopRequireDefault(require("../../components/ListViewIte
|
|
41
41
|
var _Loader = _interopRequireDefault(require("../../components/Loader/Loader.styles"));
|
42
42
|
var _Menu = _interopRequireDefault(require("../../components/Menu/Menu.styles"));
|
43
43
|
var _MenuItem = _interopRequireDefault(require("../../components/MenuItem/MenuItem.styles"));
|
44
|
+
var _MenuSection = _interopRequireDefault(require("../../components/MenuSection/MenuSection.styles"));
|
44
45
|
var _Message = _interopRequireDefault(require("../../components/Messages/Message.styles"));
|
45
46
|
var _Modal = _interopRequireDefault(require("../../components/Modal/Modal.styles"));
|
46
47
|
var _NavBar = _interopRequireDefault(require("../../components/NavBar/NavBar.styles"));
|
@@ -90,6 +91,7 @@ var _default = _objectSpread({
|
|
90
91
|
loader: _Loader["default"],
|
91
92
|
menu: _Menu["default"],
|
92
93
|
menuItem: _MenuItem["default"],
|
94
|
+
menuSection: _MenuSection["default"],
|
93
95
|
message: _Message["default"],
|
94
96
|
modal: _Modal["default"],
|
95
97
|
navBar: _NavBar["default"],
|
package/lib/cjs/types/index.d.ts
CHANGED