@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
|
@@ -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 _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
4
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
@@ -9,38 +10,43 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
9
10
|
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; } }
|
|
10
11
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
11
12
|
import { FullscreenExitOutlined, FullscreenOutlined } from '@oceanbase/icons';
|
|
13
|
+
import { ConfigProvider } from '@oceanbase/design';
|
|
12
14
|
import classnames from 'classnames';
|
|
13
|
-
import React, { useEffect, useImperativeHandle, useRef, useState } from 'react';
|
|
15
|
+
import React, { useContext, useEffect, useImperativeHandle, useRef, useState } from 'react';
|
|
14
16
|
import screenFull from 'screenfull';
|
|
15
17
|
import LocaleWrapper from "../locale/LocaleWrapper";
|
|
16
|
-
import
|
|
18
|
+
import useStyle from "./style";
|
|
17
19
|
import zhCN from "./locale/zh-CN";
|
|
18
|
-
// @ts-ignore
|
|
19
|
-
import "./index.less";
|
|
20
20
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
21
21
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
22
|
-
var prefix = getPrefix('fullscreen-box');
|
|
23
22
|
var FullscreenBox = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
24
23
|
var style = _ref.style,
|
|
25
24
|
header = _ref.header,
|
|
26
25
|
className = _ref.className,
|
|
27
26
|
defaultMode = _ref.defaultMode,
|
|
28
27
|
children = _ref.children,
|
|
29
|
-
onChange = _ref.onChange
|
|
28
|
+
onChange = _ref.onChange,
|
|
29
|
+
locale = _ref.locale;
|
|
30
|
+
var _useContext = useContext(ConfigProvider.ConfigContext),
|
|
31
|
+
getPrefixCls = _useContext.getPrefixCls;
|
|
32
|
+
var prefixCls = getPrefixCls('fullscreen-box');
|
|
33
|
+
var _useStyle = useStyle(prefixCls),
|
|
34
|
+
wrapSSR = _useStyle.wrapSSR;
|
|
30
35
|
var _useState = useState(false),
|
|
31
36
|
_useState2 = _slicedToArray(_useState, 2),
|
|
32
37
|
innerFullscreen = _useState2[0],
|
|
33
38
|
setInnerFullscreen = _useState2[1];
|
|
34
|
-
var containerRef = useRef();
|
|
39
|
+
var containerRef = useRef(null);
|
|
35
40
|
var fullscreenMode = defaultMode || 'viewport';
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* 通知外部
|
|
44
|
+
*/
|
|
45
|
+
var emitChange = function emitChange(fullscreen) {
|
|
46
|
+
if (onChange) {
|
|
47
|
+
onChange(fullscreen);
|
|
48
|
+
}
|
|
49
|
+
};
|
|
44
50
|
|
|
45
51
|
/**
|
|
46
52
|
* 处理全屏模式切换完成后动作
|
|
@@ -52,6 +58,15 @@ var FullscreenBox = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
52
58
|
});
|
|
53
59
|
emitChange(isFullscreen);
|
|
54
60
|
};
|
|
61
|
+
useEffect(function () {
|
|
62
|
+
// 添加事件监听
|
|
63
|
+
screenFull.on('change', handleFullscreenChange);
|
|
64
|
+
return function () {
|
|
65
|
+
// 移除事件监听
|
|
66
|
+
screenFull.off('change', handleFullscreenChange);
|
|
67
|
+
};
|
|
68
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
69
|
+
}, []);
|
|
55
70
|
var toggleFullscreen = function toggleFullscreen() {
|
|
56
71
|
_changeFullscreen(!innerFullscreen);
|
|
57
72
|
};
|
|
@@ -82,15 +97,6 @@ var FullscreenBox = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
82
97
|
return Promise.resolve(fullscreen);
|
|
83
98
|
};
|
|
84
99
|
|
|
85
|
-
/**
|
|
86
|
-
* 通知外部
|
|
87
|
-
*/
|
|
88
|
-
var emitChange = function emitChange(fullscreen) {
|
|
89
|
-
if (onChange) {
|
|
90
|
-
onChange(fullscreen);
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
|
-
|
|
94
100
|
// 向组件外部暴露 refresh 属性函数,可通过 ref 引用
|
|
95
101
|
useImperativeHandle(ref, function () {
|
|
96
102
|
return {
|
|
@@ -99,18 +105,18 @@ var FullscreenBox = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
99
105
|
}
|
|
100
106
|
};
|
|
101
107
|
});
|
|
102
|
-
var
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
}
|
|
108
|
+
var fullscreenLabel = innerFullscreen ? locale === null || locale === void 0 ? void 0 : locale.exitFullscreen : locale === null || locale === void 0 ? void 0 : locale.enterFullscreen;
|
|
109
|
+
var fullscreenIcon = innerFullscreen ? /*#__PURE__*/_jsx(FullscreenExitOutlined, {}) : /*#__PURE__*/_jsx(FullscreenOutlined, {});
|
|
110
|
+
useEffect(function () {
|
|
111
|
+
if (innerFullscreen) {
|
|
112
|
+
document.body.classList.add("".concat(prefixCls, "-body-overflow-hidden"));
|
|
113
|
+
} else {
|
|
114
|
+
document.body.classList.remove("".concat(prefixCls, "-body-overflow-hidden"));
|
|
115
|
+
}
|
|
116
|
+
return function () {
|
|
117
|
+
document.body.classList.remove("".concat(prefixCls, "-body-overflow-hidden"));
|
|
118
|
+
};
|
|
119
|
+
}, [innerFullscreen, prefixCls]);
|
|
114
120
|
var isComplexHeader = header && (header.title || header.extra);
|
|
115
121
|
var isStringHeader = typeof header === 'string';
|
|
116
122
|
var headerContent;
|
|
@@ -124,26 +130,38 @@ var FullscreenBox = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
124
130
|
var title = isStringHeader ? header : isComplexHeader && header.title;
|
|
125
131
|
var extra = isComplexHeader && header.extra;
|
|
126
132
|
headerContent = /*#__PURE__*/_jsxs("div", {
|
|
127
|
-
className: "".concat(
|
|
133
|
+
className: "".concat(prefixCls, "-header"),
|
|
128
134
|
"data-testid": "header",
|
|
129
135
|
children: [/*#__PURE__*/_jsxs("div", {
|
|
130
|
-
className: "".concat(
|
|
131
|
-
children: [
|
|
132
|
-
|
|
136
|
+
className: "".concat(prefixCls, "-header-left"),
|
|
137
|
+
children: [/*#__PURE__*/_jsx("button", {
|
|
138
|
+
type: "button",
|
|
139
|
+
className: "".concat(prefixCls, "-header-icon-btn"),
|
|
140
|
+
"aria-label": fullscreenLabel,
|
|
141
|
+
"aria-pressed": innerFullscreen,
|
|
142
|
+
onClick: toggleFullscreen,
|
|
143
|
+
children: /*#__PURE__*/_jsx("span", {
|
|
144
|
+
className: "".concat(prefixCls, "-header-icon"),
|
|
145
|
+
"aria-hidden": true,
|
|
146
|
+
children: fullscreenIcon
|
|
147
|
+
})
|
|
148
|
+
}), title && /*#__PURE__*/_jsx("span", {
|
|
149
|
+
className: "".concat(prefixCls, "-header-title"),
|
|
133
150
|
children: title
|
|
134
151
|
})]
|
|
135
152
|
}), isComplexHeader && extra && /*#__PURE__*/_jsx("div", {
|
|
136
|
-
className: "".concat(
|
|
153
|
+
className: "".concat(prefixCls, "-header-extra"),
|
|
137
154
|
children: extra
|
|
138
155
|
})]
|
|
139
156
|
});
|
|
140
157
|
}
|
|
141
|
-
return /*#__PURE__*/_jsxs("div", {
|
|
158
|
+
return wrapSSR( /*#__PURE__*/_jsxs("div", {
|
|
142
159
|
ref: containerRef,
|
|
143
160
|
style: style,
|
|
144
|
-
className: classnames(
|
|
161
|
+
className: classnames(prefixCls, className, _defineProperty({}, "".concat(prefixCls, "-fullscreen"), innerFullscreen)),
|
|
162
|
+
"aria-live": "polite",
|
|
145
163
|
children: [headerContent, children]
|
|
146
|
-
});
|
|
164
|
+
}));
|
|
147
165
|
});
|
|
148
166
|
export default LocaleWrapper({
|
|
149
167
|
componentName: 'FullscreenBox',
|
|
@@ -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 FullscreenBoxToken = OBToken;
|
|
5
|
+
export declare const genFullscreenBoxStyle: GenerateStyle<FullscreenBoxToken>;
|
|
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,74 @@
|
|
|
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 genFullscreenBoxStyle = function genFullscreenBoxStyle(token) {
|
|
7
|
+
var componentCls = token.componentCls,
|
|
8
|
+
fontWeightStrong = token.fontWeightStrong,
|
|
9
|
+
colorText = token.colorText,
|
|
10
|
+
colorBgContainer = token.colorBgContainer,
|
|
11
|
+
prefixCls = token.prefixCls;
|
|
12
|
+
return _defineProperty(_defineProperty({}, componentCls, _defineProperty(_defineProperty({
|
|
13
|
+
boxSizing: 'border-box',
|
|
14
|
+
margin: 0,
|
|
15
|
+
padding: 0,
|
|
16
|
+
color: colorText,
|
|
17
|
+
fontSize: 14,
|
|
18
|
+
lineHeight: 1.5714285714285714,
|
|
19
|
+
listStyle: 'none'
|
|
20
|
+
}, "&.".concat(prefixCls, "-fullscreen"), {
|
|
21
|
+
position: 'fixed',
|
|
22
|
+
zIndex: 900,
|
|
23
|
+
background: colorBgContainer,
|
|
24
|
+
insetBlockStart: 0,
|
|
25
|
+
insetInlineEnd: 0,
|
|
26
|
+
insetBlockEnd: 0,
|
|
27
|
+
insetInlineStart: 0
|
|
28
|
+
}), "& ".concat(componentCls, "-header"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
29
|
+
display: 'flex',
|
|
30
|
+
alignItems: 'center',
|
|
31
|
+
height: 64
|
|
32
|
+
}, "& ".concat(componentCls, "-header-left"), {
|
|
33
|
+
display: 'flex',
|
|
34
|
+
flex: 1,
|
|
35
|
+
alignItems: 'center',
|
|
36
|
+
paddingBlock: 20,
|
|
37
|
+
paddingInline: 24
|
|
38
|
+
}), "& ".concat(componentCls, "-header-icon-btn"), {
|
|
39
|
+
display: 'inline-flex',
|
|
40
|
+
alignItems: 'center',
|
|
41
|
+
justifyContent: 'center',
|
|
42
|
+
minWidth: 24,
|
|
43
|
+
minHeight: 24,
|
|
44
|
+
padding: 0,
|
|
45
|
+
margin: 0,
|
|
46
|
+
border: 'none',
|
|
47
|
+
background: 'transparent',
|
|
48
|
+
color: colorText,
|
|
49
|
+
cursor: 'pointer',
|
|
50
|
+
verticalAlign: 'middle'
|
|
51
|
+
}), "& ".concat(componentCls, "-header-icon"), {
|
|
52
|
+
display: 'inline-flex',
|
|
53
|
+
fontSize: 16,
|
|
54
|
+
lineHeight: 1
|
|
55
|
+
}), "& ".concat(componentCls, "-header-title"), {
|
|
56
|
+
fontWeight: fontWeightStrong,
|
|
57
|
+
fontSize: 16,
|
|
58
|
+
lineHeight: 24,
|
|
59
|
+
marginInlineStart: 24
|
|
60
|
+
}), "& ".concat(componentCls, "-header-extra"), {
|
|
61
|
+
flex: 2,
|
|
62
|
+
lineHeight: 64,
|
|
63
|
+
textAlign: 'end',
|
|
64
|
+
paddingInlineEnd: 24
|
|
65
|
+
}))), "".concat(componentCls, "-body-overflow-hidden"), {
|
|
66
|
+
overflow: 'hidden'
|
|
67
|
+
});
|
|
68
|
+
};
|
|
69
|
+
export default (function (prefixCls) {
|
|
70
|
+
var useStyle = genComponentStyleHook('FullscreenBox', function (token) {
|
|
71
|
+
return [genFullscreenBoxStyle(token)];
|
|
72
|
+
});
|
|
73
|
+
return useStyle(prefixCls);
|
|
74
|
+
});
|
|
@@ -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 _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
4
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
@@ -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; }
|
|
@@ -14,17 +15,15 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
14
15
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
15
16
|
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; } }
|
|
16
17
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
18
|
+
import { ConfigProvider } from '@oceanbase/design';
|
|
17
19
|
import classNames from 'classnames';
|
|
18
20
|
import { diffLines } from 'diff';
|
|
19
21
|
import hljs from 'highlight.js/lib/core';
|
|
20
22
|
import warning from 'rc-util/lib/warning';
|
|
21
|
-
import React, { useEffect, useMemo } from 'react';
|
|
23
|
+
import React, { useContext, useEffect, useMemo } from 'react';
|
|
22
24
|
import { languageMap } from '..';
|
|
23
|
-
import { getPrefix } from "../../_util";
|
|
24
25
|
import { useKeyDownCopyEvent } from "../useKeyDownCopyEvent";
|
|
25
26
|
import DiffCells from "./DiffCells";
|
|
26
|
-
// @ts-ignore
|
|
27
|
-
import "../index.less";
|
|
28
27
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
29
28
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
30
29
|
var MAX_MERGE_TIMES = 10000;
|
|
@@ -47,7 +46,9 @@ var DiffView = function DiffView(_ref2) {
|
|
|
47
46
|
height = _ref2.height,
|
|
48
47
|
_ref2$startRowIndex = _ref2.startRowIndex,
|
|
49
48
|
baseStartRowIndex = _ref2$startRowIndex === void 0 ? 1 : _ref2$startRowIndex;
|
|
50
|
-
var
|
|
49
|
+
var _useContext = useContext(ConfigProvider.ConfigContext),
|
|
50
|
+
getPrefixCls = _useContext.getPrefixCls;
|
|
51
|
+
var prefixCls = customizePrefixCls || getPrefixCls('highlight');
|
|
51
52
|
var diffPrefixCls = "".concat(prefixCls, "-diff");
|
|
52
53
|
var _React$useState = React.useState(null),
|
|
53
54
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
package/es/Highlight/JsonView.js
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
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 _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
4
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
4
5
|
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); }
|
|
6
|
+
import { ConfigProvider } from '@oceanbase/design';
|
|
5
7
|
import classNames from 'classnames';
|
|
6
|
-
import React, { useRef } from 'react';
|
|
8
|
+
import React, { useContext, useRef } from 'react';
|
|
7
9
|
import ReactJson from 'react-json-view';
|
|
8
|
-
import { getPrefix } from "../_util";
|
|
9
10
|
import { THEME_DARK } from '.';
|
|
10
11
|
import { useKeyDownCopyEvent } from "./useKeyDownCopyEvent";
|
|
11
|
-
// @ts-ignore
|
|
12
|
-
import "./index.less";
|
|
13
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
13
|
export default (function (_ref) {
|
|
15
14
|
var json = _ref.json,
|
|
@@ -21,7 +20,9 @@ export default (function (_ref) {
|
|
|
21
20
|
onCopyChange = _ref$onCopyChange === void 0 ? function () {} : _ref$onCopyChange,
|
|
22
21
|
_ref$copyable = _ref.copyable,
|
|
23
22
|
copyable = _ref$copyable === void 0 ? true : _ref$copyable;
|
|
24
|
-
var
|
|
23
|
+
var _useContext = useContext(ConfigProvider.ConfigContext),
|
|
24
|
+
getPrefixCls = _useContext.getPrefixCls;
|
|
25
|
+
var prefixCls = getPrefixCls('highlight');
|
|
25
26
|
var isDarkTheme = theme === THEME_DARK;
|
|
26
27
|
var codeRef = useRef();
|
|
27
28
|
useKeyDownCopyEvent(codeRef);
|
package/es/Highlight/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="highlight.js" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import type { LocaleWrapperProps } from '../locale/LocaleWrapper';
|
|
4
|
-
import './index.less';
|
|
5
4
|
export declare const languageMap: {
|
|
6
5
|
javascript: any;
|
|
7
6
|
typescript: any;
|
|
@@ -29,7 +28,7 @@ export declare const THEME_DARK = "dark";
|
|
|
29
28
|
export declare const THEME_LIGHT = "light";
|
|
30
29
|
declare const ThemeTypes: ["dark", "light"];
|
|
31
30
|
export type ThemeType = (typeof ThemeTypes)[number];
|
|
32
|
-
declare const supportedLanguages: ("
|
|
31
|
+
declare const supportedLanguages: ("ruby" | "css" | "json" | "jsx" | "tsx" | "javascript" | "typescript" | "groovy" | "java" | "python" | "bash" | "cpp" | "http" | "markdown" | "nginx" | "sql" | "xml" | "dockerfile" | "go" | "yaml" | "solidity")[];
|
|
33
32
|
export type LanguageType = (typeof supportedLanguages)[number] | 'html';
|
|
34
33
|
export interface HighlightProps extends LocaleWrapperProps {
|
|
35
34
|
/**
|
package/es/Highlight/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; }
|
|
@@ -17,16 +18,16 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
17
18
|
* 优先支持主流语言,没有 import 在代码中使用的不会打包
|
|
18
19
|
*/
|
|
19
20
|
import hljs from 'highlight.js/lib/core';
|
|
20
|
-
import React, { useEffect, useState } from 'react';
|
|
21
|
+
import React, { useContext, useEffect, useState } from 'react';
|
|
21
22
|
import { default as javascript, default as jsx } from "./languages/javascript";
|
|
22
23
|
// tsx 本质上也是采用typescript进行解析,hljs做了支持
|
|
23
24
|
import { CheckOutlined, CopyOutlined } from '@oceanbase/icons';
|
|
24
|
-
import { theme as obTheme } from '@oceanbase/design';
|
|
25
|
+
import { ConfigProvider, theme as obTheme } from '@oceanbase/design';
|
|
25
26
|
import { message } from '@oceanbase/design';
|
|
26
27
|
import classNames from 'classnames';
|
|
27
28
|
import CopyToClipboard from 'react-copy-to-clipboard';
|
|
28
29
|
import LocaleWrapper from "../locale/LocaleWrapper";
|
|
29
|
-
import
|
|
30
|
+
import useStyle from "./style";
|
|
30
31
|
import DiffView from "./DiffView";
|
|
31
32
|
import HighlightCell from "./HighlightCell";
|
|
32
33
|
import JsonView from "./JsonView";
|
|
@@ -50,8 +51,6 @@ import xml from "./languages/xml";
|
|
|
50
51
|
import yaml from "./languages/yaml";
|
|
51
52
|
import zhCN from "./locale/zh-CN";
|
|
52
53
|
import { useKeyDownCopyEvent } from "./useKeyDownCopyEvent";
|
|
53
|
-
// @ts-ignore
|
|
54
|
-
import "./index.less";
|
|
55
54
|
|
|
56
55
|
// 目前支持的语言列表
|
|
57
56
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -113,7 +112,11 @@ var Highlight = function Highlight(props) {
|
|
|
113
112
|
onCopyChange = _props$onCopyChange === void 0 ? function () {} : _props$onCopyChange,
|
|
114
113
|
language = props.language,
|
|
115
114
|
locale = props.locale;
|
|
116
|
-
var
|
|
115
|
+
var _useContext = useContext(ConfigProvider.ConfigContext),
|
|
116
|
+
getPrefixCls = _useContext.getPrefixCls;
|
|
117
|
+
var prefixCls = getPrefixCls('highlight');
|
|
118
|
+
var _useStyle = useStyle(prefixCls),
|
|
119
|
+
wrapSSR = _useStyle.wrapSSR;
|
|
117
120
|
var themeClass = theme === THEME_DARK ? "".concat(prefixCls, "-dark") : "".concat(prefixCls, "-light");
|
|
118
121
|
var codeRef = /*#__PURE__*/React.createRef();
|
|
119
122
|
|
|
@@ -211,8 +214,11 @@ var Highlight = function Highlight(props) {
|
|
|
211
214
|
setCopyId(tempCopyId);
|
|
212
215
|
},
|
|
213
216
|
children: /*#__PURE__*/_jsxs("button", {
|
|
217
|
+
type: "button",
|
|
214
218
|
disabled: copied,
|
|
215
219
|
className: classNames("".concat(prefixCls, "-copy")),
|
|
220
|
+
"aria-label": locale === null || locale === void 0 ? void 0 : locale.copyCode,
|
|
221
|
+
"aria-pressed": copied,
|
|
216
222
|
style: {
|
|
217
223
|
background: "".concat(theme === THEME_DARK ? "#2b303b" : token.colorBgLayout)
|
|
218
224
|
},
|
|
@@ -222,34 +228,36 @@ var Highlight = function Highlight(props) {
|
|
|
222
228
|
}),
|
|
223
229
|
style: {
|
|
224
230
|
color: "".concat(theme === THEME_DARK ? token.colorBgLayout : "#2b303b")
|
|
225
|
-
}
|
|
231
|
+
},
|
|
232
|
+
"aria-hidden": true
|
|
226
233
|
}), /*#__PURE__*/_jsx(CheckOutlined, {
|
|
227
234
|
className: classNames("".concat(prefixCls, "-copy-icon")),
|
|
228
235
|
style: {
|
|
229
236
|
color: 'rgb(63,177,99)'
|
|
230
|
-
}
|
|
237
|
+
},
|
|
238
|
+
"aria-hidden": true
|
|
231
239
|
})]
|
|
232
240
|
})
|
|
233
241
|
})
|
|
234
242
|
});
|
|
235
243
|
};
|
|
236
|
-
return /*#__PURE__*/
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
})
|
|
251
|
-
})
|
|
252
|
-
});
|
|
244
|
+
return wrapSSR( /*#__PURE__*/_jsxs("pre", _objectSpread(_objectSpread({}, customProps), {}, {
|
|
245
|
+
role: "region",
|
|
246
|
+
"aria-label": locale === null || locale === void 0 ? void 0 : locale.copyCodeRegion,
|
|
247
|
+
style: _objectSpread(_objectSpread({}, customStyle), {}, {
|
|
248
|
+
position: 'relative'
|
|
249
|
+
}),
|
|
250
|
+
className: classNames("".concat(prefixCls), className, themeClass),
|
|
251
|
+
children: [copyable && /*#__PURE__*/_jsx(CopyButton, {}), /*#__PURE__*/_jsx("table", {
|
|
252
|
+
style: {
|
|
253
|
+
height: height
|
|
254
|
+
},
|
|
255
|
+
className: classNames("".concat(theme === THEME_DARK ? "".concat(prefixCls, "-dark") : "".concat(prefixCls, "-light"))),
|
|
256
|
+
children: /*#__PURE__*/_jsx("tbody", {
|
|
257
|
+
children: codeBlock
|
|
258
|
+
})
|
|
259
|
+
})]
|
|
260
|
+
})));
|
|
253
261
|
};
|
|
254
262
|
var HighlightWrapper = function HighlightWrapper(props) {
|
|
255
263
|
var language = props.language,
|
|
@@ -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 HighlightToken = OBToken;
|
|
5
|
+
export declare const genHighlightStyle: GenerateStyle<HighlightToken>;
|
|
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;
|