@pingux/astro 2.90.0 → 2.91.0-alpha.1
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/Option.js +4 -2
- package/lib/cjs/components/ListView/ListViewItem.js +4 -2
- package/lib/cjs/components/Modal/Modal.js +2 -1
- package/lib/cjs/components/Modal/Modal.stories.js +8 -0
- package/lib/cjs/components/Modal/Modal.styles.d.ts +0 -1
- package/lib/cjs/components/Modal/Modal.styles.js +0 -1
- package/lib/cjs/components/MultivaluesField/MultivaluesField.js +4 -13
- package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +1 -1
- package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +35 -0
- package/lib/cjs/styles/themes/next-gen/variants/input.js +1 -1
- package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +35 -0
- package/lib/cjs/styles/themes/next-gen/variants/variants.js +46 -4
- package/lib/components/ListBox/Option.js +4 -2
- package/lib/components/ListView/ListViewItem.js +4 -2
- package/lib/components/Modal/Modal.js +2 -1
- package/lib/components/Modal/Modal.stories.js +8 -0
- package/lib/components/Modal/Modal.styles.js +0 -1
- package/lib/components/MultivaluesField/MultivaluesField.js +5 -14
- package/lib/styles/themes/next-gen/convertedComponentList.js +1 -1
- package/lib/styles/themes/next-gen/variants/input.js +1 -1
- package/lib/styles/themes/next-gen/variants/variants.js +46 -4
- package/package.json +1 -1
@@ -91,7 +91,8 @@ var Option = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
91
91
|
isDisabled = _useOption.isDisabled,
|
92
92
|
isSelected = _useOption.isSelected,
|
93
93
|
isFocused = _useOption.isFocused,
|
94
|
-
isFocusVisible = _useOption.isFocusVisible
|
94
|
+
isFocusVisible = _useOption.isFocusVisible,
|
95
|
+
isPressed = _useOption.isPressed;
|
95
96
|
var focused = isFocused || (state === null || state === void 0 || (_state$selectionManag = state.selectionManager) === null || _state$selectionManag === void 0 ? void 0 : _state$selectionManag.focusedKey) === item.key;
|
96
97
|
var setFocusOnHover = function setFocusOnHover() {
|
97
98
|
if (!focused && !isCondensed) {
|
@@ -103,7 +104,8 @@ var Option = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
103
104
|
isFocused: focused,
|
104
105
|
isSelected: isSelected,
|
105
106
|
isCondensed: isCondensed,
|
106
|
-
isFocusVisible: isFocusVisible
|
107
|
+
isFocusVisible: isFocusVisible,
|
108
|
+
isPressed: isPressed
|
107
109
|
}),
|
108
110
|
classNames = _useStatusClasses.classNames;
|
109
111
|
var updateActiveDescendant = (0, _MultivaluesContext.useMultivaluesContext)();
|
@@ -75,7 +75,8 @@ var ListViewItem = function ListViewItem(props) {
|
|
75
75
|
isVirtualized: true
|
76
76
|
}, state, rowRef),
|
77
77
|
raRowProps = _useGridListItem.rowProps,
|
78
|
-
gridCellProps = _useGridListItem.gridCellProps
|
78
|
+
gridCellProps = _useGridListItem.gridCellProps,
|
79
|
+
isPressed = _useGridListItem.isPressed;
|
79
80
|
var isSelected = state.selectionManager.isSelected(item.key);
|
80
81
|
var mergedProps = (0, _reactAria.mergeProps)(raRowProps, hoverProps, isFocusable ? _objectSpread(_objectSpread({}, focusProps), focusWithinProps) : {}, {
|
81
82
|
onPointerLeave: onPointerLeaveFunction
|
@@ -85,7 +86,8 @@ var ListViewItem = function ListViewItem(props) {
|
|
85
86
|
isSelected: isSelected,
|
86
87
|
isFocused: isDisabled ? false : isFocusVisible || isFocusVisibleWithin,
|
87
88
|
hasSeparator: hasSeparator,
|
88
|
-
hasInsetSeparator: hasInsetSeparator
|
89
|
+
hasInsetSeparator: hasInsetSeparator,
|
90
|
+
isPressed: isPressed
|
89
91
|
}),
|
90
92
|
classNames = _useStatusClasses.classNames;
|
91
93
|
|
@@ -122,7 +122,8 @@ var Modal = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
122
122
|
}), title), children))));
|
123
123
|
});
|
124
124
|
Modal.defaultProps = {
|
125
|
-
role: 'dialog'
|
125
|
+
role: 'dialog',
|
126
|
+
size: 'small'
|
126
127
|
};
|
127
128
|
Modal.displayName = 'Modal';
|
128
129
|
var _default = Modal;
|
@@ -31,19 +31,10 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
31
31
|
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; }
|
32
32
|
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; }
|
33
33
|
var MultivaluesField = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
34
|
-
var
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
ref: ref
|
39
|
-
}, props));
|
40
|
-
default:
|
41
|
-
return (0, _react2.jsx)(_DefaultMultivaluesField["default"], (0, _extends2["default"])({
|
42
|
-
ref: ref
|
43
|
-
}, props));
|
44
|
-
}
|
45
|
-
}, [props.mode]);
|
46
|
-
return component;
|
34
|
+
var Component = props.mode === 'condensed' ? _CondensedMultivaluesField["default"] : _DefaultMultivaluesField["default"];
|
35
|
+
return (0, _react2.jsx)(Component, (0, _extends2["default"])({
|
36
|
+
ref: ref
|
37
|
+
}, props));
|
47
38
|
});
|
48
39
|
MultivaluesField.propTypes = _objectSpread(_objectSpread(_objectSpread({
|
49
40
|
/** The initial selected keys in the collection (uncontrolled). */
|
@@ -5,7 +5,7 @@ _Object$defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
6
6
|
});
|
7
7
|
exports.nextGenComponents = exports["default"] = void 0;
|
8
|
-
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', 'NavigationHeader', 'Avatar', 'MultivaluesField', 'Text', 'Link', 'Card', 'CodeView'];
|
8
|
+
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', 'NavigationHeader', 'Avatar', 'MultivaluesField', 'Text', 'Link', 'Card', 'ComboBoxField', 'CodeView'];
|
9
9
|
var nextGenComponents = ['NavigationHeader'];
|
10
10
|
exports.nextGenComponents = nextGenComponents;
|
11
11
|
var _default = nextGenConvertedComponents;
|
@@ -1668,6 +1668,9 @@ declare const _default: {
|
|
1668
1668
|
top: string;
|
1669
1669
|
transform: string;
|
1670
1670
|
transition: string;
|
1671
|
+
m: string[];
|
1672
|
+
overflow: string;
|
1673
|
+
maxHeight: string;
|
1671
1674
|
'&.is-open-no-transition': {
|
1672
1675
|
opacity: string;
|
1673
1676
|
transform: string;
|
@@ -1676,6 +1679,26 @@ declare const _default: {
|
|
1676
1679
|
opacity: string;
|
1677
1680
|
transform: string;
|
1678
1681
|
};
|
1682
|
+
'&.is-extra-small': {
|
1683
|
+
width: string;
|
1684
|
+
maxWidth: string[];
|
1685
|
+
};
|
1686
|
+
'&.is-small': {
|
1687
|
+
width: string;
|
1688
|
+
maxWidth: string[];
|
1689
|
+
};
|
1690
|
+
'&.is-medium': {
|
1691
|
+
width: string;
|
1692
|
+
maxWidth: string[];
|
1693
|
+
};
|
1694
|
+
'&.is-large': {
|
1695
|
+
width: string;
|
1696
|
+
maxWidth: string[];
|
1697
|
+
};
|
1698
|
+
'&.is-full': {
|
1699
|
+
width: string;
|
1700
|
+
maxWidth: string[];
|
1701
|
+
};
|
1679
1702
|
};
|
1680
1703
|
container: {
|
1681
1704
|
justifyContent: string;
|
@@ -1727,6 +1750,10 @@ declare const _default: {
|
|
1727
1750
|
color: string;
|
1728
1751
|
};
|
1729
1752
|
};
|
1753
|
+
'&.is-pressed': {
|
1754
|
+
color: string;
|
1755
|
+
bg: string;
|
1756
|
+
};
|
1730
1757
|
};
|
1731
1758
|
};
|
1732
1759
|
separator: {
|
@@ -1828,6 +1855,9 @@ declare const _default: {
|
|
1828
1855
|
boxShadow: string;
|
1829
1856
|
bg: string;
|
1830
1857
|
};
|
1858
|
+
'&.is-pressed': {
|
1859
|
+
bg: string;
|
1860
|
+
};
|
1831
1861
|
};
|
1832
1862
|
styledContainer: {
|
1833
1863
|
py: string;
|
@@ -2031,6 +2061,11 @@ declare const _default: {
|
|
2031
2061
|
p: string;
|
2032
2062
|
border: string;
|
2033
2063
|
borderColor: string;
|
2064
|
+
item: {
|
2065
|
+
'&.is-pressed': {
|
2066
|
+
bg: string;
|
2067
|
+
};
|
2068
|
+
};
|
2034
2069
|
};
|
2035
2070
|
};
|
2036
2071
|
images: {
|
@@ -371,6 +371,9 @@ declare const _default: {
|
|
371
371
|
top: string;
|
372
372
|
transform: string;
|
373
373
|
transition: string;
|
374
|
+
m: string[];
|
375
|
+
overflow: string;
|
376
|
+
maxHeight: string;
|
374
377
|
'&.is-open-no-transition': {
|
375
378
|
opacity: string;
|
376
379
|
transform: string;
|
@@ -379,6 +382,26 @@ declare const _default: {
|
|
379
382
|
opacity: string;
|
380
383
|
transform: string;
|
381
384
|
};
|
385
|
+
'&.is-extra-small': {
|
386
|
+
width: string;
|
387
|
+
maxWidth: string[];
|
388
|
+
};
|
389
|
+
'&.is-small': {
|
390
|
+
width: string;
|
391
|
+
maxWidth: string[];
|
392
|
+
};
|
393
|
+
'&.is-medium': {
|
394
|
+
width: string;
|
395
|
+
maxWidth: string[];
|
396
|
+
};
|
397
|
+
'&.is-large': {
|
398
|
+
width: string;
|
399
|
+
maxWidth: string[];
|
400
|
+
};
|
401
|
+
'&.is-full': {
|
402
|
+
width: string;
|
403
|
+
maxWidth: string[];
|
404
|
+
};
|
382
405
|
};
|
383
406
|
container: {
|
384
407
|
justifyContent: string;
|
@@ -430,6 +453,10 @@ declare const _default: {
|
|
430
453
|
color: string;
|
431
454
|
};
|
432
455
|
};
|
456
|
+
'&.is-pressed': {
|
457
|
+
color: string;
|
458
|
+
bg: string;
|
459
|
+
};
|
433
460
|
};
|
434
461
|
};
|
435
462
|
separator: {
|
@@ -531,6 +558,9 @@ declare const _default: {
|
|
531
558
|
boxShadow: string;
|
532
559
|
bg: string;
|
533
560
|
};
|
561
|
+
'&.is-pressed': {
|
562
|
+
bg: string;
|
563
|
+
};
|
534
564
|
};
|
535
565
|
styledContainer: {
|
536
566
|
py: string;
|
@@ -734,6 +764,11 @@ declare const _default: {
|
|
734
764
|
p: string;
|
735
765
|
border: string;
|
736
766
|
borderColor: string;
|
767
|
+
item: {
|
768
|
+
'&.is-pressed': {
|
769
|
+
bg: string;
|
770
|
+
};
|
771
|
+
};
|
737
772
|
};
|
738
773
|
};
|
739
774
|
export default _default;
|
@@ -159,14 +159,24 @@ var badges = {
|
|
159
159
|
badgeDeleteButton: badgeDeleteButton
|
160
160
|
};
|
161
161
|
exports.badges = badges;
|
162
|
+
var modalSize = {
|
163
|
+
xs: ['100%', '300px', '300px', '300px', '300px', '300px'],
|
164
|
+
sm: ['100%', '500px', '500px', '500px', '500px', '500px'],
|
165
|
+
md: ['100%', '500px', '500px', '500px', '800px', '800px'],
|
166
|
+
lg: ['100%', '500px', '500px', '500px', '800px', '1140px'],
|
167
|
+
full: ['100%', '100%', '100%', '100%', '100%', '100%']
|
168
|
+
};
|
162
169
|
var modal = {
|
163
170
|
content: {
|
164
171
|
pt: '15px',
|
165
172
|
borderRadius: '4px',
|
166
173
|
opacity: 0,
|
167
|
-
top: '
|
174
|
+
top: '0',
|
168
175
|
transform: 'translate(0, -50px)',
|
169
176
|
transition: 'opacity 300ms ease, transform 500ms ease-out',
|
177
|
+
m: ['sm', 'sm', '1.75rem auto'],
|
178
|
+
overflow: 'hidden',
|
179
|
+
maxHeight: 'calc(100vh - 3.5rem)',
|
170
180
|
'&.is-open-no-transition': {
|
171
181
|
opacity: '100%',
|
172
182
|
transform: 'none'
|
@@ -174,6 +184,26 @@ var modal = {
|
|
174
184
|
'&.is-open.is-transitioning': {
|
175
185
|
opacity: '100%',
|
176
186
|
transform: 'none'
|
187
|
+
},
|
188
|
+
'&.is-extra-small': {
|
189
|
+
width: '100%',
|
190
|
+
maxWidth: modalSize.xs
|
191
|
+
},
|
192
|
+
'&.is-small': {
|
193
|
+
width: '100%',
|
194
|
+
maxWidth: modalSize.sm
|
195
|
+
},
|
196
|
+
'&.is-medium': {
|
197
|
+
width: '100%',
|
198
|
+
maxWidth: modalSize.md
|
199
|
+
},
|
200
|
+
'&.is-large': {
|
201
|
+
width: '100%',
|
202
|
+
maxWidth: modalSize.lg
|
203
|
+
},
|
204
|
+
'&.is-full': {
|
205
|
+
width: '100%',
|
206
|
+
maxWidth: modalSize.full
|
177
207
|
}
|
178
208
|
},
|
179
209
|
container: {
|
@@ -225,6 +255,10 @@ var listBox = {
|
|
225
255
|
'&.is-focused': {
|
226
256
|
color: 'text.primary'
|
227
257
|
}
|
258
|
+
},
|
259
|
+
'&.is-pressed': {
|
260
|
+
color: 'text.primary',
|
261
|
+
bg: 'lightblue'
|
228
262
|
}
|
229
263
|
}
|
230
264
|
};
|
@@ -338,6 +372,9 @@ var listViewItem = {
|
|
338
372
|
'&.is-focused': {
|
339
373
|
boxShadow: '0 0 0 3px inset #1a73e8',
|
340
374
|
bg: 'gray-100'
|
375
|
+
},
|
376
|
+
'&.is-pressed': {
|
377
|
+
bg: 'gray-200'
|
341
378
|
}
|
342
379
|
},
|
343
380
|
styledContainer: {
|
@@ -383,7 +420,7 @@ var navBar = {
|
|
383
420
|
backgroundColor: 'light'
|
384
421
|
},
|
385
422
|
'&.is-pressed': {
|
386
|
-
backgroundColor: '
|
423
|
+
backgroundColor: 'light'
|
387
424
|
},
|
388
425
|
'&.is-focused': _objectSpread({}, navBarFocus)
|
389
426
|
},
|
@@ -394,7 +431,7 @@ var navBar = {
|
|
394
431
|
backgroundColor: 'light'
|
395
432
|
},
|
396
433
|
'&.is-pressed': {
|
397
|
-
backgroundColor: '
|
434
|
+
backgroundColor: 'light',
|
398
435
|
color: 'text.primary'
|
399
436
|
},
|
400
437
|
'&.is-selected': {
|
@@ -528,7 +565,12 @@ var tabs = {
|
|
528
565
|
var menu = {
|
529
566
|
p: 'sm',
|
530
567
|
border: '1px solid',
|
531
|
-
borderColor: 'gray-300'
|
568
|
+
borderColor: 'gray-300',
|
569
|
+
item: {
|
570
|
+
'&.is-pressed': {
|
571
|
+
bg: 'blue-100'
|
572
|
+
}
|
573
|
+
}
|
532
574
|
};
|
533
575
|
var _default = {
|
534
576
|
navBar: navBar,
|
@@ -80,7 +80,8 @@ var Option = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
80
80
|
isDisabled = _useOption.isDisabled,
|
81
81
|
isSelected = _useOption.isSelected,
|
82
82
|
isFocused = _useOption.isFocused,
|
83
|
-
isFocusVisible = _useOption.isFocusVisible
|
83
|
+
isFocusVisible = _useOption.isFocusVisible,
|
84
|
+
isPressed = _useOption.isPressed;
|
84
85
|
var focused = isFocused || (state === null || state === void 0 || (_state$selectionManag = state.selectionManager) === null || _state$selectionManag === void 0 ? void 0 : _state$selectionManag.focusedKey) === item.key;
|
85
86
|
var setFocusOnHover = function setFocusOnHover() {
|
86
87
|
if (!focused && !isCondensed) {
|
@@ -92,7 +93,8 @@ var Option = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
92
93
|
isFocused: focused,
|
93
94
|
isSelected: isSelected,
|
94
95
|
isCondensed: isCondensed,
|
95
|
-
isFocusVisible: isFocusVisible
|
96
|
+
isFocusVisible: isFocusVisible,
|
97
|
+
isPressed: isPressed
|
96
98
|
}),
|
97
99
|
classNames = _useStatusClasses.classNames;
|
98
100
|
var updateActiveDescendant = useMultivaluesContext();
|
@@ -63,7 +63,8 @@ var ListViewItem = function ListViewItem(props) {
|
|
63
63
|
isVirtualized: true
|
64
64
|
}, state, rowRef),
|
65
65
|
raRowProps = _useGridListItem.rowProps,
|
66
|
-
gridCellProps = _useGridListItem.gridCellProps
|
66
|
+
gridCellProps = _useGridListItem.gridCellProps,
|
67
|
+
isPressed = _useGridListItem.isPressed;
|
67
68
|
var isSelected = state.selectionManager.isSelected(item.key);
|
68
69
|
var mergedProps = mergeProps(raRowProps, hoverProps, isFocusable ? _objectSpread(_objectSpread({}, focusProps), focusWithinProps) : {}, {
|
69
70
|
onPointerLeave: onPointerLeaveFunction
|
@@ -73,7 +74,8 @@ var ListViewItem = function ListViewItem(props) {
|
|
73
74
|
isSelected: isSelected,
|
74
75
|
isFocused: isDisabled ? false : isFocusVisible || isFocusVisibleWithin,
|
75
76
|
hasSeparator: hasSeparator,
|
76
|
-
hasInsetSeparator: hasInsetSeparator
|
77
|
+
hasInsetSeparator: hasInsetSeparator,
|
78
|
+
isPressed: isPressed
|
77
79
|
}),
|
78
80
|
classNames = _useStatusClasses.classNames;
|
79
81
|
|
@@ -10,7 +10,7 @@ import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
|
10
10
|
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
11
11
|
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; }
|
12
12
|
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; }
|
13
|
-
import React, { forwardRef
|
13
|
+
import React, { forwardRef } from 'react';
|
14
14
|
import PropTypes from 'prop-types';
|
15
15
|
import { isIterableProp } from '../../utils/devUtils/props/isIterable';
|
16
16
|
import { ariaAttributesBasePropTypes } from '../../utils/docUtils/ariaAttributes';
|
@@ -20,19 +20,10 @@ import CondensedMultivaluesField from './CondensedMultivaluesField';
|
|
20
20
|
import DefaultMultivaluesField from './DefaultMultivaluesField';
|
21
21
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
22
22
|
var MultivaluesField = /*#__PURE__*/forwardRef(function (props, ref) {
|
23
|
-
var
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
ref: ref
|
28
|
-
}, props));
|
29
|
-
default:
|
30
|
-
return ___EmotionJSX(DefaultMultivaluesField, _extends({
|
31
|
-
ref: ref
|
32
|
-
}, props));
|
33
|
-
}
|
34
|
-
}, [props.mode]);
|
35
|
-
return component;
|
23
|
+
var Component = props.mode === 'condensed' ? CondensedMultivaluesField : DefaultMultivaluesField;
|
24
|
+
return ___EmotionJSX(Component, _extends({
|
25
|
+
ref: ref
|
26
|
+
}, props));
|
36
27
|
});
|
37
28
|
MultivaluesField.propTypes = _objectSpread(_objectSpread(_objectSpread({
|
38
29
|
/** The initial selected keys in the collection (uncontrolled). */
|
@@ -1,3 +1,3 @@
|
|
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', 'NavigationHeader', 'Avatar', 'MultivaluesField', 'Text', 'Link', 'Card', 'CodeView'];
|
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', 'NavigationHeader', 'Avatar', 'MultivaluesField', 'Text', 'Link', 'Card', 'ComboBoxField', 'CodeView'];
|
2
2
|
export var nextGenComponents = ['NavigationHeader'];
|
3
3
|
export default nextGenConvertedComponents;
|
@@ -150,14 +150,24 @@ export var badges = {
|
|
150
150
|
},
|
151
151
|
badgeDeleteButton: badgeDeleteButton
|
152
152
|
};
|
153
|
+
var modalSize = {
|
154
|
+
xs: ['100%', '300px', '300px', '300px', '300px', '300px'],
|
155
|
+
sm: ['100%', '500px', '500px', '500px', '500px', '500px'],
|
156
|
+
md: ['100%', '500px', '500px', '500px', '800px', '800px'],
|
157
|
+
lg: ['100%', '500px', '500px', '500px', '800px', '1140px'],
|
158
|
+
full: ['100%', '100%', '100%', '100%', '100%', '100%']
|
159
|
+
};
|
153
160
|
var modal = {
|
154
161
|
content: {
|
155
162
|
pt: '15px',
|
156
163
|
borderRadius: '4px',
|
157
164
|
opacity: 0,
|
158
|
-
top: '
|
165
|
+
top: '0',
|
159
166
|
transform: 'translate(0, -50px)',
|
160
167
|
transition: 'opacity 300ms ease, transform 500ms ease-out',
|
168
|
+
m: ['sm', 'sm', '1.75rem auto'],
|
169
|
+
overflow: 'hidden',
|
170
|
+
maxHeight: 'calc(100vh - 3.5rem)',
|
161
171
|
'&.is-open-no-transition': {
|
162
172
|
opacity: '100%',
|
163
173
|
transform: 'none'
|
@@ -165,6 +175,26 @@ var modal = {
|
|
165
175
|
'&.is-open.is-transitioning': {
|
166
176
|
opacity: '100%',
|
167
177
|
transform: 'none'
|
178
|
+
},
|
179
|
+
'&.is-extra-small': {
|
180
|
+
width: '100%',
|
181
|
+
maxWidth: modalSize.xs
|
182
|
+
},
|
183
|
+
'&.is-small': {
|
184
|
+
width: '100%',
|
185
|
+
maxWidth: modalSize.sm
|
186
|
+
},
|
187
|
+
'&.is-medium': {
|
188
|
+
width: '100%',
|
189
|
+
maxWidth: modalSize.md
|
190
|
+
},
|
191
|
+
'&.is-large': {
|
192
|
+
width: '100%',
|
193
|
+
maxWidth: modalSize.lg
|
194
|
+
},
|
195
|
+
'&.is-full': {
|
196
|
+
width: '100%',
|
197
|
+
maxWidth: modalSize.full
|
168
198
|
}
|
169
199
|
},
|
170
200
|
container: {
|
@@ -216,6 +246,10 @@ var listBox = {
|
|
216
246
|
'&.is-focused': {
|
217
247
|
color: 'text.primary'
|
218
248
|
}
|
249
|
+
},
|
250
|
+
'&.is-pressed': {
|
251
|
+
color: 'text.primary',
|
252
|
+
bg: 'lightblue'
|
219
253
|
}
|
220
254
|
}
|
221
255
|
};
|
@@ -329,6 +363,9 @@ var listViewItem = {
|
|
329
363
|
'&.is-focused': {
|
330
364
|
boxShadow: '0 0 0 3px inset #1a73e8',
|
331
365
|
bg: 'gray-100'
|
366
|
+
},
|
367
|
+
'&.is-pressed': {
|
368
|
+
bg: 'gray-200'
|
332
369
|
}
|
333
370
|
},
|
334
371
|
styledContainer: {
|
@@ -374,7 +411,7 @@ var navBar = {
|
|
374
411
|
backgroundColor: 'light'
|
375
412
|
},
|
376
413
|
'&.is-pressed': {
|
377
|
-
backgroundColor: '
|
414
|
+
backgroundColor: 'light'
|
378
415
|
},
|
379
416
|
'&.is-focused': _objectSpread({}, navBarFocus)
|
380
417
|
},
|
@@ -385,7 +422,7 @@ var navBar = {
|
|
385
422
|
backgroundColor: 'light'
|
386
423
|
},
|
387
424
|
'&.is-pressed': {
|
388
|
-
backgroundColor: '
|
425
|
+
backgroundColor: 'light',
|
389
426
|
color: 'text.primary'
|
390
427
|
},
|
391
428
|
'&.is-selected': {
|
@@ -519,7 +556,12 @@ var tabs = {
|
|
519
556
|
var menu = {
|
520
557
|
p: 'sm',
|
521
558
|
border: '1px solid',
|
522
|
-
borderColor: 'gray-300'
|
559
|
+
borderColor: 'gray-300',
|
560
|
+
item: {
|
561
|
+
'&.is-pressed': {
|
562
|
+
bg: 'blue-100'
|
563
|
+
}
|
564
|
+
}
|
523
565
|
};
|
524
566
|
export default {
|
525
567
|
navBar: navBar,
|