dumi-theme-antd4 0.0.1

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.
Files changed (130) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +109 -0
  3. package/dist/builtins/Alert/index.d.ts +6 -0
  4. package/dist/builtins/Alert/index.js +25 -0
  5. package/dist/builtins/BashOSPlatform/android.d.ts +7 -0
  6. package/dist/builtins/BashOSPlatform/android.js +37 -0
  7. package/dist/builtins/BashOSPlatform/index.d.ts +11 -0
  8. package/dist/builtins/BashOSPlatform/index.js +51 -0
  9. package/dist/builtins/BashOSPlatform/linux.d.ts +7 -0
  10. package/dist/builtins/BashOSPlatform/linux.js +60 -0
  11. package/dist/builtins/BashOSPlatform/macos.d.ts +7 -0
  12. package/dist/builtins/BashOSPlatform/macos.js +20 -0
  13. package/dist/builtins/BashOSPlatform/windows.d.ts +7 -0
  14. package/dist/builtins/BashOSPlatform/windows.js +20 -0
  15. package/dist/builtins/BashTabs/index.d.ts +21 -0
  16. package/dist/builtins/BashTabs/index.js +52 -0
  17. package/dist/builtins/HomeBaseLayout/components/Features/index.d.ts +3 -0
  18. package/dist/builtins/HomeBaseLayout/components/Features/index.js +78 -0
  19. package/dist/builtins/HomeBaseLayout/components/Group.d.ts +19 -0
  20. package/dist/builtins/HomeBaseLayout/components/Group.js +89 -0
  21. package/dist/builtins/HomeBaseLayout/index.d.ts +3 -0
  22. package/dist/builtins/HomeBaseLayout/index.js +201 -0
  23. package/dist/builtins/ImagePreview/index.d.ts +3 -0
  24. package/dist/builtins/ImagePreview/index.js +105 -0
  25. package/dist/builtins/InstallDependencies/index.d.ts +9 -0
  26. package/dist/builtins/InstallDependencies/index.js +38 -0
  27. package/dist/builtins/InstallDependencies/npm.d.ts +7 -0
  28. package/dist/builtins/InstallDependencies/npm.js +20 -0
  29. package/dist/builtins/InstallDependencies/pnpm.d.ts +7 -0
  30. package/dist/builtins/InstallDependencies/pnpm.js +22 -0
  31. package/dist/builtins/InstallDependencies/yarn.d.ts +7 -0
  32. package/dist/builtins/InstallDependencies/yarn.js +21 -0
  33. package/dist/common/CommonHelmet.d.ts +2 -0
  34. package/dist/common/CommonHelmet.js +27 -0
  35. package/dist/common/EditLink.d.ts +2 -0
  36. package/dist/common/EditLink.js +24 -0
  37. package/dist/common/GlobalStyles.d.ts +2 -0
  38. package/dist/common/GlobalStyles.js +7 -0
  39. package/dist/common/LastUpdated.d.ts +5 -0
  40. package/dist/common/LastUpdated.js +53 -0
  41. package/dist/common/Loading/index.d.ts +3 -0
  42. package/dist/common/Loading/index.js +67 -0
  43. package/dist/common/PrevAndNext.d.ts +5 -0
  44. package/dist/common/PrevAndNext.js +88 -0
  45. package/dist/common/styles/Common.d.ts +2 -0
  46. package/dist/common/styles/Common.js +16 -0
  47. package/dist/common/styles/DumiDefaultStyleOverride.d.ts +2 -0
  48. package/dist/common/styles/DumiDefaultStyleOverride.js +12 -0
  49. package/dist/common/styles/HeadingAnchor.d.ts +2 -0
  50. package/dist/common/styles/HeadingAnchor.js +17 -0
  51. package/dist/common/styles/Highlight.d.ts +2 -0
  52. package/dist/common/styles/Highlight.js +10 -0
  53. package/dist/common/styles/Markdown.d.ts +2 -0
  54. package/dist/common/styles/Markdown.js +13 -0
  55. package/dist/common/styles/PreviewImage.d.ts +2 -0
  56. package/dist/common/styles/PreviewImage.js +10 -0
  57. package/dist/common/styles/Reset.d.ts +2 -0
  58. package/dist/common/styles/Reset.js +17 -0
  59. package/dist/common/styles/Responsive.d.ts +2 -0
  60. package/dist/common/styles/Responsive.js +10 -0
  61. package/dist/common/styles/SearchBar.d.ts +2 -0
  62. package/dist/common/styles/SearchBar.js +11 -0
  63. package/dist/common/styles/index.d.ts +9 -0
  64. package/dist/common/styles/index.js +9 -0
  65. package/dist/defineThemeConfig/index.d.ts +7 -0
  66. package/dist/defineThemeConfig/index.js +31 -0
  67. package/dist/hooks/useAdditionalThemeConfig.d.ts +6 -0
  68. package/dist/hooks/useAdditionalThemeConfig.js +9 -0
  69. package/dist/hooks/useLocaleValue.d.ts +1 -0
  70. package/dist/hooks/useLocaleValue.js +10 -0
  71. package/dist/hooks/useMenu.d.ts +14 -0
  72. package/dist/hooks/useMenu.js +266 -0
  73. package/dist/hooks/useSiteToken.d.ts +66 -0
  74. package/dist/hooks/useSiteToken.js +105 -0
  75. package/dist/hooks/uselocale.d.ts +5 -0
  76. package/dist/hooks/uselocale.js +7 -0
  77. package/dist/icons/LTRIcon.d.ts +5 -0
  78. package/dist/icons/LTRIcon.js +20 -0
  79. package/dist/icons/RTLIcon.d.ts +5 -0
  80. package/dist/icons/RTLIcon.js +23 -0
  81. package/dist/index.d.ts +4 -0
  82. package/dist/index.js +4 -0
  83. package/dist/layouts/DocLayout/index.d.ts +4 -0
  84. package/dist/layouts/DocLayout/index.js +90 -0
  85. package/dist/layouts/GlobalLayout.d.ts +3 -0
  86. package/dist/layouts/GlobalLayout.js +88 -0
  87. package/dist/layouts/HomePageLayout/index.d.ts +3 -0
  88. package/dist/layouts/HomePageLayout/index.js +7 -0
  89. package/dist/layouts/SidebarLayout/index.d.ts +3 -0
  90. package/dist/layouts/SidebarLayout/index.js +28 -0
  91. package/dist/locales/en-US.json +9 -0
  92. package/dist/locales/zh-CN.json +9 -0
  93. package/dist/slots/Content/DocAnchor.d.ts +7 -0
  94. package/dist/slots/Content/DocAnchor.js +75 -0
  95. package/dist/slots/Content/InViewSuspense.d.ts +8 -0
  96. package/dist/slots/Content/InViewSuspense.js +27 -0
  97. package/dist/slots/Content/index.d.ts +5 -0
  98. package/dist/slots/Content/index.js +118 -0
  99. package/dist/slots/Footer/index.d.ts +3 -0
  100. package/dist/slots/Footer/index.js +75 -0
  101. package/dist/slots/Header/HeaderExtral.d.ts +3 -0
  102. package/dist/slots/Header/HeaderExtral.js +34 -0
  103. package/dist/slots/Header/Logo.d.ts +2 -0
  104. package/dist/slots/Header/Logo.js +48 -0
  105. package/dist/slots/Header/More.d.ts +5 -0
  106. package/dist/slots/Header/More.js +32 -0
  107. package/dist/slots/Header/Navigation.d.ts +6 -0
  108. package/dist/slots/Header/Navigation.js +154 -0
  109. package/dist/slots/Header/SwitchBtn.d.ts +11 -0
  110. package/dist/slots/Header/SwitchBtn.js +85 -0
  111. package/dist/slots/Header/index.d.ts +4 -0
  112. package/dist/slots/Header/index.js +193 -0
  113. package/dist/slots/LangSwitch/index.d.ts +3 -0
  114. package/dist/slots/LangSwitch/index.js +86 -0
  115. package/dist/slots/NotFound/index.d.ts +9 -0
  116. package/dist/slots/NotFound/index.js +25 -0
  117. package/dist/slots/RtlSwitch/index.d.ts +3 -0
  118. package/dist/slots/RtlSwitch/index.js +53 -0
  119. package/dist/slots/Sidebar/index.d.ts +4 -0
  120. package/dist/slots/Sidebar/index.js +108 -0
  121. package/dist/slots/SiteContext.d.ts +9 -0
  122. package/dist/slots/SiteContext.js +7 -0
  123. package/dist/static/style.d.ts +2 -0
  124. package/dist/static/style.js +2 -0
  125. package/dist/styles/variables.less +1 -0
  126. package/dist/types.d.ts +103 -0
  127. package/dist/types.js +1 -0
  128. package/dist/utils.d.ts +24 -0
  129. package/dist/utils.js +112 -0
  130. package/package.json +101 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) KuangPF
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,109 @@
1
+ <h1 align="center">dumi-theme-antd</h1>
2
+
3
+ <div align="center">
4
+
5
+ 基于 [dumi-theme-antd](https://github.com/KuangPF/dumi-theme-antd) 适配的 Ant Design 4.x 版本主题
6
+
7
+ [![NPM version](https://img.shields.io/npm/v/dumi-theme-antd-v4.svg?style=flat)](https://npmjs.org/package/dumi-theme-antd-v4) [![NPM downloads](http://img.shields.io/npm/dm/dumi-theme-antd-v4.svg?style=flat)](https://npmjs.org/package/dumi-theme-antd-v4) [![Github Actions](https://github.com/adonis-lsh/dumi-theme-antd-v4/workflows/Deploy/badge.svg)](https://github.com/adonis-lsh/dumi-theme-antd-v4/actions)
8
+
9
+ </div>
10
+
11
+ <p align="center">
12
+ <a href="https://github.com/adonis-lsh/dumi-theme-antd-v4">
13
+ <img src="https://github.com/KuangPF/dumi-theme-antd/assets/20694238/3c0d3907-a524-4ab1-b140-5fc31524f670">
14
+ </a>
15
+ </p>
16
+
17
+ ## 简介
18
+
19
+ 本项目是基于 [dumi-theme-antd](https://github.com/KuangPF/dumi-theme-antd) 适配的 **Ant Design 4.x** 版本主题插件。
20
+
21
+ 原版 `dumi-theme-antd` 基于 Ant Design 5.x 开发,而本版本专门为 **Ant Design 4.9.4** 及以上的 4.x 版本进行了适配,提供了与 Ant Design 官网风格类似的文档站点样式,同时保持与 Ant Design 4.x 版本的完全兼容。
22
+
23
+ ## 特性
24
+
25
+ - 🎨 **Ant Design 官网风格**:提供与 Ant Design 官方文档站点类似的视觉风格
26
+ - 📦 **Ant Design 4.x 兼容**:基于 Ant Design 4.9.4 适配,完全兼容 4.x 版本
27
+ - 🚀 **开箱即用**:安装即可使用,无需复杂配置
28
+ - 🔍 **内置全文搜索**:支持标题、正文、demo 等内容的多关键词搜索
29
+ - ⚡ **更好的编译性能**:结合 Umi 4 MFSU、esbuild、SWC 等方案,带来更快的编译速度
30
+ - 📱 **响应式设计**:完美支持移动端和桌面端
31
+
32
+ ## 环境要求
33
+
34
+ - **Ant Design**: 4.9.4 或以上(4.x 版本)
35
+ - **React**: 16.9.0 或以上
36
+ - **dumi**: 2.x
37
+
38
+ ## 安装
39
+
40
+ 将主题安装到 `devDependencies`:
41
+
42
+ ```bash
43
+ $ pnpm i dumi-theme-antd-v4 -D
44
+ ```
45
+
46
+ 或使用 npm:
47
+
48
+ ```bash
49
+ $ npm i dumi-theme-antd-v4 -D
50
+ ```
51
+
52
+ 或使用 yarn:
53
+
54
+ ```bash
55
+ $ yarn add dumi-theme-antd-v4 -D
56
+ ```
57
+
58
+ ## 使用
59
+
60
+ 在 `.dumirc.ts` 或 `.umirc.ts` 中配置主题:
61
+
62
+ ```typescript
63
+ import { defineConfig } from 'dumi';
64
+
65
+ export default defineConfig({
66
+ themeConfig: {
67
+ name: '你的项目名称',
68
+ // 其他配置...
69
+ },
70
+ });
71
+ ```
72
+
73
+ 更多配置选项请参考 [原版官方文档](https://kuangpf.com/dumi-theme-antd) 或 [本仓库文档](https://github.com/adonis-lsh/dumi-theme-antd-v4)。
74
+
75
+ ## 常见问题
76
+
77
+ 下面这个是原作者的交流群, 如果你遇到了v4版本的一些问题, 可以直接在本仓库提交issue
78
+ <img width=300 src="https://github.com/KuangPF/dumi-theme-antd/assets/20694238/3aa88f29-0995-4452-8b07-5a46cc522b77">
79
+
80
+ ## 开发
81
+
82
+ ```bash
83
+ # 安装依赖
84
+ pnpm install
85
+
86
+ # 启动开发服务器
87
+ pnpm run docs
88
+
89
+ # 构建文档
90
+ pnpm run build:docs
91
+ ```
92
+
93
+ ## 致谢
94
+
95
+ 感谢所有为 `dumi-theme-antd` 做出贡献的开发者!
96
+
97
+ <a href="https://github.com/KuangPF/dumi-theme-antd/graphs/contributors">
98
+ <img src="https://contrib.rocks/image?repo=KuangPF/dumi-theme-antd" />
99
+ </a>
100
+
101
+ ## 相关链接
102
+
103
+ - [原版 dumi-theme-antd](https://github.com/KuangPF/dumi-theme-antd) - 基于 Ant Design 5.x 的版本
104
+ - [dumi 官方文档](https://d.umijs.org)
105
+ - [Ant Design 4.x 文档](https://4x.ant.design)
106
+
107
+ ## 许可证
108
+
109
+ MIT
@@ -0,0 +1,6 @@
1
+ import { AlertProps } from 'antd';
2
+ import { FC, ReactNode } from 'react';
3
+ declare const Alert: FC<AlertProps & {
4
+ children?: ReactNode;
5
+ }>;
6
+ export default Alert;
@@ -0,0 +1,25 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
+ var _excluded = ["children"];
4
+ import { Alert as AntdAlert } from 'antd';
5
+ import { jsx as ___EmotionJSX } from "@emotion/react";
6
+ var getAlertComponentProps = function getAlertComponentProps(rawProps) {
7
+ var nextProps = rawProps;
8
+ Object.keys(nextProps).forEach(function (key) {
9
+ if (nextProps[key] === '') {
10
+ nextProps[key] = true;
11
+ }
12
+ });
13
+ return nextProps;
14
+ };
15
+ var Alert = function Alert(props) {
16
+ var children = props.children,
17
+ restProps = _objectWithoutProperties(props, _excluded);
18
+ return ___EmotionJSX(AntdAlert, _extends({
19
+ style: {
20
+ marginBottom: 16
21
+ },
22
+ message: children
23
+ }, getAlertComponentProps(restProps)));
24
+ };
25
+ export default Alert;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface IconProps {
3
+ className?: string;
4
+ style?: React.CSSProperties;
5
+ }
6
+ declare const AndroidIcon: React.FC<IconProps>;
7
+ export default AndroidIcon;
@@ -0,0 +1,37 @@
1
+ import React from 'react';
2
+ import { jsx as ___EmotionJSX } from "@emotion/react";
3
+ var AndroidIcon = function AndroidIcon(props) {
4
+ var className = props.className,
5
+ style = props.style;
6
+ return ___EmotionJSX("svg", {
7
+ className: className,
8
+ style: style,
9
+ focusable: "false",
10
+ height: "1em",
11
+ strokeWidth: "0",
12
+ viewBox: "0 0 1024 1024",
13
+ width: "1em"
14
+ }, ___EmotionJSX("path", {
15
+ d: "M157.947546 735.493119c-45.735653 0-82.696442-37.226694-82.696442-82.696443v-253.141521c0-45.469748 36.960789-82.696442 82.696442-82.696443 22.070112 0 42.810699 8.508959 58.499091 24.197351 15.688393 15.688393 24.197351 36.428979 24.197352 58.499092v253.141521c0 22.070112-8.508959 42.810699-24.197352 58.499091-15.688393 15.422488-36.428979 24.197351-58.499091 24.197352",
16
+ fill: "#FFFFFF"
17
+ }), ___EmotionJSX("path", {
18
+ d: "M157.947546 339.028824c-33.504025 0-60.360426 27.122306-60.360426 60.360426v253.141521c0 33.504025 27.122306 60.360426 60.360426 60.626331 33.504025 0 60.360426-27.122306 60.360426-60.626331v-253.141521c0-33.23812-27.122306-60.360426-60.360426-60.360426M806.489743 351.526357H217.244352v-22.336017c0-91.205401 49.724227-176.029083 131.091145-226.285121L316.692807 45.469748c-3.988574-6.647624-4.786289-15.422488-2.65905-23.133731 2.393145-7.711244 7.711244-14.624773 14.890678-18.347443C333.44482 1.329525 338.497014 0 343.549208 0c11.168008 0 21.538302 6.115814 26.856401 15.954298l33.23812 60.360425c34.30174-12.497533 70.464814-18.879252 107.957414-18.879252 38.024409 0 74.453389 6.381719 108.755128 19.145157L653.328486 15.954298c5.318099-9.838484 15.688393-15.954298 26.856401-15.954298 5.052194 0 10.104388 1.329525 14.624773 3.722669 7.445339 3.988574 12.763438 10.636198 14.890678 18.613348 2.393145 7.977149 1.329525 16.220203-2.65905 23.399636l-31.64269 57.701376C756.765515 153.693067 806.489743 238.516749 806.489743 329.72215v21.804207z",
19
+ fill: "#FFFFFF"
20
+ }), ___EmotionJSX("path", {
21
+ d: "M645.351337 111.680083l42.278889-77.112438c2.12724-3.988574 0.797715-9.306674-3.19086-11.433914-4.254479-2.12724-9.306674-0.797715-11.433913 3.456765l-42.544793 77.910153c-35.89717-15.954298-76.048818-24.995066-118.327708-24.729161-42.278889 0-82.430538 8.774864-118.061802 24.729161l-42.544793-77.644248c-2.12724-3.988574-7.445339-5.584004-11.433913-3.456765s-5.584004 7.445339-3.456765 11.433914l42.278889 77.112438C295.95222 154.756687 239.846274 236.123604 239.846274 329.72215h544.573357c-0.265905-93.864451-56.105947-175.231368-139.068294-218.042067m-257.396001 119.125422c-12.497533 0-22.867827-10.104388-22.867826-22.867826 0-12.497533 10.104388-22.867827 22.867826-22.867827 12.497533 0 22.867827 10.370293 22.867827 22.867827 0 12.497533-10.104388 22.867827-22.867827 22.867826m248.089328 0c-12.497533 0-22.867827-10.104388-22.867827-22.867826 0-12.497533 10.104388-22.867827 22.867827-22.867827 12.497533 0 22.867827 10.370293 22.867826 22.867827 0 12.497533-10.370293 22.867827-22.867826 22.867826",
22
+ fill: "#FFFFFF"
23
+ }), ___EmotionJSX("path", {
24
+ d: "M410.823163 1024c-45.469748 0-82.696442-36.960789-82.696443-82.696442v-111.680084h-21.804206c-23.133731 0-44.937938-9.040769-61.424046-25.260971-16.486108-16.486108-25.526876-38.024409-25.260971-61.424045V328.392625H804.894313v414.545833c0 47.862893-38.822124 86.685017-86.685017 86.685016h-21.804206v111.680084c0 45.469748-36.960789 82.696442-82.696443 82.696442-22.070112 0-42.810699-8.508959-58.499091-24.197351-15.688393-15.688393-24.197351-36.428979-24.197351-58.499091v-111.680084h-37.226695v111.680084c-0.265905 45.469748-37.492599 82.696442-82.962347 82.696442",
25
+ fill: "#FFFFFF"
26
+ }), ___EmotionJSX("path", {
27
+ d: "M241.973513 742.672553c0 35.631265 28.717736 64.614905 64.614906 64.614905h43.874318V941.303558c0 33.23812 27.122306 60.360426 60.360426 60.360425 33.504025 0 60.360426-27.122306 60.360426-60.62633v-134.0161h81.632822v134.0161c0 33.23812 27.122306 60.360426 60.360426 60.360425 33.504025 0 60.360426-27.122306 60.360426-60.360425v-134.0161h44.140223c35.631265 0 64.614905-28.983641 64.614906-64.614905V349.930927H241.707608l0.265905 392.741626zM866.052454 735.227214c-45.469748 0-82.696442-36.960789-82.696443-82.696443v-253.141521c0-45.735653 36.960789-82.696442 82.696443-82.696443 45.735653 0 82.696442 36.960789 82.696442 82.696443v253.141521c0 45.735653-36.960789 82.696442-82.696442 82.696443",
28
+ fill: "#FFFFFF"
29
+ }), ___EmotionJSX("path", {
30
+ d: "M866.052454 339.028824c-33.504025 0-60.360426 27.122306-60.360426 60.360426v253.141521c0 33.504025 27.122306 60.360426 60.360426 60.360426 33.504025 0 60.360426-27.122306 60.360426-60.360426v-253.141521c0-33.23812-26.856401-60.360426-60.360426-60.360426",
31
+ fill: "#FFFFFF"
32
+ }), ___EmotionJSX("path", {
33
+ d: "M157.947546 339.028824c-33.504025 0-60.360426 27.122306-60.360426 60.360426v253.141521c0 33.504025 27.122306 60.360426 60.360426 60.360426 33.504025 0 60.360426-27.122306 60.360426-60.360426v-253.141521c0-33.23812-27.122306-60.360426-60.360426-60.360426M645.351337 111.680083l42.278889-77.112438c2.12724-3.988574 0.797715-9.040769-3.19086-11.433914-3.988574-2.12724-9.306674-0.797715-11.433913 3.456765l-42.544793 77.910153c-35.89717-15.954298-76.048818-24.995066-118.593612-24.995066-42.278889 0-82.430538 8.774864-118.061803 24.729161l-42.544793-77.644248c-2.12724-3.988574-7.445339-5.584004-11.433913-3.456765s-5.584004 7.445339-3.456765 11.433914l42.278889 77.112438c-82.962347 42.810699-139.068294 124.177616-139.068294 217.776162h544.573357c0-93.598546-55.840042-174.965464-138.802389-217.776162m-257.396001 119.125422c-12.497533 0-22.867827-10.104388-22.867826-22.867826 0-12.497533 10.104388-22.867827 22.867826-22.867827 12.497533 0 22.867827 10.370293 22.867827 22.867827 0 12.497533-10.104388 22.867827-22.867827 22.867826m248.089328 0c-12.497533 0-22.867827-10.104388-22.867827-22.867826 0-12.497533 10.104388-22.867827 22.867827-22.867827 12.497533 0 22.867827 10.370293 22.867826 22.867827 0 12.497533-10.370293 22.867827-22.867826 22.867826m-394.337056 119.657232v392.475721c0 35.631265 28.717736 64.614905 64.614906 64.614905h43.874318v134.016099c0 33.23812 27.122306 60.360426 60.360426 60.360426 33.504025 0 60.360426-27.122306 60.360426-60.62633v-134.0161h81.632822V941.303558c0 33.23812 27.122306 60.360426 60.360426 60.360425 33.504025 0 60.360426-27.122306 60.360426-60.360425v-134.0161h44.140223c35.631265 0 64.614905-28.717736 64.614906-64.614905V350.196832l-540.318879 0.265905z m684.971177 48.926513c0-33.504025-27.122306-60.360426-60.360426-60.360426-33.504025 0-60.360426 27.122306-60.360426 60.360426v253.141521c0 33.504025 27.122306 60.360426 60.360426 60.360426 33.504025 0 60.360426-27.122306 60.360426-60.360426v-253.141521z",
34
+ fill: "#A4C439"
35
+ }));
36
+ };
37
+ export default AndroidIcon;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ interface BashOSPlatformProps {
3
+ windows?: string;
4
+ linux?: string;
5
+ macos?: string;
6
+ ios?: string;
7
+ android?: string;
8
+ defaultActiveKey?: string;
9
+ }
10
+ declare const BashOSPlatform: React.FC<BashOSPlatformProps>;
11
+ export default BashOSPlatform;
@@ -0,0 +1,51 @@
1
+ import React from 'react';
2
+ import WindowsLogo from "./windows";
3
+ import MacOSLogo from "./macos";
4
+ import LinuxLogo from "./linux";
5
+ import AndroidLogo from "./android";
6
+ import BashTabs from "../BashTabs";
7
+ import { jsx as ___EmotionJSX } from "@emotion/react";
8
+ var BashOSPlatform = function BashOSPlatform(props) {
9
+ var windows = props.windows,
10
+ linux = props.linux,
11
+ macos = props.macos,
12
+ ios = props.ios,
13
+ android = props.android,
14
+ _props$defaultActiveK = props.defaultActiveKey,
15
+ defaultActiveKey = _props$defaultActiveK === void 0 ? 'windows' : _props$defaultActiveK;
16
+ var tabItems = React.useMemo(function () {
17
+ return [{
18
+ key: 'windows',
19
+ children: windows,
20
+ iconRender: WindowsLogo,
21
+ label: 'windows'
22
+ }, {
23
+ key: 'linux',
24
+ children: linux,
25
+ iconRender: LinuxLogo,
26
+ label: 'linux'
27
+ }, {
28
+ key: 'macos',
29
+ children: macos,
30
+ iconRender: MacOSLogo,
31
+ label: 'macos'
32
+ }, {
33
+ key: 'ios',
34
+ children: ios,
35
+ iconRender: MacOSLogo,
36
+ label: 'ios'
37
+ }, {
38
+ key: 'android',
39
+ children: android,
40
+ iconRender: AndroidLogo,
41
+ label: 'android'
42
+ }].filter(function (item) {
43
+ return item.children;
44
+ });
45
+ }, [windows, linux, macos, ios, android]);
46
+ return ___EmotionJSX(BashTabs, {
47
+ tabItems: tabItems,
48
+ defaultActiveKey: defaultActiveKey
49
+ });
50
+ };
51
+ export default BashOSPlatform;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface IconProps {
3
+ className?: string;
4
+ style?: React.CSSProperties;
5
+ }
6
+ declare const LinuxIcon: React.FC<IconProps>;
7
+ export default LinuxIcon;
@@ -0,0 +1,60 @@
1
+ import React from 'react';
2
+ import { jsx as ___EmotionJSX } from "@emotion/react";
3
+ var LinuxIcon = function LinuxIcon(props) {
4
+ var className = props.className,
5
+ style = props.style;
6
+ return ___EmotionJSX("svg", {
7
+ className: className,
8
+ style: style,
9
+ fill: "#E53E3E",
10
+ focusable: "false",
11
+ height: "1em",
12
+ stroke: "#E53E3E",
13
+ strokeWidth: "0",
14
+ viewBox: "0 0 1024 1024",
15
+ width: "1em"
16
+ }, ___EmotionJSX("path", {
17
+ d: "M525.2 198.3c-8.6 5.6-15.2 13.8-18.9 23.4-3.8 12.4-3.2 25.6 1.5 37.7 3.9 12.7 11.7 23.8 22.2 31.8 5.4 3.8 11.6 6.2 18.2 7 6.6 0.8 13.2-0.3 19.1-3.3 7-3.9 12.6-10 15.9-17.3 3.2-7.4 5-15.3 5.2-23.3 0.7-10.2-0.6-20.4-3.8-30.1-3.5-10.6-10.3-19.7-19.5-25.9-4.7-3-9.9-5-15.4-5.8-5.5-0.8-11.1-0.2-16.3 1.8-2.9 1.2-5.7 2.7-8.3 4.5",
18
+ fill: "#FFFFFF"
19
+ }), ___EmotionJSX("path", {
20
+ d: "M810.2 606.5c-5.1-28.3-13.1-56-23.8-82.6-7.3-19.8-17.2-38.6-29.5-55.8-12.4-16.5-28.1-30.4-40.2-47.1-6.4-8.7-11.8-18.4-18.5-26.9-2.7-5.6-5.3-11.2-7.9-16.8-8-17.5-15.3-35.4-24.8-52-1.5-2.6-3.1-5.2-4.6-7.7-1.2-16-2.9-32-3.8-48 0.7-32.1-2-64.3-8.1-95.9-4.2-15.1-10.6-29.6-19-42.8-9.8-15.6-22.4-29.2-37.2-40.1-24.1-17.1-52.9-26.3-82.4-26.4-21.7-0.5-43.2 4.4-62.5 14.4-20.3 11.1-36.7 28.2-47 48.9-9.6 20.9-14.7 43.5-15 66.5-0.8 22.6 1.3 45 2.2 67.6 0.9 23.4 0.4 46.9 2.3 70.3 0.6 7.5 1.5 15 1.5 22.6 0 3.8-0.2 7.6-0.3 11.3l-0.3 0.8c-10.2 17.3-21.5 34-33.8 49.9-8.6 10.9-17.2 21.7-25.9 32.4-11.3 12.7-20.9 26.8-28.5 42-5.1 13.2-9.2 26.8-12.4 40.6l-0.3 1.1c-4.8 15.9-10.8 31.3-18 46.2-0.7 1.4-1.4 2.9-2 4.2-4.3 8.9-8.8 17.8-13.5 26.5l-5.4 10.1c-3.4 6.1-6.4 12.4-9 18.8-1.5 3.9-2.7 7.9-3.4 12-1.3 8.7-0.7 17.5 1.6 25.9 0.5 2.1 1.2 4.2 1.9 6.3 2.2 6.2 4.8 12.3 7.9 18.1 1.4 2.7 2.9 5.3 4.3 8l1.3 1.9c1.4 2.5 2.9 5 4.4 7.4l0.2 0.3c1.7 2.8 3.6 5.5 5.4 8.2l0.3 0.4c1.9 2.6 3.8 5.3 5.8 7.9 7.4 28.9 21 55.8 39.7 79-2.9 5.1-5.5 10.1-8.4 15.1-10.2 14.8-18.6 30.7-25.1 47.4-2.7 8.6-3.4 17.7-1.9 26.6 1.4 9 6 17.1 13 23 4.7 3.6 10.1 6.1 15.8 7.3 5.7 1.2 11.6 1.8 17.5 1.5 22.2-1.7 44.2-6.1 65.4-12.9 12.8-3.4 25.6-6.4 38.6-9 13.5-3.1 27.2-5 41-5.6 3.4 0.1 6.8-0.1 10.1-0.3 9.4 1 18.8 1.4 28.3 1l3.5-0.2c2.4 0.3 4.9 0.4 7.4 0.6 16.6 0.9 33.1 2.6 49.5 5.1 14.4 2.2 28.8 5 43 8.5 21.9 6.6 44.4 11 67.3 12.9 6 0.3 12-0.2 18-1.4 5.9-1.2 11.5-3.8 16.3-7.4 7-5.8 11.6-13.9 13.1-22.9 1.5-8.9 0.8-18-1.9-26.6-6.6-16.7-15.1-32.6-25.5-47.3-3.6-6.1-7-12.4-10.6-18.5 15.5-17.3 29.2-36.3 40.7-56.5 7 0.4 13.9-0.4 20.6-2.6 17.5-5.9 32.7-17.3 43.3-32.5 3.2-4.5 5.7-9.5 7.2-14.8 6.9-10.7 11.6-22.7 13.8-35.3 3.2-20.8 2.7-42.1-1.5-62.7h-0.2z m0 0",
21
+ fill: "#020204"
22
+ }), ___EmotionJSX("path", {
23
+ d: "M425.6 323.2c-3.1 4-5.3 8.7-6.4 13.6-1.1 4.9-1.8 10-1.9 15 0.3 10.1-0.5 20.2-2.5 30.1-3.5 10.3-8.8 19.8-15.6 28.3-11.7 14.7-20.9 31.2-27.2 48.8-3.2 10.9-4.3 22.3-3.1 33.7-12.1 17.9-22.6 36.9-31.3 56.7-13.4 29.9-22 61.8-25.5 94.4-4.3 40.1 1.6 80.6 17 117.8 11.3 26.8 28.5 50.8 50.3 70.1 11.2 9.7 23.5 17.9 36.7 24.4 46.7 22.8 101.4 22.3 147.6-1.4 23.1-13.5 44.2-30.2 62.6-49.5 11.9-10.8 22.5-22.9 31.8-36.1 15.5-26.9 24.6-57.1 26.5-88.1 9.6-53.6 3.7-108.8-16.9-159.2-8.1-16.8-18.8-32.2-31.8-45.6a252.5 252.5 0 0 0-20.2-68c-7.2-15.5-15.9-30.3-22.6-46.2-2.7-6.5-5.1-13.1-8.1-19.4-2.9-6.4-6.9-12.3-11.8-17.3-5.3-4.9-11.6-8.6-18.5-10.7-6.9-2.2-14-3.4-21.2-3.6-14.4-0.7-28.9 1.1-43.1 0.6-11.5-0.5-22.8-2.5-34.3-1.8-5.7 0.3-11.4 1.4-16.7 3.5-5.4 2.1-10.1 5.5-13.8 10m4.6-125.1c-5.4 0.4-10.5 2.7-14.4 6.4-3.9 3.7-6.8 8.4-8.4 13.5-2.7 10.4-3.4 21.3-1.9 32 0.2 9.7 1.9 19.4 5.1 28.6 1.8 4.5 4.4 8.7 7.8 12.2 3.4 3.5 7.7 6.1 12.4 7.3 4.5 1.1 9.2 0.9 13.5-0.5 4.3-1.4 8.3-3.8 11.5-7 4.7-4.8 8.1-10.7 9.8-17.1 1.7-6.4 2.5-13.1 2.3-19.8 0-8.3-1.3-16.6-3.8-24.6s-6.8-15.3-12.6-21.4c-2.8-2.9-6-5.4-9.6-7.2-3.7-1.7-7.7-2.6-11.7-2.4m95 0c-8.6 5.6-15.2 13.8-18.9 23.4-3.8 12.4-3.2 25.6 1.5 37.7 3.9 12.7 11.7 23.8 22.2 31.8 5.4 3.8 11.6 6.2 18.2 7 6.6 0.8 13.2-0.3 19.1-3.3 7-3.9 12.6-10 15.9-17.3 3.2-7.4 5-15.3 5.2-23.3 0.7-10.2-0.6-20.4-3.8-30.1-3.5-10.6-10.3-19.7-19.5-25.9-4.7-3-9.9-5-15.4-5.8-5.5-0.8-11.1-0.2-16.3 1.8-2.9 1.2-5.7 2.7-8.3 4.5",
24
+ fill: "#FFFFFF"
25
+ }), ___EmotionJSX("path", {
26
+ d: "M544.5 223.6c-3.2 0.2-6.2 1.2-8.9 2.9s-5 4-6.8 6.6c-3.4 5.3-5.3 11.5-5.4 17.9-0.3 4.7 0.4 9.5 1.9 14s4.3 8.5 7.9 11.5c3.8 3.1 8.4 4.9 13.3 5.2 4.9 0.2 9.7-1.1 13.7-3.9 3.2-2.3 5.8-5.2 7.6-8.7 1.8-3.4 2.9-7.2 3.4-11 1-6.8-0.2-13.8-3.2-19.9-3.1-6.2-8.4-10.9-14.8-13.4-2.8-1.1-5.7-1.5-8.7-1.4",
27
+ fill: "#020204"
28
+ }), ___EmotionJSX("path", {
29
+ d: "M430.2 198.3c-5.4 0.4-10.5 2.7-14.4 6.4-3.9 3.7-6.8 8.4-8.4 13.5-2.7 10.4-3.4 21.3-1.9 32 0.2 9.7 1.9 19.4 5.1 28.6 1.8 4.6 4.4 8.7 7.8 12.2 3.4 3.5 7.7 6.1 12.4 7.3 4.5 1.1 9.2 0.9 13.5-0.5 4.3-1.4 8.3-3.8 11.5-7 4.7-4.8 8.1-10.7 9.8-17.1 1.7-6.4 2.5-13.1 2.3-19.8 0-8.3-1.3-16.6-3.8-24.6s-6.8-15.3-12.6-21.4c-2.8-2.9-6-5.4-9.6-7.2-3.7-1.7-7.7-2.6-11.7-2.4",
30
+ fill: "#FFFFFF"
31
+ }), ___EmotionJSX("path", {
32
+ d: "M417.3 242.8c-1.3 6.7-1 13.7 1.1 20.2 1.6 4.3 4 8.2 7.2 11.5 2 2.2 4.3 4.1 7 5.4 2.7 1.4 5.7 1.8 8.7 1.1 2.7-0.7 5-2.3 6.7-4.5 1.7-2.2 2.9-4.7 3.7-7.3 2.3-7.8 2.1-16.1-0.4-23.9-1.6-5.7-4.7-10.9-9.1-14.8-2.1-1.8-4.7-3.2-7.4-3.9-2.8-0.7-5.7-0.5-8.4 0.7-2.8 1.4-5.1 3.7-6.5 6.5-1.4 2.8-2.3 5.8-2.7 8.9",
33
+ fill: "#020204"
34
+ }), ___EmotionJSX("path", {
35
+ d: "M404.6 326.9c0.2 0.9 0.5 1.8 1 2.5 0.9 1.4 2 2.5 3.4 3.4 1.3 0.9 2.6 1.7 3.9 2.5 6.9 4.7 13 10.5 17.9 17.3 6 9.4 13.5 17.8 22 25 6.5 4.5 14.1 7.2 22 7.9 9.2 0.7 18.5-0.4 27.4-3.2 8.2-2.4 16.1-5.8 23.5-10.3 12.7-10.2 26.3-19.2 40.7-26.7 3.4-1.2 6.8-2.1 10-3.6 3.3-1.4 6.1-3.8 7.8-7 1.1-3.2 1.8-6.6 1.9-10 0.5-3.6 1.7-7.1 2.3-10.7 0.8-3.6 0.5-7.3-0.8-10.8-1.4-2.7-3.6-4.9-6.3-6.3-2.7-1.3-5.7-2.1-8.7-2.2-6.1 0.2-12.1 0.8-18 1.8-8 0.7-16-0.3-24 0-9.9 0.3-19.8 2.5-29.8 2.9-11.4 0.6-22.7-1.2-34.1-1.7-4.9-0.3-9.9-0.1-14.8 0.7-4.9 0.7-9.6 2.5-13.7 5.3-3.8 3-7.3 6.2-10.7 9.6-1.8 1.6-3.8 3-5.9 4.1-2.2 1.1-4.5 1.7-7 1.6-1.2-0.2-2.5-0.2-3.7 0-0.7 0.3-1.4 0.7-1.9 1.2l-1.5 1.8c-1 1.5-1.9 3.1-2.6 4.7",
36
+ fill: "#D99A03"
37
+ }), ___EmotionJSX("path", {
38
+ d: "M429.7 301.7c-4 2.4-7.9 5-11.8 7.7-2.1 1.3-3.8 3-5.1 5.1-0.7 1.6-1 3.3-0.9 5 0.1 1.7 0.1 3.4 0 5.1-0.1 1.1-0.5 2.3-0.5 3.5 0 0.6 0 1.2 0.2 1.7 0.2 0.6 0.4 1.1 0.8 1.5 0.5 0.5 1.2 0.9 2 1.1 0.7 0.2 1.5 0.3 2.3 0.5 3.5 1 6.7 2.9 9.3 5.4 2.7 2.4 5.1 5.2 8 7.5 8 6 17.7 9.1 27.6 9 9.9-0.2 19.7-1.6 29.2-4.1 7.5-1.6 14.9-3.6 22.1-6.1 11.2-4.2 21.5-10.3 30.4-18.2 3.9-3.8 8-7.2 12.4-10.3 4-2.5 8.7-4.2 12.7-6.6 0.4-0.2 0.7-0.5 1.1-0.7 0.3-0.3 0.6-0.6 0.8-1 0.3-0.7 0.3-1.5 0-2.2-0.2-0.7-0.5-1.3-0.9-1.8-0.5-0.6-1.1-1.2-1.7-1.7-4.6-3.4-10.1-5.3-15.8-5.5-5.8-0.4-11.3 0-16.9-1.1-5.2-1.1-10.3-2.6-15.3-4.4-5.3-1.7-10.7-3-16.3-3.9-13-2.1-26.2-1.8-39.1 1-12.1 2.7-23.8 7.3-34.6 13.5",
39
+ fill: "#604405"
40
+ }), ___EmotionJSX("path", {
41
+ d: "M428.4 288.1c-5.8 3.9-11 8.7-15.5 14.1-2.6 3-4.7 6.5-6.1 10.3-0.9 3-1.5 6.1-2 9.2-0.3 1.1-0.5 2.3-0.5 3.5 0 0.6 0.1 1.2 0.3 1.7 0.2 0.6 0.5 1.1 0.9 1.5 0.7 0.7 1.6 1.1 2.6 1.3 0.9 0.2 1.9 0.2 2.9 0.3 4.4 0.7 8.5 2.5 12.1 5.1 3.6 2.5 7 5.4 10.7 7.8 8.4 5 18 7.7 27.8 7.9 9.8 0.2 19.5-0.8 29-2.9 7.6-1.4 15.1-3.5 22.4-6.3 10.9-4.7 21.1-10.8 30.4-18.2 4.3-3.2 8.5-6.6 12.4-10.3 1.3-1.3 2.6-2.6 4-3.8 1.4-1.2 3-2.1 4.7-2.7 2.7-0.7 5.5-0.8 8.3-0.1 2 0.5 4.1 0.7 6.2 0.7 1.1 0 2.1-0.2 3.1-0.5 1-0.4 1.9-1 2.5-1.8 0.9-1.1 1.3-2.4 1.3-3.8s-0.4-2.7-1.1-3.9c-1.5-2.3-3.8-4.1-6.3-5.1-3.5-1.4-7.1-2.5-10.8-3.2-11.3-2.7-22.3-6.7-32.7-11.9-5.2-2.6-10.1-5.4-15.3-8.1-5.2-2.9-10.6-5.4-16.2-7.2-12.9-3.5-26.6-2.9-39.1 1.8-14 4.9-26.5 13.4-36.1 24.7",
42
+ fill: "#F5BD0C"
43
+ }), ___EmotionJSX("path", {
44
+ d: "M493.5 272.2c0.7 2.3 4.3 1.9 6.4 2.9 2.1 1 3.3 2.9 5.3 3.1 2.1 0.2 5-0.7 5.3-2.6 0.4-2.6-3.4-4.2-5.8-5.1-3.2-1.5-6.8-1.6-10-0.2-0.7 0.3-1.4 1.2-1.2 1.9z m-34.4-1.2c-2.7-0.9-7.1 3.8-5.8 6.3 0.4 0.7 1.6 1.5 2.4 1.1 0.8-0.4 2.3-3.1 3.6-4 1-0.8 0.8-3.1-0.2-3.4z m0 0",
45
+ fill: "#CD8907"
46
+ }), ___EmotionJSX("path", {
47
+ d: "M887.7 829.8c-2 5.2-4.9 10-8.5 14.3-8.4 9-18.6 16.2-29.8 21.2-19 8.8-37.5 18.6-55.5 29.3-11.7 7.8-22.6 16.6-32.7 26.4-8.3 8.7-17.2 16.7-26.6 24.2-9.8 7.2-21.1 12.1-33.1 14-14.7 1.9-29.6-0.4-43.1-6.5-9.7-3.7-18.1-10.2-24-18.8-5-9.2-7.3-19.5-6.8-29.9 0.6-18.3 2.8-36.5 6.6-54.5 2.6-15 5.2-30 6.8-45.1 2.8-27.6 3.1-55.3 1-82.9-0.5-4.6-0.5-9.3 0-13.9 0.6-9.4 8.5-16.6 18-16.5 4.3-0.1 8.6 0.3 12.8 1.1 10 1.2 20 2.9 29.8 5.2 6.1 1.6 12.2 3.8 18.3 5.5 10.2 3 21 3.9 31.6 2.9 11.1-2.6 22.4-4.3 33.8-5.3 4.7 0.2 9.4 1 13.8 2.4 4.6 1.3 8.9 3.6 12.4 6.9 2.5 2.7 4.5 5.8 5.8 9.2 1.9 5.1 3.1 10.4 3.5 15.8 0.2 4.8 0.6 9.6 1.2 14.4 1.7 7.7 5.4 14.9 10.6 20.9 5.3 5.8 11 11.2 17.2 16 5.9 5.2 12.1 10 18.6 14.4 3.1 2.1 6.2 4 9.1 6.3 3 2.2 5.5 5 7.4 8.2 2.4 4.4 3.2 9.5 2 14.4",
48
+ fill: "#F5BD0C"
49
+ }), ___EmotionJSX("path", {
50
+ d: "M887.7 829.8c-2 5.2-4.9 10-8.5 14.3-8.4 9-18.6 16.2-29.8 21.2-19 8.8-37.5 18.6-55.5 29.3-11.7 7.8-22.6 16.6-32.7 26.4-8.3 8.7-17.2 16.7-26.6 24.2-9.8 7.2-21.1 12.1-33.1 14-14.7 1.9-29.6-0.4-43.1-6.5-9.7-3.7-18.1-10.2-24-18.8-5-9.2-7.3-19.5-6.8-29.9 0.6-18.3 2.8-36.5 6.6-54.5 2.6-15 5.2-30 6.8-45.1 2.8-27.6 3.1-55.3 1-82.9-0.5-4.6-0.5-9.3 0-13.9 0.6-9.4 8.5-16.6 18-16.5 4.3-0.1 8.6 0.3 12.8 1.1 10 1.2 20 2.9 29.8 5.2 6.1 1.6 12.2 3.8 18.3 5.5 10.2 3 21 3.9 31.6 2.9 11.1-2.6 22.4-4.3 33.8-5.3 4.7 0.2 9.4 1 13.8 2.4 4.6 1.3 8.9 3.6 12.4 6.9 2.5 2.7 4.5 5.8 5.8 9.2 1.9 5.1 3.1 10.4 3.5 15.8 0.2 4.8 0.6 9.6 1.2 14.4 1.7 7.7 5.4 14.9 10.6 20.9 5.3 5.8 11 11.2 17.2 16 5.9 5.2 12.1 10 18.6 14.4 3.1 2.1 6.2 4 9.1 6.3 3 2.2 5.5 5 7.4 8.2 2.4 4.4 3.2 9.5 2 14.4M259.4 676.3c4.9-1.9 10.2-2.4 15.4-1.4 5.2 1 10.1 3.1 14.4 6.1 8.3 6.3 15.5 14.1 21.2 22.8 14.1 19.4 27.6 39.2 39.9 59.8 10 16.7 19.1 33.9 30.6 49.6 7.5 10.2 16 19.7 23.6 29.9 7.9 10 13.9 21.4 17.6 33.5 4.4 16.1 2.6 33.2-4.9 48.1-5.4 10.4-13.5 19.1-23.4 25.1-10 6-21.5 9-33.2 8.7-18.4-2.5-36.2-8.1-52.6-16.6-34.9-13.9-72.8-18.3-108.8-29.1-11.1-3.3-21.9-7.3-33.1-10.3-5-1.2-9.9-2.7-14.7-4.7-4.7-2-8.8-5.4-11.5-9.7-2-3.5-3-7.5-2.9-11.5 0.1-4 0.9-7.9 2.3-11.5 2.7-7.5 7.1-14.2 10-21.6 4.4-12.2 6.1-25.3 5-38.2-0.6-12.9-2.9-25.8-3.6-38.7-0.6-5.8-0.4-11.6 0.6-17.3 1.5-11.4 10.4-20.5 21.9-22.2 5.3-0.9 10.6-1.3 15.9-1 5.3 0.3 10.7 0.3 16 0 5.3-0.3 10.6-1.8 15.3-4.3 4.3-2.6 8.1-6.2 11-10.4 2.9-4.2 5.5-8.5 7.9-13 2.4-4.5 5.1-8.7 8.3-12.7 3-4.1 7.1-7.2 11.8-9.4",
51
+ fill: "#F5BD0C"
52
+ }), ___EmotionJSX("path", {
53
+ d: "M259.4 676.4c4.9-1.9 10.2-2.4 15.4-1.4 5.2 1 10.1 3.1 14.4 6.1 8.3 6.3 15.5 14.1 21.2 22.8 14.1 19.4 27.6 39.2 39.9 59.8 10 16.7 19.1 33.9 30.6 49.6 7.5 10.2 16 19.7 23.6 29.9 7.9 10 13.9 21.4 17.6 33.5 4.4 16.1 2.6 33.2-4.9 48.1-5.4 10.4-13.5 19.1-23.4 25.1-10 6-21.5 9-33.2 8.7-18.4-2.5-36.2-8.1-52.6-16.6-34.9-13.9-72.8-18.3-108.8-29.1-11.1-3.3-21.9-7.3-33.1-10.3-5-1.2-9.9-2.7-14.7-4.7-4.7-2-8.8-5.4-11.5-9.7-2-3.5-3-7.5-2.9-11.5 0.1-4 0.9-7.9 2.3-11.5 2.7-7.5 7.1-14.2 10-21.6 4.4-12.2 6.1-25.3 5-38.2-0.6-12.9-2.9-25.7-3.6-38.7-0.6-5.8-0.4-11.6 0.6-17.3 1.5-11.4 10.4-20.5 21.9-22.2 5.3-0.9 10.6-1.3 15.9-1 5.3 0.3 10.7 0.3 16 0 5.3-0.3 10.6-1.8 15.3-4.3 4.3-2.6 8.1-6.2 11-10.4 2.9-4.2 5.5-8.5 7.9-13 2.4-4.5 5.1-8.7 8.3-12.7 3-4.1 7.1-7.3 11.8-9.4",
54
+ fill: "#F5BD0C"
55
+ }), ___EmotionJSX("path", {
56
+ d: "M267.1 684.8c4.4-1.7 9.3-2 13.9-0.9s8.9 3.2 12.6 6.2c7.1 6.2 13.1 13.6 17.6 21.9 12 19.4 23.7 39 34.6 59 7.9 15.3 16.8 30.1 26.6 44.2 6.8 9.2 14.6 17.6 21.6 26.6 7.3 8.9 12.8 19 16.2 29.9 4 14.3 2.3 29.6-4.5 42.9-5 9.4-12.5 17.3-21.7 22.6-9.2 5.4-19.8 8-30.4 7.5-16.7-2.6-32.9-7.6-48.2-14.9-30.4-11.1-63.5-12.5-94.7-21.2-11.2-3-22.1-7.1-33.4-9.9-5-1.1-10-2.5-14.8-4.3-4.8-1.8-9-5.2-11.8-9.5-1.8-3.4-2.7-7.2-2.5-11 0.2-3.8 1-7.6 2.4-11.2 2.7-7.1 7-13.6 9.7-20.7 3.8-11 5.1-22.6 3.9-34.2-0.8-11.5-2.9-22.9-3.5-34.5-0.4-5.1-0.2-10.3 0.7-15.4 0.9-5.1 3.3-9.8 6.9-13.6 4.2-3.8 9.4-6.3 15-7 5.6-0.7 11.2-0.7 16.7 0 5.6 0.7 11.2 0.9 16.8 0.8 11 0 21-6.4 25.7-16.4 2.3-4.5 4.3-9.2 5.9-13.9 1.7-4.8 4-9.3 6.7-13.6 2.8-4.3 6.8-7.7 11.5-9.7",
57
+ fill: "#F5BD0C"
58
+ }));
59
+ };
60
+ export default LinuxIcon;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface IconProps {
3
+ className?: string;
4
+ style?: React.CSSProperties;
5
+ }
6
+ declare const MacOSIcon: React.FC<IconProps>;
7
+ export default MacOSIcon;
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import { jsx as ___EmotionJSX } from "@emotion/react";
3
+ var MacOSIcon = function MacOSIcon(props) {
4
+ var className = props.className,
5
+ style = props.style;
6
+ return ___EmotionJSX("svg", {
7
+ className: className,
8
+ style: style,
9
+ fill: "#000000",
10
+ focusable: "false",
11
+ height: "1em",
12
+ stroke: "#000000",
13
+ strokeWidth: "0",
14
+ viewBox: "0 0 1024 1024",
15
+ width: "1em"
16
+ }, ___EmotionJSX("path", {
17
+ d: "M928.768 750.592c-1.536 4.096-21.504 74.24-70.656 145.92-43.008 62.464-87.04 124.928-156.672 125.952-68.608 1.024-90.624-40.96-168.96-40.96s-102.912 39.936-167.936 41.984c-67.072 2.56-118.784-68.096-161.792-130.048C115.2 767.488 47.616 534.528 138.24 378.88c44.544-77.824 124.928-127.488 211.968-129.024 65.536-1.024 128.512 44.544 168.448 44.544 40.96 0 116.736-55.296 196.608-47.104 33.28 1.536 126.976 13.824 186.88 101.376-4.608 3.072-111.616 66.56-110.592 195.072 1.024 155.136 135.68 206.336 137.216 206.848m-266.24-586.24c35.84-44.032 59.904-104.448 53.248-164.352-51.2 2.048-114.176 34.304-151.04 77.824-32.768 37.888-61.952 99.328-53.76 158.72 56.832 3.072 115.712-30.208 151.552-72.192"
18
+ }));
19
+ };
20
+ export default MacOSIcon;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface IconProps {
3
+ className?: string;
4
+ style?: React.CSSProperties;
5
+ }
6
+ declare const WindowsIcon: React.FC<IconProps>;
7
+ export default WindowsIcon;
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import { jsx as ___EmotionJSX } from "@emotion/react";
3
+ var WindowsIcon = function WindowsIcon(props) {
4
+ var className = props.className,
5
+ style = props.style;
6
+ return ___EmotionJSX("svg", {
7
+ className: className,
8
+ style: style,
9
+ fill: "#00A1F1",
10
+ focusable: "false",
11
+ height: "1em",
12
+ stroke: "#00A1F1",
13
+ strokeWidth: "0",
14
+ viewBox: "0 0 1024 1024",
15
+ width: "1em"
16
+ }, ___EmotionJSX("path", {
17
+ d: "M426.276571 574.829714l0 372.004571-389.705143-53.686857 0-318.317714 389.705143 0zM426.276571 150.308571l0 376.539429-389.705143 0 0-322.852571zM987.428571 574.829714l0 449.170286-518.290286-71.460571 0-377.709714 518.290286 0zM987.428571 73.142857l0 453.705143-518.290286 0 0-382.317714z"
18
+ }));
19
+ };
20
+ export default WindowsIcon;
@@ -0,0 +1,21 @@
1
+ /**
2
+ * bash 选项卡切换组件
3
+ */
4
+ import { FC } from 'react';
5
+ import { type Language } from 'prism-react-renderer';
6
+ export interface TabItemsType {
7
+ key?: string;
8
+ children?: string | undefined;
9
+ label?: string;
10
+ iconSrc?: string;
11
+ iconRender?: FC;
12
+ lang?: Language;
13
+ }
14
+ interface BashTabsProps {
15
+ /** tab 配置项 */
16
+ tabItems?: TabItemsType[];
17
+ /** 默认 tab key */
18
+ defaultActiveKey?: string;
19
+ }
20
+ declare const BashTabs: FC<BashTabsProps>;
21
+ export default BashTabs;
@@ -0,0 +1,52 @@
1
+ /**
2
+ * bash 选项卡切换组件
3
+ */
4
+ import { useMemo, useCallback } from 'react';
5
+ import { Tabs } from 'antd';
6
+ import SourceCode from 'dumi/theme-default/builtins/SourceCode';
7
+ import { jsx as ___EmotionJSX } from "@emotion/react";
8
+ var BashTabs = function BashTabs(props) {
9
+ var tabItems = props.tabItems,
10
+ defaultActiveKey = props.defaultActiveKey;
11
+ var renderLabel = useCallback(function (item) {
12
+ var label = item.label,
13
+ iconRender = item.iconRender,
14
+ iconSrc = item.iconSrc;
15
+ return ___EmotionJSX("span", {
16
+ className: "snippet-label"
17
+ }, typeof iconRender === 'function' ? iconRender({}) : null, iconSrc ? ___EmotionJSX("img", {
18
+ src: iconSrc,
19
+ alt: "iconSrc"
20
+ }) : null, label);
21
+ }, []);
22
+ var items = useMemo(function () {
23
+ return tabItems === null || tabItems === void 0 ? void 0 : tabItems.map(function (item) {
24
+ var _item$key = item.key,
25
+ key = _item$key === void 0 ? String(Date.now()) : _item$key,
26
+ children = item.children,
27
+ _item$lang = item.lang,
28
+ lang = _item$lang === void 0 ? 'bash' : _item$lang;
29
+ if (children) {
30
+ return {
31
+ key: key,
32
+ children: ___EmotionJSX(SourceCode, {
33
+ lang: lang
34
+ }, children),
35
+ label: renderLabel(item)
36
+ };
37
+ }
38
+ return {
39
+ key: '',
40
+ label: ''
41
+ };
42
+ }).filter(function (i) {
43
+ return i.key;
44
+ });
45
+ }, [tabItems, renderLabel]);
46
+ return ___EmotionJSX(Tabs, {
47
+ className: "antd-site-snippet",
48
+ defaultActiveKey: defaultActiveKey,
49
+ items: items
50
+ });
51
+ };
52
+ export default BashTabs;
@@ -0,0 +1,3 @@
1
+ import { type FC } from 'react';
2
+ declare const Features: FC;
3
+ export default Features;