@pingux/astro 2.87.0-alpha.1 → 2.87.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/ListBox/ListBox.js +4 -1
- package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +9 -0
- package/lib/cjs/styles/themes/next-gen/tokens/colorTokens.js +24 -24
- package/lib/cjs/styles/themes/next-gen/variants/cards.js +1 -1
- package/lib/cjs/styles/themes/next-gen/variants/input.js +3 -1
- package/lib/cjs/styles/themes/next-gen/variants/links.d.ts +2 -0
- package/lib/cjs/styles/themes/next-gen/variants/links.js +2 -0
- package/lib/cjs/styles/themes/next-gen/variants/text.js +1 -1
- package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +7 -0
- package/lib/cjs/styles/themes/next-gen/variants/variants.js +7 -0
- package/lib/components/ListBox/ListBox.js +4 -1
- package/lib/styles/themes/next-gen/tokens/colorTokens.js +24 -24
- package/lib/styles/themes/next-gen/variants/cards.js +1 -1
- package/lib/styles/themes/next-gen/variants/input.js +3 -1
- package/lib/styles/themes/next-gen/variants/links.js +2 -0
- package/lib/styles/themes/next-gen/variants/text.js +1 -1
- package/lib/styles/themes/next-gen/variants/variants.js +7 -0
- package/package.json +1 -1
@@ -28,6 +28,7 @@ var _listbox = require("@react-aria/listbox");
|
|
28
28
|
var _listboxLayout = require("listbox-layout");
|
29
29
|
var _listboxVirtualizer = require("listbox-virtualizer");
|
30
30
|
var _hooks = require("../../hooks");
|
31
|
+
var _Box = _interopRequireDefault(require("../Box"));
|
31
32
|
var _Loader = _interopRequireDefault(require("../Loader"));
|
32
33
|
var _index = require("./index");
|
33
34
|
var _ListBoxContext = require("./ListBoxContext");
|
@@ -154,6 +155,8 @@ var ListBox = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
154
155
|
};
|
155
156
|
return (0, _react2.jsx)(_ListBoxContext.ListBoxContext.Provider, {
|
156
157
|
value: state
|
158
|
+
}, (0, _react2.jsx)(_Box["default"], {
|
159
|
+
variant: "listBox.container"
|
157
160
|
}, (0, _react2.jsx)(_listboxVirtualizer.Virtualizer, (0, _extends2["default"])({}, (0, _reactAria.mergeProps)(listBoxProps, others), {
|
158
161
|
autoFocus: hasAutoFocus,
|
159
162
|
style: {
|
@@ -188,7 +191,7 @@ var ListBox = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
188
191
|
});
|
189
192
|
}
|
190
193
|
return null;
|
191
|
-
}));
|
194
|
+
})));
|
192
195
|
});
|
193
196
|
var _default = ListBox;
|
194
197
|
exports["default"] = _default;
|
@@ -1278,6 +1278,7 @@ declare const _default: {
|
|
1278
1278
|
lineHeight: string;
|
1279
1279
|
minHeight: string;
|
1280
1280
|
fontFamily: string;
|
1281
|
+
cursor: string;
|
1281
1282
|
'&.is-hovered': {
|
1282
1283
|
color: string;
|
1283
1284
|
};
|
@@ -1289,6 +1290,7 @@ declare const _default: {
|
|
1289
1290
|
px: string;
|
1290
1291
|
display: string;
|
1291
1292
|
position: string;
|
1293
|
+
cursor: string;
|
1292
1294
|
'&:before': {
|
1293
1295
|
position: string;
|
1294
1296
|
display: string;
|
@@ -1545,7 +1547,14 @@ declare const _default: {
|
|
1545
1547
|
ml: string;
|
1546
1548
|
};
|
1547
1549
|
listBox: {
|
1550
|
+
container: {
|
1551
|
+
px: string;
|
1552
|
+
py: string;
|
1553
|
+
};
|
1548
1554
|
option: {
|
1555
|
+
py: string;
|
1556
|
+
pl: string;
|
1557
|
+
pr: string;
|
1549
1558
|
'&.is-focused': {
|
1550
1559
|
color: string;
|
1551
1560
|
bg: string;
|
@@ -47,16 +47,16 @@ var nextGenColors = {
|
|
47
47
|
'pink-800': '#561435',
|
48
48
|
'pink-900': '#2b0a1a',
|
49
49
|
'pink': '#d63384',
|
50
|
-
'red-100': '#
|
51
|
-
'red-200': '#
|
52
|
-
'red-300': '#
|
53
|
-
'red-400': '#
|
54
|
-
'red-500': '#
|
55
|
-
'red-600': '#
|
56
|
-
'red-700': '#
|
57
|
-
'red-800': '#
|
58
|
-
'red-900': '#
|
59
|
-
'red': '#
|
50
|
+
'red-100': '#f8d8d5',
|
51
|
+
'red-200': '#f0b0aa',
|
52
|
+
'red-300': '#e98980',
|
53
|
+
'red-400': '#e16155',
|
54
|
+
'red-500': '#da3a2b',
|
55
|
+
'red-600': '#ae2e22',
|
56
|
+
'red-700': '#83231a',
|
57
|
+
'red-800': '#571711',
|
58
|
+
'red-900': '#2c0c09',
|
59
|
+
'red': '#da3a2b',
|
60
60
|
'orange-100': '#ffe5d0',
|
61
61
|
'orange-200': '#fecba1',
|
62
62
|
'orange-300': '#feb272',
|
@@ -77,16 +77,16 @@ var nextGenColors = {
|
|
77
77
|
'yellow-800': '#664a1c',
|
78
78
|
'yellow-900': '#33250e',
|
79
79
|
'yellow': '#ffb946',
|
80
|
-
'green-100': '#
|
81
|
-
'green-200': '#
|
82
|
-
'green-300': '#
|
83
|
-
'green-400': '#
|
84
|
-
'green-500': '#
|
85
|
-
'green-600': '#
|
86
|
-
'green-700': '#
|
87
|
-
'green-800': '#
|
88
|
-
'green-900': '#
|
89
|
-
'green': '#
|
80
|
+
'green-100': '#d3eddf',
|
81
|
+
'green-200': '#a7dcbf',
|
82
|
+
'green-300': '#7aca9f',
|
83
|
+
'green-400': '#4eb97f',
|
84
|
+
'green-500': '#22a75f',
|
85
|
+
'green-600': '#1b864c',
|
86
|
+
'green-700': '#146439',
|
87
|
+
'green-800': '#0e4326',
|
88
|
+
'green-900': '#072113',
|
89
|
+
'green': '#22a75f',
|
90
90
|
'teal-100': '#d1ecf1',
|
91
91
|
'teal-200': '#a2dae3',
|
92
92
|
'teal-300': '#74c7d4',
|
@@ -132,10 +132,10 @@ var nextGenColors = {
|
|
132
132
|
},
|
133
133
|
'active': '#1a73e8',
|
134
134
|
'active_light': '#eaf2fd',
|
135
|
-
'success': '#
|
136
|
-
'success_light': '#
|
137
|
-
'critical': '#
|
138
|
-
'critical_light': '#
|
135
|
+
'success': '#22a75f',
|
136
|
+
'success_light': '#d3eddf',
|
137
|
+
'critical': '#da3a2b',
|
138
|
+
'critical_light': '#f8d8d5',
|
139
139
|
'warning': '#984c0c',
|
140
140
|
'warning_light': '#ffe5d0'
|
141
141
|
};
|
@@ -14,6 +14,7 @@ _Object$defineProperty(exports, "__esModule", {
|
|
14
14
|
});
|
15
15
|
exports.input = exports.fieldControlWrapper = void 0;
|
16
16
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
|
17
|
+
var _text = require("./text");
|
17
18
|
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
19
|
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
20
|
var defaultFocus = {
|
@@ -33,7 +34,8 @@ var input = {
|
|
33
34
|
'&.is-focused': _objectSpread({}, defaultFocus),
|
34
35
|
borderRadius: '4px',
|
35
36
|
fontWeight: 1,
|
36
|
-
height: '50px'
|
37
|
+
height: '50px',
|
38
|
+
'&::placeholder': _text.text.placeholder
|
37
39
|
};
|
38
40
|
exports.input = input;
|
39
41
|
input.search = _objectSpread(_objectSpread({}, input), {}, {
|
@@ -9,6 +9,7 @@ declare const _default: {
|
|
9
9
|
lineHeight: string;
|
10
10
|
minHeight: string;
|
11
11
|
fontFamily: string;
|
12
|
+
cursor: string;
|
12
13
|
'&.is-hovered': {
|
13
14
|
color: string;
|
14
15
|
};
|
@@ -20,6 +21,7 @@ declare const _default: {
|
|
20
21
|
px: string;
|
21
22
|
display: string;
|
22
23
|
position: string;
|
24
|
+
cursor: string;
|
23
25
|
'&:before': {
|
24
26
|
position: string;
|
25
27
|
display: string;
|
@@ -26,6 +26,7 @@ var nextGen = {
|
|
26
26
|
lineHeight: '1.5',
|
27
27
|
minHeight: '22.5px',
|
28
28
|
fontFamily: 'standard',
|
29
|
+
cursor: 'pointer',
|
29
30
|
'&.is-hovered': {
|
30
31
|
color: 'blue-600'
|
31
32
|
},
|
@@ -37,6 +38,7 @@ var sideNav = _objectSpread(_objectSpread({}, nextGen), {}, {
|
|
37
38
|
px: '0',
|
38
39
|
display: 'block',
|
39
40
|
position: 'relative',
|
41
|
+
cursor: 'pointer',
|
40
42
|
'&:before': {
|
41
43
|
position: 'absolute',
|
42
44
|
display: 'block',
|
@@ -410,7 +410,14 @@ declare const _default: {
|
|
410
410
|
ml: string;
|
411
411
|
};
|
412
412
|
listBox: {
|
413
|
+
container: {
|
414
|
+
px: string;
|
415
|
+
py: string;
|
416
|
+
};
|
413
417
|
option: {
|
418
|
+
py: string;
|
419
|
+
pl: string;
|
420
|
+
pr: string;
|
414
421
|
'&.is-focused': {
|
415
422
|
color: string;
|
416
423
|
bg: string;
|
@@ -205,7 +205,14 @@ var menuTab = {
|
|
205
205
|
ml: '0px !important'
|
206
206
|
};
|
207
207
|
var listBox = {
|
208
|
+
container: {
|
209
|
+
px: 'sm',
|
210
|
+
py: 'xs'
|
211
|
+
},
|
208
212
|
option: {
|
213
|
+
py: '.75rem',
|
214
|
+
pl: '.75rem',
|
215
|
+
pr: '1rem',
|
209
216
|
'&.is-focused': {
|
210
217
|
color: 'text.primary',
|
211
218
|
bg: 'gray-100'
|
@@ -20,6 +20,7 @@ import { useListBox } from '@react-aria/listbox';
|
|
20
20
|
import { ListLayout } from 'listbox-layout';
|
21
21
|
import { Virtualizer, VirtualizerItem } from 'listbox-virtualizer';
|
22
22
|
import { useLocalOrForwardRef } from '../../hooks';
|
23
|
+
import Box from '../Box';
|
23
24
|
import Loader from '../Loader';
|
24
25
|
import { Option } from './index';
|
25
26
|
import { ListBoxContext } from './ListBoxContext';
|
@@ -140,6 +141,8 @@ var ListBox = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
140
141
|
};
|
141
142
|
return ___EmotionJSX(ListBoxContext.Provider, {
|
142
143
|
value: state
|
144
|
+
}, ___EmotionJSX(Box, {
|
145
|
+
variant: "listBox.container"
|
143
146
|
}, ___EmotionJSX(Virtualizer, _extends({}, mergeProps(listBoxProps, others), {
|
144
147
|
autoFocus: hasAutoFocus,
|
145
148
|
style: {
|
@@ -174,6 +177,6 @@ var ListBox = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
174
177
|
});
|
175
178
|
}
|
176
179
|
return null;
|
177
|
-
}));
|
180
|
+
})));
|
178
181
|
});
|
179
182
|
export default ListBox;
|
@@ -40,16 +40,16 @@ export var nextGenColors = {
|
|
40
40
|
'pink-800': '#561435',
|
41
41
|
'pink-900': '#2b0a1a',
|
42
42
|
'pink': '#d63384',
|
43
|
-
'red-100': '#
|
44
|
-
'red-200': '#
|
45
|
-
'red-300': '#
|
46
|
-
'red-400': '#
|
47
|
-
'red-500': '#
|
48
|
-
'red-600': '#
|
49
|
-
'red-700': '#
|
50
|
-
'red-800': '#
|
51
|
-
'red-900': '#
|
52
|
-
'red': '#
|
43
|
+
'red-100': '#f8d8d5',
|
44
|
+
'red-200': '#f0b0aa',
|
45
|
+
'red-300': '#e98980',
|
46
|
+
'red-400': '#e16155',
|
47
|
+
'red-500': '#da3a2b',
|
48
|
+
'red-600': '#ae2e22',
|
49
|
+
'red-700': '#83231a',
|
50
|
+
'red-800': '#571711',
|
51
|
+
'red-900': '#2c0c09',
|
52
|
+
'red': '#da3a2b',
|
53
53
|
'orange-100': '#ffe5d0',
|
54
54
|
'orange-200': '#fecba1',
|
55
55
|
'orange-300': '#feb272',
|
@@ -70,16 +70,16 @@ export var nextGenColors = {
|
|
70
70
|
'yellow-800': '#664a1c',
|
71
71
|
'yellow-900': '#33250e',
|
72
72
|
'yellow': '#ffb946',
|
73
|
-
'green-100': '#
|
74
|
-
'green-200': '#
|
75
|
-
'green-300': '#
|
76
|
-
'green-400': '#
|
77
|
-
'green-500': '#
|
78
|
-
'green-600': '#
|
79
|
-
'green-700': '#
|
80
|
-
'green-800': '#
|
81
|
-
'green-900': '#
|
82
|
-
'green': '#
|
73
|
+
'green-100': '#d3eddf',
|
74
|
+
'green-200': '#a7dcbf',
|
75
|
+
'green-300': '#7aca9f',
|
76
|
+
'green-400': '#4eb97f',
|
77
|
+
'green-500': '#22a75f',
|
78
|
+
'green-600': '#1b864c',
|
79
|
+
'green-700': '#146439',
|
80
|
+
'green-800': '#0e4326',
|
81
|
+
'green-900': '#072113',
|
82
|
+
'green': '#22a75f',
|
83
83
|
'teal-100': '#d1ecf1',
|
84
84
|
'teal-200': '#a2dae3',
|
85
85
|
'teal-300': '#74c7d4',
|
@@ -125,10 +125,10 @@ export var nextGenColors = {
|
|
125
125
|
},
|
126
126
|
'active': '#1a73e8',
|
127
127
|
'active_light': '#eaf2fd',
|
128
|
-
'success': '#
|
129
|
-
'success_light': '#
|
130
|
-
'critical': '#
|
131
|
-
'critical_light': '#
|
128
|
+
'success': '#22a75f',
|
129
|
+
'success_light': '#d3eddf',
|
130
|
+
'critical': '#da3a2b',
|
131
|
+
'critical_light': '#f8d8d5',
|
132
132
|
'warning': '#984c0c',
|
133
133
|
'warning_light': '#ffe5d0'
|
134
134
|
};
|
@@ -9,6 +9,7 @@ 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
|
+
import { text } from './text';
|
12
13
|
var defaultFocus = {
|
13
14
|
boxShadow: '0 1px 1px rgba(0,0,0,.075), 0 0 0 .0625rem blue'
|
14
15
|
};
|
@@ -26,7 +27,8 @@ export var input = {
|
|
26
27
|
'&.is-focused': _objectSpread({}, defaultFocus),
|
27
28
|
borderRadius: '4px',
|
28
29
|
fontWeight: 1,
|
29
|
-
height: '50px'
|
30
|
+
height: '50px',
|
31
|
+
'&::placeholder': text.placeholder
|
30
32
|
};
|
31
33
|
input.search = _objectSpread(_objectSpread({}, input), {}, {
|
32
34
|
'&.is-disabled': _objectSpread(_objectSpread({}, readOnlyandDisabledStyles), {}, {
|
@@ -19,6 +19,7 @@ var nextGen = {
|
|
19
19
|
lineHeight: '1.5',
|
20
20
|
minHeight: '22.5px',
|
21
21
|
fontFamily: 'standard',
|
22
|
+
cursor: 'pointer',
|
22
23
|
'&.is-hovered': {
|
23
24
|
color: 'blue-600'
|
24
25
|
},
|
@@ -30,6 +31,7 @@ var sideNav = _objectSpread(_objectSpread({}, nextGen), {}, {
|
|
30
31
|
px: '0',
|
31
32
|
display: 'block',
|
32
33
|
position: 'relative',
|
34
|
+
cursor: 'pointer',
|
33
35
|
'&:before': {
|
34
36
|
position: 'absolute',
|
35
37
|
display: 'block',
|
@@ -196,7 +196,14 @@ var menuTab = {
|
|
196
196
|
ml: '0px !important'
|
197
197
|
};
|
198
198
|
var listBox = {
|
199
|
+
container: {
|
200
|
+
px: 'sm',
|
201
|
+
py: 'xs'
|
202
|
+
},
|
199
203
|
option: {
|
204
|
+
py: '.75rem',
|
205
|
+
pl: '.75rem',
|
206
|
+
pr: '1rem',
|
200
207
|
'&.is-focused': {
|
201
208
|
color: 'text.primary',
|
202
209
|
bg: 'gray-100'
|