@qualtrics/ui-react 2.84.0 → 2.85.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 +577 -3161
- package/dist/__shared/cjs/{index-96630e36.js → index-8dee37f8.js} +145 -140
- package/dist/__shared/cjs/{index-af2d3af2.js → index-b47ab825.js} +3 -3
- package/dist/components/Accordion/Accordion2.js +3 -3
- package/dist/components/Banner/Banner.css.ts.vanilla.js +2 -2
- 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/Input.js +4 -1
- 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/Menu/Menu.js +3 -2
- package/dist/components/NewMenu/NewMenu.js +3 -3
- package/dist/components/NewMenu/SelectMenu/SelectMenu.js +3 -2
- 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/Chat/ChatMessage.css.ts.vanilla.js +2 -2
- package/dist/next/Chat/Loader.css.ts.vanilla.js +2 -2
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
- package/dist/next/Combobox/Combobox2.js +3 -3
- package/dist/next/Combobox/hooks/useComboboxFocusSequence/useComboboxFocusSequence.js +12 -12
- 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/Input2.js +3 -3
- package/dist/next/LoadingSpinner/LoadingSpinner2.js +3 -3
- package/dist/next/Menu/Menu2.js +3 -3
- package/dist/next/Pagination/Pagination.css.ts.vanilla.js +2 -2
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
- package/dist/next/Select/Select.js +7 -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 +14 -6
- package/dist/next/index.js +72 -68
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/icons/package.json +1 -1
- package/next/package.json +2 -2
- package/package.json +12 -11
|
@@ -117,35 +117,35 @@ isDisabled) {
|
|
|
117
117
|
/**
|
|
118
118
|
* Focuses the first option in the `ComboboxFlyout`.
|
|
119
119
|
*/
|
|
120
|
-
const focusFirst = useCallback(function
|
|
120
|
+
const focusFirst = useCallback(function focusFirstImpl() {
|
|
121
121
|
if (!isOpen) {
|
|
122
|
-
openFlyoutAndFocus(
|
|
122
|
+
openFlyoutAndFocus(focusFirstImpl.name);
|
|
123
123
|
} else if (filteredOptionsRef.current.length > 0) {
|
|
124
124
|
focusDescendant(filteredOptionsRef.current[0], 0);
|
|
125
125
|
} else {
|
|
126
|
-
logNoOptionsToFocusError(
|
|
126
|
+
logNoOptionsToFocusError(focusFirstImpl.name);
|
|
127
127
|
}
|
|
128
128
|
}, [isOpen, openFlyoutAndFocus, focusDescendant]);
|
|
129
129
|
|
|
130
130
|
/**
|
|
131
131
|
* Focuses the last option in the `ComboboxFlyout`.
|
|
132
132
|
*/
|
|
133
|
-
const focusLast = useCallback(function
|
|
133
|
+
const focusLast = useCallback(function focusLastImpl() {
|
|
134
134
|
if (!isOpen) {
|
|
135
|
-
openFlyoutAndFocus(
|
|
135
|
+
openFlyoutAndFocus(focusLastImpl.name);
|
|
136
136
|
} else if (filteredOptionsRef.current.length > 0) {
|
|
137
137
|
focusDescendant(filteredOptionsRef.current[filteredOptionsRef.current.length - 1], filteredOptionsRef.current.length - 1);
|
|
138
138
|
} else {
|
|
139
|
-
logNoOptionsToFocusError(
|
|
139
|
+
logNoOptionsToFocusError(focusLastImpl.name);
|
|
140
140
|
}
|
|
141
141
|
}, [isOpen, openFlyoutAndFocus, focusDescendant]);
|
|
142
142
|
|
|
143
143
|
/**
|
|
144
144
|
* Focuses the next option in the `ComboboxFlyout`. If the last option in the `ComboboxFlyout` is currently focused, the input will be focused.
|
|
145
145
|
*/
|
|
146
|
-
const focusNext = useCallback(function
|
|
146
|
+
const focusNext = useCallback(function focusNextImpl() {
|
|
147
147
|
if (!isOpen) {
|
|
148
|
-
openFlyoutAndFocus(
|
|
148
|
+
openFlyoutAndFocus(focusNextImpl.name);
|
|
149
149
|
} else {
|
|
150
150
|
var _activeDescendantRef$2;
|
|
151
151
|
const currentFocusedNodeIndex = (_activeDescendantRef$2 = activeDescendantRef.current) === null || _activeDescendantRef$2 === void 0 ? void 0 : _activeDescendantRef$2.index;
|
|
@@ -157,7 +157,7 @@ isDisabled) {
|
|
|
157
157
|
const nextNodeIndex = getNextIndex(currentFocusedNodeIndex, filteredOptionsRef.current.length);
|
|
158
158
|
focusDescendant(filteredOptionsRef.current[nextNodeIndex], nextNodeIndex);
|
|
159
159
|
} else {
|
|
160
|
-
logNoOptionsToFocusError(
|
|
160
|
+
logNoOptionsToFocusError(focusNextImpl.name);
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
163
|
}, [isOpen, openFlyoutAndFocus, activeDescendantRef, focusInput, focusFirst, focusDescendant]);
|
|
@@ -165,9 +165,9 @@ isDisabled) {
|
|
|
165
165
|
/**
|
|
166
166
|
* Focuses the previous option in the list. If the first option in the list is currently focused, the input will be focused.
|
|
167
167
|
*/
|
|
168
|
-
const focusPrevious = useCallback(function
|
|
168
|
+
const focusPrevious = useCallback(function focusPreviousImpl() {
|
|
169
169
|
if (!isOpen) {
|
|
170
|
-
openFlyoutAndFocus(
|
|
170
|
+
openFlyoutAndFocus(focusPreviousImpl.name);
|
|
171
171
|
} else {
|
|
172
172
|
var _activeDescendantRef$3;
|
|
173
173
|
const currentFocusedNodeIndex = (_activeDescendantRef$3 = activeDescendantRef.current) === null || _activeDescendantRef$3 === void 0 ? void 0 : _activeDescendantRef$3.index;
|
|
@@ -179,7 +179,7 @@ isDisabled) {
|
|
|
179
179
|
const previousNodeIndex = getPreviousIndex(currentFocusedNodeIndex, filteredOptionsRef.current.length);
|
|
180
180
|
focusDescendant(filteredOptionsRef.current[previousNodeIndex], previousNodeIndex);
|
|
181
181
|
} else {
|
|
182
|
-
logNoOptionsToFocusError(
|
|
182
|
+
logNoOptionsToFocusError(focusPreviousImpl.name);
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
185
|
}, [isOpen, openFlyoutAndFocus, activeDescendantRef, focusInput, focusLast, focusDescendant]);
|
|
@@ -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 = {"drawer":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._Ex9jW{position:absolute;top:0;height:100%;overflow:auto;color:#32363a;background-color:#fff;border-right:1px solid #eee;z-index:1000;padding:12px 20px 20px;transition:left .5s}._8a-Aa{visibility:hidden}._VQKKx{position:fixed}._5HQjO{display:flex;justify-content:space-between;align-items:start;line-height:20px;font-size:16px;padding-bottom:12px}._cPRz7{padding-top:8px}._mp-V-{margin-left:12px}";
|
|
4
|
+
var styles = {"drawer":"_Ex9jW","hidden":"_8a-Aa","anchoredToBody":"_VQKKx","header":"_5HQjO","title":"_cPRz7","closeButton":"_mp-V-"};
|
|
5
|
+
var stylesheet="._Ex9jW{position:absolute;top:0;height:100%;overflow:auto;color:#32363a;background-color:#fff;border-right:1px solid #eee;z-index:1000;padding:12px 20px 20px;transition:left .5s}._8a-Aa{visibility:hidden}._VQKKx{position:fixed}._5HQjO{display:flex;justify-content:space-between;align-items:start;line-height:20px;font-size:16px;padding-bottom:12px}._cPRz7{padding-top:8px}._mp-V-{margin-left:12px}";
|
|
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 = {"button":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._V8Bnq{display:flex;justify-content:space-between;align-items:center;max-width:100%;min-width:76px;height:36px;padding:0 6px 0 12px;outline:none;font-size:14px;background-color:#fff;border:1px solid #898989;border-radius:20px;cursor:pointer}._V8Bnq:hover:not(._v-UGk){background-color:rgba(50,54,58,.08)}._V8Bnq:hover:not(._v-UGk)._62pIc{border-color:#085caf;background-color:rgba(11,110,208,.04)}._V8Bnq:hover:not(._v-UGk)._62pIc ._oBnsA{color:#32363a}._V8Bnq:hover:not(._v-UGk)._62pIc ._XE0iy{fill:#32363a}._V8Bnq:hover:not(._v-UGk)._62pIc ._Xuqzt{fill:#085caf}._V8Bnq:hover:not(._v-UGk)._62pIc ._Vjuah{background-color:rgba(11,110,208,.11)}._V8Bnq:hover:not(._v-UGk)._62pIc ._Vjuah ._tpvNG{color:#085caf}._V8Bnq:active:not(._v-UGk){background-color:#e8e9e9}._V8Bnq:active:not(._v-UGk)._62pIc{background-color:rgba(11,110,208,.11);border-color:#0854a1}._V8Bnq:active:not(._v-UGk)._62pIc ._Xuqzt{fill:#0854a1}._V8Bnq:active:not(._v-UGk)._62pIc ._Vjuah{background-color:rgba(11,110,208,.11)}._V8Bnq:active:not(._v-UGk)._62pIc ._Vjuah ._tpvNG{color:#0854a1}._V8Bnq._v-UGk{background-color:#fafafa;border-color:#e5e5e5;cursor:not-allowed}._V8Bnq._62pIc{border-color:#0b6ed0}._XE0iy{fill:#515559}._XE0iy,._n2YXV{margin-right:4px}._oBnsA{max-width:180px;margin-right:3px;color:#515559;fill:#515559;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._oBnsA+._Vjuah{margin-left:6px}._oBnsA._v-UGk{color:#74777a}._Vjuah{display:flex;justify-content:center;align-items:center;max-width:350px;flex:1;min-width:0;height:24px;margin-right:3px;padding:0 10px;background-color:#ebf3fb;border-radius:20px}._tpvNG{color:#0b6ed0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._Xuqzt{fill:#515559}._Xuqzt._v-UGk,._Xuqzt._v-UGk._62pIc{fill:rgba(116,119,122,.4)}._Xuqzt._62pIc{fill:#0b6ed0}._Xuqzt._HZb59{transform:rotate(-180deg)}._V8Bnq:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"button":"_V8Bnq","disabled":"_v-UGk","selected":"_62pIc","label":"_oBnsA","lockIcon":"_XE0iy","chevronIcon":"_Xuqzt","selectedFiltersContainer":"_Vjuah","selectedFilters":"_tpvNG","lockIconWrapper":"_n2YXV","open":"_HZb59"};
|
|
5
|
+
var stylesheet="._V8Bnq{display:flex;justify-content:space-between;align-items:center;max-width:100%;min-width:76px;height:36px;padding:0 6px 0 12px;outline:none;font-size:14px;background-color:#fff;border:1px solid #898989;border-radius:20px;cursor:pointer}._V8Bnq:hover:not(._v-UGk){background-color:rgba(50,54,58,.08)}._V8Bnq:hover:not(._v-UGk)._62pIc{border-color:#085caf;background-color:rgba(11,110,208,.04)}._V8Bnq:hover:not(._v-UGk)._62pIc ._oBnsA{color:#32363a}._V8Bnq:hover:not(._v-UGk)._62pIc ._XE0iy{fill:#32363a}._V8Bnq:hover:not(._v-UGk)._62pIc ._Xuqzt{fill:#085caf}._V8Bnq:hover:not(._v-UGk)._62pIc ._Vjuah{background-color:rgba(11,110,208,.11)}._V8Bnq:hover:not(._v-UGk)._62pIc ._Vjuah ._tpvNG{color:#085caf}._V8Bnq:active:not(._v-UGk){background-color:#e8e9e9}._V8Bnq:active:not(._v-UGk)._62pIc{background-color:rgba(11,110,208,.11);border-color:#0854a1}._V8Bnq:active:not(._v-UGk)._62pIc ._Xuqzt{fill:#0854a1}._V8Bnq:active:not(._v-UGk)._62pIc ._Vjuah{background-color:rgba(11,110,208,.11)}._V8Bnq:active:not(._v-UGk)._62pIc ._Vjuah ._tpvNG{color:#0854a1}._V8Bnq._v-UGk{background-color:#fafafa;border-color:#e5e5e5;cursor:not-allowed}._V8Bnq._62pIc{border-color:#0b6ed0}._XE0iy{fill:#515559}._XE0iy,._n2YXV{margin-right:4px}._oBnsA{max-width:180px;margin-right:3px;color:#515559;fill:#515559;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._oBnsA+._Vjuah{margin-left:6px}._oBnsA._v-UGk{color:#74777a}._Vjuah{display:flex;justify-content:center;align-items:center;max-width:350px;flex:1;min-width:0;height:24px;margin-right:3px;padding:0 10px;background-color:#ebf3fb;border-radius:20px}._tpvNG{color:#0b6ed0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._Xuqzt{fill:#515559}._Xuqzt._v-UGk,._Xuqzt._v-UGk._62pIc{fill:rgba(116,119,122,.4)}._Xuqzt._62pIc{fill:#0b6ed0}._Xuqzt._HZb59{transform:rotate(-180deg)}._V8Bnq:focus-visible{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 };
|
|
@@ -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 = "._0gpT7{margin:6px 0}._xdoUP{line-height:20px;color:#515559;display:flex;margin-bottom:4px}._s-zKo{display:inline-block}._s-zKo:focus-within ._xdoUP,._s-zKo:has([aria-expanded=true]) ._xdoUP{color:#0b6ed0}._s-zKo:has(input:disabled) ._xdoUP{color:rgba(50,54,58,.4)}._s-zKo:not(:has(input:disabled)) ._xdoUP{cursor:pointer}._MTLBF{margin-top:4px}._MTLBF:first-of-type{margin-top:6px}";
|
|
4
|
+
var styles = {"input":"_0gpT7","label":"_xdoUP","formFieldWrapper":"_s-zKo","caption":"_MTLBF"};
|
|
5
|
+
var stylesheet="._0gpT7{margin:6px 0}._xdoUP{line-height:20px;color:#515559;display:flex;margin-bottom:4px}._s-zKo{display:inline-block}._s-zKo:focus-within ._xdoUP,._s-zKo:has([aria-expanded=true]) ._xdoUP{color:#0b6ed0}._s-zKo:has(input:disabled) ._xdoUP{color:rgba(50,54,58,.4)}._s-zKo:not(:has(input:disabled)) ._xdoUP{cursor:pointer}._MTLBF{margin-top:4px}._MTLBF:first-of-type{margin-top: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 = {"indicator":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._nEojz{background-color:#f6f6f8;color:#2a2a2a;fill:#2a2a2a;border:1px solid #2a2a2a;border-radius:4px;position:relative;display:inline-flex;gap:4px;align-items:center;font-family:\"72\",\"Helvetica Neue\",\"Helvetica\",\"Arial\",\"sans-serif\";font-size:14px;font-style:normal;font-weight:400;line-height:20px}._nEojz._yd2DS{background-color:#fff4ef;border-color:#ba4f0d;color:#ba4f0d;fill:#ba4f0d}._nEojz._OMQIN{background-color:#fff4f3;border-color:#da1c3d;color:#da1c3d;fill:#da1c3d}._nEojz._KsnRb{background-color:#f3f8ef;border-color:#457d25;color:#457d25;fill:#457d25}._nEojz._kE6G-{background-color:#f1f7fd;border-color:#006fd3;color:#006fd3;fill:#006fd3}._qp6zg{padding:1px 8px;max-height:24px}._uVYWY{padding:4px 8px}";
|
|
4
|
+
var styles = {"indicator":"_nEojz","warning":"_yd2DS","error":"_OMQIN","success":"_KsnRb","informational":"_kE6G-","small":"_qp6zg","medium":"_uVYWY"};
|
|
5
|
+
var stylesheet="._nEojz{background-color:#f6f6f8;color:#2a2a2a;fill:#2a2a2a;border:1px solid #2a2a2a;border-radius:4px;position:relative;display:inline-flex;gap:4px;align-items:center;font-family:\"72\",\"Helvetica Neue\",\"Helvetica\",\"Arial\",\"sans-serif\";font-size:14px;font-style:normal;font-weight:400;line-height:20px}._nEojz._yd2DS{background-color:#fff4ef;border-color:#ba4f0d;color:#ba4f0d;fill:#ba4f0d}._nEojz._OMQIN{background-color:#fff4f3;border-color:#da1c3d;color:#da1c3d;fill:#da1c3d}._nEojz._KsnRb{background-color:#f3f8ef;border-color:#457d25;color:#457d25;fill:#457d25}._nEojz._kE6G-{background-color:#f1f7fd;border-color:#006fd3;color:#006fd3;fill:#006fd3}._qp6zg{padding:1px 8px;max-height:24px}._uVYWY{padding:4px 8px}";
|
|
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 inputClasses = {"container":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._Lzxex{position:relative;display:inline-block;height:36px;width:100%}._m3-7R{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}._m3-7R:hover{cursor:pointer;background-color:#f5f5f5}._m3-7R:focus{background-color:#fafafa;cursor:text;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;outline:none;border-color:transparent}._m3-7R:disabled,._m3-7R[aria-disabled=true]{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._m3-7R:disabled::-moz-placeholder,._m3-7R[aria-disabled=true]::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._m3-7R:disabled::placeholder,._m3-7R[aria-disabled=true]::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._m3-7R:invalid,._m3-7R[aria-invalid=true]{border-color:#b00}._m3-7R:invalid:focus,._m3-7R[aria-invalid=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._m3-7R[type=number]{-moz-appearance:textfield}._m3-7R[type=number]::-webkit-inner-spin-button,._m3-7R[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._m3-7R::-moz-placeholder{color:#515559;opacity:1}._m3-7R::placeholder{color:#515559;opacity:1}._rZMZJ{pointer-events:none;color:#515559;fill:#515559}._8iZxU{display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._tgpW-{color:#515559;font-size:16px}._hX3Vi{left:0;margin-left:6px}._7vdyq,._hX3Vi{pointer-events:none;color:#515559;fill:#515559;display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._7vdyq{right:0;margin-right:6px}";
|
|
4
|
+
var inputClasses = {"container":"_Lzxex","input":"_m3-7R","addOn":"_rZMZJ","addOnVerticalCenter":"_8iZxU","addOnTextNode":"_tgpW-","leftAddOn":"_hX3Vi","rightAddOn":"_7vdyq"};
|
|
5
|
+
var stylesheet="._Lzxex{position:relative;display:inline-block;height:36px;width:100%}._m3-7R{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}._m3-7R:hover{cursor:pointer;background-color:#f5f5f5}._m3-7R:focus{background-color:#fafafa;cursor:text;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;outline:none;border-color:transparent}._m3-7R:disabled,._m3-7R[aria-disabled=true]{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._m3-7R:disabled::-moz-placeholder,._m3-7R[aria-disabled=true]::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._m3-7R:disabled::placeholder,._m3-7R[aria-disabled=true]::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._m3-7R:invalid,._m3-7R[aria-invalid=true]{border-color:#b00}._m3-7R:invalid:focus,._m3-7R[aria-invalid=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._m3-7R[type=number]{-moz-appearance:textfield}._m3-7R[type=number]::-webkit-inner-spin-button,._m3-7R[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._m3-7R::-moz-placeholder{color:#515559;opacity:1}._m3-7R::placeholder{color:#515559;opacity:1}._rZMZJ{pointer-events:none;color:#515559;fill:#515559}._8iZxU{display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._tgpW-{color:#515559;font-size:16px}._hX3Vi{left:0;margin-left:6px}._7vdyq,._hX3Vi{pointer-events:none;color:#515559;fill:#515559;display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._7vdyq{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 = "._By5wF{position:relative;display:inline-block}._By5wF._WgKz0{min-height:20px;min-width:20px}._By5wF._km2St{min-height:25px;min-width:25px}._By5wF._rONqh{min-height:40px;min-width:40px}._By5wF._X9Tw2{min-height:64px;min-width:64px}._By5wF ._UgBM6{display:inline-block;background-color:initial;position:absolute;z-index:10;width:0;height:0;left:50%;bottom:50%;pointer-events:none}._By5wF ._UgBM6._ip97g{display:none}._By5wF ._UgBM6 div{position:absolute;transform:rotate(20deg)}._By5wF ._UgBM6 div div:nth-child(-n+9){background-color:#fff;transform-origin:0 0;animation:_UgBM6 .9s linear infinite}._By5wF ._UgBM6 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}._By5wF ._UgBM6 div div:first-child{transform:rotate(20deg);animation-delay:-.8s}._By5wF ._UgBM6 div div:nth-child(2){transform:rotate(60deg);animation-delay:-.7s}._By5wF ._UgBM6 div div:nth-child(3){transform:rotate(100deg);animation-delay:-.6s}._By5wF ._UgBM6 div div:nth-child(4){transform:rotate(140deg);animation-delay:-.5s}._By5wF ._UgBM6 div div:nth-child(5){transform:rotate(180deg);animation-delay:-.4s}._By5wF ._UgBM6 div div:nth-child(6){transform:rotate(220deg);animation-delay:-.3s}._By5wF ._UgBM6 div div:nth-child(7){transform:rotate(260deg);animation-delay:-.2s}._By5wF ._UgBM6 div div:nth-child(8){transform:rotate(300deg);animation-delay:-.1s}._By5wF ._UgBM6 div div:nth-child(9){transform:rotate(340deg);animation-delay:0s}._By5wF ._X9Tw2 div div:nth-child(-n+9):after{top:10px;left:-2px;width:4px;height:18px}._By5wF ._WgKz0 div div:nth-child(-n+9):after{top:2px;left:-1px;width:1.5px;height:6px}._By5wF ._km2St div div:nth-child(-n+9):after{top:4px;left:-1px;width:2px;height:7px}._By5wF ._iHjqK div div:nth-child(-n+9):after{background:#fff}._By5wF ._ektDZ{width:100%;height:100%}._By5wF ._ektDZ._uuUUS{pointer-events:none}._By5wF ._ektDZ._ip97g{opacity:0}._By5wF ._ektDZ._RD8TJ{opacity:.8}@keyframes _UgBM6{0%{opacity:1}to{opacity:0}}";
|
|
4
|
+
var styles = {"spinnerContainer":"_By5wF","xs":"_WgKz0","small":"_km2St","medium":"_rONqh","large":"_X9Tw2","spinnerComponent":"_UgBM6","hide":"_ip97g","inverted":"_iHjqK","spinnerContent":"_ektDZ","disablePointerEvents":"_uuUUS","fade":"_RD8TJ"};
|
|
5
|
+
var stylesheet="._By5wF{position:relative;display:inline-block}._By5wF._WgKz0{min-height:20px;min-width:20px}._By5wF._km2St{min-height:25px;min-width:25px}._By5wF._rONqh{min-height:40px;min-width:40px}._By5wF._X9Tw2{min-height:64px;min-width:64px}._By5wF ._UgBM6{display:inline-block;background-color:initial;position:absolute;z-index:10;width:0;height:0;left:50%;bottom:50%;pointer-events:none}._By5wF ._UgBM6._ip97g{display:none}._By5wF ._UgBM6 div{position:absolute;transform:rotate(20deg)}._By5wF ._UgBM6 div div:nth-child(-n+9){background-color:#fff;transform-origin:0 0;animation:_UgBM6 .9s linear infinite}._By5wF ._UgBM6 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}._By5wF ._UgBM6 div div:first-child{transform:rotate(20deg);animation-delay:-.8s}._By5wF ._UgBM6 div div:nth-child(2){transform:rotate(60deg);animation-delay:-.7s}._By5wF ._UgBM6 div div:nth-child(3){transform:rotate(100deg);animation-delay:-.6s}._By5wF ._UgBM6 div div:nth-child(4){transform:rotate(140deg);animation-delay:-.5s}._By5wF ._UgBM6 div div:nth-child(5){transform:rotate(180deg);animation-delay:-.4s}._By5wF ._UgBM6 div div:nth-child(6){transform:rotate(220deg);animation-delay:-.3s}._By5wF ._UgBM6 div div:nth-child(7){transform:rotate(260deg);animation-delay:-.2s}._By5wF ._UgBM6 div div:nth-child(8){transform:rotate(300deg);animation-delay:-.1s}._By5wF ._UgBM6 div div:nth-child(9){transform:rotate(340deg);animation-delay:0s}._By5wF ._X9Tw2 div div:nth-child(-n+9):after{top:10px;left:-2px;width:4px;height:18px}._By5wF ._WgKz0 div div:nth-child(-n+9):after{top:2px;left:-1px;width:1.5px;height:6px}._By5wF ._km2St div div:nth-child(-n+9):after{top:4px;left:-1px;width:2px;height:7px}._By5wF ._iHjqK div div:nth-child(-n+9):after{background:#fff}._By5wF ._ektDZ{width:100%;height:100%}._By5wF ._ektDZ._uuUUS{pointer-events:none}._By5wF ._ektDZ._ip97g{opacity:0}._By5wF ._ektDZ._RD8TJ{opacity:.8}@keyframes _UgBM6{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 };
|
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 = "._bRjCQ{position:relative;display:inline-flex;height:36px;min-width:60px;cursor:pointer}._bRjCQ>._7qA45{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}._bRjCQ>._7qA45:hover:not([aria-disabled=true]){background-color:#f5f5f5}._bRjCQ>._7qA45:focus-visible{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._bRjCQ>._7qA45+._3OmDc{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._bRjCQ>._7qA45[data-state=open]+._3OmDc{transform:rotate(-180deg) translateY(50%)}._bRjCQ>._7qA45[aria-disabled=true]{color:#74777a;cursor:not-allowed}._bRjCQ>._7qA45[aria-disabled=true]+._3OmDc{fill:#515559;opacity:.4}._iHaSq>[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}._iHaSq>[data-radix-popper-content-wrapper] [data-radix-popper-content-wrapper]{transform:translateZ(0)!important}._S2KER{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)}._S2KER ._XjDj3{height:100%;overflow-y:scroll}._S2KER._QGjIV{margin-left:30px;opacity:0}._S2KER._R3e7o{margin-left:-30px}._hczQ0{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%}._hczQ0._1iosD{cursor:unset}._hczQ0 ._dMtzF{fill:#32363a;margin-right:4px}._hczQ0:focus,._hczQ0:hover:not(._hczQ0._1iosD){background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._hczQ0[aria-disabled=true]{cursor:not-allowed;opacity:.65}._hczQ0._O0mip{padding-right:32px}._hczQ0._O0mip ._3OmDc{position:absolute;height:100%;right:3px;fill:#515559}._hczQ0._zafXA{pointer-events:none}._njnUJ{position:-webkit-sticky;position:sticky;top:0;background-color:#fff;border-bottom:1px solid #e8e8e8}._njnUJ._rCa5J{padding-top:52px}._2a2It{pointer-events:none;position:fixed;left:0;top:0;transition:width .35s;min-width:200px;width:var(--mask-width);max-width:350px}._cCa9v{position:absolute;padding:8px;border-radius:4px 4px 0 0;pointer-events:auto;opacity:1;width:100%;transition:opacity .35s,margin-left .35s}._cCa9v._R3e7o{opacity:0}._cCa9v._R3e7o>._IXAhx{margin-left:-30px}._cCa9v._QGjIV{opacity:0}._cCa9v._QGjIV>._IXAhx{margin-left:30px}._cCa9v>._IXAhx{transition:margin-left .35s;width:100%}._cCa9v._zafXA{pointer-events:none}body.keyboard-user ._hczQ0:hover:not(:focus){background-color:#fff;box-shadow:none}";
|
|
4
|
+
var styles = {"buttonContainer":"_bRjCQ","button":"_7qA45","rightIcon":"_3OmDc","maskContainer":"_iHaSq","flyout":"_S2KER","scrollContainer":"_XjDj3","animatedRight":"_QGjIV","animatedLeft":"_R3e7o","menuItem":"_hczQ0","noItems":"_1iosD","backIcon":"_dMtzF","subMenu":"_O0mip","unresponsive":"_zafXA","stickyBox":"_njnUJ","isSearchable":"_rCa5J","searchBoxesContainer":"_2a2It","searchBox":"_cCa9v","searchInput":"_IXAhx"};
|
|
5
|
+
var stylesheet="._bRjCQ{position:relative;display:inline-flex;height:36px;min-width:60px;cursor:pointer}._bRjCQ>._7qA45{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}._bRjCQ>._7qA45:hover:not([aria-disabled=true]){background-color:#f5f5f5}._bRjCQ>._7qA45:focus-visible{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._bRjCQ>._7qA45+._3OmDc{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._bRjCQ>._7qA45[data-state=open]+._3OmDc{transform:rotate(-180deg) translateY(50%)}._bRjCQ>._7qA45[aria-disabled=true]{color:#74777a;cursor:not-allowed}._bRjCQ>._7qA45[aria-disabled=true]+._3OmDc{fill:#515559;opacity:.4}._iHaSq>[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}._iHaSq>[data-radix-popper-content-wrapper] [data-radix-popper-content-wrapper]{transform:translateZ(0)!important}._S2KER{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)}._S2KER ._XjDj3{height:100%;overflow-y:scroll}._S2KER._QGjIV{margin-left:30px;opacity:0}._S2KER._R3e7o{margin-left:-30px}._hczQ0{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%}._hczQ0._1iosD{cursor:unset}._hczQ0 ._dMtzF{fill:#32363a;margin-right:4px}._hczQ0:focus,._hczQ0:hover:not(._hczQ0._1iosD){background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._hczQ0[aria-disabled=true]{cursor:not-allowed;opacity:.65}._hczQ0._O0mip{padding-right:32px}._hczQ0._O0mip ._3OmDc{position:absolute;height:100%;right:3px;fill:#515559}._hczQ0._zafXA{pointer-events:none}._njnUJ{position:-webkit-sticky;position:sticky;top:0;background-color:#fff;border-bottom:1px solid #e8e8e8}._njnUJ._rCa5J{padding-top:52px}._2a2It{pointer-events:none;position:fixed;left:0;top:0;transition:width .35s;min-width:200px;width:var(--mask-width);max-width:350px}._cCa9v{position:absolute;padding:8px;border-radius:4px 4px 0 0;pointer-events:auto;opacity:1;width:100%;transition:opacity .35s,margin-left .35s}._cCa9v._R3e7o{opacity:0}._cCa9v._R3e7o>._IXAhx{margin-left:-30px}._cCa9v._QGjIV{opacity:0}._cCa9v._QGjIV>._IXAhx{margin-left:30px}._cCa9v>._IXAhx{transition:margin-left .35s;width:100%}._cCa9v._zafXA{pointer-events:none}body.keyboard-user ._hczQ0: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 = ".Pagination_pagination__1iropsc0{display:flex;align-items:center}.Pagination_pageNumber__1iropsc1{display:inline-flex;align-items:center;font-size:14px;
|
|
3
|
+
var css_248z = ".Pagination_pagination__1iropsc0{display:flex;align-items:center}.Pagination_pageNumber__1iropsc1{display:inline-flex;align-items:center;font-size:14px;gap:6px;padding:0 6px;color:#32363a;text-align:center}.Pagination_growingInput__1iropsc2{position:relative;display:inline-flex}.Pagination_hidden__1iropsc3{position:absolute;visibility:hidden;padding:8px 12px;border:1px solid transparent}.Pagination_rowCount__1iropsc4{display:inline-flex;align-items:center;gap:6px;font-size:14px;padding:0 6px;color:#32363a}";
|
|
4
4
|
var Pagination_css_ts_vanilla = {"Pagination_pagination__1iropsc0":"Pagination_pagination__1iropsc0","Pagination_pageNumber__1iropsc1":"Pagination_pageNumber__1iropsc1","Pagination_growingInput__1iropsc2":"Pagination_growingInput__1iropsc2","Pagination_hidden__1iropsc3":"Pagination_hidden__1iropsc3","Pagination_rowCount__1iropsc4":"Pagination_rowCount__1iropsc4"};
|
|
5
|
-
var stylesheet=".Pagination_pagination__1iropsc0{display:flex;align-items:center}.Pagination_pageNumber__1iropsc1{display:inline-flex;align-items:center;font-size:14px;
|
|
5
|
+
var stylesheet=".Pagination_pagination__1iropsc0{display:flex;align-items:center}.Pagination_pageNumber__1iropsc1{display:inline-flex;align-items:center;font-size:14px;gap:6px;padding:0 6px;color:#32363a;text-align:center}.Pagination_growingInput__1iropsc2{position:relative;display:inline-flex}.Pagination_hidden__1iropsc3{position:absolute;visibility:hidden;padding:8px 12px;border:1px solid transparent}.Pagination_rowCount__1iropsc4{display:inline-flex;align-items:center;gap:6px;font-size:14px;padding:0 6px;color:#32363a}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { Pagination_css_ts_vanilla 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 = "._P-RqF input{padding-left:76px!important}._3lbGw input{background-color:#e5e5e5!important;color:#9d9fa1!important;cursor:not-allowed!important;-webkit-text-fill-color:#9d9fa1}._3lbGw input::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._3lbGw input::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._DeGUO{position:absolute!important;left:4px;right:4px;bottom:4px;z-index:100;width:67px;height:28px!important;border-radius:4px}._DeGUO,._DeGUO._3lbGw:hover{background-color:initial!important}._DeGUO:hover{background-color:rgba(50,54,58,.08)!important}._DeGUO:active{background-color:rgba(50,54,58,.11)!important}._DeGUO svg{top:2px!important}._nzKD1{position:relative}._Nu97z{position:absolute;top:18px;left:12px;line-height:0px;font-size:14px;color:#32363a;z-index:101;pointer-events:none}";
|
|
4
|
+
var styles = {"input":"_P-RqF","disabled":"_3lbGw","dropdown":"_DeGUO","container":"_nzKD1","countryCode":"_Nu97z"};
|
|
5
|
+
var stylesheet="._P-RqF input{padding-left:76px!important}._3lbGw input{background-color:#e5e5e5!important;color:#9d9fa1!important;cursor:not-allowed!important;-webkit-text-fill-color:#9d9fa1}._3lbGw input::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._3lbGw input::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._DeGUO{position:absolute!important;left:4px;right:4px;bottom:4px;z-index:100;width:67px;height:28px!important;border-radius:4px}._DeGUO,._DeGUO._3lbGw:hover{background-color:initial!important}._DeGUO:hover{background-color:rgba(50,54,58,.08)!important}._DeGUO:active{background-color:rgba(50,54,58,.11)!important}._DeGUO svg{top:2px!important}._nzKD1{position:relative}._Nu97z{position:absolute;top:18px;left:12px;line-height:0px;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 };
|
|
@@ -51,6 +51,8 @@ const Select = _ref => {
|
|
|
51
51
|
_useControllableState2 = _slicedToArray(_useControllableState, 2),
|
|
52
52
|
selectedValues = _useControllableState2[0],
|
|
53
53
|
setSelectedValues = _useControllableState2[1];
|
|
54
|
+
const isMultiselect = multiselect === true;
|
|
55
|
+
const allowUnselect = typeof multiselect === 'object' && (multiselect === null || multiselect === void 0 ? void 0 : multiselect.kind) === 'single' && Boolean(multiselect.allowUnselect);
|
|
54
56
|
const selectPaneChildren = useMemo(() => {
|
|
55
57
|
var _children$find;
|
|
56
58
|
return Array.isArray(children) ? (_children$find = children.find(child => child.type === SelectPane)) === null || _children$find === void 0 ? void 0 : _children$find.props.children : null;
|
|
@@ -73,7 +75,7 @@ const Select = _ref => {
|
|
|
73
75
|
})), [selectPaneChildren]);
|
|
74
76
|
const onItemSelect = useCallback((_value, isSelected) => {
|
|
75
77
|
setSelectedValues(currentSelectedValues => {
|
|
76
|
-
if (
|
|
78
|
+
if (isMultiselect) {
|
|
77
79
|
if (Array.isArray(currentSelectedValues)) {
|
|
78
80
|
const clone = new Set(currentSelectedValues);
|
|
79
81
|
if (isSelected) {
|
|
@@ -88,10 +90,12 @@ const Select = _ref => {
|
|
|
88
90
|
}
|
|
89
91
|
} else if (isSelected) {
|
|
90
92
|
return _value;
|
|
93
|
+
} else if (allowUnselect) {
|
|
94
|
+
return null;
|
|
91
95
|
}
|
|
92
96
|
return currentSelectedValues;
|
|
93
97
|
});
|
|
94
|
-
}, [setSelectedValues,
|
|
98
|
+
}, [setSelectedValues, isMultiselect, allowUnselect]);
|
|
95
99
|
const sharedMenuProps = {
|
|
96
100
|
isDisabled,
|
|
97
101
|
isOpen,
|
|
@@ -102,7 +106,7 @@ const Select = _ref => {
|
|
|
102
106
|
};
|
|
103
107
|
return /*#__PURE__*/React__default.createElement(SelectContextProvider, {
|
|
104
108
|
value: {
|
|
105
|
-
multiselect,
|
|
109
|
+
multiselect: isMultiselect,
|
|
106
110
|
onItemSelect,
|
|
107
111
|
selectedValues,
|
|
108
112
|
selectedSelectItems,
|
|
@@ -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 = "._vhWdP{box-shadow:inset 0 0 0 1px #b00!important}._JQZtU{margin-right:7px}._-5hM3{background-color:rgba(11,110,208,.08);font-weight:500}";
|
|
4
|
+
var styles = {"isInvalid":"_vhWdP","checkbox":"_JQZtU","selectedItem":"_-5hM3"};
|
|
5
|
+
var stylesheet="._vhWdP{box-shadow:inset 0 0 0 1px #b00!important}._JQZtU{margin-right:7px}._-5hM3{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 = "._D97RT{display:flex}._qa4nY{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._qa4nY._fOfZr{background-color:#fff}._qa4nY._fOfZr._3-xq6:focus-visible:not(._gABfM){background-color:#0b6ed0}._qa4nY._fOfZr._xdSq5:not(._qa4nY._fOfZr._DBF7y),._qa4nY._oBF5X{background-color:#0b6ed0}._qa4nY._oBF5X._DBF7y._xdSq5,._qa4nY._oBF5X._gABfM._3-xq6,._qa4nY._oBF5X._gABfM._DBF7y{opacity:.4}._aupBU{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._aupBU:focus{z-index:1}._KjhWg{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}._KjhWg svg{margin-left:1px}._KjhWg._fOfZr{background-color:#0b6ed0;border-color:transparent}._KjhWg._fOfZr svg{fill:#fff!important}._KjhWg._fOfZr:not(._KtHoz):hover{background-color:#085caf!important}._KjhWg._fOfZr:not(._KtHoz):active{background-color:#0854a1!important}._KjhWg._fOfZr._KtHoz{opacity:.4}._KjhWg._fOfZr._KtHoz svg{background-color:initial}._KjhWg._oBF5X{border-color:#0b6ed0;background-color:#fff}._KjhWg._oBF5X svg{fill:#0b6ed0!important}._KjhWg._oBF5X:not(._KtHoz):hover{background-color:#eef5fc!important}._KjhWg._oBF5X:not(._KtHoz):active{background-color:#e1edf9!important}._KjhWg._oBF5X._KtHoz{opacity:.4}._KjhWg._oBF5X._KtHoz svg{background-color:initial}._AFgh-{width:260px}";
|
|
4
|
+
var styles = {"container":"_D97RT","divider":"_qa4nY","primary":"_fOfZr","mainButtonFocus":"_3-xq6","mainButtonDisabled":"_gABfM","dropdownButtonFocus":"_xdSq5","dropdownButtonDisabled":"_DBF7y","secondary":"_oBF5X","mainButton":"_aupBU","dropdownButton":"_KjhWg","disabled":"_KtHoz","dropdownOption":"_AFgh-"};
|
|
5
|
+
var stylesheet="._D97RT{display:flex}._qa4nY{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._qa4nY._fOfZr{background-color:#fff}._qa4nY._fOfZr._3-xq6:focus-visible:not(._gABfM){background-color:#0b6ed0}._qa4nY._fOfZr._xdSq5:not(._qa4nY._fOfZr._DBF7y),._qa4nY._oBF5X{background-color:#0b6ed0}._qa4nY._oBF5X._DBF7y._xdSq5,._qa4nY._oBF5X._gABfM._3-xq6,._qa4nY._oBF5X._gABfM._DBF7y{opacity:.4}._aupBU{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._aupBU:focus{z-index:1}._KjhWg{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}._KjhWg svg{margin-left:1px}._KjhWg._fOfZr{background-color:#0b6ed0;border-color:transparent}._KjhWg._fOfZr svg{fill:#fff!important}._KjhWg._fOfZr:not(._KtHoz):hover{background-color:#085caf!important}._KjhWg._fOfZr:not(._KtHoz):active{background-color:#0854a1!important}._KjhWg._fOfZr._KtHoz{opacity:.4}._KjhWg._fOfZr._KtHoz svg{background-color:initial}._KjhWg._oBF5X{border-color:#0b6ed0;background-color:#fff}._KjhWg._oBF5X svg{fill:#0b6ed0!important}._KjhWg._oBF5X:not(._KtHoz):hover{background-color:#eef5fc!important}._KjhWg._oBF5X:not(._KtHoz):active{background-color:#e1edf9!important}._KjhWg._oBF5X._KtHoz{opacity:.4}._KjhWg._oBF5X._KtHoz svg{background-color:initial}._AFgh-{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 = "._0MJjP{display:inline-block;position:relative}._0MJjP ._gpbd2{width:120px}._0MJjP ._gpbd2 ._mKPnZ._8p-7O{transform:rotate(-180deg)}._0MJjP ._gpbd2 ._mKPnZ._Q4NJ0{fill:#9d9fa1;opacity:.4}._0MJjP ._QJ4TH>input:focus{box-shadow:none!important;border:1px solid #898989!important}._0MJjP ._mKPnZ{position:absolute;right:4px;bottom:4px;height:28px;width:28px}._0MJjP ._mKPnZ._8p-7O{transform:rotate(-180deg)}._CUskI{width:120px}._CUskI ._iFhBA._XkfZW{background-color:#efefef;border-radius:6px}";
|
|
4
|
+
var styles = {"timePickerContainer":"_0MJjP","input":"_gpbd2","icon":"_mKPnZ","open":"_8p-7O","disabled":"_Q4NJ0","ignoreFocusStyle":"_QJ4TH","timePickerFlyout":"_CUskI","option":"_iFhBA","exactMatch":"_XkfZW"};
|
|
5
|
+
var stylesheet="._0MJjP{display:inline-block;position:relative}._0MJjP ._gpbd2{width:120px}._0MJjP ._gpbd2 ._mKPnZ._8p-7O{transform:rotate(-180deg)}._0MJjP ._gpbd2 ._mKPnZ._Q4NJ0{fill:#9d9fa1;opacity:.4}._0MJjP ._QJ4TH>input:focus{box-shadow:none!important;border:1px solid #898989!important}._0MJjP ._mKPnZ{position:absolute;right:4px;bottom:4px;height:28px;width:28px}._0MJjP ._mKPnZ._8p-7O{transform:rotate(-180deg)}._CUskI{width:120px}._CUskI ._iFhBA._XkfZW{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 = "._UYT3n{border-color:transparent;background-color:initial;color:#515559;cursor:pointer}._lCr9i{background-color:rgba(50,54,58,.08)}._CHsWR{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._FZbH7{color:rgba(81,85,89,.4);cursor:not-allowed}._FvV82{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._HWQXg{color:#085caf;border-color:#085caf}._HWQXg,._Ib-h0{background:rgba(11,110,208,.11)}._Ib-h0{color:#0854a1;border-color:#0854a1}._UkTTe{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._LQ-Zp{position:relative;display:inline-grid}._LQ-Zp svg{fill:currentColor}._LQ-Zp ._HNqx4{-webkit-appearance:none;-moz-appearance:none;appearance:none;grid-column:1;grid-row:1}._LQ-Zp ._HNqx4+._c09sO{background-color:initial;color:#515559;cursor:pointer;border-color:transparent;border-style:solid;border-width:1px;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}._LQ-Zp ._HNqx4+._c09sO._aXu1y{padding:5px;max-width:36px;min-width:36px}._LQ-Zp ._HNqx4+._c09sO._Lj1KO{padding:0 16px}._LQ-Zp ._HNqx4+._c09sO._GtYov{padding:0 16px 0 12px}._LQ-Zp ._HNqx4:hover+._c09sO{background-color:rgba(50,54,58,.08)}._LQ-Zp ._HNqx4:disabled+._c09sO{color:rgba(81,85,89,.4);cursor:not-allowed}._LQ-Zp ._HNqx4:active+._c09sO,._LQ-Zp ._HNqx4:focus:active+._c09sO{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._LQ-Zp ._HNqx4:checked+._c09sO{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._LQ-Zp ._HNqx4:checked:hover+._c09sO{background:rgba(11,110,208,.11);color:#085caf;border-color:#085caf}._LQ-Zp ._HNqx4:checked:disabled+._c09sO{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._LQ-Zp ._HNqx4:checked:active+._c09sO,._LQ-Zp ._HNqx4:checked:focus:active+._c09sO{background:rgba(11,110,208,.11);color:#0854a1;border-color:#0854a1}._fB-Fz{display:inline-flex;position:relative}._fB-Fz:before{content:\"\";border:1px solid #d9d9d9;border-radius:4px;position:absolute;top:0;bottom:0;right:0;left:0}._fB-Fz>*{flex-shrink:0;flex-grow:0}._0Bm-y{border:none;margin:0;padding:0}._0Bm-y legend{padding:0;display:block;font-size:14px;margin-bottom:6px;color:#515559}._LQ-Zp ._HNqx4:focus-visible{outline:none}._LQ-Zp ._HNqx4:focus-visible+._c09sO{z-index:20;outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"default":"_UYT3n","hovered":"_lCr9i","pressed":"_CHsWR","disabled":"_FZbH7","selectedDefault":"_FvV82","selectedHovered":"_HWQXg","selectedPressed":"_Ib-h0","selectedDisabled":"_UkTTe","toggleContainer":"_LQ-Zp","toggleInput":"_HNqx4","toggleButton":"_c09sO","iconOnly":"_aXu1y","text":"_Lj1KO","iconText":"_GtYov","toggleButtonGroup":"_fB-Fz","toggleButtonGroupFieldset":"_0Bm-y"};
|
|
5
|
+
var stylesheet="._UYT3n{border-color:transparent;background-color:initial;color:#515559;cursor:pointer}._lCr9i{background-color:rgba(50,54,58,.08)}._CHsWR{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._FZbH7{color:rgba(81,85,89,.4);cursor:not-allowed}._FvV82{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._HWQXg{color:#085caf;border-color:#085caf}._HWQXg,._Ib-h0{background:rgba(11,110,208,.11)}._Ib-h0{color:#0854a1;border-color:#0854a1}._UkTTe{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._LQ-Zp{position:relative;display:inline-grid}._LQ-Zp svg{fill:currentColor}._LQ-Zp ._HNqx4{-webkit-appearance:none;-moz-appearance:none;appearance:none;grid-column:1;grid-row:1}._LQ-Zp ._HNqx4+._c09sO{background-color:initial;color:#515559;cursor:pointer;border-color:transparent;border-style:solid;border-width:1px;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}._LQ-Zp ._HNqx4+._c09sO._aXu1y{padding:5px;max-width:36px;min-width:36px}._LQ-Zp ._HNqx4+._c09sO._Lj1KO{padding:0 16px}._LQ-Zp ._HNqx4+._c09sO._GtYov{padding:0 16px 0 12px}._LQ-Zp ._HNqx4:hover+._c09sO{background-color:rgba(50,54,58,.08)}._LQ-Zp ._HNqx4:disabled+._c09sO{color:rgba(81,85,89,.4);cursor:not-allowed}._LQ-Zp ._HNqx4:active+._c09sO,._LQ-Zp ._HNqx4:focus:active+._c09sO{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._LQ-Zp ._HNqx4:checked+._c09sO{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._LQ-Zp ._HNqx4:checked:hover+._c09sO{background:rgba(11,110,208,.11);color:#085caf;border-color:#085caf}._LQ-Zp ._HNqx4:checked:disabled+._c09sO{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._LQ-Zp ._HNqx4:checked:active+._c09sO,._LQ-Zp ._HNqx4:checked:focus:active+._c09sO{background:rgba(11,110,208,.11);color:#0854a1;border-color:#0854a1}._fB-Fz{display:inline-flex;position:relative}._fB-Fz:before{content:\"\";border:1px solid #d9d9d9;border-radius:4px;position:absolute;top:0;bottom:0;right:0;left:0}._fB-Fz>*{flex-shrink:0;flex-grow:0}._0Bm-y{border:none;margin:0;padding:0}._0Bm-y legend{padding:0;display:block;font-size:14px;margin-bottom:6px;color:#515559}._LQ-Zp ._HNqx4:focus-visible{outline:none}._LQ-Zp ._HNqx4:focus-visible+._c09sO{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
|
@@ -1209,10 +1209,14 @@ export declare interface SelectPaneProps extends AllHTMLAttributes<HTMLDivElemen
|
|
|
1209
1209
|
}
|
|
1210
1210
|
|
|
1211
1211
|
export declare interface SelectProps {
|
|
1212
|
-
/** Allows for the selection of multiple items.
|
|
1212
|
+
/** Allows for the selection of multiple items. Pass an object with `kind: 'single'`
|
|
1213
|
+
* to configure single-selection behavior instead, such as `allowUnselect`.
|
|
1213
1214
|
* @defaultValue false
|
|
1214
1215
|
*/
|
|
1215
|
-
multiselect?: boolean
|
|
1216
|
+
multiselect?: boolean | {
|
|
1217
|
+
kind: 'single';
|
|
1218
|
+
allowUnselect?: boolean;
|
|
1219
|
+
};
|
|
1216
1220
|
/** Forwarded to all component parts with the following suffixes:
|
|
1217
1221
|
* - `SelectButton`: `-selectbutton`
|
|
1218
1222
|
* - `SelectPane`: `-selectpane`
|
|
@@ -1234,10 +1238,14 @@ export declare interface SelectProps {
|
|
|
1234
1238
|
* @defaultValue false
|
|
1235
1239
|
*/
|
|
1236
1240
|
isDisabled?: boolean;
|
|
1237
|
-
/** Handler to be called whenever `value` should change
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
+
/** Handler to be called whenever `value` should change. Called with `null`
|
|
1242
|
+
* when `allowUnselect` clears the current single-select value — `null` is
|
|
1243
|
+
* used instead of `undefined` so a controlled `value` doesn't look
|
|
1244
|
+
* uncontrolled to `useControllableState` once cleared. */
|
|
1245
|
+
onChange?: (value: string | number | (string | number)[] | null) => void;
|
|
1246
|
+
/** Controls the selected value. Pass `null` to represent no selection
|
|
1247
|
+
* when using `allowUnselect`. */
|
|
1248
|
+
value?: string | number | (string | number)[] | null;
|
|
1241
1249
|
/** Styles the component as invalid
|
|
1242
1250
|
* @defaultValue false
|
|
1243
1251
|
*/
|