@multiplatform.one/theme 7.34.3 → 7.35.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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"knobs.d.ts","sourceRoot":"","sources":["../../src/theme/knobs.ts"],"names":[],"mappings":"AAEA,sHAAsH;AACtH,eAAO,MAAM,SAAS;;;CAAsD,CAAC;AAC7E,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC;AAUnE,eAAO,MAAM,YAAY;;;;;;CAMf,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC;AAE5E;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,eAAe;;;CAGlB,CAAC;AACX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;AAErF,eAAO,MAAM,WAAW;;;;;CAKd,CAAC;AACX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC;AAEzE,eAAO,MAAM,SAAS;;;;;CAKZ,CAAC;AACX,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"knobs.d.ts","sourceRoot":"","sources":["../../src/theme/knobs.ts"],"names":[],"mappings":"AAEA,sHAAsH;AACtH,eAAO,MAAM,SAAS;;;CAAsD,CAAC;AAC7E,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC;AAUnE,eAAO,MAAM,YAAY;;;;;;CAMf,CA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C/B,gDAAgD;IAChD,cAAc,EAAE,cAAc,CAAC;IAC/B,oDAAoD;IACpD,aAAa,EAAE,aAAa,CAAC;IAC7B,0CAA0C;IAC1C,aAAa,EAAE,aAAa,CAAC;IAC7B,KAAK,EAAE,UAAU,CAAC;IAClB,KAAK,EAAE,UAAU,CAAC;IAClB,KAAK,EAAE,UAAU,CAAC;IAClB,YAAY,EAAE,UAAU,CAAC;CAC1B;AAID,eAAO,MAAM,eAAe,EAAE,UAAe,CAAC;AAE9C,eAAO,MAAM,YAAY,EAAE,KAwB1B,CAAC"}
|
|
@@ -116,6 +116,14 @@ export type ReadingWidthStyle = {
|
|
|
116
116
|
};
|
|
117
117
|
/** Style props for prose / long-form columns. Pass `null`/`"none"` to eject. */
|
|
118
118
|
export declare function readingWidthStyle(measure?: number | "none" | null): ReadingWidthStyle | Record<string, never>;
|
|
119
|
+
/**
|
|
120
|
+
* A form column's readable max width: wide enough for two FormGrid columns
|
|
121
|
+
* (FORM_GRID_COLLAPSE_WIDTH 480), narrow enough that a label, its field and
|
|
122
|
+
* the actions read as one group on a wide screen. Inside the 480-640 band.
|
|
123
|
+
*/
|
|
124
|
+
export declare const FORM_READABLE_WIDTH = 560;
|
|
125
|
+
export declare const FORM_READABLE_WIDTH_MIN = 480;
|
|
126
|
+
export declare const FORM_READABLE_WIDTH_MAX = 640;
|
|
119
127
|
/** Platform floor for interactive targets (Fluent/HIG web+iOS 44; M3 48 on Android). */
|
|
120
128
|
export declare const MIN_PRESS_TARGET = 44;
|
|
121
129
|
/** Touch surfaces — native touchable or web touchable (LC-67). */
|
|
@@ -170,10 +178,14 @@ export declare const OVERLAY_ANCHOR_GAP = 4;
|
|
|
170
178
|
*/
|
|
171
179
|
export declare const OVERLAY_ATTACH_GAP = 0;
|
|
172
180
|
/**
|
|
173
|
-
* Semantic spacing roles
|
|
181
|
+
* Semantic spacing roles (SP-GAP): `tight` → `knobProps.gapSm`,
|
|
174
182
|
* `within-group` → `knobProps.gap`, `between-groups` → `knobProps.gapLg`.
|
|
183
|
+
* Fixed `$space` keys; the active scale supplies their px.
|
|
175
184
|
*/
|
|
176
185
|
export declare function useSemanticGaps(): {
|
|
186
|
+
tight: {
|
|
187
|
+
gap: string;
|
|
188
|
+
};
|
|
177
189
|
withinGroup: {
|
|
178
190
|
gap: string;
|
|
179
191
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layoutTokens.d.ts","sourceRoot":"","sources":["../../src/theme/layoutTokens.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AASH,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,QAAQ,GAAG,UAAU,GAAG,OAAO,GAAG,IAAI,CAAC;AAEjF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,iBAAiB;IAC5B,uCAAuC;;IAEvC,qBAAqB;;IAErB;;;;OAIG;;IAEH;;;;;;OAMG;;IAEH,0EAA0E;;IAE1E,qBAAqB;;IAErB,qBAAqB;;IAErB,sBAAsB;;CAEd,CAAC;AAEX,MAAM,MAAM,oBAAoB,GAAG,MAAM,OAAO,iBAAiB,CAAC;AAElE;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB,KAA2B,CAAC;AAE3D,6EAA6E;AAC7E,eAAO,MAAM,iBAAiB,KAA2B,CAAC;AAE1D,eAAO,MAAM,uBAAuB,EAAE,SAAS,eAAe,EAMpD,CAAC;AAEX,mEAAmE;AACnE,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,eAAe,CAMjE;AAED,qFAAqF;AACrF,wBAAgB,eAAe,CAAC,SAAS,EAAE,eAAe,GAAG,CAAC,GAAG,CAAC,CAEjE;AAED,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,eAAe,EACxB,OAAO,EAAE,eAAe,GACvB,OAAO,CAET;AA8BD;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,IAAI,eAAe,CAQpD;AAED,8DAA8D;AAC9D,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|
|
1
|
+
import type { TamaguiInternalConfig } from "@tamagui/web";
|
|
2
|
+
export type TokensGlobal = {
|
|
3
|
+
__tamaguiTokensMerged?: unknown;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* The `$`-prefixed and bare token lookup `getTokenValue("$4", "size")` reads.
|
|
7
|
+
* `createTamagui` publishes it as a global beside the config, so installing a
|
|
8
|
+
* config without it would leave token reads on the previous config's values.
|
|
9
|
+
*/
|
|
10
|
+
export declare function mergedTokens(config: TamaguiInternalConfig): Record<string, Record<string, unknown>>;
|
|
11
|
+
//# sourceMappingURL=mergedTokens.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mergedTokens.d.ts","sourceRoot":"","sources":["../../src/theme/mergedTokens.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAE1D,MAAM,MAAM,YAAY,GAAG;IAAE,qBAAqB,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAE/D;;;;GAIG;AACH,wBAAgB,YAAY,CAC1B,MAAM,EAAE,qBAAqB,GAC5B,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAQzC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { TransitionProp } from "tamagui";
|
|
2
|
+
import type { Animation } from "./knobs";
|
|
3
|
+
export { motionDurationMs, motionHideDelayMs, motionSeconds, motionSettleMs } from "./motionTiming";
|
|
4
|
+
export type MotionRoleName = "control" | "overlay" | "scrim" | "reveal" | "slide";
|
|
5
|
+
export interface MotionRole {
|
|
6
|
+
transition: TransitionProp | undefined;
|
|
7
|
+
animateOnly: readonly string[];
|
|
8
|
+
}
|
|
9
|
+
export declare const motionRoleProperties: {
|
|
10
|
+
readonly control: readonly ["backgroundColor", "borderColor", "color", "opacity", "transform"];
|
|
11
|
+
readonly overlay: readonly ["opacity", "transform"];
|
|
12
|
+
readonly scrim: readonly ["opacity"];
|
|
13
|
+
readonly reveal: readonly ["height", "opacity", "transform"];
|
|
14
|
+
readonly slide: readonly ["opacity", "transform"];
|
|
15
|
+
};
|
|
16
|
+
export declare function motionFor(stop: Animation): Record<MotionRoleName, MotionRole>;
|
|
17
|
+
//# sourceMappingURL=motion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"motion.d.ts","sourceRoot":"","sources":["../../src/theme/motion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAIzC,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEpG,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAElF,MAAM,WAAW,UAAU;IACzB,UAAU,EAAE,cAAc,GAAG,SAAS,CAAC;IACvC,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;CAChC;AAED,eAAO,MAAM,oBAAoB;;;;;;CAM6B,CAAC;AAa/D,wBAAgB,SAAS,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,CAAC,cAAc,EAAE,UAAU,CAAC,CAmB7E"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const motionStops: readonly ["quickestLessBouncy", "quickest", "quickerLessBouncy", "quicker", "quick", "quickLessBouncy", "medium", "superBouncy", "bouncy", "slow", "lazy", "superLazy", "slowest"];
|
|
2
|
+
export type MotionStop = (typeof motionStops)[number];
|
|
3
|
+
//# sourceMappingURL=motionStops.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"motionStops.d.ts","sourceRoot":"","sources":["../../src/theme/motionStops.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,oLAcd,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { TransitionProp } from "tamagui";
|
|
2
|
+
export declare const animationConfig: {
|
|
3
|
+
readonly "0ms": "0ms linear";
|
|
4
|
+
readonly "50ms": "50ms linear";
|
|
5
|
+
readonly "75ms": "75ms linear";
|
|
6
|
+
readonly "100ms": "100ms ease-out";
|
|
7
|
+
readonly "200ms": "200ms ease-out";
|
|
8
|
+
readonly "250ms": "250ms ease-out";
|
|
9
|
+
readonly "300ms": "300ms ease-out";
|
|
10
|
+
readonly "400ms": "400ms ease-out";
|
|
11
|
+
readonly "500ms": "500ms ease-out";
|
|
12
|
+
readonly superBouncy: "300ms cubic-bezier(0.175, 0.885, 0.32, 1.5)";
|
|
13
|
+
readonly bouncy: "350ms cubic-bezier(0.175, 0.885, 0.32, 1.275)";
|
|
14
|
+
readonly superLazy: "600ms cubic-bezier(0.25, 0.1, 0.25, 1)";
|
|
15
|
+
readonly lazy: "500ms cubic-bezier(0.25, 0.1, 0.25, 1)";
|
|
16
|
+
readonly medium: "300ms cubic-bezier(0.25, 0.1, 0.25, 1)";
|
|
17
|
+
readonly slowest: "800ms cubic-bezier(0.25, 0.1, 0.25, 1)";
|
|
18
|
+
readonly slow: "450ms cubic-bezier(0.25, 0.1, 0.25, 1)";
|
|
19
|
+
readonly quick: "150ms cubic-bezier(0.25, 0.1, 0.25, 1)";
|
|
20
|
+
readonly quickLessBouncy: "180ms cubic-bezier(0.25, 0.1, 0.25, 1)";
|
|
21
|
+
readonly quicker: "120ms cubic-bezier(0.25, 0.1, 0.25, 1)";
|
|
22
|
+
readonly quickerLessBouncy: "100ms cubic-bezier(0.25, 0.1, 0.25, 1)";
|
|
23
|
+
readonly quickest: "80ms cubic-bezier(0.25, 0.1, 0.25, 1)";
|
|
24
|
+
readonly quickestLessBouncy: "60ms cubic-bezier(0.25, 0.1, 0.25, 1)";
|
|
25
|
+
readonly tooltip: "450ms cubic-bezier(0.25, 0.1, 0.25, 1)";
|
|
26
|
+
readonly snappy: "80ms cubic-bezier(0.25, 0.1, 0.25, 1)";
|
|
27
|
+
readonly gentle: "450ms cubic-bezier(0.25, 0.1, 0.25, 1)";
|
|
28
|
+
};
|
|
29
|
+
export type AnimationName = keyof typeof animationConfig;
|
|
30
|
+
export declare const animationNames: AnimationName[];
|
|
31
|
+
export declare const animationDurations: Record<AnimationName, number>;
|
|
32
|
+
export declare function motionDurationMs(transition: TransitionProp | undefined): number;
|
|
33
|
+
export declare function motionSeconds(transition: TransitionProp | undefined): number;
|
|
34
|
+
export declare function motionSettleMs(transition: TransitionProp | undefined): number;
|
|
35
|
+
export declare function motionHideDelayMs(transition: TransitionProp | undefined): number;
|
|
36
|
+
//# sourceMappingURL=motionTiming.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"motionTiming.d.ts","sourceRoot":"","sources":["../../src/theme/motionTiming.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BlB,CAAC;AACX,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,eAAe,CAAC;AACzD,eAAO,MAAM,cAAc,EAAmC,aAAa,EAAE,CAAC;AAO9E,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,aAAa,EAAE,MAAM,CAE3B,CAAC;AAEnC,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,cAAc,GAAG,SAAS,GAAG,MAAM,CAK/E;AAED,wBAAgB,aAAa,CAAC,UAAU,EAAE,cAAc,GAAG,SAAS,GAAG,MAAM,CAE5E;AAED,wBAAgB,cAAc,CAAC,UAAU,EAAE,cAAc,GAAG,SAAS,GAAG,MAAM,CAE7E;AAED,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,cAAc,GAAG,SAAS,GAAG,MAAM,CAEhF"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import { type DialogContentProps as TamaguiDialogContentProps, type SizeTokens, type TamaguiElement } from "tamagui";
|
|
3
|
+
type OpenAutoFocus = (event: Event) => void;
|
|
4
|
+
/**
|
|
5
|
+
* The house open focus for a raw `Dialog.Content`, which `DialogContent` and
|
|
6
|
+
* `AlertDialogContent` already run: render it inside the content. When
|
|
7
|
+
* `<dialog>.show()` left focus off a tab stop, the caller's `onOpenAutoFocus`
|
|
8
|
+
* runs, then the first tabbable takes focus (MPO-470).
|
|
9
|
+
*/
|
|
10
|
+
export declare function DialogShowFocus({ onOpenAutoFocus }: {
|
|
11
|
+
onOpenAutoFocus?: OpenAutoFocus;
|
|
12
|
+
}): null;
|
|
13
|
+
export interface DialogRegionContextValue {
|
|
14
|
+
/** True inside a dialog surface — dialog action rules apply (DG-OVL-04). */
|
|
15
|
+
inDialogRegion: boolean;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* `DialogContent` and `AlertDialogContent` provide this automatically. Wrap custom dialog-like
|
|
19
|
+
* surfaces (sheet-as-dialog, hand-rolled dialog chrome) so their action rows
|
|
20
|
+
* inherit dialog rules such as the max-2-actions cap (DG-OVL-04).
|
|
21
|
+
*/
|
|
22
|
+
export declare const DialogRegionContext: import("react").Context<DialogRegionContextValue>;
|
|
23
|
+
export declare function useDialogRegionContext(): DialogRegionContextValue;
|
|
24
|
+
export declare function useIsInDialogRegion(): boolean;
|
|
25
|
+
export type DialogContentProps = Omit<TamaguiDialogContentProps, "size"> & {
|
|
26
|
+
children?: ReactNode;
|
|
27
|
+
size?: SizeTokens;
|
|
28
|
+
};
|
|
29
|
+
export declare const DialogContent: import("react").ForwardRefExoticComponent<Omit<TamaguiDialogContentProps, "size"> & {
|
|
30
|
+
children?: ReactNode;
|
|
31
|
+
size?: SizeTokens;
|
|
32
|
+
} & import("react").RefAttributes<TamaguiElement>>;
|
|
33
|
+
/**
|
|
34
|
+
* Knob-aware dialog scrim. Bare `Dialog.Overlay` carries no transition, so
|
|
35
|
+
* the backdrop popped in and out while the content faded (LC-24: enter/exit
|
|
36
|
+
* styles without a resolved token are dead code on the css driver). Pairs
|
|
37
|
+
* with `DialogContent`; `transition` drops to undefined at `animation=none`
|
|
38
|
+
* and under `prefers-reduced-motion`, which is the instant path.
|
|
39
|
+
*/
|
|
40
|
+
export declare const DialogOverlay: import("react").ForwardRefExoticComponent<Omit<import("@tamagui/web").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
41
|
+
elevation?: number | SizeTokens | undefined;
|
|
42
|
+
fullscreen?: boolean | undefined;
|
|
43
|
+
}>, keyof import("tamagui").StackVariants> & import("tamagui").StackVariants & {
|
|
44
|
+
forceMount?: boolean;
|
|
45
|
+
} & {
|
|
46
|
+
scope?: import("tamagui").DialogScopes;
|
|
47
|
+
} & {
|
|
48
|
+
children?: ReactNode;
|
|
49
|
+
} & import("react").RefAttributes<TamaguiElement>>;
|
|
50
|
+
export declare const AlertDialogContent: import("react").ForwardRefExoticComponent<Omit<TamaguiDialogContentProps, "size"> & {
|
|
51
|
+
children?: ReactNode;
|
|
52
|
+
size?: SizeTokens;
|
|
53
|
+
} & import("react").RefAttributes<TamaguiElement>>;
|
|
54
|
+
export declare const AlertDialogOverlay: import("react").ForwardRefExoticComponent<Omit<import("@tamagui/web").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
55
|
+
elevation?: number | SizeTokens | undefined;
|
|
56
|
+
fullscreen?: boolean | undefined;
|
|
57
|
+
}>, keyof import("tamagui").StackVariants> & import("tamagui").StackVariants & {
|
|
58
|
+
forceMount?: boolean;
|
|
59
|
+
} & {
|
|
60
|
+
scope?: import("tamagui").DialogScopes;
|
|
61
|
+
} & {
|
|
62
|
+
children?: ReactNode;
|
|
63
|
+
} & import("react").RefAttributes<TamaguiElement>>;
|
|
64
|
+
export declare const PopoverContent: import("react").ForwardRefExoticComponent<import("tamagui").StackNonStyleProps & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>> & import("@tamagui/web").WithPseudoProps<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>>> & import("@tamagui/web").WithMediaProps<import("@tamagui/web").WithThemeShorthandsAndPseudos<import("@tamagui/web").StackStyleBase, {}>> & {
|
|
65
|
+
children?: ReactNode;
|
|
66
|
+
/** Runs first; `preventDefault()` skips the house open focus. */
|
|
67
|
+
onOpenAutoFocus?: OpenAutoFocus;
|
|
68
|
+
} & import("react").RefAttributes<TamaguiElement>>;
|
|
69
|
+
export {};
|
|
70
|
+
//# sourceMappingURL=overlaySurfaces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"overlaySurfaces.d.ts","sourceRoot":"","sources":["../../src/theme/overlaySurfaces.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAML,KAAK,kBAAkB,IAAI,yBAAyB,EAEpD,KAAK,UAAU,EACf,KAAK,cAAc,EAEpB,MAAM,SAAS,CAAC;AAmDjB,KAAK,aAAa,GAAG,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;AAmC5C;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,EAAE,eAAe,EAAE,EAAE;IAAE,eAAe,CAAC,EAAE,aAAa,CAAA;CAAE,GAAG,IAAI,CAG9F;AAID,MAAM,WAAW,wBAAwB;IACvC,4EAA4E;IAC5E,cAAc,EAAE,OAAO,CAAC;CACzB;AAED;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,mDAE9B,CAAC;AAEH,wBAAgB,sBAAsB,IAAI,wBAAwB,CAEjE;AAED,wBAAgB,mBAAmB,IAAI,OAAO,CAE7C;AAQD,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,yBAAyB,EAAE,MAAM,CAAC,GAAG;IACzE,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,IAAI,CAAC,EAAE,UAAU,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,aAAa;eAJb,SAAS;WACb,UAAU;kDAcjB,CAAC;AA0CH;;;;;;GAMG;AACH,eAAO,MAAM,aAAa;;;;;;;;eAEiB,SAAS;kDAelD,CAAC;AAOH,eAAO,MAAM,kBAAkB;eAxFlB,SAAS;WACb,UAAU;kDAiGlB,CAAC;AAgCF,eAAO,MAAM,kBAAkB;;;;;;;;eAEY,SAAS;kDAelD,CAAC;AAiBH,eAAO,MAAM,cAAc;eALd,SAAS;IACpB,iEAAiE;sBAC/C,aAAa;kDAwBhC,CAAC"}
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import type { ThemeName } from "@tamagui/web";
|
|
2
2
|
import type { Knobs } from "./knobs";
|
|
3
|
+
import type { ScaleInputs } from "./scale/scaleInputs";
|
|
4
|
+
/**
|
|
5
|
+
* A preset is the whole composition a surface renders with: a Tamagui color
|
|
6
|
+
* theme, the knobs, the intent overrides, the tint sequence and the token
|
|
7
|
+
* scale. Names, fixed: `Preset` is this composition; `ThemeConfig` is the
|
|
8
|
+
* built Tamagui config (tokens + Tamagui color themes) it renders against;
|
|
9
|
+
* "theme" alone means a Tamagui color theme. UI copy calls a preset a Theme.
|
|
10
|
+
*/
|
|
3
11
|
export interface Preset {
|
|
4
12
|
/** Tamagui color theme (accent color). */
|
|
5
13
|
theme: ThemeName;
|
|
@@ -14,6 +22,14 @@ export interface Preset {
|
|
|
14
22
|
};
|
|
15
23
|
/** Tint sequence for color cycling across nested regions. */
|
|
16
24
|
tints: ThemeName[];
|
|
25
|
+
/**
|
|
26
|
+
* The token scale this preset renders on: `$size`, `$space`, `$radius`
|
|
27
|
+
* and the type tables are generated from these inputs, so a preset that
|
|
28
|
+
* needs more or less room says so here, never through knobs. Omitted =
|
|
29
|
+
* the default scale. Applies where the preset is the provider's active
|
|
30
|
+
* one; a nested `<Preset>` changes knobs, not tokens.
|
|
31
|
+
*/
|
|
32
|
+
scale?: ScaleInputs;
|
|
17
33
|
}
|
|
18
34
|
export type IntentOverride = Partial<Knobs> & {
|
|
19
35
|
[component: string]: Partial<Knobs> | string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preset.types.d.ts","sourceRoot":"","sources":["../../src/theme/preset.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"preset.types.d.ts","sourceRoot":"","sources":["../../src/theme/preset.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD;;;;;;GAMG;AACH,MAAM,WAAW,MAAM;IACrB,0CAA0C;IAC1C,KAAK,EAAE,SAAS,CAAC;IACjB,6BAA6B;IAC7B,KAAK,EAAE,KAAK,CAAC;IACb,sCAAsC;IACtC,OAAO,EAAE;QACP,MAAM,CAAC,EAAE,cAAc,CAAC;QACxB,KAAK,CAAC,EAAE,cAAc,CAAC;QACvB,OAAO,CAAC,EAAE,cAAc,CAAC;QACzB,OAAO,CAAC,EAAE,cAAc,CAAC;KAC1B,CAAC;IACF,6DAA6D;IAC7D,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,WAAW,CAAC;CACrB;AAED,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG;IAC5C,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,MAAM,GAAG,SAAS,CAAC;CAC1D,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface PresetPreviewColors {
|
|
2
|
+
background: string;
|
|
3
|
+
border: string;
|
|
4
|
+
ink: string;
|
|
5
|
+
accent: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* A preset's page, edge, ink and accent colours in `scheme`, read from the
|
|
9
|
+
* built themes. A preview cannot sit inside `<Theme name={scheme}>` instead:
|
|
10
|
+
* Tamagui swaps only the scheme of a coloured ancestor (`dark_blue` stays
|
|
11
|
+
* blue), so a neutral preset would pick up the active preset's hue.
|
|
12
|
+
*/
|
|
13
|
+
export declare function getPresetPreviewColors(hue: string | undefined, scheme: "light" | "dark"): PresetPreviewColors;
|
|
14
|
+
//# sourceMappingURL=presetPreview.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presetPreview.d.ts","sourceRoot":"","sources":["../../src/theme/presetPreview.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,mBAAmB;IAClC,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CACpC,GAAG,EAAE,MAAM,GAAG,SAAS,EACvB,MAAM,EAAE,OAAO,GAAG,MAAM,GACvB,mBAAmB,CAarB"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { Knobs } from "./knobs";
|
|
2
|
+
/**
|
|
3
|
+
* The persisted preset for platforms without cookies (native): the active
|
|
4
|
+
* preset name and its knob overrides, in `@multiplatform.one/store` storage
|
|
5
|
+
* (MMKV, else AsyncStorage) under the same `mp.preset` key the web cookie
|
|
6
|
+
* uses, plus `mp.ov` for the overrides JSON. One shared store, so every
|
|
7
|
+
* `useTheme()` and the ThemeProvider read the same state.
|
|
8
|
+
*/
|
|
9
|
+
export declare const storedOverridesKey = "mp.ov";
|
|
10
|
+
export interface StoredPresetState {
|
|
11
|
+
presetName?: string;
|
|
12
|
+
overrides: Partial<Knobs>;
|
|
13
|
+
/** False until storage has been read; providers hold first render until then. */
|
|
14
|
+
hydrated: boolean;
|
|
15
|
+
}
|
|
16
|
+
/** Read storage once. Synchronous backends (MMKV) hydrate before this returns. */
|
|
17
|
+
export declare function hydrateStoredPreset(): Promise<void>;
|
|
18
|
+
export declare function getStoredPreset(): StoredPresetState;
|
|
19
|
+
export declare function subscribeStoredPreset(listener: () => void): () => void;
|
|
20
|
+
/** Switch the stored preset; its overrides reset unless given. */
|
|
21
|
+
export declare function setStoredPreset(presetName: string | undefined, overrides?: Partial<Knobs>): void;
|
|
22
|
+
/** Replace the stored knob overrides of the current preset. */
|
|
23
|
+
export declare function setStoredOverrides(overrides: Partial<Knobs>): void;
|
|
24
|
+
export declare const presetChoicesKey = "mp.preset.by-user";
|
|
25
|
+
export interface PresetChoices {
|
|
26
|
+
/** The signed-out choice made on this device. */
|
|
27
|
+
device?: string;
|
|
28
|
+
/** Each signed-in user's choice, by user id. */
|
|
29
|
+
users: Record<string, string>;
|
|
30
|
+
/** The user whose choice is live now; undefined while the device's is. */
|
|
31
|
+
owner?: string;
|
|
32
|
+
}
|
|
33
|
+
export declare function loadPresetChoices(): Promise<PresetChoices>;
|
|
34
|
+
export declare function getPresetChoices(): PresetChoices;
|
|
35
|
+
export declare function recordPresetChoice(name: string, userId?: string | null): PresetChoices;
|
|
36
|
+
export declare function setPresetOwner(userId?: string | null): PresetChoices;
|
|
37
|
+
export declare function presetChoiceFor(userId?: string | null): string | undefined;
|
|
38
|
+
/** @internal */
|
|
39
|
+
export declare function resetPresetChoicesForTests(): void;
|
|
40
|
+
//# sourceMappingURL=presetStore.d.ts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C,EAAE,MAAM,GAAG,IAAI,GAAG,aAAa,CAYtF;AAED,wBAAgB,cAAc,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,aAAa,CAMpE;AAED,wBAAgB,eAAe,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,GAAG,SAAS,CAM1E;AAED,gBAAgB;AAChB,wBAAgB,0BAA0B,IAAI,IAAI,CAQjD"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type PresetSessionStatus = "loading" | "authenticated" | "unauthenticated";
|
|
2
|
+
export declare function usePresetUserSync(session: {
|
|
3
|
+
userId?: string | null;
|
|
4
|
+
status: PresetSessionStatus;
|
|
5
|
+
}): void;
|
|
6
|
+
export declare function useDevicePresetRestore(): () => void;
|
|
7
|
+
//# sourceMappingURL=presetUserSync.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presetUserSync.d.ts","sourceRoot":"","sources":["../../src/theme/presetUserSync.ts"],"names":[],"mappings":"AASA,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG,eAAe,GAAG,iBAAiB,CAAC;AAElF,wBAAgB,iBAAiB,CAAC,OAAO,EAAE;IACzC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,MAAM,EAAE,mBAAmB,CAAC;CAC7B,GAAG,IAAI,CAwBP;AAED,wBAAgB,sBAAsB,IAAI,MAAM,IAAI,CAMnD"}
|
package/types/theme/presets.d.ts
CHANGED
|
@@ -2,10 +2,8 @@ import type { Preset } from "./preset.types";
|
|
|
2
2
|
export declare const defaultPreset: Preset;
|
|
3
3
|
export declare const boldPreset: Preset;
|
|
4
4
|
/**
|
|
5
|
-
* Marketing / hero
|
|
6
|
-
*
|
|
7
|
-
* the display step ($10 = 64px): product screens are wayfinding and take the
|
|
8
|
-
* moderate step by default, so the loud scale has to be ASKED for.
|
|
5
|
+
* Marketing / hero preset: default knobs with the display title step
|
|
6
|
+
* ($12 = 52px at type 15). Product presets keep the moderate step.
|
|
9
7
|
*
|
|
10
8
|
* @example Whole marketing app
|
|
11
9
|
* createDefaultThemeConfig({ presets: { default: defaultPreset, hero: heroPreset } })
|
|
@@ -16,4 +14,14 @@ export declare const boldPreset: Preset;
|
|
|
16
14
|
* </Preset>
|
|
17
15
|
*/
|
|
18
16
|
export declare const heroPreset: Preset;
|
|
17
|
+
/**
|
|
18
|
+
* `defaultPreset` on a tighter token scale ($4 = 36, body 14). Knobs are
|
|
19
|
+
* identical to the default's: every px it saves comes from token values.
|
|
20
|
+
*/
|
|
21
|
+
export declare const densePreset: Preset;
|
|
22
|
+
/**
|
|
23
|
+
* `defaultPreset` on a roomier token scale ($4 = 48, body 16). Knobs are
|
|
24
|
+
* identical to the default's: every px it adds comes from token values.
|
|
25
|
+
*/
|
|
26
|
+
export declare const roomyPreset: Preset;
|
|
19
27
|
//# sourceMappingURL=presets.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presets.d.ts","sourceRoot":"","sources":["../../src/theme/presets.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"presets.d.ts","sourceRoot":"","sources":["../../src/theme/presets.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAG7C,eAAO,MAAM,aAAa,EAAE,MA8B3B,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,MA6BxB,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,UAAU,EAAE,MAGxB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,WAAW,EAAE,MAGzB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,WAAW,EAAE,MAGzB,CAAC"}
|
|
@@ -39,7 +39,7 @@ import { RADIUS_RESOLUTION_COMPOSITION, type RadiusOverrideEntry, type RadiusRes
|
|
|
39
39
|
* The radius classes whose parts stay round at `borderRadius:none`.
|
|
40
40
|
*
|
|
41
41
|
* - `R-PILL` — a pill/circle at every radius value (ornamental dots, badge
|
|
42
|
-
* indicators). Size still tracks the size
|
|
42
|
+
* indicators). Size still tracks the size token. Icon wells are DEFAULT,
|
|
43
43
|
* not R-PILL (R2e) — unless the well IS a count badge.
|
|
44
44
|
* - `R-IDENTITY` — the shape IS the part's identity (Avatar, brand marks,
|
|
45
45
|
* Radio disc). Membership is enumerated in the spec table and enforced
|
|
@@ -79,9 +79,12 @@ export interface RadiusResolutionDeclaration {
|
|
|
79
79
|
*/
|
|
80
80
|
export declare function radiusResolutionProps(radiusClass: "BINARY"): RadiusResolutionDeclaration;
|
|
81
81
|
/**
|
|
82
|
+
* Doctrine px cells are v5 `$radius` values; they resolve to the installed
|
|
83
|
+
* scale's radius at the same key.
|
|
84
|
+
*
|
|
82
85
|
* The geometry a doctrine cell may need. `h/2` cells need the part's own
|
|
83
86
|
* painted height (shorter edge); CONTAINER-CAP cells need the container's own
|
|
84
|
-
* padding
|
|
87
|
+
* padding (the `panelPadding` role on the installed scale, `panelPaddingPx()`).
|
|
85
88
|
*/
|
|
86
89
|
export interface RadiusClassGeometry {
|
|
87
90
|
heightPx?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radiusClass.d.ts","sourceRoot":"","sources":["../../src/theme/radiusClass.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"radiusClass.d.ts","sourceRoot":"","sources":["../../src/theme/radiusClass.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAI5C,OAAO,EAEL,6BAA6B,EAE7B,KAAK,m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EAAE,MAAM,CAAC;IACX,6EAA6E;IAC7E,MAAM,EAAE,oBAAoB,CAAC;IAC7B,uEAAuE;IACvE,WAAW,EAAE,qBAAqB,CAAC;IACnC,0DAA0D;IAC1D,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,2BAA2B,GAAG,kBAAkB,CAkC7F"}
|
|
@@ -99,15 +99,15 @@ export declare const RADIUS_RESOLUTION_TABLE: {
|
|
|
99
99
|
};
|
|
100
100
|
readonly small: {
|
|
101
101
|
readonly kind: "min-token-padding";
|
|
102
|
-
readonly tokenPx:
|
|
102
|
+
readonly tokenPx: 9;
|
|
103
103
|
};
|
|
104
104
|
readonly medium: {
|
|
105
105
|
readonly kind: "min-token-padding";
|
|
106
|
-
readonly tokenPx:
|
|
106
|
+
readonly tokenPx: 16;
|
|
107
107
|
};
|
|
108
108
|
readonly large: {
|
|
109
109
|
readonly kind: "min-token-padding";
|
|
110
|
-
readonly tokenPx:
|
|
110
|
+
readonly tokenPx: 22;
|
|
111
111
|
};
|
|
112
112
|
readonly full: {
|
|
113
113
|
readonly kind: "padding";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Readable text/glyph color to sit ON `fill` (a token like "$
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
2
|
+
* Readable text/glyph color to sit ON `fill` (a token like "$color8" or a
|
|
3
|
+
* resolved value, such as the wash from `useAccentTintedSurface`): the
|
|
4
|
+
* scheme's paper (`$color1`) or ink (`$color12`) anchor, whichever contrasts
|
|
5
|
+
* more on the resolved fill, returned as a concrete
|
|
6
6
|
* value so no nested sub-theme can flip it. When neither anchor clears AA on
|
|
7
7
|
* the fill, the pole that does (`holdInkFloor`). Returns `undefined` when any
|
|
8
8
|
* color fails to resolve/parse — callers keep their own default in that case.
|
|
@@ -36,53 +36,15 @@ export declare function useLegibleInkOn(fill_: string | undefined, preferred: st
|
|
|
36
36
|
*/
|
|
37
37
|
export declare function useAccentOnSurface(): string;
|
|
38
38
|
export interface ResolveAccentTintedSurfaceInput {
|
|
39
|
-
|
|
40
|
-
steps: (string | undefined)[];
|
|
41
|
-
/** Scheme paper anchor (`$color1`). */
|
|
39
|
+
solid?: string;
|
|
42
40
|
paper?: string;
|
|
43
|
-
/** Scheme ink anchor (`$color12`). */
|
|
44
|
-
ink?: string;
|
|
45
41
|
}
|
|
46
|
-
/** Pure resolver behind {@link useAccentTintedSurface} — see its docs. */
|
|
47
|
-
export declare function resolveAccentTintedSurface({ steps, paper, ink, }: ResolveAccentTintedSurfaceInput): string | undefined;
|
|
48
|
-
export declare function useAccentTintedSurface(): string | undefined;
|
|
49
42
|
/**
|
|
50
|
-
*
|
|
51
|
-
*
|
|
43
|
+
* Accent wash for an accent-intent surface, mixed from the accent solid and
|
|
44
|
+
* paper. Selection uses the neutral tier in `componentColors.selection` or
|
|
45
|
+
* `formSelectionColors`, never this wash.
|
|
52
46
|
*/
|
|
53
|
-
export
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}
|
|
57
|
-
export interface ResolveAaSolidFillInput {
|
|
58
|
-
/** The LC-05 selected solid, usually `$accentBackground`. */
|
|
59
|
-
preferred: AaSolidCandidate;
|
|
60
|
-
/**
|
|
61
|
-
* Accent solids (steps 1–10). Pale anchors 11–12 are tinted surfaces, not
|
|
62
|
-
* selection solids — they would pass AA as chips and fail LC-05 as marks.
|
|
63
|
-
*/
|
|
64
|
-
solids: AaSolidCandidate[];
|
|
65
|
-
paper?: string;
|
|
66
|
-
ink?: string;
|
|
67
|
-
/** Defaults to {@link aaTextContrastRatio} (4.5). */
|
|
68
|
-
floor?: number;
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* Pick an accent solid that can carry AA text (paper or ink ≥ 4.5).
|
|
72
|
-
*
|
|
73
|
-
* A mid-chroma solid can clear the graphic 3:1 tier and still miss the text
|
|
74
|
-
* floor with both scheme anchors (the stock dark `#7766cc` measured 4.02:1
|
|
75
|
-
* before the build held `$accentBackground` to it, MPO-448). Walking to the
|
|
76
|
-
* nearest passing solid keeps the mark on the accent channel (LC-05) instead
|
|
77
|
-
* of dropping to ink or a tinted surface.
|
|
78
|
-
*
|
|
79
|
-
* Returns the preferred token when it already clears the floor, otherwise
|
|
80
|
-
* the solid token whose resolved luminance is closest to the preferred fill.
|
|
81
|
-
*/
|
|
82
|
-
export declare function resolveAaSolidFill({ preferred, solids, paper, ink, floor, }: ResolveAaSolidFillInput): string;
|
|
83
|
-
/**
|
|
84
|
-
* Token to paint as a selected/current solid so on-fill text clears AA.
|
|
85
|
-
* See {@link resolveAaSolidFill}.
|
|
86
|
-
*/
|
|
87
|
-
export declare function useAaSolidFill(preferredToken: string): string;
|
|
47
|
+
export declare function resolveAccentTintedSurface({ solid, paper, }: ResolveAccentTintedSurfaceInput): string | undefined;
|
|
48
|
+
/** Accent-intent wash; selection belongs to the shared neutral tier. */
|
|
49
|
+
export declare function useAccentTintedSurface(): string | undefined;
|
|
88
50
|
//# sourceMappingURL=readableColor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readableColor.d.ts","sourceRoot":"","sources":["../../src/theme/readableColor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"readableColor.d.ts","sourceRoot":"","sources":["../../src/theme/readableColor.ts"],"names":[],"mappings":"AA0BA;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAU/E;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,IAAI,EACJ,SAAS,EACT,KAAK,EACL,GAAG,GACJ,EAAE;IACD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,GAAG,MAAM,GAAG,SAAS,CAarB;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAYpF;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,IAAI,MAAM,CA8B3C;AAID,MAAM,WAAW,+BAA+B;IAC9C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,CAAC,EACzC,KAAK,EACL,KAAK,GACN,EAAE,+BAA+B,GAAG,MAAM,GAAG,SAAS,CAmBtD;AAED,wEAAwE;AACxE,wBAAgB,sBAAsB,IAAI,MAAM,GAAG,SAAS,CAK3D"}
|