@campxdev/react-native-blueprint 0.1.9 → 0.1.12
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 +287 -26
- 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/components/ui/index.js +24 -19
- package/lib/module/components/ui/index.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 +65 -65
- package/lib/typescript/{src → commonjs/src}/components/ui/Avatar.d.ts.map +1 -1
- package/lib/typescript/{src → commonjs/src}/components/ui/Badge.d.ts +3 -3
- 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/{src → commonjs/src}/components/ui/Button.d.ts +3 -3
- 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/{src → commonjs/src}/components/ui/index.d.ts +19 -19
- 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 +609 -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/components/ui/index.ts +24 -19
- 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/Bottom-Sheet.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}/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,29 @@ 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
|
+
### Quick Start
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
# Install the package
|
|
30
|
+
npm install @campxdev/react-native-blueprint
|
|
31
|
+
# or
|
|
32
|
+
yarn add @campxdev/react-native-blueprint
|
|
33
|
+
|
|
34
|
+
# Install required peer dependencies (minimum)
|
|
35
|
+
npm install @rn-primitives/slot @rn-primitives/types nativewind tailwindcss tailwindcss-animate
|
|
36
|
+
# or
|
|
37
|
+
yarn add @rn-primitives/slot @rn-primitives/types nativewind tailwindcss tailwindcss-animate
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
**Note:** Only install the `@rn-primitives` packages for components you actually use. See the [Component Dependencies](#component-dependencies) table below.
|
|
41
|
+
|
|
42
|
+
### For Bare React Native CLI Projects (Recommended)
|
|
43
|
+
|
|
44
|
+
Perfect for apps like **CampxMobileApp** using React Native CLI without Expo.
|
|
45
|
+
|
|
46
|
+
#### 1. Install the package
|
|
25
47
|
|
|
26
48
|
```sh
|
|
27
49
|
npm install @campxdev/react-native-blueprint
|
|
@@ -29,15 +51,80 @@ npm install @campxdev/react-native-blueprint
|
|
|
29
51
|
yarn add @campxdev/react-native-blueprint
|
|
30
52
|
```
|
|
31
53
|
|
|
32
|
-
|
|
54
|
+
#### 2. Install required peer dependencies
|
|
33
55
|
|
|
34
56
|
```sh
|
|
35
|
-
npm install nativewind tailwindcss tailwindcss-animate react-native-reanimated react-native-gesture-handler react-native-svg react-native-safe-area-context
|
|
57
|
+
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
58
|
# or
|
|
37
|
-
yarn add nativewind tailwindcss tailwindcss-animate react-native-reanimated react-native-gesture-handler react-native-svg react-native-safe-area-context
|
|
59
|
+
yarn add nativewind tailwindcss tailwindcss-animate react-native-reanimated react-native-gesture-handler react-native-svg react-native-safe-area-context react-native-screens
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
#### 3. Install optional peer dependencies (as needed)
|
|
63
|
+
|
|
64
|
+
```sh
|
|
65
|
+
# For bottom sheet components (optional)
|
|
66
|
+
npm install @gorhom/bottom-sheet
|
|
67
|
+
|
|
68
|
+
# For advanced animations (optional)
|
|
69
|
+
npm install react-native-worklets
|
|
70
|
+
|
|
71
|
+
# For specific UI primitives (install only what you need)
|
|
72
|
+
npm install @rn-primitives/accordion @rn-primitives/dialog @rn-primitives/avatar
|
|
73
|
+
# ... add other @rn-primitives packages as needed
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
#### 4. For iOS, install CocoaPods
|
|
77
|
+
|
|
78
|
+
```sh
|
|
79
|
+
cd ios && pod install && cd ..
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
#### 5. Add Reanimated Babel plugin
|
|
83
|
+
|
|
84
|
+
Update your `babel.config.js`:
|
|
85
|
+
|
|
86
|
+
```js
|
|
87
|
+
module.exports = {
|
|
88
|
+
presets: ['module:@react-native/babel-preset'],
|
|
89
|
+
plugins: [
|
|
90
|
+
'react-native-reanimated/plugin', // Must be listed last!
|
|
91
|
+
],
|
|
92
|
+
};
|
|
38
93
|
```
|
|
39
94
|
|
|
40
|
-
###
|
|
95
|
+
### For Expo Projects
|
|
96
|
+
|
|
97
|
+
If you're using Expo, the installation is simpler:
|
|
98
|
+
|
|
99
|
+
#### 1. Install the package and peer dependencies
|
|
100
|
+
|
|
101
|
+
```sh
|
|
102
|
+
npx expo install @campxdev/react-native-blueprint nativewind tailwindcss tailwindcss-animate react-native-reanimated react-native-gesture-handler react-native-svg
|
|
103
|
+
# Expo will automatically install compatible versions
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
#### 2. Install optional fonts (for custom fonts)
|
|
107
|
+
|
|
108
|
+
```sh
|
|
109
|
+
npx expo install expo-font @expo-google-fonts/poppins @expo-google-fonts/heebo
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
Then load fonts in your app:
|
|
113
|
+
|
|
114
|
+
```tsx
|
|
115
|
+
import { useFonts } from 'expo-font';
|
|
116
|
+
import { Poppins_400Regular, Poppins_600SemiBold } from '@expo-google-fonts/poppins';
|
|
117
|
+
|
|
118
|
+
function App() {
|
|
119
|
+
const [fontsLoaded] = useFonts({ Poppins_400Regular, Poppins_600SemiBold });
|
|
120
|
+
if (!fontsLoaded) return null;
|
|
121
|
+
// Your app
|
|
122
|
+
}
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
### Common Setup (Required for Both)
|
|
126
|
+
|
|
127
|
+
#### Import the global styles
|
|
41
128
|
|
|
42
129
|
In your app entry point (e.g., `App.tsx` or `_layout.tsx`):
|
|
43
130
|
|
|
@@ -45,7 +132,7 @@ In your app entry point (e.g., `App.tsx` or `_layout.tsx`):
|
|
|
45
132
|
import '@campxdev/react-native-blueprint/global.css';
|
|
46
133
|
```
|
|
47
134
|
|
|
48
|
-
|
|
135
|
+
#### Configure NativeWind
|
|
49
136
|
|
|
50
137
|
Create or update `tailwind.config.js`:
|
|
51
138
|
|
|
@@ -105,9 +192,9 @@ module.exports = {
|
|
|
105
192
|
};
|
|
106
193
|
```
|
|
107
194
|
|
|
108
|
-
|
|
195
|
+
#### Configure Bundler (Metro or Re.Pack)
|
|
109
196
|
|
|
110
|
-
**
|
|
197
|
+
**For Expo Projects:**
|
|
111
198
|
|
|
112
199
|
Update `metro.config.js`:
|
|
113
200
|
|
|
@@ -120,7 +207,22 @@ const config = getDefaultConfig(__dirname);
|
|
|
120
207
|
module.exports = withNativeWind(config, { input: './global.css' });
|
|
121
208
|
```
|
|
122
209
|
|
|
123
|
-
**
|
|
210
|
+
**For Bare React Native CLI Projects:**
|
|
211
|
+
|
|
212
|
+
Update `metro.config.js`:
|
|
213
|
+
|
|
214
|
+
```js
|
|
215
|
+
const { getDefaultConfig, mergeConfig } = require('@react-native/metro-config');
|
|
216
|
+
const { withNativeWind } = require('nativewind/metro');
|
|
217
|
+
|
|
218
|
+
const config = mergeConfig(getDefaultConfig(__dirname), {
|
|
219
|
+
// Your custom Metro config
|
|
220
|
+
});
|
|
221
|
+
|
|
222
|
+
module.exports = withNativeWind(config, { input: './global.css' });
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
**Alternative: Re.Pack + Rspack (5x Faster - Used in Example App)**
|
|
124
226
|
|
|
125
227
|
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
228
|
|
|
@@ -155,7 +257,11 @@ If you want to use Re.Pack in your project:
|
|
|
155
257
|
|
|
156
258
|
## Usage
|
|
157
259
|
|
|
158
|
-
|
|
260
|
+
The library supports two import methods:
|
|
261
|
+
|
|
262
|
+
### Option 1: Main Package Import (Default)
|
|
263
|
+
|
|
264
|
+
Import all components from the main package. You only need to install the `@rn-primitives` packages for components you actually use.
|
|
159
265
|
|
|
160
266
|
```tsx
|
|
161
267
|
// Import CSS at the top of your app entry point (do this ONCE)
|
|
@@ -199,6 +305,50 @@ function App() {
|
|
|
199
305
|
}
|
|
200
306
|
```
|
|
201
307
|
|
|
308
|
+
### Option 2: Tree-Shakeable Imports (Recommended for Production)
|
|
309
|
+
|
|
310
|
+
Import components individually for better tree-shaking and smaller bundle sizes. This ensures you only bundle what you use.
|
|
311
|
+
|
|
312
|
+
```tsx
|
|
313
|
+
// Import CSS at the top of your app entry point (do this ONCE)
|
|
314
|
+
import '@campxdev/react-native-blueprint/global.css';
|
|
315
|
+
|
|
316
|
+
import { Button } from '@campxdev/react-native-blueprint/Button';
|
|
317
|
+
import { Card } from '@campxdev/react-native-blueprint/Card';
|
|
318
|
+
import { Text } from '@campxdev/react-native-blueprint/Text';
|
|
319
|
+
import { Input } from '@campxdev/react-native-blueprint/Input';
|
|
320
|
+
import { Alert } from '@campxdev/react-native-blueprint/Alert';
|
|
321
|
+
import { View } from 'react-native';
|
|
322
|
+
|
|
323
|
+
function App() {
|
|
324
|
+
return (
|
|
325
|
+
<View className="flex-1 p-4 bg-background">
|
|
326
|
+
<Card>
|
|
327
|
+
<Card.Header>
|
|
328
|
+
<Card.Title>Welcome</Card.Title>
|
|
329
|
+
<Card.Description>
|
|
330
|
+
Get started with react-native-blueprint
|
|
331
|
+
</Card.Description>
|
|
332
|
+
</Card.Header>
|
|
333
|
+
<Card.Content>
|
|
334
|
+
<Input placeholder="Enter your name" />
|
|
335
|
+
</Card.Content>
|
|
336
|
+
<Card.Footer>
|
|
337
|
+
<Button>
|
|
338
|
+
<Text>Submit</Text>
|
|
339
|
+
</Button>
|
|
340
|
+
</Card.Footer>
|
|
341
|
+
</Card>
|
|
342
|
+
|
|
343
|
+
<Alert>
|
|
344
|
+
<Alert.Title>Info</Alert.Title>
|
|
345
|
+
<Alert.Description>This is a sample alert component.</Alert.Description>
|
|
346
|
+
</Alert>
|
|
347
|
+
</View>
|
|
348
|
+
);
|
|
349
|
+
}
|
|
350
|
+
```
|
|
351
|
+
|
|
202
352
|
## Available Components
|
|
203
353
|
|
|
204
354
|
### Layout & Structure
|
|
@@ -256,6 +406,72 @@ function App() {
|
|
|
256
406
|
- **Toggle** - Toggle button
|
|
257
407
|
- **Toggle Group** - Group of toggle buttons
|
|
258
408
|
|
|
409
|
+
## Component Dependencies
|
|
410
|
+
|
|
411
|
+
All peer dependencies are **optional** - only install what you need based on the components you use.
|
|
412
|
+
|
|
413
|
+
### Core Dependencies (Required for Most Components)
|
|
414
|
+
|
|
415
|
+
```bash
|
|
416
|
+
npm install @rn-primitives/slot @rn-primitives/types
|
|
417
|
+
```
|
|
418
|
+
|
|
419
|
+
### Component-Specific Dependencies
|
|
420
|
+
|
|
421
|
+
| Component | Required Packages | Notes |
|
|
422
|
+
|-----------|------------------|-------|
|
|
423
|
+
| **Accordion** | `@rn-primitives/accordion`<br/>`@rn-primitives/collapsible` | Collapsible content sections |
|
|
424
|
+
| **Alert** | None | Always available |
|
|
425
|
+
| **Alert-Dialog** | `@rn-primitives/alert-dialog`<br/>`@rn-primitives/portal` | Confirmation dialogs |
|
|
426
|
+
| **AppBar** | None | Always available |
|
|
427
|
+
| **Aspect-Ratio** | `@rn-primitives/aspect-ratio` | Fixed aspect ratio containers |
|
|
428
|
+
| **Avatar** | `@rn-primitives/avatar` | User avatars with fallback |
|
|
429
|
+
| **Badge** | None | Always available |
|
|
430
|
+
| **Bottom-Sheet** | `@gorhom/bottom-sheet`<br/>`react-native-reanimated`<br/>`react-native-gesture-handler` | Bottom sheet modals |
|
|
431
|
+
| **Button** | `@rn-primitives/slot` | Always available with slot |
|
|
432
|
+
| **Card** | None | Always available |
|
|
433
|
+
| **Checkbox** | `@rn-primitives/checkbox` | Checkbox inputs |
|
|
434
|
+
| **Collapsible** | `@rn-primitives/collapsible` | Expandable content |
|
|
435
|
+
| **Context-Menu** | `@rn-primitives/context-menu` | Right-click menus |
|
|
436
|
+
| **Custom-Card** | None | Always available |
|
|
437
|
+
| **Dialog** | `@rn-primitives/dialog`<br/>`@rn-primitives/portal` | Modal dialogs |
|
|
438
|
+
| **Dropdown-Menu** | `@rn-primitives/dropdown-menu` | Dropdown menus |
|
|
439
|
+
| **Floating-Action** | `react-native-floating-action` | Floating action button |
|
|
440
|
+
| **Greeting-Card** | None | Always available |
|
|
441
|
+
| **Hover-Card** | `@rn-primitives/hover-card` | Hover-triggered cards |
|
|
442
|
+
| **Icon** | `lucide-react-native`<br/>`react-native-svg` | Icon library |
|
|
443
|
+
| **Input** | None | Always available |
|
|
444
|
+
| **Label** | `@rn-primitives/label` | Form labels |
|
|
445
|
+
| **Menubar** | `@rn-primitives/menubar` | Menu bars |
|
|
446
|
+
| **Native-Only-Animated-View** | `react-native-reanimated` | Animated views |
|
|
447
|
+
| **NavBar** | None | Always available |
|
|
448
|
+
| **Popover** | `@rn-primitives/popover` | Floating popovers |
|
|
449
|
+
| **Progress** | `@rn-primitives/progress` | Progress bars |
|
|
450
|
+
| **Radio-Group** | `@rn-primitives/radio-group` | Radio button groups |
|
|
451
|
+
| **Select** | `@rn-primitives/select` | Dropdown selects |
|
|
452
|
+
| **Separator** | None | Always available |
|
|
453
|
+
| **SizedBox** | None | Always available |
|
|
454
|
+
| **Skeleton** | None | Always available (loading states) |
|
|
455
|
+
| **Slider** | `@rn-primitives/slider` | Range sliders |
|
|
456
|
+
| **Switch** | `@rn-primitives/switch` | Toggle switches |
|
|
457
|
+
| **Table** | None | Always available |
|
|
458
|
+
| **Tabs** | `@rn-primitives/tabs` | Tab navigation |
|
|
459
|
+
| **Text** | None | Always available |
|
|
460
|
+
| **Textarea** | None | Always available |
|
|
461
|
+
| **Theme-Toggle** | None | Always available |
|
|
462
|
+
| **Toast** | Custom implementation | Toast notifications |
|
|
463
|
+
| **Toggle** | `@rn-primitives/toggle` | Toggle buttons |
|
|
464
|
+
| **Toggle-Group** | `@rn-primitives/toggle-group` | Toggle button groups |
|
|
465
|
+
| **Tooltip** | `@rn-primitives/tooltip` | Hover tooltips |
|
|
466
|
+
|
|
467
|
+
### Install All Optional Dependencies (For All Components)
|
|
468
|
+
|
|
469
|
+
If you want to use all components without worrying about individual dependencies:
|
|
470
|
+
|
|
471
|
+
```bash
|
|
472
|
+
npm install @rn-primitives/accordion @rn-primitives/alert-dialog @rn-primitives/aspect-ratio @rn-primitives/avatar @rn-primitives/checkbox @rn-primitives/collapsible @rn-primitives/context-menu @rn-primitives/dialog @rn-primitives/dropdown-menu @rn-primitives/hover-card @rn-primitives/label @rn-primitives/menubar @rn-primitives/popover @rn-primitives/portal @rn-primitives/progress @rn-primitives/radio-group @rn-primitives/select @rn-primitives/separator @rn-primitives/slider @rn-primitives/slot @rn-primitives/switch @rn-primitives/tabs @rn-primitives/toggle @rn-primitives/toggle-group @rn-primitives/tooltip @rn-primitives/types @gorhom/bottom-sheet react-native-worklets
|
|
473
|
+
```
|
|
474
|
+
|
|
259
475
|
## Theming
|
|
260
476
|
|
|
261
477
|
Components use CSS variables for theming. Customize your app's appearance by modifying the CSS variables in `global.css`:
|
|
@@ -366,15 +582,31 @@ content: [
|
|
|
366
582
|
],
|
|
367
583
|
```
|
|
368
584
|
|
|
369
|
-
## Migration
|
|
585
|
+
## Migration Guides
|
|
586
|
+
|
|
587
|
+
### Migration from v0.1.x to v0.2.x
|
|
588
|
+
|
|
589
|
+
**Breaking Changes**:
|
|
590
|
+
1. CSS must now be manually imported
|
|
591
|
+
2. Expo is no longer a direct dependency (but still supported!)
|
|
592
|
+
3. Many dependencies moved to peer dependencies
|
|
593
|
+
|
|
594
|
+
#### What changed?
|
|
370
595
|
|
|
371
|
-
**
|
|
596
|
+
**v0.1.x**:
|
|
597
|
+
- Included Expo as direct dependency
|
|
598
|
+
- CSS auto-imported via `RootLayout`
|
|
599
|
+
- All packages bundled as direct dependencies
|
|
372
600
|
|
|
373
|
-
|
|
601
|
+
**v0.2.x**:
|
|
602
|
+
- ✅ Works with both Expo and bare React Native CLI
|
|
603
|
+
- ✅ CSS must be explicitly imported (better tree-shaking)
|
|
604
|
+
- ✅ Most packages are now peer dependencies (smaller bundle, less conflicts)
|
|
605
|
+
- ✅ CommonJS and ESM support (fixes module warnings)
|
|
374
606
|
|
|
375
|
-
|
|
607
|
+
#### Migration Steps
|
|
376
608
|
|
|
377
|
-
|
|
609
|
+
##### For ALL Projects (Expo & Bare RN CLI)
|
|
378
610
|
|
|
379
611
|
1. **Add CSS import** to your app entry point (e.g., `App.tsx` or `_layout.tsx`):
|
|
380
612
|
|
|
@@ -382,25 +614,54 @@ In v0.1.x, the CSS was automatically imported when you used `RootLayout`. In v0.
|
|
|
382
614
|
import '@campxdev/react-native-blueprint/global.css';
|
|
383
615
|
```
|
|
384
616
|
|
|
385
|
-
2. **Install peer dependencies
|
|
617
|
+
2. **Install peer dependencies**:
|
|
386
618
|
|
|
387
619
|
```sh
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
620
|
+
# Required peer dependencies
|
|
621
|
+
npm install nativewind tailwindcss tailwindcss-animate react-native-reanimated react-native-gesture-handler react-native-svg react-native-safe-area-context react-native-screens
|
|
622
|
+
|
|
623
|
+
# Optional (install as needed)
|
|
624
|
+
npm install @gorhom/bottom-sheet react-native-worklets
|
|
625
|
+
npm install @rn-primitives/accordion @rn-primitives/dialog # ... etc
|
|
391
626
|
```
|
|
392
627
|
|
|
393
|
-
|
|
628
|
+
##### For Expo Projects ONLY
|
|
394
629
|
|
|
395
|
-
|
|
396
|
-
// Old
|
|
397
|
-
import { Button } from 'react-native-blueprint';
|
|
630
|
+
3. **Install Expo-specific packages** (if you want custom fonts):
|
|
398
631
|
|
|
399
|
-
|
|
400
|
-
|
|
632
|
+
```sh
|
|
633
|
+
npx expo install expo-font @expo-google-fonts/poppins @expo-google-fonts/heebo
|
|
401
634
|
```
|
|
402
635
|
|
|
403
|
-
|
|
636
|
+
##### For Bare React Native CLI ONLY
|
|
637
|
+
|
|
638
|
+
3. **Add Reanimated plugin** to `babel.config.js`:
|
|
639
|
+
|
|
640
|
+
```js
|
|
641
|
+
module.exports = {
|
|
642
|
+
presets: ['module:@react-native/babel-preset'],
|
|
643
|
+
plugins: [
|
|
644
|
+
'react-native-reanimated/plugin', // Must be last!
|
|
645
|
+
],
|
|
646
|
+
};
|
|
647
|
+
```
|
|
648
|
+
|
|
649
|
+
4. **For iOS, run pod install**:
|
|
650
|
+
|
|
651
|
+
```sh
|
|
652
|
+
cd ios && pod install && cd ..
|
|
653
|
+
```
|
|
654
|
+
|
|
655
|
+
#### Font Handling Changes
|
|
656
|
+
|
|
657
|
+
**v0.1.x**: Fonts were loaded via Expo automatically
|
|
658
|
+
|
|
659
|
+
**v0.2.x**:
|
|
660
|
+
- Uses system fonts by default (works everywhere!)
|
|
661
|
+
- Expo users can still use `expo-font` (see installation guide)
|
|
662
|
+
- Bare RN CLI users can add custom fonts manually (see fonts.ts documentation)
|
|
663
|
+
|
|
664
|
+
That's it! Your app should work as before with better compatibility.
|
|
404
665
|
|
|
405
666
|
## Contributing
|
|
406
667
|
|
|
@@ -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
|