@ntbjs/react-components 2.0.0-rc.11 → 2.0.0-rc.13
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/cjs/components/data/Alert/Alert.js +8 -10
- package/cjs/components/data/Alert/Alert.styled.js +17 -10
- package/cjs/components/data/Badge/Badge.js +13 -13
- package/cjs/components/data/Badge/Badge.styled.js +37 -26
- package/cjs/components/data/Popover/Popover.js +4 -2
- package/cjs/components/data/Tab/Tab.styled.js +6 -1
- package/cjs/components/data/Tabs/Tabs.js +22 -12
- package/cjs/components/data/Tabs/Tabs.styled.js +29 -16
- package/cjs/components/data/Tooltip/Tooltip.js +3 -1
- package/cjs/components/data/VerificationStatusIcon/VerificationStatusIcon.js +6 -6
- package/cjs/components/data/VerificationStatusIcon/VerificationStatusIcon.styled.js +24 -15
- package/cjs/components/inputs/ActionButton/ActionButton.js +5 -3
- package/cjs/components/inputs/ActionButton/ActionButton.styled.js +17 -8
- package/cjs/components/inputs/Button/Button.js +45 -38
- package/cjs/components/inputs/Button/Button.styled.js +84 -38
- package/cjs/components/inputs/Checkbox/Checkbox.js +1 -1
- package/cjs/components/inputs/Checkbox/Checkbox.styled.js +23 -8
- package/cjs/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.js +2 -2
- package/cjs/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.js +46 -35
- package/cjs/components/inputs/CompactStarRating/CompactStarRating.js +3 -4
- package/cjs/components/inputs/CompactStarRating/CompactStarRating.styled.js +36 -25
- package/cjs/components/inputs/CompactTextInput/CompactTextInput.js +5 -5
- package/cjs/components/inputs/CompactTextInput/CompactTextInput.styled.js +79 -25
- package/cjs/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.styled.js +24 -7
- package/cjs/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js +1 -1
- package/cjs/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.js +38 -13
- package/cjs/components/inputs/MultiSelect/MultiSelect.js +5 -48
- package/cjs/components/inputs/MultiSelect/MultiSelect.styled.js +27 -31
- package/cjs/components/inputs/Radio/Radio.styled.js +9 -2
- package/cjs/components/inputs/Switch/Switch.js +1 -1
- package/cjs/components/inputs/Switch/Switch.styled.js +22 -7
- package/cjs/components/inputs/TextArea/TextArea.js +10 -20
- package/cjs/components/inputs/TextArea/TextArea.styled.js +208 -133
- package/cjs/components/inputs/TextInput/TextInput.js +21 -22
- package/cjs/components/inputs/TextInput/TextInput.styled.js +58 -45
- package/cjs/components/layout/InputGroup/InputGroup.styled.js +6 -1
- package/cjs/components/layout/SectionSeparator/SectionSeparator.js +7 -7
- package/cjs/components/layout/SectionSeparator/SectionSeparator.styled.js +12 -5
- package/cjs/components/widgets/AssetAction/AssetAction.js +1 -1
- package/cjs/components/widgets/AssetAction/AssetAction.styled.js +16 -5
- package/cjs/components/widgets/AssetActionsBase/AssetActionsBase.styled.js +6 -1
- package/cjs/components/widgets/AssetGallery/AssetGallery.js +5 -1
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.js +9 -6
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.js +12 -3
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.js +7 -4
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js +80 -33
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.js +1 -1
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.js +22 -22
- package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js +2 -2
- package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.styled.js +18 -7
- package/cjs/components/widgets/ContextMenu/ContextMenu.js +2 -1
- package/cjs/components/widgets/ContextMenu/ContextMenu.styled.js +6 -1
- package/cjs/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js +4 -4
- package/cjs/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.js +16 -7
- package/cjs/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.styled.js +6 -1
- package/cjs/components/widgets/InfoCard/InfoCard.js +17 -9
- package/cjs/components/widgets/InfoCard/InfoCard.styled.js +40 -13
- package/cjs/components/widgets/ProgressBar/ProgressBar.js +43 -22
- package/cjs/components/widgets/ProgressBar/ProgressBar.styled.js +78 -22
- package/cjs/components/widgets/SummaryCard/SummaryCard.js +9 -8
- package/cjs/components/widgets/SummaryCard/SummaryCard.styled.js +46 -19
- package/cjs/components/widgets/widgets/index.js +0 -2
- package/cjs/node_modules/@emotion/cache/dist/{emotion-cache.browser.esm.js → emotion-cache.esm.js} +61 -3
- package/cjs/node_modules/@emotion/react/dist/{emotion-element-f0de968e.browser.esm.js → emotion-element-d59e098f.esm.js} +54 -12
- package/cjs/node_modules/@emotion/react/dist/{emotion-react.browser.esm.js → emotion-react.esm.js} +10 -7
- package/cjs/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/{emotion-use-insertion-effect-with-fallbacks.browser.esm.js → emotion-use-insertion-effect-with-fallbacks.esm.js} +3 -1
- package/cjs/node_modules/@emotion/utils/dist/{emotion-utils.browser.esm.js → emotion-utils.esm.js} +12 -3
- package/cjs/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +20 -0
- package/cjs/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js +20 -12
- package/cjs/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js +1 -1
- package/cjs/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.js +4 -2
- package/cjs/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js +9 -8
- package/cjs/node_modules/@restart/hooks/{esm → lib}/useMergedRefs.js +8 -11
- package/cjs/node_modules/@restart/hooks/{esm → lib}/useUpdateEffect.js +2 -4
- package/cjs/node_modules/react/cjs/react.development.js +125 -82
- package/cjs/node_modules/react/cjs/react.production.js +88 -92
- package/cjs/node_modules/react-dom/cjs/react-dom.development.js +1 -1
- package/cjs/node_modules/react-dom/cjs/react-dom.production.js +1 -1
- package/cjs/node_modules/react-select/creatable/dist/react-select-creatable.esm.js +5 -5
- package/cjs/node_modules/react-select/dist/{Select-aab027f3.esm.js → Select-ef7c0426.esm.js} +23 -17
- package/cjs/node_modules/react-select/dist/index-641ee5b8.esm.js +47 -47
- package/cjs/node_modules/react-select/dist/{useCreatable-84008237.esm.js → useCreatable-09aaeb9a.esm.js} +3 -3
- package/cjs/node_modules/use-isomorphic-layout-effect/dist/{use-isomorphic-layout-effect.browser.esm.js → use-isomorphic-layout-effect.esm.js} +4 -1
- package/cjs/styles/utils/colors-export.js +41 -0
- package/cjs/utils/defaultTheme.js +28 -5
- package/esm/components/data/Alert/Alert.js +8 -10
- package/esm/components/data/Alert/Alert.styled.js +17 -10
- package/esm/components/data/Badge/Badge.js +13 -13
- package/esm/components/data/Badge/Badge.styled.js +37 -26
- package/esm/components/data/Popover/Popover.js +4 -2
- package/esm/components/data/Tab/Tab.styled.js +6 -1
- package/esm/components/data/Tabs/Tabs.js +23 -13
- package/esm/components/data/Tabs/Tabs.styled.js +29 -16
- package/esm/components/data/Tooltip/Tooltip.js +3 -1
- package/esm/components/data/VerificationStatusIcon/VerificationStatusIcon.js +6 -6
- package/esm/components/data/VerificationStatusIcon/VerificationStatusIcon.styled.js +24 -15
- package/esm/components/inputs/ActionButton/ActionButton.js +5 -3
- package/esm/components/inputs/ActionButton/ActionButton.styled.js +17 -8
- package/esm/components/inputs/Button/Button.js +45 -38
- package/esm/components/inputs/Button/Button.styled.js +84 -38
- package/esm/components/inputs/Checkbox/Checkbox.js +1 -1
- package/esm/components/inputs/Checkbox/Checkbox.styled.js +23 -8
- package/esm/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.js +4 -4
- package/esm/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.js +46 -35
- package/esm/components/inputs/CompactStarRating/CompactStarRating.js +3 -4
- package/esm/components/inputs/CompactStarRating/CompactStarRating.styled.js +36 -25
- package/esm/components/inputs/CompactTextInput/CompactTextInput.js +5 -5
- package/esm/components/inputs/CompactTextInput/CompactTextInput.styled.js +79 -25
- package/esm/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.styled.js +24 -7
- package/esm/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js +1 -1
- package/esm/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.js +38 -13
- package/esm/components/inputs/MultiSelect/MultiSelect.js +6 -49
- package/esm/components/inputs/MultiSelect/MultiSelect.styled.js +28 -28
- package/esm/components/inputs/Radio/Radio.styled.js +9 -2
- package/esm/components/inputs/Switch/Switch.js +1 -1
- package/esm/components/inputs/Switch/Switch.styled.js +22 -7
- package/esm/components/inputs/TextArea/TextArea.js +10 -20
- package/esm/components/inputs/TextArea/TextArea.styled.js +208 -133
- package/esm/components/inputs/TextInput/TextInput.js +21 -22
- package/esm/components/inputs/TextInput/TextInput.styled.js +58 -45
- package/esm/components/layout/InputGroup/InputGroup.styled.js +6 -1
- package/esm/components/layout/SectionSeparator/SectionSeparator.js +7 -7
- package/esm/components/layout/SectionSeparator/SectionSeparator.styled.js +12 -5
- package/esm/components/widgets/AssetAction/AssetAction.js +1 -1
- package/esm/components/widgets/AssetAction/AssetAction.styled.js +16 -5
- package/esm/components/widgets/AssetActionsBase/AssetActionsBase.styled.js +6 -1
- package/esm/components/widgets/AssetGallery/AssetGallery.js +5 -1
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.js +9 -6
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.js +12 -3
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.js +7 -4
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js +80 -33
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.js +1 -1
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.js +22 -22
- package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js +2 -2
- package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.styled.js +18 -7
- package/esm/components/widgets/ContextMenu/ContextMenu.js +2 -1
- package/esm/components/widgets/ContextMenu/ContextMenu.styled.js +6 -1
- package/esm/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js +4 -4
- package/esm/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.js +16 -7
- package/esm/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.styled.js +6 -1
- package/esm/components/widgets/InfoCard/InfoCard.js +10 -2
- package/esm/components/widgets/InfoCard/InfoCard.styled.js +40 -13
- package/esm/components/widgets/ProgressBar/ProgressBar.js +31 -10
- package/esm/components/widgets/ProgressBar/ProgressBar.styled.js +77 -23
- package/esm/components/widgets/SummaryCard/SummaryCard.js +9 -8
- package/esm/components/widgets/SummaryCard/SummaryCard.styled.js +46 -19
- package/esm/components/widgets/widgets/index.js +0 -1
- package/esm/node_modules/@emotion/cache/dist/{emotion-cache.browser.esm.js → emotion-cache.esm.js} +61 -3
- package/esm/node_modules/@emotion/react/dist/{emotion-element-f0de968e.browser.esm.js → emotion-element-d59e098f.esm.js} +47 -5
- package/esm/node_modules/@emotion/react/dist/{emotion-react.browser.esm.js → emotion-react.esm.js} +3 -3
- package/esm/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/{emotion-use-insertion-effect-with-fallbacks.browser.esm.js → emotion-use-insertion-effect-with-fallbacks.esm.js} +3 -1
- package/esm/node_modules/@emotion/utils/dist/{emotion-utils.browser.esm.js → emotion-utils.esm.js} +12 -3
- package/esm/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +16 -0
- package/esm/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js +20 -12
- package/esm/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js +4 -4
- package/esm/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.js +4 -2
- package/esm/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js +9 -8
- package/esm/node_modules/@restart/hooks/{esm → lib}/useMergedRefs.js +8 -11
- package/esm/node_modules/@restart/hooks/{esm → lib}/useUpdateEffect.js +2 -4
- package/esm/node_modules/react/cjs/react.development.js +125 -82
- package/esm/node_modules/react/cjs/react.production.js +88 -92
- package/esm/node_modules/react-dom/cjs/react-dom.development.js +1 -1
- package/esm/node_modules/react-dom/cjs/react-dom.production.js +1 -1
- package/esm/node_modules/react-select/creatable/dist/react-select-creatable.esm.js +3 -3
- package/esm/node_modules/react-select/dist/{Select-aab027f3.esm.js → Select-ef7c0426.esm.js} +12 -6
- package/esm/node_modules/react-select/dist/index-641ee5b8.esm.js +2 -2
- package/esm/node_modules/react-select/dist/{useCreatable-84008237.esm.js → useCreatable-09aaeb9a.esm.js} +1 -1
- package/esm/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js +9 -0
- package/esm/styles/utils/colors-export.js +37 -0
- package/esm/utils/defaultTheme.js +28 -5
- package/package.json +16 -22
- package/styles/utils/colors-export.js +35 -0
- package/cjs/components/widgets/Instructions/Instructions.js +0 -217
- package/cjs/components/widgets/Instructions/Instructions.styled.js +0 -47
- package/cjs/components/widgets/Instructions/widgets/Instructions/index.js +0 -9
- package/cjs/styles/utils/colors.scss.js +0 -11
- package/esm/components/widgets/Instructions/Instructions.js +0 -213
- package/esm/components/widgets/Instructions/Instructions.styled.js +0 -36
- package/esm/components/widgets/Instructions/widgets/Instructions/index.js +0 -1
- package/esm/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js +0 -6
- package/esm/styles/utils/colors.scss.js +0 -7
- package/styles/config.scss +0 -37
- /package/styles/utils/{colors.scss → .colors.scss} +0 -0
|
@@ -24,6 +24,7 @@ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
|
|
24
24
|
REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
|
|
25
25
|
REACT_MEMO_TYPE = Symbol.for("react.memo"),
|
|
26
26
|
REACT_LAZY_TYPE = Symbol.for("react.lazy"),
|
|
27
|
+
REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
|
|
27
28
|
MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
28
29
|
function getIteratorFn(maybeIterable) {
|
|
29
30
|
if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
|
|
@@ -75,28 +76,22 @@ var pureComponentPrototype = (PureComponent.prototype = new ComponentDummy());
|
|
|
75
76
|
pureComponentPrototype.constructor = PureComponent;
|
|
76
77
|
assign(pureComponentPrototype, Component.prototype);
|
|
77
78
|
pureComponentPrototype.isPureReactComponent = !0;
|
|
78
|
-
var isArrayImpl = Array.isArray
|
|
79
|
-
|
|
79
|
+
var isArrayImpl = Array.isArray;
|
|
80
|
+
function noop() {}
|
|
81
|
+
var ReactSharedInternals = { H: null, A: null, T: null, S: null },
|
|
80
82
|
hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
81
|
-
function ReactElement(type, key,
|
|
82
|
-
|
|
83
|
+
function ReactElement(type, key, props) {
|
|
84
|
+
var refProp = props.ref;
|
|
83
85
|
return {
|
|
84
86
|
$$typeof: REACT_ELEMENT_TYPE,
|
|
85
87
|
type: type,
|
|
86
88
|
key: key,
|
|
87
|
-
ref: void 0 !==
|
|
89
|
+
ref: void 0 !== refProp ? refProp : null,
|
|
88
90
|
props: props
|
|
89
91
|
};
|
|
90
92
|
}
|
|
91
93
|
function cloneAndReplaceKey(oldElement, newKey) {
|
|
92
|
-
return ReactElement(
|
|
93
|
-
oldElement.type,
|
|
94
|
-
newKey,
|
|
95
|
-
void 0,
|
|
96
|
-
void 0,
|
|
97
|
-
void 0,
|
|
98
|
-
oldElement.props
|
|
99
|
-
);
|
|
94
|
+
return ReactElement(oldElement.type, newKey, oldElement.props);
|
|
100
95
|
}
|
|
101
96
|
function isValidElement(object) {
|
|
102
97
|
return (
|
|
@@ -120,7 +115,6 @@ function getElementKey(element, index) {
|
|
|
120
115
|
? escape("" + element.key)
|
|
121
116
|
: index.toString(36);
|
|
122
117
|
}
|
|
123
|
-
function noop$1() {}
|
|
124
118
|
function resolveThenable(thenable) {
|
|
125
119
|
switch (thenable.status) {
|
|
126
120
|
case "fulfilled":
|
|
@@ -130,7 +124,7 @@ function resolveThenable(thenable) {
|
|
|
130
124
|
default:
|
|
131
125
|
switch (
|
|
132
126
|
("string" === typeof thenable.status
|
|
133
|
-
? thenable.then(noop
|
|
127
|
+
? thenable.then(noop, noop)
|
|
134
128
|
: ((thenable.status = "pending"),
|
|
135
129
|
thenable.then(
|
|
136
130
|
function (fulfilledValue) {
|
|
@@ -291,68 +285,69 @@ function lazyInitializer(payload) {
|
|
|
291
285
|
throw payload._result;
|
|
292
286
|
}
|
|
293
287
|
var reportGlobalError =
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
forEachContext
|
|
332
|
-
);
|
|
333
|
-
},
|
|
334
|
-
count: function (children) {
|
|
335
|
-
var n = 0;
|
|
336
|
-
mapChildren(children, function () {
|
|
337
|
-
n++;
|
|
338
|
-
});
|
|
339
|
-
return n;
|
|
340
|
-
},
|
|
341
|
-
toArray: function (children) {
|
|
342
|
-
return (
|
|
343
|
-
mapChildren(children, function (child) {
|
|
344
|
-
return child;
|
|
345
|
-
}) || []
|
|
346
|
-
);
|
|
347
|
-
},
|
|
348
|
-
only: function (children) {
|
|
349
|
-
if (!isValidElement(children))
|
|
350
|
-
throw Error(
|
|
351
|
-
"React.Children.only expected to receive a single React element child."
|
|
288
|
+
"function" === typeof reportError
|
|
289
|
+
? reportError
|
|
290
|
+
: function (error) {
|
|
291
|
+
if (
|
|
292
|
+
"object" === typeof window &&
|
|
293
|
+
"function" === typeof window.ErrorEvent
|
|
294
|
+
) {
|
|
295
|
+
var event = new window.ErrorEvent("error", {
|
|
296
|
+
bubbles: !0,
|
|
297
|
+
cancelable: !0,
|
|
298
|
+
message:
|
|
299
|
+
"object" === typeof error &&
|
|
300
|
+
null !== error &&
|
|
301
|
+
"string" === typeof error.message
|
|
302
|
+
? String(error.message)
|
|
303
|
+
: String(error),
|
|
304
|
+
error: error
|
|
305
|
+
});
|
|
306
|
+
if (!window.dispatchEvent(event)) return;
|
|
307
|
+
} else if (
|
|
308
|
+
"object" === typeof process &&
|
|
309
|
+
"function" === typeof process.emit
|
|
310
|
+
) {
|
|
311
|
+
process.emit("uncaughtException", error);
|
|
312
|
+
return;
|
|
313
|
+
}
|
|
314
|
+
console.error(error);
|
|
315
|
+
},
|
|
316
|
+
Children = {
|
|
317
|
+
map: mapChildren,
|
|
318
|
+
forEach: function (children, forEachFunc, forEachContext) {
|
|
319
|
+
mapChildren(
|
|
320
|
+
children,
|
|
321
|
+
function () {
|
|
322
|
+
forEachFunc.apply(this, arguments);
|
|
323
|
+
},
|
|
324
|
+
forEachContext
|
|
352
325
|
);
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
326
|
+
},
|
|
327
|
+
count: function (children) {
|
|
328
|
+
var n = 0;
|
|
329
|
+
mapChildren(children, function () {
|
|
330
|
+
n++;
|
|
331
|
+
});
|
|
332
|
+
return n;
|
|
333
|
+
},
|
|
334
|
+
toArray: function (children) {
|
|
335
|
+
return (
|
|
336
|
+
mapChildren(children, function (child) {
|
|
337
|
+
return child;
|
|
338
|
+
}) || []
|
|
339
|
+
);
|
|
340
|
+
},
|
|
341
|
+
only: function (children) {
|
|
342
|
+
if (!isValidElement(children))
|
|
343
|
+
throw Error(
|
|
344
|
+
"React.Children.only expected to receive a single React element child."
|
|
345
|
+
);
|
|
346
|
+
return children;
|
|
347
|
+
}
|
|
348
|
+
};
|
|
349
|
+
react_production.__exports.Activity = REACT_ACTIVITY_TYPE;
|
|
350
|
+
react_production.__exports.Children = Children;
|
|
356
351
|
react_production.__exports.Component = Component;
|
|
357
352
|
react_production.__exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
358
353
|
react_production.__exports.Profiler = REACT_PROFILER_TYPE;
|
|
@@ -372,18 +367,18 @@ react_production.__exports.cache = function (fn) {
|
|
|
372
367
|
return fn.apply(null, arguments);
|
|
373
368
|
};
|
|
374
369
|
};
|
|
370
|
+
react_production.__exports.cacheSignal = function () {
|
|
371
|
+
return null;
|
|
372
|
+
};
|
|
375
373
|
react_production.__exports.cloneElement = function (element, config, children) {
|
|
376
374
|
if (null === element || void 0 === element)
|
|
377
375
|
throw Error(
|
|
378
376
|
"The argument must be a React element, but you passed " + element + "."
|
|
379
377
|
);
|
|
380
378
|
var props = assign({}, element.props),
|
|
381
|
-
key = element.key
|
|
382
|
-
owner = void 0;
|
|
379
|
+
key = element.key;
|
|
383
380
|
if (null != config)
|
|
384
|
-
for (propName in (void 0 !== config.
|
|
385
|
-
void 0 !== config.key && (key = "" + config.key),
|
|
386
|
-
config))
|
|
381
|
+
for (propName in (void 0 !== config.key && (key = "" + config.key), config))
|
|
387
382
|
!hasOwnProperty.call(config, propName) ||
|
|
388
383
|
"key" === propName ||
|
|
389
384
|
"__self" === propName ||
|
|
@@ -397,7 +392,7 @@ react_production.__exports.cloneElement = function (element, config, children) {
|
|
|
397
392
|
childArray[i] = arguments[i + 2];
|
|
398
393
|
props.children = childArray;
|
|
399
394
|
}
|
|
400
|
-
return ReactElement(element.type, key,
|
|
395
|
+
return ReactElement(element.type, key, props);
|
|
401
396
|
};
|
|
402
397
|
react_production.__exports.createContext = function (defaultValue) {
|
|
403
398
|
defaultValue = {
|
|
@@ -437,7 +432,7 @@ react_production.__exports.createElement = function (type, config, children) {
|
|
|
437
432
|
for (propName in ((childrenLength = type.defaultProps), childrenLength))
|
|
438
433
|
void 0 === props[propName] &&
|
|
439
434
|
(props[propName] = childrenLength[propName]);
|
|
440
|
-
return ReactElement(type, key,
|
|
435
|
+
return ReactElement(type, key, props);
|
|
441
436
|
};
|
|
442
437
|
react_production.__exports.createRef = function () {
|
|
443
438
|
return { current: null };
|
|
@@ -476,7 +471,10 @@ react_production.__exports.startTransition = function (scope) {
|
|
|
476
471
|
} catch (error) {
|
|
477
472
|
reportGlobalError(error);
|
|
478
473
|
} finally {
|
|
479
|
-
|
|
474
|
+
null !== prevTransition &&
|
|
475
|
+
null !== currentTransition.types &&
|
|
476
|
+
(prevTransition.types = currentTransition.types),
|
|
477
|
+
(ReactSharedInternals.T = prevTransition);
|
|
480
478
|
}
|
|
481
479
|
};
|
|
482
480
|
react_production.__exports.unstable_useCacheRefresh = function () {
|
|
@@ -498,13 +496,11 @@ react_production.__exports.useDebugValue = function () {};
|
|
|
498
496
|
react_production.__exports.useDeferredValue = function (value, initialValue) {
|
|
499
497
|
return ReactSharedInternals.H.useDeferredValue(value, initialValue);
|
|
500
498
|
};
|
|
501
|
-
react_production.__exports.useEffect = function (create,
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
);
|
|
507
|
-
return dispatcher.useEffect(create, createDeps);
|
|
499
|
+
react_production.__exports.useEffect = function (create, deps) {
|
|
500
|
+
return ReactSharedInternals.H.useEffect(create, deps);
|
|
501
|
+
};
|
|
502
|
+
react_production.__exports.useEffectEvent = function (callback) {
|
|
503
|
+
return ReactSharedInternals.H.useEffectEvent(callback);
|
|
508
504
|
};
|
|
509
505
|
react_production.__exports.useId = function () {
|
|
510
506
|
return ReactSharedInternals.H.useId();
|
|
@@ -547,6 +543,6 @@ react_production.__exports.useSyncExternalStore = function (
|
|
|
547
543
|
react_production.__exports.useTransition = function () {
|
|
548
544
|
return ReactSharedInternals.H.useTransition();
|
|
549
545
|
};
|
|
550
|
-
react_production.__exports.version = "19.
|
|
546
|
+
react_production.__exports.version = "19.2.0";
|
|
551
547
|
|
|
552
548
|
exports["default"] = react_production.__exports;
|
|
@@ -422,7 +422,7 @@ var index = require('../../../_virtual/index.js');
|
|
|
422
422
|
reactDom_development.__exports.useFormStatus = function () {
|
|
423
423
|
return resolveDispatcher().useHostTransitionStatus();
|
|
424
424
|
};
|
|
425
|
-
reactDom_development.__exports.version = "19.
|
|
425
|
+
reactDom_development.__exports.version = "19.2.0";
|
|
426
426
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
|
427
427
|
"function" ===
|
|
428
428
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
|
@@ -213,6 +213,6 @@ reactDom_production.__exports.useFormState = function (action, initialState, per
|
|
|
213
213
|
reactDom_production.__exports.useFormStatus = function () {
|
|
214
214
|
return ReactSharedInternals.H.useHostTransitionStatus();
|
|
215
215
|
};
|
|
216
|
-
reactDom_production.__exports.version = "19.
|
|
216
|
+
reactDom_production.__exports.version = "19.2.0";
|
|
217
217
|
|
|
218
218
|
exports["default"] = reactDom_production.__exports;
|
|
@@ -4,20 +4,20 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var _extends = require('../../../@babel/runtime/helpers/esm/extends.js');
|
|
6
6
|
require('../../../react/index.js');
|
|
7
|
-
var
|
|
7
|
+
var SelectEf7c0426_esm = require('../../dist/Select-ef7c0426.esm.js');
|
|
8
8
|
var useStateManager7e1e8489_esm = require('../../dist/useStateManager-7e1e8489.esm.js');
|
|
9
|
-
var
|
|
9
|
+
var useCreatable09aaeb9a_esm = require('../../dist/useCreatable-09aaeb9a.esm.js');
|
|
10
10
|
require('../../../react-dom/index.js');
|
|
11
11
|
var index = require('../../../../_virtual/index.js');
|
|
12
12
|
|
|
13
13
|
var CreatableSelect = /*#__PURE__*/index.react.exports.forwardRef(function (props, ref) {
|
|
14
14
|
var creatableProps = useStateManager7e1e8489_esm.u(props);
|
|
15
|
-
var selectProps =
|
|
16
|
-
return /*#__PURE__*/index.react.exports.createElement(
|
|
15
|
+
var selectProps = useCreatable09aaeb9a_esm.u(creatableProps);
|
|
16
|
+
return /*#__PURE__*/index.react.exports.createElement(SelectEf7c0426_esm.S, _extends["default"]({
|
|
17
17
|
ref: ref
|
|
18
18
|
}, selectProps));
|
|
19
19
|
});
|
|
20
20
|
var CreatableSelect$1 = CreatableSelect;
|
|
21
21
|
|
|
22
|
-
exports.useCreatable =
|
|
22
|
+
exports.useCreatable = useCreatable09aaeb9a_esm.u;
|
|
23
23
|
exports["default"] = CreatableSelect$1;
|
package/cjs/node_modules/react-select/dist/{Select-aab027f3.esm.js → Select-ef7c0426.esm.js}
RENAMED
|
@@ -11,7 +11,7 @@ var createSuper = require('../../@babel/runtime/helpers/esm/createSuper.js');
|
|
|
11
11
|
var toConsumableArray = require('../../@babel/runtime/helpers/esm/toConsumableArray.js');
|
|
12
12
|
require('../../react/index.js');
|
|
13
13
|
var index641ee5b8_esm = require('./index-641ee5b8.esm.js');
|
|
14
|
-
var
|
|
14
|
+
var emotionReact_esm = require('../../@emotion/react/dist/emotion-react.esm.js');
|
|
15
15
|
var memoizeOne_esm = require('../../memoize-one/dist/memoize-one.esm.js');
|
|
16
16
|
var objectWithoutProperties = require('../../@babel/runtime/helpers/esm/objectWithoutProperties.js');
|
|
17
17
|
var index = require('../../../_virtual/index.js');
|
|
@@ -29,7 +29,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
29
29
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
|
|
30
30
|
};
|
|
31
31
|
var A11yText = function A11yText(props) {
|
|
32
|
-
return
|
|
32
|
+
return emotionReact_esm.createElement("span", _extends["default"]({
|
|
33
33
|
css: _ref
|
|
34
34
|
}, props));
|
|
35
35
|
};
|
|
@@ -214,18 +214,18 @@ var LiveRegion = function LiveRegion(props) {
|
|
|
214
214
|
}
|
|
215
215
|
return guidanceMsg;
|
|
216
216
|
}, [ariaLabel, focusedOption, focusedValue, isMulti, isOptionDisabled, isSearchable, menuIsOpen, messages, selectValue, tabSelectsValue, isInitialFocus]);
|
|
217
|
-
var ScreenReaderText =
|
|
217
|
+
var ScreenReaderText = emotionReact_esm.createElement(index.react.exports.Fragment, null, emotionReact_esm.createElement("span", {
|
|
218
218
|
id: "aria-selection"
|
|
219
|
-
}, ariaSelected),
|
|
219
|
+
}, ariaSelected), emotionReact_esm.createElement("span", {
|
|
220
220
|
id: "aria-focused"
|
|
221
|
-
}, ariaFocused),
|
|
221
|
+
}, ariaFocused), emotionReact_esm.createElement("span", {
|
|
222
222
|
id: "aria-results"
|
|
223
|
-
}, ariaResults),
|
|
223
|
+
}, ariaResults), emotionReact_esm.createElement("span", {
|
|
224
224
|
id: "aria-guidance"
|
|
225
225
|
}, ariaGuidance));
|
|
226
|
-
return
|
|
226
|
+
return emotionReact_esm.createElement(index.react.exports.Fragment, null, emotionReact_esm.createElement(A11yText$1, {
|
|
227
227
|
id: id
|
|
228
|
-
}, isInitialFocus && ScreenReaderText),
|
|
228
|
+
}, isInitialFocus && ScreenReaderText), emotionReact_esm.createElement(A11yText$1, {
|
|
229
229
|
"aria-live": ariaLive,
|
|
230
230
|
"aria-atomic": "false",
|
|
231
231
|
"aria-relevant": "additions text",
|
|
@@ -546,10 +546,10 @@ function DummyInput(_ref) {
|
|
|
546
546
|
props = objectWithoutProperties["default"](_ref, _excluded);
|
|
547
547
|
// Remove animation props not meant for HTML elements
|
|
548
548
|
var filteredProps = index641ee5b8_esm.r(props, 'onExited', 'in', 'enter', 'exit', 'appear');
|
|
549
|
-
return
|
|
549
|
+
return emotionReact_esm.createElement("input", _extends["default"]({
|
|
550
550
|
ref: innerRef
|
|
551
551
|
}, filteredProps, {
|
|
552
|
-
css: /*#__PURE__*/
|
|
552
|
+
css: /*#__PURE__*/emotionReact_esm.css({
|
|
553
553
|
label: 'dummyInput',
|
|
554
554
|
// get rid of any default styles
|
|
555
555
|
background: 0,
|
|
@@ -835,7 +835,7 @@ function ScrollManager(_ref) {
|
|
|
835
835
|
setScrollCaptureTarget(element);
|
|
836
836
|
setScrollLockTarget(element);
|
|
837
837
|
};
|
|
838
|
-
return
|
|
838
|
+
return emotionReact_esm.createElement(index.react.exports.Fragment, null, lockEnabled && emotionReact_esm.createElement("div", {
|
|
839
839
|
onClick: blurSelectInput,
|
|
840
840
|
css: _ref2$1
|
|
841
841
|
}), children(targetRef));
|
|
@@ -854,7 +854,7 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
|
|
|
854
854
|
var RequiredInput = function RequiredInput(_ref) {
|
|
855
855
|
var name = _ref.name,
|
|
856
856
|
onFocus = _ref.onFocus;
|
|
857
|
-
return
|
|
857
|
+
return emotionReact_esm.createElement("input", {
|
|
858
858
|
required: true,
|
|
859
859
|
name: name,
|
|
860
860
|
tabIndex: -1,
|
|
@@ -1184,7 +1184,8 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
1184
1184
|
prevWasFocused: false,
|
|
1185
1185
|
inputIsHiddenAfterUpdate: undefined,
|
|
1186
1186
|
prevProps: undefined,
|
|
1187
|
-
instancePrefix: ''
|
|
1187
|
+
instancePrefix: '',
|
|
1188
|
+
isAppleDevice: false
|
|
1188
1189
|
};
|
|
1189
1190
|
_this.blockOptionHover = false;
|
|
1190
1191
|
_this.isComposing = false;
|
|
@@ -1194,7 +1195,6 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
1194
1195
|
_this.openAfterFocus = false;
|
|
1195
1196
|
_this.scrollToFocusedOptionOnUpdate = false;
|
|
1196
1197
|
_this.userIsDragging = void 0;
|
|
1197
|
-
_this.isAppleDevice = isAppleDevice();
|
|
1198
1198
|
_this.controlRef = null;
|
|
1199
1199
|
_this.getControlRef = function (ref) {
|
|
1200
1200
|
_this.controlRef = ref;
|
|
@@ -1731,6 +1731,12 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
1731
1731
|
if (this.props.menuIsOpen && this.state.focusedOption && this.menuListRef && this.focusedOptionRef) {
|
|
1732
1732
|
index641ee5b8_esm.I(this.menuListRef, this.focusedOptionRef);
|
|
1733
1733
|
}
|
|
1734
|
+
if (isAppleDevice()) {
|
|
1735
|
+
// eslint-disable-next-line react/no-did-mount-set-state
|
|
1736
|
+
this.setState({
|
|
1737
|
+
isAppleDevice: true
|
|
1738
|
+
});
|
|
1739
|
+
}
|
|
1734
1740
|
}
|
|
1735
1741
|
}, {
|
|
1736
1742
|
key: "componentDidUpdate",
|
|
@@ -2110,7 +2116,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
2110
2116
|
'aria-labelledby': this.props['aria-labelledby'],
|
|
2111
2117
|
'aria-required': required,
|
|
2112
2118
|
role: 'combobox',
|
|
2113
|
-
'aria-activedescendant': this.isAppleDevice ? undefined : this.state.focusedOptionId || ''
|
|
2119
|
+
'aria-activedescendant': this.state.isAppleDevice ? undefined : this.state.focusedOptionId || ''
|
|
2114
2120
|
}, menuIsOpen && {
|
|
2115
2121
|
'aria-controls': this.getElementId('listbox')
|
|
2116
2122
|
}), !isSearchable && {
|
|
@@ -2359,7 +2365,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
2359
2365
|
onMouseOver: onHover,
|
|
2360
2366
|
tabIndex: -1,
|
|
2361
2367
|
role: 'option',
|
|
2362
|
-
'aria-selected': _this4.isAppleDevice ? undefined : isSelected // is not supported on Apple devices
|
|
2368
|
+
'aria-selected': _this4.state.isAppleDevice ? undefined : isSelected // is not supported on Apple devices
|
|
2363
2369
|
};
|
|
2364
2370
|
|
|
2365
2371
|
return /*#__PURE__*/index.react.exports.createElement(Option, _extends["default"]({}, commonProps, {
|
|
@@ -2538,7 +2544,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
2538
2544
|
isFocused: isFocused,
|
|
2539
2545
|
selectValue: selectValue,
|
|
2540
2546
|
focusableOptions: focusableOptions,
|
|
2541
|
-
isAppleDevice: this.isAppleDevice
|
|
2547
|
+
isAppleDevice: this.state.isAppleDevice
|
|
2542
2548
|
}));
|
|
2543
2549
|
}
|
|
2544
2550
|
}, {
|