rsuite 5.74.2 → 5.75.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 +16 -0
- package/Card/package.json +7 -0
- package/Card/styles/index.css +105 -0
- package/Card/styles/index.less +62 -0
- package/CardBody/package.json +7 -0
- package/CardFooter/package.json +7 -0
- package/CardGroup/package.json +7 -0
- package/CardGroup/styles/index.css +7 -0
- package/CardGroup/styles/index.less +8 -0
- package/CardHeader/package.json +7 -0
- package/List/styles/index.css +10 -12
- package/List/styles/index.less +12 -4
- package/Stat/package.json +7 -0
- package/Stat/styles/index.css +1749 -0
- package/Stat/styles/index.less +106 -0
- package/StatGroup/package.json +7 -0
- package/StatGroup/styles/index.css +7 -0
- package/StatGroup/styles/index.less +8 -0
- package/StatHelpText/package.json +7 -0
- package/StatLabel/package.json +7 -0
- package/StatTrend/package.json +7 -0
- package/StatValue/package.json +7 -0
- package/StatValueUnit/package.json +7 -0
- package/cjs/Affix/Affix.js +2 -2
- package/cjs/Animation/Transition.js +7 -7
- package/cjs/AutoComplete/AutoComplete.js +7 -7
- package/cjs/Avatar/useImage.js +1 -1
- package/cjs/Breadcrumb/Breadcrumb.js +1 -1
- package/cjs/Calendar/Calendar.js +3 -3
- package/cjs/Calendar/CalendarContainer.js +1 -1
- package/cjs/Calendar/Grid/GridRow.js +3 -3
- package/cjs/Calendar/MonthDropdown/MonthDropdownItem.js +1 -1
- package/cjs/Calendar/TimeDropdown/TimeDropdown.js +3 -3
- package/cjs/Calendar/hooks/useCalendarState.js +6 -6
- package/cjs/Card/Card.d.ts +33 -0
- package/cjs/Card/Card.js +63 -0
- package/cjs/Card/CardBody.d.ts +4 -0
- package/cjs/Card/CardBody.js +11 -0
- package/cjs/Card/CardFooter.d.ts +4 -0
- package/cjs/Card/CardFooter.js +11 -0
- package/cjs/Card/CardHeader.d.ts +4 -0
- package/cjs/Card/CardHeader.js +11 -0
- package/cjs/Card/index.d.ts +6 -0
- package/cjs/Card/index.js +8 -0
- package/cjs/CardGroup/CardGroup.d.ts +13 -0
- package/cjs/CardGroup/CardGroup.js +47 -0
- package/cjs/CardGroup/index.d.ts +3 -0
- package/cjs/CardGroup/index.js +8 -0
- package/cjs/Carousel/Carousel.js +4 -4
- package/cjs/CascadeTree/CascadeTree.js +1 -1
- package/cjs/CascadeTree/TreeView.js +1 -1
- package/cjs/CascadeTree/hooks/useSearch.js +4 -4
- package/cjs/CascadeTree/hooks/useSelect.js +2 -2
- package/cjs/Cascader/Cascader.js +13 -13
- package/cjs/Cascader/useActive.js +4 -4
- package/cjs/CheckPicker/CheckPicker.js +5 -5
- package/cjs/CheckTree/CheckTree.js +1 -1
- package/cjs/CheckTree/CheckTreeNode.js +3 -3
- package/cjs/CheckTree/CheckTreeView.js +7 -7
- package/cjs/CheckTree/utils.js +3 -3
- package/cjs/CheckTreePicker/CheckTreePicker.js +2 -2
- package/cjs/CheckTreePicker/hooks/useFocusState.js +3 -3
- package/cjs/Checkbox/Checkbox.js +2 -2
- package/cjs/CheckboxGroup/CheckboxGroup.js +1 -1
- package/cjs/CustomProvider/FormattedNumber.d.ts +7 -0
- package/cjs/CustomProvider/FormattedNumber.js +19 -0
- package/cjs/CustomProvider/index.d.ts +1 -0
- package/cjs/CustomProvider/index.js +3 -1
- package/cjs/CustomProvider/types.d.ts +8 -0
- package/cjs/CustomProvider/useCustom.d.ts +1 -0
- package/cjs/CustomProvider/useCustom.js +3 -1
- package/cjs/DateInput/DateField.js +2 -2
- package/cjs/DateInput/DateInput.js +2 -2
- package/cjs/DateInput/hooks/useDateInputState.js +2 -2
- package/cjs/DateInput/hooks/useIsFocused.js +2 -2
- package/cjs/DateInput/hooks/useKeyboardInputEvent.js +5 -5
- package/cjs/DatePicker/DatePicker.js +14 -14
- package/cjs/DatePicker/PredefinedRanges.js +1 -1
- package/cjs/DatePicker/hooks/useFocus.js +1 -1
- package/cjs/DatePicker/hooks/useMonthView.js +1 -1
- package/cjs/DateRangeInput/DateRangeInput.js +4 -4
- package/cjs/DateRangePicker/DateRangePicker.js +8 -8
- package/cjs/DateRangePicker/hooks/useCalendarHandlers.js +5 -5
- package/cjs/Dropdown/Dropdown.js +3 -3
- package/cjs/Dropdown/DropdownItem.js +2 -2
- package/cjs/Dropdown/DropdownMenu.js +1 -1
- package/cjs/Form/Form.js +8 -8
- package/cjs/Form/hooks/useFormValidate.js +19 -19
- package/cjs/FormControl/FormControl.js +5 -5
- package/cjs/FormControl/hooks/useField.js +1 -1
- package/cjs/FormControl/hooks/useRegisterModel.js +2 -2
- package/cjs/InlineEdit/renderChildren.js +1 -1
- package/cjs/InlineEdit/useEditState.js +7 -7
- package/cjs/InlineEdit/useFocusEvent.js +5 -5
- package/cjs/Input/Input.js +3 -3
- package/cjs/InputGroup/InputGroup.js +2 -2
- package/cjs/InputNumber/InputNumber.js +3 -3
- package/cjs/InputPicker/InputAutosize.js +1 -1
- package/cjs/InputPicker/InputPicker.js +13 -13
- package/cjs/InputPicker/InputSearch.js +1 -1
- package/cjs/InputPicker/hooks/useData.js +1 -1
- package/cjs/InputPicker/hooks/useInput.js +2 -2
- package/cjs/List/List.d.ts +19 -1
- package/cjs/List/List.js +11 -7
- package/cjs/List/ListItem.d.ts +1 -1
- package/cjs/List/helper/useSortHelper.js +10 -10
- package/cjs/MaskedInput/TextMask.js +3 -3
- package/cjs/Message/Message.js +1 -1
- package/cjs/Modal/Modal.js +6 -6
- package/cjs/Modal/utils.js +2 -2
- package/cjs/MultiCascadeTree/SearchView.js +1 -1
- package/cjs/MultiCascadeTree/TreeView.js +1 -1
- package/cjs/MultiCascadeTree/hooks/useCascadeValue.js +5 -5
- package/cjs/MultiCascadeTree/hooks/useSearch.js +1 -1
- package/cjs/MultiCascadeTree/hooks/useSelect.js +1 -1
- package/cjs/MultiCascadeTree/utils.js +9 -9
- package/cjs/MultiCascader/MultiCascader.js +5 -5
- package/cjs/Nav/Nav.js +2 -2
- package/cjs/Nav/NavDropdown.js +3 -3
- package/cjs/Nav/NavDropdownItem.js +2 -2
- package/cjs/Nav/NavDropdownMenu.js +1 -1
- package/cjs/Nav/NavItem.js +3 -3
- package/cjs/Navbar/NavbarDropdown.js +3 -3
- package/cjs/Navbar/NavbarDropdownItem.js +4 -4
- package/cjs/Navbar/NavbarItem.js +3 -3
- package/cjs/Notification/Notification.js +1 -1
- package/cjs/Pagination/PaginationButton.js +1 -1
- package/cjs/Pagination/PaginationGroup.js +3 -3
- package/cjs/Panel/Panel.js +2 -2
- package/cjs/PanelGroup/PanelGroup.js +1 -1
- package/cjs/Placeholder/PlaceholderGrid.js +2 -2
- package/cjs/Placeholder/PlaceholderParagraph.js +1 -1
- package/cjs/Radio/Radio.js +2 -2
- package/cjs/RadioGroup/RadioGroup.js +1 -1
- package/cjs/RadioTile/RadioTile.js +2 -2
- package/cjs/RadioTileGroup/RadioTileGroup.js +1 -1
- package/cjs/RangeSlider/RangeSlider.js +5 -5
- package/cjs/Rate/Character.js +2 -2
- package/cjs/Rate/Rate.js +3 -3
- package/cjs/SafeAnchor/SafeAnchor.js +1 -1
- package/cjs/SelectPicker/SelectPicker.js +7 -7
- package/cjs/Sidebar/Sidebar.js +1 -1
- package/cjs/Sidenav/ExpandedSidenavDropdown.js +4 -4
- package/cjs/Sidenav/ExpandedSidenavDropdownItem.js +3 -3
- package/cjs/Sidenav/ExpandedSidenavDropdownMenu.js +2 -2
- package/cjs/Sidenav/Sidenav.js +1 -1
- package/cjs/Sidenav/SidenavDropdown.js +4 -4
- package/cjs/Sidenav/SidenavDropdownItem.js +2 -2
- package/cjs/Sidenav/SidenavDropdownMenu.js +1 -1
- package/cjs/Sidenav/SidenavItem.js +4 -4
- package/cjs/Sidenav/SidenavToggle.js +1 -1
- package/cjs/Slider/Graduated.js +1 -1
- package/cjs/Slider/Slider.js +3 -3
- package/cjs/Slider/useDrag.js +6 -6
- package/cjs/Stack/HStack.d.ts +6 -3
- package/cjs/Stack/HStack.js +1 -0
- package/cjs/Stack/Stack.d.ts +6 -2
- package/cjs/Stack/Stack.js +1 -1
- package/cjs/Stack/VStack.d.ts +6 -3
- package/cjs/Stack/VStack.js +1 -0
- package/cjs/Stat/Stat.d.ts +26 -0
- package/cjs/Stat/Stat.js +57 -0
- package/cjs/Stat/StatHelpText.d.ts +4 -0
- package/cjs/Stat/StatHelpText.js +11 -0
- package/cjs/Stat/StatLabel.d.ts +14 -0
- package/cjs/Stat/StatLabel.js +53 -0
- package/cjs/Stat/StatTrend.d.ts +7 -0
- package/cjs/Stat/StatTrend.js +68 -0
- package/cjs/Stat/StatValue.d.ts +7 -0
- package/cjs/Stat/StatValue.js +41 -0
- package/cjs/Stat/StatValueUnit.d.ts +4 -0
- package/cjs/Stat/StatValueUnit.js +11 -0
- package/cjs/Stat/index.d.ts +3 -0
- package/cjs/Stat/index.js +8 -0
- package/cjs/StatGroup/StatGroup.d.ts +13 -0
- package/cjs/StatGroup/StatGroup.js +47 -0
- package/cjs/StatGroup/index.d.ts +3 -0
- package/cjs/StatGroup/index.js +8 -0
- package/cjs/Tabs/Tabs.js +1 -1
- package/cjs/Timeline/Timeline.js +1 -1
- package/cjs/Toggle/Toggle.js +1 -1
- package/cjs/Tree/Tree.js +1 -1
- package/cjs/Tree/TreeNode.js +9 -9
- package/cjs/Tree/TreeView.js +7 -7
- package/cjs/Tree/hooks/useExpandTree.js +1 -1
- package/cjs/Tree/hooks/useFlattenTree.js +1 -1
- package/cjs/Tree/hooks/useFocusTree.js +6 -6
- package/cjs/Tree/hooks/useTreeDrag.js +17 -17
- package/cjs/Tree/hooks/useTreeSearch.js +1 -1
- package/cjs/Tree/utils/flattenTree.js +6 -6
- package/cjs/Tree/utils/focusableTree.js +6 -6
- package/cjs/Tree/utils/getNodeParentKeys.js +4 -4
- package/cjs/Tree/utils/treeKeyboardInteractions.js +2 -2
- package/cjs/TreePicker/TreePicker.js +5 -5
- package/cjs/TreePicker/hooks/useFocusState.js +4 -4
- package/cjs/Uploader/UploadFileItem.js +5 -5
- package/cjs/Uploader/UploadTrigger.js +11 -11
- package/cjs/Uploader/Uploader.js +16 -16
- package/cjs/Uploader/utils/ajaxUpload.js +5 -5
- package/cjs/index.d.ts +8 -0
- package/cjs/index.js +10 -2
- package/cjs/internals/Disclosure/Disclosure.js +3 -3
- package/cjs/internals/Disclosure/DisclosureButton.js +2 -2
- package/cjs/internals/Menu/Menu.js +3 -3
- package/cjs/internals/Menu/MenuItem.js +1 -1
- package/cjs/internals/Menu/Menubar.js +2 -2
- package/cjs/internals/Overlay/Modal.js +7 -7
- package/cjs/internals/Overlay/Overlay.js +1 -1
- package/cjs/internals/Overlay/OverlayTrigger.js +3 -3
- package/cjs/internals/Overlay/Position.js +5 -5
- package/cjs/internals/Picker/ListCheckItem.js +3 -3
- package/cjs/internals/Picker/ListItem.js +1 -1
- package/cjs/internals/Picker/Listbox.js +4 -4
- package/cjs/internals/Picker/PickerToggle.js +2 -2
- package/cjs/internals/Picker/SelectedElement.js +1 -1
- package/cjs/internals/Picker/hooks/useFocusItemValue.js +2 -2
- package/cjs/internals/Picker/hooks/usePickerRef.js +4 -4
- package/cjs/internals/Picker/hooks/useSearch.js +1 -1
- package/cjs/internals/Picker/hooks/useToggleKeyDownEvent.js +9 -9
- package/cjs/internals/Picker/utils.js +8 -8
- package/cjs/internals/Ripple/Ripple.js +2 -2
- package/cjs/internals/ScrollView/hooks/useScrollState.js +1 -1
- package/cjs/internals/Tree/utils/filterNodesOfTree.js +3 -3
- package/cjs/internals/Tree/utils/findNodeOfTree.js +3 -3
- package/cjs/internals/Tree/utils/getParentMap.js +3 -3
- package/cjs/internals/Windowing/AutoSizer.js +1 -1
- package/cjs/internals/Windowing/List.js +4 -4
- package/cjs/internals/hooks/useClickOutside.js +1 -1
- package/cjs/internals/hooks/useElementResize.js +1 -1
- package/cjs/internals/hooks/useEventListener.js +1 -1
- package/cjs/internals/hooks/useFocus.js +2 -2
- package/cjs/internals/hooks/useMount.js +1 -1
- package/cjs/internals/hooks/useRootClose.js +4 -4
- package/cjs/internals/hooks/useTimeout.js +1 -1
- package/cjs/internals/utils/stringifyReactNode.js +5 -5
- package/cjs/toaster/ToastContainer.d.ts +1 -0
- package/cjs/toaster/ToastContainer.js +19 -14
- package/cjs/toaster/hooks/useDelayedClosure.js +2 -2
- package/cjs/toaster/toaster.js +7 -7
- package/cjs/useToaster/useToaster.js +1 -1
- package/dist/rsuite-no-reset-rtl.css +240 -36
- 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 +240 -36
- package/dist/rsuite-no-reset.min.css +1 -1
- package/dist/rsuite-no-reset.min.css.map +1 -1
- package/dist/rsuite-rtl.css +240 -36
- package/dist/rsuite-rtl.min.css +1 -1
- package/dist/rsuite-rtl.min.css.map +1 -1
- package/dist/rsuite.css +240 -36
- package/dist/rsuite.js +384 -175
- 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/Affix/Affix.js +2 -2
- package/esm/Animation/Transition.js +7 -7
- package/esm/AutoComplete/AutoComplete.js +7 -7
- package/esm/Avatar/useImage.js +1 -1
- package/esm/Breadcrumb/Breadcrumb.js +1 -1
- package/esm/Calendar/Calendar.js +3 -3
- package/esm/Calendar/CalendarContainer.js +1 -1
- package/esm/Calendar/Grid/GridRow.js +3 -3
- package/esm/Calendar/MonthDropdown/MonthDropdownItem.js +1 -1
- package/esm/Calendar/TimeDropdown/TimeDropdown.js +3 -3
- package/esm/Calendar/hooks/useCalendarState.js +6 -6
- package/esm/Card/Card.d.ts +33 -0
- package/esm/Card/Card.js +58 -0
- package/esm/Card/CardBody.d.ts +4 -0
- package/esm/Card/CardBody.js +7 -0
- package/esm/Card/CardFooter.d.ts +4 -0
- package/esm/Card/CardFooter.js +7 -0
- package/esm/Card/CardHeader.d.ts +4 -0
- package/esm/Card/CardHeader.js +7 -0
- package/esm/Card/index.d.ts +6 -0
- package/esm/Card/index.js +3 -0
- package/esm/CardGroup/CardGroup.d.ts +13 -0
- package/esm/CardGroup/CardGroup.js +42 -0
- package/esm/CardGroup/index.d.ts +3 -0
- package/esm/CardGroup/index.js +3 -0
- package/esm/Carousel/Carousel.js +4 -4
- package/esm/CascadeTree/CascadeTree.js +1 -1
- package/esm/CascadeTree/TreeView.js +1 -1
- package/esm/CascadeTree/hooks/useSearch.js +4 -4
- package/esm/CascadeTree/hooks/useSelect.js +2 -2
- package/esm/Cascader/Cascader.js +13 -13
- package/esm/Cascader/useActive.js +4 -4
- package/esm/CheckPicker/CheckPicker.js +5 -5
- package/esm/CheckTree/CheckTree.js +1 -1
- package/esm/CheckTree/CheckTreeNode.js +3 -3
- package/esm/CheckTree/CheckTreeView.js +7 -7
- package/esm/CheckTree/utils.js +3 -3
- package/esm/CheckTreePicker/CheckTreePicker.js +2 -2
- package/esm/CheckTreePicker/hooks/useFocusState.js +3 -3
- package/esm/Checkbox/Checkbox.js +2 -2
- package/esm/CheckboxGroup/CheckboxGroup.js +1 -1
- package/esm/CustomProvider/FormattedNumber.d.ts +7 -0
- package/esm/CustomProvider/FormattedNumber.js +13 -0
- package/esm/CustomProvider/index.d.ts +1 -0
- package/esm/CustomProvider/index.js +1 -0
- package/esm/CustomProvider/types.d.ts +8 -0
- package/esm/CustomProvider/useCustom.d.ts +1 -0
- package/esm/CustomProvider/useCustom.js +3 -1
- package/esm/DateInput/DateField.js +2 -2
- package/esm/DateInput/DateInput.js +2 -2
- package/esm/DateInput/hooks/useDateInputState.js +2 -2
- package/esm/DateInput/hooks/useIsFocused.js +2 -2
- package/esm/DateInput/hooks/useKeyboardInputEvent.js +5 -5
- package/esm/DatePicker/DatePicker.js +14 -14
- package/esm/DatePicker/PredefinedRanges.js +1 -1
- package/esm/DatePicker/hooks/useFocus.js +1 -1
- package/esm/DatePicker/hooks/useMonthView.js +1 -1
- package/esm/DateRangeInput/DateRangeInput.js +4 -4
- package/esm/DateRangePicker/DateRangePicker.js +8 -8
- package/esm/DateRangePicker/hooks/useCalendarHandlers.js +5 -5
- package/esm/Dropdown/Dropdown.js +3 -3
- package/esm/Dropdown/DropdownItem.js +2 -2
- package/esm/Dropdown/DropdownMenu.js +1 -1
- package/esm/Form/Form.js +8 -8
- package/esm/Form/hooks/useFormValidate.js +19 -19
- package/esm/FormControl/FormControl.js +5 -5
- package/esm/FormControl/hooks/useField.js +1 -1
- package/esm/FormControl/hooks/useRegisterModel.js +2 -2
- package/esm/InlineEdit/renderChildren.js +1 -1
- package/esm/InlineEdit/useEditState.js +7 -7
- package/esm/InlineEdit/useFocusEvent.js +5 -5
- package/esm/Input/Input.js +3 -3
- package/esm/InputGroup/InputGroup.js +2 -2
- package/esm/InputNumber/InputNumber.js +3 -3
- package/esm/InputPicker/InputAutosize.js +1 -1
- package/esm/InputPicker/InputPicker.js +13 -13
- package/esm/InputPicker/InputSearch.js +1 -1
- package/esm/InputPicker/hooks/useData.js +1 -1
- package/esm/InputPicker/hooks/useInput.js +2 -2
- package/esm/List/List.d.ts +19 -1
- package/esm/List/List.js +11 -7
- package/esm/List/ListItem.d.ts +1 -1
- package/esm/List/helper/useSortHelper.js +10 -10
- package/esm/MaskedInput/TextMask.js +3 -3
- package/esm/Message/Message.js +1 -1
- package/esm/Modal/Modal.js +6 -6
- package/esm/Modal/utils.js +2 -2
- package/esm/MultiCascadeTree/SearchView.js +1 -1
- package/esm/MultiCascadeTree/TreeView.js +1 -1
- package/esm/MultiCascadeTree/hooks/useCascadeValue.js +5 -5
- package/esm/MultiCascadeTree/hooks/useSearch.js +1 -1
- package/esm/MultiCascadeTree/hooks/useSelect.js +1 -1
- package/esm/MultiCascadeTree/utils.js +13 -10
- package/esm/MultiCascader/MultiCascader.js +5 -5
- package/esm/Nav/Nav.js +2 -2
- package/esm/Nav/NavDropdown.js +3 -3
- package/esm/Nav/NavDropdownItem.js +2 -2
- package/esm/Nav/NavDropdownMenu.js +1 -1
- package/esm/Nav/NavItem.js +3 -3
- package/esm/Navbar/NavbarDropdown.js +3 -3
- package/esm/Navbar/NavbarDropdownItem.js +4 -4
- package/esm/Navbar/NavbarItem.js +3 -3
- package/esm/Notification/Notification.js +1 -1
- package/esm/Pagination/PaginationButton.js +1 -1
- package/esm/Pagination/PaginationGroup.js +3 -3
- package/esm/Panel/Panel.js +2 -2
- package/esm/PanelGroup/PanelGroup.js +1 -1
- package/esm/Placeholder/PlaceholderGrid.js +2 -2
- package/esm/Placeholder/PlaceholderParagraph.js +1 -1
- package/esm/Radio/Radio.js +2 -2
- package/esm/RadioGroup/RadioGroup.js +1 -1
- package/esm/RadioTile/RadioTile.js +2 -2
- package/esm/RadioTileGroup/RadioTileGroup.js +1 -1
- package/esm/RangeSlider/RangeSlider.js +5 -5
- package/esm/Rate/Character.js +2 -2
- package/esm/Rate/Rate.js +3 -3
- package/esm/SafeAnchor/SafeAnchor.js +1 -1
- package/esm/SelectPicker/SelectPicker.js +7 -7
- package/esm/Sidebar/Sidebar.js +1 -1
- package/esm/Sidenav/ExpandedSidenavDropdown.js +4 -4
- package/esm/Sidenav/ExpandedSidenavDropdownItem.js +3 -3
- package/esm/Sidenav/ExpandedSidenavDropdownMenu.js +2 -2
- package/esm/Sidenav/Sidenav.js +1 -1
- package/esm/Sidenav/SidenavDropdown.js +4 -4
- package/esm/Sidenav/SidenavDropdownItem.js +2 -2
- package/esm/Sidenav/SidenavDropdownMenu.js +1 -1
- package/esm/Sidenav/SidenavItem.js +4 -4
- package/esm/Sidenav/SidenavToggle.js +1 -1
- package/esm/Slider/Graduated.js +1 -1
- package/esm/Slider/Slider.js +3 -3
- package/esm/Slider/useDrag.js +6 -6
- package/esm/Stack/HStack.d.ts +6 -3
- package/esm/Stack/HStack.js +1 -0
- package/esm/Stack/Stack.d.ts +6 -2
- package/esm/Stack/Stack.js +1 -1
- package/esm/Stack/VStack.d.ts +6 -3
- package/esm/Stack/VStack.js +1 -0
- package/esm/Stat/Stat.d.ts +26 -0
- package/esm/Stat/Stat.js +52 -0
- package/esm/Stat/StatHelpText.d.ts +4 -0
- package/esm/Stat/StatHelpText.js +7 -0
- package/esm/Stat/StatLabel.d.ts +14 -0
- package/esm/Stat/StatLabel.js +48 -0
- package/esm/Stat/StatTrend.d.ts +7 -0
- package/esm/Stat/StatTrend.js +63 -0
- package/esm/Stat/StatValue.d.ts +7 -0
- package/esm/Stat/StatValue.js +36 -0
- package/esm/Stat/StatValueUnit.d.ts +4 -0
- package/esm/Stat/StatValueUnit.js +7 -0
- package/esm/Stat/index.d.ts +3 -0
- package/esm/Stat/index.js +3 -0
- package/esm/StatGroup/StatGroup.d.ts +13 -0
- package/esm/StatGroup/StatGroup.js +42 -0
- package/esm/StatGroup/index.d.ts +3 -0
- package/esm/StatGroup/index.js +3 -0
- package/esm/Tabs/Tabs.js +1 -1
- package/esm/Timeline/Timeline.js +1 -1
- package/esm/Toggle/Toggle.js +1 -1
- package/esm/Tree/Tree.js +1 -1
- package/esm/Tree/TreeNode.js +9 -9
- package/esm/Tree/TreeView.js +7 -7
- package/esm/Tree/hooks/useExpandTree.js +1 -1
- package/esm/Tree/hooks/useFlattenTree.js +1 -1
- package/esm/Tree/hooks/useFocusTree.js +6 -6
- package/esm/Tree/hooks/useTreeDrag.js +17 -17
- package/esm/Tree/hooks/useTreeSearch.js +1 -1
- package/esm/Tree/utils/flattenTree.js +6 -6
- package/esm/Tree/utils/focusableTree.js +6 -6
- package/esm/Tree/utils/getNodeParentKeys.js +4 -4
- package/esm/Tree/utils/treeKeyboardInteractions.js +2 -2
- package/esm/TreePicker/TreePicker.js +5 -5
- package/esm/TreePicker/hooks/useFocusState.js +4 -4
- package/esm/Uploader/UploadFileItem.js +5 -5
- package/esm/Uploader/UploadTrigger.js +11 -11
- package/esm/Uploader/Uploader.js +16 -16
- package/esm/Uploader/utils/ajaxUpload.js +5 -5
- package/esm/index.d.ts +8 -0
- package/esm/index.js +4 -0
- package/esm/internals/Disclosure/Disclosure.js +3 -3
- package/esm/internals/Disclosure/DisclosureButton.js +2 -2
- package/esm/internals/Menu/Menu.js +3 -3
- package/esm/internals/Menu/MenuItem.js +1 -1
- package/esm/internals/Menu/Menubar.js +2 -2
- package/esm/internals/Overlay/Modal.js +7 -7
- package/esm/internals/Overlay/Overlay.js +1 -1
- package/esm/internals/Overlay/OverlayTrigger.js +3 -3
- package/esm/internals/Overlay/Position.js +5 -5
- package/esm/internals/Picker/ListCheckItem.js +3 -3
- package/esm/internals/Picker/ListItem.js +1 -1
- package/esm/internals/Picker/Listbox.js +4 -4
- package/esm/internals/Picker/PickerToggle.js +2 -2
- package/esm/internals/Picker/SelectedElement.js +1 -1
- package/esm/internals/Picker/hooks/useFocusItemValue.js +2 -2
- package/esm/internals/Picker/hooks/usePickerRef.js +4 -4
- package/esm/internals/Picker/hooks/useSearch.js +1 -1
- package/esm/internals/Picker/hooks/useToggleKeyDownEvent.js +9 -9
- package/esm/internals/Picker/utils.js +8 -8
- package/esm/internals/Ripple/Ripple.js +2 -2
- package/esm/internals/ScrollView/hooks/useScrollState.js +1 -1
- package/esm/internals/Tree/utils/filterNodesOfTree.js +3 -3
- package/esm/internals/Tree/utils/findNodeOfTree.js +3 -3
- package/esm/internals/Tree/utils/getParentMap.js +3 -3
- package/esm/internals/Windowing/AutoSizer.js +1 -1
- package/esm/internals/Windowing/List.js +4 -4
- package/esm/internals/hooks/useClickOutside.js +1 -1
- package/esm/internals/hooks/useElementResize.js +1 -1
- package/esm/internals/hooks/useEventListener.js +1 -1
- package/esm/internals/hooks/useFocus.js +2 -2
- package/esm/internals/hooks/useMount.js +1 -1
- package/esm/internals/hooks/useRootClose.js +4 -4
- package/esm/internals/hooks/useTimeout.js +1 -1
- package/esm/internals/utils/stringifyReactNode.js +5 -5
- package/esm/toaster/ToastContainer.d.ts +1 -0
- package/esm/toaster/ToastContainer.js +19 -14
- package/esm/toaster/hooks/useDelayedClosure.js +2 -2
- package/esm/toaster/toaster.js +7 -7
- package/esm/useToaster/useToaster.js +1 -1
- package/package.json +1 -1
- package/styles/color-modes/dark.less +6 -0
- package/styles/color-modes/high-contrast.less +6 -0
- package/styles/color-modes/light.less +6 -0
- package/styles/index.less +4 -0
- package/toaster/styles/index.css +24 -24
- package/toaster/styles/index.less +29 -29
- package/useToaster/styles/index.css +24 -24
|
@@ -11,7 +11,7 @@ export function useFocus(elementRef) {
|
|
|
11
11
|
if (document.activeElement !== elementRef.current) {
|
|
12
12
|
var _elementRef$current;
|
|
13
13
|
previousActiveElementRef.current = document.activeElement;
|
|
14
|
-
(_elementRef$current = elementRef.current) === null || _elementRef$current === void 0
|
|
14
|
+
(_elementRef$current = elementRef.current) === null || _elementRef$current === void 0 || _elementRef$current.focus();
|
|
15
15
|
}
|
|
16
16
|
});
|
|
17
17
|
}, [elementRef]);
|
|
@@ -20,7 +20,7 @@ export function useFocus(elementRef) {
|
|
|
20
20
|
var release = useCallback(function (options) {
|
|
21
21
|
requestAnimationFrame(function () {
|
|
22
22
|
var _previousActiveElemen;
|
|
23
|
-
(_previousActiveElemen = previousActiveElementRef.current) === null || _previousActiveElemen === void 0
|
|
23
|
+
(_previousActiveElemen = previousActiveElementRef.current) === null || _previousActiveElemen === void 0 || _previousActiveElemen.focus(options);
|
|
24
24
|
});
|
|
25
25
|
}, []);
|
|
26
26
|
return {
|
|
@@ -5,7 +5,7 @@ export var useMount = function useMount(callback) {
|
|
|
5
5
|
mountRef.current = callback;
|
|
6
6
|
useEffect(function () {
|
|
7
7
|
var _mountRef$current;
|
|
8
|
-
(_mountRef$current = mountRef.current) === null || _mountRef$current === void 0
|
|
8
|
+
(_mountRef$current = mountRef.current) === null || _mountRef$current === void 0 || _mountRef$current.call(mountRef);
|
|
9
9
|
}, []);
|
|
10
10
|
};
|
|
11
11
|
export default useMount;
|
|
@@ -25,7 +25,7 @@ export function useRootClose(onRootClose, _ref) {
|
|
|
25
25
|
listenEscape = _ref$listenEscape === void 0 ? true : _ref$listenEscape;
|
|
26
26
|
var handleDocumentKeyUp = useCallback(function (event) {
|
|
27
27
|
if (listenEscape && event.key === KEY_VALUES.ESC) {
|
|
28
|
-
onRootClose === null || onRootClose === void 0
|
|
28
|
+
onRootClose === null || onRootClose === void 0 || onRootClose(event);
|
|
29
29
|
}
|
|
30
30
|
}, [listenEscape, onRootClose]);
|
|
31
31
|
var handleDocumentMouseDown = useCallback(function (event) {
|
|
@@ -44,7 +44,7 @@ export function useRootClose(onRootClose, _ref) {
|
|
|
44
44
|
if (isModifiedEvent(event) || !isLeftClickEvent(event)) {
|
|
45
45
|
return;
|
|
46
46
|
}
|
|
47
|
-
onRootClose === null || onRootClose === void 0
|
|
47
|
+
onRootClose === null || onRootClose === void 0 || onRootClose(event);
|
|
48
48
|
}, [onRootClose, triggerTarget, overlayTarget]);
|
|
49
49
|
useEffect(function () {
|
|
50
50
|
var currentTarget = getDOMNode(triggerTarget);
|
|
@@ -53,8 +53,8 @@ export function useRootClose(onRootClose, _ref) {
|
|
|
53
53
|
var onDocumentMouseDownListener = on(doc, 'mousedown', handleDocumentMouseDown, true);
|
|
54
54
|
var onDocumentKeyupListener = on(doc, 'keyup', handleDocumentKeyUp);
|
|
55
55
|
return function () {
|
|
56
|
-
onDocumentMouseDownListener === null || onDocumentMouseDownListener === void 0
|
|
57
|
-
onDocumentKeyupListener === null || onDocumentKeyupListener === void 0
|
|
56
|
+
onDocumentMouseDownListener === null || onDocumentMouseDownListener === void 0 || onDocumentMouseDownListener.off();
|
|
57
|
+
onDocumentKeyupListener === null || onDocumentKeyupListener === void 0 || onDocumentKeyupListener.off();
|
|
58
58
|
};
|
|
59
59
|
}, [triggerTarget, disabled, onRootClose, handleDocumentMouseDown, handleDocumentKeyUp]);
|
|
60
60
|
}
|
|
@@ -23,7 +23,7 @@ export function useTimeout(fn, ms, enabled) {
|
|
|
23
23
|
if (enabled) {
|
|
24
24
|
timeout.current = setTimeout(function () {
|
|
25
25
|
var _callback$current;
|
|
26
|
-
(_callback$current = callback.current) === null || _callback$current === void 0
|
|
26
|
+
(_callback$current = callback.current) === null || _callback$current === void 0 || _callback$current.call(callback);
|
|
27
27
|
}, ms);
|
|
28
28
|
}
|
|
29
29
|
}, [ms, enabled]);
|
|
@@ -8,16 +8,16 @@ import React from 'react';
|
|
|
8
8
|
*/
|
|
9
9
|
export function reactToString(element) {
|
|
10
10
|
var nodes = [];
|
|
11
|
-
var
|
|
11
|
+
var _recursion = function recursion(elmt) {
|
|
12
12
|
React.Children.forEach(elmt.props.children, function (child) {
|
|
13
|
-
if (
|
|
14
|
-
|
|
13
|
+
if (/*#__PURE__*/React.isValidElement(child)) {
|
|
14
|
+
_recursion(child);
|
|
15
15
|
} else if (typeof child === 'string') {
|
|
16
16
|
nodes.push(child);
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
|
-
|
|
20
|
+
_recursion(element);
|
|
21
21
|
return nodes;
|
|
22
22
|
}
|
|
23
23
|
|
|
@@ -29,7 +29,7 @@ export function reactToString(element) {
|
|
|
29
29
|
export function stringifyReactNode(node) {
|
|
30
30
|
if (typeof node === 'string') {
|
|
31
31
|
return node;
|
|
32
|
-
} else if (
|
|
32
|
+
} else if (/*#__PURE__*/React.isValidElement(node)) {
|
|
33
33
|
var nodes = reactToString(node);
|
|
34
34
|
return nodes.join('');
|
|
35
35
|
}
|
|
@@ -5,6 +5,7 @@ var _excluded = ["as", "className", "classPrefix", "placement", "callback"],
|
|
|
5
5
|
_excluded2 = ["className"],
|
|
6
6
|
_excluded3 = ["container"];
|
|
7
7
|
import React, { useState, useImperativeHandle, useRef, useCallback } from 'react';
|
|
8
|
+
import { createPortal } from 'react-dom';
|
|
8
9
|
import PropTypes from 'prop-types';
|
|
9
10
|
import kebabCase from 'lodash/kebabCase';
|
|
10
11
|
import Transition from "../Animation/Transition.js";
|
|
@@ -26,7 +27,8 @@ var useMessages = function useMessages() {
|
|
|
26
27
|
var _ref = options || {},
|
|
27
28
|
duration = _ref.duration,
|
|
28
29
|
_ref$mouseReset = _ref.mouseReset,
|
|
29
|
-
mouseReset = _ref$mouseReset === void 0 ? true : _ref$mouseReset
|
|
30
|
+
mouseReset = _ref$mouseReset === void 0 ? true : _ref$mouseReset,
|
|
31
|
+
container = _ref.container;
|
|
30
32
|
var key = guid();
|
|
31
33
|
setMessages(function (prevMessages) {
|
|
32
34
|
return [].concat(prevMessages, [{
|
|
@@ -34,7 +36,8 @@ var useMessages = function useMessages() {
|
|
|
34
36
|
visible: true,
|
|
35
37
|
node: message,
|
|
36
38
|
duration: duration,
|
|
37
|
-
mouseReset: mouseReset
|
|
39
|
+
mouseReset: mouseReset,
|
|
40
|
+
container: container
|
|
38
41
|
}]);
|
|
39
42
|
});
|
|
40
43
|
return key;
|
|
@@ -108,15 +111,9 @@ var ToastContainer = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
108
111
|
var elements = messages.map(function (item) {
|
|
109
112
|
var mouseReset = item.mouseReset,
|
|
110
113
|
duration = item.duration,
|
|
111
|
-
node = item.node
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
usedToaster: true,
|
|
115
|
-
mouseReset: mouseReset,
|
|
116
|
-
duration: duration
|
|
117
|
-
},
|
|
118
|
-
key: item.key
|
|
119
|
-
}, /*#__PURE__*/React.createElement(Transition, {
|
|
114
|
+
node = item.node,
|
|
115
|
+
container = item.container;
|
|
116
|
+
var toastWithTransition = /*#__PURE__*/React.createElement(Transition, {
|
|
120
117
|
in: item.visible,
|
|
121
118
|
exitedClassName: rootPrefix('toast-fade-exited'),
|
|
122
119
|
exitingClassName: rootPrefix('toast-fade-exiting'),
|
|
@@ -135,12 +132,20 @@ var ToastContainer = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
135
132
|
}),
|
|
136
133
|
className: merge(rootPrefix('toast'), (_node$props2 = node.props) === null || _node$props2 === void 0 ? void 0 : _node$props2.className, transitionClassName)
|
|
137
134
|
}));
|
|
138
|
-
})
|
|
135
|
+
});
|
|
136
|
+
return /*#__PURE__*/React.createElement(ToastContext.Provider, {
|
|
137
|
+
value: {
|
|
138
|
+
usedToaster: true,
|
|
139
|
+
mouseReset: mouseReset,
|
|
140
|
+
duration: duration
|
|
141
|
+
},
|
|
142
|
+
key: item.key
|
|
143
|
+
}, container ? /*#__PURE__*/createPortal(toastWithTransition, typeof container === 'function' ? container() : container) : toastWithTransition);
|
|
139
144
|
});
|
|
140
145
|
return /*#__PURE__*/React.createElement(Component, _extends({}, rest, {
|
|
141
146
|
ref: function ref(selfRef) {
|
|
142
147
|
rootRef.current = selfRef;
|
|
143
|
-
callback === null || callback === void 0
|
|
148
|
+
callback === null || callback === void 0 || callback(selfRef);
|
|
144
149
|
},
|
|
145
150
|
className: classes
|
|
146
151
|
}), elements);
|
|
@@ -154,7 +159,7 @@ ToastContainer.getInstance = function (props) {
|
|
|
154
159
|
var renderCallback = function renderCallback() {
|
|
155
160
|
resolve([containerRef, unmount]);
|
|
156
161
|
};
|
|
157
|
-
var _render = render(
|
|
162
|
+
var _render = render(/*#__PURE__*/React.createElement(ToastContainer, _extends({}, rest, {
|
|
158
163
|
ref: containerRef,
|
|
159
164
|
callback: renderCallback
|
|
160
165
|
})), containerElement),
|
|
@@ -29,8 +29,8 @@ function useDelayedClosure(props) {
|
|
|
29
29
|
mouseLeaveRef.current = on(targetRef.current, 'mouseleave', reset);
|
|
30
30
|
return function () {
|
|
31
31
|
var _mouseEnterRef$curren, _mouseLeaveRef$curren;
|
|
32
|
-
(_mouseEnterRef$curren = mouseEnterRef.current) === null || _mouseEnterRef$curren === void 0
|
|
33
|
-
(_mouseLeaveRef$curren = mouseLeaveRef.current) === null || _mouseLeaveRef$curren === void 0
|
|
32
|
+
(_mouseEnterRef$curren = mouseEnterRef.current) === null || _mouseEnterRef$curren === void 0 || _mouseEnterRef$curren.off();
|
|
33
|
+
(_mouseLeaveRef$curren = mouseLeaveRef.current) === null || _mouseLeaveRef$curren === void 0 || _mouseLeaveRef$curren.off();
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
36
|
});
|
package/esm/toaster/toaster.js
CHANGED
|
@@ -20,7 +20,7 @@ function createContainer(_x, _x2) {
|
|
|
20
20
|
* @param containerId
|
|
21
21
|
*/
|
|
22
22
|
function _createContainer() {
|
|
23
|
-
_createContainer = _asyncToGenerator(
|
|
23
|
+
_createContainer = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(containerId, props) {
|
|
24
24
|
var _yield$ToastContainer, container;
|
|
25
25
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
26
26
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -46,10 +46,10 @@ function getContainer(containerId) {
|
|
|
46
46
|
}
|
|
47
47
|
return containers.get(containerId || defaultContainerId);
|
|
48
48
|
}
|
|
49
|
-
var
|
|
50
|
-
return
|
|
49
|
+
var _toaster = function toaster(message) {
|
|
50
|
+
return _toaster.push(message);
|
|
51
51
|
};
|
|
52
|
-
|
|
52
|
+
_toaster.push = function (message, options) {
|
|
53
53
|
if (options === void 0) {
|
|
54
54
|
options = {};
|
|
55
55
|
}
|
|
@@ -65,16 +65,16 @@ toaster.push = function (message, options) {
|
|
|
65
65
|
return (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.push(message, restOptions);
|
|
66
66
|
});
|
|
67
67
|
};
|
|
68
|
-
|
|
68
|
+
_toaster.remove = function (key) {
|
|
69
69
|
containers.forEach(function (c) {
|
|
70
70
|
var _c$current;
|
|
71
71
|
return (_c$current = c.current) === null || _c$current === void 0 ? void 0 : _c$current.remove(key);
|
|
72
72
|
});
|
|
73
73
|
};
|
|
74
|
-
|
|
74
|
+
_toaster.clear = function () {
|
|
75
75
|
containers.forEach(function (c) {
|
|
76
76
|
var _c$current2;
|
|
77
77
|
return (_c$current2 = c.current) === null || _c$current2 === void 0 ? void 0 : _c$current2.clear();
|
|
78
78
|
});
|
|
79
79
|
};
|
|
80
|
-
export default
|
|
80
|
+
export default _toaster;
|
|
@@ -26,7 +26,7 @@ var useToaster = function useToaster() {
|
|
|
26
26
|
*/
|
|
27
27
|
push: function push(message, options) {
|
|
28
28
|
var _toasters$current;
|
|
29
|
-
var customToaster = toasters === null || toasters === void 0
|
|
29
|
+
var customToaster = toasters === null || toasters === void 0 || (_toasters$current = toasters.current) === null || _toasters$current === void 0 ? void 0 : _toasters$current.get((options === null || options === void 0 ? void 0 : options.placement) || 'topCenter');
|
|
30
30
|
return customToaster ? customToaster.push(message, options) : toaster.push(message, options);
|
|
31
31
|
},
|
|
32
32
|
/**
|
package/package.json
CHANGED
|
@@ -333,6 +333,9 @@
|
|
|
333
333
|
// Tag
|
|
334
334
|
--rs-tag-bg: var(--rs-gray-600);
|
|
335
335
|
|
|
336
|
+
// Card
|
|
337
|
+
--rs-card-bg: var(--rs-gray-900);
|
|
338
|
+
|
|
336
339
|
// Carousel
|
|
337
340
|
--rs-carousel-bg: var(--rs-gray-600);
|
|
338
341
|
--rs-carousel-indicator: rgb(from var(--rs-gray-0) r g b / 40%);
|
|
@@ -396,6 +399,9 @@
|
|
|
396
399
|
// ScrollView
|
|
397
400
|
--rs-scroll-view-shadow-color: rgba(0, 0, 0, 0.99);
|
|
398
401
|
|
|
402
|
+
// Stat
|
|
403
|
+
--rs-stat-body-bg: var(--rs-gray-900);
|
|
404
|
+
|
|
399
405
|
// CSS relative color syntax is not supported
|
|
400
406
|
// https://developer.chrome.com/blog/css-relative-color-syntax/
|
|
401
407
|
@supports not (color: rgb(from white r g b)) {
|
|
@@ -341,6 +341,9 @@
|
|
|
341
341
|
// Tag
|
|
342
342
|
--rs-tag-bg: var(--rs-gray-600);
|
|
343
343
|
|
|
344
|
+
// Card
|
|
345
|
+
--rs-card-bg: var(--rs-gray-900);
|
|
346
|
+
|
|
344
347
|
// Carousel
|
|
345
348
|
--rs-carousel-bg: var(--rs-gray-600);
|
|
346
349
|
--rs-carousel-indicator: rgb(from var(--rs-gray-0) r g b / 40%);
|
|
@@ -410,6 +413,9 @@
|
|
|
410
413
|
// ScrollView
|
|
411
414
|
--rs-scroll-view-shadow-color: rgba(0, 0, 0, 0.99);
|
|
412
415
|
|
|
416
|
+
// Stat
|
|
417
|
+
--rs-stat-body-bg: var(--rs-gray-900);
|
|
418
|
+
|
|
413
419
|
// CSS relative color syntax is not supported
|
|
414
420
|
// https://developer.chrome.com/blog/css-relative-color-syntax/
|
|
415
421
|
@supports not (color: rgb(from white r g b)) {
|
|
@@ -356,6 +356,9 @@
|
|
|
356
356
|
// Tag
|
|
357
357
|
--rs-tag-bg: var(--rs-gray-50);
|
|
358
358
|
|
|
359
|
+
// Card
|
|
360
|
+
--rs-card-bg: var(--rs-gray-0);
|
|
361
|
+
|
|
359
362
|
// Carousel
|
|
360
363
|
--rs-carousel-bg: var(--rs-gray-600);
|
|
361
364
|
--rs-carousel-indicator: rgb(from var(--rs-gray-0) r g b / 40%);
|
|
@@ -421,6 +424,9 @@
|
|
|
421
424
|
// ScrollView
|
|
422
425
|
--rs-scroll-view-shadow-color: rgba(9, 9, 9, 0.2);
|
|
423
426
|
|
|
427
|
+
// Stat
|
|
428
|
+
--rs-stat-body-bg: var(--rs-gray-0);
|
|
429
|
+
|
|
424
430
|
// CSS relative color syntax is not supported
|
|
425
431
|
// https://developer.chrome.com/blog/css-relative-color-syntax/
|
|
426
432
|
@supports not (color: rgb(from white r g b)) {
|
package/styles/index.less
CHANGED
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
@import '../ButtonGroup/styles/index';
|
|
12
12
|
@import '../ButtonToolbar/styles/index';
|
|
13
13
|
@import '../Calendar/styles/index';
|
|
14
|
+
@import '../Card/styles/index';
|
|
15
|
+
@import '../CardGroup/styles/index';
|
|
14
16
|
@import '../Carousel/styles/index';
|
|
15
17
|
@import '../Cascader/styles/index';
|
|
16
18
|
@import '../CascadeTree/styles/index';
|
|
@@ -65,6 +67,8 @@
|
|
|
65
67
|
@import '../Sidebar/styles/index';
|
|
66
68
|
@import '../Sidenav/styles/index';
|
|
67
69
|
@import '../Slider/styles/index';
|
|
70
|
+
@import '../Stat/styles/index';
|
|
71
|
+
@import '../StatGroup/styles/index';
|
|
68
72
|
@import '../Steps/styles/index';
|
|
69
73
|
@import '../Table/styles/index';
|
|
70
74
|
@import '../Tag/styles/index';
|
package/toaster/styles/index.css
CHANGED
|
@@ -157,29 +157,6 @@
|
|
|
157
157
|
box-shadow: 0 4px 4px rgba(0, 0, 0, 0.12), 0 0 10px rgba(0, 0, 0, 0.06);
|
|
158
158
|
box-shadow: var(--rs-shadow-overlay);
|
|
159
159
|
}
|
|
160
|
-
.rs-toast-container .rs-toast-fade-entered,
|
|
161
|
-
.rs-toast-container .rs-toast-fade-exiting {
|
|
162
|
-
-webkit-animation-fill-mode: forwards;
|
|
163
|
-
animation-fill-mode: forwards;
|
|
164
|
-
}
|
|
165
|
-
.rs-toast-container .rs-toast-fade-entered {
|
|
166
|
-
-webkit-animation-duration: 0.4s;
|
|
167
|
-
animation-duration: 0.4s;
|
|
168
|
-
-webkit-animation-timing-function: cubic-bezier(0.99, 0.44, 0.44, 1.35);
|
|
169
|
-
animation-timing-function: cubic-bezier(0.99, 0.44, 0.44, 1.35);
|
|
170
|
-
}
|
|
171
|
-
.rs-toast-container .rs-toast-fade-exited,
|
|
172
|
-
.rs-toast-container .rs-toast-fade-entering {
|
|
173
|
-
opacity: 0;
|
|
174
|
-
}
|
|
175
|
-
.rs-toast-container .rs-toast-fade-exited {
|
|
176
|
-
-webkit-transform-origin: 0 0;
|
|
177
|
-
transform-origin: 0 0;
|
|
178
|
-
-webkit-transform: scaleY(0.8);
|
|
179
|
-
transform: scaleY(0.8);
|
|
180
|
-
max-height: 0;
|
|
181
|
-
overflow: hidden;
|
|
182
|
-
}
|
|
183
160
|
.rs-toast-container-top-center,
|
|
184
161
|
.rs-toast-container-bottom-center {
|
|
185
162
|
-webkit-box-align: center;
|
|
@@ -227,7 +204,30 @@
|
|
|
227
204
|
.rs-toast-container-bottom-end {
|
|
228
205
|
bottom: 24px;
|
|
229
206
|
}
|
|
230
|
-
.rs-toast-
|
|
207
|
+
.rs-toast-fade-entered,
|
|
208
|
+
.rs-toast-fade-exiting {
|
|
209
|
+
-webkit-animation-fill-mode: forwards;
|
|
210
|
+
animation-fill-mode: forwards;
|
|
211
|
+
}
|
|
212
|
+
.rs-toast-fade-entered {
|
|
213
|
+
-webkit-animation-duration: 0.4s;
|
|
214
|
+
animation-duration: 0.4s;
|
|
215
|
+
-webkit-animation-timing-function: cubic-bezier(0.99, 0.44, 0.44, 1.35);
|
|
216
|
+
animation-timing-function: cubic-bezier(0.99, 0.44, 0.44, 1.35);
|
|
217
|
+
}
|
|
218
|
+
.rs-toast-fade-exited,
|
|
219
|
+
.rs-toast-fade-entering {
|
|
220
|
+
opacity: 0;
|
|
221
|
+
}
|
|
222
|
+
.rs-toast-fade-exited {
|
|
223
|
+
-webkit-transform-origin: 0 0;
|
|
224
|
+
transform-origin: 0 0;
|
|
225
|
+
-webkit-transform: scaleY(0.8);
|
|
226
|
+
transform: scaleY(0.8);
|
|
227
|
+
max-height: 0;
|
|
228
|
+
overflow: hidden;
|
|
229
|
+
}
|
|
230
|
+
.rs-toast-fade-exiting {
|
|
231
231
|
-webkit-animation-duration: 0.3s;
|
|
232
232
|
animation-duration: 0.3s;
|
|
233
233
|
-webkit-animation-timing-function: cubic-bezier(0.64, 0.65, 0.57, 1.13);
|
|
@@ -23,30 +23,6 @@
|
|
|
23
23
|
box-shadow: var(--rs-shadow-overlay);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
// Animations
|
|
27
|
-
.rs-toast-fade-entered,
|
|
28
|
-
.rs-toast-fade-exiting {
|
|
29
|
-
animation-fill-mode: forwards;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.rs-toast-fade-entered {
|
|
33
|
-
animation-duration: 0.4s;
|
|
34
|
-
animation-timing-function: cubic-bezier(0.99, 0.44, 0.44, 1.35);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.rs-toast-fade-exited,
|
|
38
|
-
.rs-toast-fade-entering {
|
|
39
|
-
opacity: 0;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
// The same to @keyframe notificationMoveOut 100%.
|
|
43
|
-
.rs-toast-fade-exited {
|
|
44
|
-
transform-origin: 0 0;
|
|
45
|
-
transform: scaleY(0.8);
|
|
46
|
-
max-height: 0;
|
|
47
|
-
overflow: hidden;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
26
|
&-top-center,
|
|
51
27
|
&-bottom-center {
|
|
52
28
|
align-items: center;
|
|
@@ -89,10 +65,34 @@
|
|
|
89
65
|
&-bottom-end {
|
|
90
66
|
bottom: @toast-spacing;
|
|
91
67
|
}
|
|
68
|
+
}
|
|
92
69
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
70
|
+
// Animations
|
|
71
|
+
.rs-toast-fade-entered,
|
|
72
|
+
.rs-toast-fade-exiting {
|
|
73
|
+
animation-fill-mode: forwards;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.rs-toast-fade-entered {
|
|
77
|
+
animation-duration: 0.4s;
|
|
78
|
+
animation-timing-function: cubic-bezier(0.99, 0.44, 0.44, 1.35);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.rs-toast-fade-exited,
|
|
82
|
+
.rs-toast-fade-entering {
|
|
83
|
+
opacity: 0;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
// The same to @keyframe notificationMoveOut 100%.
|
|
87
|
+
.rs-toast-fade-exited {
|
|
88
|
+
transform-origin: 0 0;
|
|
89
|
+
transform: scaleY(0.8);
|
|
90
|
+
max-height: 0;
|
|
91
|
+
overflow: hidden;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.rs-toast-fade-exiting {
|
|
95
|
+
animation-duration: 0.3s;
|
|
96
|
+
animation-timing-function: cubic-bezier(0.64, 0.65, 0.57, 1.13);
|
|
97
|
+
animation-name: notificationMoveOut;
|
|
98
98
|
}
|
|
@@ -157,29 +157,6 @@
|
|
|
157
157
|
box-shadow: 0 4px 4px rgba(0, 0, 0, 0.12), 0 0 10px rgba(0, 0, 0, 0.06);
|
|
158
158
|
box-shadow: var(--rs-shadow-overlay);
|
|
159
159
|
}
|
|
160
|
-
.rs-toast-container .rs-toast-fade-entered,
|
|
161
|
-
.rs-toast-container .rs-toast-fade-exiting {
|
|
162
|
-
-webkit-animation-fill-mode: forwards;
|
|
163
|
-
animation-fill-mode: forwards;
|
|
164
|
-
}
|
|
165
|
-
.rs-toast-container .rs-toast-fade-entered {
|
|
166
|
-
-webkit-animation-duration: 0.4s;
|
|
167
|
-
animation-duration: 0.4s;
|
|
168
|
-
-webkit-animation-timing-function: cubic-bezier(0.99, 0.44, 0.44, 1.35);
|
|
169
|
-
animation-timing-function: cubic-bezier(0.99, 0.44, 0.44, 1.35);
|
|
170
|
-
}
|
|
171
|
-
.rs-toast-container .rs-toast-fade-exited,
|
|
172
|
-
.rs-toast-container .rs-toast-fade-entering {
|
|
173
|
-
opacity: 0;
|
|
174
|
-
}
|
|
175
|
-
.rs-toast-container .rs-toast-fade-exited {
|
|
176
|
-
-webkit-transform-origin: 0 0;
|
|
177
|
-
transform-origin: 0 0;
|
|
178
|
-
-webkit-transform: scaleY(0.8);
|
|
179
|
-
transform: scaleY(0.8);
|
|
180
|
-
max-height: 0;
|
|
181
|
-
overflow: hidden;
|
|
182
|
-
}
|
|
183
160
|
.rs-toast-container-top-center,
|
|
184
161
|
.rs-toast-container-bottom-center {
|
|
185
162
|
-webkit-box-align: center;
|
|
@@ -227,7 +204,30 @@
|
|
|
227
204
|
.rs-toast-container-bottom-end {
|
|
228
205
|
bottom: 24px;
|
|
229
206
|
}
|
|
230
|
-
.rs-toast-
|
|
207
|
+
.rs-toast-fade-entered,
|
|
208
|
+
.rs-toast-fade-exiting {
|
|
209
|
+
-webkit-animation-fill-mode: forwards;
|
|
210
|
+
animation-fill-mode: forwards;
|
|
211
|
+
}
|
|
212
|
+
.rs-toast-fade-entered {
|
|
213
|
+
-webkit-animation-duration: 0.4s;
|
|
214
|
+
animation-duration: 0.4s;
|
|
215
|
+
-webkit-animation-timing-function: cubic-bezier(0.99, 0.44, 0.44, 1.35);
|
|
216
|
+
animation-timing-function: cubic-bezier(0.99, 0.44, 0.44, 1.35);
|
|
217
|
+
}
|
|
218
|
+
.rs-toast-fade-exited,
|
|
219
|
+
.rs-toast-fade-entering {
|
|
220
|
+
opacity: 0;
|
|
221
|
+
}
|
|
222
|
+
.rs-toast-fade-exited {
|
|
223
|
+
-webkit-transform-origin: 0 0;
|
|
224
|
+
transform-origin: 0 0;
|
|
225
|
+
-webkit-transform: scaleY(0.8);
|
|
226
|
+
transform: scaleY(0.8);
|
|
227
|
+
max-height: 0;
|
|
228
|
+
overflow: hidden;
|
|
229
|
+
}
|
|
230
|
+
.rs-toast-fade-exiting {
|
|
231
231
|
-webkit-animation-duration: 0.3s;
|
|
232
232
|
animation-duration: 0.3s;
|
|
233
233
|
-webkit-animation-timing-function: cubic-bezier(0.64, 0.65, 0.57, 1.13);
|