glacia-native 0.5.1 → 0.6.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 +29 -4
- package/README.md +111 -17
- package/lib/module/Accordion.js +58 -0
- package/lib/module/ActionSheet.js +38 -0
- package/lib/module/Alert.js +23 -0
- package/lib/module/AlertDialog.js +47 -0
- package/lib/module/Avatar.js +48 -0
- package/lib/module/Badge.js +36 -0
- package/lib/module/Bars.js +13 -267
- package/lib/module/Button.js +57 -36
- package/lib/module/Card.js +32 -20
- package/lib/module/Checkbox.js +42 -0
- package/lib/module/Chip.js +80 -0
- package/lib/module/Collapsible.js +26 -0
- package/lib/module/ContextMenu.js +33 -0
- package/lib/module/Dialog.js +39 -124
- package/lib/module/DropdownMenu.js +33 -0
- package/lib/module/Field.js +22 -0
- package/lib/module/Glass.js +12 -5
- package/lib/module/Group.js +36 -0
- package/lib/module/IconButton.js +40 -0
- package/lib/module/Input.js +47 -40
- package/lib/module/Label.js +17 -0
- package/lib/module/MorphGroup.js +47 -0
- package/lib/module/Popover.js +29 -0
- package/lib/module/Progress.js +32 -0
- package/lib/module/RadioGroup.js +51 -0
- package/lib/module/Scrim.js +44 -0
- package/lib/module/SegmentedControl.js +74 -58
- package/lib/module/Select.js +51 -0
- package/lib/module/Separator.js +25 -0
- package/lib/module/Sheet.js +51 -0
- package/lib/module/Skeleton.js +48 -0
- package/lib/module/Slider.js +60 -40
- package/lib/module/Stepper.js +167 -0
- package/lib/module/Switch.js +45 -43
- package/lib/module/TabBar.js +62 -50
- package/lib/module/Tabs.js +3 -2
- package/lib/module/Textarea.js +18 -0
- package/lib/module/Toast.js +55 -0
- package/lib/module/Toggle.js +47 -0
- package/lib/module/ToggleGroup.js +56 -0
- package/lib/module/Toolbar.js +37 -0
- package/lib/module/Tooltip.js +31 -0
- package/lib/module/glass-provider.js +28 -0
- package/lib/module/glass-stack.js +61 -0
- package/lib/module/index.js +78 -109
- package/lib/module/internal/GlassBackdrop.js +36 -0
- package/lib/module/internal/GlassView.js +45 -13
- package/lib/module/internal/blur-community.js +20 -0
- package/lib/module/internal/blur-community.web.js +9 -0
- package/lib/module/internal/blur.js +75 -0
- package/lib/module/internal/fallback.js +110 -20
- package/lib/module/internal/glass-routing.js +154 -30
- package/lib/module/internal/glow.js +36 -0
- package/lib/module/internal/initials.js +12 -0
- package/lib/module/internal/lens.js +70 -0
- package/lib/module/internal/material.js +64 -0
- package/lib/module/internal/overlay.js +147 -0
- package/lib/module/internal/primitives.js +17 -0
- package/lib/module/internal/rim.js +35 -0
- package/lib/module/internal/tokens.js +34 -2
- package/lib/typescript/Accordion.d.ts +22 -0
- package/lib/typescript/ActionSheet.d.ts +24 -0
- package/lib/typescript/Alert.d.ts +15 -0
- package/lib/typescript/AlertDialog.d.ts +17 -0
- package/lib/typescript/Avatar.d.ts +22 -0
- package/lib/typescript/Badge.d.ts +12 -0
- package/lib/typescript/Bars.d.ts +3 -188
- package/lib/typescript/Button.d.ts +44 -10
- package/lib/typescript/Card.d.ts +30 -3
- package/lib/typescript/Checkbox.d.ts +14 -0
- package/lib/typescript/Chip.d.ts +19 -0
- package/lib/typescript/Collapsible.d.ts +17 -0
- package/lib/typescript/ContextMenu.d.ts +23 -0
- package/lib/typescript/Dialog.d.ts +8 -68
- package/lib/typescript/DropdownMenu.d.ts +23 -0
- package/lib/typescript/Field.d.ts +19 -0
- package/lib/typescript/Glass.d.ts +11 -2
- package/lib/typescript/Group.d.ts +35 -0
- package/lib/typescript/IconButton.d.ts +21 -0
- package/lib/typescript/Input.d.ts +17 -18
- package/lib/typescript/Label.d.ts +14 -0
- package/lib/typescript/MorphGroup.d.ts +46 -0
- package/lib/typescript/Popover.d.ts +17 -0
- package/lib/typescript/Progress.d.ts +13 -0
- package/lib/typescript/RadioGroup.d.ts +21 -0
- package/lib/typescript/Scrim.d.ts +33 -0
- package/lib/typescript/SegmentedControl.d.ts +24 -13
- package/lib/typescript/Select.d.ts +19 -0
- package/lib/typescript/Separator.d.ts +10 -0
- package/lib/typescript/Sheet.d.ts +45 -0
- package/lib/typescript/Skeleton.d.ts +10 -0
- package/lib/typescript/Slider.d.ts +15 -7
- package/lib/typescript/Stepper.d.ts +49 -0
- package/lib/typescript/Switch.d.ts +19 -12
- package/lib/typescript/TabBar.d.ts +18 -6
- package/lib/typescript/Textarea.d.ts +6 -0
- package/lib/typescript/Toast.d.ts +40 -0
- package/lib/typescript/Toggle.d.ts +21 -0
- package/lib/typescript/ToggleGroup.d.ts +22 -0
- package/lib/typescript/Toolbar.d.ts +35 -0
- package/lib/typescript/Tooltip.d.ts +16 -0
- package/lib/typescript/glass-provider.d.ts +34 -0
- package/lib/typescript/glass-stack.d.ts +54 -0
- package/lib/typescript/index.d.ts +39 -17
- package/lib/typescript/internal/GlassBackdrop.d.ts +33 -0
- package/lib/typescript/internal/GlassView.d.ts +31 -2
- package/lib/typescript/internal/blur-community.d.ts +2 -0
- package/lib/typescript/internal/blur-community.web.d.ts +2 -0
- package/lib/typescript/internal/blur.d.ts +24 -0
- package/lib/typescript/internal/fallback.d.ts +27 -2
- package/lib/typescript/internal/glass-routing.d.ts +83 -15
- package/lib/typescript/internal/glow.d.ts +11 -0
- package/lib/typescript/internal/initials.d.ts +2 -0
- package/lib/typescript/internal/lens.d.ts +47 -0
- package/lib/typescript/internal/material.d.ts +27 -0
- package/lib/typescript/internal/overlay.d.ts +74 -0
- package/lib/typescript/internal/primitives.d.ts +13 -0
- package/lib/typescript/internal/rim.d.ts +16 -0
- package/lib/typescript/internal/tokens.d.ts +36 -0
- package/package.json +15 -4
- package/src/Accordion.tsx +165 -0
- package/src/ActionSheet.tsx +149 -0
- package/src/Alert.tsx +85 -0
- package/src/AlertDialog.tsx +124 -0
- package/src/Avatar.tsx +102 -0
- package/src/Badge.tsx +80 -0
- package/src/Bars.tsx +10 -797
- package/src/Button.tsx +196 -60
- package/src/Card.tsx +106 -33
- package/src/Checkbox.tsx +98 -0
- package/src/Chip.tsx +149 -0
- package/src/Collapsible.tsx +66 -0
- package/src/ContextMenu.tsx +103 -0
- package/src/Dialog.tsx +86 -325
- package/src/DropdownMenu.tsx +103 -0
- package/src/Field.tsx +65 -0
- package/src/Glass.tsx +19 -5
- package/src/Group.tsx +98 -0
- package/src/IconButton.tsx +110 -0
- package/src/Input.tsx +143 -87
- package/src/Label.tsx +56 -0
- package/src/MorphGroup.tsx +134 -0
- package/src/Popover.tsx +81 -0
- package/src/Progress.tsx +83 -0
- package/src/RadioGroup.tsx +122 -0
- package/src/Scrim.tsx +94 -0
- package/src/SegmentedControl.tsx +147 -90
- package/src/Select.tsx +136 -0
- package/src/Separator.tsx +52 -0
- package/src/Sheet.tsx +139 -0
- package/src/Skeleton.tsx +77 -0
- package/src/Slider.tsx +100 -54
- package/src/Stepper.tsx +315 -0
- package/src/Switch.tsx +80 -58
- package/src/TabBar.tsx +118 -84
- package/src/Tabs.tsx +5 -0
- package/src/Textarea.tsx +34 -0
- package/src/Toast.tsx +131 -0
- package/src/Toggle.tsx +113 -0
- package/src/ToggleGroup.tsx +129 -0
- package/src/Toolbar.tsx +111 -0
- package/src/Tooltip.tsx +79 -0
- package/src/engine/CHANGELOG.md +430 -0
- package/src/engine/NOTICE +54 -0
- package/src/engine/README.md +975 -0
- package/src/engine/android/build.gradle +18 -0
- package/src/engine/android/src/main/AndroidManifest.xml +2 -0
- package/src/engine/android/src/main/java/expo/modules/liquidglass/ExpoLiquidGlassModule.kt +174 -0
- package/src/engine/android/src/main/java/expo/modules/liquidglass/GlassConstants.kt +7 -0
- package/src/engine/android/src/main/java/expo/modules/liquidglass/LiquidGlassContainerView.kt +16 -0
- package/src/engine/android/src/main/java/expo/modules/liquidglass/LiquidGlassProviderView.kt +165 -0
- package/src/engine/android/src/main/java/expo/modules/liquidglass/LiquidGlassView.kt +1731 -0
- package/src/engine/android/src/main/java/expo/modules/liquidglass/enums/GlassEnums.kt +171 -0
- package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/BackdropGraph.kt +146 -0
- package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/BackdropSource.kt +53 -0
- package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/ContinuousCorners.kt +188 -0
- package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/CornerRadii.kt +62 -0
- package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/GlassAppearance.kt +352 -0
- package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/GlassDebug.kt +109 -0
- package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/GlassEnvironment.kt +139 -0
- package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/GlassHdr.kt +85 -0
- package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/GlassLuminanceProbe.kt +189 -0
- package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/GlassPressAnimator.kt +264 -0
- package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/GlassProgressiveBlur.kt +249 -0
- package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/GlassShaderCache.kt +256 -0
- package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/GlassShaderSource.kt +845 -0
- package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/GlassTier.kt +63 -0
- package/src/engine/android/src/main/java/expo/modules/liquidglass/glass/ProviderRegistry.kt +71 -0
- package/src/engine/android/src/main/java/expo/modules/liquidglass/records/GlassRecords.kt +288 -0
- package/src/engine/index.ts +24 -0
- package/src/engine/ios/Enums/GlassBlurDirection.swift +21 -0
- package/src/engine/ios/Enums/GlassVariant.swift +86 -0
- package/src/engine/ios/ExpoLiquidGlass.podspec +93 -0
- package/src/engine/ios/ExpoLiquidGlassModule.swift +77 -0
- package/src/engine/ios/Glass/BackdropCapturer.swift +811 -0
- package/src/engine/ios/Glass/ContinuousCorners.swift +165 -0
- package/src/engine/ios/Glass/GlassBackdrop.swift +176 -0
- package/src/engine/ios/Glass/GlassFramePhase.swift +126 -0
- package/src/engine/ios/Glass/GlassFrameScheduler.swift +261 -0
- package/src/engine/ios/Glass/GlassPressAnimator.swift +250 -0
- package/src/engine/ios/Glass/GlassRenderContext.swift +168 -0
- package/src/engine/ios/Glass/GlassRenderer.swift +186 -0
- package/src/engine/ios/Glass/GlassSurfaceView.swift +452 -0
- package/src/engine/ios/Glass/NonRenderableView.swift +54 -0
- package/src/engine/ios/Glass/StripCache.swift +545 -0
- package/src/engine/ios/Records/GlassCornerRadii.swift +79 -0
- package/src/engine/ios/Records/GlassMetalOptions.swift +180 -0
- package/src/engine/ios/Records/GlassRefractionCurve.swift +14 -0
- package/src/engine/ios/Shaders/LiquidGlass.metal +480 -0
- package/src/engine/ios/Shaders/bundle-marker.txt +6 -0
- package/src/engine/ios/Views/LiquidGlassContainerView.swift +99 -0
- package/src/engine/ios/Views/LiquidGlassView.swift +859 -0
- package/src/engine/package.json +70 -0
- package/src/engine/src/components/LiquidGlassButton/LiquidGlassButton.tsx +424 -0
- package/src/engine/src/components/LiquidGlassCard/LiquidGlassCard.tsx +98 -0
- package/src/engine/src/components/LiquidGlassChip/LiquidGlassChip.tsx +65 -0
- package/src/engine/src/components/LiquidGlassGroup/LiquidGlassGroup.tsx +350 -0
- package/src/engine/src/components/LiquidGlassIconButton/LiquidGlassIconButton.tsx +24 -0
- package/src/engine/src/components/LiquidGlassMorphGroup/LiquidGlassMorphGroup.tsx +434 -0
- package/src/engine/src/components/LiquidGlassScrim/LiquidGlassScrim.tsx +100 -0
- package/src/engine/src/components/LiquidGlassSegmentedControl/LiquidGlassSegmentedControl.tsx +213 -0
- package/src/engine/src/components/LiquidGlassSheet/LiquidGlassSheet.tsx +218 -0
- package/src/engine/src/components/LiquidGlassSlider/LiquidGlassSlider.tsx +327 -0
- package/src/engine/src/components/LiquidGlassStepper/LiquidGlassStepper.tsx +321 -0
- package/src/engine/src/components/LiquidGlassSwitch/LiquidGlassSwitch.tsx +296 -0
- package/src/engine/src/components/LiquidGlassTabBar/LiquidGlassTabBar.tsx +952 -0
- package/src/engine/src/components/LiquidGlassTextInput/LiquidGlassTextInput.tsx +151 -0
- package/src/engine/src/components/LiquidGlassToast/LiquidGlassToast.tsx +169 -0
- package/src/engine/src/components/LiquidGlassToolbar/LiquidGlassToolbar.tsx +124 -0
- package/src/engine/src/components/index.ts +16 -0
- package/src/engine/src/constants/index.ts +4 -0
- package/src/engine/src/constants/metal.constants.ts +327 -0
- package/src/engine/src/constants/metrics.constants.ts +325 -0
- package/src/engine/src/constants/springs.constants.ts +107 -0
- package/src/engine/src/constants/styles.constants.ts +12 -0
- package/src/engine/src/context/glass-group.context.ts +65 -0
- package/src/engine/src/context/index.ts +6 -0
- package/src/engine/src/core/components/LiquidGlassContainer/LiquidGlassContainer.tsx +32 -0
- package/src/engine/src/core/components/LiquidGlassContainer/index.ts +1 -0
- package/src/engine/src/core/components/LiquidGlassProvider/LiquidGlassProvider.tsx +66 -0
- package/src/engine/src/core/components/LiquidGlassProvider/index.ts +1 -0
- package/src/engine/src/core/components/LiquidGlassStack/LiquidGlassStack.tsx +184 -0
- package/src/engine/src/core/components/LiquidGlassStack/index.ts +1 -0
- package/src/engine/src/core/components/LiquidGlassView/LiquidGlassView.tsx +126 -0
- package/src/engine/src/core/components/LiquidGlassView/index.ts +1 -0
- package/src/engine/src/core/components/index.ts +4 -0
- package/src/engine/src/core/constants/glass.constants.ts +57 -0
- package/src/engine/src/core/constants/index.ts +20 -0
- package/src/engine/src/core/constants/native.constants.ts +16 -0
- package/src/engine/src/core/context/glass-stack.context.ts +30 -0
- package/src/engine/src/core/context/index.ts +4 -0
- package/src/engine/src/core/enum/index.ts +12 -0
- package/src/engine/src/core/index.ts +1 -0
- package/src/engine/src/core/interfaces/glass-hdr.interface.ts +15 -0
- package/src/engine/src/core/interfaces/glass-metal.interface.ts +248 -0
- package/src/engine/src/core/interfaces/glass-surface.interface.ts +9 -0
- package/src/engine/src/core/interfaces/index.ts +31 -0
- package/src/engine/src/core/interfaces/liquid-glass-container.interface.ts +6 -0
- package/src/engine/src/core/interfaces/liquid-glass-provider.interface.ts +14 -0
- package/src/engine/src/core/interfaces/liquid-glass-stack.interface.ts +21 -0
- package/src/engine/src/core/interfaces/liquid-glass-view.interface.ts +129 -0
- package/src/engine/src/core/interfaces/native-liquid-glass-view.interface.ts +19 -0
- package/src/engine/src/core/modules/ExpoLiquidGlassModule.ts +26 -0
- package/src/engine/src/core/modules/index.ts +2 -0
- package/src/engine/src/core/root/index.ts +51 -0
- package/src/engine/src/core/types/glass.types.ts +25 -0
- package/src/engine/src/core/types/index.ts +8 -0
- package/src/engine/src/core/utils/debug.utils.ts +17 -0
- package/src/engine/src/core/utils/dev-warn.utils.ts +17 -0
- package/src/engine/src/core/utils/hdr.utils.ts +37 -0
- package/src/engine/src/core/utils/index.ts +5 -0
- package/src/engine/src/core/utils/native-view.utils.ts +33 -0
- package/src/engine/src/core/utils/platform.utils.ts +34 -0
- package/src/engine/src/core/views/NativeGlassBackdropView.ts +24 -0
- package/src/engine/src/core/views/NativeLiquidGlassContainerView.ts +13 -0
- package/src/engine/src/core/views/NativeLiquidGlassContainerView.web.ts +10 -0
- package/src/engine/src/core/views/NativeLiquidGlassProviderView.ts +13 -0
- package/src/engine/src/core/views/NativeLiquidGlassProviderView.web.ts +10 -0
- package/src/engine/src/core/views/NativeLiquidGlassView.ts +19 -0
- package/src/engine/src/core/views/NativeLiquidGlassView.web.ts +14 -0
- package/src/engine/src/core/views/index.ts +4 -0
- package/src/engine/src/hooks/index.ts +18 -0
- package/src/engine/src/hooks/use-adaptive-glass.ts +91 -0
- package/src/engine/src/hooks/use-damped-drag.ts +332 -0
- package/src/engine/src/hooks/use-echo-filter.ts +55 -0
- package/src/engine/src/hooks/use-glass-group-member.ts +169 -0
- package/src/engine/src/hooks/use-gravity-highlight.ts +79 -0
- package/src/engine/src/hooks/use-press-progress.ts +44 -0
- package/src/engine/src/index.ts +120 -0
- package/src/engine/src/interfaces/index.ts +28 -0
- package/src/engine/src/interfaces/liquid-glass-button.interface.ts +94 -0
- package/src/engine/src/interfaces/liquid-glass-card.interface.ts +40 -0
- package/src/engine/src/interfaces/liquid-glass-chip.interface.ts +29 -0
- package/src/engine/src/interfaces/liquid-glass-group.interface.ts +32 -0
- package/src/engine/src/interfaces/liquid-glass-icon-button.interface.ts +19 -0
- package/src/engine/src/interfaces/liquid-glass-morph-group.interface.ts +59 -0
- package/src/engine/src/interfaces/liquid-glass-scrim.interface.ts +36 -0
- package/src/engine/src/interfaces/liquid-glass-segmented-control.interface.ts +32 -0
- package/src/engine/src/interfaces/liquid-glass-sheet.interface.ts +38 -0
- package/src/engine/src/interfaces/liquid-glass-slider.interface.ts +37 -0
- package/src/engine/src/interfaces/liquid-glass-stepper.interface.ts +35 -0
- package/src/engine/src/interfaces/liquid-glass-switch.interface.ts +27 -0
- package/src/engine/src/interfaces/liquid-glass-tab-bar.interface.ts +116 -0
- package/src/engine/src/interfaces/liquid-glass-text-input.interface.ts +42 -0
- package/src/engine/src/interfaces/liquid-glass-toast.interface.ts +36 -0
- package/src/engine/src/interfaces/liquid-glass-toolbar.interface.ts +33 -0
- package/src/engine/src/theme/glass-ui-theme.ts +100 -0
- package/src/engine/src/theme/index.ts +2 -0
- package/src/engine/src/utils/button-press.utils.ts +63 -0
- package/src/engine/src/utils/index.ts +3 -0
- package/src/engine/src/utils/metal.utils.ts +164 -0
- package/src/glass-provider.tsx +60 -0
- package/src/glass-stack.tsx +115 -0
- package/src/index.ts +48 -190
- package/src/internal/GlassBackdrop.tsx +60 -0
- package/src/internal/GlassView.tsx +70 -18
- package/src/internal/blur-community.ts +19 -0
- package/src/internal/blur-community.web.ts +7 -0
- package/src/internal/blur.ts +89 -0
- package/src/internal/fallback.tsx +158 -20
- package/src/internal/glass-routing.ts +211 -34
- package/src/internal/glow.tsx +62 -0
- package/src/internal/initials.ts +7 -0
- package/src/internal/lens.tsx +105 -0
- package/src/internal/material.ts +92 -0
- package/src/internal/overlay.tsx +258 -0
- package/src/internal/primitives.ts +26 -0
- package/src/internal/rim.tsx +79 -0
- package/src/internal/tokens.ts +34 -1
- package/lib/module/Carousel.js +0 -103
- package/lib/module/Display.js +0 -317
- package/lib/module/Feedback.js +0 -386
- package/lib/module/Form.js +0 -164
- package/lib/module/Forms2.js +0 -454
- package/lib/module/Message.js +0 -88
- package/lib/module/Overlays.js +0 -328
- package/lib/module/Pickers.js +0 -243
- package/lib/module/Table.js +0 -99
- package/lib/module/ai.js +0 -280
- package/lib/module/charts/AreaChart.js +0 -32
- package/lib/module/charts/BarChart.js +0 -67
- package/lib/module/charts/FunnelChart.js +0 -50
- package/lib/module/charts/HeatmapChart.js +0 -71
- package/lib/module/charts/LineChart.js +0 -81
- package/lib/module/charts/PlotChart.js +0 -52
- package/lib/module/charts/RadarChart.js +0 -78
- package/lib/module/charts/RingChart.js +0 -52
- package/lib/module/charts/ScatterChart.js +0 -95
- package/lib/module/charts/WaterfallChart.js +0 -85
- package/lib/module/charts/advanced.js +0 -313
- package/lib/module/charts/extra.js +0 -108
- package/lib/module/charts/index.js +0 -50
- package/lib/module/charts/scales.js +0 -140
- package/lib/typescript/Carousel.d.ts +0 -47
- package/lib/typescript/Display.d.ts +0 -178
- package/lib/typescript/Feedback.d.ts +0 -196
- package/lib/typescript/Form.d.ts +0 -97
- package/lib/typescript/Forms2.d.ts +0 -209
- package/lib/typescript/Message.d.ts +0 -71
- package/lib/typescript/Overlays.d.ts +0 -146
- package/lib/typescript/Pickers.d.ts +0 -105
- package/lib/typescript/Table.d.ts +0 -64
- package/lib/typescript/ai.d.ts +0 -166
- package/lib/typescript/charts/AreaChart.d.ts +0 -44
- package/lib/typescript/charts/BarChart.d.ts +0 -19
- package/lib/typescript/charts/FunnelChart.d.ts +0 -25
- package/lib/typescript/charts/HeatmapChart.d.ts +0 -23
- package/lib/typescript/charts/LineChart.d.ts +0 -30
- package/lib/typescript/charts/PlotChart.d.ts +0 -31
- package/lib/typescript/charts/RadarChart.d.ts +0 -27
- package/lib/typescript/charts/RingChart.d.ts +0 -28
- package/lib/typescript/charts/ScatterChart.d.ts +0 -34
- package/lib/typescript/charts/WaterfallChart.d.ts +0 -22
- package/lib/typescript/charts/advanced.d.ts +0 -107
- package/lib/typescript/charts/extra.d.ts +0 -63
- package/lib/typescript/charts/index.d.ts +0 -13
- package/lib/typescript/charts/scales.d.ts +0 -35
- package/src/Carousel.tsx +0 -233
- package/src/Display.tsx +0 -778
- package/src/Feedback.tsx +0 -969
- package/src/Form.tsx +0 -425
- package/src/Forms2.tsx +0 -1014
- package/src/Message.tsx +0 -219
- package/src/Overlays.tsx +0 -685
- package/src/Pickers.tsx +0 -590
- package/src/Table.tsx +0 -231
- package/src/ai.tsx +0 -707
- package/src/charts/AreaChart.tsx +0 -73
- package/src/charts/BarChart.tsx +0 -183
- package/src/charts/FunnelChart.tsx +0 -125
- package/src/charts/HeatmapChart.tsx +0 -155
- package/src/charts/LineChart.tsx +0 -247
- package/src/charts/PlotChart.tsx +0 -168
- package/src/charts/RadarChart.tsx +0 -208
- package/src/charts/RingChart.tsx +0 -133
- package/src/charts/ScatterChart.tsx +0 -223
- package/src/charts/WaterfallChart.tsx +0 -201
- package/src/charts/advanced.tsx +0 -676
- package/src/charts/extra.tsx +0 -242
- package/src/charts/index.ts +0 -86
- package/src/charts/scales.ts +0 -163
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { StyleProp, TextStyle } from "react-native";
|
|
3
|
+
export interface LabelProps {
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
/** Adds the required marker and reports it to screen readers. */
|
|
6
|
+
required?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
/** Matched by a control's `aria-labelledby`/`nativeID`. */
|
|
9
|
+
nativeID?: string;
|
|
10
|
+
isDark?: boolean;
|
|
11
|
+
style?: StyleProp<TextStyle>;
|
|
12
|
+
testID?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare function Label({ children, required, disabled, nativeID, isDark: isDarkProp, style, testID, }: LabelProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { StyleProp, TextStyle, ViewStyle } from "react-native";
|
|
2
|
+
export interface MorphGroupItem {
|
|
3
|
+
key: string;
|
|
4
|
+
/** Wrapped in a styled `Text`. */
|
|
5
|
+
label?: string;
|
|
6
|
+
/** Rendered before the label. */
|
|
7
|
+
icon?: any;
|
|
8
|
+
onPress?: () => void;
|
|
9
|
+
}
|
|
10
|
+
export interface MorphGroupProps {
|
|
11
|
+
/** The capsules, laid out in a row. Two or more make the morph reachable. */
|
|
12
|
+
items: MorphGroupItem[];
|
|
13
|
+
/**
|
|
14
|
+
* A capsule was dragged onto a neighbour and released there. What that *means*
|
|
15
|
+
* — combining actions, stacking items, a folder — is the app's; the group only
|
|
16
|
+
* springs everything home.
|
|
17
|
+
*/
|
|
18
|
+
onMerge?: (fromKey: string, toKey: string) => void;
|
|
19
|
+
/** A plain tap, forwarded alongside the item's own `onPress`. */
|
|
20
|
+
onItemPress?: (key: string) => void;
|
|
21
|
+
/** The distance at which two capsules begin to fuse, dp. Defaults to 28. */
|
|
22
|
+
spacing?: number;
|
|
23
|
+
/** Gap between capsules at rest, dp. Defaults to 12. */
|
|
24
|
+
gap?: number;
|
|
25
|
+
/** Capsule height; the corner radius follows it. Defaults to 48. */
|
|
26
|
+
height?: number;
|
|
27
|
+
/** Surface wash over every capsule's glass. */
|
|
28
|
+
tint?: string;
|
|
29
|
+
variant?: "regular" | "clear";
|
|
30
|
+
metal?: unknown;
|
|
31
|
+
providerId?: string;
|
|
32
|
+
style?: StyleProp<ViewStyle>;
|
|
33
|
+
/** Applied to item labels. */
|
|
34
|
+
textStyle?: StyleProp<TextStyle>;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* A morphing group of capsules — ported from the engine's
|
|
38
|
+
* `LiquidGlassMorphGroup`, the design Binyam approved on real devices this week
|
|
39
|
+
* (capsules fuse when dragged together, spring home on release).
|
|
40
|
+
*
|
|
41
|
+
* With a glass renderer available the engine's own control mounts, carrying the
|
|
42
|
+
* approved morph behaviour. Without one — Expo Go, below every tier, or Reduce
|
|
43
|
+
* Transparency — the fallback floor renders the same capsules with solid
|
|
44
|
+
* surfaces, so the group is never invisible.
|
|
45
|
+
*/
|
|
46
|
+
export declare const MorphGroup: import("react").ForwardRefExoticComponent<MorphGroupProps & import("react").RefAttributes<any>>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import type { StyleProp, ViewStyle } from "react-native";
|
|
3
|
+
export interface PopoverProps {
|
|
4
|
+
/** The control that opens the panel. */
|
|
5
|
+
trigger: ReactNode;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
open?: boolean;
|
|
8
|
+
defaultOpen?: boolean;
|
|
9
|
+
onOpenChange?: (open: boolean) => void;
|
|
10
|
+
/** Panel width, dp. Defaults to 260. */
|
|
11
|
+
width?: number;
|
|
12
|
+
accessibilityLabel?: string;
|
|
13
|
+
isDark?: boolean;
|
|
14
|
+
style?: StyleProp<ViewStyle>;
|
|
15
|
+
testID?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function Popover({ trigger, children, open: openProp, defaultOpen, onOpenChange, width, accessibilityLabel, isDark: isDarkProp, style, testID, }: PopoverProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { StyleProp, ViewStyle } from "react-native";
|
|
2
|
+
export type ProgressVariant = "bar" | "linear" | "track" | "ring" | "indeterminate";
|
|
3
|
+
export interface ProgressProps {
|
|
4
|
+
/** 0–100. Omit for an indeterminate bar. */
|
|
5
|
+
value: number;
|
|
6
|
+
variant?: ProgressVariant;
|
|
7
|
+
tint?: string;
|
|
8
|
+
accessibilityLabel?: string;
|
|
9
|
+
style?: StyleProp<ViewStyle>;
|
|
10
|
+
isDark?: boolean;
|
|
11
|
+
testID?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare function Progress({ value, variant, tint, accessibilityLabel, style, isDark: isDarkProp, testID, }: ProgressProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { StyleProp, ViewStyle } from "react-native";
|
|
2
|
+
export interface RadioOption {
|
|
3
|
+
value: string;
|
|
4
|
+
label: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface RadioGroupProps {
|
|
9
|
+
value?: string;
|
|
10
|
+
defaultValue?: string;
|
|
11
|
+
onValueChange?: (value: string) => void;
|
|
12
|
+
options: RadioOption[];
|
|
13
|
+
horizontal?: boolean;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
/** Announced as the group's name. */
|
|
16
|
+
accessibilityLabel?: string;
|
|
17
|
+
isDark?: boolean;
|
|
18
|
+
style?: StyleProp<ViewStyle>;
|
|
19
|
+
testID?: string;
|
|
20
|
+
}
|
|
21
|
+
export declare function RadioGroup({ value: valueProp, defaultValue, onValueChange, options, horizontal, disabled, accessibilityLabel, isDark: isDarkProp, style, testID, }: RadioGroupProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { StyleProp, ViewStyle } from "react-native";
|
|
3
|
+
export interface ScrimProps {
|
|
4
|
+
/** Which screen edge the scrim hugs — and therefore which way the blur ramps. Default `"bottom"`. */
|
|
5
|
+
edge?: "top" | "bottom" | "left" | "right";
|
|
6
|
+
/** Thickness of the scrim along its axis, dp. Default 160. */
|
|
7
|
+
size?: number;
|
|
8
|
+
/** Blur radius at the outer edge, dp. Default 24. */
|
|
9
|
+
radius?: number;
|
|
10
|
+
/**
|
|
11
|
+
* Fraction of the scrim over which the ramp completes, measured from the
|
|
12
|
+
* content side. Past it the blur holds at full `radius`. Default 0.7.
|
|
13
|
+
*/
|
|
14
|
+
reach?: number;
|
|
15
|
+
/** Optional wash over the blur — e.g. the bar surface colour at low alpha. */
|
|
16
|
+
tint?: string;
|
|
17
|
+
/** Android: which provider(s) to read. Same semantics as the glass view. */
|
|
18
|
+
providerId?: string;
|
|
19
|
+
/** Extra positioning/size overrides, applied after the edge placement. */
|
|
20
|
+
style?: StyleProp<ViewStyle>;
|
|
21
|
+
/** Content over the scrim — a tab bar, a toolbar. Laid out edge-aligned, untouched. */
|
|
22
|
+
children?: ReactNode;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* A scroll-edge scrim — ported from the engine's `LiquidGlassScrim`, the design
|
|
26
|
+
* Binyam approved on real devices this week (edge-hugging blur ramp).
|
|
27
|
+
*
|
|
28
|
+
* With a glass renderer available the engine's own control mounts, carrying the
|
|
29
|
+
* approved ramp. Without one — Expo Go, below every tier, or Reduce Transparency —
|
|
30
|
+
* the fallback floor renders the same scrim with a solid wash, so content is
|
|
31
|
+
* never lost behind an invisible scrim.
|
|
32
|
+
*/
|
|
33
|
+
export declare const Scrim: import("react").ForwardRefExoticComponent<ScrimProps & import("react").RefAttributes<any>>;
|
|
@@ -1,21 +1,32 @@
|
|
|
1
|
-
import type { StyleProp, ViewStyle } from "react-native";
|
|
1
|
+
import type { StyleProp, TextStyle, ViewStyle } from "react-native";
|
|
2
2
|
export interface SegmentedControlProps {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
/** Segment labels, equal-width. */
|
|
4
|
+
segments: string[];
|
|
5
|
+
selectedIndex: number;
|
|
6
|
+
/** Fires when the user picks another segment. */
|
|
7
|
+
onChange: (index: number) => void;
|
|
8
|
+
/** Control height; the corner radius follows it. Defaults to 40. */
|
|
9
|
+
height?: number;
|
|
10
|
+
/** Track wash. */
|
|
11
|
+
tint?: string;
|
|
12
|
+
/** Thumb wash. */
|
|
13
|
+
thumbTint?: string;
|
|
14
|
+
thumbMetal?: unknown;
|
|
15
|
+
accessibilityLabel?: string;
|
|
10
16
|
isDark?: boolean;
|
|
11
|
-
/** Passed
|
|
17
|
+
/** Passed to the control so it is testable. */
|
|
12
18
|
testID?: string;
|
|
19
|
+
style?: StyleProp<ViewStyle>;
|
|
20
|
+
textStyle?: StyleProp<TextStyle>;
|
|
13
21
|
}
|
|
14
22
|
/**
|
|
15
|
-
* A
|
|
23
|
+
* A segmented control — ported from the engine's `LiquidGlassSegmentedControl`,
|
|
24
|
+
* the design Binyam approved on real devices this week (40dp track, 3dp-inset
|
|
25
|
+
* thumb).
|
|
16
26
|
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
27
|
+
* With a glass renderer available the engine's own control mounts, carrying the
|
|
28
|
+
* approved geometry and thumb behaviour. Without one — Expo Go, below every
|
|
29
|
+
* tier, or Reduce Transparency — the fallback floor renders the same row of
|
|
30
|
+
* segments with solid selected states, so the control is never invisible.
|
|
20
31
|
*/
|
|
21
32
|
export declare const SegmentedControl: import("react").ForwardRefExoticComponent<SegmentedControlProps & import("react").RefAttributes<any>>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { StyleProp, ViewStyle } from "react-native";
|
|
2
|
+
export interface SelectOption {
|
|
3
|
+
value: string;
|
|
4
|
+
label: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface SelectProps {
|
|
8
|
+
value?: string;
|
|
9
|
+
defaultValue?: string;
|
|
10
|
+
onValueChange?: (value: string) => void;
|
|
11
|
+
options: SelectOption[];
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
accessibilityLabel?: string;
|
|
15
|
+
isDark?: boolean;
|
|
16
|
+
style?: StyleProp<ViewStyle>;
|
|
17
|
+
testID?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare function Select({ value: valueProp, defaultValue, onValueChange, options, placeholder, disabled, accessibilityLabel, isDark: isDarkProp, style, testID, }: SelectProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { StyleProp, ViewStyle } from "react-native";
|
|
2
|
+
export interface SeparatorProps {
|
|
3
|
+
orientation?: "horizontal" | "vertical";
|
|
4
|
+
/** Leading inset for a horizontal rule inside a list, dp. */
|
|
5
|
+
inset?: number;
|
|
6
|
+
isDark?: boolean;
|
|
7
|
+
style?: StyleProp<ViewStyle>;
|
|
8
|
+
testID?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function Separator({ orientation, inset, isDark: isDarkProp, style, testID, }: SeparatorProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { StyleProp, ViewStyle } from "react-native";
|
|
3
|
+
export interface SheetProps {
|
|
4
|
+
/** Up while `true`; slides away when it turns `false`. */
|
|
5
|
+
visible: boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Called when the sheet wants to go — dragged down past 30 % of its height,
|
|
8
|
+
* flung down, or the dim behind it tapped. The app flips `visible`; the sheet
|
|
9
|
+
* never hides itself.
|
|
10
|
+
*/
|
|
11
|
+
onDismiss?: () => void;
|
|
12
|
+
/** The sheet's height, dp. Defaults to 420. */
|
|
13
|
+
height?: number;
|
|
14
|
+
/** Top corner radius, continuous. Defaults to 28. */
|
|
15
|
+
cornerRadius?: number;
|
|
16
|
+
/** Shows the grab handle. Defaults to `true`. */
|
|
17
|
+
handle?: boolean;
|
|
18
|
+
/** Opacity of the black dim behind the sheet at full height; `0` for none. Defaults to 0.25. */
|
|
19
|
+
dim?: number;
|
|
20
|
+
/** A tap on the dim dismisses. Defaults to `true`. */
|
|
21
|
+
dismissOnTap?: boolean;
|
|
22
|
+
/** Surface wash. */
|
|
23
|
+
tint?: string;
|
|
24
|
+
variant?: "regular" | "clear";
|
|
25
|
+
/** The sheet frame — positioned absolutely at the bottom of its parent. */
|
|
26
|
+
style?: StyleProp<ViewStyle>;
|
|
27
|
+
/** The content view, under the handle. */
|
|
28
|
+
contentStyle?: StyleProp<ViewStyle>;
|
|
29
|
+
children?: ReactNode;
|
|
30
|
+
isDark?: boolean;
|
|
31
|
+
/** Passed to the sheet so it is testable. */
|
|
32
|
+
testID?: string;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* A bottom sheet — ported from the engine's `LiquidGlassSheet`, the design
|
|
36
|
+
* Binyam approved on real devices this week (28dp top corners, 36x5 grab handle,
|
|
37
|
+
* dismissed past 30 % of its height or on a dim tap).
|
|
38
|
+
*
|
|
39
|
+
* With a glass renderer available the engine's own control mounts, carrying the
|
|
40
|
+
* approved material, handle and dismissal behaviour. Without one — Expo Go, below
|
|
41
|
+
* every tier, or Reduce Transparency — the fallback floor renders the same panel
|
|
42
|
+
* with a solid surface and the same dismissal affordances, so the sheet is never
|
|
43
|
+
* invisible.
|
|
44
|
+
*/
|
|
45
|
+
export declare const Sheet: import("react").ForwardRefExoticComponent<SheetProps & import("react").RefAttributes<any>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { StyleProp, ViewStyle } from "react-native";
|
|
2
|
+
export interface SkeletonProps {
|
|
3
|
+
shape?: "rect" | "circle" | "line";
|
|
4
|
+
width?: number | string;
|
|
5
|
+
height?: number;
|
|
6
|
+
isDark?: boolean;
|
|
7
|
+
style?: StyleProp<ViewStyle>;
|
|
8
|
+
testID?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function Skeleton({ shape, width, height, isDark: isDarkProp, style, testID, }: SkeletonProps): import("react").JSX.Element;
|
|
@@ -1,27 +1,35 @@
|
|
|
1
1
|
import type { StyleProp, ViewStyle } from "react-native";
|
|
2
2
|
export interface SliderProps {
|
|
3
|
+
/** Controlled value. Omit it and the slider keeps its own. */
|
|
3
4
|
value?: number;
|
|
4
5
|
defaultValue?: number;
|
|
6
|
+
/** Inclusive lower bound. Defaults to 0. */
|
|
5
7
|
min?: number;
|
|
8
|
+
/** Inclusive upper bound. Defaults to 100. */
|
|
6
9
|
max?: number;
|
|
10
|
+
/** Increment per step. Defaults to 1. */
|
|
7
11
|
step?: number;
|
|
12
|
+
/** Fires while dragging and once when the gesture ends (engine order). */
|
|
8
13
|
onValueChange?: (value: number) => void;
|
|
14
|
+
/** Fires once when the gesture ends, after the thumb has been released. */
|
|
15
|
+
onSlidingComplete?: (value: number) => void;
|
|
9
16
|
disabled?: boolean;
|
|
10
17
|
/** One selection tick each time the stepped value changes while dragging. */
|
|
11
18
|
haptics?: boolean;
|
|
12
19
|
accessibilityLabel: string;
|
|
13
20
|
style?: StyleProp<ViewStyle>;
|
|
14
21
|
isDark?: boolean;
|
|
15
|
-
/** Passed
|
|
22
|
+
/** Passed to the draggable track so it is testable. */
|
|
16
23
|
testID?: string;
|
|
17
24
|
}
|
|
18
25
|
/**
|
|
19
|
-
* A continuous value chosen by dragging
|
|
26
|
+
* A continuous value chosen by dragging — ported from the engine's
|
|
27
|
+
* `LiquidGlassSlider`, which keeps the approved drag behaviour while the
|
|
28
|
+
* material changes by platform.
|
|
20
29
|
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* platform; only the glass material changes.
|
|
30
|
+
* With a glass renderer available the engine's own control mounts, carrying the
|
|
31
|
+
* approved geometry and drag behaviour. Without one — Expo Go, below every tier,
|
|
32
|
+
* or Reduce Transparency — the fallback floor renders the same track and lens
|
|
33
|
+
* thumb with the fallback material, so the control is never invisible.
|
|
26
34
|
*/
|
|
27
35
|
export declare const Slider: import("react").ForwardRefExoticComponent<SliderProps & import("react").RefAttributes<any>>;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { StyleProp, TextStyle, ViewStyle } from "react-native";
|
|
2
|
+
export interface StepperProps {
|
|
3
|
+
/** Controlled value. Omit it and the stepper keeps its own. */
|
|
4
|
+
value?: number;
|
|
5
|
+
defaultValue?: number;
|
|
6
|
+
/** Fires with the next value whenever one of the ends steps it. */
|
|
7
|
+
onValueChange?: (value: number) => void;
|
|
8
|
+
/** Inclusive lower bound. Defaults to 0. `minimumValue` is the engine's spelling. */
|
|
9
|
+
min?: number;
|
|
10
|
+
/** Inclusive upper bound. Defaults to 100. `maximumValue` is the engine's spelling. */
|
|
11
|
+
max?: number;
|
|
12
|
+
minimumValue?: number;
|
|
13
|
+
maximumValue?: number;
|
|
14
|
+
/** Increment per press. Defaults to 1. */
|
|
15
|
+
step?: number;
|
|
16
|
+
/** Hold an end and it keeps stepping, the way the system's does. Defaults to true. */
|
|
17
|
+
autoRepeat?: boolean;
|
|
18
|
+
/** One selection tick each time the value changes. `false` opts out. */
|
|
19
|
+
haptics?: boolean;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
/** Capsule height, dp. Defaults to the engine's 40. */
|
|
22
|
+
height?: number;
|
|
23
|
+
/** Formats the middle readout; defaults to the plain number. */
|
|
24
|
+
formatValue?: (value: number) => string;
|
|
25
|
+
/** Announced by screen readers, e.g. "Guests". */
|
|
26
|
+
accessibilityLabel: string;
|
|
27
|
+
/** The track's wash. Defaults to the scheme's glass tint. */
|
|
28
|
+
tint?: string;
|
|
29
|
+
/** The pressed thumb's wash. Defaults to the scheme's glass-active tint. */
|
|
30
|
+
thumbTint?: string;
|
|
31
|
+
/** Pairs the surface with its Android backdrop provider. */
|
|
32
|
+
providerId?: string;
|
|
33
|
+
isDark?: boolean;
|
|
34
|
+
style?: StyleProp<ViewStyle>;
|
|
35
|
+
textStyle?: StyleProp<TextStyle>;
|
|
36
|
+
testID?: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Minus / value / plus — ported from the engine's `LiquidGlassStepper`, the
|
|
40
|
+
* design Binyam approved on real devices this week (40dp capsule, 44dp cells,
|
|
41
|
+
* press thumb blooming over the held end, the value popping as it changes, and
|
|
42
|
+
* hold-to-repeat).
|
|
43
|
+
*
|
|
44
|
+
* With a glass renderer available the engine's own control mounts, carrying the
|
|
45
|
+
* approved geometry and behaviour. Without one — Expo Go, below every tier, or
|
|
46
|
+
* Reduce Transparency — the fallback floor renders the same capsule, cells and
|
|
47
|
+
* readout on Glacia's solid material, so the control is never invisible.
|
|
48
|
+
*/
|
|
49
|
+
export declare const Stepper: import("react").ForwardRefExoticComponent<StepperProps & import("react").RefAttributes<any>>;
|
|
@@ -1,23 +1,30 @@
|
|
|
1
1
|
import type { StyleProp, ViewStyle } from "react-native";
|
|
2
2
|
export interface SwitchProps {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
/** Controlled on/off value. Omit it and the switch keeps its own. */
|
|
4
|
+
value?: boolean;
|
|
5
|
+
defaultValue?: boolean;
|
|
6
|
+
/** Fires with the next value. The engine's controlled contract. */
|
|
7
|
+
onValueChange?: (value: boolean) => void;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
/** Track colour while on. A parseable colour string. Defaults to the scheme's system blue. */
|
|
10
|
+
accentColor?: string;
|
|
11
|
+
/** Track colour while off. */
|
|
12
|
+
trackColor?: string;
|
|
13
|
+
accessibilityLabel?: string;
|
|
6
14
|
/** One selection tick when it toggles. `false` opts out. */
|
|
7
15
|
haptics?: boolean;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
accessibilityLabel: string;
|
|
10
|
-
style?: StyleProp<ViewStyle>;
|
|
11
16
|
isDark?: boolean;
|
|
12
|
-
/** Passed
|
|
17
|
+
/** Passed to the control so it is testable. */
|
|
13
18
|
testID?: string;
|
|
19
|
+
style?: StyleProp<ViewStyle>;
|
|
14
20
|
}
|
|
15
21
|
/**
|
|
16
|
-
* An on/off switch
|
|
22
|
+
* An on/off switch — ported from the engine's `LiquidGlassSwitch`, the design
|
|
23
|
+
* Binyam approved on real devices this week (64x28 track, 40x24 lens thumb).
|
|
17
24
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
25
|
+
* With a glass renderer available the engine's own control mounts, carrying the
|
|
26
|
+
* approved geometry and interaction. Without one — Expo Go, below every tier, or
|
|
27
|
+
* Reduce Transparency — the fallback floor renders the same geometry with a solid
|
|
28
|
+
* track and lens thumb, so the control is never invisible.
|
|
22
29
|
*/
|
|
23
30
|
export declare const Switch: import("react").ForwardRefExoticComponent<SwitchProps & import("react").RefAttributes<any>>;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { type ReactNode } from "react";
|
|
2
1
|
import type { StyleProp, ViewStyle } from "react-native";
|
|
3
2
|
export interface TabBarItem {
|
|
4
3
|
id: string;
|
|
5
4
|
label: string;
|
|
6
|
-
icon?:
|
|
5
|
+
icon?: any;
|
|
7
6
|
}
|
|
8
7
|
export interface TabBarProps {
|
|
9
8
|
items: TabBarItem[];
|
|
@@ -14,6 +13,13 @@ export interface TabBarProps {
|
|
|
14
13
|
haptics?: boolean;
|
|
15
14
|
style?: StyleProp<ViewStyle>;
|
|
16
15
|
isDark?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* The safe-area inset the bar must float above — the Android navigation bar
|
|
18
|
+
* or the iOS home indicator. Defaults to the device's own bottom inset, read
|
|
19
|
+
* from the safe area, so the bar floats fully above it and its labels are
|
|
20
|
+
* never clipped. Pass a number to pin the bar to a design height instead.
|
|
21
|
+
*/
|
|
22
|
+
bottomInset?: number;
|
|
17
23
|
/** Passed through to the bar so it is testable. */
|
|
18
24
|
testID?: string;
|
|
19
25
|
}
|
|
@@ -21,9 +27,15 @@ export interface TabBarProps {
|
|
|
21
27
|
* The bottom bar of an app: a row of tabs on one glass surface.
|
|
22
28
|
*
|
|
23
29
|
* The platform rule is the point of this component. On iOS 26+ the surface is
|
|
24
|
-
* Apple's real Liquid Glass (`UIGlassEffect` via
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
30
|
+
* Apple's real Liquid Glass (`UIGlassEffect` via the vendored engine) with
|
|
31
|
+
* Glacia's own items inside it; on older iOS and on Android it is Glacia's bar.
|
|
32
|
+
* The items are always our Pressables and Texts — no native tab bar is used on
|
|
33
|
+
* any platform.
|
|
34
|
+
*
|
|
35
|
+
* The port is the engine's `LiquidGlassTabBar` design, and it carries over
|
|
36
|
+
* session 1's safe-area behaviour: the bar floats fully above the system inset
|
|
37
|
+
* (the Android navigation bar or the iOS home indicator) — the safe-area bottom
|
|
38
|
+
* inset is added to the bar's height — so the glass ends above the inset rather
|
|
39
|
+
* than sinking into it and the labels never clip.
|
|
28
40
|
*/
|
|
29
41
|
export declare const TabBar: import("react").ForwardRefExoticComponent<TabBarProps & import("react").RefAttributes<any>>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type InputProps } from "./Input";
|
|
2
|
+
export interface TextareaProps extends Omit<InputProps, "multiline"> {
|
|
3
|
+
/** Visible height in text lines. Defaults to 4. */
|
|
4
|
+
rows?: number;
|
|
5
|
+
}
|
|
6
|
+
export declare const Textarea: import("react").ForwardRefExoticComponent<TextareaProps & import("react").RefAttributes<any>>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { StyleProp, TextStyle, ViewStyle } from "react-native";
|
|
3
|
+
export interface ToastProps {
|
|
4
|
+
/** Shown while `true`; springs out when it turns `false`. */
|
|
5
|
+
visible: boolean;
|
|
6
|
+
/** The text. */
|
|
7
|
+
message: string;
|
|
8
|
+
/** Rendered before the message; a function receives the label colour and a glyph size. */
|
|
9
|
+
icon?: ReactNode;
|
|
10
|
+
/**
|
|
11
|
+
* Called when the toast wants to go — after `duration`, or on a tap. The app
|
|
12
|
+
* flips `visible`; the toast never hides itself.
|
|
13
|
+
*/
|
|
14
|
+
onDismiss?: () => void;
|
|
15
|
+
/** Auto-dismiss after this many ms of being visible. `0` keeps it up. Defaults to 2600. */
|
|
16
|
+
duration?: number;
|
|
17
|
+
/** Which screen edge it slides in from. Defaults to `"top"`. */
|
|
18
|
+
edge?: "top" | "bottom";
|
|
19
|
+
/** Distance from that edge, dp. Defaults to 60. */
|
|
20
|
+
offset?: number;
|
|
21
|
+
/** Surface wash. */
|
|
22
|
+
tint?: string;
|
|
23
|
+
variant?: "regular" | "clear";
|
|
24
|
+
style?: StyleProp<ViewStyle>;
|
|
25
|
+
textStyle?: StyleProp<TextStyle>;
|
|
26
|
+
isDark?: boolean;
|
|
27
|
+
/** Passed to the toast so it is testable. */
|
|
28
|
+
testID?: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* A transient message on a glass pill — ported from the engine's
|
|
32
|
+
* `LiquidGlassToast`, the design Binyam approved on real devices this week (44dp
|
|
33
|
+
* capsule, 60dp from the screen edge, auto-dismiss after 2.6s).
|
|
34
|
+
*
|
|
35
|
+
* With a glass renderer available the engine's own control mounts, carrying the
|
|
36
|
+
* approved material and motion. Without one — Expo Go, below every tier, or
|
|
37
|
+
* Reduce Transparency — the fallback floor renders the same pill with the
|
|
38
|
+
* fallback material, so the toast is never invisible.
|
|
39
|
+
*/
|
|
40
|
+
export declare const Toast: import("react").ForwardRefExoticComponent<ToastProps & import("react").RefAttributes<any>>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import type { StyleProp, TextStyle, ViewStyle } from "react-native";
|
|
3
|
+
export interface ToggleProps {
|
|
4
|
+
/** Controlled pressed state. */
|
|
5
|
+
pressed?: boolean;
|
|
6
|
+
defaultPressed?: boolean;
|
|
7
|
+
onPressedChange?: (pressed: boolean) => void;
|
|
8
|
+
/** Read-only alias of `pressed`, matching the web package's naming. */
|
|
9
|
+
selected?: boolean;
|
|
10
|
+
icon?: ReactNode;
|
|
11
|
+
children?: ReactNode;
|
|
12
|
+
variant?: "glass" | "ghost";
|
|
13
|
+
size?: "sm" | "md" | "lg";
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
accessibilityLabel?: string;
|
|
16
|
+
style?: StyleProp<ViewStyle>;
|
|
17
|
+
textStyle?: StyleProp<TextStyle>;
|
|
18
|
+
isDark?: boolean;
|
|
19
|
+
testID?: string;
|
|
20
|
+
}
|
|
21
|
+
export declare function Toggle({ pressed: pressedProp, defaultPressed, onPressedChange, selected, icon, children, variant, size, disabled, accessibilityLabel, style, textStyle, isDark: isDarkProp, testID, }: ToggleProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import type { StyleProp, ViewStyle } from "react-native";
|
|
3
|
+
export interface ToggleGroupItem {
|
|
4
|
+
value: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
icon?: ReactNode;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface ToggleGroupProps {
|
|
10
|
+
items: ToggleGroupItem[];
|
|
11
|
+
multiple?: boolean;
|
|
12
|
+
value?: string | string[];
|
|
13
|
+
defaultValue?: string | string[];
|
|
14
|
+
onValueChange?: (value: string | string[]) => void;
|
|
15
|
+
size?: "sm" | "md" | "lg";
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
accessibilityLabel?: string;
|
|
18
|
+
style?: StyleProp<ViewStyle>;
|
|
19
|
+
isDark?: boolean;
|
|
20
|
+
testID?: string;
|
|
21
|
+
}
|
|
22
|
+
export declare function ToggleGroup({ items, multiple, value: valueProp, defaultValue, onValueChange, size, disabled, accessibilityLabel, style, isDark: isDarkProp, testID, }: ToggleGroupProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { StyleProp, TextStyle, ViewStyle } from "react-native";
|
|
3
|
+
export interface ToolbarProps {
|
|
4
|
+
/** The title. A string is set in a glass capsule of its own between the two ends; a node is rendered as given. */
|
|
5
|
+
title?: ReactNode;
|
|
6
|
+
/** Controls at the leading end — a back button, a menu. They merge when pressed. */
|
|
7
|
+
leading?: ReactNode;
|
|
8
|
+
/** Controls at the trailing end — actions. They merge when pressed. */
|
|
9
|
+
trailing?: ReactNode;
|
|
10
|
+
/** The merge distance for each end's group, dp. Defaults to 28. */
|
|
11
|
+
spacing?: number;
|
|
12
|
+
/** Gap between controls at either end, dp. Defaults to 12. */
|
|
13
|
+
gap?: number;
|
|
14
|
+
/** Bar height, dp. Defaults to 48. */
|
|
15
|
+
height?: number;
|
|
16
|
+
/** The title capsule's wash. */
|
|
17
|
+
tint?: string;
|
|
18
|
+
variant?: "regular" | "clear";
|
|
19
|
+
style?: StyleProp<ViewStyle>;
|
|
20
|
+
titleStyle?: StyleProp<TextStyle>;
|
|
21
|
+
isDark?: boolean;
|
|
22
|
+
/** Passed to the control so it is testable. */
|
|
23
|
+
testID?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* A toolbar — ported from the engine's `LiquidGlassToolbar`, the design Binyam
|
|
27
|
+
* approved on real devices this week (48dp row, title capsule between the ends,
|
|
28
|
+
* leading and trailing groups that merge when pressed).
|
|
29
|
+
*
|
|
30
|
+
* With a glass renderer available the engine's own control mounts, carrying the
|
|
31
|
+
* approved material and merge behaviour. Without one — Expo Go, below every
|
|
32
|
+
* tier, or Reduce Transparency — the fallback floor renders the same row with a
|
|
33
|
+
* solid surface, so the toolbar is never invisible.
|
|
34
|
+
*/
|
|
35
|
+
export declare const Toolbar: import("react").ForwardRefExoticComponent<ToolbarProps & import("react").RefAttributes<any>>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import type { StyleProp, ViewStyle } from "react-native";
|
|
3
|
+
export interface TooltipProps {
|
|
4
|
+
/** The hint text. */
|
|
5
|
+
label: string;
|
|
6
|
+
/** The control the tooltip describes. */
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
open?: boolean;
|
|
9
|
+
defaultOpen?: boolean;
|
|
10
|
+
onOpenChange?: (open: boolean) => void;
|
|
11
|
+
side?: "top" | "bottom";
|
|
12
|
+
isDark?: boolean;
|
|
13
|
+
style?: StyleProp<ViewStyle>;
|
|
14
|
+
testID?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare function Tooltip({ label, children, open: openProp, defaultOpen, onOpenChange, isDark: isDarkProp, style, testID, }: TooltipProps): import("react").JSX.Element;
|