@admin-layout/gluestack-ui-mobile 12.0.16-alpha.91 → 12.2.1-alpha.0
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/CHANGELOG.md +3 -231
- package/lib/components/AuthWrapper.js +3 -5
- package/lib/components/AuthWrapper.js.map +1 -1
- package/lib/components/ErrorBounday.js.map +1 -1
- package/lib/components/Fallback.js +12 -12
- package/lib/components/Fallback.js.map +1 -1
- package/lib/components/Layout/components/BasicLayout.js +2 -2
- package/lib/components/Layout/components/BasicLayout.js.map +1 -1
- package/lib/components/Layout/components/BottomTabBar.js +6 -6
- package/lib/components/Layout/components/BottomTabBar.js.map +1 -1
- package/lib/components/Layout/components/Drawer.js +17 -16
- package/lib/components/Layout/components/Drawer.js.map +1 -1
- package/lib/components/Layout/components/Header.js +15 -12
- package/lib/components/Layout/components/Header.js.map +1 -1
- package/lib/components/Layout/components/Sample.js +1 -1
- package/lib/components/Layout/components/Sample.js.map +1 -1
- package/lib/components/Layout/components/SettingDrawer/LayoutButton.js +9 -9
- package/lib/components/Layout/components/SettingDrawer/LayoutButton.js.map +1 -1
- package/lib/components/Layout/components/SettingDrawer/SettingDrawer.js +36 -37
- package/lib/components/Layout/components/SettingDrawer/SettingDrawer.js.map +1 -1
- package/lib/components/Layout/components/SettingDrawer/ThemeColorButton.js +2 -13
- package/lib/components/Layout/components/SettingDrawer/ThemeColorButton.js.map +1 -1
- package/lib/components/Layout/components/SideBar.js +10 -7
- package/lib/components/Layout/components/SideBar.js.map +1 -1
- package/lib/components/NavigationComponent.js.map +1 -1
- package/lib/components/ToastAlert.d.ts +1 -1
- package/lib/components/ToastAlert.js +4 -4
- package/lib/components/ToastAlert.js.map +1 -1
- package/lib/components/UnAuthenticatedComponent.js +9 -9
- package/lib/components/UnAuthenticatedComponent.js.map +1 -1
- package/lib/components/WithConfiguration.d.ts +2 -2
- package/lib/components/WithConfiguration.js +4 -4
- package/lib/components/WithConfiguration.js.map +1 -1
- package/lib/components/WithPermission.js +1 -1
- package/lib/components/WithPermission.js.map +1 -1
- package/lib/components/WithPolicy.d.ts +2 -1
- package/lib/components/WithPolicy.js +1 -1
- package/lib/components/WithPolicy.js.map +1 -1
- package/lib/components/index.d.ts +0 -1
- package/lib/components/index.js +0 -1
- package/lib/components/index.js.map +1 -1
- package/lib/components/with-interactions-lifecycle-managed.js +11 -13
- package/lib/components/with-interactions-lifecycle-managed.js.map +1 -1
- package/lib/components/with-interactions-managed.js +5 -4
- package/lib/components/with-interactions-managed.js.map +1 -1
- package/lib/containers/layout/ProLayout.js +2 -2
- package/lib/containers/layout/ProLayout.js.map +1 -1
- package/lib/index.d.ts +3 -0
- package/lib/index.js +5 -5
- package/lib/index.js.map +1 -1
- package/lib/interfaces/settings.d.ts +0 -1
- package/lib/redux/settings.d.ts +0 -1
- package/lib/utils/generateMobileNavigations.js +2 -26
- package/lib/utils/generateMobileNavigations.js.map +1 -1
- package/package.json +8 -37
- package/src/components/AuthWrapper.tsx +3 -6
- package/src/components/ErrorBounday.tsx +19 -18
- package/src/components/Fallback.tsx +58 -54
- package/src/components/Layout/components/BasicLayout.tsx +2 -2
- package/src/components/Layout/components/BottomTabBar.tsx +101 -92
- package/src/components/Layout/components/Drawer.tsx +28 -31
- package/src/components/Layout/components/Header.tsx +27 -26
- package/src/components/Layout/components/Sample.tsx +1 -1
- package/src/components/Layout/components/SettingDrawer/LayoutButton.tsx +29 -15
- package/src/components/Layout/components/SettingDrawer/SettingDrawer.tsx +57 -49
- package/src/components/Layout/components/SettingDrawer/ThemeColorButton.tsx +5 -14
- package/src/components/Layout/components/SideBar.tsx +17 -12
- package/src/components/NavigationComponent.tsx +1 -1
- package/src/components/ToastAlert.tsx +13 -13
- package/src/components/UnAuthenticatedComponent.tsx +29 -19
- package/src/components/WithConfiguration.tsx +6 -6
- package/src/components/WithPermission.tsx +1 -1
- package/src/components/WithPolicy.tsx +4 -4
- package/src/components/index.ts +0 -1
- package/src/components/with-interactions-lifecycle-managed.tsx +18 -13
- package/src/components/with-interactions-managed.tsx +10 -5
- package/src/containers/layout/ProLayout.tsx +3 -3
- package/src/index.ts +7 -6
- package/src/interfaces/settings.ts +0 -1
- package/src/utils/generateMobileNavigations.ts +1 -29
- package/tsconfig.json +9 -3
- package/lib/components/ui/IconSymbol.d.ts +0 -19
- package/lib/components/ui/IconSymbol.ios.d.ts +0 -10
- package/lib/components/ui/IconSymbol.ios.js +0 -12
- package/lib/components/ui/IconSymbol.ios.js.map +0 -1
- package/lib/components/ui/IconSymbol.js +0 -21
- package/lib/components/ui/IconSymbol.js.map +0 -1
- package/lib/components/ui/TabBarBackground.d.ts +0 -2
- package/lib/components/ui/TabBarBackground.ios.d.ts +0 -3
- package/lib/components/ui/TabBarBackground.ios.js +0 -20
- package/lib/components/ui/TabBarBackground.ios.js.map +0 -1
- package/lib/components/ui/TabBarBackground.js +0 -6
- package/lib/components/ui/TabBarBackground.js.map +0 -1
- package/lib/components/ui/accordion/index.d.ts +0 -193
- package/lib/components/ui/accordion/index.js +0 -177
- package/lib/components/ui/accordion/index.js.map +0 -1
- package/lib/components/ui/accordion/index.web.d.ts +0 -209
- package/lib/components/ui/accordion/index.web.js +0 -156
- package/lib/components/ui/accordion/index.web.js.map +0 -1
- package/lib/components/ui/actionsheet/index.d.ts +0 -727
- package/lib/components/ui/actionsheet/index.js +0 -274
- package/lib/components/ui/actionsheet/index.js.map +0 -1
- package/lib/components/ui/actionsheet/index.web.d.ts +0 -872
- package/lib/components/ui/actionsheet/index.web.js +0 -286
- package/lib/components/ui/actionsheet/index.web.js.map +0 -1
- package/lib/components/ui/alert/index.d.ts +0 -479
- package/lib/components/ui/alert/index.js +0 -153
- package/lib/components/ui/alert/index.js.map +0 -1
- package/lib/components/ui/alert/index.web.d.ts +0 -135
- package/lib/components/ui/alert/index.web.js +0 -38
- package/lib/components/ui/alert/index.web.js.map +0 -1
- package/lib/components/ui/alert-dialog/index.d.ts +0 -53
- package/lib/components/ui/alert-dialog/index.js +0 -137
- package/lib/components/ui/alert-dialog/index.js.map +0 -1
- package/lib/components/ui/alert-dialog/index.web.d.ts +0 -58
- package/lib/components/ui/alert-dialog/index.web.js +0 -139
- package/lib/components/ui/alert-dialog/index.web.js.map +0 -1
- package/lib/components/ui/avatar/index.d.ts +0 -144
- package/lib/components/ui/avatar/index.js +0 -99
- package/lib/components/ui/avatar/index.js.map +0 -1
- package/lib/components/ui/avatar/index.web.d.ts +0 -21
- package/lib/components/ui/avatar/index.web.js +0 -92
- package/lib/components/ui/avatar/index.web.js.map +0 -1
- package/lib/components/ui/badge/index.d.ts +0 -386
- package/lib/components/ui/badge/index.js +0 -139
- package/lib/components/ui/badge/index.js.map +0 -1
- package/lib/components/ui/badge/index.web.d.ts +0 -382
- package/lib/components/ui/badge/index.web.js +0 -138
- package/lib/components/ui/badge/index.web.js.map +0 -1
- package/lib/components/ui/box/index.d.ts +0 -7
- package/lib/components/ui/box/index.js +0 -9
- package/lib/components/ui/box/index.js.map +0 -1
- package/lib/components/ui/box/index.web.d.ts +0 -6
- package/lib/components/ui/box/index.web.js +0 -8
- package/lib/components/ui/box/index.web.js.map +0 -1
- package/lib/components/ui/box/styles.d.ts +0 -1
- package/lib/components/ui/box/styles.js +0 -9
- package/lib/components/ui/box/styles.js.map +0 -1
- package/lib/components/ui/button/index.d.ts +0 -529
- package/lib/components/ui/button/index.js +0 -280
- package/lib/components/ui/button/index.js.map +0 -1
- package/lib/components/ui/button/index.web.d.ts +0 -247
- package/lib/components/ui/button/index.web.js +0 -57
- package/lib/components/ui/button/index.web.js.map +0 -1
- package/lib/components/ui/card/index.d.ts +0 -129
- package/lib/components/ui/card/index.js +0 -9
- package/lib/components/ui/card/index.js.map +0 -1
- package/lib/components/ui/card/index.web.d.ts +0 -126
- package/lib/components/ui/card/index.web.js +0 -8
- package/lib/components/ui/card/index.web.js.map +0 -1
- package/lib/components/ui/card/styles.d.ts +0 -123
- package/lib/components/ui/card/styles.js +0 -20
- package/lib/components/ui/card/styles.js.map +0 -1
- package/lib/components/ui/center/index.d.ts +0 -5
- package/lib/components/ui/center/index.js +0 -9
- package/lib/components/ui/center/index.js.map +0 -1
- package/lib/components/ui/center/index.web.d.ts +0 -4
- package/lib/components/ui/center/index.web.js +0 -8
- package/lib/components/ui/center/index.web.js.map +0 -1
- package/lib/components/ui/center/styles.d.ts +0 -1
- package/lib/components/ui/center/styles.js +0 -7
- package/lib/components/ui/center/styles.js.map +0 -1
- package/lib/components/ui/checkbox/index.d.ts +0 -115
- package/lib/components/ui/checkbox/index.js +0 -127
- package/lib/components/ui/checkbox/index.js.map +0 -1
- package/lib/components/ui/checkbox/index.web.d.ts +0 -265
- package/lib/components/ui/checkbox/index.web.js +0 -77
- package/lib/components/ui/checkbox/index.web.js.map +0 -1
- package/lib/components/ui/divider/index.d.ts +0 -54
- package/lib/components/ui/divider/index.js +0 -22
- package/lib/components/ui/divider/index.js.map +0 -1
- package/lib/components/ui/divider/index.web.d.ts +0 -53
- package/lib/components/ui/divider/index.web.js +0 -21
- package/lib/components/ui/divider/index.web.js.map +0 -1
- package/lib/components/ui/drawer/index.d.ts +0 -203
- package/lib/components/ui/drawer/index.js +0 -198
- package/lib/components/ui/drawer/index.js.map +0 -1
- package/lib/components/ui/drawer/index.web.d.ts +0 -174
- package/lib/components/ui/drawer/index.web.js +0 -65
- package/lib/components/ui/drawer/index.web.js.map +0 -1
- package/lib/components/ui/fab/index.d.ts +0 -520
- package/lib/components/ui/fab/index.js +0 -142
- package/lib/components/ui/fab/index.js.map +0 -1
- package/lib/components/ui/fab/index.web.d.ts +0 -520
- package/lib/components/ui/fab/index.web.js +0 -146
- package/lib/components/ui/fab/index.web.js.map +0 -1
- package/lib/components/ui/flat-list/index.d.ts +0 -1
- package/lib/components/ui/flat-list/index.js +0 -3
- package/lib/components/ui/flat-list/index.js.map +0 -1
- package/lib/components/ui/flat-list/index.web.d.ts +0 -21
- package/lib/components/ui/flat-list/index.web.js +0 -41
- package/lib/components/ui/flat-list/index.web.js.map +0 -1
- package/lib/components/ui/form-control/index.d.ts +0 -2072
- package/lib/components/ui/form-control/index.js +0 -290
- package/lib/components/ui/form-control/index.js.map +0 -1
- package/lib/components/ui/form-control/index.web.d.ts +0 -2071
- package/lib/components/ui/form-control/index.web.js +0 -290
- package/lib/components/ui/form-control/index.web.js.map +0 -1
- package/lib/components/ui/gluestack-ui-provider/config.d.ts +0 -4
- package/lib/components/ui/gluestack-ui-provider/config.js +0 -287
- package/lib/components/ui/gluestack-ui-provider/config.js.map +0 -1
- package/lib/components/ui/gluestack-ui-provider/index.d.ts +0 -8
- package/lib/components/ui/gluestack-ui-provider/index.js +0 -22
- package/lib/components/ui/gluestack-ui-provider/index.js.map +0 -1
- package/lib/components/ui/gluestack-ui-provider/index.web.d.ts +0 -7
- package/lib/components/ui/gluestack-ui-provider/index.web.js +0 -69
- package/lib/components/ui/gluestack-ui-provider/index.web.js.map +0 -1
- package/lib/components/ui/gluestack-ui-provider/script.d.ts +0 -1
- package/lib/components/ui/gluestack-ui-provider/script.js +0 -17
- package/lib/components/ui/gluestack-ui-provider/script.js.map +0 -1
- package/lib/components/ui/gluestack-ui-provider/types.d.ts +0 -1
- package/lib/components/ui/gluestack-ui-provider/types.js +0 -2
- package/lib/components/ui/gluestack-ui-provider/types.js.map +0 -1
- package/lib/components/ui/grid/index.d.ts +0 -27
- package/lib/components/ui/grid/index.js +0 -175
- package/lib/components/ui/grid/index.js.map +0 -1
- package/lib/components/ui/grid/index.web.d.ts +0 -23
- package/lib/components/ui/grid/index.web.js +0 -20
- package/lib/components/ui/grid/index.web.js.map +0 -1
- package/lib/components/ui/grid/styles.d.ts +0 -2
- package/lib/components/ui/grid/styles.js +0 -11
- package/lib/components/ui/grid/styles.js.map +0 -1
- package/lib/components/ui/heading/index.d.ts +0 -335
- package/lib/components/ui/heading/index.js +0 -135
- package/lib/components/ui/heading/index.js.map +0 -1
- package/lib/components/ui/heading/index.web.d.ts +0 -335
- package/lib/components/ui/heading/index.web.js +0 -113
- package/lib/components/ui/heading/index.web.js.map +0 -1
- package/lib/components/ui/heading/styles.d.ts +0 -330
- package/lib/components/ui/heading/styles.js +0 -43
- package/lib/components/ui/heading/styles.js.map +0 -1
- package/lib/components/ui/hstack/index.d.ts +0 -150
- package/lib/components/ui/hstack/index.js +0 -9
- package/lib/components/ui/hstack/index.js.map +0 -1
- package/lib/components/ui/hstack/index.web.d.ts +0 -148
- package/lib/components/ui/hstack/index.web.js +0 -8
- package/lib/components/ui/hstack/index.web.js.map +0 -1
- package/lib/components/ui/hstack/styles.d.ts +0 -145
- package/lib/components/ui/hstack/styles.js +0 -24
- package/lib/components/ui/hstack/styles.js.map +0 -1
- package/lib/components/ui/icon/index.d.ts +0 -364
- package/lib/components/ui/icon/index.js +0 -565
- package/lib/components/ui/icon/index.js.map +0 -1
- package/lib/components/ui/icon/index.web.d.ts +0 -489
- package/lib/components/ui/icon/index.web.js +0 -555
- package/lib/components/ui/icon/index.web.js.map +0 -1
- package/lib/components/ui/image/index.d.ts +0 -132
- package/lib/components/ui/image/index.js +0 -33
- package/lib/components/ui/image/index.js.map +0 -1
- package/lib/components/ui/image/index.web.d.ts +0 -142
- package/lib/components/ui/image/index.web.js +0 -29
- package/lib/components/ui/image/index.web.js.map +0 -1
- package/lib/components/ui/image-background/index.d.ts +0 -3
- package/lib/components/ui/image-background/index.js +0 -11
- package/lib/components/ui/image-background/index.js.map +0 -1
- package/lib/components/ui/image-background/index.web.d.ts +0 -8
- package/lib/components/ui/image-background/index.web.js +0 -23
- package/lib/components/ui/image-background/index.web.js.map +0 -1
- package/lib/components/ui/index.d.ts +0 -54
- package/lib/components/ui/index.js +0 -55
- package/lib/components/ui/index.js.map +0 -1
- package/lib/components/ui/input/index.d.ts +0 -262
- package/lib/components/ui/input/index.js +0 -121
- package/lib/components/ui/input/index.js.map +0 -1
- package/lib/components/ui/input/index.web.d.ts +0 -163
- package/lib/components/ui/input/index.web.js +0 -50
- package/lib/components/ui/input/index.web.js.map +0 -1
- package/lib/components/ui/input-accessory-view/index.d.ts +0 -1
- package/lib/components/ui/input-accessory-view/index.js +0 -3
- package/lib/components/ui/input-accessory-view/index.js.map +0 -1
- package/lib/components/ui/input-accessory-view/index.web.d.ts +0 -9
- package/lib/components/ui/input-accessory-view/index.web.js +0 -16
- package/lib/components/ui/input-accessory-view/index.web.js.map +0 -1
- package/lib/components/ui/keyboard-avoiding-view/index.d.ts +0 -1
- package/lib/components/ui/keyboard-avoiding-view/index.js +0 -3
- package/lib/components/ui/keyboard-avoiding-view/index.js.map +0 -1
- package/lib/components/ui/keyboard-avoiding-view/index.web.d.ts +0 -9
- package/lib/components/ui/keyboard-avoiding-view/index.web.js +0 -8
- package/lib/components/ui/keyboard-avoiding-view/index.web.js.map +0 -1
- package/lib/components/ui/link/index.d.ts +0 -369
- package/lib/components/ui/link/index.js +0 -69
- package/lib/components/ui/link/index.js.map +0 -1
- package/lib/components/ui/link/index.web.d.ts +0 -365
- package/lib/components/ui/link/index.web.js +0 -70
- package/lib/components/ui/link/index.web.js.map +0 -1
- package/lib/components/ui/menu/index.d.ts +0 -376
- package/lib/components/ui/menu/index.js +0 -120
- package/lib/components/ui/menu/index.js.map +0 -1
- package/lib/components/ui/menu/index.web.d.ts +0 -142
- package/lib/components/ui/menu/index.web.js +0 -83
- package/lib/components/ui/menu/index.web.js.map +0 -1
- package/lib/components/ui/modal/index.d.ts +0 -142
- package/lib/components/ui/modal/index.js +0 -137
- package/lib/components/ui/modal/index.js.map +0 -1
- package/lib/components/ui/modal/index.web.d.ts +0 -111
- package/lib/components/ui/modal/index.web.js +0 -58
- package/lib/components/ui/modal/index.web.js.map +0 -1
- package/lib/components/ui/popover/index.d.ts +0 -306
- package/lib/components/ui/popover/index.js +0 -172
- package/lib/components/ui/popover/index.js.map +0 -1
- package/lib/components/ui/popover/index.web.d.ts +0 -305
- package/lib/components/ui/popover/index.web.js +0 -184
- package/lib/components/ui/popover/index.web.js.map +0 -1
- package/lib/components/ui/portal/index.d.ts +0 -2
- package/lib/components/ui/portal/index.js +0 -9
- package/lib/components/ui/portal/index.js.map +0 -1
- package/lib/components/ui/portal/index.web.d.ts +0 -9
- package/lib/components/ui/portal/index.web.js +0 -16
- package/lib/components/ui/portal/index.web.js.map +0 -1
- package/lib/components/ui/pressable/index.d.ts +0 -13
- package/lib/components/ui/pressable/index.js +0 -20
- package/lib/components/ui/pressable/index.js.map +0 -1
- package/lib/components/ui/pressable/index.web.d.ts +0 -8
- package/lib/components/ui/pressable/index.web.js +0 -44
- package/lib/components/ui/pressable/index.web.js.map +0 -1
- package/lib/components/ui/progress/index.d.ts +0 -174
- package/lib/components/ui/progress/index.js +0 -127
- package/lib/components/ui/progress/index.js.map +0 -1
- package/lib/components/ui/progress/index.web.d.ts +0 -237
- package/lib/components/ui/progress/index.web.js +0 -73
- package/lib/components/ui/progress/index.web.js.map +0 -1
- package/lib/components/ui/radio/index.d.ts +0 -160
- package/lib/components/ui/radio/index.js +0 -122
- package/lib/components/ui/radio/index.js.map +0 -1
- package/lib/components/ui/radio/index.web.d.ts +0 -224
- package/lib/components/ui/radio/index.web.js +0 -69
- package/lib/components/ui/radio/index.web.js.map +0 -1
- package/lib/components/ui/refresh-control/index.d.ts +0 -1
- package/lib/components/ui/refresh-control/index.js +0 -3
- package/lib/components/ui/refresh-control/index.js.map +0 -1
- package/lib/components/ui/refresh-control/index.web.d.ts +0 -14
- package/lib/components/ui/refresh-control/index.web.js +0 -69
- package/lib/components/ui/refresh-control/index.web.js.map +0 -1
- package/lib/components/ui/safe-area-view/index.d.ts +0 -6
- package/lib/components/ui/safe-area-view/index.js +0 -9
- package/lib/components/ui/safe-area-view/index.js.map +0 -1
- package/lib/components/ui/safe-area-view/index.web.d.ts +0 -6
- package/lib/components/ui/safe-area-view/index.web.js +0 -10
- package/lib/components/ui/safe-area-view/index.web.js.map +0 -1
- package/lib/components/ui/safe-area-view/styles.d.ts +0 -1
- package/lib/components/ui/safe-area-view/styles.js +0 -9
- package/lib/components/ui/safe-area-view/styles.js.map +0 -1
- package/lib/components/ui/scroll-view/index.d.ts +0 -1
- package/lib/components/ui/scroll-view/index.js +0 -3
- package/lib/components/ui/scroll-view/index.js.map +0 -1
- package/lib/components/ui/scroll-view/index.web.d.ts +0 -44
- package/lib/components/ui/scroll-view/index.web.js +0 -41
- package/lib/components/ui/scroll-view/index.web.js.map +0 -1
- package/lib/components/ui/section-list/index.d.ts +0 -1
- package/lib/components/ui/section-list/index.js +0 -3
- package/lib/components/ui/section-list/index.js.map +0 -1
- package/lib/components/ui/section-list/index.web.d.ts +0 -26
- package/lib/components/ui/section-list/index.web.js +0 -35
- package/lib/components/ui/section-list/index.web.js.map +0 -1
- package/lib/components/ui/select/index.d.ts +0 -1690
- package/lib/components/ui/select/index.js +0 -155
- package/lib/components/ui/select/index.js.map +0 -1
- package/lib/components/ui/select/index.web.d.ts +0 -162
- package/lib/components/ui/select/index.web.js +0 -51
- package/lib/components/ui/select/index.web.js.map +0 -1
- package/lib/components/ui/select/select-actionsheet.d.ts +0 -896
- package/lib/components/ui/select/select-actionsheet.js +0 -275
- package/lib/components/ui/select/select-actionsheet.js.map +0 -1
- package/lib/components/ui/skeleton/index.d.ts +0 -268
- package/lib/components/ui/skeleton/index.js +0 -63
- package/lib/components/ui/skeleton/index.js.map +0 -1
- package/lib/components/ui/skeleton/index.web.d.ts +0 -267
- package/lib/components/ui/skeleton/index.web.js +0 -37
- package/lib/components/ui/skeleton/index.web.js.map +0 -1
- package/lib/components/ui/skeleton/styles.d.ts +0 -257
- package/lib/components/ui/skeleton/styles.js +0 -35
- package/lib/components/ui/skeleton/styles.js.map +0 -1
- package/lib/components/ui/slider/index.d.ts +0 -211
- package/lib/components/ui/slider/index.js +0 -180
- package/lib/components/ui/slider/index.js.map +0 -1
- package/lib/components/ui/slider/index.web.d.ts +0 -223
- package/lib/components/ui/slider/index.web.js +0 -189
- package/lib/components/ui/slider/index.web.js.map +0 -1
- package/lib/components/ui/spinner/index.d.ts +0 -4
- package/lib/components/ui/spinner/index.js +0 -15
- package/lib/components/ui/spinner/index.js.map +0 -1
- package/lib/components/ui/spinner/index.web.d.ts +0 -176
- package/lib/components/ui/spinner/index.web.js +0 -55
- package/lib/components/ui/spinner/index.web.js.map +0 -1
- package/lib/components/ui/status-bar/index.d.ts +0 -1
- package/lib/components/ui/status-bar/index.js +0 -3
- package/lib/components/ui/status-bar/index.js.map +0 -1
- package/lib/components/ui/status-bar/index.web.d.ts +0 -14
- package/lib/components/ui/status-bar/index.web.js +0 -7
- package/lib/components/ui/status-bar/index.web.js.map +0 -1
- package/lib/components/ui/switch/index.d.ts +0 -72
- package/lib/components/ui/switch/index.js +0 -25
- package/lib/components/ui/switch/index.js.map +0 -1
- package/lib/components/ui/switch/index.web.d.ts +0 -71
- package/lib/components/ui/switch/index.web.js +0 -27
- package/lib/components/ui/switch/index.web.js.map +0 -1
- package/lib/components/ui/table/index.d.ts +0 -17
- package/lib/components/ui/table/index.js +0 -96
- package/lib/components/ui/table/index.js.map +0 -1
- package/lib/components/ui/table/index.web.d.ts +0 -10
- package/lib/components/ui/table/index.web.js +0 -60
- package/lib/components/ui/table/index.web.js.map +0 -1
- package/lib/components/ui/table/styles.d.ts +0 -75
- package/lib/components/ui/table/styles.js +0 -36
- package/lib/components/ui/table/styles.js.map +0 -1
- package/lib/components/ui/tabs/index.web.d.ts +0 -351
- package/lib/components/ui/tabs/index.web.js +0 -120
- package/lib/components/ui/tabs/index.web.js.map +0 -1
- package/lib/components/ui/text/index.d.ts +0 -358
- package/lib/components/ui/text/index.js +0 -19
- package/lib/components/ui/text/index.js.map +0 -1
- package/lib/components/ui/text/index.web.d.ts +0 -6
- package/lib/components/ui/text/index.web.js +0 -18
- package/lib/components/ui/text/index.web.js.map +0 -1
- package/lib/components/ui/text/styles.d.ts +0 -352
- package/lib/components/ui/text/styles.js +0 -45
- package/lib/components/ui/text/styles.js.map +0 -1
- package/lib/components/ui/textarea/index.d.ts +0 -129
- package/lib/components/ui/textarea/index.js +0 -52
- package/lib/components/ui/textarea/index.js.map +0 -1
- package/lib/components/ui/textarea/index.web.d.ts +0 -162
- package/lib/components/ui/textarea/index.web.js +0 -50
- package/lib/components/ui/textarea/index.web.js.map +0 -1
- package/lib/components/ui/toast/index.d.ts +0 -527
- package/lib/components/ui/toast/index.js +0 -165
- package/lib/components/ui/toast/index.js.map +0 -1
- package/lib/components/ui/toast/index.web.d.ts +0 -225
- package/lib/components/ui/toast/index.web.js +0 -80
- package/lib/components/ui/toast/index.web.js.map +0 -1
- package/lib/components/ui/tooltip/index.d.ts +0 -391
- package/lib/components/ui/tooltip/index.js +0 -75
- package/lib/components/ui/tooltip/index.js.map +0 -1
- package/lib/components/ui/tooltip/index.web.d.ts +0 -86
- package/lib/components/ui/tooltip/index.web.js +0 -110
- package/lib/components/ui/tooltip/index.web.js.map +0 -1
- package/lib/components/ui/utils/use-break-point-value.d.ts +0 -14
- package/lib/components/ui/utils/use-break-point-value.js +0 -54
- package/lib/components/ui/utils/use-break-point-value.js.map +0 -1
- package/lib/components/ui/view/index.d.ts +0 -1
- package/lib/components/ui/view/index.js +0 -3
- package/lib/components/ui/view/index.js.map +0 -1
- package/lib/components/ui/view/index.web.d.ts +0 -2
- package/lib/components/ui/view/index.web.js +0 -7
- package/lib/components/ui/view/index.web.js.map +0 -1
- package/lib/components/ui/virtualized-list/index.d.ts +0 -1
- package/lib/components/ui/virtualized-list/index.js +0 -3
- package/lib/components/ui/virtualized-list/index.js.map +0 -1
- package/lib/components/ui/virtualized-list/index.web.d.ts +0 -19
- package/lib/components/ui/virtualized-list/index.web.js +0 -30
- package/lib/components/ui/virtualized-list/index.web.js.map +0 -1
- package/lib/components/ui/vstack/index.d.ts +0 -149
- package/lib/components/ui/vstack/index.js +0 -9
- package/lib/components/ui/vstack/index.js.map +0 -1
- package/lib/components/ui/vstack/index.web.d.ts +0 -6
- package/lib/components/ui/vstack/index.web.js +0 -8
- package/lib/components/ui/vstack/index.web.js.map +0 -1
- package/lib/components/ui/vstack/styles.d.ts +0 -145
- package/lib/components/ui/vstack/styles.js +0 -24
- package/lib/components/ui/vstack/styles.js.map +0 -1
- package/lib/global.css +0 -3
- package/lib/gluestack-ui-base-config.d.ts +0 -8
- package/lib/gluestack-ui-base-config.js +0 -12
- package/lib/gluestack-ui-base-config.js.map +0 -1
- package/lib/nativewind-env.d.ts +0 -1
- package/lib/tailwind-base-config.d.ts +0 -194
- package/lib/tailwind-base-config.js +0 -197
- package/lib/tailwind-base-config.js.map +0 -1
- package/lib/tailwind.config.d.ts +0 -1
- package/lib/tailwind.config.js +0 -197
- package/lib/tailwind.config.js.map +0 -1
- package/src/components/ui/IconSymbol.ios.tsx +0 -33
- package/src/components/ui/IconSymbol.tsx +0 -40
- package/src/components/ui/TabBarBackground.ios.tsx +0 -23
- package/src/components/ui/TabBarBackground.tsx +0 -6
- package/src/components/ui/accordion/index.tsx +0 -304
- package/src/components/ui/accordion/index.web.tsx +0 -294
- package/src/components/ui/actionsheet/index.tsx +0 -499
- package/src/components/ui/actionsheet/index.web.tsx +0 -555
- package/src/components/ui/alert/index.tsx +0 -205
- package/src/components/ui/alert/index.web.tsx +0 -71
- package/src/components/ui/alert-dialog/index.tsx +0 -260
- package/src/components/ui/alert-dialog/index.web.tsx +0 -241
- package/src/components/ui/avatar/index.tsx +0 -162
- package/src/components/ui/avatar/index.web.tsx +0 -150
- package/src/components/ui/badge/index.tsx +0 -188
- package/src/components/ui/badge/index.web.tsx +0 -188
- package/src/components/ui/box/index.tsx +0 -14
- package/src/components/ui/box/index.web.tsx +0 -13
- package/src/components/ui/box/styles.tsx +0 -10
- package/src/components/ui/button/index.tsx +0 -353
- package/src/components/ui/button/index.web.tsx +0 -86
- package/src/components/ui/card/index.tsx +0 -16
- package/src/components/ui/card/index.web.tsx +0 -15
- package/src/components/ui/card/styles.tsx +0 -20
- package/src/components/ui/center/index.tsx +0 -14
- package/src/components/ui/center/index.web.tsx +0 -14
- package/src/components/ui/center/styles.tsx +0 -8
- package/src/components/ui/checkbox/index.tsx +0 -192
- package/src/components/ui/checkbox/index.web.tsx +0 -151
- package/src/components/ui/divider/index.tsx +0 -38
- package/src/components/ui/divider/index.web.tsx +0 -37
- package/src/components/ui/drawer/index.tsx +0 -311
- package/src/components/ui/drawer/index.web.tsx +0 -144
- package/src/components/ui/fab/index.tsx +0 -190
- package/src/components/ui/fab/index.web.tsx +0 -201
- package/src/components/ui/flat-list/index.tsx +0 -2
- package/src/components/ui/flat-list/index.web.tsx +0 -89
- package/src/components/ui/form-control/index.tsx +0 -432
- package/src/components/ui/form-control/index.web.tsx +0 -451
- package/src/components/ui/gluestack-ui-provider/config.ts +0 -309
- package/src/components/ui/gluestack-ui-provider/index.tsx +0 -38
- package/src/components/ui/gluestack-ui-provider/index.web.tsx +0 -88
- package/src/components/ui/gluestack-ui-provider/script.ts +0 -17
- package/src/components/ui/gluestack-ui-provider/types.ts +0 -1
- package/src/components/ui/grid/index.tsx +0 -284
- package/src/components/ui/grid/index.web.tsx +0 -61
- package/src/components/ui/grid/styles.tsx +0 -13
- package/src/components/ui/heading/index.tsx +0 -193
- package/src/components/ui/heading/index.web.tsx +0 -177
- package/src/components/ui/heading/styles.tsx +0 -43
- package/src/components/ui/hstack/index.tsx +0 -17
- package/src/components/ui/hstack/index.web.tsx +0 -15
- package/src/components/ui/hstack/styles.tsx +0 -25
- package/src/components/ui/icon/index.tsx +0 -1202
- package/src/components/ui/icon/index.web.tsx +0 -1190
- package/src/components/ui/image/index.tsx +0 -48
- package/src/components/ui/image/index.web.tsx +0 -43
- package/src/components/ui/image-background/index.tsx +0 -21
- package/src/components/ui/image-background/index.web.tsx +0 -43
- package/src/components/ui/index.ts +0 -54
- package/src/components/ui/input/index.tsx +0 -191
- package/src/components/ui/input/index.web.tsx +0 -80
- package/src/components/ui/input-accessory-view/index.tsx +0 -2
- package/src/components/ui/input-accessory-view/index.web.tsx +0 -31
- package/src/components/ui/keyboard-avoiding-view/index.tsx +0 -2
- package/src/components/ui/keyboard-avoiding-view/index.web.tsx +0 -23
- package/src/components/ui/link/index.tsx +0 -92
- package/src/components/ui/link/index.web.tsx +0 -103
- package/src/components/ui/menu/index.tsx +0 -179
- package/src/components/ui/menu/index.web.tsx +0 -159
- package/src/components/ui/modal/index.tsx +0 -244
- package/src/components/ui/modal/index.web.tsx +0 -135
- package/src/components/ui/popover/index.tsx +0 -309
- package/src/components/ui/popover/index.web.tsx +0 -326
- package/src/components/ui/portal/index.tsx +0 -12
- package/src/components/ui/portal/index.web.tsx +0 -34
- package/src/components/ui/pressable/index.tsx +0 -34
- package/src/components/ui/pressable/index.web.tsx +0 -73
- package/src/components/ui/progress/index.tsx +0 -160
- package/src/components/ui/progress/index.web.tsx +0 -123
- package/src/components/ui/radio/index.tsx +0 -178
- package/src/components/ui/radio/index.web.tsx +0 -130
- package/src/components/ui/refresh-control/index.tsx +0 -2
- package/src/components/ui/refresh-control/index.web.tsx +0 -104
- package/src/components/ui/safe-area-view/index.tsx +0 -22
- package/src/components/ui/safe-area-view/index.web.tsx +0 -24
- package/src/components/ui/safe-area-view/styles.tsx +0 -10
- package/src/components/ui/scroll-view/index.tsx +0 -2
- package/src/components/ui/scroll-view/index.web.tsx +0 -142
- package/src/components/ui/section-list/index.tsx +0 -2
- package/src/components/ui/section-list/index.web.tsx +0 -93
- package/src/components/ui/select/index.tsx +0 -251
- package/src/components/ui/select/index.web.tsx +0 -83
- package/src/components/ui/select/select-actionsheet.tsx +0 -503
- package/src/components/ui/skeleton/index.tsx +0 -113
- package/src/components/ui/skeleton/index.web.tsx +0 -92
- package/src/components/ui/skeleton/styles.tsx +0 -35
- package/src/components/ui/slider/index.tsx +0 -239
- package/src/components/ui/slider/index.web.tsx +0 -283
- package/src/components/ui/spinner/index.tsx +0 -31
- package/src/components/ui/spinner/index.web.tsx +0 -81
- package/src/components/ui/status-bar/index.tsx +0 -2
- package/src/components/ui/status-bar/index.web.tsx +0 -20
- package/src/components/ui/switch/index.tsx +0 -33
- package/src/components/ui/switch/index.web.tsx +0 -44
- package/src/components/ui/table/index.tsx +0 -171
- package/src/components/ui/table/index.web.tsx +0 -95
- package/src/components/ui/table/styles.tsx +0 -44
- package/src/components/ui/tabs/index.web.tsx +0 -205
- package/src/components/ui/text/index.tsx +0 -53
- package/src/components/ui/text/index.web.tsx +0 -45
- package/src/components/ui/text/styles.tsx +0 -47
- package/src/components/ui/textarea/index.tsx +0 -83
- package/src/components/ui/textarea/index.web.tsx +0 -86
- package/src/components/ui/toast/index.tsx +0 -218
- package/src/components/ui/toast/index.web.tsx +0 -132
- package/src/components/ui/tooltip/index.tsx +0 -104
- package/src/components/ui/tooltip/index.web.tsx +0 -155
- package/src/components/ui/utils/use-break-point-value.ts +0 -79
- package/src/components/ui/view/index.tsx +0 -2
- package/src/components/ui/view/index.web.tsx +0 -15
- package/src/components/ui/virtualized-list/index.tsx +0 -2
- package/src/components/ui/virtualized-list/index.web.tsx +0 -84
- package/src/components/ui/vstack/index.tsx +0 -17
- package/src/components/ui/vstack/index.web.tsx +0 -16
- package/src/components/ui/vstack/styles.tsx +0 -25
- package/src/global.css +0 -3
- package/src/gluestack-ui-base-config.js +0 -12
- package/src/gluestack-ui.config.json +0 -10
- package/src/nativewind-env.d.ts +0 -1
- package/src/tailwind-base-config.js +0 -197
- package/src/tailwind.config.js +0 -198
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { VariantProps } from '@gluestack-ui/nativewind-utils';
|
|
3
|
-
declare const alertStyle: import("@gluestack-ui/nativewind-utils/types").TVReturnType<{
|
|
4
|
-
variant: {
|
|
5
|
-
solid: string;
|
|
6
|
-
outline: string;
|
|
7
|
-
accent: string;
|
|
8
|
-
};
|
|
9
|
-
status: {
|
|
10
|
-
info: string;
|
|
11
|
-
success: string;
|
|
12
|
-
warning: string;
|
|
13
|
-
error: string;
|
|
14
|
-
};
|
|
15
|
-
} | ({
|
|
16
|
-
variant: {
|
|
17
|
-
solid: string;
|
|
18
|
-
outline: string;
|
|
19
|
-
accent: string;
|
|
20
|
-
};
|
|
21
|
-
status: {
|
|
22
|
-
info: string;
|
|
23
|
-
success: string;
|
|
24
|
-
warning: string;
|
|
25
|
-
error: string;
|
|
26
|
-
};
|
|
27
|
-
} & {
|
|
28
|
-
variant: {
|
|
29
|
-
solid: import("tailwind-merge").ClassNameValue | {
|
|
30
|
-
base?: import("tailwind-merge").ClassNameValue;
|
|
31
|
-
};
|
|
32
|
-
outline: import("tailwind-merge").ClassNameValue | {
|
|
33
|
-
base?: import("tailwind-merge").ClassNameValue;
|
|
34
|
-
};
|
|
35
|
-
accent: import("tailwind-merge").ClassNameValue | {
|
|
36
|
-
base?: import("tailwind-merge").ClassNameValue;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
status: {
|
|
40
|
-
info: import("tailwind-merge").ClassNameValue | {
|
|
41
|
-
base?: import("tailwind-merge").ClassNameValue;
|
|
42
|
-
};
|
|
43
|
-
success: import("tailwind-merge").ClassNameValue | {
|
|
44
|
-
base?: import("tailwind-merge").ClassNameValue;
|
|
45
|
-
};
|
|
46
|
-
warning: import("tailwind-merge").ClassNameValue | {
|
|
47
|
-
base?: import("tailwind-merge").ClassNameValue;
|
|
48
|
-
};
|
|
49
|
-
error: import("tailwind-merge").ClassNameValue | {
|
|
50
|
-
base?: import("tailwind-merge").ClassNameValue;
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
}), undefined, "rounded-lg p-4 mb-4", import("tailwind-variants/dist/config").TVConfig<{
|
|
54
|
-
variant: {
|
|
55
|
-
solid: string;
|
|
56
|
-
outline: string;
|
|
57
|
-
accent: string;
|
|
58
|
-
};
|
|
59
|
-
status: {
|
|
60
|
-
info: string;
|
|
61
|
-
success: string;
|
|
62
|
-
warning: string;
|
|
63
|
-
error: string;
|
|
64
|
-
};
|
|
65
|
-
}, {
|
|
66
|
-
variant: {
|
|
67
|
-
solid: string;
|
|
68
|
-
outline: string;
|
|
69
|
-
accent: string;
|
|
70
|
-
};
|
|
71
|
-
status: {
|
|
72
|
-
info: string;
|
|
73
|
-
success: string;
|
|
74
|
-
warning: string;
|
|
75
|
-
error: string;
|
|
76
|
-
};
|
|
77
|
-
}>, {
|
|
78
|
-
variant: {
|
|
79
|
-
solid: string;
|
|
80
|
-
outline: string;
|
|
81
|
-
accent: string;
|
|
82
|
-
};
|
|
83
|
-
status: {
|
|
84
|
-
info: string;
|
|
85
|
-
success: string;
|
|
86
|
-
warning: string;
|
|
87
|
-
error: string;
|
|
88
|
-
};
|
|
89
|
-
}, undefined, import("@gluestack-ui/nativewind-utils/types").TVReturnType<{
|
|
90
|
-
variant: {
|
|
91
|
-
solid: string;
|
|
92
|
-
outline: string;
|
|
93
|
-
accent: string;
|
|
94
|
-
};
|
|
95
|
-
status: {
|
|
96
|
-
info: string;
|
|
97
|
-
success: string;
|
|
98
|
-
warning: string;
|
|
99
|
-
error: string;
|
|
100
|
-
};
|
|
101
|
-
}, undefined, "rounded-lg p-4 mb-4", import("tailwind-variants/dist/config").TVConfig<{
|
|
102
|
-
variant: {
|
|
103
|
-
solid: string;
|
|
104
|
-
outline: string;
|
|
105
|
-
accent: string;
|
|
106
|
-
};
|
|
107
|
-
status: {
|
|
108
|
-
info: string;
|
|
109
|
-
success: string;
|
|
110
|
-
warning: string;
|
|
111
|
-
error: string;
|
|
112
|
-
};
|
|
113
|
-
}, {
|
|
114
|
-
variant: {
|
|
115
|
-
solid: string;
|
|
116
|
-
outline: string;
|
|
117
|
-
accent: string;
|
|
118
|
-
};
|
|
119
|
-
status: {
|
|
120
|
-
info: string;
|
|
121
|
-
success: string;
|
|
122
|
-
warning: string;
|
|
123
|
-
error: string;
|
|
124
|
-
};
|
|
125
|
-
}>, unknown, unknown, undefined>>;
|
|
126
|
-
export declare const AlertIcon: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
127
|
-
export declare const AlertText: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
128
|
-
export declare const AlertTitle: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
129
|
-
export declare const AlertDescription: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
130
|
-
type IAlertProps = React.ComponentProps<'div'> & {
|
|
131
|
-
variant?: VariantProps<typeof alertStyle>['variant'];
|
|
132
|
-
status?: VariantProps<typeof alertStyle>['status'];
|
|
133
|
-
};
|
|
134
|
-
declare const Alert: React.ForwardRefExoticComponent<Omit<IAlertProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
135
|
-
export { Alert };
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import React, { forwardRef } from 'react';
|
|
3
|
-
import { tva } from '@gluestack-ui/nativewind-utils/tva';
|
|
4
|
-
const SCOPE = 'ALERT';
|
|
5
|
-
const alertStyle = tva({
|
|
6
|
-
base: 'rounded-lg p-4 mb-4',
|
|
7
|
-
variants: {
|
|
8
|
-
variant: {
|
|
9
|
-
solid: '',
|
|
10
|
-
outline: 'border',
|
|
11
|
-
accent: 'border-l-4',
|
|
12
|
-
},
|
|
13
|
-
status: {
|
|
14
|
-
info: 'bg-blue-50 text-blue-700 border-blue-500',
|
|
15
|
-
success: 'bg-green-50 text-green-700 border-green-500',
|
|
16
|
-
warning: 'bg-yellow-50 text-yellow-700 border-yellow-500',
|
|
17
|
-
error: 'bg-red-50 text-red-700 border-red-500',
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
defaultVariants: {
|
|
21
|
-
variant: 'solid',
|
|
22
|
-
status: 'info',
|
|
23
|
-
},
|
|
24
|
-
});
|
|
25
|
-
export const AlertIcon = forwardRef(({ className, children, ...props }, ref) => (React.createElement("div", { ref: ref, className: `mr-3 flex-shrink-0 ${className || ''}`, ...props }, children)));
|
|
26
|
-
AlertIcon.displayName = 'AlertIcon';
|
|
27
|
-
export const AlertText = forwardRef(({ className, ...props }, ref) => (React.createElement("div", { ref: ref, className: `flex-1 ${className || ''}`, ...props })));
|
|
28
|
-
AlertText.displayName = 'AlertText';
|
|
29
|
-
export const AlertTitle = forwardRef(({ className, ...props }, ref) => (React.createElement("div", { ref: ref, className: `font-semibold mb-1 ${className || ''}`, ...props })));
|
|
30
|
-
AlertTitle.displayName = 'AlertTitle';
|
|
31
|
-
export const AlertDescription = forwardRef(({ className, ...props }, ref) => React.createElement("div", { ref: ref, className: className, ...props }));
|
|
32
|
-
AlertDescription.displayName = 'AlertDescription';
|
|
33
|
-
const Alert = forwardRef(({ className, variant, status, ...props }, ref) => {
|
|
34
|
-
return React.createElement("div", { ref: ref, role: "alert", className: alertStyle({ variant, status, class: className }), ...props });
|
|
35
|
-
});
|
|
36
|
-
Alert.displayName = 'Alert';
|
|
37
|
-
export { Alert };
|
|
38
|
-
//# sourceMappingURL=index.web.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.web.js","sourceRoot":"","sources":["../../../../src/components/ui/alert/index.web.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AACb,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,GAAG,EAAE,MAAM,oCAAoC,CAAC;AAKzD,MAAM,KAAK,GAAG,OAAO,CAAC;AAEtB,MAAM,UAAU,GAAG,GAAG,CAAC;IACnB,IAAI,EAAE,qBAAqB;IAC3B,QAAQ,EAAE;QACN,OAAO,EAAE;YACL,KAAK,EAAE,EAAE;YACT,OAAO,EAAE,QAAQ;YACjB,MAAM,EAAE,YAAY;SACvB;QACD,MAAM,EAAE;YACJ,IA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E,SAAS,KAAM,KAAK,GAAI,CACvF,CAAC;AAEF,gBAAgB,CAAC,WAAW,GAAG,kBAAkB,CAAC;AAOlD,MAAM,KAAK,GAAG,UAAU,CAA8B,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE;IACpG,OAAO,6BAAK,GAAG,EAAE,GAAG,EAAE,IAAI,EAAC,OAAO,EAAC,SAAS,EAAE,UAAU,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,KAAM,KAAK,GAAI,CAAC;AACnH,CAAC,CAAC,CAAC;AAEH,KAAK,CAAC,WAAW,GAAG,OAAO,CAAC;AAE5B,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { VariantProps } from '@gluestack-ui/nativewind-utils';
|
|
3
|
-
import { View } from 'react-native';
|
|
4
|
-
declare const AlertDialog: React.ForwardRefExoticComponent<Omit<React.RefAttributes<import("react-native").ViewProps & {
|
|
5
|
-
context?: any;
|
|
6
|
-
} & React.RefAttributes<typeof View>> & Omit<import("react-native").ViewProps & {
|
|
7
|
-
context?: any;
|
|
8
|
-
} & React.RefAttributes<typeof View> & import("@gluestack-ui/alert-dialog/lib/types").InterfaceAlertDialogProps, "ref">, "ref"> & VariantProps<import("@gluestack-ui/nativewind-utils/types").TVReturnType<{
|
|
9
|
-
size: {
|
|
10
|
-
xs: string;
|
|
11
|
-
sm: string;
|
|
12
|
-
md: string;
|
|
13
|
-
lg: string;
|
|
14
|
-
full: string;
|
|
15
|
-
};
|
|
16
|
-
} | ({} & {
|
|
17
|
-
size: {
|
|
18
|
-
xs: string;
|
|
19
|
-
sm: string;
|
|
20
|
-
md: string;
|
|
21
|
-
lg: string;
|
|
22
|
-
full: string;
|
|
23
|
-
};
|
|
24
|
-
}), undefined, "group/modal w-full h-full justify-center items-center web:pointer-events-none", import("tailwind-variants/dist/config").TVConfig<unknown, unknown>, unknown, undefined, import("@gluestack-ui/nativewind-utils/types").TVReturnType<unknown, undefined, "group/modal w-full h-full justify-center items-center web:pointer-events-none", import("tailwind-variants/dist/config").TVConfig<unknown, unknown>, unknown, unknown, undefined>>> & React.RefAttributes<import("react-native").ViewProps & {
|
|
25
|
-
context?: any;
|
|
26
|
-
} & React.RefAttributes<typeof View>>>;
|
|
27
|
-
declare const AlertDialogContent: React.ForwardRefExoticComponent<Omit<React.RefAttributes<import("react-native").ViewProps & import("@legendapp/motion").MotionComponentProps<typeof View, import("react-native").ViewStyle, unknown, unknown, {}>> & import("@gluestack-ui/alert-dialog/lib/types").IAlertDialogContentProps & import("react-native").ViewProps & import("@legendapp/motion").MotionComponentProps<typeof View, import("react-native").ViewStyle, unknown, unknown, {}>, "ref"> & VariantProps<import("@gluestack-ui/nativewind-utils/types").TVReturnType<{
|
|
28
|
-
size: {
|
|
29
|
-
xs: string;
|
|
30
|
-
sm: string;
|
|
31
|
-
md: string;
|
|
32
|
-
lg: string;
|
|
33
|
-
full: string;
|
|
34
|
-
};
|
|
35
|
-
} | ({} & {
|
|
36
|
-
size: {
|
|
37
|
-
xs: string;
|
|
38
|
-
sm: string;
|
|
39
|
-
md: string;
|
|
40
|
-
lg: string;
|
|
41
|
-
full: string;
|
|
42
|
-
};
|
|
43
|
-
}), undefined, "bg-background-0 rounded-lg overflow-hidden border border-outline-100 p-6", import("tailwind-variants/dist/config").TVConfig<unknown, unknown>, unknown, undefined, import("@gluestack-ui/nativewind-utils/types").TVReturnType<unknown, undefined, "bg-background-0 rounded-lg overflow-hidden border border-outline-100 p-6", import("tailwind-variants/dist/config").TVConfig<unknown, unknown>, unknown, unknown, undefined>>> & {
|
|
44
|
-
className?: string;
|
|
45
|
-
} & React.RefAttributes<import("react-native").ViewProps & import("@legendapp/motion").MotionComponentProps<typeof View, import("react-native").ViewStyle, unknown, unknown, {}>>>;
|
|
46
|
-
declare const AlertDialogCloseButton: React.ForwardRefExoticComponent<Omit<React.RefAttributes<import("react-native").PressableProps & React.RefAttributes<View>> & Omit<import("react-native").PressableProps & React.RefAttributes<View>, "ref">, "ref"> & VariantProps<import("@gluestack-ui/nativewind-utils/types").TVReturnType<{} | {}, undefined, "group/alert-dialog-close-button z-10 rounded-sm p-2 data-[focus-visible=true]:bg-background-100 web:cursor-pointer outline-0", import("tailwind-variants/dist/config").TVConfig<unknown, unknown>, unknown, undefined, import("@gluestack-ui/nativewind-utils/types").TVReturnType<unknown, undefined, "group/alert-dialog-close-button z-10 rounded-sm p-2 data-[focus-visible=true]:bg-background-100 web:cursor-pointer outline-0", import("tailwind-variants/dist/config").TVConfig<unknown, unknown>, unknown, unknown, undefined>>> & React.RefAttributes<import("react-native").PressableProps & React.RefAttributes<View>>>;
|
|
47
|
-
declare const AlertDialogHeader: React.ForwardRefExoticComponent<Omit<React.RefAttributes<import("react-native").ViewProps> & import("react-native").ViewProps, "ref"> & VariantProps<import("@gluestack-ui/nativewind-utils/types").TVReturnType<{} | {}, undefined, "justify-between items-center flex-row", import("tailwind-variants/dist/config").TVConfig<unknown, unknown>, unknown, undefined, import("@gluestack-ui/nativewind-utils/types").TVReturnType<unknown, undefined, "justify-between items-center flex-row", import("tailwind-variants/dist/config").TVConfig<unknown, unknown>, unknown, unknown, undefined>>> & React.RefAttributes<import("react-native").ViewProps>>;
|
|
48
|
-
declare const AlertDialogFooter: React.ForwardRefExoticComponent<Omit<React.RefAttributes<import("react-native").ViewProps> & import("react-native").ViewProps, "ref"> & VariantProps<import("@gluestack-ui/nativewind-utils/types").TVReturnType<{} | {}, undefined, "flex-row justify-end items-center gap-3", import("tailwind-variants/dist/config").TVConfig<unknown, unknown>, unknown, undefined, import("@gluestack-ui/nativewind-utils/types").TVReturnType<unknown, undefined, "flex-row justify-end items-center gap-3", import("tailwind-variants/dist/config").TVConfig<unknown, unknown>, unknown, unknown, undefined>>> & React.RefAttributes<import("react-native").ViewProps>>;
|
|
49
|
-
declare const AlertDialogBody: React.ForwardRefExoticComponent<Omit<React.RefAttributes<import("react-native").ScrollViewProps> & import("react-native").ScrollViewProps, "ref"> & VariantProps<import("@gluestack-ui/nativewind-utils/types").TVReturnType<{} | {}, undefined, "", import("tailwind-variants/dist/config").TVConfig<unknown, unknown>, unknown, undefined, import("@gluestack-ui/nativewind-utils/types").TVReturnType<unknown, undefined, "", import("tailwind-variants/dist/config").TVConfig<unknown, unknown>, unknown, unknown, undefined>>> & React.RefAttributes<import("react-native").ScrollViewProps>>;
|
|
50
|
-
declare const AlertDialogBackdrop: React.ForwardRefExoticComponent<Omit<React.RefAttributes<import("react-native").PressableProps & React.RefAttributes<View> & import("@legendapp/motion").MotionComponentProps<React.ForwardRefExoticComponent<import("react-native").PressableProps & React.RefAttributes<View>>, import("react-native").ViewStyle | ((state: import("react-native").PressableStateCallbackType) => import("react-native").StyleProp<import("react-native").ViewStyle>), unknown, unknown, {}>> & Omit<import("react-native").PressableProps & React.RefAttributes<View> & import("@legendapp/motion").MotionComponentProps<React.ForwardRefExoticComponent<import("react-native").PressableProps & React.RefAttributes<View>>, import("react-native").ViewStyle | ((state: import("react-native").PressableStateCallbackType) => import("react-native").StyleProp<import("react-native").ViewStyle>), unknown, unknown, {}>, "ref">, "ref"> & VariantProps<import("@gluestack-ui/nativewind-utils/types").TVReturnType<{} | {}, undefined, "absolute left-0 top-0 right-0 bottom-0 bg-background-dark web:cursor-default", import("tailwind-variants/dist/config").TVConfig<unknown, unknown>, unknown, undefined, import("@gluestack-ui/nativewind-utils/types").TVReturnType<unknown, undefined, "absolute left-0 top-0 right-0 bottom-0 bg-background-dark web:cursor-default", import("tailwind-variants/dist/config").TVConfig<unknown, unknown>, unknown, unknown, undefined>>> & {
|
|
51
|
-
className?: string;
|
|
52
|
-
} & React.RefAttributes<import("react-native").PressableProps & React.RefAttributes<View> & import("@legendapp/motion").MotionComponentProps<React.ForwardRefExoticComponent<import("react-native").PressableProps & React.RefAttributes<View>>, import("react-native").ViewStyle | ((state: import("react-native").PressableStateCallbackType) => import("react-native").StyleProp<import("react-native").ViewStyle>), unknown, unknown, {}>>>;
|
|
53
|
-
export { AlertDialog, AlertDialogContent, AlertDialogCloseButton, AlertDialogHeader, AlertDialogFooter, AlertDialogBody, AlertDialogBackdrop, };
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { createAlertDialog } from '@gluestack-ui/alert-dialog';
|
|
4
|
-
import { tva } from '@gluestack-ui/nativewind-utils/tva';
|
|
5
|
-
import { withStyleContext, useStyleContext } from '@gluestack-ui/nativewind-utils/withStyleContext';
|
|
6
|
-
import { cssInterop } from 'nativewind';
|
|
7
|
-
import { Motion, AnimatePresence, createMotionAnimatedComponent } from '@legendapp/motion';
|
|
8
|
-
import { View, Pressable, ScrollView } from 'react-native';
|
|
9
|
-
const AnimatedPressable = createMotionAnimatedComponent(Pressable);
|
|
10
|
-
const SCOPE = 'ALERT_DIALOG';
|
|
11
|
-
const UIAccessibleAlertDialog = createAlertDialog({
|
|
12
|
-
Root: withStyleContext(View, SCOPE),
|
|
13
|
-
Body: ScrollView,
|
|
14
|
-
Content: Motion.View,
|
|
15
|
-
CloseButton: Pressable,
|
|
16
|
-
Header: View,
|
|
17
|
-
Footer: View,
|
|
18
|
-
Backdrop: AnimatedPressable,
|
|
19
|
-
AnimatePresence: AnimatePresence,
|
|
20
|
-
});
|
|
21
|
-
cssInterop(Motion.View, { className: 'style' });
|
|
22
|
-
cssInterop(AnimatedPressable, { className: 'style' });
|
|
23
|
-
const alertDialogStyle = tva({
|
|
24
|
-
base: 'group/modal w-full h-full justify-center items-center web:pointer-events-none',
|
|
25
|
-
parentVariants: {
|
|
26
|
-
size: {
|
|
27
|
-
xs: '',
|
|
28
|
-
sm: '',
|
|
29
|
-
md: '',
|
|
30
|
-
lg: '',
|
|
31
|
-
full: '',
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
});
|
|
35
|
-
const alertDialogContentStyle = tva({
|
|
36
|
-
base: 'bg-background-0 rounded-lg overflow-hidden border border-outline-100 p-6',
|
|
37
|
-
parentVariants: {
|
|
38
|
-
size: {
|
|
39
|
-
xs: 'w-[60%] max-w-[360px]',
|
|
40
|
-
sm: 'w-[70%] max-w-[420px]',
|
|
41
|
-
md: 'w-[80%] max-w-[510px]',
|
|
42
|
-
lg: 'w-[90%] max-w-[640px]',
|
|
43
|
-
full: 'w-full',
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
});
|
|
47
|
-
const alertDialogCloseButtonStyle = tva({
|
|
48
|
-
base: 'group/alert-dialog-close-button z-10 rounded-sm p-2 data-[focus-visible=true]:bg-background-100 web:cursor-pointer outline-0',
|
|
49
|
-
});
|
|
50
|
-
const alertDialogHeaderStyle = tva({
|
|
51
|
-
base: 'justify-between items-center flex-row',
|
|
52
|
-
});
|
|
53
|
-
const alertDialogFooterStyle = tva({
|
|
54
|
-
base: 'flex-row justify-end items-center gap-3',
|
|
55
|
-
});
|
|
56
|
-
const alertDialogBodyStyle = tva({ base: '' });
|
|
57
|
-
const alertDialogBackdropStyle = tva({
|
|
58
|
-
base: 'absolute left-0 top-0 right-0 bottom-0 bg-background-dark web:cursor-default',
|
|
59
|
-
});
|
|
60
|
-
const AlertDialog = React.forwardRef(({ className, size = 'md', ...props }, ref) => {
|
|
61
|
-
return (React.createElement(UIAccessibleAlertDialog, { ref: ref, ...props, className: alertDialogStyle({ class: className }), context: { size }, pointerEvents: "box-none" }));
|
|
62
|
-
});
|
|
63
|
-
const AlertDialogContent = React.forwardRef(({ className, size, ...props }, ref) => {
|
|
64
|
-
const { size: parentSize } = useStyleContext(SCOPE);
|
|
65
|
-
return (React.createElement(UIAccessibleAlertDialog.Content, { pointerEvents: "auto", ref: ref, initial: {
|
|
66
|
-
scale: 0.9,
|
|
67
|
-
opacity: 0,
|
|
68
|
-
}, animate: {
|
|
69
|
-
scale: 1,
|
|
70
|
-
opacity: 1,
|
|
71
|
-
}, exit: {
|
|
72
|
-
scale: 0.9,
|
|
73
|
-
opacity: 0,
|
|
74
|
-
}, transition: {
|
|
75
|
-
type: 'spring',
|
|
76
|
-
damping: 18,
|
|
77
|
-
stiffness: 250,
|
|
78
|
-
opacity: {
|
|
79
|
-
type: 'timing',
|
|
80
|
-
duration: 250,
|
|
81
|
-
},
|
|
82
|
-
}, ...props, className: alertDialogContentStyle({
|
|
83
|
-
parentVariants: {
|
|
84
|
-
size: parentSize,
|
|
85
|
-
},
|
|
86
|
-
size,
|
|
87
|
-
class: className,
|
|
88
|
-
}) }));
|
|
89
|
-
});
|
|
90
|
-
const AlertDialogCloseButton = React.forwardRef(({ className, ...props }, ref) => {
|
|
91
|
-
return (React.createElement(UIAccessibleAlertDialog.CloseButton, { ref: ref, ...props, className: alertDialogCloseButtonStyle({
|
|
92
|
-
class: className,
|
|
93
|
-
}) }));
|
|
94
|
-
});
|
|
95
|
-
const AlertDialogHeader = React.forwardRef(({ className, ...props }, ref) => {
|
|
96
|
-
return (React.createElement(UIAccessibleAlertDialog.Header, { ref: ref, ...props, className: alertDialogHeaderStyle({
|
|
97
|
-
class: className,
|
|
98
|
-
}) }));
|
|
99
|
-
});
|
|
100
|
-
const AlertDialogFooter = React.forwardRef(({ className, ...props }, ref) => {
|
|
101
|
-
return (React.createElement(UIAccessibleAlertDialog.Footer, { ref: ref, ...props, className: alertDialogFooterStyle({
|
|
102
|
-
class: className,
|
|
103
|
-
}) }));
|
|
104
|
-
});
|
|
105
|
-
const AlertDialogBody = React.forwardRef(({ className, ...props }, ref) => {
|
|
106
|
-
return (React.createElement(UIAccessibleAlertDialog.Body, { ref: ref, ...props, className: alertDialogBodyStyle({
|
|
107
|
-
class: className,
|
|
108
|
-
}) }));
|
|
109
|
-
});
|
|
110
|
-
const AlertDialogBackdrop = React.forwardRef(({ className, ...props }, ref) => {
|
|
111
|
-
return (React.createElement(UIAccessibleAlertDialog.Backdrop, { ref: ref, initial: {
|
|
112
|
-
opacity: 0,
|
|
113
|
-
}, animate: {
|
|
114
|
-
opacity: 0.5,
|
|
115
|
-
}, exit: {
|
|
116
|
-
opacity: 0,
|
|
117
|
-
}, transition: {
|
|
118
|
-
type: 'spring',
|
|
119
|
-
damping: 18,
|
|
120
|
-
stiffness: 250,
|
|
121
|
-
opacity: {
|
|
122
|
-
type: 'timing',
|
|
123
|
-
duration: 250,
|
|
124
|
-
},
|
|
125
|
-
}, ...props, className: alertDialogBackdropStyle({
|
|
126
|
-
class: className,
|
|
127
|
-
}) }));
|
|
128
|
-
});
|
|
129
|
-
AlertDialog.displayName = 'AlertDialog';
|
|
130
|
-
AlertDialogContent.displayName = 'AlertDialogContent';
|
|
131
|
-
AlertDialogCloseButton.displayName = 'AlertDialogCloseButton';
|
|
132
|
-
AlertDialogHeader.displayName = 'AlertDialogHeader';
|
|
133
|
-
AlertDialogFooter.displayName = 'AlertDialogFooter';
|
|
134
|
-
AlertDialogBody.displayName = 'AlertDialogBody';
|
|
135
|
-
AlertDialogBackdrop.displayName = 'AlertDialogBackdrop';
|
|
136
|
-
export { AlertDialog, AlertDialogContent, AlertDialogCloseButton, AlertDialogHeader, AlertDialogFooter, AlertDialogBody, AlertDialogBackdrop, };
|
|
137
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/ui/alert-dialog/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AACb,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,GAAG,EAAE,MAAM,oCAAoC,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,iDAAiD,CAAC;AAEpG,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAExC,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,6BAA6B,EAAE,MAAM,m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,CAAC,WAAW,GAAG,qBAAqB,CAAC;AAExD,OAAO,EACH,WAAW,EACX,kBAAkB,EAClB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,mBAAmB,GACtB,CAAC"}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { VariantProps } from '@gluestack-ui/nativewind-utils';
|
|
3
|
-
interface BaseProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
-
className?: string;
|
|
5
|
-
}
|
|
6
|
-
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
7
|
-
className?: string;
|
|
8
|
-
}
|
|
9
|
-
declare const AlertDialog: React.ForwardRefExoticComponent<Omit<React.RefAttributes<Omit<BaseProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
10
|
-
context?: any;
|
|
11
|
-
} & React.RefAttributes<React.ForwardRefExoticComponent<BaseProps & React.RefAttributes<HTMLDivElement>>>> & Omit<Omit<BaseProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
12
|
-
context?: any;
|
|
13
|
-
} & React.RefAttributes<React.ForwardRefExoticComponent<BaseProps & React.RefAttributes<HTMLDivElement>>> & import("@gluestack-ui/alert-dialog/lib/types").InterfaceAlertDialogProps, "ref">, "ref"> & VariantProps<import("@gluestack-ui/nativewind-utils/types").TVReturnType<{
|
|
14
|
-
size: {
|
|
15
|
-
xs: string;
|
|
16
|
-
sm: string;
|
|
17
|
-
md: string;
|
|
18
|
-
lg: string;
|
|
19
|
-
full: string;
|
|
20
|
-
};
|
|
21
|
-
} | ({} & {
|
|
22
|
-
size: {
|
|
23
|
-
xs: string;
|
|
24
|
-
sm: string;
|
|
25
|
-
md: string;
|
|
26
|
-
lg: string;
|
|
27
|
-
full: string;
|
|
28
|
-
};
|
|
29
|
-
}), undefined, "group/modal w-full h-full justify-center items-center pointer-events-none", import("tailwind-variants/dist/config").TVConfig<unknown, unknown>, unknown, undefined, import("@gluestack-ui/nativewind-utils/types").TVReturnType<unknown, undefined, "group/modal w-full h-full justify-center items-center pointer-events-none", import("tailwind-variants/dist/config").TVConfig<unknown, unknown>, unknown, unknown, undefined>>> & React.RefAttributes<Omit<BaseProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
30
|
-
context?: any;
|
|
31
|
-
} & React.RefAttributes<React.ForwardRefExoticComponent<BaseProps & React.RefAttributes<HTMLDivElement>>>>>;
|
|
32
|
-
declare const AlertDialogContent: React.ForwardRefExoticComponent<Omit<React.RefAttributes<import("react-native").ViewProps & import("@legendapp/motion").MotionComponentProps<typeof import("react-native").View, import("react-native").ViewStyle, unknown, unknown, {}>> & import("@gluestack-ui/alert-dialog/lib/types").IAlertDialogContentProps & import("react-native").ViewProps & import("@legendapp/motion").MotionComponentProps<typeof import("react-native").View, import("react-native").ViewStyle, unknown, unknown, {}>, "ref"> & VariantProps<import("@gluestack-ui/nativewind-utils/types").TVReturnType<{
|
|
33
|
-
size: {
|
|
34
|
-
xs: string;
|
|
35
|
-
sm: string;
|
|
36
|
-
md: string;
|
|
37
|
-
lg: string;
|
|
38
|
-
full: string;
|
|
39
|
-
};
|
|
40
|
-
} | ({} & {
|
|
41
|
-
size: {
|
|
42
|
-
xs: string;
|
|
43
|
-
sm: string;
|
|
44
|
-
md: string;
|
|
45
|
-
lg: string;
|
|
46
|
-
full: string;
|
|
47
|
-
};
|
|
48
|
-
}), undefined, "bg-background-0 rounded-lg overflow-hidden border border-outline-100 p-6", import("tailwind-variants/dist/config").TVConfig<unknown, unknown>, unknown, undefined, import("@gluestack-ui/nativewind-utils/types").TVReturnType<unknown, undefined, "bg-background-0 rounded-lg overflow-hidden border border-outline-100 p-6", import("tailwind-variants/dist/config").TVConfig<unknown, unknown>, unknown, unknown, undefined>>> & {
|
|
49
|
-
className?: string;
|
|
50
|
-
} & React.RefAttributes<import("react-native").ViewProps & import("@legendapp/motion").MotionComponentProps<typeof import("react-native").View, import("react-native").ViewStyle, unknown, unknown, {}>>>;
|
|
51
|
-
declare const AlertDialogCloseButton: React.ForwardRefExoticComponent<Omit<React.RefAttributes<ButtonProps & React.RefAttributes<HTMLButtonElement>> & Omit<ButtonProps & React.RefAttributes<HTMLButtonElement>, "ref">, "ref"> & VariantProps<import("@gluestack-ui/nativewind-utils/types").TVReturnType<{} | {}, undefined, "group/alert-dialog-close-button z-10 rounded-sm p-2 data-[focus-visible=true]:bg-background-100 cursor-pointer outline-0", import("tailwind-variants/dist/config").TVConfig<unknown, unknown>, unknown, undefined, import("@gluestack-ui/nativewind-utils/types").TVReturnType<unknown, undefined, "group/alert-dialog-close-button z-10 rounded-sm p-2 data-[focus-visible=true]:bg-background-100 cursor-pointer outline-0", import("tailwind-variants/dist/config").TVConfig<unknown, unknown>, unknown, unknown, undefined>>> & React.RefAttributes<ButtonProps & React.RefAttributes<HTMLButtonElement>>>;
|
|
52
|
-
declare const AlertDialogHeader: React.ForwardRefExoticComponent<Omit<React.RefAttributes<BaseProps & React.RefAttributes<HTMLDivElement>> & Omit<BaseProps & React.RefAttributes<HTMLDivElement>, "ref">, "ref"> & VariantProps<import("@gluestack-ui/nativewind-utils/types").TVReturnType<{} | {}, undefined, "justify-between items-center flex-row", import("tailwind-variants/dist/config").TVConfig<unknown, unknown>, unknown, undefined, import("@gluestack-ui/nativewind-utils/types").TVReturnType<unknown, undefined, "justify-between items-center flex-row", import("tailwind-variants/dist/config").TVConfig<unknown, unknown>, unknown, unknown, undefined>>> & React.RefAttributes<BaseProps & React.RefAttributes<HTMLDivElement>>>;
|
|
53
|
-
declare const AlertDialogFooter: React.ForwardRefExoticComponent<Omit<React.RefAttributes<BaseProps & React.RefAttributes<HTMLDivElement>> & Omit<BaseProps & React.RefAttributes<HTMLDivElement>, "ref">, "ref"> & VariantProps<import("@gluestack-ui/nativewind-utils/types").TVReturnType<{} | {}, undefined, "flex-row justify-end items-center gap-3", import("tailwind-variants/dist/config").TVConfig<unknown, unknown>, unknown, undefined, import("@gluestack-ui/nativewind-utils/types").TVReturnType<unknown, undefined, "flex-row justify-end items-center gap-3", import("tailwind-variants/dist/config").TVConfig<unknown, unknown>, unknown, unknown, undefined>>> & React.RefAttributes<BaseProps & React.RefAttributes<HTMLDivElement>>>;
|
|
54
|
-
declare const AlertDialogBody: React.ForwardRefExoticComponent<Omit<React.RefAttributes<BaseProps & React.RefAttributes<HTMLDivElement>> & Omit<BaseProps & React.RefAttributes<HTMLDivElement>, "ref">, "ref"> & VariantProps<import("@gluestack-ui/nativewind-utils/types").TVReturnType<{} | {}, undefined, "", import("tailwind-variants/dist/config").TVConfig<unknown, unknown>, unknown, undefined, import("@gluestack-ui/nativewind-utils/types").TVReturnType<unknown, undefined, "", import("tailwind-variants/dist/config").TVConfig<unknown, unknown>, unknown, unknown, undefined>>> & React.RefAttributes<BaseProps & React.RefAttributes<HTMLDivElement>>>;
|
|
55
|
-
declare const AlertDialogBackdrop: React.ForwardRefExoticComponent<Omit<React.RefAttributes<BaseProps & React.RefAttributes<HTMLDivElement> & import("@legendapp/motion").MotionComponentProps<React.ForwardRefExoticComponent<BaseProps & React.RefAttributes<HTMLDivElement>>, React.CSSProperties, unknown, unknown, {}>> & Omit<BaseProps & React.RefAttributes<HTMLDivElement> & import("@legendapp/motion").MotionComponentProps<React.ForwardRefExoticComponent<BaseProps & React.RefAttributes<HTMLDivElement>>, React.CSSProperties, unknown, unknown, {}>, "ref">, "ref"> & VariantProps<import("@gluestack-ui/nativewind-utils/types").TVReturnType<{} | {}, undefined, "absolute left-0 top-0 right-0 bottom-0 bg-background-dark cursor-default", import("tailwind-variants/dist/config").TVConfig<unknown, unknown>, unknown, undefined, import("@gluestack-ui/nativewind-utils/types").TVReturnType<unknown, undefined, "absolute left-0 top-0 right-0 bottom-0 bg-background-dark cursor-default", import("tailwind-variants/dist/config").TVConfig<unknown, unknown>, unknown, unknown, undefined>>> & {
|
|
56
|
-
className?: string;
|
|
57
|
-
} & React.RefAttributes<BaseProps & React.RefAttributes<HTMLDivElement> & import("@legendapp/motion").MotionComponentProps<React.ForwardRefExoticComponent<BaseProps & React.RefAttributes<HTMLDivElement>>, React.CSSProperties, unknown, unknown, {}>>>;
|
|
58
|
-
export { AlertDialog, AlertDialogContent, AlertDialogCloseButton, AlertDialogHeader, AlertDialogFooter, AlertDialogBody, AlertDialogBackdrop, };
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { createAlertDialog } from '@gluestack-ui/alert-dialog';
|
|
4
|
-
import { tva } from '@gluestack-ui/nativewind-utils/tva';
|
|
5
|
-
import { withStyleContext, useStyleContext } from '@gluestack-ui/nativewind-utils/withStyleContext';
|
|
6
|
-
import { cssInterop } from 'nativewind';
|
|
7
|
-
import { Motion, AnimatePresence, createMotionAnimatedComponent } from '@legendapp/motion';
|
|
8
|
-
const SCOPE = 'ALERT_DIALOG';
|
|
9
|
-
const RootComponent = React.forwardRef((props, ref) => React.createElement("div", { ...props, ref: ref }));
|
|
10
|
-
const BodyComponent = React.forwardRef((props, ref) => React.createElement("div", { ...props, ref: ref }));
|
|
11
|
-
const ContentComponent = Motion.View;
|
|
12
|
-
const CloseButtonComponent = React.forwardRef((props, ref) => (React.createElement("button", { ...props, ref: ref })));
|
|
13
|
-
const HeaderComponent = React.forwardRef((props, ref) => React.createElement("div", { ...props, ref: ref }));
|
|
14
|
-
const FooterComponent = React.forwardRef((props, ref) => React.createElement("div", { ...props, ref: ref }));
|
|
15
|
-
const BackdropComponent = createMotionAnimatedComponent(React.forwardRef((props, ref) => React.createElement("div", { ...props, ref: ref })));
|
|
16
|
-
const UIAccessibleAlertDialog = createAlertDialog({
|
|
17
|
-
Root: withStyleContext(RootComponent, SCOPE),
|
|
18
|
-
Body: BodyComponent,
|
|
19
|
-
Content: ContentComponent,
|
|
20
|
-
CloseButton: CloseButtonComponent,
|
|
21
|
-
Header: HeaderComponent,
|
|
22
|
-
Footer: FooterComponent,
|
|
23
|
-
Backdrop: BackdropComponent,
|
|
24
|
-
AnimatePresence: AnimatePresence,
|
|
25
|
-
});
|
|
26
|
-
cssInterop(Motion.View, { className: 'style' });
|
|
27
|
-
cssInterop(BackdropComponent, { className: 'style' });
|
|
28
|
-
const alertDialogStyle = tva({
|
|
29
|
-
base: 'group/modal w-full h-full justify-center items-center pointer-events-none',
|
|
30
|
-
parentVariants: {
|
|
31
|
-
size: {
|
|
32
|
-
xs: '',
|
|
33
|
-
sm: '',
|
|
34
|
-
md: '',
|
|
35
|
-
lg: '',
|
|
36
|
-
full: '',
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
});
|
|
40
|
-
const alertDialogContentStyle = tva({
|
|
41
|
-
base: 'bg-background-0 rounded-lg overflow-hidden border border-outline-100 p-6',
|
|
42
|
-
parentVariants: {
|
|
43
|
-
size: {
|
|
44
|
-
xs: 'w-[60%] max-w-[360px]',
|
|
45
|
-
sm: 'w-[70%] max-w-[420px]',
|
|
46
|
-
md: 'w-[80%] max-w-[510px]',
|
|
47
|
-
lg: 'w-[90%] max-w-[640px]',
|
|
48
|
-
full: 'w-full',
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
});
|
|
52
|
-
const alertDialogCloseButtonStyle = tva({
|
|
53
|
-
base: 'group/alert-dialog-close-button z-10 rounded-sm p-2 data-[focus-visible=true]:bg-background-100 cursor-pointer outline-0',
|
|
54
|
-
});
|
|
55
|
-
const alertDialogHeaderStyle = tva({
|
|
56
|
-
base: 'justify-between items-center flex-row',
|
|
57
|
-
});
|
|
58
|
-
const alertDialogFooterStyle = tva({
|
|
59
|
-
base: 'flex-row justify-end items-center gap-3',
|
|
60
|
-
});
|
|
61
|
-
const alertDialogBodyStyle = tva({ base: '' });
|
|
62
|
-
const alertDialogBackdropStyle = tva({
|
|
63
|
-
base: 'absolute left-0 top-0 right-0 bottom-0 bg-background-dark cursor-default',
|
|
64
|
-
});
|
|
65
|
-
const AlertDialog = React.forwardRef(({ className, size = 'md', ...props }, ref) => {
|
|
66
|
-
const classes = alertDialogStyle({ class: className });
|
|
67
|
-
return React.createElement(UIAccessibleAlertDialog, { ref: ref, ...props, className: classes, context: { size } });
|
|
68
|
-
});
|
|
69
|
-
const AlertDialogContent = React.forwardRef(({ className, size, ...props }, ref) => {
|
|
70
|
-
const { size: parentSize } = useStyleContext(SCOPE);
|
|
71
|
-
const classes = alertDialogContentStyle({
|
|
72
|
-
parentVariants: {
|
|
73
|
-
size: parentSize,
|
|
74
|
-
},
|
|
75
|
-
size,
|
|
76
|
-
class: className,
|
|
77
|
-
});
|
|
78
|
-
return (React.createElement(UIAccessibleAlertDialog.Content, { ref: ref, initial: {
|
|
79
|
-
scale: 0.9,
|
|
80
|
-
opacity: 0,
|
|
81
|
-
}, animate: {
|
|
82
|
-
scale: 1,
|
|
83
|
-
opacity: 1,
|
|
84
|
-
}, exit: {
|
|
85
|
-
scale: 0.9,
|
|
86
|
-
opacity: 0,
|
|
87
|
-
}, transition: {
|
|
88
|
-
type: 'spring',
|
|
89
|
-
damping: 18,
|
|
90
|
-
stiffness: 250,
|
|
91
|
-
opacity: {
|
|
92
|
-
type: 'timing',
|
|
93
|
-
duration: 250,
|
|
94
|
-
},
|
|
95
|
-
}, ...props, className: classes }));
|
|
96
|
-
});
|
|
97
|
-
const AlertDialogCloseButton = React.forwardRef(({ className, ...props }, ref) => {
|
|
98
|
-
const classes = alertDialogCloseButtonStyle({ class: className });
|
|
99
|
-
return React.createElement(UIAccessibleAlertDialog.CloseButton, { ref: ref, ...props, className: classes });
|
|
100
|
-
});
|
|
101
|
-
const AlertDialogHeader = React.forwardRef(({ className, ...props }, ref) => {
|
|
102
|
-
const classes = alertDialogHeaderStyle({ class: className });
|
|
103
|
-
return React.createElement(UIAccessibleAlertDialog.Header, { ref: ref, ...props, className: classes });
|
|
104
|
-
});
|
|
105
|
-
const AlertDialogFooter = React.forwardRef(({ className, ...props }, ref) => {
|
|
106
|
-
const classes = alertDialogFooterStyle({ class: className });
|
|
107
|
-
return React.createElement(UIAccessibleAlertDialog.Footer, { ref: ref, ...props, className: classes });
|
|
108
|
-
});
|
|
109
|
-
const AlertDialogBody = React.forwardRef(({ className, ...props }, ref) => {
|
|
110
|
-
const classes = alertDialogBodyStyle({ class: className });
|
|
111
|
-
return React.createElement(UIAccessibleAlertDialog.Body, { ref: ref, ...props, className: classes });
|
|
112
|
-
});
|
|
113
|
-
const AlertDialogBackdrop = React.forwardRef(({ className, ...props }, ref) => {
|
|
114
|
-
const classes = alertDialogBackdropStyle({ class: className });
|
|
115
|
-
return (React.createElement(UIAccessibleAlertDialog.Backdrop, { ref: ref, initial: {
|
|
116
|
-
opacity: 0,
|
|
117
|
-
}, animate: {
|
|
118
|
-
opacity: 0.5,
|
|
119
|
-
}, exit: {
|
|
120
|
-
opacity: 0,
|
|
121
|
-
}, transition: {
|
|
122
|
-
type: 'spring',
|
|
123
|
-
damping: 18,
|
|
124
|
-
stiffness: 250,
|
|
125
|
-
opacity: {
|
|
126
|
-
type: 'timing',
|
|
127
|
-
duration: 250,
|
|
128
|
-
},
|
|
129
|
-
}, ...props, className: classes }));
|
|
130
|
-
});
|
|
131
|
-
AlertDialog.displayName = 'AlertDialog';
|
|
132
|
-
AlertDialogContent.displayName = 'AlertDialogContent';
|
|
133
|
-
AlertDialogCloseButton.displayName = 'AlertDialogCloseButton';
|
|
134
|
-
AlertDialogHeader.displayName = 'AlertDialogHeader';
|
|
135
|
-
AlertDialogFooter.displayName = 'AlertDialogFooter';
|
|
136
|
-
AlertDialogBody.displayName = 'AlertDialogBody';
|
|
137
|
-
AlertDialogBackdrop.displayName = 'AlertDialogBackdrop';
|
|
138
|
-
export { AlertDialog, AlertDialogContent, AlertDialogCloseButton, AlertDialogHeader, AlertDialogFooter, AlertDialogBody, AlertDialogBackdrop, };
|
|
139
|
-
//# sourceMappingURL=index.web.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.web.js","sourceRoot":"","sources":["../../../../src/components/ui/alert-dialog/index.web.tsx"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