Skip to content

The Open Standard for Generative UI

Slider component

i-subham19140a870019
diff --git a/frontend-sdk/packages/react-ui/package.json b/frontend-sdk/packages/react-ui/package.json
index 9472fa1d7..864ebecd3 100644
--- a/frontend-sdk/packages/react-ui/package.json
+++ b/frontend-sdk/packages/react-ui/package.json
@@ -28,18 +28,19 @@
"watch": "concurrently \"pnpm run build:ts -- --watch\" \"pnpm run build:scss -- --watch\""
},
"peerDependencies": {
+ "@crayonai/react-core": "workspace:*",
"react": "19.0.0-rc-66855b96-20241106",
"react-dom": "19.0.0-rc-66855b96-20241106",
"tailwind-merge": "^2.5.4",
"tailwindcss": "^3.0.0",
"tailwindcss-animate": "^1.0.7",
"tiny-invariant": "^1.3.3",
- "zustand": "^5.0.2",
- "@crayonai/react-core": "workspace:*"
+ "zustand": "^5.0.2"
},
"dependencies": {
"@radix-ui/react-aspect-ratio": "^1.1.1",
"@radix-ui/react-label": "^2.1.1",
+ "@radix-ui/react-slider": "^1.2.2",
"@storybook/addon-styling-webpack": "^1.0.1",
"clsx": "^2.0.0",
"lucide-react": "^0.469.0",
diff --git a/frontend-sdk/packages/react-ui/src/components/Slider/Slider.tsx b/frontend-sdk/packages/react-ui/src/components/Slider/Slider.tsx
new file mode 100644
index 000000000..30df8e154
--- /dev/null
+++ b/frontend-sdk/packages/react-ui/src/components/Slider/Slider.tsx
@@ -0,0 +1,160 @@
+import * as SliderPrimitive from '@radix-ui/react-slider'
+import { forwardRef, useEffect, useMemo, useState } from 'react'
+
+export interface SliderProps {
+ /**
+ * The variant of the slider
+ */
+ variant: 'continuous' | 'discrete' | 'range'
+ /**
+ * The minimum value of the slider
+ */
+ min: number
+ /**
+ * The maximum value of the slider
+ */
+ max: number
+ /**
+ * The step value for discrete slider
+ */
+ step?: number
+ /**
+ * Whether the slider is disabled
+ */
+ disabled?: boolean
+ /**
+ * Callback when value changes
+ */
+ onValueChange: (value: number | number[]) => void
+ /**
+ * The value of the slider
+ */
+ value: number | number[]
+}
+
+const Slider = forwardRef<HTMLDivElement, SliderProps>(
+ ({ variant, min, max, step, disabled, onValueChange, value }, ref) => {
+ const [internalValue, setInternalValue] = useState(
+ variant === 'range' ? [min, max] : value,
+ )
+
+ useEffect(() => {
+ setInternalValue(variant === 'range' ? [min, max] : value ?? min)
+ }, [variant, min, max, value])
+
+ const handleValueChange = (newValue: number[]) => {
+ const value = variant === 'range' ? newValue : newValue[0]
+ if (value === undefined) return
+ setInternalValue(value)
+ if (onValueChange) onValueChange(value)
+ }
+
+ const sliderProps = useMemo(() => {
+ const baseProps = { min, max }
+ switch (variant) {
+ case 'continuous':
+ return { ...baseProps, value: [internalValue] }
+ case 'discrete':
+ if (step === undefined) {
+ throw new Error('Step is required for discrete slider')
+ }
+ return { ...baseProps, step, value: [internalValue] }
+ case 'range':
+ return { ...baseProps, value: internalValue }
+ }
+ }, [variant, min, max, step, internalValue])
+
+ const thumbs = useMemo(() => {
+ const thumbClass =
+ 'shadow-small block size-4 rounded-sm outline-inner outline-default bg-container overflow-hidden outline-none group/thumb'
+
+ const valueIndicatorClass =
+ 'absolute -top-[30px] left-1/2 -translate-x-1/2 bg-brand-el text-brand px-2xs py-3xs rounded-sm shadow-medium typography-label opacity-0 group-hover/thumb:opacity-100 group-focus/thumb:opacity-100 transition-opacity duration-200'
+
+ return variant === 'range' ? (
+ <>
+ <SliderPrimitive.Thumb className="outline-none">
+ <div className={thumbClass}>
+ <div className="group-hover/thumb:bg-container-hover flex size-full items-center justify-center bg-container">
+ <div className="size-1 rounded-full bg-brand-el" />
+ </div>
+ {!disabled && (
+ <div className={valueIndicatorClass}>
+ {Array.isArray(internalValue)
+ ? internalValue[0]
+ : internalValue}
+ </div>
+ )}
+ </div>
+ </SliderPrimitive.Thumb>
+ <SliderPrimitive.Thumb className="outline-none">
+ <div className={thumbClass}>
+ <div className="group-hover/thumb:bg-container-hover flex size-full items-center justify-center bg-container">
+ <div className="size-1 rounded-full bg-brand-el" />
+ </div>
+ {!disabled && (
+ <div className={valueIndicatorClass}>
+ {Array.isArray(internalValue)
+ ? internalValue[1]
+ : internalValue}
+ </div>
+ )}
+ </div>
+ </SliderPrimitive.Thumb>
+ </>
+ ) : (
+ <SliderPrimitive.Thumb className="outline-none">
+ <div className={thumbClass}>
+ <div className="group-hover/thumb:bg-container-hover flex size-full items-center justify-center bg-container">
+ <div className="size-1 rounded-full bg-brand-el" />
+ </div>
+ {!disabled && (
+ <div className={valueIndicatorClass}>{internalValue}</div>
+ )}
+ </div>
+ </SliderPrimitive.Thumb>
+ )
+ }, [variant, internalValue, disabled])
+
+ const renderDots = () => {
+ if (variant === 'discrete' && step) {
+ const numSteps = Math.floor((max - min) / step) - 1
+ return Array.from({ length: numSteps }, (_, index) => {
+ const value = min + step * (index + 1)
+ const position = ((value - min) / (max - min)) * 100
+ return (
+ <div
+ key={value}
+ className="absolute top-[1px] size-1 rounded-full bg-container"
+ style={{ left: `${position}%`, transform: 'translateX(-50%)' }}
+ />
+ )
+ })
+ }
+ return null
+ }
+
+ return (
+ <SliderPrimitive.Root
+ ref={ref}
+ className="relative flex h-5 w-full min-w-[100px] max-w-full touch-none select-none items-center"
+ {...sliderProps}
+ onValueChange={handleValueChange}
+ minStepsBetweenThumbs={1}
+ disabled={disabled}
+ key={variant}
+ value={Array.isArray(internalValue) ? internalValue : [internalValue]}
+ >
+ <SliderPrimitive.Track className="relative h-[6px] grow rounded-full bg-sunk">
+ <SliderPrimitive.Range className="absolute h-full rounded-full bg-brand-el" />
+ {variant === 'discrete' && renderDots()}
+ </SliderPrimitive.Track>
+ {thumbs}
+ </SliderPrimitive.Root>
+ )
+ },
+)
+
+Slider.displayName = 'Slider'
+
+export default Slider
diff --git a/frontend-sdk/packages/react-ui/src/components/Slider/index.ts b/frontend-sdk/packages/react-ui/src/components/Slider/index.ts
new file mode 100644
index 000000000..4a441a61c
--- /dev/null
+++ b/frontend-sdk/packages/react-ui/src/components/Slider/index.ts
@@ -0,0 +1 @@
+export * from "./Slider";
\ No newline at end of file
diff --git a/frontend-sdk/packages/react-ui/src/components/Slider/slider.scss b/frontend-sdk/packages/react-ui/src/components/Slider/slider.scss
new file mode 100644
index 000000000..e69de29bb
diff --git a/frontend-sdk/pnpm-lock.yaml b/frontend-sdk/pnpm-lock.yaml
index 826798452..753d04e3f 100644
--- a/frontend-sdk/pnpm-lock.yaml
+++ b/frontend-sdk/pnpm-lock.yaml
@@ -24,7 +24,7 @@ importers:
version: 2.5.5
tailwindcss-animate:
specifier: ^1.0.7
- version: 1.0.7([email protected])
+ version: 1.0.7
tiny-invariant:
specifier: ^1.3.3
version: 1.3.3
@@ -70,10 +70,13 @@ importers:
version: link:../react-core
'@radix-ui/react-aspect-ratio':
specifier: ^1.1.1
'@radix-ui/react-label':
specifier: ^2.1.1
+ '@radix-ui/react-slider':
+ specifier: ^1.2.2
'@storybook/addon-styling-webpack':
specifier: ^1.0.1
@@ -82,13 +85,13 @@ importers:
version: 2.1.1
lucide-react:
specifier: ^0.469.0
- version: 0.469.0([email protected])
+ version: 0.469.0([email protected])
react:
specifier: 19.0.0-rc-66855b96-20241106
- version: 19.0.0-rc-66855b96-20241106
+ version: 18.3.1
react-dom:
specifier: 19.0.0-rc-66855b96-20241106
- version: 19.0.0-rc-66855b96-20241106([email protected])
+ version: 18.3.1([email protected])
sass:
specifier: ^1.83.4
version: 1.83.4
@@ -110,7 +113,7 @@ importers:
devDependencies:
'@chromatic-com/storybook':
specifier: ^3.2.3
'@storybook/addon-essentials':
specifier: ^8.4.7
@@ -119,16 +122,16 @@ importers:
'@storybook/addon-onboarding':
specifier: ^8.4.7
'@storybook/blocks':
specifier: ^8.4.7
'@storybook/react':
specifier: ^8.4.7
'@storybook/react-vite':
specifier: ^8.4.7
'@storybook/test':
specifier: ^8.4.7
@@ -783,6 +786,12 @@ packages:
resolution: {integrity: sha512-cq8o4cWH0ibXh9VGi5P20Tu9XF/0fFXl9EUinr9QfTM7a7p0oTA4iJRCQWppXR1Pg8dSM0UCItCkPwsk9qWWYA==}
engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0}
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-V3gRzhVNU1ldS5XhAPTom1fOIo4ccrjjJgmE+LI2h/WaFpHmx0MQApT+KZHnx8abG6Avtfcz4WoEciMnpFT3HQ==}
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-SJ31y+Q/zAyShtXJc8x83i9TYdbAfHZ++tUZnvjJJqFjzsdUnKsxPL6IEtBlxKkU7yzer//GQtZSV4GbldL3YA==}
+
'@radix-ui/[email protected]':
resolution: {integrity: sha512-kNU4FIpcFMBLkOUcgeIteH06/8JLBcYY6Le1iKenDGCYNYFX3TQqCZjzkOsz37h7r94/99GTb7YhEr98ZBJibw==}
peerDependencies:
@@ -796,6 +805,19 @@ packages:
'@types/react-dom':
optional: true
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-LwT3pSho9Dljg+wY2KN2mrrh6y3qELfftINERIzBUO9e0N+t0oMTyn3k9iv+ZqgrwGkRnLpNJrsMv9BZlt2yuA==}
+ 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:
@@ -805,6 +827,24 @@ packages:
'@types/react':
optional: true
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-UASk9zi+crv9WteK/NU4PLvOoL3OuE6BWVKNF6hPRBtYBDXQ2u5iu3O59zUlJiTVvkyuycnqrztsHVJwcK9K+Q==}
+ 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-BUuBvgThEiAXh2DWu93XsT+a3aWrGqolGlqqw5VU1kG7p/ZH2cuDlM1sRLNnY3QcBS69UIz2mcKhMxDsdewhjg==}
+ 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-UUw5E4e/2+4kFMH7+YxORXGWggtY6sM8WIwh5RZchhLuUg2H1hc98Py+pr8HMz6rdaYrK2t296ZEjYLOCO5uUw==}
peerDependencies:
@@ -831,6 +871,19 @@ packages:
'@types/react-dom':
optional: true
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-sNlU06ii1/ZcbHf8I9En54ZPW0Vil/yPVg4vQMcFNjrIx51jsHbFl1HYHQvCIWJSr1q0ZmA+iIs/ZTv8h7HHSA==}
+ 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-RApLLOcINYJA+dMVbOju7MYv1Mb2EBp2nH4HdDzXTSyaR5optlm6Otrz1euW3HbdOR8UmmFK06TD+A9frYWv+g==}
peerDependencies:
@@ -840,6 +893,51 @@ packages:
'@types/react':
optional: true
+ '@radix-ui/[email protected]':
+ 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
+
+ '@radix-ui/[email protected]':
+ 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
+
+ '@radix-ui/[email protected]':
+ 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
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-Z/e78qg2YFnnXcW88A4JmTtm4ADckLno6F7OXotmkQfeuCVaKuYzqAATPhVzl3delXE7CxIV8shofPn3jPc5Og==}
+ 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-XW3/vWuIXHa+2Uwcc2ABSfcCledmXhhQPlGbfcRXbiUQI5Icjcg19BGCZVKKInYbvUCut/ufbbLLPFC5cbb1hw==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
'@rollup/[email protected]':
resolution: {integrity: sha512-USm05zrsFxYLPdWWq+K3STlWiT/3ELn3RcV5hJMghpeAIhxfsUIg6mt12CBJBInWMV4VneoV7SfGv8xIwo2qNQ==}
engines: {node: '>=14.0.0'}
@@ -2942,12 +3040,12 @@ snapshots:
'@babel/helper-string-parser': 7.25.9
'@babel/helper-validator-identifier': 7.25.9
dependencies:
chromatic: 11.20.2
filesize: 10.1.6
jsonfile: 6.1.0
- react-confetti: 6.1.0([email protected])
+ react-confetti: 6.1.0([email protected])
storybook: 8.4.7([email protected])
strip-ansi: 7.1.0
transitivePeerDependencies:
@@ -3281,40 +3379,117 @@ snapshots:
'@pkgr/[email protected]': {}
+ '@radix-ui/[email protected]': {}
+
+ '@radix-ui/[email protected]': {}
+
dependencies:
- '@radix-ui/react-primitive': 2.0.1(@types/[email protected])([email protected]([email protected]))([email protected])
- react: 19.0.0-rc-66855b96-20241106
- react-dom: 19.0.0-rc-66855b96-20241106([email protected])
+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected])([email protected]([email protected]))([email protected])
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
optionalDependencies:
'@types/react': 19.0.2
dependencies:
- react: 19.0.0-rc-66855b96-20241106
+ '@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-slot': 1.1.1(@types/[email protected])([email protected])
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
optionalDependencies:
'@types/react': 19.0.2
dependencies:
- '@radix-ui/react-primitive': 2.0.1(@types/[email protected])([email protected]([email protected]))([email protected])
- react: 19.0.0-rc-66855b96-20241106
- react-dom: 19.0.0-rc-66855b96-20241106([email protected])
+ react: 18.3.1
optionalDependencies:
'@types/react': 19.0.2
dependencies:
- '@radix-ui/react-slot': 1.1.1(@types/[email protected])([email protected])
- react: 19.0.0-rc-66855b96-20241106
- react-dom: 19.0.0-rc-66855b96-20241106([email protected])
+ react: 18.3.1
optionalDependencies:
'@types/react': 19.0.2
dependencies:
- '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])
- react: 19.0.0-rc-66855b96-20241106
+ react: 18.3.1
+ optionalDependencies:
+ '@types/react': 19.0.2
+
+ dependencies:
+ '@radix-ui/react-primitive': 2.0.1(@types/[email protected])([email protected]([email protected]))([email protected])
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+ optionalDependencies:
+ '@types/react': 19.0.2
+
+ dependencies:
+ '@radix-ui/react-slot': 1.1.1(@types/[email protected])([email protected])
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+ optionalDependencies:
+ '@types/react': 19.0.2
+
+ dependencies:
+ '@radix-ui/number': 1.1.0
+ '@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-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-layout-effect': 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: 18.3.1
+ react-dom: 18.3.1([email protected])
+ optionalDependencies:
+ '@types/react': 19.0.2
+
+ dependencies:
+ '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])
+ react: 18.3.1
+ optionalDependencies:
+ '@types/react': 19.0.2
+
+ dependencies:
+ react: 18.3.1
+ optionalDependencies:
+ '@types/react': 19.0.2
+
+ dependencies:
+ '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])
+ react: 18.3.1
+ optionalDependencies:
+ '@types/react': 19.0.2
+
+ dependencies:
+ react: 18.3.1
+ optionalDependencies:
+ '@types/react': 19.0.2
+
+ dependencies:
+ react: 18.3.1
+ optionalDependencies:
+ '@types/react': 19.0.2
+
+ dependencies:
+ '@radix-ui/react-use-layout-effect': 1.1.0(@types/[email protected])([email protected])
+ react: 18.3.1
optionalDependencies:
'@types/react': 19.0.2
@@ -3455,9 +3630,9 @@ snapshots:
storybook: 8.4.7([email protected])
tiny-invariant: 1.3.3
dependencies:
- react-confetti: 6.1.0([email protected])
+ react-confetti: 6.1.0([email protected])
storybook: 8.4.7([email protected])
transitivePeerDependencies:
- react
@@ -3494,16 +3669,6 @@ snapshots:
react: 18.3.1
react-dom: 18.3.1([email protected])
- dependencies:
- '@storybook/csf': 0.1.12
- storybook: 8.4.7([email protected])
- ts-dedent: 2.2.0
- optionalDependencies:
- react: 19.0.0-rc-66855b96-20241106
- react-dom: 19.0.0-rc-66855b96-20241106([email protected])
-
dependencies:
'@storybook/csf-plugin': 8.4.7([email protected]([email protected]))
@@ -3552,11 +3717,6 @@ snapshots:
react: 18.3.1
react-dom: 18.3.1([email protected])
- dependencies:
- react: 19.0.0-rc-66855b96-20241106
- react-dom: 19.0.0-rc-66855b96-20241106([email protected])
-
dependencies:
'@storybook/global': 5.0.0
@@ -3581,23 +3741,17 @@ snapshots:
react-dom: 18.3.1([email protected])
storybook: 8.4.7([email protected])
- dependencies:
- react: 19.0.0-rc-66855b96-20241106
- react-dom: 19.0.0-rc-66855b96-20241106([email protected])
- storybook: 8.4.7([email protected])
-
dependencies:
'@rollup/pluginutils': 5.1.4([email protected])
find-up: 5.0.0
magic-string: 0.30.17
- react: 19.0.0-rc-66855b96-20241106
+ react: 18.3.1
react-docgen: 7.1.0
- react-dom: 19.0.0-rc-66855b96-20241106([email protected])
+ react-dom: 18.3.1([email protected])
resolve: 1.22.10
storybook: 8.4.7([email protected])
tsconfig-paths: 4.2.0
@@ -3608,16 +3762,16 @@ snapshots:
- supports-color
- typescript
dependencies:
'@storybook/components': 8.4.7([email protected]([email protected]))
'@storybook/global': 5.0.0
'@storybook/manager-api': 8.4.7([email protected]([email protected]))
'@storybook/preview-api': 8.4.7([email protected]([email protected]))
'@storybook/theming': 8.4.7([email protected]([email protected]))
- react: 19.0.0-rc-66855b96-20241106
- react-dom: 19.0.0-rc-66855b96-20241106([email protected])
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
storybook: 8.4.7([email protected])
optionalDependencies:
'@storybook/test': 8.4.7([email protected]([email protected]))
@@ -4637,9 +4791,9 @@ snapshots:
dependencies:
yallist: 3.1.1
dependencies:
- react: 19.0.0-rc-66855b96-20241106
+ react: 18.3.1
@@ -4843,9 +4997,9 @@ snapshots:
dependencies:
safe-buffer: 5.2.1
dependencies:
- react: 19.0.0-rc-66855b96-20241106
+ react: 18.3.1
tween-functions: 1.2.0
@@ -5094,6 +5248,8 @@ snapshots:
+
dependencies:
tailwindcss: 3.4.17