@admin-layout/gluestack-ui-mobile 12.0.16-alpha.93 → 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 -235
- 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,44 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import React, { forwardRef, useState } from 'react';
|
|
3
|
-
import { tva } from '@gluestack-ui/nativewind-utils/tva';
|
|
4
|
-
import { clsx } from 'clsx';
|
|
5
|
-
const pressableStyle = tva({
|
|
6
|
-
base: 'cursor-pointer select-none outline-none',
|
|
7
|
-
variants: {
|
|
8
|
-
disabled: {
|
|
9
|
-
true: 'opacity-40 cursor-not-allowed',
|
|
10
|
-
},
|
|
11
|
-
pressed: {
|
|
12
|
-
true: 'opacity-70',
|
|
13
|
-
},
|
|
14
|
-
hovered: {
|
|
15
|
-
true: 'hover:opacity-80',
|
|
16
|
-
},
|
|
17
|
-
focused: {
|
|
18
|
-
true: 'focus:ring-2 focus:ring-offset-2 focus:ring-blue-500',
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
});
|
|
22
|
-
export const Pressable = forwardRef(({ onPress, onPressIn, onPressOut, disabled, className, children, ...props }, ref) => {
|
|
23
|
-
const [isPressed, setIsPressed] = useState(false);
|
|
24
|
-
const [isHovered, setIsHovered] = useState(false);
|
|
25
|
-
const [isFocused, setIsFocused] = useState(false);
|
|
26
|
-
return (React.createElement("button", { ref: ref, className: pressableStyle({
|
|
27
|
-
disabled,
|
|
28
|
-
pressed: isPressed,
|
|
29
|
-
hovered: isHovered,
|
|
30
|
-
focused: isFocused,
|
|
31
|
-
class: clsx(className),
|
|
32
|
-
}), disabled: disabled, onClick: onPress, onMouseDown: (e) => {
|
|
33
|
-
setIsPressed(true);
|
|
34
|
-
onPressIn?.(e);
|
|
35
|
-
}, onMouseUp: (e) => {
|
|
36
|
-
setIsPressed(false);
|
|
37
|
-
onPressOut?.(e);
|
|
38
|
-
}, onMouseEnter: () => setIsHovered(true), onMouseLeave: () => {
|
|
39
|
-
setIsHovered(false);
|
|
40
|
-
setIsPressed(false);
|
|
41
|
-
}, onFocus: () => setIsFocused(true), onBlur: () => setIsFocused(false), ...props }, children));
|
|
42
|
-
});
|
|
43
|
-
Pressable.displayName = 'Pressable';
|
|
44
|
-
//# sourceMappingURL=index.web.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.web.js","sourceRoot":"","sources":["../../../../src/components/ui/pressable/index.web.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AACb,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,EAAE,GAAG,EAAE,MAAM,oCAAoC,CAAC;AACzD,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAE5B,MAAM,cAAc,GAAG,GAAG,CAAC;IACvB,IAAI,EAAE,yCAAyC;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EACtC,YAAY,EAAE,GAAG,EAAE;YACf,YAAY,CAAC,KAAK,CAAC,CAAC;YACpB,YAAY,CAAC,KAAK,CAAC,CAAC;QACxB,CAAC,EACD,OAAO,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,EACjC,MAAM,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,KAAK,CAAC,KAC7B,KAAK,IAER,QAAQ,CACJ,CACZ,CAAC;AACN,CAAC,CACJ,CAAC;AAEF,SAAS,CAAC,WAAW,GAAG,WAAW,CAAC"}
|
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { View } from 'react-native';
|
|
3
|
-
import type { VariantProps } from '@gluestack-ui/nativewind-utils';
|
|
4
|
-
export declare const UIProgress: import("@gluestack-ui/progress/lib/types").IProgressComponentType<import("react-native").ViewProps & {
|
|
5
|
-
context?: any;
|
|
6
|
-
} & React.RefAttributes<typeof View>, import("react-native").ViewProps>;
|
|
7
|
-
declare const progressStyle: import("@gluestack-ui/nativewind-utils/types").TVReturnType<{
|
|
8
|
-
orientation: {
|
|
9
|
-
horizontal: string;
|
|
10
|
-
vertical: string;
|
|
11
|
-
};
|
|
12
|
-
size: {
|
|
13
|
-
xs: string;
|
|
14
|
-
sm: string;
|
|
15
|
-
md: string;
|
|
16
|
-
lg: string;
|
|
17
|
-
xl: string;
|
|
18
|
-
'2xl': string;
|
|
19
|
-
};
|
|
20
|
-
} | ({
|
|
21
|
-
orientation: {
|
|
22
|
-
horizontal: string;
|
|
23
|
-
vertical: string;
|
|
24
|
-
};
|
|
25
|
-
size: {
|
|
26
|
-
xs: string;
|
|
27
|
-
sm: string;
|
|
28
|
-
md: string;
|
|
29
|
-
lg: string;
|
|
30
|
-
xl: string;
|
|
31
|
-
'2xl': string;
|
|
32
|
-
};
|
|
33
|
-
} & {
|
|
34
|
-
orientation: {
|
|
35
|
-
horizontal: import("tailwind-merge").ClassNameValue | {
|
|
36
|
-
base?: import("tailwind-merge").ClassNameValue;
|
|
37
|
-
};
|
|
38
|
-
vertical: import("tailwind-merge").ClassNameValue | {
|
|
39
|
-
base?: import("tailwind-merge").ClassNameValue;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
size: {
|
|
43
|
-
xs: import("tailwind-merge").ClassNameValue | {
|
|
44
|
-
base?: import("tailwind-merge").ClassNameValue;
|
|
45
|
-
};
|
|
46
|
-
sm: import("tailwind-merge").ClassNameValue | {
|
|
47
|
-
base?: import("tailwind-merge").ClassNameValue;
|
|
48
|
-
};
|
|
49
|
-
md: import("tailwind-merge").ClassNameValue | {
|
|
50
|
-
base?: import("tailwind-merge").ClassNameValue;
|
|
51
|
-
};
|
|
52
|
-
lg: import("tailwind-merge").ClassNameValue | {
|
|
53
|
-
base?: import("tailwind-merge").ClassNameValue;
|
|
54
|
-
};
|
|
55
|
-
xl: import("tailwind-merge").ClassNameValue | {
|
|
56
|
-
base?: import("tailwind-merge").ClassNameValue;
|
|
57
|
-
};
|
|
58
|
-
'2xl': import("tailwind-merge").ClassNameValue | {
|
|
59
|
-
base?: import("tailwind-merge").ClassNameValue;
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
}), undefined, "bg-background-300 rounded-full w-full", import("tailwind-variants/dist/config").TVConfig<{
|
|
63
|
-
orientation: {
|
|
64
|
-
horizontal: string;
|
|
65
|
-
vertical: string;
|
|
66
|
-
};
|
|
67
|
-
size: {
|
|
68
|
-
xs: string;
|
|
69
|
-
sm: string;
|
|
70
|
-
md: string;
|
|
71
|
-
lg: string;
|
|
72
|
-
xl: string;
|
|
73
|
-
'2xl': string;
|
|
74
|
-
};
|
|
75
|
-
}, {
|
|
76
|
-
orientation: {
|
|
77
|
-
horizontal: string;
|
|
78
|
-
vertical: string;
|
|
79
|
-
};
|
|
80
|
-
size: {
|
|
81
|
-
xs: string;
|
|
82
|
-
sm: string;
|
|
83
|
-
md: string;
|
|
84
|
-
lg: string;
|
|
85
|
-
xl: string;
|
|
86
|
-
'2xl': string;
|
|
87
|
-
};
|
|
88
|
-
}>, {
|
|
89
|
-
orientation: {
|
|
90
|
-
horizontal: string;
|
|
91
|
-
vertical: string;
|
|
92
|
-
};
|
|
93
|
-
size: {
|
|
94
|
-
xs: string;
|
|
95
|
-
sm: string;
|
|
96
|
-
md: string;
|
|
97
|
-
lg: string;
|
|
98
|
-
xl: string;
|
|
99
|
-
'2xl': string;
|
|
100
|
-
};
|
|
101
|
-
}, undefined, import("@gluestack-ui/nativewind-utils/types").TVReturnType<{
|
|
102
|
-
orientation: {
|
|
103
|
-
horizontal: string;
|
|
104
|
-
vertical: string;
|
|
105
|
-
};
|
|
106
|
-
size: {
|
|
107
|
-
xs: string;
|
|
108
|
-
sm: string;
|
|
109
|
-
md: string;
|
|
110
|
-
lg: string;
|
|
111
|
-
xl: string;
|
|
112
|
-
'2xl': string;
|
|
113
|
-
};
|
|
114
|
-
}, undefined, "bg-background-300 rounded-full w-full", import("tailwind-variants/dist/config").TVConfig<{
|
|
115
|
-
orientation: {
|
|
116
|
-
horizontal: string;
|
|
117
|
-
vertical: string;
|
|
118
|
-
};
|
|
119
|
-
size: {
|
|
120
|
-
xs: string;
|
|
121
|
-
sm: string;
|
|
122
|
-
md: string;
|
|
123
|
-
lg: string;
|
|
124
|
-
xl: string;
|
|
125
|
-
'2xl': string;
|
|
126
|
-
};
|
|
127
|
-
}, {
|
|
128
|
-
orientation: {
|
|
129
|
-
horizontal: string;
|
|
130
|
-
vertical: string;
|
|
131
|
-
};
|
|
132
|
-
size: {
|
|
133
|
-
xs: string;
|
|
134
|
-
sm: string;
|
|
135
|
-
md: string;
|
|
136
|
-
lg: string;
|
|
137
|
-
xl: string;
|
|
138
|
-
'2xl': string;
|
|
139
|
-
};
|
|
140
|
-
}>, unknown, unknown, undefined>>;
|
|
141
|
-
declare const progressFilledTrackStyle: import("@gluestack-ui/nativewind-utils/types").TVReturnType<{
|
|
142
|
-
orientation: {
|
|
143
|
-
horizontal: string;
|
|
144
|
-
vertical: string;
|
|
145
|
-
};
|
|
146
|
-
size: {
|
|
147
|
-
xs: string;
|
|
148
|
-
sm: string;
|
|
149
|
-
md: string;
|
|
150
|
-
lg: string;
|
|
151
|
-
xl: string;
|
|
152
|
-
'2xl': string;
|
|
153
|
-
};
|
|
154
|
-
} | ({} & {
|
|
155
|
-
orientation: {
|
|
156
|
-
horizontal: string;
|
|
157
|
-
vertical: string;
|
|
158
|
-
};
|
|
159
|
-
size: {
|
|
160
|
-
xs: string;
|
|
161
|
-
sm: string;
|
|
162
|
-
md: string;
|
|
163
|
-
lg: string;
|
|
164
|
-
xl: string;
|
|
165
|
-
'2xl': string;
|
|
166
|
-
};
|
|
167
|
-
}), undefined, "bg-primary-500 rounded-full", import("tailwind-variants/dist/config").TVConfig<unknown, unknown>, unknown, undefined, import("@gluestack-ui/nativewind-utils/types").TVReturnType<unknown, undefined, "bg-primary-500 rounded-full", import("tailwind-variants/dist/config").TVConfig<unknown, unknown>, unknown, unknown, undefined>>;
|
|
168
|
-
type IProgressProps = VariantProps<typeof progressStyle> & React.ComponentProps<typeof UIProgress>;
|
|
169
|
-
type IProgressFilledTrackProps = VariantProps<typeof progressFilledTrackStyle> & React.ComponentProps<typeof UIProgress.FilledTrack>;
|
|
170
|
-
declare const Progress: React.ForwardRefExoticComponent<Omit<IProgressProps, "ref"> & React.RefAttributes<import("react-native").ViewProps & {
|
|
171
|
-
context?: any;
|
|
172
|
-
} & React.RefAttributes<typeof View>>>;
|
|
173
|
-
declare const ProgressFilledTrack: React.ForwardRefExoticComponent<Omit<IProgressFilledTrackProps, "ref"> & React.RefAttributes<import("react-native").ViewProps>>;
|
|
174
|
-
export { Progress, ProgressFilledTrack };
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { createProgress } from '@gluestack-ui/progress';
|
|
4
|
-
import { View } from 'react-native';
|
|
5
|
-
import { tva } from '@gluestack-ui/nativewind-utils/tva';
|
|
6
|
-
import { withStyleContext, useStyleContext } from '@gluestack-ui/nativewind-utils/withStyleContext';
|
|
7
|
-
import { cssInterop } from 'nativewind';
|
|
8
|
-
const SCOPE = 'PROGRESS';
|
|
9
|
-
export const UIProgress = createProgress({
|
|
10
|
-
Root: withStyleContext(View, SCOPE),
|
|
11
|
-
FilledTrack: View,
|
|
12
|
-
});
|
|
13
|
-
cssInterop(UIProgress, { className: 'style' });
|
|
14
|
-
cssInterop(UIProgress.FilledTrack, { className: 'style' });
|
|
15
|
-
const progressStyle = tva({
|
|
16
|
-
base: 'bg-background-300 rounded-full w-full',
|
|
17
|
-
variants: {
|
|
18
|
-
orientation: {
|
|
19
|
-
horizontal: 'w-full',
|
|
20
|
-
vertical: 'h-full',
|
|
21
|
-
},
|
|
22
|
-
size: {
|
|
23
|
-
xs: 'h-1',
|
|
24
|
-
sm: 'h-2',
|
|
25
|
-
md: 'h-3',
|
|
26
|
-
lg: 'h-4',
|
|
27
|
-
xl: 'h-5',
|
|
28
|
-
'2xl': 'h-6',
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
compoundVariants: [
|
|
32
|
-
{
|
|
33
|
-
orientation: 'vertical',
|
|
34
|
-
size: 'xs',
|
|
35
|
-
class: 'h-full w-1 justify-end',
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
orientation: 'vertical',
|
|
39
|
-
size: 'sm',
|
|
40
|
-
class: 'h-full w-2 justify-end',
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
orientation: 'vertical',
|
|
44
|
-
size: 'md',
|
|
45
|
-
class: 'h-full w-3 justify-end',
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
orientation: 'vertical',
|
|
49
|
-
size: 'lg',
|
|
50
|
-
class: 'h-full w-4 justify-end',
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
orientation: 'vertical',
|
|
54
|
-
size: 'xl',
|
|
55
|
-
class: 'h-full w-5 justify-end',
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
orientation: 'vertical',
|
|
59
|
-
size: '2xl',
|
|
60
|
-
class: 'h-full w-6 justify-end',
|
|
61
|
-
},
|
|
62
|
-
],
|
|
63
|
-
});
|
|
64
|
-
const progressFilledTrackStyle = tva({
|
|
65
|
-
base: 'bg-primary-500 rounded-full',
|
|
66
|
-
parentVariants: {
|
|
67
|
-
orientation: {
|
|
68
|
-
horizontal: 'w-full',
|
|
69
|
-
vertical: 'h-full',
|
|
70
|
-
},
|
|
71
|
-
size: {
|
|
72
|
-
xs: 'h-1',
|
|
73
|
-
sm: 'h-2',
|
|
74
|
-
md: 'h-3',
|
|
75
|
-
lg: 'h-4',
|
|
76
|
-
xl: 'h-5',
|
|
77
|
-
'2xl': 'h-6',
|
|
78
|
-
},
|
|
79
|
-
},
|
|
80
|
-
parentCompoundVariants: [
|
|
81
|
-
{
|
|
82
|
-
orientation: 'vertical',
|
|
83
|
-
size: 'xs',
|
|
84
|
-
class: 'h-full w-1',
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
orientation: 'vertical',
|
|
88
|
-
size: 'sm',
|
|
89
|
-
class: 'h-full w-2',
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
orientation: 'vertical',
|
|
93
|
-
size: 'md',
|
|
94
|
-
class: 'h-full w-3',
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
orientation: 'vertical',
|
|
98
|
-
size: 'lg',
|
|
99
|
-
class: 'h-full w-4',
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
orientation: 'vertical',
|
|
103
|
-
size: 'xl',
|
|
104
|
-
class: 'h-full w-5',
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
orientation: 'vertical',
|
|
108
|
-
size: '2xl',
|
|
109
|
-
class: 'h-full w-6',
|
|
110
|
-
},
|
|
111
|
-
],
|
|
112
|
-
});
|
|
113
|
-
const Progress = React.forwardRef(({ className, size = 'md', orientation = 'horizontal', ...props }, ref) => {
|
|
114
|
-
return (React.createElement(UIProgress, { ref: ref, ...props, className: progressStyle({ size, orientation, class: className }), context: { size, orientation }, orientation: orientation }));
|
|
115
|
-
});
|
|
116
|
-
const ProgressFilledTrack = React.forwardRef(({ className, ...props }, ref) => {
|
|
117
|
-
const { size: parentSize, orientation: parentOrientation } = useStyleContext(SCOPE);
|
|
118
|
-
return (React.createElement(UIProgress.FilledTrack, { ref: ref, className: progressFilledTrackStyle({
|
|
119
|
-
parentVariants: {
|
|
120
|
-
size: parentSize,
|
|
121
|
-
orientation: parentOrientation,
|
|
122
|
-
},
|
|
123
|
-
class: className,
|
|
124
|
-
}), ...props }));
|
|
125
|
-
});
|
|
126
|
-
export { Progress, ProgressFilledTrack };
|
|
127
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/ui/progress/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AACb,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,GAAG,EAAE,MAAM,oCAAoC,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,iDAAiD,CAAC;AACpG,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAGxC,MAAM,KAAK,GAAG,UAAU,CAAC;AACzB,MAAM,CAAC,MAAM,UAAU,GAAG,cAAc,CAAC;IACrC,IAAI,EAAE,gBAAgB,CAAC,IAAI,EAAE,KAAK,CAAC;IACnC,WAAW,EAAE,IAAI;CACpB,CAAC,CAAC;AAEH,UAAU,CAAC,UAAU,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,CAAC;AAC/C,UAAU,CAAC,UAAU,CAAC,WAAW,EAAE,EAAE,SAAS,EAAE,OAAO,EAA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EAAE,wBAAwB,CAAC;YAChC,cAAc,EAAE;gBACZ,IAAI,EAAE,UAAU;gBAChB,WAAW,EAAE,iBAAiB;aACjC;YACD,KAAK,EAAE,SAAS;SACnB,CAAC,KACE,KAAK,GACX,CACL,CAAC;AACN,CAAC,CAAC,CAAC;AAEH,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -1,237 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { VariantProps } from '@gluestack-ui/nativewind-utils';
|
|
3
|
-
declare const progressStyle: import("@gluestack-ui/nativewind-utils/types").TVReturnType<{
|
|
4
|
-
size: {
|
|
5
|
-
xs: string;
|
|
6
|
-
sm: string;
|
|
7
|
-
md: string;
|
|
8
|
-
lg: string;
|
|
9
|
-
};
|
|
10
|
-
variant: {
|
|
11
|
-
determinate: string;
|
|
12
|
-
indeterminate: string;
|
|
13
|
-
};
|
|
14
|
-
} | ({
|
|
15
|
-
size: {
|
|
16
|
-
xs: string;
|
|
17
|
-
sm: string;
|
|
18
|
-
md: string;
|
|
19
|
-
lg: string;
|
|
20
|
-
};
|
|
21
|
-
variant: {
|
|
22
|
-
determinate: string;
|
|
23
|
-
indeterminate: string;
|
|
24
|
-
};
|
|
25
|
-
} & {
|
|
26
|
-
size: {
|
|
27
|
-
xs: import("tailwind-merge").ClassNameValue | {
|
|
28
|
-
base?: import("tailwind-merge").ClassNameValue;
|
|
29
|
-
};
|
|
30
|
-
sm: import("tailwind-merge").ClassNameValue | {
|
|
31
|
-
base?: import("tailwind-merge").ClassNameValue;
|
|
32
|
-
};
|
|
33
|
-
md: import("tailwind-merge").ClassNameValue | {
|
|
34
|
-
base?: import("tailwind-merge").ClassNameValue;
|
|
35
|
-
};
|
|
36
|
-
lg: import("tailwind-merge").ClassNameValue | {
|
|
37
|
-
base?: import("tailwind-merge").ClassNameValue;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
variant: {
|
|
41
|
-
determinate: import("tailwind-merge").ClassNameValue | {
|
|
42
|
-
base?: import("tailwind-merge").ClassNameValue;
|
|
43
|
-
};
|
|
44
|
-
indeterminate: import("tailwind-merge").ClassNameValue | {
|
|
45
|
-
base?: import("tailwind-merge").ClassNameValue;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
}), undefined, "w-full overflow-hidden bg-gray-200 rounded-full", import("tailwind-variants/dist/config").TVConfig<{
|
|
49
|
-
size: {
|
|
50
|
-
xs: string;
|
|
51
|
-
sm: string;
|
|
52
|
-
md: string;
|
|
53
|
-
lg: string;
|
|
54
|
-
};
|
|
55
|
-
variant: {
|
|
56
|
-
determinate: string;
|
|
57
|
-
indeterminate: string;
|
|
58
|
-
};
|
|
59
|
-
}, {
|
|
60
|
-
size: {
|
|
61
|
-
xs: string;
|
|
62
|
-
sm: string;
|
|
63
|
-
md: string;
|
|
64
|
-
lg: string;
|
|
65
|
-
};
|
|
66
|
-
variant: {
|
|
67
|
-
determinate: string;
|
|
68
|
-
indeterminate: string;
|
|
69
|
-
};
|
|
70
|
-
}>, {
|
|
71
|
-
size: {
|
|
72
|
-
xs: string;
|
|
73
|
-
sm: string;
|
|
74
|
-
md: string;
|
|
75
|
-
lg: string;
|
|
76
|
-
};
|
|
77
|
-
variant: {
|
|
78
|
-
determinate: string;
|
|
79
|
-
indeterminate: string;
|
|
80
|
-
};
|
|
81
|
-
}, undefined, import("@gluestack-ui/nativewind-utils/types").TVReturnType<{
|
|
82
|
-
size: {
|
|
83
|
-
xs: string;
|
|
84
|
-
sm: string;
|
|
85
|
-
md: string;
|
|
86
|
-
lg: string;
|
|
87
|
-
};
|
|
88
|
-
variant: {
|
|
89
|
-
determinate: string;
|
|
90
|
-
indeterminate: string;
|
|
91
|
-
};
|
|
92
|
-
}, undefined, "w-full overflow-hidden bg-gray-200 rounded-full", import("tailwind-variants/dist/config").TVConfig<{
|
|
93
|
-
size: {
|
|
94
|
-
xs: string;
|
|
95
|
-
sm: string;
|
|
96
|
-
md: string;
|
|
97
|
-
lg: string;
|
|
98
|
-
};
|
|
99
|
-
variant: {
|
|
100
|
-
determinate: string;
|
|
101
|
-
indeterminate: string;
|
|
102
|
-
};
|
|
103
|
-
}, {
|
|
104
|
-
size: {
|
|
105
|
-
xs: string;
|
|
106
|
-
sm: string;
|
|
107
|
-
md: string;
|
|
108
|
-
lg: string;
|
|
109
|
-
};
|
|
110
|
-
variant: {
|
|
111
|
-
determinate: string;
|
|
112
|
-
indeterminate: string;
|
|
113
|
-
};
|
|
114
|
-
}>, unknown, unknown, undefined>>;
|
|
115
|
-
declare const fillerStyle: import("@gluestack-ui/nativewind-utils/types").TVReturnType<{
|
|
116
|
-
variant: {
|
|
117
|
-
determinate: string;
|
|
118
|
-
indeterminate: string;
|
|
119
|
-
};
|
|
120
|
-
colorScheme: {
|
|
121
|
-
primary: string;
|
|
122
|
-
success: string;
|
|
123
|
-
warning: string;
|
|
124
|
-
error: string;
|
|
125
|
-
};
|
|
126
|
-
} | ({
|
|
127
|
-
variant: {
|
|
128
|
-
determinate: string;
|
|
129
|
-
indeterminate: string;
|
|
130
|
-
};
|
|
131
|
-
colorScheme: {
|
|
132
|
-
primary: string;
|
|
133
|
-
success: string;
|
|
134
|
-
warning: string;
|
|
135
|
-
error: string;
|
|
136
|
-
};
|
|
137
|
-
} & {
|
|
138
|
-
variant: {
|
|
139
|
-
determinate: import("tailwind-merge").ClassNameValue | {
|
|
140
|
-
base?: import("tailwind-merge").ClassNameValue;
|
|
141
|
-
};
|
|
142
|
-
indeterminate: import("tailwind-merge").ClassNameValue | {
|
|
143
|
-
base?: import("tailwind-merge").ClassNameValue;
|
|
144
|
-
};
|
|
145
|
-
};
|
|
146
|
-
colorScheme: {
|
|
147
|
-
primary: import("tailwind-merge").ClassNameValue | {
|
|
148
|
-
base?: import("tailwind-merge").ClassNameValue;
|
|
149
|
-
};
|
|
150
|
-
success: import("tailwind-merge").ClassNameValue | {
|
|
151
|
-
base?: import("tailwind-merge").ClassNameValue;
|
|
152
|
-
};
|
|
153
|
-
warning: import("tailwind-merge").ClassNameValue | {
|
|
154
|
-
base?: import("tailwind-merge").ClassNameValue;
|
|
155
|
-
};
|
|
156
|
-
error: import("tailwind-merge").ClassNameValue | {
|
|
157
|
-
base?: import("tailwind-merge").ClassNameValue;
|
|
158
|
-
};
|
|
159
|
-
};
|
|
160
|
-
}), undefined, "h-full rounded-full transition-all duration-300 ease-in-out", import("tailwind-variants/dist/config").TVConfig<{
|
|
161
|
-
variant: {
|
|
162
|
-
determinate: string;
|
|
163
|
-
indeterminate: string;
|
|
164
|
-
};
|
|
165
|
-
colorScheme: {
|
|
166
|
-
primary: string;
|
|
167
|
-
success: string;
|
|
168
|
-
warning: string;
|
|
169
|
-
error: string;
|
|
170
|
-
};
|
|
171
|
-
}, {
|
|
172
|
-
variant: {
|
|
173
|
-
determinate: string;
|
|
174
|
-
indeterminate: string;
|
|
175
|
-
};
|
|
176
|
-
colorScheme: {
|
|
177
|
-
primary: string;
|
|
178
|
-
success: string;
|
|
179
|
-
warning: string;
|
|
180
|
-
error: string;
|
|
181
|
-
};
|
|
182
|
-
}>, {
|
|
183
|
-
variant: {
|
|
184
|
-
determinate: string;
|
|
185
|
-
indeterminate: string;
|
|
186
|
-
};
|
|
187
|
-
colorScheme: {
|
|
188
|
-
primary: string;
|
|
189
|
-
success: string;
|
|
190
|
-
warning: string;
|
|
191
|
-
error: string;
|
|
192
|
-
};
|
|
193
|
-
}, undefined, import("@gluestack-ui/nativewind-utils/types").TVReturnType<{
|
|
194
|
-
variant: {
|
|
195
|
-
determinate: string;
|
|
196
|
-
indeterminate: string;
|
|
197
|
-
};
|
|
198
|
-
colorScheme: {
|
|
199
|
-
primary: string;
|
|
200
|
-
success: string;
|
|
201
|
-
warning: string;
|
|
202
|
-
error: string;
|
|
203
|
-
};
|
|
204
|
-
}, undefined, "h-full rounded-full transition-all duration-300 ease-in-out", import("tailwind-variants/dist/config").TVConfig<{
|
|
205
|
-
variant: {
|
|
206
|
-
determinate: string;
|
|
207
|
-
indeterminate: string;
|
|
208
|
-
};
|
|
209
|
-
colorScheme: {
|
|
210
|
-
primary: string;
|
|
211
|
-
success: string;
|
|
212
|
-
warning: string;
|
|
213
|
-
error: string;
|
|
214
|
-
};
|
|
215
|
-
}, {
|
|
216
|
-
variant: {
|
|
217
|
-
determinate: string;
|
|
218
|
-
indeterminate: string;
|
|
219
|
-
};
|
|
220
|
-
colorScheme: {
|
|
221
|
-
primary: string;
|
|
222
|
-
success: string;
|
|
223
|
-
warning: string;
|
|
224
|
-
error: string;
|
|
225
|
-
};
|
|
226
|
-
}>, unknown, unknown, undefined>>;
|
|
227
|
-
type IProgressProps = React.ComponentProps<'div'> & {
|
|
228
|
-
value?: number;
|
|
229
|
-
min?: number;
|
|
230
|
-
max?: number;
|
|
231
|
-
size?: VariantProps<typeof progressStyle>['size'];
|
|
232
|
-
variant?: VariantProps<typeof progressStyle>['variant'];
|
|
233
|
-
colorScheme?: VariantProps<typeof fillerStyle>['colorScheme'];
|
|
234
|
-
isIndeterminate?: boolean;
|
|
235
|
-
};
|
|
236
|
-
declare const Progress: React.ForwardRefExoticComponent<Omit<IProgressProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
237
|
-
export { Progress };
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import React, { forwardRef } from 'react';
|
|
3
|
-
import { tva } from '@gluestack-ui/nativewind-utils/tva';
|
|
4
|
-
const SCOPE = 'PROGRESS';
|
|
5
|
-
const progressStyle = tva({
|
|
6
|
-
base: 'w-full overflow-hidden bg-gray-200 rounded-full',
|
|
7
|
-
variants: {
|
|
8
|
-
size: {
|
|
9
|
-
xs: 'h-1',
|
|
10
|
-
sm: 'h-2',
|
|
11
|
-
md: 'h-3',
|
|
12
|
-
lg: 'h-4',
|
|
13
|
-
},
|
|
14
|
-
variant: {
|
|
15
|
-
determinate: '',
|
|
16
|
-
indeterminate: 'relative',
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
defaultVariants: {
|
|
20
|
-
size: 'md',
|
|
21
|
-
variant: 'determinate',
|
|
22
|
-
},
|
|
23
|
-
});
|
|
24
|
-
const fillerStyle = tva({
|
|
25
|
-
base: 'h-full rounded-full transition-all duration-300 ease-in-out',
|
|
26
|
-
variants: {
|
|
27
|
-
variant: {
|
|
28
|
-
determinate: '',
|
|
29
|
-
indeterminate: 'absolute animate-progress-indeterminate',
|
|
30
|
-
},
|
|
31
|
-
colorScheme: {
|
|
32
|
-
primary: 'bg-blue-600',
|
|
33
|
-
success: 'bg-green-600',
|
|
34
|
-
warning: 'bg-yellow-600',
|
|
35
|
-
error: 'bg-red-600',
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
defaultVariants: {
|
|
39
|
-
variant: 'determinate',
|
|
40
|
-
colorScheme: 'primary',
|
|
41
|
-
},
|
|
42
|
-
});
|
|
43
|
-
const Progress = forwardRef(({ className, value = 0, min = 0, max = 100, size, variant: variantProp, colorScheme, isIndeterminate, ...props }, ref) => {
|
|
44
|
-
const variant = isIndeterminate ? 'indeterminate' : variantProp || 'determinate';
|
|
45
|
-
const percentage = Math.min(100, Math.max(0, ((value - min) / (max - min)) * 100));
|
|
46
|
-
return (React.createElement("div", { ref: ref, role: "progressbar", "aria-valuemin": min, "aria-valuemax": max, "aria-valuenow": isIndeterminate ? undefined : value, className: progressStyle({ size, variant, class: className }), ...props },
|
|
47
|
-
React.createElement("div", { className: fillerStyle({ variant, colorScheme }), style: {
|
|
48
|
-
width: variant === 'determinate' ? `${percentage}%` : '40%',
|
|
49
|
-
} })));
|
|
50
|
-
});
|
|
51
|
-
Progress.displayName = 'Progress';
|
|
52
|
-
export { Progress };
|
|
53
|
-
// Add keyframes for indeterminate animation to your global CSS:
|
|
54
|
-
const styles = `
|
|
55
|
-
@keyframes progress-indeterminate {
|
|
56
|
-
0% {
|
|
57
|
-
left: -40%;
|
|
58
|
-
}
|
|
59
|
-
100% {
|
|
60
|
-
left: 100%;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.animate-progress-indeterminate {
|
|
65
|
-
animation: progress-indeterminate 1.5s infinite ease-in-out;
|
|
66
|
-
}
|
|
67
|
-
`;
|
|
68
|
-
if (typeof document !== 'undefined') {
|
|
69
|
-
const styleSheet = document.createElement('style');
|
|
70
|
-
styleSheet.textContent = styles;
|
|
71
|
-
document.head.appendChild(styleSheet);
|
|
72
|
-
}
|
|
73
|
-
//# sourceMappingURL=index.web.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.web.js","sourceRoot":"","sources":["../../../../src/components/ui/progress/index.web.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AACb,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,GAAG,EAAE,MAAM,oCAAoC,CAAC;AAKzD,MAAM,KAAK,GAAG,UAAU,CAAC;AAEzB,MAAM,aAAa,GAAG,GAAG,CAAC;IACtB,IAAI,EAAE,iDAAiD;IACvD,QAAQ,EAAE;QACN,IAAI,EAAE;YACF,EAAE,EAAE,KAAK;YACT,EAAE,EAAE,KAAK;YACT,EAAE,EAAE,KAAK;YACT,EAAE,EAAE,KAAK;SACZ;QACD,OAAO,EAAE;YACL,WAAW,EAAE,EAAE;YACf,aAAa,EAAE,UAAU;SAC5B;KACJ;IACD,eAAe,EAAE;QACb,IAAI,EAAE,IAAI;QACV,OAAO,EAAE,aAAa;KACzB;CACJ,CAAC,CAAC;AAEH,MAAM,WAAW,GAAG,GAAG,CAAC;IACpB,IAAI,EAAE,6DAA6D;IACnE,QAAQ,EAAE;QACN,OAAO,EAAE;YACL,WAAW,EAAE,EAAE;YACf,aAAa,EAAE,yCAAyC;SAC3D;QACD,WAAW,EAAE;YACT,OAAO,EAAE,aAAa;YACtB,OAAO,EAAE,cAAc;YACvB,OAAO,EAAE,eAAe;YACxB,KAAK,EAAE,YAAY;SACtB;KACJ;IACD,e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