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,82 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ActionSheetProps } from './actionSheet';
|
|
3
|
+
/** All props except `onDismiss` — the hook wires that up internally. */
|
|
4
|
+
export type ShowActionSheetOptions = Omit<ActionSheetProps, 'onDismiss'>;
|
|
5
|
+
export type ActionSheetAPI = {
|
|
6
|
+
/**
|
|
7
|
+
* Shows a fully custom action sheet. Returns the portal id.
|
|
8
|
+
*
|
|
9
|
+
* Pass `items`, `children`, or both.
|
|
10
|
+
* - `items` renders a standard list of tappable rows.
|
|
11
|
+
* - `children` renders arbitrary JSX above the items (pickers, previews, forms).
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* actionSheet.show({
|
|
16
|
+
* title: 'Share photo',
|
|
17
|
+
* items: [
|
|
18
|
+
* { icon: '📋', label: 'Copy link', onPress: copyLink },
|
|
19
|
+
* { icon: '✉️', label: 'Send via email', onPress: shareEmail },
|
|
20
|
+
* { icon: '🗑️', label: 'Delete photo', variant: 'destructive', onPress: deletePhoto },
|
|
21
|
+
* ],
|
|
22
|
+
* })
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
show: (options: ShowActionSheetOptions) => number;
|
|
26
|
+
/**
|
|
27
|
+
* Shows an action sheet whose entire body is the `children` you pass in.
|
|
28
|
+
* Useful for custom pickers, colour swatches, rating selectors, etc.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```tsx
|
|
32
|
+
* actionSheet.present(
|
|
33
|
+
* <MyDatePicker onChange={setDate} />,
|
|
34
|
+
* { title: 'Pick a date' },
|
|
35
|
+
* )
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
present: (children: React.ReactNode, options?: Omit<ShowActionSheetOptions, 'children'>) => number;
|
|
39
|
+
/**
|
|
40
|
+
* Immediately removes the action sheet (skips exit animation).
|
|
41
|
+
* In most cases you don't need this — the sheet dismisses itself after
|
|
42
|
+
* any item is tapped or Cancel is pressed.
|
|
43
|
+
*/
|
|
44
|
+
dismiss: (id: number) => void;
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Declarative action sheet hook.
|
|
48
|
+
* Requires a `PortalManager` ancestor.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```tsx
|
|
52
|
+
* const actionSheet = useActionSheet()
|
|
53
|
+
*
|
|
54
|
+
* // ── Items-only sheet ──────────────────────────────────────────────────
|
|
55
|
+
* actionSheet.show({
|
|
56
|
+
* title: 'Post options',
|
|
57
|
+
* items: [
|
|
58
|
+
* { icon: '✏️', label: 'Edit', onPress: onEdit },
|
|
59
|
+
* { icon: '🔗', label: 'Copy link', onPress: onCopy },
|
|
60
|
+
* { icon: '🚩', label: 'Report', variant: 'destructive', onPress: onReport },
|
|
61
|
+
* { icon: '🔒', label: 'Premium only', variant: 'disabled' },
|
|
62
|
+
* ],
|
|
63
|
+
* })
|
|
64
|
+
*
|
|
65
|
+
* // ── Children-only sheet ───────────────────────────────────────────────
|
|
66
|
+
* actionSheet.present(
|
|
67
|
+
* <EmojiPicker onSelect={emoji => { setEmoji(emoji) }} />,
|
|
68
|
+
* { title: 'Choose reaction' },
|
|
69
|
+
* )
|
|
70
|
+
*
|
|
71
|
+
* // ── Mixed sheet ───────────────────────────────────────────────────────
|
|
72
|
+
* actionSheet.show({
|
|
73
|
+
* title: 'Choose a colour',
|
|
74
|
+
* children: <ColourSwatchRow onSelect={setColour} />,
|
|
75
|
+
* items: [
|
|
76
|
+
* { label: 'Reset to default', onPress: resetColour },
|
|
77
|
+
* ],
|
|
78
|
+
* })
|
|
79
|
+
* ```
|
|
80
|
+
*/
|
|
81
|
+
export declare function useActionSheet(): ActionSheetAPI;
|
|
82
|
+
//# sourceMappingURL=useActionSheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useActionSheet.d.ts","sourceRoot":"","sources":["../../../src/actionSheet/useActionSheet.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAe,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAI7D,wEAAwE;AACxE,MAAM,MAAM,sBAAsB,GAAG,IAAI,CAAC,gBAAgB,EAAE,WAAW,CAAC,CAAA;AAExE,MAAM,MAAM,cAAc,GAAG;IAC3B;;;;;;;;;;;;;;;;;;OAkBG;IACH,IAAI,EAAE,CAAC,OAAO,EAAE,sBAAsB,KAAK,MAAM,CAAA;IAEjD;;;;;;;;;;;OAWG;IACH,OAAO,EAAE,CACP,QAAQ,EAAE,KAAK,CAAC,SAAS,EACzB,OAAO,CAAC,EAAE,IAAI,CAAC,sBAAsB,EAAE,UAAU,CAAC,KAC/C,MAAM,CAAA;IAEX;;;;OAIG;IACH,OAAO,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;CAC9B,CAAA;AAID;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,cAAc,IAAI,cAAc,CA6C/C"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { TextProps, TextStyle } from "react-native";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
type TextVariants = {
|
|
4
|
+
fontSize?: number;
|
|
5
|
+
fontWeight?: number | string;
|
|
6
|
+
color?: string;
|
|
7
|
+
textDecorationLine?: string;
|
|
8
|
+
textAlign?: string;
|
|
9
|
+
fontFamily?: string;
|
|
10
|
+
link?: boolean;
|
|
11
|
+
autoWidth?: boolean;
|
|
12
|
+
};
|
|
13
|
+
type StyledBadgeProps = TextVariants & TextProps & TextStyle;
|
|
14
|
+
declare const StyledBadge: import("react").ForwardRefExoticComponent<TextVariants & TextProps & TextStyle & import("react").RefAttributes<any>>;
|
|
15
|
+
interface BadgeWithIconProps extends StyledBadgeProps {
|
|
16
|
+
title: string;
|
|
17
|
+
iconLeft?: ReactNode;
|
|
18
|
+
iconRight?: ReactNode;
|
|
19
|
+
}
|
|
20
|
+
declare const BadgeWithIcon: import("react").ForwardRefExoticComponent<BadgeWithIconProps & import("react").RefAttributes<any>>;
|
|
21
|
+
interface BadgeIconProps extends StyledBadgeProps {
|
|
22
|
+
char?: string;
|
|
23
|
+
icon?: ReactNode;
|
|
24
|
+
top?: number;
|
|
25
|
+
right?: number;
|
|
26
|
+
bottom?: number;
|
|
27
|
+
left?: number;
|
|
28
|
+
size?: number;
|
|
29
|
+
}
|
|
30
|
+
declare const BadgeIcon: import("react").ForwardRefExoticComponent<BadgeIconProps & import("react").RefAttributes<any>>;
|
|
31
|
+
export { BadgeIcon };
|
|
32
|
+
export type { BadgeIconProps };
|
|
33
|
+
export { BadgeWithIcon };
|
|
34
|
+
export type { BadgeWithIconProps };
|
|
35
|
+
export { StyledBadge };
|
|
36
|
+
export type { StyledBadgeProps };
|
|
37
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/badge/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG1D,OAAO,EAAc,SAAS,EAAc,MAAM,OAAO,CAAC;AAG1D,KAAK,YAAY,GAAG;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,KAAK,gBAAgB,GAAG,YAAY,GAAG,SAAS,GAAG,SAAS,CAAC;AAE7D,QAAA,MAAM,WAAW,sHA2Cf,CAAC;AAEH,UAAU,kBAAmB,SAAQ,gBAAgB;IACnD,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB;AAED,QAAA,MAAM,aAAa,oGA4CjB,CAAC;AAEH,UAAU,cAAe,SAAQ,gBAAgB;IAC/C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,QAAA,MAAM,SAAS,gGAiDd,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,CAAC;AACrB,YAAY,EAAE,cAAc,EAAE,CAAC;AAE/B,OAAO,EAAE,aAAa,EAAE,CAAC;AACzB,YAAY,EAAE,kBAAkB,EAAE,CAAC;AAEnC,OAAO,EAAE,WAAW,EAAE,CAAC;AACvB,YAAY,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface StyledBarDatum {
|
|
3
|
+
/** X-axis label shown below the bar */
|
|
4
|
+
label: string;
|
|
5
|
+
/**
|
|
6
|
+
* Numeric value for this bar.
|
|
7
|
+
* Pass `null` or `undefined` to render a short placeholder (grey, hatched).
|
|
8
|
+
*/
|
|
9
|
+
value?: number | null;
|
|
10
|
+
/** Mark this bar as the highlighted/active bar */
|
|
11
|
+
active?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface StyledBarColors {
|
|
14
|
+
/** Fill of inactive bars. Default: palettes.gray[200] */
|
|
15
|
+
inactiveBar?: string;
|
|
16
|
+
/** Hatch line colour on inactive bars. Default: rgba(0,0,0,0.07) */
|
|
17
|
+
hatchLine?: string;
|
|
18
|
+
/** Gradient top colour for the active bar. Default: '#d4f53c' */
|
|
19
|
+
activeTop?: string;
|
|
20
|
+
/** Gradient bottom colour for the active bar. Default: '#a8c820' */
|
|
21
|
+
activeBottom?: string;
|
|
22
|
+
/** Tooltip background. Default: theme.colors.gray[900] */
|
|
23
|
+
tooltipBg?: string;
|
|
24
|
+
/** Tooltip text colour. Default: palettes.white */
|
|
25
|
+
tooltipText?: string;
|
|
26
|
+
/** Active label colour. Default: theme.colors.gray[900] */
|
|
27
|
+
activeLabelColor?: string;
|
|
28
|
+
/** Inactive label colour. Default: theme.colors.gray[400] */
|
|
29
|
+
inactiveLabelColor?: string;
|
|
30
|
+
}
|
|
31
|
+
export interface StyledBarProps {
|
|
32
|
+
/** Array of data points to render */
|
|
33
|
+
data: StyledBarDatum[];
|
|
34
|
+
/**
|
|
35
|
+
* Maximum value used to scale bar heights.
|
|
36
|
+
* Defaults to the max value found in `data`.
|
|
37
|
+
*/
|
|
38
|
+
maxValue?: number;
|
|
39
|
+
/**
|
|
40
|
+
* Explicit pixel width for the chart SVG.
|
|
41
|
+
*
|
|
42
|
+
* ⚠️ IMPORTANT — account for your container's horizontal padding:
|
|
43
|
+
* - Inside a card with padding={20}: width = screenWidth - outerPad*2 - cardPad*2
|
|
44
|
+
* - Leave undefined to use the `containerPaddingHorizontal` auto-calculation.
|
|
45
|
+
*/
|
|
46
|
+
width?: number;
|
|
47
|
+
/**
|
|
48
|
+
* Total horizontal padding of ALL ancestor containers combined (both sides).
|
|
49
|
+
* Used only when `width` is not provided.
|
|
50
|
+
*
|
|
51
|
+
* Example: screen paddingHorizontal=20 + card padding=20 → containerPaddingHorizontal=80
|
|
52
|
+
*
|
|
53
|
+
* Default: 80 (assumes 20px screen padding + 20px card padding on each side)
|
|
54
|
+
*/
|
|
55
|
+
containerPaddingHorizontal?: number;
|
|
56
|
+
/** Height of the bar plot area (excluding labels). Default: 180 */
|
|
57
|
+
height?: number;
|
|
58
|
+
/** Fraction of the slot width occupied by each bar (0–1). Default: 0.62 */
|
|
59
|
+
barWidthRatio?: number;
|
|
60
|
+
/** Space reserved at the bottom for day labels. Default: 28 */
|
|
61
|
+
labelHeight?: number;
|
|
62
|
+
/** Whether to show diagonal hatch lines on inactive bars. Default: true */
|
|
63
|
+
showHatch?: boolean;
|
|
64
|
+
/** Spacing between hatch lines in px. Default: 8 */
|
|
65
|
+
hatchSpacing?: number;
|
|
66
|
+
/**
|
|
67
|
+
* Override the tooltip text entirely.
|
|
68
|
+
* Leave undefined to auto-generate from the active bar's value + unit.
|
|
69
|
+
*/
|
|
70
|
+
tooltipLabel?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Unit string appended after the value in the auto tooltip.
|
|
73
|
+
* e.g. 'min', 'kg', '°C', 'mL'. Default: ''
|
|
74
|
+
*/
|
|
75
|
+
unit?: string;
|
|
76
|
+
/** Colour overrides — all optional, merged over the default lime theme */
|
|
77
|
+
colors?: StyledBarColors;
|
|
78
|
+
/**
|
|
79
|
+
* Animate bars growing up from zero on mount. Default: true
|
|
80
|
+
*/
|
|
81
|
+
animated?: boolean;
|
|
82
|
+
/** Animation duration in ms. Default: 600 */
|
|
83
|
+
animationDuration?: number;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* StyledBar — production-ready animated bar chart for fluent-styles apps.
|
|
87
|
+
*
|
|
88
|
+
* @example Basic (workout, lime theme)
|
|
89
|
+
* ```tsx
|
|
90
|
+
* <StyledBar
|
|
91
|
+
* data={[
|
|
92
|
+
* { label: 'Mon', value: 45 },
|
|
93
|
+
* { label: 'Tue', value: 70, active: true },
|
|
94
|
+
* { label: 'Wed', value: 55 },
|
|
95
|
+
* ]}
|
|
96
|
+
* unit="min"
|
|
97
|
+
* />
|
|
98
|
+
* ```
|
|
99
|
+
*
|
|
100
|
+
* @example Inside a StyledCard with padding={20}, screen padding=20
|
|
101
|
+
* ```tsx
|
|
102
|
+
* // containerPaddingHorizontal = (screenPad + cardPad) * 2 = (20+20)*2 = 80
|
|
103
|
+
* <StyledCard padding={20}>
|
|
104
|
+
* <StyledBar data={data} unit="kg" containerPaddingHorizontal={80} />
|
|
105
|
+
* </StyledCard>
|
|
106
|
+
* ```
|
|
107
|
+
*
|
|
108
|
+
* @example Blue water theme
|
|
109
|
+
* ```tsx
|
|
110
|
+
* <StyledBar
|
|
111
|
+
* data={waterData}
|
|
112
|
+
* unit="mL"
|
|
113
|
+
* maxValue={3000}
|
|
114
|
+
* colors={{
|
|
115
|
+
* activeTop: palettes.blue[400],
|
|
116
|
+
* activeBottom: palettes.blue[600],
|
|
117
|
+
* tooltipBg: palettes.blue[900],
|
|
118
|
+
* inactiveBar: palettes.blue[100],
|
|
119
|
+
* }}
|
|
120
|
+
* />
|
|
121
|
+
* ```
|
|
122
|
+
*/
|
|
123
|
+
export declare const StyledBar: React.FC<StyledBarProps>;
|
|
124
|
+
export default StyledBar;
|
|
125
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/barChart/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAiB3D,MAAM,WAAW,cAAc;IAC7B,uCAAuC;IACvC,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,kDAAkD;IAClD,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,yDAAyD;IACzD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oEAAoE;IACpE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iEAAiE;IACjE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oEAAoE;IACpE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,0DAA0D;IAC1D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mDAAmD;IACnD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2DAA2D;IAC3D,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,6DAA6D;IAC7D,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,cAAc;IAC7B,qCAAqC;IACrC,IAAI,EAAE,cAAc,EAAE,CAAC;IAEvB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;;;;OAOG;IACH,0BAA0B,CAAC,EAAE,MAAM,CAAC;IAEpC,mEAAmE;IACnE,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,2EAA2E;IAC3E,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,+DAA+D;IAC/D,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,2EAA2E;IAC3E,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,oDAAoD;IACpD,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,0EAA0E;IAC1E,MAAM,CAAC,EAAE,eAAe,CAAC;IAEzB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,6CAA6C;IAC7C,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAgGD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAuI9C,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TouchableOpacityProps } from 'react-native';
|
|
3
|
+
import { ViewStyle } from '../utiles/viewStyleProps';
|
|
4
|
+
import { viewStyleStringVariants } from '../utiles/viewStyleVariants';
|
|
5
|
+
import { StyledText } from '../text';
|
|
6
|
+
type ButtonVariants = {
|
|
7
|
+
/** Solid filled — cyan background. */
|
|
8
|
+
primary?: boolean;
|
|
9
|
+
/** Solid filled — indigo background. */
|
|
10
|
+
secondary?: boolean;
|
|
11
|
+
/** White background, dark border. */
|
|
12
|
+
outline?: boolean;
|
|
13
|
+
/** Transparent, no border, label only. */
|
|
14
|
+
ghost?: boolean;
|
|
15
|
+
/** Transparent, no padding, inline text link. */
|
|
16
|
+
link?: boolean;
|
|
17
|
+
/** Danger / destructive action — red fill. */
|
|
18
|
+
danger?: boolean;
|
|
19
|
+
/** Success action — green fill. */
|
|
20
|
+
success?: boolean;
|
|
21
|
+
/** Warning — amber fill. */
|
|
22
|
+
warning?: boolean;
|
|
23
|
+
/** White card surface, top + side borders, no bottom (for dropdowns). */
|
|
24
|
+
dropdown?: boolean;
|
|
25
|
+
/** Greyed-out, non-interactive. */
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
/** Fully circular pill (default). */
|
|
28
|
+
pill?: boolean;
|
|
29
|
+
/** Slightly rounded rectangle. */
|
|
30
|
+
rounded?: boolean;
|
|
31
|
+
/** No border radius — sharp corners. */
|
|
32
|
+
square?: boolean;
|
|
33
|
+
xs?: boolean;
|
|
34
|
+
sm?: boolean;
|
|
35
|
+
md?: boolean;
|
|
36
|
+
lg?: boolean;
|
|
37
|
+
xl?: boolean;
|
|
38
|
+
/** Button shrinks to fit its content instead of flex: 1. */
|
|
39
|
+
compact?: boolean;
|
|
40
|
+
/** Full-width block button. */
|
|
41
|
+
block?: boolean;
|
|
42
|
+
/** Icon-only circular button. */
|
|
43
|
+
icon?: boolean;
|
|
44
|
+
} & typeof viewStyleStringVariants;
|
|
45
|
+
type ButtonProps = {
|
|
46
|
+
variant?: ButtonVariants;
|
|
47
|
+
} & TouchableOpacityProps & ViewStyle;
|
|
48
|
+
export interface StyledButtonProps extends ButtonProps {
|
|
49
|
+
children?: React.ReactNode;
|
|
50
|
+
primary?: boolean;
|
|
51
|
+
secondary?: boolean;
|
|
52
|
+
outline?: boolean;
|
|
53
|
+
ghost?: boolean;
|
|
54
|
+
link?: boolean;
|
|
55
|
+
danger?: boolean;
|
|
56
|
+
success?: boolean;
|
|
57
|
+
warning?: boolean;
|
|
58
|
+
dropdown?: boolean;
|
|
59
|
+
disabled?: boolean;
|
|
60
|
+
pill?: boolean;
|
|
61
|
+
rounded?: boolean;
|
|
62
|
+
square?: boolean;
|
|
63
|
+
xs?: boolean;
|
|
64
|
+
sm?: boolean;
|
|
65
|
+
md?: boolean;
|
|
66
|
+
lg?: boolean;
|
|
67
|
+
xl?: boolean;
|
|
68
|
+
compact?: boolean;
|
|
69
|
+
block?: boolean;
|
|
70
|
+
icon?: boolean;
|
|
71
|
+
/** Show an activity-indicator spinner and block presses. */
|
|
72
|
+
loading?: boolean;
|
|
73
|
+
/** Icon element rendered before the label. */
|
|
74
|
+
leftIcon?: React.ReactNode;
|
|
75
|
+
/** Icon element rendered after the label. */
|
|
76
|
+
rightIcon?: React.ReactNode;
|
|
77
|
+
}
|
|
78
|
+
interface RefExoticComponent extends React.ForwardRefExoticComponent<StyledButtonProps & React.RefAttributes<React.ComponentRef<typeof ButtonBase>>> {
|
|
79
|
+
Text: typeof StyledText;
|
|
80
|
+
}
|
|
81
|
+
declare const ButtonBase: React.ForwardRefExoticComponent<{
|
|
82
|
+
variant?: ButtonVariants | undefined;
|
|
83
|
+
} & TouchableOpacityProps & ViewStyle & React.RefAttributes<any>>;
|
|
84
|
+
declare const StyledButton: RefExoticComponent;
|
|
85
|
+
export { StyledButton };
|
|
86
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/button/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAEL,qBAAqB,EAEtB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,uBAAuB,EAAqB,MAAM,6BAA6B,CAAC;AACzF,OAAO,EAAE,UAAU,EAAE,MAAmB,SAAS,CAAC;AAKlD,KAAK,cAAc,GAAG;IAEpB,sCAAsC;IACtC,OAAO,CAAC,EAAI,OAAO,CAAA;IACnB,wCAAwC;IACxC,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,qCAAqC;IACrC,OAAO,CAAC,EAAI,OAAO,CAAA;IACnB,0CAA0C;IAC1C,KAAK,CAAC,EAAM,OAAO,CAAA;IACnB,iDAAiD;IACjD,IAAI,CAAC,EAAO,OAAO,CAAA;IACnB,8CAA8C;IAC9C,MAAM,CAAC,EAAK,OAAO,CAAA;IACnB,mCAAmC;IACnC,OAAO,CAAC,EAAI,OAAO,CAAA;IACnB,4BAA4B;IAC5B,OAAO,CAAC,EAAI,OAAO,CAAA;IACnB,yEAAyE;IACzE,QAAQ,CAAC,EAAG,OAAO,CAAA;IACnB,mCAAmC;IACnC,QAAQ,CAAC,EAAG,OAAO,CAAA;IAEnB,qCAAqC;IACrC,IAAI,CAAC,EAAO,OAAO,CAAA;IACnB,kCAAkC;IAClC,OAAO,CAAC,EAAI,OAAO,CAAA;IACnB,wCAAwC;IACxC,MAAM,CAAC,EAAK,OAAO,CAAA;IAEnB,EAAE,CAAC,EAAS,OAAO,CAAA;IACnB,EAAE,CAAC,EAAS,OAAO,CAAA;IACnB,EAAE,CAAC,EAAS,OAAO,CAAA;IACnB,EAAE,CAAC,EAAS,OAAO,CAAA;IACnB,EAAE,CAAC,EAAS,OAAO,CAAA;IAEnB,4DAA4D;IAC5D,OAAO,CAAC,EAAI,OAAO,CAAA;IACnB,+BAA+B;IAC/B,KAAK,CAAC,EAAM,OAAO,CAAA;IACnB,iCAAiC;IACjC,IAAI,CAAC,EAAO,OAAO,CAAA;CACpB,GAAG,OAAO,uBAAuB,CAAA;AAElC,KAAK,WAAW,GAAG;IAAE,OAAO,CAAC,EAAE,cAAc,CAAA;CAAE,GAAG,qBAAqB,GAAG,SAAS,CAAA;AAEnF,MAAM,WAAW,iBAAkB,SAAQ,WAAW;IACpD,QAAQ,CAAC,EAAI,KAAK,CAAC,SAAS,CAAA;IAE5B,OAAO,CAAC,EAAK,OAAO,CAAA;IACpB,SAAS,CAAC,EAAG,OAAO,CAAA;IACpB,OAAO,CAAC,EAAK,OAAO,CAAA;IACpB,KAAK,CAAC,EAAO,OAAO,CAAA;IACpB,IAAI,CAAC,EAAQ,OAAO,CAAA;IACpB,MAAM,CAAC,EAAM,OAAO,CAAA;IACpB,OAAO,CAAC,EAAK,OAAO,CAAA;IACpB,OAAO,CAAC,EAAK,OAAO,CAAA;IACpB,QAAQ,CAAC,EAAI,OAAO,CAAA;IACpB,QAAQ,CAAC,EAAI,OAAO,CAAA;IACpB,IAAI,CAAC,EAAQ,OAAO,CAAA;IACpB,OAAO,CAAC,EAAK,OAAO,CAAA;IACpB,MAAM,CAAC,EAAM,OAAO,CAAA;IACpB,EAAE,CAAC,EAAU,OAAO,CAAA;IACpB,EAAE,CAAC,EAAU,OAAO,CAAA;IACpB,EAAE,CAAC,EAAU,OAAO,CAAA;IACpB,EAAE,CAAC,EAAU,OAAO,CAAA;IACpB,EAAE,CAAC,EAAU,OAAO,CAAA;IACpB,OAAO,CAAC,EAAK,OAAO,CAAA;IACpB,KAAK,CAAC,EAAO,OAAO,CAAA;IACpB,IAAI,CAAC,EAAQ,OAAO,CAAA;IAEpB,4DAA4D;IAC5D,OAAO,CAAC,EAAK,OAAO,CAAA;IACpB,8CAA8C;IAC9C,QAAQ,CAAC,EAAI,KAAK,CAAC,SAAS,CAAA;IAC5B,6CAA6C;IAC7C,SAAS,CAAC,EAAG,KAAK,CAAC,SAAS,CAAA;CAC7B;AAED,UAAU,kBACR,SAAQ,KAAK,CAAC,yBAAyB,CACrC,iBAAiB,GAAG,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,YAAY,CAAC,OAAO,UAAU,CAAC,CAAC,CAC/E;IACD,IAAI,EAAE,OAAO,UAAU,CAAA;CACxB;AAID,QAAA,MAAM,UAAU;;iEAqLd,CAAC;AAgDH,QAAA,MAAM,YAAY,oBAA+B,CAAA;AAGjD,OAAO,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { PressableProps, ViewProps, ViewStyle } from 'react-native';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { StackProps } from '../stack';
|
|
4
|
+
import { StyledImageBackgroundProps } from '../image';
|
|
5
|
+
declare const shadow: {
|
|
6
|
+
light: ViewStyle;
|
|
7
|
+
lightMedium: ViewStyle;
|
|
8
|
+
medium: ViewStyle;
|
|
9
|
+
mediumDark: ViewStyle;
|
|
10
|
+
dark: ViewStyle;
|
|
11
|
+
veryDark: ViewStyle;
|
|
12
|
+
};
|
|
13
|
+
type ShadowLevel = keyof typeof shadow;
|
|
14
|
+
type CardVariants = {
|
|
15
|
+
shadow?: ShadowLevel;
|
|
16
|
+
};
|
|
17
|
+
type CardComponentProps = CardVariants & ViewProps & ViewStyle;
|
|
18
|
+
interface StyledCardProps extends CardComponentProps {
|
|
19
|
+
children?: React.ReactNode;
|
|
20
|
+
pressable?: boolean;
|
|
21
|
+
pressableProps?: Omit<PressableProps, 'children'>;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Base Card component with shadow support
|
|
25
|
+
* Flexible layout container with optional shadow variants
|
|
26
|
+
*/
|
|
27
|
+
declare const CardBase: React.ForwardRefExoticComponent<CardVariants & ViewProps & ViewStyle & React.RefAttributes<any>>;
|
|
28
|
+
interface HeaderProps extends StackProps {
|
|
29
|
+
children: React.ReactNode;
|
|
30
|
+
}
|
|
31
|
+
declare const StyledHeader: React.ForwardRefExoticComponent<HeaderProps & React.RefAttributes<any>>;
|
|
32
|
+
interface ImageProps extends StyledImageBackgroundProps {
|
|
33
|
+
children?: React.ReactNode;
|
|
34
|
+
}
|
|
35
|
+
declare const StyledImage: React.ForwardRefExoticComponent<ImageProps & React.RefAttributes<any>>;
|
|
36
|
+
interface ContentProps extends StackProps {
|
|
37
|
+
children: React.ReactNode;
|
|
38
|
+
}
|
|
39
|
+
declare const StyledContent: React.ForwardRefExoticComponent<ContentProps & React.RefAttributes<any>>;
|
|
40
|
+
interface FooterProps extends StackProps {
|
|
41
|
+
children: React.ReactNode;
|
|
42
|
+
}
|
|
43
|
+
declare const StyledFooter: React.ForwardRefExoticComponent<FooterProps & React.RefAttributes<any>>;
|
|
44
|
+
interface Card extends React.ForwardRefExoticComponent<StyledCardProps & React.RefAttributes<React.ComponentRef<typeof CardBase>>> {
|
|
45
|
+
Header: typeof StyledHeader;
|
|
46
|
+
Footer: typeof StyledFooter;
|
|
47
|
+
Image: typeof StyledImage;
|
|
48
|
+
Content: typeof StyledContent;
|
|
49
|
+
}
|
|
50
|
+
declare const StyledCard: Card;
|
|
51
|
+
export { StyledCard, StyledHeader, StyledContent, StyledFooter, shadow };
|
|
52
|
+
export type { CardVariants, CardComponentProps, StyledCardProps, ShadowLevel };
|
|
53
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/card/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAuB,cAAc,EAAQ,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE/F,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAS,UAAU,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAyB,0BAA0B,EAAE,MAAM,UAAU,CAAC;AAG7E,QAAA,MAAM,MAAM;;;;;;;CAmEX,CAAC;AAEF,KAAK,WAAW,GAAG,MAAM,OAAO,MAAM,CAAC;AAEvC,KAAK,YAAY,GAAG;IAClB,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB,CAAC;AAEF,KAAK,kBAAkB,GAAG,YAAY,GAAG,SAAS,GAAG,SAAS,CAAC;AAE/D,UAAU,eAAgB,SAAQ,kBAAkB;IAClD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;CACnD;AAED;;;GAGG;AACH,QAAA,MAAM,QAAQ,kGAgBZ,CAAC;AA+BH,UAAU,WAAY,SAAQ,UAAU;IACtC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,QAAA,MAAM,YAAY,yEAMhB,CAAC;AAIH,UAAU,UAAW,SAAQ,0BAA0B;IACrD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,QAAA,MAAM,WAAW,wEAMf,CAAC;AAIH,UAAU,YAAa,SAAQ,UAAU;IACvC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,QAAA,MAAM,aAAa,0EAMjB,CAAC;AAIH,UAAU,WAAY,SAAQ,UAAU;IACtC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,QAAA,MAAM,YAAY,yEAMhB,CAAC;AAKH,UAAU,IAAK,SAAQ,KAAK,CAAC,yBAAyB,CACpD,eAAe,GAAG,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,YAAY,CAAC,OAAO,QAAQ,CAAC,CAAC,CAC3E;IACC,MAAM,EAAE,OAAO,YAAY,CAAC;IAC5B,MAAM,EAAE,OAAO,YAAY,CAAC;IAC5B,KAAK,EAAE,OAAO,WAAW,CAAC;IAC1B,OAAO,EAAE,OAAO,aAAa,CAAC;CAC/B;AAED,QAAA,MAAM,UAAU,MAAwB,CAAC;AASzC,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,EAAE,CAAC;AACzE,YAAY,EAAE,YAAY,EAAE,kBAAkB,EAAE,eAAe,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { TouchableOpacityProps } from "react-native";
|
|
3
|
+
import { ViewStyleProps } from "../utiles/viewStyleProps";
|
|
4
|
+
type VariantProps = {
|
|
5
|
+
checked?: boolean;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
checkedColor?: string;
|
|
8
|
+
uncheckedColor?: string;
|
|
9
|
+
borderColor?: string;
|
|
10
|
+
checkMarkColor?: string;
|
|
11
|
+
size?: number;
|
|
12
|
+
};
|
|
13
|
+
type CheckBoxProps = VariantProps & ViewStyleProps & TouchableOpacityProps;
|
|
14
|
+
interface StyledCheckBoxProps extends CheckBoxProps {
|
|
15
|
+
checked?: boolean;
|
|
16
|
+
onCheck?: (checked: boolean) => void;
|
|
17
|
+
checkedColor?: string;
|
|
18
|
+
uncheckedColor?: string;
|
|
19
|
+
borderColor?: string;
|
|
20
|
+
checkMarkColor?: string;
|
|
21
|
+
size?: number;
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
iconProps?: any;
|
|
24
|
+
iconSize?: number;
|
|
25
|
+
}
|
|
26
|
+
declare const StyledCheckBox: React.ForwardRefExoticComponent<StyledCheckBoxProps & React.RefAttributes<any>>;
|
|
27
|
+
export { StyledCheckBox, type StyledCheckBoxProps };
|
|
28
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/checkBox/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAC/D,OAAO,EAEH,qBAAqB,EAExB,MAAM,cAAc,CAAC;AAItB,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAG1D,KAAK,YAAY,GAAG;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,KAAK,aAAa,GAAG,YAAY,GAAG,cAAc,GAAG,qBAAqB,CAAC;AAE3E,UAAU,mBAAoB,SAAQ,aAAa;IAE/C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAGrC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IAGxB,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,QAAQ,CAAC,EAAE,OAAO,CAAC;IAGnB,SAAS,CAAC,EAAE,GAAG,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAwCD,QAAA,MAAM,cAAc,iFAiDnB,CAAC;AAGF,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,CAAC"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* StyledChip.tsx
|
|
3
|
+
* ──────────────
|
|
4
|
+
* Reusable chip/tag component for fluent-styles apps.
|
|
5
|
+
*
|
|
6
|
+
* Variants:
|
|
7
|
+
* • outlined — border only, no fill
|
|
8
|
+
* • filled — solid background
|
|
9
|
+
* • smooth — soft pastel fill, no border
|
|
10
|
+
* • ingredient — neutral grey pill, toggleable selected state
|
|
11
|
+
* • likeable — heart icon left, pink border, toggleable liked state
|
|
12
|
+
* • icon — leading icon + label, optional filled active state
|
|
13
|
+
*/
|
|
14
|
+
import React from 'react';
|
|
15
|
+
export type ChipVariant = 'outlined' | 'filled' | 'smooth' | 'ingredient' | 'likeable' | 'icon';
|
|
16
|
+
export type ChipSize = 'sm' | 'md' | 'lg';
|
|
17
|
+
export interface StyledChipProps {
|
|
18
|
+
/** Text label displayed inside the chip */
|
|
19
|
+
label: string;
|
|
20
|
+
/** Visual style. Default: 'outlined' */
|
|
21
|
+
variant?: ChipVariant;
|
|
22
|
+
/** Size preset. Default: 'md' */
|
|
23
|
+
size?: ChipSize;
|
|
24
|
+
/**
|
|
25
|
+
* Controlled selected/active state.
|
|
26
|
+
* When provided the component is controlled; omit for uncontrolled.
|
|
27
|
+
*/
|
|
28
|
+
selected?: boolean;
|
|
29
|
+
/** Initial selected state for uncontrolled mode. Default: false */
|
|
30
|
+
defaultSelected?: boolean;
|
|
31
|
+
/** Called when the chip is pressed. Receives the new selected state. */
|
|
32
|
+
onPress?: (selected: boolean) => void;
|
|
33
|
+
/**
|
|
34
|
+
* Accent colour used for borders, text, and icon tints.
|
|
35
|
+
* Defaults per variant:
|
|
36
|
+
* outlined → theme.colors.gray[700]
|
|
37
|
+
* filled → palettes.white (text on filled bg)
|
|
38
|
+
* smooth → matches `bgColor` darkened automatically
|
|
39
|
+
* ingredient → theme.colors.gray[700]
|
|
40
|
+
* likeable → '#e91e8c'
|
|
41
|
+
* icon → theme.colors.gray[700]
|
|
42
|
+
*/
|
|
43
|
+
color?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Background colour.
|
|
46
|
+
* filled → required for the chip colour
|
|
47
|
+
* smooth → sets the pastel tint
|
|
48
|
+
* others → typically unused
|
|
49
|
+
*/
|
|
50
|
+
bgColor?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Leading icon element (any ReactNode — Feather icon, SVG, emoji text, etc.)
|
|
53
|
+
* Shown for 'icon' variant and optionally on others.
|
|
54
|
+
*/
|
|
55
|
+
icon?: React.ReactNode;
|
|
56
|
+
/** Show a checkmark when selected (outlined / smooth / ingredient). Default: true */
|
|
57
|
+
showCheck?: boolean;
|
|
58
|
+
/** Disabled state — mutes colours and disables press. Default: false */
|
|
59
|
+
disabled?: boolean;
|
|
60
|
+
/** Additional border radius override. Default per size. */
|
|
61
|
+
borderRadius?: number;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* StyledChip — multi-variant chip for fluent-styles apps.
|
|
65
|
+
*
|
|
66
|
+
* @example Outlined (uncontrolled, toggleable)
|
|
67
|
+
* ```tsx
|
|
68
|
+
* <StyledChip label="Hacktoberfest" variant="outlined" color="#4caf50" />
|
|
69
|
+
* ```
|
|
70
|
+
*
|
|
71
|
+
* @example Ingredient chip (selected)
|
|
72
|
+
* ```tsx
|
|
73
|
+
* <StyledChip label="Cinnamon" variant="ingredient" defaultSelected />
|
|
74
|
+
* ```
|
|
75
|
+
*
|
|
76
|
+
* @example Likeable chip (controlled)
|
|
77
|
+
* ```tsx
|
|
78
|
+
* <StyledChip
|
|
79
|
+
* label="Big Data"
|
|
80
|
+
* variant="likeable"
|
|
81
|
+
* selected={liked}
|
|
82
|
+
* onPress={(v) => setLiked(v)}
|
|
83
|
+
* />
|
|
84
|
+
* ```
|
|
85
|
+
*
|
|
86
|
+
* @example Icon chip (filled active)
|
|
87
|
+
* ```tsx
|
|
88
|
+
* <StyledChip
|
|
89
|
+
* label="Social Media"
|
|
90
|
+
* variant="icon"
|
|
91
|
+
* icon={<Icon name="refresh-cw" size={14} color="green" />}
|
|
92
|
+
* color="green"
|
|
93
|
+
* bgColor="#e8f5e9"
|
|
94
|
+
* />
|
|
95
|
+
* ```
|
|
96
|
+
*
|
|
97
|
+
* @example Filled chip
|
|
98
|
+
* ```tsx
|
|
99
|
+
* <StyledChip label="Taken" variant="filled" bgColor="#e91e8c" color="#fff" />
|
|
100
|
+
* ```
|
|
101
|
+
*/
|
|
102
|
+
export declare const StyledChip: React.FC<StyledChipProps>;
|
|
103
|
+
export default StyledChip;
|
|
104
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/chips/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAmB,MAAM,OAAO,CAAC;AAYxC,MAAM,MAAM,WAAW,GACnB,UAAU,GACV,QAAQ,GACR,QAAQ,GACR,YAAY,GACZ,UAAU,GACV,MAAM,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE1C,MAAM,WAAW,eAAe;IAC9B,2CAA2C;IAC3C,KAAK,EAAE,MAAM,CAAC;IAEd,wCAAwC;IACxC,OAAO,CAAC,EAAE,WAAW,CAAC;IAEtB,iCAAiC;IACjC,IAAI,CAAC,EAAE,QAAQ,CAAC;IAEhB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,mEAAmE;IACnE,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B,wEAAwE;IACxE,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAEtC;;;;;;;;;OASG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEvB,qFAAqF;IACrF,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,wEAAwE;IACxE,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,2DAA2D;IAC3D,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAmBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA4IhD,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type CircularProgressVariant = 'default' | 'ghost' | 'gradient' | 'dashboard';
|
|
3
|
+
export type CircularProgressSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
4
|
+
export type CircularProgressColors = {
|
|
5
|
+
arc: string;
|
|
6
|
+
track: string;
|
|
7
|
+
label: string;
|
|
8
|
+
sublabel: string;
|
|
9
|
+
gradientFrom: string;
|
|
10
|
+
gradientTo: string;
|
|
11
|
+
};
|
|
12
|
+
export interface StyledCircularProgressProps {
|
|
13
|
+
value: number;
|
|
14
|
+
total?: number;
|
|
15
|
+
display?: 'percent' | 'fraction' | 'value' | 'label' | 'none';
|
|
16
|
+
label?: string;
|
|
17
|
+
sublabel?: string;
|
|
18
|
+
variant?: CircularProgressVariant;
|
|
19
|
+
size?: CircularProgressSize;
|
|
20
|
+
diameter?: number;
|
|
21
|
+
strokeWidth?: number;
|
|
22
|
+
lineCap?: 'round' | 'butt' | 'square';
|
|
23
|
+
animated?: boolean;
|
|
24
|
+
duration?: number;
|
|
25
|
+
colors?: Partial<CircularProgressColors>;
|
|
26
|
+
/**
|
|
27
|
+
* Controls how built-in text is arranged.
|
|
28
|
+
* - 'stacked': display text first, then label / sublabel underneath
|
|
29
|
+
* - 'center': display text, label, and sublabel are centered inside the ring
|
|
30
|
+
* @default 'stacked'
|
|
31
|
+
*/
|
|
32
|
+
contentPosition?: 'center' | 'stacked';
|
|
33
|
+
children?: React.ReactNode;
|
|
34
|
+
}
|
|
35
|
+
export declare const StyledCircularProgress: React.FC<StyledCircularProgressProps>;
|
|
36
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/circularProgress/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAIN,MAAM,OAAO,CAAA;AAcd,MAAM,MAAM,uBAAuB,GAC/B,SAAS,GACT,OAAO,GACP,UAAU,GACV,WAAW,CAAA;AAEf,MAAM,MAAM,oBAAoB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AAEnE,MAAM,MAAM,sBAAsB,GAAG;IACnC,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,YAAY,EAAE,MAAM,CAAA;IACpB,UAAU,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,MAAM,WAAW,2BAA2B;IAC1C,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd,OAAO,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,CAAA;IAE7D,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB,OAAO,CAAC,EAAE,uBAAuB,CAAA;IACjC,IAAI,CAAC,EAAE,oBAAoB,CAAA;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAA;IAErC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB,MAAM,CAAC,EAAE,OAAO,CAAC,sBAAsB,CAAC,CAAA;IAExC;;;;;OAKG;IACH,eAAe,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;IAEtC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAwBD,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CA8PxE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Collapse.d.ts","sourceRoot":"","sources":["../../../src/collapsible/Collapse.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,MAAM,OAAO,CAAA;AAYd,OAAO,EAIL,KAAK,aAAa,EAEnB,MAAM,aAAa,CAAA;AAgFpB,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAmQrC,CAAA;AAED,OAAO,EAAE,QAAQ,EAAE,CAAA"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { CollapseGroupProps, CollapseItemProps, CollapseColors, CollapseVariant, CollapseSize } from './interface';
|
|
3
|
+
interface GroupCtx {
|
|
4
|
+
openKeys: Set<string>;
|
|
5
|
+
toggle: (key: string) => void;
|
|
6
|
+
inherited: {
|
|
7
|
+
variant?: CollapseVariant;
|
|
8
|
+
size?: CollapseSize;
|
|
9
|
+
bodyPadding?: boolean;
|
|
10
|
+
headerDivider?: boolean;
|
|
11
|
+
lazyRender?: boolean;
|
|
12
|
+
square?: boolean;
|
|
13
|
+
colors?: Partial<CollapseColors>;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
/** Access the parent CollapseGroup context from within a CollapseItem. */
|
|
17
|
+
export declare const useCollapseGroup: () => GroupCtx | null;
|
|
18
|
+
/**
|
|
19
|
+
* Manages open/close state across multiple `CollapseItem` children.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```tsx
|
|
23
|
+
* // Accordion — only one panel open at a time
|
|
24
|
+
* <CollapseGroup accordion defaultActiveKey="a" variant="card">
|
|
25
|
+
* <CollapseItem itemKey="a" title="Item A">…</CollapseItem>
|
|
26
|
+
* <CollapseItem itemKey="b" title="Item B">…</CollapseItem>
|
|
27
|
+
* </CollapseGroup>
|
|
28
|
+
*
|
|
29
|
+
* // Multi-open, controlled
|
|
30
|
+
* <CollapseGroup activeKey={openKeys} onChange={setOpenKeys}>
|
|
31
|
+
* <CollapseItem itemKey="x" title="X">…</CollapseItem>
|
|
32
|
+
* <CollapseItem itemKey="y" title="Y">…</CollapseItem>
|
|
33
|
+
* </CollapseGroup>
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
declare const CollapseGroup: React.FC<CollapseGroupProps>;
|
|
37
|
+
export { CollapseGroup };
|
|
38
|
+
/**
|
|
39
|
+
* A Collapse panel managed by a parent `CollapseGroup`.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```tsx
|
|
43
|
+
* <CollapseItem itemKey="shipping" title="Shipping" subtitle="2–5 days">
|
|
44
|
+
* <Text>We ship worldwide via FedEx…</Text>
|
|
45
|
+
* </CollapseItem>
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
export declare const CollapseItem: React.FC<CollapseItemProps>;
|
|
49
|
+
//# sourceMappingURL=CollapseGroup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CollapseGroup.d.ts","sourceRoot":"","sources":["../../../src/collapsible/CollapseGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAON,MAAM,OAAO,CAAA;AAId,OAAO,KAAK,EACV,kBAAkB,EAClB,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,YAAY,EACb,MAAM,aAAa,CAAA;AAIpB,UAAU,QAAQ;IAChB,QAAQ,EAAG,GAAG,CAAC,MAAM,CAAC,CAAA;IACtB,MAAM,EAAK,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;IAChC,SAAS,EAAE;QACT,OAAO,CAAC,EAAQ,eAAe,CAAA;QAC/B,IAAI,CAAC,EAAW,YAAY,CAAA;QAC5B,WAAW,CAAC,EAAI,OAAO,CAAA;QACvB,aAAa,CAAC,EAAE,OAAO,CAAA;QACvB,UAAU,CAAC,EAAK,OAAO,CAAA;QACvB,MAAM,CAAC,EAAS,OAAO,CAAA;QACvB,MAAM,CAAC,EAAS,OAAO,CAAC,cAAc,CAAC,CAAA;KACxC,CAAA;CACF;AAID,0EAA0E;AAC1E,eAAO,MAAM,gBAAgB,uBAAiC,CAAA;AAW9D;;;;;;;;;;;;;;;;;GAiBG;AACH,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAuD/C,CAAA;AAED,OAAO,EAAE,aAAa,EAAE,CAAA;AAIxB;;;;;;;;;GASG;AACH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAsBpD,CAAA"}
|