rsuite 5.0.0 → 5.1.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 +67 -6
- package/Grid/styles/index.less +1 -2
- package/IconButton/styles/index.less +1 -1
- package/MaskedInput/package.json +7 -0
- package/MultiCascader/styles/index.less +3 -0
- package/Navbar/styles/index.less +8 -0
- package/Picker/styles/index.less +1 -1
- package/Picker/styles/mixin.less +1 -1
- package/README.md +16 -10
- package/Sidenav/styles/index.less +13 -16
- package/Toggle/styles/index.less +20 -0
- package/Toggle/styles/mixin.less +12 -0
- package/Uploader/styles/index.less +10 -1
- package/cjs/@types/common.d.ts +0 -1
- package/cjs/Animation/Collapse.js +8 -8
- package/cjs/AutoComplete/AutoComplete.js +10 -14
- package/cjs/Badge/Badge.js +6 -10
- package/cjs/Breadcrumb/Breadcrumb.js +8 -12
- package/cjs/Breadcrumb/BreadcrumbItem.js +4 -8
- package/cjs/Button/Button.js +6 -10
- package/cjs/ButtonGroup/ButtonGroup.js +6 -10
- package/cjs/Calendar/Calendar.js +4 -8
- package/cjs/Calendar/CalendarPanel.js +6 -10
- package/cjs/Calendar/Header.js +4 -8
- package/cjs/Calendar/MonthDropdown.js +10 -14
- package/cjs/Calendar/MonthDropdownItem.js +6 -10
- package/cjs/Calendar/Table.js +6 -10
- package/cjs/Calendar/TableHeaderRow.js +4 -7
- package/cjs/Calendar/TableRow.js +7 -11
- package/cjs/Calendar/TimeDropdown.js +4 -8
- package/cjs/Calendar/View.js +4 -8
- package/cjs/Carousel/Carousel.js +10 -14
- package/cjs/Cascader/Cascader.js +29 -26
- package/cjs/Cascader/DropdownMenu.js +19 -21
- package/cjs/CheckPicker/CheckPicker.js +33 -29
- package/cjs/CheckTreePicker/CheckTreeNode.js +4 -6
- package/cjs/CheckTreePicker/CheckTreePicker.js +47 -35
- package/cjs/Checkbox/Checkbox.js +8 -13
- package/cjs/CheckboxGroup/CheckboxGroup.d.ts +1 -12
- package/cjs/CheckboxGroup/CheckboxGroup.js +7 -13
- package/cjs/CheckboxGroup/CheckboxGroupContext.d.ts +13 -0
- package/cjs/CheckboxGroup/CheckboxGroupContext.js +12 -0
- package/cjs/CheckboxGroup/index.d.ts +4 -3
- package/cjs/CheckboxGroup/index.js +6 -4
- package/cjs/Col/Col.js +3 -2
- package/cjs/Container/Container.js +4 -7
- package/cjs/DOMHelper/index.d.ts +1 -1
- package/cjs/DatePicker/DatePicker.js +27 -22
- package/cjs/DatePicker/Toolbar.js +4 -8
- package/cjs/DateRangePicker/Calendar.js +12 -14
- package/cjs/DateRangePicker/DateRangePicker.js +40 -33
- package/cjs/Divider/Divider.js +4 -8
- package/cjs/Drawer/Drawer.js +8 -10
- package/cjs/Dropdown/Dropdown.js +8 -12
- package/cjs/Dropdown/DropdownItem.js +25 -22
- package/cjs/Dropdown/DropdownMenu.js +2 -6
- package/cjs/Dropdown/DropdownToggle.js +4 -8
- package/cjs/FlexboxGrid/FlexboxGrid.js +8 -12
- package/cjs/FlexboxGrid/FlexboxGridItem.js +8 -12
- package/cjs/Form/Form.js +12 -16
- package/cjs/FormControl/FormControl.js +6 -2
- package/cjs/IconButton/IconButton.js +4 -8
- package/cjs/Input/Input.js +6 -10
- package/cjs/InputNumber/InputNumber.js +14 -18
- package/cjs/InputPicker/InputAutosize.js +2 -4
- package/cjs/InputPicker/InputPicker.js +32 -30
- package/cjs/List/List.js +12 -16
- package/cjs/List/ListItem.js +6 -10
- package/cjs/Loader/Loader.js +6 -10
- package/cjs/MaskedInput/MaskedInput.d.ts +43 -0
- package/cjs/MaskedInput/MaskedInput.js +80 -0
- package/cjs/MaskedInput/adjustCaretPosition.d.ts +11 -0
- package/cjs/MaskedInput/adjustCaretPosition.js +218 -0
- package/cjs/MaskedInput/conformToMask.d.ts +8 -0
- package/cjs/MaskedInput/conformToMask.js +247 -0
- package/cjs/MaskedInput/createTextMaskInputElement.d.ts +7 -0
- package/cjs/MaskedInput/createTextMaskInputElement.js +226 -0
- package/cjs/MaskedInput/index.d.ts +3 -0
- package/cjs/MaskedInput/index.js +11 -0
- package/cjs/MaskedInput/types.d.ts +10 -0
- package/cjs/{@types/icons.js → MaskedInput/types.js} +0 -0
- package/cjs/MaskedInput/utilities.d.ts +7 -0
- package/cjs/MaskedInput/utilities.js +47 -0
- package/cjs/Menu/Menu.d.ts +0 -1
- package/cjs/Menu/Menu.js +3 -5
- package/cjs/Message/Message.js +8 -12
- package/cjs/Modal/Modal.d.ts +1 -10
- package/cjs/Modal/Modal.js +35 -27
- package/cjs/Modal/ModalBody.js +6 -10
- package/cjs/Modal/ModalContext.d.ts +12 -0
- package/cjs/Modal/ModalContext.js +12 -0
- package/cjs/Modal/ModalDialog.js +8 -8
- package/cjs/Modal/ModalHeader.js +8 -12
- package/cjs/Modal/ModalTitle.d.ts +3 -2
- package/cjs/Modal/ModalTitle.js +43 -4
- package/cjs/MultiCascader/DropdownMenu.js +21 -23
- package/cjs/MultiCascader/MultiCascader.js +35 -32
- package/cjs/Nav/Nav.js +6 -10
- package/cjs/Navbar/Navbar.js +6 -9
- package/cjs/Notification/Notification.js +6 -10
- package/cjs/Overlay/Modal.js +11 -18
- package/cjs/Overlay/Overlay.js +2 -5
- package/cjs/Overlay/OverlayTrigger.js +9 -9
- package/cjs/Overlay/Position.js +4 -8
- package/cjs/Overlay/positionUtils.js +1 -1
- package/cjs/Pagination/Pagination.js +10 -13
- package/cjs/Pagination/PaginationButton.js +4 -8
- package/cjs/Pagination/PaginationGroup.js +11 -12
- package/cjs/Panel/Panel.js +6 -10
- package/cjs/PanelGroup/PanelGroup.js +4 -8
- package/cjs/Picker/DropdownMenu.js +2 -3
- package/cjs/Picker/DropdownMenuGroup.js +4 -8
- package/cjs/Picker/DropdownMenuItem.js +4 -8
- package/cjs/Picker/PickerToggle.js +15 -14
- package/cjs/Picker/propTypes.d.ts +2 -16
- package/cjs/Picker/propTypes.js +4 -17
- package/cjs/Picker/utils.js +14 -9
- package/cjs/Placeholder/PlaceholderGraph.js +6 -10
- package/cjs/Placeholder/PlaceholderGrid.js +12 -16
- package/cjs/Placeholder/PlaceholderParagraph.js +10 -14
- package/cjs/Popover/Popover.js +4 -8
- package/cjs/Progress/ProgressCircle.js +18 -22
- package/cjs/Progress/ProgressLine.js +8 -12
- package/cjs/Radio/Radio.js +6 -11
- package/cjs/RadioGroup/RadioGroup.js +6 -9
- package/cjs/RangeSlider/RangeSlider.js +17 -20
- package/cjs/Rate/Character.js +4 -7
- package/cjs/Rate/Rate.js +14 -18
- package/cjs/Ripple/Ripple.js +4 -8
- package/cjs/SelectPicker/SelectPicker.js +31 -28
- package/cjs/Sidebar/Sidebar.js +6 -10
- package/cjs/Sidenav/Sidenav.js +8 -11
- package/cjs/Sidenav/SidenavDropdown.d.ts +6 -1
- package/cjs/Sidenav/SidenavDropdown.js +19 -19
- package/cjs/Sidenav/SidenavDropdownCollapse.js +2 -6
- package/cjs/Sidenav/SidenavDropdownItem.js +4 -8
- package/cjs/Sidenav/SidenavDropdownMenu.js +4 -8
- package/cjs/Sidenav/SidenavToggle.js +4 -8
- package/cjs/Slider/Graduated.js +4 -8
- package/cjs/Slider/Handle.d.ts +2 -0
- package/cjs/Slider/Handle.js +23 -12
- package/cjs/Slider/Input.d.ts +3 -0
- package/cjs/Slider/Input.js +35 -0
- package/cjs/Slider/Mark.js +4 -8
- package/cjs/Slider/ProgressBar.js +4 -8
- package/cjs/Slider/Slider.d.ts +0 -3
- package/cjs/Slider/Slider.js +14 -22
- package/cjs/Steps/StepItem.js +4 -7
- package/cjs/Steps/Steps.js +8 -12
- package/cjs/Table/Table.d.ts +7 -7
- package/cjs/Table/Table.js +5 -5
- package/cjs/TagInput/index.js +4 -6
- package/cjs/TagPicker/index.d.ts +1 -1
- package/cjs/TagPicker/index.js +4 -6
- package/cjs/Timeline/Timeline.js +6 -11
- package/cjs/Timeline/TimelineItem.js +4 -8
- package/cjs/Toggle/Toggle.d.ts +2 -0
- package/cjs/Toggle/Toggle.js +27 -13
- package/cjs/Tooltip/Tooltip.js +4 -8
- package/cjs/Tree/Tree.d.ts +6 -0
- package/cjs/TreePicker/TreeNode.js +4 -6
- package/cjs/TreePicker/TreePicker.js +38 -29
- package/cjs/Uploader/UploadFileItem.d.ts +1 -0
- package/cjs/Uploader/UploadFileItem.js +42 -33
- package/cjs/Uploader/UploadTrigger.js +4 -8
- package/cjs/Uploader/Uploader.d.ts +2 -0
- package/cjs/Uploader/Uploader.js +28 -29
- package/cjs/index.d.ts +2 -0
- package/cjs/index.js +5 -1
- package/cjs/locales/fa_IR.d.ts +105 -0
- package/cjs/locales/fa_IR.js +84 -0
- package/cjs/locales/index.d.ts +1 -0
- package/cjs/locales/index.js +6 -2
- package/cjs/toaster/ToastContainer.js +6 -10
- package/cjs/utils/createComponent.d.ts +1 -2
- package/cjs/utils/createComponent.js +10 -13
- package/cjs/utils/previewFile.d.ts +1 -0
- package/cjs/utils/previewFile.js +11 -0
- package/cjs/utils/useUniqueId.d.ts +3 -1
- package/cjs/utils/useUniqueId.js +4 -2
- package/dist/rsuite-rtl.css +115 -44
- package/dist/rsuite-rtl.min.css +1 -1
- package/dist/rsuite-rtl.min.css.map +1 -1
- package/dist/rsuite.css +115 -44
- package/dist/rsuite.js +233 -144
- 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/@types/common.d.ts +0 -1
- package/esm/Animation/Collapse.js +8 -8
- package/esm/AutoComplete/AutoComplete.js +11 -14
- package/esm/Badge/Badge.js +6 -9
- package/esm/Breadcrumb/Breadcrumb.js +8 -11
- package/esm/Breadcrumb/BreadcrumbItem.js +4 -7
- package/esm/Button/Button.js +6 -9
- package/esm/ButtonGroup/ButtonGroup.js +6 -9
- package/esm/Calendar/Calendar.js +4 -7
- package/esm/Calendar/CalendarPanel.js +6 -9
- package/esm/Calendar/Header.js +4 -7
- package/esm/Calendar/MonthDropdown.js +10 -13
- package/esm/Calendar/MonthDropdownItem.js +6 -9
- package/esm/Calendar/Table.js +6 -9
- package/esm/Calendar/TableHeaderRow.js +4 -7
- package/esm/Calendar/TableRow.js +7 -10
- package/esm/Calendar/TimeDropdown.js +4 -7
- package/esm/Calendar/View.js +4 -7
- package/esm/Carousel/Carousel.js +10 -13
- package/esm/Cascader/Cascader.js +29 -26
- package/esm/Cascader/DropdownMenu.js +19 -21
- package/esm/CheckPicker/CheckPicker.js +33 -29
- package/esm/CheckTreePicker/CheckTreeNode.js +4 -6
- package/esm/CheckTreePicker/CheckTreePicker.js +47 -37
- package/esm/Checkbox/Checkbox.js +8 -12
- package/esm/CheckboxGroup/CheckboxGroup.d.ts +1 -12
- package/esm/CheckboxGroup/CheckboxGroup.js +5 -8
- package/esm/CheckboxGroup/CheckboxGroupContext.d.ts +13 -0
- package/esm/CheckboxGroup/CheckboxGroupContext.js +2 -0
- package/esm/CheckboxGroup/index.d.ts +4 -3
- package/esm/CheckboxGroup/index.js +2 -2
- package/esm/Col/Col.js +3 -2
- package/esm/Container/Container.js +4 -7
- package/esm/DOMHelper/index.d.ts +1 -1
- package/esm/DatePicker/DatePicker.js +27 -23
- package/esm/DatePicker/Toolbar.js +5 -8
- package/esm/DateRangePicker/Calendar.js +12 -13
- package/esm/DateRangePicker/DateRangePicker.js +40 -34
- package/esm/Divider/Divider.js +4 -7
- package/esm/Drawer/Drawer.js +8 -9
- package/esm/Dropdown/Dropdown.js +9 -12
- package/esm/Dropdown/DropdownItem.js +26 -22
- package/esm/Dropdown/DropdownMenu.js +3 -6
- package/esm/Dropdown/DropdownToggle.js +4 -7
- package/esm/FlexboxGrid/FlexboxGrid.js +8 -11
- package/esm/FlexboxGrid/FlexboxGridItem.js +8 -11
- package/esm/Form/Form.js +12 -15
- package/esm/FormControl/FormControl.js +6 -2
- package/esm/IconButton/IconButton.js +4 -7
- package/esm/Input/Input.js +6 -9
- package/esm/InputNumber/InputNumber.js +14 -17
- package/esm/InputPicker/InputAutosize.js +2 -4
- package/esm/InputPicker/InputPicker.js +32 -30
- package/esm/List/List.js +12 -15
- package/esm/List/ListItem.js +6 -9
- package/esm/Loader/Loader.js +6 -9
- package/esm/MaskedInput/MaskedInput.d.ts +43 -0
- package/esm/MaskedInput/MaskedInput.js +67 -0
- package/esm/MaskedInput/adjustCaretPosition.d.ts +11 -0
- package/esm/MaskedInput/adjustCaretPosition.js +213 -0
- package/esm/MaskedInput/conformToMask.d.ts +8 -0
- package/esm/MaskedInput/conformToMask.js +239 -0
- package/esm/MaskedInput/createTextMaskInputElement.d.ts +7 -0
- package/esm/MaskedInput/createTextMaskInputElement.js +212 -0
- package/esm/MaskedInput/index.d.ts +3 -0
- package/esm/MaskedInput/index.js +2 -0
- package/esm/MaskedInput/types.d.ts +10 -0
- package/esm/{@types/icons.js → MaskedInput/types.js} +0 -0
- package/esm/MaskedInput/utilities.d.ts +7 -0
- package/esm/MaskedInput/utilities.js +38 -0
- package/esm/Menu/Menu.d.ts +0 -1
- package/esm/Menu/Menu.js +3 -5
- package/esm/Message/Message.js +8 -11
- package/esm/Modal/Modal.d.ts +1 -10
- package/esm/Modal/Modal.js +31 -21
- package/esm/Modal/ModalBody.js +5 -8
- package/esm/Modal/ModalContext.d.ts +12 -0
- package/esm/Modal/ModalContext.js +2 -0
- package/esm/Modal/ModalDialog.js +8 -8
- package/esm/Modal/ModalHeader.js +7 -10
- package/esm/Modal/ModalTitle.d.ts +3 -2
- package/esm/Modal/ModalTitle.js +35 -4
- package/esm/MultiCascader/DropdownMenu.js +21 -23
- package/esm/MultiCascader/MultiCascader.js +35 -32
- package/esm/Nav/Nav.js +6 -9
- package/esm/Navbar/Navbar.js +6 -9
- package/esm/Notification/Notification.js +6 -9
- package/esm/Overlay/Modal.js +11 -18
- package/esm/Overlay/Overlay.js +2 -5
- package/esm/Overlay/OverlayTrigger.js +9 -9
- package/esm/Overlay/Position.js +4 -7
- package/esm/Overlay/positionUtils.js +1 -1
- package/esm/Pagination/Pagination.js +10 -13
- package/esm/Pagination/PaginationButton.js +4 -7
- package/esm/Pagination/PaginationGroup.js +10 -11
- package/esm/Panel/Panel.js +6 -9
- package/esm/PanelGroup/PanelGroup.js +4 -7
- package/esm/Picker/DropdownMenu.js +2 -3
- package/esm/Picker/DropdownMenuGroup.js +4 -7
- package/esm/Picker/DropdownMenuItem.js +4 -7
- package/esm/Picker/PickerToggle.js +13 -12
- package/esm/Picker/propTypes.d.ts +2 -16
- package/esm/Picker/propTypes.js +2 -13
- package/esm/Picker/utils.js +14 -9
- package/esm/Placeholder/PlaceholderGraph.js +6 -9
- package/esm/Placeholder/PlaceholderGrid.js +12 -15
- package/esm/Placeholder/PlaceholderParagraph.js +10 -13
- package/esm/Popover/Popover.js +4 -7
- package/esm/Progress/ProgressCircle.js +18 -21
- package/esm/Progress/ProgressLine.js +8 -11
- package/esm/Radio/Radio.js +6 -10
- package/esm/RadioGroup/RadioGroup.js +6 -9
- package/esm/RangeSlider/RangeSlider.js +17 -20
- package/esm/Rate/Character.js +4 -7
- package/esm/Rate/Rate.js +14 -17
- package/esm/Ripple/Ripple.js +4 -7
- package/esm/SelectPicker/SelectPicker.js +31 -28
- package/esm/Sidebar/Sidebar.js +6 -9
- package/esm/Sidenav/Sidenav.js +8 -11
- package/esm/Sidenav/SidenavDropdown.d.ts +6 -1
- package/esm/Sidenav/SidenavDropdown.js +19 -18
- package/esm/Sidenav/SidenavDropdownCollapse.js +2 -5
- package/esm/Sidenav/SidenavDropdownItem.js +5 -8
- package/esm/Sidenav/SidenavDropdownMenu.js +5 -8
- package/esm/Sidenav/SidenavToggle.js +4 -7
- package/esm/Slider/Graduated.js +4 -7
- package/esm/Slider/Handle.d.ts +2 -0
- package/esm/Slider/Handle.js +23 -12
- package/esm/Slider/Input.d.ts +3 -0
- package/esm/Slider/Input.js +23 -0
- package/esm/Slider/Mark.js +4 -7
- package/esm/Slider/ProgressBar.js +4 -7
- package/esm/Slider/Slider.d.ts +0 -3
- package/esm/Slider/Slider.js +14 -22
- package/esm/Steps/StepItem.js +4 -7
- package/esm/Steps/Steps.js +8 -11
- package/esm/Table/Table.d.ts +7 -7
- package/esm/Table/Table.js +5 -5
- package/esm/TagInput/index.js +4 -6
- package/esm/TagPicker/index.d.ts +1 -1
- package/esm/TagPicker/index.js +4 -6
- package/esm/Timeline/Timeline.js +6 -10
- package/esm/Timeline/TimelineItem.js +4 -7
- package/esm/Toggle/Toggle.d.ts +2 -0
- package/esm/Toggle/Toggle.js +27 -13
- package/esm/Tooltip/Tooltip.js +4 -7
- package/esm/Tree/Tree.d.ts +6 -0
- package/esm/TreePicker/TreeNode.js +4 -6
- package/esm/TreePicker/TreePicker.js +38 -31
- package/esm/Uploader/UploadFileItem.d.ts +1 -0
- package/esm/Uploader/UploadFileItem.js +42 -33
- package/esm/Uploader/UploadTrigger.js +4 -7
- package/esm/Uploader/Uploader.d.ts +2 -0
- package/esm/Uploader/Uploader.js +28 -28
- package/esm/index.d.ts +2 -0
- package/esm/index.js +1 -0
- package/esm/locales/fa_IR.d.ts +105 -0
- package/esm/locales/fa_IR.js +74 -0
- package/esm/locales/index.d.ts +1 -0
- package/esm/locales/index.js +2 -1
- package/esm/toaster/ToastContainer.js +6 -9
- package/esm/utils/createComponent.d.ts +1 -2
- package/esm/utils/createComponent.js +10 -13
- package/esm/utils/previewFile.d.ts +1 -0
- package/esm/utils/previewFile.js +9 -0
- package/esm/utils/useUniqueId.d.ts +3 -1
- package/esm/utils/useUniqueId.js +4 -2
- package/locales/fa_IR/package.json +7 -0
- package/package.json +6 -8
- package/styles/color-modes/dark.less +1 -0
- package/styles/color-modes/high-contrast.less +1 -0
- package/styles/color-modes/light.less +3 -0
- package/styles/variables.less +3 -1
- package/cjs/@types/icons.d.ts +0 -1
- package/esm/@types/icons.d.ts +0 -1
package/esm/locales/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export { default as ruRU } from './ru_RU';
|
|
|
14
14
|
export { default as svSE } from './sv_SE';
|
|
15
15
|
export { default as zhCN } from './zh_CN';
|
|
16
16
|
export { default as zhTw } from './zh_TW';
|
|
17
|
+
export { default as faIR } from './fa_IR';
|
|
17
18
|
declare type PickKeys<T> = {
|
|
18
19
|
[keys in keyof T]?: T[keys];
|
|
19
20
|
};
|
package/esm/locales/index.js
CHANGED
|
@@ -12,4 +12,5 @@ export { default as ptBR } from './pt_BR';
|
|
|
12
12
|
export { default as ruRU } from './ru_RU';
|
|
13
13
|
export { default as svSE } from './sv_SE';
|
|
14
14
|
export { default as zhCN } from './zh_CN';
|
|
15
|
-
export { default as zhTw } from './zh_TW';
|
|
15
|
+
export { default as zhTw } from './zh_TW';
|
|
16
|
+
export { default as faIR } from './fa_IR';
|
|
@@ -6,11 +6,6 @@ import PropTypes from 'prop-types';
|
|
|
6
6
|
import kebabCase from 'lodash/kebabCase';
|
|
7
7
|
import Transition from '../Animation/Transition';
|
|
8
8
|
import { useClassNames, guid, createChainedFunction } from '../utils';
|
|
9
|
-
var defaultProps = {
|
|
10
|
-
as: 'div',
|
|
11
|
-
classPrefix: 'toast-container',
|
|
12
|
-
placement: 'topCenter'
|
|
13
|
-
};
|
|
14
9
|
|
|
15
10
|
var useMessages = function useMessages() {
|
|
16
11
|
var _useState = useState([]),
|
|
@@ -73,10 +68,13 @@ var useMessages = function useMessages() {
|
|
|
73
68
|
var ToastContainer = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
74
69
|
var rootRef = useRef();
|
|
75
70
|
|
|
76
|
-
var
|
|
71
|
+
var _props$as = props.as,
|
|
72
|
+
Component = _props$as === void 0 ? 'div' : _props$as,
|
|
77
73
|
className = props.className,
|
|
78
|
-
classPrefix = props.classPrefix,
|
|
79
|
-
|
|
74
|
+
_props$classPrefix = props.classPrefix,
|
|
75
|
+
classPrefix = _props$classPrefix === void 0 ? 'toast-container' : _props$classPrefix,
|
|
76
|
+
_props$placement = props.placement,
|
|
77
|
+
placement = _props$placement === void 0 ? 'topCenter' : _props$placement,
|
|
80
78
|
rest = _objectWithoutPropertiesLoose(props, ["as", "className", "classPrefix", "placement"]);
|
|
81
79
|
|
|
82
80
|
var _useClassNames = useClassNames(classPrefix),
|
|
@@ -155,7 +153,6 @@ ToastContainer.getInstance = function (props) {
|
|
|
155
153
|
};
|
|
156
154
|
|
|
157
155
|
ToastContainer.displayName = 'ToastContainer';
|
|
158
|
-
ToastContainer.defaultProps = defaultProps;
|
|
159
156
|
ToastContainer.propTypes = {
|
|
160
157
|
className: PropTypes.string,
|
|
161
158
|
classPrefix: PropTypes.string,
|
|
@@ -8,7 +8,6 @@ interface Props extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Create a component with `classPrefix` and `as` attributes.
|
|
11
|
-
* @param defaultProps
|
|
12
11
|
*/
|
|
13
|
-
declare function createComponent(defaultProps: Props): RsRefForwardingComponent<"div", ComponentProps>;
|
|
12
|
+
declare function createComponent({ name, componentAs, componentClassPrefix, ...defaultProps }: Props): RsRefForwardingComponent<"div", ComponentProps>;
|
|
14
13
|
export default createComponent;
|
|
@@ -7,17 +7,18 @@ import { useClassNames } from '../utils';
|
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Create a component with `classPrefix` and `as` attributes.
|
|
10
|
-
* @param defaultProps
|
|
11
10
|
*/
|
|
12
|
-
function createComponent(
|
|
13
|
-
var name =
|
|
14
|
-
componentAs =
|
|
15
|
-
componentClassPrefix =
|
|
16
|
-
|
|
11
|
+
function createComponent(_ref) {
|
|
12
|
+
var name = _ref.name,
|
|
13
|
+
componentAs = _ref.componentAs,
|
|
14
|
+
componentClassPrefix = _ref.componentClassPrefix,
|
|
15
|
+
defaultProps = _objectWithoutPropertiesLoose(_ref, ["name", "componentAs", "componentClassPrefix"]);
|
|
17
16
|
|
|
18
17
|
var Component = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
19
|
-
var
|
|
20
|
-
|
|
18
|
+
var _props$as = props.as,
|
|
19
|
+
Component = _props$as === void 0 ? componentAs || 'div' : _props$as,
|
|
20
|
+
_props$classPrefix = props.classPrefix,
|
|
21
|
+
classPrefix = _props$classPrefix === void 0 ? componentClassPrefix || kebabCase(name) : _props$classPrefix,
|
|
21
22
|
className = props.className,
|
|
22
23
|
role = props.role,
|
|
23
24
|
rest = _objectWithoutPropertiesLoose(props, ["as", "classPrefix", "className", "role"]);
|
|
@@ -27,7 +28,7 @@ function createComponent(defaultProps) {
|
|
|
27
28
|
merge = _useClassNames.merge;
|
|
28
29
|
|
|
29
30
|
var classes = merge(className, withClassPrefix());
|
|
30
|
-
return /*#__PURE__*/React.createElement(Component, _extends({}, rest, {
|
|
31
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, defaultProps, rest, {
|
|
31
32
|
role: role,
|
|
32
33
|
ref: ref,
|
|
33
34
|
className: classes
|
|
@@ -40,10 +41,6 @@ function createComponent(defaultProps) {
|
|
|
40
41
|
classPrefix: PropTypes.string,
|
|
41
42
|
children: PropTypes.node
|
|
42
43
|
};
|
|
43
|
-
Component.defaultProps = _extends({}, componentRestProps, {
|
|
44
|
-
as: componentAs || 'div',
|
|
45
|
-
classPrefix: componentClassPrefix || kebabCase(name)
|
|
46
|
-
});
|
|
47
44
|
return Component;
|
|
48
45
|
}
|
|
49
46
|
|
package/esm/utils/previewFile.js
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
|
+
// https://developer.mozilla.org/en-US/docs/Web/Media/Formats/Image_types
|
|
2
|
+
var MIME = ['image/apng', 'image/avif', 'image/gif', 'image/jpeg', 'image/png', 'image/svg+xml', 'image/webp'];
|
|
3
|
+
export function isImage(file) {
|
|
4
|
+
return MIME.includes(file === null || file === void 0 ? void 0 : file.type);
|
|
5
|
+
}
|
|
1
6
|
export default (function (file, callback) {
|
|
7
|
+
if (!isImage(file)) {
|
|
8
|
+
return callback(null);
|
|
9
|
+
}
|
|
10
|
+
|
|
2
11
|
var reader = new FileReader();
|
|
3
12
|
|
|
4
13
|
reader.onloadend = function () {
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Used for generating unique ID for DOM elements
|
|
3
|
+
*
|
|
4
|
+
* @param idProp If id is provided, it will be used instead of generating a new one
|
|
3
5
|
*/
|
|
4
|
-
export default function useUniqueId(prefix?: string): string;
|
|
6
|
+
export default function useUniqueId(prefix: string, idProp?: string): string;
|
package/esm/utils/useUniqueId.js
CHANGED
|
@@ -2,14 +2,16 @@ import { useRef } from 'react';
|
|
|
2
2
|
import uniqueId from 'lodash/uniqueId';
|
|
3
3
|
/**
|
|
4
4
|
* Used for generating unique ID for DOM elements
|
|
5
|
+
*
|
|
6
|
+
* @param idProp If id is provided, it will be used instead of generating a new one
|
|
5
7
|
*/
|
|
6
8
|
|
|
7
|
-
export default function useUniqueId(prefix) {
|
|
9
|
+
export default function useUniqueId(prefix, idProp) {
|
|
8
10
|
var idRef = useRef();
|
|
9
11
|
|
|
10
12
|
if (!idRef.current) {
|
|
11
13
|
idRef.current = uniqueId(prefix);
|
|
12
14
|
}
|
|
13
15
|
|
|
14
|
-
return idRef.current;
|
|
16
|
+
return idProp !== null && idProp !== void 0 ? idProp : idRef.current;
|
|
15
17
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rsuite",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.1.0",
|
|
4
4
|
"description": "A suite of react components",
|
|
5
5
|
"main": "cjs/index.js",
|
|
6
6
|
"module": "esm/index.js",
|
|
@@ -25,21 +25,19 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@babel/runtime": "^7.8.4",
|
|
28
|
-
"@rsuite/icons": "^1.0.
|
|
28
|
+
"@rsuite/icons": "^1.0.2",
|
|
29
29
|
"@types/chai": "^4.2.18",
|
|
30
|
-
"@types/classnames": "^2.2.8",
|
|
31
30
|
"@types/lodash": "^4.14.134",
|
|
32
31
|
"@types/prop-types": "^15.7.1",
|
|
33
32
|
"@types/react-virtualized": "^9.21.11",
|
|
34
|
-
"classnames": "
|
|
33
|
+
"classnames": "^2.3.1",
|
|
35
34
|
"date-fns": "^2.13.0",
|
|
36
|
-
"dom-lib": "^2.0
|
|
35
|
+
"dom-lib": "^2.1.0",
|
|
37
36
|
"element-resize-event": "^3.0.6",
|
|
38
37
|
"lodash": "^4.17.11",
|
|
39
38
|
"prop-types": "^15.7.2",
|
|
40
|
-
"react-text-mask": "^5.4.3",
|
|
41
39
|
"react-virtualized": "^9.22.3",
|
|
42
|
-
"rsuite-table": "^5.0.
|
|
40
|
+
"rsuite-table": "^5.0.2",
|
|
43
41
|
"schema-typed": "^2.0.1"
|
|
44
42
|
},
|
|
45
43
|
"peerDependencies": {
|
|
@@ -49,7 +47,7 @@
|
|
|
49
47
|
"browserslist": [
|
|
50
48
|
"> 1%",
|
|
51
49
|
"last 2 versions",
|
|
52
|
-
"ie
|
|
50
|
+
"not ie <11"
|
|
53
51
|
],
|
|
54
52
|
"sideEffects": [
|
|
55
53
|
"cjs/**/styles/*",
|
|
@@ -153,6 +153,7 @@
|
|
|
153
153
|
--rs-navbar-inverse-text: #fff;
|
|
154
154
|
--rs-navbar-inverse-selected-bg: @H400;
|
|
155
155
|
--rs-navbar-inverse-hover-bg: @H600;
|
|
156
|
+
--rs-navbar-inverse-hover-text: #fff;
|
|
156
157
|
--rs-navbar-subtle-bg: transparent;
|
|
157
158
|
--rs-navbar-subtle-text: @B200;
|
|
158
159
|
--rs-navbar-subtle-selected-text: @H500;
|
|
@@ -161,6 +161,7 @@
|
|
|
161
161
|
--rs-navbar-inverse-selected-bg: transparent;
|
|
162
162
|
--rs-navbar-inverse-selected-text: @H500;
|
|
163
163
|
--rs-navbar-inverse-hover-bg: transparent;
|
|
164
|
+
--rs-navbar-inverse-hover-text: @H500;
|
|
164
165
|
--rs-navbar-subtle-bg: @B800;
|
|
165
166
|
--rs-navbar-subtle-text: @B050;
|
|
166
167
|
--rs-navbar-subtle-selected-text: @H500;
|
|
@@ -160,6 +160,7 @@
|
|
|
160
160
|
--rs-navbar-inverse-text: #fff;
|
|
161
161
|
--rs-navbar-inverse-selected-bg: @H700;
|
|
162
162
|
--rs-navbar-inverse-hover-bg: @H600;
|
|
163
|
+
--rs-navbar-inverse-hover-text: #fff;
|
|
163
164
|
--rs-navbar-subtle-bg: #fff;
|
|
164
165
|
--rs-navbar-subtle-text: @B600;
|
|
165
166
|
--rs-navbar-subtle-selected-text: @H700;
|
|
@@ -214,6 +215,8 @@
|
|
|
214
215
|
// Toggle
|
|
215
216
|
--rs-toggle-bg: @B300;
|
|
216
217
|
--rs-toggle-thumb: #fff;
|
|
218
|
+
--rs-toggle-loader-ring: fade(@B050, 30%);
|
|
219
|
+
--rs-toggle-loader-rotor: @B000;
|
|
217
220
|
--rs-toggle-hover-bg: @B400;
|
|
218
221
|
--rs-toggle-disabled-bg: @B050;
|
|
219
222
|
--rs-toggle-disabled-thumb: #fff;
|
package/styles/variables.less
CHANGED
|
@@ -608,7 +608,9 @@
|
|
|
608
608
|
// Uploader
|
|
609
609
|
|
|
610
610
|
@uploader-file-list-margin-top: 10px;
|
|
611
|
-
@uploader-file-item-icon-font-size:
|
|
611
|
+
@uploader-file-item-icon-font-size: 22px;
|
|
612
|
+
@uploader-file-item-icon-margin: 12px;
|
|
613
|
+
@uploader-file-item-icon-margin-plus: 22px;
|
|
612
614
|
@uploader-base-padding: 8px;
|
|
613
615
|
@uploader-picture-side-length: 66px;
|
|
614
616
|
@uploader-picture-item-gap: 10px;
|
package/cjs/@types/icons.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare type IconNames = '500px' | 'address-book' | 'address-book-o' | 'adjust' | 'adn' | 'align-center' | 'align-justify' | 'align-left' | 'align-right' | 'alipay' | 'amazon' | 'ambulance' | 'anchor' | 'android' | 'android2' | 'angellist' | 'angle-double-down' | 'angle-double-left' | 'angle-double-right' | 'angle-double-up' | 'angle-down' | 'angle-left' | 'angle-right' | 'angle-up' | 'apple' | 'archive' | 'area-chart' | 'arrow-circle-down' | 'arrow-circle-left' | 'arrow-circle-o-down' | 'arrow-circle-o-left' | 'arrow-circle-o-right' | 'arrow-circle-o-up' | 'arrow-circle-right' | 'arrow-circle-up' | 'arrow-down' | 'arrow-down-line' | 'arrow-down2' | 'arrow-left' | 'arrow-left-line' | 'arrow-right' | 'arrow-right-line' | 'arrow-up' | 'arrow-up-line' | 'arrow-up2' | 'arrows' | 'arrows-alt' | 'arrows-h' | 'arrows-v' | 'asl-interpreting' | 'assistive-listening-systems' | 'asterisk' | 'at' | 'attachment' | 'attribution' | 'audio-description' | 'avatar' | 'back-arrow' | 'backward' | 'balance-scale' | 'ban' | 'bandcamp' | 'bank' | 'bar-chart' | 'bar-chart-ranking' | 'barcode' | 'bars' | 'battery' | 'battery-0' | 'battery-1' | 'battery-2' | 'battery-3' | 'bed' | 'beer' | 'behance' | 'behance-square' | 'bell' | 'bell-o' | 'bell-slash' | 'bell-slash-o' | 'bicycle' | 'binoculars' | 'birthday-cake' | 'bitbucket' | 'bitbucket-square' | 'black-tie' | 'blind' | 'bluetooth' | 'bluetooth-b' | 'bold' | 'bolt' | 'bomb' | 'book' | 'book2' | 'bookmark' | 'bookmark-o' | 'braille' | 'briefcase' | 'btc' | 'btn-off' | 'btn-on' | 'bug' | 'building' | 'building-o' | 'building2' | 'bullhorn' | 'bullseye' | 'bus' | 'buysellads' | 'cab' | 'calculator' | 'calendar' | 'calendar-check-o' | 'calendar-minus-o' | 'calendar-o' | 'calendar-plus-o' | 'calendar-times-o' | 'camera' | 'camera-retro' | 'car' | 'caret-down' | 'caret-left' | 'caret-right' | 'caret-up' | 'cart-arrow-down' | 'cart-plus' | 'cc' | 'cc-amex' | 'cc-diners-club' | 'cc-discover' | 'cc-jcb' | 'cc-mastercard' | 'cc-paypal' | 'cc-stripe' | 'cc-visa' | 'certificate' | 'character-area' | 'character-authorize' | 'charts' | 'charts-line' | 'check' | 'check-circle' | 'check-circle-o' | 'check-square' | 'check-square-o' | 'check2' | 'chevron-circle-down' | 'chevron-circle-left' | 'chevron-circle-right' | 'chevron-circle-up' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'chevron-up' | 'child' | 'chrome' | 'circle' | 'circle-o' | 'circle-o-notch' | 'circle-thin' | 'clock-o' | 'clone' | 'close' | 'close-circle' | 'cloud' | 'cloud-download' | 'cloud-upload' | 'cny' | 'code' | 'code-fork' | 'codepen' | 'codiepie' | 'coffee' | 'cog' | 'cogs' | 'coincide' | 'collasped' | 'collasped-o' | 'columns' | 'comment' | 'comment-o' | 'commenting' | 'commenting-o' | 'comments' | 'comments-o' | 'compass' | 'compress' | 'connectdevelop' | 'contao' | 'copy' | 'copy-o' | 'copyright' | 'creative' | 'creative-commons' | 'credit-card' | 'credit-card-alt' | 'crop' | 'crosshairs' | 'css3' | 'cube' | 'cubes' | 'cut' | 'cutlery' | 'dashboard' | 'dashcube' | 'data-authorize' | 'data-decrease' | 'data-increase' | 'database' | 'deaf' | 'dedent' | 'delicious' | 'desktop' | 'detail' | 'deviantart' | 'diamond' | 'digg' | 'dot-circle-o' | 'down' | 'download' | 'download2' | 'dribbble' | 'dropbox' | 'drupal' | 'edge' | 'edit' | 'edit2' | 'eercast' | 'eject' | 'ellipsis-h' | 'ellipsis-v' | 'envelope' | 'envelope-o' | 'envelope-open' | 'envelope-open-o' | 'envelope-square' | 'envira' | 'eraser' | 'etsy' | 'eur' | 'exchange' | 'exclamation' | 'exclamation-circle' | 'exclamation-circle2' | 'exclamation-triangle' | 'exit' | 'expand' | 'expand-o' | 'expeditedssl' | 'explore' | 'export' | 'external-link' | 'external-link-square' | 'eye' | 'eye-slash' | 'eyedropper' | 'fa' | 'facebook' | 'facebook-official' | 'facebook-square' | 'fast-backward' | 'fast-forward' | 'fax' | 'female' | 'fighter-jet' | 'file' | 'file-audio-o' | 'file-code-o' | 'file-download' | 'file-excel-o' | 'file-image-o' | 'file-movie-o' | 'file-o' | 'file-pdf-o' | 'file-powerpoint-o' | 'file-text' | 'file-text-o' | 'file-upload' | 'file-word-o' | 'file-zip-o' | 'film' | 'filter' | 'fire' | 'fire-extinguisher' | 'firefox' | 'first-order' | 'flag' | 'flag-checkered' | 'flag-o' | 'flask' | 'flickr' | 'flow' | 'folder' | 'folder-o' | 'folder-open' | 'folder-open-o' | 'font' | 'fonticons' | 'fort-awesome' | 'forumbee' | 'forward' | 'foursquare' | 'frame' | 'free-code-camp' | 'frown-o' | 'futbol-o' | 'gamepad' | 'gavel' | 'gbp' | 'ge' | 'gear' | 'gear-circle' | 'gear2' | 'gears2' | 'genderless' | 'get-pocket' | 'gg' | 'gg-circle' | 'gift' | 'git' | 'git-square' | 'github' | 'github-alt' | 'github-square' | 'gitlab' | 'gittip' | 'glass' | 'glide' | 'glide-g' | 'globe' | 'globe2' | 'good' | 'google' | 'google-plus' | 'google-plus-circle' | 'google-plus-square' | 'google-wallet' | 'grav' | 'group' | 'h-square' | 'hand-grab-o' | 'hand-lizard-o' | 'hand-o-down' | 'hand-o-left' | 'hand-o-right' | 'hand-o-up' | 'hand-peace-o' | 'hand-pointer-o' | 'hand-scissors-o' | 'hand-spock-o' | 'hand-stop-o' | 'handshake-o' | 'hashtag' | 'hdd-o' | 'header' | 'headphones' | 'heart' | 'heart-o' | 'heartbeat' | 'help-o' | 'history' | 'home' | 'hospital-o' | 'hourglass' | 'hourglass-1' | 'hourglass-2' | 'hourglass-3' | 'hourglass-o' | 'houzz' | 'html5' | 'i-cursor' | 'id-badge' | 'id-card' | 'id-card-o' | 'id-info' | 'id-mapping' | 'ils' | 'image' | 'imdb' | 'import' | 'inbox' | 'indent' | 'industry' | 'info' | 'info-circle' | 'inr' | 'instagram' | 'internet-explorer' | 'intersex' | 'ios' | 'ioxhost' | 'italic' | 'joomla' | 'jsfiddle' | 'key' | 'keyboard-o' | 'krw' | 'language' | 'laptop' | 'lastfm' | 'lastfm-square' | 'leaf' | 'leanpub' | 'left' | 'lemon-o' | 'level-down' | 'level-up' | 'lightbulb-o' | 'line-chart' | 'link' | 'linkedin' | 'linkedin-square' | 'linode' | 'linux' | 'list' | 'list-alt' | 'list-ol' | 'list-ul' | 'location-arrow' | 'lock' | 'logo-ads' | 'logo-analytics' | 'logo-dmp' | 'logo-mobile' | 'logo-shop' | 'logo-survey' | 'logo-video' | 'long-arrow-down' | 'long-arrow-left' | 'long-arrow-right' | 'long-arrow-up' | 'low-vision' | 'magic' | 'magic2' | 'magnet' | 'male' | 'map' | 'map-marker' | 'map-o' | 'map-pin' | 'map-signs' | 'mars' | 'mars-double' | 'mars-stroke' | 'mars-stroke-h' | 'mars-stroke-v' | 'maxcdn' | 'meanpath' | 'medium' | 'medkit' | 'meetup' | 'meh-o' | 'mercury' | 'microchip' | 'microphone' | 'microphone-slash' | 'minus' | 'minus-circle' | 'minus-square' | 'minus-square-o' | 'mixcloud' | 'mobile' | 'modx' | 'money' | 'moon-o' | 'more' | 'mortar-board' | 'motorcycle' | 'mouse-pointer' | 'multiple-lines-chart' | 'music' | 'neuter' | 'newspaper-o' | 'object-group' | 'object-ungroup' | 'odnoklassniki' | 'odnoklassniki-square' | 'off' | 'ok-circle' | 'opencart' | 'openid' | 'opera' | 'optin-monster' | 'order-form' | 'page-end' | 'page-next' | 'page-previous' | 'page-top' | 'pagelines' | 'paint-brush' | 'paperclip' | 'paragraph' | 'paste' | 'pause' | 'pause-circle' | 'pause-circle-o' | 'paw' | 'paypal' | 'pc' | 'pencil' | 'pencil-square' | 'people-group' | 'peoples' | 'peoples-map' | 'percent' | 'phone' | 'phone-square' | 'pie-chart' | 'pied-piper' | 'pied-piper-alt' | 'pied-piper-pp' | 'pinterest' | 'pinterest-p' | 'pinterest-square' | 'plane' | 'play' | 'play-circle' | 'play-circle-o' | 'play2' | 'plug' | 'plus' | 'plus-circle' | 'plus-square' | 'plus-square-o' | 'podcast' | 'power-off' | 'print' | 'product-hunt' | 'profile' | 'project' | 'public-opinion' | 'puzzle-piece' | 'qq' | 'qrcode' | 'question' | 'question-circle' | 'question-circle2' | 'question2' | 'quora' | 'quote-left' | 'quote-right' | 'ra' | 'random' | 'rate' | 'ravelry' | 'realtime' | 'recycle' | 'reddit' | 'reddit-alien' | 'reddit-square' | 'refresh' | 'refresh2' | 'registered' | 'related-map' | 'reload' | 'remind' | 'renren' | 'repeat' | 'reply' | 'reply-all' | 'retention' | 'retweet' | 'right' | 'road' | 'rocket' | 'rss' | 'rss-square' | 'rub' | 's15' | 'safari' | 'sales' | 'growth' | 'save' | 'scribd' | 'search' | 'search-minus' | 'search-peoples' | 'search-plus' | 'sellsy' | 'send' | 'send-o' | 'sequence' | 'sequence-down' | 'sequence-up' | 'server' | 'setting' | 'shapes' | 'share' | 'share-alt' | 'share-alt-square' | 'share-square' | 'share-square-o' | 'share2' | 'shield' | 'ship' | 'shirtsinbulk' | 'shopping-bag' | 'shopping-basket' | 'shopping-cart' | 'shower' | 'sign-in' | 'sign-out' | 'signal' | 'signing' | 'simplybuilt' | 'sitemap' | 'skyatlas' | 'skype' | 'slack' | 'sliders' | 'slideshare' | 'smile-o' | 'snapchat' | 'snapchat-ghost' | 'snapchat-square' | 'snowflake-o' | 'sort' | 'sort-alpha-asc' | 'sort-alpha-desc' | 'sort-amount-asc' | 'sort-amount-desc' | 'sort-desc' | 'sort-numeric-asc' | 'sort-numeric-desc' | 'sort-up' | 'soundcloud' | 'space-shuttle' | 'speaker' | 'spinner' | 'spoon' | 'spotify' | 'square' | 'square-o' | 'squares' | 'stack-exchange' | 'stack-overflow' | 'star' | 'star-half' | 'star-half-o' | 'star-o' | 'steam' | 'steam-square' | 'step-backward' | 'step-forward' | 'stethoscope' | 'sticky-note' | 'sticky-note-o' | 'stop' | 'stop-circle' | 'stop-circle-o' | 'stop2' | 'street-view' | 'strikethrough' | 'stumbleupon' | 'stumbleupon-circle' | 'subscript' | 'subway' | 'suitcase' | 'sun-o' | 'superpowers' | 'superscript' | 'support' | 'table' | 'tablet' | 'tag' | 'tag-area' | 'tag-authorize' | 'tag-unauthorize' | 'tags' | 'target' | 'task' | 'tasks' | 'telegram' | 'tencent-weibo' | 'terminal' | 'terminal-line' | 'text-height' | 'text-width' | 'th' | 'th-large' | 'th-list' | 'th2' | 'themeisle' | 'thermometer' | 'thermometer-0' | 'thermometer-1' | 'thermometer-2' | 'thermometer-3' | 'thumb-tack' | 'thumbs-down' | 'thumbs-o-down' | 'thumbs-o-up' | 'thumbs-up' | 'ticket' | 'times-circle' | 'times-circle-o' | 'tint' | 'tmall' | 'toggle-down' | 'toggle-left' | 'toggle-off' | 'toggle-on' | 'toggle-right' | 'toggle-up' | 'trademark' | 'train' | 'transgender-alt' | 'trash' | 'trash-o' | 'trash2' | 'tree' | 'tree-close' | 'tree-open' | 'trello' | 'trend' | 'tripadvisor' | 'trophy' | 'truck' | 'try' | 'tty' | 'tumblr' | 'tumblr-square' | 'tv' | 'twinkle-star' | 'twitch' | 'twitter' | 'twitter-square' | 'umbrella' | 'underline' | 'undo' | 'universal-access' | 'unlink' | 'unlock' | 'unlock-alt' | 'up' | 'upload' | 'upload2' | 'usb' | 'usd' | 'user' | 'user-analysis' | 'user-circle' | 'user-circle-o' | 'user-info' | 'user-md' | 'user-o' | 'user-plus' | 'user-secret' | 'user-times' | 'vcard' | 'vcard-o' | 'venus' | 'venus-double' | 'venus-mars' | 'viacoin' | 'viadeo' | 'viadeo-square' | 'video-camera' | 'views-authorize' | 'views-unauthorize' | 'vimeo' | 'vimeo-square' | 'vine' | 'vk' | 'volume-control-phone' | 'volume-down' | 'volume-off' | 'volume-up' | 'warning' | 'weapp' | 'web' | 'wechat' | 'weibo' | 'whatsapp' | 'wheelchair' | 'wheelchair-alt' | 'wifi' | 'wikipedia-w' | 'window-close' | 'window-close-o' | 'window-maximize' | 'window-minimize' | 'window-restore' | 'windows' | 'wordpress' | 'wpbeginner' | 'wpexplorer' | 'wpforms' | 'wrench' | 'xing' | 'xing-square' | 'yahoo' | 'yc' | 'yc-square' | 'yelp' | 'yoast' | 'youtube' | 'youtube-play' | 'youtube-square';
|
package/esm/@types/icons.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare type IconNames = '500px' | 'address-book' | 'address-book-o' | 'adjust' | 'adn' | 'align-center' | 'align-justify' | 'align-left' | 'align-right' | 'alipay' | 'amazon' | 'ambulance' | 'anchor' | 'android' | 'android2' | 'angellist' | 'angle-double-down' | 'angle-double-left' | 'angle-double-right' | 'angle-double-up' | 'angle-down' | 'angle-left' | 'angle-right' | 'angle-up' | 'apple' | 'archive' | 'area-chart' | 'arrow-circle-down' | 'arrow-circle-left' | 'arrow-circle-o-down' | 'arrow-circle-o-left' | 'arrow-circle-o-right' | 'arrow-circle-o-up' | 'arrow-circle-right' | 'arrow-circle-up' | 'arrow-down' | 'arrow-down-line' | 'arrow-down2' | 'arrow-left' | 'arrow-left-line' | 'arrow-right' | 'arrow-right-line' | 'arrow-up' | 'arrow-up-line' | 'arrow-up2' | 'arrows' | 'arrows-alt' | 'arrows-h' | 'arrows-v' | 'asl-interpreting' | 'assistive-listening-systems' | 'asterisk' | 'at' | 'attachment' | 'attribution' | 'audio-description' | 'avatar' | 'back-arrow' | 'backward' | 'balance-scale' | 'ban' | 'bandcamp' | 'bank' | 'bar-chart' | 'bar-chart-ranking' | 'barcode' | 'bars' | 'battery' | 'battery-0' | 'battery-1' | 'battery-2' | 'battery-3' | 'bed' | 'beer' | 'behance' | 'behance-square' | 'bell' | 'bell-o' | 'bell-slash' | 'bell-slash-o' | 'bicycle' | 'binoculars' | 'birthday-cake' | 'bitbucket' | 'bitbucket-square' | 'black-tie' | 'blind' | 'bluetooth' | 'bluetooth-b' | 'bold' | 'bolt' | 'bomb' | 'book' | 'book2' | 'bookmark' | 'bookmark-o' | 'braille' | 'briefcase' | 'btc' | 'btn-off' | 'btn-on' | 'bug' | 'building' | 'building-o' | 'building2' | 'bullhorn' | 'bullseye' | 'bus' | 'buysellads' | 'cab' | 'calculator' | 'calendar' | 'calendar-check-o' | 'calendar-minus-o' | 'calendar-o' | 'calendar-plus-o' | 'calendar-times-o' | 'camera' | 'camera-retro' | 'car' | 'caret-down' | 'caret-left' | 'caret-right' | 'caret-up' | 'cart-arrow-down' | 'cart-plus' | 'cc' | 'cc-amex' | 'cc-diners-club' | 'cc-discover' | 'cc-jcb' | 'cc-mastercard' | 'cc-paypal' | 'cc-stripe' | 'cc-visa' | 'certificate' | 'character-area' | 'character-authorize' | 'charts' | 'charts-line' | 'check' | 'check-circle' | 'check-circle-o' | 'check-square' | 'check-square-o' | 'check2' | 'chevron-circle-down' | 'chevron-circle-left' | 'chevron-circle-right' | 'chevron-circle-up' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'chevron-up' | 'child' | 'chrome' | 'circle' | 'circle-o' | 'circle-o-notch' | 'circle-thin' | 'clock-o' | 'clone' | 'close' | 'close-circle' | 'cloud' | 'cloud-download' | 'cloud-upload' | 'cny' | 'code' | 'code-fork' | 'codepen' | 'codiepie' | 'coffee' | 'cog' | 'cogs' | 'coincide' | 'collasped' | 'collasped-o' | 'columns' | 'comment' | 'comment-o' | 'commenting' | 'commenting-o' | 'comments' | 'comments-o' | 'compass' | 'compress' | 'connectdevelop' | 'contao' | 'copy' | 'copy-o' | 'copyright' | 'creative' | 'creative-commons' | 'credit-card' | 'credit-card-alt' | 'crop' | 'crosshairs' | 'css3' | 'cube' | 'cubes' | 'cut' | 'cutlery' | 'dashboard' | 'dashcube' | 'data-authorize' | 'data-decrease' | 'data-increase' | 'database' | 'deaf' | 'dedent' | 'delicious' | 'desktop' | 'detail' | 'deviantart' | 'diamond' | 'digg' | 'dot-circle-o' | 'down' | 'download' | 'download2' | 'dribbble' | 'dropbox' | 'drupal' | 'edge' | 'edit' | 'edit2' | 'eercast' | 'eject' | 'ellipsis-h' | 'ellipsis-v' | 'envelope' | 'envelope-o' | 'envelope-open' | 'envelope-open-o' | 'envelope-square' | 'envira' | 'eraser' | 'etsy' | 'eur' | 'exchange' | 'exclamation' | 'exclamation-circle' | 'exclamation-circle2' | 'exclamation-triangle' | 'exit' | 'expand' | 'expand-o' | 'expeditedssl' | 'explore' | 'export' | 'external-link' | 'external-link-square' | 'eye' | 'eye-slash' | 'eyedropper' | 'fa' | 'facebook' | 'facebook-official' | 'facebook-square' | 'fast-backward' | 'fast-forward' | 'fax' | 'female' | 'fighter-jet' | 'file' | 'file-audio-o' | 'file-code-o' | 'file-download' | 'file-excel-o' | 'file-image-o' | 'file-movie-o' | 'file-o' | 'file-pdf-o' | 'file-powerpoint-o' | 'file-text' | 'file-text-o' | 'file-upload' | 'file-word-o' | 'file-zip-o' | 'film' | 'filter' | 'fire' | 'fire-extinguisher' | 'firefox' | 'first-order' | 'flag' | 'flag-checkered' | 'flag-o' | 'flask' | 'flickr' | 'flow' | 'folder' | 'folder-o' | 'folder-open' | 'folder-open-o' | 'font' | 'fonticons' | 'fort-awesome' | 'forumbee' | 'forward' | 'foursquare' | 'frame' | 'free-code-camp' | 'frown-o' | 'futbol-o' | 'gamepad' | 'gavel' | 'gbp' | 'ge' | 'gear' | 'gear-circle' | 'gear2' | 'gears2' | 'genderless' | 'get-pocket' | 'gg' | 'gg-circle' | 'gift' | 'git' | 'git-square' | 'github' | 'github-alt' | 'github-square' | 'gitlab' | 'gittip' | 'glass' | 'glide' | 'glide-g' | 'globe' | 'globe2' | 'good' | 'google' | 'google-plus' | 'google-plus-circle' | 'google-plus-square' | 'google-wallet' | 'grav' | 'group' | 'h-square' | 'hand-grab-o' | 'hand-lizard-o' | 'hand-o-down' | 'hand-o-left' | 'hand-o-right' | 'hand-o-up' | 'hand-peace-o' | 'hand-pointer-o' | 'hand-scissors-o' | 'hand-spock-o' | 'hand-stop-o' | 'handshake-o' | 'hashtag' | 'hdd-o' | 'header' | 'headphones' | 'heart' | 'heart-o' | 'heartbeat' | 'help-o' | 'history' | 'home' | 'hospital-o' | 'hourglass' | 'hourglass-1' | 'hourglass-2' | 'hourglass-3' | 'hourglass-o' | 'houzz' | 'html5' | 'i-cursor' | 'id-badge' | 'id-card' | 'id-card-o' | 'id-info' | 'id-mapping' | 'ils' | 'image' | 'imdb' | 'import' | 'inbox' | 'indent' | 'industry' | 'info' | 'info-circle' | 'inr' | 'instagram' | 'internet-explorer' | 'intersex' | 'ios' | 'ioxhost' | 'italic' | 'joomla' | 'jsfiddle' | 'key' | 'keyboard-o' | 'krw' | 'language' | 'laptop' | 'lastfm' | 'lastfm-square' | 'leaf' | 'leanpub' | 'left' | 'lemon-o' | 'level-down' | 'level-up' | 'lightbulb-o' | 'line-chart' | 'link' | 'linkedin' | 'linkedin-square' | 'linode' | 'linux' | 'list' | 'list-alt' | 'list-ol' | 'list-ul' | 'location-arrow' | 'lock' | 'logo-ads' | 'logo-analytics' | 'logo-dmp' | 'logo-mobile' | 'logo-shop' | 'logo-survey' | 'logo-video' | 'long-arrow-down' | 'long-arrow-left' | 'long-arrow-right' | 'long-arrow-up' | 'low-vision' | 'magic' | 'magic2' | 'magnet' | 'male' | 'map' | 'map-marker' | 'map-o' | 'map-pin' | 'map-signs' | 'mars' | 'mars-double' | 'mars-stroke' | 'mars-stroke-h' | 'mars-stroke-v' | 'maxcdn' | 'meanpath' | 'medium' | 'medkit' | 'meetup' | 'meh-o' | 'mercury' | 'microchip' | 'microphone' | 'microphone-slash' | 'minus' | 'minus-circle' | 'minus-square' | 'minus-square-o' | 'mixcloud' | 'mobile' | 'modx' | 'money' | 'moon-o' | 'more' | 'mortar-board' | 'motorcycle' | 'mouse-pointer' | 'multiple-lines-chart' | 'music' | 'neuter' | 'newspaper-o' | 'object-group' | 'object-ungroup' | 'odnoklassniki' | 'odnoklassniki-square' | 'off' | 'ok-circle' | 'opencart' | 'openid' | 'opera' | 'optin-monster' | 'order-form' | 'page-end' | 'page-next' | 'page-previous' | 'page-top' | 'pagelines' | 'paint-brush' | 'paperclip' | 'paragraph' | 'paste' | 'pause' | 'pause-circle' | 'pause-circle-o' | 'paw' | 'paypal' | 'pc' | 'pencil' | 'pencil-square' | 'people-group' | 'peoples' | 'peoples-map' | 'percent' | 'phone' | 'phone-square' | 'pie-chart' | 'pied-piper' | 'pied-piper-alt' | 'pied-piper-pp' | 'pinterest' | 'pinterest-p' | 'pinterest-square' | 'plane' | 'play' | 'play-circle' | 'play-circle-o' | 'play2' | 'plug' | 'plus' | 'plus-circle' | 'plus-square' | 'plus-square-o' | 'podcast' | 'power-off' | 'print' | 'product-hunt' | 'profile' | 'project' | 'public-opinion' | 'puzzle-piece' | 'qq' | 'qrcode' | 'question' | 'question-circle' | 'question-circle2' | 'question2' | 'quora' | 'quote-left' | 'quote-right' | 'ra' | 'random' | 'rate' | 'ravelry' | 'realtime' | 'recycle' | 'reddit' | 'reddit-alien' | 'reddit-square' | 'refresh' | 'refresh2' | 'registered' | 'related-map' | 'reload' | 'remind' | 'renren' | 'repeat' | 'reply' | 'reply-all' | 'retention' | 'retweet' | 'right' | 'road' | 'rocket' | 'rss' | 'rss-square' | 'rub' | 's15' | 'safari' | 'sales' | 'growth' | 'save' | 'scribd' | 'search' | 'search-minus' | 'search-peoples' | 'search-plus' | 'sellsy' | 'send' | 'send-o' | 'sequence' | 'sequence-down' | 'sequence-up' | 'server' | 'setting' | 'shapes' | 'share' | 'share-alt' | 'share-alt-square' | 'share-square' | 'share-square-o' | 'share2' | 'shield' | 'ship' | 'shirtsinbulk' | 'shopping-bag' | 'shopping-basket' | 'shopping-cart' | 'shower' | 'sign-in' | 'sign-out' | 'signal' | 'signing' | 'simplybuilt' | 'sitemap' | 'skyatlas' | 'skype' | 'slack' | 'sliders' | 'slideshare' | 'smile-o' | 'snapchat' | 'snapchat-ghost' | 'snapchat-square' | 'snowflake-o' | 'sort' | 'sort-alpha-asc' | 'sort-alpha-desc' | 'sort-amount-asc' | 'sort-amount-desc' | 'sort-desc' | 'sort-numeric-asc' | 'sort-numeric-desc' | 'sort-up' | 'soundcloud' | 'space-shuttle' | 'speaker' | 'spinner' | 'spoon' | 'spotify' | 'square' | 'square-o' | 'squares' | 'stack-exchange' | 'stack-overflow' | 'star' | 'star-half' | 'star-half-o' | 'star-o' | 'steam' | 'steam-square' | 'step-backward' | 'step-forward' | 'stethoscope' | 'sticky-note' | 'sticky-note-o' | 'stop' | 'stop-circle' | 'stop-circle-o' | 'stop2' | 'street-view' | 'strikethrough' | 'stumbleupon' | 'stumbleupon-circle' | 'subscript' | 'subway' | 'suitcase' | 'sun-o' | 'superpowers' | 'superscript' | 'support' | 'table' | 'tablet' | 'tag' | 'tag-area' | 'tag-authorize' | 'tag-unauthorize' | 'tags' | 'target' | 'task' | 'tasks' | 'telegram' | 'tencent-weibo' | 'terminal' | 'terminal-line' | 'text-height' | 'text-width' | 'th' | 'th-large' | 'th-list' | 'th2' | 'themeisle' | 'thermometer' | 'thermometer-0' | 'thermometer-1' | 'thermometer-2' | 'thermometer-3' | 'thumb-tack' | 'thumbs-down' | 'thumbs-o-down' | 'thumbs-o-up' | 'thumbs-up' | 'ticket' | 'times-circle' | 'times-circle-o' | 'tint' | 'tmall' | 'toggle-down' | 'toggle-left' | 'toggle-off' | 'toggle-on' | 'toggle-right' | 'toggle-up' | 'trademark' | 'train' | 'transgender-alt' | 'trash' | 'trash-o' | 'trash2' | 'tree' | 'tree-close' | 'tree-open' | 'trello' | 'trend' | 'tripadvisor' | 'trophy' | 'truck' | 'try' | 'tty' | 'tumblr' | 'tumblr-square' | 'tv' | 'twinkle-star' | 'twitch' | 'twitter' | 'twitter-square' | 'umbrella' | 'underline' | 'undo' | 'universal-access' | 'unlink' | 'unlock' | 'unlock-alt' | 'up' | 'upload' | 'upload2' | 'usb' | 'usd' | 'user' | 'user-analysis' | 'user-circle' | 'user-circle-o' | 'user-info' | 'user-md' | 'user-o' | 'user-plus' | 'user-secret' | 'user-times' | 'vcard' | 'vcard-o' | 'venus' | 'venus-double' | 'venus-mars' | 'viacoin' | 'viadeo' | 'viadeo-square' | 'video-camera' | 'views-authorize' | 'views-unauthorize' | 'vimeo' | 'vimeo-square' | 'vine' | 'vk' | 'volume-control-phone' | 'volume-down' | 'volume-off' | 'volume-up' | 'warning' | 'weapp' | 'web' | 'wechat' | 'weibo' | 'whatsapp' | 'wheelchair' | 'wheelchair-alt' | 'wifi' | 'wikipedia-w' | 'window-close' | 'window-close-o' | 'window-maximize' | 'window-minimize' | 'window-restore' | 'windows' | 'wordpress' | 'wpbeginner' | 'wpexplorer' | 'wpforms' | 'wrench' | 'xing' | 'xing-square' | 'yahoo' | 'yc' | 'yc-square' | 'yelp' | 'yoast' | 'youtube' | 'youtube-play' | 'youtube-square';
|