@zakisheriff/liquid-glass 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/GlassButton/GlassButton.tsx","../src/filters/LiquidGlassFilter.tsx","../src/components/GlassCard/GlassCard.tsx","../src/components/GlassInput/GlassInput.tsx","../src/components/GlassSheet/GlassSheet.tsx","../src/components/GlassNav/GlassNav.tsx","../src/components/GlassSlider/GlassSlider.tsx","../src/hooks/useGlassEffect.ts","../src/hooks/useGlassAnimation.ts"],"sourcesContent":["import React, { useMemo } from 'react';\nimport { useGlassFilterMounted } from '../../filters/LiquidGlassFilter';\nimport './GlassButton.css';\n\nexport interface GlassButtonProps\n extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n /** Blur intensity from 1 (subtle) to 10 (heavy). Default 5. */\n intensity?: number;\n /** CSS colour value used to tint the glass surface. */\n tint?: string;\n /** Enable the animated shine overlay. Default true. */\n shimmer?: boolean;\n /** Bevel border thickness in pixels. Default 1. */\n thickness?: number;\n /** Predefined size preset. Default 'md'. */\n size?: 'sm' | 'md' | 'lg';\n /** Visual style variant. Default 'default'. */\n variant?: 'default' | 'ghost' | 'destructive';\n children?: React.ReactNode;\n}\n\n/**\n * A glassmorphic button component inspired by the wabi.ai approach.\n *\n * Renders a 3‑layer structure:\n * 1. `.lg-root` — outer wrapper for layout and stacking context\n * 2. `.lg-surface` — interactive `<button>` with backdrop‑filter, box‑shadow,\n * and a `::after` conic‑gradient border ring\n * 3. `.lg-shadow` — decorative blurred gradient sitting behind the surface\n */\nexport const GlassButton = React.forwardRef<HTMLButtonElement, GlassButtonProps>(\n (\n {\n intensity = 5,\n tint,\n shimmer = true,\n thickness = 1,\n size = 'md',\n variant = 'default',\n className,\n style,\n children,\n ...rest\n },\n ref,\n ) => {\n const isFilterMounted = useGlassFilterMounted();\n const clampedIntensity = Math.max(1, Math.min(10, Math.round(intensity)));\n\n const glassStyle = useMemo<React.CSSProperties>(() => {\n const filterId = `liquid-glass-refract-${clampedIntensity}`;\n const vars: Record<string, string | number> = {\n '--glass-blur': `${clampedIntensity * 2.4}px`,\n '--glass-border-width': `${thickness}px`,\n '--glass-refraction-filter': `url(#${filterId})`,\n };\n\n if (tint) {\n vars['--glass-tint'] = tint;\n }\n\n return vars as React.CSSProperties;\n }, [clampedIntensity, tint, thickness]);\n\n const rootClasses = [\n 'lg-root',\n 'lg-button',\n `lg-button--${size}`,\n `lg-button--${variant}`,\n shimmer ? 'lg-button--shimmer' : '',\n className ?? '',\n ]\n .filter(Boolean)\n .join(' ');\n\n const freq1 = 0.012 + clampedIntensity * 0.001;\n const freq2 = 0.01 + clampedIntensity * 0.0008;\n const scale = clampedIntensity * 2;\n\n return (\n <div className={rootClasses} data-liquid-glass style={{ ...glassStyle, ...style }}>\n {!isFilterMounted && (\n <svg\n width=\"0\"\n height=\"0\"\n style={{ position: 'absolute', pointerEvents: 'none' }}\n aria-hidden=\"true\"\n >\n <defs>\n <filter\n id={`liquid-glass-refract-${clampedIntensity}`}\n x=\"-10%\"\n y=\"-10%\"\n width=\"120%\"\n height=\"120%\"\n colorInterpolationFilters=\"sRGB\"\n >\n <feTurbulence\n type=\"fractalNoise\"\n baseFrequency={`${freq1} ${freq2}`}\n numOctaves={3}\n seed={42}\n result=\"noise\"\n />\n <feDisplacementMap\n in=\"SourceGraphic\"\n in2=\"noise\"\n scale={scale}\n xChannelSelector=\"R\"\n yChannelSelector=\"G\"\n />\n </filter>\n </defs>\n </svg>\n )}\n <button\n ref={ref}\n className=\"lg-surface\"\n {...rest}\n >\n <span className=\"lg-content\">{children}</span>\n </button>\n <div className=\"lg-backdrop-surface\" aria-hidden=\"true\" />\n <div className=\"lg-shadow\" aria-hidden=\"true\" />\n </div>\n );\n },\n);\n\nGlassButton.displayName = 'GlassButton';\n\n","import React, { createContext, useContext } from 'react';\n\nconst GlassFilterContext = createContext(false);\n\nexport function useGlassFilterMounted(): boolean {\n return useContext(GlassFilterContext);\n}\n\nexport interface LiquidGlassFilterProps {\n children?: React.ReactNode;\n}\n\n/**\n * Renders shared SVG filter definitions used by all liquid glass components.\n * Wrap your app (or the section using glass components) with this provider.\n * If not used, glass components will auto-inject a local filter.\n */\nexport function LiquidGlassFilter({ children }: LiquidGlassFilterProps) {\n return (\n <GlassFilterContext.Provider value={true}>\n <GlassFilterSVG />\n {children}\n </GlassFilterContext.Provider>\n );\n}\n\nfunction GlassFilterSVG() {\n return (\n <svg\n width=\"0\"\n height=\"0\"\n style={{ position: 'absolute', pointerEvents: 'none' }}\n aria-hidden=\"true\"\n >\n <defs>\n {/* Light refraction filter with increasing intensity */}\n {Array.from({ length: 10 }, (_, i) => {\n const level = i + 1;\n const scale = level * 2;\n const freq1 = 0.012 + level * 0.001;\n const freq2 = 0.01 + level * 0.0008;\n return (\n <filter\n key={level}\n id={`liquid-glass-refract-${level}`}\n x=\"-10%\"\n y=\"-10%\"\n width=\"120%\"\n height=\"120%\"\n colorInterpolationFilters=\"sRGB\"\n >\n <feTurbulence\n type=\"fractalNoise\"\n baseFrequency={`${freq1} ${freq2}`}\n numOctaves={3}\n seed={42}\n result=\"noise\"\n />\n <feDisplacementMap\n in=\"SourceGraphic\"\n in2=\"noise\"\n scale={scale}\n xChannelSelector=\"R\"\n yChannelSelector=\"G\"\n />\n </filter>\n );\n })}\n </defs>\n </svg>\n );\n}\n","import React, { useMemo } from 'react';\nimport { useGlassFilterMounted } from '../../filters/LiquidGlassFilter';\nimport './GlassCard.css';\n\nexport interface GlassCardProps extends React.HTMLAttributes<HTMLDivElement> {\n /** Blur intensity from 1 (subtle) to 10 (heavy). Default 5. */\n intensity?: number;\n /** CSS colour value used to tint the glass surface. */\n tint?: string;\n /** Enable the animated border shimmer. Default true. */\n shimmer?: boolean;\n /** Bevel border thickness in pixels. Default 1. */\n thickness?: number;\n /** CSS padding value for inner content. Default '24px'. */\n padding?: string;\n /** CSS border-radius value. Default '20px'. */\n radius?: string;\n children?: React.ReactNode;\n}\n\n/**\n * A glassmorphic card / container component.\n *\n * Uses the same 3‑layer wabi.ai glass architecture as GlassButton but with\n * customisable border‑radius for rectangular containers and a generous\n * content area.\n */\nexport const GlassCard = React.forwardRef<HTMLDivElement, GlassCardProps>(\n (\n {\n intensity = 5,\n tint,\n shimmer = true,\n thickness = 1,\n padding = '24px',\n radius = '20px',\n className,\n style,\n children,\n ...rest\n },\n ref,\n ) => {\n const isFilterMounted = useGlassFilterMounted();\n const clampedIntensity = Math.max(1, Math.min(10, Math.round(intensity)));\n\n const glassStyle = useMemo<React.CSSProperties>(() => {\n const filterId = `liquid-glass-refract-${clampedIntensity}`;\n const vars: Record<string, string | number> = {\n '--glass-blur': `${clampedIntensity * 2.4}px`,\n '--glass-border-width': `${thickness}px`,\n '--glass-radius': radius,\n '--glass-padding': padding,\n '--glass-refraction-filter': `url(#${filterId})`,\n };\n\n if (tint) {\n vars['--glass-tint'] = tint;\n }\n\n return vars as React.CSSProperties;\n }, [clampedIntensity, tint, thickness, radius, padding]);\n\n const rootClasses = [\n 'lg-root',\n 'lg-card',\n shimmer ? 'lg-card--shimmer' : '',\n className ?? '',\n ]\n .filter(Boolean)\n .join(' ');\n\n const freq1 = 0.012 + clampedIntensity * 0.001;\n const freq2 = 0.01 + clampedIntensity * 0.0008;\n const scale = clampedIntensity * 2;\n\n return (\n <div\n ref={ref}\n className={rootClasses}\n data-liquid-glass\n style={{ ...glassStyle, ...style }}\n {...rest}\n >\n {!isFilterMounted && (\n <svg\n width=\"0\"\n height=\"0\"\n style={{ position: 'absolute', pointerEvents: 'none' }}\n aria-hidden=\"true\"\n >\n <defs>\n <filter\n id={`liquid-glass-refract-${clampedIntensity}`}\n x=\"-10%\"\n y=\"-10%\"\n width=\"120%\"\n height=\"120%\"\n colorInterpolationFilters=\"sRGB\"\n >\n <feTurbulence\n type=\"fractalNoise\"\n baseFrequency={`${freq1} ${freq2}`}\n numOctaves={3}\n seed={42}\n result=\"noise\"\n />\n <feDisplacementMap\n in=\"SourceGraphic\"\n in2=\"noise\"\n scale={scale}\n xChannelSelector=\"R\"\n yChannelSelector=\"G\"\n />\n </filter>\n </defs>\n </svg>\n )}\n <div className=\"lg-surface lg-card__surface\">\n <div className=\"lg-content lg-card__content\">{children}</div>\n </div>\n <div className=\"lg-backdrop-surface lg-card__backdrop-surface\" aria-hidden=\"true\" />\n <div className=\"lg-shadow\" aria-hidden=\"true\" />\n </div>\n );\n },\n);\n\nGlassCard.displayName = 'GlassCard';\n","import React, { useMemo, useId, useState, useCallback } from 'react';\nimport { useGlassFilterMounted } from '../../filters/LiquidGlassFilter';\nimport './GlassInput.css';\n\nexport interface GlassInputProps\n extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange'> {\n /** Blur intensity from 1 (subtle) to 10 (heavy). Default 5. */\n intensity?: number;\n /** CSS colour value used to tint the glass surface. */\n tint?: string;\n /** Placeholder text for the input. */\n placeholder?: string;\n /** Controlled value. */\n value?: string;\n /** Change handler. */\n onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;\n /** Floating label text displayed above the input. */\n label?: string;\n}\n\n/**\n * A glassmorphic text input with floating label and edge‑diffraction focus glow.\n *\n * Uses the same 3‑layer wabi.ai structure as other Liquid Glass components.\n * On focus the conic‑gradient border animates and a pulsing box‑shadow with\n * hue‑rotate creates a prismatic edge‑diffraction effect.\n */\nexport const GlassInput = React.forwardRef<HTMLInputElement, GlassInputProps>(\n (\n {\n intensity = 5,\n tint,\n placeholder,\n value,\n onChange,\n label,\n className,\n style,\n id: externalId,\n ...rest\n },\n ref,\n ) => {\n const autoId = useId();\n const inputId = externalId ?? autoId;\n\n const [focused, setFocused] = useState(false);\n const [hasValue, setHasValue] = useState(() => Boolean(value));\n\n const isFilterMounted = useGlassFilterMounted();\n const clampedIntensity = Math.max(1, Math.min(10, Math.round(intensity)));\n\n const handleFocus = useCallback(\n (e: React.FocusEvent<HTMLInputElement>) => {\n setFocused(true);\n rest.onFocus?.(e);\n },\n [rest.onFocus],\n );\n\n const handleBlur = useCallback(\n (e: React.FocusEvent<HTMLInputElement>) => {\n setFocused(false);\n rest.onBlur?.(e);\n },\n [rest.onBlur],\n );\n\n const handleChange = useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n setHasValue(e.target.value.length > 0);\n onChange?.(e);\n },\n [onChange],\n );\n\n const glassStyle = useMemo<React.CSSProperties>(() => {\n const filterId = `liquid-glass-refract-${clampedIntensity}`;\n const vars: Record<string, string | number> = {\n '--glass-blur': `${clampedIntensity * 2.4}px`,\n '--glass-border-width': '1px',\n '--glass-refraction-filter': `url(#${filterId})`,\n };\n\n if (tint) {\n vars['--glass-tint'] = tint;\n }\n\n return vars as React.CSSProperties;\n }, [clampedIntensity, tint]);\n\n const rootClasses = [\n 'lg-root',\n 'lg-input',\n focused ? 'lg-input--focused' : '',\n hasValue || value ? 'lg-input--has-value' : '',\n className ?? '',\n ]\n .filter(Boolean)\n .join(' ');\n\n const freq1 = 0.012 + clampedIntensity * 0.001;\n const freq2 = 0.01 + clampedIntensity * 0.0008;\n const scale = clampedIntensity * 2;\n\n return (\n <div className={rootClasses} data-liquid-glass style={{ ...glassStyle, ...style }}>\n {!isFilterMounted && (\n <svg\n width=\"0\"\n height=\"0\"\n style={{ position: 'absolute', pointerEvents: 'none' }}\n aria-hidden=\"true\"\n >\n <defs>\n <filter\n id={`liquid-glass-refract-${clampedIntensity}`}\n x=\"-10%\"\n y=\"-10%\"\n width=\"120%\"\n height=\"120%\"\n colorInterpolationFilters=\"sRGB\"\n >\n <feTurbulence\n type=\"fractalNoise\"\n baseFrequency={`${freq1} ${freq2}`}\n numOctaves={3}\n seed={42}\n result=\"noise\"\n />\n <feDisplacementMap\n in=\"SourceGraphic\"\n in2=\"noise\"\n scale={scale}\n xChannelSelector=\"R\"\n yChannelSelector=\"G\"\n />\n </filter>\n </defs>\n </svg>\n )}\n <div className=\"lg-surface lg-input__surface\">\n <div className=\"lg-content lg-input__content\">\n {label && (\n <label className=\"lg-input__label\" htmlFor={inputId}>\n {label}\n </label>\n )}\n <input\n ref={ref}\n id={inputId}\n className=\"lg-input__field\"\n type=\"text\"\n placeholder={placeholder}\n value={value}\n onChange={handleChange}\n onFocus={handleFocus}\n onBlur={handleBlur}\n {...rest}\n />\n </div>\n </div>\n <div className=\"lg-backdrop-surface lg-input__backdrop-surface\" aria-hidden=\"true\" />\n <div className=\"lg-shadow\" aria-hidden=\"true\" />\n </div>\n );\n },\n);\n\nGlassInput.displayName = 'GlassInput';\n","import React, { useEffect, useState, useCallback, useMemo, useRef } from 'react';\nimport { useGlassFilterMounted } from '../../filters/LiquidGlassFilter';\nimport './GlassSheet.css';\n\nexport interface GlassSheetProps {\n /** Whether the sheet is open. */\n open: boolean;\n /** Callback when the user requests to close the sheet. */\n onClose?: () => void;\n /** Blur intensity from 1 (subtle) to 10 (heavy). Default 5. */\n intensity?: number;\n /** CSS colour value used to tint the glass surface. */\n tint?: string;\n children?: React.ReactNode;\n}\n\n/**\n * A glassmorphic bottom‑sheet modal.\n *\n * When `open` is `true` a scrim fades in and the glass sheet slides up from the\n * bottom of the viewport. Clicking the scrim or pressing Escape calls `onClose`.\n * A drag handle is rendered at the top of the sheet.\n *\n * Mount/unmount is handled via CSS transitions — the component stays in the DOM\n * while its exit animation plays, then unmounts.\n */\nexport const GlassSheet: React.FC<GlassSheetProps> = ({\n open,\n onClose,\n intensity = 5,\n tint,\n children,\n}) => {\n /* ------------------------------------------------------------------ */\n /* Mounted / visible state machine for enter/exit CSS transitions */\n /* ------------------------------------------------------------------ */\n const [mounted, setMounted] = useState(open);\n const [visible, setVisible] = useState(false);\n const sheetRef = useRef<HTMLDivElement>(null);\n\n const isFilterMounted = useGlassFilterMounted();\n const clampedIntensity = Math.max(1, Math.min(10, Math.round(intensity)));\n\n useEffect(() => {\n if (open) {\n setMounted(true);\n // Force a reflow so the initial styles are applied before the\n // transition‑triggering class is added.\n requestAnimationFrame(() => {\n requestAnimationFrame(() => setVisible(true));\n });\n } else {\n setVisible(false);\n }\n }, [open]);\n\n /** When the exit transition ends, unmount. */\n const handleTransitionEnd = useCallback(() => {\n if (!open) setMounted(false);\n }, [open]);\n\n /** Close on Escape. */\n useEffect(() => {\n if (!open) return;\n const onKeyDown = (e: KeyboardEvent) => {\n if (e.key === 'Escape') onClose?.();\n };\n window.addEventListener('keydown', onKeyDown);\n return () => window.removeEventListener('keydown', onKeyDown);\n }, [open, onClose]);\n\n /** Lock body scroll while the sheet is mounted. */\n useEffect(() => {\n if (mounted) {\n const prev = document.body.style.overflow;\n document.body.style.overflow = 'hidden';\n return () => {\n document.body.style.overflow = prev;\n };\n }\n }, [mounted]);\n\n const glassStyle = useMemo<React.CSSProperties>(() => {\n const filterId = `liquid-glass-refract-${clampedIntensity}`;\n const vars: Record<string, string | number> = {\n '--glass-blur': `${clampedIntensity * 2.4}px`,\n '--glass-border-width': '1px',\n '--glass-refraction-filter': `url(#${filterId})`,\n };\n if (tint) {\n vars['--glass-tint'] = tint;\n }\n return vars as React.CSSProperties;\n }, [clampedIntensity, tint]);\n\n const freq1 = 0.012 + clampedIntensity * 0.001;\n const freq2 = 0.01 + clampedIntensity * 0.0008;\n const scale = clampedIntensity * 2;\n\n if (!mounted) return null;\n\n return (\n <div\n className={`lg-sheet-overlay${visible ? ' lg-sheet-overlay--visible' : ''}`}\n onTransitionEnd={handleTransitionEnd}\n role=\"dialog\"\n aria-modal=\"true\"\n >\n {/* Scrim / backdrop */}\n <div className=\"lg-sheet-backdrop\" onClick={onClose} aria-hidden=\"true\" />\n\n {/* Sheet */}\n <div\n ref={sheetRef}\n className={`lg-root lg-sheet${visible ? ' lg-sheet--visible' : ''}`}\n data-liquid-glass\n style={glassStyle}\n >\n {!isFilterMounted && (\n <svg\n width=\"0\"\n height=\"0\"\n style={{ position: 'absolute', pointerEvents: 'none' }}\n aria-hidden=\"true\"\n >\n <defs>\n <filter\n id={`liquid-glass-refract-${clampedIntensity}`}\n x=\"-10%\"\n y=\"-10%\"\n width=\"120%\"\n height=\"120%\"\n colorInterpolationFilters=\"sRGB\"\n >\n <feTurbulence\n type=\"fractalNoise\"\n baseFrequency={`${freq1} ${freq2}`}\n numOctaves={3}\n seed={42}\n result=\"noise\"\n />\n <feDisplacementMap\n in=\"SourceGraphic\"\n in2=\"noise\"\n scale={scale}\n xChannelSelector=\"R\"\n yChannelSelector=\"G\"\n />\n </filter>\n </defs>\n </svg>\n )}\n <div className=\"lg-surface lg-sheet__surface\">\n {/* Drag handle */}\n <div className=\"lg-sheet__handle\" aria-hidden=\"true\">\n <span className=\"lg-sheet__handle-bar\" />\n </div>\n\n <div className=\"lg-content lg-sheet__content\">{children}</div>\n </div>\n <div className=\"lg-backdrop-surface lg-sheet__backdrop-surface\" aria-hidden=\"true\" />\n <div className=\"lg-shadow lg-sheet__shadow\" aria-hidden=\"true\" />\n </div>\n </div>\n );\n};\n\nGlassSheet.displayName = 'GlassSheet';\n","import React, { useMemo, useRef, useState, useEffect, useCallback } from 'react';\nimport { useGlassFilterMounted } from '../../filters/LiquidGlassFilter';\nimport './GlassNav.css';\n\nexport interface GlassNavItem {\n label: string;\n icon?: React.ReactNode;\n}\n\nexport interface GlassNavProps {\n /** Navigation items to render. */\n items: GlassNavItem[];\n /** Zero‑based index of the active item. Default 0. */\n activeIndex?: number;\n /** Called when the user clicks a nav item. */\n onChange?: (index: number) => void;\n /** Blur intensity from 1 (subtle) to 10 (heavy). Default 5. */\n intensity?: number;\n}\n\n/**\n * A pill‑shaped glassmorphic navigation bar.\n *\n * A translucent active‑indicator slides between items via a spring‑like\n * cubic‑bezier transition. Each item has subtle hover and press effects.\n */\nexport const GlassNav: React.FC<GlassNavProps> = ({\n items,\n activeIndex = 0,\n onChange,\n intensity = 5,\n}) => {\n const navRef = useRef<HTMLDivElement>(null);\n const itemRefs = useRef<(HTMLButtonElement | null)[]>([]);\n\n const isFilterMounted = useGlassFilterMounted();\n const clampedIntensity = Math.max(1, Math.min(10, Math.round(intensity)));\n\n /* ------------------------------------------------------------------ */\n /* Sliding indicator position */\n /* ------------------------------------------------------------------ */\n const [indicatorStyle, setIndicatorStyle] = useState<React.CSSProperties>({});\n\n const updateIndicator = useCallback(() => {\n const el = itemRefs.current[activeIndex];\n const parent = navRef.current;\n if (!el || !parent) return;\n const parentRect = parent.getBoundingClientRect();\n const rect = el.getBoundingClientRect();\n setIndicatorStyle({\n width: `${rect.width}px`,\n height: `${rect.height}px`,\n transform: `translateX(${rect.left - parentRect.left}px)`,\n });\n }, [activeIndex]);\n\n useEffect(() => {\n updateIndicator();\n window.addEventListener('resize', updateIndicator);\n return () => window.removeEventListener('resize', updateIndicator);\n }, [updateIndicator, items.length]);\n\n const glassStyle = useMemo<React.CSSProperties>(() => {\n const filterId = `liquid-glass-refract-${clampedIntensity}`;\n return {\n '--glass-blur': `${clampedIntensity * 2.4}px`,\n '--glass-border-width': '1px',\n '--glass-refraction-filter': `url(#${filterId})`,\n } as React.CSSProperties;\n }, [clampedIntensity]);\n\n const freq1 = 0.012 + clampedIntensity * 0.001;\n const freq2 = 0.01 + clampedIntensity * 0.0008;\n const scale = clampedIntensity * 2;\n\n return (\n <div className=\"lg-root lg-nav\" data-liquid-glass style={glassStyle}>\n {!isFilterMounted && (\n <svg\n width=\"0\"\n height=\"0\"\n style={{ position: 'absolute', pointerEvents: 'none' }}\n aria-hidden=\"true\"\n >\n <defs>\n <filter\n id={`liquid-glass-refract-${clampedIntensity}`}\n x=\"-10%\"\n y=\"-10%\"\n width=\"120%\"\n height=\"120%\"\n colorInterpolationFilters=\"sRGB\"\n >\n <feTurbulence\n type=\"fractalNoise\"\n baseFrequency={`${freq1} ${freq2}`}\n numOctaves={3}\n seed={42}\n result=\"noise\"\n />\n <feDisplacementMap\n in=\"SourceGraphic\"\n in2=\"noise\"\n scale={scale}\n xChannelSelector=\"R\"\n yChannelSelector=\"G\"\n />\n </filter>\n </defs>\n </svg>\n )}\n <div className=\"lg-surface lg-nav__surface\">\n {/* Sliding active indicator */}\n <div className=\"lg-nav__indicator\" style={indicatorStyle} aria-hidden=\"true\" />\n\n <nav ref={navRef} className=\"lg-content lg-nav__content\" role=\"tablist\">\n {items.map((item, i) => (\n <button\n key={i}\n ref={(el) => {\n itemRefs.current[i] = el;\n }}\n role=\"tab\"\n aria-selected={i === activeIndex}\n className={`lg-nav__item${i === activeIndex ? ' lg-nav__item--active' : ''}`}\n onClick={() => onChange?.(i)}\n type=\"button\"\n >\n {item.icon && <span className=\"lg-nav__icon\">{item.icon}</span>}\n <span className=\"lg-nav__label\">{item.label}</span>\n </button>\n ))}\n </nav>\n </div>\n <div className=\"lg-backdrop-surface lg-nav__backdrop-surface\" aria-hidden=\"true\" />\n <div className=\"lg-shadow\" aria-hidden=\"true\" />\n </div>\n );\n};\n\nGlassNav.displayName = 'GlassNav';\n","import React, { useMemo } from 'react';\nimport { useGlassFilterMounted } from '../../filters/LiquidGlassFilter';\nimport './GlassSlider.css';\n\nexport interface GlassSliderProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange'> {\n /** Blur intensity from 1 (subtle) to 10 (heavy). Default 5. */\n intensity?: number;\n /** CSS colour value used to tint the glass surface. */\n tint?: string;\n /** Enable the animated shine overlay. Default true. */\n shimmer?: boolean;\n /** Bevel border thickness in pixels. Default 1. */\n thickness?: number;\n /** Display the sliding circular thumb knob. Default true. */\n showThumb?: boolean;\n /** Icon element to display inside the left of the track. */\n icon?: React.ReactNode;\n /** Text label displayed inside the track. */\n label?: string;\n /** Custom callback for slider value changes. */\n onChange?: (value: number) => void;\n}\n\n/**\n * A highly interactive custom slider component replicating the iOS 26 liquid glass aesthetic.\n *\n * Can render in two modes:\n * 1. Control block mode (showThumb={false}): Filled like a volume/brightness slider.\n * 2. Classic track mode (showThumb={true}): Sleek track with a glowing liquid glass bead thumb.\n */\nexport const GlassSlider = React.forwardRef<HTMLInputElement, GlassSliderProps>(\n (\n {\n intensity = 5,\n tint,\n shimmer = true,\n thickness = 1,\n showThumb = true,\n icon,\n label,\n value = 0,\n min = 0,\n max = 100,\n onChange,\n className,\n style,\n ...rest\n },\n ref,\n ) => {\n const isFilterMounted = useGlassFilterMounted();\n const clampedIntensity = Math.max(1, Math.min(10, Math.round(intensity)));\n\n const numValue = Number(value);\n const numMin = Number(min);\n const numMax = Number(max);\n const percentage = numMax > numMin ? ((numValue - numMin) / (numMax - numMin)) * 100 : 0;\n const ratio = numMax > numMin ? (numValue - numMin) / (numMax - numMin) : 0;\n\n const glassStyle = useMemo<React.CSSProperties>(() => {\n const filterId = `liquid-glass-refract-${clampedIntensity}`;\n const vars: Record<string, string | number> = {\n '--glass-blur': `${clampedIntensity * 2.4}px`,\n '--glass-border-width': `${thickness}px`,\n '--glass-refraction-filter': `url(#${filterId})`,\n '--slider-percentage': `${percentage}%`,\n '--slider-ratio': ratio,\n };\n\n if (tint) {\n vars['--glass-tint'] = tint;\n }\n\n return vars as React.CSSProperties;\n }, [clampedIntensity, tint, thickness, percentage, ratio]);\n\n const rootClasses = [\n 'lg-root',\n 'lg-slider',\n shimmer ? 'lg-slider--shimmer' : '',\n showThumb ? 'lg-slider--with-thumb' : 'lg-slider--no-thumb',\n className ?? '',\n ]\n .filter(Boolean)\n .join(' ');\n\n const handleChange = (e: React.ChangeEvent<HTMLInputElement>) => {\n if (onChange) {\n onChange(Number(e.target.value));\n }\n };\n\n const freq1 = 0.012 + clampedIntensity * 0.001;\n const freq2 = 0.01 + clampedIntensity * 0.0008;\n const scale = clampedIntensity * 2;\n\n return (\n <div className={rootClasses} data-liquid-glass style={{ ...glassStyle, ...style }}>\n {!isFilterMounted && (\n <svg\n width=\"0\"\n height=\"0\"\n style={{ position: 'absolute', pointerEvents: 'none' }}\n aria-hidden=\"true\"\n >\n <defs>\n <filter\n id={`liquid-glass-refract-${clampedIntensity}`}\n x=\"-10%\"\n y=\"-10%\"\n width=\"120%\"\n height=\"120%\"\n colorInterpolationFilters=\"sRGB\"\n >\n <feTurbulence\n type=\"fractalNoise\"\n baseFrequency={`${freq1} ${freq2}`}\n numOctaves={3}\n seed={42}\n result=\"noise\"\n />\n <feDisplacementMap\n in=\"SourceGraphic\"\n in2=\"noise\"\n scale={scale}\n xChannelSelector=\"R\"\n yChannelSelector=\"G\"\n />\n </filter>\n </defs>\n </svg>\n )}\n\n <div className=\"lg-slider-track\">\n {/* Sibling Backdrop Surface representing the glass track */}\n <div className=\"lg-backdrop-surface\" aria-hidden=\"true\" />\n\n {/* Sibling Active Fill Overlay wrapped in an overflow-hidden container */}\n <div style={{ position: 'absolute', inset: 0, overflow: 'hidden', borderRadius: 'inherit', zIndex: 2, pointerEvents: 'none' }}>\n <div className=\"lg-slider-fill\" aria-hidden=\"true\" />\n </div>\n\n {/* Sibling Shadow */}\n <div className=\"lg-shadow\" aria-hidden=\"true\" />\n\n {/* Inner Content (Icon, Label, Value Text) */}\n <div className=\"lg-slider-content\">\n <div style={{ display: 'flex', alignItems: 'center', gap: '8px' }}>\n {icon && <span className=\"lg-slider-icon\">{icon}</span>}\n {label && <span className=\"lg-slider-label\">{label}</span>}\n </div>\n <span className=\"lg-slider-value-text\">{numValue}</span>\n </div>\n\n {/* Sliding Liquid Glass Thumb knob */}\n {showThumb && <div className=\"lg-slider-thumb\" aria-hidden=\"true\" />}\n\n {/* Native range input overlay for accessibility and standard event handling */}\n <input\n type=\"range\"\n ref={ref}\n min={min}\n max={max}\n value={value}\n onChange={handleChange}\n className=\"lg-slider-input\"\n {...rest}\n />\n </div>\n </div>\n );\n },\n);\n\nGlassSlider.displayName = 'GlassSlider';\n","import { useMemo } from 'react';\n\nexport interface UseGlassEffectOptions {\n intensity?: number;\n tint?: string;\n shimmer?: boolean;\n thickness?: number;\n blur?: number;\n}\n\ninterface GlassEffectResult {\n style: React.CSSProperties;\n filterId: string;\n}\n\nfunction parseTintColor(tint: string): { h: number; s: number; l: number; a: number } {\n // Default values\n const defaults = { h: 0, s: 0, l: 100, a: 0.1 };\n\n if (!tint) return defaults;\n\n // Handle rgba\n const rgbaMatch = tint.match(/rgba?\\(\\s*(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*(\\d+)\\s*(?:,\\s*([\\d.]+))?\\s*\\)/);\n if (rgbaMatch) {\n const r = parseInt(rgbaMatch[1]) / 255;\n const g = parseInt(rgbaMatch[2]) / 255;\n const b = parseInt(rgbaMatch[3]) / 255;\n const a = rgbaMatch[4] ? parseFloat(rgbaMatch[4]) : 1;\n\n const max = Math.max(r, g, b);\n const min = Math.min(r, g, b);\n const l = (max + min) / 2;\n\n if (max === min) return { h: 0, s: 0, l: l * 100, a };\n\n const d = max - min;\n const s = l > 0.5 ? d / (2 - max - min) : d / (max + min);\n let h = 0;\n if (max === r) h = ((g - b) / d + (g < b ? 6 : 0)) / 6;\n else if (max === g) h = ((b - r) / d + 2) / 6;\n else h = ((r - g) / d + 4) / 6;\n\n return { h: h * 360, s: s * 100, l: l * 100, a };\n }\n\n // Handle hex\n const hexMatch = tint.match(/^#([\\da-f]{3,8})$/i);\n if (hexMatch) {\n let hex = hexMatch[1];\n if (hex.length === 3) hex = hex.split('').map(c => c + c).join('');\n const r = parseInt(hex.slice(0, 2), 16) / 255;\n const g = parseInt(hex.slice(2, 4), 16) / 255;\n const b = parseInt(hex.slice(4, 6), 16) / 255;\n const a = hex.length === 8 ? parseInt(hex.slice(6, 8), 16) / 255 : 1;\n\n const max = Math.max(r, g, b);\n const min = Math.min(r, g, b);\n const l = (max + min) / 2;\n\n if (max === min) return { h: 0, s: 0, l: l * 100, a };\n\n const d = max - min;\n const s = l > 0.5 ? d / (2 - max - min) : d / (max + min);\n let h = 0;\n if (max === r) h = ((g - b) / d + (g < b ? 6 : 0)) / 6;\n else if (max === g) h = ((b - r) / d + 2) / 6;\n else h = ((r - g) / d + 4) / 6;\n\n return { h: h * 360, s: s * 100, l: l * 100, a };\n }\n\n return defaults;\n}\n\nexport function useGlassEffect(options: UseGlassEffectOptions = {}): GlassEffectResult {\n const {\n intensity = 5,\n tint,\n shimmer = true,\n thickness,\n blur,\n } = options;\n\n return useMemo(() => {\n const clampedIntensity = Math.max(1, Math.min(10, Math.round(intensity)));\n const filterId = `liquid-glass-refract-${clampedIntensity}`;\n\n const style: React.CSSProperties = {\n '--glass-intensity': clampedIntensity,\n '--glass-shimmer': shimmer ? 1 : 0,\n } as React.CSSProperties;\n\n if (tint) {\n const parsed = parseTintColor(tint);\n (style as Record<string, unknown>)['--glass-tint-h'] = parsed.h;\n (style as Record<string, unknown>)['--glass-tint-s'] = `${parsed.s}%`;\n (style as Record<string, unknown>)['--glass-tint-l'] = `${parsed.l}%`;\n (style as Record<string, unknown>)['--glass-tint-a'] = parsed.a;\n }\n\n if (thickness !== undefined) {\n (style as Record<string, unknown>)['--glass-border-width'] = `${thickness}px`;\n }\n\n if (blur !== undefined) {\n (style as Record<string, unknown>)['--glass-blur'] = `${blur}px`;\n }\n\n return { style, filterId };\n }, [intensity, tint, shimmer, thickness, blur]);\n}\n","import { useCallback, useState } from 'react';\n\nexport interface GlassAnimationState {\n isHovered: boolean;\n isPressed: boolean;\n isFocused: boolean;\n handlers: {\n onPointerEnter: () => void;\n onPointerLeave: () => void;\n onPointerDown: () => void;\n onPointerUp: () => void;\n onFocus: () => void;\n onBlur: () => void;\n };\n}\n\nexport function useGlassAnimation(): GlassAnimationState {\n const [isHovered, setIsHovered] = useState(false);\n const [isPressed, setIsPressed] = useState(false);\n const [isFocused, setIsFocused] = useState(false);\n\n const handlers = {\n onPointerEnter: useCallback(() => setIsHovered(true), []),\n onPointerLeave: useCallback(() => {\n setIsHovered(false);\n setIsPressed(false);\n }, []),\n onPointerDown: useCallback(() => setIsPressed(true), []),\n onPointerUp: useCallback(() => setIsPressed(false), []),\n onFocus: useCallback(() => setIsFocused(true), []),\n onBlur: useCallback(() => setIsFocused(false), []),\n };\n\n return { isHovered, isPressed, isFocused, handlers };\n}\n"],"mappings":";AAAA,OAAOA,UAAS,eAAe;;;ACA/B,SAAgB,eAAe,kBAAkB;AAmB7C,SACE,KADF;AAjBJ,IAAM,qBAAqB,cAAc,KAAK;AAEvC,SA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aAAY,MAAM,aAAa,KAAK,GAAG,CAAC,CAAC;AAAA,IACtD,SAASA,aAAY,MAAM,aAAa,IAAI,GAAG,CAAC,CAAC;AAAA,IACjD,QAAQA,aAAY,MAAM,aAAa,KAAK,GAAG,CAAC,CAAC;AAAA,EACnD;AAEA,SAAO,EAAE,WAAW,WAAW,WAAW,SAAS;AACrD;","names":["React","jsx","jsxs","React","React","useMemo","jsx","jsxs","React","useMemo","React","useMemo","jsx","jsxs","React","useMemo","useState","useCallback","useMemo","jsx","jsxs","useState","useCallback","useMemo","useMemo","useRef","useState","useEffect","useCallback","jsx","jsxs","useRef","useState","useCallback","useEffect","useMemo","React","useMemo","jsx","jsxs","React","useMemo","useMemo","useCallback","useState"]}
package/package.json ADDED
@@ -0,0 +1,52 @@
1
+ {
2
+ "name": "@zakisheriff/liquid-glass",
3
+ "version": "0.1.0",
4
+ "description": "Liquid glass UI components for React — bringing iOS 26's native glass aesthetic to the web.",
5
+ "author": "Zaki Sheriff",
6
+ "license": "MIT",
7
+ "main": "dist/index.js",
8
+ "module": "dist/index.mjs",
9
+ "types": "dist/index.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "import": {
13
+ "types": "./dist/index.d.mts",
14
+ "default": "./dist/index.mjs"
15
+ },
16
+ "require": {
17
+ "types": "./dist/index.d.ts",
18
+ "default": "./dist/index.js"
19
+ }
20
+ },
21
+ "./styles.css": "./dist/index.css"
22
+ },
23
+ "files": ["dist"],
24
+ "sideEffects": ["**/*.css"],
25
+ "keywords": ["react", "glass", "glassmorphism", "liquid-glass", "ui", "components", "ios", "apple"],
26
+ "repository": {
27
+ "type": "git",
28
+ "url": "git+https://github.com/zakisheriff/Liquid-Glass.git"
29
+ },
30
+ "homepage": "https://github.com/zakisheriff/Liquid-Glass",
31
+ "peerDependencies": {
32
+ "react": ">=17",
33
+ "react-dom": ">=17"
34
+ },
35
+ "devDependencies": {
36
+ "@types/react": "^18.2.0",
37
+ "@types/react-dom": "^18.2.0",
38
+ "react": "^18.2.0",
39
+ "react-dom": "^18.2.0",
40
+ "tsup": "^8.0.0",
41
+ "typescript": "^5.3.0",
42
+ "vite": "^5.0.0",
43
+ "@vitejs/plugin-react": "^4.2.0"
44
+ },
45
+ "scripts": {
46
+ "build": "tsup",
47
+ "dev": "tsup --watch",
48
+ "clean": "rm -rf dist",
49
+ "prepublishOnly": "npm run build",
50
+ "demo": "vite demo"
51
+ }
52
+ }