@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,648 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const typography = {
|
|
4
|
+
fontSize: {
|
|
5
|
+
xs: 11,
|
|
6
|
+
sm: 13,
|
|
7
|
+
base: 15,
|
|
8
|
+
lg: 17,
|
|
9
|
+
xl: 20,
|
|
10
|
+
'2xl': 24,
|
|
11
|
+
'3xl': 30,
|
|
12
|
+
'4xl': 36
|
|
13
|
+
},
|
|
14
|
+
fontWeight: {
|
|
15
|
+
normal: '400',
|
|
16
|
+
medium: '500',
|
|
17
|
+
semibold: '600',
|
|
18
|
+
bold: '700'
|
|
19
|
+
},
|
|
20
|
+
lineHeight: {
|
|
21
|
+
tight: 1.2,
|
|
22
|
+
normal: 1.4,
|
|
23
|
+
relaxed: 1.6
|
|
24
|
+
},
|
|
25
|
+
letterSpacing: {
|
|
26
|
+
tight: -0.2,
|
|
27
|
+
normal: 0,
|
|
28
|
+
wide: 0.4
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
const spacing = {
|
|
32
|
+
none: 0,
|
|
33
|
+
xxs: 2,
|
|
34
|
+
xs: 4,
|
|
35
|
+
sm: 8,
|
|
36
|
+
md: 12,
|
|
37
|
+
lg: 16,
|
|
38
|
+
xl: 24,
|
|
39
|
+
'2xl': 32,
|
|
40
|
+
'3xl': 48,
|
|
41
|
+
'4xl': 64
|
|
42
|
+
};
|
|
43
|
+
const radius = {
|
|
44
|
+
none: 0,
|
|
45
|
+
xs: 4,
|
|
46
|
+
sm: 6,
|
|
47
|
+
md: 10,
|
|
48
|
+
lg: 14,
|
|
49
|
+
xl: 20,
|
|
50
|
+
'2xl': 28,
|
|
51
|
+
full: 9999
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
// `field` tokens hold the canonical dimensions every input-like control
|
|
55
|
+
// inherits via FieldBase. Heights, radii and padding ladders here are the
|
|
56
|
+
// single source of truth — Input, Select, SearchBar, NumberInput, OTPInput
|
|
57
|
+
// cell and PickerTrigger fall through to these unless their own component
|
|
58
|
+
// tokens override. Fill / border colours resolve at theme-build time inside
|
|
59
|
+
// the providers (which know `colors.*`) — these defaults are dimension-only.
|
|
60
|
+
const fieldSizes = {
|
|
61
|
+
sm: {
|
|
62
|
+
paddingHorizontal: 12,
|
|
63
|
+
paddingVertical: 8,
|
|
64
|
+
minHeight: 38,
|
|
65
|
+
fontSize: 13,
|
|
66
|
+
borderRadius: 10,
|
|
67
|
+
iconSize: 16
|
|
68
|
+
},
|
|
69
|
+
md: {
|
|
70
|
+
paddingHorizontal: 14,
|
|
71
|
+
paddingVertical: 11,
|
|
72
|
+
minHeight: 46,
|
|
73
|
+
fontSize: 15,
|
|
74
|
+
borderRadius: 12,
|
|
75
|
+
iconSize: 18
|
|
76
|
+
},
|
|
77
|
+
lg: {
|
|
78
|
+
paddingHorizontal: 16,
|
|
79
|
+
paddingVertical: 14,
|
|
80
|
+
minHeight: 54,
|
|
81
|
+
fontSize: 16,
|
|
82
|
+
borderRadius: 14,
|
|
83
|
+
iconSize: 20
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
const components = {
|
|
87
|
+
button: {
|
|
88
|
+
xs: {
|
|
89
|
+
paddingHorizontal: 10,
|
|
90
|
+
paddingVertical: 4,
|
|
91
|
+
minHeight: 28,
|
|
92
|
+
fontSize: 12,
|
|
93
|
+
borderRadius: 8
|
|
94
|
+
},
|
|
95
|
+
sm: {
|
|
96
|
+
paddingHorizontal: 12,
|
|
97
|
+
paddingVertical: 6,
|
|
98
|
+
minHeight: 34,
|
|
99
|
+
fontSize: 13,
|
|
100
|
+
borderRadius: 10
|
|
101
|
+
},
|
|
102
|
+
md: {
|
|
103
|
+
paddingHorizontal: 16,
|
|
104
|
+
paddingVertical: 9,
|
|
105
|
+
minHeight: 42,
|
|
106
|
+
fontSize: 15,
|
|
107
|
+
borderRadius: 12
|
|
108
|
+
},
|
|
109
|
+
lg: {
|
|
110
|
+
paddingHorizontal: 20,
|
|
111
|
+
paddingVertical: 12,
|
|
112
|
+
minHeight: 50,
|
|
113
|
+
fontSize: 16,
|
|
114
|
+
borderRadius: 14
|
|
115
|
+
},
|
|
116
|
+
xl: {
|
|
117
|
+
paddingHorizontal: 24,
|
|
118
|
+
paddingVertical: 14,
|
|
119
|
+
minHeight: 58,
|
|
120
|
+
fontSize: 17,
|
|
121
|
+
borderRadius: 16
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
input: {
|
|
125
|
+
sm: {
|
|
126
|
+
paddingHorizontal: 12,
|
|
127
|
+
paddingVertical: 8,
|
|
128
|
+
minHeight: 38,
|
|
129
|
+
multilineMinHeight: 72,
|
|
130
|
+
fontSize: 13,
|
|
131
|
+
borderRadius: 10,
|
|
132
|
+
iconSize: 16
|
|
133
|
+
},
|
|
134
|
+
md: {
|
|
135
|
+
paddingHorizontal: 14,
|
|
136
|
+
paddingVertical: 11,
|
|
137
|
+
minHeight: 46,
|
|
138
|
+
multilineMinHeight: 92,
|
|
139
|
+
fontSize: 15,
|
|
140
|
+
borderRadius: 12,
|
|
141
|
+
iconSize: 18
|
|
142
|
+
},
|
|
143
|
+
lg: {
|
|
144
|
+
paddingHorizontal: 16,
|
|
145
|
+
paddingVertical: 14,
|
|
146
|
+
minHeight: 54,
|
|
147
|
+
multilineMinHeight: 110,
|
|
148
|
+
fontSize: 16,
|
|
149
|
+
borderRadius: 14,
|
|
150
|
+
iconSize: 20
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
searchBar: {
|
|
154
|
+
// `borderRadius: radius.full` keeps the historical pill shape as the
|
|
155
|
+
// library default. Brands wanting SearchBar to share Input / Select's
|
|
156
|
+
// rounded-rect shape override per size to match `field.<size>.borderRadius`
|
|
157
|
+
// (10 / 12 / 14), or drop a single value in via theme merge.
|
|
158
|
+
sm: {
|
|
159
|
+
height: 36,
|
|
160
|
+
paddingHorizontal: 10,
|
|
161
|
+
fontSize: 13,
|
|
162
|
+
iconSize: 16,
|
|
163
|
+
gap: 6,
|
|
164
|
+
borderRadius: radius.full
|
|
165
|
+
},
|
|
166
|
+
md: {
|
|
167
|
+
height: 44,
|
|
168
|
+
paddingHorizontal: 12,
|
|
169
|
+
fontSize: 15,
|
|
170
|
+
iconSize: 18,
|
|
171
|
+
gap: 8,
|
|
172
|
+
borderRadius: radius.full
|
|
173
|
+
},
|
|
174
|
+
lg: {
|
|
175
|
+
height: 52,
|
|
176
|
+
paddingHorizontal: 14,
|
|
177
|
+
fontSize: 16,
|
|
178
|
+
iconSize: 20,
|
|
179
|
+
gap: 10,
|
|
180
|
+
borderRadius: radius.full
|
|
181
|
+
},
|
|
182
|
+
cancelButtonWidth: 72
|
|
183
|
+
},
|
|
184
|
+
emptyState: {
|
|
185
|
+
sm: {
|
|
186
|
+
iconSize: 48,
|
|
187
|
+
titleFontSize: 'lg',
|
|
188
|
+
descriptionFontSize: 'sm',
|
|
189
|
+
paddingVertical: 'lg'
|
|
190
|
+
},
|
|
191
|
+
md: {
|
|
192
|
+
iconSize: 64,
|
|
193
|
+
titleFontSize: 'xl',
|
|
194
|
+
descriptionFontSize: 'base',
|
|
195
|
+
paddingVertical: 'xl'
|
|
196
|
+
},
|
|
197
|
+
lg: {
|
|
198
|
+
iconSize: 80,
|
|
199
|
+
titleFontSize: '2xl',
|
|
200
|
+
descriptionFontSize: 'base',
|
|
201
|
+
paddingVertical: '2xl'
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
field: {
|
|
205
|
+
defaultVariant: 'outlined',
|
|
206
|
+
sm: fieldSizes.sm,
|
|
207
|
+
md: fieldSizes.md,
|
|
208
|
+
lg: fieldSizes.lg
|
|
209
|
+
// Variant fill / border colours are filled in at theme-build time by the
|
|
210
|
+
// light/dark Theme objects below — they need access to `colors.*`.
|
|
211
|
+
},
|
|
212
|
+
listItem: {
|
|
213
|
+
sm: {
|
|
214
|
+
paddingVertical: 'sm',
|
|
215
|
+
titleFontSize: 'sm',
|
|
216
|
+
subtitleFontSize: 'xs',
|
|
217
|
+
minHeight: 44
|
|
218
|
+
},
|
|
219
|
+
md: {
|
|
220
|
+
paddingVertical: 'md',
|
|
221
|
+
titleFontSize: 'base',
|
|
222
|
+
subtitleFontSize: 'sm',
|
|
223
|
+
minHeight: 56
|
|
224
|
+
},
|
|
225
|
+
lg: {
|
|
226
|
+
paddingVertical: 'lg',
|
|
227
|
+
titleFontSize: 'lg',
|
|
228
|
+
subtitleFontSize: 'sm',
|
|
229
|
+
minHeight: 72
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
badge: {
|
|
233
|
+
sm: {
|
|
234
|
+
fontSize: 10,
|
|
235
|
+
minWidth: 16,
|
|
236
|
+
height: 16,
|
|
237
|
+
paddingHorizontal: 5,
|
|
238
|
+
dotSize: 8
|
|
239
|
+
},
|
|
240
|
+
md: {
|
|
241
|
+
fontSize: 11,
|
|
242
|
+
minWidth: 20,
|
|
243
|
+
height: 20,
|
|
244
|
+
paddingHorizontal: 6,
|
|
245
|
+
dotSize: 10
|
|
246
|
+
},
|
|
247
|
+
borderWidth: 1.5,
|
|
248
|
+
anchorOffset: 4
|
|
249
|
+
},
|
|
250
|
+
chip: {
|
|
251
|
+
sm: {
|
|
252
|
+
paddingHorizontal: 10,
|
|
253
|
+
paddingVertical: 4,
|
|
254
|
+
fontSize: 12,
|
|
255
|
+
minHeight: 26,
|
|
256
|
+
closeSize: 16,
|
|
257
|
+
closeFontSize: 12,
|
|
258
|
+
gap: 6
|
|
259
|
+
},
|
|
260
|
+
md: {
|
|
261
|
+
paddingHorizontal: 12,
|
|
262
|
+
paddingVertical: 6,
|
|
263
|
+
fontSize: 13,
|
|
264
|
+
minHeight: 32,
|
|
265
|
+
closeSize: 18,
|
|
266
|
+
closeFontSize: 13,
|
|
267
|
+
gap: 8
|
|
268
|
+
}
|
|
269
|
+
},
|
|
270
|
+
checkbox: {
|
|
271
|
+
sm: {
|
|
272
|
+
boxSize: 16
|
|
273
|
+
},
|
|
274
|
+
md: {
|
|
275
|
+
boxSize: 20
|
|
276
|
+
},
|
|
277
|
+
lg: {
|
|
278
|
+
boxSize: 24
|
|
279
|
+
},
|
|
280
|
+
labelGap: 10
|
|
281
|
+
},
|
|
282
|
+
radio: {
|
|
283
|
+
sm: {
|
|
284
|
+
outer: 16,
|
|
285
|
+
inner: 8
|
|
286
|
+
},
|
|
287
|
+
md: {
|
|
288
|
+
outer: 20,
|
|
289
|
+
inner: 10
|
|
290
|
+
},
|
|
291
|
+
lg: {
|
|
292
|
+
outer: 24,
|
|
293
|
+
inner: 12
|
|
294
|
+
},
|
|
295
|
+
labelGap: 10
|
|
296
|
+
},
|
|
297
|
+
switch: {
|
|
298
|
+
sm: {
|
|
299
|
+
trackWidth: 42,
|
|
300
|
+
trackHeight: 26,
|
|
301
|
+
thumbSize: 22,
|
|
302
|
+
padding: 2
|
|
303
|
+
},
|
|
304
|
+
md: {
|
|
305
|
+
trackWidth: 51,
|
|
306
|
+
trackHeight: 31,
|
|
307
|
+
thumbSize: 27,
|
|
308
|
+
padding: 2
|
|
309
|
+
},
|
|
310
|
+
lg: {
|
|
311
|
+
trackWidth: 60,
|
|
312
|
+
trackHeight: 36,
|
|
313
|
+
thumbSize: 32,
|
|
314
|
+
padding: 2
|
|
315
|
+
},
|
|
316
|
+
thumbColor: '#FFFFFF'
|
|
317
|
+
},
|
|
318
|
+
otpInput: {
|
|
319
|
+
sm: {
|
|
320
|
+
cell: 36,
|
|
321
|
+
fontSize: 16,
|
|
322
|
+
borderRadius: 8,
|
|
323
|
+
gap: 8
|
|
324
|
+
},
|
|
325
|
+
md: {
|
|
326
|
+
cell: 48,
|
|
327
|
+
fontSize: 20,
|
|
328
|
+
borderRadius: 10,
|
|
329
|
+
gap: 10
|
|
330
|
+
},
|
|
331
|
+
lg: {
|
|
332
|
+
cell: 56,
|
|
333
|
+
fontSize: 24,
|
|
334
|
+
borderRadius: 12,
|
|
335
|
+
gap: 12
|
|
336
|
+
}
|
|
337
|
+
},
|
|
338
|
+
dialog: {
|
|
339
|
+
iconWrapperSize: 48,
|
|
340
|
+
iconWrapperBorderRadius: 24,
|
|
341
|
+
actionButtonMinHeight: 44
|
|
342
|
+
},
|
|
343
|
+
toast: {
|
|
344
|
+
iconCircleSize: 28,
|
|
345
|
+
iconCircleBorderRadius: 14,
|
|
346
|
+
iconGlyphFontSize: 16,
|
|
347
|
+
tintBarWidth: 4
|
|
348
|
+
},
|
|
349
|
+
formField: {
|
|
350
|
+
inlineLabelWidth: '35%'
|
|
351
|
+
}
|
|
352
|
+
};
|
|
353
|
+
const motion = {
|
|
354
|
+
duration: {
|
|
355
|
+
instant: 80,
|
|
356
|
+
fast: 160,
|
|
357
|
+
normal: 240,
|
|
358
|
+
slow: 360,
|
|
359
|
+
slower: 500
|
|
360
|
+
},
|
|
361
|
+
easing: {
|
|
362
|
+
standard: [0.4, 0.0, 0.2, 1],
|
|
363
|
+
accelerate: [0.4, 0.0, 1, 1],
|
|
364
|
+
decelerate: [0.0, 0.0, 0.2, 1],
|
|
365
|
+
sharp: [0.4, 0.0, 0.6, 1]
|
|
366
|
+
},
|
|
367
|
+
/**
|
|
368
|
+
* Springs run at sub-1 mass on purpose. Mass is the lever that decides
|
|
369
|
+
* whether motion reads as "responsive" or "floaty", and leaving it at 1 (the
|
|
370
|
+
* RN default) is what makes an otherwise correct animation feel slow. Higher
|
|
371
|
+
* stiffness with lighter mass settles faster without losing the spring.
|
|
372
|
+
*
|
|
373
|
+
* The asymmetry rule: OPEN with a spring from this scale, CLOSE with
|
|
374
|
+
* `Animated.timing` at `duration.fast` and `easing.accelerate`. A spring on
|
|
375
|
+
* the way out re-reads as hesitation — the element should leave decisively.
|
|
376
|
+
*/
|
|
377
|
+
spring: {
|
|
378
|
+
gentle: {
|
|
379
|
+
damping: 26,
|
|
380
|
+
stiffness: 240,
|
|
381
|
+
mass: 0.9
|
|
382
|
+
},
|
|
383
|
+
bouncy: {
|
|
384
|
+
damping: 16,
|
|
385
|
+
stiffness: 200,
|
|
386
|
+
mass: 0.7
|
|
387
|
+
},
|
|
388
|
+
snappy: {
|
|
389
|
+
damping: 20,
|
|
390
|
+
stiffness: 300,
|
|
391
|
+
mass: 0.7
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
};
|
|
395
|
+
const lightShadows = {
|
|
396
|
+
none: {},
|
|
397
|
+
xs: {
|
|
398
|
+
shadowColor: '#000',
|
|
399
|
+
shadowOffset: {
|
|
400
|
+
width: 0,
|
|
401
|
+
height: 1
|
|
402
|
+
},
|
|
403
|
+
shadowOpacity: 0.04,
|
|
404
|
+
shadowRadius: 2,
|
|
405
|
+
elevation: 1
|
|
406
|
+
},
|
|
407
|
+
sm: {
|
|
408
|
+
shadowColor: '#000',
|
|
409
|
+
shadowOffset: {
|
|
410
|
+
width: 0,
|
|
411
|
+
height: 2
|
|
412
|
+
},
|
|
413
|
+
shadowOpacity: 0.06,
|
|
414
|
+
shadowRadius: 4,
|
|
415
|
+
elevation: 2
|
|
416
|
+
},
|
|
417
|
+
md: {
|
|
418
|
+
shadowColor: '#000',
|
|
419
|
+
shadowOffset: {
|
|
420
|
+
width: 0,
|
|
421
|
+
height: 4
|
|
422
|
+
},
|
|
423
|
+
shadowOpacity: 0.08,
|
|
424
|
+
shadowRadius: 8,
|
|
425
|
+
elevation: 4
|
|
426
|
+
},
|
|
427
|
+
lg: {
|
|
428
|
+
shadowColor: '#000',
|
|
429
|
+
shadowOffset: {
|
|
430
|
+
width: 0,
|
|
431
|
+
height: 8
|
|
432
|
+
},
|
|
433
|
+
shadowOpacity: 0.1,
|
|
434
|
+
shadowRadius: 16,
|
|
435
|
+
elevation: 8
|
|
436
|
+
},
|
|
437
|
+
xl: {
|
|
438
|
+
shadowColor: '#000',
|
|
439
|
+
shadowOffset: {
|
|
440
|
+
width: 0,
|
|
441
|
+
height: 12
|
|
442
|
+
},
|
|
443
|
+
shadowOpacity: 0.14,
|
|
444
|
+
shadowRadius: 24,
|
|
445
|
+
elevation: 12
|
|
446
|
+
},
|
|
447
|
+
'2xl': {
|
|
448
|
+
shadowColor: '#000',
|
|
449
|
+
shadowOffset: {
|
|
450
|
+
width: 0,
|
|
451
|
+
height: 20
|
|
452
|
+
},
|
|
453
|
+
shadowOpacity: 0.18,
|
|
454
|
+
shadowRadius: 32,
|
|
455
|
+
elevation: 20
|
|
456
|
+
}
|
|
457
|
+
};
|
|
458
|
+
const darkShadows = {
|
|
459
|
+
none: {},
|
|
460
|
+
xs: {
|
|
461
|
+
shadowColor: '#000',
|
|
462
|
+
shadowOffset: {
|
|
463
|
+
width: 0,
|
|
464
|
+
height: 1
|
|
465
|
+
},
|
|
466
|
+
shadowOpacity: 0.3,
|
|
467
|
+
shadowRadius: 2,
|
|
468
|
+
elevation: 1
|
|
469
|
+
},
|
|
470
|
+
sm: {
|
|
471
|
+
shadowColor: '#000',
|
|
472
|
+
shadowOffset: {
|
|
473
|
+
width: 0,
|
|
474
|
+
height: 2
|
|
475
|
+
},
|
|
476
|
+
shadowOpacity: 0.4,
|
|
477
|
+
shadowRadius: 4,
|
|
478
|
+
elevation: 2
|
|
479
|
+
},
|
|
480
|
+
md: {
|
|
481
|
+
shadowColor: '#000',
|
|
482
|
+
shadowOffset: {
|
|
483
|
+
width: 0,
|
|
484
|
+
height: 4
|
|
485
|
+
},
|
|
486
|
+
shadowOpacity: 0.5,
|
|
487
|
+
shadowRadius: 8,
|
|
488
|
+
elevation: 4
|
|
489
|
+
},
|
|
490
|
+
lg: {
|
|
491
|
+
shadowColor: '#000',
|
|
492
|
+
shadowOffset: {
|
|
493
|
+
width: 0,
|
|
494
|
+
height: 8
|
|
495
|
+
},
|
|
496
|
+
shadowOpacity: 0.55,
|
|
497
|
+
shadowRadius: 16,
|
|
498
|
+
elevation: 8
|
|
499
|
+
},
|
|
500
|
+
xl: {
|
|
501
|
+
shadowColor: '#000',
|
|
502
|
+
shadowOffset: {
|
|
503
|
+
width: 0,
|
|
504
|
+
height: 12
|
|
505
|
+
},
|
|
506
|
+
shadowOpacity: 0.6,
|
|
507
|
+
shadowRadius: 24,
|
|
508
|
+
elevation: 12
|
|
509
|
+
},
|
|
510
|
+
'2xl': {
|
|
511
|
+
shadowColor: '#000',
|
|
512
|
+
shadowOffset: {
|
|
513
|
+
width: 0,
|
|
514
|
+
height: 20
|
|
515
|
+
},
|
|
516
|
+
shadowOpacity: 0.7,
|
|
517
|
+
shadowRadius: 32,
|
|
518
|
+
elevation: 20
|
|
519
|
+
}
|
|
520
|
+
};
|
|
521
|
+
export const lightTheme = {
|
|
522
|
+
mode: 'light',
|
|
523
|
+
colors: {
|
|
524
|
+
primary: '#5B5BD6',
|
|
525
|
+
primaryHover: '#4F4FBF',
|
|
526
|
+
primaryPressed: '#4040A8',
|
|
527
|
+
primaryMuted: '#EEEEFC',
|
|
528
|
+
secondary: '#F4F4F8',
|
|
529
|
+
secondaryHover: '#E9E9F0',
|
|
530
|
+
success: '#1FAD66',
|
|
531
|
+
warning: '#F59E0B',
|
|
532
|
+
error: '#E5484D',
|
|
533
|
+
info: '#3B82F6',
|
|
534
|
+
onPrimary: '#FFFFFF',
|
|
535
|
+
onSecondary: '#0F0F1A',
|
|
536
|
+
onSuccess: '#FFFFFF',
|
|
537
|
+
onWarning: '#0F0F1A',
|
|
538
|
+
onError: '#FFFFFF',
|
|
539
|
+
onInfo: '#FFFFFF',
|
|
540
|
+
text: {
|
|
541
|
+
primary: '#0F0F1A',
|
|
542
|
+
secondary: '#52525B',
|
|
543
|
+
tertiary: '#8B8B95',
|
|
544
|
+
inverse: '#FFFFFF',
|
|
545
|
+
disabled: '#B4B4BB',
|
|
546
|
+
link: '#5B5BD6'
|
|
547
|
+
},
|
|
548
|
+
background: {
|
|
549
|
+
primary: '#FFFFFF',
|
|
550
|
+
secondary: '#F8F8FB',
|
|
551
|
+
tertiary: '#F1F1F5',
|
|
552
|
+
elevated: '#FFFFFF',
|
|
553
|
+
overlay: 'rgba(15, 15, 26, 0.5)',
|
|
554
|
+
inverse: '#0F0F1A'
|
|
555
|
+
},
|
|
556
|
+
border: {
|
|
557
|
+
primary: '#E5E5EC',
|
|
558
|
+
secondary: '#EFEFF3',
|
|
559
|
+
focus: '#5B5BD6',
|
|
560
|
+
error: '#E5484D',
|
|
561
|
+
width: 1.5
|
|
562
|
+
},
|
|
563
|
+
surface: {
|
|
564
|
+
pressed: 'rgba(15, 15, 26, 0.06)',
|
|
565
|
+
hovered: 'rgba(15, 15, 26, 0.04)',
|
|
566
|
+
selected: 'rgba(91, 91, 214, 0.1)',
|
|
567
|
+
disabled: '#F1F1F5'
|
|
568
|
+
},
|
|
569
|
+
skeleton: {
|
|
570
|
+
background: '#EBEDF3',
|
|
571
|
+
highlight: '#F5F6FA'
|
|
572
|
+
},
|
|
573
|
+
// Held to one contrast standard: every hue lands in a 5.2:1-5.7:1 band
|
|
574
|
+
// against the white initials, so no single avatar colour is the weak one.
|
|
575
|
+
// Index order is load-bearing — it is what keeps a given user's colour stable.
|
|
576
|
+
avatarPalette: ['#5B5BD6', '#0A7979', '#A45A05', '#CD226E', '#2462EB', '#7C3AED', '#047C57', '#D42222']
|
|
577
|
+
},
|
|
578
|
+
typography,
|
|
579
|
+
spacing,
|
|
580
|
+
radius,
|
|
581
|
+
shadows: lightShadows,
|
|
582
|
+
motion,
|
|
583
|
+
components,
|
|
584
|
+
gradients: {}
|
|
585
|
+
};
|
|
586
|
+
export const darkTheme = {
|
|
587
|
+
mode: 'dark',
|
|
588
|
+
colors: {
|
|
589
|
+
primary: '#7C7CE8',
|
|
590
|
+
primaryHover: '#9292EE',
|
|
591
|
+
primaryPressed: '#A8A8F2',
|
|
592
|
+
primaryMuted: '#1F1F3D',
|
|
593
|
+
secondary: '#1F1F26',
|
|
594
|
+
secondaryHover: '#2A2A33',
|
|
595
|
+
success: '#30C780',
|
|
596
|
+
warning: '#FBBF24',
|
|
597
|
+
error: '#F87171',
|
|
598
|
+
info: '#60A5FA',
|
|
599
|
+
onPrimary: '#0F0F1A',
|
|
600
|
+
onSecondary: '#FAFAFA',
|
|
601
|
+
onSuccess: '#0F0F1A',
|
|
602
|
+
onWarning: '#0F0F1A',
|
|
603
|
+
onError: '#0F0F1A',
|
|
604
|
+
onInfo: '#0F0F1A',
|
|
605
|
+
text: {
|
|
606
|
+
primary: '#FAFAFA',
|
|
607
|
+
secondary: '#B4B4BB',
|
|
608
|
+
tertiary: '#71717A',
|
|
609
|
+
inverse: '#0F0F1A',
|
|
610
|
+
disabled: '#52525B',
|
|
611
|
+
link: '#9292EE'
|
|
612
|
+
},
|
|
613
|
+
background: {
|
|
614
|
+
primary: '#0B0B12',
|
|
615
|
+
secondary: '#13131C',
|
|
616
|
+
tertiary: '#1C1C26',
|
|
617
|
+
elevated: '#1C1C26',
|
|
618
|
+
overlay: 'rgba(0, 0, 0, 0.65)',
|
|
619
|
+
inverse: '#FAFAFA'
|
|
620
|
+
},
|
|
621
|
+
border: {
|
|
622
|
+
primary: '#27272F',
|
|
623
|
+
secondary: '#1C1C26',
|
|
624
|
+
focus: '#7C7CE8',
|
|
625
|
+
error: '#F87171',
|
|
626
|
+
width: 1.5
|
|
627
|
+
},
|
|
628
|
+
surface: {
|
|
629
|
+
pressed: 'rgba(255, 255, 255, 0.08)',
|
|
630
|
+
hovered: 'rgba(255, 255, 255, 0.05)',
|
|
631
|
+
selected: 'rgba(124, 124, 232, 0.18)',
|
|
632
|
+
disabled: '#1C1C26'
|
|
633
|
+
},
|
|
634
|
+
skeleton: {
|
|
635
|
+
background: '#1C1C26',
|
|
636
|
+
highlight: '#27272F'
|
|
637
|
+
},
|
|
638
|
+
avatarPalette: ['#8B8BEE', '#2DD4BF', '#FCD34D', '#F472B6', '#60A5FA', '#A78BFA', '#34D399', '#F87171']
|
|
639
|
+
},
|
|
640
|
+
typography,
|
|
641
|
+
spacing,
|
|
642
|
+
radius,
|
|
643
|
+
shadows: darkShadows,
|
|
644
|
+
motion,
|
|
645
|
+
components,
|
|
646
|
+
gradients: {}
|
|
647
|
+
};
|
|
648
|
+
//# sourceMappingURL=tokens.js.map
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { triggerHaptic } from "./hapticUtils.js";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* What the interaction MEANT, not which vibration to play.
|
|
7
|
+
*
|
|
8
|
+
* Call sites that pick a `HapticType` directly end up disagreeing with each
|
|
9
|
+
* other — one screen fires `impactMedium` on delete, the next fires
|
|
10
|
+
* `notificationWarning`, and the app stops speaking one language. Naming the
|
|
11
|
+
* intent moves that decision here, once.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
const INTENT_HAPTIC = {
|
|
15
|
+
tap: 'impactLight',
|
|
16
|
+
select: 'selection',
|
|
17
|
+
longPress: 'impactMedium',
|
|
18
|
+
created: 'impactMedium',
|
|
19
|
+
deleted: 'notificationWarning',
|
|
20
|
+
restored: 'notificationSuccess',
|
|
21
|
+
toggledOn: 'impactMedium',
|
|
22
|
+
toggledOff: 'impactLight',
|
|
23
|
+
succeeded: 'notificationSuccess',
|
|
24
|
+
warned: 'notificationWarning',
|
|
25
|
+
failed: 'notificationError'
|
|
26
|
+
};
|
|
27
|
+
let hapticsEnabled = true;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Gate every intent from one place, so an app's "haptics" setting needs no
|
|
31
|
+
* per-component plumbing.
|
|
32
|
+
*/
|
|
33
|
+
export const configureFeedback = prefs => {
|
|
34
|
+
hapticsEnabled = prefs.haptics;
|
|
35
|
+
};
|
|
36
|
+
export const isFeedbackEnabled = () => hapticsEnabled;
|
|
37
|
+
const fire = intent => {
|
|
38
|
+
if (!hapticsEnabled) {
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
triggerHaptic(INTENT_HAPTIC[intent]);
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
/** Resolve an intent to its haptic type without firing it. */
|
|
45
|
+
export const hapticForIntent = intent => INTENT_HAPTIC[intent];
|
|
46
|
+
export const feedback = {
|
|
47
|
+
/** A plain press: button, row, chip. */
|
|
48
|
+
tap: () => fire('tap'),
|
|
49
|
+
/** Moving between options — segmented control, picker wheel, tab. */
|
|
50
|
+
select: () => fire('select'),
|
|
51
|
+
/** A long-press threshold being crossed. */
|
|
52
|
+
longPress: () => fire('longPress'),
|
|
53
|
+
/** Something now exists that did not before. */
|
|
54
|
+
created: () => fire('created'),
|
|
55
|
+
/** Something was destroyed or removed. */
|
|
56
|
+
deleted: () => fire('deleted'),
|
|
57
|
+
/** An undo landed. */
|
|
58
|
+
restored: () => fire('restored'),
|
|
59
|
+
/** A binary control turned on / off — switch, checkbox, favourite. */
|
|
60
|
+
toggled: on => fire(on ? 'toggledOn' : 'toggledOff'),
|
|
61
|
+
/** A flow finished successfully. */
|
|
62
|
+
succeeded: () => fire('succeeded'),
|
|
63
|
+
/** A recoverable problem the user should notice. */
|
|
64
|
+
warned: () => fire('warned'),
|
|
65
|
+
/** A failure. */
|
|
66
|
+
failed: () => fire('failed'),
|
|
67
|
+
/** Escape hatch for an intent held in a variable. */
|
|
68
|
+
fire
|
|
69
|
+
};
|
|
70
|
+
//# sourceMappingURL=feedback.js.map
|