rsuite 5.73.0 → 5.74.0-beta.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/Animation/styles/animation.less +0 -0
- package/Animation/styles/mixin.less +0 -0
- package/Badge/styles/index.css +0 -0
- package/Badge/styles/index.less +0 -0
- package/ButtonGroup/styles/index.css +0 -0
- package/ButtonGroup/styles/index.less +0 -0
- package/Carousel/styles/index.css +0 -0
- package/Carousel/styles/index.less +0 -0
- package/CheckTree/styles/index.css +0 -1
- package/CheckTree/styles/index.less +0 -1
- package/CheckTreePicker/styles/index.css +0 -1
- package/Checkbox/styles/mixin.less +1 -1
- package/Container/styles/index.css +0 -0
- package/Container/styles/index.less +0 -0
- package/Content/styles/index.css +0 -0
- package/Content/styles/index.less +0 -0
- package/DatePicker/styles/mixin.less +0 -0
- package/Drawer/styles/mixin.less +0 -0
- package/FlexboxGrid/styles/index.css +0 -0
- package/FlexboxGrid/styles/index.less +0 -0
- package/Footer/styles/index.css +0 -0
- package/Footer/styles/index.less +0 -0
- package/Form/styles/index.css +0 -0
- package/Form/styles/index.less +0 -0
- package/FormControl/styles/index.css +0 -0
- package/FormControl/styles/index.less +0 -0
- package/FormControlLabel/styles/index.css +0 -0
- package/FormControlLabel/styles/index.less +0 -0
- package/FormErrorMessage/styles/animation.less +0 -0
- package/FormErrorMessage/styles/index.css +0 -0
- package/FormErrorMessage/styles/index.less +0 -0
- package/FormHelpText/styles/index.css +0 -0
- package/FormHelpText/styles/index.less +0 -0
- package/Grid/styles/grid-framework.less +0 -0
- package/Grid/styles/mixin.less +0 -0
- package/Header/styles/index.css +0 -0
- package/Header/styles/index.less +0 -0
- package/IconButton/styles/index.css +0 -0
- package/IconButton/styles/index.less +0 -0
- package/Input/styles/index.css +0 -0
- package/Input/styles/index.less +0 -0
- package/InputNumber/styles/index.css +0 -0
- package/InputNumber/styles/index.less +0 -0
- package/InputNumber/styles/mixin.less +0 -0
- package/List/styles/index.css +0 -0
- package/List/styles/index.less +0 -0
- package/Modal/styles/animation.less +0 -0
- package/Modal/styles/mixin.less +0 -0
- package/Notification/styles/mixin.less +0 -0
- package/Pagination/styles/mixin.less +0 -0
- package/PanelGroup/styles/index.css +0 -0
- package/PanelGroup/styles/index.less +0 -0
- package/Popover/styles/mixins.less +0 -0
- package/Progress/styles/animation.less +0 -0
- package/Radio/styles/mixin.less +0 -0
- package/RadioTile/styles/index.css +69 -0
- package/RadioTile/styles/index.less +3 -1
- package/Rate/styles/index.less +1 -1
- package/Row/styles/index.css +0 -0
- package/Row/styles/index.less +0 -0
- package/Sidebar/styles/index.css +0 -0
- package/Sidebar/styles/index.less +0 -0
- package/Sidenav/styles/mixin.less +0 -0
- package/Slider/styles/index.less +1 -1
- package/Stack/styles/index.css +0 -0
- package/Stack/styles/index.less +0 -0
- package/Table/styles/mixin.less +0 -0
- package/TagInput/styles/index.css +0 -3
- package/TagPicker/styles/index.css +0 -3
- package/TagPicker/styles/index.less +0 -2
- package/Timeline/styles/mixin.less +0 -0
- package/Tooltip/styles/index.css +0 -0
- package/Tooltip/styles/index.less +0 -0
- package/Tooltip/styles/mixins.less +0 -0
- package/Tree/styles/index.css +0 -3
- package/Tree/styles/index.less +0 -6
- package/TreePicker/styles/index.css +0 -3
- package/Uploader/styles/mixin.less +0 -0
- package/cjs/Accordion/Accordion.js +4 -1
- package/cjs/Affix/Affix.js +15 -12
- package/cjs/Affix/index.js +0 -0
- package/cjs/Animation/Bounce.js +4 -1
- package/cjs/Animation/Collapse.js +20 -17
- package/cjs/Animation/Fade.js +4 -1
- package/cjs/Animation/Slide.js +4 -1
- package/cjs/Animation/index.js +0 -0
- package/cjs/Animation/utils.js +0 -0
- package/cjs/AutoComplete/AutoComplete.d.ts +1 -2
- package/cjs/AutoComplete/AutoComplete.js +38 -35
- package/cjs/AutoComplete/index.js +0 -0
- package/cjs/Avatar/Avatar.js +23 -21
- package/cjs/Avatar/index.js +0 -0
- package/cjs/AvatarGroup/AvatarGroup.js +14 -11
- package/cjs/AvatarGroup/index.js +0 -0
- package/cjs/Badge/Badge.js +14 -11
- package/cjs/Badge/index.js +0 -0
- package/cjs/Breadcrumb/Breadcrumb.js +21 -20
- package/cjs/Breadcrumb/index.js +0 -0
- package/cjs/Button/Button.js +23 -20
- package/cjs/Button/index.js +0 -0
- package/cjs/ButtonGroup/ButtonGroup.js +16 -13
- package/cjs/ButtonGroup/index.js +0 -0
- package/cjs/ButtonToolbar/ButtonToolbar.js +11 -8
- package/cjs/ButtonToolbar/index.js +0 -0
- package/cjs/Calendar/Calendar.js +25 -25
- package/cjs/Calendar/CalendarBody.d.ts +1 -1
- package/cjs/Calendar/CalendarBody.js +5 -3
- package/cjs/Calendar/CalendarContainer.d.ts +1 -1
- package/cjs/Calendar/CalendarProvider.d.ts +1 -1
- package/cjs/Calendar/Grid/GridCell.js +8 -4
- package/cjs/Calendar/MonthDropdown/MonthDropdown.js +1 -1
- package/cjs/Calendar/MonthDropdown/MonthDropdownItem.d.ts +1 -1
- package/cjs/Calendar/MonthDropdown/MonthDropdownItem.js +7 -4
- package/cjs/Calendar/hooks/useCalendarState.d.ts +1 -1
- package/cjs/Calendar/hooks/useCalendarState.js +15 -8
- package/cjs/Carousel/Carousel.js +24 -22
- package/cjs/Carousel/index.js +0 -0
- package/cjs/CascadeTree/CascadeTree.d.ts +1 -1
- package/cjs/CascadeTree/CascadeTree.js +33 -30
- package/cjs/CascadeTree/SearchView.js +10 -6
- package/cjs/CascadeTree/TreeView.d.ts +2 -2
- package/cjs/CascadeTree/TreeView.js +5 -4
- package/cjs/CascadeTree/types.d.ts +1 -1
- package/cjs/Cascader/Cascader.js +59 -57
- package/cjs/Cascader/index.js +0 -0
- package/cjs/CheckPicker/CheckPicker.d.ts +1 -1
- package/cjs/CheckPicker/CheckPicker.js +59 -58
- package/cjs/CheckPicker/index.js +0 -0
- package/cjs/CheckTree/CheckTree.js +28 -25
- package/cjs/CheckTree/CheckTreeNode.js +4 -3
- package/cjs/CheckTree/CheckTreeView.js +15 -11
- package/cjs/CheckTreePicker/CheckTreePicker.js +82 -81
- package/cjs/CheckTreePicker/index.js +0 -0
- package/cjs/Checkbox/Checkbox.js +38 -35
- package/cjs/Checkbox/index.js +0 -0
- package/cjs/CheckboxGroup/CheckboxGroup.js +19 -16
- package/cjs/CheckboxGroup/CheckboxGroupContext.js +0 -0
- package/cjs/CheckboxGroup/index.js +0 -0
- package/cjs/Col/Col.js +9 -6
- package/cjs/Col/index.js +0 -0
- package/cjs/Container/Container.js +10 -7
- package/cjs/Container/index.js +0 -0
- package/cjs/Content/index.js +0 -0
- package/cjs/CustomProvider/CustomProvider.d.ts +69 -64
- package/cjs/CustomProvider/CustomProvider.js +9 -7
- package/cjs/CustomProvider/FormattedDate.js +2 -2
- package/cjs/CustomProvider/index.d.ts +1 -0
- package/cjs/CustomProvider/index.js +3 -1
- package/cjs/CustomProvider/types.d.ts +212 -0
- package/cjs/CustomProvider/types.js +4 -0
- package/cjs/CustomProvider/useCustom.d.ts +21 -0
- package/cjs/CustomProvider/useCustom.js +115 -0
- package/cjs/DOMHelper/isElement.js +0 -0
- package/cjs/DateInput/DateInput.js +19 -15
- package/cjs/DateInput/hooks/useDateInputState.js +3 -3
- package/cjs/DatePicker/DatePicker.js +71 -70
- package/cjs/DatePicker/PredefinedRanges.d.ts +1 -1
- package/cjs/DatePicker/hooks/useFocus.js +7 -3
- package/cjs/DateRangeInput/DateRangeInput.js +25 -21
- package/cjs/DateRangePicker/Calendar.d.ts +2 -2
- package/cjs/DateRangePicker/DateRangePicker.js +77 -76
- package/cjs/Divider/Divider.js +11 -8
- package/cjs/Divider/index.js +0 -0
- package/cjs/Drawer/Drawer.js +19 -25
- package/cjs/Drawer/index.js +0 -0
- package/cjs/Dropdown/Dropdown.js +33 -32
- package/cjs/Dropdown/DropdownContext.js +0 -0
- package/cjs/Dropdown/DropdownMenu.d.ts +2 -2
- package/cjs/Dropdown/DropdownMenu.js +21 -20
- package/cjs/Dropdown/DropdownState.js +0 -0
- package/cjs/Dropdown/index.js +0 -0
- package/cjs/Dropdown/useRenderDropdownItem.js +0 -0
- package/cjs/FlexboxGrid/FlexboxGrid.js +14 -11
- package/cjs/FlexboxGrid/index.js +0 -0
- package/cjs/Footer/index.js +0 -0
- package/cjs/Form/Form.js +32 -29
- package/cjs/FormControl/FormControl.js +33 -30
- package/cjs/FormControl/hooks/useField.js +3 -0
- package/cjs/FormControl/index.js +0 -0
- package/cjs/FormControlLabel/FormControlLabel.js +13 -10
- package/cjs/FormControlLabel/index.js +0 -0
- package/cjs/FormErrorMessage/FormErrorMessage.js +12 -9
- package/cjs/FormErrorMessage/index.js +0 -0
- package/cjs/FormGroup/FormGroup.js +10 -7
- package/cjs/FormHelpText/FormHelpText.js +14 -11
- package/cjs/FormHelpText/index.js +0 -0
- package/cjs/Grid/Grid.js +10 -7
- package/cjs/Grid/index.js +0 -0
- package/cjs/Header/index.js +0 -0
- package/cjs/Heading/Heading.js +10 -7
- package/cjs/Highlight/Highlight.js +13 -10
- package/cjs/IconButton/IconButton.d.ts +1 -1
- package/cjs/IconButton/IconButton.js +13 -10
- package/cjs/IconButton/index.js +0 -0
- package/cjs/InlineEdit/InlineEdit.js +18 -15
- package/cjs/Input/Input.js +26 -23
- package/cjs/Input/index.js +0 -0
- package/cjs/InputGroup/InputGroup.js +13 -10
- package/cjs/InputGroup/index.js +0 -0
- package/cjs/InputNumber/InputNumber.js +31 -28
- package/cjs/InputNumber/index.js +0 -0
- package/cjs/InputPicker/InputPicker.js +72 -71
- package/cjs/List/List.d.ts +1 -1
- package/cjs/List/List.js +27 -24
- package/cjs/List/helper/AutoScroller.js +0 -0
- package/cjs/List/index.js +0 -0
- package/cjs/Loader/Loader.js +17 -14
- package/cjs/Loader/index.js +0 -0
- package/cjs/MaskedInput/MaskedInput.d.ts +1 -1
- package/cjs/MaskedInput/MaskedInput.js +6 -3
- package/cjs/MaskedInput/adjustCaretPosition.js +0 -0
- package/cjs/MaskedInput/conformToMask.js +0 -0
- package/cjs/MaskedInput/index.js +0 -0
- package/cjs/MaskedInput/types.js +0 -0
- package/cjs/MaskedInput/utilities.js +0 -0
- package/cjs/Message/Message.js +23 -20
- package/cjs/Message/index.js +0 -0
- package/cjs/Modal/Modal.d.ts +4 -0
- package/cjs/Modal/Modal.js +51 -49
- package/cjs/Modal/ModalBody.js +6 -5
- package/cjs/Modal/ModalContext.d.ts +4 -0
- package/cjs/Modal/ModalHeader.js +4 -4
- package/cjs/MultiCascadeTree/MultiCascadeTree.js +37 -34
- package/cjs/MultiCascadeTree/SearchView.d.ts +1 -1
- package/cjs/MultiCascadeTree/SearchView.js +9 -5
- package/cjs/MultiCascadeTree/TreeView.d.ts +1 -1
- package/cjs/MultiCascadeTree/TreeView.js +2 -1
- package/cjs/MultiCascadeTree/types.d.ts +1 -1
- package/cjs/MultiCascader/MultiCascader.d.ts +1 -1
- package/cjs/MultiCascader/MultiCascader.js +64 -63
- package/cjs/MultiCascader/index.js +0 -0
- package/cjs/Nav/Nav.d.ts +1 -1
- package/cjs/Nav/Nav.js +24 -21
- package/cjs/Nav/NavDropdownMenu.js +5 -4
- package/cjs/Nav/index.js +0 -0
- package/cjs/Navbar/Navbar.js +11 -8
- package/cjs/Navbar/NavbarDropdownMenu.js +4 -3
- package/cjs/Navbar/index.js +0 -0
- package/cjs/Notification/Notification.js +18 -15
- package/cjs/Notification/index.js +0 -0
- package/cjs/Pagination/Pagination.d.ts +2 -2
- package/cjs/Pagination/Pagination.js +27 -26
- package/cjs/Pagination/PaginationGroup.d.ts +1 -1
- package/cjs/Pagination/PaginationGroup.js +5 -3
- package/cjs/Pagination/index.js +0 -0
- package/cjs/Panel/Panel.d.ts +1 -1
- package/cjs/Panel/Panel.js +35 -32
- package/cjs/Panel/index.js +0 -0
- package/cjs/PanelGroup/PanelGroup.d.ts +1 -1
- package/cjs/PanelGroup/PanelGroup.js +15 -12
- package/cjs/PanelGroup/index.js +0 -0
- package/cjs/Placeholder/PlaceholderGraph.d.ts +1 -1
- package/cjs/Placeholder/PlaceholderGraph.js +14 -11
- package/cjs/Placeholder/PlaceholderGrid.d.ts +1 -1
- package/cjs/Placeholder/PlaceholderGrid.js +20 -17
- package/cjs/Placeholder/PlaceholderParagraph.d.ts +1 -1
- package/cjs/Placeholder/PlaceholderParagraph.js +19 -16
- package/cjs/Placeholder/index.js +0 -0
- package/cjs/Popover/Popover.d.ts +1 -1
- package/cjs/Popover/Popover.js +17 -14
- package/cjs/Popover/index.js +0 -0
- package/cjs/Progress/ProgressCircle.d.ts +1 -1
- package/cjs/Progress/ProgressCircle.js +27 -24
- package/cjs/Progress/ProgressLine.d.ts +1 -1
- package/cjs/Progress/ProgressLine.js +19 -16
- package/cjs/Progress/index.js +0 -0
- package/cjs/Radio/Radio.d.ts +1 -1
- package/cjs/Radio/Radio.js +31 -28
- package/cjs/Radio/index.js +0 -0
- package/cjs/RadioGroup/RadioGroup.d.ts +2 -2
- package/cjs/RadioGroup/RadioGroup.js +21 -18
- package/cjs/RadioGroup/index.js +0 -0
- package/cjs/RadioTile/RadioTile.d.ts +1 -1
- package/cjs/RadioTile/RadioTile.js +22 -19
- package/cjs/RadioTileGroup/RadioTileGroup.d.ts +2 -2
- package/cjs/RadioTileGroup/RadioTileGroup.js +17 -14
- package/cjs/RangeSlider/RangeSlider.js +43 -40
- package/cjs/RangeSlider/index.js +0 -0
- package/cjs/Rate/Rate.d.ts +1 -1
- package/cjs/Rate/Rate.js +32 -29
- package/cjs/Rate/index.js +0 -0
- package/cjs/Rate/utils.js +0 -0
- package/cjs/Row/Row.d.ts +1 -1
- package/cjs/Row/Row.js +12 -9
- package/cjs/Row/index.js +0 -0
- package/cjs/SafeAnchor/SafeAnchor.d.ts +1 -1
- package/cjs/SafeAnchor/SafeAnchor.js +9 -6
- package/cjs/SafeAnchor/index.js +0 -0
- package/cjs/Schema/index.js +0 -0
- package/cjs/SelectPicker/SelectPicker.d.ts +3 -3
- package/cjs/SelectPicker/SelectPicker.js +56 -55
- package/cjs/SelectPicker/index.js +0 -0
- package/cjs/Sidebar/Sidebar.d.ts +1 -1
- package/cjs/Sidebar/Sidebar.js +13 -10
- package/cjs/Sidebar/index.js +0 -0
- package/cjs/Sidenav/ExpandedSidenavDropdownMenu.js +8 -7
- package/cjs/Sidenav/Node.js +0 -0
- package/cjs/Sidenav/Sidenav.d.ts +1 -1
- package/cjs/Sidenav/Sidenav.js +19 -16
- package/cjs/Sidenav/SidenavDropdownMenu.d.ts +2 -2
- package/cjs/Sidenav/SidenavDropdownMenu.js +7 -6
- package/cjs/Sidenav/index.js +0 -0
- package/cjs/Slider/Input.js +0 -0
- package/cjs/Slider/Slider.d.ts +1 -1
- package/cjs/Slider/Slider.js +42 -39
- package/cjs/Slider/index.js +0 -0
- package/cjs/Stack/Stack.d.ts +1 -1
- package/cjs/Stack/Stack.js +21 -19
- package/cjs/Steps/Steps.d.ts +1 -1
- package/cjs/Steps/Steps.js +17 -14
- package/cjs/Steps/index.js +0 -0
- package/cjs/Table/Table.d.ts +1 -1
- package/cjs/Table/Table.js +8 -8
- package/cjs/Table/index.d.ts +3 -1
- package/cjs/Tabs/Tabs.d.ts +1 -1
- package/cjs/Tabs/Tabs.js +21 -19
- package/cjs/Tag/Tag.d.ts +4 -1
- package/cjs/Tag/Tag.js +23 -18
- package/cjs/Tag/index.js +0 -0
- package/cjs/TagGroup/index.js +0 -0
- package/cjs/TagInput/index.js +11 -8
- package/cjs/TagPicker/index.js +10 -7
- package/cjs/Text/Text.d.ts +1 -1
- package/cjs/Text/Text.js +17 -14
- package/cjs/TimePicker/TimePicker.js +8 -6
- package/cjs/TimeRangePicker/TimeRangePicker.js +8 -5
- package/cjs/Timeline/Timeline.d.ts +1 -1
- package/cjs/Timeline/Timeline.js +15 -12
- package/cjs/Timeline/index.js +0 -0
- package/cjs/Toggle/Toggle.d.ts +2 -2
- package/cjs/Toggle/Toggle.js +26 -25
- package/cjs/Toggle/index.js +0 -0
- package/cjs/Tooltip/Tooltip.d.ts +1 -1
- package/cjs/Tooltip/Tooltip.js +14 -11
- package/cjs/Tooltip/index.js +0 -0
- package/cjs/Tree/Tree.d.ts +1 -1
- package/cjs/Tree/Tree.js +28 -25
- package/cjs/Tree/TreeNode.js +3 -2
- package/cjs/Tree/TreeNodeToggle.js +2 -1
- package/cjs/Tree/TreeView.js +14 -10
- package/cjs/Tree/hooks/useFocusTree.js +3 -2
- package/cjs/Tree/index.js +0 -0
- package/cjs/TreePicker/TreePicker.d.ts +1 -1
- package/cjs/TreePicker/TreePicker.js +89 -88
- package/cjs/TreePicker/index.js +0 -0
- package/cjs/Uploader/UploadFileItem.d.ts +3 -3
- package/cjs/Uploader/UploadFileItem.js +1 -1
- package/cjs/Uploader/UploadTrigger.d.ts +1 -1
- package/cjs/Uploader/UploadTrigger.js +1 -1
- package/cjs/Uploader/Uploader.d.ts +3 -3
- package/cjs/Uploader/Uploader.js +60 -59
- package/cjs/Uploader/index.js +0 -0
- package/cjs/Whisper/Whisper.js +13 -13
- package/cjs/Whisper/index.js +0 -0
- package/cjs/internals/CloseButton/CloseButton.js +6 -3
- package/cjs/internals/Menu/Menu.js +3 -2
- package/cjs/internals/Menu/Menubar.js +3 -3
- package/cjs/internals/Overlay/OverlayTrigger.d.ts +2 -2
- package/cjs/internals/Overlay/OverlayTrigger.js +4 -4
- package/cjs/internals/Picker/PickerIndicator.js +7 -4
- package/cjs/internals/Picker/PickerToggleTrigger.d.ts +1 -1
- package/cjs/internals/Picker/PickerToggleTrigger.js +2 -1
- package/cjs/internals/Picker/SelectedElement.d.ts +1 -1
- package/cjs/internals/Plaintext/Plaintext.js +4 -3
- package/cjs/internals/Ripple/Ripple.d.ts +1 -1
- package/cjs/internals/Ripple/Ripple.js +3 -2
- package/cjs/internals/Windowing/List.d.ts +1 -1
- package/cjs/internals/Windowing/List.js +3 -3
- package/cjs/internals/hooks/index.d.ts +0 -1
- package/cjs/internals/hooks/index.js +1 -3
- package/cjs/internals/hooks/useFocusVirtualListItem.d.ts +5 -2
- package/cjs/internals/hooks/useFocusVirtualListItem.js +23 -7
- package/cjs/internals/hooks/useToggleCaret.js +2 -2
- package/cjs/internals/utils/createComponent.js +10 -7
- package/cjs/internals/utils/date/types.d.ts +53 -0
- package/cjs/locales/ar_EG.d.ts +34 -1
- package/cjs/locales/ar_EG.js +16 -12
- package/cjs/locales/ca_ES.d.ts +38 -1
- package/cjs/locales/ca_ES.js +16 -12
- package/cjs/locales/cs_CZ.d.ts +38 -1
- package/cjs/locales/cs_CZ.js +16 -12
- package/cjs/locales/da_DK.d.ts +38 -1
- package/cjs/locales/da_DK.js +16 -12
- package/cjs/locales/de_DE.d.ts +38 -1
- package/cjs/locales/de_DE.js +16 -12
- package/cjs/locales/en_GB.d.ts +38 -1
- package/cjs/locales/en_GB.js +16 -12
- package/cjs/locales/en_US.d.ts +34 -1
- package/cjs/locales/en_US.js +16 -12
- package/cjs/locales/es_AR.d.ts +38 -1
- package/cjs/locales/es_AR.js +16 -12
- package/cjs/locales/es_ES.d.ts +38 -1
- package/cjs/locales/es_ES.js +16 -12
- package/cjs/locales/fa_IR.d.ts +34 -1
- package/cjs/locales/fa_IR.js +16 -12
- package/cjs/locales/fi_FI.d.ts +38 -5
- package/cjs/locales/fi_FI.js +16 -16
- package/cjs/locales/fr_FR.d.ts +34 -1
- package/cjs/locales/fr_FR.js +16 -12
- package/cjs/locales/hu_HU.d.ts +38 -1
- package/cjs/locales/hu_HU.js +16 -12
- package/cjs/locales/index.d.ts +1 -1
- package/cjs/locales/it_IT.d.ts +38 -1
- package/cjs/locales/it_IT.js +16 -12
- package/cjs/locales/ja_JP.d.ts +38 -1
- package/cjs/locales/ja_JP.js +16 -12
- package/cjs/locales/kk_KZ.d.ts +34 -1
- package/cjs/locales/kk_KZ.js +16 -12
- package/cjs/locales/ko_KR.d.ts +38 -1
- package/cjs/locales/ko_KR.js +16 -12
- package/cjs/locales/ne_NP.d.ts +38 -1
- package/cjs/locales/ne_NP.js +16 -12
- package/cjs/locales/nl_NL.d.ts +34 -1
- package/cjs/locales/nl_NL.js +16 -12
- package/cjs/locales/pt_BR.d.ts +34 -1
- package/cjs/locales/pt_BR.js +16 -12
- package/cjs/locales/ru_RU.d.ts +34 -1
- package/cjs/locales/ru_RU.js +16 -12
- package/cjs/locales/sv_SE.d.ts +38 -1
- package/cjs/locales/sv_SE.js +16 -12
- package/cjs/locales/tr_TR.d.ts +34 -1
- package/cjs/locales/tr_TR.js +16 -12
- package/cjs/locales/zh_CN.d.ts +34 -1
- package/cjs/locales/zh_CN.js +16 -12
- package/cjs/locales/zh_TW.d.ts +34 -1
- package/cjs/locales/zh_TW.js +16 -12
- package/cjs/useToaster/useToaster.js +3 -3
- package/dist/rsuite-no-reset-rtl.css +0 -7
- package/dist/rsuite-no-reset-rtl.min.css +1 -1
- package/dist/rsuite-no-reset-rtl.min.css.map +1 -1
- package/dist/rsuite-no-reset.css +0 -7
- package/dist/rsuite-no-reset.min.css +1 -1
- package/dist/rsuite-no-reset.min.css.map +1 -1
- package/dist/rsuite-rtl.css +0 -7
- package/dist/rsuite-rtl.min.css +1 -1
- package/dist/rsuite-rtl.min.css.map +1 -1
- package/dist/rsuite.css +0 -7
- package/dist/rsuite.js +261 -262
- package/dist/rsuite.js.map +1 -1
- package/dist/rsuite.min.css +1 -1
- package/dist/rsuite.min.css.map +1 -1
- package/dist/rsuite.min.js +1 -1
- package/dist/rsuite.min.js.map +1 -1
- package/esm/Accordion/Accordion.js +4 -1
- package/esm/Affix/Affix.js +15 -12
- package/esm/Affix/index.js +0 -0
- package/esm/Animation/Bounce.js +4 -1
- package/esm/Animation/Collapse.js +20 -17
- package/esm/Animation/Fade.js +4 -1
- package/esm/Animation/Slide.js +4 -1
- package/esm/Animation/index.js +0 -0
- package/esm/Animation/utils.js +0 -0
- package/esm/AutoComplete/AutoComplete.d.ts +1 -2
- package/esm/AutoComplete/AutoComplete.js +38 -35
- package/esm/AutoComplete/index.js +0 -0
- package/esm/Avatar/Avatar.js +24 -22
- package/esm/Avatar/index.js +0 -0
- package/esm/AvatarGroup/AvatarGroup.js +14 -11
- package/esm/AvatarGroup/index.js +0 -0
- package/esm/Badge/Badge.js +14 -11
- package/esm/Badge/index.js +0 -0
- package/esm/Breadcrumb/Breadcrumb.js +22 -21
- package/esm/Breadcrumb/index.js +0 -0
- package/esm/Button/Button.js +23 -20
- package/esm/Button/index.js +0 -0
- package/esm/ButtonGroup/ButtonGroup.js +16 -13
- package/esm/ButtonGroup/index.js +0 -0
- package/esm/ButtonToolbar/ButtonToolbar.js +11 -8
- package/esm/ButtonToolbar/index.js +0 -0
- package/esm/Calendar/Calendar.js +27 -26
- package/esm/Calendar/CalendarBody.d.ts +1 -1
- package/esm/Calendar/CalendarBody.js +6 -4
- package/esm/Calendar/CalendarContainer.d.ts +1 -1
- package/esm/Calendar/CalendarProvider.d.ts +1 -1
- package/esm/Calendar/Grid/GridCell.js +9 -5
- package/esm/Calendar/MonthDropdown/MonthDropdown.js +1 -1
- package/esm/Calendar/MonthDropdown/MonthDropdownItem.d.ts +1 -1
- package/esm/Calendar/MonthDropdown/MonthDropdownItem.js +7 -4
- package/esm/Calendar/hooks/useCalendarState.d.ts +1 -1
- package/esm/Calendar/hooks/useCalendarState.js +16 -9
- package/esm/Carousel/Carousel.js +25 -23
- package/esm/Carousel/index.js +0 -0
- package/esm/CascadeTree/CascadeTree.d.ts +1 -1
- package/esm/CascadeTree/CascadeTree.js +33 -30
- package/esm/CascadeTree/SearchView.js +10 -6
- package/esm/CascadeTree/TreeView.d.ts +2 -2
- package/esm/CascadeTree/TreeView.js +4 -3
- package/esm/CascadeTree/types.d.ts +1 -1
- package/esm/Cascader/Cascader.js +60 -58
- package/esm/Cascader/index.js +0 -0
- package/esm/CheckPicker/CheckPicker.d.ts +1 -1
- package/esm/CheckPicker/CheckPicker.js +60 -59
- package/esm/CheckPicker/index.js +0 -0
- package/esm/CheckTree/CheckTree.js +28 -25
- package/esm/CheckTree/CheckTreeNode.js +4 -3
- package/esm/CheckTree/CheckTreeView.js +15 -11
- package/esm/CheckTreePicker/CheckTreePicker.js +83 -82
- package/esm/CheckTreePicker/index.js +0 -0
- package/esm/Checkbox/Checkbox.js +38 -35
- package/esm/Checkbox/index.js +0 -0
- package/esm/CheckboxGroup/CheckboxGroup.js +19 -16
- package/esm/CheckboxGroup/CheckboxGroupContext.js +0 -0
- package/esm/CheckboxGroup/index.js +0 -0
- package/esm/Col/Col.js +9 -6
- package/esm/Col/index.js +0 -0
- package/esm/Container/Container.js +10 -7
- package/esm/Container/index.js +0 -0
- package/esm/Content/index.js +0 -0
- package/esm/CustomProvider/CustomProvider.d.ts +69 -64
- package/esm/CustomProvider/CustomProvider.js +8 -8
- package/esm/CustomProvider/FormattedDate.js +1 -1
- package/esm/CustomProvider/index.d.ts +1 -0
- package/esm/CustomProvider/index.js +1 -0
- package/esm/CustomProvider/types.d.ts +212 -0
- package/esm/CustomProvider/types.js +2 -0
- package/esm/CustomProvider/useCustom.d.ts +21 -0
- package/esm/CustomProvider/useCustom.js +109 -0
- package/esm/DOMHelper/isElement.js +0 -0
- package/esm/DateInput/DateInput.js +20 -16
- package/esm/DateInput/hooks/useDateInputState.js +2 -2
- package/esm/DatePicker/DatePicker.js +72 -71
- package/esm/DatePicker/PredefinedRanges.d.ts +1 -1
- package/esm/DatePicker/hooks/useFocus.js +8 -4
- package/esm/DateRangeInput/DateRangeInput.js +26 -22
- package/esm/DateRangePicker/Calendar.d.ts +2 -2
- package/esm/DateRangePicker/DateRangePicker.js +77 -76
- package/esm/Divider/Divider.js +11 -8
- package/esm/Divider/index.js +0 -0
- package/esm/Drawer/Drawer.js +19 -23
- package/esm/Drawer/index.js +0 -0
- package/esm/Dropdown/Dropdown.js +33 -32
- package/esm/Dropdown/DropdownContext.js +0 -0
- package/esm/Dropdown/DropdownMenu.d.ts +2 -2
- package/esm/Dropdown/DropdownMenu.js +6 -5
- package/esm/Dropdown/DropdownState.js +0 -0
- package/esm/Dropdown/index.js +0 -0
- package/esm/Dropdown/useRenderDropdownItem.js +0 -0
- package/esm/FlexboxGrid/FlexboxGrid.js +14 -11
- package/esm/FlexboxGrid/index.js +0 -0
- package/esm/Footer/index.js +0 -0
- package/esm/Form/Form.js +32 -29
- package/esm/FormControl/FormControl.js +34 -31
- package/esm/FormControl/hooks/useField.js +4 -1
- package/esm/FormControl/index.js +0 -0
- package/esm/FormControlLabel/FormControlLabel.js +13 -10
- package/esm/FormControlLabel/index.js +0 -0
- package/esm/FormErrorMessage/FormErrorMessage.js +12 -9
- package/esm/FormErrorMessage/index.js +0 -0
- package/esm/FormGroup/FormGroup.js +10 -7
- package/esm/FormHelpText/FormHelpText.js +14 -11
- package/esm/FormHelpText/index.js +0 -0
- package/esm/Grid/Grid.js +10 -7
- package/esm/Grid/index.js +0 -0
- package/esm/Header/index.js +0 -0
- package/esm/Heading/Heading.js +10 -7
- package/esm/Highlight/Highlight.js +13 -10
- package/esm/IconButton/IconButton.d.ts +1 -1
- package/esm/IconButton/IconButton.js +13 -10
- package/esm/IconButton/index.js +0 -0
- package/esm/InlineEdit/InlineEdit.js +18 -15
- package/esm/Input/Input.js +26 -23
- package/esm/Input/index.js +0 -0
- package/esm/InputGroup/InputGroup.js +13 -10
- package/esm/InputGroup/index.js +0 -0
- package/esm/InputNumber/InputNumber.js +31 -28
- package/esm/InputNumber/index.js +0 -0
- package/esm/InputPicker/InputPicker.js +73 -72
- package/esm/List/List.d.ts +1 -1
- package/esm/List/List.js +27 -24
- package/esm/List/helper/AutoScroller.js +0 -0
- package/esm/List/index.js +0 -0
- package/esm/Loader/Loader.js +17 -14
- package/esm/Loader/index.js +0 -0
- package/esm/MaskedInput/MaskedInput.d.ts +1 -1
- package/esm/MaskedInput/MaskedInput.js +6 -3
- package/esm/MaskedInput/adjustCaretPosition.js +0 -0
- package/esm/MaskedInput/conformToMask.js +0 -0
- package/esm/MaskedInput/index.js +0 -0
- package/esm/MaskedInput/types.js +0 -0
- package/esm/MaskedInput/utilities.js +0 -0
- package/esm/Message/Message.js +23 -20
- package/esm/Message/index.js +0 -0
- package/esm/Modal/Modal.d.ts +4 -0
- package/esm/Modal/Modal.js +52 -50
- package/esm/Modal/ModalBody.js +6 -5
- package/esm/Modal/ModalContext.d.ts +4 -0
- package/esm/Modal/ModalHeader.js +4 -4
- package/esm/MultiCascadeTree/MultiCascadeTree.js +37 -34
- package/esm/MultiCascadeTree/SearchView.d.ts +1 -1
- package/esm/MultiCascadeTree/SearchView.js +9 -5
- package/esm/MultiCascadeTree/TreeView.d.ts +1 -1
- package/esm/MultiCascadeTree/TreeView.js +2 -1
- package/esm/MultiCascadeTree/types.d.ts +1 -1
- package/esm/MultiCascader/MultiCascader.d.ts +1 -1
- package/esm/MultiCascader/MultiCascader.js +66 -65
- package/esm/MultiCascader/index.js +0 -0
- package/esm/Nav/Nav.d.ts +1 -1
- package/esm/Nav/Nav.js +24 -21
- package/esm/Nav/NavDropdownMenu.js +5 -4
- package/esm/Nav/index.js +0 -0
- package/esm/Navbar/Navbar.js +11 -8
- package/esm/Navbar/NavbarDropdownMenu.js +5 -4
- package/esm/Navbar/index.js +0 -0
- package/esm/Notification/Notification.js +18 -15
- package/esm/Notification/index.js +0 -0
- package/esm/Pagination/Pagination.d.ts +2 -2
- package/esm/Pagination/Pagination.js +28 -27
- package/esm/Pagination/PaginationGroup.d.ts +1 -1
- package/esm/Pagination/PaginationGroup.js +6 -4
- package/esm/Pagination/index.js +0 -0
- package/esm/Panel/Panel.d.ts +1 -1
- package/esm/Panel/Panel.js +35 -32
- package/esm/Panel/index.js +0 -0
- package/esm/PanelGroup/PanelGroup.d.ts +1 -1
- package/esm/PanelGroup/PanelGroup.js +15 -12
- package/esm/PanelGroup/index.js +0 -0
- package/esm/Placeholder/PlaceholderGraph.d.ts +1 -1
- package/esm/Placeholder/PlaceholderGraph.js +14 -11
- package/esm/Placeholder/PlaceholderGrid.d.ts +1 -1
- package/esm/Placeholder/PlaceholderGrid.js +20 -17
- package/esm/Placeholder/PlaceholderParagraph.d.ts +1 -1
- package/esm/Placeholder/PlaceholderParagraph.js +19 -16
- package/esm/Placeholder/index.js +0 -0
- package/esm/Popover/Popover.d.ts +1 -1
- package/esm/Popover/Popover.js +17 -14
- package/esm/Popover/index.js +0 -0
- package/esm/Progress/ProgressCircle.d.ts +1 -1
- package/esm/Progress/ProgressCircle.js +27 -24
- package/esm/Progress/ProgressLine.d.ts +1 -1
- package/esm/Progress/ProgressLine.js +19 -16
- package/esm/Progress/index.js +0 -0
- package/esm/Radio/Radio.d.ts +1 -1
- package/esm/Radio/Radio.js +31 -28
- package/esm/Radio/index.js +0 -0
- package/esm/RadioGroup/RadioGroup.d.ts +2 -2
- package/esm/RadioGroup/RadioGroup.js +21 -18
- package/esm/RadioGroup/index.js +0 -0
- package/esm/RadioTile/RadioTile.d.ts +1 -1
- package/esm/RadioTile/RadioTile.js +22 -19
- package/esm/RadioTileGroup/RadioTileGroup.d.ts +2 -2
- package/esm/RadioTileGroup/RadioTileGroup.js +17 -14
- package/esm/RangeSlider/RangeSlider.js +43 -40
- package/esm/RangeSlider/index.js +0 -0
- package/esm/Rate/Rate.d.ts +1 -1
- package/esm/Rate/Rate.js +32 -29
- package/esm/Rate/index.js +0 -0
- package/esm/Rate/utils.js +0 -0
- package/esm/Row/Row.d.ts +1 -1
- package/esm/Row/Row.js +12 -9
- package/esm/Row/index.js +0 -0
- package/esm/SafeAnchor/SafeAnchor.d.ts +1 -1
- package/esm/SafeAnchor/SafeAnchor.js +9 -6
- package/esm/SafeAnchor/index.js +0 -0
- package/esm/Schema/index.js +0 -0
- package/esm/SelectPicker/SelectPicker.d.ts +3 -3
- package/esm/SelectPicker/SelectPicker.js +57 -56
- package/esm/SelectPicker/index.js +0 -0
- package/esm/Sidebar/Sidebar.d.ts +1 -1
- package/esm/Sidebar/Sidebar.js +13 -10
- package/esm/Sidebar/index.js +0 -0
- package/esm/Sidenav/ExpandedSidenavDropdownMenu.js +8 -7
- package/esm/Sidenav/Node.js +0 -0
- package/esm/Sidenav/Sidenav.d.ts +1 -1
- package/esm/Sidenav/Sidenav.js +19 -16
- package/esm/Sidenav/SidenavDropdownMenu.d.ts +2 -2
- package/esm/Sidenav/SidenavDropdownMenu.js +7 -6
- package/esm/Sidenav/index.js +0 -0
- package/esm/Slider/Input.js +0 -0
- package/esm/Slider/Slider.d.ts +1 -1
- package/esm/Slider/Slider.js +43 -40
- package/esm/Slider/index.js +0 -0
- package/esm/Stack/Stack.d.ts +1 -1
- package/esm/Stack/Stack.js +22 -20
- package/esm/Steps/Steps.d.ts +1 -1
- package/esm/Steps/Steps.js +17 -14
- package/esm/Steps/index.js +0 -0
- package/esm/Table/Table.d.ts +1 -1
- package/esm/Table/Table.js +8 -8
- package/esm/Table/index.d.ts +3 -1
- package/esm/Tabs/Tabs.d.ts +1 -1
- package/esm/Tabs/Tabs.js +21 -19
- package/esm/Tag/Tag.d.ts +4 -1
- package/esm/Tag/Tag.js +23 -18
- package/esm/Tag/index.js +0 -0
- package/esm/TagGroup/index.js +0 -0
- package/esm/TagInput/index.js +11 -8
- package/esm/TagPicker/index.js +10 -7
- package/esm/Text/Text.d.ts +1 -1
- package/esm/Text/Text.js +17 -14
- package/esm/TimePicker/TimePicker.js +8 -6
- package/esm/TimeRangePicker/TimeRangePicker.js +8 -5
- package/esm/Timeline/Timeline.d.ts +1 -1
- package/esm/Timeline/Timeline.js +15 -12
- package/esm/Timeline/index.js +0 -0
- package/esm/Toggle/Toggle.d.ts +2 -2
- package/esm/Toggle/Toggle.js +27 -26
- package/esm/Toggle/index.js +0 -0
- package/esm/Tooltip/Tooltip.d.ts +1 -1
- package/esm/Tooltip/Tooltip.js +14 -11
- package/esm/Tooltip/index.js +0 -0
- package/esm/Tree/Tree.d.ts +1 -1
- package/esm/Tree/Tree.js +28 -25
- package/esm/Tree/TreeNode.js +3 -2
- package/esm/Tree/TreeNodeToggle.js +2 -1
- package/esm/Tree/TreeView.js +14 -10
- package/esm/Tree/hooks/useFocusTree.js +3 -2
- package/esm/Tree/index.js +0 -0
- package/esm/TreePicker/TreePicker.d.ts +1 -1
- package/esm/TreePicker/TreePicker.js +89 -88
- package/esm/TreePicker/index.js +0 -0
- package/esm/Uploader/UploadFileItem.d.ts +3 -3
- package/esm/Uploader/UploadFileItem.js +1 -1
- package/esm/Uploader/UploadTrigger.d.ts +1 -1
- package/esm/Uploader/UploadTrigger.js +1 -1
- package/esm/Uploader/Uploader.d.ts +3 -3
- package/esm/Uploader/Uploader.js +61 -60
- package/esm/Uploader/index.js +0 -0
- package/esm/Whisper/Whisper.js +14 -12
- package/esm/Whisper/index.js +0 -0
- package/esm/internals/CloseButton/CloseButton.js +7 -4
- package/esm/internals/Menu/Menu.js +4 -3
- package/esm/internals/Menu/Menubar.js +3 -3
- package/esm/internals/Overlay/OverlayTrigger.d.ts +2 -2
- package/esm/internals/Overlay/OverlayTrigger.js +4 -4
- package/esm/internals/Picker/PickerIndicator.js +6 -3
- package/esm/internals/Picker/PickerToggleTrigger.d.ts +1 -1
- package/esm/internals/Picker/PickerToggleTrigger.js +2 -1
- package/esm/internals/Picker/SelectedElement.d.ts +1 -1
- package/esm/internals/Plaintext/Plaintext.js +5 -4
- package/esm/internals/Ripple/Ripple.d.ts +1 -1
- package/esm/internals/Ripple/Ripple.js +2 -1
- package/esm/internals/Windowing/List.d.ts +1 -1
- package/esm/internals/Windowing/List.js +2 -2
- package/esm/internals/hooks/index.d.ts +0 -1
- package/esm/internals/hooks/index.js +0 -1
- package/esm/internals/hooks/useFocusVirtualListItem.d.ts +5 -2
- package/esm/internals/hooks/useFocusVirtualListItem.js +23 -7
- package/esm/internals/hooks/useToggleCaret.js +2 -2
- package/esm/internals/utils/createComponent.js +10 -7
- package/esm/internals/utils/date/types.d.ts +53 -0
- package/esm/locales/ar_EG.d.ts +34 -1
- package/esm/locales/ar_EG.js +16 -12
- package/esm/locales/ca_ES.d.ts +38 -1
- package/esm/locales/ca_ES.js +16 -12
- package/esm/locales/cs_CZ.d.ts +38 -1
- package/esm/locales/cs_CZ.js +16 -12
- package/esm/locales/da_DK.d.ts +38 -1
- package/esm/locales/da_DK.js +16 -12
- package/esm/locales/de_DE.d.ts +38 -1
- package/esm/locales/de_DE.js +16 -12
- package/esm/locales/en_GB.d.ts +38 -1
- package/esm/locales/en_GB.js +16 -12
- package/esm/locales/en_US.d.ts +34 -1
- package/esm/locales/en_US.js +16 -12
- package/esm/locales/es_AR.d.ts +38 -1
- package/esm/locales/es_AR.js +16 -12
- package/esm/locales/es_ES.d.ts +38 -1
- package/esm/locales/es_ES.js +16 -12
- package/esm/locales/fa_IR.d.ts +34 -1
- package/esm/locales/fa_IR.js +16 -12
- package/esm/locales/fi_FI.d.ts +38 -5
- package/esm/locales/fi_FI.js +16 -16
- package/esm/locales/fr_FR.d.ts +34 -1
- package/esm/locales/fr_FR.js +16 -12
- package/esm/locales/hu_HU.d.ts +38 -1
- package/esm/locales/hu_HU.js +16 -12
- package/esm/locales/index.d.ts +1 -1
- package/esm/locales/it_IT.d.ts +38 -1
- package/esm/locales/it_IT.js +16 -12
- package/esm/locales/ja_JP.d.ts +38 -1
- package/esm/locales/ja_JP.js +16 -12
- package/esm/locales/kk_KZ.d.ts +34 -1
- package/esm/locales/kk_KZ.js +16 -12
- package/esm/locales/ko_KR.d.ts +38 -1
- package/esm/locales/ko_KR.js +16 -12
- package/esm/locales/ne_NP.d.ts +38 -1
- package/esm/locales/ne_NP.js +16 -12
- package/esm/locales/nl_NL.d.ts +34 -1
- package/esm/locales/nl_NL.js +16 -12
- package/esm/locales/pt_BR.d.ts +34 -1
- package/esm/locales/pt_BR.js +16 -12
- package/esm/locales/ru_RU.d.ts +34 -1
- package/esm/locales/ru_RU.js +16 -12
- package/esm/locales/sv_SE.d.ts +38 -1
- package/esm/locales/sv_SE.js +16 -12
- package/esm/locales/tr_TR.d.ts +34 -1
- package/esm/locales/tr_TR.js +16 -12
- package/esm/locales/zh_CN.d.ts +34 -1
- package/esm/locales/zh_CN.js +16 -12
- package/esm/locales/zh_TW.d.ts +34 -1
- package/esm/locales/zh_TW.js +16 -12
- package/esm/useToaster/useToaster.js +4 -4
- package/package.json +1 -1
- package/styles/mixins/hacks.less +0 -0
- package/styles/mixins/menu.less +0 -0
- package/styles/mixins/utilities.less +0 -0
- package/styles/scaffolding.less +0 -0
- package/styles/typography.less +0 -0
- package/toaster/styles/animation.less +0 -0
- package/cjs/Drawer/DrawerContext.d.ts +0 -9
- package/cjs/Drawer/DrawerContext.js +0 -9
- package/cjs/internals/hooks/useCustom.d.ts +0 -7
- package/cjs/internals/hooks/useCustom.js +0 -80
- package/esm/Drawer/DrawerContext.d.ts +0 -9
- package/esm/Drawer/DrawerContext.js +0 -4
- package/esm/internals/hooks/useCustom.d.ts +0 -7
- package/esm/internals/hooks/useCustom.js +0 -74
|
@@ -6,16 +6,16 @@ exports.__esModule = true;
|
|
|
6
6
|
exports.default = exports.OverlayCloseCause = void 0;
|
|
7
7
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
8
8
|
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
9
|
-
var _isUndefined2 = _interopRequireDefault(require("lodash/isUndefined"));
|
|
10
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
10
|
var _get = _interopRequireDefault(require("lodash/get"));
|
|
12
11
|
var _isNil = _interopRequireDefault(require("lodash/isNil"));
|
|
12
|
+
var _isUndefined = _interopRequireDefault(require("lodash/isUndefined"));
|
|
13
13
|
var _contains = _interopRequireDefault(require("dom-lib/contains"));
|
|
14
|
+
var _OverlayContext = _interopRequireDefault(require("./OverlayContext"));
|
|
14
15
|
var _Overlay = _interopRequireDefault(require("./Overlay"));
|
|
15
16
|
var _hooks = require("../hooks");
|
|
16
17
|
var _utils = require("../utils");
|
|
17
18
|
var _ReactChildren = require("../utils/ReactChildren");
|
|
18
|
-
var _OverlayContext = _interopRequireDefault(require("./OverlayContext"));
|
|
19
19
|
var _excluded = ["children", "container", "controlId", "defaultOpen", "trigger", "disabled", "followCursor", "readOnly", "plaintext", "open", "delay", "delayOpen", "delayClose", "enterable", "placement", "speaker", "rootClose", "onClick", "onMouseOver", "onMouseMove", "onMouseOut", "onContextMenu", "onFocus", "onBlur", "onOpen", "onClose", "onExited"];
|
|
20
20
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
21
21
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -151,7 +151,7 @@ var OverlayTrigger = /*#__PURE__*/_react.default.forwardRef(function (props, ref
|
|
|
151
151
|
setOpen(nextOpen);
|
|
152
152
|
}, [open, onOpen, onClose, setOpen]);
|
|
153
153
|
var handleOpen = (0, _react.useCallback)(function (delay) {
|
|
154
|
-
var ms = (0,
|
|
154
|
+
var ms = (0, _isUndefined.default)(delay) ? delayOpen : delay;
|
|
155
155
|
if (ms && typeof ms === 'number') {
|
|
156
156
|
return delayOpenTimer.current = setTimeout(function () {
|
|
157
157
|
delayOpenTimer.current = null;
|
|
@@ -163,7 +163,7 @@ var OverlayTrigger = /*#__PURE__*/_react.default.forwardRef(function (props, ref
|
|
|
163
163
|
handleOpenChange(true);
|
|
164
164
|
}, [delayOpen, handleOpenChange]);
|
|
165
165
|
var handleClose = (0, _react.useCallback)(function (delay, closeCause) {
|
|
166
|
-
var ms = (0,
|
|
166
|
+
var ms = (0, _isUndefined.default)(delay) ? delayClose : delay;
|
|
167
167
|
if (ms && typeof ms === 'number') {
|
|
168
168
|
return delayCloseTimer.current = setTimeout(function () {
|
|
169
169
|
delayCloseTimer.current = null;
|
|
@@ -6,10 +6,11 @@ exports.__esModule = true;
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _Icon = _interopRequireDefault(require("@rsuite/icons/Icon"));
|
|
9
|
-
var _hooks = require("../hooks");
|
|
10
9
|
var _InputGroup = _interopRequireDefault(require("../../InputGroup"));
|
|
11
10
|
var _CloseButton = _interopRequireDefault(require("../CloseButton"));
|
|
12
11
|
var _Loader = _interopRequireDefault(require("../../Loader"));
|
|
12
|
+
var _hooks = require("../hooks");
|
|
13
|
+
var _CustomProvider = require("../../CustomProvider");
|
|
13
14
|
var PickerIndicator = function PickerIndicator(_ref) {
|
|
14
15
|
var loading = _ref.loading,
|
|
15
16
|
caretAs = _ref.caretAs,
|
|
@@ -18,8 +19,10 @@ var PickerIndicator = function PickerIndicator(_ref) {
|
|
|
18
19
|
_ref$as = _ref.as,
|
|
19
20
|
Component = _ref$as === void 0 ? _InputGroup.default.Addon : _ref$as,
|
|
20
21
|
disabled = _ref.disabled;
|
|
21
|
-
var _useCustom = (0,
|
|
22
|
-
|
|
22
|
+
var _useCustom = (0, _CustomProvider.useCustom)(),
|
|
23
|
+
getLocale = _useCustom.getLocale;
|
|
24
|
+
var _getLocale = getLocale('common'),
|
|
25
|
+
clear = _getLocale.clear;
|
|
23
26
|
var _useClassNames = (0, _hooks.useClassNames)('picker'),
|
|
24
27
|
prefix = _useClassNames.prefix;
|
|
25
28
|
var addon = function addon() {
|
|
@@ -34,7 +37,7 @@ var PickerIndicator = function PickerIndicator(_ref) {
|
|
|
34
37
|
className: prefix('clean'),
|
|
35
38
|
tabIndex: -1,
|
|
36
39
|
locale: {
|
|
37
|
-
closeLabel:
|
|
40
|
+
closeLabel: clear
|
|
38
41
|
},
|
|
39
42
|
onClick: onClose
|
|
40
43
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { OverlayTriggerHandle, OverlayTriggerProps, OverlayTriggerType } from '../Overlay/OverlayTrigger';
|
|
3
3
|
import { PositionChildProps } from '../Overlay/Position';
|
|
4
|
-
import { TypeAttributes, AnimationEventProps } from '../types';
|
|
4
|
+
import type { TypeAttributes, AnimationEventProps } from '../types';
|
|
5
5
|
export type { OverlayTriggerHandle, PositionChildProps };
|
|
6
6
|
export interface PickerToggleTriggerProps extends Omit<AnimationEventProps, 'onEntering' | 'onExiting'>, Pick<OverlayTriggerProps, 'speaker' | 'onOpen' | 'onClose'> {
|
|
7
7
|
id?: string;
|
|
@@ -11,6 +11,7 @@ var _pick = _interopRequireDefault(require("lodash/pick"));
|
|
|
11
11
|
var _OverlayTrigger = _interopRequireDefault(require("../Overlay/OverlayTrigger"));
|
|
12
12
|
var _hooks = require("../hooks");
|
|
13
13
|
var _utils = require("../utils");
|
|
14
|
+
var _CustomProvider = require("../../CustomProvider");
|
|
14
15
|
var _excluded = ["pickerProps", "speaker", "placement", "trigger", "id", "multiple", "popupType"];
|
|
15
16
|
var omitTriggerPropKeys = exports.omitTriggerPropKeys = ['onEntered', 'onExited', 'onEnter', 'onEntering', 'onExit', 'onExiting', 'open', 'onOpen', 'defaultOpen', 'onClose', 'container', 'containerPadding', 'preventOverflow'];
|
|
16
17
|
var pickTriggerPropKeys = exports.pickTriggerPropKeys = [].concat(omitTriggerPropKeys, ['disabled', 'plaintext', 'readOnly', 'loading', 'label']);
|
|
@@ -30,7 +31,7 @@ var PickerToggleTrigger = /*#__PURE__*/_react.default.forwardRef(function (props
|
|
|
30
31
|
rest = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
31
32
|
var pickerTriggerProps = (0, _pick.default)(pickerProps, pickTriggerPropKeys);
|
|
32
33
|
var pickerId = (0, _hooks.useUniqueId)('rs-', id);
|
|
33
|
-
var _useCustom = (0,
|
|
34
|
+
var _useCustom = (0, _CustomProvider.useCustom)(),
|
|
34
35
|
rtl = _useCustom.rtl;
|
|
35
36
|
return /*#__PURE__*/_react.default.createElement(ComboboxContextContext.Provider, {
|
|
36
37
|
value: {
|
|
@@ -8,14 +8,15 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
8
8
|
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
10
|
var _hooks = require("../hooks");
|
|
11
|
+
var _CustomProvider = require("../../CustomProvider");
|
|
11
12
|
var _excluded = ["as", "classPrefix", "className", "children", "localeKey", "placeholder"];
|
|
12
13
|
/**
|
|
13
14
|
* Make the component display in plain text, and display default characters when there is no children.
|
|
14
15
|
* @private
|
|
15
16
|
*/
|
|
16
17
|
var Plaintext = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
17
|
-
var _useCustom = (0,
|
|
18
|
-
|
|
18
|
+
var _useCustom = (0, _CustomProvider.useCustom)(),
|
|
19
|
+
getLocale = _useCustom.getLocale;
|
|
19
20
|
var _props$as = props.as,
|
|
20
21
|
Component = _props$as === void 0 ? 'div' : _props$as,
|
|
21
22
|
_props$classPrefix = props.classPrefix,
|
|
@@ -25,7 +26,7 @@ var Plaintext = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
25
26
|
_props$localeKey = props.localeKey,
|
|
26
27
|
localeKey = _props$localeKey === void 0 ? '' : _props$localeKey,
|
|
27
28
|
_props$placeholder = props.placeholder,
|
|
28
|
-
placeholder = _props$placeholder === void 0 ?
|
|
29
|
+
placeholder = _props$placeholder === void 0 ? getLocale('Plaintext')[localeKey] || '' : _props$placeholder,
|
|
29
30
|
rest = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
30
31
|
var _useClassNames = (0, _hooks.useClassNames)(classPrefix),
|
|
31
32
|
withClassPrefix = _useClassNames.withClassPrefix,
|
|
@@ -10,9 +10,10 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
10
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
11
|
var _getOffset = _interopRequireDefault(require("dom-lib/getOffset"));
|
|
12
12
|
var _on = _interopRequireDefault(require("dom-lib/on"));
|
|
13
|
-
var _hooks = require("../hooks");
|
|
14
13
|
var _Transition = _interopRequireDefault(require("../../Animation/Transition"));
|
|
14
|
+
var _hooks = require("../hooks");
|
|
15
15
|
var _utils = require("../utils");
|
|
16
|
+
var _CustomProvider = require("../../CustomProvider");
|
|
16
17
|
var _excluded = ["as", "className", "classPrefix", "onMouseDown"],
|
|
17
18
|
_excluded2 = ["className"];
|
|
18
19
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
@@ -37,7 +38,7 @@ var getPosition = function getPosition(target, event) {
|
|
|
37
38
|
* @private
|
|
38
39
|
*/
|
|
39
40
|
var Ripple = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
40
|
-
var _useCustom = (0,
|
|
41
|
+
var _useCustom = (0, _CustomProvider.useCustom)(),
|
|
41
42
|
disableRipple = _useCustom.disableRipple;
|
|
42
43
|
var _props$as = props.as,
|
|
43
44
|
Component = _props$as === void 0 ? 'span' : _props$as,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { VariableSizeList, ListItemKeySelector, ListOnScrollProps, ListOnItemsRenderedProps, ListProps as BaseListProps } from 'react-window';
|
|
3
|
-
import { RsRefForwardingComponent } from '../types';
|
|
3
|
+
import type { RsRefForwardingComponent } from '../types';
|
|
4
4
|
export declare const defaultItemSize: () => number;
|
|
5
5
|
export interface ListProps<T = any> extends Omit<BaseListProps, 'width'> {
|
|
6
6
|
ref?: React.Ref<ListHandle>;
|
|
@@ -7,9 +7,9 @@ exports.defaultItemSize = exports.default = void 0;
|
|
|
7
7
|
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
-
var _reactWindow = require("react-window");
|
|
11
|
-
var _hooks = require("../hooks");
|
|
12
10
|
var _ScrollView = _interopRequireDefault(require("../ScrollView"));
|
|
11
|
+
var _reactWindow = require("react-window");
|
|
12
|
+
var _CustomProvider = require("../../CustomProvider");
|
|
13
13
|
var _excluded = ["rowHeight", "as", "itemSize", "scrollShadow"];
|
|
14
14
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
15
15
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -36,7 +36,7 @@ var List = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
36
36
|
scrollShadow = props.scrollShadow,
|
|
37
37
|
rest = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
38
38
|
var listRef = (0, _react.useRef)(null);
|
|
39
|
-
var _useCustom = (0,
|
|
39
|
+
var _useCustom = (0, _CustomProvider.useCustom)(),
|
|
40
40
|
rtl = _useCustom.rtl;
|
|
41
41
|
(0, _react.useImperativeHandle)(ref, function () {
|
|
42
42
|
return {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export { useClassNames } from './useClassNames';
|
|
2
2
|
export { useClickOutside } from './useClickOutside';
|
|
3
3
|
export { useControlled } from './useControlled';
|
|
4
|
-
export { useCustom } from './useCustom';
|
|
5
4
|
export { useElementResize } from './useElementResize';
|
|
6
5
|
export { useEnsuredRef } from './useEnsuredRef';
|
|
7
6
|
export { useEventCallback } from './useEventCallback';
|
|
@@ -2,15 +2,13 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
exports.__esModule = true;
|
|
5
|
-
exports.useWillUnmount = exports.useUpdatedRef = exports.useUpdateEffect = exports.useUniqueId = exports.useToggleCaret = exports.useTimeout = exports.useRootClose = exports.usePortal = exports.useMount = exports.useMap = exports.useIsomorphicLayoutEffect = exports.useIsMounted = exports.useInternalId = exports.useFocusVirtualListItem = exports.useFocus = exports.useEventListener = exports.useEventCallback = exports.useEnsuredRef = exports.useElementResize = exports.
|
|
5
|
+
exports.useWillUnmount = exports.useUpdatedRef = exports.useUpdateEffect = exports.useUniqueId = exports.useToggleCaret = exports.useTimeout = exports.useRootClose = exports.usePortal = exports.useMount = exports.useMap = exports.useIsomorphicLayoutEffect = exports.useIsMounted = exports.useInternalId = exports.useFocusVirtualListItem = exports.useFocus = exports.useEventListener = exports.useEventCallback = exports.useEnsuredRef = exports.useElementResize = exports.useControlled = exports.useClickOutside = exports.useClassNames = void 0;
|
|
6
6
|
var _useClassNames = require("./useClassNames");
|
|
7
7
|
exports.useClassNames = _useClassNames.useClassNames;
|
|
8
8
|
var _useClickOutside = require("./useClickOutside");
|
|
9
9
|
exports.useClickOutside = _useClickOutside.useClickOutside;
|
|
10
10
|
var _useControlled = require("./useControlled");
|
|
11
11
|
exports.useControlled = _useControlled.useControlled;
|
|
12
|
-
var _useCustom = require("./useCustom");
|
|
13
|
-
exports.useCustom = _useCustom.useCustom;
|
|
14
12
|
var _useElementResize = require("./useElementResize");
|
|
15
13
|
exports.useElementResize = _useElementResize.useElementResize;
|
|
16
14
|
var _useEnsuredRef = require("./useEnsuredRef");
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
3
|
+
* Ensures that a virtualized list item retains focus after scrolling or clicking on options,
|
|
4
|
+
* preventing unnecessary re-renders and loss of focus. If the current focus is on an interactive
|
|
5
|
+
* element (such as input, textarea, select, button, or contenteditable), the focus is not shifted.
|
|
6
|
+
* @param focused - Boolean indicating if the item should be focused.
|
|
7
|
+
* @returns A ref to be attached to the list item element.
|
|
5
8
|
*/
|
|
6
9
|
export declare function useFocusVirtualListItem<T extends HTMLElement>(focused?: boolean): import("react").RefObject<T>;
|
|
7
10
|
export default useFocusVirtualListItem;
|
|
@@ -6,19 +6,35 @@ exports.default = void 0;
|
|
|
6
6
|
exports.useFocusVirtualListItem = useFocusVirtualListItem;
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
*
|
|
9
|
+
* Ensures that a virtualized list item retains focus after scrolling or clicking on options,
|
|
10
|
+
* preventing unnecessary re-renders and loss of focus. If the current focus is on an interactive
|
|
11
|
+
* element (such as input, textarea, select, button, or contenteditable), the focus is not shifted.
|
|
12
|
+
* @param focused - Boolean indicating if the item should be focused.
|
|
13
|
+
* @returns A ref to be attached to the list item element.
|
|
11
14
|
*/
|
|
12
15
|
function useFocusVirtualListItem(focused) {
|
|
13
16
|
var itemRef = (0, _react.useRef)(null);
|
|
14
17
|
(0, _react.useEffect)(function () {
|
|
15
|
-
if (!focused) {
|
|
18
|
+
if (!focused || !itemRef.current) {
|
|
16
19
|
return;
|
|
17
20
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
var activeElement = document.activeElement;
|
|
22
|
+
|
|
23
|
+
// Helper function to determine if the element should retain focus
|
|
24
|
+
var isInteractiveElement = function isInteractiveElement(element) {
|
|
25
|
+
var tagName = element.tagName;
|
|
26
|
+
return tagName === 'INPUT' || tagName === 'TEXTAREA' || tagName === 'SELECT' || tagName === 'BUTTON' || element.isContentEditable || element.tabIndex >= 0 // Elements with tabindex are considered focusable
|
|
27
|
+
;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
// If the active element is an interactive one, don't shift focus.
|
|
31
|
+
if (activeElement && isInteractiveElement(activeElement)) {
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// If the currently focused element is not the target item, focus it.
|
|
36
|
+
if (activeElement !== itemRef.current) {
|
|
37
|
+
itemRef.current.focus();
|
|
22
38
|
}
|
|
23
39
|
}, [focused]);
|
|
24
40
|
return itemRef;
|
|
@@ -10,9 +10,9 @@ var _AngleDown = _interopRequireDefault(require("@rsuite/icons/legacy/AngleDown"
|
|
|
10
10
|
var _AngleUp = _interopRequireDefault(require("@rsuite/icons/legacy/AngleUp"));
|
|
11
11
|
var _AngleLeft = _interopRequireDefault(require("@rsuite/icons/legacy/AngleLeft"));
|
|
12
12
|
var _AngleRight = _interopRequireDefault(require("@rsuite/icons/legacy/AngleRight"));
|
|
13
|
-
var
|
|
13
|
+
var _CustomProvider = require("../../CustomProvider");
|
|
14
14
|
function useToggleCaret(placement) {
|
|
15
|
-
var _useCustom = (0,
|
|
15
|
+
var _useCustom = (0, _CustomProvider.useCustom)(),
|
|
16
16
|
rtl = _useCustom.rtl;
|
|
17
17
|
return (0, _react.useMemo)(function () {
|
|
18
18
|
switch (true) {
|
|
@@ -11,6 +11,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
11
11
|
var _kebabCase = _interopRequireDefault(require("lodash/kebabCase"));
|
|
12
12
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
13
|
var _hooks = require("../hooks");
|
|
14
|
+
var _CustomProvider = require("../../CustomProvider");
|
|
14
15
|
var _excluded = ["name", "componentAs", "componentClassPrefix"],
|
|
15
16
|
_excluded2 = ["as", "classPrefix", "className", "role"];
|
|
16
17
|
/**
|
|
@@ -22,13 +23,15 @@ function createComponent(_ref) {
|
|
|
22
23
|
componentClassPrefix = _ref.componentClassPrefix,
|
|
23
24
|
defaultProps = (0, _objectWithoutPropertiesLoose2.default)(_ref, _excluded);
|
|
24
25
|
var Component = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
25
|
-
var
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
26
|
+
var _useCustom = (0, _CustomProvider.useCustom)(name, props),
|
|
27
|
+
propsWithDefaults = _useCustom.propsWithDefaults;
|
|
28
|
+
var _propsWithDefaults$as = propsWithDefaults.as,
|
|
29
|
+
Component = _propsWithDefaults$as === void 0 ? componentAs || 'div' : _propsWithDefaults$as,
|
|
30
|
+
_propsWithDefaults$cl = propsWithDefaults.classPrefix,
|
|
31
|
+
classPrefix = _propsWithDefaults$cl === void 0 ? componentClassPrefix || (0, _kebabCase.default)(name) : _propsWithDefaults$cl,
|
|
32
|
+
className = propsWithDefaults.className,
|
|
33
|
+
role = propsWithDefaults.role,
|
|
34
|
+
rest = (0, _objectWithoutPropertiesLoose2.default)(propsWithDefaults, _excluded2);
|
|
32
35
|
var _useClassNames = (0, _hooks.useClassNames)(classPrefix),
|
|
33
36
|
withClassPrefix = _useClassNames.withClassPrefix,
|
|
34
37
|
merge = _useClassNames.merge;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { Locale as DateFnsLocale } from 'date-fns';
|
|
2
|
+
import type { DateFns } from '../../types';
|
|
1
3
|
export declare enum TimeProp {
|
|
2
4
|
DisabledHours = "disabledHours",
|
|
3
5
|
DisabledMinutes = "disabledMinutes",
|
|
@@ -11,3 +13,54 @@ export declare enum TimeProp {
|
|
|
11
13
|
}
|
|
12
14
|
export type CalendarOnlyPropsType = TimeProp;
|
|
13
15
|
export declare const calendarOnlyProps: readonly [TimeProp.DisabledHours, TimeProp.DisabledMinutes, TimeProp.DisabledSeconds, TimeProp.HideHours, TimeProp.HideMinutes, TimeProp.HideSeconds];
|
|
16
|
+
export interface FormatDateOptions {
|
|
17
|
+
/**
|
|
18
|
+
* The locale object that contains the language and formatting rules for the date.
|
|
19
|
+
*/
|
|
20
|
+
locale?: DateFnsLocale;
|
|
21
|
+
/**
|
|
22
|
+
* Defines which day of the week should be considered the start of the week.
|
|
23
|
+
*
|
|
24
|
+
* The value should be an integer from 0 to 6, where:
|
|
25
|
+
* - `0` represents Sunday,
|
|
26
|
+
* - `1` represents Monday,
|
|
27
|
+
* - `2` represents Tuesday,
|
|
28
|
+
* - `3` represents Wednesday,
|
|
29
|
+
* - `4` represents Thursday,
|
|
30
|
+
* - `5` represents Friday,
|
|
31
|
+
* - `6` represents Saturday.
|
|
32
|
+
*
|
|
33
|
+
* This option is important for functions that operate on weeks, such as calculating
|
|
34
|
+
* the start or end of a week, determining which week a date falls in, or generating
|
|
35
|
+
* calendar views. The default value varies depending on the locale, with Monday (`1`)
|
|
36
|
+
* being the default in most regions following ISO 8601, while Sunday (`0`) is often
|
|
37
|
+
* the default in regions like the United States.
|
|
38
|
+
*/
|
|
39
|
+
weekStartsOn?: DateFns.Day;
|
|
40
|
+
/**
|
|
41
|
+
* `firstWeekContainsDate` is used to determine which week is considered the first week of the year.
|
|
42
|
+
*
|
|
43
|
+
* This option specifies the minimum day of January that must be included in the first week.
|
|
44
|
+
*
|
|
45
|
+
* The value can be set to:
|
|
46
|
+
* - `1`: The first week of the year must include January 1st.
|
|
47
|
+
* - `4`: The first week of the year must include January 4th, which is the default according to ISO 8601.
|
|
48
|
+
*
|
|
49
|
+
* The choice between `1` and `4` typically depends on the regional or business conventions for week numbering.
|
|
50
|
+
*
|
|
51
|
+
* Please note that this option only accepts `1` (Sunday) or `4` (Thursday), aligning with common international standards.
|
|
52
|
+
*
|
|
53
|
+
* For more detailed information, please refer to https://en.wikipedia.org/wiki/Week#Week_numbering.
|
|
54
|
+
*/
|
|
55
|
+
firstWeekContainsDate?: DateFns.FirstWeekContainsDate;
|
|
56
|
+
/**
|
|
57
|
+
* If true, allows usage of the week-numbering year tokens `YY` and `YYYY`.
|
|
58
|
+
* See: https://date-fns.org/docs/Unicode-Tokens
|
|
59
|
+
**/
|
|
60
|
+
useAdditionalWeekYearTokens?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* If true, allows usage of the day of year tokens `D` and `DD`.
|
|
63
|
+
* See: https://date-fns.org/docs/Unicode-Tokens
|
|
64
|
+
*/
|
|
65
|
+
useAdditionalDayOfYearTokens?: boolean;
|
|
66
|
+
}
|
package/cjs/locales/ar_EG.d.ts
CHANGED
|
@@ -21,6 +21,27 @@ declare const _default: {
|
|
|
21
21
|
total: string;
|
|
22
22
|
skip: string;
|
|
23
23
|
};
|
|
24
|
+
DateTimeFormats: {
|
|
25
|
+
sunday: string;
|
|
26
|
+
monday: string;
|
|
27
|
+
tuesday: string;
|
|
28
|
+
wednesday: string;
|
|
29
|
+
thursday: string;
|
|
30
|
+
friday: string;
|
|
31
|
+
saturday: string;
|
|
32
|
+
ok: string;
|
|
33
|
+
today: string;
|
|
34
|
+
yesterday: string;
|
|
35
|
+
now: string;
|
|
36
|
+
hours: string;
|
|
37
|
+
minutes: string;
|
|
38
|
+
seconds: string;
|
|
39
|
+
formattedMonthPattern: string;
|
|
40
|
+
formattedDayPattern: string;
|
|
41
|
+
shortDateFormat: string;
|
|
42
|
+
shortTimeFormat: string;
|
|
43
|
+
dateLocale: any;
|
|
44
|
+
};
|
|
24
45
|
Calendar: {
|
|
25
46
|
sunday: string;
|
|
26
47
|
monday: string;
|
|
@@ -85,7 +106,7 @@ declare const _default: {
|
|
|
85
106
|
shortTimeFormat: string;
|
|
86
107
|
dateLocale: any;
|
|
87
108
|
};
|
|
88
|
-
|
|
109
|
+
Combobox: {
|
|
89
110
|
noResultsText: string;
|
|
90
111
|
placeholder: string;
|
|
91
112
|
searchPlaceholder: string;
|
|
@@ -94,6 +115,18 @@ declare const _default: {
|
|
|
94
115
|
InputPicker: {
|
|
95
116
|
newItem: string;
|
|
96
117
|
createOption: string;
|
|
118
|
+
noResultsText: string;
|
|
119
|
+
placeholder: string;
|
|
120
|
+
searchPlaceholder: string;
|
|
121
|
+
checkAll: string;
|
|
122
|
+
};
|
|
123
|
+
TagPicker: {
|
|
124
|
+
newItem: string;
|
|
125
|
+
createOption: string;
|
|
126
|
+
noResultsText: string;
|
|
127
|
+
placeholder: string;
|
|
128
|
+
searchPlaceholder: string;
|
|
129
|
+
checkAll: string;
|
|
97
130
|
};
|
|
98
131
|
Uploader: {
|
|
99
132
|
inited: string;
|
package/cjs/locales/ar_EG.js
CHANGED
|
@@ -27,6 +27,16 @@ var DateTimeFormats = {
|
|
|
27
27
|
shortTimeFormat: 'HH:mm aa',
|
|
28
28
|
dateLocale: _arSA.default
|
|
29
29
|
};
|
|
30
|
+
var Combobox = {
|
|
31
|
+
noResultsText: 'لا يوجد نتائج',
|
|
32
|
+
placeholder: 'إختيار',
|
|
33
|
+
searchPlaceholder: 'البحث',
|
|
34
|
+
checkAll: 'الجميع'
|
|
35
|
+
};
|
|
36
|
+
var CreatableComboBox = (0, _extends2.default)({}, Combobox, {
|
|
37
|
+
newItem: 'عنصر جديد',
|
|
38
|
+
createOption: 'إنشاء العنصر "{0}"'
|
|
39
|
+
});
|
|
30
40
|
var _default = exports.default = {
|
|
31
41
|
code: 'ar-SA',
|
|
32
42
|
common: {
|
|
@@ -50,21 +60,15 @@ var _default = exports.default = {
|
|
|
50
60
|
total: 'الإجمالي: {0}',
|
|
51
61
|
skip: 'اذهب إل {0}'
|
|
52
62
|
},
|
|
53
|
-
|
|
54
|
-
|
|
63
|
+
DateTimeFormats: DateTimeFormats,
|
|
64
|
+
Calendar: DateTimeFormats,
|
|
65
|
+
DatePicker: DateTimeFormats,
|
|
55
66
|
DateRangePicker: (0, _extends2.default)({}, DateTimeFormats, {
|
|
56
67
|
last7Days: 'أخر 7 أيام'
|
|
57
68
|
}),
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
searchPlaceholder: 'البحث',
|
|
62
|
-
checkAll: 'الجميع'
|
|
63
|
-
},
|
|
64
|
-
InputPicker: {
|
|
65
|
-
newItem: 'عنصر جديد',
|
|
66
|
-
createOption: 'إنشاء العنصر "{0}"'
|
|
67
|
-
},
|
|
69
|
+
Combobox: Combobox,
|
|
70
|
+
InputPicker: CreatableComboBox,
|
|
71
|
+
TagPicker: CreatableComboBox,
|
|
68
72
|
Uploader: {
|
|
69
73
|
inited: 'تم البدء',
|
|
70
74
|
progress: 'جاري الرفع',
|
package/cjs/locales/ca_ES.d.ts
CHANGED
|
@@ -21,6 +21,31 @@ declare const _default: {
|
|
|
21
21
|
total: string;
|
|
22
22
|
skip: string;
|
|
23
23
|
};
|
|
24
|
+
DateTimeFormats: {
|
|
25
|
+
sunday: string;
|
|
26
|
+
monday: string;
|
|
27
|
+
tuesday: string;
|
|
28
|
+
wednesday: string;
|
|
29
|
+
thursday: string;
|
|
30
|
+
friday: string;
|
|
31
|
+
saturday: string;
|
|
32
|
+
ok: string;
|
|
33
|
+
today: string;
|
|
34
|
+
yesterday: string;
|
|
35
|
+
now: string;
|
|
36
|
+
hours: string;
|
|
37
|
+
minutes: string;
|
|
38
|
+
seconds: string;
|
|
39
|
+
/**
|
|
40
|
+
* Format of the string is based on Unicode Technical Standard #35:
|
|
41
|
+
* https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
|
|
42
|
+
**/
|
|
43
|
+
formattedMonthPattern: string;
|
|
44
|
+
formattedDayPattern: string;
|
|
45
|
+
shortDateFormat: string;
|
|
46
|
+
shortTimeFormat: string;
|
|
47
|
+
dateLocale: Locale;
|
|
48
|
+
};
|
|
24
49
|
Calendar: {
|
|
25
50
|
sunday: string;
|
|
26
51
|
monday: string;
|
|
@@ -97,7 +122,7 @@ declare const _default: {
|
|
|
97
122
|
shortTimeFormat: string;
|
|
98
123
|
dateLocale: Locale;
|
|
99
124
|
};
|
|
100
|
-
|
|
125
|
+
Combobox: {
|
|
101
126
|
noResultsText: string;
|
|
102
127
|
placeholder: string;
|
|
103
128
|
searchPlaceholder: string;
|
|
@@ -106,6 +131,18 @@ declare const _default: {
|
|
|
106
131
|
InputPicker: {
|
|
107
132
|
newItem: string;
|
|
108
133
|
createOption: string;
|
|
134
|
+
noResultsText: string;
|
|
135
|
+
placeholder: string;
|
|
136
|
+
searchPlaceholder: string;
|
|
137
|
+
checkAll: string;
|
|
138
|
+
};
|
|
139
|
+
TagPicker: {
|
|
140
|
+
newItem: string;
|
|
141
|
+
createOption: string;
|
|
142
|
+
noResultsText: string;
|
|
143
|
+
placeholder: string;
|
|
144
|
+
searchPlaceholder: string;
|
|
145
|
+
checkAll: string;
|
|
109
146
|
};
|
|
110
147
|
Uploader: {
|
|
111
148
|
inited: string;
|
package/cjs/locales/ca_ES.js
CHANGED
|
@@ -31,6 +31,16 @@ var DateTimeFormats = {
|
|
|
31
31
|
shortTimeFormat: 'HH:mm',
|
|
32
32
|
dateLocale: _ca.default
|
|
33
33
|
};
|
|
34
|
+
var Combobox = {
|
|
35
|
+
noResultsText: "No s'han trobat resultats",
|
|
36
|
+
placeholder: 'Seleccionar',
|
|
37
|
+
searchPlaceholder: 'Cercar',
|
|
38
|
+
checkAll: 'Tots'
|
|
39
|
+
};
|
|
40
|
+
var CreatableComboBox = (0, _extends2.default)({}, Combobox, {
|
|
41
|
+
newItem: 'Nou',
|
|
42
|
+
createOption: 'Crear opció "{0}"'
|
|
43
|
+
});
|
|
34
44
|
var _default = exports.default = {
|
|
35
45
|
code: 'ca-ES',
|
|
36
46
|
common: {
|
|
@@ -54,21 +64,15 @@ var _default = exports.default = {
|
|
|
54
64
|
total: 'Total: {0}',
|
|
55
65
|
skip: 'Anar{0}'
|
|
56
66
|
},
|
|
57
|
-
|
|
58
|
-
|
|
67
|
+
DateTimeFormats: DateTimeFormats,
|
|
68
|
+
Calendar: DateTimeFormats,
|
|
69
|
+
DatePicker: DateTimeFormats,
|
|
59
70
|
DateRangePicker: (0, _extends2.default)({}, DateTimeFormats, {
|
|
60
71
|
last7Days: 'Últims 7 dies'
|
|
61
72
|
}),
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
searchPlaceholder: 'Cercar',
|
|
66
|
-
checkAll: 'Tots'
|
|
67
|
-
},
|
|
68
|
-
InputPicker: {
|
|
69
|
-
newItem: 'Nou',
|
|
70
|
-
createOption: 'Crear opció "{0}"'
|
|
71
|
-
},
|
|
73
|
+
Combobox: Combobox,
|
|
74
|
+
InputPicker: CreatableComboBox,
|
|
75
|
+
TagPicker: CreatableComboBox,
|
|
72
76
|
Uploader: {
|
|
73
77
|
inited: 'Inicial',
|
|
74
78
|
progress: 'Pujant',
|