@yuntijs/ui 1.0.0-beta.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.
- package/LICENSE +21 -0
- package/README.md +179 -0
- package/es/Logo/Divider.d.ts +2 -0
- package/es/Logo/Divider.js +21 -0
- package/es/Logo/LogoImg.d.ts +2 -0
- package/es/Logo/LogoImg.js +26 -0
- package/es/Logo/LogoText.d.ts +2 -0
- package/es/Logo/LogoText.js +40 -0
- package/es/Logo/index.d.ts +19 -0
- package/es/Logo/index.js +91 -0
- package/es/Logo/style.d.ts +3 -0
- package/es/Logo/style.js +9 -0
- package/es/Tree/index.d.ts +1 -0
- package/es/Tree/index.js +1 -0
- package/es/index.d.ts +2 -0
- package/es/index.js +2 -0
- package/es/types/customStylish.d.ts +10 -0
- package/es/types/customStylish.js +1 -0
- package/es/types/customToken.d.ts +17 -0
- package/es/types/customToken.js +2 -0
- package/es/types/global.d.ts +11 -0
- package/es/types/index.d.ts +8 -0
- package/es/types/index.js +3 -0
- package/package.json +144 -0
- package/umd/index.min.js +2 -0
- package/umd/index.min.js.map +1 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 YuntiJS
|
|
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,179 @@
|
|
|
1
|
+
<a name="readme-top"></a>
|
|
2
|
+
|
|
3
|
+
<div align="center">
|
|
4
|
+
|
|
5
|
+
<h1>Yunti UI</h1>
|
|
6
|
+
|
|
7
|
+
☁️ Yunti UI is an open-source UI component library for building Cloud Native web apps
|
|
8
|
+
|
|
9
|
+
English ・ [简体中文](./README.zh-CN.md) ・ [Changelog](./CHANGELOG.md) · [Report Bug][github-issues-link] · [Request Feature][github-issues-link]
|
|
10
|
+
|
|
11
|
+
<!-- SHIELD GROUP -->
|
|
12
|
+
|
|
13
|
+
[![][npm-release-shield]][npm-release-link]
|
|
14
|
+
|
|
15
|
+
<!-- [![][vercel-shield]][vercel-link] -->
|
|
16
|
+
|
|
17
|
+
[![][npm-downloads-shield]][npm-downloads-link]
|
|
18
|
+
[![][github-releasedate-shield]][github-releasedate-link]
|
|
19
|
+
[![][github-action-test-shield]][github-action-test-link]
|
|
20
|
+
[![][github-action-release-shield]][github-action-release-link]<br/>
|
|
21
|
+
[![][github-contributors-shield]][github-contributors-link]
|
|
22
|
+
[![][github-forks-shield]][github-forks-link]
|
|
23
|
+
[![][github-stars-shield]][github-stars-link]
|
|
24
|
+
[![][github-issues-shield]][github-issues-link]
|
|
25
|
+
[![][github-license-shield]][github-license-link]
|
|
26
|
+
|
|
27
|
+
<!-- [![][banner]][vercel-link] -->
|
|
28
|
+
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
<details>
|
|
32
|
+
<summary><kbd>Table of contents</kbd></summary>
|
|
33
|
+
|
|
34
|
+
#### TOC
|
|
35
|
+
|
|
36
|
+
- [📦 Installation](#-installation)
|
|
37
|
+
- [Compile with NextJS](#compile-with-nextjs)
|
|
38
|
+
- [☁️ Usage](#️-usage)
|
|
39
|
+
- [⌨️ Local Development](#️-local-development)
|
|
40
|
+
- [🤝 Contributing](#-contributing)
|
|
41
|
+
|
|
42
|
+
####
|
|
43
|
+
|
|
44
|
+
</details>
|
|
45
|
+
|
|
46
|
+
## 📦 Installation
|
|
47
|
+
|
|
48
|
+
> \[!IMPORTANT]\
|
|
49
|
+
> This package is [ESM only](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c).
|
|
50
|
+
|
|
51
|
+
To install Yunti UI, run the following command:
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
pnpm add @yuntijs/ui
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### Compile with NextJS
|
|
58
|
+
|
|
59
|
+
> \[!NOTE]\
|
|
60
|
+
> By work correct with nextjs ssr, add `transpilePackages: ['@yuntijs/ui']` to `next.config.js`. For example:
|
|
61
|
+
|
|
62
|
+
```js
|
|
63
|
+
// next.config.js
|
|
64
|
+
const nextConfig = {
|
|
65
|
+
// ...other config
|
|
66
|
+
|
|
67
|
+
transpilePackages: ['@yuntijs/ui'],
|
|
68
|
+
};
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
<div align="right">
|
|
72
|
+
|
|
73
|
+
[![][back-to-top]](#readme-top)
|
|
74
|
+
|
|
75
|
+
</div>
|
|
76
|
+
|
|
77
|
+
## ☁️ Usage
|
|
78
|
+
|
|
79
|
+
> \[!NOTE]\
|
|
80
|
+
> The YuntiUI components are inspired by [LobeUI](https://ui.lobehub.com) and developed based on [Antd](https://ant.design/components/overview/), fully compatible with Antd components,
|
|
81
|
+
> and it is recommended to use [antd-style](https://ant-design.github.io/antd-style/) as the default css-in-js styling solution.
|
|
82
|
+
|
|
83
|
+
```tsx
|
|
84
|
+
import { ThemeProvider } from '@yuntijs/ui';
|
|
85
|
+
import { Button } from 'antd';
|
|
86
|
+
|
|
87
|
+
export default () => (
|
|
88
|
+
<ThemeProvider>
|
|
89
|
+
<Button>Hello YuntiUI</Button>
|
|
90
|
+
</ThemeProvider>
|
|
91
|
+
);
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
<div align="right">
|
|
95
|
+
|
|
96
|
+
[![][back-to-top]](#readme-top)
|
|
97
|
+
|
|
98
|
+
</div>
|
|
99
|
+
|
|
100
|
+
## ⌨️ Local Development
|
|
101
|
+
|
|
102
|
+
You can use Github Codespaces for online development:
|
|
103
|
+
|
|
104
|
+
[![][codespaces-shield]][codespaces-link]
|
|
105
|
+
|
|
106
|
+
Or clone it for local development:
|
|
107
|
+
|
|
108
|
+
```bash
|
|
109
|
+
git clone https://github.com/yuntijs/yunti-ui.git
|
|
110
|
+
cd yunti-ui
|
|
111
|
+
pnpm install
|
|
112
|
+
pnpm dev
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
<div align="right">
|
|
116
|
+
|
|
117
|
+
[![][back-to-top]](#readme-top)
|
|
118
|
+
|
|
119
|
+
</div>
|
|
120
|
+
|
|
121
|
+
## 🤝 Contributing
|
|
122
|
+
|
|
123
|
+
Contributions of all types are more than welcome, if you are interested in contributing code, feel free to check out our GitHub [Issues][github-issues-link] to get stuck in to show us what you’re made of.
|
|
124
|
+
|
|
125
|
+
[![][pr-welcome-shield]][pr-welcome-link]
|
|
126
|
+
|
|
127
|
+
[![][contributors-contrib]][contributors-link]
|
|
128
|
+
|
|
129
|
+
<div align="right">
|
|
130
|
+
|
|
131
|
+
[![][back-to-top]](#readme-top)
|
|
132
|
+
|
|
133
|
+
</div>
|
|
134
|
+
|
|
135
|
+
---
|
|
136
|
+
|
|
137
|
+
<details><summary><h4>📝 License</h4></summary>
|
|
138
|
+
|
|
139
|
+
[![][fossa-license-shield]][fossa-license-link]
|
|
140
|
+
|
|
141
|
+
</details>
|
|
142
|
+
|
|
143
|
+
Copyright © 2023 [YuntiJS][profile-link]. <br />
|
|
144
|
+
This project is [MIT](./LICENSE) licensed.
|
|
145
|
+
|
|
146
|
+
<!-- LINK GROUP -->
|
|
147
|
+
|
|
148
|
+
<!-- [vercel-link]: https://ui.yuntijs.com -->
|
|
149
|
+
|
|
150
|
+
[back-to-top]: https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square
|
|
151
|
+
[codespaces-link]: https://codespaces.new/yuntijs/yunti-ui
|
|
152
|
+
[codespaces-shield]: https://github.com/codespaces/badge.svg
|
|
153
|
+
[contributors-contrib]: https://contrib.rocks/image?repo=yuntijs/yunti-ui
|
|
154
|
+
[contributors-link]: https://github.com/yuntijs/yunti-ui/graphs/contributors
|
|
155
|
+
[fossa-license-link]: https://app.fossa.com/projects/git%2Bgithub.com%2Fyuntijs%2Fyunti-ui
|
|
156
|
+
[fossa-license-shield]: https://app.fossa.com/api/projects/git%2Bgithub.com%2Fyuntijs%2Fyunti-ui.svg?type=large
|
|
157
|
+
[github-action-release-link]: https://github.com/actions/workflows/yuntijs/yunti-ui/release.yml
|
|
158
|
+
[github-action-release-shield]: https://img.shields.io/github/actions/workflow/status/yuntijs/yunti-ui/release.yml?label=release&labelColor=black&logo=githubactions&logoColor=white&style=flat-square
|
|
159
|
+
[github-action-test-link]: https://github.com/actions/workflows/yuntijs/yunti-ui/test.yml
|
|
160
|
+
[github-action-test-shield]: https://img.shields.io/github/actions/workflow/status/yuntijs/yunti-ui/test.yml?label=test&labelColor=black&logo=githubactions&logoColor=white&style=flat-square
|
|
161
|
+
[github-contributors-link]: https://github.com/yuntijs/yunti-ui/graphs/contributors
|
|
162
|
+
[github-contributors-shield]: https://img.shields.io/github/contributors/yuntijs/yunti-ui?color=c4f042&labelColor=black&style=flat-square
|
|
163
|
+
[github-forks-link]: https://github.com/yuntijs/yunti-ui/network/members
|
|
164
|
+
[github-forks-shield]: https://img.shields.io/github/forks/yuntijs/yunti-ui?color=8ae8ff&labelColor=black&style=flat-square
|
|
165
|
+
[github-issues-link]: https://github.com/yuntijs/yunti-ui/issues
|
|
166
|
+
[github-issues-shield]: https://img.shields.io/github/issues/yuntijs/yunti-ui?color=ff80eb&labelColor=black&style=flat-square
|
|
167
|
+
[github-license-link]: https://github.com/yuntijs/yunti-ui/blob/master/LICENSE
|
|
168
|
+
[github-license-shield]: https://img.shields.io/github/license/yuntijs/yunti-ui?color=white&labelColor=black&style=flat-square
|
|
169
|
+
[github-releasedate-link]: https://github.com/yuntijs/yunti-ui/releases
|
|
170
|
+
[github-releasedate-shield]: https://img.shields.io/github/release-date/yuntijs/yunti-ui?labelColor=black&style=flat-square
|
|
171
|
+
[github-stars-link]: https://github.com/yuntijs/yunti-ui/network/stargazers
|
|
172
|
+
[github-stars-shield]: https://img.shields.io/github/stars/yuntijs/yunti-ui?color=ffcb47&labelColor=black&style=flat-square
|
|
173
|
+
[npm-downloads-link]: https://www.npmjs.com/package/@yuntijs/ui
|
|
174
|
+
[npm-downloads-shield]: https://img.shields.io/npm/dt/@yuntijs/ui?labelColor=black&style=flat-square
|
|
175
|
+
[npm-release-link]: https://www.npmjs.com/package/@yuntijs/ui
|
|
176
|
+
[npm-release-shield]: https://img.shields.io/npm/v/@yuntijs/ui?color=369eff&labelColor=black&logo=npm&logoColor=white&style=flat-square
|
|
177
|
+
[pr-welcome-link]: https://github.com/yuntijs/yunti-chat/pulls
|
|
178
|
+
[pr-welcome-shield]: https://img.shields.io/badge/☁️_pr_welcome-%E2%86%92-ffcb47?labelColor=black&style=for-the-badge
|
|
179
|
+
[profile-link]: https://github.com/yuntijs
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
import _objectDestructuringEmpty from "@babel/runtime/helpers/esm/objectDestructuringEmpty";
|
|
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; }
|
|
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; }
|
|
5
|
+
import { memo } from 'react';
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
export var Divider = /*#__PURE__*/memo(function (_ref) {
|
|
8
|
+
var rest = Object.assign({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
9
|
+
return /*#__PURE__*/_jsx("svg", _objectSpread(_objectSpread({
|
|
10
|
+
fill: "none",
|
|
11
|
+
shapeRendering: "geometricPrecision",
|
|
12
|
+
stroke: "currentColor",
|
|
13
|
+
strokeLinecap: "round",
|
|
14
|
+
strokeLinejoin: "round",
|
|
15
|
+
viewBox: "0 0 24 24"
|
|
16
|
+
}, rest), {}, {
|
|
17
|
+
children: /*#__PURE__*/_jsx("path", {
|
|
18
|
+
d: "M16.88 3.549L7.12 20.451"
|
|
19
|
+
})
|
|
20
|
+
}));
|
|
21
|
+
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
import _objectDestructuringEmpty from "@babel/runtime/helpers/esm/objectDestructuringEmpty";
|
|
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; }
|
|
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; }
|
|
5
|
+
import { memo } from 'react';
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
+
export var LogoImg = /*#__PURE__*/memo(function (_ref) {
|
|
9
|
+
var rest = Object.assign({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
10
|
+
return /*#__PURE__*/_jsxs("svg", _objectSpread(_objectSpread({
|
|
11
|
+
fill: "currentColor",
|
|
12
|
+
fillRule: "evenodd",
|
|
13
|
+
viewBox: "0 0 1024 1024"
|
|
14
|
+
}, rest), {}, {
|
|
15
|
+
children: [/*#__PURE__*/_jsx("path", {
|
|
16
|
+
d: "M787.2 340C765.6 210.4 650.4 112 512 112S258.4 210.4 236.8 340C102.4 360 0 472.8 0 608.8c0 142.4 112.8 258.4 256 270.4l12.8-89.6c-97.6-4.8-175.2-84.8-175.2-180.8 0-100 83.2-180.8 184-180.8h47.2v-44.8c1.6-98.4 84.8-179.2 185.6-179.2 102.4 0 185.6 80.8 185.6 179.2v44.8h47.2c102.4 1.6 184 81.6 184 180.8 0 96-78.4 175.2-175.2 180.8l12.8 89.6c144.8-11.2 258.4-129.6 258.4-270.4 0.8-136-101.6-248.8-236-268.8z",
|
|
17
|
+
fill: "#4461EB"
|
|
18
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
19
|
+
d: "M395.2 880h-93.6l59.2-430.4h80.8L395.2 880z m326.4 0h-93.6l-46.4-430.4h80.8l59.2 430.4z",
|
|
20
|
+
fill: "#29DD90"
|
|
21
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
22
|
+
d: "M372.8 699.2h279.2v91.2h-279.2V699.2z m0-158.4h279.2v68h-279.2v-68z",
|
|
23
|
+
fill: "#29DD90"
|
|
24
|
+
})]
|
|
25
|
+
}));
|
|
26
|
+
});
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
import _objectDestructuringEmpty from "@babel/runtime/helpers/esm/objectDestructuringEmpty";
|
|
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; }
|
|
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; }
|
|
5
|
+
import { memo } from 'react';
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
+
export var LogoText = /*#__PURE__*/memo(function (_ref) {
|
|
9
|
+
var rest = Object.assign({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
10
|
+
return /*#__PURE__*/_jsxs("svg", _objectSpread(_objectSpread({
|
|
11
|
+
fill: "currentColor",
|
|
12
|
+
fillRule: "evenodd"
|
|
13
|
+
// viewBox="0 0 437.598 87.892"
|
|
14
|
+
,
|
|
15
|
+
viewBox: "0 -36 440 160",
|
|
16
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
17
|
+
}, rest), {}, {
|
|
18
|
+
children: [/*#__PURE__*/_jsx("path", {
|
|
19
|
+
d: "M 3.516 3.516 L 27.197 53.419 L 50.879 3.516 L 54.395 3.516 L 28.955 57.129 L 28.955 84.376 L 25.439 84.376 L 25.439 57.129 L 0 3.516 L 3.516 3.516 Z M 32.471 84.376 L 32.471 57.129 L 57.91 3.516 L 61.426 3.516 L 35.986 57.129 L 35.986 84.376 L 32.471 84.376 Z M 39.502 84.376 L 39.502 57.129 L 64.941 3.516 L 68.457 3.516 L 43.018 57.129 L 43.018 84.376 L 39.502 84.376 Z M 46.533 84.376 L 46.533 57.129 L 71.973 3.516 L 75.488 3.516 L 50.049 57.129 L 50.049 84.376 L 46.533 84.376 Z M 10.547 3.516 L 29.883 43.702 L 28.125 47.559 L 7.031 3.516 L 10.547 3.516 Z M 17.578 3.516 L 33.398 35.987 L 31.592 39.844 L 14.063 3.516 L 17.578 3.516 Z M 24.609 3.516 L 36.914 28.321 L 35.156 32.178 L 21.094 3.516 L 24.609 3.516 Z",
|
|
20
|
+
id: "0"
|
|
21
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
22
|
+
d: "M 148.975 53.223 L 148.975 14.063 L 152.49 14.063 L 152.49 53.223 Q 152.49 60.254 149.658 66.675 Q 146.826 73.096 142.041 77.735 A 35.861 35.861 0 0 1 131.897 84.593 A 41.237 41.237 0 0 1 130.664 85.132 Q 124.072 87.891 116.846 87.891 Q 109.619 87.891 103.027 85.132 A 37.091 37.091 0 0 1 93.83 79.674 A 34.161 34.161 0 0 1 91.65 77.735 A 34.744 34.744 0 0 1 84.033 66.675 A 32.978 32.978 0 0 1 81.201 53.223 L 81.201 14.063 L 84.717 14.063 L 84.717 53.223 Q 84.717 61.622 89.038 68.799 A 31.7 31.7 0 0 0 100.757 80.176 A 32.039 32.039 0 0 0 116.846 84.376 A 32.039 32.039 0 0 0 132.935 80.176 A 31.7 31.7 0 0 0 144.653 68.799 A 29.656 29.656 0 0 0 148.975 53.223 Z M 141.943 53.223 L 141.943 14.063 L 145.459 14.063 L 145.459 53.223 A 26.245 26.245 0 0 1 141.602 67.066 A 28.121 28.121 0 0 1 131.152 77.149 A 28.678 28.678 0 0 1 116.846 80.86 A 28.678 28.678 0 0 1 102.539 77.149 A 28.121 28.121 0 0 1 92.09 67.066 A 26.245 26.245 0 0 1 88.232 53.223 L 88.232 14.063 L 91.748 14.063 L 91.748 53.223 Q 91.748 59.717 95.117 65.284 A 24.542 24.542 0 0 0 104.272 74.097 Q 110.059 77.344 116.846 77.344 A 25.264 25.264 0 0 0 129.419 74.097 A 24.542 24.542 0 0 0 138.574 65.284 Q 141.943 59.717 141.943 53.223 Z M 134.912 53.223 L 134.912 14.063 L 138.428 14.063 L 138.428 53.223 A 19.291 19.291 0 0 1 132.519 67.371 A 24.329 24.329 0 0 1 132.08 67.798 Q 125.732 73.829 116.846 73.829 Q 107.959 73.829 101.611 67.798 A 20.3 20.3 0 0 1 96.705 60.797 A 19.695 19.695 0 0 1 95.264 53.223 L 95.264 14.063 L 98.779 14.063 L 98.779 53.223 A 15.945 15.945 0 0 0 103.671 64.914 A 20.247 20.247 0 0 0 104.077 65.308 A 17.928 17.928 0 0 0 116.846 70.313 A 17.952 17.952 0 0 0 129.59 65.308 A 16.961 16.961 0 0 0 133.582 59.785 A 16.097 16.097 0 0 0 134.912 53.223 Z M 127.881 53.223 L 127.881 14.063 L 131.396 14.063 L 131.396 53.223 A 12.573 12.573 0 0 1 127.515 62.415 A 16.478 16.478 0 0 1 127.124 62.794 A 14.498 14.498 0 0 1 116.846 66.797 A 14.498 14.498 0 0 1 106.567 62.794 A 13.788 13.788 0 0 1 103.501 58.697 A 12.499 12.499 0 0 1 102.295 53.223 L 102.295 14.063 L 105.811 14.063 L 105.811 53.223 A 9.186 9.186 0 0 0 108.712 60.001 A 12.19 12.19 0 0 0 109.058 60.328 A 11.172 11.172 0 0 0 116.846 63.282 Q 121.387 63.282 124.634 60.328 A 10.219 10.219 0 0 0 126.903 57.419 A 9.098 9.098 0 0 0 127.881 53.223 Z",
|
|
23
|
+
id: "1"
|
|
24
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
25
|
+
d: "M 202.051 84.376 L 164.844 20.118 L 164.844 84.376 L 161.328 84.376 L 161.328 14.063 L 165.527 14.063 L 206.104 84.376 L 202.051 84.376 Z M 226.709 84.376 L 186.133 14.063 L 190.234 14.063 L 227.344 78.272 L 227.344 14.063 L 230.859 14.063 L 230.859 84.376 L 226.709 84.376 Z M 218.506 84.376 L 177.881 14.063 L 182.031 14.063 L 222.705 84.376 L 218.506 84.376 Z M 210.303 84.376 L 169.58 14.063 L 173.682 14.063 L 214.404 84.376 L 210.303 84.376 Z M 168.359 84.376 L 168.359 29.786 L 171.875 36.231 L 171.875 84.376 L 168.359 84.376 Z M 223.828 14.063 L 223.828 68.165 L 220.313 62.208 L 220.313 14.063 L 223.828 14.063 Z M 216.797 14.063 L 216.797 56.006 L 213.281 49.61 L 213.281 14.063 L 216.797 14.063 Z M 175.391 84.376 L 175.391 42.432 L 178.906 48.829 L 178.906 84.376 L 175.391 84.376 Z",
|
|
26
|
+
id: "2"
|
|
27
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
28
|
+
d: "M 291.162 17.579 L 238.428 17.579 L 238.428 14.063 L 291.162 14.063 L 291.162 17.579 Z M 291.162 24.61 L 238.428 24.61 L 238.428 21.094 L 291.162 21.094 L 291.162 24.61 Z M 291.162 31.641 L 238.428 31.641 L 238.428 28.126 L 291.162 28.126 L 291.162 31.641 Z M 252.49 84.376 L 252.49 33.546 L 256.006 33.546 L 256.006 84.376 L 252.49 84.376 Z M 273.584 84.376 L 273.584 33.546 L 277.1 33.546 L 277.1 84.376 L 273.584 84.376 Z M 266.553 84.376 L 266.553 33.546 L 270.068 33.546 L 270.068 84.376 L 266.553 84.376 Z M 259.521 84.376 L 259.521 33.546 L 263.037 33.546 L 263.037 84.376 L 259.521 84.376 Z",
|
|
29
|
+
id: "3"
|
|
30
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
31
|
+
d: "M 319.971 84.376 L 319.971 14.063 L 323.486 14.063 L 323.486 84.376 L 319.971 84.376 Z M 312.939 84.376 L 312.939 14.063 L 316.455 14.063 L 316.455 84.376 L 312.939 84.376 Z M 305.908 84.376 L 305.908 14.063 L 309.424 14.063 L 309.424 84.376 L 305.908 84.376 Z M 298.877 84.376 L 298.877 14.063 L 302.393 14.063 L 302.393 84.376 L 298.877 84.376 Z",
|
|
32
|
+
id: "4"
|
|
33
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
34
|
+
d: "M 336.426 87.891 L 330.42 87.891 L 330.42 84.376 L 336.426 84.376 A 25.696 25.696 0 0 0 347.021 82.129 Q 352.051 79.883 355.688 76.099 A 28.028 28.028 0 0 0 360.914 68.374 A 32.343 32.343 0 0 0 361.475 67.09 A 28.483 28.483 0 0 0 363.623 56.153 L 363.623 3.516 L 367.139 3.516 L 367.139 56.153 Q 367.139 62.598 364.722 68.458 A 32.514 32.514 0 0 1 359.666 76.931 A 30.265 30.265 0 0 1 358.179 78.589 Q 354.053 82.862 348.364 85.377 A 29.209 29.209 0 0 1 336.426 87.891 Z M 336.426 80.86 L 330.42 80.86 L 330.42 77.344 L 336.426 77.344 A 18.885 18.885 0 0 0 350.291 71.572 A 23.587 23.587 0 0 0 350.708 71.143 A 20.99 20.99 0 0 0 356.592 56.153 L 356.592 3.516 L 360.107 3.516 L 360.107 56.153 A 25.136 25.136 0 0 1 356.958 68.531 A 23.872 23.872 0 0 1 348.34 77.54 A 22.534 22.534 0 0 1 336.426 80.86 Z M 336.426 73.829 L 330.42 73.829 L 330.42 70.313 L 336.426 70.313 A 12.121 12.121 0 0 0 345.365 66.543 A 15.517 15.517 0 0 0 345.728 66.163 A 14.23 14.23 0 0 0 349.561 56.153 L 349.561 3.516 L 353.076 3.516 L 353.076 56.153 Q 353.076 63.477 348.218 68.653 A 16.35 16.35 0 0 1 342.656 72.614 A 15.83 15.83 0 0 1 336.426 73.829 Z M 336.426 66.797 L 330.42 66.797 L 330.42 63.282 L 336.426 63.282 A 5.58 5.58 0 0 0 340.549 61.565 A 6.958 6.958 0 0 0 340.771 61.329 A 6.659 6.659 0 0 0 342.317 58.24 A 9.719 9.719 0 0 0 342.529 56.153 L 342.529 3.516 L 346.045 3.516 L 346.045 56.153 A 12.662 12.662 0 0 1 345.55 59.776 A 10.046 10.046 0 0 1 343.262 63.795 A 9.228 9.228 0 0 1 339.783 66.202 A 9.3 9.3 0 0 1 336.426 66.797 Z",
|
|
35
|
+
id: "5"
|
|
36
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
37
|
+
d: "M 402.881 38.672 L 408.447 38.672 A 26.054 26.054 0 0 1 414.981 39.446 A 18.084 18.084 0 0 1 423.95 44.727 A 20.899 20.899 0 0 1 429.474 57.836 A 27.414 27.414 0 0 1 429.541 59.766 Q 429.541 68.897 423.047 74.879 A 21.33 21.33 0 0 1 414.381 79.632 Q 411.203 80.553 407.422 80.783 A 42.586 42.586 0 0 1 404.834 80.86 A 50.314 50.314 0 0 1 394.576 79.844 A 44.131 44.131 0 0 1 390.234 78.712 A 36.401 36.401 0 0 1 384.198 76.218 A 27.614 27.614 0 0 1 378.955 72.657 L 381.689 70.46 Q 385.693 73.731 391.772 75.538 Q 397.852 77.344 404.834 77.344 A 34.57 34.57 0 0 0 410.799 76.863 Q 416.838 75.803 420.581 72.413 A 16.156 16.156 0 0 0 426.009 60.602 A 21.238 21.238 0 0 0 426.025 59.766 A 20.841 20.841 0 0 0 425.182 53.707 A 16.721 16.721 0 0 0 421.46 47.169 A 14.767 14.767 0 0 0 413.997 42.831 Q 411.452 42.188 408.398 42.188 L 402.881 42.188 A 20.673 20.673 0 0 1 398.773 41.807 Q 394.638 40.967 392.188 38.282 A 13.401 13.401 0 0 1 388.905 31.456 A 18.857 18.857 0 0 1 388.623 28.126 Q 388.623 21.876 393.042 17.969 A 13.859 13.859 0 0 1 397.754 15.299 Q 401.328 14.063 406.299 14.063 Q 412.5 14.063 417.822 15.504 Q 422.864 16.868 426.241 19.35 A 18.375 18.375 0 0 1 426.611 19.629 L 423.828 21.778 Q 417.725 17.579 406.299 17.579 A 29.677 29.677 0 0 0 402.466 17.809 Q 398.256 18.359 395.849 20.226 A 8.477 8.477 0 0 0 395.532 20.484 A 9.443 9.443 0 0 0 392.159 27.397 A 12.648 12.648 0 0 0 392.139 28.126 Q 392.139 32.516 394.255 35.303 A 9.247 9.247 0 0 0 394.653 35.792 A 7.564 7.564 0 0 0 397.776 37.883 Q 399.032 38.352 400.596 38.542 A 18.94 18.94 0 0 0 402.881 38.672 Z M 402.881 45.704 L 408.252 45.704 A 20.425 20.425 0 0 1 412.359 46.09 Q 414.799 46.591 416.652 47.743 A 10.609 10.609 0 0 1 418.945 49.659 Q 422.51 53.614 422.51 59.766 Q 422.51 66.016 418.091 69.922 A 13.859 13.859 0 0 1 413.378 72.593 Q 409.805 73.829 404.834 73.829 A 47.248 47.248 0 0 1 397.416 73.266 A 39.979 39.979 0 0 1 393.286 72.388 A 30.479 30.479 0 0 1 388.976 70.893 Q 386.426 69.776 384.473 68.262 L 387.256 66.114 Q 391.616 69.114 398.717 69.97 A 51.181 51.181 0 0 0 404.834 70.313 A 29.677 29.677 0 0 0 408.667 70.083 Q 412.877 69.533 415.284 67.666 A 8.477 8.477 0 0 0 415.601 67.408 A 9.443 9.443 0 0 0 418.973 60.495 A 12.648 12.648 0 0 0 418.994 59.766 A 14.381 14.381 0 0 0 418.637 56.471 A 9.944 9.944 0 0 0 416.455 52.125 A 7.668 7.668 0 0 0 413.267 49.998 Q 412.016 49.536 410.465 49.348 A 18.848 18.848 0 0 0 408.203 49.219 L 402.881 49.219 Q 392.871 49.219 387.231 43.238 A 20.513 20.513 0 0 1 381.716 30.767 A 27.456 27.456 0 0 1 381.592 28.126 Q 381.592 18.995 388.086 13.013 A 21.33 21.33 0 0 1 396.751 8.26 Q 399.929 7.339 403.711 7.109 A 42.586 42.586 0 0 1 406.299 7.032 A 50.145 50.145 0 0 1 416.545 8.047 A 43.765 43.765 0 0 1 420.874 9.18 A 36.331 36.331 0 0 1 426.893 11.674 A 27.7 27.7 0 0 1 432.129 15.235 L 429.395 17.432 A 25.094 25.094 0 0 0 424.282 14.234 A 34.27 34.27 0 0 0 419.336 12.354 Q 413.281 10.547 406.299 10.547 A 34.57 34.57 0 0 0 400.334 11.029 Q 394.295 12.089 390.552 15.479 A 16.156 16.156 0 0 0 385.124 27.29 A 21.238 21.238 0 0 0 385.107 28.126 A 20.96 20.96 0 0 0 385.922 34.105 A 16.581 16.581 0 0 0 389.697 40.748 A 14.821 14.821 0 0 0 396.999 45.007 Q 399.409 45.638 402.282 45.698 A 29.081 29.081 0 0 0 402.881 45.704 Z M 408.789 35.157 L 402.881 35.157 Q 399.121 35.157 397.461 33.228 Q 395.801 31.299 395.801 28.126 Q 395.801 21.094 406.299 21.094 A 53.608 53.608 0 0 1 411.461 21.326 Q 416.874 21.851 420.302 23.568 A 14.162 14.162 0 0 1 421.143 24.024 L 418.311 26.172 A 12.007 12.007 0 0 0 416.13 25.453 Q 413.765 24.886 410.14 24.701 A 75.371 75.371 0 0 0 406.299 24.61 A 29.884 29.884 0 0 0 404.482 24.661 Q 401.824 24.824 400.71 25.506 A 2.656 2.656 0 0 0 400.659 25.538 A 3.337 3.337 0 0 0 399.781 26.336 Q 399.254 27.041 399.221 27.997 A 3.73 3.73 0 0 0 399.219 28.126 A 5.695 5.695 0 0 0 399.303 29.136 Q 399.405 29.703 399.632 30.152 A 2.874 2.874 0 0 0 400 30.713 A 2.175 2.175 0 0 0 400.812 31.297 Q 401.519 31.605 402.621 31.637 A 8.95 8.95 0 0 0 402.881 31.641 L 408.936 31.641 A 33.337 33.337 0 0 1 415.758 32.313 A 27.17 27.17 0 0 1 420.825 33.887 A 25.498 25.498 0 0 1 426.454 37.131 A 21.868 21.868 0 0 1 429.541 40.015 A 27.267 27.267 0 0 1 434.766 48.951 A 31.486 31.486 0 0 1 436.551 58.514 A 36.033 36.033 0 0 1 436.572 59.766 Q 436.572 64.454 435.254 68.653 Q 433.936 72.852 431.274 76.368 A 27.401 27.401 0 0 1 424.878 82.447 A 26.873 26.873 0 0 1 419.943 85.095 A 34.768 34.768 0 0 1 415.991 86.451 A 39.102 39.102 0 0 1 408.504 87.751 A 46.932 46.932 0 0 1 404.834 87.891 A 55.061 55.061 0 0 1 391.371 86.284 A 49.661 49.661 0 0 1 387.183 85.035 A 42.622 42.622 0 0 1 379.431 81.485 A 33.883 33.883 0 0 1 373.486 77.051 L 376.318 74.952 A 31.37 31.37 0 0 0 383.526 79.775 A 40.73 40.73 0 0 0 388.794 81.91 A 50.014 50.014 0 0 0 402.189 84.315 A 57.584 57.584 0 0 0 404.834 84.376 A 40.049 40.049 0 0 0 411.576 83.831 A 31.679 31.679 0 0 0 416.919 82.447 A 27.978 27.978 0 0 0 421.821 80.168 A 21.649 21.649 0 0 0 425.806 77.149 Q 429.297 73.78 431.177 69.337 A 24.142 24.142 0 0 0 433.049 60.404 A 27.624 27.624 0 0 0 433.057 59.766 A 29.088 29.088 0 0 0 432.093 52.163 A 25.186 25.186 0 0 0 430.322 47.486 A 21.472 21.472 0 0 0 422.685 39.01 A 25.843 25.843 0 0 0 421.997 38.575 A 23.074 23.074 0 0 0 413.352 35.491 A 30.164 30.164 0 0 0 408.789 35.157 Z M 402.881 52.735 L 408.252 52.735 Q 412.012 52.735 413.672 54.688 Q 415.332 56.641 415.332 59.766 Q 415.332 66.797 404.834 66.797 A 54.076 54.076 0 0 1 399.649 66.566 Q 394.241 66.043 390.817 64.341 A 14.139 14.139 0 0 1 389.941 63.868 L 392.773 61.719 A 11.989 11.989 0 0 0 394.958 62.439 Q 397.329 63.005 400.972 63.191 A 76.162 76.162 0 0 0 404.834 63.282 A 29.884 29.884 0 0 0 406.651 63.231 Q 409.309 63.068 410.422 62.386 A 2.656 2.656 0 0 0 410.474 62.354 A 3.337 3.337 0 0 0 411.351 61.555 Q 411.879 60.851 411.912 59.895 A 3.73 3.73 0 0 0 411.914 59.766 Q 411.914 58.432 411.362 57.55 A 3.006 3.006 0 0 0 411.108 57.203 Q 410.303 56.251 408.154 56.251 L 402.881 56.251 A 35.621 35.621 0 0 1 395.804 55.575 A 28.966 28.966 0 0 1 390.698 54.053 A 26.063 26.063 0 0 1 385.208 51.068 A 21.777 21.777 0 0 1 381.763 47.999 Q 378.271 44.141 376.416 39.063 A 30.993 30.993 0 0 1 374.606 29.938 A 35.901 35.901 0 0 1 374.561 28.126 Q 374.561 23.438 375.879 19.239 Q 377.197 15.04 379.858 11.524 Q 382.52 8.008 386.255 5.445 A 26.873 26.873 0 0 1 391.19 2.797 A 34.768 34.768 0 0 1 395.142 1.441 A 39.102 39.102 0 0 1 402.629 0.141 A 46.932 46.932 0 0 1 406.299 0.001 A 55.011 55.011 0 0 1 419.482 1.541 A 49.363 49.363 0 0 1 423.926 2.857 A 42.479 42.479 0 0 1 431.764 6.469 A 33.934 33.934 0 0 1 437.598 10.84 L 434.766 12.94 A 31.445 31.445 0 0 0 427.567 8.116 A 40.644 40.644 0 0 0 422.314 5.982 A 49.708 49.708 0 0 0 409.074 3.583 A 57.465 57.465 0 0 0 406.299 3.516 A 40.049 40.049 0 0 0 399.556 4.061 A 31.679 31.679 0 0 0 394.214 5.445 A 27.978 27.978 0 0 0 389.312 7.723 A 21.649 21.649 0 0 0 385.327 10.743 Q 381.836 14.112 379.956 18.555 A 24.142 24.142 0 0 0 378.084 27.487 A 27.624 27.624 0 0 0 378.076 28.126 A 29.294 29.294 0 0 0 379.006 35.629 A 25.033 25.033 0 0 0 380.859 40.528 Q 383.643 46.046 389.355 49.39 A 24.102 24.102 0 0 0 397.757 52.34 A 31.989 31.989 0 0 0 402.881 52.735 Z"
|
|
38
|
+
})]
|
|
39
|
+
}));
|
|
40
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { DivProps } from "../types";
|
|
3
|
+
export interface LogoProps extends DivProps {
|
|
4
|
+
/**
|
|
5
|
+
* @description Additional React Node to be rendered next to the logo
|
|
6
|
+
*/
|
|
7
|
+
extra?: ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* @description Size of the logo in pixels
|
|
10
|
+
* @default 32
|
|
11
|
+
*/
|
|
12
|
+
size?: number;
|
|
13
|
+
/**
|
|
14
|
+
* @description Type of the logo to be rendered
|
|
15
|
+
* @default 'img'
|
|
16
|
+
*/
|
|
17
|
+
type?: 'img' | 'text' | 'combine';
|
|
18
|
+
}
|
|
19
|
+
export declare const Logo: import("react").NamedExoticComponent<LogoProps>;
|
package/es/Logo/index.js
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["type", "size", "style", "extra", "className"];
|
|
4
|
+
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; }
|
|
5
|
+
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; }
|
|
6
|
+
import { useTheme } from 'antd-style';
|
|
7
|
+
import { memo } from 'react';
|
|
8
|
+
import { Flexbox } from 'react-layout-kit';
|
|
9
|
+
import { Divider } from "./Divider";
|
|
10
|
+
import { LogoImg } from "./LogoImg";
|
|
11
|
+
import { LogoText } from "./LogoText";
|
|
12
|
+
import { useStyles } from "./style";
|
|
13
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
15
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
|
+
export var Logo = /*#__PURE__*/memo(function (_ref) {
|
|
17
|
+
var _ref$type = _ref.type,
|
|
18
|
+
type = _ref$type === void 0 ? 'img' : _ref$type,
|
|
19
|
+
_ref$size = _ref.size,
|
|
20
|
+
size = _ref$size === void 0 ? 32 : _ref$size,
|
|
21
|
+
style = _ref.style,
|
|
22
|
+
extra = _ref.extra,
|
|
23
|
+
className = _ref.className,
|
|
24
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
25
|
+
var theme = useTheme();
|
|
26
|
+
var _useStyles = useStyles(),
|
|
27
|
+
styles = _useStyles.styles;
|
|
28
|
+
var logoComponent;
|
|
29
|
+
switch (type) {
|
|
30
|
+
case 'text':
|
|
31
|
+
{
|
|
32
|
+
logoComponent = /*#__PURE__*/_jsx(LogoText, _objectSpread({
|
|
33
|
+
className: className,
|
|
34
|
+
height: size,
|
|
35
|
+
style: style,
|
|
36
|
+
width: size * 2.9375
|
|
37
|
+
}, rest));
|
|
38
|
+
break;
|
|
39
|
+
}
|
|
40
|
+
case 'combine':
|
|
41
|
+
{
|
|
42
|
+
logoComponent = /*#__PURE__*/_jsxs(_Fragment, {
|
|
43
|
+
children: [/*#__PURE__*/_jsx(LogoImg, _objectSpread({
|
|
44
|
+
height: size,
|
|
45
|
+
style: style,
|
|
46
|
+
width: size
|
|
47
|
+
}, rest)), /*#__PURE__*/_jsx(LogoText, {
|
|
48
|
+
style: {
|
|
49
|
+
height: size,
|
|
50
|
+
marginLeft: Math.round(size / 4),
|
|
51
|
+
width: 'auto'
|
|
52
|
+
}
|
|
53
|
+
})]
|
|
54
|
+
});
|
|
55
|
+
break;
|
|
56
|
+
}
|
|
57
|
+
// eslint-disable-next-line unicorn/no-useless-switch-case
|
|
58
|
+
case 'img':
|
|
59
|
+
default:
|
|
60
|
+
{
|
|
61
|
+
logoComponent = /*#__PURE__*/_jsx(LogoImg, _objectSpread({
|
|
62
|
+
height: size,
|
|
63
|
+
style: style,
|
|
64
|
+
width: size
|
|
65
|
+
}, rest));
|
|
66
|
+
break;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
if (!extra) return logoComponent;
|
|
70
|
+
var extraSize = Math.round(size / 3 * 1.9);
|
|
71
|
+
return /*#__PURE__*/_jsxs(Flexbox, _objectSpread(_objectSpread({
|
|
72
|
+
align: 'center',
|
|
73
|
+
className: className,
|
|
74
|
+
horizontal: true,
|
|
75
|
+
style: style
|
|
76
|
+
}, rest), {}, {
|
|
77
|
+
children: [logoComponent, /*#__PURE__*/_jsx(Divider, {
|
|
78
|
+
style: {
|
|
79
|
+
color: theme.colorFill,
|
|
80
|
+
height: extraSize,
|
|
81
|
+
width: extraSize
|
|
82
|
+
}
|
|
83
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
84
|
+
className: styles.extraTitle,
|
|
85
|
+
style: {
|
|
86
|
+
fontSize: extraSize
|
|
87
|
+
},
|
|
88
|
+
children: extra
|
|
89
|
+
})]
|
|
90
|
+
}));
|
|
91
|
+
});
|
package/es/Logo/style.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
|
|
2
|
+
var _templateObject;
|
|
3
|
+
import { createStyles } from 'antd-style';
|
|
4
|
+
export var useStyles = createStyles(function (_ref) {
|
|
5
|
+
var css = _ref.css;
|
|
6
|
+
return {
|
|
7
|
+
extraTitle: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n font-weight: 300;\n white-space: nowrap;\n "])))
|
|
8
|
+
};
|
|
9
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Tree, TreeDataNode, TreeProps } from 'antd';
|
package/es/Tree/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Tree, TreeDataNode, TreeProps } from 'antd';
|
package/es/index.d.ts
ADDED
package/es/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare const PresetColors: readonly ["red", "volcano", "orange", "gold", "yellow", "lime", "green", "cyan", "blue", "geekblue", "purple", "magenta", "gray"];
|
|
2
|
+
export type PresetColorKey = (typeof PresetColors)[number];
|
|
3
|
+
export type PresetColorType = Record<PresetColorKey, string>;
|
|
4
|
+
type ColorPaletteKeyIndex = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11;
|
|
5
|
+
type ColorTokenKey = 'Bg' | 'BgHover' | 'Border' | 'BorderSecondary' | 'BorderHover' | 'Hover' | '' | 'Active' | 'TextHover' | 'Text' | 'TextActive';
|
|
6
|
+
export type ColorToken = {
|
|
7
|
+
[key in `${keyof PresetColorType}${ColorTokenKey}`]: string;
|
|
8
|
+
};
|
|
9
|
+
export type ColorPalettes = {
|
|
10
|
+
[key in `${keyof PresetColorType}${ColorPaletteKeyIndex}`]: string;
|
|
11
|
+
};
|
|
12
|
+
export type ColorPalettesAlpha = {
|
|
13
|
+
[key in `${keyof PresetColorType}${ColorPaletteKeyIndex}A`]: string;
|
|
14
|
+
};
|
|
15
|
+
export interface LobeCustomToken extends ColorToken, ColorPalettes, ColorPalettesAlpha {
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import 'antd-style';
|
|
2
|
+
|
|
3
|
+
import { LobeCustomStylish } from './customStylish';
|
|
4
|
+
import { LobeCustomToken } from './customToken';
|
|
5
|
+
|
|
6
|
+
declare module 'antd-style' {
|
|
7
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
8
|
+
export interface CustomToken extends LobeCustomToken {}
|
|
9
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
10
|
+
export interface CustomStylish extends LobeCustomStylish {}
|
|
11
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type HTMLAttributes } from 'react';
|
|
2
|
+
export * from './customStylish';
|
|
3
|
+
export * from './customToken';
|
|
4
|
+
export type DivProps = HTMLAttributes<HTMLDivElement>;
|
|
5
|
+
export type SvgProps = HTMLAttributes<SVGSVGElement>;
|
|
6
|
+
export type ImgProps = HTMLAttributes<HTMLImageElement>;
|
|
7
|
+
export type InputProps = HTMLAttributes<HTMLInputElement>;
|
|
8
|
+
export type TextAreaProps = HTMLAttributes<HTMLTextAreaElement>;
|