Skip to content

Commit d8d49e1

Browse files
committed
feat: robin组件
1 parent 5795fbf commit d8d49e1

File tree

10 files changed

+19118
-22159
lines changed

10 files changed

+19118
-22159
lines changed

.github/workflows/npm-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,6 @@ jobs:
4545
run: |
4646
pnpm -v
4747
pnpm i
48-
pnpm run publish-changed
48+
pnpm run publish-pkg
4949
env:
5050
NODE_AUTH_TOKEN: ${{secrets.NPM_CHAOS_TOKEN}}

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
strict-peer-dependencies=false
22
shell-emulator=true
33
auto-install-peers=false
4+
network-timeout=100000
45

56
registry=https://registry.npmjs.com/

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@chaos-design/dom",
2+
"name": "robin",
33
"version": "0.0.1",
44
"private": true,
55
"description": "robin components",

packages.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
| Package Name | Description | Version |
44
|--------------|------------|------------|
5-
| @chaos-design/marquee | react marquee | 0.0.1-alpha.1 |
5+
| @chaos-design/marquee | react marquee | 0.0.1 |

packages/marquee/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@chaos-design/marquee",
33
"type": "module",
4-
"version": "0.0.1-alpha.1",
4+
"version": "0.0.1",
55
"description": "react marquee",
66
"exports": {
77
"types": "./lib/index.d.ts",

packages/robin/.dumirc.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default defineConfig({
1313
{ id: 'en-US', name: 'English', suffix: '-en' },
1414
],
1515
analytics: {
16-
ga_v2: 'G-D3DFGG9BYK',
16+
ga_v2: 'G-H9EQQW9VG3',
1717
},
1818
metas: [
1919
{ name: 'theme-color', content: '#1677ff' },
@@ -32,15 +32,15 @@ export default defineConfig({
3232
'en-US': 'Robin Components',
3333
},
3434
loading: {
35-
skeleton: ['/guide', '/config'],
35+
skeleton: ['/guide', '/config', '/components'],
3636
},
37-
lastUpdated: true,
37+
rtl: false,
3838
announcementBar: {
3939
id: 'announcementBar',
4040
message: '🎉 欢迎使用 chaos-design',
4141
more: '查看更多',
4242
link: 'https://github.com/chaos-design/robin',
43-
description: 'robin',
43+
description: 'Robin Components',
4444
backgroundColor: '#86f4bd',
4545
textColor: '#000000e0',
4646
showIcon: false,

packages/robin/docs/components/demos/marquee/horizontal-direction.tsx

Lines changed: 28 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -10,38 +10,34 @@ function marquee() {
1010
overflow: 'hidden',
1111
width: '100%',
1212
}}>
13-
<Space size={'middle'}>
14-
<Flex gap="middle" vertical>
15-
<Typography.Title level={5}>
16-
Left
17-
</Typography.Title>
18-
<Marquee
19-
pauseOnHover
20-
direction="left"
21-
onMount={(params) => {
22-
}}>
23-
{Array(Math.random() * 10 | 0 + 5).fill(1).map((_, i) => (
24-
<UserCard key={i} index={i} />
25-
))}
26-
</Marquee>
27-
</Flex>
28-
</Space>
29-
<Space size={'middle'}>
30-
<Flex gap="middle" vertical>
31-
<Typography.Title level={5}>
32-
Right
33-
</Typography.Title>
34-
<Marquee
35-
pauseOnHover
36-
direction="right"
37-
onMount={(params) => {
38-
}}>
39-
{Array(Math.random() * 10 | 0 + 5).fill(1).map((_, i) => (
40-
<InfoCard key={i} index={i} />
41-
))}
42-
</Marquee>
43-
</Flex>
44-
</Space>
13+
<Flex gap="middle" vertical>
14+
<Typography.Title level={2}>
15+
Left
16+
</Typography.Title>
17+
<Marquee
18+
pauseOnHover
19+
direction="left"
20+
onMount={(params) => {
21+
}}>
22+
{Array(Math.random() * 10 | 0 + 5).fill(1).map((_, i) => (
23+
<UserCard key={i} index={i} />
24+
))}
25+
</Marquee>
26+
</Flex>
27+
<Flex gap="middle" vertical>
28+
<Typography.Title level={2}>
29+
Right
30+
</Typography.Title>
31+
<Marquee
32+
pauseOnHover
33+
direction="right"
34+
onMount={(params) => {
35+
}}>
36+
{Array(Math.random() * 10 | 0 + 5).fill(1).map((_, i) => (
37+
<InfoCard key={i} index={i} />
38+
))}
39+
</Marquee>
40+
</Flex>
4541
</div >
4642
);
4743
}

packages/robin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"@commitlint/cli": "^17.1.2",
3131
"@commitlint/config-conventional": "^17.1.0",
3232
"dumi": "^2.4.17",
33-
"dumi-theme-chaos": "^0.0.1-beta.6",
33+
"dumi-theme-chaos": "^0.0.1",
3434
"prettier": "^2.7.1",
3535
"react": "^18.0.0",
3636
"react-dom": "^18.0.0"

0 commit comments

Comments
 (0)