From a7927d701a9ada6b8637991691018d2ce62777d2 Mon Sep 17 00:00:00 2001 From: "web@ppanel" Date: Fri, 15 Nov 2024 01:39:47 +0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(ui):=20Components?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/shadcn/src/components/ui/input.tsx | 54 +---- packages/shadcn/src/components/ui/label.tsx | 19 +- packages/shadcn/src/components/ui/sidebar.tsx | 1 + packages/shadcn/src/components/ui/tabs.tsx | 1 + packages/shadcn/src/hooks/use-toast.ts | 1 + packages/ui/.eslintrc.js | 6 +- packages/ui/package.json | 1 + packages/ui/src/dynamic-Inputs.tsx | 43 ++-- packages/ui/src/enhanced-input.tsx | 5 +- packages/ui/src/utils/unit-conversions.ts | 10 +- packages/ui/tsconfig.lint.json | 4 +- pnpm-lock.yaml | 196 +++++++++--------- 12 files changed, 170 insertions(+), 171 deletions(-) diff --git a/packages/shadcn/src/components/ui/input.tsx b/packages/shadcn/src/components/ui/input.tsx index 579616a..2071397 100644 --- a/packages/shadcn/src/components/ui/input.tsx +++ b/packages/shadcn/src/components/ui/input.tsx @@ -1,52 +1,20 @@ // @ts-nocheck -// Input component extends from shadcnui - https://ui.shadcn.com/docs/components/input -'use client'; -import { motion, useMotionTemplate, useMotionValue } from 'framer-motion'; import * as React from 'react'; + import { cn } from '../../lib/utils'; -export interface InputProps extends React.InputHTMLAttributes {} - -const Input = React.forwardRef( +const Input = React.forwardRef>( ({ className, type, ...props }, ref) => { - const radius = 100; // change this to increase the rdaius of the hover effect - const [visible, setVisible] = React.useState(false); - - let mouseX = useMotionValue(0); - let mouseY = useMotionValue(0); - - function handleMouseMove({ currentTarget, clientX, clientY }: any) { - let { left, top } = currentTarget.getBoundingClientRect(); - - mouseX.set(clientX - left); - mouseY.set(clientY - top); - } return ( - setVisible(true)} - onMouseLeave={() => setVisible(false)} - className='group/input rounded-lg p-[2px] transition duration-300' - > - - + ); }, ); diff --git a/packages/shadcn/src/components/ui/label.tsx b/packages/shadcn/src/components/ui/label.tsx index 2e86fd1..fb1be0f 100644 --- a/packages/shadcn/src/components/ui/label.tsx +++ b/packages/shadcn/src/components/ui/label.tsx @@ -1,24 +1,21 @@ // @ts-nocheck -// Label component extends from shadcnui - https://ui.shadcn.com/docs/components/label - 'use client'; + import * as LabelPrimitive from '@radix-ui/react-label'; +import { cva, type VariantProps } from 'class-variance-authority'; import * as React from 'react'; import { cn } from '../../lib/utils'; +const labelVariants = cva( + 'text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70', +); + const Label = React.forwardRef< React.ElementRef, - React.ComponentPropsWithoutRef + React.ComponentPropsWithoutRef & VariantProps >(({ className, ...props }, ref) => ( - + )); Label.displayName = LabelPrimitive.Root.displayName; diff --git a/packages/shadcn/src/components/ui/sidebar.tsx b/packages/shadcn/src/components/ui/sidebar.tsx index 7a0d279..ca92158 100644 --- a/packages/shadcn/src/components/ui/sidebar.tsx +++ b/packages/shadcn/src/components/ui/sidebar.tsx @@ -1,3 +1,4 @@ +// @ts-nocheck 'use client'; import { ViewVerticalIcon } from '@radix-ui/react-icons'; diff --git a/packages/shadcn/src/components/ui/tabs.tsx b/packages/shadcn/src/components/ui/tabs.tsx index df72c9b..de78b79 100644 --- a/packages/shadcn/src/components/ui/tabs.tsx +++ b/packages/shadcn/src/components/ui/tabs.tsx @@ -1,3 +1,4 @@ +// @ts-nocheck 'use client'; import * as TabsPrimitive from '@radix-ui/react-tabs'; diff --git a/packages/shadcn/src/hooks/use-toast.ts b/packages/shadcn/src/hooks/use-toast.ts index 7dcb758..f8a10a1 100644 --- a/packages/shadcn/src/hooks/use-toast.ts +++ b/packages/shadcn/src/hooks/use-toast.ts @@ -1,3 +1,4 @@ +// @ts-nocheck 'use client'; // Inspired by react-hot-toast library diff --git a/packages/ui/.eslintrc.js b/packages/ui/.eslintrc.js index a861f9b..e6f041f 100644 --- a/packages/ui/.eslintrc.js +++ b/packages/ui/.eslintrc.js @@ -3,9 +3,9 @@ module.exports = { root: true, extends: ['@repo/eslint-config/react-internal.js'], parser: '@typescript-eslint/parser', - parserOptions: { - project: './tsconfig.lint.json', - }, + // parserOptions: { + // project: './tsconfig.lint.json', + // }, rules: { 'no-redeclare': 'off', 'no-unused-vars': 'off', diff --git a/packages/ui/package.json b/packages/ui/package.json index 633ce99..961de91 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -43,6 +43,7 @@ "@types/react-dom": "^18.3.1", "autoprefixer": "^10.4.20", "postcss": "^8.4.49", + "react": "^18.3.1", "tailwindcss": "^3.4.14", "typescript": "^5.6.3" } diff --git a/packages/ui/src/dynamic-Inputs.tsx b/packages/ui/src/dynamic-Inputs.tsx index e68e531..ac6e2d0 100644 --- a/packages/ui/src/dynamic-Inputs.tsx +++ b/packages/ui/src/dynamic-Inputs.tsx @@ -1,18 +1,15 @@ import { Button } from '@shadcn/ui/button'; import { CircleMinusIcon, CirclePlusIcon } from 'lucide-react'; -import { useState } from 'react'; +import { useEffect, useState } from 'react'; import { Combobox } from './combobox'; -import { EnhancedInput } from './enhanced-input'; +import { EnhancedInput, EnhancedInputProps } from './enhanced-input'; -interface FieldConfig { +interface FieldConfig extends Omit { name: string; type: 'text' | 'number' | 'select'; - placeholder?: string; - prefix?: string; - suffix?: string; - min?: number; - max?: number; options?: { label: string; value: string }[]; + internal?: boolean; + calculateValue?: (value: Record) => any; } interface ObjectInputProps { @@ -26,8 +23,31 @@ export function ObjectInput>({ onChange, fields, }: ObjectInputProps) { + const [internalState, setInternalState] = useState(value); + + useEffect(() => { + setInternalState(value); + }, [value]); + const updateField = (key: keyof T, fieldValue: string | number) => { - onChange({ ...value, [key]: fieldValue }); + let updatedInternalState = { ...internalState, [key]: fieldValue }; + fields.forEach((field) => { + if (field.calculateValue && field.name === key) { + const newValue = field.calculateValue(updatedInternalState); + updatedInternalState = newValue; + } + }); + setInternalState(updatedInternalState); + + const filteredValue = Object.keys(updatedInternalState).reduce((acc, fieldKey) => { + const field = fields.find((f) => f.name === fieldKey); + if (field && !field.internal) { + acc[fieldKey as keyof T] = updatedInternalState[fieldKey as keyof T]; + } + return acc; + }, {} as T); + + onChange(filteredValue); }; return ( @@ -38,14 +58,14 @@ export function ObjectInput>({ placeholder={fieldProps.placeholder} options={options} - value={value[name]} + value={internalState[name]} onChange={(fieldValue) => { updateField(name, fieldValue); }} /> ) : ( updateField(name, fieldValue)} type={type} {...fieldProps} @@ -56,7 +76,6 @@ export function ObjectInput>({ ); } - interface ArrayInputProps { value?: T[]; onChange: (value: T[]) => void; diff --git a/packages/ui/src/enhanced-input.tsx b/packages/ui/src/enhanced-input.tsx index dc73c72..78a2122 100644 --- a/packages/ui/src/enhanced-input.tsx +++ b/packages/ui/src/enhanced-input.tsx @@ -2,7 +2,8 @@ import { Input } from '@shadcn/ui/input'; import { cn } from '@shadcn/ui/lib/utils'; import { ChangeEvent, ReactNode, useEffect, useState } from 'react'; -interface EnhancedInputProps extends Omit, 'prefix'> { +export interface EnhancedInputProps + extends Omit, 'prefix'> { prefix?: ReactNode; suffix?: ReactNode; formatInput?: (value: string | number) => string; @@ -39,7 +40,7 @@ export function EnhancedInput({ }, [initialValue, formatInput]); const processValue = (inputValue: string) => { - let processedValue: number | string = inputValue?.trim(); + let processedValue: number | string = inputValue?.toString().trim(); if (processedValue && props.type === 'number') processedValue = Number(processedValue); return formatOutput ? formatOutput(processedValue) : processedValue; }; diff --git a/packages/ui/src/utils/unit-conversions.ts b/packages/ui/src/utils/unit-conversions.ts index c45e15f..cb5cbfd 100644 --- a/packages/ui/src/utils/unit-conversions.ts +++ b/packages/ui/src/utils/unit-conversions.ts @@ -1,4 +1,4 @@ -import { evaluate } from 'mathjs'; +import { evaluate, format } from 'mathjs'; export function unitConversion( type: 'centsToDollars' | 'dollarsToCents' | 'bitsToMb' | 'mbToBits' | 'bytesToGb' | 'gbToBytes', @@ -22,3 +22,11 @@ export function unitConversion( throw new Error('Invalid conversion type'); } } + +export function evaluateWithPrecision(expression: string) { + const result = evaluate(expression); + + const formatted = format(result, { notation: 'fixed', precision: 2 }); + + return Number(formatted); +} diff --git a/packages/ui/tsconfig.lint.json b/packages/ui/tsconfig.lint.json index 8e95295..64692d4 100644 --- a/packages/ui/tsconfig.lint.json +++ b/packages/ui/tsconfig.lint.json @@ -1,6 +1,8 @@ { "compilerOptions": { - "outDir": "dist" + "outDir": "dist", + "module": "ESNext", + "moduleResolution": "Bundler" }, "exclude": ["node_modules", "dist"], "extends": "@repo/typescript-config/react-library.json", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3bfdc87..0f326ed 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -43,7 +43,7 @@ importers: dependencies: '@iconify/react': specifier: ^5.0.2 - version: 5.0.2(react@19.0.0-rc-7ac8e612-20241113) + version: 5.0.2(react@19.0.0-rc-380f5d67-20241113) '@repo/ui': specifier: workspace:* version: link:../../packages/ui @@ -52,13 +52,13 @@ importers: version: link:../../packages/shadcn '@tanstack/react-query': specifier: ^5.60.2 - version: 5.60.2(react@19.0.0-rc-7ac8e612-20241113) + version: 5.60.2(react@19.0.0-rc-380f5d67-20241113) '@tanstack/react-query-next-experimental': specifier: ^5.60.2 - version: 5.60.2(@tanstack/react-query@5.60.2(react@19.0.0-rc-7ac8e612-20241113))(next@15.0.3(react-dom@19.0.0-rc-7ac8e612-20241113(react@19.0.0-rc-7ac8e612-20241113))(react@19.0.0-rc-7ac8e612-20241113))(react@19.0.0-rc-7ac8e612-20241113) + version: 5.60.2(@tanstack/react-query@5.60.2(react@19.0.0-rc-380f5d67-20241113))(next@15.0.3(react-dom@19.0.0-rc-380f5d67-20241113(react@19.0.0-rc-380f5d67-20241113))(react@19.0.0-rc-380f5d67-20241113))(react@19.0.0-rc-380f5d67-20241113) ahooks: specifier: ^3.8.1 - version: 3.8.1(react@19.0.0-rc-7ac8e612-20241113) + version: 3.8.1(react@19.0.0-rc-380f5d67-20241113) axios: specifier: ^1.7.7 version: 1.7.7 @@ -73,37 +73,37 @@ importers: version: 5.0.8 next: specifier: ^15.0.3 - version: 15.0.3(react-dom@19.0.0-rc-7ac8e612-20241113(react@19.0.0-rc-7ac8e612-20241113))(react@19.0.0-rc-7ac8e612-20241113) + version: 15.0.3(react-dom@19.0.0-rc-380f5d67-20241113(react@19.0.0-rc-380f5d67-20241113))(react@19.0.0-rc-380f5d67-20241113) next-intl: specifier: ^3.25.1 - version: 3.25.1(next@15.0.3(react-dom@19.0.0-rc-7ac8e612-20241113(react@19.0.0-rc-7ac8e612-20241113))(react@19.0.0-rc-7ac8e612-20241113))(react@19.0.0-rc-7ac8e612-20241113) + version: 3.25.1(next@15.0.3(react-dom@19.0.0-rc-380f5d67-20241113(react@19.0.0-rc-380f5d67-20241113))(react@19.0.0-rc-380f5d67-20241113))(react@19.0.0-rc-380f5d67-20241113) next-runtime-env: specifier: ^3.2.2 - version: 3.2.2(next@15.0.3(react-dom@19.0.0-rc-7ac8e612-20241113(react@19.0.0-rc-7ac8e612-20241113))(react@19.0.0-rc-7ac8e612-20241113))(react@19.0.0-rc-7ac8e612-20241113) + version: 3.2.2(next@15.0.3(react-dom@19.0.0-rc-380f5d67-20241113(react@19.0.0-rc-380f5d67-20241113))(react@19.0.0-rc-380f5d67-20241113))(react@19.0.0-rc-380f5d67-20241113) next-themes: specifier: ^0.4.3 - version: 0.4.3(react-dom@19.0.0-rc-7ac8e612-20241113(react@19.0.0-rc-7ac8e612-20241113))(react@19.0.0-rc-7ac8e612-20241113) + version: 0.4.3(react-dom@19.0.0-rc-380f5d67-20241113(react@19.0.0-rc-380f5d67-20241113))(react@19.0.0-rc-380f5d67-20241113) nextjs-toploader: specifier: ^3.7.15 - version: 3.7.15(next@15.0.3(react-dom@19.0.0-rc-7ac8e612-20241113(react@19.0.0-rc-7ac8e612-20241113))(react@19.0.0-rc-7ac8e612-20241113))(react-dom@19.0.0-rc-7ac8e612-20241113(react@19.0.0-rc-7ac8e612-20241113))(react@19.0.0-rc-7ac8e612-20241113) + version: 3.7.15(next@15.0.3(react-dom@19.0.0-rc-380f5d67-20241113(react@19.0.0-rc-380f5d67-20241113))(react@19.0.0-rc-380f5d67-20241113))(react-dom@19.0.0-rc-380f5d67-20241113(react@19.0.0-rc-380f5d67-20241113))(react@19.0.0-rc-380f5d67-20241113) radash: specifier: ^12.1.0 version: 12.1.0 react: specifier: rc - version: 19.0.0-rc-7ac8e612-20241113 + version: 19.0.0-rc-380f5d67-20241113 react-dom: specifier: rc - version: 19.0.0-rc-7ac8e612-20241113(react@19.0.0-rc-7ac8e612-20241113) + version: 19.0.0-rc-380f5d67-20241113(react@19.0.0-rc-380f5d67-20241113) react-turnstile: specifier: ^1.1.4 - version: 1.1.4(react-dom@19.0.0-rc-7ac8e612-20241113(react@19.0.0-rc-7ac8e612-20241113))(react@19.0.0-rc-7ac8e612-20241113) + version: 1.1.4(react-dom@19.0.0-rc-380f5d67-20241113(react@19.0.0-rc-380f5d67-20241113))(react@19.0.0-rc-380f5d67-20241113) universal-cookie: specifier: ^7.2.2 version: 7.2.2 zustand: specifier: ^5.0.1 - version: 5.0.1(@types/react@18.3.12)(react@19.0.0-rc-7ac8e612-20241113)(use-sync-external-store@1.2.2(react@19.0.0-rc-7ac8e612-20241113)) + version: 5.0.1(@types/react@18.3.12)(react@19.0.0-rc-380f5d67-20241113)(use-sync-external-store@1.2.2(react@19.0.0-rc-380f5d67-20241113)) devDependencies: '@repo/eslint-config': specifier: workspace:* @@ -128,7 +128,7 @@ importers: dependencies: '@iconify/react': specifier: ^5.0.2 - version: 5.0.2(react@19.0.0-rc-7ac8e612-20241113) + version: 5.0.2(react@19.0.0-rc-380f5d67-20241113) '@repo/ui': specifier: workspace:* version: link:../../packages/ui @@ -137,19 +137,19 @@ importers: version: link:../../packages/shadcn '@stripe/react-stripe-js': specifier: ^2.9.0 - version: 2.9.0(@stripe/stripe-js@4.10.0)(react-dom@19.0.0-rc-7ac8e612-20241113(react@19.0.0-rc-7ac8e612-20241113))(react@19.0.0-rc-7ac8e612-20241113) + version: 2.9.0(@stripe/stripe-js@4.10.0)(react-dom@19.0.0-rc-380f5d67-20241113(react@19.0.0-rc-380f5d67-20241113))(react@19.0.0-rc-380f5d67-20241113) '@stripe/stripe-js': specifier: ^4.10.0 version: 4.10.0 '@tanstack/react-query': specifier: ^5.60.2 - version: 5.60.2(react@19.0.0-rc-7ac8e612-20241113) + version: 5.60.2(react@19.0.0-rc-380f5d67-20241113) '@tanstack/react-query-next-experimental': specifier: ^5.60.2 - version: 5.60.2(@tanstack/react-query@5.60.2(react@19.0.0-rc-7ac8e612-20241113))(next@15.0.3(react-dom@19.0.0-rc-7ac8e612-20241113(react@19.0.0-rc-7ac8e612-20241113))(react@19.0.0-rc-7ac8e612-20241113))(react@19.0.0-rc-7ac8e612-20241113) + version: 5.60.2(@tanstack/react-query@5.60.2(react@19.0.0-rc-380f5d67-20241113))(next@15.0.3(react-dom@19.0.0-rc-380f5d67-20241113(react@19.0.0-rc-380f5d67-20241113))(react@19.0.0-rc-380f5d67-20241113))(react@19.0.0-rc-380f5d67-20241113) ahooks: specifier: ^3.8.1 - version: 3.8.1(react@19.0.0-rc-7ac8e612-20241113) + version: 3.8.1(react@19.0.0-rc-380f5d67-20241113) axios: specifier: ^1.7.7 version: 1.7.7 @@ -158,49 +158,49 @@ importers: version: 4.2.0 framer-motion: specifier: ^11.11.16 - version: 11.11.16(react-dom@19.0.0-rc-7ac8e612-20241113(react@19.0.0-rc-7ac8e612-20241113))(react@19.0.0-rc-7ac8e612-20241113) + version: 11.11.16(react-dom@19.0.0-rc-380f5d67-20241113(react@19.0.0-rc-380f5d67-20241113))(react@19.0.0-rc-380f5d67-20241113) lucide-react: specifier: ^0.456.0 - version: 0.456.0(react@19.0.0-rc-7ac8e612-20241113) + version: 0.456.0(react@19.0.0-rc-380f5d67-20241113) mathjs: specifier: ^13.2.2 version: 13.2.2 next: specifier: ^15.0.3 - version: 15.0.3(react-dom@19.0.0-rc-7ac8e612-20241113(react@19.0.0-rc-7ac8e612-20241113))(react@19.0.0-rc-7ac8e612-20241113) + version: 15.0.3(react-dom@19.0.0-rc-380f5d67-20241113(react@19.0.0-rc-380f5d67-20241113))(react@19.0.0-rc-380f5d67-20241113) next-intl: specifier: ^3.25.1 - version: 3.25.1(next@15.0.3(react-dom@19.0.0-rc-7ac8e612-20241113(react@19.0.0-rc-7ac8e612-20241113))(react@19.0.0-rc-7ac8e612-20241113))(react@19.0.0-rc-7ac8e612-20241113) + version: 3.25.1(next@15.0.3(react-dom@19.0.0-rc-380f5d67-20241113(react@19.0.0-rc-380f5d67-20241113))(react@19.0.0-rc-380f5d67-20241113))(react@19.0.0-rc-380f5d67-20241113) next-runtime-env: specifier: ^3.2.2 - version: 3.2.2(next@15.0.3(react-dom@19.0.0-rc-7ac8e612-20241113(react@19.0.0-rc-7ac8e612-20241113))(react@19.0.0-rc-7ac8e612-20241113))(react@19.0.0-rc-7ac8e612-20241113) + version: 3.2.2(next@15.0.3(react-dom@19.0.0-rc-380f5d67-20241113(react@19.0.0-rc-380f5d67-20241113))(react@19.0.0-rc-380f5d67-20241113))(react@19.0.0-rc-380f5d67-20241113) next-themes: specifier: ^0.4.3 - version: 0.4.3(react-dom@19.0.0-rc-7ac8e612-20241113(react@19.0.0-rc-7ac8e612-20241113))(react@19.0.0-rc-7ac8e612-20241113) + version: 0.4.3(react-dom@19.0.0-rc-380f5d67-20241113(react@19.0.0-rc-380f5d67-20241113))(react@19.0.0-rc-380f5d67-20241113) nextjs-toploader: specifier: ^3.7.15 - version: 3.7.15(next@15.0.3(react-dom@19.0.0-rc-7ac8e612-20241113(react@19.0.0-rc-7ac8e612-20241113))(react@19.0.0-rc-7ac8e612-20241113))(react-dom@19.0.0-rc-7ac8e612-20241113(react@19.0.0-rc-7ac8e612-20241113))(react@19.0.0-rc-7ac8e612-20241113) + version: 3.7.15(next@15.0.3(react-dom@19.0.0-rc-380f5d67-20241113(react@19.0.0-rc-380f5d67-20241113))(react@19.0.0-rc-380f5d67-20241113))(react-dom@19.0.0-rc-380f5d67-20241113(react@19.0.0-rc-380f5d67-20241113))(react@19.0.0-rc-380f5d67-20241113) qrcode.react: specifier: ^4.1.0 - version: 4.1.0(react@19.0.0-rc-7ac8e612-20241113) + version: 4.1.0(react@19.0.0-rc-380f5d67-20241113) radash: specifier: ^12.1.0 version: 12.1.0 react: specifier: rc - version: 19.0.0-rc-7ac8e612-20241113 + version: 19.0.0-rc-380f5d67-20241113 react-dom: specifier: rc - version: 19.0.0-rc-7ac8e612-20241113(react@19.0.0-rc-7ac8e612-20241113) + version: 19.0.0-rc-380f5d67-20241113(react@19.0.0-rc-380f5d67-20241113) react-turnstile: specifier: ^1.1.4 - version: 1.1.4(react-dom@19.0.0-rc-7ac8e612-20241113(react@19.0.0-rc-7ac8e612-20241113))(react@19.0.0-rc-7ac8e612-20241113) + version: 1.1.4(react-dom@19.0.0-rc-380f5d67-20241113(react@19.0.0-rc-380f5d67-20241113))(react@19.0.0-rc-380f5d67-20241113) universal-cookie: specifier: ^7.2.2 version: 7.2.2 zustand: specifier: ^5.0.1 - version: 5.0.1(@types/react@18.3.12)(react@19.0.0-rc-7ac8e612-20241113)(use-sync-external-store@1.2.2(react@19.0.0-rc-7ac8e612-20241113)) + version: 5.0.1(@types/react@18.3.12)(react@19.0.0-rc-380f5d67-20241113)(use-sync-external-store@1.2.2(react@19.0.0-rc-380f5d67-20241113)) devDependencies: '@repo/eslint-config': specifier: workspace:* @@ -7128,10 +7128,10 @@ packages: react-devtools-core@5.3.2: resolution: {integrity: sha512-crr9HkVrDiJ0A4zot89oS0Cgv0Oa4OG1Em4jit3P3ZxZSKPMYyMjfwMqgcJna9o625g8oN87rBm8SWWrSTBZxg==} - react-dom@19.0.0-rc-7ac8e612-20241113: - resolution: {integrity: sha512-bbuSvwR89fSfpRPTSbG+m/Ur2eqHIKwSzhux57AkC+NVVnwARA7TdLLEWp6GmzXLtSbt3yqw4N0HcEoICvjgBg==} + react-dom@19.0.0-rc-380f5d67-20241113: + resolution: {integrity: sha512-jd/2ktaIZieYI76xBPAfEXFfg9XQE/GM++rbItliRJJ6pN205aS3JxGc7WAdm3SkaeIHLwK+V6d+FziVg7g5Eg==} peerDependencies: - react: 19.0.0-rc-7ac8e612-20241113 + react: 19.0.0-rc-380f5d67-20241113 react-dom@19.0.0-rc-ed15d500-20241110: resolution: {integrity: sha512-V9wIC4SOsBvRKYvfKXRg2Rzgh5BymnI7qlO63U68gt6agfGExRPUyTH1CnlQwR0mnqxbEEfUBFr6MoYtF/bY3A==} @@ -7158,8 +7158,8 @@ packages: peerDependencies: react: '*' - react-is@19.0.0-rc-7ac8e612-20241113: - resolution: {integrity: sha512-B8wC8ziQLH0Deh68Pd04YtsWRzikdLoXyfvSqaWYTmApVgabiOsRDhyrAf+7dTdKfh4U7gE9r25lYSRa4i4VPQ==} + react-is@19.0.0-rc.1: + resolution: {integrity: sha512-D6AbvUGS+i2lK3yC1a+iSicqWhIenYGxYUd7j0JJxunlk0RSAy/yRo58Mh5JJcAVQfNhej20nCwJVehYpNwNiA==} react-markdown@9.0.1: resolution: {integrity: sha512-186Gw/vF1uRkydbsOIkcGXw7aHq0sZOCRFFjGrr7b9+nVZg4UfA4enXCaxm4fUzecU38sWfrNDitGhshuU7rdg==} @@ -7251,8 +7251,8 @@ packages: resolution: {integrity: sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==} engines: {node: '>=0.10.0'} - react@19.0.0-rc-7ac8e612-20241113: - resolution: {integrity: sha512-/pDTAIK17lYvlY5SUC6Pb/aK/mqn+Biz38pl3lxJV9XjuDdm1EYC7w6pHsORKfiSLuudJtCiV4G8VyMleTbwNw==} + react@19.0.0-rc-380f5d67-20241113: + resolution: {integrity: sha512-wtdbqto84bAgLqzfJpIpV6m9L5hUPVDb9vM/sGJ4K2z2PVf7t/OOG8xQFUSI6cEfQ1yN0X7qYfUchoVmbebW4g==} engines: {node: '>=0.10.0'} read-cache@1.0.0: @@ -7498,8 +7498,8 @@ packages: scheduler@0.24.0-canary-efb381bbf-20230505: resolution: {integrity: sha512-ABvovCDe/k9IluqSh4/ISoq8tIJnW8euVAWYt5j/bg6dRnqwQwiGO1F/V4AyK96NGF/FB04FhOUDuWj8IKfABA==} - scheduler@0.25.0-rc-7ac8e612-20241113: - resolution: {integrity: sha512-9YKvoO+2s+BIkQVn4rlpCfp88nM12R+W4j07OisQ7F7P4zL/gOH9ttqpA7dL4j7mPg+SPLFbNLmMvptIlQXuZA==} + scheduler@0.25.0-rc-380f5d67-20241113: + resolution: {integrity: sha512-F0DjPvSUAj8+PgdujbWDg5qPu9d1+IiOLJKhvknnbk6H+53aqb+CwwAXgHqkjdPfVk81zFbPHaFjQEQReDzH8w==} scheduler@0.25.0-rc-ed15d500-20241110: resolution: {integrity: sha512-7y78hEtogCIfAr1XytMxvgtuccmQTtnx99Fdna4atfTpuahKkRqp1NB+HBGYFi5i2jCzRiNXgNhSQQw+h7Mmgw==} @@ -9901,10 +9901,10 @@ snapshots: transitivePeerDependencies: - supports-color - '@iconify/react@5.0.2(react@19.0.0-rc-7ac8e612-20241113)': + '@iconify/react@5.0.2(react@19.0.0-rc-380f5d67-20241113)': dependencies: '@iconify/types': 2.0.0 - react: 19.0.0-rc-7ac8e612-20241113 + react: 19.0.0-rc-380f5d67-20241113 '@iconify/types@2.0.0': {} @@ -11372,12 +11372,12 @@ snapshots: '@sinonjs/commons': 3.0.1 optional: true - '@stripe/react-stripe-js@2.9.0(@stripe/stripe-js@4.10.0)(react-dom@19.0.0-rc-7ac8e612-20241113(react@19.0.0-rc-7ac8e612-20241113))(react@19.0.0-rc-7ac8e612-20241113)': + '@stripe/react-stripe-js@2.9.0(@stripe/stripe-js@4.10.0)(react-dom@19.0.0-rc-380f5d67-20241113(react@19.0.0-rc-380f5d67-20241113))(react@19.0.0-rc-380f5d67-20241113)': dependencies: '@stripe/stripe-js': 4.10.0 prop-types: 15.8.1 - react: 19.0.0-rc-7ac8e612-20241113 - react-dom: 19.0.0-rc-7ac8e612-20241113(react@19.0.0-rc-7ac8e612-20241113) + react: 19.0.0-rc-380f5d67-20241113 + react-dom: 19.0.0-rc-380f5d67-20241113(react@19.0.0-rc-380f5d67-20241113) '@stripe/stripe-js@4.10.0': {} @@ -11396,16 +11396,16 @@ snapshots: '@tanstack/query-core@5.59.20': {} - '@tanstack/react-query-next-experimental@5.60.2(@tanstack/react-query@5.60.2(react@19.0.0-rc-7ac8e612-20241113))(next@15.0.3(react-dom@19.0.0-rc-7ac8e612-20241113(react@19.0.0-rc-7ac8e612-20241113))(react@19.0.0-rc-7ac8e612-20241113))(react@19.0.0-rc-7ac8e612-20241113)': + '@tanstack/react-query-next-experimental@5.60.2(@tanstack/react-query@5.60.2(react@19.0.0-rc-380f5d67-20241113))(next@15.0.3(react-dom@19.0.0-rc-380f5d67-20241113(react@19.0.0-rc-380f5d67-20241113))(react@19.0.0-rc-380f5d67-20241113))(react@19.0.0-rc-380f5d67-20241113)': dependencies: - '@tanstack/react-query': 5.60.2(react@19.0.0-rc-7ac8e612-20241113) - next: 15.0.3(react-dom@19.0.0-rc-7ac8e612-20241113(react@19.0.0-rc-7ac8e612-20241113))(react@19.0.0-rc-7ac8e612-20241113) - react: 19.0.0-rc-7ac8e612-20241113 + '@tanstack/react-query': 5.60.2(react@19.0.0-rc-380f5d67-20241113) + next: 15.0.3(react-dom@19.0.0-rc-380f5d67-20241113(react@19.0.0-rc-380f5d67-20241113))(react@19.0.0-rc-380f5d67-20241113) + react: 19.0.0-rc-380f5d67-20241113 - '@tanstack/react-query@5.60.2(react@19.0.0-rc-7ac8e612-20241113)': + '@tanstack/react-query@5.60.2(react@19.0.0-rc-380f5d67-20241113)': dependencies: '@tanstack/query-core': 5.59.20 - react: 19.0.0-rc-7ac8e612-20241113 + react: 19.0.0-rc-380f5d67-20241113 '@tanstack/react-table@8.20.5(react-dom@19.0.0-rc-ed15d500-20241110(react@18.3.1))(react@18.3.1)': dependencies: @@ -12210,14 +12210,14 @@ snapshots: screenfull: 5.2.0 tslib: 2.8.1 - ahooks@3.8.1(react@19.0.0-rc-7ac8e612-20241113): + ahooks@3.8.1(react@19.0.0-rc-380f5d67-20241113): dependencies: '@babel/runtime': 7.26.0 dayjs: 1.11.13 intersection-observer: 0.12.2 js-cookie: 3.0.5 lodash: 4.17.21 - react: 19.0.0-rc-7ac8e612-20241113 + react: 19.0.0-rc-380f5d67-20241113 react-fast-compare: 3.2.2 resize-observer-polyfill: 1.5.1 screenfull: 5.2.0 @@ -14075,12 +14075,12 @@ snapshots: dependencies: simplesignal: 2.1.7 - framer-motion@11.11.16(react-dom@19.0.0-rc-7ac8e612-20241113(react@19.0.0-rc-7ac8e612-20241113))(react@19.0.0-rc-7ac8e612-20241113): + framer-motion@11.11.16(react-dom@19.0.0-rc-380f5d67-20241113(react@19.0.0-rc-380f5d67-20241113))(react@19.0.0-rc-380f5d67-20241113): dependencies: tslib: 2.8.1 optionalDependencies: - react: 19.0.0-rc-7ac8e612-20241113 - react-dom: 19.0.0-rc-7ac8e612-20241113(react@19.0.0-rc-7ac8e612-20241113) + react: 19.0.0-rc-380f5d67-20241113 + react-dom: 19.0.0-rc-380f5d67-20241113(react@19.0.0-rc-380f5d67-20241113) framer-motion@11.11.16(react-dom@19.0.0-rc-ed15d500-20241110(react@18.3.1))(react@18.3.1): dependencies: @@ -15276,9 +15276,9 @@ snapshots: dependencies: react: 18.3.1 - lucide-react@0.456.0(react@19.0.0-rc-7ac8e612-20241113): + lucide-react@0.456.0(react@19.0.0-rc-380f5d67-20241113): dependencies: - react: 19.0.0-rc-7ac8e612-20241113 + react: 19.0.0-rc-380f5d67-20241113 maath@0.10.8(@types/three@0.170.0)(three@0.170.0): dependencies: @@ -16035,23 +16035,23 @@ snapshots: netmask@2.0.2: {} - next-intl@3.25.1(next@15.0.3(react-dom@19.0.0-rc-7ac8e612-20241113(react@19.0.0-rc-7ac8e612-20241113))(react@19.0.0-rc-7ac8e612-20241113))(react@19.0.0-rc-7ac8e612-20241113): + next-intl@3.25.1(next@15.0.3(react-dom@19.0.0-rc-380f5d67-20241113(react@19.0.0-rc-380f5d67-20241113))(react@19.0.0-rc-380f5d67-20241113))(react@19.0.0-rc-380f5d67-20241113): dependencies: '@formatjs/intl-localematcher': 0.5.7 negotiator: 1.0.0 - next: 15.0.3(react-dom@19.0.0-rc-7ac8e612-20241113(react@19.0.0-rc-7ac8e612-20241113))(react@19.0.0-rc-7ac8e612-20241113) - react: 19.0.0-rc-7ac8e612-20241113 - use-intl: 3.25.1(react@19.0.0-rc-7ac8e612-20241113) + next: 15.0.3(react-dom@19.0.0-rc-380f5d67-20241113(react@19.0.0-rc-380f5d67-20241113))(react@19.0.0-rc-380f5d67-20241113) + react: 19.0.0-rc-380f5d67-20241113 + use-intl: 3.25.1(react@19.0.0-rc-380f5d67-20241113) - next-runtime-env@3.2.2(next@15.0.3(react-dom@19.0.0-rc-7ac8e612-20241113(react@19.0.0-rc-7ac8e612-20241113))(react@19.0.0-rc-7ac8e612-20241113))(react@19.0.0-rc-7ac8e612-20241113): + next-runtime-env@3.2.2(next@15.0.3(react-dom@19.0.0-rc-380f5d67-20241113(react@19.0.0-rc-380f5d67-20241113))(react@19.0.0-rc-380f5d67-20241113))(react@19.0.0-rc-380f5d67-20241113): dependencies: - next: 15.0.3(react-dom@19.0.0-rc-7ac8e612-20241113(react@19.0.0-rc-7ac8e612-20241113))(react@19.0.0-rc-7ac8e612-20241113) - react: 19.0.0-rc-7ac8e612-20241113 + next: 15.0.3(react-dom@19.0.0-rc-380f5d67-20241113(react@19.0.0-rc-380f5d67-20241113))(react@19.0.0-rc-380f5d67-20241113) + react: 19.0.0-rc-380f5d67-20241113 - next-themes@0.4.3(react-dom@19.0.0-rc-7ac8e612-20241113(react@19.0.0-rc-7ac8e612-20241113))(react@19.0.0-rc-7ac8e612-20241113): + next-themes@0.4.3(react-dom@19.0.0-rc-380f5d67-20241113(react@19.0.0-rc-380f5d67-20241113))(react@19.0.0-rc-380f5d67-20241113): dependencies: - react: 19.0.0-rc-7ac8e612-20241113 - react-dom: 19.0.0-rc-7ac8e612-20241113(react@19.0.0-rc-7ac8e612-20241113) + react: 19.0.0-rc-380f5d67-20241113 + react-dom: 19.0.0-rc-380f5d67-20241113(react@19.0.0-rc-380f5d67-20241113) next-themes@0.4.3(react-dom@19.0.0-rc-ed15d500-20241110(react@18.3.1))(react@18.3.1): dependencies: @@ -16085,7 +16085,7 @@ snapshots: - '@babel/core' - babel-plugin-macros - next@15.0.3(react-dom@19.0.0-rc-7ac8e612-20241113(react@19.0.0-rc-7ac8e612-20241113))(react@19.0.0-rc-7ac8e612-20241113): + next@15.0.3(react-dom@19.0.0-rc-380f5d67-20241113(react@19.0.0-rc-380f5d67-20241113))(react@19.0.0-rc-380f5d67-20241113): dependencies: '@next/env': 15.0.3 '@swc/counter': 0.1.3 @@ -16093,9 +16093,9 @@ snapshots: busboy: 1.6.0 caniuse-lite: 1.0.30001680 postcss: 8.4.31 - react: 19.0.0-rc-7ac8e612-20241113 - react-dom: 19.0.0-rc-7ac8e612-20241113(react@19.0.0-rc-7ac8e612-20241113) - styled-jsx: 5.1.6(react@19.0.0-rc-7ac8e612-20241113) + react: 19.0.0-rc-380f5d67-20241113 + react-dom: 19.0.0-rc-380f5d67-20241113(react@19.0.0-rc-380f5d67-20241113) + styled-jsx: 5.1.6(react@19.0.0-rc-380f5d67-20241113) optionalDependencies: '@next/swc-darwin-arm64': 15.0.3 '@next/swc-darwin-x64': 15.0.3 @@ -16110,13 +16110,13 @@ snapshots: - '@babel/core' - babel-plugin-macros - nextjs-toploader@3.7.15(next@15.0.3(react-dom@19.0.0-rc-7ac8e612-20241113(react@19.0.0-rc-7ac8e612-20241113))(react@19.0.0-rc-7ac8e612-20241113))(react-dom@19.0.0-rc-7ac8e612-20241113(react@19.0.0-rc-7ac8e612-20241113))(react@19.0.0-rc-7ac8e612-20241113): + nextjs-toploader@3.7.15(next@15.0.3(react-dom@19.0.0-rc-380f5d67-20241113(react@19.0.0-rc-380f5d67-20241113))(react@19.0.0-rc-380f5d67-20241113))(react-dom@19.0.0-rc-380f5d67-20241113(react@19.0.0-rc-380f5d67-20241113))(react@19.0.0-rc-380f5d67-20241113): dependencies: - next: 15.0.3(react-dom@19.0.0-rc-7ac8e612-20241113(react@19.0.0-rc-7ac8e612-20241113))(react@19.0.0-rc-7ac8e612-20241113) + next: 15.0.3(react-dom@19.0.0-rc-380f5d67-20241113(react@19.0.0-rc-380f5d67-20241113))(react@19.0.0-rc-380f5d67-20241113) nprogress: 0.2.0 prop-types: 15.8.1 - react: 19.0.0-rc-7ac8e612-20241113 - react-dom: 19.0.0-rc-7ac8e612-20241113(react@19.0.0-rc-7ac8e612-20241113) + react: 19.0.0-rc-380f5d67-20241113 + react-dom: 19.0.0-rc-380f5d67-20241113(react@19.0.0-rc-380f5d67-20241113) no-case@2.3.2: dependencies: @@ -16674,7 +16674,7 @@ snapshots: dependencies: '@jest/schemas': 29.6.3 ansi-styles: 5.2.0 - react-is: 19.0.0-rc-7ac8e612-20241113 + react-is: 19.0.0-rc.1 optional: true prismjs@1.27.0: {} @@ -16697,7 +16697,7 @@ snapshots: dependencies: loose-envify: 1.4.0 object-assign: 4.1.1 - react-is: 19.0.0-rc-7ac8e612-20241113 + react-is: 19.0.0-rc.1 property-information@5.6.0: dependencies: @@ -16724,9 +16724,9 @@ snapshots: punycode@2.3.1: {} - qrcode.react@4.1.0(react@19.0.0-rc-7ac8e612-20241113): + qrcode.react@4.1.0(react@19.0.0-rc-380f5d67-20241113): dependencies: - react: 19.0.0-rc-7ac8e612-20241113 + react: 19.0.0-rc-380f5d67-20241113 qss@3.0.0: {} @@ -16772,10 +16772,10 @@ snapshots: - utf-8-validate optional: true - react-dom@19.0.0-rc-7ac8e612-20241113(react@19.0.0-rc-7ac8e612-20241113): + react-dom@19.0.0-rc-380f5d67-20241113(react@19.0.0-rc-380f5d67-20241113): dependencies: - react: 19.0.0-rc-7ac8e612-20241113 - scheduler: 0.25.0-rc-7ac8e612-20241113 + react: 19.0.0-rc-380f5d67-20241113 + scheduler: 0.25.0-rc-380f5d67-20241113 react-dom@19.0.0-rc-ed15d500-20241110(react@18.3.1): dependencies: @@ -16799,7 +16799,7 @@ snapshots: dependencies: react: 18.3.1 - react-is@19.0.0-rc-7ac8e612-20241113: {} + react-is@19.0.0-rc.1: {} react-markdown@9.0.1(@types/react@18.3.12)(react@18.3.1): dependencies: @@ -16940,16 +16940,16 @@ snapshots: react: 18.3.1 react-dom: 19.0.0-rc-ed15d500-20241110(react@18.3.1) - react-turnstile@1.1.4(react-dom@19.0.0-rc-7ac8e612-20241113(react@19.0.0-rc-7ac8e612-20241113))(react@19.0.0-rc-7ac8e612-20241113): + react-turnstile@1.1.4(react-dom@19.0.0-rc-380f5d67-20241113(react@19.0.0-rc-380f5d67-20241113))(react@19.0.0-rc-380f5d67-20241113): dependencies: - react: 19.0.0-rc-7ac8e612-20241113 - react-dom: 19.0.0-rc-7ac8e612-20241113(react@19.0.0-rc-7ac8e612-20241113) + react: 19.0.0-rc-380f5d67-20241113 + react-dom: 19.0.0-rc-380f5d67-20241113(react@19.0.0-rc-380f5d67-20241113) react@18.3.1: dependencies: loose-envify: 1.4.0 - react@19.0.0-rc-7ac8e612-20241113: {} + react@19.0.0-rc-380f5d67-20241113: {} read-cache@1.0.0: dependencies: @@ -17023,7 +17023,7 @@ snapshots: lodash: 4.17.21 react: 18.3.1 react-dom: 19.0.0-rc-ed15d500-20241110(react@18.3.1) - react-is: 19.0.0-rc-7ac8e612-20241113 + react-is: 19.0.0-rc.1 react-smooth: 4.0.1(react-dom@19.0.0-rc-ed15d500-20241110(react@18.3.1))(react@18.3.1) recharts-scale: 0.4.5 tiny-invariant: 1.3.3 @@ -17283,7 +17283,7 @@ snapshots: loose-envify: 1.4.0 optional: true - scheduler@0.25.0-rc-7ac8e612-20241113: {} + scheduler@0.25.0-rc-380f5d67-20241113: {} scheduler@0.25.0-rc-ed15d500-20241110: {} @@ -17758,10 +17758,10 @@ snapshots: optionalDependencies: '@babel/core': 7.26.0 - styled-jsx@5.1.6(react@19.0.0-rc-7ac8e612-20241113): + styled-jsx@5.1.6(react@19.0.0-rc-380f5d67-20241113): dependencies: client-only: 0.0.1 - react: 19.0.0-rc-7ac8e612-20241113 + react: 19.0.0-rc-380f5d67-20241113 sucrase@3.35.0: dependencies: @@ -18290,11 +18290,11 @@ snapshots: optionalDependencies: '@types/react': 18.3.12 - use-intl@3.25.1(react@19.0.0-rc-7ac8e612-20241113): + use-intl@3.25.1(react@19.0.0-rc-380f5d67-20241113): dependencies: '@formatjs/fast-memoize': 2.2.3 intl-messageformat: 10.7.6 - react: 19.0.0-rc-7ac8e612-20241113 + react: 19.0.0-rc-380f5d67-20241113 use-sidecar@1.1.2(@types/react@18.3.12)(react@18.3.1): dependencies: @@ -18308,9 +18308,9 @@ snapshots: dependencies: react: 18.3.1 - use-sync-external-store@1.2.2(react@19.0.0-rc-7ac8e612-20241113): + use-sync-external-store@1.2.2(react@19.0.0-rc-380f5d67-20241113): dependencies: - react: 19.0.0-rc-7ac8e612-20241113 + react: 19.0.0-rc-380f5d67-20241113 optional: true util-deprecate@1.0.2: {} @@ -18544,10 +18544,10 @@ snapshots: '@types/react': 18.3.12 react: 18.3.1 - zustand@5.0.1(@types/react@18.3.12)(react@19.0.0-rc-7ac8e612-20241113)(use-sync-external-store@1.2.2(react@19.0.0-rc-7ac8e612-20241113)): + zustand@5.0.1(@types/react@18.3.12)(react@19.0.0-rc-380f5d67-20241113)(use-sync-external-store@1.2.2(react@19.0.0-rc-380f5d67-20241113)): optionalDependencies: '@types/react': 18.3.12 - react: 19.0.0-rc-7ac8e612-20241113 - use-sync-external-store: 1.2.2(react@19.0.0-rc-7ac8e612-20241113) + react: 19.0.0-rc-380f5d67-20241113 + use-sync-external-store: 1.2.2(react@19.0.0-rc-380f5d67-20241113) zwitch@2.0.4: {}