@aloudata/aloudata-design 3.1.6 → 3.2.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +43 -1
- package/dist/AMenu/index.d.ts +1 -1
- package/dist/AMenu/index.js +71 -41
- package/dist/AMenu/index.js.map +1 -1
- package/dist/AMenu.js +2 -0
- package/dist/AProgress/index.d.ts +1 -1
- package/dist/AProgress/index.js +201 -68
- package/dist/AProgress/index.js.map +1 -1
- package/dist/AProgress.js +2 -0
- package/dist/Alert/index.d.ts +1 -1
- package/dist/Alert/index.js +108 -41
- package/dist/Alert/index.js.map +1 -1
- package/dist/Alert.js +2 -0
- package/dist/App/index.js +67 -9
- package/dist/App/index.js.map +1 -1
- package/dist/App.js +2 -0
- package/dist/Avatar/component/Avatar/helper.d.ts +2 -2
- package/dist/Avatar/component/Avatar/helper.js.map +1 -1
- package/dist/Avatar/component/Avatar/index.d.ts +1 -1
- package/dist/Avatar/component/Avatar/index.js +164 -59
- package/dist/Avatar/component/Avatar/index.js.map +1 -1
- package/dist/Avatar/component/Avatar/type.d.ts +0 -1
- package/dist/Avatar/component/Avatar/type.js.map +1 -1
- package/dist/Avatar/component/Avatar.js +2 -0
- package/dist/Avatar/index.d.ts +1 -1
- package/dist/Avatar/index.js +103 -30
- package/dist/Avatar/index.js.map +1 -1
- package/dist/Avatar.js +2 -0
- package/dist/Badge/index.d.ts +1 -1
- package/dist/Badge/index.js +153 -34
- package/dist/Badge/index.js.map +1 -1
- package/dist/Badge.js +2 -0
- package/dist/Breadcrumb/index.d.ts +1 -1
- package/dist/Breadcrumb/index.js +81 -28
- package/dist/Breadcrumb/index.js.map +1 -1
- package/dist/Breadcrumb.js +2 -0
- package/dist/Button/index.d.ts +3 -2
- package/dist/Button/index.js +238 -57
- package/dist/Button/index.js.map +1 -1
- package/dist/Button.js +2 -0
- package/dist/Card/index.d.ts +3 -3
- package/dist/Card/index.js +180 -54
- package/dist/Card/index.js.map +1 -1
- package/dist/Card.js +2 -0
- package/dist/Carousel/index.js +232 -92
- package/dist/Carousel/index.js.map +1 -1
- package/dist/Carousel.js +2 -0
- package/dist/Checkbox/component/CheckboxGroup/index.d.ts +1 -1
- package/dist/Checkbox/component/CheckboxGroup.js +2 -0
- package/dist/Checkbox/index.d.ts +3 -2
- package/dist/Checkbox/index.js +311 -107
- package/dist/Checkbox/index.js.map +1 -1
- package/dist/Checkbox/type.d.ts +0 -1
- package/dist/Checkbox.js +2 -0
- package/dist/Col/index.d.ts +1 -1
- package/dist/Col/index.js +106 -43
- package/dist/Col/index.js.map +1 -1
- package/dist/Col.js +2 -0
- package/dist/Collapse/index.d.ts +1 -1
- package/dist/Collapse/index.js +439 -159
- package/dist/Collapse/index.js.map +1 -1
- package/dist/Collapse.js +2 -0
- package/dist/ColorPicker/ComplexColorPicker/ColorAlphaInput.d.ts +1 -1
- package/dist/ColorPicker/ComplexColorPicker/ColorAlphaInput.js +68 -19
- package/dist/ColorPicker/ComplexColorPicker/ColorAlphaInput.js.map +1 -1
- package/dist/ColorPicker/ComplexColorPicker/ColorHexInput.d.ts +1 -1
- package/dist/ColorPicker/ComplexColorPicker/ColorHexInput.js +52 -17
- package/dist/ColorPicker/ComplexColorPicker/ColorHexInput.js.map +1 -1
- package/dist/ColorPicker/ComplexColorPicker/ColorHsbInput.d.ts +1 -1
- package/dist/ColorPicker/ComplexColorPicker/ColorHsbInput.js +159 -44
- package/dist/ColorPicker/ComplexColorPicker/ColorHsbInput.js.map +1 -1
- package/dist/ColorPicker/ComplexColorPicker/ColorInput.d.ts +2 -2
- package/dist/ColorPicker/ComplexColorPicker/ColorInput.js +130 -48
- package/dist/ColorPicker/ComplexColorPicker/ColorInput.js.map +1 -1
- package/dist/ColorPicker/ComplexColorPicker/ColorRgbInput.d.ts +1 -1
- package/dist/ColorPicker/ComplexColorPicker/ColorRgbInput.js +147 -41
- package/dist/ColorPicker/ComplexColorPicker/ColorRgbInput.js.map +1 -1
- package/dist/ColorPicker/ComplexColorPicker/ColorSteppers.d.ts +1 -1
- package/dist/ColorPicker/ComplexColorPicker/ColorSteppers.js +56 -14
- package/dist/ColorPicker/ComplexColorPicker/ColorSteppers.js.map +1 -1
- package/dist/ColorPicker/ComplexColorPicker/index.d.ts +3 -2
- package/dist/ColorPicker/ComplexColorPicker/index.js +113 -50
- package/dist/ColorPicker/ComplexColorPicker/index.js.map +1 -1
- package/dist/ColorPicker/ComplexColorPicker.js +2 -0
- package/dist/ColorPicker/color.js.map +1 -1
- package/dist/ColorPicker/constant.js.map +1 -1
- package/dist/ColorPicker/hooks/useColor.d.ts +2 -2
- package/dist/ColorPicker/hooks/useColor.js +37 -10
- package/dist/ColorPicker/hooks/useColor.js.map +1 -1
- package/dist/ColorPicker/index.d.ts +1 -1
- package/dist/ColorPicker/index.js +341 -117
- package/dist/ColorPicker/index.js.map +1 -1
- package/dist/ColorPicker/interface.d.ts +3 -3
- package/dist/ColorPicker/interface.js.map +1 -1
- package/dist/ColorPicker/util.js.map +1 -1
- package/dist/ColorPicker.js +2 -0
- package/dist/ConfigProvider/DisabledContext.d.ts +0 -1
- package/dist/ConfigProvider/DisabledContext.js.map +1 -1
- package/dist/ConfigProvider/getUserList.d.ts +48 -1
- package/dist/ConfigProvider/getUserList.js +1 -0
- package/dist/ConfigProvider/getUserList.js.map +1 -1
- package/dist/ConfigProvider/hooks/useGetUserList.d.ts +12 -5
- package/dist/ConfigProvider/hooks/useGetUserList.js +26 -7
- package/dist/ConfigProvider/hooks/useGetUserList.js.map +1 -1
- package/dist/ConfigProvider/index.d.ts +9 -5
- package/dist/ConfigProvider/index.js +101 -33
- package/dist/ConfigProvider/index.js.map +1 -1
- package/dist/ConfigProvider/sizeContext.js +16 -4
- package/dist/ConfigProvider/sizeContext.js.map +1 -1
- package/dist/ConfigProvider.js +2 -0
- package/dist/DataPreviewTable/components/Body/Cell.d.ts +2 -2
- package/dist/DataPreviewTable/components/Body/Cell.js +95 -32
- package/dist/DataPreviewTable/components/Body/Cell.js.map +1 -1
- package/dist/DataPreviewTable/components/Body/Error.d.ts +1 -1
- package/dist/DataPreviewTable/components/Body/Error.js.map +1 -1
- package/dist/DataPreviewTable/components/Body/index.d.ts +2 -2
- package/dist/DataPreviewTable/components/Body/index.js +76 -40
- package/dist/DataPreviewTable/components/Body/index.js.map +1 -1
- package/dist/DataPreviewTable/components/Body.js +2 -0
- package/dist/DataPreviewTable/components/DragBar/Mask.d.ts +2 -1
- package/dist/DataPreviewTable/components/DragBar/Mask.js +43 -22
- package/dist/DataPreviewTable/components/DragBar/Mask.js.map +1 -1
- package/dist/DataPreviewTable/components/DragBar/index.d.ts +1 -1
- package/dist/DataPreviewTable/components/DragBar/index.js +79 -29
- package/dist/DataPreviewTable/components/DragBar/index.js.map +1 -1
- package/dist/DataPreviewTable/components/DragBar.js +2 -0
- package/dist/DataPreviewTable/components/Header/index.d.ts +3 -2
- package/dist/DataPreviewTable/components/Header/index.js +60 -12
- package/dist/DataPreviewTable/components/Header/index.js.map +1 -1
- package/dist/DataPreviewTable/components/Header.js +2 -0
- package/dist/DataPreviewTable/constant.js.map +1 -1
- package/dist/DataPreviewTable/hooks/useDirection.d.ts +2 -2
- package/dist/DataPreviewTable/hooks/useDirection.js +253 -148
- package/dist/DataPreviewTable/hooks/useDirection.js.map +1 -1
- package/dist/DataPreviewTable/index.d.ts +1 -1
- package/dist/DataPreviewTable/index.js +3 -3
- package/dist/DataPreviewTable/index.js.map +1 -1
- package/dist/DataPreviewTable/interface.js.map +1 -1
- package/dist/DataPreviewTable/utils/findRange.js.map +1 -1
- package/dist/DataPreviewTable/utils/getColumnRange.d.ts +2 -2
- package/dist/DataPreviewTable/utils/getColumnRange.js.map +1 -1
- package/dist/DataPreviewTable/utils/getRowRange.d.ts +2 -2
- package/dist/DataPreviewTable/utils/getRowRange.js.map +1 -1
- package/dist/DataPreviewTable/utils/getTableLayout.d.ts +1 -1
- package/dist/DataPreviewTable/utils/getTableLayout.js.map +1 -1
- package/dist/DataPreviewTable.js +2 -0
- package/dist/DatePicker/index.d.ts +4 -3
- package/dist/DatePicker/index.js +350 -86
- package/dist/DatePicker/index.js.map +1 -1
- package/dist/DatePicker.js +2 -0
- package/dist/Divider/index.d.ts +2 -1
- package/dist/Divider/index.js +44 -8
- package/dist/Divider/index.js.map +1 -1
- package/dist/Divider.js +2 -0
- package/dist/DoubleCircleIcon/index.d.ts +2 -2
- package/dist/DoubleCircleIcon.js +2 -0
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/Drawer/index.js +336 -122
- package/dist/Drawer/index.js.map +1 -1
- package/dist/Drawer.js +2 -0
- package/dist/Dropdown/index.d.ts +9 -4
- package/dist/Dropdown/index.js +53 -40
- package/dist/Dropdown/index.js.map +1 -1
- package/dist/Dropdown.js +2 -0
- package/dist/Empty/image/Data.d.ts +2 -1
- package/dist/Empty/image/Data.js +297 -234
- package/dist/Empty/image/Data.js.map +1 -1
- package/dist/Empty/image/Search.d.ts +2 -1
- package/dist/Empty/image/Search.js +14 -7
- package/dist/Empty/image/Search.js.map +1 -1
- package/dist/Empty/image/SearchSmall.d.ts +2 -1
- package/dist/Empty/image/SearchSmall.js +35 -23
- package/dist/Empty/image/SearchSmall.js.map +1 -1
- package/dist/Empty/image/User.d.ts +2 -1
- package/dist/Empty/image/User.js +277 -224
- package/dist/Empty/image/User.js.map +1 -1
- package/dist/Empty/image/WorkBook.d.ts +2 -1
- package/dist/Empty/image/WorkBook.js +254 -206
- package/dist/Empty/image/WorkBook.js.map +1 -1
- package/dist/Empty/index.js.map +1 -1
- package/dist/Empty.js +2 -0
- package/dist/Form/FormItemContext.d.ts +0 -1
- package/dist/Form/FormItemContext.js.map +1 -1
- package/dist/Form/hooks/useFormItemStatus.d.ts +1 -1
- package/dist/Form/index.d.ts +35 -19
- package/dist/Form/index.js +635 -186
- package/dist/Form/index.js.map +1 -1
- package/dist/Form.js +2 -0
- package/dist/HighlightText/index.d.ts +1 -1
- package/dist/HighlightText/index.js +83 -13
- package/dist/HighlightText/index.js.map +1 -1
- package/dist/HighlightText.js +2 -0
- package/dist/Icon/components/AlertTriangleDuotone.d.ts +1 -1
- package/dist/Icon/components/AlertTriangleDuotone.js +81 -20
- package/dist/Icon/components/AlertTriangleDuotone.js.map +1 -1
- package/dist/Icon/components/AlertTriangleLine.d.ts +1 -1
- package/dist/Icon/components/AlertTriangleLine.js +81 -20
- package/dist/Icon/components/AlertTriangleLine.js.map +1 -1
- package/dist/Icon/components/ArrowDownFill.d.ts +1 -1
- package/dist/Icon/components/ArrowDownFill.js +81 -20
- package/dist/Icon/components/ArrowDownFill.js.map +1 -1
- package/dist/Icon/components/ArrowDownLightLine.d.ts +1 -1
- package/dist/Icon/components/ArrowDownLightLine.js +81 -20
- package/dist/Icon/components/ArrowDownLightLine.js.map +1 -1
- package/dist/Icon/components/ArrowDownRightFill.d.ts +1 -1
- package/dist/Icon/components/ArrowDownRightFill.js +81 -20
- package/dist/Icon/components/ArrowDownRightFill.js.map +1 -1
- package/dist/Icon/components/ArrowRightLightLine.d.ts +1 -1
- package/dist/Icon/components/ArrowRightLightLine.js +81 -20
- package/dist/Icon/components/ArrowRightLightLine.js.map +1 -1
- package/dist/Icon/components/AttentionCircleFill.d.ts +1 -1
- package/dist/Icon/components/AttentionCircleFill.js +81 -20
- package/dist/Icon/components/AttentionCircleFill.js.map +1 -1
- package/dist/Icon/components/AttentionTriangleFill.d.ts +1 -1
- package/dist/Icon/components/AttentionTriangleFill.js +81 -20
- package/dist/Icon/components/AttentionTriangleFill.js.map +1 -1
- package/dist/Icon/components/AttentionTriangleLightLine.d.ts +1 -1
- package/dist/Icon/components/AttentionTriangleLightLine.js +81 -20
- package/dist/Icon/components/AttentionTriangleLightLine.js.map +1 -1
- package/dist/Icon/components/CancelCircleDuotone.d.ts +1 -1
- package/dist/Icon/components/CancelCircleDuotone.js +92 -23
- package/dist/Icon/components/CancelCircleDuotone.js.map +1 -1
- package/dist/Icon/components/CancelledCircleFill.d.ts +1 -1
- package/dist/Icon/components/CancelledCircleFill.js +81 -20
- package/dist/Icon/components/CancelledCircleFill.js.map +1 -1
- package/dist/Icon/components/CheckCircleDuotone.d.ts +1 -1
- package/dist/Icon/components/CheckCircleDuotone.js +92 -23
- package/dist/Icon/components/CheckCircleDuotone.js.map +1 -1
- package/dist/Icon/components/CheckCircleFill.d.ts +1 -1
- package/dist/Icon/components/CheckCircleFill.js +81 -20
- package/dist/Icon/components/CheckCircleFill.js.map +1 -1
- package/dist/Icon/components/CheckCircleLightLine.d.ts +1 -1
- package/dist/Icon/components/CheckCircleLightLine.js +97 -25
- package/dist/Icon/components/CheckCircleLightLine.js.map +1 -1
- package/dist/Icon/components/CheckLightLine.d.ts +1 -1
- package/dist/Icon/components/CheckLightLine.js +81 -20
- package/dist/Icon/components/CheckLightLine.js.map +1 -1
- package/dist/Icon/components/ChevronDownLine.d.ts +1 -1
- package/dist/Icon/components/ChevronDownLine.js +81 -20
- package/dist/Icon/components/ChevronDownLine.js.map +1 -1
- package/dist/Icon/components/ChevronLeftLine.d.ts +1 -1
- package/dist/Icon/components/ChevronLeftLine.js +81 -20
- package/dist/Icon/components/ChevronLeftLine.js.map +1 -1
- package/dist/Icon/components/ChevronRightLine.d.ts +1 -1
- package/dist/Icon/components/ChevronRightLine.js +81 -20
- package/dist/Icon/components/ChevronRightLine.js.map +1 -1
- package/dist/Icon/components/CircleLightLine.d.ts +1 -1
- package/dist/Icon/components/CircleLightLine.js +97 -25
- package/dist/Icon/components/CircleLightLine.js.map +1 -1
- package/dist/Icon/components/CloseCircleFill.d.ts +1 -1
- package/dist/Icon/components/CloseCircleFill.js +81 -20
- package/dist/Icon/components/CloseCircleFill.js.map +1 -1
- package/dist/Icon/components/CloseCircleLightLine.d.ts +1 -1
- package/dist/Icon/components/CloseCircleLightLine.js +81 -20
- package/dist/Icon/components/CloseCircleLightLine.js.map +1 -1
- package/dist/Icon/components/CloseCircleRightFill.d.ts +1 -1
- package/dist/Icon/components/CloseCircleRightFill.js +81 -20
- package/dist/Icon/components/CloseCircleRightFill.js.map +1 -1
- package/dist/Icon/components/CloseLLine.d.ts +1 -1
- package/dist/Icon/components/CloseLLine.js +81 -20
- package/dist/Icon/components/CloseLLine.js.map +1 -1
- package/dist/Icon/components/CloseLightLine.d.ts +1 -1
- package/dist/Icon/components/CloseLightLine.js +81 -20
- package/dist/Icon/components/CloseLightLine.js.map +1 -1
- package/dist/Icon/components/CloseMLine.d.ts +1 -1
- package/dist/Icon/components/CloseMLine.js +81 -20
- package/dist/Icon/components/CloseMLine.js.map +1 -1
- package/dist/Icon/components/DangerFill.d.ts +1 -1
- package/dist/Icon/components/DangerFill.js +81 -20
- package/dist/Icon/components/DangerFill.js.map +1 -1
- package/dist/Icon/components/DragLightLine.d.ts +1 -1
- package/dist/Icon/components/DragLightLine.js +81 -20
- package/dist/Icon/components/DragLightLine.js.map +1 -1
- package/dist/Icon/components/DragLine.d.ts +1 -1
- package/dist/Icon/components/DragLine.js +81 -20
- package/dist/Icon/components/DragLine.js.map +1 -1
- package/dist/Icon/components/Ellipsis.d.ts +1 -1
- package/dist/Icon/components/Ellipsis.js +81 -20
- package/dist/Icon/components/Ellipsis.js.map +1 -1
- package/dist/Icon/components/EyeOffLine.d.ts +1 -1
- package/dist/Icon/components/EyeOffLine.js +81 -20
- package/dist/Icon/components/EyeOffLine.js.map +1 -1
- package/dist/Icon/components/EyeOnLine.d.ts +1 -1
- package/dist/Icon/components/EyeOnLine.js +107 -31
- package/dist/Icon/components/EyeOnLine.js.map +1 -1
- package/dist/Icon/components/FoldDownFill.d.ts +1 -1
- package/dist/Icon/components/FoldDownFill.js +87 -21
- package/dist/Icon/components/FoldDownFill.js.map +1 -1
- package/dist/Icon/components/FoldUpFill.d.ts +1 -1
- package/dist/Icon/components/FoldUpFill.js +87 -21
- package/dist/Icon/components/FoldUpFill.js.map +1 -1
- package/dist/Icon/components/InProgressFill.d.ts +1 -1
- package/dist/Icon/components/InProgressFill.js +77 -19
- package/dist/Icon/components/InProgressFill.js.map +1 -1
- package/dist/Icon/components/InfoCircleDuotone.d.ts +1 -1
- package/dist/Icon/components/InfoCircleDuotone.js +81 -20
- package/dist/Icon/components/InfoCircleDuotone.js.map +1 -1
- package/dist/Icon/components/InfoCircleLine.d.ts +1 -1
- package/dist/Icon/components/InfoCircleLine.js +81 -20
- package/dist/Icon/components/InfoCircleLine.js.map +1 -1
- package/dist/Icon/components/InformationCircleFill.d.ts +1 -1
- package/dist/Icon/components/InformationCircleFill.js +81 -20
- package/dist/Icon/components/InformationCircleFill.js.map +1 -1
- package/dist/Icon/components/InformationCircleLightLine.d.ts +1 -1
- package/dist/Icon/components/InformationCircleLightLine.js +97 -25
- package/dist/Icon/components/InformationCircleLightLine.js.map +1 -1
- package/dist/Icon/components/Loading2Line.d.ts +1 -1
- package/dist/Icon/components/Loading2Line.js +81 -20
- package/dist/Icon/components/Loading2Line.js.map +1 -1
- package/dist/Icon/components/LoadingDuotone.d.ts +1 -1
- package/dist/Icon/components/LoadingDuotone.js +96 -24
- package/dist/Icon/components/LoadingDuotone.js.map +1 -1
- package/dist/Icon/components/LoadingLine.d.ts +1 -1
- package/dist/Icon/components/LoadingLine.js +81 -20
- package/dist/Icon/components/LoadingLine.js.map +1 -1
- package/dist/Icon/components/MoreVerticalLine.d.ts +1 -1
- package/dist/Icon/components/MoreVerticalLine.js +81 -20
- package/dist/Icon/components/MoreVerticalLine.js.map +1 -1
- package/dist/Icon/components/SearchLine.d.ts +1 -1
- package/dist/Icon/components/SearchLine.js +81 -20
- package/dist/Icon/components/SearchLine.js.map +1 -1
- package/dist/Icon/components/SignLightLine.d.ts +1 -1
- package/dist/Icon/components/SignLightLine.js +81 -20
- package/dist/Icon/components/SignLightLine.js.map +1 -1
- package/dist/Icon/components/SortAscendingOrderColor.d.ts +1 -1
- package/dist/Icon/components/SortAscendingOrderColor.js +88 -22
- package/dist/Icon/components/SortAscendingOrderColor.js.map +1 -1
- package/dist/Icon/components/SortColor.d.ts +1 -1
- package/dist/Icon/components/SortColor.js +81 -20
- package/dist/Icon/components/SortColor.js.map +1 -1
- package/dist/Icon/components/SortDescendingOrderColor.d.ts +1 -1
- package/dist/Icon/components/SortDescendingOrderColor.js +88 -22
- package/dist/Icon/components/SortDescendingOrderColor.js.map +1 -1
- package/dist/Icon/components/TimesLightLine.d.ts +1 -1
- package/dist/Icon/components/TimesLightLine.js +81 -20
- package/dist/Icon/components/TimesLightLine.js.map +1 -1
- package/dist/Icon/components/TrashLightLine.d.ts +1 -1
- package/dist/Icon/components/TrashLightLine.js +97 -25
- package/dist/Icon/components/TrashLightLine.js.map +1 -1
- package/dist/Icon/components/TriangleLightLine.d.ts +1 -1
- package/dist/Icon/components/TriangleLightLine.js +81 -20
- package/dist/Icon/components/TriangleLightLine.js.map +1 -1
- package/dist/Icon/components/User.d.ts +1 -1
- package/dist/Icon/components/User.js +85 -21
- package/dist/Icon/components/User.js.map +1 -1
- package/dist/Icon/components/UserGroup.d.ts +1 -1
- package/dist/Icon/components/UserGroup.js +85 -21
- package/dist/Icon/components/UserGroup.js.map +1 -1
- package/dist/Icon.d.ts +0 -1
- package/dist/Icon.js +1 -0
- package/dist/IconButton/index.d.ts +6 -5
- package/dist/IconButton/index.js +303 -73
- package/dist/IconButton/index.js.map +1 -1
- package/dist/IconButton.js +2 -0
- package/dist/Input/components/Input/index.d.ts +1 -1
- package/dist/Input/components/Input/index.js +407 -108
- package/dist/Input/components/Input/index.js.map +1 -1
- package/dist/Input/components/Input.js +2 -0
- package/dist/Input/components/Password/index.d.ts +1 -1
- package/dist/Input/components/Password/index.js +71 -10
- package/dist/Input/components/Password/index.js.map +1 -1
- package/dist/Input/components/Password.js +2 -0
- package/dist/Input/components/TextArea/index.d.ts +2 -2
- package/dist/Input/components/TextArea/index.js +323 -67
- package/dist/Input/components/TextArea/index.js.map +1 -1
- package/dist/Input/components/TextArea.js +2 -0
- package/dist/Input/index.js.map +1 -1
- package/dist/Input/privateSemanticOwner.d.ts +2 -2
- package/dist/Input.js +2 -0
- package/dist/InputNumber/index.d.ts +2 -1
- package/dist/InputNumber/index.js +13 -13
- package/dist/InputNumber/index.js.map +1 -1
- package/dist/InputNumber/type.d.ts +0 -1
- package/dist/InputNumber.js +2 -0
- package/dist/InputSearch/index.d.ts +1 -1
- package/dist/InputSearch/index.js +213 -78
- package/dist/InputSearch/index.js.map +1 -1
- package/dist/InputSearch.js +2 -0
- package/dist/Layout/index.js +115 -28
- package/dist/Layout/index.js.map +1 -1
- package/dist/Layout.js +2 -0
- package/dist/List/Item.js +105 -21
- package/dist/List/Item.js.map +1 -1
- package/dist/List/index.d.ts +2 -2
- package/dist/List/index.js +11 -11
- package/dist/List/index.js.map +1 -1
- package/dist/List.js +2 -0
- package/dist/LogicTree/DisplayLogicTree.d.ts +1 -1
- package/dist/LogicTree/DisplayLogicTree.js +17 -6
- package/dist/LogicTree/DisplayLogicTree.js.map +1 -1
- package/dist/LogicTree/components/DisplayLogicItem/index.d.ts +2 -2
- package/dist/LogicTree/components/DisplayLogicItem/index.js +124 -38
- package/dist/LogicTree/components/DisplayLogicItem/index.js.map +1 -1
- package/dist/LogicTree/components/DisplayLogicItem.d.ts +0 -1
- package/dist/LogicTree/components/DisplayLogicItem.js +1 -0
- package/dist/LogicTree/components/LogicItem/index.d.ts +4 -3
- package/dist/LogicTree/components/LogicItem/index.js +60 -58
- package/dist/LogicTree/components/LogicItem/index.js.map +1 -1
- package/dist/LogicTree/components/LogicItem.js +2 -0
- package/dist/LogicTree/helper.js.map +1 -1
- package/dist/LogicTree/index.d.ts +1 -1
- package/dist/LogicTree/index.js +205 -66
- package/dist/LogicTree/index.js.map +1 -1
- package/dist/LogicTree/type.js.map +1 -1
- package/dist/LogicTree.js +2 -0
- package/dist/MemberPicker/components/MemberSelection.d.ts +2 -2
- package/dist/MemberPicker/components/MemberSelection.js +4 -4
- package/dist/MemberPicker/components/MemberSelection.js.map +1 -1
- package/dist/MemberPicker/components/MultipleOption.d.ts +5 -3
- package/dist/MemberPicker/components/MultipleOption.js +178 -42
- package/dist/MemberPicker/components/MultipleOption.js.map +1 -1
- package/dist/MemberPicker/components/NickLabel.d.ts +6 -1
- package/dist/MemberPicker/components/NickLabel.js +70 -11
- package/dist/MemberPicker/components/NickLabel.js.map +1 -1
- package/dist/MemberPicker/components/Panel.d.ts +8 -4
- package/dist/MemberPicker/components/Panel.js +202 -103
- package/dist/MemberPicker/components/Panel.js.map +1 -1
- package/dist/MemberPicker/components/PanelWrapper.d.ts +4 -4
- package/dist/MemberPicker/components/PanelWrapper.js +197 -82
- package/dist/MemberPicker/components/PanelWrapper.js.map +1 -1
- package/dist/MemberPicker/components/SearchFeedback.d.ts +8 -0
- package/dist/MemberPicker/components/SearchFeedback.js +76 -0
- package/dist/MemberPicker/components/SearchFeedback.js.map +1 -0
- package/dist/MemberPicker/components/SelectedMemberTags.d.ts +4 -4
- package/dist/MemberPicker/components/SelectedMemberTags.js +148 -64
- package/dist/MemberPicker/components/SelectedMemberTags.js.map +1 -1
- package/dist/MemberPicker/components/SelectorFooter.d.ts +2 -2
- package/dist/MemberPicker/components/SelectorFooter.js +42 -22
- package/dist/MemberPicker/components/SelectorFooter.js.map +1 -1
- package/dist/MemberPicker/components/SingleOption.d.ts +5 -3
- package/dist/MemberPicker/components/SingleOption.js +157 -36
- package/dist/MemberPicker/components/SingleOption.js.map +1 -1
- package/dist/MemberPicker/components/UserGroupSelection.d.ts +5 -2
- package/dist/MemberPicker/components/UserGroupSelection.js +335 -155
- package/dist/MemberPicker/components/UserGroupSelection.js.map +1 -1
- package/dist/MemberPicker/dialog/DialogColumns.d.ts +5 -0
- package/dist/MemberPicker/dialog/DialogColumns.js +119 -0
- package/dist/MemberPicker/dialog/DialogColumns.js.map +1 -0
- package/dist/MemberPicker/dialog/DialogContent.d.ts +3 -0
- package/dist/MemberPicker/dialog/DialogContent.js +270 -0
- package/dist/MemberPicker/dialog/DialogContent.js.map +1 -0
- package/dist/MemberPicker/dialog/MemberOption.d.ts +16 -0
- package/dist/MemberPicker/dialog/MemberOption.js +269 -0
- package/dist/MemberPicker/dialog/MemberOption.js.map +1 -0
- package/dist/MemberPicker/dialog/MemberPickerDialog.d.ts +11 -0
- package/dist/MemberPicker/dialog/MemberPickerDialog.js +19 -0
- package/dist/MemberPicker/dialog/MemberPickerDialog.js.map +1 -0
- package/dist/MemberPicker/dialog/SelectedMemberPanel.d.ts +12 -0
- package/dist/MemberPicker/dialog/SelectedMemberPanel.js +77 -0
- package/dist/MemberPicker/dialog/SelectedMemberPanel.js.map +1 -0
- package/dist/MemberPicker/dialog/UserCandidatePanel.d.ts +13 -0
- package/dist/MemberPicker/dialog/UserCandidatePanel.js +168 -0
- package/dist/MemberPicker/dialog/UserCandidatePanel.js.map +1 -0
- package/dist/MemberPicker/dialog/UserGroupCandidatePanel.d.ts +13 -0
- package/dist/MemberPicker/dialog/UserGroupCandidatePanel.js +312 -0
- package/dist/MemberPicker/dialog/UserGroupCandidatePanel.js.map +1 -0
- package/dist/MemberPicker/dialog/helper.d.ts +20 -0
- package/dist/MemberPicker/dialog/helper.js +61 -0
- package/dist/MemberPicker/dialog/helper.js.map +1 -0
- package/dist/MemberPicker/dialog/types.d.ts +41 -0
- package/dist/MemberPicker/dialog/types.js +7 -0
- package/dist/MemberPicker/dialog/types.js.map +1 -0
- package/dist/MemberPicker/dialog/useDialogLocale.d.ts +103 -0
- package/dist/MemberPicker/dialog/useDialogLocale.js +20 -0
- package/dist/MemberPicker/dialog/useDialogLocale.js.map +1 -0
- package/dist/MemberPicker/dialog/useMemberPickerDraft.d.ts +27 -0
- package/dist/MemberPicker/dialog/useMemberPickerDraft.js +95 -0
- package/dist/MemberPicker/dialog/useMemberPickerDraft.js.map +1 -0
- package/dist/MemberPicker/dialog/useUserGroupCandidates.d.ts +29 -0
- package/dist/MemberPicker/dialog/useUserGroupCandidates.js +443 -0
- package/dist/MemberPicker/dialog/useUserGroupCandidates.js.map +1 -0
- package/dist/MemberPicker/index.d.ts +2 -0
- package/dist/MemberPicker/index.js +100 -76
- package/dist/MemberPicker/index.js.map +1 -1
- package/dist/MemberPicker/interface.d.ts +4 -4
- package/dist/MemberPicker/interface.js.map +1 -1
- package/dist/MemberPicker/tests/mockPort.d.ts +2 -2
- package/dist/MemberPicker/useMemberSearch.d.ts +8 -0
- package/dist/MemberPicker/useMemberSearch.js +92 -0
- package/dist/MemberPicker/useMemberSearch.js.map +1 -0
- package/dist/MemberPicker/utils/getUsersWithUserId.d.ts +2 -2
- package/dist/MemberPicker/utils/getUsersWithUserId.js.map +1 -1
- package/dist/MemberPicker/utils/index.d.ts +4 -3
- package/dist/MemberPicker/utils/index.js.map +1 -1
- package/dist/MemberPicker/utils.d.ts +0 -1
- package/dist/MemberPicker/utils.js +1 -0
- package/dist/MemberPicker.js +2 -0
- package/dist/Menu/index.d.ts +3 -1
- package/dist/Menu/index.js +237 -87
- package/dist/Menu/index.js.map +1 -1
- package/dist/Menu.js +2 -0
- package/dist/Modal/index.d.ts +2 -2
- package/dist/Modal/index.js +152 -90
- package/dist/Modal/index.js.map +1 -1
- package/dist/Modal.js +2 -0
- package/dist/OverflowCount/index.d.ts +2 -2
- package/dist/OverflowCount/index.js +173 -77
- package/dist/OverflowCount/index.js.map +1 -1
- package/dist/OverflowCount.js +2 -0
- package/dist/Pagination/PageSizeChanger.js +77 -22
- package/dist/Pagination/PageSizeChanger.js.map +1 -1
- package/dist/Pagination/index.d.ts +2 -1
- package/dist/Pagination/index.js +7 -7
- package/dist/Pagination/index.js.map +1 -1
- package/dist/Pagination/types.d.ts +0 -1
- package/dist/Pagination.js +2 -0
- package/dist/Popconfirm/index.d.ts +2 -2
- package/dist/Popconfirm/index.js +7 -7
- package/dist/Popconfirm/index.js.map +1 -1
- package/dist/Popconfirm.js +2 -0
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/Popover/index.js.map +1 -1
- package/dist/Popover.js +2 -0
- package/dist/Progress/index.js +91 -28
- package/dist/Progress/index.js.map +1 -1
- package/dist/Progress.js +2 -0
- package/dist/Radio/components/Group/index.d.ts +2 -2
- package/dist/Radio/components/Group/index.js.map +1 -1
- package/dist/Radio/components/Group.js +2 -0
- package/dist/Radio/components/Radio/index.d.ts +3 -2
- package/dist/Radio/components/Radio/index.js +112 -46
- package/dist/Radio/components/Radio/index.js.map +1 -1
- package/dist/Radio/components/Radio.js +2 -0
- package/dist/Radio/index.js.map +1 -1
- package/dist/Radio.js +2 -0
- package/dist/RenameInput/index.d.ts +2 -2
- package/dist/RenameInput/index.js +248 -75
- package/dist/RenameInput/index.js.map +1 -1
- package/dist/RenameInput.js +2 -0
- package/dist/Result/index.d.ts +7 -7
- package/dist/Result/index.js +172 -60
- package/dist/Result/index.js.map +1 -1
- package/dist/Result/noFound.js +37 -11
- package/dist/Result/noFound.js.map +1 -1
- package/dist/Result/serverError.js +37 -11
- package/dist/Result/serverError.js.map +1 -1
- package/dist/Result/unauthorized.js +38 -11
- package/dist/Result/unauthorized.js.map +1 -1
- package/dist/Result.js +2 -0
- package/dist/Row/index.d.ts +1 -1
- package/dist/Row/index.js +86 -20
- package/dist/Row/index.js.map +1 -1
- package/dist/Row.js +2 -0
- package/dist/ScrollArea/index.d.ts +1 -1
- package/dist/ScrollArea/index.js +144 -32
- package/dist/ScrollArea/index.js.map +1 -1
- package/dist/ScrollArea.js +2 -0
- package/dist/Select/BaseSelect.d.ts +2 -2
- package/dist/Select/BaseSelect.js +49 -37
- package/dist/Select/BaseSelect.js.map +1 -1
- package/dist/Select/SelectTrigger.d.ts +2 -2
- package/dist/Select/SelectTrigger.js.map +1 -1
- package/dist/Select/Selector/FixedOverflow.d.ts +1 -1
- package/dist/Select/Selector/FixedOverflow.js +213 -84
- package/dist/Select/Selector/FixedOverflow.js.map +1 -1
- package/dist/Select/Selector/MultipleResponsiveSelectedSection.d.ts +4 -4
- package/dist/Select/Selector/MultipleResponsiveSelectedSection.js +90 -29
- package/dist/Select/Selector/MultipleResponsiveSelectedSection.js.map +1 -1
- package/dist/Select/Selector/MultipleSelector.d.ts +5 -5
- package/dist/Select/Selector/MultipleSelector.js +241 -82
- package/dist/Select/Selector/MultipleSelector.js.map +1 -1
- package/dist/Select/Selector/index.d.ts +5 -5
- package/dist/Select/Selector/index.js +64 -13
- package/dist/Select/Selector/index.js.map +1 -1
- package/dist/Select/Selector.js +2 -0
- package/dist/Select/components/OptionCollection.d.ts +3 -2
- package/dist/Select/components/OptionCollection.js +131 -40
- package/dist/Select/components/OptionCollection.js.map +1 -1
- package/dist/Select/components/PopupContent.d.ts +2 -2
- package/dist/Select/components/PopupContent.js +41 -11
- package/dist/Select/components/PopupContent.js.map +1 -1
- package/dist/Select/components/SearchBox.d.ts +1 -1
- package/dist/Select/components/SearchBox.js +32 -11
- package/dist/Select/components/SearchBox.js.map +1 -1
- package/dist/Select/components/Suffix.d.ts +2 -2
- package/dist/Select/components/Suffix.js +96 -32
- package/dist/Select/components/Suffix.js.map +1 -1
- package/dist/Select/hooks/useCache.d.ts +1 -1
- package/dist/Select/hooks/useCache.js.map +1 -1
- package/dist/Select/hooks/useDisplayMenu.d.ts +1 -1
- package/dist/Select/hooks/useDisplayMenu.js.map +1 -1
- package/dist/Select/hooks/useOptions.d.ts +1 -1
- package/dist/Select/hooks/useOptions.js +34 -15
- package/dist/Select/hooks/useOptions.js.map +1 -1
- package/dist/Select/index.js +348 -167
- package/dist/Select/index.js.map +1 -1
- package/dist/Select/interface.d.ts +2 -2
- package/dist/Select/utils/commonUtil.d.ts +1 -1
- package/dist/Select/utils/commonUtil.js.map +1 -1
- package/dist/Select/utils/getWidthStyle.js.map +1 -1
- package/dist/Select/utils/valueUtil.d.ts +2 -2
- package/dist/Select/utils/valueUtil.js +1 -1
- package/dist/Select/utils/valueUtil.js.map +1 -1
- package/dist/Select.js +2 -0
- package/dist/Skeleton/index.d.ts +2 -2
- package/dist/Skeleton/index.js +255 -58
- package/dist/Skeleton/index.js.map +1 -1
- package/dist/Skeleton.js +2 -0
- package/dist/Slider/index.d.ts +1 -1
- package/dist/Slider/index.js +257 -57
- package/dist/Slider/index.js.map +1 -1
- package/dist/Slider.js +2 -0
- package/dist/Space/CompactContext.d.ts +2 -2
- package/dist/Space/CompactContext.js +1 -1
- package/dist/Space/CompactContext.js.map +1 -1
- package/dist/Space/index.d.ts +3 -3
- package/dist/Space/index.js +162 -30
- package/dist/Space/index.js.map +1 -1
- package/dist/Space.js +2 -0
- package/dist/Spin/CustomIcon/index.d.ts +2 -2
- package/dist/Spin/CustomIcon/index.js +95 -12
- package/dist/Spin/CustomIcon/index.js.map +1 -1
- package/dist/Spin/CustomIcon.js +2 -0
- package/dist/Spin/index.d.ts +1 -1
- package/dist/Spin/index.js +156 -51
- package/dist/Spin/index.js.map +1 -1
- package/dist/Spin.js +2 -0
- package/dist/StatusLight/index.d.ts +1 -1
- package/dist/StatusLight/index.js +118 -45
- package/dist/StatusLight/index.js.map +1 -1
- package/dist/StatusLight.js +2 -0
- package/dist/Steps/components/CustomDot/index.d.ts +1 -1
- package/dist/Steps/components/CustomDot/index.js.map +1 -1
- package/dist/Steps/components/CustomDot.d.ts +0 -1
- package/dist/Steps/components/CustomDot.js +1 -0
- package/dist/Steps/components/ProcessIcon/index.d.ts +2 -1
- package/dist/Steps/components/ProcessIcon/index.js +177 -46
- package/dist/Steps/components/ProcessIcon/index.js.map +1 -1
- package/dist/Steps/components/ProcessIcon.d.ts +0 -1
- package/dist/Steps/components/ProcessIcon.js +1 -0
- package/dist/Steps/components/Step/index.d.ts +2 -2
- package/dist/Steps/components/Step/index.js +46 -17
- package/dist/Steps/components/Step/index.js.map +1 -1
- package/dist/Steps/components/Step.d.ts +0 -1
- package/dist/Steps/components/Step.js +1 -0
- package/dist/Steps/index.d.ts +3 -3
- package/dist/Steps/index.js +160 -105
- package/dist/Steps/index.js.map +1 -1
- package/dist/Steps.js +2 -0
- package/dist/Switch/index.js +159 -49
- package/dist/Switch/index.js.map +1 -1
- package/dist/Switch/test.d.ts +0 -1
- package/dist/Switch/test.js +1 -0
- package/dist/Switch.js +2 -0
- package/dist/Table/components/Cell.d.ts +2 -1
- package/dist/Table/components/Cell.js +29 -6
- package/dist/Table/components/Cell.js.map +1 -1
- package/dist/Table/components/DndWrapper.js +11 -2
- package/dist/Table/components/DndWrapper.js.map +1 -1
- package/dist/Table/components/ErrorBoundary.js.map +1 -1
- package/dist/Table/components/ExpandCell.d.ts +3 -3
- package/dist/Table/components/ExpandCell.js +139 -43
- package/dist/Table/components/ExpandCell.js.map +1 -1
- package/dist/Table/components/Footer/index.d.ts +5 -4
- package/dist/Table/components/Footer/index.js +130 -61
- package/dist/Table/components/Footer/index.js.map +1 -1
- package/dist/Table/components/Footer.js +2 -0
- package/dist/Table/components/Header.d.ts +2 -1
- package/dist/Table/components/Header.js.map +1 -1
- package/dist/Table/helper.d.ts +13 -13
- package/dist/Table/helper.js.map +1 -1
- package/dist/Table/hooks/useExpandable.d.ts +2 -2
- package/dist/Table/hooks/useExpandable.js +178 -64
- package/dist/Table/hooks/useExpandable.js.map +1 -1
- package/dist/Table/hooks/useFixed.js.map +1 -1
- package/dist/Table/hooks/useRowDnd.d.ts +1 -1
- package/dist/Table/hooks/useRowDnd.js +5 -5
- package/dist/Table/hooks/useRowDnd.js.map +1 -1
- package/dist/Table/hooks/useRowSelection.d.ts +1 -1
- package/dist/Table/hooks/useRowSelection.js +307 -129
- package/dist/Table/hooks/useRowSelection.js.map +1 -1
- package/dist/Table/hooks/useScroll.d.ts +3 -3
- package/dist/Table/hooks/useScroll.js +92 -45
- package/dist/Table/hooks/useScroll.js.map +1 -1
- package/dist/Table/index.d.ts +2 -2
- package/dist/Table/index.js +78 -78
- package/dist/Table/index.js.map +1 -1
- package/dist/Table/tests/helper.d.ts +1 -1
- package/dist/Table/types.d.ts +2 -2
- package/dist/Table.js +2 -0
- package/dist/Tabs/TabPane.d.ts +2 -2
- package/dist/Tabs/TabPane.js +13 -4
- package/dist/Tabs/TabPane.js.map +1 -1
- package/dist/Tabs/index.d.ts +2 -2
- package/dist/Tabs/index.js +677 -252
- package/dist/Tabs/index.js.map +1 -1
- package/dist/Tabs.js +2 -0
- package/dist/Tag/index.d.ts +1 -1
- package/dist/Tag/index.js +243 -77
- package/dist/Tag/index.js.map +1 -1
- package/dist/Tag.js +2 -0
- package/dist/TextLink/index.d.ts +1 -1
- package/dist/TextLink/index.js +60 -8
- package/dist/TextLink/index.js.map +1 -1
- package/dist/TextLink.js +2 -0
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/Tooltip/index.js +31 -10
- package/dist/Tooltip/index.js.map +1 -1
- package/dist/Tooltip.js +2 -0
- package/dist/Tour/index.d.ts +1 -1
- package/dist/Tour/index.js +234 -76
- package/dist/Tour/index.js.map +1 -1
- package/dist/Tour.js +2 -0
- package/dist/Tree/DirectoryTree.d.ts +1 -1
- package/dist/Tree/DirectoryTree.js +6 -6
- package/dist/Tree/DirectoryTree.js.map +1 -1
- package/dist/Tree/Tree.d.ts +1 -1
- package/dist/Tree/Tree2.js +24 -24
- package/dist/Tree/Tree2.js.map +1 -1
- package/dist/Tree/index.d.ts +2 -2
- package/dist/Tree/index.js.map +1 -1
- package/dist/Tree/utils/composeAllowDrop.d.ts +1 -1
- package/dist/Tree/utils/composeAllowDrop.js.map +1 -1
- package/dist/Tree/utils/dictUtil.d.ts +1 -1
- package/dist/Tree/utils/dictUtil.js.map +1 -1
- package/dist/Tree/utils/dropIndicator.d.ts +2 -1
- package/dist/Tree/utils/dropIndicator.js.map +1 -1
- package/dist/Tree/utils/iconUtil.d.ts +1 -1
- package/dist/Tree/utils/iconUtil.js +82 -24
- package/dist/Tree/utils/iconUtil.js.map +1 -1
- package/dist/Tree.js +2 -0
- package/dist/Typography/index.js +75 -27
- package/dist/Typography/index.js.map +1 -1
- package/dist/Typography.js +2 -0
- package/dist/Upload/index.d.ts +4 -4
- package/dist/Upload/index.js +278 -133
- package/dist/Upload/index.js.map +1 -1
- package/dist/Upload.js +2 -0
- package/dist/User/index.d.ts +1 -1
- package/dist/User/index.js +79 -12
- package/dist/User/index.js.map +1 -1
- package/dist/User.js +2 -0
- package/dist/Watermark/index.d.ts +1 -1
- package/dist/Watermark/index.js +108 -47
- package/dist/Watermark/index.js.map +1 -1
- package/dist/Watermark.js +2 -0
- package/dist/_utils/dialogAccessibility.js +98 -54
- package/dist/_utils/dialogAccessibility.js.map +1 -1
- package/dist/_utils/floatingLayer.d.ts +1 -1
- package/dist/_utils/floatingLayer.js +41 -14
- package/dist/_utils/floatingLayer.js.map +1 -1
- package/dist/_utils/formControlSemanticOwner.js.map +1 -1
- package/dist/_utils/getUniqId.js.map +1 -1
- package/dist/_utils/hooks/useControlledState.d.ts +1 -1
- package/dist/_utils/hooks/useId.js +1 -1
- package/dist/_utils/hooks/useId.js.map +1 -1
- package/dist/_utils/motion.js.map +1 -1
- package/dist/_utils/overlayCoordinator.d.ts +1 -1
- package/dist/_utils/overlayCoordinator.js +23 -7
- package/dist/_utils/overlayCoordinator.js.map +1 -1
- package/dist/_utils/prefixCls.d.ts +3 -1
- package/dist/_utils/prefixCls.js.map +1 -1
- package/dist/_utils/reactNode.d.ts +3 -3
- package/dist/_utils/reactNode.js +3 -1
- package/dist/_utils/reactNode.js.map +1 -1
- package/dist/_utils/statusUtils.d.ts +1 -1
- package/dist/_utils/weakRefFallback.js.map +1 -1
- package/dist/aloudata-design.css +1 -1
- package/dist/governance/semantic.d.ts +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +3 -3
- package/dist/lib/utils.js.map +1 -1
- package/dist/locale/default.d.ts +30 -2
- package/dist/locale/default.js.map +1 -1
- package/dist/locale/en_US.d.ts +30 -1
- package/dist/locale/en_US.js +30 -1
- package/dist/locale/en_US.js.map +1 -1
- package/dist/locale/zh_CN.d.ts +30 -1
- package/dist/locale/zh_CN.js +31 -2
- package/dist/locale/zh_CN.js.map +1 -1
- package/dist/message/index.js.map +1 -1
- package/dist/message.js +2 -0
- package/dist/notification/index.js.map +1 -1
- package/dist/notification.js +2 -0
- package/dist/theme/contract/baselineResolvedTokenValueManifest.d.ts +1 -1
- package/dist/theme/contract/controlStateColorArtifact.d.ts +1 -1
- package/dist/theme/contract/focusRingArtifact.d.ts +1 -1
- package/dist/theme/contract/shadowGeneratorSpecification.d.ts +1 -1
- package/dist/theme/contract/tokenCssBridge.d.ts +1 -1
- package/dist/theme/contract/tokenOutputContract.d.ts +1 -1
- package/dist/theme/contract/tokenOutputContract.js.map +1 -1
- package/dist/theme/generator/baselineTokenValueDelivery.d.ts +1 -1
- package/dist/theme/generator/generatorDiff.d.ts +1 -1
- package/dist/theme/generator/minimalAcceptedColorValues.d.ts +1 -1
- package/dist/theme/generator/neutralSourceResolver.d.ts +2 -2
- package/dist/theme/generator/neutralSourceValues.d.ts +3 -3
- package/dist/theme/governance/migrationMappingRegistry.js.map +1 -1
- package/dist/theme/governance/reviewGate.js.map +1 -1
- package/dist/theme/governance/semanticGovernanceContract.d.ts +1 -1
- package/dist/theme/governance/semanticGovernanceContract.js.map +1 -1
- package/dist/theme/governance/validateMigrationMapping.js.map +1 -1
- package/dist/theme/neutralSourceContract.js.map +1 -1
- package/dist/theme/runtime/colorValueMode/generated/darkBaselineDeclarations.d.ts +1 -1
- package/dist/theme/runtime/colorValueMode/generated/darkBaselineDeclarations.js.map +1 -1
- package/dist/theme/runtime/colorValueMode/generated/slateDarkDeclarations.d.ts +1 -1
- package/dist/theme/runtime/colorValueMode/generated/slateLightDeclarations.d.ts +1 -1
- package/dist/theme/runtime/colorValueMode/generated/stoneDarkDeclarations.d.ts +1 -1
- package/dist/theme/runtime/colorValueMode/generated/stoneLightDeclarations.d.ts +1 -1
- package/dist/theme/runtime/colorValueMode/generated/v3BaselineDeclarations.d.ts +1 -1
- package/dist/theme/runtime/colorValueMode/generated/v3BaselineDeclarations.js.map +1 -1
- package/dist/theme/runtime/colorValueMode/index.js.map +1 -1
- package/dist/theme/runtime/colorValueMode/legacyNeutralCompatibility.d.ts +1 -1
- package/dist/theme/runtime/colorValueMode/legacyNeutralCompatibility.js.map +1 -1
- package/dist/theme/runtime/colorValueMode/registry.d.ts +1 -1
- package/dist/theme/runtime/colorValueMode/registry.js.map +1 -1
- package/dist/theme/runtime/colorValueMode.d.ts +0 -1
- package/dist/theme/runtime/colorValueMode.js +1 -0
- package/dist/theme/runtime/createTheme.js.map +1 -1
- package/dist/theme/runtime/defaultTheme.js.map +1 -1
- package/dist/theme/runtime/initAldTheme.js.map +1 -1
- package/dist/theme/runtime/integrationController.d.ts +1 -1
- package/dist/theme/runtime/neutralSource/index.d.ts +2 -2
- package/dist/theme/runtime/neutralSource/index.js.map +1 -1
- package/dist/theme/runtime/neutralSource.d.ts +0 -1
- package/dist/theme/runtime/neutralSource.js +1 -0
- package/dist/theme/runtime/runtimeAdapter.d.ts +1 -1
- package/dist/theme/runtime/themeToCssVars.js.map +1 -1
- package/dist/theme/runtime/tokenMap.js.map +1 -1
- package/dist/theme/typography.d.ts +0 -1
- package/dist/theme/typography.js +1 -0
- package/dist/theme.d.ts +0 -1
- package/dist/theme.js +1 -0
- package/package.json +54 -25
package/dist/Tabs/index.js
CHANGED
|
@@ -3,285 +3,710 @@ import Memo from "../Icon/components/ChevronLeftLine.js";
|
|
|
3
3
|
import Memo$1 from "../Icon/components/ChevronRightLine.js";
|
|
4
4
|
import Memo$2 from "../Icon/components/CloseLightLine.js";
|
|
5
5
|
import TabPane from "./TabPane.js";
|
|
6
|
-
import
|
|
6
|
+
import { c } from "react-compiler-runtime";
|
|
7
|
+
import React, { useEffect, useRef, useState } from "react";
|
|
7
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
9
|
//#region src/Tabs/index.tsx
|
|
9
10
|
function Tabs(props) {
|
|
10
|
-
const
|
|
11
|
+
const $ = c(175);
|
|
12
|
+
const { size, className, adaptHeight, style: t0, monospace: propsMonospace, tabPosition: t1, padding: t2, compact, hasDividing: t3, items, activeKey: controlledActiveKey, defaultActiveKey, onChange, onTabClick, destroyInactiveTabPane, centered, tabBarExtraContent, headerBackgroundColor, children, type, onEdit, hideAdd, tabBarStyle, "data-testid": dataTestId, "aria-label": ariaLabel } = props;
|
|
13
|
+
let t4;
|
|
14
|
+
if ($[0] !== t0) {
|
|
15
|
+
t4 = t0 === void 0 ? {} : t0;
|
|
16
|
+
$[0] = t0;
|
|
17
|
+
$[1] = t4;
|
|
18
|
+
} else t4 = $[1];
|
|
19
|
+
const style = t4;
|
|
20
|
+
const tabPosition = t1 === void 0 ? "top" : t1;
|
|
21
|
+
const propsPadding = t2 === void 0 ? false : t2;
|
|
22
|
+
const hasDividing = t3 === void 0 ? true : t3;
|
|
11
23
|
const isEditable = type === "editable-card";
|
|
12
24
|
const isCard = type === "card" || type === "editable-card";
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
25
|
+
let t5;
|
|
26
|
+
bb0: {
|
|
27
|
+
if (items) {
|
|
28
|
+
t5 = items;
|
|
29
|
+
break bb0;
|
|
30
|
+
}
|
|
31
|
+
let t6;
|
|
32
|
+
if ($[2] !== children) {
|
|
33
|
+
t6 = React.Children.toArray(children).filter(React.isValidElement).map(_temp);
|
|
34
|
+
$[2] = children;
|
|
35
|
+
$[3] = t6;
|
|
36
|
+
} else t6 = $[3];
|
|
37
|
+
t5 = t6;
|
|
38
|
+
}
|
|
39
|
+
const resolvedItems = t5;
|
|
24
40
|
const firstKey = resolvedItems[0]?.key || "";
|
|
25
41
|
const [innerActiveKey, setInnerActiveKey] = useState(defaultActiveKey || firstKey);
|
|
26
42
|
const mergedActiveKey = controlledActiveKey !== void 0 ? controlledActiveKey : innerActiveKey;
|
|
27
|
-
|
|
43
|
+
let t6;
|
|
44
|
+
if ($[4] !== firstKey || $[5] !== mergedActiveKey || $[6] !== resolvedItems) {
|
|
45
|
+
t6 = resolvedItems.some((item) => item.key === mergedActiveKey) ? mergedActiveKey : firstKey;
|
|
46
|
+
$[4] = firstKey;
|
|
47
|
+
$[5] = mergedActiveKey;
|
|
48
|
+
$[6] = resolvedItems;
|
|
49
|
+
$[7] = t6;
|
|
50
|
+
} else t6 = $[7];
|
|
51
|
+
const activeKey = t6;
|
|
28
52
|
const tabsId = React.useId();
|
|
29
|
-
|
|
53
|
+
let t7;
|
|
54
|
+
if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
|
|
55
|
+
t7 = {};
|
|
56
|
+
$[8] = t7;
|
|
57
|
+
} else t7 = $[8];
|
|
58
|
+
const tabRefs = useRef(t7);
|
|
30
59
|
const pendingFocusKeyRef = useRef(null);
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
]
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
60
|
+
let t8;
|
|
61
|
+
if ($[9] !== activeKey || $[10] !== resolvedItems) {
|
|
62
|
+
t8 = (t9) => {
|
|
63
|
+
const items_0 = t9 === void 0 ? resolvedItems : t9;
|
|
64
|
+
return items_0.find((item_1) => item_1.key === activeKey && !item_1.disabled)?.key || items_0.find(_temp2)?.key || "";
|
|
65
|
+
};
|
|
66
|
+
$[9] = activeKey;
|
|
67
|
+
$[10] = resolvedItems;
|
|
68
|
+
$[11] = t8;
|
|
69
|
+
} else t8 = $[11];
|
|
70
|
+
const getPreferredFocusKey = t8;
|
|
71
|
+
let t9;
|
|
72
|
+
if ($[12] !== getPreferredFocusKey) {
|
|
73
|
+
t9 = () => getPreferredFocusKey();
|
|
74
|
+
$[12] = getPreferredFocusKey;
|
|
75
|
+
$[13] = t9;
|
|
76
|
+
} else t9 = $[13];
|
|
77
|
+
const [focusedKey, setFocusedKey] = useState(t9);
|
|
78
|
+
let t10;
|
|
79
|
+
if ($[14] !== tabsId) {
|
|
80
|
+
t10 = (key) => `${tabsId}-tab-${key}`;
|
|
81
|
+
$[14] = tabsId;
|
|
82
|
+
$[15] = t10;
|
|
83
|
+
} else t10 = $[15];
|
|
84
|
+
const getTabId = t10;
|
|
85
|
+
let t11;
|
|
86
|
+
if ($[16] !== tabsId) {
|
|
87
|
+
t11 = (key_0) => `${tabsId}-panel-${key_0}`;
|
|
88
|
+
$[16] = tabsId;
|
|
89
|
+
$[17] = t11;
|
|
90
|
+
} else t11 = $[17];
|
|
91
|
+
const getPanelId = t11;
|
|
92
|
+
let t12;
|
|
93
|
+
if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
|
|
94
|
+
t12 = (key_1) => {
|
|
95
|
+
setFocusedKey(key_1);
|
|
96
|
+
tabRefs.current[key_1]?.focus();
|
|
97
|
+
};
|
|
98
|
+
$[18] = t12;
|
|
99
|
+
} else t12 = $[18];
|
|
100
|
+
const focusTab = t12;
|
|
101
|
+
let t13;
|
|
102
|
+
let t14;
|
|
103
|
+
if ($[19] !== getPreferredFocusKey || $[20] !== resolvedItems) {
|
|
104
|
+
t13 = () => {
|
|
105
|
+
const pendingFocusKey = pendingFocusKeyRef.current;
|
|
106
|
+
if (pendingFocusKey && resolvedItems.some((item_2) => item_2.key === pendingFocusKey && !item_2.disabled)) {
|
|
107
|
+
pendingFocusKeyRef.current = null;
|
|
108
|
+
focusTab(pendingFocusKey);
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
setFocusedKey((currentFocusedKey) => {
|
|
112
|
+
const focusedItem = resolvedItems.find((item_3) => item_3.key === currentFocusedKey);
|
|
113
|
+
return focusedItem && !focusedItem.disabled ? currentFocusedKey : getPreferredFocusKey();
|
|
114
|
+
});
|
|
115
|
+
};
|
|
116
|
+
t14 = [
|
|
117
|
+
focusTab,
|
|
118
|
+
getPreferredFocusKey,
|
|
119
|
+
resolvedItems
|
|
120
|
+
];
|
|
121
|
+
$[19] = getPreferredFocusKey;
|
|
122
|
+
$[20] = resolvedItems;
|
|
123
|
+
$[21] = t13;
|
|
124
|
+
$[22] = t14;
|
|
125
|
+
} else {
|
|
126
|
+
t13 = $[21];
|
|
127
|
+
t14 = $[22];
|
|
128
|
+
}
|
|
129
|
+
useEffect(t13, t14);
|
|
130
|
+
let t15;
|
|
131
|
+
if ($[23] !== controlledActiveKey || $[24] !== onChange) {
|
|
132
|
+
t15 = (key_2) => {
|
|
133
|
+
if (controlledActiveKey === void 0) setInnerActiveKey(key_2);
|
|
134
|
+
onChange?.(key_2);
|
|
135
|
+
};
|
|
136
|
+
$[23] = controlledActiveKey;
|
|
137
|
+
$[24] = onChange;
|
|
138
|
+
$[25] = t15;
|
|
139
|
+
} else t15 = $[25];
|
|
140
|
+
const activateTab = t15;
|
|
141
|
+
let t16;
|
|
142
|
+
if ($[26] !== activateTab || $[27] !== onTabClick) {
|
|
143
|
+
t16 = (key_3, e) => {
|
|
144
|
+
setFocusedKey(key_3);
|
|
145
|
+
activateTab(key_3);
|
|
146
|
+
onTabClick?.(key_3, e);
|
|
147
|
+
};
|
|
148
|
+
$[26] = activateTab;
|
|
149
|
+
$[27] = onTabClick;
|
|
150
|
+
$[28] = t16;
|
|
151
|
+
} else t16 = $[28];
|
|
152
|
+
const handleTabClick = t16;
|
|
153
|
+
let t17;
|
|
154
|
+
if ($[29] !== onEdit || $[30] !== resolvedItems) {
|
|
155
|
+
t17 = (key_4, e_0) => {
|
|
156
|
+
e_0.stopPropagation();
|
|
157
|
+
const itemIndex = resolvedItems.findIndex((item_4) => item_4.key === key_4);
|
|
158
|
+
pendingFocusKeyRef.current = [...resolvedItems.slice(itemIndex + 1), ...resolvedItems.slice(0, itemIndex).reverse()].find(_temp3)?.key || null;
|
|
159
|
+
onEdit?.(key_4, "remove");
|
|
160
|
+
};
|
|
161
|
+
$[29] = onEdit;
|
|
162
|
+
$[30] = resolvedItems;
|
|
163
|
+
$[31] = t17;
|
|
164
|
+
} else t17 = $[31];
|
|
165
|
+
const handleRemove = t17;
|
|
166
|
+
let handleAdd;
|
|
167
|
+
let handleTabKeyDown;
|
|
168
|
+
let isBottom;
|
|
169
|
+
let isLeft;
|
|
170
|
+
let isRight;
|
|
171
|
+
let isTop;
|
|
172
|
+
let isVertical;
|
|
173
|
+
let monospace;
|
|
174
|
+
let paddingVal;
|
|
175
|
+
if ($[32] !== activateTab || $[33] !== onEdit || $[34] !== propsMonospace || $[35] !== propsPadding || $[36] !== resolvedItems || $[37] !== tabPosition) {
|
|
176
|
+
let t18;
|
|
177
|
+
if ($[47] !== activateTab || $[48] !== resolvedItems) {
|
|
178
|
+
t18 = (item_6, e_1) => {
|
|
179
|
+
const enabledItems = resolvedItems.filter(_temp4);
|
|
180
|
+
const currentIndex = enabledItems.findIndex((candidate_0) => candidate_0.key === item_6.key);
|
|
181
|
+
if (currentIndex === -1) return;
|
|
182
|
+
let nextIndex;
|
|
183
|
+
if (!isVertical && e_1.key === "ArrowRight" || isVertical && e_1.key === "ArrowDown") nextIndex = (currentIndex + 1) % enabledItems.length;
|
|
184
|
+
else if (!isVertical && e_1.key === "ArrowLeft" || isVertical && e_1.key === "ArrowUp") nextIndex = (currentIndex - 1 + enabledItems.length) % enabledItems.length;
|
|
185
|
+
else if (e_1.key === "Home") nextIndex = 0;
|
|
186
|
+
else if (e_1.key === "End") nextIndex = enabledItems.length - 1;
|
|
187
|
+
if (nextIndex !== void 0) {
|
|
188
|
+
e_1.preventDefault();
|
|
189
|
+
focusTab(enabledItems[nextIndex].key);
|
|
190
|
+
return;
|
|
191
|
+
}
|
|
192
|
+
if (e_1.key === "Enter" || e_1.key === " ") {
|
|
193
|
+
e_1.preventDefault();
|
|
194
|
+
activateTab(item_6.key);
|
|
195
|
+
}
|
|
196
|
+
};
|
|
197
|
+
$[47] = activateTab;
|
|
198
|
+
$[48] = resolvedItems;
|
|
199
|
+
$[49] = t18;
|
|
200
|
+
} else t18 = $[49];
|
|
201
|
+
handleTabKeyDown = t18;
|
|
202
|
+
let t19;
|
|
203
|
+
if ($[50] !== onEdit) {
|
|
204
|
+
t19 = (e_2) => {
|
|
205
|
+
onEdit?.(e_2, "add");
|
|
206
|
+
};
|
|
207
|
+
$[50] = onEdit;
|
|
208
|
+
$[51] = t19;
|
|
209
|
+
} else t19 = $[51];
|
|
210
|
+
handleAdd = t19;
|
|
211
|
+
monospace = tabPosition !== "top" ? false : propsMonospace;
|
|
212
|
+
let t20;
|
|
213
|
+
bb1: {
|
|
214
|
+
if (tabPosition !== "top") {
|
|
215
|
+
t20 = 0;
|
|
216
|
+
break bb1;
|
|
217
|
+
}
|
|
218
|
+
if (typeof propsPadding === "number") {
|
|
219
|
+
t20 = propsPadding;
|
|
220
|
+
break bb1;
|
|
221
|
+
}
|
|
222
|
+
if (typeof propsPadding === "boolean" && propsPadding) {
|
|
223
|
+
t20 = 20;
|
|
224
|
+
break bb1;
|
|
225
|
+
}
|
|
226
|
+
t20 = 0;
|
|
87
227
|
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
228
|
+
paddingVal = t20;
|
|
229
|
+
isTop = tabPosition === "top";
|
|
230
|
+
isBottom = tabPosition === "bottom";
|
|
231
|
+
isLeft = tabPosition === "left";
|
|
232
|
+
isRight = tabPosition === "right";
|
|
233
|
+
isVertical = tabPosition === "left" || tabPosition === "right";
|
|
234
|
+
$[32] = activateTab;
|
|
235
|
+
$[33] = onEdit;
|
|
236
|
+
$[34] = propsMonospace;
|
|
237
|
+
$[35] = propsPadding;
|
|
238
|
+
$[36] = resolvedItems;
|
|
239
|
+
$[37] = tabPosition;
|
|
240
|
+
$[38] = handleAdd;
|
|
241
|
+
$[39] = handleTabKeyDown;
|
|
242
|
+
$[40] = isBottom;
|
|
243
|
+
$[41] = isLeft;
|
|
244
|
+
$[42] = isRight;
|
|
245
|
+
$[43] = isTop;
|
|
246
|
+
$[44] = isVertical;
|
|
247
|
+
$[45] = monospace;
|
|
248
|
+
$[46] = paddingVal;
|
|
249
|
+
} else {
|
|
250
|
+
handleAdd = $[38];
|
|
251
|
+
handleTabKeyDown = $[39];
|
|
252
|
+
isBottom = $[40];
|
|
253
|
+
isLeft = $[41];
|
|
254
|
+
isRight = $[42];
|
|
255
|
+
isTop = $[43];
|
|
256
|
+
isVertical = $[44];
|
|
257
|
+
monospace = $[45];
|
|
258
|
+
paddingVal = $[46];
|
|
259
|
+
}
|
|
104
260
|
const rootDirectionClass = isRight ? "tw-flex-row-reverse" : isLeft ? "tw-flex-row" : isBottom ? "tw-flex-col-reverse" : "tw-flex-col";
|
|
105
261
|
const extraLeft = tabBarExtraContent && typeof tabBarExtraContent === "object" && "left" in tabBarExtraContent ? tabBarExtraContent.left : null;
|
|
106
262
|
const extraRight = tabBarExtraContent ? typeof tabBarExtraContent === "object" && "right" in tabBarExtraContent ? tabBarExtraContent.right : React.isValidElement(tabBarExtraContent) ? tabBarExtraContent : null : null;
|
|
107
263
|
const navListRef = useRef(null);
|
|
108
264
|
const [canScrollLeft, setCanScrollLeft] = useState(false);
|
|
109
265
|
const [canScrollRight, setCanScrollRight] = useState(false);
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
checkScroll();
|
|
123
|
-
const el = navListRef.current;
|
|
124
|
-
if (!el) return;
|
|
125
|
-
let ro;
|
|
126
|
-
if (typeof ResizeObserver !== "undefined") {
|
|
127
|
-
ro = new ResizeObserver(() => checkScroll());
|
|
128
|
-
ro.observe(el);
|
|
129
|
-
}
|
|
130
|
-
el.addEventListener("scroll", checkScroll, { passive: true });
|
|
131
|
-
return () => {
|
|
132
|
-
el.removeEventListener("scroll", checkScroll);
|
|
133
|
-
ro?.disconnect();
|
|
266
|
+
let t18;
|
|
267
|
+
if ($[52] !== isVertical) {
|
|
268
|
+
t18 = () => {
|
|
269
|
+
const el = navListRef.current;
|
|
270
|
+
if (!el || isVertical) {
|
|
271
|
+
setCanScrollLeft(false);
|
|
272
|
+
setCanScrollRight(false);
|
|
273
|
+
return;
|
|
274
|
+
}
|
|
275
|
+
const { scrollLeft, scrollWidth, clientWidth } = el;
|
|
276
|
+
setCanScrollLeft(scrollLeft > 1);
|
|
277
|
+
setCanScrollRight(scrollLeft + clientWidth < scrollWidth - 1);
|
|
134
278
|
};
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
279
|
+
$[52] = isVertical;
|
|
280
|
+
$[53] = t18;
|
|
281
|
+
} else t18 = $[53];
|
|
282
|
+
const checkScroll = t18;
|
|
283
|
+
let t19;
|
|
284
|
+
if ($[54] !== checkScroll) {
|
|
285
|
+
t19 = () => {
|
|
286
|
+
checkScroll();
|
|
287
|
+
const el_0 = navListRef.current;
|
|
288
|
+
if (!el_0) return;
|
|
289
|
+
let ro;
|
|
290
|
+
if (typeof ResizeObserver !== "undefined") {
|
|
291
|
+
ro = new ResizeObserver(() => checkScroll());
|
|
292
|
+
ro.observe(el_0);
|
|
293
|
+
}
|
|
294
|
+
el_0.addEventListener("scroll", checkScroll, { passive: true });
|
|
295
|
+
return () => {
|
|
296
|
+
el_0.removeEventListener("scroll", checkScroll);
|
|
297
|
+
ro?.disconnect();
|
|
298
|
+
};
|
|
299
|
+
};
|
|
300
|
+
$[54] = checkScroll;
|
|
301
|
+
$[55] = t19;
|
|
302
|
+
} else t19 = $[55];
|
|
303
|
+
let t20;
|
|
304
|
+
if ($[56] !== checkScroll || $[57] !== resolvedItems.length) {
|
|
305
|
+
t20 = [checkScroll, resolvedItems.length];
|
|
306
|
+
$[56] = checkScroll;
|
|
307
|
+
$[57] = resolvedItems.length;
|
|
308
|
+
$[58] = t20;
|
|
309
|
+
} else t20 = $[58];
|
|
310
|
+
useEffect(t19, t20);
|
|
311
|
+
let t21;
|
|
312
|
+
if ($[59] === Symbol.for("react.memo_cache_sentinel")) {
|
|
313
|
+
t21 = (delta) => {
|
|
314
|
+
const el_1 = navListRef.current;
|
|
315
|
+
if (el_1) el_1.scrollBy({
|
|
316
|
+
left: delta,
|
|
317
|
+
behavior: "smooth"
|
|
318
|
+
});
|
|
319
|
+
};
|
|
320
|
+
$[59] = t21;
|
|
321
|
+
} else t21 = $[59];
|
|
322
|
+
const scrollBy = t21;
|
|
143
323
|
const showScrollButtons = canScrollLeft || canScrollRight;
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
324
|
+
const t22 = adaptHeight && "ald-adapt-height tw-h-full";
|
|
325
|
+
const t23 = size !== "small" && "ald-tabs-default";
|
|
326
|
+
const t24 = monospace && "ald-tabs-monospace";
|
|
327
|
+
const t25 = compact && "ald-tabs-compact";
|
|
328
|
+
const t26 = !hasDividing && "ald-tabs-no-dividing";
|
|
329
|
+
let t27;
|
|
330
|
+
if ($[60] !== className || $[61] !== rootDirectionClass || $[62] !== t22 || $[63] !== t23 || $[64] !== t24 || $[65] !== t25 || $[66] !== t26) {
|
|
331
|
+
t27 = cn("ald-tabs ant-tabs tw-flex", rootDirectionClass, t22, t23, t24, t25, t26, className);
|
|
332
|
+
$[60] = className;
|
|
333
|
+
$[61] = rootDirectionClass;
|
|
334
|
+
$[62] = t22;
|
|
335
|
+
$[63] = t23;
|
|
336
|
+
$[64] = t24;
|
|
337
|
+
$[65] = t25;
|
|
338
|
+
$[66] = t26;
|
|
339
|
+
$[67] = t27;
|
|
340
|
+
} else t27 = $[67];
|
|
341
|
+
const t28 = `${paddingVal}px`;
|
|
342
|
+
let t29;
|
|
343
|
+
if ($[68] !== headerBackgroundColor || $[69] !== style || $[70] !== t28) {
|
|
344
|
+
t29 = {
|
|
148
345
|
...style,
|
|
149
346
|
"--header-bg-color": headerBackgroundColor,
|
|
150
|
-
"--tabs-padding":
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
347
|
+
"--tabs-padding": t28
|
|
348
|
+
};
|
|
349
|
+
$[68] = headerBackgroundColor;
|
|
350
|
+
$[69] = style;
|
|
351
|
+
$[70] = t28;
|
|
352
|
+
$[71] = t29;
|
|
353
|
+
} else t29 = $[71];
|
|
354
|
+
const t30 = t29;
|
|
355
|
+
const t31 = isVertical ? "tw-shrink-0 tw-items-stretch" : "tw-items-center";
|
|
356
|
+
const t32 = isTop && "tw-mb-5";
|
|
357
|
+
const t33 = isBottom && "tw-mt-5";
|
|
358
|
+
const t34 = isTop && hasDividing && "tw-border-0 tw-border-b tw-border-solid tw-border-b-[var(--border-default)]";
|
|
359
|
+
const t35 = isBottom && hasDividing && "tw-border-0 tw-border-t tw-border-solid tw-border-t-[var(--border-default)]";
|
|
360
|
+
const t36 = isTop && compact && "!tw-mb-0";
|
|
361
|
+
const t37 = isBottom && compact && "!tw-mt-0";
|
|
362
|
+
const t38 = isLeft && "tw-flex-col tw-border-0 tw-border-r tw-border-solid tw-border-r-[var(--border-default)]";
|
|
363
|
+
const t39 = isRight && "tw-flex-col tw-border-0 tw-border-l tw-border-solid tw-border-l-[var(--border-default)]";
|
|
364
|
+
let t40;
|
|
365
|
+
if ($[72] !== t31 || $[73] !== t32 || $[74] !== t33 || $[75] !== t34 || $[76] !== t35 || $[77] !== t36 || $[78] !== t37 || $[79] !== t38 || $[80] !== t39) {
|
|
366
|
+
t40 = cn("ald-tabs-nav ant-tabs-nav tw-flex", t31, t32, t33, t34, t35, t36, t37, t38, t39);
|
|
367
|
+
$[72] = t31;
|
|
368
|
+
$[73] = t32;
|
|
369
|
+
$[74] = t33;
|
|
370
|
+
$[75] = t34;
|
|
371
|
+
$[76] = t35;
|
|
372
|
+
$[77] = t36;
|
|
373
|
+
$[78] = t37;
|
|
374
|
+
$[79] = t38;
|
|
375
|
+
$[80] = t39;
|
|
376
|
+
$[81] = t40;
|
|
377
|
+
} else t40 = $[81];
|
|
378
|
+
let t41;
|
|
379
|
+
if ($[82] !== headerBackgroundColor || $[83] !== tabBarStyle) {
|
|
380
|
+
t41 = headerBackgroundColor || tabBarStyle ? {
|
|
381
|
+
...tabBarStyle,
|
|
382
|
+
...headerBackgroundColor ? { backgroundColor: headerBackgroundColor } : {}
|
|
383
|
+
} : void 0;
|
|
384
|
+
$[82] = headerBackgroundColor;
|
|
385
|
+
$[83] = tabBarStyle;
|
|
386
|
+
$[84] = t41;
|
|
387
|
+
} else t41 = $[84];
|
|
388
|
+
let t42;
|
|
389
|
+
if ($[85] !== canScrollLeft || $[86] !== isVertical || $[87] !== showScrollButtons) {
|
|
390
|
+
t42 = showScrollButtons && !isVertical && /* @__PURE__ */ jsx("button", {
|
|
391
|
+
type: "button",
|
|
392
|
+
className: cn("ald-tabs-scroll-btn tw-flex tw-shrink-0 tw-items-center tw-justify-center tw-border-none tw-bg-[var(--action-ghost-normal)] tw-p-1 tw-text-[var(--content-secondary)] tw-transition-colors hover:tw-text-[var(--content-primary)]", !canScrollLeft && "tw-invisible"),
|
|
393
|
+
onClick: () => scrollBy(-200),
|
|
394
|
+
"aria-label": "Scroll tabs left",
|
|
395
|
+
children: /* @__PURE__ */ jsx(Memo, { size: 16 })
|
|
396
|
+
});
|
|
397
|
+
$[85] = canScrollLeft;
|
|
398
|
+
$[86] = isVertical;
|
|
399
|
+
$[87] = showScrollButtons;
|
|
400
|
+
$[88] = t42;
|
|
401
|
+
} else t42 = $[88];
|
|
402
|
+
const t43 = isVertical ? "tw-w-full tw-shrink-0 tw-self-stretch" : "tw-min-w-0 tw-flex-1";
|
|
403
|
+
let t44;
|
|
404
|
+
if ($[89] !== t43) {
|
|
405
|
+
t44 = cn("ald-tabs-nav-wrap ant-tabs-nav-wrap", t43);
|
|
406
|
+
$[89] = t43;
|
|
407
|
+
$[90] = t44;
|
|
408
|
+
} else t44 = $[90];
|
|
409
|
+
let t45;
|
|
410
|
+
if ($[91] !== paddingVal) {
|
|
411
|
+
t45 = paddingVal ? { margin: `0 ${paddingVal}px` } : void 0;
|
|
412
|
+
$[91] = paddingVal;
|
|
413
|
+
$[92] = t45;
|
|
414
|
+
} else t45 = $[92];
|
|
415
|
+
const t46 = isVertical ? "vertical" : "horizontal";
|
|
416
|
+
let t47;
|
|
417
|
+
if ($[93] !== getPreferredFocusKey) {
|
|
418
|
+
t47 = (e_3) => {
|
|
419
|
+
if (!e_3.currentTarget.contains(e_3.relatedTarget)) setFocusedKey(getPreferredFocusKey());
|
|
420
|
+
};
|
|
421
|
+
$[93] = getPreferredFocusKey;
|
|
422
|
+
$[94] = t47;
|
|
423
|
+
} else t47 = $[94];
|
|
424
|
+
const t48 = isVertical && "tw-w-full tw-shrink-0 tw-flex-col tw-self-stretch";
|
|
425
|
+
const t49 = centered && !isVertical && "tw-justify-center";
|
|
426
|
+
const t50 = monospace && "[&>*]:tw-flex-1";
|
|
427
|
+
const t51 = isCard ? "tw-gap-1" : !isVertical && !monospace && "tw-gap-8";
|
|
428
|
+
let t52;
|
|
429
|
+
if ($[95] !== t48 || $[96] !== t49 || $[97] !== t50 || $[98] !== t51) {
|
|
430
|
+
t52 = cn("ald-tabs-nav-list ant-tabs-nav-list tw-flex tw-overflow-hidden", t48, t49, t50, t51);
|
|
431
|
+
$[95] = t48;
|
|
432
|
+
$[96] = t49;
|
|
433
|
+
$[97] = t50;
|
|
434
|
+
$[98] = t51;
|
|
435
|
+
$[99] = t52;
|
|
436
|
+
} else t52 = $[99];
|
|
437
|
+
let t53;
|
|
438
|
+
if ($[100] !== isVertical) {
|
|
439
|
+
t53 = !isVertical ? {
|
|
440
|
+
scrollbarWidth: "none",
|
|
441
|
+
msOverflowStyle: "none"
|
|
442
|
+
} : void 0;
|
|
443
|
+
$[100] = isVertical;
|
|
444
|
+
$[101] = t53;
|
|
445
|
+
} else t53 = $[101];
|
|
446
|
+
let t54;
|
|
447
|
+
if ($[102] !== activeKey || $[103] !== focusedKey || $[104] !== getPanelId || $[105] !== getTabId || $[106] !== handleRemove || $[107] !== handleTabClick || $[108] !== handleTabKeyDown || $[109] !== isBottom || $[110] !== isCard || $[111] !== isEditable || $[112] !== isLeft || $[113] !== isRight || $[114] !== isTop || $[115] !== isVertical || $[116] !== monospace || $[117] !== resolvedItems || $[118] !== size) {
|
|
448
|
+
t54 = resolvedItems.map((item_7) => {
|
|
449
|
+
const isActive = activeKey === item_7.key;
|
|
450
|
+
const showClose = isEditable && item_7.closable !== false;
|
|
451
|
+
const closeLabel = typeof item_7.label === "string" || typeof item_7.label === "number" ? `Remove ${item_7.label}` : "Remove tab";
|
|
452
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
453
|
+
className: cn("ald-tabs-tab ant-tabs-tab tw-relative tw-flex tw-shrink-0 tw-items-center tw-gap-2 tw-whitespace-nowrap tw-transition-colors", isVertical && "tw-w-full tw-self-stretch", isCard ? cn("tw-h-10 tw-rounded-t-[6px] tw-border tw-border-b-0 tw-border-solid tw-px-4 tw-text-sm tw-leading-5", "tw-gap-sp-75", isActive ? "tw-border-[var(--border-default)] tw-bg-[var(--background-default)] tw-font-medium tw-text-[var(--content-brand-primary)]" : "tw-border-[var(--border-default)] tw-bg-[var(--background-default)] tw-text-[var(--content-secondary)] hover:tw-text-inherit") : cn(size === "small" ? "tw-py-2 tw-text-xs tw-leading-4" : "tw-py-2.5 tw-text-sm tw-leading-5", monospace && "tw-justify-center", isActive ? "tw-font-medium tw-text-[var(--content-brand-primary)]" : "tw-font-medium tw-text-[var(--content-secondary)] hover:tw-text-inherit"), item_7.disabled && "tw-pointer-events-none tw-cursor-default tw-opacity-50", !item_7.disabled && [
|
|
454
|
+
"has-[.ald-tabs-tab-trigger:focus-visible]:tw-shadow-[inset_0_0_0_2px_var(--focus-ring)]",
|
|
455
|
+
"forced-colors:has-[.ald-tabs-tab-trigger:focus-visible]:tw-outline",
|
|
456
|
+
"forced-colors:has-[.ald-tabs-tab-trigger:focus-visible]:tw-outline-2",
|
|
457
|
+
"forced-colors:has-[.ald-tabs-tab-trigger:focus-visible]:tw-outline-offset-[-2px]",
|
|
458
|
+
"forced-colors:has-[.ald-tabs-tab-trigger:focus-visible]:tw-outline-[Highlight]"
|
|
459
|
+
]),
|
|
460
|
+
children: [
|
|
461
|
+
/* @__PURE__ */ jsxs("div", {
|
|
462
|
+
ref: (node) => {
|
|
463
|
+
tabRefs.current[item_7.key] = node;
|
|
177
464
|
},
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
"forced-colors:has-[.ald-tabs-tab-trigger:focus-visible]:tw-outline-2",
|
|
192
|
-
"forced-colors:has-[.ald-tabs-tab-trigger:focus-visible]:tw-outline-offset-[-2px]",
|
|
193
|
-
"forced-colors:has-[.ald-tabs-tab-trigger:focus-visible]:tw-outline-[Highlight]"
|
|
194
|
-
]),
|
|
195
|
-
children: [
|
|
196
|
-
/* @__PURE__ */ jsxs("div", {
|
|
197
|
-
ref: (node) => {
|
|
198
|
-
tabRefs.current[item.key] = node;
|
|
199
|
-
},
|
|
200
|
-
id: getTabId(item.key),
|
|
201
|
-
role: "tab",
|
|
202
|
-
"aria-selected": isActive,
|
|
203
|
-
"aria-controls": getPanelId(item.key),
|
|
204
|
-
"aria-disabled": item.disabled || void 0,
|
|
205
|
-
tabIndex: !item.disabled && focusedKey === item.key ? 0 : -1,
|
|
206
|
-
className: cn("ald-tabs-tab-trigger tw-flex tw-min-w-0 tw-flex-1 tw-cursor-pointer tw-items-center tw-whitespace-nowrap", isCard ? "tw-gap-sp-75" : "tw-gap-2", monospace && "tw-justify-center"),
|
|
207
|
-
onClick: item.disabled ? void 0 : (e) => handleTabClick(item.key, e),
|
|
208
|
-
onFocus: () => setFocusedKey(item.key),
|
|
209
|
-
onKeyDown: (e) => handleTabKeyDown(item, e),
|
|
210
|
-
children: [item.icon, /* @__PURE__ */ jsx("span", {
|
|
211
|
-
className: "ant-tabs-tab-btn",
|
|
212
|
-
children: item.label
|
|
213
|
-
})]
|
|
214
|
-
}),
|
|
215
|
-
showClose && /* @__PURE__ */ jsx("button", {
|
|
216
|
-
type: "button",
|
|
217
|
-
className: "ald-tabs-tab-remove tw-m-0 tw-grid tw-size-4 tw-cursor-pointer tw-place-items-center tw-border-0 tw-bg-transparent tw-p-0 tw-text-[var(--content-secondary)] tw-transition-colors hover:tw-text-[var(--content-primary)]",
|
|
218
|
-
onClick: (e) => handleRemove(item.key, e),
|
|
219
|
-
"aria-label": closeLabel,
|
|
220
|
-
children: /* @__PURE__ */ jsx(Memo$2, { size: 12 })
|
|
221
|
-
}),
|
|
222
|
-
!isCard && isActive && isTop && /* @__PURE__ */ jsx("div", { className: "ant-tabs-ink-bar tw-absolute tw-inset-x-0 tw--bottom-px tw-h-[2px] tw-rounded-[2px] tw-bg-[var(--border-brand-strong)]" }),
|
|
223
|
-
!isCard && isActive && isBottom && /* @__PURE__ */ jsx("div", { className: "ant-tabs-ink-bar tw-absolute tw-inset-x-0 tw--top-px tw-h-[2px] tw-rounded-[2px] tw-bg-[var(--border-brand-strong)]" }),
|
|
224
|
-
!isCard && isActive && isLeft && /* @__PURE__ */ jsx("div", { className: "tw-absolute tw-inset-y-0 tw--right-px tw-w-[2px] tw-rounded-[2px] tw-bg-[var(--border-brand-strong)]" }),
|
|
225
|
-
!isCard && isActive && isRight && /* @__PURE__ */ jsx("div", { className: "tw-absolute tw-inset-y-0 tw--left-px tw-w-[2px] tw-rounded-[2px] tw-bg-[var(--border-brand-strong)]" })
|
|
226
|
-
]
|
|
227
|
-
}, item.key);
|
|
228
|
-
})
|
|
229
|
-
})
|
|
230
|
-
}),
|
|
231
|
-
showScrollButtons && !isVertical && /* @__PURE__ */ jsx("button", {
|
|
232
|
-
type: "button",
|
|
233
|
-
className: cn("ald-tabs-scroll-btn tw-flex tw-shrink-0 tw-items-center tw-justify-center tw-border-none tw-bg-[var(--action-ghost-normal)] tw-p-1 tw-text-[var(--content-secondary)] tw-transition-colors hover:tw-text-[var(--content-primary)]", !canScrollRight && "tw-invisible"),
|
|
234
|
-
onClick: () => scrollBy(200),
|
|
235
|
-
"aria-label": "Scroll tabs right",
|
|
236
|
-
children: /* @__PURE__ */ jsx(Memo$1, { size: 16 })
|
|
237
|
-
}),
|
|
238
|
-
isEditable && !hideAdd && /* @__PURE__ */ jsx("button", {
|
|
239
|
-
type: "button",
|
|
240
|
-
className: "ald-tabs-nav-add tw-ml-1 tw-flex tw-shrink-0 tw-cursor-pointer tw-items-center tw-justify-center tw-rounded tw-border tw-border-solid tw-border-[var(--border-default)] tw-bg-[var(--background-default)] tw-px-2 tw-py-1 tw-text-[var(--content-secondary)] tw-transition-colors hover:tw-text-[var(--content-primary)]",
|
|
241
|
-
onClick: handleAdd,
|
|
242
|
-
"aria-label": "Add tab",
|
|
243
|
-
children: /* @__PURE__ */ jsxs("svg", {
|
|
244
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
245
|
-
width: "14",
|
|
246
|
-
height: "14",
|
|
247
|
-
viewBox: "0 0 24 24",
|
|
248
|
-
fill: "none",
|
|
249
|
-
stroke: "currentColor",
|
|
250
|
-
strokeWidth: "2",
|
|
251
|
-
strokeLinecap: "round",
|
|
252
|
-
strokeLinejoin: "round",
|
|
253
|
-
children: [/* @__PURE__ */ jsx("line", {
|
|
254
|
-
x1: "12",
|
|
255
|
-
y1: "5",
|
|
256
|
-
x2: "12",
|
|
257
|
-
y2: "19"
|
|
258
|
-
}), /* @__PURE__ */ jsx("line", {
|
|
259
|
-
x1: "5",
|
|
260
|
-
y1: "12",
|
|
261
|
-
x2: "19",
|
|
262
|
-
y2: "12"
|
|
465
|
+
id: getTabId(item_7.key),
|
|
466
|
+
role: "tab",
|
|
467
|
+
"aria-selected": isActive,
|
|
468
|
+
"aria-controls": getPanelId(item_7.key),
|
|
469
|
+
"aria-disabled": item_7.disabled || void 0,
|
|
470
|
+
tabIndex: !item_7.disabled && focusedKey === item_7.key ? 0 : -1,
|
|
471
|
+
className: cn("ald-tabs-tab-trigger tw-flex tw-min-w-0 tw-flex-1 tw-cursor-pointer tw-items-center tw-whitespace-nowrap", isCard ? "tw-gap-sp-75" : "tw-gap-2", monospace && "tw-justify-center"),
|
|
472
|
+
onClick: item_7.disabled ? void 0 : (e_4) => handleTabClick(item_7.key, e_4),
|
|
473
|
+
onFocus: () => setFocusedKey(item_7.key),
|
|
474
|
+
onKeyDown: (e_5) => handleTabKeyDown(item_7, e_5),
|
|
475
|
+
children: [item_7.icon, /* @__PURE__ */ jsx("span", {
|
|
476
|
+
className: "ant-tabs-tab-btn",
|
|
477
|
+
children: item_7.label
|
|
263
478
|
})]
|
|
264
|
-
})
|
|
265
|
-
|
|
479
|
+
}),
|
|
480
|
+
showClose && /* @__PURE__ */ jsx("button", {
|
|
481
|
+
type: "button",
|
|
482
|
+
className: "ald-tabs-tab-remove tw-m-0 tw-grid tw-size-4 tw-cursor-pointer tw-place-items-center tw-border-0 tw-bg-transparent tw-p-0 tw-text-[var(--content-secondary)] tw-transition-colors hover:tw-text-[var(--content-primary)]",
|
|
483
|
+
onClick: (e_6) => handleRemove(item_7.key, e_6),
|
|
484
|
+
"aria-label": closeLabel,
|
|
485
|
+
children: /* @__PURE__ */ jsx(Memo$2, { size: 12 })
|
|
486
|
+
}),
|
|
487
|
+
!isCard && isActive && isTop && /* @__PURE__ */ jsx("div", { className: "ant-tabs-ink-bar tw-absolute tw-inset-x-0 tw--bottom-px tw-h-[2px] tw-rounded-[2px] tw-bg-[var(--border-brand-strong)]" }),
|
|
488
|
+
!isCard && isActive && isBottom && /* @__PURE__ */ jsx("div", { className: "ant-tabs-ink-bar tw-absolute tw-inset-x-0 tw--top-px tw-h-[2px] tw-rounded-[2px] tw-bg-[var(--border-brand-strong)]" }),
|
|
489
|
+
!isCard && isActive && isLeft && /* @__PURE__ */ jsx("div", { className: "tw-absolute tw-inset-y-0 tw--right-px tw-w-[2px] tw-rounded-[2px] tw-bg-[var(--border-brand-strong)]" }),
|
|
490
|
+
!isCard && isActive && isRight && /* @__PURE__ */ jsx("div", { className: "tw-absolute tw-inset-y-0 tw--left-px tw-w-[2px] tw-rounded-[2px] tw-bg-[var(--border-brand-strong)]" })
|
|
491
|
+
]
|
|
492
|
+
}, item_7.key);
|
|
493
|
+
});
|
|
494
|
+
$[102] = activeKey;
|
|
495
|
+
$[103] = focusedKey;
|
|
496
|
+
$[104] = getPanelId;
|
|
497
|
+
$[105] = getTabId;
|
|
498
|
+
$[106] = handleRemove;
|
|
499
|
+
$[107] = handleTabClick;
|
|
500
|
+
$[108] = handleTabKeyDown;
|
|
501
|
+
$[109] = isBottom;
|
|
502
|
+
$[110] = isCard;
|
|
503
|
+
$[111] = isEditable;
|
|
504
|
+
$[112] = isLeft;
|
|
505
|
+
$[113] = isRight;
|
|
506
|
+
$[114] = isTop;
|
|
507
|
+
$[115] = isVertical;
|
|
508
|
+
$[116] = monospace;
|
|
509
|
+
$[117] = resolvedItems;
|
|
510
|
+
$[118] = size;
|
|
511
|
+
$[119] = t54;
|
|
512
|
+
} else t54 = $[119];
|
|
513
|
+
let t55;
|
|
514
|
+
if ($[120] !== ariaLabel || $[121] !== t46 || $[122] !== t47 || $[123] !== t52 || $[124] !== t53 || $[125] !== t54) {
|
|
515
|
+
t55 = /* @__PURE__ */ jsx("div", {
|
|
516
|
+
ref: navListRef,
|
|
517
|
+
role: "tablist",
|
|
518
|
+
"aria-label": ariaLabel,
|
|
519
|
+
"aria-orientation": t46,
|
|
520
|
+
onBlur: t47,
|
|
521
|
+
className: t52,
|
|
522
|
+
style: t53,
|
|
523
|
+
children: t54
|
|
524
|
+
});
|
|
525
|
+
$[120] = ariaLabel;
|
|
526
|
+
$[121] = t46;
|
|
527
|
+
$[122] = t47;
|
|
528
|
+
$[123] = t52;
|
|
529
|
+
$[124] = t53;
|
|
530
|
+
$[125] = t54;
|
|
531
|
+
$[126] = t55;
|
|
532
|
+
} else t55 = $[126];
|
|
533
|
+
let t56;
|
|
534
|
+
if ($[127] !== t44 || $[128] !== t45 || $[129] !== t55) {
|
|
535
|
+
t56 = /* @__PURE__ */ jsx("div", {
|
|
536
|
+
className: t44,
|
|
537
|
+
style: t45,
|
|
538
|
+
children: t55
|
|
539
|
+
});
|
|
540
|
+
$[127] = t44;
|
|
541
|
+
$[128] = t45;
|
|
542
|
+
$[129] = t55;
|
|
543
|
+
$[130] = t56;
|
|
544
|
+
} else t56 = $[130];
|
|
545
|
+
let t57;
|
|
546
|
+
if ($[131] !== canScrollRight || $[132] !== isVertical || $[133] !== showScrollButtons) {
|
|
547
|
+
t57 = showScrollButtons && !isVertical && /* @__PURE__ */ jsx("button", {
|
|
548
|
+
type: "button",
|
|
549
|
+
className: cn("ald-tabs-scroll-btn tw-flex tw-shrink-0 tw-items-center tw-justify-center tw-border-none tw-bg-[var(--action-ghost-normal)] tw-p-1 tw-text-[var(--content-secondary)] tw-transition-colors hover:tw-text-[var(--content-primary)]", !canScrollRight && "tw-invisible"),
|
|
550
|
+
onClick: () => scrollBy(200),
|
|
551
|
+
"aria-label": "Scroll tabs right",
|
|
552
|
+
children: /* @__PURE__ */ jsx(Memo$1, { size: 16 })
|
|
553
|
+
});
|
|
554
|
+
$[131] = canScrollRight;
|
|
555
|
+
$[132] = isVertical;
|
|
556
|
+
$[133] = showScrollButtons;
|
|
557
|
+
$[134] = t57;
|
|
558
|
+
} else t57 = $[134];
|
|
559
|
+
let t58;
|
|
560
|
+
if ($[135] !== handleAdd || $[136] !== hideAdd || $[137] !== isEditable) {
|
|
561
|
+
t58 = isEditable && !hideAdd && /* @__PURE__ */ jsx("button", {
|
|
562
|
+
type: "button",
|
|
563
|
+
className: "ald-tabs-nav-add tw-ml-1 tw-flex tw-shrink-0 tw-cursor-pointer tw-items-center tw-justify-center tw-rounded tw-border tw-border-solid tw-border-[var(--border-default)] tw-bg-[var(--background-default)] tw-px-2 tw-py-1 tw-text-[var(--content-secondary)] tw-transition-colors hover:tw-text-[var(--content-primary)]",
|
|
564
|
+
onClick: handleAdd,
|
|
565
|
+
"aria-label": "Add tab",
|
|
566
|
+
children: /* @__PURE__ */ jsxs("svg", {
|
|
567
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
568
|
+
width: "14",
|
|
569
|
+
height: "14",
|
|
570
|
+
viewBox: "0 0 24 24",
|
|
571
|
+
fill: "none",
|
|
572
|
+
stroke: "currentColor",
|
|
573
|
+
strokeWidth: "2",
|
|
574
|
+
strokeLinecap: "round",
|
|
575
|
+
strokeLinejoin: "round",
|
|
576
|
+
children: [/* @__PURE__ */ jsx("line", {
|
|
577
|
+
x1: "12",
|
|
578
|
+
y1: "5",
|
|
579
|
+
x2: "12",
|
|
580
|
+
y2: "19"
|
|
581
|
+
}), /* @__PURE__ */ jsx("line", {
|
|
582
|
+
x1: "5",
|
|
583
|
+
y1: "12",
|
|
584
|
+
x2: "19",
|
|
585
|
+
y2: "12"
|
|
586
|
+
})]
|
|
587
|
+
})
|
|
588
|
+
});
|
|
589
|
+
$[135] = handleAdd;
|
|
590
|
+
$[136] = hideAdd;
|
|
591
|
+
$[137] = isEditable;
|
|
592
|
+
$[138] = t58;
|
|
593
|
+
} else t58 = $[138];
|
|
594
|
+
let t59;
|
|
595
|
+
if ($[139] !== extraLeft || $[140] !== extraRight || $[141] !== t40 || $[142] !== t41 || $[143] !== t42 || $[144] !== t56 || $[145] !== t57 || $[146] !== t58) {
|
|
596
|
+
t59 = /* @__PURE__ */ jsxs("div", {
|
|
597
|
+
className: t40,
|
|
598
|
+
style: t41,
|
|
599
|
+
children: [
|
|
600
|
+
extraLeft,
|
|
601
|
+
t42,
|
|
602
|
+
t56,
|
|
603
|
+
t57,
|
|
604
|
+
t58,
|
|
266
605
|
extraRight
|
|
267
606
|
]
|
|
268
|
-
})
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
607
|
+
});
|
|
608
|
+
$[139] = extraLeft;
|
|
609
|
+
$[140] = extraRight;
|
|
610
|
+
$[141] = t40;
|
|
611
|
+
$[142] = t41;
|
|
612
|
+
$[143] = t42;
|
|
613
|
+
$[144] = t56;
|
|
614
|
+
$[145] = t57;
|
|
615
|
+
$[146] = t58;
|
|
616
|
+
$[147] = t59;
|
|
617
|
+
} else t59 = $[147];
|
|
618
|
+
const t60 = adaptHeight && "tw-h-full";
|
|
619
|
+
let t61;
|
|
620
|
+
if ($[148] !== t60) {
|
|
621
|
+
t61 = cn("ald-tabs-content ant-tabs-content ant-tabs-content-holder tw-min-h-0 tw-flex-1", t60);
|
|
622
|
+
$[148] = t60;
|
|
623
|
+
$[149] = t61;
|
|
624
|
+
} else t61 = $[149];
|
|
625
|
+
let t62;
|
|
626
|
+
if ($[150] !== paddingVal) {
|
|
627
|
+
t62 = paddingVal ? { padding: `0 ${paddingVal}px ${paddingVal}px` } : void 0;
|
|
628
|
+
$[150] = paddingVal;
|
|
629
|
+
$[151] = t62;
|
|
630
|
+
} else t62 = $[151];
|
|
631
|
+
let t63;
|
|
632
|
+
if ($[152] !== activeKey || $[153] !== adaptHeight || $[154] !== destroyInactiveTabPane || $[155] !== getPanelId || $[156] !== getTabId || $[157] !== resolvedItems) {
|
|
633
|
+
let t64;
|
|
634
|
+
if ($[159] !== activeKey || $[160] !== adaptHeight || $[161] !== destroyInactiveTabPane || $[162] !== getPanelId || $[163] !== getTabId) {
|
|
635
|
+
t64 = (item_8) => {
|
|
636
|
+
const isActive_0 = item_8.key === activeKey;
|
|
637
|
+
if (!isActive_0 && destroyInactiveTabPane && !item_8.forceRender) return null;
|
|
274
638
|
return /* @__PURE__ */ jsx("div", {
|
|
275
|
-
className: cn("ald-tabs-tabpane ant-tabs-tabpane", adaptHeight && "tw-h-full tw-overflow-y-auto",
|
|
639
|
+
className: cn("ald-tabs-tabpane ant-tabs-tabpane", adaptHeight && "tw-h-full tw-overflow-y-auto", isActive_0 ? "ant-tabs-tabpane-active tw-block" : "tw-hidden"),
|
|
276
640
|
role: "tabpanel",
|
|
277
|
-
id: getPanelId(
|
|
278
|
-
"aria-labelledby": getTabId(
|
|
279
|
-
"aria-hidden": !
|
|
280
|
-
children:
|
|
281
|
-
},
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
|
|
641
|
+
id: getPanelId(item_8.key),
|
|
642
|
+
"aria-labelledby": getTabId(item_8.key),
|
|
643
|
+
"aria-hidden": !isActive_0 || void 0,
|
|
644
|
+
children: item_8.children
|
|
645
|
+
}, item_8.key);
|
|
646
|
+
};
|
|
647
|
+
$[159] = activeKey;
|
|
648
|
+
$[160] = adaptHeight;
|
|
649
|
+
$[161] = destroyInactiveTabPane;
|
|
650
|
+
$[162] = getPanelId;
|
|
651
|
+
$[163] = getTabId;
|
|
652
|
+
$[164] = t64;
|
|
653
|
+
} else t64 = $[164];
|
|
654
|
+
t63 = resolvedItems.map(t64);
|
|
655
|
+
$[152] = activeKey;
|
|
656
|
+
$[153] = adaptHeight;
|
|
657
|
+
$[154] = destroyInactiveTabPane;
|
|
658
|
+
$[155] = getPanelId;
|
|
659
|
+
$[156] = getTabId;
|
|
660
|
+
$[157] = resolvedItems;
|
|
661
|
+
$[158] = t63;
|
|
662
|
+
} else t63 = $[158];
|
|
663
|
+
let t64;
|
|
664
|
+
if ($[165] !== t61 || $[166] !== t62 || $[167] !== t63) {
|
|
665
|
+
t64 = /* @__PURE__ */ jsx("div", {
|
|
666
|
+
className: t61,
|
|
667
|
+
style: t62,
|
|
668
|
+
children: t63
|
|
669
|
+
});
|
|
670
|
+
$[165] = t61;
|
|
671
|
+
$[166] = t62;
|
|
672
|
+
$[167] = t63;
|
|
673
|
+
$[168] = t64;
|
|
674
|
+
} else t64 = $[168];
|
|
675
|
+
let t65;
|
|
676
|
+
if ($[169] !== dataTestId || $[170] !== t27 || $[171] !== t30 || $[172] !== t59 || $[173] !== t64) {
|
|
677
|
+
t65 = /* @__PURE__ */ jsxs("div", {
|
|
678
|
+
"data-testid": dataTestId,
|
|
679
|
+
className: t27,
|
|
680
|
+
style: t30,
|
|
681
|
+
children: [t59, t64]
|
|
682
|
+
});
|
|
683
|
+
$[169] = dataTestId;
|
|
684
|
+
$[170] = t27;
|
|
685
|
+
$[171] = t30;
|
|
686
|
+
$[172] = t59;
|
|
687
|
+
$[173] = t64;
|
|
688
|
+
$[174] = t65;
|
|
689
|
+
} else t65 = $[174];
|
|
690
|
+
return t65;
|
|
691
|
+
}
|
|
692
|
+
function _temp4(candidate) {
|
|
693
|
+
return !candidate.disabled;
|
|
694
|
+
}
|
|
695
|
+
function _temp3(item_5) {
|
|
696
|
+
return !item_5.disabled;
|
|
697
|
+
}
|
|
698
|
+
function _temp2(item_0) {
|
|
699
|
+
return !item_0.disabled;
|
|
700
|
+
}
|
|
701
|
+
function _temp(child) {
|
|
702
|
+
return {
|
|
703
|
+
key: child.key || child.props.key || "",
|
|
704
|
+
label: child.props.tab,
|
|
705
|
+
children: child.props.children,
|
|
706
|
+
disabled: child.props.disabled,
|
|
707
|
+
closable: child.props.closable,
|
|
708
|
+
forceRender: child.props.forceRender
|
|
709
|
+
};
|
|
285
710
|
}
|
|
286
711
|
Tabs.TabPane = TabPane;
|
|
287
712
|
//#endregion
|