@solid-primitives/styles 0.1.3 → 1.0.0-next.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.
package/README.md CHANGED
@@ -4,9 +4,10 @@
4
4
 
5
5
  # @solid-primitives/styles
6
6
 
7
- [![size](https://img.shields.io/bundlephobia/minzip/@solid-primitives/styles?style=for-the-badge&label=size)](https://bundlephobia.com/package/@solid-primitives/styles)
7
+ [![size](https://img.shields.io/badge/size-700_B-blue?style=for-the-badge)](https://bundlephobia.com/package/@solid-primitives/styles)
8
8
  [![version](https://img.shields.io/npm/v/@solid-primitives/styles?style=for-the-badge)](https://www.npmjs.com/package/@solid-primitives/styles)
9
9
  [![stage](https://img.shields.io/endpoint?style=for-the-badge&url=https%3A%2F%2Fraw.githubusercontent.com%2Fsolidjs-community%2Fsolid-primitives%2Fmain%2Fassets%2Fbadges%2Fstage-0.json)](https://github.com/solidjs-community/solid-primitives#contribution-process)
10
+ [![tested with vitest](https://img.shields.io/badge/tested_with-vitest-6E9F18?style=for-the-badge&logo=vitest)](https://vitest.dev)
10
11
 
11
12
  Collection of reactive primitives focused on styles.
12
13
 
@@ -22,6 +23,8 @@ yarn add @solid-primitives/styles
22
23
  pnpm add @solid-primitives/styles
23
24
  ```
24
25
 
26
+ **Peer dependencies**: `solid-js@^2.0.0-beta.10` and `@solidjs/web@^2.0.0-beta.10`
27
+
25
28
  ## `createRemSize`
26
29
 
27
30
  Creates a reactive signal with value of the current rem size in pixels, and tracks it's changes.
@@ -67,10 +70,6 @@ const remSize = createRemSize();
67
70
  console.log(remSize()); // 10 instead of 16 (only on the server!)
68
71
  ```
69
72
 
70
- ## Demo
71
-
72
- TODO
73
-
74
73
  ## Changelog
75
74
 
76
75
  See [CHANGELOG.md](./CHANGELOG.md)
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { onCleanup } from "solid-js";
2
- import { isServer } from "solid-js/web";
2
+ import { isServer } from "@solidjs/web";
3
3
  import { createHydratableSingletonRoot } from "@solid-primitives/rootless";
4
4
  import { createHydratableSignal, noop } from "@solid-primitives/utils";
5
5
  let serverRemSize = 16;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solid-primitives/styles",
3
- "version": "0.1.3",
3
+ "version": "1.0.0-next.0",
4
4
  "description": "Collection of reactive primitives focused on styles.",
5
5
  "author": "Damian Tarnawski <gthetaranv@gmail.com>",
6
6
  "contributors": [
@@ -17,11 +17,12 @@
17
17
  },
18
18
  "primitive": {
19
19
  "name": "styles",
20
- "stage": 0,
20
+ "stage": 3,
21
21
  "list": [
22
22
  "createRemSize"
23
23
  ],
24
- "category": "Display & Media"
24
+ "category": "Display & Media",
25
+ "gzip": 700
25
26
  },
26
27
  "private": false,
27
28
  "sideEffects": false,
@@ -46,15 +47,17 @@
46
47
  "css"
47
48
  ],
48
49
  "dependencies": {
49
- "@solid-primitives/rootless": "^1.5.3",
50
- "@solid-primitives/utils": "^6.4.0"
50
+ "@solid-primitives/rootless": "^2.0.0-next.0",
51
+ "@solid-primitives/utils": "^7.0.0-next.0"
51
52
  },
52
53
  "peerDependencies": {
53
- "solid-js": "^1.6.12"
54
+ "@solidjs/web": "^2.0.0-beta.15",
55
+ "solid-js": "^2.0.0-beta.15"
54
56
  },
55
57
  "typesVersions": {},
56
58
  "devDependencies": {
57
- "solid-js": "^1.9.7"
59
+ "@solidjs/web": "2.0.0-beta.15",
60
+ "solid-js": "2.0.0-beta.15"
58
61
  },
59
62
  "scripts": {
60
63
  "dev": "node --import=@nothing-but/node-resolve-ts --experimental-transform-types ../../scripts/dev.ts",