@xleddyl/443-components-native 0.0.0-stage → 0.1.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
package/README.md
CHANGED
|
@@ -1,3 +1,455 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @xleddyl/443-components-native
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Bare-bones, theme-driven React Native components for Expo apps, built on Unistyles 3. Every color,
|
|
4
|
+
radius, size and spacing comes from a typed theme, so one component set can look like Textreme
|
|
5
|
+
(clear blue, tall touch targets) or Suedtirol Fishing (deep green, round corners) without forks.
|
|
6
|
+
An opt-in native layer renders SwiftUI, Jetpack Compose and Liquid Glass controls with the same
|
|
7
|
+
props (see [NATIVE.md](./NATIVE.md)).
|
|
8
|
+
|
|
9
|
+
Built and checked against Expo SDK 57, React Native 0.86, React 19.2 and Unistyles 3.5.
|
|
10
|
+
|
|
11
|
+
## Install
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
pnpm add @xleddyl/443-components-native
|
|
15
|
+
npx expo install react-native-unistyles react-native-nitro-modules react-native-reanimated \
|
|
16
|
+
react-native-worklets react-native-gesture-handler react-native-safe-area-context
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
| Peer | Required | Used by |
|
|
20
|
+
| ------------------------------------------------------ | -------- | -------------------------------------------------- |
|
|
21
|
+
| `react`, `react-native` | yes | everything |
|
|
22
|
+
| `react-native-unistyles`, `react-native-nitro-modules` | yes | styling and theming |
|
|
23
|
+
| `react-native-reanimated`, `react-native-worklets` | yes | animations, sheets, sliders |
|
|
24
|
+
| `react-native-gesture-handler` | yes | sheets, sliders, swipe gestures |
|
|
25
|
+
| `react-native-safe-area-context` | yes | `Screen`, overlays, tab bars |
|
|
26
|
+
| `react-native-svg` | optional | `@xleddyl/443-components-native/icons` (Heroicons svg glyph set) |
|
|
27
|
+
| `expo-haptics` | optional | only through your `haptics` adapter |
|
|
28
|
+
| `@expo/ui`, `expo-glass-effect`, `expo-router`, `expo` | optional | `@xleddyl/443-components-native/native` and `@xleddyl/443-components-native/native-tabs` |
|
|
29
|
+
|
|
30
|
+
The root entry never imports an optional peer. Apps that skip them never load them.
|
|
31
|
+
|
|
32
|
+
## App setup
|
|
33
|
+
|
|
34
|
+
### Babel
|
|
35
|
+
|
|
36
|
+
The Unistyles babel plugin must process this package, because it ships TypeScript source and
|
|
37
|
+
`StyleSheet.create` calls that need dependency tracking.
|
|
38
|
+
|
|
39
|
+
```js
|
|
40
|
+
module.exports = function (api) {
|
|
41
|
+
api.cache(true)
|
|
42
|
+
return {
|
|
43
|
+
presets: ['babel-preset-expo'],
|
|
44
|
+
plugins: [
|
|
45
|
+
[
|
|
46
|
+
'react-native-unistyles/plugin',
|
|
47
|
+
{ root: 'src', autoProcessPaths: ['/node_modules/@xleddyl/443-components-native/'] },
|
|
48
|
+
],
|
|
49
|
+
],
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
In a pnpm workspace that links the package from source, also add its source folder (the
|
|
55
|
+
playground uses `'/packages/native/src/'`).
|
|
56
|
+
|
|
57
|
+
### Metro
|
|
58
|
+
|
|
59
|
+
Keep `inlineRequires` on (Expo default in recent SDKs). The barrel relies on it so that unused
|
|
60
|
+
components cost nothing at startup and so the native layer can fall back when a native module is
|
|
61
|
+
missing.
|
|
62
|
+
|
|
63
|
+
```js
|
|
64
|
+
const { getDefaultConfig } = require('expo/metro-config')
|
|
65
|
+
const config = getDefaultConfig(__dirname)
|
|
66
|
+
config.transformer.getTransformOptions = async () => ({
|
|
67
|
+
transform: { experimentalImportSupport: true, inlineRequires: true },
|
|
68
|
+
})
|
|
69
|
+
module.exports = config
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### Unistyles configuration file
|
|
73
|
+
|
|
74
|
+
Create `src/unistyles.ts` and import it first from `index.ts`, before `expo-router/entry`. Import
|
|
75
|
+
only from `@xleddyl/443-components-native/theme` here: the root barrel evaluates every `StyleSheet.create`, and
|
|
76
|
+
Unistyles throws on native when that happens before `StyleSheet.configure`.
|
|
77
|
+
|
|
78
|
+
```ts
|
|
79
|
+
import { configureUi } from '@xleddyl/443-components-native/theme'
|
|
80
|
+
import type { defaultBreakpoints } from '@xleddyl/443-components-native/theme'
|
|
81
|
+
import { svgIconRenderer } from '@xleddyl/443-components-native/icons'
|
|
82
|
+
import * as Haptics from 'expo-haptics'
|
|
83
|
+
import { themes } from './themes'
|
|
84
|
+
|
|
85
|
+
configureUi({
|
|
86
|
+
themes,
|
|
87
|
+
initialTheme: 'light',
|
|
88
|
+
icons: svgIconRenderer,
|
|
89
|
+
haptics: (kind) => {
|
|
90
|
+
if (kind === 'selection') {
|
|
91
|
+
Haptics.selectionAsync()
|
|
92
|
+
return
|
|
93
|
+
}
|
|
94
|
+
Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Light)
|
|
95
|
+
},
|
|
96
|
+
})
|
|
97
|
+
|
|
98
|
+
type AppThemes = typeof themes
|
|
99
|
+
type AppBreakpoints = typeof defaultBreakpoints
|
|
100
|
+
|
|
101
|
+
declare module 'react-native-unistyles' {
|
|
102
|
+
export interface UnistylesThemes extends AppThemes {}
|
|
103
|
+
export interface UnistylesBreakpoints extends AppBreakpoints {}
|
|
104
|
+
}
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
```ts
|
|
108
|
+
import './src/unistyles'
|
|
109
|
+
import 'expo-router/entry'
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
`configureUi` also accepts `adaptiveThemes: true` (follow the system light and dark scheme),
|
|
113
|
+
`breakpoints`, `text` (`allowFontScaling`, `maxFontSizeMultiplier`) and `cssVars` (off by default:
|
|
114
|
+
with CSS variables on, Unistyles web skips recomputing styles on theme change and numeric tokens
|
|
115
|
+
break).
|
|
116
|
+
|
|
117
|
+
### Root layout
|
|
118
|
+
|
|
119
|
+
Mount `UiProvider` once. It hosts portals (sheets, dialogs, popovers, menus), the imperative
|
|
120
|
+
`dialog` API and toasts.
|
|
121
|
+
|
|
122
|
+
```tsx
|
|
123
|
+
export default function RootLayout() {
|
|
124
|
+
return (
|
|
125
|
+
<GestureHandlerRootView style={{ flex: 1 }}>
|
|
126
|
+
<UiProvider>
|
|
127
|
+
<Stack screenOptions={{ headerShown: false }} />
|
|
128
|
+
</UiProvider>
|
|
129
|
+
</GestureHandlerRootView>
|
|
130
|
+
)
|
|
131
|
+
}
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
## Theme
|
|
135
|
+
|
|
136
|
+
`BaseTheme` is the contract every component reads:
|
|
137
|
+
|
|
138
|
+
- `colors`: surfaces (`background`, `surface`, `surfaceRaised`, `surfaceSunken`), borders, text
|
|
139
|
+
(`text`, `textMuted`, `textDimmed`), and for each tone (`primary`, `secondary`, `neutral`,
|
|
140
|
+
`danger`, `success`, `warning`, `info`) a solid, a `*Soft` and an `on*` color, plus `overlay`,
|
|
141
|
+
`focus`, `shadow`. Each tone also takes an optional `*Text` color (`primaryText`, ...) for text
|
|
142
|
+
and icons drawn in that tone on a surface (soft, outline and ghost buttons, badges, banners,
|
|
143
|
+
links, active tabs). It defaults to the solid color (`text` for `secondary` and `neutral`), so a
|
|
144
|
+
bright brand color such as a yellow primary can stay the fill while text stays readable.
|
|
145
|
+
- `radius` (`none` to `full`), `space(n)` (n \* 8), `typography` (`fonts`, `variants`: display,
|
|
146
|
+
title, heading, body, label, caption), `motion` (durations, springs, press scale, `pressedOpacity`, `disabledOpacity`),
|
|
147
|
+
`sizes` (`control` and `icon` per `sm` / `md` / `lg`, `minTouchTarget`, `borderWidth`).
|
|
148
|
+
- Typography: `fonts` maps weights to font families for the text face. A variant can set its own
|
|
149
|
+
`fontFamily` (for example a display face on `display`, `title` and `heading`), and every text in
|
|
150
|
+
that variant uses it, including button labels (variant `label`). A weight override on such a
|
|
151
|
+
variant keeps its family. Font family and weight are always set together, so switching to a
|
|
152
|
+
theme without custom fonts resets to the system font.
|
|
153
|
+
- `components`: optional per-component tokens (`button.radius`, `textField.height.md`,
|
|
154
|
+
`sheet.radius`, `tabBar.background`, ...). Each component falls back to base tokens when its
|
|
155
|
+
entry is missing.
|
|
156
|
+
|
|
157
|
+
`createTheme(overrides, base = lightTheme)` deep merges a partial theme. A type parameter adds
|
|
158
|
+
app-specific keys.
|
|
159
|
+
|
|
160
|
+
```ts
|
|
161
|
+
import { createTheme, darkTheme, lightTheme } from '@xleddyl/443-components-native/theme'
|
|
162
|
+
|
|
163
|
+
type Brand = { brand: { name: string } }
|
|
164
|
+
|
|
165
|
+
export const textreme = createTheme<Brand>(
|
|
166
|
+
{
|
|
167
|
+
brand: { name: 'Textreme' },
|
|
168
|
+
colors: {
|
|
169
|
+
background: '#F4F8FC',
|
|
170
|
+
text: '#0F2A4A',
|
|
171
|
+
primary: '#1D6FE0',
|
|
172
|
+
primarySoft: '#E3EEFC',
|
|
173
|
+
onPrimary: '#FFFFFF',
|
|
174
|
+
},
|
|
175
|
+
radius: { sm: 10, md: 16, lg: 24 },
|
|
176
|
+
sizes: { control: { sm: 40, md: 56, lg: 64 }, icon: { sm: 18, md: 22, lg: 26 } },
|
|
177
|
+
typography: {
|
|
178
|
+
variants: { body: { fontSize: 18, lineHeight: 24, letterSpacing: 0, weight: 'regular' } },
|
|
179
|
+
},
|
|
180
|
+
},
|
|
181
|
+
lightTheme
|
|
182
|
+
)
|
|
183
|
+
|
|
184
|
+
export const suedtirol = createTheme<Brand>(
|
|
185
|
+
{
|
|
186
|
+
brand: { name: 'Suedtirol Fishing' },
|
|
187
|
+
colors: {
|
|
188
|
+
background: '#f5f8f3',
|
|
189
|
+
primary: '#0d4631',
|
|
190
|
+
primarySoft: '#dcecdf',
|
|
191
|
+
secondary: '#bde68f',
|
|
192
|
+
onSecondary: '#0d4631',
|
|
193
|
+
},
|
|
194
|
+
radius: { xs: 8, sm: 12, md: 18, lg: 24, xl: 32 },
|
|
195
|
+
components: { button: { radius: 9999 }, textField: { radius: 16 } },
|
|
196
|
+
},
|
|
197
|
+
lightTheme
|
|
198
|
+
)
|
|
199
|
+
|
|
200
|
+
export const suedtirolDark = createTheme<Brand>({ brand: { name: 'Suedtirol dark' } }, darkTheme)
|
|
201
|
+
|
|
202
|
+
export const themes = { textreme, suedtirol, suedtirolDark }
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
Switch at runtime with `UnistylesRuntime.setTheme('suedtirol')`. Read the theme in components with
|
|
206
|
+
`useUnistyles()` or in `StyleSheet.create((theme) => ...)`.
|
|
207
|
+
|
|
208
|
+
## Presets
|
|
209
|
+
|
|
210
|
+
`@xleddyl/443-components-native/presets` ships three ready-made looks, each with a light and a dark theme built with
|
|
211
|
+
`createTheme`. They are pure theme data: every component works the same with them.
|
|
212
|
+
|
|
213
|
+
| Preset | Label | Look | Fonts |
|
|
214
|
+
| ----------- | -------- | ----------------------------------------------------------------------- | --------------------------------------------------------- |
|
|
215
|
+
| `default` | Default | Textreme Access Control: clear blue accent, cool surfaces, tall targets | system font |
|
|
216
|
+
| `suedtirol` | Südtirol | deep green and lime, round compact controls | Funnel Sans, Funnel Display on display, title and heading |
|
|
217
|
+
| `spotfish` | Spotfish | signal yellow on white or graphite, `primaryText` keeps text readable | Funnel Sans, Unbounded on display, title and heading |
|
|
218
|
+
|
|
219
|
+
The brand colors match the presets of `@xleddyl/443-components-vue`, so web and mobile stay consistent.
|
|
220
|
+
|
|
221
|
+
```ts
|
|
222
|
+
import { configureUi } from '@xleddyl/443-components-native/theme'
|
|
223
|
+
import { presetInitialTheme, presetThemes } from '@xleddyl/443-components-native/presets'
|
|
224
|
+
|
|
225
|
+
const themes = presetThemes()
|
|
226
|
+
configureUi({ themes, initialTheme: presetInitialTheme('suedtirol', 'system') })
|
|
227
|
+
|
|
228
|
+
type AppThemes = typeof themes
|
|
229
|
+
declare module 'react-native-unistyles' {
|
|
230
|
+
export interface UnistylesThemes extends AppThemes {}
|
|
231
|
+
}
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
Load the fonts in the root layout (see below), then switch anywhere with `usePreset()`:
|
|
235
|
+
|
|
236
|
+
```tsx
|
|
237
|
+
const { preset, mode, setPreset, setMode } = usePreset()
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
- `presets.default.light`, `presets.suedtirol.dark`, ...: the `PresetTheme` objects (a `BaseTheme`
|
|
241
|
+
plus `preset: { name, label, description, scheme }`). Extend one with
|
|
242
|
+
`createTheme(overrides, presets.suedtirol.light)`.
|
|
243
|
+
- `presetThemes()` returns the Unistyles themes map: `default-light`, `default-dark`,
|
|
244
|
+
`suedtirol-light`, `suedtirol-dark`, `spotfish-light`, `spotfish-dark`.
|
|
245
|
+
- `presetInitialTheme(preset, mode)` returns the theme name to start with. `mode` is `light`,
|
|
246
|
+
`dark` or `system`.
|
|
247
|
+
- `usePreset()` returns `{ preset, scheme, mode, label, description, setPreset, setMode }`;
|
|
248
|
+
`useThemeMode()` returns `{ mode, scheme, setMode }`. `setPreset` and `setThemeMode` also work
|
|
249
|
+
outside React.
|
|
250
|
+
- Mode `system` follows the device scheme and keeps following it while the app runs. On iOS and
|
|
251
|
+
Android, `light` and `dark` also set `Appearance.setColorScheme`, so native tabs, Liquid Glass,
|
|
252
|
+
`@expo/ui` controls, alerts and the keyboard match the theme (`system` resets it to
|
|
253
|
+
`unspecified`). Do not combine presets with `adaptiveThemes`, which needs themes named `light`
|
|
254
|
+
and `dark`.
|
|
255
|
+
|
|
256
|
+
### Preset fonts
|
|
257
|
+
|
|
258
|
+
The OFL font files ship in `assets/fonts` (each folder has its `OFL.txt`), and
|
|
259
|
+
`@xleddyl/443-components-native/fonts` exports `presetFonts` (also `suedtirolFonts`, `spotfishFonts`), keyed by the
|
|
260
|
+
family names the presets use. Load them at runtime with `expo-font`:
|
|
261
|
+
|
|
262
|
+
```tsx
|
|
263
|
+
import { presetFonts } from '@xleddyl/443-components-native/fonts'
|
|
264
|
+
import { useFonts } from 'expo-font'
|
|
265
|
+
|
|
266
|
+
const [loaded, error] = useFonts(presetFonts)
|
|
267
|
+
if (!loaded && !error) return null
|
|
268
|
+
```
|
|
269
|
+
|
|
270
|
+
Or embed them at build time with the `expo-font` config plugin (the file names match the
|
|
271
|
+
PostScript names, so the same family names work on iOS and Android):
|
|
272
|
+
|
|
273
|
+
```json
|
|
274
|
+
[
|
|
275
|
+
"expo-font",
|
|
276
|
+
{
|
|
277
|
+
"fonts": [
|
|
278
|
+
"node_modules/@xleddyl/443-components-native/assets/fonts/funnel-sans/FunnelSans-Regular.ttf",
|
|
279
|
+
"node_modules/@xleddyl/443-components-native/assets/fonts/funnel-sans/FunnelSans-Medium.ttf",
|
|
280
|
+
"node_modules/@xleddyl/443-components-native/assets/fonts/funnel-sans/FunnelSans-SemiBold.ttf",
|
|
281
|
+
"node_modules/@xleddyl/443-components-native/assets/fonts/funnel-sans/FunnelSans-Bold.ttf",
|
|
282
|
+
"node_modules/@xleddyl/443-components-native/assets/fonts/funnel-display/FunnelDisplay-Bold.ttf",
|
|
283
|
+
"node_modules/@xleddyl/443-components-native/assets/fonts/unbounded/Unbounded-SemiBold.ttf"
|
|
284
|
+
]
|
|
285
|
+
}
|
|
286
|
+
]
|
|
287
|
+
```
|
|
288
|
+
|
|
289
|
+
Only `suedtirol` and `spotfish` need fonts. Until they are loaded (or if they never are), text
|
|
290
|
+
falls back to the platform font (on web the system font stack is appended to every custom
|
|
291
|
+
family), and switching to `default` always resets to the system font.
|
|
292
|
+
|
|
293
|
+
## Icons
|
|
294
|
+
|
|
295
|
+
Components take `IconSource`: a registry name (`'close'`, `'home'`, `'fingerprint'`, ...) or a
|
|
296
|
+
React element. Names are rendered by the configured icon renderer and fall back to built-in glyphs
|
|
297
|
+
drawn with plain Views.
|
|
298
|
+
|
|
299
|
+
- `@xleddyl/443-components-native/icons` (needs `react-native-svg`) ships `svgIconRenderer`, the Heroicons outline
|
|
300
|
+
set (MIT) for every `BuiltinIconName`: arrows, chevrons, status icons, `home`, `user`, `users`,
|
|
301
|
+
`settings`, `bell`, `backspace`, `fingerprint`, `calendar`, `clock`, `trash`, `edit`, `share`,
|
|
302
|
+
`more`, `filter`, `star`, `heart`, `lock`, `mail`, `image`, `camera`, `qr-code`, `map-pin` and
|
|
303
|
+
more.
|
|
304
|
+
- Without a renderer, the View glyphs cover what the base components use (close, check, chevrons,
|
|
305
|
+
arrows, status icons, backspace, fingerprint, calendar, clock, user, menu, more, grid). Other
|
|
306
|
+
names draw a neutral placeholder and warn once in development.
|
|
307
|
+
|
|
308
|
+
Add app icons by augmenting `IconRegistry` and passing paths or your own renderer:
|
|
309
|
+
|
|
310
|
+
```ts
|
|
311
|
+
import { composeIconRenderers } from '@xleddyl/443-components-native/theme'
|
|
312
|
+
import { createSvgIconRenderer } from '@xleddyl/443-components-native/icons'
|
|
313
|
+
|
|
314
|
+
declare module '@xleddyl/443-components-native' {
|
|
315
|
+
interface IconRegistry {
|
|
316
|
+
fish: true
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
configureUi({
|
|
321
|
+
themes,
|
|
322
|
+
initialTheme: 'suedtirol-light',
|
|
323
|
+
icons: composeIconRenderers(
|
|
324
|
+
myBrandIcons,
|
|
325
|
+
createSvgIconRenderer({ fish: ['M3 12c3-4 9-6 14-2l4-3v10l-4-3c-5 4-11 2-14-2Z'] })
|
|
326
|
+
),
|
|
327
|
+
})
|
|
328
|
+
```
|
|
329
|
+
|
|
330
|
+
`configureIcons(renderer)` swaps the renderer at runtime. A renderer returns `undefined` for names
|
|
331
|
+
it does not know, so the next one (or the View glyphs) takes over.
|
|
332
|
+
|
|
333
|
+
## Components
|
|
334
|
+
|
|
335
|
+
Import from `@xleddyl/443-components-native` or from a group subpath (`@xleddyl/443-components-native/forms`, ...).
|
|
336
|
+
|
|
337
|
+
- **core**: `Text`, `Stack`, `Touchable`, `Icon`, `Button`, `IconButton`, `TextField`, `Screen`,
|
|
338
|
+
`Spinner`
|
|
339
|
+
- **forms**: `Field`, `Checkbox`, `CheckboxGroup`, `Radio`, `RadioGroup`, `Switch`,
|
|
340
|
+
`SegmentedControl`, `Slider`, `Stepper`, `PinInput`, `PinPad`, `ChipInput` (`TokenInput`),
|
|
341
|
+
`DateField`, `Calendar`, `MonthPicker`
|
|
342
|
+
- **display**: `Avatar`, `AvatarGroup`, `Badge`, `Banner`, `Card`, `Chip`, `Tag`, `Divider`,
|
|
343
|
+
`EmptyState`, `KeyValue`, `DescriptionList`, `List`, `ListItem`, `ProgressBar`, `ProgressRing`,
|
|
344
|
+
`Skeleton`, `Stat`
|
|
345
|
+
- **overlays**: `UiProvider`, `Portal`, `PortalHost`, `Overlay`, `Backdrop`, `Sheet`, `Dialog`,
|
|
346
|
+
`ActionSheet`, `Menu`, `MenuItem`, `Popover`, `Select`, `Toast`, `LoadingOverlay`, and the
|
|
347
|
+
imperative hooks below
|
|
348
|
+
- **navigation**: `Header`, `BackButton`, `Tabs`, `TabBar` (for expo-router `Tabs`),
|
|
349
|
+
`useTabBarHeight`, `useScrollOffset`
|
|
350
|
+
- **hooks and utils**: `useControllableState`, `usePressFeedback`, `useSafeSpacing`,
|
|
351
|
+
`useReducedMotion`, `hitSlopFor`, `toneColors`, `buttonColors`, `textToneColor`
|
|
352
|
+
|
|
353
|
+
Shared vocabulary: `size` (`sm` / `md` / `lg`), `tone`, `variant` (`solid`, `soft`, `outline`,
|
|
354
|
+
`ghost`), `value` / `defaultValue` / `onValueChange`, `open` / `defaultOpen` / `onOpenChange`,
|
|
355
|
+
`disabled`, `invalid` or `error` (string shows a message), `style` for the root and `styles` for
|
|
356
|
+
per-part overrides, slots (`leftElement`, `rightElement`, `header`, `footer`, `emptyState`).
|
|
357
|
+
Inputs placed inside `Field` read its label, error, disabled and required state.
|
|
358
|
+
|
|
359
|
+
### Overlays and React context
|
|
360
|
+
|
|
361
|
+
By default sheets, dialogs and popovers render into the root `PortalHost`, above everything, so
|
|
362
|
+
providers declared inside a screen are not visible to their content. Pass `portal={false}` to
|
|
363
|
+
`Sheet`, `Dialog`, `ActionSheet`, `Popover`, `Menu` or `Overlay` to render in place through a
|
|
364
|
+
React Native `Modal` (transparent, full screen): screen context is kept, at the cost of the
|
|
365
|
+
limits listed below.
|
|
366
|
+
|
|
367
|
+
### Imperative overlays
|
|
368
|
+
|
|
369
|
+
`UiProvider` mounts a host for every imperative API, so each one works from any component and,
|
|
370
|
+
except `useLoadingState`, from plain functions too (stores, API clients, navigation guards). The
|
|
371
|
+
names match the `@xleddyl/443-components-vue` composables.
|
|
372
|
+
|
|
373
|
+
| Hook | Plain object | Returns |
|
|
374
|
+
| ---------------------------- | --------------------------------- | ---------------------------------------------------------------------------------------- |
|
|
375
|
+
| `useToast()` | `toast` | `show`, `success`, `error`, `warning`, `info`, `loading`, `update`, `dismiss`, `promise` |
|
|
376
|
+
| `useConfirm()`, `useAlert()` | `dialog.confirm`, `dialog.alert` | `Promise<boolean>`, `Promise<void>` |
|
|
377
|
+
| `usePrompt()` | `dialog.prompt` | `Promise<string \| null>` (text field, optional `validate`, `secure`) |
|
|
378
|
+
| `useSheet()`, `useModal()` | `overlay.sheet`, `overlay.dialog` | `open(Component, props, options)`: `Promise<Result \| null>` |
|
|
379
|
+
| `useActionSheet()` | `actionSheet.show` | `Promise<key \| null>` |
|
|
380
|
+
| `useLoading()` | `loading` | `show(message)` (returns a release function), `hide`, `wrap`, `active` |
|
|
381
|
+
| `useLoadingState()` | | `{ loading, run }`, scoped to one component (buttons, forms) |
|
|
382
|
+
|
|
383
|
+
```tsx
|
|
384
|
+
const PickSpecies = ({ overlay, current }: OverlayComponentProps<string> & { current?: string }) => (
|
|
385
|
+
<Button onPress={() => overlay.resolve('Grayling')}>Grayling</Button>
|
|
386
|
+
)
|
|
387
|
+
|
|
388
|
+
const sheet = useSheet()
|
|
389
|
+
const species = await sheet.open(PickSpecies, { current }, { title: 'Species' })
|
|
390
|
+
const prompt = usePrompt()
|
|
391
|
+
const name = await prompt({ title: 'Rename', defaultValue: 'Upper Adige' })
|
|
392
|
+
await loading.wrap(api.sync(), 'Syncing')
|
|
393
|
+
const save = useLoadingState()
|
|
394
|
+
<Button loading={save.loading} onPress={() => save.run(api.save)}>Save</Button>
|
|
395
|
+
```
|
|
396
|
+
|
|
397
|
+
- A component opened with `sheet.open` or `modal.open` gets an `overlay` prop (`resolve(result)`,
|
|
398
|
+
`close()`); nested components read the same controls with `useOverlayContext<Result>()`.
|
|
399
|
+
Dismissing (swipe, backdrop, back button, `close`) resolves `null`. Overlays stack: a sheet can
|
|
400
|
+
open another sheet and await it. `options` takes `title`, `description`, `dismissible`,
|
|
401
|
+
`showClose`, `snapPoints`, `scrollable`.
|
|
402
|
+
- `toast.promise(task, { loading, success, error })` shows a loading toast and turns it into a
|
|
403
|
+
success or error toast; `success` and `error` may be functions of the result or the error.
|
|
404
|
+
- Global loading is ref counted: overlapping `wrap` calls keep one `LoadingOverlay` up until the
|
|
405
|
+
last finishes, showing the newest message.
|
|
406
|
+
- Toasts stack like a deck (the newest in front, older ones peeking behind). Tap one to expand
|
|
407
|
+
the stack; timers pause while it is expanded or being dragged. Each toast shows a tone icon in
|
|
408
|
+
a soft circle, title, description, optional action and close button, and a timer bar
|
|
409
|
+
(`showTimer` on `ToastHost` / `UiProvider toast`, or the `toast.timer` component token).
|
|
410
|
+
- Turn hosts off with `UiProvider` props `toast={false}`, `dialogs={false}`, `overlays={false}`,
|
|
411
|
+
`loading={false}`.
|
|
412
|
+
|
|
413
|
+
## Native layer
|
|
414
|
+
|
|
415
|
+
`@xleddyl/443-components-native/native` wraps `@expo/ui` (SwiftUI, Jetpack Compose) and `expo-glass-effect`:
|
|
416
|
+
`NativeSwitch`, `NativeSlider`, `NativePicker`, `NativeDatePicker`, `NativeTextField`,
|
|
417
|
+
`NativeButton`, `NativeForm` / `NativeSection`, `NativeContextMenu`, `NativeBottomSheet`,
|
|
418
|
+
`NativeProgress`, `GlassSurface`, `GlassGroup`, `useLiquidGlass`, `useNativeColors` and
|
|
419
|
+
`fromMaterialColors` (Material You colors into a theme). `@xleddyl/443-components-native/native-tabs` themes
|
|
420
|
+
expo-router `NativeTabs`. Every wrapper falls back to the base component on web or without the
|
|
421
|
+
native module. Details, platform mapping and limits: [NATIVE.md](./NATIVE.md).
|
|
422
|
+
|
|
423
|
+
## React Compiler
|
|
424
|
+
|
|
425
|
+
The package is written for the React Compiler (no manual `useMemo`, `useCallback` or `memo`), and
|
|
426
|
+
every component compiles. One finding shaped the styling rules: the Unistyles babel plugin
|
|
427
|
+
rewrites `stylesheet.useVariants()` in a way the compiler cannot lower ("Could not find binding
|
|
428
|
+
for declaration"), and the whole component silently stays uncompiled. Components therefore never
|
|
429
|
+
use Unistyles `variants`; they pass variant values as arguments to dynamic style functions. Apply
|
|
430
|
+
the same rule in app code that runs under the compiler.
|
|
431
|
+
|
|
432
|
+
Three more Unistyles rules surfaced on device, and the components follow them:
|
|
433
|
+
|
|
434
|
+
- A dynamic style function must return an object literal. A function whose body is a ternary
|
|
435
|
+
between two objects gets no theme dependencies from the babel plugin, so its views keep the old
|
|
436
|
+
colors after `UnistylesRuntime.setTheme`. Spread the ternary into one literal instead.
|
|
437
|
+
- Content rendered later into a portal (dialog cards, action sheet rows, loading cards) lives in
|
|
438
|
+
its own small component. The compiler caches JSX built while the overlay is closed, and a view
|
|
439
|
+
first mounted with styles cached under the previous theme stays stale.
|
|
440
|
+
- `contentContainerStyle` is not updated on theme change. Put backgrounds on the scroll view
|
|
441
|
+
`style`.
|
|
442
|
+
|
|
443
|
+
## Known limits
|
|
444
|
+
|
|
445
|
+
- Overlays rendered with `portal={false}` sit in a native `Modal`: toasts and portal overlays
|
|
446
|
+
opened while it is visible render underneath it on iOS and Android. Use one mode per flow.
|
|
447
|
+
- Focus is trapped inside `Sheet`, `Dialog` and other modal overlays on web; native relies on
|
|
448
|
+
`accessibilityViewIsModal` (iOS) and hidden siblings (Android), which is what the platforms
|
|
449
|
+
offer.
|
|
450
|
+
- The View glyphs are approximations. Ship `@xleddyl/443-components-native/icons` or your own renderer in production.
|
|
451
|
+
- Native wrappers follow platform styling: only tint, color scheme and a few colors reach them.
|
|
452
|
+
- `NativeDatePicker` `time` / `datetime` fall back to a stepper or a browser input: there is no
|
|
453
|
+
base-layer time field yet.
|
|
454
|
+
- Native rendering (SwiftUI, Compose, Liquid Glass) is not covered by the typecheck or by
|
|
455
|
+
`expo export`. Check it on a simulator or device build.
|
|
Binary file
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2024 The Funnel Project Authors (https://github.com/Dicotype/Funnel)
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
https://openfontlicense.org
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2024 The Funnel Project Authors (https://github.com/Dicotype/Funnel)
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
https://openfontlicense.org
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type FontAsset = number
|
|
2
|
+
|
|
3
|
+
export declare const funnelSansFonts: {
|
|
4
|
+
'FunnelSans-Regular': FontAsset
|
|
5
|
+
'FunnelSans-Medium': FontAsset
|
|
6
|
+
'FunnelSans-SemiBold': FontAsset
|
|
7
|
+
'FunnelSans-Bold': FontAsset
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export declare const suedtirolFonts: typeof funnelSansFonts & { 'FunnelDisplay-Bold': FontAsset }
|
|
11
|
+
|
|
12
|
+
export declare const spotfishFonts: typeof funnelSansFonts & { 'Unbounded-SemiBold': FontAsset }
|
|
13
|
+
|
|
14
|
+
export declare const presetFonts: typeof suedtirolFonts & typeof spotfishFonts
|
|
15
|
+
|
|
16
|
+
export type PresetFontFamily = keyof typeof presetFonts
|