uitheme-web 1.2.0 → 2.0.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.
- package/README.md +56 -314
- package/dist/chunk-4UXANDJ5.cjs +26 -0
- package/dist/chunk-C4YNAGUP.js +26 -0
- package/dist/chunk-CTNYTI5Q.js +1 -0
- package/dist/{chunk-WFG34KG5.js → chunk-CY5E6WU4.js} +3 -3
- package/dist/chunk-CYGYUQUK.cjs +1 -0
- package/dist/chunk-EKVKQZNN.js +12 -0
- package/dist/chunk-EQPK72XK.js +14 -0
- package/dist/{chunk-W4YFUPGE.cjs → chunk-I5GA5T23.cjs} +3 -3
- package/dist/chunk-KQSBORXP.cjs +12 -0
- package/dist/chunk-NDNCNR4X.js +1 -0
- package/dist/chunk-SO3CO44A.js +1 -0
- package/dist/{constants-DmZ7yAIL.d.cts → constants-9M8X-rnX.d.cts} +2 -68
- package/dist/{constants-DmZ7yAIL.d.ts → constants-PAa1nGZ0.d.ts} +2 -68
- package/dist/controller-83zmHd-p.d.cts +76 -0
- package/dist/controller-DnMwV2nl.d.ts +76 -0
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.d.cts +7 -5
- package/dist/core/index.d.ts +7 -5
- package/dist/core/index.js +1 -1
- package/dist/index-Dn3XRBX1.d.ts +106 -0
- package/dist/index-DqlTGyMr.d.cts +106 -0
- package/dist/next/index.cjs +2 -0
- package/dist/next/index.d.cts +4 -0
- package/dist/next/index.d.ts +4 -0
- package/dist/next/index.js +2 -0
- package/dist/nuxt.d.ts +10 -0
- package/dist/nuxt.js +34 -0
- package/dist/react/index.cjs +11 -89
- package/dist/react/index.d.cts +23 -279
- package/dist/react/index.d.ts +23 -279
- package/dist/react/index.js +11 -89
- package/dist/server/index.cjs +14 -0
- package/dist/server/index.d.cts +11 -0
- package/dist/server/index.d.ts +11 -0
- package/dist/server/index.js +14 -0
- package/dist/tanstack/index.cjs +1 -1
- package/dist/tanstack/index.d.cts +5 -3
- package/dist/tanstack/index.d.ts +5 -3
- package/dist/tanstack/index.js +1 -1
- package/dist/types-CrR56NLm.d.cts +79 -0
- package/dist/types-CrR56NLm.d.ts +79 -0
- package/dist/types-Dd4EU8V9.d.ts +96 -0
- package/dist/vue/bootstrap.d.ts +13 -0
- package/dist/vue/bootstrap.js +1 -0
- package/dist/vue/index.d.ts +39 -0
- package/dist/vue/index.js +1 -0
- package/package.json +68 -17
- package/dist/chunk-DFJEYTIW.js +0 -12
- package/dist/chunk-V3LMT5IJ.cjs +0 -12
- package/dist/cli/index.js +0 -39
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import React, { RefObject, ReactNode } from 'react';
|
|
2
|
+
import { c as Theme, C as ColorTheme, T as ThemeAnimationOptions, a as ThemeAnimationType } from './types-CrR56NLm.cjs';
|
|
3
|
+
import { d as ThemeControllerSnapshot, f as ThemeTransitionInput, C as ColorThemeToggle, c as ThemeControllerOptions } from './controller-83zmHd-p.cjs';
|
|
4
|
+
|
|
5
|
+
type UseThemeProps = ThemeControllerOptions;
|
|
6
|
+
interface UseThemeReturn extends ThemeControllerSnapshot {
|
|
7
|
+
/** Ref to attach to the trigger button */
|
|
8
|
+
ref: RefObject<HTMLButtonElement | null>;
|
|
9
|
+
/** Current theme value */
|
|
10
|
+
theme: Theme;
|
|
11
|
+
/** Current color theme value */
|
|
12
|
+
colorTheme: ColorTheme;
|
|
13
|
+
/** Resolved theme (light or dark) */
|
|
14
|
+
resolvedTheme: 'light' | 'dark';
|
|
15
|
+
/** Set theme without animation */
|
|
16
|
+
setTheme: (theme: Theme) => void;
|
|
17
|
+
/** Set color theme without animation */
|
|
18
|
+
setColorTheme: (colorTheme: ColorTheme) => void;
|
|
19
|
+
/** Switch theme with animation */
|
|
20
|
+
switchTheme: (theme: Theme, options?: ThemeTransitionInput) => Promise<void>;
|
|
21
|
+
/** Switch color theme with animation */
|
|
22
|
+
switchColorTheme: (colorTheme: string, options?: ThemeTransitionInput) => Promise<void>;
|
|
23
|
+
/** Toggle between light and dark */
|
|
24
|
+
toggleTheme: (options?: ThemeTransitionInput) => Promise<void>;
|
|
25
|
+
/** Switch to light theme with animation */
|
|
26
|
+
toggleLightTheme: (options?: ThemeTransitionInput) => Promise<void>;
|
|
27
|
+
/** Switch to dark theme with animation */
|
|
28
|
+
toggleDarkTheme: (options?: ThemeTransitionInput) => Promise<void>;
|
|
29
|
+
/** Cycle through color themes */
|
|
30
|
+
toggleColorTheme: ColorThemeToggle;
|
|
31
|
+
/** Create a toggle function for a specific color theme */
|
|
32
|
+
createColorThemeToggle: (targetColorTheme: string) => ColorThemeToggle;
|
|
33
|
+
/** Check if a color theme is active */
|
|
34
|
+
isColorThemeActive: (targetColorTheme: string) => boolean;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Context type for the Next.js UI Theme Provider
|
|
39
|
+
*/
|
|
40
|
+
interface NextUIThemeContextType extends UseThemeReturn {
|
|
41
|
+
/** System theme preference */
|
|
42
|
+
systemTheme: 'light' | 'dark';
|
|
43
|
+
/** Legacy convenience wrapper; does not mutate the shared ref. */
|
|
44
|
+
switchThemeFromElement: (theme: Theme, element: Element) => Promise<void>;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Props for the Next.js UI Theme Provider
|
|
48
|
+
*/
|
|
49
|
+
type NextUIThemeProviderProps = ThemeAnimationOptions & {
|
|
50
|
+
/** React children to wrap with theme context */
|
|
51
|
+
children: ReactNode;
|
|
52
|
+
/** Available theme options */
|
|
53
|
+
themes?: readonly Theme[];
|
|
54
|
+
/** Available color theme options */
|
|
55
|
+
colorThemes?: readonly ColorTheme[];
|
|
56
|
+
/** Default theme to use */
|
|
57
|
+
defaultTheme?: Theme;
|
|
58
|
+
/** Default color theme to use */
|
|
59
|
+
defaultColorTheme?: ColorTheme;
|
|
60
|
+
/** Animation type for theme transitions */
|
|
61
|
+
animationType?: ThemeAnimationType | `${ThemeAnimationType}`;
|
|
62
|
+
/** Animation duration in milliseconds */
|
|
63
|
+
duration?: number;
|
|
64
|
+
/** Storage key for theme preference */
|
|
65
|
+
storageKey?: string;
|
|
66
|
+
/** Storage key for color theme preference */
|
|
67
|
+
colorStorageKey?: string;
|
|
68
|
+
/** HTML attribute to use for theme ('class' or 'data-theme') */
|
|
69
|
+
attribute?: 'class' | 'data-theme';
|
|
70
|
+
/** Class name for dark theme (when using 'class' attribute) */
|
|
71
|
+
globalClassName?: string;
|
|
72
|
+
/** Prefix for color theme classes */
|
|
73
|
+
colorThemePrefix?: string;
|
|
74
|
+
/** CSP nonce for inline script (SSR apps) */
|
|
75
|
+
nonce?: string;
|
|
76
|
+
/** Skip animation during initial hydration */
|
|
77
|
+
disableAnimationOnInit?: boolean;
|
|
78
|
+
/** Disable flash prevention script (for SPAs without SSR) */
|
|
79
|
+
disablePreHydrationScript?: boolean;
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* Next.js UI Theme Provider - Universal React theme management with animations
|
|
83
|
+
*
|
|
84
|
+
* This provider works with Next.js and provides flash prevention
|
|
85
|
+
* via pre-hydration script injection.
|
|
86
|
+
*
|
|
87
|
+
* Features:
|
|
88
|
+
* - Pre-hydration script for flash prevention (SSR apps)
|
|
89
|
+
* - Animated theme transitions via View Transitions API
|
|
90
|
+
* - Multi-dimensional theming (theme + colorTheme)
|
|
91
|
+
* - System theme detection
|
|
92
|
+
* - CSP support via nonce prop
|
|
93
|
+
*
|
|
94
|
+
* @param props - Provider configuration options
|
|
95
|
+
*/
|
|
96
|
+
declare const NextUIThemeProvider: React.FC<NextUIThemeProviderProps>;
|
|
97
|
+
/**
|
|
98
|
+
* Hook to consume the Next.js UI Theme context
|
|
99
|
+
*
|
|
100
|
+
* @returns Theme context value with all theme state and methods
|
|
101
|
+
* @throws Error if used outside of NextUIThemeProvider
|
|
102
|
+
*/
|
|
103
|
+
declare const useNextUITheme: () => NextUIThemeContextType;
|
|
104
|
+
|
|
105
|
+
export { NextUIThemeProvider as b, useNextUITheme as u };
|
|
106
|
+
export type { NextUIThemeContextType as N, UseThemeProps as U, UseThemeReturn as a, NextUIThemeProviderProps as c };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
'use strict';var chunk4UXANDJ5_cjs=require('../chunk-4UXANDJ5.cjs');require('../chunk-KQSBORXP.cjs'),require('../chunk-I5GA5T23.cjs'),require('../chunk-CYGYUQUK.cjs');Object.defineProperty(exports,"NextUIThemeProvider",{enumerable:true,get:function(){return chunk4UXANDJ5_cjs.e}});Object.defineProperty(exports,"useNextUITheme",{enumerable:true,get:function(){return chunk4UXANDJ5_cjs.f}});
|
package/dist/nuxt.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { NuxtModule } from 'nuxt/schema';
|
|
2
|
+
import { UIThemeOptions } from './vue/bootstrap.js';
|
|
3
|
+
import { ThemeLogoOptions } from './vue/index.js';
|
|
4
|
+
import 'vue';
|
|
5
|
+
|
|
6
|
+
type ModuleOptions = Omit<UIThemeOptions, 'storage' | 'onThemeChange' | 'onColorThemeChange' | 'logo' | 'logoLight' | 'logoDark'> & ThemeLogoOptions;
|
|
7
|
+
declare const themeModule: NuxtModule<ModuleOptions>;
|
|
8
|
+
|
|
9
|
+
export { themeModule as default };
|
|
10
|
+
export type { ModuleOptions };
|
package/dist/nuxt.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import {a}from'./chunk-SO3CO44A.js';import'./chunk-CTNYTI5Q.js';import {defineNuxtModule,addImports,addComponent,addPluginTemplate}from'nuxt/kit';var s=defineNuxtModule({meta:{name:"uitheme-web",configKey:"uiTheme",compatibility:{nuxt:"^4.0.0"}},defaults:{defaultTheme:"system"},setup(e){a(e);let o=JSON.stringify(e).replace(/</g,"\\u003c");addImports([{name:"useUITheme",from:"uitheme-web/vue"},{name:"useTheme",as:"useVueTheme",from:"uitheme-web/vue"}]),addComponent({name:"UIThemeProvider",export:"UIThemeProvider",filePath:"uitheme-web/vue"}),addPluginTemplate({filename:"uitheme-web.plugin.mjs",getContents:()=>`
|
|
2
|
+
import { defineNuxtPlugin, useCookie, useHead } from '#imports';
|
|
3
|
+
import { createUITheme } from 'uitheme-web/vue';
|
|
4
|
+
import { getThemeScript } from 'uitheme-web/vue/bootstrap';
|
|
5
|
+
|
|
6
|
+
export default defineNuxtPlugin({
|
|
7
|
+
name: 'uitheme-web',
|
|
8
|
+
setup(nuxtApp) {
|
|
9
|
+
const options = ${o};
|
|
10
|
+
const themes = options.themes ?? ['light', 'dark', 'system'];
|
|
11
|
+
const palettes = options.colorThemes ?? ['default'];
|
|
12
|
+
const themeKey = options.storageKey ?? 'theme';
|
|
13
|
+
const paletteKey = options.colorStorageKey ?? 'color-theme';
|
|
14
|
+
const cookieOptions = { path: '/', sameSite: 'lax', maxAge: 31536000 };
|
|
15
|
+
const theme = useCookie(themeKey, cookieOptions);
|
|
16
|
+
const palette = useCookie(paletteKey, cookieOptions);
|
|
17
|
+
const initialTheme = themes.includes(theme.value) ? theme.value : options.defaultTheme ?? 'system';
|
|
18
|
+
const initialPalette = palettes.includes(palette.value) ? palette.value : options.defaultColorTheme ?? palettes[0];
|
|
19
|
+
const initial = { ...options, defaultTheme: initialTheme, defaultColorTheme: initialPalette, storage: false };
|
|
20
|
+
if (import.meta.server) {
|
|
21
|
+
useHead({
|
|
22
|
+
htmlAttrs: { class: [initialTheme === 'dark' ? options.globalClassName ?? 'dark' : '', (options.colorThemePrefix ?? 'theme-') + initialPalette].filter(Boolean).join(' ') },
|
|
23
|
+
script: [{ key: 'uitheme-web', innerHTML: getThemeScript(initial), tagPosition: 'head', tagPriority: 'critical' }],
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
nuxtApp.vueApp.use(createUITheme({
|
|
27
|
+
...initial,
|
|
28
|
+
storage: {
|
|
29
|
+
getItem: key => key === themeKey ? theme.value ?? null : palette.value ?? null,
|
|
30
|
+
setItem: (key, value) => { if (key === themeKey) theme.value = value; else palette.value = value; },
|
|
31
|
+
},
|
|
32
|
+
}));
|
|
33
|
+
},
|
|
34
|
+
});`});}}),p=s;export{p as default};
|
package/dist/react/index.cjs
CHANGED
|
@@ -1,39 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
'use strict';var
|
|
2
|
+
'use strict';var chunk4UXANDJ5_cjs=require('../chunk-4UXANDJ5.cjs'),chunkKQSBORXP_cjs=require('../chunk-KQSBORXP.cjs'),chunkI5GA5T23_cjs=require('../chunk-I5GA5T23.cjs'),chunkCYGYUQUK_cjs=require('../chunk-CYGYUQUK.cjs'),Pe=require('react'),jsxRuntime=require('react/jsx-runtime');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var Pe__default=/*#__PURE__*/_interopDefault(Pe);var J=async(t,h,o)=>{try{await t?.(h);}catch(i){let r=i instanceof Error?i:new Error(String(i));try{o?o(r):console.error("Theme server notification failed:",r);}catch(c){console.error("Theme server error handler failed:",c);}}};var Q=Pe.createContext(void 0),Le=(t,h,o,i,r,c,u)=>`
|
|
3
3
|
(function() {
|
|
4
4
|
try {
|
|
5
|
-
var theme = localStorage.getItem(${
|
|
6
|
-
var colorTheme = localStorage.getItem(${
|
|
7
|
-
var resolved = theme === 'system'
|
|
8
|
-
? (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light')
|
|
9
|
-
: theme;
|
|
10
|
-
|
|
11
|
-
if (${I(i)} === 'class') {
|
|
12
|
-
if (resolved === 'dark') {
|
|
13
|
-
document.documentElement.classList.add(${I(a)});
|
|
14
|
-
} else {
|
|
15
|
-
document.documentElement.classList.remove(${I(a)});
|
|
16
|
-
}
|
|
17
|
-
} else {
|
|
18
|
-
document.documentElement.setAttribute('data-theme', resolved);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
document.documentElement.style.colorScheme = resolved;
|
|
22
|
-
document.documentElement.classList.add(${I(l)} + colorTheme);
|
|
23
|
-
} catch (e) {
|
|
24
|
-
console.warn('Theme pre-hydration script failed:', e);
|
|
25
|
-
}
|
|
26
|
-
})();
|
|
27
|
-
`,Ve=_t__namespace.default.memo(({storageKey:e,colorStorageKey:o,defaultTheme:n,defaultColorTheme:r,attribute:i,globalClassName:a,colorThemePrefix:l,nonce:g})=>{let u=Ht(e,o,n,r,i,a,l);return jsxRuntime.jsx("script",{nonce:g,suppressHydrationWarning:true,dangerouslySetInnerHTML:{__html:u}})});Ve.displayName="ThemePreHydrationScript";var Ft=({children:e,themes:o=["light","dark","system"],colorThemes:n=["default"],defaultTheme:r="system",defaultColorTheme:i="default",animationType:a="circle",clipPathDirection:l,animationPosition:g,logo:u,logoLight:y,logoDark:b,logoWidth:U,logoHeight:V,gradientWidth:p,duration:R=400,storageKey:v=chunkW4YFUPGE_cjs.q,colorStorageKey:N=chunkW4YFUPGE_cjs.r,attribute:G="class",globalClassName:c=chunkW4YFUPGE_cjs.s,colorThemePrefix:w=chunkW4YFUPGE_cjs.t,nonce:k,disableAnimationOnInit:s=true,disablePreHydrationScript:C=false})=>{let z=W(),T=F({themes:o,colorThemes:n,defaultTheme:r,defaultColorTheme:i,animationType:a,clipPathDirection:l,animationPosition:g,...chunkV3LMT5IJ_cjs.c({logo:u,logoLight:y,logoDark:b}),logoWidth:U,logoHeight:V,gradientWidth:p,duration:R,storageKey:v,colorStorageKey:N,globalClassName:G==="class"?c:void 0,colorThemePrefix:w}),_=_t.useCallback(async(A,L=false)=>{!z&&s?T.setTheme(A):await T.switchTheme(A,L);},[z,s,T]),K=_t.useCallback((A,L)=>_(A,{element:L}),[_]),M=typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";if(!z){let A={ref:{current:null},theme:r,colorTheme:i,resolvedTheme:r==="dark"?"dark":"light",systemTheme:"light",setTheme:()=>{},setColorTheme:()=>{},switchTheme:async()=>{},switchThemeFromElement:async()=>{},switchColorTheme:async()=>{},toggleTheme:async()=>{},toggleLightTheme:async()=>{},toggleDarkTheme:async()=>{},toggleColorTheme:async()=>{},createColorThemeToggle:()=>async()=>{},isColorThemeActive:()=>false};return jsxRuntime.jsx(Fe.Provider,{value:A,children:jsxRuntime.jsxs(B.Provider,{value:A,children:[!C&&jsxRuntime.jsx(Ve,{storageKey:v,colorStorageKey:N,defaultTheme:r,defaultColorTheme:i,attribute:G,globalClassName:c,colorThemePrefix:w,nonce:k}),e]})})}let d={ref:T.ref,theme:T.theme,colorTheme:T.colorTheme,resolvedTheme:T.resolvedTheme,systemTheme:M,setTheme:T.setTheme,setColorTheme:T.setColorTheme,switchTheme:_,switchThemeFromElement:K,switchColorTheme:T.switchColorTheme,toggleTheme:T.toggleTheme,toggleLightTheme:T.toggleLightTheme,toggleDarkTheme:T.toggleDarkTheme,toggleColorTheme:T.toggleColorTheme,createColorThemeToggle:T.createColorThemeToggle,isColorThemeActive:T.isColorThemeActive};return jsxRuntime.jsx(Fe.Provider,{value:d,children:jsxRuntime.jsxs(B.Provider,{value:d,children:[!C&&jsxRuntime.jsx(Ve,{storageKey:v,colorStorageKey:N,defaultTheme:r,defaultColorTheme:i,attribute:G,globalClassName:c,colorThemePrefix:w,nonce:k}),e]})})},Vt=()=>{let e=_t.useContext(Fe);if(e===void 0)throw new Error("useNextUITheme must be used within a NextUIThemeProvider");return e};var $e=async(e,o,n)=>{try{await e?.(o);}catch(r){let i=r instanceof Error?r:new Error(String(r));try{n?n(i):console.error("Theme server notification failed:",i);}catch(a){console.error("Theme server error handler failed:",a);}}};var Be=_t.createContext(void 0),Wt=(e,o,n,r,i,a,l)=>`
|
|
28
|
-
(function() {
|
|
29
|
-
try {
|
|
30
|
-
var theme = localStorage.getItem(${I(e)}) || ${I(n)};
|
|
31
|
-
var colorTheme = localStorage.getItem(${I(o)}) || ${I(r)};
|
|
5
|
+
var theme = localStorage.getItem(${chunk4UXANDJ5_cjs.b(t)}) || ${chunk4UXANDJ5_cjs.b(o)};
|
|
6
|
+
var colorTheme = localStorage.getItem(${chunk4UXANDJ5_cjs.b(h)}) || ${chunk4UXANDJ5_cjs.b(i)};
|
|
32
7
|
var el = document.documentElement;
|
|
33
8
|
var resolved;
|
|
34
9
|
if (theme === 'system') {
|
|
35
|
-
if (${
|
|
36
|
-
el.classList.remove(${
|
|
10
|
+
if (${chunk4UXANDJ5_cjs.b(u)} === 'css') {
|
|
11
|
+
el.classList.remove(${chunk4UXANDJ5_cjs.b(r)});
|
|
37
12
|
el.classList.remove('auto');
|
|
38
13
|
el.classList.remove('system');
|
|
39
14
|
el.classList.add('system');
|
|
@@ -41,9 +16,9 @@
|
|
|
41
16
|
} else {
|
|
42
17
|
resolved = window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
|
|
43
18
|
if (resolved === 'dark') {
|
|
44
|
-
el.classList.add(${
|
|
19
|
+
el.classList.add(${chunk4UXANDJ5_cjs.b(r)});
|
|
45
20
|
} else {
|
|
46
|
-
el.classList.remove(${
|
|
21
|
+
el.classList.remove(${chunk4UXANDJ5_cjs.b(r)});
|
|
47
22
|
}
|
|
48
23
|
el.classList.remove('system');
|
|
49
24
|
el.classList.remove('auto');
|
|
@@ -54,70 +29,17 @@
|
|
|
54
29
|
el.classList.remove('system');
|
|
55
30
|
el.classList.remove('auto');
|
|
56
31
|
if (resolved === 'dark') {
|
|
57
|
-
el.classList.add(${
|
|
32
|
+
el.classList.add(${chunk4UXANDJ5_cjs.b(r)});
|
|
58
33
|
} else {
|
|
59
|
-
el.classList.remove(${
|
|
34
|
+
el.classList.remove(${chunk4UXANDJ5_cjs.b(r)});
|
|
60
35
|
}
|
|
61
36
|
el.style.colorScheme = resolved;
|
|
62
37
|
}
|
|
63
38
|
if (colorTheme && colorTheme !== 'default') {
|
|
64
|
-
el.classList.add(${
|
|
39
|
+
el.classList.add(${chunk4UXANDJ5_cjs.b(c)} + colorTheme);
|
|
65
40
|
}
|
|
66
41
|
} catch (e) {
|
|
67
42
|
console.warn('Theme pre-hydration script failed:', e);
|
|
68
43
|
}
|
|
69
44
|
})();
|
|
70
|
-
`,
|
|
71
|
-
relative flex h-9 w-12 cursor-pointer items-center justify-center
|
|
72
|
-
text-muted-foreground hover:text-foreground
|
|
73
|
-
${n?"text-foreground font-medium":""}
|
|
74
|
-
`,role:"radio","aria-checked":n,"aria-label":`Switch to ${o} theme`,onClick:u=>i(o,u),onMouseEnter:a,onMouseLeave:l,style:{borderRadius:"var(--radius)"},children:[r&&jsxRuntime.jsx("div",{className:"absolute inset-0 bg-muted",style:{borderRadius:"var(--radius)"}}),jsxRuntime.jsx("div",{className:"relative z-10 flex items-center justify-center",children:jsxRuntime.jsx("div",{className:"[&_svg]:size-4",children:e})}),n&&jsxRuntime.jsx("div",{className:"absolute bottom-0 left-1/2 h-0.5 w-6 -translate-x-1/2 rounded-full",style:{backgroundColor:"hsl(var(--primary))"}})]}),ao=[{icon:jsxRuntime.jsx(so,{}),value:"system"},{icon:jsxRuntime.jsx(no,{}),value:"light"},{icon:jsxRuntime.jsx(io,{}),value:"dark"}],lt=({state:e,isControlled:o,themes:n=["light","dark","system"],onThemeChange:r,className:i})=>{let{ref:a,theme:l,switchTheme:g}=e,u=W(),[y,b]=_t.useState(null),U=async(p,R)=>{o&&R?(await g(p,{element:R.currentTarget,animationOff:R.detail===0}),r&&r(p)):await g(p,R?{element:R.currentTarget,animationOff:R.detail===0}:void 0);},V=ao.filter(p=>n.includes(p.value));return jsxRuntime.jsx("div",{className:`
|
|
75
|
-
inline-flex h-9 items-center overflow-hidden bg-background shadow-sm border border-border
|
|
76
|
-
${u?"opacity-100":"opacity-0"}
|
|
77
|
-
${i||""}
|
|
78
|
-
`,style:{borderRadius:"var(--radius)",backgroundColor:"hsl(var(--background))"},role:"radiogroup",onMouseLeave:()=>b(null),children:V.map(p=>jsxRuntime.jsx(mo,{icon:p.icon,value:p.value,isActive:l===p.value,isHovered:y===p.value,onClick:U,onMouseEnter:()=>b(p.value),onMouseLeave:()=>{},buttonRef:l===p.value?a:void 0},p.value))})},lo=e=>{let o=F({...e,theme:e.currentTheme});return jsxRuntime.jsx(lt,{...e,state:o,isControlled:false})},co=e=>{let o=we();return o?jsxRuntime.jsx(lt,{...e,state:o,isControlled:true}):jsxRuntime.jsx(lo,{...e})};var ht=()=>jsxRuntime.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:jsxRuntime.jsx("path",{d:"m6 9 6 6 6-6"})}),ho=()=>jsxRuntime.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:jsxRuntime.jsx("path",{d:"m18 15-6-6-6 6"})}),To=()=>jsxRuntime.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:jsxRuntime.jsx("path",{d:"M20 6 9 17l-5-5"})});function Ke({...e}){return jsxRuntime.jsx(m__namespace.Root,{"data-slot":"ui-select",...e})}function uo({...e}){return jsxRuntime.jsx(m__namespace.Group,{"data-slot":"ui-select-group",...e})}function We({...e}){return jsxRuntime.jsx(m__namespace.Value,{"data-slot":"ui-select-value",...e})}var Ye=_t__namespace.forwardRef(function({className:o,size:n="default",children:r,...i},a){return jsxRuntime.jsxs(m__namespace.Trigger,{ref:a,"data-slot":"ui-select-trigger","data-size":n,className:`
|
|
79
|
-
border-input data-[placeholder]:text-muted-foreground
|
|
80
|
-
[&_svg:not([class*='text-'])]:text-muted-foreground
|
|
81
|
-
focus-visible:border-ring focus-visible:ring-ring/50
|
|
82
|
-
aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40
|
|
83
|
-
aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50
|
|
84
|
-
flex w-fit items-center justify-between gap-2 rounded-md border
|
|
85
|
-
bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs
|
|
86
|
-
transition-[color,box-shadow] outline-none focus-visible:ring-[3px]
|
|
87
|
-
disabled:cursor-not-allowed disabled:opacity-50
|
|
88
|
-
data-[size=default]:h-9 data-[size=sm]:h-8
|
|
89
|
-
*:data-[slot=ui-select-value]:line-clamp-1
|
|
90
|
-
*:data-[slot=ui-select-value]:flex
|
|
91
|
-
*:data-[slot=ui-select-value]:items-center
|
|
92
|
-
*:data-[slot=ui-select-value]:gap-2
|
|
93
|
-
[&_svg]:pointer-events-none [&_svg]:shrink-0
|
|
94
|
-
[&_svg:not([class*='size-'])]:size-4
|
|
95
|
-
${o||""}
|
|
96
|
-
`,...i,children:[r,jsxRuntime.jsx(m__namespace.Icon,{asChild:true,children:jsxRuntime.jsx(ht,{})})]})});function je({className:e,children:o,position:n="popper",...r}){return jsxRuntime.jsx(m__namespace.Portal,{children:jsxRuntime.jsx(m__namespace.Content,{"data-slot":"ui-select-content",className:`
|
|
97
|
-
bg-popover text-popover-foreground
|
|
98
|
-
data-[state=open]:animate-in data-[state=closed]:animate-out
|
|
99
|
-
data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0
|
|
100
|
-
data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95
|
|
101
|
-
data-[side=bottom]:slide-in-from-top-2
|
|
102
|
-
data-[side=left]:slide-in-from-right-2
|
|
103
|
-
data-[side=right]:slide-in-from-left-2
|
|
104
|
-
data-[side=top]:slide-in-from-bottom-2
|
|
105
|
-
relative z-50 max-h-[var(--radix-select-content-available-height)]
|
|
106
|
-
min-w-[8rem] origin-[var(--radix-select-content-transform-origin)]
|
|
107
|
-
overflow-x-hidden overflow-y-auto rounded-md border shadow-md
|
|
108
|
-
${n==="popper"?"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1":""}
|
|
109
|
-
${e||""}
|
|
110
|
-
`,position:n,...r,children:jsxRuntime.jsx(m__namespace.Viewport,{className:`
|
|
111
|
-
p-1
|
|
112
|
-
${n==="popper"?"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]":""}
|
|
113
|
-
`,children:o})})})}function po({className:e,...o}){return jsxRuntime.jsx(m__namespace.Label,{"data-slot":"ui-select-label",className:`py-1.5 pl-8 pr-2 text-sm font-semibold ${e||""}`,...o})}function Xe({className:e,children:o,...n}){return jsxRuntime.jsxs(m__namespace.Item,{"data-slot":"ui-select-item",className:`
|
|
114
|
-
focus:bg-accent focus:text-accent-foreground
|
|
115
|
-
[&_svg:not([class*='text-'])]:text-muted-foreground
|
|
116
|
-
relative flex w-full cursor-default items-center gap-2
|
|
117
|
-
rounded-sm py-1.5 pr-8 pl-2 text-sm outline-none select-none
|
|
118
|
-
data-[disabled]:pointer-events-none data-[disabled]:opacity-50
|
|
119
|
-
[&_svg]:pointer-events-none [&_svg]:shrink-0
|
|
120
|
-
[&_svg:not([class*='size-'])]:size-4
|
|
121
|
-
*:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2
|
|
122
|
-
${e||""}
|
|
123
|
-
`,...n,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(m__namespace.ItemIndicator,{children:jsxRuntime.jsx(To,{})})}),jsxRuntime.jsx(m__namespace.ItemText,{children:o})]})}function go({className:e,...o}){return jsxRuntime.jsx(m__namespace.Separator,{"data-slot":"ui-select-separator",className:`-mx-1 my-1 h-px bg-muted ${e||""}`,...o})}function fo({className:e,...o}){return jsxRuntime.jsx(m__namespace.ScrollUpButton,{"data-slot":"ui-select-scroll-up-button",className:`flex cursor-default items-center justify-center py-1 ${e||""}`,...o,children:jsxRuntime.jsx(ho,{})})}function vo({className:e,...o}){return jsxRuntime.jsx(m__namespace.ScrollDownButton,{"data-slot":"ui-select-scroll-down-button",className:`flex cursor-default items-center justify-center py-1 ${e||""}`,...o,children:jsxRuntime.jsx(ht,{})})}var ut=({state:e,isControlled:o,colorThemes:n=["default"],onColorThemeChange:r,className:i,placeholder:a="Choose a color theme"})=>{let{colorTheme:l,switchColorTheme:g}=e,u=_t.useRef(null),y=_t.useRef(false),b=U=>{g(U,{element:u.current,animationOff:y.current}),o&&r?.(U);};return n.length<=1?null:jsxRuntime.jsx("div",{className:`flex flex-col gap-2 ${i||""}`,onKeyDownCapture:()=>{y.current=true;},onPointerDownCapture:()=>{y.current=false;},children:jsxRuntime.jsxs(Ke,{value:l,onValueChange:b,children:[jsxRuntime.jsx(Ye,{ref:u,className:"capitalize",children:jsxRuntime.jsx(We,{placeholder:a})}),jsxRuntime.jsx(je,{onKeyDownCapture:()=>{y.current=true;},onPointerDownCapture:()=>{y.current=false;},children:n.map(U=>jsxRuntime.jsx(Xe,{className:"capitalize",value:U,children:U},U))})]})})},yo=e=>{let o=F({...e,colorTheme:e.currentColorTheme});return jsxRuntime.jsx(ut,{...e,state:o,isControlled:false})},Co=e=>{let o=we();return o?jsxRuntime.jsx(ut,{...e,state:o,isControlled:true}):jsxRuntime.jsx(yo,{...e})};Object.defineProperty(exports,"TRANSITION_DIRECTIONS",{enumerable:true,get:function(){return chunkV3LMT5IJ_cjs.b}});Object.defineProperty(exports,"ThemeAnimationType",{enumerable:true,get:function(){return chunkV3LMT5IJ_cjs.a}});Object.defineProperty(exports,"preloadThemeLogo",{enumerable:true,get:function(){return chunkV3LMT5IJ_cjs.d}});Object.defineProperty(exports,"COLOR_STORAGE_KEY",{enumerable:true,get:function(){return chunkW4YFUPGE_cjs.r}});Object.defineProperty(exports,"COLOR_THEME_PREFIX",{enumerable:true,get:function(){return chunkW4YFUPGE_cjs.t}});Object.defineProperty(exports,"DEFAULT_BLUR_AMOUNT",{enumerable:true,get:function(){return chunkW4YFUPGE_cjs.w}});Object.defineProperty(exports,"DEFAULT_DURATION",{enumerable:true,get:function(){return chunkW4YFUPGE_cjs.u}});Object.defineProperty(exports,"DEFAULT_EASING",{enumerable:true,get:function(){return chunkW4YFUPGE_cjs.v}});Object.defineProperty(exports,"DEFAULT_STYLE_ID",{enumerable:true,get:function(){return chunkW4YFUPGE_cjs.x}});Object.defineProperty(exports,"GLOBAL_CLASS_NAME",{enumerable:true,get:function(){return chunkW4YFUPGE_cjs.s}});Object.defineProperty(exports,"STORAGE_KEY",{enumerable:true,get:function(){return chunkW4YFUPGE_cjs.q}});Object.defineProperty(exports,"getSystemTheme",{enumerable:true,get:function(){return chunkW4YFUPGE_cjs.c}});Object.defineProperty(exports,"injectBaseStyles",{enumerable:true,get:function(){return chunkW4YFUPGE_cjs.a}});Object.defineProperty(exports,"prefersReducedMotion",{enumerable:true,get:function(){return chunkW4YFUPGE_cjs.g}});Object.defineProperty(exports,"resolveTheme",{enumerable:true,get:function(){return chunkW4YFUPGE_cjs.d}});Object.defineProperty(exports,"resolveThemeForServer",{enumerable:true,get:function(){return chunkW4YFUPGE_cjs.e}});Object.defineProperty(exports,"supportsViewTransitions",{enumerable:true,get:function(){return chunkW4YFUPGE_cjs.f}});exports.NextUIThemeProvider=Ft;exports.TanStackStartThemeScript=st;exports.TanStackUIThemeProvider=Yt;exports.UISelect=Ke;exports.UISelectContent=je;exports.UISelectGroup=uo;exports.UISelectItem=Xe;exports.UISelectLabel=po;exports.UISelectScrollDownButton=vo;exports.UISelectScrollUpButton=fo;exports.UISelectSeparator=go;exports.UISelectTrigger=Ye;exports.UISelectValue=We;exports.UIThemeProvider=to;exports.UIThemeSelector=Co;exports.UIThemeSwitcher=co;exports.ViteUIThemeProvider=qt;exports.useHydrated=W;exports.useNextUITheme=Vt;exports.useTanStackUITheme=jt;exports.useTheme=F;exports.useUITheme=oo;exports.useViteUITheme=Qt;
|
|
45
|
+
`,ne=Pe__default.default.memo(({storageKey:t=chunkCYGYUQUK_cjs.a,colorStorageKey:h=chunkCYGYUQUK_cjs.b,defaultTheme:o="system",defaultColorTheme:i="default",globalClassName:r=chunkCYGYUQUK_cjs.c,colorThemePrefix:c=chunkCYGYUQUK_cjs.d,nonce:u,systemThemeMode:v="js"})=>{let S=Le(t,h,o,i,r,c,v);return jsxRuntime.jsx("script",{nonce:u,suppressHydrationWarning:true,dangerouslySetInnerHTML:{__html:S}})});ne.displayName="TanStackStartThemeScript";var Re=({children:t,themes:h=["light","dark","system"],colorThemes:o=["default"],defaultTheme:i="system",defaultColorTheme:r=o[0]??"default",animationType:c="circle",clipPathDirection:u,animationPosition:v,logo:S,logoLight:L,logoDark:R,logoWidth:O,logoHeight:_,gradientWidth:D,duration:F=400,storageKey:I=chunkCYGYUQUK_cjs.a,colorStorageKey:C=chunkCYGYUQUK_cjs.b,globalClassName:V=chunkCYGYUQUK_cjs.c,colorThemePrefix:P=chunkCYGYUQUK_cjs.d,serverTheme:g,serverColorTheme:d,systemThemeMode:n="css",onServerThemeChange:a,onServerColorThemeChange:X,onServerError:N})=>{let w=chunk4UXANDJ5_cjs.d(),k=g!==void 0,x=k?g==="system"?"system":g:void 0,T=chunk4UXANDJ5_cjs.a({themes:h,colorThemes:o,defaultTheme:i,defaultColorTheme:r,animationType:c,clipPathDirection:u,animationPosition:v,...chunkKQSBORXP_cjs.c({logo:S,logoLight:L,logoDark:R}),logoWidth:O,logoHeight:_,gradientWidth:D,duration:F,storageKey:I,colorStorageKey:C,globalClassName:V,colorThemePrefix:P,systemThemeMode:n,initialTheme:x,initialColorTheme:d,onThemeChange:e=>{J(a,e,N);},onColorThemeChange:e=>{J(X,e,N);}}),$=Pe.useRef(false);Pe.useEffect(()=>{if(!(!k||!w||$.current)){$.current=true;try{x&&chunkKQSBORXP_cjs.g(x,I),d&&chunkKQSBORXP_cjs.i(d,C);}catch(e){console.warn("Unable to persist the initial server theme:",e);}}},[k,w,x,d,I,C]);let p=T.setTheme,m=T.setColorTheme,s=(e=false)=>w?e:e===true||e===false?true:{...e,animationOff:true},K=(e,y)=>T.switchTheme(e,s(y)),he=e=>T.toggleTheme(s(e)),ae=e=>T.toggleLightTheme(s(e)),Te=e=>T.toggleDarkTheme(s(e)),Z=(e,y)=>T.switchColorTheme(e,s(y)),le=(e,y)=>K(e,{element:y}),j=typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",ee=k?g==="dark"?"dark":g==="system"?j:"light":i==="dark"?"dark":"light";if(!w){let e={themes:h,colorThemes:o,mounted:false,ref:{current:null},theme:x??i,colorTheme:d??r,resolvedTheme:ee,systemTheme:"light",isHydrated:false,setTheme:p,setColorTheme:m,switchTheme:async y=>p(y),switchThemeFromElement:async y=>p(y),switchColorTheme:Z,toggleTheme:async()=>{p(ee==="dark"?"light":"dark");},toggleLightTheme:async()=>p("light"),toggleDarkTheme:async()=>p("dark"),toggleColorTheme:T.toggleColorTheme,createColorThemeToggle:T.createColorThemeToggle,isColorThemeActive:T.isColorThemeActive};return jsxRuntime.jsx(Q.Provider,{value:e,children:jsxRuntime.jsx(chunk4UXANDJ5_cjs.c.Provider,{value:e,children:t})})}let te={...T,systemTheme:j,isHydrated:true,setTheme:p,setColorTheme:m,switchTheme:K,switchThemeFromElement:le,switchColorTheme:Z,toggleTheme:he,toggleLightTheme:ae,toggleDarkTheme:Te};return jsxRuntime.jsx(Q.Provider,{value:te,children:jsxRuntime.jsx(chunk4UXANDJ5_cjs.c.Provider,{value:te,children:t})})},Oe=()=>{let t=Pe.useContext(Q);if(t===void 0)throw new Error("useTanStackUITheme must be used within a TanStackUIThemeProvider");return t};var ie=Pe.createContext(void 0),Fe=({children:t,themes:h=["light","dark","system"],colorThemes:o=["default"],defaultTheme:i="system",defaultColorTheme:r=o[0]??"default",animationType:c="circle",clipPathDirection:u,animationPosition:v,logo:S,logoLight:L,logoDark:R,logoWidth:O,logoHeight:_,gradientWidth:D,duration:F=400,attribute:I="class",disableTransitionOnChange:C=false,storageKey:V="ui-theme",colorStorageKey:P="ui-color-theme",globalClassName:g="dark",colorThemePrefix:d="theme-"})=>{let n=chunk4UXANDJ5_cjs.a({themes:h,colorThemes:o,defaultTheme:i,defaultColorTheme:r,animationType:c,clipPathDirection:u,animationPosition:v,...chunkKQSBORXP_cjs.c({logo:S,logoLight:L,logoDark:R}),logoWidth:O,logoHeight:_,gradientWidth:D,duration:F,storageKey:V,colorStorageKey:P,globalClassName:I==="class"?g:void 0,colorThemePrefix:d}),a=Pe.useCallback(()=>{if(!C)return ()=>{};let m=document.createElement("style");return m.textContent="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}",document.head.appendChild(m),window.getComputedStyle(document.body),()=>{setTimeout(()=>{document.head.removeChild(m);},1);}},[C]),X=Pe.useCallback(m=>{let s=a();n.setTheme(m),s();},[n,a]),N=Pe.useCallback(async(m,s=false)=>{let K=a();try{await n.switchTheme(m,s);}finally{K();}},[n,a]),w=Pe.useCallback(async(m=false)=>{let s=a();try{await n.toggleTheme(m);}finally{s();}},[n,a]),k=Pe.useCallback(async(m=false)=>{let s=a();try{await n.toggleLightTheme(m);}finally{s();}},[n,a]),x=Pe.useCallback(async(m=false)=>{let s=a();try{await n.toggleDarkTheme(m);}finally{s();}},[n,a]),T=(m,s)=>N(m,{element:s}),$=chunkI5GA5T23_cjs.c(),p={...n,systemTheme:$,setTheme:X,switchTheme:N,switchThemeFromElement:T,toggleTheme:w,toggleLightTheme:k,toggleDarkTheme:x};return jsxRuntime.jsx(ie.Provider,{value:p,children:jsxRuntime.jsx(chunk4UXANDJ5_cjs.c.Provider,{value:p,children:t})})},Ve=()=>{let t=Pe.useContext(ie);if(t===void 0)throw new Error("useViteUITheme must be used within a ViteUIThemeProvider");return t};var se=Pe.createContext(void 0),Me=({children:t,themes:h=["light","dark","system"],colorThemes:o=["default"],defaultTheme:i="system",defaultColorTheme:r=o[0]??"default",animationType:c="circle",clipPathDirection:u,animationPosition:v,logo:S,logoLight:L,logoDark:R,logoWidth:O,logoHeight:_,gradientWidth:D,duration:F=400,storageKey:I,colorStorageKey:C})=>{let V=chunk4UXANDJ5_cjs.d(),P=chunk4UXANDJ5_cjs.a({themes:h,colorThemes:o,defaultTheme:i,defaultColorTheme:r,animationType:c,clipPathDirection:u,animationPosition:v,...chunkKQSBORXP_cjs.c({logo:S,logoLight:L,logoDark:R}),logoWidth:O,logoHeight:_,gradientWidth:D,duration:F,storageKey:I,colorStorageKey:C}),g=(n,a)=>P.switchTheme(n,{element:a});if(!V){let n={themes:h,colorThemes:o,mounted:false,systemTheme:"light",ref:{current:null},theme:i,colorTheme:r,resolvedTheme:i==="dark"?"dark":"light",setTheme:()=>{},setColorTheme:()=>{},switchTheme:async()=>{},switchThemeFromElement:async()=>{},switchColorTheme:async()=>{},toggleTheme:async()=>{},toggleLightTheme:async()=>{},toggleDarkTheme:async()=>{},toggleColorTheme:async()=>{},createColorThemeToggle:()=>async()=>{},isColorThemeActive:()=>false};return jsxRuntime.jsx(se.Provider,{value:n,children:jsxRuntime.jsx(chunk4UXANDJ5_cjs.c.Provider,{value:n,children:t})})}let d={...P,switchThemeFromElement:g};return jsxRuntime.jsx(se.Provider,{value:d,children:jsxRuntime.jsx(chunk4UXANDJ5_cjs.c.Provider,{value:d,children:t})})},be=()=>{let t=Pe.useContext(chunk4UXANDJ5_cjs.c);if(t===null)throw new Error("useUITheme must be used within a UIThemeProvider");return {...t,switchThemeFromElement:(h,o)=>t.switchTheme(h,{element:o})}};Object.defineProperty(exports,"NextUIThemeProvider",{enumerable:true,get:function(){return chunk4UXANDJ5_cjs.e}});Object.defineProperty(exports,"useHydrated",{enumerable:true,get:function(){return chunk4UXANDJ5_cjs.d}});Object.defineProperty(exports,"useNextUITheme",{enumerable:true,get:function(){return chunk4UXANDJ5_cjs.f}});Object.defineProperty(exports,"useTheme",{enumerable:true,get:function(){return chunk4UXANDJ5_cjs.a}});Object.defineProperty(exports,"TRANSITION_DIRECTIONS",{enumerable:true,get:function(){return chunkKQSBORXP_cjs.b}});Object.defineProperty(exports,"ThemeAnimationType",{enumerable:true,get:function(){return chunkKQSBORXP_cjs.a}});Object.defineProperty(exports,"preloadThemeLogo",{enumerable:true,get:function(){return chunkKQSBORXP_cjs.d}});Object.defineProperty(exports,"getSystemTheme",{enumerable:true,get:function(){return chunkI5GA5T23_cjs.c}});Object.defineProperty(exports,"injectBaseStyles",{enumerable:true,get:function(){return chunkI5GA5T23_cjs.a}});Object.defineProperty(exports,"prefersReducedMotion",{enumerable:true,get:function(){return chunkI5GA5T23_cjs.g}});Object.defineProperty(exports,"resolveTheme",{enumerable:true,get:function(){return chunkI5GA5T23_cjs.d}});Object.defineProperty(exports,"resolveThemeForServer",{enumerable:true,get:function(){return chunkI5GA5T23_cjs.e}});Object.defineProperty(exports,"supportsViewTransitions",{enumerable:true,get:function(){return chunkI5GA5T23_cjs.f}});Object.defineProperty(exports,"COLOR_STORAGE_KEY",{enumerable:true,get:function(){return chunkCYGYUQUK_cjs.b}});Object.defineProperty(exports,"COLOR_THEME_PREFIX",{enumerable:true,get:function(){return chunkCYGYUQUK_cjs.d}});Object.defineProperty(exports,"DEFAULT_BLUR_AMOUNT",{enumerable:true,get:function(){return chunkCYGYUQUK_cjs.g}});Object.defineProperty(exports,"DEFAULT_DURATION",{enumerable:true,get:function(){return chunkCYGYUQUK_cjs.e}});Object.defineProperty(exports,"DEFAULT_EASING",{enumerable:true,get:function(){return chunkCYGYUQUK_cjs.f}});Object.defineProperty(exports,"DEFAULT_STYLE_ID",{enumerable:true,get:function(){return chunkCYGYUQUK_cjs.h}});Object.defineProperty(exports,"GLOBAL_CLASS_NAME",{enumerable:true,get:function(){return chunkCYGYUQUK_cjs.c}});Object.defineProperty(exports,"STORAGE_KEY",{enumerable:true,get:function(){return chunkCYGYUQUK_cjs.a}});exports.TanStackStartThemeScript=ne;exports.TanStackUIThemeProvider=Re;exports.UIThemeProvider=Me;exports.ViteUIThemeProvider=Fe;exports.useTanStackUITheme=Oe;exports.useUITheme=be;exports.useViteUITheme=Ve;
|