@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,46 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { GestureResponderEvent, View as RNView, StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
3
|
+
import type { HapticType } from '../../utils/hapticUtils';
|
|
4
|
+
import type { SwipeableAction } from '../Swipeable';
|
|
5
|
+
export type ListItemSize = 'sm' | 'md' | 'lg';
|
|
6
|
+
export interface ListItemProps {
|
|
7
|
+
title: string;
|
|
8
|
+
/**
|
|
9
|
+
* When true, renders the component as its authored skeleton placeholder shape.
|
|
10
|
+
* The placeholder mirrors the real layout's footprint so the UI doesn't reflow
|
|
11
|
+
* when data arrives. Use this while the data driving the component is being fetched.
|
|
12
|
+
*/
|
|
13
|
+
loading?: boolean;
|
|
14
|
+
subtitle?: string;
|
|
15
|
+
description?: string;
|
|
16
|
+
left?: React.ReactNode;
|
|
17
|
+
right?: React.ReactNode;
|
|
18
|
+
onPress?: (event: GestureResponderEvent) => void;
|
|
19
|
+
/** Haptic feedback for interactions. Pass false to disable; pass a HapticType to override the default. */
|
|
20
|
+
haptic?: HapticType | false;
|
|
21
|
+
selected?: boolean;
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
size?: ListItemSize;
|
|
24
|
+
divider?: boolean;
|
|
25
|
+
chevron?: boolean;
|
|
26
|
+
/** Optional swipe-from-left actions. Wraps the row in a Swipeable when provided. */
|
|
27
|
+
leftActions?: SwipeableAction[];
|
|
28
|
+
/** Optional swipe-from-right actions. Wraps the row in a Swipeable when provided. */
|
|
29
|
+
rightActions?: SwipeableAction[];
|
|
30
|
+
accessibilityLabel?: string;
|
|
31
|
+
accessibilityHint?: string;
|
|
32
|
+
style?: StyleProp<ViewStyle>;
|
|
33
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
34
|
+
titleStyle?: StyleProp<TextStyle>;
|
|
35
|
+
subtitleStyle?: StyleProp<TextStyle>;
|
|
36
|
+
descriptionStyle?: StyleProp<TextStyle>;
|
|
37
|
+
leftSlotStyle?: StyleProp<ViewStyle>;
|
|
38
|
+
rightSlotStyle?: StyleProp<ViewStyle>;
|
|
39
|
+
testID?: string;
|
|
40
|
+
}
|
|
41
|
+
declare const ListItem: React.ForwardRefExoticComponent<ListItemProps & React.RefAttributes<RNView>> & {
|
|
42
|
+
Skeleton: React.FC<ListItemProps>;
|
|
43
|
+
};
|
|
44
|
+
export { ListItem };
|
|
45
|
+
export default ListItem;
|
|
46
|
+
//# sourceMappingURL=ListItem.d.ts.map
|
|
@@ -0,0 +1,47 @@
|
|
|
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 ModalPresentation = 'centered' | 'bottom' | 'fullScreen';
|
|
5
|
+
/**
|
|
6
|
+
* Grace period between `visible` flipping false and the native modal being
|
|
7
|
+
* safely gone. Unmounting the tree (navigation reset, auth flip) before this
|
|
8
|
+
* elapses races Android's ReactModalHostView dismiss and NPE-crashes.
|
|
9
|
+
*/
|
|
10
|
+
export declare const MODAL_DISMISS_GRACE_MS = 300;
|
|
11
|
+
export interface ModalProps {
|
|
12
|
+
visible: boolean;
|
|
13
|
+
onRequestClose: () => void;
|
|
14
|
+
presentation?: ModalPresentation;
|
|
15
|
+
backdropOpacity?: number;
|
|
16
|
+
backdropPressClose?: boolean;
|
|
17
|
+
animationDuration?: number;
|
|
18
|
+
accessibilityLabel?: string;
|
|
19
|
+
hardwareBackPress?: boolean;
|
|
20
|
+
children: React.ReactNode;
|
|
21
|
+
contentStyle?: StyleProp<ViewStyle>;
|
|
22
|
+
backdropStyle?: StyleProp<ViewStyle>;
|
|
23
|
+
/**
|
|
24
|
+
* Optional ref to the View that triggered the modal. When the modal closes,
|
|
25
|
+
* accessibility focus is restored to that View so screen-reader users land
|
|
26
|
+
* back where they invoked the dialog instead of at the top of the screen.
|
|
27
|
+
* Opt-in: when undefined, focus behaviour is unchanged.
|
|
28
|
+
*/
|
|
29
|
+
restoreFocusRef?: React.RefObject<RNView | null>;
|
|
30
|
+
/**
|
|
31
|
+
* Fired once after the modal closes, MODAL_DISMISS_GRACE_MS after `visible`
|
|
32
|
+
* flips false — the earliest point it is safe to unmount the surrounding
|
|
33
|
+
* tree (navigate away, flip auth state) without racing the native dismiss
|
|
34
|
+
* on Android. Sequence follow-up work (or a follow-up modal) from here.
|
|
35
|
+
*/
|
|
36
|
+
onDismissed?: () => void;
|
|
37
|
+
/**
|
|
38
|
+
* Haptic feedback for interactions. Pass false to disable; pass a HapticType
|
|
39
|
+
* to override the default.
|
|
40
|
+
*/
|
|
41
|
+
haptic?: HapticType | false;
|
|
42
|
+
testID?: string;
|
|
43
|
+
}
|
|
44
|
+
declare const Modal: React.ForwardRefExoticComponent<ModalProps & React.RefAttributes<RNView>>;
|
|
45
|
+
export { Modal };
|
|
46
|
+
export default Modal;
|
|
47
|
+
//# sourceMappingURL=Modal.d.ts.map
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { StyleProp, TextInputProps, TextStyle, ViewStyle } from 'react-native';
|
|
3
|
+
import type { HapticType } from '../../utils';
|
|
4
|
+
export type NumberInputSize = 'sm' | 'md' | 'lg';
|
|
5
|
+
export type NumberInputVariant = 'inline' | 'horizontal' | 'stacked';
|
|
6
|
+
export interface NumberInputRef {
|
|
7
|
+
focus: () => void;
|
|
8
|
+
blur: () => void;
|
|
9
|
+
clear: () => void;
|
|
10
|
+
}
|
|
11
|
+
export interface NumberInputProps {
|
|
12
|
+
value?: number;
|
|
13
|
+
defaultValue?: number;
|
|
14
|
+
onChange?: (value: number) => void;
|
|
15
|
+
min?: number;
|
|
16
|
+
max?: number;
|
|
17
|
+
step?: number;
|
|
18
|
+
allowDecimal?: boolean;
|
|
19
|
+
precision?: number;
|
|
20
|
+
label?: string;
|
|
21
|
+
helperText?: string;
|
|
22
|
+
error?: string;
|
|
23
|
+
disabled?: boolean;
|
|
24
|
+
size?: NumberInputSize;
|
|
25
|
+
variant?: NumberInputVariant;
|
|
26
|
+
unit?: string;
|
|
27
|
+
/** Haptic feedback for interactions. Pass false to disable; pass a HapticType to override the default. */
|
|
28
|
+
haptic?: HapticType | false;
|
|
29
|
+
accessibilityLabel?: string;
|
|
30
|
+
style?: StyleProp<ViewStyle>;
|
|
31
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
32
|
+
inputStyle?: StyleProp<TextStyle>;
|
|
33
|
+
buttonStyle?: StyleProp<ViewStyle>;
|
|
34
|
+
unitStyle?: StyleProp<TextStyle>;
|
|
35
|
+
labelStyle?: StyleProp<TextStyle>;
|
|
36
|
+
textInputProps?: Omit<TextInputProps, 'value' | 'onChangeText' | 'onBlur' | 'keyboardType' | 'editable'>;
|
|
37
|
+
testID?: string;
|
|
38
|
+
}
|
|
39
|
+
declare const NumberInput: React.ForwardRefExoticComponent<NumberInputProps & React.RefAttributes<NumberInputRef>>;
|
|
40
|
+
export { NumberInput };
|
|
41
|
+
export default NumberInput;
|
|
42
|
+
//# sourceMappingURL=NumberInput.d.ts.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
2
|
+
import type { HapticType } from '../../utils';
|
|
3
|
+
export type OTPInputSize = 'sm' | 'md' | 'lg';
|
|
4
|
+
export interface OTPInputRef {
|
|
5
|
+
focus: () => void;
|
|
6
|
+
blur: () => void;
|
|
7
|
+
clear: () => void;
|
|
8
|
+
}
|
|
9
|
+
export interface OTPInputProps {
|
|
10
|
+
value?: string;
|
|
11
|
+
defaultValue?: string;
|
|
12
|
+
onChange?: (value: string) => void;
|
|
13
|
+
onComplete?: (value: string) => void;
|
|
14
|
+
length?: number;
|
|
15
|
+
keyboardType?: 'number-pad' | 'default';
|
|
16
|
+
autoFocus?: boolean;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
error?: boolean | string;
|
|
19
|
+
size?: OTPInputSize;
|
|
20
|
+
secure?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Haptic feedback for interactions. Pass false to disable; pass a HapticType
|
|
23
|
+
* to override the default.
|
|
24
|
+
*/
|
|
25
|
+
haptic?: HapticType | false;
|
|
26
|
+
accessibilityLabel?: string;
|
|
27
|
+
style?: StyleProp<ViewStyle>;
|
|
28
|
+
cellStyle?: StyleProp<ViewStyle>;
|
|
29
|
+
textStyle?: StyleProp<TextStyle>;
|
|
30
|
+
testID?: string;
|
|
31
|
+
}
|
|
32
|
+
declare const OTPInput: import("react").ForwardRefExoticComponent<OTPInputProps & import("react").RefAttributes<OTPInputRef>>;
|
|
33
|
+
export { OTPInput };
|
|
34
|
+
export default OTPInput;
|
|
35
|
+
//# sourceMappingURL=OTPInput.d.ts.map
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OptionSheet — the shared bottom-sheet option picker.
|
|
3
|
+
*
|
|
4
|
+
* Internal primitive behind Select and InlineSelect: RN Modal-backed slide-up
|
|
5
|
+
* sheet with backdrop fade, grab handle, optional title, optional client-side
|
|
6
|
+
* search, the option list (icon + label + description, single dot / multi
|
|
7
|
+
* checkbox) and the multi-select Done footer. Owns the open/close animations
|
|
8
|
+
* and the search query; selection STATE stays with the caller — the sheet
|
|
9
|
+
* only reports `onSelect(option)` and asks `isSelected(value)`.
|
|
10
|
+
*
|
|
11
|
+
* Also the home of the canonical option types (`SelectValue`, `SelectOption`)
|
|
12
|
+
* and accessor signatures shared by every option-picking component. Select
|
|
13
|
+
* re-exports them so the public import path is unchanged.
|
|
14
|
+
*/
|
|
15
|
+
import React from 'react';
|
|
16
|
+
import type { StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
17
|
+
export type SelectValue = string | number;
|
|
18
|
+
export interface SelectOption {
|
|
19
|
+
label: string;
|
|
20
|
+
value: SelectValue;
|
|
21
|
+
description?: string;
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
icon?: React.ReactNode;
|
|
24
|
+
}
|
|
25
|
+
export interface OptionSheetProps {
|
|
26
|
+
open: boolean;
|
|
27
|
+
/** Requests close (backdrop tap, hardware back, multi Done). Caller flips `open`. */
|
|
28
|
+
onClose: () => void;
|
|
29
|
+
/** Sheet heading. Also the modal's a11y label fallback. */
|
|
30
|
+
title?: string;
|
|
31
|
+
options: ReadonlyArray<unknown>;
|
|
32
|
+
labelOf: (option: unknown) => string;
|
|
33
|
+
valueOf: (option: unknown) => SelectValue;
|
|
34
|
+
disabledOf: (option: unknown) => boolean;
|
|
35
|
+
descriptionOf: (option: unknown) => string | undefined;
|
|
36
|
+
iconOf: (option: unknown) => React.ReactNode;
|
|
37
|
+
isSelected: (value: SelectValue) => boolean;
|
|
38
|
+
/** Tap on an enabled option. Caller updates state and (for single-select) closes. */
|
|
39
|
+
onSelect: (option: unknown) => void;
|
|
40
|
+
/** Multi mode: checkboxes + Done footer instead of the selected dot. */
|
|
41
|
+
multi?: boolean;
|
|
42
|
+
searchable?: boolean;
|
|
43
|
+
/** Caret/selection colour of the search input — callers mirror their focus colour. Default: `colors.border.focus`. */
|
|
44
|
+
searchSelectionColor?: string;
|
|
45
|
+
accessibilityLabel?: string;
|
|
46
|
+
/** Style for every option row container (padding, background, etc.). Wins over the row defaults. */
|
|
47
|
+
optionStyle?: StyleProp<ViewStyle>;
|
|
48
|
+
/** Extra style merged onto the selected option row — wins over `optionStyle` and the default selected fill. */
|
|
49
|
+
selectedOptionStyle?: StyleProp<ViewStyle>;
|
|
50
|
+
/** Style for every option's label text. Wins over the label defaults. */
|
|
51
|
+
optionTextStyle?: StyleProp<TextStyle>;
|
|
52
|
+
/** Extra style merged onto the selected option's label text — wins over `optionTextStyle` and the default selected colour. */
|
|
53
|
+
selectedOptionTextStyle?: StyleProp<TextStyle>;
|
|
54
|
+
}
|
|
55
|
+
export declare const OptionSheet: React.FC<OptionSheetProps>;
|
|
56
|
+
export default OptionSheet;
|
|
57
|
+
//# sourceMappingURL=OptionSheet.d.ts.map
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { TextInput as RNTextInput, StyleProp, ViewStyle } from 'react-native';
|
|
2
|
+
import type { HapticType } from '../../utils';
|
|
3
|
+
import type { FieldBaseSize, FieldBaseVariant } from '../FieldBase';
|
|
4
|
+
export interface CallingCode {
|
|
5
|
+
/** ISO 3166-1 alpha-2, used as the option's identity. */
|
|
6
|
+
iso: string;
|
|
7
|
+
/** Dial prefix WITHOUT the plus, e.g. '91'. */
|
|
8
|
+
code: string;
|
|
9
|
+
label: string;
|
|
10
|
+
/** Expected national-number length. Omit when it varies. */
|
|
11
|
+
nationalLength?: number;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* A deliberately short default list — the countries the fleet actually ships to.
|
|
15
|
+
* Consumers needing the full set pass their own `countries`; shipping 240 entries
|
|
16
|
+
* (and their flags) in a component library is weight almost nobody uses.
|
|
17
|
+
*/
|
|
18
|
+
export declare const DEFAULT_CALLING_CODES: ReadonlyArray<CallingCode>;
|
|
19
|
+
export interface PhoneNumberValue {
|
|
20
|
+
/** Dial prefix without the plus, e.g. '91'. */
|
|
21
|
+
callingCode: string;
|
|
22
|
+
/** Digits only, no prefix. */
|
|
23
|
+
nationalNumber: string;
|
|
24
|
+
/** ISO of the selected country. */
|
|
25
|
+
iso: string;
|
|
26
|
+
}
|
|
27
|
+
export interface PhoneNumberInputProps {
|
|
28
|
+
value?: PhoneNumberValue;
|
|
29
|
+
defaultValue?: PhoneNumberValue;
|
|
30
|
+
onChange?: (value: PhoneNumberValue) => void;
|
|
31
|
+
/** Fires with `+<code><national>` when the number reaches its expected length. */
|
|
32
|
+
onComplete?: (e164: string) => void;
|
|
33
|
+
countries?: ReadonlyArray<CallingCode>;
|
|
34
|
+
/** ISO to start on when no value is given. Default 'IN'. */
|
|
35
|
+
defaultIso?: string;
|
|
36
|
+
label?: string;
|
|
37
|
+
placeholder?: string;
|
|
38
|
+
helperText?: string;
|
|
39
|
+
error?: string;
|
|
40
|
+
required?: boolean;
|
|
41
|
+
disabled?: boolean;
|
|
42
|
+
size?: FieldBaseSize;
|
|
43
|
+
variant?: FieldBaseVariant;
|
|
44
|
+
countrySheetTitle?: string;
|
|
45
|
+
haptic?: HapticType | false;
|
|
46
|
+
style?: StyleProp<ViewStyle>;
|
|
47
|
+
testID?: string;
|
|
48
|
+
}
|
|
49
|
+
/** `+<code> <national>` — presentational only; the value stays structured. */
|
|
50
|
+
export declare const formatE164: (value: PhoneNumberValue) => string;
|
|
51
|
+
/**
|
|
52
|
+
* Country calling code + national number, kept as a structured value rather than
|
|
53
|
+
* one string. A single free-text phone field is where "+91", "0091", "091" and
|
|
54
|
+
* "9876543210" all arrive for the same number and the backend has to guess.
|
|
55
|
+
*/
|
|
56
|
+
export declare const PhoneNumberInput: import("react").ForwardRefExoticComponent<PhoneNumberInputProps & import("react").RefAttributes<RNTextInput>>;
|
|
57
|
+
export default PhoneNumberInput;
|
|
58
|
+
//# sourceMappingURL=PhoneNumberInput.d.ts.map
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PickerTrigger — the tappable input field that opens a modal picker.
|
|
3
|
+
*
|
|
4
|
+
* Standalone read-only field built on FieldBase, used by DatePicker,
|
|
5
|
+
* TimePicker and DateRangePicker (and any consumer-built picker) to render
|
|
6
|
+
* the closed-state row that matches Input / Select pixel-for-pixel.
|
|
7
|
+
*
|
|
8
|
+
* The component is purely visual + interactive — it does not own picker
|
|
9
|
+
* state. Consumers either:
|
|
10
|
+
* - Use the built-in trigger mode on a picker, which composes this
|
|
11
|
+
* internally and manages its own open/close.
|
|
12
|
+
* - Render PickerTrigger themselves alongside a controlled picker.
|
|
13
|
+
*/
|
|
14
|
+
import React from 'react';
|
|
15
|
+
import type { View as RNView, StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
16
|
+
import type { FieldBaseSize, FieldBaseVariant } from '../FieldBase';
|
|
17
|
+
export type PickerTriggerSize = FieldBaseSize;
|
|
18
|
+
export type PickerTriggerVariant = FieldBaseVariant;
|
|
19
|
+
export interface PickerTriggerProps {
|
|
20
|
+
/** The currently selected value rendered as the trigger's primary text. */
|
|
21
|
+
value?: string;
|
|
22
|
+
/** Shown when `value` is empty. Falls back to "Select…". */
|
|
23
|
+
placeholder?: string;
|
|
24
|
+
/** Static label rendered above the field. */
|
|
25
|
+
label?: string;
|
|
26
|
+
/** Helper text shown below the field. Hidden when `error` is set. */
|
|
27
|
+
helperText?: string;
|
|
28
|
+
/** Error message shown below the field (and red-borders the field). */
|
|
29
|
+
error?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Appends the required marker to the label. Marker text + colour come from
|
|
32
|
+
* `theme.components.field.{requiredMarker,requiredMarkerColor}` (default
|
|
33
|
+
* `'*'` in `colors.error`).
|
|
34
|
+
*/
|
|
35
|
+
required?: boolean;
|
|
36
|
+
/** Tap handler — typically opens the modal picker. */
|
|
37
|
+
onPress: () => void;
|
|
38
|
+
/** Render a clear (×) affordance when `value` is non-empty. */
|
|
39
|
+
clearable?: boolean;
|
|
40
|
+
/** Called when the clear affordance is pressed. */
|
|
41
|
+
onClear?: () => void;
|
|
42
|
+
/** Leading icon slot (e.g. calendar / clock). */
|
|
43
|
+
leadingIcon?: React.ReactNode;
|
|
44
|
+
/** Trailing slot — defaults to a chevron when unset. Pass `null` to suppress. */
|
|
45
|
+
trailing?: React.ReactNode;
|
|
46
|
+
disabled?: boolean;
|
|
47
|
+
size?: PickerTriggerSize;
|
|
48
|
+
variant?: PickerTriggerVariant;
|
|
49
|
+
style?: StyleProp<ViewStyle>;
|
|
50
|
+
triggerStyle?: StyleProp<ViewStyle>;
|
|
51
|
+
valueStyle?: StyleProp<TextStyle>;
|
|
52
|
+
labelStyle?: StyleProp<TextStyle>;
|
|
53
|
+
messageStyle?: StyleProp<TextStyle>;
|
|
54
|
+
accessibilityLabel?: string;
|
|
55
|
+
testID?: string;
|
|
56
|
+
}
|
|
57
|
+
declare const PickerTrigger: React.ForwardRefExoticComponent<PickerTriggerProps & React.RefAttributes<RNView>>;
|
|
58
|
+
export { PickerTrigger };
|
|
59
|
+
export default PickerTrigger;
|
|
60
|
+
//# sourceMappingURL=PickerTrigger.d.ts.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { View as RNView, StyleProp, ViewStyle } from 'react-native';
|
|
2
|
+
import type { GradientDefinition } from '../../theme/types';
|
|
3
|
+
export type ProgressBarTone = 'primary' | 'success' | 'warning' | 'error';
|
|
4
|
+
export interface ProgressBarSegment {
|
|
5
|
+
/** Fraction of the full track (0–1). */
|
|
6
|
+
value: number;
|
|
7
|
+
/** Explicit colour; falls back to `tone`. */
|
|
8
|
+
color?: string;
|
|
9
|
+
tone?: ProgressBarTone;
|
|
10
|
+
}
|
|
11
|
+
export interface ProgressBarProps {
|
|
12
|
+
progress?: number;
|
|
13
|
+
indeterminate?: boolean;
|
|
14
|
+
height?: number;
|
|
15
|
+
radius?: number;
|
|
16
|
+
tone?: ProgressBarTone;
|
|
17
|
+
trackColor?: string;
|
|
18
|
+
barColor?: string;
|
|
19
|
+
/** Gradient fill for the determinate bar — a `GradientDefinition` or a theme gradient token name. */
|
|
20
|
+
gradient?: GradientDefinition | string;
|
|
21
|
+
/** Render a multi-colour breakdown bar (usage split) instead of a single progress fill. */
|
|
22
|
+
segments?: ProgressBarSegment[];
|
|
23
|
+
animated?: boolean;
|
|
24
|
+
style?: StyleProp<ViewStyle>;
|
|
25
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
26
|
+
barStyle?: StyleProp<ViewStyle>;
|
|
27
|
+
accessibilityLabel?: string;
|
|
28
|
+
testID?: string;
|
|
29
|
+
}
|
|
30
|
+
declare const ProgressBar: import("react").ForwardRefExoticComponent<ProgressBarProps & import("react").RefAttributes<RNView>>;
|
|
31
|
+
export { ProgressBar };
|
|
32
|
+
export default ProgressBar;
|
|
33
|
+
//# sourceMappingURL=ProgressBar.d.ts.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { PressableProps, View as RNView, StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
2
|
+
import type { HapticType } from '../../utils/hapticUtils';
|
|
3
|
+
export type RadioSize = 'sm' | 'md' | 'lg';
|
|
4
|
+
export type RadioTone = 'primary' | 'success' | 'warning' | 'error';
|
|
5
|
+
export type RadioValue = string | number;
|
|
6
|
+
export interface RadioGroupContextValue {
|
|
7
|
+
selectedValue: RadioValue | undefined;
|
|
8
|
+
onChange: (value: RadioValue) => void;
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const RadioGroupContext: import("react").Context<RadioGroupContextValue | null>;
|
|
12
|
+
export declare const useRadioGroup: () => RadioGroupContextValue | null;
|
|
13
|
+
export interface RadioProps extends Omit<PressableProps, 'style' | 'children' | 'onPress'> {
|
|
14
|
+
value: RadioValue;
|
|
15
|
+
selected?: boolean;
|
|
16
|
+
onChange?: (value: RadioValue) => void;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
label?: string;
|
|
19
|
+
size?: RadioSize;
|
|
20
|
+
tone?: RadioTone;
|
|
21
|
+
accessibilityLabel?: string;
|
|
22
|
+
haptic?: HapticType | false;
|
|
23
|
+
style?: StyleProp<ViewStyle>;
|
|
24
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
25
|
+
circleStyle?: StyleProp<ViewStyle>;
|
|
26
|
+
dotStyle?: StyleProp<ViewStyle>;
|
|
27
|
+
labelStyle?: StyleProp<TextStyle>;
|
|
28
|
+
testID?: string;
|
|
29
|
+
}
|
|
30
|
+
declare const Radio: import("react").ForwardRefExoticComponent<RadioProps & import("react").RefAttributes<RNView>>;
|
|
31
|
+
export { Radio };
|
|
32
|
+
export default Radio;
|
|
33
|
+
//# sourceMappingURL=Radio.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* RadioDot — the bare animated radio indicator (ring + spring-scaled dot).
|
|
3
|
+
*
|
|
4
|
+
* Extracted from Radio so custom option templates (ChoiceGroup `renderOption`,
|
|
5
|
+
* bespoke cards) can embed the standard indicator without rebuilding the
|
|
6
|
+
* animation or the disabled/selected colour rules. Purely visual — no press
|
|
7
|
+
* handling, no a11y role; the parent control owns those.
|
|
8
|
+
*/
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
11
|
+
export type RadioDotSize = 'sm' | 'md' | 'lg';
|
|
12
|
+
export interface RadioDotProps {
|
|
13
|
+
selected: boolean;
|
|
14
|
+
/** Fill colour of the inner dot + selected ring. Default `colors.primary`. */
|
|
15
|
+
color?: string;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
/** Named size reads `theme.components.radio[size]`; a number is the outer diameter in px (inner = half). */
|
|
18
|
+
size?: RadioDotSize | number;
|
|
19
|
+
style?: StyleProp<ViewStyle>;
|
|
20
|
+
dotStyle?: StyleProp<ViewStyle>;
|
|
21
|
+
}
|
|
22
|
+
export declare const RadioDot: React.FC<RadioDotProps>;
|
|
23
|
+
export default RadioDot;
|
|
24
|
+
//# sourceMappingURL=RadioDot.d.ts.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
import type { RadioValue } from './Radio';
|
|
4
|
+
export interface RadioGroupProps {
|
|
5
|
+
value?: RadioValue;
|
|
6
|
+
defaultValue?: RadioValue;
|
|
7
|
+
onChange?: (value: RadioValue) => void;
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
accessibilityLabel?: string;
|
|
11
|
+
style?: StyleProp<ViewStyle>;
|
|
12
|
+
testID?: string;
|
|
13
|
+
}
|
|
14
|
+
declare const RadioGroup: React.FC<RadioGroupProps>;
|
|
15
|
+
export { RadioGroup };
|
|
16
|
+
export default RadioGroup;
|
|
17
|
+
//# sourceMappingURL=RadioGroup.d.ts.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type { RadioGroupContextValue, RadioProps, RadioSize, RadioTone, RadioValue } from './Radio';
|
|
2
|
+
export { default, Radio, RadioGroupContext, useRadioGroup } from './Radio';
|
|
3
|
+
export type { RadioDotProps, RadioDotSize } from './RadioDot';
|
|
4
|
+
export { RadioDot } from './RadioDot';
|
|
5
|
+
export type { RadioGroupProps } from './RadioGroup';
|
|
6
|
+
export { RadioGroup } from './RadioGroup';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,37 @@
|
|
|
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 RatingTone = 'primary' | 'warning';
|
|
5
|
+
export type RatingSize = 'sm' | 'md' | 'lg' | number;
|
|
6
|
+
export interface RatingProps {
|
|
7
|
+
value: number;
|
|
8
|
+
onChange?: (value: number) => void;
|
|
9
|
+
max?: number;
|
|
10
|
+
allowHalf?: boolean;
|
|
11
|
+
readonly?: boolean;
|
|
12
|
+
size?: RatingSize;
|
|
13
|
+
tone?: RatingTone;
|
|
14
|
+
label?: string;
|
|
15
|
+
/**
|
|
16
|
+
* When true, renders the component as its authored skeleton placeholder shape.
|
|
17
|
+
* The placeholder mirrors the real layout's footprint so the UI doesn't reflow
|
|
18
|
+
* when data arrives. Use this while the data driving the component is being fetched.
|
|
19
|
+
*/
|
|
20
|
+
loading?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Haptic feedback for interactions. Pass false to disable; pass a HapticType
|
|
23
|
+
* to override the default.
|
|
24
|
+
*/
|
|
25
|
+
haptic?: HapticType | false;
|
|
26
|
+
accessibilityLabel?: string;
|
|
27
|
+
style?: StyleProp<ViewStyle>;
|
|
28
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
29
|
+
starContainerStyle?: StyleProp<ViewStyle>;
|
|
30
|
+
testID?: string;
|
|
31
|
+
}
|
|
32
|
+
declare const Rating: React.ForwardRefExoticComponent<RatingProps & React.RefAttributes<RNView>> & {
|
|
33
|
+
Skeleton: React.FC<RatingProps>;
|
|
34
|
+
};
|
|
35
|
+
export { Rating };
|
|
36
|
+
export default Rating;
|
|
37
|
+
//# sourceMappingURL=Rating.d.ts.map
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
import type { HapticType } from '../../utils';
|
|
4
|
+
export interface RepeaterRenderArgs<T> {
|
|
5
|
+
item: T;
|
|
6
|
+
index: number;
|
|
7
|
+
/** Replace this row's value. */
|
|
8
|
+
update: (next: T) => void;
|
|
9
|
+
/** Remove this row. */
|
|
10
|
+
remove: () => void;
|
|
11
|
+
/** False when removing would breach `minRows`. */
|
|
12
|
+
canRemove: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface RepeaterProps<T> {
|
|
15
|
+
value: ReadonlyArray<T>;
|
|
16
|
+
onChange: (next: T[]) => void;
|
|
17
|
+
/** Builds a blank row. Called on add — must return a NEW object each time. */
|
|
18
|
+
createRow: () => T;
|
|
19
|
+
renderRow: (args: RepeaterRenderArgs<T>) => React.ReactNode;
|
|
20
|
+
addLabel?: string;
|
|
21
|
+
/** Per-row heading, e.g. `(i) => \`Line item ${i + 1}\``. */
|
|
22
|
+
rowLabel?: (index: number) => string;
|
|
23
|
+
/** Rows below this cannot be removed. Default 0. */
|
|
24
|
+
minRows?: number;
|
|
25
|
+
/** Add is hidden at this count. Omit for unlimited. */
|
|
26
|
+
maxRows?: number;
|
|
27
|
+
/** Remove affordance. Default true. */
|
|
28
|
+
removable?: boolean;
|
|
29
|
+
emptyText?: string;
|
|
30
|
+
disabled?: boolean;
|
|
31
|
+
haptic?: HapticType | false;
|
|
32
|
+
style?: StyleProp<ViewStyle>;
|
|
33
|
+
testID?: string;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Add / remove / edit a list of form rows — line items, phone numbers,
|
|
37
|
+
* addresses. Owns the array mechanics (immutably) so each screen stops
|
|
38
|
+
* re-deriving splice/map logic, and keeps the min/max rules in one place where
|
|
39
|
+
* they can't disagree between the add button and the remove button.
|
|
40
|
+
*/
|
|
41
|
+
export declare const Repeater: <T>({ value, onChange, createRow, renderRow, addLabel, rowLabel, minRows, maxRows, removable, emptyText, disabled, haptic, style, testID }: RepeaterProps<T>) => React.ReactElement;
|
|
42
|
+
export default Repeater;
|
|
43
|
+
//# sourceMappingURL=Repeater.d.ts.map
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { StyleProp, TextInputProps, ViewStyle } from 'react-native';
|
|
3
|
+
import { TextInput } from 'react-native';
|
|
4
|
+
import type { HapticType } from '../../utils/hapticUtils';
|
|
5
|
+
export type SearchBarSize = 'sm' | 'md' | 'lg';
|
|
6
|
+
export type SearchBarVariant = 'filled' | 'outlined';
|
|
7
|
+
export interface SearchBarProps extends Omit<TextInputProps, 'style' | 'value' | 'onChangeText'> {
|
|
8
|
+
/** Current value. Optional / nullable — treated as empty string when undefined or null. */
|
|
9
|
+
value?: string | null;
|
|
10
|
+
onChangeText: (text: string) => void;
|
|
11
|
+
onSubmit?: (text: string) => void;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
autoFocus?: boolean;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
showCancel?: boolean;
|
|
16
|
+
onCancel?: () => void;
|
|
17
|
+
onClear?: () => void;
|
|
18
|
+
leftIcon?: React.ReactNode;
|
|
19
|
+
debounceMs?: number;
|
|
20
|
+
size?: SearchBarSize;
|
|
21
|
+
variant?: SearchBarVariant;
|
|
22
|
+
cancelLabel?: string;
|
|
23
|
+
/** Haptic feedback for interactions. Pass false to disable; pass a HapticType to override the default. */
|
|
24
|
+
haptic?: HapticType | false;
|
|
25
|
+
style?: StyleProp<ViewStyle>;
|
|
26
|
+
accessibilityLabel?: string;
|
|
27
|
+
testID?: string;
|
|
28
|
+
}
|
|
29
|
+
declare const SearchBar: React.ForwardRefExoticComponent<SearchBarProps & React.RefAttributes<TextInput>>;
|
|
30
|
+
export { SearchBar };
|
|
31
|
+
export default SearchBar;
|
|
32
|
+
//# sourceMappingURL=SearchBar.d.ts.map
|