native-pytech 1.0.200 → 1.0.202
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/dist/app/assets/components/removeCircle.d.ts +2 -0
- package/dist/app/assets/components/removeCircle.js +2 -0
- package/dist/app/assets/components/reorderThreeOutline.d.ts +2 -0
- package/dist/app/assets/components/reorderThreeOutline.js +2 -0
- package/dist/app/assets/ionicons.d.ts +2 -0
- package/dist/app/assets/ionicons.js +2 -0
- package/dist/app/colorPage.d.ts +1 -0
- package/dist/app/colorPage.js +1 -0
- package/dist/app/components/closeButton.d.ts +2 -0
- package/dist/app/components/closeButton.js +2 -0
- package/dist/app/components/gradient.d.ts +2 -0
- package/dist/app/components/gradient.js +2 -0
- package/dist/app/components/link.d.ts +2 -0
- package/dist/app/components/link.js +2 -0
- package/dist/app/components/text.d.ts +2 -0
- package/dist/app/components/text.js +2 -0
- package/dist/app/components/theme.d.ts +2 -0
- package/dist/app/components/theme.js +2 -0
- package/dist/app/constants/colors.d.ts +2 -0
- package/dist/app/constants/colors.js +2 -0
- package/dist/app/constants/consts.d.ts +1 -0
- package/dist/app/constants/consts.js +1 -0
- package/dist/app/constants/formats.d.ts +1 -0
- package/dist/app/constants/formats.js +1 -0
- package/dist/app/constants/hooks.d.ts +1 -0
- package/dist/app/constants/hooks.js +1 -0
- package/dist/app/constants/utils.d.ts +1 -0
- package/dist/app/constants/utils.js +1 -0
- package/dist/app/editPage.d.ts +1 -0
- package/dist/app/editPage.js +1 -0
- package/dist/app/footer.d.ts +2 -0
- package/dist/app/footer.js +2 -0
- package/dist/app/login.d.ts +2 -0
- package/dist/app/login.js +2 -0
- package/dist/app/page.d.ts +2 -0
- package/dist/app/page.js +2 -0
- package/dist/app/pickerPage.d.ts +1 -0
- package/dist/app/pickerPage.js +1 -0
- package/dist/app/providers/app.d.ts +2 -0
- package/dist/app/providers/app.js +2 -0
- package/dist/app/sections/icon.d.ts +2 -0
- package/dist/app/sections/icon.js +2 -0
- package/dist/app/segmentedControl.d.ts +2 -0
- package/dist/app/segmentedControl.js +2 -0
- package/dist/app/sql.d.ts +2 -0
- package/dist/app/sql.js +2 -0
- package/dist/app/supabase.d.ts +2 -0
- package/dist/app/supabase.js +2 -0
- package/dist/app/swiftui.d.ts +1 -0
- package/dist/app/swiftui.js +1 -0
- package/dist/app/table.d.ts +2 -0
- package/dist/app/table.js +2 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +8 -0
- package/dist/libs/assets/components/RemoveCircle.d.ts +6 -0
- package/dist/libs/assets/components/RemoveCircle.js +25 -0
- package/dist/libs/assets/components/ReorderThreeOutline.d.ts +5 -0
- package/dist/libs/assets/components/ReorderThreeOutline.js +15 -0
- package/dist/libs/assets/ionicons/Ionicons.d.ts +35 -0
- package/dist/libs/assets/ionicons/Ionicons.js +15 -0
- package/dist/libs/assets/ionicons/index.d.ts +6 -0
- package/dist/libs/assets/ionicons/index.js +23 -0
- package/dist/libs/colorPage/index.d.ts +1 -0
- package/dist/libs/colorPage/index.js +1 -0
- package/dist/libs/colorPage/src/Content/index.android.d.ts +3 -0
- package/dist/libs/colorPage/src/Content/index.android.js +11 -0
- package/dist/libs/colorPage/src/Content/index.d.ts +3 -0
- package/dist/libs/colorPage/src/Content/index.ios.d.ts +3 -0
- package/dist/libs/colorPage/src/Content/index.ios.js +16 -0
- package/dist/libs/colorPage/src/Content/index.js +20 -0
- package/dist/libs/colorPage/src/Content/types.d.ts +10 -0
- package/dist/libs/colorPage/src/Content/types.js +1 -0
- package/dist/libs/colorPage/src/Item/index.android.d.ts +4 -0
- package/dist/libs/colorPage/src/Item/index.android.js +40 -0
- package/dist/libs/colorPage/src/Item/index.d.ts +3 -0
- package/dist/libs/colorPage/src/Item/index.ios.d.ts +4 -0
- package/dist/libs/colorPage/src/Item/index.ios.js +25 -0
- package/dist/libs/colorPage/src/Item/index.js +21 -0
- package/dist/libs/colorPage/src/Item/types.d.ts +13 -0
- package/dist/libs/colorPage/src/Item/types.js +1 -0
- package/dist/libs/colorPage/src/Page/index.d.ts +3 -0
- package/dist/libs/colorPage/src/Page/index.js +17 -0
- package/dist/libs/colorPage/src/Page/types.d.ts +39 -0
- package/dist/libs/colorPage/src/Page/types.js +1 -0
- package/dist/libs/components/CloseButton.d.ts +8 -0
- package/dist/libs/components/CloseButton.js +18 -0
- package/dist/libs/components/Gradient/components/Gradient/index.d.ts +3 -0
- package/dist/libs/components/Gradient/components/Gradient/index.ios.d.ts +4 -0
- package/dist/libs/components/Gradient/components/Gradient/index.ios.js +6 -0
- package/dist/libs/components/Gradient/components/Gradient/index.js +33 -0
- package/dist/libs/components/Gradient/components/Gradient/types.d.ts +37 -0
- package/dist/libs/components/Gradient/components/Gradient/types.js +1 -0
- package/dist/libs/components/Gradient/components/Icon.d.ts +25 -0
- package/dist/libs/components/Gradient/components/Icon.js +1 -0
- package/dist/libs/components/Gradient/constants.d.ts +97 -0
- package/dist/libs/components/Gradient/constants.js +98 -0
- package/dist/libs/components/Gradient/index.d.ts +3 -0
- package/dist/libs/components/Gradient/index.js +3 -0
- package/dist/libs/components/Link.d.ts +13 -0
- package/dist/libs/components/Link.js +20 -0
- package/dist/libs/components/Text.d.ts +6 -0
- package/dist/libs/components/Text.js +11 -0
- package/dist/libs/components/Theme.d.ts +9 -0
- package/dist/libs/components/Theme.js +10 -0
- package/dist/libs/constants/colors.d.ts +218 -0
- package/dist/libs/constants/colors.js +170 -0
- package/dist/libs/constants/consts.d.ts +13 -0
- package/dist/libs/constants/consts.js +23 -0
- package/dist/libs/constants/formats.d.ts +12 -0
- package/dist/libs/constants/formats.js +90 -0
- package/dist/libs/constants/hooks.d.ts +9 -0
- package/dist/libs/constants/hooks.js +73 -0
- package/dist/libs/constants/utils.d.ts +12 -0
- package/dist/libs/constants/utils.js +75 -0
- package/dist/libs/editPage/index.d.ts +9 -0
- package/dist/libs/editPage/index.js +7 -0
- package/dist/libs/editPage/src/components/Header/index.d.ts +3 -0
- package/dist/libs/editPage/src/components/Header/index.js +17 -0
- package/dist/libs/editPage/src/components/Header/index.web.d.ts +3 -0
- package/dist/libs/editPage/src/components/Header/index.web.js +17 -0
- package/dist/libs/editPage/src/components/Header/types.d.ts +5 -0
- package/dist/libs/editPage/src/components/Header/types.js +1 -0
- package/dist/libs/editPage/src/components/Item/index.d.ts +3 -0
- package/dist/libs/editPage/src/components/Item/index.ios.d.ts +3 -0
- package/dist/libs/editPage/src/components/Item/index.ios.js +12 -0
- package/dist/libs/editPage/src/components/Item/index.js +8 -0
- package/dist/libs/editPage/src/components/Item/types.d.ts +14 -0
- package/dist/libs/editPage/src/components/Item/types.js +1 -0
- package/dist/libs/editPage/src/components/ItemDate/Picker/Date/index.d.ts +3 -0
- package/dist/libs/editPage/src/components/ItemDate/Picker/Date/index.ios.d.ts +3 -0
- package/dist/libs/editPage/src/components/ItemDate/Picker/Date/index.ios.js +7 -0
- package/dist/libs/editPage/src/components/ItemDate/Picker/Date/index.js +33 -0
- package/dist/libs/editPage/src/components/ItemDate/Picker/Time/index.d.ts +3 -0
- package/dist/libs/editPage/src/components/ItemDate/Picker/Time/index.ios.d.ts +3 -0
- package/dist/libs/editPage/src/components/ItemDate/Picker/Time/index.ios.js +4 -0
- package/dist/libs/editPage/src/components/ItemDate/Picker/Time/index.js +36 -0
- package/dist/libs/editPage/src/components/ItemDate/Picker/types.d.ts +23 -0
- package/dist/libs/editPage/src/components/ItemDate/Picker/types.js +1 -0
- package/dist/libs/editPage/src/components/ItemDate/index.d.ts +3 -0
- package/dist/libs/editPage/src/components/ItemDate/index.js +46 -0
- package/dist/libs/editPage/src/components/ItemDate/types.d.ts +22 -0
- package/dist/libs/editPage/src/components/ItemDate/types.js +1 -0
- package/dist/libs/editPage/src/components/ItemTime/TimePicker/index.d.ts +3 -0
- package/dist/libs/editPage/src/components/ItemTime/TimePicker/index.ios.d.ts +3 -0
- package/dist/libs/editPage/src/components/ItemTime/TimePicker/index.ios.js +4 -0
- package/dist/libs/editPage/src/components/ItemTime/TimePicker/index.js +36 -0
- package/dist/libs/editPage/src/components/ItemTime/TimePicker/types.d.ts +23 -0
- package/dist/libs/editPage/src/components/ItemTime/TimePicker/types.js +1 -0
- package/dist/libs/editPage/src/components/ItemTime/index.d.ts +3 -0
- package/dist/libs/editPage/src/components/ItemTime/index.js +38 -0
- package/dist/libs/editPage/src/components/ItemTime/types.d.ts +17 -0
- package/dist/libs/editPage/src/components/ItemTime/types.js +1 -0
- package/dist/libs/editPage/src/components/Screen/index.d.ts +4 -0
- package/dist/libs/editPage/src/components/Screen/index.ios.d.ts +4 -0
- package/dist/libs/editPage/src/components/Screen/index.ios.js +8 -0
- package/dist/libs/editPage/src/components/Screen/index.js +7 -0
- package/dist/libs/editPage/src/components/Screen/types.d.ts +27 -0
- package/dist/libs/editPage/src/components/Screen/types.js +1 -0
- package/dist/libs/editPage/src/components/TextField/index.d.ts +3 -0
- package/dist/libs/editPage/src/components/TextField/index.ios.d.ts +3 -0
- package/dist/libs/editPage/src/components/TextField/index.ios.js +37 -0
- package/dist/libs/editPage/src/components/TextField/index.js +28 -0
- package/dist/libs/editPage/src/components/TextField/types.d.ts +32 -0
- package/dist/libs/editPage/src/components/TextField/types.js +1 -0
- package/dist/libs/editPage/src/components/Wrapper/index.d.ts +3 -0
- package/dist/libs/editPage/src/components/Wrapper/index.js +73 -0
- package/dist/libs/editPage/src/components/Wrapper/types.d.ts +28 -0
- package/dist/libs/editPage/src/components/Wrapper/types.js +1 -0
- package/dist/libs/editPage/src/context/page.d.ts +13 -0
- package/dist/libs/editPage/src/context/page.js +2 -0
- package/dist/libs/footer/index.d.ts +1 -0
- package/dist/libs/footer/index.js +1 -0
- package/dist/libs/footer/src/components/Background/index.d.ts +4 -0
- package/dist/libs/footer/src/components/Background/index.ios.d.ts +4 -0
- package/dist/libs/footer/src/components/Background/index.ios.js +22 -0
- package/dist/libs/footer/src/components/Background/index.js +21 -0
- package/dist/libs/footer/src/components/Button/Text.d.ts +3 -0
- package/dist/libs/footer/src/components/Button/Text.js +18 -0
- package/dist/libs/footer/src/components/Button/index.d.ts +3 -0
- package/dist/libs/footer/src/components/Button/index.ios.d.ts +3 -0
- package/dist/libs/footer/src/components/Button/index.ios.js +30 -0
- package/dist/libs/footer/src/components/Button/index.js +55 -0
- package/dist/libs/footer/src/components/Button/types.d.ts +22 -0
- package/dist/libs/footer/src/components/Button/types.js +1 -0
- package/dist/libs/footer/src/components/Footer/index.d.ts +6 -0
- package/dist/libs/footer/src/components/Footer/index.ios.d.ts +6 -0
- package/dist/libs/footer/src/components/Footer/index.ios.js +9 -0
- package/dist/libs/footer/src/components/Footer/index.js +38 -0
- package/dist/libs/footer/src/components/View.d.ts +4 -0
- package/dist/libs/footer/src/components/View.js +11 -0
- package/dist/libs/footer/src/constants.d.ts +20 -0
- package/dist/libs/footer/src/constants.js +21 -0
- package/dist/libs/footer/src/index.d.ts +9 -0
- package/dist/libs/footer/src/index.js +7 -0
- package/dist/libs/login/index.d.ts +3 -0
- package/dist/libs/login/index.js +3 -0
- package/dist/libs/login/src/Pages/Home/index.d.ts +3 -0
- package/dist/libs/login/src/Pages/Home/index.js +20 -0
- package/dist/libs/login/src/Pages/Home/types.d.ts +19 -0
- package/dist/libs/login/src/Pages/Home/types.js +1 -0
- package/dist/libs/login/src/Pages/Perfil.d.ts +5 -0
- package/dist/libs/login/src/Pages/Perfil.js +19 -0
- package/dist/libs/login/src/Pages/SignIn/Form/Input.d.ts +9 -0
- package/dist/libs/login/src/Pages/SignIn/Form/Input.js +10 -0
- package/dist/libs/login/src/Pages/SignIn/Form/index.d.ts +6 -0
- package/dist/libs/login/src/Pages/SignIn/Form/index.js +34 -0
- package/dist/libs/login/src/Pages/SignIn/index.d.ts +3 -0
- package/dist/libs/login/src/Pages/SignIn/index.js +149 -0
- package/dist/libs/login/src/Pages/SignIn/types.d.ts +31 -0
- package/dist/libs/login/src/Pages/SignIn/types.js +1 -0
- package/dist/libs/login/src/Pages/index.d.ts +3 -0
- package/dist/libs/login/src/Pages/index.js +3 -0
- package/dist/libs/login/src/Pages/utils.d.ts +22 -0
- package/dist/libs/login/src/Pages/utils.js +24 -0
- package/dist/libs/login/src/Screen/Container.d.ts +4 -0
- package/dist/libs/login/src/Screen/Container.ios.d.ts +4 -0
- package/dist/libs/login/src/Screen/Container.ios.js +20 -0
- package/dist/libs/login/src/Screen/Container.js +25 -0
- package/dist/libs/login/src/Screen/components/Gradient.d.ts +6 -0
- package/dist/libs/login/src/Screen/components/Gradient.js +23 -0
- package/dist/libs/login/src/Screen/components/Input/index.d.ts +3 -0
- package/dist/libs/login/src/Screen/components/Input/index.js +128 -0
- package/dist/libs/login/src/Screen/components/Input/types.d.ts +46 -0
- package/dist/libs/login/src/Screen/components/Input/types.js +1 -0
- package/dist/libs/login/src/Screen/components/SvgLogoPytech.d.ts +4 -0
- package/dist/libs/login/src/Screen/components/SvgLogoPytech.js +11 -0
- package/dist/libs/login/src/Screen/components/SvgPytech.d.ts +4 -0
- package/dist/libs/login/src/Screen/components/SvgPytech.js +11 -0
- package/dist/libs/login/src/Screen/components/index.d.ts +4 -0
- package/dist/libs/login/src/Screen/components/index.js +4 -0
- package/dist/libs/login/src/Screen/index.d.ts +4 -0
- package/dist/libs/login/src/Screen/index.js +59 -0
- package/dist/libs/login/src/Screen/types.d.ts +14 -0
- package/dist/libs/login/src/Screen/types.js +1 -0
- package/dist/libs/login/src/constants.d.ts +98 -0
- package/dist/libs/login/src/constants.js +48 -0
- package/dist/libs/page/index.d.ts +1 -0
- package/dist/libs/page/index.js +1 -0
- package/dist/libs/page/src/components/Page/index.android.d.ts +3 -0
- package/dist/libs/page/src/components/Page/index.android.js +11 -0
- package/dist/libs/page/src/components/Page/index.d.ts +3 -0
- package/dist/libs/page/src/components/Page/index.js +7 -0
- package/dist/libs/page/src/components/PageWrapper/index.d.ts +6 -0
- package/dist/libs/page/src/components/PageWrapper/index.js +13 -0
- package/dist/libs/page/src/components/PageWrapper/types.d.ts +16 -0
- package/dist/libs/page/src/components/PageWrapper/types.js +1 -0
- package/dist/libs/page/src/components/Subtitle.d.ts +4 -0
- package/dist/libs/page/src/components/Subtitle.js +9 -0
- package/dist/libs/page/src/components/WithIcon/index.d.ts +3 -0
- package/dist/libs/page/src/components/WithIcon/index.js +47 -0
- package/dist/libs/page/src/components/WithIcon/types.d.ts +15 -0
- package/dist/libs/page/src/components/WithIcon/types.js +1 -0
- package/dist/libs/page/src/constants.d.ts +12 -0
- package/dist/libs/page/src/constants.js +12 -0
- package/dist/libs/pickerPage/index.d.ts +7 -0
- package/dist/libs/pickerPage/index.js +5 -0
- package/dist/libs/pickerPage/src/components/Content/index.d.ts +3 -0
- package/dist/libs/pickerPage/src/components/Content/index.ios.d.ts +3 -0
- package/dist/libs/pickerPage/src/components/Content/index.ios.js +19 -0
- package/dist/libs/pickerPage/src/components/Content/index.js +14 -0
- package/dist/libs/pickerPage/src/components/Content/types.d.ts +3 -0
- package/dist/libs/pickerPage/src/components/Content/types.js +1 -0
- package/dist/libs/pickerPage/src/components/Item/index.d.ts +3 -0
- package/dist/libs/pickerPage/src/components/Item/index.ios.d.ts +7 -0
- package/dist/libs/pickerPage/src/components/Item/index.ios.js +8 -0
- package/dist/libs/pickerPage/src/components/Item/index.js +16 -0
- package/dist/libs/pickerPage/src/components/Item/types.d.ts +28 -0
- package/dist/libs/pickerPage/src/components/Item/types.js +1 -0
- package/dist/libs/pickerPage/src/components/Page/index.d.ts +3 -0
- package/dist/libs/pickerPage/src/components/Page/index.js +22 -0
- package/dist/libs/pickerPage/src/components/Page/types.d.ts +30 -0
- package/dist/libs/pickerPage/src/components/Page/types.js +1 -0
- package/dist/libs/pickerPage/src/context/page.d.ts +7 -0
- package/dist/libs/pickerPage/src/context/page.js +2 -0
- package/dist/libs/providers/App/index.d.ts +10 -0
- package/dist/libs/providers/App/index.js +59 -0
- package/dist/libs/providers/App/types.d.ts +35 -0
- package/dist/libs/providers/App/types.js +1 -0
- package/dist/libs/providers/constants.d.ts +10 -0
- package/dist/libs/providers/constants.js +10 -0
- package/dist/libs/sections/Icon/index.d.ts +2 -0
- package/dist/libs/sections/Icon/index.js +1 -0
- package/dist/libs/sections/Icon/src/Section.ios.d.ts +6 -0
- package/dist/libs/sections/Icon/src/Section.ios.js +17 -0
- package/dist/libs/sections/Icon/src/index.d.ts +3 -0
- package/dist/libs/sections/Icon/src/index.ios.d.ts +3 -0
- package/dist/libs/sections/Icon/src/index.ios.js +26 -0
- package/dist/libs/sections/Icon/src/index.js +59 -0
- package/dist/libs/sections/Icon/types.d.ts +25 -0
- package/dist/libs/sections/Icon/types.js +1 -0
- package/dist/libs/segmentedControl/index.d.ts +2 -0
- package/dist/libs/segmentedControl/index.js +2 -0
- package/dist/libs/segmentedControl/src/colors.d.ts +15 -0
- package/dist/libs/segmentedControl/src/colors.js +16 -0
- package/dist/libs/segmentedControl/src/components/AnimatedChip/index.d.ts +3 -0
- package/dist/libs/segmentedControl/src/components/AnimatedChip/index.js +79 -0
- package/dist/libs/segmentedControl/src/components/AnimatedChip/types.d.ts +28 -0
- package/dist/libs/segmentedControl/src/components/AnimatedChip/types.js +1 -0
- package/dist/libs/segmentedControl/src/components/Container/index.d.ts +3 -0
- package/dist/libs/segmentedControl/src/components/Container/index.ios.d.ts +3 -0
- package/dist/libs/segmentedControl/src/components/Container/index.ios.js +15 -0
- package/dist/libs/segmentedControl/src/components/Container/index.js +18 -0
- package/dist/libs/segmentedControl/src/components/Container/types.d.ts +16 -0
- package/dist/libs/segmentedControl/src/components/Container/types.js +1 -0
- package/dist/libs/segmentedControl/src/components/Item/index.d.ts +3 -0
- package/dist/libs/segmentedControl/src/components/Item/index.js +26 -0
- package/dist/libs/segmentedControl/src/components/Item/types.d.ts +20 -0
- package/dist/libs/segmentedControl/src/components/Item/types.js +1 -0
- package/dist/libs/segmentedControl/src/components/Segmented/index.d.ts +3 -0
- package/dist/libs/segmentedControl/src/components/Segmented/index.js +93 -0
- package/dist/libs/segmentedControl/src/components/Segmented/types.d.ts +12 -0
- package/dist/libs/segmentedControl/src/components/Segmented/types.js +1 -0
- package/dist/libs/segmentedControl/src/components/Wrapper/index.d.ts +3 -0
- package/dist/libs/segmentedControl/src/components/Wrapper/index.js +21 -0
- package/dist/libs/segmentedControl/src/components/Wrapper/types.d.ts +38 -0
- package/dist/libs/segmentedControl/src/components/Wrapper/types.js +1 -0
- package/dist/libs/segmentedControl/src/context/shared.d.ts +10 -0
- package/dist/libs/segmentedControl/src/context/shared.js +13 -0
- package/dist/libs/segmentedControl/src/utils.d.ts +10 -0
- package/dist/libs/segmentedControl/src/utils.js +29 -0
- package/dist/libs/sql/index.d.ts +4 -0
- package/dist/libs/sql/index.js +4 -0
- package/dist/libs/sql/src/init.d.ts +24 -0
- package/dist/libs/sql/src/init.js +31 -0
- package/dist/libs/sql/src/queryLocal.d.ts +6 -0
- package/dist/libs/sql/src/queryLocal.js +15 -0
- package/dist/libs/sql/src/utils.d.ts +11 -0
- package/dist/libs/sql/src/utils.js +60 -0
- package/dist/libs/supabase/index.d.ts +4 -0
- package/dist/libs/supabase/index.js +2 -0
- package/dist/libs/supabase/src/clients/admin/config.d.ts +2 -0
- package/dist/libs/supabase/src/clients/admin/config.js +18 -0
- package/dist/libs/supabase/src/clients/admin/index.d.ts +9 -0
- package/dist/libs/supabase/src/clients/admin/index.js +7 -0
- package/dist/libs/supabase/src/clients/admin/utils.d.ts +5 -0
- package/dist/libs/supabase/src/clients/admin/utils.js +6 -0
- package/dist/libs/supabase/src/clients/app/config.d.ts +3 -0
- package/dist/libs/supabase/src/clients/app/config.js +31 -0
- package/dist/libs/supabase/src/clients/app/index.d.ts +16 -0
- package/dist/libs/supabase/src/clients/app/index.js +7 -0
- package/dist/libs/supabase/src/clients/app/utils.d.ts +12 -0
- package/dist/libs/supabase/src/clients/app/utils.js +10 -0
- package/dist/libs/supabase/src/utils/index.d.ts +20 -0
- package/dist/libs/supabase/src/utils/index.js +23 -0
- package/dist/libs/supabase/src/utils/types.d.ts +22 -0
- package/dist/libs/supabase/src/utils/types.js +1 -0
- package/dist/libs/swiftui/index.d.ts +10 -0
- package/dist/libs/swiftui/index.js +10 -0
- package/dist/libs/swiftui/src/components/ChevronRight.d.ts +2 -0
- package/dist/libs/swiftui/src/components/ChevronRight.js +4 -0
- package/dist/libs/swiftui/src/components/Dialog/index.d.ts +3 -0
- package/dist/libs/swiftui/src/components/Dialog/index.js +22 -0
- package/dist/libs/swiftui/src/components/Dialog/types.d.ts +21 -0
- package/dist/libs/swiftui/src/components/Dialog/types.js +1 -0
- package/dist/libs/swiftui/src/components/Host.d.ts +6 -0
- package/dist/libs/swiftui/src/components/Host.js +5 -0
- package/dist/libs/swiftui/src/components/Icon.d.ts +9 -0
- package/dist/libs/swiftui/src/components/Icon.js +8 -0
- package/dist/libs/swiftui/src/components/IconSection/Icon.d.ts +24 -0
- package/dist/libs/swiftui/src/components/IconSection/Icon.js +26 -0
- package/dist/libs/swiftui/src/components/IconSection/Section.d.ts +6 -0
- package/dist/libs/swiftui/src/components/IconSection/Section.js +17 -0
- package/dist/libs/swiftui/src/components/IconSection/index.d.ts +7 -0
- package/dist/libs/swiftui/src/components/IconSection/index.js +5 -0
- package/dist/libs/swiftui/src/components/List/BaseList/index.d.ts +9 -0
- package/dist/libs/swiftui/src/components/List/BaseList/index.js +20 -0
- package/dist/libs/swiftui/src/components/List/BaseList/types.d.ts +16 -0
- package/dist/libs/swiftui/src/components/List/BaseList/types.js +1 -0
- package/dist/libs/swiftui/src/components/List/Editable/List/index.d.ts +3 -0
- package/dist/libs/swiftui/src/components/List/Editable/List/index.js +19 -0
- package/dist/libs/swiftui/src/components/List/Editable/List/types.d.ts +16 -0
- package/dist/libs/swiftui/src/components/List/Editable/List/types.js +1 -0
- package/dist/libs/swiftui/src/components/List/Editable/Section/index.d.ts +4 -0
- package/dist/libs/swiftui/src/components/List/Editable/Section/index.js +36 -0
- package/dist/libs/swiftui/src/components/List/Editable/Section/types.d.ts +42 -0
- package/dist/libs/swiftui/src/components/List/Editable/Section/types.js +1 -0
- package/dist/libs/swiftui/src/components/List/Editable/index.d.ts +7 -0
- package/dist/libs/swiftui/src/components/List/Editable/index.js +5 -0
- package/dist/libs/swiftui/src/components/List/index.d.ts +7 -0
- package/dist/libs/swiftui/src/components/List/index.js +5 -0
- package/dist/libs/swiftui/src/components/NavigationLink/Trailing.d.ts +3 -0
- package/dist/libs/swiftui/src/components/NavigationLink/Trailing.js +14 -0
- package/dist/libs/swiftui/src/components/NavigationLink/index.d.ts +3 -0
- package/dist/libs/swiftui/src/components/NavigationLink/index.js +17 -0
- package/dist/libs/swiftui/src/components/NavigationLink/types.d.ts +39 -0
- package/dist/libs/swiftui/src/components/NavigationLink/types.js +1 -0
- package/dist/libs/swiftui/src/components/Picker.d.ts +10 -0
- package/dist/libs/swiftui/src/components/Picker.js +14 -0
- package/dist/libs/swiftui/src/components/Text.d.ts +5 -0
- package/dist/libs/swiftui/src/components/Text.js +10 -0
- package/dist/libs/swiftui/src/components/TextSubtitle.d.ts +21 -0
- package/dist/libs/swiftui/src/components/TextSubtitle.js +9 -0
- package/dist/libs/swiftui/src/context/ListEditable.d.ts +7 -0
- package/dist/libs/swiftui/src/context/ListEditable.js +2 -0
- package/dist/libs/table/index.d.ts +5 -0
- package/dist/libs/table/index.js +5 -0
- package/dist/libs/table/src/components/Borders.d.ts +5 -0
- package/dist/libs/table/src/components/Borders.js +84 -0
- package/dist/libs/table/src/components/Delete/index.d.ts +3 -0
- package/dist/libs/table/src/components/Delete/index.js +141 -0
- package/dist/libs/table/src/components/Delete/types.d.ts +27 -0
- package/dist/libs/table/src/components/Delete/types.js +1 -0
- package/dist/libs/table/src/components/Detail.d.ts +4 -0
- package/dist/libs/table/src/components/Detail.js +11 -0
- package/dist/libs/table/src/components/Option/index.d.ts +6 -0
- package/dist/libs/table/src/components/Option/index.js +109 -0
- package/dist/libs/table/src/components/Option/types.d.ts +66 -0
- package/dist/libs/table/src/components/Option/types.js +1 -0
- package/dist/libs/table/src/components/OptionComponents/deleteIcon.d.ts +5 -0
- package/dist/libs/table/src/components/OptionComponents/deleteIcon.js +14 -0
- package/dist/libs/table/src/components/OptionComponents/dragIcon.d.ts +5 -0
- package/dist/libs/table/src/components/OptionComponents/dragIcon.js +18 -0
- package/dist/libs/table/src/components/OptionComponents/icon.d.ts +9 -0
- package/dist/libs/table/src/components/OptionComponents/icon.js +12 -0
- package/dist/libs/table/src/components/OptionComponents/image.d.ts +8 -0
- package/dist/libs/table/src/components/OptionComponents/image.js +12 -0
- package/dist/libs/table/src/components/OptionComponents/index.d.ts +8 -0
- package/dist/libs/table/src/components/OptionComponents/index.js +8 -0
- package/dist/libs/table/src/components/OptionComponents/text.d.ts +21 -0
- package/dist/libs/table/src/components/OptionComponents/text.js +27 -0
- package/dist/libs/table/src/components/OptionComponents/textInput.d.ts +24 -0
- package/dist/libs/table/src/components/OptionComponents/textInput.js +49 -0
- package/dist/libs/table/src/components/OptionComponents/textInputCurrency.d.ts +7 -0
- package/dist/libs/table/src/components/OptionComponents/textInputCurrency.js +10 -0
- package/dist/libs/table/src/components/OptionComponents/textView.d.ts +14 -0
- package/dist/libs/table/src/components/OptionComponents/textView.js +18 -0
- package/dist/libs/table/src/components/OptionWrapper/index.d.ts +3 -0
- package/dist/libs/table/src/components/OptionWrapper/index.js +9 -0
- package/dist/libs/table/src/components/OptionWrapper/types.d.ts +37 -0
- package/dist/libs/table/src/components/OptionWrapper/types.js +1 -0
- package/dist/libs/table/src/components/Table/index.d.ts +3 -0
- package/dist/libs/table/src/components/Table/index.js +90 -0
- package/dist/libs/table/src/components/Table/types.d.ts +74 -0
- package/dist/libs/table/src/components/Table/types.js +1 -0
- package/dist/libs/table/src/components/Wrapper.d.ts +6 -0
- package/dist/libs/table/src/components/Wrapper.js +49 -0
- package/dist/libs/table/src/constants.d.ts +108 -0
- package/dist/libs/table/src/constants.js +107 -0
- package/dist/libs/table/src/context/borders.d.ts +10 -0
- package/dist/libs/table/src/context/borders.js +11 -0
- package/dist/libs/table/src/context/delete.d.ts +1 -0
- package/dist/libs/table/src/context/delete.js +2 -0
- package/dist/libs/table/src/context/table.d.ts +21 -0
- package/dist/libs/table/src/context/table.js +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { default as NavigationLink } from './src/components/NavigationLink';
|
|
2
|
+
export { default as Host } from './src/components/Host';
|
|
3
|
+
export { default as Icon } from './src/components/Icon';
|
|
4
|
+
export { default as IconSection } from './src/components/IconSection';
|
|
5
|
+
export { default as List } from './src/components/List';
|
|
6
|
+
export { default as Text } from './src/components/Text';
|
|
7
|
+
export { default as Picker } from './src/components/Picker';
|
|
8
|
+
export { default as TextSubtitle } from './src/components/TextSubtitle';
|
|
9
|
+
export { default as Dialog } from './src/components/Dialog';
|
|
10
|
+
export { default as ChevronRight } from './src/components/ChevronRight';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { default as NavigationLink } from './src/components/NavigationLink';
|
|
2
|
+
export { default as Host } from './src/components/Host';
|
|
3
|
+
export { default as Icon } from './src/components/Icon';
|
|
4
|
+
export { default as IconSection } from './src/components/IconSection';
|
|
5
|
+
export { default as List } from './src/components/List';
|
|
6
|
+
export { default as Text } from './src/components/Text';
|
|
7
|
+
export { default as Picker } from './src/components/Picker';
|
|
8
|
+
export { default as TextSubtitle } from './src/components/TextSubtitle';
|
|
9
|
+
export { default as Dialog } from './src/components/Dialog';
|
|
10
|
+
export { default as ChevronRight } from './src/components/ChevronRight';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ConfirmationDialog, Button, Text } from '@expo/ui/swift-ui';
|
|
2
|
+
import { memo, useState, useCallback } from 'react';
|
|
3
|
+
export default memo(({ children, buttonTriggerProps, title, message, }) => {
|
|
4
|
+
const [isPresented, setIsPresented] = useState(false);
|
|
5
|
+
const onPress = useCallback(() => {
|
|
6
|
+
buttonTriggerProps?.onPress?.();
|
|
7
|
+
setIsPresented(true);
|
|
8
|
+
}, []);
|
|
9
|
+
return (<ConfirmationDialog title={title ?? ''} isPresented={isPresented} onIsPresentedChange={setIsPresented} titleVisibility={title ? 'visible' : 'hidden'}>
|
|
10
|
+
<ConfirmationDialog.Trigger>
|
|
11
|
+
<Button {...buttonTriggerProps} onPress={onPress}/>
|
|
12
|
+
</ConfirmationDialog.Trigger>
|
|
13
|
+
|
|
14
|
+
<ConfirmationDialog.Actions>
|
|
15
|
+
{children}
|
|
16
|
+
</ConfirmationDialog.Actions>
|
|
17
|
+
|
|
18
|
+
{message && <ConfirmationDialog.Message>
|
|
19
|
+
<Text>{message}</Text>
|
|
20
|
+
</ConfirmationDialog.Message>}
|
|
21
|
+
</ConfirmationDialog>);
|
|
22
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ButtonProps } from "@expo/ui/swift-ui";
|
|
2
|
+
type Props = {
|
|
3
|
+
/**
|
|
4
|
+
The buttons to be displayed in the dialog.
|
|
5
|
+
@example <Button label="Delete" role="destructive" onPress={() => console.log('Delete')} />
|
|
6
|
+
*/
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
The props to be passed to the button that triggers the dialog.
|
|
10
|
+
*/
|
|
11
|
+
buttonTriggerProps?: ButtonProps;
|
|
12
|
+
/**
|
|
13
|
+
The title of the dialog.
|
|
14
|
+
*/
|
|
15
|
+
title?: string;
|
|
16
|
+
/**
|
|
17
|
+
The message to be displayed in the dialog.
|
|
18
|
+
*/
|
|
19
|
+
message?: string;
|
|
20
|
+
};
|
|
21
|
+
export default Props;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { LabelProps } from '@expo/ui/swift-ui';
|
|
2
|
+
type Props = Omit<LabelProps, 'title'> & {
|
|
3
|
+
/**
|
|
4
|
+
Children to display on the right side of the label.
|
|
5
|
+
*/
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import("react").MemoExoticComponent<({ children, ...labelProps }: Props) => import("react").JSX.Element>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ButtonProps } from '@expo/ui/swift-ui';
|
|
2
|
+
import { Props as GradientProps } from '../../../../../libs/components/Gradient';
|
|
3
|
+
type Props = {
|
|
4
|
+
/**
|
|
5
|
+
The title of the icon section.
|
|
6
|
+
*/
|
|
7
|
+
title?: string;
|
|
8
|
+
/**
|
|
9
|
+
The subtitle of the icon section.
|
|
10
|
+
*/
|
|
11
|
+
subtitle?: string;
|
|
12
|
+
/**
|
|
13
|
+
If it is given, displays a gradient.
|
|
14
|
+
*/
|
|
15
|
+
gradientProps?: Omit<GradientProps, 'type'> & {
|
|
16
|
+
type: 'extraLarge' | 'extraExtraLarge';
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
If it is given, displays a button.
|
|
20
|
+
*/
|
|
21
|
+
buttonProps?: ButtonProps;
|
|
22
|
+
};
|
|
23
|
+
declare const _default: import("react").MemoExoticComponent<({ title, subtitle, gradientProps, buttonProps, }: Props) => import("react").JSX.Element>;
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Button, VStack } from '@expo/ui/swift-ui';
|
|
2
|
+
import { frame, font, buttonStyle } from '@expo/ui/swift-ui/modifiers';
|
|
3
|
+
import { memo } from 'react';
|
|
4
|
+
import Gradient from '../../../../../libs/components/Gradient';
|
|
5
|
+
import Text from '../Text';
|
|
6
|
+
import Section from './Section';
|
|
7
|
+
export default memo(({ title, subtitle, gradientProps, buttonProps, }) => {
|
|
8
|
+
const spacing = gradientProps?.type === 'extraLarge' ? 10 : 20;
|
|
9
|
+
return (<Section spacing={spacing}>
|
|
10
|
+
{gradientProps && (<Gradient {...gradientProps}/>)}
|
|
11
|
+
|
|
12
|
+
{(title || subtitle) && (subtitle ? (<VStack modifiers={[frame({ alignment: 'center' })]} spacing={2}>
|
|
13
|
+
<Title title={title}/>
|
|
14
|
+
<Text secondary>
|
|
15
|
+
{subtitle}
|
|
16
|
+
</Text>
|
|
17
|
+
</VStack>) : (<Title title={title}/>))}
|
|
18
|
+
|
|
19
|
+
{buttonProps && (<Button {...buttonProps} modifiers={[buttonStyle('bordered'), ...(buttonProps?.modifiers || [])]}/>)}
|
|
20
|
+
</Section>);
|
|
21
|
+
});
|
|
22
|
+
const Title = memo(({ title }) => {
|
|
23
|
+
return (<Text modifiers={[font({ weight: 'bold', size: 30 })]}>
|
|
24
|
+
{title}
|
|
25
|
+
</Text>);
|
|
26
|
+
});
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { VStackProps } from '@expo/ui/swift-ui';
|
|
2
|
+
type Props = VStackProps & {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import("react").MemoExoticComponent<({ children, modifiers, ...vStackProps }: Props) => import("react").JSX.Element>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Section, VStack } from '@expo/ui/swift-ui';
|
|
2
|
+
import { containerRelativeFrame, listRowBackground, frame, listRowInsets } from '@expo/ui/swift-ui/modifiers';
|
|
3
|
+
import { memo, useMemo } from 'react';
|
|
4
|
+
export default memo(({ children, modifiers, ...vStackProps }) => {
|
|
5
|
+
const _modifiers = useMemo(() => [
|
|
6
|
+
...(modifiers ?? []),
|
|
7
|
+
frame({ alignment: 'center' }),
|
|
8
|
+
containerRelativeFrame({ axes: 'horizontal' }),
|
|
9
|
+
listRowBackground('transparent'),
|
|
10
|
+
listRowInsets({ bottom: 0.1 })
|
|
11
|
+
], [modifiers]);
|
|
12
|
+
return (<Section>
|
|
13
|
+
<VStack spacing={20} modifiers={_modifiers} {...vStackProps}>
|
|
14
|
+
{children}
|
|
15
|
+
</VStack>
|
|
16
|
+
</Section>);
|
|
17
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type Props from './types';
|
|
2
|
+
/**
|
|
3
|
+
Wrapper de List que aplica un padding superior negativo por defecto.
|
|
4
|
+
|
|
5
|
+
Este componente extiende "List" de @expo/ui/swift-ui y agrega automáticamente:
|
|
6
|
+
- padding({ top: -15 })
|
|
7
|
+
*/
|
|
8
|
+
declare const _default: import("react").MemoExoticComponent<({ children, modifiers, disablePaddingTop, listStyle, onRefresh, ...listProps }: Props) => import("react").JSX.Element>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { List } from '@expo/ui/swift-ui';
|
|
2
|
+
import { listStyle as listStyleModifier, padding, refreshable } from '@expo/ui/swift-ui/modifiers';
|
|
3
|
+
import { memo, useMemo } from 'react';
|
|
4
|
+
/**
|
|
5
|
+
Wrapper de List que aplica un padding superior negativo por defecto.
|
|
6
|
+
|
|
7
|
+
Este componente extiende "List" de @expo/ui/swift-ui y agrega automáticamente:
|
|
8
|
+
- padding({ top: -15 })
|
|
9
|
+
*/
|
|
10
|
+
export default memo(({ children, modifiers, disablePaddingTop, listStyle, onRefresh, ...listProps }) => {
|
|
11
|
+
const _modifiers = useMemo(() => [
|
|
12
|
+
...(modifiers ?? []),
|
|
13
|
+
...(listStyle ? [listStyleModifier(listStyle)] : []),
|
|
14
|
+
...(disablePaddingTop ? [] : [padding({ top: -15 })]),
|
|
15
|
+
...(onRefresh ? [refreshable(onRefresh)] : []),
|
|
16
|
+
], [modifiers, disablePaddingTop, onRefresh]);
|
|
17
|
+
return (<List modifiers={_modifiers} {...listProps}>
|
|
18
|
+
{children}
|
|
19
|
+
</List>);
|
|
20
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ListProps } from "@expo/ui/swift-ui";
|
|
2
|
+
type Props = ListProps & {
|
|
3
|
+
/**
|
|
4
|
+
Whether to disable the padding top of the list.
|
|
5
|
+
*/
|
|
6
|
+
disablePaddingTop?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
The style of the list.
|
|
9
|
+
*/
|
|
10
|
+
listStyle?: 'plain' | 'inset' | 'grouped';
|
|
11
|
+
/**
|
|
12
|
+
The function to handle the refresh event.
|
|
13
|
+
*/
|
|
14
|
+
onRefresh?: () => Promise<void>;
|
|
15
|
+
};
|
|
16
|
+
export default Props;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { listStyle, environment, moveDisabled, deleteDisabled } from "@expo/ui/swift-ui/modifiers";
|
|
2
|
+
import { memo, useMemo } from "react";
|
|
3
|
+
import BaseList from "../../BaseList";
|
|
4
|
+
import { Provider } from '../../../../context/ListEditable';
|
|
5
|
+
export default memo(({ children, editMode, moveEnabled = false, deleteEnabled = false, modifiers, ...listProps }) => {
|
|
6
|
+
const _modifiers = useMemo(() => [
|
|
7
|
+
...(modifiers ?? []),
|
|
8
|
+
listStyle('inset'),
|
|
9
|
+
environment('editMode', editMode ? 'active' : 'inactive'),
|
|
10
|
+
...(moveEnabled ? [moveDisabled(false)] : []),
|
|
11
|
+
...(deleteEnabled ? [deleteDisabled(false)] : []),
|
|
12
|
+
], [modifiers, editMode, moveEnabled, deleteEnabled]);
|
|
13
|
+
const value = useMemo(() => ({ enableMove: moveEnabled, enableDelete: deleteEnabled }), [moveEnabled, deleteEnabled]);
|
|
14
|
+
return (<BaseList {...listProps} modifiers={_modifiers}>
|
|
15
|
+
<Provider value={value}>
|
|
16
|
+
{children}
|
|
17
|
+
</Provider>
|
|
18
|
+
</BaseList>);
|
|
19
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type BaseListProps from '../../BaseList/types';
|
|
2
|
+
type Props = BaseListProps & {
|
|
3
|
+
/**
|
|
4
|
+
Whether the list is on edit mode.
|
|
5
|
+
*/
|
|
6
|
+
editMode?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
Whether to enable the move of the items.
|
|
9
|
+
*/
|
|
10
|
+
moveEnabled?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
Whether to enable the delete of the items.
|
|
13
|
+
*/
|
|
14
|
+
deleteEnabled?: boolean;
|
|
15
|
+
};
|
|
16
|
+
export default Props;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { List, Section } from "@expo/ui/swift-ui";
|
|
2
|
+
import { moveDisabled, tag, deleteDisabled } from "@expo/ui/swift-ui/modifiers";
|
|
3
|
+
import { memo, useCallback, useState } from "react";
|
|
4
|
+
import Hooks from '../../../../../../../libs/constants/hooks';
|
|
5
|
+
import { useListEditable } from "../../../../context/ListEditable";
|
|
6
|
+
function Component({ data = [], keyExtractor, onDelete, onMove, renderItem, sectionProps, }) {
|
|
7
|
+
// ---------------------- Variables ----------------------
|
|
8
|
+
const { enableMove, enableDelete } = useListEditable();
|
|
9
|
+
const [_data, setData] = useState(data ?? []);
|
|
10
|
+
Hooks.useEffectWithoutFirstRender(() => setData(data ?? []), [data]);
|
|
11
|
+
// ---------------------- Functions ----------------------
|
|
12
|
+
const handleDelete = useCallback((indices) => {
|
|
13
|
+
setData(prev => prev.filter((_, i) => !indices.includes(i)));
|
|
14
|
+
for (const index of indices)
|
|
15
|
+
onDelete?.({ index });
|
|
16
|
+
}, [onDelete]);
|
|
17
|
+
const handleMove = useCallback((sourceIndices, destination) => {
|
|
18
|
+
const adjustedDest = sourceIndices[0] < destination ? destination - 1 : destination;
|
|
19
|
+
setData(prev => {
|
|
20
|
+
const newData = [...prev];
|
|
21
|
+
const [removed] = newData.splice(sourceIndices[0], 1);
|
|
22
|
+
newData.splice(adjustedDest, 0, removed);
|
|
23
|
+
return newData;
|
|
24
|
+
});
|
|
25
|
+
onMove?.({ listIndexes: sourceIndices, destinationIndex: adjustedDest });
|
|
26
|
+
}, [onMove]);
|
|
27
|
+
return (<Section {...sectionProps}>
|
|
28
|
+
<List.ForEach onDelete={handleDelete} onMove={handleMove} modifiers={[moveDisabled(!enableMove), deleteDisabled(!enableDelete)]}>
|
|
29
|
+
{_data.map((item, index) => {
|
|
30
|
+
const key = keyExtractor?.(item) ?? index;
|
|
31
|
+
return renderItem?.({ item, tagModifier: tag(key) });
|
|
32
|
+
})}
|
|
33
|
+
</List.ForEach>
|
|
34
|
+
</Section>);
|
|
35
|
+
}
|
|
36
|
+
export default memo(Component);
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ViewModifier } from "@expo/ui/swift-ui/modifiers";
|
|
2
|
+
import { SectionProps } from "@expo/ui/swift-ui";
|
|
3
|
+
type Props<T> = {
|
|
4
|
+
/**
|
|
5
|
+
The data items to be rendered inside the list.
|
|
6
|
+
@default []
|
|
7
|
+
*/
|
|
8
|
+
data?: T[];
|
|
9
|
+
/**
|
|
10
|
+
The function to extract the key from the data item.
|
|
11
|
+
@example
|
|
12
|
+
keyExtractor={(item) => item.id}
|
|
13
|
+
*/
|
|
14
|
+
keyExtractor?: (item: T) => string | number;
|
|
15
|
+
/**
|
|
16
|
+
The function to handle the delete event.
|
|
17
|
+
|
|
18
|
+
*/
|
|
19
|
+
onDelete?: ({ index }: {
|
|
20
|
+
index: number;
|
|
21
|
+
}) => void;
|
|
22
|
+
/**
|
|
23
|
+
The function to handle the move event.
|
|
24
|
+
*/
|
|
25
|
+
onMove?: ({ listIndexes, destinationIndex }: {
|
|
26
|
+
listIndexes: number[];
|
|
27
|
+
destinationIndex: number;
|
|
28
|
+
}) => void;
|
|
29
|
+
/**
|
|
30
|
+
The function to render the item.
|
|
31
|
+
The prop "modifier" is the modifier to be applied to the item [tag(key)].
|
|
32
|
+
*/
|
|
33
|
+
renderItem?: ({ item, tagModifier }: {
|
|
34
|
+
item: T;
|
|
35
|
+
tagModifier: ViewModifier;
|
|
36
|
+
}) => React.ReactNode;
|
|
37
|
+
/**
|
|
38
|
+
The props to apply to the Section.
|
|
39
|
+
*/
|
|
40
|
+
sectionProps?: Omit<SectionProps, 'children'>;
|
|
41
|
+
};
|
|
42
|
+
export default Props;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Spacer, HStack } from '@expo/ui/swift-ui';
|
|
2
|
+
import { memo } from 'react';
|
|
3
|
+
import Text from '../Text';
|
|
4
|
+
import ChevronRight from '../ChevronRight';
|
|
5
|
+
export default memo(({ text, textProps, component }) => {
|
|
6
|
+
return (<>
|
|
7
|
+
<Spacer />
|
|
8
|
+
{(text || component) ? (<HStack spacing={10}>
|
|
9
|
+
{text && <Text {...textProps} secondary>{text}</Text>}
|
|
10
|
+
{component}
|
|
11
|
+
<ChevronRight />
|
|
12
|
+
</HStack>) : (<ChevronRight />)}
|
|
13
|
+
</>);
|
|
14
|
+
});
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type Props from './types';
|
|
2
|
+
declare const _default: import("react").MemoExoticComponent<({ children, onPress, icon, label, systemImage, listRowInsets, trailingText, trailingTextProps, trailingComponent, modifiers }: Props) => import("react").JSX.Element>;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Button, HStack, Label } from '@expo/ui/swift-ui';
|
|
2
|
+
import { listRowInsets as listRowInsetsModifier, foregroundStyle } from '@expo/ui/swift-ui/modifiers';
|
|
3
|
+
import { memo, useMemo } from 'react';
|
|
4
|
+
import Trailing from './Trailing';
|
|
5
|
+
export default memo(({ children, onPress, icon, label, systemImage, listRowInsets = false, trailingText, trailingTextProps, trailingComponent, modifiers }) => {
|
|
6
|
+
const _modifiers = useMemo(() => [
|
|
7
|
+
...(modifiers ?? []),
|
|
8
|
+
...(listRowInsets ? [listRowInsetsModifier({ top: 20, bottom: 20, leading: 25, trailing: 20 })] : []),
|
|
9
|
+
], [modifiers, listRowInsets]);
|
|
10
|
+
return (<HStack modifiers={_modifiers}>
|
|
11
|
+
<Button onPress={onPress} modifiers={[foregroundStyle({ type: 'hierarchical', style: 'primary' })]}>
|
|
12
|
+
{children ?? (!systemImage ? <Label title={label} icon={icon}/> : undefined)}
|
|
13
|
+
</Button>
|
|
14
|
+
{systemImage && <Label title={label} systemImage={systemImage} icon={icon}/>}
|
|
15
|
+
<Trailing text={trailingText} textProps={trailingTextProps} component={trailingComponent}/>
|
|
16
|
+
</HStack>);
|
|
17
|
+
});
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ButtonProps, LabelProps, TextProps } from "@expo/ui/swift-ui";
|
|
2
|
+
export type TrailingProps = {
|
|
3
|
+
/**
|
|
4
|
+
Text to display on the Trailing Stack.
|
|
5
|
+
*/
|
|
6
|
+
text?: string;
|
|
7
|
+
/**
|
|
8
|
+
TextProps to apply to the Trailing Stack text.
|
|
9
|
+
*/
|
|
10
|
+
textProps?: TextProps;
|
|
11
|
+
/**
|
|
12
|
+
Custom React Node to display instead of the default Trailing Stack (text + ChevronRight).
|
|
13
|
+
*/
|
|
14
|
+
component?: React.ReactNode;
|
|
15
|
+
};
|
|
16
|
+
type Props = Pick<ButtonProps, 'children' | 'onPress' | 'systemImage' | 'label' | 'modifiers'> & {
|
|
17
|
+
/**
|
|
18
|
+
Whether to apply the listRowInsets modifier to the HStack.
|
|
19
|
+
@default false
|
|
20
|
+
*/
|
|
21
|
+
listRowInsets?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
Icon to display on the Label.
|
|
24
|
+
*/
|
|
25
|
+
icon?: LabelProps['icon'];
|
|
26
|
+
/**
|
|
27
|
+
Text to display on the Trailing Stack.
|
|
28
|
+
*/
|
|
29
|
+
trailingText?: TrailingProps['text'];
|
|
30
|
+
/**
|
|
31
|
+
TextProps to apply to the Trailing Stack text.
|
|
32
|
+
*/
|
|
33
|
+
trailingTextProps?: TrailingProps['textProps'];
|
|
34
|
+
/**
|
|
35
|
+
Custom React Node to display instead of the default Trailing Stack (text + ChevronRight).
|
|
36
|
+
*/
|
|
37
|
+
trailingComponent?: TrailingProps['component'];
|
|
38
|
+
};
|
|
39
|
+
export default Props;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PickerProps } from '@expo/ui/swift-ui';
|
|
2
|
+
type Props = Omit<PickerProps, 'children'> & {
|
|
3
|
+
/**
|
|
4
|
+
The data items to be rendered inside the picker.
|
|
5
|
+
@default []
|
|
6
|
+
*/
|
|
7
|
+
data?: (string | number)[];
|
|
8
|
+
};
|
|
9
|
+
declare const _default: import("react").MemoExoticComponent<({ modifiers, data, ...pickerProps }: Props) => import("react").JSX.Element>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Picker, Text } from '@expo/ui/swift-ui';
|
|
2
|
+
import { pickerStyle, tag } from "@expo/ui/swift-ui/modifiers";
|
|
3
|
+
import { memo, useMemo } from 'react';
|
|
4
|
+
export default memo(({ modifiers, data = [], ...pickerProps }) => {
|
|
5
|
+
const _modifiers = useMemo(() => [
|
|
6
|
+
...(modifiers ?? []),
|
|
7
|
+
pickerStyle('menu'),
|
|
8
|
+
], [modifiers]);
|
|
9
|
+
return (<Picker modifiers={_modifiers} {...pickerProps}>
|
|
10
|
+
{data.map(item => (<Text key={item} modifiers={[tag(item)]}>
|
|
11
|
+
{item}
|
|
12
|
+
</Text>))}
|
|
13
|
+
</Picker>);
|
|
14
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Text } from '@expo/ui/swift-ui';
|
|
2
|
+
import { foregroundStyle } from '@expo/ui/swift-ui/modifiers';
|
|
3
|
+
import { memo, useMemo } from 'react';
|
|
4
|
+
export default memo(({ modifiers, secondary = false, ...restProps }) => {
|
|
5
|
+
const _modifiers = useMemo(() => [
|
|
6
|
+
...(modifiers ?? []),
|
|
7
|
+
...(secondary ? [foregroundStyle({ type: 'hierarchical', style: 'secondary' })] : []),
|
|
8
|
+
], [modifiers, secondary]);
|
|
9
|
+
return (<Text modifiers={_modifiers} {...restProps}/>);
|
|
10
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { TextProps } from '@expo/ui/swift-ui';
|
|
2
|
+
type Props = {
|
|
3
|
+
/**
|
|
4
|
+
Title to display in the label.
|
|
5
|
+
*/
|
|
6
|
+
title?: string;
|
|
7
|
+
/**
|
|
8
|
+
Subtitle to display in the label.
|
|
9
|
+
*/
|
|
10
|
+
subtitle?: string;
|
|
11
|
+
/**
|
|
12
|
+
Props to apply to the title.
|
|
13
|
+
*/
|
|
14
|
+
titleTextProps?: TextProps;
|
|
15
|
+
/**
|
|
16
|
+
Props to apply to the subtitle.
|
|
17
|
+
*/
|
|
18
|
+
subtitleTextProps?: TextProps;
|
|
19
|
+
};
|
|
20
|
+
declare const _default: import("react").MemoExoticComponent<({ title, subtitle, titleTextProps, subtitleTextProps }: Props) => import("react").JSX.Element>;
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { VStack } from '@expo/ui/swift-ui';
|
|
2
|
+
import { memo } from 'react';
|
|
3
|
+
import Text from './Text';
|
|
4
|
+
export default memo(({ title, subtitle, titleTextProps, subtitleTextProps }) => {
|
|
5
|
+
return (<VStack alignment='leading' spacing={2}>
|
|
6
|
+
<Text {...titleTextProps}>{title}</Text>
|
|
7
|
+
<Text {...subtitleTextProps} secondary>{subtitle}</Text>
|
|
8
|
+
</VStack>);
|
|
9
|
+
});
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default } from './src/components/Table';
|
|
2
|
+
export { useBorders, useStore, useTable } from './src/context/table';
|
|
3
|
+
export { useDelete } from './src/context/delete';
|
|
4
|
+
export { useBorder } from './src/context/borders';
|
|
5
|
+
export { type ColorThemeType, type ColorSchemeType, colors } from './src/constants';
|