startupjs 0.63.0 → 0.64.0-alpha.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/StartupjsProvider.d.ts +13 -0
- package/StartupjsProvider.js +12 -2
- package/package.json +15 -13
- package/themes/shadcn.d.ts +1 -0
- package/themes/shadcn.js +1 -0
- package/themes/tailwind.d.ts +1 -0
- package/themes/tailwind.js +1 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ReactNode } from 'react'
|
|
2
|
+
import type { CssxProviderProps, CssxProviderStyleInput } from 'cssxjs'
|
|
3
|
+
|
|
4
|
+
export interface StartupjsProviderProps {
|
|
5
|
+
children?: ReactNode
|
|
6
|
+
style?: CssxProviderStyleInput
|
|
7
|
+
theme?: CssxProviderProps['theme']
|
|
8
|
+
plugins?: any
|
|
9
|
+
onlyPlugins?: any
|
|
10
|
+
[key: string]: any
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export default function StartupjsProvider (props: StartupjsProviderProps): ReactNode
|
package/StartupjsProvider.js
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import { createElement as el } from 'react'
|
|
2
2
|
import { ROOT_MODULE as MODULE } from '@startupjs/registry'
|
|
3
|
+
import { CssxProvider } from 'cssxjs'
|
|
3
4
|
|
|
4
|
-
export default MODULE.dynamicPlugins(function StartupjsProvider ({
|
|
5
|
-
|
|
5
|
+
export default MODULE.dynamicPlugins(function StartupjsProvider ({
|
|
6
|
+
children,
|
|
7
|
+
style,
|
|
8
|
+
theme,
|
|
9
|
+
...props
|
|
10
|
+
}) {
|
|
11
|
+
return el(
|
|
12
|
+
CssxProvider,
|
|
13
|
+
{ style, theme },
|
|
14
|
+
el(MODULE.RenderNestedHook, { name: 'renderRoot', style, theme, ...props }, children)
|
|
15
|
+
)
|
|
6
16
|
})
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "startupjs",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.64.0-alpha.0",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">= 14"
|
|
7
7
|
},
|
|
@@ -23,6 +23,8 @@
|
|
|
23
23
|
"./useRouter": "./useRouter.js",
|
|
24
24
|
"./metro-config": "./metro-config.cjs",
|
|
25
25
|
"./metro-babel-transformer": "./metro-babel-transformer.cjs",
|
|
26
|
+
"./themes/tailwind": "./themes/tailwind.js",
|
|
27
|
+
"./themes/shadcn": "./themes/shadcn.js",
|
|
26
28
|
"./babel": "./babel.cjs",
|
|
27
29
|
"./babel/plugin-react-pug": "./babel/plugin-react-pug.cjs",
|
|
28
30
|
"./startupjs.config": "./startupjs.config.cjs",
|
|
@@ -31,17 +33,17 @@
|
|
|
31
33
|
"bin": "./cli.js",
|
|
32
34
|
"license": "MIT",
|
|
33
35
|
"dependencies": {
|
|
34
|
-
"@startupjs/auth": "^0.
|
|
35
|
-
"@startupjs/bundler": "^0.
|
|
36
|
-
"@startupjs/cli": "^0.
|
|
37
|
-
"@startupjs/hooks": "^0.
|
|
38
|
-
"@startupjs/isomorphic-helpers": "^0.
|
|
39
|
-
"@startupjs/registry": "^0.
|
|
40
|
-
"@startupjs/server": "^0.
|
|
41
|
-
"@startupjs/skills": "^0.
|
|
42
|
-
"@startupjs/utils": "^0.
|
|
43
|
-
"babel-preset-startupjs": "^0.
|
|
44
|
-
"cssxjs": "^0.
|
|
36
|
+
"@startupjs/auth": "^0.64.0-alpha.0",
|
|
37
|
+
"@startupjs/bundler": "^0.64.0-alpha.0",
|
|
38
|
+
"@startupjs/cli": "^0.64.0-alpha.0",
|
|
39
|
+
"@startupjs/hooks": "^0.64.0-alpha.0",
|
|
40
|
+
"@startupjs/isomorphic-helpers": "^0.64.0-alpha.0",
|
|
41
|
+
"@startupjs/registry": "^0.64.0-alpha.0",
|
|
42
|
+
"@startupjs/server": "^0.64.0-alpha.0",
|
|
43
|
+
"@startupjs/skills": "^0.64.0-alpha.0",
|
|
44
|
+
"@startupjs/utils": "^0.64.0-alpha.0",
|
|
45
|
+
"babel-preset-startupjs": "^0.64.0-alpha.0",
|
|
46
|
+
"cssxjs": "^0.4.0-alpha.0",
|
|
45
47
|
"lodash": "^4.17.20",
|
|
46
48
|
"teamplay": "^0.5.0"
|
|
47
49
|
},
|
|
@@ -61,5 +63,5 @@
|
|
|
61
63
|
"scripts": {
|
|
62
64
|
"test": "node --experimental-specifier-resolution=node --test"
|
|
63
65
|
},
|
|
64
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "2c3daa0c0fbbeb65ffe4f4bbe63e4fdea0f6f0f5"
|
|
65
67
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from 'cssxjs/themes/shadcn'
|
package/themes/shadcn.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from 'cssxjs/themes/shadcn'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from 'cssxjs/themes/tailwind'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from 'cssxjs/themes/tailwind'
|