fluent-styles 1.53.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 -92
- 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 -83
- 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 -97
- 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
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.fontStyles = void 0;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
/* eslint-disable prettier/prettier */
|
|
9
|
+
|
|
10
|
+
const fontStyles = exports.fontStyles = {
|
|
11
|
+
crimson_text_bold: _reactNative.Platform.select({
|
|
12
|
+
ios: 'CrimsonText-Bold',
|
|
13
|
+
android: 'crimson_text_bold'
|
|
14
|
+
}),
|
|
15
|
+
crimson_text_italic: _reactNative.Platform.select({
|
|
16
|
+
ios: 'CrimsonText-Italic',
|
|
17
|
+
android: 'crimson_text_italic'
|
|
18
|
+
}),
|
|
19
|
+
crimson_text_regular: _reactNative.Platform.select({
|
|
20
|
+
ios: 'CrimsonText-Regular',
|
|
21
|
+
android: 'crimson_text_regular'
|
|
22
|
+
}),
|
|
23
|
+
Roboto_Regular: _reactNative.Platform.select({
|
|
24
|
+
ios: 'Roboto-Regular',
|
|
25
|
+
android: 'Roboto-Regular'
|
|
26
|
+
}),
|
|
27
|
+
Roboto_Italic: _reactNative.Platform.select({
|
|
28
|
+
ios: 'Roboto-Italic',
|
|
29
|
+
android: 'Roboto-Italic'
|
|
30
|
+
}),
|
|
31
|
+
Roboto_Bold: _reactNative.Platform.select({
|
|
32
|
+
ios: 'Roboto-Bold',
|
|
33
|
+
android: 'Roboto-Bold'
|
|
34
|
+
})
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=fontStyles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","fontStyles","exports","crimson_text_bold","Platform","select","ios","android","crimson_text_italic","crimson_text_regular","Roboto_Regular","Roboto_Italic","Roboto_Bold"],"sourceRoot":"../../../src","sources":["utiles/fontStyles.js"],"mappings":";;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AADA;;AAGO,MAAMC,UAAU,GAAAC,OAAA,CAAAD,UAAA,GAAG;EACxBE,iBAAiB,EAAEC,qBAAQ,CAACC,MAAM,CAAC;IACjCC,GAAG,EAAE,kBAAkB;IACvBC,OAAO,EAAE;EACX,CAAC,CAAC;EACFC,mBAAmB,EAAEJ,qBAAQ,CAACC,MAAM,CAAC;IACnCC,GAAG,EAAE,oBAAoB;IACzBC,OAAO,EAAE;EACX,CAAC,CAAC;EACFE,oBAAoB,EAAEL,qBAAQ,CAACC,MAAM,CAAC;IACpCC,GAAG,EAAE,qBAAqB;IAC1BC,OAAO,EAAE;EACX,CAAC,CAAC;EACFG,cAAc,EAAEN,qBAAQ,CAACC,MAAM,CAAC;IAC9BC,GAAG,EAAE,gBAAgB;IACrBC,OAAO,EAAE;EACX,CAAC,CAAC;EACFI,aAAa,EAAEP,qBAAQ,CAACC,MAAM,CAAC;IAC7BC,GAAG,EAAE,eAAe;IACpBC,OAAO,EAAE;EACX,CAAC,CAAC;EACFK,WAAW,EAAER,qBAAQ,CAACC,MAAM,CAAC;IAC3BC,GAAG,EAAE,aAAa;IAClBC,OAAO,EAAE;EACX,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getPositionStyles = getPositionStyles;
|
|
7
|
+
const DEFAULT_OFFSET = {
|
|
8
|
+
x: 0,
|
|
9
|
+
y: 0
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Returns absolute-position styles that anchor a portal element at the
|
|
14
|
+
* requested screen position, with an optional pixel offset applied on top.
|
|
15
|
+
*
|
|
16
|
+
* ⚠️ The `'center'` variant uses a negative-50 translate trick that works
|
|
17
|
+
* well for modals/toasts but assumes the content has a known or bounded
|
|
18
|
+
* size. For content of variable width/height, prefer wrapping in a
|
|
19
|
+
* container that measures itself and passes explicit offsets instead.
|
|
20
|
+
*/
|
|
21
|
+
function getPositionStyles(position = 'center', offset = DEFAULT_OFFSET) {
|
|
22
|
+
const base = {
|
|
23
|
+
position: 'absolute'
|
|
24
|
+
};
|
|
25
|
+
switch (position) {
|
|
26
|
+
case 'center':
|
|
27
|
+
{
|
|
28
|
+
const style = {
|
|
29
|
+
...base,
|
|
30
|
+
top: 0,
|
|
31
|
+
left: 0,
|
|
32
|
+
right: 0,
|
|
33
|
+
bottom: 0,
|
|
34
|
+
alignItems: 'center',
|
|
35
|
+
justifyContent: 'center'
|
|
36
|
+
};
|
|
37
|
+
// Only add a transform when the caller explicitly wants an offset —
|
|
38
|
+
// avoids an unnecessary layout pass in the common no-offset case.
|
|
39
|
+
if (offset.x !== 0 || offset.y !== 0) {
|
|
40
|
+
style.transform = [{
|
|
41
|
+
translateX: offset.x
|
|
42
|
+
}, {
|
|
43
|
+
translateY: offset.y
|
|
44
|
+
}];
|
|
45
|
+
}
|
|
46
|
+
return style;
|
|
47
|
+
}
|
|
48
|
+
case 'top':
|
|
49
|
+
return {
|
|
50
|
+
...base,
|
|
51
|
+
top: offset.y,
|
|
52
|
+
left: 0,
|
|
53
|
+
right: 0,
|
|
54
|
+
alignItems: 'center'
|
|
55
|
+
};
|
|
56
|
+
case 'bottom':
|
|
57
|
+
return {
|
|
58
|
+
...base,
|
|
59
|
+
bottom: offset.y,
|
|
60
|
+
left: 0,
|
|
61
|
+
right: 0,
|
|
62
|
+
alignItems: 'center'
|
|
63
|
+
};
|
|
64
|
+
case 'top-left':
|
|
65
|
+
return {
|
|
66
|
+
...base,
|
|
67
|
+
top: offset.y,
|
|
68
|
+
left: offset.x
|
|
69
|
+
};
|
|
70
|
+
case 'top-right':
|
|
71
|
+
return {
|
|
72
|
+
...base,
|
|
73
|
+
top: offset.y,
|
|
74
|
+
right: offset.x
|
|
75
|
+
};
|
|
76
|
+
case 'bottom-left':
|
|
77
|
+
return {
|
|
78
|
+
...base,
|
|
79
|
+
bottom: offset.y,
|
|
80
|
+
left: offset.x
|
|
81
|
+
};
|
|
82
|
+
case 'bottom-right':
|
|
83
|
+
return {
|
|
84
|
+
...base,
|
|
85
|
+
bottom: offset.y,
|
|
86
|
+
right: offset.x
|
|
87
|
+
};
|
|
88
|
+
default:
|
|
89
|
+
{
|
|
90
|
+
// Exhaustive check — TypeScript will error if a new Position variant is
|
|
91
|
+
// added to the union without a corresponding case above.
|
|
92
|
+
const _exhaustive = position;
|
|
93
|
+
console.warn(`[Portal] Unknown position "${_exhaustive}" – falling back to absolute origin.`);
|
|
94
|
+
return base;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
//# sourceMappingURL=position.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["DEFAULT_OFFSET","x","y","getPositionStyles","position","offset","base","style","top","left","right","bottom","alignItems","justifyContent","transform","translateX","translateY","_exhaustive","console","warn"],"sourceRoot":"../../../src","sources":["utiles/position.ts"],"mappings":";;;;;;AAGA,MAAMA,cAAsB,GAAG;EAAEC,CAAC,EAAE,CAAC;EAAEC,CAAC,EAAE;AAAE,CAAC;;AAE7C;AACA;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AK,EAAEL,MAAM,CAACJ;MAChB,CAAC;IAEH,KAAK,aAAa;MAChB,OAAO;QACL,GAAGK,IAAI;QACPK,MAAM,EAAEN,MAAM,CAACH,CAAC;QAChBO,IAAI,EAAIJ,MAAM,CAACJ;MACjB,CAAC;IAEH,KAAK,cAAc;MACjB,OAAO;QACL,GAAGK,IAAI;QACPK,MAAM,EAAEN,MAAM,CAACH,CAAC;QAChBQ,KAAK,EAAGL,MAAM,CAACJ;MACjB,CAAC;IAEH;MAAS;QACP;QACA;QACA,MAAMgB,WAAkB,GAAGb,QAAQ;QACnCc,OAAO,CAACC,IAAI,CAAC,8BAA8BF,WAAW,sCAAgD,CAAC;QACvG,OAAOX,IAAI;MACb;EACF;AACF","ignoreList":[]}
|
|
@@ -0,0 +1,425 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getDeviceDebugInfo = getDeviceDebugInfo;
|
|
7
|
+
exports.getScreenInfo = getScreenInfo;
|
|
8
|
+
exports.getStatusBarHeight = getStatusBarHeight;
|
|
9
|
+
exports.getTopInset = getTopInset;
|
|
10
|
+
exports.hasDynamicIsland = hasDynamicIsland;
|
|
11
|
+
exports.hasNotch = hasNotch;
|
|
12
|
+
exports.isAndroid = isAndroid;
|
|
13
|
+
exports.isExpo = isExpo;
|
|
14
|
+
exports.isIPhone12 = isIPhone12;
|
|
15
|
+
exports.isIPhone12Family = isIPhone12Family;
|
|
16
|
+
exports.isIPhone12Max = isIPhone12Max;
|
|
17
|
+
exports.isIPhone14ProLike = isIPhone14ProLike;
|
|
18
|
+
exports.isIPhone14ProMaxLike = isIPhone14ProMaxLike;
|
|
19
|
+
exports.isIPhoneWithMonobrow = isIPhoneWithMonobrow;
|
|
20
|
+
exports.isIPhoneX = isIPhoneX;
|
|
21
|
+
exports.isIPhoneXFamily = isIPhoneXFamily;
|
|
22
|
+
exports.isIPhoneXMax = isIPhoneXMax;
|
|
23
|
+
exports.isIos = isIos;
|
|
24
|
+
exports.isPad = isPad;
|
|
25
|
+
exports.isPhone = isPhone;
|
|
26
|
+
exports.isTablet = isTablet;
|
|
27
|
+
exports.isTv = isTv;
|
|
28
|
+
var _reactNative = require("react-native");
|
|
29
|
+
// ============================================================================
|
|
30
|
+
// TYPES
|
|
31
|
+
// ============================================================================
|
|
32
|
+
|
|
33
|
+
// ============================================================================
|
|
34
|
+
// STATUS BAR HEIGHT CONSTANTS
|
|
35
|
+
// ============================================================================
|
|
36
|
+
|
|
37
|
+
const STATUSBAR_DEFAULT_HEIGHT = 20;
|
|
38
|
+
const STATUSBAR_ANDROID_FALLBACK_HEIGHT = 24;
|
|
39
|
+
const STATUSBAR_NOTCH_HEIGHT = 44;
|
|
40
|
+
const STATUSBAR_DYNAMIC_ISLAND_HEIGHT = 47;
|
|
41
|
+
|
|
42
|
+
// ============================================================================
|
|
43
|
+
// APPLE DEVICE DIMENSIONS
|
|
44
|
+
// Normalized sizes: width is always the smaller side, height is the larger side
|
|
45
|
+
// ============================================================================
|
|
46
|
+
|
|
47
|
+
// iPhone X / XS / 11 Pro
|
|
48
|
+
const IPHONE_X = {
|
|
49
|
+
width: 375,
|
|
50
|
+
height: 812
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
// iPhone XR / XS Max / 11 / 11 Pro Max
|
|
54
|
+
const IPHONE_XR_XS_MAX = {
|
|
55
|
+
width: 414,
|
|
56
|
+
height: 896
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
// iPhone 12 / 12 Pro / 13 / 13 Pro / 14
|
|
60
|
+
const IPHONE_12_13_14 = {
|
|
61
|
+
width: 390,
|
|
62
|
+
height: 844
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
// iPhone 12 Pro Max / 13 Pro Max / 14 Plus
|
|
66
|
+
const IPHONE_12_PRO_MAX_13_PRO_MAX_14_PLUS = {
|
|
67
|
+
width: 428,
|
|
68
|
+
height: 926
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
// iPhone 14 Pro
|
|
72
|
+
const IPHONE_14_PRO = {
|
|
73
|
+
width: 393,
|
|
74
|
+
height: 852
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
// iPhone 14 Pro Max
|
|
78
|
+
const IPHONE_14_PRO_MAX = {
|
|
79
|
+
width: 430,
|
|
80
|
+
height: 932
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
// iPhone 15 / 15 Pro
|
|
84
|
+
const IPHONE_15_15_PRO = {
|
|
85
|
+
width: 393,
|
|
86
|
+
height: 852
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
// iPhone 15 Plus
|
|
90
|
+
const IPHONE_15_PLUS = {
|
|
91
|
+
width: 430,
|
|
92
|
+
height: 932
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
// iPhone 15 Pro Max
|
|
96
|
+
const IPHONE_15_PRO_MAX = {
|
|
97
|
+
width: 430,
|
|
98
|
+
height: 932
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
// iPhone 16 / possible same logical size as 15/14 Pro family in RN layouts
|
|
102
|
+
const IPHONE_16_FAMILY_SMALL = {
|
|
103
|
+
width: 393,
|
|
104
|
+
height: 852
|
|
105
|
+
};
|
|
106
|
+
const IPHONE_16_FAMILY_LARGE = {
|
|
107
|
+
width: 430,
|
|
108
|
+
height: 932
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
// ============================================================================
|
|
112
|
+
// DEVICE GROUPS
|
|
113
|
+
// ============================================================================
|
|
114
|
+
|
|
115
|
+
const NOTCH_DEVICES = [IPHONE_X, IPHONE_XR_XS_MAX, IPHONE_12_13_14, IPHONE_12_PRO_MAX_13_PRO_MAX_14_PLUS, IPHONE_14_PRO, IPHONE_14_PRO_MAX, IPHONE_15_15_PRO, IPHONE_15_PLUS, IPHONE_15_PRO_MAX, IPHONE_16_FAMILY_SMALL, IPHONE_16_FAMILY_LARGE];
|
|
116
|
+
const DYNAMIC_ISLAND_DEVICES = [IPHONE_14_PRO, IPHONE_14_PRO_MAX, IPHONE_15_15_PRO, IPHONE_15_PLUS, IPHONE_15_PRO_MAX, IPHONE_16_FAMILY_SMALL, IPHONE_16_FAMILY_LARGE];
|
|
117
|
+
const IPHONE_X_FAMILY_DEVICES = [IPHONE_X, IPHONE_XR_XS_MAX];
|
|
118
|
+
const IPHONE_12_FAMILY_DEVICES = [IPHONE_12_13_14, IPHONE_12_PRO_MAX_13_PRO_MAX_14_PLUS];
|
|
119
|
+
|
|
120
|
+
// ============================================================================
|
|
121
|
+
// SCREEN HELPERS
|
|
122
|
+
// ============================================================================
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Returns raw screen info from the window dimensions.
|
|
126
|
+
*/
|
|
127
|
+
function getScreenInfo() {
|
|
128
|
+
const {
|
|
129
|
+
width,
|
|
130
|
+
height
|
|
131
|
+
} = _reactNative.Dimensions.get('window');
|
|
132
|
+
return {
|
|
133
|
+
width,
|
|
134
|
+
height,
|
|
135
|
+
shortSide: Math.min(width, height),
|
|
136
|
+
longSide: Math.max(width, height),
|
|
137
|
+
isLandscape: width > height,
|
|
138
|
+
isPortrait: height >= width
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Returns normalized device size so comparisons work in both portrait and landscape.
|
|
144
|
+
*/
|
|
145
|
+
function getNormalizedDeviceSize() {
|
|
146
|
+
const {
|
|
147
|
+
shortSide,
|
|
148
|
+
longSide
|
|
149
|
+
} = getScreenInfo();
|
|
150
|
+
return {
|
|
151
|
+
width: shortSide,
|
|
152
|
+
height: longSide
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Checks whether current device matches the provided size.
|
|
158
|
+
*/
|
|
159
|
+
function matchesDeviceSize(target) {
|
|
160
|
+
const current = getNormalizedDeviceSize();
|
|
161
|
+
return current.width === target.width && current.height === target.height;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Checks whether current device matches one of the sizes in a group.
|
|
166
|
+
*/
|
|
167
|
+
function matchesAnyDeviceSize(group) {
|
|
168
|
+
return group.some(matchesDeviceSize);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
// ============================================================================
|
|
172
|
+
// PLATFORM HELPERS
|
|
173
|
+
// ============================================================================
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Returns true when running on iOS.
|
|
177
|
+
*/
|
|
178
|
+
function isIos() {
|
|
179
|
+
return _reactNative.Platform.OS === 'ios';
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Returns true when running on Android.
|
|
184
|
+
*/
|
|
185
|
+
function isAndroid() {
|
|
186
|
+
return _reactNative.Platform.OS === 'android';
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Returns true when running on tvOS / Apple TV.
|
|
191
|
+
*/
|
|
192
|
+
function isTv() {
|
|
193
|
+
return !!_reactNative.Platform.isTV;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Returns true when running on an iPad.
|
|
198
|
+
*/
|
|
199
|
+
function isPad() {
|
|
200
|
+
return _reactNative.Platform.OS === 'ios' && !!_reactNative.Platform.isPad;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Returns true when running on a tablet.
|
|
205
|
+
* For iOS it checks iPad.
|
|
206
|
+
* For Android it uses shortest side heuristic.
|
|
207
|
+
*/
|
|
208
|
+
function isTablet() {
|
|
209
|
+
if (_reactNative.Platform.OS === 'ios') {
|
|
210
|
+
return !!_reactNative.Platform.isPad;
|
|
211
|
+
}
|
|
212
|
+
if (_reactNative.Platform.OS === 'android') {
|
|
213
|
+
const {
|
|
214
|
+
shortSide
|
|
215
|
+
} = getScreenInfo();
|
|
216
|
+
return shortSide >= 600;
|
|
217
|
+
}
|
|
218
|
+
return false;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* Returns true when running on a phone-sized device.
|
|
223
|
+
*/
|
|
224
|
+
function isPhone() {
|
|
225
|
+
return !isTablet() && !isTv();
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* Returns true when running on a supported iPhone.
|
|
230
|
+
*/
|
|
231
|
+
function isSupportedIPhone() {
|
|
232
|
+
return _reactNative.Platform.OS === 'ios' && !_reactNative.Platform.isPad && !_reactNative.Platform.isTV;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
// ============================================================================
|
|
236
|
+
// SPECIFIC IPHONE MODEL HELPERS
|
|
237
|
+
// ============================================================================
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* Check if running on iPhone X / XS / 11 Pro size.
|
|
241
|
+
*/
|
|
242
|
+
function isIPhoneX() {
|
|
243
|
+
return isSupportedIPhone() && matchesDeviceSize(IPHONE_X);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* Check if running on iPhone XR / XS Max / 11 / 11 Pro Max size.
|
|
248
|
+
*/
|
|
249
|
+
function isIPhoneXMax() {
|
|
250
|
+
return isSupportedIPhone() && matchesDeviceSize(IPHONE_XR_XS_MAX);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* Check if running on iPhone 12 / 12 Pro / 13 / 13 Pro / 14 size.
|
|
255
|
+
*/
|
|
256
|
+
function isIPhone12() {
|
|
257
|
+
return isSupportedIPhone() && matchesDeviceSize(IPHONE_12_13_14);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* Check if running on iPhone 12 Pro Max / 13 Pro Max / 14 Plus size.
|
|
262
|
+
*/
|
|
263
|
+
function isIPhone12Max() {
|
|
264
|
+
return isSupportedIPhone() && matchesDeviceSize(IPHONE_12_PRO_MAX_13_PRO_MAX_14_PLUS);
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* Check if running on iPhone 14 Pro / 15 / 15 Pro / 16 small family size.
|
|
269
|
+
*/
|
|
270
|
+
function isIPhone14ProLike() {
|
|
271
|
+
return isSupportedIPhone() && matchesDeviceSize(IPHONE_14_PRO);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Check if running on iPhone 14 Pro Max / 15 Plus / 15 Pro Max / 16 large family size.
|
|
276
|
+
*/
|
|
277
|
+
function isIPhone14ProMaxLike() {
|
|
278
|
+
return isSupportedIPhone() && matchesDeviceSize(IPHONE_14_PRO_MAX);
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
// ============================================================================
|
|
282
|
+
// NOTCH / DYNAMIC ISLAND HELPERS
|
|
283
|
+
// ============================================================================
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* Returns true if device is a known iPhone with notch or Dynamic Island.
|
|
287
|
+
*/
|
|
288
|
+
function isIPhoneWithMonobrow() {
|
|
289
|
+
return isSupportedIPhone() && matchesAnyDeviceSize(NOTCH_DEVICES);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* Returns true if device is part of iPhone X notch family.
|
|
294
|
+
*/
|
|
295
|
+
function isIPhoneXFamily() {
|
|
296
|
+
return isSupportedIPhone() && matchesAnyDeviceSize(IPHONE_X_FAMILY_DEVICES);
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* Returns true if device is part of iPhone 12/13/14 notch family.
|
|
301
|
+
*/
|
|
302
|
+
function isIPhone12Family() {
|
|
303
|
+
return isSupportedIPhone() && matchesAnyDeviceSize(IPHONE_12_FAMILY_DEVICES);
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* Returns true if device is a known Dynamic Island iPhone.
|
|
308
|
+
*/
|
|
309
|
+
function hasDynamicIsland() {
|
|
310
|
+
return isSupportedIPhone() && matchesAnyDeviceSize(DYNAMIC_ISLAND_DEVICES);
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* Alias for notch-style iPhones including Dynamic Island.
|
|
315
|
+
*/
|
|
316
|
+
function hasNotch() {
|
|
317
|
+
return isIPhoneWithMonobrow();
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
// ============================================================================
|
|
321
|
+
// EXPO DETECTION
|
|
322
|
+
// ============================================================================
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* Get Expo root object if running inside Expo.
|
|
326
|
+
*/
|
|
327
|
+
function getExpoRoot() {
|
|
328
|
+
return global.Expo || global.__expo || global.__exponent;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* Returns true if running inside Expo.
|
|
333
|
+
*/
|
|
334
|
+
function isExpo() {
|
|
335
|
+
return getExpoRoot() !== undefined;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
// ============================================================================
|
|
339
|
+
// STATUS BAR HELPERS
|
|
340
|
+
// ============================================================================
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* Returns the iOS status bar height based on known device families.
|
|
344
|
+
*/
|
|
345
|
+
function getIosStatusBarHeight() {
|
|
346
|
+
if (!isSupportedIPhone()) return 0;
|
|
347
|
+
if (hasDynamicIsland()) {
|
|
348
|
+
return STATUSBAR_DYNAMIC_ISLAND_HEIGHT;
|
|
349
|
+
}
|
|
350
|
+
if (hasNotch()) {
|
|
351
|
+
return STATUSBAR_NOTCH_HEIGHT;
|
|
352
|
+
}
|
|
353
|
+
return STATUSBAR_DEFAULT_HEIGHT;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* Returns the Android status bar height.
|
|
358
|
+
*/
|
|
359
|
+
function getAndroidStatusBarHeight() {
|
|
360
|
+
return _reactNative.StatusBar.currentHeight ?? STATUSBAR_ANDROID_FALLBACK_HEIGHT;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
/**
|
|
364
|
+
* Get the status bar height for the current platform.
|
|
365
|
+
*
|
|
366
|
+
* @param options control whether iOS or Android should return 0
|
|
367
|
+
*
|
|
368
|
+
* @example
|
|
369
|
+
* getStatusBarHeight()
|
|
370
|
+
* getStatusBarHeight({ skipIos: false })
|
|
371
|
+
* getStatusBarHeight({ skipAndroid: true, skipIos: false })
|
|
372
|
+
*/
|
|
373
|
+
function getStatusBarHeight(options = {}) {
|
|
374
|
+
const {
|
|
375
|
+
skipAndroid = false,
|
|
376
|
+
skipIos = true
|
|
377
|
+
} = options;
|
|
378
|
+
if (_reactNative.Platform.OS === 'ios') {
|
|
379
|
+
return skipIos ? 0 : getIosStatusBarHeight();
|
|
380
|
+
}
|
|
381
|
+
if (_reactNative.Platform.OS === 'android') {
|
|
382
|
+
return skipAndroid ? 0 : getAndroidStatusBarHeight();
|
|
383
|
+
}
|
|
384
|
+
return 0;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* Returns a top inset-like value useful for layouts that need extra spacing.
|
|
389
|
+
*/
|
|
390
|
+
function getTopInset(options = {}) {
|
|
391
|
+
return getStatusBarHeight(options);
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
// ============================================================================
|
|
395
|
+
// DEBUG / INFO HELPERS
|
|
396
|
+
// ============================================================================
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* Returns a readable summary of the current device environment.
|
|
400
|
+
*/
|
|
401
|
+
function getDeviceDebugInfo() {
|
|
402
|
+
const screen = getScreenInfo();
|
|
403
|
+
return {
|
|
404
|
+
platform: _reactNative.Platform.OS,
|
|
405
|
+
version: _reactNative.Platform.Version,
|
|
406
|
+
isPad: isPad(),
|
|
407
|
+
isTablet: isTablet(),
|
|
408
|
+
isPhone: isPhone(),
|
|
409
|
+
isTV: isTv(),
|
|
410
|
+
isExpo: isExpo(),
|
|
411
|
+
width: screen.width,
|
|
412
|
+
height: screen.height,
|
|
413
|
+
shortSide: screen.shortSide,
|
|
414
|
+
longSide: screen.longSide,
|
|
415
|
+
isLandscape: screen.isLandscape,
|
|
416
|
+
isPortrait: screen.isPortrait,
|
|
417
|
+
hasNotch: hasNotch(),
|
|
418
|
+
hasDynamicIsland: hasDynamicIsland(),
|
|
419
|
+
statusBarHeight: getStatusBarHeight({
|
|
420
|
+
skipIos: false,
|
|
421
|
+
skipAndroid: false
|
|
422
|
+
})
|
|
423
|
+
};
|
|
424
|
+
}
|
|
425
|
+
//# sourceMappingURL=statusBar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","STATUSBAR_DEFAULT_HEIGHT","STATUSBAR_ANDROID_FALLBACK_HEIGHT","STATUSBAR_NOTCH_HEIGHT","STATUSBAR_DYNAMIC_ISLAND_HEIGHT","IPHONE_X","width","height","IPHONE_XR_XS_MAX","IPHONE_12_13_14","IPHONE_12_PRO_MAX_13_PRO_MAX_14_PLUS","IPHONE_14_PRO","IPHONE_14_PRO_MAX","IPHONE_15_15_PRO","IPHONE_15_PLUS","IPHONE_15_PRO_MAX","IPHONE_16_FAMILY_SMALL","IPHONE_16_FAMILY_LARGE","NOTCH_DEVICES","DYNAMIC_ISLAND_DEVICES","IPHONE_X_FAMILY_DEVICES","IPHONE_12_FAMILY_DEVICES","getScreenInfo","Dimensions","get","shortSide","Math","min","longSide","max","isLandscape","isPortrait","getNormalizedDeviceSize","matchesDeviceSize","target","current","matchesAnyDeviceSize","group","some","isIos","Platform","OS","isAndroid","isTv","isTV","isPad","isTablet","isPhone","isSupportedIPhone","isIPhoneX","isIPhoneXMax","isIPhone12","isIPhone12Max","isIPhone14ProLike","isIPhone14ProMaxLike","isIPhoneWithMonobrow","isIPhoneXFamily","isIPhone12Family","hasDynamicIsland","hasNotch","getExpoRoot","global","Expo","__expo","__exponent","isExpo","undefined","getIosStatusBarHeight","getAndroidStatusBarHeight","StatusBar","currentHeight","getStatusBarHeight","options","skipAndroid","skipIos","getTopInset","getDeviceDebugInfo","screen","platform","version","Version","statusBarHeight"],"sourceRoot":"../../../src","sources":["utiles/statusBar.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA;AACA;AACA;;AAqBA;AACA;AACA;;AAEA,MAAMC,wBAAwB,GAAG,EAAE;AACnC,MAAMC,iCAAiC,GAAG,EAAE;AAC5C,MAAMC,sBAAsB,GAAG,EAAE;AACjC,MAAMC,+BAA+B,GAAG,EAAE;;AAE1C;AACA;AACA;AACA;;AAEA;AACA,MAAMC,QAAoB,GAAG;EAAEC,KAAK,EAAE,GAAG;EAAEC,MAAM,EAAE;AAAI,CAAC;;AAExD;AACA,MAAMC,gBAA4B,GAAG;EAAEF,KAAK,EAAE,GAAG;EAAEC,MAAM,EAAE;AAAI,CAAC;;AAEhE;AACA,MAAME,eAA2B,GAAG;EAAEH,KAAK,EAAE,GAAG;EAAEC,MAAM,EAAE;AAAI,CAAC;;AAE/D;AACA,MAAMG,oCAAgD,GAAG;EAAEJ,KAAK,EAAE,GAAG;EAAEC,MAAM,EAAE;AAAI,CAAC;;AAEpF;AACA,MAAMI,aAAyB,GAAG;EAAEL,KAAK,EAAE,GAAG;EAAEC,MAAM,EAAE;AAAI,CAAC;;AAE7D;AACA,MAAMK,iBAA6B,GAAG;EAAEN,KAAK,EAAE,GAAG;EAAEC,MAAM,EAAE;AAAI,CAAC;;AAEjE;AACA,MAAMM,gBAA4B,GAAG;EAAEP,KAAK,EAAE,GAAG;EAAEC,MAAM,EAAE;AAAI,CAAC;;AAEhE;AACA,MAAMO,cAA0B,GAAG;EAAER,KAAK,EAAE,GAAG;EAAEC,MAAM,EAAE;AAAI,CAAC;;AAE9D;AACA,MAAMQ,iBAA6B,GAAG;EAAET,KAAK,EAAE,GAAG;EAAEC,MAAM,EAAE;AAAI,CAAC;;AAEjE;AACA,MAAMS,sBAAkC,GAAG;EAAEV,KAAK,EAAE,GAAG;EAAEC,MAAM,EAAE;AA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
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.styled = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
9
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
10
|
+
const styled = (Component, {
|
|
11
|
+
base,
|
|
12
|
+
variants
|
|
13
|
+
} = {}) => {
|
|
14
|
+
return /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
15
|
+
const styles = {
|
|
16
|
+
...(base || {})
|
|
17
|
+
};
|
|
18
|
+
const options = props;
|
|
19
|
+
if (variants) {
|
|
20
|
+
Object.keys(variants).forEach(category => {
|
|
21
|
+
const variantSelected = options[category];
|
|
22
|
+
const variantValue = variants[category];
|
|
23
|
+
if (typeof variantValue === "function") {
|
|
24
|
+
const style = variantValue(variantSelected, options);
|
|
25
|
+
if (style) {
|
|
26
|
+
Object.assign(styles, style);
|
|
27
|
+
}
|
|
28
|
+
} else if (variantValue && variantValue[variantSelected]) {
|
|
29
|
+
const value = variantValue[variantSelected];
|
|
30
|
+
Object.assign(styles, typeof value === "function" ? value(variantSelected, options) : value);
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
|
|
35
|
+
...props,
|
|
36
|
+
style: styles,
|
|
37
|
+
ref: ref
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
exports.styled = styled;
|
|
42
|
+
//# sourceMappingURL=styled.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","styled","Component","base","variants","forwardRef","props","ref","styles","options","keys","forEach","category","variantSelected","variantValue","style","assign","value","jsx","exports"],"sourceRoot":"../../../src","sources":["utiles/styled.tsx"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAAyD,IAAAC,WAAA,GAAAD,OAAA;AAAA,SAAAD,wBAAAG,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAL,uBAAA,YAAAA,CAAAG,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,C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;MAAUS,KAAK,EAAEP,MAAO;MAACD,GAAG,EAAEA;IAAI,CAAE,CAAC;EACrE,CAAC,CAAC;AACN,CAAC;AAACY,OAAA,CAAAlB,MAAA,GAAAA,MAAA","ignoreList":[]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.portalStyles = void 0;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
/**
|
|
9
|
+
* Styles shared across portal rendering components.
|
|
10
|
+
* Kept in a single module so both `PortalManager` and `GlobalPortalProvider`
|
|
11
|
+
* reference the same cached `StyleSheet` object.
|
|
12
|
+
*/
|
|
13
|
+
const portalStyles = exports.portalStyles = _reactNative.StyleSheet.create({
|
|
14
|
+
/** Full-screen semi-transparent overlay rendered behind portal content. */
|
|
15
|
+
backdrop: {
|
|
16
|
+
..._reactNative.StyleSheet.absoluteFillObject,
|
|
17
|
+
backgroundColor: 'rgba(0, 0, 0, 0.5)'
|
|
18
|
+
},
|
|
19
|
+
/**
|
|
20
|
+
* Touch-capture layer that sits on top of the backdrop colour layer.
|
|
21
|
+
* Using a separate view (rather than making the backdrop itself touchable)
|
|
22
|
+
* lets us keep `pointerEvents="box-none"` on the backdrop so that touches
|
|
23
|
+
* outside the inner layer still fall through when no `onBackdropPress` is
|
|
24
|
+
* needed.
|
|
25
|
+
*/
|
|
26
|
+
backdropTouchable: {
|
|
27
|
+
..._reactNative.StyleSheet.absoluteFillObject
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","portalStyles","exports","StyleSheet","create","backdrop","absoluteFillObject","backgroundColor","backdropTouchable"],"sourceRoot":"../../../src","sources":["utiles/styles.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA;AACA;AACA;AACA;AACA;AACO,MAAMC,YAAY,GAAAC,OAAA,CAAAD,YAAA,GAAGE,uBAAU,CAACC,MAAM,CAAC;EAC5C;EACAC,QAAQ,EAAE;IACR,GAAGF,uBAAU,CAACG,kBAAkB;IAChCC,eAAe,EAAE;EACnB,CAAC;EAED;AACF;AACA;AACA;AACA;AACA;AACA;EACEC,iBAAiB,EAAE;IACjB,GAAGL,uBAAU,CAACG;EAChB;AACF,CAAC,CAAC","ignoreList":[]}
|