glacia-native 0.5.2 → 0.6.1
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/README.md +84 -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 -268
- package/lib/module/Button.js +57 -39
- package/lib/module/Card.js +31 -19
- 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 -123
- package/lib/module/DropdownMenu.js +33 -0
- package/lib/module/Field.js +22 -0
- package/lib/module/Glass.js +10 -3
- package/lib/module/Group.js +36 -0
- package/lib/module/IconButton.js +40 -0
- package/lib/module/Input.js +43 -38
- 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 +70 -63
- 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 +45 -34
- package/lib/module/Stepper.js +167 -0
- package/lib/module/Switch.js +45 -55
- package/lib/module/TabBar.js +50 -44
- 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 +43 -11
- 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 +6 -9
- package/lib/module/internal/glass-routing.js +156 -30
- package/lib/module/internal/initials.js +12 -0
- package/lib/module/internal/overlay.js +147 -0
- package/lib/module/internal/primitives.js +16 -0
- 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 +38 -17
- package/lib/typescript/internal/GlassBackdrop.d.ts +33 -0
- package/lib/typescript/internal/GlassView.d.ts +18 -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/glass-routing.d.ts +83 -15
- package/lib/typescript/internal/initials.d.ts +2 -0
- package/lib/typescript/internal/overlay.d.ts +74 -0
- package/lib/typescript/internal/primitives.d.ts +11 -0
- package/package.json +12 -10
- 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 -807
- package/src/Button.tsx +196 -67
- package/src/Card.tsx +105 -32
- 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 +85 -335
- package/src/DropdownMenu.tsx +103 -0
- package/src/Field.tsx +65 -0
- package/src/Glass.tsx +15 -5
- package/src/Group.tsx +98 -0
- package/src/IconButton.tsx +110 -0
- package/src/Input.tsx +139 -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 +132 -99
- 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 +84 -47
- package/src/Stepper.tsx +315 -0
- package/src/Switch.tsx +81 -73
- package/src/TabBar.tsx +106 -93
- 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 +47 -190
- package/src/internal/GlassBackdrop.tsx +60 -0
- package/src/internal/GlassView.tsx +53 -18
- package/src/internal/blur-community.ts +19 -0
- package/src/internal/blur-community.web.ts +7 -0
- package/src/internal/blur.ts +7 -8
- package/src/internal/glass-routing.ts +212 -34
- package/src/internal/initials.ts +7 -0
- package/src/internal/overlay.tsx +258 -0
- package/src/internal/primitives.ts +23 -0
- package/lib/module/Carousel.js +0 -103
- package/lib/module/Display.js +0 -318
- package/lib/module/Feedback.js +0 -395
- package/lib/module/Form.js +0 -160
- package/lib/module/Forms2.js +0 -471
- package/lib/module/Message.js +0 -84
- package/lib/module/Overlays.js +0 -344
- package/lib/module/Pickers.js +0 -243
- package/lib/module/Table.js +0 -100
- package/lib/module/ai.js +0 -283
- package/lib/module/charts/AreaChart.js +0 -32
- package/lib/module/charts/BarChart.js +0 -75
- 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 -67
- 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 -781
- package/src/Feedback.tsx +0 -992
- package/src/Form.tsx +0 -445
- package/src/Forms2.tsx +0 -1055
- package/src/Message.tsx +0 -218
- package/src/Overlays.tsx +0 -704
- package/src/Pickers.tsx +0 -595
- package/src/Table.tsx +0 -232
- package/src/ai.tsx +0 -715
- package/src/charts/AreaChart.tsx +0 -73
- package/src/charts/BarChart.tsx +0 -221
- 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
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from "react";
|
|
2
|
-
import type { StyleProp, ViewStyle } from "react-native";
|
|
3
|
-
export interface MessageBubbleProps {
|
|
4
|
-
/** Whether the message is the device owner's (right, tinted) or not (left). */
|
|
5
|
-
outgoing?: boolean;
|
|
6
|
-
children?: ReactNode;
|
|
7
|
-
style?: StyleProp<ViewStyle>;
|
|
8
|
-
isDark?: boolean;
|
|
9
|
-
testID?: string;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* One message's bubble.
|
|
13
|
-
*
|
|
14
|
-
* The bubble is a glass surface like the rest of the library (panel profile),
|
|
15
|
-
* so it carries the same blurred backdrop, lit rim and shadow as a card. The
|
|
16
|
-
* outgoing direction is tinted with `glassActive` — the theme's selected
|
|
17
|
-
* tint — and the incoming one uses the plain glass token, which is what keeps
|
|
18
|
-
* the two directions distinguishable without a second material.
|
|
19
|
-
*/
|
|
20
|
-
export declare const MessageBubble: import("react").ForwardRefExoticComponent<MessageBubbleProps & import("react").RefAttributes<any>>;
|
|
21
|
-
export interface MessageAttachmentProps {
|
|
22
|
-
/** The file's name, shown and used as the accessible label. */
|
|
23
|
-
name: string;
|
|
24
|
-
/** A human-readable size, e.g. "1.2 MB". */
|
|
25
|
-
size?: string;
|
|
26
|
-
/** A leading node, typically an SVG icon. */
|
|
27
|
-
icon?: ReactNode;
|
|
28
|
-
/** Makes the chip tappable, e.g. to open the file. */
|
|
29
|
-
onPress?: () => void;
|
|
30
|
-
disabled?: boolean;
|
|
31
|
-
style?: StyleProp<ViewStyle>;
|
|
32
|
-
isDark?: boolean;
|
|
33
|
-
testID?: string;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* A file chip for a message.
|
|
37
|
-
*
|
|
38
|
-
* A flat, bordered chip rather than a glass one, for the same reason the
|
|
39
|
-
* bubbles are flat: it sits inside a bubble or beside one, and glass inside
|
|
40
|
-
* glass is never allowed. The size is a caller-formatted string — byte
|
|
41
|
-
* formatting belongs to the app's locale, not to a component library.
|
|
42
|
-
*/
|
|
43
|
-
export declare const MessageAttachment: import("react").ForwardRefExoticComponent<MessageAttachmentProps & import("react").RefAttributes<any>>;
|
|
44
|
-
export interface MessageProps {
|
|
45
|
-
/** The sender's name, shown above the content. */
|
|
46
|
-
name?: string;
|
|
47
|
-
/** A time or timestamp, shown beside the name. */
|
|
48
|
-
time?: string;
|
|
49
|
-
/** Draws an Avatar showing `name`'s initials beside the content. */
|
|
50
|
-
avatar?: boolean;
|
|
51
|
-
/** The bubble direction. */
|
|
52
|
-
outgoing?: boolean;
|
|
53
|
-
/** The message's content: text, or a bubble, or a bubble with attachments. */
|
|
54
|
-
children?: ReactNode;
|
|
55
|
-
style?: StyleProp<ViewStyle>;
|
|
56
|
-
isDark?: boolean;
|
|
57
|
-
testID?: string;
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* A whole message: who sent it, when, and what they said.
|
|
61
|
-
*
|
|
62
|
-
* The row every chat screen builds by hand — an avatar, a name and time line,
|
|
63
|
-
* and the content under it. Grouping it means the alignment, spacing and
|
|
64
|
-
* accessibility grouping are decided once: the row is announced as a single
|
|
65
|
-
* message (name, time, content) rather than as three unrelated pieces of text.
|
|
66
|
-
*/
|
|
67
|
-
export declare const Message: import("react").ForwardRefExoticComponent<MessageProps & import("react").RefAttributes<any>>;
|
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from "react";
|
|
2
|
-
import type { StyleProp, ViewStyle } from "react-native";
|
|
3
|
-
/**
|
|
4
|
-
* Keeps a popover inside the window.
|
|
5
|
-
*
|
|
6
|
-
* Called with the trigger's measured frame and the popover's own size; returns
|
|
7
|
-
* the offsets that bring it back on screen. A menu near the bottom edge flips
|
|
8
|
-
* above its trigger rather than hanging off the display.
|
|
9
|
-
*/
|
|
10
|
-
export declare function anchorPopover(trigger: {
|
|
11
|
-
x: number;
|
|
12
|
-
y: number;
|
|
13
|
-
width: number;
|
|
14
|
-
height: number;
|
|
15
|
-
}, popover: {
|
|
16
|
-
width: number;
|
|
17
|
-
height: number;
|
|
18
|
-
}, viewport: {
|
|
19
|
-
width: number;
|
|
20
|
-
height: number;
|
|
21
|
-
}, gap?: number): {
|
|
22
|
-
left: number;
|
|
23
|
-
top: number;
|
|
24
|
-
flipped: boolean;
|
|
25
|
-
};
|
|
26
|
-
export interface MenuItem {
|
|
27
|
-
label: string;
|
|
28
|
-
onPress: () => void;
|
|
29
|
-
icon?: ReactNode;
|
|
30
|
-
disabled?: boolean;
|
|
31
|
-
/** Renders in the destructive tone, for delete-and-similar. */
|
|
32
|
-
destructive?: boolean;
|
|
33
|
-
accessibilityLabel?: string;
|
|
34
|
-
}
|
|
35
|
-
export interface MenuProps {
|
|
36
|
-
/** The control that opens the menu. */
|
|
37
|
-
trigger: ReactNode;
|
|
38
|
-
items: MenuItem[];
|
|
39
|
-
/** Controlled open state. Omit and the menu keeps its own. */
|
|
40
|
-
open?: boolean;
|
|
41
|
-
onOpenChange?: (open: boolean) => void;
|
|
42
|
-
/** The menu's width. The list scrolls if the items exceed the screen. */
|
|
43
|
-
width?: number;
|
|
44
|
-
accessibilityLabel?: string;
|
|
45
|
-
style?: StyleProp<ViewStyle>;
|
|
46
|
-
isDark?: boolean;
|
|
47
|
-
testID?: string;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* An anchored dropdown menu.
|
|
51
|
-
*
|
|
52
|
-
* A press outside or on an item closes it; Android's back button does too. The
|
|
53
|
-
* popover is a glass surface with `glassActive` rows, matching the way the
|
|
54
|
-
* library marks a tappable row rather than nesting another glass panel.
|
|
55
|
-
*/
|
|
56
|
-
export declare const Menu: import("react").ForwardRefExoticComponent<MenuProps & import("react").RefAttributes<any>>;
|
|
57
|
-
export interface SheetProps {
|
|
58
|
-
/** Controlled visibility. Omit and the sheet keeps its own. */
|
|
59
|
-
open?: boolean;
|
|
60
|
-
defaultOpen?: boolean;
|
|
61
|
-
onOpenChange?: (open: boolean) => void;
|
|
62
|
-
title?: string;
|
|
63
|
-
children?: ReactNode;
|
|
64
|
-
footer?: ReactNode;
|
|
65
|
-
/** Tapping the scrim dismisses. */
|
|
66
|
-
dismissOnBackdropPress?: boolean;
|
|
67
|
-
/** The drag handle at the top of the panel. */
|
|
68
|
-
showHandle?: boolean;
|
|
69
|
-
/**
|
|
70
|
-
* Resting heights the sheet can settle at, smallest first. A number is
|
|
71
|
-
* points; a fraction below 1 is a share of the window height. With one
|
|
72
|
-
* point the sheet opens there; with several it can be dragged between them.
|
|
73
|
-
* Omitted, the sheet uses its own natural height.
|
|
74
|
-
*/
|
|
75
|
-
snapPoints?: number[];
|
|
76
|
-
/** Which snap point to open at. Defaults to the first. */
|
|
77
|
-
initialSnapIndex?: number;
|
|
78
|
-
/** Controlled snap point. Omit and the sheet tracks its own. */
|
|
79
|
-
snapIndex?: number;
|
|
80
|
-
onSnapIndexChange?: (index: number) => void;
|
|
81
|
-
/** Dragging below the lowest point dismisses instead of springing back. */
|
|
82
|
-
dismissOnSnapToBottom?: boolean;
|
|
83
|
-
/** Turns the drag gesture off, leaving press-and-back dismissal only. */
|
|
84
|
-
draggable?: boolean;
|
|
85
|
-
/** Opt out of the selection tick on snap changes. */
|
|
86
|
-
haptics?: boolean;
|
|
87
|
-
style?: StyleProp<ViewStyle>;
|
|
88
|
-
isDark?: boolean;
|
|
89
|
-
testID?: string;
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* A bottom sheet.
|
|
93
|
-
*
|
|
94
|
-
* The general-purpose container: it slides up on the springs token, dismisses
|
|
95
|
-
* on a scrim press and on Android back. ActionSheet remains the action-menu
|
|
96
|
-
* specialisation of this shape; Sheet is for arbitrary content — a form, a
|
|
97
|
-
* calendar, a detail panel.
|
|
98
|
-
*/
|
|
99
|
-
/**
|
|
100
|
-
* Turns a snap point into a pixel height.
|
|
101
|
-
*
|
|
102
|
-
* A number under 1 is a fraction of the window; anything else is points. The
|
|
103
|
-
* result is clamped so a sheet can never be taller than the space it has.
|
|
104
|
-
*/
|
|
105
|
-
export declare function resolveSnapPoint(point: number, windowHeight: number): number;
|
|
106
|
-
/**
|
|
107
|
-
* Picks the snap point nearest to where the user let go.
|
|
108
|
-
*
|
|
109
|
-
* `height` is how tall the sheet currently is. Ties go to the smaller sheet,
|
|
110
|
-
* so a small flick does not jump the panel to full height.
|
|
111
|
-
*/
|
|
112
|
-
export declare function nearestSnapPoint(heights: number[], height: number): number;
|
|
113
|
-
export declare const Sheet: import("react").ForwardRefExoticComponent<SheetProps & import("react").RefAttributes<any>>;
|
|
114
|
-
export interface DrawerProps {
|
|
115
|
-
/** Controlled visibility. Omit and the drawer keeps its own. */
|
|
116
|
-
open?: boolean;
|
|
117
|
-
defaultOpen?: boolean;
|
|
118
|
-
onOpenChange?: (open: boolean) => void;
|
|
119
|
-
/** The edge the panel slides in from. */
|
|
120
|
-
side?: "left" | "right";
|
|
121
|
-
/** Panel width. */
|
|
122
|
-
width?: number;
|
|
123
|
-
children?: ReactNode;
|
|
124
|
-
/** Tapping the scrim dismisses. */
|
|
125
|
-
dismissOnBackdropPress?: boolean;
|
|
126
|
-
/** Turns the drag-to-close gesture off. */
|
|
127
|
-
draggable?: boolean;
|
|
128
|
-
/** Opt out of the selection tick when the drawer is thrown closed. */
|
|
129
|
-
haptics?: boolean;
|
|
130
|
-
style?: StyleProp<ViewStyle>;
|
|
131
|
-
isDark?: boolean;
|
|
132
|
-
testID?: string;
|
|
133
|
-
}
|
|
134
|
-
/**
|
|
135
|
-
* A side navigation drawer.
|
|
136
|
-
*
|
|
137
|
-
* The same overlay discipline as Sheet — scrim, spring slide, Android back —
|
|
138
|
-
* but anchored to a side edge, with a square panel that runs the full height.
|
|
139
|
-
* The caller supplies the content, typically a List.
|
|
140
|
-
*
|
|
141
|
-
* Dragging the panel towards its own edge follows the finger; releasing past
|
|
142
|
-
* the halfway point, or with enough outward velocity, closes it, and a drag
|
|
143
|
-
* that stays inside springs it back open. Reduce Motion is honoured: with it
|
|
144
|
-
* on, the drawer appears and disappears without sliding.
|
|
145
|
-
*/
|
|
146
|
-
export declare const Drawer: import("react").ForwardRefExoticComponent<DrawerProps & import("react").RefAttributes<any>>;
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import type { StyleProp, ViewStyle } from "react-native";
|
|
2
|
-
/** Midnight on the same calendar day, so two picks compare equal. */
|
|
3
|
-
export declare function startOfDay(date: Date): Date;
|
|
4
|
-
export declare function sameDay(a: Date | undefined, b: Date | undefined): boolean;
|
|
5
|
-
export interface CalendarCell {
|
|
6
|
-
date: Date;
|
|
7
|
-
/** True for days outside the displayed month, shown to fill the grid. */
|
|
8
|
-
outside: boolean;
|
|
9
|
-
key: string;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* The six-row month grid.
|
|
13
|
-
*
|
|
14
|
-
* Always six rows so the calendar does not change height as months change,
|
|
15
|
-
* which would make the surrounding layout jump between February and March.
|
|
16
|
-
*/
|
|
17
|
-
export declare function monthGrid(year: number, month: number, weekStartsOn?: 0 | 1): CalendarCell[];
|
|
18
|
-
export declare const WEEKDAYS: string[];
|
|
19
|
-
export declare const MONTHS: string[];
|
|
20
|
-
export interface CalendarProps {
|
|
21
|
-
/** Controlled selection. */
|
|
22
|
-
value?: Date;
|
|
23
|
-
/** Fires when a day is tapped. */
|
|
24
|
-
onChange?: (date: Date) => void;
|
|
25
|
-
/** Days before this are dimmed and cannot be picked. */
|
|
26
|
-
minDate?: Date;
|
|
27
|
-
/** Days after this are dimmed and cannot be picked. */
|
|
28
|
-
maxDate?: Date;
|
|
29
|
-
/** Which month to open on when there is no value. */
|
|
30
|
-
initialMonth?: Date;
|
|
31
|
-
/** 0 starts the week on Sunday, 1 on Monday. */
|
|
32
|
-
weekStartsOn?: 0 | 1;
|
|
33
|
-
style?: StyleProp<ViewStyle>;
|
|
34
|
-
isDark?: boolean;
|
|
35
|
-
testID?: string;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* A month calendar, built from Glacia's own views.
|
|
39
|
-
*
|
|
40
|
-
* No native date picker anywhere: the grid, the weekday header and the month
|
|
41
|
-
* navigation are ours, so the calendar looks the same on iOS and Android and
|
|
42
|
-
* wears the library's tokens. The selected day is a `glassActive` fill, today
|
|
43
|
-
* carries a ring, and disabled days are dimmed.
|
|
44
|
-
*/
|
|
45
|
-
export declare const Calendar: import("react").ForwardRefExoticComponent<CalendarProps & import("react").RefAttributes<any>>;
|
|
46
|
-
export interface DatePickerProps {
|
|
47
|
-
/** Controlled visibility. Omit and the picker keeps its own. */
|
|
48
|
-
open?: boolean;
|
|
49
|
-
defaultOpen?: boolean;
|
|
50
|
-
onOpenChange?: (open: boolean) => void;
|
|
51
|
-
/** The committed date. */
|
|
52
|
-
value?: Date;
|
|
53
|
-
/** Fires only when the user confirms, never on a mere browse. */
|
|
54
|
-
onConfirm?: (date: Date) => void;
|
|
55
|
-
onCancel?: () => void;
|
|
56
|
-
title?: string;
|
|
57
|
-
confirmLabel?: string;
|
|
58
|
-
cancelLabel?: string;
|
|
59
|
-
minDate?: Date;
|
|
60
|
-
maxDate?: Date;
|
|
61
|
-
style?: StyleProp<ViewStyle>;
|
|
62
|
-
isDark?: boolean;
|
|
63
|
-
testID?: string;
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* A date picker: the Calendar presented in a Sheet.
|
|
67
|
-
*
|
|
68
|
-
* Browsing months does not commit anything — the pending date is local until
|
|
69
|
-
* the user confirms, so an accidental swipe of the calendar cannot change a
|
|
70
|
-
* saved value.
|
|
71
|
-
*/
|
|
72
|
-
export declare const DatePicker: import("react").ForwardRefExoticComponent<DatePickerProps & import("react").RefAttributes<any>>;
|
|
73
|
-
export interface TimePickerProps {
|
|
74
|
-
open?: boolean;
|
|
75
|
-
defaultOpen?: boolean;
|
|
76
|
-
onOpenChange?: (open: boolean) => void;
|
|
77
|
-
/** The committed time, as "HH:MM" (24-hour). */
|
|
78
|
-
value?: string;
|
|
79
|
-
/** Fires only on confirm. */
|
|
80
|
-
onConfirm?: (time: string) => void;
|
|
81
|
-
onCancel?: () => void;
|
|
82
|
-
/** Show an AM/PM column and present times in 12-hour form. */
|
|
83
|
-
use12Hour?: boolean;
|
|
84
|
-
title?: string;
|
|
85
|
-
confirmLabel?: string;
|
|
86
|
-
cancelLabel?: string;
|
|
87
|
-
minuteStep?: number;
|
|
88
|
-
style?: StyleProp<ViewStyle>;
|
|
89
|
-
isDark?: boolean;
|
|
90
|
-
testID?: string;
|
|
91
|
-
}
|
|
92
|
-
/** Splits "HH:MM" into parts, falling back to a sane default. */
|
|
93
|
-
export declare function parseTime(value: string | undefined): {
|
|
94
|
-
hour: number;
|
|
95
|
-
minute: number;
|
|
96
|
-
};
|
|
97
|
-
/** Formats parts back to zero-padded "HH:MM". */
|
|
98
|
-
export declare function formatTime(hour: number, minute: number): string;
|
|
99
|
-
/**
|
|
100
|
-
* A time picker: tappable hour/minute drums inside a Sheet.
|
|
101
|
-
*
|
|
102
|
-
* The drums are ordinary Pressables drawn by Glacia — not a native picker
|
|
103
|
-
* widget. Tapping a value selects it; the whole column scrolls in the Sheet.
|
|
104
|
-
*/
|
|
105
|
-
export declare const TimePicker: import("react").ForwardRefExoticComponent<TimePickerProps & import("react").RefAttributes<any>>;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from "react";
|
|
2
|
-
import type { StyleProp, ViewStyle } from "react-native";
|
|
3
|
-
export interface NativeTableColumn {
|
|
4
|
-
key: string;
|
|
5
|
-
header: string;
|
|
6
|
-
/** Relative width. Columns without one share the remainder. */
|
|
7
|
-
width?: number;
|
|
8
|
-
/** Right-align numeric columns so digits line up. */
|
|
9
|
-
align?: "left" | "right" | "center";
|
|
10
|
-
/** Renders the cell as a caption under the row on a narrow screen. */
|
|
11
|
-
primary?: boolean;
|
|
12
|
-
}
|
|
13
|
-
export interface NativeTableRow {
|
|
14
|
-
id: string;
|
|
15
|
-
cells: Record<string, ReactNode>;
|
|
16
|
-
/**
|
|
17
|
-
* What screen readers announce when the row is pressable. Use it when the
|
|
18
|
-
* cells hold elements rather than text; without it the primary cell is used
|
|
19
|
-
* only if it is a string or number.
|
|
20
|
-
*/
|
|
21
|
-
accessibilityLabel?: string;
|
|
22
|
-
}
|
|
23
|
-
export interface NativeTableProps {
|
|
24
|
-
columns: NativeTableColumn[];
|
|
25
|
-
rows: NativeTableRow[];
|
|
26
|
-
/** Tap handler for a whole row. */
|
|
27
|
-
onRowPress?: (row: NativeTableRow) => void;
|
|
28
|
-
/** A caption describing the table's contents, shown above it. */
|
|
29
|
-
caption?: string;
|
|
30
|
-
isDark?: boolean;
|
|
31
|
-
style?: StyleProp<ViewStyle>;
|
|
32
|
-
emptyMessage?: string;
|
|
33
|
-
/** Passed through to the table root so it is testable. */
|
|
34
|
-
testID?: string;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Tabular data laid out for a phone.
|
|
38
|
-
*
|
|
39
|
-
* A wide table cannot simply shrink: at phone width the columns become
|
|
40
|
-
* unreadable. Instead the first column is promoted to a row title and the rest
|
|
41
|
-
* are laid out as labelled pairs beneath it, which keeps every value readable
|
|
42
|
-
* without horizontal scrolling.
|
|
43
|
-
*/
|
|
44
|
-
export declare function NativeTable({ columns, rows, onRowPress, caption, isDark: isDarkProp, style, emptyMessage, testID, }: NativeTableProps): import("react").JSX.Element;
|
|
45
|
-
export interface NativeScrollAreaProps {
|
|
46
|
-
children?: ReactNode;
|
|
47
|
-
/** Fixed height. Without one the area grows with its content. */
|
|
48
|
-
maxHeight?: number;
|
|
49
|
-
/** Adds a bordered, tinted frame around the content. */
|
|
50
|
-
bordered?: boolean;
|
|
51
|
-
horizontal?: boolean;
|
|
52
|
-
isDark?: boolean;
|
|
53
|
-
style?: StyleProp<ViewStyle>;
|
|
54
|
-
/** Announced to screen readers. */
|
|
55
|
-
accessibilityLabel?: string;
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* A bounded scroll region.
|
|
59
|
-
*
|
|
60
|
-
* Uses the platform ScrollView rather than drawing a custom scrollbar: the OS
|
|
61
|
-
* scroll indicator is the one users already recognise, and it stays correct
|
|
62
|
-
* under momentum, bouncing and accessibility settings.
|
|
63
|
-
*/
|
|
64
|
-
export declare function NativeScrollArea({ children, maxHeight, bordered, horizontal, isDark: isDarkProp, style, accessibilityLabel, }: NativeScrollAreaProps): import("react").JSX.Element;
|
package/lib/typescript/ai.d.ts
DELETED
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from "react";
|
|
2
|
-
export interface NativePlanStep {
|
|
3
|
-
id: string;
|
|
4
|
-
title: string;
|
|
5
|
-
detail?: string;
|
|
6
|
-
status: "pending" | "running" | "done" | "failed";
|
|
7
|
-
}
|
|
8
|
-
export interface NativePlanProps {
|
|
9
|
-
title?: string;
|
|
10
|
-
steps: NativePlanStep[];
|
|
11
|
-
isDark?: boolean;
|
|
12
|
-
style?: any;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* The ordered steps a model intends to take.
|
|
16
|
-
*
|
|
17
|
-
* Each step carries its own status, so a half-finished plan is legible instead
|
|
18
|
-
* of appearing blank until the whole thing completes.
|
|
19
|
-
*/
|
|
20
|
-
export declare function NativePlan({ title, steps, isDark: isDarkProp, style }: NativePlanProps): import("react").JSX.Element;
|
|
21
|
-
export interface NativeSource {
|
|
22
|
-
id: string;
|
|
23
|
-
title: string;
|
|
24
|
-
url: string;
|
|
25
|
-
snippet?: string;
|
|
26
|
-
domain?: string;
|
|
27
|
-
}
|
|
28
|
-
export interface NativeSourcesProps {
|
|
29
|
-
sources: NativeSource[];
|
|
30
|
-
title?: string;
|
|
31
|
-
isDark?: boolean;
|
|
32
|
-
style?: any;
|
|
33
|
-
onSourcePress?: (source: NativeSource) => void;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Citations behind an answer, so a claim can be traced to its origin.
|
|
37
|
-
*
|
|
38
|
-
* Native has no anchor element, so a row hands the source to the caller's
|
|
39
|
-
* `onSourcePress` instead of opening a browser the component cannot control.
|
|
40
|
-
*/
|
|
41
|
-
export declare function NativeSources({ sources, title, isDark: isDarkProp, style, onSourcePress, }: NativeSourcesProps): import("react").JSX.Element | null;
|
|
42
|
-
export interface NativeResponseProps {
|
|
43
|
-
text: string;
|
|
44
|
-
/** Characters to reveal. Omit to show the whole string. */
|
|
45
|
-
revealed?: number;
|
|
46
|
-
streaming?: boolean;
|
|
47
|
-
isDark?: boolean;
|
|
48
|
-
style?: any;
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Text revealed progressively as a streamed answer arrives.
|
|
52
|
-
*
|
|
53
|
-
* The caller owns the streaming clock (usually a network stream); this only
|
|
54
|
-
* renders the first `revealed` characters and shows a caret while incomplete.
|
|
55
|
-
*/
|
|
56
|
-
export declare function NativeResponse({ text, revealed, streaming, isDark: isDarkProp, style, }: NativeResponseProps): import("react").JSX.Element;
|
|
57
|
-
export interface NativeTaskProps {
|
|
58
|
-
task: {
|
|
59
|
-
/** 0–1, or omit for an indeterminate task. */
|
|
60
|
-
progress?: number;
|
|
61
|
-
label?: string;
|
|
62
|
-
detail?: string;
|
|
63
|
-
status?: "running" | "done" | "failed" | "queued";
|
|
64
|
-
};
|
|
65
|
-
isDark?: boolean;
|
|
66
|
-
style?: any;
|
|
67
|
-
}
|
|
68
|
-
/** Progress of a long-running background task. */
|
|
69
|
-
export declare function NativeTask({ task, isDark: isDarkProp, style }: NativeTaskProps): import("react").JSX.Element;
|
|
70
|
-
export interface NativeSoundwaveProps {
|
|
71
|
-
levels?: number[];
|
|
72
|
-
bars?: number;
|
|
73
|
-
active?: boolean;
|
|
74
|
-
height?: number;
|
|
75
|
-
color?: string;
|
|
76
|
-
isDark?: boolean;
|
|
77
|
-
style?: any;
|
|
78
|
-
label?: string;
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* A waveform driven by real amplitude.
|
|
82
|
-
*
|
|
83
|
-
* Bars follow `levels` when supplied, so it can show live microphone input.
|
|
84
|
-
* Without levels it rests at a low, static profile instead of animating:
|
|
85
|
-
* continuous motion with no audio behind it would be decorative noise.
|
|
86
|
-
*/
|
|
87
|
-
export declare function NativeSoundwave({ levels, bars, active, height, color, isDark: isDarkProp, style, label, }: NativeSoundwaveProps): import("react").JSX.Element;
|
|
88
|
-
export interface NativeThinkingOrbProps {
|
|
89
|
-
label?: string;
|
|
90
|
-
size?: number;
|
|
91
|
-
paused?: boolean;
|
|
92
|
-
isDark?: boolean;
|
|
93
|
-
style?: any;
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* A pulsing indicator shown while a model is working.
|
|
97
|
-
*
|
|
98
|
-
* Purely decorative, so it is hidden from screen readers and the label is
|
|
99
|
-
* exposed as text instead of relying on the motion being perceived.
|
|
100
|
-
*/
|
|
101
|
-
export declare function NativeThinkingOrb({ label, size, paused, isDark: isDarkProp, style, }: NativeThinkingOrbProps): import("react").JSX.Element;
|
|
102
|
-
export interface NativePanelNavItem {
|
|
103
|
-
id: string;
|
|
104
|
-
label: string;
|
|
105
|
-
count?: number;
|
|
106
|
-
}
|
|
107
|
-
export interface NativePanelsideProps {
|
|
108
|
-
items: NativePanelNavItem[];
|
|
109
|
-
value?: string;
|
|
110
|
-
onValueChange?: (id: string) => void;
|
|
111
|
-
isDark?: boolean;
|
|
112
|
-
style?: any;
|
|
113
|
-
title?: string;
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* A rail for an AI workspace: conversations, saved prompts or tasks.
|
|
117
|
-
*
|
|
118
|
-
* Selection is a press rather than navigation because the panel's content is
|
|
119
|
-
* client state; the caller decides what a selection means.
|
|
120
|
-
*/
|
|
121
|
-
export declare function NativePanelside({ items, value, onValueChange, isDark: isDarkProp, style, title, }: NativePanelsideProps): import("react").JSX.Element;
|
|
122
|
-
export interface NativeAIInputProps {
|
|
123
|
-
/** Controlled text. Omit it and the composer keeps its own. */
|
|
124
|
-
value?: string;
|
|
125
|
-
/** Starting text for uncontrolled use. */
|
|
126
|
-
defaultValue?: string;
|
|
127
|
-
onChangeText?: (text: string) => void;
|
|
128
|
-
onSubmit?: () => void;
|
|
129
|
-
placeholder?: string;
|
|
130
|
-
disabled?: boolean;
|
|
131
|
-
/** Shown as a spinner-free label while a response is pending. */
|
|
132
|
-
busy?: boolean;
|
|
133
|
-
sendLabel?: string;
|
|
134
|
-
isDark?: boolean;
|
|
135
|
-
style?: any;
|
|
136
|
-
footer?: ReactNode;
|
|
137
|
-
}
|
|
138
|
-
/**
|
|
139
|
-
* The composer for an AI conversation.
|
|
140
|
-
*
|
|
141
|
-
* Send stays disabled until there is non-whitespace to send, which is the rule
|
|
142
|
-
* that prevents empty submissions rather than a validation message afterwards.
|
|
143
|
-
*/
|
|
144
|
-
export declare function NativeAIInput({ value: valueProp, defaultValue, onChangeText, onSubmit, placeholder, disabled, busy, sendLabel, isDark: isDarkProp, style, footer, }: NativeAIInputProps): import("react").JSX.Element;
|
|
145
|
-
export interface NativeGeneratedImage {
|
|
146
|
-
url: string;
|
|
147
|
-
alt: string;
|
|
148
|
-
width?: number;
|
|
149
|
-
height?: number;
|
|
150
|
-
/** Shown under the image while generation is still running. */
|
|
151
|
-
progress?: number;
|
|
152
|
-
}
|
|
153
|
-
export interface NativeImageGenerationProps {
|
|
154
|
-
image?: NativeGeneratedImage;
|
|
155
|
-
prompt?: string;
|
|
156
|
-
status?: "queued" | "generating" | "done" | "failed";
|
|
157
|
-
isDark?: boolean;
|
|
158
|
-
style?: any;
|
|
159
|
-
}
|
|
160
|
-
/**
|
|
161
|
-
* A generated image with its prompt and state.
|
|
162
|
-
*
|
|
163
|
-
* While generating, a placeholder with the same aspect ratio holds the space so
|
|
164
|
-
* the layout does not jump when the image arrives.
|
|
165
|
-
*/
|
|
166
|
-
export declare function NativeImageGeneration({ image, prompt, status, isDark: isDarkProp, style, }: NativeImageGenerationProps): import("react").JSX.Element;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { type NativeLineSeries } from "./LineChart";
|
|
2
|
-
export interface NativeAreaChartProps {
|
|
3
|
-
labels: string[];
|
|
4
|
-
series: NativeLineSeries[];
|
|
5
|
-
width?: number;
|
|
6
|
-
height?: number;
|
|
7
|
-
smooth?: boolean;
|
|
8
|
-
isDark?: boolean;
|
|
9
|
-
palette?: readonly string[];
|
|
10
|
-
style?: any;
|
|
11
|
-
onPointPress?: (index: number) => void;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* A continuous series with its area filled.
|
|
15
|
-
*
|
|
16
|
-
* This is NativeLineChart drawing filled: the same scales, axis ticks and
|
|
17
|
-
* touch targets, so the two stay consistent when used side by side.
|
|
18
|
-
*/
|
|
19
|
-
export declare function NativeAreaChart(props: NativeAreaChartProps): import("react").JSX.Element;
|
|
20
|
-
export interface NativeMirrorAreaSeries {
|
|
21
|
-
name: string;
|
|
22
|
-
/** Positive values drawn upward. */
|
|
23
|
-
above: number[];
|
|
24
|
-
/** Positive values drawn downward. */
|
|
25
|
-
below: number[];
|
|
26
|
-
}
|
|
27
|
-
export interface NativeMirrorAreaChartProps {
|
|
28
|
-
labels: string[];
|
|
29
|
-
series: NativeMirrorAreaSeries;
|
|
30
|
-
width?: number;
|
|
31
|
-
height?: number;
|
|
32
|
-
aboveColor?: string;
|
|
33
|
-
belowColor?: string;
|
|
34
|
-
isDark?: boolean;
|
|
35
|
-
style?: any;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Two series mirrored across a shared centre line.
|
|
39
|
-
*
|
|
40
|
-
* The below series is negated and drawn on the same axis as the above series,
|
|
41
|
-
* so both directions are measured against one honest scale rather than two
|
|
42
|
-
* charts that could be scaled differently.
|
|
43
|
-
*/
|
|
44
|
-
export declare function NativeMirrorAreaChart({ labels, series, aboveColor, belowColor, ...rest }: NativeMirrorAreaChartProps): import("react").JSX.Element;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export interface NativeBarSeries {
|
|
2
|
-
name: string;
|
|
3
|
-
values: number[];
|
|
4
|
-
color?: string;
|
|
5
|
-
}
|
|
6
|
-
export interface NativeBarChartProps {
|
|
7
|
-
labels: string[];
|
|
8
|
-
series: NativeBarSeries[];
|
|
9
|
-
width?: number;
|
|
10
|
-
height?: number;
|
|
11
|
-
stacked?: boolean;
|
|
12
|
-
radius?: number;
|
|
13
|
-
isDark?: boolean;
|
|
14
|
-
palette?: readonly string[];
|
|
15
|
-
style?: any;
|
|
16
|
-
onBarPress?: (index: number) => void;
|
|
17
|
-
}
|
|
18
|
-
/** Grouped or stacked bars, drawn with react-native-svg. */
|
|
19
|
-
export declare function NativeBarChart({ labels, series, width, height, stacked, radius, isDark: isDarkProp, palette, style, onBarPress, }: NativeBarChartProps): import("react").JSX.Element;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export interface NativeFunnelStage {
|
|
2
|
-
label: string;
|
|
3
|
-
value: number;
|
|
4
|
-
color?: string;
|
|
5
|
-
}
|
|
6
|
-
export interface NativeFunnelChartProps {
|
|
7
|
-
stages: NativeFunnelStage[];
|
|
8
|
-
width?: number;
|
|
9
|
-
stageHeight?: number;
|
|
10
|
-
/** Value the first stage is measured against. Defaults to its own value. */
|
|
11
|
-
baseline?: number;
|
|
12
|
-
isDark?: boolean;
|
|
13
|
-
palette?: readonly string[];
|
|
14
|
-
style?: any;
|
|
15
|
-
onStagePress?: (index: number) => void;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* A sequence of stages where each narrows the one before it.
|
|
19
|
-
*
|
|
20
|
-
* Built from plain Views rather than SVG: a funnel is a set of proportional
|
|
21
|
-
* rectangles, so vector drawing would add a dependency for nothing. Each row
|
|
22
|
-
* shows its own value, its share of entry, and the step conversion — the three
|
|
23
|
-
* numbers a funnel is actually read for.
|
|
24
|
-
*/
|
|
25
|
-
export declare function NativeFunnelChart({ stages, width, stageHeight, baseline, isDark: isDarkProp, palette, style, onStagePress, }: NativeFunnelChartProps): import("react").JSX.Element;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export interface NativeHeatmapChartProps {
|
|
2
|
-
/** One row per series, each holding one value per column. */
|
|
3
|
-
rows: {
|
|
4
|
-
label: string;
|
|
5
|
-
values: number[];
|
|
6
|
-
}[];
|
|
7
|
-
columns: string[];
|
|
8
|
-
cellSize?: number;
|
|
9
|
-
cellGap?: number;
|
|
10
|
-
isDark?: boolean;
|
|
11
|
-
/** Colour for the lowest and highest values. Defaults to a blue ramp. */
|
|
12
|
-
minColor?: string;
|
|
13
|
-
maxColor?: string;
|
|
14
|
-
style?: any;
|
|
15
|
-
onCellPress?: (rowIndex: number, columnIndex: number) => void;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* A grid where colour encodes magnitude.
|
|
19
|
-
*
|
|
20
|
-
* Cells are Views rather than SVG rects: the grid is uniform, so native layout
|
|
21
|
-
* positions it exactly and text stays crisp without vector text.
|
|
22
|
-
*/
|
|
23
|
-
export declare function NativeHeatmapChart({ rows, columns, cellSize, cellGap, isDark: isDarkProp, minColor, maxColor, style, onCellPress, }: NativeHeatmapChartProps): import("react").JSX.Element;
|