Skip to content

The Open Standard for Generative UI

feat: Toggle Group (#103)

Ankit Das209c9fd31e59
diff --git a/js/packages/react-ui/.storybook/preflight.css b/js/packages/react-ui/.storybook/preflight.css
new file mode 100644
index 000000000..632d8aa1f
--- /dev/null
+++ b/js/packages/react-ui/.storybook/preflight.css
@@ -0,0 +1,383 @@
+/*
+ 1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
+ 2. Remove default margins and padding
+ 3. Reset all borders.
+*/
+
+*,
+::after,
+::before,
+::backdrop,
+::file-selector-button {
+ box-sizing: border-box; /* 1 */
+ margin: 0; /* 2 */
+ padding: 0; /* 2 */
+ border: 0 solid; /* 3 */
+}
+
+/*
+ 1. Use a consistent sensible line-height in all browsers.
+ 2. Prevent adjustments of font size after orientation changes in iOS.
+ 3. Use a more readable tab size.
+ 4. Use the user's configured `sans` font-family by default.
+ 5. Use the user's configured `sans` font-feature-settings by default.
+ 6. Use the user's configured `sans` font-variation-settings by default.
+ 7. Disable tap highlights on iOS.
+*/
+
+html,
+:host {
+ line-height: 1.5; /* 1 */
+ -webkit-text-size-adjust: 100%; /* 2 */
+ tab-size: 4; /* 3 */
+ font-family: var(
+ --default-font-family,
+ ui-sans-serif,
+ system-ui,
+ sans-serif,
+ 'Apple Color Emoji',
+ 'Segoe UI Emoji',
+ 'Segoe UI Symbol',
+ 'Noto Color Emoji'
+ ); /* 4 */
+ font-feature-settings: var(--default-font-feature-settings, normal); /* 5 */
+ font-variation-settings: var(--default-font-variation-settings, normal); /* 6 */
+ -webkit-tap-highlight-color: transparent; /* 7 */
+}
+
+/*
+ Inherit line-height from `html` so users can set them as a class directly on the `html` element.
+*/
+
+body {
+ line-height: inherit;
+}
+
+/*
+ 1. Add the correct height in Firefox.
+ 2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
+ 3. Reset the default border style to a 1px solid border.
+*/
+
+hr {
+ height: 0; /* 1 */
+ color: inherit; /* 2 */
+ border-top-width: 1px; /* 3 */
+}
+
+/*
+ Add the correct text decoration in Chrome, Edge, and Safari.
+*/
+
+abbr:where([title]) {
+ -webkit-text-decoration: underline dotted;
+ text-decoration: underline dotted;
+}
+
+/*
+ Remove the default font size and weight for headings.
+*/
+
+h1,
+h2,
+h3,
+h4,
+h5,
+h6 {
+ font-size: inherit;
+ font-weight: inherit;
+}
+
+/*
+ Reset links to optimize for opt-in styling instead of opt-out.
+*/
+
+a {
+ color: inherit;
+ -webkit-text-decoration: inherit;
+ text-decoration: inherit;
+}
+
+/*
+ Add the correct font weight in Edge and Safari.
+*/
+
+b,
+strong {
+ font-weight: bolder;
+}
+
+/*
+ 1. Use the user's configured `mono` font-family by default.
+ 2. Use the user's configured `mono` font-feature-settings by default.
+ 3. Use the user's configured `mono` font-variation-settings by default.
+ 4. Correct the odd `em` font sizing in all browsers.
+*/
+
+code,
+kbd,
+samp,
+pre {
+ font-family: var(
+ --default-mono-font-family,
+ ui-monospace,
+ SFMono-Regular,
+ Menlo,
+ Monaco,
+ Consolas,
+ 'Liberation Mono',
+ 'Courier New',
+ monospace
+ ); /* 1 */
+ font-feature-settings: var(--default-mono-font-feature-settings, normal); /* 2 */
+ font-variation-settings: var(--default-mono-font-variation-settings, normal); /* 3 */
+ font-size: 1em; /* 4 */
+}
+
+/*
+ Add the correct font size in all browsers.
+*/
+
+small {
+ font-size: 80%;
+}
+
+/*
+ Prevent `sub` and `sup` elements from affecting the line height in all browsers.
+*/
+
+sub,
+sup {
+ font-size: 75%;
+ line-height: 0;
+ position: relative;
+ vertical-align: baseline;
+}
+
+sub {
+ bottom: -0.25em;
+}
+
+sup {
+ top: -0.5em;
+}
+
+/*
+ 1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
+ 2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
+ 3. Remove gaps between table borders by default.
+*/
+
+table {
+ text-indent: 0; /* 1 */
+ border-color: inherit; /* 2 */
+ border-collapse: collapse; /* 3 */
+}
+
+/*
+ Use the modern Firefox focus style for all focusable elements.
+*/
+
+:-moz-focusring {
+ outline: auto;
+}
+
+/*
+ Add the correct vertical alignment in Chrome and Firefox.
+*/
+
+progress {
+ vertical-align: baseline;
+}
+
+/*
+ Add the correct display in Chrome and Safari.
+*/
+
+summary {
+ display: list-item;
+}
+
+/*
+ Make lists unstyled by default.
+*/
+
+ol,
+ul,
+menu {
+ list-style: none;
+}
+
+/*
+ 1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
+ 2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
+ This can trigger a poorly considered lint error in some tools but is included by design.
+*/
+
+img,
+svg,
+video,
+canvas,
+audio,
+iframe,
+embed,
+object {
+ display: block; /* 1 */
+ vertical-align: middle; /* 2 */
+}
+
+/*
+ Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
+*/
+
+img,
+video {
+ max-width: 100%;
+ height: auto;
+}
+
+/*
+ 1. Inherit font styles in all browsers.
+ 2. Remove border radius in all browsers.
+ 3. Remove background color in all browsers.
+ 4. Ensure consistent opacity for disabled states in all browsers.
+*/
+
+button,
+input,
+select,
+optgroup,
+textarea,
+::file-selector-button {
+ font: inherit; /* 1 */
+ font-feature-settings: inherit; /* 1 */
+ font-variation-settings: inherit; /* 1 */
+ letter-spacing: inherit; /* 1 */
+ color: inherit; /* 1 */
+ border-radius: 0; /* 2 */
+ background-color: transparent; /* 3 */
+ opacity: 1; /* 4 */
+}
+
+/*
+ Restore default font weight.
+*/
+
+:where(select:is([multiple], [size])) optgroup {
+ font-weight: bolder;
+}
+
+/*
+ Restore indentation.
+*/
+
+:where(select:is([multiple], [size])) optgroup option {
+ padding-inline-start: 20px;
+}
+
+/*
+ Restore space after button.
+*/
+
+::file-selector-button {
+ margin-inline-end: 4px;
+}
+
+/*
+ 1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
+ 2. Set the default placeholder color to a semi-transparent version of the current text color.
+*/
+
+::placeholder {
+ opacity: 1; /* 1 */
+ color: color-mix(in oklab, currentColor 50%, transparent); /* 2 */
+}
+
+/*
+ Prevent resizing textareas horizontally by default.
+*/
+
+textarea {
+ resize: vertical;
+}
+
+/*
+ Remove the inner padding in Chrome and Safari on macOS.
+*/
+
+::-webkit-search-decoration {
+ -webkit-appearance: none;
+}
+
+/*
+ 1. Ensure date/time inputs have the same height when empty in iOS Safari.
+ 2. Ensure text alignment can be changed on date/time inputs in iOS Safari.
+*/
+
+::-webkit-date-and-time-value {
+ min-height: 1lh; /* 1 */
+ text-align: inherit; /* 2 */
+}
+
+/*
+ Prevent height from changing on date/time inputs in macOS Safari when the input is set to `display: block`.
+*/
+
+::-webkit-datetime-edit {
+ display: inline-flex;
+}
+
+/*
+ Remove excess padding from pseudo-elements in date/time inputs to ensure consistent height across browsers.
+*/
+
+::-webkit-datetime-edit-fields-wrapper {
+ padding: 0;
+}
+
+::-webkit-datetime-edit,
+::-webkit-datetime-edit-year-field,
+::-webkit-datetime-edit-month-field,
+::-webkit-datetime-edit-day-field,
+::-webkit-datetime-edit-hour-field,
+::-webkit-datetime-edit-minute-field,
+::-webkit-datetime-edit-second-field,
+::-webkit-datetime-edit-millisecond-field,
+::-webkit-datetime-edit-meridiem-field {
+ padding-block: 0;
+}
+
+/*
+ Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
+*/
+
+:-moz-ui-invalid {
+ box-shadow: none;
+}
+
+/*
+ Correct the inability to style the border radius in iOS Safari.
+*/
+
+button,
+input:where([type='button'], [type='reset'], [type='submit']),
+::file-selector-button {
+ appearance: button;
+}
+
+/*
+ Correct the cursor style of increment and decrement buttons in Safari.
+*/
+
+::-webkit-inner-spin-button,
+::-webkit-outer-spin-button {
+ height: auto;
+}
+
+/*
+ Make elements with the HTML hidden attribute stay hidden by default.
+*/
+
+[hidden]:where(:not([hidden='until-found'])) {
+ display: none !important;
+}
diff --git a/js/packages/react-ui/.storybook/preview.tsx b/js/packages/react-ui/.storybook/preview.tsx
index b55d0ad58..472482dbd 100644
--- a/js/packages/react-ui/.storybook/preview.tsx
+++ b/js/packages/react-ui/.storybook/preview.tsx
@@ -1,6 +1,7 @@
import type { Preview } from "@storybook/react";
import { themes } from "@storybook/theming";
import "../src/components/index.scss";
+import "./preflight.css";
import { ThemeProvider } from "../src/components/ThemeProvider";
import React from "react";
const preview: Preview = {
diff --git a/js/packages/react-ui/package.json b/js/packages/react-ui/package.json
index 088bea339..e4beced34 100644
--- a/js/packages/react-ui/package.json
+++ b/js/packages/react-ui/package.json
@@ -65,6 +65,7 @@
"@radix-ui/react-slider": "^1.2.2",
"@radix-ui/react-switch": "^1.1.2",
"@radix-ui/react-tabs": "^1.1.2",
+ "@radix-ui/react-toggle-group": "^1.1.2",
"clsx": "^2.1.1",
"date-fns": "^4.1.0",
"lodash-es": "^4.17.21",
diff --git a/js/packages/react-ui/src/components/ToggleGroup/ToggleGroup.tsx b/js/packages/react-ui/src/components/ToggleGroup/ToggleGroup.tsx
new file mode 100644
index 000000000..98fb4eaa8
--- /dev/null
+++ b/js/packages/react-ui/src/components/ToggleGroup/ToggleGroup.tsx
@@ -0,0 +1,21 @@
+import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
+import clsx from "clsx";
+import { ReactElement } from "react";
+import { ToggleItemProps } from "../ToggleItem";
+
+type RadixToggleGroupProps =
+ | ToggleGroupPrimitive.ToggleGroupSingleProps
+ | ToggleGroupPrimitive.ToggleGroupMultipleProps;
+
+export type ToggleGroupProps = RadixToggleGroupProps & {
+ className?: string;
+ children: ReactElement<ToggleItemProps> | ReactElement<ToggleItemProps>[];
+};
+
+export const ToggleGroup = ({ children, className, ...props }: ToggleGroupProps) => {
+ return (
+ <ToggleGroupPrimitive.Root className={clsx("crayon-toggle-group", className)} {...props}>
+ {children}
+ </ToggleGroupPrimitive.Root>
+ );
+};
diff --git a/js/packages/react-ui/src/components/ToggleGroup/dependencies.ts b/js/packages/react-ui/src/components/ToggleGroup/dependencies.ts
new file mode 100644
index 000000000..a84e1886a
--- /dev/null
+++ b/js/packages/react-ui/src/components/ToggleGroup/dependencies.ts
@@ -0,0 +1,3 @@
+const dependencies = ["ToggleGroup"];
+
+export default dependencies;
diff --git a/js/packages/react-ui/src/components/ToggleGroup/index.ts b/js/packages/react-ui/src/components/ToggleGroup/index.ts
new file mode 100644
index 000000000..773c1e5b9
--- /dev/null
+++ b/js/packages/react-ui/src/components/ToggleGroup/index.ts
@@ -0,0 +1 @@
+export * from "./ToggleGroup";
diff --git a/js/packages/react-ui/src/components/ToggleGroup/stories/ToggleGroup.stories.tsx b/js/packages/react-ui/src/components/ToggleGroup/stories/ToggleGroup.stories.tsx
new file mode 100644
index 000000000..93e1bf2cf
--- /dev/null
+++ b/js/packages/react-ui/src/components/ToggleGroup/stories/ToggleGroup.stories.tsx
@@ -0,0 +1,114 @@
+import type { Meta, StoryObj } from "@storybook/react";
+import { ToggleItem } from "../../ToggleItem";
+import { ToggleGroup } from "../ToggleGroup";
+
+const meta: Meta<typeof ToggleGroup> = {
+ title: "Components/ToggleGroup",
+ component: ToggleGroup,
+ subcomponents: {
+ ToggleItem: ToggleItem as any,
+ },
+ parameters: {
+ layout: "centered",
+ docs: {
+ description: {
+ component: "```tsx\nimport { ToggleGroup, ToggleItem } from '@crayon-ui/react-ui';\n```",
+ },
+ },
+ },
+ argTypes: {
+ type: {
+ control: "radio",
+ options: ["single", "multiple"],
+ description: "The type of toggle group",
+ table: {
+ category: "Appearance",
+ type: { summary: "string" },
+ defaultValue: { summary: "single" },
+ },
+ },
+ children: {
+ control: false,
+ description: "The children of the toggle group",
+ table: {
+ category: "Content",
+ type: { summary: "ToggleItemProps[]| ToggleItemProps" },
+ },
+ },
+ className: {
+ control: false,
+ description: "Additional CSS class name for custom styling",
+ table: {
+ category: "Styling",
+ },
+ },
+ style: {
+ control: false,
+ description: "Additional CSS style for custom styling",
+ table: {
+ category: "Styling",
+ },
+ },
+ },
+ tags: ["autodocs"],
+};
+
+export default meta;
+type Story = StoryObj<typeof ToggleGroup>;
+
+export const SingleSelection: Story = {
+ args: {
+ type: "single",
+ },
+ render: (args) => (
+ <ToggleGroup {...args} aria-label="Text alignment">
+ <ToggleItem value="left">Left</ToggleItem>
+ <ToggleItem value="center">Center</ToggleItem>
+ <ToggleItem value="right">Right</ToggleItem>
+ </ToggleGroup>
+ ),
+};
+
+export const MultipleSelection: Story = {
+ args: {
+ type: "multiple",
+ defaultValue: ["bold", "italic"],
+ },
+ render: (args) => (
+ <ToggleGroup {...args} aria-label="Text formatting">
+ <ToggleItem value="bold">Bold</ToggleItem>
+ <ToggleItem value="italic">Italic</ToggleItem>
+ <ToggleItem value="underline">Underline</ToggleItem>
+ </ToggleGroup>
+ ),
+};
+
+export const Disabled: Story = {
+ args: {
+ type: "single",
+ defaultValue: "left",
+ },
+ render: (args) => (
+ <ToggleGroup {...args} aria-label="Text alignment">
+ <ToggleItem value="left">Left</ToggleItem>
+ <ToggleItem value="center" disabled>
+ Center
+ </ToggleItem>
+ <ToggleItem value="right">Right</ToggleItem>
+ </ToggleGroup>
+ ),
+};
+
+export const WithIcons: Story = {
+ args: {
+ type: "single",
+ defaultValue: "left",
+ },
+ render: (args) => (
+ <ToggleGroup {...args} aria-label="Text alignment">
+ <ToggleItem value="left">←</ToggleItem>
+ <ToggleItem value="center">↔</ToggleItem>
+ <ToggleItem value="right">→</ToggleItem>
+ </ToggleGroup>
+ ),
+};
diff --git a/js/packages/react-ui/src/components/ToggleGroup/toggleGroup.scss b/js/packages/react-ui/src/components/ToggleGroup/toggleGroup.scss
new file mode 100644
index 000000000..14c93d8f8
--- /dev/null
+++ b/js/packages/react-ui/src/components/ToggleGroup/toggleGroup.scss
@@ -0,0 +1,10 @@
+@use "../../cssUtils" as cssUtils;
+
+.crayon-toggle-group {
+ display: flex;
+ width: 100%;
+ gap: cssUtils.$spacing-m;
+ box-sizing: border-box;
+ flex-direction: row;
+ flex-wrap: wrap;
+}
diff --git a/js/packages/react-ui/src/components/ToggleItem/ToggleItem.tsx b/js/packages/react-ui/src/components/ToggleItem/ToggleItem.tsx
new file mode 100644
index 000000000..b08a0772d
--- /dev/null
+++ b/js/packages/react-ui/src/components/ToggleItem/ToggleItem.tsx
@@ -0,0 +1,16 @@
+import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
+import clsx from "clsx";
+import { ReactNode } from "react";
+
+export interface ToggleItemProps extends ToggleGroupPrimitive.ToggleGroupItemProps {
+ children: ReactNode;
+ className?: string;
+}
+
+export const ToggleItem = ({ className, children, ...props }: ToggleItemProps) => {
+ return (
+ <ToggleGroupPrimitive.Item className={clsx("crayon-toggle-item", className)} {...props}>
+ {children}
+ </ToggleGroupPrimitive.Item>
+ );
+};
diff --git a/js/packages/react-ui/src/components/ToggleItem/dependencies.ts b/js/packages/react-ui/src/components/ToggleItem/dependencies.ts
new file mode 100644
index 000000000..e2399f071
--- /dev/null
+++ b/js/packages/react-ui/src/components/ToggleItem/dependencies.ts
@@ -0,0 +1,3 @@
+const dependencies = ["ToggleItem"];
+
+export default dependencies;
diff --git a/js/packages/react-ui/src/components/ToggleItem/index.ts b/js/packages/react-ui/src/components/ToggleItem/index.ts
new file mode 100644
index 000000000..979506c04
--- /dev/null
+++ b/js/packages/react-ui/src/components/ToggleItem/index.ts
@@ -0,0 +1 @@
+export * from "./ToggleItem";
diff --git a/js/packages/react-ui/src/components/ToggleItem/toggleItem.scss b/js/packages/react-ui/src/components/ToggleItem/toggleItem.scss
new file mode 100644
index 000000000..b644e16b6
--- /dev/null
+++ b/js/packages/react-ui/src/components/ToggleItem/toggleItem.scss
@@ -0,0 +1,37 @@
+@use "../../cssUtils" as cssUtils;
+
+.crayon-toggle-item {
+ box-sizing: border-box;
+ @include cssUtils.typography(body, default);
+ padding: cssUtils.$spacing-m;
+ border-radius: cssUtils.$rounded-m;
+ border: 1px solid transparent;
+ cursor: pointer;
+ transition: all 0.2s ease;
+ display: flex;
+ gap: cssUtils.$spacing-2xs;
+ align-items: center;
+ background-color: cssUtils.$bg-container;
+ color: cssUtils.$primary-text;
+ border-color: cssUtils.$stroke-default;
+ &:hover {
+ background-color: cssUtils.$bg-container-hover;
+ }
+ &:disabled {
+ color: cssUtils.$disabled-text;
+ border-color: cssUtils.$stroke-default;
+ cursor: not-allowed;
+ }
+
+ &[data-state="on"] {
+ background-color: cssUtils.$bg-brand-el;
+ color: cssUtils.$brand-text;
+ &:hover {
+ background-color: cssUtils.$bg-brand-el-hover;
+ }
+ &:disabled {
+ opacity: 0.5;
+ cursor: not-allowed;
+ }
+ }
+}
diff --git a/js/packages/react-ui/src/components/index.scss b/js/packages/react-ui/src/components/index.scss
index f8b6a3ddf..8cb87f0a1 100644
--- a/js/packages/react-ui/src/components/index.scss
+++ b/js/packages/react-ui/src/components/index.scss
@@ -39,3 +39,5 @@
@forward "./TagBlock/tagBlock.scss";
@forward "./TextArea/textArea.scss";
@forward "./TextContent/textContent.scss";
+@forward "./ToggleGroup/toggleGroup.scss";
+@forward "./ToggleItem/toggleItem.scss";
diff --git a/js/pnpm-lock.yaml b/js/pnpm-lock.yaml
index 684054612..0060422b0 100644
--- a/js/pnpm-lock.yaml
+++ b/js/pnpm-lock.yaml
@@ -138,6 +138,9 @@ importers:
'@radix-ui/react-tabs':
specifier: ^1.1.2
+ '@radix-ui/react-toggle-group':
+ specifier: ^1.1.2
clsx:
specifier: ^2.1.1
version: 2.1.1
@@ -1161,6 +1164,19 @@ packages:
'@types/react-dom':
optional: true
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-9z54IEKRxIa9VityapoEYMuByaG42iSy1ZXlY2KcuLSEtq8x4987/N6m15ppoMffgZX72gER2uHe1D9Y6Unlcw==}
+ 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-Y9VzoRDSJtgFMUCoiZBDVo084VQ5hfpXxVE+NgkdNsjiDBByiImMZKKhxMwCbdHvhlENG6a833CbFkOQvTricw==}
peerDependencies:
@@ -1297,6 +1313,19 @@ packages:
'@types/react-dom':
optional: true
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-Ec/0d38EIuvDF+GZjcMU/Ze6MxntVJYO/fRlCPhCaVUyPY9WTalHJw54tp9sXeJo3tlShWpy41vQRgLRGOuz+w==}
+ 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-E0MLLGfOP0l8P/NxgVzfXJ8w3Ch8cdO6UDzJfDChu4EJDy+/WdO5LqpdY8PYnCErkmZH3gZhDL1K7kQ41fAHuQ==}
peerDependencies:
@@ -1323,6 +1352,19 @@ packages:
'@types/react-dom':
optional: true
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-zgMQWkNO169GtGqRvYrzb0Zf8NhMHS2DuEB/TiEmVnpr5OqPU3i8lfbxaAmC2J/KYuIQxyoQQ6DxepyXp61/xw==}
+ 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:
@@ -1358,6 +1400,15 @@ packages:
'@types/react':
optional: true
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-YAKxaiGsSQJ38VzKH86/BPRC4rh+b1Jpa+JneA5LRE7skmLPNAyeG8kPJj/oo4STLvlrs8vkf/iYyc3A5stYCQ==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
'@radix-ui/[email protected]':
resolution: {integrity: sha512-zGukiWHjEdBCRyXvKR6iXAQG6qXm2esuAD6kDOi9Cn+1X6ev3ASo4+CsYaD6Fov9r/AQFekqnD/7+V0Cs6/98g==}
peerDependencies:
@@ -1384,6 +1435,32 @@ packages:
'@types/react-dom':
optional: true
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-JBm6s6aVG/nwuY5eadhU2zDi/IwYS0sDM5ZWb4nymv/hn3hZdkw+gENn0LP4iY1yCd7+bgJaCwueMYJIU3vk4A==}
+ 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-lntKchNWx3aCHuWKiDY+8WudiegQvBpDRAYL8dKLRvKEH8VOpl0XX6SSU/bUBqIRJbcTy4+MW06Wv8vgp10rzQ==}
+ 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:
@@ -4714,6 +4791,18 @@ snapshots:
'@types/react': 19.0.8
'@types/react-dom': 19.0.3(@types/[email protected])
+ dependencies:
+ '@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-slot': 1.1.2(@types/[email protected])([email protected])
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+ optionalDependencies:
+ '@types/react': 19.0.8
+ '@types/react-dom': 19.0.3(@types/[email protected])
+
dependencies:
react: 18.3.1
@@ -4825,6 +4914,15 @@ snapshots:
'@types/react': 19.0.8
'@types/react-dom': 19.0.3(@types/[email protected])
+ dependencies:
+ '@radix-ui/react-slot': 1.1.2(@types/[email protected])([email protected])
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+ optionalDependencies:
+ '@types/react': 19.0.8
+ '@types/react-dom': 19.0.3(@types/[email protected])
+
dependencies:
'@radix-ui/primitive': 1.1.1
@@ -4860,6 +4958,23 @@ snapshots:
'@types/react': 19.0.8
'@types/react-dom': 19.0.3(@types/[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-id': 1.1.0(@types/[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: 18.3.1
+ react-dom: 18.3.1([email protected])
+ optionalDependencies:
+ '@types/react': 19.0.8
+ '@types/react-dom': 19.0.3(@types/[email protected])
+
dependencies:
'@radix-ui/number': 1.1.0
@@ -4915,6 +5030,13 @@ snapshots:
optionalDependencies:
'@types/react': 19.0.8
+ dependencies:
+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])
+ react: 18.3.1
+ optionalDependencies:
+ '@types/react': 19.0.8
+
dependencies:
'@radix-ui/primitive': 1.1.1
@@ -4946,6 +5068,32 @@ snapshots:
'@types/react': 19.0.8
'@types/react-dom': 19.0.3(@types/[email protected])
+ dependencies:
+ '@radix-ui/primitive': 1.1.1
+ '@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-roving-focus': 1.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+ optionalDependencies:
+ '@types/react': 19.0.8
+ '@types/react-dom': 19.0.3(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/primitive': 1.1.1
+ '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+ optionalDependencies:
+ '@types/react': 19.0.8
+ '@types/react-dom': 19.0.3(@types/[email protected])
+
dependencies:
react: 18.3.1