@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
@@ -1,17 +1,12 @@
|
|
1
1
|
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
2
2
|
var _fontWeights;
|
3
|
-
var baseSize = 15;
|
4
|
-
var majorMultiplier = 1.15;
|
5
|
-
var getFontSize = function getFontSize(major) {
|
6
|
-
return Math.round(baseSize * Math.pow(majorMultiplier, major));
|
7
|
-
};
|
8
3
|
export var fontSizes = {
|
9
|
-
'xs':
|
10
|
-
'sm':
|
11
|
-
'md': '
|
12
|
-
'lg': '
|
13
|
-
'xl': '
|
14
|
-
'xx': '
|
15
|
-
'xxx': '
|
4
|
+
'xs': '0.75rem',
|
5
|
+
'sm': '0.875rem',
|
6
|
+
'md': '.9375rem',
|
7
|
+
'lg': '1.171875rem',
|
8
|
+
'xl': '1.40625rem',
|
9
|
+
'xx': '1.640625rem',
|
10
|
+
'xxx': '2.109375rem'
|
16
11
|
};
|
17
|
-
export var fontWeights = (_fontWeights = {}, _defineProperty(_fontWeights, -1,
|
12
|
+
export var fontWeights = (_fontWeights = {}, _defineProperty(_fontWeights, -1, 300), _defineProperty(_fontWeights, 0, 400), _defineProperty(_fontWeights, 1, 400), _defineProperty(_fontWeights, 2, 600), _defineProperty(_fontWeights, 3, 600), _fontWeights);
|
@@ -47,14 +47,14 @@ var buttonBase = _objectSpread(_objectSpread({}, transitions), {}, {
|
|
47
47
|
},
|
48
48
|
'&.is-focused': _objectSpread({}, defaultFocus)
|
49
49
|
});
|
50
|
-
var neutral = _objectSpread(_objectSpread({
|
50
|
+
var neutral = _objectSpread(_objectSpread(_objectSpread({
|
51
51
|
color: 'gray-600'
|
52
|
-
}, buttonBase), {}, {
|
52
|
+
}, buttonBase), transitions), {}, {
|
53
53
|
'&.is-pressed': {
|
54
|
-
|
54
|
+
color: 'white'
|
55
55
|
},
|
56
56
|
'&.is-hovered': {
|
57
|
-
|
57
|
+
borderColor: 'primary'
|
58
58
|
}
|
59
59
|
});
|
60
60
|
var primary = _objectSpread(_objectSpread({}, buttonBase), {}, {
|
@@ -152,6 +152,7 @@ var primaryWithIcon = _objectSpread(_objectSpread({}, primary), {}, {
|
|
152
152
|
color: 'white'
|
153
153
|
});
|
154
154
|
var baseIconButton = {
|
155
|
+
cursor: 'pointer',
|
155
156
|
transition: 'color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out',
|
156
157
|
outline: 'none',
|
157
158
|
borderRadius: '28px',
|
@@ -231,7 +232,26 @@ var iconButtons = {
|
|
231
232
|
}
|
232
233
|
}, transitions)
|
233
234
|
},
|
234
|
-
messageCloseButton: _objectSpread({}, baseIconButton)
|
235
|
+
messageCloseButton: _objectSpread({}, baseIconButton),
|
236
|
+
headerNav: _objectSpread(_objectSpread({}, baseIconButton), {}, {
|
237
|
+
borderRadius: '4px',
|
238
|
+
path: {
|
239
|
+
fill: 'gray-800'
|
240
|
+
},
|
241
|
+
px: 'md',
|
242
|
+
py: 'sm',
|
243
|
+
width: '56px',
|
244
|
+
'&.is-hovered': {
|
245
|
+
path: {
|
246
|
+
fill: 'gray-500'
|
247
|
+
}
|
248
|
+
},
|
249
|
+
'&.is-pressed': {
|
250
|
+
path: {
|
251
|
+
fill: 'gray-500'
|
252
|
+
}
|
253
|
+
}
|
254
|
+
})
|
235
255
|
};
|
236
256
|
var buttons = {
|
237
257
|
neutral: neutral,
|
@@ -0,0 +1,20 @@
|
|
1
|
+
var interactive = {
|
2
|
+
boxShadow: 'none',
|
3
|
+
borderRadius: '24px',
|
4
|
+
border: '1px solid',
|
5
|
+
borderColor: 'gray-300',
|
6
|
+
transition: 'border-color .15s ease-in',
|
7
|
+
'&.is-focused': {
|
8
|
+
outline: '2px solid',
|
9
|
+
outlineColor: 'focus',
|
10
|
+
outlineOffset: '0px'
|
11
|
+
},
|
12
|
+
'&.is-hovered': {
|
13
|
+
outline: 'none',
|
14
|
+
borderColor: 'blue',
|
15
|
+
bg: 'default'
|
16
|
+
}
|
17
|
+
};
|
18
|
+
export default {
|
19
|
+
interactive: interactive
|
20
|
+
};
|
@@ -0,0 +1,54 @@
|
|
1
|
+
import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
|
2
|
+
import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
|
3
|
+
import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
|
4
|
+
import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";
|
5
|
+
import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
|
6
|
+
import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
|
7
|
+
import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
|
8
|
+
import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
|
9
|
+
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
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
|
+
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 nextGen = {
|
13
|
+
color: 'gray-800',
|
14
|
+
fontSize: 'md',
|
15
|
+
py: 'sm',
|
16
|
+
px: 'md',
|
17
|
+
textDecoration: 'none',
|
18
|
+
borderRadius: '4px',
|
19
|
+
lineHeight: '22.5px',
|
20
|
+
minHeight: '22.5px',
|
21
|
+
fontFamily: 'standard',
|
22
|
+
'&.is-hovered': {
|
23
|
+
color: '#155cba'
|
24
|
+
},
|
25
|
+
'&.is-pressed': {
|
26
|
+
color: '#155cba'
|
27
|
+
}
|
28
|
+
};
|
29
|
+
var sideNav = _objectSpread(_objectSpread({}, nextGen), {}, {
|
30
|
+
px: '0',
|
31
|
+
display: 'block',
|
32
|
+
position: 'relative',
|
33
|
+
'&:before': {
|
34
|
+
position: 'absolute',
|
35
|
+
display: 'block',
|
36
|
+
borderRadius: '.25rem',
|
37
|
+
content: '""',
|
38
|
+
top: '0',
|
39
|
+
right: '-1rem',
|
40
|
+
bottom: 0,
|
41
|
+
left: '-1rem',
|
42
|
+
transition: 'background-color .15s ease'
|
43
|
+
},
|
44
|
+
'&.is-selected': {
|
45
|
+
color: '#155cba',
|
46
|
+
'&:before': {
|
47
|
+
backgroundColor: 'active_light'
|
48
|
+
}
|
49
|
+
}
|
50
|
+
});
|
51
|
+
export default {
|
52
|
+
nextGen: nextGen,
|
53
|
+
sideNav: sideNav
|
54
|
+
};
|
@@ -45,7 +45,7 @@ var hTags = {
|
|
45
45
|
color: 'text.primary',
|
46
46
|
fontFamily: 'standard',
|
47
47
|
fontWeight: 1,
|
48
|
-
fontSize: '
|
48
|
+
fontSize: 'xs'
|
49
49
|
}
|
50
50
|
};
|
51
51
|
export var text = _objectSpread({
|
@@ -58,12 +58,19 @@ export var text = _objectSpread({
|
|
58
58
|
color: 'text.primary'
|
59
59
|
},
|
60
60
|
placeholder: {
|
61
|
-
color: 'text.primary'
|
61
|
+
color: 'text.primary',
|
62
|
+
fontWeight: 1
|
62
63
|
},
|
63
64
|
paragraph: {
|
64
65
|
lineHeight: 'body'
|
65
66
|
},
|
66
67
|
listViewItemText: {
|
67
68
|
fontWeight: 2
|
69
|
+
},
|
70
|
+
small: {
|
71
|
+
fontSize: 'sm',
|
72
|
+
color: 'gray-500',
|
73
|
+
fontFamily: 'standard',
|
74
|
+
lineHeight: '1.75rem'
|
68
75
|
}
|
69
76
|
}, hTags);
|
@@ -226,11 +226,14 @@ var menuItem = {
|
|
226
226
|
color: 'text.primary',
|
227
227
|
bg: 'lightblue'
|
228
228
|
}
|
229
|
+
},
|
230
|
+
separator: {
|
231
|
+
my: 'sm'
|
229
232
|
}
|
230
233
|
};
|
231
234
|
var separator = {
|
232
235
|
base: {
|
233
|
-
bg: 'gray-
|
236
|
+
bg: 'gray-300'
|
234
237
|
}
|
235
238
|
};
|
236
239
|
var avatarBase = {
|
@@ -273,8 +276,12 @@ var progressBar = {
|
|
273
276
|
})
|
274
277
|
};
|
275
278
|
var listViewItem = {
|
279
|
+
rightOfData: {
|
280
|
+
flexShrink: 4,
|
281
|
+
whiteSpace: 'nowrap'
|
282
|
+
},
|
276
283
|
iconContainer: {
|
277
|
-
|
284
|
+
ml: '0px'
|
278
285
|
},
|
279
286
|
styledListItem: {
|
280
287
|
bg: 'white',
|
@@ -295,8 +302,8 @@ var listViewItem = {
|
|
295
302
|
}
|
296
303
|
},
|
297
304
|
styledContainer: {
|
298
|
-
py: '
|
299
|
-
px: '
|
305
|
+
py: '1rem',
|
306
|
+
px: '1.5rem',
|
300
307
|
bg: 'transparent',
|
301
308
|
'&.is-hovered': {
|
302
309
|
bg: 'transparent',
|
@@ -450,6 +457,29 @@ var dataTable = {
|
|
450
457
|
fontSize: 'md'
|
451
458
|
}
|
452
459
|
};
|
460
|
+
var codeView = {
|
461
|
+
wrapper: {
|
462
|
+
backgroundColor: 'gray-900',
|
463
|
+
borderRadius: '4px',
|
464
|
+
'> button >svg': {
|
465
|
+
color: 'gray-300',
|
466
|
+
path: {
|
467
|
+
fill: 'gray-300'
|
468
|
+
}
|
469
|
+
},
|
470
|
+
'> pre': {
|
471
|
+
p: 'md'
|
472
|
+
}
|
473
|
+
}
|
474
|
+
};
|
475
|
+
var tabs = {
|
476
|
+
gap: '0px'
|
477
|
+
};
|
478
|
+
var menu = {
|
479
|
+
p: 'sm',
|
480
|
+
border: '1px solid',
|
481
|
+
borderColor: 'gray-300'
|
482
|
+
};
|
453
483
|
export default {
|
454
484
|
navBar: navBar,
|
455
485
|
fieldHelperText: fieldHelperText,
|
@@ -464,5 +494,8 @@ export default {
|
|
464
494
|
listViewItem: listViewItem,
|
465
495
|
progressBar: progressBar,
|
466
496
|
listView: listView,
|
467
|
-
dataTable: dataTable
|
497
|
+
dataTable: dataTable,
|
498
|
+
codeView: codeView,
|
499
|
+
tabs: tabs,
|
500
|
+
menu: menu
|
468
501
|
};
|