8000 :lipstick: style: update gemma icon · lobehub/lobe-icons@5c4fc37 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 5c4fc37

Browse files
committed
💄 style: update gemma icon
1 parent 30c3d26 commit 5c4fc37

File tree

4 files changed

+38
-4
lines changed

4 files changed

+38
-4
lines changed

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
"@types/react": "18.2.40",
8484
"@types/react-dom": "^18",
8585
"@vitest/coverage-v8": "latest",
86-
"antd": "^5.13.3",
86+
"antd": "^5.14.1",
8787
"antd-style": "^3",
8888
"babel-plugin-antd-style": "latest",
8989
"commitlint": "^18",
@@ -109,10 +109,8 @@
109109
"vitest": "latest"
110110
},
111111
"peerDependencies": {
112-
"polished": ">=4",
113112
"react": ">=18",
114-
"react-dom": ">=18",
115-
"react-layout-kit": ">=1"
113+
"react-dom": ">=18"
116114
},
117115
"publishConfig": {
118116
"access": "public",

src/Gemma/components/Simple.tsx

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import { forwardRef } from 'react';
2+
3+
import type { IconType } from '@/types';
4+
5+
const Icon: IconType = forwardRef(({ size = '1em', style, ...rest }, ref) => {
6+
return (
7+
<svg
8+
fill="currentColor"
9+
height={size}
10+
ref={ref}
11+
style={{ flex: 'none', lineHeight: 1, ...style }}
12+
viewBox="0 0 24 24"
13+
xmlns="http://www.w3.org/2000/svg"
14+
{...rest}
15+
>
16+
<path
17+
d="M12 0a14.305 14.305 0 0 0 12 12 14.305 14.305 0 0 0-12 12A14.304 14.304 0 0 0 0 12 14.304 14.304 0 0 0 12 0Zm.031 4.5A14.281 14.281 0 0 1 9 9a14.742 14.742 0 0 1-4.5 3.063 14.281 14.281 0 0 1 4.5 3.03 14.281 14.281 0 0 1 3.031 4.5 14.742 14.742 0 0 1 3.063-4.5 14.281 14.281 0 0 1 4.5-3.03A14.742 14.742 0 0 1 15.094 9a14.74 14.74 0 0 1-3.063-4.5Z"
18+
fillRule="evenodd"
19+
/>
20+
</svg>
21+
);
22+
});
23+
24+
export default Icon;

src/Gemma/index.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@ export default () => (
2020
);
2121
```
2222

23+
## Simple
24+
25+
```tsx
26+
import { Gemma } from '@lobehub/icons';
27+
import { Flexbox } from 'react-layout-kit';
28+
29+
export default () => <Gemma.Simple size={64} />;
30+
```
31+
2332
## Text
2433

2534
```tsx

src/Gemma/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@ import Avatar from './components/Avatar';
22
import Color from './components/Color';
33
import Combine from './components/Combine';
44
import Mono from './components/Mono';
5+
import Simple from './components/Simple';
56
import Text from './components/Text';
67
import { COLOR_GRADIENT, COLOR_PRIMARY } from './style';
78

89
export type CompoundedIcon = typeof Mono & {
910
Avatar: typeof Avatar;
1011
Color: typeof Color;
1112
Combine: typeof Combine;
13+
Simple: typeof Color;
1214
Text: typeof Text;
1315
colorGradient: string;
1416
colorPrimary: string;
@@ -17,6 +19,7 @@ export type CompoundedIcon = typeof Mono & {
1719
const Icons = Mono as CompoundedIcon;
1820
Icons.Color = Color;
1921
Icons.Text = Text;
22+
Icons.Simple = Simple;
2023
Icons.Combine = Combine;
2124
Icons.Avatar = Avatar;
2225
Icons.colorPrimary = COLOR_PRIMARY;

0 commit comments

Comments
 (0)
0