@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,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configuration management for Webority packages
|
|
3
|
+
* Provides a flexible way to inject configuration without hard dependencies
|
|
4
|
+
*/
|
|
5
|
+
export type LogLevel = 'info' | 'warn' | 'error';
|
|
6
|
+
export type Environment = 'Development' | 'Production' | 'Staging';
|
|
7
|
+
export interface Config {
|
|
8
|
+
/** API base URL (required before making API calls) */
|
|
9
|
+
baseUrl: string | null;
|
|
10
|
+
/** Enable/disable logging globally */
|
|
11
|
+
loggingEnabled: boolean;
|
|
12
|
+
/** Minimum log level to emit */
|
|
13
|
+
logLevel: LogLevel;
|
|
14
|
+
/** Current runtime environment */
|
|
15
|
+
environment: Environment;
|
|
16
|
+
/**
|
|
17
|
+
* ISO 3166-1 alpha-2 country code (lowercase) used by the version-check
|
|
18
|
+
* module to scope App Store / Play Store lookups. Defaults to `'in'`.
|
|
19
|
+
*/
|
|
20
|
+
country: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Set global configuration for all Webority packages
|
|
24
|
+
*/
|
|
25
|
+
export declare const setConfig: (config: Partial<Config>) => void;
|
|
26
|
+
/**
|
|
27
|
+
* Get current configuration
|
|
28
|
+
*/
|
|
29
|
+
export declare const getConfig: () => Config;
|
|
30
|
+
/**
|
|
31
|
+
* Get a specific config value with optional fallback.
|
|
32
|
+
* If the stored value is `null`, the fallback is returned (when provided).
|
|
33
|
+
*/
|
|
34
|
+
export declare function getConfigValue<K extends keyof Config>(key: K): Config[K];
|
|
35
|
+
export declare function getConfigValue<K extends keyof Config>(key: K, fallback: Config[K]): Config[K];
|
|
36
|
+
/**
|
|
37
|
+
* Reset configuration to defaults
|
|
38
|
+
*/
|
|
39
|
+
export declare const resetConfig: () => void;
|
|
40
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface FormatCurrencyOptions {
|
|
2
|
+
/** ISO 4217 currency code. Defaults to `'INR'`. */
|
|
3
|
+
currency?: string;
|
|
4
|
+
/** BCP-47 locale tag. Defaults to `'en-IN'` (Indian numbering system). */
|
|
5
|
+
locale?: string;
|
|
6
|
+
/** Minimum fraction digits. Defaults to 0 for whole amounts, 2 otherwise. */
|
|
7
|
+
minimumFractionDigits?: number;
|
|
8
|
+
/** Maximum fraction digits. Defaults to 2. */
|
|
9
|
+
maximumFractionDigits?: number;
|
|
10
|
+
/** Strip the currency symbol — useful when the symbol is rendered separately. */
|
|
11
|
+
stripSymbol?: boolean;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Format an amount as currency. Defaults to **INR** with Indian numbering (`en-IN`),
|
|
15
|
+
* which matches the standard convention across Webority projects.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* formatCurrency(150000) // ₹1,50,000
|
|
19
|
+
* formatCurrency(1234.5) // ₹1,234.50
|
|
20
|
+
* formatCurrency(99, { currency: 'USD', locale: 'en-US' }) // $99.00
|
|
21
|
+
* formatCurrency(150000, { stripSymbol: true }) // 1,50,000
|
|
22
|
+
*/
|
|
23
|
+
export declare const formatCurrency: (amount: number | null | undefined, options?: FormatCurrencyOptions) => string;
|
|
24
|
+
//# sourceMappingURL=currency.d.ts.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export type DateInput = Date | string | number;
|
|
2
|
+
export type DateStyle = 'short' | 'medium' | 'long' | 'full';
|
|
3
|
+
export type TimeStyle = 'short' | 'medium' | 'long';
|
|
4
|
+
/**
|
|
5
|
+
* Locale-aware date formatter. Defaults to `'medium'` style and `'en-IN'` locale,
|
|
6
|
+
* matching the Indian-locale convention used across Webority apps.
|
|
7
|
+
*/
|
|
8
|
+
export declare const formatDate: (value: DateInput, style?: DateStyle, locale?: string) => string;
|
|
9
|
+
/**
|
|
10
|
+
* Locale-aware time formatter (24-hour fallback when Intl is unavailable).
|
|
11
|
+
*/
|
|
12
|
+
export declare const formatTime: (value: DateInput, style?: TimeStyle, locale?: string) => string;
|
|
13
|
+
/**
|
|
14
|
+
* Combined date + time formatter.
|
|
15
|
+
*/
|
|
16
|
+
export declare const formatDateTime: (value: DateInput, dateStyle?: DateStyle, timeStyle?: TimeStyle, locale?: string) => string;
|
|
17
|
+
/**
|
|
18
|
+
* Returns a humanized relative-time string (e.g. "5 minutes ago", "in 3 days").
|
|
19
|
+
* Uses `Intl.RelativeTimeFormat` when available; otherwise a sensible English fallback.
|
|
20
|
+
*/
|
|
21
|
+
export declare const formatRelativeTime: (value: DateInput, base?: DateInput, locale?: string) => string;
|
|
22
|
+
//# sourceMappingURL=date.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { formatDate, formatTime, formatDateTime, formatRelativeTime } from './date';
|
|
2
|
+
export type { DateInput, DateStyle, TimeStyle } from './date';
|
|
3
|
+
export { formatPhone, normalizePhone } from './phone';
|
|
4
|
+
export { formatCurrency } from './currency';
|
|
5
|
+
export type { FormatCurrencyOptions } from './currency';
|
|
6
|
+
export { formatNumber, formatPercent, formatCompactNumber } from './number';
|
|
7
|
+
export { getInitials } from './initials';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns up to `maxChars` uppercase initials from a name.
|
|
3
|
+
*
|
|
4
|
+
* @example
|
|
5
|
+
* getInitials('Navneet Singh') // 'NS'
|
|
6
|
+
* getInitials('mary anne lee', 3) // 'MAL'
|
|
7
|
+
* getInitials('navneet') // 'NA'
|
|
8
|
+
* getInitials(' ') // ''
|
|
9
|
+
*/
|
|
10
|
+
export declare const getInitials: (name: string | null | undefined, maxChars?: number) => string;
|
|
11
|
+
//# sourceMappingURL=initials.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Locale-aware number formatter. Defaults to `'en-IN'` (Indian grouping).
|
|
3
|
+
*/
|
|
4
|
+
export declare const formatNumber: (value: number | null | undefined, fractionDigits?: number, locale?: string) => string;
|
|
5
|
+
/**
|
|
6
|
+
* Format a 0–1 ratio (or 0–100 percent) as a percent string.
|
|
7
|
+
* Pass `asRatio: false` if your input is already on the 0–100 scale.
|
|
8
|
+
*/
|
|
9
|
+
export declare const formatPercent: (value: number | null | undefined, fractionDigits?: number, asRatio?: boolean, locale?: string) => string;
|
|
10
|
+
/**
|
|
11
|
+
* Format a number compactly (1.2K, 3.4M, 1.5L, 2.3Cr).
|
|
12
|
+
* Defaults to Indian compact notation via `'en-IN'` locale (lakh / crore).
|
|
13
|
+
*/
|
|
14
|
+
export declare const formatCompactNumber: (value: number | null | undefined, locale?: string) => string;
|
|
15
|
+
//# sourceMappingURL=number.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Strip everything except digits and a leading `+` (preserved if present).
|
|
3
|
+
*/
|
|
4
|
+
export declare const normalizePhone: (input: string) => string;
|
|
5
|
+
/**
|
|
6
|
+
* Format a phone number for human display.
|
|
7
|
+
*
|
|
8
|
+
* - Indian mobile (10 digits) → `XXXXX XXXXX`
|
|
9
|
+
* - With `+91` country code → `+91 XXXXX XXXXX`
|
|
10
|
+
* - Other inputs are returned as `+CC NNNN NNNN…` best-effort grouping.
|
|
11
|
+
*/
|
|
12
|
+
export declare const formatPhone: (input: string, defaultCountryCode?: string) => string;
|
|
13
|
+
//# sourceMappingURL=phone.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { useToggle } from './useToggle';
|
|
2
|
+
export type { UseToggleResult } from './useToggle';
|
|
3
|
+
export { useDebounce } from './useDebounce';
|
|
4
|
+
export { usePressAnimation } from './usePressAnimation';
|
|
5
|
+
export type { UsePressAnimationOptions, UsePressAnimationResult } from './usePressAnimation';
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Animated } from 'react-native';
|
|
2
|
+
export interface UsePressAnimationOptions {
|
|
3
|
+
scaleTo?: number;
|
|
4
|
+
pressDuration?: number;
|
|
5
|
+
releaseDuration?: number;
|
|
6
|
+
enabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface UsePressAnimationResult {
|
|
9
|
+
scale: Animated.Value;
|
|
10
|
+
pressIn: () => void;
|
|
11
|
+
pressOut: () => void;
|
|
12
|
+
}
|
|
13
|
+
export declare const usePressAnimation: ({ scaleTo, pressDuration, releaseDuration, enabled }?: UsePressAnimationOptions) => UsePressAnimationResult;
|
|
14
|
+
//# sourceMappingURL=usePressAnimation.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface UseToggleResult {
|
|
2
|
+
value: boolean;
|
|
3
|
+
toggle: () => void;
|
|
4
|
+
setOn: () => void;
|
|
5
|
+
setOff: () => void;
|
|
6
|
+
setValue: (value: boolean) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const useToggle: (initial?: boolean) => UseToggleResult;
|
|
9
|
+
//# sourceMappingURL=useToggle.d.ts.map
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export { initWebority } from './initSDK';
|
|
2
|
+
export type { InitConfig } from './initSDK';
|
|
3
|
+
export { initUserAuth } from './initUserAuth';
|
|
4
|
+
export type { AuthActions } from './initUserAuth';
|
|
5
|
+
export { initUI } from './initUI';
|
|
6
|
+
export type { InitUIOptions } from './initUI';
|
|
7
|
+
export { setConfig, getConfig, getConfigValue, resetConfig } from './config';
|
|
8
|
+
export type { Config, LogLevel, Environment } from './config';
|
|
9
|
+
export { default as publicClient } from './api/publicClient';
|
|
10
|
+
export { default as userClient, injectStore, injectAuthActions } from './api/userClient';
|
|
11
|
+
export type { RefreshableStore } from './api/userClient';
|
|
12
|
+
export { storeToken, getToken, removeToken } from './auth/authStore';
|
|
13
|
+
export type { StoredToken } from './auth/authStore';
|
|
14
|
+
export { decodeJWT, isJWTExpired, getJWTExpiry } from './auth/jwt';
|
|
15
|
+
export type { JwtClaims } from './auth/jwt';
|
|
16
|
+
export { Storage, setStorageImplementation } from './storage';
|
|
17
|
+
export type { StorageApi, AsyncStorageLike } from './storage';
|
|
18
|
+
export { Logger, setRemoteLogger } from './logger';
|
|
19
|
+
export type { LoggerType, RemoteLogger } from './logger';
|
|
20
|
+
export { VersionCheck, useVersionCheck } from './versionCheck';
|
|
21
|
+
export type { UpdateInfo, UpdateType, VersionData, VersionComparison, VersionCheckResult, VersionCheckType, ParsedVersion, Platform } from './versionCheck';
|
|
22
|
+
export { ThemeProvider, useTheme, useThemeMode, setTheme, setColorMode, getColorMode, getTheme, resetTheme, subscribeTheme, mergeTheme, lightTheme, darkTheme } from './theme';
|
|
23
|
+
export type { Theme, ThemeOverrides, ThemeProviderProps, ColorMode, ColorPalette, ColorSchemePreference, RadiusScale, ShadowDefinition, ShadowScale, SpacingScale, TypographyScale, MotionScale, DeepPartial } from './theme';
|
|
24
|
+
export { useToggle, useDebounce, usePressAnimation } from './hooks';
|
|
25
|
+
export type { UseToggleResult, UsePressAnimationOptions, UsePressAnimationResult } from './hooks';
|
|
26
|
+
export { ScreenDimensions, Breakpoints, Responsive, isScreenSize, isTablet, Spacing, Padding, Margin, triggerHaptic, setHapticImplementation, shadowStyle, compressImage } from './utils';
|
|
27
|
+
export type { BreakpointKey, SpacingToken, HapticType, CompressImageOptions } from './utils';
|
|
28
|
+
export { formatDate, formatTime, formatDateTime, formatRelativeTime, formatPhone, normalizePhone, formatCurrency, formatNumber, formatPercent, formatCompactNumber, getInitials } from './formatters';
|
|
29
|
+
export type { DateInput, DateStyle, TimeStyle, FormatCurrencyOptions } from './formatters';
|
|
30
|
+
export { isNonEmpty, isEmail, isIndianMobile, isPhone, isUrl, isNumeric, isInteger, isAlphanumeric, isStrongPassword, isIndianPincode, isPan, isGstin, isAadhaar, isIfsc, isHexColor, isBetween, minLength, maxLength } from './validators';
|
|
31
|
+
export type { PasswordRules } from './validators';
|
|
32
|
+
export { useNetworkStatus, getNetworkStatus, addNetworkStatusListener, NetworkStatusBanner } from './network';
|
|
33
|
+
export type { NetworkStatus, NetworkConnectionType, NetworkStatusListener, NetworkStatusBannerProps } from './network';
|
|
34
|
+
export { Permissions } from './permissions';
|
|
35
|
+
export type { PermissionKind, PermissionStatus } from './permissions';
|
|
36
|
+
export * from './components';
|
|
37
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Simple initialization API for Webority packages
|
|
3
|
+
* One function to configure everything needed
|
|
4
|
+
*/
|
|
5
|
+
import { type Environment, type LogLevel } from './config';
|
|
6
|
+
export interface InitConfig {
|
|
7
|
+
/** Your API base URL (required) */
|
|
8
|
+
baseUrl: string;
|
|
9
|
+
/** Enable/disable logging. Defaults to `true`. */
|
|
10
|
+
loggingEnabled?: boolean;
|
|
11
|
+
/** Log level. Defaults to `'info'`. */
|
|
12
|
+
logLevel?: LogLevel;
|
|
13
|
+
/** Environment. Defaults to `'Development'`. */
|
|
14
|
+
environment?: Environment;
|
|
15
|
+
/**
|
|
16
|
+
* ISO 3166-1 alpha-2 country code (lowercase) used for App Store / Play Store
|
|
17
|
+
* version checks. Defaults to `'in'`.
|
|
18
|
+
*/
|
|
19
|
+
country?: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Initialize Webority packages with your project configuration.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* // Basic setup
|
|
26
|
+
* initWebority({
|
|
27
|
+
* baseUrl: 'https://api.myapp.com'
|
|
28
|
+
* });
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* // Full configuration
|
|
32
|
+
* initWebority({
|
|
33
|
+
* baseUrl: 'https://api.myapp.com',
|
|
34
|
+
* loggingEnabled: __DEV__,
|
|
35
|
+
* logLevel: 'warn',
|
|
36
|
+
* environment: __DEV__ ? 'Development' : 'Production'
|
|
37
|
+
* });
|
|
38
|
+
*/
|
|
39
|
+
export declare const initWebority: (config: InitConfig) => void;
|
|
40
|
+
//# sourceMappingURL=initSDK.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ColorMode, ThemeOverrides } from './theme/types';
|
|
2
|
+
export interface InitUIOptions {
|
|
3
|
+
light?: ThemeOverrides;
|
|
4
|
+
dark?: ThemeOverrides;
|
|
5
|
+
defaultMode?: ColorMode;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Configure the global functional theme API used outside of React tree
|
|
9
|
+
* (use ThemeProvider for React-tree consumers; both can coexist).
|
|
10
|
+
*/
|
|
11
|
+
export declare const initUI: (options?: InitUIOptions) => void;
|
|
12
|
+
//# sourceMappingURL=initUI.d.ts.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Simple initialization API for Webority User package
|
|
3
|
+
* Easy setup for Redux integration
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Auth action creators required by the user package.
|
|
7
|
+
*/
|
|
8
|
+
export interface AuthActions {
|
|
9
|
+
logout: () => unknown;
|
|
10
|
+
refreshToken: () => unknown;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Initialize user package with Redux store and auth actions.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* import store from './store';
|
|
17
|
+
* import { logout, refreshToken } from './actions/authActions';
|
|
18
|
+
*
|
|
19
|
+
* initUserAuth(store, { logout, refreshToken });
|
|
20
|
+
*/
|
|
21
|
+
export declare const initUserAuth: <S>(store: S, authActions: AuthActions) => void;
|
|
22
|
+
//# sourceMappingURL=initUserAuth.d.ts.map
|
|
@@ -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":"module"}
|
|
@@ -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
|