@doist/reactist 10.0.0-beta.10 → 10.0.0-beta.12
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/dist/reactist.cjs.development.js +141 -71
- package/dist/reactist.cjs.development.js.map +1 -1
- package/dist/reactist.cjs.production.min.js +1 -1
- package/dist/reactist.cjs.production.min.js.map +1 -1
- package/es/_virtual/_rollupPluginBabelHelpers.js +34 -20
- package/es/_virtual/_rollupPluginBabelHelpers.js.map +1 -1
- package/es/components/deprecated-button/deprecated-button.js +2 -1
- package/es/components/deprecated-button/deprecated-button.js.map +1 -1
- package/es/components/deprecated-modal/deprecated-modal.js +1 -1
- package/es/components/deprecated-modal/deprecated-modal.js.map +1 -1
- package/es/components/dropdown/dropdown.js +3 -1
- package/es/components/dropdown/dropdown.js.map +1 -1
- package/es/components/error-message/error-message.js +1 -1
- package/es/components/error-message/error-message.js.map +1 -1
- package/es/components/icon/icon.js.map +1 -1
- package/es/components/key-capturer/key-capturer.js.map +1 -1
- package/es/components/keyboard-shortcut/keyboard-shortcut.js +2 -1
- package/es/components/keyboard-shortcut/keyboard-shortcut.js.map +1 -1
- package/es/components/menu/menu.js +22 -11
- package/es/components/menu/menu.js.map +1 -1
- package/es/components/notification/notification.js +3 -1
- package/es/components/notification/notification.js.map +1 -1
- package/es/components/popover/popover.js.map +1 -1
- package/es/components/popover/positioning-utils.js.map +1 -1
- package/es/components/select/select.js +3 -1
- package/es/components/select/select.js.map +1 -1
- package/es/components/time/time-utils.js.map +1 -1
- package/es/components/time/time.js.map +1 -1
- package/es/components/tooltip/tooltip.js +3 -1
- package/es/components/tooltip/tooltip.js.map +1 -1
- package/es/new-components/base-button/base-button.js +3 -1
- package/es/new-components/base-button/base-button.js.map +1 -1
- package/es/new-components/box/box.js +2 -1
- package/es/new-components/box/box.js.map +1 -1
- package/es/new-components/button/button.js +2 -1
- package/es/new-components/button/button.js.map +1 -1
- package/es/new-components/button-link/button-link.js +2 -1
- package/es/new-components/button-link/button-link.js.map +1 -1
- package/es/new-components/checkbox-field/checkbox-field.js +2 -1
- package/es/new-components/checkbox-field/checkbox-field.js.map +1 -1
- package/es/new-components/checkbox-field/checkbox-icon.js +2 -1
- package/es/new-components/checkbox-field/checkbox-icon.js.map +1 -1
- package/es/new-components/columns/columns.js +4 -2
- package/es/new-components/columns/columns.js.map +1 -1
- package/es/new-components/divider/divider.js +3 -1
- package/es/new-components/divider/divider.js.map +1 -1
- package/es/new-components/heading/heading.js +2 -1
- package/es/new-components/heading/heading.js.map +1 -1
- package/es/new-components/hidden/hidden.js +2 -1
- package/es/new-components/hidden/hidden.js.map +1 -1
- package/es/new-components/icons/alert-icon.js +2 -1
- package/es/new-components/icons/alert-icon.js.map +1 -1
- package/es/new-components/inline/inline.js +2 -1
- package/es/new-components/inline/inline.js.map +1 -1
- package/es/new-components/loading/loading.js +2 -1
- package/es/new-components/loading/loading.js.map +1 -1
- package/es/new-components/modal/modal.js +10 -5
- package/es/new-components/modal/modal.js.map +1 -1
- package/es/new-components/modal/modal.module.css.js +1 -1
- package/es/new-components/password-field/password-field.js +2 -1
- package/es/new-components/password-field/password-field.js.map +1 -1
- package/es/new-components/select-field/select-field.js +2 -1
- package/es/new-components/select-field/select-field.js.map +1 -1
- package/es/new-components/stack/stack.js +2 -1
- package/es/new-components/stack/stack.js.map +1 -1
- package/es/new-components/switch-field/switch-field.js +2 -1
- package/es/new-components/switch-field/switch-field.js.map +1 -1
- package/es/new-components/tabs/tabs.js +10 -5
- package/es/new-components/tabs/tabs.js.map +1 -1
- package/es/new-components/text/text.js +2 -1
- package/es/new-components/text/text.js.map +1 -1
- package/es/new-components/text-area/text-area.js +3 -1
- package/es/new-components/text-area/text-area.js.map +1 -1
- package/es/new-components/text-field/text-field.js +2 -1
- package/es/new-components/text-field/text-field.js.map +1 -1
- package/es/new-components/text-link/text-link.js +2 -1
- package/es/new-components/text-link/text-link.js.map +1 -1
- package/lib/_virtual/_rollupPluginBabelHelpers.js +1 -1
- package/lib/components/deprecated-button/deprecated-button.js +1 -1
- package/lib/components/deprecated-button/deprecated-button.js.map +1 -1
- package/lib/components/deprecated-modal/deprecated-modal.js +1 -1
- package/lib/components/deprecated-modal/deprecated-modal.js.map +1 -1
- package/lib/components/dropdown/dropdown.js +1 -1
- package/lib/components/dropdown/dropdown.js.map +1 -1
- package/lib/components/error-message/error-message.js +1 -1
- package/lib/components/error-message/error-message.js.map +1 -1
- package/lib/components/keyboard-shortcut/keyboard-shortcut.js +1 -1
- package/lib/components/keyboard-shortcut/keyboard-shortcut.js.map +1 -1
- package/lib/components/menu/menu.js +1 -1
- package/lib/components/menu/menu.js.map +1 -1
- package/lib/components/notification/notification.js +1 -1
- package/lib/components/notification/notification.js.map +1 -1
- package/lib/components/select/select.js +1 -1
- package/lib/components/select/select.js.map +1 -1
- package/lib/components/tooltip/tooltip.js +1 -1
- package/lib/components/tooltip/tooltip.js.map +1 -1
- package/lib/new-components/base-button/base-button.js +1 -1
- package/lib/new-components/base-button/base-button.js.map +1 -1
- package/lib/new-components/box/box.js +1 -1
- package/lib/new-components/box/box.js.map +1 -1
- package/lib/new-components/button/button.js +1 -1
- package/lib/new-components/button/button.js.map +1 -1
- package/lib/new-components/button-link/button-link.js +1 -1
- package/lib/new-components/button-link/button-link.js.map +1 -1
- package/lib/new-components/checkbox-field/checkbox-field.js +1 -1
- package/lib/new-components/checkbox-field/checkbox-field.js.map +1 -1
- package/lib/new-components/checkbox-field/checkbox-icon.js +1 -1
- package/lib/new-components/checkbox-field/checkbox-icon.js.map +1 -1
- package/lib/new-components/columns/columns.js +1 -1
- package/lib/new-components/columns/columns.js.map +1 -1
- package/lib/new-components/divider/divider.js +1 -1
- package/lib/new-components/divider/divider.js.map +1 -1
- package/lib/new-components/heading/heading.js +1 -1
- package/lib/new-components/heading/heading.js.map +1 -1
- package/lib/new-components/hidden/hidden.js +1 -1
- package/lib/new-components/hidden/hidden.js.map +1 -1
- package/lib/new-components/icons/alert-icon.js +1 -1
- package/lib/new-components/icons/alert-icon.js.map +1 -1
- package/lib/new-components/inline/inline.js +1 -1
- package/lib/new-components/inline/inline.js.map +1 -1
- package/lib/new-components/loading/loading.js +1 -1
- package/lib/new-components/loading/loading.js.map +1 -1
- package/lib/new-components/modal/modal.d.ts +1 -1
- package/lib/new-components/modal/modal.js +1 -1
- package/lib/new-components/modal/modal.js.map +1 -1
- package/lib/new-components/modal/modal.module.css.js +1 -1
- package/lib/new-components/password-field/password-field.js +1 -1
- package/lib/new-components/password-field/password-field.js.map +1 -1
- package/lib/new-components/select-field/select-field.js +1 -1
- package/lib/new-components/select-field/select-field.js.map +1 -1
- package/lib/new-components/stack/stack.js +1 -1
- package/lib/new-components/stack/stack.js.map +1 -1
- package/lib/new-components/switch-field/switch-field.js +1 -1
- package/lib/new-components/switch-field/switch-field.js.map +1 -1
- package/lib/new-components/tabs/tabs.js +1 -1
- package/lib/new-components/tabs/tabs.js.map +1 -1
- package/lib/new-components/text/text.js +1 -1
- package/lib/new-components/text/text.js.map +1 -1
- package/lib/new-components/text-area/text-area.js +1 -1
- package/lib/new-components/text-area/text-area.js.map +1 -1
- package/lib/new-components/text-field/text-field.js +1 -1
- package/lib/new-components/text-field/text-field.js.map +1 -1
- package/lib/new-components/text-link/text-link.js +1 -1
- package/lib/new-components/text-link/text-link.js.map +1 -1
- package/package.json +9 -9
- package/styles/base-button.css +1 -1
- package/styles/color-picker.css +1 -1
- package/styles/deprecated-button.css +1 -1
- package/styles/deprecated-loading.css +1 -1
- package/styles/deprecated-modal.css +1 -1
- package/styles/dropdown.css +1 -1
- package/styles/loading.css +1 -1
- package/styles/modal.css +2 -2
- package/styles/modal.module.css.css +1 -1
- package/styles/reactist.css +5 -5
- package/styles/spinner.module.css.css +1 -1
- package/styles/tip.css +1 -1
|
@@ -20,29 +20,18 @@ var LocalizedFormat = _interopDefault(require('dayjs/plugin/localizedFormat'));
|
|
|
20
20
|
var Reakit = require('reakit/Menu');
|
|
21
21
|
var Popover$1 = require('reakit/Popover');
|
|
22
22
|
|
|
23
|
-
function _defineProperty(obj, key, value) {
|
|
24
|
-
if (key in obj) {
|
|
25
|
-
Object.defineProperty(obj, key, {
|
|
26
|
-
value: value,
|
|
27
|
-
enumerable: true,
|
|
28
|
-
configurable: true,
|
|
29
|
-
writable: true
|
|
30
|
-
});
|
|
31
|
-
} else {
|
|
32
|
-
obj[key] = value;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
return obj;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
23
|
function ownKeys(object, enumerableOnly) {
|
|
39
24
|
var keys = Object.keys(object);
|
|
40
25
|
|
|
41
26
|
if (Object.getOwnPropertySymbols) {
|
|
42
27
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
28
|
+
|
|
29
|
+
if (enumerableOnly) {
|
|
30
|
+
symbols = symbols.filter(function (sym) {
|
|
31
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
|
|
46
35
|
keys.push.apply(keys, symbols);
|
|
47
36
|
}
|
|
48
37
|
|
|
@@ -69,10 +58,35 @@ function _objectSpread2(target) {
|
|
|
69
58
|
return target;
|
|
70
59
|
}
|
|
71
60
|
|
|
61
|
+
function _defineProperty(obj, key, value) {
|
|
62
|
+
if (key in obj) {
|
|
63
|
+
Object.defineProperty(obj, key, {
|
|
64
|
+
value: value,
|
|
65
|
+
enumerable: true,
|
|
66
|
+
configurable: true,
|
|
67
|
+
writable: true
|
|
68
|
+
});
|
|
69
|
+
} else {
|
|
70
|
+
obj[key] = value;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
return obj;
|
|
74
|
+
}
|
|
75
|
+
|
|
72
76
|
function _inheritsLoose(subClass, superClass) {
|
|
73
77
|
subClass.prototype = Object.create(superClass.prototype);
|
|
74
78
|
subClass.prototype.constructor = subClass;
|
|
75
|
-
|
|
79
|
+
|
|
80
|
+
_setPrototypeOf(subClass, superClass);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
function _setPrototypeOf(o, p) {
|
|
84
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
85
|
+
o.__proto__ = p;
|
|
86
|
+
return o;
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
return _setPrototypeOf(o, p);
|
|
76
90
|
}
|
|
77
91
|
|
|
78
92
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
@@ -189,6 +203,7 @@ var modules_b537a8ee = {"paddingTop-xsmall":"c4803194","paddingTop-small":"_4e9a
|
|
|
189
203
|
|
|
190
204
|
var modules_131405ac = {"marginTop-xsmall":"c7813d79","marginTop-small":"d3449da6","marginTop-medium":"_4ea254c1","marginTop-large":"c0844f64","marginTop-xlarge":"_213145b4","marginTop-xxlarge":"df61c84c","marginTop--xsmall":"efe72b13","marginTop--small":"_870c2768","marginTop--medium":"_0b927c57","marginTop--large":"_461db014","marginTop--xlarge":"_2a3a8cb8","marginTop--xxlarge":"_9bcda921","tablet-marginTop-xsmall":"_6add01e4","tablet-marginTop-small":"_735ef86b","tablet-marginTop-medium":"_0477d068","tablet-marginTop-large":"_2c90af97","tablet-marginTop-xlarge":"_63a82db6","tablet-marginTop-xxlarge":"_03cd7726","tablet-marginTop--xsmall":"c986a62a","tablet-marginTop--small":"be2bdcdd","tablet-marginTop--medium":"_47d2686b","tablet-marginTop--large":"_25e5af9d","tablet-marginTop--xlarge":"ee82f441","tablet-marginTop--xxlarge":"a6f9d404","desktop-marginTop-xsmall":"_4d8d9a36","desktop-marginTop-small":"e813cee7","desktop-marginTop-medium":"_56975b7d","desktop-marginTop-large":"_53b367f6","desktop-marginTop-xlarge":"d69e7311","desktop-marginTop-xxlarge":"_92f57c7e","desktop-marginTop--xsmall":"_96880d3e","desktop-marginTop--small":"dc3f3555","desktop-marginTop--medium":"_86dd06bb","desktop-marginTop--large":"c93ef12e","desktop-marginTop--xlarge":"bc8fd4a2","desktop-marginTop--xxlarge":"b12a9124","marginRight-xsmall":"_6016f4fb","marginRight-small":"b85e3dfa","marginRight-medium":"_297575f4","marginRight-large":"b401ac6c","marginRight-xlarge":"dc3ec387","marginRight-xxlarge":"_24694604","marginRight--xsmall":"_8e9bf2ee","marginRight--small":"ae9d1115","marginRight--medium":"_14e46fc3","marginRight--large":"_3370631b","marginRight--xlarge":"_3f0e9b50","marginRight--xxlarge":"bc13e010","tablet-marginRight-xsmall":"_6fa1aae3","tablet-marginRight-small":"_2976c5cb","tablet-marginRight-medium":"_38d94802","tablet-marginRight-large":"db9569b5","tablet-marginRight-xlarge":"_4a52f06d","tablet-marginRight-xxlarge":"_8a0f0410","tablet-marginRight--xsmall":"e7d40e9d","tablet-marginRight--small":"_680fde91","tablet-marginRight--medium":"_021010ca","tablet-marginRight--large":"_9e52c87c","tablet-marginRight--xlarge":"_4d602613","tablet-marginRight--xxlarge":"_21b1b65a","desktop-marginRight-xsmall":"_7321bc07","desktop-marginRight-small":"fa1721f4","desktop-marginRight-medium":"_3fd7b4b8","desktop-marginRight-large":"_4fdc2f74","desktop-marginRight-xlarge":"c0254761","desktop-marginRight-xxlarge":"_710a5f09","desktop-marginRight--xsmall":"e08bee7f","desktop-marginRight--small":"e5ab73d2","desktop-marginRight--medium":"_5e731477","desktop-marginRight--large":"_0f57a22e","desktop-marginRight--xlarge":"_25f26ed3","desktop-marginRight--xxlarge":"_11a3b4e0","marginBottom-xsmall":"_6a4f69f7","marginBottom-small":"db26b033","marginBottom-medium":"c7313022","marginBottom-large":"a5885889","marginBottom-xlarge":"_33dfbd8e","marginBottom-xxlarge":"_795ad2de","marginBottom--xsmall":"a329dbd3","marginBottom--small":"_85e739fb","marginBottom--medium":"_681f65ff","marginBottom--large":"caf50d8f","marginBottom--xlarge":"_1e084cbf","marginBottom--xxlarge":"_3dfb1c7e","tablet-marginBottom-xsmall":"ef4735be","tablet-marginBottom-small":"de55afba","tablet-marginBottom-medium":"_0e33ce88","tablet-marginBottom-large":"_8ca391fc","tablet-marginBottom-xlarge":"_3a609d23","tablet-marginBottom-xxlarge":"_3e1177e4","tablet-marginBottom--xsmall":"d384884d","tablet-marginBottom--small":"_75254cec","tablet-marginBottom--medium":"_5d9f127d","tablet-marginBottom--large":"_835f1089","tablet-marginBottom--xlarge":"dad52a72","tablet-marginBottom--xxlarge":"_8703a4bf","desktop-marginBottom-xsmall":"_90fd20e9","desktop-marginBottom-small":"f3769191","desktop-marginBottom-medium":"_156410f8","desktop-marginBottom-large":"_7fed74d0","desktop-marginBottom-xlarge":"_477dc10e","desktop-marginBottom-xxlarge":"_85c82d89","desktop-marginBottom--xsmall":"_4f09c1e0","desktop-marginBottom--small":"_9523e048","desktop-marginBottom--medium":"efe10240","desktop-marginBottom--large":"c43971e6","desktop-marginBottom--xlarge":"f9b4da15","desktop-marginBottom--xxlarge":"a10fdf70","marginLeft-xsmall":"f9be90b4","marginLeft-small":"f53218d5","marginLeft-medium":"c4a9b3ab","marginLeft-large":"_5755e2c3","marginLeft-xlarge":"_33fc9354","marginLeft-xxlarge":"_4749a3bf","marginLeft--xsmall":"c76cb3c7","marginLeft--small":"_96003c07","marginLeft--medium":"_09988d07","marginLeft--large":"b4a486f6","marginLeft--xlarge":"f396e75e","marginLeft--xxlarge":"_81d1f26d","tablet-marginLeft-xsmall":"_0a46e8f1","tablet-marginLeft-small":"_57c970af","tablet-marginLeft-medium":"_4b6099d3","tablet-marginLeft-large":"_378fcff5","tablet-marginLeft-xlarge":"f8785663","tablet-marginLeft-xxlarge":"_72f957ee","tablet-marginLeft--xsmall":"_2288c7e1","tablet-marginLeft--small":"b27c1c05","tablet-marginLeft--medium":"_702cbb13","tablet-marginLeft--large":"_1a2748b4","tablet-marginLeft--xlarge":"b8c043a5","tablet-marginLeft--xxlarge":"_8dc8ff63","desktop-marginLeft-xsmall":"c2af646d","desktop-marginLeft-small":"c03d07be","desktop-marginLeft-medium":"_915fb1d3","desktop-marginLeft-large":"_64214ee1","desktop-marginLeft-xlarge":"_7be4a22c","desktop-marginLeft-xxlarge":"_5ec0a401","desktop-marginLeft--xsmall":"ea29f1ee","desktop-marginLeft--small":"c26652c7","desktop-marginLeft--medium":"c24f6af9","desktop-marginLeft--large":"c2671f27","desktop-marginLeft--xlarge":"cc51a04e","desktop-marginLeft--xxlarge":"fd581f54"};
|
|
191
205
|
|
|
206
|
+
var _excluded = ["as", "position", "display", "flexDirection", "flexWrap", "flexGrow", "flexShrink", "alignItems", "justifyContent", "overflow", "width", "height", "background", "border", "borderRadius", "minWidth", "maxWidth", "textAlign", "padding", "paddingY", "paddingX", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "margin", "marginY", "marginX", "marginTop", "marginRight", "marginBottom", "marginLeft", "className", "children"];
|
|
192
207
|
var Box = /*#__PURE__*/polymorphicComponent(function Box(_ref, ref) {
|
|
193
208
|
var _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9;
|
|
194
209
|
|
|
@@ -230,7 +245,7 @@ var Box = /*#__PURE__*/polymorphicComponent(function Box(_ref, ref) {
|
|
|
230
245
|
marginLeft = _ref.marginLeft,
|
|
231
246
|
className = _ref.className,
|
|
232
247
|
children = _ref.children,
|
|
233
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
248
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
234
249
|
|
|
235
250
|
var resolvedPaddingTop = (_ref2 = paddingTop !== null && paddingTop !== void 0 ? paddingTop : paddingY) !== null && _ref2 !== void 0 ? _ref2 : padding;
|
|
236
251
|
var resolvedPaddingRight = (_ref3 = paddingRight !== null && paddingRight !== void 0 ? paddingRight : paddingX) !== null && _ref3 !== void 0 ? _ref3 : padding;
|
|
@@ -253,12 +268,14 @@ var Box = /*#__PURE__*/polymorphicComponent(function Box(_ref, ref) {
|
|
|
253
268
|
|
|
254
269
|
var modules_67f2d07a = {"space-xsmall":"_6f59c771","column":"_91e05f0f","space-small":"_5a55af26","space-medium":"fa261310","space-large":"_6ebd4e46","space-xlarge":"_55ce4aea","space-xxlarge":"_04c9c3ac","tablet-space-xsmall":"ab76d8cd","tablet-space-small":"_14629bfb","tablet-space-medium":"_5b4e39ea","tablet-space-large":"ba270182","tablet-space-xlarge":"b96e7ec7","tablet-space-xxlarge":"d276612c","desktop-space-xsmall":"d7a73106","desktop-space-small":"_8f5e0e9e","desktop-space-medium":"_3a168411","desktop-space-large":"_0abcc12e","desktop-space-xlarge":"e0bafc60","desktop-space-xxlarge":"d2df9afd","columnWidth-auto":"b18d0b47","columnWidth-1-2":"_102a6b27","columnWidth-1-3":"_829872fe","columnWidth-2-3":"cf5aef9a","columnWidth-1-4":"_931bf714","columnWidth-3-4":"b0303130","columnWidth-1-5":"f6589a6f","columnWidth-2-5":"_2823aed9","columnWidth-3-5":"d00ba3bb","columnWidth-4-5":"_338f2d7c","tablet-tablet-space-xsmall":"_06582234"};
|
|
255
270
|
|
|
271
|
+
var _excluded$1 = ["width", "children", "exceptionallySetClassName"],
|
|
272
|
+
_excluded2 = ["space", "align", "alignY", "collapseBelow", "children", "exceptionallySetClassName"];
|
|
256
273
|
var Column = /*#__PURE__*/polymorphicComponent(function Column(_ref, ref) {
|
|
257
274
|
var _ref$width = _ref.width,
|
|
258
275
|
width = _ref$width === void 0 ? 'auto' : _ref$width,
|
|
259
276
|
children = _ref.children,
|
|
260
277
|
exceptionallySetClassName = _ref.exceptionallySetClassName,
|
|
261
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
278
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1);
|
|
262
279
|
|
|
263
280
|
return /*#__PURE__*/React.createElement(Box, Object.assign({}, props, {
|
|
264
281
|
className: [exceptionallySetClassName, modules_67f2d07a.column, width !== 'content' ? getClassNames(modules_67f2d07a, 'columnWidth', width.replace('/', '-')) : null],
|
|
@@ -278,7 +295,7 @@ var Columns = /*#__PURE__*/polymorphicComponent(function Columns(_ref2, ref) {
|
|
|
278
295
|
collapseBelow = _ref2.collapseBelow,
|
|
279
296
|
children = _ref2.children,
|
|
280
297
|
exceptionallySetClassName = _ref2.exceptionallySetClassName,
|
|
281
|
-
props = _objectWithoutPropertiesLoose(_ref2,
|
|
298
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2);
|
|
282
299
|
|
|
283
300
|
return /*#__PURE__*/React.createElement(Box, Object.assign({}, props, {
|
|
284
301
|
className: [exceptionallySetClassName, getClassNames(modules_67f2d07a, 'space', space)],
|
|
@@ -303,10 +320,12 @@ var Columns = /*#__PURE__*/polymorphicComponent(function Columns(_ref2, ref) {
|
|
|
303
320
|
|
|
304
321
|
var modules_c742c4d7 = {"weight-primary":"_3f3a401c","weight-secondary":"_03b05b70","weight-tertiary":"b6f67ff8"};
|
|
305
322
|
|
|
323
|
+
var _excluded$2 = ["weight"];
|
|
324
|
+
|
|
306
325
|
function Divider(_ref) {
|
|
307
326
|
var _ref$weight = _ref.weight,
|
|
308
327
|
weight = _ref$weight === void 0 ? 'tertiary' : _ref$weight,
|
|
309
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
328
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2);
|
|
310
329
|
|
|
311
330
|
return /*#__PURE__*/React.createElement(Box, Object.assign({
|
|
312
331
|
as: "hr",
|
|
@@ -316,6 +335,7 @@ function Divider(_ref) {
|
|
|
316
335
|
|
|
317
336
|
var modules_da5d5c21 = {"space-xsmall":"_6b1279e0","space-small":"_0d82c42d","space-medium":"_556714e1","space-large":"e90b43fb","space-xlarge":"a9c34345","space-xxlarge":"aa102efe","tablet-space-xsmall":"_34d16157","tablet-space-small":"c7e0e54f","tablet-space-medium":"_7f2a4e4b","tablet-space-large":"ae256487","tablet-space-xlarge":"e88be0f7","tablet-space-xxlarge":"dc7bcb18","desktop-space-xsmall":"_853f3012","desktop-space-small":"_3bfaf758","desktop-space-medium":"_36462a93","desktop-space-large":"e73081b7","desktop-space-xlarge":"e22ec9dd","desktop-space-xxlarge":"_4a20bd12"};
|
|
318
337
|
|
|
338
|
+
var _excluded$3 = ["as", "space", "align", "alignY", "children", "exceptionallySetClassName"];
|
|
319
339
|
var Inline = /*#__PURE__*/polymorphicComponent(function Inline(_ref, ref) {
|
|
320
340
|
var as = _ref.as,
|
|
321
341
|
space = _ref.space,
|
|
@@ -325,7 +345,7 @@ var Inline = /*#__PURE__*/polymorphicComponent(function Inline(_ref, ref) {
|
|
|
325
345
|
alignY = _ref$alignY === void 0 ? 'center' : _ref$alignY,
|
|
326
346
|
children = _ref.children,
|
|
327
347
|
exceptionallySetClassName = _ref.exceptionallySetClassName,
|
|
328
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
348
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$3);
|
|
329
349
|
|
|
330
350
|
return /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(Box, Object.assign({}, props, {
|
|
331
351
|
as: as,
|
|
@@ -344,6 +364,7 @@ var Inline = /*#__PURE__*/polymorphicComponent(function Inline(_ref, ref) {
|
|
|
344
364
|
|
|
345
365
|
var modules_3af3b7ac = {"space-xsmall":"_7b475ead","space-small":"_5641699f","space-medium":"_1a1c63e4","space-large":"_560f80a0","space-xlarge":"_84ffebbc","space-xxlarge":"b60a65cb","tablet-space-xsmall":"d808f5c3","tablet-space-small":"a51c76b3","tablet-space-medium":"_7185a7aa","tablet-space-large":"af82e610","tablet-space-xlarge":"_88b4ff46","tablet-space-xxlarge":"_9de15321","desktop-space-xsmall":"_6fb32d20","desktop-space-small":"_07ee315a","desktop-space-medium":"a270d7ec","desktop-space-large":"ea6ebb29","desktop-space-xlarge":"_35b36178","desktop-space-xxlarge":"_56c7dc23"};
|
|
346
366
|
|
|
367
|
+
var _excluded$4 = ["as", "space", "align", "dividers", "children", "exceptionallySetClassName"];
|
|
347
368
|
var Stack = /*#__PURE__*/polymorphicComponent(function Stack(_ref, ref) {
|
|
348
369
|
var as = _ref.as,
|
|
349
370
|
space = _ref.space,
|
|
@@ -353,7 +374,7 @@ var Stack = /*#__PURE__*/polymorphicComponent(function Stack(_ref, ref) {
|
|
|
353
374
|
dividers = _ref$dividers === void 0 ? 'none' : _ref$dividers,
|
|
354
375
|
children = _ref.children,
|
|
355
376
|
exceptionallySetClassName = _ref.exceptionallySetClassName,
|
|
356
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
377
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$4);
|
|
357
378
|
|
|
358
379
|
var alignProps = align === 'start' ? undefined : {
|
|
359
380
|
width: 'full',
|
|
@@ -376,6 +397,7 @@ var Stack = /*#__PURE__*/polymorphicComponent(function Stack(_ref, ref) {
|
|
|
376
397
|
|
|
377
398
|
var modules_4689e97e = {"hiddenOnPrint":"_0e595dea"};
|
|
378
399
|
|
|
400
|
+
var _excluded$5 = ["display", "children", "exceptionallySetClassName"];
|
|
379
401
|
/**
|
|
380
402
|
* A component that allows to specify how to hide itself on certain responsive screen sizes, or on
|
|
381
403
|
* print media.
|
|
@@ -390,7 +412,7 @@ var Hidden = /*#__PURE__*/polymorphicComponent(function Hidden(_ref, ref) {
|
|
|
390
412
|
display = _ref$display === void 0 ? 'block' : _ref$display,
|
|
391
413
|
children = _ref.children,
|
|
392
414
|
exceptionallySetClassName = _ref.exceptionallySetClassName,
|
|
393
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
415
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
|
|
394
416
|
|
|
395
417
|
var hiddenOnPrint = 'print' in props && props.print;
|
|
396
418
|
var hiddenOnDesktop = ('above' in props);
|
|
@@ -439,6 +461,7 @@ var HiddenVisually = /*#__PURE__*/polymorphicComponent(function HiddenVisually(p
|
|
|
439
461
|
}));
|
|
440
462
|
});
|
|
441
463
|
|
|
464
|
+
var _excluded$6 = ["tone"];
|
|
442
465
|
var alertIconForTone = {
|
|
443
466
|
info: AlertInfoIcon,
|
|
444
467
|
positive: AlertPositiveIcon,
|
|
@@ -448,7 +471,7 @@ var alertIconForTone = {
|
|
|
448
471
|
|
|
449
472
|
function AlertIcon(_ref) {
|
|
450
473
|
var tone = _ref.tone,
|
|
451
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
474
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
|
|
452
475
|
|
|
453
476
|
var Icon = alertIconForTone[tone];
|
|
454
477
|
return Icon ? /*#__PURE__*/React.createElement(Icon, Object.assign({}, props)) : null;
|
|
@@ -574,6 +597,7 @@ function Spinner(_ref) {
|
|
|
574
597
|
})));
|
|
575
598
|
}
|
|
576
599
|
|
|
600
|
+
var _excluded$7 = ["size", "exceptionallySetClassName"];
|
|
577
601
|
var sizeMapping = {
|
|
578
602
|
small: 24,
|
|
579
603
|
medium: 36,
|
|
@@ -586,7 +610,7 @@ function Loading(_ref) {
|
|
|
586
610
|
var _ref$size = _ref.size,
|
|
587
611
|
size = _ref$size === void 0 ? 'small' : _ref$size,
|
|
588
612
|
exceptionallySetClassName = _ref.exceptionallySetClassName,
|
|
589
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
613
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
|
|
590
614
|
|
|
591
615
|
var numericSize = (_sizeMapping$size = sizeMapping[size]) !== null && _sizeMapping$size !== void 0 ? _sizeMapping$size : sizeMapping.small;
|
|
592
616
|
return /*#__PURE__*/React__default.createElement(Box, Object.assign({}, props, {
|
|
@@ -623,6 +647,7 @@ function Notice(_ref) {
|
|
|
623
647
|
|
|
624
648
|
var modules_949d2ff4 = {"heading":"_2f45487c","weight-light":"a20cbde9","tone-secondary":"_75f44518","tone-danger":"_3952cc59","size-largest":"b71d22ef","size-larger":"f15346e2","size-smaller":"_3cae1428","lineClampMultipleLines":"_347f6fcd","lineClamp-1":"_895c0b16","lineClamp-2":"_2e4808bd","lineClamp-3":"_1bdb7bdc","lineClamp-4":"_159943ea","lineClamp-5":"e44e008d"};
|
|
625
649
|
|
|
650
|
+
var _excluded$8 = ["level", "weight", "size", "tone", "children", "lineClamp", "align", "exceptionallySetClassName"];
|
|
626
651
|
var Heading = /*#__PURE__*/React.forwardRef(function Heading(_ref, ref) {
|
|
627
652
|
var level = _ref.level,
|
|
628
653
|
_ref$weight = _ref.weight,
|
|
@@ -634,7 +659,7 @@ var Heading = /*#__PURE__*/React.forwardRef(function Heading(_ref, ref) {
|
|
|
634
659
|
lineClamp = _ref.lineClamp,
|
|
635
660
|
align = _ref.align,
|
|
636
661
|
exceptionallySetClassName = _ref.exceptionallySetClassName,
|
|
637
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
662
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
|
|
638
663
|
|
|
639
664
|
// In TypeScript v4.1, this would be properly recognized without needing the type assertion
|
|
640
665
|
// https://devblogs.microsoft.com/typescript/announcing-typescript-4-1-beta/#template-literal-types
|
|
@@ -653,6 +678,7 @@ var Heading = /*#__PURE__*/React.forwardRef(function Heading(_ref, ref) {
|
|
|
653
678
|
|
|
654
679
|
var modules_a9637dd3 = {"text":"c12d1277","size-caption":"c88e1204","size-copy":"_426d67ec","size-subtitle":"f978d6c7","weight-semibold":"_0c31eccd","weight-bold":"aba17bdd","tone-secondary":"_2767b43d","tone-danger":"e8ae531e","lineClampMultipleLines":"dc839422","lineClamp-1":"e2d23135","lineClamp-2":"_7c778b7e","lineClamp-3":"_5ff41166","lineClamp-4":"b7a4998e","lineClamp-5":"_6a7f8803"};
|
|
655
680
|
|
|
681
|
+
var _excluded$9 = ["as", "size", "weight", "tone", "align", "children", "lineClamp", "exceptionallySetClassName"];
|
|
656
682
|
var Text = /*#__PURE__*/polymorphicComponent(function Text(_ref, ref) {
|
|
657
683
|
var as = _ref.as,
|
|
658
684
|
_ref$size = _ref.size,
|
|
@@ -665,7 +691,7 @@ var Text = /*#__PURE__*/polymorphicComponent(function Text(_ref, ref) {
|
|
|
665
691
|
children = _ref.children,
|
|
666
692
|
lineClamp = _ref.lineClamp,
|
|
667
693
|
exceptionallySetClassName = _ref.exceptionallySetClassName,
|
|
668
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
694
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
|
|
669
695
|
|
|
670
696
|
var lineClampMultipleLines = typeof lineClamp === 'string' ? Number(lineClamp) > 1 : (lineClamp !== null && lineClamp !== void 0 ? lineClamp : 1) > 1;
|
|
671
697
|
return /*#__PURE__*/React.createElement(Box, Object.assign({}, props, {
|
|
@@ -679,6 +705,8 @@ var Text = /*#__PURE__*/polymorphicComponent(function Text(_ref, ref) {
|
|
|
679
705
|
}), children);
|
|
680
706
|
});
|
|
681
707
|
|
|
708
|
+
var _excluded$a = ["children", "content", "position", "gapSize", "className"];
|
|
709
|
+
|
|
682
710
|
var SHOW_DELAY = 500;
|
|
683
711
|
var HIDE_DELAY = 100;
|
|
684
712
|
|
|
@@ -705,7 +733,7 @@ function Tooltip(_ref) {
|
|
|
705
733
|
_ref$gapSize = _ref.gapSize,
|
|
706
734
|
gapSize = _ref$gapSize === void 0 ? 3 : _ref$gapSize,
|
|
707
735
|
className = _ref.className,
|
|
708
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
736
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
|
709
737
|
|
|
710
738
|
var tooltip = useDelayedTooltipState({
|
|
711
739
|
placement: position,
|
|
@@ -792,6 +820,8 @@ function useDelay() {
|
|
|
792
820
|
|
|
793
821
|
var modules_b9569bce = {"label":"_1f20c88a","baseButton":"_623015f3","size-small":"_062de645","size-normal":"_55e2a6a9","size-large":"cab32a7c","disabled":"e71c191a","iconButton":"_368efc16","startIcon":"d35389c1","endIcon":"_900d41d8","variant-primary":"_7c95e162","variant-secondary":"_9cb889aa","variant-tertiary":"_611b5b28","variant-quaternary":"_80c2bb84","tone-destructive":"ee13c455"};
|
|
794
822
|
|
|
823
|
+
var _excluded$b = ["as", "variant", "tone", "size", "disabled", "loading", "tooltip", "onClick", "exceptionallySetClassName", "children", "startIcon", "endIcon", "icon"];
|
|
824
|
+
|
|
795
825
|
function preventDefault(event) {
|
|
796
826
|
event.preventDefault();
|
|
797
827
|
}
|
|
@@ -825,7 +855,7 @@ var BaseButton = /*#__PURE__*/polymorphicComponent(function BaseButton(_ref, ref
|
|
|
825
855
|
startIcon = _ref.startIcon,
|
|
826
856
|
endIcon = _ref.endIcon,
|
|
827
857
|
icon = _ref.icon,
|
|
828
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
858
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
|
|
829
859
|
|
|
830
860
|
var isDisabled = loading || disabled;
|
|
831
861
|
var buttonElement = /*#__PURE__*/React.createElement(Box, Object.assign({}, props, {
|
|
@@ -852,6 +882,7 @@ var BaseButton = /*#__PURE__*/polymorphicComponent(function BaseButton(_ref, ref
|
|
|
852
882
|
}, buttonElement) : buttonElement;
|
|
853
883
|
});
|
|
854
884
|
|
|
885
|
+
var _excluded$c = ["variant", "tone", "size", "type", "disabled", "exceptionallySetClassName"];
|
|
855
886
|
/**
|
|
856
887
|
* A semantic button that also looks like a button, and provides all the necessary visual variants.
|
|
857
888
|
* It follows the [WAI-ARIA Button Pattern](https://www.w3.org/TR/wai-aria-practices/#button).
|
|
@@ -872,7 +903,7 @@ var Button = /*#__PURE__*/React.forwardRef(function Button(_ref, ref) {
|
|
|
872
903
|
_ref$disabled = _ref.disabled,
|
|
873
904
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
874
905
|
exceptionallySetClassName = _ref.exceptionallySetClassName,
|
|
875
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
906
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
|
|
876
907
|
|
|
877
908
|
return /*#__PURE__*/React.createElement(BaseButton, Object.assign({}, props, {
|
|
878
909
|
as: "button",
|
|
@@ -886,6 +917,7 @@ var Button = /*#__PURE__*/React.forwardRef(function Button(_ref, ref) {
|
|
|
886
917
|
}));
|
|
887
918
|
});
|
|
888
919
|
|
|
920
|
+
var _excluded$d = ["as", "variant", "tone", "size", "exceptionallySetClassName", "openInNewTab"];
|
|
889
921
|
/**
|
|
890
922
|
* A semantic link that looks like a button, exactly matching the `Button` component in all visual
|
|
891
923
|
* aspects.
|
|
@@ -906,7 +938,7 @@ var ButtonLink = /*#__PURE__*/polymorphicComponent(function ButtonLink(_ref, ref
|
|
|
906
938
|
exceptionallySetClassName = _ref.exceptionallySetClassName,
|
|
907
939
|
_ref$openInNewTab = _ref.openInNewTab,
|
|
908
940
|
openInNewTab = _ref$openInNewTab === void 0 ? false : _ref$openInNewTab,
|
|
909
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
941
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
|
|
910
942
|
|
|
911
943
|
return /*#__PURE__*/React.createElement(BaseButton, Object.assign({}, props, {
|
|
912
944
|
as: as,
|
|
@@ -922,13 +954,14 @@ var ButtonLink = /*#__PURE__*/polymorphicComponent(function ButtonLink(_ref, ref
|
|
|
922
954
|
|
|
923
955
|
var modules_3d05deee = {"container":"_12eda218"};
|
|
924
956
|
|
|
957
|
+
var _excluded$e = ["as", "openInNewTab", "exceptionallySetClassName"];
|
|
925
958
|
var TextLink = /*#__PURE__*/polymorphicComponent(function TextLink(_ref, ref) {
|
|
926
959
|
var _ref$as = _ref.as,
|
|
927
960
|
as = _ref$as === void 0 ? 'a' : _ref$as,
|
|
928
961
|
_ref$openInNewTab = _ref.openInNewTab,
|
|
929
962
|
openInNewTab = _ref$openInNewTab === void 0 ? false : _ref$openInNewTab,
|
|
930
963
|
exceptionallySetClassName = _ref.exceptionallySetClassName,
|
|
931
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
964
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
|
|
932
965
|
|
|
933
966
|
return /*#__PURE__*/React.createElement(Box, Object.assign({}, props, {
|
|
934
967
|
as: as,
|
|
@@ -940,6 +973,7 @@ var TextLink = /*#__PURE__*/polymorphicComponent(function TextLink(_ref, ref) {
|
|
|
940
973
|
}));
|
|
941
974
|
});
|
|
942
975
|
|
|
976
|
+
var _excluded$f = ["checked", "indeterminate", "disabled"];
|
|
943
977
|
var svgPath = {
|
|
944
978
|
checked: 'M18 4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h12zm-2.457 4.293l-5.293 5.293-1.793-1.793a1 1 0 1 0-1.414 1.414l2.5 2.5a1 1 0 0 0 1.414 0l6-6a1 1 0 1 0-1.414-1.414z',
|
|
945
979
|
unchecked: 'M18 4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h12zm0 1H6a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1z',
|
|
@@ -976,7 +1010,7 @@ function CheckboxIcon(_ref2) {
|
|
|
976
1010
|
var checked = _ref2.checked,
|
|
977
1011
|
indeterminate = _ref2.indeterminate,
|
|
978
1012
|
disabled = _ref2.disabled,
|
|
979
|
-
props = _objectWithoutPropertiesLoose(_ref2,
|
|
1013
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$f);
|
|
980
1014
|
|
|
981
1015
|
var pathKey = getPathKey({
|
|
982
1016
|
checked: checked,
|
|
@@ -997,6 +1031,7 @@ function CheckboxIcon(_ref2) {
|
|
|
997
1031
|
|
|
998
1032
|
var modules_664a6a80 = {"container":"f9e0a1b8","disabled":"_01411889","checked":"ffdfd8fb"};
|
|
999
1033
|
|
|
1034
|
+
var _excluded$g = ["label", "disabled", "indeterminate", "defaultChecked", "onChange"];
|
|
1000
1035
|
var CheckboxField = /*#__PURE__*/React.forwardRef(function CheckboxField(_ref, ref) {
|
|
1001
1036
|
var _ref2, _props$checked, _props$checked2;
|
|
1002
1037
|
|
|
@@ -1005,7 +1040,7 @@ var CheckboxField = /*#__PURE__*/React.forwardRef(function CheckboxField(_ref, r
|
|
|
1005
1040
|
indeterminate = _ref.indeterminate,
|
|
1006
1041
|
defaultChecked = _ref.defaultChecked,
|
|
1007
1042
|
_onChange = _ref.onChange,
|
|
1008
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
1043
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
|
|
1009
1044
|
|
|
1010
1045
|
var isControlledComponent = typeof props.checked === 'boolean';
|
|
1011
1046
|
|
|
@@ -1182,6 +1217,7 @@ var modules_3f03ead6 = {"inputWrapper":"_460d581b"};
|
|
|
1182
1217
|
|
|
1183
1218
|
var modules_aaf25250 = {"inputWrapper":"dd9ffeab"};
|
|
1184
1219
|
|
|
1220
|
+
var _excluded$h = ["label", "secondaryLabel", "auxiliaryLabel", "hint", "maxWidth", "togglePasswordLabel", "hidden", "aria-describedby"];
|
|
1185
1221
|
var PasswordField = /*#__PURE__*/React.forwardRef(function PasswordField(_ref, ref) {
|
|
1186
1222
|
var label = _ref.label,
|
|
1187
1223
|
secondaryLabel = _ref.secondaryLabel,
|
|
@@ -1192,7 +1228,7 @@ var PasswordField = /*#__PURE__*/React.forwardRef(function PasswordField(_ref, r
|
|
|
1192
1228
|
togglePasswordLabel = _ref$togglePasswordLa === void 0 ? 'Toggle password visibility' : _ref$togglePasswordLa,
|
|
1193
1229
|
hidden = _ref.hidden,
|
|
1194
1230
|
ariaDescribedBy = _ref['aria-describedby'],
|
|
1195
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
1231
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
|
|
1196
1232
|
|
|
1197
1233
|
var id = useId(props.id);
|
|
1198
1234
|
var internalRef = React.useRef(null);
|
|
@@ -1245,6 +1281,7 @@ var PasswordField = /*#__PURE__*/React.forwardRef(function PasswordField(_ref, r
|
|
|
1245
1281
|
|
|
1246
1282
|
var modules_1fa9b208 = {"selectWrapper":"_828e09c5"};
|
|
1247
1283
|
|
|
1284
|
+
var _excluded$i = ["id", "label", "secondaryLabel", "auxiliaryLabel", "hint", "maxWidth", "children", "hidden", "aria-describedby"];
|
|
1248
1285
|
var SelectField = /*#__PURE__*/React.forwardRef(function SelectField(_ref, ref) {
|
|
1249
1286
|
var id = _ref.id,
|
|
1250
1287
|
label = _ref.label,
|
|
@@ -1255,7 +1292,7 @@ var SelectField = /*#__PURE__*/React.forwardRef(function SelectField(_ref, ref)
|
|
|
1255
1292
|
children = _ref.children,
|
|
1256
1293
|
hidden = _ref.hidden,
|
|
1257
1294
|
ariaDescribedBy = _ref['aria-describedby'],
|
|
1258
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
1295
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
|
|
1259
1296
|
|
|
1260
1297
|
return /*#__PURE__*/React.createElement(BaseField, {
|
|
1261
1298
|
id: id,
|
|
@@ -1291,6 +1328,7 @@ function SelectChevron(props) {
|
|
|
1291
1328
|
|
|
1292
1329
|
var modules_8e05f7c9 = {"container":"_99a80509","disabled":"b5cf26ef","checked":"a63c43a2","toggle":"f318ae83","label":"_427926b9","handle":"_9fcd994c"};
|
|
1293
1330
|
|
|
1331
|
+
var _excluded$j = ["label", "hint", "disabled", "hidden", "defaultChecked", "id", "aria-describedby", "onChange"];
|
|
1294
1332
|
var SwitchField = /*#__PURE__*/React.forwardRef(function SwitchField(_ref, ref) {
|
|
1295
1333
|
var _ref2, _props$checked, _props$checked2;
|
|
1296
1334
|
|
|
@@ -1303,7 +1341,7 @@ var SwitchField = /*#__PURE__*/React.forwardRef(function SwitchField(_ref, ref)
|
|
|
1303
1341
|
originalId = _ref.id,
|
|
1304
1342
|
originalAriaDescribedBy = _ref['aria-describedby'],
|
|
1305
1343
|
_onChange = _ref.onChange,
|
|
1306
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
1344
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
|
|
1307
1345
|
|
|
1308
1346
|
var id = useId(originalId);
|
|
1309
1347
|
var hintId = useId();
|
|
@@ -1354,6 +1392,8 @@ var SwitchField = /*#__PURE__*/React.forwardRef(function SwitchField(_ref, ref)
|
|
|
1354
1392
|
|
|
1355
1393
|
var modules_2728c236 = {"container":"_5a579f96"};
|
|
1356
1394
|
|
|
1395
|
+
var _excluded$k = ["id", "label", "secondaryLabel", "auxiliaryLabel", "hint", "maxWidth"];
|
|
1396
|
+
|
|
1357
1397
|
function TextArea(_ref) {
|
|
1358
1398
|
var id = _ref.id,
|
|
1359
1399
|
label = _ref.label,
|
|
@@ -1361,7 +1401,7 @@ function TextArea(_ref) {
|
|
|
1361
1401
|
auxiliaryLabel = _ref.auxiliaryLabel,
|
|
1362
1402
|
hint = _ref.hint,
|
|
1363
1403
|
maxWidth = _ref.maxWidth,
|
|
1364
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
1404
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
|
|
1365
1405
|
|
|
1366
1406
|
return /*#__PURE__*/React.createElement(BaseField, {
|
|
1367
1407
|
id: id,
|
|
@@ -1378,6 +1418,7 @@ function TextArea(_ref) {
|
|
|
1378
1418
|
});
|
|
1379
1419
|
}
|
|
1380
1420
|
|
|
1421
|
+
var _excluded$l = ["id", "label", "secondaryLabel", "auxiliaryLabel", "hint", "type", "maxWidth", "hidden", "aria-describedby"];
|
|
1381
1422
|
var TextField = /*#__PURE__*/React.forwardRef(function TextField(_ref, ref) {
|
|
1382
1423
|
var id = _ref.id,
|
|
1383
1424
|
label = _ref.label,
|
|
@@ -1389,7 +1430,7 @@ var TextField = /*#__PURE__*/React.forwardRef(function TextField(_ref, ref) {
|
|
|
1389
1430
|
maxWidth = _ref.maxWidth,
|
|
1390
1431
|
hidden = _ref.hidden,
|
|
1391
1432
|
ariaDescribedBy = _ref['aria-describedby'],
|
|
1392
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
1433
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
|
|
1393
1434
|
|
|
1394
1435
|
return /*#__PURE__*/React.createElement(BaseField, {
|
|
1395
1436
|
id: id,
|
|
@@ -1434,6 +1475,11 @@ function usePrevious(value) {
|
|
|
1434
1475
|
|
|
1435
1476
|
var modules_40c67f5b = {"tab":"_7cdcd0b6","tab-normal":"af6705d0","tab-primary":"ad705020","tab-secondary":"_69a2043b","tab-tertiary":"_5b695667","tab-plain":"_88d3dc5e"};
|
|
1436
1477
|
|
|
1478
|
+
var _excluded$m = ["color", "variant"],
|
|
1479
|
+
_excluded2$1 = ["children", "space"],
|
|
1480
|
+
_excluded3 = ["color", "variant"],
|
|
1481
|
+
_excluded4 = ["children", "id", "as", "render"],
|
|
1482
|
+
_excluded5 = ["color", "variant"];
|
|
1437
1483
|
var TabsContext = /*#__PURE__*/React.createContext(null);
|
|
1438
1484
|
/**
|
|
1439
1485
|
* Used to group components that compose a set of tabs. There can only be one active tab within the same `<Tabs>` group.
|
|
@@ -1485,7 +1531,7 @@ function Tab(_ref2) {
|
|
|
1485
1531
|
|
|
1486
1532
|
var color = tabContextValue.color,
|
|
1487
1533
|
variant = tabContextValue.variant,
|
|
1488
|
-
tabState = _objectWithoutPropertiesLoose(tabContextValue,
|
|
1534
|
+
tabState = _objectWithoutPropertiesLoose(tabContextValue, _excluded$m);
|
|
1489
1535
|
|
|
1490
1536
|
return /*#__PURE__*/React.createElement(Tab$1.Tab, Object.assign({
|
|
1491
1537
|
className: classNames(modules_40c67f5b.tab, modules_40c67f5b["tab-" + (variant !== null && variant !== void 0 ? variant : '')], modules_40c67f5b["tab-" + (color !== null && color !== void 0 ? color : '')]),
|
|
@@ -1500,7 +1546,7 @@ function TabList(_ref3) {
|
|
|
1500
1546
|
var children = _ref3.children,
|
|
1501
1547
|
_ref3$space = _ref3.space,
|
|
1502
1548
|
space = _ref3$space === void 0 ? 'medium' : _ref3$space,
|
|
1503
|
-
props = _objectWithoutPropertiesLoose(_ref3,
|
|
1549
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$1);
|
|
1504
1550
|
|
|
1505
1551
|
var tabContextValue = React.useContext(TabsContext);
|
|
1506
1552
|
|
|
@@ -1508,7 +1554,7 @@ function TabList(_ref3) {
|
|
|
1508
1554
|
return null;
|
|
1509
1555
|
}
|
|
1510
1556
|
|
|
1511
|
-
var tabState = _objectWithoutPropertiesLoose(tabContextValue,
|
|
1557
|
+
var tabState = _objectWithoutPropertiesLoose(tabContextValue, _excluded3);
|
|
1512
1558
|
|
|
1513
1559
|
return /*#__PURE__*/React.createElement(Tab$1.TabList, Object.assign({}, props, tabState), /*#__PURE__*/React.createElement(Inline, {
|
|
1514
1560
|
space: space
|
|
@@ -1524,7 +1570,7 @@ var TabPanel = /*#__PURE__*/polymorphicComponent(function TabPanel(_ref4, ref) {
|
|
|
1524
1570
|
as = _ref4.as,
|
|
1525
1571
|
_ref4$render = _ref4.render,
|
|
1526
1572
|
render = _ref4$render === void 0 ? 'always' : _ref4$render,
|
|
1527
|
-
props = _objectWithoutPropertiesLoose(_ref4,
|
|
1573
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded4);
|
|
1528
1574
|
|
|
1529
1575
|
var tabContextValue = React.useContext(TabsContext);
|
|
1530
1576
|
|
|
@@ -1543,7 +1589,7 @@ var TabPanel = /*#__PURE__*/polymorphicComponent(function TabPanel(_ref4, ref) {
|
|
|
1543
1589
|
return null;
|
|
1544
1590
|
}
|
|
1545
1591
|
|
|
1546
|
-
var tabState = _objectWithoutPropertiesLoose(tabContextValue,
|
|
1592
|
+
var tabState = _objectWithoutPropertiesLoose(tabContextValue, _excluded5);
|
|
1547
1593
|
|
|
1548
1594
|
return /*#__PURE__*/React.createElement(Tab$1.TabPanel, Object.assign({
|
|
1549
1595
|
tabId: id
|
|
@@ -1565,8 +1611,13 @@ function TabAwareSlot(_ref5) {
|
|
|
1565
1611
|
}) : null;
|
|
1566
1612
|
}
|
|
1567
1613
|
|
|
1568
|
-
var modules_8f59d13b = {"reach-portal":"
|
|
1614
|
+
var modules_8f59d13b = {"reach-portal":"dddb40c3","fadein":"_955f2d73","fitContent":"_95c7550e","container":"_88079712","full":"_4779d078","large":"_5fd86231","medium":"bdfb5931","small":"_4e848a11","xlarge":"d673fba2","overlay":"ea9ae0cc","expand":"a8bf8a4f","buttonContainer":"_44d6850e"};
|
|
1569
1615
|
|
|
1616
|
+
var _excluded$n = ["isOpen", "onDismiss", "height", "width", "exceptionallySetClassName", "autoFocus", "children"],
|
|
1617
|
+
_excluded2$2 = ["children", "button", "withDivider", "exceptionallySetClassName"],
|
|
1618
|
+
_excluded3$1 = ["exceptionallySetClassName", "children"],
|
|
1619
|
+
_excluded4$1 = ["exceptionallySetClassName", "withDivider"],
|
|
1620
|
+
_excluded5$1 = ["children"];
|
|
1570
1621
|
var ModalContext = /*#__PURE__*/React.createContext({
|
|
1571
1622
|
onDismiss: undefined,
|
|
1572
1623
|
height: 'fitContent'
|
|
@@ -1597,7 +1648,7 @@ function Modal(_ref) {
|
|
|
1597
1648
|
_ref$autoFocus = _ref.autoFocus,
|
|
1598
1649
|
autoFocus = _ref$autoFocus === void 0 ? true : _ref$autoFocus,
|
|
1599
1650
|
children = _ref.children,
|
|
1600
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
1651
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
|
|
1601
1652
|
|
|
1602
1653
|
var contextValue = React.useMemo(function () {
|
|
1603
1654
|
return {
|
|
@@ -1661,7 +1712,7 @@ function ModalHeader(_ref2) {
|
|
|
1661
1712
|
_ref2$withDivider = _ref2.withDivider,
|
|
1662
1713
|
withDivider = _ref2$withDivider === void 0 ? false : _ref2$withDivider,
|
|
1663
1714
|
exceptionallySetClassName = _ref2.exceptionallySetClassName,
|
|
1664
|
-
props = _objectWithoutPropertiesLoose(_ref2,
|
|
1715
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$2);
|
|
1665
1716
|
|
|
1666
1717
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, Object.assign({}, props, {
|
|
1667
1718
|
as: "header",
|
|
@@ -1697,7 +1748,7 @@ function ModalHeader(_ref2) {
|
|
|
1697
1748
|
function ModalBody(_ref3) {
|
|
1698
1749
|
var exceptionallySetClassName = _ref3.exceptionallySetClassName,
|
|
1699
1750
|
children = _ref3.children,
|
|
1700
|
-
props = _objectWithoutPropertiesLoose(_ref3,
|
|
1751
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$1);
|
|
1701
1752
|
|
|
1702
1753
|
var _React$useContext2 = React.useContext(ModalContext),
|
|
1703
1754
|
height = _React$useContext2.height;
|
|
@@ -1724,7 +1775,7 @@ function ModalFooter(_ref4) {
|
|
|
1724
1775
|
var exceptionallySetClassName = _ref4.exceptionallySetClassName,
|
|
1725
1776
|
_ref4$withDivider = _ref4.withDivider,
|
|
1726
1777
|
withDivider = _ref4$withDivider === void 0 ? false : _ref4$withDivider,
|
|
1727
|
-
props = _objectWithoutPropertiesLoose(_ref4,
|
|
1778
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$1);
|
|
1728
1779
|
|
|
1729
1780
|
return /*#__PURE__*/React.createElement(React.Fragment, null, withDivider ? /*#__PURE__*/React.createElement(Divider, null) : null, /*#__PURE__*/React.createElement(Box, Object.assign({
|
|
1730
1781
|
as: "footer"
|
|
@@ -1743,7 +1794,7 @@ function ModalFooter(_ref4) {
|
|
|
1743
1794
|
|
|
1744
1795
|
function ModalActions(_ref5) {
|
|
1745
1796
|
var children = _ref5.children,
|
|
1746
|
-
props = _objectWithoutPropertiesLoose(_ref5,
|
|
1797
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded5$1);
|
|
1747
1798
|
|
|
1748
1799
|
return /*#__PURE__*/React.createElement(ModalFooter, Object.assign({}, props), /*#__PURE__*/React.createElement(Inline, {
|
|
1749
1800
|
align: "right",
|
|
@@ -1827,6 +1878,7 @@ function Checkbox(_ref) {
|
|
|
1827
1878
|
|
|
1828
1879
|
Checkbox.displayName = 'Checkbox';
|
|
1829
1880
|
|
|
1881
|
+
var _excluded$o = ["type", "variant", "size", "loading", "disabled", "tooltip", "onClick", "children"];
|
|
1830
1882
|
/**
|
|
1831
1883
|
* @deprecated
|
|
1832
1884
|
*/
|
|
@@ -1844,7 +1896,7 @@ var Button$1 = /*#__PURE__*/React__default.forwardRef(function Button(_ref, ref)
|
|
|
1844
1896
|
tooltip = _ref.tooltip,
|
|
1845
1897
|
onClick = _ref.onClick,
|
|
1846
1898
|
children = _ref.children,
|
|
1847
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
1899
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
|
|
1848
1900
|
|
|
1849
1901
|
var className = classNames('reactist_button', variant ? "reactist_button--" + variant : null, size !== 'default' ? "reactist_button--" + size : null, {
|
|
1850
1902
|
'reactist_button--loading': loading
|
|
@@ -1867,6 +1919,8 @@ Button$1.defaultProps = {
|
|
|
1867
1919
|
disabled: false
|
|
1868
1920
|
};
|
|
1869
1921
|
|
|
1922
|
+
var _excluded$p = ["children", "onClick", "tooltip", "className"];
|
|
1923
|
+
|
|
1870
1924
|
var Box$1 = /*#__PURE__*/function (_React$Component) {
|
|
1871
1925
|
_inheritsLoose(Box, _React$Component);
|
|
1872
1926
|
|
|
@@ -2017,7 +2071,7 @@ var Trigger = /*#__PURE__*/React__default.forwardRef(function Trigger(_ref, ref)
|
|
|
2017
2071
|
onClick = _ref.onClick,
|
|
2018
2072
|
tooltip = _ref.tooltip,
|
|
2019
2073
|
className = _ref.className,
|
|
2020
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
2074
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
|
|
2021
2075
|
|
|
2022
2076
|
function handleClick(event) {
|
|
2023
2077
|
event.preventDefault();
|
|
@@ -2160,7 +2214,7 @@ var ErrorMessage = /*#__PURE__*/function (_React$Component) {
|
|
|
2160
2214
|
_this._triggerDelayedHide = function () {
|
|
2161
2215
|
_this._clearTimeout();
|
|
2162
2216
|
|
|
2163
|
-
|
|
2217
|
+
setTimeout(_this._hide, _this.props.timeout);
|
|
2164
2218
|
};
|
|
2165
2219
|
|
|
2166
2220
|
_this._hide = function () {
|
|
@@ -2362,6 +2416,7 @@ var Input = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
|
|
|
2362
2416
|
});
|
|
2363
2417
|
Input.displayName = 'Input';
|
|
2364
2418
|
|
|
2419
|
+
var _excluded$q = ["children", "className", "translateKey", "isMac"];
|
|
2365
2420
|
// Support for setting up how to translate modifiers globally.
|
|
2366
2421
|
//
|
|
2367
2422
|
|
|
@@ -2445,7 +2500,7 @@ function KeyboardShortcut(_ref) {
|
|
|
2445
2500
|
translateKey = _ref$translateKey === void 0 ? globalTranslateKey : _ref$translateKey,
|
|
2446
2501
|
_ref$isMac = _ref.isMac,
|
|
2447
2502
|
isMac = _ref$isMac === void 0 ? (_navigator$platform$t = (_navigator$platform = navigator.platform) === null || _navigator$platform === void 0 ? void 0 : _navigator$platform.toUpperCase().includes('MAC')) !== null && _navigator$platform$t !== void 0 ? _navigator$platform$t : false : _ref$isMac,
|
|
2448
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
2503
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
|
|
2449
2504
|
|
|
2450
2505
|
var shortcuts = typeof children === 'string' ? [children] : children;
|
|
2451
2506
|
return /*#__PURE__*/React.createElement("span", Object.assign({
|
|
@@ -3033,6 +3088,8 @@ function RangeInput(_ref) {
|
|
|
3033
3088
|
|
|
3034
3089
|
RangeInput.displayName = 'RangeInput';
|
|
3035
3090
|
|
|
3091
|
+
var _excluded$r = ["value", "options", "onChange", "disabled", "className", "defaultValue"];
|
|
3092
|
+
|
|
3036
3093
|
function Select(_ref) {
|
|
3037
3094
|
var value = _ref.value,
|
|
3038
3095
|
_ref$options = _ref.options,
|
|
@@ -3043,7 +3100,7 @@ function Select(_ref) {
|
|
|
3043
3100
|
_ref$className = _ref.className,
|
|
3044
3101
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
3045
3102
|
defaultValue = _ref.defaultValue,
|
|
3046
|
-
otherProps = _objectWithoutPropertiesLoose(_ref,
|
|
3103
|
+
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$r);
|
|
3047
3104
|
|
|
3048
3105
|
var selectClassName = classNames('reactist_select', {
|
|
3049
3106
|
disabled: disabled
|
|
@@ -3342,6 +3399,8 @@ var CloseIcon$1 = function CloseIcon() {
|
|
|
3342
3399
|
}));
|
|
3343
3400
|
};
|
|
3344
3401
|
|
|
3402
|
+
var _excluded$s = ["id", "icon", "title", "subtitle", "children", "customCloseButton", "onClick", "onClose", "closeAltText", "className"];
|
|
3403
|
+
|
|
3345
3404
|
function Notification(_ref) {
|
|
3346
3405
|
var id = _ref.id,
|
|
3347
3406
|
icon = _ref.icon,
|
|
@@ -3354,7 +3413,7 @@ function Notification(_ref) {
|
|
|
3354
3413
|
_ref$closeAltText = _ref.closeAltText,
|
|
3355
3414
|
closeAltText = _ref$closeAltText === void 0 ? 'Close' : _ref$closeAltText,
|
|
3356
3415
|
className = _ref.className,
|
|
3357
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
3416
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$s);
|
|
3358
3417
|
|
|
3359
3418
|
var titleId = title ? id + "-title" : null;
|
|
3360
3419
|
var titleIdAttribute = titleId ? {
|
|
@@ -3403,6 +3462,17 @@ function Notification(_ref) {
|
|
|
3403
3462
|
}, customCloseButton !== null && customCloseButton !== void 0 ? customCloseButton : /*#__PURE__*/React__default.createElement(CloseIcon$1, null)) : null);
|
|
3404
3463
|
}
|
|
3405
3464
|
|
|
3465
|
+
var _excluded$t = ["children", "onItemSelect"],
|
|
3466
|
+
_excluded2$3 = ["exceptionallySetClassName"],
|
|
3467
|
+
_excluded3$2 = ["handleItemSelect"],
|
|
3468
|
+
_excluded4$2 = ["exceptionallySetClassName"],
|
|
3469
|
+
_excluded5$2 = ["handleItemSelect"],
|
|
3470
|
+
_excluded6 = ["value", "children", "onSelect", "hideOnSelect", "onClick", "exceptionallySetClassName"],
|
|
3471
|
+
_excluded7 = ["handleItemSelect"],
|
|
3472
|
+
_excluded8 = ["children", "onItemSelect"],
|
|
3473
|
+
_excluded9 = ["handleItemSelect"],
|
|
3474
|
+
_excluded10 = ["label", "children", "exceptionallySetClassName"],
|
|
3475
|
+
_excluded11 = ["handleItemSelect"];
|
|
3406
3476
|
var MenuContext = /*#__PURE__*/React.createContext( // Reakit gives us no means to obtain a valid initial/default value of type MenuStateReturn
|
|
3407
3477
|
// (it is normally obtained by calling useMenuState but we can't call hooks outside components).
|
|
3408
3478
|
// This is however of little consequence since this value is only used if some of the components
|
|
@@ -3417,7 +3487,7 @@ var MenuContext = /*#__PURE__*/React.createContext( // Reakit gives us no means
|
|
|
3417
3487
|
function Menu(_ref) {
|
|
3418
3488
|
var children = _ref.children,
|
|
3419
3489
|
onItemSelect = _ref.onItemSelect,
|
|
3420
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
3490
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
|
|
3421
3491
|
|
|
3422
3492
|
var state = Reakit.useMenuState(_objectSpread2({
|
|
3423
3493
|
loop: true
|
|
@@ -3441,10 +3511,10 @@ function Menu(_ref) {
|
|
|
3441
3511
|
|
|
3442
3512
|
var MenuButton = /*#__PURE__*/polymorphicComponent(function MenuButton(_ref2, ref) {
|
|
3443
3513
|
var exceptionallySetClassName = _ref2.exceptionallySetClassName,
|
|
3444
|
-
props = _objectWithoutPropertiesLoose(_ref2,
|
|
3514
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$3);
|
|
3445
3515
|
|
|
3446
3516
|
var _React$useContext = React.useContext(MenuContext),
|
|
3447
|
-
state = _objectWithoutPropertiesLoose(_React$useContext,
|
|
3517
|
+
state = _objectWithoutPropertiesLoose(_React$useContext, _excluded3$2);
|
|
3448
3518
|
|
|
3449
3519
|
return /*#__PURE__*/React.createElement(Reakit.MenuButton, Object.assign({}, props, state, {
|
|
3450
3520
|
ref: ref,
|
|
@@ -3488,10 +3558,10 @@ function MenuBackdrop(_ref3) {
|
|
|
3488
3558
|
|
|
3489
3559
|
var MenuList = /*#__PURE__*/polymorphicComponent(function MenuList(_ref4, ref) {
|
|
3490
3560
|
var exceptionallySetClassName = _ref4.exceptionallySetClassName,
|
|
3491
|
-
props = _objectWithoutPropertiesLoose(_ref4,
|
|
3561
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$2);
|
|
3492
3562
|
|
|
3493
3563
|
var _React$useContext2 = React.useContext(MenuContext),
|
|
3494
|
-
state = _objectWithoutPropertiesLoose(_React$useContext2,
|
|
3564
|
+
state = _objectWithoutPropertiesLoose(_React$useContext2, _excluded5$2);
|
|
3495
3565
|
|
|
3496
3566
|
return state.visible ? /*#__PURE__*/React.createElement(MenuBackdrop, Object.assign({}, state), /*#__PURE__*/React.createElement(Reakit.Menu, Object.assign({}, props, state, {
|
|
3497
3567
|
ref: ref,
|
|
@@ -3511,11 +3581,11 @@ var MenuItem = /*#__PURE__*/polymorphicComponent(function MenuItem(_ref5, ref) {
|
|
|
3511
3581
|
hideOnSelect = _ref5$hideOnSelect === void 0 ? true : _ref5$hideOnSelect,
|
|
3512
3582
|
onClick = _ref5.onClick,
|
|
3513
3583
|
exceptionallySetClassName = _ref5.exceptionallySetClassName,
|
|
3514
|
-
props = _objectWithoutPropertiesLoose(_ref5,
|
|
3584
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded6);
|
|
3515
3585
|
|
|
3516
3586
|
var _React$useContext3 = React.useContext(MenuContext),
|
|
3517
3587
|
handleItemSelect = _React$useContext3.handleItemSelect,
|
|
3518
|
-
state = _objectWithoutPropertiesLoose(_React$useContext3,
|
|
3588
|
+
state = _objectWithoutPropertiesLoose(_React$useContext3, _excluded7);
|
|
3519
3589
|
|
|
3520
3590
|
var hide = state.hide;
|
|
3521
3591
|
var handleClick = React.useCallback(function handleClick(event) {
|
|
@@ -3556,11 +3626,11 @@ var MenuItem = /*#__PURE__*/polymorphicComponent(function MenuItem(_ref5, ref) {
|
|
|
3556
3626
|
var SubMenu = /*#__PURE__*/React.forwardRef(function SubMenu(_ref6, ref) {
|
|
3557
3627
|
var children = _ref6.children,
|
|
3558
3628
|
onItemSelect = _ref6.onItemSelect,
|
|
3559
|
-
props = _objectWithoutPropertiesLoose(_ref6,
|
|
3629
|
+
props = _objectWithoutPropertiesLoose(_ref6, _excluded8);
|
|
3560
3630
|
|
|
3561
3631
|
var _React$useContext4 = React.useContext(MenuContext),
|
|
3562
3632
|
parentMenuItemSelect = _React$useContext4.handleItemSelect,
|
|
3563
|
-
state = _objectWithoutPropertiesLoose(_React$useContext4,
|
|
3633
|
+
state = _objectWithoutPropertiesLoose(_React$useContext4, _excluded9);
|
|
3564
3634
|
|
|
3565
3635
|
var parentMenuHide = state.hide;
|
|
3566
3636
|
var handleSubItemSelect = React.useCallback(function handleSubItemSelect(value) {
|
|
@@ -3594,10 +3664,10 @@ var MenuGroup = /*#__PURE__*/polymorphicComponent(function MenuGroud(_ref7, ref)
|
|
|
3594
3664
|
var label = _ref7.label,
|
|
3595
3665
|
children = _ref7.children,
|
|
3596
3666
|
exceptionallySetClassName = _ref7.exceptionallySetClassName,
|
|
3597
|
-
props = _objectWithoutPropertiesLoose(_ref7,
|
|
3667
|
+
props = _objectWithoutPropertiesLoose(_ref7, _excluded10);
|
|
3598
3668
|
|
|
3599
3669
|
var _React$useContext5 = React.useContext(MenuContext),
|
|
3600
|
-
state = _objectWithoutPropertiesLoose(_React$useContext5,
|
|
3670
|
+
state = _objectWithoutPropertiesLoose(_React$useContext5, _excluded11);
|
|
3601
3671
|
|
|
3602
3672
|
return /*#__PURE__*/React.createElement(Reakit.MenuGroup, Object.assign({
|
|
3603
3673
|
ref: ref
|
|
@@ -3820,7 +3890,7 @@ var Actions = /*#__PURE__*/function (_React$Component4) {
|
|
|
3820
3890
|
this.props.children, function (child) {
|
|
3821
3891
|
var _child$props;
|
|
3822
3892
|
|
|
3823
|
-
if (child
|
|
3893
|
+
if (child !== null && child !== void 0 && (_child$props = child.props) !== null && _child$props !== void 0 && _child$props.close) {
|
|
3824
3894
|
return /*#__PURE__*/React__default.cloneElement(child, {
|
|
3825
3895
|
onClick: function onClick() {
|
|
3826
3896
|
return _this2._onClick(child.props.onClick);
|