Skip to content

Commit

Permalink
Merge branch 'main' into refactor-theme-directory
Browse files Browse the repository at this point in the history
  • Loading branch information
KaWaite authored Jun 13, 2023
2 parents 05349bb + 0eed12c commit 3a5a192
Show file tree
Hide file tree
Showing 133 changed files with 345 additions and 155 deletions.
12 changes: 0 additions & 12 deletions web/src/beta/components/AdditionButton/index.stories.tsx

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ import React, { useRef, useCallback, useEffect } from "react";
import { usePopper } from "react-popper";

import Icon from "@reearth/beta/components/Icon";
import Portal from "@reearth/beta/components/Portal";
import { styled } from "@reearth/services/theme";

import Portal from "../Portal";

export interface Props {
className?: string;
disabled?: boolean;
Expand Down
2 changes: 1 addition & 1 deletion web/src/beta/lib/core/Crust/Infobox/index.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React, { type ReactNode } from "react";

import AdditionButton from "@reearth/beta/components/AdditionButton";
import Icon from "@reearth/beta/components/Icon";
import Text from "@reearth/beta/components/Text";
import type { Layer } from "@reearth/beta/lib/core/mantle";
import { useT } from "@reearth/services/i18n";
import { styled, useTheme } from "@reearth/services/theme";

import AdditionButton from "./AdditionButton";
import BlockComponent from "./Block";
import Field from "./Field";
import Frame from "./Frame";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Meta, Story } from "@storybook/react";
import Component, { Props } from ".";

export default {
title: "atoms/accordion",
title: "classic/atoms/accordion",
component: Component,
} as Meta;

Expand Down
13 changes: 0 additions & 13 deletions web/src/classic/components/atoms/AdditionButton/index.stories.tsx

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Meta, Story } from "@storybook/react";
import AutoComplete, { Props } from ".";

export default {
title: "atoms/AutoComplete",
title: "classic/atoms/AutoComplete",
component: AutoComplete,
} as Meta;

Expand Down
2 changes: 1 addition & 1 deletion web/src/classic/components/atoms/Avatar/index.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Meta } from "@storybook/react";
import Avatar from ".";

export default {
title: "atoms/Avatar",
title: "classic/atoms/Avatar",
component: Avatar,
} as Meta;

Expand Down
2 changes: 1 addition & 1 deletion web/src/classic/components/atoms/Balloon/index.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const img = {
};

export default {
title: "atoms/Balloon",
title: "classic/atoms/Balloon",
component: Balloon,
} as Meta;

Expand Down
2 changes: 1 addition & 1 deletion web/src/classic/components/atoms/Box/index.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Meta, Story } from "@storybook/react";
import Component, { Props } from ".";

export default {
title: "atoms/Box",
title: "classic/atoms/Box",
component: Component,
} as Meta;

Expand Down
2 changes: 1 addition & 1 deletion web/src/classic/components/atoms/Button/index.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Meta } from "@storybook/react";
import Button from ".";

export default {
title: "atoms/Buttons/Button",
title: "classic/atoms/Buttons/Button",
component: Button,
} as Meta;

Expand Down
2 changes: 1 addition & 1 deletion web/src/classic/components/atoms/Check/index.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Meta } from "@storybook/react";
import Check from ".";

export default {
title: "atoms/Check",
title: "classic/atoms/Check",
component: Check,
} as Meta;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Meta } from "@storybook/react";
import CheckBox from ".";

export default {
title: "atoms/CheckBox",
title: "classic/atoms/CheckBox",
component: CheckBox,
} as Meta;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const items: { value: string; label: string }[] = [
const Check = styled.div<{ value: string; label: string }>``;

export default {
title: "atoms/CheckGroup",
title: "classic/atoms/CheckGroup",
component: CheckGroup,
} as Meta;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useState } from "react";
import ConfirmationModal, { Props } from ".";

export default {
title: "atoms/Modal/ConfirmationModal",
title: "classic/atoms/Modal/ConfirmationModal",
component: ConfirmationModal,
} as Meta;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Meta } from "@storybook/react";
import ContentPicker from ".";

export default {
title: "atoms/Pickers/ContentPicker",
title: "classic/atoms/Pickers/ContentPicker",
component: ContentPicker,
} as Meta;

Expand Down
2 changes: 1 addition & 1 deletion web/src/classic/components/atoms/Divider/index.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Meta } from "@storybook/react";
import Divider from ".";

export default {
title: "atoms/Divider",
title: "classic/atoms/Divider",
component: Divider,
} as Meta;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const Wrapper: React.FC<{ children: ReactNode }> = ({ children }) => (
);

export default {
title: "atoms/Dropdown",
title: "classic/atoms/Dropdown",
component: Dropdown,
} as Meta;

Expand Down
2 changes: 1 addition & 1 deletion web/src/classic/components/atoms/Flex/index.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Meta, Story } from "@storybook/react";
import Component, { Props } from ".";

export default {
title: "atoms/flex",
title: "classic/atoms/flex",
component: Component,
} as Meta;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Story, Meta } from "@storybook/react";
import Component, { Props } from ".";

export default {
title: "atoms/HelpButton",
title: "classic/atoms/HelpButton",
component: Component,
} as Meta;

Expand Down
2 changes: 1 addition & 1 deletion web/src/classic/components/atoms/Icon/index.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const icon =
'<svg stroke="white" fill="#00A0E8" stroke-width="2" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" class="css-1t9xarj" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path><circle cx="12" cy="10" r="3"></circle></svg>';

export default {
title: "atoms/Icon",
title: "classic/atoms/Icon",
component: Icon,
} as Meta;

Expand Down
2 changes: 1 addition & 1 deletion web/src/classic/components/atoms/Loading/index.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Meta } from "@storybook/react";
import Loading from ".";

export default {
title: "atoms/Loading",
title: "classic/atoms/Loading",
component: Loading,
} as Meta;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ A table:
`;

export default {
title: "atoms/Markdown",
title: "classic/atoms/Markdown",
component: Component,
parameters: { actions: { argTypesRegex: "^on.*" } },
} as Meta;
Expand Down
2 changes: 1 addition & 1 deletion web/src/classic/components/atoms/Modal/index.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Modal from ".";

const meta: Meta<typeof Modal> = {
component: Modal,
title: "atoms/Modal",
title: "classic/atoms/Modal",
};

export default meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Meta } from "@storybook/react";
import NotFound from ".";

export default {
title: "atoms/NotFound",
title: "classic/atoms/NotFound",
component: NotFound,
} as Meta;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Meta } from "@storybook/react";
import Notification from ".";

export default {
title: "atoms/NotificationBanner",
title: "classic/atoms/NotificationBanner",
component: Notification,
} as Meta;

Expand Down
2 changes: 1 addition & 1 deletion web/src/classic/components/atoms/Overlay/index.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const Container: React.FC<{ children?: ReactNode }> = ({ children }) => (
);

export default {
title: "atoms/Overlay",
title: "classic/atoms/Overlay",
component: Overlay,
} as Meta;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useRef } from "react";
import Component, { Props, Ref } from ".";

export default {
title: "atoms/Plugin/IFrame(classic)",
title: "classic/atoms/Plugin/IFrame(classic)",
component: Component,
argTypes: {
onLoad: { action: "onLoad" },
Expand Down
2 changes: 1 addition & 1 deletion web/src/classic/components/atoms/Plugin/index.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { useRef } from "react";
import Component, { Props, Ref } from ".";

export default {
title: "atoms/Plugin(classic)",
title: "classic/atoms/Plugin(classic)",
component: Component,
parameters: { actions: { argTypesRegex: "^on.*" } },
} as Meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Meta } from "@storybook/react";
import PublicationStatus from ".";

export default {
title: "atoms/PublicationStatus",
title: "classic/atoms/PublicationStatus",
component: PublicationStatus,
} as Meta;

Expand Down
2 changes: 1 addition & 1 deletion web/src/classic/components/atoms/Radio/index.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Meta } from "@storybook/react";
import Radio from ".";

export default {
title: "atoms/Radio",
title: "classic/atoms/Radio",
component: Radio,
} as Meta;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Meta } from "@storybook/react";
import RadioButton from ".";

export default {
title: "atoms/Buttons/RadioButton",
title: "classic/atoms/Buttons/RadioButton",
component: RadioButton,
} as Meta;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const items: { value: string; label: string }[] = [
const Radio = styled.div<{ value: string; label: string }>``;

export default {
title: "atoms/RadioGroup",
title: "classic/atoms/RadioGroup",
component: RadioGroup,
} as Meta;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Meta } from "@storybook/react";
import RadioLabel from ".";

export default {
title: "atoms/RadioLabel",
title: "classic/atoms/RadioLabel",
component: RadioLabel,
} as Meta;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const items: RadioLabelProps[] = [
];

export default {
title: "atoms/RadioLabelGroup",
title: "classic/atoms/RadioLabelGroup",
component: RadioLabelGroup,
} as Meta;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const Pane = <div style={{ flex: 1, background: "#ffffff" }} />;
const Content = <div style={{ width: "100%", height: "100%", background: "#ffffff" }} />;

export default {
title: "atoms/Resizable",
title: "classic/atoms/Resizable",
component: Resizable,
} as Meta;

Expand Down
2 changes: 1 addition & 1 deletion web/src/classic/components/atoms/Scroll/index.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Meta, Story } from "@storybook/react";
import Component, { Props } from ".";

export default {
title: "atoms/Scroll",
title: "classic/atoms/Scroll",
component: Component,
parameters: { actions: { argTypesRegex: "^on.*" } },
} as Meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Meta, Story } from "@storybook/react";
import Component, { Props } from ".";

export default {
title: "atoms/SearchBar",
title: "classic/atoms/SearchBar",
component: Component,
} as Meta;

Expand Down
2 changes: 1 addition & 1 deletion web/src/classic/components/atoms/Select/index.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const items: { value: string; label: string }[] = [
];

export default {
title: "atoms/Select",
title: "classic/atoms/Select",
component: Select,
} as Meta;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Meta, Story } from "@storybook/react";
import Component, { Props } from ".";

export default {
title: "atoms/SelectBox",
title: "classic/atoms/SelectBox",
component: Component,
parameters: { actions: { argTypesRegex: "^on.*" } },
} as Meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Meta } from "@storybook/react";
import { Option } from ".";

export default {
title: "atoms/SelectOption",
title: "classic/atoms/SelectOption",
component: Option,
} as Meta;

Expand Down
2 changes: 1 addition & 1 deletion web/src/classic/components/atoms/Slide/index.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const Page = styled.div`
`;

export default {
title: "atoms/Slide",
title: "classic/atoms/Slide",
component: Slide,
} as Meta;

Expand Down
2 changes: 1 addition & 1 deletion web/src/classic/components/atoms/Slider/index.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Meta } from "@storybook/react";
import Slider from ".";

export default {
title: "atoms/Slider",
title: "classic/atoms/Slider",
component: Slider,
} as Meta;

Expand Down
Loading

0 comments on commit 3a5a192

Please sign in to comment.