@aloudata/aloudata-design 2.19.5 → 3.0.0-beta.2
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/dist/AMenu/index.d.ts +34 -3
- package/dist/AMenu/index.js +53 -2
- package/dist/AMenu/index.js.map +1 -0
- package/dist/AProgress/index.d.ts +17 -2
- package/dist/AProgress/index.js +82 -2
- package/dist/AProgress/index.js.map +1 -0
- package/dist/Alert/index.d.ts +16 -3
- package/dist/Alert/index.js +91 -2
- package/dist/Alert/index.js.map +1 -0
- package/dist/App/index.d.ts +6 -2
- package/dist/App/index.js +22 -31
- package/dist/App/index.js.map +1 -0
- package/dist/Avatar/component/Avatar/helper.d.ts +1 -1
- package/dist/Avatar/component/Avatar/helper.js +49 -82
- package/dist/Avatar/component/Avatar/helper.js.map +1 -0
- package/dist/Avatar/component/Avatar/index.d.ts +7 -69
- package/dist/Avatar/component/Avatar/index.js +71 -66
- package/dist/Avatar/component/Avatar/index.js.map +1 -0
- package/dist/Avatar/component/Avatar/type.d.ts +10 -1
- package/dist/Avatar/component/Avatar/type.js +19 -15
- package/dist/Avatar/component/Avatar/type.js.map +1 -0
- package/dist/Avatar/index.d.ts +14 -1
- package/dist/Avatar/index.js +32 -4
- package/dist/Avatar/index.js.map +1 -0
- package/dist/Badge/index.d.ts +2 -2
- package/dist/Badge/index.js +46 -24
- package/dist/Badge/index.js.map +1 -0
- package/dist/Breadcrumb/index.d.ts +20 -4
- package/dist/Breadcrumb/index.js +62 -31
- package/dist/Breadcrumb/index.js.map +1 -0
- package/dist/Button/index.d.ts +17 -39
- package/dist/Button/index.js +175 -94
- package/dist/Button/index.js.map +1 -0
- package/dist/Card/index.d.ts +35 -2
- package/dist/Card/index.js +72 -2
- package/dist/Card/index.js.map +1 -0
- package/dist/Carousel/index.d.ts +34 -3
- package/dist/Carousel/index.js +103 -2
- package/dist/Carousel/index.js.map +1 -0
- package/dist/Checkbox/component/CheckboxGroup/index.d.ts +1 -4
- package/dist/Checkbox/component/CheckboxGroup/index.js +2 -22
- package/dist/Checkbox/index.d.ts +6 -6
- package/dist/Checkbox/index.js +110 -37
- package/dist/Checkbox/index.js.map +1 -0
- package/dist/Checkbox/type.d.ts +24 -83
- package/dist/Checkbox/type.js +2 -5
- package/dist/Col/index.d.ts +21 -3
- package/dist/Col/index.js +111 -2
- package/dist/Col/index.js.map +1 -0
- package/dist/Collapse/index.d.ts +42 -5
- package/dist/Collapse/index.js +130 -19
- package/dist/Collapse/index.js.map +1 -0
- package/dist/ColorPicker/ComplexColorPicker/ColorAlphaInput.d.ts +2 -2
- package/dist/ColorPicker/ComplexColorPicker/ColorAlphaInput.js +29 -42
- package/dist/ColorPicker/ComplexColorPicker/ColorAlphaInput.js.map +1 -0
- package/dist/ColorPicker/ComplexColorPicker/ColorHexInput.d.ts +2 -2
- package/dist/ColorPicker/ComplexColorPicker/ColorHexInput.js +29 -44
- package/dist/ColorPicker/ComplexColorPicker/ColorHexInput.js.map +1 -0
- package/dist/ColorPicker/ComplexColorPicker/ColorHsbInput.d.ts +2 -2
- package/dist/ColorPicker/ComplexColorPicker/ColorHsbInput.js +54 -72
- package/dist/ColorPicker/ComplexColorPicker/ColorHsbInput.js.map +1 -0
- package/dist/ColorPicker/ComplexColorPicker/ColorInput.d.ts +3 -3
- package/dist/ColorPicker/ComplexColorPicker/ColorInput.js +74 -74
- package/dist/ColorPicker/ComplexColorPicker/ColorInput.js.map +1 -0
- package/dist/ColorPicker/ComplexColorPicker/ColorRgbInput.d.ts +2 -2
- package/dist/ColorPicker/ComplexColorPicker/ColorRgbInput.js +51 -63
- package/dist/ColorPicker/ComplexColorPicker/ColorRgbInput.js.map +1 -0
- package/dist/ColorPicker/ComplexColorPicker/ColorSteppers.d.ts +2 -3
- package/dist/ColorPicker/ComplexColorPicker/ColorSteppers.js +27 -44
- package/dist/ColorPicker/ComplexColorPicker/ColorSteppers.js.map +1 -0
- package/dist/ColorPicker/ComplexColorPicker/index.d.ts +1 -2
- package/dist/ColorPicker/ComplexColorPicker/index.js +72 -89
- package/dist/ColorPicker/ComplexColorPicker/index.js.map +1 -0
- package/dist/ColorPicker/color.d.ts +2 -2
- package/dist/ColorPicker/color.js +72 -125
- package/dist/ColorPicker/color.js.map +1 -0
- package/dist/ColorPicker/constant.js +47 -3
- package/dist/ColorPicker/constant.js.map +1 -0
- package/dist/ColorPicker/hooks/useColor.d.ts +2 -2
- package/dist/ColorPicker/hooks/useColor.js +21 -31
- package/dist/ColorPicker/hooks/useColor.js.map +1 -0
- package/dist/ColorPicker/index.d.ts +3 -3
- package/dist/ColorPicker/index.js +159 -204
- package/dist/ColorPicker/index.js.map +1 -0
- package/dist/ColorPicker/interface.d.ts +8 -5
- package/dist/ColorPicker/interface.js +9 -6
- package/dist/ColorPicker/interface.js.map +1 -0
- package/dist/ColorPicker/util.d.ts +3 -3
- package/dist/ColorPicker/util.js +20 -61
- package/dist/ColorPicker/util.js.map +1 -0
- package/dist/ConfigProvider/DisabledContext.d.ts +3 -0
- package/dist/ConfigProvider/DisabledContext.js +7 -0
- package/dist/ConfigProvider/DisabledContext.js.map +1 -0
- package/dist/ConfigProvider/getUserList.d.ts +1 -1
- package/dist/ConfigProvider/getUserList.js +12 -24
- package/dist/ConfigProvider/getUserList.js.map +1 -0
- package/dist/ConfigProvider/hooks/useGetUserList.d.ts +4 -4
- package/dist/ConfigProvider/hooks/useGetUserList.js +14 -14
- package/dist/ConfigProvider/hooks/useGetUserList.js.map +1 -0
- package/dist/ConfigProvider/index.d.ts +33 -13
- package/dist/ConfigProvider/index.js +34 -44
- package/dist/ConfigProvider/index.js.map +1 -0
- package/dist/ConfigProvider/sizeContext.js +12 -12
- package/dist/ConfigProvider/sizeContext.js.map +1 -0
- package/dist/DataPreviewTable/components/Body/Cell.d.ts +3 -3
- package/dist/DataPreviewTable/components/Body/Cell.js +35 -37
- package/dist/DataPreviewTable/components/Body/Cell.js.map +1 -0
- package/dist/DataPreviewTable/components/Body/Error.d.ts +2 -2
- package/dist/DataPreviewTable/components/Body/Error.js +21 -19
- package/dist/DataPreviewTable/components/Body/Error.js.map +1 -0
- package/dist/DataPreviewTable/components/Body/index.d.ts +2 -2
- package/dist/DataPreviewTable/components/Body/index.js +37 -51
- package/dist/DataPreviewTable/components/Body/index.js.map +1 -0
- package/dist/DataPreviewTable/components/DragBar/Mask.d.ts +1 -2
- package/dist/DataPreviewTable/components/DragBar/Mask.js +31 -29
- package/dist/DataPreviewTable/components/DragBar/Mask.js.map +1 -0
- package/dist/DataPreviewTable/components/DragBar/index.d.ts +2 -2
- package/dist/DataPreviewTable/components/DragBar/index.js +58 -76
- package/dist/DataPreviewTable/components/DragBar/index.js.map +1 -0
- package/dist/DataPreviewTable/components/Header/index.d.ts +1 -2
- package/dist/DataPreviewTable/components/Header/index.js +43 -50
- package/dist/DataPreviewTable/components/Header/index.js.map +1 -0
- package/dist/DataPreviewTable/constant.js +2 -6
- package/dist/DataPreviewTable/constant.js.map +1 -0
- package/dist/DataPreviewTable/hooks/useDirection.js +164 -215
- package/dist/DataPreviewTable/hooks/useDirection.js.map +1 -0
- package/dist/DataPreviewTable/index.d.ts +2 -2
- package/dist/DataPreviewTable/index.js +105 -131
- package/dist/DataPreviewTable/index.js.map +1 -0
- package/dist/DataPreviewTable/interface.d.ts +1 -1
- package/dist/DataPreviewTable/interface.js +14 -9
- package/dist/DataPreviewTable/interface.js.map +1 -0
- package/dist/DataPreviewTable/utils/findRange.js +41 -63
- package/dist/DataPreviewTable/utils/findRange.js.map +1 -0
- package/dist/DataPreviewTable/utils/getColumnOffsetsFromWidths.js +13 -8
- package/dist/DataPreviewTable/utils/getColumnOffsetsFromWidths.js.map +1 -0
- package/dist/DataPreviewTable/utils/getColumnRange.js +11 -21
- package/dist/DataPreviewTable/utils/getColumnRange.js.map +1 -0
- package/dist/DataPreviewTable/utils/getRowRange.js +15 -22
- package/dist/DataPreviewTable/utils/getRowRange.js.map +1 -0
- package/dist/DataPreviewTable/utils/getTableLayout.js +19 -17
- package/dist/DataPreviewTable/utils/getTableLayout.js.map +1 -0
- package/dist/DatePicker/index.d.ts +39 -67
- package/dist/DatePicker/index.js +77 -206
- package/dist/DatePicker/index.js.map +1 -0
- package/dist/Divider/index.d.ts +1 -2
- package/dist/Divider/index.js +34 -19
- package/dist/Divider/index.js.map +1 -0
- package/dist/DoubleCircleIcon/index.d.ts +6 -7
- package/dist/DoubleCircleIcon/index.js +2 -34
- package/dist/Drawer/index.d.ts +27 -3
- package/dist/Drawer/index.js +93 -2
- package/dist/Drawer/index.js.map +1 -0
- package/dist/Dropdown/index.d.ts +4 -5
- package/dist/Dropdown/index.js +145 -189
- package/dist/Dropdown/index.js.map +1 -0
- package/dist/Empty/image/Data.d.ts +1 -2
- package/dist/Empty/image/Data.js +267 -219
- package/dist/Empty/image/Data.js.map +1 -0
- package/dist/Empty/image/Search.d.ts +1 -2
- package/dist/Empty/image/Search.js +15 -10
- package/dist/Empty/image/Search.js.map +1 -0
- package/dist/Empty/image/SearchSmall.d.ts +1 -2
- package/dist/Empty/image/SearchSmall.js +34 -27
- package/dist/Empty/image/SearchSmall.js.map +1 -0
- package/dist/Empty/image/User.d.ts +1 -2
- package/dist/Empty/image/User.js +249 -196
- package/dist/Empty/image/User.js.map +1 -0
- package/dist/Empty/image/WorkBook.d.ts +1 -2
- package/dist/Empty/image/WorkBook.js +246 -202
- package/dist/Empty/image/WorkBook.js.map +1 -0
- package/dist/Empty/index.js +62 -70
- package/dist/Empty/index.js.map +1 -0
- package/dist/Form/FormItemContext.d.ts +27 -0
- package/dist/Form/FormItemContext.js +8 -0
- package/dist/Form/FormItemContext.js.map +1 -0
- package/dist/Form/hooks/useFormItemStatus.d.ts +6 -0
- package/dist/Form/hooks/useFormItemStatus.js +2 -0
- package/dist/Form/index.d.ts +95 -19
- package/dist/Form/index.js +257 -60
- package/dist/Form/index.js.map +1 -0
- package/dist/HighlightText/index.d.ts +2 -2
- package/dist/HighlightText/index.js +27 -28
- package/dist/HighlightText/index.js.map +1 -0
- package/dist/Icon/components/AlertTriangleDuotone.d.ts +1 -1
- package/dist/Icon/components/AlertTriangleDuotone.js +35 -35
- package/dist/Icon/components/AlertTriangleDuotone.js.map +1 -0
- package/dist/Icon/components/AlertTriangleLine.d.ts +1 -1
- package/dist/Icon/components/AlertTriangleLine.js +35 -35
- package/dist/Icon/components/AlertTriangleLine.js.map +1 -0
- package/dist/Icon/components/ArrowDownFill.d.ts +1 -1
- package/dist/Icon/components/ArrowDownFill.js +35 -35
- package/dist/Icon/components/ArrowDownFill.js.map +1 -0
- package/dist/Icon/components/ArrowDownLightLine.d.ts +1 -1
- package/dist/Icon/components/ArrowDownLightLine.js +35 -35
- package/dist/Icon/components/ArrowDownLightLine.js.map +1 -0
- package/dist/Icon/components/ArrowDownRightFill.js +35 -35
- package/dist/Icon/components/ArrowDownRightFill.js.map +1 -0
- package/dist/Icon/components/ArrowRightLightLine.d.ts +1 -1
- package/dist/Icon/components/ArrowRightLightLine.js +35 -35
- package/dist/Icon/components/ArrowRightLightLine.js.map +1 -0
- package/dist/Icon/components/AttentionCircleFill.d.ts +1 -1
- package/dist/Icon/components/AttentionCircleFill.js +35 -35
- package/dist/Icon/components/AttentionCircleFill.js.map +1 -0
- package/dist/Icon/components/AttentionTriangleFill.d.ts +1 -1
- package/dist/Icon/components/AttentionTriangleFill.js +35 -35
- package/dist/Icon/components/AttentionTriangleFill.js.map +1 -0
- package/dist/Icon/components/AttentionTriangleLightLine.d.ts +1 -1
- package/dist/Icon/components/AttentionTriangleLightLine.js +35 -35
- package/dist/Icon/components/AttentionTriangleLightLine.js.map +1 -0
- package/dist/Icon/components/CancelCircleDuotone.d.ts +1 -1
- package/dist/Icon/components/CancelCircleDuotone.js +39 -38
- package/dist/Icon/components/CancelCircleDuotone.js.map +1 -0
- package/dist/Icon/components/CancelledCircleFill.js +35 -35
- package/dist/Icon/components/CancelledCircleFill.js.map +1 -0
- package/dist/Icon/components/CheckCircleDuotone.d.ts +1 -1
- package/dist/Icon/components/CheckCircleDuotone.js +39 -38
- package/dist/Icon/components/CheckCircleDuotone.js.map +1 -0
- package/dist/Icon/components/CheckCircleFill.d.ts +1 -1
- package/dist/Icon/components/CheckCircleFill.js +35 -35
- package/dist/Icon/components/CheckCircleFill.js.map +1 -0
- package/dist/Icon/components/CheckCircleLightLine.d.ts +1 -1
- package/dist/Icon/components/CheckCircleLightLine.js +37 -38
- package/dist/Icon/components/CheckCircleLightLine.js.map +1 -0
- package/dist/Icon/components/CheckLightLine.d.ts +1 -1
- package/dist/Icon/components/CheckLightLine.js +35 -35
- package/dist/Icon/components/CheckLightLine.js.map +1 -0
- package/dist/Icon/components/ChevronDownLine.d.ts +1 -1
- package/dist/Icon/components/ChevronDownLine.js +35 -35
- package/dist/Icon/components/ChevronDownLine.js.map +1 -0
- package/dist/Icon/components/ChevronLeftLine.d.ts +1 -1
- package/dist/Icon/components/ChevronLeftLine.js +35 -35
- package/dist/Icon/components/ChevronLeftLine.js.map +1 -0
- package/dist/Icon/components/ChevronRightLine.d.ts +1 -1
- package/dist/Icon/components/ChevronRightLine.js +35 -35
- package/dist/Icon/components/ChevronRightLine.js.map +1 -0
- package/dist/Icon/components/CircleLightLine.d.ts +1 -1
- package/dist/Icon/components/CircleLightLine.js +37 -38
- package/dist/Icon/components/CircleLightLine.js.map +1 -0
- package/dist/Icon/components/CloseCircleFill.d.ts +1 -1
- package/dist/Icon/components/CloseCircleFill.js +35 -35
- package/dist/Icon/components/CloseCircleFill.js.map +1 -0
- package/dist/Icon/components/CloseCircleLightLine.d.ts +1 -1
- package/dist/Icon/components/CloseCircleLightLine.js +35 -35
- package/dist/Icon/components/CloseCircleLightLine.js.map +1 -0
- package/dist/Icon/components/CloseCircleRightFill.js +35 -35
- package/dist/Icon/components/CloseCircleRightFill.js.map +1 -0
- package/dist/Icon/components/CloseLLine.d.ts +1 -1
- package/dist/Icon/components/CloseLLine.js +35 -35
- package/dist/Icon/components/CloseLLine.js.map +1 -0
- package/dist/Icon/components/CloseLightLine.d.ts +1 -1
- package/dist/Icon/components/CloseLightLine.js +35 -35
- package/dist/Icon/components/CloseLightLine.js.map +1 -0
- package/dist/Icon/components/CloseMLine.d.ts +1 -1
- package/dist/Icon/components/CloseMLine.js +35 -35
- package/dist/Icon/components/CloseMLine.js.map +1 -0
- package/dist/Icon/components/DangerFill.d.ts +1 -1
- package/dist/Icon/components/DangerFill.js +35 -35
- package/dist/Icon/components/DangerFill.js.map +1 -0
- package/dist/Icon/components/DragLightLine.d.ts +1 -1
- package/dist/Icon/components/DragLightLine.js +35 -35
- package/dist/Icon/components/DragLightLine.js.map +1 -0
- package/dist/Icon/components/DragLine.d.ts +1 -1
- package/dist/Icon/components/DragLine.js +35 -35
- package/dist/Icon/components/DragLine.js.map +1 -0
- package/dist/Icon/components/Ellipsis.js +35 -35
- package/dist/Icon/components/Ellipsis.js.map +1 -0
- package/dist/Icon/components/EyeOffLine.d.ts +1 -1
- package/dist/Icon/components/EyeOffLine.js +35 -35
- package/dist/Icon/components/EyeOffLine.js.map +1 -0
- package/dist/Icon/components/EyeOnLine.d.ts +1 -1
- package/dist/Icon/components/EyeOnLine.js +45 -42
- package/dist/Icon/components/EyeOnLine.js.map +1 -0
- package/dist/Icon/components/FoldDownFill.d.ts +1 -1
- package/dist/Icon/components/FoldDownFill.js +36 -38
- package/dist/Icon/components/FoldDownFill.js.map +1 -0
- package/dist/Icon/components/FoldUpFill.d.ts +1 -1
- package/dist/Icon/components/FoldUpFill.js +36 -38
- package/dist/Icon/components/FoldUpFill.js.map +1 -0
- package/dist/Icon/components/InProgressFill.js +37 -38
- package/dist/Icon/components/InProgressFill.js.map +1 -0
- package/dist/Icon/components/InfoCircleDuotone.d.ts +1 -1
- package/dist/Icon/components/InfoCircleDuotone.js +35 -35
- package/dist/Icon/components/InfoCircleDuotone.js.map +1 -0
- package/dist/Icon/components/InfoCircleLine.d.ts +1 -1
- package/dist/Icon/components/InfoCircleLine.js +35 -35
- package/dist/Icon/components/InfoCircleLine.js.map +1 -0
- package/dist/Icon/components/InformationCircleFill.d.ts +1 -1
- package/dist/Icon/components/InformationCircleFill.js +35 -35
- package/dist/Icon/components/InformationCircleFill.js.map +1 -0
- package/dist/Icon/components/InformationCircleLightLine.d.ts +1 -1
- package/dist/Icon/components/InformationCircleLightLine.js +37 -38
- package/dist/Icon/components/InformationCircleLightLine.js.map +1 -0
- package/dist/Icon/components/Loading2Line.d.ts +1 -1
- package/dist/Icon/components/Loading2Line.js +35 -35
- package/dist/Icon/components/Loading2Line.js.map +1 -0
- package/dist/Icon/components/LoadingDuotone.js +38 -39
- package/dist/Icon/components/LoadingDuotone.js.map +1 -0
- package/dist/Icon/components/LoadingLine.d.ts +1 -1
- package/dist/Icon/components/LoadingLine.js +35 -35
- package/dist/Icon/components/LoadingLine.js.map +1 -0
- package/dist/Icon/components/MoreVerticalLine.d.ts +1 -1
- package/dist/Icon/components/MoreVerticalLine.js +35 -35
- package/dist/Icon/components/MoreVerticalLine.js.map +1 -0
- package/dist/Icon/components/SearchLine.d.ts +1 -1
- package/dist/Icon/components/SearchLine.js +35 -35
- package/dist/Icon/components/SearchLine.js.map +1 -0
- package/dist/Icon/components/SignLightLine.d.ts +1 -1
- package/dist/Icon/components/SignLightLine.js +35 -35
- package/dist/Icon/components/SignLightLine.js.map +1 -0
- package/dist/Icon/components/SortAscendingOrderColor.js +37 -36
- package/dist/Icon/components/SortAscendingOrderColor.js.map +1 -0
- package/dist/Icon/components/SortColor.js +33 -33
- package/dist/Icon/components/SortColor.js.map +1 -0
- package/dist/Icon/components/SortDescendingOrderColor.js +37 -36
- package/dist/Icon/components/SortDescendingOrderColor.js.map +1 -0
- package/dist/Icon/components/TimesLightLine.d.ts +1 -1
- package/dist/Icon/components/TimesLightLine.js +35 -35
- package/dist/Icon/components/TimesLightLine.js.map +1 -0
- package/dist/Icon/components/TrashLightLine.d.ts +1 -1
- package/dist/Icon/components/TrashLightLine.js +37 -38
- package/dist/Icon/components/TrashLightLine.js.map +1 -0
- package/dist/Icon/components/TriangleLightLine.d.ts +1 -1
- package/dist/Icon/components/TriangleLightLine.js +35 -35
- package/dist/Icon/components/TriangleLightLine.js.map +1 -0
- package/dist/Icon/components/User.d.ts +1 -1
- package/dist/Icon/components/User.js +42 -41
- package/dist/Icon/components/User.js.map +1 -0
- package/dist/Icon/components/UserGroup.d.ts +1 -1
- package/dist/Icon/components/UserGroup.js +40 -39
- package/dist/Icon/components/UserGroup.js.map +1 -0
- package/dist/Icon/components/createFromScripts.js +2 -29
- package/dist/Icon/index.d.ts +52 -52
- package/dist/Icon/index.js +52 -52
- package/dist/IconButton/index.d.ts +1 -1
- package/dist/IconButton/index.js +92 -106
- package/dist/IconButton/index.js.map +1 -0
- package/dist/Input/components/Input/index.d.ts +19 -53
- package/dist/Input/components/Input/index.js +115 -62
- package/dist/Input/components/Input/index.js.map +1 -0
- package/dist/Input/components/Password/index.d.ts +4 -13
- package/dist/Input/components/Password/index.js +34 -37
- package/dist/Input/components/Password/index.js.map +1 -0
- package/dist/Input/components/TextArea/index.d.ts +16 -44
- package/dist/Input/components/TextArea/index.js +78 -44
- package/dist/Input/components/TextArea/index.js.map +1 -0
- package/dist/Input/index.d.ts +6 -7
- package/dist/Input/index.js +11 -7
- package/dist/Input/index.js.map +1 -0
- package/dist/InputNumber/index.d.ts +2 -3
- package/dist/InputNumber/index.js +123 -44
- package/dist/InputNumber/index.js.map +1 -0
- package/dist/InputNumber/type.d.ts +7 -126
- package/dist/InputNumber/type.js +2 -1
- package/dist/InputSearch/index.d.ts +3 -2
- package/dist/InputSearch/index.js +107 -154
- package/dist/InputSearch/index.js.map +1 -0
- package/dist/Layout/index.d.ts +28 -3
- package/dist/Layout/index.js +74 -2
- package/dist/Layout/index.js.map +1 -0
- package/dist/List/Item.d.ts +1 -1
- package/dist/List/Item.js +56 -73
- package/dist/List/Item.js.map +1 -0
- package/dist/List/index.d.ts +2 -2
- package/dist/List/index.js +93 -129
- package/dist/List/index.js.map +1 -0
- package/dist/LogicTree/DisplayLogicTree.d.ts +3 -3
- package/dist/LogicTree/DisplayLogicTree.js +16 -14
- package/dist/LogicTree/DisplayLogicTree.js.map +1 -0
- package/dist/LogicTree/components/DisplayLogicItem/index.d.ts +2 -2
- package/dist/LogicTree/components/DisplayLogicItem/index.js +69 -85
- package/dist/LogicTree/components/DisplayLogicItem/index.js.map +1 -0
- package/dist/LogicTree/components/LogicItem/index.d.ts +1 -2
- package/dist/LogicTree/components/LogicItem/index.js +296 -388
- package/dist/LogicTree/components/LogicItem/index.js.map +1 -0
- package/dist/LogicTree/helper.d.ts +1 -1
- package/dist/LogicTree/helper.js +119 -182
- package/dist/LogicTree/helper.js.map +1 -0
- package/dist/LogicTree/index.d.ts +5 -6
- package/dist/LogicTree/index.js +100 -143
- package/dist/LogicTree/index.js.map +1 -0
- package/dist/LogicTree/type.js +14 -9
- package/dist/LogicTree/type.js.map +1 -0
- package/dist/MemberPicker/components/MemberSelection.d.ts +2 -2
- package/dist/MemberPicker/components/MemberSelection.js +138 -169
- package/dist/MemberPicker/components/MemberSelection.js.map +1 -0
- package/dist/MemberPicker/components/MultipleOption.d.ts +1 -2
- package/dist/MemberPicker/components/MultipleOption.js +66 -70
- package/dist/MemberPicker/components/MultipleOption.js.map +1 -0
- package/dist/MemberPicker/components/NickLabel.d.ts +1 -1
- package/dist/MemberPicker/components/NickLabel.js +25 -23
- package/dist/MemberPicker/components/NickLabel.js.map +1 -0
- package/dist/MemberPicker/components/Panel.d.ts +2 -2
- package/dist/MemberPicker/components/Panel.js +158 -192
- package/dist/MemberPicker/components/Panel.js.map +1 -0
- package/dist/MemberPicker/components/PanelWrapper.d.ts +3 -3
- package/dist/MemberPicker/components/PanelWrapper.js +99 -151
- package/dist/MemberPicker/components/PanelWrapper.js.map +1 -0
- package/dist/MemberPicker/components/SelectedMemberTags.d.ts +2 -2
- package/dist/MemberPicker/components/SelectedMemberTags.js +81 -82
- package/dist/MemberPicker/components/SelectedMemberTags.js.map +1 -0
- package/dist/MemberPicker/components/SelectorFooter.d.ts +2 -2
- package/dist/MemberPicker/components/SelectorFooter.js +36 -43
- package/dist/MemberPicker/components/SelectorFooter.js.map +1 -0
- package/dist/MemberPicker/components/SingleOption.d.ts +1 -2
- package/dist/MemberPicker/components/SingleOption.js +62 -66
- package/dist/MemberPicker/components/SingleOption.js.map +1 -0
- package/dist/MemberPicker/components/UserGroupSelection.d.ts +2 -2
- package/dist/MemberPicker/components/UserGroupSelection.js +163 -229
- package/dist/MemberPicker/components/UserGroupSelection.js.map +1 -0
- package/dist/MemberPicker/index.d.ts +3 -3
- package/dist/MemberPicker/index.js +279 -380
- package/dist/MemberPicker/index.js.map +1 -0
- package/dist/MemberPicker/interface.d.ts +2 -2
- package/dist/MemberPicker/interface.js +11 -6
- package/dist/MemberPicker/interface.js.map +1 -0
- package/dist/MemberPicker/tests/mockPort.js +2 -147
- package/dist/MemberPicker/utils/getUsersWithUserId.js +10 -23
- package/dist/MemberPicker/utils/getUsersWithUserId.js.map +1 -0
- package/dist/MemberPicker/utils/index.d.ts +1 -2
- package/dist/MemberPicker/utils/index.js +18 -14
- package/dist/MemberPicker/utils/index.js.map +1 -0
- package/dist/Menu/index.d.ts +2 -2
- package/dist/Menu/index.js +113 -125
- package/dist/Menu/index.js.map +1 -0
- package/dist/Modal/index.d.ts +69 -25
- package/dist/Modal/index.js +329 -339
- package/dist/Modal/index.js.map +1 -0
- package/dist/OverflowCount/index.d.ts +2 -17
- package/dist/OverflowCount/index.js +88 -75
- package/dist/OverflowCount/index.js.map +1 -0
- package/dist/Pagination/PageSizeChanger.d.ts +1 -1
- package/dist/Pagination/PageSizeChanger.js +30 -49
- package/dist/Pagination/PageSizeChanger.js.map +1 -0
- package/dist/Pagination/index.d.ts +2 -3
- package/dist/Pagination/index.js +144 -196
- package/dist/Pagination/index.js.map +1 -0
- package/dist/Pagination/types.js +2 -1
- package/dist/Popconfirm/index.d.ts +17 -5
- package/dist/Popconfirm/index.js +100 -50
- package/dist/Popconfirm/index.js.map +1 -0
- package/dist/Popover/index.d.ts +22 -4
- package/dist/Popover/index.js +92 -17
- package/dist/Popover/index.js.map +1 -0
- package/dist/Progress/index.d.ts +1 -1
- package/dist/Progress/index.js +46 -74
- package/dist/Progress/index.js.map +1 -0
- package/dist/Radio/components/Group/index.d.ts +3 -3
- package/dist/Radio/components/Group/index.js +51 -63
- package/dist/Radio/components/Group/index.js.map +1 -0
- package/dist/Radio/components/Radio/index.d.ts +1 -2
- package/dist/Radio/components/Radio/index.js +84 -109
- package/dist/Radio/components/Radio/index.js.map +1 -0
- package/dist/Radio/index.d.ts +4 -5
- package/dist/Radio/index.js +9 -4
- package/dist/Radio/index.js.map +1 -0
- package/dist/Radio/interface/radio.js +2 -1
- package/dist/Radio/interface/radioGroup.d.ts +1 -1
- package/dist/Radio/interface/radioGroup.js +2 -1
- package/dist/RenameInput/index.d.ts +2 -2
- package/dist/RenameInput/index.js +94 -129
- package/dist/RenameInput/index.js.map +1 -0
- package/dist/Result/index.d.ts +5 -5
- package/dist/Result/index.js +122 -116
- package/dist/Result/index.js.map +1 -0
- package/dist/Result/noFound.d.ts +1 -1
- package/dist/Result/noFound.js +36 -33
- package/dist/Result/noFound.js.map +1 -0
- package/dist/Result/serverError.d.ts +1 -1
- package/dist/Result/serverError.js +36 -33
- package/dist/Result/serverError.js.map +1 -0
- package/dist/Result/unauthorized.d.ts +1 -1
- package/dist/Result/unauthorized.js +36 -34
- package/dist/Result/unauthorized.js.map +1 -0
- package/dist/Row/index.d.ts +11 -2
- package/dist/Row/index.js +42 -2
- package/dist/Row/index.js.map +1 -0
- package/dist/ScrollArea/index.d.ts +1 -1
- package/dist/ScrollArea/index.js +44 -58
- package/dist/ScrollArea/index.js.map +1 -0
- package/dist/{AldSelect → Select}/BaseSelect.d.ts +13 -3
- package/dist/Select/BaseSelect.js +206 -0
- package/dist/Select/BaseSelect.js.map +1 -0
- package/dist/{AldSelect → Select}/SelectTrigger.d.ts +3 -3
- package/dist/Select/SelectTrigger.js +60 -0
- package/dist/Select/SelectTrigger.js.map +1 -0
- package/dist/{AldSelect → Select}/Selector/MultipleResponsiveSelectedSection.d.ts +2 -2
- package/dist/Select/Selector/MultipleResponsiveSelectedSection.js +48 -0
- package/dist/Select/Selector/MultipleResponsiveSelectedSection.js.map +1 -0
- package/dist/{AldSelect → Select}/Selector/MultipleSelector.d.ts +3 -3
- package/dist/Select/Selector/MultipleSelector.js +128 -0
- package/dist/Select/Selector/MultipleSelector.js.map +1 -0
- package/dist/{AldSelect → Select}/Selector/index.d.ts +2 -2
- package/dist/Select/Selector/index.js +25 -0
- package/dist/Select/Selector/index.js.map +1 -0
- package/dist/{AldSelect → Select}/components/PopupContent.d.ts +2 -2
- package/dist/Select/components/PopupContent.js +25 -0
- package/dist/Select/components/PopupContent.js.map +1 -0
- package/dist/{AldSelect → Select}/components/SearchBox.d.ts +2 -2
- package/dist/Select/components/SearchBox.js +23 -0
- package/dist/Select/components/SearchBox.js.map +1 -0
- package/dist/{AldSelect → Select}/components/Suffix.d.ts +2 -2
- package/dist/Select/components/Suffix.js +36 -0
- package/dist/Select/components/Suffix.js.map +1 -0
- package/dist/Select/hooks/useCache.js +35 -0
- package/dist/Select/hooks/useCache.js.map +1 -0
- package/dist/Select/hooks/useDisplayMenu.js +42 -0
- package/dist/Select/hooks/useDisplayMenu.js.map +1 -0
- package/dist/{AldSelect → Select}/hooks/useLayoutEffect.d.ts +2 -1
- package/dist/Select/hooks/useLayoutEffect.js +2 -0
- package/dist/{AldSelect → Select}/hooks/useOptions.d.ts +1 -1
- package/dist/Select/hooks/useOptions.js +60 -0
- package/dist/Select/hooks/useOptions.js.map +1 -0
- package/dist/{AldSelect → Select}/index.d.ts +2 -2
- package/dist/Select/index.js +151 -0
- package/dist/Select/index.js.map +1 -0
- package/dist/{AldSelect → Select}/interface.d.ts +2 -2
- package/dist/Select/interface.js +2 -0
- package/dist/{AldSelect → Select}/utils/commonUtil.d.ts +0 -1
- package/dist/Select/utils/commonUtil.js +38 -0
- package/dist/Select/utils/commonUtil.js.map +1 -0
- package/dist/Select/utils/getWidthStyle.js +11 -0
- package/dist/Select/utils/getWidthStyle.js.map +1 -0
- package/dist/Select/utils/keyUtil.js +2 -0
- package/dist/{AldSelect → Select}/utils/valueUtil.d.ts +2 -3
- package/dist/Select/utils/valueUtil.js +16 -0
- package/dist/Select/utils/valueUtil.js.map +1 -0
- package/dist/Skeleton/index.d.ts +56 -2
- package/dist/Skeleton/index.js +130 -2
- package/dist/Skeleton/index.js.map +1 -0
- package/dist/Slider/index.d.ts +34 -4
- package/dist/Slider/index.js +98 -8
- package/dist/Slider/index.js.map +1 -0
- package/dist/Space/CompactContext.d.ts +20 -0
- package/dist/Space/CompactContext.js +24 -0
- package/dist/Space/CompactContext.js.map +1 -0
- package/dist/Space/index.d.ts +28 -3
- package/dist/Space/index.js +64 -2
- package/dist/Space/index.js.map +1 -0
- package/dist/Spin/CustomIcon/index.d.ts +3 -3
- package/dist/Spin/CustomIcon/index.js +27 -38
- package/dist/Spin/CustomIcon/index.js.map +1 -0
- package/dist/Spin/index.d.ts +2 -2
- package/dist/Spin/index.js +47 -62
- package/dist/Spin/index.js.map +1 -0
- package/dist/StatusLight/index.d.ts +2 -2
- package/dist/StatusLight/index.js +73 -58
- package/dist/StatusLight/index.js.map +1 -0
- package/dist/Steps/components/CustomDot/index.d.ts +4 -2
- package/dist/Steps/components/CustomDot/index.js +2 -8
- package/dist/Steps/components/ProcessIcon/index.d.ts +1 -2
- package/dist/Steps/components/ProcessIcon/index.js +39 -24
- package/dist/Steps/components/ProcessIcon/index.js.map +1 -0
- package/dist/Steps/components/Step/index.d.ts +2 -14
- package/dist/Steps/components/Step/index.js +28 -41
- package/dist/Steps/components/Step/index.js.map +1 -0
- package/dist/Steps/index.d.ts +13 -33
- package/dist/Steps/index.js +79 -30
- package/dist/Steps/index.js.map +1 -0
- package/dist/Steps/matchMedia.mock.js +2 -18
- package/dist/Switch/index.d.ts +5 -36
- package/dist/Switch/index.js +62 -67
- package/dist/Switch/index.js.map +1 -0
- package/dist/Switch/test/index.js +2 -43
- package/dist/Table/components/Cell.d.ts +1 -2
- package/dist/Table/components/Cell.js +40 -41
- package/dist/Table/components/Cell.js.map +1 -0
- package/dist/Table/components/DndWrapper.d.ts +1 -1
- package/dist/Table/components/DndWrapper.js +27 -35
- package/dist/Table/components/DndWrapper.js.map +1 -0
- package/dist/Table/components/ErrorBoundary.d.ts +4 -2
- package/dist/Table/components/ErrorBoundary.js +33 -61
- package/dist/Table/components/ErrorBoundary.js.map +1 -0
- package/dist/Table/components/ExpandCell.d.ts +2 -2
- package/dist/Table/components/ExpandCell.js +61 -62
- package/dist/Table/components/ExpandCell.js.map +1 -0
- package/dist/Table/components/Footer/index.d.ts +1 -2
- package/dist/Table/components/Footer/index.js +75 -81
- package/dist/Table/components/Footer/index.js.map +1 -0
- package/dist/Table/components/Header.d.ts +1 -2
- package/dist/Table/components/Header.js +62 -68
- package/dist/Table/components/Header.js.map +1 -0
- package/dist/Table/helper.d.ts +6 -7
- package/dist/Table/helper.js +101 -155
- package/dist/Table/helper.js.map +1 -0
- package/dist/Table/hooks/useExpandable.d.ts +1 -1
- package/dist/Table/hooks/useExpandable.js +125 -172
- package/dist/Table/hooks/useExpandable.js.map +1 -0
- package/dist/Table/hooks/useFixed.d.ts +1 -2
- package/dist/Table/hooks/useFixed.js +45 -54
- package/dist/Table/hooks/useFixed.js.map +1 -0
- package/dist/Table/hooks/useRowDnd.d.ts +1 -1
- package/dist/Table/hooks/useRowDnd.js +156 -260
- package/dist/Table/hooks/useRowDnd.js.map +1 -0
- package/dist/Table/hooks/useRowSelection.d.ts +1 -1
- package/dist/Table/hooks/useRowSelection.js +268 -389
- package/dist/Table/hooks/useRowSelection.js.map +1 -0
- package/dist/Table/hooks/useScroll.d.ts +3 -4
- package/dist/Table/hooks/useScroll.js +92 -137
- package/dist/Table/hooks/useScroll.js.map +1 -0
- package/dist/Table/index.d.ts +3 -3
- package/dist/Table/index.js +442 -514
- package/dist/Table/index.js.map +1 -0
- package/dist/Table/tests/helper.d.ts +1 -1
- package/dist/Table/tests/helper.js +2 -41
- package/dist/Table/types.d.ts +1 -1
- package/dist/Table/types.js +2 -1
- package/dist/Tabs/TabPane.d.ts +2 -14
- package/dist/Tabs/TabPane.js +13 -6
- package/dist/Tabs/TabPane.js.map +1 -0
- package/dist/Tabs/index.d.ts +26 -52
- package/dist/Tabs/index.js +187 -78
- package/dist/Tabs/index.js.map +1 -0
- package/dist/Tag/index.d.ts +3 -3
- package/dist/Tag/index.js +119 -144
- package/dist/Tag/index.js.map +1 -0
- package/dist/TextLink/index.d.ts +10 -2
- package/dist/TextLink/index.js +49 -24
- package/dist/TextLink/index.js.map +1 -0
- package/dist/Tooltip/index.d.ts +2 -47
- package/dist/Tooltip/index.js +124 -34
- package/dist/Tooltip/index.js.map +1 -0
- package/dist/Tour/index.d.ts +29 -3
- package/dist/Tour/index.js +79 -2
- package/dist/Tour/index.js.map +1 -0
- package/dist/Tree/DirectoryTree.d.ts +3 -4
- package/dist/Tree/DirectoryTree.js +91 -161
- package/dist/Tree/DirectoryTree.js.map +1 -0
- package/dist/Tree/Tree.d.ts +3 -4
- package/dist/Tree/Tree.js +2 -205
- package/dist/Tree/Tree2.js +146 -0
- package/dist/Tree/Tree2.js.map +1 -0
- package/dist/Tree/index.d.ts +7 -10
- package/dist/Tree/index.js +10 -6
- package/dist/Tree/index.js.map +1 -0
- package/dist/Tree/utils/dictUtil.d.ts +1 -1
- package/dist/Tree/utils/dictUtil.js +49 -69
- package/dist/Tree/utils/dictUtil.js.map +1 -0
- package/dist/Tree/utils/dropIndicator.d.ts +1 -2
- package/dist/Tree/utils/dropIndicator.js +31 -35
- package/dist/Tree/utils/dropIndicator.js.map +1 -0
- package/dist/Tree/utils/iconUtil.d.ts +1 -1
- package/dist/Tree/utils/iconUtil.js +61 -65
- package/dist/Tree/utils/iconUtil.js.map +1 -0
- package/dist/Typography/index.d.ts +53 -2
- package/dist/Typography/index.js +85 -2
- package/dist/Typography/index.js.map +1 -0
- package/dist/Upload/index.d.ts +78 -4
- package/dist/Upload/index.js +334 -2
- package/dist/Upload/index.js.map +1 -0
- package/dist/User/index.d.ts +4 -2
- package/dist/User/index.js +31 -26
- package/dist/User/index.js.map +1 -0
- package/dist/Watermark/index.d.ts +2 -2
- package/dist/Watermark/index.js +61 -4
- package/dist/Watermark/index.js.map +1 -0
- package/dist/_utils/SimpleOverflow.d.ts +14 -0
- package/dist/_utils/SimpleOverflow.js +61 -0
- package/dist/_utils/SimpleOverflow.js.map +1 -0
- package/dist/_utils/getUniqId.js +12 -11
- package/dist/_utils/getUniqId.js.map +1 -0
- package/dist/_utils/hooks/useControlledState.js +2 -42
- package/dist/_utils/hooks/useId.js +15 -18
- package/dist/_utils/hooks/useId.js.map +1 -0
- package/dist/_utils/motion.d.ts +2 -3
- package/dist/_utils/motion.js +28 -49
- package/dist/_utils/motion.js.map +1 -0
- package/dist/_utils/prefixCls.d.ts +1 -3
- package/dist/_utils/prefixCls.js +13 -14
- package/dist/_utils/prefixCls.js.map +1 -0
- package/dist/_utils/reactNode.js +17 -15
- package/dist/_utils/reactNode.js.map +1 -0
- package/dist/_utils/statusUtils.d.ts +3 -0
- package/dist/_utils/statusUtils.js +2 -0
- package/dist/_utils/type.js +2 -22
- package/dist/aloudata-design.css +2 -0
- package/dist/index.d.ts +125 -113
- package/dist/index.js +73 -70
- package/dist/lib/utils.d.ts +2 -0
- package/dist/lib/utils.js +10 -0
- package/dist/lib/utils.js.map +1 -0
- package/dist/locale/default.d.ts +5 -3
- package/dist/locale/default.js +18 -17
- package/dist/locale/default.js.map +1 -0
- package/dist/locale/en_US.d.ts +1 -0
- package/dist/locale/en_US.js +63 -69
- package/dist/locale/en_US.js.map +1 -0
- package/dist/locale/zh_CN.d.ts +1 -0
- package/dist/locale/zh_CN.js +63 -69
- package/dist/locale/zh_CN.js.map +1 -0
- package/dist/message/index.js +91 -81
- package/dist/message/index.js.map +1 -0
- package/dist/notification/index.d.ts +1 -1
- package/dist/notification/index.js +209 -218
- package/dist/notification/index.js.map +1 -0
- package/dist/select_structure.png +0 -0
- package/dist/select_use_tip1.png +0 -0
- package/dist/select_use_tip2.png +0 -0
- package/dist/select_use_tip3.png +0 -0
- package/dist/select_use_tip4.png +0 -0
- package/package.json +58 -56
- package/dist/AMenu/style/index.d.ts +0 -2
- package/dist/AMenu/style/index.js +0 -2
- package/dist/AMenu/style/index.less +0 -1
- package/dist/AProgress/style/index.d.ts +0 -2
- package/dist/AProgress/style/index.js +0 -2
- package/dist/AProgress/style/index.less +0 -1
- package/dist/AldSelect/BaseSelect.js +0 -275
- package/dist/AldSelect/SelectTrigger.js +0 -76
- package/dist/AldSelect/Selector/MultipleResponsiveSelectedSection.js +0 -52
- package/dist/AldSelect/Selector/MultipleSelector.js +0 -171
- package/dist/AldSelect/Selector/index.js +0 -30
- package/dist/AldSelect/components/PopupContent.js +0 -28
- package/dist/AldSelect/components/SearchBox.js +0 -23
- package/dist/AldSelect/components/Suffix.js +0 -37
- package/dist/AldSelect/hooks/useCache.js +0 -50
- package/dist/AldSelect/hooks/useDisplayMenu.js +0 -61
- package/dist/AldSelect/hooks/useLayoutEffect.js +0 -17
- package/dist/AldSelect/hooks/useOptions.js +0 -74
- package/dist/AldSelect/index.js +0 -259
- package/dist/AldSelect/interface.js +0 -1
- package/dist/AldSelect/style/color.less +0 -71
- package/dist/AldSelect/style/index.d.ts +0 -1
- package/dist/AldSelect/style/index.js +0 -1
- package/dist/AldSelect/style/index.less +0 -180
- package/dist/AldSelect/style/size.less +0 -72
- package/dist/AldSelect/utils/commonUtil.js +0 -46
- package/dist/AldSelect/utils/getWidthStyle.js +0 -18
- package/dist/AldSelect/utils/keyUtil.js +0 -10
- package/dist/AldSelect/utils/valueUtil.js +0 -131
- package/dist/Alert/style/index.d.ts +0 -2
- package/dist/Alert/style/index.js +0 -2
- package/dist/Alert/style/index.less +0 -1
- package/dist/App/style/index.d.ts +0 -2
- package/dist/App/style/index.js +0 -2
- package/dist/App/style/index.less +0 -1
- package/dist/Avatar/style/index.d.ts +0 -2
- package/dist/Avatar/style/index.js +0 -2
- package/dist/Avatar/style/index.less +0 -23
- package/dist/Badge/style/index.d.ts +0 -2
- package/dist/Badge/style/index.js +0 -2
- package/dist/Badge/style/index.less +0 -50
- package/dist/Breadcrumb/style/index.d.ts +0 -2
- package/dist/Breadcrumb/style/index.js +0 -2
- package/dist/Breadcrumb/style/index.less +0 -37
- package/dist/Button/style/index.d.ts +0 -2
- package/dist/Button/style/index.js +0 -2
- package/dist/Button/style/index.less +0 -24
- package/dist/Button/style/reset.less +0 -9
- package/dist/Button/style/size.less +0 -102
- package/dist/Button/style/type.less +0 -286
- package/dist/Button/style/variables.less +0 -124
- package/dist/Card/style/index.d.ts +0 -2
- package/dist/Card/style/index.js +0 -2
- package/dist/Card/style/index.less +0 -1
- package/dist/Carousel/style/index.d.ts +0 -2
- package/dist/Carousel/style/index.js +0 -2
- package/dist/Carousel/style/index.less +0 -1
- package/dist/Checkbox/style/index.d.ts +0 -2
- package/dist/Checkbox/style/index.js +0 -2
- package/dist/Checkbox/style/index.less +0 -235
- package/dist/Col/style/index.d.ts +0 -2
- package/dist/Col/style/index.js +0 -2
- package/dist/Col/style/index.less +0 -1
- package/dist/Collapse/style/index.d.ts +0 -2
- package/dist/Collapse/style/index.js +0 -2
- package/dist/Collapse/style/index.less +0 -107
- package/dist/ColorPicker/alpha.svg +0 -54
- package/dist/ColorPicker/style/complex.less +0 -199
- package/dist/ColorPicker/style/index.d.ts +0 -2
- package/dist/ColorPicker/style/index.js +0 -2
- package/dist/ColorPicker/style/index.less +0 -190
- package/dist/ConfigProvider/defaultRenderEmpty.d.ts +0 -4
- package/dist/ConfigProvider/defaultRenderEmpty.js +0 -34
- package/dist/ConfigProvider/style/index.d.ts +0 -2
- package/dist/ConfigProvider/style/index.js +0 -2
- package/dist/ConfigProvider/style/index.less +0 -1
- package/dist/DONT-USE-THIS-FILE-NAME +0 -7
- package/dist/DataPreviewTable/style/index.d.ts +0 -2
- package/dist/DataPreviewTable/style/index.js +0 -2
- package/dist/DataPreviewTable/style/index.less +0 -158
- package/dist/DatePicker/style/index.d.ts +0 -2
- package/dist/DatePicker/style/index.js +0 -2
- package/dist/DatePicker/style/index.less +0 -14
- package/dist/Divider/style/index.d.ts +0 -2
- package/dist/Divider/style/index.js +0 -2
- package/dist/Divider/style/index.less +0 -40
- package/dist/DoubleCircleIcon/style/index.less +0 -55
- package/dist/Drawer/style/index.d.ts +0 -2
- package/dist/Drawer/style/index.js +0 -2
- package/dist/Drawer/style/index.less +0 -1
- package/dist/Dropdown/style/index.d.ts +0 -2
- package/dist/Dropdown/style/index.js +0 -2
- package/dist/Dropdown/style/index.less +0 -24
- package/dist/Empty/style/index.d.ts +0 -1
- package/dist/Empty/style/index.js +0 -1
- package/dist/Empty/style/index.less +0 -74
- package/dist/Form/style/index.d.ts +0 -3
- package/dist/Form/style/index.js +0 -3
- package/dist/Form/style/index.less +0 -130
- package/dist/HighlightText/style/index.d.ts +0 -2
- package/dist/HighlightText/style/index.js +0 -2
- package/dist/HighlightText/style/index.less +0 -5
- package/dist/Icon/antdIconfont.d.ts +0 -4
- package/dist/Icon/antdIconfont.js +0 -2
- package/dist/Icon/index.less +0 -24
- package/dist/Icon/style/index.d.ts +0 -2
- package/dist/Icon/style/index.js +0 -2
- package/dist/Icon/style/index.less +0 -24
- package/dist/Icon/svg/Arrow-Right-light-line.svg +0 -5
- package/dist/Icon/svg/Cancelled-Circle-fill.svg +0 -6
- package/dist/Icon/svg/Close-Circle-light-line.svg +0 -5
- package/dist/Icon/svg/In-Progress-fill.svg +0 -8
- package/dist/Icon/svg/Loading-duotone.svg +0 -7
- package/dist/Icon/svg/Sign-light-line.svg +0 -3
- package/dist/Icon/svg/Sort-Ascending-order-Color.svg +0 -5
- package/dist/Icon/svg/Sort-Color.svg +0 -5
- package/dist/Icon/svg/Sort-Descending-order-Color.svg +0 -5
- package/dist/Icon/svg/Times-light-line.svg +0 -5
- package/dist/Icon/svg/Trash-light-line.svg +0 -8
- package/dist/Icon/svg/alert-triangle-duotone.svg +0 -5
- package/dist/Icon/svg/alert-triangle-line.svg +0 -5
- package/dist/Icon/svg/arrow-down-fill.svg +0 -5
- package/dist/Icon/svg/arrow-down-light-line.svg +0 -5
- package/dist/Icon/svg/arrow-down-right-fill.svg +0 -5
- package/dist/Icon/svg/attention-circle-fill.svg +0 -5
- package/dist/Icon/svg/attention-triangle-fill.svg +0 -5
- package/dist/Icon/svg/attention-triangle-light-line.svg +0 -5
- package/dist/Icon/svg/cancel-circle-duotone.svg +0 -8
- package/dist/Icon/svg/check-circle-duotone.svg +0 -8
- package/dist/Icon/svg/check-circle-fill.svg +0 -5
- package/dist/Icon/svg/check-circle-light-line.svg +0 -8
- package/dist/Icon/svg/check-light-line.svg +0 -5
- package/dist/Icon/svg/chevron-down-line.svg +0 -7
- package/dist/Icon/svg/chevron-left-line.svg +0 -7
- package/dist/Icon/svg/chevron-right-line.svg +0 -7
- package/dist/Icon/svg/circle-light-line.svg +0 -9
- package/dist/Icon/svg/close-L-line.svg +0 -3
- package/dist/Icon/svg/close-circle-fill.svg +0 -5
- package/dist/Icon/svg/close-circle-right-fill.svg +0 -5
- package/dist/Icon/svg/close-light-line.svg +0 -5
- package/dist/Icon/svg/close-m-line.svg +0 -7
- package/dist/Icon/svg/danger-fill.svg +0 -5
- package/dist/Icon/svg/drag-light-line.svg +0 -5
- package/dist/Icon/svg/drag-line.svg +0 -7
- package/dist/Icon/svg/ellipsis.svg +0 -6
- package/dist/Icon/svg/eye-off-line.svg +0 -7
- package/dist/Icon/svg/eye-on-line.svg +0 -15
- package/dist/Icon/svg/fold-down-fill.svg +0 -8
- package/dist/Icon/svg/fold-up-fill.svg +0 -8
- package/dist/Icon/svg/info-circle-duotone.svg +0 -5
- package/dist/Icon/svg/info-circle-line.svg +0 -5
- package/dist/Icon/svg/information-circle-fill.svg +0 -5
- package/dist/Icon/svg/information-circle-light-line.svg +0 -9
- package/dist/Icon/svg/loading-2-line.svg +0 -8
- package/dist/Icon/svg/loading-line.svg +0 -7
- package/dist/Icon/svg/more-vertical-line.svg +0 -7
- package/dist/Icon/svg/search-line.svg +0 -7
- package/dist/Icon/svg/triangle-light-line.svg +0 -5
- package/dist/Icon/svg/user.svg +0 -4
- package/dist/Icon/svg/userGroup.svg +0 -7
- package/dist/IconButton/style/index.d.ts +0 -2
- package/dist/IconButton/style/index.js +0 -2
- package/dist/IconButton/style/index.less +0 -148
- package/dist/Input/style/index.d.ts +0 -2
- package/dist/Input/style/index.js +0 -2
- package/dist/Input/style/index.less +0 -13
- package/dist/Input/style/reset.less +0 -22
- package/dist/Input/style/size.less +0 -82
- package/dist/Input/style/status.less +0 -99
- package/dist/InputNumber/style/index.d.ts +0 -2
- package/dist/InputNumber/style/index.js +0 -2
- package/dist/InputNumber/style/index.less +0 -330
- package/dist/InputSearch/style/index.d.ts +0 -2
- package/dist/InputSearch/style/index.js +0 -2
- package/dist/InputSearch/style/index.less +0 -91
- package/dist/Layout/style/index.d.ts +0 -2
- package/dist/Layout/style/index.js +0 -2
- package/dist/Layout/style/index.less +0 -1
- package/dist/List/style/index.d.ts +0 -2
- package/dist/List/style/index.js +0 -2
- package/dist/List/style/index.less +0 -120
- package/dist/LogicTree/style/DisplayLogicItem.less +0 -54
- package/dist/LogicTree/style/LoginItem.less +0 -206
- package/dist/LogicTree/style/index.d.ts +0 -2
- package/dist/LogicTree/style/index.js +0 -2
- package/dist/LogicTree/style/index.less +0 -12
- package/dist/MemberPicker/assets/default_user_photo.svg +0 -7
- package/dist/MemberPicker/style/index.d.ts +0 -2
- package/dist/MemberPicker/style/index.js +0 -2
- package/dist/MemberPicker/style/index.less +0 -365
- package/dist/Menu/style/index.d.ts +0 -2
- package/dist/Menu/style/index.js +0 -2
- package/dist/Menu/style/index.less +0 -146
- package/dist/Modal/style/index.d.ts +0 -2
- package/dist/Modal/style/index.js +0 -2
- package/dist/Modal/style/index.less +0 -7
- package/dist/Modal/style/modal.less +0 -191
- package/dist/Modal/style/modalConfirm.less +0 -89
- package/dist/Modal/style/polyfill/animate.less +0 -244
- package/dist/Modal/style/polyfill/index.less +0 -54
- package/dist/OverflowCount/style/index.d.ts +0 -2
- package/dist/OverflowCount/style/index.js +0 -2
- package/dist/OverflowCount/style/index.less +0 -52
- package/dist/Pagination/style/index.d.ts +0 -2
- package/dist/Pagination/style/index.js +0 -2
- package/dist/Pagination/style/index.less +0 -45
- package/dist/Popconfirm/style/index.d.ts +0 -2
- package/dist/Popconfirm/style/index.js +0 -2
- package/dist/Popconfirm/style/index.less +0 -81
- package/dist/Popover/style/index.d.ts +0 -2
- package/dist/Popover/style/index.js +0 -2
- package/dist/Popover/style/index.less +0 -73
- package/dist/Progress/style/index.d.ts +0 -2
- package/dist/Progress/style/index.js +0 -2
- package/dist/Progress/style/index.less +0 -57
- package/dist/Radio/style/index.d.ts +0 -2
- package/dist/Radio/style/index.js +0 -2
- package/dist/Radio/style/index.less +0 -603
- package/dist/RenameInput/style/index.d.ts +0 -2
- package/dist/RenameInput/style/index.js +0 -2
- package/dist/RenameInput/style/index.less +0 -66
- package/dist/Result/style/index.d.ts +0 -2
- package/dist/Result/style/index.js +0 -2
- package/dist/Result/style/index.less +0 -104
- package/dist/Row/style/index.d.ts +0 -2
- package/dist/Row/style/index.js +0 -2
- package/dist/Row/style/index.less +0 -1
- package/dist/ScrollArea/style/index.d.ts +0 -2
- package/dist/ScrollArea/style/index.js +0 -2
- package/dist/ScrollArea/style/index.less +0 -54
- package/dist/Skeleton/style/index.d.ts +0 -2
- package/dist/Skeleton/style/index.js +0 -2
- package/dist/Skeleton/style/index.less +0 -91
- package/dist/Slider/style/index.d.ts +0 -2
- package/dist/Slider/style/index.js +0 -2
- package/dist/Slider/style/index.less +0 -68
- package/dist/Space/style/index.d.ts +0 -2
- package/dist/Space/style/index.js +0 -2
- package/dist/Space/style/index.less +0 -1
- package/dist/Spin/style/customIcon.less +0 -69
- package/dist/Spin/style/index.d.ts +0 -2
- package/dist/Spin/style/index.js +0 -2
- package/dist/Spin/style/index.less +0 -24
- package/dist/StatusLight/style/index.d.ts +0 -2
- package/dist/StatusLight/style/index.js +0 -2
- package/dist/StatusLight/style/index.less +0 -99
- package/dist/Steps/style/index.d.ts +0 -2
- package/dist/Steps/style/index.js +0 -2
- package/dist/Steps/style/index.less +0 -350
- package/dist/Switch/style/index.d.ts +0 -2
- package/dist/Switch/style/index.js +0 -2
- package/dist/Switch/style/index.less +0 -212
- package/dist/Switch/style/status.less +0 -12
- package/dist/Table/style/index.d.ts +0 -2
- package/dist/Table/style/index.js +0 -2
- package/dist/Table/style/index.less +0 -421
- package/dist/Tabs/style/index.d.ts +0 -2
- package/dist/Tabs/style/index.js +0 -2
- package/dist/Tabs/style/index.less +0 -262
- package/dist/Tag/style/index.d.ts +0 -2
- package/dist/Tag/style/index.js +0 -2
- package/dist/Tag/style/index.less +0 -69
- package/dist/TextLink/style/index.d.ts +0 -2
- package/dist/TextLink/style/index.js +0 -2
- package/dist/TextLink/style/index.less +0 -15
- package/dist/TextLink/style/size.less +0 -37
- package/dist/TextLink/style/type.less +0 -60
- package/dist/Tooltip/style/index.d.ts +0 -2
- package/dist/Tooltip/style/index.js +0 -2
- package/dist/Tooltip/style/index.less +0 -25
- package/dist/Tour/style/index.d.ts +0 -2
- package/dist/Tour/style/index.js +0 -2
- package/dist/Tour/style/index.less +0 -1
- package/dist/Tree/demo/asyncLoad/index.d.ts +0 -3
- package/dist/Tree/demo/asyncLoad/index.js +0 -76
- package/dist/Tree/demo/basic/index.d.ts +0 -3
- package/dist/Tree/demo/basic/index.js +0 -42
- package/dist/Tree/demo/directoryTree/index.d.ts +0 -3
- package/dist/Tree/demo/directoryTree/index.js +0 -40
- package/dist/Tree/demo/drag/index.d.ts +0 -3
- package/dist/Tree/demo/drag/index.js +0 -118
- package/dist/Tree/demo/filter/index.d.ts +0 -3
- package/dist/Tree/demo/filter/index.js +0 -64
- package/dist/Tree/style/checkbox.less +0 -237
- package/dist/Tree/style/directory.less +0 -68
- package/dist/Tree/style/indent.less +0 -11
- package/dist/Tree/style/index.d.ts +0 -2
- package/dist/Tree/style/index.js +0 -2
- package/dist/Tree/style/index.less +0 -173
- package/dist/Tree/style/mixin.less +0 -322
- package/dist/Tree/style/reset.less +0 -26
- package/dist/Tree/style/rtl.less +0 -68
- package/dist/Tree/style/var.less +0 -42
- package/dist/Typography/style/index.d.ts +0 -2
- package/dist/Typography/style/index.js +0 -2
- package/dist/Typography/style/index.less +0 -1
- package/dist/Upload/style/index.d.ts +0 -2
- package/dist/Upload/style/index.js +0 -2
- package/dist/Upload/style/index.less +0 -1
- package/dist/User/style/index.d.ts +0 -2
- package/dist/User/style/index.js +0 -2
- package/dist/User/style/index.less +0 -49
- package/dist/Watermark/style/index.d.ts +0 -2
- package/dist/Watermark/style/index.js +0 -2
- package/dist/Watermark/style/index.less +0 -1
- package/dist/_utils/hooks/usePrefixCls.d.ts +0 -2
- package/dist/_utils/hooks/usePrefixCls.js +0 -10
- package/dist/_utils/transformIconToBase64Url.d.ts +0 -2
- package/dist/_utils/transformIconToBase64Url.js +0 -6
- package/dist/ald.min.css +0 -5
- package/dist/index.less +0 -64
- package/dist/message/style/index.d.ts +0 -2
- package/dist/message/style/index.js +0 -2
- package/dist/message/style/index.less +0 -73
- package/dist/notification/demo/index.d.ts +0 -3
- package/dist/notification/demo/index.js +0 -43
- package/dist/notification/style/index.d.ts +0 -2
- package/dist/notification/style/index.js +0 -2
- package/dist/notification/style/index.less +0 -53
- package/dist/style/color/bezierEasing.less +0 -110
- package/dist/style/color/colorPalette.less +0 -84
- package/dist/style/color/colors.less +0 -162
- package/dist/style/color/tinyColor.less +0 -1184
- package/dist/style/components/toastify.css +0 -855
- package/dist/style/core/index.less +0 -2
- package/dist/style/core/motion/fade.less +0 -34
- package/dist/style/core/motion/move.less +0 -129
- package/dist/style/core/motion/other.less +0 -48
- package/dist/style/core/motion/slide.less +0 -131
- package/dist/style/core/motion/zoom.less +0 -179
- package/dist/style/core/motion.less +0 -22
- package/dist/style/index.d.ts +0 -1
- package/dist/style/index.js +0 -1
- package/dist/style/index.less +0 -31
- package/dist/style/mixins/index.less +0 -27
- package/dist/style/mixins/motion.less +0 -33
- package/dist/style/themes/default/default.less +0 -24
- package/dist/style/themes/default/index.less +0 -34
- package/dist/style/themes/default/scrollBar.less +0 -21
- package/dist/style/themes/default/themeColor.module.less +0 -437
- package/dist/style/themes/default/themeColor.module.less.d.ts +0 -182
- package/dist/style/var/default.css +0 -1271
- /package/dist/{AldSelect → Select}/hooks/useCache.d.ts +0 -0
- /package/dist/{AldSelect → Select}/hooks/useDisplayMenu.d.ts +0 -0
- /package/dist/{AldSelect → Select}/utils/getWidthStyle.d.ts +0 -0
- /package/dist/{AldSelect → Select}/utils/keyUtil.d.ts +0 -0
package/dist/Modal/index.js
CHANGED
|
@@ -1,344 +1,334 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
17
|
-
import { Modal as AntdModal } from 'antd';
|
|
18
|
-
import { modalGlobalConfig } from 'antd/lib/modal/confirm';
|
|
19
|
-
import useModal from 'antd/lib/modal/useModal/index';
|
|
20
|
-
import classNames from 'classnames';
|
|
21
|
-
import React, { useContext, useMemo } from 'react';
|
|
22
|
-
import { btnPrefix, getButtonSizeClass, getButtonType, getDangerStatus, getShape } from "../Button";
|
|
23
|
-
import { AttentionTriangleLightLine, CheckCircleLightLine, CloseLLine, InformationCircleLightLine } from "../Icon";
|
|
24
|
-
import IconButton from "../IconButton";
|
|
25
|
-
import { getTranslator, LocaleContext } from "../locale/default";
|
|
26
|
-
import ScrollArea from "../ScrollArea";
|
|
27
|
-
|
|
28
|
-
// export type { ModalProps, ModalFuncProps };
|
|
29
|
-
|
|
30
|
-
export var destroyFns = [];
|
|
1
|
+
import { cn } from "../lib/utils.js";
|
|
2
|
+
import Memo from "../Icon/components/AttentionTriangleLightLine.js";
|
|
3
|
+
import Memo$1 from "../Icon/components/CheckCircleLightLine.js";
|
|
4
|
+
import Memo$2 from "../Icon/components/CloseLLine.js";
|
|
5
|
+
import Memo$3 from "../Icon/components/InformationCircleLightLine.js";
|
|
6
|
+
import Button_default from "../Button/index.js";
|
|
7
|
+
import { LocaleContext, getTranslator } from "../locale/default.js";
|
|
8
|
+
import IconButton from "../IconButton/index.js";
|
|
9
|
+
import ScrollArea_default from "../ScrollArea/index.js";
|
|
10
|
+
import React, { useCallback, useContext, useMemo, useRef, useState } from "react";
|
|
11
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
+
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
13
|
+
import { createRoot } from "react-dom/client";
|
|
14
|
+
//#region src/Modal/index.tsx
|
|
15
|
+
var destroyFns = [];
|
|
31
16
|
var DEFAULT_WIDTH = 552;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
className: classNames(btnPrefix, "".concat(btnPrefix, "-").concat(type), buttonClassName, getButtonSizeClass(size)),
|
|
49
|
-
danger: getDangerStatus(type),
|
|
50
|
-
shape: getShape(shape)
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
var ModalTitle = function ModalTitle(_ref, type) {
|
|
54
|
-
var icon = _ref.icon,
|
|
55
|
-
title = _ref.title,
|
|
56
|
-
subTitle = _ref.subTitle;
|
|
57
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
58
|
-
className: 'ald-modal-title-container'
|
|
59
|
-
}, icon && /*#__PURE__*/React.createElement("div", {
|
|
60
|
-
className: classNames('ald-modal-icon-container', _defineProperty({}, "ald-modal-cion-".concat(type, "-container"), type))
|
|
61
|
-
}, icon), /*#__PURE__*/React.createElement("div", {
|
|
62
|
-
className: 'ald-modal-text-container'
|
|
63
|
-
}, title && /*#__PURE__*/React.createElement("div", {
|
|
64
|
-
className: classNames('ald-modal-text-title', {
|
|
65
|
-
'ald-modal-text-title-only': !subTitle
|
|
66
|
-
})
|
|
67
|
-
}, title), subTitle && /*#__PURE__*/React.createElement("div", {
|
|
68
|
-
className: 'ald-modal-text-sub-title'
|
|
69
|
-
}, subTitle)));
|
|
70
|
-
};
|
|
17
|
+
var ModalTitle = ({ icon, title, subTitle }, type) => /* @__PURE__ */ jsxs("div", {
|
|
18
|
+
className: "ald-modal-title-container tw-flex tw-items-center tw-gap-4",
|
|
19
|
+
children: [icon && /* @__PURE__ */ jsx("div", {
|
|
20
|
+
className: cn("ald-modal-icon-container tw-grid tw-size-10 tw-shrink-0 tw-place-items-center tw-rounded-[var(--global-grid-250)]", type === "info" && "ald-modal-cion-info-container tw-bg-[var(--action-primary-subtle-hover)]", type === "success" && "ald-modal-cion-success-container tw-bg-[var(--background-positive-muted)]", type === "warning" && "ald-modal-cion-warning-container tw-bg-[var(--background-warning-muted)]", type === "warn" && "ald-modal-cion-warning-container tw-bg-[var(--background-warning-muted)]", type === "error" && "ald-modal-cion-error-container tw-bg-[var(--background-negative-muted)]", type === "confirm" && "ald-modal-cion-confirm-container tw-bg-[var(--action-primary-subtle-hover)]"),
|
|
21
|
+
children: icon
|
|
22
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
23
|
+
className: "ald-modal-text-container",
|
|
24
|
+
children: [title && /* @__PURE__ */ jsx("div", {
|
|
25
|
+
className: cn("ald-modal-text-title tw-text-lg tw-font-semibold tw-leading-7 tw-text-[var(--alias-colors-text-strong)]", !subTitle && "ald-modal-text-title-only tw-text-xl"),
|
|
26
|
+
children: title
|
|
27
|
+
}), subTitle && /* @__PURE__ */ jsx("div", {
|
|
28
|
+
className: "ald-modal-text-sub-title tw-mt-1 tw-text-xs tw-leading-4 tw-text-[var(--alias-colors-text-subtle)]",
|
|
29
|
+
children: subTitle
|
|
30
|
+
})]
|
|
31
|
+
})]
|
|
32
|
+
});
|
|
71
33
|
function getIcon(type) {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
34
|
+
if (type === "success") return /* @__PURE__ */ jsx(Memo$1, {
|
|
35
|
+
fill: "var(--content-inverted-primary)",
|
|
36
|
+
color: "var(--background-positive-strong)",
|
|
37
|
+
size: 24
|
|
38
|
+
});
|
|
39
|
+
if (type === "error") return /* @__PURE__ */ jsx(Memo, {
|
|
40
|
+
color: "var(--background-negative-strong)",
|
|
41
|
+
fill: "var(--content-inverted-primary)",
|
|
42
|
+
size: 24
|
|
43
|
+
});
|
|
44
|
+
if (type === "warning" || type === "warn") return /* @__PURE__ */ jsx(Memo, {
|
|
45
|
+
color: "var(--background-warning-strong)",
|
|
46
|
+
size: 24
|
|
47
|
+
});
|
|
48
|
+
return /* @__PURE__ */ jsx(Memo$3, {
|
|
49
|
+
size: 24,
|
|
50
|
+
color: "var(--interaction-default-normal)"
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
function OriginModal(props) {
|
|
54
|
+
const { locale } = useContext(LocaleContext);
|
|
55
|
+
const t = getTranslator(locale);
|
|
56
|
+
const { className, children, okType = "primary", width, closeIcon, subTitle, okButtonProps = {}, cancelButtonProps = {}, okText = t.Modal.sure, cancelText = t.Modal.cancel, icon, title, paddingLess, responsiveBounds, hideHeaderBottomBorder, virtualScrollBar, style, maskClosable = false, fullscreen, open = false, onOk, onCancel, footer, confirmLoading, closable = true, zIndex = 1e3, bodyStyle, keyboard = true, afterOpenChange, _modalType } = props;
|
|
57
|
+
const prevOpenRef = useRef(open);
|
|
58
|
+
React.useEffect(() => {
|
|
59
|
+
if (prevOpenRef.current !== open) {
|
|
60
|
+
prevOpenRef.current = open;
|
|
61
|
+
afterOpenChange?.(open);
|
|
62
|
+
}
|
|
63
|
+
}, [open, afterOpenChange]);
|
|
64
|
+
const responsiveBoundsStyle = useMemo(() => {
|
|
65
|
+
if (!responsiveBounds) return {};
|
|
66
|
+
return {
|
|
67
|
+
width: "calc(100% - 160px)",
|
|
68
|
+
maxWidth: "1680px",
|
|
69
|
+
minWidth: "1280px",
|
|
70
|
+
height: "calc(100% - 48px)",
|
|
71
|
+
maxHeight: "900px",
|
|
72
|
+
minHeight: "640px"
|
|
73
|
+
};
|
|
74
|
+
}, [responsiveBounds]);
|
|
75
|
+
const mergedOkProps = {
|
|
76
|
+
loading: confirmLoading,
|
|
77
|
+
...okButtonProps
|
|
78
|
+
};
|
|
79
|
+
const renderFooter = () => {
|
|
80
|
+
if (footer === null) return null;
|
|
81
|
+
if (footer) return /* @__PURE__ */ jsx("div", {
|
|
82
|
+
className: "ald-modal-footer tw-flex tw-items-center tw-justify-end tw-gap-2 tw-border-t tw-border-solid tw-border-[var(--global-cool-grey-100)] tw-bg-[var(--alias-colors-bg-skeleton-subtler)] tw-px-6 tw-py-3",
|
|
83
|
+
children: footer
|
|
84
|
+
});
|
|
85
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
86
|
+
className: "ald-modal-footer tw-flex tw-justify-end tw-gap-2 tw-border-t tw-border-solid tw-border-[var(--border-default)] tw-px-6 tw-py-4",
|
|
87
|
+
children: [/* @__PURE__ */ jsx(Button_default, {
|
|
88
|
+
type: "secondary",
|
|
89
|
+
size: "middle",
|
|
90
|
+
...cancelButtonProps,
|
|
91
|
+
onClick: onCancel,
|
|
92
|
+
children: cancelText
|
|
93
|
+
}), /* @__PURE__ */ jsx(Button_default, {
|
|
94
|
+
type: okType,
|
|
95
|
+
size: "middle",
|
|
96
|
+
...mergedOkProps,
|
|
97
|
+
onClick: onOk,
|
|
98
|
+
children: okText
|
|
99
|
+
})]
|
|
100
|
+
});
|
|
101
|
+
};
|
|
102
|
+
return /* @__PURE__ */ jsx(DialogPrimitive.Root, {
|
|
103
|
+
open,
|
|
104
|
+
children: /* @__PURE__ */ jsxs(DialogPrimitive.Portal, { children: [/* @__PURE__ */ jsx(DialogPrimitive.Overlay, {
|
|
105
|
+
className: "ald-modal-mask tw-animate-in tw-fade-in-0 tw-fixed tw-inset-0 tw-bg-black/45",
|
|
106
|
+
style: { zIndex }
|
|
107
|
+
}), /* @__PURE__ */ jsxs(DialogPrimitive.Content, {
|
|
108
|
+
className: cn("ald-modal tw-fixed tw-flex tw-flex-col tw-overflow-hidden tw-bg-[var(--alias-colors-bg-skeleton-subtler)] tw-shadow-[var(--elevation-bottom-bottom-lg)]", fullscreen ? "ald-modal-fullscreen tw-inset-0 tw-size-full tw-rounded-none" : "tw-left-1/2 tw-top-1/2 tw--translate-x-1/2 tw--translate-y-1/2 tw-rounded-r-75", paddingLess && "ald-modal-padding-less", virtualScrollBar && "ald-modal-virtual-scroll-bar", hideHeaderBottomBorder && "ald-modal-hide-header-bottom-border", responsiveBounds && "ald-modal-responsive-bounds", className),
|
|
109
|
+
style: {
|
|
110
|
+
...fullscreen ? {} : {
|
|
111
|
+
width: responsiveBounds ? responsiveBoundsStyle.width : width || DEFAULT_WIDTH,
|
|
112
|
+
...responsiveBoundsStyle
|
|
113
|
+
},
|
|
114
|
+
zIndex: zIndex + 1,
|
|
115
|
+
...style
|
|
116
|
+
},
|
|
117
|
+
onEscapeKeyDown: (e) => {
|
|
118
|
+
if (keyboard) onCancel?.({});
|
|
119
|
+
else e.preventDefault();
|
|
120
|
+
},
|
|
121
|
+
onPointerDownOutside: (e) => {
|
|
122
|
+
if (maskClosable) onCancel?.({});
|
|
123
|
+
else e.preventDefault();
|
|
124
|
+
},
|
|
125
|
+
onInteractOutside: (e) => {
|
|
126
|
+
if (!maskClosable) e.preventDefault();
|
|
127
|
+
},
|
|
128
|
+
children: [
|
|
129
|
+
!fullscreen && /* @__PURE__ */ jsxs("div", {
|
|
130
|
+
className: cn("ald-modal-header tw-flex tw-items-start tw-justify-between tw-bg-[var(--alias-colors-bg-skeleton-subtler)] tw-px-6 tw-py-4", !hideHeaderBottomBorder && "tw-border-b tw-border-solid tw-border-[var(--global-cool-grey-100)]"),
|
|
131
|
+
children: [/* @__PURE__ */ jsx(DialogPrimitive.Title, {
|
|
132
|
+
asChild: true,
|
|
133
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
134
|
+
className: "tw-flex-1",
|
|
135
|
+
children: ModalTitle({
|
|
136
|
+
icon,
|
|
137
|
+
title,
|
|
138
|
+
subTitle
|
|
139
|
+
}, _modalType)
|
|
140
|
+
})
|
|
141
|
+
}), closable && /* @__PURE__ */ jsx(DialogPrimitive.Close, {
|
|
142
|
+
asChild: true,
|
|
143
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
144
|
+
onClick: onCancel,
|
|
145
|
+
children: closeIcon || /* @__PURE__ */ jsx(IconButton, {
|
|
146
|
+
icon: /* @__PURE__ */ jsx(Memo$2, { size: 20 }),
|
|
147
|
+
size: "middle"
|
|
148
|
+
})
|
|
149
|
+
})
|
|
150
|
+
})]
|
|
151
|
+
}),
|
|
152
|
+
fullscreen && /* @__PURE__ */ jsx(DialogPrimitive.Title, {
|
|
153
|
+
className: "tw-sr-only",
|
|
154
|
+
children: title
|
|
155
|
+
}),
|
|
156
|
+
/* @__PURE__ */ jsx("div", {
|
|
157
|
+
className: cn("ald-modal-body tw-flex-1 tw-text-sm tw-leading-5", fullscreen ? "tw-h-full tw-overflow-hidden tw-p-0" : "tw-min-h-[130px] tw-overflow-auto", !fullscreen && !responsiveBounds && "tw-max-h-[68vh]", !fullscreen && !paddingLess && "tw-p-6"),
|
|
158
|
+
style: bodyStyle,
|
|
159
|
+
children: virtualScrollBar ? /* @__PURE__ */ jsx(ScrollArea_default, {
|
|
160
|
+
className: "ald-modal-body-wrap",
|
|
161
|
+
innerClassName: "ald-modal-body-wrap-inner",
|
|
162
|
+
children
|
|
163
|
+
}) : children
|
|
164
|
+
}),
|
|
165
|
+
!fullscreen && renderFooter()
|
|
166
|
+
]
|
|
167
|
+
})] })
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
function createStaticModal(type, props) {
|
|
171
|
+
const container = document.createElement("div");
|
|
172
|
+
document.body.appendChild(container);
|
|
173
|
+
const root = createRoot(container);
|
|
174
|
+
let currentProps = { ...props };
|
|
175
|
+
const destroy = () => {
|
|
176
|
+
root.unmount();
|
|
177
|
+
container.remove();
|
|
178
|
+
const idx = destroyFns.indexOf(destroy);
|
|
179
|
+
if (idx >= 0) destroyFns.splice(idx, 1);
|
|
180
|
+
};
|
|
181
|
+
const update = (newProps) => {
|
|
182
|
+
currentProps = {
|
|
183
|
+
...currentProps,
|
|
184
|
+
...newProps
|
|
185
|
+
};
|
|
186
|
+
render(currentProps);
|
|
187
|
+
};
|
|
188
|
+
const isConfirm = type === "confirm";
|
|
189
|
+
const render = (p) => {
|
|
190
|
+
const handleOk = () => {
|
|
191
|
+
p.onOk?.();
|
|
192
|
+
destroy();
|
|
193
|
+
};
|
|
194
|
+
const handleCancel = () => {
|
|
195
|
+
p.onCancel?.();
|
|
196
|
+
destroy();
|
|
197
|
+
};
|
|
198
|
+
root.render(/* @__PURE__ */ jsx(OriginModal, {
|
|
199
|
+
open: true,
|
|
200
|
+
title: p.title,
|
|
201
|
+
subTitle: p.subTitle,
|
|
202
|
+
icon: p.icon || getIcon(type || "info"),
|
|
203
|
+
onOk: handleOk,
|
|
204
|
+
onCancel: handleCancel,
|
|
205
|
+
okText: p.okText,
|
|
206
|
+
cancelText: p.cancelText,
|
|
207
|
+
okButtonProps: p.okButtonProps,
|
|
208
|
+
cancelButtonProps: p.cancelButtonProps,
|
|
209
|
+
okType: p.okType || (isConfirm ? "dangerous" : "primary"),
|
|
210
|
+
width: p.width || DEFAULT_WIDTH,
|
|
211
|
+
className: cn("ald-modal", p.className),
|
|
212
|
+
closable: p.closable,
|
|
213
|
+
maskClosable: p.maskClosable,
|
|
214
|
+
_modalType: type,
|
|
215
|
+
footer: isConfirm ? void 0 : /* @__PURE__ */ jsx(Button_default, {
|
|
216
|
+
type: "primary",
|
|
217
|
+
size: "middle",
|
|
218
|
+
...p.okButtonProps || {},
|
|
219
|
+
onClick: handleOk,
|
|
220
|
+
children: p.okText || "OK"
|
|
221
|
+
}),
|
|
222
|
+
children: p.content
|
|
223
|
+
}));
|
|
224
|
+
};
|
|
225
|
+
destroyFns.push(destroy);
|
|
226
|
+
render(currentProps);
|
|
227
|
+
return {
|
|
228
|
+
destroy,
|
|
229
|
+
update
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
function useModal() {
|
|
233
|
+
const [modals, setModals] = useState([]);
|
|
234
|
+
const idCounter = useRef(0);
|
|
235
|
+
const removeModal = useCallback((id) => {
|
|
236
|
+
setModals((prev) => prev.map((m) => m.id === id ? {
|
|
237
|
+
...m,
|
|
238
|
+
open: false
|
|
239
|
+
} : m));
|
|
240
|
+
setTimeout(() => {
|
|
241
|
+
setModals((prev) => prev.filter((m) => m.id !== id));
|
|
242
|
+
}, 300);
|
|
243
|
+
}, []);
|
|
244
|
+
const updateModal = useCallback((id, newProps) => {
|
|
245
|
+
setModals((prev) => prev.map((m) => m.id === id ? {
|
|
246
|
+
...m,
|
|
247
|
+
props: {
|
|
248
|
+
...m.props,
|
|
249
|
+
...newProps
|
|
250
|
+
}
|
|
251
|
+
} : m));
|
|
252
|
+
}, []);
|
|
253
|
+
const openModal = useCallback((type, props) => {
|
|
254
|
+
const id = ++idCounter.current;
|
|
255
|
+
const instance = {
|
|
256
|
+
id,
|
|
257
|
+
type,
|
|
258
|
+
props,
|
|
259
|
+
open: true
|
|
260
|
+
};
|
|
261
|
+
setModals((prev) => [...prev, instance]);
|
|
262
|
+
return {
|
|
263
|
+
destroy: () => removeModal(id),
|
|
264
|
+
update: (newProps) => updateModal(id, newProps)
|
|
265
|
+
};
|
|
266
|
+
}, [removeModal, updateModal]);
|
|
267
|
+
return [useMemo(() => ({
|
|
268
|
+
info: (props) => openModal("info", props),
|
|
269
|
+
success: (props) => openModal("success", props),
|
|
270
|
+
error: (props) => openModal("error", props),
|
|
271
|
+
warning: (props) => openModal("warning", props),
|
|
272
|
+
confirm: (props) => openModal("confirm", {
|
|
273
|
+
...props,
|
|
274
|
+
type: props.type || "confirm"
|
|
275
|
+
})
|
|
276
|
+
}), [openModal]), /* @__PURE__ */ jsx(Fragment, { children: modals.map((m) => {
|
|
277
|
+
const isConfirmType = m.type === "confirm";
|
|
278
|
+
const handleOk = () => {
|
|
279
|
+
m.props.onOk?.();
|
|
280
|
+
removeModal(m.id);
|
|
281
|
+
};
|
|
282
|
+
const handleCancel = () => {
|
|
283
|
+
m.props.onCancel?.();
|
|
284
|
+
removeModal(m.id);
|
|
285
|
+
};
|
|
286
|
+
return /* @__PURE__ */ jsx(OriginModal, {
|
|
287
|
+
open: m.open,
|
|
288
|
+
title: m.props.title,
|
|
289
|
+
subTitle: m.props.subTitle,
|
|
290
|
+
icon: m.props.icon || getIcon(m.type || "info"),
|
|
291
|
+
onOk: handleOk,
|
|
292
|
+
onCancel: handleCancel,
|
|
293
|
+
okText: m.props.okText,
|
|
294
|
+
cancelText: m.props.cancelText,
|
|
295
|
+
okButtonProps: m.props.okButtonProps,
|
|
296
|
+
cancelButtonProps: m.props.cancelButtonProps,
|
|
297
|
+
okType: m.props.okType || (isConfirmType ? "dangerous" : "primary"),
|
|
298
|
+
width: m.props.width || DEFAULT_WIDTH,
|
|
299
|
+
className: cn("ald-modal", m.props.className),
|
|
300
|
+
closable: m.props.closable,
|
|
301
|
+
maskClosable: m.props.maskClosable,
|
|
302
|
+
_modalType: m.type,
|
|
303
|
+
footer: isConfirmType ? void 0 : /* @__PURE__ */ jsx(Button_default, {
|
|
304
|
+
type: "primary",
|
|
305
|
+
size: "middle",
|
|
306
|
+
...m.props.okButtonProps || {},
|
|
307
|
+
onClick: handleOk,
|
|
308
|
+
children: m.props.okText || "OK"
|
|
309
|
+
}),
|
|
310
|
+
children: m.props.content
|
|
311
|
+
}, m.id);
|
|
312
|
+
}) })];
|
|
91
313
|
}
|
|
92
|
-
var OriginModal = function OriginModal(props) {
|
|
93
|
-
var _useContext = useContext(LocaleContext),
|
|
94
|
-
locale = _useContext.locale;
|
|
95
|
-
var t = getTranslator(locale);
|
|
96
|
-
var className = props.className,
|
|
97
|
-
children = props.children,
|
|
98
|
-
okType = props.okType,
|
|
99
|
-
width = props.width,
|
|
100
|
-
closeIcon = props.closeIcon,
|
|
101
|
-
subTitle = props.subTitle,
|
|
102
|
-
_props$okButtonProps = props.okButtonProps,
|
|
103
|
-
okButtonProps = _props$okButtonProps === void 0 ? {} : _props$okButtonProps,
|
|
104
|
-
_props$cancelButtonPr = props.cancelButtonProps,
|
|
105
|
-
cancelButtonProps = _props$cancelButtonPr === void 0 ? {} : _props$cancelButtonPr,
|
|
106
|
-
_props$okText = props.okText,
|
|
107
|
-
okText = _props$okText === void 0 ? t.Modal.sure : _props$okText,
|
|
108
|
-
_props$cancelText = props.cancelText,
|
|
109
|
-
cancelText = _props$cancelText === void 0 ? t.Modal.cancel : _props$cancelText,
|
|
110
|
-
icon = props.icon,
|
|
111
|
-
title = props.title,
|
|
112
|
-
paddingLess = props.paddingLess,
|
|
113
|
-
responsiveBounds = props.responsiveBounds,
|
|
114
|
-
hideHeaderBottomBorder = props.hideHeaderBottomBorder,
|
|
115
|
-
virtualScrollBar = props.virtualScrollBar,
|
|
116
|
-
style = props.style,
|
|
117
|
-
_props$maskClosable = props.maskClosable,
|
|
118
|
-
maskClosable = _props$maskClosable === void 0 ? false : _props$maskClosable,
|
|
119
|
-
fullscreen = props.fullscreen,
|
|
120
|
-
restProps = _objectWithoutProperties(props, _excluded2);
|
|
121
|
-
var responsiveBoundsStyle = useMemo(function () {
|
|
122
|
-
if (!responsiveBounds) {
|
|
123
|
-
return {};
|
|
124
|
-
}
|
|
125
|
-
var defaultBounds = {
|
|
126
|
-
minWidth: 1280,
|
|
127
|
-
maxWidth: 1680,
|
|
128
|
-
marginX: 80,
|
|
129
|
-
marginY: 24,
|
|
130
|
-
minHeight: 640,
|
|
131
|
-
maxHeight: 900
|
|
132
|
-
};
|
|
133
|
-
return {
|
|
134
|
-
width: "calc(100% - ".concat(defaultBounds.marginX * 2, "px)"),
|
|
135
|
-
maxWidth: "".concat(defaultBounds.maxWidth, "px"),
|
|
136
|
-
minWidth: "".concat(defaultBounds.minWidth, "px"),
|
|
137
|
-
height: "calc(100% - ".concat(defaultBounds.marginY * 2, "px)"),
|
|
138
|
-
maxHeight: "".concat(defaultBounds.maxHeight, "px"),
|
|
139
|
-
minHeight: "".concat(defaultBounds.minHeight, "px"),
|
|
140
|
-
padding: 0
|
|
141
|
-
};
|
|
142
|
-
}, [responsiveBounds]);
|
|
143
|
-
var confirmLoading = restProps.confirmLoading;
|
|
144
|
-
var mergedOkButtonProps = _objectSpread({
|
|
145
|
-
loading: confirmLoading
|
|
146
|
-
}, okButtonProps);
|
|
147
|
-
return /*#__PURE__*/React.createElement(AntdModal, _extends({}, restProps, {
|
|
148
|
-
style: _objectSpread(_objectSpread({}, style), responsiveBoundsStyle),
|
|
149
|
-
width: responsiveBounds ? responsiveBoundsStyle.width : width || DEFAULT_WIDTH,
|
|
150
|
-
title: ModalTitle({
|
|
151
|
-
icon: icon,
|
|
152
|
-
title: title,
|
|
153
|
-
subTitle: subTitle
|
|
154
|
-
}),
|
|
155
|
-
className: classNames('ald-modal', className, {
|
|
156
|
-
'ald-modal-padding-less': paddingLess,
|
|
157
|
-
'ald-modal-virtual-scroll-bar': virtualScrollBar,
|
|
158
|
-
'ald-modal-hide-header-bottom-border': hideHeaderBottomBorder,
|
|
159
|
-
'ald-modal-responsive-bounds': responsiveBounds,
|
|
160
|
-
'ald-modal-fullscreen': fullscreen
|
|
161
|
-
}),
|
|
162
|
-
okButtonProps: getButtonProps(mergedOkButtonProps, 'primary', okType),
|
|
163
|
-
wrapClassName: classNames(props.wrapClassName, {
|
|
164
|
-
'ald-modal-responsive-bounds-wrap': responsiveBounds
|
|
165
|
-
}),
|
|
166
|
-
cancelButtonProps: getButtonProps(cancelButtonProps, 'secondary'),
|
|
167
|
-
okText: okText,
|
|
168
|
-
cancelText: cancelText,
|
|
169
|
-
maskClosable: maskClosable,
|
|
170
|
-
closeIcon: closeIcon || /*#__PURE__*/React.createElement(IconButton, {
|
|
171
|
-
icon: /*#__PURE__*/React.createElement(CloseLLine, {
|
|
172
|
-
size: 20
|
|
173
|
-
}),
|
|
174
|
-
size: "middle"
|
|
175
|
-
})
|
|
176
|
-
}), virtualScrollBar ? /*#__PURE__*/React.createElement(ScrollArea, {
|
|
177
|
-
className: 'ald-modal-body-wrap',
|
|
178
|
-
innerClassName: "ald-modal-body-wrap-inner"
|
|
179
|
-
}, children) : children);
|
|
180
|
-
};
|
|
181
|
-
OriginModal.useModal = useModal;
|
|
182
314
|
var Modal = OriginModal;
|
|
183
|
-
Modal.info =
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
return AntdModal.info(_objectSpread({
|
|
197
|
-
okButtonProps: getButtonProps(okButtonProps, 'primary', okType),
|
|
198
|
-
cancelButtonProps: getButtonProps(cancelButtonProps, 'secondary', okType),
|
|
199
|
-
width: width || DEFAULT_WIDTH,
|
|
200
|
-
className: classNames('ald-modal', className),
|
|
201
|
-
title: ModalTitle({
|
|
202
|
-
icon: /*#__PURE__*/React.createElement(InformationCircleLightLine, {
|
|
203
|
-
size: 24,
|
|
204
|
-
color: 'var(--interaction-default-normal)'
|
|
205
|
-
}),
|
|
206
|
-
title: title,
|
|
207
|
-
subTitle: subTitle
|
|
208
|
-
}, 'info'),
|
|
209
|
-
okText: okText,
|
|
210
|
-
cancelText: cancelText
|
|
211
|
-
}, restProps));
|
|
212
|
-
};
|
|
213
|
-
Modal.success = function successFn(props) {
|
|
214
|
-
var _props$okButtonProps3 = props.okButtonProps,
|
|
215
|
-
okButtonProps = _props$okButtonProps3 === void 0 ? {} : _props$okButtonProps3,
|
|
216
|
-
_props$cancelButtonPr3 = props.cancelButtonProps,
|
|
217
|
-
cancelButtonProps = _props$cancelButtonPr3 === void 0 ? {} : _props$cancelButtonPr3,
|
|
218
|
-
okType = props.okType,
|
|
219
|
-
width = props.width,
|
|
220
|
-
title = props.title,
|
|
221
|
-
subTitle = props.subTitle,
|
|
222
|
-
okText = props.okText,
|
|
223
|
-
cancelText = props.cancelText,
|
|
224
|
-
className = props.className,
|
|
225
|
-
restProps = _objectWithoutProperties(props, _excluded4);
|
|
226
|
-
return AntdModal.success(_objectSpread({
|
|
227
|
-
okButtonProps: getButtonProps(okButtonProps, 'primary', okType),
|
|
228
|
-
cancelButtonProps: getButtonProps(cancelButtonProps, 'secondary', okType),
|
|
229
|
-
width: width || DEFAULT_WIDTH,
|
|
230
|
-
className: classNames('ald-modal', className),
|
|
231
|
-
title: ModalTitle({
|
|
232
|
-
icon: /*#__PURE__*/React.createElement(CheckCircleLightLine, {
|
|
233
|
-
fill: "var(--content-inverted-primary)",
|
|
234
|
-
color: "var(--background-positive-strong)",
|
|
235
|
-
size: 24
|
|
236
|
-
}),
|
|
237
|
-
title: title,
|
|
238
|
-
subTitle: subTitle
|
|
239
|
-
}, 'success'),
|
|
240
|
-
okText: okText,
|
|
241
|
-
cancelText: cancelText
|
|
242
|
-
}, restProps));
|
|
243
|
-
};
|
|
244
|
-
Modal.error = function errorFn(props) {
|
|
245
|
-
var _props$okButtonProps4 = props.okButtonProps,
|
|
246
|
-
okButtonProps = _props$okButtonProps4 === void 0 ? {} : _props$okButtonProps4,
|
|
247
|
-
_props$cancelButtonPr4 = props.cancelButtonProps,
|
|
248
|
-
cancelButtonProps = _props$cancelButtonPr4 === void 0 ? {} : _props$cancelButtonPr4,
|
|
249
|
-
okType = props.okType,
|
|
250
|
-
width = props.width,
|
|
251
|
-
title = props.title,
|
|
252
|
-
subTitle = props.subTitle,
|
|
253
|
-
okText = props.okText,
|
|
254
|
-
cancelText = props.cancelText,
|
|
255
|
-
className = props.className,
|
|
256
|
-
restProps = _objectWithoutProperties(props, _excluded5);
|
|
257
|
-
return AntdModal.error(_objectSpread({
|
|
258
|
-
okButtonProps: getButtonProps(okButtonProps, 'primary', okType),
|
|
259
|
-
cancelButtonProps: getButtonProps(cancelButtonProps, 'secondary', okType),
|
|
260
|
-
width: width || DEFAULT_WIDTH,
|
|
261
|
-
className: classNames('ald-modal', className),
|
|
262
|
-
title: ModalTitle({
|
|
263
|
-
icon: /*#__PURE__*/React.createElement(AttentionTriangleLightLine, {
|
|
264
|
-
color: "var(--background-negative-strong)",
|
|
265
|
-
fill: 'var(--content-inverted-primary)',
|
|
266
|
-
size: 24
|
|
267
|
-
}),
|
|
268
|
-
title: title,
|
|
269
|
-
subTitle: subTitle
|
|
270
|
-
}, 'error'),
|
|
271
|
-
okText: okText,
|
|
272
|
-
cancelText: cancelText
|
|
273
|
-
}, restProps));
|
|
274
|
-
};
|
|
275
|
-
Modal.warning = function modalWarn(props) {
|
|
276
|
-
var _props$okButtonProps5 = props.okButtonProps,
|
|
277
|
-
okButtonProps = _props$okButtonProps5 === void 0 ? {} : _props$okButtonProps5,
|
|
278
|
-
_props$cancelButtonPr5 = props.cancelButtonProps,
|
|
279
|
-
cancelButtonProps = _props$cancelButtonPr5 === void 0 ? {} : _props$cancelButtonPr5,
|
|
280
|
-
okType = props.okType,
|
|
281
|
-
width = props.width,
|
|
282
|
-
title = props.title,
|
|
283
|
-
subTitle = props.subTitle,
|
|
284
|
-
okText = props.okText,
|
|
285
|
-
cancelText = props.cancelText,
|
|
286
|
-
className = props.className,
|
|
287
|
-
restProps = _objectWithoutProperties(props, _excluded6);
|
|
288
|
-
return AntdModal.warning(_objectSpread({
|
|
289
|
-
okButtonProps: getButtonProps(okButtonProps, 'primary', okType),
|
|
290
|
-
cancelButtonProps: getButtonProps(cancelButtonProps, 'secondary', okType),
|
|
291
|
-
width: width || DEFAULT_WIDTH,
|
|
292
|
-
// className: classNames('ald-modal-warning', className),
|
|
293
|
-
className: classNames('ald-modal ald-modal-warning', className),
|
|
294
|
-
title: ModalTitle({
|
|
295
|
-
icon: /*#__PURE__*/React.createElement(AttentionTriangleLightLine, {
|
|
296
|
-
color: "var(--background-warning-strong)",
|
|
297
|
-
size: 24
|
|
298
|
-
}),
|
|
299
|
-
title: title,
|
|
300
|
-
subTitle: subTitle
|
|
301
|
-
}, 'warning'),
|
|
302
|
-
okText: okText,
|
|
303
|
-
cancelText: cancelText
|
|
304
|
-
}, restProps));
|
|
315
|
+
Modal.info = (props) => createStaticModal("info", props);
|
|
316
|
+
Modal.success = (props) => createStaticModal("success", props);
|
|
317
|
+
Modal.error = (props) => createStaticModal("error", props);
|
|
318
|
+
Modal.warning = (props) => createStaticModal("warning", props);
|
|
319
|
+
Modal.confirm = (props) => createStaticModal("confirm", {
|
|
320
|
+
...props,
|
|
321
|
+
type: props.type || "confirm"
|
|
322
|
+
});
|
|
323
|
+
Modal.destroyAll = () => {
|
|
324
|
+
while (destroyFns.length) {
|
|
325
|
+
const close = destroyFns.pop();
|
|
326
|
+
if (close) close();
|
|
327
|
+
}
|
|
305
328
|
};
|
|
306
|
-
Modal.
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
width = props.width,
|
|
313
|
-
title = props.title,
|
|
314
|
-
subTitle = props.subTitle,
|
|
315
|
-
className = props.className,
|
|
316
|
-
okText = props.okText,
|
|
317
|
-
cancelText = props.cancelText,
|
|
318
|
-
_props$type = props.type,
|
|
319
|
-
type = _props$type === void 0 ? 'confirm' : _props$type,
|
|
320
|
-
restProps = _objectWithoutProperties(props, _excluded7);
|
|
321
|
-
return AntdModal.confirm(_objectSpread({
|
|
322
|
-
okButtonProps: getButtonProps(okButtonProps, 'primary', okType),
|
|
323
|
-
cancelButtonProps: getButtonProps(cancelButtonProps, 'secondary', okType),
|
|
324
|
-
width: width || DEFAULT_WIDTH,
|
|
325
|
-
className: classNames('ald-modal', className),
|
|
326
|
-
title: ModalTitle({
|
|
327
|
-
icon: getIcon(type),
|
|
328
|
-
title: title,
|
|
329
|
-
subTitle: subTitle
|
|
330
|
-
}, type),
|
|
331
|
-
okText: okText,
|
|
332
|
-
cancelText: cancelText
|
|
333
|
-
}, restProps));
|
|
334
|
-
};
|
|
335
|
-
Modal.destroyAll = function destroyAllFn() {
|
|
336
|
-
while (destroyFns.length) {
|
|
337
|
-
var close = destroyFns.pop();
|
|
338
|
-
if (close) {
|
|
339
|
-
close();
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
};
|
|
343
|
-
Modal.config = modalGlobalConfig;
|
|
344
|
-
export default Modal;
|
|
329
|
+
Modal.useModal = useModal;
|
|
330
|
+
Modal.config = () => {};
|
|
331
|
+
//#endregion
|
|
332
|
+
export { Modal as default };
|
|
333
|
+
|
|
334
|
+
//# sourceMappingURL=index.js.map
|