create-plasmic-app 0.0.119 → 0.0.120
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/cpa-out/react-codegen-js/package.json +10 -10
- package/cpa-out/react-codegen-js/plasmic.json +6 -3
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicButton.jsx +3 -1
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx +3 -1
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.jsx +1 -1
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx +5 -6
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.jsx +2 -0
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicStyleTokensProvider.jsx +15 -0
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Checksvg.jsx +1 -1
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/plasmic.jsx +11 -0
- package/cpa-out/react-codegen-ts/eslint.config.js +2 -2
- package/cpa-out/react-codegen-ts/package.json +13 -12
- package/cpa-out/react-codegen-ts/plasmic.json +6 -3
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicButton.tsx +9 -2
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +8 -2
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.tsx +1 -1
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +9 -7
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.tsx +7 -1
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicStyleTokensProvider.tsx +19 -0
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Checksvg.tsx +1 -1
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/plasmic.tsx +14 -0
- package/dist/react/react.js +1 -1
- package/package.json +2 -2
- package/src/react/react.ts +1 -1
- package/cpa-out/react-codegen-ts/src/vite-env.d.ts +0 -1
|
@@ -10,20 +10,20 @@
|
|
|
10
10
|
"preview": "vite preview"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@plasmicapp/cli": "^0.1.
|
|
14
|
-
"@plasmicapp/react-web": "^0.2.
|
|
13
|
+
"@plasmicapp/cli": "^0.1.348",
|
|
14
|
+
"@plasmicapp/react-web": "^0.2.405",
|
|
15
15
|
"react": "^19.1.1",
|
|
16
16
|
"react-dom": "^19.1.1"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@eslint/js": "^9.
|
|
20
|
-
"@types/react": "^19.1.
|
|
21
|
-
"@types/react-dom": "^19.1.
|
|
22
|
-
"@vitejs/plugin-react": "^
|
|
23
|
-
"eslint": "^9.
|
|
19
|
+
"@eslint/js": "^9.36.0",
|
|
20
|
+
"@types/react": "^19.1.16",
|
|
21
|
+
"@types/react-dom": "^19.1.9",
|
|
22
|
+
"@vitejs/plugin-react": "^5.0.4",
|
|
23
|
+
"eslint": "^9.36.0",
|
|
24
24
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
25
|
-
"eslint-plugin-react-refresh": "^0.4.
|
|
26
|
-
"globals": "^16.
|
|
27
|
-
"vite": "^7.1.
|
|
25
|
+
"eslint-plugin-react-refresh": "^0.4.22",
|
|
26
|
+
"globals": "^16.4.0",
|
|
27
|
+
"vite": "^7.1.7"
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
},
|
|
8
8
|
"style": {
|
|
9
9
|
"scheme": "css-modules",
|
|
10
|
-
"defaultStyleCssFilePath": "plasmic/plasmic__default_style.css"
|
|
10
|
+
"defaultStyleCssFilePath": "plasmic/plasmic__default_style.module.css"
|
|
11
11
|
},
|
|
12
12
|
"images": {
|
|
13
13
|
"scheme": "inlined",
|
|
@@ -100,6 +100,8 @@
|
|
|
100
100
|
"indirect": false,
|
|
101
101
|
"globalContextsFilePath": "",
|
|
102
102
|
"splitsProviderFilePath": "",
|
|
103
|
+
"styleTokensProviderFilePath": "plasmic/create_plasmic_app/PlasmicStyleTokensProvider.jsx",
|
|
104
|
+
"projectModuleFilePath": "plasmic/create_plasmic_app/plasmic.jsx",
|
|
103
105
|
"codeComponents": [
|
|
104
106
|
{
|
|
105
107
|
"id": "P6aGdYWZ2R",
|
|
@@ -128,6 +130,7 @@
|
|
|
128
130
|
]
|
|
129
131
|
},
|
|
130
132
|
"wrapPagesWithGlobalContexts": true,
|
|
131
|
-
"
|
|
132
|
-
"
|
|
133
|
+
"preserveJsImportExtensions": false,
|
|
134
|
+
"cliVersion": "0.1.348",
|
|
135
|
+
"$schema": "https://unpkg.com/@plasmicapp/cli@0.1.348/dist/plasmic.schema.json"
|
|
133
136
|
}
|
package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicButton.jsx
CHANGED
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
} from "@plasmicapp/react-web";
|
|
21
21
|
import { useDataEnv } from "@plasmicapp/react-web/lib/host";
|
|
22
22
|
import * as pp from "@plasmicapp/react-web";
|
|
23
|
+
import { _useStyleTokens } from "./PlasmicStyleTokensProvider"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/styleTokensProvider
|
|
23
24
|
import "@plasmicapp/react-web/lib/plasmic.css";
|
|
24
25
|
import projectcss from "./plasmic.module.css"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectcss
|
|
25
26
|
import sty from "./PlasmicButton.module.css"; // plasmic-import: TQcvW_pSKi3/css
|
|
@@ -122,6 +123,7 @@ function PlasmicButton__RenderFunc(props) {
|
|
|
122
123
|
const triggers = {
|
|
123
124
|
focusVisibleWithin_root: isRootFocusVisibleWithin
|
|
124
125
|
};
|
|
126
|
+
const styleTokensClassNames = _useStyleTokens();
|
|
125
127
|
return (
|
|
126
128
|
<button
|
|
127
129
|
data-plasmic-name={"root"}
|
|
@@ -134,7 +136,7 @@ function PlasmicButton__RenderFunc(props) {
|
|
|
134
136
|
projectcss.root_reset,
|
|
135
137
|
projectcss.plasmic_default_styles,
|
|
136
138
|
projectcss.plasmic_mixins,
|
|
137
|
-
|
|
139
|
+
styleTokensClassNames,
|
|
138
140
|
sty.root,
|
|
139
141
|
{
|
|
140
142
|
[sty.root___focusVisibleWithin]: triggers.focusVisibleWithin_root,
|
package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx
CHANGED
|
@@ -16,6 +16,7 @@ import {
|
|
|
16
16
|
} from "@plasmicapp/react-web";
|
|
17
17
|
import { useDataEnv } from "@plasmicapp/react-web/lib/host";
|
|
18
18
|
import RandomDynamicPageButton from "../../RandomDynamicPageButton"; // plasmic-import: Q23H1_1M_P/component
|
|
19
|
+
import { _useStyleTokens } from "./PlasmicStyleTokensProvider"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/styleTokensProvider
|
|
19
20
|
import "@plasmicapp/react-web/lib/plasmic.css";
|
|
20
21
|
import projectcss from "./plasmic.module.css"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectcss
|
|
21
22
|
import sty from "./PlasmicDynamicPage.module.css"; // plasmic-import: AO44A-w7hh/css
|
|
@@ -47,6 +48,7 @@ function PlasmicDynamicPage__RenderFunc(props) {
|
|
|
47
48
|
const $ctx = useDataEnv?.() || {};
|
|
48
49
|
const refsRef = React.useRef({});
|
|
49
50
|
const $refs = refsRef.current;
|
|
51
|
+
const styleTokensClassNames = _useStyleTokens();
|
|
50
52
|
return (
|
|
51
53
|
<React.Fragment>
|
|
52
54
|
<div className={projectcss.plasmic_page_wrapper}>
|
|
@@ -60,7 +62,7 @@ function PlasmicDynamicPage__RenderFunc(props) {
|
|
|
60
62
|
projectcss.root_reset,
|
|
61
63
|
projectcss.plasmic_default_styles,
|
|
62
64
|
projectcss.plasmic_mixins,
|
|
63
|
-
|
|
65
|
+
styleTokensClassNames,
|
|
64
66
|
sty.root
|
|
65
67
|
)}
|
|
66
68
|
>
|
package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx
CHANGED
|
@@ -13,12 +13,12 @@ import {
|
|
|
13
13
|
classNames,
|
|
14
14
|
createPlasmicElementProxy,
|
|
15
15
|
deriveRenderOpts,
|
|
16
|
-
ensureGlobalVariants,
|
|
17
16
|
hasVariant
|
|
18
17
|
} from "@plasmicapp/react-web";
|
|
19
18
|
import { useDataEnv } from "@plasmicapp/react-web/lib/host";
|
|
20
19
|
import RandomDynamicPageButton from "../../RandomDynamicPageButton"; // plasmic-import: Q23H1_1M_P/component
|
|
21
|
-
import {
|
|
20
|
+
import { _useGlobalVariants } from "./plasmic"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectModule
|
|
21
|
+
import { _useStyleTokens } from "./PlasmicStyleTokensProvider"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/styleTokensProvider
|
|
22
22
|
import "@plasmicapp/react-web/lib/plasmic.css";
|
|
23
23
|
import projectcss from "./plasmic.module.css"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectcss
|
|
24
24
|
import sty from "./PlasmicHomepage.module.css"; // plasmic-import: 6uuAAE1jiCew/css
|
|
@@ -50,9 +50,8 @@ function PlasmicHomepage__RenderFunc(props) {
|
|
|
50
50
|
const $ctx = useDataEnv?.() || {};
|
|
51
51
|
const refsRef = React.useRef({});
|
|
52
52
|
const $refs = refsRef.current;
|
|
53
|
-
const globalVariants =
|
|
54
|
-
|
|
55
|
-
});
|
|
53
|
+
const globalVariants = _useGlobalVariants();
|
|
54
|
+
const styleTokensClassNames = _useStyleTokens();
|
|
56
55
|
return (
|
|
57
56
|
<React.Fragment>
|
|
58
57
|
<div className={projectcss.plasmic_page_wrapper}>
|
|
@@ -66,7 +65,7 @@ function PlasmicHomepage__RenderFunc(props) {
|
|
|
66
65
|
projectcss.root_reset,
|
|
67
66
|
projectcss.plasmic_default_styles,
|
|
68
67
|
projectcss.plasmic_mixins,
|
|
69
|
-
|
|
68
|
+
styleTokensClassNames,
|
|
70
69
|
sty.root
|
|
71
70
|
)}
|
|
72
71
|
>
|
|
@@ -16,6 +16,7 @@ import {
|
|
|
16
16
|
} from "@plasmicapp/react-web";
|
|
17
17
|
import { useDataEnv } from "@plasmicapp/react-web/lib/host";
|
|
18
18
|
import Button from "../../Button"; // plasmic-import: TQcvW_pSKi3/component
|
|
19
|
+
import { _useStyleTokens } from "./PlasmicStyleTokensProvider"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/styleTokensProvider
|
|
19
20
|
import "@plasmicapp/react-web/lib/plasmic.css";
|
|
20
21
|
import sty from "./PlasmicRandomDynamicPageButton.module.css"; // plasmic-import: Q23H1_1M_P/css
|
|
21
22
|
|
|
@@ -46,6 +47,7 @@ function PlasmicRandomDynamicPageButton__RenderFunc(props) {
|
|
|
46
47
|
const $ctx = useDataEnv?.() || {};
|
|
47
48
|
const refsRef = React.useRef({});
|
|
48
49
|
const $refs = refsRef.current;
|
|
50
|
+
const styleTokensClassNames = _useStyleTokens();
|
|
49
51
|
return (
|
|
50
52
|
<Button
|
|
51
53
|
data-plasmic-name={"root"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
// This code is auto-generated by Plasmic; please do not edit!
|
|
5
|
+
// Plasmic Project: 47tFXWjN2C4NyHFGGpaYQ3
|
|
6
|
+
import { createUseStyleTokens } from "@plasmicapp/react-web";
|
|
7
|
+
import { _useGlobalVariants } from "./plasmic"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectModule
|
|
8
|
+
import projectcss from "./plasmic.module.css"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectcss
|
|
9
|
+
|
|
10
|
+
const data = {
|
|
11
|
+
base: `${projectcss.plasmic_tokens}`,
|
|
12
|
+
varianted: []
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export const _useStyleTokens = createUseStyleTokens(data, _useGlobalVariants);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
// This code is auto-generated by Plasmic; please do not edit!
|
|
5
|
+
// Plasmic Project: 47tFXWjN2C4NyHFGGpaYQ3
|
|
6
|
+
import { createUseGlobalVariants } from "@plasmicapp/react-web";
|
|
7
|
+
import { useScreenVariants as useScreenVariantsscBjPxgdxdzbv } from "./PlasmicGlobalVariant__Screen"; // plasmic-import: SCBjPXGDXDZBV/globalVariant
|
|
8
|
+
|
|
9
|
+
export const _useGlobalVariants = createUseGlobalVariants({
|
|
10
|
+
screen: useScreenVariantsscBjPxgdxdzbv
|
|
11
|
+
});
|
|
@@ -3,9 +3,9 @@ import globals from 'globals'
|
|
|
3
3
|
import reactHooks from 'eslint-plugin-react-hooks'
|
|
4
4
|
import reactRefresh from 'eslint-plugin-react-refresh'
|
|
5
5
|
import tseslint from 'typescript-eslint'
|
|
6
|
-
import { globalIgnores } from 'eslint/config'
|
|
6
|
+
import { defineConfig, globalIgnores } from 'eslint/config'
|
|
7
7
|
|
|
8
|
-
export default
|
|
8
|
+
export default defineConfig([
|
|
9
9
|
globalIgnores(['dist']),
|
|
10
10
|
{
|
|
11
11
|
files: ['**/*.{ts,tsx}'],
|
|
@@ -10,22 +10,23 @@
|
|
|
10
10
|
"preview": "vite preview"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@plasmicapp/cli": "^0.1.
|
|
14
|
-
"@plasmicapp/react-web": "^0.2.
|
|
13
|
+
"@plasmicapp/cli": "^0.1.348",
|
|
14
|
+
"@plasmicapp/react-web": "^0.2.405",
|
|
15
15
|
"react": "^19.1.1",
|
|
16
16
|
"react-dom": "^19.1.1"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@eslint/js": "^9.
|
|
20
|
-
"@types/
|
|
21
|
-
"@types/react
|
|
22
|
-
"@
|
|
23
|
-
"
|
|
19
|
+
"@eslint/js": "^9.36.0",
|
|
20
|
+
"@types/node": "^24.6.0",
|
|
21
|
+
"@types/react": "^19.1.16",
|
|
22
|
+
"@types/react-dom": "^19.1.9",
|
|
23
|
+
"@vitejs/plugin-react": "^5.0.4",
|
|
24
|
+
"eslint": "^9.36.0",
|
|
24
25
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
25
|
-
"eslint-plugin-react-refresh": "^0.4.
|
|
26
|
-
"globals": "^16.
|
|
27
|
-
"typescript": "~5.
|
|
28
|
-
"typescript-eslint": "^8.
|
|
29
|
-
"vite": "^7.1.
|
|
26
|
+
"eslint-plugin-react-refresh": "^0.4.22",
|
|
27
|
+
"globals": "^16.4.0",
|
|
28
|
+
"typescript": "~5.9.3",
|
|
29
|
+
"typescript-eslint": "^8.45.0",
|
|
30
|
+
"vite": "^7.1.7"
|
|
30
31
|
}
|
|
31
32
|
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
},
|
|
8
8
|
"style": {
|
|
9
9
|
"scheme": "css-modules",
|
|
10
|
-
"defaultStyleCssFilePath": "plasmic/plasmic__default_style.css"
|
|
10
|
+
"defaultStyleCssFilePath": "plasmic/plasmic__default_style.module.css"
|
|
11
11
|
},
|
|
12
12
|
"images": {
|
|
13
13
|
"scheme": "inlined",
|
|
@@ -100,6 +100,8 @@
|
|
|
100
100
|
"indirect": false,
|
|
101
101
|
"globalContextsFilePath": "",
|
|
102
102
|
"splitsProviderFilePath": "",
|
|
103
|
+
"styleTokensProviderFilePath": "plasmic/create_plasmic_app/PlasmicStyleTokensProvider.tsx",
|
|
104
|
+
"projectModuleFilePath": "plasmic/create_plasmic_app/plasmic.tsx",
|
|
103
105
|
"codeComponents": [
|
|
104
106
|
{
|
|
105
107
|
"id": "P6aGdYWZ2R",
|
|
@@ -128,6 +130,7 @@
|
|
|
128
130
|
]
|
|
129
131
|
},
|
|
130
132
|
"wrapPagesWithGlobalContexts": true,
|
|
131
|
-
"
|
|
132
|
-
"
|
|
133
|
+
"preserveJsImportExtensions": false,
|
|
134
|
+
"cliVersion": "0.1.348",
|
|
135
|
+
"$schema": "https://unpkg.com/@plasmicapp/cli@0.1.348/dist/plasmic.schema.json"
|
|
133
136
|
}
|
package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicButton.tsx
CHANGED
|
@@ -57,6 +57,9 @@ import {
|
|
|
57
57
|
|
|
58
58
|
import * as pp from "@plasmicapp/react-web";
|
|
59
59
|
|
|
60
|
+
import { _useGlobalVariants } from "./plasmic"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectModule
|
|
61
|
+
import { _useStyleTokens } from "./PlasmicStyleTokensProvider"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/styleTokensProvider
|
|
62
|
+
|
|
60
63
|
import "@plasmicapp/react-web/lib/plasmic.css";
|
|
61
64
|
|
|
62
65
|
import projectcss from "./plasmic.module.css"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectcss
|
|
@@ -253,6 +256,8 @@ function PlasmicButton__RenderFunc(props: {
|
|
|
253
256
|
focusVisibleWithin_root: isRootFocusVisibleWithin
|
|
254
257
|
};
|
|
255
258
|
|
|
259
|
+
const styleTokensClassNames = _useStyleTokens();
|
|
260
|
+
|
|
256
261
|
return (
|
|
257
262
|
<button
|
|
258
263
|
data-plasmic-name={"root"}
|
|
@@ -265,7 +270,7 @@ function PlasmicButton__RenderFunc(props: {
|
|
|
265
270
|
projectcss.root_reset,
|
|
266
271
|
projectcss.plasmic_default_styles,
|
|
267
272
|
projectcss.plasmic_mixins,
|
|
268
|
-
|
|
273
|
+
styleTokensClassNames,
|
|
269
274
|
sty.root,
|
|
270
275
|
{
|
|
271
276
|
[sty.root___focusVisibleWithin]: triggers.focusVisibleWithin_root,
|
|
@@ -683,7 +688,9 @@ type NodeComponentProps<T extends NodeNameType> =
|
|
|
683
688
|
variants?: PlasmicButton__VariantsArgs;
|
|
684
689
|
args?: PlasmicButton__ArgsType;
|
|
685
690
|
overrides?: NodeOverridesType<T>;
|
|
686
|
-
} &
|
|
691
|
+
} &
|
|
692
|
+
// Specify variants directly as props
|
|
693
|
+
Omit<PlasmicButton__VariantsArgs, ReservedPropsType> &
|
|
687
694
|
// Specify args directly as props
|
|
688
695
|
Omit<PlasmicButton__ArgsType, ReservedPropsType> &
|
|
689
696
|
// Specify overrides for each element directly as props
|
package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx
CHANGED
|
@@ -56,6 +56,8 @@ import {
|
|
|
56
56
|
} from "@plasmicapp/react-web/lib/host";
|
|
57
57
|
|
|
58
58
|
import RandomDynamicPageButton from "../../RandomDynamicPageButton"; // plasmic-import: Q23H1_1M_P/component
|
|
59
|
+
import { _useGlobalVariants } from "./plasmic"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectModule
|
|
60
|
+
import { _useStyleTokens } from "./PlasmicStyleTokensProvider"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/styleTokensProvider
|
|
59
61
|
|
|
60
62
|
import "@plasmicapp/react-web/lib/plasmic.css";
|
|
61
63
|
|
|
@@ -114,6 +116,8 @@ function PlasmicDynamicPage__RenderFunc(props: {
|
|
|
114
116
|
const refsRef = React.useRef({});
|
|
115
117
|
const $refs = refsRef.current;
|
|
116
118
|
|
|
119
|
+
const styleTokensClassNames = _useStyleTokens();
|
|
120
|
+
|
|
117
121
|
return (
|
|
118
122
|
<React.Fragment>
|
|
119
123
|
<div className={projectcss.plasmic_page_wrapper}>
|
|
@@ -127,7 +131,7 @@ function PlasmicDynamicPage__RenderFunc(props: {
|
|
|
127
131
|
projectcss.root_reset,
|
|
128
132
|
projectcss.plasmic_default_styles,
|
|
129
133
|
projectcss.plasmic_mixins,
|
|
130
|
-
|
|
134
|
+
styleTokensClassNames,
|
|
131
135
|
sty.root
|
|
132
136
|
)}
|
|
133
137
|
>
|
|
@@ -204,7 +208,9 @@ type NodeComponentProps<T extends NodeNameType> =
|
|
|
204
208
|
variants?: PlasmicDynamicPage__VariantsArgs;
|
|
205
209
|
args?: PlasmicDynamicPage__ArgsType;
|
|
206
210
|
overrides?: NodeOverridesType<T>;
|
|
207
|
-
} &
|
|
211
|
+
} &
|
|
212
|
+
// Specify variants directly as props
|
|
213
|
+
Omit<PlasmicDynamicPage__VariantsArgs, ReservedPropsType> &
|
|
208
214
|
// Specify args directly as props
|
|
209
215
|
Omit<PlasmicDynamicPage__ArgsType, ReservedPropsType> &
|
|
210
216
|
// Specify overrides for each element directly as props
|
package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx
CHANGED
|
@@ -57,8 +57,8 @@ import {
|
|
|
57
57
|
|
|
58
58
|
import RandomDynamicPageButton from "../../RandomDynamicPageButton"; // plasmic-import: Q23H1_1M_P/component
|
|
59
59
|
import { Fetcher } from "@plasmicapp/react-web/lib/data-sources";
|
|
60
|
-
|
|
61
|
-
import {
|
|
60
|
+
import { _useGlobalVariants } from "./plasmic"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectModule
|
|
61
|
+
import { _useStyleTokens } from "./PlasmicStyleTokensProvider"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/styleTokensProvider
|
|
62
62
|
|
|
63
63
|
import "@plasmicapp/react-web/lib/plasmic.css";
|
|
64
64
|
|
|
@@ -118,9 +118,9 @@ function PlasmicHomepage__RenderFunc(props: {
|
|
|
118
118
|
const refsRef = React.useRef({});
|
|
119
119
|
const $refs = refsRef.current;
|
|
120
120
|
|
|
121
|
-
const globalVariants =
|
|
122
|
-
|
|
123
|
-
|
|
121
|
+
const globalVariants = _useGlobalVariants();
|
|
122
|
+
|
|
123
|
+
const styleTokensClassNames = _useStyleTokens();
|
|
124
124
|
|
|
125
125
|
return (
|
|
126
126
|
<React.Fragment>
|
|
@@ -135,7 +135,7 @@ function PlasmicHomepage__RenderFunc(props: {
|
|
|
135
135
|
projectcss.root_reset,
|
|
136
136
|
projectcss.plasmic_default_styles,
|
|
137
137
|
projectcss.plasmic_mixins,
|
|
138
|
-
|
|
138
|
+
styleTokensClassNames,
|
|
139
139
|
sty.root
|
|
140
140
|
)}
|
|
141
141
|
>
|
|
@@ -244,7 +244,9 @@ type NodeComponentProps<T extends NodeNameType> =
|
|
|
244
244
|
variants?: PlasmicHomepage__VariantsArgs;
|
|
245
245
|
args?: PlasmicHomepage__ArgsType;
|
|
246
246
|
overrides?: NodeOverridesType<T>;
|
|
247
|
-
} &
|
|
247
|
+
} &
|
|
248
|
+
// Specify variants directly as props
|
|
249
|
+
Omit<PlasmicHomepage__VariantsArgs, ReservedPropsType> &
|
|
248
250
|
// Specify args directly as props
|
|
249
251
|
Omit<PlasmicHomepage__ArgsType, ReservedPropsType> &
|
|
250
252
|
// Specify overrides for each element directly as props
|
|
@@ -56,6 +56,8 @@ import {
|
|
|
56
56
|
} from "@plasmicapp/react-web/lib/host";
|
|
57
57
|
|
|
58
58
|
import Button from "../../Button"; // plasmic-import: TQcvW_pSKi3/component
|
|
59
|
+
import { _useGlobalVariants } from "./plasmic"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectModule
|
|
60
|
+
import { _useStyleTokens } from "./PlasmicStyleTokensProvider"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/styleTokensProvider
|
|
59
61
|
|
|
60
62
|
import "@plasmicapp/react-web/lib/plasmic.css";
|
|
61
63
|
|
|
@@ -116,6 +118,8 @@ function PlasmicRandomDynamicPageButton__RenderFunc(props: {
|
|
|
116
118
|
const refsRef = React.useRef({});
|
|
117
119
|
const $refs = refsRef.current;
|
|
118
120
|
|
|
121
|
+
const styleTokensClassNames = _useStyleTokens();
|
|
122
|
+
|
|
119
123
|
return (
|
|
120
124
|
<Button
|
|
121
125
|
data-plasmic-name={"root"}
|
|
@@ -193,7 +197,9 @@ type NodeComponentProps<T extends NodeNameType> =
|
|
|
193
197
|
variants?: PlasmicRandomDynamicPageButton__VariantsArgs;
|
|
194
198
|
args?: PlasmicRandomDynamicPageButton__ArgsType;
|
|
195
199
|
overrides?: NodeOverridesType<T>;
|
|
196
|
-
} &
|
|
200
|
+
} &
|
|
201
|
+
// Specify variants directly as props
|
|
202
|
+
Omit<PlasmicRandomDynamicPageButton__VariantsArgs, ReservedPropsType> &
|
|
197
203
|
// Specify args directly as props
|
|
198
204
|
Omit<PlasmicRandomDynamicPageButton__ArgsType, ReservedPropsType> &
|
|
199
205
|
// Specify overrides for each element directly as props
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
|
|
5
|
+
// This code is auto-generated by Plasmic; please do not edit!
|
|
6
|
+
// Plasmic Project: 47tFXWjN2C4NyHFGGpaYQ3
|
|
7
|
+
|
|
8
|
+
import { createUseStyleTokens } from "@plasmicapp/react-web";
|
|
9
|
+
|
|
10
|
+
import { _useGlobalVariants } from "./plasmic"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectModule
|
|
11
|
+
|
|
12
|
+
import projectcss from "./plasmic.module.css"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectcss
|
|
13
|
+
|
|
14
|
+
const data = {
|
|
15
|
+
base: `${projectcss.plasmic_tokens}`,
|
|
16
|
+
varianted: []
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export const _useStyleTokens = createUseStyleTokens(data, _useGlobalVariants);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
|
|
5
|
+
// This code is auto-generated by Plasmic; please do not edit!
|
|
6
|
+
// Plasmic Project: 47tFXWjN2C4NyHFGGpaYQ3
|
|
7
|
+
|
|
8
|
+
import { createUseGlobalVariants } from "@plasmicapp/react-web";
|
|
9
|
+
|
|
10
|
+
import { useScreenVariants as useScreenVariantsscBjPxgdxdzbv } from "./PlasmicGlobalVariant__Screen"; // plasmic-import: SCBjPXGDXDZBV/globalVariant
|
|
11
|
+
|
|
12
|
+
export const _useGlobalVariants = createUseGlobalVariants({
|
|
13
|
+
screen: useScreenVariantsscBjPxgdxdzbv
|
|
14
|
+
});
|
package/dist/react/react.js
CHANGED
|
@@ -41,7 +41,7 @@ exports.reactStrategy = {
|
|
|
41
41
|
const projectName = path_1.default.basename(fullProjectPath);
|
|
42
42
|
const parentDir = path_1.default.dirname(fullProjectPath);
|
|
43
43
|
process.chdir(parentDir);
|
|
44
|
-
const createCommand = `
|
|
44
|
+
const createCommand = `npx create-vite@latest ${projectName} --no-interactive`;
|
|
45
45
|
if (!template) {
|
|
46
46
|
template = jsOrTs === "ts" ? "react-ts" : "react";
|
|
47
47
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-plasmic-app",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.120",
|
|
4
4
|
"description": "Create Plasmic-powered React apps",
|
|
5
5
|
"main": "./dist/lib.js",
|
|
6
6
|
"types": "./dist/lib.d.ts",
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"validate-npm-package-name": "^3.0.0",
|
|
48
48
|
"yargs": "^16.2.0"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "585309a8dcec74a0800a2564024ed7768cc5f50a"
|
|
51
51
|
}
|
package/src/react/react.ts
CHANGED
|
@@ -37,7 +37,7 @@ export const reactStrategy: CPAStrategy = {
|
|
|
37
37
|
const parentDir = path.dirname(fullProjectPath);
|
|
38
38
|
process.chdir(parentDir);
|
|
39
39
|
|
|
40
|
-
const createCommand = `
|
|
40
|
+
const createCommand = `npx create-vite@latest ${projectName} --no-interactive`;
|
|
41
41
|
|
|
42
42
|
if (!template) {
|
|
43
43
|
template = jsOrTs === "ts" ? "react-ts" : "react";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/// <reference types="vite/client" />
|