The Open Standard for Generative UI
Check box radio switch (#6)
Ankit Das7afda586e732
diff --git a/frontend-sdk/packages/react-ui/package.json b/frontend-sdk/packages/react-ui/package.jsonindex c1b77458a..656acbc00 100644--- a/frontend-sdk/packages/react-ui/package.json+++ b/frontend-sdk/packages/react-ui/package.json@@ -39,8 +39,11 @@},"dependencies": {"@radix-ui/react-aspect-ratio": "^1.1.1",+ "@radix-ui/react-checkbox": "^1.1.3","@radix-ui/react-label": "^2.1.1",+ "@radix-ui/react-radio-group": "^1.2.2","@radix-ui/react-select": "^2.1.4",+ "@radix-ui/react-switch": "^1.1.2","@radix-ui/react-slider": "^1.2.2","@storybook/addon-styling-webpack": "^1.0.1","clsx": "^2.0.0",diff --git a/frontend-sdk/packages/react-ui/src/components/CheckBoxGroup/CheckBoxGroup.tsx b/frontend-sdk/packages/react-ui/src/components/CheckBoxGroup/CheckBoxGroup.tsxnew file mode 100644index 000000000..b24fefff1--- /dev/null+++ b/frontend-sdk/packages/react-ui/src/components/CheckBoxGroup/CheckBoxGroup.tsx@@ -0,0 +1,27 @@+import clsx from "clsx";+import React from "react";+import { CheckBoxItemProps } from "../CheckBoxItem";++interface CheckBoxGroupProps {+ children: React.ReactElement<CheckBoxItemProps> | React.ReactElement<CheckBoxItemProps>[];+ className?: string;+ style?: React.CSSProperties;+ variant?: "clear" | "card" | "sunk";+}++const CheckBoxGroup = React.forwardRef<HTMLDivElement, CheckBoxGroupProps>((props, ref) => {+ const { children, className, style, variant = "clear" } = props;+ return (+ <div+ ref={ref}+ className={clsx("crayon-checkbox-group", `crayon-checkbox-group-${variant}`, className)}+ style={style}+ >+ {children}+ </div>+ );+});++CheckBoxGroup.displayName = "CheckBoxGroup";++export { CheckBoxGroup, type CheckBoxGroupProps };diff --git a/frontend-sdk/packages/react-ui/src/components/CheckBoxGroup/checkBoxGroup.scss b/frontend-sdk/packages/react-ui/src/components/CheckBoxGroup/checkBoxGroup.scssnew file mode 100644index 000000000..de6be6b5f--- /dev/null+++ b/frontend-sdk/packages/react-ui/src/components/CheckBoxGroup/checkBoxGroup.scss@@ -0,0 +1,28 @@+@use "sass:map";+@use "../../cssUtils" as cssUtils;++.crayon-checkbox-group {+ box-sizing: border-box;+ display: flex;+ flex-direction: column;+ gap: map.get(cssUtils.$spacing, "2xs");+ border: 1px solid;+ border-radius: map.get(cssUtils.$radius, "m");++ &-clear {+ border-color: transparent;+ background-color: transparent;+ padding: map.get(cssUtils.$spacing, "0");+ }++ &-card {+ border-color: map.get(cssUtils.$colors, "strokes", "default");+ padding: map.get(cssUtils.$spacing, "l");+ }++ &-sunk {+ border-color: map.get(cssUtils.$colors, "strokes", "default");+ background-color: map.get(cssUtils.$colors, "fills", "sunk");+ padding: map.get(cssUtils.$spacing, "l");+ }+}diff --git a/frontend-sdk/packages/react-ui/src/components/CheckBoxGroup/index.ts b/frontend-sdk/packages/react-ui/src/components/CheckBoxGroup/index.tsnew file mode 100644index 000000000..5c13819c0--- /dev/null+++ b/frontend-sdk/packages/react-ui/src/components/CheckBoxGroup/index.ts@@ -0,0 +1 @@+export * from "./CheckBoxGroup";diff --git a/frontend-sdk/packages/react-ui/src/components/CheckBoxGroup/stories/CheckBoxGroup.stories.tsx b/frontend-sdk/packages/react-ui/src/components/CheckBoxGroup/stories/CheckBoxGroup.stories.tsxnew file mode 100644index 000000000..f6a05268f--- /dev/null+++ b/frontend-sdk/packages/react-ui/src/components/CheckBoxGroup/stories/CheckBoxGroup.stories.tsx@@ -0,0 +1,82 @@+import type { Meta, StoryObj } from "@storybook/react";+import { CheckBoxItem } from "../../CheckBoxItem";+import "../../CheckBoxItem/checkBoxItem.scss";+import "../../FormControl/Label/label.scss";+import { CheckBoxGroup } from "../CheckBoxGroup";+import "../checkBoxGroup.scss";++const meta = {+ title: "Components/CheckBoxGroup",+ component: CheckBoxGroup,+ parameters: {+ layout: "centered",+ },+ tags: ["autodocs"],+} satisfies Meta<typeof CheckBoxGroup>;++export default meta;+type Story = StoryObj<typeof meta>;++export const Default: Story = {+ args: {+ children: [+ <CheckBoxItem key="1" label="Option 1" onChange={() => {}} />,+ <CheckBoxItem key="2" label="Option 2" onChange={() => {}} />,+ <CheckBoxItem key="3" label="Option 3" onChange={() => {}} />,+ ],+ },+};++export const ClearVariant: Story = {+ args: {+ variant: "clear",+ children: [+ <CheckBoxItem key="1" label="Clear Option 1" onChange={() => {}} />,+ <CheckBoxItem key="2" label="Clear Option 2" onChange={() => {}} />,+ <CheckBoxItem key="3" label="Clear Option 3" onChange={() => {}} />,+ ],+ },+};++export const CardVariant: Story = {+ args: {+ variant: "card",+ children: [+ <CheckBoxItem key="1" label="Card Option 1" onChange={() => {}} />,+ <CheckBoxItem key="2" label="Card Option 2" onChange={() => {}} />,+ <CheckBoxItem key="3" label="Card Option 3" onChange={() => {}} />,+ ],+ },+};++export const SunkVariant: Story = {+ args: {+ variant: "sunk",+ children: [+ <CheckBoxItem key="1" label="Sunk Option 1" onChange={() => {}} />,+ <CheckBoxItem key="2" label="Sunk Option 2" onChange={() => {}} />,+ <CheckBoxItem key="3" label="Sunk Option 3" onChange={() => {}} />,+ ],+ },+};++export const WithCustomClassName: Story = {+ args: {+ className: "custom-class",+ children: [+ <CheckBoxItem key="1" label="Custom Class Option 1" onChange={() => {}} />,+ <CheckBoxItem key="2" label="Custom Class Option 2" onChange={() => {}} />,+ ],+ },+};++export const WithCustomStyle: Story = {+ args: {+ style: { maxWidth: "300px" },+ variant: "card",+ children: [+ <CheckBoxItem key="1" label="Custom Style Option 1" onChange={() => {}} />,+ <CheckBoxItem key="2" label="Custom Style Option 2" onChange={() => {}} />,+ ],+ },+};diff --git a/frontend-sdk/packages/react-ui/src/components/CheckBoxItem/CheckBoxItem.tsx b/frontend-sdk/packages/react-ui/src/components/CheckBoxItem/CheckBoxItem.tsxnew file mode 100644index 000000000..0e40bffd4--- /dev/null+++ b/frontend-sdk/packages/react-ui/src/components/CheckBoxItem/CheckBoxItem.tsx@@ -0,0 +1,49 @@+import * as Checkbox from "@radix-ui/react-checkbox";+import clsx from "clsx";+import { Check } from "lucide-react";+import React, { useId } from "react";+import { Label } from "../FormControl";++export interface CheckBoxItemProps {+ label?: React.ReactNode;+ className?: string;+ style?: React.CSSProperties;+ checked?: boolean;+ defaultChecked?: boolean;+ disabled?: boolean;+ required?: boolean;+ name?: string;+ value?: string;+ checkedIcon?: React.ReactNode;+ onChange?: (checked: boolean) => void;+}++const CheckBoxItem = React.forwardRef<HTMLButtonElement, CheckBoxItemProps>((props, ref) => {+ const { label, onChange, className, disabled, ...rest } = props;+ const id = useId();+ return (+ <div className="crayon-checkbox-item-container">+ <Checkbox.Root+ ref={ref}+ onCheckedChange={onChange}+ {...rest}+ id={id}+ className={clsx("crayon-checkbox-item-root", className)}+ disabled={disabled}+ >+ <Checkbox.Indicator className="crayon-checkbox-item-indicator">+ <Check size={11} />+ </Checkbox.Indicator>+ </Checkbox.Root>+ {label && (+ <Label htmlFor={id} className="crayon-checkbox-item-label" disabled={disabled}>+ {label}+ </Label>+ )}+ </div>+ );+});++CheckBoxItem.displayName = "CheckBoxItem";++export { CheckBoxItem };diff --git a/frontend-sdk/packages/react-ui/src/components/CheckBoxItem/checkBoxItem.scss b/frontend-sdk/packages/react-ui/src/components/CheckBoxItem/checkBoxItem.scssnew file mode 100644index 000000000..132e1be2f--- /dev/null+++ b/frontend-sdk/packages/react-ui/src/components/CheckBoxItem/checkBoxItem.scss@@ -0,0 +1,49 @@+@use "sass:map";+@use "../../cssUtils" as cssUtils;++.crayon-checkbox-item-container {+ display: flex;+ align-items: center;+ gap: map.get(cssUtils.$spacing, "2xs");+ width: 100%;+ max-width: 100%;+ overflow: hidden;+ padding-top: map.get(cssUtils.$spacing, "3xs");+ padding-bottom: map.get(cssUtils.$spacing, "3xs");+ padding-left: map.get(cssUtils.$spacing, "0");+ padding-right: map.get(cssUtils.$spacing, "2xs");+}++.crayon-checkbox-item-root {+ display: inline-flex;+ align-items: center;+ justify-content: center;+ width: 14px;+ height: 14px;+ border-radius: 2px;+ border: 1px solid map.get(cssUtils.$colors, "strokes", "interactive-el");+ background-color: map.get(cssUtils.$colors, "fills", "container");+ cursor: pointer;++ &:not(:disabled):hover {+ border-color: map.get(cssUtils.$colors, "strokes", "interactive-el-hover");+ }++ &:disabled {+ cursor: not-allowed;+ color: map.get(cssUtils.$colors, "text", "disabled");+ }+}++.crayon-checkbox-item-indicator {+ display: flex;+ align-items: center;+ justify-content: center;+}++.crayon-checkbox-item-label {+ flex: 1;+ &:disabled {+ color: map.get(cssUtils.$colors, "text", "disabled");+ }+}diff --git a/frontend-sdk/packages/react-ui/src/components/CheckBoxItem/index.ts b/frontend-sdk/packages/react-ui/src/components/CheckBoxItem/index.tsnew file mode 100644index 000000000..f39caa480--- /dev/null+++ b/frontend-sdk/packages/react-ui/src/components/CheckBoxItem/index.ts@@ -0,0 +1 @@+export * from "./CheckBoxItem";diff --git a/frontend-sdk/packages/react-ui/src/components/CheckBoxItem/stories/CheckBoxItem.stories.tsx b/frontend-sdk/packages/react-ui/src/components/CheckBoxItem/stories/CheckBoxItem.stories.tsxnew file mode 100644index 000000000..6c53dd79f--- /dev/null+++ b/frontend-sdk/packages/react-ui/src/components/CheckBoxItem/stories/CheckBoxItem.stories.tsx@@ -0,0 +1,70 @@+import type { Meta, StoryObj } from "@storybook/react";+import "../../FormControl/Label/label.scss";+import { CheckBoxItem } from "../CheckBoxItem";+import "../checkBoxItem.scss";++const meta: Meta<typeof CheckBoxItem> = {+ title: "Components/CheckBoxItem",+ component: CheckBoxItem,+ parameters: {+ layout: "centered",+ },+ tags: ["autodocs"],+};++export default meta;+type Story = StoryObj<typeof CheckBoxItem>;++export const Default: Story = {+ args: {+ label: "Default Checkbox",+ onChange: (checked) => console.log("Checkbox changed:", checked),+ },+};++export const Checked: Story = {+ args: {+ label: "Checked Checkbox",+ checked: true,+ onChange: (checked) => console.log("Checkbox changed:", checked),+ },+};++export const Disabled: Story = {+ args: {+ label: "Disabled Checkbox",+ disabled: true,+ onChange: (checked) => console.log("Checkbox changed:", checked),+ },+};++export const DisabledChecked: Story = {+ args: {+ label: "Disabled Checked Checkbox",+ disabled: true,+ checked: true,+ onChange: (checked) => console.log("Checkbox changed:", checked),+ },+};++export const Required: Story = {+ args: {+ label: "Required Checkbox",+ required: true,+ onChange: (checked) => console.log("Checkbox changed:", checked),+ },+};++export const WithCustomClassName: Story = {+ args: {+ label: "Custom Styled Checkbox",+ className: "custom-checkbox",+ onChange: (checked) => console.log("Checkbox changed:", checked),+ },+};++export const WithoutLabel: Story = {+ args: {+ onChange: (checked) => console.log("Checkbox changed:", checked),+ },+};diff --git a/frontend-sdk/packages/react-ui/src/components/FollowUpItem/followUpItem.scss b/frontend-sdk/packages/react-ui/src/components/FollowUpItem/followUpItem.scssindex 4b88aa59b..acb43b1f6 100644--- a/frontend-sdk/packages/react-ui/src/components/FollowUpItem/followUpItem.scss+++ b/frontend-sdk/packages/react-ui/src/components/FollowUpItem/followUpItem.scss@@ -3,6 +3,7 @@.crayon-follow-up-item {@include cssUtils.typography(primary, default);+ box-sizing: border-box;padding: map.get(cssUtils.$spacing, "xs") map.get(cssUtils.$spacing, "s");border-bottom: 1px solid map.get(cssUtils.$colors, "strokes", "default");border-top: 0;diff --git a/frontend-sdk/packages/react-ui/src/components/FormControl/Hint/Hint.tsx b/frontend-sdk/packages/react-ui/src/components/FormControl/Hint/Hint.tsxindex b7fa281df..2e4be465e 100644--- a/frontend-sdk/packages/react-ui/src/components/FormControl/Hint/Hint.tsx+++ b/frontend-sdk/packages/react-ui/src/components/FormControl/Hint/Hint.tsx@@ -1,6 +1,5 @@import clsx from "clsx";import React, { forwardRef } from "react";-import "./hint.scss";export interface HintProps extends React.ComponentPropsWithoutRef<"div"> {children: React.ReactNode;diff --git a/frontend-sdk/packages/react-ui/src/components/FormControl/Label/Label.tsx b/frontend-sdk/packages/react-ui/src/components/FormControl/Label/Label.tsxindex 007fa2f15..9081888e3 100644--- a/frontend-sdk/packages/react-ui/src/components/FormControl/Label/Label.tsx+++ b/frontend-sdk/packages/react-ui/src/components/FormControl/Label/Label.tsx@@ -1,20 +1,20 @@import * as LabelPrimitive from "@radix-ui/react-label";import clsx from "clsx";import React, { forwardRef } from "react";-import "./label.scss";export interface LabelProps extends React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> {children: React.ReactNode;className?: string;style?: React.CSSProperties;+ disabled?: boolean;}const Label = forwardRef<HTMLLabelElement, LabelProps>(- ({ children, className, style, ...props }, ref) => {+ ({ children, className, style, disabled, ...props }, ref) => {return (<LabelPrimitive.Rootref={ref}- className={clsx("crayon-label", className)}+ className={clsx("crayon-label", { "crayon-label-disabled": disabled }, className)}style={style}{...props}>diff --git a/frontend-sdk/packages/react-ui/src/components/FormControl/Label/label.scss b/frontend-sdk/packages/react-ui/src/components/FormControl/Label/label.scssindex 7596c724f..93d68c6a9 100644--- a/frontend-sdk/packages/react-ui/src/components/FormControl/Label/label.scss+++ b/frontend-sdk/packages/react-ui/src/components/FormControl/Label/label.scss@@ -4,4 +4,9 @@.crayon-label {@include cssUtils.typography(label, default);color: map.get(cssUtils.$colors, "text", "primary");++ &-disabled {+ color: map.get(cssUtils.$colors, "text", "disabled");+ cursor: not-allowed;+ }}diff --git a/frontend-sdk/packages/react-ui/src/components/FormControl/stories/FormControl.stories.tsx b/frontend-sdk/packages/react-ui/src/components/FormControl/stories/FormControl.stories.tsxindex c5c22f16f..51d28023f 100644--- a/frontend-sdk/packages/react-ui/src/components/FormControl/stories/FormControl.stories.tsx+++ b/frontend-sdk/packages/react-ui/src/components/FormControl/stories/FormControl.stories.tsx@@ -2,7 +2,9 @@ import type { Meta, StoryObj } from "@storybook/react";import { Input } from "../../Input";import { FormControl } from "../FormControl";import { Hint } from "../Hint";+import "../Hint/hint.scss";import { Label } from "../Label";+import "../Label/label.scss";const meta: Meta<typeof FormControl> = {title: "Components/FormControl",diff --git a/frontend-sdk/packages/react-ui/src/components/Input/input.scss b/frontend-sdk/packages/react-ui/src/components/Input/input.scssindex 415cae55a..f1f95ccf4 100644--- a/frontend-sdk/packages/react-ui/src/components/Input/input.scss+++ b/frontend-sdk/packages/react-ui/src/components/Input/input.scss@@ -2,6 +2,7 @@@use "../../cssUtils" as cssUtils;.crayon-input {+ @include cssUtils.typography(body, default);border: 1px solid map.get(cssUtils.$colors, "strokes", "default");border-radius: map.get(cssUtils.$radius, "xs");box-sizing: border-box;@@ -28,8 +29,7 @@&:disabled {background-color: map.get(cssUtils.$colors, "fills", "container");- // border: 1px solid map.get(cssUtils.$colors, "strokes", "default");- border: 1px solid red;+ border: 1px solid map.get(cssUtils.$colors, "strokes", "default");cursor: not-allowed;}}diff --git a/frontend-sdk/packages/react-ui/src/components/RadioGroup/RadioGroup.tsx b/frontend-sdk/packages/react-ui/src/components/RadioGroup/RadioGroup.tsxnew file mode 100644index 000000000..b42fb6d7b--- /dev/null+++ b/frontend-sdk/packages/react-ui/src/components/RadioGroup/RadioGroup.tsx@@ -0,0 +1,25 @@+import * as Radio from "@radix-ui/react-radio-group";+import clsx from "clsx";+import { RadioItemProps } from "../RadioItem";++interface RadioGroupProps extends Radio.RadioGroupProps {+ children: React.ReactElement<RadioItemProps>;+ variant?: "clear" | "card" | "sunk";+ className?: string;+ style?: React.CSSProperties;+}++const RadioGroup = (props: RadioGroupProps) => {+ const { children, className, style, variant = "clear", ...rest } = props;+ return (+ <Radio.Root+ className={clsx("crayon-radio-group", `crayon-radio-group-${variant}`, className)}+ style={style}+ {...rest}+ >+ {children}+ </Radio.Root>+ );+};++export { RadioGroup, type RadioGroupProps };diff --git a/frontend-sdk/packages/react-ui/src/components/RadioGroup/index.ts b/frontend-sdk/packages/react-ui/src/components/RadioGroup/index.tsnew file mode 100644index 000000000..e69de29bbdiff --git a/frontend-sdk/packages/react-ui/src/components/RadioGroup/radioGroup.scss b/frontend-sdk/packages/react-ui/src/components/RadioGroup/radioGroup.scssnew file mode 100644index 000000000..51cf964a6--- /dev/null+++ b/frontend-sdk/packages/react-ui/src/components/RadioGroup/radioGroup.scss@@ -0,0 +1,28 @@+@use "sass:map";+@use "../../cssUtils" as cssUtils;++.crayon-radio-group {+ box-sizing: border-box;+ display: flex;+ flex-direction: column;+ gap: map.get(cssUtils.$spacing, "2xs");+ border: 1px solid;+ border-radius: map.get(cssUtils.$radius, "m");++ &-clear {+ border-color: transparent;+ background-color: transparent;+ padding: map.get(cssUtils.$spacing, "0");+ }++ &-card {+ border-color: map.get(cssUtils.$colors, "strokes", "default");+ padding: map.get(cssUtils.$spacing, "l");+ }++ &-sunk {+ border-color: map.get(cssUtils.$colors, "strokes", "default");+ background-color: map.get(cssUtils.$colors, "fills", "sunk");+ padding: map.get(cssUtils.$spacing, "l");+ }+}diff --git a/frontend-sdk/packages/react-ui/src/components/RadioGroup/stories/RadioGroup.stories.tsx b/frontend-sdk/packages/react-ui/src/components/RadioGroup/stories/RadioGroup.stories.tsxnew file mode 100644index 000000000..9f0a1dc8c--- /dev/null+++ b/frontend-sdk/packages/react-ui/src/components/RadioGroup/stories/RadioGroup.stories.tsx@@ -0,0 +1,85 @@+import type { Meta, StoryObj } from "@storybook/react";+import "../../FormControl/Label/label.scss";+import { RadioItem } from "../../RadioItem";+import "../../RadioItem/radioItem.scss";+import { RadioGroup } from "../RadioGroup";+import "../radioGroup.scss";++const meta: Meta<typeof RadioGroup> = {+ title: "Components/RadioGroup",+ component: RadioGroup,+ parameters: {+ layout: "centered",+ },+ tags: ["autodocs"],+};++export default meta;+type Story = StoryObj<typeof RadioGroup>;++export const Default: Story = {+ args: {+ defaultValue: "option1",+ children: (+ <>+ <RadioItem value="option1" label="Option 1" />+ <RadioItem value="option2" label="Option 2" />+ <RadioItem value="option3" label="Option 3" />+ </>+ ),+ },+};++export const CardVariant: Story = {+ args: {+ variant: "card",+ defaultValue: "option1",+ children: (+ <>+ <RadioItem value="option1" label="Option 1" />+ <RadioItem value="option2" label="Option 2" />+ <RadioItem value="option3" label="Option 3" />+ </>+ ),+ },+};++export const SunkVariant: Story = {+ args: {+ variant: "sunk",+ defaultValue: "option1",+ children: (+ <>+ <RadioItem value="option1" label="Option 1" />+ <RadioItem value="option2" label="Option 2" />+ <RadioItem value="option3" label="Option 3" />+ </>+ ),+ },+};++export const WithDisabledOption: Story = {+ args: {+ defaultValue: "option1",+ children: (+ <>+ <RadioItem value="option1" label="Option 1" />+ <RadioItem value="option2" label="Option 2" disabled />+ <RadioItem value="option3" label="Option 3" />+ </>+ ),+ },+};++export const WithDescription: Story = {+ args: {+ defaultValue: "option1",+ children: (+ <>+ <RadioItem value="option1" label="Option 1" />+ <RadioItem value="option2" label="Option 2" />+ <RadioItem value="option3" label="Option 3" />+ </>+ ),+ },+};diff --git a/frontend-sdk/packages/react-ui/src/components/RadioItem/RadioItem.tsx b/frontend-sdk/packages/react-ui/src/components/RadioItem/RadioItem.tsxnew file mode 100644index 000000000..82407925c--- /dev/null+++ b/frontend-sdk/packages/react-ui/src/components/RadioItem/RadioItem.tsx@@ -0,0 +1,61 @@+import * as Radio from "@radix-ui/react-radio-group";+import clsx from "clsx";+import React, { useId } from "react";+import { Label } from "../FormControl/Label";++export interface RadioItemProps {+ label?: React.ReactNode;+ className?: string;+ style?: React.CSSProperties;+ disabled?: boolean;+ required?: boolean;+ value: string;+}++const RadioItem = (props: RadioItemProps) => {+ const { label, className, style, disabled, required, value } = props;+ const id = useId();+ return (+ <div className="crayon-radio-item-container">+ <Radio.Item+ className={clsx("crayon-radio-item-root", className)}+ value={value}+ disabled={disabled}+ required={required}+ style={style}+ id={id}+ >+ <svg+ width={14}+ height={14}+ fill="none"+ viewBox="0 0 15 15"+ className="crayon-radio-item-svg"+ >+ <path // This is the circle that is filled between the border and the circle+ fill="currentColor"+ d="M1 7a7 7 0 1 1 14 0A7 7 0 0 1 1 7Z"+ className="crayon-radio-item-svg-path"+ />+ <path // This is the border+ stroke="currentColor"+ d="M1.5 7a6.5 6.5 0 1 1 13 0 6.5 6.5 0 0 1-13 0Z"+ className="crayon-radio-item-svg-border"+ />+ <path // This is the inner circle+ fill="currentColor"+ d="M4.5 7a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0Z"+ className="crayon-radio-item-svg-inner"+ />+ </svg>+ </Radio.Item>+ {label && (+ <Label htmlFor={id} className="crayon-radio-item-label" disabled={disabled}>+ {label}+ </Label>+ )}+ </div>+ );+};++export { RadioItem };diff --git a/frontend-sdk/packages/react-ui/src/components/RadioItem/index.ts b/frontend-sdk/packages/react-ui/src/components/RadioItem/index.tsnew file mode 100644index 000000000..e6586bb42--- /dev/null+++ b/frontend-sdk/packages/react-ui/src/components/RadioItem/index.ts@@ -0,0 +1 @@+export * from "./RadioItem";diff --git a/frontend-sdk/packages/react-ui/src/components/RadioItem/radioItem.scss b/frontend-sdk/packages/react-ui/src/components/RadioItem/radioItem.scssnew file mode 100644index 000000000..41771e7d5--- /dev/null+++ b/frontend-sdk/packages/react-ui/src/components/RadioItem/radioItem.scss@@ -0,0 +1,84 @@+@use "sass:map";+@use "../../cssUtils" as cssUtils;++.crayon-radio-item-container {+ display: flex;+ align-items: center;+ gap: map.get(cssUtils.$spacing, "2xs");+ padding-top: map.get(cssUtils.$spacing, "3xs");+ padding-bottom: map.get(cssUtils.$spacing, "3xs");+ padding-left: map.get(cssUtils.$spacing, "0");+ padding-right: map.get(cssUtils.$spacing, "2xs");+ width: 100%;+ max-width: 100%;+ overflow: hidden;+}++.crayon-radio-item-root {+ box-sizing: border-box;+ border-radius: map.get(cssUtils.$radius, "full");+ border: none;+ height: 14px;+ width: 14px;+ cursor: pointer;+ background-color: transparent;++ &[data-state] {+ // This makes the root element a styling context for children+ position: relative;+ }++ // Disabled state+ &:disabled {+ opacity: 0.5;+ cursor: not-allowed;+ }+}++.crayon-radio-item-svg {+ position: absolute;+ left: 50%;+ top: 50%;+ transform: translate(-50%, -50%);+}++// First path - circle between border and center+.crayon-radio-item-svg-path {+ .crayon-radio-item-root[data-state="unchecked"] & {+ fill: map.get(cssUtils.$colors, "fills", "container");++ .crayon-radio-item-root:hover:not(:disabled) & {+ fill: map.get(cssUtils.$colors, "fills", "container");+ }+ }++ .crayon-radio-item-root[data-state="checked"] & {+ fill: map.get(cssUtils.$colors, "fills", "container");+ }+}++// Border path+.crayon-radio-item-svg-border {+ .crayon-radio-item-root[data-state="unchecked"] & {+ stroke: map.get(cssUtils.$colors, "strokes", "interactive-el");+ }++ .crayon-radio-item-root[data-state="checked"] & {+ stroke: map.get(cssUtils.$colors, "strokes", "interactive-el-hover");+ }+}++// Inner circle path+.crayon-radio-item-svg-inner {+ .crayon-radio-item-root[data-state="checked"] & {+ fill: map.get(cssUtils.$colors, "fills", "brand-el");+ }++ .crayon-radio-item-root[data-state="unchecked"] & {+ fill: map.get(cssUtils.$colors, "fills", "container");+ }++ .crayon-radio-item-root[data-state="unchecked"]:hover:not(:disabled) & {+ fill: map.get(cssUtils.$colors, "strokes", "default");+ }+}diff --git a/frontend-sdk/packages/react-ui/src/components/RadioItem/stories/RadioItem.stories.tsx b/frontend-sdk/packages/react-ui/src/components/RadioItem/stories/RadioItem.stories.tsxnew file mode 100644index 000000000..bf220b133--- /dev/null+++ b/frontend-sdk/packages/react-ui/src/components/RadioItem/stories/RadioItem.stories.tsx@@ -0,0 +1,74 @@+import * as Radio from "@radix-ui/react-radio-group";+import type { Meta, StoryObj } from "@storybook/react";+import "../../FormControl/Label/label.scss";+import { RadioItem } from "../RadioItem";+import "../radioItem.scss";++const meta: Meta<typeof RadioItem> = {+ title: "Components/RadioItem",+ component: RadioItem,+ parameters: {+ layout: "centered",+ },+ decorators: [+ (Story) => (+ <Radio.Root defaultValue="default">+ <Story />+ </Radio.Root>+ ),+ ],+ tags: ["autodocs"],+};++export default meta;+type Story = StoryObj<typeof RadioItem>;++export const Default: Story = {+ args: {+ value: "default",+ },+};++export const WithLabel: Story = {+ args: {+ value: "with-label",+ label: "Radio Option",+ },+};++export const Disabled: Story = {+ args: {+ value: "disabled",+ label: "Disabled Option",+ disabled: true,+ },+};++export const Required: Story = {+ args: {+ value: "required",+ label: "Required Option",+ required: true,+ },+};++export const MultipleOptions: Story = {+ render: () => (+ <Radio.Root defaultValue="option1">+ <div style={{ display: "flex", flexDirection: "column", gap: "8px" }}>+ <RadioItem value="option1" label="Option 1" />+ <RadioItem value="option2" label="Option 2" />+ <RadioItem value="option3" label="Option 3" />+ </div>+ </Radio.Root>+ ),+};++export const CustomStyling: Story = {+ args: {+ value: "custom",+ label: "Custom Styled Option",+ className: "custom-radio",+ style: { marginLeft: "16px" },+ },+};diff --git a/frontend-sdk/packages/react-ui/src/components/SwitchGroup/SwitchGroup.tsx b/frontend-sdk/packages/react-ui/src/components/SwitchGroup/SwitchGroup.tsxnew file mode 100644index 000000000..2ad3eb8cd--- /dev/null+++ b/frontend-sdk/packages/react-ui/src/components/SwitchGroup/SwitchGroup.tsx@@ -0,0 +1,24 @@+import clsx from "clsx";+import React from "react";+import { SwitchItemProps } from "../SwitchItem";++export interface SwitchGroupProps {+ children: React.ReactElement<SwitchItemProps> | React.ReactElement<SwitchItemProps>[];+ className?: string;+ style?: React.CSSProperties;+ variant?: "clear" | "card" | "sunk";+}++const SwitchGroup = (props: SwitchGroupProps) => {+ const { children, className, style, variant = "clear" } = props;+ return (+ <div+ className={clsx("crayon-switch-group", `crayon-switch-group-${variant}`, className)}+ style={style}+ >+ {children}+ </div>+ );+};++export { SwitchGroup };diff --git a/frontend-sdk/packages/react-ui/src/components/SwitchGroup/index.ts b/frontend-sdk/packages/react-ui/src/components/SwitchGroup/index.tsnew file mode 100644index 000000000..cae07b7b5--- /dev/null+++ b/frontend-sdk/packages/react-ui/src/components/SwitchGroup/index.ts@@ -0,0 +1 @@+export * from "./SwitchGroup";diff --git a/frontend-sdk/packages/react-ui/src/components/SwitchGroup/stories/SwitchGroup.stories.tsx b/frontend-sdk/packages/react-ui/src/components/SwitchGroup/stories/SwitchGroup.stories.tsxnew file mode 100644index 000000000..0d7e2bd4b--- /dev/null+++ b/frontend-sdk/packages/react-ui/src/components/SwitchGroup/stories/SwitchGroup.stories.tsx@@ -0,0 +1,65 @@+import { Meta, StoryObj } from "@storybook/react";+import "../../FormControl/Label/Label.scss";+import { SwitchItem } from "../../SwitchItem";+import "../../SwitchItem/switchItem.scss";+import { SwitchGroup } from "../SwitchGroup";+import "../switchGroup.scss";++const meta: Meta<typeof SwitchGroup> = {+ title: "Components/SwitchGroup",+ component: SwitchGroup,+ tags: ["autodocs"],+};++export default meta;+type Story = StoryObj<typeof SwitchGroup>;++export const Default: Story = {+ render: () => (+ <SwitchGroup>+ <SwitchItem value="option1" label="Option 1" />+ <SwitchItem value="option2" label="Option 2" />+ <SwitchItem value="option3" label="Option 3" />+ </SwitchGroup>+ ),+};++export const CardVariant: Story = {+ render: () => (+ <SwitchGroup variant="card">+ <SwitchItem value="option1" label="Option 1" />+ <SwitchItem value="option2" label="Option 2" />+ <SwitchItem value="option3" label="Option 3" />+ </SwitchGroup>+ ),+};++export const SunkVariant: Story = {+ render: () => (+ <SwitchGroup variant="sunk">+ <SwitchItem value="option1" label="Option 1" />+ <SwitchItem value="option2" label="Option 2" />+ <SwitchItem value="option3" label="Option 3" />+ </SwitchGroup>+ ),+};++export const WithCustomClassName: Story = {+ render: () => (+ <SwitchGroup className="custom-class">+ <SwitchItem value="option1" label="Option 1" />+ <SwitchItem value="option2" label="Option 2" />+ <SwitchItem value="option3" label="Option 3" />+ </SwitchGroup>+ ),+};++export const WithCustomStyle: Story = {+ render: () => (+ <SwitchGroup style={{ maxWidth: "300px", margin: "20px" }}>+ <SwitchItem value="option1" label="Option 1" />+ <SwitchItem value="option2" label="Option 2" />+ <SwitchItem value="option3" label="Option 3" />+ </SwitchGroup>+ ),+};diff --git a/frontend-sdk/packages/react-ui/src/components/SwitchGroup/switchGroup.scss b/frontend-sdk/packages/react-ui/src/components/SwitchGroup/switchGroup.scssnew file mode 100644index 000000000..5e0e8b5a5--- /dev/null+++ b/frontend-sdk/packages/react-ui/src/components/SwitchGroup/switchGroup.scss@@ -0,0 +1,28 @@+@use "sass:map";+@use "../../cssUtils" as cssUtils;++.crayon-switch-group {+ box-sizing: border-box;+ display: flex;+ flex-direction: column;+ gap: map.get(cssUtils.$spacing, "2xs");+ border: 1px solid;+ border-radius: map.get(cssUtils.$radius, "m");++ &-clear {+ border-color: transparent;+ background-color: transparent;+ padding: map.get(cssUtils.$spacing, "0");+ }++ &-card {+ border-color: map.get(cssUtils.$colors, "strokes", "default");+ padding: map.get(cssUtils.$spacing, "l");+ }++ &-sunk {+ border-color: map.get(cssUtils.$colors, "strokes", "default");+ background-color: map.get(cssUtils.$colors, "fills", "sunk");+ padding: map.get(cssUtils.$spacing, "l");+ }+}diff --git a/frontend-sdk/packages/react-ui/src/components/SwitchItem/SwitchItem.tsx b/frontend-sdk/packages/react-ui/src/components/SwitchItem/SwitchItem.tsxnew file mode 100644index 000000000..518d7fa0d--- /dev/null+++ b/frontend-sdk/packages/react-ui/src/components/SwitchItem/SwitchItem.tsx@@ -0,0 +1,45 @@+import * as Switch from "@radix-ui/react-switch";+import clsx from "clsx";+import React, { useId } from "react";+import { Label } from "../FormControl";++interface SwitchItemProps {+ label?: React.ReactNode;+ className?: string;+ style?: React.CSSProperties;+ checked?: boolean;+ disabled?: boolean;+ defaultChecked?: boolean;+ required?: boolean;+ name?: string;+ value?: string;+ onChange?: (value: boolean) => void;+}++const SwitchItem = React.forwardRef<HTMLButtonElement, SwitchItemProps>((props, ref) => {+ const { label, onChange, className, disabled, ...rest } = props;+ const id = useId();+ return (+ <div className="crayon-switch-item-container">+ <Switch.Root+ ref={ref}+ onCheckedChange={onChange}+ {...rest}+ id={id}+ className={clsx("crayon-switch-item-root", className)}+ disabled={disabled}+ >+ <Switch.Thumb className="crayon-switch-item-thumb" />+ </Switch.Root>+ {label && (+ <Label htmlFor={id} className="crayon-switch-item-label" disabled={disabled}>+ {label}+ </Label>+ )}+ </div>+ );+});++SwitchItem.displayName = "SwitchItem";++export { SwitchItem, type SwitchItemProps };diff --git a/frontend-sdk/packages/react-ui/src/components/SwitchItem/index.ts b/frontend-sdk/packages/react-ui/src/components/SwitchItem/index.tsnew file mode 100644index 000000000..fa3e39f52--- /dev/null+++ b/frontend-sdk/packages/react-ui/src/components/SwitchItem/index.ts@@ -0,0 +1 @@+export * from "./SwitchItem";diff --git a/frontend-sdk/packages/react-ui/src/components/SwitchItem/stories/SwitchItem.stories.tsx b/frontend-sdk/packages/react-ui/src/components/SwitchItem/stories/SwitchItem.stories.tsxnew file mode 100644index 000000000..880706838--- /dev/null+++ b/frontend-sdk/packages/react-ui/src/components/SwitchItem/stories/SwitchItem.stories.tsx@@ -0,0 +1,94 @@+import type { Meta, StoryObj } from "@storybook/react";+import { useState } from "react";+import "../../FormControl/Label/Label.scss";+import { SwitchItem } from "../SwitchItem";+import "../switchItem.scss";++const meta = {+ title: "Components/SwitchItem",+ component: SwitchItem,+ parameters: {+ layout: "centered",+ },+ tags: ["autodocs"],+ argTypes: {+ label: { control: "text" },+ disabled: { control: "boolean" },+ checked: { control: "boolean" },+ onChange: { action: "changed" },+ },+} satisfies Meta<typeof SwitchItem>;++export default meta;+type Story = StoryObj<typeof meta>;++// Basic usage+export const Default: Story = {+ args: {+ label: "Switch Item",+ onChange: () => {},+ },+};++// With description+export const WithDescription: Story = {+ args: {+ label: "Notifications",+ onChange: () => {},+ },+};++// Disabled state+export const Disabled: Story = {+ args: {+ label: "Disabled Switch",+ disabled: true,+ onChange: () => {},+ },+};++// Checked state+export const Checked: Story = {+ args: {+ label: "Checked Switch",+ checked: true,+ onChange: () => {},+ },+};++// Controlled component example+export const ControlledSwitchTemplate = () => {+ const [isChecked, setIsChecked] = useState(false);++ return (+ <SwitchItem+ label="Controlled Switch"+ checked={isChecked}+ onChange={(checked) => setIsChecked(checked)}+ />+ );+};++export const Controlled: Story = {+ args: {+ label: "Controlled Switch",+ checked: false,+ },+};++// Long text example+export const LongText: Story = {+ args: {+ label:+ "Switch with a very long label that might wrap to multiple lines to test the component's layout handling",+ onChange: () => {},+ },+};++// Error state (if supported)+export const WithError: Story = {+ args: {+ label: "Switch with Error",+ onChange: () => {},+ },+};diff --git a/frontend-sdk/packages/react-ui/src/components/SwitchItem/switchItem.scss b/frontend-sdk/packages/react-ui/src/components/SwitchItem/switchItem.scssnew file mode 100644index 000000000..e06e85cf3--- /dev/null+++ b/frontend-sdk/packages/react-ui/src/components/SwitchItem/switchItem.scss@@ -0,0 +1,64 @@+@use "sass:map";+@use "../../cssUtils" as cssUtils;++.crayon-switch-item-container {+ box-sizing: border-box;+ display: flex;+ align-items: center;+ gap: map.get(cssUtils.$spacing, "2xs");+ max-width: 100%;+ width: 100%;+ overflow: hidden;+ padding-top: map.get(cssUtils.$spacing, "3xs");+ padding-bottom: map.get(cssUtils.$spacing, "3xs");+ padding-left: map.get(cssUtils.$spacing, "0");+ padding-right: map.get(cssUtils.$spacing, "xs");+}++.crayon-switch-item-root {+ position: relative;+ display: inline-block;+ height: 15px;+ width: 24px;+ cursor: pointer;+ border-radius: map.get(cssUtils.$radius, "full");+ padding: map.get(cssUtils.$spacing, "3xs");+ border: 1px solid map.get(cssUtils.$colors, "strokes", "default");+ background-color: map.get(cssUtils.$colors, "fills", "background");+ transition-property: background-color;+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);+ transition-duration: 150ms;++ &:not([data-disabled], [data-state="checked"]):hover {+ background-color: map.get(cssUtils.$colors, "fills", "sunk");+ }++ &[data-state="checked"] {+ background-color: map.get(cssUtils.$colors, "fills", "brand-el");+ }++ &[data-disabled] {+ opacity: 0.5;+ cursor: not-allowed;+ }+}++.crayon-switch-item-thumb {+ position: absolute;+ display: block;+ height: 10px;+ width: 10px;+ border-radius: map.get(cssUtils.$radius, "full");+ border: 1px solid map.get(cssUtils.$colors, "strokes", "default");+ background-color: map.get(cssUtils.$colors, "fills", "container");+ transform: translateY(-50%) translateX(-1px);+ transition-property: transform;+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);+ transition-duration: 150ms;+ box-shadow: map.get(cssUtils.$shadow, "s");++ &[data-state="checked"] {+ transform: translateY(-50%) translateX(7.5px);+ border-color: map.get(cssUtils.$colors, "strokes", "interactive-el");+ }+}diff --git a/frontend-sdk/packages/react-ui/src/variables.css b/frontend-sdk/packages/react-ui/src/variables.cssindex d0181c409..1debb438a 100644--- a/frontend-sdk/packages/react-ui/src/variables.css+++ b/frontend-sdk/packages/react-ui/src/variables.css@@ -1,35 +1,35 @@@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,100..900;1,100..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");body {/* Background colors */- --background-fills: #f5f5f5;+ --background-fills: rgb(245, 245, 245);/* this is provided by the user */- --brand-el-fills: #000000;+ --brand-el-fills: rgb(0, 0, 0);/* need to provide the opacity */- --brand-el-hover-fills: #000000;- --container-fills: #ffffff;+ --brand-el-hover-fills: rgba(0, 0, 0, 0.8);+ --container-fills: rgb(255, 255, 255);/* need to provide the opacity */- --overlay-fills: #000000;- --sunk-fills: #000000a1;- --container-hover-fills: #ffffff;- --danger-fills: #7f56d9;- --success-fills: #079455;+ --overlay-fills: rgba(0, 0, 0, 0.4);+ --sunk-fills: rgba(0, 0, 0, 0.04);+ --container-hover-fills: rgba(0, 0, 0, 0.04);+ --danger-fills: rgba(217, 45, 32, 0.08);+ --success-fills: rgba(7, 148, 85, 0.08);/* Border colors */- --strokes-default: #000000;- --stocks-interactive-el: #000000;- --stocks-interactive-el-hover: #000000;- --strokes-interactive-el-selected: #000000;+ --strokes-default: rgba(0, 0, 0, 0.06);+ --stocks-interactive-el: rgba(0, 0, 0, 0.12);+ --stocks-interactive-el-hover: rgba(0, 0, 0, 0.4);+ --strokes-interactive-el-selected: rgba(0, 0, 0, 1);/* Text colors */- --brand-text: #ffffff;- --brand-secondary-text: #ffffff;- --primary-text: #000000;- --secondary-text: #928f8f;- --disabled-text: #000000;- --danger-text: #d92d20;- --success-text: #079455;- --link-text: #000000;- --info-text: #000000;+ --brand-text: rgba(255, 255, 255, 1);+ --brand-secondary-text: rgba(255, 255, 255, 0.4);+ --primary-text: rgba(0, 0, 0, 1);+ --secondary-text: rgba(0, 0, 0, 0.4);+ --disabled-text: rgba(0, 0, 0, 0.2);+ --danger-text: rgba(217, 45, 32, 1);+ --success-text: rgba(217, 45, 32, 1);+ --link-text: rgba(0, 0, 0, 1);+ --info-text: rgba(0, 0, 0, 0.4);/* Spacing */--spacing-0: 0px;@@ -64,103 +64,80 @@ body {--font-primary: 400 14px/20px "Inter";--font-primary-letter-spacing: 0px;- --font-primary-paragraph-spacing: 0px;/* font-title */--font-title: 500 14px/20px "Inter";--font-title-letter-spacing: 0px;- --font-title-paragraph-spacing: 0px;--font-title-medium: 500 16px/24px "Inter";--font-title-medium-letter-spacing: 0px;- --font-title-medium-paragraph-spacing: 0px;--font-title-small: 500 14px/20px "Inter";--font-title-small-letter-spacing: 0px;- --font-title-small-paragraph-spacing: 0px;/* font-body */--font-body: 400 14px/18px "Inter";--font-body-letter-spacing: 0px;- --font-body-paragraph-spacing: 0px;--font-body-link: 500 14px/18px "Inter";--font-body-link-letter-spacing: 0px;- --font-body-link-paragraph-spacing: 0px;--font-body-heavy: 600 16px/24px "Inter";--font-body-heavy-letter-spacing: 0px;- --font-body-heavy-paragraph-spacing: 0px;--font-body-medium: 400 16px/24px "Inter";--font-body-medium-letter-spacing: 0px;- --font-body-medium-paragraph-spacing: 0px;--font-body-small-heavy: 600 14px/20px "Inter";--font-body-small-heavy-letter-spacing: 0px;- --font-body-small-heavy-paragraph-spacing: 0px;--font-body-small: 400 14px/20px "Inter";--font-body-small-letter-spacing: 0px;- --font-body-small-paragraph-spacing: 0px;/* font-label */--font-label: 400 12px/16px "Inter";--font-label-letter-spacing: 0px;- --font-label-paragraph-spacing: 12px;--font-label-heavy: 500 12px/16px "Inter";--font-label-heavy-letter-spacing: 0px;- --font-label-heavy-paragraph-spacing: 0px;--font-label-small: 400 10px/16px "Inter";--font-label-small-letter-spacing: 0px;- --font-label-small-paragraph-spacing: 0px;--font-label-small-heavy: 500 10px/16px "Inter";--font-label-small-heavy-letter-spacing: 0px;- --font-label-small-heavy-paragraph-spacing: 0px;--font-label-extra-small: 400 8px/12px "Inter";--font-label-extra-small-letter-spacing: 0px;- --font-label-extra-small-paragraph-spacing: 0px;--font-label-extra-small-heavy: 500 8px/12px "Inter";--font-label-extra-small-heavy-letter-spacing: 0px;- --font-label-extra-small-heavy-paragraph-spacing: 0px;--font-label-large-heavy: 500 12px/16px "Inter";--font-label-large-heavy-letter-spacing: 0px;- --font-label-large-heavy-paragraph-spacing: 0px;--font-label-large: 400 12px/16px "Inter";--font-label-large-letter-spacing: 0px;- --font-label-large-paragraph-spacing: 0px;--font-label-medium-heavy: 600 10px/16px "Inter";--font-label-medium-heavy-letter-spacing: 0px;- --font-label-medium-heavy-paragraph-spacing: 0px;--font-label-medium: 400 10px/16px "Inter";--font-label-medium-letter-spacing: 0px;- --font-label-medium-paragraph-spacing: 0px;/* font-heading */--font-heading-large: 600 28px/36px "Inter";--font-heading-large-letter-spacing: 0px;- --font-heading-large-paragraph-spacing: 0px;--font-heading-medium: 600 24px/32px "Inter";--font-heading-medium-letter-spacing: 0px;- --font-heading-medium-paragraph-spacing: 0px;--font-heading-small: 600 18px/24px "Inter";--font-heading-small-letter-spacing: 0px;- --font-heading-small-paragraph-spacing: 0px;/* shadow */diff --git a/frontend-sdk/pnpm-lock.yaml b/frontend-sdk/pnpm-lock.yamlindex 3d8b129f3..0da0660bb 100644--- a/frontend-sdk/pnpm-lock.yaml+++ b/frontend-sdk/pnpm-lock.yaml@@ -71,15 +71,24 @@ importers:'@radix-ui/react-aspect-ratio':specifier: ^1.1.1+ '@radix-ui/react-checkbox':+ specifier: ^1.1.3'@radix-ui/react-label':specifier: ^2.1.1+ '@radix-ui/react-radio-group':+ specifier: ^1.2.2'@radix-ui/react-select':specifier: ^2.1.4'@radix-ui/react-slider':specifier: ^1.2.2+ '@radix-ui/react-switch':+ specifier: ^1.1.2'@storybook/addon-styling-webpack':specifier: ^1.0.1@@ -836,6 +845,19 @@ packages:'@types/react-dom':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-HD7/ocp8f1B3e6OHygH0n7ZKjONkhciy1Nh0yuBgObqThc3oyx+vuMfFHKAknXRHHWVE9XvXStxJFyjUmB8PIw==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-LwT3pSho9Dljg+wY2KN2mrrh6y3qELfftINERIzBUO9e0N+t0oMTyn3k9iv+ZqgrwGkRnLpNJrsMv9BZlt2yuA==}peerDependencies:@@ -959,6 +981,19 @@ packages:'@types/react-dom':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-18TFr80t5EVgL9x1SwF/YGtfG+l0BS0PRAlCWBDoBEiDQjeKgnNZRVJp/oVBl24sr3Gbfwc/Qpj4OcWTQMsAEg==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-sHCWTtxwNn3L3fH8qAfnF3WbUZycW93SM1j3NFDzXBiz8D6F5UTTy8G1+WFEaiCdvCVRJWj6N2R4Xq6HdiHmDg==}peerDependencies:@@ -972,6 +1007,32 @@ packages:'@types/react-dom':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-E0MLLGfOP0l8P/NxgVzfXJ8w3Ch8cdO6UDzJfDChu4EJDy+/WdO5LqpdY8PYnCErkmZH3gZhDL1K7kQ41fAHuQ==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-QE1RoxPGJ/Nm8Qmk0PxP8ojmoaS67i0s7hVssS7KuI2FQoc/uzVlZsqKfQvxPE6D8hICCPHJ4D88zNhT3OOmkw==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-eVV7N8jBXAXnyrc+PsOF89O9AfVgGnbLxUtBb0clJ8y8ENMWLARGMI/1/SBRLz7u4HqxLgN71BJ17eono3wcjA==}peerDependencies:@@ -1007,6 +1068,19 @@ packages:'@types/react':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-zGukiWHjEdBCRyXvKR6iXAQG6qXm2esuAD6kDOi9Cn+1X6ev3ASo4+CsYaD6Fov9r/AQFekqnD/7+V0Cs6/98g==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-CasTfvsy+frcFkbXtSJ2Zu9JHpN8TYKxkgJGWbjiZhFivxaeW7rMeZt7QELGVLaYVfFMsKHjb7Ak0nMEe+2Vfw==}peerDependencies:@@ -3625,6 +3699,21 @@ snapshots:optionalDependencies:'@types/react': 19.0.2+ '@radix-ui/[email protected](@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.1+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.2(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-previous': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-size': 1.1.0(@types/[email protected])([email protected])+ react: 19.0.0-rc-66855b96-20241106+ react-dom: 19.0.0-rc-66855b96-20241106([email protected])+ optionalDependencies:+ '@types/react': 19.0.2+'@radix-ui/[email protected](@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])@@ -3723,6 +3812,15 @@ snapshots:optionalDependencies:'@types/react': 19.0.2+ '@radix-ui/[email protected](@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])+ react: 19.0.0-rc-66855b96-20241106+ react-dom: 19.0.0-rc-66855b96-20241106([email protected])+ optionalDependencies:+ '@types/react': 19.0.2+'@radix-ui/[email protected](@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/react-slot': 1.1.1(@types/[email protected])([email protected])@@ -3731,6 +3829,39 @@ snapshots:optionalDependencies:'@types/react': 19.0.2+ '@radix-ui/[email protected](@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.1+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.2(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-roving-focus': 1.1.1(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-previous': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-size': 1.1.0(@types/[email protected])([email protected])+ react: 19.0.0-rc-66855b96-20241106+ react-dom: 19.0.0-rc-66855b96-20241106([email protected])+ optionalDependencies:+ '@types/react': 19.0.2++ '@radix-ui/[email protected](@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.1+ '@radix-ui/react-collection': 1.1.1(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])+ react: 19.0.0-rc-66855b96-20241106+ react-dom: 19.0.0-rc-66855b96-20241106([email protected])+ optionalDependencies:+ '@types/react': 19.0.2+'@radix-ui/[email protected](@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/number': 1.1.0@@ -3784,6 +3915,20 @@ snapshots:optionalDependencies:'@types/react': 19.0.2+ '@radix-ui/[email protected](@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.1+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-previous': 1.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-size': 1.1.0(@types/[email protected])([email protected])+ react: 19.0.0-rc-66855b96-20241106+ react-dom: 19.0.0-rc-66855b96-20241106([email protected])+ optionalDependencies:+ '@types/react': 19.0.2+dependencies:react: 19.0.0-rc-66855b96-20241106