The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
improve toggle group
Steven Tey65dcc1412e14
diff --git a/apps/web/ui/modals/add-edit-token-modal.tsx b/apps/web/ui/modals/add-edit-token-modal.tsxindex eeb3b4bd25..85ef5ef59c 100644--- a/apps/web/ui/modals/add-edit-token-modal.tsx+++ b/apps/web/ui/modals/add-edit-token-modal.tsx@@ -11,7 +11,9 @@ import {RadioGroup,RadioGroupItem,} from "@dub/ui";-import { ToggleGroup, ToggleGroupItem } from "@dub/ui/src/toggle-group";+import { ToggleGroup } from "@dub/ui/src/toggle-group";+import { SWIPE_REVEAL_ANIMATION_SETTINGS } from "@dub/utils";+import { motion } from "framer-motion";import {Dispatch,FormEvent,@@ -209,11 +211,13 @@ function AddEditTokenModal({</span><div className="flex"><ToggleGroup- type="single"- variant="outline"- value={preset}- defaultChecked- onValueChange={(value: ScopePreset) => {+ options={[+ { value: "all_access", label: "All" },+ { value: "read_only", label: "Read Only" },+ { value: "restricted", label: "Restricted" },+ ]}+ selected={preset}+ selectAction={(value: ScopePreset) => {setPreset(value);if (value === "all_access") {@@ -224,29 +228,15 @@ function AddEditTokenModal({setData({ ...data, scopes: {} });}}}- className="gap-2"- >- <ToggleGroupItem value="all_access" aria-label="All scopes">- All- </ToggleGroupItem>- <ToggleGroupItem- value="read_only"- aria-label="Read only scopes"- >- Read Only- </ToggleGroupItem>- <ToggleGroupItem- value="restricted"- aria-label="Restricted scopes"- >- Restricted- </ToggleGroupItem>- </ToggleGroup>+ /></div></div>{preset === "restricted" && (- <div className="flex flex-col divide-y text-sm">+ <motion.div+ className="flex flex-col divide-y text-sm"+ {...SWIPE_REVEAL_ANIMATION_SETTINGS}+ >{resourcePermissions.filter(// filter out beta features@@ -292,7 +282,7 @@ function AddEditTokenModal({</div></div>))}- </div>+ </motion.div>)}<Buttondiff --git a/packages/ui/package.json b/packages/ui/package.jsonindex c29fd1e2cb..a51246735b 100644--- a/packages/ui/package.json+++ b/packages/ui/package.json@@ -47,8 +47,6 @@"@radix-ui/react-radio-group": "^1.1.3","@radix-ui/react-slot": "1.0.1","@radix-ui/react-switch": "^1.0.1",- "@radix-ui/react-toggle": "^1.1.0",- "@radix-ui/react-toggle-group": "^1.1.0","@radix-ui/react-tooltip": "^1.0.7","@react-aria/datepicker": "^3.10.0","@react-stately/datepicker": "^3.9.3",diff --git a/packages/ui/src/toggle-group.tsx b/packages/ui/src/toggle-group.tsxindex ed59b46860..ba0f33cc56 100644--- a/packages/ui/src/toggle-group.tsx+++ b/packages/ui/src/toggle-group.tsx@@ -1,60 +1,50 @@-"use client";-import { cn } from "@dub/utils";-import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";-import { VariantProps } from "class-variance-authority";-import * as React from "react";-import { toggleVariants } from "./toggle";--const ToggleGroupContext = React.createContext<- VariantProps<typeof toggleVariants>->({- size: "default",- variant: "default",-});--const ToggleGroup = React.forwardRef<- React.ElementRef<typeof ToggleGroupPrimitive.Root>,- React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Root> &- VariantProps<typeof toggleVariants>->(({ className, variant, size, children, ...props }, ref) => (- <ToggleGroupPrimitive.Root- ref={ref}- className={cn("flex items-center justify-center gap-1", className)}- {...props}- >- <ToggleGroupContext.Provider value={{ variant, size }}>- {children}- </ToggleGroupContext.Provider>- </ToggleGroupPrimitive.Root>-));--ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;--const ToggleGroupItem = React.forwardRef<- React.ElementRef<typeof ToggleGroupPrimitive.Item>,- React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Item> &- VariantProps<typeof toggleVariants>->(({ className, children, variant, size, ...props }, ref) => {- const context = React.useContext(ToggleGroupContext);+import { LayoutGroup, motion } from "framer-motion";+import { useId } from "react";++interface ToggleOption {+ value: string;+ label: string;+}++export function ToggleGroup({+ options,+ selected,+ selectAction,+}: {+ options: ToggleOption[];+ selected: string | null;+ selectAction: (option: string) => void;+}) {+ const layoutGroupId = useId();return (- <ToggleGroupPrimitive.Item- ref={ref}- className={cn(- toggleVariants({- variant: context.variant || variant,- size: context.size || size,- }),- className,- )}- {...props}- >- {children}- </ToggleGroupPrimitive.Item>+ <div className="relative inline-flex items-center space-x-1 rounded-xl border border-gray-200 bg-white p-1">+ <LayoutGroup id={layoutGroupId}>+ {options.map((option) => (+ <button+ key={option.value}+ type="button"+ className={cn(+ "relative z-10 px-3 py-1 text-sm font-medium capitalize",+ {+ "transition-all hover:text-gray-500": option.value !== selected,+ },+ )}+ onClick={() => selectAction(option.value)}+ >+ <p>{option.label}</p>+ {option.value === selected && (+ <motion.div+ layoutId={options.join("-")}+ className="absolute left-0 top-0 h-full w-full rounded-lg border border-gray-200 bg-gray-50"+ style={{ zIndex: -1 }}+ transition={{ duration: 0.25 }}+ />+ )}+ </button>+ ))}+ </LayoutGroup>+ </div>);-});--ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;--export { ToggleGroup, ToggleGroupItem };+}diff --git a/packages/ui/src/toggle.tsx b/packages/ui/src/toggle.tsxdeleted file mode 100644index e7fcf7add3..0000000000--- a/packages/ui/src/toggle.tsx+++ /dev/null@@ -1,44 +0,0 @@-"use client";--import { cn } from "@dub/utils";-import * as TogglePrimitive from "@radix-ui/react-toggle";-import { cva, type VariantProps } from "class-variance-authority";-import * as React from "react";--const toggleVariants = cva(- "inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-gray-300 data-[state=on]:text-accent-foreground",- {- variants: {- variant: {- default: "bg-transparent",- outline:- "border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground",- },- size: {- default: "h-9 px-3",- sm: "h-8 px-2",- lg: "h-10 px-3",- },- },- defaultVariants: {- variant: "default",- size: "default",- },- },-);--const Toggle = React.forwardRef<- React.ElementRef<typeof TogglePrimitive.Root>,- React.ComponentPropsWithoutRef<typeof TogglePrimitive.Root> &- VariantProps<typeof toggleVariants>->(({ className, variant, size, ...props }, ref) => (- <TogglePrimitive.Root- ref={ref}- className={cn(toggleVariants({ variant, size, className }))}- {...props}- />-));--Toggle.displayName = TogglePrimitive.Root.displayName;--export { Toggle, toggleVariants };diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex a74925f293..6194e9bd7c 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -453,12 +453,6 @@ importers:'@radix-ui/react-switch':specifier: ^1.0.1version: 1.0.1([email protected])([email protected])- '@radix-ui/react-toggle':- specifier: ^1.1.0- version: 1.1.0(@types/[email protected])(@types/[email protected])([email protected])([email protected])- '@radix-ui/react-toggle-group':- specifier: ^1.1.0- version: 1.1.0(@types/[email protected])(@types/[email protected])([email protected])([email protected])'@radix-ui/react-tooltip':specifier: ^1.0.7version: 1.0.7(@types/[email protected])(@types/[email protected])([email protected])([email protected])@@ -4868,10 +4862,6 @@ packages:'@babel/runtime': 7.23.2dev: false- /@radix-ui/[email protected]:- resolution: {integrity: sha512-4Z8dn6Upk0qk4P74xBhZ6Hd/w0mPEzOOLxy4xiPXOXqjF7jZS0VAKk7/x/H6FyY2zCkYJqePf1G5KmkmNJ4RBA==}- dev: false-resolution: {integrity: sha512-Ka7BQoyRRPwsOb0YEv0fQU8V8aCXCxAzNVI5BRN7WmPG2E1zQKKxmb86NVDqIj6uSnaahJ1E5S6bX5Lk9hTK+g==}peerDependencies:@@ -5041,29 +5031,6 @@ packages:react-dom: 18.2.0([email protected])dev: false- /@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected])([email protected]):- resolution: {integrity: sha512-GZsZslMJEyo1VKm5L1ZJY8tGDxZNPAoUeQUIbKeJfoi7Q4kmig5AsgLMYYuyYbfjd8fBmFORAIwYAkXMnXZgZw==}- 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- dependencies:- '@radix-ui/react-compose-refs': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-context': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-primitive': 2.0.0(@types/[email protected])(@types/[email protected])([email protected])([email protected])- '@radix-ui/react-slot': 1.1.0(@types/[email protected])([email protected])- '@types/react': 18.2.48- '@types/react-dom': 18.2.14- react: 18.2.0- react-dom: 18.2.0([email protected])- dev: false-/@radix-ui/[email protected]([email protected]):resolution: {integrity: sha512-0KaSv6sx787/hK3eF53iOkiSLwAGlFMx5lotrqD2pTjB18KbybKoEIgkNZTKC60YECDQTKGTRcDBILwZVqVKvA==}peerDependencies:@@ -5087,19 +5054,6 @@ packages:react: 18.2.0dev: false- resolution: {integrity: sha512-b4inOtiaOnYf9KWyO3jAeeCG6FeyfY6ldiEPanbUjWd+xIk5wZeHa8yVwmrJ2vderhu/BQvzCrJI0lHd+wIiqw==}- peerDependencies:- '@types/react': '*'- react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc- peerDependenciesMeta:- '@types/react':- optional: true- dependencies:- '@types/react': 18.2.48- react: 18.2.0- dev: false-/@radix-ui/[email protected]([email protected]):resolution: {integrity: sha512-1pVM9RfOQ+n/N5PJK33kRSKsr1glNxomxONs5c49MliinBY6Yw2Q995qfBUUo0/Mbg05B/sGA0gkgPI7kmSHBg==}peerDependencies:@@ -5123,19 +5077,6 @@ packages:react: 18.2.0dev: false- resolution: {integrity: sha512-OKrckBy+sMEgYM/sMmqmErVn0kZqrHPJze+Ql3DzYsDDp0hl0L62nx/2122/Bvps1qz645jlcu2tD9lrRSdf8A==}- peerDependencies:- '@types/react': '*'- react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc- peerDependenciesMeta:- '@types/react':- optional: true- dependencies:- '@types/react': 18.2.48- react: 18.2.0- dev: false-resolution: {integrity: sha512-Yn9YU+QlHYLWwV1XfKiqnGVpWYWk6MeBVM6x/bcoyPvxgjQGoeT35482viLPctTMWoMw0PoHgqfSox7Ig+957Q==}peerDependencies:@@ -5220,19 +5161,6 @@ packages:react: 18.2.0dev: false- resolution: {integrity: sha512-BUuBvgThEiAXh2DWu93XsT+a3aWrGqolGlqqw5VU1kG7p/ZH2cuDlM1sRLNnY3QcBS69UIz2mcKhMxDsdewhjg==}- peerDependencies:- '@types/react': '*'- react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc- peerDependenciesMeta:- '@types/react':- optional: true- dependencies:- '@types/react': 18.2.48- react: 18.2.0- dev: false-resolution: {integrity: sha512-n7kDRfx+LB1zLueRDvZ1Pd0bxdJWDUZNQ/GWoxDn2prnuJKRdxsjulejX/ePkOsLi2tTm6P24mDqlMSgQpsT6g==}peerDependencies:@@ -5423,20 +5351,6 @@ packages:react: 18.2.0dev: false- resolution: {integrity: sha512-EJUrI8yYh7WOjNOqpoJaf1jlFIH2LvtgAl+YcFqNCa+4hj64ZXmPkAKOFs/ukjz3byN6bdb/AVUqHkI8/uWWMA==}- peerDependencies:- '@types/react': '*'- react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc- peerDependenciesMeta:- '@types/react':- optional: true- dependencies:- '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])- '@types/react': 18.2.48- react: 18.2.0- dev: false-/@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected])([email protected]):resolution: {integrity: sha512-N5ehvlM7qoTLx7nWPodsPYPgMzA5WM8zZChQg8nyFJKnDO5WHdba1vv5/H6IO5LtJMfD2Q3wh1qHFGNtK0w3bQ==}peerDependencies:@@ -5759,26 +5673,6 @@ packages:react-dom: 18.2.0([email protected])dev: false- /@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected])([email protected]):- resolution: {integrity: sha512-ZSpFm0/uHa8zTvKBDjLFWLo8dkr4MBsiDLz0g3gMUwqgLHz9rTaRRGYDgvZPtBJgYCBKXkS9fzmoySgr8CO6Cw==}- 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- dependencies:- '@radix-ui/react-slot': 1.1.0(@types/[email protected])([email protected])- '@types/react': 18.2.48- '@types/react-dom': 18.2.14- react: 18.2.0- react-dom: 18.2.0([email protected])- dev: false-/@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected])([email protected]):resolution: {integrity: sha512-x+yELayyefNeKeTx4fjK6j99Fs6c4qKm3aY38G3swQVTN6xMpsrbigC0uHs2L//g8q4qR7qOcww8430jJmi2ag==}peerDependencies:@@ -5838,34 +5732,6 @@ packages:react-dom: 18.2.0([email protected])dev: false- /@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected])([email protected]):- resolution: {integrity: sha512-EA6AMGeq9AEeQDeSH0aZgG198qkfHSbvWTf1HvoDmOB5bBG/qTxjYMWUKMnYiV6J/iP/J8MEFSuB2zRU2n7ODA==}- 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- dependencies:- '@radix-ui/primitive': 1.1.0- '@radix-ui/react-collection': 1.1.0(@types/[email protected])(@types/[email protected])([email protected])([email protected])- '@radix-ui/react-compose-refs': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-context': 1.1.0(@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.0(@types/[email protected])(@types/[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])- '@types/react': 18.2.48- '@types/react-dom': 18.2.14- react: 18.2.0- react-dom: 18.2.0([email protected])- dev: false-/@radix-ui/[email protected]([email protected]):resolution: {integrity: sha512-3mrKauI/tWXo1Ll+gN5dHcxDPdm/Df1ufcDLCecn+pnCIVcdWE7CujXo8QaXOWRJyZyQWWbpB8eFwHzWXlv5mQ==}peerDependencies:@@ -5901,20 +5767,6 @@ packages:react: 18.2.0dev: false- resolution: {integrity: sha512-FUCf5XMfmW4dtYl69pdS4DbxKy8nj4M7SafBgPllysxmdachynNflAdp/gCsnYWNDnge6tI9onzMp5ARYc1KNw==}- peerDependencies:- '@types/react': '*'- react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc- peerDependenciesMeta:- '@types/react':- optional: true- dependencies:- '@radix-ui/react-compose-refs': 1.1.0(@types/[email protected])([email protected])- '@types/react': 18.2.48- react: 18.2.0- dev: false-resolution: {integrity: sha512-tTxGluMtwrc5ffgAiOSMrYIx0r3vSTcgM4Vl8rqfpXcHt6ryB9B0OlFKUOiDpKASXlhvzfHf4Y0AYKJdpzjL8w==}peerDependencies:@@ -5960,32 +5812,6 @@ packages:react-dom: 18.2.0([email protected])dev: false- /@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected])([email protected]):- resolution: {integrity: sha512-PpTJV68dZU2oqqgq75Uzto5o/XfOVgkrJ9rulVmfTKxWp3HfUjHE6CP/WLRR4AzPX9HWxw7vFow2me85Yu+Naw==}- 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- dependencies:- '@radix-ui/primitive': 1.1.0- '@radix-ui/react-context': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-direction': 1.1.0(@types/[email protected])([email protected])- '@radix-ui/react-primitive': 2.0.0(@types/[email protected])(@types/[email protected])([email protected])([email protected])- '@radix-ui/react-roving-focus': 1.1.0(@types/[email protected])(@types/[email protected])([email protected])([email protected])- '@radix-ui/react-toggle': 1.1.0(@types/[email protected])(@types/[email protected])([email protected])([email protected])- '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])- '@types/react': 18.2.48- '@types/react-dom': 18.2.14- react: 18.2.0- react-dom: 18.2.0([email protected])- dev: false-/@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected])([email protected]):resolution: {integrity: sha512-Pkqg3+Bc98ftZGsl60CLANXQBBQ4W3mTFS9EJvNxKMZ7magklKV69/id1mlAlOFDDfHvlCms0fx8fA4CMKDJHg==}peerDependencies:@@ -6009,28 +5835,6 @@ packages:react-dom: 18.2.0([email protected])dev: false- /@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected])([email protected]):- resolution: {integrity: sha512-gwoxaKZ0oJ4vIgzsfESBuSgJNdc0rv12VhHgcqN0TEJmmZixXG/2XpsLK8kzNWYcnaoRIEEQc0bEi3dIvdUpjw==}- 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- dependencies:- '@radix-ui/primitive': 1.1.0- '@radix-ui/react-primitive': 2.0.0(@types/[email protected])(@types/[email protected])([email protected])([email protected])- '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])- '@types/react': 18.2.48- '@types/react-dom': 18.2.14- react: 18.2.0- react-dom: 18.2.0([email protected])- dev: false-/@radix-ui/[email protected](@types/[email protected])(@types/[email protected])([email protected])([email protected]):resolution: {integrity: sha512-DmNFOiwEc2UDigsYj6clJENma58OelxD24O4IODoZ+3sQc3Zb+L8w1EP+y9laTuKCLAysPw4fD6/v0j4KNV8rg==}peerDependencies:@@ -6118,19 +5922,6 @@ packages:react: 18.2.0dev: false- resolution: {integrity: sha512-CasTfvsy+frcFkbXtSJ2Zu9JHpN8TYKxkgJGWbjiZhFivxaeW7rMeZt7QELGVLaYVfFMsKHjb7Ak0nMEe+2Vfw==}- peerDependencies:- '@types/react': '*'- react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc- peerDependenciesMeta:- '@types/react':- optional: true- dependencies:- '@types/react': 18.2.48- react: 18.2.0- dev: false-/@radix-ui/[email protected]([email protected]):resolution: {integrity: sha512-FohDoZvk3mEXh9AWAVyRTYR4Sq7/gavuofglmiXB2g1aKyboUD4YtgWxKj8O5n+Uak52gXQ4wKz5IFST4vtJHg==}peerDependencies:@@ -6156,20 +5947,6 @@ packages:react: 18.2.0dev: false- resolution: {integrity: sha512-MtfMVJiSr2NjzS0Aa90NPTnvTSg6C/JLCV7ma0W6+OMV78vd8OyRpID+Ng9LxzsPbLeuBnWBA1Nq30AtBIDChw==}- peerDependencies:- '@types/react': '*'- react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc- peerDependenciesMeta:- '@types/react':- optional: true- dependencies:- '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])- '@types/react': 18.2.48- react: 18.2.0- dev: false-/@radix-ui/[email protected]([email protected]):resolution: {integrity: sha512-JwfBCUIfhXRxKExgIqGa4CQsiMemo1Xt0W/B4ei3fpzpvPENKpMKQ8mZSB6Acj3ebrAEgi2xiQvcI1PAAodvyg==}peerDependencies:@@ -6228,19 +6005,6 @@ packages:react: 18.2.0dev: false- resolution: {integrity: sha512-+FPE0rOdziWSrH9athwI1R0HDVbWlEhd+FR+aSDk4uWGmSJ9Z54sdZVDQPZAinJhJXwfT+qnj969mCsT2gfm5w==}- peerDependencies:- '@types/react': '*'- react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc- peerDependenciesMeta:- '@types/react':- optional: true- dependencies:- '@types/react': 18.2.48- react: 18.2.0- dev: false-/@radix-ui/[email protected]([email protected]):resolution: {integrity: sha512-RG2K8z/K7InnOKpq6YLDmT49HGjNmrK+fr82UCVKT2sW0GYfVnYp4wZWBooT/EYfQ5faA9uIjvsuMMhH61rheg==}peerDependencies: