@campxdev/react-native-blueprint 0.1.8 → 0.1.11
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 +188 -89
- package/lib/commonjs/app/_layout.js +34 -0
- package/lib/commonjs/app/_layout.js.map +1 -0
- package/lib/commonjs/assets/icons/weather_icons/drizzle.png +0 -0
- package/lib/commonjs/assets/icons/weather_icons/foggy.png +0 -0
- package/lib/commonjs/assets/icons/weather_icons/freezing_rain.png +0 -0
- package/lib/commonjs/assets/icons/weather_icons/partly_cloudy.png +0 -0
- package/lib/commonjs/assets/icons/weather_icons/rainy.png +0 -0
- package/lib/commonjs/assets/icons/weather_icons/showers.png +0 -0
- package/lib/commonjs/assets/icons/weather_icons/sunny_weather.png +0 -0
- package/lib/commonjs/assets/icons/weather_icons/thunderstorm.png +0 -0
- package/lib/commonjs/assets/icons/weather_icons/thunderstorm_hail.png +0 -0
- package/lib/commonjs/components/theme-config.js +274 -0
- package/lib/commonjs/components/theme-config.js.map +1 -0
- package/lib/commonjs/components/ui/Accordion.js +235 -0
- package/lib/commonjs/components/ui/Accordion.js.map +1 -0
- package/lib/commonjs/components/ui/Alert-Dialog.js +280 -0
- package/lib/commonjs/components/ui/Alert-Dialog.js.map +1 -0
- package/lib/commonjs/components/ui/Alert.js +113 -0
- package/lib/commonjs/components/ui/Alert.js.map +1 -0
- package/lib/commonjs/components/ui/AppBar.js +407 -0
- package/lib/commonjs/components/ui/AppBar.js.map +1 -0
- package/lib/commonjs/components/ui/Aspect-Ratio.js +30 -0
- package/lib/commonjs/components/ui/Aspect-Ratio.js.map +1 -0
- package/lib/commonjs/components/ui/Avatar.js +101 -0
- package/lib/commonjs/components/ui/Avatar.js.map +1 -0
- package/lib/commonjs/components/ui/Badge.js +131 -0
- package/lib/commonjs/components/ui/Badge.js.map +1 -0
- package/lib/commonjs/components/ui/Bottom-Sheet.js +156 -0
- package/lib/commonjs/components/ui/Bottom-Sheet.js.map +1 -0
- package/lib/commonjs/components/ui/Button.js +92 -0
- package/lib/commonjs/components/ui/Button.js.map +1 -0
- package/lib/commonjs/components/ui/Card.js +180 -0
- package/lib/commonjs/components/ui/Card.js.map +1 -0
- package/lib/commonjs/components/ui/Checkbox.js +69 -0
- package/lib/commonjs/components/ui/Checkbox.js.map +1 -0
- package/lib/commonjs/components/ui/Collapsible.js +45 -0
- package/lib/commonjs/components/ui/Collapsible.js.map +1 -0
- package/lib/commonjs/components/ui/Context-Menu.js +304 -0
- package/lib/commonjs/components/ui/Context-Menu.js.map +1 -0
- package/lib/commonjs/components/ui/Custom-Card.js +210 -0
- package/lib/commonjs/components/ui/Custom-Card.js.map +1 -0
- package/lib/commonjs/components/ui/Dialog.js +214 -0
- package/lib/commonjs/components/ui/Dialog.js.map +1 -0
- package/lib/commonjs/components/ui/Dropdown-Menu.js +438 -0
- package/lib/commonjs/components/ui/Dropdown-Menu.js.map +1 -0
- package/lib/commonjs/components/ui/Floating-Action.js +55 -0
- package/lib/commonjs/components/ui/Floating-Action.js.map +1 -0
- package/lib/commonjs/components/ui/Greeting-Card.js +401 -0
- package/lib/commonjs/components/ui/Greeting-Card.js.map +1 -0
- package/lib/commonjs/components/ui/Hover-Card.js +100 -0
- package/lib/commonjs/components/ui/Hover-Card.js.map +1 -0
- package/lib/commonjs/components/ui/Icon.js +76 -0
- package/lib/commonjs/components/ui/Icon.js.map +1 -0
- package/lib/commonjs/components/ui/Input.js +79 -0
- package/lib/commonjs/components/ui/Input.js.map +1 -0
- package/lib/commonjs/components/ui/Label.js +48 -0
- package/lib/commonjs/components/ui/Label.js.map +1 -0
- package/lib/commonjs/components/ui/Menubar.js +392 -0
- package/lib/commonjs/components/ui/Menubar.js.map +1 -0
- package/lib/commonjs/components/ui/Native-Only-Animated-View.js +43 -0
- package/lib/commonjs/components/ui/Native-Only-Animated-View.js.map +1 -0
- package/lib/commonjs/components/ui/NavBar.js +356 -0
- package/lib/commonjs/components/ui/NavBar.js.map +1 -0
- package/lib/commonjs/components/ui/Popover.js +105 -0
- package/lib/commonjs/components/ui/Popover.js.map +1 -0
- package/lib/commonjs/components/ui/Progress.js +127 -0
- package/lib/commonjs/components/ui/Progress.js.map +1 -0
- package/lib/commonjs/components/ui/Radio-Group.js +78 -0
- package/lib/commonjs/components/ui/Radio-Group.js.map +1 -0
- package/lib/commonjs/components/ui/Select.js +283 -0
- package/lib/commonjs/components/ui/Select.js.map +1 -0
- package/lib/commonjs/components/ui/Separator.js +62 -0
- package/lib/commonjs/components/ui/Separator.js.map +1 -0
- package/lib/commonjs/components/ui/SizedBox.js +106 -0
- package/lib/commonjs/components/ui/SizedBox.js.map +1 -0
- package/lib/commonjs/components/ui/Skeleton.js +60 -0
- package/lib/commonjs/components/ui/Skeleton.js.map +1 -0
- package/lib/commonjs/components/ui/Slider.js +178 -0
- package/lib/commonjs/components/ui/Slider.js.map +1 -0
- package/lib/commonjs/components/ui/Switch.js +57 -0
- package/lib/commonjs/components/ui/Switch.js.map +1 -0
- package/lib/commonjs/components/ui/Table.js +161 -0
- package/lib/commonjs/components/ui/Table.js.map +1 -0
- package/lib/commonjs/components/ui/Tabs.js +111 -0
- package/lib/commonjs/components/ui/Tabs.js.map +1 -0
- package/lib/commonjs/components/ui/Text.js +73 -0
- package/lib/commonjs/components/ui/Text.js.map +1 -0
- package/lib/commonjs/components/ui/Textarea.js +93 -0
- package/lib/commonjs/components/ui/Textarea.js.map +1 -0
- package/lib/commonjs/components/ui/Theme-Toggle.js +160 -0
- package/lib/commonjs/components/ui/Theme-Toggle.js.map +1 -0
- package/lib/commonjs/components/ui/Toast.js +107 -0
- package/lib/commonjs/components/ui/Toast.js.map +1 -0
- package/lib/commonjs/components/ui/Toggle-Group.js +133 -0
- package/lib/commonjs/components/ui/Toggle-Group.js.map +1 -0
- package/lib/commonjs/components/ui/Toggle.js +110 -0
- package/lib/commonjs/components/ui/Toggle.js.map +1 -0
- package/lib/commonjs/components/ui/Tooltip.js +110 -0
- package/lib/commonjs/components/ui/Tooltip.js.map +1 -0
- package/lib/commonjs/components/ui/index.js +479 -0
- package/lib/commonjs/components/ui/index.js.map +1 -0
- package/lib/commonjs/global.css +417 -0
- package/lib/commonjs/index.js +118 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/lib/ThemeProvider.js +180 -0
- package/lib/commonjs/lib/ThemeProvider.js.map +1 -0
- package/lib/commonjs/lib/cornerRadius.js +171 -0
- package/lib/commonjs/lib/cornerRadius.js.map +1 -0
- package/lib/commonjs/lib/fonts.js +101 -0
- package/lib/commonjs/lib/fonts.js.map +1 -0
- package/lib/commonjs/lib/slot-helpers.js +24 -0
- package/lib/commonjs/lib/slot-helpers.js.map +1 -0
- package/lib/commonjs/lib/theme.js +215 -0
- package/lib/commonjs/lib/theme.js.map +1 -0
- package/lib/commonjs/lib/utils.js +142 -0
- package/lib/commonjs/lib/utils.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/types/components.d.js +6 -0
- package/lib/commonjs/types/components.d.js.map +1 -0
- package/lib/commonjs/types/global.d.js +8 -0
- package/lib/commonjs/types/global.d.js.map +1 -0
- package/lib/commonjs/types/rn-primitives.d.js +6 -0
- package/lib/commonjs/types/rn-primitives.d.js.map +1 -0
- package/lib/module/components/ui/Alert-Dialog.js.map +1 -1
- package/lib/module/components/ui/Context-Menu.js.map +1 -1
- package/lib/module/components/ui/Dropdown-Menu.js.map +1 -1
- package/lib/module/components/ui/Menubar.js.map +1 -1
- package/lib/module/components/ui/Tabs.js.map +1 -1
- package/lib/module/components/ui/Toggle-Group.js.map +1 -1
- package/lib/module/lib/fonts.js +81 -8
- package/lib/module/lib/fonts.js.map +1 -1
- package/lib/typescript/commonjs/package.json +1 -0
- package/lib/typescript/commonjs/src/app/_layout.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/theme-config.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Accordion.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Alert-Dialog.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Alert.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/AppBar.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Aspect-Ratio.d.ts.map +1 -0
- package/lib/typescript/{src → commonjs/src}/components/ui/Avatar.d.ts +59 -59
- package/lib/typescript/{src → commonjs/src}/components/ui/Avatar.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/ui/Badge.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Bottom-Sheet.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Button.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Card.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Checkbox.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Collapsible.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Context-Menu.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Custom-Card.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Dialog.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Dropdown-Menu.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Floating-Action.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Greeting-Card.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Hover-Card.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Icon.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Input.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Label.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Menubar.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Native-Only-Animated-View.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/NavBar.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Popover.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Progress.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Radio-Group.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Select.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Separator.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/SizedBox.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Skeleton.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Slider.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Switch.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Table.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Tabs.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Text.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Textarea.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Theme-Toggle.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Toast.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Toggle-Group.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Toggle.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Tooltip.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/lib/ThemeProvider.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/lib/cornerRadius.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/lib/fonts.d.ts +16 -0
- package/lib/typescript/commonjs/src/lib/fonts.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/lib/slot-helpers.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/lib/theme.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/lib/utils.d.ts.map +1 -0
- package/lib/typescript/module/src/app/_layout.d.ts +7 -0
- package/lib/typescript/module/src/app/_layout.d.ts.map +1 -0
- package/lib/typescript/module/src/components/theme-config.d.ts +174 -0
- package/lib/typescript/module/src/components/theme-config.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Accordion.d.ts +103 -0
- package/lib/typescript/module/src/components/ui/Accordion.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Alert-Dialog.d.ts +145 -0
- package/lib/typescript/module/src/components/ui/Alert-Dialog.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Alert.d.ts +61 -0
- package/lib/typescript/module/src/components/ui/Alert.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/AppBar.d.ts +227 -0
- package/lib/typescript/module/src/components/ui/AppBar.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Aspect-Ratio.d.ts +24 -0
- package/lib/typescript/module/src/components/ui/Aspect-Ratio.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Avatar.d.ts +1486 -0
- package/lib/typescript/module/src/components/ui/Avatar.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Badge.d.ts +77 -0
- package/lib/typescript/module/src/components/ui/Badge.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Bottom-Sheet.d.ts +43 -0
- package/lib/typescript/module/src/components/ui/Bottom-Sheet.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Button.d.ts +23 -0
- package/lib/typescript/module/src/components/ui/Button.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Card.d.ts +93 -0
- package/lib/typescript/module/src/components/ui/Card.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Checkbox.d.ts +36 -0
- package/lib/typescript/module/src/components/ui/Checkbox.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Collapsible.d.ts +37 -0
- package/lib/typescript/module/src/components/ui/Collapsible.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Context-Menu.d.ts +107 -0
- package/lib/typescript/module/src/components/ui/Context-Menu.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Custom-Card.d.ts +103 -0
- package/lib/typescript/module/src/components/ui/Custom-Card.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Dialog.d.ts +90 -0
- package/lib/typescript/module/src/components/ui/Dialog.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Dropdown-Menu.d.ts +242 -0
- package/lib/typescript/module/src/components/ui/Dropdown-Menu.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Floating-Action.d.ts +44 -0
- package/lib/typescript/module/src/components/ui/Floating-Action.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Greeting-Card.d.ts +153 -0
- package/lib/typescript/module/src/components/ui/Greeting-Card.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Hover-Card.d.ts +49 -0
- package/lib/typescript/module/src/components/ui/Hover-Card.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Icon.d.ts +43 -0
- package/lib/typescript/module/src/components/ui/Icon.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Input.d.ts +54 -0
- package/lib/typescript/module/src/components/ui/Input.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Label.d.ts +34 -0
- package/lib/typescript/module/src/components/ui/Label.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Menubar.d.ts +142 -0
- package/lib/typescript/module/src/components/ui/Menubar.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Native-Only-Animated-View.d.ts +26 -0
- package/lib/typescript/module/src/components/ui/Native-Only-Animated-View.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/NavBar.d.ts +273 -0
- package/lib/typescript/module/src/components/ui/NavBar.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Popover.d.ts +54 -0
- package/lib/typescript/module/src/components/ui/Popover.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Progress.d.ts +27 -0
- package/lib/typescript/module/src/components/ui/Progress.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Radio-Group.d.ts +47 -0
- package/lib/typescript/module/src/components/ui/Radio-Group.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Select.d.ts +86 -0
- package/lib/typescript/module/src/components/ui/Select.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Separator.d.ts +40 -0
- package/lib/typescript/module/src/components/ui/Separator.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/SizedBox.d.ts +79 -0
- package/lib/typescript/module/src/components/ui/SizedBox.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Skeleton.d.ts +42 -0
- package/lib/typescript/module/src/components/ui/Skeleton.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Slider.d.ts +56 -0
- package/lib/typescript/module/src/components/ui/Slider.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Switch.d.ts +34 -0
- package/lib/typescript/module/src/components/ui/Switch.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Table.d.ts +80 -0
- package/lib/typescript/module/src/components/ui/Table.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Tabs.d.ts +51 -0
- package/lib/typescript/module/src/components/ui/Tabs.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Text.d.ts +45 -0
- package/lib/typescript/module/src/components/ui/Text.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Textarea.d.ts +65 -0
- package/lib/typescript/module/src/components/ui/Textarea.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Theme-Toggle.d.ts +67 -0
- package/lib/typescript/module/src/components/ui/Theme-Toggle.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Toast.d.ts +56 -0
- package/lib/typescript/module/src/components/ui/Toast.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Toggle-Group.d.ts +49 -0
- package/lib/typescript/module/src/components/ui/Toggle-Group.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Toggle.d.ts +53 -0
- package/lib/typescript/module/src/components/ui/Toggle.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Tooltip.d.ts +51 -0
- package/lib/typescript/module/src/components/ui/Tooltip.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/index.d.ts +44 -0
- package/lib/typescript/module/src/components/ui/index.d.ts.map +1 -0
- package/lib/typescript/module/src/index.d.ts +9 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -0
- package/lib/typescript/module/src/lib/ThemeProvider.d.ts +137 -0
- package/lib/typescript/module/src/lib/ThemeProvider.d.ts.map +1 -0
- package/lib/typescript/module/src/lib/cornerRadius.d.ts +112 -0
- package/lib/typescript/module/src/lib/cornerRadius.d.ts.map +1 -0
- package/lib/typescript/module/src/lib/fonts.d.ts +16 -0
- package/lib/typescript/module/src/lib/fonts.d.ts.map +1 -0
- package/lib/typescript/module/src/lib/slot-helpers.d.ts +32 -0
- package/lib/typescript/module/src/lib/slot-helpers.d.ts.map +1 -0
- package/lib/typescript/module/src/lib/theme.d.ts +87 -0
- package/lib/typescript/module/src/lib/theme.d.ts.map +1 -0
- package/lib/typescript/module/src/lib/utils.d.ts +111 -0
- package/lib/typescript/module/src/lib/utils.d.ts.map +1 -0
- package/package.json +180 -50
- package/src/components/ui/Alert-Dialog.tsx +2 -2
- package/src/components/ui/Context-Menu.tsx +1 -1
- package/src/components/ui/Dropdown-Menu.tsx +1 -1
- package/src/components/ui/Menubar.tsx +2 -2
- package/src/components/ui/Tabs.tsx +1 -1
- package/src/components/ui/Toggle-Group.tsx +2 -2
- package/src/lib/fonts.ts +83 -12
- package/lib/typescript/src/app/_layout.d.ts.map +0 -1
- package/lib/typescript/src/components/theme-config.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Accordion.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Alert-Dialog.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Alert.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/AppBar.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Aspect-Ratio.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Badge.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Bottom-Sheet.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Button.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Card.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Checkbox.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Collapsible.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Context-Menu.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Custom-Card.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Dialog.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Dropdown-Menu.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Floating-Action.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Greeting-Card.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Hover-Card.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Icon.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Input.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Label.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Menubar.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Native-Only-Animated-View.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/NavBar.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Popover.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Progress.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Radio-Group.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Select.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Separator.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/SizedBox.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Skeleton.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Slider.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Switch.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Table.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Tabs.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Text.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Textarea.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Theme-Toggle.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Toast.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Toggle-Group.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Toggle.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Tooltip.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/index.d.ts.map +0 -1
- package/lib/typescript/src/index.d.ts.map +0 -1
- package/lib/typescript/src/lib/ThemeProvider.d.ts.map +0 -1
- package/lib/typescript/src/lib/cornerRadius.d.ts.map +0 -1
- package/lib/typescript/src/lib/fonts.d.ts +0 -21
- package/lib/typescript/src/lib/fonts.d.ts.map +0 -1
- package/lib/typescript/src/lib/slot-helpers.d.ts.map +0 -1
- package/lib/typescript/src/lib/theme.d.ts.map +0 -1
- package/lib/typescript/src/lib/utils.d.ts.map +0 -1
- /package/lib/typescript/{src → commonjs/src}/app/_layout.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/theme-config.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Accordion.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Alert-Dialog.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Alert.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/AppBar.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Aspect-Ratio.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Badge.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Bottom-Sheet.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Button.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Card.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Checkbox.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Collapsible.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Context-Menu.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Custom-Card.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Dialog.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Dropdown-Menu.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Floating-Action.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Greeting-Card.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Hover-Card.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Icon.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Input.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Label.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Menubar.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Native-Only-Animated-View.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/NavBar.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Popover.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Progress.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Radio-Group.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Select.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Separator.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/SizedBox.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Skeleton.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Slider.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Switch.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Table.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Tabs.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Text.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Textarea.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Theme-Toggle.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Toast.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Toggle-Group.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Toggle.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Tooltip.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/index.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/index.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/lib/ThemeProvider.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/lib/cornerRadius.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/lib/slot-helpers.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/lib/theme.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/lib/utils.d.ts +0 -0
- /package/lib/typescript/{package.json → module/package.json} +0 -0
package/README.md
CHANGED
|
@@ -21,7 +21,13 @@ This library requires **NativeWind v4+** to be configured in your React Native p
|
|
|
21
21
|
|
|
22
22
|
## Installation
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
This library works with **both Expo and Bare React Native CLI** projects. Choose the installation method for your project type.
|
|
25
|
+
|
|
26
|
+
### For Bare React Native CLI Projects (Recommended)
|
|
27
|
+
|
|
28
|
+
Perfect for apps like **CampxMobileApp** using React Native CLI without Expo.
|
|
29
|
+
|
|
30
|
+
#### 1. Install the package
|
|
25
31
|
|
|
26
32
|
```sh
|
|
27
33
|
npm install @campxdev/react-native-blueprint
|
|
@@ -29,15 +35,80 @@ npm install @campxdev/react-native-blueprint
|
|
|
29
35
|
yarn add @campxdev/react-native-blueprint
|
|
30
36
|
```
|
|
31
37
|
|
|
32
|
-
|
|
38
|
+
#### 2. Install required peer dependencies
|
|
33
39
|
|
|
34
40
|
```sh
|
|
35
|
-
npm install nativewind tailwindcss tailwindcss-animate react-native-reanimated react-native-gesture-handler react-native-svg react-native-safe-area-context
|
|
41
|
+
npm install nativewind tailwindcss tailwindcss-animate react-native-reanimated react-native-gesture-handler react-native-svg react-native-safe-area-context react-native-screens
|
|
36
42
|
# or
|
|
37
|
-
yarn add nativewind tailwindcss tailwindcss-animate react-native-reanimated react-native-gesture-handler react-native-svg react-native-safe-area-context
|
|
43
|
+
yarn add nativewind tailwindcss tailwindcss-animate react-native-reanimated react-native-gesture-handler react-native-svg react-native-safe-area-context react-native-screens
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
#### 3. Install optional peer dependencies (as needed)
|
|
47
|
+
|
|
48
|
+
```sh
|
|
49
|
+
# For bottom sheet components (optional)
|
|
50
|
+
npm install @gorhom/bottom-sheet
|
|
51
|
+
|
|
52
|
+
# For advanced animations (optional)
|
|
53
|
+
npm install react-native-worklets
|
|
54
|
+
|
|
55
|
+
# For specific UI primitives (install only what you need)
|
|
56
|
+
npm install @rn-primitives/accordion @rn-primitives/dialog @rn-primitives/avatar
|
|
57
|
+
# ... add other @rn-primitives packages as needed
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
#### 4. For iOS, install CocoaPods
|
|
61
|
+
|
|
62
|
+
```sh
|
|
63
|
+
cd ios && pod install && cd ..
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
#### 5. Add Reanimated Babel plugin
|
|
67
|
+
|
|
68
|
+
Update your `babel.config.js`:
|
|
69
|
+
|
|
70
|
+
```js
|
|
71
|
+
module.exports = {
|
|
72
|
+
presets: ['module:@react-native/babel-preset'],
|
|
73
|
+
plugins: [
|
|
74
|
+
'react-native-reanimated/plugin', // Must be listed last!
|
|
75
|
+
],
|
|
76
|
+
};
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### For Expo Projects
|
|
80
|
+
|
|
81
|
+
If you're using Expo, the installation is simpler:
|
|
82
|
+
|
|
83
|
+
#### 1. Install the package and peer dependencies
|
|
84
|
+
|
|
85
|
+
```sh
|
|
86
|
+
npx expo install @campxdev/react-native-blueprint nativewind tailwindcss tailwindcss-animate react-native-reanimated react-native-gesture-handler react-native-svg
|
|
87
|
+
# Expo will automatically install compatible versions
|
|
38
88
|
```
|
|
39
89
|
|
|
40
|
-
|
|
90
|
+
#### 2. Install optional fonts (for custom fonts)
|
|
91
|
+
|
|
92
|
+
```sh
|
|
93
|
+
npx expo install expo-font @expo-google-fonts/poppins @expo-google-fonts/heebo
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
Then load fonts in your app:
|
|
97
|
+
|
|
98
|
+
```tsx
|
|
99
|
+
import { useFonts } from 'expo-font';
|
|
100
|
+
import { Poppins_400Regular, Poppins_600SemiBold } from '@expo-google-fonts/poppins';
|
|
101
|
+
|
|
102
|
+
function App() {
|
|
103
|
+
const [fontsLoaded] = useFonts({ Poppins_400Regular, Poppins_600SemiBold });
|
|
104
|
+
if (!fontsLoaded) return null;
|
|
105
|
+
// Your app
|
|
106
|
+
}
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### Common Setup (Required for Both)
|
|
110
|
+
|
|
111
|
+
#### Import the global styles
|
|
41
112
|
|
|
42
113
|
In your app entry point (e.g., `App.tsx` or `_layout.tsx`):
|
|
43
114
|
|
|
@@ -45,7 +116,7 @@ In your app entry point (e.g., `App.tsx` or `_layout.tsx`):
|
|
|
45
116
|
import '@campxdev/react-native-blueprint/global.css';
|
|
46
117
|
```
|
|
47
118
|
|
|
48
|
-
|
|
119
|
+
#### Configure NativeWind
|
|
49
120
|
|
|
50
121
|
Create or update `tailwind.config.js`:
|
|
51
122
|
|
|
@@ -105,9 +176,9 @@ module.exports = {
|
|
|
105
176
|
};
|
|
106
177
|
```
|
|
107
178
|
|
|
108
|
-
|
|
179
|
+
#### Configure Bundler (Metro or Re.Pack)
|
|
109
180
|
|
|
110
|
-
**
|
|
181
|
+
**For Expo Projects:**
|
|
111
182
|
|
|
112
183
|
Update `metro.config.js`:
|
|
113
184
|
|
|
@@ -120,23 +191,41 @@ const config = getDefaultConfig(__dirname);
|
|
|
120
191
|
module.exports = withNativeWind(config, { input: './global.css' });
|
|
121
192
|
```
|
|
122
193
|
|
|
123
|
-
**
|
|
194
|
+
**For Bare React Native CLI Projects:**
|
|
195
|
+
|
|
196
|
+
Update `metro.config.js`:
|
|
197
|
+
|
|
198
|
+
```js
|
|
199
|
+
const { getDefaultConfig, mergeConfig } = require('@react-native/metro-config');
|
|
200
|
+
const { withNativeWind } = require('nativewind/metro');
|
|
201
|
+
|
|
202
|
+
const config = mergeConfig(getDefaultConfig(__dirname), {
|
|
203
|
+
// Your custom Metro config
|
|
204
|
+
});
|
|
205
|
+
|
|
206
|
+
module.exports = withNativeWind(config, { input: './global.css' });
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
**Alternative: Re.Pack + Rspack (5x Faster - Used in Example App)**
|
|
124
210
|
|
|
125
211
|
The example app in this repository uses [Re.Pack 5](https://re-pack.dev) with Rspack for **5x faster builds**. See [MIGRATION_REPACK.md](MIGRATION_REPACK.md) for details.
|
|
126
212
|
|
|
127
213
|
If you want to use Re.Pack in your project:
|
|
128
214
|
|
|
129
215
|
1. Install Re.Pack:
|
|
216
|
+
|
|
130
217
|
```sh
|
|
131
218
|
npx @callstack/repack-init
|
|
132
219
|
```
|
|
133
220
|
|
|
134
221
|
2. Install NativeWind plugin:
|
|
222
|
+
|
|
135
223
|
```sh
|
|
136
224
|
npm install @callstack/repack-plugin-nativewind
|
|
137
225
|
```
|
|
138
226
|
|
|
139
227
|
3. Update `rspack.config.js`:
|
|
228
|
+
|
|
140
229
|
```js
|
|
141
230
|
import { NativeWindPlugin } from '@callstack/repack-plugin-nativewind';
|
|
142
231
|
|
|
@@ -158,7 +247,13 @@ If you want to use Re.Pack in your project:
|
|
|
158
247
|
// Import CSS at the top of your app entry point (do this ONCE)
|
|
159
248
|
import '@campxdev/react-native-blueprint/global.css';
|
|
160
249
|
|
|
161
|
-
import {
|
|
250
|
+
import {
|
|
251
|
+
Button,
|
|
252
|
+
Card,
|
|
253
|
+
Text,
|
|
254
|
+
Input,
|
|
255
|
+
Alert,
|
|
256
|
+
} from '@campxdev/react-native-blueprint';
|
|
162
257
|
import { View } from 'react-native';
|
|
163
258
|
|
|
164
259
|
function App() {
|
|
@@ -167,7 +262,9 @@ function App() {
|
|
|
167
262
|
<Card>
|
|
168
263
|
<Card.Header>
|
|
169
264
|
<Card.Title>Welcome</Card.Title>
|
|
170
|
-
<Card.Description>
|
|
265
|
+
<Card.Description>
|
|
266
|
+
Get started with react-native-blueprint
|
|
267
|
+
</Card.Description>
|
|
171
268
|
</Card.Header>
|
|
172
269
|
<Card.Content>
|
|
173
270
|
<Input placeholder="Enter your name" />
|
|
@@ -181,9 +278,7 @@ function App() {
|
|
|
181
278
|
|
|
182
279
|
<Alert>
|
|
183
280
|
<Alert.Title>Info</Alert.Title>
|
|
184
|
-
<Alert.Description>
|
|
185
|
-
This is a sample alert component.
|
|
186
|
-
</Alert.Description>
|
|
281
|
+
<Alert.Description>This is a sample alert component.</Alert.Description>
|
|
187
282
|
</Alert>
|
|
188
283
|
</View>
|
|
189
284
|
);
|
|
@@ -193,12 +288,14 @@ function App() {
|
|
|
193
288
|
## Available Components
|
|
194
289
|
|
|
195
290
|
### Layout & Structure
|
|
291
|
+
|
|
196
292
|
- **Button** - Customizable button with variants (default, destructive, outline, ghost, link)
|
|
197
293
|
- **Card** - Container with header, content, and footer sections
|
|
198
294
|
- **Separator** - Horizontal or vertical divider
|
|
199
295
|
- **Skeleton** - Loading placeholder with shimmer effect
|
|
200
296
|
|
|
201
297
|
### Form Components
|
|
298
|
+
|
|
202
299
|
- **Input** - Text input field
|
|
203
300
|
- **Textarea** - Multi-line text input
|
|
204
301
|
- **Checkbox** - Checkbox with label support
|
|
@@ -209,12 +306,14 @@ function App() {
|
|
|
209
306
|
- **Slider** - Range slider input
|
|
210
307
|
|
|
211
308
|
### Navigation
|
|
309
|
+
|
|
212
310
|
- **Tabs** - Tab navigation component
|
|
213
311
|
- **Accordion** - Collapsible content sections
|
|
214
312
|
- **Collapsible** - Expandable/collapsible content
|
|
215
313
|
- **Menubar** - Menu bar with nested items
|
|
216
314
|
|
|
217
315
|
### Overlays & Dialogs
|
|
316
|
+
|
|
218
317
|
- **Dialog** - Modal dialog
|
|
219
318
|
- **Alert Dialog** - Alert/confirmation dialog
|
|
220
319
|
- **Popover** - Floating popover
|
|
@@ -224,18 +323,21 @@ function App() {
|
|
|
224
323
|
- **Hover Card** - Card that appears on hover
|
|
225
324
|
|
|
226
325
|
### Feedback & Status
|
|
326
|
+
|
|
227
327
|
- **Alert** - Informational alert box
|
|
228
328
|
- **Toast** - Toast notification
|
|
229
329
|
- **Progress** - Progress bar
|
|
230
330
|
- **Badge** - Status badge
|
|
231
331
|
|
|
232
332
|
### Data Display
|
|
333
|
+
|
|
233
334
|
- **Table** - Data table with sorting
|
|
234
335
|
- **Avatar** - User avatar with fallback
|
|
235
336
|
- **Text** - Typography component with variants
|
|
236
337
|
- **Icon** - Icon component (powered by lucide-react-native)
|
|
237
338
|
|
|
238
339
|
### Utilities
|
|
340
|
+
|
|
239
341
|
- **Aspect Ratio** - Container with fixed aspect ratio
|
|
240
342
|
- **Toggle** - Toggle button
|
|
241
343
|
- **Toggle Group** - Group of toggle buttons
|
|
@@ -246,10 +348,10 @@ Components use CSS variables for theming. Customize your app's appearance by mod
|
|
|
246
348
|
|
|
247
349
|
```css
|
|
248
350
|
:root {
|
|
249
|
-
--primary: 220 90% 56%;
|
|
250
|
-
--secondary: 280 70% 60%;
|
|
251
|
-
--destructive: 0 84% 60%;
|
|
252
|
-
--radius: 0.75rem;
|
|
351
|
+
--primary: 220 90% 56%; /* Blue */
|
|
352
|
+
--secondary: 280 70% 60%; /* Purple */
|
|
353
|
+
--destructive: 0 84% 60%; /* Red */
|
|
354
|
+
--radius: 0.75rem; /* Border radius */
|
|
253
355
|
}
|
|
254
356
|
```
|
|
255
357
|
|
|
@@ -300,6 +402,7 @@ yarn storybook:android # Run Storybook on Android
|
|
|
300
402
|
### Build Performance
|
|
301
403
|
|
|
302
404
|
The example app uses **Re.Pack 5 + Rspack** instead of Metro for:
|
|
405
|
+
|
|
303
406
|
- ⚡ **5x faster cold builds**
|
|
304
407
|
- ⚡ **5x faster hot module reload (HMR)**
|
|
305
408
|
- 📦 **Zero package duplications**
|
|
@@ -320,6 +423,7 @@ import type { ButtonProps, CardProps } from '@campxdev/react-native-blueprint';
|
|
|
320
423
|
### "Cannot find module '@campxdev/react-native-blueprint/global.css'"
|
|
321
424
|
|
|
322
425
|
Make sure you've:
|
|
426
|
+
|
|
323
427
|
1. Installed NativeWind: `npm install nativewind tailwindcss`
|
|
324
428
|
2. Configured Metro with NativeWind plugin (see Installation Step 5)
|
|
325
429
|
3. Imported the CSS in your app entry point
|
|
@@ -348,15 +452,31 @@ content: [
|
|
|
348
452
|
],
|
|
349
453
|
```
|
|
350
454
|
|
|
351
|
-
## Migration
|
|
455
|
+
## Migration Guides
|
|
352
456
|
|
|
353
|
-
|
|
457
|
+
### Migration from v0.1.x to v0.2.x
|
|
354
458
|
|
|
355
|
-
|
|
459
|
+
**Breaking Changes**:
|
|
460
|
+
1. CSS must now be manually imported
|
|
461
|
+
2. Expo is no longer a direct dependency (but still supported!)
|
|
462
|
+
3. Many dependencies moved to peer dependencies
|
|
356
463
|
|
|
357
|
-
|
|
464
|
+
#### What changed?
|
|
358
465
|
|
|
359
|
-
|
|
466
|
+
**v0.1.x**:
|
|
467
|
+
- Included Expo as direct dependency
|
|
468
|
+
- CSS auto-imported via `RootLayout`
|
|
469
|
+
- All packages bundled as direct dependencies
|
|
470
|
+
|
|
471
|
+
**v0.2.x**:
|
|
472
|
+
- ✅ Works with both Expo and bare React Native CLI
|
|
473
|
+
- ✅ CSS must be explicitly imported (better tree-shaking)
|
|
474
|
+
- ✅ Most packages are now peer dependencies (smaller bundle, less conflicts)
|
|
475
|
+
- ✅ CommonJS and ESM support (fixes module warnings)
|
|
476
|
+
|
|
477
|
+
#### Migration Steps
|
|
478
|
+
|
|
479
|
+
##### For ALL Projects (Expo & Bare RN CLI)
|
|
360
480
|
|
|
361
481
|
1. **Add CSS import** to your app entry point (e.g., `App.tsx` or `_layout.tsx`):
|
|
362
482
|
|
|
@@ -364,25 +484,54 @@ In v0.1.x, the CSS was automatically imported when you used `RootLayout`. In v0.
|
|
|
364
484
|
import '@campxdev/react-native-blueprint/global.css';
|
|
365
485
|
```
|
|
366
486
|
|
|
367
|
-
2. **Install peer dependencies
|
|
487
|
+
2. **Install peer dependencies**:
|
|
368
488
|
|
|
369
489
|
```sh
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
490
|
+
# Required peer dependencies
|
|
491
|
+
npm install nativewind tailwindcss tailwindcss-animate react-native-reanimated react-native-gesture-handler react-native-svg react-native-safe-area-context react-native-screens
|
|
492
|
+
|
|
493
|
+
# Optional (install as needed)
|
|
494
|
+
npm install @gorhom/bottom-sheet react-native-worklets
|
|
495
|
+
npm install @rn-primitives/accordion @rn-primitives/dialog # ... etc
|
|
373
496
|
```
|
|
374
497
|
|
|
375
|
-
|
|
498
|
+
##### For Expo Projects ONLY
|
|
376
499
|
|
|
377
|
-
|
|
378
|
-
// Old
|
|
379
|
-
import { Button } from 'react-native-blueprint';
|
|
500
|
+
3. **Install Expo-specific packages** (if you want custom fonts):
|
|
380
501
|
|
|
381
|
-
|
|
382
|
-
|
|
502
|
+
```sh
|
|
503
|
+
npx expo install expo-font @expo-google-fonts/poppins @expo-google-fonts/heebo
|
|
383
504
|
```
|
|
384
505
|
|
|
385
|
-
|
|
506
|
+
##### For Bare React Native CLI ONLY
|
|
507
|
+
|
|
508
|
+
3. **Add Reanimated plugin** to `babel.config.js`:
|
|
509
|
+
|
|
510
|
+
```js
|
|
511
|
+
module.exports = {
|
|
512
|
+
presets: ['module:@react-native/babel-preset'],
|
|
513
|
+
plugins: [
|
|
514
|
+
'react-native-reanimated/plugin', // Must be last!
|
|
515
|
+
],
|
|
516
|
+
};
|
|
517
|
+
```
|
|
518
|
+
|
|
519
|
+
4. **For iOS, run pod install**:
|
|
520
|
+
|
|
521
|
+
```sh
|
|
522
|
+
cd ios && pod install && cd ..
|
|
523
|
+
```
|
|
524
|
+
|
|
525
|
+
#### Font Handling Changes
|
|
526
|
+
|
|
527
|
+
**v0.1.x**: Fonts were loaded via Expo automatically
|
|
528
|
+
|
|
529
|
+
**v0.2.x**:
|
|
530
|
+
- Uses system fonts by default (works everywhere!)
|
|
531
|
+
- Expo users can still use `expo-font` (see installation guide)
|
|
532
|
+
- Bare RN CLI users can add custom fonts manually (see fonts.ts documentation)
|
|
533
|
+
|
|
534
|
+
That's it! Your app should work as before with better compatibility.
|
|
386
535
|
|
|
387
536
|
## Contributing
|
|
388
537
|
|
|
@@ -397,6 +546,7 @@ Contributions are welcome! Please follow these steps:
|
|
|
397
546
|
### Development Workflow
|
|
398
547
|
|
|
399
548
|
1. Clone the repo and install dependencies:
|
|
549
|
+
|
|
400
550
|
```sh
|
|
401
551
|
git clone https://github.com/campx-org/react-native-blueprint.git
|
|
402
552
|
cd react-native-blueprint
|
|
@@ -406,6 +556,7 @@ Contributions are welcome! Please follow these steps:
|
|
|
406
556
|
2. Run the example app:
|
|
407
557
|
|
|
408
558
|
**Normal App Mode:**
|
|
559
|
+
|
|
409
560
|
```sh
|
|
410
561
|
yarn example:app # Start dev server
|
|
411
562
|
cd example && yarn app:ios # Or run on iOS
|
|
@@ -413,6 +564,7 @@ Contributions are welcome! Please follow these steps:
|
|
|
413
564
|
```
|
|
414
565
|
|
|
415
566
|
**Storybook Mode (Component Library):**
|
|
567
|
+
|
|
416
568
|
```sh
|
|
417
569
|
yarn example:storybook # Start Storybook
|
|
418
570
|
cd example && yarn storybook:ios # Or run on iOS
|
|
@@ -422,6 +574,7 @@ Contributions are welcome! Please follow these steps:
|
|
|
422
574
|
3. Make your changes in `/src`
|
|
423
575
|
|
|
424
576
|
4. Run type checking and linting:
|
|
577
|
+
|
|
425
578
|
```sh
|
|
426
579
|
yarn typecheck
|
|
427
580
|
yarn lint
|
|
@@ -435,66 +588,12 @@ Contributions are welcome! Please follow these steps:
|
|
|
435
588
|
### Example App Tech Stack
|
|
436
589
|
|
|
437
590
|
The example app showcases modern React Native development with:
|
|
591
|
+
|
|
438
592
|
- **Re.Pack 5 + Rspack** - 5x faster than Metro bundler
|
|
439
593
|
- **Storybook React Native** - Interactive component development
|
|
440
594
|
- **NativeWind v4** - Tailwind CSS for React Native
|
|
441
595
|
- **Command-based mode switching** - Easy switching between app and Storybook modes
|
|
442
596
|
|
|
443
|
-
## Publishing
|
|
444
|
-
|
|
445
|
-
For maintainers who need to publish new versions of the package, we provide a comprehensive automated script.
|
|
446
|
-
|
|
447
|
-
### Publishing Script
|
|
448
|
-
|
|
449
|
-
The [publish.sh](scripts/publish.sh) script handles the entire publishing workflow with comprehensive error handling.
|
|
450
|
-
|
|
451
|
-
#### What it does:
|
|
452
|
-
|
|
453
|
-
1. **Cleans cache** - Removes `node_modules`, `lib`, and clears yarn cache
|
|
454
|
-
2. **Installs dependencies** - Runs `yarn install` to ensure everything is up to date
|
|
455
|
-
3. **Checks CLI tools** - Verifies React Native CLI and Reusables CLI availability
|
|
456
|
-
4. **Builds the library** - Runs `yarn prepare` (bob build) - *Note: TypeScript typecheck is skipped due to className issues*
|
|
457
|
-
5. **Verifies build outputs** - Ensures type declarations, source files, and module outputs are correctly generated
|
|
458
|
-
6. **Increments version** - Interactive prompts for patch/minor/major/custom version increments
|
|
459
|
-
7. **Git operations** - Commits changes with proper message and pushes to remote
|
|
460
|
-
8. **Publishes to npm** - Publishes the package with confirmation prompt
|
|
461
|
-
|
|
462
|
-
#### Usage:
|
|
463
|
-
|
|
464
|
-
```sh
|
|
465
|
-
# Run directly
|
|
466
|
-
./scripts/publish.sh
|
|
467
|
-
|
|
468
|
-
# Or via yarn
|
|
469
|
-
yarn publish-package
|
|
470
|
-
```
|
|
471
|
-
|
|
472
|
-
#### Prerequisites:
|
|
473
|
-
|
|
474
|
-
- Node.js and yarn installed
|
|
475
|
-
- Git configured with credentials
|
|
476
|
-
- Logged in to npm (`npm login`)
|
|
477
|
-
- Publish permissions for the `@campxdev` scope
|
|
478
|
-
|
|
479
|
-
#### Error Handling:
|
|
480
|
-
|
|
481
|
-
The script provides detailed error messages and resolution steps for common failures:
|
|
482
|
-
|
|
483
|
-
- **Cache/Install Issues** - Guides on cleaning and reinstalling dependencies
|
|
484
|
-
- **CLI Missing** - Instructions to install required CLI tools
|
|
485
|
-
- **Build Failures** - Steps to debug bob build issues
|
|
486
|
-
- **Git Issues** - Help with credentials, permissions, and branch management
|
|
487
|
-
- **NPM Issues** - Authentication and publish permission troubleshooting
|
|
488
|
-
|
|
489
|
-
#### Important Notes:
|
|
490
|
-
|
|
491
|
-
- TypeScript typecheck is intentionally skipped due to known className issues
|
|
492
|
-
- Manual confirmation is required before publishing to prevent accidents
|
|
493
|
-
- Commits are made with the configured git user (should be satya@campx.in)
|
|
494
|
-
- The script pushes to your current branch - ensure you're on the correct branch
|
|
495
|
-
|
|
496
|
-
For detailed troubleshooting, run the script and follow the error resolution steps provided.
|
|
497
|
-
|
|
498
597
|
## License
|
|
499
598
|
|
|
500
599
|
MIT © [CAMPX](https://github.com/campx-org)
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = RootLayout;
|
|
7
|
+
var _portal = require("@rn-primitives/portal");
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _theme = require("../lib/theme");
|
|
10
|
+
var _native = require("@react-navigation/native");
|
|
11
|
+
var _nativewind = require("nativewind");
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
+
/**
|
|
14
|
+
* RootLayout component - provides theme and navigation setup
|
|
15
|
+
*
|
|
16
|
+
* NOTE: CSS import intentionally removed for library export.
|
|
17
|
+
* Consumers must import '@campxdev/react-native-blueprint/global.css'
|
|
18
|
+
* in their app entry point.
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
function RootLayout({
|
|
22
|
+
children
|
|
23
|
+
}) {
|
|
24
|
+
const {
|
|
25
|
+
colorScheme
|
|
26
|
+
} = (0, _nativewind.useColorScheme)();
|
|
27
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_native.ThemeProvider, {
|
|
28
|
+
value: _theme.NAV_THEME[colorScheme ?? 'light'],
|
|
29
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.StatusBar, {
|
|
30
|
+
barStyle: colorScheme === 'dark' ? 'light-content' : 'dark-content'
|
|
31
|
+
}), children, /*#__PURE__*/(0, _jsxRuntime.jsx)(_portal.PortalHost, {})]
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=_layout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_portal","require","_reactNative","_theme","_native","_nativewind","_jsxRuntime","RootLayout","children","colorScheme","useColorScheme","jsxs","ThemeProvider","value","NAV_THEME","jsx","StatusBar","barStyle","PortalHost"],"sourceRoot":"../../../src","sources":["app/_layout.tsx"],"mappings":";;;;;;AAOA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AAA4C,IAAAK,WAAA,GAAAL,OAAA;AAX5C;AACA;AACA;AACA;AACA;AACA;AACA;;AAYe,SAASM,UAAUA,CAAC;EAAEC;AAA0B,CAAC,EAAE;EAChE,MAAM;IAAEC;EAAY,CAAC,GAAG,IAAAC,0BAAc,EAAC,CAAC;EAExC,oBACE,IAAAJ,WAAA,CAAAK,IAAA,EAACP,OAAA,CAAAQ,aAAa;IAACC,KAAK,EAAEC,gBAAS,CAACL,WAAW,IAAI,OAAO,CAAE;IAAAD,QAAA,gBACtD,IAAAF,WAAA,CAAAS,GAAA,EAACb,YAAA,CAAAc,SAAS;MACRC,QAAQ,EAAER,WAAW,KAAK,MAAM,GAAG,eAAe,GAAG;IAAe,CACrE,CAAC,EACDD,QAAQ,eACT,IAAAF,WAAA,CAAAS,GAAA,EAACf,OAAA,CAAAkB,UAAU,IAAE,CAAC;EAAA,CACD,CAAC;AAEpB","ignoreList":[]}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|