Skip to content

Commit aeb2a3e

Browse files
committed
chore: adjust project structrue
1 parent c96151b commit aeb2a3e

File tree

95 files changed

+13510
-860
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+13510
-860
lines changed

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
node_modules
2-
dist
1+
**/node_modules
2+
**/**/dist
33
.idea
4-
docs/.vitepress/cache
4+
packages/docs/.vitepress/cache
55
coverage

.releaserc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
[
1515
"@semantic-release/npm",
1616
{
17-
"npmPublish": true
17+
"npmPublish": true,
18+
"pkgRoot": "./packages/core"
1819
}
1920
],
2021
[

CHANGELOG.md

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,125 +1,125 @@
1-
## [1.4.1](https://github.com/v-vibe/vue-styled-components/compare/v1.4.0...v1.4.1) (2024-08-16)
1+
## [1.4.1](https://github.com/vue-styled-components/core/compare/v1.4.0...v1.4.1) (2024-08-16)
22

33

44
### Bug Fixes
55

6-
* **helper:** [create-global-style] cannot apply style correctly ([ccd9805](https://github.com/v-vibe/vue-styled-components/commit/ccd980506ef70983e4b974820edfc714c1729b54))
6+
* **helper:** [create-global-style] cannot apply style correctly ([ccd9805](https://github.com/vue-styled-components/core/commit/ccd980506ef70983e4b974820edfc714c1729b54))
77

8-
# [1.4.0](https://github.com/v-vibe/vue-styled-components/compare/v1.3.1...v1.4.0) (2024-08-15)
8+
# [1.4.0](https://github.com/vue-styled-components/core/compare/v1.3.1...v1.4.0) (2024-08-15)
99

1010

1111
### Bug Fixes
1212

13-
* **core:** [styled] autmatically infer props type ([176f06a](https://github.com/v-vibe/vue-styled-components/commit/176f06ae9298a7cafdb2e5241a1d5e0a093f14fa))
13+
* **core:** [styled] autmatically infer props type ([176f06a](https://github.com/vue-styled-components/core/commit/176f06ae9298a7cafdb2e5241a1d5e0a093f14fa))
1414

1515

1616
### Features
1717

18-
* implement automatic addition of vendor prefixes to CSS styles and add support for nested CSS in legacy browsers([#19](https://github.com/v-vibe/vue-styled-components/issues/19)) ([2fc5b48](https://github.com/v-vibe/vue-styled-components/commit/2fc5b48e49345c0e4238667ee22173f09ea81070))
18+
* implement automatic addition of vendor prefixes to CSS styles and add support for nested CSS in legacy browsers([#19](https://github.com/vue-styled-components/core/issues/19)) ([2fc5b48](https://github.com/vue-styled-components/core/commit/2fc5b48e49345c0e4238667ee22173f09ea81070))
1919

20-
## [1.3.1](https://github.com/v-vibe/vue-styled-components/compare/v1.3.0...v1.3.1) (2024-07-24)
20+
## [1.3.1](https://github.com/vue-styled-components/core/compare/v1.3.0...v1.3.1) (2024-07-24)
2121

2222

2323
### Bug Fixes
2424

25-
* **theme-provider:** reactive theme loss issue ([#15](https://github.com/v-vibe/vue-styled-components/issues/15)) ([29f02b9](https://github.com/v-vibe/vue-styled-components/commit/29f02b9cb85b0bf311e277fe8681e4dcbde91206))
25+
* **theme-provider:** reactive theme loss issue ([#15](https://github.com/vue-styled-components/core/issues/15)) ([29f02b9](https://github.com/vue-styled-components/core/commit/29f02b9cb85b0bf311e277fe8681e4dcbde91206))
2626

27-
## [1.3.1-beta.1](https://github.com/v-vibe/vue-styled-components/compare/v1.3.0...v1.3.1-beta.1) (2024-07-22)
27+
## [1.3.1-beta.1](https://github.com/vue-styled-components/core/compare/v1.3.0...v1.3.1-beta.1) (2024-07-22)
2828

2929

3030
### Bug Fixes
3131

32-
* **theme-provider:** reactive theme loss issue ([#15](https://github.com/v-vibe/vue-styled-components/issues/15)) ([29f02b9](https://github.com/v-vibe/vue-styled-components/commit/29f02b9cb85b0bf311e277fe8681e4dcbde91206))
32+
* **theme-provider:** reactive theme loss issue ([#15](https://github.com/vue-styled-components/core/issues/15)) ([29f02b9](https://github.com/vue-styled-components/core/commit/29f02b9cb85b0bf311e277fe8681e4dcbde91206))
3333

34-
# [1.3.0](https://github.com/v-vibe/vue-styled-components/compare/v1.2.0...v1.3.0) (2024-07-18)
34+
# [1.3.0](https://github.com/vue-styled-components/core/compare/v1.2.0...v1.3.0) (2024-07-18)
3535

3636

3737
### Features
3838

39-
* **core:** [styled] support embed css ([9ce5920](https://github.com/v-vibe/vue-styled-components/commit/9ce5920e8b2ccc049bae23d4491179d50ea237ec))
40-
* **utils:** [style-management] auto clear style when the component unmounted ([0678b03](https://github.com/v-vibe/vue-styled-components/commit/0678b03b4a179b62f5179503e471557fdfdf0269))
39+
* **core:** [styled] support embed css ([9ce5920](https://github.com/vue-styled-components/core/commit/9ce5920e8b2ccc049bae23d4491179d50ea237ec))
40+
* **utils:** [style-management] auto clear style when the component unmounted ([0678b03](https://github.com/vue-styled-components/core/commit/0678b03b4a179b62f5179503e471557fdfdf0269))
4141

42-
# [1.3.0-beta.1](https://github.com/v-vibe/vue-styled-components/compare/v1.2.0...v1.3.0-beta.1) (2024-07-17)
42+
# [1.3.0-beta.1](https://github.com/vue-styled-components/core/compare/v1.2.0...v1.3.0-beta.1) (2024-07-17)
4343

4444

4545
### Features
4646

47-
* **core:** [styled] support embed css ([9ce5920](https://github.com/v-vibe/vue-styled-components/commit/9ce5920e8b2ccc049bae23d4491179d50ea237ec))
48-
* **utils:** [style-management] auto clear style when the component unmounted ([0678b03](https://github.com/v-vibe/vue-styled-components/commit/0678b03b4a179b62f5179503e471557fdfdf0269))
47+
* **core:** [styled] support embed css ([9ce5920](https://github.com/vue-styled-components/core/commit/9ce5920e8b2ccc049bae23d4491179d50ea237ec))
48+
* **utils:** [style-management] auto clear style when the component unmounted ([0678b03](https://github.com/vue-styled-components/core/commit/0678b03b4a179b62f5179503e471557fdfdf0269))
4949

50-
# [1.2.0](https://github.com/v-vibe/vue-styled-components/compare/v1.1.0...v1.2.0) (2024-05-23)
50+
# [1.2.0](https://github.com/vue-styled-components/core/compare/v1.1.0...v1.2.0) (2024-05-23)
5151

5252

5353
### Features
5454

55-
* **helper:** [cssClass] add function to generate common class ([fa57d0c](https://github.com/v-vibe/vue-styled-components/commit/fa57d0c653a2edcb897cf86d6b2e3889cc2d8330))
55+
* **helper:** [cssClass] add function to generate common class ([fa57d0c](https://github.com/vue-styled-components/core/commit/fa57d0c653a2edcb897cf86d6b2e3889cc2d8330))
5656

57-
# [1.1.0](https://github.com/v-vibe/vue-styled-components/compare/v1.0.1...v1.1.0) (2024-05-17)
57+
# [1.1.0](https://github.com/vue-styled-components/core/compare/v1.0.1...v1.1.0) (2024-05-17)
5858

5959

6060
### Features
6161

62-
* **core:** [styled] support passing type for props ([691be76](https://github.com/v-vibe/vue-styled-components/commit/691be768583d33a5b64390a6954bd388f0e51867))
62+
* **core:** [styled] support passing type for props ([691be76](https://github.com/vue-styled-components/core/commit/691be768583d33a5b64390a6954bd388f0e51867))
6363

64-
# [1.1.0-beta.1](https://github.com/v-vibe/vue-styled-components/compare/v1.0.1...v1.1.0-beta.1) (2024-05-16)
64+
# [1.1.0-beta.1](https://github.com/vue-styled-components/core/compare/v1.0.1...v1.1.0-beta.1) (2024-05-16)
6565

6666

6767
### Features
6868

69-
* **core:** [styled] support passing type for props ([691be76](https://github.com/v-vibe/vue-styled-components/commit/691be768583d33a5b64390a6954bd388f0e51867))
69+
* **core:** [styled] support passing type for props ([691be76](https://github.com/vue-styled-components/core/commit/691be768583d33a5b64390a6954bd388f0e51867))
7070

71-
## [1.0.1](https://github.com/v-vibe/vue-styled-components/compare/v1.0.0...v1.0.1) (2024-05-10)
71+
## [1.0.1](https://github.com/vue-styled-components/core/compare/v1.0.0...v1.0.1) (2024-05-10)
7272

7373

7474
### Bug Fixes
7575

76-
* **core:** animation doesn't working ([41fb553](https://github.com/v-vibe/vue-styled-components/commit/41fb5535ba9b0ecb5aa0c79700846a3e36f09d85))
77-
* **core:** identical styles cannot override ([#6](https://github.com/v-vibe/vue-styled-components/issues/6)) ([fe1cf46](https://github.com/v-vibe/vue-styled-components/commit/fe1cf46297aa45f20b77b11a2dec22931f196027))
76+
* **core:** animation doesn't working ([41fb553](https://github.com/vue-styled-components/core/commit/41fb5535ba9b0ecb5aa0c79700846a3e36f09d85))
77+
* **core:** identical styles cannot override ([#6](https://github.com/vue-styled-components/core/issues/6)) ([fe1cf46](https://github.com/vue-styled-components/core/commit/fe1cf46297aa45f20b77b11a2dec22931f196027))
7878

7979
# 1.0.0 (2024-05-02)
8080

8181

8282
### Bug Fixes
8383

84-
* **core:** [styled] `as` does not take effect ([9f143b2](https://github.com/v-vibe/vue-styled-components/commit/9f143b2e534e4155d5593f450a1bb01287d82cdc))
84+
* **core:** [styled] `as` does not take effect ([9f143b2](https://github.com/vue-styled-components/core/commit/9f143b2e534e4155d5593f450a1bb01287d82cdc))
8585

8686

8787
### Features
8888

89-
* **core:** [styled] add `.attrs` api ([f01d60b](https://github.com/v-vibe/vue-styled-components/commit/f01d60b07812233da7372c3ed990f92d0a0c5ec3))
90-
* **core:** [styled] support reactive style value ([8624512](https://github.com/v-vibe/vue-styled-components/commit/862451212c4d917ac6238e2bd4e52a7f454e226d))
91-
* **core:** [styled] support styling vue component ([c76478a](https://github.com/v-vibe/vue-styled-components/commit/c76478a8836f2ba6de7494596b56da7ac180a740))
92-
* **helper:** add apis of `keyframes` and `createGlobalStyle` ([5c2a422](https://github.com/v-vibe/vue-styled-components/commit/5c2a422a68cbdc8cd135121df39a08f4958cc143))
93-
* **hooks:** [use-styled-calss-name] add hook to get styled class name ([0952efa](https://github.com/v-vibe/vue-styled-components/commit/0952efa81fee1494923eebe60e54a85de7402051))
94-
* **provider:** add `theme provider` ([d4fb106](https://github.com/v-vibe/vue-styled-components/commit/d4fb106370ca594b6efa8001bc3c4d2d135b7a66))
89+
* **core:** [styled] add `.attrs` api ([f01d60b](https://github.com/vue-styled-components/core/commit/f01d60b07812233da7372c3ed990f92d0a0c5ec3))
90+
* **core:** [styled] support reactive style value ([8624512](https://github.com/vue-styled-components/core/commit/862451212c4d917ac6238e2bd4e52a7f454e226d))
91+
* **core:** [styled] support styling vue component ([c76478a](https://github.com/vue-styled-components/core/commit/c76478a8836f2ba6de7494596b56da7ac180a740))
92+
* **helper:** add apis of `keyframes` and `createGlobalStyle` ([5c2a422](https://github.com/vue-styled-components/core/commit/5c2a422a68cbdc8cd135121df39a08f4958cc143))
93+
* **hooks:** [use-styled-calss-name] add hook to get styled class name ([0952efa](https://github.com/vue-styled-components/core/commit/0952efa81fee1494923eebe60e54a85de7402051))
94+
* **provider:** add `theme provider` ([d4fb106](https://github.com/vue-styled-components/core/commit/d4fb106370ca594b6efa8001bc3c4d2d135b7a66))
9595

9696

9797
### Performance Improvements
9898

99-
* **core:** [styled] improve watch effect ([74ca1f1](https://github.com/v-vibe/vue-styled-components/commit/74ca1f1819ed1575546ccdca817ab1c94a30ff81))
100-
* **helper:** [keyframes] generate unique name for `keyframes` ([669e7ec](https://github.com/v-vibe/vue-styled-components/commit/669e7ec0e841d9ce2fe124fbace290ecf2ed7a11))
99+
* **core:** [styled] improve watch effect ([74ca1f1](https://github.com/vue-styled-components/core/commit/74ca1f1819ed1575546ccdca817ab1c94a30ff81))
100+
* **helper:** [keyframes] generate unique name for `keyframes` ([669e7ec](https://github.com/vue-styled-components/core/commit/669e7ec0e841d9ce2fe124fbace290ecf2ed7a11))
101101

102-
# [1.0.0-beta.2](https://github.com/v-vibe/vue-styled-components/compare/v1.0.0-beta.1...v1.0.0-beta.2) (2024-04-29)
102+
# [1.0.0-beta.2](https://github.com/vue-styled-components/core/compare/v1.0.0-beta.1...v1.0.0-beta.2) (2024-04-29)
103103

104104

105105
### Bug Fixes
106106

107-
* **core:** [styled] `as` does not take effect ([9f143b2](https://github.com/v-vibe/vue-styled-components/commit/9f143b2e534e4155d5593f450a1bb01287d82cdc))
107+
* **core:** [styled] `as` does not take effect ([9f143b2](https://github.com/vue-styled-components/core/commit/9f143b2e534e4155d5593f450a1bb01287d82cdc))
108108

109109
# 1.0.0-beta.1 (2024-04-29)
110110

111111

112112
### Features
113113

114-
* **core:** [styled] add `.attrs` api ([f01d60b](https://github.com/v-vibe/vue-styled-components/commit/f01d60b07812233da7372c3ed990f92d0a0c5ec3))
115-
* **core:** [styled] support reactive style value ([8624512](https://github.com/v-vibe/vue-styled-components/commit/862451212c4d917ac6238e2bd4e52a7f454e226d))
116-
* **core:** [styled] support styling vue component ([c76478a](https://github.com/v-vibe/vue-styled-components/commit/c76478a8836f2ba6de7494596b56da7ac180a740))
117-
* **helper:** add apis of `keyframes` and `createGlobalStyle` ([5c2a422](https://github.com/v-vibe/vue-styled-components/commit/5c2a422a68cbdc8cd135121df39a08f4958cc143))
118-
* **hooks:** [use-styled-calss-name] add hook to get styled class name ([0952efa](https://github.com/v-vibe/vue-styled-components/commit/0952efa81fee1494923eebe60e54a85de7402051))
119-
* **provider:** add `theme provider` ([d4fb106](https://github.com/v-vibe/vue-styled-components/commit/d4fb106370ca594b6efa8001bc3c4d2d135b7a66))
114+
* **core:** [styled] add `.attrs` api ([f01d60b](https://github.com/vue-styled-components/core/commit/f01d60b07812233da7372c3ed990f92d0a0c5ec3))
115+
* **core:** [styled] support reactive style value ([8624512](https://github.com/vue-styled-components/core/commit/862451212c4d917ac6238e2bd4e52a7f454e226d))
116+
* **core:** [styled] support styling vue component ([c76478a](https://github.com/vue-styled-components/core/commit/c76478a8836f2ba6de7494596b56da7ac180a740))
117+
* **helper:** add apis of `keyframes` and `createGlobalStyle` ([5c2a422](https://github.com/vue-styled-components/core/commit/5c2a422a68cbdc8cd135121df39a08f4958cc143))
118+
* **hooks:** [use-styled-calss-name] add hook to get styled class name ([0952efa](https://github.com/vue-styled-components/core/commit/0952efa81fee1494923eebe60e54a85de7402051))
119+
* **provider:** add `theme provider` ([d4fb106](https://github.com/vue-styled-components/core/commit/d4fb106370ca594b6efa8001bc3c4d2d135b7a66))
120120

121121

122122
### Performance Improvements
123123

124-
* **core:** [styled] improve watch effect ([74ca1f1](https://github.com/v-vibe/vue-styled-components/commit/74ca1f1819ed1575546ccdca817ab1c94a30ff81))
125-
* **helper:** [keyframes] generate unique name for `keyframes` ([669e7ec](https://github.com/v-vibe/vue-styled-components/commit/669e7ec0e841d9ce2fe124fbace290ecf2ed7a11))
124+
* **core:** [styled] improve watch effect ([74ca1f1](https://github.com/vue-styled-components/core/commit/74ca1f1819ed1575546ccdca817ab1c94a30ff81))
125+
* **helper:** [keyframes] generate unique name for `keyframes` ([669e7ec](https://github.com/vue-styled-components/core/commit/669e7ec0e841d9ce2fe124fbace290ecf2ed7a11))

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
[github-action-url]: https://github.com/v-vibe/vue-styled-components/actions/workflows/code-check.yml
1717
[npm-version]: https://img.shields.io/npm/v/%40vvibe%2Fvue-styled-components
1818
[npm-bundle-size]: https://img.shields.io/bundlejs/size/%40vvibe%2Fvue-styled-components
19-
[npm-url]: http://npmjs.org/package/@vvibe/vue-styled-components
19+
[npm-url]: http://npmjs.org/package/@vue-styled-components/core
2020
[coverage]: https://coveralls.io/repos/github/v-vibe/vue-styled-components/badge.svg?branch=main
2121
[codecov-url]: https://coveralls.io/github/v-vibe/vue-styled-components?branch=main
2222
[discord]: https://img.shields.io/badge/chat-on%20discord-7289da.svg?sanitize=true
@@ -59,22 +59,22 @@ For detailed introduction and usage instructions, please refer to [the documenta
5959
### 📦Install
6060

6161
```sh
62-
npm i @vvibe/vue-styled-components
62+
npm i @vue-styled-components/core
6363
```
6464

6565
```sh
66-
yarn add @vvibe/vue-styled-components
66+
yarn add @vue-styled-components/core
6767
```
6868

6969
```sh
70-
pnpm i @vvibe/vue-styled-components
70+
pnpm i @vue-styled-components/core
7171
```
7272

7373
### 💅Basic
7474

7575
```vue
7676
<script setup lang="ts">
77-
import { styled } from '@vvibe/vue-styled-components';
77+
import { styled } from '@vue-styled-components/core';
7878
import OtherComponent from './VueComponent.vue';
7979
8080
const StyledDiv = styled('div')`
@@ -108,7 +108,7 @@ const StyledOtherComponent = styled(OtherComponent)`
108108

109109
```vue
110110
<script setup lang="ts">
111-
import { styled } from '@vvibe/vue-styled-components';
111+
import { styled } from '@vue-styled-components/core';
112112
113113
const StyledDiv = styled.div.attrs({
114114
class: 'styled-div'
@@ -134,7 +134,7 @@ fallthrough attributes.(see [Props Declaration](https://vuejs.org/guide/componen
134134

135135
```vue
136136
<script setup lang="ts">
137-
import { styled } from '@vvibe/vue-styled-components';
137+
import { styled } from '@vue-styled-components/core';
138138
139139
const StyledDiv = styled('div', {
140140
color: String
@@ -155,7 +155,7 @@ const StyledDiv = styled('div', {
155155

156156
```vue
157157
<script setup lang="ts">
158-
import { styled, ThemeProvider } from '@vvibe/vue-styled-components';
158+
import { styled, ThemeProvider } from '@vue-styled-components/core';
159159
160160
const StyledDiv = styled.div`
161161
width: 100px;

README.zh_CN.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
[github-action-url]: https://github.com/v-vibe/vue-styled-components/actions/workflows/code-check.yml
1717
[npm-version]: https://img.shields.io/npm/v/%40vvibe%2Fvue-styled-components
1818
[npm-bundle-size]: https://img.shields.io/bundlejs/size/%40vvibe%2Fvue-styled-components
19-
[npm-url]: http://npmjs.org/package/@vvibe/vue-styled-components
19+
[npm-url]: http://npmjs.org/package/@vue-styled-components/core
2020
[coverage]: https://coveralls.io/repos/github/v-vibe/vue-styled-components/badge.svg?branch=main
2121
[codecov-url]: https://coveralls.io/github/v-vibe/vue-styled-components?branch=main
2222
[discord]: https://img.shields.io/badge/chat-on%20discord-7289da.svg?sanitize=true
@@ -56,22 +56,22 @@
5656
### 📦安装
5757

5858
```sh
59-
npm i @vvibe/vue-styled-components
59+
npm i @vue-styled-components/core
6060
```
6161

6262
```sh
63-
yarn add @vvibe/vue-styled-components
63+
yarn add @vue-styled-components/core
6464
```
6565

6666
```sh
67-
pnpm i @vvibe/vue-styled-components
67+
pnpm i @vue-styled-components/core
6868
```
6969

7070
### 💅基本使用
7171

7272
```vue
7373
<script setup lang="ts">
74-
import { styled } from '@vvibe/vue-styled-components';
74+
import { styled } from '@vue-styled-components/core';
7575
import OtherComponent from './VueComponent.vue';
7676
7777
const StyledDiv = styled('div')`
@@ -105,7 +105,7 @@ const StyledOtherComponent = styled(OtherComponent)`
105105

106106
```vue
107107
<script setup lang="ts">
108-
import { styled } from '@vvibe/vue-styled-components';
108+
import { styled } from '@vue-styled-components/core';
109109
110110
const StyledDiv = styled.div.attrs({
111111
class: 'styled-div'
@@ -129,7 +129,7 @@ const StyledDiv = styled.div.attrs({
129129

130130
```vue
131131
<script setup lang="ts">
132-
import { styled } from '@vvibe/vue-styled-components';
132+
import { styled } from '@vue-styled-components/core';
133133
134134
const StyledDiv = styled('div', {
135135
color: String
@@ -150,7 +150,7 @@ const StyledDiv = styled('div', {
150150

151151
```vue
152152
<script setup lang="ts">
153-
import { styled, ThemeProvider } from '@vvibe/vue-styled-components';
153+
import { styled, ThemeProvider } from '@vue-styled-components/core';
154154
155155
const StyledDiv = styled.div`
156156
width: 100px;

core/index.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

core/types.d.ts

Lines changed: 0 additions & 19 deletions
This file was deleted.

docs/guide/advances/auto-prefix.md

Lines changed: 0 additions & 26 deletions
This file was deleted.

docs/zh/guide/advances/auto-prefix.md

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)