cssxjs 0.1.3 → 0.2.1

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/babel.cjs ADDED
@@ -0,0 +1 @@
1
+ module.exports = require('babel-preset-cssxjs')
package/index.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ import type React from 'react'
2
+ export function css (css: TemplateStringsArray): any
3
+ export function styl (styl: TemplateStringsArray): any
4
+ export function pug (pug: TemplateStringsArray): React.ReactNode
package/index.js CHANGED
@@ -1,2 +1,11 @@
1
- // TODO
2
- throw Error('TODO')
1
+ export function css (cssString) {
2
+ throw Error('[cssxjs] Unprocessed \'css\' template string. Bundler (Babel / Metro) did not process this file correctly.')
3
+ }
4
+
5
+ export function styl (stylString) {
6
+ throw Error('[cssxjs] Unprocessed \'styl\' template string. Bundler (Babel / Metro) did not process this file correctly.')
7
+ }
8
+
9
+ export function pug (pugString) {
10
+ throw Error('[cssxjs] Unprocessed \'pug\' template string. Bundler (Babel / Metro) did not process this file correctly.')
11
+ }
package/package.json CHANGED
@@ -1,42 +1,39 @@
1
1
  {
2
2
  "name": "cssxjs",
3
- "version": "0.1.3",
3
+ "version": "0.2.1",
4
4
  "description": "CSS-in-JS with actual CSS syntax",
5
5
  "type": "module",
6
6
  "main": "index.js",
7
7
  "exports": {
8
- ".": "./index.js"
8
+ ".": "./index.js",
9
+ "./babel": "./babel.cjs",
10
+ "./babel.cjs": "./babel.cjs",
11
+ "./runtime": {
12
+ "react-native": "./runtime/react-native.js",
13
+ "default": "./runtime/web.js"
14
+ },
15
+ "./runtime/teamplay": {
16
+ "react-native": "./runtime/react-native-teamplay.js",
17
+ "default": "./runtime/web-teamplay.js"
18
+ },
19
+ "./runtime/web": "./runtime/web.js",
20
+ "./runtime/react-native": "./runtime/react-native.js",
21
+ "./runtime/web-teamplay": "./runtime/web-teamplay.js",
22
+ "./runtime/react-native-teamplay": "./runtime/react-native-teamplay.js"
9
23
  },
10
24
  "publishConfig": {
11
25
  "access": "public"
12
26
  },
13
27
  "scripts": {
14
- "test": "npm run test-client",
15
- "test-client": "NODE_OPTIONS=\"$NODE_OPTIONS --expose-gc --experimental-vm-modules\" jest"
28
+ "test": "echo 'No tests yet' && exit 0"
16
29
  },
17
30
  "dependencies": {
18
- "@nx-js/observer-util": "^4.1.3"
19
- },
20
- "devDependencies": {
21
- "@jest/globals": "^29.7.0",
22
- "@testing-library/react": "^15.0.7",
23
- "jest": "^29.7.0",
24
- "jest-environment-jsdom": "^29.7.0",
25
- "react": "^18.3.1",
26
- "react-dom": "^18.3.1"
31
+ "@cssxjs/runtime": "^0.2.1",
32
+ "babel-preset-cssxjs": "^0.2.1"
27
33
  },
28
34
  "peerDependencies": {
29
35
  "react": "*"
30
36
  },
31
- "jest": {
32
- "transform": {},
33
- "testEnvironment": "jsdom",
34
- "testRegex": "test_client/.*\\.jsx?$",
35
- "testPathIgnorePatterns": [
36
- "node_modules",
37
- "<rootDir>/test_client/helpers"
38
- ]
39
- },
40
37
  "license": "MIT",
41
- "gitHead": "7dc5e22daf3c09a6f2516231f854e44f9f72fb13"
38
+ "gitHead": "44fe78c4d462f9720bb40aceecfceff0bbda6c2f"
42
39
  }
@@ -0,0 +1 @@
1
+ export { default } from '@cssxjs/runtime/entrypoints/react-native-teamplay'
@@ -0,0 +1 @@
1
+ export { default } from '@cssxjs/runtime/entrypoints/react-native'
@@ -0,0 +1 @@
1
+ export { default } from '@cssxjs/runtime/entrypoints/web-teamplay'
package/runtime/web.js ADDED
@@ -0,0 +1 @@
1
+ export { default } from '@cssxjs/runtime/entrypoints/web'