Skip to content

Commit ad73b80

Browse files
committed
feat(tasty): zero runtime usage
1 parent f7a3480 commit ad73b80

32 files changed

+3033
-993
lines changed

.changeset/empty-taxis-share.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@cube-dev/ui-kit": minor
3+
---
4+
5+
Add tastyStatic for zero runtime integration as well as babel plugin for it.

.changeset/ten-items-yell.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@cube-dev/ui-kit": minor
3+
---
4+
5+
Remove tastyGlobal syntax. Add `useStyles` and `useGlobalStyles` hooks for handy style generation.

package.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,22 @@
1515
".": {
1616
"import": "./dist/es/index.js",
1717
"types": "./dist/types/index.d.ts"
18+
},
19+
"./tasty/static": {
20+
"import": "./dist/es/tasty/static/index.js",
21+
"types": "./dist/types/tasty/static/index.d.ts"
22+
},
23+
"./tasty/zero": {
24+
"import": "./dist/es/tasty/zero/index.js",
25+
"types": "./dist/types/tasty/zero/index.d.ts"
26+
},
27+
"./tasty/zero/babel": {
28+
"import": "./dist/es/tasty/zero/babel.js",
29+
"types": "./dist/types/tasty/zero/babel.d.ts"
30+
},
31+
"./tasty/zero/next": {
32+
"import": "./dist/es/tasty/zero/next.js",
33+
"types": "./dist/types/tasty/zero/next.d.ts"
1834
}
1935
},
2036
"files": [
@@ -64,6 +80,8 @@
6480
"styled-components": ">= 5.3.0"
6581
},
6682
"dependencies": {
83+
"@babel/helper-plugin-utils": "^7.24.0",
84+
"@babel/types": "^7.24.0",
6785
"@ianvs/prettier-plugin-sort-imports": "^4.4.1",
6886
"@internationalized/date": "^3.7.0",
6987
"@react-aria/focus": "^3.21.0",
@@ -104,6 +122,9 @@
104122
"valid-url": "^1.0.9"
105123
},
106124
"devDependencies": {
125+
"@babel/core": "^7.24.0",
126+
"@types/babel__core": "^7.20.5",
127+
"@types/babel__helper-plugin-utils": "^7.10.3",
107128
"@actions/core": "^1.11.1",
108129
"@actions/exec": "^1.1.1",
109130
"@actions/github": "^6.0.0",

0 commit comments

Comments
 (0)