@vitus-labs/connector-styled-components 2.0.0-alpha.26 → 2.0.0-alpha.28

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 (3) hide show
  1. package/README.md +49 -0
  2. package/package.json +5 -5
  3. package/LICENSE +0 -21
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.26",
3
+ "version": "2.0.0-alpha.28",
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,8 @@
53
54
  "styled-components": ">= 6"
54
55
  },
55
56
  "devDependencies": {
56
- "@vitus-labs/tools-rolldown": "1.9.1-alpha.19",
57
- "@vitus-labs/tools-typescript": "1.9.1-alpha.19",
57
+ "@vitus-labs/tools-rolldown": "2.0.0",
58
+ "@vitus-labs/tools-typescript": "2.0.0",
58
59
  "styled-components": "^6.3.11"
59
- },
60
- "gitHead": "69d22f18b093f86a0bee235356ef3064f90c2d40"
60
+ }
61
61
  }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2023-present Vit Bokisch
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.