@bigbinary/neetoui 8.3.0-beta2 → 8.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/ActionDropdown.js +7 -6
- package/dist/ActionDropdown.js.map +1 -1
- package/dist/Alert.js +9 -9
- package/dist/Alert.js.map +1 -1
- package/dist/Avatar.js +1 -0
- package/dist/Avatar.js.map +1 -1
- package/dist/Button.js +5 -52
- package/dist/Button.js.map +1 -1
- package/dist/Checkbox.js +6 -5
- package/dist/Checkbox.js.map +1 -1
- package/dist/ColorPicker.js +147 -51
- package/dist/ColorPicker.js.map +1 -1
- package/dist/DatePicker.js +18 -19
- package/dist/DatePicker.js.map +1 -1
- package/dist/Dropdown.js +4 -3
- package/dist/Dropdown.js.map +1 -1
- package/dist/Input.js +14 -10
- package/dist/Input.js.map +1 -1
- package/dist/Kbd.js +1 -0
- package/dist/Kbd.js.map +1 -1
- package/dist/Label.js +72 -55
- package/dist/Label.js.map +1 -1
- package/dist/Modal.js +21 -8
- package/dist/Modal.js.map +1 -1
- package/dist/MultiEmailInput.js +98 -60
- package/dist/MultiEmailInput.js.map +1 -1
- package/dist/NoData.js +1 -2
- package/dist/NoData.js.map +1 -1
- package/dist/Pagination.js +5 -5
- package/dist/Pane.js +58 -22
- package/dist/Pane.js.map +1 -1
- package/dist/ProgressBar.js +1 -0
- package/dist/ProgressBar.js.map +1 -1
- package/dist/Radio.js +11 -8
- package/dist/Radio.js.map +1 -1
- package/dist/Select.js +52 -22
- package/dist/Select.js.map +1 -1
- package/dist/Sidebar.js +6 -4
- package/dist/Sidebar.js.map +1 -1
- package/dist/Slider.js +6 -5
- package/dist/Slider.js.map +1 -1
- package/dist/Stepper.js +1 -0
- package/dist/Stepper.js.map +1 -1
- package/dist/Switch.js +9 -5
- package/dist/Switch.js.map +1 -1
- package/dist/Table.js +358 -194
- package/dist/Table.js.map +1 -1
- package/dist/{Textarea-67a30930.js → Textarea-TKn0l0RC.js} +5 -4
- package/dist/Textarea-TKn0l0RC.js.map +1 -0
- package/dist/Textarea.js +7 -6
- package/dist/Textarea.js.map +1 -1
- package/dist/TimePicker.js +16 -17
- package/dist/TimePicker.js.map +1 -1
- package/dist/Toastr.js +45 -23
- package/dist/Toastr.js.map +1 -1
- package/dist/Tooltip.js +17 -11
- package/dist/Tooltip.js.map +1 -1
- package/dist/TranslationProvider.js +45 -13
- package/dist/TranslationProvider.js.map +1 -1
- package/dist/Tree.js +15 -8
- package/dist/Tree.js.map +1 -1
- package/dist/TreeSelect.js +19 -7
- package/dist/TreeSelect.js.map +1 -1
- package/dist/cjs/Accordion.js +18 -27
- package/dist/cjs/Accordion.js.map +1 -1
- package/dist/cjs/ActionDropdown.js +13 -20
- package/dist/cjs/ActionDropdown.js.map +1 -1
- package/dist/cjs/Alert.js +15 -20
- package/dist/cjs/Alert.js.map +1 -1
- package/dist/cjs/Avatar.js +11 -19
- package/dist/cjs/Avatar.js.map +1 -1
- package/dist/cjs/Button.js +17 -73
- package/dist/cjs/Button.js.map +1 -1
- package/dist/cjs/Callout.js +5 -13
- package/dist/cjs/Callout.js.map +1 -1
- package/dist/cjs/Checkbox.js +13 -19
- package/dist/cjs/Checkbox.js.map +1 -1
- package/dist/cjs/ColorPicker.js +170 -84
- package/dist/cjs/ColorPicker.js.map +1 -1
- package/dist/cjs/DatePicker.js +18 -19
- package/dist/cjs/DatePicker.js.map +1 -1
- package/dist/cjs/Dropdown.js +32 -41
- package/dist/cjs/Dropdown.js.map +1 -1
- package/dist/cjs/Input.js +31 -36
- package/dist/cjs/Input.js.map +1 -1
- package/dist/cjs/Kbd.js +5 -11
- package/dist/cjs/Kbd.js.map +1 -1
- package/dist/cjs/Label.js +71 -62
- package/dist/cjs/Label.js.map +1 -1
- package/dist/cjs/Modal.js +38 -34
- package/dist/cjs/Modal.js.map +1 -1
- package/dist/cjs/MultiEmailInput.js +126 -99
- package/dist/cjs/MultiEmailInput.js.map +1 -1
- package/dist/cjs/NoData.js +15 -23
- package/dist/cjs/NoData.js.map +1 -1
- package/dist/cjs/Pagination.js +21 -27
- package/dist/cjs/Pagination.js.map +1 -1
- package/dist/cjs/Pane.js +74 -47
- package/dist/cjs/Pane.js.map +1 -1
- package/dist/cjs/Popover.js +5 -12
- package/dist/cjs/Popover.js.map +1 -1
- package/dist/cjs/ProgressBar.js +4 -8
- package/dist/cjs/ProgressBar.js.map +1 -1
- package/dist/cjs/Radio.js +25 -31
- package/dist/cjs/Radio.js.map +1 -1
- package/dist/cjs/Select.js +95 -78
- package/dist/cjs/Select.js.map +1 -1
- package/dist/cjs/Sidebar.js +72 -79
- package/dist/cjs/Sidebar.js.map +1 -1
- package/dist/cjs/Slider.js +15 -23
- package/dist/cjs/Slider.js.map +1 -1
- package/dist/cjs/Spinner.js +2 -7
- package/dist/cjs/Spinner.js.map +1 -1
- package/dist/cjs/Stepper.js +7 -11
- package/dist/cjs/Stepper.js.map +1 -1
- package/dist/cjs/Switch.js +22 -25
- package/dist/cjs/Switch.js.map +1 -1
- package/dist/cjs/Tab.js +10 -18
- package/dist/cjs/Tab.js.map +1 -1
- package/dist/cjs/Table.js +387 -236
- package/dist/cjs/Table.js.map +1 -1
- package/dist/cjs/Tag.js +9 -16
- package/dist/cjs/Tag.js.map +1 -1
- package/dist/cjs/{Textarea-60f7ed17.js → Textarea-DdURL8Dd.js} +21 -29
- package/dist/cjs/Textarea-DdURL8Dd.js.map +1 -0
- package/dist/cjs/Textarea.js +7 -6
- package/dist/cjs/Textarea.js.map +1 -1
- package/dist/cjs/TimePicker.js +16 -17
- package/dist/cjs/TimePicker.js.map +1 -1
- package/dist/cjs/Toastr.js +61 -49
- package/dist/cjs/Toastr.js.map +1 -1
- package/dist/cjs/Tooltip.js +20 -22
- package/dist/cjs/Tooltip.js.map +1 -1
- package/dist/cjs/TranslationProvider.js +48 -21
- package/dist/cjs/TranslationProvider.js.map +1 -1
- package/dist/cjs/Tree.js +21 -23
- package/dist/cjs/Tree.js.map +1 -1
- package/dist/cjs/TreeSelect.js +30 -28
- package/dist/cjs/TreeSelect.js.map +1 -1
- package/dist/cjs/Typography.js +4 -12
- package/dist/cjs/Typography.js.map +1 -1
- package/dist/cjs/constants.js +7 -19
- package/dist/cjs/constants.js.map +1 -1
- package/dist/cjs/{en-80d0fbff.js → en-DhnUUSB_.js} +13 -6
- package/dist/cjs/en-DhnUUSB_.js.map +1 -0
- package/dist/cjs/formik/ActionBlock.js +12 -18
- package/dist/cjs/formik/ActionBlock.js.map +1 -1
- package/dist/cjs/formik/BlockNavigation.js +24 -42
- package/dist/cjs/formik/BlockNavigation.js.map +1 -1
- package/dist/cjs/formik/Button.js +3 -10
- package/dist/cjs/formik/Button.js.map +1 -1
- package/dist/cjs/formik/Checkbox.js +10 -16
- package/dist/cjs/formik/Checkbox.js.map +1 -1
- package/dist/cjs/formik/Form.js +13 -24
- package/dist/cjs/formik/Form.js.map +1 -1
- package/dist/cjs/formik/Input.js +10 -16
- package/dist/cjs/formik/Input.js.map +1 -1
- package/dist/cjs/formik/MultiEmailInput.js +8 -15
- package/dist/cjs/formik/MultiEmailInput.js.map +1 -1
- package/dist/cjs/formik/Radio.js +10 -17
- package/dist/cjs/formik/Radio.js.map +1 -1
- package/dist/cjs/formik/Select.js +9 -17
- package/dist/cjs/formik/Select.js.map +1 -1
- package/dist/cjs/formik/Slider.js +10 -17
- package/dist/cjs/formik/Slider.js.map +1 -1
- package/dist/cjs/formik/Switch.js +10 -16
- package/dist/cjs/formik/Switch.js.map +1 -1
- package/dist/cjs/formik/Textarea.js +11 -17
- package/dist/cjs/formik/Textarea.js.map +1 -1
- package/dist/cjs/formik/TreeSelect.js +8 -14
- package/dist/cjs/formik/TreeSelect.js.map +1 -1
- package/dist/cjs/formik/index.js +12 -15
- package/dist/cjs/formik/index.js.map +1 -1
- package/dist/cjs/index-BG9I04iF.js +451 -0
- package/dist/cjs/index-BG9I04iF.js.map +1 -0
- package/dist/cjs/{index-9d108a41.js → index-DOn2FmWB.js} +80 -80
- package/dist/cjs/index-DOn2FmWB.js.map +1 -0
- package/dist/cjs/index.css +2 -2
- package/dist/cjs/index.js +26 -29
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/layouts.js +6 -7
- package/dist/cjs/layouts.js.map +1 -1
- package/dist/cjs/managers.js +0 -2
- package/dist/cjs/managers.js.map +1 -1
- package/dist/cjs/overlayManager.js +2 -9
- package/dist/cjs/overlayManager.js.map +1 -1
- package/dist/cjs/{react-select-creatable.esm-23eddf9f.js → react-select-creatable.esm-Bdv9YAMt.js} +231 -140
- package/dist/cjs/{react-select-creatable.esm-23eddf9f.js.map → react-select-creatable.esm-Bdv9YAMt.js.map} +1 -1
- package/dist/cjs/{useId-4e3deb5c.js → useId-DXHUzdxd.js} +1 -1
- package/dist/cjs/{useId-4e3deb5c.js.map → useId-DXHUzdxd.js.map} +1 -1
- package/dist/cjs/{useOverlayManager-d4108cf8.js → useOverlayManager-D5NTaYt6.js} +25 -744
- package/dist/cjs/useOverlayManager-D5NTaYt6.js.map +1 -0
- package/dist/cjs/{useQueryParams-a8ee2f76.js → useQueryParams-l5fJJYCR.js} +2 -6
- package/dist/cjs/useQueryParams-l5fJJYCR.js.map +1 -0
- package/dist/cjs/useRecentlyUsedColors-DmV1uj1F.js +1270 -0
- package/dist/cjs/useRecentlyUsedColors-DmV1uj1F.js.map +1 -0
- package/dist/cjs/{HeaderCellMenu-2b1247bb.js → useRestoreScrollPosition-Ck_b0Nh4.js} +87 -88
- package/dist/cjs/useRestoreScrollPosition-Ck_b0Nh4.js.map +1 -0
- package/dist/{en-41f5c641.js → en-_r5-MxJe.js} +13 -6
- package/dist/en-_r5-MxJe.js.map +1 -0
- package/dist/formik/ActionBlock.js +7 -7
- package/dist/formik/BlockNavigation.js +15 -26
- package/dist/formik/BlockNavigation.js.map +1 -1
- package/dist/formik/Button.js +1 -2
- package/dist/formik/Button.js.map +1 -1
- package/dist/formik/Checkbox.js +6 -5
- package/dist/formik/Checkbox.js.map +1 -1
- package/dist/formik/Form.js +2 -2
- package/dist/formik/Form.js.map +1 -1
- package/dist/formik/Input.js +6 -5
- package/dist/formik/Input.js.map +1 -1
- package/dist/formik/MultiEmailInput.js +5 -5
- package/dist/formik/Radio.js +6 -5
- package/dist/formik/Radio.js.map +1 -1
- package/dist/formik/Select.js +5 -5
- package/dist/formik/Slider.js +6 -5
- package/dist/formik/Slider.js.map +1 -1
- package/dist/formik/Switch.js +6 -5
- package/dist/formik/Switch.js.map +1 -1
- package/dist/formik/Textarea.js +7 -6
- package/dist/formik/Textarea.js.map +1 -1
- package/dist/formik/TreeSelect.js +5 -4
- package/dist/formik/TreeSelect.js.map +1 -1
- package/dist/formik/index.js +12 -13
- package/dist/formik/index.js.map +1 -1
- package/dist/index-BCP3m_SF.js +434 -0
- package/dist/index-BCP3m_SF.js.map +1 -0
- package/dist/{index-fd0e5fa5.js → index-BXAHRXsD.js} +33 -21
- package/dist/index-BXAHRXsD.js.map +1 -0
- package/dist/index.css +2 -2
- package/dist/index.js +26 -27
- package/dist/index.js.map +1 -1
- package/dist/layouts.js +6 -5
- package/dist/layouts.js.map +1 -1
- package/dist/{react-select-creatable.esm-ad71b0c0.js → react-select-creatable.esm-Dx_vEnyD.js} +137 -31
- package/dist/{react-select-creatable.esm-ad71b0c0.js.map → react-select-creatable.esm-Dx_vEnyD.js.map} +1 -1
- package/dist/{useId-c1d20bba.js → useId-Jj9hXm-g.js} +1 -1
- package/dist/{useId-c1d20bba.js.map → useId-Jj9hXm-g.js.map} +1 -1
- package/dist/{useOverlayManager-593daea1.js → useOverlayManager-U3cqV61l.js} +9 -716
- package/dist/useOverlayManager-U3cqV61l.js.map +1 -0
- package/dist/{useQueryParams-dcb34865.js → useQueryParams-b60CHFUx.js} +1 -1
- package/dist/{useQueryParams-dcb34865.js.map → useQueryParams-b60CHFUx.js.map} +1 -1
- package/dist/useRecentlyUsedColors-CJe4G0Xs.js +1267 -0
- package/dist/useRecentlyUsedColors-CJe4G0Xs.js.map +1 -0
- package/dist/{HeaderCellMenu-85777f9d.js → useRestoreScrollPosition-B3J6xSHt.js} +77 -75
- package/dist/useRestoreScrollPosition-B3J6xSHt.js.map +1 -0
- package/package.json +20 -14
- package/src/translations/de.json +7 -2
- package/src/translations/en.json +12 -5
- package/src/translations/es.json +7 -2
- package/src/translations/fr.json +7 -2
- package/src/translations/nl.json +7 -2
- package/src/translations/pl.json +7 -2
- package/src/translations/pt.json +7 -2
- package/types/Button.d.ts +0 -2
- package/types/ColorPicker.d.ts +7 -5
- package/types/DatePicker.d.ts +2 -0
- package/types/Modal.d.ts +1 -1
- package/types/Pane.d.ts +1 -1
- package/types/Select.d.ts +4 -0
- package/types/Table.d.ts +9 -0
- package/types/Toastr.d.ts +3 -1
- package/types/Tree.d.ts +2 -1
- package/dist/HeaderCellMenu-85777f9d.js.map +0 -1
- package/dist/Textarea-67a30930.js.map +0 -1
- package/dist/cjs/HeaderCellMenu-2b1247bb.js.map +0 -1
- package/dist/cjs/Textarea-60f7ed17.js.map +0 -1
- package/dist/cjs/en-80d0fbff.js.map +0 -1
- package/dist/cjs/index-0f5141e0.js +0 -178
- package/dist/cjs/index-0f5141e0.js.map +0 -1
- package/dist/cjs/index-9d108a41.js.map +0 -1
- package/dist/cjs/tinycolor-b1e9a7b2.js +0 -1202
- package/dist/cjs/tinycolor-b1e9a7b2.js.map +0 -1
- package/dist/cjs/useOverlayManager-d4108cf8.js.map +0 -1
- package/dist/cjs/useQueryParams-a8ee2f76.js.map +0 -1
- package/dist/en-41f5c641.js.map +0 -1
- package/dist/index-abadd6e9.js +0 -155
- package/dist/index-abadd6e9.js.map +0 -1
- package/dist/index-fd0e5fa5.js.map +0 -1
- package/dist/tinycolor-282c618c.js +0 -1200
- package/dist/tinycolor-282c618c.js.map +0 -1
- package/dist/useOverlayManager-593daea1.js.map +0 -1
package/dist/cjs/{react-select-creatable.esm-23eddf9f.js → react-select-creatable.esm-Bdv9YAMt.js}
RENAMED
|
@@ -27,10 +27,7 @@ require('@babel/runtime/helpers/slicedToArray');
|
|
|
27
27
|
require('@babel/runtime/helpers/typeof');
|
|
28
28
|
require('@babel/runtime/helpers/defineProperty');
|
|
29
29
|
|
|
30
|
-
function
|
|
31
|
-
|
|
32
|
-
function _interopNamespace(e) {
|
|
33
|
-
if (e && e.__esModule) return e;
|
|
30
|
+
function _interopNamespaceDefault(e) {
|
|
34
31
|
var n = Object.create(null);
|
|
35
32
|
if (e) {
|
|
36
33
|
Object.keys(e).forEach(function (k) {
|
|
@@ -43,23 +40,11 @@ function _interopNamespace(e) {
|
|
|
43
40
|
}
|
|
44
41
|
});
|
|
45
42
|
}
|
|
46
|
-
n
|
|
43
|
+
n.default = e;
|
|
47
44
|
return Object.freeze(n);
|
|
48
45
|
}
|
|
49
46
|
|
|
50
|
-
var
|
|
51
|
-
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
52
|
-
var _objectSpread__default = /*#__PURE__*/_interopDefaultLegacy(_objectSpread);
|
|
53
|
-
var _classCallCheck__default = /*#__PURE__*/_interopDefaultLegacy(_classCallCheck);
|
|
54
|
-
var _createClass__default = /*#__PURE__*/_interopDefaultLegacy(_createClass);
|
|
55
|
-
var _inherits__default = /*#__PURE__*/_interopDefaultLegacy(_inherits);
|
|
56
|
-
var _createSuper__default = /*#__PURE__*/_interopDefaultLegacy(_createSuper);
|
|
57
|
-
var _toConsumableArray__default = /*#__PURE__*/_interopDefaultLegacy(_toConsumableArray);
|
|
58
|
-
var _taggedTemplateLiteral__default = /*#__PURE__*/_interopDefaultLegacy(_taggedTemplateLiteral);
|
|
59
|
-
var _objectWithoutProperties__default = /*#__PURE__*/_interopDefaultLegacy(_objectWithoutProperties);
|
|
60
|
-
var _slicedToArray__default = /*#__PURE__*/_interopDefaultLegacy(_slicedToArray);
|
|
61
|
-
var _typeof__default = /*#__PURE__*/_interopDefaultLegacy(_typeof);
|
|
62
|
-
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
|
|
47
|
+
var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
63
48
|
|
|
64
49
|
/*
|
|
65
50
|
|
|
@@ -1304,7 +1289,7 @@ var createCache = function createCache(options) {
|
|
|
1304
1289
|
return cache;
|
|
1305
1290
|
};
|
|
1306
1291
|
|
|
1307
|
-
var reactIs
|
|
1292
|
+
var reactIs = {exports: {}};
|
|
1308
1293
|
|
|
1309
1294
|
var reactIs_production_min = {};
|
|
1310
1295
|
|
|
@@ -1316,39 +1301,145 @@ var reactIs_production_min = {};
|
|
|
1316
1301
|
* This source code is licensed under the MIT license found in the
|
|
1317
1302
|
* LICENSE file in the root directory of this source tree.
|
|
1318
1303
|
*/
|
|
1304
|
+
|
|
1305
|
+
var hasRequiredReactIs_production_min;
|
|
1306
|
+
|
|
1307
|
+
function requireReactIs_production_min () {
|
|
1308
|
+
if (hasRequiredReactIs_production_min) return reactIs_production_min;
|
|
1309
|
+
hasRequiredReactIs_production_min = 1;
|
|
1319
1310
|
var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
|
|
1320
|
-
Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w
|
|
1321
|
-
function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}reactIs_production_min.AsyncMode=l;reactIs_production_min.ConcurrentMode=m;reactIs_production_min.ContextConsumer=k;reactIs_production_min.ContextProvider=h;reactIs_production_min.Element=c;reactIs_production_min.ForwardRef=n;reactIs_production_min.Fragment=e;reactIs_production_min.Lazy=t;reactIs_production_min.Memo=r;reactIs_production_min.Portal=d;
|
|
1322
|
-
reactIs_production_min.Profiler=g;reactIs_production_min.StrictMode=f;reactIs_production_min.Suspense=p;reactIs_production_min.isAsyncMode=function(a){return A(a)||z(a)===l};reactIs_production_min.isConcurrentMode=A;reactIs_production_min.isContextConsumer=function(a){return z(a)===k};reactIs_production_min.isContextProvider=function(a){return z(a)===h};reactIs_production_min.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};reactIs_production_min.isForwardRef=function(a){return z(a)===n};reactIs_production_min.isFragment=function(a){return z(a)===e};reactIs_production_min.isLazy=function(a){return z(a)===t};
|
|
1323
|
-
reactIs_production_min.isMemo=function(a){return z(a)===r};reactIs_production_min.isPortal=function(a){return z(a)===d};reactIs_production_min.isProfiler=function(a){return z(a)===g};reactIs_production_min.isStrictMode=function(a){return z(a)===f};reactIs_production_min.isSuspense=function(a){return z(a)===p};
|
|
1324
|
-
reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w
|
|
1311
|
+
Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
|
|
1312
|
+
function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}reactIs_production_min.AsyncMode=l;reactIs_production_min.ConcurrentMode=m;reactIs_production_min.ContextConsumer=k;reactIs_production_min.ContextProvider=h;reactIs_production_min.Element=c;reactIs_production_min.ForwardRef=n;reactIs_production_min.Fragment=e;reactIs_production_min.Lazy=t;reactIs_production_min.Memo=r;reactIs_production_min.Portal=d;
|
|
1313
|
+
reactIs_production_min.Profiler=g;reactIs_production_min.StrictMode=f;reactIs_production_min.Suspense=p;reactIs_production_min.isAsyncMode=function(a){return A(a)||z(a)===l};reactIs_production_min.isConcurrentMode=A;reactIs_production_min.isContextConsumer=function(a){return z(a)===k};reactIs_production_min.isContextProvider=function(a){return z(a)===h};reactIs_production_min.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};reactIs_production_min.isForwardRef=function(a){return z(a)===n};reactIs_production_min.isFragment=function(a){return z(a)===e};reactIs_production_min.isLazy=function(a){return z(a)===t};
|
|
1314
|
+
reactIs_production_min.isMemo=function(a){return z(a)===r};reactIs_production_min.isPortal=function(a){return z(a)===d};reactIs_production_min.isProfiler=function(a){return z(a)===g};reactIs_production_min.isStrictMode=function(a){return z(a)===f};reactIs_production_min.isSuspense=function(a){return z(a)===p};
|
|
1315
|
+
reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};reactIs_production_min.typeOf=z;
|
|
1316
|
+
return reactIs_production_min;
|
|
1317
|
+
}
|
|
1325
1318
|
|
|
1326
|
-
|
|
1319
|
+
var hasRequiredReactIs;
|
|
1320
|
+
|
|
1321
|
+
function requireReactIs () {
|
|
1322
|
+
if (hasRequiredReactIs) return reactIs.exports;
|
|
1323
|
+
hasRequiredReactIs = 1;
|
|
1327
1324
|
|
|
1328
1325
|
{
|
|
1329
|
-
|
|
1326
|
+
reactIs.exports = requireReactIs_production_min();
|
|
1330
1327
|
}
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
var
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
var
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1328
|
+
return reactIs.exports;
|
|
1329
|
+
}
|
|
1330
|
+
|
|
1331
|
+
var hoistNonReactStatics_cjs;
|
|
1332
|
+
var hasRequiredHoistNonReactStatics_cjs;
|
|
1333
|
+
|
|
1334
|
+
function requireHoistNonReactStatics_cjs () {
|
|
1335
|
+
if (hasRequiredHoistNonReactStatics_cjs) return hoistNonReactStatics_cjs;
|
|
1336
|
+
hasRequiredHoistNonReactStatics_cjs = 1;
|
|
1337
|
+
|
|
1338
|
+
var reactIs = requireReactIs();
|
|
1339
|
+
|
|
1340
|
+
/**
|
|
1341
|
+
* Copyright 2015, Yahoo! Inc.
|
|
1342
|
+
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
|
|
1343
|
+
*/
|
|
1344
|
+
var REACT_STATICS = {
|
|
1345
|
+
childContextTypes: true,
|
|
1346
|
+
contextType: true,
|
|
1347
|
+
contextTypes: true,
|
|
1348
|
+
defaultProps: true,
|
|
1349
|
+
displayName: true,
|
|
1350
|
+
getDefaultProps: true,
|
|
1351
|
+
getDerivedStateFromError: true,
|
|
1352
|
+
getDerivedStateFromProps: true,
|
|
1353
|
+
mixins: true,
|
|
1354
|
+
propTypes: true,
|
|
1355
|
+
type: true
|
|
1356
|
+
};
|
|
1357
|
+
var KNOWN_STATICS = {
|
|
1358
|
+
name: true,
|
|
1359
|
+
length: true,
|
|
1360
|
+
prototype: true,
|
|
1361
|
+
caller: true,
|
|
1362
|
+
callee: true,
|
|
1363
|
+
arguments: true,
|
|
1364
|
+
arity: true
|
|
1365
|
+
};
|
|
1366
|
+
var FORWARD_REF_STATICS = {
|
|
1367
|
+
'$$typeof': true,
|
|
1368
|
+
render: true,
|
|
1369
|
+
defaultProps: true,
|
|
1370
|
+
displayName: true,
|
|
1371
|
+
propTypes: true
|
|
1372
|
+
};
|
|
1373
|
+
var MEMO_STATICS = {
|
|
1374
|
+
'$$typeof': true,
|
|
1375
|
+
compare: true,
|
|
1376
|
+
defaultProps: true,
|
|
1377
|
+
displayName: true,
|
|
1378
|
+
propTypes: true,
|
|
1379
|
+
type: true
|
|
1380
|
+
};
|
|
1381
|
+
var TYPE_STATICS = {};
|
|
1382
|
+
TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
|
|
1383
|
+
TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
|
|
1384
|
+
|
|
1385
|
+
function getStatics(component) {
|
|
1386
|
+
// React v16.11 and below
|
|
1387
|
+
if (reactIs.isMemo(component)) {
|
|
1388
|
+
return MEMO_STATICS;
|
|
1389
|
+
} // React v16.12 and above
|
|
1390
|
+
|
|
1391
|
+
|
|
1392
|
+
return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;
|
|
1393
|
+
}
|
|
1394
|
+
|
|
1395
|
+
var defineProperty = Object.defineProperty;
|
|
1396
|
+
var getOwnPropertyNames = Object.getOwnPropertyNames;
|
|
1397
|
+
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
1398
|
+
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
1399
|
+
var getPrototypeOf = Object.getPrototypeOf;
|
|
1400
|
+
var objectPrototype = Object.prototype;
|
|
1401
|
+
function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
|
|
1402
|
+
if (typeof sourceComponent !== 'string') {
|
|
1403
|
+
// don't hoist over string (html) components
|
|
1404
|
+
if (objectPrototype) {
|
|
1405
|
+
var inheritedComponent = getPrototypeOf(sourceComponent);
|
|
1406
|
+
|
|
1407
|
+
if (inheritedComponent && inheritedComponent !== objectPrototype) {
|
|
1408
|
+
hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
|
|
1409
|
+
}
|
|
1410
|
+
}
|
|
1411
|
+
|
|
1412
|
+
var keys = getOwnPropertyNames(sourceComponent);
|
|
1413
|
+
|
|
1414
|
+
if (getOwnPropertySymbols) {
|
|
1415
|
+
keys = keys.concat(getOwnPropertySymbols(sourceComponent));
|
|
1416
|
+
}
|
|
1417
|
+
|
|
1418
|
+
var targetStatics = getStatics(targetComponent);
|
|
1419
|
+
var sourceStatics = getStatics(sourceComponent);
|
|
1420
|
+
|
|
1421
|
+
for (var i = 0; i < keys.length; ++i) {
|
|
1422
|
+
var key = keys[i];
|
|
1423
|
+
|
|
1424
|
+
if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
|
|
1425
|
+
var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
|
|
1426
|
+
|
|
1427
|
+
try {
|
|
1428
|
+
// Avoid failures from read-only properties
|
|
1429
|
+
defineProperty(targetComponent, key, descriptor);
|
|
1430
|
+
} catch (e) {}
|
|
1431
|
+
}
|
|
1432
|
+
}
|
|
1433
|
+
}
|
|
1434
|
+
|
|
1435
|
+
return targetComponent;
|
|
1436
|
+
}
|
|
1437
|
+
|
|
1438
|
+
hoistNonReactStatics_cjs = hoistNonReactStatics;
|
|
1439
|
+
return hoistNonReactStatics_cjs;
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1442
|
+
requireHoistNonReactStatics_cjs();
|
|
1352
1443
|
|
|
1353
1444
|
var isBrowser$2 = typeof document !== 'undefined';
|
|
1354
1445
|
function getRegisteredStyles(registered, registeredStyles, classNames) {
|
|
@@ -1853,7 +1944,7 @@ var Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {
|
|
|
1853
1944
|
var newProps = {};
|
|
1854
1945
|
|
|
1855
1946
|
for (var key in props) {
|
|
1856
|
-
if (hasOwnProperty.call(props, key) && key !== 'css' && key !== typePropName && ("production" === 'production'
|
|
1947
|
+
if (hasOwnProperty.call(props, key) && key !== 'css' && key !== typePropName && ("production" === 'production')) {
|
|
1857
1948
|
newProps[key] = props[key];
|
|
1858
1949
|
}
|
|
1859
1950
|
}
|
|
@@ -2337,7 +2428,7 @@ function classNames(prefix, state, className) {
|
|
|
2337
2428
|
|
|
2338
2429
|
var cleanValue = function cleanValue(value) {
|
|
2339
2430
|
if (isArray(value)) return value.filter(Boolean);
|
|
2340
|
-
if (
|
|
2431
|
+
if (_typeof(value) === 'object' && value !== null) return [value];
|
|
2341
2432
|
return [];
|
|
2342
2433
|
};
|
|
2343
2434
|
|
|
@@ -2360,8 +2451,8 @@ var cleanCommonProps = function cleanCommonProps(props) {
|
|
|
2360
2451
|
props.selectProps;
|
|
2361
2452
|
props.setValue;
|
|
2362
2453
|
props.theme;
|
|
2363
|
-
var innerProps =
|
|
2364
|
-
return
|
|
2454
|
+
var innerProps = _objectWithoutProperties(props, _excluded$3);
|
|
2455
|
+
return _objectSpread({}, innerProps);
|
|
2365
2456
|
};
|
|
2366
2457
|
|
|
2367
2458
|
// ==============================
|
|
@@ -2558,12 +2649,12 @@ var removeProps = function removeProps(propsObj) {
|
|
|
2558
2649
|
properties[_key - 1] = arguments[_key];
|
|
2559
2650
|
}
|
|
2560
2651
|
var propsMap = Object.entries(propsObj).filter(function (_ref) {
|
|
2561
|
-
var _ref2 =
|
|
2652
|
+
var _ref2 = _slicedToArray(_ref, 1),
|
|
2562
2653
|
key = _ref2[0];
|
|
2563
2654
|
return !properties.includes(key);
|
|
2564
2655
|
});
|
|
2565
2656
|
return propsMap.reduce(function (newProps, _ref3) {
|
|
2566
|
-
var _ref4 =
|
|
2657
|
+
var _ref4 = _slicedToArray(_ref3, 2),
|
|
2567
2658
|
key = _ref4[0],
|
|
2568
2659
|
val = _ref4[1];
|
|
2569
2660
|
newProps[key] = val;
|
|
@@ -2747,7 +2838,7 @@ var menuCSS = function menuCSS(_ref2) {
|
|
|
2747
2838
|
colors = _ref2$theme.colors;
|
|
2748
2839
|
return _ref3 = {
|
|
2749
2840
|
label: 'menu'
|
|
2750
|
-
},
|
|
2841
|
+
}, _defineProperty(_ref3, alignToControl(placement), '100%'), _defineProperty(_ref3, "backgroundColor", colors.neutral0), _defineProperty(_ref3, "borderRadius", borderRadius), _defineProperty(_ref3, "boxShadow", '0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)'), _defineProperty(_ref3, "marginBottom", spacing.menuGutter), _defineProperty(_ref3, "marginTop", spacing.menuGutter), _defineProperty(_ref3, "position", 'absolute'), _defineProperty(_ref3, "width", '100%'), _defineProperty(_ref3, "zIndex", 1), _ref3;
|
|
2751
2842
|
};
|
|
2752
2843
|
var PortalPlacementContext = /*#__PURE__*/React.createContext(null);
|
|
2753
2844
|
|
|
@@ -2764,11 +2855,11 @@ var MenuPlacer = function MenuPlacer(props) {
|
|
|
2764
2855
|
setPortalPlacement = _ref4.setPortalPlacement;
|
|
2765
2856
|
var ref = React.useRef(null);
|
|
2766
2857
|
var _useState = React.useState(maxMenuHeight),
|
|
2767
|
-
_useState2 =
|
|
2858
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
2768
2859
|
maxHeight = _useState2[0],
|
|
2769
2860
|
setMaxHeight = _useState2[1];
|
|
2770
2861
|
var _useState3 = React.useState(null),
|
|
2771
|
-
_useState4 =
|
|
2862
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
2772
2863
|
placement = _useState4[0],
|
|
2773
2864
|
setPlacement = _useState4[1];
|
|
2774
2865
|
index(function () {
|
|
@@ -2793,7 +2884,7 @@ var MenuPlacer = function MenuPlacer(props) {
|
|
|
2793
2884
|
}, [maxMenuHeight, menuPlacement, menuPosition, menuShouldScrollIntoView, minMenuHeight, setPortalPlacement, theme]);
|
|
2794
2885
|
return children({
|
|
2795
2886
|
ref: ref,
|
|
2796
|
-
placerProps:
|
|
2887
|
+
placerProps: _objectSpread(_objectSpread({}, props), {}, {
|
|
2797
2888
|
placement: placement || coercePlacement(menuPlacement),
|
|
2798
2889
|
maxHeight: maxHeight
|
|
2799
2890
|
})
|
|
@@ -2806,7 +2897,7 @@ var Menu = function Menu(props) {
|
|
|
2806
2897
|
getStyles = props.getStyles,
|
|
2807
2898
|
innerRef = props.innerRef,
|
|
2808
2899
|
innerProps = props.innerProps;
|
|
2809
|
-
return jsx("div",
|
|
2900
|
+
return jsx("div", _extends({
|
|
2810
2901
|
css: getStyles('menu', props),
|
|
2811
2902
|
className: cx({
|
|
2812
2903
|
menu: true
|
|
@@ -2840,7 +2931,7 @@ var MenuList = function MenuList(props) {
|
|
|
2840
2931
|
innerProps = props.innerProps,
|
|
2841
2932
|
innerRef = props.innerRef,
|
|
2842
2933
|
isMulti = props.isMulti;
|
|
2843
|
-
return jsx("div",
|
|
2934
|
+
return jsx("div", _extends({
|
|
2844
2935
|
css: getStyles('menuList', props),
|
|
2845
2936
|
className: cx({
|
|
2846
2937
|
'menu-list': true,
|
|
@@ -2872,7 +2963,7 @@ var NoOptionsMessage = function NoOptionsMessage(props) {
|
|
|
2872
2963
|
cx = props.cx,
|
|
2873
2964
|
getStyles = props.getStyles,
|
|
2874
2965
|
innerProps = props.innerProps;
|
|
2875
|
-
return jsx("div",
|
|
2966
|
+
return jsx("div", _extends({
|
|
2876
2967
|
css: getStyles('noOptionsMessage', props),
|
|
2877
2968
|
className: cx({
|
|
2878
2969
|
'menu-notice': true,
|
|
@@ -2889,7 +2980,7 @@ var LoadingMessage = function LoadingMessage(props) {
|
|
|
2889
2980
|
cx = props.cx,
|
|
2890
2981
|
getStyles = props.getStyles,
|
|
2891
2982
|
innerProps = props.innerProps;
|
|
2892
|
-
return jsx("div",
|
|
2983
|
+
return jsx("div", _extends({
|
|
2893
2984
|
css: getStyles('loadingMessage', props),
|
|
2894
2985
|
className: cx({
|
|
2895
2986
|
'menu-notice': true,
|
|
@@ -2930,7 +3021,7 @@ var MenuPortal = function MenuPortal(_ref8) {
|
|
|
2930
3021
|
var menuPortalRef = React.useRef(null);
|
|
2931
3022
|
var cleanupRef = React.useRef(null);
|
|
2932
3023
|
var _useState5 = React.useState(coercePlacement(menuPlacement)),
|
|
2933
|
-
_useState6 =
|
|
3024
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
2934
3025
|
placement = _useState6[0],
|
|
2935
3026
|
setPortalPlacement = _useState6[1];
|
|
2936
3027
|
var portalPlacementContext = React.useMemo(function () {
|
|
@@ -2939,7 +3030,7 @@ var MenuPortal = function MenuPortal(_ref8) {
|
|
|
2939
3030
|
};
|
|
2940
3031
|
}, []);
|
|
2941
3032
|
var _useState7 = React.useState(null),
|
|
2942
|
-
_useState8 =
|
|
3033
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
2943
3034
|
computedPosition = _useState8[0],
|
|
2944
3035
|
setComputedPosition = _useState8[1];
|
|
2945
3036
|
var updateComputedPosition = React.useCallback(function () {
|
|
@@ -2980,7 +3071,7 @@ var MenuPortal = function MenuPortal(_ref8) {
|
|
|
2980
3071
|
if (!appendTo && menuPosition !== 'fixed' || !computedPosition) return null;
|
|
2981
3072
|
|
|
2982
3073
|
// same wrapper element whether fixed or portalled
|
|
2983
|
-
var menuWrapper = jsx("div",
|
|
3074
|
+
var menuWrapper = jsx("div", _extends({
|
|
2984
3075
|
ref: setMenuPortalElement,
|
|
2985
3076
|
css: getStyles('menuPortal', {
|
|
2986
3077
|
offset: computedPosition.offset,
|
|
@@ -3015,7 +3106,7 @@ var SelectContainer = function SelectContainer(props) {
|
|
|
3015
3106
|
innerProps = props.innerProps,
|
|
3016
3107
|
isDisabled = props.isDisabled,
|
|
3017
3108
|
isRtl = props.isRtl;
|
|
3018
|
-
return jsx("div",
|
|
3109
|
+
return jsx("div", _extends({
|
|
3019
3110
|
css: getStyles('container', props),
|
|
3020
3111
|
className: cx({
|
|
3021
3112
|
'--is-disabled': isDisabled,
|
|
@@ -3052,7 +3143,7 @@ var ValueContainer = function ValueContainer(props) {
|
|
|
3052
3143
|
isMulti = props.isMulti,
|
|
3053
3144
|
getStyles = props.getStyles,
|
|
3054
3145
|
hasValue = props.hasValue;
|
|
3055
|
-
return jsx("div",
|
|
3146
|
+
return jsx("div", _extends({
|
|
3056
3147
|
css: getStyles('valueContainer', props),
|
|
3057
3148
|
className: cx({
|
|
3058
3149
|
'value-container': true,
|
|
@@ -3080,7 +3171,7 @@ var IndicatorsContainer = function IndicatorsContainer(props) {
|
|
|
3080
3171
|
cx = props.cx,
|
|
3081
3172
|
innerProps = props.innerProps,
|
|
3082
3173
|
getStyles = props.getStyles;
|
|
3083
|
-
return jsx("div",
|
|
3174
|
+
return jsx("div", _extends({
|
|
3084
3175
|
css: getStyles('indicatorsContainer', props),
|
|
3085
3176
|
className: cx({
|
|
3086
3177
|
indicators: true
|
|
@@ -3100,8 +3191,8 @@ var _ref2$2 = {
|
|
|
3100
3191
|
|
|
3101
3192
|
var Svg = function Svg(_ref) {
|
|
3102
3193
|
var size = _ref.size,
|
|
3103
|
-
props =
|
|
3104
|
-
return jsx("svg",
|
|
3194
|
+
props = _objectWithoutProperties(_ref, _excluded$2$1);
|
|
3195
|
+
return jsx("svg", _extends({
|
|
3105
3196
|
height: size,
|
|
3106
3197
|
width: size,
|
|
3107
3198
|
viewBox: "0 0 20 20",
|
|
@@ -3111,14 +3202,14 @@ var Svg = function Svg(_ref) {
|
|
|
3111
3202
|
}, props));
|
|
3112
3203
|
};
|
|
3113
3204
|
var CrossIcon = function CrossIcon(props) {
|
|
3114
|
-
return jsx(Svg,
|
|
3205
|
+
return jsx(Svg, _extends({
|
|
3115
3206
|
size: 20
|
|
3116
3207
|
}, props), jsx("path", {
|
|
3117
3208
|
d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"
|
|
3118
3209
|
}));
|
|
3119
3210
|
};
|
|
3120
3211
|
var DownChevron = function DownChevron(props) {
|
|
3121
|
-
return jsx(Svg,
|
|
3212
|
+
return jsx(Svg, _extends({
|
|
3122
3213
|
size: 20
|
|
3123
3214
|
}, props), jsx("path", {
|
|
3124
3215
|
d: "M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"
|
|
@@ -3152,7 +3243,7 @@ var DropdownIndicator = function DropdownIndicator(props) {
|
|
|
3152
3243
|
cx = props.cx,
|
|
3153
3244
|
getStyles = props.getStyles,
|
|
3154
3245
|
innerProps = props.innerProps;
|
|
3155
|
-
return jsx("div",
|
|
3246
|
+
return jsx("div", _extends({
|
|
3156
3247
|
css: getStyles('dropdownIndicator', props),
|
|
3157
3248
|
className: cx({
|
|
3158
3249
|
indicator: true,
|
|
@@ -3167,7 +3258,7 @@ var ClearIndicator = function ClearIndicator(props) {
|
|
|
3167
3258
|
cx = props.cx,
|
|
3168
3259
|
getStyles = props.getStyles,
|
|
3169
3260
|
innerProps = props.innerProps;
|
|
3170
|
-
return jsx("div",
|
|
3261
|
+
return jsx("div", _extends({
|
|
3171
3262
|
css: getStyles('clearIndicator', props),
|
|
3172
3263
|
className: cx({
|
|
3173
3264
|
indicator: true,
|
|
@@ -3199,7 +3290,7 @@ var IndicatorSeparator = function IndicatorSeparator(props) {
|
|
|
3199
3290
|
cx = props.cx,
|
|
3200
3291
|
getStyles = props.getStyles,
|
|
3201
3292
|
innerProps = props.innerProps;
|
|
3202
|
-
return jsx("span",
|
|
3293
|
+
return jsx("span", _extends({}, innerProps, {
|
|
3203
3294
|
css: getStyles('indicatorSeparator', props),
|
|
3204
3295
|
className: cx({
|
|
3205
3296
|
'indicator-separator': true
|
|
@@ -3211,7 +3302,7 @@ var IndicatorSeparator = function IndicatorSeparator(props) {
|
|
|
3211
3302
|
// Loading
|
|
3212
3303
|
// ==============================
|
|
3213
3304
|
|
|
3214
|
-
var loadingDotAnimations = keyframes(_templateObject || (_templateObject =
|
|
3305
|
+
var loadingDotAnimations = keyframes(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"])));
|
|
3215
3306
|
var loadingIndicatorCSS = function loadingIndicatorCSS(_ref5) {
|
|
3216
3307
|
var isFocused = _ref5.isFocused,
|
|
3217
3308
|
size = _ref5.size,
|
|
@@ -3254,7 +3345,7 @@ var LoadingIndicator = function LoadingIndicator(props) {
|
|
|
3254
3345
|
getStyles = props.getStyles,
|
|
3255
3346
|
innerProps = props.innerProps,
|
|
3256
3347
|
isRtl = props.isRtl;
|
|
3257
|
-
return jsx("div",
|
|
3348
|
+
return jsx("div", _extends({
|
|
3258
3349
|
css: getStyles('loadingIndicator', props),
|
|
3259
3350
|
className: cx({
|
|
3260
3351
|
indicator: true,
|
|
@@ -3314,7 +3405,7 @@ var Control = function Control(props) {
|
|
|
3314
3405
|
innerRef = props.innerRef,
|
|
3315
3406
|
innerProps = props.innerProps,
|
|
3316
3407
|
menuIsOpen = props.menuIsOpen;
|
|
3317
|
-
return jsx("div",
|
|
3408
|
+
return jsx("div", _extends({
|
|
3318
3409
|
ref: innerRef,
|
|
3319
3410
|
css: getStyles('control', props),
|
|
3320
3411
|
className: cx({
|
|
@@ -3345,12 +3436,12 @@ var Group = function Group(props) {
|
|
|
3345
3436
|
label = props.label,
|
|
3346
3437
|
theme = props.theme,
|
|
3347
3438
|
selectProps = props.selectProps;
|
|
3348
|
-
return jsx("div",
|
|
3439
|
+
return jsx("div", _extends({
|
|
3349
3440
|
css: getStyles('group', props),
|
|
3350
3441
|
className: cx({
|
|
3351
3442
|
group: true
|
|
3352
3443
|
}, className)
|
|
3353
|
-
}, innerProps), jsx(Heading,
|
|
3444
|
+
}, innerProps), jsx(Heading, _extends({}, headingProps, {
|
|
3354
3445
|
selectProps: selectProps,
|
|
3355
3446
|
theme: theme,
|
|
3356
3447
|
getStyles: getStyles,
|
|
@@ -3378,8 +3469,8 @@ var GroupHeading = function GroupHeading(props) {
|
|
|
3378
3469
|
className = props.className;
|
|
3379
3470
|
var _cleanCommonProps = cleanCommonProps(props);
|
|
3380
3471
|
_cleanCommonProps.data;
|
|
3381
|
-
var innerProps =
|
|
3382
|
-
return jsx("div",
|
|
3472
|
+
var innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$1$1);
|
|
3473
|
+
return jsx("div", _extends({
|
|
3383
3474
|
css: getStyles('groupHeading', props),
|
|
3384
3475
|
className: cx({
|
|
3385
3476
|
'group-heading': true
|
|
@@ -3394,7 +3485,7 @@ var inputCSS = function inputCSS(_ref) {
|
|
|
3394
3485
|
_ref$theme = _ref.theme,
|
|
3395
3486
|
spacing = _ref$theme.spacing,
|
|
3396
3487
|
colors = _ref$theme.colors;
|
|
3397
|
-
return
|
|
3488
|
+
return _objectSpread({
|
|
3398
3489
|
margin: spacing.baseUnit / 2,
|
|
3399
3490
|
paddingBottom: spacing.baseUnit / 2,
|
|
3400
3491
|
paddingTop: spacing.baseUnit / 2,
|
|
@@ -3419,14 +3510,14 @@ var containerStyle = {
|
|
|
3419
3510
|
display: 'inline-grid',
|
|
3420
3511
|
gridArea: '1 / 1 / 2 / 3',
|
|
3421
3512
|
gridTemplateColumns: '0 min-content',
|
|
3422
|
-
'&:after':
|
|
3513
|
+
'&:after': _objectSpread({
|
|
3423
3514
|
content: 'attr(data-value) " "',
|
|
3424
3515
|
visibility: 'hidden',
|
|
3425
3516
|
whiteSpace: 'pre'
|
|
3426
3517
|
}, spacingStyle)
|
|
3427
3518
|
};
|
|
3428
3519
|
var inputStyle = function inputStyle(isHidden) {
|
|
3429
|
-
return
|
|
3520
|
+
return _objectSpread({
|
|
3430
3521
|
label: 'input',
|
|
3431
3522
|
color: 'inherit',
|
|
3432
3523
|
background: 0,
|
|
@@ -3444,14 +3535,14 @@ var Input = function Input(props) {
|
|
|
3444
3535
|
isDisabled = _cleanCommonProps.isDisabled,
|
|
3445
3536
|
isHidden = _cleanCommonProps.isHidden,
|
|
3446
3537
|
inputClassName = _cleanCommonProps.inputClassName,
|
|
3447
|
-
innerProps =
|
|
3538
|
+
innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$4);
|
|
3448
3539
|
return jsx("div", {
|
|
3449
3540
|
className: cx({
|
|
3450
3541
|
'input-container': true
|
|
3451
3542
|
}, className),
|
|
3452
3543
|
css: getStyles('input', props),
|
|
3453
3544
|
"data-value": value || ''
|
|
3454
|
-
}, jsx("input",
|
|
3545
|
+
}, jsx("input", _extends({
|
|
3455
3546
|
className: cx({
|
|
3456
3547
|
input: true
|
|
3457
3548
|
}, inputClassName),
|
|
@@ -3521,7 +3612,7 @@ var MultiValueLabel = MultiValueGeneric;
|
|
|
3521
3612
|
function MultiValueRemove(_ref5) {
|
|
3522
3613
|
var children = _ref5.children,
|
|
3523
3614
|
innerProps = _ref5.innerProps;
|
|
3524
|
-
return jsx("div",
|
|
3615
|
+
return jsx("div", _extends({
|
|
3525
3616
|
role: "button"
|
|
3526
3617
|
}, innerProps), children || jsx(CrossIcon, {
|
|
3527
3618
|
size: 14
|
|
@@ -3546,7 +3637,7 @@ var MultiValue = function MultiValue(props) {
|
|
|
3546
3637
|
emotionCx = _ref6.cx;
|
|
3547
3638
|
return jsx(Container, {
|
|
3548
3639
|
data: data,
|
|
3549
|
-
innerProps:
|
|
3640
|
+
innerProps: _objectSpread({
|
|
3550
3641
|
className: emotionCx(css(getStyles('multiValue', props)), cx({
|
|
3551
3642
|
'multi-value': true,
|
|
3552
3643
|
'multi-value--is-disabled': isDisabled
|
|
@@ -3563,7 +3654,7 @@ var MultiValue = function MultiValue(props) {
|
|
|
3563
3654
|
selectProps: selectProps
|
|
3564
3655
|
}, children), jsx(Remove, {
|
|
3565
3656
|
data: data,
|
|
3566
|
-
innerProps:
|
|
3657
|
+
innerProps: _objectSpread({
|
|
3567
3658
|
className: emotionCx(css(getStyles('multiValueRemove', props)), cx({
|
|
3568
3659
|
'multi-value__remove': true
|
|
3569
3660
|
}, className)),
|
|
@@ -3608,7 +3699,7 @@ var Option = function Option(props) {
|
|
|
3608
3699
|
isSelected = props.isSelected,
|
|
3609
3700
|
innerRef = props.innerRef,
|
|
3610
3701
|
innerProps = props.innerProps;
|
|
3611
|
-
return jsx("div",
|
|
3702
|
+
return jsx("div", _extends({
|
|
3612
3703
|
css: getStyles('option', props),
|
|
3613
3704
|
className: cx({
|
|
3614
3705
|
option: true,
|
|
@@ -3639,7 +3730,7 @@ var Placeholder = function Placeholder(props) {
|
|
|
3639
3730
|
cx = props.cx,
|
|
3640
3731
|
getStyles = props.getStyles,
|
|
3641
3732
|
innerProps = props.innerProps;
|
|
3642
|
-
return jsx("div",
|
|
3733
|
+
return jsx("div", _extends({
|
|
3643
3734
|
css: getStyles('placeholder', props),
|
|
3644
3735
|
className: cx({
|
|
3645
3736
|
placeholder: true
|
|
@@ -3671,7 +3762,7 @@ var SingleValue = function SingleValue(props) {
|
|
|
3671
3762
|
getStyles = props.getStyles,
|
|
3672
3763
|
isDisabled = props.isDisabled,
|
|
3673
3764
|
innerProps = props.innerProps;
|
|
3674
|
-
return jsx("div",
|
|
3765
|
+
return jsx("div", _extends({
|
|
3675
3766
|
css: getStyles('singleValue', props),
|
|
3676
3767
|
className: cx({
|
|
3677
3768
|
'single-value': true,
|
|
@@ -3708,7 +3799,7 @@ var components = {
|
|
|
3708
3799
|
ValueContainer: ValueContainer
|
|
3709
3800
|
};
|
|
3710
3801
|
var defaultComponents = function defaultComponents(props) {
|
|
3711
|
-
return
|
|
3802
|
+
return _objectSpread(_objectSpread({}, components), props.components);
|
|
3712
3803
|
};
|
|
3713
3804
|
|
|
3714
3805
|
var safeIsNaN = Number.isNaN ||
|
|
@@ -3767,7 +3858,7 @@ var _ref = {
|
|
|
3767
3858
|
styles: "label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"
|
|
3768
3859
|
} ;
|
|
3769
3860
|
var A11yText = function A11yText(props) {
|
|
3770
|
-
return jsx("span",
|
|
3861
|
+
return jsx("span", _extends({
|
|
3771
3862
|
css: _ref
|
|
3772
3863
|
}, props));
|
|
3773
3864
|
};
|
|
@@ -3864,7 +3955,7 @@ var LiveRegion = function LiveRegion(props) {
|
|
|
3864
3955
|
|
|
3865
3956
|
// Update aria live message configuration when prop changes
|
|
3866
3957
|
var messages = React.useMemo(function () {
|
|
3867
|
-
return
|
|
3958
|
+
return _objectSpread(_objectSpread({}, defaultAriaLiveMessages), ariaLiveMessages || {});
|
|
3868
3959
|
}, [ariaLiveMessages]);
|
|
3869
3960
|
|
|
3870
3961
|
// Update aria live selected option when prop changes
|
|
@@ -3888,7 +3979,7 @@ var LiveRegion = function LiveRegion(props) {
|
|
|
3888
3979
|
// If there are multiple items from the action then return an array of labels
|
|
3889
3980
|
var multiSelected = selectedOptions || removedValues || undefined;
|
|
3890
3981
|
var labels = multiSelected ? multiSelected.map(getOptionLabel) : [];
|
|
3891
|
-
var onChangeProps =
|
|
3982
|
+
var onChangeProps = _objectSpread({
|
|
3892
3983
|
// multiSelected items are usually items that have already been selected
|
|
3893
3984
|
// or set by the user as a default value so we assume they are not disabled
|
|
3894
3985
|
isDisabled: selected && isOptionDisabled(selected, selectValue),
|
|
@@ -4241,7 +4332,7 @@ var createFilter = function createFilter(config) {
|
|
|
4241
4332
|
return function (option, rawInput) {
|
|
4242
4333
|
// eslint-disable-next-line no-underscore-dangle
|
|
4243
4334
|
if (option.data.__isNew__) return true;
|
|
4244
|
-
var _ignoreCase$ignoreAcc =
|
|
4335
|
+
var _ignoreCase$ignoreAcc = _objectSpread({
|
|
4245
4336
|
ignoreCase: true,
|
|
4246
4337
|
ignoreAccents: true,
|
|
4247
4338
|
stringify: defaultStringify,
|
|
@@ -4270,10 +4361,10 @@ var createFilter = function createFilter(config) {
|
|
|
4270
4361
|
var _excluded$2 = ["innerRef"];
|
|
4271
4362
|
function DummyInput(_ref) {
|
|
4272
4363
|
var innerRef = _ref.innerRef,
|
|
4273
|
-
props =
|
|
4364
|
+
props = _objectWithoutProperties(_ref, _excluded$2);
|
|
4274
4365
|
// Remove animation props not meant for HTML elements
|
|
4275
4366
|
var filteredProps = removeProps(props, 'onExited', 'in', 'enter', 'exit', 'appear');
|
|
4276
|
-
return jsx("input",
|
|
4367
|
+
return jsx("input", _extends({
|
|
4277
4368
|
ref: innerRef
|
|
4278
4369
|
}, filteredProps, {
|
|
4279
4370
|
css: /*#__PURE__*/css$2({
|
|
@@ -4737,7 +4828,7 @@ function buildCategorizedOptions(props, selectValue) {
|
|
|
4737
4828
|
function buildFocusableOptionsFromCategorizedOptions(categorizedOptions) {
|
|
4738
4829
|
return categorizedOptions.reduce(function (optionsAccumulator, categorizedOption) {
|
|
4739
4830
|
if (categorizedOption.type === 'group') {
|
|
4740
|
-
optionsAccumulator.push.apply(optionsAccumulator,
|
|
4831
|
+
optionsAccumulator.push.apply(optionsAccumulator, _toConsumableArray(categorizedOption.options.map(function (option) {
|
|
4741
4832
|
return option.data;
|
|
4742
4833
|
})));
|
|
4743
4834
|
} else {
|
|
@@ -4813,8 +4904,8 @@ var shouldHideSelectedOptions = function shouldHideSelectedOptions(props) {
|
|
|
4813
4904
|
};
|
|
4814
4905
|
var instanceId = 1;
|
|
4815
4906
|
var Select = /*#__PURE__*/function (_Component) {
|
|
4816
|
-
|
|
4817
|
-
var _super =
|
|
4907
|
+
_inherits(Select, _Component);
|
|
4908
|
+
var _super = _createSuper(Select);
|
|
4818
4909
|
// Misc. Instance Properties
|
|
4819
4910
|
// ------------------------------
|
|
4820
4911
|
|
|
@@ -4828,7 +4919,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
4828
4919
|
|
|
4829
4920
|
function Select(_props) {
|
|
4830
4921
|
var _this;
|
|
4831
|
-
|
|
4922
|
+
_classCallCheck(this, Select);
|
|
4832
4923
|
_this = _super.call(this, _props);
|
|
4833
4924
|
_this.state = {
|
|
4834
4925
|
ariaSelection: null,
|
|
@@ -4917,7 +5008,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
4917
5008
|
} else if (!isDisabled) {
|
|
4918
5009
|
// Select option if option is not disabled
|
|
4919
5010
|
if (isMulti) {
|
|
4920
|
-
_this.setValue(multiValueAsValue([].concat(
|
|
5011
|
+
_this.setValue(multiValueAsValue([].concat(_toConsumableArray(selectValue), [newValue])), 'select-option', newValue);
|
|
4921
5012
|
} else {
|
|
4922
5013
|
_this.setValue(singleValueAsValue(newValue), 'select-option');
|
|
4923
5014
|
}
|
|
@@ -5006,7 +5097,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
5006
5097
|
};
|
|
5007
5098
|
_this.ariaOnChange = function (value, actionMeta) {
|
|
5008
5099
|
_this.setState({
|
|
5009
|
-
ariaSelection:
|
|
5100
|
+
ariaSelection: _objectSpread({
|
|
5010
5101
|
value: value
|
|
5011
5102
|
}, actionMeta)
|
|
5012
5103
|
});
|
|
@@ -5352,7 +5443,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
5352
5443
|
}
|
|
5353
5444
|
return _this;
|
|
5354
5445
|
}
|
|
5355
|
-
|
|
5446
|
+
_createClass(Select, [{
|
|
5356
5447
|
key: "componentDidMount",
|
|
5357
5448
|
value: function componentDidMount() {
|
|
5358
5449
|
this.startListeningComposition();
|
|
@@ -5572,7 +5663,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
5572
5663
|
}
|
|
5573
5664
|
// Otherwise, if a plain theme object was passed in,
|
|
5574
5665
|
// overlay it with the default theme.
|
|
5575
|
-
return
|
|
5666
|
+
return _objectSpread(_objectSpread({}, defaultTheme), this.props.theme);
|
|
5576
5667
|
}
|
|
5577
5668
|
}, {
|
|
5578
5669
|
key: "getCommonProps",
|
|
@@ -5734,7 +5825,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
5734
5825
|
var id = inputId || this.getElementId('input');
|
|
5735
5826
|
|
|
5736
5827
|
// aria attributes makes the JSX "noisy", separated for clarity
|
|
5737
|
-
var ariaAttributes =
|
|
5828
|
+
var ariaAttributes = _objectSpread(_objectSpread(_objectSpread({
|
|
5738
5829
|
'aria-autocomplete': 'list',
|
|
5739
5830
|
'aria-expanded': menuIsOpen,
|
|
5740
5831
|
'aria-haspopup': true,
|
|
@@ -5756,7 +5847,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
5756
5847
|
});
|
|
5757
5848
|
if (!isSearchable) {
|
|
5758
5849
|
// use a dummy input to maintain focus/blur functionality
|
|
5759
|
-
return /*#__PURE__*/React__namespace.createElement(DummyInput,
|
|
5850
|
+
return /*#__PURE__*/React__namespace.createElement(DummyInput, _extends({
|
|
5760
5851
|
id: id,
|
|
5761
5852
|
innerRef: this.getInputRef,
|
|
5762
5853
|
onBlur: this.onInputBlur,
|
|
@@ -5769,7 +5860,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
5769
5860
|
value: ""
|
|
5770
5861
|
}, ariaAttributes));
|
|
5771
5862
|
}
|
|
5772
|
-
return /*#__PURE__*/React__namespace.createElement(Input,
|
|
5863
|
+
return /*#__PURE__*/React__namespace.createElement(Input, _extends({}, commonProps, {
|
|
5773
5864
|
autoCapitalize: "none",
|
|
5774
5865
|
autoComplete: "off",
|
|
5775
5866
|
autoCorrect: "off",
|
|
@@ -5810,7 +5901,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
5810
5901
|
focusedValue = _this$state5.focusedValue,
|
|
5811
5902
|
isFocused = _this$state5.isFocused;
|
|
5812
5903
|
if (!this.hasValue() || !controlShouldRenderValue) {
|
|
5813
|
-
return inputValue ? null : /*#__PURE__*/React__namespace.createElement(Placeholder,
|
|
5904
|
+
return inputValue ? null : /*#__PURE__*/React__namespace.createElement(Placeholder, _extends({}, commonProps, {
|
|
5814
5905
|
key: "placeholder",
|
|
5815
5906
|
isDisabled: isDisabled,
|
|
5816
5907
|
isFocused: isFocused,
|
|
@@ -5823,7 +5914,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
5823
5914
|
return selectValue.map(function (opt, index) {
|
|
5824
5915
|
var isOptionFocused = opt === focusedValue;
|
|
5825
5916
|
var key = "".concat(_this3.getOptionLabel(opt), "-").concat(_this3.getOptionValue(opt));
|
|
5826
|
-
return /*#__PURE__*/React__namespace.createElement(MultiValue,
|
|
5917
|
+
return /*#__PURE__*/React__namespace.createElement(MultiValue, _extends({}, commonProps, {
|
|
5827
5918
|
components: {
|
|
5828
5919
|
Container: MultiValueContainer,
|
|
5829
5920
|
Label: MultiValueLabel,
|
|
@@ -5852,7 +5943,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
5852
5943
|
return null;
|
|
5853
5944
|
}
|
|
5854
5945
|
var singleValue = selectValue[0];
|
|
5855
|
-
return /*#__PURE__*/React__namespace.createElement(SingleValue,
|
|
5946
|
+
return /*#__PURE__*/React__namespace.createElement(SingleValue, _extends({}, commonProps, {
|
|
5856
5947
|
data: singleValue,
|
|
5857
5948
|
isDisabled: isDisabled
|
|
5858
5949
|
}), this.formatOptionLabel(singleValue, 'value'));
|
|
@@ -5875,7 +5966,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
5875
5966
|
onTouchEnd: this.onClearIndicatorTouchEnd,
|
|
5876
5967
|
'aria-hidden': 'true'
|
|
5877
5968
|
};
|
|
5878
|
-
return /*#__PURE__*/React__namespace.createElement(ClearIndicator,
|
|
5969
|
+
return /*#__PURE__*/React__namespace.createElement(ClearIndicator, _extends({}, commonProps, {
|
|
5879
5970
|
innerProps: innerProps,
|
|
5880
5971
|
isFocused: isFocused
|
|
5881
5972
|
}));
|
|
@@ -5894,7 +5985,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
5894
5985
|
var innerProps = {
|
|
5895
5986
|
'aria-hidden': 'true'
|
|
5896
5987
|
};
|
|
5897
|
-
return /*#__PURE__*/React__namespace.createElement(LoadingIndicator,
|
|
5988
|
+
return /*#__PURE__*/React__namespace.createElement(LoadingIndicator, _extends({}, commonProps, {
|
|
5898
5989
|
innerProps: innerProps,
|
|
5899
5990
|
isDisabled: isDisabled,
|
|
5900
5991
|
isFocused: isFocused
|
|
@@ -5912,7 +6003,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
5912
6003
|
var commonProps = this.commonProps;
|
|
5913
6004
|
var isDisabled = this.props.isDisabled;
|
|
5914
6005
|
var isFocused = this.state.isFocused;
|
|
5915
|
-
return /*#__PURE__*/React__namespace.createElement(IndicatorSeparator,
|
|
6006
|
+
return /*#__PURE__*/React__namespace.createElement(IndicatorSeparator, _extends({}, commonProps, {
|
|
5916
6007
|
isDisabled: isDisabled,
|
|
5917
6008
|
isFocused: isFocused
|
|
5918
6009
|
}));
|
|
@@ -5931,7 +6022,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
5931
6022
|
onTouchEnd: this.onDropdownIndicatorTouchEnd,
|
|
5932
6023
|
'aria-hidden': 'true'
|
|
5933
6024
|
};
|
|
5934
|
-
return /*#__PURE__*/React__namespace.createElement(DropdownIndicator,
|
|
6025
|
+
return /*#__PURE__*/React__namespace.createElement(DropdownIndicator, _extends({}, commonProps, {
|
|
5935
6026
|
innerProps: innerProps,
|
|
5936
6027
|
isDisabled: isDisabled,
|
|
5937
6028
|
isFocused: isFocused
|
|
@@ -5993,7 +6084,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
5993
6084
|
onMouseOver: onHover,
|
|
5994
6085
|
tabIndex: -1
|
|
5995
6086
|
};
|
|
5996
|
-
return /*#__PURE__*/React__namespace.createElement(Option,
|
|
6087
|
+
return /*#__PURE__*/React__namespace.createElement(Option, _extends({}, commonProps, {
|
|
5997
6088
|
innerProps: innerProps,
|
|
5998
6089
|
data: data,
|
|
5999
6090
|
isDisabled: isDisabled,
|
|
@@ -6015,7 +6106,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6015
6106
|
groupIndex = item.index;
|
|
6016
6107
|
var groupId = "".concat(_this4.getElementId('group'), "-").concat(groupIndex);
|
|
6017
6108
|
var headingId = "".concat(groupId, "-heading");
|
|
6018
|
-
return /*#__PURE__*/React__namespace.createElement(Group,
|
|
6109
|
+
return /*#__PURE__*/React__namespace.createElement(Group, _extends({}, commonProps, {
|
|
6019
6110
|
key: groupId,
|
|
6020
6111
|
data: _data,
|
|
6021
6112
|
options: options,
|
|
@@ -6052,12 +6143,12 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6052
6143
|
menuPosition: menuPosition,
|
|
6053
6144
|
menuShouldScrollIntoView: menuShouldScrollIntoView
|
|
6054
6145
|
};
|
|
6055
|
-
var menuElement = /*#__PURE__*/React__namespace.createElement(MenuPlacer,
|
|
6146
|
+
var menuElement = /*#__PURE__*/React__namespace.createElement(MenuPlacer, _extends({}, commonProps, menuPlacementProps), function (_ref4) {
|
|
6056
6147
|
var ref = _ref4.ref,
|
|
6057
6148
|
_ref4$placerProps = _ref4.placerProps,
|
|
6058
6149
|
placement = _ref4$placerProps.placement,
|
|
6059
6150
|
maxHeight = _ref4$placerProps.maxHeight;
|
|
6060
|
-
return /*#__PURE__*/React__namespace.createElement(Menu,
|
|
6151
|
+
return /*#__PURE__*/React__namespace.createElement(Menu, _extends({}, commonProps, menuPlacementProps, {
|
|
6061
6152
|
innerRef: ref,
|
|
6062
6153
|
innerProps: {
|
|
6063
6154
|
onMouseDown: _this4.onMenuMouseDown,
|
|
@@ -6072,7 +6163,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6072
6163
|
onBottomArrive: onMenuScrollToBottom,
|
|
6073
6164
|
lockEnabled: menuShouldBlockScroll
|
|
6074
6165
|
}, function (scrollTargetRef) {
|
|
6075
|
-
return /*#__PURE__*/React__namespace.createElement(MenuList,
|
|
6166
|
+
return /*#__PURE__*/React__namespace.createElement(MenuList, _extends({}, commonProps, {
|
|
6076
6167
|
innerRef: function innerRef(instance) {
|
|
6077
6168
|
_this4.getMenuListRef(instance);
|
|
6078
6169
|
scrollTargetRef(instance);
|
|
@@ -6087,7 +6178,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6087
6178
|
// positioning behaviour is almost identical for portalled and fixed,
|
|
6088
6179
|
// so we use the same component. the actual portalling logic is forked
|
|
6089
6180
|
// within the component based on `menuPosition`
|
|
6090
|
-
return menuPortalTarget || menuPosition === 'fixed' ? /*#__PURE__*/React__namespace.createElement(MenuPortal,
|
|
6181
|
+
return menuPortalTarget || menuPosition === 'fixed' ? /*#__PURE__*/React__namespace.createElement(MenuPortal, _extends({}, commonProps, {
|
|
6091
6182
|
appendTo: menuPortalTarget,
|
|
6092
6183
|
controlElement: this.controlRef,
|
|
6093
6184
|
menuPlacement: menuPlacement,
|
|
@@ -6157,7 +6248,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6157
6248
|
isFocused = _this$state6.isFocused,
|
|
6158
6249
|
selectValue = _this$state6.selectValue;
|
|
6159
6250
|
var focusableOptions = this.getFocusableOptions();
|
|
6160
|
-
return /*#__PURE__*/React__namespace.createElement(LiveRegion,
|
|
6251
|
+
return /*#__PURE__*/React__namespace.createElement(LiveRegion, _extends({}, commonProps, {
|
|
6161
6252
|
id: this.getElementId('live-region'),
|
|
6162
6253
|
ariaSelection: ariaSelection,
|
|
6163
6254
|
focusedOption: focusedOption,
|
|
@@ -6182,7 +6273,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6182
6273
|
menuIsOpen = _this$props14.menuIsOpen;
|
|
6183
6274
|
var isFocused = this.state.isFocused;
|
|
6184
6275
|
var commonProps = this.commonProps = this.getCommonProps();
|
|
6185
|
-
return /*#__PURE__*/React__namespace.createElement(SelectContainer,
|
|
6276
|
+
return /*#__PURE__*/React__namespace.createElement(SelectContainer, _extends({}, commonProps, {
|
|
6186
6277
|
className: className,
|
|
6187
6278
|
innerProps: {
|
|
6188
6279
|
id: id,
|
|
@@ -6190,7 +6281,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6190
6281
|
},
|
|
6191
6282
|
isDisabled: isDisabled,
|
|
6192
6283
|
isFocused: isFocused
|
|
6193
|
-
}), this.renderLiveRegion(), /*#__PURE__*/React__namespace.createElement(Control,
|
|
6284
|
+
}), this.renderLiveRegion(), /*#__PURE__*/React__namespace.createElement(Control, _extends({}, commonProps, {
|
|
6194
6285
|
innerRef: this.getControlRef,
|
|
6195
6286
|
innerProps: {
|
|
6196
6287
|
onMouseDown: this.onControlMouseDown,
|
|
@@ -6199,9 +6290,9 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6199
6290
|
isDisabled: isDisabled,
|
|
6200
6291
|
isFocused: isFocused,
|
|
6201
6292
|
menuIsOpen: menuIsOpen
|
|
6202
|
-
}), /*#__PURE__*/React__namespace.createElement(ValueContainer,
|
|
6293
|
+
}), /*#__PURE__*/React__namespace.createElement(ValueContainer, _extends({}, commonProps, {
|
|
6203
6294
|
isDisabled: isDisabled
|
|
6204
|
-
}), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/React__namespace.createElement(IndicatorsContainer,
|
|
6295
|
+
}), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/React__namespace.createElement(IndicatorsContainer, _extends({}, commonProps, {
|
|
6205
6296
|
isDisabled: isDisabled
|
|
6206
6297
|
}), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
|
|
6207
6298
|
}
|
|
@@ -6255,7 +6346,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6255
6346
|
if ((ariaSelection === null || ariaSelection === void 0 ? void 0 : ariaSelection.action) === 'initial-input-focus') {
|
|
6256
6347
|
newAriaSelection = null;
|
|
6257
6348
|
}
|
|
6258
|
-
return
|
|
6349
|
+
return _objectSpread(_objectSpread(_objectSpread({}, newMenuOptionsState), newInputIsHiddenState), {}, {
|
|
6259
6350
|
prevProps: props,
|
|
6260
6351
|
ariaSelection: newAriaSelection,
|
|
6261
6352
|
prevWasFocused: hasKeptFocus
|
|
@@ -6281,17 +6372,17 @@ function useStateManager(_ref) {
|
|
|
6281
6372
|
propsOnMenuClose = _ref.onMenuClose,
|
|
6282
6373
|
propsOnMenuOpen = _ref.onMenuOpen,
|
|
6283
6374
|
propsValue = _ref.value,
|
|
6284
|
-
restSelectProps =
|
|
6375
|
+
restSelectProps = _objectWithoutProperties(_ref, _excluded$1);
|
|
6285
6376
|
var _useState = React.useState(propsInputValue !== undefined ? propsInputValue : defaultInputValue),
|
|
6286
|
-
_useState2 =
|
|
6377
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
6287
6378
|
stateInputValue = _useState2[0],
|
|
6288
6379
|
setStateInputValue = _useState2[1];
|
|
6289
6380
|
var _useState3 = React.useState(propsMenuIsOpen !== undefined ? propsMenuIsOpen : defaultMenuIsOpen),
|
|
6290
|
-
_useState4 =
|
|
6381
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
6291
6382
|
stateMenuIsOpen = _useState4[0],
|
|
6292
6383
|
setStateMenuIsOpen = _useState4[1];
|
|
6293
6384
|
var _useState5 = React.useState(propsValue !== undefined ? propsValue : defaultValue),
|
|
6294
|
-
_useState6 =
|
|
6385
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
6295
6386
|
stateValue = _useState6[0],
|
|
6296
6387
|
setStateValue = _useState6[1];
|
|
6297
6388
|
var onChange = React.useCallback(function (value, actionMeta) {
|
|
@@ -6322,7 +6413,7 @@ function useStateManager(_ref) {
|
|
|
6322
6413
|
var inputValue = propsInputValue !== undefined ? propsInputValue : stateInputValue;
|
|
6323
6414
|
var menuIsOpen = propsMenuIsOpen !== undefined ? propsMenuIsOpen : stateMenuIsOpen;
|
|
6324
6415
|
var value = propsValue !== undefined ? propsValue : stateValue;
|
|
6325
|
-
return
|
|
6416
|
+
return _objectSpread(_objectSpread({}, restSelectProps), {}, {
|
|
6326
6417
|
inputValue: inputValue,
|
|
6327
6418
|
menuIsOpen: menuIsOpen,
|
|
6328
6419
|
onChange: onChange,
|
|
@@ -6377,7 +6468,7 @@ function useCreatable(_ref) {
|
|
|
6377
6468
|
_ref$options = _ref.options,
|
|
6378
6469
|
propsOptions = _ref$options === void 0 ? [] : _ref$options,
|
|
6379
6470
|
propsOnChange = _ref.onChange,
|
|
6380
|
-
restSelectProps =
|
|
6471
|
+
restSelectProps = _objectWithoutProperties(_ref, _excluded);
|
|
6381
6472
|
var _restSelectProps$getO = restSelectProps.getOptionValue,
|
|
6382
6473
|
getOptionValue$1$1 = _restSelectProps$getO === void 0 ? getOptionValue$1 : _restSelectProps$getO,
|
|
6383
6474
|
_restSelectProps$getO2 = restSelectProps.getOptionLabel,
|
|
@@ -6394,7 +6485,7 @@ function useCreatable(_ref) {
|
|
|
6394
6485
|
}) ? getNewOptionData(inputValue, formatCreateLabel(inputValue)) : undefined;
|
|
6395
6486
|
}, [formatCreateLabel, getNewOptionData, getOptionLabel$1$1, getOptionValue$1$1, inputValue, isValidNewOption, propsOptions, value]);
|
|
6396
6487
|
var options = React.useMemo(function () {
|
|
6397
|
-
return (allowCreateWhileLoading || !isLoading) && newOption ? createOptionPosition === 'first' ? [newOption].concat(
|
|
6488
|
+
return (allowCreateWhileLoading || !isLoading) && newOption ? createOptionPosition === 'first' ? [newOption].concat(_toConsumableArray(propsOptions)) : [].concat(_toConsumableArray(propsOptions), [newOption]) : propsOptions;
|
|
6398
6489
|
}, [allowCreateWhileLoading, createOptionPosition, isLoading, newOption, propsOptions]);
|
|
6399
6490
|
var onChange = React.useCallback(function (newValue, actionMeta) {
|
|
6400
6491
|
if (actionMeta.action !== 'select-option') {
|
|
@@ -6409,13 +6500,13 @@ function useCreatable(_ref) {
|
|
|
6409
6500
|
name: name,
|
|
6410
6501
|
option: newOptionData
|
|
6411
6502
|
};
|
|
6412
|
-
propsOnChange(valueTernary(isMulti, [].concat(
|
|
6503
|
+
propsOnChange(valueTernary(isMulti, [].concat(_toConsumableArray(cleanValue(value)), [newOptionData]), newOptionData), newActionMeta);
|
|
6413
6504
|
}
|
|
6414
6505
|
return;
|
|
6415
6506
|
}
|
|
6416
6507
|
propsOnChange(newValue, actionMeta);
|
|
6417
6508
|
}, [getNewOptionData, inputValue, isMulti, name, newOption, onCreateOption, propsOnChange, value]);
|
|
6418
|
-
return
|
|
6509
|
+
return _objectSpread(_objectSpread({}, restSelectProps), {}, {
|
|
6419
6510
|
options: options,
|
|
6420
6511
|
onChange: onChange
|
|
6421
6512
|
});
|
|
@@ -6424,7 +6515,7 @@ function useCreatable(_ref) {
|
|
|
6424
6515
|
var CreatableSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
6425
6516
|
var creatableProps = useStateManager(props);
|
|
6426
6517
|
var selectProps = useCreatable(creatableProps);
|
|
6427
|
-
return /*#__PURE__*/React__namespace.createElement(Select,
|
|
6518
|
+
return /*#__PURE__*/React__namespace.createElement(Select, _extends({
|
|
6428
6519
|
ref: ref
|
|
6429
6520
|
}, selectProps));
|
|
6430
6521
|
});
|
|
@@ -6435,4 +6526,4 @@ exports.components = components;
|
|
|
6435
6526
|
exports.handleInputChange = handleInputChange;
|
|
6436
6527
|
exports.useCreatable = useCreatable;
|
|
6437
6528
|
exports.useStateManager = useStateManager;
|
|
6438
|
-
//# sourceMappingURL=react-select-creatable.esm-
|
|
6529
|
+
//# sourceMappingURL=react-select-creatable.esm-Bdv9YAMt.js.map
|