@vsreact/core 0.0.1 → 0.0.3
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/dist/animation.d.ts +38 -0
- package/dist/animation.js +90 -0
- package/dist/bridge.d.ts +7 -0
- package/dist/bridge.js +49 -0
- package/dist/controls.d.ts +126 -0
- package/dist/controls.js +130 -0
- package/dist/cx.d.ts +6 -0
- package/dist/cx.js +26 -0
- package/dist/hooks.d.ts +8 -0
- package/dist/hooks.js +15 -0
- package/dist/hostConfig.d.ts +44 -0
- package/dist/hostConfig.js +118 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.js +13 -0
- package/dist/native.d.ts +6 -0
- package/dist/native.js +16 -0
- package/dist/parameters.d.ts +12 -0
- package/dist/parameters.js +33 -0
- package/dist/primitives.d.ts +70 -0
- package/dist/primitives.js +20 -0
- package/dist/render.d.ts +5 -0
- package/dist/render.js +22 -0
- package/dist/runtime.d.ts +10 -0
- package/dist/runtime.js +68 -0
- package/dist/theme.d.ts +5 -0
- package/dist/theme.js +156 -0
- package/dist/tw.d.ts +13 -0
- package/dist/tw.js +264 -0
- package/package.json +31 -4
- package/src/animation.test.tsx +56 -1
- package/src/animation.ts +71 -0
- package/src/controls.test.tsx +131 -0
- package/src/controls.tsx +352 -19
- package/src/cx.ts +33 -0
- package/src/hooks.ts +18 -0
- package/src/index.ts +50 -24
- package/src/runtime.ts +4 -1
- package/src/theme.ts +76 -1
- package/src/tw.test.ts +26 -0
- package/src/tw.ts +4 -0
package/src/tw.ts
CHANGED
|
@@ -83,6 +83,7 @@ const staticClasses: Record<string, Style> = {
|
|
|
83
83
|
|
|
84
84
|
const textSizes: Record<string, number> = {
|
|
85
85
|
xs: 12, sm: 14, base: 16, lg: 18, xl: 20, "2xl": 24, "3xl": 30, "4xl": 36,
|
|
86
|
+
"5xl": 48, "6xl": 60,
|
|
86
87
|
};
|
|
87
88
|
|
|
88
89
|
const radiusSizes: Record<string, number> = {
|
|
@@ -105,6 +106,7 @@ const radiusCorners: Record<string, string[]> = {
|
|
|
105
106
|
const lengthKeys: Record<string, string[]> = {
|
|
106
107
|
w: ["width"],
|
|
107
108
|
h: ["height"],
|
|
109
|
+
size: ["width", "height"],
|
|
108
110
|
"min-w": ["minWidth"],
|
|
109
111
|
"min-h": ["minHeight"],
|
|
110
112
|
"max-w": ["maxWidth"],
|
|
@@ -131,6 +133,8 @@ const lengthKeys: Record<string, string[]> = {
|
|
|
131
133
|
bottom: ["bottom"],
|
|
132
134
|
left: ["left"],
|
|
133
135
|
inset: ["left", "right", "top", "bottom"],
|
|
136
|
+
"inset-x": ["left", "right"],
|
|
137
|
+
"inset-y": ["top", "bottom"],
|
|
134
138
|
basis: ["flexBasis"],
|
|
135
139
|
};
|
|
136
140
|
|