@vitus-labs/connector-styled-components 2.0.0-alpha.9 → 2.0.0-beta.0

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 (2) hide show
  1. package/README.md +49 -0
  2. package/package.json +6 -5
package/README.md ADDED
@@ -0,0 +1,49 @@
1
+ # @vitus-labs/connector-styled-components
2
+
3
+ CSS-in-JS connector for styled-components — bridges `styled-components` to the Vitus Labs component system.
4
+
5
+ [![npm](https://img.shields.io/npm/v/@vitus-labs/connector-styled-components)](https://www.npmjs.com/package/@vitus-labs/connector-styled-components)
6
+ [![license](https://img.shields.io/npm/l/@vitus-labs/connector-styled-components)](https://github.com/vitus-labs/ui-system/blob/main/LICENSE)
7
+
8
+ Re-exports `css`, `styled`, `keyframes`, `createGlobalStyle`, `useTheme`, and `ThemeProvider` from `styled-components` in the shape expected by `@vitus-labs/core`'s `init()` function.
9
+
10
+ ## Installation
11
+
12
+ ```bash
13
+ npm install @vitus-labs/connector-styled-components styled-components
14
+ ```
15
+
16
+ ## Usage
17
+
18
+ ```tsx
19
+ import { init } from '@vitus-labs/core'
20
+ import connector from '@vitus-labs/connector-styled-components'
21
+
22
+ init({
23
+ ...connector,
24
+ component: 'div',
25
+ textComponent: 'span',
26
+ })
27
+ ```
28
+
29
+ ## Exports
30
+
31
+ | Export | Source |
32
+ | ------ | ------ |
33
+ | `css` | `styled-components` |
34
+ | `styled` | `styled-components` |
35
+ | `keyframes` | `styled-components` |
36
+ | `createGlobalStyle` | `styled-components` |
37
+ | `useTheme` | `styled-components` |
38
+ | `provider` | `ThemeProvider` from `styled-components` |
39
+
40
+ ## Peer Dependencies
41
+
42
+ | Package | Version |
43
+ | ------- | ------- |
44
+ | styled-components | >= 6 |
45
+ | react | >= 19 |
46
+
47
+ ## License
48
+
49
+ MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitus-labs/connector-styled-components",
3
- "version": "2.0.0-alpha.9+f2f47db",
3
+ "version": "2.0.0-beta.0",
4
4
  "license": "MIT",
5
5
  "author": "Vit Bokisch <vit@bokisch.cz>",
6
6
  "maintainers": [
@@ -14,6 +14,7 @@
14
14
  "types": "./lib/index.d.ts"
15
15
  },
16
16
  "types": "./lib/index.d.ts",
17
+ "main": "./lib/index.js",
17
18
  "files": [
18
19
  "lib",
19
20
  "!lib/**/*.map",
@@ -53,9 +54,9 @@
53
54
  "styled-components": ">= 6"
54
55
  },
55
56
  "devDependencies": {
56
- "@vitus-labs/tools-rolldown": "^1.6.0",
57
- "@vitus-labs/tools-typescript": "^1.6.0",
58
- "styled-components": "^6.3.9"
57
+ "@vitus-labs/tools-rolldown": "1.10.0",
58
+ "@vitus-labs/tools-typescript": "1.10.0",
59
+ "styled-components": "^6.3.11"
59
60
  },
60
- "gitHead": "f2f47db887d6a846ee5f9e96f290c59cdde4772a"
61
+ "gitHead": "dd8b9f356086ecd8bfb69c87fcad1e8bfa9ab1f4"
61
62
  }