@webority-technologies/mobile 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 +399 -0
- package/lib/commonjs/api/publicClient.js +73 -0
- package/lib/commonjs/api/userClient.js +290 -0
- package/lib/commonjs/auth/authStore.js +107 -0
- package/lib/commonjs/auth/index.js +44 -0
- package/lib/commonjs/auth/jwt.js +84 -0
- package/lib/commonjs/components/Accordion/Accordion.js +257 -0
- package/lib/commonjs/components/Accordion/index.js +26 -0
- package/lib/commonjs/components/Avatar/Avatar.js +283 -0
- package/lib/commonjs/components/Avatar/index.js +26 -0
- package/lib/commonjs/components/Badge/Badge.js +212 -0
- package/lib/commonjs/components/Badge/index.js +20 -0
- package/lib/commonjs/components/Banner/Banner.js +276 -0
- package/lib/commonjs/components/Banner/index.js +20 -0
- package/lib/commonjs/components/BottomNavigation/BottomNavigation.js +288 -0
- package/lib/commonjs/components/BottomNavigation/index.js +20 -0
- package/lib/commonjs/components/BottomSheet/BottomSheet.js +367 -0
- package/lib/commonjs/components/BottomSheet/index.js +20 -0
- package/lib/commonjs/components/Button/Button.js +281 -0
- package/lib/commonjs/components/Button/index.js +20 -0
- package/lib/commonjs/components/Card/Card.js +194 -0
- package/lib/commonjs/components/Card/index.js +20 -0
- package/lib/commonjs/components/Carousel/Carousel.js +475 -0
- package/lib/commonjs/components/Carousel/index.js +20 -0
- package/lib/commonjs/components/Checkbox/Checkbox.js +165 -0
- package/lib/commonjs/components/Checkbox/index.js +20 -0
- package/lib/commonjs/components/Chip/Chip.js +272 -0
- package/lib/commonjs/components/Chip/index.js +20 -0
- package/lib/commonjs/components/DatePicker/DatePicker.js +813 -0
- package/lib/commonjs/components/DatePicker/index.js +20 -0
- package/lib/commonjs/components/DateRangePicker/DateRangePicker.js +622 -0
- package/lib/commonjs/components/DateRangePicker/index.js +20 -0
- package/lib/commonjs/components/Dialog/Dialog.js +215 -0
- package/lib/commonjs/components/Dialog/index.js +20 -0
- package/lib/commonjs/components/Divider/Divider.js +118 -0
- package/lib/commonjs/components/Divider/index.js +20 -0
- package/lib/commonjs/components/Drawer/Drawer.js +344 -0
- package/lib/commonjs/components/Drawer/index.js +20 -0
- package/lib/commonjs/components/EmptyState/EmptyState.js +201 -0
- package/lib/commonjs/components/EmptyState/index.js +20 -0
- package/lib/commonjs/components/FAB/FAB.js +457 -0
- package/lib/commonjs/components/FAB/index.js +26 -0
- package/lib/commonjs/components/Field/Field.js +127 -0
- package/lib/commonjs/components/Field/index.js +20 -0
- package/lib/commonjs/components/ForceUpdateDialog/ForceUpdateDialog.js +81 -0
- package/lib/commonjs/components/ForceUpdateDialog/index.js +20 -0
- package/lib/commonjs/components/Header/Header.js +339 -0
- package/lib/commonjs/components/Header/index.js +20 -0
- package/lib/commonjs/components/Icon/Icon.js +120 -0
- package/lib/commonjs/components/Icon/index.js +20 -0
- package/lib/commonjs/components/ImageGallery/ImageGallery.js +463 -0
- package/lib/commonjs/components/ImageGallery/index.js +20 -0
- package/lib/commonjs/components/Input/Input.js +390 -0
- package/lib/commonjs/components/Input/index.js +20 -0
- package/lib/commonjs/components/ListItem/ListItem.js +241 -0
- package/lib/commonjs/components/ListItem/index.js +20 -0
- package/lib/commonjs/components/LoadingSpinner/LoadingSpinner.js +183 -0
- package/lib/commonjs/components/LoadingSpinner/index.js +20 -0
- package/lib/commonjs/components/Modal/Modal.js +239 -0
- package/lib/commonjs/components/Modal/index.js +20 -0
- package/lib/commonjs/components/NumberInput/NumberInput.js +392 -0
- package/lib/commonjs/components/NumberInput/index.js +20 -0
- package/lib/commonjs/components/OTPInput/OTPInput.js +375 -0
- package/lib/commonjs/components/OTPInput/index.js +20 -0
- package/lib/commonjs/components/ProgressBar/ProgressBar.js +149 -0
- package/lib/commonjs/components/ProgressBar/index.js +20 -0
- package/lib/commonjs/components/Radio/Radio.js +160 -0
- package/lib/commonjs/components/Radio/RadioGroup.js +43 -0
- package/lib/commonjs/components/Radio/index.js +39 -0
- package/lib/commonjs/components/Rating/Rating.js +236 -0
- package/lib/commonjs/components/Rating/index.js +20 -0
- package/lib/commonjs/components/SearchBar/SearchBar.js +274 -0
- package/lib/commonjs/components/SearchBar/index.js +20 -0
- package/lib/commonjs/components/SegmentedControl/SegmentedControl.js +184 -0
- package/lib/commonjs/components/SegmentedControl/index.js +20 -0
- package/lib/commonjs/components/Select/Select.js +540 -0
- package/lib/commonjs/components/Select/index.js +20 -0
- package/lib/commonjs/components/SkeletonLoader/SkeletonContent.js +191 -0
- package/lib/commonjs/components/SkeletonLoader/SkeletonLoader.js +311 -0
- package/lib/commonjs/components/SkeletonLoader/index.js +57 -0
- package/lib/commonjs/components/Slider/Slider.js +443 -0
- package/lib/commonjs/components/Slider/index.js +20 -0
- package/lib/commonjs/components/Stepper/Stepper.js +403 -0
- package/lib/commonjs/components/Stepper/index.js +20 -0
- package/lib/commonjs/components/Swipeable/Swipeable.js +349 -0
- package/lib/commonjs/components/Swipeable/index.js +20 -0
- package/lib/commonjs/components/Switch/Switch.js +173 -0
- package/lib/commonjs/components/Switch/index.js +20 -0
- package/lib/commonjs/components/Tabs/Tabs.js +204 -0
- package/lib/commonjs/components/Tabs/index.js +20 -0
- package/lib/commonjs/components/TimePicker/TimePicker.js +551 -0
- package/lib/commonjs/components/TimePicker/index.js +20 -0
- package/lib/commonjs/components/Toast/Toast.js +273 -0
- package/lib/commonjs/components/Toast/ToastProvider.js +195 -0
- package/lib/commonjs/components/Toast/index.js +39 -0
- package/lib/commonjs/components/Tooltip/Tooltip.js +363 -0
- package/lib/commonjs/components/Tooltip/index.js +20 -0
- package/lib/commonjs/components/index.js +392 -0
- package/lib/commonjs/config/index.js +63 -0
- package/lib/commonjs/formatters/currency.js +61 -0
- package/lib/commonjs/formatters/date.js +156 -0
- package/lib/commonjs/formatters/index.js +77 -0
- package/lib/commonjs/formatters/initials.js +28 -0
- package/lib/commonjs/formatters/number.js +76 -0
- package/lib/commonjs/formatters/phone.js +59 -0
- package/lib/commonjs/hooks/index.js +27 -0
- package/lib/commonjs/hooks/useDebounce.js +17 -0
- package/lib/commonjs/hooks/usePressAnimation.js +44 -0
- package/lib/commonjs/hooks/useToggle.js +22 -0
- package/lib/commonjs/index.js +628 -0
- package/lib/commonjs/initSDK.js +47 -0
- package/lib/commonjs/initUI.js +24 -0
- package/lib/commonjs/initUserAuth.js +40 -0
- package/lib/commonjs/logger/index.js +127 -0
- package/lib/commonjs/network/NetworkStatusBanner.js +89 -0
- package/lib/commonjs/network/index.js +32 -0
- package/lib/commonjs/network/networkStatus.js +88 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/permissions/index.js +180 -0
- package/lib/commonjs/storage/index.js +187 -0
- package/lib/commonjs/theme/ThemeContext.js +73 -0
- package/lib/commonjs/theme/index.js +93 -0
- package/lib/commonjs/theme/merge.js +30 -0
- package/lib/commonjs/theme/tokens.js +319 -0
- package/lib/commonjs/theme/types.js +6 -0
- package/lib/commonjs/types/vector-icons.d.js +2 -0
- package/lib/commonjs/utils/dimensions.js +31 -0
- package/lib/commonjs/utils/hapticUtils.js +57 -0
- package/lib/commonjs/utils/imageCompression.js +51 -0
- package/lib/commonjs/utils/index.js +83 -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/validators/index.js +165 -0
- package/lib/commonjs/versionCheck/index.js +338 -0
- package/lib/module/api/publicClient.js +69 -0
- package/lib/module/api/userClient.js +283 -0
- package/lib/module/auth/authStore.js +100 -0
- package/lib/module/auth/index.js +5 -0
- package/lib/module/auth/jwt.js +78 -0
- package/lib/module/components/Accordion/Accordion.js +251 -0
- package/lib/module/components/Accordion/index.js +4 -0
- package/lib/module/components/Avatar/Avatar.js +278 -0
- package/lib/module/components/Avatar/index.js +4 -0
- package/lib/module/components/Badge/Badge.js +208 -0
- package/lib/module/components/Badge/index.js +4 -0
- package/lib/module/components/Banner/Banner.js +272 -0
- package/lib/module/components/Banner/index.js +4 -0
- package/lib/module/components/BottomNavigation/BottomNavigation.js +284 -0
- package/lib/module/components/BottomNavigation/index.js +4 -0
- package/lib/module/components/BottomSheet/BottomSheet.js +363 -0
- package/lib/module/components/BottomSheet/index.js +4 -0
- package/lib/module/components/Button/Button.js +277 -0
- package/lib/module/components/Button/index.js +4 -0
- package/lib/module/components/Card/Card.js +190 -0
- package/lib/module/components/Card/index.js +4 -0
- package/lib/module/components/Carousel/Carousel.js +471 -0
- package/lib/module/components/Carousel/index.js +4 -0
- package/lib/module/components/Checkbox/Checkbox.js +161 -0
- package/lib/module/components/Checkbox/index.js +4 -0
- package/lib/module/components/Chip/Chip.js +268 -0
- package/lib/module/components/Chip/index.js +4 -0
- package/lib/module/components/DatePicker/DatePicker.js +808 -0
- package/lib/module/components/DatePicker/index.js +4 -0
- package/lib/module/components/DateRangePicker/DateRangePicker.js +618 -0
- package/lib/module/components/DateRangePicker/index.js +4 -0
- package/lib/module/components/Dialog/Dialog.js +210 -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 +340 -0
- package/lib/module/components/Drawer/index.js +4 -0
- package/lib/module/components/EmptyState/EmptyState.js +197 -0
- package/lib/module/components/EmptyState/index.js +4 -0
- package/lib/module/components/FAB/FAB.js +452 -0
- package/lib/module/components/FAB/index.js +4 -0
- package/lib/module/components/Field/Field.js +123 -0
- package/lib/module/components/Field/index.js +4 -0
- package/lib/module/components/ForceUpdateDialog/ForceUpdateDialog.js +75 -0
- package/lib/module/components/ForceUpdateDialog/index.js +4 -0
- package/lib/module/components/Header/Header.js +335 -0
- package/lib/module/components/Header/index.js +4 -0
- package/lib/module/components/Icon/Icon.js +111 -0
- package/lib/module/components/Icon/index.js +4 -0
- package/lib/module/components/ImageGallery/ImageGallery.js +458 -0
- package/lib/module/components/ImageGallery/index.js +4 -0
- package/lib/module/components/Input/Input.js +384 -0
- package/lib/module/components/Input/index.js +4 -0
- package/lib/module/components/ListItem/ListItem.js +237 -0
- package/lib/module/components/ListItem/index.js +4 -0
- package/lib/module/components/LoadingSpinner/LoadingSpinner.js +179 -0
- package/lib/module/components/LoadingSpinner/index.js +4 -0
- package/lib/module/components/Modal/Modal.js +235 -0
- package/lib/module/components/Modal/index.js +4 -0
- package/lib/module/components/NumberInput/NumberInput.js +388 -0
- package/lib/module/components/NumberInput/index.js +4 -0
- package/lib/module/components/OTPInput/OTPInput.js +371 -0
- package/lib/module/components/OTPInput/index.js +4 -0
- package/lib/module/components/ProgressBar/ProgressBar.js +145 -0
- package/lib/module/components/ProgressBar/index.js +4 -0
- package/lib/module/components/Radio/Radio.js +155 -0
- package/lib/module/components/Radio/RadioGroup.js +38 -0
- package/lib/module/components/Radio/index.js +5 -0
- package/lib/module/components/Rating/Rating.js +232 -0
- package/lib/module/components/Rating/index.js +4 -0
- package/lib/module/components/SearchBar/SearchBar.js +270 -0
- package/lib/module/components/SearchBar/index.js +4 -0
- package/lib/module/components/SegmentedControl/SegmentedControl.js +180 -0
- package/lib/module/components/SegmentedControl/index.js +4 -0
- package/lib/module/components/Select/Select.js +536 -0
- package/lib/module/components/Select/index.js +4 -0
- package/lib/module/components/SkeletonLoader/SkeletonContent.js +186 -0
- package/lib/module/components/SkeletonLoader/SkeletonLoader.js +301 -0
- package/lib/module/components/SkeletonLoader/index.js +5 -0
- package/lib/module/components/Slider/Slider.js +439 -0
- package/lib/module/components/Slider/index.js +4 -0
- package/lib/module/components/Stepper/Stepper.js +399 -0
- package/lib/module/components/Stepper/index.js +4 -0
- package/lib/module/components/Swipeable/Swipeable.js +344 -0
- package/lib/module/components/Swipeable/index.js +4 -0
- package/lib/module/components/Switch/Switch.js +169 -0
- package/lib/module/components/Switch/index.js +4 -0
- package/lib/module/components/Tabs/Tabs.js +200 -0
- package/lib/module/components/Tabs/index.js +4 -0
- package/lib/module/components/TimePicker/TimePicker.js +545 -0
- package/lib/module/components/TimePicker/index.js +4 -0
- package/lib/module/components/Toast/Toast.js +268 -0
- package/lib/module/components/Toast/ToastProvider.js +187 -0
- package/lib/module/components/Toast/index.js +5 -0
- package/lib/module/components/Tooltip/Tooltip.js +358 -0
- package/lib/module/components/Tooltip/index.js +4 -0
- package/lib/module/components/index.js +47 -0
- package/lib/module/config/index.js +55 -0
- package/lib/module/formatters/currency.js +56 -0
- package/lib/module/formatters/date.js +148 -0
- package/lib/module/formatters/index.js +8 -0
- package/lib/module/formatters/initials.js +23 -0
- package/lib/module/formatters/number.js +69 -0
- package/lib/module/formatters/phone.js +53 -0
- package/lib/module/hooks/index.js +6 -0
- package/lib/module/hooks/useDebounce.js +12 -0
- package/lib/module/hooks/usePressAnimation.js +39 -0
- package/lib/module/hooks/useToggle.js +17 -0
- package/lib/module/index.js +37 -0
- package/lib/module/initSDK.js +42 -0
- package/lib/module/initUI.js +19 -0
- package/lib/module/initUserAuth.js +36 -0
- package/lib/module/logger/index.js +123 -0
- package/lib/module/network/NetworkStatusBanner.js +83 -0
- package/lib/module/network/index.js +5 -0
- package/lib/module/network/networkStatus.js +81 -0
- package/lib/module/package.json +1 -0
- package/lib/module/permissions/index.js +177 -0
- package/lib/module/storage/index.js +183 -0
- package/lib/module/theme/ThemeContext.js +65 -0
- package/lib/module/theme/index.js +48 -0
- package/lib/module/theme/merge.js +25 -0
- package/lib/module/theme/tokens.js +315 -0
- package/lib/module/theme/types.js +4 -0
- package/lib/module/types/vector-icons.d.js +2 -0
- package/lib/module/utils/dimensions.js +4 -0
- package/lib/module/utils/hapticUtils.js +51 -0
- package/lib/module/utils/imageCompression.js +46 -0
- package/lib/module/utils/index.js +8 -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/validators/index.js +143 -0
- package/lib/module/versionCheck/index.js +334 -0
- package/lib/typescript/commonjs/api/publicClient.d.ts +11 -0
- package/lib/typescript/commonjs/api/userClient.d.ts +18 -0
- package/lib/typescript/commonjs/auth/authStore.d.ts +20 -0
- package/lib/typescript/commonjs/auth/index.d.ts +5 -0
- package/lib/typescript/commonjs/auth/jwt.d.ts +31 -0
- package/lib/typescript/commonjs/components/Accordion/Accordion.d.ts +33 -0
- package/lib/typescript/commonjs/components/Accordion/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Avatar/Avatar.d.ts +42 -0
- package/lib/typescript/commonjs/components/Avatar/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Badge/Badge.d.ts +27 -0
- package/lib/typescript/commonjs/components/Badge/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Banner/Banner.d.ts +27 -0
- package/lib/typescript/commonjs/components/Banner/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/BottomNavigation/BottomNavigation.d.ts +34 -0
- package/lib/typescript/commonjs/components/BottomNavigation/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/BottomSheet/BottomSheet.d.ts +45 -0
- package/lib/typescript/commonjs/components/BottomSheet/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Button/Button.d.ts +29 -0
- package/lib/typescript/commonjs/components/Button/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Card/Card.d.ts +29 -0
- package/lib/typescript/commonjs/components/Card/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Carousel/Carousel.d.ts +66 -0
- package/lib/typescript/commonjs/components/Carousel/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Checkbox/Checkbox.d.ts +24 -0
- package/lib/typescript/commonjs/components/Checkbox/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Chip/Chip.d.ts +25 -0
- package/lib/typescript/commonjs/components/Chip/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/DatePicker/DatePicker.d.ts +25 -0
- package/lib/typescript/commonjs/components/DatePicker/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/DateRangePicker/DateRangePicker.d.ts +32 -0
- package/lib/typescript/commonjs/components/DateRangePicker/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Dialog/Dialog.d.ts +25 -0
- package/lib/typescript/commonjs/components/Dialog/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Divider/Divider.d.ts +21 -0
- package/lib/typescript/commonjs/components/Divider/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Drawer/Drawer.d.ts +53 -0
- package/lib/typescript/commonjs/components/Drawer/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/EmptyState/EmptyState.d.ts +25 -0
- package/lib/typescript/commonjs/components/EmptyState/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/FAB/FAB.d.ts +53 -0
- package/lib/typescript/commonjs/components/FAB/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Field/Field.d.ts +28 -0
- package/lib/typescript/commonjs/components/Field/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/ForceUpdateDialog/ForceUpdateDialog.d.ts +39 -0
- package/lib/typescript/commonjs/components/ForceUpdateDialog/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Header/Header.d.ts +36 -0
- package/lib/typescript/commonjs/components/Header/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Icon/Icon.d.ts +20 -0
- package/lib/typescript/commonjs/components/Icon/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/ImageGallery/ImageGallery.d.ts +41 -0
- package/lib/typescript/commonjs/components/ImageGallery/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Input/Input.d.ts +34 -0
- package/lib/typescript/commonjs/components/Input/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/ListItem/ListItem.d.ts +30 -0
- package/lib/typescript/commonjs/components/ListItem/index.d.ts +4 -0
- package/lib/typescript/commonjs/components/LoadingSpinner/LoadingSpinner.d.ts +20 -0
- package/lib/typescript/commonjs/components/LoadingSpinner/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Modal/Modal.d.ts +29 -0
- package/lib/typescript/commonjs/components/Modal/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/NumberInput/NumberInput.d.ts +35 -0
- package/lib/typescript/commonjs/components/NumberInput/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/OTPInput/OTPInput.d.ts +29 -0
- package/lib/typescript/commonjs/components/OTPInput/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/ProgressBar/ProgressBar.d.ts +21 -0
- package/lib/typescript/commonjs/components/ProgressBar/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Radio/Radio.d.ts +32 -0
- package/lib/typescript/commonjs/components/Radio/RadioGroup.d.ts +16 -0
- package/lib/typescript/commonjs/components/Radio/index.d.ts +5 -0
- package/lib/typescript/commonjs/components/Rating/Rating.d.ts +22 -0
- package/lib/typescript/commonjs/components/Rating/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/SearchBar/SearchBar.d.ts +28 -0
- package/lib/typescript/commonjs/components/SearchBar/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/SegmentedControl/SegmentedControl.d.ts +36 -0
- package/lib/typescript/commonjs/components/SegmentedControl/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Select/Select.d.ts +48 -0
- package/lib/typescript/commonjs/components/Select/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/SkeletonLoader/SkeletonContent.d.ts +29 -0
- package/lib/typescript/commonjs/components/SkeletonLoader/SkeletonLoader.d.ts +42 -0
- package/lib/typescript/commonjs/components/SkeletonLoader/index.d.ts +5 -0
- package/lib/typescript/commonjs/components/Slider/Slider.d.ts +33 -0
- package/lib/typescript/commonjs/components/Slider/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Stepper/Stepper.d.ts +25 -0
- package/lib/typescript/commonjs/components/Stepper/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Swipeable/Swipeable.d.ts +45 -0
- package/lib/typescript/commonjs/components/Swipeable/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Switch/Switch.d.ts +24 -0
- package/lib/typescript/commonjs/components/Switch/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Tabs/Tabs.d.ts +37 -0
- package/lib/typescript/commonjs/components/Tabs/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/TimePicker/TimePicker.d.ts +26 -0
- package/lib/typescript/commonjs/components/TimePicker/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/Toast/Toast.d.ts +30 -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 +22 -0
- package/lib/typescript/commonjs/components/Tooltip/index.d.ts +3 -0
- package/lib/typescript/commonjs/components/index.d.ts +89 -0
- package/lib/typescript/commonjs/config/index.d.ts +40 -0
- package/lib/typescript/commonjs/formatters/currency.d.ts +24 -0
- package/lib/typescript/commonjs/formatters/date.d.ts +22 -0
- package/lib/typescript/commonjs/formatters/index.d.ts +8 -0
- package/lib/typescript/commonjs/formatters/initials.d.ts +11 -0
- package/lib/typescript/commonjs/formatters/number.d.ts +15 -0
- package/lib/typescript/commonjs/formatters/phone.d.ts +13 -0
- package/lib/typescript/commonjs/hooks/index.d.ts +6 -0
- package/lib/typescript/commonjs/hooks/useDebounce.d.ts +2 -0
- package/lib/typescript/commonjs/hooks/usePressAnimation.d.ts +14 -0
- package/lib/typescript/commonjs/hooks/useToggle.d.ts +9 -0
- package/lib/typescript/commonjs/index.d.ts +37 -0
- package/lib/typescript/commonjs/initSDK.d.ts +40 -0
- package/lib/typescript/commonjs/initUI.d.ts +12 -0
- package/lib/typescript/commonjs/initUserAuth.d.ts +22 -0
- package/lib/typescript/commonjs/logger/index.d.ts +42 -0
- package/lib/typescript/commonjs/network/NetworkStatusBanner.d.ts +19 -0
- package/lib/typescript/commonjs/network/index.d.ts +5 -0
- package/lib/typescript/commonjs/network/networkStatus.d.ts +27 -0
- package/lib/typescript/commonjs/package.json +1 -0
- package/lib/typescript/commonjs/permissions/index.d.ts +20 -0
- package/lib/typescript/commonjs/storage/index.d.ts +42 -0
- package/lib/typescript/commonjs/theme/ThemeContext.d.ts +18 -0
- package/lib/typescript/commonjs/theme/index.d.ts +13 -0
- package/lib/typescript/commonjs/theme/merge.d.ts +3 -0
- package/lib/typescript/commonjs/theme/tokens.d.ts +4 -0
- package/lib/typescript/commonjs/theme/types.d.ts +161 -0
- package/lib/typescript/commonjs/utils/dimensions.d.ts +3 -0
- package/lib/typescript/commonjs/utils/hapticUtils.d.ts +4 -0
- package/lib/typescript/commonjs/utils/imageCompression.d.ts +15 -0
- package/lib/typescript/commonjs/utils/index.d.ts +10 -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/validators/index.d.ts +46 -0
- package/lib/typescript/commonjs/versionCheck/index.d.ts +59 -0
- package/lib/typescript/module/api/publicClient.d.ts +11 -0
- package/lib/typescript/module/api/userClient.d.ts +18 -0
- package/lib/typescript/module/auth/authStore.d.ts +20 -0
- package/lib/typescript/module/auth/index.d.ts +5 -0
- package/lib/typescript/module/auth/jwt.d.ts +31 -0
- package/lib/typescript/module/components/Accordion/Accordion.d.ts +33 -0
- package/lib/typescript/module/components/Accordion/index.d.ts +3 -0
- package/lib/typescript/module/components/Avatar/Avatar.d.ts +42 -0
- package/lib/typescript/module/components/Avatar/index.d.ts +3 -0
- package/lib/typescript/module/components/Badge/Badge.d.ts +27 -0
- package/lib/typescript/module/components/Badge/index.d.ts +3 -0
- package/lib/typescript/module/components/Banner/Banner.d.ts +27 -0
- package/lib/typescript/module/components/Banner/index.d.ts +3 -0
- package/lib/typescript/module/components/BottomNavigation/BottomNavigation.d.ts +34 -0
- package/lib/typescript/module/components/BottomNavigation/index.d.ts +3 -0
- package/lib/typescript/module/components/BottomSheet/BottomSheet.d.ts +45 -0
- package/lib/typescript/module/components/BottomSheet/index.d.ts +3 -0
- package/lib/typescript/module/components/Button/Button.d.ts +29 -0
- package/lib/typescript/module/components/Button/index.d.ts +3 -0
- package/lib/typescript/module/components/Card/Card.d.ts +29 -0
- package/lib/typescript/module/components/Card/index.d.ts +3 -0
- package/lib/typescript/module/components/Carousel/Carousel.d.ts +66 -0
- package/lib/typescript/module/components/Carousel/index.d.ts +3 -0
- package/lib/typescript/module/components/Checkbox/Checkbox.d.ts +24 -0
- package/lib/typescript/module/components/Checkbox/index.d.ts +3 -0
- package/lib/typescript/module/components/Chip/Chip.d.ts +25 -0
- package/lib/typescript/module/components/Chip/index.d.ts +3 -0
- package/lib/typescript/module/components/DatePicker/DatePicker.d.ts +25 -0
- package/lib/typescript/module/components/DatePicker/index.d.ts +3 -0
- package/lib/typescript/module/components/DateRangePicker/DateRangePicker.d.ts +32 -0
- package/lib/typescript/module/components/DateRangePicker/index.d.ts +3 -0
- package/lib/typescript/module/components/Dialog/Dialog.d.ts +25 -0
- package/lib/typescript/module/components/Dialog/index.d.ts +3 -0
- package/lib/typescript/module/components/Divider/Divider.d.ts +21 -0
- package/lib/typescript/module/components/Divider/index.d.ts +3 -0
- package/lib/typescript/module/components/Drawer/Drawer.d.ts +53 -0
- package/lib/typescript/module/components/Drawer/index.d.ts +3 -0
- package/lib/typescript/module/components/EmptyState/EmptyState.d.ts +25 -0
- package/lib/typescript/module/components/EmptyState/index.d.ts +3 -0
- package/lib/typescript/module/components/FAB/FAB.d.ts +53 -0
- package/lib/typescript/module/components/FAB/index.d.ts +3 -0
- package/lib/typescript/module/components/Field/Field.d.ts +28 -0
- package/lib/typescript/module/components/Field/index.d.ts +3 -0
- package/lib/typescript/module/components/ForceUpdateDialog/ForceUpdateDialog.d.ts +39 -0
- package/lib/typescript/module/components/ForceUpdateDialog/index.d.ts +3 -0
- package/lib/typescript/module/components/Header/Header.d.ts +36 -0
- package/lib/typescript/module/components/Header/index.d.ts +3 -0
- package/lib/typescript/module/components/Icon/Icon.d.ts +20 -0
- package/lib/typescript/module/components/Icon/index.d.ts +3 -0
- package/lib/typescript/module/components/ImageGallery/ImageGallery.d.ts +41 -0
- package/lib/typescript/module/components/ImageGallery/index.d.ts +3 -0
- package/lib/typescript/module/components/Input/Input.d.ts +34 -0
- package/lib/typescript/module/components/Input/index.d.ts +3 -0
- package/lib/typescript/module/components/ListItem/ListItem.d.ts +30 -0
- package/lib/typescript/module/components/ListItem/index.d.ts +4 -0
- package/lib/typescript/module/components/LoadingSpinner/LoadingSpinner.d.ts +20 -0
- package/lib/typescript/module/components/LoadingSpinner/index.d.ts +3 -0
- package/lib/typescript/module/components/Modal/Modal.d.ts +29 -0
- package/lib/typescript/module/components/Modal/index.d.ts +3 -0
- package/lib/typescript/module/components/NumberInput/NumberInput.d.ts +35 -0
- package/lib/typescript/module/components/NumberInput/index.d.ts +3 -0
- package/lib/typescript/module/components/OTPInput/OTPInput.d.ts +29 -0
- package/lib/typescript/module/components/OTPInput/index.d.ts +3 -0
- package/lib/typescript/module/components/ProgressBar/ProgressBar.d.ts +21 -0
- package/lib/typescript/module/components/ProgressBar/index.d.ts +3 -0
- package/lib/typescript/module/components/Radio/Radio.d.ts +32 -0
- package/lib/typescript/module/components/Radio/RadioGroup.d.ts +16 -0
- package/lib/typescript/module/components/Radio/index.d.ts +5 -0
- package/lib/typescript/module/components/Rating/Rating.d.ts +22 -0
- package/lib/typescript/module/components/Rating/index.d.ts +3 -0
- package/lib/typescript/module/components/SearchBar/SearchBar.d.ts +28 -0
- package/lib/typescript/module/components/SearchBar/index.d.ts +3 -0
- package/lib/typescript/module/components/SegmentedControl/SegmentedControl.d.ts +36 -0
- package/lib/typescript/module/components/SegmentedControl/index.d.ts +3 -0
- package/lib/typescript/module/components/Select/Select.d.ts +48 -0
- package/lib/typescript/module/components/Select/index.d.ts +3 -0
- package/lib/typescript/module/components/SkeletonLoader/SkeletonContent.d.ts +29 -0
- package/lib/typescript/module/components/SkeletonLoader/SkeletonLoader.d.ts +42 -0
- package/lib/typescript/module/components/SkeletonLoader/index.d.ts +5 -0
- package/lib/typescript/module/components/Slider/Slider.d.ts +33 -0
- package/lib/typescript/module/components/Slider/index.d.ts +3 -0
- package/lib/typescript/module/components/Stepper/Stepper.d.ts +25 -0
- package/lib/typescript/module/components/Stepper/index.d.ts +3 -0
- package/lib/typescript/module/components/Swipeable/Swipeable.d.ts +45 -0
- package/lib/typescript/module/components/Swipeable/index.d.ts +3 -0
- package/lib/typescript/module/components/Switch/Switch.d.ts +24 -0
- package/lib/typescript/module/components/Switch/index.d.ts +3 -0
- package/lib/typescript/module/components/Tabs/Tabs.d.ts +37 -0
- package/lib/typescript/module/components/Tabs/index.d.ts +3 -0
- package/lib/typescript/module/components/TimePicker/TimePicker.d.ts +26 -0
- package/lib/typescript/module/components/TimePicker/index.d.ts +3 -0
- package/lib/typescript/module/components/Toast/Toast.d.ts +30 -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 +22 -0
- package/lib/typescript/module/components/Tooltip/index.d.ts +3 -0
- package/lib/typescript/module/components/index.d.ts +89 -0
- package/lib/typescript/module/config/index.d.ts +40 -0
- package/lib/typescript/module/formatters/currency.d.ts +24 -0
- package/lib/typescript/module/formatters/date.d.ts +22 -0
- package/lib/typescript/module/formatters/index.d.ts +8 -0
- package/lib/typescript/module/formatters/initials.d.ts +11 -0
- package/lib/typescript/module/formatters/number.d.ts +15 -0
- package/lib/typescript/module/formatters/phone.d.ts +13 -0
- package/lib/typescript/module/hooks/index.d.ts +6 -0
- package/lib/typescript/module/hooks/useDebounce.d.ts +2 -0
- package/lib/typescript/module/hooks/usePressAnimation.d.ts +14 -0
- package/lib/typescript/module/hooks/useToggle.d.ts +9 -0
- package/lib/typescript/module/index.d.ts +37 -0
- package/lib/typescript/module/initSDK.d.ts +40 -0
- package/lib/typescript/module/initUI.d.ts +12 -0
- package/lib/typescript/module/initUserAuth.d.ts +22 -0
- package/lib/typescript/module/logger/index.d.ts +42 -0
- package/lib/typescript/module/network/NetworkStatusBanner.d.ts +19 -0
- package/lib/typescript/module/network/index.d.ts +5 -0
- package/lib/typescript/module/network/networkStatus.d.ts +27 -0
- package/lib/typescript/module/package.json +1 -0
- package/lib/typescript/module/permissions/index.d.ts +20 -0
- package/lib/typescript/module/storage/index.d.ts +42 -0
- package/lib/typescript/module/theme/ThemeContext.d.ts +18 -0
- package/lib/typescript/module/theme/index.d.ts +13 -0
- package/lib/typescript/module/theme/merge.d.ts +3 -0
- package/lib/typescript/module/theme/tokens.d.ts +4 -0
- package/lib/typescript/module/theme/types.d.ts +161 -0
- package/lib/typescript/module/utils/dimensions.d.ts +3 -0
- package/lib/typescript/module/utils/hapticUtils.d.ts +4 -0
- package/lib/typescript/module/utils/imageCompression.d.ts +15 -0
- package/lib/typescript/module/utils/index.d.ts +10 -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/validators/index.d.ts +46 -0
- package/lib/typescript/module/versionCheck/index.d.ts +59 -0
- package/package.json +137 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { type LogLevel } from '../config';
|
|
2
|
+
type LogFn = (message: string, ...optionalParams: unknown[]) => void;
|
|
3
|
+
/**
|
|
4
|
+
* Optional remote sink. Apps wire this via `setRemoteLogger()` to forward errors
|
|
5
|
+
* and breadcrumbs to Crashlytics, Sentry, Bugsnag, etc. — without making the
|
|
6
|
+
* library depend on any of them.
|
|
7
|
+
*
|
|
8
|
+
* Every method is optional; the library calls only what the adapter implements.
|
|
9
|
+
*/
|
|
10
|
+
export interface RemoteLogger {
|
|
11
|
+
/** Append a breadcrumb (small, non-error event) for crash context. */
|
|
12
|
+
breadcrumb?: (message: string, data?: Record<string, unknown>) => void;
|
|
13
|
+
/** Record a non-fatal error with optional context. */
|
|
14
|
+
recordError?: (error: unknown, context?: Record<string, unknown>) => void;
|
|
15
|
+
/** Bind a logical user to subsequent events. */
|
|
16
|
+
setUser?: (id: string | null, attrs?: Record<string, unknown>) => void;
|
|
17
|
+
/** Attach a custom attribute / tag (e.g. `release`, `env`). */
|
|
18
|
+
setAttribute?: (key: string, value: string | number | boolean | null) => void;
|
|
19
|
+
/** Forward a leveled console message. */
|
|
20
|
+
log?: (level: LogLevel, message: string, optionalParams: unknown[]) => void;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Inject a remote logger adapter (e.g. Firebase Crashlytics, Sentry).
|
|
24
|
+
* Pass `null` to detach. Safe to call before or after `initWebority`.
|
|
25
|
+
*/
|
|
26
|
+
export declare const setRemoteLogger: (impl: RemoteLogger | null) => void;
|
|
27
|
+
export interface LoggerType {
|
|
28
|
+
info: LogFn;
|
|
29
|
+
warn: LogFn;
|
|
30
|
+
error: LogFn;
|
|
31
|
+
/** Append a breadcrumb to the remote sink (and log at info level). */
|
|
32
|
+
breadcrumb: (message: string, data?: Record<string, unknown>) => void;
|
|
33
|
+
/** Record a non-fatal error with optional context. */
|
|
34
|
+
recordError: (error: unknown, context?: Record<string, unknown>) => void;
|
|
35
|
+
/** Bind a user identity for subsequent crash reports. */
|
|
36
|
+
setUser: (id: string | null, attrs?: Record<string, unknown>) => void;
|
|
37
|
+
/** Attach a custom attribute (release, build, env, role, etc.). */
|
|
38
|
+
setAttribute: (key: string, value: string | number | boolean | null) => void;
|
|
39
|
+
}
|
|
40
|
+
export declare const Logger: LoggerType;
|
|
41
|
+
export {};
|
|
42
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ViewStyle } from 'react-native';
|
|
3
|
+
export interface NetworkStatusBannerProps {
|
|
4
|
+
/** Override the default offline message. */
|
|
5
|
+
message?: string;
|
|
6
|
+
/** Render at the top (default) or bottom of the screen. */
|
|
7
|
+
position?: 'top' | 'bottom';
|
|
8
|
+
/** Optional style override for the banner container. */
|
|
9
|
+
style?: ViewStyle;
|
|
10
|
+
/** Hide the banner entirely (useful for screens that handle offline themselves). */
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* A subtle animated banner that slides in when the device goes offline.
|
|
15
|
+
* Mount once near the app root (above your navigation tree).
|
|
16
|
+
*/
|
|
17
|
+
export declare const NetworkStatusBanner: React.FC<NetworkStatusBannerProps>;
|
|
18
|
+
export default NetworkStatusBanner;
|
|
19
|
+
//# sourceMappingURL=NetworkStatusBanner.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { useNetworkStatus, getNetworkStatus, addNetworkStatusListener } from './networkStatus';
|
|
2
|
+
export type { NetworkStatus, NetworkConnectionType, NetworkStatusListener } from './networkStatus';
|
|
3
|
+
export { NetworkStatusBanner } from './NetworkStatusBanner';
|
|
4
|
+
export type { NetworkStatusBannerProps } from './NetworkStatusBanner';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export type NetworkConnectionType = 'unknown' | 'none' | 'wifi' | 'cellular' | 'bluetooth' | 'ethernet' | 'wimax' | 'vpn' | 'other';
|
|
2
|
+
export interface NetworkStatus {
|
|
3
|
+
/** True when the device has any network connection. */
|
|
4
|
+
isConnected: boolean;
|
|
5
|
+
/**
|
|
6
|
+
* True when the connection can reach the public internet
|
|
7
|
+
* (NetInfo's reachability probe). `null` when undetermined.
|
|
8
|
+
*/
|
|
9
|
+
isInternetReachable: boolean | null;
|
|
10
|
+
type: NetworkConnectionType;
|
|
11
|
+
}
|
|
12
|
+
export type NetworkStatusListener = (status: NetworkStatus) => void;
|
|
13
|
+
/**
|
|
14
|
+
* Imperative one-shot fetch of current network status. Resolves to the default
|
|
15
|
+
* online status when NetInfo is unavailable so callers never crash.
|
|
16
|
+
*/
|
|
17
|
+
export declare const getNetworkStatus: () => Promise<NetworkStatus>;
|
|
18
|
+
/**
|
|
19
|
+
* Subscribe to network status changes. Returns an unsubscribe function.
|
|
20
|
+
*/
|
|
21
|
+
export declare const addNetworkStatusListener: (listener: NetworkStatusListener) => (() => void);
|
|
22
|
+
/**
|
|
23
|
+
* React hook that returns the current network status and re-renders on change.
|
|
24
|
+
* Reports an optimistic online default when NetInfo is not installed.
|
|
25
|
+
*/
|
|
26
|
+
export declare const useNetworkStatus: () => NetworkStatus;
|
|
27
|
+
//# sourceMappingURL=networkStatus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"commonjs"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type PermissionKind = 'camera' | 'microphone' | 'photos' | 'photosAdd' | 'mediaLibrary' | 'location' | 'locationAlways' | 'contacts' | 'calendar' | 'reminders' | 'notifications' | 'bluetooth' | 'storage';
|
|
2
|
+
export type PermissionStatus = 'unavailable' | 'denied' | 'limited' | 'granted' | 'blocked';
|
|
3
|
+
/**
|
|
4
|
+
* Cross-platform permissions wrapper. Maps an abstract `PermissionKind`
|
|
5
|
+
* (camera, photos, location, notifications, …) to the right
|
|
6
|
+
* iOS / Android permission string under the hood.
|
|
7
|
+
*
|
|
8
|
+
* Requires `react-native-permissions` as an optional peer dependency;
|
|
9
|
+
* when missing, every check/request resolves to `'unavailable'`.
|
|
10
|
+
*/
|
|
11
|
+
export declare const Permissions: {
|
|
12
|
+
check: (kind: PermissionKind) => Promise<PermissionStatus>;
|
|
13
|
+
request: (kind: PermissionKind) => Promise<PermissionStatus>;
|
|
14
|
+
/** Convenience: returns true when the permission is `granted` or `limited`. */
|
|
15
|
+
isAuthorized: (kind: PermissionKind) => Promise<boolean>;
|
|
16
|
+
/** Convenience: check, and request only if not yet granted. */
|
|
17
|
+
ensure: (kind: PermissionKind) => Promise<PermissionStatus>;
|
|
18
|
+
openSettings: () => Promise<boolean>;
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Minimal AsyncStorage shape we depend on.
|
|
3
|
+
* Lets us avoid a hard import on `@react-native-async-storage/async-storage`.
|
|
4
|
+
*/
|
|
5
|
+
interface AsyncStorageLike {
|
|
6
|
+
getItem: (key: string) => Promise<string | null>;
|
|
7
|
+
setItem: (key: string, value: string) => Promise<void>;
|
|
8
|
+
removeItem: (key: string) => Promise<void>;
|
|
9
|
+
multiGet?: (keys: readonly string[]) => Promise<readonly [string, string | null][]>;
|
|
10
|
+
multiSet?: (kvs: readonly [string, string][]) => Promise<void>;
|
|
11
|
+
multiRemove?: (keys: readonly string[]) => Promise<void>;
|
|
12
|
+
clear?: () => Promise<void>;
|
|
13
|
+
getAllKeys?: () => Promise<readonly string[]>;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Inject a custom storage backend (e.g. MMKV adapter) at runtime.
|
|
17
|
+
* Pass `null` to reset to the default AsyncStorage backend.
|
|
18
|
+
*/
|
|
19
|
+
export declare const setStorageImplementation: (impl: AsyncStorageLike | null) => void;
|
|
20
|
+
export interface StorageApi {
|
|
21
|
+
getItem: (key: string) => Promise<string | null>;
|
|
22
|
+
setItem: (key: string, value: string) => Promise<boolean>;
|
|
23
|
+
removeItem: (key: string) => Promise<boolean>;
|
|
24
|
+
getJson: <T>(key: string) => Promise<T | null>;
|
|
25
|
+
setJson: <T>(key: string, value: T) => Promise<boolean>;
|
|
26
|
+
multiGet: (keys: readonly string[]) => Promise<Record<string, string | null>>;
|
|
27
|
+
multiSet: (entries: Record<string, string>) => Promise<boolean>;
|
|
28
|
+
multiRemove: (keys: readonly string[]) => Promise<boolean>;
|
|
29
|
+
clear: () => Promise<boolean>;
|
|
30
|
+
getAllKeys: () => Promise<string[]>;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Typed AsyncStorage wrapper with safe JSON helpers.
|
|
34
|
+
* All operations swallow errors (logging them) and return a falsy result
|
|
35
|
+
* so that storage problems never crash the app.
|
|
36
|
+
*
|
|
37
|
+
* Backed by `@react-native-async-storage/async-storage` by default;
|
|
38
|
+
* override with `setStorageImplementation()` for MMKV or custom adapters.
|
|
39
|
+
*/
|
|
40
|
+
export declare const Storage: StorageApi;
|
|
41
|
+
export type { AsyncStorageLike };
|
|
42
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ColorMode, Theme, ThemeOverrides } from './types';
|
|
3
|
+
export type ColorSchemePreference = 'light' | 'dark' | 'system';
|
|
4
|
+
export interface ThemeProviderProps {
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
initialPreference?: ColorSchemePreference;
|
|
7
|
+
lightOverrides?: ThemeOverrides;
|
|
8
|
+
darkOverrides?: ThemeOverrides;
|
|
9
|
+
}
|
|
10
|
+
export declare const ThemeProvider: React.FC<ThemeProviderProps>;
|
|
11
|
+
export declare const useTheme: () => Theme;
|
|
12
|
+
export declare const useThemeMode: () => {
|
|
13
|
+
mode: ColorMode;
|
|
14
|
+
preference: ColorSchemePreference;
|
|
15
|
+
setPreference: (preference: ColorSchemePreference) => void;
|
|
16
|
+
toggleColorMode: () => void;
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=ThemeContext.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ColorMode, Theme, ThemeOverrides } from './types';
|
|
2
|
+
export declare const setTheme: (overrides: ThemeOverrides, mode?: ColorMode) => void;
|
|
3
|
+
export declare const setColorMode: (mode: ColorMode) => void;
|
|
4
|
+
export declare const getColorMode: () => ColorMode;
|
|
5
|
+
export declare const getTheme: () => Theme;
|
|
6
|
+
export declare const resetTheme: () => void;
|
|
7
|
+
export declare const subscribeTheme: (callback: () => void) => (() => void);
|
|
8
|
+
export { ThemeProvider, useTheme, useThemeMode } from './ThemeContext';
|
|
9
|
+
export type { ThemeProviderProps, ColorSchemePreference } from './ThemeContext';
|
|
10
|
+
export { lightTheme, darkTheme } from './tokens';
|
|
11
|
+
export { mergeTheme } from './merge';
|
|
12
|
+
export type { ColorMode, ColorPalette, RadiusScale, ShadowDefinition, ShadowScale, SpacingScale, Theme, ThemeOverrides, TypographyScale, MotionScale, DeepPartial } from './types';
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import type { TextStyle, ViewStyle } from 'react-native';
|
|
2
|
+
export type ColorMode = 'light' | 'dark';
|
|
3
|
+
export interface ColorPalette {
|
|
4
|
+
primary: string;
|
|
5
|
+
primaryHover: string;
|
|
6
|
+
primaryPressed: string;
|
|
7
|
+
primaryMuted: string;
|
|
8
|
+
secondary: string;
|
|
9
|
+
secondaryHover: string;
|
|
10
|
+
success: string;
|
|
11
|
+
warning: string;
|
|
12
|
+
error: string;
|
|
13
|
+
info: string;
|
|
14
|
+
text: {
|
|
15
|
+
primary: string;
|
|
16
|
+
secondary: string;
|
|
17
|
+
tertiary: string;
|
|
18
|
+
inverse: string;
|
|
19
|
+
disabled: string;
|
|
20
|
+
link: string;
|
|
21
|
+
};
|
|
22
|
+
background: {
|
|
23
|
+
primary: string;
|
|
24
|
+
secondary: string;
|
|
25
|
+
tertiary: string;
|
|
26
|
+
elevated: string;
|
|
27
|
+
overlay: string;
|
|
28
|
+
inverse: string;
|
|
29
|
+
};
|
|
30
|
+
border: {
|
|
31
|
+
primary: string;
|
|
32
|
+
secondary: string;
|
|
33
|
+
focus: string;
|
|
34
|
+
error: string;
|
|
35
|
+
};
|
|
36
|
+
surface: {
|
|
37
|
+
pressed: string;
|
|
38
|
+
hovered: string;
|
|
39
|
+
selected: string;
|
|
40
|
+
disabled: string;
|
|
41
|
+
};
|
|
42
|
+
skeleton: {
|
|
43
|
+
background: string;
|
|
44
|
+
highlight: string;
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
export interface TypographyScale {
|
|
48
|
+
fontSize: {
|
|
49
|
+
xs: number;
|
|
50
|
+
sm: number;
|
|
51
|
+
base: number;
|
|
52
|
+
lg: number;
|
|
53
|
+
xl: number;
|
|
54
|
+
'2xl': number;
|
|
55
|
+
'3xl': number;
|
|
56
|
+
'4xl': number;
|
|
57
|
+
};
|
|
58
|
+
fontWeight: {
|
|
59
|
+
normal: TextStyle['fontWeight'];
|
|
60
|
+
medium: TextStyle['fontWeight'];
|
|
61
|
+
semibold: TextStyle['fontWeight'];
|
|
62
|
+
bold: TextStyle['fontWeight'];
|
|
63
|
+
};
|
|
64
|
+
lineHeight: {
|
|
65
|
+
tight: number;
|
|
66
|
+
normal: number;
|
|
67
|
+
relaxed: number;
|
|
68
|
+
};
|
|
69
|
+
letterSpacing: {
|
|
70
|
+
tight: number;
|
|
71
|
+
normal: number;
|
|
72
|
+
wide: number;
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
export interface SpacingScale {
|
|
76
|
+
none: 0;
|
|
77
|
+
xxs: number;
|
|
78
|
+
xs: number;
|
|
79
|
+
sm: number;
|
|
80
|
+
md: number;
|
|
81
|
+
lg: number;
|
|
82
|
+
xl: number;
|
|
83
|
+
'2xl': number;
|
|
84
|
+
'3xl': number;
|
|
85
|
+
'4xl': number;
|
|
86
|
+
}
|
|
87
|
+
export interface RadiusScale {
|
|
88
|
+
none: 0;
|
|
89
|
+
xs: number;
|
|
90
|
+
sm: number;
|
|
91
|
+
md: number;
|
|
92
|
+
lg: number;
|
|
93
|
+
xl: number;
|
|
94
|
+
'2xl': number;
|
|
95
|
+
full: 9999;
|
|
96
|
+
}
|
|
97
|
+
export interface ShadowDefinition {
|
|
98
|
+
shadowColor: string;
|
|
99
|
+
shadowOffset: {
|
|
100
|
+
width: number;
|
|
101
|
+
height: number;
|
|
102
|
+
};
|
|
103
|
+
shadowOpacity: number;
|
|
104
|
+
shadowRadius: number;
|
|
105
|
+
elevation: number;
|
|
106
|
+
}
|
|
107
|
+
export interface ShadowScale {
|
|
108
|
+
none: ViewStyle;
|
|
109
|
+
xs: ShadowDefinition;
|
|
110
|
+
sm: ShadowDefinition;
|
|
111
|
+
md: ShadowDefinition;
|
|
112
|
+
lg: ShadowDefinition;
|
|
113
|
+
xl: ShadowDefinition;
|
|
114
|
+
'2xl': ShadowDefinition;
|
|
115
|
+
}
|
|
116
|
+
export interface MotionScale {
|
|
117
|
+
duration: {
|
|
118
|
+
instant: number;
|
|
119
|
+
fast: number;
|
|
120
|
+
normal: number;
|
|
121
|
+
slow: number;
|
|
122
|
+
slower: number;
|
|
123
|
+
};
|
|
124
|
+
easing: {
|
|
125
|
+
standard: readonly [number, number, number, number];
|
|
126
|
+
accelerate: readonly [number, number, number, number];
|
|
127
|
+
decelerate: readonly [number, number, number, number];
|
|
128
|
+
sharp: readonly [number, number, number, number];
|
|
129
|
+
};
|
|
130
|
+
spring: {
|
|
131
|
+
gentle: {
|
|
132
|
+
damping: number;
|
|
133
|
+
stiffness: number;
|
|
134
|
+
mass: number;
|
|
135
|
+
};
|
|
136
|
+
bouncy: {
|
|
137
|
+
damping: number;
|
|
138
|
+
stiffness: number;
|
|
139
|
+
mass: number;
|
|
140
|
+
};
|
|
141
|
+
snappy: {
|
|
142
|
+
damping: number;
|
|
143
|
+
stiffness: number;
|
|
144
|
+
mass: number;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
export interface Theme {
|
|
149
|
+
mode: ColorMode;
|
|
150
|
+
colors: ColorPalette;
|
|
151
|
+
typography: TypographyScale;
|
|
152
|
+
spacing: SpacingScale;
|
|
153
|
+
radius: RadiusScale;
|
|
154
|
+
shadows: ShadowScale;
|
|
155
|
+
motion: MotionScale;
|
|
156
|
+
}
|
|
157
|
+
export type DeepPartial<T> = T extends object ? {
|
|
158
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
159
|
+
} : T;
|
|
160
|
+
export type ThemeOverrides = DeepPartial<Theme>;
|
|
161
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1,4 @@
|
|
|
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
|
+
//# sourceMappingURL=hapticUtils.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface CompressImageOptions {
|
|
2
|
+
/** Max image width / height in pixels (preserves aspect ratio). Defaults to 1600. */
|
|
3
|
+
maxSize?: number;
|
|
4
|
+
/** JPEG/WebP quality, 0–1. Defaults to 0.7. */
|
|
5
|
+
quality?: number;
|
|
6
|
+
/** Output format. Defaults to `'jpg'`. */
|
|
7
|
+
output?: 'jpg' | 'png' | 'webp';
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Compress an image referenced by a URI. Returns a new URI on success, or the
|
|
11
|
+
* original URI on failure / when the optional `react-native-compressor`
|
|
12
|
+
* dependency is missing — so callers can rely on always getting a usable URI.
|
|
13
|
+
*/
|
|
14
|
+
export declare const compressImage: (uri: string, options?: CompressImageOptions) => Promise<string>;
|
|
15
|
+
//# sourceMappingURL=imageCompression.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { ScreenDimensions, Breakpoints, Responsive, isScreenSize, isTablet } from './responsive';
|
|
2
|
+
export type { BreakpointKey } from './responsive';
|
|
3
|
+
export { Spacing, Padding, Margin } from './spacing';
|
|
4
|
+
export type { SpacingToken } from './spacing';
|
|
5
|
+
export { triggerHaptic, setHapticImplementation } from './hapticUtils';
|
|
6
|
+
export type { HapticType } from './hapticUtils';
|
|
7
|
+
export { shadowStyle } from './shadows';
|
|
8
|
+
export { compressImage } from './imageCompression';
|
|
9
|
+
export type { CompressImageOptions } from './imageCompression';
|
|
10
|
+
//# 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,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generic validators returning `boolean`. All accept `null`/`undefined` safely.
|
|
3
|
+
*
|
|
4
|
+
* Tradeoff: regexes are pragmatic, not RFC-strict. They reject the things real users
|
|
5
|
+
* typo and accept the long tail of legitimate inputs. For RFC-grade validation use
|
|
6
|
+
* a dedicated library at the boundary.
|
|
7
|
+
*/
|
|
8
|
+
export declare const isNonEmpty: (value: unknown) => boolean;
|
|
9
|
+
export declare const isEmail: (value: unknown) => boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Validate an Indian mobile number. Accepts:
|
|
12
|
+
* - 10-digit number starting with 6-9
|
|
13
|
+
* - Optional `+91` or `91` country code prefix
|
|
14
|
+
*/
|
|
15
|
+
export declare const isIndianMobile: (value: unknown) => boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Generic phone validator: 7–15 digits, optional `+` prefix.
|
|
18
|
+
* Use `isIndianMobile` when you specifically need an Indian mobile number.
|
|
19
|
+
*/
|
|
20
|
+
export declare const isPhone: (value: unknown) => boolean;
|
|
21
|
+
export declare const isUrl: (value: unknown) => boolean;
|
|
22
|
+
export declare const isNumeric: (value: unknown) => boolean;
|
|
23
|
+
export declare const isInteger: (value: unknown) => boolean;
|
|
24
|
+
export declare const isAlphanumeric: (value: unknown) => boolean;
|
|
25
|
+
export interface PasswordRules {
|
|
26
|
+
minLength?: number;
|
|
27
|
+
requireUppercase?: boolean;
|
|
28
|
+
requireLowercase?: boolean;
|
|
29
|
+
requireNumber?: boolean;
|
|
30
|
+
requireSymbol?: boolean;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Common password complexity check. Defaults to 8+ chars,
|
|
34
|
+
* one uppercase, one lowercase, one digit.
|
|
35
|
+
*/
|
|
36
|
+
export declare const isStrongPassword: (value: unknown, rules?: PasswordRules) => boolean;
|
|
37
|
+
export declare const isIndianPincode: (value: unknown) => boolean;
|
|
38
|
+
export declare const isPan: (value: unknown) => boolean;
|
|
39
|
+
export declare const isGstin: (value: unknown) => boolean;
|
|
40
|
+
export declare const isAadhaar: (value: unknown) => boolean;
|
|
41
|
+
export declare const isIfsc: (value: unknown) => boolean;
|
|
42
|
+
export declare const isHexColor: (value: unknown) => boolean;
|
|
43
|
+
export declare const isBetween: (value: unknown, min: number, max: number, inclusive?: boolean) => boolean;
|
|
44
|
+
export declare const minLength: (value: unknown, length: number) => boolean;
|
|
45
|
+
export declare const maxLength: (value: unknown, length: number) => boolean;
|
|
46
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { type Environment } from '../config';
|
|
2
|
+
export type Platform = 'ios' | 'android' | string;
|
|
3
|
+
export type UpdateType = 'major' | 'minor' | 'patch' | 'prerelease' | null;
|
|
4
|
+
export interface ParsedVersion {
|
|
5
|
+
major: number;
|
|
6
|
+
minor: number;
|
|
7
|
+
patch: number;
|
|
8
|
+
prerelease: string;
|
|
9
|
+
}
|
|
10
|
+
export interface VersionData {
|
|
11
|
+
version: string | null;
|
|
12
|
+
released?: string | null;
|
|
13
|
+
releasedAt?: string;
|
|
14
|
+
notes: string;
|
|
15
|
+
url: string | null;
|
|
16
|
+
country?: string;
|
|
17
|
+
lastChecked: string;
|
|
18
|
+
}
|
|
19
|
+
export interface VersionComparison {
|
|
20
|
+
needsUpdate: boolean;
|
|
21
|
+
updateType: UpdateType;
|
|
22
|
+
notice?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface VersionCheckResult {
|
|
25
|
+
isNewVersionAvailable: boolean;
|
|
26
|
+
updateType: UpdateType;
|
|
27
|
+
url: string | null;
|
|
28
|
+
}
|
|
29
|
+
export interface UpdateInfo {
|
|
30
|
+
isUpdateRequired: boolean;
|
|
31
|
+
updateUrl: string | null;
|
|
32
|
+
}
|
|
33
|
+
export interface VersionCheckType {
|
|
34
|
+
/**
|
|
35
|
+
* Check if a new version is available.
|
|
36
|
+
* Includes retry logic and proper error handling.
|
|
37
|
+
*/
|
|
38
|
+
isNewVersionAvailable: () => Promise<VersionCheckResult>;
|
|
39
|
+
/**
|
|
40
|
+
* Opens the appropriate store URL to update the app.
|
|
41
|
+
* Uses the provided URL or falls back to direct store URLs.
|
|
42
|
+
*/
|
|
43
|
+
openUpdateUrl: (url?: string | null) => Promise<boolean>;
|
|
44
|
+
/**
|
|
45
|
+
* Get the fallback store URL.
|
|
46
|
+
* Useful when URL from version check fails.
|
|
47
|
+
*/
|
|
48
|
+
getFallbackStoreUrl: () => string;
|
|
49
|
+
}
|
|
50
|
+
export declare const VersionCheck: VersionCheckType;
|
|
51
|
+
/**
|
|
52
|
+
* Custom hook to check for required app updates.
|
|
53
|
+
*
|
|
54
|
+
* @param isAppReady - Whether the app is ready to perform the check
|
|
55
|
+
* @param environment - The app environment (defaults to the one in config)
|
|
56
|
+
*/
|
|
57
|
+
export declare const useVersionCheck: (isAppReady: boolean, environment?: Environment) => UpdateInfo;
|
|
58
|
+
export default VersionCheck;
|
|
59
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type AxiosInstance } from 'axios';
|
|
2
|
+
/**
|
|
3
|
+
* Public Axios Client
|
|
4
|
+
* - Base URL: Set your public API base URL.
|
|
5
|
+
* - No Authorization header is attached.
|
|
6
|
+
* - Includes timeout configuration and error handling.
|
|
7
|
+
* - Handles specific HTTP status codes.
|
|
8
|
+
*/
|
|
9
|
+
declare const publicClient: AxiosInstance;
|
|
10
|
+
export default publicClient;
|
|
11
|
+
//# sourceMappingURL=publicClient.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type AxiosInstance } from 'axios';
|
|
2
|
+
import type { AuthActions } from '../initUserAuth';
|
|
3
|
+
/**
|
|
4
|
+
* Minimal Redux-store shape required by the user client to dispatch
|
|
5
|
+
* refresh-token / logout actions.
|
|
6
|
+
*/
|
|
7
|
+
export interface RefreshableStore {
|
|
8
|
+
dispatch: (action: unknown) => Promise<{
|
|
9
|
+
error?: {
|
|
10
|
+
message?: string;
|
|
11
|
+
};
|
|
12
|
+
}>;
|
|
13
|
+
}
|
|
14
|
+
declare const userClient: AxiosInstance;
|
|
15
|
+
export declare const injectStore: <S>(_store: S) => void;
|
|
16
|
+
export declare const injectAuthActions: (actions: AuthActions) => void;
|
|
17
|
+
export default userClient;
|
|
18
|
+
//# sourceMappingURL=userClient.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Token data persisted in the keychain.
|
|
3
|
+
*/
|
|
4
|
+
export interface StoredToken {
|
|
5
|
+
token: string;
|
|
6
|
+
expiry: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Store token with expiry.
|
|
10
|
+
*/
|
|
11
|
+
export declare const storeToken: (key: string, token: string, expiry: string) => Promise<void>;
|
|
12
|
+
/**
|
|
13
|
+
* Retrieve token and check if expired.
|
|
14
|
+
*/
|
|
15
|
+
export declare const getToken: (key: string) => Promise<StoredToken | null>;
|
|
16
|
+
/**
|
|
17
|
+
* Remove token by key.
|
|
18
|
+
*/
|
|
19
|
+
export declare const removeToken: (key: string) => Promise<void>;
|
|
20
|
+
//# sourceMappingURL=authStore.d.ts.map
|