@qualtrics/ui-react 2.75.0 → 2.76.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 +9 -0
- package/dist/__node_modules/@radix-ui/primitive/dist/index.js +54 -0
- package/dist/__node_modules/@radix-ui/react-arrow/dist/index.js +28 -0
- package/dist/__node_modules/@radix-ui/react-collection/dist/index.js +605 -0
- package/dist/__node_modules/@radix-ui/react-compose-refs/dist/index.js +45 -0
- package/dist/__node_modules/@radix-ui/react-context/dist/index.js +108 -0
- package/dist/__node_modules/@radix-ui/react-direction/dist/index.js +21 -0
- package/dist/__node_modules/@radix-ui/react-dismissable-layer/dist/index.js +223 -0
- package/dist/__node_modules/@radix-ui/react-dropdown-menu/dist/index.js +350 -0
- package/dist/__node_modules/@radix-ui/react-focus-guards/dist/index.js +35 -0
- package/dist/__node_modules/@radix-ui/react-focus-scope/dist/index.js +248 -0
- package/dist/__node_modules/@radix-ui/react-id/dist/index.js +15 -0
- package/dist/__node_modules/@radix-ui/react-menu/dist/index.js +911 -0
- package/dist/__node_modules/@radix-ui/react-popper/dist/index.js +325 -0
- package/dist/__node_modules/@radix-ui/react-portal/dist/index.js +25 -0
- package/dist/__node_modules/@radix-ui/react-presence/dist/index.js +141 -0
- package/dist/__node_modules/@radix-ui/react-primitive/dist/index.js +34 -0
- package/dist/__node_modules/@radix-ui/react-roving-focus/dist/index.js +216 -0
- package/dist/__node_modules/@radix-ui/react-slot/dist/index.js +127 -0
- package/dist/__node_modules/@radix-ui/react-use-callback-ref/dist/index.js +18 -0
- package/dist/__node_modules/@radix-ui/react-use-controllable-state/dist/index.js +141 -0
- package/dist/__node_modules/@radix-ui/react-use-effect-event/dist/index.js +32 -0
- package/dist/__node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +23 -0
- package/dist/__node_modules/@radix-ui/react-use-layout-effect/dist/index.js +6 -0
- package/dist/__node_modules/@radix-ui/react-use-size/dist/index.js +48 -0
- package/dist/__node_modules/aria-hidden/dist/es2015/index.js +169 -0
- package/dist/__node_modules/detect-node-es/esm/node.js +4 -0
- package/dist/__node_modules/get-nonce/dist/es2015/index.js +15 -0
- package/dist/__node_modules/react-remove-scroll/dist/es2015/Combination.js +9 -0
- package/dist/__node_modules/react-remove-scroll/dist/es2015/SideEffect.js +169 -0
- package/dist/__node_modules/react-remove-scroll/dist/es2015/UI.js +39 -0
- package/dist/__node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +21 -0
- package/dist/__node_modules/react-remove-scroll/dist/es2015/handleScroll.js +110 -0
- package/dist/__node_modules/react-remove-scroll/dist/es2015/index.js +1 -0
- package/dist/__node_modules/react-remove-scroll/dist/es2015/medium.js +6 -0
- package/dist/__node_modules/react-remove-scroll/dist/es2015/sidecar.js +8 -0
- package/dist/__node_modules/react-remove-scroll-bar/dist/es2015/component.js +57 -0
- package/dist/__node_modules/react-remove-scroll-bar/dist/es2015/constants.js +10 -0
- package/dist/__node_modules/react-remove-scroll-bar/dist/es2015/index.js +3 -0
- package/dist/__node_modules/react-remove-scroll-bar/dist/es2015/utils.js +31 -0
- package/dist/__node_modules/react-style-singleton/dist/es2015/component.js +19 -0
- package/dist/__node_modules/react-style-singleton/dist/es2015/hook.js +25 -0
- package/dist/__node_modules/react-style-singleton/dist/es2015/index.js +3 -0
- package/dist/__node_modules/react-style-singleton/dist/es2015/singleton.js +51 -0
- package/dist/__node_modules/tslib/tslib.es6.js +403 -0
- package/dist/__node_modules/use-callback-ref/dist/es2015/assignRef.js +24 -0
- package/dist/__node_modules/use-callback-ref/dist/es2015/createRef.js +25 -0
- package/dist/__node_modules/use-callback-ref/dist/es2015/index.js +8 -0
- package/dist/__node_modules/use-callback-ref/dist/es2015/mergeRef.js +21 -0
- package/dist/__node_modules/use-callback-ref/dist/es2015/refToCallback.js +50 -0
- package/dist/__node_modules/use-callback-ref/dist/es2015/transformRef.js +17 -0
- package/dist/__node_modules/use-callback-ref/dist/es2015/useMergeRef.js +48 -0
- package/dist/__node_modules/use-callback-ref/dist/es2015/useRef.js +42 -0
- package/dist/__node_modules/use-callback-ref/dist/es2015/useTransformRef.js +21 -0
- package/dist/__node_modules/use-sidecar/dist/es2015/config.js +8 -0
- package/dist/__node_modules/use-sidecar/dist/es2015/env.js +8 -0
- package/dist/__node_modules/use-sidecar/dist/es2015/exports.js +21 -0
- package/dist/__node_modules/use-sidecar/dist/es2015/hoc.js +18 -0
- package/dist/__node_modules/use-sidecar/dist/es2015/hook.js +44 -0
- package/dist/__node_modules/use-sidecar/dist/es2015/index.js +6 -0
- package/dist/__node_modules/use-sidecar/dist/es2015/medium.js +81 -0
- package/dist/__node_modules/use-sidecar/dist/es2015/renderProp.js +38 -0
- package/dist/__shared/cjs/{index-9f6415a6.js → index-87207072.js} +422 -371
- package/dist/__shared/cjs/{index-98bc748b.js → index-b569963c.js} +3 -3
- package/dist/components/Accordion/Accordion2.js +3 -3
- package/dist/components/BreakpointSwitch/BreakpointSwitch.js +3 -2
- package/dist/components/Button/Button.js +3 -3
- package/dist/components/ButtonGroup/ButtonGroup.js +3 -2
- package/dist/components/ButtonGroup/ButtonGroup2.js +3 -3
- package/dist/components/Checkbox/Checkbox2.js +3 -3
- package/dist/components/ColorPicker/ColorPicker.js +7 -8
- package/dist/components/ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/Combobox/Combobox.js +9 -8
- package/dist/components/Combobox/Combobox2.js +3 -3
- package/dist/components/Combobox/ComboboxList.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 +10 -9
- package/dist/components/Dropdown/DropdownList.js +6 -7
- package/dist/components/FilePicker/FilePicker2.js +3 -3
- package/dist/components/FormField/Caption.js +3 -3
- package/dist/components/FormField/FormField2.js +3 -3
- package/dist/components/FullScreenTakeover/FullScreenTakeover2.js +3 -3
- package/dist/components/IconButton/IconButton2.js +3 -3
- package/dist/components/InlineInput/InlineInput2.js +3 -3
- package/dist/components/Input/Input2.js +3 -3
- package/dist/components/InputGroup/InputGroup2.js +3 -3
- package/dist/components/Label/Label2.js +3 -3
- package/dist/components/Link/Link2.js +3 -3
- package/dist/components/LoadingSpinner/LoadingSpinner2.js +3 -3
- package/dist/components/LogicEditor/ConditionSet.js +2 -2
- package/dist/components/LogicEditor/LogicEditor2.js +3 -3
- package/dist/components/Modal/Modal.js +4 -2
- package/dist/components/Modal/Modal2.js +3 -3
- package/dist/components/NewMenu/BaseMenu.js +31 -25
- package/dist/components/NewMenu/Menu/Menu.js +1 -0
- package/dist/components/NewMenu/NewMenu.js +3 -3
- package/dist/components/NewMenu/SelectMenu/SelectMenu.js +3 -1
- package/dist/components/NewMenu/parts/ArrowNav/ArrowNav.js +10 -4
- package/dist/components/NewMenu/parts/MenuItem.js +1 -1
- 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/Popover.js +8 -14
- package/dist/components/Popover/Popover2.js +3 -3
- package/dist/components/QuickSearch/QuickSearch2.js +3 -3
- package/dist/components/Radio/Radio2.js +3 -3
- package/dist/components/SearchInput/SearchInput2.js +3 -3
- package/dist/components/SidebarNav/SidebarNav2.js +3 -3
- package/dist/components/Slider/Slider2.js +3 -3
- package/dist/components/Switch/Switch2.js +3 -3
- package/dist/components/Table/Table2.js +3 -3
- package/dist/components/Tabs/TabList.js +3 -2
- package/dist/components/Tabs/TabPanels.js +2 -1
- package/dist/components/Tabs/Tabs2.js +3 -3
- package/dist/components/Tooltip/Tooltip.js +6 -12
- package/dist/components/Tooltip/Tooltip2.js +3 -3
- package/dist/components/deprecated_ColorPicker/ColorPicker.js +5 -6
- package/dist/components/deprecated_ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/deprecated_NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/deprecated_Tabs/Tabs.js +3 -3
- package/dist/components/deprecated_Tabs/Tabs2.js +3 -3
- package/dist/components/deprecated_Toolbar/Toolbar2.js +3 -3
- package/dist/design-tokens/less/typography.js +3 -3
- package/dist/hooks/useOverlay/useOverlay2.js +3 -3
- package/dist/hooks/usePrevious/usePrevious.js +1 -1
- package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement.js +2 -2
- 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 +18 -17
- package/dist/index.es.js +1 -1
- package/dist/index.js +4 -5
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
- package/dist/next/Combobox/Combobox2.js +3 -3
- package/dist/next/Combobox/ComboboxFlyout.js +6 -6
- package/dist/next/Combobox/hooks/useComboboxFocusSequence/useComboboxFocusSequence.js +1 -1
- package/dist/next/Combobox/hooks/useComboboxLoadingState/useComboboxLoadingState.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/Indicator/Indicator2.js +3 -3
- package/dist/next/Input/Input2.js +3 -3
- package/dist/next/LoadingSpinner/LoadingSpinner2.js +3 -3
- package/dist/next/Menu/Hooks/usePaneSearch.js +1 -1
- package/dist/next/Menu/Menu.js +2 -2
- package/dist/next/Menu/Menu2.js +3 -3
- package/dist/next/Menu/MenuButton.js +1 -1
- package/dist/next/Menu/MenuItem.js +2 -2
- package/dist/next/Menu/MenuPane.js +4 -3
- package/dist/next/Menu/SubMenu.js +8 -6
- package/dist/next/PhoneNumberInput/PhoneNumberInput.js +90 -41
- 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/TimeDropdown.js +5 -6
- package/dist/next/TimePicker/TimeInput.js +104 -37
- package/dist/next/TimePicker/TimePicker2.js +3 -3
- package/dist/next/ToggleButton/styles.js +3 -3
- package/dist/next/index.d.ts +15 -13
- package/dist/next/index.js +5601 -324
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/dist/utils/GridChildrenWrapper/GridChildrenWrapper.js +2 -1
- package/dist/utils/Popper/Popper.js +162 -114
- package/dist/utils/Portal/Portal.js +3 -2
- package/dist/utils/Text/Text.js +3 -2
- package/dist/utils/filterChildren/filterChildren.js +3 -2
- package/dist/utils/index.js +1 -0
- package/icons/package.json +3 -4
- package/next/package.json +4 -5
- package/package.json +15 -16
|
@@ -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 = "._Bfc8B input{padding-left:76px!important}._P8Ywj input{background-color:#e5e5e5!important;color:#9d9fa1!important;cursor:not-allowed!important;-webkit-text-fill-color:#9d9fa1}._P8Ywj input::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._P8Ywj input::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._XSsK2{position:absolute!important;left:4px;right:4px;bottom:4px;z-index:100;width:67px;height:28px!important;border-radius:4px}._XSsK2,._XSsK2._P8Ywj:hover{background-color:transparent!important}._XSsK2:hover{background-color:rgba(50,54,58,.08)!important}._XSsK2:active{background-color:rgba(50,54,58,.11)!important}._XSsK2 svg{top:2px!important}._uJELN{position:relative}._LPMGS{position:absolute;top:18px;left:12px;line-height:0;font-size:14px;color:#32363a;z-index:101;pointer-events:none}";
|
|
4
|
+
var styles = {"input":"_Bfc8B","disabled":"_P8Ywj","dropdown":"_XSsK2","container":"_uJELN","countryCode":"_LPMGS"};
|
|
5
|
+
var stylesheet="._Bfc8B input{padding-left:76px!important}._P8Ywj input{background-color:#e5e5e5!important;color:#9d9fa1!important;cursor:not-allowed!important;-webkit-text-fill-color:#9d9fa1}._P8Ywj input::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._P8Ywj input::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._XSsK2{position:absolute!important;left:4px;right:4px;bottom:4px;z-index:100;width:67px;height:28px!important;border-radius:4px}._XSsK2,._XSsK2._P8Ywj:hover{background-color:transparent!important}._XSsK2:hover{background-color:rgba(50,54,58,.08)!important}._XSsK2:active{background-color:rgba(50,54,58,.11)!important}._XSsK2 svg{top:2px!important}._uJELN{position:relative}._LPMGS{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 = "._4C7rr{box-shadow:inset 0 0 0 1px #b00!important}._81Szk{margin-right:7px}._ka7N6{background-color:rgba(11,110,208,.08);font-weight:500}";
|
|
4
|
+
var styles = {"isInvalid":"_4C7rr","checkbox":"_81Szk","selectedItem":"_ka7N6"};
|
|
5
|
+
var stylesheet="._4C7rr{box-shadow:inset 0 0 0 1px #b00!important}._81Szk{margin-right:7px}._ka7N6{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 = "._XjXeB{display:flex}._4gmqM{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._4gmqM._fw6cx{background-color:#fff}._4gmqM._fw6cx._GYXWn.focus-visible:not(._3tgKo),._4gmqM._fw6cx._GYXWn:focus-visible:not(._3tgKo),._4gmqM._fw6cx._pFhRY:not(._4gmqM._fw6cx._K0UOF),._4gmqM._HZOS6{background-color:#0b6ed0}._4gmqM._HZOS6._3tgKo._GYXWn,._4gmqM._HZOS6._3tgKo._K0UOF,._4gmqM._HZOS6._K0UOF._pFhRY{opacity:.4}._9pxWG{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._9pxWG:focus{z-index:1}._wGkki{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}._wGkki svg{margin-left:1px}._wGkki._fw6cx{background-color:#0b6ed0;border-color:transparent}._wGkki._fw6cx svg{fill:#fff!important}._wGkki._fw6cx:not(._Wslv4):hover{background-color:#085caf!important}._wGkki._fw6cx:not(._Wslv4):active{background-color:#0854a1!important}._wGkki._fw6cx._Wslv4{opacity:.4}._wGkki._fw6cx._Wslv4 svg{background-color:transparent}._wGkki._HZOS6{border-color:#0b6ed0;background-color:#fff}._wGkki._HZOS6 svg{fill:#0b6ed0!important}._wGkki._HZOS6:not(._Wslv4):hover{background-color:#eef5fc!important}._wGkki._HZOS6:not(._Wslv4):active{background-color:#e1edf9!important}._wGkki._HZOS6._Wslv4{opacity:.4}._wGkki._HZOS6._Wslv4 svg{background-color:transparent}._egzsf{width:260px}";
|
|
4
|
+
var styles = {"container":"_XjXeB","divider":"_4gmqM","primary":"_fw6cx","mainButtonFocus":"_GYXWn","mainButtonDisabled":"_3tgKo","dropdownButtonFocus":"_pFhRY","dropdownButtonDisabled":"_K0UOF","secondary":"_HZOS6","mainButton":"_9pxWG","dropdownButton":"_wGkki","disabled":"_Wslv4","dropdownOption":"_egzsf"};
|
|
5
|
+
var stylesheet="._XjXeB{display:flex}._4gmqM{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._4gmqM._fw6cx{background-color:#fff}._4gmqM._fw6cx._GYXWn.focus-visible:not(._3tgKo),._4gmqM._fw6cx._GYXWn:focus-visible:not(._3tgKo),._4gmqM._fw6cx._pFhRY:not(._4gmqM._fw6cx._K0UOF),._4gmqM._HZOS6{background-color:#0b6ed0}._4gmqM._HZOS6._3tgKo._GYXWn,._4gmqM._HZOS6._3tgKo._K0UOF,._4gmqM._HZOS6._K0UOF._pFhRY{opacity:.4}._9pxWG{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._9pxWG:focus{z-index:1}._wGkki{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}._wGkki svg{margin-left:1px}._wGkki._fw6cx{background-color:#0b6ed0;border-color:transparent}._wGkki._fw6cx svg{fill:#fff!important}._wGkki._fw6cx:not(._Wslv4):hover{background-color:#085caf!important}._wGkki._fw6cx:not(._Wslv4):active{background-color:#0854a1!important}._wGkki._fw6cx._Wslv4{opacity:.4}._wGkki._fw6cx._Wslv4 svg{background-color:transparent}._wGkki._HZOS6{border-color:#0b6ed0;background-color:#fff}._wGkki._HZOS6 svg{fill:#0b6ed0!important}._wGkki._HZOS6:not(._Wslv4):hover{background-color:#eef5fc!important}._wGkki._HZOS6:not(._Wslv4):active{background-color:#e1edf9!important}._wGkki._HZOS6._Wslv4{opacity:.4}._wGkki._HZOS6._Wslv4 svg{background-color:transparent}._egzsf{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 };
|
|
@@ -5,6 +5,7 @@ import styles from './TimePicker2.js';
|
|
|
5
5
|
import Popper from '../../utils/Popper/Popper.js';
|
|
6
6
|
import { Flyout } from '../../utils/Flyout/Flyout.js';
|
|
7
7
|
import { FlyoutOption } from '../../utils/Flyout/FlyoutOption.js';
|
|
8
|
+
import { offset } from '@floating-ui/react-dom';
|
|
8
9
|
|
|
9
10
|
const TimeDropdown = _ref => {
|
|
10
11
|
let {
|
|
@@ -71,12 +72,10 @@ const TimeDropdown = _ref => {
|
|
|
71
72
|
})
|
|
72
73
|
}, item.label))),
|
|
73
74
|
anchorNode: inputRef.current,
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
}
|
|
79
|
-
}]
|
|
75
|
+
middleware: [offset({
|
|
76
|
+
crossAxis: 0,
|
|
77
|
+
mainAxis: 5
|
|
78
|
+
})]
|
|
80
79
|
});
|
|
81
80
|
};
|
|
82
81
|
TimeDropdown.displayName = 'TimeDropdown';
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import React__default, { forwardRef } from 'react';
|
|
2
|
-
import
|
|
1
|
+
import React__default, { forwardRef, useRef, useMemo, useCallback, useEffect } from 'react';
|
|
2
|
+
import { IMask, useIMask } from 'react-imask';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import '../Input/index.js';
|
|
5
5
|
import styles from './TimePicker2.js';
|
|
6
6
|
import { correctTime } from './utils.js';
|
|
7
|
+
import '../../utils/index.js';
|
|
7
8
|
import Input from '../Input/Input.js';
|
|
9
|
+
import mergeRefs from '../../utils/mergeRefs/mergeRefs.js';
|
|
8
10
|
|
|
9
11
|
const TimeInput = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
10
12
|
let {
|
|
@@ -27,60 +29,125 @@ const TimeInput = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
27
29
|
ariaDescribedBy,
|
|
28
30
|
isOptionHovered
|
|
29
31
|
} = _ref;
|
|
30
|
-
const mask24 = '
|
|
31
|
-
const mask12 = '
|
|
32
|
+
const mask24 = '00:00';
|
|
33
|
+
const mask12 = '00:00 `am';
|
|
32
34
|
const mask = is24HourClock ? mask24 : mask12;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
newSelection.start = shouldMoveSelectionToEnd ? validTimeLength : newSelection.start;
|
|
54
|
-
newSelection.end = shouldMoveSelectionToEnd ? validTimeLength : newSelection.end;
|
|
55
|
-
newSelection.start = Math.min(newSelection.start + selectionModifier, validTimeLength);
|
|
56
|
-
newSelection.end = Math.min(newSelection.end + selectionModifier, validTimeLength);
|
|
35
|
+
const inputRef = useRef(null);
|
|
36
|
+
const lastProgrammaticValue = useRef('');
|
|
37
|
+
|
|
38
|
+
/** Placeholder pattern shown when empty (imask 7.6+ may not show it until focus without this). */
|
|
39
|
+
const emptyDisplayValue = mask;
|
|
40
|
+
const maskedUserInput = useMemo(() => {
|
|
41
|
+
if (!userInput) return undefined;
|
|
42
|
+
return IMask.pipe(userInput, {
|
|
43
|
+
mask,
|
|
44
|
+
lazy: false,
|
|
45
|
+
placeholderChar: '-',
|
|
46
|
+
blocks: {
|
|
47
|
+
am: {
|
|
48
|
+
mask: 'am',
|
|
49
|
+
placeholderChar: '-',
|
|
50
|
+
definitions: {
|
|
51
|
+
a: /[AaPp]/,
|
|
52
|
+
m: /[Mm]/
|
|
53
|
+
}
|
|
54
|
+
}
|
|
57
55
|
}
|
|
56
|
+
});
|
|
57
|
+
}, [userInput, mask]);
|
|
58
|
+
const handleAccept = useCallback((value, maskRef) => {
|
|
59
|
+
if (isDisabled || value === lastProgrammaticValue.current) {
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
const {
|
|
63
|
+
correctedTime
|
|
64
|
+
} = correctTime(value, is24HourClock, false);
|
|
65
|
+
if (correctedTime !== value) {
|
|
66
|
+
// Update the mask value with the corrected time
|
|
67
|
+
// eslint-disable-next-line no-param-reassign
|
|
68
|
+
maskRef.value = correctedTime;
|
|
69
|
+
}
|
|
70
|
+
onChange(correctedTime);
|
|
71
|
+
setShouldMoveSelectionToEnd(false);
|
|
72
|
+
}, [is24HourClock, isDisabled, onChange, setShouldMoveSelectionToEnd]);
|
|
73
|
+
const {
|
|
74
|
+
ref: imaskRef,
|
|
75
|
+
maskRef
|
|
76
|
+
} = useIMask({
|
|
77
|
+
mask,
|
|
78
|
+
lazy: false,
|
|
79
|
+
placeholderChar: '-',
|
|
80
|
+
blocks: {
|
|
81
|
+
am: {
|
|
82
|
+
mask: 'am',
|
|
83
|
+
placeholderChar: '-',
|
|
84
|
+
definitions: {
|
|
85
|
+
a: /[AaPp]/,
|
|
86
|
+
m: /[Mm]/
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}, {
|
|
91
|
+
defaultValue: userInput ? undefined : emptyDisplayValue,
|
|
92
|
+
onAccept: handleAccept
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
// Sync userInput value with the input (e.g. when parent sets time from dropdown)
|
|
96
|
+
useEffect(() => {
|
|
97
|
+
if (!maskRef.current) return;
|
|
98
|
+
const valueToShow = userInput || emptyDisplayValue;
|
|
99
|
+
if (maskRef.current.value !== valueToShow) {
|
|
100
|
+
lastProgrammaticValue.current = userInput;
|
|
101
|
+
maskRef.current.value = valueToShow;
|
|
102
|
+
maskRef.current.updateValue();
|
|
103
|
+
}
|
|
104
|
+
}, [userInput, emptyDisplayValue, maskRef]);
|
|
105
|
+
// When empty, ensure placeholder is visible on mount (imask 7.6+)
|
|
106
|
+
useEffect(() => {
|
|
107
|
+
if (userInput) return undefined;
|
|
108
|
+
const frameId = requestAnimationFrame(() => {
|
|
109
|
+
if (maskRef.current) {
|
|
110
|
+
maskRef.current.value = emptyDisplayValue;
|
|
111
|
+
maskRef.current.updateValue();
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
return () => cancelAnimationFrame(frameId);
|
|
115
|
+
}, [userInput, emptyDisplayValue, maskRef]);
|
|
116
|
+
|
|
117
|
+
// Handle selection position
|
|
118
|
+
useEffect(() => {
|
|
119
|
+
if (shouldMoveSelectionToEnd && inputRef.current) {
|
|
120
|
+
const validTimeLength = mask.length;
|
|
121
|
+
inputRef.current.setSelectionRange(validTimeLength, validTimeLength);
|
|
58
122
|
setShouldMoveSelectionToEnd(false);
|
|
59
|
-
return {
|
|
60
|
-
...next,
|
|
61
|
-
value: correctedTime,
|
|
62
|
-
selection: newSelection
|
|
63
|
-
};
|
|
64
123
|
}
|
|
65
|
-
},
|
|
124
|
+
}, [shouldMoveSelectionToEnd, setShouldMoveSelectionToEnd, mask.length]);
|
|
125
|
+
return /*#__PURE__*/React__default.createElement(Input, {
|
|
66
126
|
id: id,
|
|
67
127
|
disabled: isDisabled,
|
|
68
128
|
role: "combobox",
|
|
69
129
|
"aria-expanded": ariaExpanded,
|
|
70
130
|
"aria-controls": ariaControls,
|
|
71
|
-
ref: ref,
|
|
131
|
+
ref: mergeRefs(ref, inputRef, imaskRef),
|
|
72
132
|
className: classNames(styles.input, {
|
|
73
133
|
[styles.ignoreFocusStyle]: !!ariaActiveDescendant || isOptionHovered
|
|
74
134
|
}),
|
|
75
135
|
"aria-invalid": isInvalid,
|
|
136
|
+
defaultValue: userInput || emptyDisplayValue,
|
|
137
|
+
placeholder: maskedUserInput !== null && maskedUserInput !== void 0 ? maskedUserInput : emptyDisplayValue,
|
|
76
138
|
onKeyDown: handleKeyDown,
|
|
77
|
-
onClick: () =>
|
|
139
|
+
onClick: () => {
|
|
140
|
+
if (isDisabled) {
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
setIsFlyoutOpen(true);
|
|
144
|
+
},
|
|
78
145
|
"aria-label": ariaLabel,
|
|
79
146
|
"aria-labelledby": ariaLabelledBy,
|
|
80
147
|
"aria-describedby": ariaDescribedBy,
|
|
81
148
|
"aria-activedescendant": ariaActiveDescendant,
|
|
82
149
|
"data-testid": dataTestId && "".concat(dataTestId, "-input")
|
|
83
|
-
})
|
|
150
|
+
});
|
|
84
151
|
});
|
|
85
152
|
TimeInput.displayName = 'TimeInput';
|
|
86
153
|
|
|
@@ -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 = "._lJFIH{display:inline-block;position:relative}._lJFIH ._5lUQe{width:120px}._lJFIH ._5lUQe ._kOw51._n5bjS{transform:rotate(-180deg)}._lJFIH ._5lUQe ._kOw51._SzzkN{fill:#9d9fa1;opacity:.4}._lJFIH ._SEYzj>input:focus{box-shadow:none!important;border:1px solid #898989!important}._lJFIH ._kOw51{position:absolute;right:4px;bottom:4px;height:28px;width:28px}._lJFIH ._kOw51._n5bjS{transform:rotate(-180deg)}._ZQQPq{width:120px}._ZQQPq ._lq9Is._77B39{background-color:#efefef;border-radius:6px}";
|
|
4
|
+
var styles = {"timePickerContainer":"_lJFIH","input":"_5lUQe","icon":"_kOw51","open":"_n5bjS","disabled":"_SzzkN","ignoreFocusStyle":"_SEYzj","timePickerFlyout":"_ZQQPq","option":"_lq9Is","exactMatch":"_77B39"};
|
|
5
|
+
var stylesheet="._lJFIH{display:inline-block;position:relative}._lJFIH ._5lUQe{width:120px}._lJFIH ._5lUQe ._kOw51._n5bjS{transform:rotate(-180deg)}._lJFIH ._5lUQe ._kOw51._SzzkN{fill:#9d9fa1;opacity:.4}._lJFIH ._SEYzj>input:focus{box-shadow:none!important;border:1px solid #898989!important}._lJFIH ._kOw51{position:absolute;right:4px;bottom:4px;height:28px;width:28px}._lJFIH ._kOw51._n5bjS{transform:rotate(-180deg)}._ZQQPq{width:120px}._ZQQPq ._lq9Is._77B39{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 = "._ABC0Q{border-color:transparent;background-color:transparent;color:#515559;cursor:pointer}._6xS03{background-color:rgba(50,54,58,.08)}._zuT1o{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._7fVrw{color:rgba(81,85,89,.4);cursor:not-allowed}._b-sr3{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._Ga7-u{color:#085caf;border-color:#085caf}._Ga7-u,._oECPd{background:rgba(11,110,208,.11)}._oECPd{color:#0854a1;border-color:#0854a1}._iNPgC{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._LHcvu{position:relative;display:inline-grid}._LHcvu svg{fill:currentColor}._LHcvu ._RksCU{-webkit-appearance:none;-moz-appearance:none;appearance:none;grid-column:1;grid-row:1}._LHcvu ._RksCU+._I0ObZ{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}._LHcvu ._RksCU+._I0ObZ._XDsyD{padding:5px;max-width:36px;min-width:36px}._LHcvu ._RksCU+._I0ObZ._q-YNj{padding:0 16px}._LHcvu ._RksCU+._I0ObZ._A-LxD{padding:0 16px 0 12px}._LHcvu ._RksCU:hover+._I0ObZ{background-color:rgba(50,54,58,.08)}._LHcvu ._RksCU:disabled+._I0ObZ{color:rgba(81,85,89,.4);cursor:not-allowed}._LHcvu ._RksCU:active+._I0ObZ,._LHcvu ._RksCU:focus:active+._I0ObZ{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._LHcvu ._RksCU:checked+._I0ObZ{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._LHcvu ._RksCU:checked:hover+._I0ObZ{background:rgba(11,110,208,.11);color:#085caf;border-color:#085caf}._LHcvu ._RksCU:checked:disabled+._I0ObZ{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._LHcvu ._RksCU:checked:active+._I0ObZ,._LHcvu ._RksCU:checked:focus:active+._I0ObZ{background:rgba(11,110,208,.11);color:#0854a1;border-color:#0854a1}._sDG1N{display:inline-flex;position:relative}._sDG1N:before{content:\"\";border:1px solid #d9d9d9;border-radius:4px;position:absolute;top:0;bottom:0;right:0;left:0}._sDG1N>*{flex-shrink:0;flex-grow:0}._cfX4-{border:none;margin:0;padding:0}._cfX4- legend{padding:0;display:block;font-size:14px;margin-bottom:6px;color:#515559}._LHcvu ._RksCU.focus-visible,._LHcvu ._RksCU:focus-visible{outline:none}._LHcvu ._RksCU.focus-visible+._I0ObZ,._LHcvu ._RksCU:focus-visible+._I0ObZ{z-index:20;outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"default":"_ABC0Q","hovered":"_6xS03","pressed":"_zuT1o","disabled":"_7fVrw","selectedDefault":"_b-sr3","selectedHovered":"_Ga7-u","selectedPressed":"_oECPd","selectedDisabled":"_iNPgC","toggleContainer":"_LHcvu","toggleInput":"_RksCU","toggleButton":"_I0ObZ","iconOnly":"_XDsyD","text":"_q-YNj","iconText":"_A-LxD","toggleButtonGroup":"_sDG1N","toggleButtonGroupFieldset":"_cfX4-"};
|
|
5
|
+
var stylesheet="._ABC0Q{border-color:transparent;background-color:transparent;color:#515559;cursor:pointer}._6xS03{background-color:rgba(50,54,58,.08)}._zuT1o{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._7fVrw{color:rgba(81,85,89,.4);cursor:not-allowed}._b-sr3{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._Ga7-u{color:#085caf;border-color:#085caf}._Ga7-u,._oECPd{background:rgba(11,110,208,.11)}._oECPd{color:#0854a1;border-color:#0854a1}._iNPgC{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._LHcvu{position:relative;display:inline-grid}._LHcvu svg{fill:currentColor}._LHcvu ._RksCU{-webkit-appearance:none;-moz-appearance:none;appearance:none;grid-column:1;grid-row:1}._LHcvu ._RksCU+._I0ObZ{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}._LHcvu ._RksCU+._I0ObZ._XDsyD{padding:5px;max-width:36px;min-width:36px}._LHcvu ._RksCU+._I0ObZ._q-YNj{padding:0 16px}._LHcvu ._RksCU+._I0ObZ._A-LxD{padding:0 16px 0 12px}._LHcvu ._RksCU:hover+._I0ObZ{background-color:rgba(50,54,58,.08)}._LHcvu ._RksCU:disabled+._I0ObZ{color:rgba(81,85,89,.4);cursor:not-allowed}._LHcvu ._RksCU:active+._I0ObZ,._LHcvu ._RksCU:focus:active+._I0ObZ{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._LHcvu ._RksCU:checked+._I0ObZ{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._LHcvu ._RksCU:checked:hover+._I0ObZ{background:rgba(11,110,208,.11);color:#085caf;border-color:#085caf}._LHcvu ._RksCU:checked:disabled+._I0ObZ{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._LHcvu ._RksCU:checked:active+._I0ObZ,._LHcvu ._RksCU:checked:focus:active+._I0ObZ{background:rgba(11,110,208,.11);color:#0854a1;border-color:#0854a1}._sDG1N{display:inline-flex;position:relative}._sDG1N:before{content:\"\";border:1px solid #d9d9d9;border-radius:4px;position:absolute;top:0;bottom:0;right:0;left:0}._sDG1N>*{flex-shrink:0;flex-grow:0}._cfX4-{border:none;margin:0;padding:0}._cfX4- legend{padding:0;display:block;font-size:14px;margin-bottom:6px;color:#515559}._LHcvu ._RksCU.focus-visible,._LHcvu ._RksCU:focus-visible{outline:none}._LHcvu ._RksCU.focus-visible+._I0ObZ,._LHcvu ._RksCU:focus-visible+._I0ObZ{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,7 +1,6 @@
|
|
|
1
1
|
import { AllHTMLAttributes } from 'react';
|
|
2
2
|
import type { ChangeEvent } from 'react';
|
|
3
3
|
import { ChangeEventHandler } from 'react';
|
|
4
|
-
import { ComputedPlacement } from '@popperjs/core';
|
|
5
4
|
import { CountryCode } from 'libphonenumber-js';
|
|
6
5
|
import { CSSProperties } from 'react';
|
|
7
6
|
import { E164Number } from 'libphonenumber-js';
|
|
@@ -10,6 +9,7 @@ import { FormEvent } from 'react';
|
|
|
10
9
|
import { FunctionComponent } from 'react';
|
|
11
10
|
import { HTMLAttributes } from 'react';
|
|
12
11
|
import type { InputHTMLAttributes } from 'react';
|
|
12
|
+
import { JSX as JSX_2 } from 'react';
|
|
13
13
|
import { MouseEventHandler } from 'react';
|
|
14
14
|
import { MutableRefObject } from 'react';
|
|
15
15
|
import { default as React_2 } from 'react';
|
|
@@ -425,7 +425,7 @@ export declare interface CollectionGridProps extends CollectionGridItemProps {
|
|
|
425
425
|
gap?: React_2.CSSProperties['gap'];
|
|
426
426
|
}
|
|
427
427
|
|
|
428
|
-
export declare function Combobox({ initialValue, value, onChange, onSubmit, isDisabled, isInvalid, isRequired, isLoading, isOpen: externalIsOpen, onIsOpenChange: externalOnIsOpenChange, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, 'data-testid': dataTestId, children, }: ComboboxProps):
|
|
428
|
+
export declare function Combobox({ initialValue, value, onChange, onSubmit, isDisabled, isInvalid, isRequired, isLoading, isOpen: externalIsOpen, onIsOpenChange: externalOnIsOpenChange, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, 'data-testid': dataTestId, children, }: ComboboxProps): React_2.ReactElement;
|
|
429
429
|
|
|
430
430
|
export declare const ComboboxFlyout: FunctionComponent<ComboboxFlyoutProps>;
|
|
431
431
|
|
|
@@ -440,7 +440,7 @@ export declare interface ComboboxFlyoutProps {
|
|
|
440
440
|
'aria-describedby'?: string;
|
|
441
441
|
}
|
|
442
442
|
|
|
443
|
-
export declare function ComboboxGroup({ label, 'aria-describedby': ariaDescribedBy, children, }: ComboboxGroupProps):
|
|
443
|
+
export declare function ComboboxGroup({ label, 'aria-describedby': ariaDescribedBy, children, }: ComboboxGroupProps): React_2.ReactElement;
|
|
444
444
|
|
|
445
445
|
export declare interface ComboboxGroupProps {
|
|
446
446
|
/** The `ComboboxOption`s. */
|
|
@@ -477,7 +477,7 @@ export declare interface ComboboxInputProps {
|
|
|
477
477
|
'aria-describedby'?: string;
|
|
478
478
|
}
|
|
479
479
|
|
|
480
|
-
export declare function ComboboxOption({ label }: ComboboxOptionProps):
|
|
480
|
+
export declare function ComboboxOption({ label }: ComboboxOptionProps): React_2.ReactElement | null;
|
|
481
481
|
|
|
482
482
|
export declare interface ComboboxOptionProps {
|
|
483
483
|
/** Rendered as text that represents the name of the option. The label needs to be unique across all `ComboboxOption`s for a given `Combobox` instance. */
|
|
@@ -641,7 +641,7 @@ declare interface DropdownListProps extends React_2.AllHTMLAttributes<HTMLDivEle
|
|
|
641
641
|
* Where to prioritize placement of the `DropdownList` relative to the `DropdownButton`.
|
|
642
642
|
* @defaultValue 'bottom-start'
|
|
643
643
|
*/
|
|
644
|
-
placement?:
|
|
644
|
+
placement?: Placement;
|
|
645
645
|
/** Handler to be called when a keyboard key is pressed down. */
|
|
646
646
|
onKeyDown?: (event: React_2.KeyboardEvent<HTMLDivElement>) => void;
|
|
647
647
|
/**
|
|
@@ -887,7 +887,7 @@ export declare interface LoadingSpinnerProps extends Omit<React_2.AllHTMLAttribu
|
|
|
887
887
|
}
|
|
888
888
|
|
|
889
889
|
export declare const Menu: {
|
|
890
|
-
({ "data-testid": dataTestId, isOpen, onIsOpenChange, isDisabled, children, isVirtualizationDisabled, }: MenuProps):
|
|
890
|
+
({ "data-testid": dataTestId, isOpen, onIsOpenChange, isDisabled, children, isVirtualizationDisabled, }: MenuProps): React_2.ReactElement;
|
|
891
891
|
displayName: string;
|
|
892
892
|
};
|
|
893
893
|
|
|
@@ -927,7 +927,7 @@ export declare interface MenuPaneProps extends AllHTMLAttributes<HTMLDivElement>
|
|
|
927
927
|
/** Defines where to prioritize placement of the pane. A demo of this behavior is available [here](https://popper.js.org/).
|
|
928
928
|
* @defaultValue "bottom-start"
|
|
929
929
|
*/
|
|
930
|
-
placement?:
|
|
930
|
+
placement?: Placement;
|
|
931
931
|
/** Determines whether or not to include search functionality.
|
|
932
932
|
* @defaultValue false
|
|
933
933
|
*/
|
|
@@ -988,7 +988,7 @@ declare type OnChange<V extends Values> = (fieldValue: V[keyof V]) => void;
|
|
|
988
988
|
declare type OnSubmit = (values?: Values, event?: FormEvent<HTMLFormElement>) => Promise<void> | void;
|
|
989
989
|
|
|
990
990
|
export declare const Pagination: {
|
|
991
|
-
({ hidePageNumber, hideFirstAndLastButtons, numPages, currentPage, onPageChange, isDisabled, "data-testid": dataTestId, }: PaginationProps):
|
|
991
|
+
({ hidePageNumber, hideFirstAndLastButtons, numPages, currentPage, onPageChange, isDisabled, "data-testid": dataTestId, }: PaginationProps): React_2.ReactElement;
|
|
992
992
|
displayName: string;
|
|
993
993
|
};
|
|
994
994
|
|
|
@@ -1063,6 +1063,8 @@ export declare interface PhoneNumberInputProps {
|
|
|
1063
1063
|
inputId?: string;
|
|
1064
1064
|
}
|
|
1065
1065
|
|
|
1066
|
+
declare type Placement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'right' | 'right-start' | 'right-end' | 'left' | 'left-start' | 'left-end';
|
|
1067
|
+
|
|
1066
1068
|
declare interface RadioRegisterProps<V extends Values> {
|
|
1067
1069
|
name: keyof V;
|
|
1068
1070
|
type: 'radio';
|
|
@@ -1091,7 +1093,7 @@ declare type Register<V extends Values> = {
|
|
|
1091
1093
|
|
|
1092
1094
|
declare type RenderCellContent = AdvancedTableColumnConfig['renderCellContent'];
|
|
1093
1095
|
|
|
1094
|
-
export declare const RowDisplayCount: ({ "data-testid": dataTestId, displayCount, displayCountOptions, onDisplayCountChange, isDisabled, }: RowDisplayCountProps) =>
|
|
1096
|
+
export declare const RowDisplayCount: ({ "data-testid": dataTestId, displayCount, displayCountOptions, onDisplayCountChange, isDisabled, }: RowDisplayCountProps) => React_2.ReactElement;
|
|
1095
1097
|
|
|
1096
1098
|
export declare interface RowDisplayCountProps {
|
|
1097
1099
|
/** The number of rows to show in pagination. */
|
|
@@ -1111,7 +1113,7 @@ export declare interface RowDisplayCountProps {
|
|
|
1111
1113
|
}
|
|
1112
1114
|
|
|
1113
1115
|
export declare const Select: {
|
|
1114
|
-
({ multiselect, children, isDisabled, onChange, isOpen, onIsOpenChange, value, isInvalid, "data-testid": dataTestId, isVirtualizationDisabled, }: SelectProps):
|
|
1116
|
+
({ multiselect, children, isDisabled, onChange, isOpen, onIsOpenChange, value, isInvalid, "data-testid": dataTestId, isVirtualizationDisabled, }: SelectProps): React_2.ReactElement;
|
|
1115
1117
|
displayName: string;
|
|
1116
1118
|
};
|
|
1117
1119
|
|
|
@@ -1147,7 +1149,7 @@ export declare interface SelectPaneProps extends AllHTMLAttributes<HTMLDivElemen
|
|
|
1147
1149
|
/** Defines where to prioritize placement of the pane.
|
|
1148
1150
|
* @defaultValue 'bottom-start'
|
|
1149
1151
|
*/
|
|
1150
|
-
placement?:
|
|
1152
|
+
placement?: Placement;
|
|
1151
1153
|
/** Determines whether or not to include search functionality.
|
|
1152
1154
|
* @defaultValue false
|
|
1153
1155
|
*/
|
|
@@ -1477,7 +1479,7 @@ declare interface TooltipProps_2 extends Omit<React_2.AllHTMLAttributes<HTMLDivE
|
|
|
1477
1479
|
/** Dictates the position of the tooltip relative to its anchor.
|
|
1478
1480
|
* @defaultValue 'top'
|
|
1479
1481
|
*/
|
|
1480
|
-
placement?:
|
|
1482
|
+
placement?: Placement;
|
|
1481
1483
|
/** If true, removes the arrow from the tooltip.
|
|
1482
1484
|
* @defaultValue false
|
|
1483
1485
|
*/
|
|
@@ -1542,7 +1544,7 @@ export declare interface TypographyProps extends HTMLAttributes<HTMLElement> {
|
|
|
1542
1544
|
declare type TypographyVariant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'body';
|
|
1543
1545
|
|
|
1544
1546
|
export declare function useForm<V extends Values>({ initialValues, validateField, }: UseFormOptions<V>): {
|
|
1545
|
-
Form: (props: FormProps) =>
|
|
1547
|
+
Form: (props: FormProps) => JSX_2.Element;
|
|
1546
1548
|
register: {
|
|
1547
1549
|
(name: keyof V, options: {
|
|
1548
1550
|
type: "text" | "email" | "password";
|