Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
yuki-js committed Dec 10, 2023
1 parent ab2e05c commit 88bb7b5
Show file tree
Hide file tree
Showing 19 changed files with 1,787 additions and 267 deletions.
160 changes: 160 additions & 0 deletions README.md

Large diffs are not rendered by default.

58 changes: 45 additions & 13 deletions frontend/plasmic.json
Original file line number Diff line number Diff line change
Expand Up @@ -971,19 +971,6 @@
"scheme": "blackbox",
"componentType": "component"
},
{
"id": "DuaGFlJLalJe",
"name": "Dialog",
"type": "managed",
"projectId": "4QmempJ4uAWNpTRouKWPHf",
"renderModuleFilePath": "plasmic/xrpense/PlasmicDialog.tsx",
"importSpec": {
"modulePath": "Dialog.tsx"
},
"cssFilePath": "plasmic/xrpense/PlasmicDialog.module.css",
"scheme": "blackbox",
"componentType": "component"
},
{
"id": "53hvCvCAAUUJ",
"name": "Alert",
Expand All @@ -1010,6 +997,46 @@
"scheme": "blackbox",
"componentType": "component",
"plumeType": "button"
},
{
"id": "t62FIGHnQAL5",
"name": "Drawer",
"type": "managed",
"projectId": "4QmempJ4uAWNpTRouKWPHf",
"renderModuleFilePath": "plasmic/xrpense/PlasmicDrawer.tsx",
"importSpec": {
"modulePath": "Drawer.tsx"
},
"cssFilePath": "plasmic/xrpense/PlasmicDrawer.module.css",
"scheme": "blackbox",
"componentType": "component"
},
{
"id": "us1o9GMarTi_",
"name": "Drawer",
"type": "managed",
"projectId": "4QmempJ4uAWNpTRouKWPHf",
"renderModuleFilePath": "plasmic/xrpense/PlasmicDrawer.tsx",
"importSpec": {
"modulePath": "Drawer.tsx"
},
"cssFilePath": "plasmic/xrpense/PlasmicDrawer.module.css",
"scheme": "blackbox",
"componentType": "component"
},
{
"id": "nEy9BLWNBwZh",
"name": "TextInput",
"type": "managed",
"projectId": "4QmempJ4uAWNpTRouKWPHf",
"renderModuleFilePath": "plasmic/xrpense/PlasmicTextInput.tsx",
"importSpec": {
"modulePath": "TextInput.tsx"
},
"cssFilePath": "plasmic/xrpense/PlasmicTextInput.module.css",
"scheme": "blackbox",
"componentType": "component",
"plumeType": "text-input"
}
],
"icons": [
Expand Down Expand Up @@ -1147,6 +1174,11 @@
"id": "g9tRk06ouNlG",
"name": "Icon3Icon",
"moduleFilePath": "plasmic/xrpense/icons/PlasmicIcon__Icon3.tsx"
},
{
"id": "zU9gzLXu5GoG",
"name": "SearchsvgIcon",
"moduleFilePath": "plasmic/xrpense/icons/PlasmicIcon__Searchsvg.tsx"
}
],
"images": [
Expand Down
65 changes: 45 additions & 20 deletions frontend/plasmic.lock
Original file line number Diff line number Diff line change
Expand Up @@ -226,12 +226,12 @@
{
"type": "renderModule",
"assetId": "kFEg42b5zE4G",
"checksum": "75d54aef0ba062783d7e9e45328743b8"
"checksum": "7d1cd72cb93aac23736bbe494722611c"
},
{
"type": "cssRules",
"assetId": "kFEg42b5zE4G",
"checksum": "75d54aef0ba062783d7e9e45328743b8"
"checksum": "7d1cd72cb93aac23736bbe494722611c"
},
{
"type": "renderModule",
Expand Down Expand Up @@ -276,12 +276,12 @@
{
"type": "renderModule",
"assetId": "32to5JyqkBfw",
"checksum": "981fbfaf2a12fcda467c689f3f8e0c1f"
"checksum": "3295256417385a9b116afab2e0fa7381"
},
{
"type": "cssRules",
"assetId": "32to5JyqkBfw",
"checksum": "981fbfaf2a12fcda467c689f3f8e0c1f"
"checksum": "3295256417385a9b116afab2e0fa7381"
},
{
"type": "renderModule",
Expand Down Expand Up @@ -376,22 +376,22 @@
{
"type": "renderModule",
"assetId": "h2Cqfb2WKnuT",
"checksum": "44124ed01e5fb840019c04a5ef4b04aa"
"checksum": "12dcfec545a865744d042d65f47dd93c"
},
{
"type": "cssRules",
"assetId": "h2Cqfb2WKnuT",
"checksum": "44124ed01e5fb840019c04a5ef4b04aa"
"checksum": "12dcfec545a865744d042d65f47dd93c"
},
{
"type": "renderModule",
"assetId": "s6l-4R3u5jmn",
"checksum": "dd86f3651834302d12c6c1ced7542139"
"checksum": "3069ac69a2293ce78e8034bd51d82795"
},
{
"type": "cssRules",
"assetId": "s6l-4R3u5jmn",
"checksum": "dd86f3651834302d12c6c1ced7542139"
"checksum": "3069ac69a2293ce78e8034bd51d82795"
},
{
"type": "renderModule",
Expand Down Expand Up @@ -631,22 +631,12 @@
{
"type": "renderModule",
"assetId": "3QoQepU800a-",
"checksum": "b675bfd6da9d7a0b0cadefd22f730e4d"
"checksum": "4b6f1bdfc5d833b6979a2837a35790ed"
},
{
"type": "cssRules",
"assetId": "3QoQepU800a-",
"checksum": "b675bfd6da9d7a0b0cadefd22f730e4d"
},
{
"type": "renderModule",
"assetId": "DuaGFlJLalJe",
"checksum": "b814901ba702f2f48b9931efd0aa7b47"
},
{
"type": "cssRules",
"assetId": "DuaGFlJLalJe",
"checksum": "b814901ba702f2f48b9931efd0aa7b47"
"checksum": "4b6f1bdfc5d833b6979a2837a35790ed"
},
{
"type": "renderModule",
Expand All @@ -668,6 +658,41 @@
"assetId": "g9tRk06ouNlG",
"checksum": "3922f326ae09b56769cceb3a383f42a6"
},
{
"type": "renderModule",
"assetId": "t62FIGHnQAL5",
"checksum": "920751318bd88d0209e523fa83a5be22"
},
{
"type": "cssRules",
"assetId": "t62FIGHnQAL5",
"checksum": "920751318bd88d0209e523fa83a5be22"
},
{
"type": "renderModule",
"assetId": "us1o9GMarTi_",
"checksum": "d354f4e199f8e95a2cbd68fef604e7f0"
},
{
"type": "cssRules",
"assetId": "us1o9GMarTi_",
"checksum": "d354f4e199f8e95a2cbd68fef604e7f0"
},
{
"type": "renderModule",
"assetId": "nEy9BLWNBwZh",
"checksum": "b80977d52d3fe5db0b70e05d4e607455"
},
{
"type": "cssRules",
"assetId": "nEy9BLWNBwZh",
"checksum": "b80977d52d3fe5db0b70e05d4e607455"
},
{
"type": "icon",
"assetId": "zU9gzLXu5GoG",
"checksum": "9e54b7351ef57d6c2cde1cfa2e8b6c11"
},
{
"assetId": "4QmempJ4uAWNpTRouKWPHf",
"type": "projectCss",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
// This file is owned by you, feel free to edit as you see fit.
import * as React from "react";
import {
PlasmicDialog,
DefaultDialogProps
} from "./plasmic/xrpense/PlasmicDialog";
PlasmicDrawer,
DefaultDrawerProps
} from "./plasmic/xrpense/PlasmicDrawer";

// 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
Expand All @@ -13,31 +13,31 @@ import {
// If you don't want to expose certain variants or slots as a prop, you can use
// Omit to hide them:
//
// interface DialogProps extends Omit<DefaultDialogProps, "hideProps1"|"hideProp2"> {
// interface DrawerProps extends Omit<DefaultDrawerProps, "hideProps1"|"hideProp2"> {
// // etc.
// }
//
// You can also stop extending from DefaultDialogProps altogether and have
// You can also stop extending from DefaultDrawerProps altogether and have
// total control over the props for your component.
export interface DialogProps extends DefaultDialogProps {}
export interface DrawerProps extends DefaultDrawerProps {}

function Dialog(props: DialogProps) {
// Use PlasmicDialog to render this component as it was
function Drawer(props: DrawerProps) {
// Use PlasmicDrawer 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 PlasmicDialog are:
// Props you can pass into PlasmicDrawer 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 DialogProps here, but feel free
// By default, we are just piping all DrawerProps here, but feel free
// to do whatever works for you.

return <PlasmicDialog {...props} />;
return <PlasmicDrawer {...props} />;
}

export default Dialog;
export default Drawer;
28 changes: 28 additions & 0 deletions frontend/src/components/TextInput.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import * as React from "react";
import {
PlasmicTextInput,
DefaultTextInputProps
} from "./plasmic/xrpense/PlasmicTextInput";

import { TextInputRef } from "@plasmicapp/react-web";

export interface TextInputProps extends DefaultTextInputProps {
// Feel free to add any additional props that this component should receive
}
function TextInput_(props: TextInputProps, ref: TextInputRef) {
const { plasmicProps } = PlasmicTextInput.useBehavior<TextInputProps>(
props,
ref
);
return <PlasmicTextInput {...plasmicProps} />;
}

const TextInput = React.forwardRef(TextInput_);

export default Object.assign(
TextInput,

{
__plumeType: "text-input"
}
);
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
justify-self: flex-start;
padding: 0px;
}
.dialog:global(.__wab_instance):global(.__wab_instance) {
.drawer:global(.__wab_instance):global(.__wab_instance) {
max-width: 100%;
position: relative;
}
Expand Down
Loading

0 comments on commit 88bb7b5

Please sign in to comment.