@qsxy/element-plus-react 1.0.0-next.1 → 1.0.0-next.10
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/README.md +95 -0
- package/dist/Avatar/Avatar.d.ts +4 -0
- package/dist/Avatar/Avatar.js +86 -0
- package/dist/Avatar/index.d.ts +2 -0
- package/dist/{VirtualList → Avatar}/index.js +7 -7
- package/dist/Avatar/typings.d.ts +21 -0
- package/dist/{VirtualList/interface.js → Avatar/typings.js} +3 -3
- package/dist/Badge/Badge.js +4 -5
- package/dist/Badge/typings.d.ts +10 -0
- package/dist/Breadcrumb/Breadcrumb.js +1 -4
- package/dist/Breadcrumb/typings.d.ts +4 -0
- package/dist/Button/Button.d.ts +0 -1
- package/dist/Button/Button.js +21 -9
- package/dist/Button/typings.d.ts +28 -0
- package/dist/Calendar/Calendar.js +1 -2
- package/dist/Calendar/CalendarContext.d.ts +10 -0
- package/dist/Calendar/Footer.js +1 -2
- package/dist/Calendar/Header.js +3 -8
- package/dist/Calendar/ShortCuts.d.ts +2 -0
- package/dist/Calendar/typings.d.ts +18 -0
- package/dist/Card/typings.d.ts +4 -0
- package/dist/Carousel/Carousel.d.ts +4 -0
- package/dist/Carousel/Carousel.js +168 -0
- package/dist/Carousel/CarouselContext.d.ts +4 -0
- package/dist/{VirtualList/Item.js → Carousel/CarouselContext.js} +29 -14
- package/dist/Carousel/CarouselItem.d.ts +4 -0
- package/dist/Carousel/CarouselItem.js +75 -0
- package/dist/Carousel/hooks/useCarousel.d.ts +37 -0
- package/dist/Carousel/hooks/useCarousel.js +348 -0
- package/dist/Carousel/hooks/useCarouselItem.d.ts +8 -0
- package/dist/Carousel/hooks/useCarouselItem.js +161 -0
- package/dist/Carousel/index.d.ts +3 -0
- package/dist/Carousel/index.js +42 -0
- package/dist/Carousel/typings.d.ts +83 -0
- package/dist/{VirtualList/utils/findDOMNode.js → Carousel/typings.js} +3 -16
- package/dist/Cascader/Cascader.js +148 -182
- package/dist/Cascader/CascaderContext.d.ts +4 -10
- package/dist/Cascader/CascaderContext.js +2 -6
- package/dist/Cascader/CascaderDropdown.d.ts +1 -0
- package/dist/Cascader/CascaderDropdown.js +1 -1
- package/dist/Cascader/CascaderMenu.js +4 -77
- package/dist/Cascader/Utils.d.ts +0 -2
- package/dist/Cascader/Utils.js +0 -44
- package/dist/Cascader/index.d.ts +1 -1
- package/dist/Cascader/typings.d.ts +76 -12
- package/dist/Cascader/useCascader.d.ts +61 -3
- package/dist/Cascader/useCascader.js +14 -41
- package/dist/Checkbox/Checkbox.js +2 -6
- package/dist/Checkbox/CheckboxButton.js +2 -6
- package/dist/Checkbox/typings.d.ts +11 -0
- package/dist/CheckboxGroup/CheckboxGroup.d.ts +4 -0
- package/dist/CheckboxGroup/CheckboxGroupContext.d.ts +1 -0
- package/dist/Col/Col.js +1 -8
- package/dist/Col/typings.d.ts +10 -0
- package/dist/Collapse/CollapseContext.d.ts +3 -0
- package/dist/Collapse/CollapseItem.js +10 -8
- package/dist/Collapse/CollapseTransition.d.ts +7 -6
- package/dist/Collapse/CollapseTransition.js +49 -31
- package/dist/Collapse/typings.d.ts +7 -0
- package/dist/ColorPicker/AlphaSlider.d.ts +7 -0
- package/dist/ColorPicker/AlphaSlider.js +0 -1
- package/dist/ColorPicker/ColorPicker.js +0 -1
- package/dist/ColorPicker/HueSlider.d.ts +7 -0
- package/dist/ColorPicker/HueSlider.js +0 -1
- package/dist/ColorPicker/Predefine.d.ts +7 -0
- package/dist/ColorPicker/Predefine.js +0 -1
- package/dist/ColorPicker/SvPanel.d.ts +7 -0
- package/dist/ColorPicker/SvPanel.js +0 -1
- package/dist/ColorPicker/typings.d.ts +9 -0
- package/dist/ConfigProvider/ConfigProvider.d.ts +5 -0
- package/dist/DatePicker/DatePicker.js +25 -14
- package/dist/DatePicker/DateRangePicker.js +11 -10
- package/dist/DatePicker/typings.d.ts +69 -0
- package/dist/DateTimePicker/DateTimePicker.d.ts +1 -1
- package/dist/DateTimePicker/DateTimePicker.js +13 -11
- package/dist/DateTimePicker/typings.d.ts +1 -0
- package/dist/Descriptions/Descriptions.js +1 -5
- package/dist/Descriptions/DescriptionsContext.d.ts +2 -0
- package/dist/Descriptions/typings.d.ts +13 -0
- package/dist/Dialog/Dialog.d.ts +0 -1
- package/dist/Dialog/Dialog.js +5 -8
- package/dist/Dialog/DialogBody.js +0 -3
- package/dist/Dialog/DialogContext.d.ts +8 -0
- package/dist/Dialog/DialogHeader.js +1 -4
- package/dist/Dialog/typings.d.ts +38 -2
- package/dist/Divider/Divider.d.ts +4 -0
- package/dist/Divider/Divider.js +1 -6
- package/dist/Drawer/Drawer.js +28 -14
- package/dist/Drawer/DrawerBody.js +1 -4
- package/dist/Drawer/DrawerContext.d.ts +10 -0
- package/dist/Drawer/DrawerHeader.js +1 -4
- package/dist/Drawer/typings.d.ts +16 -0
- package/dist/Dropdown/Dropdown.js +12 -8
- package/dist/Dropdown/DropdownContext.d.ts +2 -0
- package/dist/Dropdown/typings.d.ts +16 -1
- package/dist/Empty/Empty.js +1 -4
- package/dist/Empty/ImgEmpty.js +1 -1
- package/dist/Form/Form.js +10 -6
- package/dist/Form/FormItem.d.ts +12 -0
- package/dist/Form/FormItem.js +3 -1
- package/dist/Form/typings.d.ts +55 -0
- package/dist/Form/useForm.d.ts +22 -0
- package/dist/Form/utils/NameMap.d.ts +3 -0
- package/dist/Form/utils/classUtil.js +2 -2
- package/dist/Form/utils/validateUtil.d.ts +4 -0
- package/dist/Form/utils/valueUtil.d.ts +17 -0
- package/dist/Icon/Icon.js +1 -4
- package/dist/Icon/typings.d.ts +7 -0
- package/dist/Input/Input.js +18 -10
- package/dist/Input/InputRange.js +14 -11
- package/dist/Input/TextArea.js +8 -4
- package/dist/Input/typings.d.ts +61 -0
- package/dist/InputNumber/InputNumber.js +10 -7
- package/dist/InputNumber/typings.d.ts +21 -0
- package/dist/Link/Link.js +1 -4
- package/dist/Link/typings.d.ts +6 -1
- package/dist/Loading/Loading.js +17 -9
- package/dist/Loading/typings.d.ts +5 -0
- package/dist/Message/Main.d.ts +7 -0
- package/dist/Message/Message.js +11 -8
- package/dist/Message/index.d.ts +8 -0
- package/dist/Message/typings.d.ts +11 -0
- package/dist/MessageBox/Main.js +3 -1
- package/dist/MessageBox/MessageBox.js +1 -1
- package/dist/MessageBox/index.d.ts +17 -3
- package/dist/MessageBox/index.js +1 -1
- package/dist/MessageBox/typings.d.ts +50 -0
- package/dist/Notification/Main.d.ts +7 -0
- package/dist/Notification/Notification.js +17 -14
- package/dist/Notification/index.d.ts +15 -0
- package/dist/Notification/typings.d.ts +13 -0
- package/dist/Pagination/Pagination.js +15 -11
- package/dist/Pagination/typings.d.ts +28 -0
- package/dist/Popconfirm/Popconfirm.js +14 -10
- package/dist/Popconfirm/typings.d.ts +12 -1
- package/dist/Popover/Popover.js +13 -9
- package/dist/Popover/typings.d.ts +13 -1
- package/dist/Popper/Popper.js +22 -18
- package/dist/Popper/typings.d.ts +7 -1
- package/dist/Progress/Progress.js +13 -9
- package/dist/Progress/typings.d.ts +12 -0
- package/dist/Radio/typings.d.ts +7 -0
- package/dist/RadioGroup/typings.d.ts +1 -0
- package/dist/Row/Row.js +8 -5
- package/dist/Row/RowContext.d.ts +1 -0
- package/dist/Row/typings.d.ts +4 -0
- package/dist/Scrollbar/Scrollbar.js +13 -9
- package/dist/Scrollbar/Thumb.js +1 -1
- package/dist/Scrollbar/typings.d.ts +20 -0
- package/dist/Select/SelectCore.js +17 -14
- package/dist/Select/typings.d.ts +33 -0
- package/dist/Skeleton/PlaceholderGraph.d.ts +4 -0
- package/dist/Skeleton/PlaceholderGrid.d.ts +4 -0
- package/dist/Skeleton/PlaceholderGrid.js +0 -4
- package/dist/Skeleton/PlaceholderParagraph.d.ts +4 -0
- package/dist/Skeleton/PlaceholderParagraph.js +0 -4
- package/dist/Switch/Switch.js +13 -10
- package/dist/Switch/typings.d.ts +15 -0
- package/dist/Table/Colgroup.d.ts +1 -0
- package/dist/Table/Table.js +13 -9
- package/dist/Table/TableBody.js +10 -41
- package/dist/Table/TableCell.js +0 -5
- package/dist/Table/TableColumn.js +0 -4
- package/dist/Table/TableContext.d.ts +8 -0
- package/dist/Table/hooks/useSelection.d.ts +10 -0
- package/dist/Table/hooks/useTable.d.ts +7 -0
- package/dist/Table/treeUtil.d.ts +39 -0
- package/dist/Table/typings.d.ts +137 -1
- package/dist/Table/util.d.ts +10 -0
- package/dist/Table/util.js +2 -2
- package/dist/Tabs/Tabs.js +2 -5
- package/dist/Tabs/typings.d.ts +38 -0
- package/dist/Tag/Tag.d.ts +1 -1
- package/dist/Tag/Tag.js +7 -8
- package/dist/Tag/typings.d.ts +10 -0
- package/dist/TimeLine/TimeLineItem.js +7 -4
- package/dist/TimeLine/typings.d.ts +9 -0
- package/dist/TimePicker/TimePicker.js +16 -12
- package/dist/TimePicker/TimePickerRange.js +15 -12
- package/dist/TimePicker/TimeSpinnerPanel.js +3 -5
- package/dist/TimePicker/typings.d.ts +13 -0
- package/dist/TimePicker/useTimePicker.d.ts +7 -0
- package/dist/Tooltip/Tooltip.js +8 -15
- package/dist/Tooltip/TooltipContext.d.ts +1 -0
- package/dist/Tooltip/typings.d.ts +14 -1
- package/dist/Transfer/List.js +12 -8
- package/dist/Transfer/ListItem.d.ts +1 -0
- package/dist/Transfer/Transfer.js +11 -7
- package/dist/Transfer/typings/index.d.ts +27 -0
- package/dist/Transfer/typings/list.d.ts +25 -0
- package/dist/Transfer/typings/listBody.d.ts +1 -0
- package/dist/Transition/Transition.d.ts +16 -3
- package/dist/Transition/Transition.js +6 -4
- package/dist/Transition/TransitionGroup.d.ts +59 -0
- package/dist/Transition/childMapping.d.ts +23 -0
- package/dist/Tree/DirectoryTree.d.ts +6 -13
- package/dist/Tree/DirectoryTree.js +32 -81
- package/dist/Tree/DropIndicator.d.ts +4 -2
- package/dist/Tree/DropIndicator.js +7 -2
- package/dist/Tree/Indent.d.ts +2 -2
- package/dist/Tree/Indent.js +4 -4
- package/dist/Tree/MotionTreeNode.d.ts +4 -5
- package/dist/Tree/MotionTreeNode.js +69 -52
- package/dist/Tree/NodeList.d.ts +18 -11
- package/dist/Tree/NodeList.js +38 -29
- package/dist/Tree/RCTree.d.ts +92 -75
- package/dist/Tree/RCTree.js +199 -188
- package/dist/Tree/Tree.d.ts +18 -3
- package/dist/Tree/Tree.js +27 -27
- package/dist/Tree/TreeNode.d.ts +5 -83
- package/dist/Tree/TreeNode.js +320 -425
- package/dist/Tree/contextTypes.d.ts +40 -30
- package/dist/Tree/contextTypes.js +17 -4
- package/dist/Tree/index.d.ts +2 -2
- package/dist/Tree/typings.d.ts +63 -19
- package/dist/Tree/typings.js +1 -13
- package/dist/Tree/typings.tsx--bak +245 -0
- package/dist/Tree/useUnmount.d.ts +5 -0
- package/dist/{VirtualList/hooks/useChildren.js → Tree/useUnmount.js} +24 -16
- package/dist/Tree/util.d.ts +31 -18
- package/dist/Tree/util.js +21 -52
- package/dist/Tree/utils/conductUtil.d.ts +8 -2
- package/dist/Tree/utils/conductUtil.js +14 -3
- package/dist/Tree/utils/dictUtil.d.ts +8 -3
- package/dist/Tree/utils/dictUtil.js +49 -32
- package/dist/Tree/utils/diffUtil.d.ts +4 -3
- package/dist/Tree/utils/keyUtil.d.ts +2 -0
- package/dist/{VirtualList/utils/isFirefox.js → Tree/utils/keyUtil.js} +8 -7
- package/dist/Tree/utils/motion.js +6 -5
- package/dist/Tree/utils/pickAttrs.d.ts +5 -0
- package/dist/Tree/utils/treeUtil.d.ts +40 -18
- package/dist/Tree/utils/treeUtil.js +35 -14
- package/dist/TreeSelect/TreeSelect.js +14 -13
- package/dist/TreeSelect/Utils.d.ts +2 -1
- package/dist/TreeSelect/typings.d.ts +19 -0
- package/dist/Upload/Upload.js +9 -8
- package/dist/Upload/UploadList.js +2 -1
- package/dist/Upload/typings.d.ts +34 -0
- package/dist/Upload/use-handlers.d.ts +1 -0
- package/dist/Upload/use-handlers.js +1 -1
- package/dist/Util/Math.d.ts +34 -0
- package/dist/Util/base.d.ts +22 -0
- package/dist/Util/base.js +17 -0
- package/dist/Util/shallowEqual.d.ts +11 -0
- package/dist/Util/treeUtils.d.ts +8 -0
- package/dist/fonts/fa-brands-400.ttf +0 -0
- package/dist/fonts/fa-brands-400.woff2 +0 -0
- package/dist/fonts/fa-duotone-900.ttf +0 -0
- package/dist/fonts/fa-duotone-900.woff2 +0 -0
- package/dist/fonts/fa-light-300.ttf +0 -0
- package/dist/fonts/fa-light-300.woff2 +0 -0
- package/dist/fonts/fa-regular-400.ttf +0 -0
- package/dist/fonts/fa-regular-400.woff2 +0 -0
- package/dist/fonts/fa-solid-900.ttf +0 -0
- package/dist/fonts/fa-solid-900.woff2 +0 -0
- package/dist/fonts/fa-thin-100.ttf +0 -0
- package/dist/fonts/fa-thin-100.woff2 +0 -0
- package/dist/fonts/fa-v4compatibility.ttf +0 -0
- package/dist/fonts/fa-v4compatibility.woff2 +0 -0
- package/dist/hooks/animationPropsUtils.d.ts +12 -0
- package/dist/hooks/htmlPropsUtils.d.ts +8 -0
- package/dist/hooks/popperPropsUtils.d.ts +12 -0
- package/dist/hooks/prefix.d.ts +1 -1
- package/dist/hooks/prefix.js +4 -4
- package/dist/hooks/treePropsUtils.d.ts +12 -0
- package/dist/hooks/useChildrenInstance.d.ts +11 -0
- package/dist/hooks/useClassNames.d.ts +79 -0
- package/dist/hooks/useClassNames.js +12 -2
- package/dist/hooks/useControlled.d.ts +8 -0
- package/dist/hooks/useForceUpdate.d.ts +1 -0
- package/dist/index.css +1029 -1290
- package/dist/index.d.ts +8 -5
- package/dist/index.js +8 -5
- package/dist/theme-chalk/avatar/index.scss +50 -0
- package/dist/theme-chalk/build.scss +2 -0
- package/dist/theme-chalk/calendar/month-table.scss +1 -1
- package/dist/theme-chalk/carousel/index.scss +237 -0
- package/dist/theme-chalk/checkbox/index.scss +2 -2
- package/dist/theme-chalk/common/_var.scss +1 -0
- package/dist/theme-chalk/dev.scss +2 -0
- package/dist/theme-chalk/doc.scss +2 -0
- package/dist/theme-chalk/fonts/fa-brands-400.ttf +0 -0
- package/dist/theme-chalk/fonts/fa-brands-400.woff2 +0 -0
- package/dist/theme-chalk/fonts/fa-duotone-900.ttf +0 -0
- package/dist/theme-chalk/fonts/fa-duotone-900.woff2 +0 -0
- package/dist/theme-chalk/fonts/fa-light-300.ttf +0 -0
- package/dist/theme-chalk/fonts/fa-light-300.woff2 +0 -0
- package/dist/theme-chalk/fonts/fa-regular-400.ttf +0 -0
- package/dist/theme-chalk/fonts/fa-regular-400.woff2 +0 -0
- package/dist/theme-chalk/fonts/fa-solid-900.ttf +0 -0
- package/dist/theme-chalk/fonts/fa-solid-900.woff2 +0 -0
- package/dist/theme-chalk/fonts/fa-thin-100.ttf +0 -0
- package/dist/theme-chalk/fonts/fa-thin-100.woff2 +0 -0
- package/dist/theme-chalk/fonts/fa-v4compatibility.ttf +0 -0
- package/dist/theme-chalk/fonts/fa-v4compatibility.woff2 +0 -0
- package/dist/theme-chalk/icon/fonts.scss +9 -0
- package/dist/theme-chalk/icon/index.scss +0 -9
- package/dist/theme-chalk/icon/scss/_shims.scss +318 -318
- package/dist/theme-chalk/icon/scss/_variables.scss +1 -3
- package/dist/theme-chalk/icon/scss/brands.scss +0 -5
- package/dist/theme-chalk/icon/scss/duotone.scss +0 -5
- package/dist/theme-chalk/icon/scss/fontawesome.scss +0 -8
- package/dist/theme-chalk/icon/scss/light.scss +2 -7
- package/dist/theme-chalk/icon/scss/regular.scss +2 -7
- package/dist/theme-chalk/icon/scss/solid.scss +2 -7
- package/dist/theme-chalk/icon/scss/thin.scss +2 -7
- package/dist/theme-chalk/icon/scss/v4-shims.scss +0 -8
- package/dist/theme-chalk/index.scss +3 -0
- package/dist/theme-chalk/input/input.scss +5 -3
- package/dist/theme-chalk/link/index.scss +0 -85
- package/dist/theme-chalk/loading/index.scss +5 -7
- package/dist/theme-chalk/message/index.scss +5 -5
- package/dist/theme-chalk/notification/index.scss +5 -5
- package/dist/theme-chalk/pagination/index.scss +1 -1
- package/dist/theme-chalk/tabs/index.scss +1 -1
- package/dist/types/common.d.ts +24 -0
- package/dist/types/type.d.ts +5 -0
- package/package.json +4 -24
- package/theme-chalk/avatar/index.scss +50 -0
- package/theme-chalk/badge/index.scss +63 -0
- package/theme-chalk/breadcrumb/index.scss +65 -0
- package/theme-chalk/build.scss +2 -0
- package/{dist/theme-chalk/bak/mixins/_button.scss → theme-chalk/button/_mixins.scss} +151 -58
- package/theme-chalk/button/button-group.scss +83 -0
- package/theme-chalk/button/button.scss +382 -0
- package/theme-chalk/button/index.scss +2 -0
- package/theme-chalk/calendar/date-picker.scss +112 -0
- package/theme-chalk/calendar/date-range-picker.scss +139 -0
- package/theme-chalk/calendar/date-table.scss +156 -0
- package/theme-chalk/calendar/index.scss +6 -0
- package/theme-chalk/calendar/month-table.scss +92 -0
- package/theme-chalk/calendar/picker-panel.scss +136 -0
- package/theme-chalk/calendar/year-table.scss +107 -0
- package/theme-chalk/card/index.scss +44 -0
- package/theme-chalk/carousel/index.scss +237 -0
- package/theme-chalk/cascader/cascader-panel.scss +184 -0
- package/theme-chalk/cascader/cascader.scss +239 -0
- package/theme-chalk/cascader/index.scss +2 -0
- package/theme-chalk/checkbox/index.scss +255 -0
- package/theme-chalk/checkbox-button/index.scss +117 -0
- package/theme-chalk/checkbox-group/index.scss +33 -0
- package/{dist/theme-chalk/bak/mixins/_col.scss → theme-chalk/col/_mixins.scss} +27 -3
- package/theme-chalk/col/index.scss +50 -0
- package/theme-chalk/collapse/index.scss +84 -0
- package/theme-chalk/color-picker/index.scss +340 -0
- package/{dist/theme-chalk/bak/mixins/config.scss → theme-chalk/common/_var.scss} +1 -0
- package/theme-chalk/common/index.scss +222 -0
- package/theme-chalk/common/index.ts +1 -0
- package/theme-chalk/date-picker/index.scss +253 -0
- package/theme-chalk/date-time-picker/index.scss +3 -0
- package/theme-chalk/date-time-picker/time-picker.scss +83 -0
- package/theme-chalk/date-time-picker/time-range-picker.scss +32 -0
- package/theme-chalk/descriptions/descriptions-item.scss +66 -0
- package/theme-chalk/descriptions/descriptions.scss +160 -0
- package/theme-chalk/descriptions/index.scss +2 -0
- package/theme-chalk/dev.scss +2 -0
- package/theme-chalk/dialog/index.scss +190 -0
- package/theme-chalk/divider/index.scss +51 -0
- package/theme-chalk/doc.scss +2 -0
- package/theme-chalk/drawer/index.scss +250 -0
- package/theme-chalk/dropdown/index.scss +147 -0
- package/theme-chalk/empty/index.scss +69 -0
- package/theme-chalk/fonts/fa-brands-400.ttf +0 -0
- package/theme-chalk/fonts/fa-brands-400.woff2 +0 -0
- package/theme-chalk/fonts/fa-duotone-900.ttf +0 -0
- package/theme-chalk/fonts/fa-duotone-900.woff2 +0 -0
- package/theme-chalk/fonts/fa-light-300.ttf +0 -0
- package/theme-chalk/fonts/fa-light-300.woff2 +0 -0
- package/theme-chalk/fonts/fa-regular-400.ttf +0 -0
- package/theme-chalk/fonts/fa-regular-400.woff2 +0 -0
- package/theme-chalk/fonts/fa-solid-900.ttf +0 -0
- package/theme-chalk/fonts/fa-solid-900.woff2 +0 -0
- package/theme-chalk/fonts/fa-thin-100.ttf +0 -0
- package/theme-chalk/fonts/fa-thin-100.woff2 +0 -0
- package/theme-chalk/fonts/fa-v4compatibility.ttf +0 -0
- package/theme-chalk/fonts/fa-v4compatibility.woff2 +0 -0
- package/theme-chalk/form/index.scss +359 -0
- package/theme-chalk/icon/fonts.scss +9 -0
- package/theme-chalk/icon/index.scss +44 -0
- package/theme-chalk/icon/scss/_animated.scss +205 -0
- package/theme-chalk/icon/scss/_bordered-pulled.scss +20 -0
- package/theme-chalk/icon/scss/_core.scss +33 -0
- package/theme-chalk/icon/scss/_duotone-icons.scss +12 -0
- package/theme-chalk/icon/scss/_fixed-width.scss +7 -0
- package/theme-chalk/icon/scss/_functions.scss +57 -0
- package/theme-chalk/icon/scss/_icons.scss +11 -0
- package/theme-chalk/icon/scss/_list.scss +20 -0
- package/theme-chalk/icon/scss/_mixins.scss +102 -0
- package/theme-chalk/icon/scss/_rotated-flipped.scss +31 -0
- package/theme-chalk/icon/scss/_screen-reader.scss +14 -0
- package/theme-chalk/icon/scss/_shims.scss +2606 -0
- package/theme-chalk/icon/scss/_sizing.scss +16 -0
- package/theme-chalk/icon/scss/_stacked.scss +32 -0
- package/theme-chalk/icon/scss/_variables.scss +9189 -0
- package/theme-chalk/icon/scss/brands.scss +27 -0
- package/theme-chalk/icon/scss/duotone.scss +72 -0
- package/theme-chalk/icon/scss/fontawesome.scss +13 -0
- package/theme-chalk/icon/scss/index.scss +15 -0
- package/theme-chalk/icon/scss/light.scss +21 -0
- package/theme-chalk/icon/scss/regular.scss +21 -0
- package/theme-chalk/icon/scss/solid.scss +21 -0
- package/theme-chalk/icon/scss/thin.scss +21 -0
- package/theme-chalk/icon/scss/v4-shims.scss +3 -0
- package/theme-chalk/index.scss +67 -0
- package/theme-chalk/input/_mixins.scss +16 -0
- package/theme-chalk/input/index.scss +3 -0
- package/theme-chalk/input/input-range.scss +208 -0
- package/theme-chalk/input/input.scss +577 -0
- package/theme-chalk/input-number/index.scss +172 -0
- package/theme-chalk/link/index.scss +99 -0
- package/theme-chalk/loading/index.scss +94 -0
- package/theme-chalk/message/index.scss +169 -0
- package/theme-chalk/message-box/index.scss +184 -0
- package/theme-chalk/notification/index.scss +155 -0
- package/theme-chalk/pagination/index.scss +515 -0
- package/theme-chalk/placeholder/index.scss +135 -0
- package/theme-chalk/popconfirm/index.scss +35 -0
- package/theme-chalk/popover/index.scss +54 -0
- package/theme-chalk/popper/index.scss +86 -0
- package/theme-chalk/progress/index.scss +155 -0
- package/theme-chalk/radio/index.scss +2 -0
- package/theme-chalk/radio/radio-button.scss +128 -0
- package/theme-chalk/radio/radio.scss +171 -0
- package/theme-chalk/radio-group/index.scss +31 -0
- package/theme-chalk/row/index.scss +30 -0
- package/theme-chalk/scrollbar/index.scss +103 -0
- package/theme-chalk/select/index.scss +244 -0
- package/theme-chalk/select/option-group.scss +54 -0
- package/theme-chalk/select/option.scss +63 -0
- package/theme-chalk/select/select-dropdown.scss +57 -0
- package/theme-chalk/switch/index.scss +273 -0
- package/theme-chalk/table/index.scss +714 -0
- package/theme-chalk/tabs/index.scss +620 -0
- package/theme-chalk/tag/index.scss +360 -0
- package/theme-chalk/time-line/_timeline-item.scss +90 -0
- package/theme-chalk/time-line/_timeline.scss +50 -0
- package/theme-chalk/time-line/index.scss +2 -0
- package/theme-chalk/time-picker/index.scss +109 -0
- package/theme-chalk/tooltip/index.scss +13 -0
- package/theme-chalk/transfer/index.scss +247 -0
- package/theme-chalk/transition/index.scss +756 -0
- package/theme-chalk/tree/_directory.scss +73 -0
- package/theme-chalk/tree/_tree.scss +401 -0
- package/theme-chalk/tree/index.scss +2 -0
- package/theme-chalk/tree-select/index.scss +25 -0
- package/theme-chalk/upload/index.scss +631 -0
- package/dist/Tree/utils/KeyCode.d.ts +0 -110
- package/dist/Tree/utils/KeyCode.js +0 -550
- package/dist/VirtualList/Filler.d.ts +0 -11
- package/dist/VirtualList/Filler.js +0 -78
- package/dist/VirtualList/Item.d.ts +0 -7
- package/dist/VirtualList/ScrollBar.d.ts +0 -43
- package/dist/VirtualList/ScrollBar.js +0 -216
- package/dist/VirtualList/VirtualList.d.ts +0 -33
- package/dist/VirtualList/VirtualList.js +0 -280
- package/dist/VirtualList/hooks/useChildren.d.ts +0 -3
- package/dist/VirtualList/hooks/useDiffItem.d.ts +0 -2
- package/dist/VirtualList/hooks/useDiffItem.js +0 -39
- package/dist/VirtualList/hooks/useFrameWheel.d.ts +0 -6
- package/dist/VirtualList/hooks/useFrameWheel.js +0 -72
- package/dist/VirtualList/hooks/useHeights.d.ts +0 -3
- package/dist/VirtualList/hooks/useHeights.js +0 -83
- package/dist/VirtualList/hooks/useLayoutEffect.d.ts +0 -3
- package/dist/VirtualList/hooks/useLayoutEffect.js +0 -30
- package/dist/VirtualList/hooks/useMobileTouchMove.d.ts +0 -2
- package/dist/VirtualList/hooks/useMobileTouchMove.js +0 -92
- package/dist/VirtualList/hooks/useOriginScroll.d.ts +0 -2
- package/dist/VirtualList/hooks/useOriginScroll.js +0 -56
- package/dist/VirtualList/hooks/useScrollTo.d.ts +0 -5
- package/dist/VirtualList/hooks/useScrollTo.js +0 -111
- package/dist/VirtualList/index.d.ts +0 -2
- package/dist/VirtualList/interface.d.ts +0 -8
- package/dist/VirtualList/mock.d.ts +0 -6
- package/dist/VirtualList/mock.js +0 -29
- package/dist/VirtualList/utils/CacheMap.d.ts +0 -7
- package/dist/VirtualList/utils/CacheMap.js +0 -36
- package/dist/VirtualList/utils/algorithmUtil.d.ts +0 -6
- package/dist/VirtualList/utils/algorithmUtil.js +0 -81
- package/dist/VirtualList/utils/findDOMNode.d.ts +0 -2
- package/dist/VirtualList/utils/isFirefox.d.ts +0 -2
- package/dist/VirtualList/utils/raf.d.ts +0 -5
- package/dist/VirtualList/utils/raf.js +0 -57
- package/dist/theme-chalk/bak/common/popup.scss +0 -47
- package/dist/theme-chalk/bak/common/transition.scss +0 -118
- package/dist/theme-chalk/bak/common/var.scss +0 -1476
- package/dist/theme-chalk/bak/mixins/_var.scss +0 -55
- package/dist/theme-chalk/bak/mixins/function.scss +0 -85
- package/dist/theme-chalk/bak/mixins/mixins.scss +0 -215
- package/dist/theme-chalk/bak/mixins/utils.scss +0 -39
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
// variables
|
|
2
2
|
// --------------------------
|
|
3
|
-
|
|
4
3
|
$fa-css-prefix: fa !default;
|
|
5
4
|
$fa-style: 900 !default;
|
|
6
|
-
$fa-style-family:
|
|
5
|
+
$fa-style-family: $fa-font-family;
|
|
7
6
|
|
|
8
7
|
$fa-display: inline-block !default;
|
|
9
8
|
|
|
@@ -46,7 +45,6 @@ $fa-stack-width: ($fa-fw-width * 2) !default;
|
|
|
46
45
|
$fa-stack-z-index: auto !default;
|
|
47
46
|
|
|
48
47
|
$fa-font-display: block !default;
|
|
49
|
-
$fa-font-path: '/fonts' !default;
|
|
50
48
|
|
|
51
49
|
$fa-var-0: \30;
|
|
52
50
|
$fa-var-1: \31;
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Font Awesome Pro 6.1.0 by @fontawesome - https://fontawesome.com
|
|
3
|
-
* License - https://fontawesome.com/license (Commercial License)
|
|
4
|
-
* Copyright 2022 Fonticons, Inc.
|
|
5
|
-
*/
|
|
6
|
-
// Font Awesome core compile (Web Fonts-based)
|
|
7
|
-
// -------------------------
|
|
8
|
-
|
|
9
1
|
@import 'functions';
|
|
10
2
|
@import 'variables';
|
|
11
3
|
@import 'mixins';
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Font Awesome Pro 6.1.0 by @fontawesome - https://fontawesome.com
|
|
3
|
-
* License - https://fontawesome.com/license (Commercial License)
|
|
4
|
-
* Copyright 2022 Fonticons, Inc.
|
|
5
|
-
*/
|
|
6
1
|
@import 'functions';
|
|
7
2
|
@import 'variables';
|
|
8
3
|
|
|
@@ -12,7 +7,7 @@
|
|
|
12
7
|
}
|
|
13
8
|
|
|
14
9
|
@font-face {
|
|
15
|
-
font-family:
|
|
10
|
+
font-family: $fa-style-family;
|
|
16
11
|
font-style: normal;
|
|
17
12
|
font-weight: 300;
|
|
18
13
|
font-display: $fa-font-display;
|
|
@@ -21,6 +16,6 @@
|
|
|
21
16
|
|
|
22
17
|
.fal,
|
|
23
18
|
.#{$fa-css-prefix}-light {
|
|
24
|
-
font-family:
|
|
19
|
+
font-family: $fa-style-family;
|
|
25
20
|
font-weight: 300;
|
|
26
21
|
}
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Font Awesome Pro 6.1.0 by @fontawesome - https://fontawesome.com
|
|
3
|
-
* License - https://fontawesome.com/license (Commercial License)
|
|
4
|
-
* Copyright 2022 Fonticons, Inc.
|
|
5
|
-
*/
|
|
6
1
|
@import 'functions';
|
|
7
2
|
@import 'variables';
|
|
8
3
|
|
|
@@ -12,7 +7,7 @@
|
|
|
12
7
|
}
|
|
13
8
|
|
|
14
9
|
@font-face {
|
|
15
|
-
font-family:
|
|
10
|
+
font-family: $fa-style-family;
|
|
16
11
|
font-style: normal;
|
|
17
12
|
font-weight: 400;
|
|
18
13
|
font-display: $fa-font-display;
|
|
@@ -21,6 +16,6 @@
|
|
|
21
16
|
|
|
22
17
|
.far,
|
|
23
18
|
.#{$fa-css-prefix}-regular {
|
|
24
|
-
font-family:
|
|
19
|
+
font-family: $fa-style-family;
|
|
25
20
|
font-weight: 400;
|
|
26
21
|
}
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Font Awesome Pro 6.1.0 by @fontawesome - https://fontawesome.com
|
|
3
|
-
* License - https://fontawesome.com/license (Commercial License)
|
|
4
|
-
* Copyright 2022 Fonticons, Inc.
|
|
5
|
-
*/
|
|
6
1
|
@import 'functions';
|
|
7
2
|
@import 'variables';
|
|
8
3
|
|
|
@@ -12,7 +7,7 @@
|
|
|
12
7
|
}
|
|
13
8
|
|
|
14
9
|
@font-face {
|
|
15
|
-
font-family:
|
|
10
|
+
font-family: $fa-style-family;
|
|
16
11
|
font-style: normal;
|
|
17
12
|
font-weight: 900;
|
|
18
13
|
font-display: $fa-font-display;
|
|
@@ -21,6 +16,6 @@
|
|
|
21
16
|
|
|
22
17
|
.fas,
|
|
23
18
|
.#{$fa-css-prefix}-solid {
|
|
24
|
-
font-family:
|
|
19
|
+
font-family: $fa-style-family;
|
|
25
20
|
font-weight: 900;
|
|
26
21
|
}
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Font Awesome Pro 6.1.0 by @fontawesome - https://fontawesome.com
|
|
3
|
-
* License - https://fontawesome.com/license (Commercial License)
|
|
4
|
-
* Copyright 2022 Fonticons, Inc.
|
|
5
|
-
*/
|
|
6
1
|
@import 'functions';
|
|
7
2
|
@import 'variables';
|
|
8
3
|
|
|
@@ -12,7 +7,7 @@
|
|
|
12
7
|
}
|
|
13
8
|
|
|
14
9
|
@font-face {
|
|
15
|
-
font-family:
|
|
10
|
+
font-family: $fa-style-family;
|
|
16
11
|
font-style: normal;
|
|
17
12
|
font-weight: 100;
|
|
18
13
|
font-display: $fa-font-display;
|
|
@@ -21,6 +16,6 @@
|
|
|
21
16
|
|
|
22
17
|
.fat,
|
|
23
18
|
.#{$fa-css-prefix}-thin {
|
|
24
|
-
font-family:
|
|
19
|
+
font-family: $fa-style-family;
|
|
25
20
|
font-weight: 100;
|
|
26
21
|
}
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Font Awesome Pro 6.1.0 by @fontawesome - https://fontawesome.com
|
|
3
|
-
* License - https://fontawesome.com/license (Commercial License)
|
|
4
|
-
* Copyright 2022 Fonticons, Inc.
|
|
5
|
-
*/
|
|
6
|
-
// V4 shims compile (Web Fonts-based)
|
|
7
|
-
// -------------------------
|
|
8
|
-
|
|
9
1
|
@import 'functions';
|
|
10
2
|
@import 'variables';
|
|
11
3
|
@import 'shims';
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
@import './common';
|
|
3
3
|
@import './link';
|
|
4
4
|
@import './button';
|
|
5
|
+
@import './icon/fonts';
|
|
5
6
|
@import './icon';
|
|
6
7
|
@import './row';
|
|
7
8
|
@import './col';
|
|
@@ -11,6 +12,7 @@
|
|
|
11
12
|
|
|
12
13
|
/* Form 表单组件 */
|
|
13
14
|
@import './cascader';
|
|
15
|
+
@import './carousel/';
|
|
14
16
|
@import './checkbox';
|
|
15
17
|
@import './checkbox-button';
|
|
16
18
|
@import './checkbox-group';
|
|
@@ -30,6 +32,7 @@
|
|
|
30
32
|
@import './upload';
|
|
31
33
|
|
|
32
34
|
/* Data 数据展示 */
|
|
35
|
+
@import './avatar/';
|
|
33
36
|
@import './badge';
|
|
34
37
|
@import './card';
|
|
35
38
|
@import './collapse';
|
|
@@ -160,11 +160,12 @@
|
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
.#{$namespace}-input {
|
|
163
|
+
--#{$namespace}-input-inner-height: calc(var(--#{$namespace}-input-height, 32px) - 2px);
|
|
163
164
|
position: relative;
|
|
164
165
|
display: inline-flex;
|
|
165
166
|
width: 100%;
|
|
166
167
|
font-size: 14px;
|
|
167
|
-
line-height: var(--#{$namespace}-input-height,
|
|
168
|
+
line-height: var(--#{$namespace}-input-inner-height, 30px);
|
|
168
169
|
box-sizing: border-box;
|
|
169
170
|
vertical-align: middle;
|
|
170
171
|
|
|
@@ -411,6 +412,7 @@
|
|
|
411
412
|
.#{$namespace}-button {
|
|
412
413
|
display: inline-block;
|
|
413
414
|
margin: 0 -20px;
|
|
415
|
+
line-height: 0;
|
|
414
416
|
}
|
|
415
417
|
|
|
416
418
|
button.#{$namespace}-button,
|
|
@@ -564,12 +566,12 @@
|
|
|
564
566
|
|
|
565
567
|
.#{$namespace}-input--large {
|
|
566
568
|
--#{$namespace}-input-height: var(--#{$namespace}-component-size-large);
|
|
567
|
-
--#{$namespace}-input-inner-height: calc(var(--#{$namespace}-input-height,
|
|
569
|
+
--#{$namespace}-input-inner-height: calc(var(--#{$namespace}-input-height, 40px) - 2px);
|
|
568
570
|
font-size: 14px;
|
|
569
571
|
}
|
|
570
572
|
|
|
571
573
|
.#{$namespace}-input--small {
|
|
572
574
|
--#{$namespace}-input-height: var(--#{$namespace}-component-size-small);
|
|
573
|
-
--#{$namespace}-input-inner-height: var(--#{$namespace}-
|
|
575
|
+
--#{$namespace}-input-inner-height: calc(var(--#{$namespace}-input-height, 24px) - 2px);
|
|
574
576
|
font-size: 12px;
|
|
575
577
|
}
|
|
@@ -1,88 +1,3 @@
|
|
|
1
|
-
// @use 'sass:map';
|
|
2
|
-
|
|
3
|
-
// @use '../../Common/styles/mixins/mixins' as *;
|
|
4
|
-
// @use '../../Common/styles/mixins/var' as *;
|
|
5
|
-
// @use '../../Common/styles/mixins/utils' as *;
|
|
6
|
-
// @use '../../Common/styles/common/var' as *;
|
|
7
|
-
|
|
8
|
-
// @include b(link) {
|
|
9
|
-
// @include set-component-css-var('link', $link);
|
|
10
|
-
// }
|
|
11
|
-
|
|
12
|
-
// @include b(link) {
|
|
13
|
-
// display: inline-flex;
|
|
14
|
-
// flex-direction: row;
|
|
15
|
-
// align-items: center;
|
|
16
|
-
// justify-content: center;
|
|
17
|
-
// vertical-align: middle;
|
|
18
|
-
// position: relative;
|
|
19
|
-
// text-decoration: none;
|
|
20
|
-
// outline: none;
|
|
21
|
-
// cursor: pointer;
|
|
22
|
-
// padding: 0;
|
|
23
|
-
// font-size: getCssVar('link', 'font-size');
|
|
24
|
-
// font-weight: getCssVar('link', 'font-weight');
|
|
25
|
-
|
|
26
|
-
// color: getCssVar('link', 'text-color');
|
|
27
|
-
|
|
28
|
-
// &:hover {
|
|
29
|
-
// color: getCssVar('link', 'hover-text-color');
|
|
30
|
-
// }
|
|
31
|
-
|
|
32
|
-
// @include when(underline) {
|
|
33
|
-
// &:hover:after {
|
|
34
|
-
// content: '';
|
|
35
|
-
// position: absolute;
|
|
36
|
-
// left: 0;
|
|
37
|
-
// right: 0;
|
|
38
|
-
// height: 0;
|
|
39
|
-
// bottom: 0;
|
|
40
|
-
// border-bottom: 1px solid getCssVar('link', 'hover-text-color');
|
|
41
|
-
// }
|
|
42
|
-
// }
|
|
43
|
-
|
|
44
|
-
// @include when(disabled) {
|
|
45
|
-
// color: getCssVar('link', 'disabled-text-color');
|
|
46
|
-
// cursor: not-allowed;
|
|
47
|
-
// }
|
|
48
|
-
|
|
49
|
-
// & [class*='#{$namespace}-icon-'] {
|
|
50
|
-
// & + span {
|
|
51
|
-
// margin-left: 5px;
|
|
52
|
-
// }
|
|
53
|
-
// }
|
|
54
|
-
|
|
55
|
-
// &.#{$namespace}-link--default {
|
|
56
|
-
// &:after {
|
|
57
|
-
// border-color: getCssVar('link', 'hover-text-color');
|
|
58
|
-
// }
|
|
59
|
-
// }
|
|
60
|
-
|
|
61
|
-
// @include e(inner) {
|
|
62
|
-
// display: inline-flex;
|
|
63
|
-
// justify-content: center;
|
|
64
|
-
// align-items: center;
|
|
65
|
-
// }
|
|
66
|
-
|
|
67
|
-
// @each $type in $types {
|
|
68
|
-
// &.#{$namespace}-link--#{$type} {
|
|
69
|
-
// @include css-var-from-global(('link', 'text-color'), ('color', $type));
|
|
70
|
-
// @include css-var-from-global(('link', 'hover-text-color'), ('color', $type, 'light-3'));
|
|
71
|
-
// @include css-var-from-global(('link', 'disabled-text-color'), ('color', $type, 'light-5'));
|
|
72
|
-
|
|
73
|
-
// &:after {
|
|
74
|
-
// border-color: getCssVar('link', 'text-color');
|
|
75
|
-
// }
|
|
76
|
-
|
|
77
|
-
// @include when(underline) {
|
|
78
|
-
// &:hover:after {
|
|
79
|
-
// border-color: getCssVar('link', 'text-color');
|
|
80
|
-
// }
|
|
81
|
-
// }
|
|
82
|
-
// }
|
|
83
|
-
// }
|
|
84
|
-
// }
|
|
85
|
-
|
|
86
1
|
@use '../common/var';
|
|
87
2
|
.#{$namespace}-link {
|
|
88
3
|
--#{$namespace}-link-font-size: 14px;
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
@use '../common/var';
|
|
2
2
|
|
|
3
|
-
.#{$namespace}-loading-parent {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
3
|
+
.#{$namespace}-loading-parent--relative {
|
|
4
|
+
position: relative !important;
|
|
5
|
+
}
|
|
7
6
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
7
|
+
.#{$namespace}-loading-parent--hidden {
|
|
8
|
+
overflow: hidden !important;
|
|
11
9
|
}
|
|
12
10
|
|
|
13
11
|
.#{$namespace}-loading-mask {
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
font-size: 16px;
|
|
104
104
|
|
|
105
105
|
&::before {
|
|
106
|
-
font-family:
|
|
106
|
+
font-family: $fa-font-family;
|
|
107
107
|
content: '\f00d';
|
|
108
108
|
font-weight: 400;
|
|
109
109
|
}
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
color: var(--#{$namespace}-message-text-color);
|
|
121
121
|
|
|
122
122
|
&::before {
|
|
123
|
-
font-family:
|
|
123
|
+
font-family: $fa-font-family;
|
|
124
124
|
content: '\f058';
|
|
125
125
|
font-style: normal;
|
|
126
126
|
font-weight: bold;
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
color: var(--#{$namespace}-message-text-color);
|
|
132
132
|
|
|
133
133
|
&::before {
|
|
134
|
-
font-family:
|
|
134
|
+
font-family: $fa-font-family;
|
|
135
135
|
content: '\f057';
|
|
136
136
|
font-style: normal;
|
|
137
137
|
font-weight: bold;
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
color: var(--#{$namespace}-message-text-color);
|
|
143
143
|
|
|
144
144
|
&::before {
|
|
145
|
-
font-family:
|
|
145
|
+
font-family: $fa-font-family;
|
|
146
146
|
content: '\f05a';
|
|
147
147
|
font-style: normal;
|
|
148
148
|
font-weight: bold;
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
color: var(--#{$namespace}-message-text-color);
|
|
154
154
|
|
|
155
155
|
&::before {
|
|
156
|
-
font-family:
|
|
156
|
+
font-family: $fa-font-family;
|
|
157
157
|
content: '\f06a';
|
|
158
158
|
font-style: normal;
|
|
159
159
|
font-weight: bold;
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
font-size: 16px;
|
|
74
74
|
|
|
75
75
|
&::before {
|
|
76
|
-
font-family:
|
|
76
|
+
font-family: $fa-font-family;
|
|
77
77
|
content: '\f00d';
|
|
78
78
|
font-weight: 400;
|
|
79
79
|
}
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
margin-top: -4px;
|
|
90
90
|
|
|
91
91
|
&::before {
|
|
92
|
-
font-family:
|
|
92
|
+
font-family: $fa-font-family;
|
|
93
93
|
content: '\f058';
|
|
94
94
|
font-style: normal;
|
|
95
95
|
font-weight: bold;
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
margin-top: -4px;
|
|
103
103
|
|
|
104
104
|
&::before {
|
|
105
|
-
font-family:
|
|
105
|
+
font-family: $fa-font-family;
|
|
106
106
|
content: '\f057';
|
|
107
107
|
font-style: normal;
|
|
108
108
|
font-weight: bold;
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
margin-top: -4px;
|
|
116
116
|
|
|
117
117
|
&::before {
|
|
118
|
-
font-family:
|
|
118
|
+
font-family: $fa-font-family;
|
|
119
119
|
content: '\f05a';
|
|
120
120
|
font-style: normal;
|
|
121
121
|
font-weight: bold;
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
margin-top: -4px;
|
|
129
129
|
|
|
130
130
|
&::before {
|
|
131
|
-
font-family:
|
|
131
|
+
font-family: $fa-font-family;
|
|
132
132
|
content: '\f06a';
|
|
133
133
|
font-style: normal;
|
|
134
134
|
font-weight: bold;
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
bottom: 0;
|
|
17
17
|
left: 0;
|
|
18
18
|
height: 2px;
|
|
19
|
-
background: var(--#{$namespace}-
|
|
19
|
+
background: var(--#{$namespace}-color-primary);
|
|
20
20
|
z-index: 1;
|
|
21
21
|
transition: width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
|
22
22
|
list-style: none;
|
package/dist/types/common.d.ts
CHANGED
|
@@ -12,29 +12,49 @@ export declare namespace TypeAttributes {
|
|
|
12
12
|
export type ComponentChildren = React.ReactNode | React.ReactNode[];
|
|
13
13
|
export interface FormControlBaseProps<ValueType = React.AllHTMLAttributes<HTMLInputElement>['value']> {
|
|
14
14
|
name?: string;
|
|
15
|
+
/** 初始值 */
|
|
15
16
|
defaultValue?: ValueType;
|
|
17
|
+
/** 值(可控) */
|
|
16
18
|
value?: ValueType;
|
|
19
|
+
/** 选中值发生变化时触发 */
|
|
17
20
|
onChange?: (value: ValueType | boolean, event?: React.ChangeEvent<any>) => void;
|
|
21
|
+
/** 禁用 */
|
|
18
22
|
disabled?: boolean;
|
|
23
|
+
/** 尺寸 */
|
|
19
24
|
size?: TypeAttributes.Size;
|
|
25
|
+
/** Render the control as plain text */
|
|
26
|
+
/** 只读 */
|
|
20
27
|
readOnly?: boolean;
|
|
28
|
+
/** 样式前缀 */
|
|
21
29
|
classPrefix?: string;
|
|
22
30
|
}
|
|
31
|
+
/** 基础参数 */
|
|
23
32
|
export interface BaseProps<S = ComponentChildren> {
|
|
33
|
+
/** 组件 CSS 类的前缀 */
|
|
24
34
|
classPrefix?: string;
|
|
35
|
+
/** 下拉面板自定义内联样式 */
|
|
25
36
|
popperStyle?: React.CSSProperties;
|
|
37
|
+
/** 子组件 */
|
|
26
38
|
children?: S;
|
|
27
39
|
}
|
|
28
40
|
export type NativeProps<S extends string = never> = {
|
|
41
|
+
/** 自定义样式 */
|
|
29
42
|
className?: string;
|
|
43
|
+
/** 自定义内联样式 */
|
|
30
44
|
style?: React.CSSProperties & Partial<Record<S, string>>;
|
|
31
45
|
};
|
|
32
46
|
export interface AnimationEventProps {
|
|
47
|
+
/** 显示前动画过渡的回调函数 */
|
|
33
48
|
beforeEnter?: (node?: null | HTMLElement | Text) => void;
|
|
49
|
+
/** 显示中动画过渡的回调函数 */
|
|
34
50
|
onEnter?: (node?: null | HTMLElement | Text) => void;
|
|
51
|
+
/** 显示后动画过渡的回调函数 */
|
|
35
52
|
afterEnter?: (node?: null | HTMLElement | Text) => void;
|
|
53
|
+
/** 退出前动画过渡的回调函数 */
|
|
36
54
|
beforeLeave?: (node?: null | HTMLElement | Text) => void;
|
|
55
|
+
/** 退出中动画过渡的回调函数 */
|
|
37
56
|
onLeave?: (node?: null | HTMLElement | Text) => void;
|
|
57
|
+
/** 退出后动画过渡的回调函数 */
|
|
38
58
|
afterLeave?: (node?: null | HTMLElement | Text) => void;
|
|
39
59
|
}
|
|
40
60
|
export interface TooltipBaseProps<T extends EventTarget> {
|
|
@@ -44,8 +64,12 @@ export interface TooltipBaseProps<T extends EventTarget> {
|
|
|
44
64
|
onContextMenu?: (event?: React.MouseEvent<T>) => void;
|
|
45
65
|
}
|
|
46
66
|
export interface StandardProps extends React.HTMLAttributes<HTMLElement> {
|
|
67
|
+
/** The prefix of the component CSS class */
|
|
47
68
|
classPrefix?: string;
|
|
69
|
+
/** 自定义样式 */
|
|
48
70
|
className?: string;
|
|
71
|
+
/** 自定义内联样式 */
|
|
49
72
|
style?: React.CSSProperties;
|
|
73
|
+
/** 子组件 */
|
|
50
74
|
children?: ComponentChildren;
|
|
51
75
|
}
|
package/dist/types/type.d.ts
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
export declare const tuple: <T extends string[]>(...args: T) => T;
|
|
2
2
|
export declare const tupleNum: <T extends number[]>(...args: T) => T;
|
|
3
|
+
/**
|
|
4
|
+
* https://stackoverflow.com/a/59187769 Extract the type of an element of an array/tuple without
|
|
5
|
+
* performing indexing
|
|
6
|
+
*/
|
|
3
7
|
export type ElementOf<T> = T extends (infer E)[] ? E : T extends readonly (infer F)[] ? F : never;
|
|
8
|
+
/** https://github.com/Microsoft/TypeScript/issues/29729 */
|
|
4
9
|
export type LiteralUnion<T extends U, U> = T | (U & {});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qsxy/element-plus-react",
|
|
3
|
-
"version": "1.0.0-next.
|
|
3
|
+
"version": "1.0.0-next.10",
|
|
4
4
|
"description": "element-plus-react",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -13,30 +13,9 @@
|
|
|
13
13
|
},
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"files": [
|
|
16
|
-
"dist"
|
|
16
|
+
"dist",
|
|
17
|
+
"theme-chalk"
|
|
17
18
|
],
|
|
18
|
-
"commitlint": {
|
|
19
|
-
"extends": [
|
|
20
|
-
"@commitlint/config-conventional"
|
|
21
|
-
]
|
|
22
|
-
},
|
|
23
|
-
"lint-staged": {
|
|
24
|
-
"*.{md,json}": [
|
|
25
|
-
"prettier --write --no-error-on-unmatched-pattern"
|
|
26
|
-
],
|
|
27
|
-
"*.{css,less}": [
|
|
28
|
-
"stylelint --fix",
|
|
29
|
-
"prettier --write"
|
|
30
|
-
],
|
|
31
|
-
"*.{js,jsx}": [
|
|
32
|
-
"eslint --fix",
|
|
33
|
-
"prettier --write"
|
|
34
|
-
],
|
|
35
|
-
"*.{ts,tsx}": [
|
|
36
|
-
"eslint --fix",
|
|
37
|
-
"prettier --parser=typescript --write"
|
|
38
|
-
]
|
|
39
|
-
},
|
|
40
19
|
"dependencies": {
|
|
41
20
|
"@popperjs/core": "^2.11.8",
|
|
42
21
|
"ahooks": "^3.7.10",
|
|
@@ -48,6 +27,7 @@
|
|
|
48
27
|
"lodash": "^4.17.21",
|
|
49
28
|
"rc-resize-observer": "^1.4.0",
|
|
50
29
|
"rc-util": "^5.38.1",
|
|
30
|
+
"rc-virtual-list": "3.18.5",
|
|
51
31
|
"react-is": "^19.0.0",
|
|
52
32
|
"react-popper": "^2.3.0",
|
|
53
33
|
"react-router-dom": "^6.22.1",
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
@use '../common/var';
|
|
2
|
+
|
|
3
|
+
.#{$namespace}-avatar {
|
|
4
|
+
--#{$namespace}-avatar-text-color: var(--#{$namespace}-color-white);
|
|
5
|
+
--#{$namespace}-avatar-bg-color: var(--#{$namespace}-text-color-disabled);
|
|
6
|
+
--#{$namespace}-avatar-text-size: 14px;
|
|
7
|
+
--#{$namespace}-avatar-icon-size: 18px;
|
|
8
|
+
--#{$namespace}-avatar-border-radius: var(--#{$namespace}-border-radius-base);
|
|
9
|
+
--#{$namespace}-avatar-size-large: 56px;
|
|
10
|
+
--#{$namespace}-avatar-size-small: 24px;
|
|
11
|
+
--#{$namespace}-avatar-size: 40px;
|
|
12
|
+
display: inline-flex;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
align-items: center;
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
text-align: center;
|
|
17
|
+
overflow: hidden;
|
|
18
|
+
outline: none;
|
|
19
|
+
color: var(--#{$namespace}-avatar-text-color);
|
|
20
|
+
background: var(--#{$namespace}-avatar-bg-color);
|
|
21
|
+
width: var(--#{$namespace}-avatar-size);
|
|
22
|
+
height: var(--#{$namespace}-avatar-size);
|
|
23
|
+
font-size: var(--#{$namespace}-avatar-text-size);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.#{$namespace}-avatar > img {
|
|
27
|
+
display: block;
|
|
28
|
+
width: 100%;
|
|
29
|
+
height: 100%;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.#{$namespace}-avatar--circle {
|
|
33
|
+
border-radius: 50%;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.#{$namespace}-avatar--square {
|
|
37
|
+
border-radius: var(--#{$namespace}-avatar-border-radius);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.#{$namespace}-avatar--icon {
|
|
41
|
+
font-size: var(--#{$namespace}-avatar-icon-size);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.#{$namespace}-avatar--small {
|
|
45
|
+
--#{$namespace}-avatar-size: 24px;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.#{$namespace}-avatar--large {
|
|
49
|
+
--#{$namespace}-avatar-size: 56px;
|
|
50
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
@use '../common/var';
|
|
2
|
+
|
|
3
|
+
@use 'sass:math';
|
|
4
|
+
@use 'sass:map';
|
|
5
|
+
|
|
6
|
+
.#{$namespace}-badge {
|
|
7
|
+
--#{$namespace}-badge-bg-color: var(--#{$namespace}-color-error);
|
|
8
|
+
--#{$namespace}-badge-radius: 10px;
|
|
9
|
+
--#{$namespace}-badge-font-size: 12px;
|
|
10
|
+
--#{$namespace}-badge-padding: 6px;
|
|
11
|
+
--#{$namespace}-badge-size: 18px;
|
|
12
|
+
|
|
13
|
+
position: relative;
|
|
14
|
+
vertical-align: middle;
|
|
15
|
+
display: inline-block;
|
|
16
|
+
width: fit-content;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.#{$namespace}-badge__content {
|
|
20
|
+
background-color: var(--#{$namespace}-badge-bg-color);
|
|
21
|
+
border-radius: var(--#{$namespace}-badge-radius);
|
|
22
|
+
color: var(--#{$namespace}-color-white);
|
|
23
|
+
|
|
24
|
+
display: inline-flex;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
align-items: center;
|
|
27
|
+
|
|
28
|
+
font-size: var(--#{$namespace}-badge-font-size);
|
|
29
|
+
height: var(--#{$namespace}-badge-size);
|
|
30
|
+
padding: 0 var(--#{$namespace}-badge-padding);
|
|
31
|
+
white-space: nowrap;
|
|
32
|
+
border: 1px solid var(--#{$namespace}-bg-color);
|
|
33
|
+
|
|
34
|
+
&.is-fixed {
|
|
35
|
+
position: absolute;
|
|
36
|
+
top: 0;
|
|
37
|
+
right: calc(1px + #{var(--#{$namespace}-badge-size)} / 2);
|
|
38
|
+
transform: translateY(-50%) translateX(100%);
|
|
39
|
+
z-index: 1;
|
|
40
|
+
|
|
41
|
+
&.is-dot {
|
|
42
|
+
right: 5px;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&.is-dot {
|
|
47
|
+
height: 8px;
|
|
48
|
+
width: 8px;
|
|
49
|
+
padding: 0;
|
|
50
|
+
right: 0;
|
|
51
|
+
border-radius: 50%;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.#{$namespace}-badge__content--primary {
|
|
56
|
+
background-color: var(--#{$namespace}-color-primary);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@each $type in (success, warning, info, error) {
|
|
60
|
+
.#{$namespace}-badge__content--#{$type} {
|
|
61
|
+
background-color: var(--#{$namespace}-color-#{$type});
|
|
62
|
+
}
|
|
63
|
+
}
|