@tamagui/web 1.124.9 → 1.124.11
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/dist/cjs/helpers/createShallowSetState.cjs +10 -5
- package/dist/cjs/helpers/createShallowSetState.js +11 -5
- package/dist/cjs/helpers/createShallowSetState.js.map +1 -1
- package/dist/cjs/helpers/createShallowSetState.native.js +11 -5
- package/dist/cjs/helpers/createShallowSetState.native.js.map +2 -2
- package/dist/cjs/hooks/useComponentState.cjs +1 -1
- package/dist/cjs/hooks/useComponentState.js +1 -1
- package/dist/cjs/hooks/useComponentState.js.map +1 -1
- package/dist/cjs/hooks/useComponentState.native.js +3 -1
- package/dist/cjs/hooks/useComponentState.native.js.map +1 -1
- package/dist/cjs/hooks/useProps.cjs +1 -1
- package/dist/cjs/hooks/useProps.js +1 -1
- package/dist/cjs/hooks/useProps.js.map +1 -1
- package/dist/cjs/hooks/useProps.native.js +1 -1
- package/dist/cjs/hooks/useProps.native.js.map +2 -2
- package/dist/cjs/hooks/useThemeState.cjs +47 -26
- package/dist/cjs/hooks/useThemeState.js +31 -22
- package/dist/cjs/hooks/useThemeState.js.map +1 -1
- package/dist/cjs/hooks/useThemeState.native.js +69 -25
- package/dist/cjs/hooks/useThemeState.native.js.map +2 -2
- package/dist/cjs/views/Theme.cjs +11 -7
- package/dist/cjs/views/Theme.js +15 -4
- package/dist/cjs/views/Theme.js.map +1 -1
- package/dist/cjs/views/Theme.native.js +10 -7
- package/dist/cjs/views/Theme.native.js.map +2 -2
- package/dist/esm/helpers/createShallowSetState.js +11 -5
- package/dist/esm/helpers/createShallowSetState.js.map +1 -1
- package/dist/esm/helpers/createShallowSetState.mjs +10 -5
- package/dist/esm/helpers/createShallowSetState.mjs.map +1 -1
- package/dist/esm/helpers/createShallowSetState.native.js +11 -5
- package/dist/esm/helpers/createShallowSetState.native.js.map +2 -2
- package/dist/esm/hooks/useComponentState.js +1 -1
- package/dist/esm/hooks/useComponentState.js.map +1 -1
- package/dist/esm/hooks/useComponentState.mjs +1 -1
- package/dist/esm/hooks/useComponentState.mjs.map +1 -1
- package/dist/esm/hooks/useComponentState.native.js +3 -1
- package/dist/esm/hooks/useComponentState.native.js.map +1 -1
- package/dist/esm/hooks/useProps.js +1 -1
- package/dist/esm/hooks/useProps.js.map +1 -1
- package/dist/esm/hooks/useProps.mjs +1 -1
- package/dist/esm/hooks/useProps.mjs.map +1 -1
- package/dist/esm/hooks/useProps.native.js +1 -1
- package/dist/esm/hooks/useProps.native.js.map +2 -2
- package/dist/esm/hooks/useThemeState.js +31 -22
- package/dist/esm/hooks/useThemeState.js.map +1 -1
- package/dist/esm/hooks/useThemeState.mjs +47 -26
- package/dist/esm/hooks/useThemeState.mjs.map +1 -1
- package/dist/esm/hooks/useThemeState.native.js +69 -25
- package/dist/esm/hooks/useThemeState.native.js.map +2 -2
- package/dist/esm/views/Theme.js +16 -11
- package/dist/esm/views/Theme.js.map +1 -1
- package/dist/esm/views/Theme.mjs +11 -7
- package/dist/esm/views/Theme.mjs.map +1 -1
- package/dist/esm/views/Theme.native.js +10 -7
- package/dist/esm/views/Theme.native.js.map +2 -2
- package/package.json +11 -11
- package/src/helpers/createShallowSetState.tsx +14 -5
- package/src/hooks/useComponentState.ts +1 -1
- package/src/hooks/useProps.tsx +1 -1
- package/src/hooks/useThemeState.ts +87 -44
- package/src/views/Theme.tsx +17 -15
- package/types/helpers/createShallowSetState.d.ts +2 -2
- package/types/helpers/createShallowSetState.d.ts.map +1 -1
- package/types/hooks/useThemeState.d.ts.map +1 -1
- package/types/views/Theme.d.ts.map +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useIsomorphicLayoutEffect } from '@tamagui/constants'
|
|
2
2
|
import {
|
|
3
3
|
createContext,
|
|
4
4
|
useCallback,
|
|
@@ -35,6 +35,25 @@ const pendingUpdate = new Map<any, boolean | 'force'>()
|
|
|
35
35
|
|
|
36
36
|
// TODO this will gain memory over time but its not going to be a ton
|
|
37
37
|
const states: Map<ID, ThemeState | undefined> = new Map()
|
|
38
|
+
const localStates: Map<ID, ThemeState | undefined> = new Map()
|
|
39
|
+
|
|
40
|
+
if (process.env.NODE_ENV === 'development') {
|
|
41
|
+
globalThis.getTamaguiThemes = () => {
|
|
42
|
+
function buildTree(id: ID) {
|
|
43
|
+
const node = states.get(id)
|
|
44
|
+
if (!node) return null
|
|
45
|
+
const children = Array.from(states.values())
|
|
46
|
+
.filter((child) => child?.parentId === id)
|
|
47
|
+
.map((child) => buildTree(child!.id))
|
|
48
|
+
.filter(Boolean)
|
|
49
|
+
return { ...node, children }
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
if (rootThemeState) {
|
|
53
|
+
console.info(buildTree(rootThemeState.id))
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
38
57
|
|
|
39
58
|
let shouldForce = false
|
|
40
59
|
export const forceUpdateThemes = () => {
|
|
@@ -45,7 +64,7 @@ export const forceUpdateThemes = () => {
|
|
|
45
64
|
|
|
46
65
|
export const getThemeState = (id: ID) => states.get(id)
|
|
47
66
|
|
|
48
|
-
const cache = new Map<string, ThemeState>()
|
|
67
|
+
// const cache = new Map<string, ThemeState>()
|
|
49
68
|
let cacheVersion = 0
|
|
50
69
|
|
|
51
70
|
let themes: Record<string, ThemeParsed> | null = null
|
|
@@ -61,6 +80,10 @@ export const useThemeState = (
|
|
|
61
80
|
const { disable } = props
|
|
62
81
|
const parentId = useContext(ThemeStateContext)
|
|
63
82
|
|
|
83
|
+
if (!parentId && !isRoot) {
|
|
84
|
+
throw new Error(`No parent?`)
|
|
85
|
+
}
|
|
86
|
+
|
|
64
87
|
if (disable) {
|
|
65
88
|
return (
|
|
66
89
|
states.get(parentId) || {
|
|
@@ -85,6 +108,9 @@ export const useThemeState = (
|
|
|
85
108
|
return () => {
|
|
86
109
|
allListeners.delete(id)
|
|
87
110
|
listenersByParent[parentId].delete(id)
|
|
111
|
+
localStates.delete(id)
|
|
112
|
+
states.delete(id)
|
|
113
|
+
pendingUpdate.delete(id)
|
|
88
114
|
}
|
|
89
115
|
},
|
|
90
116
|
[id, parentId]
|
|
@@ -93,9 +119,10 @@ export const useThemeState = (
|
|
|
93
119
|
const propsKey = getPropsKey(props)
|
|
94
120
|
|
|
95
121
|
const getSnapshot = () => {
|
|
96
|
-
|
|
122
|
+
let local = localStates.get(id)
|
|
123
|
+
|
|
97
124
|
const needsUpdate =
|
|
98
|
-
props.name === 'light' || props.name === 'dark'
|
|
125
|
+
isRoot || props.name === 'light' || props.name === 'dark' || props.name === null
|
|
99
126
|
? true
|
|
100
127
|
: !hasRenderedOnce.get(keys)
|
|
101
128
|
? true
|
|
@@ -103,17 +130,16 @@ export const useThemeState = (
|
|
|
103
130
|
? true
|
|
104
131
|
: props.needsUpdate?.()
|
|
105
132
|
|
|
106
|
-
const parentState = states.get(parentId)
|
|
107
|
-
const cacheKey = `${cacheVersion}${id}${propsKey}${parentState?.name || ''}${isRoot}`
|
|
133
|
+
// const parentState = states.get(parentId)
|
|
134
|
+
// const cacheKey = `${cacheVersion}${id}${propsKey}${parentState?.name || ''}${isRoot}`
|
|
135
|
+
// if (!needsUpdate) {
|
|
136
|
+
// if (cache.has(cacheKey)) {
|
|
137
|
+
// return cache.get(cacheKey)!
|
|
138
|
+
// }
|
|
139
|
+
// }
|
|
108
140
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
return cache.get(cacheKey)!
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
const next = getSnapshotFrom(
|
|
116
|
-
last,
|
|
141
|
+
const [rerender, next] = getNextState(
|
|
142
|
+
local,
|
|
117
143
|
props,
|
|
118
144
|
propsKey,
|
|
119
145
|
isRoot,
|
|
@@ -123,20 +149,32 @@ export const useThemeState = (
|
|
|
123
149
|
pendingUpdate.get(id)
|
|
124
150
|
)
|
|
125
151
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
)
|
|
135
|
-
console.warn(` · useTheme(${id}) UPDATE from`, last, 'to', next)
|
|
136
|
-
}
|
|
152
|
+
pendingUpdate.delete(id)
|
|
153
|
+
|
|
154
|
+
// we always create a new localState for every component
|
|
155
|
+
// that way we can use it to de-opt and avoid renders granularly
|
|
156
|
+
// we always return the localState object in each component
|
|
157
|
+
// the global state (states) should always be up to date with the latest
|
|
158
|
+
if (!local || rerender) {
|
|
159
|
+
local = { ...next }
|
|
160
|
+
localStates.set(id, local)
|
|
137
161
|
}
|
|
138
162
|
|
|
139
|
-
|
|
163
|
+
if (
|
|
164
|
+
process.env.NODE_ENV === 'development' &&
|
|
165
|
+
props.debug &&
|
|
166
|
+
props.debug !== 'profile'
|
|
167
|
+
) {
|
|
168
|
+
console.groupCollapsed(` ${id} 🪄 ${rerender}`, local.name, '>', next.name)
|
|
169
|
+
console.info({ props, propsKey, isRoot, parentId, local, next, needsUpdate })
|
|
170
|
+
console.groupEnd()
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
Object.assign(local, next)
|
|
174
|
+
local.id = id
|
|
175
|
+
states.set(id, next)
|
|
176
|
+
|
|
177
|
+
return local
|
|
140
178
|
}
|
|
141
179
|
|
|
142
180
|
if (process.env.NODE_ENV === 'development' && globalThis.time)
|
|
@@ -160,10 +198,10 @@ export const useThemeState = (
|
|
|
160
198
|
scheduleUpdate(id)
|
|
161
199
|
}, [keys, propsKey])
|
|
162
200
|
|
|
163
|
-
return state
|
|
201
|
+
return state
|
|
164
202
|
}
|
|
165
203
|
|
|
166
|
-
const
|
|
204
|
+
const getNextState = (
|
|
167
205
|
lastState: ThemeState | undefined,
|
|
168
206
|
props: UseThemeWithStateProps,
|
|
169
207
|
propsKey: string,
|
|
@@ -172,7 +210,7 @@ const getSnapshotFrom = (
|
|
|
172
210
|
parentId: string,
|
|
173
211
|
needsUpdate: boolean | undefined,
|
|
174
212
|
pendingUpdate: boolean | 'force' | undefined
|
|
175
|
-
): ThemeState => {
|
|
213
|
+
): [boolean, ThemeState] => {
|
|
176
214
|
const { debug } = props
|
|
177
215
|
const parentState = states.get(parentId)
|
|
178
216
|
|
|
@@ -181,7 +219,7 @@ const getSnapshotFrom = (
|
|
|
181
219
|
}
|
|
182
220
|
|
|
183
221
|
const name =
|
|
184
|
-
!propsKey &&
|
|
222
|
+
!propsKey && (!lastState || !lastState?.isNew)
|
|
185
223
|
? null
|
|
186
224
|
: getNewThemeName(
|
|
187
225
|
parentState?.name,
|
|
@@ -189,10 +227,13 @@ const getSnapshotFrom = (
|
|
|
189
227
|
pendingUpdate === 'force' ? true : !!needsUpdate
|
|
190
228
|
)
|
|
191
229
|
|
|
192
|
-
const isSameAsParent =
|
|
230
|
+
const isSameAsParent = parentState && (!name || name === parentState.name)
|
|
231
|
+
const shouldRerender = Boolean(
|
|
232
|
+
needsUpdate && (pendingUpdate || lastState?.name !== parentState?.name)
|
|
233
|
+
)
|
|
193
234
|
|
|
194
235
|
if (process.env.NODE_ENV === 'development' && debug && debug !== 'profile') {
|
|
195
|
-
const message = ` · useTheme(${id})
|
|
236
|
+
const message = ` · useTheme(${id}) => ${name} needsUpdate ${needsUpdate} shouldRerender ${shouldRerender}`
|
|
196
237
|
if (process.env.TAMAGUI_TARGET === 'native') {
|
|
197
238
|
console.info(message)
|
|
198
239
|
} else {
|
|
@@ -202,8 +243,8 @@ const getSnapshotFrom = (
|
|
|
202
243
|
}
|
|
203
244
|
}
|
|
204
245
|
|
|
205
|
-
if (
|
|
206
|
-
return parentState
|
|
246
|
+
if (isSameAsParent) {
|
|
247
|
+
return [shouldRerender, { ...parentState, isNew: false }]
|
|
207
248
|
}
|
|
208
249
|
|
|
209
250
|
if (!name) {
|
|
@@ -213,16 +254,12 @@ const getSnapshotFrom = (
|
|
|
213
254
|
throw new Error(`No theme and no parent?`)
|
|
214
255
|
}
|
|
215
256
|
|
|
216
|
-
if (
|
|
257
|
+
if (shouldRerender) {
|
|
217
258
|
const updated = { ...(parentState || lastState)! }
|
|
218
|
-
return updated
|
|
259
|
+
return [true, updated]
|
|
219
260
|
}
|
|
220
261
|
|
|
221
|
-
return next
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
if (pendingUpdate !== 'force' && lastState && lastState.name === name) {
|
|
225
|
-
return lastState
|
|
262
|
+
return [false, next]
|
|
226
263
|
}
|
|
227
264
|
|
|
228
265
|
const scheme = getScheme(name)
|
|
@@ -239,12 +276,17 @@ const getSnapshotFrom = (
|
|
|
239
276
|
parentName: parentState?.name,
|
|
240
277
|
inverses,
|
|
241
278
|
isInverse,
|
|
279
|
+
isNew: true,
|
|
242
280
|
} satisfies ThemeState
|
|
243
281
|
|
|
244
282
|
if (isRoot) {
|
|
245
283
|
rootThemeState = nextState
|
|
246
284
|
}
|
|
247
285
|
|
|
286
|
+
if (pendingUpdate !== 'force' && lastState && lastState.name === name) {
|
|
287
|
+
return [false, nextState]
|
|
288
|
+
}
|
|
289
|
+
|
|
248
290
|
const shouldAvoidRerender =
|
|
249
291
|
pendingUpdate !== 'force' &&
|
|
250
292
|
lastState &&
|
|
@@ -262,13 +304,14 @@ const getSnapshotFrom = (
|
|
|
262
304
|
// we still update the state (not changing identity), that way children can properly resolve the right state
|
|
263
305
|
// but this one wont trigger an update
|
|
264
306
|
if (shouldAvoidRerender) {
|
|
265
|
-
|
|
266
|
-
return lastState
|
|
307
|
+
return [false, nextState]
|
|
267
308
|
}
|
|
268
309
|
|
|
269
|
-
return nextState
|
|
310
|
+
return [true, nextState]
|
|
270
311
|
}
|
|
271
312
|
|
|
313
|
+
const regexParentScheme = /^(light|dark)_/
|
|
314
|
+
|
|
272
315
|
function scheduleUpdate(id: string) {
|
|
273
316
|
const queue = [id]
|
|
274
317
|
const visited = new Set<string>()
|
package/src/views/Theme.tsx
CHANGED
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import { isWeb } from '@tamagui/constants'
|
|
2
2
|
import type { MutableRefObject } from 'react'
|
|
3
|
-
import React, {
|
|
4
|
-
Children,
|
|
5
|
-
cloneElement,
|
|
6
|
-
forwardRef,
|
|
7
|
-
isValidElement,
|
|
8
|
-
useEffect,
|
|
9
|
-
useRef,
|
|
10
|
-
} from 'react'
|
|
3
|
+
import React, { Children, cloneElement, forwardRef, isValidElement, useRef } from 'react'
|
|
11
4
|
import { getSetting } from '../config'
|
|
12
5
|
import { variableToString } from '../createVariable'
|
|
13
6
|
import { useThemeWithState } from '../hooks/useTheme'
|
|
@@ -29,6 +22,7 @@ export const Theme = forwardRef(function Theme(props: ThemeProps, ref) {
|
|
|
29
22
|
}
|
|
30
23
|
|
|
31
24
|
const isRoot = !!props['_isRoot']
|
|
25
|
+
|
|
32
26
|
const [_, themeState] = useThemeWithState(props, isRoot)
|
|
33
27
|
|
|
34
28
|
const disableDirectChildTheme = props['disable-child-theme']
|
|
@@ -74,12 +68,19 @@ export function getThemedChildren(
|
|
|
74
68
|
let shouldRenderChildrenWithTheme =
|
|
75
69
|
hasEverThemed || themeState.isNew || isRoot || hasThemeUpdatingProps(props)
|
|
76
70
|
|
|
71
|
+
if (process.env.NODE_ENV === 'development' && props.debug) {
|
|
72
|
+
children = (
|
|
73
|
+
<ThemeDebug themeState={themeState} themeProps={props}>
|
|
74
|
+
{children}
|
|
75
|
+
</ThemeDebug>
|
|
76
|
+
)
|
|
77
|
+
}
|
|
78
|
+
|
|
77
79
|
if (!shouldRenderChildrenWithTheme) {
|
|
78
80
|
return children
|
|
79
81
|
}
|
|
80
82
|
|
|
81
83
|
// from here on out we have to be careful not to re-parent
|
|
82
|
-
|
|
83
84
|
children = (
|
|
84
85
|
<ThemeStateContext.Provider value={themeState.id}>
|
|
85
86
|
{children}
|
|
@@ -133,11 +134,6 @@ export function getThemedChildren(
|
|
|
133
134
|
state,
|
|
134
135
|
...getThemeClassNameAndStyle(themeState, props, isRoot),
|
|
135
136
|
})
|
|
136
|
-
children = (
|
|
137
|
-
<ThemeDebug themeState={themeState} themeProps={props}>
|
|
138
|
-
{children}
|
|
139
|
-
</ThemeDebug>
|
|
140
|
-
)
|
|
141
137
|
}
|
|
142
138
|
}
|
|
143
139
|
|
|
@@ -149,7 +145,13 @@ export function getThemedChildren(
|
|
|
149
145
|
const { className, style } = getThemeClassNameAndStyle(themeState, props, isRoot)
|
|
150
146
|
|
|
151
147
|
children = (
|
|
152
|
-
<span
|
|
148
|
+
<span
|
|
149
|
+
{...(process.env.NODE_ENV === 'development' && {
|
|
150
|
+
'data-theme-id': themeState.id,
|
|
151
|
+
})}
|
|
152
|
+
className={`${className} _dsp_contents is_Theme`}
|
|
153
|
+
style={style}
|
|
154
|
+
>
|
|
153
155
|
{children}
|
|
154
156
|
</span>
|
|
155
157
|
)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import type { DebugProp } from '../types';
|
|
3
|
-
export declare function createShallowSetState<State extends Object>(setter: React.Dispatch<React.SetStateAction<State>>,
|
|
4
|
-
export declare function mergeIfNotShallowEqual(prev: any, next: any,
|
|
3
|
+
export declare function createShallowSetState<State extends Object>(setter: React.Dispatch<React.SetStateAction<State>>, onlyAllow?: string[], transition?: boolean, debug?: DebugProp, callback?: (nextState: any) => void): (next?: Partial<State>) => void;
|
|
4
|
+
export declare function mergeIfNotShallowEqual(prev: any, next: any, onlyAllow?: string[], debug?: DebugProp): any;
|
|
5
5
|
export declare function isEqualShallow(prev: any, next: any): boolean;
|
|
6
6
|
//# sourceMappingURL=createShallowSetState.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createShallowSetState.d.ts","sourceRoot":"","sources":["../../src/helpers/createShallowSetState.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAKzC,wBAAgB,qBAAqB,CAAC,KAAK,SAAS,MAAM,EACxD,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,EACnD,
|
|
1
|
+
{"version":3,"file":"createShallowSetState.d.ts","sourceRoot":"","sources":["../../src/helpers/createShallowSetState.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAKzC,wBAAgB,qBAAqB,CAAC,KAAK,SAAS,MAAM,EACxD,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,EACnD,SAAS,CAAC,EAAE,MAAM,EAAE,EACpB,UAAU,CAAC,EAAE,OAAO,EACpB,KAAK,CAAC,EAAE,SAAS,EACjB,QAAQ,CAAC,EAAE,CAAC,SAAS,EAAE,GAAG,KAAK,IAAI,WAIzB,OAAO,CAAC,KAAK,CAAC,UAYzB;AAED,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,GAAG,EACT,IAAI,EAAE,GAAG,EACT,SAAS,CAAC,EAAE,MAAM,EAAE,EACpB,KAAK,CAAC,EAAE,SAAS,OAyBlB;AAED,wBAAgB,cAAc,CAAC,IAAI,KAAA,EAAE,IAAI,KAAA,WAOxC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useThemeState.d.ts","sourceRoot":"","sources":["../../src/hooks/useThemeState.ts"],"names":[],"mappings":"AACA,OAAO,EAML,KAAK,gBAAgB,EACtB,MAAM,OAAO,CAAA;AAEd,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAA;AAE/E,KAAK,EAAE,GAAG,MAAM,CAAA;AAEhB,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,EAAE,CAAA;IACN,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,WAAW,CAAA;IAClB,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,QAAQ,CAAC,EAAE,EAAE,CAAA;IACb,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,iBAAiB,iCAAwB,CAAA;AAEtD,eAAO,MAAM,QAAQ,uBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"useThemeState.d.ts","sourceRoot":"","sources":["../../src/hooks/useThemeState.ts"],"names":[],"mappings":"AACA,OAAO,EAML,KAAK,gBAAgB,EACtB,MAAM,OAAO,CAAA;AAEd,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAA;AAE/E,KAAK,EAAE,GAAG,MAAM,CAAA;AAEhB,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,EAAE,CAAA;IACN,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,WAAW,CAAA;IAClB,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,QAAQ,CAAC,EAAE,EAAE,CAAA;IACb,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,iBAAiB,iCAAwB,CAAA;AAEtD,eAAO,MAAM,QAAQ,uBAAgB,CAAA;AA8BrC,eAAO,MAAM,iBAAiB,YAI7B,CAAA;AAED,eAAO,MAAM,aAAa,OAAQ,EAAE,2BAAmB,CAAA;AAQvD,eAAO,MAAM,iBAAiB,yBAAuB,CAAA;AAErD,eAAO,MAAM,aAAa,UACjB,sBAAsB,qCAEvB,gBAAgB,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,KACzC,UA2HF,CAAA;AAkOD,eAAO,MAAM,qBAAqB,UAAW,UAAU,YACiC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Theme.d.ts","sourceRoot":"","sources":["../../src/views/Theme.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAA;AAC7C,OAAO,
|
|
1
|
+
{"version":3,"file":"Theme.d.ts","sourceRoot":"","sources":["../../src/views/Theme.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAA;AAC7C,OAAO,KAAqE,MAAM,OAAO,CAAA;AAIzF,OAAO,EAIL,KAAK,UAAU,EAChB,MAAM,wBAAwB,CAAA;AAC/B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAK1C,eAAO,MAAM,KAAK,4EAiChB,CAAA;AAIF,wBAAgB,iBAAiB,CAC/B,UAAU,EAAE,UAAU,EACtB,QAAQ,EAAE,GAAG,EACb,KAAK,EAAE,UAAU,EACjB,MAAM,qBAAQ,EACd,QAAQ,EAAE,gBAAgB,CAAC;IAAE,aAAa,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAAE,CAAC,OAwHpE"}
|