@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,45 @@
|
|
|
1
|
+
import { type HapticType } from './hapticUtils';
|
|
2
|
+
/**
|
|
3
|
+
* What the interaction MEANT, not which vibration to play.
|
|
4
|
+
*
|
|
5
|
+
* Call sites that pick a `HapticType` directly end up disagreeing with each
|
|
6
|
+
* other — one screen fires `impactMedium` on delete, the next fires
|
|
7
|
+
* `notificationWarning`, and the app stops speaking one language. Naming the
|
|
8
|
+
* intent moves that decision here, once.
|
|
9
|
+
*/
|
|
10
|
+
export type FeedbackIntent = 'tap' | 'select' | 'longPress' | 'created' | 'deleted' | 'restored' | 'toggledOn' | 'toggledOff' | 'succeeded' | 'warned' | 'failed';
|
|
11
|
+
/**
|
|
12
|
+
* Gate every intent from one place, so an app's "haptics" setting needs no
|
|
13
|
+
* per-component plumbing.
|
|
14
|
+
*/
|
|
15
|
+
export declare const configureFeedback: (prefs: {
|
|
16
|
+
haptics: boolean;
|
|
17
|
+
}) => void;
|
|
18
|
+
export declare const isFeedbackEnabled: () => boolean;
|
|
19
|
+
/** Resolve an intent to its haptic type without firing it. */
|
|
20
|
+
export declare const hapticForIntent: (intent: FeedbackIntent) => HapticType;
|
|
21
|
+
export declare const feedback: {
|
|
22
|
+
/** A plain press: button, row, chip. */
|
|
23
|
+
readonly tap: () => void;
|
|
24
|
+
/** Moving between options — segmented control, picker wheel, tab. */
|
|
25
|
+
readonly select: () => void;
|
|
26
|
+
/** A long-press threshold being crossed. */
|
|
27
|
+
readonly longPress: () => void;
|
|
28
|
+
/** Something now exists that did not before. */
|
|
29
|
+
readonly created: () => void;
|
|
30
|
+
/** Something was destroyed or removed. */
|
|
31
|
+
readonly deleted: () => void;
|
|
32
|
+
/** An undo landed. */
|
|
33
|
+
readonly restored: () => void;
|
|
34
|
+
/** A binary control turned on / off — switch, checkbox, favourite. */
|
|
35
|
+
readonly toggled: (on: boolean) => void;
|
|
36
|
+
/** A flow finished successfully. */
|
|
37
|
+
readonly succeeded: () => void;
|
|
38
|
+
/** A recoverable problem the user should notice. */
|
|
39
|
+
readonly warned: () => void;
|
|
40
|
+
/** A failure. */
|
|
41
|
+
readonly failed: () => void;
|
|
42
|
+
/** Escape hatch for an intent held in a variable. */
|
|
43
|
+
readonly fire: (intent: FeedbackIntent) => void;
|
|
44
|
+
};
|
|
45
|
+
//# sourceMappingURL=feedback.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type HapticType = 'selection' | 'impactLight' | 'impactMedium' | 'impactHeavy' | 'notificationSuccess' | 'notificationWarning' | 'notificationError';
|
|
2
|
+
export declare const triggerHaptic: (type?: HapticType) => void;
|
|
3
|
+
export declare const setHapticImplementation: (impl: ((type: HapticType) => void) | null) => void;
|
|
4
|
+
/**
|
|
5
|
+
* Resolves a component's `haptic` prop to the type that should fire, or null
|
|
6
|
+
* when haptics are off. `false` disables; a `HapticType` overrides; `undefined`
|
|
7
|
+
* falls back to the component's sensible default. Pair with `triggerHaptic`:
|
|
8
|
+
* const h = resolveHaptic(haptic, 'selection');
|
|
9
|
+
* if (h) triggerHaptic(h);
|
|
10
|
+
*/
|
|
11
|
+
export declare const resolveHaptic: (haptic: HapticType | false | undefined, fallbackType: HapticType) => HapticType | null;
|
|
12
|
+
//# sourceMappingURL=hapticUtils.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type { FeedbackIntent } from './feedback';
|
|
2
|
+
export { configureFeedback, feedback, hapticForIntent, isFeedbackEnabled } from './feedback';
|
|
3
|
+
export type { HapticType } from './hapticUtils';
|
|
4
|
+
export { resolveHaptic, setHapticImplementation, triggerHaptic } from './hapticUtils';
|
|
5
|
+
export type { BreakpointKey } from './responsive';
|
|
6
|
+
export { Breakpoints, isScreenSize, isTablet, Responsive, ScreenDimensions } from './responsive';
|
|
7
|
+
export { shadowStyle } from './shadows';
|
|
8
|
+
export type { SpacingToken } from './spacing';
|
|
9
|
+
export { Margin, Padding, Spacing } from './spacing';
|
|
10
|
+
export { warnUnknownProps } from './warnUnknownProps';
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare const ScreenDimensions: {
|
|
2
|
+
readonly width: number;
|
|
3
|
+
readonly height: number;
|
|
4
|
+
readonly pixelRatio: number;
|
|
5
|
+
readonly fontScale: number;
|
|
6
|
+
};
|
|
7
|
+
export declare const Breakpoints: {
|
|
8
|
+
readonly xs: 0;
|
|
9
|
+
readonly sm: 360;
|
|
10
|
+
readonly md: 414;
|
|
11
|
+
readonly lg: 768;
|
|
12
|
+
readonly xl: 1024;
|
|
13
|
+
};
|
|
14
|
+
export type BreakpointKey = keyof typeof Breakpoints;
|
|
15
|
+
export declare const isScreenSize: (size: BreakpointKey) => boolean;
|
|
16
|
+
export declare const isTablet: () => boolean;
|
|
17
|
+
export declare const Responsive: {
|
|
18
|
+
readonly width: (size: number) => number;
|
|
19
|
+
readonly height: (size: number) => number;
|
|
20
|
+
readonly size: (size: number) => number;
|
|
21
|
+
readonly font: (size: number) => number;
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=responsive.d.ts.map
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type { SpacingScale } from '../theme/types';
|
|
2
|
+
export type SpacingToken = keyof SpacingScale;
|
|
3
|
+
export declare const Spacing: {
|
|
4
|
+
readonly none: 0;
|
|
5
|
+
readonly xxs: number;
|
|
6
|
+
readonly xs: number;
|
|
7
|
+
readonly sm: number;
|
|
8
|
+
readonly md: number;
|
|
9
|
+
readonly lg: number;
|
|
10
|
+
readonly xl: number;
|
|
11
|
+
readonly '2xl': number;
|
|
12
|
+
readonly '3xl': number;
|
|
13
|
+
readonly '4xl': number;
|
|
14
|
+
};
|
|
15
|
+
export declare const Padding: {
|
|
16
|
+
readonly all: (token: SpacingToken) => {
|
|
17
|
+
padding: number;
|
|
18
|
+
};
|
|
19
|
+
readonly horizontal: (token: SpacingToken) => {
|
|
20
|
+
paddingHorizontal: number;
|
|
21
|
+
};
|
|
22
|
+
readonly vertical: (token: SpacingToken) => {
|
|
23
|
+
paddingVertical: number;
|
|
24
|
+
};
|
|
25
|
+
readonly top: (token: SpacingToken) => {
|
|
26
|
+
paddingTop: number;
|
|
27
|
+
};
|
|
28
|
+
readonly bottom: (token: SpacingToken) => {
|
|
29
|
+
paddingBottom: number;
|
|
30
|
+
};
|
|
31
|
+
readonly left: (token: SpacingToken) => {
|
|
32
|
+
paddingLeft: number;
|
|
33
|
+
};
|
|
34
|
+
readonly right: (token: SpacingToken) => {
|
|
35
|
+
paddingRight: number;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
export declare const Margin: {
|
|
39
|
+
readonly all: (token: SpacingToken) => {
|
|
40
|
+
margin: number;
|
|
41
|
+
};
|
|
42
|
+
readonly horizontal: (token: SpacingToken) => {
|
|
43
|
+
marginHorizontal: number;
|
|
44
|
+
};
|
|
45
|
+
readonly vertical: (token: SpacingToken) => {
|
|
46
|
+
marginVertical: number;
|
|
47
|
+
};
|
|
48
|
+
readonly top: (token: SpacingToken) => {
|
|
49
|
+
marginTop: number;
|
|
50
|
+
};
|
|
51
|
+
readonly bottom: (token: SpacingToken) => {
|
|
52
|
+
marginBottom: number;
|
|
53
|
+
};
|
|
54
|
+
readonly left: (token: SpacingToken) => {
|
|
55
|
+
marginLeft: number;
|
|
56
|
+
};
|
|
57
|
+
readonly right: (token: SpacingToken) => {
|
|
58
|
+
marginRight: number;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
//# sourceMappingURL=spacing.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dev-time warning for props a component does not accept.
|
|
3
|
+
*
|
|
4
|
+
* This exists for a class of bug that nothing in a JS consumer's toolchain
|
|
5
|
+
* objects to. A component destructures the props it knows and ignores the rest,
|
|
6
|
+
* so a renamed or mistyped prop is simply dropped — silently, at every call
|
|
7
|
+
* site. The web library hit this three times in one day: `body` instead of
|
|
8
|
+
* `message` left nine destructive confirm dialogs with no explanatory text, and
|
|
9
|
+
* `name` instead of `icon` emptied an entire actions column across 23 call
|
|
10
|
+
* sites. Neither failed a build, a lint or a test.
|
|
11
|
+
*
|
|
12
|
+
* Our components are TypeScript, so a TS consumer is already protected at
|
|
13
|
+
* compile time. Several apps in the fleet are plain JS, and they get nothing —
|
|
14
|
+
* which is who this is for. The check therefore has to be a runtime one, and it
|
|
15
|
+
* has to run where the mistake is made: the consumer's dev server.
|
|
16
|
+
*
|
|
17
|
+
* DEV ONLY — the `__DEV__` guard means it costs a release build nothing.
|
|
18
|
+
*/
|
|
19
|
+
export declare const warnUnknownProps: (componentName: string, rest: Record<string, unknown> | undefined) => void;
|
|
20
|
+
//# sourceMappingURL=warnUnknownProps.d.ts.map
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
import type { HapticType } from '../../utils/hapticUtils.js';
|
|
4
|
+
export type AccordionVariant = 'plain' | 'card';
|
|
5
|
+
export interface AccordionProps {
|
|
6
|
+
title: string;
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
id?: string;
|
|
9
|
+
expanded?: boolean;
|
|
10
|
+
defaultExpanded?: boolean;
|
|
11
|
+
onChange?: (expanded: boolean) => void;
|
|
12
|
+
icon?: React.ReactNode;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
variant?: AccordionVariant;
|
|
15
|
+
accessibilityLabel?: string;
|
|
16
|
+
style?: StyleProp<ViewStyle>;
|
|
17
|
+
headerStyle?: StyleProp<ViewStyle>;
|
|
18
|
+
contentStyle?: StyleProp<ViewStyle>;
|
|
19
|
+
/** Style applied to the animated wrapper around the expandable content. */
|
|
20
|
+
contentWrapperStyle?: StyleProp<ViewStyle>;
|
|
21
|
+
/** Style applied to the outermost container View. */
|
|
22
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
23
|
+
testID?: string;
|
|
24
|
+
/**
|
|
25
|
+
* When true, renders the accordion as its authored skeleton placeholder
|
|
26
|
+
* shape (header row, collapsed body). Footprint matches the closed live
|
|
27
|
+
* accordion so the layout doesn't shift when data arrives.
|
|
28
|
+
*/
|
|
29
|
+
loading?: boolean;
|
|
30
|
+
/** Haptic feedback for interactions. Pass false to disable; pass a HapticType to override the default. */
|
|
31
|
+
haptic?: HapticType | false;
|
|
32
|
+
}
|
|
33
|
+
export interface AccordionGroupProps {
|
|
34
|
+
children: React.ReactNode;
|
|
35
|
+
allowMultiple?: boolean;
|
|
36
|
+
defaultExpandedKeys?: string[];
|
|
37
|
+
expandedKeys?: string[];
|
|
38
|
+
onChange?: (keys: string[]) => void;
|
|
39
|
+
style?: StyleProp<ViewStyle>;
|
|
40
|
+
testID?: string;
|
|
41
|
+
}
|
|
42
|
+
declare const AccordionGroup: React.FC<AccordionGroupProps>;
|
|
43
|
+
declare const Accordion: React.FC<AccordionProps> & {
|
|
44
|
+
Skeleton: React.FC<AccordionProps>;
|
|
45
|
+
};
|
|
46
|
+
export { Accordion, AccordionGroup };
|
|
47
|
+
export default Accordion;
|
|
48
|
+
//# sourceMappingURL=Accordion.d.ts.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
export type PresencePreset = 'fade' | 'scale' | 'slide-up' | 'slide-down';
|
|
4
|
+
export interface AnimatePresenceProps {
|
|
5
|
+
/**
|
|
6
|
+
* Render conditionally. When this goes null / undefined / false the exit
|
|
7
|
+
* animation plays before the content unmounts; when it returns the enter
|
|
8
|
+
* animation plays. Drive it like `{visible ? <Panel /> : null}`.
|
|
9
|
+
*/
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
/** Enter/exit preset. Default `'fade'`. */
|
|
12
|
+
preset?: PresencePreset;
|
|
13
|
+
/** Animation duration (ms). Defaults to `theme.motion.duration.base`. */
|
|
14
|
+
duration?: number;
|
|
15
|
+
style?: StyleProp<ViewStyle>;
|
|
16
|
+
testID?: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Animates a single child in on mount and out on unmount. Thin, theme-aware
|
|
20
|
+
* wrapper over Reanimated's `entering`/`exiting` — Reanimated keeps the view
|
|
21
|
+
* alive to play the exit, so the parent only toggles a condition. Honors the OS
|
|
22
|
+
* Reduce Motion setting (renders instantly when reduced).
|
|
23
|
+
*
|
|
24
|
+
* For animating items inside a list, use Reanimated's `itemLayoutAnimation`
|
|
25
|
+
* on `Animated.FlatList` instead — this wrapper targets single conditional nodes.
|
|
26
|
+
*/
|
|
27
|
+
declare const AnimatePresence: React.FC<AnimatePresenceProps>;
|
|
28
|
+
export { AnimatePresence };
|
|
29
|
+
export default AnimatePresence;
|
|
30
|
+
//# sourceMappingURL=AnimatePresence.d.ts.map
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { View as RNView, StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
import { Animated } from 'react-native';
|
|
4
|
+
import type { HapticType } from '../../utils/hapticUtils.js';
|
|
5
|
+
export type AppBarVariant = 'default' | 'large' | 'compact';
|
|
6
|
+
export type AppBarTitleAlignment = 'left' | 'center';
|
|
7
|
+
export interface AppBarAction {
|
|
8
|
+
icon: React.ReactNode;
|
|
9
|
+
onPress: () => void;
|
|
10
|
+
accessibilityLabel?: string;
|
|
11
|
+
testID?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface AppBarRightAction extends AppBarAction {
|
|
14
|
+
badge?: number | string;
|
|
15
|
+
}
|
|
16
|
+
export interface AppBarProps {
|
|
17
|
+
title?: string;
|
|
18
|
+
subtitle?: string;
|
|
19
|
+
titleAlignment?: AppBarTitleAlignment;
|
|
20
|
+
leftAction?: AppBarAction;
|
|
21
|
+
rightActions?: AppBarRightAction[];
|
|
22
|
+
variant?: AppBarVariant;
|
|
23
|
+
transparent?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Optional ScrollView vertical offset (Animated.Value) used to drive the
|
|
26
|
+
* "collapsing app bar" effect when `variant='large'`. As `scrollY` moves
|
|
27
|
+
* from 0 → 60, the large title shrinks/translates into the compact bar
|
|
28
|
+
* area and a bottom hairline border fades in.
|
|
29
|
+
*/
|
|
30
|
+
scrollY?: Animated.Value | Animated.AnimatedInterpolation<number>;
|
|
31
|
+
style?: StyleProp<ViewStyle>;
|
|
32
|
+
/** Alias for `style` applied to the outer container (animated when collapsing). */
|
|
33
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
34
|
+
/** Style applied to the title Animated.Text. */
|
|
35
|
+
titleStyle?: StyleProp<ViewStyle>;
|
|
36
|
+
/** Style applied to the subtitle Animated.Text. */
|
|
37
|
+
subtitleStyle?: StyleProp<ViewStyle>;
|
|
38
|
+
/** Style applied to the right-action badge bubble. */
|
|
39
|
+
badgeStyle?: StyleProp<ViewStyle>;
|
|
40
|
+
/**
|
|
41
|
+
* Haptic feedback for interactions. Pass false to disable; pass a HapticType
|
|
42
|
+
* to override the default.
|
|
43
|
+
*/
|
|
44
|
+
haptic?: HapticType | false;
|
|
45
|
+
testID?: string;
|
|
46
|
+
}
|
|
47
|
+
declare const AppBar: React.ForwardRefExoticComponent<AppBarProps & React.RefAttributes<RNView>>;
|
|
48
|
+
export { AppBar };
|
|
49
|
+
export default AppBar;
|
|
50
|
+
//# sourceMappingURL=AppBar.d.ts.map
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
export interface AsyncBlockProps {
|
|
4
|
+
/** Show the placeholder instead of content. */
|
|
5
|
+
loading?: boolean;
|
|
6
|
+
/** An error to show in place of content. Falsy means no error. */
|
|
7
|
+
error?: string | React.ReactNode;
|
|
8
|
+
/** The fetch succeeded with nothing to show. */
|
|
9
|
+
empty?: boolean;
|
|
10
|
+
/** Retry affordance on the error state. Omit to render the error without one. */
|
|
11
|
+
onRetry?: () => void;
|
|
12
|
+
/** Placeholder shaped like the content. Falls back to a centred Spinner. */
|
|
13
|
+
skeleton?: React.ReactNode;
|
|
14
|
+
/** Copy for the empty state. */
|
|
15
|
+
emptyTitle?: string;
|
|
16
|
+
emptyDescription?: string;
|
|
17
|
+
emptyIcon?: React.ReactNode;
|
|
18
|
+
/** Copy for the error state. `error` itself is used as the description when it is a string. */
|
|
19
|
+
errorTitle?: string;
|
|
20
|
+
retryLabel?: string;
|
|
21
|
+
/** Rendered once loaded, error-free and non-empty. */
|
|
22
|
+
children?: React.ReactNode;
|
|
23
|
+
style?: StyleProp<ViewStyle>;
|
|
24
|
+
testID?: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* The loading / error / empty / content switcher every screen that fetches data
|
|
28
|
+
* needs. Without it each screen re-implements the same four-way branch and they
|
|
29
|
+
* disagree — one shows a spinner over stale rows, the next flashes an empty
|
|
30
|
+
* state mid-fetch.
|
|
31
|
+
*
|
|
32
|
+
* Precedence is fixed: `loading` wins over everything, then `error`, then
|
|
33
|
+
* `empty`, then `children`. A fetch that is both in flight and holding a stale
|
|
34
|
+
* error shows only the loading state, which is the least surprising reading of
|
|
35
|
+
* "still in flight".
|
|
36
|
+
*/
|
|
37
|
+
export declare const AsyncBlock: React.FC<AsyncBlockProps>;
|
|
38
|
+
export default AsyncBlock;
|
|
39
|
+
//# sourceMappingURL=AsyncBlock.d.ts.map
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
3
|
+
import type { HapticType } from '../../utils/index.js';
|
|
4
|
+
import type { InputSize, InputVariant } from '../Input/index.js';
|
|
5
|
+
export interface AutocompleteProps<T = string> {
|
|
6
|
+
/** Candidate options to filter. */
|
|
7
|
+
options: ReadonlyArray<T>;
|
|
8
|
+
/** Controlled input text. */
|
|
9
|
+
value?: string;
|
|
10
|
+
/** Uncontrolled initial text. */
|
|
11
|
+
defaultValue?: string;
|
|
12
|
+
onChangeText?: (text: string) => void;
|
|
13
|
+
/** Fired when a suggestion is chosen. */
|
|
14
|
+
onSelect: (option: T) => void;
|
|
15
|
+
/** Read a display label from an option. Defaults to the option itself for strings. */
|
|
16
|
+
getOptionLabel?: (option: T) => string;
|
|
17
|
+
/** Stable React key per option. Defaults to label + index. */
|
|
18
|
+
getOptionKey?: (option: T) => string;
|
|
19
|
+
/** Custom match predicate. Defaults to a case-insensitive substring match on the label. */
|
|
20
|
+
filter?: (option: T, query: string) => boolean;
|
|
21
|
+
/** Minimum characters before suggestions appear. Default 1. */
|
|
22
|
+
minChars?: number;
|
|
23
|
+
/** Cap the number of suggestions shown. Default 8. */
|
|
24
|
+
maxResults?: number;
|
|
25
|
+
/** Text shown when nothing matches. Default "No matches". */
|
|
26
|
+
emptyText?: string;
|
|
27
|
+
/** Show a loading spinner in the dropdown — e.g. while fetching remote results. */
|
|
28
|
+
loading?: boolean;
|
|
29
|
+
/** `'client'` filters `options` locally; `'none'` shows them as-is (for server-side search). Default `'client'`. */
|
|
30
|
+
filterMode?: 'client' | 'none';
|
|
31
|
+
/** Text beside the loading spinner. Default "Searching…". */
|
|
32
|
+
loadingText?: string;
|
|
33
|
+
placeholder?: string;
|
|
34
|
+
label?: string;
|
|
35
|
+
error?: string;
|
|
36
|
+
helperText?: string;
|
|
37
|
+
disabled?: boolean;
|
|
38
|
+
size?: InputSize;
|
|
39
|
+
variant?: InputVariant;
|
|
40
|
+
/** Haptic on select. Default `'selection'`. */
|
|
41
|
+
haptic?: HapticType | false;
|
|
42
|
+
style?: StyleProp<ViewStyle>;
|
|
43
|
+
listStyle?: StyleProp<ViewStyle>;
|
|
44
|
+
optionTextStyle?: StyleProp<TextStyle>;
|
|
45
|
+
testID?: string;
|
|
46
|
+
}
|
|
47
|
+
declare function Autocomplete<T = string>(props: AutocompleteProps<T>): React.JSX.Element;
|
|
48
|
+
declare namespace Autocomplete {
|
|
49
|
+
var displayName: string;
|
|
50
|
+
}
|
|
51
|
+
export { Autocomplete };
|
|
52
|
+
export default Autocomplete;
|
|
53
|
+
//# sourceMappingURL=Autocomplete.d.ts.map
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ImageSourcePropType, ImageStyle, View as RNView, StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
3
|
+
/**
|
|
4
|
+
* Props passed to a custom {@link AvatarProps.ImageComponent}. They mirror what
|
|
5
|
+
* the built-in `<Image>` receives, so a plain RN `Image` is a valid drop-in.
|
|
6
|
+
* Supply a custom component to render images that need authenticated fetching,
|
|
7
|
+
* caching, or token refresh (the library stays auth-agnostic).
|
|
8
|
+
*/
|
|
9
|
+
export interface AvatarImageProps {
|
|
10
|
+
source: ImageSourcePropType;
|
|
11
|
+
style: StyleProp<ImageStyle>;
|
|
12
|
+
resizeMode: 'cover';
|
|
13
|
+
onError: () => void;
|
|
14
|
+
accessibilityIgnoresInvertColors?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export type AvatarSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | number;
|
|
17
|
+
export type AvatarShape = 'circle' | 'square' | 'rounded';
|
|
18
|
+
export type AvatarStatus = 'online' | 'offline' | 'busy' | 'away' | null;
|
|
19
|
+
export type AvatarStatusPosition = 'topRight' | 'bottomRight';
|
|
20
|
+
export interface AvatarProps {
|
|
21
|
+
source?: ImageSourcePropType;
|
|
22
|
+
/**
|
|
23
|
+
* Custom component used to render the image instead of the built-in `<Image>`.
|
|
24
|
+
* Receives {@link AvatarImageProps}. Use this when `source` points at a secured
|
|
25
|
+
* endpoint that needs auth headers / token refresh / caching — plug in the
|
|
26
|
+
* app's authenticated image loader. On error it should call `onError`, which
|
|
27
|
+
* triggers the initials fallback. When omitted, a plain RN `<Image>` is used.
|
|
28
|
+
*/
|
|
29
|
+
ImageComponent?: React.ComponentType<AvatarImageProps>;
|
|
30
|
+
name?: string;
|
|
31
|
+
size?: AvatarSize;
|
|
32
|
+
shape?: AvatarShape;
|
|
33
|
+
status?: AvatarStatus;
|
|
34
|
+
statusPosition?: AvatarStatusPosition;
|
|
35
|
+
backgroundColor?: string;
|
|
36
|
+
color?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Per-instance initials font size in pixels. Wins over theme tokens
|
|
39
|
+
* (`avatar.fontSize` and `avatar.fontSizeRatio`) and the size-derived default.
|
|
40
|
+
*/
|
|
41
|
+
fontSize?: number;
|
|
42
|
+
/**
|
|
43
|
+
* When true, renders the component as its authored skeleton placeholder shape.
|
|
44
|
+
* The placeholder mirrors the real layout's footprint so the UI doesn't reflow
|
|
45
|
+
* when data arrives. Use this while the data driving the component is being fetched.
|
|
46
|
+
*/
|
|
47
|
+
loading?: boolean;
|
|
48
|
+
accessibilityLabel?: string;
|
|
49
|
+
style?: StyleProp<ViewStyle>;
|
|
50
|
+
textStyle?: StyleProp<TextStyle>;
|
|
51
|
+
testID?: string;
|
|
52
|
+
}
|
|
53
|
+
declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<RNView>> & {
|
|
54
|
+
Skeleton: React.FC<AvatarProps>;
|
|
55
|
+
};
|
|
56
|
+
export type AvatarGroupSpacing = 'tight' | 'normal' | 'loose';
|
|
57
|
+
export type AvatarGroupOverflowVariant = 'count' | 'plus';
|
|
58
|
+
export interface AvatarGroupProps {
|
|
59
|
+
children: React.ReactElement<AvatarProps>[];
|
|
60
|
+
max?: number;
|
|
61
|
+
size?: AvatarSize;
|
|
62
|
+
spacing?: AvatarGroupSpacing;
|
|
63
|
+
overflowVariant?: AvatarGroupOverflowVariant;
|
|
64
|
+
accessibilityLabel?: string;
|
|
65
|
+
style?: StyleProp<ViewStyle>;
|
|
66
|
+
testID?: string;
|
|
67
|
+
}
|
|
68
|
+
declare const AvatarGroup: React.FC<AvatarGroupProps>;
|
|
69
|
+
type AvatarComponent = typeof Avatar & {
|
|
70
|
+
Group: typeof AvatarGroup;
|
|
71
|
+
};
|
|
72
|
+
declare const AvatarWithGroup: AvatarComponent;
|
|
73
|
+
export { Avatar, AvatarGroup };
|
|
74
|
+
export default AvatarWithGroup;
|
|
75
|
+
//# sourceMappingURL=Avatar.d.ts.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export type { AvatarGroupOverflowVariant, AvatarGroupProps, AvatarGroupSpacing, AvatarImageProps, AvatarProps, AvatarShape, AvatarSize, AvatarStatus, AvatarStatusPosition } from './Avatar.js';
|
|
2
|
+
export { Avatar, AvatarGroup, default } from './Avatar.js';
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { View as RNView, StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
3
|
+
export type BadgeVariant = 'standard' | 'dot';
|
|
4
|
+
export type BadgeTone = 'primary' | 'success' | 'warning' | 'error' | 'neutral' | 'info';
|
|
5
|
+
export type BadgeSize = 'sm' | 'md';
|
|
6
|
+
export type BadgeAnchor = 'topRight' | 'topLeft' | 'bottomRight' | 'bottomLeft';
|
|
7
|
+
export interface BadgeProps {
|
|
8
|
+
value?: number | string;
|
|
9
|
+
max?: number;
|
|
10
|
+
variant?: BadgeVariant;
|
|
11
|
+
tone?: BadgeTone;
|
|
12
|
+
size?: BadgeSize;
|
|
13
|
+
invisible?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* When true, renders the component as its authored skeleton placeholder shape.
|
|
16
|
+
* The placeholder mirrors the real layout's footprint so the UI doesn't reflow
|
|
17
|
+
* when data arrives. Use this while the data driving the component is being fetched.
|
|
18
|
+
*/
|
|
19
|
+
loading?: boolean;
|
|
20
|
+
children?: React.ReactNode;
|
|
21
|
+
anchor?: BadgeAnchor;
|
|
22
|
+
pulse?: boolean;
|
|
23
|
+
accessibilityLabel?: string;
|
|
24
|
+
style?: StyleProp<ViewStyle>;
|
|
25
|
+
badgeStyle?: StyleProp<ViewStyle>;
|
|
26
|
+
textStyle?: StyleProp<TextStyle>;
|
|
27
|
+
testID?: string;
|
|
28
|
+
}
|
|
29
|
+
declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<RNView>> & {
|
|
30
|
+
Skeleton: React.FC<BadgeProps>;
|
|
31
|
+
};
|
|
32
|
+
export { Badge };
|
|
33
|
+
export default Badge;
|
|
34
|
+
//# sourceMappingURL=Badge.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.js';
|
|
4
|
+
export type BannerVariant = 'info' | 'success' | 'warning' | 'error' | 'neutral';
|
|
5
|
+
export interface BannerAction {
|
|
6
|
+
label: string;
|
|
7
|
+
onPress: () => void;
|
|
8
|
+
tone?: 'primary' | 'neutral';
|
|
9
|
+
}
|
|
10
|
+
export interface BannerProps {
|
|
11
|
+
title?: string;
|
|
12
|
+
message: string | React.ReactNode;
|
|
13
|
+
variant?: BannerVariant;
|
|
14
|
+
icon?: React.ReactNode | false;
|
|
15
|
+
actions?: BannerAction[];
|
|
16
|
+
dismissible?: boolean;
|
|
17
|
+
onDismiss?: () => void;
|
|
18
|
+
/** Haptic feedback for interactions. Pass false to disable; pass a HapticType to override the default. */
|
|
19
|
+
haptic?: HapticType | false;
|
|
20
|
+
visible?: boolean;
|
|
21
|
+
animateMount?: boolean;
|
|
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
|
+
accessibilityLabel?: string;
|
|
29
|
+
style?: StyleProp<ViewStyle>;
|
|
30
|
+
/** Alias for `style` — applied to the outer animated container. */
|
|
31
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
32
|
+
/** Style applied to the auto-rendered icon circle (when no custom `icon` is provided). */
|
|
33
|
+
iconCircleStyle?: StyleProp<ViewStyle>;
|
|
34
|
+
/** Style applied to the leading tint bar. */
|
|
35
|
+
tintBarStyle?: StyleProp<ViewStyle>;
|
|
36
|
+
/** Style applied to the dismiss/close button. */
|
|
37
|
+
closeButtonStyle?: StyleProp<ViewStyle>;
|
|
38
|
+
/** Style applied to each action button (Pressable). */
|
|
39
|
+
actionButtonStyle?: StyleProp<ViewStyle>;
|
|
40
|
+
testID?: string;
|
|
41
|
+
}
|
|
42
|
+
declare const Banner: React.ForwardRefExoticComponent<BannerProps & React.RefAttributes<RNView>> & {
|
|
43
|
+
Skeleton: React.FC<BannerProps>;
|
|
44
|
+
};
|
|
45
|
+
export { Banner };
|
|
46
|
+
export default Banner;
|
|
47
|
+
//# sourceMappingURL=Banner.d.ts.map
|
|
@@ -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/index.js';
|
|
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
|