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
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { ColorValue, StyleProp, ViewStyle, TextStyle, ViewProps } from 'react-native';
|
|
3
|
+
export type SwitchSize = 'sm' | 'md' | 'lg';
|
|
4
|
+
export declare const SWITCH_SIZES: Record<SwitchSize, {
|
|
5
|
+
trackWidth: number;
|
|
6
|
+
trackHeight: number;
|
|
7
|
+
thumbSize: number;
|
|
8
|
+
fontSize: number;
|
|
9
|
+
thumbInset: number;
|
|
10
|
+
}>;
|
|
11
|
+
export type SwitchColors = {
|
|
12
|
+
/** Track background when ON. */
|
|
13
|
+
activeTrack: string;
|
|
14
|
+
/** Track background when OFF. */
|
|
15
|
+
inactiveTrack: string;
|
|
16
|
+
/** Track border when OFF (subtle outline). */
|
|
17
|
+
inactiveBorder: string;
|
|
18
|
+
/** Thumb (knob) background. */
|
|
19
|
+
thumb: string;
|
|
20
|
+
/** Shadow colour for the thumb. */
|
|
21
|
+
thumbShadow: string;
|
|
22
|
+
/** Label text colour when track is active. */
|
|
23
|
+
activeLabelText: string;
|
|
24
|
+
/** Label text colour when track is inactive. */
|
|
25
|
+
inactiveLabelText: string;
|
|
26
|
+
/** Loading spinner colour. */
|
|
27
|
+
loadingColor: string;
|
|
28
|
+
};
|
|
29
|
+
export declare const SWITCH_COLORS_DEFAULT: SwitchColors;
|
|
30
|
+
export interface SwitchProps<ActiveValueT = boolean, InactiveValueT = boolean> extends Pick<ViewProps, 'testID'> {
|
|
31
|
+
/** Controlled value. */
|
|
32
|
+
value?: ActiveValueT | InactiveValueT;
|
|
33
|
+
/** Uncontrolled default. @default inactiveValue */
|
|
34
|
+
defaultValue?: ActiveValueT | InactiveValueT;
|
|
35
|
+
/** Value emitted when the switch is ON. @default true */
|
|
36
|
+
activeValue?: ActiveValueT;
|
|
37
|
+
/** Value emitted when the switch is OFF. @default false */
|
|
38
|
+
inactiveValue?: InactiveValueT;
|
|
39
|
+
/** Called when the switch changes state. */
|
|
40
|
+
onChange?: (v: ActiveValueT | InactiveValueT) => void;
|
|
41
|
+
/** Called on every press, before state changes. */
|
|
42
|
+
onPress?: () => void;
|
|
43
|
+
/**
|
|
44
|
+
* Guard called before the state changes.
|
|
45
|
+
* Return `false` (or a Promise resolving `false`) to cancel.
|
|
46
|
+
*/
|
|
47
|
+
beforeChange?: (next: ActiveValueT | InactiveValueT) => boolean | Promise<boolean>;
|
|
48
|
+
/** Size preset. @default 'md' */
|
|
49
|
+
size?: SwitchSize;
|
|
50
|
+
/**
|
|
51
|
+
* Manual pixel size override — sets track height; width and thumb scale
|
|
52
|
+
* proportionally from the `md` preset ratios.
|
|
53
|
+
*/
|
|
54
|
+
customSize?: number;
|
|
55
|
+
/** Override the ON track colour. */
|
|
56
|
+
activeColor?: ColorValue;
|
|
57
|
+
/** Override the OFF track colour. */
|
|
58
|
+
inactiveColor?: ColorValue;
|
|
59
|
+
/** Content rendered inside the track when ON (string or ReactNode). */
|
|
60
|
+
activeLabel?: ReactNode;
|
|
61
|
+
/** Content rendered inside the track when OFF (string or ReactNode). */
|
|
62
|
+
inactiveLabel?: ReactNode;
|
|
63
|
+
/** Style for the track label text (when label is a string). */
|
|
64
|
+
labelStyle?: StyleProp<TextStyle>;
|
|
65
|
+
/** Additional style applied to the outer wrapper. */
|
|
66
|
+
style?: StyleProp<ViewStyle>;
|
|
67
|
+
/** Show a spinner on the thumb and block interaction. @default false */
|
|
68
|
+
loading?: boolean;
|
|
69
|
+
/** Block interaction and dim the component. @default false */
|
|
70
|
+
disabled?: boolean;
|
|
71
|
+
/** Fine-grained colour overrides. */
|
|
72
|
+
colors?: Partial<SwitchColors>;
|
|
73
|
+
}
|
|
74
|
+
//# sourceMappingURL=interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interface.d.ts","sourceRoot":"","sources":["../../../src/switch/interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAI1F,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AAE3C,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,UAAU,EAAE;IAC5C,UAAU,EAAG,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,EAAI,MAAM,CAAA;IACnB,QAAQ,EAAK,MAAM,CAAA;IACnB,UAAU,EAAG,MAAM,CAAA;CACpB,CAIA,CAAA;AAID,MAAM,MAAM,YAAY,GAAG;IACzB,gCAAgC;IAChC,WAAW,EAAK,MAAM,CAAA;IACtB,iCAAiC;IACjC,aAAa,EAAG,MAAM,CAAA;IACtB,8CAA8C;IAC9C,cAAc,EAAE,MAAM,CAAA;IACtB,+BAA+B;IAC/B,KAAK,EAAW,MAAM,CAAA;IACtB,mCAAmC;IACnC,WAAW,EAAK,MAAM,CAAA;IACtB,8CAA8C;IAC9C,eAAe,EAAI,MAAM,CAAA;IACzB,gDAAgD;IAChD,iBAAiB,EAAE,MAAM,CAAA;IACzB,8BAA8B;IAC9B,YAAY,EAAI,MAAM,CAAA;CACvB,CAAA;AAED,eAAO,MAAM,qBAAqB,EAAE,YASnC,CAAA;AAID,MAAM,WAAW,WAAW,CAAC,YAAY,GAAG,OAAO,EAAE,cAAc,GAAG,OAAO,CAC3E,SAAQ,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC;IAIjC,wBAAwB;IACxB,KAAK,CAAC,EAAE,YAAY,GAAG,cAAc,CAAA;IACrC,mDAAmD;IACnD,YAAY,CAAC,EAAE,YAAY,GAAG,cAAc,CAAA;IAE5C,0DAA0D;IAC1D,WAAW,CAAC,EAAE,YAAY,CAAA;IAC1B,2DAA2D;IAC3D,aAAa,CAAC,EAAE,cAAc,CAAA;IAI9B,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,YAAY,GAAG,cAAc,KAAK,IAAI,CAAA;IACrD,mDAAmD;IACnD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB;;;OAGG;IACH,YAAY,CAAC,EAAE,CACb,IAAI,EAAE,YAAY,GAAG,cAAc,KAChC,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;IAI/B,iCAAiC;IACjC,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IAEnB,oCAAoC;IACpC,WAAW,CAAC,EAAE,UAAU,CAAA;IACxB,qCAAqC;IACrC,aAAa,CAAC,EAAE,UAAU,CAAA;IAE1B,uEAAuE;IACvE,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,wEAAwE;IACxE,aAAa,CAAC,EAAE,SAAS,CAAA;IAEzB,+DAA+D;IAC/D,UAAU,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;IAEjC,qDAAqD;IACrD,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;IAI5B,wEAAwE;IACxE,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,OAAO,CAAA;IAIlB,qCAAqC;IACrC,MAAM,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,CAAA;CAC/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TabBar.d.ts","sourceRoot":"","sources":["../../../src/tabBar/TabBar.tsx"],"names":[],"mappings":";;AAoBA,OAAO,EAKL,KAAK,WAAW,EAEhB,KAAK,QAAQ,EACd,MAAM,aAAa,CAAA;AAwdpB,eAAO,MAAM,MAAM,6CAEd,WAAW,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TabBarUsage.d.ts","sourceRoot":"","sources":["../../../src/tabBar/TabBarUsage.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAmB,MAAM,OAAO,CAAA;AA2EvC,MAAM,CAAC,OAAO,UAAU,WAAW,sBA4OlC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module TabBar
|
|
3
|
+
*
|
|
4
|
+
* ─── Basic (center-aligned, no indicator) ────────────────────────────────────
|
|
5
|
+
* ```tsx
|
|
6
|
+
* import { TabBar } from './tab-bar'
|
|
7
|
+
*
|
|
8
|
+
* const TABS = [
|
|
9
|
+
* { value: 'home', label: 'Home' },
|
|
10
|
+
* { value: 'explore', label: 'Explore' },
|
|
11
|
+
* { value: 'profile', label: 'Profile' },
|
|
12
|
+
* ]
|
|
13
|
+
*
|
|
14
|
+
* <TabBar options={TABS} defaultValue="home" onChange={console.log} />
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* ─── With animated underline indicator ───────────────────────────────────────
|
|
18
|
+
* ```tsx
|
|
19
|
+
* <TabBar options={TABS} indicator="line" value={tab} onChange={setTab} />
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* ─── Scrollable (many tabs) ──────────────────────────────────────────────────
|
|
23
|
+
* ```tsx
|
|
24
|
+
* <TabBar options={manyTabs} tabAlign="scroll" indicator="line" />
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* ─── With icons ──────────────────────────────────────────────────────────────
|
|
28
|
+
* ```tsx
|
|
29
|
+
* const ICON_TABS = [
|
|
30
|
+
* { value: 'home', label: 'Home', iconRender: (color) => <HomeIcon color={color} /> },
|
|
31
|
+
* ]
|
|
32
|
+
* <TabBar options={ICON_TABS} indicator="dot" />
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* ─── Pill indicator ──────────────────────────────────────────────────────────
|
|
36
|
+
* ```tsx
|
|
37
|
+
* <TabBar options={TABS} indicator="pill" variant="solid" />
|
|
38
|
+
* ```
|
|
39
|
+
*
|
|
40
|
+
* ─── Color overrides ─────────────────────────────────────────────────────────
|
|
41
|
+
* ```tsx
|
|
42
|
+
* <TabBar
|
|
43
|
+
* options={TABS}
|
|
44
|
+
* indicator="line"
|
|
45
|
+
* colors={{ activeText: '#22c55e', indicator: '#22c55e' }}
|
|
46
|
+
* />
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
export { TabBar } from './TabBar';
|
|
50
|
+
export type { TabBarProps, TabItem, TabValue, TabBarColors, TabBarVariant, IndicatorStyle, } from './interface';
|
|
51
|
+
export { TAB_BAR_COLORS_LIGHT, TAB_BAR_COLORS_DARK } from './interface';
|
|
52
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tabBar/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAqC,UAAU,CAAA;AAChE,YAAY,EACV,WAAW,EACX,OAAO,EACP,QAAQ,EACR,YAAY,EACZ,aAAa,EACb,cAAc,GACf,MAAqD,aAAa,CAAA;AACnE,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA"}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { ColorValue, StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
export type TabValue = number | string;
|
|
4
|
+
export type TabItem<T extends TabValue> = {
|
|
5
|
+
/** Unique identifier for this tab. */
|
|
6
|
+
value: T;
|
|
7
|
+
/** Display label. */
|
|
8
|
+
label: string;
|
|
9
|
+
/**
|
|
10
|
+
* Badge rendered beside the label.
|
|
11
|
+
* - number → shown as-is
|
|
12
|
+
* - string → shown as-is (pass '' to show a dot badge)
|
|
13
|
+
*/
|
|
14
|
+
badge?: number | string;
|
|
15
|
+
/**
|
|
16
|
+
* Renders an icon above (or instead of) the label.
|
|
17
|
+
* Receives the resolved icon colour and the active state.
|
|
18
|
+
*/
|
|
19
|
+
iconRender?: (color: ColorValue, isActive: boolean) => React.ReactElement;
|
|
20
|
+
/** Disable this specific tab. */
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
};
|
|
23
|
+
export type IndicatorStyle = 'line' | 'pill' | 'dot';
|
|
24
|
+
export type TabBarVariant = 'default' | 'underline' | 'card' | 'solid';
|
|
25
|
+
export type TabBarColors = {
|
|
26
|
+
/** Bar background. */
|
|
27
|
+
background: string;
|
|
28
|
+
/** Inactive tab label + icon. */
|
|
29
|
+
text: string;
|
|
30
|
+
/** Active tab label + icon. */
|
|
31
|
+
activeText: string;
|
|
32
|
+
/** Underline / pill / dot indicator. */
|
|
33
|
+
indicator: string;
|
|
34
|
+
/** Badge text. */
|
|
35
|
+
badge: string;
|
|
36
|
+
/** Bar bottom border (underline variant). */
|
|
37
|
+
border: string;
|
|
38
|
+
/** Active chip background (solid/card variant). */
|
|
39
|
+
activeChipBg: string;
|
|
40
|
+
/** Active chip text (solid/card variant). */
|
|
41
|
+
activeChipText: string;
|
|
42
|
+
/** Disabled tab. */
|
|
43
|
+
disabled: string;
|
|
44
|
+
};
|
|
45
|
+
export declare const TAB_BAR_COLORS_LIGHT: TabBarColors;
|
|
46
|
+
export declare const TAB_BAR_COLORS_DARK: TabBarColors;
|
|
47
|
+
export interface TabBarProps<T extends TabValue> {
|
|
48
|
+
/** Tab options. Memoize this array to avoid spurious re-renders. */
|
|
49
|
+
options: TabItem<T>[];
|
|
50
|
+
/** Controlled active value. */
|
|
51
|
+
value?: T;
|
|
52
|
+
/** Uncontrolled initial value. Defaults to options[0].value. */
|
|
53
|
+
defaultValue?: T;
|
|
54
|
+
/** Called when the active tab changes. */
|
|
55
|
+
onChange?: (value: T) => void;
|
|
56
|
+
/**
|
|
57
|
+
* Indicator style shown on the active tab.
|
|
58
|
+
* - `'line'` — animated bottom line (classic underline)
|
|
59
|
+
* - `'pill'` — animated pill that slides behind the active tab
|
|
60
|
+
* - `'dot'` — small dot below the label
|
|
61
|
+
* - `false` — no indicator (default)
|
|
62
|
+
*/
|
|
63
|
+
indicator?: false | IndicatorStyle;
|
|
64
|
+
/**
|
|
65
|
+
* Explicit indicator width in px.
|
|
66
|
+
* - Omit → matches label text width (line) or tab width (pill).
|
|
67
|
+
* - `0` → stretches to tab width.
|
|
68
|
+
*/
|
|
69
|
+
indicatorWidth?: number;
|
|
70
|
+
/**
|
|
71
|
+
* Indicator height in px.
|
|
72
|
+
* - line default: 3
|
|
73
|
+
* - pill: auto (covers whole tab)
|
|
74
|
+
* - dot: 6
|
|
75
|
+
*/
|
|
76
|
+
indicatorHeight?: number;
|
|
77
|
+
/** Indicator colour override. Falls back to `colors.indicator`. */
|
|
78
|
+
indicatorColor?: ColorValue;
|
|
79
|
+
/** Border radius of the indicator shape. */
|
|
80
|
+
indicatorRadius?: number;
|
|
81
|
+
/**
|
|
82
|
+
* - `'center'` — tabs divide the bar equally (no scroll).
|
|
83
|
+
* - `'scroll'` — tabs are natural width; bar scrolls horizontally.
|
|
84
|
+
*/
|
|
85
|
+
tabAlign?: 'center' | 'scroll';
|
|
86
|
+
/**
|
|
87
|
+
* Fixed height for the bar.
|
|
88
|
+
* Defaults: 48 with icons, 44 with indicator, 40 plain.
|
|
89
|
+
*/
|
|
90
|
+
height?: number;
|
|
91
|
+
/**
|
|
92
|
+
* Visual style preset.
|
|
93
|
+
* @default 'default'
|
|
94
|
+
*/
|
|
95
|
+
variant?: TabBarVariant;
|
|
96
|
+
/** Scale factor for the active label (pop / bulge effect). @default 1 */
|
|
97
|
+
labelBulge?: number | boolean;
|
|
98
|
+
/** Show a persistent bottom border on the bar. @default false */
|
|
99
|
+
showBorder?: boolean;
|
|
100
|
+
/** Padding inside each tab. @default 12 */
|
|
101
|
+
tabPaddingHorizontal?: number;
|
|
102
|
+
/** Gap between icon and label. @default 4 */
|
|
103
|
+
iconLabelGap?: number;
|
|
104
|
+
/** Font size for tab labels. @default 14 */
|
|
105
|
+
fontSize?: number;
|
|
106
|
+
/** Font size for labels when tabs also have icons. @default 11 */
|
|
107
|
+
iconFontSize?: number;
|
|
108
|
+
/** Explicit text/icon colour for inactive tabs. */
|
|
109
|
+
textColor?: ColorValue;
|
|
110
|
+
/** Explicit text/icon colour for active tab. */
|
|
111
|
+
activeTextColor?: ColorValue;
|
|
112
|
+
/** Fine-grained colour token overrides. */
|
|
113
|
+
colors?: Partial<TabBarColors>;
|
|
114
|
+
style?: StyleProp<ViewStyle>;
|
|
115
|
+
contentStyle?: StyleProp<ViewStyle>;
|
|
116
|
+
tabStyle?: StyleProp<ViewStyle>;
|
|
117
|
+
testID?: string;
|
|
118
|
+
}
|
|
119
|
+
//# sourceMappingURL=interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interface.d.ts","sourceRoot":"","sources":["../../../src/tabBar/interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAIpE,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAA;AAItC,MAAM,MAAM,OAAO,CAAC,CAAC,SAAS,QAAQ,IAAI;IACxC,sCAAsC;IACtC,KAAK,EAAE,CAAC,CAAA;IACR,qBAAqB;IACrB,KAAK,EAAE,MAAM,CAAA;IACb;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB;;;OAGG;IACH,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,KAAK,KAAK,CAAC,YAAY,CAAA;IACzE,iCAAiC;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAID,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,CAAA;AAIpD,MAAM,MAAM,aAAa,GACrB,SAAS,GACT,WAAW,GACX,MAAM,GACN,OAAO,CAAA;AAIX,MAAM,MAAM,YAAY,GAAG;IACzB,sBAAsB;IACtB,UAAU,EAAQ,MAAM,CAAA;IACxB,iCAAiC;IACjC,IAAI,EAAc,MAAM,CAAA;IACxB,+BAA+B;IAC/B,UAAU,EAAQ,MAAM,CAAA;IACxB,wCAAwC;IACxC,SAAS,EAAS,MAAM,CAAA;IACxB,kBAAkB;IAClB,KAAK,EAAa,MAAM,CAAA;IACxB,6CAA6C;IAC7C,MAAM,EAAY,MAAM,CAAA;IACxB,mDAAmD;IACnD,YAAY,EAAM,MAAM,CAAA;IACxB,6CAA6C;IAC7C,cAAc,EAAI,MAAM,CAAA;IACxB,oBAAoB;IACpB,QAAQ,EAAU,MAAM,CAAA;CACzB,CAAA;AAED,eAAO,MAAM,oBAAoB,EAAE,YAUlC,CAAA;AAED,eAAO,MAAM,mBAAmB,EAAE,YAUjC,CAAA;AAID,MAAM,WAAW,WAAW,CAAC,CAAC,SAAS,QAAQ;IAI7C,oEAAoE;IACpE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,CAAA;IAIrB,+BAA+B;IAC/B,KAAK,CAAC,EAAE,CAAC,CAAA;IACT,gEAAgE;IAChE,YAAY,CAAC,EAAE,CAAC,CAAA;IAChB,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAA;IAI7B;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,KAAK,GAAG,cAAc,CAAA;IAElC;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IAEvB;;;;;OAKG;IACH,eAAe,CAAC,EAAE,MAAM,CAAA;IAExB,mEAAmE;IACnE,cAAc,CAAC,EAAE,UAAU,CAAA;IAE3B,4CAA4C;IAC5C,eAAe,CAAC,EAAE,MAAM,CAAA;IAIxB;;;OAGG;IACH,QAAQ,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAA;IAE9B;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAIf;;;OAGG;IACH,OAAO,CAAC,EAAE,aAAa,CAAA;IAEvB,yEAAyE;IACzE,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;IAE7B,iEAAiE;IACjE,UAAU,CAAC,EAAE,OAAO,CAAA;IAEpB,2CAA2C;IAC3C,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAE7B,6CAA6C;IAC7C,YAAY,CAAC,EAAE,MAAM,CAAA;IAErB,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB,kEAAkE;IAClE,YAAY,CAAC,EAAE,MAAM,CAAA;IAIrB,mDAAmD;IACnD,SAAS,CAAC,EAAE,UAAU,CAAA;IACtB,gDAAgD;IAChD,eAAe,CAAC,EAAE,UAAU,CAAA;IAE5B,2CAA2C;IAC3C,MAAM,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,CAAA;IAI9B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;IAC5B,YAAY,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;IACnC,QAAQ,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;IAE/B,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TextProps, TextStyle } from 'react-native';
|
|
3
|
+
type TextVariants = {
|
|
4
|
+
fontSize?: number;
|
|
5
|
+
fontWeight?: number | string;
|
|
6
|
+
color?: string;
|
|
7
|
+
textDecorationLine?: boolean | string;
|
|
8
|
+
textAlign?: string;
|
|
9
|
+
fontFamily?: string;
|
|
10
|
+
link?: boolean;
|
|
11
|
+
};
|
|
12
|
+
type StyledTextProps = TextVariants & TextProps & TextStyle;
|
|
13
|
+
declare const StyledText: import("react").ForwardRefExoticComponent<TextVariants & TextProps & TextStyle & import("react").RefAttributes<any>>;
|
|
14
|
+
export { StyledText };
|
|
15
|
+
export type { StyledTextProps };
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/text/index.ts"],"names":[],"mappings":";AACA,OAAO,EAEH,SAAS,EACT,SAAS,EACZ,MAAM,cAAc,CAAC;AAItB,KAAK,YAAY,GAAG;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kBAAkB,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAE;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,KAAK,eAAe,GAAG,YAAY,GAAG,SAAS,GAAG,SAAS,CAAC;AAE5D,QAAA,MAAM,UAAU,sHAgDd,CAAC;AAEH,OAAO,EAAE,UAAU,EAAE,CAAC;AACtB,YAAY,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* StyledTimeline.tsx
|
|
3
|
+
* ──────────────────
|
|
4
|
+
* A fully reusable, data-driven vertical timeline component for fluent-styles.
|
|
5
|
+
*
|
|
6
|
+
* Features:
|
|
7
|
+
* • Accepts JSON data OR React children (or both)
|
|
8
|
+
* • Animated dot entrance on mount
|
|
9
|
+
* • Customisable dot size, colour, line style, connector colour
|
|
10
|
+
* • Time label column on the left (start + end)
|
|
11
|
+
* • Right content slot: any ReactNode per item
|
|
12
|
+
* • Variants: default · compact · spacious
|
|
13
|
+
* • Full TypeScript props
|
|
14
|
+
*/
|
|
15
|
+
import React from 'react';
|
|
16
|
+
export type TimelineVariant = 'default' | 'compact' | 'spacious';
|
|
17
|
+
export type TimelineDotShape = 'circle' | 'filled' | 'ring';
|
|
18
|
+
export interface TimelineItem {
|
|
19
|
+
/** Unique key for this entry */
|
|
20
|
+
id: string;
|
|
21
|
+
/** Primary time label (e.g. "11:35") */
|
|
22
|
+
time: string;
|
|
23
|
+
/** Secondary time label shown below primary (e.g. "13:05") */
|
|
24
|
+
endTime?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Arbitrary content rendered to the right of the timeline.
|
|
27
|
+
* If provided, `renderItem` and the data fields below are ignored.
|
|
28
|
+
*/
|
|
29
|
+
content?: React.ReactNode;
|
|
30
|
+
title?: string;
|
|
31
|
+
subtitle?: string;
|
|
32
|
+
description?: string;
|
|
33
|
+
/** Any extra data you want to pass through */
|
|
34
|
+
meta?: Record<string, unknown>;
|
|
35
|
+
}
|
|
36
|
+
export interface StyledTimelineColors {
|
|
37
|
+
/** Vertical connector line. Default: theme.colors.gray[200] */
|
|
38
|
+
line?: string;
|
|
39
|
+
/** Default dot fill/stroke. Default: '#8bc34a' */
|
|
40
|
+
dot?: string;
|
|
41
|
+
/** Dot border (for 'ring' shape). Default: palettes.white */
|
|
42
|
+
dotBorder?: string;
|
|
43
|
+
/** Time text colour. Default: theme.colors.gray[900] */
|
|
44
|
+
timeText?: string;
|
|
45
|
+
/** Secondary time (endTime) colour. Default: theme.colors.gray[400] */
|
|
46
|
+
endTimeText?: string;
|
|
47
|
+
}
|
|
48
|
+
export interface StyledTimelineProps {
|
|
49
|
+
/**
|
|
50
|
+
* Array of timeline entries.
|
|
51
|
+
* Each item must have `id` and `time`.
|
|
52
|
+
* Provide `content` for fully custom rendering, or use convenience fields.
|
|
53
|
+
*/
|
|
54
|
+
items?: TimelineItem[];
|
|
55
|
+
/**
|
|
56
|
+
* Custom render function per item.
|
|
57
|
+
* Receives the item and its index.
|
|
58
|
+
* Takes priority over `item.content` and the default renderer.
|
|
59
|
+
*/
|
|
60
|
+
renderItem?: (item: TimelineItem, index: number) => React.ReactNode;
|
|
61
|
+
/**
|
|
62
|
+
* React children are appended after `items` in the timeline.
|
|
63
|
+
* Each direct child is treated as a standalone timeline entry
|
|
64
|
+
* WITHOUT a time label — useful for one-off custom nodes.
|
|
65
|
+
*/
|
|
66
|
+
children?: React.ReactNode;
|
|
67
|
+
/** Visual density. Default: 'default' */
|
|
68
|
+
variant?: TimelineVariant;
|
|
69
|
+
/** Dot shape. Default: 'filled' */
|
|
70
|
+
dotShape?: TimelineDotShape;
|
|
71
|
+
/** Dot diameter in px. Default: 10 */
|
|
72
|
+
dotSize?: number;
|
|
73
|
+
/** Width of the time label column. Default: 56 */
|
|
74
|
+
timeColumnWidth?: number;
|
|
75
|
+
/** Gap between the time column and the content area. Default: 16 */
|
|
76
|
+
timeGap?: number;
|
|
77
|
+
/** Whether to animate dots on mount. Default: true */
|
|
78
|
+
animated?: boolean;
|
|
79
|
+
/** Colour overrides */
|
|
80
|
+
colors?: StyledTimelineColors;
|
|
81
|
+
/** Called when an item is pressed (only fires if item has no custom onPress) */
|
|
82
|
+
onItemPress?: (item: TimelineItem) => void;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* StyledTimeline — vertical data-driven timeline for fluent-styles apps.
|
|
86
|
+
*
|
|
87
|
+
* @example JSON-driven (minimal)
|
|
88
|
+
* ```tsx
|
|
89
|
+
* <StyledTimeline
|
|
90
|
+
* items={[
|
|
91
|
+
* { id: '1', time: '09:00', title: 'Morning Run', subtitle: 'Cardio · 5km' },
|
|
92
|
+
* { id: '2', time: '11:30', title: 'Strength Class', subtitle: 'Upper body' },
|
|
93
|
+
* { id: '3', time: '14:00', title: 'Yoga', subtitle: 'Recovery' },
|
|
94
|
+
* ]}
|
|
95
|
+
* />
|
|
96
|
+
* ```
|
|
97
|
+
*
|
|
98
|
+
* @example Custom renderItem
|
|
99
|
+
* ```tsx
|
|
100
|
+
* <StyledTimeline
|
|
101
|
+
* items={workoutItems}
|
|
102
|
+
* renderItem={(item) => <WorkoutCard item={item} />}
|
|
103
|
+
* />
|
|
104
|
+
* ```
|
|
105
|
+
*
|
|
106
|
+
* @example Mixed: data + inline children
|
|
107
|
+
* ```tsx
|
|
108
|
+
* <StyledTimeline items={scheduleItems}>
|
|
109
|
+
* <NoteCard note="Don't forget to hydrate!" />
|
|
110
|
+
* </StyledTimeline>
|
|
111
|
+
* ```
|
|
112
|
+
*
|
|
113
|
+
* @example Custom colours
|
|
114
|
+
* ```tsx
|
|
115
|
+
* <StyledTimeline
|
|
116
|
+
* items={items}
|
|
117
|
+
* colors={{ dot: '#2196f3', line: '#bbdefb' }}
|
|
118
|
+
* dotShape="ring"
|
|
119
|
+
* variant="spacious"
|
|
120
|
+
* />
|
|
121
|
+
* ```
|
|
122
|
+
*/
|
|
123
|
+
export declare const StyledTimeline: React.FC<StyledTimelineProps>;
|
|
124
|
+
export default StyledTimeline;
|
|
125
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/timeline/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAA4B,MAAM,OAAO,CAAC;AAYjD,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC;AACjE,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,CAAC;AAE5D,MAAM,WAAW,YAAY;IAC3B,gCAAgC;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,wCAAwC;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,8DAA8D;IAC9D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,8CAA8C;IAC9C,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC;AAED,MAAM,WAAW,oBAAoB;IACnC,+DAA+D;IAC/D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,kDAAkD;IAClD,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,6DAA6D;IAC7D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wDAAwD;IACxD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,uEAAuE;IACvE,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,mBAAmB;IAClC;;;;OAIG;IACH,KAAK,CAAC,EAAE,YAAY,EAAE,CAAC;IAEvB;;;;OAIG;IACH,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAC;IAEpE;;;;OAIG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B,yCAAyC;IACzC,OAAO,CAAC,EAAE,eAAe,CAAC;IAE1B,mCAAmC;IACnC,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAE5B,sCAAsC;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,kDAAkD;IAClD,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB,oEAAoE;IACpE,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,sDAAsD;IACtD,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,uBAAuB;IACvB,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAE9B,gFAAgF;IAChF,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,IAAI,CAAC;CAC5C;AAiGD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA+HxD,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ComponentTheme, ToastColors, TOAST_DARK, TOAST_LIGHT } from '../utiles/theme';
|
|
3
|
+
export type ToastVariant = 'success' | 'error' | 'warning' | 'info';
|
|
4
|
+
export type ToastProps = {
|
|
5
|
+
message: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
variant?: ToastVariant;
|
|
8
|
+
/** Auto-dismiss after ms. Pass `0` to disable. Default: 3500. */
|
|
9
|
+
duration?: number;
|
|
10
|
+
/** Called after the exit animation completes — used by the hook to unmount. */
|
|
11
|
+
onDismiss?: () => void;
|
|
12
|
+
/**
|
|
13
|
+
* Color scheme. `'dark'` (default) | `'light'` | `'system'`.
|
|
14
|
+
*/
|
|
15
|
+
theme?: ComponentTheme;
|
|
16
|
+
/**
|
|
17
|
+
* Fine-grained token overrides on top of the active theme.
|
|
18
|
+
* @example
|
|
19
|
+
* ```tsx
|
|
20
|
+
* toast.show({ variant: 'success', theme: 'light', colors: { successBorder: '#059669' } })
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
colors?: Partial<ToastColors>;
|
|
24
|
+
};
|
|
25
|
+
export declare const Toast: React.FC<ToastProps>;
|
|
26
|
+
export { TOAST_DARK, TOAST_LIGHT };
|
|
27
|
+
export type { ToastColors };
|
|
28
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/toast/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAA;AAStE,OAAO,EACL,cAAc,EAEd,WAAW,EACX,UAAU,EACV,WAAW,EACZ,MAAM,iBAAiB,CAAA;AAIxB,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAA;AAEnE,MAAM,MAAM,UAAU,GAAG;IACvB,OAAO,EAAO,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAM,YAAY,CAAA;IAC1B,iEAAiE;IACjE,QAAQ,CAAC,EAAK,MAAM,CAAA;IACpB,+EAA+E;IAC/E,SAAS,CAAC,EAAI,MAAM,IAAI,CAAA;IACxB;;OAEG;IACH,KAAK,CAAC,EAAQ,cAAc,CAAA;IAC5B;;;;;;OAMG;IACH,MAAM,CAAC,EAAO,OAAO,CAAC,WAAW,CAAC,CAAA;CACnC,CAAA;AAaD,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAgFtC,CAAA;AAoCD,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,CAAA;AAClC,YAAY,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ToastProps } from './';
|
|
2
|
+
type ShowOptions = Omit<ToastProps, 'onDismiss'>;
|
|
3
|
+
type ToastAPI = {
|
|
4
|
+
show: (options: ShowOptions) => number;
|
|
5
|
+
success: (message: string, description?: string) => number;
|
|
6
|
+
error: (message: string, description?: string) => number;
|
|
7
|
+
warning: (message: string, description?: string) => number;
|
|
8
|
+
info: (message: string, description?: string) => number;
|
|
9
|
+
dismiss: (id: number) => void;
|
|
10
|
+
dismissAll: () => void;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Declarative toast hook — requires a `PortalManager` ancestor.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* const toast = useToast()
|
|
18
|
+
*
|
|
19
|
+
* // Convenience shortcuts
|
|
20
|
+
* toast.success('Profile saved')
|
|
21
|
+
* toast.error('Upload failed', 'Max file size is 5 MB')
|
|
22
|
+
*
|
|
23
|
+
* // Full control
|
|
24
|
+
* const id = toast.show({ message: 'Processing…', duration: 0, variant: 'info' })
|
|
25
|
+
* // Later:
|
|
26
|
+
* toast.dismiss(id)
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export declare function useToast(): ToastAPI;
|
|
30
|
+
export {};
|
|
31
|
+
//# sourceMappingURL=useToast.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useToast.d.ts","sourceRoot":"","sources":["../../../src/toast/useToast.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAS,UAAU,EAAgB,MAAM,IAAI,CAAA;AAIpD,KAAK,WAAW,GAAG,IAAI,CAAC,UAAU,EAAE,WAAW,CAAC,CAAA;AAEhD,KAAK,QAAQ,GAAG;IACd,IAAI,EAAK,CAAC,OAAO,EAAE,WAAW,KAAK,MAAM,CAAA;IACzC,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,KAAK,MAAM,CAAA;IAC1D,KAAK,EAAI,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,KAAK,MAAM,CAAA;IAC1D,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,KAAK,MAAM,CAAA;IAC1D,IAAI,EAAK,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,KAAK,MAAM,CAAA;IAC1D,OAAO,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IAC7B,UAAU,EAAE,MAAM,IAAI,CAAA;CACvB,CAAA;AAID;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,QAAQ,IAAI,QAAQ,CAsDnC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a reusable icon component with standardised size, color, and strokeWidth props.
|
|
4
|
+
*
|
|
5
|
+
* @template P - Additional props passed through to the underlying Svg element
|
|
6
|
+
*
|
|
7
|
+
* @param {IconRenderer<P>} renderer - A render function that receives resolved icon props
|
|
8
|
+
* and any extra SVG props, and returns a React element containing the Svg markup.
|
|
9
|
+
*
|
|
10
|
+
* @returns {React.FC<IconProps & P>} A React functional component that accepts:
|
|
11
|
+
* - `size` {number} Width and height in dp. Default: `24`
|
|
12
|
+
* - `color` {string} Stroke (and optional fill) color. Default: `"currentColor"`
|
|
13
|
+
* - `strokeWidth` {number} Stroke thickness in SVG units. Default: `1.5`
|
|
14
|
+
* - `...props` {P} Any additional props forwarded to the Svg element
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* const BackArrow = createIcon(({ size, color, strokeWidth }, props) => (
|
|
18
|
+
* <Svg width={size} height={size} viewBox="0 0 24 24" {...props}>
|
|
19
|
+
* <Path d="M19 12H5" stroke={color} strokeWidth={strokeWidth} strokeLinecap="round" fill="none" />
|
|
20
|
+
* <Path d="M12 19l-7-7 7-7" stroke={color} strokeWidth={strokeWidth} strokeLinecap="round" strokeLinejoin="round" fill="none" />
|
|
21
|
+
* </Svg>
|
|
22
|
+
* ))
|
|
23
|
+
*
|
|
24
|
+
* // Usage
|
|
25
|
+
* <BackArrow size={20} color={theme.text} strokeWidth={2} />
|
|
26
|
+
*/
|
|
27
|
+
type IconProps = {
|
|
28
|
+
size?: number;
|
|
29
|
+
color?: string;
|
|
30
|
+
strokeWidth?: number;
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
};
|
|
33
|
+
type IconRenderer = (props: IconProps, svgProps: any) => React.ReactElement;
|
|
34
|
+
export declare function createIcon(renderer: IconRenderer): {
|
|
35
|
+
({ size, color, strokeWidth, ...props }: IconProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
36
|
+
displayName: string;
|
|
37
|
+
};
|
|
38
|
+
export {};
|
|
39
|
+
//# sourceMappingURL=createIcon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createIcon.d.ts","sourceRoot":"","sources":["../../../src/utiles/createIcon.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,KAAK,SAAS,GAAG;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CACnB,CAAA;AAED,KAAK,YAAY,GAAG,CAAC,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,KAAK,CAAC,YAAY,CAAA;AAE3E,wBAAgB,UAAU,CAAC,QAAQ,EAAE,YAAY;6CACmC,SAAS;;EAK5F"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export namespace fontStyles {
|
|
2
|
+
let crimson_text_bold: string | undefined;
|
|
3
|
+
let crimson_text_italic: string | undefined;
|
|
4
|
+
let crimson_text_regular: string | undefined;
|
|
5
|
+
let Roboto_Regular: string | undefined;
|
|
6
|
+
let Roboto_Italic: string | undefined;
|
|
7
|
+
let Roboto_Bold: string | undefined;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=fontStyles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fontStyles.d.ts","sourceRoot":"","sources":["../../../src/utiles/fontStyles.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ViewStyle } from 'react-native';
|
|
2
|
+
import type { Offset, Position } from '../portal/types';
|
|
3
|
+
/**
|
|
4
|
+
* Returns absolute-position styles that anchor a portal element at the
|
|
5
|
+
* requested screen position, with an optional pixel offset applied on top.
|
|
6
|
+
*
|
|
7
|
+
* ⚠️ The `'center'` variant uses a negative-50 translate trick that works
|
|
8
|
+
* well for modals/toasts but assumes the content has a known or bounded
|
|
9
|
+
* size. For content of variable width/height, prefer wrapping in a
|
|
10
|
+
* container that measures itself and passes explicit offsets instead.
|
|
11
|
+
*/
|
|
12
|
+
export declare function getPositionStyles(position?: Position, offset?: Offset): ViewStyle;
|
|
13
|
+
//# sourceMappingURL=position.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"position.d.ts","sourceRoot":"","sources":["../../../src/utiles/position.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAC7C,OAAO,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAIvD;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAC/B,QAAQ,GAAE,QAAmB,EAC7B,MAAM,GAAE,MAAuB,GAC9B,SAAS,CAkFX"}
|