create-plasmic-app 0.0.103 → 0.0.105

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.
Files changed (29) hide show
  1. package/cpa-out/.gitignore +4 -0
  2. package/cpa-out/tanstack-codegen-ts/package.json +42 -0
  3. package/cpa-out/tanstack-codegen-ts/plasmic.json +136 -0
  4. package/cpa-out/tanstack-codegen-ts/src/components/Button.tsx +35 -0
  5. package/cpa-out/tanstack-codegen-ts/src/components/Header.tsx +21 -0
  6. package/cpa-out/tanstack-codegen-ts/src/components/RandomDynamicPageButton.tsx +44 -0
  7. package/cpa-out/tanstack-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicButton.tsx +870 -0
  8. package/cpa-out/tanstack-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicDynamicPage.tsx +309 -0
  9. package/cpa-out/tanstack-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicGlobalVariant__Screen.tsx +28 -0
  10. package/cpa-out/tanstack-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicHomepage.tsx +351 -0
  11. package/cpa-out/tanstack-codegen-ts/src/components/plasmic/create_plasmic_app/PlasmicRandomDynamicPageButton.tsx +279 -0
  12. package/cpa-out/tanstack-codegen-ts/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__CheckSvg.tsx +44 -0
  13. package/cpa-out/tanstack-codegen-ts/src/components/plasmic/create_plasmic_app/icons/PlasmicIcon__Icon.tsx +41 -0
  14. package/cpa-out/tanstack-codegen-ts/src/routeTree.gen.ts +95 -0
  15. package/cpa-out/tanstack-codegen-ts/src/router.tsx +24 -0
  16. package/cpa-out/tanstack-codegen-ts/src/routes/__root.tsx +37 -0
  17. package/cpa-out/tanstack-codegen-ts/src/routes/dynamic/$slug/index.tsx +49 -0
  18. package/cpa-out/tanstack-codegen-ts/src/routes/index.tsx +49 -0
  19. package/cpa-out/tanstack-codegen-ts/src/routes/plasmic-host.tsx +20 -0
  20. package/cpa-out/tanstack-codegen-ts/tsconfig.json +28 -0
  21. package/cpa-out/tanstack-codegen-ts/vite.config.ts +26 -0
  22. package/dist/react/react.js +10 -12
  23. package/dist/tanstack/tanstack.js +1 -1
  24. package/dist/tanstack/templates/file-router/config.d.ts +1 -1
  25. package/dist/tanstack/templates/file-router/config.js +27 -27
  26. package/package.json +2 -2
  27. package/src/react/react.ts +14 -18
  28. package/src/tanstack/tanstack.ts +3 -3
  29. package/src/tanstack/templates/file-router/config.ts +25 -25
@@ -0,0 +1,870 @@
1
+ /* eslint-disable */
2
+ /* tslint:disable */
3
+ // @ts-nocheck
4
+ /* prettier-ignore-start */
5
+
6
+ /** @jsxRuntime classic */
7
+ /** @jsx createPlasmicElementProxy */
8
+ /** @jsxFrag React.Fragment */
9
+
10
+ // This class is auto-generated by Plasmic; please do not edit!
11
+ // Plasmic Project: 47tFXWjN2C4NyHFGGpaYQ3
12
+ // Component: TQcvW_pSKi3
13
+
14
+ import * as React from "react";
15
+
16
+ import { useRouter, Link } from "@tanstack/react-router";
17
+ import type { LinkProps } from "@tanstack/react-router";
18
+
19
+ import {
20
+ Flex as Flex__,
21
+ MultiChoiceArg,
22
+ PlasmicDataSourceContextProvider as PlasmicDataSourceContextProvider__,
23
+ PlasmicIcon as PlasmicIcon__,
24
+ PlasmicImg as PlasmicImg__,
25
+ PlasmicLink as PlasmicLink__,
26
+ PlasmicPageGuard as PlasmicPageGuard__,
27
+ SingleBooleanChoiceArg,
28
+ SingleChoiceArg,
29
+ Stack as Stack__,
30
+ StrictProps,
31
+ Trans as Trans__,
32
+ classNames,
33
+ createPlasmicElementProxy,
34
+ deriveRenderOpts,
35
+ ensureGlobalVariants,
36
+ generateOnMutateForSpec,
37
+ generateStateOnChangeProp,
38
+ generateStateOnChangePropForCodeComponents,
39
+ generateStateValueProp,
40
+ get as $stateGet,
41
+ hasVariant,
42
+ initializeCodeComponentStates,
43
+ initializePlasmicStates,
44
+ makeFragment,
45
+ omit,
46
+ pick,
47
+ renderPlasmicSlot,
48
+ set as $stateSet,
49
+ useCurrentUser,
50
+ useDollarState,
51
+ usePlasmicTranslator,
52
+ useTrigger,
53
+ wrapWithClassName
54
+ } from "@plasmicapp/react-web";
55
+ import {
56
+ DataCtxReader as DataCtxReader__,
57
+ useDataEnv,
58
+ useGlobalActions
59
+ } from "@plasmicapp/react-web/lib/host";
60
+
61
+ import * as pp from "@plasmicapp/react-web";
62
+
63
+ import globalcss from "@plasmicapp/react-web/lib/plasmic.css?url";
64
+ import defaultcss from "../plasmic__default_style.css?url"; // plasmic-import: global/defaultcss
65
+
66
+ import projectcss from "./plasmic.css?url"; // plasmic-import: 47tFXWjN2C4NyHFGGpaYQ3/projectcss
67
+ import sty from "./PlasmicButton.css?url"; // plasmic-import: TQcvW_pSKi3/css
68
+
69
+ import CheckSvgIcon from "./icons/PlasmicIcon__CheckSvg"; // plasmic-import: gj-_D7n31Ho/icon
70
+ import IconIcon from "./icons/PlasmicIcon__Icon"; // plasmic-import: 6PNxx3YMyDQ/icon
71
+
72
+ createPlasmicElementProxy;
73
+
74
+ export type PlasmicButton__VariantMembers = {
75
+ showStartIcon: "showStartIcon";
76
+ showEndIcon: "showEndIcon";
77
+ isDisabled: "isDisabled";
78
+ shape: "rounded" | "round" | "sharp";
79
+ size: "compact" | "minimal";
80
+ color:
81
+ | "blue"
82
+ | "green"
83
+ | "yellow"
84
+ | "red"
85
+ | "sand"
86
+ | "white"
87
+ | "softBlue"
88
+ | "softGreen"
89
+ | "softYellow"
90
+ | "softRed"
91
+ | "softSand"
92
+ | "clear"
93
+ | "link";
94
+ };
95
+ export type PlasmicButton__VariantsArgs = {
96
+ showStartIcon?: SingleBooleanChoiceArg<"showStartIcon">;
97
+ showEndIcon?: SingleBooleanChoiceArg<"showEndIcon">;
98
+ isDisabled?: SingleBooleanChoiceArg<"isDisabled">;
99
+ shape?: SingleChoiceArg<"rounded" | "round" | "sharp">;
100
+ size?: SingleChoiceArg<"compact" | "minimal">;
101
+ color?: SingleChoiceArg<
102
+ | "blue"
103
+ | "green"
104
+ | "yellow"
105
+ | "red"
106
+ | "sand"
107
+ | "white"
108
+ | "softBlue"
109
+ | "softGreen"
110
+ | "softYellow"
111
+ | "softRed"
112
+ | "softSand"
113
+ | "clear"
114
+ | "link"
115
+ >;
116
+ };
117
+ type VariantPropType = keyof PlasmicButton__VariantsArgs;
118
+ export const PlasmicButton__VariantProps = new Array<VariantPropType>(
119
+ "showStartIcon",
120
+ "showEndIcon",
121
+ "isDisabled",
122
+ "shape",
123
+ "size",
124
+ "color"
125
+ );
126
+
127
+ export type PlasmicButton__ArgsType = {
128
+ link?: string;
129
+ submitsForm?: boolean;
130
+ target?: boolean;
131
+ startIcon?: React.ReactNode;
132
+ children?: React.ReactNode;
133
+ endIcon?: React.ReactNode;
134
+ };
135
+ type ArgPropType = keyof PlasmicButton__ArgsType;
136
+ export const PlasmicButton__ArgProps = new Array<ArgPropType>(
137
+ "link",
138
+ "submitsForm",
139
+ "target",
140
+ "startIcon",
141
+ "children",
142
+ "endIcon"
143
+ );
144
+
145
+ export type PlasmicButton__OverridesType = {
146
+ root?: Flex__<"button">;
147
+ startIconContainer?: Flex__<"div">;
148
+ contentContainer?: Flex__<"div">;
149
+ endIconContainer?: Flex__<"div">;
150
+ };
151
+
152
+ export interface DefaultButtonProps extends pp.BaseButtonProps {
153
+ submitsForm?: boolean;
154
+ target?: boolean;
155
+ shape?: SingleChoiceArg<"rounded" | "round" | "sharp">;
156
+ size?: SingleChoiceArg<"compact" | "minimal">;
157
+ color?: SingleChoiceArg<
158
+ | "blue"
159
+ | "green"
160
+ | "yellow"
161
+ | "red"
162
+ | "sand"
163
+ | "white"
164
+ | "softBlue"
165
+ | "softGreen"
166
+ | "softYellow"
167
+ | "softRed"
168
+ | "softSand"
169
+ | "clear"
170
+ | "link"
171
+ >;
172
+ }
173
+
174
+ const $$ = {};
175
+
176
+ function useTanStackRouter() {
177
+ try {
178
+ return useRouter();
179
+ } catch {}
180
+ return undefined;
181
+ }
182
+
183
+ function PlasmicButton__RenderFunc(props: {
184
+ variants: PlasmicButton__VariantsArgs;
185
+ args: PlasmicButton__ArgsType;
186
+ overrides: PlasmicButton__OverridesType;
187
+ forNode?: string;
188
+ }) {
189
+ const { variants, overrides, forNode } = props;
190
+
191
+ const args = React.useMemo(
192
+ () =>
193
+ Object.assign(
194
+ {},
195
+ Object.fromEntries(
196
+ Object.entries(props.args).filter(([_, v]) => v !== undefined)
197
+ )
198
+ ),
199
+ [props.args]
200
+ );
201
+
202
+ const $props = {
203
+ ...args,
204
+ ...variants
205
+ };
206
+
207
+ const __tanstackRouter = useTanStackRouter();
208
+ const $ctx = useDataEnv?.() || {};
209
+ const refsRef = React.useRef({});
210
+ const $refs = refsRef.current;
211
+
212
+ const stateSpecs: Parameters<typeof useDollarState>[0] = React.useMemo(
213
+ () => [
214
+ {
215
+ path: "showStartIcon",
216
+ type: "private",
217
+ variableType: "variant",
218
+ initFunc: ({ $props, $state, $queries, $ctx }) => $props.showStartIcon
219
+ },
220
+ {
221
+ path: "showEndIcon",
222
+ type: "private",
223
+ variableType: "variant",
224
+ initFunc: ({ $props, $state, $queries, $ctx }) => $props.showEndIcon
225
+ },
226
+ {
227
+ path: "isDisabled",
228
+ type: "private",
229
+ variableType: "variant",
230
+ initFunc: ({ $props, $state, $queries, $ctx }) => $props.isDisabled
231
+ },
232
+ {
233
+ path: "shape",
234
+ type: "private",
235
+ variableType: "variant",
236
+ initFunc: ({ $props, $state, $queries, $ctx }) => $props.shape
237
+ },
238
+ {
239
+ path: "size",
240
+ type: "private",
241
+ variableType: "variant",
242
+ initFunc: ({ $props, $state, $queries, $ctx }) => $props.size
243
+ },
244
+ {
245
+ path: "color",
246
+ type: "private",
247
+ variableType: "variant",
248
+ initFunc: ({ $props, $state, $queries, $ctx }) => $props.color
249
+ }
250
+ ],
251
+ [$props, $ctx, $refs]
252
+ );
253
+ const $state = useDollarState(stateSpecs, {
254
+ $props,
255
+ $ctx,
256
+ $queries: {},
257
+ $refs
258
+ });
259
+
260
+ const [isRootFocusVisibleWithin, triggerRootFocusVisibleWithinProps] =
261
+ useTrigger("useFocusVisibleWithin", {
262
+ isTextInput: false
263
+ });
264
+ const triggers = {
265
+ focusVisibleWithin_root: isRootFocusVisibleWithin
266
+ };
267
+
268
+ return (
269
+ <Stack__
270
+ as={"button"}
271
+ data-plasmic-name={"root"}
272
+ data-plasmic-override={overrides.root}
273
+ data-plasmic-root={true}
274
+ data-plasmic-for-node={forNode}
275
+ hasGap={true}
276
+ className={classNames(
277
+ "plasmic_default__all",
278
+ "plasmic_default__button",
279
+ "root_reset_47tFXWjN2C4NyHFGGpaYQ3",
280
+ "plasmic_default_styles",
281
+ "plasmic_mixins",
282
+ "plasmic_tokens",
283
+ "Button__root__gpc3K",
284
+ {
285
+ Button__root___focusVisibleWithin__gpc3KcjR25:
286
+ triggers.focusVisibleWithin_root,
287
+ Button__rootcolor_blue__gpc3K7OS1A: hasVariant(
288
+ $state,
289
+ "color",
290
+ "blue"
291
+ ),
292
+ Button__rootcolor_clear__gpc3KpPAgM: hasVariant(
293
+ $state,
294
+ "color",
295
+ "clear"
296
+ ),
297
+ Button__rootcolor_green__gpc3Kwu3Pw: hasVariant(
298
+ $state,
299
+ "color",
300
+ "green"
301
+ ),
302
+ Button__rootcolor_link__gpc3Kf1H09: hasVariant(
303
+ $state,
304
+ "color",
305
+ "link"
306
+ ),
307
+ Button__rootcolor_link_size_minimal__gpc3Kf1H09KlAxP:
308
+ hasVariant($state, "color", "link") &&
309
+ hasVariant($state, "size", "minimal"),
310
+ Button__rootcolor_red__gpc3KlyFe7: hasVariant($state, "color", "red"),
311
+ Button__rootcolor_sand__gpc3K2T7KH: hasVariant(
312
+ $state,
313
+ "color",
314
+ "sand"
315
+ ),
316
+ Button__rootcolor_softBlue__gpc3KnZeg: hasVariant(
317
+ $state,
318
+ "color",
319
+ "softBlue"
320
+ ),
321
+ Button__rootcolor_softGreen__gpc3KqOip: hasVariant(
322
+ $state,
323
+ "color",
324
+ "softGreen"
325
+ ),
326
+ Button__rootcolor_softRed__gpc3KEt128: hasVariant(
327
+ $state,
328
+ "color",
329
+ "softRed"
330
+ ),
331
+ Button__rootcolor_softSand__gpc3K8XvkE: hasVariant(
332
+ $state,
333
+ "color",
334
+ "softSand"
335
+ ),
336
+ Button__rootcolor_softYellow__gpc3K95U0X: hasVariant(
337
+ $state,
338
+ "color",
339
+ "softYellow"
340
+ ),
341
+ Button__rootcolor_white__gpc3K5R3VM: hasVariant(
342
+ $state,
343
+ "color",
344
+ "white"
345
+ ),
346
+ Button__rootcolor_yellow__gpc3KoEjPn: hasVariant(
347
+ $state,
348
+ "color",
349
+ "yellow"
350
+ ),
351
+ Button__rootisDisabled__gpc3Kwr3Ff: hasVariant(
352
+ $state,
353
+ "isDisabled",
354
+ "isDisabled"
355
+ ),
356
+ Button__rootshape_round__gpc3Kq33Mv: hasVariant(
357
+ $state,
358
+ "shape",
359
+ "round"
360
+ ),
361
+ Button__rootshape_round_size_compact__gpc3Kq33MvN6Abw:
362
+ hasVariant($state, "shape", "round") &&
363
+ hasVariant($state, "size", "compact"),
364
+ Button__rootshape_rounded__gpc3KYlIzA: hasVariant(
365
+ $state,
366
+ "shape",
367
+ "rounded"
368
+ ),
369
+ Button__rootshape_rounded_showStartIcon__gpc3KYlIzAZX0Z8:
370
+ hasVariant($state, "shape", "rounded") &&
371
+ hasVariant($state, "showStartIcon", "showStartIcon"),
372
+ Button__rootshape_rounded_size_compact__gpc3KYlIzAN6Abw:
373
+ hasVariant($state, "size", "compact") &&
374
+ hasVariant($state, "shape", "rounded"),
375
+ Button__rootshape_sharp__gpc3K0LUp: hasVariant(
376
+ $state,
377
+ "shape",
378
+ "sharp"
379
+ ),
380
+ Button__rootshowEndIcon__gpc3Kyu4Va: hasVariant(
381
+ $state,
382
+ "showEndIcon",
383
+ "showEndIcon"
384
+ ),
385
+ Button__rootshowEndIcon_shape_rounded__gpc3Kyu4VaYlIzA:
386
+ hasVariant($state, "showEndIcon", "showEndIcon") &&
387
+ hasVariant($state, "shape", "rounded"),
388
+ Button__rootshowEndIcon_size_compact__gpc3Kyu4VaN6Abw:
389
+ hasVariant($state, "size", "compact") &&
390
+ hasVariant($state, "showEndIcon", "showEndIcon"),
391
+ Button__rootshowEndIcon_size_compact_showStartIcon__gpc3Kyu4VaN6AbwZX0Z8:
392
+ hasVariant($state, "size", "compact") &&
393
+ hasVariant($state, "showStartIcon", "showStartIcon") &&
394
+ hasVariant($state, "showEndIcon", "showEndIcon"),
395
+ Button__rootshowStartIcon__gpc3KzX0Z8: hasVariant(
396
+ $state,
397
+ "showStartIcon",
398
+ "showStartIcon"
399
+ ),
400
+ Button__rootsize_compact__gpc3Kn6Abw: hasVariant(
401
+ $state,
402
+ "size",
403
+ "compact"
404
+ ),
405
+ Button__rootsize_compact_showStartIcon__gpc3Kn6AbwZX0Z8:
406
+ hasVariant($state, "size", "compact") &&
407
+ hasVariant($state, "showStartIcon", "showStartIcon"),
408
+ Button__rootsize_minimal__gpc3KklAxP: hasVariant(
409
+ $state,
410
+ "size",
411
+ "minimal"
412
+ )
413
+ }
414
+ )}
415
+ data-plasmic-trigger-props={[triggerRootFocusVisibleWithinProps]}
416
+ >
417
+ {(hasVariant($state, "showStartIcon", "showStartIcon") ? true : false) ? (
418
+ <div
419
+ data-plasmic-name={"startIconContainer"}
420
+ data-plasmic-override={overrides.startIconContainer}
421
+ className={classNames(
422
+ "plasmic_default__all",
423
+ "plasmic_default__div",
424
+ "Button__startIconContainer__men7Z",
425
+ {
426
+ Button__startIconContainercolor_blue__men7Z7OS1A: hasVariant(
427
+ $state,
428
+ "color",
429
+ "blue"
430
+ ),
431
+ Button__startIconContainershape_rounded_showStartIcon__men7ZYlIzAZX0Z8:
432
+ hasVariant($state, "shape", "rounded") &&
433
+ hasVariant($state, "showStartIcon", "showStartIcon"),
434
+ Button__startIconContainershowStartIcon__men7ZzX0Z8: hasVariant(
435
+ $state,
436
+ "showStartIcon",
437
+ "showStartIcon"
438
+ )
439
+ }
440
+ )}
441
+ >
442
+ {renderPlasmicSlot({
443
+ defaultContents: (
444
+ <CheckSvgIcon
445
+ className={classNames(
446
+ "plasmic_default__all",
447
+ "plasmic_default__svg",
448
+ "Button__svg__s6Xxe"
449
+ )}
450
+ role={"img"}
451
+ />
452
+ ),
453
+
454
+ value: args.startIcon,
455
+ className: classNames("Button__slotTargetStartIcon__tvHa9", {
456
+ Button__slotTargetStartIconcolor_blue__tvHa97OS1A: hasVariant(
457
+ $state,
458
+ "color",
459
+ "blue"
460
+ ),
461
+ Button__slotTargetStartIconcolor_clear__tvHa9PPAgM: hasVariant(
462
+ $state,
463
+ "color",
464
+ "clear"
465
+ ),
466
+ Button__slotTargetStartIconcolor_link__tvHa9F1H09: hasVariant(
467
+ $state,
468
+ "color",
469
+ "link"
470
+ ),
471
+ Button__slotTargetStartIconcolor_softBlue__tvHa9NZeg: hasVariant(
472
+ $state,
473
+ "color",
474
+ "softBlue"
475
+ ),
476
+ Button__slotTargetStartIconcolor_softGreen__tvHa9QOip: hasVariant(
477
+ $state,
478
+ "color",
479
+ "softGreen"
480
+ ),
481
+ Button__slotTargetStartIconcolor_softRed__tvHa9Et128: hasVariant(
482
+ $state,
483
+ "color",
484
+ "softRed"
485
+ ),
486
+ Button__slotTargetStartIconcolor_softSand__tvHa98XvkE: hasVariant(
487
+ $state,
488
+ "color",
489
+ "softSand"
490
+ ),
491
+ Button__slotTargetStartIconcolor_softYellow__tvHa995U0X:
492
+ hasVariant($state, "color", "softYellow"),
493
+ Button__slotTargetStartIconcolor_white__tvHa95R3VM: hasVariant(
494
+ $state,
495
+ "color",
496
+ "white"
497
+ ),
498
+ Button__slotTargetStartIconcolor_yellow__tvHa9OEjPn: hasVariant(
499
+ $state,
500
+ "color",
501
+ "yellow"
502
+ ),
503
+ Button__slotTargetStartIconshowStartIcon__tvHa9ZX0Z8: hasVariant(
504
+ $state,
505
+ "showStartIcon",
506
+ "showStartIcon"
507
+ )
508
+ })
509
+ })}
510
+ </div>
511
+ ) : null}
512
+ <div
513
+ data-plasmic-name={"contentContainer"}
514
+ data-plasmic-override={overrides.contentContainer}
515
+ className={classNames(
516
+ "plasmic_default__all",
517
+ "plasmic_default__div",
518
+ "Button__contentContainer__sXXwU",
519
+ {
520
+ Button__contentContainer___focusVisibleWithin__sXXwUcjR25:
521
+ triggers.focusVisibleWithin_root,
522
+ Button__contentContainerisDisabled__sXXwUwr3Ff: hasVariant(
523
+ $state,
524
+ "isDisabled",
525
+ "isDisabled"
526
+ ),
527
+ Button__contentContainershape_rounded__sXXwUYlIzA: hasVariant(
528
+ $state,
529
+ "shape",
530
+ "rounded"
531
+ ),
532
+ Button__contentContainershowEndIcon__sXXwUyu4Va: hasVariant(
533
+ $state,
534
+ "showEndIcon",
535
+ "showEndIcon"
536
+ )
537
+ }
538
+ )}
539
+ >
540
+ {renderPlasmicSlot({
541
+ defaultContents: "Button",
542
+ value: args.children,
543
+ className: classNames("Button__slotTargetChildren__yzBwr", {
544
+ Button__slotTargetChildren___focusVisibleWithin__yzBwRcjR25:
545
+ triggers.focusVisibleWithin_root,
546
+ Button__slotTargetChildrencolor_blue__yzBwr7OS1A: hasVariant(
547
+ $state,
548
+ "color",
549
+ "blue"
550
+ ),
551
+ Button__slotTargetChildrencolor_clear__yzBwRpPAgM: hasVariant(
552
+ $state,
553
+ "color",
554
+ "clear"
555
+ ),
556
+ Button__slotTargetChildrencolor_green__yzBwRwu3Pw: hasVariant(
557
+ $state,
558
+ "color",
559
+ "green"
560
+ ),
561
+ Button__slotTargetChildrencolor_link__yzBwRf1H09: hasVariant(
562
+ $state,
563
+ "color",
564
+ "link"
565
+ ),
566
+ Button__slotTargetChildrencolor_link_size_minimal__yzBwRf1H09KlAxP:
567
+ hasVariant($state, "color", "link") &&
568
+ hasVariant($state, "size", "minimal"),
569
+ Button__slotTargetChildrencolor_red__yzBwrlyFe7: hasVariant(
570
+ $state,
571
+ "color",
572
+ "red"
573
+ ),
574
+ Button__slotTargetChildrencolor_sand__yzBwr2T7KH: hasVariant(
575
+ $state,
576
+ "color",
577
+ "sand"
578
+ ),
579
+ Button__slotTargetChildrencolor_softBlue__yzBwRnZeg: hasVariant(
580
+ $state,
581
+ "color",
582
+ "softBlue"
583
+ ),
584
+ Button__slotTargetChildrencolor_softGreen__yzBwrqOip: hasVariant(
585
+ $state,
586
+ "color",
587
+ "softGreen"
588
+ ),
589
+ Button__slotTargetChildrencolor_softRed__yzBwrEt128: hasVariant(
590
+ $state,
591
+ "color",
592
+ "softRed"
593
+ ),
594
+ Button__slotTargetChildrencolor_softSand__yzBwr8XvkE: hasVariant(
595
+ $state,
596
+ "color",
597
+ "softSand"
598
+ ),
599
+ Button__slotTargetChildrencolor_softYellow__yzBwr95U0X: hasVariant(
600
+ $state,
601
+ "color",
602
+ "softYellow"
603
+ ),
604
+ Button__slotTargetChildrencolor_white__yzBwr5R3VM: hasVariant(
605
+ $state,
606
+ "color",
607
+ "white"
608
+ ),
609
+ Button__slotTargetChildrencolor_yellow__yzBwRoEjPn: hasVariant(
610
+ $state,
611
+ "color",
612
+ "yellow"
613
+ ),
614
+ Button__slotTargetChildrenisDisabled__yzBwrwr3Ff: hasVariant(
615
+ $state,
616
+ "isDisabled",
617
+ "isDisabled"
618
+ ),
619
+ Button__slotTargetChildrenshape_rounded__yzBwrYlIzA: hasVariant(
620
+ $state,
621
+ "shape",
622
+ "rounded"
623
+ ),
624
+ Button__slotTargetChildrenshowEndIcon__yzBwryu4Va: hasVariant(
625
+ $state,
626
+ "showEndIcon",
627
+ "showEndIcon"
628
+ ),
629
+ Button__slotTargetChildrenshowStartIcon__yzBwRzX0Z8: hasVariant(
630
+ $state,
631
+ "showStartIcon",
632
+ "showStartIcon"
633
+ ),
634
+ Button__slotTargetChildrensize_minimal__yzBwRklAxP: hasVariant(
635
+ $state,
636
+ "size",
637
+ "minimal"
638
+ )
639
+ })
640
+ })}
641
+ </div>
642
+ {(hasVariant($state, "showEndIcon", "showEndIcon") ? true : false) ? (
643
+ <div
644
+ data-plasmic-name={"endIconContainer"}
645
+ data-plasmic-override={overrides.endIconContainer}
646
+ className={classNames(
647
+ "plasmic_default__all",
648
+ "plasmic_default__div",
649
+ "Button__endIconContainer___3CzAx",
650
+ {
651
+ Button__endIconContainercolor_white___3CzAx5R3VM: hasVariant(
652
+ $state,
653
+ "color",
654
+ "white"
655
+ ),
656
+ Button__endIconContainercolor_yellow___3CzAxoEjPn: hasVariant(
657
+ $state,
658
+ "color",
659
+ "yellow"
660
+ ),
661
+ Button__endIconContainershowEndIcon___3CzAxYu4Va: hasVariant(
662
+ $state,
663
+ "showEndIcon",
664
+ "showEndIcon"
665
+ )
666
+ }
667
+ )}
668
+ >
669
+ {renderPlasmicSlot({
670
+ defaultContents: (
671
+ <IconIcon
672
+ className={classNames(
673
+ "plasmic_default__all",
674
+ "plasmic_default__svg",
675
+ "Button__svg__liJa"
676
+ )}
677
+ role={"img"}
678
+ />
679
+ ),
680
+
681
+ value: args.endIcon,
682
+ className: classNames("Button__slotTargetEndIcon__eGy7P", {
683
+ Button__slotTargetEndIconcolor_clear__eGy7PpPAgM: hasVariant(
684
+ $state,
685
+ "color",
686
+ "clear"
687
+ ),
688
+ Button__slotTargetEndIconcolor_link__eGy7Pf1H09: hasVariant(
689
+ $state,
690
+ "color",
691
+ "link"
692
+ ),
693
+ Button__slotTargetEndIconcolor_softBlue__eGy7PnZeg: hasVariant(
694
+ $state,
695
+ "color",
696
+ "softBlue"
697
+ ),
698
+ Button__slotTargetEndIconcolor_softGreen__eGy7PqOip: hasVariant(
699
+ $state,
700
+ "color",
701
+ "softGreen"
702
+ ),
703
+ Button__slotTargetEndIconcolor_softRed__eGy7PEt128: hasVariant(
704
+ $state,
705
+ "color",
706
+ "softRed"
707
+ ),
708
+ Button__slotTargetEndIconcolor_softSand__eGy7P8XvkE: hasVariant(
709
+ $state,
710
+ "color",
711
+ "softSand"
712
+ ),
713
+ Button__slotTargetEndIconcolor_softYellow__eGy7P95U0X: hasVariant(
714
+ $state,
715
+ "color",
716
+ "softYellow"
717
+ ),
718
+ Button__slotTargetEndIconcolor_white__eGy7P5R3VM: hasVariant(
719
+ $state,
720
+ "color",
721
+ "white"
722
+ ),
723
+ Button__slotTargetEndIconcolor_yellow__eGy7PoEjPn: hasVariant(
724
+ $state,
725
+ "color",
726
+ "yellow"
727
+ ),
728
+ Button__slotTargetEndIconshowEndIcon__eGy7Pyu4Va: hasVariant(
729
+ $state,
730
+ "showEndIcon",
731
+ "showEndIcon"
732
+ )
733
+ })
734
+ })}
735
+ </div>
736
+ ) : null}
737
+ </Stack__>
738
+ ) as React.ReactElement | null;
739
+ }
740
+
741
+ function useBehavior<P extends pp.PlumeButtonProps>(
742
+ props: P,
743
+ ref: pp.ButtonRef
744
+ ) {
745
+ const b = pp.useButton<P, typeof PlasmicButton>(
746
+ PlasmicButton,
747
+ props,
748
+ {
749
+ showStartIconVariant: {
750
+ group: "showStartIcon",
751
+ variant: "showStartIcon"
752
+ },
753
+ showEndIconVariant: { group: "showEndIcon", variant: "showEndIcon" },
754
+ isDisabledVariant: { group: "isDisabled", variant: "isDisabled" },
755
+ contentSlot: "children",
756
+ startIconSlot: "startIcon",
757
+ endIconSlot: "endIcon",
758
+ root: "root"
759
+ },
760
+ ref
761
+ );
762
+ if (b.plasmicProps.overrides.root.as === "a") {
763
+ b.plasmicProps.overrides.root.as = PlasmicLink__;
764
+ b.plasmicProps.overrides.root.props.component = Link;
765
+ b.plasmicProps.overrides.root.props.platform = "tanstack";
766
+ }
767
+ return b;
768
+ }
769
+
770
+ const PlasmicDescendants = {
771
+ root: ["root", "startIconContainer", "contentContainer", "endIconContainer"],
772
+ startIconContainer: ["startIconContainer"],
773
+ contentContainer: ["contentContainer"],
774
+ endIconContainer: ["endIconContainer"]
775
+ } as const;
776
+ type NodeNameType = keyof typeof PlasmicDescendants;
777
+ type DescendantsType<T extends NodeNameType> =
778
+ (typeof PlasmicDescendants)[T][number];
779
+ type NodeDefaultElementType = {
780
+ root: "button";
781
+ startIconContainer: "div";
782
+ contentContainer: "div";
783
+ endIconContainer: "div";
784
+ };
785
+
786
+ type ReservedPropsType = "variants" | "args" | "overrides";
787
+ type NodeOverridesType<T extends NodeNameType> = Pick<
788
+ PlasmicButton__OverridesType,
789
+ DescendantsType<T>
790
+ >;
791
+ type NodeComponentProps<T extends NodeNameType> =
792
+ // Explicitly specify variants, args, and overrides as objects
793
+ {
794
+ variants?: PlasmicButton__VariantsArgs;
795
+ args?: PlasmicButton__ArgsType;
796
+ overrides?: NodeOverridesType<T>;
797
+ } & Omit<PlasmicButton__VariantsArgs, ReservedPropsType> & // Specify variants directly as props
798
+ // Specify args directly as props
799
+ Omit<PlasmicButton__ArgsType, ReservedPropsType> &
800
+ // Specify overrides for each element directly as props
801
+ Omit<
802
+ NodeOverridesType<T>,
803
+ ReservedPropsType | VariantPropType | ArgPropType
804
+ > &
805
+ // Specify props for the root element
806
+ Omit<
807
+ Partial<React.ComponentProps<NodeDefaultElementType[T]>>,
808
+ ReservedPropsType | VariantPropType | ArgPropType | DescendantsType<T>
809
+ >;
810
+
811
+ function makeNodeComponent<NodeName extends NodeNameType>(nodeName: NodeName) {
812
+ type PropsType = NodeComponentProps<NodeName> & { key?: React.Key };
813
+ const func = function <T extends PropsType>(
814
+ props: T & StrictProps<T, PropsType>
815
+ ) {
816
+ const { variants, args, overrides } = React.useMemo(
817
+ () =>
818
+ deriveRenderOpts(props, {
819
+ name: nodeName,
820
+ descendantNames: PlasmicDescendants[nodeName],
821
+ internalArgPropNames: PlasmicButton__ArgProps,
822
+ internalVariantPropNames: PlasmicButton__VariantProps
823
+ }),
824
+ [props, nodeName]
825
+ );
826
+ return PlasmicButton__RenderFunc({
827
+ variants,
828
+ args,
829
+ overrides,
830
+ forNode: nodeName
831
+ });
832
+ };
833
+ if (nodeName === "root") {
834
+ func.displayName = "PlasmicButton";
835
+ } else {
836
+ func.displayName = `PlasmicButton.${nodeName}`;
837
+ }
838
+ return func;
839
+ }
840
+
841
+ export const PlasmicButton = Object.assign(
842
+ // Top-level PlasmicButton renders the root element
843
+ makeNodeComponent("root"),
844
+ {
845
+ // Helper components rendering sub-elements
846
+ startIconContainer: makeNodeComponent("startIconContainer"),
847
+ contentContainer: makeNodeComponent("contentContainer"),
848
+ endIconContainer: makeNodeComponent("endIconContainer"),
849
+
850
+ // Metadata about props expected for PlasmicButton
851
+ internalVariantProps: PlasmicButton__VariantProps,
852
+ internalArgProps: PlasmicButton__ArgProps,
853
+
854
+ useBehavior
855
+ }
856
+ );
857
+
858
+ export const PlasmicButton__HeadOptions = {
859
+ meta: [{ name: "twitter:card", content: "summary" }],
860
+
861
+ links: [
862
+ { rel: "stylesheet", href: globalcss },
863
+ { rel: "stylesheet", href: defaultcss },
864
+ { rel: "stylesheet", href: projectcss },
865
+ { rel: "stylesheet", href: sty }
866
+ ]
867
+ } as Record<"meta" | "links", Array<Record<string, string>>>;
868
+
869
+ export default PlasmicButton;
870
+ /* prettier-ignore-end */