Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[plasmic] Sync project Paziresh24/Booking #360

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .plasmic/Schedules.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
// This is a skeleton starter React component generated by Plasmic.
// This file is owned by you, feel free to edit as you see fit.
import * as React from "react";
import {
PlasmicSchedules,
DefaultSchedulesProps
} from "./plasmic/paziresh_24_booking/PlasmicSchedules";
import { HTMLElementRefOf } from "@plasmicapp/react-web";

// Your component props start with props for variants and slots you defined
// in Plasmic, but you can add more here, like event handlers that you can
// attach to named nodes in your component.
//
// If you don't want to expose certain variants or slots as a prop, you can use
// Omit to hide them:
//
// interface SchedulesProps extends Omit<DefaultSchedulesProps, "hideProps1"|"hideProp2"> {
// // etc.
// }
//
// You can also stop extending from DefaultSchedulesProps altogether and have
// total control over the props for your component.
export interface SchedulesProps extends DefaultSchedulesProps {}

function Schedules_(props: SchedulesProps, ref: HTMLElementRefOf<"div">) {
// Use PlasmicSchedules to render this component as it was
// designed in Plasmic, by activating the appropriate variants,
// attaching the appropriate event handlers, etc. You
// can also install whatever React hooks you need here to manage state or
// fetch data.
//
// Props you can pass into PlasmicSchedules are:
// 1. Variants you want to activate,
// 2. Contents for slots you want to fill,
// 3. Overrides for any named node in the component to attach behavior and data,
// 4. Props to set on the root node.
//
// By default, we are just piping all SchedulesProps here, but feel free
// to do whatever works for you.

return <PlasmicSchedules root={{ ref }} {...props} />;
}

const Schedules = React.forwardRef(Schedules_);
export default Schedules;
2 changes: 0 additions & 2 deletions .plasmic/plasmic/fragment_design_system/PlasmicAvatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,6 @@ function PlasmicAvatar__RenderFunc(props: {
const refsRef = React.useRef({});
const $refs = refsRef.current;

const currentUser = useCurrentUser?.() || {};

const stateSpecs: Parameters<typeof useDollarState>[0] = React.useMemo(
() => [
{
Expand Down
2 changes: 0 additions & 2 deletions .plasmic/plasmic/fragment_design_system/PlasmicButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,6 @@ function PlasmicButton__RenderFunc(props: {
const refsRef = React.useRef({});
const $refs = refsRef.current;

const currentUser = useCurrentUser?.() || {};

const stateSpecs: Parameters<typeof useDollarState>[0] = React.useMemo(
() => [
{
Expand Down
2 changes: 0 additions & 2 deletions .plasmic/plasmic/fragment_design_system/PlasmicChip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,6 @@ function PlasmicChip__RenderFunc(props: {
const refsRef = React.useRef({});
const $refs = refsRef.current;

const currentUser = useCurrentUser?.() || {};

const stateSpecs: Parameters<typeof useDollarState>[0] = React.useMemo(
() => [
{
Expand Down
13 changes: 5 additions & 8 deletions .plasmic/plasmic/fragment_design_system/PlasmicDialog.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,16 @@
.dialogContent:global(.__wab_instance) {
box-shadow: 0px 4px 16px 0px #00000033;
background: rgb(255, 255, 255);
max-width: 500px;
max-width: 600px;
object-fit: cover;
position: relative;
left: auto;
top: auto;
min-width: 500px;
min-width: 600px;
max-height: 100%;
overflow: visible;
overflow: auto;
border-radius: 8px;
padding: var(--token-Fv8-L_kN-2Ma);
border: 1px solid #e2e8f0;
}
@media (min-width: 0px) and (max-width: 768px) {
Expand All @@ -79,7 +80,6 @@
width: 100%;
max-width: 100%;
min-width: 0;
padding: var(--token-W6cMLA0AZVBO);
}
.freeBox__nMxG > :global(.__wab_flex-container) {
flex-direction: column;
Expand Down Expand Up @@ -131,11 +131,8 @@
width: 100%;
height: auto;
max-width: 100%;
padding-left: var(--token-Fv8-L_kN-2Ma);
padding-right: var(--token-Fv8-L_kN-2Ma);
padding-bottom: var(--token-Fv8-L_kN-2Ma);
overflow: auto;
max-height: 100%;
margin-top: var(--token-vMUQwr5Jto1d);
min-width: 0;
}
.text___3SYz9 {
Expand Down
2 changes: 0 additions & 2 deletions .plasmic/plasmic/fragment_design_system/PlasmicDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,6 @@ function PlasmicDialog__RenderFunc(props: {
const refsRef = React.useRef({});
const $refs = refsRef.current;

const currentUser = useCurrentUser?.() || {};

const stateSpecs: Parameters<typeof useDollarState>[0] = React.useMemo(
() => [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,6 @@ export const ScreenContext = React.createContext<ScreenValue[] | undefined>(
"PLEASE_RENDER_INSIDE_PROVIDER" as any
);

/**
* @deprecated Plasmic now uses a custom hook for Screen variants, which is
* automatically included in your components. Please remove this provider
* from your code.
*/
export function ScreenVariantProvider(props: React.PropsWithChildren) {
console.warn(
"DEPRECATED: Plasmic now uses a custom hook for Screen variants, which is automatically included in your components. Please remove this provider from your code."
);
return props.children;
}

export const useScreenVariants = createUseScreenVariants(true, {
mobileOnly: "(min-width:0px) and (max-width:768px)",
});
Expand Down
2 changes: 0 additions & 2 deletions .plasmic/plasmic/fragment_design_system/PlasmicLineClamp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,6 @@ function PlasmicLineClamp__RenderFunc(props: {
const refsRef = React.useRef({});
const $refs = refsRef.current;

const currentUser = useCurrentUser?.() || {};

return (
<div
data-plasmic-name={"root"}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,6 @@ function PlasmicMultilineTextInput__RenderFunc(props: {
const refsRef = React.useRef({});
const $refs = refsRef.current;

const currentUser = useCurrentUser?.() || {};

const stateSpecs: Parameters<typeof useDollarState>[0] = React.useMemo(
() => [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,6 @@ function PlasmicRtlProvider__RenderFunc(props: {
const refsRef = React.useRef({});
const $refs = refsRef.current;

const currentUser = useCurrentUser?.() || {};

return (
<div
data-plasmic-name={"root"}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
// @ts-nocheck
/* eslint-disable */
/* tslint:disable */
// This class is auto-generated by Plasmic; please do not edit!
// Plasmic Project: 8NbkXymcLwvMUC2yXeRrWk

import * as React from "react";
import { hasVariant, ensureGlobalVariants } from "@plasmicapp/react-web";
import { AuthGlobalContext } from "@/common/fragment/authGlobalContext"; // plasmic-import: iBaF5ywj0AJ8/codeComponent
import { Fragment } from "@/common/fragment/designSystemGlobalContext"; // plasmic-import: KPPZOncTz2u1/codeComponent
import { GrowthbookGlobalContext } from "@/common/fragment/growthbookGlobalContext"; // plasmic-import: VkD3uYb7XY3e/codeComponent

export interface GlobalContextsProviderProps {
children?: React.ReactElement;
authGlobalContextProps?: Partial<
Omit<React.ComponentProps<typeof AuthGlobalContext>, "children">
>;
fragmentProps?: Partial<
Omit<React.ComponentProps<typeof Fragment>, "children">
>;
growthbookGlobalContextProps?: Partial<
Omit<React.ComponentProps<typeof GrowthbookGlobalContext>, "children">
>;
}

export default function GlobalContextsProvider(
props: GlobalContextsProviderProps
) {
const {
children,
authGlobalContextProps,
fragmentProps,
growthbookGlobalContextProps
} = props;

return (
<AuthGlobalContext
{...authGlobalContextProps}
previewToken={
authGlobalContextProps && "previewToken" in authGlobalContextProps
? authGlobalContextProps.previewToken!
: undefined
}
>
<Fragment {...fragmentProps}>
<GrowthbookGlobalContext
{...growthbookGlobalContextProps}
apiHost={
growthbookGlobalContextProps &&
"apiHost" in growthbookGlobalContextProps
? growthbookGlobalContextProps.apiHost!
: undefined
}
clientKey={
growthbookGlobalContextProps &&
"clientKey" in growthbookGlobalContextProps
? growthbookGlobalContextProps.clientKey!
: undefined
}
previewAttributes={
growthbookGlobalContextProps &&
"previewAttributes" in growthbookGlobalContextProps
? growthbookGlobalContextProps.previewAttributes!
: undefined
}
>
{children}
</GrowthbookGlobalContext>
</Fragment>
</AuthGlobalContext>
);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// @ts-nocheck
/* eslint-disable */
/* tslint:disable */
/* prettier-ignore-start */

import * as React from "react";
import { createUseScreenVariants } from "@plasmicapp/react-web";

export type ScreenValue = "mobileOnly";
export const ScreenContext = React.createContext<ScreenValue[] | undefined>(
"PLEASE_RENDER_INSIDE_PROVIDER" as any
);

export const useScreenVariants = createUseScreenVariants(true, {
mobileOnly: "(min-width:0px) and (max-width:768px)",
});

export default ScreenContext;
/* prettier-ignore-end */
Loading
Loading