create-plasmic-app 0.0.99 → 0.0.101
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/gatsby-codegen-js/gatsby-browser.jsx +2 -1
- package/cpa-out/gatsby-codegen-js/gatsby-ssr.jsx +2 -1
- package/cpa-out/gatsby-codegen-js/package.json +4 -4
- package/cpa-out/gatsby-codegen-js/plasmic.json +14 -8
- package/cpa-out/gatsby-codegen-js/src/components/Button.jsx +1 -3
- package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicButton.jsx +53 -100
- package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx +36 -30
- package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.jsx +3 -15
- package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx +25 -25
- package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.jsx +45 -59
- package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Checksvg.jsx +3 -3
- package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Icon.jsx +1 -1
- package/cpa-out/gatsby-codegen-js/src/pages/dynamic/[slug].jsx +5 -4
- package/cpa-out/gatsby-codegen-js/src/pages/index.jsx +5 -4
- package/cpa-out/gatsby-codegen-ts/gatsby-browser.tsx +2 -1
- package/cpa-out/gatsby-codegen-ts/gatsby-ssr.tsx +2 -1
- package/cpa-out/gatsby-codegen-ts/package.json +9 -9
- package/cpa-out/gatsby-codegen-ts/plasmic.json +14 -8
- package/cpa-out/gatsby-codegen-ts/src/components/Button.tsx +4 -5
- package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicButton.tsx +99 -75
- package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +80 -49
- package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.tsx +3 -15
- package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +69 -43
- package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.tsx +90 -77
- package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Checksvg.tsx +4 -4
- package/cpa-out/gatsby-codegen-ts/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Icon.tsx +1 -1
- package/cpa-out/gatsby-codegen-ts/src/pages/dynamic/[slug].tsx +6 -5
- package/cpa-out/gatsby-codegen-ts/src/pages/index.tsx +6 -5
- package/cpa-out/gatsby-loader-js/package.json +3 -3
- package/cpa-out/gatsby-loader-js/src/templates/defaultPlasmicPage.jsx +1 -0
- package/cpa-out/gatsby-loader-ts/package.json +8 -8
- package/cpa-out/gatsby-loader-ts/src/templates/defaultPlasmicPage.tsx +1 -0
- package/cpa-out/nextjs-app-loader-js/package.json +8 -6
- package/cpa-out/nextjs-app-loader-js/plasmic-init.js +10 -1
- package/cpa-out/nextjs-app-loader-ts/package.json +12 -10
- package/cpa-out/nextjs-app-loader-ts/plasmic-init.ts +10 -1
- package/cpa-out/nextjs-app-loader-ts/tsconfig.json +2 -9
- package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicButton.jsx +6 -5
- package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx +1 -1
- package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.jsx +1 -1
- package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicHomepage.jsx +1 -1
- package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.jsx +1 -1
- package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Checksvg.jsx +1 -1
- package/cpa-out/nextjs-pages-codegen-js/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Icon.jsx +1 -1
- package/cpa-out/nextjs-pages-codegen-js/package.json +4 -4
- package/cpa-out/nextjs-pages-codegen-js/pages/_app.jsx +2 -1
- package/cpa-out/nextjs-pages-codegen-js/plasmic.json +2 -2
- package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicButton.tsx +17 -14
- package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +7 -7
- package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.tsx +1 -1
- package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +7 -7
- package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.tsx +7 -7
- package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Checksvg.tsx +1 -1
- package/cpa-out/nextjs-pages-codegen-ts/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Icon.tsx +1 -1
- package/cpa-out/nextjs-pages-codegen-ts/package.json +4 -4
- package/cpa-out/nextjs-pages-codegen-ts/pages/_app.tsx +2 -1
- package/cpa-out/nextjs-pages-codegen-ts/pages/dynamic/[slug].tsx +1 -0
- package/cpa-out/nextjs-pages-codegen-ts/pages/index.tsx +1 -0
- package/cpa-out/nextjs-pages-codegen-ts/plasmic.json +2 -2
- package/cpa-out/nextjs-pages-loader-js/package.json +3 -3
- package/cpa-out/nextjs-pages-loader-ts/package.json +3 -3
- package/cpa-out/react-codegen-js/eslint.config.js +1 -6
- package/cpa-out/react-codegen-js/package.json +10 -11
- package/cpa-out/react-codegen-js/plasmic.json +2 -2
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicButton.jsx +6 -5
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.jsx +1 -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 +1 -1
- package/cpa-out/react-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.jsx +1 -1
- 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/icons/PlasmicIcon__Icon.jsx +1 -1
- package/cpa-out/react-codegen-ts/package.json +11 -11
- package/cpa-out/react-codegen-ts/plasmic.json +2 -2
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicButton.tsx +17 -14
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +7 -7
- 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 +7 -7
- package/cpa-out/react-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.tsx +7 -7
- 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/icons/PlasmicIcon__Icon.tsx +1 -1
- package/dist/index.js +6 -1
- package/dist/lib.js +3 -1
- package/dist/tanstack/tanstack.d.ts +2 -0
- package/dist/tanstack/tanstack.js +79 -0
- package/dist/tanstack/templates/file-router/config.d.ts +1 -0
- package/dist/tanstack/templates/file-router/config.js +33 -0
- package/dist/tanstack/templates/file-router/plasmic-host.d.ts +1 -0
- package/dist/tanstack/templates/file-router/plasmic-host.js +27 -0
- package/dist/tanstack/templates/file-router/root.d.ts +2 -0
- package/dist/tanstack/templates/file-router/root.js +44 -0
- package/dist/utils/types.d.ts +1 -1
- package/dist/utils/types.js +7 -1
- package/package.json +2 -2
- package/run-cpa.ts +14 -6
- package/src/index.ts +6 -1
- package/src/lib.ts +3 -1
- package/src/tanstack/tanstack.ts +82 -0
- package/src/tanstack/templates/file-router/config.ts +29 -0
- package/src/tanstack/templates/file-router/plasmic-host.ts +23 -0
- package/src/tanstack/templates/file-router/root.ts +42 -0
- package/src/utils/types.ts +8 -2
- package/cpa-out/nextjs-app-loader-js/app/[[...catchall]]/page.jsx +0 -56
- package/cpa-out/nextjs-app-loader-js/app/api/hello/route.js +0 -3
- package/cpa-out/nextjs-app-loader-js/app/layout.js +0 -14
- package/cpa-out/nextjs-app-loader-js/app/plasmic-host/page.jsx +0 -6
- package/cpa-out/nextjs-app-loader-js/plasmic-init-client.jsx +0 -65
- package/cpa-out/nextjs-app-loader-ts/app/[[...catchall]]/page.tsx +0 -59
- package/cpa-out/nextjs-app-loader-ts/app/api/hello/route.ts +0 -3
- package/cpa-out/nextjs-app-loader-ts/app/layout.tsx +0 -18
- package/cpa-out/nextjs-app-loader-ts/app/plasmic-host/page.tsx +0 -6
- package/cpa-out/nextjs-app-loader-ts/plasmic-init-client.tsx +0 -65
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { PlasmicRootProvider } from "@plasmicapp/react-web";
|
|
3
|
+
import { Link } from "gatsby";
|
|
3
4
|
import Helmet from "react-helmet";
|
|
4
5
|
|
|
5
6
|
export const wrapRootElement = ({ element }) => {
|
|
6
7
|
return (
|
|
7
|
-
<PlasmicRootProvider Head={Helmet}>
|
|
8
|
+
<PlasmicRootProvider Head={Helmet} Link={Link}>
|
|
8
9
|
{element}
|
|
9
10
|
</PlasmicRootProvider>
|
|
10
11
|
);
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { PlasmicRootProvider } from "@plasmicapp/react-web";
|
|
3
|
+
import { Link } from "gatsby";
|
|
3
4
|
import Helmet from "react-helmet";
|
|
4
5
|
|
|
5
6
|
export const wrapRootElement = ({ element }) => {
|
|
6
7
|
return (
|
|
7
|
-
<PlasmicRootProvider Head={Helmet}>
|
|
8
|
+
<PlasmicRootProvider Head={Helmet} Link={Link}>
|
|
8
9
|
{element}
|
|
9
10
|
</PlasmicRootProvider>
|
|
10
11
|
);
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
"clean": "gatsby clean"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@plasmicapp/cli": "^0.1.
|
|
18
|
-
"@plasmicapp/react-web": "^0.2.
|
|
19
|
-
"gatsby": "^5.
|
|
20
|
-
"gatsby-plugin-react-helmet": "^6.
|
|
17
|
+
"@plasmicapp/cli": "^0.1.337",
|
|
18
|
+
"@plasmicapp/react-web": "^0.2.381",
|
|
19
|
+
"gatsby": "^5.14.1",
|
|
20
|
+
"gatsby-plugin-react-helmet": "^6.14.0",
|
|
21
21
|
"react": "^18.2.0",
|
|
22
22
|
"react-dom": "^18.2.0",
|
|
23
23
|
"react-helmet": "^6.1.0"
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"projectApiToken": "7BRFratDxPLMGZHnd2grV5QP6mlHcZ1AK3BJSIeh7xzUlHgWh25XpgXvUaKAqHXFMXQQuzpADqboibF6nqNWQ",
|
|
27
27
|
"projectName": "create-plasmic-app",
|
|
28
28
|
"version": "latest",
|
|
29
|
-
"cssFilePath": "plasmic/create_plasmic_app/
|
|
29
|
+
"cssFilePath": "plasmic/create_plasmic_app/plasmic.module.css",
|
|
30
30
|
"components": [
|
|
31
31
|
{
|
|
32
32
|
"id": "6uuAAE1jiCew",
|
|
@@ -39,7 +39,8 @@
|
|
|
39
39
|
},
|
|
40
40
|
"cssFilePath": "plasmic/create_plasmic_app/PlasmicHomepage.module.css",
|
|
41
41
|
"scheme": "blackbox",
|
|
42
|
-
"componentType": "page"
|
|
42
|
+
"componentType": "page",
|
|
43
|
+
"path": "/"
|
|
43
44
|
},
|
|
44
45
|
{
|
|
45
46
|
"id": "AO44A-w7hh",
|
|
@@ -52,7 +53,8 @@
|
|
|
52
53
|
},
|
|
53
54
|
"cssFilePath": "plasmic/create_plasmic_app/PlasmicDynamicPage.module.css",
|
|
54
55
|
"scheme": "blackbox",
|
|
55
|
-
"componentType": "page"
|
|
56
|
+
"componentType": "page",
|
|
57
|
+
"path": "/dynamic/[slug]"
|
|
56
58
|
},
|
|
57
59
|
{
|
|
58
60
|
"id": "TQcvW_pSKi3",
|
|
@@ -85,8 +87,8 @@
|
|
|
85
87
|
"icons": [
|
|
86
88
|
{
|
|
87
89
|
"id": "gj-_D7n31Ho",
|
|
88
|
-
"name": "
|
|
89
|
-
"moduleFilePath": "plasmic/create_plasmic_app/icons/
|
|
90
|
+
"name": "CheckSvgIcon",
|
|
91
|
+
"moduleFilePath": "plasmic/create_plasmic_app/icons/PlasmicIcon__CheckSvg.jsx"
|
|
90
92
|
},
|
|
91
93
|
{
|
|
92
94
|
"id": "6PNxx3YMyDQ",
|
|
@@ -97,18 +99,22 @@
|
|
|
97
99
|
"images": [],
|
|
98
100
|
"indirect": false,
|
|
99
101
|
"globalContextsFilePath": "",
|
|
102
|
+
"splitsProviderFilePath": "",
|
|
100
103
|
"codeComponents": [
|
|
101
104
|
{
|
|
102
105
|
"id": "P6aGdYWZ2R",
|
|
103
106
|
"name": "PlasmicHead",
|
|
107
|
+
"displayName": "hostless-plasmic-head",
|
|
104
108
|
"componentImportPath": "@plasmicapp/react-web"
|
|
105
109
|
},
|
|
106
110
|
{
|
|
107
111
|
"id": "8G2A-uTjGa",
|
|
108
112
|
"name": "Fetcher",
|
|
113
|
+
"displayName": "plasmic-data-source-fetcher",
|
|
109
114
|
"componentImportPath": "@plasmicapp/react-web/lib/data-sources"
|
|
110
115
|
}
|
|
111
|
-
]
|
|
116
|
+
],
|
|
117
|
+
"customFunctions": []
|
|
112
118
|
}
|
|
113
119
|
],
|
|
114
120
|
"globalVariants": {
|
|
@@ -125,6 +131,6 @@
|
|
|
125
131
|
"gatsbyConfig": {
|
|
126
132
|
"pagesDir": "../pages"
|
|
127
133
|
},
|
|
128
|
-
"cliVersion": "0.1.
|
|
129
|
-
"$schema": "https://unpkg.com/@plasmicapp/cli@0.1.
|
|
134
|
+
"cliVersion": "0.1.337",
|
|
135
|
+
"$schema": "https://unpkg.com/@plasmicapp/cli@0.1.337/dist/plasmic.schema.json"
|
|
130
136
|
}
|
package/cpa-out/gatsby-codegen-js/src/components/plasmic/create_plasmic_app/PlasmicButton.jsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
1
|
/* eslint-disable */
|
|
3
2
|
/* tslint:disable */
|
|
3
|
+
// @ts-nocheck
|
|
4
4
|
/* prettier-ignore-start */
|
|
5
5
|
/** @jsxRuntime classic */
|
|
6
6
|
/** @jsx createPlasmicElementProxy */
|
|
@@ -10,22 +10,27 @@
|
|
|
10
10
|
// Component: TQcvW_pSKi3
|
|
11
11
|
import * as React from "react";
|
|
12
12
|
import { Link } from "gatsby";
|
|
13
|
-
import * as p from "@plasmicapp/react-web";
|
|
14
|
-
import * as ph from "@plasmicapp/react-web/lib/host";
|
|
15
|
-
import * as pp from "@plasmicapp/react-web";
|
|
16
13
|
import {
|
|
17
|
-
|
|
14
|
+
PlasmicLink as PlasmicLink__,
|
|
15
|
+
Stack as Stack__,
|
|
18
16
|
classNames,
|
|
19
17
|
createPlasmicElementProxy,
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
deriveRenderOpts,
|
|
19
|
+
hasVariant,
|
|
20
|
+
renderPlasmicSlot,
|
|
21
|
+
useDollarState,
|
|
22
|
+
useTrigger
|
|
22
23
|
} from "@plasmicapp/react-web";
|
|
24
|
+
import { useDataEnv } from "@plasmicapp/react-web/lib/host";
|
|
25
|
+
import * as pp from "@plasmicapp/react-web";
|
|
23
26
|
import "@plasmicapp/react-web/lib/plasmic.css";
|
|
24
|
-
import * as projectcss from "./
|
|
27
|
+
import * as projectcss from "./plasmic.module.css"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectcss
|
|
25
28
|
import * as sty from "./PlasmicButton.module.css"; // plasmic-import: TQcvW_pSKi3/css
|
|
26
|
-
import
|
|
29
|
+
import CheckSvgIcon from "./icons/PlasmicIcon__CheckSvg"; // plasmic-import: gj-_D7n31Ho/icon
|
|
27
30
|
import IconIcon from "./icons/PlasmicIcon__Icon"; // plasmic-import: 6PNxx3YMyDQ/icon
|
|
28
31
|
|
|
32
|
+
createPlasmicElementProxy;
|
|
33
|
+
|
|
29
34
|
export const PlasmicButton__VariantProps = new Array(
|
|
30
35
|
"showStartIcon",
|
|
31
36
|
"showEndIcon",
|
|
@@ -36,89 +41,83 @@ export const PlasmicButton__VariantProps = new Array(
|
|
|
36
41
|
);
|
|
37
42
|
|
|
38
43
|
export const PlasmicButton__ArgProps = new Array(
|
|
39
|
-
"
|
|
44
|
+
"link",
|
|
45
|
+
"submitsForm",
|
|
46
|
+
"target",
|
|
40
47
|
"startIcon",
|
|
41
|
-
"
|
|
42
|
-
"
|
|
48
|
+
"children",
|
|
49
|
+
"endIcon"
|
|
43
50
|
);
|
|
44
51
|
|
|
45
|
-
const
|
|
46
|
-
globalThis.__PlasmicWrapUserFunction ?? ((loc, fn) => fn());
|
|
47
|
-
|
|
48
|
-
const __wrapUserPromise =
|
|
49
|
-
globalThis.__PlasmicWrapUserPromise ??
|
|
50
|
-
(async (loc, promise) => {
|
|
51
|
-
return await promise;
|
|
52
|
-
});
|
|
52
|
+
const $$ = {};
|
|
53
53
|
|
|
54
54
|
function PlasmicButton__RenderFunc(props) {
|
|
55
55
|
const { variants, overrides, forNode } = props;
|
|
56
|
-
const
|
|
57
|
-
|
|
56
|
+
const args = React.useMemo(
|
|
57
|
+
() =>
|
|
58
|
+
Object.assign(
|
|
59
|
+
{},
|
|
60
|
+
Object.fromEntries(
|
|
61
|
+
Object.entries(props.args).filter(([_, v]) => v !== undefined)
|
|
62
|
+
)
|
|
63
|
+
),
|
|
64
|
+
[props.args]
|
|
65
|
+
);
|
|
58
66
|
const $props = {
|
|
59
67
|
...args,
|
|
60
68
|
...variants
|
|
61
69
|
};
|
|
70
|
+
const $ctx = useDataEnv?.() || {};
|
|
62
71
|
const refsRef = React.useRef({});
|
|
63
72
|
const $refs = refsRef.current;
|
|
64
|
-
const currentUser = p.useCurrentUser?.() || {};
|
|
65
|
-
const [$queries, setDollarQueries] = React.useState({});
|
|
66
73
|
const stateSpecs = React.useMemo(
|
|
67
74
|
() => [
|
|
68
75
|
{
|
|
69
76
|
path: "showStartIcon",
|
|
70
77
|
type: "private",
|
|
71
78
|
variableType: "variant",
|
|
72
|
-
initFunc:
|
|
73
|
-
? ({ $props, $state, $queries, $ctx }) => $props.showStartIcon
|
|
74
|
-
: undefined
|
|
79
|
+
initFunc: ({ $props, $state, $queries, $ctx }) => $props.showStartIcon
|
|
75
80
|
},
|
|
76
81
|
{
|
|
77
82
|
path: "showEndIcon",
|
|
78
83
|
type: "private",
|
|
79
84
|
variableType: "variant",
|
|
80
|
-
initFunc:
|
|
81
|
-
? ({ $props, $state, $queries, $ctx }) => $props.showEndIcon
|
|
82
|
-
: undefined
|
|
85
|
+
initFunc: ({ $props, $state, $queries, $ctx }) => $props.showEndIcon
|
|
83
86
|
},
|
|
84
87
|
{
|
|
85
88
|
path: "isDisabled",
|
|
86
89
|
type: "private",
|
|
87
90
|
variableType: "variant",
|
|
88
|
-
initFunc:
|
|
89
|
-
? ({ $props, $state, $queries, $ctx }) => $props.isDisabled
|
|
90
|
-
: undefined
|
|
91
|
+
initFunc: ({ $props, $state, $queries, $ctx }) => $props.isDisabled
|
|
91
92
|
},
|
|
92
93
|
{
|
|
93
94
|
path: "shape",
|
|
94
95
|
type: "private",
|
|
95
96
|
variableType: "variant",
|
|
96
|
-
initFunc:
|
|
97
|
-
? ({ $props, $state, $queries, $ctx }) => $props.shape
|
|
98
|
-
: undefined
|
|
97
|
+
initFunc: ({ $props, $state, $queries, $ctx }) => $props.shape
|
|
99
98
|
},
|
|
100
99
|
{
|
|
101
100
|
path: "size",
|
|
102
101
|
type: "private",
|
|
103
102
|
variableType: "variant",
|
|
104
|
-
initFunc:
|
|
105
|
-
? ({ $props, $state, $queries, $ctx }) => $props.size
|
|
106
|
-
: undefined
|
|
103
|
+
initFunc: ({ $props, $state, $queries, $ctx }) => $props.size
|
|
107
104
|
},
|
|
108
105
|
{
|
|
109
106
|
path: "color",
|
|
110
107
|
type: "private",
|
|
111
108
|
variableType: "variant",
|
|
112
|
-
initFunc:
|
|
113
|
-
? ({ $props, $state, $queries, $ctx }) => $props.color
|
|
114
|
-
: undefined
|
|
109
|
+
initFunc: ({ $props, $state, $queries, $ctx }) => $props.color
|
|
115
110
|
}
|
|
116
111
|
],
|
|
117
112
|
|
|
118
|
-
[$props, $ctx]
|
|
113
|
+
[$props, $ctx, $refs]
|
|
119
114
|
);
|
|
120
|
-
|
|
121
|
-
|
|
115
|
+
const $state = useDollarState(stateSpecs, {
|
|
116
|
+
$props,
|
|
117
|
+
$ctx,
|
|
118
|
+
$queries: {},
|
|
119
|
+
$refs
|
|
120
|
+
});
|
|
122
121
|
const [isRootFocusVisibleWithin, triggerRootFocusVisibleWithinProps] =
|
|
123
122
|
useTrigger("useFocusVisibleWithin", {
|
|
124
123
|
isTextInput: false
|
|
@@ -127,7 +126,7 @@ function PlasmicButton__RenderFunc(props) {
|
|
|
127
126
|
focusVisibleWithin_root: isRootFocusVisibleWithin
|
|
128
127
|
};
|
|
129
128
|
return (
|
|
130
|
-
<
|
|
129
|
+
<Stack__
|
|
131
130
|
as={"button"}
|
|
132
131
|
data-plasmic-name={"root"}
|
|
133
132
|
data-plasmic-override={overrides.root}
|
|
@@ -140,6 +139,7 @@ function PlasmicButton__RenderFunc(props) {
|
|
|
140
139
|
projectcss.root_reset,
|
|
141
140
|
projectcss.plasmic_default_styles,
|
|
142
141
|
projectcss.plasmic_mixins,
|
|
142
|
+
projectcss.plasmic_tokens,
|
|
143
143
|
sty.root,
|
|
144
144
|
{
|
|
145
145
|
[sty.root___focusVisibleWithin]: triggers.focusVisibleWithin_root,
|
|
@@ -177,7 +177,6 @@ function PlasmicButton__RenderFunc(props) {
|
|
|
177
177
|
"showEndIcon",
|
|
178
178
|
"showEndIcon"
|
|
179
179
|
),
|
|
180
|
-
|
|
181
180
|
[sty.rootshowEndIcon_shape_rounded]:
|
|
182
181
|
hasVariant($state, "showEndIcon", "showEndIcon") &&
|
|
183
182
|
hasVariant($state, "shape", "rounded"),
|
|
@@ -193,7 +192,6 @@ function PlasmicButton__RenderFunc(props) {
|
|
|
193
192
|
"showStartIcon",
|
|
194
193
|
"showStartIcon"
|
|
195
194
|
),
|
|
196
|
-
|
|
197
195
|
[sty.rootsize_compact]: hasVariant($state, "size", "compact"),
|
|
198
196
|
[sty.rootsize_compact_showStartIcon]:
|
|
199
197
|
hasVariant($state, "size", "compact") &&
|
|
@@ -213,7 +211,6 @@ function PlasmicButton__RenderFunc(props) {
|
|
|
213
211
|
"color",
|
|
214
212
|
"blue"
|
|
215
213
|
),
|
|
216
|
-
|
|
217
214
|
[sty.startIconContainershape_rounded_showStartIcon]:
|
|
218
215
|
hasVariant($state, "shape", "rounded") &&
|
|
219
216
|
hasVariant($state, "showStartIcon", "showStartIcon"),
|
|
@@ -224,9 +221,9 @@ function PlasmicButton__RenderFunc(props) {
|
|
|
224
221
|
)
|
|
225
222
|
})}
|
|
226
223
|
>
|
|
227
|
-
{
|
|
224
|
+
{renderPlasmicSlot({
|
|
228
225
|
defaultContents: (
|
|
229
|
-
<
|
|
226
|
+
<CheckSvgIcon
|
|
230
227
|
className={classNames(projectcss.all, sty.svg__s6Xxe)}
|
|
231
228
|
role={"img"}
|
|
232
229
|
/>
|
|
@@ -239,61 +236,51 @@ function PlasmicButton__RenderFunc(props) {
|
|
|
239
236
|
"color",
|
|
240
237
|
"blue"
|
|
241
238
|
),
|
|
242
|
-
|
|
243
239
|
[sty.slotTargetStartIconcolor_clear]: hasVariant(
|
|
244
240
|
$state,
|
|
245
241
|
"color",
|
|
246
242
|
"clear"
|
|
247
243
|
),
|
|
248
|
-
|
|
249
244
|
[sty.slotTargetStartIconcolor_link]: hasVariant(
|
|
250
245
|
$state,
|
|
251
246
|
"color",
|
|
252
247
|
"link"
|
|
253
248
|
),
|
|
254
|
-
|
|
255
249
|
[sty.slotTargetStartIconcolor_softBlue]: hasVariant(
|
|
256
250
|
$state,
|
|
257
251
|
"color",
|
|
258
252
|
"softBlue"
|
|
259
253
|
),
|
|
260
|
-
|
|
261
254
|
[sty.slotTargetStartIconcolor_softGreen]: hasVariant(
|
|
262
255
|
$state,
|
|
263
256
|
"color",
|
|
264
257
|
"softGreen"
|
|
265
258
|
),
|
|
266
|
-
|
|
267
259
|
[sty.slotTargetStartIconcolor_softRed]: hasVariant(
|
|
268
260
|
$state,
|
|
269
261
|
"color",
|
|
270
262
|
"softRed"
|
|
271
263
|
),
|
|
272
|
-
|
|
273
264
|
[sty.slotTargetStartIconcolor_softSand]: hasVariant(
|
|
274
265
|
$state,
|
|
275
266
|
"color",
|
|
276
267
|
"softSand"
|
|
277
268
|
),
|
|
278
|
-
|
|
279
269
|
[sty.slotTargetStartIconcolor_softYellow]: hasVariant(
|
|
280
270
|
$state,
|
|
281
271
|
"color",
|
|
282
272
|
"softYellow"
|
|
283
273
|
),
|
|
284
|
-
|
|
285
274
|
[sty.slotTargetStartIconcolor_white]: hasVariant(
|
|
286
275
|
$state,
|
|
287
276
|
"color",
|
|
288
277
|
"white"
|
|
289
278
|
),
|
|
290
|
-
|
|
291
279
|
[sty.slotTargetStartIconcolor_yellow]: hasVariant(
|
|
292
280
|
$state,
|
|
293
281
|
"color",
|
|
294
282
|
"yellow"
|
|
295
283
|
),
|
|
296
|
-
|
|
297
284
|
[sty.slotTargetStartIconshowStartIcon]: hasVariant(
|
|
298
285
|
$state,
|
|
299
286
|
"showStartIcon",
|
|
@@ -303,7 +290,6 @@ function PlasmicButton__RenderFunc(props) {
|
|
|
303
290
|
})}
|
|
304
291
|
</div>
|
|
305
292
|
) : null}
|
|
306
|
-
|
|
307
293
|
<div
|
|
308
294
|
data-plasmic-name={"contentContainer"}
|
|
309
295
|
data-plasmic-override={overrides.contentContainer}
|
|
@@ -315,13 +301,11 @@ function PlasmicButton__RenderFunc(props) {
|
|
|
315
301
|
"isDisabled",
|
|
316
302
|
"isDisabled"
|
|
317
303
|
),
|
|
318
|
-
|
|
319
304
|
[sty.contentContainershape_rounded]: hasVariant(
|
|
320
305
|
$state,
|
|
321
306
|
"shape",
|
|
322
307
|
"rounded"
|
|
323
308
|
),
|
|
324
|
-
|
|
325
309
|
[sty.contentContainershowEndIcon]: hasVariant(
|
|
326
310
|
$state,
|
|
327
311
|
"showEndIcon",
|
|
@@ -329,7 +313,7 @@ function PlasmicButton__RenderFunc(props) {
|
|
|
329
313
|
)
|
|
330
314
|
})}
|
|
331
315
|
>
|
|
332
|
-
{
|
|
316
|
+
{renderPlasmicSlot({
|
|
333
317
|
defaultContents: "Button",
|
|
334
318
|
value: args.children,
|
|
335
319
|
className: classNames(sty.slotTargetChildren, {
|
|
@@ -340,25 +324,21 @@ function PlasmicButton__RenderFunc(props) {
|
|
|
340
324
|
"color",
|
|
341
325
|
"blue"
|
|
342
326
|
),
|
|
343
|
-
|
|
344
327
|
[sty.slotTargetChildrencolor_clear]: hasVariant(
|
|
345
328
|
$state,
|
|
346
329
|
"color",
|
|
347
330
|
"clear"
|
|
348
331
|
),
|
|
349
|
-
|
|
350
332
|
[sty.slotTargetChildrencolor_green]: hasVariant(
|
|
351
333
|
$state,
|
|
352
334
|
"color",
|
|
353
335
|
"green"
|
|
354
336
|
),
|
|
355
|
-
|
|
356
337
|
[sty.slotTargetChildrencolor_link]: hasVariant(
|
|
357
338
|
$state,
|
|
358
339
|
"color",
|
|
359
340
|
"link"
|
|
360
341
|
),
|
|
361
|
-
|
|
362
342
|
[sty.slotTargetChildrencolor_link_size_minimal]:
|
|
363
343
|
hasVariant($state, "color", "link") &&
|
|
364
344
|
hasVariant($state, "size", "minimal"),
|
|
@@ -367,79 +347,66 @@ function PlasmicButton__RenderFunc(props) {
|
|
|
367
347
|
"color",
|
|
368
348
|
"red"
|
|
369
349
|
),
|
|
370
|
-
|
|
371
350
|
[sty.slotTargetChildrencolor_sand]: hasVariant(
|
|
372
351
|
$state,
|
|
373
352
|
"color",
|
|
374
353
|
"sand"
|
|
375
354
|
),
|
|
376
|
-
|
|
377
355
|
[sty.slotTargetChildrencolor_softBlue]: hasVariant(
|
|
378
356
|
$state,
|
|
379
357
|
"color",
|
|
380
358
|
"softBlue"
|
|
381
359
|
),
|
|
382
|
-
|
|
383
360
|
[sty.slotTargetChildrencolor_softGreen]: hasVariant(
|
|
384
361
|
$state,
|
|
385
362
|
"color",
|
|
386
363
|
"softGreen"
|
|
387
364
|
),
|
|
388
|
-
|
|
389
365
|
[sty.slotTargetChildrencolor_softRed]: hasVariant(
|
|
390
366
|
$state,
|
|
391
367
|
"color",
|
|
392
368
|
"softRed"
|
|
393
369
|
),
|
|
394
|
-
|
|
395
370
|
[sty.slotTargetChildrencolor_softSand]: hasVariant(
|
|
396
371
|
$state,
|
|
397
372
|
"color",
|
|
398
373
|
"softSand"
|
|
399
374
|
),
|
|
400
|
-
|
|
401
375
|
[sty.slotTargetChildrencolor_softYellow]: hasVariant(
|
|
402
376
|
$state,
|
|
403
377
|
"color",
|
|
404
378
|
"softYellow"
|
|
405
379
|
),
|
|
406
|
-
|
|
407
380
|
[sty.slotTargetChildrencolor_white]: hasVariant(
|
|
408
381
|
$state,
|
|
409
382
|
"color",
|
|
410
383
|
"white"
|
|
411
384
|
),
|
|
412
|
-
|
|
413
385
|
[sty.slotTargetChildrencolor_yellow]: hasVariant(
|
|
414
386
|
$state,
|
|
415
387
|
"color",
|
|
416
388
|
"yellow"
|
|
417
389
|
),
|
|
418
|
-
|
|
419
390
|
[sty.slotTargetChildrenisDisabled]: hasVariant(
|
|
420
391
|
$state,
|
|
421
392
|
"isDisabled",
|
|
422
393
|
"isDisabled"
|
|
423
394
|
),
|
|
424
|
-
|
|
425
395
|
[sty.slotTargetChildrenshape_rounded]: hasVariant(
|
|
426
396
|
$state,
|
|
427
397
|
"shape",
|
|
428
398
|
"rounded"
|
|
429
399
|
),
|
|
430
|
-
|
|
431
400
|
[sty.slotTargetChildrenshowEndIcon]: hasVariant(
|
|
432
401
|
$state,
|
|
433
402
|
"showEndIcon",
|
|
434
403
|
"showEndIcon"
|
|
435
404
|
),
|
|
436
|
-
|
|
437
405
|
[sty.slotTargetChildrenshowStartIcon]: hasVariant(
|
|
438
406
|
$state,
|
|
439
407
|
"showStartIcon",
|
|
440
408
|
"showStartIcon"
|
|
441
409
|
),
|
|
442
|
-
|
|
443
410
|
[sty.slotTargetChildrensize_minimal]: hasVariant(
|
|
444
411
|
$state,
|
|
445
412
|
"size",
|
|
@@ -448,7 +415,6 @@ function PlasmicButton__RenderFunc(props) {
|
|
|
448
415
|
})
|
|
449
416
|
})}
|
|
450
417
|
</div>
|
|
451
|
-
|
|
452
418
|
{(hasVariant($state, "showEndIcon", "showEndIcon") ? true : false) ? (
|
|
453
419
|
<div
|
|
454
420
|
data-plasmic-name={"endIconContainer"}
|
|
@@ -459,13 +425,11 @@ function PlasmicButton__RenderFunc(props) {
|
|
|
459
425
|
"color",
|
|
460
426
|
"white"
|
|
461
427
|
),
|
|
462
|
-
|
|
463
428
|
[sty.endIconContainercolor_yellow]: hasVariant(
|
|
464
429
|
$state,
|
|
465
430
|
"color",
|
|
466
431
|
"yellow"
|
|
467
432
|
),
|
|
468
|
-
|
|
469
433
|
[sty.endIconContainershowEndIcon]: hasVariant(
|
|
470
434
|
$state,
|
|
471
435
|
"showEndIcon",
|
|
@@ -473,7 +437,7 @@ function PlasmicButton__RenderFunc(props) {
|
|
|
473
437
|
)
|
|
474
438
|
})}
|
|
475
439
|
>
|
|
476
|
-
{
|
|
440
|
+
{renderPlasmicSlot({
|
|
477
441
|
defaultContents: (
|
|
478
442
|
<IconIcon
|
|
479
443
|
className={classNames(projectcss.all, sty.svg__liJa)}
|
|
@@ -488,55 +452,46 @@ function PlasmicButton__RenderFunc(props) {
|
|
|
488
452
|
"color",
|
|
489
453
|
"clear"
|
|
490
454
|
),
|
|
491
|
-
|
|
492
455
|
[sty.slotTargetEndIconcolor_link]: hasVariant(
|
|
493
456
|
$state,
|
|
494
457
|
"color",
|
|
495
458
|
"link"
|
|
496
459
|
),
|
|
497
|
-
|
|
498
460
|
[sty.slotTargetEndIconcolor_softBlue]: hasVariant(
|
|
499
461
|
$state,
|
|
500
462
|
"color",
|
|
501
463
|
"softBlue"
|
|
502
464
|
),
|
|
503
|
-
|
|
504
465
|
[sty.slotTargetEndIconcolor_softGreen]: hasVariant(
|
|
505
466
|
$state,
|
|
506
467
|
"color",
|
|
507
468
|
"softGreen"
|
|
508
469
|
),
|
|
509
|
-
|
|
510
470
|
[sty.slotTargetEndIconcolor_softRed]: hasVariant(
|
|
511
471
|
$state,
|
|
512
472
|
"color",
|
|
513
473
|
"softRed"
|
|
514
474
|
),
|
|
515
|
-
|
|
516
475
|
[sty.slotTargetEndIconcolor_softSand]: hasVariant(
|
|
517
476
|
$state,
|
|
518
477
|
"color",
|
|
519
478
|
"softSand"
|
|
520
479
|
),
|
|
521
|
-
|
|
522
480
|
[sty.slotTargetEndIconcolor_softYellow]: hasVariant(
|
|
523
481
|
$state,
|
|
524
482
|
"color",
|
|
525
483
|
"softYellow"
|
|
526
484
|
),
|
|
527
|
-
|
|
528
485
|
[sty.slotTargetEndIconcolor_white]: hasVariant(
|
|
529
486
|
$state,
|
|
530
487
|
"color",
|
|
531
488
|
"white"
|
|
532
489
|
),
|
|
533
|
-
|
|
534
490
|
[sty.slotTargetEndIconcolor_yellow]: hasVariant(
|
|
535
491
|
$state,
|
|
536
492
|
"color",
|
|
537
493
|
"yellow"
|
|
538
494
|
),
|
|
539
|
-
|
|
540
495
|
[sty.slotTargetEndIconshowEndIcon]: hasVariant(
|
|
541
496
|
$state,
|
|
542
497
|
"showEndIcon",
|
|
@@ -546,7 +501,7 @@ function PlasmicButton__RenderFunc(props) {
|
|
|
546
501
|
})}
|
|
547
502
|
</div>
|
|
548
503
|
) : null}
|
|
549
|
-
</
|
|
504
|
+
</Stack__>
|
|
550
505
|
);
|
|
551
506
|
}
|
|
552
507
|
|
|
@@ -568,9 +523,8 @@ function useBehavior(props, ref) {
|
|
|
568
523
|
},
|
|
569
524
|
ref
|
|
570
525
|
);
|
|
571
|
-
|
|
572
526
|
if (b.plasmicProps.overrides.root.as === "a") {
|
|
573
|
-
b.plasmicProps.overrides.root.as =
|
|
527
|
+
b.plasmicProps.overrides.root.as = PlasmicLink__;
|
|
574
528
|
b.plasmicProps.overrides.root.props.component = Link;
|
|
575
529
|
b.plasmicProps.overrides.root.props.platform = "gatsby";
|
|
576
530
|
}
|
|
@@ -590,13 +544,12 @@ function makeNodeComponent(nodeName) {
|
|
|
590
544
|
() =>
|
|
591
545
|
deriveRenderOpts(props, {
|
|
592
546
|
name: nodeName,
|
|
593
|
-
descendantNames:
|
|
547
|
+
descendantNames: PlasmicDescendants[nodeName],
|
|
594
548
|
internalArgPropNames: PlasmicButton__ArgProps,
|
|
595
549
|
internalVariantPropNames: PlasmicButton__VariantProps
|
|
596
550
|
}),
|
|
597
551
|
[props, nodeName]
|
|
598
552
|
);
|
|
599
|
-
|
|
600
553
|
return PlasmicButton__RenderFunc({
|
|
601
554
|
variants,
|
|
602
555
|
args,
|