grommet 2.41.0 → 2.42.0
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/components/AccordionPanel/AccordionPanel.js +1 -7
- package/components/Box/Box.js +1 -1
- package/components/Box/StyledBox.js +1 -6
- package/components/Box/index.d.ts +1 -0
- package/components/Box/propTypes.js +1 -0
- package/components/Button/Button.js +1 -0
- package/components/Button/StyledButton.js +3 -2
- package/components/Calendar/Calendar.js +90 -56
- package/components/Calendar/StyledCalendar.js +89 -7
- package/components/Calendar/utils.js +16 -2
- package/components/Carousel/Carousel.js +1 -1
- package/components/Chart/Chart.js +3 -3
- package/components/CheckBox/CheckBox.js +3 -2
- package/components/CheckBoxGroup/CheckBoxGroup.js +1 -1
- package/components/Clock/Digital.js +1 -1
- package/components/Data/stories/Infinite.js +2 -2
- package/components/Data/stories/OnSelect.js +2 -2
- package/components/Data/stories/SpaceX.js +2 -2
- package/components/Data/stories/StarWars.js +1 -1
- package/components/DataFilter/DataFilter.js +1 -1
- package/components/DataSort/DataSort.js +46 -14
- package/components/DataSort/stories/Simple.js +10 -1
- package/components/DataTable/Body.js +14 -8
- package/components/DataTable/GroupedBody.js +3 -3
- package/components/DataTable/buildState.js +5 -1
- package/components/DataTable/stories/SpaceX.js +2 -2
- package/components/DataTable/stories/SpaceXUngrouped.js +1 -1
- package/components/FileInput/index.d.ts +2 -3
- package/components/Layer/Layer.js +1 -1
- package/components/Layer/index.d.ts +2 -0
- package/components/List/List.js +18 -12
- package/components/Meter/Circle.js +2 -2
- package/components/Notification/Notification.js +18 -6
- package/components/Notification/index.d.ts +1 -0
- package/components/Notification/propTypes.js +1 -0
- package/components/Pagination/Pagination.js +4 -2
- package/components/RadioButtonGroup/RadioButtonGroup.js +1 -1
- package/components/Select/Select.js +7 -3
- package/components/Select/SelectContainer.js +41 -34
- package/components/Select/index.d.ts +1 -1
- package/components/Select/utils.js +13 -2
- package/components/SelectMultiple/SelectMultiple.js +10 -0
- package/components/SelectMultiple/SelectMultipleContainer.js +28 -2
- package/components/SelectMultiple/SelectMultipleValue.js +14 -1
- package/components/SkipLinks/index.d.ts +1 -0
- package/components/SkipLinks/propTypes.js +1 -0
- package/components/Tab/Tab.js +1 -1
- package/components/Tag/Tag.js +11 -7
- package/components/ToggleGroup/StyledToggleGroup.js +12 -5
- package/components/ToggleGroup/ToggleGroup.js +21 -10
- package/components/WorldMap/WorldMap.js +1 -1
- package/es6/components/AccordionPanel/AccordionPanel.js +2 -9
- package/es6/components/Box/Box.js +1 -1
- package/es6/components/Box/StyledBox.js +1 -6
- package/es6/components/Box/index.d.ts +1 -0
- package/es6/components/Box/propTypes.js +1 -0
- package/es6/components/Button/Button.js +1 -0
- package/es6/components/Button/StyledButton.js +4 -3
- package/es6/components/Calendar/Calendar.js +89 -56
- package/es6/components/Calendar/StyledCalendar.js +90 -8
- package/es6/components/Calendar/utils.js +15 -1
- package/es6/components/Carousel/Carousel.js +1 -1
- package/es6/components/Chart/Chart.js +3 -3
- package/es6/components/CheckBox/CheckBox.js +3 -2
- package/es6/components/CheckBoxGroup/CheckBoxGroup.js +1 -1
- package/es6/components/Clock/Digital.js +1 -1
- package/es6/components/Data/stories/Infinite.js +2 -2
- package/es6/components/Data/stories/OnSelect.js +2 -2
- package/es6/components/Data/stories/SpaceX.js +2 -2
- package/es6/components/Data/stories/StarWars.js +1 -1
- package/es6/components/DataFilter/DataFilter.js +1 -1
- package/es6/components/DataSort/DataSort.js +46 -14
- package/es6/components/DataSort/stories/Simple.js +10 -1
- package/es6/components/DataTable/Body.js +14 -8
- package/es6/components/DataTable/GroupedBody.js +3 -3
- package/es6/components/DataTable/buildState.js +5 -1
- package/es6/components/DataTable/stories/SpaceX.js +2 -2
- package/es6/components/DataTable/stories/SpaceXUngrouped.js +1 -1
- package/es6/components/FileInput/index.d.ts +2 -3
- package/es6/components/Layer/Layer.js +1 -1
- package/es6/components/Layer/index.d.ts +2 -0
- package/es6/components/List/List.js +18 -12
- package/es6/components/Meter/Circle.js +2 -2
- package/es6/components/Notification/Notification.js +18 -6
- package/es6/components/Notification/index.d.ts +1 -0
- package/es6/components/Notification/propTypes.js +1 -0
- package/es6/components/Pagination/Pagination.js +4 -2
- package/es6/components/RadioButtonGroup/RadioButtonGroup.js +1 -1
- package/es6/components/Select/Select.js +8 -4
- package/es6/components/Select/SelectContainer.js +41 -34
- package/es6/components/Select/index.d.ts +1 -1
- package/es6/components/Select/utils.js +15 -3
- package/es6/components/SelectMultiple/SelectMultiple.js +10 -0
- package/es6/components/SelectMultiple/SelectMultipleContainer.js +28 -2
- package/es6/components/SelectMultiple/SelectMultipleValue.js +14 -1
- package/es6/components/SkipLinks/index.d.ts +1 -0
- package/es6/components/SkipLinks/propTypes.js +1 -0
- package/es6/components/Tab/Tab.js +1 -1
- package/es6/components/Tag/Tag.js +11 -7
- package/es6/components/ToggleGroup/StyledToggleGroup.js +12 -5
- package/es6/components/ToggleGroup/ToggleGroup.js +22 -11
- package/es6/components/WorldMap/WorldMap.js +1 -1
- package/es6/themes/base.d.ts +204 -6
- package/es6/themes/base.js +165 -1
- package/es6/utils/background.js +1 -1
- package/es6/utils/index.js +2 -1
- package/es6/utils/styles.js +8 -0
- package/es6/utils/useId.js +16 -0
- package/grommet.min.js +1 -1
- package/grommet.min.js.map +1 -1
- package/package.json +33 -33
- package/themes/base.d.ts +204 -6
- package/themes/base.js +165 -1
- package/utils/background.js +1 -1
- package/utils/index.js +6 -0
- package/utils/styles.js +9 -1
- package/utils/useId.js +19 -0
|
@@ -35,7 +35,7 @@ var buildQuery = function buildQuery(view) {
|
|
|
35
35
|
return query;
|
|
36
36
|
};
|
|
37
37
|
var fetchLaunches = /*#__PURE__*/function () {
|
|
38
|
-
var _ref = _asyncToGenerator(
|
|
38
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(view) {
|
|
39
39
|
var _view$sort, _view$sort2, _sort;
|
|
40
40
|
var query, sort, body;
|
|
41
41
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -77,7 +77,7 @@ var fetchLaunches = /*#__PURE__*/function () {
|
|
|
77
77
|
};
|
|
78
78
|
}();
|
|
79
79
|
var fetchRockets = /*#__PURE__*/function () {
|
|
80
|
-
var _ref2 = _asyncToGenerator(
|
|
80
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
81
81
|
var body;
|
|
82
82
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
83
83
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -35,7 +35,7 @@ var buildQuery = function buildQuery(view) {
|
|
|
35
35
|
return query;
|
|
36
36
|
};
|
|
37
37
|
var fetchLaunches = /*#__PURE__*/function () {
|
|
38
|
-
var _ref = _asyncToGenerator(
|
|
38
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(view) {
|
|
39
39
|
var _view$sort, _view$sort2, _sort;
|
|
40
40
|
var query, sort, body;
|
|
41
41
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -78,7 +78,7 @@ var fetchLaunches = /*#__PURE__*/function () {
|
|
|
78
78
|
};
|
|
79
79
|
}();
|
|
80
80
|
var fetchRockets = /*#__PURE__*/function () {
|
|
81
|
-
var _ref2 = _asyncToGenerator(
|
|
81
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
82
82
|
var body;
|
|
83
83
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
84
84
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -35,7 +35,7 @@ var buildQuery = function buildQuery(view) {
|
|
|
35
35
|
return query;
|
|
36
36
|
};
|
|
37
37
|
var fetchLaunches = /*#__PURE__*/function () {
|
|
38
|
-
var _ref = _asyncToGenerator(
|
|
38
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(view) {
|
|
39
39
|
var _view$sort, _view$sort2, _sort;
|
|
40
40
|
var query, sort, body;
|
|
41
41
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -78,7 +78,7 @@ var fetchLaunches = /*#__PURE__*/function () {
|
|
|
78
78
|
};
|
|
79
79
|
}();
|
|
80
80
|
var fetchRockets = /*#__PURE__*/function () {
|
|
81
|
-
var _ref2 = _asyncToGenerator(
|
|
81
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
82
82
|
var body;
|
|
83
83
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
84
84
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -14,7 +14,7 @@ function _asyncToGenerator(n) { return function () { var t = this, e = arguments
|
|
|
14
14
|
var step = 10; // default for https://swapi.dev
|
|
15
15
|
|
|
16
16
|
var fetchData = /*#__PURE__*/function () {
|
|
17
|
-
var _ref = _asyncToGenerator(
|
|
17
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(view, signal) {
|
|
18
18
|
var params, url;
|
|
19
19
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
20
20
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -140,7 +140,7 @@ var DataFilter = exports.DataFilter = function DataFilter(_ref) {
|
|
|
140
140
|
var _properties$property4;
|
|
141
141
|
var step =
|
|
142
142
|
// from `range` on DataFilter
|
|
143
|
-
(rangeProp == null ? void 0 : rangeProp.step) || (
|
|
143
|
+
(rangeProp == null ? void 0 : rangeProp.step) || (// from range in Data `properties`
|
|
144
144
|
properties == null || (_properties$property4 = properties[property]) == null || (_properties$property4 = _properties$property4.range) == null ? void 0 : _properties$property4.step);
|
|
145
145
|
if (!step) {
|
|
146
146
|
// avoid floating point issues where 4.4 - 2 returns 2.4000000000000004
|
|
@@ -18,8 +18,8 @@ var _useThemeValue2 = require("../../utils/useThemeValue");
|
|
|
18
18
|
var _excluded = ["drop", "options"];
|
|
19
19
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
20
20
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
21
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
22
21
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
|
|
22
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
23
23
|
var dropProps = {
|
|
24
24
|
align: {
|
|
25
25
|
top: 'bottom',
|
|
@@ -35,11 +35,44 @@ var Content = function Content(_ref) {
|
|
|
35
35
|
properties = _useContext.properties;
|
|
36
36
|
var _useContext2 = (0, _react.useContext)(_MessageContext.MessageContext),
|
|
37
37
|
format = _useContext2.format;
|
|
38
|
-
var
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
38
|
+
var selectProps = (0, _react.useMemo)(function () {
|
|
39
|
+
var props = {};
|
|
40
|
+
if (optionsArg) {
|
|
41
|
+
props = {
|
|
42
|
+
options: optionsArg
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
if (properties && Array.isArray(properties)) {
|
|
46
|
+
props = {
|
|
47
|
+
options: properties
|
|
48
|
+
};
|
|
49
|
+
} else if (properties && typeof properties === 'object') {
|
|
50
|
+
props = {
|
|
51
|
+
options: Object.entries(properties).filter(function (_ref2) {
|
|
52
|
+
var sort = _ref2[1].sort;
|
|
53
|
+
return !(sort === false);
|
|
54
|
+
}).map(function (_ref3) {
|
|
55
|
+
var key = _ref3[0],
|
|
56
|
+
label = _ref3[1].label;
|
|
57
|
+
return {
|
|
58
|
+
key: key,
|
|
59
|
+
label: label || key
|
|
60
|
+
};
|
|
61
|
+
}).sort(function (a, b) {
|
|
62
|
+
return a.label.localeCompare(b.label);
|
|
63
|
+
}),
|
|
64
|
+
valueKey: {
|
|
65
|
+
key: 'key',
|
|
66
|
+
reduce: true
|
|
67
|
+
},
|
|
68
|
+
labelKey: 'label'
|
|
69
|
+
};
|
|
70
|
+
} else {
|
|
71
|
+
props = {
|
|
72
|
+
options: data.length > 0 && Object.keys(data[0]).sort() || data
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
return props;
|
|
43
76
|
}, [data, optionsArg, properties]);
|
|
44
77
|
var directionOptions = [{
|
|
45
78
|
label: format({
|
|
@@ -63,11 +96,10 @@ var Content = function Content(_ref) {
|
|
|
63
96
|
id: 'dataSort.by',
|
|
64
97
|
messages: messages == null ? void 0 : messages.dataSort
|
|
65
98
|
})
|
|
66
|
-
}, /*#__PURE__*/_react["default"].createElement(_Select.Select, {
|
|
99
|
+
}, /*#__PURE__*/_react["default"].createElement(_Select.Select, _extends({
|
|
67
100
|
id: sortPropertyId,
|
|
68
|
-
name: "_sort.property"
|
|
69
|
-
|
|
70
|
-
})), /*#__PURE__*/_react["default"].createElement(_FormField.FormField, {
|
|
101
|
+
name: "_sort.property"
|
|
102
|
+
}, selectProps))), /*#__PURE__*/_react["default"].createElement(_FormField.FormField, {
|
|
71
103
|
key: "dir",
|
|
72
104
|
htmlFor: sortDirectionId,
|
|
73
105
|
label: format({
|
|
@@ -80,11 +112,11 @@ var Content = function Content(_ref) {
|
|
|
80
112
|
options: directionOptions
|
|
81
113
|
}))];
|
|
82
114
|
};
|
|
83
|
-
var DataSort = exports.DataSort = function DataSort(
|
|
115
|
+
var DataSort = exports.DataSort = function DataSort(_ref4) {
|
|
84
116
|
var _theme$data$button;
|
|
85
|
-
var drop =
|
|
86
|
-
options =
|
|
87
|
-
rest = _objectWithoutPropertiesLoose(
|
|
117
|
+
var drop = _ref4.drop,
|
|
118
|
+
options = _ref4.options,
|
|
119
|
+
rest = _objectWithoutPropertiesLoose(_ref4, _excluded);
|
|
88
120
|
var _useContext3 = (0, _react.useContext)(_DataContext.DataContext),
|
|
89
121
|
dataId = _useContext3.id,
|
|
90
122
|
messages = _useContext3.messages;
|
|
@@ -6,6 +6,14 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
6
6
|
var _grommet = require("grommet");
|
|
7
7
|
var _data = require("../../DataTable/stories/data");
|
|
8
8
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
|
+
var properties = {};
|
|
10
|
+
_data.columns.forEach(function (_ref) {
|
|
11
|
+
var property = _ref.property,
|
|
12
|
+
header = _ref.header;
|
|
13
|
+
properties[property] = {
|
|
14
|
+
label: typeof header === 'string' ? header : property
|
|
15
|
+
};
|
|
16
|
+
});
|
|
9
17
|
var Simple = exports.Simple = function Simple() {
|
|
10
18
|
return (
|
|
11
19
|
/*#__PURE__*/
|
|
@@ -17,7 +25,8 @@ var Simple = exports.Simple = function Simple() {
|
|
|
17
25
|
pad: "large",
|
|
18
26
|
gap: "medium"
|
|
19
27
|
}, /*#__PURE__*/_react["default"].createElement(_grommet.Data, {
|
|
20
|
-
data: _data.DATA
|
|
28
|
+
data: _data.DATA,
|
|
29
|
+
properties: properties
|
|
21
30
|
}, /*#__PURE__*/_react["default"].createElement(_grommet.DataSort, null), /*#__PURE__*/_react["default"].createElement(_grommet.DataTable, {
|
|
22
31
|
columns: _data.columns
|
|
23
32
|
})))
|
|
@@ -73,7 +73,7 @@ var Row = /*#__PURE__*/(0, _react.memo)(function (_ref) {
|
|
|
73
73
|
return setActive(undefined);
|
|
74
74
|
} : undefined
|
|
75
75
|
}, (selected || onSelect) && /*#__PURE__*/_react["default"].createElement(_Cell.Cell, {
|
|
76
|
-
background: (pinnedOffset == null ? void 0 : pinnedOffset._grommetDataTableSelect) && cellProps.pinned.background || cellProps.background,
|
|
76
|
+
background: isSelected && cellProps.selected.background || (pinnedOffset == null ? void 0 : pinnedOffset._grommetDataTableSelect) && cellProps.pinned.background || cellProps.background,
|
|
77
77
|
border: cellProps.pinned.border || cellProps.border,
|
|
78
78
|
pinnedOffset: pinnedOffset == null ? void 0 : pinnedOffset._grommetDataTableSelect,
|
|
79
79
|
"aria-disabled": isDisabled || !onSelect || undefined,
|
|
@@ -100,6 +100,7 @@ var Row = /*#__PURE__*/(0, _react.memo)(function (_ref) {
|
|
|
100
100
|
},
|
|
101
101
|
verticalAlign: verticalAlign
|
|
102
102
|
}), rowDetails && /*#__PURE__*/_react["default"].createElement(_ExpanderCell.ExpanderCell, {
|
|
103
|
+
background: isSelected && cellProps.selected.background,
|
|
103
104
|
context: isRowExpanded ? 'groupHeader' : 'body',
|
|
104
105
|
expanded: isRowExpanded,
|
|
105
106
|
onToggle: function onToggle() {
|
|
@@ -116,11 +117,12 @@ var Row = /*#__PURE__*/(0, _react.memo)(function (_ref) {
|
|
|
116
117
|
}), columns.map(function (column) {
|
|
117
118
|
return /*#__PURE__*/_react["default"].createElement(_Cell.Cell, {
|
|
118
119
|
key: column.property,
|
|
119
|
-
background: column.pin && cellProps.pinned.background || cellProps.background,
|
|
120
|
+
background: isSelected && cellProps.selected.background || column.pin && cellProps.pinned.background || cellProps.background,
|
|
120
121
|
border: column.pin && cellProps.pinned.border || cellProps.border,
|
|
121
122
|
context: "body",
|
|
122
123
|
column: column,
|
|
123
124
|
datum: datum,
|
|
125
|
+
isSelected: isSelected,
|
|
124
126
|
pad: column.pin && cellProps.pinned.pad || cellProps.pad,
|
|
125
127
|
pinnedOffset: pinnedOffset && pinnedOffset[column.property],
|
|
126
128
|
primaryProperty: primaryProperty,
|
|
@@ -194,13 +196,17 @@ var Body = exports.Body = /*#__PURE__*/(0, _react.forwardRef)(function (_ref2, r
|
|
|
194
196
|
} : undefined
|
|
195
197
|
// The WCAG recommendation for checkboxes is to select them with "Space"
|
|
196
198
|
,
|
|
197
|
-
onSpace: function
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
199
|
+
onSpace: clickableRow ? function (event) {
|
|
200
|
+
event.preventDefault();
|
|
201
|
+
if (typeof onClickRow === 'function') {
|
|
202
|
+
event.persist();
|
|
203
|
+
var adjustedEvent = event;
|
|
204
|
+
adjustedEvent.datum = data == null ? void 0 : data[active];
|
|
205
|
+
onClickRow(adjustedEvent);
|
|
206
|
+
} else if (onClickRow === 'select') {
|
|
207
|
+
selectRow();
|
|
202
208
|
}
|
|
203
|
-
},
|
|
209
|
+
} : undefined,
|
|
204
210
|
onUp: onClickRow && active ? function () {
|
|
205
211
|
return setActive(active - 1);
|
|
206
212
|
} : undefined,
|
|
@@ -139,7 +139,7 @@ var GroupedBody = exports.GroupedBody = /*#__PURE__*/(0, _react.forwardRef)(func
|
|
|
139
139
|
key: key,
|
|
140
140
|
size: size
|
|
141
141
|
}, /*#__PURE__*/_react["default"].createElement(_ExpanderCell.ExpanderCell, {
|
|
142
|
-
background: cellProps.background,
|
|
142
|
+
background: isSelected && cellProps.selected.background || cellProps.background,
|
|
143
143
|
border: cellProps.border,
|
|
144
144
|
context: context,
|
|
145
145
|
pad: cellProps.pad,
|
|
@@ -147,7 +147,7 @@ var GroupedBody = exports.GroupedBody = /*#__PURE__*/(0, _react.forwardRef)(func
|
|
|
147
147
|
expanded: expanded,
|
|
148
148
|
verticalAlign: verticalAlign
|
|
149
149
|
}), (selected || onSelect) && /*#__PURE__*/_react["default"].createElement(_TableCell.TableCell, {
|
|
150
|
-
background: cellProps.background,
|
|
150
|
+
background: isSelected && cellProps.selected.background || cellProps.background,
|
|
151
151
|
border: cellProps.pinned.border || cellProps.border,
|
|
152
152
|
plain: "noPad",
|
|
153
153
|
size: "auto",
|
|
@@ -169,7 +169,7 @@ var GroupedBody = exports.GroupedBody = /*#__PURE__*/(0, _react.forwardRef)(func
|
|
|
169
169
|
}
|
|
170
170
|
return /*#__PURE__*/_react["default"].createElement(_Cell.Cell, {
|
|
171
171
|
key: column.property,
|
|
172
|
-
background: cellProps.background,
|
|
172
|
+
background: isSelected && cellProps.selected.background || cellProps.background,
|
|
173
173
|
border: cellProps.border,
|
|
174
174
|
context: context,
|
|
175
175
|
column: column,
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.set = exports.normalizeRowProp = exports.normalizeRowCellProps = exports.normalizePrimaryProperty = exports.normalizeCellProps = exports.normalizeBackgroundColor = exports.initializeFilters = exports.filterAndSortData = exports.datumValue = exports.buildGroups = exports.buildGroupState = exports.buildFooterValues = void 0;
|
|
5
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
5
6
|
// This file contains helper functions for DataTable, to keep the component
|
|
6
7
|
// files simpler.
|
|
7
8
|
|
|
@@ -265,6 +266,7 @@ var cellPropertyNames = ['background', 'border', 'pad'];
|
|
|
265
266
|
// For example, background={{ header: { background } }}
|
|
266
267
|
// will become cellProps.header.background
|
|
267
268
|
var normalizeCellProps = exports.normalizeCellProps = function normalizeCellProps(props, theme) {
|
|
269
|
+
var _theme$dataTable3;
|
|
268
270
|
var result = {};
|
|
269
271
|
tableContextNames.forEach(function (context) {
|
|
270
272
|
result[context] = {
|
|
@@ -300,11 +302,13 @@ var normalizeCellProps = exports.normalizeCellProps = function normalizeCellProp
|
|
|
300
302
|
}
|
|
301
303
|
});
|
|
302
304
|
});
|
|
305
|
+
result.body.selected = _extends({}, theme == null || (_theme$dataTable3 = theme.dataTable) == null || (_theme$dataTable3 = _theme$dataTable3.body) == null ? void 0 : _theme$dataTable3.selected);
|
|
303
306
|
return result;
|
|
304
307
|
};
|
|
305
308
|
var normalizeRowCellProps = exports.normalizeRowCellProps = function normalizeRowCellProps(rowProps, cellProps, primaryKey, index) {
|
|
306
309
|
var result = {
|
|
307
|
-
pinned: {}
|
|
310
|
+
pinned: {},
|
|
311
|
+
selected: cellProps.selected
|
|
308
312
|
};
|
|
309
313
|
['background', 'border', 'pad'].forEach(function (propName) {
|
|
310
314
|
var _rowProps$primaryKey;
|
|
@@ -120,7 +120,7 @@ var SpaceX = exports.SpaceX = function SpaceX() {
|
|
|
120
120
|
}, [groups]);
|
|
121
121
|
(0, _react.useEffect)(function () {
|
|
122
122
|
var fetchData = /*#__PURE__*/function () {
|
|
123
|
-
var _ref5 = _asyncToGenerator(
|
|
123
|
+
var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
124
124
|
var query;
|
|
125
125
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
126
126
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -157,7 +157,7 @@ var SpaceX = exports.SpaceX = function SpaceX() {
|
|
|
157
157
|
}, []);
|
|
158
158
|
(0, _react.useEffect)(function () {
|
|
159
159
|
var fetchData = /*#__PURE__*/function () {
|
|
160
|
-
var _ref6 = _asyncToGenerator(
|
|
160
|
+
var _ref6 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
161
161
|
var _sort;
|
|
162
162
|
var query;
|
|
163
163
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
@@ -70,7 +70,7 @@ var SpaceXUngrouped = exports.SpaceXUngrouped = function SpaceXUngrouped() {
|
|
|
70
70
|
setLimit = _useState3[1];
|
|
71
71
|
(0, _react.useEffect)(function () {
|
|
72
72
|
var fetchData = /*#__PURE__*/function () {
|
|
73
|
-
var _ref2 = _asyncToGenerator(
|
|
73
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
74
74
|
var _sort;
|
|
75
75
|
var query;
|
|
76
76
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -23,9 +23,8 @@ export interface FileInputProps {
|
|
|
23
23
|
multiple?: boolean | { aggregateThreshold?: number; max?: number };
|
|
24
24
|
name?: string;
|
|
25
25
|
onChange?: (
|
|
26
|
-
event
|
|
27
|
-
{ files }
|
|
28
|
-
{ target }?: { target: { files: FileList } },
|
|
26
|
+
event: React.ChangeEvent<HTMLInputElement>,
|
|
27
|
+
{ files }: { files: File[] },
|
|
29
28
|
) => void;
|
|
30
29
|
renderFile?: (...args: any[]) => void;
|
|
31
30
|
}
|
|
@@ -74,7 +74,7 @@ var Layer = exports.Layer = /*#__PURE__*/(0, _react.forwardRef)(function (props,
|
|
|
74
74
|
}
|
|
75
75
|
};
|
|
76
76
|
}, [animate, animation, containerTarget, layerContainer, originalFocusedElement]);
|
|
77
|
-
return layerContainer ? /*#__PURE__*/(0, _reactDom.createPortal)(
|
|
77
|
+
return layerContainer ? /*#__PURE__*/(0, _reactDom.createPortal)(/*#__PURE__*/_react["default"].createElement(_LayerContainer.LayerContainer, _extends({
|
|
78
78
|
ref: ref
|
|
79
79
|
}, props)), layerContainer) : null;
|
|
80
80
|
});
|
package/components/List/List.js
CHANGED
|
@@ -265,22 +265,28 @@ var List = exports.List = /*#__PURE__*/_react["default"].forwardRef(function (_r
|
|
|
265
265
|
return /*#__PURE__*/_react["default"].createElement(Container, containterProps, /*#__PURE__*/_react["default"].createElement(_Keyboard.Keyboard, {
|
|
266
266
|
onEnter: onSelectOption,
|
|
267
267
|
onSpace: function onSpace(event) {
|
|
268
|
-
|
|
268
|
+
if (onClickItem || onOrder) {
|
|
269
|
+
event.preventDefault();
|
|
270
|
+
}
|
|
269
271
|
onSelectOption(event);
|
|
270
272
|
},
|
|
271
273
|
onUp: function onUp(event) {
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
274
|
+
if (onClickItem || onOrder) {
|
|
275
|
+
event.preventDefault();
|
|
276
|
+
if (active) {
|
|
277
|
+
var min = onOrder ? 1 : 0;
|
|
278
|
+
updateActive(Math.max(active - 1, min));
|
|
279
|
+
}
|
|
276
280
|
}
|
|
277
281
|
},
|
|
278
282
|
onDown: function onDown(event) {
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
283
|
+
if (onClickItem || onOrder) {
|
|
284
|
+
event.preventDefault();
|
|
285
|
+
if (orderableData && orderableData.length) {
|
|
286
|
+
var min = onOrder ? 1 : 0;
|
|
287
|
+
var max = onOrder ? orderableData.length * 2 - 2 : data.length - 1;
|
|
288
|
+
updateActive(active >= min ? Math.min(active + 1, max) : min);
|
|
289
|
+
}
|
|
284
290
|
}
|
|
285
291
|
},
|
|
286
292
|
onKeyDown: onKeyDown
|
|
@@ -322,7 +328,7 @@ var List = exports.List = /*#__PURE__*/_react["default"].forwardRef(function (_r
|
|
|
322
328
|
var isPinned;
|
|
323
329
|
if (Array.isArray(pinned) && pinned.length > 0 || Array.isArray(pinned == null ? void 0 : pinned.items) && (pinned == null || (_pinned$items2 = pinned.items) == null ? void 0 : _pinned$items2.length) > 0) {
|
|
324
330
|
if (typeof item === 'object' && !itemKey) {
|
|
325
|
-
console.error(
|
|
331
|
+
console.error(// eslint-disable-next-line max-len
|
|
326
332
|
"Warning: Missing prop itemKey. Prop pin requires itemKey to be specified when data is of type 'object'.");
|
|
327
333
|
}
|
|
328
334
|
isPinned = Array.isArray(pinned) ? pinned == null ? void 0 : pinned.includes(key) : pinned.items.some(function (pinnedItem) {
|
|
@@ -374,7 +380,7 @@ var List = exports.List = /*#__PURE__*/_react["default"].forwardRef(function (_r
|
|
|
374
380
|
var isDisabled;
|
|
375
381
|
if (disabledItems) {
|
|
376
382
|
if (typeof item === 'object' && !itemKey) {
|
|
377
|
-
console.error(
|
|
383
|
+
console.error(// eslint-disable-next-line max-len
|
|
378
384
|
"Warning: Missing prop itemKey. Prop disabled requires itemKey to be specified when data is of type 'object'.");
|
|
379
385
|
}
|
|
380
386
|
isDisabled = disabledItems == null ? void 0 : disabledItems.includes(key);
|
|
@@ -75,7 +75,7 @@ var Circle = exports.Circle = /*#__PURE__*/(0, _react.forwardRef)(function (prop
|
|
|
75
75
|
var stroke = (0, _utils2.strokeProps)(someHighlight && !highlight ? background : colorName, theme);
|
|
76
76
|
if (round) {
|
|
77
77
|
var d1 = (0, _utils.arcCommands)(centerX, centerY, radius, startAngle, endAngle);
|
|
78
|
-
paths.unshift(
|
|
78
|
+
paths.unshift(/*#__PURE__*/_react["default"].createElement("path", _extends({
|
|
79
79
|
key: key,
|
|
80
80
|
d: d1,
|
|
81
81
|
fill: "none"
|
|
@@ -104,7 +104,7 @@ var Circle = exports.Circle = /*#__PURE__*/(0, _react.forwardRef)(function (prop
|
|
|
104
104
|
pathCaps.unshift(pathCap);
|
|
105
105
|
} else {
|
|
106
106
|
var d = (0, _utils.arcCommands)(centerX, centerY, radius, startAngle, endAngle);
|
|
107
|
-
paths.push(
|
|
107
|
+
paths.push(/*#__PURE__*/_react["default"].createElement("path", _extends({
|
|
108
108
|
key: key,
|
|
109
109
|
d: d,
|
|
110
110
|
fill: "none"
|
|
@@ -52,12 +52,18 @@ var adaptThemeStyle = function adaptThemeStyle(value, theme) {
|
|
|
52
52
|
}
|
|
53
53
|
return [textStyle, closeButtonStyle];
|
|
54
54
|
};
|
|
55
|
+
var getTextColor = function getTextColor(part, status, kind, theme) {
|
|
56
|
+
var _theme$notification, _theme$notification2, _theme$notification3, _theme$notification4, _theme$notification5;
|
|
57
|
+
var color;
|
|
58
|
+
if ((_theme$notification = theme.notification) != null && (_theme$notification = _theme$notification[status]) != null && (_theme$notification = _theme$notification[kind]) != null && (_theme$notification = _theme$notification[part]) != null && _theme$notification.color) color = (_theme$notification2 = theme.notification) == null || (_theme$notification2 = _theme$notification2[status]) == null || (_theme$notification2 = _theme$notification2[kind]) == null || (_theme$notification2 = _theme$notification2[part]) == null ? void 0 : _theme$notification2.color;else if ((_theme$notification3 = theme.notification) != null && (_theme$notification3 = _theme$notification3[status]) != null && (_theme$notification3 = _theme$notification3[part]) != null && _theme$notification3.color) color = (_theme$notification4 = theme.notification) == null || (_theme$notification4 = _theme$notification4[status]) == null || (_theme$notification4 = _theme$notification4[part]) == null ? void 0 : _theme$notification4.color;else color = (_theme$notification5 = theme.notification) == null || (_theme$notification5 = _theme$notification5[part]) == null ? void 0 : _theme$notification5.color;
|
|
59
|
+
return color;
|
|
60
|
+
};
|
|
55
61
|
var NotificationAnchor = (0, _styledComponents["default"])(_Anchor.Anchor).withConfig({
|
|
56
62
|
displayName: "Notification__NotificationAnchor",
|
|
57
63
|
componentId: "sc-1yq09yz-0"
|
|
58
64
|
})(["white-space:nowrap;"]);
|
|
59
65
|
var Notification = exports.Notification = function Notification(_ref) {
|
|
60
|
-
var _theme$
|
|
66
|
+
var _theme$notification6, _theme$notification7, _theme$notification8, _theme$notification9, _theme$notification10;
|
|
61
67
|
var actionsProp = _ref.actions,
|
|
62
68
|
messageProp = _ref.message,
|
|
63
69
|
onClose = _ref.onClose,
|
|
@@ -94,7 +100,7 @@ var Notification = exports.Notification = function Notification(_ref) {
|
|
|
94
100
|
return undefined;
|
|
95
101
|
}, [autoClose, close, theme.notification.toast.time, theme.notification.time, time]);
|
|
96
102
|
var CloseIcon = theme.notification.close.icon;
|
|
97
|
-
var _ref2 = ((_theme$
|
|
103
|
+
var _ref2 = ((_theme$notification6 = theme.notification) == null ? void 0 : _theme$notification6[status]) || theme.notification.unknown,
|
|
98
104
|
StatusIcon = _ref2.icon,
|
|
99
105
|
color = _ref2.color;
|
|
100
106
|
var closeIconColor = theme.notification.close.color;
|
|
@@ -106,7 +112,7 @@ var Notification = exports.Notification = function Notification(_ref) {
|
|
|
106
112
|
var direction;
|
|
107
113
|
if (kind && theme.notification[kind].direction) direction = theme.notification[kind].direction;else direction = theme.notification.direction;
|
|
108
114
|
var background;
|
|
109
|
-
if (kind && (_theme$
|
|
115
|
+
if (kind && (_theme$notification7 = theme.notification) != null && (_theme$notification7 = _theme$notification7[status]) != null && (_theme$notification7 = _theme$notification7[kind]) != null && _theme$notification7.background) background = theme.notification[status][kind].background;else if ((_theme$notification8 = theme.notification) != null && (_theme$notification8 = _theme$notification8[status]) != null && _theme$notification8.background) background = theme.notification[status].background;else background = ((_theme$notification9 = theme.notification) == null || (_theme$notification9 = _theme$notification9[kind]) == null || (_theme$notification9 = _theme$notification9.container) == null ? void 0 : _theme$notification9.background) || theme.notification.container.background;
|
|
110
116
|
var TextWrapper = direction === 'row' ? _Text.Text : _react.Fragment;
|
|
111
117
|
|
|
112
118
|
// notification is built with two child boxes that contain:
|
|
@@ -125,6 +131,8 @@ var Notification = exports.Notification = function Notification(_ref) {
|
|
|
125
131
|
} else textPad = pad;
|
|
126
132
|
var actions;
|
|
127
133
|
var message = messageProp;
|
|
134
|
+
var messageColor = getTextColor('message', status, kind, theme);
|
|
135
|
+
var titleColor = getTextColor('title', status, kind, theme);
|
|
128
136
|
if (actionsProp) actions = actionsProp.map(function (action) {
|
|
129
137
|
return /*#__PURE__*/_react["default"].createElement(_react.Fragment, {
|
|
130
138
|
key: action.label
|
|
@@ -138,12 +146,14 @@ var Notification = exports.Notification = function Notification(_ref) {
|
|
|
138
146
|
}, action, theme.notification.actions)), ' ');
|
|
139
147
|
});
|
|
140
148
|
var Message = direction !== 'row' ? _Paragraph.Paragraph : _Text.Text;
|
|
141
|
-
if (message || actions) message = typeof message === 'string' ? /*#__PURE__*/_react["default"].createElement(Message, theme.notification.message,
|
|
149
|
+
if (message || actions) message = typeof message === 'string' ? /*#__PURE__*/_react["default"].createElement(Message, _extends({}, theme.notification.message, {
|
|
150
|
+
color: messageColor
|
|
151
|
+
}), /*#__PURE__*/_react["default"].createElement(_Text.Text, {
|
|
142
152
|
margin: {
|
|
143
153
|
right: 'xsmall'
|
|
144
154
|
}
|
|
145
155
|
}, message), actions) : message;
|
|
146
|
-
var iconDimension = ((_theme$
|
|
156
|
+
var iconDimension = ((_theme$notification10 = theme.notification) == null || (_theme$notification10 = _theme$notification10.message) == null ? void 0 : _theme$notification10.size) || 'medium';
|
|
147
157
|
var content = /*#__PURE__*/_react["default"].createElement(_Box.Box, _extends({}, theme.notification.container, global ? _extends({}, theme.notification.global.container) : {}, toast ? _extends({}, theme.notification.toast.container) : {}, {
|
|
148
158
|
background: background
|
|
149
159
|
// let internal box control pad
|
|
@@ -159,7 +169,9 @@ var Notification = exports.Notification = function Notification(_ref) {
|
|
|
159
169
|
}, /*#__PURE__*/_react["default"].createElement(_Box.Box, theme.notification.iconContainer, icon || /*#__PURE__*/_react["default"].createElement(StatusIcon, {
|
|
160
170
|
color: color,
|
|
161
171
|
height: iconDimension
|
|
162
|
-
})), /*#__PURE__*/_react["default"].createElement(_Box.Box, theme.notification.textContainer, /*#__PURE__*/_react["default"].createElement(TextWrapper, null, title && /*#__PURE__*/_react["default"].createElement(_Text.Text, theme.notification.title,
|
|
172
|
+
})), /*#__PURE__*/_react["default"].createElement(_Box.Box, theme.notification.textContainer, /*#__PURE__*/_react["default"].createElement(TextWrapper, null, title && /*#__PURE__*/_react["default"].createElement(_Text.Text, _extends({}, theme.notification.title, {
|
|
173
|
+
color: titleColor
|
|
174
|
+
}), title), message && title && direction === 'row' && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, "\xA0"), message))), onClose &&
|
|
163
175
|
/*#__PURE__*/
|
|
164
176
|
// theme.notification.container and textContainer may both have pad,
|
|
165
177
|
// account for both
|
|
@@ -8,6 +8,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default":
|
|
|
8
8
|
var PropType = {};
|
|
9
9
|
if (process.env.NODE_ENV !== 'production') {
|
|
10
10
|
PropType = {
|
|
11
|
+
id: _propTypes["default"].string,
|
|
11
12
|
actions: _propTypes["default"].arrayOf(_propTypes["default"].shape(_propTypes2.AnchorPropTypes)),
|
|
12
13
|
global: _propTypes["default"].bool,
|
|
13
14
|
title: _propTypes["default"].string,
|
|
@@ -89,7 +89,7 @@ var Pagination = exports.Pagination = /*#__PURE__*/(0, _react.forwardRef)(functi
|
|
|
89
89
|
var numberMiddlePages;
|
|
90
90
|
if (numberMiddlePagesProp < 1) {
|
|
91
91
|
numberMiddlePages = 1;
|
|
92
|
-
console.warn(
|
|
92
|
+
console.warn(// eslint-disable-next-line max-len
|
|
93
93
|
"Property \"numberMiddlePages\" should not be < 1. One middle page button will be shown. Set \"numberMiddlePages\" >= 1 to remove this warning.");
|
|
94
94
|
} else numberMiddlePages = numberMiddlePagesProp;
|
|
95
95
|
var startingMiddlePages;
|
|
@@ -188,7 +188,9 @@ var Pagination = exports.Pagination = /*#__PURE__*/(0, _react.forwardRef)(functi
|
|
|
188
188
|
ref: ref
|
|
189
189
|
}, /*#__PURE__*/_react["default"].createElement(_Box.Box, _extends({
|
|
190
190
|
as: "ul"
|
|
191
|
-
}, theme.pagination.controls
|
|
191
|
+
}, theme.pagination.controls, {
|
|
192
|
+
cssGap: true
|
|
193
|
+
}), controls.map(function (control, index) {
|
|
192
194
|
return (
|
|
193
195
|
/*#__PURE__*/
|
|
194
196
|
/* Using index as key (as opposed to a unique id) seems to
|
|
@@ -128,7 +128,7 @@ var RadioButtonGroup = exports.RadioButtonGroup = /*#__PURE__*/(0, _react.forwar
|
|
|
128
128
|
// on the first radiobutton
|
|
129
129
|
value === '' && index === 0;
|
|
130
130
|
if (optionRest.checked) {
|
|
131
|
-
console.warn(
|
|
131
|
+
console.warn(// eslint-disable-next-line max-len
|
|
132
132
|
"'checked' prop of an individual RadioButton shouldn't be used in a RadioButtonGroup component. Use the RadioButtonGroup 'value' prop instead.");
|
|
133
133
|
}
|
|
134
134
|
return /*#__PURE__*/_react["default"].createElement(_RadioButton.RadioButton, _extends({
|
|
@@ -229,7 +229,7 @@ var Select = exports.Select = /*#__PURE__*/(0, _react.forwardRef)(function (_ref
|
|
|
229
229
|
var selectValue = (0, _react.useMemo)(function () {
|
|
230
230
|
if (valueLabel instanceof Function) {
|
|
231
231
|
if (value || value === 0 || value === false) return valueLabel(value);
|
|
232
|
-
} else if (valueLabel) return valueLabel;else if (
|
|
232
|
+
} else if (valueLabel) return valueLabel;else if (/*#__PURE__*/_react["default"].isValidElement(value)) return value; // deprecated
|
|
233
233
|
return undefined;
|
|
234
234
|
}, [value, valueLabel]);
|
|
235
235
|
var displayLabelKey = (0, _react.useMemo)(function () {
|
|
@@ -266,7 +266,7 @@ var Select = exports.Select = /*#__PURE__*/(0, _react.forwardRef)(function (_ref
|
|
|
266
266
|
id: 'select.selected',
|
|
267
267
|
messages: messages,
|
|
268
268
|
values: {
|
|
269
|
-
currentSelectedValue: value
|
|
269
|
+
currentSelectedValue: (0, _utils2.formatValueForA11y)(value, labelKey)
|
|
270
270
|
}
|
|
271
271
|
}) : ''),
|
|
272
272
|
"aria-expanded": Boolean(open),
|
|
@@ -277,7 +277,7 @@ var Select = exports.Select = /*#__PURE__*/(0, _react.forwardRef)(function (_ref
|
|
|
277
277
|
dropTarget: dropTarget,
|
|
278
278
|
open: open,
|
|
279
279
|
alignSelf: alignSelf,
|
|
280
|
-
focusIndicator: focusIndicator,
|
|
280
|
+
focusIndicator: plain ? focusIndicator : true,
|
|
281
281
|
onFocus: onFocus,
|
|
282
282
|
onBlur: onBlur,
|
|
283
283
|
gridArea: gridArea,
|
|
@@ -331,6 +331,8 @@ var Select = exports.Select = /*#__PURE__*/(0, _react.forwardRef)(function (_ref
|
|
|
331
331
|
type: "text",
|
|
332
332
|
name: name,
|
|
333
333
|
id: id ? id + "__input" : undefined,
|
|
334
|
+
inert: "" // revisit for React 19
|
|
335
|
+
,
|
|
334
336
|
value: inputValue,
|
|
335
337
|
ref: inputRef,
|
|
336
338
|
readOnly: true
|
|
@@ -338,6 +340,8 @@ var Select = exports.Select = /*#__PURE__*/(0, _react.forwardRef)(function (_ref
|
|
|
338
340
|
a11yTitle: (ariaLabel || a11yTitle) && "" + (ariaLabel || a11yTitle) + (value && typeof value === 'string' ? ", " + value : ''),
|
|
339
341
|
disabled: disabled,
|
|
340
342
|
id: id,
|
|
343
|
+
inert: "" // revisit for React 19
|
|
344
|
+
,
|
|
341
345
|
name: name,
|
|
342
346
|
ref: inputRef,
|
|
343
347
|
placeholder: placeholder,
|