@qualtrics/ui-react 2.71.0 → 2.73.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist/__shared/cjs/{index-f0a0a434.js → index-d0f07e5f.js} +3 -3
- package/dist/__shared/cjs/{index-a9b9b719.js → index-eb660444.js} +418 -254
- package/dist/components/Accordion/Accordion.js +1 -0
- package/dist/components/Accordion/Accordion2.js +3 -3
- package/dist/components/Accordion/AccordionHeader.js +1 -0
- package/dist/components/Accordion/AccordionPanel.js +1 -0
- package/dist/components/Accordion/AccordionSection.js +1 -0
- package/dist/components/Banner/Banner.js +8 -22
- package/dist/components/Banner/BannerBody.js +11 -0
- package/dist/components/Banner/BannerFooter.js +11 -0
- package/dist/components/Banner/BannerTitle.js +11 -0
- package/dist/components/Banner/index.js +4 -1
- package/dist/components/Button/Button.js +3 -3
- package/dist/components/Button/Button2.js +1 -0
- package/dist/components/ButtonGroup/ButtonGroup.js +1 -0
- package/dist/components/ButtonGroup/ButtonGroup2.js +3 -3
- package/dist/components/Checkbox/Checkbox.js +1 -0
- package/dist/components/Checkbox/Checkbox2.js +3 -3
- package/dist/components/Checkbox/CheckboxField.js +1 -0
- package/dist/components/ColorPicker/ColorPicker.js +8 -8
- package/dist/components/ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/ColorPicker/ColorPickerFlyout.js +1 -0
- package/dist/components/ColorPicker/Palette.js +1 -0
- package/dist/components/ColorPicker/Saturation.js +31 -20
- package/dist/components/Combobox/Combobox.js +1 -0
- package/dist/components/Combobox/Combobox2.js +3 -3
- package/dist/components/Combobox/ComboboxHeader.js +1 -0
- package/dist/components/Combobox/ComboboxIcon.js +1 -0
- package/dist/components/Combobox/ComboboxInput.js +1 -0
- package/dist/components/Combobox/ComboboxList.js +1 -0
- package/dist/components/Combobox/ComboboxOption.js +1 -0
- package/dist/components/ConfigPane/ConfigPane2.js +3 -3
- package/dist/components/Divider/Divider.js +1 -0
- package/dist/components/Divider/Divider2.js +3 -3
- package/dist/components/Dropdown/Dropdown.js +1 -0
- package/dist/components/Dropdown/Dropdown2.js +3 -3
- package/dist/components/Dropdown/DropdownButton.js +1 -0
- package/dist/components/Dropdown/DropdownHeader.js +1 -0
- package/dist/components/Dropdown/DropdownList.js +1 -0
- package/dist/components/Dropdown/DropdownOption.js +1 -0
- package/dist/components/Dropdown/DropdownSearch.js +1 -0
- package/dist/components/FilePicker/FilePicker.js +1 -0
- package/dist/components/FilePicker/FilePicker2.js +3 -3
- package/dist/components/FormField/Caption.js +3 -3
- package/dist/components/FormField/ErrorText.js +1 -0
- package/dist/components/FormField/FormField.js +1 -0
- package/dist/components/FormField/FormField2.js +3 -3
- package/dist/components/FormField/HelperText.js +1 -0
- package/dist/components/FormField/ReadOnlyText.js +1 -0
- package/dist/components/FullScreenTakeover/FullScreenTakeover.js +1 -0
- package/dist/components/FullScreenTakeover/FullScreenTakeover2.js +3 -3
- package/dist/components/Icon/Icon.js +1 -0
- package/dist/components/IconButton/IconButton.js +2 -2
- package/dist/components/IconButton/IconButton2.js +3 -3
- package/dist/components/InlineInput/InlineInput.js +1 -0
- package/dist/components/InlineInput/InlineInput2.js +3 -3
- package/dist/components/Input/Input.js +1 -0
- package/dist/components/Input/Input2.js +3 -3
- package/dist/components/Input/InputField.js +1 -0
- package/dist/components/InputGroup/InputGroup.js +1 -0
- package/dist/components/InputGroup/InputGroup2.js +3 -3
- package/dist/components/InputGroup/InputGroupAddon.js +1 -0
- package/dist/components/Label/Label.js +1 -0
- package/dist/components/Label/Label2.js +3 -3
- package/dist/components/Link/Link.js +1 -0
- package/dist/components/Link/Link2.js +3 -3
- package/dist/components/LoadingSpinner/LoadingSpinner.js +1 -0
- package/dist/components/LoadingSpinner/LoadingSpinner2.js +3 -3
- package/dist/components/LogicEditor/LogicEditor.js +1 -0
- package/dist/components/LogicEditor/LogicEditor2.js +3 -3
- package/dist/components/Modal/Modal.js +5 -55
- package/dist/components/Modal/Modal2.js +3 -3
- package/dist/components/Modal/ModalBody.js +20 -0
- package/dist/components/Modal/ModalFooter.js +20 -0
- package/dist/components/Modal/ModalHeader.js +40 -0
- package/dist/components/Modal/index.js +4 -1
- package/dist/components/NewMenu/BaseMenu.js +1 -0
- package/dist/components/NewMenu/NewMenu.js +3 -3
- package/dist/components/NewMenu/parts/ArrowNav/ArrowNav.js +1 -0
- package/dist/components/NewMenu/parts/MenuAnchor.js +1 -0
- package/dist/components/NewMenu/parts/MenuItem.js +1 -0
- package/dist/components/NewMenu/parts/MenuSearchBox.js +1 -0
- package/dist/components/NewMenu/parts/MenuSpinner.js +1 -0
- package/dist/components/NewMenu/parts/SubmenuAnchor.js +1 -0
- package/dist/components/NumberStepper/NumberStepper.js +1 -0
- package/dist/components/NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/NumberStepper/NumberStepperDecrement.js +1 -0
- package/dist/components/NumberStepper/NumberStepperIncrement.js +1 -0
- package/dist/components/NumberStepper/NumberStepperInput.js +1 -0
- package/dist/components/PageLayout/MainContent.js +1 -0
- package/dist/components/PageLayout/PageContainer.js +1 -0
- package/dist/components/PageLayout/PageHeader.js +1 -0
- package/dist/components/PageLayout/PageLayout.js +3 -3
- package/dist/components/Pagination/Pagination.js +1 -0
- package/dist/components/Pagination/Pagination2.js +3 -3
- package/dist/components/Pagination/PaginationNextButton.js +1 -0
- package/dist/components/Pagination/PaginationPageInput.js +1 -0
- package/dist/components/Pagination/PaginationPreviousButton.js +1 -0
- package/dist/components/Popover/Popover.js +1 -0
- package/dist/components/Popover/Popover2.js +3 -3
- package/dist/components/QuickSearch/QuickSearch.js +1 -0
- package/dist/components/QuickSearch/QuickSearch2.js +3 -3
- package/dist/components/QuickSearch/QuickSearchInput.js +1 -0
- package/dist/components/Radio/Radio.js +1 -0
- package/dist/components/Radio/Radio2.js +3 -3
- package/dist/components/Radio/RadioGroup.js +1 -0
- package/dist/components/Radio/RadioOption.js +1 -0
- package/dist/components/SearchInput/SearchInput.js +1 -0
- package/dist/components/SearchInput/SearchInput2.js +3 -3
- package/dist/components/SidebarNav/ExpandCollapseButton.js +1 -0
- package/dist/components/SidebarNav/SidebarNav.js +1 -0
- package/dist/components/SidebarNav/SidebarNav2.js +3 -3
- package/dist/components/SidebarNav/SidebarNavLink.js +1 -0
- package/dist/components/Slider/RangeSlider.js +1 -0
- package/dist/components/Slider/Slider.js +1 -0
- package/dist/components/Slider/Slider2.js +3 -3
- package/dist/components/Switch/Switch.js +1 -0
- package/dist/components/Switch/Switch2.js +3 -3
- package/dist/components/Switch/SwitchField.js +1 -0
- package/dist/components/Table/Table.js +1 -0
- package/dist/components/Table/Table2.js +3 -3
- package/dist/components/Table/TableBody.js +1 -0
- package/dist/components/Table/TableCell.js +1 -0
- package/dist/components/Table/TableHead.js +1 -0
- package/dist/components/Table/TableHeaderCell.js +1 -0
- package/dist/components/Table/TableRow.js +1 -0
- package/dist/components/Tabs/Tab.js +1 -0
- package/dist/components/Tabs/TabList.js +1 -0
- package/dist/components/Tabs/TabPanel.js +1 -0
- package/dist/components/Tabs/Tabs.js +1 -0
- package/dist/components/Tabs/Tabs2.js +3 -3
- package/dist/components/Tooltip/Tooltip.js +1 -0
- package/dist/components/Tooltip/Tooltip2.js +3 -3
- package/dist/components/UIProvider/A11yHelpersContext.js +3 -1
- package/dist/components/deprecated_ColorPicker/ColorPicker.js +1 -0
- package/dist/components/deprecated_ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/deprecated_NumberStepper/NumberStepper.js +1 -0
- package/dist/components/deprecated_NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/deprecated_NumberStepper/NumberStepperDecrement.js +1 -0
- package/dist/components/deprecated_NumberStepper/NumberStepperIncrement.js +1 -0
- package/dist/components/deprecated_NumberStepper/NumberStepperInput.js +1 -0
- package/dist/components/deprecated_Tabs/Tab.js +1 -0
- package/dist/components/deprecated_Tabs/Tabs.js +1 -0
- package/dist/components/deprecated_Tabs/Tabs2.js +3 -3
- package/dist/components/deprecated_Toolbar/IconButtonWithLabel.js +1 -0
- package/dist/components/deprecated_Toolbar/Toolbar.js +1 -0
- package/dist/components/deprecated_Toolbar/Toolbar2.js +3 -3
- package/dist/components/deprecated_Toolbar/ToolbarPanels.js +2 -0
- package/dist/components/deprecated_Toolbar/ToolbarTab.js +1 -0
- package/dist/components/deprecated_Toolbar/ToolbarTabs.js +1 -0
- 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.d.ts +12 -9
- package/dist/index.es.js +9 -3
- package/dist/index.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTable.js +1 -0
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTableCell.js +1 -0
- package/dist/next/AdvancedTable/AdvancedTableCheckbox.js +1 -0
- package/dist/next/AdvancedTable/AdvancedTableColumnHeader.js +1 -0
- package/dist/next/AdvancedTable/AdvancedTableColumnHeaders.js +1 -0
- package/dist/next/AdvancedTable/AdvancedTableDragPreview.js +1 -0
- package/dist/next/AdvancedTable/AdvancedTableHiddenDescription.js +1 -0
- package/dist/next/AdvancedTable/AdvancedTablePagination.js +1 -0
- package/dist/next/AdvancedTable/AdvancedTableRow.js +1 -0
- package/dist/next/AdvancedTable/AdvancedTableRowExpandButton.js +1 -0
- package/dist/next/Chat/Chat.js +1 -0
- package/dist/next/Chat/ChatInput.js +1 -0
- package/dist/next/Chat/ChatMessage.js +1 -0
- package/dist/next/Chat/ChatMessageList.js +1 -0
- package/dist/next/Chat/ChatMessageText.js +1 -0
- package/dist/next/Chat/Loader.js +1 -0
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput.js +1 -0
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInputIconButton.js +1 -0
- package/dist/next/CollectionGrid/CollectionGrid.js +1 -0
- package/dist/next/CollectionGrid/CollectionGridItem.js +1 -0
- package/dist/next/Combobox/Combobox2.js +3 -3
- package/dist/next/Combobox/ComboboxInput.js +1 -0
- package/dist/next/Drawer/Drawer.js +1 -0
- package/dist/next/Drawer/Drawer2.js +3 -3
- package/dist/next/FilterAnchor/FilterAnchor.js +1 -0
- package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
- package/dist/next/Form/FormFields/FormFieldWrapper.js +1 -0
- package/dist/next/Form/FormFields/InputField.js +3 -3
- package/dist/next/Indicator/Indicator.js +1 -0
- package/dist/next/Indicator/Indicator2.js +3 -3
- package/dist/next/Input/Input.js +38 -5
- package/dist/next/Input/Input2.js +3 -3
- package/dist/next/LayoutGrid/LayoutGrid.js +1 -0
- package/dist/next/LayoutGrid/LayoutGridItem.js +1 -0
- package/dist/next/LoadingSpinner/LoadingSpinner.js +1 -0
- package/dist/next/LoadingSpinner/LoadingSpinner2.js +3 -3
- package/dist/next/Menu/Hooks/usePaneSearch.js +10 -0
- package/dist/next/Menu/Menu.js +1 -0
- package/dist/next/Menu/Menu2.js +3 -3
- package/dist/next/Menu/MenuButton.js +1 -0
- package/dist/next/Menu/MenuItem.js +1 -0
- package/dist/next/Menu/MenuPane.js +1 -0
- package/dist/next/Menu/MenuSearch.js +1 -0
- package/dist/next/Menu/PaneChildren.js +1 -0
- package/dist/next/Menu/SubMenu.js +1 -0
- package/dist/next/Pagination/Pagination.js +1 -0
- package/dist/next/PhoneNumberInput/PhoneNumberInput.js +1 -0
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
- package/dist/next/Select/Select.js +1 -0
- package/dist/next/Select/Select2.js +3 -3
- package/dist/next/Select/SelectButton.js +1 -0
- package/dist/next/Select/SelectItem.js +1 -0
- package/dist/next/Select/SelectPane.js +1 -0
- package/dist/next/Select/SelectedItems.js +1 -0
- package/dist/next/Select/SubSelect.js +1 -0
- package/dist/next/SplitButton/SplitButton.js +1 -0
- package/dist/next/SplitButton/SplitButton2.js +3 -3
- package/dist/next/SplitButton/SplitButtonOption.js +1 -0
- package/dist/next/Stack/HStack.js +1 -0
- package/dist/next/Stack/Stack.js +1 -0
- package/dist/next/Stack/StackItem.js +1 -0
- package/dist/next/Stack/VStack.js +1 -0
- package/dist/next/TimePicker/TimeDropdown.js +1 -0
- package/dist/next/TimePicker/TimeInput.js +1 -0
- package/dist/next/TimePicker/TimePicker.js +1 -0
- package/dist/next/TimePicker/TimePicker2.js +3 -3
- package/dist/next/TimePicker/TimePickerIcon.js +1 -0
- package/dist/next/ToggleButton/ToggleButton.js +6 -3
- package/dist/next/ToggleButton/ToggleButtonGroup.js +1 -0
- package/dist/next/ToggleButton/styles.js +3 -3
- package/dist/next/Tooltip/Tooltip.js +1 -0
- package/dist/next/Typography/Typography.js +1 -0
- package/dist/next/index.d.ts +20 -4
- package/dist/next/index.js +118 -50
- package/dist/utils/Flyout/Flyout.js +1 -0
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/dist/utils/Flyout/FlyoutHeader.js +1 -0
- package/dist/utils/Flyout/FlyoutOption.js +1 -0
- package/dist/utils/GridChildrenWrapper/GridChildrenWrapper.js +1 -0
- package/dist/utils/Text/Text.js +1 -0
- package/dist/utils/TextOverflowTooltip/TextOverflowTooltip.js +1 -0
- package/next/package.json +1 -1
- package/package.json +3 -3
|
@@ -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 = "._xQNFU :after{background-color:#515559!important}._14YLd>input:focus{box-shadow:none!important;border:1px solid #898989!important}._xDKM9{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}._xDKM9 ._scgfo ._WBcYX{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}._xDKM9 ._scgfo:first-child ._11Xil{display:none}._xDKM9 ._TaM5j{display:flex;align-items:center;min-height:40px;padding:10px 12px;font-size:14px;color:#32363a;word-break:break-word;outline:none;cursor:pointer}._xDKM9 ._TaM5j:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._xDKM9 ._TaM5j:hover._h7u7k{background-color:#e4effa}._xDKM9 ._TaM5j._h7u7k{background-color:#ebf3fb;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._xDKM9 ._TaM5j:active:not(._h7u7k){background-color:#e8e9e9}";
|
|
4
|
+
var styles = {"loadingSpinner":"_xQNFU","ignoreFocusStyle":"_14YLd","flyout":"_xDKM9","group":"_scgfo","header":"_WBcYX","divider":"_11Xil","option":"_TaM5j","selected":"_h7u7k"};
|
|
5
|
+
var stylesheet="._xQNFU :after{background-color:#515559!important}._14YLd>input:focus{box-shadow:none!important;border:1px solid #898989!important}._xDKM9{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}._xDKM9 ._scgfo ._WBcYX{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}._xDKM9 ._scgfo:first-child ._11Xil{display:none}._xDKM9 ._TaM5j{display:flex;align-items:center;min-height:40px;padding:10px 12px;font-size:14px;color:#32363a;word-break:break-word;outline:none;cursor:pointer}._xDKM9 ._TaM5j:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._xDKM9 ._TaM5j:hover._h7u7k{background-color:#e4effa}._xDKM9 ._TaM5j._h7u7k{background-color:#ebf3fb;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._xDKM9 ._TaM5j:active:not(._h7u7k){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 };
|
|
@@ -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 = "._35xk2{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}._smjDA{visibility:hidden}._4pQLi{position:fixed}._JJvIJ{display:flex;justify-content:space-between;align-items:start;line-height:20px;font-size:16px;padding-bottom:12px}._zSXvW{padding-top:8px}._wkcjk{margin-left:12px}";
|
|
4
|
+
var styles = {"drawer":"_35xk2","hidden":"_smjDA","anchoredToBody":"_4pQLi","header":"_JJvIJ","title":"_zSXvW","closeButton":"_wkcjk"};
|
|
5
|
+
var stylesheet="._35xk2{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}._smjDA{visibility:hidden}._4pQLi{position:fixed}._JJvIJ{display:flex;justify-content:space-between;align-items:start;line-height:20px;font-size:16px;padding-bottom:12px}._zSXvW{padding-top:8px}._wkcjk{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 = "._cxms8{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}._cxms8:hover:not(._m9ARb){background-color:rgba(50,54,58,.08)}._cxms8:hover:not(._m9ARb)._VnWD7{border-color:#085caf;background-color:rgba(11,110,208,.04)}._cxms8:hover:not(._m9ARb)._VnWD7 ._rdsX8{color:#32363a}._cxms8:hover:not(._m9ARb)._VnWD7 ._-mAud{fill:#32363a}._cxms8:hover:not(._m9ARb)._VnWD7 ._-03Zy{fill:#085caf}._cxms8:hover:not(._m9ARb)._VnWD7 ._mPDF3{background-color:rgba(11,110,208,.11)}._cxms8:hover:not(._m9ARb)._VnWD7 ._mPDF3 ._XvqMA{color:#085caf}._cxms8:active:not(._m9ARb){background-color:#e8e9e9}._cxms8:active:not(._m9ARb)._VnWD7{background-color:rgba(11,110,208,.11);border-color:#0854a1}._cxms8:active:not(._m9ARb)._VnWD7 ._-03Zy{fill:#0854a1}._cxms8:active:not(._m9ARb)._VnWD7 ._mPDF3{background-color:rgba(11,110,208,.11)}._cxms8:active:not(._m9ARb)._VnWD7 ._mPDF3 ._XvqMA{color:#0854a1}._cxms8._m9ARb{background-color:#fafafa;border-color:#e5e5e5;cursor:not-allowed}._cxms8._VnWD7{border-color:#0b6ed0}._-mAud{fill:#515559;margin-right:4px}._rdsX8{max-width:180px;margin-right:3px;color:#515559;fill:#515559;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._rdsX8+._mPDF3{margin-left:6px}._rdsX8._m9ARb{color:#74777a}._mPDF3{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}._XvqMA{color:#0b6ed0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._-03Zy{fill:#515559}._-03Zy._m9ARb,._-03Zy._m9ARb._VnWD7{fill:rgba(116,119,122,.4)}._-03Zy._VnWD7{fill:#0b6ed0}._-03Zy._dtcGp{transform:rotate(-180deg)}._cxms8.focus-visible,._cxms8:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"button":"_cxms8","disabled":"_m9ARb","selected":"_VnWD7","label":"_rdsX8","lockIcon":"_-mAud","chevronIcon":"_-03Zy","selectedFiltersContainer":"_mPDF3","selectedFilters":"_XvqMA","open":"_dtcGp"};
|
|
5
|
+
var stylesheet="._cxms8{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}._cxms8:hover:not(._m9ARb){background-color:rgba(50,54,58,.08)}._cxms8:hover:not(._m9ARb)._VnWD7{border-color:#085caf;background-color:rgba(11,110,208,.04)}._cxms8:hover:not(._m9ARb)._VnWD7 ._rdsX8{color:#32363a}._cxms8:hover:not(._m9ARb)._VnWD7 ._-mAud{fill:#32363a}._cxms8:hover:not(._m9ARb)._VnWD7 ._-03Zy{fill:#085caf}._cxms8:hover:not(._m9ARb)._VnWD7 ._mPDF3{background-color:rgba(11,110,208,.11)}._cxms8:hover:not(._m9ARb)._VnWD7 ._mPDF3 ._XvqMA{color:#085caf}._cxms8:active:not(._m9ARb){background-color:#e8e9e9}._cxms8:active:not(._m9ARb)._VnWD7{background-color:rgba(11,110,208,.11);border-color:#0854a1}._cxms8:active:not(._m9ARb)._VnWD7 ._-03Zy{fill:#0854a1}._cxms8:active:not(._m9ARb)._VnWD7 ._mPDF3{background-color:rgba(11,110,208,.11)}._cxms8:active:not(._m9ARb)._VnWD7 ._mPDF3 ._XvqMA{color:#0854a1}._cxms8._m9ARb{background-color:#fafafa;border-color:#e5e5e5;cursor:not-allowed}._cxms8._VnWD7{border-color:#0b6ed0}._-mAud{fill:#515559;margin-right:4px}._rdsX8{max-width:180px;margin-right:3px;color:#515559;fill:#515559;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._rdsX8+._mPDF3{margin-left:6px}._rdsX8._m9ARb{color:#74777a}._mPDF3{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}._XvqMA{color:#0b6ed0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._-03Zy{fill:#515559}._-03Zy._m9ARb,._-03Zy._m9ARb._VnWD7{fill:rgba(116,119,122,.4)}._-03Zy._VnWD7{fill:#0b6ed0}._-03Zy._dtcGp{transform:rotate(-180deg)}._cxms8.focus-visible,._cxms8: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 = "._DwQdB{margin:6px 0}._fi7tG{line-height:20px;color:#515559;display:flex;margin-bottom:4px}._egbsC{display:inline-block}._egbsC:has([aria-expanded=true]) ._fi7tG,._egbsC[focus-within] ._fi7tG{color:#0b6ed0}._egbsC:focus-within ._fi7tG,._egbsC:has([aria-expanded=true]) ._fi7tG{color:#0b6ed0}._egbsC:has(input:disabled) ._fi7tG{color:rgba(50,54,58,.4)}._egbsC:not(:has(input:disabled)) ._fi7tG{cursor:pointer}._txYCD{margin-top:4px}._txYCD:first-of-type{margin-top:6px}";
|
|
4
|
+
var styles = {"input":"_DwQdB","label":"_fi7tG","formFieldWrapper":"_egbsC","caption":"_txYCD"};
|
|
5
|
+
var stylesheet="._DwQdB{margin:6px 0}._fi7tG{line-height:20px;color:#515559;display:flex;margin-bottom:4px}._egbsC{display:inline-block}._egbsC:has([aria-expanded=true]) ._fi7tG,._egbsC[focus-within] ._fi7tG{color:#0b6ed0}._egbsC:focus-within ._fi7tG,._egbsC:has([aria-expanded=true]) ._fi7tG{color:#0b6ed0}._egbsC:has(input:disabled) ._fi7tG{color:rgba(50,54,58,.4)}._egbsC:not(:has(input:disabled)) ._fi7tG{cursor:pointer}._txYCD{margin-top:4px}._txYCD: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 = "._zf9z-{background-color:#f6f6f8;color:#2a2a2a;fill:#2a2a2a;border:1px solid #2a2a2a;border-radius:4px;position:relative;display:inline-flex;grid-gap:4px;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}._zf9z-._ECX1-{background-color:#fff4ef;border-color:#ba4f0d;color:#ba4f0d;fill:#ba4f0d}._zf9z-._0He5H{background-color:#fff4f3;border-color:#da1c3d;color:#da1c3d;fill:#da1c3d}._zf9z-._CQHms{background-color:#f3f8ef;border-color:#457d25;color:#457d25;fill:#457d25}._zf9z-._EX9aq{background-color:#f1f7fd;border-color:#006fd3;color:#006fd3;fill:#006fd3}._DJk3U{padding:1px 8px;max-height:24px}._dEqWS{padding:4px 8px}";
|
|
4
|
+
var styles = {"indicator":"_zf9z-","warning":"_ECX1-","error":"_0He5H","success":"_CQHms","informational":"_EX9aq","small":"_DJk3U","medium":"_dEqWS"};
|
|
5
|
+
var stylesheet="._zf9z-{background-color:#f6f6f8;color:#2a2a2a;fill:#2a2a2a;border:1px solid #2a2a2a;border-radius:4px;position:relative;display:inline-flex;grid-gap:4px;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}._zf9z-._ECX1-{background-color:#fff4ef;border-color:#ba4f0d;color:#ba4f0d;fill:#ba4f0d}._zf9z-._0He5H{background-color:#fff4f3;border-color:#da1c3d;color:#da1c3d;fill:#da1c3d}._zf9z-._CQHms{background-color:#f3f8ef;border-color:#457d25;color:#457d25;fill:#457d25}._zf9z-._EX9aq{background-color:#f1f7fd;border-color:#006fd3;color:#006fd3;fill:#006fd3}._DJk3U{padding:1px 8px;max-height:24px}._dEqWS{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 };
|
package/dist/next/Input/Input.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
|
-
import React__default, { forwardRef, useState, useMemo, useEffect, useRef } from 'react';
|
|
2
|
+
import React__default, { forwardRef, useState, useMemo, useEffect, useCallback, useRef } from 'react';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import inputClasses from './Input2.js';
|
|
5
5
|
import FormFieldWrapper from '../Form/FormFields/FormFieldWrapper.js';
|
|
@@ -45,6 +45,9 @@ const Input = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
45
45
|
allowDecimalNumbers = true,
|
|
46
46
|
min,
|
|
47
47
|
max,
|
|
48
|
+
onCompositionStart: externalOnCompositionStart,
|
|
49
|
+
onCompositionEnd: externalOnCompositionEnd,
|
|
50
|
+
onKeyDown: externalOnKeyDown,
|
|
48
51
|
...rest
|
|
49
52
|
} = _ref;
|
|
50
53
|
const {
|
|
@@ -53,6 +56,8 @@ const Input = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
53
56
|
} = useFormField();
|
|
54
57
|
const inputId = useId(id);
|
|
55
58
|
const [internalValue, setInternalValue] = useState(initialValue !== null && initialValue !== void 0 ? initialValue : '');
|
|
59
|
+
const [compositionLock, setCompositionLock] = useState(false);
|
|
60
|
+
const [composingValue, setComposingValue] = useState('');
|
|
56
61
|
const inputRegex = /^(?!-?\d+$).+$/;
|
|
57
62
|
const minValue = useMemo(() => min !== undefined && min !== null ? Number(min) : undefined, [min]);
|
|
58
63
|
const maxValue = useMemo(() => max !== undefined && max !== null ? Number(max) : undefined, [max]);
|
|
@@ -71,10 +76,14 @@ const Input = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
71
76
|
if (internalValue !== undefined) {
|
|
72
77
|
setInternalValue(e.target.value);
|
|
73
78
|
}
|
|
74
|
-
|
|
75
|
-
|
|
79
|
+
if (compositionLock) {
|
|
80
|
+
setComposingValue(e.target.value);
|
|
81
|
+
} else {
|
|
82
|
+
externalOnChange === null || externalOnChange === void 0 || externalOnChange(e);
|
|
83
|
+
registerProps === null || registerProps === void 0 || registerProps.onChange(e);
|
|
84
|
+
}
|
|
76
85
|
};
|
|
77
|
-
const onBlur = e => {
|
|
86
|
+
const onBlur = useCallback(e => {
|
|
78
87
|
if (!allowDecimalNumbers && e.target.value !== '') {
|
|
79
88
|
if (e.target.value === '-' && internalValue !== undefined) {
|
|
80
89
|
setInternalValue('');
|
|
@@ -87,6 +96,19 @@ const Input = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
87
96
|
}
|
|
88
97
|
externalOnBlur === null || externalOnBlur === void 0 || externalOnBlur(e);
|
|
89
98
|
registerProps === null || registerProps === void 0 || registerProps.onBlur(e);
|
|
99
|
+
}, [allowDecimalNumbers, internalValue, minValue, maxValue, externalOnBlur, registerProps]);
|
|
100
|
+
const onCompositionStart = e => {
|
|
101
|
+
setCompositionLock(true);
|
|
102
|
+
setComposingValue(e.target.value);
|
|
103
|
+
externalOnCompositionStart === null || externalOnCompositionStart === void 0 || externalOnCompositionStart(e);
|
|
104
|
+
};
|
|
105
|
+
const onCompositionEnd = e => {
|
|
106
|
+
setCompositionLock(false);
|
|
107
|
+
// Composition and Change events have differently typed target but in this case they always refer to the same input element
|
|
108
|
+
const syntheticEvent = e;
|
|
109
|
+
externalOnChange === null || externalOnChange === void 0 || externalOnChange(syntheticEvent);
|
|
110
|
+
registerProps === null || registerProps === void 0 || registerProps.onChange(syntheticEvent);
|
|
111
|
+
externalOnCompositionEnd === null || externalOnCompositionEnd === void 0 || externalOnCompositionEnd(e);
|
|
90
112
|
};
|
|
91
113
|
const leftAddOnRef = useRef(null);
|
|
92
114
|
const rightAddOnRef = useRef(null);
|
|
@@ -112,6 +134,13 @@ const Input = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
112
134
|
// Re-runs effect when the left add-on changes
|
|
113
135
|
rightAddOn // Re-runs effect when the right add-on changes
|
|
114
136
|
]);
|
|
137
|
+
const onKeyDown = e => {
|
|
138
|
+
if (compositionLock) {
|
|
139
|
+
e.stopPropagation();
|
|
140
|
+
return;
|
|
141
|
+
}
|
|
142
|
+
externalOnKeyDown === null || externalOnKeyDown === void 0 || externalOnKeyDown(e);
|
|
143
|
+
};
|
|
115
144
|
return /*#__PURE__*/React__default.createElement(FormFieldWrapper, {
|
|
116
145
|
inputId: inputId,
|
|
117
146
|
"data-testid": dataTestId,
|
|
@@ -126,9 +155,12 @@ const Input = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
126
155
|
id: inputId,
|
|
127
156
|
name: externalName !== null && externalName !== void 0 ? externalName : registerProps === null || registerProps === void 0 ? void 0 : registerProps.name,
|
|
128
157
|
type: allowDecimalNumbers ? type : 'text',
|
|
129
|
-
value: (_ref2 = externalValue !== null && externalValue !== void 0 ? externalValue : registerProps === null || registerProps === void 0 ? void 0 : registerProps.value) !== null && _ref2 !== void 0 ? _ref2 : internalValue,
|
|
158
|
+
value: compositionLock ? composingValue : (_ref2 = externalValue !== null && externalValue !== void 0 ? externalValue : registerProps === null || registerProps === void 0 ? void 0 : registerProps.value) !== null && _ref2 !== void 0 ? _ref2 : internalValue,
|
|
130
159
|
onChange: onChange,
|
|
131
160
|
onBlur: onBlur,
|
|
161
|
+
onCompositionStart: onCompositionStart,
|
|
162
|
+
onCompositionEnd: onCompositionEnd,
|
|
163
|
+
onKeyDown: onKeyDown,
|
|
132
164
|
className: inputClasses.input,
|
|
133
165
|
style: {
|
|
134
166
|
paddingLeft: "".concat(addOnWidths.leftAddOnWidth + ADD_ON_HORIZONTAL_PADDING, "px"),
|
|
@@ -138,5 +170,6 @@ const Input = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
138
170
|
ref: mergeRefs(ref, registerProps === null || registerProps === void 0 ? void 0 : registerProps.ref)
|
|
139
171
|
})), getAddOnComponent(rightAddOn, inputClasses.rightAddOn, rightAddOnRef)));
|
|
140
172
|
});
|
|
173
|
+
Input.displayName = 'Input';
|
|
141
174
|
|
|
142
175
|
export { Input as default };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var inputClasses = {"container":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._-IjAd{position:relative;display:inline-block;height:36px;width:100%}._UwpPO{width:100%;height:100%;padding:8px 12px;color:#32363a;caret-color:#32363a;font-size:14px;background-color:#fafafa;border:1px solid #898989;border-radius:4px;outline:none}._UwpPO:hover{cursor:pointer;background-color:#f5f5f5}._UwpPO:focus{background-color:#fafafa;cursor:text;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;outline:none;border-color:transparent}._UwpPO:disabled,._UwpPO[aria-disabled=true]{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._UwpPO:disabled::-moz-placeholder,._UwpPO[aria-disabled=true]::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._UwpPO:disabled::placeholder,._UwpPO[aria-disabled=true]::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._UwpPO:invalid,._UwpPO[aria-invalid=true]{border-color:#b00}._UwpPO:invalid:focus,._UwpPO[aria-invalid=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._UwpPO[type=number]{-moz-appearance:textfield}._UwpPO[type=number]::-webkit-inner-spin-button,._UwpPO[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._UwpPO::-moz-placeholder{color:#515559;opacity:1}._UwpPO::placeholder{color:#515559;opacity:1}._p3INf{pointer-events:none;color:#515559;fill:#515559}._bf2Ft{display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._aa3PC{color:#515559;font-size:16px}._KJt09{left:0;margin-left:6px}._KJt09,._VdQxl{pointer-events:none;color:#515559;fill:#515559;display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._VdQxl{right:0;margin-right:6px}";
|
|
4
|
+
var inputClasses = {"container":"_-IjAd","input":"_UwpPO","addOn":"_p3INf","addOnVerticalCenter":"_bf2Ft","addOnTextNode":"_aa3PC","leftAddOn":"_KJt09","rightAddOn":"_VdQxl"};
|
|
5
|
+
var stylesheet="._-IjAd{position:relative;display:inline-block;height:36px;width:100%}._UwpPO{width:100%;height:100%;padding:8px 12px;color:#32363a;caret-color:#32363a;font-size:14px;background-color:#fafafa;border:1px solid #898989;border-radius:4px;outline:none}._UwpPO:hover{cursor:pointer;background-color:#f5f5f5}._UwpPO:focus{background-color:#fafafa;cursor:text;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;outline:none;border-color:transparent}._UwpPO:disabled,._UwpPO[aria-disabled=true]{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._UwpPO:disabled::-moz-placeholder,._UwpPO[aria-disabled=true]::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._UwpPO:disabled::placeholder,._UwpPO[aria-disabled=true]::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._UwpPO:invalid,._UwpPO[aria-invalid=true]{border-color:#b00}._UwpPO:invalid:focus,._UwpPO[aria-invalid=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._UwpPO[type=number]{-moz-appearance:textfield}._UwpPO[type=number]::-webkit-inner-spin-button,._UwpPO[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._UwpPO::-moz-placeholder{color:#515559;opacity:1}._UwpPO::placeholder{color:#515559;opacity:1}._p3INf{pointer-events:none;color:#515559;fill:#515559}._bf2Ft{display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._aa3PC{color:#515559;font-size:16px}._KJt09{left:0;margin-left:6px}._KJt09,._VdQxl{pointer-events:none;color:#515559;fill:#515559;display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._VdQxl{right:0;margin-right:6px}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { inputClasses as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"spinnerContainer":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._RjOvu{position:relative;display:inline-block}._RjOvu._dEZo3{min-height:20px;min-width:20px}._RjOvu._rdt9V{min-height:25px;min-width:25px}._RjOvu._2nl3f{min-height:40px;min-width:40px}._RjOvu._5ZJsf{min-height:64px;min-width:64px}._RjOvu ._MqQvZ{display:inline-block;background-color:transparent;position:absolute;z-index:10;width:0;height:0;left:50%;bottom:50%;pointer-events:none}._RjOvu ._MqQvZ._lcT5j{display:none}._RjOvu ._MqQvZ div{position:absolute;transform:rotate(20deg)}._RjOvu ._MqQvZ div div:nth-child(-n+9){background-color:#fff;transform-origin:0 0;animation:_MqQvZ .9s linear infinite}._RjOvu ._MqQvZ div div:nth-child(-n+9):after{content:\" \";display:block;position:absolute;top:5px;left:-1px;width:2px;height:10px;border-radius:20%;background:#000}._RjOvu ._MqQvZ div div:first-child{transform:rotate(20deg);animation-delay:-.8s}._RjOvu ._MqQvZ div div:nth-child(2){transform:rotate(60deg);animation-delay:-.7s}._RjOvu ._MqQvZ div div:nth-child(3){transform:rotate(100deg);animation-delay:-.6s}._RjOvu ._MqQvZ div div:nth-child(4){transform:rotate(140deg);animation-delay:-.5s}._RjOvu ._MqQvZ div div:nth-child(5){transform:rotate(180deg);animation-delay:-.4s}._RjOvu ._MqQvZ div div:nth-child(6){transform:rotate(220deg);animation-delay:-.3s}._RjOvu ._MqQvZ div div:nth-child(7){transform:rotate(260deg);animation-delay:-.2s}._RjOvu ._MqQvZ div div:nth-child(8){transform:rotate(300deg);animation-delay:-.1s}._RjOvu ._MqQvZ div div:nth-child(9){transform:rotate(340deg);animation-delay:0s}._RjOvu ._5ZJsf div div:nth-child(-n+9):after{top:10px;left:-2px;width:4px;height:18px}._RjOvu ._dEZo3 div div:nth-child(-n+9):after{top:2px;left:-1px;width:1.5px;height:6px}._RjOvu ._rdt9V div div:nth-child(-n+9):after{top:4px;left:-1px;width:2px;height:7px}._RjOvu ._2rEak div div:nth-child(-n+9):after{background:#fff}._RjOvu ._l3X45{width:100%;height:100%}._RjOvu ._l3X45._Bg0Yt{pointer-events:none}._RjOvu ._l3X45._lcT5j{opacity:0}._RjOvu ._l3X45._gy3kU{opacity:.8}@keyframes _MqQvZ{0%{opacity:1}to{opacity:0}}";
|
|
4
|
+
var styles = {"spinnerContainer":"_RjOvu","xs":"_dEZo3","small":"_rdt9V","medium":"_2nl3f","large":"_5ZJsf","spinnerComponent":"_MqQvZ","hide":"_lcT5j","inverted":"_2rEak","spinnerContent":"_l3X45","disablePointerEvents":"_Bg0Yt","fade":"_gy3kU"};
|
|
5
|
+
var stylesheet="._RjOvu{position:relative;display:inline-block}._RjOvu._dEZo3{min-height:20px;min-width:20px}._RjOvu._rdt9V{min-height:25px;min-width:25px}._RjOvu._2nl3f{min-height:40px;min-width:40px}._RjOvu._5ZJsf{min-height:64px;min-width:64px}._RjOvu ._MqQvZ{display:inline-block;background-color:transparent;position:absolute;z-index:10;width:0;height:0;left:50%;bottom:50%;pointer-events:none}._RjOvu ._MqQvZ._lcT5j{display:none}._RjOvu ._MqQvZ div{position:absolute;transform:rotate(20deg)}._RjOvu ._MqQvZ div div:nth-child(-n+9){background-color:#fff;transform-origin:0 0;animation:_MqQvZ .9s linear infinite}._RjOvu ._MqQvZ div div:nth-child(-n+9):after{content:\" \";display:block;position:absolute;top:5px;left:-1px;width:2px;height:10px;border-radius:20%;background:#000}._RjOvu ._MqQvZ div div:first-child{transform:rotate(20deg);animation-delay:-.8s}._RjOvu ._MqQvZ div div:nth-child(2){transform:rotate(60deg);animation-delay:-.7s}._RjOvu ._MqQvZ div div:nth-child(3){transform:rotate(100deg);animation-delay:-.6s}._RjOvu ._MqQvZ div div:nth-child(4){transform:rotate(140deg);animation-delay:-.5s}._RjOvu ._MqQvZ div div:nth-child(5){transform:rotate(180deg);animation-delay:-.4s}._RjOvu ._MqQvZ div div:nth-child(6){transform:rotate(220deg);animation-delay:-.3s}._RjOvu ._MqQvZ div div:nth-child(7){transform:rotate(260deg);animation-delay:-.2s}._RjOvu ._MqQvZ div div:nth-child(8){transform:rotate(300deg);animation-delay:-.1s}._RjOvu ._MqQvZ div div:nth-child(9){transform:rotate(340deg);animation-delay:0s}._RjOvu ._5ZJsf div div:nth-child(-n+9):after{top:10px;left:-2px;width:4px;height:18px}._RjOvu ._dEZo3 div div:nth-child(-n+9):after{top:2px;left:-1px;width:1.5px;height:6px}._RjOvu ._rdt9V div div:nth-child(-n+9):after{top:4px;left:-1px;width:2px;height:7px}._RjOvu ._2rEak div div:nth-child(-n+9):after{background:#fff}._RjOvu ._l3X45{width:100%;height:100%}._RjOvu ._l3X45._Bg0Yt{pointer-events:none}._RjOvu ._l3X45._lcT5j{opacity:0}._RjOvu ._l3X45._gy3kU{opacity:.8}@keyframes _MqQvZ{0%{opacity:1}to{opacity:0}}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -76,9 +76,19 @@ function usePaneSearch(_ref) {
|
|
|
76
76
|
isDisabled: !isSearchable
|
|
77
77
|
});
|
|
78
78
|
const lastestKeyPressedInSearchInput = useRef();
|
|
79
|
+
const [isComposing, setIsComposing] = useState(false);
|
|
80
|
+
useEventListener(searchInput, 'compositionstart', () => {
|
|
81
|
+
setIsComposing(true);
|
|
82
|
+
});
|
|
83
|
+
useEventListener(searchInput, 'compositionend', () => {
|
|
84
|
+
setIsComposing(false);
|
|
85
|
+
});
|
|
79
86
|
useEventListener(searchInput, 'keydown', e => {
|
|
80
87
|
var _e$target;
|
|
81
88
|
lastestKeyPressedInSearchInput.current = e.key;
|
|
89
|
+
if (isComposing) {
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
82
92
|
if ([...KEYS.NAVIGATE_DOWN, ...KEYS.NAVIGATE_TOP].includes(e.key)) {
|
|
83
93
|
// prevent scrolling
|
|
84
94
|
e.preventDefault();
|
package/dist/next/Menu/Menu.js
CHANGED
package/dist/next/Menu/Menu2.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"buttonContainer":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._wJw7-{position:relative;display:inline-flex;height:36px;min-width:60px;cursor:pointer}._wJw7->._VE2MT{cursor:unset;width:100%;height:100%;padding:0 28px 0 12px;border-radius:4px;white-space:nowrap;line-height:20px;font-size:14px;text-align:left;outline:none;border:none;box-shadow:inset 0 0 0 1px #898989;color:#515559;background-color:#fafafa;overflow:hidden;text-overflow:ellipsis}._wJw7->._VE2MT:hover:not([aria-disabled=true]){background-color:#f5f5f5}._wJw7->._VE2MT.focus-visible,._wJw7->._VE2MT:focus-visible{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._wJw7->._VE2MT+._ciSQK{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._wJw7->._VE2MT[data-state=open]+._ciSQK{transform:rotate(-180deg) translateY(50%)}._wJw7->._VE2MT[aria-disabled=true]{color:#74777a;cursor:not-allowed}._wJw7->._VE2MT[aria-disabled=true]+._ciSQK{fill:#515559;opacity:.4}._9Nz3C>[data-radix-popper-content-wrapper]{overflow:hidden;min-width:auto!important;background-color:#fff;max-width:350px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);border-radius:4px;z-index:var(--mask-z-index)!important;width:var(--mask-width);height:var(--mask-height);transition:height .35s,width .35s}._9Nz3C>[data-radix-popper-content-wrapper] [data-radix-popper-content-wrapper]{transform:translateZ(0)!important}._nt22q{margin:0;padding-bottom:var(--flyout-bottom-padding);background:#fff;transition:margin-left .35s,opacity .35s,height .35s,width .35s;opacity:1;max-width:350px;width:-webkit-max-content;width:-moz-max-content;width:max-content;min-width:200px;max-height:var(--flyout-max-height)}._nt22q ._2r5PG{height:100%;overflow-y:scroll}._nt22q._h76YN{margin-left:30px;opacity:0}._nt22q._m8fDm{margin-left:-30px}._-0P53{position:relative;padding:10px 12px;display:flex;flex-direction:row;min-height:40px;align-items:center;cursor:pointer;outline:none;word-break:break-word;font-size:14px;color:#32363a;width:100%}._-0P53._YrVup{cursor:unset}._-0P53 ._r-h4V{fill:#32363a;margin-right:4px}._-0P53:focus,._-0P53:hover:not(._-0P53._YrVup){background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._-0P53[aria-disabled=true]{cursor:not-allowed;opacity:.65}._-0P53._5r8xe{padding-right:32px}._-0P53._5r8xe ._ciSQK{position:absolute;height:100%;right:3px;fill:#515559}._-0P53._wLjDz{pointer-events:none}._xOtZ-{position:-webkit-sticky;position:sticky;top:0;background-color:#fff;border-bottom:1px solid #e8e8e8}._xOtZ-._PYKUp{padding-top:52px}._xrQzJ{pointer-events:none;position:fixed;left:0;top:0;transition:width .35s;min-width:200px;width:var(--mask-width);max-width:350px}._UTDWa{position:absolute;padding:8px;border-radius:4px 4px 0 0;pointer-events:auto;opacity:1;width:100%;transition:opacity .35s,margin-left .35s}._UTDWa._m8fDm{opacity:0}._UTDWa._m8fDm>._YTI9E{margin-left:-30px}._UTDWa._h76YN{opacity:0}._UTDWa._h76YN>._YTI9E{margin-left:30px}._UTDWa>._YTI9E{transition:margin-left .35s;width:100%}._UTDWa._wLjDz{pointer-events:none}body.keyboard-user ._-0P53:hover:not(:focus){background-color:#fff;box-shadow:none}";
|
|
4
|
+
var styles = {"buttonContainer":"_wJw7-","button":"_VE2MT","rightIcon":"_ciSQK","maskContainer":"_9Nz3C","flyout":"_nt22q","scrollContainer":"_2r5PG","animatedRight":"_h76YN","animatedLeft":"_m8fDm","menuItem":"_-0P53","noItems":"_YrVup","backIcon":"_r-h4V","subMenu":"_5r8xe","unresponsive":"_wLjDz","stickyBox":"_xOtZ-","isSearchable":"_PYKUp","searchBoxesContainer":"_xrQzJ","searchBox":"_UTDWa","searchInput":"_YTI9E"};
|
|
5
|
+
var stylesheet="._wJw7-{position:relative;display:inline-flex;height:36px;min-width:60px;cursor:pointer}._wJw7->._VE2MT{cursor:unset;width:100%;height:100%;padding:0 28px 0 12px;border-radius:4px;white-space:nowrap;line-height:20px;font-size:14px;text-align:left;outline:none;border:none;box-shadow:inset 0 0 0 1px #898989;color:#515559;background-color:#fafafa;overflow:hidden;text-overflow:ellipsis}._wJw7->._VE2MT:hover:not([aria-disabled=true]){background-color:#f5f5f5}._wJw7->._VE2MT.focus-visible,._wJw7->._VE2MT:focus-visible{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._wJw7->._VE2MT+._ciSQK{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._wJw7->._VE2MT[data-state=open]+._ciSQK{transform:rotate(-180deg) translateY(50%)}._wJw7->._VE2MT[aria-disabled=true]{color:#74777a;cursor:not-allowed}._wJw7->._VE2MT[aria-disabled=true]+._ciSQK{fill:#515559;opacity:.4}._9Nz3C>[data-radix-popper-content-wrapper]{overflow:hidden;min-width:auto!important;background-color:#fff;max-width:350px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);border-radius:4px;z-index:var(--mask-z-index)!important;width:var(--mask-width);height:var(--mask-height);transition:height .35s,width .35s}._9Nz3C>[data-radix-popper-content-wrapper] [data-radix-popper-content-wrapper]{transform:translateZ(0)!important}._nt22q{margin:0;padding-bottom:var(--flyout-bottom-padding);background:#fff;transition:margin-left .35s,opacity .35s,height .35s,width .35s;opacity:1;max-width:350px;width:-webkit-max-content;width:-moz-max-content;width:max-content;min-width:200px;max-height:var(--flyout-max-height)}._nt22q ._2r5PG{height:100%;overflow-y:scroll}._nt22q._h76YN{margin-left:30px;opacity:0}._nt22q._m8fDm{margin-left:-30px}._-0P53{position:relative;padding:10px 12px;display:flex;flex-direction:row;min-height:40px;align-items:center;cursor:pointer;outline:none;word-break:break-word;font-size:14px;color:#32363a;width:100%}._-0P53._YrVup{cursor:unset}._-0P53 ._r-h4V{fill:#32363a;margin-right:4px}._-0P53:focus,._-0P53:hover:not(._-0P53._YrVup){background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._-0P53[aria-disabled=true]{cursor:not-allowed;opacity:.65}._-0P53._5r8xe{padding-right:32px}._-0P53._5r8xe ._ciSQK{position:absolute;height:100%;right:3px;fill:#515559}._-0P53._wLjDz{pointer-events:none}._xOtZ-{position:-webkit-sticky;position:sticky;top:0;background-color:#fff;border-bottom:1px solid #e8e8e8}._xOtZ-._PYKUp{padding-top:52px}._xrQzJ{pointer-events:none;position:fixed;left:0;top:0;transition:width .35s;min-width:200px;width:var(--mask-width);max-width:350px}._UTDWa{position:absolute;padding:8px;border-radius:4px 4px 0 0;pointer-events:auto;opacity:1;width:100%;transition:opacity .35s,margin-left .35s}._UTDWa._m8fDm{opacity:0}._UTDWa._m8fDm>._YTI9E{margin-left:-30px}._UTDWa._h76YN{opacity:0}._UTDWa._h76YN>._YTI9E{margin-left:30px}._UTDWa>._YTI9E{transition:margin-left .35s;width:100%}._UTDWa._wLjDz{pointer-events:none}body.keyboard-user ._-0P53:hover:not(:focus){background-color:#fff;box-shadow:none}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -97,6 +97,7 @@ const MenuItem = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
97
97
|
}
|
|
98
98
|
}), (!children || typeof children === 'string') && label ? label : children);
|
|
99
99
|
});
|
|
100
|
+
MenuItem.displayName = 'MenuItem';
|
|
100
101
|
var MenuItem$1 = conditionalA11yHelpersWrapper(MenuItem, 'textInput');
|
|
101
102
|
|
|
102
103
|
export { MenuItem$1 as default };
|
|
@@ -254,6 +254,7 @@ const SubMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
254
254
|
className: styles.backIcon
|
|
255
255
|
}), label)), noSearchResultsNode, /*#__PURE__*/React__default.createElement(PaneChildren, null, filteredChildren))));
|
|
256
256
|
});
|
|
257
|
+
SubMenu.displayName = 'SubMenu';
|
|
257
258
|
var SubMenu$1 = conditionalA11yHelpersWrapper(SubMenu);
|
|
258
259
|
|
|
259
260
|
export { SubMenu$1 as default };
|
|
@@ -162,5 +162,6 @@ const Pagination = _ref3 => {
|
|
|
162
162
|
"data-testid": getSubDataTestId(dataTestId, 'last-page')
|
|
163
163
|
}, /*#__PURE__*/React__default.createElement(ChevronSkipForwardIcon, null)));
|
|
164
164
|
};
|
|
165
|
+
Pagination.displayName = 'Pagination';
|
|
165
166
|
|
|
166
167
|
export { Pagination as default };
|
|
@@ -118,5 +118,6 @@ const PhoneNumberInput = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
118
118
|
initialValue: isDisabled ? undefined : removeNonNumericCharacters(initialValue)
|
|
119
119
|
})));
|
|
120
120
|
});
|
|
121
|
+
PhoneNumberInput.displayName = 'PhoneNumberInput';
|
|
121
122
|
|
|
122
123
|
export { PhoneNumberInput };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"input":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._Xdsug input{padding-left:76px!important}._dEYAX input{background-color:#e5e5e5!important;color:#9d9fa1!important;cursor:not-allowed!important;-webkit-text-fill-color:#9d9fa1}._dEYAX input::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._dEYAX input::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._M4pM5{position:absolute!important;left:4px;right:4px;bottom:4px;z-index:100;width:67px;height:28px!important;border-radius:4px}._M4pM5,._M4pM5._dEYAX:hover{background-color:transparent!important}._M4pM5:hover{background-color:rgba(50,54,58,.08)!important}._M4pM5:active{background-color:rgba(50,54,58,.11)!important}._M4pM5 svg{top:2px!important}._Yb0wa{position:relative}._dVEF1{position:absolute;top:18px;left:12px;line-height:0;font-size:14px;color:#32363a;z-index:101;pointer-events:none}";
|
|
4
|
+
var styles = {"input":"_Xdsug","disabled":"_dEYAX","dropdown":"_M4pM5","container":"_Yb0wa","countryCode":"_dVEF1"};
|
|
5
|
+
var stylesheet="._Xdsug input{padding-left:76px!important}._dEYAX input{background-color:#e5e5e5!important;color:#9d9fa1!important;cursor:not-allowed!important;-webkit-text-fill-color:#9d9fa1}._dEYAX input::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._dEYAX input::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._M4pM5{position:absolute!important;left:4px;right:4px;bottom:4px;z-index:100;width:67px;height:28px!important;border-radius:4px}._M4pM5,._M4pM5._dEYAX:hover{background-color:transparent!important}._M4pM5:hover{background-color:rgba(50,54,58,.08)!important}._M4pM5:active{background-color:rgba(50,54,58,.11)!important}._M4pM5 svg{top:2px!important}._Yb0wa{position:relative}._dVEF1{position:absolute;top:18px;left:12px;line-height:0;font-size:14px;color:#32363a;z-index:101;pointer-events:none}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"isInvalid":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._vOuRr{box-shadow:inset 0 0 0 1px #b00!important}._3J-Dp{margin-right:7px}._ZrF44{background-color:rgba(11,110,208,.08);font-weight:500}";
|
|
4
|
+
var styles = {"isInvalid":"_vOuRr","checkbox":"_3J-Dp","selectedItem":"_ZrF44"};
|
|
5
|
+
var stylesheet="._vOuRr{box-shadow:inset 0 0 0 1px #b00!important}._3J-Dp{margin-right:7px}._ZrF44{background-color:rgba(11,110,208,.08);font-weight:500}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -42,5 +42,6 @@ const SelectButton = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
42
42
|
})
|
|
43
43
|
}), children !== null && children !== void 0 ? children : selectedSelectItems !== null && selectedSelectItems !== void 0 && selectedSelectItems.size ? selectedItemsString : placeholder);
|
|
44
44
|
});
|
|
45
|
+
SelectButton.displayName = 'SelectButton';
|
|
45
46
|
|
|
46
47
|
export { SelectButton as default };
|