@webority-technologies/mobile-ui 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -0
- package/lib/commonjs/components/Accordion/Accordion.js +331 -0
- package/lib/commonjs/components/Accordion/index.js +26 -0
- package/lib/commonjs/components/AnimatePresence/AnimatePresence.js +71 -0
- package/lib/commonjs/components/AnimatePresence/index.js +13 -0
- package/lib/commonjs/components/AppBar/AppBar.js +355 -0
- package/lib/commonjs/components/AppBar/index.js +20 -0
- package/lib/commonjs/components/AsyncBlock/AsyncBlock.js +87 -0
- package/lib/commonjs/components/AsyncBlock/index.js +20 -0
- package/lib/commonjs/components/Autocomplete/Autocomplete.js +225 -0
- package/lib/commonjs/components/Autocomplete/index.js +13 -0
- package/lib/commonjs/components/Avatar/Avatar.js +348 -0
- package/lib/commonjs/components/Avatar/index.js +26 -0
- package/lib/commonjs/components/Badge/Badge.js +295 -0
- package/lib/commonjs/components/Badge/index.js +20 -0
- package/lib/commonjs/components/Banner/Banner.js +395 -0
- package/lib/commonjs/components/Banner/index.js +20 -0
- package/lib/commonjs/components/BottomNavigation/BottomNavigation.js +336 -0
- package/lib/commonjs/components/BottomNavigation/index.js +20 -0
- package/lib/commonjs/components/BottomSheet/BottomSheet.js +558 -0
- package/lib/commonjs/components/BottomSheet/index.js +26 -0
- package/lib/commonjs/components/Box/Box.js +204 -0
- package/lib/commonjs/components/Box/index.js +37 -0
- package/lib/commonjs/components/Button/Button.js +316 -0
- package/lib/commonjs/components/Button/index.js +20 -0
- package/lib/commonjs/components/Card/Card.js +314 -0
- package/lib/commonjs/components/Card/index.js +20 -0
- package/lib/commonjs/components/Carousel/Carousel.js +582 -0
- package/lib/commonjs/components/Carousel/index.js +20 -0
- package/lib/commonjs/components/Checkbox/Checkbox.js +184 -0
- package/lib/commonjs/components/Checkbox/index.js +20 -0
- package/lib/commonjs/components/Chip/Chip.js +347 -0
- package/lib/commonjs/components/Chip/index.js +20 -0
- package/lib/commonjs/components/ChoiceGroup/ChoiceGroup.js +250 -0
- package/lib/commonjs/components/ChoiceGroup/index.js +20 -0
- package/lib/commonjs/components/Confetti/Confetti.js +177 -0
- package/lib/commonjs/components/Confetti/index.js +13 -0
- package/lib/commonjs/components/DatePicker/DatePicker.js +995 -0
- package/lib/commonjs/components/DatePicker/index.js +20 -0
- package/lib/commonjs/components/DateRangePicker/DateRangePicker.js +745 -0
- package/lib/commonjs/components/DateRangePicker/index.js +20 -0
- package/lib/commonjs/components/Descriptions/Descriptions.js +107 -0
- package/lib/commonjs/components/Descriptions/index.js +20 -0
- package/lib/commonjs/components/Dialog/Dialog.js +245 -0
- package/lib/commonjs/components/Dialog/index.js +20 -0
- package/lib/commonjs/components/Divider/Divider.js +117 -0
- package/lib/commonjs/components/Divider/index.js +20 -0
- package/lib/commonjs/components/Drawer/Drawer.js +379 -0
- package/lib/commonjs/components/Drawer/index.js +20 -0
- package/lib/commonjs/components/EmptyState/EmptyState.js +207 -0
- package/lib/commonjs/components/EmptyState/index.js +20 -0
- package/lib/commonjs/components/FieldBase/Chevron.js +81 -0
- package/lib/commonjs/components/FieldBase/FieldBase.js +521 -0
- package/lib/commonjs/components/FieldBase/index.js +38 -0
- package/lib/commonjs/components/FilePicker/FilePicker.js +783 -0
- package/lib/commonjs/components/FilePicker/index.js +26 -0
- package/lib/commonjs/components/FloatingActionButton/FloatingActionButton.js +517 -0
- package/lib/commonjs/components/FloatingActionButton/index.js +26 -0
- package/lib/commonjs/components/ForceUpdateDialog/ForceUpdateDialog.js +90 -0
- package/lib/commonjs/components/ForceUpdateDialog/index.js +20 -0
- package/lib/commonjs/components/FormField/FormField.js +162 -0
- package/lib/commonjs/components/FormField/index.js +20 -0
- package/lib/commonjs/components/IconButton/IconButton.js +180 -0
- package/lib/commonjs/components/IconButton/index.js +13 -0
- package/lib/commonjs/components/ImageGallery/ImageGallery.js +581 -0
- package/lib/commonjs/components/ImageGallery/index.js +20 -0
- package/lib/commonjs/components/InlineSelect/InlineSelect.js +178 -0
- package/lib/commonjs/components/InlineSelect/index.js +20 -0
- package/lib/commonjs/components/Input/Input.js +402 -0
- package/lib/commonjs/components/Input/index.js +20 -0
- package/lib/commonjs/components/KeyboardAwareScrollView/KeyboardAwareScrollView.js +115 -0
- package/lib/commonjs/components/KeyboardAwareScrollView/index.js +13 -0
- package/lib/commonjs/components/KeyboardToolbar/KeyboardToolbar.js +135 -0
- package/lib/commonjs/components/KeyboardToolbar/index.js +13 -0
- package/lib/commonjs/components/ListItem/ListItem.js +338 -0
- package/lib/commonjs/components/ListItem/index.js +20 -0
- package/lib/commonjs/components/Modal/Modal.js +356 -0
- package/lib/commonjs/components/Modal/index.js +26 -0
- package/lib/commonjs/components/NumberInput/NumberInput.js +381 -0
- package/lib/commonjs/components/NumberInput/index.js +20 -0
- package/lib/commonjs/components/OTPInput/OTPInput.js +441 -0
- package/lib/commonjs/components/OTPInput/index.js +20 -0
- package/lib/commonjs/components/OptionSheet/OptionSheet.js +450 -0
- package/lib/commonjs/components/PhoneNumberInput/PhoneNumberInput.js +243 -0
- package/lib/commonjs/components/PhoneNumberInput/index.js +32 -0
- package/lib/commonjs/components/PickerTrigger/PickerTrigger.js +156 -0
- package/lib/commonjs/components/PickerTrigger/index.js +20 -0
- package/lib/commonjs/components/ProgressBar/ProgressBar.js +198 -0
- package/lib/commonjs/components/ProgressBar/index.js +20 -0
- package/lib/commonjs/components/Radio/Radio.js +117 -0
- package/lib/commonjs/components/Radio/RadioDot.js +105 -0
- package/lib/commonjs/components/Radio/RadioGroup.js +50 -0
- package/lib/commonjs/components/Radio/index.js +46 -0
- package/lib/commonjs/components/Rating/Rating.js +333 -0
- package/lib/commonjs/components/Rating/index.js +20 -0
- package/lib/commonjs/components/Repeater/Repeater.js +141 -0
- package/lib/commonjs/components/Repeater/index.js +20 -0
- package/lib/commonjs/components/SearchBar/SearchBar.js +284 -0
- package/lib/commonjs/components/SearchBar/index.js +20 -0
- package/lib/commonjs/components/SegmentedControl/SegmentedControl.js +209 -0
- package/lib/commonjs/components/SegmentedControl/index.js +20 -0
- package/lib/commonjs/components/Select/Select.js +270 -0
- package/lib/commonjs/components/Select/index.js +20 -0
- package/lib/commonjs/components/Skeleton/Skeleton.js +293 -0
- package/lib/commonjs/components/Skeleton/SkeletonClock.js +118 -0
- package/lib/commonjs/components/Skeleton/SkeletonContent.js +309 -0
- package/lib/commonjs/components/Skeleton/SkeletonList.js +92 -0
- package/lib/commonjs/components/Skeleton/SkeletonProvider.js +114 -0
- package/lib/commonjs/components/Skeleton/SkeletonSkip.js +37 -0
- package/lib/commonjs/components/Skeleton/index.js +85 -0
- package/lib/commonjs/components/SlideToConfirm/SlideToConfirm.js +258 -0
- package/lib/commonjs/components/SlideToConfirm/index.js +13 -0
- package/lib/commonjs/components/Slider/Slider.js +502 -0
- package/lib/commonjs/components/Slider/index.js +20 -0
- package/lib/commonjs/components/Spinner/Spinner.js +183 -0
- package/lib/commonjs/components/Spinner/index.js +20 -0
- package/lib/commonjs/components/Stepper/Stepper.js +595 -0
- package/lib/commonjs/components/Stepper/index.js +20 -0
- package/lib/commonjs/components/Swipeable/Swipeable.js +380 -0
- package/lib/commonjs/components/Swipeable/index.js +20 -0
- package/lib/commonjs/components/Switch/Switch.js +230 -0
- package/lib/commonjs/components/Switch/index.js +20 -0
- package/lib/commonjs/components/Tabs/Tabs.js +289 -0
- package/lib/commonjs/components/Tabs/index.js +20 -0
- package/lib/commonjs/components/TagInput/TagInput.js +174 -0
- package/lib/commonjs/components/TagInput/index.js +20 -0
- package/lib/commonjs/components/Text/Text.js +146 -0
- package/lib/commonjs/components/Text/index.js +13 -0
- package/lib/commonjs/components/TimePicker/TimePicker.js +692 -0
- package/lib/commonjs/components/TimePicker/index.js +20 -0
- package/lib/commonjs/components/Timeline/Timeline.js +147 -0
- package/lib/commonjs/components/Timeline/index.js +20 -0
- package/lib/commonjs/components/Toast/Toast.js +322 -0
- package/lib/commonjs/components/Toast/ToastProvider.js +199 -0
- package/lib/commonjs/components/Toast/index.js +39 -0
- package/lib/commonjs/components/Tooltip/Tooltip.js +410 -0
- package/lib/commonjs/components/Tooltip/index.js +20 -0
- package/lib/commonjs/components/index.js +596 -0
- package/lib/commonjs/form/FormContext.js +40 -0
- package/lib/commonjs/form/index.js +68 -0
- package/lib/commonjs/form/path.js +91 -0
- package/lib/commonjs/form/rules.js +73 -0
- package/lib/commonjs/form/types.js +2 -0
- package/lib/commonjs/form/useField.js +54 -0
- package/lib/commonjs/form/useForm.js +364 -0
- package/lib/commonjs/hooks/index.js +41 -0
- package/lib/commonjs/hooks/useControllableState.js +32 -0
- package/lib/commonjs/hooks/useDebounce.js +17 -0
- package/lib/commonjs/hooks/usePressAnimation.js +47 -0
- package/lib/commonjs/hooks/useReducedMotion.js +33 -0
- package/lib/commonjs/hooks/useToggle.js +22 -0
- package/lib/commonjs/index.js +341 -0
- package/lib/commonjs/initUI.js +24 -0
- package/lib/commonjs/network/NetworkStatusBanner.js +89 -0
- package/lib/commonjs/network/index.js +13 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/theme/Gradient.js +56 -0
- package/lib/commonjs/theme/ThemeContext.js +101 -0
- package/lib/commonjs/theme/animatedValue.js +54 -0
- package/lib/commonjs/theme/index.js +127 -0
- package/lib/commonjs/theme/merge.js +30 -0
- package/lib/commonjs/theme/textStyle.js +39 -0
- package/lib/commonjs/theme/tokens.js +652 -0
- package/lib/commonjs/theme/types.js +6 -0
- package/lib/commonjs/utils/dimensions.js +31 -0
- package/lib/commonjs/utils/feedback.js +76 -0
- package/lib/commonjs/utils/hapticUtils.js +67 -0
- package/lib/commonjs/utils/index.js +114 -0
- package/lib/commonjs/utils/responsive.js +48 -0
- package/lib/commonjs/utils/shadows.js +12 -0
- package/lib/commonjs/utils/spacing.js +86 -0
- package/lib/commonjs/utils/warnUnknownProps.js +46 -0
- package/lib/module/components/Accordion/Accordion.js +325 -0
- package/lib/module/components/Accordion/index.js +4 -0
- package/lib/module/components/AnimatePresence/AnimatePresence.js +65 -0
- package/lib/module/components/AnimatePresence/index.js +4 -0
- package/lib/module/components/AppBar/AppBar.js +351 -0
- package/lib/module/components/AppBar/index.js +4 -0
- package/lib/module/components/AsyncBlock/AsyncBlock.js +81 -0
- package/lib/module/components/AsyncBlock/index.js +4 -0
- package/lib/module/components/Autocomplete/Autocomplete.js +220 -0
- package/lib/module/components/Autocomplete/index.js +4 -0
- package/lib/module/components/Avatar/Avatar.js +343 -0
- package/lib/module/components/Avatar/index.js +4 -0
- package/lib/module/components/Badge/Badge.js +291 -0
- package/lib/module/components/Badge/index.js +4 -0
- package/lib/module/components/Banner/Banner.js +391 -0
- package/lib/module/components/Banner/index.js +4 -0
- package/lib/module/components/BottomNavigation/BottomNavigation.js +332 -0
- package/lib/module/components/BottomNavigation/index.js +4 -0
- package/lib/module/components/BottomSheet/BottomSheet.js +553 -0
- package/lib/module/components/BottomSheet/index.js +4 -0
- package/lib/module/components/Box/Box.js +198 -0
- package/lib/module/components/Box/index.js +4 -0
- package/lib/module/components/Button/Button.js +312 -0
- package/lib/module/components/Button/index.js +4 -0
- package/lib/module/components/Card/Card.js +310 -0
- package/lib/module/components/Card/index.js +4 -0
- package/lib/module/components/Carousel/Carousel.js +578 -0
- package/lib/module/components/Carousel/index.js +4 -0
- package/lib/module/components/Checkbox/Checkbox.js +181 -0
- package/lib/module/components/Checkbox/index.js +4 -0
- package/lib/module/components/Chip/Chip.js +343 -0
- package/lib/module/components/Chip/index.js +4 -0
- package/lib/module/components/ChoiceGroup/ChoiceGroup.js +246 -0
- package/lib/module/components/ChoiceGroup/index.js +4 -0
- package/lib/module/components/Confetti/Confetti.js +173 -0
- package/lib/module/components/Confetti/index.js +4 -0
- package/lib/module/components/DatePicker/DatePicker.js +990 -0
- package/lib/module/components/DatePicker/index.js +4 -0
- package/lib/module/components/DateRangePicker/DateRangePicker.js +742 -0
- package/lib/module/components/DateRangePicker/index.js +4 -0
- package/lib/module/components/Descriptions/Descriptions.js +101 -0
- package/lib/module/components/Descriptions/index.js +4 -0
- package/lib/module/components/Dialog/Dialog.js +240 -0
- package/lib/module/components/Dialog/index.js +4 -0
- package/lib/module/components/Divider/Divider.js +114 -0
- package/lib/module/components/Divider/index.js +4 -0
- package/lib/module/components/Drawer/Drawer.js +375 -0
- package/lib/module/components/Drawer/index.js +4 -0
- package/lib/module/components/EmptyState/EmptyState.js +203 -0
- package/lib/module/components/EmptyState/index.js +4 -0
- package/lib/module/components/FieldBase/Chevron.js +75 -0
- package/lib/module/components/FieldBase/FieldBase.js +511 -0
- package/lib/module/components/FieldBase/index.js +4 -0
- package/lib/module/components/FilePicker/FilePicker.js +778 -0
- package/lib/module/components/FilePicker/index.js +4 -0
- package/lib/module/components/FloatingActionButton/FloatingActionButton.js +512 -0
- package/lib/module/components/FloatingActionButton/index.js +4 -0
- package/lib/module/components/ForceUpdateDialog/ForceUpdateDialog.js +84 -0
- package/lib/module/components/ForceUpdateDialog/index.js +4 -0
- package/lib/module/components/FormField/FormField.js +158 -0
- package/lib/module/components/FormField/index.js +4 -0
- package/lib/module/components/IconButton/IconButton.js +176 -0
- package/lib/module/components/IconButton/index.js +4 -0
- package/lib/module/components/ImageGallery/ImageGallery.js +576 -0
- package/lib/module/components/ImageGallery/index.js +4 -0
- package/lib/module/components/InlineSelect/InlineSelect.js +174 -0
- package/lib/module/components/InlineSelect/index.js +4 -0
- package/lib/module/components/Input/Input.js +398 -0
- package/lib/module/components/Input/index.js +4 -0
- package/lib/module/components/KeyboardAwareScrollView/KeyboardAwareScrollView.js +111 -0
- package/lib/module/components/KeyboardAwareScrollView/index.js +4 -0
- package/lib/module/components/KeyboardToolbar/KeyboardToolbar.js +130 -0
- package/lib/module/components/KeyboardToolbar/index.js +4 -0
- package/lib/module/components/ListItem/ListItem.js +334 -0
- package/lib/module/components/ListItem/index.js +4 -0
- package/lib/module/components/Modal/Modal.js +352 -0
- package/lib/module/components/Modal/index.js +4 -0
- package/lib/module/components/NumberInput/NumberInput.js +377 -0
- package/lib/module/components/NumberInput/index.js +4 -0
- package/lib/module/components/OTPInput/OTPInput.js +438 -0
- package/lib/module/components/OTPInput/index.js +4 -0
- package/lib/module/components/OptionSheet/OptionSheet.js +444 -0
- package/lib/module/components/PhoneNumberInput/PhoneNumberInput.js +238 -0
- package/lib/module/components/PhoneNumberInput/index.js +4 -0
- package/lib/module/components/PickerTrigger/PickerTrigger.js +152 -0
- package/lib/module/components/PickerTrigger/index.js +4 -0
- package/lib/module/components/ProgressBar/ProgressBar.js +195 -0
- package/lib/module/components/ProgressBar/index.js +4 -0
- package/lib/module/components/Radio/Radio.js +113 -0
- package/lib/module/components/Radio/RadioDot.js +99 -0
- package/lib/module/components/Radio/RadioGroup.js +45 -0
- package/lib/module/components/Radio/index.js +6 -0
- package/lib/module/components/Rating/Rating.js +329 -0
- package/lib/module/components/Rating/index.js +4 -0
- package/lib/module/components/Repeater/Repeater.js +135 -0
- package/lib/module/components/Repeater/index.js +4 -0
- package/lib/module/components/SearchBar/SearchBar.js +280 -0
- package/lib/module/components/SearchBar/index.js +4 -0
- package/lib/module/components/SegmentedControl/SegmentedControl.js +205 -0
- package/lib/module/components/SegmentedControl/index.js +4 -0
- package/lib/module/components/Select/Select.js +266 -0
- package/lib/module/components/Select/index.js +4 -0
- package/lib/module/components/Skeleton/Skeleton.js +286 -0
- package/lib/module/components/Skeleton/SkeletonClock.js +111 -0
- package/lib/module/components/Skeleton/SkeletonContent.js +304 -0
- package/lib/module/components/Skeleton/SkeletonList.js +87 -0
- package/lib/module/components/Skeleton/SkeletonProvider.js +106 -0
- package/lib/module/components/Skeleton/SkeletonSkip.js +31 -0
- package/lib/module/components/Skeleton/index.js +9 -0
- package/lib/module/components/SlideToConfirm/SlideToConfirm.js +254 -0
- package/lib/module/components/SlideToConfirm/index.js +4 -0
- package/lib/module/components/Slider/Slider.js +498 -0
- package/lib/module/components/Slider/index.js +4 -0
- package/lib/module/components/Spinner/Spinner.js +179 -0
- package/lib/module/components/Spinner/index.js +4 -0
- package/lib/module/components/Stepper/Stepper.js +591 -0
- package/lib/module/components/Stepper/index.js +4 -0
- package/lib/module/components/Swipeable/Swipeable.js +375 -0
- package/lib/module/components/Swipeable/index.js +4 -0
- package/lib/module/components/Switch/Switch.js +227 -0
- package/lib/module/components/Switch/index.js +4 -0
- package/lib/module/components/Tabs/Tabs.js +285 -0
- package/lib/module/components/Tabs/index.js +4 -0
- package/lib/module/components/TagInput/TagInput.js +170 -0
- package/lib/module/components/TagInput/index.js +4 -0
- package/lib/module/components/Text/Text.js +142 -0
- package/lib/module/components/Text/index.js +4 -0
- package/lib/module/components/TimePicker/TimePicker.js +686 -0
- package/lib/module/components/TimePicker/index.js +4 -0
- package/lib/module/components/Timeline/Timeline.js +141 -0
- package/lib/module/components/Timeline/index.js +4 -0
- package/lib/module/components/Toast/Toast.js +317 -0
- package/lib/module/components/Toast/ToastProvider.js +191 -0
- package/lib/module/components/Toast/index.js +5 -0
- package/lib/module/components/Tooltip/Tooltip.js +405 -0
- package/lib/module/components/Tooltip/index.js +4 -0
- package/lib/module/components/index.js +65 -0
- package/lib/module/form/FormContext.js +32 -0
- package/lib/module/form/index.js +16 -0
- package/lib/module/form/path.js +84 -0
- package/lib/module/form/rules.js +59 -0
- package/lib/module/form/types.js +2 -0
- package/lib/module/form/useField.js +49 -0
- package/lib/module/form/useForm.js +360 -0
- package/lib/module/hooks/index.js +8 -0
- package/lib/module/hooks/useControllableState.js +28 -0
- package/lib/module/hooks/useDebounce.js +12 -0
- package/lib/module/hooks/usePressAnimation.js +42 -0
- package/lib/module/hooks/useReducedMotion.js +29 -0
- package/lib/module/hooks/useToggle.js +17 -0
- package/lib/module/index.js +17 -0
- package/lib/module/initUI.js +19 -0
- package/lib/module/network/NetworkStatusBanner.js +83 -0
- package/lib/module/network/index.js +4 -0
- package/lib/module/package.json +1 -0
- package/lib/module/theme/Gradient.js +49 -0
- package/lib/module/theme/ThemeContext.js +93 -0
- package/lib/module/theme/animatedValue.js +49 -0
- package/lib/module/theme/index.js +51 -0
- package/lib/module/theme/merge.js +25 -0
- package/lib/module/theme/textStyle.js +34 -0
- package/lib/module/theme/tokens.js +648 -0
- package/lib/module/theme/types.js +4 -0
- package/lib/module/utils/dimensions.js +4 -0
- package/lib/module/utils/feedback.js +70 -0
- package/lib/module/utils/hapticUtils.js +60 -0
- package/lib/module/utils/index.js +9 -0
- package/lib/module/utils/responsive.js +42 -0
- package/lib/module/utils/shadows.js +7 -0
- package/lib/module/utils/spacing.js +82 -0
- package/lib/module/utils/warnUnknownProps.js +42 -0
- package/lib/typescript/commonjs/components/Accordion/Accordion.d.ts +48 -0
- package/lib/typescript/commonjs/components/Accordion/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/AnimatePresence/AnimatePresence.d.ts +30 -0
- package/lib/typescript/commonjs/components/AnimatePresence/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/AppBar/AppBar.d.ts +50 -0
- package/lib/typescript/commonjs/components/AppBar/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/AsyncBlock/AsyncBlock.d.ts +39 -0
- package/lib/typescript/commonjs/components/AsyncBlock/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Autocomplete/Autocomplete.d.ts +53 -0
- package/lib/typescript/commonjs/components/Autocomplete/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Avatar/Avatar.d.ts +75 -0
- package/lib/typescript/commonjs/components/Avatar/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Badge/Badge.d.ts +34 -0
- package/lib/typescript/commonjs/components/Badge/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Banner/Banner.d.ts +47 -0
- package/lib/typescript/commonjs/components/Banner/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/BottomNavigation/BottomNavigation.d.ts +40 -0
- package/lib/typescript/commonjs/components/BottomNavigation/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/BottomSheet/BottomSheet.d.ts +113 -0
- package/lib/typescript/commonjs/components/BottomSheet/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Box/Box.d.ts +59 -0
- package/lib/typescript/commonjs/components/Box/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Button/Button.d.ts +41 -0
- package/lib/typescript/commonjs/components/Button/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Card/Card.d.ts +57 -0
- package/lib/typescript/commonjs/components/Card/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Carousel/Carousel.d.ts +77 -0
- package/lib/typescript/commonjs/components/Carousel/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Checkbox/Checkbox.d.ts +32 -0
- package/lib/typescript/commonjs/components/Checkbox/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Chip/Chip.d.ts +41 -0
- package/lib/typescript/commonjs/components/Chip/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/ChoiceGroup/ChoiceGroup.d.ts +100 -0
- package/lib/typescript/commonjs/components/ChoiceGroup/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Confetti/Confetti.d.ts +41 -0
- package/lib/typescript/commonjs/components/Confetti/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/DatePicker/DatePicker.d.ts +63 -0
- package/lib/typescript/commonjs/components/DatePicker/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/DateRangePicker/DateRangePicker.d.ts +69 -0
- package/lib/typescript/commonjs/components/DateRangePicker/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Descriptions/Descriptions.d.ts +30 -0
- package/lib/typescript/commonjs/components/Descriptions/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Dialog/Dialog.d.ts +45 -0
- package/lib/typescript/commonjs/components/Dialog/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Divider/Divider.d.ts +19 -0
- package/lib/typescript/commonjs/components/Divider/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Drawer/Drawer.d.ts +56 -0
- package/lib/typescript/commonjs/components/Drawer/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/EmptyState/EmptyState.d.ts +24 -0
- package/lib/typescript/commonjs/components/EmptyState/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/FieldBase/Chevron.d.ts +20 -0
- package/lib/typescript/commonjs/components/FieldBase/FieldBase.d.ts +180 -0
- package/lib/typescript/commonjs/components/FieldBase/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/FilePicker/FilePicker.d.ts +155 -0
- package/lib/typescript/commonjs/components/FilePicker/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/FloatingActionButton/FloatingActionButton.d.ts +59 -0
- package/lib/typescript/commonjs/components/FloatingActionButton/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/ForceUpdateDialog/ForceUpdateDialog.d.ts +47 -0
- package/lib/typescript/commonjs/components/ForceUpdateDialog/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/FormField/FormField.d.ts +49 -0
- package/lib/typescript/commonjs/components/FormField/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/IconButton/IconButton.d.ts +34 -0
- package/lib/typescript/commonjs/components/IconButton/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/ImageGallery/ImageGallery.d.ts +55 -0
- package/lib/typescript/commonjs/components/ImageGallery/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/InlineSelect/InlineSelect.d.ts +91 -0
- package/lib/typescript/commonjs/components/InlineSelect/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Input/Input.d.ts +69 -0
- package/lib/typescript/commonjs/components/Input/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/KeyboardAwareScrollView/KeyboardAwareScrollView.d.ts +20 -0
- package/lib/typescript/commonjs/components/KeyboardAwareScrollView/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/KeyboardToolbar/KeyboardToolbar.d.ts +29 -0
- package/lib/typescript/commonjs/components/KeyboardToolbar/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/ListItem/ListItem.d.ts +46 -0
- package/lib/typescript/commonjs/components/ListItem/index.d.ts +4 -0
- package/lib/typescript/commonjs/components/Modal/Modal.d.ts +47 -0
- package/lib/typescript/commonjs/components/Modal/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/NumberInput/NumberInput.d.ts +42 -0
- package/lib/typescript/commonjs/components/NumberInput/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/OTPInput/OTPInput.d.ts +35 -0
- package/lib/typescript/commonjs/components/OTPInput/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/OptionSheet/OptionSheet.d.ts +57 -0
- package/lib/typescript/commonjs/components/PhoneNumberInput/PhoneNumberInput.d.ts +58 -0
- package/lib/typescript/commonjs/components/PhoneNumberInput/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/PickerTrigger/PickerTrigger.d.ts +60 -0
- package/lib/typescript/commonjs/components/PickerTrigger/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/ProgressBar/ProgressBar.d.ts +33 -0
- package/lib/typescript/commonjs/components/ProgressBar/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Radio/Radio.d.ts +33 -0
- package/lib/typescript/commonjs/components/Radio/RadioDot.d.ts +24 -0
- package/lib/typescript/commonjs/components/Radio/RadioGroup.d.ts +17 -0
- package/lib/typescript/commonjs/components/Radio/index.d.ts +7 -0
- package/lib/typescript/commonjs/components/Rating/Rating.d.ts +37 -0
- package/lib/typescript/commonjs/components/Rating/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Repeater/Repeater.d.ts +43 -0
- package/lib/typescript/commonjs/components/Repeater/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/SearchBar/SearchBar.d.ts +32 -0
- package/lib/typescript/commonjs/components/SearchBar/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/SegmentedControl/SegmentedControl.d.ts +42 -0
- package/lib/typescript/commonjs/components/SegmentedControl/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Select/Select.d.ts +106 -0
- package/lib/typescript/commonjs/components/Select/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Skeleton/Skeleton.d.ts +80 -0
- package/lib/typescript/commonjs/components/Skeleton/SkeletonClock.d.ts +60 -0
- package/lib/typescript/commonjs/components/Skeleton/SkeletonContent.d.ts +102 -0
- package/lib/typescript/commonjs/components/Skeleton/SkeletonList.d.ts +30 -0
- package/lib/typescript/commonjs/components/Skeleton/SkeletonProvider.d.ts +66 -0
- package/lib/typescript/commonjs/components/Skeleton/SkeletonSkip.d.ts +25 -0
- package/lib/typescript/commonjs/components/Skeleton/index.d.ts +13 -0
- package/lib/typescript/commonjs/components/SlideToConfirm/SlideToConfirm.d.ts +33 -0
- package/lib/typescript/commonjs/components/SlideToConfirm/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Slider/Slider.d.ts +47 -0
- package/lib/typescript/commonjs/components/Slider/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Spinner/Spinner.d.ts +19 -0
- package/lib/typescript/commonjs/components/Spinner/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Stepper/Stepper.d.ts +49 -0
- package/lib/typescript/commonjs/components/Stepper/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Swipeable/Swipeable.d.ts +50 -0
- package/lib/typescript/commonjs/components/Swipeable/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Switch/Switch.d.ts +29 -0
- package/lib/typescript/commonjs/components/Switch/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Tabs/Tabs.d.ts +64 -0
- package/lib/typescript/commonjs/components/Tabs/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/TagInput/TagInput.d.ts +36 -0
- package/lib/typescript/commonjs/components/TagInput/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Text/Text.d.ts +24 -0
- package/lib/typescript/commonjs/components/Text/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/TimePicker/TimePicker.d.ts +62 -0
- package/lib/typescript/commonjs/components/TimePicker/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Timeline/Timeline.d.ts +44 -0
- package/lib/typescript/commonjs/components/Timeline/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Toast/Toast.d.ts +44 -0
- package/lib/typescript/commonjs/components/Toast/ToastProvider.d.ts +26 -0
- package/lib/typescript/commonjs/components/Toast/index.d.ts +5 -0
- package/lib/typescript/commonjs/components/Tooltip/Tooltip.d.ts +28 -0
- package/lib/typescript/commonjs/components/Tooltip/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/index.d.ts +125 -0
- package/lib/typescript/commonjs/form/FormContext.d.ts +17 -0
- package/lib/typescript/commonjs/form/index.d.ts +10 -0
- package/lib/typescript/commonjs/form/path.d.ts +10 -0
- package/lib/typescript/commonjs/form/rules.d.ts +37 -0
- package/lib/typescript/commonjs/form/types.d.ts +94 -0
- package/lib/typescript/commonjs/form/useField.d.ts +27 -0
- package/lib/typescript/commonjs/form/useForm.d.ts +10 -0
- package/lib/typescript/commonjs/hooks/index.d.ts +9 -0
- package/lib/typescript/commonjs/hooks/useControllableState.d.ts +17 -0
- package/lib/typescript/commonjs/hooks/useDebounce.d.ts +2 -0
- package/lib/typescript/commonjs/hooks/usePressAnimation.d.ts +13 -0
- package/lib/typescript/commonjs/hooks/useReducedMotion.d.ts +8 -0
- package/lib/typescript/commonjs/hooks/useToggle.d.ts +9 -0
- package/lib/typescript/commonjs/index.d.ts +14 -0
- package/lib/typescript/commonjs/initUI.d.ts +12 -0
- package/lib/typescript/commonjs/network/NetworkStatusBanner.d.ts +19 -0
- package/lib/typescript/commonjs/network/index.d.ts +3 -0
- package/lib/typescript/commonjs/package.json +1 -0
- package/lib/typescript/commonjs/theme/Gradient.d.ts +11 -0
- package/lib/typescript/commonjs/theme/ThemeContext.d.ts +18 -0
- package/lib/typescript/commonjs/theme/animatedValue.d.ts +39 -0
- package/lib/typescript/commonjs/theme/index.d.ts +18 -0
- package/lib/typescript/commonjs/theme/merge.d.ts +3 -0
- package/lib/typescript/commonjs/theme/textStyle.d.ts +18 -0
- package/lib/typescript/commonjs/theme/tokens.d.ts +4 -0
- package/lib/typescript/commonjs/theme/types.d.ts +913 -0
- package/lib/typescript/commonjs/utils/dimensions.d.ts +3 -0
- package/lib/typescript/commonjs/utils/feedback.d.ts +45 -0
- package/lib/typescript/commonjs/utils/hapticUtils.d.ts +12 -0
- package/lib/typescript/commonjs/utils/index.d.ts +11 -0
- package/lib/typescript/commonjs/utils/responsive.d.ts +23 -0
- package/lib/typescript/commonjs/utils/shadows.d.ts +4 -0
- package/lib/typescript/commonjs/utils/spacing.d.ts +61 -0
- package/lib/typescript/commonjs/utils/warnUnknownProps.d.ts +20 -0
- package/lib/typescript/module/components/Accordion/Accordion.d.ts +48 -0
- package/lib/typescript/module/components/Accordion/index.d.ts +3 -0
- package/lib/typescript/module/components/AnimatePresence/AnimatePresence.d.ts +30 -0
- package/lib/typescript/module/components/AnimatePresence/index.d.ts +3 -0
- package/lib/typescript/module/components/AppBar/AppBar.d.ts +50 -0
- package/lib/typescript/module/components/AppBar/index.d.ts +3 -0
- package/lib/typescript/module/components/AsyncBlock/AsyncBlock.d.ts +39 -0
- package/lib/typescript/module/components/AsyncBlock/index.d.ts +3 -0
- package/lib/typescript/module/components/Autocomplete/Autocomplete.d.ts +53 -0
- package/lib/typescript/module/components/Autocomplete/index.d.ts +3 -0
- package/lib/typescript/module/components/Avatar/Avatar.d.ts +75 -0
- package/lib/typescript/module/components/Avatar/index.d.ts +3 -0
- package/lib/typescript/module/components/Badge/Badge.d.ts +34 -0
- package/lib/typescript/module/components/Badge/index.d.ts +3 -0
- package/lib/typescript/module/components/Banner/Banner.d.ts +47 -0
- package/lib/typescript/module/components/Banner/index.d.ts +3 -0
- package/lib/typescript/module/components/BottomNavigation/BottomNavigation.d.ts +40 -0
- package/lib/typescript/module/components/BottomNavigation/index.d.ts +3 -0
- package/lib/typescript/module/components/BottomSheet/BottomSheet.d.ts +113 -0
- package/lib/typescript/module/components/BottomSheet/index.d.ts +3 -0
- package/lib/typescript/module/components/Box/Box.d.ts +59 -0
- package/lib/typescript/module/components/Box/index.d.ts +3 -0
- package/lib/typescript/module/components/Button/Button.d.ts +41 -0
- package/lib/typescript/module/components/Button/index.d.ts +3 -0
- package/lib/typescript/module/components/Card/Card.d.ts +57 -0
- package/lib/typescript/module/components/Card/index.d.ts +3 -0
- package/lib/typescript/module/components/Carousel/Carousel.d.ts +77 -0
- package/lib/typescript/module/components/Carousel/index.d.ts +3 -0
- package/lib/typescript/module/components/Checkbox/Checkbox.d.ts +32 -0
- package/lib/typescript/module/components/Checkbox/index.d.ts +3 -0
- package/lib/typescript/module/components/Chip/Chip.d.ts +41 -0
- package/lib/typescript/module/components/Chip/index.d.ts +3 -0
- package/lib/typescript/module/components/ChoiceGroup/ChoiceGroup.d.ts +100 -0
- package/lib/typescript/module/components/ChoiceGroup/index.d.ts +3 -0
- package/lib/typescript/module/components/Confetti/Confetti.d.ts +41 -0
- package/lib/typescript/module/components/Confetti/index.d.ts +3 -0
- package/lib/typescript/module/components/DatePicker/DatePicker.d.ts +63 -0
- package/lib/typescript/module/components/DatePicker/index.d.ts +3 -0
- package/lib/typescript/module/components/DateRangePicker/DateRangePicker.d.ts +69 -0
- package/lib/typescript/module/components/DateRangePicker/index.d.ts +3 -0
- package/lib/typescript/module/components/Descriptions/Descriptions.d.ts +30 -0
- package/lib/typescript/module/components/Descriptions/index.d.ts +3 -0
- package/lib/typescript/module/components/Dialog/Dialog.d.ts +45 -0
- package/lib/typescript/module/components/Dialog/index.d.ts +3 -0
- package/lib/typescript/module/components/Divider/Divider.d.ts +19 -0
- package/lib/typescript/module/components/Divider/index.d.ts +3 -0
- package/lib/typescript/module/components/Drawer/Drawer.d.ts +56 -0
- package/lib/typescript/module/components/Drawer/index.d.ts +3 -0
- package/lib/typescript/module/components/EmptyState/EmptyState.d.ts +24 -0
- package/lib/typescript/module/components/EmptyState/index.d.ts +3 -0
- package/lib/typescript/module/components/FieldBase/Chevron.d.ts +20 -0
- package/lib/typescript/module/components/FieldBase/FieldBase.d.ts +180 -0
- package/lib/typescript/module/components/FieldBase/index.d.ts +3 -0
- package/lib/typescript/module/components/FilePicker/FilePicker.d.ts +155 -0
- package/lib/typescript/module/components/FilePicker/index.d.ts +3 -0
- package/lib/typescript/module/components/FloatingActionButton/FloatingActionButton.d.ts +59 -0
- package/lib/typescript/module/components/FloatingActionButton/index.d.ts +3 -0
- package/lib/typescript/module/components/ForceUpdateDialog/ForceUpdateDialog.d.ts +47 -0
- package/lib/typescript/module/components/ForceUpdateDialog/index.d.ts +3 -0
- package/lib/typescript/module/components/FormField/FormField.d.ts +49 -0
- package/lib/typescript/module/components/FormField/index.d.ts +3 -0
- package/lib/typescript/module/components/IconButton/IconButton.d.ts +34 -0
- package/lib/typescript/module/components/IconButton/index.d.ts +3 -0
- package/lib/typescript/module/components/ImageGallery/ImageGallery.d.ts +55 -0
- package/lib/typescript/module/components/ImageGallery/index.d.ts +3 -0
- package/lib/typescript/module/components/InlineSelect/InlineSelect.d.ts +91 -0
- package/lib/typescript/module/components/InlineSelect/index.d.ts +3 -0
- package/lib/typescript/module/components/Input/Input.d.ts +69 -0
- package/lib/typescript/module/components/Input/index.d.ts +3 -0
- package/lib/typescript/module/components/KeyboardAwareScrollView/KeyboardAwareScrollView.d.ts +20 -0
- package/lib/typescript/module/components/KeyboardAwareScrollView/index.d.ts +3 -0
- package/lib/typescript/module/components/KeyboardToolbar/KeyboardToolbar.d.ts +29 -0
- package/lib/typescript/module/components/KeyboardToolbar/index.d.ts +3 -0
- package/lib/typescript/module/components/ListItem/ListItem.d.ts +46 -0
- package/lib/typescript/module/components/ListItem/index.d.ts +4 -0
- package/lib/typescript/module/components/Modal/Modal.d.ts +47 -0
- package/lib/typescript/module/components/Modal/index.d.ts +3 -0
- package/lib/typescript/module/components/NumberInput/NumberInput.d.ts +42 -0
- package/lib/typescript/module/components/NumberInput/index.d.ts +3 -0
- package/lib/typescript/module/components/OTPInput/OTPInput.d.ts +35 -0
- package/lib/typescript/module/components/OTPInput/index.d.ts +3 -0
- package/lib/typescript/module/components/OptionSheet/OptionSheet.d.ts +57 -0
- package/lib/typescript/module/components/PhoneNumberInput/PhoneNumberInput.d.ts +58 -0
- package/lib/typescript/module/components/PhoneNumberInput/index.d.ts +3 -0
- package/lib/typescript/module/components/PickerTrigger/PickerTrigger.d.ts +60 -0
- package/lib/typescript/module/components/PickerTrigger/index.d.ts +3 -0
- package/lib/typescript/module/components/ProgressBar/ProgressBar.d.ts +33 -0
- package/lib/typescript/module/components/ProgressBar/index.d.ts +3 -0
- package/lib/typescript/module/components/Radio/Radio.d.ts +33 -0
- package/lib/typescript/module/components/Radio/RadioDot.d.ts +24 -0
- package/lib/typescript/module/components/Radio/RadioGroup.d.ts +17 -0
- package/lib/typescript/module/components/Radio/index.d.ts +7 -0
- package/lib/typescript/module/components/Rating/Rating.d.ts +37 -0
- package/lib/typescript/module/components/Rating/index.d.ts +3 -0
- package/lib/typescript/module/components/Repeater/Repeater.d.ts +43 -0
- package/lib/typescript/module/components/Repeater/index.d.ts +3 -0
- package/lib/typescript/module/components/SearchBar/SearchBar.d.ts +32 -0
- package/lib/typescript/module/components/SearchBar/index.d.ts +3 -0
- package/lib/typescript/module/components/SegmentedControl/SegmentedControl.d.ts +42 -0
- package/lib/typescript/module/components/SegmentedControl/index.d.ts +3 -0
- package/lib/typescript/module/components/Select/Select.d.ts +106 -0
- package/lib/typescript/module/components/Select/index.d.ts +3 -0
- package/lib/typescript/module/components/Skeleton/Skeleton.d.ts +80 -0
- package/lib/typescript/module/components/Skeleton/SkeletonClock.d.ts +60 -0
- package/lib/typescript/module/components/Skeleton/SkeletonContent.d.ts +102 -0
- package/lib/typescript/module/components/Skeleton/SkeletonList.d.ts +30 -0
- package/lib/typescript/module/components/Skeleton/SkeletonProvider.d.ts +66 -0
- package/lib/typescript/module/components/Skeleton/SkeletonSkip.d.ts +25 -0
- package/lib/typescript/module/components/Skeleton/index.d.ts +13 -0
- package/lib/typescript/module/components/SlideToConfirm/SlideToConfirm.d.ts +33 -0
- package/lib/typescript/module/components/SlideToConfirm/index.d.ts +3 -0
- package/lib/typescript/module/components/Slider/Slider.d.ts +47 -0
- package/lib/typescript/module/components/Slider/index.d.ts +3 -0
- package/lib/typescript/module/components/Spinner/Spinner.d.ts +19 -0
- package/lib/typescript/module/components/Spinner/index.d.ts +3 -0
- package/lib/typescript/module/components/Stepper/Stepper.d.ts +49 -0
- package/lib/typescript/module/components/Stepper/index.d.ts +3 -0
- package/lib/typescript/module/components/Swipeable/Swipeable.d.ts +50 -0
- package/lib/typescript/module/components/Swipeable/index.d.ts +3 -0
- package/lib/typescript/module/components/Switch/Switch.d.ts +29 -0
- package/lib/typescript/module/components/Switch/index.d.ts +3 -0
- package/lib/typescript/module/components/Tabs/Tabs.d.ts +64 -0
- package/lib/typescript/module/components/Tabs/index.d.ts +3 -0
- package/lib/typescript/module/components/TagInput/TagInput.d.ts +36 -0
- package/lib/typescript/module/components/TagInput/index.d.ts +3 -0
- package/lib/typescript/module/components/Text/Text.d.ts +24 -0
- package/lib/typescript/module/components/Text/index.d.ts +3 -0
- package/lib/typescript/module/components/TimePicker/TimePicker.d.ts +62 -0
- package/lib/typescript/module/components/TimePicker/index.d.ts +3 -0
- package/lib/typescript/module/components/Timeline/Timeline.d.ts +44 -0
- package/lib/typescript/module/components/Timeline/index.d.ts +3 -0
- package/lib/typescript/module/components/Toast/Toast.d.ts +44 -0
- package/lib/typescript/module/components/Toast/ToastProvider.d.ts +26 -0
- package/lib/typescript/module/components/Toast/index.d.ts +5 -0
- package/lib/typescript/module/components/Tooltip/Tooltip.d.ts +28 -0
- package/lib/typescript/module/components/Tooltip/index.d.ts +3 -0
- package/lib/typescript/module/components/index.d.ts +125 -0
- package/lib/typescript/module/form/FormContext.d.ts +17 -0
- package/lib/typescript/module/form/index.d.ts +10 -0
- package/lib/typescript/module/form/path.d.ts +10 -0
- package/lib/typescript/module/form/rules.d.ts +37 -0
- package/lib/typescript/module/form/types.d.ts +94 -0
- package/lib/typescript/module/form/useField.d.ts +27 -0
- package/lib/typescript/module/form/useForm.d.ts +10 -0
- package/lib/typescript/module/hooks/index.d.ts +9 -0
- package/lib/typescript/module/hooks/useControllableState.d.ts +17 -0
- package/lib/typescript/module/hooks/useDebounce.d.ts +2 -0
- package/lib/typescript/module/hooks/usePressAnimation.d.ts +13 -0
- package/lib/typescript/module/hooks/useReducedMotion.d.ts +8 -0
- package/lib/typescript/module/hooks/useToggle.d.ts +9 -0
- package/lib/typescript/module/index.d.ts +14 -0
- package/lib/typescript/module/initUI.d.ts +12 -0
- package/lib/typescript/module/network/NetworkStatusBanner.d.ts +19 -0
- package/lib/typescript/module/network/index.d.ts +3 -0
- package/lib/typescript/module/package.json +1 -0
- package/lib/typescript/module/theme/Gradient.d.ts +11 -0
- package/lib/typescript/module/theme/ThemeContext.d.ts +18 -0
- package/lib/typescript/module/theme/animatedValue.d.ts +39 -0
- package/lib/typescript/module/theme/index.d.ts +18 -0
- package/lib/typescript/module/theme/merge.d.ts +3 -0
- package/lib/typescript/module/theme/textStyle.d.ts +18 -0
- package/lib/typescript/module/theme/tokens.d.ts +4 -0
- package/lib/typescript/module/theme/types.d.ts +913 -0
- package/lib/typescript/module/utils/dimensions.d.ts +3 -0
- package/lib/typescript/module/utils/feedback.d.ts +45 -0
- package/lib/typescript/module/utils/hapticUtils.d.ts +12 -0
- package/lib/typescript/module/utils/index.d.ts +11 -0
- package/lib/typescript/module/utils/responsive.d.ts +23 -0
- package/lib/typescript/module/utils/shadows.d.ts +4 -0
- package/lib/typescript/module/utils/spacing.d.ts +61 -0
- package/lib/typescript/module/utils/warnUnknownProps.d.ts +20 -0
- package/package.json +101 -0
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FilePicker — attachment picking UI with pluggable native sources.
|
|
3
|
+
*
|
|
4
|
+
* The library owns the UI and behaviour: trigger (dashed card / list row /
|
|
5
|
+
* custom render prop), the source-chooser sheet (shared OptionSheet), enforced
|
|
6
|
+
* validation (maxFiles / maxSizeMB / accept / custom), the canonical file
|
|
7
|
+
* shape, per-file status + progress display, remove/retry affordances,
|
|
8
|
+
* a11y, haptics and theming.
|
|
9
|
+
*
|
|
10
|
+
* What it deliberately does NOT own:
|
|
11
|
+
* - Native picking. Camera / gallery / document access lives in app-level
|
|
12
|
+
* `sources` adapters (`pick(): Promise<PickedFileInput[]>`), so the
|
|
13
|
+
* library stays zero-dependency and each app wires the native modules it
|
|
14
|
+
* already ships. Throwing inside `pick` surfaces as a field error;
|
|
15
|
+
* returning `[]` is a cancel.
|
|
16
|
+
* - Networking. Uploads belong to the app's API client / outbox; the app
|
|
17
|
+
* reflects them back via per-file `status` / `progress` and gets retry
|
|
18
|
+
* taps through `onRetry`.
|
|
19
|
+
* - Heavy processing. The async `process` hook runs per accepted file
|
|
20
|
+
* (compression, EXIF strip, local copy) before it lands in `files` —
|
|
21
|
+
* plug the app's image pipeline in there.
|
|
22
|
+
*/
|
|
23
|
+
import React from 'react';
|
|
24
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
25
|
+
import type { HapticType } from '../../utils';
|
|
26
|
+
export type FilePickerVariant = 'card' | 'list';
|
|
27
|
+
export type FilePickerFileStatus = 'idle' | 'processing' | 'uploading' | 'done' | 'error';
|
|
28
|
+
export interface FilePickerFile {
|
|
29
|
+
/** Stable identity — generated by the library when the source doesn't provide one. */
|
|
30
|
+
id: string;
|
|
31
|
+
name: string;
|
|
32
|
+
/** Local content URI (freshly picked files). */
|
|
33
|
+
uri?: string;
|
|
34
|
+
/** Remote URL for already-uploaded files (edit screens). */
|
|
35
|
+
url?: string;
|
|
36
|
+
/** Remote thumbnail. Image files fall back to `uri` / `url`. */
|
|
37
|
+
thumbnailUrl?: string;
|
|
38
|
+
/** Mime type, e.g. `image/jpeg`. */
|
|
39
|
+
type?: string;
|
|
40
|
+
/** Bytes. */
|
|
41
|
+
size?: number;
|
|
42
|
+
/** Display-only upload state — the app sets these, the library renders them. */
|
|
43
|
+
status?: FilePickerFileStatus;
|
|
44
|
+
/** 0–1, rendered while `status === 'uploading'`. */
|
|
45
|
+
progress?: number;
|
|
46
|
+
/** Shown on the file while `status === 'error'`. */
|
|
47
|
+
error?: string;
|
|
48
|
+
/** Consumer payload — preserved untouched through every operation. */
|
|
49
|
+
meta?: Record<string, unknown>;
|
|
50
|
+
}
|
|
51
|
+
/** What a source's `pick()` resolves with — the library normalizes the rest. */
|
|
52
|
+
export interface PickedFileInput {
|
|
53
|
+
uri: string;
|
|
54
|
+
name?: string;
|
|
55
|
+
type?: string;
|
|
56
|
+
size?: number;
|
|
57
|
+
meta?: Record<string, unknown>;
|
|
58
|
+
}
|
|
59
|
+
export interface FilePickerSource {
|
|
60
|
+
key: string;
|
|
61
|
+
label: string;
|
|
62
|
+
description?: string;
|
|
63
|
+
icon?: React.ReactNode;
|
|
64
|
+
/** Launch native picking. Resolve `[]` for user-cancel; throw for real failures. */
|
|
65
|
+
pick: () => Promise<PickedFileInput[]>;
|
|
66
|
+
}
|
|
67
|
+
/** Everything a custom `renderFile` template needs to paint one file. */
|
|
68
|
+
export interface FilePickerFileState {
|
|
69
|
+
file: FilePickerFile;
|
|
70
|
+
index: number;
|
|
71
|
+
disabled: boolean;
|
|
72
|
+
remove: () => void;
|
|
73
|
+
retry?: () => void;
|
|
74
|
+
}
|
|
75
|
+
export interface FilePickerTriggerState {
|
|
76
|
+
/** Open a specific source, or the chooser sheet when omitted and >1 source. */
|
|
77
|
+
open: (sourceKey?: string) => void;
|
|
78
|
+
disabled: boolean;
|
|
79
|
+
fileCount: number;
|
|
80
|
+
atCapacity: boolean;
|
|
81
|
+
}
|
|
82
|
+
export interface FilePickerLabels {
|
|
83
|
+
/** Trigger text when no files are attached. Default 'Attach file'. */
|
|
84
|
+
trigger: string;
|
|
85
|
+
/** Add-affordance text/tile label once files exist. Default '+'. (card tile) / 'Add more' (list row). */
|
|
86
|
+
addMore: string;
|
|
87
|
+
/** Source chooser sheet title. Default 'Add from'. */
|
|
88
|
+
sheetTitle: string;
|
|
89
|
+
/** A11y label template for a file's remove button. */
|
|
90
|
+
removeFile: (name: string) => string;
|
|
91
|
+
/** Retry affordance a11y label. Default 'Retry upload'. */
|
|
92
|
+
retry: string;
|
|
93
|
+
errorTooMany: (maxFiles: number) => string;
|
|
94
|
+
errorTooLarge: (name: string, maxSizeMB: number) => string;
|
|
95
|
+
errorWrongType: (name: string) => string;
|
|
96
|
+
}
|
|
97
|
+
export interface FilePickerRef {
|
|
98
|
+
/** Open a source by key, or the chooser (sheet when >1 source). */
|
|
99
|
+
open: (sourceKey?: string) => void;
|
|
100
|
+
/** Remove all files. */
|
|
101
|
+
clear: () => void;
|
|
102
|
+
}
|
|
103
|
+
export interface FilePickerProps {
|
|
104
|
+
/** Controlled file list. */
|
|
105
|
+
files?: FilePickerFile[];
|
|
106
|
+
/** Uncontrolled initial list (edit screens can seed remote files here too). */
|
|
107
|
+
defaultFiles?: FilePickerFile[];
|
|
108
|
+
onChange?: (files: FilePickerFile[]) => void;
|
|
109
|
+
/** Native picking adapters. One source launches directly; several open the chooser sheet. */
|
|
110
|
+
sources: ReadonlyArray<FilePickerSource>;
|
|
111
|
+
maxFiles?: number;
|
|
112
|
+
/** Per-file size cap — oversized picks are rejected with a visible error. */
|
|
113
|
+
maxSizeMB?: number;
|
|
114
|
+
/** Accepted mime globs, e.g. `['image/*', 'application/pdf']`. Unset = accept all. */
|
|
115
|
+
accept?: ReadonlyArray<string>;
|
|
116
|
+
/** Custom per-file rule — return an error string to reject. */
|
|
117
|
+
validate?: (file: FilePickerFile) => string | null | undefined;
|
|
118
|
+
/**
|
|
119
|
+
* Async per-file transform between pick and `files` (compression, local
|
|
120
|
+
* copy). The file shows `processing` while it runs; a throw rejects the
|
|
121
|
+
* file with the thrown message as the field error.
|
|
122
|
+
*/
|
|
123
|
+
process?: (file: FilePickerFile) => Promise<FilePickerFile>;
|
|
124
|
+
/** `card`: dashed upload card → horizontal thumbnail strip. `list`: rows with name/size/status. */
|
|
125
|
+
variant?: FilePickerVariant;
|
|
126
|
+
/** Full custom per-file template. Library keeps remove/retry handlers + a11y wiring via the state object. */
|
|
127
|
+
renderFile?: (state: FilePickerFileState) => React.ReactNode;
|
|
128
|
+
/** Replace the built-in trigger entirely; behaviour arrives via the state object. */
|
|
129
|
+
renderTrigger?: (state: FilePickerTriggerState) => React.ReactNode;
|
|
130
|
+
disabled?: boolean;
|
|
131
|
+
/** Hint under the trigger (e.g. "Up to 5 files, max 100MB each."). */
|
|
132
|
+
helperText?: string;
|
|
133
|
+
/** External error — wins over internal validation errors (form binding). */
|
|
134
|
+
error?: string;
|
|
135
|
+
labels?: Partial<FilePickerLabels>;
|
|
136
|
+
/** Haptics for pick/remove (selection) and rejections (error). Pass false to disable. */
|
|
137
|
+
haptic?: HapticType | false;
|
|
138
|
+
/** Files accepted by a pick (post-validation, post-process). */
|
|
139
|
+
onPick?: (files: FilePickerFile[]) => void;
|
|
140
|
+
onRemove?: (file: FilePickerFile) => void;
|
|
141
|
+
/** Each rejection message (also shown as the field error). */
|
|
142
|
+
onError?: (message: string, file?: FilePickerFile) => void;
|
|
143
|
+
/** Tap on a file tile/row — wire previews (ImageGallery) here. */
|
|
144
|
+
onFilePress?: (file: FilePickerFile) => void;
|
|
145
|
+
/** When set, files with `status 'error'` show a retry affordance that calls this. */
|
|
146
|
+
onRetry?: (file: FilePickerFile) => void;
|
|
147
|
+
style?: StyleProp<ViewStyle>;
|
|
148
|
+
accessibilityLabel?: string;
|
|
149
|
+
testID?: string;
|
|
150
|
+
}
|
|
151
|
+
export declare const formatFileSize: (bytes?: number) => string;
|
|
152
|
+
declare const FilePicker: React.ForwardRefExoticComponent<FilePickerProps & React.RefAttributes<FilePickerRef>>;
|
|
153
|
+
export { FilePicker };
|
|
154
|
+
export default FilePicker;
|
|
155
|
+
//# sourceMappingURL=FilePicker.d.ts.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export type { FilePickerFile, FilePickerFileState, FilePickerFileStatus, FilePickerLabels, FilePickerProps, FilePickerRef, FilePickerSource, FilePickerTriggerState, FilePickerVariant, PickedFileInput } from './FilePicker';
|
|
2
|
+
export { default, FilePicker, formatFileSize } from './FilePicker';
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { View as RNView, StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
import type { HapticType } from '../../utils/hapticUtils';
|
|
4
|
+
export type FloatingActionButtonSize = 'sm' | 'md' | 'lg';
|
|
5
|
+
export type FloatingActionButtonTone = 'primary' | 'success' | 'warning' | 'error' | 'neutral';
|
|
6
|
+
export type FloatingActionButtonPosition = 'bottomRight' | 'bottomLeft' | 'bottomCenter';
|
|
7
|
+
export interface FloatingActionButtonProps {
|
|
8
|
+
/** JSX element for the icon. The FAB sizes it via the `size` prop's iconSize token. */
|
|
9
|
+
icon: React.ReactNode;
|
|
10
|
+
onPress: () => void;
|
|
11
|
+
label?: string;
|
|
12
|
+
size?: FloatingActionButtonSize;
|
|
13
|
+
tone?: FloatingActionButtonTone;
|
|
14
|
+
position?: FloatingActionButtonPosition;
|
|
15
|
+
bottomOffset?: number;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
hideOnScroll?: boolean;
|
|
18
|
+
isScrolling?: boolean;
|
|
19
|
+
accessibilityLabel: string;
|
|
20
|
+
accessibilityHint?: string;
|
|
21
|
+
/** Haptic feedback for interactions. Pass false to disable; pass a HapticType to override the default. */
|
|
22
|
+
haptic?: HapticType | false;
|
|
23
|
+
style?: StyleProp<ViewStyle>;
|
|
24
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
25
|
+
labelStyle?: StyleProp<ViewStyle>;
|
|
26
|
+
testID?: string;
|
|
27
|
+
}
|
|
28
|
+
declare const FloatingActionButton: React.ForwardRefExoticComponent<FloatingActionButtonProps & React.RefAttributes<RNView>>;
|
|
29
|
+
export interface FloatingActionButtonGroupAction {
|
|
30
|
+
key: string;
|
|
31
|
+
icon: React.ReactNode;
|
|
32
|
+
label?: string;
|
|
33
|
+
onPress: () => void;
|
|
34
|
+
tone?: FloatingActionButtonTone;
|
|
35
|
+
accessibilityLabel: string;
|
|
36
|
+
}
|
|
37
|
+
export interface FloatingActionButtonGroupProps {
|
|
38
|
+
primaryIcon: React.ReactNode;
|
|
39
|
+
primaryActiveIcon?: React.ReactNode;
|
|
40
|
+
actions: FloatingActionButtonGroupAction[];
|
|
41
|
+
open?: boolean;
|
|
42
|
+
defaultOpen?: boolean;
|
|
43
|
+
onOpenChange?: (open: boolean) => void;
|
|
44
|
+
position?: FloatingActionButtonPosition;
|
|
45
|
+
bottomOffset?: number;
|
|
46
|
+
size?: FloatingActionButtonSize;
|
|
47
|
+
accessibilityLabel?: string;
|
|
48
|
+
/** Haptic feedback for interactions. Pass false to disable; pass a HapticType to override the default. */
|
|
49
|
+
haptic?: HapticType | false;
|
|
50
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
51
|
+
secondaryActionStyle?: StyleProp<ViewStyle>;
|
|
52
|
+
labelPillStyle?: StyleProp<ViewStyle>;
|
|
53
|
+
labelStyle?: StyleProp<ViewStyle>;
|
|
54
|
+
testID?: string;
|
|
55
|
+
}
|
|
56
|
+
declare const FloatingActionButtonGroup: React.FC<FloatingActionButtonGroupProps>;
|
|
57
|
+
export { FloatingActionButton, FloatingActionButtonGroup };
|
|
58
|
+
export default FloatingActionButton;
|
|
59
|
+
//# sourceMappingURL=FloatingActionButton.d.ts.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export type { FloatingActionButtonGroupAction, FloatingActionButtonGroupProps, FloatingActionButtonPosition, FloatingActionButtonProps, FloatingActionButtonSize, FloatingActionButtonTone } from './FloatingActionButton';
|
|
2
|
+
export { default, FloatingActionButton, FloatingActionButtonGroup } from './FloatingActionButton';
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
3
|
+
export interface ForceUpdateDialogProps {
|
|
4
|
+
/** Whether the dialog is visible. */
|
|
5
|
+
visible: boolean;
|
|
6
|
+
/** Called when the dialog is dismissed (only fired when `mandatory` is `false`). */
|
|
7
|
+
onClose?: () => void;
|
|
8
|
+
/**
|
|
9
|
+
* If `true`, hides the "Later" action and disables backdrop dismissal —
|
|
10
|
+
* use this for major version bumps that must not be skipped.
|
|
11
|
+
*/
|
|
12
|
+
mandatory?: boolean;
|
|
13
|
+
/** Optional override of the destination URL (defaults to the platform store). */
|
|
14
|
+
updateUrl?: string | null;
|
|
15
|
+
/** Custom dialog title. */
|
|
16
|
+
title?: string;
|
|
17
|
+
/** Custom dialog message. */
|
|
18
|
+
message?: string;
|
|
19
|
+
/** Custom label for the primary "Update" action. */
|
|
20
|
+
updateLabel?: string;
|
|
21
|
+
/** Custom label for the dismiss action. Hidden when `mandatory`. */
|
|
22
|
+
laterLabel?: string;
|
|
23
|
+
/** Forwarded to the underlying Dialog container. */
|
|
24
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
25
|
+
/** Forwarded to the underlying Dialog title Text. */
|
|
26
|
+
titleStyle?: StyleProp<TextStyle>;
|
|
27
|
+
/** Forwarded to the underlying Dialog message Text. */
|
|
28
|
+
messageStyle?: StyleProp<TextStyle>;
|
|
29
|
+
testID?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Drop-in update prompt that opens the App Store / Play Store on tap.
|
|
33
|
+
* Pair this with `useVersionCheck()` — render it when `isUpdateRequired` is true.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* const { isUpdateRequired, updateUrl } = useVersionCheck(isAppReady);
|
|
37
|
+
* return (
|
|
38
|
+
* <ForceUpdateDialog
|
|
39
|
+
* visible={isUpdateRequired}
|
|
40
|
+
* mandatory
|
|
41
|
+
* updateUrl={updateUrl}
|
|
42
|
+
* />
|
|
43
|
+
* );
|
|
44
|
+
*/
|
|
45
|
+
export declare const ForceUpdateDialog: React.FC<ForceUpdateDialogProps>;
|
|
46
|
+
export default ForceUpdateDialog;
|
|
47
|
+
//# sourceMappingURL=ForceUpdateDialog.d.ts.map
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { View as RNView, StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
3
|
+
import type { FieldInputProps } from '../../form/types';
|
|
4
|
+
export type FormFieldLayout = 'stacked' | 'inline';
|
|
5
|
+
export interface FormFieldProps {
|
|
6
|
+
label?: string;
|
|
7
|
+
helperText?: string;
|
|
8
|
+
/**
|
|
9
|
+
* When truthy: helperText is hidden, error is shown in the error colour,
|
|
10
|
+
* and the container reports the invalid state to assistive tech.
|
|
11
|
+
* Ignored when `name` connects to a <Form> with an element child (the child
|
|
12
|
+
* renders its own error then).
|
|
13
|
+
*/
|
|
14
|
+
error?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Appends the required marker to the label. Marker text + colour come from
|
|
17
|
+
* `theme.components.field.{requiredMarker,requiredMarkerColor}` (default
|
|
18
|
+
* `'*'` in `colors.error`).
|
|
19
|
+
*/
|
|
20
|
+
required?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Connect this field to the surrounding `<Form>` by name. With an element
|
|
23
|
+
* child (e.g. `<Input/>`) the field's value/onChangeText/onBlur/error are
|
|
24
|
+
* injected automatically — best for text inputs. For non-text controls
|
|
25
|
+
* (Select, Switch, DatePicker…) use the render-prop form:
|
|
26
|
+
* `<FormField name="x">{(f) => <Select value={f.value} onChange={f.onChange} />}</FormField>`.
|
|
27
|
+
*/
|
|
28
|
+
name?: string;
|
|
29
|
+
children: React.ReactNode | ((field: FieldInputProps) => React.ReactNode);
|
|
30
|
+
/** 'stacked' (default): label above input. 'inline': label left, input right. */
|
|
31
|
+
layout?: FormFieldLayout;
|
|
32
|
+
labelStyle?: StyleProp<TextStyle>;
|
|
33
|
+
helperStyle?: StyleProp<TextStyle>;
|
|
34
|
+
errorStyle?: StyleProp<TextStyle>;
|
|
35
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
36
|
+
/**
|
|
37
|
+
* Style override for the wrapper View that hosts `children` (the input slot).
|
|
38
|
+
* Useful for the `inline` layout when callers need to tweak the right-hand
|
|
39
|
+
* column (e.g., set a max width, align differently). Additive only — the
|
|
40
|
+
* library's base style still applies underneath.
|
|
41
|
+
*/
|
|
42
|
+
inputContainerStyle?: StyleProp<ViewStyle>;
|
|
43
|
+
accessibilityLabel?: string;
|
|
44
|
+
testID?: string;
|
|
45
|
+
}
|
|
46
|
+
declare const FormField: React.ForwardRefExoticComponent<FormFieldProps & React.RefAttributes<RNView>>;
|
|
47
|
+
export { FormField };
|
|
48
|
+
export default FormField;
|
|
49
|
+
//# sourceMappingURL=FormField.d.ts.map
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { GestureResponderEvent, View as RNView, StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
import type { HapticType } from '../../utils';
|
|
4
|
+
export type IconButtonTone = 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'neutral';
|
|
5
|
+
export type IconButtonVariant = 'solid' | 'soft' | 'outline' | 'ghost';
|
|
6
|
+
export type IconButtonSize = 'sm' | 'md' | 'lg';
|
|
7
|
+
export type IconButtonShape = 'circle' | 'rounded';
|
|
8
|
+
interface IconRenderProps {
|
|
9
|
+
color: string;
|
|
10
|
+
size: number;
|
|
11
|
+
}
|
|
12
|
+
export interface IconButtonProps {
|
|
13
|
+
/** Icon node, or a render fn `({ color, size }) => node` so IconButton can theme + size it. */
|
|
14
|
+
icon: React.ReactNode | ((props: IconRenderProps) => React.ReactNode);
|
|
15
|
+
onPress?: (e: GestureResponderEvent) => void;
|
|
16
|
+
/** Required — icon-only controls need an accessible name. */
|
|
17
|
+
accessibilityLabel: string;
|
|
18
|
+
tone?: IconButtonTone;
|
|
19
|
+
variant?: IconButtonVariant;
|
|
20
|
+
size?: IconButtonSize;
|
|
21
|
+
shape?: IconButtonShape;
|
|
22
|
+
/** Selected/active — renders filled (solid) regardless of `variant` (e.g. an active nav tile). */
|
|
23
|
+
active?: boolean;
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
loading?: boolean;
|
|
26
|
+
/** Press haptic. Default `'selection'`. */
|
|
27
|
+
haptic?: HapticType | false;
|
|
28
|
+
style?: StyleProp<ViewStyle>;
|
|
29
|
+
testID?: string;
|
|
30
|
+
}
|
|
31
|
+
declare const IconButton: React.ForwardRefExoticComponent<IconButtonProps & React.RefAttributes<RNView>>;
|
|
32
|
+
export { IconButton };
|
|
33
|
+
export default IconButton;
|
|
34
|
+
//# sourceMappingURL=IconButton.d.ts.map
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ImageGallery — themed gallery built on top of Carousel.
|
|
3
|
+
*
|
|
4
|
+
* Base view: a Carousel of cover-fitted images with optional thumbnails strip
|
|
5
|
+
* and counter pill. Tapping an image opens a fullscreen Lightbox that re-uses
|
|
6
|
+
* the Carousel for swiping but layers Reanimated 3 pinch-to-zoom + pan gestures
|
|
7
|
+
* on top so the active image can be inspected at up to 4x magnification.
|
|
8
|
+
*
|
|
9
|
+
* USAGE:
|
|
10
|
+
*
|
|
11
|
+
* <ImageGallery
|
|
12
|
+
* images={[
|
|
13
|
+
* { source: { uri: 'https://...' }, caption: 'Sunset' },
|
|
14
|
+
* { source: { uri: 'https://...' }, alt: 'Tower at dusk' }
|
|
15
|
+
* ]}
|
|
16
|
+
* initialIndex={0}
|
|
17
|
+
* />
|
|
18
|
+
*/
|
|
19
|
+
import React from 'react';
|
|
20
|
+
import type { ImageSourcePropType, StyleProp, ViewStyle } from 'react-native';
|
|
21
|
+
import type { HapticType } from '../../utils';
|
|
22
|
+
export interface GalleryImage {
|
|
23
|
+
source: ImageSourcePropType;
|
|
24
|
+
caption?: string;
|
|
25
|
+
alt?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface ImageGalleryProps {
|
|
28
|
+
images: GalleryImage[];
|
|
29
|
+
initialIndex?: number;
|
|
30
|
+
showThumbnails?: boolean;
|
|
31
|
+
showCounter?: boolean;
|
|
32
|
+
enableLightbox?: boolean;
|
|
33
|
+
enablePinchZoom?: boolean;
|
|
34
|
+
onIndexChange?: (idx: number) => void;
|
|
35
|
+
/**
|
|
36
|
+
* Haptic feedback for interactions. Pass false to disable; pass a HapticType
|
|
37
|
+
* to override the default.
|
|
38
|
+
*/
|
|
39
|
+
haptic?: HapticType | false;
|
|
40
|
+
/**
|
|
41
|
+
* When true, renders the component as its authored skeleton placeholder shape.
|
|
42
|
+
* The placeholder mirrors the real layout's footprint so the UI doesn't reflow
|
|
43
|
+
* when data arrives. Use this while the data driving the component is being fetched.
|
|
44
|
+
*/
|
|
45
|
+
loading?: boolean;
|
|
46
|
+
accessibilityLabel?: string;
|
|
47
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
48
|
+
testID?: string;
|
|
49
|
+
}
|
|
50
|
+
declare const ImageGallery: React.FC<ImageGalleryProps> & {
|
|
51
|
+
Skeleton: React.FC<ImageGalleryProps>;
|
|
52
|
+
};
|
|
53
|
+
export { ImageGallery };
|
|
54
|
+
export default ImageGallery;
|
|
55
|
+
//# sourceMappingURL=ImageGallery.d.ts.map
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* InlineSelect — a compact, borderless select trigger for inside other fields.
|
|
3
|
+
*
|
|
4
|
+
* Renders just the selected label + chevron (no FieldBase box) and opens the
|
|
5
|
+
* shared OptionSheet picker. Designed to live in Input's `leftIcon` /
|
|
6
|
+
* `rightIcon` slots — currency prefix on an amount field, country code on a
|
|
7
|
+
* phone field, unit suffix on a measurement — but works anywhere a bare
|
|
8
|
+
* dropdown trigger is needed (toolbars, list headers).
|
|
9
|
+
*
|
|
10
|
+
* Single-select only by design: a multi-select crammed into a field affix has
|
|
11
|
+
* no sane closed-state rendering. Reach for Select when you need multi.
|
|
12
|
+
*
|
|
13
|
+
* ```tsx
|
|
14
|
+
* <Input
|
|
15
|
+
* placeholder="Amount"
|
|
16
|
+
* textAlign="right"
|
|
17
|
+
* keyboardType="number-pad"
|
|
18
|
+
* leftIcon={
|
|
19
|
+
* <InlineSelect options={currencies} value={currency} onChange={setCurrency} />
|
|
20
|
+
* }
|
|
21
|
+
* />
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
import React from 'react';
|
|
25
|
+
import type { View as RNView, StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
26
|
+
import type { HapticType } from '../../utils';
|
|
27
|
+
import type { SelectOption, SelectValue } from '../OptionSheet/OptionSheet';
|
|
28
|
+
export type InlineSelectSize = 'sm' | 'md' | 'lg';
|
|
29
|
+
export interface InlineSelectProps<T = SelectOption> {
|
|
30
|
+
/** Same contract as Select's `options` — `SelectOption` shape by default, accessors for anything else. */
|
|
31
|
+
options: ReadonlyArray<T>;
|
|
32
|
+
/** Defaults to `(o) => (o as SelectOption).label`. */
|
|
33
|
+
getOptionLabel?: (option: T) => string;
|
|
34
|
+
/** Defaults to `(o) => (o as SelectOption).value`. */
|
|
35
|
+
getOptionValue?: (option: T) => SelectValue;
|
|
36
|
+
/** Defaults to `(o) => (o as SelectOption).disabled === true`. */
|
|
37
|
+
getOptionDisabled?: (option: T) => boolean;
|
|
38
|
+
/** Defaults to `(o) => (o as SelectOption).description`. */
|
|
39
|
+
getOptionDescription?: (option: T) => string | undefined;
|
|
40
|
+
/** Defaults to `(o) => (o as SelectOption).icon`. */
|
|
41
|
+
getOptionIcon?: (option: T) => React.ReactNode;
|
|
42
|
+
value?: SelectValue;
|
|
43
|
+
onChange: (value: SelectValue) => void;
|
|
44
|
+
/** Trigger text when nothing is selected. Default `'Select'`. */
|
|
45
|
+
placeholder?: string;
|
|
46
|
+
/** Context name for the trigger's a11y label (the bare trigger renders no visible label). */
|
|
47
|
+
label?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Heading shown at the top of the options bottom-sheet. Independent of
|
|
50
|
+
* `label` — omit it for a sheet with no heading.
|
|
51
|
+
*/
|
|
52
|
+
title?: string;
|
|
53
|
+
searchable?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Haptic feedback for open + select. Pass false to disable; pass a
|
|
56
|
+
* HapticType to override the default.
|
|
57
|
+
*/
|
|
58
|
+
haptic?: HapticType | false;
|
|
59
|
+
disabled?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Matches the host field's size so fontSize / chevron track the surrounding
|
|
62
|
+
* Input. Default `'md'`.
|
|
63
|
+
*/
|
|
64
|
+
size?: InlineSelectSize;
|
|
65
|
+
/**
|
|
66
|
+
* Trigger text + chevron colour. Resolution: prop →
|
|
67
|
+
* `theme.components.inlineSelect.color` → `colors.primary`
|
|
68
|
+
* (`text.disabled` when disabled).
|
|
69
|
+
*/
|
|
70
|
+
color?: string;
|
|
71
|
+
/** Chevron colour override — falls back to `color`'s resolution. */
|
|
72
|
+
chevronColor?: string;
|
|
73
|
+
/** Chevron size in pixels. Default: the field size's `iconSize`. */
|
|
74
|
+
chevronSize?: number;
|
|
75
|
+
textStyle?: StyleProp<TextStyle>;
|
|
76
|
+
style?: StyleProp<ViewStyle>;
|
|
77
|
+
/** Style for every option row in the sheet (padding, background, …). */
|
|
78
|
+
optionStyle?: StyleProp<ViewStyle>;
|
|
79
|
+
/** Extra style for the selected option row — wins over `optionStyle` and the default selected fill. */
|
|
80
|
+
selectedOptionStyle?: StyleProp<ViewStyle>;
|
|
81
|
+
/** Style for every option's label text in the sheet. */
|
|
82
|
+
optionTextStyle?: StyleProp<TextStyle>;
|
|
83
|
+
/** Extra style for the selected option's label text — wins over `optionTextStyle` and the default selected colour. */
|
|
84
|
+
selectedOptionTextStyle?: StyleProp<TextStyle>;
|
|
85
|
+
accessibilityLabel?: string;
|
|
86
|
+
testID?: string;
|
|
87
|
+
}
|
|
88
|
+
declare const InlineSelect: React.ForwardRefExoticComponent<InlineSelectProps<unknown> & React.RefAttributes<RNView>>;
|
|
89
|
+
export { InlineSelect };
|
|
90
|
+
export default InlineSelect;
|
|
91
|
+
//# sourceMappingURL=InlineSelect.d.ts.map
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { BlurEvent, FocusEvent, StyleProp, TextInputProps, TextStyle, ViewStyle } from 'react-native';
|
|
3
|
+
import { TextInput } from 'react-native';
|
|
4
|
+
export type InputSize = 'sm' | 'md' | 'lg';
|
|
5
|
+
export type InputVariant = 'outlined' | 'filled' | 'underline';
|
|
6
|
+
export type InputLabelMode = 'float' | 'top';
|
|
7
|
+
export interface InputProps extends Omit<TextInputProps, 'style'> {
|
|
8
|
+
label?: string;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
value?: string;
|
|
11
|
+
onChangeText?: (text: string) => void;
|
|
12
|
+
error?: string;
|
|
13
|
+
helperText?: string;
|
|
14
|
+
secureTextEntry?: boolean;
|
|
15
|
+
showPasswordToggle?: boolean;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
multiline?: boolean;
|
|
18
|
+
leftIcon?: React.ReactNode;
|
|
19
|
+
rightIcon?: React.ReactNode;
|
|
20
|
+
size?: InputSize;
|
|
21
|
+
variant?: InputVariant;
|
|
22
|
+
/**
|
|
23
|
+
* - `'float'` (default): Material-Design floating label that animates from
|
|
24
|
+
* inside the field to the top border on focus / when there's a value.
|
|
25
|
+
* - `'top'`: classic static label rendered above the field with no animation.
|
|
26
|
+
* Use for forms that want the label permanently visible.
|
|
27
|
+
*
|
|
28
|
+
* Theme override: `theme.components.input.defaultLabelMode`.
|
|
29
|
+
*/
|
|
30
|
+
labelMode?: InputLabelMode;
|
|
31
|
+
required?: boolean;
|
|
32
|
+
maxLength?: number;
|
|
33
|
+
/**
|
|
34
|
+
* Render the "n / maxLength" character counter below the field. Only
|
|
35
|
+
* applies when `maxLength` is set and `value` is controlled. Default `true`.
|
|
36
|
+
* Set `false` for fields that cap input without advertising it (amounts,
|
|
37
|
+
* codes).
|
|
38
|
+
*/
|
|
39
|
+
showCounter?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Format the raw `value` for display. Common uses: phone-number formatting
|
|
42
|
+
* ("5551234567" → "(555) 123-4567"), currency, postal codes, masked IDs.
|
|
43
|
+
* The TextInput shows `format(value)`; user input is passed to `parse` (or
|
|
44
|
+
* left raw) before reaching `onChangeText`.
|
|
45
|
+
*/
|
|
46
|
+
format?: (raw: string) => string;
|
|
47
|
+
/**
|
|
48
|
+
* Reverse of `format` — strips the formatted display back to the canonical
|
|
49
|
+
* value the consumer wants in state. If omitted, defaults to identity.
|
|
50
|
+
*/
|
|
51
|
+
parse?: (formatted: string) => string;
|
|
52
|
+
style?: StyleProp<ViewStyle>;
|
|
53
|
+
/** Style applied to the bordered field wrapper (the bit you'd colour or pad). Distinct from `style`, which targets the outermost container. */
|
|
54
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
55
|
+
inputStyle?: StyleProp<TextStyle>;
|
|
56
|
+
labelStyle?: StyleProp<TextStyle>;
|
|
57
|
+
/** Style applied to the helper/error text below the field. */
|
|
58
|
+
messageStyle?: StyleProp<TextStyle>;
|
|
59
|
+
/** Per-instance override for the field's corner radius. Wins over `theme.components.input.borderRadius` and size defaults. */
|
|
60
|
+
borderRadius?: number;
|
|
61
|
+
onFocus?: (e: FocusEvent) => void;
|
|
62
|
+
onBlur?: (e: BlurEvent) => void;
|
|
63
|
+
accessibilityLabel?: string;
|
|
64
|
+
testID?: string;
|
|
65
|
+
}
|
|
66
|
+
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<TextInput>>;
|
|
67
|
+
export { Input };
|
|
68
|
+
export default Input;
|
|
69
|
+
//# sourceMappingURL=Input.d.ts.map
|
package/lib/typescript/commonjs/components/KeyboardAwareScrollView/KeyboardAwareScrollView.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ScrollViewProps } from 'react-native';
|
|
3
|
+
import { ScrollView } from 'react-native';
|
|
4
|
+
export interface KeyboardAwareScrollViewProps extends ScrollViewProps {
|
|
5
|
+
/** Gap kept between the focused field and the top of the keyboard. Default 24. */
|
|
6
|
+
extraScrollHeight?: number;
|
|
7
|
+
/** Disable the keyboard-following behaviour (still a normal ScrollView). Default false. */
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* A ScrollView that keeps the focused input visible above the keyboard — no
|
|
12
|
+
* native dependency. On keyboard show it pads the content by the keyboard
|
|
13
|
+
* height and scrolls the focused TextInput so its bottom sits `extraScrollHeight`
|
|
14
|
+
* above the keyboard, but only when it would otherwise be covered (so already-
|
|
15
|
+
* visible fields don't jump). The classic measure-and-scroll approach, in pure RN.
|
|
16
|
+
*/
|
|
17
|
+
declare const KeyboardAwareScrollView: React.ForwardRefExoticComponent<KeyboardAwareScrollViewProps & React.RefAttributes<ScrollView>>;
|
|
18
|
+
export { KeyboardAwareScrollView };
|
|
19
|
+
export default KeyboardAwareScrollView;
|
|
20
|
+
//# sourceMappingURL=KeyboardAwareScrollView.d.ts.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
export interface KeyboardToolbarProps {
|
|
4
|
+
/** Label for the dismiss button. Default 'Done'. */
|
|
5
|
+
doneLabel?: string;
|
|
6
|
+
/** Show the prev/next chevrons. Default: true when prev/next handlers resolve. */
|
|
7
|
+
showNavigation?: boolean;
|
|
8
|
+
/** Override the dismiss action. Default: `Keyboard.dismiss()`. */
|
|
9
|
+
onDone?: () => void;
|
|
10
|
+
/** Override "next field". Default: the surrounding `<Form>`'s `focusNext`. */
|
|
11
|
+
onNext?: () => void;
|
|
12
|
+
/** Override "previous field". Default: the surrounding `<Form>`'s `focusPrev`. */
|
|
13
|
+
onPrev?: () => void;
|
|
14
|
+
/** Custom content rendered between the nav chevrons and the Done button. */
|
|
15
|
+
leading?: React.ReactNode;
|
|
16
|
+
style?: StyleProp<ViewStyle>;
|
|
17
|
+
testID?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* An accessory bar pinned just above the keyboard — pure RN, no native
|
|
21
|
+
* dependency. Shows a Done (dismiss) button and optional prev/next chevrons
|
|
22
|
+
* that, inside a `<Form>`, walk the registered field order. Render it at the
|
|
23
|
+
* screen root (a `flex: 1` ancestor) so its `bottom: keyboardHeight` offset
|
|
24
|
+
* lands it on top of the keyboard. Renders nothing while the keyboard is hidden.
|
|
25
|
+
*/
|
|
26
|
+
declare const KeyboardToolbar: React.FC<KeyboardToolbarProps>;
|
|
27
|
+
export { KeyboardToolbar };
|
|
28
|
+
export default KeyboardToolbar;
|
|
29
|
+
//# sourceMappingURL=KeyboardToolbar.d.ts.map
|