@qualtrics/ui-react 2.50.0 → 2.52.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 +28 -0
- package/dist/__shared/cjs/{index-19ecf96e.js → index-7c2fdea8.js} +262 -281
- package/dist/__shared/cjs/{index-e9e9ae0e.js → index-f4a0f3d1.js} +39 -3
- package/dist/components/Accordion/Accordion2.js +3 -3
- package/dist/components/Accordion/AccordionPanel.js +3 -24
- package/dist/components/Button/Button.js +3 -3
- package/dist/components/Button/Button2.js +9 -13
- 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/ColorPicker/Palette.js +33 -39
- package/dist/components/Combobox/Combobox.js +1 -1
- package/dist/components/Combobox/Combobox2.js +3 -3
- package/dist/components/ConfigPane/ConfigPane.js +5 -6
- package/dist/components/ConfigPane/ConfigPane2.js +3 -3
- package/dist/components/Divider/Divider2.js +3 -3
- package/dist/components/Dropdown/Dropdown.js +1 -1
- package/dist/components/Dropdown/Dropdown2.js +3 -3
- package/dist/components/Dropdown/DropdownButton.js +9 -9
- 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/Icon/IconTypes.js +9 -0
- 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/BaseMenu.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/SearchInput.js +7 -2
- 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/TabContextProvider.js +0 -2
- package/dist/components/Tabs/Tabs2.js +3 -3
- package/dist/components/Tooltip/Tooltip.js +31 -41
- 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_NumberStepper/NumberStepperDecrement.js +1 -1
- package/dist/components/deprecated_NumberStepper/NumberStepperIncrement.js +1 -1
- package/dist/components/deprecated_Tabs/Tabs.js +2 -2
- package/dist/components/deprecated_Tabs/Tabs2.js +3 -3
- package/dist/components/deprecated_Toolbar/Toolbar2.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/components/GridBottomHalfIcon.js +6 -0
- package/dist/icons/components/GridBottomLeftIcon.js +6 -0
- package/dist/icons/components/GridBottomRightIcon.js +6 -0
- package/dist/icons/components/GridLeftHalfIcon.js +6 -0
- package/dist/icons/components/GridRightHalfIcon.js +6 -0
- package/dist/icons/components/GridTopHalfIcon.js +6 -0
- package/dist/icons/components/GridTopLeftIcon.js +6 -0
- package/dist/icons/components/GridTopRightIcon.js +6 -0
- package/dist/icons/components/SocialChannelsIcon.js +6 -0
- package/dist/icons/index.d.ts +18 -2
- package/dist/icons/index.es.js +9 -0
- package/dist/icons/index.js +10 -1
- package/dist/index.d.ts +27 -4
- package/dist/index.es.js +1 -1
- package/dist/index.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTable.js +9 -7
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTableCheckbox.js +6 -1
- package/dist/next/AdvancedTable/AdvancedTableColumnHeader.js +15 -6
- package/dist/next/AdvancedTable/AdvancedTableDnDContext.js +32 -0
- package/dist/next/AdvancedTable/AdvancedTableDragPreview.js +9 -11
- package/dist/next/AdvancedTable/AdvancedTablePagination.js +19 -2
- package/dist/next/AdvancedTable/AdvancedTableRow.js +6 -1
- package/dist/next/AdvancedTable/AdvancedTableRowExpandButton.js +12 -3
- package/dist/next/AdvancedTable/useAdvancedTableDragAndDrop.js +30 -138
- package/dist/next/AdvancedTable/useDragAndDropConfig.js +191 -0
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
- package/dist/next/Combobox/Combobox2.js +3 -3
- package/dist/next/Drawer/Drawer.js +1 -1
- 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/Input/Input2.js +3 -3
- package/dist/next/Menu/Hooks/usePaneSearch.js +12 -7
- package/dist/next/Menu/Menu2.js +3 -3
- package/dist/next/PhoneNumberInput/PhoneNumberInput.js +1 -0
- 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 +14 -12
- package/dist/next/index.js +316 -162
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/dist/utils/Popper/Popper.js +5 -3
- package/dist/utils/Text/Text.js +1 -1
- package/dist/utils/Translation/containsComponentOrElement.js +6 -3
- package/dist/utils/Translation/useTranslation.js +5 -1
- package/icons/package.json +10 -10
- package/next/package.json +11 -11
- package/package.json +41 -41
|
@@ -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 = {"loadingSpinner":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._5Igvw :after{background-color:#515559!important}._a9xqi>input:focus{box-shadow:none!important;border:1px solid #898989!important}._Z8Evz{max-width:500px;padding:4px 0;background-color:#fff;border:1px solid #eee;border-radius:4px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);z-index:1000;overflow-x:hidden;overflow-y:auto;overflow:hidden auto}._Z8Evz ._yYolN ._7Kara{display:flex;align-items:center;min-height:40px;padding:10px 12px;color:#32363a;font-size:12px;line-height:16px;font-weight:700;word-break:break-word}._Z8Evz ._yYolN:first-child ._rgM0P{display:none}._Z8Evz ._iSeyh{display:flex;align-items:center;min-height:40px;padding:10px 12px;font-size:14px;color:#32363a;word-break:break-word;outline:none;cursor:pointer}._Z8Evz ._iSeyh:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._Z8Evz ._iSeyh:hover._YMyy8{background-color:#e4effa}._Z8Evz ._iSeyh._YMyy8{background-color:#ebf3fb;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._Z8Evz ._iSeyh:active:not(._YMyy8){background-color:#e8e9e9}";
|
|
4
|
+
var styles = {"loadingSpinner":"_5Igvw","ignoreFocusStyle":"_a9xqi","flyout":"_Z8Evz","group":"_yYolN","header":"_7Kara","divider":"_rgM0P","option":"_iSeyh","selected":"_YMyy8"};
|
|
5
|
+
var stylesheet="._5Igvw :after{background-color:#515559!important}._a9xqi>input:focus{box-shadow:none!important;border:1px solid #898989!important}._Z8Evz{max-width:500px;padding:4px 0;background-color:#fff;border:1px solid #eee;border-radius:4px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);z-index:1000;overflow-x:hidden;overflow-y:auto;overflow:hidden auto}._Z8Evz ._yYolN ._7Kara{display:flex;align-items:center;min-height:40px;padding:10px 12px;color:#32363a;font-size:12px;line-height:16px;font-weight:700;word-break:break-word}._Z8Evz ._yYolN:first-child ._rgM0P{display:none}._Z8Evz ._iSeyh{display:flex;align-items:center;min-height:40px;padding:10px 12px;font-size:14px;color:#32363a;word-break:break-word;outline:none;cursor:pointer}._Z8Evz ._iSeyh:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._Z8Evz ._iSeyh:hover._YMyy8{background-color:#e4effa}._Z8Evz ._iSeyh._YMyy8{background-color:#ebf3fb;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._Z8Evz ._iSeyh:active:not(._YMyy8){background-color:#e8e9e9}";
|
|
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 };
|
|
@@ -95,7 +95,7 @@ const Drawer = _ref => {
|
|
|
95
95
|
const containerNode = (_containerRef$current = containerRef === null || containerRef === void 0 ? void 0 : containerRef.current) !== null && _containerRef$current !== void 0 ? _containerRef$current : document.body;
|
|
96
96
|
|
|
97
97
|
/* eslint-disable jsx-a11y/no-noninteractive-element-interactions */
|
|
98
|
-
return domReady ? /*#__PURE__*/createPortal(
|
|
98
|
+
return domReady ? /*#__PURE__*/createPortal(/*#__PURE__*/React__default.createElement("aside", {
|
|
99
99
|
id: drawerId,
|
|
100
100
|
className: classNames(styles.drawer, {
|
|
101
101
|
[styles.hidden]: isHidden,
|
|
@@ -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 = "._WDoYU{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}._jnaH9{visibility:hidden}._2aon-{position:fixed}._xjBhN{display:flex;justify-content:space-between;align-items:start;line-height:20px;font-size:16px;padding-bottom:12px}._GfSiP{padding-top:8px}._DIXX8{margin-left:12px}";
|
|
4
|
+
var styles = {"drawer":"_WDoYU","hidden":"_jnaH9","anchoredToBody":"_2aon-","header":"_xjBhN","title":"_GfSiP","closeButton":"_DIXX8"};
|
|
5
|
+
var stylesheet="._WDoYU{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}._jnaH9{visibility:hidden}._2aon-{position:fixed}._xjBhN{display:flex;justify-content:space-between;align-items:start;line-height:20px;font-size:16px;padding-bottom:12px}._GfSiP{padding-top:8px}._DIXX8{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 = "._KzBAe{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}._KzBAe:hover:not(._X2dxn){background-color:rgba(50,54,58,.08)}._KzBAe:hover:not(._X2dxn)._1LG9u{border-color:#085caf;background-color:rgba(11,110,208,.04)}._KzBAe:hover:not(._X2dxn)._1LG9u ._-Se3b{color:#32363a}._KzBAe:hover:not(._X2dxn)._1LG9u ._FYJLr{fill:#32363a}._KzBAe:hover:not(._X2dxn)._1LG9u ._Vaawr{fill:#085caf}._KzBAe:hover:not(._X2dxn)._1LG9u ._liJLM{background-color:rgba(11,110,208,.11)}._KzBAe:hover:not(._X2dxn)._1LG9u ._liJLM ._qXfNt{color:#085caf}._KzBAe:active:not(._X2dxn){background-color:#e8e9e9}._KzBAe:active:not(._X2dxn)._1LG9u{background-color:rgba(11,110,208,.11);border-color:#0854a1}._KzBAe:active:not(._X2dxn)._1LG9u ._Vaawr{fill:#0854a1}._KzBAe:active:not(._X2dxn)._1LG9u ._liJLM{background-color:rgba(11,110,208,.11)}._KzBAe:active:not(._X2dxn)._1LG9u ._liJLM ._qXfNt{color:#0854a1}._KzBAe._X2dxn{background-color:#fafafa;border-color:#e5e5e5;cursor:not-allowed}._KzBAe._1LG9u{border-color:#0b6ed0}._FYJLr{fill:#515559;margin-right:4px}._-Se3b{max-width:180px;margin-right:3px;color:#515559;fill:#515559;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._-Se3b+._liJLM{margin-left:6px}._-Se3b._X2dxn{color:#74777a}._liJLM{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}._qXfNt{color:#0b6ed0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._Vaawr{fill:#515559}._Vaawr._X2dxn,._Vaawr._X2dxn._1LG9u{fill:rgba(116,119,122,.4)}._Vaawr._1LG9u{fill:#0b6ed0}._Vaawr._f0dOR{transform:rotate(-180deg)}._KzBAe.focus-visible,._KzBAe:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"button":"_KzBAe","disabled":"_X2dxn","selected":"_1LG9u","label":"_-Se3b","lockIcon":"_FYJLr","chevronIcon":"_Vaawr","selectedFiltersContainer":"_liJLM","selectedFilters":"_qXfNt","open":"_f0dOR"};
|
|
5
|
+
var stylesheet="._KzBAe{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}._KzBAe:hover:not(._X2dxn){background-color:rgba(50,54,58,.08)}._KzBAe:hover:not(._X2dxn)._1LG9u{border-color:#085caf;background-color:rgba(11,110,208,.04)}._KzBAe:hover:not(._X2dxn)._1LG9u ._-Se3b{color:#32363a}._KzBAe:hover:not(._X2dxn)._1LG9u ._FYJLr{fill:#32363a}._KzBAe:hover:not(._X2dxn)._1LG9u ._Vaawr{fill:#085caf}._KzBAe:hover:not(._X2dxn)._1LG9u ._liJLM{background-color:rgba(11,110,208,.11)}._KzBAe:hover:not(._X2dxn)._1LG9u ._liJLM ._qXfNt{color:#085caf}._KzBAe:active:not(._X2dxn){background-color:#e8e9e9}._KzBAe:active:not(._X2dxn)._1LG9u{background-color:rgba(11,110,208,.11);border-color:#0854a1}._KzBAe:active:not(._X2dxn)._1LG9u ._Vaawr{fill:#0854a1}._KzBAe:active:not(._X2dxn)._1LG9u ._liJLM{background-color:rgba(11,110,208,.11)}._KzBAe:active:not(._X2dxn)._1LG9u ._liJLM ._qXfNt{color:#0854a1}._KzBAe._X2dxn{background-color:#fafafa;border-color:#e5e5e5;cursor:not-allowed}._KzBAe._1LG9u{border-color:#0b6ed0}._FYJLr{fill:#515559;margin-right:4px}._-Se3b{max-width:180px;margin-right:3px;color:#515559;fill:#515559;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._-Se3b+._liJLM{margin-left:6px}._-Se3b._X2dxn{color:#74777a}._liJLM{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}._qXfNt{color:#0b6ed0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._Vaawr{fill:#515559}._Vaawr._X2dxn,._Vaawr._X2dxn._1LG9u{fill:rgba(116,119,122,.4)}._Vaawr._1LG9u{fill:#0b6ed0}._Vaawr._f0dOR{transform:rotate(-180deg)}._KzBAe.focus-visible,._KzBAe: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 = "._yis6D{margin:6px 0}._UJ9rV{line-height:20px;color:#515559;display:flex;margin-bottom:4px}._yctvi{display:inline-block}._yctvi:has([aria-expanded=true]) ._UJ9rV,._yctvi[focus-within] ._UJ9rV{color:#0b6ed0}._yctvi:focus-within ._UJ9rV,._yctvi:has([aria-expanded=true]) ._UJ9rV{color:#0b6ed0}._yctvi:has(input:disabled) ._UJ9rV{color:rgba(50,54,58,.4)}._yctvi:not(:has(input:disabled)) ._UJ9rV{cursor:pointer}._xY8Lu{margin-top:4px}._xY8Lu:first-of-type{margin-top:6px}";
|
|
4
|
+
var styles = {"input":"_yis6D","label":"_UJ9rV","formFieldWrapper":"_yctvi","caption":"_xY8Lu"};
|
|
5
|
+
var stylesheet="._yis6D{margin:6px 0}._UJ9rV{line-height:20px;color:#515559;display:flex;margin-bottom:4px}._yctvi{display:inline-block}._yctvi:has([aria-expanded=true]) ._UJ9rV,._yctvi[focus-within] ._UJ9rV{color:#0b6ed0}._yctvi:focus-within ._UJ9rV,._yctvi:has([aria-expanded=true]) ._UJ9rV{color:#0b6ed0}._yctvi:has(input:disabled) ._UJ9rV{color:rgba(50,54,58,.4)}._yctvi:not(:has(input:disabled)) ._UJ9rV{cursor:pointer}._xY8Lu{margin-top:4px}._xY8Lu: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 inputClasses = {"container":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._U4vxJ{position:relative;display:inline-block;height:36px;width:100%}._LxWAl{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}._LxWAl:hover{cursor:pointer;background-color:#f5f5f5}._LxWAl:focus{background-color:#fafafa;cursor:text;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;outline:none;border-color:transparent}._LxWAl:disabled,._LxWAl[aria-disabled=true]{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._LxWAl:disabled::-moz-placeholder,._LxWAl[aria-disabled=true]::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._LxWAl:disabled::placeholder,._LxWAl[aria-disabled=true]::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._LxWAl:invalid,._LxWAl[aria-invalid=true]{border-color:#b00}._LxWAl:invalid:focus,._LxWAl[aria-invalid=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._LxWAl[type=number]{-moz-appearance:textfield}._LxWAl[type=number]::-webkit-inner-spin-button,._LxWAl[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._LxWAl::-moz-placeholder{color:#515559;opacity:1}._LxWAl::placeholder{color:#515559;opacity:1}._YVv8l{pointer-events:none;color:#515559;fill:#515559}._7TEmp{display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._XKjlv{color:#515559;font-size:16px}._zhndj{left:0;margin-left:6px}._IFBIG,._zhndj{pointer-events:none;color:#515559;fill:#515559;display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._IFBIG{right:0;margin-right:6px}";
|
|
4
|
+
var inputClasses = {"container":"_U4vxJ","input":"_LxWAl","addOn":"_YVv8l","addOnVerticalCenter":"_7TEmp","addOnTextNode":"_XKjlv","leftAddOn":"_zhndj","rightAddOn":"_IFBIG"};
|
|
5
|
+
var stylesheet="._U4vxJ{position:relative;display:inline-block;height:36px;width:100%}._LxWAl{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}._LxWAl:hover{cursor:pointer;background-color:#f5f5f5}._LxWAl:focus{background-color:#fafafa;cursor:text;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;outline:none;border-color:transparent}._LxWAl:disabled,._LxWAl[aria-disabled=true]{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._LxWAl:disabled::-moz-placeholder,._LxWAl[aria-disabled=true]::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._LxWAl:disabled::placeholder,._LxWAl[aria-disabled=true]::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._LxWAl:invalid,._LxWAl[aria-invalid=true]{border-color:#b00}._LxWAl:invalid:focus,._LxWAl[aria-invalid=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._LxWAl[type=number]{-moz-appearance:textfield}._LxWAl[type=number]::-webkit-inner-spin-button,._LxWAl[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._LxWAl::-moz-placeholder{color:#515559;opacity:1}._LxWAl::placeholder{color:#515559;opacity:1}._YVv8l{pointer-events:none;color:#515559;fill:#515559}._7TEmp{display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._XKjlv{color:#515559;font-size:16px}._zhndj{left:0;margin-left:6px}._IFBIG,._zhndj{pointer-events:none;color:#515559;fill:#515559;display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._IFBIG{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,4 +1,4 @@
|
|
|
1
|
-
import React__default, { useMemo,
|
|
1
|
+
import React__default, { useMemo, useState, useCallback, useRef, useEffect } from 'react';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import '../../../hooks/index.js';
|
|
4
4
|
import '../../../utils/index.js';
|
|
@@ -16,7 +16,6 @@ import useEventListener from '../../../hooks/useEventListener/useEventListener.j
|
|
|
16
16
|
// creates a searchBarConfig, which maps to an instance of `MenuSearch`
|
|
17
17
|
// returns values that are necessary for use within pane
|
|
18
18
|
function usePaneSearch(_ref) {
|
|
19
|
-
var _searchRef$current$qu, _searchRef$current;
|
|
20
19
|
let {
|
|
21
20
|
isSearchable,
|
|
22
21
|
externalSearchValue,
|
|
@@ -52,8 +51,13 @@ function usePaneSearch(_ref) {
|
|
|
52
51
|
return searchMatcher === null || searchMatcher === void 0 || (_searchMatcher$toLowe = searchMatcher.toLowerCase) === null || _searchMatcher$toLowe === void 0 ? void 0 : _searchMatcher$toLowe.call(searchMatcher).includes(internalSearchValue.toLowerCase());
|
|
53
52
|
}), [internalSearchValue, children, isSearchFilteringDisabled]);
|
|
54
53
|
const focusVirtualBoundary = useFocusVirtualBoundary(items, backButtonRef);
|
|
55
|
-
const
|
|
56
|
-
const
|
|
54
|
+
const [searchInput, setSearchInput] = useState(null);
|
|
55
|
+
const [searchElement, setSearchElement] = useState(null);
|
|
56
|
+
const searchRef = useCallback(node => {
|
|
57
|
+
var _node$querySelector;
|
|
58
|
+
setSearchElement(node);
|
|
59
|
+
setSearchInput((_node$querySelector = node === null || node === void 0 ? void 0 : node.querySelector('input')) !== null && _node$querySelector !== void 0 ? _node$querySelector : null);
|
|
60
|
+
}, []);
|
|
57
61
|
const getFirstVisibleItem = () => {
|
|
58
62
|
var _backButtonRef$curren, _items$find;
|
|
59
63
|
return (_backButtonRef$curren = backButtonRef === null || backButtonRef === void 0 ? void 0 : backButtonRef.current) !== null && _backButtonRef$curren !== void 0 ? _backButtonRef$curren : (_items$find = items.find(item => item.element.current)) === null || _items$find === void 0 ? void 0 : _items$find.element.current;
|
|
@@ -111,8 +115,8 @@ function usePaneSearch(_ref) {
|
|
|
111
115
|
setSearchBarConfigs
|
|
112
116
|
} = useMenuContext();
|
|
113
117
|
const onInteractOutside = useCallback(e => searchBarConfigs.some(config => {
|
|
114
|
-
var _config$
|
|
115
|
-
return (_config$
|
|
118
|
+
var _config$searchElement;
|
|
119
|
+
return (_config$searchElement = config.searchElement) === null || _config$searchElement === void 0 ? void 0 : _config$searchElement.contains(e.target);
|
|
116
120
|
}) && e.preventDefault(), [searchBarConfigs]);
|
|
117
121
|
useEffect(() => {
|
|
118
122
|
if (!isSearchable) {
|
|
@@ -128,6 +132,7 @@ function usePaneSearch(_ref) {
|
|
|
128
132
|
dataTestId: menuParentDataTestId === null || menuParentDataTestId === void 0 ? void 0 : menuParentDataTestId.replace(withinSelect ? DATA_TESTID_SUFFIXES.SELECT_PANE : DATA_TESTID_SUFFIXES$1.MENU_PANE, withinSelect ? DATA_TESTID_SUFFIXES.SELECT_SEARCH : DATA_TESTID_SUFFIXES$1.MENU_SEARCH),
|
|
129
133
|
setSearchValue,
|
|
130
134
|
ref: searchRef,
|
|
135
|
+
searchElement,
|
|
131
136
|
id,
|
|
132
137
|
searchPlaceholder
|
|
133
138
|
};
|
|
@@ -139,7 +144,7 @@ function usePaneSearch(_ref) {
|
|
|
139
144
|
}
|
|
140
145
|
return configsClone;
|
|
141
146
|
});
|
|
142
|
-
}, [isSearchable, searchPlaceholder, setSearchBarConfigs, internalSearchValue, animatedLeft, animatedRight, menuParentDataTestId, setSearchValue, searchRef, id, withinSelect]);
|
|
147
|
+
}, [isSearchable, searchPlaceholder, setSearchBarConfigs, internalSearchValue, animatedLeft, animatedRight, menuParentDataTestId, setSearchValue, searchRef, searchElement, id, withinSelect]);
|
|
143
148
|
useEffect(() => () => setSearchBarConfigs(configs => {
|
|
144
149
|
const configIndex = configs.findIndex(config => config.id === id);
|
|
145
150
|
if (configIndex === -1) {
|
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 = "._bE-rX{position:relative;display:inline-flex;height:36px;min-width:60px;cursor:pointer}._bE-rX>._HS0-b{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}._bE-rX>._HS0-b:hover:not([aria-disabled=true]){background-color:#f5f5f5}._bE-rX>._HS0-b.focus-visible,._bE-rX>._HS0-b:focus-visible{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._bE-rX>._HS0-b+._ajMt-{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._bE-rX>._HS0-b[data-state=open]+._ajMt-{transform:rotate(-180deg) translateY(50%)}._bE-rX>._HS0-b[aria-disabled=true]{color:#74777a;cursor:not-allowed}._bE-rX>._HS0-b[aria-disabled=true]+._ajMt-{fill:#515559;opacity:.4}._qfso6>[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}._qfso6>[data-radix-popper-content-wrapper] [data-radix-popper-content-wrapper]{transform:translateZ(0)!important}._A5PnH{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)}._A5PnH ._uV0R1{height:100%;overflow-y:scroll}._A5PnH._YrjGi{margin-left:30px;opacity:0}._A5PnH._U6OLY{margin-left:-30px}._Ec5s7{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%}._Ec5s7._tNjvO{cursor:unset}._Ec5s7 ._ddHCN{fill:#32363a;margin-right:4px}._Ec5s7:focus,._Ec5s7:hover:not(._Ec5s7._tNjvO){background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._Ec5s7[aria-disabled=true]{cursor:not-allowed;opacity:.65}._Ec5s7._k-vkb{padding-right:32px}._Ec5s7._k-vkb ._ajMt-{position:absolute;height:100%;right:3px;fill:#515559}._Ec5s7._DOM1n{pointer-events:none}._D01Wm{position:-webkit-sticky;position:sticky;top:0;background-color:#fff;border-bottom:1px solid #e8e8e8}._D01Wm._PeR-J{padding-top:52px}._rQhNK{pointer-events:none;position:fixed;left:0;top:0;transition:width .35s;min-width:200px;width:var(--mask-width);max-width:350px}._KQc8p{position:absolute;padding:8px;border-radius:4px 4px 0 0;pointer-events:auto;opacity:1;width:100%;transition:opacity .35s,margin-left .35s}._KQc8p._U6OLY{opacity:0}._KQc8p._U6OLY>._Z35sr{margin-left:-30px}._KQc8p._YrjGi{opacity:0}._KQc8p._YrjGi>._Z35sr{margin-left:30px}._KQc8p>._Z35sr{transition:margin-left .35s;width:100%}._KQc8p._DOM1n{pointer-events:none}body.keyboard-user ._Ec5s7:hover:not(:focus){background-color:#fff;box-shadow:none}";
|
|
4
|
+
var styles = {"buttonContainer":"_bE-rX","button":"_HS0-b","rightIcon":"_ajMt-","maskContainer":"_qfso6","flyout":"_A5PnH","scrollContainer":"_uV0R1","animatedRight":"_YrjGi","animatedLeft":"_U6OLY","menuItem":"_Ec5s7","noItems":"_tNjvO","backIcon":"_ddHCN","subMenu":"_k-vkb","unresponsive":"_DOM1n","stickyBox":"_D01Wm","isSearchable":"_PeR-J","searchBoxesContainer":"_rQhNK","searchBox":"_KQc8p","searchInput":"_Z35sr"};
|
|
5
|
+
var stylesheet="._bE-rX{position:relative;display:inline-flex;height:36px;min-width:60px;cursor:pointer}._bE-rX>._HS0-b{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}._bE-rX>._HS0-b:hover:not([aria-disabled=true]){background-color:#f5f5f5}._bE-rX>._HS0-b.focus-visible,._bE-rX>._HS0-b:focus-visible{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._bE-rX>._HS0-b+._ajMt-{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._bE-rX>._HS0-b[data-state=open]+._ajMt-{transform:rotate(-180deg) translateY(50%)}._bE-rX>._HS0-b[aria-disabled=true]{color:#74777a;cursor:not-allowed}._bE-rX>._HS0-b[aria-disabled=true]+._ajMt-{fill:#515559;opacity:.4}._qfso6>[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}._qfso6>[data-radix-popper-content-wrapper] [data-radix-popper-content-wrapper]{transform:translateZ(0)!important}._A5PnH{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)}._A5PnH ._uV0R1{height:100%;overflow-y:scroll}._A5PnH._YrjGi{margin-left:30px;opacity:0}._A5PnH._U6OLY{margin-left:-30px}._Ec5s7{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%}._Ec5s7._tNjvO{cursor:unset}._Ec5s7 ._ddHCN{fill:#32363a;margin-right:4px}._Ec5s7:focus,._Ec5s7:hover:not(._Ec5s7._tNjvO){background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._Ec5s7[aria-disabled=true]{cursor:not-allowed;opacity:.65}._Ec5s7._k-vkb{padding-right:32px}._Ec5s7._k-vkb ._ajMt-{position:absolute;height:100%;right:3px;fill:#515559}._Ec5s7._DOM1n{pointer-events:none}._D01Wm{position:-webkit-sticky;position:sticky;top:0;background-color:#fff;border-bottom:1px solid #e8e8e8}._D01Wm._PeR-J{padding-top:52px}._rQhNK{pointer-events:none;position:fixed;left:0;top:0;transition:width .35s;min-width:200px;width:var(--mask-width);max-width:350px}._KQc8p{position:absolute;padding:8px;border-radius:4px 4px 0 0;pointer-events:auto;opacity:1;width:100%;transition:opacity .35s,margin-left .35s}._KQc8p._U6OLY{opacity:0}._KQc8p._U6OLY>._Z35sr{margin-left:-30px}._KQc8p._YrjGi{opacity:0}._KQc8p._YrjGi>._Z35sr{margin-left:30px}._KQc8p>._Z35sr{transition:margin-left .35s;width:100%}._KQc8p._DOM1n{pointer-events:none}body.keyboard-user ._Ec5s7: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 };
|
|
@@ -64,6 +64,7 @@ const PhoneNumberInput = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
64
64
|
const phoneNumber = parsePhoneNumber(value, countryCode);
|
|
65
65
|
internationalNumber = phoneNumber.number;
|
|
66
66
|
isValidLength = phoneNumber.isPossible();
|
|
67
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
67
68
|
} catch (e) {
|
|
68
69
|
// `parsePhoneNumber` throws an error if the inputs are invalid.
|
|
69
70
|
}
|
|
@@ -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 = "._sX1h5 input{padding-left:76px!important}._65RDY input{background-color:#e5e5e5!important;color:#9d9fa1!important;cursor:not-allowed!important;-webkit-text-fill-color:#9d9fa1}._65RDY input::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._65RDY input::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._jgOJF{position:absolute!important;left:4px;right:4px;bottom:4px;z-index:100;width:67px;height:28px!important;border-radius:4px}._jgOJF,._jgOJF._65RDY:hover{background-color:transparent!important}._jgOJF:hover{background-color:rgba(50,54,58,.08)!important}._jgOJF:active{background-color:rgba(50,54,58,.11)!important}._jgOJF svg{top:2px!important}._8SQtM{position:relative}._F6-zo{position:absolute;top:18px;left:12px;line-height:0;font-size:14px;color:#32363a;z-index:101;pointer-events:none}";
|
|
4
|
+
var styles = {"input":"_sX1h5","disabled":"_65RDY","dropdown":"_jgOJF","container":"_8SQtM","countryCode":"_F6-zo"};
|
|
5
|
+
var stylesheet="._sX1h5 input{padding-left:76px!important}._65RDY input{background-color:#e5e5e5!important;color:#9d9fa1!important;cursor:not-allowed!important;-webkit-text-fill-color:#9d9fa1}._65RDY input::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._65RDY input::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._jgOJF{position:absolute!important;left:4px;right:4px;bottom:4px;z-index:100;width:67px;height:28px!important;border-radius:4px}._jgOJF,._jgOJF._65RDY:hover{background-color:transparent!important}._jgOJF:hover{background-color:rgba(50,54,58,.08)!important}._jgOJF:active{background-color:rgba(50,54,58,.11)!important}._jgOJF svg{top:2px!important}._8SQtM{position:relative}._F6-zo{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 = "._bhL0S{box-shadow:inset 0 0 0 1px #b00!important}._FHEOH{margin-right:7px}._uXtym{background-color:rgba(11,110,208,.08);font-weight:500}";
|
|
4
|
+
var styles = {"isInvalid":"_bhL0S","checkbox":"_FHEOH","selectedItem":"_uXtym"};
|
|
5
|
+
var stylesheet="._bhL0S{box-shadow:inset 0 0 0 1px #b00!important}._FHEOH{margin-right:7px}._uXtym{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 = "._mhQ5l{display:flex}._V-Wwi{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._V-Wwi._8Kno7{background-color:#fff}._V-Wwi._8Kno7._KlwPO:not(._V-Wwi._8Kno7._-GMwr),._V-Wwi._8Kno7._ohOPO.focus-visible:not(._ta0fV),._V-Wwi._8Kno7._ohOPO:focus-visible:not(._ta0fV),._V-Wwi._-YNIh{background-color:#0b6ed0}._V-Wwi._-YNIh._-GMwr._KlwPO,._V-Wwi._-YNIh._ta0fV._-GMwr,._V-Wwi._-YNIh._ta0fV._ohOPO{opacity:.4}._Hn-NG{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._Hn-NG:focus{z-index:1}._2qI-r{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}._2qI-r svg{margin-left:1px}._2qI-r._8Kno7{background-color:#0b6ed0;border-color:transparent}._2qI-r._8Kno7 svg{fill:#fff!important}._2qI-r._8Kno7:not(._5j5Wq):hover{background-color:#085caf!important}._2qI-r._8Kno7:not(._5j5Wq):active{background-color:#0854a1!important}._2qI-r._8Kno7._5j5Wq{opacity:.4}._2qI-r._8Kno7._5j5Wq svg{background-color:transparent}._2qI-r._-YNIh{border-color:#0b6ed0;background-color:#fff}._2qI-r._-YNIh svg{fill:#0b6ed0!important}._2qI-r._-YNIh:not(._5j5Wq):hover{background-color:#eef5fc!important}._2qI-r._-YNIh:not(._5j5Wq):active{background-color:#e1edf9!important}._2qI-r._-YNIh._5j5Wq{opacity:.4}._2qI-r._-YNIh._5j5Wq svg{background-color:transparent}._bUSJO{width:260px}";
|
|
4
|
+
var styles = {"container":"_mhQ5l","divider":"_V-Wwi","primary":"_8Kno7","mainButtonFocus":"_ohOPO","mainButtonDisabled":"_ta0fV","dropdownButtonFocus":"_KlwPO","dropdownButtonDisabled":"_-GMwr","secondary":"_-YNIh","mainButton":"_Hn-NG","dropdownButton":"_2qI-r","disabled":"_5j5Wq","dropdownOption":"_bUSJO"};
|
|
5
|
+
var stylesheet="._mhQ5l{display:flex}._V-Wwi{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._V-Wwi._8Kno7{background-color:#fff}._V-Wwi._8Kno7._KlwPO:not(._V-Wwi._8Kno7._-GMwr),._V-Wwi._8Kno7._ohOPO.focus-visible:not(._ta0fV),._V-Wwi._8Kno7._ohOPO:focus-visible:not(._ta0fV),._V-Wwi._-YNIh{background-color:#0b6ed0}._V-Wwi._-YNIh._-GMwr._KlwPO,._V-Wwi._-YNIh._ta0fV._-GMwr,._V-Wwi._-YNIh._ta0fV._ohOPO{opacity:.4}._Hn-NG{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._Hn-NG:focus{z-index:1}._2qI-r{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}._2qI-r svg{margin-left:1px}._2qI-r._8Kno7{background-color:#0b6ed0;border-color:transparent}._2qI-r._8Kno7 svg{fill:#fff!important}._2qI-r._8Kno7:not(._5j5Wq):hover{background-color:#085caf!important}._2qI-r._8Kno7:not(._5j5Wq):active{background-color:#0854a1!important}._2qI-r._8Kno7._5j5Wq{opacity:.4}._2qI-r._8Kno7._5j5Wq svg{background-color:transparent}._2qI-r._-YNIh{border-color:#0b6ed0;background-color:#fff}._2qI-r._-YNIh svg{fill:#0b6ed0!important}._2qI-r._-YNIh:not(._5j5Wq):hover{background-color:#eef5fc!important}._2qI-r._-YNIh:not(._5j5Wq):active{background-color:#e1edf9!important}._2qI-r._-YNIh._5j5Wq{opacity:.4}._2qI-r._-YNIh._5j5Wq svg{background-color:transparent}._bUSJO{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 = "._AdfdV{display:inline-block;position:relative}._AdfdV ._m6guj{width:120px}._AdfdV ._m6guj ._amm8a._8NwPy{transform:rotate(-180deg)}._AdfdV ._m6guj ._amm8a._2MUFm{fill:#9d9fa1;opacity:.4}._AdfdV ._7HKlT>input:focus{box-shadow:none!important;border:1px solid #898989!important}._AdfdV ._amm8a{position:absolute;right:4px;bottom:4px;height:28px;width:28px}._AdfdV ._amm8a._8NwPy{transform:rotate(-180deg)}._PSaI-{width:120px}._PSaI- ._b3DsZ._ZuNQi{background-color:#efefef;border-radius:6px}";
|
|
4
|
+
var styles = {"timePickerContainer":"_AdfdV","input":"_m6guj","icon":"_amm8a","open":"_8NwPy","disabled":"_2MUFm","ignoreFocusStyle":"_7HKlT","timePickerFlyout":"_PSaI-","option":"_b3DsZ","exactMatch":"_ZuNQi"};
|
|
5
|
+
var stylesheet="._AdfdV{display:inline-block;position:relative}._AdfdV ._m6guj{width:120px}._AdfdV ._m6guj ._amm8a._8NwPy{transform:rotate(-180deg)}._AdfdV ._m6guj ._amm8a._2MUFm{fill:#9d9fa1;opacity:.4}._AdfdV ._7HKlT>input:focus{box-shadow:none!important;border:1px solid #898989!important}._AdfdV ._amm8a{position:absolute;right:4px;bottom:4px;height:28px;width:28px}._AdfdV ._amm8a._8NwPy{transform:rotate(-180deg)}._PSaI-{width:120px}._PSaI- ._b3DsZ._ZuNQi{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 = "._8YU0l{border-color:transparent;background-color:transparent;color:#515559;cursor:pointer}._QeUKR{background-color:rgba(50,54,58,.08)}._RF8r4{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._X4GwO{color:rgba(81,85,89,.4);cursor:not-allowed}._DaQ-V{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._rWzf9{color:#085caf;border-color:#085caf}._e2TuB,._rWzf9{background:rgba(11,110,208,.11)}._e2TuB{color:#0854a1;border-color:#0854a1}._Ia1rF{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._GTeLD{position:relative;display:inline-grid}._GTeLD svg{fill:currentColor}._GTeLD ._5fJO5{-webkit-appearance:none;-moz-appearance:none;appearance:none;grid-column:1;grid-row:1}._GTeLD ._5fJO5+._LLphH{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}._GTeLD ._5fJO5+._LLphH._DqEAi{padding:5px;max-width:36px;min-width:36px}._GTeLD ._5fJO5+._LLphH._pcikT{padding:0 16px}._GTeLD ._5fJO5+._LLphH._RKaPY{padding:0 16px 0 12px}._GTeLD ._5fJO5:hover+._LLphH{background-color:rgba(50,54,58,.08)}._GTeLD ._5fJO5:disabled+._LLphH{color:rgba(81,85,89,.4);cursor:not-allowed}._GTeLD ._5fJO5:active+._LLphH,._GTeLD ._5fJO5:focus:active+._LLphH{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._GTeLD ._5fJO5:checked+._LLphH{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._GTeLD ._5fJO5:checked:hover+._LLphH{background:rgba(11,110,208,.11);color:#085caf;border-color:#085caf}._GTeLD ._5fJO5:checked:disabled+._LLphH{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._GTeLD ._5fJO5:checked:active+._LLphH,._GTeLD ._5fJO5:checked:focus:active+._LLphH{background:rgba(11,110,208,.11);color:#0854a1;border-color:#0854a1}._KdPwT{display:inline-flex;position:relative}._KdPwT:before{content:\"\";border:1px solid #d9d9d9;border-radius:4px;position:absolute;top:0;bottom:0;right:0;left:0}._KdPwT>*{flex-shrink:0;flex-grow:0}._hRDlU{border:none;margin:0;padding:0}._hRDlU legend{padding:0;display:block;font-size:14px;margin-bottom:6px;color:#515559}._GTeLD ._5fJO5.focus-visible,._GTeLD ._5fJO5:focus-visible{outline:none}._GTeLD ._5fJO5.focus-visible+._LLphH,._GTeLD ._5fJO5:focus-visible+._LLphH{z-index:20;outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"default":"_8YU0l","hovered":"_QeUKR","pressed":"_RF8r4","disabled":"_X4GwO","selectedDefault":"_DaQ-V","selectedHovered":"_rWzf9","selectedPressed":"_e2TuB","selectedDisabled":"_Ia1rF","toggleContainer":"_GTeLD","toggleInput":"_5fJO5","toggleButton":"_LLphH","iconOnly":"_DqEAi","text":"_pcikT","iconText":"_RKaPY","toggleButtonGroup":"_KdPwT","toggleButtonGroupFieldset":"_hRDlU"};
|
|
5
|
+
var stylesheet="._8YU0l{border-color:transparent;background-color:transparent;color:#515559;cursor:pointer}._QeUKR{background-color:rgba(50,54,58,.08)}._RF8r4{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._X4GwO{color:rgba(81,85,89,.4);cursor:not-allowed}._DaQ-V{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._rWzf9{color:#085caf;border-color:#085caf}._e2TuB,._rWzf9{background:rgba(11,110,208,.11)}._e2TuB{color:#0854a1;border-color:#0854a1}._Ia1rF{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._GTeLD{position:relative;display:inline-grid}._GTeLD svg{fill:currentColor}._GTeLD ._5fJO5{-webkit-appearance:none;-moz-appearance:none;appearance:none;grid-column:1;grid-row:1}._GTeLD ._5fJO5+._LLphH{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}._GTeLD ._5fJO5+._LLphH._DqEAi{padding:5px;max-width:36px;min-width:36px}._GTeLD ._5fJO5+._LLphH._pcikT{padding:0 16px}._GTeLD ._5fJO5+._LLphH._RKaPY{padding:0 16px 0 12px}._GTeLD ._5fJO5:hover+._LLphH{background-color:rgba(50,54,58,.08)}._GTeLD ._5fJO5:disabled+._LLphH{color:rgba(81,85,89,.4);cursor:not-allowed}._GTeLD ._5fJO5:active+._LLphH,._GTeLD ._5fJO5:focus:active+._LLphH{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._GTeLD ._5fJO5:checked+._LLphH{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._GTeLD ._5fJO5:checked:hover+._LLphH{background:rgba(11,110,208,.11);color:#085caf;border-color:#085caf}._GTeLD ._5fJO5:checked:disabled+._LLphH{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._GTeLD ._5fJO5:checked:active+._LLphH,._GTeLD ._5fJO5:checked:focus:active+._LLphH{background:rgba(11,110,208,.11);color:#0854a1;border-color:#0854a1}._KdPwT{display:inline-flex;position:relative}._KdPwT:before{content:\"\";border:1px solid #d9d9d9;border-radius:4px;position:absolute;top:0;bottom:0;right:0;left:0}._KdPwT>*{flex-shrink:0;flex-grow:0}._hRDlU{border:none;margin:0;padding:0}._hRDlU legend{padding:0;display:block;font-size:14px;margin-bottom:6px;color:#515559}._GTeLD ._5fJO5.focus-visible,._GTeLD ._5fJO5:focus-visible{outline:none}._GTeLD ._5fJO5.focus-visible+._LLphH,._GTeLD ._5fJO5:focus-visible+._LLphH{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
|
@@ -1,16 +1,12 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
|
|
3
1
|
import { AllHTMLAttributes } from 'react';
|
|
4
2
|
import type { ChangeEvent } from 'react';
|
|
5
3
|
import { ChangeEventHandler } from 'react';
|
|
6
4
|
import { ComputedPlacement } from '@popperjs/core';
|
|
7
5
|
import { CountryCode } from 'libphonenumber-js';
|
|
8
6
|
import { CSSProperties } from 'react';
|
|
9
|
-
import { DetailedHTMLProps } from 'react';
|
|
10
7
|
import { E164Number } from 'libphonenumber-js';
|
|
11
8
|
import { FocusEventHandler } from 'react';
|
|
12
9
|
import { FormEvent } from 'react';
|
|
13
|
-
import { FormHTMLAttributes } from 'react';
|
|
14
10
|
import { FunctionComponent } from 'react';
|
|
15
11
|
import type { InputHTMLAttributes } from 'react';
|
|
16
12
|
import { MouseEventHandler } from 'react';
|
|
@@ -330,6 +326,10 @@ declare interface CheckboxRegisterProps<V extends Values> {
|
|
|
330
326
|
ref: RefCallback<HTMLInputElement>;
|
|
331
327
|
}
|
|
332
328
|
|
|
329
|
+
declare type ChildrenType = React_2.ReactNode & React_2.RefAttributes<HTMLElement>;
|
|
330
|
+
|
|
331
|
+
declare type ChildrenType_2 = React_2.ReactNode & React_2.RefAttributes<HTMLElement>;
|
|
332
|
+
|
|
333
333
|
export declare const CollapsibleSearchInput: React_2.ForwardRefExoticComponent<CollapsibleSearchInputProps & React_2.RefAttributes<HTMLSpanElement>>;
|
|
334
334
|
|
|
335
335
|
export declare interface CollapsibleSearchInputProps {
|
|
@@ -378,7 +378,7 @@ export declare interface CollectionGridItemProps {
|
|
|
378
378
|
*/
|
|
379
379
|
asChild?: boolean;
|
|
380
380
|
/** Content to display inside of the grid item */
|
|
381
|
-
children?:
|
|
381
|
+
children?: ChildrenType;
|
|
382
382
|
/** Added to the containing `div` */
|
|
383
383
|
'data-testid'?: string;
|
|
384
384
|
}
|
|
@@ -695,6 +695,8 @@ export declare interface FilterAnchorProps extends Omit<AllHTMLAttributes<HTMLBu
|
|
|
695
695
|
className?: string;
|
|
696
696
|
}
|
|
697
697
|
|
|
698
|
+
declare type FormProps = React.ComponentPropsWithoutRef<'form'>;
|
|
699
|
+
|
|
698
700
|
declare type HandleSubmit = (onSubmit: OnSubmit) => (event: FormEvent<HTMLFormElement>) => Promise<void>;
|
|
699
701
|
|
|
700
702
|
export declare const HStack: React_2.ForwardRefExoticComponent<HStackProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
@@ -773,7 +775,7 @@ export declare const LayoutGridItem: React_2.ForwardRefExoticComponent<LayoutGri
|
|
|
773
775
|
|
|
774
776
|
export declare interface LayoutGridItemProps {
|
|
775
777
|
/** Content to display inside of the grid item */
|
|
776
|
-
children?:
|
|
778
|
+
children?: ChildrenType_2;
|
|
777
779
|
/** Assigns a grid item to one of the areas defined in the parent `LayoutGrid`'s `areas` prop */
|
|
778
780
|
area?: React_2.CSSProperties['gridArea'];
|
|
779
781
|
/** Replaces the `LayoutGridItem`'s default element with its single child and merges `LayoutGridItem`'s props and behavior into the child's. This is especially useful if your grid item should be represented by a semantic HTML element. Use this prop with caution, as any future changes we make to the component may override the child's props.
|
|
@@ -1356,7 +1358,7 @@ export declare interface ToggleButtonProps {
|
|
|
1356
1358
|
}
|
|
1357
1359
|
|
|
1358
1360
|
export declare const Tooltip: React_2.ForwardRefExoticComponent<Omit<TooltipProps_2, "lightTheme"> & {
|
|
1359
|
-
children: TooltipProps_2[
|
|
1361
|
+
children: TooltipProps_2["children"];
|
|
1360
1362
|
} & React_2.RefAttributes<HTMLDivElement>>;
|
|
1361
1363
|
|
|
1362
1364
|
export declare type TooltipProps = Omit<TooltipProps_2, 'lightTheme'> & {
|
|
@@ -1412,20 +1414,20 @@ declare interface TooltipProps_2 extends Omit<React_2.AllHTMLAttributes<HTMLDivE
|
|
|
1412
1414
|
}
|
|
1413
1415
|
|
|
1414
1416
|
export declare function useForm<V extends Values>({ initialValues, validateField, }: UseFormOptions<V>): {
|
|
1415
|
-
Form: (props:
|
|
1417
|
+
Form: (props: FormProps) => JSX.Element;
|
|
1416
1418
|
register: {
|
|
1417
1419
|
(name: keyof V, options: {
|
|
1418
|
-
type:
|
|
1420
|
+
type: "text" | "email" | "password";
|
|
1419
1421
|
}): TextRegisterProps<V>;
|
|
1420
1422
|
(name: keyof V, options: {
|
|
1421
|
-
type:
|
|
1423
|
+
type: "checkbox";
|
|
1422
1424
|
}): CheckboxRegisterProps<V>;
|
|
1423
1425
|
(name: keyof V, options: {
|
|
1424
|
-
type:
|
|
1426
|
+
type: "radio";
|
|
1425
1427
|
radioValue: string;
|
|
1426
1428
|
}): RadioRegisterProps<V>;
|
|
1427
1429
|
(name: keyof V, options: {
|
|
1428
|
-
type:
|
|
1430
|
+
type: "custom";
|
|
1429
1431
|
}): CustomRegisterProps<V>;
|
|
1430
1432
|
};
|
|
1431
1433
|
formValues: V;
|