@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,315 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const typography = {
|
|
4
|
+
fontSize: {
|
|
5
|
+
xs: 11,
|
|
6
|
+
sm: 13,
|
|
7
|
+
base: 15,
|
|
8
|
+
lg: 17,
|
|
9
|
+
xl: 20,
|
|
10
|
+
'2xl': 24,
|
|
11
|
+
'3xl': 30,
|
|
12
|
+
'4xl': 36
|
|
13
|
+
},
|
|
14
|
+
fontWeight: {
|
|
15
|
+
normal: '400',
|
|
16
|
+
medium: '500',
|
|
17
|
+
semibold: '600',
|
|
18
|
+
bold: '700'
|
|
19
|
+
},
|
|
20
|
+
lineHeight: {
|
|
21
|
+
tight: 1.2,
|
|
22
|
+
normal: 1.4,
|
|
23
|
+
relaxed: 1.6
|
|
24
|
+
},
|
|
25
|
+
letterSpacing: {
|
|
26
|
+
tight: -0.2,
|
|
27
|
+
normal: 0,
|
|
28
|
+
wide: 0.4
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
const spacing = {
|
|
32
|
+
none: 0,
|
|
33
|
+
xxs: 2,
|
|
34
|
+
xs: 4,
|
|
35
|
+
sm: 8,
|
|
36
|
+
md: 12,
|
|
37
|
+
lg: 16,
|
|
38
|
+
xl: 24,
|
|
39
|
+
'2xl': 32,
|
|
40
|
+
'3xl': 48,
|
|
41
|
+
'4xl': 64
|
|
42
|
+
};
|
|
43
|
+
const radius = {
|
|
44
|
+
none: 0,
|
|
45
|
+
xs: 4,
|
|
46
|
+
sm: 6,
|
|
47
|
+
md: 10,
|
|
48
|
+
lg: 14,
|
|
49
|
+
xl: 20,
|
|
50
|
+
'2xl': 28,
|
|
51
|
+
full: 9999
|
|
52
|
+
};
|
|
53
|
+
const motion = {
|
|
54
|
+
duration: {
|
|
55
|
+
instant: 80,
|
|
56
|
+
fast: 160,
|
|
57
|
+
normal: 240,
|
|
58
|
+
slow: 360,
|
|
59
|
+
slower: 500
|
|
60
|
+
},
|
|
61
|
+
easing: {
|
|
62
|
+
standard: [0.4, 0.0, 0.2, 1],
|
|
63
|
+
accelerate: [0.4, 0.0, 1, 1],
|
|
64
|
+
decelerate: [0.0, 0.0, 0.2, 1],
|
|
65
|
+
sharp: [0.4, 0.0, 0.6, 1]
|
|
66
|
+
},
|
|
67
|
+
spring: {
|
|
68
|
+
gentle: {
|
|
69
|
+
damping: 18,
|
|
70
|
+
stiffness: 140,
|
|
71
|
+
mass: 1
|
|
72
|
+
},
|
|
73
|
+
bouncy: {
|
|
74
|
+
damping: 12,
|
|
75
|
+
stiffness: 200,
|
|
76
|
+
mass: 1
|
|
77
|
+
},
|
|
78
|
+
snappy: {
|
|
79
|
+
damping: 22,
|
|
80
|
+
stiffness: 260,
|
|
81
|
+
mass: 1
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
const lightShadows = {
|
|
86
|
+
none: {},
|
|
87
|
+
xs: {
|
|
88
|
+
shadowColor: '#000',
|
|
89
|
+
shadowOffset: {
|
|
90
|
+
width: 0,
|
|
91
|
+
height: 1
|
|
92
|
+
},
|
|
93
|
+
shadowOpacity: 0.04,
|
|
94
|
+
shadowRadius: 2,
|
|
95
|
+
elevation: 1
|
|
96
|
+
},
|
|
97
|
+
sm: {
|
|
98
|
+
shadowColor: '#000',
|
|
99
|
+
shadowOffset: {
|
|
100
|
+
width: 0,
|
|
101
|
+
height: 2
|
|
102
|
+
},
|
|
103
|
+
shadowOpacity: 0.06,
|
|
104
|
+
shadowRadius: 4,
|
|
105
|
+
elevation: 2
|
|
106
|
+
},
|
|
107
|
+
md: {
|
|
108
|
+
shadowColor: '#000',
|
|
109
|
+
shadowOffset: {
|
|
110
|
+
width: 0,
|
|
111
|
+
height: 4
|
|
112
|
+
},
|
|
113
|
+
shadowOpacity: 0.08,
|
|
114
|
+
shadowRadius: 8,
|
|
115
|
+
elevation: 4
|
|
116
|
+
},
|
|
117
|
+
lg: {
|
|
118
|
+
shadowColor: '#000',
|
|
119
|
+
shadowOffset: {
|
|
120
|
+
width: 0,
|
|
121
|
+
height: 8
|
|
122
|
+
},
|
|
123
|
+
shadowOpacity: 0.1,
|
|
124
|
+
shadowRadius: 16,
|
|
125
|
+
elevation: 8
|
|
126
|
+
},
|
|
127
|
+
xl: {
|
|
128
|
+
shadowColor: '#000',
|
|
129
|
+
shadowOffset: {
|
|
130
|
+
width: 0,
|
|
131
|
+
height: 12
|
|
132
|
+
},
|
|
133
|
+
shadowOpacity: 0.14,
|
|
134
|
+
shadowRadius: 24,
|
|
135
|
+
elevation: 12
|
|
136
|
+
},
|
|
137
|
+
'2xl': {
|
|
138
|
+
shadowColor: '#000',
|
|
139
|
+
shadowOffset: {
|
|
140
|
+
width: 0,
|
|
141
|
+
height: 20
|
|
142
|
+
},
|
|
143
|
+
shadowOpacity: 0.18,
|
|
144
|
+
shadowRadius: 32,
|
|
145
|
+
elevation: 20
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
const darkShadows = {
|
|
149
|
+
none: {},
|
|
150
|
+
xs: {
|
|
151
|
+
shadowColor: '#000',
|
|
152
|
+
shadowOffset: {
|
|
153
|
+
width: 0,
|
|
154
|
+
height: 1
|
|
155
|
+
},
|
|
156
|
+
shadowOpacity: 0.3,
|
|
157
|
+
shadowRadius: 2,
|
|
158
|
+
elevation: 1
|
|
159
|
+
},
|
|
160
|
+
sm: {
|
|
161
|
+
shadowColor: '#000',
|
|
162
|
+
shadowOffset: {
|
|
163
|
+
width: 0,
|
|
164
|
+
height: 2
|
|
165
|
+
},
|
|
166
|
+
shadowOpacity: 0.4,
|
|
167
|
+
shadowRadius: 4,
|
|
168
|
+
elevation: 2
|
|
169
|
+
},
|
|
170
|
+
md: {
|
|
171
|
+
shadowColor: '#000',
|
|
172
|
+
shadowOffset: {
|
|
173
|
+
width: 0,
|
|
174
|
+
height: 4
|
|
175
|
+
},
|
|
176
|
+
shadowOpacity: 0.5,
|
|
177
|
+
shadowRadius: 8,
|
|
178
|
+
elevation: 4
|
|
179
|
+
},
|
|
180
|
+
lg: {
|
|
181
|
+
shadowColor: '#000',
|
|
182
|
+
shadowOffset: {
|
|
183
|
+
width: 0,
|
|
184
|
+
height: 8
|
|
185
|
+
},
|
|
186
|
+
shadowOpacity: 0.55,
|
|
187
|
+
shadowRadius: 16,
|
|
188
|
+
elevation: 8
|
|
189
|
+
},
|
|
190
|
+
xl: {
|
|
191
|
+
shadowColor: '#000',
|
|
192
|
+
shadowOffset: {
|
|
193
|
+
width: 0,
|
|
194
|
+
height: 12
|
|
195
|
+
},
|
|
196
|
+
shadowOpacity: 0.6,
|
|
197
|
+
shadowRadius: 24,
|
|
198
|
+
elevation: 12
|
|
199
|
+
},
|
|
200
|
+
'2xl': {
|
|
201
|
+
shadowColor: '#000',
|
|
202
|
+
shadowOffset: {
|
|
203
|
+
width: 0,
|
|
204
|
+
height: 20
|
|
205
|
+
},
|
|
206
|
+
shadowOpacity: 0.7,
|
|
207
|
+
shadowRadius: 32,
|
|
208
|
+
elevation: 20
|
|
209
|
+
}
|
|
210
|
+
};
|
|
211
|
+
export const lightTheme = {
|
|
212
|
+
mode: 'light',
|
|
213
|
+
colors: {
|
|
214
|
+
primary: '#5B5BD6',
|
|
215
|
+
primaryHover: '#4F4FBF',
|
|
216
|
+
primaryPressed: '#4040A8',
|
|
217
|
+
primaryMuted: '#EEEEFC',
|
|
218
|
+
secondary: '#F4F4F8',
|
|
219
|
+
secondaryHover: '#E9E9F0',
|
|
220
|
+
success: '#1FAD66',
|
|
221
|
+
warning: '#F59E0B',
|
|
222
|
+
error: '#E5484D',
|
|
223
|
+
info: '#3B82F6',
|
|
224
|
+
text: {
|
|
225
|
+
primary: '#0F0F1A',
|
|
226
|
+
secondary: '#52525B',
|
|
227
|
+
tertiary: '#8B8B95',
|
|
228
|
+
inverse: '#FFFFFF',
|
|
229
|
+
disabled: '#B4B4BB',
|
|
230
|
+
link: '#5B5BD6'
|
|
231
|
+
},
|
|
232
|
+
background: {
|
|
233
|
+
primary: '#FFFFFF',
|
|
234
|
+
secondary: '#F8F8FB',
|
|
235
|
+
tertiary: '#F1F1F5',
|
|
236
|
+
elevated: '#FFFFFF',
|
|
237
|
+
overlay: 'rgba(15, 15, 26, 0.5)',
|
|
238
|
+
inverse: '#0F0F1A'
|
|
239
|
+
},
|
|
240
|
+
border: {
|
|
241
|
+
primary: '#E5E5EC',
|
|
242
|
+
secondary: '#EFEFF3',
|
|
243
|
+
focus: '#5B5BD6',
|
|
244
|
+
error: '#E5484D'
|
|
245
|
+
},
|
|
246
|
+
surface: {
|
|
247
|
+
pressed: 'rgba(15, 15, 26, 0.06)',
|
|
248
|
+
hovered: 'rgba(15, 15, 26, 0.04)',
|
|
249
|
+
selected: 'rgba(91, 91, 214, 0.1)',
|
|
250
|
+
disabled: '#F1F1F5'
|
|
251
|
+
},
|
|
252
|
+
skeleton: {
|
|
253
|
+
background: '#EBEDF3',
|
|
254
|
+
highlight: '#F5F6FA'
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
typography,
|
|
258
|
+
spacing,
|
|
259
|
+
radius,
|
|
260
|
+
shadows: lightShadows,
|
|
261
|
+
motion
|
|
262
|
+
};
|
|
263
|
+
export const darkTheme = {
|
|
264
|
+
mode: 'dark',
|
|
265
|
+
colors: {
|
|
266
|
+
primary: '#7C7CE8',
|
|
267
|
+
primaryHover: '#9292EE',
|
|
268
|
+
primaryPressed: '#A8A8F2',
|
|
269
|
+
primaryMuted: '#1F1F3D',
|
|
270
|
+
secondary: '#1F1F26',
|
|
271
|
+
secondaryHover: '#2A2A33',
|
|
272
|
+
success: '#30C780',
|
|
273
|
+
warning: '#FBBF24',
|
|
274
|
+
error: '#F87171',
|
|
275
|
+
info: '#60A5FA',
|
|
276
|
+
text: {
|
|
277
|
+
primary: '#FAFAFA',
|
|
278
|
+
secondary: '#B4B4BB',
|
|
279
|
+
tertiary: '#71717A',
|
|
280
|
+
inverse: '#0F0F1A',
|
|
281
|
+
disabled: '#52525B',
|
|
282
|
+
link: '#9292EE'
|
|
283
|
+
},
|
|
284
|
+
background: {
|
|
285
|
+
primary: '#0B0B12',
|
|
286
|
+
secondary: '#13131C',
|
|
287
|
+
tertiary: '#1C1C26',
|
|
288
|
+
elevated: '#1C1C26',
|
|
289
|
+
overlay: 'rgba(0, 0, 0, 0.65)',
|
|
290
|
+
inverse: '#FAFAFA'
|
|
291
|
+
},
|
|
292
|
+
border: {
|
|
293
|
+
primary: '#27272F',
|
|
294
|
+
secondary: '#1C1C26',
|
|
295
|
+
focus: '#7C7CE8',
|
|
296
|
+
error: '#F87171'
|
|
297
|
+
},
|
|
298
|
+
surface: {
|
|
299
|
+
pressed: 'rgba(255, 255, 255, 0.08)',
|
|
300
|
+
hovered: 'rgba(255, 255, 255, 0.05)',
|
|
301
|
+
selected: 'rgba(124, 124, 232, 0.18)',
|
|
302
|
+
disabled: '#1C1C26'
|
|
303
|
+
},
|
|
304
|
+
skeleton: {
|
|
305
|
+
background: '#1C1C26',
|
|
306
|
+
highlight: '#27272F'
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
typography,
|
|
310
|
+
spacing,
|
|
311
|
+
radius,
|
|
312
|
+
shadows: darkShadows,
|
|
313
|
+
motion
|
|
314
|
+
};
|
|
315
|
+
//# sourceMappingURL=tokens.js.map
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { Platform, Vibration } from 'react-native';
|
|
4
|
+
let hapticImpl = null;
|
|
5
|
+
const tryLoadOptional = () => {
|
|
6
|
+
if (hapticImpl) return;
|
|
7
|
+
try {
|
|
8
|
+
// Lazily try to load the user's optional haptic dep without making it a hard requirement.
|
|
9
|
+
/* eslint-disable @typescript-eslint/no-require-imports */
|
|
10
|
+
const haptic = require('react-native-haptic-feedback');
|
|
11
|
+
const trigger = haptic.default?.trigger ?? haptic.trigger;
|
|
12
|
+
if (typeof trigger === 'function') {
|
|
13
|
+
hapticImpl = type => trigger(type, {
|
|
14
|
+
enableVibrateFallback: true
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
/* eslint-enable */
|
|
18
|
+
} catch {
|
|
19
|
+
// Ignored: not installed; fall back to Vibration on Android, no-op on iOS.
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
const fallback = type => {
|
|
23
|
+
if (Platform.OS === 'android') {
|
|
24
|
+
const map = {
|
|
25
|
+
selection: 5,
|
|
26
|
+
impactLight: 10,
|
|
27
|
+
impactMedium: 20,
|
|
28
|
+
impactHeavy: 30,
|
|
29
|
+
notificationSuccess: 15,
|
|
30
|
+
notificationWarning: 25,
|
|
31
|
+
notificationError: 40
|
|
32
|
+
};
|
|
33
|
+
Vibration.vibrate(map[type] ?? 10);
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
export const triggerHaptic = (type = 'selection') => {
|
|
37
|
+
tryLoadOptional();
|
|
38
|
+
if (hapticImpl) {
|
|
39
|
+
try {
|
|
40
|
+
hapticImpl(type);
|
|
41
|
+
return;
|
|
42
|
+
} catch {
|
|
43
|
+
/* ignore */
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
fallback(type);
|
|
47
|
+
};
|
|
48
|
+
export const setHapticImplementation = impl => {
|
|
49
|
+
hapticImpl = impl;
|
|
50
|
+
};
|
|
51
|
+
//# sourceMappingURL=hapticUtils.js.map
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { Logger } from "../logger/index.js";
|
|
4
|
+
let compressor = null;
|
|
5
|
+
let resolved = false;
|
|
6
|
+
const resolveCompressor = () => {
|
|
7
|
+
if (resolved) return compressor;
|
|
8
|
+
resolved = true;
|
|
9
|
+
try {
|
|
10
|
+
/* eslint-disable @typescript-eslint/no-require-imports */
|
|
11
|
+
compressor = require('react-native-compressor');
|
|
12
|
+
/* eslint-enable */
|
|
13
|
+
} catch {
|
|
14
|
+
Logger.warn('[imageCompression] react-native-compressor is not installed; ' + 'compressImage() will return the original URI unchanged.');
|
|
15
|
+
compressor = null;
|
|
16
|
+
}
|
|
17
|
+
return compressor;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Compress an image referenced by a URI. Returns a new URI on success, or the
|
|
22
|
+
* original URI on failure / when the optional `react-native-compressor`
|
|
23
|
+
* dependency is missing — so callers can rely on always getting a usable URI.
|
|
24
|
+
*/
|
|
25
|
+
export const compressImage = async (uri, options = {}) => {
|
|
26
|
+
const lib = resolveCompressor();
|
|
27
|
+
if (!lib || !uri) return uri;
|
|
28
|
+
const {
|
|
29
|
+
maxSize = 1600,
|
|
30
|
+
quality = 0.7,
|
|
31
|
+
output = 'jpg'
|
|
32
|
+
} = options;
|
|
33
|
+
try {
|
|
34
|
+
return await lib.Image.compress(uri, {
|
|
35
|
+
maxWidth: maxSize,
|
|
36
|
+
maxHeight: maxSize,
|
|
37
|
+
quality,
|
|
38
|
+
compressionMethod: 'auto',
|
|
39
|
+
output
|
|
40
|
+
});
|
|
41
|
+
} catch (error) {
|
|
42
|
+
Logger.error('[imageCompression] compressImage failed; returning original URI', error);
|
|
43
|
+
return uri;
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
//# sourceMappingURL=imageCompression.js.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export { ScreenDimensions, Breakpoints, Responsive, isScreenSize, isTablet } from "./responsive.js";
|
|
4
|
+
export { Spacing, Padding, Margin } from "./spacing.js";
|
|
5
|
+
export { triggerHaptic, setHapticImplementation } from "./hapticUtils.js";
|
|
6
|
+
export { shadowStyle } from "./shadows.js";
|
|
7
|
+
export { compressImage } from "./imageCompression.js";
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { Dimensions, PixelRatio, Platform } from 'react-native';
|
|
4
|
+
const BASE_WIDTH = 390;
|
|
5
|
+
const BASE_HEIGHT = 844;
|
|
6
|
+
const {
|
|
7
|
+
width: SCREEN_WIDTH,
|
|
8
|
+
height: SCREEN_HEIGHT
|
|
9
|
+
} = Dimensions.get('window');
|
|
10
|
+
export const ScreenDimensions = {
|
|
11
|
+
width: SCREEN_WIDTH,
|
|
12
|
+
height: SCREEN_HEIGHT,
|
|
13
|
+
pixelRatio: PixelRatio.get(),
|
|
14
|
+
fontScale: PixelRatio.getFontScale()
|
|
15
|
+
};
|
|
16
|
+
export const Breakpoints = {
|
|
17
|
+
xs: 0,
|
|
18
|
+
sm: 360,
|
|
19
|
+
md: 414,
|
|
20
|
+
lg: 768,
|
|
21
|
+
xl: 1024
|
|
22
|
+
};
|
|
23
|
+
export const isScreenSize = size => {
|
|
24
|
+
return SCREEN_WIDTH >= Breakpoints[size];
|
|
25
|
+
};
|
|
26
|
+
export const isTablet = () => SCREEN_WIDTH >= Breakpoints.lg;
|
|
27
|
+
const widthScale = SCREEN_WIDTH / BASE_WIDTH;
|
|
28
|
+
const heightScale = SCREEN_HEIGHT / BASE_HEIGHT;
|
|
29
|
+
const minScale = Math.min(widthScale, heightScale);
|
|
30
|
+
export const Responsive = {
|
|
31
|
+
width: size => Math.round(size * widthScale),
|
|
32
|
+
height: size => Math.round(size * heightScale),
|
|
33
|
+
size: size => Math.round(size * minScale),
|
|
34
|
+
font: size => {
|
|
35
|
+
const scaled = size * minScale;
|
|
36
|
+
if (Platform.OS === 'ios') {
|
|
37
|
+
return Math.round(PixelRatio.roundToNearestPixel(scaled));
|
|
38
|
+
}
|
|
39
|
+
return Math.round(PixelRatio.roundToNearestPixel(scaled)) - 1;
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=responsive.js.map
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { getTheme } from "../theme/index.js";
|
|
4
|
+
export const Spacing = {
|
|
5
|
+
get none() {
|
|
6
|
+
return getTheme().spacing.none;
|
|
7
|
+
},
|
|
8
|
+
get xxs() {
|
|
9
|
+
return getTheme().spacing.xxs;
|
|
10
|
+
},
|
|
11
|
+
get xs() {
|
|
12
|
+
return getTheme().spacing.xs;
|
|
13
|
+
},
|
|
14
|
+
get sm() {
|
|
15
|
+
return getTheme().spacing.sm;
|
|
16
|
+
},
|
|
17
|
+
get md() {
|
|
18
|
+
return getTheme().spacing.md;
|
|
19
|
+
},
|
|
20
|
+
get lg() {
|
|
21
|
+
return getTheme().spacing.lg;
|
|
22
|
+
},
|
|
23
|
+
get xl() {
|
|
24
|
+
return getTheme().spacing.xl;
|
|
25
|
+
},
|
|
26
|
+
get '2xl'() {
|
|
27
|
+
return getTheme().spacing['2xl'];
|
|
28
|
+
},
|
|
29
|
+
get '3xl'() {
|
|
30
|
+
return getTheme().spacing['3xl'];
|
|
31
|
+
},
|
|
32
|
+
get '4xl'() {
|
|
33
|
+
return getTheme().spacing['4xl'];
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
export const Padding = {
|
|
37
|
+
all: token => ({
|
|
38
|
+
padding: getTheme().spacing[token]
|
|
39
|
+
}),
|
|
40
|
+
horizontal: token => ({
|
|
41
|
+
paddingHorizontal: getTheme().spacing[token]
|
|
42
|
+
}),
|
|
43
|
+
vertical: token => ({
|
|
44
|
+
paddingVertical: getTheme().spacing[token]
|
|
45
|
+
}),
|
|
46
|
+
top: token => ({
|
|
47
|
+
paddingTop: getTheme().spacing[token]
|
|
48
|
+
}),
|
|
49
|
+
bottom: token => ({
|
|
50
|
+
paddingBottom: getTheme().spacing[token]
|
|
51
|
+
}),
|
|
52
|
+
left: token => ({
|
|
53
|
+
paddingLeft: getTheme().spacing[token]
|
|
54
|
+
}),
|
|
55
|
+
right: token => ({
|
|
56
|
+
paddingRight: getTheme().spacing[token]
|
|
57
|
+
})
|
|
58
|
+
};
|
|
59
|
+
export const Margin = {
|
|
60
|
+
all: token => ({
|
|
61
|
+
margin: getTheme().spacing[token]
|
|
62
|
+
}),
|
|
63
|
+
horizontal: token => ({
|
|
64
|
+
marginHorizontal: getTheme().spacing[token]
|
|
65
|
+
}),
|
|
66
|
+
vertical: token => ({
|
|
67
|
+
marginVertical: getTheme().spacing[token]
|
|
68
|
+
}),
|
|
69
|
+
top: token => ({
|
|
70
|
+
marginTop: getTheme().spacing[token]
|
|
71
|
+
}),
|
|
72
|
+
bottom: token => ({
|
|
73
|
+
marginBottom: getTheme().spacing[token]
|
|
74
|
+
}),
|
|
75
|
+
left: token => ({
|
|
76
|
+
marginLeft: getTheme().spacing[token]
|
|
77
|
+
}),
|
|
78
|
+
right: token => ({
|
|
79
|
+
marginRight: getTheme().spacing[token]
|
|
80
|
+
})
|
|
81
|
+
};
|
|
82
|
+
//# sourceMappingURL=spacing.js.map
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Generic validators returning `boolean`. All accept `null`/`undefined` safely.
|
|
5
|
+
*
|
|
6
|
+
* Tradeoff: regexes are pragmatic, not RFC-strict. They reject the things real users
|
|
7
|
+
* typo and accept the long tail of legitimate inputs. For RFC-grade validation use
|
|
8
|
+
* a dedicated library at the boundary.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
const RE_EMAIL = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
|
12
|
+
const RE_INDIAN_MOBILE = /^[6-9]\d{9}$/;
|
|
13
|
+
const RE_NUMERIC = /^-?\d+(?:\.\d+)?$/;
|
|
14
|
+
const RE_INTEGER = /^-?\d+$/;
|
|
15
|
+
const RE_ALPHANUMERIC = /^[a-zA-Z0-9]+$/;
|
|
16
|
+
const RE_PINCODE_IN = /^[1-9]\d{5}$/;
|
|
17
|
+
const RE_PAN = /^[A-Z]{5}\d{4}[A-Z]$/;
|
|
18
|
+
const RE_GSTIN = /^\d{2}[A-Z]{5}\d{4}[A-Z][1-9A-Z]Z[0-9A-Z]$/;
|
|
19
|
+
const RE_AADHAAR = /^\d{12}$/;
|
|
20
|
+
const RE_IFSC = /^[A-Z]{4}0[A-Z0-9]{6}$/;
|
|
21
|
+
const RE_HEX_COLOR = /^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/;
|
|
22
|
+
const asString = v => {
|
|
23
|
+
if (typeof v === 'string') return v.trim();
|
|
24
|
+
return null;
|
|
25
|
+
};
|
|
26
|
+
export const isNonEmpty = value => {
|
|
27
|
+
const s = asString(value);
|
|
28
|
+
return !!s && s.length > 0;
|
|
29
|
+
};
|
|
30
|
+
export const isEmail = value => {
|
|
31
|
+
const s = asString(value);
|
|
32
|
+
return !!s && RE_EMAIL.test(s);
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Validate an Indian mobile number. Accepts:
|
|
37
|
+
* - 10-digit number starting with 6-9
|
|
38
|
+
* - Optional `+91` or `91` country code prefix
|
|
39
|
+
*/
|
|
40
|
+
export const isIndianMobile = value => {
|
|
41
|
+
const s = asString(value);
|
|
42
|
+
if (!s) return false;
|
|
43
|
+
const digits = s.replace(/\D/g, '');
|
|
44
|
+
const tail = digits.startsWith('91') && digits.length === 12 ? digits.slice(2) : digits;
|
|
45
|
+
return RE_INDIAN_MOBILE.test(tail);
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Generic phone validator: 7–15 digits, optional `+` prefix.
|
|
50
|
+
* Use `isIndianMobile` when you specifically need an Indian mobile number.
|
|
51
|
+
*/
|
|
52
|
+
export const isPhone = value => {
|
|
53
|
+
const s = asString(value);
|
|
54
|
+
if (!s) return false;
|
|
55
|
+
const digits = s.replace(/[^\d+]/g, '').replace(/^\+/, '');
|
|
56
|
+
return digits.length >= 7 && digits.length <= 15 && /^\d+$/.test(digits);
|
|
57
|
+
};
|
|
58
|
+
export const isUrl = value => {
|
|
59
|
+
const s = asString(value);
|
|
60
|
+
if (!s) return false;
|
|
61
|
+
try {
|
|
62
|
+
// URL constructor is available on Hermes & JSC.
|
|
63
|
+
|
|
64
|
+
new URL(s);
|
|
65
|
+
return /^https?:\/\//i.test(s) || /^[a-z][a-z0-9+\-.]*:\/\//i.test(s);
|
|
66
|
+
} catch {
|
|
67
|
+
return false;
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
export const isNumeric = value => {
|
|
71
|
+
if (typeof value === 'number') return Number.isFinite(value);
|
|
72
|
+
const s = asString(value);
|
|
73
|
+
return !!s && RE_NUMERIC.test(s);
|
|
74
|
+
};
|
|
75
|
+
export const isInteger = value => {
|
|
76
|
+
if (typeof value === 'number') return Number.isInteger(value);
|
|
77
|
+
const s = asString(value);
|
|
78
|
+
return !!s && RE_INTEGER.test(s);
|
|
79
|
+
};
|
|
80
|
+
export const isAlphanumeric = value => {
|
|
81
|
+
const s = asString(value);
|
|
82
|
+
return !!s && RE_ALPHANUMERIC.test(s);
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* Common password complexity check. Defaults to 8+ chars,
|
|
86
|
+
* one uppercase, one lowercase, one digit.
|
|
87
|
+
*/
|
|
88
|
+
export const isStrongPassword = (value, rules = {}) => {
|
|
89
|
+
if (typeof value !== 'string') return false;
|
|
90
|
+
const {
|
|
91
|
+
minLength = 8,
|
|
92
|
+
requireUppercase = true,
|
|
93
|
+
requireLowercase = true,
|
|
94
|
+
requireNumber = true,
|
|
95
|
+
requireSymbol = false
|
|
96
|
+
} = rules;
|
|
97
|
+
if (value.length < minLength) return false;
|
|
98
|
+
if (requireUppercase && !/[A-Z]/.test(value)) return false;
|
|
99
|
+
if (requireLowercase && !/[a-z]/.test(value)) return false;
|
|
100
|
+
if (requireNumber && !/\d/.test(value)) return false;
|
|
101
|
+
if (requireSymbol && !/[^A-Za-z0-9]/.test(value)) return false;
|
|
102
|
+
return true;
|
|
103
|
+
};
|
|
104
|
+
export const isIndianPincode = value => {
|
|
105
|
+
const s = asString(value);
|
|
106
|
+
return !!s && RE_PINCODE_IN.test(s);
|
|
107
|
+
};
|
|
108
|
+
export const isPan = value => {
|
|
109
|
+
const s = asString(value);
|
|
110
|
+
return !!s && RE_PAN.test(s.toUpperCase());
|
|
111
|
+
};
|
|
112
|
+
export const isGstin = value => {
|
|
113
|
+
const s = asString(value);
|
|
114
|
+
return !!s && RE_GSTIN.test(s.toUpperCase());
|
|
115
|
+
};
|
|
116
|
+
export const isAadhaar = value => {
|
|
117
|
+
const s = asString(value);
|
|
118
|
+
if (!s) return false;
|
|
119
|
+
const digits = s.replace(/\s/g, '');
|
|
120
|
+
return RE_AADHAAR.test(digits);
|
|
121
|
+
};
|
|
122
|
+
export const isIfsc = value => {
|
|
123
|
+
const s = asString(value);
|
|
124
|
+
return !!s && RE_IFSC.test(s.toUpperCase());
|
|
125
|
+
};
|
|
126
|
+
export const isHexColor = value => {
|
|
127
|
+
const s = asString(value);
|
|
128
|
+
return !!s && RE_HEX_COLOR.test(s);
|
|
129
|
+
};
|
|
130
|
+
export const isBetween = (value, min, max, inclusive = true) => {
|
|
131
|
+
const n = typeof value === 'number' ? value : Number(asString(value));
|
|
132
|
+
if (!Number.isFinite(n)) return false;
|
|
133
|
+
return inclusive ? n >= min && n <= max : n > min && n < max;
|
|
134
|
+
};
|
|
135
|
+
export const minLength = (value, length) => {
|
|
136
|
+
const s = asString(value);
|
|
137
|
+
return !!s && s.length >= length;
|
|
138
|
+
};
|
|
139
|
+
export const maxLength = (value, length) => {
|
|
140
|
+
const s = asString(value);
|
|
141
|
+
return s == null ? true : s.length <= length;
|
|
142
|
+
};
|
|
143
|
+
//# sourceMappingURL=index.js.map
|