From 827e918e77c6ab7b1a685a6d3fa3aaf028d08f2a Mon Sep 17 00:00:00 2001 From: Reo Hakuta Date: Sat, 25 May 2024 12:33:20 +0900 Subject: [PATCH 1/5] =?UTF-8?q?build:=20=F0=9F=93=A6=EF=B8=8F=20(web)=20`@?= =?UTF-8?q?storybook/addon-action`=E3=82=92=E5=B0=8E=E5=85=A5=E3=81=97?= =?UTF-8?q?=E3=81=9F=E3=80=82=20=20(#11)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Nextのルーターの`push()`をモックするため。 --- apps/web/package.json | 1 + pnpm-lock.yaml | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/apps/web/package.json b/apps/web/package.json index c21f774..1035dcb 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -44,6 +44,7 @@ "@pandacss/dev": "0.36.1", "@radix-ui/colors": "3.0.0", "@storybook/addon-a11y": "8.0.5", + "@storybook/addon-actions": "8.1.3", "@storybook/addon-essentials": "8.0.5", "@storybook/addon-interactions": "8.0.5", "@storybook/addon-links": "8.0.5", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4a24a3d..f108046 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -123,6 +123,9 @@ importers: '@storybook/addon-a11y': specifier: 8.0.5 version: 8.0.5 + '@storybook/addon-actions': + specifier: 8.1.3 + version: 8.1.3 '@storybook/addon-essentials': specifier: 8.0.5 version: 8.0.5(@types/react@18.2.52)(react-dom@18.2.0)(react@18.2.0) @@ -3963,6 +3966,17 @@ packages: uuid: 9.0.1 dev: true + /@storybook/addon-actions@8.1.3: + resolution: {integrity: sha512-XG6clFT/lPOHEm/tHdWO3E5G28HIock2272BZNr15+DqVTRYyGRhuFQKxPb+CdRWCpT1VQnWS+L9S1+95wDlJw==} + dependencies: + '@storybook/core-events': 8.1.3 + '@storybook/global': 5.0.0 + '@types/uuid': 9.0.8 + dequal: 2.0.3 + polished: 4.3.1 + uuid: 9.0.1 + dev: true + /@storybook/addon-backgrounds@8.0.5: resolution: {integrity: sha512-XKSnJm6bGVkG9hv6VSK+djz7ZbxEHwVpsSEUKtOEt/ScLFxU0mlsH8dd5aMy9/MAYuB93Y+bJ2SR5kyOjmi1zQ==} dependencies: @@ -4426,6 +4440,13 @@ packages: ts-dedent: 2.2.0 dev: true + /@storybook/core-events@8.1.3: + resolution: {integrity: sha512-eOs4HRrsEZz2FZFlMGwPuH9CGYBK8fkUS7mcHNPv8CqoHV8d3ErvDax8zA/KGRj3S6kWJ4PzI9IGuiDVvwuxhA==} + dependencies: + '@storybook/csf': 0.1.7 + ts-dedent: 2.2.0 + dev: true + /@storybook/core-server@8.0.5(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-aQGHRQZF4jbMqBT0sGptql+S3hiNksi4n6pPJPxGf6TE8TyRA1x7USjmvXHwv59vpmMm9HaRpGWzWCo4SqwNqw==} dependencies: @@ -4547,6 +4568,12 @@ packages: type-fest: 2.19.0 dev: true + /@storybook/csf@0.1.7: + resolution: {integrity: sha512-53JeLZBibjQxi0Ep+/AJTfxlofJlxy1jXcSKENlnKxHjWEYyHQCumMP5yTFjf7vhNnMjEpV3zx6t23ssFiGRyw==} + dependencies: + type-fest: 2.19.0 + dev: true + /@storybook/docs-mdx@3.0.0: resolution: {integrity: sha512-NmiGXl2HU33zpwTv1XORe9XG9H+dRUC1Jl11u92L4xr062pZtrShLmD4VKIsOQujxhhOrbxpwhNOt+6TdhyIdQ==} dev: true From 469bf413a4340dfd8b526f67e505329c610934c0 Mon Sep 17 00:00:00 2001 From: Reo Hakuta Date: Sat, 25 May 2024 12:33:44 +0900 Subject: [PATCH 2/5] =?UTF-8?q?feat:=20=E2=9C=A8=20(``)=20?= =?UTF-8?q?=E3=83=81=E3=82=A7=E3=83=83=E3=82=AF=E3=83=9C=E3=83=83=E3=82=AF?= =?UTF-8?q?=E3=82=B9=E3=82=92=E5=AE=9F=E8=A3=85=E3=81=97=E3=81=9F=E3=80=82?= =?UTF-8?q?=20=20(#11)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web/src/components/Checkbox/Checkbox.tsx | 82 +++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 apps/web/src/components/Checkbox/Checkbox.tsx diff --git a/apps/web/src/components/Checkbox/Checkbox.tsx b/apps/web/src/components/Checkbox/Checkbox.tsx new file mode 100644 index 0000000..226b6ed --- /dev/null +++ b/apps/web/src/components/Checkbox/Checkbox.tsx @@ -0,0 +1,82 @@ +import { Check } from 'lucide-react'; +import { ComponentPropsWithoutRef, forwardRef, ReactNode } from 'react'; +import { css, cx } from 'styled-system/css'; + +export type CheckboxProps = Omit, 'type'> & { + id: string; //