@xleddyl/443-components-native 0.0.0-stage → 0.0.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/README.md +454 -2
- package/assets/fonts/funnel-display/FunnelDisplay-Bold.ttf +0 -0
- package/assets/fonts/funnel-display/OFL.txt +93 -0
- package/assets/fonts/funnel-sans/FunnelSans-Bold.ttf +0 -0
- package/assets/fonts/funnel-sans/FunnelSans-Medium.ttf +0 -0
- package/assets/fonts/funnel-sans/FunnelSans-Regular.ttf +0 -0
- package/assets/fonts/funnel-sans/FunnelSans-SemiBold.ttf +0 -0
- package/assets/fonts/funnel-sans/OFL.txt +93 -0
- package/assets/fonts/index.d.ts +16 -0
- package/assets/fonts/index.js +18 -0
- package/assets/fonts/unbounded/OFL.txt +93 -0
- package/assets/fonts/unbounded/Unbounded-SemiBold.ttf +0 -0
- package/lib/module/components/core/Button.js +124 -0
- package/lib/module/components/core/Button.js.map +1 -0
- package/lib/module/components/core/DefaultIcon.js +541 -0
- package/lib/module/components/core/DefaultIcon.js.map +1 -0
- package/lib/module/components/core/FieldLabel.js +52 -0
- package/lib/module/components/core/FieldLabel.js.map +1 -0
- package/lib/module/components/core/Icon.js +67 -0
- package/lib/module/components/core/Icon.js.map +1 -0
- package/lib/module/components/core/IconButton.js +63 -0
- package/lib/module/components/core/IconButton.js.map +1 -0
- package/lib/module/components/core/Screen.js +140 -0
- package/lib/module/components/core/Screen.js.map +1 -0
- package/lib/module/components/core/Spinner.js +60 -0
- package/lib/module/components/core/Spinner.js.map +1 -0
- package/lib/module/components/core/Stack.js +60 -0
- package/lib/module/components/core/Stack.js.map +1 -0
- package/lib/module/components/core/Text.js +69 -0
- package/lib/module/components/core/Text.js.map +1 -0
- package/lib/module/components/core/TextField.js +191 -0
- package/lib/module/components/core/TextField.js.map +1 -0
- package/lib/module/components/core/Touchable.js +51 -0
- package/lib/module/components/core/Touchable.js.map +1 -0
- package/lib/module/components/core/buttonColors.js +33 -0
- package/lib/module/components/core/buttonColors.js.map +1 -0
- package/lib/module/components/core/field.js +41 -0
- package/lib/module/components/core/field.js.map +1 -0
- package/lib/module/components/core/index.js +14 -0
- package/lib/module/components/core/index.js.map +1 -0
- package/lib/module/components/display/Avatar.js +78 -0
- package/lib/module/components/display/Avatar.js.map +1 -0
- package/lib/module/components/display/AvatarGroup.js +55 -0
- package/lib/module/components/display/AvatarGroup.js.map +1 -0
- package/lib/module/components/display/Badge.js +77 -0
- package/lib/module/components/display/Badge.js.map +1 -0
- package/lib/module/components/display/Banner.js +91 -0
- package/lib/module/components/display/Banner.js.map +1 -0
- package/lib/module/components/display/Card.js +84 -0
- package/lib/module/components/display/Card.js.map +1 -0
- package/lib/module/components/display/Chip.js +122 -0
- package/lib/module/components/display/Chip.js.map +1 -0
- package/lib/module/components/display/DescriptionList.js +40 -0
- package/lib/module/components/display/DescriptionList.js.map +1 -0
- package/lib/module/components/display/Divider.js +65 -0
- package/lib/module/components/display/Divider.js.map +1 -0
- package/lib/module/components/display/EmptyState.js +69 -0
- package/lib/module/components/display/EmptyState.js.map +1 -0
- package/lib/module/components/display/KeyValue.js +53 -0
- package/lib/module/components/display/KeyValue.js.map +1 -0
- package/lib/module/components/display/List.js +156 -0
- package/lib/module/components/display/List.js.map +1 -0
- package/lib/module/components/display/ListItem.js +106 -0
- package/lib/module/components/display/ListItem.js.map +1 -0
- package/lib/module/components/display/ProgressBar.js +121 -0
- package/lib/module/components/display/ProgressBar.js.map +1 -0
- package/lib/module/components/display/ProgressRing.js +104 -0
- package/lib/module/components/display/ProgressRing.js.map +1 -0
- package/lib/module/components/display/Skeleton.js +146 -0
- package/lib/module/components/display/Skeleton.js.map +1 -0
- package/lib/module/components/display/Stat.js +112 -0
- package/lib/module/components/display/Stat.js.map +1 -0
- package/lib/module/components/display/Tag.js +14 -0
- package/lib/module/components/display/Tag.js.map +1 -0
- package/lib/module/components/display/index.js +20 -0
- package/lib/module/components/display/index.js.map +1 -0
- package/lib/module/components/forms/Calendar.js +162 -0
- package/lib/module/components/forms/Calendar.js.map +1 -0
- package/lib/module/components/forms/Checkbox.js +131 -0
- package/lib/module/components/forms/Checkbox.js.map +1 -0
- package/lib/module/components/forms/CheckboxGroup.js +59 -0
- package/lib/module/components/forms/CheckboxGroup.js.map +1 -0
- package/lib/module/components/forms/ChipInput.js +167 -0
- package/lib/module/components/forms/ChipInput.js.map +1 -0
- package/lib/module/components/forms/ControlLabel.js +37 -0
- package/lib/module/components/forms/ControlLabel.js.map +1 -0
- package/lib/module/components/forms/DateField.js +138 -0
- package/lib/module/components/forms/DateField.js.map +1 -0
- package/lib/module/components/forms/Field.js +61 -0
- package/lib/module/components/forms/Field.js.map +1 -0
- package/lib/module/components/forms/MonthPicker.js +124 -0
- package/lib/module/components/forms/MonthPicker.js.map +1 -0
- package/lib/module/components/forms/PeriodHeader.js +53 -0
- package/lib/module/components/forms/PeriodHeader.js.map +1 -0
- package/lib/module/components/forms/PinInput.js +167 -0
- package/lib/module/components/forms/PinInput.js.map +1 -0
- package/lib/module/components/forms/PinPad.js +147 -0
- package/lib/module/components/forms/PinPad.js.map +1 -0
- package/lib/module/components/forms/Radio.js +95 -0
- package/lib/module/components/forms/Radio.js.map +1 -0
- package/lib/module/components/forms/RadioGroup.js +59 -0
- package/lib/module/components/forms/RadioGroup.js.map +1 -0
- package/lib/module/components/forms/SegmentedControl.js +124 -0
- package/lib/module/components/forms/SegmentedControl.js.map +1 -0
- package/lib/module/components/forms/Slider.js +188 -0
- package/lib/module/components/forms/Slider.js.map +1 -0
- package/lib/module/components/forms/Stepper.js +103 -0
- package/lib/module/components/forms/Stepper.js.map +1 -0
- package/lib/module/components/forms/Switch.js +117 -0
- package/lib/module/components/forms/Switch.js.map +1 -0
- package/lib/module/components/forms/checkboxGroupContext.js +6 -0
- package/lib/module/components/forms/checkboxGroupContext.js.map +1 -0
- package/lib/module/components/forms/dateUtils.js +37 -0
- package/lib/module/components/forms/dateUtils.js.map +1 -0
- package/lib/module/components/forms/fieldContext.js +24 -0
- package/lib/module/components/forms/fieldContext.js.map +1 -0
- package/lib/module/components/forms/groupLayout.js +8 -0
- package/lib/module/components/forms/groupLayout.js.map +1 -0
- package/lib/module/components/forms/index.js +19 -0
- package/lib/module/components/forms/index.js.map +1 -0
- package/lib/module/components/forms/radioGroupContext.js +6 -0
- package/lib/module/components/forms/radioGroupContext.js.map +1 -0
- package/lib/module/components/navigation/BackButton.js +70 -0
- package/lib/module/components/navigation/BackButton.js.map +1 -0
- package/lib/module/components/navigation/Header.js +216 -0
- package/lib/module/components/navigation/Header.js.map +1 -0
- package/lib/module/components/navigation/TabBar.js +165 -0
- package/lib/module/components/navigation/TabBar.js.map +1 -0
- package/lib/module/components/navigation/TabBarItem.js +96 -0
- package/lib/module/components/navigation/TabBarItem.js.map +1 -0
- package/lib/module/components/navigation/Tabs.js +276 -0
- package/lib/module/components/navigation/Tabs.js.map +1 -0
- package/lib/module/components/navigation/index.js +9 -0
- package/lib/module/components/navigation/index.js.map +1 -0
- package/lib/module/components/navigation/tabBarStore.js +11 -0
- package/lib/module/components/navigation/tabBarStore.js.map +1 -0
- package/lib/module/components/navigation/tabBarUtils.js +19 -0
- package/lib/module/components/navigation/tabBarUtils.js.map +1 -0
- package/lib/module/components/navigation/useScrollOffset.js +14 -0
- package/lib/module/components/navigation/useScrollOffset.js.map +1 -0
- package/lib/module/components/overlays/ActionSheet.js +134 -0
- package/lib/module/components/overlays/ActionSheet.js.map +1 -0
- package/lib/module/components/overlays/ActionSheetHost.js +41 -0
- package/lib/module/components/overlays/ActionSheetHost.js.map +1 -0
- package/lib/module/components/overlays/Backdrop.js +53 -0
- package/lib/module/components/overlays/Backdrop.js.map +1 -0
- package/lib/module/components/overlays/Dialog.js +140 -0
- package/lib/module/components/overlays/Dialog.js.map +1 -0
- package/lib/module/components/overlays/DialogHost.js +116 -0
- package/lib/module/components/overlays/DialogHost.js.map +1 -0
- package/lib/module/components/overlays/LoadingHost.js +13 -0
- package/lib/module/components/overlays/LoadingHost.js.map +1 -0
- package/lib/module/components/overlays/LoadingOverlay.js +74 -0
- package/lib/module/components/overlays/LoadingOverlay.js.map +1 -0
- package/lib/module/components/overlays/Menu.js +40 -0
- package/lib/module/components/overlays/Menu.js.map +1 -0
- package/lib/module/components/overlays/MenuItem.js +89 -0
- package/lib/module/components/overlays/MenuItem.js.map +1 -0
- package/lib/module/components/overlays/Overlay.js +160 -0
- package/lib/module/components/overlays/Overlay.js.map +1 -0
- package/lib/module/components/overlays/OverlayHeader.js +55 -0
- package/lib/module/components/overlays/OverlayHeader.js.map +1 -0
- package/lib/module/components/overlays/OverlayHost.js +69 -0
- package/lib/module/components/overlays/OverlayHost.js.map +1 -0
- package/lib/module/components/overlays/Popover.js +149 -0
- package/lib/module/components/overlays/Popover.js.map +1 -0
- package/lib/module/components/overlays/Portal.js +101 -0
- package/lib/module/components/overlays/Portal.js.map +1 -0
- package/lib/module/components/overlays/Select.js +241 -0
- package/lib/module/components/overlays/Select.js.map +1 -0
- package/lib/module/components/overlays/SelectOptionRow.js +91 -0
- package/lib/module/components/overlays/SelectOptionRow.js.map +1 -0
- package/lib/module/components/overlays/Sheet.js +371 -0
- package/lib/module/components/overlays/Sheet.js.map +1 -0
- package/lib/module/components/overlays/Toast.js +311 -0
- package/lib/module/components/overlays/Toast.js.map +1 -0
- package/lib/module/components/overlays/ToastHost.js +94 -0
- package/lib/module/components/overlays/ToastHost.js.map +1 -0
- package/lib/module/components/overlays/UiProvider.js +68 -0
- package/lib/module/components/overlays/UiProvider.js.map +1 -0
- package/lib/module/components/overlays/actionColor.js +5 -0
- package/lib/module/components/overlays/actionColor.js.map +1 -0
- package/lib/module/components/overlays/actionSheetStore.js +21 -0
- package/lib/module/components/overlays/actionSheetStore.js.map +1 -0
- package/lib/module/components/overlays/anchorPosition.js +42 -0
- package/lib/module/components/overlays/anchorPosition.js.map +1 -0
- package/lib/module/components/overlays/dialogStore.js +27 -0
- package/lib/module/components/overlays/dialogStore.js.map +1 -0
- package/lib/module/components/overlays/index.js +24 -0
- package/lib/module/components/overlays/index.js.map +1 -0
- package/lib/module/components/overlays/loadingStore.js +61 -0
- package/lib/module/components/overlays/loadingStore.js.map +1 -0
- package/lib/module/components/overlays/overlayA11y.js +203 -0
- package/lib/module/components/overlays/overlayA11y.js.map +1 -0
- package/lib/module/components/overlays/overlayStore.js +48 -0
- package/lib/module/components/overlays/overlayStore.js.map +1 -0
- package/lib/module/components/overlays/portalStore.js +25 -0
- package/lib/module/components/overlays/portalStore.js.map +1 -0
- package/lib/module/components/overlays/sheetRegistry.js +15 -0
- package/lib/module/components/overlays/sheetRegistry.js.map +1 -0
- package/lib/module/components/overlays/sheetSnaps.js +27 -0
- package/lib/module/components/overlays/sheetSnaps.js.map +1 -0
- package/lib/module/components/overlays/toastStore.js +120 -0
- package/lib/module/components/overlays/toastStore.js.map +1 -0
- package/lib/module/components/overlays/useKeyboardOffset.js +29 -0
- package/lib/module/components/overlays/useKeyboardOffset.js.map +1 -0
- package/lib/module/hooks/index.js +7 -0
- package/lib/module/hooks/index.js.map +1 -0
- package/lib/module/hooks/useControllableState.js +25 -0
- package/lib/module/hooks/useControllableState.js.map +1 -0
- package/lib/module/hooks/useLoop.js +31 -0
- package/lib/module/hooks/useLoop.js.map +1 -0
- package/lib/module/hooks/usePressFeedback.js +46 -0
- package/lib/module/hooks/usePressFeedback.js.map +1 -0
- package/lib/module/hooks/useSafeSpacing.js +13 -0
- package/lib/module/hooks/useSafeSpacing.js.map +1 -0
- package/lib/module/hooks/useSlidingIndicator.js +61 -0
- package/lib/module/hooks/useSlidingIndicator.js.map +1 -0
- package/lib/module/hooks/useToggleProgress.js +28 -0
- package/lib/module/hooks/useToggleProgress.js.map +1 -0
- package/lib/module/hooks/useWebThemeName.js +8 -0
- package/lib/module/hooks/useWebThemeName.js.map +1 -0
- package/lib/module/icons/SvgIcon.js +24 -0
- package/lib/module/icons/SvgIcon.js.map +1 -0
- package/lib/module/icons/createSvgIconRenderer.js +33 -0
- package/lib/module/icons/createSvgIconRenderer.js.map +1 -0
- package/lib/module/icons/heroicons.js +70 -0
- package/lib/module/icons/heroicons.js.map +1 -0
- package/lib/module/icons/index.js +6 -0
- package/lib/module/icons/index.js.map +1 -0
- package/lib/module/index.js +11 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/native/GlassGroup.js +33 -0
- package/lib/module/native/GlassGroup.js.map +1 -0
- package/lib/module/native/GlassSurface.js +64 -0
- package/lib/module/native/GlassSurface.js.map +1 -0
- package/lib/module/native/NativeBottomSheet.js +103 -0
- package/lib/module/native/NativeBottomSheet.js.map +1 -0
- package/lib/module/native/NativeButton.js +49 -0
- package/lib/module/native/NativeButton.js.map +1 -0
- package/lib/module/native/NativeContextMenu.js +99 -0
- package/lib/module/native/NativeContextMenu.js.map +1 -0
- package/lib/module/native/NativeDatePicker.js +184 -0
- package/lib/module/native/NativeDatePicker.js.map +1 -0
- package/lib/module/native/NativeForm.js +90 -0
- package/lib/module/native/NativeForm.js.map +1 -0
- package/lib/module/native/NativePicker.js +180 -0
- package/lib/module/native/NativePicker.js.map +1 -0
- package/lib/module/native/NativeProgress.android.js +45 -0
- package/lib/module/native/NativeProgress.android.js.map +1 -0
- package/lib/module/native/NativeProgress.ios.js +41 -0
- package/lib/module/native/NativeProgress.ios.js.map +1 -0
- package/lib/module/native/NativeProgress.js +8 -0
- package/lib/module/native/NativeProgress.js.map +1 -0
- package/lib/module/native/NativeProgress.types.js +4 -0
- package/lib/module/native/NativeProgress.types.js.map +1 -0
- package/lib/module/native/NativeSlider.js +98 -0
- package/lib/module/native/NativeSlider.js.map +1 -0
- package/lib/module/native/NativeSwitch.js +53 -0
- package/lib/module/native/NativeSwitch.js.map +1 -0
- package/lib/module/native/NativeTextField.js +124 -0
- package/lib/module/native/NativeTextField.js.map +1 -0
- package/lib/module/native/fallbacks/FallbackDatePicker.js +126 -0
- package/lib/module/native/fallbacks/FallbackDatePicker.js.map +1 -0
- package/lib/module/native/fallbacks/FallbackForm.js +85 -0
- package/lib/module/native/fallbacks/FallbackForm.js.map +1 -0
- package/lib/module/native/fallbacks/dateFormat.js +63 -0
- package/lib/module/native/fallbacks/dateFormat.js.map +1 -0
- package/lib/module/native/fromMaterialColors.js +42 -0
- package/lib/module/native/fromMaterialColors.js.map +1 -0
- package/lib/module/native/index.js +19 -0
- package/lib/module/native/index.js.map +1 -0
- package/lib/module/native/internal/BaseProgress.js +35 -0
- package/lib/module/native/internal/BaseProgress.js.map +1 -0
- package/lib/module/native/internal/ControlHost.js +62 -0
- package/lib/module/native/internal/ControlHost.js.map +1 -0
- package/lib/module/native/internal/IosDatePicker.ios.js +50 -0
- package/lib/module/native/internal/IosDatePicker.ios.js.map +1 -0
- package/lib/module/native/internal/IosDatePicker.js +4 -0
- package/lib/module/native/internal/IosDatePicker.js.map +1 -0
- package/lib/module/native/internal/IosDatePicker.types.js +4 -0
- package/lib/module/native/internal/IosDatePicker.types.js.map +1 -0
- package/lib/module/native/internal/LabeledControl.js +42 -0
- package/lib/module/native/internal/LabeledControl.js.map +1 -0
- package/lib/module/native/internal/NativeHostContext.js +6 -0
- package/lib/module/native/internal/NativeHostContext.js.map +1 -0
- package/lib/module/native/internal/availability.js +12 -0
- package/lib/module/native/internal/availability.js.map +1 -0
- package/lib/module/native/internal/hostTheme.js +6 -0
- package/lib/module/native/internal/hostTheme.js.map +1 -0
- package/lib/module/native/internal/platformModifiers.android.js +8 -0
- package/lib/module/native/internal/platformModifiers.android.js.map +1 -0
- package/lib/module/native/internal/platformModifiers.ios.js +6 -0
- package/lib/module/native/internal/platformModifiers.ios.js.map +1 -0
- package/lib/module/native/internal/platformModifiers.js +5 -0
- package/lib/module/native/internal/platformModifiers.js.map +1 -0
- package/lib/module/native/internal/platformModifiers.types.js +4 -0
- package/lib/module/native/internal/platformModifiers.types.js.map +1 -0
- package/lib/module/native/internal/withNativeFallback.js +13 -0
- package/lib/module/native/internal/withNativeFallback.js.map +1 -0
- package/lib/module/native/materialColors.types.js +4 -0
- package/lib/module/native/materialColors.types.js.map +1 -0
- package/lib/module/native/menuTypes.js +2 -0
- package/lib/module/native/menuTypes.js.map +1 -0
- package/lib/module/native/tabs/index.js +5 -0
- package/lib/module/native/tabs/index.js.map +1 -0
- package/lib/module/native/tabs/useNativeTabsTheme.js +41 -0
- package/lib/module/native/tabs/useNativeTabsTheme.js.map +1 -0
- package/lib/module/native/useLiquidGlass.js +42 -0
- package/lib/module/native/useLiquidGlass.js.map +1 -0
- package/lib/module/native/useNativeColors.android.js +9 -0
- package/lib/module/native/useNativeColors.android.js.map +1 -0
- package/lib/module/native/useNativeColors.js +5 -0
- package/lib/module/native/useNativeColors.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/module/presets/controller.js +52 -0
- package/lib/module/presets/controller.js.map +1 -0
- package/lib/module/presets/default.js +174 -0
- package/lib/module/presets/default.js.map +1 -0
- package/lib/module/presets/definePreset.js +39 -0
- package/lib/module/presets/definePreset.js.map +1 -0
- package/lib/module/presets/funnel.js +83 -0
- package/lib/module/presets/funnel.js.map +1 -0
- package/lib/module/presets/index.js +8 -0
- package/lib/module/presets/index.js.map +1 -0
- package/lib/module/presets/presets.js +31 -0
- package/lib/module/presets/presets.js.map +1 -0
- package/lib/module/presets/spotfish.js +103 -0
- package/lib/module/presets/spotfish.js.map +1 -0
- package/lib/module/presets/suedtirol.js +101 -0
- package/lib/module/presets/suedtirol.js.map +1 -0
- package/lib/module/presets/types.js +4 -0
- package/lib/module/presets/types.js.map +1 -0
- package/lib/module/presets/usePreset.js +38 -0
- package/lib/module/presets/usePreset.js.map +1 -0
- package/lib/module/theme/configureUi.js +35 -0
- package/lib/module/theme/configureUi.js.map +1 -0
- package/lib/module/theme/createTheme.js +21 -0
- package/lib/module/theme/createTheme.js.map +1 -0
- package/lib/module/theme/defaults.js +184 -0
- package/lib/module/theme/defaults.js.map +1 -0
- package/lib/module/theme/index.js +8 -0
- package/lib/module/theme/index.js.map +1 -0
- package/lib/module/theme/settings.js +40 -0
- package/lib/module/theme/settings.js.map +1 -0
- package/lib/module/theme/tones.js +24 -0
- package/lib/module/theme/tones.js.map +1 -0
- package/lib/module/theme/types.js +4 -0
- package/lib/module/theme/types.js.map +1 -0
- package/lib/module/utils/a11y.js +25 -0
- package/lib/module/utils/a11y.js.map +1 -0
- package/lib/module/utils/createStore.js +27 -0
- package/lib/module/utils/createStore.js.map +1 -0
- package/lib/module/utils/fonts.js +39 -0
- package/lib/module/utils/fonts.js.map +1 -0
- package/lib/module/utils/hitSlop.js +13 -0
- package/lib/module/utils/hitSlop.js.map +1 -0
- package/lib/module/utils/index.js +4 -0
- package/lib/module/utils/index.js.map +1 -0
- package/lib/module/utils/math.js +20 -0
- package/lib/module/utils/math.js.map +1 -0
- package/lib/module/utils/refs.js +14 -0
- package/lib/module/utils/refs.js.map +1 -0
- package/lib/module/utils/statusIcon.js +10 -0
- package/lib/module/utils/statusIcon.js.map +1 -0
- package/lib/module/utils/styles.js +50 -0
- package/lib/module/utils/styles.js.map +1 -0
- package/lib/module/utils/types.js +4 -0
- package/lib/module/utils/types.js.map +1 -0
- package/lib/typescript/components/core/Button.d.ts +30 -0
- package/lib/typescript/components/core/Button.d.ts.map +1 -0
- package/lib/typescript/components/core/DefaultIcon.d.ts +11 -0
- package/lib/typescript/components/core/DefaultIcon.d.ts.map +1 -0
- package/lib/typescript/components/core/FieldLabel.d.ts +19 -0
- package/lib/typescript/components/core/FieldLabel.d.ts.map +1 -0
- package/lib/typescript/components/core/Icon.d.ts +21 -0
- package/lib/typescript/components/core/Icon.d.ts.map +1 -0
- package/lib/typescript/components/core/IconButton.d.ts +19 -0
- package/lib/typescript/components/core/IconButton.d.ts.map +1 -0
- package/lib/typescript/components/core/Screen.d.ts +36 -0
- package/lib/typescript/components/core/Screen.d.ts.map +1 -0
- package/lib/typescript/components/core/Spinner.d.ts +11 -0
- package/lib/typescript/components/core/Spinner.d.ts.map +1 -0
- package/lib/typescript/components/core/Stack.d.ts +22 -0
- package/lib/typescript/components/core/Stack.d.ts.map +1 -0
- package/lib/typescript/components/core/Text.d.ts +16 -0
- package/lib/typescript/components/core/Text.d.ts.map +1 -0
- package/lib/typescript/components/core/TextField.d.ts +34 -0
- package/lib/typescript/components/core/TextField.d.ts.map +1 -0
- package/lib/typescript/components/core/Touchable.d.ts +15 -0
- package/lib/typescript/components/core/Touchable.d.ts.map +1 -0
- package/lib/typescript/components/core/buttonColors.d.ts +9 -0
- package/lib/typescript/components/core/buttonColors.d.ts.map +1 -0
- package/lib/typescript/components/core/field.d.ts +23 -0
- package/lib/typescript/components/core/field.d.ts.map +1 -0
- package/lib/typescript/components/core/index.d.ts +22 -0
- package/lib/typescript/components/core/index.d.ts.map +1 -0
- package/lib/typescript/components/display/Avatar.d.ts +33 -0
- package/lib/typescript/components/display/Avatar.d.ts.map +1 -0
- package/lib/typescript/components/display/AvatarGroup.d.ts +14 -0
- package/lib/typescript/components/display/AvatarGroup.d.ts.map +1 -0
- package/lib/typescript/components/display/Badge.d.ts +34 -0
- package/lib/typescript/components/display/Badge.d.ts.map +1 -0
- package/lib/typescript/components/display/Banner.d.ts +29 -0
- package/lib/typescript/components/display/Banner.d.ts.map +1 -0
- package/lib/typescript/components/display/Card.d.ts +35 -0
- package/lib/typescript/components/display/Card.d.ts.map +1 -0
- package/lib/typescript/components/display/Chip.d.ts +39 -0
- package/lib/typescript/components/display/Chip.d.ts.map +1 -0
- package/lib/typescript/components/display/DescriptionList.d.ts +23 -0
- package/lib/typescript/components/display/DescriptionList.d.ts.map +1 -0
- package/lib/typescript/components/display/Divider.d.ts +19 -0
- package/lib/typescript/components/display/Divider.d.ts.map +1 -0
- package/lib/typescript/components/display/EmptyState.d.ts +23 -0
- package/lib/typescript/components/display/EmptyState.d.ts.map +1 -0
- package/lib/typescript/components/display/KeyValue.d.ts +19 -0
- package/lib/typescript/components/display/KeyValue.d.ts.map +1 -0
- package/lib/typescript/components/display/List.d.ts +47 -0
- package/lib/typescript/components/display/List.d.ts.map +1 -0
- package/lib/typescript/components/display/ListItem.d.ts +38 -0
- package/lib/typescript/components/display/ListItem.d.ts.map +1 -0
- package/lib/typescript/components/display/ProgressBar.d.ts +27 -0
- package/lib/typescript/components/display/ProgressBar.d.ts.map +1 -0
- package/lib/typescript/components/display/ProgressRing.d.ts +24 -0
- package/lib/typescript/components/display/ProgressRing.d.ts.map +1 -0
- package/lib/typescript/components/display/Skeleton.d.ts +18 -0
- package/lib/typescript/components/display/Skeleton.d.ts.map +1 -0
- package/lib/typescript/components/display/Stat.d.ts +29 -0
- package/lib/typescript/components/display/Stat.d.ts.map +1 -0
- package/lib/typescript/components/display/Tag.d.ts +4 -0
- package/lib/typescript/components/display/Tag.d.ts.map +1 -0
- package/lib/typescript/components/display/index.d.ts +35 -0
- package/lib/typescript/components/display/index.d.ts.map +1 -0
- package/lib/typescript/components/forms/Calendar.d.ts +45 -0
- package/lib/typescript/components/forms/Calendar.d.ts.map +1 -0
- package/lib/typescript/components/forms/Checkbox.d.ts +40 -0
- package/lib/typescript/components/forms/Checkbox.d.ts.map +1 -0
- package/lib/typescript/components/forms/CheckboxGroup.d.ts +27 -0
- package/lib/typescript/components/forms/CheckboxGroup.d.ts.map +1 -0
- package/lib/typescript/components/forms/ChipInput.d.ts +33 -0
- package/lib/typescript/components/forms/ChipInput.d.ts.map +1 -0
- package/lib/typescript/components/forms/ControlLabel.d.ts +11 -0
- package/lib/typescript/components/forms/ControlLabel.d.ts.map +1 -0
- package/lib/typescript/components/forms/DateField.d.ts +34 -0
- package/lib/typescript/components/forms/DateField.d.ts.map +1 -0
- package/lib/typescript/components/forms/Field.d.ts +24 -0
- package/lib/typescript/components/forms/Field.d.ts.map +1 -0
- package/lib/typescript/components/forms/MonthPicker.d.ts +32 -0
- package/lib/typescript/components/forms/MonthPicker.d.ts.map +1 -0
- package/lib/typescript/components/forms/PeriodHeader.d.ts +15 -0
- package/lib/typescript/components/forms/PeriodHeader.d.ts.map +1 -0
- package/lib/typescript/components/forms/PinInput.d.ts +38 -0
- package/lib/typescript/components/forms/PinInput.d.ts.map +1 -0
- package/lib/typescript/components/forms/PinPad.d.ts +45 -0
- package/lib/typescript/components/forms/PinPad.d.ts.map +1 -0
- package/lib/typescript/components/forms/Radio.d.ts +27 -0
- package/lib/typescript/components/forms/Radio.d.ts.map +1 -0
- package/lib/typescript/components/forms/RadioGroup.d.ts +27 -0
- package/lib/typescript/components/forms/RadioGroup.d.ts.map +1 -0
- package/lib/typescript/components/forms/SegmentedControl.d.ts +32 -0
- package/lib/typescript/components/forms/SegmentedControl.d.ts.map +1 -0
- package/lib/typescript/components/forms/Slider.d.ts +29 -0
- package/lib/typescript/components/forms/Slider.d.ts.map +1 -0
- package/lib/typescript/components/forms/Stepper.d.ts +29 -0
- package/lib/typescript/components/forms/Stepper.d.ts.map +1 -0
- package/lib/typescript/components/forms/Switch.d.ts +37 -0
- package/lib/typescript/components/forms/Switch.d.ts.map +1 -0
- package/lib/typescript/components/forms/checkboxGroupContext.d.ts +8 -0
- package/lib/typescript/components/forms/checkboxGroupContext.d.ts.map +1 -0
- package/lib/typescript/components/forms/dateUtils.d.ts +14 -0
- package/lib/typescript/components/forms/dateUtils.d.ts.map +1 -0
- package/lib/typescript/components/forms/fieldContext.d.ts +32 -0
- package/lib/typescript/components/forms/fieldContext.d.ts.map +1 -0
- package/lib/typescript/components/forms/groupLayout.d.ts +8 -0
- package/lib/typescript/components/forms/groupLayout.d.ts.map +1 -0
- package/lib/typescript/components/forms/index.d.ts +33 -0
- package/lib/typescript/components/forms/index.d.ts.map +1 -0
- package/lib/typescript/components/forms/radioGroupContext.d.ts +11 -0
- package/lib/typescript/components/forms/radioGroupContext.d.ts.map +1 -0
- package/lib/typescript/components/navigation/BackButton.d.ts +24 -0
- package/lib/typescript/components/navigation/BackButton.d.ts.map +1 -0
- package/lib/typescript/components/navigation/Header.d.ts +48 -0
- package/lib/typescript/components/navigation/Header.d.ts.map +1 -0
- package/lib/typescript/components/navigation/TabBar.d.ts +93 -0
- package/lib/typescript/components/navigation/TabBar.d.ts.map +1 -0
- package/lib/typescript/components/navigation/TabBarItem.d.ts +40 -0
- package/lib/typescript/components/navigation/TabBarItem.d.ts.map +1 -0
- package/lib/typescript/components/navigation/Tabs.d.ts +48 -0
- package/lib/typescript/components/navigation/Tabs.d.ts.map +1 -0
- package/lib/typescript/components/navigation/index.d.ts +11 -0
- package/lib/typescript/components/navigation/index.d.ts.map +1 -0
- package/lib/typescript/components/navigation/tabBarStore.d.ts +3 -0
- package/lib/typescript/components/navigation/tabBarStore.d.ts.map +1 -0
- package/lib/typescript/components/navigation/tabBarUtils.d.ts +16 -0
- package/lib/typescript/components/navigation/tabBarUtils.d.ts.map +1 -0
- package/lib/typescript/components/navigation/useScrollOffset.d.ts +5 -0
- package/lib/typescript/components/navigation/useScrollOffset.d.ts.map +1 -0
- package/lib/typescript/components/overlays/ActionSheet.d.ts +28 -0
- package/lib/typescript/components/overlays/ActionSheet.d.ts.map +1 -0
- package/lib/typescript/components/overlays/ActionSheetHost.d.ts +2 -0
- package/lib/typescript/components/overlays/ActionSheetHost.d.ts.map +1 -0
- package/lib/typescript/components/overlays/Backdrop.d.ts +12 -0
- package/lib/typescript/components/overlays/Backdrop.d.ts.map +1 -0
- package/lib/typescript/components/overlays/Dialog.d.ts +38 -0
- package/lib/typescript/components/overlays/Dialog.d.ts.map +1 -0
- package/lib/typescript/components/overlays/DialogHost.d.ts +2 -0
- package/lib/typescript/components/overlays/DialogHost.d.ts.map +1 -0
- package/lib/typescript/components/overlays/LoadingHost.d.ts +2 -0
- package/lib/typescript/components/overlays/LoadingHost.d.ts.map +1 -0
- package/lib/typescript/components/overlays/LoadingOverlay.d.ts +16 -0
- package/lib/typescript/components/overlays/LoadingOverlay.d.ts.map +1 -0
- package/lib/typescript/components/overlays/Menu.d.ts +20 -0
- package/lib/typescript/components/overlays/Menu.d.ts.map +1 -0
- package/lib/typescript/components/overlays/MenuItem.d.ts +24 -0
- package/lib/typescript/components/overlays/MenuItem.d.ts.map +1 -0
- package/lib/typescript/components/overlays/Overlay.d.ts +34 -0
- package/lib/typescript/components/overlays/Overlay.d.ts.map +1 -0
- package/lib/typescript/components/overlays/OverlayHeader.d.ts +18 -0
- package/lib/typescript/components/overlays/OverlayHeader.d.ts.map +1 -0
- package/lib/typescript/components/overlays/OverlayHost.d.ts +2 -0
- package/lib/typescript/components/overlays/OverlayHost.d.ts.map +1 -0
- package/lib/typescript/components/overlays/Popover.d.ts +47 -0
- package/lib/typescript/components/overlays/Popover.d.ts.map +1 -0
- package/lib/typescript/components/overlays/Portal.d.ts +13 -0
- package/lib/typescript/components/overlays/Portal.d.ts.map +1 -0
- package/lib/typescript/components/overlays/Select.d.ts +72 -0
- package/lib/typescript/components/overlays/Select.d.ts.map +1 -0
- package/lib/typescript/components/overlays/SelectOptionRow.d.ts +17 -0
- package/lib/typescript/components/overlays/SelectOptionRow.d.ts.map +1 -0
- package/lib/typescript/components/overlays/Sheet.d.ts +64 -0
- package/lib/typescript/components/overlays/Sheet.d.ts.map +1 -0
- package/lib/typescript/components/overlays/Toast.d.ts +57 -0
- package/lib/typescript/components/overlays/Toast.d.ts.map +1 -0
- package/lib/typescript/components/overlays/ToastHost.d.ts +13 -0
- package/lib/typescript/components/overlays/ToastHost.d.ts.map +1 -0
- package/lib/typescript/components/overlays/UiProvider.d.ts +14 -0
- package/lib/typescript/components/overlays/UiProvider.d.ts.map +1 -0
- package/lib/typescript/components/overlays/actionColor.d.ts +3 -0
- package/lib/typescript/components/overlays/actionColor.d.ts.map +1 -0
- package/lib/typescript/components/overlays/actionSheetStore.d.ts +25 -0
- package/lib/typescript/components/overlays/actionSheetStore.d.ts.map +1 -0
- package/lib/typescript/components/overlays/anchorPosition.d.ts +36 -0
- package/lib/typescript/components/overlays/anchorPosition.d.ts.map +1 -0
- package/lib/typescript/components/overlays/dialogStore.d.ts +48 -0
- package/lib/typescript/components/overlays/dialogStore.d.ts.map +1 -0
- package/lib/typescript/components/overlays/index.d.ts +40 -0
- package/lib/typescript/components/overlays/index.d.ts.map +1 -0
- package/lib/typescript/components/overlays/loadingStore.d.ts +27 -0
- package/lib/typescript/components/overlays/loadingStore.d.ts.map +1 -0
- package/lib/typescript/components/overlays/overlayA11y.d.ts +18 -0
- package/lib/typescript/components/overlays/overlayA11y.d.ts.map +1 -0
- package/lib/typescript/components/overlays/overlayStore.d.ts +50 -0
- package/lib/typescript/components/overlays/overlayStore.d.ts.map +1 -0
- package/lib/typescript/components/overlays/portalStore.d.ts +17 -0
- package/lib/typescript/components/overlays/portalStore.d.ts.map +1 -0
- package/lib/typescript/components/overlays/sheetRegistry.d.ts +5 -0
- package/lib/typescript/components/overlays/sheetRegistry.d.ts.map +1 -0
- package/lib/typescript/components/overlays/sheetSnaps.d.ts +4 -0
- package/lib/typescript/components/overlays/sheetSnaps.d.ts.map +1 -0
- package/lib/typescript/components/overlays/toastStore.d.ts +63 -0
- package/lib/typescript/components/overlays/toastStore.d.ts.map +1 -0
- package/lib/typescript/components/overlays/useKeyboardOffset.d.ts +2 -0
- package/lib/typescript/components/overlays/useKeyboardOffset.d.ts.map +1 -0
- package/lib/typescript/hooks/index.d.ts +6 -0
- package/lib/typescript/hooks/index.d.ts.map +1 -0
- package/lib/typescript/hooks/useControllableState.d.ts +9 -0
- package/lib/typescript/hooks/useControllableState.d.ts.map +1 -0
- package/lib/typescript/hooks/useLoop.d.ts +15 -0
- package/lib/typescript/hooks/useLoop.d.ts.map +1 -0
- package/lib/typescript/hooks/usePressFeedback.d.ts +18 -0
- package/lib/typescript/hooks/usePressFeedback.d.ts.map +1 -0
- package/lib/typescript/hooks/useSafeSpacing.d.ts +7 -0
- package/lib/typescript/hooks/useSafeSpacing.d.ts.map +1 -0
- package/lib/typescript/hooks/useSlidingIndicator.d.ts +14 -0
- package/lib/typescript/hooks/useSlidingIndicator.d.ts.map +1 -0
- package/lib/typescript/hooks/useToggleProgress.d.ts +3 -0
- package/lib/typescript/hooks/useToggleProgress.d.ts.map +1 -0
- package/lib/typescript/hooks/useWebThemeName.d.ts +2 -0
- package/lib/typescript/hooks/useWebThemeName.d.ts.map +1 -0
- package/lib/typescript/icons/SvgIcon.d.ts +9 -0
- package/lib/typescript/icons/SvgIcon.d.ts.map +1 -0
- package/lib/typescript/icons/createSvgIconRenderer.d.ts +10 -0
- package/lib/typescript/icons/createSvgIconRenderer.d.ts.map +1 -0
- package/lib/typescript/icons/heroicons.d.ts +3 -0
- package/lib/typescript/icons/heroicons.d.ts.map +1 -0
- package/lib/typescript/icons/index.d.ts +6 -0
- package/lib/typescript/icons/index.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +9 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/native/GlassGroup.d.ts +11 -0
- package/lib/typescript/native/GlassGroup.d.ts.map +1 -0
- package/lib/typescript/native/GlassSurface.d.ts +18 -0
- package/lib/typescript/native/GlassSurface.d.ts.map +1 -0
- package/lib/typescript/native/NativeBottomSheet.d.ts +16 -0
- package/lib/typescript/native/NativeBottomSheet.d.ts.map +1 -0
- package/lib/typescript/native/NativeButton.d.ts +17 -0
- package/lib/typescript/native/NativeButton.d.ts.map +1 -0
- package/lib/typescript/native/NativeContextMenu.d.ts +17 -0
- package/lib/typescript/native/NativeContextMenu.d.ts.map +1 -0
- package/lib/typescript/native/NativeDatePicker.d.ts +23 -0
- package/lib/typescript/native/NativeDatePicker.d.ts.map +1 -0
- package/lib/typescript/native/NativeForm.d.ts +21 -0
- package/lib/typescript/native/NativeForm.d.ts.map +1 -0
- package/lib/typescript/native/NativePicker.d.ts +22 -0
- package/lib/typescript/native/NativePicker.d.ts.map +1 -0
- package/lib/typescript/native/NativeProgress.android.d.ts +4 -0
- package/lib/typescript/native/NativeProgress.android.d.ts.map +1 -0
- package/lib/typescript/native/NativeProgress.d.ts +4 -0
- package/lib/typescript/native/NativeProgress.d.ts.map +1 -0
- package/lib/typescript/native/NativeProgress.ios.d.ts +4 -0
- package/lib/typescript/native/NativeProgress.ios.d.ts.map +1 -0
- package/lib/typescript/native/NativeProgress.types.d.ts +11 -0
- package/lib/typescript/native/NativeProgress.types.d.ts.map +1 -0
- package/lib/typescript/native/NativeSlider.d.ts +18 -0
- package/lib/typescript/native/NativeSlider.d.ts.map +1 -0
- package/lib/typescript/native/NativeSwitch.d.ts +15 -0
- package/lib/typescript/native/NativeSwitch.d.ts.map +1 -0
- package/lib/typescript/native/NativeTextField.d.ts +21 -0
- package/lib/typescript/native/NativeTextField.d.ts.map +1 -0
- package/lib/typescript/native/fallbacks/FallbackDatePicker.d.ts +14 -0
- package/lib/typescript/native/fallbacks/FallbackDatePicker.d.ts.map +1 -0
- package/lib/typescript/native/fallbacks/FallbackForm.d.ts +17 -0
- package/lib/typescript/native/fallbacks/FallbackForm.d.ts.map +1 -0
- package/lib/typescript/native/fallbacks/dateFormat.d.ts +7 -0
- package/lib/typescript/native/fallbacks/dateFormat.d.ts.map +1 -0
- package/lib/typescript/native/fromMaterialColors.d.ts +8 -0
- package/lib/typescript/native/fromMaterialColors.d.ts.map +1 -0
- package/lib/typescript/native/index.d.ts +32 -0
- package/lib/typescript/native/index.d.ts.map +1 -0
- package/lib/typescript/native/internal/BaseProgress.d.ts +3 -0
- package/lib/typescript/native/internal/BaseProgress.d.ts.map +1 -0
- package/lib/typescript/native/internal/ControlHost.d.ts +17 -0
- package/lib/typescript/native/internal/ControlHost.d.ts.map +1 -0
- package/lib/typescript/native/internal/IosDatePicker.d.ts +3 -0
- package/lib/typescript/native/internal/IosDatePicker.d.ts.map +1 -0
- package/lib/typescript/native/internal/IosDatePicker.ios.d.ts +3 -0
- package/lib/typescript/native/internal/IosDatePicker.ios.d.ts.map +1 -0
- package/lib/typescript/native/internal/IosDatePicker.types.d.ts +15 -0
- package/lib/typescript/native/internal/IosDatePicker.types.d.ts.map +1 -0
- package/lib/typescript/native/internal/LabeledControl.d.ts +14 -0
- package/lib/typescript/native/internal/LabeledControl.d.ts.map +1 -0
- package/lib/typescript/native/internal/NativeHostContext.d.ts +3 -0
- package/lib/typescript/native/internal/NativeHostContext.d.ts.map +1 -0
- package/lib/typescript/native/internal/availability.d.ts +2 -0
- package/lib/typescript/native/internal/availability.d.ts.map +1 -0
- package/lib/typescript/native/internal/hostTheme.d.ts +4 -0
- package/lib/typescript/native/internal/hostTheme.d.ts.map +1 -0
- package/lib/typescript/native/internal/platformModifiers.android.d.ts +4 -0
- package/lib/typescript/native/internal/platformModifiers.android.d.ts.map +1 -0
- package/lib/typescript/native/internal/platformModifiers.d.ts +4 -0
- package/lib/typescript/native/internal/platformModifiers.d.ts.map +1 -0
- package/lib/typescript/native/internal/platformModifiers.ios.d.ts +4 -0
- package/lib/typescript/native/internal/platformModifiers.ios.d.ts.map +1 -0
- package/lib/typescript/native/internal/platformModifiers.types.d.ts +3 -0
- package/lib/typescript/native/internal/platformModifiers.types.d.ts.map +1 -0
- package/lib/typescript/native/internal/withNativeFallback.d.ts +3 -0
- package/lib/typescript/native/internal/withNativeFallback.d.ts.map +1 -0
- package/lib/typescript/native/materialColors.types.d.ts +4 -0
- package/lib/typescript/native/materialColors.types.d.ts.map +1 -0
- package/lib/typescript/native/menuTypes.d.ts +9 -0
- package/lib/typescript/native/menuTypes.d.ts.map +1 -0
- package/lib/typescript/native/tabs/index.d.ts +5 -0
- package/lib/typescript/native/tabs/index.d.ts.map +1 -0
- package/lib/typescript/native/tabs/useNativeTabsTheme.d.ts +10 -0
- package/lib/typescript/native/tabs/useNativeTabsTheme.d.ts.map +1 -0
- package/lib/typescript/native/useLiquidGlass.d.ts +8 -0
- package/lib/typescript/native/useLiquidGlass.d.ts.map +1 -0
- package/lib/typescript/native/useNativeColors.android.d.ts +4 -0
- package/lib/typescript/native/useNativeColors.android.d.ts.map +1 -0
- package/lib/typescript/native/useNativeColors.d.ts +4 -0
- package/lib/typescript/native/useNativeColors.d.ts.map +1 -0
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/presets/controller.d.ts +10 -0
- package/lib/typescript/presets/controller.d.ts.map +1 -0
- package/lib/typescript/presets/default.d.ts +2 -0
- package/lib/typescript/presets/default.d.ts.map +1 -0
- package/lib/typescript/presets/definePreset.d.ts +16 -0
- package/lib/typescript/presets/definePreset.d.ts.map +1 -0
- package/lib/typescript/presets/funnel.d.ts +11 -0
- package/lib/typescript/presets/funnel.d.ts.map +1 -0
- package/lib/typescript/presets/index.d.ts +7 -0
- package/lib/typescript/presets/index.d.ts.map +1 -0
- package/lib/typescript/presets/presets.d.ts +11 -0
- package/lib/typescript/presets/presets.d.ts.map +1 -0
- package/lib/typescript/presets/spotfish.d.ts +2 -0
- package/lib/typescript/presets/spotfish.d.ts.map +1 -0
- package/lib/typescript/presets/suedtirol.d.ts +2 -0
- package/lib/typescript/presets/suedtirol.d.ts.map +1 -0
- package/lib/typescript/presets/types.d.ts +22 -0
- package/lib/typescript/presets/types.d.ts.map +1 -0
- package/lib/typescript/presets/usePreset.d.ts +16 -0
- package/lib/typescript/presets/usePreset.d.ts.map +1 -0
- package/lib/typescript/theme/configureUi.d.ts +27 -0
- package/lib/typescript/theme/configureUi.d.ts.map +1 -0
- package/lib/typescript/theme/createTheme.d.ts +5 -0
- package/lib/typescript/theme/createTheme.d.ts.map +1 -0
- package/lib/typescript/theme/defaults.d.ts +4 -0
- package/lib/typescript/theme/defaults.d.ts.map +1 -0
- package/lib/typescript/theme/index.d.ts +11 -0
- package/lib/typescript/theme/index.d.ts.map +1 -0
- package/lib/typescript/theme/settings.d.ts +19 -0
- package/lib/typescript/theme/settings.d.ts.map +1 -0
- package/lib/typescript/theme/tones.d.ts +9 -0
- package/lib/typescript/theme/tones.d.ts.map +1 -0
- package/lib/typescript/theme/types.d.ts +147 -0
- package/lib/typescript/theme/types.d.ts.map +1 -0
- package/lib/typescript/utils/a11y.d.ts +20 -0
- package/lib/typescript/utils/a11y.d.ts.map +1 -0
- package/lib/typescript/utils/createStore.d.ts +8 -0
- package/lib/typescript/utils/createStore.d.ts.map +1 -0
- package/lib/typescript/utils/fonts.d.ts +13 -0
- package/lib/typescript/utils/fonts.d.ts.map +1 -0
- package/lib/typescript/utils/hitSlop.d.ts +3 -0
- package/lib/typescript/utils/hitSlop.d.ts.map +1 -0
- package/lib/typescript/utils/index.d.ts +3 -0
- package/lib/typescript/utils/index.d.ts.map +1 -0
- package/lib/typescript/utils/math.d.ts +6 -0
- package/lib/typescript/utils/math.d.ts.map +1 -0
- package/lib/typescript/utils/refs.d.ts +4 -0
- package/lib/typescript/utils/refs.d.ts.map +1 -0
- package/lib/typescript/utils/statusIcon.d.ts +3 -0
- package/lib/typescript/utils/statusIcon.d.ts.map +1 -0
- package/lib/typescript/utils/styles.d.ts +34 -0
- package/lib/typescript/utils/styles.d.ts.map +1 -0
- package/lib/typescript/utils/types.d.ts +11 -0
- package/lib/typescript/utils/types.d.ts.map +1 -0
- package/package.json +155 -3
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useEffect, useEffectEvent, useRef, useState } from 'react';
|
|
4
|
+
import { Pressable } from 'react-native';
|
|
5
|
+
import { Gesture, GestureDetector } from 'react-native-gesture-handler';
|
|
6
|
+
import Animated, { Easing, FadeInDown, FadeInUp, FadeOut, ReduceMotion, cancelAnimation, useAnimatedStyle, useReducedMotion, useSharedValue, withDelay, withSpring, withTiming } from 'react-native-reanimated';
|
|
7
|
+
import { StyleSheet, useUnistyles } from 'react-native-unistyles';
|
|
8
|
+
import { scheduleOnRN } from 'react-native-worklets';
|
|
9
|
+
import { toneColors } from "../../theme/tones.js";
|
|
10
|
+
import { statusIcon } from "../../utils/statusIcon.js";
|
|
11
|
+
import { floatingShadow } from "../../utils/styles.js";
|
|
12
|
+
import { Button } from "../core/Button.js";
|
|
13
|
+
import { renderIcon } from "../core/Icon.js";
|
|
14
|
+
import { IconButton } from "../core/IconButton.js";
|
|
15
|
+
import { Spinner } from "../core/Spinner.js";
|
|
16
|
+
import { Text } from "../core/Text.js";
|
|
17
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
|
+
const swipeThreshold = 64;
|
|
19
|
+
const stackScaleStep = 0.05;
|
|
20
|
+
const iconPopDelay = 120;
|
|
21
|
+
const iconColors = (theme, tone) => tone === 'neutral' || tone === 'secondary' ? {
|
|
22
|
+
color: theme.colors.textMuted,
|
|
23
|
+
background: theme.colors.neutralSoft
|
|
24
|
+
} : {
|
|
25
|
+
color: toneColors(theme, tone).text,
|
|
26
|
+
background: toneColors(theme, tone).soft
|
|
27
|
+
};
|
|
28
|
+
const toastIcon = tone => statusIcon(tone) ?? 'info';
|
|
29
|
+
export const Toast = ({
|
|
30
|
+
ref,
|
|
31
|
+
title,
|
|
32
|
+
description,
|
|
33
|
+
tone = 'neutral',
|
|
34
|
+
icon,
|
|
35
|
+
loading = false,
|
|
36
|
+
action,
|
|
37
|
+
dismissible = true,
|
|
38
|
+
duration = Number.POSITIVE_INFINITY,
|
|
39
|
+
version = 0,
|
|
40
|
+
position = 'top',
|
|
41
|
+
closeLabel = 'Dismiss notification',
|
|
42
|
+
paused = false,
|
|
43
|
+
showTimer,
|
|
44
|
+
stack,
|
|
45
|
+
expandHint,
|
|
46
|
+
onPress,
|
|
47
|
+
onHeight,
|
|
48
|
+
onDismiss,
|
|
49
|
+
style,
|
|
50
|
+
styles
|
|
51
|
+
}) => {
|
|
52
|
+
const {
|
|
53
|
+
theme
|
|
54
|
+
} = useUnistyles();
|
|
55
|
+
const reducedMotion = useReducedMotion();
|
|
56
|
+
const offsetX = useSharedValue(0);
|
|
57
|
+
const offsetY = useSharedValue(0);
|
|
58
|
+
const remaining = useSharedValue(1);
|
|
59
|
+
const iconScale = useSharedValue(reducedMotion ? 1 : 0.4);
|
|
60
|
+
const versionRef = useRef(version);
|
|
61
|
+
const [dragging, setDragging] = useState(false);
|
|
62
|
+
const colors = iconColors(theme, tone);
|
|
63
|
+
const leading = loading ? /*#__PURE__*/_jsx(Spinner, {
|
|
64
|
+
size: "sm",
|
|
65
|
+
color: colors.color
|
|
66
|
+
}) : icon === false ? null : renderIcon(icon ?? toastIcon(tone), {
|
|
67
|
+
size: 'sm',
|
|
68
|
+
color: colors.color
|
|
69
|
+
});
|
|
70
|
+
const timed = !!onDismiss && Number.isFinite(duration) && duration > 0;
|
|
71
|
+
const running = timed && !paused && !dragging && (stack?.visible ?? true);
|
|
72
|
+
const timerVisible = timed && (showTimer ?? theme.components.toast?.timer ?? true);
|
|
73
|
+
const dismissAfterTimeout = useEffectEvent(() => onDismiss?.());
|
|
74
|
+
useEffect(() => {
|
|
75
|
+
if (versionRef.current !== version) {
|
|
76
|
+
versionRef.current = version;
|
|
77
|
+
remaining.value = 1;
|
|
78
|
+
}
|
|
79
|
+
if (!running) {
|
|
80
|
+
cancelAnimation(remaining);
|
|
81
|
+
return undefined;
|
|
82
|
+
}
|
|
83
|
+
remaining.value = withTiming(0, {
|
|
84
|
+
duration: remaining.value * duration,
|
|
85
|
+
easing: Easing.linear,
|
|
86
|
+
reduceMotion: ReduceMotion.Never
|
|
87
|
+
}, finished => {
|
|
88
|
+
if (finished) {
|
|
89
|
+
scheduleOnRN(dismissAfterTimeout);
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
return () => cancelAnimation(remaining);
|
|
93
|
+
}, [running, duration, version, remaining]);
|
|
94
|
+
useEffect(() => {
|
|
95
|
+
if (reducedMotion) {
|
|
96
|
+
iconScale.value = 1;
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
iconScale.value = 0.4;
|
|
100
|
+
iconScale.value = withDelay(iconPopDelay, withSpring(1, theme.motion.spring.bouncy));
|
|
101
|
+
}, [tone, loading, version, reducedMotion, iconScale, theme.motion.spring.bouncy]);
|
|
102
|
+
const towardEdge = position === 'top' ? -1 : 1;
|
|
103
|
+
const exitDuration = reducedMotion ? 0 : theme.motion.duration.fast;
|
|
104
|
+
const spring = {
|
|
105
|
+
...theme.motion.spring.gentle
|
|
106
|
+
};
|
|
107
|
+
const pan = Gesture.Pan().enabled(dismissible && !!onDismiss).minDistance(6).onStart(() => {
|
|
108
|
+
scheduleOnRN(setDragging, true);
|
|
109
|
+
}).onUpdate(event => {
|
|
110
|
+
offsetX.value = event.translationX;
|
|
111
|
+
const vertical = event.translationY * towardEdge;
|
|
112
|
+
offsetY.value = vertical > 0 ? event.translationY : event.translationY * 0.2;
|
|
113
|
+
}).onEnd(event => {
|
|
114
|
+
const horizontal = Math.abs(event.translationX) > swipeThreshold;
|
|
115
|
+
const vertical = event.translationY * towardEdge > swipeThreshold / 2;
|
|
116
|
+
if (horizontal || vertical) {
|
|
117
|
+
if (horizontal) {
|
|
118
|
+
offsetX.value = withTiming(Math.sign(event.translationX) * 480, {
|
|
119
|
+
duration: exitDuration
|
|
120
|
+
});
|
|
121
|
+
} else {
|
|
122
|
+
offsetY.value = withTiming(towardEdge * 160, {
|
|
123
|
+
duration: exitDuration
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
if (onDismiss) {
|
|
127
|
+
scheduleOnRN(onDismiss);
|
|
128
|
+
}
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
offsetX.value = withSpring(0, spring);
|
|
132
|
+
offsetY.value = withSpring(0, spring);
|
|
133
|
+
scheduleOnRN(setDragging, false);
|
|
134
|
+
});
|
|
135
|
+
const dragStyle = useAnimatedStyle(() => ({
|
|
136
|
+
opacity: 1 - Math.min(Math.abs(offsetX.value) / 320, 0.6),
|
|
137
|
+
transform: [{
|
|
138
|
+
translateX: offsetX.value
|
|
139
|
+
}, {
|
|
140
|
+
translateY: offsetY.value
|
|
141
|
+
}]
|
|
142
|
+
}));
|
|
143
|
+
const behind = !!stack && !stack.expanded && stack.index > 0;
|
|
144
|
+
const stackOffset = (stack?.offset ?? 0) * -towardEdge;
|
|
145
|
+
const stackScale = behind ? 1 - (stack?.index ?? 0) * stackScaleStep : 1;
|
|
146
|
+
const stackOpacity = stack && !stack.visible ? 0 : 1;
|
|
147
|
+
const stackStyle = useAnimatedStyle(() => ({
|
|
148
|
+
opacity: reducedMotion ? stackOpacity : withTiming(stackOpacity, {
|
|
149
|
+
duration: theme.motion.duration.normal
|
|
150
|
+
}),
|
|
151
|
+
transform: [{
|
|
152
|
+
translateY: reducedMotion ? stackOffset : withSpring(stackOffset, spring)
|
|
153
|
+
}, {
|
|
154
|
+
scale: reducedMotion ? stackScale : withSpring(stackScale, spring)
|
|
155
|
+
}]
|
|
156
|
+
}));
|
|
157
|
+
const contentStyle = useAnimatedStyle(() => ({
|
|
158
|
+
opacity: reducedMotion ? behind ? 0 : 1 : withTiming(behind ? 0 : 1, {
|
|
159
|
+
duration: theme.motion.duration.fast
|
|
160
|
+
})
|
|
161
|
+
}));
|
|
162
|
+
const timerTrackStyle = useAnimatedStyle(() => ({
|
|
163
|
+
opacity: behind ? 0 : 1
|
|
164
|
+
}));
|
|
165
|
+
const iconStyle = useAnimatedStyle(() => ({
|
|
166
|
+
transform: [{
|
|
167
|
+
scale: iconScale.value
|
|
168
|
+
}]
|
|
169
|
+
}));
|
|
170
|
+
const timerStyle = useAnimatedStyle(() => ({
|
|
171
|
+
transform: [{
|
|
172
|
+
scaleX: remaining.value
|
|
173
|
+
}]
|
|
174
|
+
}));
|
|
175
|
+
const handleLayout = event => onHeight?.(event.nativeEvent.layout.height);
|
|
176
|
+
return /*#__PURE__*/_jsx(Animated.View, {
|
|
177
|
+
ref: ref,
|
|
178
|
+
entering: (position === 'top' ? FadeInUp : FadeInDown).springify(),
|
|
179
|
+
exiting: FadeOut.duration(theme.motion.duration.fast),
|
|
180
|
+
style: [stylesheet.wrapper(position, stack ? stack.count - stack.index : 0, !!stack), style],
|
|
181
|
+
children: /*#__PURE__*/_jsx(Animated.View, {
|
|
182
|
+
style: [stylesheet.stacked(position), stackStyle],
|
|
183
|
+
children: /*#__PURE__*/_jsx(GestureDetector, {
|
|
184
|
+
gesture: pan,
|
|
185
|
+
children: /*#__PURE__*/_jsxs(Animated.View, {
|
|
186
|
+
accessibilityRole: "alert",
|
|
187
|
+
accessibilityLiveRegion: "polite",
|
|
188
|
+
...(behind ? {
|
|
189
|
+
importantForAccessibility: 'no-hide-descendants'
|
|
190
|
+
} : {}),
|
|
191
|
+
accessibilityElementsHidden: behind,
|
|
192
|
+
onLayout: handleLayout,
|
|
193
|
+
style: [stylesheet.container, dragStyle, styles?.container],
|
|
194
|
+
children: [/*#__PURE__*/_jsxs(Animated.View, {
|
|
195
|
+
style: [stylesheet.content, contentStyle],
|
|
196
|
+
children: [leading ? /*#__PURE__*/_jsx(Animated.View, {
|
|
197
|
+
style: [stylesheet.icon(colors.background), iconStyle, styles?.icon],
|
|
198
|
+
children: leading
|
|
199
|
+
}) : null, /*#__PURE__*/_jsxs(Pressable, {
|
|
200
|
+
disabled: !onPress,
|
|
201
|
+
accessibilityHint: onPress ? expandHint : undefined,
|
|
202
|
+
onPress: onPress,
|
|
203
|
+
style: stylesheet.texts,
|
|
204
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
205
|
+
variant: "label",
|
|
206
|
+
weight: "semibold",
|
|
207
|
+
style: styles?.title,
|
|
208
|
+
children: title
|
|
209
|
+
}), description ? /*#__PURE__*/_jsx(Text, {
|
|
210
|
+
variant: "caption",
|
|
211
|
+
tone: "muted",
|
|
212
|
+
style: styles?.description,
|
|
213
|
+
children: description
|
|
214
|
+
}) : null]
|
|
215
|
+
}), action ? /*#__PURE__*/_jsx(Button, {
|
|
216
|
+
size: "sm",
|
|
217
|
+
variant: "soft",
|
|
218
|
+
tone: tone === 'neutral' ? 'primary' : tone,
|
|
219
|
+
style: [stylesheet.action, styles?.action],
|
|
220
|
+
onPress: () => {
|
|
221
|
+
action.onPress();
|
|
222
|
+
onDismiss?.();
|
|
223
|
+
},
|
|
224
|
+
children: action.label
|
|
225
|
+
}) : null, dismissible && onDismiss ? /*#__PURE__*/_jsx(IconButton, {
|
|
226
|
+
icon: "close",
|
|
227
|
+
size: "sm",
|
|
228
|
+
variant: "ghost",
|
|
229
|
+
tone: "neutral",
|
|
230
|
+
accessibilityLabel: closeLabel,
|
|
231
|
+
onPress: onDismiss
|
|
232
|
+
}) : null]
|
|
233
|
+
}), timerVisible ? /*#__PURE__*/_jsx(Animated.View, {
|
|
234
|
+
style: [stylesheet.timerTrack, timerTrackStyle],
|
|
235
|
+
...hiddenTimer,
|
|
236
|
+
children: /*#__PURE__*/_jsx(Animated.View, {
|
|
237
|
+
style: [stylesheet.timer(tone), timerStyle, styles?.timer]
|
|
238
|
+
})
|
|
239
|
+
}) : null]
|
|
240
|
+
})
|
|
241
|
+
})
|
|
242
|
+
})
|
|
243
|
+
});
|
|
244
|
+
};
|
|
245
|
+
const hiddenTimer = {
|
|
246
|
+
accessibilityElementsHidden: true,
|
|
247
|
+
importantForAccessibility: 'no-hide-descendants'
|
|
248
|
+
};
|
|
249
|
+
const timerColor = (theme, tone) => tone === 'neutral' || tone === 'secondary' ? theme.colors.borderStrong : toneColors(theme, tone).solid;
|
|
250
|
+
const stylesheet = StyleSheet.create(theme => ({
|
|
251
|
+
wrapper: (position, zIndex, stacked) => ({
|
|
252
|
+
width: '100%',
|
|
253
|
+
maxWidth: theme.components.toast?.maxWidth ?? 420,
|
|
254
|
+
zIndex,
|
|
255
|
+
position: stacked ? 'absolute' : 'relative',
|
|
256
|
+
top: stacked && position === 'top' ? 0 : undefined,
|
|
257
|
+
bottom: stacked && position === 'bottom' ? 0 : undefined
|
|
258
|
+
}),
|
|
259
|
+
stacked: position => ({
|
|
260
|
+
transformOrigin: position === 'top' ? 'bottom' : 'top',
|
|
261
|
+
borderRadius: theme.components.toast?.radius ?? theme.radius.lg
|
|
262
|
+
}),
|
|
263
|
+
container: {
|
|
264
|
+
overflow: 'hidden',
|
|
265
|
+
borderRadius: theme.components.toast?.radius ?? theme.radius.lg,
|
|
266
|
+
borderWidth: theme.sizes.borderWidth,
|
|
267
|
+
borderColor: theme.colors.border,
|
|
268
|
+
backgroundColor: theme.components.toast?.background ?? theme.colors.surfaceRaised,
|
|
269
|
+
boxShadow: floatingShadow(theme, 'overlay')
|
|
270
|
+
},
|
|
271
|
+
content: {
|
|
272
|
+
flexDirection: 'row',
|
|
273
|
+
alignItems: 'flex-start',
|
|
274
|
+
gap: theme.space(1.25),
|
|
275
|
+
minHeight: theme.sizes.control.md + theme.space(1),
|
|
276
|
+
paddingVertical: theme.space(1.25),
|
|
277
|
+
paddingLeft: theme.space(1.5),
|
|
278
|
+
paddingRight: theme.space(0.75)
|
|
279
|
+
},
|
|
280
|
+
icon: background => ({
|
|
281
|
+
alignItems: 'center',
|
|
282
|
+
justifyContent: 'center',
|
|
283
|
+
width: theme.sizes.icon.sm + theme.space(1),
|
|
284
|
+
height: theme.sizes.icon.sm + theme.space(1),
|
|
285
|
+
marginTop: theme.space(0.25),
|
|
286
|
+
borderRadius: theme.radius.full,
|
|
287
|
+
backgroundColor: background
|
|
288
|
+
}),
|
|
289
|
+
texts: {
|
|
290
|
+
flex: 1,
|
|
291
|
+
gap: theme.space(0.25),
|
|
292
|
+
paddingVertical: theme.space(0.375)
|
|
293
|
+
},
|
|
294
|
+
action: {
|
|
295
|
+
alignSelf: 'center'
|
|
296
|
+
},
|
|
297
|
+
timerTrack: {
|
|
298
|
+
position: 'absolute',
|
|
299
|
+
left: 0,
|
|
300
|
+
right: 0,
|
|
301
|
+
bottom: 0,
|
|
302
|
+
height: theme.space(0.25),
|
|
303
|
+
backgroundColor: theme.colors.surfaceSunken
|
|
304
|
+
},
|
|
305
|
+
timer: tone => ({
|
|
306
|
+
height: '100%',
|
|
307
|
+
transformOrigin: 'left',
|
|
308
|
+
backgroundColor: timerColor(theme, tone)
|
|
309
|
+
})
|
|
310
|
+
}));
|
|
311
|
+
//# sourceMappingURL=Toast.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useEffect","useEffectEvent","useRef","useState","Pressable","Gesture","GestureDetector","Animated","Easing","FadeInDown","FadeInUp","FadeOut","ReduceMotion","cancelAnimation","useAnimatedStyle","useReducedMotion","useSharedValue","withDelay","withSpring","withTiming","StyleSheet","useUnistyles","scheduleOnRN","toneColors","statusIcon","floatingShadow","Button","renderIcon","IconButton","Spinner","Text","jsx","_jsx","jsxs","_jsxs","swipeThreshold","stackScaleStep","iconPopDelay","iconColors","theme","tone","color","colors","textMuted","background","neutralSoft","text","soft","toastIcon","Toast","ref","title","description","icon","loading","action","dismissible","duration","Number","POSITIVE_INFINITY","version","position","closeLabel","paused","showTimer","stack","expandHint","onPress","onHeight","onDismiss","style","styles","reducedMotion","offsetX","offsetY","remaining","iconScale","versionRef","dragging","setDragging","leading","size","timed","isFinite","running","visible","timerVisible","components","toast","timer","dismissAfterTimeout","current","value","undefined","easing","linear","reduceMotion","Never","finished","motion","spring","bouncy","towardEdge","exitDuration","fast","gentle","pan","Pan","enabled","minDistance","onStart","onUpdate","event","translationX","vertical","translationY","onEnd","horizontal","Math","abs","sign","dragStyle","opacity","min","transform","translateX","translateY","behind","expanded","index","stackOffset","offset","stackScale","stackOpacity","stackStyle","normal","scale","contentStyle","timerTrackStyle","iconStyle","timerStyle","scaleX","handleLayout","nativeEvent","layout","height","View","entering","springify","exiting","stylesheet","wrapper","count","children","stacked","gesture","accessibilityRole","accessibilityLiveRegion","importantForAccessibility","accessibilityElementsHidden","onLayout","container","content","disabled","accessibilityHint","texts","variant","weight","label","accessibilityLabel","timerTrack","hiddenTimer","timerColor","borderStrong","solid","create","zIndex","width","maxWidth","top","bottom","transformOrigin","borderRadius","radius","lg","overflow","borderWidth","sizes","borderColor","border","backgroundColor","surfaceRaised","boxShadow","flexDirection","alignItems","gap","space","minHeight","control","md","paddingVertical","paddingLeft","paddingRight","justifyContent","sm","marginTop","full","flex","alignSelf","left","right","surfaceSunken"],"sourceRoot":"../../../../src","sources":["components/overlays/Toast.tsx"],"mappings":";;AAAA,SAASA,SAAS,EAAEC,cAAc,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AAEnE,SAASC,SAAS,QAAc,cAAc;AAE9C,SAASC,OAAO,EAAEC,eAAe,QAAQ,8BAA8B;AACvE,OAAOC,QAAQ,IACZC,MAAM,EACNC,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D1H,KAAK,EAAGjD,IAAU,KAAM;IACrByG,MAAM,EAAE,MAAM;IACdoC,eAAe,EAAE,MAAM;IACvBS,eAAe,EAAElB,UAAU,CAACrI,KAAK,EAAEC,IAAI;EAC1C,CAAC;AACJ,CAAC,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useState } from 'react';
|
|
4
|
+
import { View } from 'react-native';
|
|
5
|
+
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
6
|
+
import { StyleSheet, useUnistyles } from 'react-native-unistyles';
|
|
7
|
+
import { Toast } from "./Toast.js";
|
|
8
|
+
import { toast, useToasts } from "./toastStore.js";
|
|
9
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
+
const peek = 10;
|
|
11
|
+
const stackOffsets = (heights, gap, expanded) => {
|
|
12
|
+
const front = heights[0] ?? 0;
|
|
13
|
+
let cursor = 0;
|
|
14
|
+
return heights.map((height, index) => {
|
|
15
|
+
if (!expanded) {
|
|
16
|
+
return index === 0 ? 0 : front - height + index * peek;
|
|
17
|
+
}
|
|
18
|
+
const offset = cursor;
|
|
19
|
+
cursor += height + gap;
|
|
20
|
+
return offset;
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
export const ToastHost = ({
|
|
24
|
+
position = 'top',
|
|
25
|
+
limit = 3,
|
|
26
|
+
offset = 0,
|
|
27
|
+
closeLabel,
|
|
28
|
+
expandHint = 'Shows all notifications',
|
|
29
|
+
showTimer,
|
|
30
|
+
style
|
|
31
|
+
}) => {
|
|
32
|
+
const {
|
|
33
|
+
theme
|
|
34
|
+
} = useUnistyles();
|
|
35
|
+
const insets = useSafeAreaInsets();
|
|
36
|
+
const toasts = useToasts();
|
|
37
|
+
const [expandedState, setExpanded] = useState(false);
|
|
38
|
+
const [heights, setHeights] = useState({});
|
|
39
|
+
const newestFirst = [...toasts].reverse();
|
|
40
|
+
const expanded = expandedState && newestFirst.length > 1;
|
|
41
|
+
const offsets = stackOffsets(newestFirst.map(record => heights[record.id] ?? 0), theme.space(1), expanded);
|
|
42
|
+
if (newestFirst.length === 0) {
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
const recordHeight = (id, height) => {
|
|
46
|
+
if (heights[id] !== height) {
|
|
47
|
+
setHeights(current => ({
|
|
48
|
+
...current,
|
|
49
|
+
[id]: height
|
|
50
|
+
}));
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
return /*#__PURE__*/_jsx(View, {
|
|
54
|
+
style: [stylesheet.host(position, insets, offset), style],
|
|
55
|
+
children: newestFirst.map((record, index) => /*#__PURE__*/_jsx(Toast, {
|
|
56
|
+
title: record.title,
|
|
57
|
+
description: record.description,
|
|
58
|
+
tone: record.tone,
|
|
59
|
+
icon: record.icon,
|
|
60
|
+
loading: record.loading,
|
|
61
|
+
action: record.action,
|
|
62
|
+
dismissible: record.dismissible,
|
|
63
|
+
duration: record.duration,
|
|
64
|
+
version: record.version,
|
|
65
|
+
position: position,
|
|
66
|
+
closeLabel: closeLabel,
|
|
67
|
+
showTimer: showTimer,
|
|
68
|
+
paused: expanded,
|
|
69
|
+
expandHint: expanded ? undefined : expandHint,
|
|
70
|
+
stack: {
|
|
71
|
+
index,
|
|
72
|
+
offset: offsets[index] ?? 0,
|
|
73
|
+
expanded,
|
|
74
|
+
visible: index < limit,
|
|
75
|
+
count: newestFirst.length
|
|
76
|
+
},
|
|
77
|
+
onPress: newestFirst.length > 1 ? () => setExpanded(!expanded) : undefined,
|
|
78
|
+
onHeight: height => recordHeight(record.id, height),
|
|
79
|
+
onDismiss: () => toast.dismiss(record.id)
|
|
80
|
+
}, record.id))
|
|
81
|
+
});
|
|
82
|
+
};
|
|
83
|
+
const stylesheet = StyleSheet.create(theme => ({
|
|
84
|
+
host: (position, insets, offset) => ({
|
|
85
|
+
position: 'absolute',
|
|
86
|
+
left: insets.left + theme.space(2),
|
|
87
|
+
right: insets.right + theme.space(2),
|
|
88
|
+
top: position === 'top' ? insets.top + theme.space(1) + offset : undefined,
|
|
89
|
+
bottom: position === 'bottom' ? insets.bottom + theme.space(1) + offset : undefined,
|
|
90
|
+
alignItems: 'center',
|
|
91
|
+
pointerEvents: 'box-none'
|
|
92
|
+
})
|
|
93
|
+
}));
|
|
94
|
+
//# sourceMappingURL=ToastHost.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useState","View","useSafeAreaInsets","StyleSheet","useUnistyles","Toast","toast","useToasts","jsx","_jsx","peek","stackOffsets","heights","gap","expanded","front","cursor","map","height","index","offset","ToastHost","position","limit","closeLabel","expandHint","showTimer","style","theme","insets","toasts","expandedState","setExpanded","setHeights","newestFirst","reverse","length","offsets","record","id","space","recordHeight","current","stylesheet","host","children","title","description","tone","icon","loading","action","dismissible","duration","version","paused","undefined","stack","visible","count","onPress","onHeight","onDismiss","dismiss","create","left","right","top","bottom","alignItems","pointerEvents"],"sourceRoot":"../../../../src","sources":["components/overlays/ToastHost.tsx"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,OAAO;AAChC,SAASC,IAAI,QAAQ,cAAc;AAEnC,SAASC,iBAAiB,QAAQ,gCAAgC;AAElE,SAASC,UAAU,EAAEC,YAAY,QAAQ,wBAAwB;AACjE,SAASC,KAAK,QAAQ,YAAS;AAE/B,SAASC,KAAK,EAAEC,SAAS,QAAQ,iBAAc;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAY/C,MAAMC,IAAI,GAAG,EAAE;AAEf,MAAMC,YAAY,GAAGA,CAACC,OAAiB,EAAEC,GAAW,EAAEC,QAAiB,KAAK;EACzE,MAAMC,KAAK,GAAGH,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC;EAC7B,IAAII,MAAM,GAAG,CAAC;EACd,OAAOJ,OAAO,CAACK,GAAG,CAAC,CAACC,MAAM,EAAEC,KAAK,KAAK;IACnC,IAAI,CAACL,QAAQ,EAAE;MACZ,OAAOK,KAAK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Q,EAAG3C,MAAM,IAAKuB,YAAY,CAACH,MAAM,CAACC,EAAE,EAAErB,MAAM,CAAE;MACtD4C,SAAS,EAAEA,CAAA,KAAMxD,KAAK,CAACyD,OAAO,CAACzB,MAAM,CAACC,EAAE;IAAE,GAxBrCD,MAAM,CAACC,EAyBd,CACH;EAAC,CACC,CAAC;AAEb,CAAC;AAED,MAAMI,UAAU,GAAGxC,UAAU,CAAC6D,MAAM,CAAEpC,KAAK,KAAM;EAC9CgB,IAAI,EAAEA,CAACtB,QAAuB,EAAEO,MAAkB,EAAET,MAAc,MAAM;IACrEE,QAAQ,EAAE,UAAU;IACpB2C,IAAI,EAAEpC,MAAM,CAACoC,IAAI,GAAGrC,KAAK,CAACY,KAAK,CAAC,CAAC,CAAC;IAClC0B,KAAK,EAAErC,MAAM,CAACqC,KAAK,GAAGtC,KAAK,CAACY,KAAK,CAAC,CAAC,CAAC;IACpC2B,GAAG,EAAE7C,QAAQ,KAAK,KAAK,GAAGO,MAAM,CAACsC,GAAG,GAAGvC,KAAK,CAACY,KAAK,CAAC,CAAC,CAAC,GAAGpB,MAAM,GAAGoC,SAAS;IAC1EY,MAAM,EAAE9C,QAAQ,KAAK,QAAQ,GAAGO,MAAM,CAACuC,MAAM,GAAGxC,KAAK,CAACY,KAAK,CAAC,CAAC,CAAC,GAAGpB,MAAM,GAAGoC,SAAS;IACnFa,UAAU,EAAE,QAAQ;IACpBC,aAAa,EAAE;EAClB,CAAC;AACJ,CAAC,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useState, useSyncExternalStore } from 'react';
|
|
4
|
+
import { View } from 'react-native';
|
|
5
|
+
import { GestureHandlerRootView } from 'react-native-gesture-handler';
|
|
6
|
+
import { StyleSheet } from 'react-native-unistyles';
|
|
7
|
+
import { ActionSheetHost } from "./ActionSheetHost.js";
|
|
8
|
+
import { DialogHost } from "./DialogHost.js";
|
|
9
|
+
import { LoadingHost } from "./LoadingHost.js";
|
|
10
|
+
import { OverlayHost } from "./OverlayHost.js";
|
|
11
|
+
import { hiddenFromAccessibility } from "../../utils/a11y.js";
|
|
12
|
+
import { PortalHost } from "./Portal.js";
|
|
13
|
+
import { PortalContext, createPortalStore } from "./portalStore.js";
|
|
14
|
+
import { ToastHost } from "./ToastHost.js";
|
|
15
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
|
+
const gestureRootStyle = {
|
|
17
|
+
flex: 1
|
|
18
|
+
};
|
|
19
|
+
const ModalAwareContent = ({
|
|
20
|
+
store,
|
|
21
|
+
children
|
|
22
|
+
}) => {
|
|
23
|
+
const hidden = useSyncExternalStore(store.subscribe, store.hasModal, store.hasModal);
|
|
24
|
+
return /*#__PURE__*/_jsx(View, {
|
|
25
|
+
style: stylesheet.fill,
|
|
26
|
+
...hiddenFromAccessibility(hidden),
|
|
27
|
+
children: children
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
export const UiProvider = ({
|
|
31
|
+
children,
|
|
32
|
+
toast,
|
|
33
|
+
dialogs = true,
|
|
34
|
+
overlays = true,
|
|
35
|
+
loading = true,
|
|
36
|
+
gestureRoot = false,
|
|
37
|
+
style
|
|
38
|
+
}) => {
|
|
39
|
+
const [store] = useState(createPortalStore);
|
|
40
|
+
const content = /*#__PURE__*/_jsxs(PortalContext, {
|
|
41
|
+
value: store,
|
|
42
|
+
children: [/*#__PURE__*/_jsx(ModalAwareContent, {
|
|
43
|
+
store: store,
|
|
44
|
+
children: children
|
|
45
|
+
}), /*#__PURE__*/_jsx(PortalHost, {}), overlays ? /*#__PURE__*/_jsx(OverlayHost, {}) : null, overlays ? /*#__PURE__*/_jsx(ActionSheetHost, {}) : null, dialogs ? /*#__PURE__*/_jsx(DialogHost, {}) : null, loading ? /*#__PURE__*/_jsx(LoadingHost, {}) : null, toast === false ? null : /*#__PURE__*/_jsx(ToastHost, {
|
|
46
|
+
...toast
|
|
47
|
+
})]
|
|
48
|
+
});
|
|
49
|
+
if (gestureRoot) {
|
|
50
|
+
return /*#__PURE__*/_jsx(GestureHandlerRootView, {
|
|
51
|
+
style: gestureRootStyle,
|
|
52
|
+
children: /*#__PURE__*/_jsx(View, {
|
|
53
|
+
style: [stylesheet.fill, style],
|
|
54
|
+
children: content
|
|
55
|
+
})
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
return /*#__PURE__*/_jsx(View, {
|
|
59
|
+
style: [stylesheet.fill, style],
|
|
60
|
+
children: content
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
const stylesheet = StyleSheet.create({
|
|
64
|
+
fill: {
|
|
65
|
+
flex: 1
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
//# sourceMappingURL=UiProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useState","useSyncExternalStore","View","GestureHandlerRootView","StyleSheet","ActionSheetHost","DialogHost","LoadingHost","OverlayHost","hiddenFromAccessibility","PortalHost","PortalContext","createPortalStore","ToastHost","jsx","_jsx","jsxs","_jsxs","gestureRootStyle","flex","ModalAwareContent","store","children","hidden","subscribe","hasModal","style","stylesheet","fill","UiProvider","toast","dialogs","overlays","loading","gestureRoot","content","value","create"],"sourceRoot":"../../../../src","sources":["components/overlays/UiProvider.tsx"],"mappings":";;AAAA,SAASA,QAAQ,EAAEC,oBAAoB,QAAQ,OAAO;AAEtD,SAASC,IAAI,QAAQ,cAAc;AAEnC,SAASC,sBAAsB,QAAQ,8BAA8B;AACrE,SAASC,UAAU,QAAQ,wBAAwB;AACnD,SAASC,eAAe,QAAQ,sBAAmB;AACnD,SAASC,UAAU,QAAQ,iBAAc;AACzC,SAASC,WAAW,QAAQ,kBAAe;AAC3C,SAASC,WAAW,QAAQ,kBAAe;AAC3C,SAASC,uBAAuB,QAAQ,qBAAkB;AAC1D,SAASC,UAAU,QAAQ,aAAU;AACrC,SAASC,aAAa,EAAEC,iBAAiB,Q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AACR,WAAW,IAAE,CAAC,GAAG,IAAI,EAChCuB,KAAK,KAAK,KAAK,GAAG,IAAI,gBAAGf,IAAA,CAACF,SAAS;MAAA,GAAKiB;IAAK,CAAG,CAAC;EAAA,CACtC,CACjB;EAED,IAAII,WAAW,EAAE;IACd,oBACGnB,IAAA,CAACZ,sBAAsB;MAACuB,KAAK,EAAER,gBAAiB;MAAAI,QAAA,eAC7CP,IAAA,CAACb,IAAI;QAACwB,KAAK,EAAE,CAACC,UAAU,CAACC,IAAI,EAAEF,KAAK,CAAE;QAAAJ,QAAA,EAAEa;MAAO,CAAO;IAAC,CAClC,CAAC;EAE/B;EACA,oBAAOpB,IAAA,CAACb,IAAI;IAACwB,KAAK,EAAE,CAACC,UAAU,CAACC,IAAI,EAAEF,KAAK,CAAE;IAAAJ,QAAA,EAAEa;EAAO,CAAO,CAAC;AACjE,CAAC;AAED,MAAMR,UAAU,GAAGvB,UAAU,CAACiC,MAAM,CAAC;EAClCT,IAAI,EAAE;IACHT,IAAI,EAAE;EACT;AACH,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["toneColors","actionColor","theme","destructive","text","colors"],"sourceRoot":"../../../../src","sources":["components/overlays/actionColor.ts"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,sBAAmB;AAG9C,OAAO,MAAMC,WAAW,GAAGA,CAACC,KAAgB,EAAEC,WAAoB,KAC/DA,WAAW,GAAGH,UAAU,CAACE,KAAK,EAAE,QAAQ,CAAC,CAACE,IAAI,GAAGF,KAAK,CAACG,MAAM,CAACD,IAAI","ignoreList":[]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { createStore, useStore } from "../../utils/createStore.js";
|
|
4
|
+
const requests = createStore([]);
|
|
5
|
+
let nextId = 1;
|
|
6
|
+
export const useActionSheetRequests = () => useStore(requests);
|
|
7
|
+
export const removeActionSheetRequest = id => {
|
|
8
|
+
requests.set(requests.get().filter(request => request.id !== id));
|
|
9
|
+
};
|
|
10
|
+
export const actionKey = action => action.key ?? action.label;
|
|
11
|
+
export const actionSheet = {
|
|
12
|
+
show: options => new Promise(resolve => {
|
|
13
|
+
requests.set([...requests.get(), {
|
|
14
|
+
id: nextId++,
|
|
15
|
+
options,
|
|
16
|
+
settle: resolve
|
|
17
|
+
}]);
|
|
18
|
+
})
|
|
19
|
+
};
|
|
20
|
+
export const useActionSheet = () => actionSheet;
|
|
21
|
+
//# sourceMappingURL=actionSheetStore.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createStore","useStore","requests","nextId","useActionSheetRequests","removeActionSheetRequest","id","set","get","filter","request","actionKey","action","key","label","actionSheet","show","options","Promise","resolve","settle","useActionSheet"],"sourceRoot":"../../../../src","sources":["components/overlays/actionSheetStore.ts"],"mappings":";;AAAA,SAASA,WAAW,EAAEC,QAAQ,QAAQ,4BAAyB;AAkB/D,MAAMC,QAAQ,GAAGF,WAAW,CAAuB,EAAE,CAAC;AACtD,IAAIG,MAAM,GAAG,CAAC;AAEd,OAAO,MAAMC,sBAAsB,GAAGA,CAAA,KAAMH,QAAQ,CAACC,QAAQ,CAAC;AAE9D,OAAO,MAAMG,wBAAwB,GAAIC,EAAU,IAAK;EACrDJ,QAAQ,CAACK,GAAG,CAACL,QAAQ,CAACM,GAAG,CAAC,CAAC,CAACC,MAAM,CAAEC,OAAO,IAAKA,OAAO,CAACJ,EAAE,KAAKA,EAAE,CAAC,CAAC;AACtE,CAAC;AAED,OAAO,MAAMK,SAAS,GAAIC,MAAgC,IAAKA,MAAM,CAACC,GAAG,IAAID,MAAM,CAACE,KAAK;AAEzF,OAAO,MAAMC,WAAW,GAAG;EACxBC,IAAI,EAAGC,OAA2B,IAC/B,IAAIC,OAAO,CAAiBC,OAAO,IAAK;IACrCjB,QAAQ,CAACK,GAAG,CAAC,CAAC,GAAGL,QAAQ,CAACM,GAAG,CAAC,CAAC,EAAE;MAAEF,EAAE,EAAEH,MAAM,EAAE;MAAEc,OAAO;MAAEG,MAAM,EAAED;IAAQ,CAAC,CAAC,CAAC;EAChF,CAAC;AACP,CAAC;AAED,OAAO,MAAME,cAAc,GAAGA,CAAA,KAAMN,WAAW","ignoreList":[]}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export const measureInWindow = (node, callback) => node?.measureInWindow((x, y, width, height) => callback({
|
|
4
|
+
x,
|
|
5
|
+
y,
|
|
6
|
+
width,
|
|
7
|
+
height
|
|
8
|
+
}));
|
|
9
|
+
const alignedLeft = (anchor, size, align) => {
|
|
10
|
+
if (align === 'start') {
|
|
11
|
+
return anchor.x;
|
|
12
|
+
}
|
|
13
|
+
if (align === 'end') {
|
|
14
|
+
return anchor.x + anchor.width - size.width;
|
|
15
|
+
}
|
|
16
|
+
return anchor.x + anchor.width / 2 - size.width / 2;
|
|
17
|
+
};
|
|
18
|
+
export const anchoredPosition = ({
|
|
19
|
+
anchor,
|
|
20
|
+
size,
|
|
21
|
+
origin,
|
|
22
|
+
window,
|
|
23
|
+
insets,
|
|
24
|
+
placement,
|
|
25
|
+
align,
|
|
26
|
+
gap,
|
|
27
|
+
margin
|
|
28
|
+
}) => {
|
|
29
|
+
const below = anchor.y + anchor.height + gap;
|
|
30
|
+
const above = anchor.y - size.height - gap;
|
|
31
|
+
const fitsBelow = below + size.height <= window.height - insets.bottom - margin;
|
|
32
|
+
const fitsAbove = above >= insets.top + margin;
|
|
33
|
+
const preferBelow = placement === 'bottom' ? fitsBelow || !fitsAbove : !(fitsAbove || !fitsBelow);
|
|
34
|
+
const top = preferBelow ? below : above;
|
|
35
|
+
const maxLeft = window.width - insets.right - margin - size.width;
|
|
36
|
+
const left = Math.max(insets.left + margin, Math.min(alignedLeft(anchor, size, align), maxLeft));
|
|
37
|
+
return {
|
|
38
|
+
top: top - origin.y,
|
|
39
|
+
left: left - origin.x
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=anchorPosition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["measureInWindow","node","callback","x","y","width","height","alignedLeft","anchor","size","align","anchoredPosition","origin","window","insets","placement","gap","margin","below","above","fitsBelow","bottom","fitsAbove","top","preferBelow","maxLeft","right","left","Math","max","min"],"sourceRoot":"../../../../src","sources":["components/overlays/anchorPosition.ts"],"mappings":";;AAOA,OAAO,MAAMA,eAAe,GAAGA,CAACC,IAAiB,EAAEC,QAA8B,KAC9ED,IAAI,EAAED,eAAe,CAAC,CAACG,CAAC,EAAEC,CAAC,EAAEC,KAAK,EAAEC,MAAM,KAAKJ,QAAQ,CAAC;EAAEC,CAAC;EAAEC,CAAC;EAAEC,KAAK;EAAEC;AAAO,CAAC,CAAC,CAAC;AAiBpF,MAAMC,WAAW,GAAGA,CAACC,MAAY,EAAEC,IAAU,EAAEC,KAAkB,KAAK;EACnE,IAAIA,KAAK,KAAK,OAAO,EAAE;IACpB,OAAOF,MAAM,CAACL,CAAC;EAClB;EACA,IAAIO,KAAK,KAAK,KAAK,EAAE;IAClB,OAAOF,MAAM,CAACL,CAAC,GAAGK,MAAM,CAACH,KAAK,GAAGI,IAAI,CAACJ,KAAK;EAC9C;EACA,OAAOG,MAAM,CAACL,CAAC,GAAGK,MAAM,CAACH,KAAK,GAAG,CAAC,GAAGI,IAAI,CAACJ,KAAK,GAAG,CAAC;AACtD,CAAC;AAED,OAAO,MAAMM,gBAAgB,GAAGA,CAAC;EAC9BH,MAAM;EACNC,IAAI;EACJG,MAAM;EACNC,MAAM;EACNC,MAAM;EACNC,SAAS;EACTL,KAAK;EACLM,GAAG;EACHC;AACY,CAAC,KAAK;EAClB,MAAMC,KAAK,GAAGV,MAAM,CAACJ,CAAC,GAAGI,MAAM,CAACF,MAAM,GAAGU,GAAG;EAC5C,MAAMG,KAAK,GAAGX,MAAM,CAACJ,CAAC,GAAGK,IAAI,CAACH,MAAM,GAAGU,GAAG;EAC1C,MAAMI,SAAS,GAAGF,KAAK,GAAGT,IAAI,CAACH,MAAM,IAAIO,MAAM,CAACP,MAAM,GAAGQ,MAAM,CAACO,MAAM,GAAGJ,MAAM;EAC/E,MAAMK,SAAS,GAAGH,KAAK,IAAIL,MAAM,CAACS,GAAG,GAAGN,MAAM;EAC9C,MAAMO,WAAW,GAAGT,SAAS,KAAK,QAAQ,GAAGK,SAAS,IAAI,CAACE,SAAS,GAAG,EAAEA,SAAS,IAAI,CAACF,SAAS,CAAC;EACjG,MAAMG,GAAG,GAAGC,WAAW,GAAGN,KAAK,GAAGC,KAAK;EACvC,MAAMM,OAAO,GAAGZ,MAAM,CAACR,KAAK,GAAGS,MAAM,CAACY,KAAK,GAAGT,MAAM,GAAGR,IAAI,CAACJ,KAAK;EACjE,MAAMsB,IAAI,GAAGC,IAAI,CAACC,GAAG,CAACf,MAAM,CAACa,IAAI,GAAGV,MAAM,EAAEW,IAAI,CAACE,GAAG,CAACvB,WAAW,CAACC,MAAM,EAAEC,IAAI,EAAEC,KAAK,CAAC,EAAEe,OAAO,CAAC,CAAC;EAChG,OAAO;IAAEF,GAAG,EAAEA,GAAG,GAAGX,MAAM,CAACR,CAAC;IAAEuB,IAAI,EAAEA,IAAI,GAAGf,MAAM,CAACT;EAAE,CAAC;AACxD,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { createStore, useStore } from "../../utils/createStore.js";
|
|
4
|
+
const requests = createStore([]);
|
|
5
|
+
let nextId = 1;
|
|
6
|
+
const enqueue = (kind, options) => new Promise(resolve => {
|
|
7
|
+
requests.set([...requests.get(), {
|
|
8
|
+
id: nextId++,
|
|
9
|
+
kind,
|
|
10
|
+
options,
|
|
11
|
+
resolve
|
|
12
|
+
}]);
|
|
13
|
+
});
|
|
14
|
+
export const useDialogRequests = () => useStore(requests);
|
|
15
|
+
export const removeDialogRequest = id => {
|
|
16
|
+
requests.set(requests.get().filter(request => request.id !== id));
|
|
17
|
+
};
|
|
18
|
+
export const dialog = {
|
|
19
|
+
confirm: options => enqueue('confirm', options).then(result => result.confirmed),
|
|
20
|
+
alert: options => enqueue('alert', options).then(() => undefined),
|
|
21
|
+
prompt: options => enqueue('prompt', options).then(result => result.confirmed ? result.value ?? '' : null)
|
|
22
|
+
};
|
|
23
|
+
export const useDialog = () => dialog;
|
|
24
|
+
export const useConfirm = () => dialog.confirm;
|
|
25
|
+
export const useAlert = () => dialog.alert;
|
|
26
|
+
export const usePrompt = () => dialog.prompt;
|
|
27
|
+
//# sourceMappingURL=dialogStore.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createStore","useStore","requests","nextId","enqueue","kind","options","Promise","resolve","set","get","id","useDialogRequests","removeDialogRequest","filter","request","dialog","confirm","then","result","confirmed","alert","undefined","prompt","value","useDialog","useConfirm","useAlert","usePrompt"],"sourceRoot":"../../../../src","sources":["components/overlays/dialogStore.ts"],"mappings":";;AAEA,SAASA,WAAW,EAAEC,QAAQ,QAAQ,4BAAyB;AAkC/D,MAAMC,QAAQ,GAAGF,WAAW,CAAkB,EAAE,CAAC;AACjD,IAAIG,MAAM,GAAG,CAAC;AAEd,MAAMC,OAAO,GAAGA,CAACC,IAA2B,EAAEC,OAAsB,KACjE,IAAIC,OAAO,CAAgBC,OAAO,IAAK;EACpCN,QAAQ,CAACO,GAAG,CAAC,CAAC,GAAGP,QAAQ,CAACQ,GAAG,CAAC,CAAC,EAAE;IAAEC,EAAE,EAAER,MAAM,EAAE;IAAEE,IAAI;IAAEC,OAAO;IAAEE;EAAQ,CAAC,CAAC,CAAC;AAC9E,CAAC,CAAC;AAEL,OAAO,MAAMI,iBAAiB,GAAGA,CAAA,KAAMX,QAAQ,CAACC,QAAQ,CAAC;AAEzD,OAAO,MAAMW,mBAAmB,GAAIF,EAAU,IAAK;EAChDT,QAAQ,CAACO,GAAG,CAACP,QAAQ,CAACQ,GAAG,CAAC,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