@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,40 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { View as RNView, StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
3
|
+
import type { HapticType } from '../../utils';
|
|
4
|
+
export type BottomNavigationVariant = 'pill' | 'underline';
|
|
5
|
+
export type BottomNavigationIndicatorPosition = 'top' | 'bottom';
|
|
6
|
+
export type TabBadge = number | string | boolean | null;
|
|
7
|
+
export interface TabIconProps {
|
|
8
|
+
color: string;
|
|
9
|
+
size: number;
|
|
10
|
+
focused: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface TabConfig {
|
|
13
|
+
key: string;
|
|
14
|
+
label: string;
|
|
15
|
+
icon: (props: TabIconProps) => React.ReactNode;
|
|
16
|
+
activeIcon?: (props: TabIconProps) => React.ReactNode;
|
|
17
|
+
badge?: TabBadge;
|
|
18
|
+
}
|
|
19
|
+
export interface BottomNavigationProps {
|
|
20
|
+
tabs: TabConfig[];
|
|
21
|
+
activeTab: string;
|
|
22
|
+
onChange: (tabKey: string) => void;
|
|
23
|
+
haptic?: HapticType | false;
|
|
24
|
+
showLabels?: boolean;
|
|
25
|
+
variant?: BottomNavigationVariant;
|
|
26
|
+
/**
|
|
27
|
+
* Where the active-tab line sits, for variants that draw a line
|
|
28
|
+
* (currently `underline`). Default `'bottom'` preserves the legacy look;
|
|
29
|
+
* `'top'` flips the line to sit just above the tab row.
|
|
30
|
+
*/
|
|
31
|
+
indicatorPosition?: BottomNavigationIndicatorPosition;
|
|
32
|
+
style?: StyleProp<ViewStyle>;
|
|
33
|
+
indicatorStyle?: StyleProp<ViewStyle>;
|
|
34
|
+
labelStyle?: StyleProp<TextStyle>;
|
|
35
|
+
testID?: string;
|
|
36
|
+
}
|
|
37
|
+
declare const BottomNavigation: React.ForwardRefExoticComponent<BottomNavigationProps & React.RefAttributes<RNView>>;
|
|
38
|
+
export { BottomNavigation };
|
|
39
|
+
export default BottomNavigation;
|
|
40
|
+
//# sourceMappingURL=BottomNavigation.d.ts.map
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BottomSheet — Reanimated 3 + Gesture Handler 2 implementation.
|
|
3
|
+
*
|
|
4
|
+
* A polished, theme-aware bottom sheet with multi-snap-point support,
|
|
5
|
+
* UI-thread driven pan gestures, and native-driver spring animations.
|
|
6
|
+
*
|
|
7
|
+
* USAGE:
|
|
8
|
+
*
|
|
9
|
+
* const ref = useRef<BottomSheetRef>(null);
|
|
10
|
+
* <BottomSheet ref={ref} snapPoints={[200, '50%', '90%']}>
|
|
11
|
+
* <YourContent />
|
|
12
|
+
* </BottomSheet>
|
|
13
|
+
*
|
|
14
|
+
* ref.current?.expand(); // open at first snap point (or `index` prop)
|
|
15
|
+
* ref.current?.expand(2); // open at specific index
|
|
16
|
+
* ref.current?.collapse(); // animate to smallest snap point
|
|
17
|
+
* ref.current?.close(); // dismiss
|
|
18
|
+
*/
|
|
19
|
+
import React from 'react';
|
|
20
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
21
|
+
export type SnapPoint = number | `${number}%`;
|
|
22
|
+
export type KeyboardBehavior = 'none' | 'shift';
|
|
23
|
+
export type BottomSheetMode = 'modal' | 'inline';
|
|
24
|
+
export interface BottomSheetProps {
|
|
25
|
+
snapPoints: SnapPoint[];
|
|
26
|
+
index?: number;
|
|
27
|
+
onChange?: (index: number) => void;
|
|
28
|
+
onAnimate?: (from: number, to: number) => void;
|
|
29
|
+
enablePanDownToClose?: boolean;
|
|
30
|
+
enableBackdropPress?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* @deprecated Backdrop opacity is now controlled by the theme token
|
|
33
|
+
* `colors.background.overlay` (alpha baked into the rgba value). Animated
|
|
34
|
+
* opacity on the backdrop was unreliable under Fabric view-flattening, so
|
|
35
|
+
* the scrim is now a static plain View. To tune dim level, override
|
|
36
|
+
* `theme.colors.background.overlay` in your theme bridge.
|
|
37
|
+
*/
|
|
38
|
+
backdropOpacity?: number;
|
|
39
|
+
/**
|
|
40
|
+
* How the sheet reacts to the soft keyboard.
|
|
41
|
+
* - `'none'` (default): the sheet stays put; keyboard may overlap content.
|
|
42
|
+
* - `'shift'`: animate the sheet upward by the keyboard height while it's
|
|
43
|
+
* visible (clamped so the sheet never extends past the top of the screen)
|
|
44
|
+
* and animate back when dismissed. Best for forms that live inside the
|
|
45
|
+
* sheet itself.
|
|
46
|
+
*/
|
|
47
|
+
keyboardBehavior?: KeyboardBehavior;
|
|
48
|
+
/**
|
|
49
|
+
* How the sheet is mounted in the view tree.
|
|
50
|
+
* - `'modal'` (default): rendered inside a native `<Modal>` so the backdrop
|
|
51
|
+
* covers the entire screen (status bar, headers, tab bars) — the standard
|
|
52
|
+
* bottom-sheet UX.
|
|
53
|
+
* - `'inline'`: rendered as an `absoluteFill` overlay inside the parent
|
|
54
|
+
* component. Useful when embedding a sheet within a bounded area.
|
|
55
|
+
*/
|
|
56
|
+
mode?: BottomSheetMode;
|
|
57
|
+
handleIndicatorStyle?: StyleProp<ViewStyle>;
|
|
58
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
59
|
+
/**
|
|
60
|
+
* Sticky region rendered between the drag handle and the scrollable content.
|
|
61
|
+
* Does not scroll with `children`. Can call `useBottomSheet()` to read sheet
|
|
62
|
+
* state.
|
|
63
|
+
*/
|
|
64
|
+
header?: React.ReactNode;
|
|
65
|
+
/**
|
|
66
|
+
* Sticky region pinned to the bottom of the sheet, above the safe-area
|
|
67
|
+
* inset. Does not scroll with `children`, and rides up with the keyboard
|
|
68
|
+
* when `keyboardBehavior='shift'` (no extra wiring needed — the whole sheet
|
|
69
|
+
* shifts). Typical use: action button rows.
|
|
70
|
+
*/
|
|
71
|
+
footer?: React.ReactNode;
|
|
72
|
+
/** Style applied to the header region wrapper. */
|
|
73
|
+
headerStyle?: StyleProp<ViewStyle>;
|
|
74
|
+
/** Style applied to the footer region wrapper. */
|
|
75
|
+
footerStyle?: StyleProp<ViewStyle>;
|
|
76
|
+
children?: React.ReactNode;
|
|
77
|
+
accessibilityLabel?: string;
|
|
78
|
+
accessibilityViewIsModal?: boolean;
|
|
79
|
+
testID?: string;
|
|
80
|
+
}
|
|
81
|
+
export interface BottomSheetRef {
|
|
82
|
+
expand: (index?: number) => void;
|
|
83
|
+
collapse: () => void;
|
|
84
|
+
close: () => void;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* State + actions exposed to anything rendered inside a `<BottomSheet>` —
|
|
88
|
+
* including the `header` and `footer` slots. Read via `useBottomSheet()`.
|
|
89
|
+
*
|
|
90
|
+
* `snapIndex` is the JS-thread mirror of the current snap point. -1 means the
|
|
91
|
+
* sheet is closed (mid-close-animation included). Use it to drive footer
|
|
92
|
+
* button enable state, conditional headers, etc. If you need per-frame
|
|
93
|
+
* progress (e.g. fade a header in as the sheet expands), reach for the
|
|
94
|
+
* animated value via a future enhancement — not exposed today to keep the
|
|
95
|
+
* surface minimal.
|
|
96
|
+
*/
|
|
97
|
+
export interface BottomSheetContextValue {
|
|
98
|
+
snapIndex: number;
|
|
99
|
+
snapPoints: number[];
|
|
100
|
+
expand: (index?: number) => void;
|
|
101
|
+
collapse: () => void;
|
|
102
|
+
close: () => void;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Access the enclosing `<BottomSheet>`'s state and imperative actions.
|
|
106
|
+
* Must be called from a component rendered inside a `<BottomSheet>` (as
|
|
107
|
+
* `children`, `header`, or `footer`).
|
|
108
|
+
*/
|
|
109
|
+
export declare const useBottomSheet: () => BottomSheetContextValue;
|
|
110
|
+
declare const BottomSheet: React.ForwardRefExoticComponent<BottomSheetProps & React.RefAttributes<BottomSheetRef>>;
|
|
111
|
+
export { BottomSheet };
|
|
112
|
+
export default BottomSheet;
|
|
113
|
+
//# sourceMappingURL=BottomSheet.d.ts.map
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { View as RNView, StyleProp, ViewProps, ViewStyle } from 'react-native';
|
|
3
|
+
import type { ColorPalette, RadiusScale, SpacingScale, Theme } from '../../theme/types';
|
|
4
|
+
export type SpacingToken = keyof SpacingScale;
|
|
5
|
+
export type RadiusToken = keyof RadiusScale;
|
|
6
|
+
export type BackgroundToken = keyof ColorPalette['background'];
|
|
7
|
+
export interface BoxProps extends ViewProps {
|
|
8
|
+
/** padding (all sides) */
|
|
9
|
+
p?: SpacingToken;
|
|
10
|
+
/** paddingHorizontal */
|
|
11
|
+
px?: SpacingToken;
|
|
12
|
+
/** paddingVertical */
|
|
13
|
+
py?: SpacingToken;
|
|
14
|
+
pt?: SpacingToken;
|
|
15
|
+
pr?: SpacingToken;
|
|
16
|
+
pb?: SpacingToken;
|
|
17
|
+
pl?: SpacingToken;
|
|
18
|
+
/** margin (all sides) */
|
|
19
|
+
m?: SpacingToken;
|
|
20
|
+
mx?: SpacingToken;
|
|
21
|
+
my?: SpacingToken;
|
|
22
|
+
mt?: SpacingToken;
|
|
23
|
+
mr?: SpacingToken;
|
|
24
|
+
mb?: SpacingToken;
|
|
25
|
+
ml?: SpacingToken;
|
|
26
|
+
/** Flexbox gap between children (spacing token). */
|
|
27
|
+
gap?: SpacingToken;
|
|
28
|
+
/** Background — a `colors.background.*` token or a raw colour string. */
|
|
29
|
+
bg?: BackgroundToken | (string & {});
|
|
30
|
+
radius?: RadiusToken;
|
|
31
|
+
/** Draw a hairline border in `colors.border.primary`. */
|
|
32
|
+
border?: boolean;
|
|
33
|
+
flex?: number;
|
|
34
|
+
align?: ViewStyle['alignItems'];
|
|
35
|
+
justify?: ViewStyle['justifyContent'];
|
|
36
|
+
direction?: ViewStyle['flexDirection'];
|
|
37
|
+
wrap?: boolean;
|
|
38
|
+
style?: StyleProp<ViewStyle>;
|
|
39
|
+
}
|
|
40
|
+
type LayoutProps = Omit<BoxProps, 'style' | 'children'>;
|
|
41
|
+
export declare const resolveBoxStyle: (theme: Theme, p: LayoutProps) => ViewStyle;
|
|
42
|
+
declare const Box: React.ForwardRefExoticComponent<BoxProps & React.RefAttributes<RNView>>;
|
|
43
|
+
export type StackProps = Omit<BoxProps, 'direction'>;
|
|
44
|
+
/** Vertical flex container with token spacing between children (default gap `md`). */
|
|
45
|
+
declare const Stack: React.ForwardRefExoticComponent<StackProps & React.RefAttributes<RNView>>;
|
|
46
|
+
export type RowProps = Omit<BoxProps, 'direction'>;
|
|
47
|
+
/** Horizontal flex container (default `align="center"`, gap `sm`). */
|
|
48
|
+
declare const Row: React.ForwardRefExoticComponent<RowProps & React.RefAttributes<RNView>>;
|
|
49
|
+
export interface SpacerProps {
|
|
50
|
+
/** Fixed spacer of this spacing token. Omit for a flexible spacer (`flex: 1`). */
|
|
51
|
+
size?: SpacingToken;
|
|
52
|
+
style?: StyleProp<ViewStyle>;
|
|
53
|
+
testID?: string;
|
|
54
|
+
}
|
|
55
|
+
/** Fixed gap (`size`) or a flexible push (`flex: 1`) between siblings. */
|
|
56
|
+
declare const Spacer: React.FC<SpacerProps>;
|
|
57
|
+
export { Box, Row, Spacer, Stack };
|
|
58
|
+
export default Box;
|
|
59
|
+
//# sourceMappingURL=Box.d.ts.map
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { PressableProps, View as RNView, StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
3
|
+
import type { GradientDefinition } from '../../theme/types';
|
|
4
|
+
import type { HapticType } from '../../utils/hapticUtils';
|
|
5
|
+
export type ButtonVariant = 'solid' | 'outline' | 'ghost' | 'link';
|
|
6
|
+
export type ButtonTone = 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'neutral';
|
|
7
|
+
export type ButtonSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
8
|
+
export interface ButtonProps extends Omit<PressableProps, 'style' | 'children'> {
|
|
9
|
+
title?: string;
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
variant?: ButtonVariant;
|
|
12
|
+
tone?: ButtonTone;
|
|
13
|
+
size?: ButtonSize;
|
|
14
|
+
/**
|
|
15
|
+
* When true, the button is disabled and renders a Spinner in place of the title (icons hidden).
|
|
16
|
+
* Use for in-flight submissions. This is **not** SkeletonContent — interactive controls signal
|
|
17
|
+
* pending action with an inline spinner, not a placeholder shimmer.
|
|
18
|
+
*/
|
|
19
|
+
loading?: boolean;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
fullWidth?: boolean;
|
|
22
|
+
leftIcon?: React.ReactNode;
|
|
23
|
+
rightIcon?: React.ReactNode;
|
|
24
|
+
haptic?: HapticType | false;
|
|
25
|
+
rounded?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Optional gradient background. Pass either a key from `theme.gradients`
|
|
28
|
+
* (e.g. `"primary"`) or a `GradientDefinition` literal. Requires
|
|
29
|
+
* `react-native-linear-gradient` to be installed; without it the button
|
|
30
|
+
* falls back to flat colour with a dev warning.
|
|
31
|
+
*/
|
|
32
|
+
gradient?: string | GradientDefinition;
|
|
33
|
+
style?: StyleProp<ViewStyle>;
|
|
34
|
+
textStyle?: StyleProp<TextStyle>;
|
|
35
|
+
pressAnimation?: boolean;
|
|
36
|
+
testID?: string;
|
|
37
|
+
}
|
|
38
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<RNView>>;
|
|
39
|
+
export { Button };
|
|
40
|
+
export default Button;
|
|
41
|
+
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { GestureResponderEvent, ImageSourcePropType, PressableProps, View as RNView, StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
import type { GradientDefinition } from '../../theme/types';
|
|
4
|
+
import type { HapticType } from '../../utils/hapticUtils';
|
|
5
|
+
export type CardVariant = 'elevated' | 'outlined' | 'filled';
|
|
6
|
+
export type CardElevation = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
7
|
+
export type CardRadius = 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
8
|
+
export type CardPadding = 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
9
|
+
export interface CardProps extends Omit<PressableProps, 'style' | 'children'> {
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
variant?: CardVariant;
|
|
12
|
+
elevation?: CardElevation;
|
|
13
|
+
radius?: CardRadius;
|
|
14
|
+
padding?: CardPadding;
|
|
15
|
+
interactive?: boolean;
|
|
16
|
+
header?: React.ReactNode;
|
|
17
|
+
footer?: React.ReactNode;
|
|
18
|
+
imageSource?: ImageSourcePropType;
|
|
19
|
+
imageHeight?: number;
|
|
20
|
+
imageAspectRatio?: number;
|
|
21
|
+
imageOverlay?: React.ReactNode;
|
|
22
|
+
/**
|
|
23
|
+
* When true, renders the component as its authored skeleton placeholder shape.
|
|
24
|
+
* The placeholder mirrors the real layout's footprint so the UI doesn't reflow
|
|
25
|
+
* when data arrives. Use this while the data driving the component is being fetched.
|
|
26
|
+
*/
|
|
27
|
+
loading?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Optional gradient background. Pass a key from `theme.gradients` or a
|
|
30
|
+
* literal `GradientDefinition`. Layered behind the card's content so
|
|
31
|
+
* existing variant/elevation/radius continue to work. Requires
|
|
32
|
+
* `react-native-linear-gradient` to be installed.
|
|
33
|
+
*/
|
|
34
|
+
gradient?: string | GradientDefinition;
|
|
35
|
+
onPress?: (event: GestureResponderEvent) => void;
|
|
36
|
+
/** Haptic feedback for interactions. Pass false to disable; pass a HapticType to override the default. */
|
|
37
|
+
haptic?: HapticType | false;
|
|
38
|
+
accessibilityLabel?: string;
|
|
39
|
+
style?: StyleProp<ViewStyle>;
|
|
40
|
+
/** Alias for `style` — applied to the outer card element. */
|
|
41
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
42
|
+
/** Style applied to the header wrapper View. */
|
|
43
|
+
headerStyle?: StyleProp<ViewStyle>;
|
|
44
|
+
/** Style applied to the body wrapper View (only present when header or footer is provided). */
|
|
45
|
+
bodyStyle?: StyleProp<ViewStyle>;
|
|
46
|
+
/** Style applied to the footer wrapper View. */
|
|
47
|
+
footerStyle?: StyleProp<ViewStyle>;
|
|
48
|
+
/** Per-instance override of the corner radius. Wins over the `radius` token. */
|
|
49
|
+
borderRadius?: number;
|
|
50
|
+
testID?: string;
|
|
51
|
+
}
|
|
52
|
+
declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<RNView>> & {
|
|
53
|
+
Skeleton: React.FC<CardProps>;
|
|
54
|
+
};
|
|
55
|
+
export { Card };
|
|
56
|
+
export default Card;
|
|
57
|
+
//# sourceMappingURL=Card.d.ts.map
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Carousel — generic horizontal carousel with pagination, auto-play, and looping.
|
|
3
|
+
*
|
|
4
|
+
* Backed by a virtualized FlatList for memory efficiency. Pagination is driven
|
|
5
|
+
* by `Animated.event` with `useNativeDriver` so the indicator tracks the scroll
|
|
6
|
+
* gesture frame-perfectly without round-tripping to JS.
|
|
7
|
+
*
|
|
8
|
+
* USAGE:
|
|
9
|
+
*
|
|
10
|
+
* const ref = useRef<CarouselRef>(null);
|
|
11
|
+
* <Carousel
|
|
12
|
+
* data={items}
|
|
13
|
+
* renderItem={(item) => <Card {...item} />}
|
|
14
|
+
* autoPlay
|
|
15
|
+
* loop
|
|
16
|
+
* />
|
|
17
|
+
*
|
|
18
|
+
* ref.current?.scrollTo(2);
|
|
19
|
+
* ref.current?.next();
|
|
20
|
+
* ref.current?.prev();
|
|
21
|
+
*/
|
|
22
|
+
import React from 'react';
|
|
23
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
24
|
+
import type { HapticType } from '../../utils';
|
|
25
|
+
export type PaginationStyle = 'dots' | 'bars' | 'numbers';
|
|
26
|
+
export interface CarouselProps<T = unknown> {
|
|
27
|
+
data: T[];
|
|
28
|
+
renderItem: (item: T, index: number) => React.ReactNode;
|
|
29
|
+
keyExtractor?: (item: T, index: number) => string;
|
|
30
|
+
/** Controlled current index. */
|
|
31
|
+
index?: number;
|
|
32
|
+
/** Initial index for uncontrolled usage. */
|
|
33
|
+
defaultIndex?: number;
|
|
34
|
+
onIndexChange?: (index: number) => void;
|
|
35
|
+
autoPlay?: boolean;
|
|
36
|
+
/** Auto-play tick in ms. Default 4000. */
|
|
37
|
+
autoPlayInterval?: number;
|
|
38
|
+
/** When the user reaches the end, jump back to the start. autoPlay implies loop. */
|
|
39
|
+
loop?: boolean;
|
|
40
|
+
showPagination?: boolean;
|
|
41
|
+
paginationStyle?: PaginationStyle;
|
|
42
|
+
/** Width per slide. 'screen' uses the parent width (or window width fallback). */
|
|
43
|
+
itemWidth?: number | 'screen';
|
|
44
|
+
/** Horizontal spacing between slides. */
|
|
45
|
+
spacing?: number;
|
|
46
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
47
|
+
accessibilityLabel?: string;
|
|
48
|
+
testID?: string;
|
|
49
|
+
/** Render a horizontal strip of 40x40 thumbnails below the carousel. */
|
|
50
|
+
showThumbnails?: boolean;
|
|
51
|
+
/** Feedback on thumbnail selection. `false` opts out. */
|
|
52
|
+
haptic?: HapticType | false;
|
|
53
|
+
/**
|
|
54
|
+
* Custom thumbnail renderer. If omitted, falls back to an Image when the item
|
|
55
|
+
* shape is `{ uri: string }`, otherwise a numbered placeholder.
|
|
56
|
+
*/
|
|
57
|
+
renderThumbnail?: (item: T, index: number) => React.ReactNode;
|
|
58
|
+
/**
|
|
59
|
+
* When true, renders the carousel as its authored skeleton placeholder
|
|
60
|
+
* shape: a single slide block plus pagination dots. Footprint matches the
|
|
61
|
+
* loaded carousel so the layout doesn't shift when data arrives.
|
|
62
|
+
*/
|
|
63
|
+
loading?: boolean;
|
|
64
|
+
}
|
|
65
|
+
export interface CarouselRef {
|
|
66
|
+
scrollTo: (index: number, animated?: boolean) => void;
|
|
67
|
+
next: () => void;
|
|
68
|
+
prev: () => void;
|
|
69
|
+
}
|
|
70
|
+
declare const Carousel: (<T = unknown>(props: CarouselProps<T> & {
|
|
71
|
+
ref?: React.Ref<CarouselRef>;
|
|
72
|
+
}) => React.ReactElement | null) & {
|
|
73
|
+
Skeleton: React.FC<CarouselProps<unknown>>;
|
|
74
|
+
};
|
|
75
|
+
export { Carousel };
|
|
76
|
+
export default Carousel;
|
|
77
|
+
//# sourceMappingURL=Carousel.d.ts.map
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { PressableProps, View as RNView, StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
2
|
+
import type { HapticType } from '../../utils/hapticUtils';
|
|
3
|
+
export type CheckboxSize = 'sm' | 'md' | 'lg';
|
|
4
|
+
export type CheckboxTone = 'primary' | 'success' | 'warning' | 'error';
|
|
5
|
+
export interface CheckboxProps extends Omit<PressableProps, 'style' | 'children' | 'onPress'> {
|
|
6
|
+
checked?: boolean;
|
|
7
|
+
defaultChecked?: boolean;
|
|
8
|
+
onChange?: (checked: boolean) => void;
|
|
9
|
+
indeterminate?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
label?: string;
|
|
12
|
+
size?: CheckboxSize;
|
|
13
|
+
tone?: CheckboxTone;
|
|
14
|
+
accessibilityLabel?: string;
|
|
15
|
+
/** Haptic feedback for interactions. Pass false to disable; pass a HapticType to override the default. */
|
|
16
|
+
haptic?: HapticType | false;
|
|
17
|
+
style?: StyleProp<ViewStyle>;
|
|
18
|
+
boxStyle?: StyleProp<ViewStyle>;
|
|
19
|
+
/** Style override for the check glyph (✓) inside the box. */
|
|
20
|
+
checkIconStyle?: StyleProp<TextStyle>;
|
|
21
|
+
/** Style override for the indeterminate bar inside the box. */
|
|
22
|
+
indeterminateBarStyle?: StyleProp<ViewStyle>;
|
|
23
|
+
/** Style override for the outer row container. */
|
|
24
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
25
|
+
/** Style override for the label text. */
|
|
26
|
+
labelStyle?: StyleProp<TextStyle>;
|
|
27
|
+
testID?: string;
|
|
28
|
+
}
|
|
29
|
+
declare const Checkbox: import("react").ForwardRefExoticComponent<CheckboxProps & import("react").RefAttributes<RNView>>;
|
|
30
|
+
export { Checkbox };
|
|
31
|
+
export default Checkbox;
|
|
32
|
+
//# sourceMappingURL=Checkbox.d.ts.map
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { View as RNView, StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
3
|
+
import type { HapticType } from '../../utils/hapticUtils';
|
|
4
|
+
export type ChipVariant = 'filled' | 'outlined';
|
|
5
|
+
export type ChipTone = 'primary' | 'neutral' | 'success' | 'warning' | 'error' | 'info';
|
|
6
|
+
export type ChipSize = 'sm' | 'md';
|
|
7
|
+
export interface ChipProps {
|
|
8
|
+
label: string;
|
|
9
|
+
selected?: boolean;
|
|
10
|
+
onPress?: () => void;
|
|
11
|
+
onClose?: () => void;
|
|
12
|
+
leftIcon?: React.ReactNode;
|
|
13
|
+
variant?: ChipVariant;
|
|
14
|
+
tone?: ChipTone;
|
|
15
|
+
size?: ChipSize;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* When true, renders the component as its authored skeleton placeholder shape.
|
|
19
|
+
* The placeholder mirrors the real layout's footprint so the UI doesn't reflow
|
|
20
|
+
* when data arrives. Use this while the data driving the component is being fetched.
|
|
21
|
+
*/
|
|
22
|
+
loading?: boolean;
|
|
23
|
+
accessibilityLabel?: string;
|
|
24
|
+
/** Haptic feedback for interactions. Pass false to disable; pass a HapticType to override the default. */
|
|
25
|
+
haptic?: HapticType | false;
|
|
26
|
+
style?: StyleProp<ViewStyle>;
|
|
27
|
+
textStyle?: StyleProp<TextStyle>;
|
|
28
|
+
/** Style override for the chip outer container (alias to style, applied after). */
|
|
29
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
30
|
+
/** Style override for the close (×) button pressable. */
|
|
31
|
+
closeButtonStyle?: StyleProp<ViewStyle>;
|
|
32
|
+
/** Style override for the close (×) glyph text. */
|
|
33
|
+
closeIconStyle?: StyleProp<TextStyle>;
|
|
34
|
+
testID?: string;
|
|
35
|
+
}
|
|
36
|
+
declare const Chip: React.ForwardRefExoticComponent<ChipProps & React.RefAttributes<RNView>> & {
|
|
37
|
+
Skeleton: React.FC<ChipProps>;
|
|
38
|
+
};
|
|
39
|
+
export { Chip };
|
|
40
|
+
export default Chip;
|
|
41
|
+
//# sourceMappingURL=Chip.d.ts.map
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ChoiceGroup — headless single-choice group with templated options.
|
|
3
|
+
*
|
|
4
|
+
* The component owns the BEHAVIOUR: selection state (controlled or
|
|
5
|
+
* uncontrolled), per-option press handling, haptics, radio/radiogroup a11y,
|
|
6
|
+
* and row/column/wrap layout. Each option's LOOK comes from a template:
|
|
7
|
+
*
|
|
8
|
+
* - Default template: a bordered card — label (+ optional icon /
|
|
9
|
+
* description) with a trailing RadioDot, tinted with the option's colour
|
|
10
|
+
* when selected. The "Hot / Warm / Cold" status-picker pattern works
|
|
11
|
+
* zero-config.
|
|
12
|
+
* - `renderOption`: full custom JSX per option. Receives
|
|
13
|
+
* `{ option, index, selected, pressed, disabled, color }`; press handling
|
|
14
|
+
* and a11y stay managed. Embed the exported RadioDot to keep the standard
|
|
15
|
+
* indicator inside a custom layout.
|
|
16
|
+
*
|
|
17
|
+
* Cross-option visuals (a single indicator sliding BETWEEN options, joined
|
|
18
|
+
* segments) are out of scope by design — that's SegmentedControl.
|
|
19
|
+
*
|
|
20
|
+
* Same data contract as Select: `ChoiceOption[]` by default, `getOption*`
|
|
21
|
+
* accessors for custom shapes.
|
|
22
|
+
*/
|
|
23
|
+
import React from 'react';
|
|
24
|
+
import type { View as RNView, StyleProp, ViewStyle } from 'react-native';
|
|
25
|
+
import type { HapticType } from '../../utils';
|
|
26
|
+
import type { RadioValue } from '../Radio/Radio';
|
|
27
|
+
export type ChoiceGroupSize = 'sm' | 'md' | 'lg';
|
|
28
|
+
export type ChoiceGroupDirection = 'row' | 'column';
|
|
29
|
+
export interface ChoiceOption {
|
|
30
|
+
label: string;
|
|
31
|
+
value: RadioValue;
|
|
32
|
+
/** Tints the default card (label, border, dot, selected fill). Default: `colors.primary`. */
|
|
33
|
+
color?: string;
|
|
34
|
+
description?: string;
|
|
35
|
+
icon?: React.ReactNode;
|
|
36
|
+
disabled?: boolean;
|
|
37
|
+
}
|
|
38
|
+
/** Everything a custom option template needs to render one option. */
|
|
39
|
+
export interface ChoiceOptionState<T = ChoiceOption> {
|
|
40
|
+
option: T;
|
|
41
|
+
index: number;
|
|
42
|
+
selected: boolean;
|
|
43
|
+
pressed: boolean;
|
|
44
|
+
disabled: boolean;
|
|
45
|
+
/** Resolved option colour: `getOptionColor` → option `color` → `colors.primary`. */
|
|
46
|
+
color: string;
|
|
47
|
+
}
|
|
48
|
+
export interface ChoiceGroupProps<T = ChoiceOption> {
|
|
49
|
+
/** `ChoiceOption` shape by default; pass `getOption*` accessors for anything else. */
|
|
50
|
+
options: ReadonlyArray<T>;
|
|
51
|
+
/** Defaults to `(o) => (o as ChoiceOption).label`. */
|
|
52
|
+
getOptionLabel?: (option: T) => string;
|
|
53
|
+
/** Defaults to `(o) => (o as ChoiceOption).value`. */
|
|
54
|
+
getOptionValue?: (option: T) => RadioValue;
|
|
55
|
+
/** Defaults to `(o) => (o as ChoiceOption).disabled === true`. */
|
|
56
|
+
getOptionDisabled?: (option: T) => boolean;
|
|
57
|
+
/** Defaults to `(o) => (o as ChoiceOption).description`. */
|
|
58
|
+
getOptionDescription?: (option: T) => string | undefined;
|
|
59
|
+
/** Defaults to `(o) => (o as ChoiceOption).icon`. */
|
|
60
|
+
getOptionIcon?: (option: T) => React.ReactNode;
|
|
61
|
+
/** Defaults to `(o) => (o as ChoiceOption).color`. */
|
|
62
|
+
getOptionColor?: (option: T) => string | undefined;
|
|
63
|
+
/** Controlled selected value. */
|
|
64
|
+
value?: RadioValue;
|
|
65
|
+
/** Uncontrolled initial value. */
|
|
66
|
+
defaultValue?: RadioValue;
|
|
67
|
+
onChange?: (value: RadioValue) => void;
|
|
68
|
+
/**
|
|
69
|
+
* Custom option template. The library still owns press handling, haptics
|
|
70
|
+
* and a11y — the template only paints. Selected-state styling is the
|
|
71
|
+
* template's job (it gets the booleans).
|
|
72
|
+
*/
|
|
73
|
+
renderOption?: (state: ChoiceOptionState<T>) => React.ReactNode;
|
|
74
|
+
/** Main axis of the option list. Default `'row'`. */
|
|
75
|
+
direction?: ChoiceGroupDirection;
|
|
76
|
+
/** Gap between options. Default `theme.spacing.sm`. */
|
|
77
|
+
gap?: number;
|
|
78
|
+
/** Allow options to wrap onto multiple lines (swatch grids). Default `false`. */
|
|
79
|
+
wrap?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Stretch options equally along the main axis. Default: `true` for
|
|
82
|
+
* unwrapped rows (the status-picker look), `false` otherwise.
|
|
83
|
+
*/
|
|
84
|
+
fullWidth?: boolean;
|
|
85
|
+
/** Disables the whole group. Per-option `disabled` still applies on top. */
|
|
86
|
+
disabled?: boolean;
|
|
87
|
+
/** Density of the DEFAULT template (padding / fontSize / dot). Default `'md'`. */
|
|
88
|
+
size?: ChoiceGroupSize;
|
|
89
|
+
/** Haptic on select. Pass false to disable; pass a HapticType to override. */
|
|
90
|
+
haptic?: HapticType | false;
|
|
91
|
+
accessibilityLabel?: string;
|
|
92
|
+
style?: StyleProp<ViewStyle>;
|
|
93
|
+
/** Style for each option's pressable wrapper (both templates). */
|
|
94
|
+
optionStyle?: StyleProp<ViewStyle>;
|
|
95
|
+
testID?: string;
|
|
96
|
+
}
|
|
97
|
+
declare const ChoiceGroup: React.ForwardRefExoticComponent<ChoiceGroupProps<unknown> & React.RefAttributes<RNView>>;
|
|
98
|
+
export { ChoiceGroup };
|
|
99
|
+
export default ChoiceGroup;
|
|
100
|
+
//# sourceMappingURL=ChoiceGroup.d.ts.map
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
export type ConfettiMode = 'rain' | 'cannon';
|
|
4
|
+
export interface ConfettiOrigin {
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
}
|
|
8
|
+
export interface ConfettiHandle {
|
|
9
|
+
/** Fire a burst. Re-seeds the pieces so each call looks different. */
|
|
10
|
+
start: () => void;
|
|
11
|
+
/** Stop and clear immediately. */
|
|
12
|
+
stop: () => void;
|
|
13
|
+
}
|
|
14
|
+
export interface ConfettiProps {
|
|
15
|
+
/** Number of pieces. Default 80. */
|
|
16
|
+
count?: number;
|
|
17
|
+
/** Piece colours. Defaults to a vibrant set drawn from the theme palette. */
|
|
18
|
+
colors?: string[];
|
|
19
|
+
/** `'rain'` falls from the top edge; `'cannon'` bursts up/out from `origin`. Default `'rain'`. */
|
|
20
|
+
mode?: ConfettiMode;
|
|
21
|
+
/** Burst origin for `'cannon'` (defaults to the bottom-centre of the container). */
|
|
22
|
+
origin?: ConfettiOrigin;
|
|
23
|
+
/** Full animation duration in ms. Default 2800. */
|
|
24
|
+
duration?: number;
|
|
25
|
+
/** Fade pieces out near the end. Default true. */
|
|
26
|
+
fadeOut?: boolean;
|
|
27
|
+
/** Fire automatically on mount. Default false. */
|
|
28
|
+
autoStart?: boolean;
|
|
29
|
+
/** Loop continuously (ongoing celebration). Default false. */
|
|
30
|
+
recycle?: boolean;
|
|
31
|
+
/** Base piece size in px (varied ±40% per piece). Default 10. */
|
|
32
|
+
size?: number;
|
|
33
|
+
/** Called once when a non-recycling burst finishes (or immediately if reduce-motion is on). */
|
|
34
|
+
onComplete?: () => void;
|
|
35
|
+
style?: StyleProp<ViewStyle>;
|
|
36
|
+
testID?: string;
|
|
37
|
+
}
|
|
38
|
+
declare const Confetti: React.ForwardRefExoticComponent<ConfettiProps & React.RefAttributes<ConfettiHandle>>;
|
|
39
|
+
export { Confetti };
|
|
40
|
+
export default Confetti;
|
|
41
|
+
//# sourceMappingURL=Confetti.d.ts.map
|