@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,257 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.AccordionGroup = exports.Accordion = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _index = require("../../theme/index.js");
|
|
10
|
+
var _hapticUtils = require("../../utils/hapticUtils.js");
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
13
|
+
const AccordionGroupContext = /*#__PURE__*/(0, _react.createContext)(null);
|
|
14
|
+
const useAccordionGroup = () => (0, _react.useContext)(AccordionGroupContext);
|
|
15
|
+
const AccordionGroup = ({
|
|
16
|
+
children,
|
|
17
|
+
allowMultiple = false,
|
|
18
|
+
defaultExpandedKeys,
|
|
19
|
+
expandedKeys: expandedKeysProp,
|
|
20
|
+
onChange,
|
|
21
|
+
style,
|
|
22
|
+
testID
|
|
23
|
+
}) => {
|
|
24
|
+
const isControlled = expandedKeysProp !== undefined;
|
|
25
|
+
const [internalKeys, setInternalKeys] = (0, _react.useState)(defaultExpandedKeys ?? []);
|
|
26
|
+
const keys = isControlled ? expandedKeysProp : internalKeys;
|
|
27
|
+
const setKeys = (0, _react.useCallback)(next => {
|
|
28
|
+
if (!isControlled) setInternalKeys(next);
|
|
29
|
+
onChange?.(next);
|
|
30
|
+
}, [isControlled, onChange]);
|
|
31
|
+
const toggle = (0, _react.useCallback)(id => {
|
|
32
|
+
const isOpen = keys.includes(id);
|
|
33
|
+
let next;
|
|
34
|
+
if (isOpen) {
|
|
35
|
+
next = keys.filter(k => k !== id);
|
|
36
|
+
} else if (allowMultiple) {
|
|
37
|
+
next = [...keys, id];
|
|
38
|
+
} else {
|
|
39
|
+
next = [id];
|
|
40
|
+
}
|
|
41
|
+
setKeys(next);
|
|
42
|
+
}, [keys, allowMultiple, setKeys]);
|
|
43
|
+
const isExpanded = (0, _react.useCallback)(id => keys.includes(id), [keys]);
|
|
44
|
+
const ctx = (0, _react.useMemo)(() => ({
|
|
45
|
+
isExpanded,
|
|
46
|
+
toggle,
|
|
47
|
+
allowMultiple
|
|
48
|
+
}), [isExpanded, toggle, allowMultiple]);
|
|
49
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(AccordionGroupContext.Provider, {
|
|
50
|
+
value: ctx,
|
|
51
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
52
|
+
style: style,
|
|
53
|
+
testID: testID,
|
|
54
|
+
children: children
|
|
55
|
+
})
|
|
56
|
+
});
|
|
57
|
+
};
|
|
58
|
+
exports.AccordionGroup = AccordionGroup;
|
|
59
|
+
AccordionGroup.displayName = 'AccordionGroup';
|
|
60
|
+
const Chevron = ({
|
|
61
|
+
rotate,
|
|
62
|
+
color
|
|
63
|
+
}) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Animated.Text, {
|
|
64
|
+
style: [chevronStyles.icon, {
|
|
65
|
+
color,
|
|
66
|
+
transform: [{
|
|
67
|
+
rotate
|
|
68
|
+
}]
|
|
69
|
+
}],
|
|
70
|
+
accessible: false,
|
|
71
|
+
children: '▾'
|
|
72
|
+
});
|
|
73
|
+
const chevronStyles = _reactNative.StyleSheet.create({
|
|
74
|
+
icon: {
|
|
75
|
+
fontSize: 14,
|
|
76
|
+
lineHeight: 14,
|
|
77
|
+
includeFontPadding: false
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
const Accordion = props => {
|
|
81
|
+
const {
|
|
82
|
+
title,
|
|
83
|
+
children,
|
|
84
|
+
id,
|
|
85
|
+
expanded: expandedProp,
|
|
86
|
+
defaultExpanded = false,
|
|
87
|
+
onChange,
|
|
88
|
+
icon,
|
|
89
|
+
disabled = false,
|
|
90
|
+
variant = 'plain',
|
|
91
|
+
accessibilityLabel,
|
|
92
|
+
style,
|
|
93
|
+
headerStyle,
|
|
94
|
+
contentStyle,
|
|
95
|
+
testID
|
|
96
|
+
} = props;
|
|
97
|
+
const theme = (0, _index.useTheme)();
|
|
98
|
+
const styles = (0, _react.useMemo)(() => buildStyles(theme), [theme]);
|
|
99
|
+
const group = useAccordionGroup();
|
|
100
|
+
const isControlled = expandedProp !== undefined;
|
|
101
|
+
const [internalExpanded, setInternalExpanded] = (0, _react.useState)(defaultExpanded);
|
|
102
|
+
const groupExpanded = group && id ? group.isExpanded(id) : null;
|
|
103
|
+
const expanded = groupExpanded !== null ? groupExpanded : isControlled ? !!expandedProp : internalExpanded;
|
|
104
|
+
const [measuredHeight, setMeasuredHeight] = (0, _react.useState)(null);
|
|
105
|
+
const heightAnim = (0, _react.useRef)(new _reactNative.Animated.Value(expanded ? 1 : 0)).current;
|
|
106
|
+
const opacityAnim = (0, _react.useRef)(new _reactNative.Animated.Value(expanded ? 1 : 0)).current;
|
|
107
|
+
const rotateAnim = (0, _react.useRef)(new _reactNative.Animated.Value(expanded ? 1 : 0)).current;
|
|
108
|
+
const lastExpandedRef = (0, _react.useRef)(expanded);
|
|
109
|
+
(0, _react.useEffect)(() => {
|
|
110
|
+
// Skip animation when state matches the previous value (e.g. on mount).
|
|
111
|
+
if (lastExpandedRef.current === expanded) return;
|
|
112
|
+
lastExpandedRef.current = expanded;
|
|
113
|
+
_reactNative.Animated.parallel([_reactNative.Animated.timing(heightAnim, {
|
|
114
|
+
toValue: expanded ? 1 : 0,
|
|
115
|
+
duration: theme.motion.duration.normal,
|
|
116
|
+
easing: _reactNative.Easing.bezier(...theme.motion.easing.standard),
|
|
117
|
+
useNativeDriver: false
|
|
118
|
+
}),
|
|
119
|
+
// Opacity & rotate run alongside the height interpolation (which must
|
|
120
|
+
// use the JS driver). Driving them on JS too keeps everything in lockstep
|
|
121
|
+
// with no driver-mixing warnings, and is fine for two small properties.
|
|
122
|
+
_reactNative.Animated.timing(opacityAnim, {
|
|
123
|
+
toValue: expanded ? 1 : 0,
|
|
124
|
+
duration: theme.motion.duration.normal,
|
|
125
|
+
easing: _reactNative.Easing.bezier(...theme.motion.easing.standard),
|
|
126
|
+
useNativeDriver: false
|
|
127
|
+
}), _reactNative.Animated.timing(rotateAnim, {
|
|
128
|
+
toValue: expanded ? 1 : 0,
|
|
129
|
+
duration: theme.motion.duration.normal,
|
|
130
|
+
easing: _reactNative.Easing.bezier(...theme.motion.easing.standard),
|
|
131
|
+
useNativeDriver: false
|
|
132
|
+
})]).start();
|
|
133
|
+
}, [expanded, heightAnim, opacityAnim, rotateAnim, theme.motion]);
|
|
134
|
+
const onContentLayout = (0, _react.useCallback)(e => {
|
|
135
|
+
const h = e.nativeEvent.layout.height;
|
|
136
|
+
if (h > 0 && h !== measuredHeight) setMeasuredHeight(h);
|
|
137
|
+
}, [measuredHeight]);
|
|
138
|
+
const handlePress = (0, _react.useCallback)(() => {
|
|
139
|
+
if (disabled) return;
|
|
140
|
+
(0, _hapticUtils.triggerHaptic)('selection');
|
|
141
|
+
if (group && id) {
|
|
142
|
+
group.toggle(id);
|
|
143
|
+
onChange?.(!expanded);
|
|
144
|
+
return;
|
|
145
|
+
}
|
|
146
|
+
if (!isControlled) setInternalExpanded(!expanded);
|
|
147
|
+
onChange?.(!expanded);
|
|
148
|
+
}, [disabled, group, id, expanded, isControlled, onChange]);
|
|
149
|
+
const rotate = rotateAnim.interpolate({
|
|
150
|
+
inputRange: [0, 1],
|
|
151
|
+
outputRange: ['0deg', '180deg']
|
|
152
|
+
});
|
|
153
|
+
const animatedHeight = measuredHeight === null ? undefined : heightAnim.interpolate({
|
|
154
|
+
inputRange: [0, 1],
|
|
155
|
+
outputRange: [0, measuredHeight]
|
|
156
|
+
});
|
|
157
|
+
const cardStyle = variant === 'card' ? [styles.card, theme.shadows.sm, {
|
|
158
|
+
backgroundColor: theme.colors.background.elevated,
|
|
159
|
+
borderRadius: theme.radius.md
|
|
160
|
+
}] : null;
|
|
161
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
162
|
+
style: [cardStyle, style],
|
|
163
|
+
testID: testID,
|
|
164
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Pressable, {
|
|
165
|
+
onPress: handlePress,
|
|
166
|
+
disabled: disabled,
|
|
167
|
+
accessibilityRole: "button",
|
|
168
|
+
accessibilityLabel: accessibilityLabel ?? title,
|
|
169
|
+
accessibilityState: {
|
|
170
|
+
expanded,
|
|
171
|
+
disabled
|
|
172
|
+
},
|
|
173
|
+
style: ({
|
|
174
|
+
pressed
|
|
175
|
+
}) => [styles.header, headerStyle, {
|
|
176
|
+
opacity: disabled ? 0.55 : pressed ? 0.85 : 1
|
|
177
|
+
}],
|
|
178
|
+
children: [icon ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
179
|
+
style: styles.iconLeft,
|
|
180
|
+
children: icon
|
|
181
|
+
}) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
182
|
+
style: [styles.title, {
|
|
183
|
+
color: disabled ? theme.colors.text.disabled : theme.colors.text.primary,
|
|
184
|
+
fontSize: theme.typography.fontSize.base,
|
|
185
|
+
fontWeight: theme.typography.fontWeight.semibold
|
|
186
|
+
}],
|
|
187
|
+
numberOfLines: 2,
|
|
188
|
+
children: title
|
|
189
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Chevron, {
|
|
190
|
+
rotate: rotate,
|
|
191
|
+
color: disabled ? theme.colors.text.disabled : theme.colors.text.secondary
|
|
192
|
+
})]
|
|
193
|
+
}), measuredHeight === null ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
194
|
+
style: styles.measurer,
|
|
195
|
+
pointerEvents: "none",
|
|
196
|
+
onLayout: onContentLayout,
|
|
197
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
198
|
+
style: [styles.content, contentStyle],
|
|
199
|
+
children: children
|
|
200
|
+
})
|
|
201
|
+
}) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Animated.View, {
|
|
202
|
+
style: [styles.contentWrapper, measuredHeight === null ? {
|
|
203
|
+
height: 0,
|
|
204
|
+
opacity: 0
|
|
205
|
+
} : {
|
|
206
|
+
height: animatedHeight,
|
|
207
|
+
opacity: opacityAnim
|
|
208
|
+
}]
|
|
209
|
+
// Re-measure if children change size by listening to layout of inner
|
|
210
|
+
,
|
|
211
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
212
|
+
onLayout: onContentLayout,
|
|
213
|
+
style: [styles.content, contentStyle],
|
|
214
|
+
children: children
|
|
215
|
+
})
|
|
216
|
+
})]
|
|
217
|
+
});
|
|
218
|
+
};
|
|
219
|
+
exports.Accordion = Accordion;
|
|
220
|
+
Accordion.displayName = 'Accordion';
|
|
221
|
+
|
|
222
|
+
// Suppress unused warnings on platforms that don't support LayoutAnimation
|
|
223
|
+
void _reactNative.LayoutAnimation;
|
|
224
|
+
const buildStyles = theme => _reactNative.StyleSheet.create({
|
|
225
|
+
card: {
|
|
226
|
+
paddingHorizontal: theme.spacing.md,
|
|
227
|
+
paddingVertical: 4,
|
|
228
|
+
marginVertical: theme.spacing.xs
|
|
229
|
+
},
|
|
230
|
+
header: {
|
|
231
|
+
flexDirection: 'row',
|
|
232
|
+
alignItems: 'center',
|
|
233
|
+
paddingVertical: theme.spacing.sm
|
|
234
|
+
},
|
|
235
|
+
iconLeft: {
|
|
236
|
+
marginRight: theme.spacing.sm
|
|
237
|
+
},
|
|
238
|
+
title: {
|
|
239
|
+
flex: 1
|
|
240
|
+
},
|
|
241
|
+
contentWrapper: {
|
|
242
|
+
overflow: 'hidden'
|
|
243
|
+
},
|
|
244
|
+
content: {
|
|
245
|
+
paddingBottom: theme.spacing.sm
|
|
246
|
+
},
|
|
247
|
+
measurer: {
|
|
248
|
+
position: 'absolute',
|
|
249
|
+
opacity: 0,
|
|
250
|
+
left: 0,
|
|
251
|
+
right: 0,
|
|
252
|
+
top: 0,
|
|
253
|
+
zIndex: -1
|
|
254
|
+
}
|
|
255
|
+
});
|
|
256
|
+
var _default = exports.default = Accordion;
|
|
257
|
+
//# sourceMappingURL=Accordion.js.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "Accordion", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _Accordion.Accordion;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "AccordionGroup", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _Accordion.AccordionGroup;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "default", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _Accordion.default;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
var _Accordion = _interopRequireWildcard(require("./Accordion.js"));
|
|
25
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
26
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.AvatarGroup = exports.Avatar = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _index = require("../../theme/index.js");
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
12
|
+
const sizeMap = {
|
|
13
|
+
xs: 24,
|
|
14
|
+
sm: 32,
|
|
15
|
+
md: 48,
|
|
16
|
+
lg: 64,
|
|
17
|
+
xl: 80
|
|
18
|
+
};
|
|
19
|
+
const resolveSize = size => typeof size === 'number' ? size : sizeMap[size];
|
|
20
|
+
const resolveRadius = (shape, dimension) => {
|
|
21
|
+
switch (shape) {
|
|
22
|
+
case 'circle':
|
|
23
|
+
return dimension / 2;
|
|
24
|
+
case 'rounded':
|
|
25
|
+
return Math.max(6, Math.round(dimension * 0.22));
|
|
26
|
+
case 'square':
|
|
27
|
+
default:
|
|
28
|
+
return 0;
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
const initialsFromName = name => {
|
|
32
|
+
if (!name) return '';
|
|
33
|
+
const parts = name.trim().split(/\s+/u).filter(Boolean);
|
|
34
|
+
if (parts.length === 0) return '';
|
|
35
|
+
if (parts.length === 1) return parts[0].charAt(0).toUpperCase();
|
|
36
|
+
return (parts[0].charAt(0) + parts[1].charAt(0)).toUpperCase();
|
|
37
|
+
};
|
|
38
|
+
const PALETTE = ['#5B5BD6', '#0EA5A4', '#D97706', '#DB2777', '#2563EB', '#7C3AED', '#059669', '#DC2626'];
|
|
39
|
+
const hashColor = seed => {
|
|
40
|
+
if (!seed) return PALETTE[0];
|
|
41
|
+
let hash = 0;
|
|
42
|
+
for (let i = 0; i < seed.length; i += 1) {
|
|
43
|
+
hash = (hash << 5) - hash + seed.charCodeAt(i);
|
|
44
|
+
hash |= 0;
|
|
45
|
+
}
|
|
46
|
+
const idx = Math.abs(hash) % PALETTE.length;
|
|
47
|
+
return PALETTE[idx];
|
|
48
|
+
};
|
|
49
|
+
const statusColor = (theme, status) => {
|
|
50
|
+
switch (status) {
|
|
51
|
+
case 'online':
|
|
52
|
+
return theme.colors.success;
|
|
53
|
+
case 'busy':
|
|
54
|
+
return theme.colors.error;
|
|
55
|
+
case 'away':
|
|
56
|
+
return theme.colors.warning;
|
|
57
|
+
case 'offline':
|
|
58
|
+
default:
|
|
59
|
+
return theme.colors.text.tertiary;
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
const Avatar = exports.Avatar = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
63
|
+
const {
|
|
64
|
+
source,
|
|
65
|
+
name,
|
|
66
|
+
size = 'md',
|
|
67
|
+
shape = 'circle',
|
|
68
|
+
status = null,
|
|
69
|
+
statusPosition = 'bottomRight',
|
|
70
|
+
backgroundColor,
|
|
71
|
+
color,
|
|
72
|
+
accessibilityLabel,
|
|
73
|
+
style,
|
|
74
|
+
textStyle,
|
|
75
|
+
testID
|
|
76
|
+
} = props;
|
|
77
|
+
const theme = (0, _index.useTheme)();
|
|
78
|
+
const [imageFailed, setImageFailed] = (0, _react.useState)(false);
|
|
79
|
+
const dimension = (0, _react.useMemo)(() => resolveSize(size), [size]);
|
|
80
|
+
const borderRadius = (0, _react.useMemo)(() => resolveRadius(shape, dimension), [shape, dimension]);
|
|
81
|
+
const initials = (0, _react.useMemo)(() => initialsFromName(name), [name]);
|
|
82
|
+
const resolvedBackground = (0, _react.useMemo)(() => {
|
|
83
|
+
if (backgroundColor) return backgroundColor;
|
|
84
|
+
return hashColor(name ?? '');
|
|
85
|
+
}, [backgroundColor, name]);
|
|
86
|
+
const resolvedTextColor = color ?? theme.colors.text.inverse;
|
|
87
|
+
const showImage = !!source && !imageFailed;
|
|
88
|
+
const fontSize = Math.max(10, Math.round(dimension * 0.4));
|
|
89
|
+
const statusSize = Math.max(8, Math.round(dimension * 0.25));
|
|
90
|
+
const statusBorder = 2;
|
|
91
|
+
const a11yLabel = accessibilityLabel ?? (name ? `${name}'s avatar` : 'Avatar');
|
|
92
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
93
|
+
ref: ref,
|
|
94
|
+
style: [styles.root, {
|
|
95
|
+
width: dimension,
|
|
96
|
+
height: dimension,
|
|
97
|
+
borderRadius,
|
|
98
|
+
backgroundColor: showImage ? theme.colors.background.tertiary : resolvedBackground
|
|
99
|
+
}, style],
|
|
100
|
+
accessible: true,
|
|
101
|
+
accessibilityRole: "image",
|
|
102
|
+
accessibilityLabel: a11yLabel,
|
|
103
|
+
testID: testID,
|
|
104
|
+
children: [showImage ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Image, {
|
|
105
|
+
source: source,
|
|
106
|
+
onError: () => setImageFailed(true),
|
|
107
|
+
style: {
|
|
108
|
+
width: dimension,
|
|
109
|
+
height: dimension,
|
|
110
|
+
borderRadius
|
|
111
|
+
},
|
|
112
|
+
resizeMode: "cover",
|
|
113
|
+
accessibilityIgnoresInvertColors: true
|
|
114
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
115
|
+
style: [styles.initials, {
|
|
116
|
+
color: resolvedTextColor,
|
|
117
|
+
fontSize,
|
|
118
|
+
fontWeight: theme.typography.fontWeight.semibold
|
|
119
|
+
}, textStyle],
|
|
120
|
+
numberOfLines: 1,
|
|
121
|
+
allowFontScaling: false,
|
|
122
|
+
children: initials
|
|
123
|
+
}), status ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
124
|
+
style: [styles.status, statusPosition === 'topRight' ? styles.statusTopRight : styles.statusBottomRight, {
|
|
125
|
+
width: statusSize,
|
|
126
|
+
height: statusSize,
|
|
127
|
+
borderRadius: statusSize / 2,
|
|
128
|
+
backgroundColor: statusColor(theme, status),
|
|
129
|
+
borderWidth: statusBorder,
|
|
130
|
+
borderColor: theme.colors.background.elevated
|
|
131
|
+
}],
|
|
132
|
+
accessible: false,
|
|
133
|
+
pointerEvents: "none"
|
|
134
|
+
}) : null]
|
|
135
|
+
});
|
|
136
|
+
});
|
|
137
|
+
Avatar.displayName = 'Avatar';
|
|
138
|
+
const styles = _reactNative.StyleSheet.create({
|
|
139
|
+
root: {
|
|
140
|
+
alignItems: 'center',
|
|
141
|
+
justifyContent: 'center',
|
|
142
|
+
overflow: 'visible',
|
|
143
|
+
position: 'relative'
|
|
144
|
+
},
|
|
145
|
+
initials: {
|
|
146
|
+
textAlign: 'center'
|
|
147
|
+
},
|
|
148
|
+
status: {
|
|
149
|
+
position: 'absolute'
|
|
150
|
+
},
|
|
151
|
+
statusTopRight: {
|
|
152
|
+
top: 0,
|
|
153
|
+
right: 0
|
|
154
|
+
},
|
|
155
|
+
statusBottomRight: {
|
|
156
|
+
bottom: 0,
|
|
157
|
+
right: 0
|
|
158
|
+
}
|
|
159
|
+
});
|
|
160
|
+
const SPACING_OFFSET = {
|
|
161
|
+
tight: -16,
|
|
162
|
+
normal: -12,
|
|
163
|
+
loose: -8
|
|
164
|
+
};
|
|
165
|
+
const STAGGER_MS = 50;
|
|
166
|
+
const ENTRANCE_DURATION_MS = 220;
|
|
167
|
+
const AvatarGroupItem = ({
|
|
168
|
+
delay,
|
|
169
|
+
marginLeft,
|
|
170
|
+
borderColor,
|
|
171
|
+
borderWidth,
|
|
172
|
+
children
|
|
173
|
+
}) => {
|
|
174
|
+
const opacity = (0, _react.useRef)(new _reactNative.Animated.Value(0)).current;
|
|
175
|
+
(0, _react.useEffect)(() => {
|
|
176
|
+
_reactNative.Animated.timing(opacity, {
|
|
177
|
+
toValue: 1,
|
|
178
|
+
duration: ENTRANCE_DURATION_MS,
|
|
179
|
+
delay,
|
|
180
|
+
easing: _reactNative.Easing.out(_reactNative.Easing.cubic),
|
|
181
|
+
useNativeDriver: true
|
|
182
|
+
}).start();
|
|
183
|
+
}, [delay, opacity]);
|
|
184
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Animated.View, {
|
|
185
|
+
style: [groupStyles.item, {
|
|
186
|
+
marginLeft,
|
|
187
|
+
borderColor,
|
|
188
|
+
borderWidth,
|
|
189
|
+
opacity
|
|
190
|
+
}],
|
|
191
|
+
children: children
|
|
192
|
+
});
|
|
193
|
+
};
|
|
194
|
+
const AvatarGroup = props => {
|
|
195
|
+
const {
|
|
196
|
+
children,
|
|
197
|
+
max = 4,
|
|
198
|
+
size = 'md',
|
|
199
|
+
spacing = 'normal',
|
|
200
|
+
overflowVariant = 'count',
|
|
201
|
+
accessibilityLabel,
|
|
202
|
+
style,
|
|
203
|
+
testID
|
|
204
|
+
} = props;
|
|
205
|
+
const theme = (0, _index.useTheme)();
|
|
206
|
+
const validChildren = (0, _react.useMemo)(() => _react.Children.toArray(children).filter(c => /*#__PURE__*/(0, _react.isValidElement)(c)), [children]);
|
|
207
|
+
const total = validChildren.length;
|
|
208
|
+
const visible = validChildren.slice(0, max);
|
|
209
|
+
const overflow = Math.max(0, total - max);
|
|
210
|
+
const showOverflow = overflow > 0;
|
|
211
|
+
const offset = SPACING_OFFSET[spacing];
|
|
212
|
+
const borderColor = theme.colors.background.elevated;
|
|
213
|
+
const borderWidth = 1.5;
|
|
214
|
+
const a11yLabel = accessibilityLabel ?? `Group of ${total} ${total === 1 ? 'person' : 'people'}`;
|
|
215
|
+
|
|
216
|
+
// Render the "+N" / "+" overflow avatar styled to match.
|
|
217
|
+
const overflowDimension = (0, _react.useMemo)(() => resolveSize(size), [size]);
|
|
218
|
+
const overflowFontSize = Math.max(10, Math.round(overflowDimension * 0.34));
|
|
219
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
220
|
+
style: [groupStyles.row, style],
|
|
221
|
+
accessible: true,
|
|
222
|
+
accessibilityLabel: a11yLabel,
|
|
223
|
+
accessibilityRole: "summary",
|
|
224
|
+
testID: testID,
|
|
225
|
+
children: [visible.map((child, index) => {
|
|
226
|
+
const childKey = child.key ?? `avatar-${index}`;
|
|
227
|
+
const cloned = /*#__PURE__*/(0, _react.cloneElement)(child, {
|
|
228
|
+
size
|
|
229
|
+
});
|
|
230
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(AvatarGroupItem, {
|
|
231
|
+
delay: index * STAGGER_MS,
|
|
232
|
+
marginLeft: index === 0 ? 0 : offset,
|
|
233
|
+
borderColor: borderColor,
|
|
234
|
+
borderWidth: borderWidth,
|
|
235
|
+
children: cloned
|
|
236
|
+
}, childKey);
|
|
237
|
+
}), showOverflow ? /*#__PURE__*/(0, _jsxRuntime.jsx)(AvatarGroupItem, {
|
|
238
|
+
delay: visible.length * STAGGER_MS,
|
|
239
|
+
marginLeft: visible.length === 0 ? 0 : offset,
|
|
240
|
+
borderColor: borderColor,
|
|
241
|
+
borderWidth: borderWidth,
|
|
242
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
243
|
+
style: [groupStyles.overflow, {
|
|
244
|
+
width: overflowDimension,
|
|
245
|
+
height: overflowDimension,
|
|
246
|
+
borderRadius: overflowDimension / 2,
|
|
247
|
+
backgroundColor: theme.colors.surface.disabled
|
|
248
|
+
}],
|
|
249
|
+
accessible: true,
|
|
250
|
+
accessibilityRole: "text",
|
|
251
|
+
accessibilityLabel: overflowVariant === 'count' ? `${overflow} more` : 'More avatars',
|
|
252
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
253
|
+
style: {
|
|
254
|
+
color: theme.colors.text.secondary,
|
|
255
|
+
fontSize: overflowFontSize,
|
|
256
|
+
fontWeight: theme.typography.fontWeight.semibold
|
|
257
|
+
},
|
|
258
|
+
numberOfLines: 1,
|
|
259
|
+
allowFontScaling: false,
|
|
260
|
+
children: overflowVariant === 'count' ? `+${overflow}` : '+'
|
|
261
|
+
})
|
|
262
|
+
})
|
|
263
|
+
}, "avatar-overflow") : null]
|
|
264
|
+
});
|
|
265
|
+
};
|
|
266
|
+
exports.AvatarGroup = AvatarGroup;
|
|
267
|
+
const groupStyles = _reactNative.StyleSheet.create({
|
|
268
|
+
row: {
|
|
269
|
+
flexDirection: 'row',
|
|
270
|
+
alignItems: 'center'
|
|
271
|
+
},
|
|
272
|
+
item: {
|
|
273
|
+
borderRadius: 9999
|
|
274
|
+
},
|
|
275
|
+
overflow: {
|
|
276
|
+
alignItems: 'center',
|
|
277
|
+
justifyContent: 'center'
|
|
278
|
+
}
|
|
279
|
+
});
|
|
280
|
+
const AvatarWithGroup = Avatar;
|
|
281
|
+
AvatarWithGroup.Group = AvatarGroup;
|
|
282
|
+
var _default = exports.default = AvatarWithGroup;
|
|
283
|
+
//# sourceMappingURL=Avatar.js.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "Avatar", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _Avatar.Avatar;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "AvatarGroup", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _Avatar.AvatarGroup;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "default", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _Avatar.default;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
var _Avatar = _interopRequireWildcard(require("./Avatar.js"));
|
|
25
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
26
|
+
//# sourceMappingURL=index.js.map
|