@qualtrics/ui-react 2.72.0 → 2.73.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/__shared/cjs/{index-a78ce1ca.js → index-d0f07e5f.js} +3 -3
- package/dist/__shared/cjs/{index-05bf7075.js → index-eb660444.js} +169 -137
- package/dist/components/Accordion/Accordion2.js +3 -3
- package/dist/components/Button/Button.js +3 -3
- package/dist/components/ButtonGroup/ButtonGroup2.js +3 -3
- package/dist/components/Checkbox/Checkbox2.js +3 -3
- package/dist/components/ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/Combobox/Combobox2.js +3 -3
- package/dist/components/ConfigPane/ConfigPane2.js +3 -3
- package/dist/components/Divider/Divider2.js +3 -3
- package/dist/components/Dropdown/Dropdown2.js +3 -3
- package/dist/components/FilePicker/FilePicker2.js +3 -3
- package/dist/components/FormField/Caption.js +3 -3
- package/dist/components/FormField/FormField2.js +3 -3
- package/dist/components/FullScreenTakeover/FullScreenTakeover2.js +3 -3
- package/dist/components/IconButton/IconButton2.js +3 -3
- package/dist/components/InlineInput/InlineInput2.js +3 -3
- package/dist/components/Input/Input2.js +3 -3
- package/dist/components/InputGroup/InputGroup2.js +3 -3
- package/dist/components/Label/Label2.js +3 -3
- package/dist/components/Link/Link2.js +3 -3
- package/dist/components/LoadingSpinner/LoadingSpinner2.js +3 -3
- package/dist/components/LogicEditor/LogicEditor2.js +3 -3
- package/dist/components/Modal/Modal2.js +3 -3
- package/dist/components/NewMenu/NewMenu.js +3 -3
- package/dist/components/NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/PageLayout/PageLayout.js +3 -3
- package/dist/components/Pagination/Pagination2.js +3 -3
- package/dist/components/Popover/Popover2.js +3 -3
- package/dist/components/QuickSearch/QuickSearch2.js +3 -3
- package/dist/components/Radio/Radio2.js +3 -3
- package/dist/components/SearchInput/SearchInput2.js +3 -3
- package/dist/components/SidebarNav/SidebarNav2.js +3 -3
- package/dist/components/Slider/Slider2.js +3 -3
- package/dist/components/Switch/Switch2.js +3 -3
- package/dist/components/Table/Table2.js +3 -3
- package/dist/components/Tabs/Tabs2.js +3 -3
- package/dist/components/Tooltip/Tooltip2.js +3 -3
- package/dist/components/deprecated_ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/deprecated_NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/deprecated_Tabs/Tabs2.js +3 -3
- package/dist/components/deprecated_Toolbar/Toolbar2.js +3 -3
- package/dist/design-tokens/less/typography.js +3 -3
- package/dist/hooks/useOverlay/useOverlay2.js +3 -3
- package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement2.js +3 -3
- package/dist/icons/Icon.js +3 -3
- package/dist/icons/index.js +1 -1
- package/dist/index.es.js +1 -1
- package/dist/index.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
- package/dist/next/Combobox/Combobox2.js +3 -3
- package/dist/next/Drawer/Drawer2.js +3 -3
- package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
- package/dist/next/Form/FormFields/InputField.js +3 -3
- package/dist/next/Indicator/Indicator2.js +3 -3
- package/dist/next/Input/Input.js +37 -5
- package/dist/next/Input/Input2.js +3 -3
- package/dist/next/LoadingSpinner/LoadingSpinner2.js +3 -3
- package/dist/next/Menu/Hooks/usePaneSearch.js +10 -0
- package/dist/next/Menu/Menu2.js +3 -3
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
- package/dist/next/Select/Select2.js +3 -3
- package/dist/next/SplitButton/SplitButton2.js +3 -3
- package/dist/next/TimePicker/TimePicker2.js +3 -3
- package/dist/next/ToggleButton/styles.js +3 -3
- package/dist/next/index.d.ts +1 -1
- package/dist/next/index.js +57 -47
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/next/package.json +1 -1
- package/package.json +1 -1
- package/dist/__shared/cjs/index-3cd0c57d.js +0 -13357
package/dist/next/Input/Input.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
|
-
import React__default, { forwardRef, useState, useMemo, useEffect, useRef } from 'react';
|
|
2
|
+
import React__default, { forwardRef, useState, useMemo, useEffect, useCallback, useRef } from 'react';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import inputClasses from './Input2.js';
|
|
5
5
|
import FormFieldWrapper from '../Form/FormFields/FormFieldWrapper.js';
|
|
@@ -45,6 +45,9 @@ const Input = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
45
45
|
allowDecimalNumbers = true,
|
|
46
46
|
min,
|
|
47
47
|
max,
|
|
48
|
+
onCompositionStart: externalOnCompositionStart,
|
|
49
|
+
onCompositionEnd: externalOnCompositionEnd,
|
|
50
|
+
onKeyDown: externalOnKeyDown,
|
|
48
51
|
...rest
|
|
49
52
|
} = _ref;
|
|
50
53
|
const {
|
|
@@ -53,6 +56,8 @@ const Input = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
53
56
|
} = useFormField();
|
|
54
57
|
const inputId = useId(id);
|
|
55
58
|
const [internalValue, setInternalValue] = useState(initialValue !== null && initialValue !== void 0 ? initialValue : '');
|
|
59
|
+
const [compositionLock, setCompositionLock] = useState(false);
|
|
60
|
+
const [composingValue, setComposingValue] = useState('');
|
|
56
61
|
const inputRegex = /^(?!-?\d+$).+$/;
|
|
57
62
|
const minValue = useMemo(() => min !== undefined && min !== null ? Number(min) : undefined, [min]);
|
|
58
63
|
const maxValue = useMemo(() => max !== undefined && max !== null ? Number(max) : undefined, [max]);
|
|
@@ -71,10 +76,14 @@ const Input = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
71
76
|
if (internalValue !== undefined) {
|
|
72
77
|
setInternalValue(e.target.value);
|
|
73
78
|
}
|
|
74
|
-
|
|
75
|
-
|
|
79
|
+
if (compositionLock) {
|
|
80
|
+
setComposingValue(e.target.value);
|
|
81
|
+
} else {
|
|
82
|
+
externalOnChange === null || externalOnChange === void 0 || externalOnChange(e);
|
|
83
|
+
registerProps === null || registerProps === void 0 || registerProps.onChange(e);
|
|
84
|
+
}
|
|
76
85
|
};
|
|
77
|
-
const onBlur = e => {
|
|
86
|
+
const onBlur = useCallback(e => {
|
|
78
87
|
if (!allowDecimalNumbers && e.target.value !== '') {
|
|
79
88
|
if (e.target.value === '-' && internalValue !== undefined) {
|
|
80
89
|
setInternalValue('');
|
|
@@ -87,6 +96,19 @@ const Input = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
87
96
|
}
|
|
88
97
|
externalOnBlur === null || externalOnBlur === void 0 || externalOnBlur(e);
|
|
89
98
|
registerProps === null || registerProps === void 0 || registerProps.onBlur(e);
|
|
99
|
+
}, [allowDecimalNumbers, internalValue, minValue, maxValue, externalOnBlur, registerProps]);
|
|
100
|
+
const onCompositionStart = e => {
|
|
101
|
+
setCompositionLock(true);
|
|
102
|
+
setComposingValue(e.target.value);
|
|
103
|
+
externalOnCompositionStart === null || externalOnCompositionStart === void 0 || externalOnCompositionStart(e);
|
|
104
|
+
};
|
|
105
|
+
const onCompositionEnd = e => {
|
|
106
|
+
setCompositionLock(false);
|
|
107
|
+
// Composition and Change events have differently typed target but in this case they always refer to the same input element
|
|
108
|
+
const syntheticEvent = e;
|
|
109
|
+
externalOnChange === null || externalOnChange === void 0 || externalOnChange(syntheticEvent);
|
|
110
|
+
registerProps === null || registerProps === void 0 || registerProps.onChange(syntheticEvent);
|
|
111
|
+
externalOnCompositionEnd === null || externalOnCompositionEnd === void 0 || externalOnCompositionEnd(e);
|
|
90
112
|
};
|
|
91
113
|
const leftAddOnRef = useRef(null);
|
|
92
114
|
const rightAddOnRef = useRef(null);
|
|
@@ -112,6 +134,13 @@ const Input = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
112
134
|
// Re-runs effect when the left add-on changes
|
|
113
135
|
rightAddOn // Re-runs effect when the right add-on changes
|
|
114
136
|
]);
|
|
137
|
+
const onKeyDown = e => {
|
|
138
|
+
if (compositionLock) {
|
|
139
|
+
e.stopPropagation();
|
|
140
|
+
return;
|
|
141
|
+
}
|
|
142
|
+
externalOnKeyDown === null || externalOnKeyDown === void 0 || externalOnKeyDown(e);
|
|
143
|
+
};
|
|
115
144
|
return /*#__PURE__*/React__default.createElement(FormFieldWrapper, {
|
|
116
145
|
inputId: inputId,
|
|
117
146
|
"data-testid": dataTestId,
|
|
@@ -126,9 +155,12 @@ const Input = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
126
155
|
id: inputId,
|
|
127
156
|
name: externalName !== null && externalName !== void 0 ? externalName : registerProps === null || registerProps === void 0 ? void 0 : registerProps.name,
|
|
128
157
|
type: allowDecimalNumbers ? type : 'text',
|
|
129
|
-
value: (_ref2 = externalValue !== null && externalValue !== void 0 ? externalValue : registerProps === null || registerProps === void 0 ? void 0 : registerProps.value) !== null && _ref2 !== void 0 ? _ref2 : internalValue,
|
|
158
|
+
value: compositionLock ? composingValue : (_ref2 = externalValue !== null && externalValue !== void 0 ? externalValue : registerProps === null || registerProps === void 0 ? void 0 : registerProps.value) !== null && _ref2 !== void 0 ? _ref2 : internalValue,
|
|
130
159
|
onChange: onChange,
|
|
131
160
|
onBlur: onBlur,
|
|
161
|
+
onCompositionStart: onCompositionStart,
|
|
162
|
+
onCompositionEnd: onCompositionEnd,
|
|
163
|
+
onKeyDown: onKeyDown,
|
|
132
164
|
className: inputClasses.input,
|
|
133
165
|
style: {
|
|
134
166
|
paddingLeft: "".concat(addOnWidths.leftAddOnWidth + ADD_ON_HORIZONTAL_PADDING, "px"),
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var inputClasses = {"container":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._-IjAd{position:relative;display:inline-block;height:36px;width:100%}._UwpPO{width:100%;height:100%;padding:8px 12px;color:#32363a;caret-color:#32363a;font-size:14px;background-color:#fafafa;border:1px solid #898989;border-radius:4px;outline:none}._UwpPO:hover{cursor:pointer;background-color:#f5f5f5}._UwpPO:focus{background-color:#fafafa;cursor:text;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;outline:none;border-color:transparent}._UwpPO:disabled,._UwpPO[aria-disabled=true]{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._UwpPO:disabled::-moz-placeholder,._UwpPO[aria-disabled=true]::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._UwpPO:disabled::placeholder,._UwpPO[aria-disabled=true]::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._UwpPO:invalid,._UwpPO[aria-invalid=true]{border-color:#b00}._UwpPO:invalid:focus,._UwpPO[aria-invalid=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._UwpPO[type=number]{-moz-appearance:textfield}._UwpPO[type=number]::-webkit-inner-spin-button,._UwpPO[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._UwpPO::-moz-placeholder{color:#515559;opacity:1}._UwpPO::placeholder{color:#515559;opacity:1}._p3INf{pointer-events:none;color:#515559;fill:#515559}._bf2Ft{display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._aa3PC{color:#515559;font-size:16px}._KJt09{left:0;margin-left:6px}._KJt09,._VdQxl{pointer-events:none;color:#515559;fill:#515559;display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._VdQxl{right:0;margin-right:6px}";
|
|
4
|
+
var inputClasses = {"container":"_-IjAd","input":"_UwpPO","addOn":"_p3INf","addOnVerticalCenter":"_bf2Ft","addOnTextNode":"_aa3PC","leftAddOn":"_KJt09","rightAddOn":"_VdQxl"};
|
|
5
|
+
var stylesheet="._-IjAd{position:relative;display:inline-block;height:36px;width:100%}._UwpPO{width:100%;height:100%;padding:8px 12px;color:#32363a;caret-color:#32363a;font-size:14px;background-color:#fafafa;border:1px solid #898989;border-radius:4px;outline:none}._UwpPO:hover{cursor:pointer;background-color:#f5f5f5}._UwpPO:focus{background-color:#fafafa;cursor:text;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;outline:none;border-color:transparent}._UwpPO:disabled,._UwpPO[aria-disabled=true]{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._UwpPO:disabled::-moz-placeholder,._UwpPO[aria-disabled=true]::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._UwpPO:disabled::placeholder,._UwpPO[aria-disabled=true]::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._UwpPO:invalid,._UwpPO[aria-invalid=true]{border-color:#b00}._UwpPO:invalid:focus,._UwpPO[aria-invalid=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._UwpPO[type=number]{-moz-appearance:textfield}._UwpPO[type=number]::-webkit-inner-spin-button,._UwpPO[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._UwpPO::-moz-placeholder{color:#515559;opacity:1}._UwpPO::placeholder{color:#515559;opacity:1}._p3INf{pointer-events:none;color:#515559;fill:#515559}._bf2Ft{display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._aa3PC{color:#515559;font-size:16px}._KJt09{left:0;margin-left:6px}._KJt09,._VdQxl{pointer-events:none;color:#515559;fill:#515559;display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._VdQxl{right:0;margin-right:6px}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { inputClasses as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"spinnerContainer":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._RjOvu{position:relative;display:inline-block}._RjOvu._dEZo3{min-height:20px;min-width:20px}._RjOvu._rdt9V{min-height:25px;min-width:25px}._RjOvu._2nl3f{min-height:40px;min-width:40px}._RjOvu._5ZJsf{min-height:64px;min-width:64px}._RjOvu ._MqQvZ{display:inline-block;background-color:transparent;position:absolute;z-index:10;width:0;height:0;left:50%;bottom:50%;pointer-events:none}._RjOvu ._MqQvZ._lcT5j{display:none}._RjOvu ._MqQvZ div{position:absolute;transform:rotate(20deg)}._RjOvu ._MqQvZ div div:nth-child(-n+9){background-color:#fff;transform-origin:0 0;animation:_MqQvZ .9s linear infinite}._RjOvu ._MqQvZ div div:nth-child(-n+9):after{content:\" \";display:block;position:absolute;top:5px;left:-1px;width:2px;height:10px;border-radius:20%;background:#000}._RjOvu ._MqQvZ div div:first-child{transform:rotate(20deg);animation-delay:-.8s}._RjOvu ._MqQvZ div div:nth-child(2){transform:rotate(60deg);animation-delay:-.7s}._RjOvu ._MqQvZ div div:nth-child(3){transform:rotate(100deg);animation-delay:-.6s}._RjOvu ._MqQvZ div div:nth-child(4){transform:rotate(140deg);animation-delay:-.5s}._RjOvu ._MqQvZ div div:nth-child(5){transform:rotate(180deg);animation-delay:-.4s}._RjOvu ._MqQvZ div div:nth-child(6){transform:rotate(220deg);animation-delay:-.3s}._RjOvu ._MqQvZ div div:nth-child(7){transform:rotate(260deg);animation-delay:-.2s}._RjOvu ._MqQvZ div div:nth-child(8){transform:rotate(300deg);animation-delay:-.1s}._RjOvu ._MqQvZ div div:nth-child(9){transform:rotate(340deg);animation-delay:0s}._RjOvu ._5ZJsf div div:nth-child(-n+9):after{top:10px;left:-2px;width:4px;height:18px}._RjOvu ._dEZo3 div div:nth-child(-n+9):after{top:2px;left:-1px;width:1.5px;height:6px}._RjOvu ._rdt9V div div:nth-child(-n+9):after{top:4px;left:-1px;width:2px;height:7px}._RjOvu ._2rEak div div:nth-child(-n+9):after{background:#fff}._RjOvu ._l3X45{width:100%;height:100%}._RjOvu ._l3X45._Bg0Yt{pointer-events:none}._RjOvu ._l3X45._lcT5j{opacity:0}._RjOvu ._l3X45._gy3kU{opacity:.8}@keyframes _MqQvZ{0%{opacity:1}to{opacity:0}}";
|
|
4
|
+
var styles = {"spinnerContainer":"_RjOvu","xs":"_dEZo3","small":"_rdt9V","medium":"_2nl3f","large":"_5ZJsf","spinnerComponent":"_MqQvZ","hide":"_lcT5j","inverted":"_2rEak","spinnerContent":"_l3X45","disablePointerEvents":"_Bg0Yt","fade":"_gy3kU"};
|
|
5
|
+
var stylesheet="._RjOvu{position:relative;display:inline-block}._RjOvu._dEZo3{min-height:20px;min-width:20px}._RjOvu._rdt9V{min-height:25px;min-width:25px}._RjOvu._2nl3f{min-height:40px;min-width:40px}._RjOvu._5ZJsf{min-height:64px;min-width:64px}._RjOvu ._MqQvZ{display:inline-block;background-color:transparent;position:absolute;z-index:10;width:0;height:0;left:50%;bottom:50%;pointer-events:none}._RjOvu ._MqQvZ._lcT5j{display:none}._RjOvu ._MqQvZ div{position:absolute;transform:rotate(20deg)}._RjOvu ._MqQvZ div div:nth-child(-n+9){background-color:#fff;transform-origin:0 0;animation:_MqQvZ .9s linear infinite}._RjOvu ._MqQvZ div div:nth-child(-n+9):after{content:\" \";display:block;position:absolute;top:5px;left:-1px;width:2px;height:10px;border-radius:20%;background:#000}._RjOvu ._MqQvZ div div:first-child{transform:rotate(20deg);animation-delay:-.8s}._RjOvu ._MqQvZ div div:nth-child(2){transform:rotate(60deg);animation-delay:-.7s}._RjOvu ._MqQvZ div div:nth-child(3){transform:rotate(100deg);animation-delay:-.6s}._RjOvu ._MqQvZ div div:nth-child(4){transform:rotate(140deg);animation-delay:-.5s}._RjOvu ._MqQvZ div div:nth-child(5){transform:rotate(180deg);animation-delay:-.4s}._RjOvu ._MqQvZ div div:nth-child(6){transform:rotate(220deg);animation-delay:-.3s}._RjOvu ._MqQvZ div div:nth-child(7){transform:rotate(260deg);animation-delay:-.2s}._RjOvu ._MqQvZ div div:nth-child(8){transform:rotate(300deg);animation-delay:-.1s}._RjOvu ._MqQvZ div div:nth-child(9){transform:rotate(340deg);animation-delay:0s}._RjOvu ._5ZJsf div div:nth-child(-n+9):after{top:10px;left:-2px;width:4px;height:18px}._RjOvu ._dEZo3 div div:nth-child(-n+9):after{top:2px;left:-1px;width:1.5px;height:6px}._RjOvu ._rdt9V div div:nth-child(-n+9):after{top:4px;left:-1px;width:2px;height:7px}._RjOvu ._2rEak div div:nth-child(-n+9):after{background:#fff}._RjOvu ._l3X45{width:100%;height:100%}._RjOvu ._l3X45._Bg0Yt{pointer-events:none}._RjOvu ._l3X45._lcT5j{opacity:0}._RjOvu ._l3X45._gy3kU{opacity:.8}@keyframes _MqQvZ{0%{opacity:1}to{opacity:0}}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -76,9 +76,19 @@ function usePaneSearch(_ref) {
|
|
|
76
76
|
isDisabled: !isSearchable
|
|
77
77
|
});
|
|
78
78
|
const lastestKeyPressedInSearchInput = useRef();
|
|
79
|
+
const [isComposing, setIsComposing] = useState(false);
|
|
80
|
+
useEventListener(searchInput, 'compositionstart', () => {
|
|
81
|
+
setIsComposing(true);
|
|
82
|
+
});
|
|
83
|
+
useEventListener(searchInput, 'compositionend', () => {
|
|
84
|
+
setIsComposing(false);
|
|
85
|
+
});
|
|
79
86
|
useEventListener(searchInput, 'keydown', e => {
|
|
80
87
|
var _e$target;
|
|
81
88
|
lastestKeyPressedInSearchInput.current = e.key;
|
|
89
|
+
if (isComposing) {
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
82
92
|
if ([...KEYS.NAVIGATE_DOWN, ...KEYS.NAVIGATE_TOP].includes(e.key)) {
|
|
83
93
|
// prevent scrolling
|
|
84
94
|
e.preventDefault();
|
package/dist/next/Menu/Menu2.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"buttonContainer":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._wJw7-{position:relative;display:inline-flex;height:36px;min-width:60px;cursor:pointer}._wJw7->._VE2MT{cursor:unset;width:100%;height:100%;padding:0 28px 0 12px;border-radius:4px;white-space:nowrap;line-height:20px;font-size:14px;text-align:left;outline:none;border:none;box-shadow:inset 0 0 0 1px #898989;color:#515559;background-color:#fafafa;overflow:hidden;text-overflow:ellipsis}._wJw7->._VE2MT:hover:not([aria-disabled=true]){background-color:#f5f5f5}._wJw7->._VE2MT.focus-visible,._wJw7->._VE2MT:focus-visible{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._wJw7->._VE2MT+._ciSQK{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._wJw7->._VE2MT[data-state=open]+._ciSQK{transform:rotate(-180deg) translateY(50%)}._wJw7->._VE2MT[aria-disabled=true]{color:#74777a;cursor:not-allowed}._wJw7->._VE2MT[aria-disabled=true]+._ciSQK{fill:#515559;opacity:.4}._9Nz3C>[data-radix-popper-content-wrapper]{overflow:hidden;min-width:auto!important;background-color:#fff;max-width:350px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);border-radius:4px;z-index:var(--mask-z-index)!important;width:var(--mask-width);height:var(--mask-height);transition:height .35s,width .35s}._9Nz3C>[data-radix-popper-content-wrapper] [data-radix-popper-content-wrapper]{transform:translateZ(0)!important}._nt22q{margin:0;padding-bottom:var(--flyout-bottom-padding);background:#fff;transition:margin-left .35s,opacity .35s,height .35s,width .35s;opacity:1;max-width:350px;width:-webkit-max-content;width:-moz-max-content;width:max-content;min-width:200px;max-height:var(--flyout-max-height)}._nt22q ._2r5PG{height:100%;overflow-y:scroll}._nt22q._h76YN{margin-left:30px;opacity:0}._nt22q._m8fDm{margin-left:-30px}._-0P53{position:relative;padding:10px 12px;display:flex;flex-direction:row;min-height:40px;align-items:center;cursor:pointer;outline:none;word-break:break-word;font-size:14px;color:#32363a;width:100%}._-0P53._YrVup{cursor:unset}._-0P53 ._r-h4V{fill:#32363a;margin-right:4px}._-0P53:focus,._-0P53:hover:not(._-0P53._YrVup){background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._-0P53[aria-disabled=true]{cursor:not-allowed;opacity:.65}._-0P53._5r8xe{padding-right:32px}._-0P53._5r8xe ._ciSQK{position:absolute;height:100%;right:3px;fill:#515559}._-0P53._wLjDz{pointer-events:none}._xOtZ-{position:-webkit-sticky;position:sticky;top:0;background-color:#fff;border-bottom:1px solid #e8e8e8}._xOtZ-._PYKUp{padding-top:52px}._xrQzJ{pointer-events:none;position:fixed;left:0;top:0;transition:width .35s;min-width:200px;width:var(--mask-width);max-width:350px}._UTDWa{position:absolute;padding:8px;border-radius:4px 4px 0 0;pointer-events:auto;opacity:1;width:100%;transition:opacity .35s,margin-left .35s}._UTDWa._m8fDm{opacity:0}._UTDWa._m8fDm>._YTI9E{margin-left:-30px}._UTDWa._h76YN{opacity:0}._UTDWa._h76YN>._YTI9E{margin-left:30px}._UTDWa>._YTI9E{transition:margin-left .35s;width:100%}._UTDWa._wLjDz{pointer-events:none}body.keyboard-user ._-0P53:hover:not(:focus){background-color:#fff;box-shadow:none}";
|
|
4
|
+
var styles = {"buttonContainer":"_wJw7-","button":"_VE2MT","rightIcon":"_ciSQK","maskContainer":"_9Nz3C","flyout":"_nt22q","scrollContainer":"_2r5PG","animatedRight":"_h76YN","animatedLeft":"_m8fDm","menuItem":"_-0P53","noItems":"_YrVup","backIcon":"_r-h4V","subMenu":"_5r8xe","unresponsive":"_wLjDz","stickyBox":"_xOtZ-","isSearchable":"_PYKUp","searchBoxesContainer":"_xrQzJ","searchBox":"_UTDWa","searchInput":"_YTI9E"};
|
|
5
|
+
var stylesheet="._wJw7-{position:relative;display:inline-flex;height:36px;min-width:60px;cursor:pointer}._wJw7->._VE2MT{cursor:unset;width:100%;height:100%;padding:0 28px 0 12px;border-radius:4px;white-space:nowrap;line-height:20px;font-size:14px;text-align:left;outline:none;border:none;box-shadow:inset 0 0 0 1px #898989;color:#515559;background-color:#fafafa;overflow:hidden;text-overflow:ellipsis}._wJw7->._VE2MT:hover:not([aria-disabled=true]){background-color:#f5f5f5}._wJw7->._VE2MT.focus-visible,._wJw7->._VE2MT:focus-visible{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._wJw7->._VE2MT+._ciSQK{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._wJw7->._VE2MT[data-state=open]+._ciSQK{transform:rotate(-180deg) translateY(50%)}._wJw7->._VE2MT[aria-disabled=true]{color:#74777a;cursor:not-allowed}._wJw7->._VE2MT[aria-disabled=true]+._ciSQK{fill:#515559;opacity:.4}._9Nz3C>[data-radix-popper-content-wrapper]{overflow:hidden;min-width:auto!important;background-color:#fff;max-width:350px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);border-radius:4px;z-index:var(--mask-z-index)!important;width:var(--mask-width);height:var(--mask-height);transition:height .35s,width .35s}._9Nz3C>[data-radix-popper-content-wrapper] [data-radix-popper-content-wrapper]{transform:translateZ(0)!important}._nt22q{margin:0;padding-bottom:var(--flyout-bottom-padding);background:#fff;transition:margin-left .35s,opacity .35s,height .35s,width .35s;opacity:1;max-width:350px;width:-webkit-max-content;width:-moz-max-content;width:max-content;min-width:200px;max-height:var(--flyout-max-height)}._nt22q ._2r5PG{height:100%;overflow-y:scroll}._nt22q._h76YN{margin-left:30px;opacity:0}._nt22q._m8fDm{margin-left:-30px}._-0P53{position:relative;padding:10px 12px;display:flex;flex-direction:row;min-height:40px;align-items:center;cursor:pointer;outline:none;word-break:break-word;font-size:14px;color:#32363a;width:100%}._-0P53._YrVup{cursor:unset}._-0P53 ._r-h4V{fill:#32363a;margin-right:4px}._-0P53:focus,._-0P53:hover:not(._-0P53._YrVup){background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._-0P53[aria-disabled=true]{cursor:not-allowed;opacity:.65}._-0P53._5r8xe{padding-right:32px}._-0P53._5r8xe ._ciSQK{position:absolute;height:100%;right:3px;fill:#515559}._-0P53._wLjDz{pointer-events:none}._xOtZ-{position:-webkit-sticky;position:sticky;top:0;background-color:#fff;border-bottom:1px solid #e8e8e8}._xOtZ-._PYKUp{padding-top:52px}._xrQzJ{pointer-events:none;position:fixed;left:0;top:0;transition:width .35s;min-width:200px;width:var(--mask-width);max-width:350px}._UTDWa{position:absolute;padding:8px;border-radius:4px 4px 0 0;pointer-events:auto;opacity:1;width:100%;transition:opacity .35s,margin-left .35s}._UTDWa._m8fDm{opacity:0}._UTDWa._m8fDm>._YTI9E{margin-left:-30px}._UTDWa._h76YN{opacity:0}._UTDWa._h76YN>._YTI9E{margin-left:30px}._UTDWa>._YTI9E{transition:margin-left .35s;width:100%}._UTDWa._wLjDz{pointer-events:none}body.keyboard-user ._-0P53:hover:not(:focus){background-color:#fff;box-shadow:none}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"input":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._Xdsug input{padding-left:76px!important}._dEYAX input{background-color:#e5e5e5!important;color:#9d9fa1!important;cursor:not-allowed!important;-webkit-text-fill-color:#9d9fa1}._dEYAX input::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._dEYAX input::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._M4pM5{position:absolute!important;left:4px;right:4px;bottom:4px;z-index:100;width:67px;height:28px!important;border-radius:4px}._M4pM5,._M4pM5._dEYAX:hover{background-color:transparent!important}._M4pM5:hover{background-color:rgba(50,54,58,.08)!important}._M4pM5:active{background-color:rgba(50,54,58,.11)!important}._M4pM5 svg{top:2px!important}._Yb0wa{position:relative}._dVEF1{position:absolute;top:18px;left:12px;line-height:0;font-size:14px;color:#32363a;z-index:101;pointer-events:none}";
|
|
4
|
+
var styles = {"input":"_Xdsug","disabled":"_dEYAX","dropdown":"_M4pM5","container":"_Yb0wa","countryCode":"_dVEF1"};
|
|
5
|
+
var stylesheet="._Xdsug input{padding-left:76px!important}._dEYAX input{background-color:#e5e5e5!important;color:#9d9fa1!important;cursor:not-allowed!important;-webkit-text-fill-color:#9d9fa1}._dEYAX input::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._dEYAX input::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._M4pM5{position:absolute!important;left:4px;right:4px;bottom:4px;z-index:100;width:67px;height:28px!important;border-radius:4px}._M4pM5,._M4pM5._dEYAX:hover{background-color:transparent!important}._M4pM5:hover{background-color:rgba(50,54,58,.08)!important}._M4pM5:active{background-color:rgba(50,54,58,.11)!important}._M4pM5 svg{top:2px!important}._Yb0wa{position:relative}._dVEF1{position:absolute;top:18px;left:12px;line-height:0;font-size:14px;color:#32363a;z-index:101;pointer-events:none}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"isInvalid":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._vOuRr{box-shadow:inset 0 0 0 1px #b00!important}._3J-Dp{margin-right:7px}._ZrF44{background-color:rgba(11,110,208,.08);font-weight:500}";
|
|
4
|
+
var styles = {"isInvalid":"_vOuRr","checkbox":"_3J-Dp","selectedItem":"_ZrF44"};
|
|
5
|
+
var stylesheet="._vOuRr{box-shadow:inset 0 0 0 1px #b00!important}._3J-Dp{margin-right:7px}._ZrF44{background-color:rgba(11,110,208,.08);font-weight:500}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"container":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._TGMl6{display:flex}._JGunt{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._JGunt._RXYDN{background-color:#fff}._JGunt._AaGzo,._JGunt._RXYDN._Cslup.focus-visible:not(._Hg-9s),._JGunt._RXYDN._Cslup:focus-visible:not(._Hg-9s),._JGunt._RXYDN._JIqr7:not(._JGunt._RXYDN._sS0Qe){background-color:#0b6ed0}._JGunt._AaGzo._Hg-9s._Cslup,._JGunt._AaGzo._Hg-9s._sS0Qe,._JGunt._AaGzo._sS0Qe._JIqr7{opacity:.4}._Yf72S{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._Yf72S:focus{z-index:1}._8hR1s{border-radius:0 4px 4px 0;transition:border .2s,background .2s,color .2s;border-left:none;min-width:35px!important;padding:0!important;justify-content:center!important}._8hR1s svg{margin-left:1px}._8hR1s._RXYDN{background-color:#0b6ed0;border-color:transparent}._8hR1s._RXYDN svg{fill:#fff!important}._8hR1s._RXYDN:not(._tqrfX):hover{background-color:#085caf!important}._8hR1s._RXYDN:not(._tqrfX):active{background-color:#0854a1!important}._8hR1s._RXYDN._tqrfX{opacity:.4}._8hR1s._RXYDN._tqrfX svg{background-color:transparent}._8hR1s._AaGzo{border-color:#0b6ed0;background-color:#fff}._8hR1s._AaGzo svg{fill:#0b6ed0!important}._8hR1s._AaGzo:not(._tqrfX):hover{background-color:#eef5fc!important}._8hR1s._AaGzo:not(._tqrfX):active{background-color:#e1edf9!important}._8hR1s._AaGzo._tqrfX{opacity:.4}._8hR1s._AaGzo._tqrfX svg{background-color:transparent}._wH21X{width:260px}";
|
|
4
|
+
var styles = {"container":"_TGMl6","divider":"_JGunt","primary":"_RXYDN","mainButtonFocus":"_Cslup","mainButtonDisabled":"_Hg-9s","dropdownButtonFocus":"_JIqr7","dropdownButtonDisabled":"_sS0Qe","secondary":"_AaGzo","mainButton":"_Yf72S","dropdownButton":"_8hR1s","disabled":"_tqrfX","dropdownOption":"_wH21X"};
|
|
5
|
+
var stylesheet="._TGMl6{display:flex}._JGunt{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._JGunt._RXYDN{background-color:#fff}._JGunt._AaGzo,._JGunt._RXYDN._Cslup.focus-visible:not(._Hg-9s),._JGunt._RXYDN._Cslup:focus-visible:not(._Hg-9s),._JGunt._RXYDN._JIqr7:not(._JGunt._RXYDN._sS0Qe){background-color:#0b6ed0}._JGunt._AaGzo._Hg-9s._Cslup,._JGunt._AaGzo._Hg-9s._sS0Qe,._JGunt._AaGzo._sS0Qe._JIqr7{opacity:.4}._Yf72S{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._Yf72S:focus{z-index:1}._8hR1s{border-radius:0 4px 4px 0;transition:border .2s,background .2s,color .2s;border-left:none;min-width:35px!important;padding:0!important;justify-content:center!important}._8hR1s svg{margin-left:1px}._8hR1s._RXYDN{background-color:#0b6ed0;border-color:transparent}._8hR1s._RXYDN svg{fill:#fff!important}._8hR1s._RXYDN:not(._tqrfX):hover{background-color:#085caf!important}._8hR1s._RXYDN:not(._tqrfX):active{background-color:#0854a1!important}._8hR1s._RXYDN._tqrfX{opacity:.4}._8hR1s._RXYDN._tqrfX svg{background-color:transparent}._8hR1s._AaGzo{border-color:#0b6ed0;background-color:#fff}._8hR1s._AaGzo svg{fill:#0b6ed0!important}._8hR1s._AaGzo:not(._tqrfX):hover{background-color:#eef5fc!important}._8hR1s._AaGzo:not(._tqrfX):active{background-color:#e1edf9!important}._8hR1s._AaGzo._tqrfX{opacity:.4}._8hR1s._AaGzo._tqrfX svg{background-color:transparent}._wH21X{width:260px}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"timePickerContainer":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._TNbYt{display:inline-block;position:relative}._TNbYt ._uOtzJ{width:120px}._TNbYt ._uOtzJ ._3rwfB._W855C{transform:rotate(-180deg)}._TNbYt ._uOtzJ ._3rwfB._dbeuX{fill:#9d9fa1;opacity:.4}._TNbYt ._33P-V>input:focus{box-shadow:none!important;border:1px solid #898989!important}._TNbYt ._3rwfB{position:absolute;right:4px;bottom:4px;height:28px;width:28px}._TNbYt ._3rwfB._W855C{transform:rotate(-180deg)}._s42uH{width:120px}._s42uH ._z-f1G._UPsYQ{background-color:#efefef;border-radius:6px}";
|
|
4
|
+
var styles = {"timePickerContainer":"_TNbYt","input":"_uOtzJ","icon":"_3rwfB","open":"_W855C","disabled":"_dbeuX","ignoreFocusStyle":"_33P-V","timePickerFlyout":"_s42uH","option":"_z-f1G","exactMatch":"_UPsYQ"};
|
|
5
|
+
var stylesheet="._TNbYt{display:inline-block;position:relative}._TNbYt ._uOtzJ{width:120px}._TNbYt ._uOtzJ ._3rwfB._W855C{transform:rotate(-180deg)}._TNbYt ._uOtzJ ._3rwfB._dbeuX{fill:#9d9fa1;opacity:.4}._TNbYt ._33P-V>input:focus{box-shadow:none!important;border:1px solid #898989!important}._TNbYt ._3rwfB{position:absolute;right:4px;bottom:4px;height:28px;width:28px}._TNbYt ._3rwfB._W855C{transform:rotate(-180deg)}._s42uH{width:120px}._s42uH ._z-f1G._UPsYQ{background-color:#efefef;border-radius:6px}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"default":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._eok7c{border-color:transparent;background-color:transparent;color:#515559;cursor:pointer}._-no2-{background-color:rgba(50,54,58,.08)}._b92Vo{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._KNJsb{color:rgba(81,85,89,.4);cursor:not-allowed}._jlDWR{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._qAAuB{color:#085caf;border-color:#085caf}._qAAuB,._SEhkJ{background:rgba(11,110,208,.11)}._SEhkJ{color:#0854a1;border-color:#0854a1}._f--MX{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._fhwVQ{position:relative;display:inline-grid}._fhwVQ svg{fill:currentColor}._fhwVQ ._4lf5i{-webkit-appearance:none;-moz-appearance:none;appearance:none;grid-column:1;grid-row:1}._fhwVQ ._4lf5i+._I5KoP{background-color:transparent;color:#515559;cursor:pointer;border:1px solid transparent;border-radius:4px;grid-column:1;grid-row:1;padding:0;min-width:76px;-webkit-user-select:none;-moz-user-select:none;user-select:none}._fhwVQ ._4lf5i+._I5KoP._3WE-4{padding:5px;max-width:36px;min-width:36px}._fhwVQ ._4lf5i+._I5KoP._jK5PJ{padding:0 16px}._fhwVQ ._4lf5i+._I5KoP._XKhfu{padding:0 16px 0 12px}._fhwVQ ._4lf5i:hover+._I5KoP{background-color:rgba(50,54,58,.08)}._fhwVQ ._4lf5i:disabled+._I5KoP{color:rgba(81,85,89,.4);cursor:not-allowed}._fhwVQ ._4lf5i:active+._I5KoP,._fhwVQ ._4lf5i:focus:active+._I5KoP{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._fhwVQ ._4lf5i:checked+._I5KoP{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._fhwVQ ._4lf5i:checked:hover+._I5KoP{background:rgba(11,110,208,.11);color:#085caf;border-color:#085caf}._fhwVQ ._4lf5i:checked:disabled+._I5KoP{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._fhwVQ ._4lf5i:checked:active+._I5KoP,._fhwVQ ._4lf5i:checked:focus:active+._I5KoP{background:rgba(11,110,208,.11);color:#0854a1;border-color:#0854a1}._AnMp5{display:inline-flex;position:relative}._AnMp5:before{content:\"\";border:1px solid #d9d9d9;border-radius:4px;position:absolute;top:0;bottom:0;right:0;left:0}._AnMp5>*{flex-shrink:0;flex-grow:0}._Rvz5B{border:none;margin:0;padding:0}._Rvz5B legend{padding:0;display:block;font-size:14px;margin-bottom:6px;color:#515559}._fhwVQ ._4lf5i.focus-visible,._fhwVQ ._4lf5i:focus-visible{outline:none}._fhwVQ ._4lf5i.focus-visible+._I5KoP,._fhwVQ ._4lf5i:focus-visible+._I5KoP{z-index:20;outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"default":"_eok7c","hovered":"_-no2-","pressed":"_b92Vo","disabled":"_KNJsb","selectedDefault":"_jlDWR","selectedHovered":"_qAAuB","selectedPressed":"_SEhkJ","selectedDisabled":"_f--MX","toggleContainer":"_fhwVQ","toggleInput":"_4lf5i","toggleButton":"_I5KoP","iconOnly":"_3WE-4","text":"_jK5PJ","iconText":"_XKhfu","toggleButtonGroup":"_AnMp5","toggleButtonGroupFieldset":"_Rvz5B"};
|
|
5
|
+
var stylesheet="._eok7c{border-color:transparent;background-color:transparent;color:#515559;cursor:pointer}._-no2-{background-color:rgba(50,54,58,.08)}._b92Vo{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._KNJsb{color:rgba(81,85,89,.4);cursor:not-allowed}._jlDWR{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._qAAuB{color:#085caf;border-color:#085caf}._qAAuB,._SEhkJ{background:rgba(11,110,208,.11)}._SEhkJ{color:#0854a1;border-color:#0854a1}._f--MX{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._fhwVQ{position:relative;display:inline-grid}._fhwVQ svg{fill:currentColor}._fhwVQ ._4lf5i{-webkit-appearance:none;-moz-appearance:none;appearance:none;grid-column:1;grid-row:1}._fhwVQ ._4lf5i+._I5KoP{background-color:transparent;color:#515559;cursor:pointer;border:1px solid transparent;border-radius:4px;grid-column:1;grid-row:1;padding:0;min-width:76px;-webkit-user-select:none;-moz-user-select:none;user-select:none}._fhwVQ ._4lf5i+._I5KoP._3WE-4{padding:5px;max-width:36px;min-width:36px}._fhwVQ ._4lf5i+._I5KoP._jK5PJ{padding:0 16px}._fhwVQ ._4lf5i+._I5KoP._XKhfu{padding:0 16px 0 12px}._fhwVQ ._4lf5i:hover+._I5KoP{background-color:rgba(50,54,58,.08)}._fhwVQ ._4lf5i:disabled+._I5KoP{color:rgba(81,85,89,.4);cursor:not-allowed}._fhwVQ ._4lf5i:active+._I5KoP,._fhwVQ ._4lf5i:focus:active+._I5KoP{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._fhwVQ ._4lf5i:checked+._I5KoP{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._fhwVQ ._4lf5i:checked:hover+._I5KoP{background:rgba(11,110,208,.11);color:#085caf;border-color:#085caf}._fhwVQ ._4lf5i:checked:disabled+._I5KoP{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._fhwVQ ._4lf5i:checked:active+._I5KoP,._fhwVQ ._4lf5i:checked:focus:active+._I5KoP{background:rgba(11,110,208,.11);color:#0854a1;border-color:#0854a1}._AnMp5{display:inline-flex;position:relative}._AnMp5:before{content:\"\";border:1px solid #d9d9d9;border-radius:4px;position:absolute;top:0;bottom:0;right:0;left:0}._AnMp5>*{flex-shrink:0;flex-grow:0}._Rvz5B{border:none;margin:0;padding:0}._Rvz5B legend{padding:0;display:block;font-size:14px;margin-bottom:6px;color:#515559}._fhwVQ ._4lf5i.focus-visible,._fhwVQ ._4lf5i:focus-visible{outline:none}._fhwVQ ._4lf5i.focus-visible+._I5KoP,._fhwVQ ._4lf5i:focus-visible+._I5KoP{z-index:20;outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
package/dist/next/index.d.ts
CHANGED
|
@@ -1434,7 +1434,7 @@ export declare interface ToggleButtonProps {
|
|
|
1434
1434
|
/** Test ID prefix to attach to the internal input (prefix-input) and label (prefix-label). */
|
|
1435
1435
|
dataTestId?: string;
|
|
1436
1436
|
/** Additional props passed to internal input. It does not include properties such as `'type', 'name', 'checked', 'onChange', 'id', 'disabled', 'value', 'className', 'data-testid', 'role', 'aria-pressed', 'aria-label', 'aria-labelledby'`. The usage of these properties may result in undefined behavior.*/
|
|
1437
|
-
inputProps?: Omit<React_2.InputHTMLAttributes<HTMLInputElement>, 'type' | 'name' | 'checked' | 'onChange' | 'id' | 'disabled' | 'value' | 'className' | 'data-testid' | 'role' | 'aria-pressed' | 'aria-label' | 'aria-labelledby'>;
|
|
1437
|
+
inputProps?: Omit<React_2.DetailedHTMLProps<React_2.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, 'type' | 'name' | 'checked' | 'onChange' | 'id' | 'disabled' | 'value' | 'className' | 'data-testid' | 'role' | 'aria-pressed' | 'aria-label' | 'aria-labelledby'>;
|
|
1438
1438
|
}
|
|
1439
1439
|
|
|
1440
1440
|
export declare const Tooltip: React_2.ForwardRefExoticComponent<TooltipProps & React_2.RefAttributes<HTMLDivElement>>;
|