@oceanbase/ui 1.0.0-alpha.2 → 1.0.0-alpha.20
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/static/Inter-Medium.ea234620.woff2 +0 -0
- package/dist/static/Inter-Regular.34ba43c9.woff2 +0 -0
- package/dist/static/Inter-SemiBold.95439fb4.woff2 +0 -0
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +1 -1
- package/es/Action/Group.d.ts +1 -2
- package/es/Action/Group.js +340 -62
- package/es/Action/Item.d.ts +6 -15
- package/es/Action/Item.js +86 -128
- package/es/Action/index.d.ts +6 -3
- package/es/Action/index.js +1 -0
- package/es/Action/style/index.d.ts +2 -2
- package/es/Action/style/index.js +8 -4
- package/es/BackgroundTaskManager/RefreshMan.js +1 -0
- package/es/BackgroundTaskManager/index.d.ts +2 -0
- package/es/BackgroundTaskManager/index.js +26 -4
- package/es/BasicLayout/Header.js +1 -0
- package/es/BasicLayout/index.d.ts +3 -1
- package/es/BasicLayout/index.js +63 -24
- package/es/BasicLayout/locale/en-US.d.ts +3 -0
- package/es/BasicLayout/locale/en-US.js +4 -1
- package/es/BasicLayout/locale/ja-JP.d.ts +16 -0
- package/es/BasicLayout/locale/ja-JP.js +15 -0
- package/es/BasicLayout/locale/zh-CN.d.ts +3 -0
- package/es/BasicLayout/locale/zh-CN.js +4 -1
- package/es/BasicLayout/locale/zh-TW.d.ts +3 -0
- package/es/BasicLayout/locale/zh-TW.js +4 -1
- package/es/BasicLayout/style/index.js +45 -25
- package/es/BatchOperationBar/index.d.ts +0 -1
- package/es/BatchOperationBar/index.js +33 -17
- package/es/BatchOperationBar/locale/en-US.d.ts +1 -0
- package/es/BatchOperationBar/locale/en-US.js +2 -1
- package/es/BatchOperationBar/locale/ja-JP.d.ts +8 -0
- package/es/BatchOperationBar/locale/ja-JP.js +7 -0
- package/es/BatchOperationBar/locale/zh-CN.d.ts +1 -0
- package/es/BatchOperationBar/locale/zh-CN.js +2 -1
- package/es/BatchOperationBar/locale/zh-TW.d.ts +1 -0
- package/es/BatchOperationBar/locale/zh-TW.js +2 -1
- package/es/BatchOperationBar/style/index.d.ts +10 -0
- package/es/BatchOperationBar/style/index.js +56 -0
- package/es/Boundary/Components/Code.js +13 -6
- package/es/Boundary/Components/Exception.js +86 -74
- package/es/Boundary/Components/Function.js +13 -6
- package/es/Boundary/index.d.ts +0 -1
- package/es/Boundary/index.js +1 -1
- package/es/Boundary/locale/en-US.js +1 -1
- package/es/Boundary/locale/ja-JP.d.ts +11 -0
- package/es/Boundary/locale/ja-JP.js +10 -0
- package/es/Boundary/locale/zh-CN.js +1 -1
- package/es/Boundary/locale/zh-TW.js +1 -1
- package/es/Boundary/style/index.d.ts +10 -0
- package/es/Boundary/style/index.js +48 -0
- package/es/ContentWithIcon/index.d.ts +0 -1
- package/es/ContentWithIcon/index.js +30 -29
- package/es/ContentWithIcon/style/index.d.ts +10 -0
- package/es/ContentWithIcon/style/index.js +26 -0
- package/es/ContentWithQuestion/index.js +1 -0
- package/es/DateRanger/EditableDateTimeInput.d.ts +23 -0
- package/es/DateRanger/EditableDateTimeInput.js +129 -0
- package/es/DateRanger/PickerPanel.js +37 -20
- package/es/DateRanger/Ranger.d.ts +4 -2
- package/es/DateRanger/Ranger.js +71 -49
- package/es/DateRanger/hooks/index.d.ts +4 -0
- package/es/DateRanger/hooks/index.js +2 -0
- package/es/DateRanger/hooks/useAutoWidthInput.d.ts +13 -0
- package/es/DateRanger/hooks/useAutoWidthInput.js +44 -0
- package/es/DateRanger/hooks/useSegmentedInput.d.ts +31 -0
- package/es/DateRanger/hooks/useSegmentedInput.js +304 -0
- package/es/DateRanger/index.js +1 -0
- package/es/DateRanger/locale/en-US.d.ts +2 -0
- package/es/DateRanger/locale/en-US.js +3 -1
- package/es/DateRanger/locale/ja-JP.d.ts +58 -0
- package/es/DateRanger/locale/ja-JP.js +22 -0
- package/es/DateRanger/locale/zh-CN.d.ts +2 -0
- package/es/DateRanger/locale/zh-CN.js +3 -1
- package/es/DateRanger/locale/zh-TW.d.ts +2 -0
- package/es/DateRanger/locale/zh-TW.js +3 -1
- package/es/DateRanger/style/index.d.ts +10 -0
- package/es/DateRanger/style/index.js +164 -0
- package/es/Dialog/Anchor.d.ts +2 -10
- package/es/Dialog/Anchor.js +68 -96
- package/es/Dialog/EventProxy.js +1 -0
- package/es/Dialog/index.d.ts +5 -1
- package/es/Dialog/index.js +599 -576
- package/es/Dialog/locale/en-US.d.ts +5 -0
- package/es/Dialog/locale/en-US.js +6 -1
- package/es/Dialog/locale/ja-JP.d.ts +10 -0
- package/es/Dialog/locale/ja-JP.js +9 -0
- package/es/Dialog/locale/zh-CN.d.ts +5 -0
- package/es/Dialog/locale/zh-CN.js +6 -1
- package/es/Dialog/locale/zh-TW.d.ts +5 -0
- package/es/Dialog/locale/zh-TW.js +6 -1
- package/es/Dialog/style/index.d.ts +10 -0
- package/es/Dialog/style/index.js +116 -0
- package/es/DocDialog/index.js +29 -9
- package/es/DocDialog/locale/en-US.d.ts +3 -1
- package/es/DocDialog/locale/en-US.js +3 -1
- package/es/DocDialog/locale/ja-JP.d.ts +4 -0
- package/es/DocDialog/locale/ja-JP.js +3 -0
- package/es/DocDialog/locale/zh-CN.d.ts +3 -1
- package/es/DocDialog/locale/zh-CN.js +3 -1
- package/es/DocDialog/locale/zh-TW.d.ts +3 -1
- package/es/DocDialog/locale/zh-TW.js +3 -1
- package/es/FooterToolbar/index.d.ts +7 -4
- package/es/FooterToolbar/index.js +28 -11
- package/es/FooterToolbar/locale/en-US.d.ts +4 -0
- package/es/FooterToolbar/locale/en-US.js +3 -0
- package/es/FooterToolbar/locale/ja-JP.d.ts +4 -0
- package/es/FooterToolbar/locale/ja-JP.js +3 -0
- package/es/FooterToolbar/locale/zh-CN.d.ts +4 -0
- package/es/FooterToolbar/locale/zh-CN.js +3 -0
- package/es/FooterToolbar/locale/zh-TW.d.ts +4 -0
- package/es/FooterToolbar/locale/zh-TW.js +3 -0
- package/es/FooterToolbar/style/index.d.ts +0 -2
- package/es/FooterToolbar/style/index.js +10 -19
- package/es/FullscreenBox/index.d.ts +0 -1
- package/es/FullscreenBox/index.js +62 -44
- package/es/FullscreenBox/locale/en-US.d.ts +4 -1
- package/es/FullscreenBox/locale/en-US.js +4 -1
- package/es/FullscreenBox/locale/ja-JP.d.ts +5 -0
- package/es/FullscreenBox/locale/ja-JP.js +4 -0
- package/es/FullscreenBox/locale/zh-CN.d.ts +4 -1
- package/es/FullscreenBox/locale/zh-CN.js +4 -1
- package/es/FullscreenBox/locale/zh-TW.d.ts +4 -1
- package/es/FullscreenBox/locale/zh-TW.js +4 -1
- package/es/FullscreenBox/style/index.d.ts +10 -0
- package/es/FullscreenBox/style/index.js +74 -0
- package/es/Highlight/DiffView/DiffCells.js +1 -0
- package/es/Highlight/DiffView/index.d.ts +0 -1
- package/es/Highlight/DiffView/index.js +6 -5
- package/es/Highlight/HighlightCell.js +1 -0
- package/es/Highlight/JsonView.d.ts +0 -1
- package/es/Highlight/JsonView.js +6 -5
- package/es/Highlight/index.d.ts +1 -2
- package/es/Highlight/index.js +33 -25
- package/es/Highlight/locale/en-US.d.ts +2 -0
- package/es/Highlight/locale/en-US.js +3 -1
- package/es/Highlight/locale/ja-JP.d.ts +6 -0
- package/es/Highlight/locale/ja-JP.js +5 -0
- package/es/Highlight/locale/zh-CN.d.ts +2 -0
- package/es/Highlight/locale/zh-CN.js +3 -1
- package/es/Highlight/locale/zh-TW.d.ts +2 -0
- package/es/Highlight/locale/zh-TW.js +3 -1
- package/es/Highlight/style/index.d.ts +10 -0
- package/es/Highlight/style/index.js +213 -0
- package/es/Highlight/useKeyDownCopyEvent.js +1 -0
- package/es/IconFont/index.js +1 -0
- package/es/LightFilter/index.d.ts +6 -2
- package/es/LightFilter/index.js +25 -8
- package/es/LightFilter/locale/en-US.d.ts +4 -0
- package/es/LightFilter/locale/en-US.js +3 -0
- package/es/LightFilter/locale/ja-JP.d.ts +4 -0
- package/es/LightFilter/locale/ja-JP.js +3 -0
- package/es/LightFilter/locale/zh-CN.d.ts +4 -0
- package/es/LightFilter/locale/zh-CN.js +3 -0
- package/es/LightFilter/locale/zh-TW.d.ts +4 -0
- package/es/LightFilter/locale/zh-TW.js +3 -0
- package/es/LocaleDropdown/index.js +5 -2
- package/es/Login/ActivateForm.d.ts +0 -1
- package/es/Login/ActivateForm.js +13 -9
- package/es/Login/LoginForm.d.ts +0 -1
- package/es/Login/LoginForm.js +21 -15
- package/es/Login/RegisterForm.d.ts +0 -1
- package/es/Login/RegisterForm.js +15 -11
- package/es/Login/index.d.ts +0 -1
- package/es/Login/index.js +25 -22
- package/es/Login/locale/ja-JP.d.ts +28 -0
- package/es/Login/locale/ja-JP.js +27 -0
- package/es/Login/locale/zh-CN.js +2 -2
- package/es/Login/style/index.d.ts +10 -0
- package/es/Login/style/index.js +182 -0
- package/es/Lottie/index.js +1 -0
- package/es/NavMenu/index.d.ts +5 -3
- package/es/NavMenu/index.js +39 -13
- package/es/NavMenu/locale/en-US.d.ts +4 -0
- package/es/NavMenu/locale/en-US.js +3 -0
- package/es/NavMenu/locale/ja-JP.d.ts +4 -0
- package/es/NavMenu/locale/ja-JP.js +3 -0
- package/es/NavMenu/locale/zh-CN.d.ts +4 -0
- package/es/NavMenu/locale/zh-CN.js +3 -0
- package/es/NavMenu/locale/zh-TW.d.ts +4 -0
- package/es/NavMenu/locale/zh-TW.js +3 -0
- package/es/NavMenu/style/index.d.ts +10 -0
- package/es/NavMenu/style/index.js +47 -0
- package/es/PageContainer/ItemRender.js +1 -0
- package/es/PageContainer/index.d.ts +2 -0
- package/es/PageContainer/index.js +124 -30
- package/es/PageContainer/locale/en-US.d.ts +1 -0
- package/es/PageContainer/locale/en-US.js +2 -1
- package/es/PageContainer/locale/ja-JP.d.ts +5 -0
- package/es/PageContainer/locale/ja-JP.js +4 -0
- package/es/PageContainer/locale/zh-CN.d.ts +1 -0
- package/es/PageContainer/locale/zh-CN.js +2 -1
- package/es/PageContainer/locale/zh-TW.d.ts +1 -0
- package/es/PageContainer/locale/zh-TW.js +2 -1
- package/es/PageContainer/style/index.js +42 -13
- package/es/PageLoading/index.js +1 -0
- package/es/Password/Content.d.ts +2 -0
- package/es/Password/Content.js +12 -3
- package/es/Password/index.d.ts +1 -0
- package/es/Password/index.js +19 -14
- package/es/Password/locale/en-US.d.ts +1 -0
- package/es/Password/locale/en-US.js +2 -1
- package/es/Password/locale/ja-JP.d.ts +14 -0
- package/es/Password/locale/ja-JP.js +13 -0
- package/es/Password/locale/zh-CN.d.ts +1 -0
- package/es/Password/locale/zh-CN.js +1 -0
- package/es/Password/locale/zh-TW.d.ts +1 -0
- package/es/Password/locale/zh-TW.js +2 -1
- package/es/ProCard/index.js +1 -0
- package/es/ProCard/style/index.d.ts +2 -2
- package/es/ProCard/style/index.js +12 -6
- package/es/ProTable/index.js +10 -2
- package/es/ProTable/style/index.d.ts +2 -2
- package/es/ProTable/style/index.js +10 -5
- package/es/Ranger/QuickPicker.js +9 -4
- package/es/Ranger/Ranger.d.ts +0 -1
- package/es/Ranger/Ranger.js +13 -9
- package/es/Ranger/index.js +1 -0
- package/es/Ranger/locale/ja-JP.d.ts +28 -0
- package/es/Ranger/locale/ja-JP.js +29 -0
- package/es/Ranger/style/index.d.ts +10 -0
- package/es/Ranger/style/index.js +44 -0
- package/es/SideTip/Dragger.js +3 -1
- package/es/SideTip/IconLoading.js +1 -0
- package/es/SideTip/index.d.ts +0 -1
- package/es/SideTip/index.js +62 -29
- package/es/SideTip/locale/en-US.d.ts +4 -1
- package/es/SideTip/locale/en-US.js +4 -1
- package/es/SideTip/locale/ja-JP.d.ts +5 -0
- package/es/SideTip/locale/ja-JP.js +4 -0
- package/es/SideTip/locale/zh-CN.d.ts +4 -1
- package/es/SideTip/locale/zh-CN.js +4 -1
- package/es/SideTip/locale/zh-TW.d.ts +4 -1
- package/es/SideTip/locale/zh-TW.js +4 -1
- package/es/SideTip/style/index.d.ts +10 -0
- package/es/SideTip/style/index.js +171 -0
- package/es/TagSelect/Group.d.ts +6 -6
- package/es/TagSelect/Group.js +11 -4
- package/es/TagSelect/Item.js +8 -4
- package/es/TagSelect/index.js +1 -0
- package/es/TreeSearch/index.js +1 -0
- package/es/Welcome/index.d.ts +0 -1
- package/es/Welcome/index.js +31 -26
- package/es/Welcome/locale/ja-JP.d.ts +5 -0
- package/es/Welcome/locale/ja-JP.js +4 -0
- package/es/Welcome/step/style/index.d.ts +10 -0
- package/es/Welcome/step/style/index.js +44 -0
- package/es/Welcome/step.d.ts +0 -1
- package/es/Welcome/step.js +18 -14
- package/es/Welcome/style/index.d.ts +10 -0
- package/es/Welcome/style/index.js +141 -0
- package/es/_util/genComponentStyleHook.d.ts +4 -3
- package/es/_util/genComponentStyleHook.js +1 -1
- package/es/_util/index.js +6 -0
- package/es/assets/logo/oceanbase_logo.svg +45 -29
- package/es/assets/logo/oceanbase_logo_dark.svg +45 -29
- package/es/assets/logo/oceanbase_watermark.svg +45 -31
- package/es/constant/index.js +1 -0
- package/es/index.d.ts +0 -5
- package/es/index.js +1 -3
- package/es/locale/LocaleWrapper.js +1 -0
- package/es/locale/en-US.js +6 -4
- package/es/locale/index.js +1 -0
- package/es/locale/ja-JP.d.ts +3 -0
- package/es/locale/ja-JP.js +44 -0
- package/es/locale/zh-CN.js +6 -4
- package/es/locale/zh-TW.js +6 -4
- package/lib/Action/Group.d.ts +1 -2
- package/lib/Action/Group.js +354 -121
- package/lib/Action/Item.d.ts +6 -15
- package/lib/Action/Item.js +81 -110
- package/lib/Action/index.d.ts +6 -3
- package/lib/Action/index.js +13 -36
- package/lib/Action/style/index.d.ts +2 -2
- package/lib/Action/style/index.js +38 -41
- package/lib/BackgroundTaskManager/RefreshMan.js +34 -60
- package/lib/BackgroundTaskManager/constants.js +10 -32
- package/lib/BackgroundTaskManager/index.d.ts +2 -0
- package/lib/BackgroundTaskManager/index.js +137 -135
- package/lib/BasicLayout/Header.js +238 -138
- package/lib/BasicLayout/index.d.ts +3 -1
- package/lib/BasicLayout/index.js +306 -292
- package/lib/BasicLayout/locale/en-US.d.ts +3 -0
- package/lib/BasicLayout/locale/en-US.js +19 -34
- package/lib/BasicLayout/locale/ja-JP.d.ts +16 -0
- package/lib/BasicLayout/locale/ja-JP.js +21 -0
- package/lib/BasicLayout/locale/zh-CN.d.ts +3 -0
- package/lib/BasicLayout/locale/zh-CN.js +19 -34
- package/lib/BasicLayout/locale/zh-TW.d.ts +3 -0
- package/lib/BasicLayout/locale/zh-TW.js +19 -34
- package/lib/BasicLayout/style/Header.js +41 -60
- package/lib/BasicLayout/style/index.js +201 -204
- package/lib/BatchOperationBar/index.d.ts +0 -1
- package/lib/BatchOperationBar/index.js +119 -132
- package/lib/BatchOperationBar/locale/en-US.d.ts +1 -0
- package/lib/BatchOperationBar/locale/en-US.js +11 -28
- package/lib/BatchOperationBar/locale/ja-JP.d.ts +8 -0
- package/lib/BatchOperationBar/locale/ja-JP.js +13 -0
- package/lib/BatchOperationBar/locale/zh-CN.d.ts +1 -0
- package/lib/BatchOperationBar/locale/zh-CN.js +11 -28
- package/lib/BatchOperationBar/locale/zh-TW.d.ts +1 -0
- package/lib/BatchOperationBar/locale/zh-TW.js +11 -28
- package/lib/BatchOperationBar/style/index.d.ts +10 -0
- package/lib/BatchOperationBar/style/index.js +71 -0
- package/lib/Boundary/Components/Code.js +57 -64
- package/lib/Boundary/Components/Exception.js +117 -117
- package/lib/Boundary/Components/Function.js +47 -51
- package/lib/Boundary/Components/index.js +36 -25
- package/lib/Boundary/IBoundary.js +4 -16
- package/lib/Boundary/constant.js +16 -38
- package/lib/Boundary/index.d.ts +0 -1
- package/lib/Boundary/index.js +11 -26
- package/lib/Boundary/locale/en-US.js +14 -32
- package/lib/Boundary/locale/ja-JP.d.ts +11 -0
- package/lib/Boundary/locale/ja-JP.js +16 -0
- package/lib/Boundary/locale/zh-CN.js +14 -32
- package/lib/Boundary/locale/zh-TW.js +14 -32
- package/lib/Boundary/style/index.d.ts +10 -0
- package/lib/Boundary/style/index.js +57 -0
- package/lib/Boundary/utils.js +9 -31
- package/lib/ContentWithIcon/index.d.ts +0 -1
- package/lib/ContentWithIcon/index.js +99 -102
- package/lib/ContentWithIcon/style/index.d.ts +10 -0
- package/lib/ContentWithIcon/style/index.js +38 -0
- package/lib/ContentWithQuestion/index.js +40 -48
- package/lib/ContentWithQuestion/style/index.js +16 -35
- package/lib/DateRanger/EditableDateTimeInput.d.ts +23 -0
- package/lib/DateRanger/EditableDateTimeInput.js +131 -0
- package/lib/DateRanger/PickerPanel.js +341 -294
- package/lib/DateRanger/Ranger.d.ts +4 -2
- package/lib/DateRanger/Ranger.js +376 -405
- package/lib/DateRanger/constant/index.js +188 -376
- package/lib/DateRanger/hooks/index.d.ts +4 -0
- package/lib/DateRanger/hooks/index.js +19 -0
- package/lib/DateRanger/hooks/useAutoWidthInput.d.ts +13 -0
- package/lib/DateRanger/hooks/useAutoWidthInput.js +37 -0
- package/lib/DateRanger/hooks/useSegmentedInput.d.ts +31 -0
- package/lib/DateRanger/hooks/useSegmentedInput.js +233 -0
- package/lib/DateRanger/index.js +45 -65
- package/lib/DateRanger/locale/en-US.d.ts +2 -0
- package/lib/DateRanger/locale/en-US.js +22 -47
- package/lib/DateRanger/locale/ja-JP.d.ts +58 -0
- package/lib/DateRanger/locale/ja-JP.js +24 -0
- package/lib/DateRanger/locale/zh-CN.d.ts +2 -0
- package/lib/DateRanger/locale/zh-CN.js +22 -47
- package/lib/DateRanger/locale/zh-TW.d.ts +2 -0
- package/lib/DateRanger/locale/zh-TW.js +22 -47
- package/lib/DateRanger/style/index.d.ts +10 -0
- package/lib/DateRanger/style/index.js +224 -0
- package/lib/DateRanger/typing.js +4 -16
- package/lib/Dialog/Anchor.d.ts +2 -10
- package/lib/Dialog/Anchor.js +80 -105
- package/lib/Dialog/Dock.js +14 -36
- package/lib/Dialog/EventProxy.js +21 -49
- package/lib/Dialog/index.d.ts +5 -1
- package/lib/Dialog/index.js +581 -519
- package/lib/Dialog/locale/en-US.d.ts +5 -0
- package/lib/Dialog/locale/en-US.js +13 -26
- package/lib/Dialog/locale/ja-JP.d.ts +10 -0
- package/lib/Dialog/locale/ja-JP.js +15 -0
- package/lib/Dialog/locale/zh-CN.d.ts +5 -0
- package/lib/Dialog/locale/zh-CN.js +13 -26
- package/lib/Dialog/locale/zh-TW.d.ts +5 -0
- package/lib/Dialog/locale/zh-TW.js +13 -26
- package/lib/Dialog/style/index.d.ts +10 -0
- package/lib/Dialog/style/index.js +137 -0
- package/lib/DocDialog/index.js +69 -81
- package/lib/DocDialog/locale/en-US.d.ts +3 -1
- package/lib/DocDialog/locale/en-US.js +7 -23
- package/lib/DocDialog/locale/ja-JP.d.ts +4 -0
- package/lib/DocDialog/locale/ja-JP.js +9 -0
- package/lib/DocDialog/locale/zh-CN.d.ts +3 -1
- package/lib/DocDialog/locale/zh-CN.js +7 -23
- package/lib/DocDialog/locale/zh-TW.d.ts +3 -1
- package/lib/DocDialog/locale/zh-TW.js +7 -23
- package/lib/FooterToolbar/index.d.ts +7 -4
- package/lib/FooterToolbar/index.js +48 -50
- package/lib/FooterToolbar/locale/en-US.d.ts +4 -0
- package/lib/FooterToolbar/locale/en-US.js +9 -0
- package/lib/FooterToolbar/locale/ja-JP.d.ts +4 -0
- package/lib/FooterToolbar/locale/ja-JP.js +9 -0
- package/lib/FooterToolbar/locale/zh-CN.d.ts +4 -0
- package/lib/FooterToolbar/locale/zh-CN.js +9 -0
- package/lib/FooterToolbar/locale/zh-TW.d.ts +4 -0
- package/lib/FooterToolbar/locale/zh-TW.js +9 -0
- package/lib/FooterToolbar/style/index.d.ts +0 -2
- package/lib/FooterToolbar/style/index.js +25 -54
- package/lib/FullscreenBox/index.d.ts +0 -1
- package/lib/FullscreenBox/index.js +159 -121
- package/lib/FullscreenBox/locale/en-US.d.ts +4 -1
- package/lib/FullscreenBox/locale/en-US.js +8 -23
- package/lib/FullscreenBox/locale/ja-JP.d.ts +5 -0
- package/lib/FullscreenBox/locale/ja-JP.js +10 -0
- package/lib/FullscreenBox/locale/zh-CN.d.ts +4 -1
- package/lib/FullscreenBox/locale/zh-CN.js +8 -23
- package/lib/FullscreenBox/locale/zh-TW.d.ts +4 -1
- package/lib/FullscreenBox/locale/zh-TW.js +8 -23
- package/lib/FullscreenBox/style/index.d.ts +10 -0
- package/lib/FullscreenBox/style/index.js +90 -0
- package/lib/Highlight/DiffView/DiffCells.js +35 -49
- package/lib/Highlight/DiffView/index.d.ts +0 -1
- package/lib/Highlight/DiffView/index.js +154 -149
- package/lib/Highlight/HighlightCell.js +29 -46
- package/lib/Highlight/JsonView.d.ts +0 -1
- package/lib/Highlight/JsonView.js +45 -74
- package/lib/Highlight/index.d.ts +1 -2
- package/lib/Highlight/index.js +204 -204
- package/lib/Highlight/languages/bash.js +7 -34
- package/lib/Highlight/languages/cpp.js +7 -34
- package/lib/Highlight/languages/css.js +7 -34
- package/lib/Highlight/languages/dockerfile.js +7 -34
- package/lib/Highlight/languages/go.js +7 -34
- package/lib/Highlight/languages/groovy.js +7 -34
- package/lib/Highlight/languages/http.js +7 -34
- package/lib/Highlight/languages/java.js +7 -34
- package/lib/Highlight/languages/javascript.js +7 -34
- package/lib/Highlight/languages/json.js +7 -34
- package/lib/Highlight/languages/markdown.js +7 -34
- package/lib/Highlight/languages/nginx.js +7 -34
- package/lib/Highlight/languages/python.js +7 -34
- package/lib/Highlight/languages/ruby.js +7 -34
- package/lib/Highlight/languages/solidity.js +7 -34
- package/lib/Highlight/languages/sql.js +7 -34
- package/lib/Highlight/languages/typescript.js +7 -34
- package/lib/Highlight/languages/xml.js +7 -34
- package/lib/Highlight/languages/yaml.js +7 -34
- package/lib/Highlight/locale/en-US.d.ts +2 -0
- package/lib/Highlight/locale/en-US.js +9 -25
- package/lib/Highlight/locale/ja-JP.d.ts +6 -0
- package/lib/Highlight/locale/ja-JP.js +11 -0
- package/lib/Highlight/locale/zh-CN.d.ts +2 -0
- package/lib/Highlight/locale/zh-CN.js +9 -25
- package/lib/Highlight/locale/zh-TW.d.ts +2 -0
- package/lib/Highlight/locale/zh-TW.js +9 -25
- package/lib/Highlight/style/index.d.ts +10 -0
- package/lib/Highlight/style/index.js +277 -0
- package/lib/Highlight/useKeyDownCopyEvent.js +40 -65
- package/lib/IconFont/index.js +23 -39
- package/lib/LightFilter/index.d.ts +6 -2
- package/lib/LightFilter/index.js +46 -43
- package/lib/LightFilter/locale/en-US.d.ts +4 -0
- package/lib/LightFilter/locale/en-US.js +9 -0
- package/lib/LightFilter/locale/ja-JP.d.ts +4 -0
- package/lib/LightFilter/locale/ja-JP.js +9 -0
- package/lib/LightFilter/locale/zh-CN.d.ts +4 -0
- package/lib/LightFilter/locale/zh-CN.js +9 -0
- package/lib/LightFilter/locale/zh-TW.d.ts +4 -0
- package/lib/LightFilter/locale/zh-TW.js +9 -0
- package/lib/LightFilter/style/index.js +15 -33
- package/lib/LocaleDropdown/index.js +44 -61
- package/lib/Login/ActivateForm.d.ts +0 -1
- package/lib/Login/ActivateForm.js +93 -119
- package/lib/Login/LoginForm.d.ts +0 -1
- package/lib/Login/LoginForm.js +135 -150
- package/lib/Login/RegisterForm.d.ts +0 -1
- package/lib/Login/RegisterForm.js +122 -163
- package/lib/Login/index.d.ts +0 -1
- package/lib/Login/index.js +156 -132
- package/lib/Login/locale/en-US.js +31 -49
- package/lib/Login/locale/ja-JP.d.ts +28 -0
- package/lib/Login/locale/ja-JP.js +33 -0
- package/lib/Login/locale/zh-CN.js +31 -49
- package/lib/Login/locale/zh-TW.js +30 -48
- package/lib/Login/style/index.d.ts +10 -0
- package/lib/Login/style/index.js +246 -0
- package/lib/Lottie/index.js +7 -25
- package/lib/NavMenu/index.d.ts +5 -3
- package/lib/NavMenu/index.js +118 -103
- package/lib/NavMenu/locale/en-US.d.ts +4 -0
- package/lib/NavMenu/locale/en-US.js +9 -0
- package/lib/NavMenu/locale/ja-JP.d.ts +4 -0
- package/lib/NavMenu/locale/ja-JP.js +9 -0
- package/lib/NavMenu/locale/zh-CN.d.ts +4 -0
- package/lib/NavMenu/locale/zh-CN.js +9 -0
- package/lib/NavMenu/locale/zh-TW.d.ts +4 -0
- package/lib/NavMenu/locale/zh-TW.js +9 -0
- package/lib/NavMenu/style/index.d.ts +10 -0
- package/lib/NavMenu/style/index.js +60 -0
- package/lib/PageContainer/ItemRender.js +27 -46
- package/lib/PageContainer/index.d.ts +2 -0
- package/lib/PageContainer/index.js +167 -97
- package/lib/PageContainer/locale/en-US.d.ts +1 -0
- package/lib/PageContainer/locale/en-US.js +8 -25
- package/lib/PageContainer/locale/ja-JP.d.ts +5 -0
- package/lib/PageContainer/locale/ja-JP.js +10 -0
- package/lib/PageContainer/locale/zh-CN.d.ts +1 -0
- package/lib/PageContainer/locale/zh-CN.js +8 -25
- package/lib/PageContainer/locale/zh-TW.d.ts +1 -0
- package/lib/PageContainer/locale/zh-TW.js +8 -25
- package/lib/PageContainer/style/index.js +69 -45
- package/lib/PageLoading/index.js +32 -64
- package/lib/Password/Content.d.ts +2 -0
- package/lib/Password/Content.js +99 -84
- package/lib/Password/index.d.ts +1 -0
- package/lib/Password/index.js +127 -141
- package/lib/Password/locale/en-US.d.ts +1 -0
- package/lib/Password/locale/en-US.js +15 -32
- package/lib/Password/locale/ja-JP.d.ts +14 -0
- package/lib/Password/locale/ja-JP.js +19 -0
- package/lib/Password/locale/zh-CN.d.ts +1 -0
- package/lib/Password/locale/zh-CN.js +16 -33
- package/lib/Password/locale/zh-TW.d.ts +1 -0
- package/lib/Password/locale/zh-TW.js +15 -32
- package/lib/ProCard/index.js +77 -98
- package/lib/ProCard/style/index.d.ts +2 -2
- package/lib/ProCard/style/index.js +32 -38
- package/lib/ProTable/index.js +102 -122
- package/lib/ProTable/style/index.d.ts +2 -2
- package/lib/ProTable/style/index.js +29 -37
- package/lib/Ranger/QuickPicker.js +91 -83
- package/lib/Ranger/Ranger.d.ts +0 -1
- package/lib/Ranger/Ranger.js +98 -128
- package/lib/Ranger/constant/index.js +115 -266
- package/lib/Ranger/index.js +61 -70
- package/lib/Ranger/locale/en-US.js +31 -49
- package/lib/Ranger/locale/ja-JP.d.ts +28 -0
- package/lib/Ranger/locale/ja-JP.js +35 -0
- package/lib/Ranger/locale/zh-CN.js +7 -25
- package/lib/Ranger/locale/zh-TW.js +7 -25
- package/lib/Ranger/style/index.d.ts +10 -0
- package/lib/Ranger/style/index.js +64 -0
- package/lib/Ranger/typing.js +4 -16
- package/lib/SideTip/Dragger.js +259 -219
- package/lib/SideTip/IconLoading.js +43 -75
- package/lib/SideTip/index.d.ts +0 -1
- package/lib/SideTip/index.js +160 -116
- package/lib/SideTip/locale/en-US.d.ts +4 -1
- package/lib/SideTip/locale/en-US.js +8 -23
- package/lib/SideTip/locale/ja-JP.d.ts +5 -0
- package/lib/SideTip/locale/ja-JP.js +10 -0
- package/lib/SideTip/locale/zh-CN.d.ts +4 -1
- package/lib/SideTip/locale/zh-CN.js +8 -23
- package/lib/SideTip/locale/zh-TW.d.ts +4 -1
- package/lib/SideTip/locale/zh-TW.js +8 -23
- package/lib/SideTip/style/index.d.ts +10 -0
- package/lib/SideTip/style/index.js +204 -0
- package/lib/SideTip/utils.js +40 -61
- package/lib/TagSelect/Group.d.ts +6 -6
- package/lib/TagSelect/Group.js +68 -79
- package/lib/TagSelect/Item.js +67 -86
- package/lib/TagSelect/TagSelectContext.js +7 -25
- package/lib/TagSelect/index.js +12 -36
- package/lib/TagSelect/style/index.js +41 -64
- package/lib/TreeSearch/index.js +133 -132
- package/lib/TreeSearch/util.js +52 -70
- package/lib/Welcome/index.d.ts +0 -1
- package/lib/Welcome/index.js +140 -84
- package/lib/Welcome/locale/en-US.js +8 -26
- package/lib/Welcome/locale/ja-JP.d.ts +5 -0
- package/lib/Welcome/locale/ja-JP.js +10 -0
- package/lib/Welcome/locale/zh-CN.js +8 -26
- package/lib/Welcome/locale/zh-TW.js +8 -26
- package/lib/Welcome/step/style/index.d.ts +10 -0
- package/lib/Welcome/step/style/index.js +58 -0
- package/lib/Welcome/step.d.ts +0 -1
- package/lib/Welcome/step.js +63 -49
- package/lib/Welcome/style/index.d.ts +10 -0
- package/lib/Welcome/style/index.js +176 -0
- package/lib/_util/genComponentStyleHook.d.ts +4 -3
- package/lib/_util/genComponentStyleHook.js +15 -43
- package/lib/_util/index.js +43 -44
- package/lib/_util/useNavigate.js +11 -26
- package/lib/assets/logo/oceanbase_logo.svg +45 -29
- package/lib/assets/logo/oceanbase_logo_dark.svg +45 -29
- package/lib/assets/logo/oceanbase_watermark.svg +45 -31
- package/lib/constant/index.js +23 -50
- package/lib/index.d.ts +0 -5
- package/lib/index.js +282 -136
- package/lib/interface.js +4 -16
- package/lib/locale/LocaleWrapper.js +52 -62
- package/lib/locale/en-US.js +43 -68
- package/lib/locale/index.js +5 -17
- package/lib/locale/ja-JP.d.ts +3 -0
- package/lib/locale/ja-JP.js +46 -0
- package/lib/locale/zh-CN.js +42 -67
- package/lib/locale/zh-TW.js +38 -63
- package/package.json +9 -12
- package/dist/static/Inter.f6bcdfb6.woff2 +0 -0
- package/es/BatchOperationBar/index.less +0 -46
- package/es/BatchOperationBar/index.less.d.ts +0 -15
- package/es/Boundary/index.less +0 -36
- package/es/ContentWithIcon/index.less +0 -21
- package/es/DateRanger/index.less +0 -180
- package/es/Dialog/index.less +0 -116
- package/es/FullscreenBox/index.less +0 -49
- package/es/GraphToolbar/index.d.ts +0 -26
- package/es/GraphToolbar/index.js +0 -146
- package/es/GraphToolbar/index.less +0 -65
- package/es/GraphToolbar/locale/en-US.d.ts +0 -9
- package/es/GraphToolbar/locale/en-US.js +0 -8
- package/es/GraphToolbar/locale/zh-CN.d.ts +0 -9
- package/es/GraphToolbar/locale/zh-CN.js +0 -8
- package/es/GraphToolbar/locale/zh-TW.d.ts +0 -9
- package/es/GraphToolbar/locale/zh-TW.js +0 -8
- package/es/Highlight/index.less +0 -381
- package/es/Login/index.less +0 -268
- package/es/NavMenu/index.less +0 -50
- package/es/Ranger/index.less +0 -57
- package/es/SideTip/index.less +0 -180
- package/es/TaskGraph/Graph.d.ts +0 -24
- package/es/TaskGraph/Graph.js +0 -271
- package/es/TaskGraph/graph.less +0 -23
- package/es/TaskGraph/index.d.ts +0 -16
- package/es/TaskGraph/index.js +0 -178
- package/es/TaskGraph/index.less +0 -117
- package/es/TaskGraph/locale/en-US.d.ts +0 -13
- package/es/TaskGraph/locale/en-US.js +0 -12
- package/es/TaskGraph/locale/zh-CN.d.ts +0 -13
- package/es/TaskGraph/locale/zh-CN.js +0 -12
- package/es/TaskGraph/locale/zh-TW.d.ts +0 -13
- package/es/TaskGraph/locale/zh-TW.js +0 -12
- package/es/TaskGraph/register.d.ts +0 -7
- package/es/TaskGraph/register.js +0 -200
- package/es/Welcome/index.less +0 -185
- package/es/index.less +0 -1
- package/es/variable.less +0 -54
- package/lib/BatchOperationBar/index.less +0 -46
- package/lib/BatchOperationBar/index.less.d.ts +0 -15
- package/lib/Boundary/index.less +0 -36
- package/lib/ContentWithIcon/index.less +0 -21
- package/lib/DateRanger/index.less +0 -180
- package/lib/Dialog/index.less +0 -116
- package/lib/FullscreenBox/index.less +0 -49
- package/lib/GraphToolbar/index.d.ts +0 -26
- package/lib/GraphToolbar/index.js +0 -154
- package/lib/GraphToolbar/index.less +0 -65
- package/lib/GraphToolbar/locale/en-US.d.ts +0 -9
- package/lib/GraphToolbar/locale/en-US.js +0 -32
- package/lib/GraphToolbar/locale/zh-CN.d.ts +0 -9
- package/lib/GraphToolbar/locale/zh-CN.js +0 -32
- package/lib/GraphToolbar/locale/zh-TW.d.ts +0 -9
- package/lib/GraphToolbar/locale/zh-TW.js +0 -32
- package/lib/Highlight/index.less +0 -381
- package/lib/Login/index.less +0 -268
- package/lib/NavMenu/index.less +0 -50
- package/lib/Ranger/index.less +0 -57
- package/lib/SideTip/index.less +0 -180
- package/lib/TaskGraph/Graph.d.ts +0 -24
- package/lib/TaskGraph/Graph.js +0 -261
- package/lib/TaskGraph/graph.less +0 -23
- package/lib/TaskGraph/index.d.ts +0 -16
- package/lib/TaskGraph/index.js +0 -164
- package/lib/TaskGraph/index.less +0 -117
- package/lib/TaskGraph/locale/en-US.d.ts +0 -13
- package/lib/TaskGraph/locale/en-US.js +0 -36
- package/lib/TaskGraph/locale/zh-CN.d.ts +0 -13
- package/lib/TaskGraph/locale/zh-CN.js +0 -36
- package/lib/TaskGraph/locale/zh-TW.d.ts +0 -13
- package/lib/TaskGraph/locale/zh-TW.js +0 -36
- package/lib/TaskGraph/register.d.ts +0 -7
- package/lib/TaskGraph/register.js +0 -205
- package/lib/Welcome/index.less +0 -185
- package/lib/index.less +0 -1
- package/lib/variable.less +0 -54
package/es/SideTip/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
3
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
4
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -11,25 +12,24 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
11
12
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
12
13
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
14
|
import { CloseOutlined } from '@oceanbase/icons';
|
|
14
|
-
import { Badge, Tooltip } from '@oceanbase/design';
|
|
15
|
+
import { Badge, ConfigProvider, Tooltip } from '@oceanbase/design';
|
|
15
16
|
import classnames from 'classnames';
|
|
16
|
-
import React, { createRef, useEffect, useState } from 'react';
|
|
17
|
+
import React, { createRef, useCallback, useContext, useEffect, useState } from 'react';
|
|
17
18
|
import LocaleWrapper from "../locale/LocaleWrapper";
|
|
18
|
-
import
|
|
19
|
+
import useStyle from "./style";
|
|
19
20
|
import Dragger from "./Dragger";
|
|
20
21
|
import IconLoading from "./IconLoading";
|
|
21
22
|
import zhCN from "./locale/zh-CN";
|
|
22
|
-
// @ts-ignore
|
|
23
|
-
import "./index.less";
|
|
24
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
25
24
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
26
25
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
27
|
-
var STORE_SIDETIP_HIDE = 'ob-sidetip-hide';
|
|
28
|
-
var getLocalStorageKey = function getLocalStorageKey(id) {
|
|
29
|
-
return ["".concat(STORE_SIDETIP_HIDE), id].join('-');
|
|
30
|
-
};
|
|
31
26
|
var SideTip = function SideTip(props) {
|
|
32
27
|
var buttonRef = /*#__PURE__*/createRef();
|
|
28
|
+
var _useContext = useContext(ConfigProvider.ConfigContext),
|
|
29
|
+
getPrefixCls = _useContext.getPrefixCls;
|
|
30
|
+
var prefixCls = getPrefixCls('sidetip');
|
|
31
|
+
var _useStyle = useStyle(prefixCls),
|
|
32
|
+
wrapSSR = _useStyle.wrapSSR;
|
|
33
33
|
var defaultHide = props.defaultHide,
|
|
34
34
|
onClick = props.onClick,
|
|
35
35
|
open = props.open,
|
|
@@ -56,8 +56,14 @@ var SideTip = function SideTip(props) {
|
|
|
56
56
|
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
|
57
57
|
_props$draggable = props.draggable,
|
|
58
58
|
draggable = _props$draggable === void 0 ? true : _props$draggable,
|
|
59
|
-
getPopupContainer = props.getPopupContainer
|
|
60
|
-
|
|
59
|
+
getPopupContainer = props.getPopupContainer,
|
|
60
|
+
locale = props.locale;
|
|
61
|
+
var getLocalStorageKey = useCallback(function (localId) {
|
|
62
|
+
return ["".concat(prefixCls, "-hide"), localId].join('-');
|
|
63
|
+
}, [prefixCls]);
|
|
64
|
+
|
|
65
|
+
// Avoid SSR issue: same initial value on server and client, then sync from localStorage in useEffect
|
|
66
|
+
var _useState = useState(hideable ? !!defaultHide : false),
|
|
61
67
|
_useState2 = _slicedToArray(_useState, 2),
|
|
62
68
|
hide = _useState2[0],
|
|
63
69
|
setHide = _useState2[1];
|
|
@@ -66,12 +72,19 @@ var SideTip = function SideTip(props) {
|
|
|
66
72
|
hovered = _useState4[0],
|
|
67
73
|
setHovered = _useState4[1];
|
|
68
74
|
useEffect(function () {
|
|
75
|
+
if (typeof window === 'undefined' || !hideable) return;
|
|
76
|
+
if (defaultHide === undefined) {
|
|
77
|
+
setHide(window.localStorage.getItem(getLocalStorageKey(id)) === 'true');
|
|
78
|
+
}
|
|
79
|
+
}, [hideable, defaultHide, id, getLocalStorageKey]);
|
|
80
|
+
useEffect(function () {
|
|
81
|
+
if (typeof window === 'undefined') return;
|
|
69
82
|
if (hide) {
|
|
70
83
|
window.localStorage.setItem(getLocalStorageKey(id), 'true');
|
|
71
84
|
} else {
|
|
72
85
|
window.localStorage.removeItem(getLocalStorageKey(id));
|
|
73
86
|
}
|
|
74
|
-
}, [hide]);
|
|
87
|
+
}, [hide, id, getLocalStorageKey]);
|
|
75
88
|
var hideSideTip = function hideSideTip() {
|
|
76
89
|
setHide(true);
|
|
77
90
|
};
|
|
@@ -107,23 +120,29 @@ var SideTip = function SideTip(props) {
|
|
|
107
120
|
if (sizeCls === 'small') return 'small';
|
|
108
121
|
return '';
|
|
109
122
|
};
|
|
110
|
-
var prefix = getPrefix('sidetip');
|
|
111
123
|
var typeCls = getTypeCls(type);
|
|
112
124
|
var sizeCls = getSizeCls(size);
|
|
113
|
-
var
|
|
125
|
+
var toggleAriaLabel = typeof (tooltip === null || tooltip === void 0 ? void 0 : tooltip.title) === 'string' && tooltip.title.trim() ? tooltip.title : locale === null || locale === void 0 ? void 0 : locale.toggleLabel;
|
|
126
|
+
var onInnerKeyDown = function onInnerKeyDown(e) {
|
|
127
|
+
if (disabled) return;
|
|
128
|
+
if (e.key !== 'Enter' && e.key !== ' ') return;
|
|
129
|
+
e.preventDefault();
|
|
130
|
+
onButtonClick(e);
|
|
131
|
+
};
|
|
132
|
+
var buttonPrefix = "".concat(prefixCls, "-button");
|
|
114
133
|
|
|
115
134
|
// icon
|
|
116
135
|
var iconClassName = classnames("".concat(buttonPrefix, "-icon"), (open || visible) && "".concat(buttonPrefix, "-icon-open"), disabled && "".concat(buttonPrefix, "-icon-disabled"), typeCls && "".concat(buttonPrefix, "-icon-").concat(typeCls), sizeCls && "".concat(buttonPrefix, "-icon-").concat(sizeCls));
|
|
117
136
|
// 接受三种形式的icon
|
|
118
|
-
var iconDom = /*#__PURE__*/_jsx("span", {
|
|
137
|
+
var iconDom = icon ? /*#__PURE__*/_jsx("span", {
|
|
119
138
|
className: iconClassName,
|
|
120
|
-
children: /*#__PURE__*/React.isValidElement(icon) ? icon : /*#__PURE__*/_jsx("img", {
|
|
139
|
+
children: /*#__PURE__*/React.isValidElement(icon) ? icon : typeof icon === 'string' && icon ? /*#__PURE__*/_jsx("img", {
|
|
121
140
|
src: icon,
|
|
122
|
-
alt: "
|
|
141
|
+
alt: "",
|
|
123
142
|
width: "100%",
|
|
124
143
|
height: "100%"
|
|
125
|
-
})
|
|
126
|
-
});
|
|
144
|
+
}) : null
|
|
145
|
+
}) : null;
|
|
127
146
|
|
|
128
147
|
// close 按钮
|
|
129
148
|
var closeClassName = classnames("".concat(buttonPrefix, "-close"), _defineProperty(_defineProperty(_defineProperty({}, "".concat(buttonPrefix, "-close-show"), open || visible), "".concat(buttonPrefix, "-close-").concat(typeCls), typeCls), "".concat(buttonPrefix, "-close-").concat(sizeCls), sizeCls));
|
|
@@ -135,11 +154,21 @@ var SideTip = function SideTip(props) {
|
|
|
135
154
|
className: buttonClassName,
|
|
136
155
|
ref: buttonRef,
|
|
137
156
|
style: buttonStyle,
|
|
157
|
+
role: "button",
|
|
158
|
+
tabIndex: disabled ? -1 : 0,
|
|
159
|
+
"aria-disabled": disabled || undefined,
|
|
160
|
+
"aria-expanded": !!(open || visible),
|
|
161
|
+
"aria-haspopup": "dialog",
|
|
162
|
+
"aria-label": toggleAriaLabel,
|
|
163
|
+
onKeyDown: onInnerKeyDown,
|
|
138
164
|
children: [loading && /*#__PURE__*/_jsx(IconLoading, {
|
|
139
165
|
className: loadingClassName
|
|
140
166
|
}), /*#__PURE__*/_jsxs(_Fragment, {
|
|
141
|
-
children: [iconDom, /*#__PURE__*/_jsx(
|
|
142
|
-
|
|
167
|
+
children: [iconDom, /*#__PURE__*/_jsx("span", {
|
|
168
|
+
"aria-hidden": true,
|
|
169
|
+
children: /*#__PURE__*/_jsx(CloseOutlined, {
|
|
170
|
+
className: closeClassName
|
|
171
|
+
})
|
|
143
172
|
})]
|
|
144
173
|
})]
|
|
145
174
|
});
|
|
@@ -150,18 +179,22 @@ var SideTip = function SideTip(props) {
|
|
|
150
179
|
}, badge), {}, {
|
|
151
180
|
children: InnerButton
|
|
152
181
|
})) : InnerButton;
|
|
153
|
-
var hideIconClassName = classnames("".concat(
|
|
182
|
+
var hideIconClassName = classnames("".concat(prefixCls, "-hide"), _defineProperty({}, "".concat(prefixCls, "-hide-hovered"), hovered));
|
|
154
183
|
|
|
155
184
|
// 隐藏按钮
|
|
156
|
-
var hideIcon = /*#__PURE__*/_jsx("
|
|
185
|
+
var hideIcon = /*#__PURE__*/_jsx("button", {
|
|
186
|
+
type: "button",
|
|
157
187
|
id: "ui-mini-hide",
|
|
158
188
|
onClick: hideSideTip,
|
|
159
189
|
className: hideIconClassName,
|
|
160
|
-
|
|
161
|
-
|
|
190
|
+
"aria-label": locale === null || locale === void 0 ? void 0 : locale.hideFloatingButton,
|
|
191
|
+
children: /*#__PURE__*/_jsx("span", {
|
|
192
|
+
className: "".concat(prefixCls, "-hide-icon"),
|
|
193
|
+
"aria-hidden": true
|
|
162
194
|
})
|
|
163
195
|
});
|
|
164
|
-
|
|
196
|
+
var containerClassName = classnames(className, _defineProperty({}, "".concat(prefixCls, "-container-disabled"), disabled));
|
|
197
|
+
return wrapSSR( /*#__PURE__*/_jsxs(Dragger, {
|
|
165
198
|
id: id,
|
|
166
199
|
open: open || visible,
|
|
167
200
|
hide: hide,
|
|
@@ -171,12 +204,12 @@ var SideTip = function SideTip(props) {
|
|
|
171
204
|
onMouseLeave: handleMouseLeave,
|
|
172
205
|
style: style,
|
|
173
206
|
position: position,
|
|
174
|
-
prefix:
|
|
207
|
+
prefix: prefixCls,
|
|
175
208
|
onDragStart: onDragStart,
|
|
176
209
|
onDragEnd: onDragEnd,
|
|
177
210
|
onDrag: onDrag,
|
|
178
211
|
getPopupContainer: getPopupContainer,
|
|
179
|
-
className:
|
|
212
|
+
className: containerClassName,
|
|
180
213
|
draggable: draggable,
|
|
181
214
|
children: [tooltip && tooltip.title ? /*#__PURE__*/_jsx(Tooltip, _objectSpread(_objectSpread({}, tooltip), {}, {
|
|
182
215
|
getPopupContainer: function getPopupContainer() {
|
|
@@ -184,7 +217,7 @@ var SideTip = function SideTip(props) {
|
|
|
184
217
|
},
|
|
185
218
|
children: BadgeButton
|
|
186
219
|
})) : BadgeButton, hideable && hideIcon, children]
|
|
187
|
-
});
|
|
220
|
+
}));
|
|
188
221
|
};
|
|
189
222
|
export default LocaleWrapper({
|
|
190
223
|
componentName: 'SideTip',
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { GenerateStyle } from '@oceanbase/design/es/theme';
|
|
3
|
+
import type { OBToken } from '../../_util/genComponentStyleHook';
|
|
4
|
+
export type SideTipToken = OBToken;
|
|
5
|
+
export declare const genSideTipStyle: GenerateStyle<SideTipToken>;
|
|
6
|
+
declare const _default: (prefixCls: string) => {
|
|
7
|
+
wrapSSR: (node: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) => import("react").JSX.Element;
|
|
8
|
+
hashId: string;
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
3
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
4
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
5
|
+
import { genComponentStyleHook } from "../../_util/genComponentStyleHook";
|
|
6
|
+
export var genSideTipStyle = function genSideTipStyle(token) {
|
|
7
|
+
var componentCls = token.componentCls,
|
|
8
|
+
boxShadowSecondary = token.boxShadowSecondary,
|
|
9
|
+
colorTextQuaternary = token.colorTextQuaternary,
|
|
10
|
+
colorTextSecondary = token.colorTextSecondary;
|
|
11
|
+
return _defineProperty({}, "".concat(componentCls, "-container"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
12
|
+
position: 'fixed',
|
|
13
|
+
zIndex: 0,
|
|
14
|
+
fontSize: 14,
|
|
15
|
+
cursor: 'pointer',
|
|
16
|
+
insetInlineEnd: 24,
|
|
17
|
+
insetBlockEnd: 24
|
|
18
|
+
}, "&.".concat(componentCls, "-container-dragged"), {
|
|
19
|
+
cursor: 'grab'
|
|
20
|
+
}), "&.".concat(componentCls, "-container-disabled"), {
|
|
21
|
+
cursor: 'not-allowed'
|
|
22
|
+
}), "&.".concat(componentCls, "-container-hide"), {
|
|
23
|
+
transition: 'all 0.3s'
|
|
24
|
+
}), '@media screen and (max-width: 768px)', {
|
|
25
|
+
display: 'none'
|
|
26
|
+
}), "&.".concat(componentCls, "-container-hide-not-dragged:hover"), {
|
|
27
|
+
insetInlineEnd: '0 !important'
|
|
28
|
+
}), "".concat(componentCls, "-hide"), _defineProperty(_defineProperty({
|
|
29
|
+
position: 'absolute',
|
|
30
|
+
zIndex: 0,
|
|
31
|
+
display: 'flex',
|
|
32
|
+
alignItems: 'center',
|
|
33
|
+
justifyContent: 'center',
|
|
34
|
+
width: 20,
|
|
35
|
+
height: 20,
|
|
36
|
+
background: 'rgba(0, 0, 0, 0.15)',
|
|
37
|
+
borderRadius: 20,
|
|
38
|
+
transform: 'scale(0)',
|
|
39
|
+
cursor: 'pointer',
|
|
40
|
+
opacity: 0,
|
|
41
|
+
transition: 'all 0.18s ease-out 0.18s',
|
|
42
|
+
insetBlockStart: 0,
|
|
43
|
+
insetInlineEnd: -22,
|
|
44
|
+
border: 'none',
|
|
45
|
+
padding: 0,
|
|
46
|
+
font: 'inherit',
|
|
47
|
+
appearance: 'none',
|
|
48
|
+
WebkitAppearance: 'none',
|
|
49
|
+
'&:hover': {
|
|
50
|
+
background: 'rgba(0, 0, 0, 0.35)'
|
|
51
|
+
}
|
|
52
|
+
}, "".concat(componentCls, "-hide-icon"), {
|
|
53
|
+
width: 6,
|
|
54
|
+
height: 2,
|
|
55
|
+
background: '#fff',
|
|
56
|
+
borderRadius: 4
|
|
57
|
+
}), "&.".concat(componentCls, "-hide-hovered"), {
|
|
58
|
+
transform: 'scale(1)',
|
|
59
|
+
opacity: 1
|
|
60
|
+
})), "".concat(componentCls, "-button"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
61
|
+
position: 'relative',
|
|
62
|
+
display: 'flex',
|
|
63
|
+
alignItems: 'center',
|
|
64
|
+
justifyContent: 'center',
|
|
65
|
+
width: 56,
|
|
66
|
+
height: 56,
|
|
67
|
+
backgroundColor: '#fff',
|
|
68
|
+
borderRadius: '50%',
|
|
69
|
+
boxShadow: boxShadowSecondary,
|
|
70
|
+
cursor: 'pointer',
|
|
71
|
+
transition: 'background-color 0.2s ease 0.1s, opacity 0.2s ease 0s, transform 0.2s ease 0.1s',
|
|
72
|
+
userSelect: 'none',
|
|
73
|
+
'&:focus-visible': {
|
|
74
|
+
outline: "2px solid ".concat(token.colorPrimary),
|
|
75
|
+
outlineOffset: 2
|
|
76
|
+
}
|
|
77
|
+
}, "&".concat(componentCls, "-button-primary"), {
|
|
78
|
+
backgroundColor: "".concat(token.colorPrimary, " !important")
|
|
79
|
+
}), "&".concat(componentCls, "-button-small"), {
|
|
80
|
+
width: 40,
|
|
81
|
+
height: 40
|
|
82
|
+
}), "&".concat(componentCls, "-button-disabled"), {
|
|
83
|
+
backgroundColor: "".concat(colorTextQuaternary, " !important"),
|
|
84
|
+
cursor: 'not-allowed'
|
|
85
|
+
}), '&:hover', {
|
|
86
|
+
opacity: 1
|
|
87
|
+
}), "".concat(componentCls, "-button-loading"), _defineProperty(_defineProperty({
|
|
88
|
+
position: 'absolute',
|
|
89
|
+
width: 56,
|
|
90
|
+
height: 56,
|
|
91
|
+
color: token.colorPrimary,
|
|
92
|
+
fontSize: 56,
|
|
93
|
+
insetBlockStart: 0,
|
|
94
|
+
insetInlineEnd: 0
|
|
95
|
+
}, "&".concat(componentCls, "-button-loading-primary"), {
|
|
96
|
+
color: '#fff'
|
|
97
|
+
}), "&".concat(componentCls, "-button-loading-small"), {
|
|
98
|
+
width: 40,
|
|
99
|
+
height: 40,
|
|
100
|
+
fontSize: 40,
|
|
101
|
+
lineHeight: 40
|
|
102
|
+
})), "".concat(componentCls, "-button-close"), _defineProperty(_defineProperty(_defineProperty({
|
|
103
|
+
position: 'absolute',
|
|
104
|
+
width: 24,
|
|
105
|
+
height: 24,
|
|
106
|
+
color: colorTextSecondary,
|
|
107
|
+
fontSize: 24,
|
|
108
|
+
transform: 'translate(-50%, -50%) scale(0.4) rotate(-45deg)',
|
|
109
|
+
opacity: 0,
|
|
110
|
+
transition: 'all 0.3s linear',
|
|
111
|
+
userSelect: 'none',
|
|
112
|
+
insetBlockStart: '50%',
|
|
113
|
+
insetInlineStart: '50%'
|
|
114
|
+
}, "&.".concat(componentCls, "-button-close-primary"), {
|
|
115
|
+
color: '#fff'
|
|
116
|
+
}), "&.".concat(componentCls, "-button-close-show"), {
|
|
117
|
+
transform: 'translate(-50%, -50%)',
|
|
118
|
+
opacity: 1
|
|
119
|
+
}), "&.".concat(componentCls, "-button-close-small"), {
|
|
120
|
+
width: 16,
|
|
121
|
+
height: 16,
|
|
122
|
+
fontSize: 16,
|
|
123
|
+
lineHeight: 16
|
|
124
|
+
})), "".concat(componentCls, "-button-icon"), _defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
125
|
+
position: 'absolute',
|
|
126
|
+
display: 'flex',
|
|
127
|
+
alignItems: 'center',
|
|
128
|
+
justifyContent: 'center',
|
|
129
|
+
width: 24,
|
|
130
|
+
height: 24,
|
|
131
|
+
color: colorTextSecondary,
|
|
132
|
+
fontSize: 24,
|
|
133
|
+
lineHeight: 24,
|
|
134
|
+
transform: 'translate(-50%, -50%)',
|
|
135
|
+
opacity: 1,
|
|
136
|
+
transition: 'all 0.3s linear',
|
|
137
|
+
userSelect: 'none',
|
|
138
|
+
insetBlockStart: '50%',
|
|
139
|
+
insetInlineStart: '50%',
|
|
140
|
+
'> *': {
|
|
141
|
+
fontSize: 'inherit',
|
|
142
|
+
color: 'inherit'
|
|
143
|
+
},
|
|
144
|
+
img: {
|
|
145
|
+
width: '100%',
|
|
146
|
+
height: '100%',
|
|
147
|
+
objectFit: 'contain'
|
|
148
|
+
}
|
|
149
|
+
}, "&.".concat(componentCls, "-button-icon-open"), {
|
|
150
|
+
transform: 'translate(-50%, -50%) scale(0.4) rotate(45deg)',
|
|
151
|
+
opacity: 0
|
|
152
|
+
}), "&.".concat(componentCls, "-button-icon-disabled"), {
|
|
153
|
+
color: colorTextQuaternary
|
|
154
|
+
}), "&".concat(componentCls, "-button-icon-primary"), {
|
|
155
|
+
color: '#fff !important',
|
|
156
|
+
'> *': {
|
|
157
|
+
color: '#fff !important'
|
|
158
|
+
}
|
|
159
|
+
}), "&".concat(componentCls, "-button-icon-small"), {
|
|
160
|
+
width: 16,
|
|
161
|
+
height: 16,
|
|
162
|
+
fontSize: 16,
|
|
163
|
+
lineHeight: 16
|
|
164
|
+
}))));
|
|
165
|
+
};
|
|
166
|
+
export default (function (prefixCls) {
|
|
167
|
+
var useStyle = genComponentStyleHook('SideTip', function (token) {
|
|
168
|
+
return [genSideTipStyle(token)];
|
|
169
|
+
});
|
|
170
|
+
return useStyle(prefixCls);
|
|
171
|
+
});
|
package/es/TagSelect/Group.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export type TagSelectValueType = string | number | readonly string[];
|
|
3
3
|
export interface TagSelectOptionType {
|
|
4
4
|
label: React.ReactNode;
|
|
@@ -9,15 +9,15 @@ export interface TagSelectOptionType {
|
|
|
9
9
|
}
|
|
10
10
|
export interface TagSelectGroupProps {
|
|
11
11
|
title?: string;
|
|
12
|
-
children?: ReactNode;
|
|
12
|
+
children?: React.ReactNode;
|
|
13
13
|
disabled?: boolean;
|
|
14
14
|
className?: string;
|
|
15
15
|
multiple?: boolean;
|
|
16
|
-
defaultValue?: TagSelectValueType |
|
|
17
|
-
value?: TagSelectValueType |
|
|
16
|
+
defaultValue?: TagSelectValueType | TagSelectValueType[];
|
|
17
|
+
value?: TagSelectValueType | TagSelectValueType[];
|
|
18
18
|
size?: string;
|
|
19
|
-
options?:
|
|
20
|
-
onChange?: (value:
|
|
19
|
+
options?: (TagSelectOptionType | string | number)[];
|
|
20
|
+
onChange?: (value: TagSelectValueType[] | TagSelectValueType) => void;
|
|
21
21
|
}
|
|
22
22
|
declare const Group: React.FC<TagSelectGroupProps>;
|
|
23
23
|
export default Group;
|
package/es/TagSelect/Group.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
var _excluded = ["title", "multiple", "defaultValue", "size", "options", "children", "className"];
|
|
2
3
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
3
4
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -12,8 +13,8 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
12
13
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
13
14
|
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; }
|
|
14
15
|
import classNames from 'classnames';
|
|
15
|
-
import {
|
|
16
|
-
import React, { useMemo, useState, useEffect } from 'react';
|
|
16
|
+
import { ConfigProvider } from '@oceanbase/design';
|
|
17
|
+
import React, { useContext, useId, useMemo, useState, useEffect } from 'react';
|
|
17
18
|
import TagSelectContext from "./TagSelectContext";
|
|
18
19
|
import Item from "./Item";
|
|
19
20
|
import useStyle from "./style";
|
|
@@ -39,7 +40,9 @@ var Group = function Group(_ref) {
|
|
|
39
40
|
children = _ref.children,
|
|
40
41
|
className = _ref.className,
|
|
41
42
|
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
42
|
-
var
|
|
43
|
+
var _useContext = useContext(ConfigProvider.ConfigContext),
|
|
44
|
+
getPrefixCls = _useContext.getPrefixCls;
|
|
45
|
+
var prefix = getPrefixCls('tag-select');
|
|
43
46
|
var _useStyle = useStyle(prefix),
|
|
44
47
|
wrapSSR = _useStyle.wrapSSR,
|
|
45
48
|
hashId = _useStyle.hashId;
|
|
@@ -112,12 +115,16 @@ var Group = function Group(_ref) {
|
|
|
112
115
|
}, option.value.toString());
|
|
113
116
|
}) : children;
|
|
114
117
|
var groupCls = classNames("".concat(prefix, "-container"), hashId, className);
|
|
118
|
+
var titleId = useId();
|
|
115
119
|
return wrapSSR( /*#__PURE__*/_jsx(TagSelectContext.Provider, {
|
|
116
120
|
value: contextValue,
|
|
117
121
|
children: /*#__PURE__*/_jsxs("div", {
|
|
118
122
|
className: groupCls,
|
|
119
|
-
|
|
123
|
+
role: "group",
|
|
124
|
+
"aria-labelledby": title ? titleId : undefined,
|
|
125
|
+
children: [title && /*#__PURE__*/_jsx("div", {
|
|
120
126
|
className: "".concat(prefix, "-title"),
|
|
127
|
+
id: titleId,
|
|
121
128
|
children: title
|
|
122
129
|
}), childrenNode]
|
|
123
130
|
})
|
package/es/TagSelect/Item.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
var _excluded = ["children", "handleChange", "onChange", "cover"];
|
|
2
3
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
4
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -16,9 +17,9 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
16
17
|
import RcCheckBox from 'rc-checkbox';
|
|
17
18
|
import classNames from 'classnames';
|
|
18
19
|
import { isBoolean } from 'lodash';
|
|
19
|
-
import React, { useEffect, useState } from 'react';
|
|
20
|
+
import React, { useContext, useEffect, useState } from 'react';
|
|
21
|
+
import { ConfigProvider } from '@oceanbase/design';
|
|
20
22
|
import useStyle from "./style";
|
|
21
|
-
import { getPrefix } from "../_util";
|
|
22
23
|
import TagSelectContext from "./TagSelectContext";
|
|
23
24
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
25
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -33,7 +34,9 @@ var Item = function Item(_ref) {
|
|
|
33
34
|
checked = _useState2[0],
|
|
34
35
|
setChecked = _useState2[1];
|
|
35
36
|
var coverType = _typeof(cover);
|
|
36
|
-
var
|
|
37
|
+
var _useContext = useContext(ConfigProvider.ConfigContext),
|
|
38
|
+
getPrefixCls = _useContext.getPrefixCls;
|
|
39
|
+
var prefixCls = getPrefixCls('tag-select');
|
|
37
40
|
var _useStyle = useStyle(prefixCls),
|
|
38
41
|
wrapSSR = _useStyle.wrapSSR,
|
|
39
42
|
hashId = _useStyle.hashId;
|
|
@@ -57,11 +60,12 @@ var Item = function Item(_ref) {
|
|
|
57
60
|
}
|
|
58
61
|
}, [tagSelectGroup.value, restProps.value]);
|
|
59
62
|
var renderCover = function renderCover() {
|
|
63
|
+
var _restProps$title;
|
|
60
64
|
return coverType === 'string' ? /*#__PURE__*/_jsx("div", {
|
|
61
65
|
className: "".concat(prefixCls, "-cover"),
|
|
62
66
|
children: /*#__PURE__*/_jsx("img", {
|
|
63
67
|
src: cover,
|
|
64
|
-
alt:
|
|
68
|
+
alt: (_restProps$title = restProps.title) !== null && _restProps$title !== void 0 ? _restProps$title : ''
|
|
65
69
|
})
|
|
66
70
|
}) : cover;
|
|
67
71
|
};
|
package/es/TagSelect/index.js
CHANGED
package/es/TreeSearch/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
3
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
4
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|