@multiplatform.one/theme 7.34.4 → 7.36.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/package.json +20 -5
- package/src/audit/constraintAudit.spec.ts +274 -87
- package/src/audit/constraintAudit.ts +135 -120
- package/src/audit/constraintScope.spec.ts +1 -1
- package/src/audit/designTokens.ts +42 -0
- package/src/audit/themeMatrix.spec.ts +83 -2
- package/src/audit/themeMatrix.ts +33 -1
- package/src/figma/figmaTokens.spec.ts +26 -34
- package/src/figma/figmaTokens.ts +26 -50
- package/src/fonts/createFontLoader.ts +4 -1
- package/src/menuRow.ts +4 -1
- package/src/theme/FontKnobStyles.tsx +2 -1
- package/src/theme/Preset.stories.tsx +0 -1
- package/src/theme/Preset.tsx +6 -1
- package/src/theme/PresetContext.ts +4 -0
- package/src/theme/Surface.spec.tsx +114 -67
- package/src/theme/Surface.stories.tsx +8 -25
- package/src/theme/Surface.tsx +87 -43
- package/src/theme/accentFloor.spec.ts +37 -11
- package/src/theme/activateThemeConfig.ts +22 -6
- package/src/theme/animations/animations.spec.ts +62 -0
- package/src/theme/animations/css.ts +9 -35
- package/src/theme/animations/reactNative.ts +98 -25
- package/src/theme/boundaryFloor.spec.ts +57 -0
- package/src/theme/chartPalette.spec.ts +56 -27
- package/src/theme/chartPalette.ts +33 -28
- package/src/theme/colorRules.spec.ts +32 -72
- package/src/theme/cookies.spec.ts +49 -18
- package/src/theme/cookies.ts +36 -7
- package/src/theme/cookiesPersistence.spec.ts +5 -5
- package/src/theme/createDefaultThemeConfig.spec.ts +182 -20
- package/src/theme/createDefaultThemeConfig.ts +34 -28
- package/src/theme/createThemes.ts +169 -218
- package/src/theme/defaults/accent.ts +3 -35
- package/src/theme/defaults/base.ts +14 -53
- package/src/theme/defaults/builderOptions.ts +68 -85
- package/src/theme/defaults/categoryFonts.ts +10 -0
- package/src/theme/defaults/fonts.spec.ts +84 -4
- package/src/theme/defaults/fonts.ts +166 -124
- package/src/theme/defaults/house.ts +48 -0
- package/src/theme/defaults/index.ts +1 -0
- package/src/theme/defaults/neutralRamp.spec.ts +52 -47
- package/src/theme/devtools/ColorLineVisualizer.tsx +6 -6
- package/src/theme/devtools/ThemeDevtoolsPanel.setMarkers.spec.tsx +13 -6
- package/src/theme/devtools/ThemeDevtoolsPanel.tsx +14 -77
- package/src/theme/devtools/animationOptions.spec.ts +23 -37
- package/src/theme/devtools/animationOptions.ts +4 -6
- package/src/theme/devtools/buildSnapshot.ts +0 -3
- package/src/theme/devtools/knobIcons.tsx +4 -24
- package/src/theme/focusState.spec.ts +9 -30
- package/src/theme/index.ts +17 -0
- package/src/theme/intentFill.spec.ts +42 -0
- package/src/theme/knobs.ts +14 -42
- package/src/theme/layoutTokens.ts +15 -1
- package/src/theme/layoutTokensHooks.spec.tsx +8 -4
- package/src/theme/mergedTokens.ts +20 -0
- package/src/theme/motion.spec.ts +84 -0
- package/src/theme/motion.ts +53 -0
- package/src/theme/motionStops.ts +17 -0
- package/src/theme/motionTiming.ts +59 -0
- package/src/theme/mpo13Proof.spec.ts +43 -46
- package/src/theme/mpo19Proof.spec.ts +13 -14
- package/src/theme/namedInkFloor.spec.ts +60 -0
- package/src/theme/overlaySurfaces.tsx +330 -0
- package/src/theme/preset.types.ts +16 -0
- package/src/theme/presetPreview.ts +32 -0
- package/src/theme/presetRoot.spec.tsx +89 -0
- package/src/theme/presetStore.persistence.spec.ts +141 -0
- package/src/theme/presetStore.spec.ts +205 -0
- package/src/theme/presetStore.ts +286 -0
- package/src/theme/presetUserSync.spec.tsx +168 -0
- package/src/theme/presetUserSync.ts +47 -0
- package/src/theme/presets.spec.ts +22 -15
- package/src/theme/presets.ts +22 -10
- package/src/theme/radiusClass.spec.ts +60 -41
- package/src/theme/radiusClass.ts +17 -4
- package/src/theme/radiusClassTable.generated.ts +3 -3
- package/src/theme/readableColor.spec.ts +59 -152
- package/src/theme/readableColor.ts +34 -174
- package/src/theme/recipeInputs.ts +153 -295
- package/src/theme/recipes.ts +58 -18
- package/src/theme/resolveKnobs.spec.ts +528 -588
- package/src/theme/resolveKnobs.ts +250 -325
- package/src/theme/scale/ScaleStyles.native.tsx +19 -0
- package/src/theme/scale/ScaleStyles.tsx +48 -0
- package/src/theme/scale/activeScale.ts +30 -0
- package/src/theme/scale/deriveRecipeInputs.ts +110 -0
- package/src/theme/scale/generateScale.spec.ts +260 -0
- package/src/theme/scale/generateScale.ts +147 -0
- package/src/theme/scale/index.ts +54 -0
- package/src/theme/scale/installScaleConfig.native.spec.ts +77 -0
- package/src/theme/scale/installScaleConfig.native.ts +57 -0
- package/src/theme/scale/installScaleConfig.ts +7 -0
- package/src/theme/scale/scaleAttribute.ts +21 -0
- package/src/theme/scale/scaleCss.probe.spec.tsx +64 -0
- package/src/theme/scale/scaleCss.spec.ts +132 -0
- package/src/theme/scale/scaleCss.ts +95 -0
- package/src/theme/scale/scaleFonts.ts +106 -0
- package/src/theme/scale/scaleInputs.ts +322 -0
- package/src/theme/scale/themeScales.ts +181 -0
- package/src/theme/scale/useActiveScale.spec.tsx +129 -0
- package/src/theme/scale/useActiveScale.ts +95 -0
- package/src/theme/schemeStore.spec.ts +81 -0
- package/src/theme/schemeStore.ts +67 -0
- package/src/theme/shared.spec.ts +7 -6
- package/src/theme/shared.tsx +37 -3
- package/src/theme/sizeLadder.spec.ts +37 -36
- package/src/theme/sizeRecipes.spec.ts +179 -85
- package/src/theme/sizeRecipes.ts +48 -25
- package/src/theme/subsetThemes.spec.ts +9 -3
- package/src/theme/switchThumb.spec.ts +69 -0
- package/src/theme/syntaxFloor.spec.ts +11 -8
- package/src/theme/theme.hydration.native.spec.tsx +51 -0
- package/src/theme/theme.native.tsx +59 -21
- package/src/theme/theme.palette.spec.tsx +76 -0
- package/src/theme/theme.preset.native.spec.tsx +73 -0
- package/src/theme/theme.provider.spec.ts +143 -1
- package/src/theme/theme.tsx +61 -25
- package/src/theme/tileSizes.ts +6 -7
- package/src/theme/transitionProps.native.ts +25 -2
- package/src/theme/transitionProps.spec.ts +34 -0
- package/src/theme/transitionProps.ts +26 -2
- package/src/theme/usePresetSwitch.native.spec.tsx +68 -0
- package/src/theme/usePresetSwitch.native.ts +32 -0
- package/src/theme/usePresetSwitch.spec.tsx +103 -0
- package/src/theme/usePresetSwitch.ts +54 -0
- package/src/theme/useResolvedKnobs.hydration.spec.tsx +2 -2
- package/src/theme/useResolvedKnobs.ts +23 -90
- package/src/theme/useResolvedKnobsBehavior.spec.tsx +25 -30
- package/src/theme/useSchemePreference.native.ts +33 -0
- package/src/theme/useSchemePreference.spec.tsx +51 -0
- package/src/theme/useSchemePreference.ts +32 -0
- package/src/theme/useSchemePreference.web.spec.tsx +32 -0
- package/src/theme/useTheme.native.spec.tsx +68 -0
- package/src/theme/useTheme.native.ts +49 -24
- package/src/theme/useTheme.ts +7 -4
- package/types/audit/constraintAudit.d.ts +6 -5
- package/types/audit/constraintAudit.d.ts.map +1 -1
- package/types/audit/designTokens.d.ts +13 -0
- package/types/audit/designTokens.d.ts.map +1 -0
- package/types/audit/themeMatrix.d.ts +10 -0
- package/types/audit/themeMatrix.d.ts.map +1 -1
- package/types/figma/figmaTokens.d.ts +11 -28
- package/types/figma/figmaTokens.d.ts.map +1 -1
- package/types/fonts/createFontLoader.d.ts.map +1 -1
- package/types/menuRow.d.ts +4 -1
- package/types/menuRow.d.ts.map +1 -1
- package/types/theme/FontKnobStyles.d.ts.map +1 -1
- package/types/theme/Preset.d.ts.map +1 -1
- package/types/theme/PresetContext.d.ts +4 -0
- package/types/theme/PresetContext.d.ts.map +1 -1
- package/types/theme/Surface.d.ts +57 -26
- package/types/theme/Surface.d.ts.map +1 -1
- package/types/theme/activateThemeConfig.d.ts +5 -3
- package/types/theme/activateThemeConfig.d.ts.map +1 -1
- package/types/theme/animations/css.d.ts +27 -34
- package/types/theme/animations/css.d.ts.map +1 -1
- package/types/theme/animations/reactNative.d.ts +196 -45
- package/types/theme/animations/reactNative.d.ts.map +1 -1
- package/types/theme/chartPalette.d.ts +11 -3
- package/types/theme/chartPalette.d.ts.map +1 -1
- package/types/theme/colorRules.d.ts +1 -1
- package/types/theme/cookies.d.ts +12 -1
- package/types/theme/cookies.d.ts.map +1 -1
- package/types/theme/createDefaultThemeConfig.d.ts +13 -13
- package/types/theme/createDefaultThemeConfig.d.ts.map +1 -1
- package/types/theme/createThemes.d.ts +58 -2
- package/types/theme/createThemes.d.ts.map +1 -1
- package/types/theme/defaults/accent.d.ts.map +1 -1
- package/types/theme/defaults/base.d.ts.map +1 -1
- package/types/theme/defaults/builderOptions.d.ts.map +1 -1
- package/types/theme/defaults/categoryFonts.d.ts +10 -0
- package/types/theme/defaults/categoryFonts.d.ts.map +1 -1
- package/types/theme/defaults/fonts.d.ts +330 -30
- package/types/theme/defaults/fonts.d.ts.map +1 -1
- package/types/theme/defaults/house.d.ts +8 -0
- package/types/theme/defaults/house.d.ts.map +1 -0
- package/types/theme/defaults/index.d.ts +1 -0
- package/types/theme/defaults/index.d.ts.map +1 -1
- package/types/theme/devtools/ThemeDevtoolsPanel.d.ts +3 -3
- package/types/theme/devtools/ThemeDevtoolsPanel.d.ts.map +1 -1
- package/types/theme/devtools/animationOptions.d.ts.map +1 -1
- package/types/theme/devtools/buildSnapshot.d.ts.map +1 -1
- package/types/theme/devtools/knobIcons.d.ts +0 -3
- package/types/theme/devtools/knobIcons.d.ts.map +1 -1
- package/types/theme/index.d.ts +11 -0
- package/types/theme/index.d.ts.map +1 -1
- package/types/theme/knobs.d.ts +8 -36
- package/types/theme/knobs.d.ts.map +1 -1
- package/types/theme/layoutTokens.d.ts +13 -1
- package/types/theme/layoutTokens.d.ts.map +1 -1
- package/types/theme/mergedTokens.d.ts +11 -0
- package/types/theme/mergedTokens.d.ts.map +1 -0
- package/types/theme/motion.d.ts +17 -0
- package/types/theme/motion.d.ts.map +1 -0
- package/types/theme/motionStops.d.ts +3 -0
- package/types/theme/motionStops.d.ts.map +1 -0
- package/types/theme/motionTiming.d.ts +36 -0
- package/types/theme/motionTiming.d.ts.map +1 -0
- package/types/theme/overlaySurfaces.d.ts +70 -0
- package/types/theme/overlaySurfaces.d.ts.map +1 -0
- package/types/theme/preset.types.d.ts +16 -0
- package/types/theme/preset.types.d.ts.map +1 -1
- package/types/theme/presetPreview.d.ts +14 -0
- package/types/theme/presetPreview.d.ts.map +1 -0
- package/types/theme/presetStore.d.ts +40 -0
- package/types/theme/presetStore.d.ts.map +1 -0
- package/types/theme/presetUserSync.d.ts +7 -0
- package/types/theme/presetUserSync.d.ts.map +1 -0
- package/types/theme/presets.d.ts +12 -4
- package/types/theme/presets.d.ts.map +1 -1
- package/types/theme/radiusClass.d.ts +5 -2
- package/types/theme/radiusClass.d.ts.map +1 -1
- package/types/theme/radiusClassTable.generated.d.ts +3 -3
- package/types/theme/readableColor.d.ts +11 -49
- package/types/theme/readableColor.d.ts.map +1 -1
- package/types/theme/recipeInputs.d.ts +39 -70
- package/types/theme/recipeInputs.d.ts.map +1 -1
- package/types/theme/recipes.d.ts +79 -18
- package/types/theme/recipes.d.ts.map +1 -1
- package/types/theme/resolveKnobs.d.ts +64 -32
- package/types/theme/resolveKnobs.d.ts.map +1 -1
- package/types/theme/scale/ScaleStyles.d.ts +18 -0
- package/types/theme/scale/ScaleStyles.d.ts.map +1 -0
- package/types/theme/scale/ScaleStyles.native.d.ts +10 -0
- package/types/theme/scale/ScaleStyles.native.d.ts.map +1 -0
- package/types/theme/scale/activeScale.d.ts +13 -0
- package/types/theme/scale/activeScale.d.ts.map +1 -0
- package/types/theme/scale/deriveRecipeInputs.d.ts +10 -0
- package/types/theme/scale/deriveRecipeInputs.d.ts.map +1 -0
- package/types/theme/scale/generateScale.d.ts +38 -0
- package/types/theme/scale/generateScale.d.ts.map +1 -0
- package/types/theme/scale/index.d.ts +17 -0
- package/types/theme/scale/index.d.ts.map +1 -0
- package/types/theme/scale/installScaleConfig.d.ts +4 -0
- package/types/theme/scale/installScaleConfig.d.ts.map +1 -0
- package/types/theme/scale/installScaleConfig.native.d.ts +13 -0
- package/types/theme/scale/installScaleConfig.native.d.ts.map +1 -0
- package/types/theme/scale/scaleAttribute.d.ts +14 -0
- package/types/theme/scale/scaleAttribute.d.ts.map +1 -0
- package/types/theme/scale/scaleCss.d.ts +25 -0
- package/types/theme/scale/scaleCss.d.ts.map +1 -0
- package/types/theme/scale/scaleFonts.d.ts +16 -0
- package/types/theme/scale/scaleFonts.d.ts.map +1 -0
- package/types/theme/scale/scaleInputs.d.ts +66 -0
- package/types/theme/scale/scaleInputs.d.ts.map +1 -0
- package/types/theme/scale/themeScales.d.ts +52 -0
- package/types/theme/scale/themeScales.d.ts.map +1 -0
- package/types/theme/scale/useActiveScale.d.ts +31 -0
- package/types/theme/scale/useActiveScale.d.ts.map +1 -0
- package/types/theme/schemeStore.d.ts +6 -0
- package/types/theme/schemeStore.d.ts.map +1 -0
- package/types/theme/shared.d.ts +18 -0
- package/types/theme/shared.d.ts.map +1 -1
- package/types/theme/sizeRecipes.d.ts +20 -15
- package/types/theme/sizeRecipes.d.ts.map +1 -1
- package/types/theme/theme.d.ts +2 -1
- package/types/theme/theme.d.ts.map +1 -1
- package/types/theme/theme.native.d.ts +10 -1
- package/types/theme/theme.native.d.ts.map +1 -1
- package/types/theme/tileSizes.d.ts +6 -7
- package/types/theme/tileSizes.d.ts.map +1 -1
- package/types/theme/transitionProps.d.ts +3 -1
- package/types/theme/transitionProps.d.ts.map +1 -1
- package/types/theme/transitionProps.native.d.ts +3 -1
- package/types/theme/transitionProps.native.d.ts.map +1 -1
- package/types/theme/usePresetSwitch.d.ts +10 -0
- package/types/theme/usePresetSwitch.d.ts.map +1 -0
- package/types/theme/usePresetSwitch.native.d.ts +10 -0
- package/types/theme/usePresetSwitch.native.d.ts.map +1 -0
- package/types/theme/useResolvedKnobs.d.ts +13 -13
- package/types/theme/useResolvedKnobs.d.ts.map +1 -1
- package/types/theme/useSchemePreference.d.ts +8 -0
- package/types/theme/useSchemePreference.d.ts.map +1 -0
- package/types/theme/useSchemePreference.native.d.ts +8 -0
- package/types/theme/useSchemePreference.native.d.ts.map +1 -0
- package/types/theme/useTheme.d.ts +4 -2
- package/types/theme/useTheme.d.ts.map +1 -1
- package/types/theme/useTheme.native.d.ts +10 -1
- package/types/theme/useTheme.native.d.ts.map +1 -1
|
@@ -1,103 +1,254 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Canonical spring vocabulary. Exported so native gesture code can drive
|
|
3
|
-
* RN `Animated.spring` (which provides completion callbacks) with the exact
|
|
4
|
-
* same physics as Tamagui's `transition` tokens — one closed vocabulary.
|
|
5
|
-
*/
|
|
6
1
|
export declare const animationConfig: {
|
|
2
|
+
readonly "0ms": {
|
|
3
|
+
readonly type: "timing";
|
|
4
|
+
readonly duration: 0;
|
|
5
|
+
};
|
|
6
|
+
readonly "50ms": {
|
|
7
|
+
readonly type: "timing";
|
|
8
|
+
readonly duration: 50;
|
|
9
|
+
};
|
|
10
|
+
readonly "75ms": {
|
|
11
|
+
readonly type: "timing";
|
|
12
|
+
readonly duration: 75;
|
|
13
|
+
};
|
|
14
|
+
readonly "100ms": {
|
|
15
|
+
readonly type: "timing";
|
|
16
|
+
readonly duration: 100;
|
|
17
|
+
};
|
|
18
|
+
readonly "200ms": {
|
|
19
|
+
readonly type: "timing";
|
|
20
|
+
readonly duration: 200;
|
|
21
|
+
};
|
|
22
|
+
readonly "250ms": {
|
|
23
|
+
readonly type: "timing";
|
|
24
|
+
readonly duration: 250;
|
|
25
|
+
};
|
|
26
|
+
readonly "300ms": {
|
|
27
|
+
readonly type: "timing";
|
|
28
|
+
readonly duration: 300;
|
|
29
|
+
};
|
|
30
|
+
readonly "400ms": {
|
|
31
|
+
readonly type: "timing";
|
|
32
|
+
readonly duration: 400;
|
|
33
|
+
};
|
|
34
|
+
readonly "500ms": {
|
|
35
|
+
readonly type: "timing";
|
|
36
|
+
readonly duration: 500;
|
|
37
|
+
};
|
|
38
|
+
readonly superBouncy: {
|
|
39
|
+
readonly type: "spring";
|
|
40
|
+
readonly damping: 5;
|
|
41
|
+
readonly mass: 0.7;
|
|
42
|
+
readonly stiffness: 180;
|
|
43
|
+
};
|
|
7
44
|
readonly bouncy: {
|
|
8
45
|
readonly type: "spring";
|
|
9
46
|
readonly damping: 9;
|
|
10
47
|
readonly mass: 0.9;
|
|
11
|
-
readonly stiffness:
|
|
48
|
+
readonly stiffness: 120;
|
|
49
|
+
};
|
|
50
|
+
readonly superLazy: {
|
|
51
|
+
readonly type: "spring";
|
|
52
|
+
readonly damping: 25;
|
|
53
|
+
readonly mass: 2;
|
|
54
|
+
readonly stiffness: 25;
|
|
12
55
|
};
|
|
13
56
|
readonly lazy: {
|
|
14
57
|
readonly type: "spring";
|
|
15
58
|
readonly damping: 18;
|
|
16
|
-
readonly
|
|
59
|
+
readonly mass: 0.2;
|
|
60
|
+
readonly stiffness: 10;
|
|
17
61
|
};
|
|
18
|
-
readonly
|
|
62
|
+
readonly medium: {
|
|
63
|
+
readonly damping: 16;
|
|
64
|
+
readonly stiffness: 90;
|
|
65
|
+
readonly mass: 0.8;
|
|
66
|
+
};
|
|
67
|
+
readonly slowest: {
|
|
19
68
|
readonly type: "spring";
|
|
20
69
|
readonly damping: 15;
|
|
21
|
-
readonly stiffness:
|
|
70
|
+
readonly stiffness: 10;
|
|
22
71
|
};
|
|
23
|
-
readonly
|
|
72
|
+
readonly slow: {
|
|
24
73
|
readonly type: "spring";
|
|
25
|
-
readonly damping:
|
|
26
|
-
readonly
|
|
27
|
-
readonly stiffness: 120;
|
|
74
|
+
readonly damping: 45;
|
|
75
|
+
readonly stiffness: 60;
|
|
28
76
|
};
|
|
29
77
|
readonly quick: {
|
|
30
78
|
readonly type: "spring";
|
|
31
|
-
readonly damping:
|
|
32
|
-
readonly mass: 1
|
|
33
|
-
readonly stiffness:
|
|
79
|
+
readonly damping: 25;
|
|
80
|
+
readonly mass: 1;
|
|
81
|
+
readonly stiffness: 550;
|
|
82
|
+
};
|
|
83
|
+
readonly quickLessBouncy: {
|
|
84
|
+
readonly type: "spring";
|
|
85
|
+
readonly damping: 40;
|
|
86
|
+
readonly mass: 2;
|
|
87
|
+
readonly stiffness: 400;
|
|
88
|
+
};
|
|
89
|
+
readonly quicker: {
|
|
90
|
+
readonly type: "spring";
|
|
91
|
+
readonly damping: 16;
|
|
92
|
+
readonly mass: 0.6;
|
|
93
|
+
readonly stiffness: 700;
|
|
94
|
+
};
|
|
95
|
+
readonly quickerLessBouncy: {
|
|
96
|
+
readonly type: "spring";
|
|
97
|
+
readonly damping: 27;
|
|
98
|
+
readonly mass: 0.45;
|
|
99
|
+
readonly stiffness: 750;
|
|
100
|
+
};
|
|
101
|
+
readonly quickest: {
|
|
102
|
+
readonly damping: 15;
|
|
103
|
+
readonly mass: 0.6;
|
|
104
|
+
readonly stiffness: 400;
|
|
105
|
+
};
|
|
106
|
+
readonly quickestLessBouncy: {
|
|
107
|
+
readonly damping: 24;
|
|
108
|
+
readonly mass: 0.35;
|
|
109
|
+
readonly stiffness: 750;
|
|
34
110
|
};
|
|
35
111
|
readonly tooltip: {
|
|
36
112
|
readonly type: "spring";
|
|
37
|
-
readonly damping:
|
|
38
|
-
readonly
|
|
39
|
-
readonly stiffness: 100;
|
|
113
|
+
readonly damping: 45;
|
|
114
|
+
readonly stiffness: 60;
|
|
40
115
|
};
|
|
41
116
|
readonly snappy: {
|
|
42
|
-
readonly
|
|
43
|
-
readonly
|
|
44
|
-
readonly
|
|
45
|
-
readonly stiffness: 350;
|
|
117
|
+
readonly damping: 15;
|
|
118
|
+
readonly mass: 0.6;
|
|
119
|
+
readonly stiffness: 400;
|
|
46
120
|
};
|
|
47
121
|
readonly gentle: {
|
|
48
122
|
readonly type: "spring";
|
|
49
|
-
readonly damping:
|
|
50
|
-
readonly mass: 1.4;
|
|
123
|
+
readonly damping: 45;
|
|
51
124
|
readonly stiffness: 60;
|
|
52
125
|
};
|
|
53
126
|
};
|
|
54
127
|
export type AnimationName = keyof typeof animationConfig;
|
|
55
128
|
export declare const animationNames: AnimationName[];
|
|
56
129
|
export declare const animations: import("@tamagui/web").AnimationDriver<{
|
|
130
|
+
readonly "0ms": {
|
|
131
|
+
readonly type: "timing";
|
|
132
|
+
readonly duration: 0;
|
|
133
|
+
};
|
|
134
|
+
readonly "50ms": {
|
|
135
|
+
readonly type: "timing";
|
|
136
|
+
readonly duration: 50;
|
|
137
|
+
};
|
|
138
|
+
readonly "75ms": {
|
|
139
|
+
readonly type: "timing";
|
|
140
|
+
readonly duration: 75;
|
|
141
|
+
};
|
|
142
|
+
readonly "100ms": {
|
|
143
|
+
readonly type: "timing";
|
|
144
|
+
readonly duration: 100;
|
|
145
|
+
};
|
|
146
|
+
readonly "200ms": {
|
|
147
|
+
readonly type: "timing";
|
|
148
|
+
readonly duration: 200;
|
|
149
|
+
};
|
|
150
|
+
readonly "250ms": {
|
|
151
|
+
readonly type: "timing";
|
|
152
|
+
readonly duration: 250;
|
|
153
|
+
};
|
|
154
|
+
readonly "300ms": {
|
|
155
|
+
readonly type: "timing";
|
|
156
|
+
readonly duration: 300;
|
|
157
|
+
};
|
|
158
|
+
readonly "400ms": {
|
|
159
|
+
readonly type: "timing";
|
|
160
|
+
readonly duration: 400;
|
|
161
|
+
};
|
|
162
|
+
readonly "500ms": {
|
|
163
|
+
readonly type: "timing";
|
|
164
|
+
readonly duration: 500;
|
|
165
|
+
};
|
|
166
|
+
readonly superBouncy: {
|
|
167
|
+
readonly type: "spring";
|
|
168
|
+
readonly damping: 5;
|
|
169
|
+
readonly mass: 0.7;
|
|
170
|
+
readonly stiffness: 180;
|
|
171
|
+
};
|
|
57
172
|
readonly bouncy: {
|
|
58
173
|
readonly type: "spring";
|
|
59
174
|
readonly damping: 9;
|
|
60
175
|
readonly mass: 0.9;
|
|
61
|
-
readonly stiffness:
|
|
176
|
+
readonly stiffness: 120;
|
|
177
|
+
};
|
|
178
|
+
readonly superLazy: {
|
|
179
|
+
readonly type: "spring";
|
|
180
|
+
readonly damping: 25;
|
|
181
|
+
readonly mass: 2;
|
|
182
|
+
readonly stiffness: 25;
|
|
62
183
|
};
|
|
63
184
|
readonly lazy: {
|
|
64
185
|
readonly type: "spring";
|
|
65
186
|
readonly damping: 18;
|
|
66
|
-
readonly
|
|
187
|
+
readonly mass: 0.2;
|
|
188
|
+
readonly stiffness: 10;
|
|
67
189
|
};
|
|
68
|
-
readonly
|
|
190
|
+
readonly medium: {
|
|
191
|
+
readonly damping: 16;
|
|
192
|
+
readonly stiffness: 90;
|
|
193
|
+
readonly mass: 0.8;
|
|
194
|
+
};
|
|
195
|
+
readonly slowest: {
|
|
69
196
|
readonly type: "spring";
|
|
70
197
|
readonly damping: 15;
|
|
71
|
-
readonly stiffness:
|
|
198
|
+
readonly stiffness: 10;
|
|
72
199
|
};
|
|
73
|
-
readonly
|
|
200
|
+
readonly slow: {
|
|
74
201
|
readonly type: "spring";
|
|
75
|
-
readonly damping:
|
|
76
|
-
readonly
|
|
77
|
-
readonly stiffness: 120;
|
|
202
|
+
readonly damping: 45;
|
|
203
|
+
readonly stiffness: 60;
|
|
78
204
|
};
|
|
79
205
|
readonly quick: {
|
|
80
206
|
readonly type: "spring";
|
|
81
|
-
readonly damping:
|
|
82
|
-
readonly mass: 1
|
|
83
|
-
readonly stiffness:
|
|
207
|
+
readonly damping: 25;
|
|
208
|
+
readonly mass: 1;
|
|
209
|
+
readonly stiffness: 550;
|
|
210
|
+
};
|
|
211
|
+
readonly quickLessBouncy: {
|
|
212
|
+
readonly type: "spring";
|
|
213
|
+
readonly damping: 40;
|
|
214
|
+
readonly mass: 2;
|
|
215
|
+
readonly stiffness: 400;
|
|
216
|
+
};
|
|
217
|
+
readonly quicker: {
|
|
218
|
+
readonly type: "spring";
|
|
219
|
+
readonly damping: 16;
|
|
220
|
+
readonly mass: 0.6;
|
|
221
|
+
readonly stiffness: 700;
|
|
222
|
+
};
|
|
223
|
+
readonly quickerLessBouncy: {
|
|
224
|
+
readonly type: "spring";
|
|
225
|
+
readonly damping: 27;
|
|
226
|
+
readonly mass: 0.45;
|
|
227
|
+
readonly stiffness: 750;
|
|
228
|
+
};
|
|
229
|
+
readonly quickest: {
|
|
230
|
+
readonly damping: 15;
|
|
231
|
+
readonly mass: 0.6;
|
|
232
|
+
readonly stiffness: 400;
|
|
233
|
+
};
|
|
234
|
+
readonly quickestLessBouncy: {
|
|
235
|
+
readonly damping: 24;
|
|
236
|
+
readonly mass: 0.35;
|
|
237
|
+
readonly stiffness: 750;
|
|
84
238
|
};
|
|
85
239
|
readonly tooltip: {
|
|
86
240
|
readonly type: "spring";
|
|
87
|
-
readonly damping:
|
|
88
|
-
readonly
|
|
89
|
-
readonly stiffness: 100;
|
|
241
|
+
readonly damping: 45;
|
|
242
|
+
readonly stiffness: 60;
|
|
90
243
|
};
|
|
91
244
|
readonly snappy: {
|
|
92
|
-
readonly
|
|
93
|
-
readonly
|
|
94
|
-
readonly
|
|
95
|
-
readonly stiffness: 350;
|
|
245
|
+
readonly damping: 15;
|
|
246
|
+
readonly mass: 0.6;
|
|
247
|
+
readonly stiffness: 400;
|
|
96
248
|
};
|
|
97
249
|
readonly gentle: {
|
|
98
250
|
readonly type: "spring";
|
|
99
|
-
readonly damping:
|
|
100
|
-
readonly mass: 1.4;
|
|
251
|
+
readonly damping: 45;
|
|
101
252
|
readonly stiffness: 60;
|
|
102
253
|
};
|
|
103
254
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reactNative.d.ts","sourceRoot":"","sources":["../../../src/theme/animations/reactNative.ts"],"names":[],"mappings":"AAEA
|
|
1
|
+
{"version":3,"file":"reactNative.d.ts","sourceRoot":"","sources":["../../../src/theme/animations/reactNative.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6HlB,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,eAAe,CAAC;AACzD,eAAO,MAAM,cAAc,EAAmC,aAAa,EAAE,CAAC;AAC9E,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAoC,CAAC"}
|
|
@@ -37,13 +37,21 @@ export interface ChartPalette {
|
|
|
37
37
|
export interface ResolveChartPaletteInput {
|
|
38
38
|
scheme: "light" | "dark";
|
|
39
39
|
/**
|
|
40
|
-
* Resolved theme-identity solid —
|
|
40
|
+
* Resolved theme-identity solid — the accent solid in base themes, the
|
|
41
41
|
* re-ramped `$color9` under a tint. Tries the ordered candidates, then
|
|
42
42
|
* falls back to violet when missing, unparseable or below the contrast floor.
|
|
43
43
|
*/
|
|
44
44
|
identitySolid?: string;
|
|
45
45
|
/** Ordered alternatives when the identity cannot meet the mark contrast floor. */
|
|
46
46
|
identityCandidates?: readonly (string | undefined)[];
|
|
47
|
+
/**
|
|
48
|
+
* The active colour theme's page and Card fills (`$color2` and `$color3`
|
|
49
|
+
* under v5's templates, the same in every sub-theme of that colour). A
|
|
50
|
+
* tint's surfaces are deeper than the reference whites, so the identity
|
|
51
|
+
* must clear them too, and one palette serves a chart on the page or in a
|
|
52
|
+
* Card.
|
|
53
|
+
*/
|
|
54
|
+
surfaces?: readonly (string | undefined)[];
|
|
47
55
|
}
|
|
48
56
|
/**
|
|
49
57
|
* Pure palette resolution — see {@link ChartPalette} for the contract.
|
|
@@ -54,7 +62,7 @@ export declare function resolveChartPalette(input: ResolveChartPaletteInput): Ch
|
|
|
54
62
|
/**
|
|
55
63
|
* The accent solids ordered nearest-first in luminance to `identity`, so a
|
|
56
64
|
* chart identity that misses the 3:1 mark floor on the reference cards falls
|
|
57
|
-
* to the next accent step before a neutral one.
|
|
65
|
+
* to the next accent step before a neutral one. The accent solid is held
|
|
58
66
|
* to the text floor (MPO-448), which in dark lands it one step deeper than
|
|
59
67
|
* the marks need; the chart keeps the accent channel on the step beside it.
|
|
60
68
|
*/
|
|
@@ -64,7 +72,7 @@ export declare function accentIdentityCandidates(identity: string | undefined, s
|
|
|
64
72
|
*
|
|
65
73
|
* Reads scheme and tint from the resolved theme name and the identity solid
|
|
66
74
|
* from the active theme (`$color9` under a tint — the re-ramped neutral
|
|
67
|
-
* solid — otherwise
|
|
75
|
+
* solid — otherwise the accent solid). Chart chrome MUST take its default
|
|
68
76
|
* series colors from this hook; explicit `color`/`colors` props on chart
|
|
69
77
|
* data are user values and pass through untouched.
|
|
70
78
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chartPalette.d.ts","sourceRoot":"","sources":["../../src/theme/chartPalette.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"chartPalette.d.ts","sourceRoot":"","sources":["../../src/theme/chartPalette.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,WAAW,YAAY;IAC3B,uCAAuC;IACvC,MAAM,EAAE,OAAO,GAAG,MAAM,CAAC;IACzB,wEAAwE;IACxE,MAAM,EAAE,MAAM,CAAC;IACf,6EAA6E;IAC7E,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,sEAAsE;IACtE,QAAQ,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;CAC/D;AAED,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE,OAAO,GAAG,MAAM,CAAC;IACzB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kFAAkF;IAClF,kBAAkB,CAAC,EAAE,SAAS,CAAC,MAAM,GAAG,SAAS,CAAC,EAAE,CAAC;IACrD;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC,MAAM,GAAG,SAAS,CAAC,EAAE,CAAC;CAC5C;AA6ID;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,GAAG,YAAY,CAyBjF;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACtC,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,MAAM,EAAE,SAAS,CAAC,MAAM,GAAG,SAAS,CAAC,EAAE,GACtC,MAAM,EAAE,CAaV;AAED;;;;;;;;GAQG;AACH,wBAAgB,eAAe,IAAI,YAAY,CA8B9C"}
|
|
@@ -122,7 +122,7 @@ export interface ButtonColorConfig extends ComponentColorConfig {
|
|
|
122
122
|
}
|
|
123
123
|
export declare const buttonColors: ButtonColorConfig;
|
|
124
124
|
export declare const inputColors: ComponentColorConfig;
|
|
125
|
-
export declare function $color(step: ColorStep): "$color3" | "$color1" | "$color2" | "$color12" | "$color7" | "$color4" | "$color5" | "$color9" | "$
|
|
125
|
+
export declare function $color(step: ColorStep): "$color3" | "$color1" | "$color2" | "$color12" | "$color7" | "$color4" | "$color5" | "$color9" | "$color6" | "$color10" | "$color11" | "$color8";
|
|
126
126
|
export interface SemanticGroup {
|
|
127
127
|
key: string;
|
|
128
128
|
label: string;
|
package/types/theme/cookies.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* Old cookie formats (`mp.overrides`, `mp.overrides0`, …) are NOT migrated —
|
|
10
10
|
* stale cookies are silently ignored/overwritten.
|
|
11
11
|
*/
|
|
12
|
-
import type
|
|
12
|
+
import { type Knobs } from "./knobs";
|
|
13
13
|
/** Cookie key for the active preset name. */
|
|
14
14
|
export declare const cookiePreset = "mp.preset";
|
|
15
15
|
/** Cookie key prefix for knob overrides (chunked). */
|
|
@@ -24,6 +24,17 @@ export declare function splitCookieValue(value: string): string[];
|
|
|
24
24
|
* Reconstruct a cookie value from its split chunks.
|
|
25
25
|
*/
|
|
26
26
|
export declare function joinSplitCookieValues(chunks: string[]): string;
|
|
27
|
+
/** True when `key` names a live knob (stale and foreign names are not). */
|
|
28
|
+
export declare function isKnobKey(key: string): key is keyof Knobs;
|
|
29
|
+
/**
|
|
30
|
+
* Shape-validate a parsed overrides payload before it reaches knob
|
|
31
|
+
* resolution: keep knob-shaped entries — string values plus one-level
|
|
32
|
+
* StateKnobs-style objects of string values (`hover`, `press`, …) — under a
|
|
33
|
+
* known knob name, and drop everything else, so a corrupt, foreign or stale
|
|
34
|
+
* cookie can never spread garbage (unknown keys, arrays, numbers, deep
|
|
35
|
+
* objects) into `{ ...preset.knobs, ...overrides }`.
|
|
36
|
+
*/
|
|
37
|
+
export declare function sanitizeOverrides(parsed: unknown): Partial<Knobs>;
|
|
27
38
|
/**
|
|
28
39
|
* Read the overrides cookie value, handling chunked cookies.
|
|
29
40
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cookies.d.ts","sourceRoot":"","sources":["../../src/theme/cookies.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,
|
|
1
|
+
{"version":3,"file":"cookies.d.ts","sourceRoot":"","sources":["../../src/theme/cookies.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,EAAE,KAAK,KAAK,EAAyD,MAAM,SAAS,CAAC;AAM5F,6CAA6C;AAC7C,eAAO,MAAM,YAAY,cAAc,CAAC;AAExC,sDAAsD;AACtD,eAAO,MAAM,qBAAqB,UAAU,CAAC;AAY7C;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CASxD;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,CAE9D;AAqBD,2EAA2E;AAC3E,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,IAAI,MAAM,KAAK,CAEzD;AAaD;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,CAAC,KAAK,CAAC,CAuBjE;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,CAwBpF;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,GAAG,SAAS,CAGrF;AAMD;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,MAAM,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAEpF;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,OAAO,CAAC,KAAK,CAAC,GAAG;IAC/D,KAAK,EAAE,KAAK,CAAC;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC7C,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB,CAgBA;AAMD;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,CAQ5E;AAMD;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,MAAM,EAAE,CAM7C;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,OAAO,CAAC,KAAK,CAAC,GAAG,IAAI,CAQtE;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,GAC9C,OAAO,CAAC,KAAK,CAAC,CAGhB"}
|
|
@@ -14,9 +14,10 @@ import { type ThemeSubset } from "./subsetThemes";
|
|
|
14
14
|
* against v5, never against v4 or the legacy root exports. Asserted by the
|
|
15
15
|
* era block in `createDefaultThemeConfig.spec.ts`.
|
|
16
16
|
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
17
|
+
* The non-color tokens and the body/heading type tables come from one
|
|
18
|
+
* generator (`scale/generateScale.ts`), spec-pinned to the v5 values at the
|
|
19
|
+
* default inputs, so `$size`/`$space` props and the size recipes read the
|
|
20
|
+
* same numbers.
|
|
20
21
|
*/
|
|
21
22
|
export declare const TAMAGUI_ERA: "v5";
|
|
22
23
|
/** MPO-19 proof alias — same pin as `TAMAGUI_ERA`. */
|
|
@@ -32,7 +33,7 @@ export interface CreateDefaultThemeConfigOptions {
|
|
|
32
33
|
fonts?: Record<string, GenericFont>;
|
|
33
34
|
/** Animation config (defaults to framework reanimated animations) */
|
|
34
35
|
animations?: CreateTamaguiProps["animations"];
|
|
35
|
-
/** Options for the theme builder (grandChildrenThemes, getTheme) */
|
|
36
|
+
/** Options for the theme builder (componentThemes, grandChildrenThemes, getTheme) */
|
|
36
37
|
builderOptions?: CreateThemesBuilderOptions;
|
|
37
38
|
/** Override tamagui settings */
|
|
38
39
|
settings?: Partial<NonNullable<CreateTamaguiProps["settings"]>>;
|
|
@@ -43,10 +44,11 @@ export interface CreateDefaultThemeConfigOptions {
|
|
|
43
44
|
/** Default preset name to use when no `mp.preset` cookie is set */
|
|
44
45
|
defaultPreset?: string;
|
|
45
46
|
/**
|
|
46
|
-
* Size-recipe inputs (LC-70). Merged over
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
47
|
+
* Size-recipe inputs (LC-70). Merged over the inputs derived from the
|
|
48
|
+
* default scale (`defaultRecipeInputs`); tables are generated, written into
|
|
49
|
+
* the live aliases Button/Input already import, and attached on
|
|
50
|
+
* ThemeConfig as `recipeInputs` / `recipeFamilies`. Not written into
|
|
51
|
+
* Tamagui `themes` (those stay color palettes from createThemes /
|
|
50
52
|
* theme-builder).
|
|
51
53
|
*/
|
|
52
54
|
recipeInputs?: Partial<SizeRecipeInputs>;
|
|
@@ -58,11 +60,9 @@ export interface CreateDefaultThemeConfigOptions {
|
|
|
58
60
|
subset?: ThemeSubset;
|
|
59
61
|
}
|
|
60
62
|
/**
|
|
61
|
-
* Builds
|
|
62
|
-
* with
|
|
63
|
-
*
|
|
64
|
-
* heading/body fonts, the category fonts the bodyFont knob resolves, and the
|
|
65
|
-
* interaction-ramp `getTheme` theme builder.
|
|
63
|
+
* Builds Tamagui's v5 grey ramp, inverted-base accent and colour themes,
|
|
64
|
+
* with the house accessibility floors. Fonts include Inter heading/body
|
|
65
|
+
* and the category faces selected by the bodyFont knob.
|
|
66
66
|
* Every option overrides its piece independently: `base` and `accent` each
|
|
67
67
|
* replace their default, `fonts` are spread OVER the defaults so a partial
|
|
68
68
|
* font map keeps the default heading/body and category faces, and `builderOptions.getTheme`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createDefaultThemeConfig.d.ts","sourceRoot":"","sources":["../../src/theme/createDefaultThemeConfig.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE/D,OAAO,EACL,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAE/B,KAAK,sBAAsB,EAE5B,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"createDefaultThemeConfig.d.ts","sourceRoot":"","sources":["../../src/theme/createDefaultThemeConfig.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE/D,OAAO,EACL,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAE/B,KAAK,sBAAsB,EAE5B,MAAM,gBAAgB,CAAC;AAMxB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAGvD,OAAO,EAAE,KAAK,WAAW,EAAqB,MAAM,UAAU,CAAC;AAG/D,OAAO,EAAE,KAAK,WAAW,EAAgB,MAAM,gBAAgB,CAAC;AAEhE;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,WAAW,EAAG,IAAa,CAAC;AACzC,sDAAsD;AACtD,eAAO,MAAM,UAAU,MAAc,CAAC;AAEtC,MAAM,WAAW,+BAA+B;IAC9C,oGAAoG;IACpG,IAAI,CAAC,EAAE,0BAA0B,CAAC;IAClC,mEAAmE;IACnE,MAAM,CAAC,EAAE,sBAAsB,CAAC;IAChC,oDAAoD;IACpD,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAC;IAC1D,iFAAiF;IACjF,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IACpC,qEAAqE;IACrE,UAAU,CAAC,EAAE,kBAAkB,CAAC,YAAY,CAAC,CAAC;IAC9C,qFAAqF;IACrF,cAAc,CAAC,EAAE,0BAA0B,CAAC;IAC5C,gCAAgC;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;IAChE,qDAAqD;IACrD,OAAO,CAAC,EAAE,OAAO,CAAC,kBAAkB,CAAC,CAAC;IACtC,gDAAgD;IAChD,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,mEAAmE;IACnE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;;;;OAOG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC;IACzC;;;;OAIG;IACH,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAiCD;;;;;;;;;GASG;AACH,wBAAgB,wBAAwB,CACtC,OAAO,GAAE,+BAAoC,GAC5C,WAAW,CAkEb"}
|
|
@@ -1,4 +1,59 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createThemes as tamaguiCreateThemes } from "@tamagui/theme-builder";
|
|
2
|
+
export declare const houseComponentThemes: {
|
|
3
|
+
readonly Button: {
|
|
4
|
+
readonly template: "surface2";
|
|
5
|
+
};
|
|
6
|
+
readonly Input: {
|
|
7
|
+
readonly template: "surface1";
|
|
8
|
+
};
|
|
9
|
+
readonly TextArea: {
|
|
10
|
+
readonly template: "surface1";
|
|
11
|
+
};
|
|
12
|
+
readonly Progress: {
|
|
13
|
+
readonly template: "surface1";
|
|
14
|
+
};
|
|
15
|
+
readonly ProgressIndicator: {
|
|
16
|
+
readonly template: "surface3";
|
|
17
|
+
};
|
|
18
|
+
readonly Slider: {
|
|
19
|
+
readonly template: "surface1";
|
|
20
|
+
};
|
|
21
|
+
readonly SliderActive: {
|
|
22
|
+
readonly template: "surface3";
|
|
23
|
+
};
|
|
24
|
+
readonly SliderThumb: {
|
|
25
|
+
readonly template: "surface2";
|
|
26
|
+
};
|
|
27
|
+
readonly Switch: {
|
|
28
|
+
readonly template: "surface2";
|
|
29
|
+
};
|
|
30
|
+
readonly Card: {
|
|
31
|
+
readonly template: "surface1";
|
|
32
|
+
};
|
|
33
|
+
readonly ListItem: {
|
|
34
|
+
readonly template: "surface1";
|
|
35
|
+
};
|
|
36
|
+
readonly SelectTrigger: {
|
|
37
|
+
readonly template: "surface1";
|
|
38
|
+
};
|
|
39
|
+
readonly SelectItem: {
|
|
40
|
+
readonly template: "surface1";
|
|
41
|
+
};
|
|
42
|
+
readonly InputContainerFrame: {
|
|
43
|
+
readonly template: "surface1";
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
export declare const houseGrandChildrenThemes: {
|
|
47
|
+
readonly active: {
|
|
48
|
+
readonly template: "surface3";
|
|
49
|
+
};
|
|
50
|
+
readonly alt1: {
|
|
51
|
+
readonly template: "surface1";
|
|
52
|
+
};
|
|
53
|
+
readonly alt2: {
|
|
54
|
+
readonly template: "surface2";
|
|
55
|
+
};
|
|
56
|
+
};
|
|
2
57
|
export interface Shadows {
|
|
3
58
|
shadow1: string;
|
|
4
59
|
shadow2: string;
|
|
@@ -25,7 +80,8 @@ export interface GetThemeProps {
|
|
|
25
80
|
palette?: string[];
|
|
26
81
|
}
|
|
27
82
|
export interface CreateThemesBuilderOptions {
|
|
28
|
-
|
|
83
|
+
componentThemes?: Parameters<typeof tamaguiCreateThemes>[0]["componentThemes"];
|
|
84
|
+
grandChildrenThemes?: Parameters<typeof tamaguiCreateThemes>[0]["grandChildrenThemes"];
|
|
29
85
|
getTheme?: (props: GetThemeProps) => Record<string, string | number | null | undefined>;
|
|
30
86
|
}
|
|
31
87
|
export declare const tintHueNames: Set<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createThemes.d.ts","sourceRoot":"","sources":["../../src/theme/createThemes.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"createThemes.d.ts","sourceRoot":"","sources":["../../src/theme/createThemes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,IAAI,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAsC7E,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAevB,CAAC;AAEX,eAAO,MAAM,wBAAwB;;;;;;;;;;CAI3B,CAAC;AAEX,MAAM,WAAW,OAAO;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,sBAAsB,CACrC,WAAW,SAAS,MAAM,EAAE,GAAG,MAAM,EAAE,EACvC,YAAY,SAAS,MAAM,EAAE,GAAG,MAAM,EAAE;IAExC,WAAW,EAAE,WAAW,CAAC;IACzB,YAAY,EAAE,YAAY,CAAC;CAC5B;AAED,MAAM,WAAW,0BAA0B,CACzC,WAAW,SAAS,MAAM,EAAE,GAAG,MAAM,EAAE,EACvC,YAAY,SAAS,MAAM,EAAE,GAAG,MAAM,EAAE,EACxC,WAAW,SAAS,OAAO,GAAG,OAAO,EACrC,YAAY,SAAS,OAAO,GAAG,OAAO,CACtC,SAAQ,sBAAsB,CAAC,WAAW,EAAE,YAAY,CAAC;IACzD,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,MAAM,WAAW,0BAA0B;IACzC,eAAe,CAAC,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC;IAC/E,mBAAmB,CAAC,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC;IACvF,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC,CAAC;CACzF;AA8BD,eAAO,MAAM,YAAY,aA6BvB,CAAC;AAsTH,wBAAgB,mBAAmB,CACjC,SAAS,EAAE,0BAA0B,EACrC,WAAW,EAAE,sBAAsB,EACnC,OAAO,CAAC,EAAE,0BAA0B;;aA6EzB,CAAC,SAAS,MAAM,QAAQ,CAAC,SAAS,sBAAsB,GAuB1D,MAAM,CAAC,QAAQ,CAAC,EAAE,GAAG,SAAS,CAAC,EAAE;;+BAAkC;EAG7E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accent.d.ts","sourceRoot":"","sources":["../../../src/theme/defaults/accent.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"accent.d.ts","sourceRoot":"","sources":["../../../src/theme/defaults/accent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAE9D,eAAO,MAAM,kBAAkB,EAAE,sBAGhC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/theme/defaults/base.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/theme/defaults/base.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAGlE,eAAO,MAAM,gBAAgB,EAAE,0BAmB9B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builderOptions.d.ts","sourceRoot":"","sources":["../../../src/theme/defaults/builderOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAiB,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"builderOptions.d.ts","sourceRoot":"","sources":["../../../src/theme/defaults/builderOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAiB,MAAM,iBAAiB,CAAC;AA0HjF,eAAO,MAAM,qBAAqB,EAAE,0BA+CnC,CAAC"}
|
|
@@ -9,6 +9,16 @@
|
|
|
9
9
|
* and another there, which is the same one-source failure MPO-44 was about.
|
|
10
10
|
*/
|
|
11
11
|
export declare const defaultCategoryFonts: {
|
|
12
|
+
headingSerif: import("tamagui").GenericFont;
|
|
13
|
+
headingMono: import("tamagui").GenericFont;
|
|
14
|
+
headingSlab: import("tamagui").GenericFont;
|
|
15
|
+
headingRounded: import("tamagui").GenericFont;
|
|
16
|
+
headingCondensed: import("tamagui").GenericFont;
|
|
17
|
+
headingCursive: import("tamagui").GenericFont;
|
|
18
|
+
headingHandwriting: import("tamagui").GenericFont;
|
|
19
|
+
headingPixel: import("tamagui").GenericFont;
|
|
20
|
+
headingBlackletter: import("tamagui").GenericFont;
|
|
21
|
+
headingGeometric: import("tamagui").GenericFont;
|
|
12
22
|
serif: import("tamagui").GenericFont;
|
|
13
23
|
mono: import("tamagui").GenericFont;
|
|
14
24
|
slab: import("tamagui").GenericFont;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"categoryFonts.d.ts","sourceRoot":"","sources":["../../../src/theme/defaults/categoryFonts.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"categoryFonts.d.ts","sourceRoot":"","sources":["../../../src/theme/defaults/categoryFonts.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;CAqBhC,CAAC"}
|