fluent-styles 1.54.0 → 1.55.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/README.md +4065 -77
- package/lib/commonjs/actionSheet/actionSheet.js +372 -0
- package/lib/commonjs/actionSheet/actionSheet.js.map +1 -0
- package/lib/commonjs/actionSheet/index.js +20 -0
- package/lib/commonjs/actionSheet/index.js.map +1 -0
- package/lib/commonjs/actionSheet/useActionSheet.js +89 -0
- package/lib/commonjs/actionSheet/useActionSheet.js.map +1 -0
- package/lib/commonjs/badge/index.js +148 -0
- package/lib/commonjs/badge/index.js.map +1 -0
- package/lib/commonjs/barChart/index.js +298 -0
- package/lib/commonjs/barChart/index.js.map +1 -0
- package/lib/commonjs/button/index.js +228 -0
- package/lib/commonjs/button/index.js.map +1 -0
- package/lib/commonjs/card/index.js +202 -0
- package/lib/commonjs/card/index.js.map +1 -0
- package/lib/commonjs/checkBox/index.js +90 -0
- package/lib/commonjs/checkBox/index.js.map +1 -0
- package/lib/commonjs/chips/index.js +239 -0
- package/lib/commonjs/chips/index.js.map +1 -0
- package/lib/commonjs/circularProgress/index.js +265 -0
- package/lib/commonjs/circularProgress/index.js.map +1 -0
- package/lib/commonjs/collapsible/Collapse.js +293 -0
- package/lib/commonjs/collapsible/Collapse.js.map +1 -0
- package/lib/commonjs/collapsible/CollapseGroup.js +137 -0
- package/lib/commonjs/collapsible/CollapseGroup.js.map +1 -0
- package/lib/commonjs/collapsible/index.js +64 -0
- package/lib/commonjs/collapsible/index.js.map +1 -0
- package/lib/commonjs/collapsible/interface.js +39 -0
- package/lib/commonjs/collapsible/interface.js.map +1 -0
- package/lib/commonjs/collapsible/style.js +161 -0
- package/lib/commonjs/collapsible/style.js.map +1 -0
- package/lib/commonjs/datePicker/index.js +915 -0
- package/lib/commonjs/datePicker/index.js.map +1 -0
- package/lib/commonjs/dialog/dialogue.js +205 -0
- package/lib/commonjs/dialog/dialogue.js.map +1 -0
- package/lib/commonjs/dialog/index.js +393 -0
- package/lib/commonjs/dialog/index.js.map +1 -0
- package/lib/commonjs/dialog/useDialogue.js +117 -0
- package/lib/commonjs/dialog/useDialogue.js.map +1 -0
- package/lib/commonjs/divider/index.js +37 -0
- package/lib/commonjs/divider/index.js.map +1 -0
- package/lib/commonjs/drawer/Drawer.js +587 -0
- package/lib/commonjs/drawer/Drawer.js.map +1 -0
- package/lib/commonjs/drawer/index.js +51 -0
- package/lib/commonjs/drawer/index.js.map +1 -0
- package/lib/commonjs/drawer/interface.js +84 -0
- package/lib/commonjs/drawer/interface.js.map +1 -0
- package/lib/commonjs/dropdown/index.js +859 -0
- package/lib/commonjs/dropdown/index.js.map +1 -0
- package/lib/commonjs/emptyState/index.js +231 -0
- package/lib/commonjs/emptyState/index.js.map +1 -0
- package/lib/commonjs/form/index.js +2 -0
- package/lib/commonjs/form/index.js.map +1 -0
- package/lib/commonjs/header/index.js +147 -0
- package/lib/commonjs/header/index.js.map +1 -0
- package/lib/commonjs/header/statusBar/index.js +20 -0
- package/lib/commonjs/header/statusBar/index.js.map +1 -0
- package/lib/commonjs/icons/backArrow.js +42 -0
- package/lib/commonjs/icons/backArrow.js.map +1 -0
- package/lib/commonjs/icons/bellFill.js +43 -0
- package/lib/commonjs/icons/bellFill.js.map +1 -0
- package/lib/commonjs/icons/bellOutline.js +43 -0
- package/lib/commonjs/icons/bellOutline.js.map +1 -0
- package/lib/commonjs/icons/checkmark.js +36 -0
- package/lib/commonjs/icons/checkmark.js.map +1 -0
- package/lib/commonjs/icons/delete.js +53 -0
- package/lib/commonjs/icons/delete.js.map +1 -0
- package/lib/commonjs/icons/downChevron.js +36 -0
- package/lib/commonjs/icons/downChevron.js.map +1 -0
- package/lib/commonjs/icons/error.js +41 -0
- package/lib/commonjs/icons/error.js.map +1 -0
- package/lib/commonjs/icons/forwardArrow.js +42 -0
- package/lib/commonjs/icons/forwardArrow.js.map +1 -0
- package/lib/commonjs/icons/index.js +111 -0
- package/lib/commonjs/icons/index.js.map +1 -0
- package/lib/commonjs/icons/info.js +48 -0
- package/lib/commonjs/icons/info.js.map +1 -0
- package/lib/commonjs/icons/leftChevron.js +36 -0
- package/lib/commonjs/icons/leftChevron.js.map +1 -0
- package/lib/commonjs/icons/rightChevron.js +36 -0
- package/lib/commonjs/icons/rightChevron.js.map +1 -0
- package/lib/commonjs/icons/save.js +50 -0
- package/lib/commonjs/icons/save.js.map +1 -0
- package/lib/commonjs/icons/success.js +43 -0
- package/lib/commonjs/icons/success.js.map +1 -0
- package/lib/commonjs/icons/upChevron.js +36 -0
- package/lib/commonjs/icons/upChevron.js.map +1 -0
- package/lib/commonjs/icons/warning.js +48 -0
- package/lib/commonjs/icons/warning.js.map +1 -0
- package/lib/commonjs/image/index.js +47 -0
- package/lib/commonjs/image/index.js.map +1 -0
- package/lib/commonjs/index.js +519 -138
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/input/index.js +488 -0
- package/lib/commonjs/input/index.js.map +1 -0
- package/lib/commonjs/loading/circular.js +116 -0
- package/lib/commonjs/loading/circular.js.map +1 -0
- package/lib/commonjs/loading/index.js +34 -0
- package/lib/commonjs/loading/index.js.map +1 -0
- package/lib/commonjs/loading/loader.js +247 -0
- package/lib/commonjs/loading/loader.js.map +1 -0
- package/lib/commonjs/loading/spinner.js +90 -0
- package/lib/commonjs/loading/spinner.js.map +1 -0
- package/lib/commonjs/loading/useLoader.js +62 -0
- package/lib/commonjs/loading/useLoader.js.map +1 -0
- package/lib/commonjs/loading/useLoaderBinding.js +34 -0
- package/lib/commonjs/loading/useLoaderBinding.js.map +1 -0
- package/lib/commonjs/notification/index.js +269 -0
- package/lib/commonjs/notification/index.js.map +1 -0
- package/lib/commonjs/notification/useNotification.js +62 -0
- package/lib/commonjs/notification/useNotification.js.map +1 -0
- package/lib/commonjs/page/index.js +22 -0
- package/lib/commonjs/page/index.js.map +1 -0
- package/lib/commonjs/popup/Popup.js +332 -0
- package/lib/commonjs/popup/Popup.js.map +1 -0
- package/lib/commonjs/popup/helpers.js +168 -0
- package/lib/commonjs/popup/helpers.js.map +1 -0
- package/lib/commonjs/popup/index.js +51 -0
- package/lib/commonjs/popup/index.js.map +1 -0
- package/lib/commonjs/popup/interface.js +45 -0
- package/lib/commonjs/popup/interface.js.map +1 -0
- package/lib/commonjs/portal/GlobalPortalProvider.js +68 -0
- package/lib/commonjs/portal/GlobalPortalProvider.js.map +1 -0
- package/lib/commonjs/portal/PortalContext.js +38 -0
- package/lib/commonjs/portal/PortalContext.js.map +1 -0
- package/lib/commonjs/portal/PortalInstance.js +123 -0
- package/lib/commonjs/portal/PortalInstance.js.map +1 -0
- package/lib/commonjs/portal/PortalManager.js +87 -0
- package/lib/commonjs/portal/PortalManager.js.map +1 -0
- package/lib/commonjs/portal/PortalRenderer.js +57 -0
- package/lib/commonjs/portal/PortalRenderer.js.map +1 -0
- package/lib/commonjs/portal/index.js +54 -0
- package/lib/commonjs/portal/index.js.map +1 -0
- package/lib/commonjs/portal/portal.test.js +154 -0
- package/lib/commonjs/portal/portal.test.js.map +1 -0
- package/lib/commonjs/portal/types.js +6 -0
- package/lib/commonjs/portal/types.js.map +1 -0
- package/lib/commonjs/pressable/index.js +18 -0
- package/lib/commonjs/pressable/index.js.map +1 -0
- package/lib/commonjs/progressBar/index.js +512 -0
- package/lib/commonjs/progressBar/index.js.map +1 -0
- package/lib/commonjs/radio/index.js +368 -0
- package/lib/commonjs/radio/index.js.map +1 -0
- package/lib/commonjs/safeAreaProvider/index.js +12 -0
- package/lib/commonjs/safeAreaProvider/index.js.map +1 -0
- package/lib/commonjs/safeAreaView/index.js +14 -0
- package/lib/commonjs/safeAreaView/index.js.map +1 -0
- package/lib/commonjs/scrollView/index.js +14 -0
- package/lib/commonjs/scrollView/index.js.map +1 -0
- package/lib/commonjs/searchBar/index.js +356 -0
- package/lib/commonjs/searchBar/index.js.map +1 -0
- package/lib/commonjs/seperator/index.js +44 -0
- package/lib/commonjs/seperator/index.js.map +1 -0
- package/lib/commonjs/services/index.js +185 -0
- package/lib/commonjs/services/index.js.map +1 -0
- package/lib/commonjs/shape/index.js +36 -0
- package/lib/commonjs/shape/index.js.map +1 -0
- package/lib/commonjs/skeleton/index.js +430 -0
- package/lib/commonjs/skeleton/index.js.map +1 -0
- package/lib/commonjs/slider/index.js +499 -0
- package/lib/commonjs/slider/index.js.map +1 -0
- package/lib/commonjs/spacer/index.js +14 -0
- package/lib/commonjs/spacer/index.js.map +1 -0
- package/lib/commonjs/stack/index.js +52 -0
- package/lib/commonjs/stack/index.js.map +1 -0
- package/lib/commonjs/switch/Switch.js +289 -0
- package/lib/commonjs/switch/Switch.js.map +1 -0
- package/lib/commonjs/switch/_index.js +118 -0
- package/lib/commonjs/switch/_index.js.map +1 -0
- package/lib/commonjs/switch/index.js +26 -0
- package/lib/commonjs/switch/index.js.map +1 -0
- package/lib/commonjs/switch/interface.js +47 -0
- package/lib/commonjs/switch/interface.js.map +1 -0
- package/lib/commonjs/tabBar/TabBar.js +409 -0
- package/lib/commonjs/tabBar/TabBar.js.map +1 -0
- package/lib/commonjs/tabBar/TabBarUsage.js +441 -0
- package/lib/commonjs/tabBar/TabBarUsage.js.map +1 -0
- package/lib/commonjs/tabBar/index.js +26 -0
- package/lib/commonjs/tabBar/index.js.map +1 -0
- package/lib/commonjs/tabBar/interface.js +43 -0
- package/lib/commonjs/tabBar/interface.js.map +1 -0
- package/lib/commonjs/text/index.js +65 -0
- package/lib/commonjs/text/index.js.map +1 -0
- package/lib/commonjs/timeline/index.js +264 -0
- package/lib/commonjs/timeline/index.js.map +1 -0
- package/lib/commonjs/toast/index.js +203 -0
- package/lib/commonjs/toast/index.js.map +1 -0
- package/lib/commonjs/toast/useToast.js +82 -0
- package/lib/commonjs/toast/useToast.js.map +1 -0
- package/lib/commonjs/utiles/createIcon.js +49 -0
- package/lib/commonjs/utiles/createIcon.js.map +1 -0
- package/lib/commonjs/utiles/fontStyles.js +36 -0
- package/lib/commonjs/utiles/fontStyles.js.map +1 -0
- package/lib/commonjs/utiles/position.js +98 -0
- package/lib/commonjs/utiles/position.js.map +1 -0
- package/lib/commonjs/utiles/statusBar.js +425 -0
- package/lib/commonjs/utiles/statusBar.js.map +1 -0
- package/lib/commonjs/utiles/styled.js +42 -0
- package/lib/commonjs/utiles/styled.js.map +1 -0
- package/lib/commonjs/utiles/styles.js +30 -0
- package/lib/commonjs/utiles/styles.js.map +1 -0
- package/lib/commonjs/utiles/theme.js +680 -0
- package/lib/commonjs/utiles/theme.js.map +1 -0
- package/lib/commonjs/utiles/validators.js +31 -0
- package/lib/commonjs/utiles/validators.js.map +1 -0
- package/lib/commonjs/utiles/viewStyleProps.js +6 -0
- package/lib/commonjs/utiles/viewStyleProps.js.map +1 -0
- package/lib/commonjs/utiles/viewStyleVariants.js +546 -0
- package/lib/commonjs/utiles/viewStyleVariants.js.map +1 -0
- package/lib/module/actionSheet/actionSheet.js +368 -0
- package/lib/module/actionSheet/actionSheet.js.map +1 -0
- package/lib/module/actionSheet/index.js +5 -0
- package/lib/module/actionSheet/index.js.map +1 -0
- package/lib/module/actionSheet/useActionSheet.js +85 -0
- package/lib/module/actionSheet/useActionSheet.js.map +1 -0
- package/lib/module/badge/index.js +147 -0
- package/lib/module/badge/index.js.map +1 -0
- package/lib/module/barChart/index.js +292 -0
- package/lib/module/barChart/index.js.map +1 -0
- package/lib/module/button/index.js +224 -0
- package/lib/module/button/index.js.map +1 -0
- package/lib/module/card/index.js +198 -0
- package/lib/module/card/index.js.map +1 -0
- package/lib/module/checkBox/index.js +86 -0
- package/lib/module/checkBox/index.js.map +1 -0
- package/lib/module/chips/index.js +232 -0
- package/lib/module/chips/index.js.map +1 -0
- package/lib/module/circularProgress/index.js +259 -0
- package/lib/module/circularProgress/index.js.map +1 -0
- package/lib/module/collapsible/Collapse.js +288 -0
- package/lib/module/collapsible/Collapse.js.map +1 -0
- package/lib/module/collapsible/CollapseGroup.js +133 -0
- package/lib/module/collapsible/CollapseGroup.js.map +1 -0
- package/lib/module/collapsible/index.js +40 -0
- package/lib/module/collapsible/index.js.map +1 -0
- package/lib/module/collapsible/interface.js +35 -0
- package/lib/module/collapsible/interface.js.map +1 -0
- package/lib/module/collapsible/style.js +153 -0
- package/lib/module/collapsible/style.js.map +1 -0
- package/lib/module/datePicker/index.js +908 -0
- package/lib/module/datePicker/index.js.map +1 -0
- package/lib/module/dialog/dialogue.js +189 -0
- package/lib/module/dialog/dialogue.js.map +1 -0
- package/lib/module/dialog/index.js +386 -0
- package/lib/module/dialog/index.js.map +1 -0
- package/lib/module/dialog/useDialogue.js +113 -0
- package/lib/module/dialog/useDialogue.js.map +1 -0
- package/lib/module/divider/index.js +34 -0
- package/lib/module/divider/index.js.map +1 -0
- package/lib/module/drawer/Drawer.js +583 -0
- package/lib/module/drawer/Drawer.js.map +1 -0
- package/lib/module/drawer/index.js +60 -0
- package/lib/module/drawer/index.js.map +1 -0
- package/lib/module/drawer/interface.js +80 -0
- package/lib/module/drawer/interface.js.map +1 -0
- package/lib/module/dropdown/index.js +854 -0
- package/lib/module/dropdown/index.js.map +1 -0
- package/lib/module/emptyState/index.js +225 -0
- package/lib/module/emptyState/index.js.map +1 -0
- package/lib/module/form/index.js +2 -0
- package/lib/module/form/index.js.map +1 -0
- package/lib/module/header/index.js +143 -0
- package/lib/module/header/index.js.map +1 -0
- package/lib/module/header/statusBar/index.js +15 -0
- package/lib/module/header/statusBar/index.js.map +1 -0
- package/lib/module/icons/backArrow.js +37 -0
- package/lib/module/icons/backArrow.js.map +1 -0
- package/lib/module/icons/bellFill.js +38 -0
- package/lib/module/icons/bellFill.js.map +1 -0
- package/lib/module/icons/bellOutline.js +38 -0
- package/lib/module/icons/bellOutline.js.map +1 -0
- package/lib/module/icons/checkmark.js +31 -0
- package/lib/module/icons/checkmark.js.map +1 -0
- package/lib/module/icons/delete.js +48 -0
- package/lib/module/icons/delete.js.map +1 -0
- package/lib/module/icons/downChevron.js +31 -0
- package/lib/module/icons/downChevron.js.map +1 -0
- package/lib/module/icons/error.js +36 -0
- package/lib/module/icons/error.js.map +1 -0
- package/lib/module/icons/forwardArrow.js +37 -0
- package/lib/module/icons/forwardArrow.js.map +1 -0
- package/lib/module/icons/index.js +18 -0
- package/lib/module/icons/index.js.map +1 -0
- package/lib/module/icons/info.js +43 -0
- package/lib/module/icons/info.js.map +1 -0
- package/lib/module/icons/leftChevron.js +31 -0
- package/lib/module/icons/leftChevron.js.map +1 -0
- package/lib/module/icons/rightChevron.js +31 -0
- package/lib/module/icons/rightChevron.js.map +1 -0
- package/lib/module/icons/save.js +45 -0
- package/lib/module/icons/save.js.map +1 -0
- package/lib/module/icons/success.js +38 -0
- package/lib/module/icons/success.js.map +1 -0
- package/lib/module/icons/upChevron.js +31 -0
- package/lib/module/icons/upChevron.js.map +1 -0
- package/lib/module/icons/warning.js +43 -0
- package/lib/module/icons/warning.js.map +1 -0
- package/lib/module/image/index.js +43 -0
- package/lib/module/image/index.js.map +1 -0
- package/lib/module/index.js +56 -24
- package/lib/module/index.js.map +1 -1
- package/lib/module/input/index.js +483 -0
- package/lib/module/input/index.js.map +1 -0
- package/lib/module/loading/circular.js +111 -0
- package/lib/module/loading/circular.js.map +1 -0
- package/lib/module/loading/index.js +7 -0
- package/lib/module/loading/index.js.map +1 -0
- package/lib/module/loading/loader.js +242 -0
- package/lib/module/loading/loader.js.map +1 -0
- package/lib/module/loading/spinner.js +85 -0
- package/lib/module/loading/spinner.js.map +1 -0
- package/lib/module/loading/useLoader.js +58 -0
- package/lib/module/loading/useLoader.js.map +1 -0
- package/lib/module/loading/useLoaderBinding.js +28 -0
- package/lib/module/loading/useLoaderBinding.js.map +1 -0
- package/lib/module/notification/index.js +253 -0
- package/lib/module/notification/index.js.map +1 -0
- package/lib/module/notification/useNotification.js +58 -0
- package/lib/module/notification/useNotification.js.map +1 -0
- package/lib/module/page/index.js +17 -0
- package/lib/module/page/index.js.map +1 -0
- package/lib/module/popup/Popup.js +328 -0
- package/lib/module/popup/Popup.js.map +1 -0
- package/lib/module/popup/helpers.js +159 -0
- package/lib/module/popup/helpers.js.map +1 -0
- package/lib/module/popup/index.js +45 -0
- package/lib/module/popup/index.js.map +1 -0
- package/lib/module/popup/interface.js +41 -0
- package/lib/module/popup/interface.js.map +1 -0
- package/lib/module/portal/GlobalPortalProvider.js +62 -0
- package/lib/module/portal/GlobalPortalProvider.js.map +1 -0
- package/lib/module/portal/PortalContext.js +33 -0
- package/lib/module/portal/PortalContext.js.map +1 -0
- package/lib/module/portal/PortalInstance.js +118 -0
- package/lib/module/portal/PortalInstance.js.map +1 -0
- package/lib/module/portal/PortalManager.js +81 -0
- package/lib/module/portal/PortalManager.js.map +1 -0
- package/lib/module/portal/PortalRenderer.js +51 -0
- package/lib/module/portal/PortalRenderer.js.map +1 -0
- package/lib/module/portal/index.js +56 -0
- package/lib/module/portal/index.js.map +1 -0
- package/lib/module/portal/portal.test.js +155 -0
- package/lib/module/portal/portal.test.js.map +1 -0
- package/lib/module/portal/types.js +4 -0
- package/lib/module/portal/types.js.map +1 -0
- package/lib/module/pressable/index.js +15 -0
- package/lib/module/pressable/index.js.map +1 -0
- package/lib/module/progressBar/index.js +506 -0
- package/lib/module/progressBar/index.js.map +1 -0
- package/lib/module/radio/index.js +361 -0
- package/lib/module/radio/index.js.map +1 -0
- package/lib/module/safeAreaProvider/index.js +9 -0
- package/lib/module/safeAreaProvider/index.js.map +1 -0
- package/lib/module/safeAreaView/index.js +11 -0
- package/lib/module/safeAreaView/index.js.map +1 -0
- package/lib/module/scrollView/index.js +11 -0
- package/lib/module/scrollView/index.js.map +1 -0
- package/lib/module/searchBar/index.js +350 -0
- package/lib/module/searchBar/index.js.map +1 -0
- package/lib/module/seperator/index.js +40 -0
- package/lib/module/seperator/index.js.map +1 -0
- package/lib/module/services/index.js +181 -0
- package/lib/module/services/index.js.map +1 -0
- package/lib/module/shape/index.js +33 -0
- package/lib/module/shape/index.js.map +1 -0
- package/lib/module/skeleton/index.js +425 -0
- package/lib/module/skeleton/index.js.map +1 -0
- package/lib/module/slider/index.js +493 -0
- package/lib/module/slider/index.js.map +1 -0
- package/lib/module/spacer/index.js +11 -0
- package/lib/module/spacer/index.js.map +1 -0
- package/lib/module/stack/index.js +50 -0
- package/lib/module/stack/index.js.map +1 -0
- package/lib/module/switch/Switch.js +285 -0
- package/lib/module/switch/Switch.js.map +1 -0
- package/lib/module/switch/_index.js +114 -0
- package/lib/module/switch/_index.js.map +1 -0
- package/lib/module/switch/index.js +64 -0
- package/lib/module/switch/index.js.map +1 -0
- package/lib/module/switch/interface.js +43 -0
- package/lib/module/switch/interface.js.map +1 -0
- package/lib/module/tabBar/TabBar.js +405 -0
- package/lib/module/tabBar/TabBar.js.map +1 -0
- package/lib/module/tabBar/TabBarUsage.js +437 -0
- package/lib/module/tabBar/TabBarUsage.js.map +1 -0
- package/lib/module/tabBar/index.js +54 -0
- package/lib/module/tabBar/index.js.map +1 -0
- package/lib/module/tabBar/interface.js +39 -0
- package/lib/module/tabBar/interface.js.map +1 -0
- package/lib/module/text/index.js +62 -0
- package/lib/module/text/index.js.map +1 -0
- package/lib/module/timeline/index.js +258 -0
- package/lib/module/timeline/index.js.map +1 -0
- package/lib/module/toast/index.js +187 -0
- package/lib/module/toast/index.js.map +1 -0
- package/lib/module/toast/useToast.js +78 -0
- package/lib/module/toast/useToast.js.map +1 -0
- package/lib/module/utiles/createIcon.js +45 -0
- package/lib/module/utiles/createIcon.js.map +1 -0
- package/lib/module/utiles/fontStyles.js +31 -0
- package/lib/module/utiles/fontStyles.js.map +1 -0
- package/lib/module/utiles/position.js +94 -0
- package/lib/module/utiles/position.js.map +1 -0
- package/lib/module/utiles/statusBar.js +401 -0
- package/lib/module/utiles/statusBar.js.map +1 -0
- package/lib/module/utiles/styled.js +37 -0
- package/lib/module/utiles/styled.js.map +1 -0
- package/lib/module/utiles/styles.js +27 -0
- package/lib/module/utiles/styles.js.map +1 -0
- package/lib/module/{package → utiles}/theme.js +305 -17
- package/lib/module/utiles/theme.js.map +1 -0
- package/lib/module/utiles/validators.js +24 -0
- package/lib/module/utiles/validators.js.map +1 -0
- package/lib/module/utiles/viewStyleProps.js +4 -0
- package/lib/module/utiles/viewStyleProps.js.map +1 -0
- package/lib/module/utiles/viewStyleVariants.js +542 -0
- package/lib/module/utiles/viewStyleVariants.js.map +1 -0
- package/lib/typescript/actionSheet/actionSheet.d.ts +82 -0
- package/lib/typescript/actionSheet/actionSheet.d.ts.map +1 -0
- package/lib/typescript/actionSheet/index.d.ts +4 -0
- package/lib/typescript/actionSheet/index.d.ts.map +1 -0
- package/lib/typescript/actionSheet/useActionSheet.d.ts +82 -0
- package/lib/typescript/actionSheet/useActionSheet.d.ts.map +1 -0
- package/lib/typescript/badge/index.d.ts +37 -0
- package/lib/typescript/badge/index.d.ts.map +1 -0
- package/lib/typescript/barChart/index.d.ts +125 -0
- package/lib/typescript/barChart/index.d.ts.map +1 -0
- package/lib/typescript/button/index.d.ts +86 -0
- package/lib/typescript/button/index.d.ts.map +1 -0
- package/lib/typescript/card/index.d.ts +53 -0
- package/lib/typescript/card/index.d.ts.map +1 -0
- package/lib/typescript/checkBox/index.d.ts +28 -0
- package/lib/typescript/checkBox/index.d.ts.map +1 -0
- package/lib/typescript/chips/index.d.ts +104 -0
- package/lib/typescript/chips/index.d.ts.map +1 -0
- package/lib/typescript/circularProgress/index.d.ts +36 -0
- package/lib/typescript/circularProgress/index.d.ts.map +1 -0
- package/lib/typescript/collapsible/Collapse.d.ts +5 -0
- package/lib/typescript/collapsible/Collapse.d.ts.map +1 -0
- package/lib/typescript/collapsible/CollapseGroup.d.ts +49 -0
- package/lib/typescript/collapsible/CollapseGroup.d.ts.map +1 -0
- package/lib/typescript/collapsible/index.d.ts +38 -0
- package/lib/typescript/collapsible/index.d.ts.map +1 -0
- package/lib/typescript/collapsible/interface.d.ts +116 -0
- package/lib/typescript/collapsible/interface.d.ts.map +1 -0
- package/lib/typescript/collapsible/style.d.ts +92 -0
- package/lib/typescript/collapsible/style.d.ts.map +1 -0
- package/lib/typescript/datePicker/index.d.ts +91 -0
- package/lib/typescript/datePicker/index.d.ts.map +1 -0
- package/lib/typescript/dialog/dialogue.d.ts +20 -0
- package/lib/typescript/dialog/dialogue.d.ts.map +1 -0
- package/lib/typescript/dialog/index.d.ts +175 -0
- package/lib/typescript/dialog/index.d.ts.map +1 -0
- package/lib/typescript/dialog/useDialogue.d.ts +21 -0
- package/lib/typescript/dialog/useDialogue.d.ts.map +1 -0
- package/lib/typescript/divider/index.d.ts +12 -0
- package/lib/typescript/divider/index.d.ts.map +1 -0
- package/lib/typescript/drawer/Drawer.d.ts +4 -0
- package/lib/typescript/drawer/Drawer.d.ts.map +1 -0
- package/lib/typescript/drawer/index.d.ts +48 -0
- package/lib/typescript/drawer/index.d.ts.map +1 -0
- package/lib/typescript/drawer/interface.d.ts +232 -0
- package/lib/typescript/drawer/interface.d.ts.map +1 -0
- package/lib/typescript/dropdown/index.d.ts +54 -0
- package/lib/typescript/dropdown/index.d.ts.map +1 -0
- package/lib/typescript/emptyState/index.d.ts +57 -0
- package/lib/typescript/emptyState/index.d.ts.map +1 -0
- package/lib/typescript/form/index.d.ts +1 -0
- package/lib/typescript/form/index.d.ts.map +1 -0
- package/lib/typescript/header/index.d.ts +44 -0
- package/lib/typescript/header/index.d.ts.map +1 -0
- package/lib/typescript/header/statusBar/index.d.ts +6 -0
- package/lib/typescript/header/statusBar/index.d.ts.map +1 -0
- package/lib/typescript/icons/backArrow.d.ts +12 -0
- package/lib/typescript/icons/backArrow.d.ts.map +1 -0
- package/lib/typescript/icons/bellFill.d.ts +12 -0
- package/lib/typescript/icons/bellFill.d.ts.map +1 -0
- package/lib/typescript/icons/bellOutline.d.ts +12 -0
- package/lib/typescript/icons/bellOutline.d.ts.map +1 -0
- package/lib/typescript/icons/checkmark.d.ts +12 -0
- package/lib/typescript/icons/checkmark.d.ts.map +1 -0
- package/lib/typescript/icons/delete.d.ts +12 -0
- package/lib/typescript/icons/delete.d.ts.map +1 -0
- package/lib/typescript/icons/downChevron.d.ts +12 -0
- package/lib/typescript/icons/downChevron.d.ts.map +1 -0
- package/lib/typescript/icons/error.d.ts +12 -0
- package/lib/typescript/icons/error.d.ts.map +1 -0
- package/lib/typescript/icons/forwardArrow.d.ts +12 -0
- package/lib/typescript/icons/forwardArrow.d.ts.map +1 -0
- package/lib/typescript/icons/index.d.ts +16 -0
- package/lib/typescript/icons/index.d.ts.map +1 -0
- package/lib/typescript/icons/info.d.ts +12 -0
- package/lib/typescript/icons/info.d.ts.map +1 -0
- package/lib/typescript/icons/leftChevron.d.ts +12 -0
- package/lib/typescript/icons/leftChevron.d.ts.map +1 -0
- package/lib/typescript/icons/rightChevron.d.ts +12 -0
- package/lib/typescript/icons/rightChevron.d.ts.map +1 -0
- package/lib/typescript/icons/save.d.ts +12 -0
- package/lib/typescript/icons/save.d.ts.map +1 -0
- package/lib/typescript/icons/success.d.ts +12 -0
- package/lib/typescript/icons/success.d.ts.map +1 -0
- package/lib/typescript/icons/upChevron.d.ts +12 -0
- package/lib/typescript/icons/upChevron.d.ts.map +1 -0
- package/lib/typescript/icons/warning.d.ts +12 -0
- package/lib/typescript/icons/warning.d.ts.map +1 -0
- package/lib/typescript/image/index.d.ts +15 -0
- package/lib/typescript/image/index.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +56 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/input/index.d.ts +89 -0
- package/lib/typescript/input/index.d.ts.map +1 -0
- package/lib/typescript/loading/circular.d.ts +10 -0
- package/lib/typescript/loading/circular.d.ts.map +1 -0
- package/lib/typescript/loading/index.d.ts +7 -0
- package/lib/typescript/loading/index.d.ts.map +1 -0
- package/lib/typescript/loading/loader.d.ts +23 -0
- package/lib/typescript/loading/loader.d.ts.map +1 -0
- package/lib/typescript/loading/spinner.d.ts +22 -0
- package/lib/typescript/loading/spinner.d.ts.map +1 -0
- package/lib/typescript/loading/useLoader.d.ts +27 -0
- package/lib/typescript/loading/useLoader.d.ts.map +1 -0
- package/lib/typescript/loading/useLoaderBinding.d.ts +9 -0
- package/lib/typescript/loading/useLoaderBinding.d.ts.map +1 -0
- package/lib/typescript/notification/index.d.ts +21 -0
- package/lib/typescript/notification/index.d.ts.map +1 -0
- package/lib/typescript/notification/useNotification.d.ts +30 -0
- package/lib/typescript/notification/useNotification.d.ts.map +1 -0
- package/lib/typescript/page/index.d.ts +12 -0
- package/lib/typescript/page/index.d.ts.map +1 -0
- package/lib/typescript/popup/Popup.d.ts +4 -0
- package/lib/typescript/popup/Popup.d.ts.map +1 -0
- package/lib/typescript/popup/helpers.d.ts +9 -0
- package/lib/typescript/popup/helpers.d.ts.map +1 -0
- package/lib/typescript/popup/index.d.ts +43 -0
- package/lib/typescript/popup/index.d.ts.map +1 -0
- package/lib/typescript/popup/interface.d.ts +103 -0
- package/lib/typescript/popup/interface.d.ts.map +1 -0
- package/lib/typescript/portal/GlobalPortalProvider.d.ts +44 -0
- package/lib/typescript/portal/GlobalPortalProvider.d.ts.map +1 -0
- package/lib/typescript/portal/PortalContext.d.ts +25 -0
- package/lib/typescript/portal/PortalContext.d.ts.map +1 -0
- package/lib/typescript/portal/PortalInstance.d.ts +72 -0
- package/lib/typescript/portal/PortalInstance.d.ts.map +1 -0
- package/lib/typescript/portal/PortalManager.d.ts +7 -0
- package/lib/typescript/portal/PortalManager.d.ts.map +1 -0
- package/lib/typescript/portal/PortalRenderer.d.ts +27 -0
- package/lib/typescript/portal/PortalRenderer.d.ts.map +1 -0
- package/lib/typescript/portal/index.d.ts +43 -0
- package/lib/typescript/portal/index.d.ts.map +1 -0
- package/lib/typescript/portal/portal.test.d.ts +11 -0
- package/lib/typescript/portal/portal.test.d.ts.map +1 -0
- package/lib/typescript/portal/types.d.ts +30 -0
- package/lib/typescript/portal/types.d.ts.map +1 -0
- package/lib/typescript/pressable/index.d.ts +8 -0
- package/lib/typescript/pressable/index.d.ts.map +1 -0
- package/lib/typescript/progressBar/index.d.ts +155 -0
- package/lib/typescript/progressBar/index.d.ts.map +1 -0
- package/lib/typescript/radio/index.d.ts +144 -0
- package/lib/typescript/radio/index.d.ts.map +1 -0
- package/lib/typescript/safeAreaProvider/index.d.ts +7 -0
- package/lib/typescript/safeAreaProvider/index.d.ts.map +1 -0
- package/lib/typescript/safeAreaView/index.d.ts +8 -0
- package/lib/typescript/safeAreaView/index.d.ts.map +1 -0
- package/lib/typescript/scrollView/index.d.ts +8 -0
- package/lib/typescript/scrollView/index.d.ts.map +1 -0
- package/lib/typescript/searchBar/index.d.ts +70 -0
- package/lib/typescript/searchBar/index.d.ts.map +1 -0
- package/lib/typescript/seperator/index.d.ts +13 -0
- package/lib/typescript/seperator/index.d.ts.map +1 -0
- package/lib/typescript/services/index.d.ts +56 -0
- package/lib/typescript/services/index.d.ts.map +1 -0
- package/lib/typescript/shape/index.d.ts +11 -0
- package/lib/typescript/shape/index.d.ts.map +1 -0
- package/lib/typescript/skeleton/index.d.ts +63 -0
- package/lib/typescript/skeleton/index.d.ts.map +1 -0
- package/lib/typescript/slider/index.d.ts +60 -0
- package/lib/typescript/slider/index.d.ts.map +1 -0
- package/lib/typescript/spacer/index.d.ts +8 -0
- package/lib/typescript/spacer/index.d.ts.map +1 -0
- package/lib/typescript/stack/index.d.ts +24 -0
- package/lib/typescript/stack/index.d.ts.map +1 -0
- package/lib/typescript/switch/Switch.d.ts +6 -0
- package/lib/typescript/switch/Switch.d.ts.map +1 -0
- package/lib/typescript/switch/_index.d.ts +11 -0
- package/lib/typescript/switch/_index.d.ts.map +1 -0
- package/lib/typescript/switch/index.d.ts +62 -0
- package/lib/typescript/switch/index.d.ts.map +1 -0
- package/lib/typescript/switch/interface.d.ts +74 -0
- package/lib/typescript/switch/interface.d.ts.map +1 -0
- package/lib/typescript/tabBar/TabBar.d.ts +5 -0
- package/lib/typescript/tabBar/TabBar.d.ts.map +1 -0
- package/lib/typescript/tabBar/TabBarUsage.d.ts +6 -0
- package/lib/typescript/tabBar/TabBarUsage.d.ts.map +1 -0
- package/lib/typescript/tabBar/index.d.ts +52 -0
- package/lib/typescript/tabBar/index.d.ts.map +1 -0
- package/lib/typescript/tabBar/interface.d.ts +119 -0
- package/lib/typescript/tabBar/interface.d.ts.map +1 -0
- package/lib/typescript/text/index.d.ts +16 -0
- package/lib/typescript/text/index.d.ts.map +1 -0
- package/lib/typescript/timeline/index.d.ts +125 -0
- package/lib/typescript/timeline/index.d.ts.map +1 -0
- package/lib/typescript/toast/index.d.ts +28 -0
- package/lib/typescript/toast/index.d.ts.map +1 -0
- package/lib/typescript/toast/useToast.d.ts +31 -0
- package/lib/typescript/toast/useToast.d.ts.map +1 -0
- package/lib/typescript/utiles/createIcon.d.ts +39 -0
- package/lib/typescript/utiles/createIcon.d.ts.map +1 -0
- package/lib/typescript/utiles/fontStyles.d.ts +9 -0
- package/lib/typescript/utiles/fontStyles.d.ts.map +1 -0
- package/lib/typescript/utiles/position.d.ts +13 -0
- package/lib/typescript/utiles/position.d.ts.map +1 -0
- package/lib/typescript/utiles/statusBar.d.ts +128 -0
- package/lib/typescript/utiles/statusBar.d.ts.map +1 -0
- package/lib/typescript/utiles/styled.d.ts +14 -0
- package/lib/typescript/utiles/styled.d.ts.map +1 -0
- package/lib/typescript/utiles/styles.d.ts +31 -0
- package/lib/typescript/utiles/styles.d.ts.map +1 -0
- package/lib/typescript/utiles/theme.d.ts +918 -0
- package/lib/typescript/utiles/theme.d.ts.map +1 -0
- package/lib/typescript/utiles/validators.d.ts +14 -0
- package/lib/typescript/utiles/validators.d.ts.map +1 -0
- package/lib/typescript/utiles/viewStyleProps.d.ts +4 -0
- package/lib/typescript/utiles/viewStyleProps.d.ts.map +1 -0
- package/lib/typescript/utiles/viewStyleVariants.d.ts +121 -0
- package/lib/typescript/utiles/viewStyleVariants.d.ts.map +1 -0
- package/package.json +146 -52
- package/src/actionSheet/actionSheet.tsx +471 -0
- package/src/actionSheet/index.tsx +3 -0
- package/src/actionSheet/useActionSheet.tsx +140 -0
- package/src/badge/index.tsx +185 -0
- package/src/barChart/index.tsx +386 -0
- package/src/button/index.tsx +335 -0
- package/src/card/index.tsx +220 -0
- package/src/checkBox/index.tsx +137 -0
- package/src/chips/index.tsx +293 -0
- package/src/circularProgress/index.tsx +349 -0
- package/src/collapsible/Collapse.tsx +366 -0
- package/src/collapsible/CollapseGroup.tsx +161 -0
- package/src/collapsible/index.ts +48 -0
- package/src/collapsible/interface.ts +187 -0
- package/src/collapsible/style.ts +130 -0
- package/src/datePicker/index.tsx +961 -0
- package/src/dialog/dialogue.tsx +155 -0
- package/src/dialog/index.tsx +604 -0
- package/src/dialog/useDialogue.tsx +158 -0
- package/src/divider/index.tsx +45 -0
- package/src/drawer/Drawer.tsx +655 -0
- package/src/drawer/index.ts +60 -0
- package/src/drawer/interface.ts +391 -0
- package/src/dropdown/index.tsx +1081 -0
- package/src/emptyState/index.tsx +287 -0
- package/src/form/index.tsx +0 -0
- package/src/header/index.tsx +217 -0
- package/src/header/statusBar/index.tsx +11 -0
- package/src/icons/backArrow.tsx +17 -0
- package/src/icons/bellFill.tsx +19 -0
- package/src/icons/bellOutline.tsx +18 -0
- package/src/icons/checkmark.tsx +18 -0
- package/src/icons/delete.tsx +19 -0
- package/src/icons/downChevron.tsx +18 -0
- package/src/icons/error.tsx +17 -0
- package/src/icons/forwardArrow.tsx +19 -0
- package/src/icons/index.ts +15 -0
- package/src/icons/info.tsx +19 -0
- package/src/icons/leftChevron.tsx +18 -0
- package/src/icons/rightChevron.tsx +18 -0
- package/src/icons/save.tsx +18 -0
- package/src/icons/success.tsx +17 -0
- package/src/icons/upChevron.tsx +18 -0
- package/src/icons/warning.tsx +19 -0
- package/src/image/index.tsx +45 -0
- package/src/index.ts +72 -0
- package/src/input/index.tsx +668 -0
- package/src/loading/circular.tsx +141 -0
- package/src/loading/index.tsx +6 -0
- package/src/loading/loader.tsx +191 -0
- package/src/loading/spinner.tsx +126 -0
- package/src/loading/useLoader.tsx +78 -0
- package/src/loading/useLoaderBinding.tsx +38 -0
- package/src/notification/index.tsx +189 -0
- package/src/notification/useNotification.tsx +64 -0
- package/src/page/index.tsx +19 -0
- package/src/popup/Popup.tsx +398 -0
- package/src/popup/helpers.ts +123 -0
- package/src/popup/index.ts +45 -0
- package/src/popup/interface.ts +178 -0
- package/src/portal/GlobalPortalProvider.tsx +63 -0
- package/src/portal/PortalContext.ts +37 -0
- package/src/portal/PortalInstance.ts +118 -0
- package/src/portal/PortalManager.tsx +84 -0
- package/src/portal/PortalRenderer.tsx +72 -0
- package/src/portal/index.ts +60 -0
- package/src/portal/portal.test.ts +157 -0
- package/src/portal/types.ts +49 -0
- package/src/pressable/index.tsx +19 -0
- package/src/progressBar/index.tsx +564 -0
- package/src/radio/index.tsx +469 -0
- package/src/safeAreaProvider/index.ts +16 -0
- package/src/safeAreaView/index.tsx +17 -0
- package/src/scrollView/index.ts +15 -0
- package/src/searchBar/index.tsx +383 -0
- package/src/seperator/index.tsx +59 -0
- package/src/services/index.ts +149 -0
- package/src/shape/index.tsx +38 -0
- package/src/skeleton/index.tsx +350 -0
- package/src/slider/index.tsx +637 -0
- package/src/spacer/index.ts +29 -0
- package/src/stack/index.ts +58 -0
- package/src/switch/Switch.tsx +343 -0
- package/src/switch/_index.tsx +135 -0
- package/src/switch/index.ts +62 -0
- package/src/switch/interface.ts +120 -0
- package/src/tabBar/TabBar.tsx +503 -0
- package/src/tabBar/TabBarUsage.tsx +366 -0
- package/src/tabBar/index.ts +59 -0
- package/src/tabBar/interface.ts +196 -0
- package/src/text/index.ts +73 -0
- package/src/timeline/index.tsx +374 -0
- package/src/toast/index.tsx +172 -0
- package/src/toast/useToast.tsx +93 -0
- package/src/utiles/createIcon.ts +44 -0
- package/src/utiles/fontStyles.js +31 -0
- package/src/utiles/position.ts +100 -0
- package/src/utiles/statusBar.ts +410 -0
- package/src/utiles/styled.tsx +48 -0
- package/src/utiles/styles.ts +25 -0
- package/src/utiles/theme.ts +727 -0
- package/src/utiles/validators.ts +21 -0
- package/src/utiles/viewStyleProps.ts +41 -0
- package/src/utiles/viewStyleVariants.ts +411 -0
- package/lib/commonjs/assets/img/blank_1.png +0 -0
- package/lib/commonjs/assets/img/blank_2.png +0 -0
- package/lib/commonjs/assets/img/doctor.png +0 -0
- package/lib/commonjs/package/badge/index.js +0 -161
- package/lib/commonjs/package/badge/index.js.map +0 -1
- package/lib/commonjs/package/button/index.js +0 -99
- package/lib/commonjs/package/button/index.js.map +0 -1
- package/lib/commonjs/package/card/index.js +0 -46
- package/lib/commonjs/package/card/index.js.map +0 -1
- package/lib/commonjs/package/checkBox/index.js +0 -97
- package/lib/commonjs/package/checkBox/index.js.map +0 -1
- package/lib/commonjs/package/cycle/index.js +0 -43
- package/lib/commonjs/package/cycle/index.js.map +0 -1
- package/lib/commonjs/package/dialog/index.js +0 -216
- package/lib/commonjs/package/dialog/index.js.map +0 -1
- package/lib/commonjs/package/dropdown/index.js +0 -112
- package/lib/commonjs/package/dropdown/index.js.map +0 -1
- package/lib/commonjs/package/form/index.js +0 -190
- package/lib/commonjs/package/form/index.js.map +0 -1
- package/lib/commonjs/package/header/index.js +0 -99
- package/lib/commonjs/package/header/index.js.map +0 -1
- package/lib/commonjs/package/image/index.js +0 -326
- package/lib/commonjs/package/image/index.js.map +0 -1
- package/lib/commonjs/package/radioButton/index.js +0 -75
- package/lib/commonjs/package/radioButton/index.js.map +0 -1
- package/lib/commonjs/package/safeAreaView/index.js +0 -26
- package/lib/commonjs/package/safeAreaView/index.js.map +0 -1
- package/lib/commonjs/package/scrollView/index.js +0 -23
- package/lib/commonjs/package/scrollView/index.js.map +0 -1
- package/lib/commonjs/package/separator/index.js +0 -33
- package/lib/commonjs/package/separator/index.js.map +0 -1
- package/lib/commonjs/package/spacer/index.js +0 -18
- package/lib/commonjs/package/spacer/index.js.map +0 -1
- package/lib/commonjs/package/spinner/index.js +0 -43
- package/lib/commonjs/package/spinner/index.js.map +0 -1
- package/lib/commonjs/package/stack/__test__/index.test.js +0 -91
- package/lib/commonjs/package/stack/__test__/index.test.js.map +0 -1
- package/lib/commonjs/package/stack/index.js +0 -54
- package/lib/commonjs/package/stack/index.js.map +0 -1
- package/lib/commonjs/package/styled/__test__/index.test.js +0 -161
- package/lib/commonjs/package/styled/__test__/index.test.js.map +0 -1
- package/lib/commonjs/package/styled/index.js +0 -42
- package/lib/commonjs/package/styled/index.js.map +0 -1
- package/lib/commonjs/package/switch/index.js +0 -43
- package/lib/commonjs/package/switch/index.js.map +0 -1
- package/lib/commonjs/package/text/index.js +0 -81
- package/lib/commonjs/package/text/index.js.map +0 -1
- package/lib/commonjs/package/theme.js +0 -385
- package/lib/commonjs/package/theme.js.map +0 -1
- package/lib/commonjs/package/utils/index.js +0 -130
- package/lib/commonjs/package/utils/index.js.map +0 -1
- package/lib/commonjs/package/utils/statusBar.js +0 -70
- package/lib/commonjs/package/utils/statusBar.js.map +0 -1
- package/lib/commonjs/package/utils/validator.js +0 -40
- package/lib/commonjs/package/utils/validator.js.map +0 -1
- package/lib/commonjs/styled.code-workspace +0 -9
- package/lib/module/assets/img/blank_1.png +0 -0
- package/lib/module/assets/img/blank_2.png +0 -0
- package/lib/module/assets/img/doctor.png +0 -0
- package/lib/module/package/badge/index.js +0 -153
- package/lib/module/package/badge/index.js.map +0 -1
- package/lib/module/package/button/index.js +0 -92
- package/lib/module/package/button/index.js.map +0 -1
- package/lib/module/package/card/index.js +0 -39
- package/lib/module/package/card/index.js.map +0 -1
- package/lib/module/package/checkBox/index.js +0 -88
- package/lib/module/package/checkBox/index.js.map +0 -1
- package/lib/module/package/cycle/index.js +0 -36
- package/lib/module/package/cycle/index.js.map +0 -1
- package/lib/module/package/dialog/index.js +0 -206
- package/lib/module/package/dialog/index.js.map +0 -1
- package/lib/module/package/dropdown/index.js +0 -102
- package/lib/module/package/dropdown/index.js.map +0 -1
- package/lib/module/package/form/index.js +0 -182
- package/lib/module/package/form/index.js.map +0 -1
- package/lib/module/package/header/index.js +0 -93
- package/lib/module/package/header/index.js.map +0 -1
- package/lib/module/package/image/index.js +0 -315
- package/lib/module/package/image/index.js.map +0 -1
- package/lib/module/package/radioButton/index.js +0 -66
- package/lib/module/package/radioButton/index.js.map +0 -1
- package/lib/module/package/safeAreaView/index.js +0 -21
- package/lib/module/package/safeAreaView/index.js.map +0 -1
- package/lib/module/package/scrollView/index.js +0 -18
- package/lib/module/package/scrollView/index.js.map +0 -1
- package/lib/module/package/separator/index.js +0 -26
- package/lib/module/package/separator/index.js.map +0 -1
- package/lib/module/package/spacer/index.js +0 -11
- package/lib/module/package/spacer/index.js.map +0 -1
- package/lib/module/package/spinner/index.js +0 -36
- package/lib/module/package/spinner/index.js.map +0 -1
- package/lib/module/package/stack/__test__/index.test.js +0 -89
- package/lib/module/package/stack/__test__/index.test.js.map +0 -1
- package/lib/module/package/stack/index.js +0 -49
- package/lib/module/package/stack/index.js.map +0 -1
- package/lib/module/package/styled/__test__/index.test.js +0 -158
- package/lib/module/package/styled/__test__/index.test.js.map +0 -1
- package/lib/module/package/styled/index.js +0 -35
- package/lib/module/package/styled/index.js.map +0 -1
- package/lib/module/package/switch/index.js +0 -36
- package/lib/module/package/switch/index.js.map +0 -1
- package/lib/module/package/text/index.js +0 -76
- package/lib/module/package/text/index.js.map +0 -1
- package/lib/module/package/theme.js.map +0 -1
- package/lib/module/package/utils/index.js +0 -120
- package/lib/module/package/utils/index.js.map +0 -1
- package/lib/module/package/utils/statusBar.js +0 -57
- package/lib/module/package/utils/statusBar.js.map +0 -1
- package/lib/module/package/utils/validator.js +0 -34
- package/lib/module/package/utils/validator.js.map +0 -1
- package/lib/module/styled.code-workspace +0 -9
- package/src/assets/img/blank_1.png +0 -0
- package/src/assets/img/blank_2.png +0 -0
- package/src/assets/img/doctor.png +0 -0
- package/src/index.js +0 -24
- package/src/package/badge/index.jsx +0 -135
- package/src/package/button/index.jsx +0 -83
- package/src/package/card/index.jsx +0 -52
- package/src/package/checkBox/index.jsx +0 -102
- package/src/package/cycle/index.jsx +0 -49
- package/src/package/dialog/index.jsx +0 -263
- package/src/package/dropdown/index.jsx +0 -101
- package/src/package/form/index.jsx +0 -144
- package/src/package/header/index.jsx +0 -96
- package/src/package/image/index.jsx +0 -300
- package/src/package/radioButton/index.jsx +0 -74
- package/src/package/safeAreaView/index.jsx +0 -20
- package/src/package/scrollView/index.jsx +0 -17
- package/src/package/separator/index.jsx +0 -27
- package/src/package/spacer/index.jsx +0 -13
- package/src/package/spinner/index.jsx +0 -33
- package/src/package/stack/__test__/index.test.js +0 -68
- package/src/package/stack/index.jsx +0 -50
- package/src/package/styled/__test__/index.test.js +0 -132
- package/src/package/styled/index.js +0 -32
- package/src/package/switch/index.jsx +0 -33
- package/src/package/text/index.jsx +0 -67
- package/src/package/theme.js +0 -377
- package/src/package/utils/index.js +0 -109
- package/src/package/utils/statusBar.js +0 -65
- package/src/package/utils/validator.js +0 -38
- package/src/styled.code-workspace +0 -9
|
@@ -1,206 +0,0 @@
|
|
|
1
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
|
-
import React, { useState } from 'react';
|
|
3
|
-
import { Modal } from 'react-native';
|
|
4
|
-
import { XStack, YStack } from '../stack';
|
|
5
|
-
import { StyledText } from '../text';
|
|
6
|
-
import { StyledButton } from '../button';
|
|
7
|
-
import { StyledSpacer } from '../spacer';
|
|
8
|
-
import { styled } from '../styled';
|
|
9
|
-
import { theme } from '../theme';
|
|
10
|
-
const Dialog = styled(Modal, {
|
|
11
|
-
base: {
|
|
12
|
-
backgroundColor: theme.colors.gray[100],
|
|
13
|
-
padding: 20,
|
|
14
|
-
borderRadius: 10
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
const StyledDialog = ({
|
|
18
|
-
children,
|
|
19
|
-
animationType = 'fade',
|
|
20
|
-
transparent = true,
|
|
21
|
-
visible = false,
|
|
22
|
-
...rest
|
|
23
|
-
}) => {
|
|
24
|
-
return /*#__PURE__*/React.createElement(Dialog, _extends({
|
|
25
|
-
visible: visible,
|
|
26
|
-
transparent: transparent,
|
|
27
|
-
animationType: animationType
|
|
28
|
-
}, rest), children);
|
|
29
|
-
};
|
|
30
|
-
const StyledConfirmDialog = ({
|
|
31
|
-
visible = false,
|
|
32
|
-
row,
|
|
33
|
-
animationType = 'fade',
|
|
34
|
-
onCancel,
|
|
35
|
-
onConfirm,
|
|
36
|
-
transparent = true,
|
|
37
|
-
dialogProps,
|
|
38
|
-
...rest
|
|
39
|
-
}) => {
|
|
40
|
-
const [show, setShow] = useState(visible);
|
|
41
|
-
const {
|
|
42
|
-
title,
|
|
43
|
-
description,
|
|
44
|
-
cancel = 'Cancel',
|
|
45
|
-
onNeural,
|
|
46
|
-
confirm = 'Confirm',
|
|
47
|
-
neutral = 'Neutral',
|
|
48
|
-
isNeutral = false
|
|
49
|
-
} = rest;
|
|
50
|
-
const handleConfirm = () => {
|
|
51
|
-
setShow(false);
|
|
52
|
-
if (typeof onConfirm === 'function') {
|
|
53
|
-
if (typeof row === 'object' && row !== null) {
|
|
54
|
-
onConfirm(row);
|
|
55
|
-
} else {
|
|
56
|
-
onConfirm();
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
const handleCancel = () => {
|
|
61
|
-
setShow(false);
|
|
62
|
-
if (typeof onCancel === 'function') {
|
|
63
|
-
onCancel();
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
const handleNeural = () => {
|
|
67
|
-
setShow(false);
|
|
68
|
-
if (typeof onNeural === 'function') {
|
|
69
|
-
onNeural();
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
return /*#__PURE__*/React.createElement(Dialog, _extends({
|
|
73
|
-
visible: show,
|
|
74
|
-
transparent: transparent,
|
|
75
|
-
animationType: animationType
|
|
76
|
-
}, rest), /*#__PURE__*/React.createElement(YStack, _extends({
|
|
77
|
-
transparent: true,
|
|
78
|
-
flex: 1,
|
|
79
|
-
justifyContent: "center",
|
|
80
|
-
alignItems: "center"
|
|
81
|
-
}, dialogProps), /*#__PURE__*/React.createElement(YStack, {
|
|
82
|
-
width: '90%',
|
|
83
|
-
borderRadius: 8,
|
|
84
|
-
paddingVertical: 16,
|
|
85
|
-
paddingHorizontal: 16,
|
|
86
|
-
backgroundColor: theme.colors.gray[1]
|
|
87
|
-
}, /*#__PURE__*/React.createElement(StyledText, {
|
|
88
|
-
color: theme.colors.gray[800],
|
|
89
|
-
fontSize: theme.fontSize.normal,
|
|
90
|
-
fontWeight: theme.fontWeight.bold
|
|
91
|
-
}, title), /*#__PURE__*/React.createElement(StyledSpacer, {
|
|
92
|
-
marginVertical: 1
|
|
93
|
-
}), /*#__PURE__*/React.createElement(StyledText, {
|
|
94
|
-
color: theme.colors.gray[800],
|
|
95
|
-
fontSize: theme.fontSize.large,
|
|
96
|
-
fontWeight: theme.fontWeight.normal
|
|
97
|
-
}, description), /*#__PURE__*/React.createElement(StyledSpacer, {
|
|
98
|
-
marginVertical: 4
|
|
99
|
-
}), /*#__PURE__*/React.createElement(XStack, {
|
|
100
|
-
justifyContent: "flex-end",
|
|
101
|
-
alignItems: "center"
|
|
102
|
-
}, /*#__PURE__*/React.createElement(StyledButton, {
|
|
103
|
-
backgroundColor: theme.colors.red[400],
|
|
104
|
-
borderColor: theme.colors.red[400],
|
|
105
|
-
borderRadius: 30,
|
|
106
|
-
onPress: () => handleCancel()
|
|
107
|
-
}, /*#__PURE__*/React.createElement(StyledText, {
|
|
108
|
-
paddingHorizontal: 20,
|
|
109
|
-
paddingVertical: 4,
|
|
110
|
-
color: theme.colors.gray[1],
|
|
111
|
-
fontSize: theme.fontSize.normal,
|
|
112
|
-
fontWeight: theme.fontWeight.normal
|
|
113
|
-
}, cancel)), /*#__PURE__*/React.createElement(StyledSpacer, {
|
|
114
|
-
marginHorizontal: 2
|
|
115
|
-
}), onNeural && isNeutral && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StyledButton, {
|
|
116
|
-
backgroundColor: theme.colors.orange[400],
|
|
117
|
-
borderColor: theme.colors.orange[400],
|
|
118
|
-
borderRadius: 30,
|
|
119
|
-
onPress: () => handleNeural()
|
|
120
|
-
}, /*#__PURE__*/React.createElement(StyledText, {
|
|
121
|
-
paddingHorizontal: 20,
|
|
122
|
-
paddingVertical: 4,
|
|
123
|
-
color: theme.colors.gray[1],
|
|
124
|
-
fontSize: theme.fontSize.normal,
|
|
125
|
-
fontWeight: theme.fontWeight.normal
|
|
126
|
-
}, neutral)), /*#__PURE__*/React.createElement(StyledSpacer, {
|
|
127
|
-
marginHorizontal: 2
|
|
128
|
-
})), /*#__PURE__*/React.createElement(StyledButton, {
|
|
129
|
-
backgroundColor: theme.colors.green[500],
|
|
130
|
-
borderColor: theme.colors.green[500],
|
|
131
|
-
onPress: () => handleConfirm(),
|
|
132
|
-
borderRadius: 30
|
|
133
|
-
}, /*#__PURE__*/React.createElement(StyledText, {
|
|
134
|
-
paddingHorizontal: 20,
|
|
135
|
-
paddingVertical: 4,
|
|
136
|
-
color: theme.colors.gray[1],
|
|
137
|
-
fontSize: theme.fontSize.normal,
|
|
138
|
-
fontWeight: theme.fontWeight.normal
|
|
139
|
-
}, confirm))))));
|
|
140
|
-
};
|
|
141
|
-
const StyledOkDialog = ({
|
|
142
|
-
visible = false,
|
|
143
|
-
animationType = 'fade',
|
|
144
|
-
transparent = true,
|
|
145
|
-
dialogProps,
|
|
146
|
-
...rest
|
|
147
|
-
}) => {
|
|
148
|
-
const [show, setShow] = useState(visible);
|
|
149
|
-
const {
|
|
150
|
-
title = "We're sorry, something went wrong.",
|
|
151
|
-
description = 'Please try again later',
|
|
152
|
-
ok = 'Ok',
|
|
153
|
-
onOk
|
|
154
|
-
} = rest;
|
|
155
|
-
const handleOk = () => {
|
|
156
|
-
setShow(false);
|
|
157
|
-
if (typeof onOk === 'function') {
|
|
158
|
-
onOk();
|
|
159
|
-
}
|
|
160
|
-
};
|
|
161
|
-
return /*#__PURE__*/React.createElement(Dialog, _extends({
|
|
162
|
-
visible: show,
|
|
163
|
-
transparent: transparent,
|
|
164
|
-
animationType: animationType
|
|
165
|
-
}, rest), /*#__PURE__*/React.createElement(YStack, _extends({
|
|
166
|
-
transparent: true,
|
|
167
|
-
flex: 1,
|
|
168
|
-
justifyContent: "center",
|
|
169
|
-
alignItems: "center"
|
|
170
|
-
}, dialogProps), /*#__PURE__*/React.createElement(YStack, {
|
|
171
|
-
width: '90%',
|
|
172
|
-
borderRadius: 8,
|
|
173
|
-
paddingVertical: 16,
|
|
174
|
-
paddingHorizontal: 16,
|
|
175
|
-
backgroundColor: theme.colors.gray[1]
|
|
176
|
-
}, /*#__PURE__*/React.createElement(StyledText, {
|
|
177
|
-
color: theme.colors.gray[800],
|
|
178
|
-
fontSize: theme.fontSize.normal,
|
|
179
|
-
fontWeight: theme.fontWeight.bold
|
|
180
|
-
}, title), /*#__PURE__*/React.createElement(StyledSpacer, {
|
|
181
|
-
marginVertical: 2
|
|
182
|
-
}), /*#__PURE__*/React.createElement(StyledText, {
|
|
183
|
-
color: theme.colors.gray[800],
|
|
184
|
-
fontSize: theme.fontSize.normal,
|
|
185
|
-
fontWeight: theme.fontWeight.normal
|
|
186
|
-
}, description), /*#__PURE__*/React.createElement(StyledSpacer, {
|
|
187
|
-
marginVertical: 8
|
|
188
|
-
}), /*#__PURE__*/React.createElement(XStack, {
|
|
189
|
-
justifyContent: "flex-end",
|
|
190
|
-
alignItems: "center"
|
|
191
|
-
}, /*#__PURE__*/React.createElement(StyledButton, {
|
|
192
|
-
flex: 1,
|
|
193
|
-
backgroundColor: theme.colors.cyan[500],
|
|
194
|
-
borderColor: theme.colors.cyan[500],
|
|
195
|
-
onPress: handleOk,
|
|
196
|
-
borderRadius: 30
|
|
197
|
-
}, /*#__PURE__*/React.createElement(StyledText, {
|
|
198
|
-
paddingHorizontal: 20,
|
|
199
|
-
paddingVertical: 8,
|
|
200
|
-
color: theme.colors.gray[1],
|
|
201
|
-
fontSize: theme.fontSize.large,
|
|
202
|
-
fontWeight: theme.fontWeight.bold
|
|
203
|
-
}, ok))))));
|
|
204
|
-
};
|
|
205
|
-
export { StyledDialog, StyledConfirmDialog, StyledOkDialog };
|
|
206
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","useState","Modal","XStack","YStack","StyledText","StyledButton","StyledSpacer","styled","theme","Dialog","base","backgroundColor","colors","gray","padding","borderRadius","StyledDialog","children","animationType","transparent","visible","rest","createElement","_extends","StyledConfirmDialog","row","onCancel","onConfirm","dialogProps","show","setShow","title","description","cancel","onNeural","confirm","neutral","isNeutral","handleConfirm","handleCancel","handleNeural","flex","justifyContent","alignItems","width","paddingVertical","paddingHorizontal","color","fontSize","normal","fontWeight","bold","marginVertical","large","red","borderColor","onPress","marginHorizontal","Fragment","orange","green","StyledOkDialog","ok","onOk","handleOk","cyan"],"sources":["index.jsx"],"sourcesContent":["import React, { useState } from 'react'\r\nimport { Modal } from 'react-native'\r\nimport { XStack, YStack } from '../stack'\r\nimport { StyledText } from '../text'\r\nimport { StyledButton } from '../button'\r\nimport { StyledSpacer } from '../spacer'\r\nimport { styled } from '../styled'\r\nimport { theme } from '../theme'\r\n\r\nconst Dialog = styled(Modal, {\r\n base: {\r\n backgroundColor: theme.colors.gray[100],\r\n padding: 20,\r\n borderRadius: 10\r\n }\r\n})\r\n\r\nconst StyledDialog = ({\r\n children,\r\n animationType = 'fade',\r\n transparent = true,\r\n visible = false,\r\n ...rest\r\n}) => {\r\n return (\r\n <Dialog\r\n visible={visible}\r\n transparent={transparent}\r\n animationType={animationType}\r\n {...rest}\r\n >\r\n {children}\r\n </Dialog>\r\n )\r\n}\r\n\r\nconst StyledConfirmDialog = ({\r\n visible = false,\r\n row,\r\n animationType = 'fade',\r\n onCancel,\r\n onConfirm,\r\n transparent = true,\r\n dialogProps,\r\n ...rest\r\n}) => {\r\n const [show, setShow] = useState(visible)\r\n const {\r\n title,\r\n description,\r\n cancel = 'Cancel',\r\n onNeural,\r\n confirm = 'Confirm',\r\n neutral = 'Neutral',\r\n isNeutral= false\r\n } = rest\r\n\r\n const handleConfirm = () => {\r\n setShow(false)\r\n if (typeof onConfirm === 'function') {\r\n if (typeof row === 'object' && row !== null) {\r\n onConfirm(row)\r\n } else {\r\n onConfirm()\r\n }\r\n }\r\n }\r\n const handleCancel = () => {\r\n setShow(false)\r\n if (typeof onCancel === 'function') {\r\n onCancel()\r\n }\r\n }\r\n\r\n const handleNeural = () => {\r\n setShow(false)\r\n if (typeof onNeural === 'function') {\r\n onNeural()\r\n }\r\n }\r\n return (\r\n <Dialog\r\n visible={show}\r\n transparent={transparent}\r\n animationType={animationType}\r\n {...rest}\r\n >\r\n <YStack\r\n transparent\r\n flex={1}\r\n justifyContent='center'\r\n alignItems='center'\r\n {...dialogProps}\r\n >\r\n <YStack\r\n width={'90%'}\r\n borderRadius={8}\r\n paddingVertical={16}\r\n paddingHorizontal={16}\r\n backgroundColor={theme.colors.gray[1]}\r\n >\r\n <StyledText\r\n color={theme.colors.gray[800]}\r\n fontSize={theme.fontSize.normal}\r\n fontWeight={theme.fontWeight.bold}\r\n >\r\n {title}\r\n </StyledText>\r\n <StyledSpacer marginVertical={1} />\r\n <StyledText\r\n color={theme.colors.gray[800]}\r\n fontSize={theme.fontSize.large}\r\n fontWeight={theme.fontWeight.normal}\r\n >\r\n {description}\r\n </StyledText>\r\n <StyledSpacer marginVertical={4} />\r\n <XStack justifyContent='flex-end' alignItems='center'>\r\n <StyledButton\r\n backgroundColor={theme.colors.red[400]}\r\n borderColor={theme.colors.red[400]}\r\n borderRadius={30}\r\n onPress={() => handleCancel()}\r\n >\r\n <StyledText\r\n paddingHorizontal={20}\r\n paddingVertical={4}\r\n color={theme.colors.gray[1]}\r\n fontSize={theme.fontSize.normal}\r\n fontWeight={theme.fontWeight.normal}\r\n >\r\n {cancel}\r\n </StyledText>\r\n </StyledButton>\r\n <StyledSpacer marginHorizontal={2} />\r\n {(onNeural && isNeutral) && (\r\n <>\r\n <StyledButton\r\n backgroundColor={theme.colors.orange[400]}\r\n borderColor={theme.colors.orange[400]}\r\n borderRadius={30}\r\n onPress={() => handleNeural()}\r\n >\r\n <StyledText\r\n paddingHorizontal={20}\r\n paddingVertical={4}\r\n color={theme.colors.gray[1]}\r\n fontSize={theme.fontSize.normal}\r\n fontWeight={theme.fontWeight.normal}\r\n >\r\n {neutral}\r\n </StyledText>\r\n </StyledButton>\r\n <StyledSpacer marginHorizontal={2} />\r\n </>\r\n )}\r\n <StyledButton\r\n backgroundColor={theme.colors.green[500]}\r\n borderColor={theme.colors.green[500]}\r\n onPress={() => handleConfirm()}\r\n borderRadius={30}\r\n >\r\n <StyledText\r\n paddingHorizontal={20}\r\n paddingVertical={4}\r\n color={theme.colors.gray[1]}\r\n fontSize={theme.fontSize.normal}\r\n fontWeight={theme.fontWeight.normal}\r\n >\r\n {confirm}\r\n </StyledText>\r\n </StyledButton>\r\n </XStack>\r\n </YStack>\r\n </YStack>\r\n </Dialog>\r\n )\r\n}\r\n\r\nconst StyledOkDialog = ({\r\n visible = false,\r\n animationType = 'fade',\r\n transparent = true,\r\n dialogProps,\r\n ...rest\r\n}) => {\r\n const [show, setShow] = useState(visible)\r\n const {\r\n title = \"We're sorry, something went wrong.\",\r\n description = 'Please try again later',\r\n ok = 'Ok',\r\n onOk\r\n } = rest\r\n\r\n const handleOk = () => {\r\n setShow(false)\r\n if (typeof onOk === 'function') {\r\n onOk()\r\n }\r\n }\r\n return (\r\n <Dialog\r\n visible={show}\r\n transparent={transparent}\r\n animationType={animationType}\r\n {...rest}\r\n >\r\n <YStack\r\n transparent\r\n flex={1}\r\n justifyContent='center'\r\n alignItems='center'\r\n {...dialogProps}\r\n >\r\n <YStack\r\n width={'90%'}\r\n borderRadius={8}\r\n paddingVertical={16}\r\n paddingHorizontal={16}\r\n backgroundColor={theme.colors.gray[1]}\r\n >\r\n <StyledText\r\n color={theme.colors.gray[800]}\r\n fontSize={theme.fontSize.normal}\r\n fontWeight={theme.fontWeight.bold}\r\n >\r\n {title}\r\n </StyledText>\r\n <StyledSpacer marginVertical={2} />\r\n <StyledText\r\n color={theme.colors.gray[800]}\r\n fontSize={theme.fontSize.normal}\r\n fontWeight={theme.fontWeight.normal}\r\n >\r\n {description}\r\n </StyledText>\r\n <StyledSpacer marginVertical={8} />\r\n <XStack justifyContent='flex-end' alignItems='center'>\r\n <StyledButton\r\n flex={1}\r\n backgroundColor={theme.colors.cyan[500]}\r\n borderColor={theme.colors.cyan[500]}\r\n onPress={handleOk}\r\n borderRadius={30}\r\n >\r\n <StyledText\r\n paddingHorizontal={20}\r\n paddingVertical={8}\r\n color={theme.colors.gray[1]}\r\n fontSize={theme.fontSize.large}\r\n fontWeight={theme.fontWeight.bold}\r\n >\r\n {ok}\r\n </StyledText>\r\n </StyledButton>\r\n </XStack>\r\n </YStack>\r\n </YStack>\r\n </Dialog>\r\n )\r\n}\r\n\r\nexport { StyledDialog, StyledConfirmDialog, StyledOkDialog }\r\n"],"mappings":";AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,SAASC,KAAK,QAAQ,cAAc;AACpC,SAASC,MAAM,EAAEC,MAAM,QAAQ,UAAU;AACzC,SAASC,UAAU,QAAQ,SAAS;AACpC,SAASC,YAAY,QAAQ,WAAW;AACxC,SAASC,YAAY,QAAQ,WAAW;AACxC,SAASC,MAAM,QAAQ,WAAW;AAClC,SAASC,KAAK,QAAQ,UAAU;AAEhC,MAAMC,MAAM,GAAGF,MAAM,CAACN,KAAK,EAAE;EAC3BS,IAAI,EAAE;IACJC,eAAe,EAAEH,KAAK,CAACI,MAAM,CAACC,IAAI,CAAC,GAAG,CAAC;IACvCC,OAAO,EAAE,EAAE;IACXC,YAAY,EAAE;EAChB;AACF,CAAC,CAAC;AAEF,MAAMC,YAAY,GAAGA,CAAC;EACpBC,QAAQ;EACRC,aAAa,GAAG,MAAM;EACtBC,WAAW,GAAG,IAAI;EAClBC,OAAO,GAAG,K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AE,CAAE,CAAC,eACnCrD,KAAA,CAAAuB,aAAA,CAACpB,MAAM;IAACwC,cAAc,EAAC,UAAU;IAACC,UAAU,EAAC;EAAQ,gBACnD5C,KAAA,CAAAuB,aAAA,CAACjB,YAAY;IACXoC,IAAI,EAAE,CAAE;IACR9B,eAAe,EAAEH,KAAK,CAACI,MAAM,CAACqD,IAAI,CAAC,GAAG,CAAE;IACxCV,WAAW,EAAE/C,KAAK,CAACI,MAAM,CAACqD,IAAI,CAAC,GAAG,CAAE;IACpCT,OAAO,EAAEQ,QAAS;IAClBjD,YAAY,EAAE;EAAG,gBAEjBhB,KAAA,CAAAuB,aAAA,CAAClB,UAAU;IACT0C,iBAAiB,EAAE,EAAG;IACtBD,eAAe,EAAE,CAAE;IACnBE,KAAK,EAAEvC,KAAK,CAACI,MAAM,CAACC,IAAI,CAAC,CAAC,CAAE;IAC5BmC,QAAQ,EAAExC,KAAK,CAACwC,QAAQ,CAACK,KAAM;IAC/BH,UAAU,EAAE1C,KAAK,CAAC0C,UAAU,CAACC;EAAK,GAEjCW,EACS,CACA,CACR,CACF,CACF,CACF,CAAC;AAEb,CAAC;AAED,SAAS9C,YAAY,EAAEQ,mBAAmB,EAAEqC,cAAc","ignoreList":[]}
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
|
-
import React, { useState, useEffect } from "react";
|
|
3
|
-
import { YStack } from '../stack';
|
|
4
|
-
import { StyledText } from '../text';
|
|
5
|
-
import { StyledSpacer } from '../spacer';
|
|
6
|
-
import DropDownPicker from "react-native-dropdown-picker";
|
|
7
|
-
import { theme } from "../theme";
|
|
8
|
-
import { styled } from "../styled";
|
|
9
|
-
const Dropdown = styled(DropDownPicker, {
|
|
10
|
-
base: {
|
|
11
|
-
borderColor: theme.colors.gray[800],
|
|
12
|
-
borderWidth: 1,
|
|
13
|
-
borderRadius: 30,
|
|
14
|
-
backgroundColor: theme.colors.gray[1],
|
|
15
|
-
width: '100%',
|
|
16
|
-
color: theme.colors.gray[800],
|
|
17
|
-
paddingHorizontal: 16
|
|
18
|
-
},
|
|
19
|
-
variants: {
|
|
20
|
-
error: {
|
|
21
|
-
true: {
|
|
22
|
-
borderColor: theme.colors.pink[500],
|
|
23
|
-
borderWidth: 1
|
|
24
|
-
},
|
|
25
|
-
false: {
|
|
26
|
-
borderColor: theme.colors.gray[800]
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
const StyledDropdown = ({
|
|
32
|
-
items,
|
|
33
|
-
label,
|
|
34
|
-
errorMessage,
|
|
35
|
-
error,
|
|
36
|
-
labelStyles,
|
|
37
|
-
...rest
|
|
38
|
-
}) => {
|
|
39
|
-
const [open, setOpen] = useState(false);
|
|
40
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, label && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StyledText, _extends({
|
|
41
|
-
paddingHorizontal: 8,
|
|
42
|
-
color: theme.colors.gray[600],
|
|
43
|
-
fontSize: theme.fontSize.normal,
|
|
44
|
-
fontWeight: theme.fontWeight.normal
|
|
45
|
-
}, labelStyles), label), /*#__PURE__*/React.createElement(StyledSpacer, {
|
|
46
|
-
marginVertical: 4
|
|
47
|
-
})), /*#__PURE__*/React.createElement(Dropdown, _extends({
|
|
48
|
-
open: open,
|
|
49
|
-
setOpen: setOpen,
|
|
50
|
-
items: items
|
|
51
|
-
}, rest)), error && errorMessage && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StyledSpacer, {
|
|
52
|
-
marginVertical: 1
|
|
53
|
-
}), /*#__PURE__*/React.createElement(StyledText, {
|
|
54
|
-
marginHorizontal: 16,
|
|
55
|
-
fontWeight: theme.fontWeight.bold,
|
|
56
|
-
fontSize: theme.fontSize.small,
|
|
57
|
-
color: theme.colors.pink[500]
|
|
58
|
-
}, errorMessage)));
|
|
59
|
-
};
|
|
60
|
-
const StyledMultiDropdown = ({
|
|
61
|
-
items,
|
|
62
|
-
label,
|
|
63
|
-
errorMessage,
|
|
64
|
-
labelStyles,
|
|
65
|
-
onSelected,
|
|
66
|
-
...rest
|
|
67
|
-
}) => {
|
|
68
|
-
const [selected, setSelected] = useState([]);
|
|
69
|
-
const [open, setOpen] = useState(false);
|
|
70
|
-
useEffect(() => {
|
|
71
|
-
onSelected && onSelected(selected);
|
|
72
|
-
}, [selected]);
|
|
73
|
-
return /*#__PURE__*/React.createElement(YStack, {
|
|
74
|
-
justifyContent: "flex-start",
|
|
75
|
-
alignItems: "flex-start"
|
|
76
|
-
}, label && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StyledSpacer, {
|
|
77
|
-
marginVertical: 4
|
|
78
|
-
}), /*#__PURE__*/React.createElement(StyledText, _extends({
|
|
79
|
-
paddingHorizontal: 8,
|
|
80
|
-
color: theme.colors.gray[600],
|
|
81
|
-
fontSize: theme.fontSize.normal,
|
|
82
|
-
fontWeight: theme.fontWeight.normal
|
|
83
|
-
}, labelStyles), label), /*#__PURE__*/React.createElement(StyledSpacer, {
|
|
84
|
-
marginVertical: 4
|
|
85
|
-
})), /*#__PURE__*/React.createElement(Dropdown, _extends({
|
|
86
|
-
open: open,
|
|
87
|
-
setOpen: setOpen,
|
|
88
|
-
items: items,
|
|
89
|
-
setValue: setSelected,
|
|
90
|
-
value: selected,
|
|
91
|
-
multiple: true
|
|
92
|
-
}, rest)), errorMessage && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StyledSpacer, {
|
|
93
|
-
marginVertical: 1
|
|
94
|
-
}), /*#__PURE__*/React.createElement(StyledText, {
|
|
95
|
-
marginHorizontal: 8,
|
|
96
|
-
fontWeight: theme.fontWeight.bold,
|
|
97
|
-
fontSize: theme.fontSize.small,
|
|
98
|
-
color: theme.colors.pink[500]
|
|
99
|
-
}, errorMessage)));
|
|
100
|
-
};
|
|
101
|
-
export { StyledDropdown, StyledMultiDropdown };
|
|
102
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","useState","useEffect","YStack","StyledText","StyledSpacer","DropDownPicker","theme","styled","Dropdown","base","borderColor","colors","gray","borderWidth","borderRadius","backgroundColor","width","color","paddingHorizontal","variants","error","true","pink","false","StyledDropdown","items","label","errorMessage","labelStyles","rest","open","setOpen","createElement","Fragment","_extends","fontSize","normal","fontWeight","marginVertical","marginHorizontal","bold","small","StyledMultiDropdown","onSelected","selected","setSelected","justifyContent","alignItems","setValue","value","multiple"],"sources":["index.jsx"],"sourcesContent":["import React, { useState, useEffect } from \"react\";\r\nimport { YStack } from '../stack';\r\nimport { StyledText } from '../text';\r\nimport { StyledSpacer } from '../spacer';\r\nimport DropDownPicker from \"react-native-dropdown-picker\";\r\nimport { theme } from \"../theme\";\r\nimport { styled } from \"../styled\";\r\n\r\nconst Dropdown = styled(DropDownPicker, {\r\n base: {\r\n borderColor: theme.colors.gray[800],\r\n borderWidth: 1,\r\n borderRadius: 30,\r\n backgroundColor: theme.colors.gray[1],\r\n width: '100%',\r\n color: theme.colors.gray[800],\r\n paddingHorizontal: 16,\r\n },\r\n variants: {\r\n error: {\r\n true: {\r\n borderColor: theme.colors.pink[500],\r\n borderWidth: 1,\r\n },\r\n false: {\r\n borderColor: theme.colors.gray[800],\r\n }\r\n },\r\n }\r\n})\r\n\r\nconst StyledDropdown = ({ items, label, errorMessage, error, labelStyles, ...rest }) => {\r\n const [open, setOpen] = useState(false)\r\n return (\r\n <>\r\n {\r\n label && (\r\n <> \r\n <StyledText paddingHorizontal={8} color={theme.colors.gray[600]} fontSize={theme.fontSize.normal} fontWeight={theme.fontWeight.normal} {...labelStyles}>\r\n {label}\r\n </StyledText>\r\n <StyledSpacer marginVertical={4} />\r\n </>\r\n\r\n )\r\n }\r\n <Dropdown open={open} setOpen={setOpen} items={items} {...rest} />\r\n {\r\n (error && errorMessage) && (\r\n <>\r\n <StyledSpacer marginVertical={1} />\r\n <StyledText marginHorizontal={16} fontWeight={theme.fontWeight.bold} fontSize={theme.fontSize.small} color={theme.colors.pink[500]}>\r\n {errorMessage}\r\n </StyledText>\r\n </>\r\n )\r\n }\r\n\r\n </>\r\n )\r\n}\r\n\r\nconst StyledMultiDropdown = ({ items, label, errorMessage, labelStyles, onSelected, ...rest }) => {\r\n const [selected, setSelected] = useState([])\r\n const [open, setOpen] = useState(false)\r\n\r\n useEffect(() => {\r\n onSelected && onSelected(selected)\r\n }, [selected])\r\n\r\n return (\r\n <YStack justifyContent='flex-start' alignItems='flex-start'>\r\n {\r\n label && (\r\n <>\r\n <StyledSpacer marginVertical={4} />\r\n <StyledText paddingHorizontal={8} color={theme.colors.gray[600]} fontSize={theme.fontSize.normal} fontWeight={theme.fontWeight.normal} {...labelStyles}>\r\n {label}\r\n </StyledText>\r\n <StyledSpacer marginVertical={4} />\r\n </>\r\n\r\n )\r\n }\r\n <Dropdown open={open} setOpen={setOpen} items={items} setValue={setSelected} value={selected} multiple {...rest} />\r\n {\r\n errorMessage && (\r\n <>\r\n <StyledSpacer marginVertical={1} />\r\n <StyledText marginHorizontal={8} fontWeight={theme.fontWeight.bold} fontSize={theme.fontSize.small} color={theme.colors.pink[500]}>\r\n {errorMessage}\r\n </StyledText>\r\n </>\r\n )\r\n }\r\n\r\n </YStack>\r\n )\r\n}\r\n\r\nexport { StyledDropdown, StyledMultiDropdown }"],"mappings":";AAAA,OAAOA,KAAK,IAAIC,QAAQ,EAAEC,SAAS,QAAQ,OAAO;AAClD,SAASC,MAAM,QAAQ,UAAU;AACjC,SAASC,UAAU,QAAQ,SAAS;AACpC,SAASC,YAAY,QAAQ,WAAW;AACxC,OAAOC,cAAc,MAAM,8BAA8B;AACzD,SAASC,KAAK,QAAQ,UAAU;AA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E,GAC7HK,YACO,CACd,CAIN,CAAC;AAEjB,CAAC;AAED,SAASH,cAAc,EAAEkB,mBAAmB","ignoreList":[]}
|
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
|
-
import React, { forwardRef } from 'react';
|
|
3
|
-
import { TextInput } from 'react-native';
|
|
4
|
-
import { YStack } from '../stack';
|
|
5
|
-
import { StyledText } from '../text';
|
|
6
|
-
import { StyledSpacer } from '../spacer';
|
|
7
|
-
import { theme } from '../theme';
|
|
8
|
-
import { styled } from '../styled';
|
|
9
|
-
import { isValidColor, isValidNumber, isValidString } from '../utils';
|
|
10
|
-
const StyledInputText = styled(TextInput, {
|
|
11
|
-
base: {
|
|
12
|
-
borderColor: theme.colors.gray[800],
|
|
13
|
-
borderWidth: 1,
|
|
14
|
-
borderRadius: 30,
|
|
15
|
-
backgroundColor: theme.fontWeight.normal[1],
|
|
16
|
-
width: '100%',
|
|
17
|
-
color: theme.colors.gray[800],
|
|
18
|
-
paddingHorizontal: 16,
|
|
19
|
-
paddingVertical: 8,
|
|
20
|
-
fontSize: theme.fontSize.normal,
|
|
21
|
-
placeholderTextColor: theme.colors.gray[1]
|
|
22
|
-
},
|
|
23
|
-
variants: {
|
|
24
|
-
fontWeight: (size = theme.fontWeight.normal) => {
|
|
25
|
-
if (!isValidString(size)) {
|
|
26
|
-
throw new Error('Invalid fontWeight value');
|
|
27
|
-
}
|
|
28
|
-
return {
|
|
29
|
-
fontWeight: size
|
|
30
|
-
};
|
|
31
|
-
},
|
|
32
|
-
color: (color = theme.colors.gray[800]) => {
|
|
33
|
-
if (!isValidColor(color)) {
|
|
34
|
-
throw new Error('Invalid color value');
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
color: color
|
|
38
|
-
};
|
|
39
|
-
},
|
|
40
|
-
fontSize: (size = theme.fontSize.normal) => {
|
|
41
|
-
if (!isValidNumber(size)) {
|
|
42
|
-
throw new Error('Invalid fontSize value');
|
|
43
|
-
}
|
|
44
|
-
return {
|
|
45
|
-
fontSize: size
|
|
46
|
-
};
|
|
47
|
-
},
|
|
48
|
-
fontFamily: font => {
|
|
49
|
-
if (!font) return;
|
|
50
|
-
return {
|
|
51
|
-
fontFamily: font
|
|
52
|
-
};
|
|
53
|
-
},
|
|
54
|
-
textAlign: (align = 'left') => {
|
|
55
|
-
const validAlignments = ['auto', 'left', 'right', 'center', 'justify'];
|
|
56
|
-
if (!validAlignments.includes(align)) {
|
|
57
|
-
throw new Error('Invalid textAlign value');
|
|
58
|
-
}
|
|
59
|
-
return {
|
|
60
|
-
textAlign: align
|
|
61
|
-
};
|
|
62
|
-
},
|
|
63
|
-
borderRadius: (value = 16) => {
|
|
64
|
-
if (!isValidNumber(value)) {
|
|
65
|
-
throw new Error('Invalid borderRadius value');
|
|
66
|
-
}
|
|
67
|
-
return {
|
|
68
|
-
borderRadius: value
|
|
69
|
-
};
|
|
70
|
-
},
|
|
71
|
-
borderColor: (value = theme.colors.gray[800]) => {
|
|
72
|
-
if (!isValidColor(value)) {
|
|
73
|
-
throw new Error('Invalid borderColor value');
|
|
74
|
-
}
|
|
75
|
-
return {
|
|
76
|
-
borderColor: value
|
|
77
|
-
};
|
|
78
|
-
},
|
|
79
|
-
backgroundColor: (value = theme.colors.gray[1]) => {
|
|
80
|
-
if (!isValidColor(value)) {
|
|
81
|
-
throw new Error('Invalid backgroundColor value');
|
|
82
|
-
}
|
|
83
|
-
return {
|
|
84
|
-
backgroundColor: value
|
|
85
|
-
};
|
|
86
|
-
},
|
|
87
|
-
noBorder: {
|
|
88
|
-
true: {
|
|
89
|
-
borderWidth: 0
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
placeholderTextColor: (value = theme.colors.gray[800]) => {
|
|
93
|
-
if (!isValidColor(value)) {
|
|
94
|
-
throw new Error('Invalid placeholderTextColor value');
|
|
95
|
-
}
|
|
96
|
-
return {
|
|
97
|
-
placeholderTextColor: value
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
});
|
|
102
|
-
const StyledInput = /*#__PURE__*/forwardRef(({
|
|
103
|
-
label,
|
|
104
|
-
containerProps,
|
|
105
|
-
borderColor,
|
|
106
|
-
errorMessage,
|
|
107
|
-
error,
|
|
108
|
-
errorProps,
|
|
109
|
-
labelProps,
|
|
110
|
-
...rest
|
|
111
|
-
}, ref) => {
|
|
112
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, label && /*#__PURE__*/React.createElement(YStack, _extends({
|
|
113
|
-
width: '100%',
|
|
114
|
-
justifyContent: "flex-start",
|
|
115
|
-
alignItems: "flex-start"
|
|
116
|
-
}, containerProps), /*#__PURE__*/React.createElement(StyledText, _extends({
|
|
117
|
-
paddingHorizontal: 8,
|
|
118
|
-
color: theme.colors.gray[800],
|
|
119
|
-
fontSize: theme.fontSize.normal,
|
|
120
|
-
fontWeight: theme.fontWeight.normal
|
|
121
|
-
}, labelProps), label), /*#__PURE__*/React.createElement(StyledSpacer, {
|
|
122
|
-
marginVertical: 4
|
|
123
|
-
})), /*#__PURE__*/React.createElement(StyledInputText, _extends({
|
|
124
|
-
placeholderTextColor: theme.colors.gray[400],
|
|
125
|
-
ref: ref
|
|
126
|
-
}, rest, {
|
|
127
|
-
borderColor: error ? theme.colors.pink[500] : borderColor
|
|
128
|
-
})), errorMessage && /*#__PURE__*/React.createElement(YStack, _extends({
|
|
129
|
-
width: '100%',
|
|
130
|
-
justifyContent: "flex-start",
|
|
131
|
-
alignItems: "flex-start"
|
|
132
|
-
}, containerProps), /*#__PURE__*/React.createElement(StyledSpacer, {
|
|
133
|
-
marginVertical: 1
|
|
134
|
-
}), /*#__PURE__*/React.createElement(StyledText, _extends({
|
|
135
|
-
marginHorizontal: 8,
|
|
136
|
-
fontWeight: theme.fontWeight.bold,
|
|
137
|
-
fontSize: theme.fontSize.small,
|
|
138
|
-
color: theme.colors.pink[500]
|
|
139
|
-
}, errorProps), errorMessage)));
|
|
140
|
-
});
|
|
141
|
-
const StyledMultiInput = ({
|
|
142
|
-
label,
|
|
143
|
-
errorMessage,
|
|
144
|
-
borderColor,
|
|
145
|
-
error,
|
|
146
|
-
errorProps,
|
|
147
|
-
labelProps,
|
|
148
|
-
...rest
|
|
149
|
-
}) => {
|
|
150
|
-
return /*#__PURE__*/React.createElement(YStack, {
|
|
151
|
-
width: '100%',
|
|
152
|
-
justifyContent: "flex-start",
|
|
153
|
-
alignItems: "flex-start"
|
|
154
|
-
}, label && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StyledSpacer, {
|
|
155
|
-
marginVertical: 4
|
|
156
|
-
}), /*#__PURE__*/React.createElement(StyledText, _extends({
|
|
157
|
-
paddingHorizontal: 8,
|
|
158
|
-
color: theme.colors.gray[800],
|
|
159
|
-
fontSize: theme.fontSize.normal,
|
|
160
|
-
fontWeight: theme.fontWeight.normal
|
|
161
|
-
}, labelProps), label), /*#__PURE__*/React.createElement(StyledSpacer, {
|
|
162
|
-
marginVertical: 4
|
|
163
|
-
})), /*#__PURE__*/React.createElement(StyledInputText, _extends({
|
|
164
|
-
borderRadius: 16,
|
|
165
|
-
textAlignVertical: "top",
|
|
166
|
-
multiline: true,
|
|
167
|
-
numberOfLines: 5,
|
|
168
|
-
inputMode: "text"
|
|
169
|
-
}, rest, {
|
|
170
|
-
borderColor: error ? theme.colors.pink[500] : borderColor
|
|
171
|
-
})), errorMessage && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StyledSpacer, {
|
|
172
|
-
marginVertical: 1
|
|
173
|
-
}), /*#__PURE__*/React.createElement(StyledText, _extends({
|
|
174
|
-
marginHorizontal: 8,
|
|
175
|
-
fontWeight: theme.fontWeight.bold,
|
|
176
|
-
fontSize: theme.fontSize.small,
|
|
177
|
-
color: theme.colors.pink[500]
|
|
178
|
-
}, errorProps), errorMessage)));
|
|
179
|
-
};
|
|
180
|
-
export { StyledInput, StyledMultiInput, StyledInputText as InputText };
|
|
181
|
-
export default StyledInputText;
|
|
182
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","forwardRef","TextInput","YStack","StyledText","StyledSpacer","theme","styled","isValidColor","isValidNumber","isValidString","StyledInputText","base","borderColor","colors","gray","borderWidth","borderRadius","backgroundColor","fontWeight","normal","width","color","paddingHorizontal","paddingVertical","fontSize","placeholderTextColor","variants","size","Error","fontFamily","font","textAlign","align","validAlignments","includes","value","noBorder","true","StyledInput","label","containerProps","errorMessage","error","errorProps","labelProps","rest","ref","createElement","Fragment","_extends","justifyContent","alignItems","marginVertical","pink","marginHorizontal","bold","small","StyledMultiInput","textAlignVertical","multiline","numberOfLines","inputMode","InputText"],"sources":["index.jsx"],"sourcesContent":["import React, { forwardRef } from 'react';\r\nimport { TextInput } from 'react-native';\r\nimport { YStack } from '../stack';\r\nimport { StyledText } from '../text';\r\nimport { StyledSpacer } from '../spacer';\r\nimport { theme } from '../theme';\r\nimport { styled } from '../styled';\r\nimport { isValidColor, isValidNumber, isValidString } from '../utils';\r\n\r\nconst StyledInputText = styled(TextInput, {\r\n base: {\r\n borderColor: theme.colors.gray[800],\r\n borderWidth: 1,\r\n borderRadius: 30,\r\n backgroundColor: theme.fontWeight.normal[1],\r\n width: '100%',\r\n color: theme.colors.gray[800],\r\n paddingHorizontal: 16,\r\n paddingVertical: 8,\r\n fontSize: theme.fontSize.normal,\r\n placeholderTextColor: theme.colors.gray[1],\r\n },\r\n variants: {\r\n fontWeight: (size = theme.fontWeight.normal) => {\r\n if (!isValidString(size)) {\r\n throw new Error('Invalid fontWeight value');\r\n }\r\n return { fontWeight: size };\r\n },\r\n color: (color = theme.colors.gray[800]) => {\r\n if (!isValidColor(color)) {\r\n throw new Error('Invalid color value');\r\n }\r\n return { color: color };\r\n },\r\n fontSize: (size = theme.fontSize.normal) => {\r\n if (!isValidNumber(size)) {\r\n throw new Error('Invalid fontSize value');\r\n }\r\n return { fontSize: size };\r\n },\r\n fontFamily: font => {\r\n if (!font) return\r\n return {\r\n fontFamily: font\r\n }\r\n },\r\n textAlign: (align = 'left') => {\r\n const validAlignments = ['auto', 'left', 'right', 'center', 'justify'];\r\n if (!validAlignments.includes(align)) {\r\n throw new Error('Invalid textAlign value');\r\n }\r\n return { textAlign: align };\r\n },\r\n borderRadius: (value = 16) => {\r\n if (!isValidNumber(value)) {\r\n throw new Error('Invalid borderRadius value');\r\n }\r\n return { borderRadius: value };\r\n },\r\n borderColor: (value = theme.colors.gray[800]) => {\r\n if (!isValidColor(value)) {\r\n throw new Error('Invalid borderColor value');\r\n }\r\n return { borderColor: value };\r\n },\r\n backgroundColor: (value = theme.colors.gray[1]) => {\r\n if (!isValidColor(value)) {\r\n throw new Error('Invalid backgroundColor value');\r\n }\r\n return { backgroundColor: value };\r\n },\r\n noBorder: {\r\n true: { borderWidth: 0 }\r\n },\r\n placeholderTextColor: (value = theme.colors.gray[800]) => {\r\n if (!isValidColor(value)) {\r\n throw new Error('Invalid placeholderTextColor value');\r\n }\r\n return { placeholderTextColor: value };\r\n } \r\n }\r\n});\r\n\r\nconst StyledInput = forwardRef(({ label, containerProps, borderColor, errorMessage, error, errorProps, labelProps, ...rest }, ref) => {\r\n return (\r\n <>\r\n {\r\n label && (\r\n <YStack width={'100%'} justifyContent='flex-start' alignItems='flex-start' {...containerProps} >\r\n <StyledText paddingHorizontal={8} color={theme.colors.gray[800]} fontSize={theme.fontSize.normal} fontWeight={theme.fontWeight.normal} {...labelProps}>\r\n {label}\r\n </StyledText>\r\n <StyledSpacer marginVertical={4} />\r\n </YStack>\r\n )\r\n }\r\n <StyledInputText placeholderTextColor={theme.colors.gray[400]} ref={ref} {...rest} borderColor={error ? theme.colors.pink[500] : borderColor} />\r\n {\r\n errorMessage && (\r\n <YStack width={'100%'} justifyContent='flex-start' alignItems='flex-start' {...containerProps} >\r\n <StyledSpacer marginVertical={1} />\r\n <StyledText marginHorizontal={8} fontWeight={theme.fontWeight.bold} fontSize={theme.fontSize.small} color={theme.colors.pink[500]} {...errorProps}>\r\n {errorMessage}\r\n </StyledText>\r\n </YStack>\r\n )\r\n }\r\n </>\r\n )\r\n})\r\nconst StyledMultiInput = ({ label, errorMessage, borderColor, error, errorProps, labelProps, ...rest }) => {\r\n return (\r\n <YStack width={'100%'} justifyContent='flex-start' alignItems='flex-start'>\r\n {\r\n label && (\r\n <>\r\n <StyledSpacer marginVertical={4} />\r\n <StyledText paddingHorizontal={8} color={theme.colors.gray[800]} fontSize={theme.fontSize.normal} fontWeight={theme.fontWeight.normal} {...labelProps}>\r\n {label}\r\n </StyledText>\r\n <StyledSpacer marginVertical={4} />\r\n </>\r\n\r\n )\r\n }\r\n <StyledInputText borderRadius={16} textAlignVertical='top' multiline numberOfLines={5} inputMode='text' {...rest} borderColor={error ? theme.colors.pink[500] : borderColor} />\r\n {\r\n errorMessage && (\r\n <>\r\n <StyledSpacer marginVertical={1} />\r\n <StyledText marginHorizontal={8} fontWeight={theme.fontWeight.bold} fontSize={theme.fontSize.small} color={theme.colors.pink[500]} {...errorProps}>\r\n {errorMessage}\r\n </StyledText>\r\n </>\r\n )\r\n }\r\n\r\n </YStack>\r\n )\r\n}\r\n\r\nexport { StyledInput, StyledMultiInput, StyledInputText as InputText }\r\nexport default StyledInputText"],"mappings":";AAAA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AACzC,SAASC,SAAS,QAAQ,cAAc;AACxC,SAASC,MAAM,QAAQ,UAAU;AACjC,SAASC,UAAU,QAAQ,SAAS;AACpC,SAASC,YAAY,QAAQ,WAAW;AACxC,SAASC,KAAK,QAAQ,UAAU;AAChC,SAASC,MAAM,QAAQ,WAAW;AAClC,SAASC,YAAY,EAAEC,aAAa,EAAEC,aAAa,QAAQ,UAAU;AAErE,MAAMC,eAAe,G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= Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { View } from 'react-native';
|
|
4
|
-
import { StatusBar } from 'react-native';
|
|
5
|
-
import Icon from 'react-native-vector-icons/MaterialIcons';
|
|
6
|
-
import { theme } from '../theme';
|
|
7
|
-
import { YStack, XStack } from '../stack';
|
|
8
|
-
import { styled } from '../styled';
|
|
9
|
-
import { StyledCycle } from '../cycle';
|
|
10
|
-
import { StyledText } from '../text';
|
|
11
|
-
import { StyledSpacer } from '../spacer';
|
|
12
|
-
import { isValidNumber } from '../utils';
|
|
13
|
-
import { getStatusBarHeight } from '../utils/statusBar';
|
|
14
|
-
const Headers = styled(View, {
|
|
15
|
-
base: {
|
|
16
|
-
width: '100%',
|
|
17
|
-
flexDirection: 'row',
|
|
18
|
-
alignItems: 'center',
|
|
19
|
-
justifyContent: 'flex-start'
|
|
20
|
-
},
|
|
21
|
-
variants: {
|
|
22
|
-
marginTop: (size = 0) => {
|
|
23
|
-
if (!isValidNumber(size)) {
|
|
24
|
-
throw new Error('Invalid marginTop value');
|
|
25
|
-
}
|
|
26
|
-
return {
|
|
27
|
-
marginTop: size
|
|
28
|
-
};
|
|
29
|
-
},
|
|
30
|
-
statusHeight: (height = 0) => {
|
|
31
|
-
return {
|
|
32
|
-
paddingTop: height
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
const StyledHeader = ({
|
|
38
|
-
statusProps,
|
|
39
|
-
skipAndroid = false,
|
|
40
|
-
skipIos = true,
|
|
41
|
-
...rest
|
|
42
|
-
}) => {
|
|
43
|
-
return /*#__PURE__*/React.createElement(YStack, null, /*#__PURE__*/React.createElement(StatusBar, _extends({
|
|
44
|
-
translucent: true,
|
|
45
|
-
backgroundColor: theme.colors.gray[1],
|
|
46
|
-
barStyle: 'dark-content'
|
|
47
|
-
}, statusProps)), /*#__PURE__*/React.createElement(Headers, _extends({
|
|
48
|
-
statusHeight: getStatusBarHeight(skipAndroid, skipIos)
|
|
49
|
-
}, rest)));
|
|
50
|
-
};
|
|
51
|
-
const Header = ({
|
|
52
|
-
navigator,
|
|
53
|
-
fontWeight = theme.fontWeight.normal,
|
|
54
|
-
fontSize = theme.fontSize.normal,
|
|
55
|
-
iconProps,
|
|
56
|
-
color = theme.colors.gray[800],
|
|
57
|
-
textProps,
|
|
58
|
-
title,
|
|
59
|
-
icon = false,
|
|
60
|
-
cycleProps,
|
|
61
|
-
rightIcon,
|
|
62
|
-
rightIconProps,
|
|
63
|
-
onPress,
|
|
64
|
-
...rest
|
|
65
|
-
}) => {
|
|
66
|
-
return /*#__PURE__*/React.createElement(XStack, _extends({
|
|
67
|
-
justifyContent: "flex-start",
|
|
68
|
-
alignItems: "center",
|
|
69
|
-
flex: 1,
|
|
70
|
-
paddingHorizontal: 8,
|
|
71
|
-
paddingVertical: 8
|
|
72
|
-
}, rest), icon && /*#__PURE__*/React.createElement(StyledCycle, cycleProps, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Icon, _extends({
|
|
73
|
-
name: 'arrow-back',
|
|
74
|
-
size: 30,
|
|
75
|
-
color: theme.colors.gray[700],
|
|
76
|
-
onPress: () => onPress && onPress()
|
|
77
|
-
}, iconProps)), /*#__PURE__*/React.createElement(StyledSpacer, {
|
|
78
|
-
marginHorizontal: 4
|
|
79
|
-
}))), title && /*#__PURE__*/React.createElement(StyledText, {
|
|
80
|
-
color: color,
|
|
81
|
-
fontWeight: fontWeight,
|
|
82
|
-
fontSize: fontSize
|
|
83
|
-
}, title), rightIcon && /*#__PURE__*/React.createElement(React.Fragment, null, rightIcon));
|
|
84
|
-
};
|
|
85
|
-
const Full = ({
|
|
86
|
-
children
|
|
87
|
-
}) => {
|
|
88
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, children);
|
|
89
|
-
};
|
|
90
|
-
StyledHeader.Header = Header;
|
|
91
|
-
StyledHeader.Full = Full;
|
|
92
|
-
export { StyledHeader };
|
|
93
|
-
//# sourceMappingURL=index.js.map
|