tfy-web-components 0.0.9 → 0.0.10
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/..d.ts +1 -31
- package/dist/components/atoms/Button.es.js +1 -9
- package/dist/components/atoms/Button.es.js.map +1 -1
- package/dist/components/atoms/IconButton.es.js +1 -10
- package/dist/components/atoms/IconButton.es.js.map +1 -1
- package/dist/components/atoms/IconProvider.es.js +5 -43
- package/dist/components/atoms/IconProvider.es.js.map +1 -1
- package/dist/components/atoms/Spinner.es.js +1 -3
- package/dist/components/atoms/Spinner.es.js.map +1 -1
- package/dist/components/atoms/Tooltip.d.ts +3 -5
- package/dist/components/atoms/Tooltip.es.js +1 -3
- package/dist/components/atoms/Tooltip.es.js.map +1 -1
- package/dist/components/atoms/stories/Button.stories.d.ts +25 -0
- package/dist/components/molecules/CustomDrawer.es.js +1 -3
- package/dist/components/molecules/CustomDrawer.es.js.map +1 -1
- package/dist/components/theme/backgroundImage.d.ts +0 -1
- package/dist/components/theme/backgroundImage.es.js +1 -4
- package/dist/components/theme/backgroundImage.es.js.map +1 -1
- package/dist/components/theme/colors.d.ts +4 -133
- package/dist/components/theme/colors.es.js +9 -140
- package/dist/components/theme/colors.es.js.map +1 -1
- package/dist/components/theme/index.d.ts +59 -1
- package/dist/components/theme/index.es.js +2 -0
- package/dist/components/theme/index.es.js.map +1 -1
- package/dist/components/theme/utils.d.ts +59 -1
- package/dist/components/theme/utils.es.js +1 -754
- package/dist/components/theme/utils.es.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.es.js +0 -6
- package/dist/index.es.js.map +1 -1
- package/dist/node_modules/lodash-es/_Hash.es.js +22 -0
- package/dist/node_modules/lodash-es/_Hash.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_ListCache.es.js +22 -0
- package/dist/node_modules/lodash-es/_ListCache.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_Map.es.js +8 -0
- package/dist/node_modules/lodash-es/_Map.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_MapCache.es.js +22 -0
- package/dist/node_modules/lodash-es/_MapCache.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_Stack.es.js +19 -0
- package/dist/node_modules/lodash-es/_Stack.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_Symbol.es.js +7 -0
- package/dist/node_modules/lodash-es/_Symbol.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_Uint8Array.es.js +7 -0
- package/dist/node_modules/lodash-es/_Uint8Array.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_apply.es.js +17 -0
- package/dist/node_modules/lodash-es/_apply.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_arrayLikeKeys.es.js +25 -0
- package/dist/node_modules/lodash-es/_arrayLikeKeys.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_assignMergeValue.es.js +11 -0
- package/dist/node_modules/lodash-es/_assignMergeValue.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_assignValue.es.js +14 -0
- package/dist/node_modules/lodash-es/_assignValue.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_assocIndexOf.es.js +14 -0
- package/dist/node_modules/lodash-es/_assocIndexOf.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_baseAssignValue.es.js +17 -0
- package/dist/node_modules/lodash-es/_baseAssignValue.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_baseCreate.es.js +23 -0
- package/dist/node_modules/lodash-es/_baseCreate.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_baseFor.es.js +7 -0
- package/dist/node_modules/lodash-es/_baseFor.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_baseGetTag.es.js +15 -0
- package/dist/node_modules/lodash-es/_baseGetTag.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_baseIsArguments.es.js +10 -0
- package/dist/node_modules/lodash-es/_baseIsArguments.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_baseIsNative.es.js +23 -0
- package/dist/node_modules/lodash-es/_baseIsNative.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_baseIsTypedArray.es.js +15 -0
- package/dist/node_modules/lodash-es/_baseIsTypedArray.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_baseKeysIn.es.js +21 -0
- package/dist/node_modules/lodash-es/_baseKeysIn.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_baseMerge.es.js +28 -0
- package/dist/node_modules/lodash-es/_baseMerge.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_baseMergeDeep.es.js +62 -0
- package/dist/node_modules/lodash-es/_baseMergeDeep.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_baseRest.es.js +10 -0
- package/dist/node_modules/lodash-es/_baseRest.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_baseSetToString.es.js +16 -0
- package/dist/node_modules/lodash-es/_baseSetToString.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_baseTimes.es.js +11 -0
- package/dist/node_modules/lodash-es/_baseTimes.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_baseUnary.es.js +9 -0
- package/dist/node_modules/lodash-es/_baseUnary.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_cloneArrayBuffer.es.js +10 -0
- package/dist/node_modules/lodash-es/_cloneArrayBuffer.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_cloneBuffer.es.js +17 -0
- package/dist/node_modules/lodash-es/_cloneBuffer.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_cloneTypedArray.es.js +9 -0
- package/dist/node_modules/lodash-es/_cloneTypedArray.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_copyArray.es.js +12 -0
- package/dist/node_modules/lodash-es/_copyArray.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_copyObject.es.js +24 -0
- package/dist/node_modules/lodash-es/_copyObject.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_coreJsData.es.js +7 -0
- package/dist/node_modules/lodash-es/_coreJsData.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_createAssigner.es.js +24 -0
- package/dist/node_modules/lodash-es/_createAssigner.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_createBaseFor.es.js +16 -0
- package/dist/node_modules/lodash-es/_createBaseFor.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_defineProperty.es.js +14 -0
- package/dist/node_modules/lodash-es/_defineProperty.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_freeGlobal.es.js +6 -0
- package/dist/node_modules/lodash-es/_freeGlobal.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_getMapData.es.js +9 -0
- package/dist/node_modules/lodash-es/_getMapData.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_getNative.es.js +10 -0
- package/dist/node_modules/lodash-es/_getNative.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_getPrototype.es.js +7 -0
- package/dist/node_modules/lodash-es/_getPrototype.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_getRawTag.es.js +26 -0
- package/dist/node_modules/lodash-es/_getRawTag.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_getValue.es.js +7 -0
- package/dist/node_modules/lodash-es/_getValue.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_hashClear.es.js +9 -0
- package/dist/node_modules/lodash-es/_hashClear.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_hashDelete.es.js +9 -0
- package/dist/node_modules/lodash-es/_hashDelete.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_hashGet.es.js +16 -0
- package/dist/node_modules/lodash-es/_hashGet.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_hashHas.es.js +11 -0
- package/dist/node_modules/lodash-es/_hashHas.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_hashSet.es.js +12 -0
- package/dist/node_modules/lodash-es/_hashSet.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_initCloneObject.es.js +10 -0
- package/dist/node_modules/lodash-es/_initCloneObject.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_isIndex.es.js +11 -0
- package/dist/node_modules/lodash-es/_isIndex.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_isIterateeCall.es.js +18 -0
- package/dist/node_modules/lodash-es/_isIterateeCall.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_isKeyable.es.js +8 -0
- package/dist/node_modules/lodash-es/_isKeyable.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_isMasked.es.js +12 -0
- package/dist/node_modules/lodash-es/_isMasked.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_isPrototype.es.js +9 -0
- package/dist/node_modules/lodash-es/_isPrototype.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_listCacheClear.es.js +8 -0
- package/dist/node_modules/lodash-es/_listCacheClear.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_listCacheDelete.es.js +21 -0
- package/dist/node_modules/lodash-es/_listCacheDelete.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_listCacheGet.es.js +9 -0
- package/dist/node_modules/lodash-es/_listCacheGet.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_listCacheHas.es.js +8 -0
- package/dist/node_modules/lodash-es/_listCacheHas.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_listCacheSet.es.js +15 -0
- package/dist/node_modules/lodash-es/_listCacheSet.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_mapCacheClear.es.js +15 -0
- package/dist/node_modules/lodash-es/_mapCacheClear.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_mapCacheDelete.es.js +10 -0
- package/dist/node_modules/lodash-es/_mapCacheDelete.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_mapCacheGet.es.js +8 -0
- package/dist/node_modules/lodash-es/_mapCacheGet.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_mapCacheHas.es.js +8 -0
- package/dist/node_modules/lodash-es/_mapCacheHas.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_mapCacheSet.es.js +11 -0
- package/dist/node_modules/lodash-es/_mapCacheSet.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_nativeCreate.es.js +7 -0
- package/dist/node_modules/lodash-es/_nativeCreate.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_nativeKeysIn.es.js +13 -0
- package/dist/node_modules/lodash-es/_nativeKeysIn.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_nodeUtil.es.js +20 -0
- package/dist/node_modules/lodash-es/_nodeUtil.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_objectToString.es.js +9 -0
- package/dist/node_modules/lodash-es/_objectToString.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_overArg.es.js +9 -0
- package/dist/node_modules/lodash-es/_overArg.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_overRest.es.js +22 -0
- package/dist/node_modules/lodash-es/_overRest.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_root.es.js +8 -0
- package/dist/node_modules/lodash-es/_root.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_safeGet.es.js +13 -0
- package/dist/node_modules/lodash-es/_safeGet.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_setToString.es.js +8 -0
- package/dist/node_modules/lodash-es/_setToString.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_shortOut.es.js +21 -0
- package/dist/node_modules/lodash-es/_shortOut.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_stackClear.es.js +9 -0
- package/dist/node_modules/lodash-es/_stackClear.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_stackDelete.es.js +9 -0
- package/dist/node_modules/lodash-es/_stackDelete.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_stackGet.es.js +7 -0
- package/dist/node_modules/lodash-es/_stackGet.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_stackHas.es.js +7 -0
- package/dist/node_modules/lodash-es/_stackHas.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_stackSet.es.js +23 -0
- package/dist/node_modules/lodash-es/_stackSet.es.js.map +1 -0
- package/dist/node_modules/lodash-es/_toSource.es.js +19 -0
- package/dist/node_modules/lodash-es/_toSource.es.js.map +1 -0
- package/dist/node_modules/lodash-es/constant.es.js +9 -0
- package/dist/node_modules/lodash-es/constant.es.js.map +1 -0
- package/dist/node_modules/lodash-es/eq.es.js +7 -0
- package/dist/node_modules/lodash-es/eq.es.js.map +1 -0
- package/dist/node_modules/lodash-es/identity.es.js +7 -0
- package/dist/node_modules/lodash-es/identity.es.js.map +1 -0
- package/dist/node_modules/lodash-es/isArguments.es.js +15 -0
- package/dist/node_modules/lodash-es/isArguments.es.js.map +1 -0
- package/dist/node_modules/lodash-es/isArray.es.js +6 -0
- package/dist/node_modules/lodash-es/isArray.es.js.map +1 -0
- package/dist/node_modules/lodash-es/isArrayLike.es.js +9 -0
- package/dist/node_modules/lodash-es/isArrayLike.es.js.map +1 -0
- package/dist/node_modules/lodash-es/isArrayLikeObject.es.js +9 -0
- package/dist/node_modules/lodash-es/isArrayLikeObject.es.js.map +1 -0
- package/dist/node_modules/lodash-es/isBuffer.es.js +13 -0
- package/dist/node_modules/lodash-es/isBuffer.es.js.map +1 -0
- package/dist/node_modules/lodash-es/isFunction.es.js +14 -0
- package/dist/node_modules/lodash-es/isFunction.es.js.map +1 -0
- package/dist/node_modules/lodash-es/isLength.es.js +8 -0
- package/dist/node_modules/lodash-es/isLength.es.js.map +1 -0
- package/dist/node_modules/lodash-es/isObject.es.js +8 -0
- package/dist/node_modules/lodash-es/isObject.es.js.map +1 -0
- package/dist/node_modules/lodash-es/isObjectLike.es.js +7 -0
- package/dist/node_modules/lodash-es/isObjectLike.es.js.map +1 -0
- package/dist/node_modules/lodash-es/isPlainObject.es.js +23 -0
- package/dist/node_modules/lodash-es/isPlainObject.es.js.map +1 -0
- package/dist/node_modules/lodash-es/isTypedArray.es.js +10 -0
- package/dist/node_modules/lodash-es/isTypedArray.es.js.map +1 -0
- package/dist/node_modules/lodash-es/keysIn.es.js +10 -0
- package/dist/node_modules/lodash-es/keysIn.es.js.map +1 -0
- package/dist/node_modules/lodash-es/merge.es.js +10 -0
- package/dist/node_modules/lodash-es/merge.es.js.map +1 -0
- package/dist/node_modules/lodash-es/stubFalse.es.js +7 -0
- package/dist/node_modules/lodash-es/stubFalse.es.js.map +1 -0
- package/dist/node_modules/lodash-es/toPlainObject.es.js +9 -0
- package/dist/node_modules/lodash-es/toPlainObject.es.js.map +1 -0
- package/dist/{classNames-f3c6f58e.js → src/utils/classNames.es.js} +2 -2
- package/dist/{classNames-f3c6f58e.js.map → src/utils/classNames.es.js.map} +1 -1
- package/dist/utils/classNames.d.ts +2 -0
- package/package.json +1 -1
- package/dist/Button.d.ts +0 -62
- package/dist/CustomDrawer.d.ts +0 -30
- package/dist/IconButton.d.ts +0 -15
- package/dist/IconProvider.d.ts +0 -39
- package/dist/Spinner.d.ts +0 -15
- package/dist/Tooltip.d.ts +0 -28
- package/dist/animation.d.ts +0 -6
- package/dist/backgroundColor.d.ts +0 -5
- package/dist/backgroundImage.d.ts +0 -10
- package/dist/borderWidth.d.ts +0 -6
- package/dist/colors.d.ts +0 -191
- package/dist/components/theme/lightColorPlugin.js.d.ts +0 -1
- package/dist/components/theme/lightColorPlugin.js.es.js +0 -91
- package/dist/components/theme/lightColorPlugin.js.es.js.map +0 -1
- package/dist/components/theme/tailwindScrollbar.js.d.ts +0 -1
- package/dist/components/theme/tailwindScrollbar.js.es.js +0 -81
- package/dist/components/theme/tailwindScrollbar.js.es.js.map +0 -1
- package/dist/components/theme/theme.d.ts +0 -23
- package/dist/components/theme/theme.es.js +0 -128
- package/dist/components/theme/theme.es.js.map +0 -1
- package/dist/components/theme/useTheme.d.ts +0 -14
- package/dist/components/theme/useTheme.es.js +0 -40
- package/dist/components/theme/useTheme.es.js.map +0 -1
- package/dist/cursor.d.ts +0 -5
- package/dist/dropShadow.d.ts +0 -5
- package/dist/flexGrow.d.ts +0 -5
- package/dist/fontSize.d.ts +0 -8
- package/dist/height.d.ts +0 -8
- package/dist/keyframes.d.ts +0 -20
- package/dist/lightColorPlugin.js.d.ts +0 -1
- package/dist/maxHeight.d.ts +0 -6
- package/dist/plugin-06dc459f.js +0 -61
- package/dist/plugin-06dc459f.js.map +0 -1
- package/dist/screens.d.ts +0 -8
- package/dist/tailwindScrollbar.js.d.ts +0 -1
- package/dist/theme.d.ts +0 -33
- package/dist/transitionProperty.d.ts +0 -6
- package/dist/useTheme.d.ts +0 -22
- package/dist/utils.d.ts +0 -79
- package/dist/zIndex.d.ts +0 -5
package/dist/animation.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare const backgroundImage: (theme: (path: string) => string | undefined) => {
|
|
2
|
-
'blue-red-gradient': string;
|
|
3
|
-
'white-indigo-gradient': string;
|
|
4
|
-
'chat-template': string;
|
|
5
|
-
'blue-linear-gradient': string;
|
|
6
|
-
'new-deployment-gradient': string;
|
|
7
|
-
'new-deployment-gradient-text': string;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export { }
|
package/dist/borderWidth.d.ts
DELETED
package/dist/colors.d.ts
DELETED
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
export declare const darkPalette: {
|
|
2
|
-
gray: {
|
|
3
|
-
16: string;
|
|
4
|
-
25: string;
|
|
5
|
-
50: string;
|
|
6
|
-
75: string;
|
|
7
|
-
100: string;
|
|
8
|
-
125: string;
|
|
9
|
-
150: string;
|
|
10
|
-
200: string;
|
|
11
|
-
250: string;
|
|
12
|
-
275: string;
|
|
13
|
-
300: string;
|
|
14
|
-
350: string;
|
|
15
|
-
375: string;
|
|
16
|
-
400: string;
|
|
17
|
-
450: string;
|
|
18
|
-
500: string;
|
|
19
|
-
550: string;
|
|
20
|
-
600: string;
|
|
21
|
-
650: string;
|
|
22
|
-
700: string;
|
|
23
|
-
750: string;
|
|
24
|
-
800: string;
|
|
25
|
-
850: string;
|
|
26
|
-
900: string;
|
|
27
|
-
950: string;
|
|
28
|
-
1000: string;
|
|
29
|
-
disabled: string;
|
|
30
|
-
whitesmoke: string;
|
|
31
|
-
};
|
|
32
|
-
indigo: {
|
|
33
|
-
500: string;
|
|
34
|
-
525: string;
|
|
35
|
-
550: string;
|
|
36
|
-
700: string;
|
|
37
|
-
725: string;
|
|
38
|
-
750: string;
|
|
39
|
-
850: string;
|
|
40
|
-
};
|
|
41
|
-
yellow: {
|
|
42
|
-
'50light': string;
|
|
43
|
-
100: string;
|
|
44
|
-
'200dark': string;
|
|
45
|
-
500: string;
|
|
46
|
-
};
|
|
47
|
-
skyblue: string;
|
|
48
|
-
blue: {
|
|
49
|
-
25: string;
|
|
50
|
-
45: string;
|
|
51
|
-
primary: string;
|
|
52
|
-
secondary: string;
|
|
53
|
-
'secondary-light': string;
|
|
54
|
-
purple: string;
|
|
55
|
-
'purple-2': string;
|
|
56
|
-
'purple-3': string;
|
|
57
|
-
100: string;
|
|
58
|
-
150: string;
|
|
59
|
-
200: string;
|
|
60
|
-
350: string;
|
|
61
|
-
375: string;
|
|
62
|
-
500: string;
|
|
63
|
-
550: string;
|
|
64
|
-
'500original': string;
|
|
65
|
-
600: string;
|
|
66
|
-
650: string;
|
|
67
|
-
725: string;
|
|
68
|
-
};
|
|
69
|
-
green: {
|
|
70
|
-
600: string;
|
|
71
|
-
};
|
|
72
|
-
fuchsia: {
|
|
73
|
-
100: string;
|
|
74
|
-
500: string;
|
|
75
|
-
};
|
|
76
|
-
violet: {
|
|
77
|
-
500: string;
|
|
78
|
-
};
|
|
79
|
-
red: {
|
|
80
|
-
500: string;
|
|
81
|
-
650: string;
|
|
82
|
-
50: string;
|
|
83
|
-
};
|
|
84
|
-
orange: {
|
|
85
|
-
100: string;
|
|
86
|
-
650: string;
|
|
87
|
-
};
|
|
88
|
-
amber: {
|
|
89
|
-
450: string;
|
|
90
|
-
};
|
|
91
|
-
white: string;
|
|
92
|
-
black: string;
|
|
93
|
-
background: string;
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
export declare const lightPalette: {
|
|
97
|
-
gray: {
|
|
98
|
-
16: string;
|
|
99
|
-
25: string;
|
|
100
|
-
50: string;
|
|
101
|
-
75: string;
|
|
102
|
-
100: string;
|
|
103
|
-
125: string;
|
|
104
|
-
150: string;
|
|
105
|
-
200: string;
|
|
106
|
-
250: string;
|
|
107
|
-
275: string;
|
|
108
|
-
300: string;
|
|
109
|
-
350: string;
|
|
110
|
-
375: string;
|
|
111
|
-
400: string;
|
|
112
|
-
450: string;
|
|
113
|
-
500: string;
|
|
114
|
-
550: string;
|
|
115
|
-
600: string;
|
|
116
|
-
650: string;
|
|
117
|
-
700: string;
|
|
118
|
-
750: string;
|
|
119
|
-
800: string;
|
|
120
|
-
850: string;
|
|
121
|
-
900: string;
|
|
122
|
-
950: string;
|
|
123
|
-
1000: string;
|
|
124
|
-
disabled: string;
|
|
125
|
-
whitesmoke: string;
|
|
126
|
-
};
|
|
127
|
-
indigo: {
|
|
128
|
-
500: string;
|
|
129
|
-
525: string;
|
|
130
|
-
550: string;
|
|
131
|
-
700: string;
|
|
132
|
-
725: string;
|
|
133
|
-
750: string;
|
|
134
|
-
850: string;
|
|
135
|
-
};
|
|
136
|
-
yellow: {
|
|
137
|
-
'50light': string;
|
|
138
|
-
100: string;
|
|
139
|
-
'200dark': string;
|
|
140
|
-
500: string;
|
|
141
|
-
};
|
|
142
|
-
skyblue: string;
|
|
143
|
-
blue: {
|
|
144
|
-
25: string;
|
|
145
|
-
45: string;
|
|
146
|
-
primary: string;
|
|
147
|
-
secondary: string;
|
|
148
|
-
'secondary-light': string;
|
|
149
|
-
purple: string;
|
|
150
|
-
'purple-2': string;
|
|
151
|
-
'purple-3': string;
|
|
152
|
-
100: string;
|
|
153
|
-
150: string;
|
|
154
|
-
200: string;
|
|
155
|
-
350: string;
|
|
156
|
-
375: string;
|
|
157
|
-
500: string;
|
|
158
|
-
550: string;
|
|
159
|
-
'500original': string;
|
|
160
|
-
600: string;
|
|
161
|
-
650: string;
|
|
162
|
-
725: string;
|
|
163
|
-
};
|
|
164
|
-
green: {
|
|
165
|
-
600: string;
|
|
166
|
-
};
|
|
167
|
-
fuchsia: {
|
|
168
|
-
100: string;
|
|
169
|
-
500: string;
|
|
170
|
-
};
|
|
171
|
-
violet: {
|
|
172
|
-
500: string;
|
|
173
|
-
};
|
|
174
|
-
red: {
|
|
175
|
-
500: string;
|
|
176
|
-
650: string;
|
|
177
|
-
50: string;
|
|
178
|
-
};
|
|
179
|
-
orange: {
|
|
180
|
-
100: string;
|
|
181
|
-
650: string;
|
|
182
|
-
};
|
|
183
|
-
amber: {
|
|
184
|
-
450: string;
|
|
185
|
-
};
|
|
186
|
-
white: string;
|
|
187
|
-
black: string;
|
|
188
|
-
background: string;
|
|
189
|
-
};
|
|
190
|
-
|
|
191
|
-
export { }
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './lightColorPlugin.js'
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { p as plugin } from "../../plugin-06dc459f.js";
|
|
2
|
-
import { lightPalette } from "./colors.es.js";
|
|
3
|
-
function flattenColors(colors, prefix = "") {
|
|
4
|
-
const result = {};
|
|
5
|
-
for (const [key, value] of Object.entries(colors)) {
|
|
6
|
-
const newKey = prefix ? `${prefix}-${key}` : key;
|
|
7
|
-
if (typeof value === "string") {
|
|
8
|
-
result[newKey] = value;
|
|
9
|
-
} else if (typeof value === "object" && value !== null) {
|
|
10
|
-
Object.assign(result, flattenColors(value, newKey));
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
return result;
|
|
14
|
-
}
|
|
15
|
-
function generateColorUtilities(property, prefix, colors) {
|
|
16
|
-
const utilities = {};
|
|
17
|
-
for (const [colorKey, colorValue] of Object.entries(colors)) {
|
|
18
|
-
utilities[`.${prefix}-light-${colorKey}`] = {
|
|
19
|
-
[property]: colorValue
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
return utilities;
|
|
23
|
-
}
|
|
24
|
-
function generateBorderUtilities(colors) {
|
|
25
|
-
const utilities = {};
|
|
26
|
-
Object.assign(utilities, generateColorUtilities("border-color", "border", colors));
|
|
27
|
-
const directions = {
|
|
28
|
-
t: "border-top-color",
|
|
29
|
-
r: "border-right-color",
|
|
30
|
-
b: "border-bottom-color",
|
|
31
|
-
l: "border-left-color",
|
|
32
|
-
x: ["border-left-color", "border-right-color"],
|
|
33
|
-
y: ["border-top-color", "border-bottom-color"]
|
|
34
|
-
};
|
|
35
|
-
for (const [dirKey, properties] of Object.entries(directions)) {
|
|
36
|
-
for (const [colorKey, colorValue] of Object.entries(colors)) {
|
|
37
|
-
const className = `.border-${dirKey}-light-${colorKey}`;
|
|
38
|
-
if (Array.isArray(properties)) {
|
|
39
|
-
utilities[className] = {};
|
|
40
|
-
properties.forEach((prop) => {
|
|
41
|
-
utilities[className][prop] = colorValue;
|
|
42
|
-
});
|
|
43
|
-
} else {
|
|
44
|
-
utilities[className] = {
|
|
45
|
-
[properties]: colorValue
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
return utilities;
|
|
51
|
-
}
|
|
52
|
-
function generateDivideUtilities(colors) {
|
|
53
|
-
const utilities = {};
|
|
54
|
-
for (const [colorKey, colorValue] of Object.entries(colors)) {
|
|
55
|
-
utilities[`.divide-light-${colorKey} > :not([hidden]) ~ :not([hidden])`] = {
|
|
56
|
-
"border-color": colorValue
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
return utilities;
|
|
60
|
-
}
|
|
61
|
-
function generateRingUtilities(colors) {
|
|
62
|
-
const utilities = {};
|
|
63
|
-
for (const [colorKey, colorValue] of Object.entries(colors)) {
|
|
64
|
-
utilities[`.ring-light-${colorKey}`] = {
|
|
65
|
-
"--tw-ring-color": colorValue
|
|
66
|
-
};
|
|
67
|
-
utilities[`.ring-offset-light-${colorKey}`] = {
|
|
68
|
-
"--tw-ring-offset-color": colorValue
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
return utilities;
|
|
72
|
-
}
|
|
73
|
-
const lightColorPlugin = plugin(function({ addUtilities }) {
|
|
74
|
-
const flatColors = flattenColors(lightPalette);
|
|
75
|
-
const utilities = {
|
|
76
|
-
...generateColorUtilities("background-color", "bg", flatColors),
|
|
77
|
-
...generateColorUtilities("color", "text", flatColors),
|
|
78
|
-
...generateBorderUtilities(flatColors),
|
|
79
|
-
...generateDivideUtilities(flatColors),
|
|
80
|
-
...generateRingUtilities(flatColors),
|
|
81
|
-
...generateColorUtilities("fill", "fill", flatColors),
|
|
82
|
-
...generateColorUtilities("stroke", "stroke", flatColors),
|
|
83
|
-
...generateColorUtilities("accent-color", "accent", flatColors),
|
|
84
|
-
...generateColorUtilities("caret-color", "caret", flatColors)
|
|
85
|
-
};
|
|
86
|
-
addUtilities(utilities);
|
|
87
|
-
});
|
|
88
|
-
export {
|
|
89
|
-
lightColorPlugin as default
|
|
90
|
-
};
|
|
91
|
-
//# sourceMappingURL=lightColorPlugin.js.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lightColorPlugin.js.es.js","sources":["../../../src/components/theme/lightColorPlugin.js"],"sourcesContent":["import plugin from 'tailwindcss/plugin.js'\n\nimport { lightPalette } from './colors'\n\nfunction flattenColors(colors, prefix = '') {\n const result = {}\n\n for (const [key, value] of Object.entries(colors)) {\n const newKey = prefix ? `${prefix}-${key}` : key\n\n if (typeof value === 'string') {\n result[newKey] = value\n } else if (typeof value === 'object' && value !== null) {\n Object.assign(result, flattenColors(value, newKey))\n }\n }\n\n return result\n}\n\nfunction generateColorUtilities(property, prefix, colors) {\n const utilities = {}\n\n for (const [colorKey, colorValue] of Object.entries(colors)) {\n utilities[`.${prefix}-light-${colorKey}`] = {\n [property]: colorValue,\n }\n }\n\n return utilities\n}\n\nfunction generateBorderUtilities(colors) {\n const utilities = {}\n\n Object.assign(utilities, generateColorUtilities('border-color', 'border', colors))\n\n const directions = {\n t: 'border-top-color',\n r: 'border-right-color',\n b: 'border-bottom-color',\n l: 'border-left-color',\n x: ['border-left-color', 'border-right-color'],\n y: ['border-top-color', 'border-bottom-color'],\n }\n\n for (const [dirKey, properties] of Object.entries(directions)) {\n for (const [colorKey, colorValue] of Object.entries(colors)) {\n const className = `.border-${dirKey}-light-${colorKey}`\n\n if (Array.isArray(properties)) {\n utilities[className] = {}\n properties.forEach((prop) => {\n utilities[className][prop] = colorValue\n })\n } else {\n utilities[className] = {\n [properties]: colorValue,\n }\n }\n }\n }\n\n return utilities\n}\n\nfunction generateDivideUtilities(colors) {\n const utilities = {}\n\n for (const [colorKey, colorValue] of Object.entries(colors)) {\n utilities[`.divide-light-${colorKey} > :not([hidden]) ~ :not([hidden])`] = {\n 'border-color': colorValue,\n }\n }\n\n return utilities\n}\n\nfunction generateRingUtilities(colors) {\n const utilities = {}\n\n for (const [colorKey, colorValue] of Object.entries(colors)) {\n utilities[`.ring-light-${colorKey}`] = {\n '--tw-ring-color': colorValue,\n }\n\n utilities[`.ring-offset-light-${colorKey}`] = {\n '--tw-ring-offset-color': colorValue,\n }\n }\n\n return utilities\n}\n\nconst lightColorPlugin = plugin(function ({ addUtilities }) {\n const flatColors = flattenColors(lightPalette)\n\n const utilities = {\n ...generateColorUtilities('background-color', 'bg', flatColors),\n ...generateColorUtilities('color', 'text', flatColors),\n ...generateBorderUtilities(flatColors),\n ...generateDivideUtilities(flatColors),\n ...generateRingUtilities(flatColors),\n ...generateColorUtilities('fill', 'fill', flatColors),\n ...generateColorUtilities('stroke', 'stroke', flatColors),\n ...generateColorUtilities('accent-color', 'accent', flatColors),\n ...generateColorUtilities('caret-color', 'caret', flatColors),\n }\n\n addUtilities(utilities)\n})\n\nexport default lightColorPlugin\n"],"names":[],"mappings":";;AAIA,SAAS,cAAc,QAAQ,SAAS,IAAI;AAC1C,QAAM,SAAS,CAAE;AAEjB,aAAW,CAAC,KAAK,KAAK,KAAK,OAAO,QAAQ,MAAM,GAAG;AACjD,UAAM,SAAS,SAAS,GAAG,MAAM,IAAI,GAAG,KAAK;AAE7C,QAAI,OAAO,UAAU,UAAU;AAC7B,aAAO,MAAM,IAAI;AAAA,IAClB,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GAAG;AAC3D,cAAU,iBAAiB,QAAQ,oCAAoC,IAAI;AAAA,MACzE,gBAAgB;AAAA,IACjB;AAAA,EACF;AAED,SAAO;AACT;AAEA,SAAS,sBAAsB,QAAQ;AACrC,QAAM,YAAY,CAAE;AAEpB,aAAW,CAAC,UAAU,UAAU,KAAK,OAAO,QAAQ,MAAM,GAAG;AAC3D,cAAU,eAAe,QAAQ,EAAE,IAAI;AAAA,MACrC,mBAAmB;AAAA,IACpB;AAED,cAAU,sBAAsB,QAAQ,EAAE,IAAI;AAAA,MAC5C,0BAA0B;AAAA,IAC3B;AAAA,EACF;AAED,SAAO;AACT;AAEK,MAAC,mBAAmB,OAAO,SAAU,EAAE,gBAAgB;AAC1D,QAAM,aAAa,cAAc,YAAY;AAE7C,QAAM,YAAY;AAAA,IAChB,GAAG,uBAAuB,oBAAoB,MAAM,UAAU;AAAA,IAC9D,GAAG,uBAAuB,SAAS,QAAQ,UAAU;AAAA,IACrD,GAAG,wBAAwB,UAAU;AAAA,IACrC,GAAG,wBAAwB,UAAU;AAAA,IACrC,GAAG,sBAAsB,UAAU;AAAA,IACnC,GAAG,uBAAuB,QAAQ,QAAQ,UAAU;AAAA,IACpD,GAAG,uBAAuB,UAAU,UAAU,UAAU;AAAA,IACxD,GAAG,uBAAuB,gBAAgB,UAAU,UAAU;AAAA,IAC9D,GAAG,uBAAuB,eAAe,SAAS,UAAU;AAAA,EAC7D;AAED,eAAa,SAAS;AACxB,CAAC;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './tailwindScrollbar.js'
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { p as plugin } from "../../plugin-06dc459f.js";
|
|
2
|
-
const tailwindScrollbar = plugin(function({ addUtilities, matchUtilities, theme }) {
|
|
3
|
-
const scrollbarTrackColorValue = (value) => ({
|
|
4
|
-
"--scrollbar-track": value,
|
|
5
|
-
"&::-webkit-scrollbar-track": {
|
|
6
|
-
"background-color": value
|
|
7
|
-
}
|
|
8
|
-
});
|
|
9
|
-
const scrollbarTrackRoundedValue = (value) => ({
|
|
10
|
-
"&::-webkit-scrollbar-track": {
|
|
11
|
-
"border-radius": value
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
const scrollbarThumbColorValue = (value) => ({
|
|
15
|
-
"--scrollbar-thumb": value,
|
|
16
|
-
"&::-webkit-scrollbar-thumb": {
|
|
17
|
-
"background-color": value
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
const scrollbarThumbRoundedValue = (value) => ({
|
|
21
|
-
"&::-webkit-scrollbar-thumb": {
|
|
22
|
-
"border-radius": value
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
addUtilities({
|
|
26
|
-
".scrollbar": {
|
|
27
|
-
"--scrollbar-thumb": "#cdcdcd",
|
|
28
|
-
"--scrollbar-track": "#f0f0f0",
|
|
29
|
-
"--scrollbar-width": "17px",
|
|
30
|
-
"scrollbar-color": "var(--scrollbar-thumb) var(--scrollbar-track)",
|
|
31
|
-
"&::-webkit-scrollbar": {
|
|
32
|
-
width: "var(--scrollbar-width)",
|
|
33
|
-
height: "var(--scrollbar-width)"
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
".scrollbar-thin": {
|
|
37
|
-
"--scrollbar-width": "0.5rem",
|
|
38
|
-
"scrollbar-width": "thin"
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
Object.entries(theme("colors")).forEach(([colorName, color]) => {
|
|
42
|
-
switch (typeof color) {
|
|
43
|
-
case "object":
|
|
44
|
-
matchUtilities(
|
|
45
|
-
{
|
|
46
|
-
[`scrollbar-track-${colorName}`]: (value) => scrollbarTrackColorValue(value),
|
|
47
|
-
[`scrollbar-thumb-${colorName}`]: (value) => scrollbarThumbColorValue(value)
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
values: color
|
|
51
|
-
}
|
|
52
|
-
);
|
|
53
|
-
break;
|
|
54
|
-
case "function":
|
|
55
|
-
addUtilities({
|
|
56
|
-
[`.scrollbar-track-${colorName}`]: scrollbarTrackColorValue(color({})),
|
|
57
|
-
[`.scrollbar-thumb-${colorName}`]: scrollbarThumbColorValue(color({}))
|
|
58
|
-
});
|
|
59
|
-
break;
|
|
60
|
-
case "string":
|
|
61
|
-
addUtilities({
|
|
62
|
-
[`.scrollbar-track-${colorName}`]: scrollbarTrackColorValue(color),
|
|
63
|
-
[`.scrollbar-thumb-${colorName}`]: scrollbarThumbColorValue(color)
|
|
64
|
-
});
|
|
65
|
-
break;
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
|
-
matchUtilities(
|
|
69
|
-
{
|
|
70
|
-
"scrollbar-track-rounded": (value) => scrollbarTrackRoundedValue(value),
|
|
71
|
-
"scrollbar-thumb-rounded": (value) => scrollbarThumbRoundedValue(value)
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
values: theme("borderRadius")
|
|
75
|
-
}
|
|
76
|
-
);
|
|
77
|
-
});
|
|
78
|
-
export {
|
|
79
|
-
tailwindScrollbar as default
|
|
80
|
-
};
|
|
81
|
-
//# sourceMappingURL=tailwindScrollbar.js.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tailwindScrollbar.js.es.js","sources":["../../../src/components/theme/tailwindScrollbar.js"],"sourcesContent":["import plugin from 'tailwindcss/plugin.js'\n\nexport default plugin(function ({ addUtilities, matchUtilities, theme }) {\n const scrollbarTrackColorValue = (value) => ({\n '--scrollbar-track': value,\n '&::-webkit-scrollbar-track': {\n 'background-color': value,\n },\n })\n\n const scrollbarTrackRoundedValue = (value) => ({\n '&::-webkit-scrollbar-track': {\n 'border-radius': value,\n },\n })\n\n const scrollbarThumbColorValue = (value) => ({\n '--scrollbar-thumb': value,\n '&::-webkit-scrollbar-thumb': {\n 'background-color': value,\n },\n })\n\n const scrollbarThumbRoundedValue = (value) => ({\n '&::-webkit-scrollbar-thumb': {\n 'border-radius': value,\n },\n })\n\n addUtilities({\n '.scrollbar': {\n '--scrollbar-thumb': '#cdcdcd',\n '--scrollbar-track': '#f0f0f0',\n '--scrollbar-width': '17px',\n 'scrollbar-color': 'var(--scrollbar-thumb) var(--scrollbar-track)',\n '&::-webkit-scrollbar': {\n width: 'var(--scrollbar-width)',\n height: 'var(--scrollbar-width)',\n },\n },\n '.scrollbar-thin': {\n '--scrollbar-width': '0.5rem',\n 'scrollbar-width': 'thin',\n },\n })\n\n Object.entries(theme('colors')).forEach(([colorName, color]) => {\n switch (typeof color) {\n case 'object':\n matchUtilities(\n {\n [`scrollbar-track-${colorName}`]: (value) => scrollbarTrackColorValue(value),\n [`scrollbar-thumb-${colorName}`]: (value) => scrollbarThumbColorValue(value),\n },\n {\n values: color,\n },\n )\n break\n case 'function':\n addUtilities({\n [`.scrollbar-track-${colorName}`]: scrollbarTrackColorValue(color({})),\n [`.scrollbar-thumb-${colorName}`]: scrollbarThumbColorValue(color({})),\n })\n break\n case 'string':\n addUtilities({\n [`.scrollbar-track-${colorName}`]: scrollbarTrackColorValue(color),\n [`.scrollbar-thumb-${colorName}`]: scrollbarThumbColorValue(color),\n })\n break\n }\n })\n\n matchUtilities(\n {\n 'scrollbar-track-rounded': (value) => scrollbarTrackRoundedValue(value),\n 'scrollbar-thumb-rounded': (value) => scrollbarThumbRoundedValue(value),\n },\n {\n values: theme('borderRadius'),\n },\n )\n})\n"],"names":[],"mappings":";AAEA,MAAe,oBAAA,OAAO,SAAU,EAAE,cAAc,gBAAgB,MAAK,GAAI;AACvE,QAAM,2BAA2B,CAAC,WAAW;AAAA,IAC3C,qBAAqB;AAAA,IACrB,8BAA8B;AAAA,MAC5B,oBAAoB;AAAA,IACrB;AAAA,EACL;AAEE,QAAM,6BAA6B,CAAC,WAAW;AAAA,IAC7C,8BAA8B;AAAA,MAC5B,iBAAiB;AAAA,IAClB;AAAA,EACL;AAEE,QAAM,2BAA2B,CAAC,WAAW;AAAA,IAC3C,qBAAqB;AAAA,IACrB,8BAA8B;AAAA,MAC5B,oBAAoB;AAAA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AAC,UAAU,2BAA2B,KAAK;AAAA,IACvE;AAAA,IACD;AAAA,MACE,QAAQ,MAAM,cAAc;AAAA,IAC7B;AAAA,EACF;AACH,CAAC;"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export type ThemeMode = 'light' | 'dark';
|
|
2
|
-
export declare const injectThemes: (lightTheme: any, darkTheme: any) => void;
|
|
3
|
-
export declare const getTailwindColors: () => any;
|
|
4
|
-
export declare const colors: any;
|
|
5
|
-
/**
|
|
6
|
-
* Set theme mode
|
|
7
|
-
* @param theme - 'light' or 'dark'
|
|
8
|
-
*/
|
|
9
|
-
export declare const setThemeMode: (theme: ThemeMode) => void;
|
|
10
|
-
export declare const getThemeMode: () => ThemeMode;
|
|
11
|
-
/**
|
|
12
|
-
* Toggle between light and dark themes
|
|
13
|
-
*/
|
|
14
|
-
export declare const toggleThemeMode: () => ThemeMode;
|
|
15
|
-
/**
|
|
16
|
-
* Initialize theme based on stored preference or system preference
|
|
17
|
-
* Call this once when your app starts
|
|
18
|
-
*/
|
|
19
|
-
export declare const initializeTheme: () => ThemeMode;
|
|
20
|
-
/**
|
|
21
|
-
* Check if current theme is dark mode
|
|
22
|
-
*/
|
|
23
|
-
export declare const isDarkMode: () => boolean;
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import { lightPalette, darkPalette } from "./colors.es.js";
|
|
2
|
-
const flattenTheme = (prefix, obj) => {
|
|
3
|
-
const vars = {};
|
|
4
|
-
for (const key in obj) {
|
|
5
|
-
const val = obj[key];
|
|
6
|
-
const newKey = prefix ? `${prefix}-${key}` : key;
|
|
7
|
-
if (typeof val === "string") {
|
|
8
|
-
vars[`--color-${newKey}`] = val;
|
|
9
|
-
} else {
|
|
10
|
-
Object.assign(vars, flattenTheme(newKey, val));
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
return vars;
|
|
14
|
-
};
|
|
15
|
-
const injectThemes = (lightTheme, darkTheme) => {
|
|
16
|
-
const lightVars = flattenTheme("", lightTheme);
|
|
17
|
-
const darkVars = flattenTheme("", darkTheme);
|
|
18
|
-
const existingStyle = document.getElementById("theme-css-variables");
|
|
19
|
-
if (existingStyle) {
|
|
20
|
-
existingStyle.remove();
|
|
21
|
-
}
|
|
22
|
-
const lightRules = Object.entries(lightVars).map(([key, value]) => ` ${key}: ${value};`).join("\n");
|
|
23
|
-
const darkRules = Object.entries(darkVars).map(([key, value]) => ` ${key}: ${value};`).join("\n");
|
|
24
|
-
const css = `
|
|
25
|
-
:root {
|
|
26
|
-
${lightRules}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.dark {
|
|
30
|
-
${darkRules}
|
|
31
|
-
}
|
|
32
|
-
`;
|
|
33
|
-
const styleElement = document.createElement("style");
|
|
34
|
-
styleElement.id = "theme-css-variables";
|
|
35
|
-
styleElement.textContent = css;
|
|
36
|
-
document.head.appendChild(styleElement);
|
|
37
|
-
};
|
|
38
|
-
const getTailwindColors = () => {
|
|
39
|
-
const processPalette = (prefix, obj) => {
|
|
40
|
-
const newObj = {};
|
|
41
|
-
for (const key in obj) {
|
|
42
|
-
const val = obj[key];
|
|
43
|
-
const newKey = prefix ? `${prefix}-${key}` : key;
|
|
44
|
-
if (typeof val === "string") {
|
|
45
|
-
newObj[key] = `var(--color-${newKey})`;
|
|
46
|
-
} else {
|
|
47
|
-
newObj[key] = processPalette(newKey, val);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
return newObj;
|
|
51
|
-
};
|
|
52
|
-
return processPalette("", lightPalette);
|
|
53
|
-
};
|
|
54
|
-
const colors = getTailwindColors();
|
|
55
|
-
const isBrowser = typeof window !== "undefined";
|
|
56
|
-
const safeLocalStorage = {
|
|
57
|
-
getItem: (key) => {
|
|
58
|
-
try {
|
|
59
|
-
return isBrowser ? localStorage.getItem(key) : null;
|
|
60
|
-
} catch {
|
|
61
|
-
return null;
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
setItem: (key, value) => {
|
|
65
|
-
try {
|
|
66
|
-
if (isBrowser) {
|
|
67
|
-
localStorage.setItem(key, value);
|
|
68
|
-
}
|
|
69
|
-
} catch {
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
const setThemeMode = (theme) => {
|
|
74
|
-
if (!isBrowser)
|
|
75
|
-
return;
|
|
76
|
-
try {
|
|
77
|
-
document.documentElement.setAttribute("data-theme", theme);
|
|
78
|
-
if (theme === "dark") {
|
|
79
|
-
document.documentElement.classList.add("dark");
|
|
80
|
-
} else {
|
|
81
|
-
document.documentElement.classList.remove("dark");
|
|
82
|
-
}
|
|
83
|
-
safeLocalStorage.setItem("theme-mode", theme);
|
|
84
|
-
} catch (error) {
|
|
85
|
-
console.warn("Failed to set theme mode:", error);
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
const getThemeMode = () => {
|
|
89
|
-
if (!isBrowser)
|
|
90
|
-
return "light";
|
|
91
|
-
const stored = safeLocalStorage.getItem("theme-mode");
|
|
92
|
-
if (stored === "light" || stored === "dark") {
|
|
93
|
-
return stored;
|
|
94
|
-
}
|
|
95
|
-
return "light";
|
|
96
|
-
};
|
|
97
|
-
const toggleThemeMode = () => {
|
|
98
|
-
const current = getThemeMode();
|
|
99
|
-
const newTheme = current === "light" ? "dark" : "light";
|
|
100
|
-
setThemeMode(newTheme);
|
|
101
|
-
return newTheme;
|
|
102
|
-
};
|
|
103
|
-
const initializeTheme = () => {
|
|
104
|
-
const theme = getThemeMode();
|
|
105
|
-
if (isBrowser) {
|
|
106
|
-
try {
|
|
107
|
-
injectThemes(lightPalette, darkPalette);
|
|
108
|
-
setThemeMode(theme);
|
|
109
|
-
} catch (error) {
|
|
110
|
-
console.warn("Failed to initialize theme:", error);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
return theme;
|
|
114
|
-
};
|
|
115
|
-
const isDarkMode = () => {
|
|
116
|
-
return getThemeMode() === "dark";
|
|
117
|
-
};
|
|
118
|
-
export {
|
|
119
|
-
colors,
|
|
120
|
-
getTailwindColors,
|
|
121
|
-
getThemeMode,
|
|
122
|
-
initializeTheme,
|
|
123
|
-
injectThemes,
|
|
124
|
-
isDarkMode,
|
|
125
|
-
setThemeMode,
|
|
126
|
-
toggleThemeMode
|
|
127
|
-
};
|
|
128
|
-
//# sourceMappingURL=theme.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"theme.es.js","sources":["../../../src/components/theme/theme.ts"],"sourcesContent":["import { darkPalette, lightPalette } from './colors'\n\nexport type ThemeMode = 'light' | 'dark'\n\nconst flattenTheme = (prefix: string, obj: any): Record<string, string> => {\n const vars: Record<string, string> = {}\n\n for (const key in obj) {\n const val = obj[key]\n const newKey = prefix ? `${prefix}-${key}` : key\n\n if (typeof val === 'string') {\n vars[`--color-${newKey}`] = val\n } else {\n Object.assign(vars, flattenTheme(newKey, val))\n }\n }\n\n return vars\n}\n\nexport const injectThemes = (lightTheme: any, darkTheme: any) => {\n const lightVars = flattenTheme('', lightTheme)\n const darkVars = flattenTheme('', darkTheme)\n\n // Remove existing theme styles if they exist\n const existingStyle = document.getElementById('theme-css-variables')\n if (existingStyle) {\n existingStyle.remove()\n }\n\n // Create CSS rules instead of inline styles\n const lightRules = Object.entries(lightVars)\n .map(([key, value]) => ` ${key}: ${value};`)\n .join('\\n')\n\n const darkRules = Object.entries(darkVars)\n .map(([key, value]) => ` ${key}: ${value};`)\n .join('\\n')\n\n const css = `\n:root {\n${lightRules}\n}\n\n.dark {\n${darkRules}\n}\n `\n\n // Inject CSS as a style element\n const styleElement = document.createElement('style')\n styleElement.id = 'theme-css-variables'\n styleElement.textContent = css\n document.head.appendChild(styleElement)\n}\n\nexport const getTailwindColors = () => {\n const processPalette = (prefix: string, obj: any): any => {\n const newObj: any = {}\n for (const key in obj) {\n const val = obj[key]\n const newKey = prefix ? `${prefix}-${key}` : key\n if (typeof val === 'string') {\n newObj[key] = `var(--color-${newKey})`\n } else {\n newObj[key] = processPalette(newKey, val)\n }\n }\n return newObj\n }\n\n return processPalette('', lightPalette)\n}\n\nexport const colors = getTailwindColors()\n\n/**\n * Check if running in browser environment\n */\nconst isBrowser = typeof window !== 'undefined'\n\n/**\n * Safe localStorage access with fallback\n */\nconst safeLocalStorage = {\n getItem: (key: string): string | null => {\n try {\n return isBrowser ? localStorage.getItem(key) : null\n } catch {\n return null\n }\n },\n setItem: (key: string, value: string): void => {\n try {\n if (isBrowser) {\n localStorage.setItem(key, value)\n }\n } catch {\n // Silent fail if localStorage is not available\n }\n },\n}\n\n/**\n * Set theme mode\n * @param theme - 'light' or 'dark'\n */\nexport const setThemeMode = (theme: ThemeMode): void => {\n if (!isBrowser) return\n\n try {\n document.documentElement.setAttribute('data-theme', theme)\n\n if (theme === 'dark') {\n document.documentElement.classList.add('dark')\n } else {\n document.documentElement.classList.remove('dark')\n }\n\n safeLocalStorage.setItem('theme-mode', theme)\n } catch (error) {\n console.warn('Failed to set theme mode:', error)\n }\n}\n\nexport const getThemeMode = (): ThemeMode => {\n if (!isBrowser) return 'light'\n\n // Check stored preference\n const stored = safeLocalStorage.getItem('theme-mode')\n if (stored === 'light' || stored === 'dark') {\n return stored\n }\n\n return 'light' // prefering light for now\n // Check system preference\n // try {\n // const prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches\n // return prefersDark ? 'dark' : 'light'\n // } catch {\n // return 'light'\n // }\n}\n\n/**\n * Toggle between light and dark themes\n */\nexport const toggleThemeMode = (): ThemeMode => {\n const current = getThemeMode()\n const newTheme: ThemeMode = current === 'light' ? 'dark' : 'light'\n setThemeMode(newTheme)\n return newTheme\n}\n\n/**\n * Initialize theme based on stored preference or system preference\n * Call this once when your app starts\n */\nexport const initializeTheme = (): ThemeMode => {\n const theme = getThemeMode()\n if (isBrowser) {\n try {\n injectThemes(lightPalette, darkPalette)\n setThemeMode(theme)\n } catch (error) {\n // eslint-disable-next-line no-console\n console.warn('Failed to initialize theme:', error)\n }\n }\n return theme\n}\n\n/**\n * Check if current theme is dark mode\n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AAQ;AACd,SAAA;AACT;AAMO,MAAM,kBAAkB,MAAiB;AAC9C,QAAM,QAAQ;AACd,MAAI,WAAW;AACT,QAAA;AACF,mBAAa,cAAc,WAAW;AACtC,mBAAa,KAAK;AAAA,aACX,OAAO;AAEN,cAAA,KAAK,+BAA+B,KAAK;AAAA,IACnD;AAAA,EACF;AACO,SAAA;AACT;AAKO,MAAM,aAAa,MAAe;AACvC,SAAO,aAAmB,MAAA;AAC5B;"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import type { ThemeMode } from './theme';
|
|
3
|
-
export interface UseThemeReturn {
|
|
4
|
-
mode: ThemeMode;
|
|
5
|
-
isDark: boolean;
|
|
6
|
-
setTheme: (theme: ThemeMode) => void;
|
|
7
|
-
toggleTheme: () => void;
|
|
8
|
-
}
|
|
9
|
-
interface ThemeProviderProps {
|
|
10
|
-
children: ReactNode;
|
|
11
|
-
}
|
|
12
|
-
export declare const ThemeProvider: React.FC<ThemeProviderProps>;
|
|
13
|
-
export declare const useTheme: () => UseThemeReturn;
|
|
14
|
-
export default useTheme;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { createContext, useState, useEffect, useCallback, useContext } from "react";
|
|
3
|
-
import { getThemeMode, initializeTheme, setThemeMode, toggleThemeMode } from "./theme.es.js";
|
|
4
|
-
import "./colors.es.js";
|
|
5
|
-
const ThemeContext = createContext(void 0);
|
|
6
|
-
const ThemeProvider = ({ children }) => {
|
|
7
|
-
const [mode, setModeState] = useState(() => getThemeMode());
|
|
8
|
-
useEffect(() => {
|
|
9
|
-
const initialTheme = initializeTheme();
|
|
10
|
-
setModeState(initialTheme);
|
|
11
|
-
}, []);
|
|
12
|
-
const handleSetTheme = useCallback((newTheme) => {
|
|
13
|
-
setThemeMode(newTheme);
|
|
14
|
-
setModeState(newTheme);
|
|
15
|
-
}, []);
|
|
16
|
-
const handleToggleTheme = useCallback(() => {
|
|
17
|
-
const newTheme = toggleThemeMode();
|
|
18
|
-
setModeState(newTheme);
|
|
19
|
-
}, []);
|
|
20
|
-
const value = {
|
|
21
|
-
mode,
|
|
22
|
-
isDark: mode === "dark",
|
|
23
|
-
setTheme: handleSetTheme,
|
|
24
|
-
toggleTheme: handleToggleTheme
|
|
25
|
-
};
|
|
26
|
-
return /* @__PURE__ */ jsx(ThemeContext.Provider, { value, children });
|
|
27
|
-
};
|
|
28
|
-
const useTheme = () => {
|
|
29
|
-
const context = useContext(ThemeContext);
|
|
30
|
-
if (context === void 0) {
|
|
31
|
-
throw new Error("useTheme must be used within a ThemeProvider");
|
|
32
|
-
}
|
|
33
|
-
return context;
|
|
34
|
-
};
|
|
35
|
-
export {
|
|
36
|
-
ThemeProvider,
|
|
37
|
-
useTheme as default,
|
|
38
|
-
useTheme
|
|
39
|
-
};
|
|
40
|
-
//# sourceMappingURL=useTheme.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useTheme.es.js","sources":["../../../src/components/theme/useTheme.tsx"],"sourcesContent":["import { createContext, ReactNode, useCallback, useContext, useEffect, useState } from 'react'\n\nimport type { ThemeMode } from './theme'\nimport { getThemeMode, initializeTheme, setThemeMode, toggleThemeMode } from './theme'\n\nexport interface UseThemeReturn {\n mode: ThemeMode\n isDark: boolean\n setTheme: (theme: ThemeMode) => void\n toggleTheme: () => void\n}\n\ninterface ThemeProviderProps {\n children: ReactNode\n}\n\n// Create the theme context\nconst ThemeContext = createContext<UseThemeReturn | undefined>(undefined)\n\n// Theme Provider component\nexport const ThemeProvider: React.FC<ThemeProviderProps> = ({ children }) => {\n const [mode, setModeState] = useState<ThemeMode>(() => getThemeMode())\n\n useEffect(() => {\n const initialTheme = initializeTheme()\n setModeState(initialTheme)\n }, [])\n\n const handleSetTheme = useCallback((newTheme: ThemeMode) => {\n setThemeMode(newTheme)\n setModeState(newTheme)\n }, [])\n\n const handleToggleTheme = useCallback(() => {\n const newTheme = toggleThemeMode()\n setModeState(newTheme)\n }, [])\n\n const value: UseThemeReturn = {\n mode,\n isDark: mode === 'dark',\n setTheme: handleSetTheme,\n toggleTheme: handleToggleTheme,\n }\n\n return <ThemeContext.Provider value={value}>{children}</ThemeContext.Provider>\n}\n\n// Hook to use the theme context\nexport const useTheme = (): UseThemeReturn => {\n const context = useContext(ThemeContext)\n\n if (context === undefined) {\n throw new Error('useTheme must be used within a ThemeProvider')\n }\n\n return context\n}\n\nexport default useTheme\n"],"names":[],"mappings":";;;;AAiBA,MAAM,eAAe,cAA0C,MAAS;AAGjE,MAAM,gBAA8C,CAAC,EAAE,eAAe;AAC3E,QAAM,CAAC,MAAM,YAAY,IAAI,SAAoB,MAAM,cAAc;AAErE,YAAU,MAAM;AACd,UAAM,eAAe;AACrB,iBAAa,YAAY;AAAA,EAC3B,GAAG,CAAE,CAAA;AAEC,QAAA,iBAAiB,YAAY,CAAC,aAAwB;AAC1D,iBAAa,QAAQ;AACrB,iBAAa,QAAQ;AAAA,EACvB,GAAG,CAAE,CAAA;AAEC,QAAA,oBAAoB,YAAY,MAAM;AAC1C,UAAM,WAAW;AACjB,iBAAa,QAAQ;AAAA,EACvB,GAAG,CAAE,CAAA;AAEL,QAAM,QAAwB;AAAA,IAC5B;AAAA,IACA,QAAQ,SAAS;AAAA,IACjB,UAAU;AAAA,IACV,aAAa;AAAA,EAAA;AAGf,SAAQ,oBAAA,aAAa,UAAb,EAAsB,OAAe,SAAS,CAAA;AACxD;AAGO,MAAM,WAAW,MAAsB;AACtC,QAAA,UAAU,WAAW,YAAY;AAEvC,MAAI,YAAY,QAAW;AACnB,UAAA,IAAI,MAAM,8CAA8C;AAAA,EAChE;AAEO,SAAA;AACT;"}
|
package/dist/cursor.d.ts
DELETED
package/dist/dropShadow.d.ts
DELETED