@ntbjs/react-components 1.1.31 → 1.1.32
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/{AssetAction-3cb69640.js → AssetAction-021622b1.js} +4 -4
- package/{CompactAutocompleteSelect-d87f259e.js → CompactAutocompleteSelect-07ced0b2.js} +1 -1
- package/{Instructions-fa82c59d.js → Instructions-27a205a6.js} +2 -2
- package/{MultiSelect-efaecd6e.js → MultiSelect-2dfecb02.js} +1 -1
- package/{TextArea-2b00a334.js → TextArea-12bc3de7.js} +8 -10
- package/inputs/CompactAutocompleteSelect/index.js +2 -2
- package/inputs/MultiSelect/index.js +2 -2
- package/inputs/TextArea/index.js +1 -1
- package/inputs/index.js +4 -4
- package/package.json +1 -1
- package/{react-select-creatable.esm-9bb6a785.js → react-select-creatable.esm-f4495d63.js} +29 -18
- package/widgets/AssetGallery/index.js +6 -6
- package/widgets/Instructions/index.js +4 -4
- package/widgets/index.js +6 -6
|
@@ -8,7 +8,7 @@ var ResizeObserver = require('resize-observer-polyfill');
|
|
|
8
8
|
var MultiLevelCheckboxSelect = require('./MultiLevelCheckboxSelect-df3ce483.js');
|
|
9
9
|
var styled = require('styled-components');
|
|
10
10
|
var reactLazyLoadImageComponent = require('react-lazy-load-image-component');
|
|
11
|
-
var Instructions = require('./Instructions-
|
|
11
|
+
var Instructions = require('./Instructions-27a205a6.js');
|
|
12
12
|
var Alert = require('./Alert-6e35a197.js');
|
|
13
13
|
var Badge = require('./Badge-a0b1a4e4.js');
|
|
14
14
|
var Popover = require('./Popover-3bad6306.js');
|
|
@@ -25,12 +25,12 @@ require('./InfoCard-11f0ca7f.js');
|
|
|
25
25
|
var ActionButton = require('./ActionButton-41ea1bda.js');
|
|
26
26
|
require('./Button-259d619f.js');
|
|
27
27
|
require('./Checkbox-153048de.js');
|
|
28
|
-
require('./CompactAutocompleteSelect-
|
|
28
|
+
require('./CompactAutocompleteSelect-07ced0b2.js');
|
|
29
29
|
require('./CompactStarRating-224afe96.js');
|
|
30
30
|
require('./CompactTextInput-f951e9e5.js');
|
|
31
|
-
require('./MultiSelect-
|
|
31
|
+
require('./MultiSelect-2dfecb02.js');
|
|
32
32
|
require('./Radio-57777d52.js');
|
|
33
|
-
require('./TextArea-
|
|
33
|
+
require('./TextArea-12bc3de7.js');
|
|
34
34
|
require('./TextInput-49dfb522.js');
|
|
35
35
|
require('./Switch-8892872d.js');
|
|
36
36
|
var ContextMenuItem = require('./ContextMenuItem-fdb31645.js');
|
|
@@ -14,7 +14,7 @@ require('./VerificationStatusIcon-b92fe0ae.js');
|
|
|
14
14
|
var styled = require('styled-components');
|
|
15
15
|
var Select = require('react-select');
|
|
16
16
|
var reactSelectAsyncPaginate = require('react-select-async-paginate');
|
|
17
|
-
var reactSelectCreatable_esm = require('./react-select-creatable.esm-
|
|
17
|
+
var reactSelectCreatable_esm = require('./react-select-creatable.esm-f4495d63.js');
|
|
18
18
|
var close = require('./close-1751121a.js');
|
|
19
19
|
var expandMore = require('./expand-more-d74e2bd2.js');
|
|
20
20
|
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
var defaultTheme = require('./defaultTheme-e27880d7.js');
|
|
4
4
|
var lodash = require('lodash');
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var CompactAutocompleteSelect = require('./CompactAutocompleteSelect-
|
|
7
|
-
var TextArea = require('./TextArea-
|
|
6
|
+
var CompactAutocompleteSelect = require('./CompactAutocompleteSelect-07ced0b2.js');
|
|
7
|
+
var TextArea = require('./TextArea-12bc3de7.js');
|
|
8
8
|
var styled = require('styled-components');
|
|
9
9
|
|
|
10
10
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -6,7 +6,7 @@ var nanoid = require('nanoid');
|
|
|
6
6
|
var styled = require('styled-components');
|
|
7
7
|
var close = require('./close-1751121a.js');
|
|
8
8
|
var Select = require('react-select');
|
|
9
|
-
var reactSelectCreatable_esm = require('./react-select-creatable.esm-
|
|
9
|
+
var reactSelectCreatable_esm = require('./react-select-creatable.esm-f4495d63.js');
|
|
10
10
|
var reactSelectAsyncPaginate = require('react-select-async-paginate');
|
|
11
11
|
|
|
12
12
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -20,7 +20,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
20
20
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
21
21
|
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
22
22
|
|
|
23
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject0, _templateObject1, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32, _templateObject33, _templateObject34, _templateObject35, _templateObject36, _templateObject37, _templateObject38, _templateObject39, _templateObject40
|
|
23
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject0, _templateObject1, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32, _templateObject33, _templateObject34, _templateObject35, _templateObject36, _templateObject37, _templateObject38, _templateObject39, _templateObject40;
|
|
24
24
|
var fadeInCheck = styled.keyframes(_templateObject || (_templateObject = defaultTheme._taggedTemplateLiteral(["\n from {\n opacity: 0\n }\n to {\n opacity: 1\n }\n"])));
|
|
25
25
|
var fadeOutCheck = styled.keyframes(_templateObject2 || (_templateObject2 = defaultTheme._taggedTemplateLiteral(["\n from {\n opacity: 1\n }\n to {\n opacity: 0\n }\n"])));
|
|
26
26
|
var activeLabel = styled.css(_templateObject3 || (_templateObject3 = defaultTheme._taggedTemplateLiteral(["\n font-size: 0.75rem;\n padding: 0 3px;\n top: -7px;\n letter-spacing: 0.03em;\n left: 8px !important;\n opacity: 1 !important;\n"])));
|
|
@@ -180,30 +180,28 @@ var TextInputFieldIcon = styled__default["default"].div.attrs(defaultTheme.apply
|
|
|
180
180
|
var TextInputFieldIconAlert = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)(_templateObject33 || (_templateObject33 = defaultTheme._taggedTemplateLiteral(["\n position: absolute;\n top: 2.8px;\n display: flex;\n padding: 0 10px 0 30px;\n opacity: 0.6;\n transition: opacity 250ms;\n ", "\n svg {\n margin-top: 12px;\n width: 15px;\n }\n"])), function (props) {
|
|
181
181
|
return props.type === 'warning' && props.theme.themeProp('color', '#EAB308', '#2F2402');
|
|
182
182
|
});
|
|
183
|
-
var TextInput = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)(_templateObject34 || (_templateObject34 = defaultTheme._taggedTemplateLiteral(["\n position: relative;\n flex-basis: ", ";\n\n ", "\n\n
|
|
183
|
+
var TextInput = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)(_templateObject34 || (_templateObject34 = defaultTheme._taggedTemplateLiteral(["\n position: relative;\n flex-basis: ", ";\n\n ", "\n\n &:focus-within {\n ", " {\n ", ";\n }\n\n ", " {\n svg {\n opacity: 1;\n }\n }\n }\n\n ", ":not(:placeholder-shown) + ", " {\n ", ";\n ", "\n }\n"])), function (props) {
|
|
184
184
|
return props.$fieldLabel ? '66.66%' : '100%';
|
|
185
185
|
}, function (props) {
|
|
186
|
-
return props.
|
|
187
|
-
}, function (props) {
|
|
188
|
-
return props.disabled && styled.css(_templateObject36 || (_templateObject36 = defaultTheme._taggedTemplateLiteral(["\n opacity: 0.5;\n\n > * {\n cursor: not-allowed;\n }\n "])));
|
|
186
|
+
return props.disabled && styled.css(_templateObject35 || (_templateObject35 = defaultTheme._taggedTemplateLiteral(["\n opacity: 0.5;\n\n > * {\n cursor: not-allowed;\n }\n "])));
|
|
189
187
|
}, TextInputLabel, activeLabel, TextInputFieldIcon, TextInputField, TextInputLabel, activeLabel, function (props) {
|
|
190
188
|
return props.type === 'error' && props.theme.themeProp('color', props.theme.getColor('red-200'), props.theme.getColor('red-500'));
|
|
191
189
|
});
|
|
192
|
-
var Description = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)(
|
|
190
|
+
var Description = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)(_templateObject36 || (_templateObject36 = defaultTheme._taggedTemplateLiteral(["\n margin: 8px 0 0 0;\n padding: 0 0.6875rem;\n font-size: 0.75rem;\n line-height: 1.333;\n\n ", ";\n\n ", "\n\n ", "\n"])), function (props) {
|
|
193
191
|
return props.theme.themeProp('color', props.theme.getColor('gray-400'), props.theme.getColor('gray-500'));
|
|
194
192
|
}, function (props) {
|
|
195
|
-
return (props.type === 'warning-border' || props.type === 'warning') && styled.css(
|
|
193
|
+
return (props.type === 'warning-border' || props.type === 'warning') && styled.css(_templateObject37 || (_templateObject37 = defaultTheme._taggedTemplateLiteral(["\n ", "\n "])), props.theme.themeProp('color', props.theme.getColor('red-200'), props.theme.getColor('orange-500')));
|
|
196
194
|
}, function (props) {
|
|
197
|
-
return (props.type === 'error-border' || props.type === 'error') && styled.css(
|
|
195
|
+
return (props.type === 'error-border' || props.type === 'error') && styled.css(_templateObject38 || (_templateObject38 = defaultTheme._taggedTemplateLiteral(["\n ", "\n "])), props.theme.themeProp('color', props.theme.getColor('red-200'), props.theme.getColor('red-500')));
|
|
198
196
|
});
|
|
199
|
-
var SuccessContainer = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)(
|
|
197
|
+
var SuccessContainer = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)(_templateObject39 || (_templateObject39 = defaultTheme._taggedTemplateLiteral(["\n opacity: 1;\n pointer-events: none;\n opacity: ", ";\n animation: ", " 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n position: absolute;\n margin-top: -35px;\n margin-left: 5px;\n width: 15px;\n height: 15px;\n padding: 5px;\n ", "\n\n > svg {\n width: 15px;\n }\n"])), function (props) {
|
|
200
198
|
return props.fadeIn ? 0 : 1;
|
|
201
199
|
}, function (props) {
|
|
202
200
|
return props.fadeIn ? fadeOutCheck : fadeInCheck;
|
|
203
201
|
}, function (props) {
|
|
204
202
|
return props.theme.themeProp('color', props.theme.getColor('gray-300'), props.theme.getColor('gray-500'));
|
|
205
203
|
});
|
|
206
|
-
var SuccessContainerLabel = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)(
|
|
204
|
+
var SuccessContainerLabel = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)(_templateObject40 || (_templateObject40 = defaultTheme._taggedTemplateLiteral(["\n opacity: 1;\n pointer-events: none;\n opacity: ", ";\n animation: ", " 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n margin-right: 5px;\n margin-top: -7px;\n width: 15px;\n height: 15px;\n padding: 5px;\n ", "\n\n > svg {\n width: 13px;\n }\n"])), function (props) {
|
|
207
205
|
return props.fadeIn ? 0 : 1;
|
|
208
206
|
}, function (props) {
|
|
209
207
|
return props.fadeIn ? fadeOutCheck : fadeInCheck;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var CompactAutocompleteSelect = require('../../CompactAutocompleteSelect-
|
|
3
|
+
var CompactAutocompleteSelect = require('../../CompactAutocompleteSelect-07ced0b2.js');
|
|
4
4
|
require('../../defaultTheme-e27880d7.js');
|
|
5
5
|
require('styled-components');
|
|
6
6
|
require('lodash');
|
|
@@ -19,7 +19,7 @@ require('../../Tooltip-ddd4ac6b.js');
|
|
|
19
19
|
require('../../VerificationStatusIcon-b92fe0ae.js');
|
|
20
20
|
require('react-select');
|
|
21
21
|
require('react-select-async-paginate');
|
|
22
|
-
require('../../react-select-creatable.esm-
|
|
22
|
+
require('../../react-select-creatable.esm-f4495d63.js');
|
|
23
23
|
require('react-dom');
|
|
24
24
|
require('../../close-1751121a.js');
|
|
25
25
|
require('../../expand-more-d74e2bd2.js');
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var MultiSelect = require('../../MultiSelect-
|
|
3
|
+
var MultiSelect = require('../../MultiSelect-2dfecb02.js');
|
|
4
4
|
require('../../defaultTheme-e27880d7.js');
|
|
5
5
|
require('styled-components');
|
|
6
6
|
require('react');
|
|
7
7
|
require('nanoid');
|
|
8
8
|
require('../../close-1751121a.js');
|
|
9
9
|
require('react-select');
|
|
10
|
-
require('../../react-select-creatable.esm-
|
|
10
|
+
require('../../react-select-creatable.esm-f4495d63.js');
|
|
11
11
|
require('react-dom');
|
|
12
12
|
require('react-select-async-paginate');
|
|
13
13
|
|
package/inputs/TextArea/index.js
CHANGED
package/inputs/index.js
CHANGED
|
@@ -5,12 +5,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var ActionButton = require('../ActionButton-41ea1bda.js');
|
|
6
6
|
var Button = require('../Button-259d619f.js');
|
|
7
7
|
var Checkbox = require('../Checkbox-153048de.js');
|
|
8
|
-
var CompactAutocompleteSelect = require('../CompactAutocompleteSelect-
|
|
8
|
+
var CompactAutocompleteSelect = require('../CompactAutocompleteSelect-07ced0b2.js');
|
|
9
9
|
var CompactStarRating = require('../CompactStarRating-224afe96.js');
|
|
10
10
|
var CompactTextInput = require('../CompactTextInput-f951e9e5.js');
|
|
11
|
-
var MultiSelect = require('../MultiSelect-
|
|
11
|
+
var MultiSelect = require('../MultiSelect-2dfecb02.js');
|
|
12
12
|
var Radio = require('../Radio-57777d52.js');
|
|
13
|
-
var TextArea = require('../TextArea-
|
|
13
|
+
var TextArea = require('../TextArea-12bc3de7.js');
|
|
14
14
|
var TextInput = require('../TextInput-49dfb522.js');
|
|
15
15
|
var Switch = require('../Switch-8892872d.js');
|
|
16
16
|
var MultiLevelCheckboxSelect = require('../MultiLevelCheckboxSelect-df3ce483.js');
|
|
@@ -34,7 +34,7 @@ require('../Tooltip-ddd4ac6b.js');
|
|
|
34
34
|
require('../VerificationStatusIcon-b92fe0ae.js');
|
|
35
35
|
require('react-select');
|
|
36
36
|
require('react-select-async-paginate');
|
|
37
|
-
require('../react-select-creatable.esm-
|
|
37
|
+
require('../react-select-creatable.esm-f4495d63.js');
|
|
38
38
|
require('react-dom');
|
|
39
39
|
require('../close-1751121a.js');
|
|
40
40
|
require('../edit-note-cefe2215.js');
|
package/package.json
CHANGED
|
@@ -2163,8 +2163,9 @@ function getOppositeAxis(axis) {
|
|
|
2163
2163
|
function getAxisLength(axis) {
|
|
2164
2164
|
return axis === 'y' ? 'height' : 'width';
|
|
2165
2165
|
}
|
|
2166
|
+
const yAxisSides = /*#__PURE__*/new Set(['top', 'bottom']);
|
|
2166
2167
|
function getSideAxis(placement) {
|
|
2167
|
-
return
|
|
2168
|
+
return yAxisSides.has(getSide(placement)) ? 'y' : 'x';
|
|
2168
2169
|
}
|
|
2169
2170
|
function getAlignmentAxis(placement) {
|
|
2170
2171
|
return getOppositeAxis(getSideAxis(placement));
|
|
@@ -2189,19 +2190,19 @@ function getExpandedPlacements(placement) {
|
|
|
2189
2190
|
function getOppositeAlignmentPlacement(placement) {
|
|
2190
2191
|
return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);
|
|
2191
2192
|
}
|
|
2193
|
+
const lrPlacement = ['left', 'right'];
|
|
2194
|
+
const rlPlacement = ['right', 'left'];
|
|
2195
|
+
const tbPlacement = ['top', 'bottom'];
|
|
2196
|
+
const btPlacement = ['bottom', 'top'];
|
|
2192
2197
|
function getSideList(side, isStart, rtl) {
|
|
2193
|
-
const lr = ['left', 'right'];
|
|
2194
|
-
const rl = ['right', 'left'];
|
|
2195
|
-
const tb = ['top', 'bottom'];
|
|
2196
|
-
const bt = ['bottom', 'top'];
|
|
2197
2198
|
switch (side) {
|
|
2198
2199
|
case 'top':
|
|
2199
2200
|
case 'bottom':
|
|
2200
|
-
if (rtl) return isStart ?
|
|
2201
|
-
return isStart ?
|
|
2201
|
+
if (rtl) return isStart ? rlPlacement : lrPlacement;
|
|
2202
|
+
return isStart ? lrPlacement : rlPlacement;
|
|
2202
2203
|
case 'left':
|
|
2203
2204
|
case 'right':
|
|
2204
|
-
return isStart ?
|
|
2205
|
+
return isStart ? tbPlacement : btPlacement;
|
|
2205
2206
|
default:
|
|
2206
2207
|
return [];
|
|
2207
2208
|
}
|
|
@@ -2581,7 +2582,7 @@ const flip = function (options) {
|
|
|
2581
2582
|
if (!ignoreCrossAxisOverflow ||
|
|
2582
2583
|
// We leave the current main axis only if every placement on that axis
|
|
2583
2584
|
// overflows the main axis.
|
|
2584
|
-
overflowsData.every(d => d.overflows[0] > 0
|
|
2585
|
+
overflowsData.every(d => getSideAxis(d.placement) === initialSideAxis ? d.overflows[0] > 0 : true)) {
|
|
2585
2586
|
// Try next placement and re-run the lifecycle.
|
|
2586
2587
|
return {
|
|
2587
2588
|
data: {
|
|
@@ -2838,6 +2839,8 @@ const inline = function (options) {
|
|
|
2838
2839
|
};
|
|
2839
2840
|
};
|
|
2840
2841
|
|
|
2842
|
+
const originSides = /*#__PURE__*/new Set(['left', 'top']);
|
|
2843
|
+
|
|
2841
2844
|
// For type backwards-compatibility, the `OffsetOptions` type was also
|
|
2842
2845
|
// Derivable.
|
|
2843
2846
|
|
|
@@ -2851,7 +2854,7 @@ async function convertValueToCoords(state, options) {
|
|
|
2851
2854
|
const side = getSide(placement);
|
|
2852
2855
|
const alignment = getAlignment(placement);
|
|
2853
2856
|
const isVertical = getSideAxis(placement) === 'y';
|
|
2854
|
-
const mainAxisMulti =
|
|
2857
|
+
const mainAxisMulti = originSides.has(side) ? -1 : 1;
|
|
2855
2858
|
const crossAxisMulti = rtl && isVertical ? -1 : 1;
|
|
2856
2859
|
const rawValue = evaluate(options, state);
|
|
2857
2860
|
|
|
@@ -3051,7 +3054,7 @@ const limitShift = function (options) {
|
|
|
3051
3054
|
if (checkCrossAxis) {
|
|
3052
3055
|
var _middlewareData$offse, _middlewareData$offse2;
|
|
3053
3056
|
const len = mainAxis === 'y' ? 'width' : 'height';
|
|
3054
|
-
const isOriginSide =
|
|
3057
|
+
const isOriginSide = originSides.has(getSide(placement));
|
|
3055
3058
|
const limitMin = rects.reference[crossAxis] - rects.floating[len] + (isOriginSide ? ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse[crossAxis]) || 0 : 0) + (isOriginSide ? 0 : computedOffset.crossAxis);
|
|
3056
3059
|
const limitMax = rects.reference[crossAxis] + rects.reference[len] + (isOriginSide ? 0 : ((_middlewareData$offse2 = middlewareData.offset) == null ? void 0 : _middlewareData$offse2[crossAxis]) || 0) - (isOriginSide ? computedOffset.crossAxis : 0);
|
|
3057
3060
|
if (crossAxisCoord < limitMin) {
|
|
@@ -3196,6 +3199,7 @@ function isShadowRoot(value) {
|
|
|
3196
3199
|
}
|
|
3197
3200
|
return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
|
|
3198
3201
|
}
|
|
3202
|
+
const invalidOverflowDisplayValues = /*#__PURE__*/new Set(['inline', 'contents']);
|
|
3199
3203
|
function isOverflowElement(element) {
|
|
3200
3204
|
const {
|
|
3201
3205
|
overflow,
|
|
@@ -3203,14 +3207,15 @@ function isOverflowElement(element) {
|
|
|
3203
3207
|
overflowY,
|
|
3204
3208
|
display
|
|
3205
3209
|
} = getComputedStyle$1(element);
|
|
3206
|
-
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !
|
|
3210
|
+
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !invalidOverflowDisplayValues.has(display);
|
|
3207
3211
|
}
|
|
3208
3212
|
function isWebKit() {
|
|
3209
3213
|
if (typeof CSS === 'undefined' || !CSS.supports) return false;
|
|
3210
3214
|
return CSS.supports('-webkit-backdrop-filter', 'none');
|
|
3211
3215
|
}
|
|
3216
|
+
const lastTraversableNodeNames = /*#__PURE__*/new Set(['html', 'body', '#document']);
|
|
3212
3217
|
function isLastTraversableNode(node) {
|
|
3213
|
-
return
|
|
3218
|
+
return lastTraversableNodeNames.has(getNodeName(node));
|
|
3214
3219
|
}
|
|
3215
3220
|
function getComputedStyle$1(element) {
|
|
3216
3221
|
return getWindow(element).getComputedStyle(element);
|
|
@@ -6217,7 +6222,8 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6217
6222
|
prevWasFocused: false,
|
|
6218
6223
|
inputIsHiddenAfterUpdate: undefined,
|
|
6219
6224
|
prevProps: undefined,
|
|
6220
|
-
instancePrefix: ''
|
|
6225
|
+
instancePrefix: '',
|
|
6226
|
+
isAppleDevice: false
|
|
6221
6227
|
};
|
|
6222
6228
|
_this.blockOptionHover = false;
|
|
6223
6229
|
_this.isComposing = false;
|
|
@@ -6227,7 +6233,6 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6227
6233
|
_this.openAfterFocus = false;
|
|
6228
6234
|
_this.scrollToFocusedOptionOnUpdate = false;
|
|
6229
6235
|
_this.userIsDragging = void 0;
|
|
6230
|
-
_this.isAppleDevice = isAppleDevice();
|
|
6231
6236
|
_this.controlRef = null;
|
|
6232
6237
|
_this.getControlRef = function (ref) {
|
|
6233
6238
|
_this.controlRef = ref;
|
|
@@ -6764,6 +6769,12 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
6764
6769
|
if (this.props.menuIsOpen && this.state.focusedOption && this.menuListRef && this.focusedOptionRef) {
|
|
6765
6770
|
scrollIntoView(this.menuListRef, this.focusedOptionRef);
|
|
6766
6771
|
}
|
|
6772
|
+
if (isAppleDevice()) {
|
|
6773
|
+
// eslint-disable-next-line react/no-did-mount-set-state
|
|
6774
|
+
this.setState({
|
|
6775
|
+
isAppleDevice: true
|
|
6776
|
+
});
|
|
6777
|
+
}
|
|
6767
6778
|
}
|
|
6768
6779
|
}, {
|
|
6769
6780
|
key: "componentDidUpdate",
|
|
@@ -7143,7 +7154,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
7143
7154
|
'aria-labelledby': this.props['aria-labelledby'],
|
|
7144
7155
|
'aria-required': required,
|
|
7145
7156
|
role: 'combobox',
|
|
7146
|
-
'aria-activedescendant': this.isAppleDevice ? undefined : this.state.focusedOptionId || ''
|
|
7157
|
+
'aria-activedescendant': this.state.isAppleDevice ? undefined : this.state.focusedOptionId || ''
|
|
7147
7158
|
}, menuIsOpen && {
|
|
7148
7159
|
'aria-controls': this.getElementId('listbox')
|
|
7149
7160
|
}), !isSearchable && {
|
|
@@ -7392,7 +7403,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
7392
7403
|
onMouseOver: onHover,
|
|
7393
7404
|
tabIndex: -1,
|
|
7394
7405
|
role: 'option',
|
|
7395
|
-
'aria-selected': _this4.isAppleDevice ? undefined : isSelected // is not supported on Apple devices
|
|
7406
|
+
'aria-selected': _this4.state.isAppleDevice ? undefined : isSelected // is not supported on Apple devices
|
|
7396
7407
|
};
|
|
7397
7408
|
|
|
7398
7409
|
return /*#__PURE__*/React__namespace.createElement(Option, _extends({}, commonProps, {
|
|
@@ -7571,7 +7582,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
7571
7582
|
isFocused: isFocused,
|
|
7572
7583
|
selectValue: selectValue,
|
|
7573
7584
|
focusableOptions: focusableOptions,
|
|
7574
|
-
isAppleDevice: this.isAppleDevice
|
|
7585
|
+
isAppleDevice: this.state.isAppleDevice
|
|
7575
7586
|
}));
|
|
7576
7587
|
}
|
|
7577
7588
|
}, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var AssetAction = require('../../AssetAction-
|
|
3
|
+
var AssetAction = require('../../AssetAction-021622b1.js');
|
|
4
4
|
require('../../defaultTheme-e27880d7.js');
|
|
5
5
|
require('styled-components');
|
|
6
6
|
require('lodash');
|
|
@@ -27,14 +27,14 @@ require('../../InputGroup-3dfa0822.js');
|
|
|
27
27
|
require('../../SectionSeparator-12f9dc35.js');
|
|
28
28
|
require('../../close-1751121a.js');
|
|
29
29
|
require('react-lazy-load-image-component');
|
|
30
|
-
require('../../Instructions-
|
|
31
|
-
require('../../CompactAutocompleteSelect-
|
|
30
|
+
require('../../Instructions-27a205a6.js');
|
|
31
|
+
require('../../CompactAutocompleteSelect-07ced0b2.js');
|
|
32
32
|
require('react-select');
|
|
33
33
|
require('react-select-async-paginate');
|
|
34
|
-
require('../../react-select-creatable.esm-
|
|
34
|
+
require('../../react-select-creatable.esm-f4495d63.js');
|
|
35
35
|
require('react-dom');
|
|
36
36
|
require('../../expand-more-d74e2bd2.js');
|
|
37
|
-
require('../../TextArea-
|
|
37
|
+
require('../../TextArea-12bc3de7.js');
|
|
38
38
|
require('@floating-ui/react');
|
|
39
39
|
require('../../ContextMenu-5198c59f.js');
|
|
40
40
|
require('../../AssetPreviewTopBar-d8887502.js');
|
|
@@ -45,7 +45,7 @@ require('../../ActionButton-41ea1bda.js');
|
|
|
45
45
|
require('../../Button-259d619f.js');
|
|
46
46
|
require('../../CompactStarRating-224afe96.js');
|
|
47
47
|
require('../../CompactTextInput-f951e9e5.js');
|
|
48
|
-
require('../../MultiSelect-
|
|
48
|
+
require('../../MultiSelect-2dfecb02.js');
|
|
49
49
|
require('../../Radio-57777d52.js');
|
|
50
50
|
require('../../Switch-8892872d.js');
|
|
51
51
|
require('../../ContextMenuItem-fdb31645.js');
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var Instructions = require('../../Instructions-
|
|
3
|
+
var Instructions = require('../../Instructions-27a205a6.js');
|
|
4
4
|
require('../../defaultTheme-e27880d7.js');
|
|
5
5
|
require('styled-components');
|
|
6
6
|
require('lodash');
|
|
7
7
|
require('react');
|
|
8
|
-
require('../../CompactAutocompleteSelect-
|
|
8
|
+
require('../../CompactAutocompleteSelect-07ced0b2.js');
|
|
9
9
|
require('nanoid');
|
|
10
10
|
require('../../Alert-6e35a197.js');
|
|
11
11
|
require('../../Badge-a0b1a4e4.js');
|
|
@@ -20,11 +20,11 @@ require('../../Tooltip-ddd4ac6b.js');
|
|
|
20
20
|
require('../../VerificationStatusIcon-b92fe0ae.js');
|
|
21
21
|
require('react-select');
|
|
22
22
|
require('react-select-async-paginate');
|
|
23
|
-
require('../../react-select-creatable.esm-
|
|
23
|
+
require('../../react-select-creatable.esm-f4495d63.js');
|
|
24
24
|
require('react-dom');
|
|
25
25
|
require('../../close-1751121a.js');
|
|
26
26
|
require('../../expand-more-d74e2bd2.js');
|
|
27
|
-
require('../../TextArea-
|
|
27
|
+
require('../../TextArea-12bc3de7.js');
|
|
28
28
|
require('../../useMergedRefs-b6d2f8fc.js');
|
|
29
29
|
require('../../edit-note-cefe2215.js');
|
|
30
30
|
|
package/widgets/index.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var AssetAction = require('../AssetAction-
|
|
5
|
+
var AssetAction = require('../AssetAction-021622b1.js');
|
|
6
6
|
var ContextMenu = require('../ContextMenu-5198c59f.js');
|
|
7
7
|
var AssetPreviewTopBar = require('../AssetPreviewTopBar-d8887502.js');
|
|
8
|
-
var Instructions = require('../Instructions-
|
|
8
|
+
var Instructions = require('../Instructions-27a205a6.js');
|
|
9
9
|
var ProgressBar = require('../ProgressBar-e6a86080.js');
|
|
10
10
|
var InfoCard = require('../InfoCard-11f0ca7f.js');
|
|
11
11
|
require('../defaultTheme-e27880d7.js');
|
|
@@ -38,16 +38,16 @@ require('@floating-ui/react');
|
|
|
38
38
|
require('../ActionButton-41ea1bda.js');
|
|
39
39
|
require('../Button-259d619f.js');
|
|
40
40
|
require('../expand-more-d74e2bd2.js');
|
|
41
|
-
require('../CompactAutocompleteSelect-
|
|
41
|
+
require('../CompactAutocompleteSelect-07ced0b2.js');
|
|
42
42
|
require('react-select');
|
|
43
43
|
require('react-select-async-paginate');
|
|
44
|
-
require('../react-select-creatable.esm-
|
|
44
|
+
require('../react-select-creatable.esm-f4495d63.js');
|
|
45
45
|
require('react-dom');
|
|
46
46
|
require('../CompactStarRating-224afe96.js');
|
|
47
47
|
require('../CompactTextInput-f951e9e5.js');
|
|
48
|
-
require('../MultiSelect-
|
|
48
|
+
require('../MultiSelect-2dfecb02.js');
|
|
49
49
|
require('../Radio-57777d52.js');
|
|
50
|
-
require('../TextArea-
|
|
50
|
+
require('../TextArea-12bc3de7.js');
|
|
51
51
|
require('../Switch-8892872d.js');
|
|
52
52
|
require('../ContextMenuItem-fdb31645.js');
|
|
53
53
|
require('../arrow-forward-d7c77ae3.js');
|