@satinhq/kit 0.0.0-stage → 0.1.0-beta.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/LICENSE +21 -0
- package/NOTICE +96 -0
- package/README.md +454 -2
- package/THIRD_PARTY_NOTICES.md +65 -0
- package/bin/satin.mjs +13 -0
- package/dist/acknowledgements/Acknowledgements.d.ts +4 -0
- package/dist/acknowledgements/Acknowledgements.js +42 -0
- package/dist/acknowledgements/bundledNotices.d.ts +4 -0
- package/dist/acknowledgements/bundledNotices.js +58 -0
- package/dist/acknowledgements/inventory.d.ts +17 -0
- package/dist/acknowledgements/inventory.js +10 -0
- package/dist/acknowledgements/inventory.json +39 -0
- package/dist/actions/ActionMenu.d.ts +30 -0
- package/dist/actions/ActionMenu.js +103 -0
- package/dist/actions/RowActions.d.ts +42 -0
- package/dist/actions/RowActions.js +820 -0
- package/dist/actions/contextMotion.d.ts +78 -0
- package/dist/actions/contextMotion.js +329 -0
- package/dist/actions/motion.d.ts +19 -0
- package/dist/actions/motion.js +74 -0
- package/dist/actions/nativeContextAppearance.json +86 -0
- package/dist/actions/nativeContextMotion.json +734 -0
- package/dist/actions/nativeMotion.json +388 -0
- package/dist/actions/preview.d.ts +27 -0
- package/dist/actions/preview.js +217 -0
- package/dist/actions/recognizers.d.ts +24 -0
- package/dist/actions/recognizers.js +87 -0
- package/dist/actions/rowScrub.d.ts +59 -0
- package/dist/actions/rowScrub.js +400 -0
- package/dist/actions/swipeSpring.d.ts +14 -0
- package/dist/actions/swipeSpring.js +35 -0
- package/dist/actions/types.d.ts +71 -0
- package/dist/actions/types.js +28 -0
- package/dist/app/InstallComponents.d.ts +16 -0
- package/dist/app/InstallComponents.js +104 -0
- package/dist/app/InstallationDiagnostics.d.ts +7 -0
- package/dist/app/InstallationDiagnostics.js +23 -0
- package/dist/app/OrientationGuard.d.ts +8 -0
- package/dist/app/OrientationGuard.js +9 -0
- package/dist/app/appearance.d.ts +18 -0
- package/dist/app/appearance.js +15 -0
- package/dist/app/appearanceStore.d.ts +30 -0
- package/dist/app/appearanceStore.js +228 -0
- package/dist/app/backgroundUpdate.d.ts +20 -0
- package/dist/app/backgroundUpdate.js +151 -0
- package/dist/app/buildInfo.d.ts +11 -0
- package/dist/app/buildInfo.js +12 -0
- package/dist/app/buildInfoBuild.d.ts +3 -0
- package/dist/app/buildInfoBuild.js +12 -0
- package/dist/app/checkCli.d.ts +1 -0
- package/dist/app/checkCli.js +73 -0
- package/dist/app/coldLaunchUpdate.d.ts +14 -0
- package/dist/app/coldLaunchUpdate.js +384 -0
- package/dist/app/definition.d.ts +85 -0
- package/dist/app/definition.js +347 -0
- package/dist/app/deployment.d.ts +28 -0
- package/dist/app/deployment.js +352 -0
- package/dist/app/deploymentBuild.d.ts +3 -0
- package/dist/app/deploymentBuild.js +55 -0
- package/dist/app/earlyWorker.d.ts +3 -0
- package/dist/app/earlyWorker.js +77 -0
- package/dist/app/head.d.ts +10 -0
- package/dist/app/head.js +120 -0
- package/dist/app/icons.d.ts +4 -0
- package/dist/app/icons.js +35 -0
- package/dist/app/install.d.ts +18 -0
- package/dist/app/install.js +82 -0
- package/dist/app/installCheck.d.ts +2 -0
- package/dist/app/installCheck.js +148 -0
- package/dist/app/installContext.d.ts +35 -0
- package/dist/app/installContext.js +45 -0
- package/dist/app/installCustom.d.ts +25 -0
- package/dist/app/installCustom.js +55 -0
- package/dist/app/installExperience.d.ts +22 -0
- package/dist/app/installExperience.js +389 -0
- package/dist/app/installExperienceDevice.d.ts +29 -0
- package/dist/app/installExperienceDevice.js +160 -0
- package/dist/app/installExperienceHome.d.ts +16 -0
- package/dist/app/installExperienceHome.js +304 -0
- package/dist/app/installExperienceRuntime.d.ts +37 -0
- package/dist/app/installExperienceRuntime.js +285 -0
- package/dist/app/installPolicy.d.ts +28 -0
- package/dist/app/installPolicy.js +90 -0
- package/dist/app/installQr.d.ts +10 -0
- package/dist/app/installQr.js +139 -0
- package/dist/app/installStrings.d.ts +52 -0
- package/dist/app/installStrings.js +75 -0
- package/dist/app/installTipPath.d.ts +12 -0
- package/dist/app/installTipPath.js +9 -0
- package/dist/app/installationFailure.d.ts +14 -0
- package/dist/app/installationFailure.js +38 -0
- package/dist/app/launch.d.ts +7 -0
- package/dist/app/launch.js +241 -0
- package/dist/app/launchReadiness.d.ts +9 -0
- package/dist/app/launchReadiness.js +72 -0
- package/dist/app/launchScreen.d.ts +16 -0
- package/dist/app/launchScreen.js +14 -0
- package/dist/app/launchScreenRuntime.d.ts +19 -0
- package/dist/app/launchScreenRuntime.js +313 -0
- package/dist/app/launchWatchdog.d.ts +1 -0
- package/dist/app/launchWatchdog.js +202 -0
- package/dist/app/manifests.d.ts +19 -0
- package/dist/app/manifests.js +20 -0
- package/dist/app/mdm.d.ts +3 -0
- package/dist/app/mdm.js +20 -0
- package/dist/app/mediaCheck.d.ts +9 -0
- package/dist/app/mediaCheck.js +122 -0
- package/dist/app/mediaTypes.d.ts +2 -0
- package/dist/app/mediaTypes.js +13 -0
- package/dist/app/platformPolicy.d.ts +3 -0
- package/dist/app/platformPolicy.js +10 -0
- package/dist/app/platformScripts.d.ts +6 -0
- package/dist/app/platformScripts.js +65 -0
- package/dist/app/releaseUpdates.d.ts +7 -0
- package/dist/app/releaseUpdates.js +53 -0
- package/dist/app/runtime.d.ts +9 -0
- package/dist/app/runtime.js +38 -0
- package/dist/app/startup.d.ts +30 -0
- package/dist/app/startup.js +24 -0
- package/dist/app/statusBand.d.ts +11 -0
- package/dist/app/statusBand.js +257 -0
- package/dist/app/viewport.d.ts +3 -0
- package/dist/app/viewport.js +42 -0
- package/dist/app/viewportValue.d.ts +5 -0
- package/dist/app/viewportValue.js +14 -0
- package/dist/app/vite.d.ts +27 -0
- package/dist/app/vite.js +440 -0
- package/dist/app/warmImage.d.ts +3 -0
- package/dist/app/warmImage.js +59 -0
- package/dist/content/content.d.ts +153 -0
- package/dist/content/content.js +315 -0
- package/dist/content/layout.d.ts +26 -0
- package/dist/content/layout.js +114 -0
- package/dist/content/scaledMetric.d.ts +3 -0
- package/dist/content/scaledMetric.js +68 -0
- package/dist/content/typography.d.ts +83 -0
- package/dist/content/typography.js +32 -0
- package/dist/controls/ActivityIndicatorSegments.d.ts +4 -0
- package/dist/controls/ActivityIndicatorSegments.js +5 -0
- package/dist/controls/ColorPicker.d.ts +20 -0
- package/dist/controls/ColorPicker.js +70 -0
- package/dist/controls/ControlRow.d.ts +5 -0
- package/dist/controls/ControlRow.js +10 -0
- package/dist/controls/DatePicker.d.ts +41 -0
- package/dist/controls/DatePicker.js +148 -0
- package/dist/controls/ProgressView.d.ts +17 -0
- package/dist/controls/ProgressView.js +24 -0
- package/dist/controls/civilDate.d.ts +49 -0
- package/dist/controls/civilDate.js +112 -0
- package/dist/data/database.d.ts +154 -0
- package/dist/data/database.js +710 -0
- package/dist/data/value-equal.d.ts +2 -0
- package/dist/data/value-equal.js +36 -0
- package/dist/data/write-store.d.ts +38 -0
- package/dist/data/write-store.js +192 -0
- package/dist/dev-menu/DevMenu.d.ts +1 -0
- package/dist/dev-menu/DevMenu.js +121 -0
- package/dist/dev-menu/actions.d.ts +12 -0
- package/dist/dev-menu/actions.js +99 -0
- package/dist/dev-menu/build.d.ts +5 -0
- package/dist/dev-menu/build.js +40 -0
- package/dist/dev-menu/gesture.d.ts +18 -0
- package/dist/dev-menu/gesture.js +109 -0
- package/dist/dev-menu/shake.d.ts +2 -0
- package/dist/dev-menu/shake.js +36 -0
- package/dist/dev-menu/types.d.ts +8 -0
- package/dist/dev-menu/types.js +1 -0
- package/dist/diagnostics.d.ts +3 -0
- package/dist/diagnostics.js +4 -0
- package/dist/docs/app-recipes.md +411 -0
- package/dist/docs/components/file-importer.md +54 -0
- package/dist/docs/components/paste-button.md +48 -0
- package/dist/docs/components/photos-picker.md +53 -0
- package/dist/docs/components/share-link.md +58 -0
- package/dist/docs/content.md +159 -0
- package/dist/docs/controls.md +151 -0
- package/dist/docs/data.md +332 -0
- package/dist/docs/limitations.md +40 -0
- package/dist/docs/messaging-scroll.md +234 -0
- package/dist/docs/networking.md +190 -0
- package/dist/docs/push.md +215 -0
- package/dist/docs/swiftui-reference.md +1895 -0
- package/dist/docs/symbols.md +293 -0
- package/dist/docs/tokens.md +60 -0
- package/dist/fidelity/devAssertions.d.ts +21 -0
- package/dist/fidelity/devAssertions.js +199 -0
- package/dist/focus/focusIntentMachine.d.ts +106 -0
- package/dist/focus/focusIntentMachine.js +359 -0
- package/dist/focus/navigationFocus.d.ts +42 -0
- package/dist/focus/navigationFocus.js +241 -0
- package/dist/focus/programmaticFocus.d.ts +15 -0
- package/dist/focus/programmaticFocus.js +152 -0
- package/dist/gestures/GestureView.d.ts +12 -0
- package/dist/gestures/GestureView.js +321 -0
- package/dist/gestures/arena.d.ts +138 -0
- package/dist/gestures/arena.js +417 -0
- package/dist/gestures/existingCompetitors.d.ts +79 -0
- package/dist/gestures/existingCompetitors.js +82 -0
- package/dist/gestures/gesture.d.ts +62 -0
- package/dist/gestures/gesture.js +107 -0
- package/dist/glass/ControlLens.d.ts +46 -0
- package/dist/glass/ControlLens.js +88 -0
- package/dist/glass/GlassBar.d.ts +9 -0
- package/dist/glass/GlassBar.js +22 -0
- package/dist/glass/GlassConfusionReview.d.ts +3 -0
- package/dist/glass/GlassConfusionReview.js +185 -0
- package/dist/glass/GlassEffect.d.ts +69 -0
- package/dist/glass/GlassEffect.js +550 -0
- package/dist/glass/GlassMaterialRoot.d.ts +7 -0
- package/dist/glass/GlassMaterialRoot.js +39 -0
- package/dist/glass/GlassPresentation.d.ts +28 -0
- package/dist/glass/GlassPresentation.js +1038 -0
- package/dist/glass/GlassProbeIcons.d.ts +8 -0
- package/dist/glass/GlassProbeIcons.js +12 -0
- package/dist/glass/GlassProbeOverlay.d.ts +52 -0
- package/dist/glass/GlassProbeOverlay.js +45 -0
- package/dist/glass/GlassTextField.d.ts +22 -0
- package/dist/glass/GlassTextField.js +12 -0
- package/dist/glass/MaterialEffectRoot.d.ts +9 -0
- package/dist/glass/MaterialEffectRoot.js +189 -0
- package/dist/glass/Menu.d.ts +3 -0
- package/dist/glass/Menu.js +35 -0
- package/dist/glass/MenuStack.d.ts +23 -0
- package/dist/glass/MenuStack.js +371 -0
- package/dist/glass/MenuSymbol.d.ts +7 -0
- package/dist/glass/MenuSymbol.js +16 -0
- package/dist/glass/MorphEllipsisArtwork.d.ts +2 -0
- package/dist/glass/MorphEllipsisArtwork.js +6 -0
- package/dist/glass/TabBar.d.ts +29 -0
- package/dist/glass/TabBar.js +169 -0
- package/dist/glass/capability.d.ts +25 -0
- package/dist/glass/capability.js +63 -0
- package/dist/glass/captureWindow.d.ts +60 -0
- package/dist/glass/captureWindow.js +119 -0
- package/dist/glass/confusionSession.d.ts +41 -0
- package/dist/glass/confusionSession.js +44 -0
- package/dist/glass/contactPhysics.d.ts +130 -0
- package/dist/glass/contactPhysics.js +214 -0
- package/dist/glass/context.d.ts +37 -0
- package/dist/glass/context.js +11 -0
- package/dist/glass/errorAlert.d.ts +6 -0
- package/dist/glass/errorAlert.js +57 -0
- package/dist/glass/errors.d.ts +22 -0
- package/dist/glass/errors.js +78 -0
- package/dist/glass/failurePolicy.d.ts +4 -0
- package/dist/glass/failurePolicy.js +20 -0
- package/dist/glass/fallback/material.d.ts +16 -0
- package/dist/glass/fallback/material.js +87 -0
- package/dist/glass/fallback/regions.d.ts +16 -0
- package/dist/glass/fallback/regions.js +249 -0
- package/dist/glass/fallback/runtime.d.ts +72 -0
- package/dist/glass/fallback/runtime.js +278 -0
- package/dist/glass/fallback/selection.d.ts +2 -0
- package/dist/glass/fallback/selection.js +9 -0
- package/dist/glass/fieldGeometry.d.ts +28 -0
- package/dist/glass/fieldGeometry.js +64 -0
- package/dist/glass/fieldMotion.d.ts +42 -0
- package/dist/glass/fieldMotion.js +47 -0
- package/dist/glass/glassContact.d.ts +76 -0
- package/dist/glass/glassContact.js +153 -0
- package/dist/glass/glassProbeSettings.d.ts +18 -0
- package/dist/glass/glassProbeSettings.js +133 -0
- package/dist/glass/lens/Scene.d.ts +108 -0
- package/dist/glass/lens/Scene.js +553 -0
- package/dist/glass/lens/backgrounds.json +103 -0
- package/dist/glass/lens/bitmapBackdrop.d.ts +14 -0
- package/dist/glass/lens/bitmapBackdrop.js +35 -0
- package/dist/glass/lens/controlLift.d.ts +94 -0
- package/dist/glass/lens/controlLift.js +78 -0
- package/dist/glass/lens/data.d.ts +19 -0
- package/dist/glass/lens/data.js +161 -0
- package/dist/glass/lens/drawableTop.d.ts +16 -0
- package/dist/glass/lens/drawableTop.js +15 -0
- package/dist/glass/lens/icons.d.ts +9 -0
- package/dist/glass/lens/icons.js +34 -0
- package/dist/glass/lens/interactiveContact.d.ts +33 -0
- package/dist/glass/lens/interactiveContact.js +158 -0
- package/dist/glass/lens/interactivePress.d.ts +95 -0
- package/dist/glass/lens/interactivePress.js +169 -0
- package/dist/glass/lens/ios27GlyphFit.json +126 -0
- package/dist/glass/lens/lensLightingSamples.json +1 -0
- package/dist/glass/lens/lensPress.d.ts +22 -0
- package/dist/glass/lens/lensPress.js +68 -0
- package/dist/glass/lens/lensPressSamples.json +1 -0
- package/dist/glass/lens/liquidMotion.d.ts +50 -0
- package/dist/glass/lens/liquidMotion.js +239 -0
- package/dist/glass/lens/materialGlassRecipes.json +776 -0
- package/dist/glass/lens/materialUniforms.d.ts +22 -0
- package/dist/glass/lens/materialUniforms.js +117 -0
- package/dist/glass/lens/menu-closing-close-fit.json +380 -0
- package/dist/glass/lens/menu-opening-native-fits.json +911 -0
- package/dist/glass/lens/menuContextFit.json +88 -0
- package/dist/glass/lens/menuContextOpacity.json +98 -0
- package/dist/glass/lens/menuContextPresentation.d.ts +15 -0
- package/dist/glass/lens/menuContextPresentation.js +65 -0
- package/dist/glass/lens/menuCornerFit.json +252 -0
- package/dist/glass/lens/menuCornerMotion.d.ts +9 -0
- package/dist/glass/lens/menuCornerMotion.js +5 -0
- package/dist/glass/lens/menuDropFit.json +64 -0
- package/dist/glass/lens/menuField.d.ts +178 -0
- package/dist/glass/lens/menuField.js +564 -0
- package/dist/glass/lens/menuGesturePresentation.d.ts +12 -0
- package/dist/glass/lens/menuGesturePresentation.js +42 -0
- package/dist/glass/lens/menuGlyphDropFit.json +38 -0
- package/dist/glass/lens/menuMorphFit.json +564 -0
- package/dist/glass/lens/menuMorphMotion.d.ts +70 -0
- package/dist/glass/lens/menuMorphMotion.js +219 -0
- package/dist/glass/lens/menuMorphPhoneFit.json +85 -0
- package/dist/glass/lens/menuMotion.d.ts +81 -0
- package/dist/glass/lens/menuMotion.js +323 -0
- package/dist/glass/lens/menuPlacement.d.ts +5 -0
- package/dist/glass/lens/menuPlacement.js +29 -0
- package/dist/glass/lens/menuSpring.d.ts +18 -0
- package/dist/glass/lens/menuSpring.js +29 -0
- package/dist/glass/lens/menuTouchLight.d.ts +13 -0
- package/dist/glass/lens/menuTouchLight.js +147 -0
- package/dist/glass/lens/mirrorConstants.d.ts +1 -0
- package/dist/glass/lens/mirrorConstants.js +2 -0
- package/dist/glass/lens/mirrorExtents.d.ts +52 -0
- package/dist/glass/lens/mirrorExtents.js +264 -0
- package/dist/glass/lens/mirrorInvalidation.d.ts +6 -0
- package/dist/glass/lens/mirrorInvalidation.js +10 -0
- package/dist/glass/lens/mirrorReuse.d.ts +20 -0
- package/dist/glass/lens/mirrorReuse.js +166 -0
- package/dist/glass/lens/motion.d.ts +62 -0
- package/dist/glass/lens/motion.js +93 -0
- package/dist/glass/lens/recordedMotion.d.ts +6 -0
- package/dist/glass/lens/recordedMotion.js +44 -0
- package/dist/glass/lens/referenceBackground.d.ts +9 -0
- package/dist/glass/lens/referenceBackground.js +151 -0
- package/dist/glass/lens/referenceProfiles.d.ts +21 -0
- package/dist/glass/lens/referenceProfiles.js +33 -0
- package/dist/glass/lens/referenceRegularTint.d.ts +12 -0
- package/dist/glass/lens/referenceRegularTint.js +41 -0
- package/dist/glass/lens/scopeSegments.d.ts +12 -0
- package/dist/glass/lens/scopeSegments.js +18 -0
- package/dist/glass/lens/scrollAnchoring.d.ts +15 -0
- package/dist/glass/lens/scrollAnchoring.js +17 -0
- package/dist/glass/lens/selectionParameters.json +94 -0
- package/dist/glass/lens/shapeParameters.json +198 -0
- package/dist/glass/lens/tab-motion-native-fits.json +778 -0
- package/dist/glass/lens/tabAccessoryMotion.d.ts +52 -0
- package/dist/glass/lens/tabAccessoryMotion.js +52 -0
- package/dist/glass/lens/tabChromaRimModel.d.ts +43 -0
- package/dist/glass/lens/tabChromaRimModel.js +93 -0
- package/dist/glass/lens/tabCollapseInkSamples.json +49 -0
- package/dist/glass/lens/tabCompactGesture.d.ts +15 -0
- package/dist/glass/lens/tabCompactGesture.js +50 -0
- package/dist/glass/lens/tabGeometryAttack.json +70 -0
- package/dist/glass/lens/tabGlyphColours.d.ts +17 -0
- package/dist/glass/lens/tabGlyphColours.js +37 -0
- package/dist/glass/lens/tabInterruptedDecaySamples.json +245 -0
- package/dist/glass/lens/tabInterruptedRestoreSamples.json +290 -0
- package/dist/glass/lens/tabMaterialModel.d.ts +10 -0
- package/dist/glass/lens/tabMaterialModel.js +108 -0
- package/dist/glass/lens/tabMinimizeInk.d.ts +15 -0
- package/dist/glass/lens/tabMinimizeInk.js +14 -0
- package/dist/glass/lens/tabMinimizeMotion.d.ts +36 -0
- package/dist/glass/lens/tabMinimizeMotion.js +107 -0
- package/dist/glass/lens/tabMinimizeSamples.json +411 -0
- package/dist/glass/lens/tabMotion.d.ts +91 -0
- package/dist/glass/lens/tabMotion.js +478 -0
- package/dist/glass/lens/tabMotionFit.d.ts +76 -0
- package/dist/glass/lens/tabMotionFit.js +61 -0
- package/dist/glass/lens/tabNativeSymbols.d.ts +1 -0
- package/dist/glass/lens/tabNativeSymbols.js +7 -0
- package/dist/glass/lens/tabPresentation.d.ts +21 -0
- package/dist/glass/lens/tabPresentation.js +20 -0
- package/dist/glass/lens/tabRelease.d.ts +5 -0
- package/dist/glass/lens/tabRelease.js +14 -0
- package/dist/glass/lens/tabRestoreMotion.d.ts +19 -0
- package/dist/glass/lens/tabRestoreMotion.js +65 -0
- package/dist/glass/lens/tabRestoreSamples.json +1272 -0
- package/dist/glass/lens/tabSearchMember.d.ts +38 -0
- package/dist/glass/lens/tabSearchMember.js +74 -0
- package/dist/glass/lens/tabSelectionMaterial.d.ts +20 -0
- package/dist/glass/lens/tabSelectionMaterial.js +23 -0
- package/dist/glass/lens/tabSelectionMeasurements.test-fixture.d.ts +9 -0
- package/dist/glass/lens/tabSelectionMeasurements.test-fixture.js +74 -0
- package/dist/glass/lens/tabSettingsSymbol.d.ts +1 -0
- package/dist/glass/lens/tabSettingsSymbol.js +2 -0
- package/dist/glass/lens/tabShapeResponse.d.ts +7 -0
- package/dist/glass/lens/tabShapeResponse.js +30 -0
- package/dist/glass/lens/theme.d.ts +18 -0
- package/dist/glass/lens/theme.js +40 -0
- package/dist/glass/lens/trace.d.ts +2 -0
- package/dist/glass/lens/trace.js +27 -0
- package/dist/glass/liquidContext.d.ts +31 -0
- package/dist/glass/liquidContext.js +2 -0
- package/dist/glass/menuPanelPlacement.d.ts +51 -0
- package/dist/glass/menuPanelPlacement.js +128 -0
- package/dist/glass/menuPresenter.d.ts +34 -0
- package/dist/glass/menuPresenter.js +983 -0
- package/dist/glass/menuSymbolMasks.d.ts +1 -0
- package/dist/glass/menuSymbolMasks.js +1 -0
- package/dist/glass/menuSymbolTokens.d.ts +22 -0
- package/dist/glass/menuSymbolTokens.js +12 -0
- package/dist/glass/menuTriggerGeometry.d.ts +99 -0
- package/dist/glass/menuTriggerGeometry.js +126 -0
- package/dist/glass/menuTriggerSnapshot.d.ts +77 -0
- package/dist/glass/menuTriggerSnapshot.js +69 -0
- package/dist/glass/menuTypes.d.ts +22 -0
- package/dist/glass/menuTypes.js +1 -0
- package/dist/glass/morphField.d.ts +18 -0
- package/dist/glass/morphField.js +139 -0
- package/dist/glass/presentationFrame.d.ts +43 -0
- package/dist/glass/presentationFrame.js +82 -0
- package/dist/glass/pressHighlight.d.ts +9 -0
- package/dist/glass/pressHighlight.js +158 -0
- package/dist/glass/regionRegistry.d.ts +93 -0
- package/dist/glass/regionRegistry.js +313 -0
- package/dist/glass/regions.d.ts +262 -0
- package/dist/glass/regions.js +147 -0
- package/dist/glass/regularMaterialContext.d.ts +45 -0
- package/dist/glass/regularMaterialContext.js +118 -0
- package/dist/glass/regularTriggerMaterial.d.ts +19 -0
- package/dist/glass/regularTriggerMaterial.js +111 -0
- package/dist/glass/regularTriggerRim.d.ts +163 -0
- package/dist/glass/regularTriggerRim.js +436 -0
- package/dist/glass/renderSpecs.d.ts +454 -0
- package/dist/glass/renderSpecs.js +231 -0
- package/dist/glass/rendererContract.d.ts +205 -0
- package/dist/glass/rendererContract.js +18 -0
- package/dist/glass/shapeTrack.d.ts +53 -0
- package/dist/glass/shapeTrack.js +74 -0
- package/dist/glass/shapeTrackRegistry.d.ts +40 -0
- package/dist/glass/shapeTrackRegistry.js +49 -0
- package/dist/glass/sourceDamage.d.ts +6 -0
- package/dist/glass/sourceDamage.js +8 -0
- package/dist/glass/submenuMotion.d.ts +205 -0
- package/dist/glass/submenuMotion.js +306 -0
- package/dist/glass/tabBarModel.d.ts +12 -0
- package/dist/glass/tabBarModel.js +32 -0
- package/dist/glass/testing.d.ts +14 -0
- package/dist/glass/testing.js +14 -0
- package/dist/glass/tokens.d.ts +79 -0
- package/dist/glass/tokens.js +86 -0
- package/dist/glass/toolbarMaterialContext.d.ts +28 -0
- package/dist/glass/toolbarMaterialContext.js +66 -0
- package/dist/glass/topLayer.d.ts +5 -0
- package/dist/glass/topLayer.js +10 -0
- package/dist/glass/unionOutline.d.ts +11 -0
- package/dist/glass/unionOutline.js +98 -0
- package/dist/glass/visibleDeadline.d.ts +21 -0
- package/dist/glass/visibleDeadline.js +61 -0
- package/dist/glass/webgpu/accessoryMorph.d.ts +99 -0
- package/dist/glass/webgpu/accessoryMorph.js +473 -0
- package/dist/glass/webgpu/accessoryTrack.d.ts +47 -0
- package/dist/glass/webgpu/accessoryTrack.js +59 -0
- package/dist/glass/webgpu/areaMips.d.ts +50 -0
- package/dist/glass/webgpu/areaMips.js +166 -0
- package/dist/glass/webgpu/backdrop.d.ts +86 -0
- package/dist/glass/webgpu/backdrop.js +243 -0
- package/dist/glass/webgpu/backdropLayers.d.ts +29 -0
- package/dist/glass/webgpu/backdropLayers.js +182 -0
- package/dist/glass/webgpu/backgroundLayers.d.ts +71 -0
- package/dist/glass/webgpu/backgroundLayers.js +385 -0
- package/dist/glass/webgpu/cadence.d.ts +18 -0
- package/dist/glass/webgpu/cadence.js +35 -0
- package/dist/glass/webgpu/canvasSubmission.d.ts +6 -0
- package/dist/glass/webgpu/canvasSubmission.js +22 -0
- package/dist/glass/webgpu/capture.d.ts +77 -0
- package/dist/glass/webgpu/capture.js +534 -0
- package/dist/glass/webgpu/captureBands.d.ts +39 -0
- package/dist/glass/webgpu/captureBands.js +53 -0
- package/dist/glass/webgpu/captureContext.d.ts +1 -0
- package/dist/glass/webgpu/captureContext.js +6 -0
- package/dist/glass/webgpu/captureDemand.d.ts +44 -0
- package/dist/glass/webgpu/captureDemand.js +81 -0
- package/dist/glass/webgpu/captureRelease.d.ts +18 -0
- package/dist/glass/webgpu/captureRelease.js +39 -0
- package/dist/glass/webgpu/client.d.ts +49 -0
- package/dist/glass/webgpu/client.js +336 -0
- package/dist/glass/webgpu/contextBackdrop.d.ts +6 -0
- package/dist/glass/webgpu/contextBackdrop.js +13 -0
- package/dist/glass/webgpu/contextComposite.d.ts +64 -0
- package/dist/glass/webgpu/contextComposite.js +66 -0
- package/dist/glass/webgpu/decodedImage.d.ts +1 -0
- package/dist/glass/webgpu/decodedImage.js +2 -0
- package/dist/glass/webgpu/deviceLimits.d.ts +5 -0
- package/dist/glass/webgpu/deviceLimits.js +8 -0
- package/dist/glass/webgpu/edgePass.d.ts +9 -0
- package/dist/glass/webgpu/edgePass.js +170 -0
- package/dist/glass/webgpu/entry.worker.d.ts +1 -0
- package/dist/glass/webgpu/entry.worker.js +28 -0
- package/dist/glass/webgpu/errorCode.d.ts +3 -0
- package/dist/glass/webgpu/errorCode.js +27 -0
- package/dist/glass/webgpu/errors.d.ts +8 -0
- package/dist/glass/webgpu/errors.js +55 -0
- package/dist/glass/webgpu/fieldInk.d.ts +9 -0
- package/dist/glass/webgpu/fieldInk.js +62 -0
- package/dist/glass/webgpu/foreground.d.ts +29 -0
- package/dist/glass/webgpu/foreground.js +313 -0
- package/dist/glass/webgpu/frameClock.d.ts +34 -0
- package/dist/glass/webgpu/frameClock.js +60 -0
- package/dist/glass/webgpu/frameGraph.d.ts +57 -0
- package/dist/glass/webgpu/frameGraph.js +287 -0
- package/dist/glass/webgpu/frameProbe.d.ts +58 -0
- package/dist/glass/webgpu/frameProbe.js +181 -0
- package/dist/glass/webgpu/interactionProfiles.d.ts +10 -0
- package/dist/glass/webgpu/interactionProfiles.js +25 -0
- package/dist/glass/webgpu/keptGlyphs.d.ts +68 -0
- package/dist/glass/webgpu/keptGlyphs.js +85 -0
- package/dist/glass/webgpu/keyboardBackdrop.d.ts +12 -0
- package/dist/glass/webgpu/keyboardBackdrop.js +51 -0
- package/dist/glass/webgpu/lagTrace.d.ts +31 -0
- package/dist/glass/webgpu/lagTrace.js +22 -0
- package/dist/glass/webgpu/layers.d.ts +100 -0
- package/dist/glass/webgpu/layers.js +301 -0
- package/dist/glass/webgpu/lensDebug.d.ts +4 -0
- package/dist/glass/webgpu/lensDebug.js +28 -0
- package/dist/glass/webgpu/lensDiffusion.d.ts +2 -0
- package/dist/glass/webgpu/lensDiffusion.js +20 -0
- package/dist/glass/webgpu/lensLightingFit.json +222 -0
- package/dist/glass/webgpu/menuLiftInput.d.ts +30 -0
- package/dist/glass/webgpu/menuLiftInput.js +39 -0
- package/dist/glass/webgpu/menuSurfaceGuard.d.ts +17 -0
- package/dist/glass/webgpu/menuSurfaceGuard.js +26 -0
- package/dist/glass/webgpu/minimize.d.ts +184 -0
- package/dist/glass/webgpu/minimize.js +470 -0
- package/dist/glass/webgpu/navigationAtlasCopy.d.ts +12 -0
- package/dist/glass/webgpu/navigationAtlasCopy.js +121 -0
- package/dist/glass/webgpu/navigationTracks.d.ts +3 -0
- package/dist/glass/webgpu/navigationTracks.js +84 -0
- package/dist/glass/webgpu/passes.d.ts +204 -0
- package/dist/glass/webgpu/passes.js +394 -0
- package/dist/glass/webgpu/pendingSurfaceInput.d.ts +29 -0
- package/dist/glass/webgpu/pendingSurfaceInput.js +51 -0
- package/dist/glass/webgpu/preparedSourcePixels.d.ts +21 -0
- package/dist/glass/webgpu/preparedSourcePixels.js +43 -0
- package/dist/glass/webgpu/presentationBackdrop.d.ts +3 -0
- package/dist/glass/webgpu/presentationBackdrop.js +33 -0
- package/dist/glass/webgpu/presentationDiffusion.d.ts +48 -0
- package/dist/glass/webgpu/presentationDiffusion.js +57 -0
- package/dist/glass/webgpu/presentationMaterial.d.ts +9 -0
- package/dist/glass/webgpu/presentationMaterial.js +156 -0
- package/dist/glass/webgpu/presenterViewport.d.ts +11 -0
- package/dist/glass/webgpu/presenterViewport.js +193 -0
- package/dist/glass/webgpu/production.d.ts +552 -0
- package/dist/glass/webgpu/production.js +1929 -0
- package/dist/glass/webgpu/productionInstalls.d.ts +53 -0
- package/dist/glass/webgpu/productionInstalls.js +225 -0
- package/dist/glass/webgpu/productionNavigation.d.ts +5 -0
- package/dist/glass/webgpu/productionNavigation.js +360 -0
- package/dist/glass/webgpu/productionPinnedTop.d.ts +80 -0
- package/dist/glass/webgpu/productionPinnedTop.js +77 -0
- package/dist/glass/webgpu/productionPinnedTopPrepare.d.ts +21 -0
- package/dist/glass/webgpu/productionPinnedTopPrepare.js +132 -0
- package/dist/glass/webgpu/productionPlanes.d.ts +135 -0
- package/dist/glass/webgpu/productionPlanes.js +412 -0
- package/dist/glass/webgpu/productionPrepare.d.ts +18 -0
- package/dist/glass/webgpu/productionPrepare.js +832 -0
- package/dist/glass/webgpu/productionTracks.d.ts +73 -0
- package/dist/glass/webgpu/productionTracks.js +22 -0
- package/dist/glass/webgpu/productionViewport.d.ts +20 -0
- package/dist/glass/webgpu/productionViewport.js +52 -0
- package/dist/glass/webgpu/profile.d.ts +37 -0
- package/dist/glass/webgpu/profile.js +101 -0
- package/dist/glass/webgpu/raster.d.ts +337 -0
- package/dist/glass/webgpu/raster.js +1360 -0
- package/dist/glass/webgpu/rasterMaterial.d.ts +19 -0
- package/dist/glass/webgpu/rasterMaterial.js +197 -0
- package/dist/glass/webgpu/rasterShaders.d.ts +7 -0
- package/dist/glass/webgpu/rasterShaders.js +105 -0
- package/dist/glass/webgpu/rasterUniforms.d.ts +304 -0
- package/dist/glass/webgpu/rasterUniforms.js +415 -0
- package/dist/glass/webgpu/regionBackdrop.d.ts +8 -0
- package/dist/glass/webgpu/regionBackdrop.js +12 -0
- package/dist/glass/webgpu/regionBridge.d.ts +145 -0
- package/dist/glass/webgpu/regionBridge.js +1691 -0
- package/dist/glass/webgpu/regionScene.d.ts +294 -0
- package/dist/glass/webgpu/regionScene.js +2144 -0
- package/dist/glass/webgpu/renderer.d.ts +8 -0
- package/dist/glass/webgpu/renderer.js +1478 -0
- package/dist/glass/webgpu/residentPlanes.d.ts +69 -0
- package/dist/glass/webgpu/residentPlanes.js +104 -0
- package/dist/glass/webgpu/restMaterial.d.ts +6 -0
- package/dist/glass/webgpu/restMaterial.js +65 -0
- package/dist/glass/webgpu/resumeOverlay.d.ts +44 -0
- package/dist/glass/webgpu/resumeOverlay.js +82 -0
- package/dist/glass/webgpu/sampleTrace.d.ts +11 -0
- package/dist/glass/webgpu/sampleTrace.js +50 -0
- package/dist/glass/webgpu/scrollEdgeBackdrop.d.ts +89 -0
- package/dist/glass/webgpu/scrollEdgeBackdrop.js +177 -0
- package/dist/glass/webgpu/scrollEdgePose.d.ts +4 -0
- package/dist/glass/webgpu/scrollEdgePose.js +49 -0
- package/dist/glass/webgpu/selectionThumb.d.ts +81 -0
- package/dist/glass/webgpu/selectionThumb.js +209 -0
- package/dist/glass/webgpu/shaders.d.ts +67 -0
- package/dist/glass/webgpu/shaders.js +595 -0
- package/dist/glass/webgpu/sharedLift.d.ts +7 -0
- package/dist/glass/webgpu/sharedLift.js +223 -0
- package/dist/glass/webgpu/sourcePixels.d.ts +42 -0
- package/dist/glass/webgpu/sourcePixels.js +140 -0
- package/dist/glass/webgpu/sourcePixels.worker.d.ts +1 -0
- package/dist/glass/webgpu/sourcePixels.worker.js +62 -0
- package/dist/glass/webgpu/tabGlyphInk.d.ts +14 -0
- package/dist/glass/webgpu/tabGlyphInk.js +72 -0
- package/dist/glass/webgpu/touchLight.d.ts +4 -0
- package/dist/glass/webgpu/touchLight.js +15 -0
- package/dist/glass/worker/client.d.ts +21 -0
- package/dist/glass/worker/client.js +152 -0
- package/dist/glass/worker/experiment.d.ts +13 -0
- package/dist/glass/worker/experiment.js +221 -0
- package/dist/glass/worker/fixture.d.ts +21 -0
- package/dist/glass/worker/fixture.js +152 -0
- package/dist/glass/worker/protocol.d.ts +439 -0
- package/dist/glass/worker/protocol.js +5 -0
- package/dist/graphicsProbe.d.ts +19 -0
- package/dist/graphicsProbe.js +111 -0
- package/dist/haptics/SensoryButton.d.ts +21 -0
- package/dist/haptics/SensoryButton.js +80 -0
- package/dist/image/ContentAdmission.d.ts +19 -0
- package/dist/image/ContentAdmission.js +70 -0
- package/dist/image/Image.d.ts +30 -0
- package/dist/image/Image.js +341 -0
- package/dist/image/asset.d.ts +9 -0
- package/dist/image/asset.js +1 -0
- package/dist/image/contentReadiness.d.ts +7 -0
- package/dist/image/contentReadiness.js +54 -0
- package/dist/image/imports.d.ts +4 -0
- package/dist/image/resource.d.ts +53 -0
- package/dist/image/resource.js +286 -0
- package/dist/image/vite.d.ts +3 -0
- package/dist/image/vite.js +63 -0
- package/dist/index.d.ts +87 -0
- package/dist/index.js +102 -0
- package/dist/install.d.ts +8 -0
- package/dist/install.js +8 -0
- package/dist/internal.d.ts +96 -0
- package/dist/internal.js +80 -0
- package/dist/keyboard/adapter.d.ts +82 -0
- package/dist/keyboard/adapter.js +727 -0
- package/dist/keyboard/avoidance.d.ts +24 -0
- package/dist/keyboard/avoidance.js +283 -0
- package/dist/keyboard/caretMirror.d.ts +13 -0
- package/dist/keyboard/caretMirror.js +122 -0
- package/dist/keyboard/expectedKeyboard.d.ts +10 -0
- package/dist/keyboard/expectedKeyboard.js +60 -0
- package/dist/keyboard/geometry.d.ts +10 -0
- package/dist/keyboard/geometry.js +21 -0
- package/dist/keyboard/modalTapFocus.d.ts +41 -0
- package/dist/keyboard/modalTapFocus.js +224 -0
- package/dist/keyboard/motion.d.ts +54 -0
- package/dist/keyboard/motion.js +80 -0
- package/dist/keyboard/translation.d.ts +12 -0
- package/dist/keyboard/translation.js +19 -0
- package/dist/layout/adaptiveTabsContext.d.ts +5 -0
- package/dist/layout/adaptiveTabsContext.js +2 -0
- package/dist/layout/deviceIdiom.d.ts +4 -0
- package/dist/layout/deviceIdiom.js +12 -0
- package/dist/layout/layoutClass.d.ts +44 -0
- package/dist/layout/layoutClass.js +102 -0
- package/dist/layout/navigationLayoutContext.d.ts +8 -0
- package/dist/layout/navigationLayoutContext.js +5 -0
- package/dist/list-form/ListForm.d.ts +158 -0
- package/dist/list-form/ListForm.js +427 -0
- package/dist/list-form/ListItem.d.ts +30 -0
- package/dist/list-form/ListItem.js +251 -0
- package/dist/list-form/RowLabel.d.ts +14 -0
- package/dist/list-form/RowLabel.js +11 -0
- package/dist/list-form/Slider.d.ts +18 -0
- package/dist/list-form/Slider.js +235 -0
- package/dist/list-form/StepperButton.d.ts +9 -0
- package/dist/list-form/StepperButton.js +60 -0
- package/dist/list-form/Toggle.d.ts +16 -0
- package/dist/list-form/Toggle.js +204 -0
- package/dist/list-form/editMotion.d.ts +15 -0
- package/dist/list-form/editMotion.js +25 -0
- package/dist/list-form/editing.d.ts +102 -0
- package/dist/list-form/editing.js +51 -0
- package/dist/list-form/listContext.d.ts +4 -0
- package/dist/list-form/listContext.js +5 -0
- package/dist/list-form/offsets.d.ts +26 -0
- package/dist/list-form/offsets.js +34 -0
- package/dist/list-form/reorder.d.ts +20 -0
- package/dist/list-form/reorder.js +193 -0
- package/dist/list-form/rowMotion.d.ts +11 -0
- package/dist/list-form/rowMotion.js +236 -0
- package/dist/list-form/rowMotionScope.d.ts +14 -0
- package/dist/list-form/rowMotionScope.js +61 -0
- package/dist/list-form/separatorInsets.d.ts +4 -0
- package/dist/list-form/separatorInsets.js +87 -0
- package/dist/list-form/sliderContact.d.ts +40 -0
- package/dist/list-form/sliderContact.js +98 -0
- package/dist/list-form/state.d.ts +5 -0
- package/dist/list-form/state.js +8 -0
- package/dist/list-form/toggleContact.d.ts +55 -0
- package/dist/list-form/toggleContact.js +164 -0
- package/dist/media/controller.d.ts +7 -0
- package/dist/media/controller.js +612 -0
- package/dist/media/react.d.ts +9 -0
- package/dist/media/react.js +38 -0
- package/dist/media/systemMedia.d.ts +6 -0
- package/dist/media/systemMedia.js +200 -0
- package/dist/media/types.d.ts +83 -0
- package/dist/media/types.js +1 -0
- package/dist/menu/menuContact.d.ts +20 -0
- package/dist/menu/menuContact.js +286 -0
- package/dist/menu/menuGesture.d.ts +84 -0
- package/dist/menu/menuGesture.js +502 -0
- package/dist/menu/menuInteraction.d.ts +17 -0
- package/dist/menu/menuInteraction.js +34 -0
- package/dist/menu/menuOutside.d.ts +9 -0
- package/dist/menu/menuOutside.js +58 -0
- package/dist/menu/menuPanelContact.d.ts +11 -0
- package/dist/menu/menuPanelContact.js +77 -0
- package/dist/menu/menuTriggerHold.d.ts +3 -0
- package/dist/menu/menuTriggerHold.js +52 -0
- package/dist/menu/sampledMotion.d.ts +37 -0
- package/dist/menu/sampledMotion.js +86 -0
- package/dist/modal/lifecycle.d.ts +10 -0
- package/dist/modal/lifecycle.js +189 -0
- package/dist/motion/TransitionView.d.ts +12 -0
- package/dist/motion/TransitionView.js +118 -0
- package/dist/motion/animate.d.ts +20 -0
- package/dist/motion/animate.js +79 -0
- package/dist/motion/animationValue.d.ts +25 -0
- package/dist/motion/animationValue.js +42 -0
- package/dist/motion/composerMotion.d.ts +3 -0
- package/dist/motion/composerMotion.js +15 -0
- package/dist/motion/layoutTransaction.d.ts +7 -0
- package/dist/motion/layoutTransaction.js +28 -0
- package/dist/motion/matchedGeometry.d.ts +55 -0
- package/dist/motion/matchedGeometry.js +412 -0
- package/dist/motion/springPath.d.ts +27 -0
- package/dist/motion/springPath.js +46 -0
- package/dist/motion/springTrack.d.ts +33 -0
- package/dist/motion/springTrack.js +69 -0
- package/dist/motion/transition.d.ts +48 -0
- package/dist/motion/transition.js +56 -0
- package/dist/motion/transitionImages.d.ts +7 -0
- package/dist/motion/transitionImages.js +49 -0
- package/dist/motionProbe.d.ts +227 -0
- package/dist/motionProbe.js +697 -0
- package/dist/motionProbeControls.d.ts +2 -0
- package/dist/motionProbeControls.js +118 -0
- package/dist/motionProbeDelivery.d.ts +15 -0
- package/dist/motionProbeDelivery.js +84 -0
- package/dist/navigation/DetailList.d.ts +9 -0
- package/dist/navigation/DetailList.js +7 -0
- package/dist/navigation/NavigationChrome.d.ts +18 -0
- package/dist/navigation/NavigationChrome.js +195 -0
- package/dist/navigation/NavigationSearchRow.d.ts +9 -0
- package/dist/navigation/NavigationSearchRow.js +101 -0
- package/dist/navigation/NavigationTitleSlots.d.ts +18 -0
- package/dist/navigation/NavigationTitleSlots.js +64 -0
- package/dist/navigation/NavigatorHost.d.ts +17 -0
- package/dist/navigation/NavigatorHost.js +534 -0
- package/dist/navigation/ScreenContainer.d.ts +31 -0
- package/dist/navigation/ScreenContainer.js +219 -0
- package/dist/navigation/ScrubSourceFrames.d.ts +18 -0
- package/dist/navigation/ScrubSourceFrames.js +67 -0
- package/dist/navigation/Sidebar.d.ts +16 -0
- package/dist/navigation/Sidebar.js +20 -0
- package/dist/navigation/SidebarSymbol.d.ts +4 -0
- package/dist/navigation/SidebarSymbol.js +6 -0
- package/dist/navigation/ToolbarGlass.d.ts +2 -0
- package/dist/navigation/ToolbarGlass.js +429 -0
- package/dist/navigation/TransitionEdge.d.ts +4 -0
- package/dist/navigation/TransitionEdge.js +33 -0
- package/dist/navigation/bottomToolbarGeometry.d.ts +6 -0
- package/dist/navigation/bottomToolbarGeometry.js +14 -0
- package/dist/navigation/chromeCurves.d.ts +48 -0
- package/dist/navigation/chromeCurves.js +255 -0
- package/dist/navigation/glassTransition.d.ts +32 -0
- package/dist/navigation/glassTransition.js +55 -0
- package/dist/navigation/horizontalDrag.d.ts +6 -0
- package/dist/navigation/horizontalDrag.js +15 -0
- package/dist/navigation/interactivePop.d.ts +45 -0
- package/dist/navigation/interactivePop.js +86 -0
- package/dist/navigation/interactivePopTypes.d.ts +85 -0
- package/dist/navigation/interactivePopTypes.js +36 -0
- package/dist/navigation/keyboard.d.ts +9 -0
- package/dist/navigation/keyboard.js +55 -0
- package/dist/navigation/motion.d.ts +19 -0
- package/dist/navigation/motion.js +645 -0
- package/dist/navigation/motionTokens.d.ts +43 -0
- package/dist/navigation/motionTokens.js +75 -0
- package/dist/navigation/nativeScrubExperiment.d.ts +5 -0
- package/dist/navigation/nativeScrubExperiment.js +153 -0
- package/dist/navigation/nativeScrubSource.d.ts +15 -0
- package/dist/navigation/nativeScrubSource.js +88 -0
- package/dist/navigation/navigationChromeModel.d.ts +8 -0
- package/dist/navigation/navigationChromeModel.js +30 -0
- package/dist/navigation/navigationContext.d.ts +22 -0
- package/dist/navigation/navigationContext.js +65 -0
- package/dist/navigation/navigationEdge.d.ts +4 -0
- package/dist/navigation/navigationEdge.js +101 -0
- package/dist/navigation/pointerPop.d.ts +32 -0
- package/dist/navigation/pointerPop.js +206 -0
- package/dist/navigation/probeLayers.d.ts +7 -0
- package/dist/navigation/probeLayers.js +8 -0
- package/dist/navigation/registry.d.ts +14 -0
- package/dist/navigation/registry.js +31 -0
- package/dist/navigation/releaseDecision.d.ts +21 -0
- package/dist/navigation/releaseDecision.js +94 -0
- package/dist/navigation/releaseTrajectory.d.ts +20 -0
- package/dist/navigation/releaseTrajectory.js +95 -0
- package/dist/navigation/releaseVelocity.d.ts +9 -0
- package/dist/navigation/releaseVelocity.js +38 -0
- package/dist/navigation/routeCodec.d.ts +33 -0
- package/dist/navigation/routeCodec.js +123 -0
- package/dist/navigation/scrollEdge.d.ts +18 -0
- package/dist/navigation/scrollEdge.js +66 -0
- package/dist/navigation/scrubFrameLoop.d.ts +44 -0
- package/dist/navigation/scrubFrameLoop.js +129 -0
- package/dist/navigation/sidebarSelection.d.ts +5 -0
- package/dist/navigation/sidebarSelection.js +8 -0
- package/dist/navigation/splitContext.d.ts +17 -0
- package/dist/navigation/splitContext.js +9 -0
- package/dist/navigation/splitState.d.ts +46 -0
- package/dist/navigation/splitState.js +130 -0
- package/dist/navigation/stack.d.ts +25 -0
- package/dist/navigation/stack.js +136 -0
- package/dist/navigation/store.d.ts +80 -0
- package/dist/navigation/store.js +464 -0
- package/dist/navigation/toolbarGlassMotion.d.ts +40 -0
- package/dist/navigation/toolbarGlassMotion.js +202 -0
- package/dist/navigation/toolbarMinimization.d.ts +9 -0
- package/dist/navigation/toolbarMinimization.js +76 -0
- package/dist/navigation/toolbarMotionOwner.d.ts +6 -0
- package/dist/navigation/toolbarMotionOwner.js +30 -0
- package/dist/navigation/touchArbitration.d.ts +34 -0
- package/dist/navigation/touchArbitration.js +550 -0
- package/dist/navigation/tracking.d.ts +7 -0
- package/dist/navigation/tracking.js +19 -0
- package/dist/navigation/transitionBindings.d.ts +31 -0
- package/dist/navigation/transitionBindings.js +106 -0
- package/dist/navigation/transitionChrome.d.ts +31 -0
- package/dist/navigation/transitionChrome.js +380 -0
- package/dist/navigation/transitionPose.d.ts +52 -0
- package/dist/navigation/transitionPose.js +295 -0
- package/dist/navigation/types.d.ts +133 -0
- package/dist/navigation/types.js +1 -0
- package/dist/navigation/zoomDrag.d.ts +3 -0
- package/dist/navigation/zoomDrag.js +125 -0
- package/dist/navigation/zoomGeometry.d.ts +48 -0
- package/dist/navigation/zoomGeometry.js +94 -0
- package/dist/navigation/zoomGlass.d.ts +27 -0
- package/dist/navigation/zoomGlass.js +64 -0
- package/dist/navigation/zoomMotion.d.ts +73 -0
- package/dist/navigation/zoomMotion.js +104 -0
- package/dist/navigation/zoomTransition.d.ts +82 -0
- package/dist/navigation/zoomTransition.js +975 -0
- package/dist/presentation/Presentation.d.ts +61 -0
- package/dist/presentation/Presentation.js +92 -0
- package/dist/presentation/PresentationSurface.d.ts +29 -0
- package/dist/presentation/PresentationSurface.js +586 -0
- package/dist/presentation/PresentedSheet.d.ts +2 -0
- package/dist/presentation/PresentedSheet.js +571 -0
- package/dist/presentation/activity.d.ts +3 -0
- package/dist/presentation/activity.js +24 -0
- package/dist/presentation/coldLaunch.d.ts +2 -0
- package/dist/presentation/coldLaunch.js +19 -0
- package/dist/presentation/dismiss.d.ts +26 -0
- package/dist/presentation/dismiss.js +30 -0
- package/dist/presentation/glassMotion.d.ts +39 -0
- package/dist/presentation/glassMotion.js +259 -0
- package/dist/presentation/glassReady.d.ts +11 -0
- package/dist/presentation/glassReady.js +246 -0
- package/dist/presentation/model.d.ts +108 -0
- package/dist/presentation/model.js +183 -0
- package/dist/presentation/motion.d.ts +56 -0
- package/dist/presentation/motion.js +263 -0
- package/dist/presentation/presentationMotion.d.ts +10 -0
- package/dist/presentation/presentationMotion.js +74 -0
- package/dist/presentation/presentationSource.d.ts +2 -0
- package/dist/presentation/presentationSource.js +28 -0
- package/dist/presentation/sheetChromeContext.d.ts +2 -0
- package/dist/presentation/sheetChromeContext.js +3 -0
- package/dist/presentation/sheetMaterialTransition.d.ts +14 -0
- package/dist/presentation/sheetMaterialTransition.js +33 -0
- package/dist/presentation/sheetReleaseMotion.d.ts +18 -0
- package/dist/presentation/sheetReleaseMotion.js +123 -0
- package/dist/presentation/useAlertKeyboardMotion.d.ts +8 -0
- package/dist/presentation/useAlertKeyboardMotion.js +104 -0
- package/dist/press/Pressable.d.ts +19 -0
- package/dist/press/Pressable.js +16 -0
- package/dist/press/activation.d.ts +20 -0
- package/dist/press/activation.js +28 -0
- package/dist/press/contactReceipt.d.ts +23 -0
- package/dist/press/contactReceipt.js +177 -0
- package/dist/press/gestureArbitration.d.ts +13 -0
- package/dist/press/gestureArbitration.js +38 -0
- package/dist/press/stateMachine.d.ts +29 -0
- package/dist/press/stateMachine.js +39 -0
- package/dist/press/tokens.d.ts +18 -0
- package/dist/press/tokens.js +19 -0
- package/dist/press/usePressInteraction.d.ts +30 -0
- package/dist/press/usePressInteraction.js +247 -0
- package/dist/public/Label.d.ts +16 -0
- package/dist/public/Label.js +40 -0
- package/dist/public/NativeFilePicker.d.ts +19 -0
- package/dist/public/NativeFilePicker.js +75 -0
- package/dist/public/Screen.d.ts +42 -0
- package/dist/public/Screen.js +87 -0
- package/dist/public/actions.d.ts +16 -0
- package/dist/public/actions.js +15 -0
- package/dist/public/buttonBorderShape.d.ts +7 -0
- package/dist/public/buttonBorderShape.js +9 -0
- package/dist/public/chrome.d.ts +3 -0
- package/dist/public/chrome.js +5 -0
- package/dist/public/colors.d.ts +29 -0
- package/dist/public/colors.js +28 -0
- package/dist/public/context.d.ts +19 -0
- package/dist/public/context.js +8 -0
- package/dist/public/controlStyle.d.ts +93 -0
- package/dist/public/controlStyle.js +52 -0
- package/dist/public/controls.d.ts +360 -0
- package/dist/public/controls.js +301 -0
- package/dist/public/definition.d.ts +65 -0
- package/dist/public/definition.js +58 -0
- package/dist/public/deviceActions.d.ts +23 -0
- package/dist/public/deviceActions.js +87 -0
- package/dist/public/environment.d.ts +77 -0
- package/dist/public/environment.js +171 -0
- package/dist/public/fieldContext.d.ts +2 -0
- package/dist/public/fieldContext.js +3 -0
- package/dist/public/filePickers.d.ts +25 -0
- package/dist/public/filePickers.js +11 -0
- package/dist/public/glass.d.ts +31 -0
- package/dist/public/glass.js +29 -0
- package/dist/public/glassValue.d.ts +19 -0
- package/dist/public/glassValue.js +32 -0
- package/dist/public/keyboard.d.ts +4 -0
- package/dist/public/keyboard.js +6 -0
- package/dist/public/navigationTransition.d.ts +48 -0
- package/dist/public/navigationTransition.js +49 -0
- package/dist/public/pickerNavigation.d.ts +7 -0
- package/dist/public/pickerNavigation.js +64 -0
- package/dist/public/presentation.d.ts +40 -0
- package/dist/public/presentation.js +21 -0
- package/dist/public/presentationContext.d.ts +2 -0
- package/dist/public/presentationContext.js +3 -0
- package/dist/public/routeRegistry.d.ts +3 -0
- package/dist/public/routeRegistry.js +10 -0
- package/dist/public/routes.d.ts +74 -0
- package/dist/public/routes.js +105 -0
- package/dist/public/runtime.d.ts +134 -0
- package/dist/public/runtime.js +292 -0
- package/dist/public/screenChrome.d.ts +91 -0
- package/dist/public/screenChrome.js +187 -0
- package/dist/public/scroll.d.ts +38 -0
- package/dist/public/scroll.js +7 -0
- package/dist/public/storage.d.ts +9 -0
- package/dist/public/storage.js +9 -0
- package/dist/public/structure.d.ts +65 -0
- package/dist/public/structure.js +40 -0
- package/dist/public/toolbar.d.ts +37 -0
- package/dist/public/toolbar.js +76 -0
- package/dist/push/PushPermissionExplainer.d.ts +14 -0
- package/dist/push/PushPermissionExplainer.js +30 -0
- package/dist/push/notifications.d.ts +54 -0
- package/dist/push/notifications.js +276 -0
- package/dist/push/routes.d.ts +20 -0
- package/dist/push/routes.js +63 -0
- package/dist/push/schema.d.ts +42 -0
- package/dist/push/schema.js +41 -0
- package/dist/push/urlProjection.d.ts +24 -0
- package/dist/push/urlProjection.js +207 -0
- package/dist/reachability/controller.d.ts +21 -0
- package/dist/reachability/controller.js +202 -0
- package/dist/reachability/model.d.ts +94 -0
- package/dist/reachability/model.js +131 -0
- package/dist/reachability/react.d.ts +29 -0
- package/dist/reachability/react.js +69 -0
- package/dist/restoration/navigation.d.ts +9 -0
- package/dist/restoration/navigation.js +55 -0
- package/dist/restoration/react.d.ts +6 -0
- package/dist/restoration/react.js +21 -0
- package/dist/restoration/routes.d.ts +22 -0
- package/dist/restoration/routes.js +166 -0
- package/dist/restoration/scene.d.ts +44 -0
- package/dist/restoration/scene.js +284 -0
- package/dist/root/SatinRoot.d.ts +25 -0
- package/dist/root/SatinRoot.js +512 -0
- package/dist/root/mountSatin.d.ts +12 -0
- package/dist/root/mountSatin.js +60 -0
- package/dist/root/runtimeContext.d.ts +26 -0
- package/dist/root/runtimeContext.js +30 -0
- package/dist/safe-area/Overlay.d.ts +9 -0
- package/dist/safe-area/Overlay.js +26 -0
- package/dist/safe-area/SafeAreaInset.d.ts +25 -0
- package/dist/safe-area/SafeAreaInset.js +138 -0
- package/dist/safe-area/bottomInsetGeometry.d.ts +12 -0
- package/dist/safe-area/bottomInsetGeometry.js +73 -0
- package/dist/safe-area/context.d.ts +15 -0
- package/dist/safe-area/context.js +8 -0
- package/dist/safe-area/displayCorners.d.ts +21 -0
- package/dist/safe-area/displayCorners.js +70 -0
- package/dist/safe-area/keyboardCarrier.d.ts +26 -0
- package/dist/safe-area/keyboardCarrier.js +394 -0
- package/dist/safe-area/keyboardCarrierGeometry.d.ts +37 -0
- package/dist/safe-area/keyboardCarrierGeometry.js +49 -0
- package/dist/safe-area/modifiers.d.ts +52 -0
- package/dist/safe-area/modifiers.js +86 -0
- package/dist/safe-area/useSafeAreaMetrics.d.ts +83 -0
- package/dist/safe-area/useSafeAreaMetrics.js +367 -0
- package/dist/safe-area/windowChrome.d.ts +7 -0
- package/dist/safe-area/windowChrome.js +14 -0
- package/dist/scroll/RefreshControl.d.ts +8 -0
- package/dist/scroll/RefreshControl.js +135 -0
- package/dist/scroll/ScrollSurface.d.ts +62 -0
- package/dist/scroll/ScrollSurface.js +278 -0
- package/dist/scroll/ScrollTarget.d.ts +6 -0
- package/dist/scroll/ScrollTarget.js +11 -0
- package/dist/scroll/edgePolicy.d.ts +21 -0
- package/dist/scroll/edgePolicy.js +17 -0
- package/dist/scroll/insertionMotion.d.ts +15 -0
- package/dist/scroll/insertionMotion.js +128 -0
- package/dist/scroll/nativeScroll.d.ts +14 -0
- package/dist/scroll/nativeScroll.js +71 -0
- package/dist/scroll/position.d.ts +31 -0
- package/dist/scroll/position.js +273 -0
- package/dist/scroll/pressOwnership.d.ts +4 -0
- package/dist/scroll/pressOwnership.js +65 -0
- package/dist/scroll/refreshMotion.d.ts +9 -0
- package/dist/scroll/refreshMotion.js +15 -0
- package/dist/scroll/refreshable.d.ts +6 -0
- package/dist/scroll/refreshable.js +50 -0
- package/dist/scroll/registry.d.ts +38 -0
- package/dist/scroll/registry.js +261 -0
- package/dist/scroll/screenGeometry.d.ts +8 -0
- package/dist/scroll/screenGeometry.js +50 -0
- package/dist/scroll/scrollIndicator.d.ts +7 -0
- package/dist/scroll/scrollIndicator.js +114 -0
- package/dist/scroll/scrollJump.d.ts +7 -0
- package/dist/scroll/scrollJump.js +16 -0
- package/dist/scroll/types.d.ts +12 -0
- package/dist/scroll/types.js +1 -0
- package/dist/search/SearchDrawer.d.ts +16 -0
- package/dist/search/SearchDrawer.js +421 -0
- package/dist/search/SearchScopesBar.d.ts +6 -0
- package/dist/search/SearchScopesBar.js +12 -0
- package/dist/search/SearchToolbarField.d.ts +8 -0
- package/dist/search/SearchToolbarField.js +115 -0
- package/dist/search/searchBackdrop.d.ts +12 -0
- package/dist/search/searchBackdrop.js +45 -0
- package/dist/search/searchChrome.d.ts +13 -0
- package/dist/search/searchChrome.js +31 -0
- package/dist/search/searchMotion.d.ts +30 -0
- package/dist/search/searchMotion.js +46 -0
- package/dist/search/searchPlacement.d.ts +11 -0
- package/dist/search/searchPlacement.js +15 -0
- package/dist/search/searchable.d.ts +46 -0
- package/dist/search/searchable.js +5 -0
- package/dist/search/useSearchPresentation.d.ts +15 -0
- package/dist/search/useSearchPresentation.js +61 -0
- package/dist/server.d.ts +7 -0
- package/dist/server.js +144 -0
- package/dist/settings/DisclosureIndicator.d.ts +4 -0
- package/dist/settings/DisclosureIndicator.js +6 -0
- package/dist/settings/tokens.d.ts +129 -0
- package/dist/settings/tokens.js +143 -0
- package/dist/shapes/corners.d.ts +14 -0
- package/dist/shapes/corners.js +80 -0
- package/dist/styles.css +9078 -0
- package/dist/styles.css.d.ts +3 -0
- package/dist/sw/activationState.d.ts +20 -0
- package/dist/sw/activationState.js +39 -0
- package/dist/sw/generator.d.ts +14 -0
- package/dist/sw/generator.js +26 -0
- package/dist/sw/manifest.d.ts +32 -0
- package/dist/sw/manifest.js +137 -0
- package/dist/sw/protocol.d.ts +7 -0
- package/dist/sw/protocol.js +7 -0
- package/dist/sw/pushRuntime.d.ts +2 -0
- package/dist/sw/pushRuntime.js +161 -0
- package/dist/sw/registerAppShell.d.ts +25 -0
- package/dist/sw/registerAppShell.js +259 -0
- package/dist/sw/renderServiceWorker.d.ts +10 -0
- package/dist/sw/renderServiceWorker.js +370 -0
- package/dist/sw/requestRouting.d.ts +13 -0
- package/dist/sw/requestRouting.js +26 -0
- package/dist/sw/updateCheck.d.ts +2 -0
- package/dist/sw/updateCheck.js +25 -0
- package/dist/sw/vite.d.ts +20 -0
- package/dist/sw/vite.js +71 -0
- package/dist/symbols/Symbol.d.ts +33 -0
- package/dist/symbols/Symbol.js +59 -0
- package/dist/symbols/catalogue.d.ts +4 -0
- package/dist/symbols/catalogue.js +4139 -0
- package/dist/symbols/exclusions.d.ts +2 -0
- package/dist/symbols/exclusions.js +4 -0
- package/dist/symbols/inheritedWeight.d.ts +3 -0
- package/dist/symbols/inheritedWeight.js +104 -0
- package/dist/symbols/metrics.d.ts +38 -0
- package/dist/symbols/metrics.js +53 -0
- package/dist/symbols/svg.d.ts +3 -0
- package/dist/symbols/svg.js +16 -0
- package/dist/symbols/types.d.ts +30 -0
- package/dist/symbols/types.js +1 -0
- package/dist/tabs/TabSection.d.ts +12 -0
- package/dist/tabs/TabSection.js +4 -0
- package/dist/tabs/TabSidebarSurface.d.ts +7 -0
- package/dist/tabs/TabSidebarSurface.js +29 -0
- package/dist/tabs/TabView.d.ts +28 -0
- package/dist/tabs/TabView.js +258 -0
- package/dist/tabs/accessoryContact.d.ts +2 -0
- package/dist/tabs/accessoryContact.js +42 -0
- package/dist/tabs/compactBar.d.ts +4 -0
- package/dist/tabs/compactBar.js +28 -0
- package/dist/tabs/context.d.ts +8 -0
- package/dist/tabs/context.js +6 -0
- package/dist/tabs/keyboard.d.ts +3 -0
- package/dist/tabs/keyboard.js +23 -0
- package/dist/tabs/model.d.ts +6 -0
- package/dist/tabs/model.js +16 -0
- package/dist/tabs/presentation.d.ts +7 -0
- package/dist/tabs/presentation.js +14 -0
- package/dist/tabs/sourceRevision.d.ts +3 -0
- package/dist/tabs/sourceRevision.js +36 -0
- package/dist/tabs/tabSidebarGlyph.d.ts +2 -0
- package/dist/tabs/tabSidebarGlyph.js +11 -0
- package/dist/tasks/useTask.d.ts +16 -0
- package/dist/tasks/useTask.js +67 -0
- package/dist/testing.d.ts +9 -0
- package/dist/testing.js +11 -0
- package/dist/text-input/TextEditor.d.ts +25 -0
- package/dist/text-input/TextEditor.js +74 -0
- package/dist/text-input/TextField.d.ts +32 -0
- package/dist/text-input/TextField.js +29 -0
- package/dist/text-input/editorGeometry.d.ts +2 -0
- package/dist/text-input/editorGeometry.js +6 -0
- package/dist/text-input/editorTextLayout.d.ts +2 -0
- package/dist/text-input/editorTextLayout.js +31 -0
- package/dist/text-input/focusChain.d.ts +27 -0
- package/dist/text-input/focusChain.js +62 -0
- package/dist/text-input/kinds.d.ts +8 -0
- package/dist/text-input/kinds.js +34 -0
- package/dist/text-input/measureEditor.d.ts +2 -0
- package/dist/text-input/measureEditor.js +50 -0
- package/dist/text-input/submit.d.ts +9 -0
- package/dist/text-input/submit.js +7 -0
- package/dist/unstable.d.ts +16 -0
- package/dist/unstable.js +16 -0
- package/dist/vite.d.ts +3 -0
- package/dist/vite.js +3 -0
- package/dist/web/WebView.d.ts +42 -0
- package/dist/web/WebView.js +115 -0
- package/dist/web/authentication.d.ts +75 -0
- package/dist/web/authentication.js +488 -0
- package/dist/web/openURL.d.ts +37 -0
- package/dist/web/openURL.js +89 -0
- package/dist/web/urlPolicy.d.ts +3 -0
- package/dist/web/urlPolicy.js +19 -0
- package/dist/web/useWebAuthentication.d.ts +3 -0
- package/dist/web/useWebAuthentication.js +6 -0
- package/dist/zoom/Zoomable.d.ts +10 -0
- package/dist/zoom/Zoomable.js +116 -0
- package/dist/zoom/geometry.d.ts +11 -0
- package/dist/zoom/geometry.js +16 -0
- package/package.json +115 -3
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
# Available symbols
|
|
2
|
+
|
|
3
|
+
Satin bundles 278 symbol names. Use these names in Symbol, Button,
|
|
4
|
+
ToolbarItem and tab declarations. They are semantic aliases for redistributable
|
|
5
|
+
Framework7 artwork, not Apple SF Symbols artwork.
|
|
6
|
+
|
|
7
|
+
A name absent from this list renders the visible question-mark placeholder unless
|
|
8
|
+
your SymbolProvider supplies an original or redistributable glyph. SymbolName
|
|
9
|
+
accepts custom strings, so TypeScript does not check catalogue membership.
|
|
10
|
+
Selected symbols use the corresponding .fill name when it exists.
|
|
11
|
+
|
|
12
|
+
This page is generated from the shipped catalogue during each package build.
|
|
13
|
+
|
|
14
|
+
| Name |
|
|
15
|
+
| --- |
|
|
16
|
+
| `airplane` |
|
|
17
|
+
| `airplayaudio` |
|
|
18
|
+
| `archivebox` |
|
|
19
|
+
| `archivebox.fill` |
|
|
20
|
+
| `arrow.2.squarepath` |
|
|
21
|
+
| `arrow.clockwise` |
|
|
22
|
+
| `arrow.counterclockwise` |
|
|
23
|
+
| `arrow.down` |
|
|
24
|
+
| `arrow.down.circle` |
|
|
25
|
+
| `arrow.down.circle.fill` |
|
|
26
|
+
| `arrow.left` |
|
|
27
|
+
| `arrow.right` |
|
|
28
|
+
| `arrow.up` |
|
|
29
|
+
| `arrow.up.arrow.down` |
|
|
30
|
+
| `arrow.up.right` |
|
|
31
|
+
| `arrow.uturn.backward` |
|
|
32
|
+
| `arrow.uturn.forward` |
|
|
33
|
+
| `arrowshape.turn.up.left` |
|
|
34
|
+
| `arrowshape.turn.up.left.fill` |
|
|
35
|
+
| `arrowshape.turn.up.right` |
|
|
36
|
+
| `arrowshape.turn.up.right.fill` |
|
|
37
|
+
| `at` |
|
|
38
|
+
| `backward` |
|
|
39
|
+
| `backward.fill` |
|
|
40
|
+
| `battery.100` |
|
|
41
|
+
| `bed.double` |
|
|
42
|
+
| `bed.double.fill` |
|
|
43
|
+
| `bell` |
|
|
44
|
+
| `bell.badge` |
|
|
45
|
+
| `bell.badge.fill` |
|
|
46
|
+
| `bell.fill` |
|
|
47
|
+
| `bell.slash` |
|
|
48
|
+
| `bell.slash.fill` |
|
|
49
|
+
| `bicycle` |
|
|
50
|
+
| `bolt` |
|
|
51
|
+
| `bolt.fill` |
|
|
52
|
+
| `book` |
|
|
53
|
+
| `book.closed` |
|
|
54
|
+
| `book.closed.fill` |
|
|
55
|
+
| `book.fill` |
|
|
56
|
+
| `bookmark` |
|
|
57
|
+
| `bookmark.fill` |
|
|
58
|
+
| `brain.head.profile` |
|
|
59
|
+
| `briefcase` |
|
|
60
|
+
| `briefcase.fill` |
|
|
61
|
+
| `bubble.left.and.bubble.right` |
|
|
62
|
+
| `bubble.left.and.bubble.right.fill` |
|
|
63
|
+
| `calendar` |
|
|
64
|
+
| `calendar.badge.clock` |
|
|
65
|
+
| `camera` |
|
|
66
|
+
| `camera.fill` |
|
|
67
|
+
| `car` |
|
|
68
|
+
| `cart` |
|
|
69
|
+
| `cart.fill` |
|
|
70
|
+
| `chart.bar` |
|
|
71
|
+
| `chart.bar.fill` |
|
|
72
|
+
| `chart.line.uptrend.xyaxis` |
|
|
73
|
+
| `checklist` |
|
|
74
|
+
| `checkmark` |
|
|
75
|
+
| `checkmark.circle` |
|
|
76
|
+
| `checkmark.circle.fill` |
|
|
77
|
+
| `checkmark.seal` |
|
|
78
|
+
| `checkmark.seal.fill` |
|
|
79
|
+
| `checkmark.square` |
|
|
80
|
+
| `checkmark.square.fill` |
|
|
81
|
+
| `chevron.down` |
|
|
82
|
+
| `chevron.left` |
|
|
83
|
+
| `chevron.right` |
|
|
84
|
+
| `chevron.up` |
|
|
85
|
+
| `chevron.up.chevron.down` |
|
|
86
|
+
| `circle` |
|
|
87
|
+
| `circle.fill` |
|
|
88
|
+
| `clock` |
|
|
89
|
+
| `clock.arrow.circlepath` |
|
|
90
|
+
| `clock.fill` |
|
|
91
|
+
| `cross.case` |
|
|
92
|
+
| `cross.case.fill` |
|
|
93
|
+
| `cup.and.saucer` |
|
|
94
|
+
| `cup.and.saucer.fill` |
|
|
95
|
+
| `device.phone.portrait` |
|
|
96
|
+
| `display` |
|
|
97
|
+
| `doc` |
|
|
98
|
+
| `doc.fill` |
|
|
99
|
+
| `doc.on.doc` |
|
|
100
|
+
| `doc.on.doc.fill` |
|
|
101
|
+
| `doc.text` |
|
|
102
|
+
| `doc.text.fill` |
|
|
103
|
+
| `dollarsign.circle` |
|
|
104
|
+
| `dollarsign.circle.fill` |
|
|
105
|
+
| `dot.radiowaves.left.and.right` |
|
|
106
|
+
| `dot.radiowaves.left.right` |
|
|
107
|
+
| `drop` |
|
|
108
|
+
| `drop.fill` |
|
|
109
|
+
| `dumbbell` |
|
|
110
|
+
| `dumbbell.fill` |
|
|
111
|
+
| `ellipsis` |
|
|
112
|
+
| `ellipsis.circle` |
|
|
113
|
+
| `ellipsis.circle.fill` |
|
|
114
|
+
| `envelope` |
|
|
115
|
+
| `envelope.badge` |
|
|
116
|
+
| `envelope.badge.fill` |
|
|
117
|
+
| `envelope.fill` |
|
|
118
|
+
| `envelope.open` |
|
|
119
|
+
| `envelope.open.fill` |
|
|
120
|
+
| `exclamationmark.2` |
|
|
121
|
+
| `exclamationmark.triangle` |
|
|
122
|
+
| `exclamationmark.triangle.fill` |
|
|
123
|
+
| `eye` |
|
|
124
|
+
| `eye.fill` |
|
|
125
|
+
| `eye.slash` |
|
|
126
|
+
| `eye.slash.fill` |
|
|
127
|
+
| `face.smiling` |
|
|
128
|
+
| `face.smiling.fill` |
|
|
129
|
+
| `figure.run` |
|
|
130
|
+
| `flag` |
|
|
131
|
+
| `flag.fill` |
|
|
132
|
+
| `flag.slash` |
|
|
133
|
+
| `flag.slash.fill` |
|
|
134
|
+
| `flame` |
|
|
135
|
+
| `flame.fill` |
|
|
136
|
+
| `folder` |
|
|
137
|
+
| `folder.badge.plus` |
|
|
138
|
+
| `folder.fill` |
|
|
139
|
+
| `fork.knife` |
|
|
140
|
+
| `forward` |
|
|
141
|
+
| `forward.fill` |
|
|
142
|
+
| `gear` |
|
|
143
|
+
| `gearshape` |
|
|
144
|
+
| `gearshape.fill` |
|
|
145
|
+
| `gift` |
|
|
146
|
+
| `gift.fill` |
|
|
147
|
+
| `globe` |
|
|
148
|
+
| `graduationcap` |
|
|
149
|
+
| `graduationcap.fill` |
|
|
150
|
+
| `hand.raised` |
|
|
151
|
+
| `hand.raised.fill` |
|
|
152
|
+
| `hand.thumbsdown` |
|
|
153
|
+
| `hand.thumbsdown.fill` |
|
|
154
|
+
| `hand.thumbsup` |
|
|
155
|
+
| `hand.thumbsup.fill` |
|
|
156
|
+
| `headphones` |
|
|
157
|
+
| `heart` |
|
|
158
|
+
| `heart.fill` |
|
|
159
|
+
| `heart.slash` |
|
|
160
|
+
| `heart.slash.fill` |
|
|
161
|
+
| `hourglass` |
|
|
162
|
+
| `house` |
|
|
163
|
+
| `house.fill` |
|
|
164
|
+
| `info.circle` |
|
|
165
|
+
| `info.circle.fill` |
|
|
166
|
+
| `key` |
|
|
167
|
+
| `key.fill` |
|
|
168
|
+
| `keyboard` |
|
|
169
|
+
| `leaf` |
|
|
170
|
+
| `leaf.fill` |
|
|
171
|
+
| `line.3.horizontal` |
|
|
172
|
+
| `line.3.horizontal.decrease` |
|
|
173
|
+
| `line.3.horizontal.decrease.circle` |
|
|
174
|
+
| `line.3.horizontal.decrease.circle.fill` |
|
|
175
|
+
| `link` |
|
|
176
|
+
| `list.bullet` |
|
|
177
|
+
| `list.bullet.clipboard` |
|
|
178
|
+
| `list.bullet.clipboard.fill` |
|
|
179
|
+
| `list.number` |
|
|
180
|
+
| `location` |
|
|
181
|
+
| `location.fill` |
|
|
182
|
+
| `lock` |
|
|
183
|
+
| `lock.fill` |
|
|
184
|
+
| `magnifyingglass` |
|
|
185
|
+
| `mappin` |
|
|
186
|
+
| `mappin.and.ellipse` |
|
|
187
|
+
| `minus` |
|
|
188
|
+
| `moon` |
|
|
189
|
+
| `moon.fill` |
|
|
190
|
+
| `music.house` |
|
|
191
|
+
| `music.house.fill` |
|
|
192
|
+
| `music.mic` |
|
|
193
|
+
| `music.note` |
|
|
194
|
+
| `music.note.list` |
|
|
195
|
+
| `note.text` |
|
|
196
|
+
| `note.text.fill` |
|
|
197
|
+
| `paperplane` |
|
|
198
|
+
| `paperplane.fill` |
|
|
199
|
+
| `pause` |
|
|
200
|
+
| `pause.circle` |
|
|
201
|
+
| `pause.circle.fill` |
|
|
202
|
+
| `pause.fill` |
|
|
203
|
+
| `pawprint` |
|
|
204
|
+
| `pencil` |
|
|
205
|
+
| `person` |
|
|
206
|
+
| `person.2` |
|
|
207
|
+
| `person.2.fill` |
|
|
208
|
+
| `person.badge.plus` |
|
|
209
|
+
| `person.badge.plus.fill` |
|
|
210
|
+
| `person.crop.circle` |
|
|
211
|
+
| `person.crop.circle.fill` |
|
|
212
|
+
| `person.fill` |
|
|
213
|
+
| `photo` |
|
|
214
|
+
| `photo.fill` |
|
|
215
|
+
| `photo.on.rectangle` |
|
|
216
|
+
| `pill` |
|
|
217
|
+
| `pill.fill` |
|
|
218
|
+
| `pin` |
|
|
219
|
+
| `pin.fill` |
|
|
220
|
+
| `pin.slash` |
|
|
221
|
+
| `pin.slash.fill` |
|
|
222
|
+
| `play` |
|
|
223
|
+
| `play.circle` |
|
|
224
|
+
| `play.circle.fill` |
|
|
225
|
+
| `play.fill` |
|
|
226
|
+
| `play.rectangle` |
|
|
227
|
+
| `play.rectangle.fill` |
|
|
228
|
+
| `plus` |
|
|
229
|
+
| `plus.circle` |
|
|
230
|
+
| `plus.circle.fill` |
|
|
231
|
+
| `questionmark.circle` |
|
|
232
|
+
| `questionmark.circle.fill` |
|
|
233
|
+
| `questionmark.square` |
|
|
234
|
+
| `questionmark.square.fill` |
|
|
235
|
+
| `quote.bubble` |
|
|
236
|
+
| `quote.bubble.fill` |
|
|
237
|
+
| `receipt` |
|
|
238
|
+
| `receipt.fill` |
|
|
239
|
+
| `rectangle.stack` |
|
|
240
|
+
| `rectangle.stack.fill` |
|
|
241
|
+
| `repeat` |
|
|
242
|
+
| `repeat.1` |
|
|
243
|
+
| `scalemass` |
|
|
244
|
+
| `scalemass.fill` |
|
|
245
|
+
| `server.rack` |
|
|
246
|
+
| `server.rack.fill` |
|
|
247
|
+
| `shuffle` |
|
|
248
|
+
| `sidebar.left` |
|
|
249
|
+
| `slider.horizontal.3` |
|
|
250
|
+
| `sparkles` |
|
|
251
|
+
| `speaker` |
|
|
252
|
+
| `speaker.fill` |
|
|
253
|
+
| `speaker.wave.3` |
|
|
254
|
+
| `speaker.wave.3.fill` |
|
|
255
|
+
| `square.and.arrow.down` |
|
|
256
|
+
| `square.and.arrow.down.fill` |
|
|
257
|
+
| `square.and.arrow.up` |
|
|
258
|
+
| `square.and.arrow.up.fill` |
|
|
259
|
+
| `square.and.pencil` |
|
|
260
|
+
| `square.and.pencil.fill` |
|
|
261
|
+
| `square.grid.2x2` |
|
|
262
|
+
| `square.grid.2x2.fill` |
|
|
263
|
+
| `square.stack` |
|
|
264
|
+
| `square.stack.fill` |
|
|
265
|
+
| `star` |
|
|
266
|
+
| `star.fill` |
|
|
267
|
+
| `stop` |
|
|
268
|
+
| `stop.fill` |
|
|
269
|
+
| `stopwatch` |
|
|
270
|
+
| `stopwatch.fill` |
|
|
271
|
+
| `sun.max` |
|
|
272
|
+
| `sun.max.fill` |
|
|
273
|
+
| `tag` |
|
|
274
|
+
| `tag.fill` |
|
|
275
|
+
| `text.append` |
|
|
276
|
+
| `text.badge.plus` |
|
|
277
|
+
| `text.insert` |
|
|
278
|
+
| `textformat` |
|
|
279
|
+
| `timer` |
|
|
280
|
+
| `timer.fill` |
|
|
281
|
+
| `trash` |
|
|
282
|
+
| `trash.fill` |
|
|
283
|
+
| `tray` |
|
|
284
|
+
| `tray.fill` |
|
|
285
|
+
| `tray.full` |
|
|
286
|
+
| `tray.full.fill` |
|
|
287
|
+
| `tv.music.note` |
|
|
288
|
+
| `tv.music.note.fill` |
|
|
289
|
+
| `viewfinder` |
|
|
290
|
+
| `waveform` |
|
|
291
|
+
| `xmark` |
|
|
292
|
+
| `xmark.circle` |
|
|
293
|
+
| `xmark.circle.fill` |
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# Geometry and appearance tokens
|
|
2
|
+
|
|
3
|
+
Load `@satinhq/kit/styles.css` once. Satin supplies these properties inside its mounted root and may override geometry in adaptive pane descendants. Consume the nearest value; do not copy root measurements into a sidebar or detail pane. Unknown custom-property names do not produce a TypeScript error and can leave a CSS declaration invalid.
|
|
4
|
+
|
|
5
|
+
| Property | Value | Use |
|
|
6
|
+
| --- | --- | --- |
|
|
7
|
+
| `--satin-inset-top` | CSS length in px | Interactive content's live top inset |
|
|
8
|
+
| `--satin-inset-right` | CSS length in px | Right inset of the current surface |
|
|
9
|
+
| `--satin-inset-bottom` | CSS length in px | Bottom inset of the current surface |
|
|
10
|
+
| `--satin-inset-left` | CSS length in px | Left inset of the current surface |
|
|
11
|
+
| `--satin-safe-frame-width` | CSS length in px | Current safe content width |
|
|
12
|
+
| `--satin-safe-frame-height` | CSS length in px | Current safe content height |
|
|
13
|
+
| `--satin-background` | CSS color | Framework-selected surface background |
|
|
14
|
+
| `--satin-device-pixel` | CSS length in px | One physical pixel at the current device scale |
|
|
15
|
+
| `--satin-layout-horizontal` | `compact` or `regular` | Diagnostic layout class, not a length |
|
|
16
|
+
| `--satin-layout-vertical` | `compact` or `regular` | Diagnostic layout class, not a length |
|
|
17
|
+
|
|
18
|
+
```css
|
|
19
|
+
.custom-content {
|
|
20
|
+
padding-inline: var(--satin-inset-left) var(--satin-inset-right);
|
|
21
|
+
padding-bottom: var(--satin-inset-bottom);
|
|
22
|
+
background: var(--satin-background);
|
|
23
|
+
font: -apple-system-body;
|
|
24
|
+
}
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Let List/Form/ScrollView and framework chrome apply their own insets. Adding the same inset again inside those components causes double padding. Never use raw viewport-height units or `env(safe-area-inset-*)` to replace framework geometry. Do not fix html, body or the mount in app CSS.
|
|
28
|
+
|
|
29
|
+
`useSafeAreaInsets()` returns numeric layout insets in CSS pixels. `useSafeAreaMetrics()` also exposes `layoutViewport`, `visualViewport`, `screen`, `safeFrame` and `physicalSafeFrame`, with numeric CSS-pixel dimensions. `physicalInsets` are comparison coordinates, not padding. React numeric padding values become px; CSS custom properties already contain their unit. Never append another `px` to a token.
|
|
30
|
+
|
|
31
|
+
## Settings composition
|
|
32
|
+
|
|
33
|
+
These settings tokens are also CSS lengths in px:
|
|
34
|
+
|
|
35
|
+
| Property | Meaning |
|
|
36
|
+
| --- | --- |
|
|
37
|
+
| `--satin-settings-root-inline-inset` | Root settings horizontal content inset |
|
|
38
|
+
| `--satin-settings-detail-inline-inset` | Detail settings horizontal content inset |
|
|
39
|
+
| `--satin-settings-root-title-top` | Root title origin, including the top inset |
|
|
40
|
+
| `--satin-settings-detail-content-top` | Detail content origin, including the top inset |
|
|
41
|
+
| `--satin-settings-root-title-offset` | Root title offset without the top inset |
|
|
42
|
+
| `--satin-settings-detail-content-offset` | Detail content offset without the top inset |
|
|
43
|
+
| `--satin-settings-navigation-bar-height` | Settings navigation bar height |
|
|
44
|
+
| `--satin-settings-root-row-height` | Root row baseline height |
|
|
45
|
+
| `--satin-settings-detail-row-height` | Detail row baseline height |
|
|
46
|
+
| `--satin-settings-group-radius` | Settings group corner radius |
|
|
47
|
+
| `--satin-settings-group-spacing` | Inter-group spacing |
|
|
48
|
+
| `--satin-settings-separator-hairline` | Separator thickness |
|
|
49
|
+
|
|
50
|
+
The two origin tokens already include the live top inset: do not add it twice. Prefer framework List and Screen composition over reconstructing their geometry. Row height tokens describe baselines, not permission to clip large text.
|
|
51
|
+
|
|
52
|
+
## Theme and ownership
|
|
53
|
+
|
|
54
|
+
Set `appearance.tint`, `appearance.background` and `appearance.darkLaunch.background` through the app definition. Use `useColorScheme()` for application artwork or application-owned colors; it returns `light` or `dark` from the accepted framework appearance. Do not introduce a raw appearance media query. Use `semanticColor('label')`, `semanticColor('secondaryLabel')` and `semanticColor('tertiaryLabel')` for UIKit content roles. Fill tiers, system and grouped backgrounds, separators and tint are available through the same helper. These tokens live on the document and reach body portals. Semantic label tokens resolve colors directly; secondary and tertiary foreground treatments can instead composite opacity over their background.
|
|
55
|
+
|
|
56
|
+
`systemColor` accepts red, orange, yellow, green, mint, teal, cyan, blue, indigo, purple, pink, brown, gray and gray2 through gray6. Values resolve by the accepted document appearance. Fixed RGB artwork remains app-owned. Automatic leading List `Label` symbols use app tint, or a local `ControlStyleProvider` tint, while titles retain primary/destructive roles and explicitly coloured Symbols retain their colour.
|
|
57
|
+
|
|
58
|
+
For application-owned artwork variables use `:root[data-satin-appearance='dark']`. A `:where(html[...])` selector has zero specificity and loses against an authored `:root` declaration. Normal-contrast iOS 27 values are measured; increased contrast and Display P3 are outside this contract.
|
|
59
|
+
|
|
60
|
+
The framework also owns glass, press-feedback and motion variables. Their presence in implementation CSS is not an application styling API. Do not override them to invent material, spring or gesture behavior. Keep decorative painted SVG content visible to the glass renderer with `role="presentation"` and `focusable="false"`; its enclosing control provides its accessible label.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export type FidelityInvariant = 'document-scroll' | 'history-growth' | 'input-font-size' | 'navigator-history-change' | 'popstate' | 'undeclared-scroll-surface';
|
|
2
|
+
export type FidelityViolation = {
|
|
3
|
+
invariant: FidelityInvariant;
|
|
4
|
+
message: string;
|
|
5
|
+
offender: Element;
|
|
6
|
+
};
|
|
7
|
+
type StyleReader = (element: Element) => CSSStyleDeclaration;
|
|
8
|
+
export declare function describeElement(element: Element): string;
|
|
9
|
+
export declare function findDocumentScrollViolation(documentObject: Document, viewport?: {
|
|
10
|
+
width: number;
|
|
11
|
+
height: number;
|
|
12
|
+
}): FidelityViolation | undefined;
|
|
13
|
+
export declare function findHistoryGrowthViolation(initialLength: number, currentLength: number, documentElement: Element): FidelityViolation | undefined;
|
|
14
|
+
export declare function findPopstateViolation(documentElement: Element): FidelityViolation;
|
|
15
|
+
export declare function reportNavigatorHistoryChange(operation: string, initialLength: number, currentLength: number, navigatorState: unknown): boolean;
|
|
16
|
+
export declare function isTextControl(element: Element): boolean;
|
|
17
|
+
export declare function findInputFontSizeViolation(element: Element, readStyle?: StyleReader): FidelityViolation | undefined;
|
|
18
|
+
export declare function findUndeclaredScrollViolations(root: ParentNode, readStyle?: StyleReader): FidelityViolation[];
|
|
19
|
+
export declare function formatFidelityViolation(violation: FidelityViolation): string;
|
|
20
|
+
export declare function startDevFidelityAssertions(initialHistoryLength?: number): () => void;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
const TEXT_INPUT_TYPES = new Set([
|
|
2
|
+
'',
|
|
3
|
+
'date',
|
|
4
|
+
'datetime-local',
|
|
5
|
+
'email',
|
|
6
|
+
'month',
|
|
7
|
+
'number',
|
|
8
|
+
'password',
|
|
9
|
+
'search',
|
|
10
|
+
'tel',
|
|
11
|
+
'text',
|
|
12
|
+
'time',
|
|
13
|
+
'url',
|
|
14
|
+
'week',
|
|
15
|
+
]);
|
|
16
|
+
function hasScrollableOverflow(value) {
|
|
17
|
+
return value === 'auto' || value === 'scroll';
|
|
18
|
+
}
|
|
19
|
+
export function describeElement(element) {
|
|
20
|
+
const tag = element.tagName.toLowerCase();
|
|
21
|
+
const id = element.id ? `#${element.id}` : '';
|
|
22
|
+
const classes = Array.from(element.classList)
|
|
23
|
+
.slice(0, 2)
|
|
24
|
+
.map(name => `.${name}`)
|
|
25
|
+
.join('');
|
|
26
|
+
const role = element.getAttribute('data-satin-role');
|
|
27
|
+
const roleLabel = role ? `[data-satin-role="${role}"]` : '';
|
|
28
|
+
return `<${tag}${id}${classes}${roleLabel}>`;
|
|
29
|
+
}
|
|
30
|
+
function likelyDocumentOverflowOffender(documentObject, viewportWidth, viewportHeight) {
|
|
31
|
+
let likely = documentObject.scrollingElement ?? documentObject.documentElement;
|
|
32
|
+
let largestOverflow = 0;
|
|
33
|
+
for (const element of documentObject.body?.querySelectorAll('*') ?? []) {
|
|
34
|
+
const bounds = element.getBoundingClientRect();
|
|
35
|
+
const overflow = Math.max(0, bounds.right - viewportWidth, bounds.bottom - viewportHeight, -bounds.left, -bounds.top);
|
|
36
|
+
if (overflow > largestOverflow) {
|
|
37
|
+
likely = element;
|
|
38
|
+
largestOverflow = overflow;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
return likely;
|
|
42
|
+
}
|
|
43
|
+
export function findDocumentScrollViolation(documentObject, viewport = {
|
|
44
|
+
width: window.innerWidth,
|
|
45
|
+
height: window.innerHeight,
|
|
46
|
+
}) {
|
|
47
|
+
const scrollingElement = documentObject.scrollingElement ?? documentObject.documentElement;
|
|
48
|
+
const verticalOverflow = scrollingElement.scrollHeight - viewport.height;
|
|
49
|
+
const horizontalOverflow = scrollingElement.scrollWidth - viewport.width;
|
|
50
|
+
if (verticalOverflow <= 1 && horizontalOverflow <= 1)
|
|
51
|
+
return;
|
|
52
|
+
return {
|
|
53
|
+
invariant: 'document-scroll',
|
|
54
|
+
message: `The document is scrollable (${scrollingElement.scrollWidth}x${scrollingElement.scrollHeight}) ` +
|
|
55
|
+
`outside the ${viewport.width}x${viewport.height} layout viewport. ` +
|
|
56
|
+
'Keep the document fixed and move intentional scrolling into data-satin-scroll.',
|
|
57
|
+
offender: likelyDocumentOverflowOffender(documentObject, viewport.width, viewport.height),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
export function findHistoryGrowthViolation(initialLength, currentLength, documentElement) {
|
|
61
|
+
if (currentLength <= initialLength)
|
|
62
|
+
return;
|
|
63
|
+
return {
|
|
64
|
+
invariant: 'history-growth',
|
|
65
|
+
message: `Browser history grew from ${initialLength} to ${currentLength} after SatinRoot mounted. ` +
|
|
66
|
+
"Internal navigation must use Satin's in-memory stack, never a browser-history router.",
|
|
67
|
+
offender: documentElement,
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
export function findPopstateViolation(documentElement) {
|
|
71
|
+
return {
|
|
72
|
+
invariant: 'popstate',
|
|
73
|
+
message: 'A popstate event fired. Browser session history must not drive Satin navigation. ' +
|
|
74
|
+
'Inspect the logged event state and the current history length.',
|
|
75
|
+
offender: documentElement,
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
export function reportNavigatorHistoryChange(operation, initialLength, currentLength, navigatorState) {
|
|
79
|
+
if (currentLength === initialLength)
|
|
80
|
+
return false;
|
|
81
|
+
console.error('[Satin fidelity: navigator-history-change] ' +
|
|
82
|
+
`Browser history changed from ${initialLength} to ${currentLength} during ${operation}. ` +
|
|
83
|
+
'Satin navigator operations must only update the in-memory screen stack.', { navigatorState, operation });
|
|
84
|
+
return true;
|
|
85
|
+
}
|
|
86
|
+
export function isTextControl(element) {
|
|
87
|
+
if (element instanceof HTMLTextAreaElement)
|
|
88
|
+
return true;
|
|
89
|
+
if (element instanceof HTMLInputElement)
|
|
90
|
+
return TEXT_INPUT_TYPES.has(element.type);
|
|
91
|
+
return element instanceof HTMLElement && element.isContentEditable;
|
|
92
|
+
}
|
|
93
|
+
export function findInputFontSizeViolation(element, readStyle = target => getComputedStyle(target)) {
|
|
94
|
+
if (!isTextControl(element))
|
|
95
|
+
return;
|
|
96
|
+
const fontSize = Number.parseFloat(readStyle(element).fontSize);
|
|
97
|
+
if (!Number.isFinite(fontSize) || fontSize >= 16)
|
|
98
|
+
return;
|
|
99
|
+
return {
|
|
100
|
+
invariant: 'input-font-size',
|
|
101
|
+
message: `Focused text control computes to ${fontSize}px. iOS may zoom the page below 16px. ` +
|
|
102
|
+
'Set the control itself to at least 16 CSS pixels and adjust visual density through layout.',
|
|
103
|
+
offender: element,
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
export function findUndeclaredScrollViolations(root, readStyle = target => getComputedStyle(target)) {
|
|
107
|
+
const violations = [];
|
|
108
|
+
for (const element of root.querySelectorAll('*')) {
|
|
109
|
+
if (element.hasAttribute('data-satin-scroll'))
|
|
110
|
+
continue;
|
|
111
|
+
if (element.tagName === 'TEXTAREA' &&
|
|
112
|
+
element.hasAttribute('data-satin-text-editor') &&
|
|
113
|
+
element.closest('[data-satin-scroll-axis="vertical"]'))
|
|
114
|
+
continue;
|
|
115
|
+
const style = readStyle(element);
|
|
116
|
+
const overflowX = style.overflowX || style.overflow;
|
|
117
|
+
const overflowY = style.overflowY || style.overflow;
|
|
118
|
+
const scrollsHorizontally = hasScrollableOverflow(overflowX) && element.scrollWidth > element.clientWidth + 1;
|
|
119
|
+
const scrollsVertically = hasScrollableOverflow(overflowY) && element.scrollHeight > element.clientHeight + 1;
|
|
120
|
+
if (!scrollsHorizontally && !scrollsVertically)
|
|
121
|
+
continue;
|
|
122
|
+
violations.push({
|
|
123
|
+
invariant: 'undeclared-scroll-surface',
|
|
124
|
+
message: `An undeclared element scrolls with overflow-x:${overflowX} and overflow-y:${overflowY}. ` +
|
|
125
|
+
'Render scrolling content through Satin ScrollSurface; raw overflow containers are not declared runtime surfaces.',
|
|
126
|
+
offender: element,
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
return violations;
|
|
130
|
+
}
|
|
131
|
+
function violationKey(violation) {
|
|
132
|
+
return `${violation.invariant}:${describeElement(violation.offender)}`;
|
|
133
|
+
}
|
|
134
|
+
export function formatFidelityViolation(violation) {
|
|
135
|
+
return (`[Satin fidelity: ${violation.invariant}] ${violation.message} ` +
|
|
136
|
+
`Likely offender: ${describeElement(violation.offender)}`);
|
|
137
|
+
}
|
|
138
|
+
function reportViolation(violation, reported) {
|
|
139
|
+
const key = violationKey(violation);
|
|
140
|
+
if (reported.has(key))
|
|
141
|
+
return;
|
|
142
|
+
reported.add(key);
|
|
143
|
+
console.error(formatFidelityViolation(violation), violation.offender);
|
|
144
|
+
}
|
|
145
|
+
export function startDevFidelityAssertions(initialHistoryLength = window.history.length) {
|
|
146
|
+
const reported = new Set();
|
|
147
|
+
const report = (violation) => {
|
|
148
|
+
if (violation)
|
|
149
|
+
reportViolation(violation, reported);
|
|
150
|
+
};
|
|
151
|
+
const scan = () => {
|
|
152
|
+
report(findDocumentScrollViolation(document));
|
|
153
|
+
report(findHistoryGrowthViolation(initialHistoryLength, window.history.length, document.documentElement));
|
|
154
|
+
for (const violation of findUndeclaredScrollViolations(document.body)) {
|
|
155
|
+
report(violation);
|
|
156
|
+
}
|
|
157
|
+
};
|
|
158
|
+
const onFocusIn = (event) => {
|
|
159
|
+
if (event.target instanceof Element) {
|
|
160
|
+
report(findInputFontSizeViolation(event.target));
|
|
161
|
+
}
|
|
162
|
+
};
|
|
163
|
+
const onDocumentScroll = (event) => {
|
|
164
|
+
const scrollingElement = document.scrollingElement ?? document.documentElement;
|
|
165
|
+
if (event.target !== document &&
|
|
166
|
+
event.target !== document.documentElement &&
|
|
167
|
+
event.target !== document.body &&
|
|
168
|
+
event.target !== scrollingElement) {
|
|
169
|
+
return;
|
|
170
|
+
}
|
|
171
|
+
report({
|
|
172
|
+
invariant: 'document-scroll',
|
|
173
|
+
message: 'A document-level scroll event fired. The Satin document must stay inert; inspect layout overflow and undeclared scroll containers.',
|
|
174
|
+
offender: scrollingElement,
|
|
175
|
+
});
|
|
176
|
+
};
|
|
177
|
+
const onPopstate = (event) => {
|
|
178
|
+
const violation = findPopstateViolation(document.documentElement);
|
|
179
|
+
console.error(formatFidelityViolation(violation), {
|
|
180
|
+
eventState: event.state,
|
|
181
|
+
historyLength: window.history.length,
|
|
182
|
+
});
|
|
183
|
+
scan();
|
|
184
|
+
};
|
|
185
|
+
const initialScan = window.setTimeout(scan, 0);
|
|
186
|
+
const periodicScan = window.setInterval(scan, 1_000);
|
|
187
|
+
document.addEventListener('focusin', onFocusIn, true);
|
|
188
|
+
document.addEventListener('scroll', onDocumentScroll, true);
|
|
189
|
+
window.addEventListener('scroll', onDocumentScroll, { passive: true });
|
|
190
|
+
window.addEventListener('popstate', onPopstate);
|
|
191
|
+
return () => {
|
|
192
|
+
window.clearTimeout(initialScan);
|
|
193
|
+
window.clearInterval(periodicScan);
|
|
194
|
+
document.removeEventListener('focusin', onFocusIn, true);
|
|
195
|
+
document.removeEventListener('scroll', onDocumentScroll, true);
|
|
196
|
+
window.removeEventListener('scroll', onDocumentScroll);
|
|
197
|
+
window.removeEventListener('popstate', onPopstate);
|
|
198
|
+
};
|
|
199
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
export type FocusReadiness = 'lazy' | 'ready';
|
|
2
|
+
export type FocusScopeDefinition = Readonly<{
|
|
3
|
+
initialTarget: string;
|
|
4
|
+
key: string;
|
|
5
|
+
readiness: FocusReadiness;
|
|
6
|
+
title: string;
|
|
7
|
+
}>;
|
|
8
|
+
export type FocusLocation = Readonly<{
|
|
9
|
+
scopeKey: string;
|
|
10
|
+
target: string;
|
|
11
|
+
}>;
|
|
12
|
+
export type FocusReason = 'dismiss' | 'error' | 'pop' | 'present' | 'push' | 'transition-cancel';
|
|
13
|
+
export type FocusCommand = Readonly<{
|
|
14
|
+
location: FocusLocation;
|
|
15
|
+
type: 'capture';
|
|
16
|
+
}> | Readonly<{
|
|
17
|
+
fallback: FocusLocation;
|
|
18
|
+
location: FocusLocation;
|
|
19
|
+
reason: FocusReason;
|
|
20
|
+
type: 'restore';
|
|
21
|
+
}> | Readonly<{
|
|
22
|
+
location: FocusLocation;
|
|
23
|
+
reason: FocusReason;
|
|
24
|
+
type: 'move-to';
|
|
25
|
+
}> | Readonly<{
|
|
26
|
+
message: string;
|
|
27
|
+
politeness: 'assertive';
|
|
28
|
+
scopeKey: string;
|
|
29
|
+
type: 'announce';
|
|
30
|
+
}>;
|
|
31
|
+
type FocusScopeState = FocusScopeDefinition & Readonly<{
|
|
32
|
+
failed: boolean;
|
|
33
|
+
focusTarget: string;
|
|
34
|
+
ready: boolean;
|
|
35
|
+
}>;
|
|
36
|
+
export type FocusRouteState = FocusScopeState & Readonly<{
|
|
37
|
+
phase: 'entering' | 'exiting' | 'settled';
|
|
38
|
+
transitionId?: string;
|
|
39
|
+
}>;
|
|
40
|
+
export type FocusPresentationState = FocusScopeState;
|
|
41
|
+
export type FocusTransitionState = Readonly<{
|
|
42
|
+
id: string;
|
|
43
|
+
kind: 'pop' | 'push';
|
|
44
|
+
}>;
|
|
45
|
+
type PendingFocusIntent = Readonly<{
|
|
46
|
+
kind: 'initial' | 'restore';
|
|
47
|
+
reason: FocusReason;
|
|
48
|
+
scopeKey: string;
|
|
49
|
+
}>;
|
|
50
|
+
export type FocusIntentState = Readonly<{
|
|
51
|
+
pending?: PendingFocusIntent;
|
|
52
|
+
presentations: readonly FocusPresentationState[];
|
|
53
|
+
routes: readonly FocusRouteState[];
|
|
54
|
+
snapshots: ReadonlyMap<string, string>;
|
|
55
|
+
transitions: readonly FocusTransitionState[];
|
|
56
|
+
}>;
|
|
57
|
+
export type FocusIntentEvent = Readonly<{
|
|
58
|
+
activeFocus?: FocusLocation;
|
|
59
|
+
fromKey: string;
|
|
60
|
+
to: FocusScopeDefinition;
|
|
61
|
+
transitionId: string;
|
|
62
|
+
type: 'push-begin';
|
|
63
|
+
}> | Readonly<{
|
|
64
|
+
outcome: 'cancelled' | 'completed';
|
|
65
|
+
transitionId: string;
|
|
66
|
+
type: 'push-settle';
|
|
67
|
+
}> | Readonly<{
|
|
68
|
+
activeFocus?: FocusLocation;
|
|
69
|
+
toKey: string;
|
|
70
|
+
transitionId: string;
|
|
71
|
+
type: 'pop-begin';
|
|
72
|
+
}> | Readonly<{
|
|
73
|
+
outcome: 'cancelled' | 'completed';
|
|
74
|
+
transitionId: string;
|
|
75
|
+
type: 'pop-settle';
|
|
76
|
+
}> | Readonly<{
|
|
77
|
+
activeFocus?: FocusLocation;
|
|
78
|
+
presentation: FocusScopeDefinition;
|
|
79
|
+
type: 'present';
|
|
80
|
+
}> | Readonly<{
|
|
81
|
+
presentationKey: string;
|
|
82
|
+
type: 'dismiss';
|
|
83
|
+
}> | Readonly<{
|
|
84
|
+
scopeKey: string;
|
|
85
|
+
target?: string;
|
|
86
|
+
type: 'lazy-ready';
|
|
87
|
+
}> | Readonly<{
|
|
88
|
+
kind: 'screen';
|
|
89
|
+
message: string;
|
|
90
|
+
scopeKey: string;
|
|
91
|
+
target: string;
|
|
92
|
+
type: 'error';
|
|
93
|
+
}> | Readonly<{
|
|
94
|
+
kind: 'status';
|
|
95
|
+
message: string;
|
|
96
|
+
scopeKey: string;
|
|
97
|
+
type: 'error';
|
|
98
|
+
}>;
|
|
99
|
+
export type FocusIntentResult = Readonly<{
|
|
100
|
+
commands: readonly FocusCommand[];
|
|
101
|
+
state: FocusIntentState;
|
|
102
|
+
}>;
|
|
103
|
+
export declare function activeFocusScopeKey(state: FocusIntentState): string | undefined;
|
|
104
|
+
export declare function createFocusIntentState(initial: FocusScopeDefinition): FocusIntentState;
|
|
105
|
+
export declare function reduceFocusIntent(state: FocusIntentState, event: FocusIntentEvent): FocusIntentResult;
|
|
106
|
+
export {};
|