@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,210 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { useCallback, useMemo } from 'react';
|
|
4
|
+
import { ActivityIndicator, Pressable, StyleSheet, Text, View } from 'react-native';
|
|
5
|
+
import { useTheme } from "../../theme/index.js";
|
|
6
|
+
import { triggerHaptic } from "../../utils/hapticUtils.js";
|
|
7
|
+
import { Modal } from "../Modal/Modal.js";
|
|
8
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
const Dialog = props => {
|
|
10
|
+
const {
|
|
11
|
+
visible,
|
|
12
|
+
onClose,
|
|
13
|
+
title,
|
|
14
|
+
message,
|
|
15
|
+
icon,
|
|
16
|
+
variant = 'default',
|
|
17
|
+
actions,
|
|
18
|
+
dismissOnAction = true,
|
|
19
|
+
accessibilityLabel,
|
|
20
|
+
testID
|
|
21
|
+
} = props;
|
|
22
|
+
const theme = useTheme();
|
|
23
|
+
const styles = useMemo(() => buildStyles(theme), [theme]);
|
|
24
|
+
const variantTint = useMemo(() => tintForVariant(theme, variant), [theme, variant]);
|
|
25
|
+
const handleAction = useCallback(action => {
|
|
26
|
+
if (action.loading) return;
|
|
27
|
+
triggerHaptic('selection');
|
|
28
|
+
action.onPress();
|
|
29
|
+
if (dismissOnAction) {
|
|
30
|
+
onClose();
|
|
31
|
+
}
|
|
32
|
+
}, [dismissOnAction, onClose]);
|
|
33
|
+
return /*#__PURE__*/_jsx(Modal, {
|
|
34
|
+
visible: visible,
|
|
35
|
+
onRequestClose: onClose,
|
|
36
|
+
presentation: "centered",
|
|
37
|
+
accessibilityLabel: accessibilityLabel ?? title,
|
|
38
|
+
testID: testID,
|
|
39
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
40
|
+
accessibilityRole: 'alertdialog',
|
|
41
|
+
accessibilityLabel: accessibilityLabel ?? title,
|
|
42
|
+
style: styles.container,
|
|
43
|
+
children: [icon ? /*#__PURE__*/_jsx(View, {
|
|
44
|
+
style: [styles.iconWrapper, {
|
|
45
|
+
backgroundColor: variantTint.muted,
|
|
46
|
+
marginBottom: theme.spacing.md
|
|
47
|
+
}],
|
|
48
|
+
children: icon
|
|
49
|
+
}) : null, title ? /*#__PURE__*/_jsx(Text, {
|
|
50
|
+
style: [styles.title, {
|
|
51
|
+
color: theme.colors.text.primary,
|
|
52
|
+
fontSize: theme.typography.fontSize.xl,
|
|
53
|
+
fontWeight: theme.typography.fontWeight.semibold,
|
|
54
|
+
marginBottom: message ? theme.spacing.sm : theme.spacing.md
|
|
55
|
+
}],
|
|
56
|
+
accessibilityRole: "header",
|
|
57
|
+
children: title
|
|
58
|
+
}) : null, typeof message === 'string' ? /*#__PURE__*/_jsx(Text, {
|
|
59
|
+
style: [styles.message, {
|
|
60
|
+
color: theme.colors.text.secondary,
|
|
61
|
+
fontSize: theme.typography.fontSize.base,
|
|
62
|
+
lineHeight: theme.typography.fontSize.base * theme.typography.lineHeight.normal,
|
|
63
|
+
marginBottom: actions && actions.length > 0 ? theme.spacing.lg : 0
|
|
64
|
+
}],
|
|
65
|
+
children: message
|
|
66
|
+
}) : message ? /*#__PURE__*/_jsx(View, {
|
|
67
|
+
style: {
|
|
68
|
+
marginBottom: actions && actions.length > 0 ? theme.spacing.lg : 0
|
|
69
|
+
},
|
|
70
|
+
children: message
|
|
71
|
+
}) : null, actions && actions.length > 0 ? /*#__PURE__*/_jsx(View, {
|
|
72
|
+
style: styles.actionsRow,
|
|
73
|
+
children: actions.map((action, index) => {
|
|
74
|
+
const tone = action.tone ?? 'primary';
|
|
75
|
+
const buttonStyle = actionStyleFor(theme, tone, variant);
|
|
76
|
+
const isLast = index === actions.length - 1;
|
|
77
|
+
return /*#__PURE__*/_jsx(Pressable, {
|
|
78
|
+
onPress: () => handleAction(action),
|
|
79
|
+
disabled: action.loading,
|
|
80
|
+
accessibilityRole: "button",
|
|
81
|
+
accessibilityLabel: action.label,
|
|
82
|
+
accessibilityState: {
|
|
83
|
+
busy: action.loading,
|
|
84
|
+
disabled: action.loading
|
|
85
|
+
},
|
|
86
|
+
style: ({
|
|
87
|
+
pressed
|
|
88
|
+
}) => [styles.actionButton, {
|
|
89
|
+
backgroundColor: buttonStyle.backgroundColor,
|
|
90
|
+
borderColor: buttonStyle.borderColor,
|
|
91
|
+
borderWidth: buttonStyle.borderWidth,
|
|
92
|
+
borderRadius: theme.radius.md,
|
|
93
|
+
paddingVertical: theme.spacing.md - 2,
|
|
94
|
+
paddingHorizontal: theme.spacing.lg,
|
|
95
|
+
marginRight: isLast ? 0 : theme.spacing.sm,
|
|
96
|
+
opacity: action.loading ? 0.7 : pressed ? 0.85 : 1
|
|
97
|
+
}],
|
|
98
|
+
children: action.loading ? /*#__PURE__*/_jsx(ActivityIndicator, {
|
|
99
|
+
size: "small",
|
|
100
|
+
color: buttonStyle.textColor
|
|
101
|
+
}) : /*#__PURE__*/_jsx(Text, {
|
|
102
|
+
style: {
|
|
103
|
+
color: buttonStyle.textColor,
|
|
104
|
+
fontSize: theme.typography.fontSize.base,
|
|
105
|
+
fontWeight: theme.typography.fontWeight.semibold,
|
|
106
|
+
textAlign: 'center'
|
|
107
|
+
},
|
|
108
|
+
numberOfLines: 1,
|
|
109
|
+
children: action.label
|
|
110
|
+
})
|
|
111
|
+
}, `${action.label}-${index}`);
|
|
112
|
+
})
|
|
113
|
+
}) : null]
|
|
114
|
+
})
|
|
115
|
+
});
|
|
116
|
+
};
|
|
117
|
+
Dialog.displayName = 'Dialog';
|
|
118
|
+
const tintForVariant = (theme, variant) => {
|
|
119
|
+
switch (variant) {
|
|
120
|
+
case 'success':
|
|
121
|
+
return {
|
|
122
|
+
base: theme.colors.success,
|
|
123
|
+
muted: theme.colors.background.secondary
|
|
124
|
+
};
|
|
125
|
+
case 'warning':
|
|
126
|
+
return {
|
|
127
|
+
base: theme.colors.warning,
|
|
128
|
+
muted: theme.colors.background.secondary
|
|
129
|
+
};
|
|
130
|
+
case 'danger':
|
|
131
|
+
return {
|
|
132
|
+
base: theme.colors.error,
|
|
133
|
+
muted: theme.colors.background.secondary
|
|
134
|
+
};
|
|
135
|
+
case 'info':
|
|
136
|
+
return {
|
|
137
|
+
base: theme.colors.info,
|
|
138
|
+
muted: theme.colors.background.secondary
|
|
139
|
+
};
|
|
140
|
+
case 'default':
|
|
141
|
+
default:
|
|
142
|
+
return {
|
|
143
|
+
base: theme.colors.primary,
|
|
144
|
+
muted: theme.colors.primaryMuted
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
const actionStyleFor = (theme, tone, variant) => {
|
|
149
|
+
const variantBase = tintForVariant(theme, variant).base;
|
|
150
|
+
switch (tone) {
|
|
151
|
+
case 'primary':
|
|
152
|
+
{
|
|
153
|
+
const bg = variant === 'default' ? theme.colors.primary : variantBase;
|
|
154
|
+
return {
|
|
155
|
+
backgroundColor: bg,
|
|
156
|
+
borderColor: 'transparent',
|
|
157
|
+
borderWidth: 0,
|
|
158
|
+
textColor: theme.colors.text.inverse
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
case 'danger':
|
|
162
|
+
return {
|
|
163
|
+
backgroundColor: theme.colors.error,
|
|
164
|
+
borderColor: 'transparent',
|
|
165
|
+
borderWidth: 0,
|
|
166
|
+
textColor: theme.colors.text.inverse
|
|
167
|
+
};
|
|
168
|
+
case 'neutral':
|
|
169
|
+
default:
|
|
170
|
+
return {
|
|
171
|
+
backgroundColor: 'transparent',
|
|
172
|
+
borderColor: theme.colors.border.primary,
|
|
173
|
+
borderWidth: 1,
|
|
174
|
+
textColor: theme.colors.text.primary
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
const buildStyles = _theme => StyleSheet.create({
|
|
179
|
+
container: {
|
|
180
|
+
alignItems: 'stretch'
|
|
181
|
+
},
|
|
182
|
+
iconWrapper: {
|
|
183
|
+
width: 48,
|
|
184
|
+
height: 48,
|
|
185
|
+
borderRadius: 24,
|
|
186
|
+
alignItems: 'center',
|
|
187
|
+
justifyContent: 'center',
|
|
188
|
+
alignSelf: 'center'
|
|
189
|
+
},
|
|
190
|
+
title: {
|
|
191
|
+
textAlign: 'center'
|
|
192
|
+
},
|
|
193
|
+
message: {
|
|
194
|
+
textAlign: 'center'
|
|
195
|
+
},
|
|
196
|
+
actionsRow: {
|
|
197
|
+
flexDirection: 'row',
|
|
198
|
+
justifyContent: 'flex-end',
|
|
199
|
+
alignItems: 'center'
|
|
200
|
+
},
|
|
201
|
+
actionButton: {
|
|
202
|
+
flex: 1,
|
|
203
|
+
alignItems: 'center',
|
|
204
|
+
justifyContent: 'center',
|
|
205
|
+
minHeight: 44
|
|
206
|
+
}
|
|
207
|
+
});
|
|
208
|
+
export { Dialog };
|
|
209
|
+
export default Dialog;
|
|
210
|
+
//# sourceMappingURL=Dialog.js.map
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { forwardRef, useMemo } from 'react';
|
|
4
|
+
import { StyleSheet, Text, View } from 'react-native';
|
|
5
|
+
import { useTheme } from "../../theme/index.js";
|
|
6
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
+
const spacingFor = (theme, spacing) => {
|
|
8
|
+
switch (spacing) {
|
|
9
|
+
case 'sm':
|
|
10
|
+
return theme.spacing.sm;
|
|
11
|
+
case 'md':
|
|
12
|
+
return theme.spacing.md;
|
|
13
|
+
case 'lg':
|
|
14
|
+
return theme.spacing.lg;
|
|
15
|
+
case 'none':
|
|
16
|
+
default:
|
|
17
|
+
return 0;
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
const Divider = /*#__PURE__*/forwardRef((props, ref) => {
|
|
21
|
+
const {
|
|
22
|
+
orientation = 'horizontal',
|
|
23
|
+
thickness = 1,
|
|
24
|
+
color,
|
|
25
|
+
spacing = 'none',
|
|
26
|
+
inset = 0,
|
|
27
|
+
label,
|
|
28
|
+
labelPosition = 'center',
|
|
29
|
+
style,
|
|
30
|
+
testID
|
|
31
|
+
} = props;
|
|
32
|
+
const theme = useTheme();
|
|
33
|
+
const lineColor = color ?? theme.colors.border.primary;
|
|
34
|
+
const margin = spacingFor(theme, spacing);
|
|
35
|
+
const styles = useMemo(() => buildStyles(theme), [theme]);
|
|
36
|
+
if (orientation === 'vertical') {
|
|
37
|
+
return /*#__PURE__*/_jsx(View, {
|
|
38
|
+
ref: ref,
|
|
39
|
+
accessibilityRole: "none",
|
|
40
|
+
testID: testID,
|
|
41
|
+
style: [styles.vertical, {
|
|
42
|
+
width: thickness,
|
|
43
|
+
backgroundColor: lineColor,
|
|
44
|
+
marginHorizontal: margin,
|
|
45
|
+
marginTop: inset
|
|
46
|
+
}, style]
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
if (label) {
|
|
50
|
+
const startFlex = labelPosition === 'start' ? 0 : labelPosition === 'end' ? 1 : 1;
|
|
51
|
+
const endFlex = labelPosition === 'end' ? 0 : labelPosition === 'start' ? 1 : 1;
|
|
52
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
53
|
+
ref: ref,
|
|
54
|
+
accessibilityRole: "none",
|
|
55
|
+
testID: testID,
|
|
56
|
+
style: [styles.horizontalRow, {
|
|
57
|
+
marginVertical: margin,
|
|
58
|
+
marginLeft: inset
|
|
59
|
+
}, style],
|
|
60
|
+
children: [startFlex > 0 ? /*#__PURE__*/_jsx(View, {
|
|
61
|
+
style: [styles.horizontalLine, {
|
|
62
|
+
height: thickness,
|
|
63
|
+
backgroundColor: lineColor,
|
|
64
|
+
flex: startFlex
|
|
65
|
+
}]
|
|
66
|
+
}) : null, /*#__PURE__*/_jsx(Text, {
|
|
67
|
+
style: styles.label,
|
|
68
|
+
numberOfLines: 1,
|
|
69
|
+
children: label
|
|
70
|
+
}), endFlex > 0 ? /*#__PURE__*/_jsx(View, {
|
|
71
|
+
style: [styles.horizontalLine, {
|
|
72
|
+
height: thickness,
|
|
73
|
+
backgroundColor: lineColor,
|
|
74
|
+
flex: endFlex
|
|
75
|
+
}]
|
|
76
|
+
}) : null]
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
return /*#__PURE__*/_jsx(View, {
|
|
80
|
+
ref: ref,
|
|
81
|
+
accessibilityRole: "none",
|
|
82
|
+
testID: testID,
|
|
83
|
+
style: [styles.horizontalLine, {
|
|
84
|
+
height: thickness,
|
|
85
|
+
backgroundColor: lineColor,
|
|
86
|
+
marginVertical: margin,
|
|
87
|
+
marginLeft: inset
|
|
88
|
+
}, style]
|
|
89
|
+
});
|
|
90
|
+
});
|
|
91
|
+
Divider.displayName = 'Divider';
|
|
92
|
+
const buildStyles = theme => StyleSheet.create({
|
|
93
|
+
horizontalRow: {
|
|
94
|
+
flexDirection: 'row',
|
|
95
|
+
alignItems: 'center',
|
|
96
|
+
width: '100%'
|
|
97
|
+
},
|
|
98
|
+
horizontalLine: {
|
|
99
|
+
width: '100%',
|
|
100
|
+
alignSelf: 'stretch'
|
|
101
|
+
},
|
|
102
|
+
vertical: {
|
|
103
|
+
alignSelf: 'stretch'
|
|
104
|
+
},
|
|
105
|
+
label: {
|
|
106
|
+
marginHorizontal: theme.spacing.sm,
|
|
107
|
+
color: theme.colors.text.tertiary,
|
|
108
|
+
fontSize: theme.typography.fontSize.sm,
|
|
109
|
+
fontWeight: theme.typography.fontWeight.medium
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
export { Divider };
|
|
113
|
+
export default Divider;
|
|
114
|
+
//# sourceMappingURL=Divider.js.map
|
|
@@ -0,0 +1,340 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Drawer — slide-in side drawer (left / right / top / bottom).
|
|
5
|
+
*
|
|
6
|
+
* Built on Reanimated 3 + Gesture Handler 2 — gestures and animations run on the
|
|
7
|
+
* UI thread for buttery 60/120fps motion. Mirrors the BottomSheet ergonomics:
|
|
8
|
+
* imperative ref API, controlled/uncontrolled visibility, swipe-to-dismiss,
|
|
9
|
+
* tap-backdrop-to-dismiss, full a11y (modal dialog).
|
|
10
|
+
*
|
|
11
|
+
* USAGE:
|
|
12
|
+
*
|
|
13
|
+
* const ref = useRef<DrawerRef>(null);
|
|
14
|
+
* <Drawer ref={ref} side="left" width={300}>
|
|
15
|
+
* <YourMenu />
|
|
16
|
+
* </Drawer>
|
|
17
|
+
*
|
|
18
|
+
* ref.current?.open();
|
|
19
|
+
* ref.current?.close();
|
|
20
|
+
* ref.current?.toggle();
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
import React, { forwardRef, useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react';
|
|
24
|
+
import { Dimensions, Pressable, StyleSheet, View } from 'react-native';
|
|
25
|
+
import { Gesture, GestureDetector } from 'react-native-gesture-handler';
|
|
26
|
+
import Animated, { Extrapolation, interpolate, runOnJS, useAnimatedStyle, useSharedValue, withSpring } from 'react-native-reanimated';
|
|
27
|
+
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
28
|
+
import { useTheme } from "../../theme/index.js";
|
|
29
|
+
import { triggerHaptic } from "../../utils/index.js";
|
|
30
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
31
|
+
const CLOSE_VELOCITY_THRESHOLD = 1000;
|
|
32
|
+
const DRAG_ACTIVATION_OFFSET = 10;
|
|
33
|
+
const Drawer = /*#__PURE__*/forwardRef((props, ref) => {
|
|
34
|
+
const {
|
|
35
|
+
visible: controlledVisible,
|
|
36
|
+
defaultVisible = false,
|
|
37
|
+
onChange,
|
|
38
|
+
side = 'left',
|
|
39
|
+
width,
|
|
40
|
+
enableSwipe = true,
|
|
41
|
+
enableBackdropPress = true,
|
|
42
|
+
backdropOpacity = 0.5,
|
|
43
|
+
containerStyle,
|
|
44
|
+
children,
|
|
45
|
+
accessibilityLabel,
|
|
46
|
+
testID
|
|
47
|
+
} = props;
|
|
48
|
+
const theme = useTheme();
|
|
49
|
+
const insets = useSafeAreaInsets();
|
|
50
|
+
const isControlled = typeof controlledVisible === 'boolean';
|
|
51
|
+
const [windowDims, setWindowDims] = useState(() => Dimensions.get('window'));
|
|
52
|
+
useEffect(() => {
|
|
53
|
+
const sub = Dimensions.addEventListener('change', ({
|
|
54
|
+
window
|
|
55
|
+
}) => setWindowDims(window));
|
|
56
|
+
return () => sub.remove();
|
|
57
|
+
}, []);
|
|
58
|
+
const isHorizontal = side === 'left' || side === 'right';
|
|
59
|
+
const sheetSize = useMemo(() => resolveSize(width, isHorizontal, windowDims), [width, isHorizontal, windowDims]);
|
|
60
|
+
|
|
61
|
+
// closedOffset is signed: drawer is translated by `closedOffset` when fully closed,
|
|
62
|
+
// and by 0 when fully open. We always animate a single shared value `progress`
|
|
63
|
+
// (signed offset along the slide axis) so the same interpolation works for any side.
|
|
64
|
+
const closedOffset = useMemo(() => {
|
|
65
|
+
switch (side) {
|
|
66
|
+
case 'left':
|
|
67
|
+
return -sheetSize;
|
|
68
|
+
case 'right':
|
|
69
|
+
return sheetSize;
|
|
70
|
+
case 'top':
|
|
71
|
+
return -sheetSize;
|
|
72
|
+
case 'bottom':
|
|
73
|
+
return sheetSize;
|
|
74
|
+
}
|
|
75
|
+
}, [side, sheetSize]);
|
|
76
|
+
const offset = useSharedValue(closedOffset);
|
|
77
|
+
const dragStart = useSharedValue(closedOffset);
|
|
78
|
+
const [isOpen, setIsOpen] = useState(defaultVisible);
|
|
79
|
+
const isOpenShared = useSharedValue(defaultVisible);
|
|
80
|
+
|
|
81
|
+
// Whenever closedOffset changes (orientation / width prop), keep current state coherent.
|
|
82
|
+
useEffect(() => {
|
|
83
|
+
if (!isOpen) {
|
|
84
|
+
offset.value = closedOffset;
|
|
85
|
+
dragStart.value = closedOffset;
|
|
86
|
+
}
|
|
87
|
+
}, [closedOffset, isOpen, offset, dragStart]);
|
|
88
|
+
const springCfg = theme.motion.spring.snappy;
|
|
89
|
+
const animateOpen = useCallback(() => {
|
|
90
|
+
offset.value = withSpring(0, springCfg);
|
|
91
|
+
}, [offset, springCfg]);
|
|
92
|
+
const animateClose = useCallback(() => {
|
|
93
|
+
offset.value = withSpring(closedOffset, springCfg);
|
|
94
|
+
}, [offset, closedOffset, springCfg]);
|
|
95
|
+
const setOpenJS = useCallback(next => {
|
|
96
|
+
setIsOpen(prev => {
|
|
97
|
+
if (prev === next) return prev;
|
|
98
|
+
onChange?.(next);
|
|
99
|
+
return next;
|
|
100
|
+
});
|
|
101
|
+
isOpenShared.value = next;
|
|
102
|
+
}, [onChange, isOpenShared]);
|
|
103
|
+
const open = useCallback(() => {
|
|
104
|
+
setOpenJS(true);
|
|
105
|
+
animateOpen();
|
|
106
|
+
}, [setOpenJS, animateOpen]);
|
|
107
|
+
const close = useCallback(() => {
|
|
108
|
+
setOpenJS(false);
|
|
109
|
+
animateClose();
|
|
110
|
+
}, [setOpenJS, animateClose]);
|
|
111
|
+
const toggle = useCallback(() => {
|
|
112
|
+
if (isOpen) close();else open();
|
|
113
|
+
}, [isOpen, open, close]);
|
|
114
|
+
useImperativeHandle(ref, () => ({
|
|
115
|
+
open,
|
|
116
|
+
close,
|
|
117
|
+
toggle
|
|
118
|
+
}), [open, close, toggle]);
|
|
119
|
+
|
|
120
|
+
// Drive the controlled `visible` prop.
|
|
121
|
+
useEffect(() => {
|
|
122
|
+
if (!isControlled) return;
|
|
123
|
+
if (controlledVisible === isOpen) return;
|
|
124
|
+
if (controlledVisible) open();else close();
|
|
125
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
126
|
+
}, [controlledVisible]);
|
|
127
|
+
|
|
128
|
+
// ───────── Gesture (UI thread) ─────────
|
|
129
|
+
const panGesture = useMemo(() => {
|
|
130
|
+
const closed = closedOffset;
|
|
131
|
+
const sideValue = side;
|
|
132
|
+
const swipeAllowed = enableSwipe;
|
|
133
|
+
let g = Gesture.Pan();
|
|
134
|
+
if (isHorizontal) {
|
|
135
|
+
g = g.activeOffsetX([-DRAG_ACTIVATION_OFFSET, DRAG_ACTIVATION_OFFSET]).failOffsetY([-15, 15]);
|
|
136
|
+
} else {
|
|
137
|
+
g = g.activeOffsetY([-DRAG_ACTIVATION_OFFSET, DRAG_ACTIVATION_OFFSET]).failOffsetX([-15, 15]);
|
|
138
|
+
}
|
|
139
|
+
return g.onStart(() => {
|
|
140
|
+
'worklet';
|
|
141
|
+
|
|
142
|
+
if (!swipeAllowed) return;
|
|
143
|
+
dragStart.value = offset.value;
|
|
144
|
+
}).onUpdate(event => {
|
|
145
|
+
'worklet';
|
|
146
|
+
|
|
147
|
+
if (!swipeAllowed) return;
|
|
148
|
+
const delta = isHorizontal ? event.translationX : event.translationY;
|
|
149
|
+
const next = dragStart.value + delta;
|
|
150
|
+
// Clamp at the open edge (offset = 0) with a touch of rubber-banding
|
|
151
|
+
// and at the closed edge (offset = closed).
|
|
152
|
+
const minBound = Math.min(0, closed);
|
|
153
|
+
const maxBound = Math.max(0, closed);
|
|
154
|
+
if (next < minBound) {
|
|
155
|
+
offset.value = minBound + (next - minBound) * 0.25;
|
|
156
|
+
} else if (next > maxBound) {
|
|
157
|
+
offset.value = maxBound + (next - maxBound) * 0.25;
|
|
158
|
+
} else {
|
|
159
|
+
offset.value = next;
|
|
160
|
+
}
|
|
161
|
+
}).onEnd(event => {
|
|
162
|
+
'worklet';
|
|
163
|
+
|
|
164
|
+
if (!swipeAllowed) return;
|
|
165
|
+
const velocity = isHorizontal ? event.velocityX : event.velocityY;
|
|
166
|
+
const releaseOffset = offset.value;
|
|
167
|
+
|
|
168
|
+
// Direction the user must swipe to *close* the drawer:
|
|
169
|
+
// left → negative X
|
|
170
|
+
// right → positive X
|
|
171
|
+
// top → negative Y
|
|
172
|
+
// bottom → positive Y
|
|
173
|
+
let isFastClose = false;
|
|
174
|
+
if (sideValue === 'left' || sideValue === 'top') {
|
|
175
|
+
isFastClose = velocity < -CLOSE_VELOCITY_THRESHOLD;
|
|
176
|
+
} else {
|
|
177
|
+
isFastClose = velocity > CLOSE_VELOCITY_THRESHOLD;
|
|
178
|
+
}
|
|
179
|
+
const closedAbs = Math.abs(closed);
|
|
180
|
+
const traveledClosed = Math.abs(releaseOffset) / closedAbs; // 0 = open, 1 = closed
|
|
181
|
+
const shouldClose = isFastClose || traveledClosed > 0.5;
|
|
182
|
+
if (shouldClose) {
|
|
183
|
+
runOnJS(setOpenJS)(false);
|
|
184
|
+
offset.value = withSpring(closed, springCfg);
|
|
185
|
+
} else {
|
|
186
|
+
runOnJS(setOpenJS)(true);
|
|
187
|
+
offset.value = withSpring(0, springCfg);
|
|
188
|
+
}
|
|
189
|
+
});
|
|
190
|
+
}, [closedOffset, dragStart, enableSwipe, isHorizontal, offset, setOpenJS, side, springCfg]);
|
|
191
|
+
|
|
192
|
+
// ───────── Animated styles ─────────
|
|
193
|
+
const sheetStyle = useAnimatedStyle(() => {
|
|
194
|
+
if (isHorizontal) {
|
|
195
|
+
return {
|
|
196
|
+
transform: [{
|
|
197
|
+
translateX: offset.value
|
|
198
|
+
}]
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
return {
|
|
202
|
+
transform: [{
|
|
203
|
+
translateY: offset.value
|
|
204
|
+
}]
|
|
205
|
+
};
|
|
206
|
+
});
|
|
207
|
+
const backdropStyle = useAnimatedStyle(() => {
|
|
208
|
+
// When offset === closedOffset → 0 opacity; when offset === 0 → backdropOpacity.
|
|
209
|
+
const opacity = interpolate(offset.value, [closedOffset, 0], [0, backdropOpacity], Extrapolation.CLAMP);
|
|
210
|
+
const closedDistance = Math.abs(offset.value - closedOffset);
|
|
211
|
+
return {
|
|
212
|
+
opacity,
|
|
213
|
+
pointerEvents: closedDistance < 0.5 ? 'none' : 'auto'
|
|
214
|
+
};
|
|
215
|
+
}, [closedOffset, backdropOpacity]);
|
|
216
|
+
const styles = useMemo(() => buildStyles(theme), [theme]);
|
|
217
|
+
const handleBackdropPress = useCallback(() => {
|
|
218
|
+
if (!enableBackdropPress) return;
|
|
219
|
+
triggerHaptic('selection');
|
|
220
|
+
close();
|
|
221
|
+
}, [enableBackdropPress, close]);
|
|
222
|
+
|
|
223
|
+
// Per-side container layout — must be a hook on every render path so we
|
|
224
|
+
// can't gate it on the lazy-mount early-return below.
|
|
225
|
+
const sideLayout = useMemo(() => {
|
|
226
|
+
switch (side) {
|
|
227
|
+
case 'left':
|
|
228
|
+
return {
|
|
229
|
+
position: 'absolute',
|
|
230
|
+
top: 0,
|
|
231
|
+
bottom: 0,
|
|
232
|
+
left: 0,
|
|
233
|
+
width: sheetSize,
|
|
234
|
+
paddingTop: insets.top,
|
|
235
|
+
paddingBottom: insets.bottom,
|
|
236
|
+
paddingLeft: insets.left
|
|
237
|
+
};
|
|
238
|
+
case 'right':
|
|
239
|
+
return {
|
|
240
|
+
position: 'absolute',
|
|
241
|
+
top: 0,
|
|
242
|
+
bottom: 0,
|
|
243
|
+
right: 0,
|
|
244
|
+
width: sheetSize,
|
|
245
|
+
paddingTop: insets.top,
|
|
246
|
+
paddingBottom: insets.bottom,
|
|
247
|
+
paddingRight: insets.right
|
|
248
|
+
};
|
|
249
|
+
case 'top':
|
|
250
|
+
return {
|
|
251
|
+
position: 'absolute',
|
|
252
|
+
top: 0,
|
|
253
|
+
left: 0,
|
|
254
|
+
right: 0,
|
|
255
|
+
height: sheetSize,
|
|
256
|
+
paddingTop: insets.top,
|
|
257
|
+
paddingLeft: insets.left,
|
|
258
|
+
paddingRight: insets.right
|
|
259
|
+
};
|
|
260
|
+
case 'bottom':
|
|
261
|
+
return {
|
|
262
|
+
position: 'absolute',
|
|
263
|
+
bottom: 0,
|
|
264
|
+
left: 0,
|
|
265
|
+
right: 0,
|
|
266
|
+
height: sheetSize,
|
|
267
|
+
paddingBottom: insets.bottom,
|
|
268
|
+
paddingLeft: insets.left,
|
|
269
|
+
paddingRight: insets.right
|
|
270
|
+
};
|
|
271
|
+
}
|
|
272
|
+
}, [side, sheetSize, insets]);
|
|
273
|
+
|
|
274
|
+
// Mount lazily — only render the heavy gesture/animation tree once the drawer
|
|
275
|
+
// has been opened at least once. Same trick as BottomSheet.
|
|
276
|
+
const everOpenedRef = useRef(defaultVisible);
|
|
277
|
+
if (isOpen) everOpenedRef.current = true;
|
|
278
|
+
if (!everOpenedRef.current) {
|
|
279
|
+
return null;
|
|
280
|
+
}
|
|
281
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
282
|
+
style: StyleSheet.absoluteFill,
|
|
283
|
+
pointerEvents: "box-none",
|
|
284
|
+
testID: testID,
|
|
285
|
+
accessibilityViewIsModal: isOpen,
|
|
286
|
+
children: [/*#__PURE__*/_jsx(Animated.View, {
|
|
287
|
+
style: [styles.backdrop, {
|
|
288
|
+
backgroundColor: theme.colors.background.overlay
|
|
289
|
+
}, backdropStyle],
|
|
290
|
+
children: /*#__PURE__*/_jsx(Pressable, {
|
|
291
|
+
style: StyleSheet.absoluteFill,
|
|
292
|
+
onPress: handleBackdropPress,
|
|
293
|
+
accessibilityRole: "button",
|
|
294
|
+
accessibilityLabel: "Close drawer",
|
|
295
|
+
disabled: !enableBackdropPress || !isOpen
|
|
296
|
+
})
|
|
297
|
+
}), /*#__PURE__*/_jsx(GestureDetector, {
|
|
298
|
+
gesture: panGesture,
|
|
299
|
+
children: /*#__PURE__*/_jsx(Animated.View, {
|
|
300
|
+
accessibilityRole: 'dialog',
|
|
301
|
+
accessibilityLabel: accessibilityLabel ?? 'Drawer',
|
|
302
|
+
accessibilityViewIsModal: isOpen,
|
|
303
|
+
style: [sideLayout, {
|
|
304
|
+
backgroundColor: theme.colors.background.elevated,
|
|
305
|
+
...theme.shadows.xl
|
|
306
|
+
}, containerStyle, sheetStyle],
|
|
307
|
+
children: /*#__PURE__*/_jsx(View, {
|
|
308
|
+
style: styles.content,
|
|
309
|
+
children: children
|
|
310
|
+
})
|
|
311
|
+
})
|
|
312
|
+
})]
|
|
313
|
+
});
|
|
314
|
+
});
|
|
315
|
+
Drawer.displayName = 'Drawer';
|
|
316
|
+
|
|
317
|
+
// ───────── Helpers ─────────
|
|
318
|
+
|
|
319
|
+
const resolveSize = (width, isHorizontal, win) => {
|
|
320
|
+
if (typeof width === 'number') return width;
|
|
321
|
+
if (typeof width === 'string') {
|
|
322
|
+
const pct = parseFloat(width);
|
|
323
|
+
if (Number.isNaN(pct)) return isHorizontal ? 280 : Math.round(win.height * 0.4);
|
|
324
|
+
const base = isHorizontal ? win.width : win.height;
|
|
325
|
+
return pct / 100 * base;
|
|
326
|
+
}
|
|
327
|
+
// Defaults
|
|
328
|
+
return isHorizontal ? 280 : Math.round(win.height * 0.4);
|
|
329
|
+
};
|
|
330
|
+
const buildStyles = _theme => StyleSheet.create({
|
|
331
|
+
backdrop: {
|
|
332
|
+
...StyleSheet.absoluteFillObject
|
|
333
|
+
},
|
|
334
|
+
content: {
|
|
335
|
+
flex: 1
|
|
336
|
+
}
|
|
337
|
+
});
|
|
338
|
+
export { Drawer };
|
|
339
|
+
export default Drawer;
|
|
340
|
+
//# sourceMappingURL=Drawer.js.map
|