@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
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { TextInput as RNTextInput, type TextInputProps } from 'react-native';
|
|
3
|
+
/**
|
|
4
|
+
* Props for Textarea component
|
|
5
|
+
*
|
|
6
|
+
* @extends TextInputProps - All React Native TextInput properties
|
|
7
|
+
* @property {string} [className] - Additional Tailwind classes for styling
|
|
8
|
+
* @property {string} [placeholderClassName] - Tailwind classes for placeholder text styling
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* <Textarea
|
|
13
|
+
* placeholder="Enter your message"
|
|
14
|
+
* value={message}
|
|
15
|
+
* onChangeText={setMessage}
|
|
16
|
+
* numberOfLines={4}
|
|
17
|
+
* />
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
interface TextareaProps extends Omit<TextInputProps, 'multiline' | 'numberOfLines' | 'editable'> {
|
|
21
|
+
className?: string;
|
|
22
|
+
placeholderClassName?: string;
|
|
23
|
+
multiline?: boolean;
|
|
24
|
+
numberOfLines?: number;
|
|
25
|
+
editable?: boolean;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Multi-line text input component
|
|
29
|
+
*
|
|
30
|
+
* A textarea component for longer text input with configurable height and styling.
|
|
31
|
+
* Automatically configured for multi-line input with appropriate platform-specific defaults.
|
|
32
|
+
*
|
|
33
|
+
* @component
|
|
34
|
+
* @example
|
|
35
|
+
* ```tsx
|
|
36
|
+
* // Basic textarea
|
|
37
|
+
* <Textarea
|
|
38
|
+
* placeholder="Enter description"
|
|
39
|
+
* value={description}
|
|
40
|
+
* onChangeText={setDescription}
|
|
41
|
+
* />
|
|
42
|
+
*
|
|
43
|
+
* // Controlled textarea with validation
|
|
44
|
+
* <Textarea
|
|
45
|
+
* value={bio}
|
|
46
|
+
* onChangeText={setBio}
|
|
47
|
+
* placeholder="Tell us about yourself"
|
|
48
|
+
* numberOfLines={6}
|
|
49
|
+
* maxLength={500}
|
|
50
|
+
* />
|
|
51
|
+
*
|
|
52
|
+
* // Disabled textarea
|
|
53
|
+
* <Textarea value={content} editable={false} />
|
|
54
|
+
* ```
|
|
55
|
+
*
|
|
56
|
+
* @accessibility
|
|
57
|
+
* - Supports standard TextInput accessibility props
|
|
58
|
+
* - Placeholder text with appropriate color contrast
|
|
59
|
+
* - Focus states on web for keyboard navigation
|
|
60
|
+
* - Disabled state with reduced opacity
|
|
61
|
+
*/
|
|
62
|
+
declare function Textarea({ className, multiline, numberOfLines, placeholderClassName, editable, ...props }: TextareaProps & React.RefAttributes<RNTextInput>): import("react/jsx-runtime").JSX.Element;
|
|
63
|
+
export { Textarea };
|
|
64
|
+
export type { TextareaProps };
|
|
65
|
+
//# sourceMappingURL=Textarea.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/Textarea.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAEL,SAAS,IAAI,WAAW,EACxB,KAAK,cAAc,EACpB,MAAM,cAAc,CAAC;AAOtB;;;;;;;;;;;;;;;;GAgBG;AACH,UAAU,aACR,SAAQ,IAAI,CAAC,cAAc,EAAE,WAAW,GAAG,eAAe,GAAG,UAAU,CAAC;IACxE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,iBAAS,QAAQ,CAAC,EAChB,SAAS,EACT,SAAgB,EAChB,aAAsD,EACtD,oBAAoB,EACpB,QAAe,EACf,GAAG,KAAK,EACT,EAAE,aAAa,GAAG,KAAK,CAAC,aAAa,CAAC,WAAW,CAAC,2CAmBlD;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC;AACpB,YAAY,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { SlottableViewProps } from '@rn-primitives/types';
|
|
3
|
+
/**
|
|
4
|
+
* Theme toggle button variants
|
|
5
|
+
*/
|
|
6
|
+
type ThemeToggleVariant = 'icon' | 'button' | 'segmented';
|
|
7
|
+
/**
|
|
8
|
+
* Props for ThemeToggle component
|
|
9
|
+
*
|
|
10
|
+
* @property {'icon' | 'button' | 'segmented'} [variant='icon'] - Visual style variant
|
|
11
|
+
* @property {boolean} [showLabel=false] - Show text label next to icon (for button variant)
|
|
12
|
+
* @property {string} [className] - Additional Tailwind classes
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```tsx
|
|
16
|
+
* // Icon only (default)
|
|
17
|
+
* <ThemeToggle />
|
|
18
|
+
*
|
|
19
|
+
* // Button with label
|
|
20
|
+
* <ThemeToggle variant="button" showLabel />
|
|
21
|
+
*
|
|
22
|
+
* // Segmented control
|
|
23
|
+
* <ThemeToggle variant="segmented" />
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
type ThemeToggleProps = SlottableViewProps & {
|
|
27
|
+
variant?: ThemeToggleVariant;
|
|
28
|
+
showLabel?: boolean;
|
|
29
|
+
className?: string;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Theme toggle component for switching between light, dark, and system themes
|
|
33
|
+
*
|
|
34
|
+
* Provides three variants:
|
|
35
|
+
* - **icon**: Simple icon button that cycles through themes (light → dark → system)
|
|
36
|
+
* - **button**: Button with icon and optional label
|
|
37
|
+
* - **segmented**: Segmented control showing all three options
|
|
38
|
+
*
|
|
39
|
+
* @component
|
|
40
|
+
* @example
|
|
41
|
+
* ```tsx
|
|
42
|
+
* // Icon toggle (minimal)
|
|
43
|
+
* <ThemeToggle />
|
|
44
|
+
*
|
|
45
|
+
* // Button with label
|
|
46
|
+
* <ThemeToggle variant="button" showLabel />
|
|
47
|
+
*
|
|
48
|
+
* // Segmented control (shows all options)
|
|
49
|
+
* <ThemeToggle variant="segmented" />
|
|
50
|
+
*
|
|
51
|
+
* // Custom styling
|
|
52
|
+
* <ThemeToggle className="my-4" />
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
55
|
+
* @accessibility
|
|
56
|
+
* - Proper button role for screen readers
|
|
57
|
+
* - Announces current theme state
|
|
58
|
+
* - Keyboard navigable on web
|
|
59
|
+
*/
|
|
60
|
+
declare const ThemeToggle: React.ForwardRefExoticComponent<SlottableViewProps & {
|
|
61
|
+
variant?: ThemeToggleVariant;
|
|
62
|
+
showLabel?: boolean;
|
|
63
|
+
className?: string;
|
|
64
|
+
} & React.RefAttributes<import("react-native/types_generated/src/private/types/HostInstance").LegacyHostInstanceMethods>>;
|
|
65
|
+
export { ThemeToggle };
|
|
66
|
+
export type { ThemeToggleProps, ThemeToggleVariant };
|
|
67
|
+
//# sourceMappingURL=Theme-Toggle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Theme-Toggle.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/Theme-Toggle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,OAAO,KAAK,EAAE,kBAAkB,EAAW,MAAM,sBAAsB,CAAC;AASxE;;GAEG;AACH,KAAK,kBAAkB,GAAG,MAAM,GAAG,QAAQ,GAAG,WAAW,CAAC;AAE1D;;;;;;;;;;;;;;;;;;GAkBG;AACH,KAAK,gBAAgB,GAAG,kBAAkB,GAAG;IAC3C,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,QAAA,MAAM,WAAW;cAlCL,kBAAkB;gBAChB,OAAO;gBACP,MAAM;yHA+JnB,CAAC;AAGF,OAAO,EAAE,WAAW,EAAE,CAAC;AACvB,YAAY,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Text } from './Text';
|
|
2
|
+
import type { LucideIcon } from 'lucide-react-native';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { View as RNView, type ViewProps } from 'react-native';
|
|
5
|
+
/**
|
|
6
|
+
* Toast notification component
|
|
7
|
+
*
|
|
8
|
+
* Displays temporary messages or notifications with optional icons.
|
|
9
|
+
* Supports default and destructive variants for different message types.
|
|
10
|
+
*
|
|
11
|
+
* @component
|
|
12
|
+
* @example
|
|
13
|
+
* ```tsx
|
|
14
|
+
* <Toast icon={CheckCircle}>
|
|
15
|
+
* <ToastTitle>
|
|
16
|
+
* <Text>Success</Text>
|
|
17
|
+
* </ToastTitle>
|
|
18
|
+
* <ToastDescription>
|
|
19
|
+
* <Text>Your changes have been saved</Text>
|
|
20
|
+
* </ToastDescription>
|
|
21
|
+
* </Toast>
|
|
22
|
+
*
|
|
23
|
+
* <Toast variant="destructive" icon={AlertCircle}>
|
|
24
|
+
* <ToastTitle>
|
|
25
|
+
* <Text>Error</Text>
|
|
26
|
+
* </ToastTitle>
|
|
27
|
+
* <ToastDescription>
|
|
28
|
+
* <Text>Failed to save changes</Text>
|
|
29
|
+
* </ToastDescription>
|
|
30
|
+
* </Toast>
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* @accessibility
|
|
34
|
+
* - Announces messages to screen readers
|
|
35
|
+
* - Proper role for notifications
|
|
36
|
+
*/
|
|
37
|
+
declare function Toast({ className, variant, children, icon, iconClassName, ...props }: ViewProps & React.RefAttributes<RNView> & {
|
|
38
|
+
children?: React.ReactNode;
|
|
39
|
+
icon?: LucideIcon;
|
|
40
|
+
variant?: 'default' | 'destructive';
|
|
41
|
+
iconClassName?: string;
|
|
42
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
43
|
+
/**
|
|
44
|
+
* Toast title component
|
|
45
|
+
*
|
|
46
|
+
* @component
|
|
47
|
+
*/
|
|
48
|
+
declare function ToastTitle({ className, ...props }: React.ComponentProps<typeof Text> & React.RefAttributes<Text>): import("react/jsx-runtime").JSX.Element;
|
|
49
|
+
/**
|
|
50
|
+
* Toast description component
|
|
51
|
+
*
|
|
52
|
+
* @component
|
|
53
|
+
*/
|
|
54
|
+
declare function ToastDescription({ className, ...props }: React.ComponentProps<typeof Text> & React.RefAttributes<Text>): import("react/jsx-runtime").JSX.Element;
|
|
55
|
+
export { Toast, ToastDescription, ToastTitle };
|
|
56
|
+
//# sourceMappingURL=Toast.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/Toast.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAoB,MAAM,QAAQ,CAAC;AAEhD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,IAAI,IAAI,MAAM,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAO9D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,iBAAS,KAAK,CAAC,EACb,SAAS,EACT,OAAO,EACP,QAAQ,EACR,IAAI,EACJ,aAAa,EACb,GAAG,KAAK,EACT,EAAE,SAAS,GACV,KAAK,CAAC,aAAa,CAAC,MAAM,CAAC,GAAG;IAC5B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,OAAO,CAAC,EAAE,SAAS,GAAG,aAAa,CAAC;IACpC,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,2CA+BF;AAED;;;;GAIG;AACH,iBAAS,UAAU,CAAC,EAClB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,2CAO/D;AAED;;;;GAIG;AACH,iBAAS,gBAAgB,CAAC,EACxB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,2CAY/D;AAED,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Icon } from './Icon';
|
|
2
|
+
import { toggleVariants } from './Toggle';
|
|
3
|
+
import * as ToggleGroupPrimitive from '@rn-primitives/toggle-group';
|
|
4
|
+
import type { VariantProps } from 'class-variance-authority';
|
|
5
|
+
import * as React from 'react';
|
|
6
|
+
/**
|
|
7
|
+
* Toggle group component for grouping related toggle buttons
|
|
8
|
+
*
|
|
9
|
+
* Allows single or multiple selection among a set of toggle buttons.
|
|
10
|
+
* Supports both outline and default variants.
|
|
11
|
+
*
|
|
12
|
+
* @component
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* <ToggleGroup type="single" value={alignment} onValueChange={setAlignment}>
|
|
16
|
+
* <ToggleGroupItem value="left" isFirst>
|
|
17
|
+
* <ToggleGroupIcon as={AlignLeft} />
|
|
18
|
+
* </ToggleGroupItem>
|
|
19
|
+
* <ToggleGroupItem value="center">
|
|
20
|
+
* <ToggleGroupIcon as={AlignCenter} />
|
|
21
|
+
* </ToggleGroupItem>
|
|
22
|
+
* <ToggleGroupItem value="right" isLast>
|
|
23
|
+
* <ToggleGroupIcon as={AlignRight} />
|
|
24
|
+
* </ToggleGroupItem>
|
|
25
|
+
* </ToggleGroup>
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* @accessibility
|
|
29
|
+
* - Uses proper ARIA attributes for grouped toggles
|
|
30
|
+
* - Keyboard navigation support
|
|
31
|
+
*/
|
|
32
|
+
declare function ToggleGroup({ className, variant, size, children, ...props }: ToggleGroupPrimitive.RootProps & VariantProps<typeof toggleVariants> & React.RefAttributes<ToggleGroupPrimitive.RootRef>): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
/**
|
|
34
|
+
* Individual toggle item within a toggle group
|
|
35
|
+
*
|
|
36
|
+
* @component
|
|
37
|
+
*/
|
|
38
|
+
declare function ToggleGroupItem({ className, children, variant, size, isFirst, isLast, ...props }: ToggleGroupPrimitive.ItemProps & VariantProps<typeof toggleVariants> & React.RefAttributes<ToggleGroupPrimitive.ItemRef> & {
|
|
39
|
+
isFirst?: boolean;
|
|
40
|
+
isLast?: boolean;
|
|
41
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
/**
|
|
43
|
+
* Icon component for use within toggle group items
|
|
44
|
+
*
|
|
45
|
+
* @component
|
|
46
|
+
*/
|
|
47
|
+
declare function ToggleGroupIcon({ className, ...props }: React.ComponentProps<typeof Icon>): import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
export { ToggleGroup, ToggleGroupIcon, ToggleGroupItem };
|
|
49
|
+
//# sourceMappingURL=Toggle-Group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toggle-Group.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/Toggle-Group.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,OAAO,KAAK,oBAAoB,MAAM,6BAA6B,CAAC;AACpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,OAAO,EACP,IAAI,EACJ,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,oBAAoB,CAAC,SAAS,GAC/B,YAAY,CAAC,OAAO,cAAc,CAAC,GACnC,KAAK,CAAC,aAAa,CAAC,oBAAoB,CAAC,OAAO,CAAC,2CAgBlD;AAiBD;;;;GAIG;AACH,iBAAS,eAAe,CAAC,EACvB,SAAS,EACT,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,OAAO,EACP,MAAM,EACN,GAAG,KAAK,EACT,EAAE,oBAAoB,CAAC,SAAS,GAC/B,YAAY,CAAC,OAAO,cAAc,CAAC,GACnC,KAAK,CAAC,aAAa,CAAC,oBAAoB,CAAC,OAAO,CAAC,GAAG;IAClD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,2CAyCF;AAED;;;;GAIG;AACH,iBAAS,eAAe,CAAC,EACvB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC,2CAKnC;AAED,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { Icon } from './Icon';
|
|
2
|
+
import * as TogglePrimitive from '@rn-primitives/toggle';
|
|
3
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
/**
|
|
6
|
+
* Toggle button style variants using class-variance-authority
|
|
7
|
+
*
|
|
8
|
+
* @variant default - Standard toggle with transparent background
|
|
9
|
+
* @variant outline - Toggle with border and background
|
|
10
|
+
*
|
|
11
|
+
* @size default - Standard size (40px/36px)
|
|
12
|
+
* @size sm - Small size (36px/32px)
|
|
13
|
+
* @size lg - Large size (44px/40px)
|
|
14
|
+
*/
|
|
15
|
+
declare const toggleVariants: (props?: ({
|
|
16
|
+
variant?: "default" | "outline" | null | undefined;
|
|
17
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
18
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
19
|
+
/**
|
|
20
|
+
* Toggle button component for on/off states
|
|
21
|
+
*
|
|
22
|
+
* A two-state button that can be toggled between pressed and unpressed states.
|
|
23
|
+
* Supports multiple variants and sizes.
|
|
24
|
+
*
|
|
25
|
+
* @component
|
|
26
|
+
* @example
|
|
27
|
+
* ```tsx
|
|
28
|
+
* <Toggle pressed={isBold} onPressedChange={setIsBold}>
|
|
29
|
+
* <ToggleIcon as={Bold} />
|
|
30
|
+
* <Text>Bold</Text>
|
|
31
|
+
* </Toggle>
|
|
32
|
+
*
|
|
33
|
+
* <Toggle variant="outline" size="sm">
|
|
34
|
+
* <ToggleIcon as={Italic} />
|
|
35
|
+
* </Toggle>
|
|
36
|
+
* ```
|
|
37
|
+
*
|
|
38
|
+
* @accessibility
|
|
39
|
+
* - Uses proper ARIA pressed state
|
|
40
|
+
* - Disabled state prevents interaction
|
|
41
|
+
* - Focus visible states on web
|
|
42
|
+
*/
|
|
43
|
+
declare function Toggle({ className, variant, size, ...props }: TogglePrimitive.RootProps & VariantProps<typeof toggleVariants> & React.RefAttributes<TogglePrimitive.RootRef>): import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
/**
|
|
45
|
+
* Icon component for use within Toggle buttons
|
|
46
|
+
*
|
|
47
|
+
* Automatically inherits text styling from the toggle context.
|
|
48
|
+
*
|
|
49
|
+
* @component
|
|
50
|
+
*/
|
|
51
|
+
declare function ToggleIcon({ className, ...props }: React.ComponentProps<typeof Icon>): import("react/jsx-runtime").JSX.Element;
|
|
52
|
+
export { Toggle, ToggleIcon, toggleVariants };
|
|
53
|
+
//# sourceMappingURL=Toggle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toggle.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/Toggle.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAG9B,OAAO,KAAK,eAAe,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B;;;;;;;;;GASG;AACH,QAAA,MAAM,cAAc;;;8EA6BnB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,iBAAS,MAAM,CAAC,EACd,SAAS,EACT,OAAO,EACP,IAAI,EACJ,GAAG,KAAK,EACT,EAAE,eAAe,CAAC,SAAS,GAC1B,YAAY,CAAC,OAAO,cAAc,CAAC,GACnC,KAAK,CAAC,aAAa,CAAC,eAAe,CAAC,OAAO,CAAC,2CAsB7C;AAED;;;;;;GAMG;AACH,iBAAS,UAAU,CAAC,EAClB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC,2CAKnC;AAED,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import * as TooltipPrimitive from '@rn-primitives/tooltip';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* Root tooltip component - provides context for trigger and content
|
|
5
|
+
*
|
|
6
|
+
* @component
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* <Tooltip>
|
|
10
|
+
* <TooltipTrigger>
|
|
11
|
+
* <Button variant="outline">
|
|
12
|
+
* <Text>Hover me</Text>
|
|
13
|
+
* </Button>
|
|
14
|
+
* </TooltipTrigger>
|
|
15
|
+
* <TooltipContent>
|
|
16
|
+
* <Text>Helpful tooltip text</Text>
|
|
17
|
+
* </TooltipContent>
|
|
18
|
+
* </Tooltip>
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
declare const Tooltip: React.ForwardRefExoticComponent<TooltipPrimitive.RootProps>;
|
|
22
|
+
/**
|
|
23
|
+
* Trigger component that shows tooltip on hover/press
|
|
24
|
+
*
|
|
25
|
+
* @component
|
|
26
|
+
*/
|
|
27
|
+
declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipPrimitive.TriggerProps>;
|
|
28
|
+
/**
|
|
29
|
+
* Tooltip content component
|
|
30
|
+
*
|
|
31
|
+
* Displays helpful text in a small popup when hovering or pressing the trigger.
|
|
32
|
+
* Includes directional animations based on positioning.
|
|
33
|
+
*
|
|
34
|
+
* @component
|
|
35
|
+
* @example
|
|
36
|
+
* ```tsx
|
|
37
|
+
* <TooltipContent side="top" sideOffset={8}>
|
|
38
|
+
* <Text>Add to favorites</Text>
|
|
39
|
+
* </TooltipContent>
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
42
|
+
* @accessibility
|
|
43
|
+
* - Content is announced by screen readers
|
|
44
|
+
* - Proper ARIA attributes for tooltips
|
|
45
|
+
* - Dismissible on escape key (web)
|
|
46
|
+
*/
|
|
47
|
+
declare function TooltipContent({ className, sideOffset, portalHost, side, ...props }: TooltipPrimitive.ContentProps & React.RefAttributes<TooltipPrimitive.ContentRef> & {
|
|
48
|
+
portalHost?: string;
|
|
49
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
50
|
+
export { Tooltip, TooltipContent, TooltipTrigger };
|
|
51
|
+
//# sourceMappingURL=Tooltip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/Tooltip.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,gBAAgB,MAAM,wBAAwB,CAAC;AAC3D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B;;;;;;;;;;;;;;;;;GAiBG;AACH,QAAA,MAAM,OAAO,6DAAwB,CAAC;AAEtC;;;;GAIG;AACH,QAAA,MAAM,cAAc,gEAA2B,CAAC;AAQhD;;;;;;;;;;;;;;;;;;GAkBG;AACH,iBAAS,cAAc,CAAC,EACtB,SAAS,EACT,UAAc,EACd,UAAU,EACV,IAAY,EACZ,GAAG,KAAK,EACT,EAAE,gBAAgB,CAAC,YAAY,GAC9B,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAAC,UAAU,CAAC,GAAG;IACjD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,2CA4CF;AAED,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export * from './Alert';
|
|
2
|
+
export * from './AppBar';
|
|
3
|
+
export * from './Badge';
|
|
4
|
+
export * from './Button';
|
|
5
|
+
export * from './Card';
|
|
6
|
+
export * from './Custom-Card';
|
|
7
|
+
export * from './Floating-Action';
|
|
8
|
+
export * from './Greeting-Card';
|
|
9
|
+
export * from './Icon';
|
|
10
|
+
export * from './Input';
|
|
11
|
+
export * from './Native-Only-Animated-View';
|
|
12
|
+
export * from './NavBar';
|
|
13
|
+
export * from './Separator';
|
|
14
|
+
export * from './SizedBox';
|
|
15
|
+
export * from './Skeleton';
|
|
16
|
+
export * from './Table';
|
|
17
|
+
export * from './Text';
|
|
18
|
+
export * from './Textarea';
|
|
19
|
+
export * from './Theme-Toggle';
|
|
20
|
+
export * from './Accordion';
|
|
21
|
+
export * from './Alert-Dialog';
|
|
22
|
+
export * from './Aspect-Ratio';
|
|
23
|
+
export * from './Avatar';
|
|
24
|
+
export * from './Bottom-Sheet';
|
|
25
|
+
export * from './Checkbox';
|
|
26
|
+
export * from './Collapsible';
|
|
27
|
+
export * from './Context-Menu';
|
|
28
|
+
export * from './Dialog';
|
|
29
|
+
export * from './Dropdown-Menu';
|
|
30
|
+
export * from './Hover-Card';
|
|
31
|
+
export * from './Label';
|
|
32
|
+
export * from './Menubar';
|
|
33
|
+
export * from './Popover';
|
|
34
|
+
export * from './Progress';
|
|
35
|
+
export * from './Radio-Group';
|
|
36
|
+
export * from './Select';
|
|
37
|
+
export * from './Slider';
|
|
38
|
+
export * from './Switch';
|
|
39
|
+
export * from './Tabs';
|
|
40
|
+
export * from './Toast';
|
|
41
|
+
export * from './Toggle';
|
|
42
|
+
export * from './Toggle-Group';
|
|
43
|
+
export * from './Tooltip';
|
|
44
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/index.ts"],"names":[],"mappings":"AACA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,6BAA6B,CAAC;AAC5C,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAK/B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './components/ui';
|
|
2
|
+
export { default as RootLayout } from './app/_layout';
|
|
3
|
+
export { cn } from './lib/utils';
|
|
4
|
+
export { THEME, NAV_THEME } from './lib/theme';
|
|
5
|
+
export { ThemeProvider, useTheme } from './lib/ThemeProvider';
|
|
6
|
+
export { getRadiusForHeight, getRadiusForDimensions, getCustomRadius, RADIUS, RADIUS_PRESET, CORNER_SMOOTHING, } from './lib/cornerRadius';
|
|
7
|
+
export { fonts } from './lib/fonts';
|
|
8
|
+
export type { FontName } from './lib/fonts';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AAIA,cAAc,iBAAiB,CAAC;AAGhC,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,eAAe,CAAC;AAGtD,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAG9D,OAAO,EACL,kBAAkB,EAClB,sBAAsB,EACtB,eAAe,EACf,MAAM,EACN,aAAa,EACb,gBAAgB,GACjB,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,YAAY,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Available theme modes for the application
|
|
4
|
+
* @typedef {'light' | 'dark' | 'system'} ThemeMode
|
|
5
|
+
* - `light`: Force light theme regardless of system preference
|
|
6
|
+
* - `dark`: Force dark theme regardless of system preference
|
|
7
|
+
* - `system`: Automatically follow device system theme preference (default)
|
|
8
|
+
*/
|
|
9
|
+
export type ThemeMode = 'light' | 'dark' | 'system';
|
|
10
|
+
/**
|
|
11
|
+
* Context type for theme management
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
type ThemeContextType = {
|
|
15
|
+
/** Current theme mode setting */
|
|
16
|
+
mode: ThemeMode;
|
|
17
|
+
/** Whether dark mode is currently active (computed from mode and system preference) */
|
|
18
|
+
isDark: boolean;
|
|
19
|
+
/** Function to change the theme mode */
|
|
20
|
+
setMode: (mode: ThemeMode) => void;
|
|
21
|
+
/** Theme color tokens for the current mode */
|
|
22
|
+
colors: typeof import('./theme').THEME.light;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Props for ThemeProvider component
|
|
26
|
+
*/
|
|
27
|
+
type ThemeProviderProps = {
|
|
28
|
+
/** Application content to provide theme context to */
|
|
29
|
+
children: React.ReactNode;
|
|
30
|
+
/**
|
|
31
|
+
* Initial theme mode
|
|
32
|
+
* @default 'system'
|
|
33
|
+
*/
|
|
34
|
+
defaultMode?: ThemeMode;
|
|
35
|
+
/**
|
|
36
|
+
* Storage key for persisting theme preference (not yet implemented)
|
|
37
|
+
* @deprecated Currently not used - will be implemented in future version
|
|
38
|
+
*/
|
|
39
|
+
storageKey?: string;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Theme Provider component that manages application theme state
|
|
43
|
+
*
|
|
44
|
+
* Provides theme context to all child components, enabling dark mode support
|
|
45
|
+
* throughout the application. Automatically responds to system theme changes
|
|
46
|
+
* when mode is set to 'system'.
|
|
47
|
+
*
|
|
48
|
+
* @component
|
|
49
|
+
* @example
|
|
50
|
+
* ```tsx
|
|
51
|
+
* // Basic usage with system theme
|
|
52
|
+
* function App() {
|
|
53
|
+
* return (
|
|
54
|
+
* <ThemeProvider>
|
|
55
|
+
* <YourApp />
|
|
56
|
+
* </ThemeProvider>
|
|
57
|
+
* );
|
|
58
|
+
* }
|
|
59
|
+
*
|
|
60
|
+
* // Start with dark mode
|
|
61
|
+
* function App() {
|
|
62
|
+
* return (
|
|
63
|
+
* <ThemeProvider defaultMode="dark">
|
|
64
|
+
* <YourApp />
|
|
65
|
+
* </ThemeProvider>
|
|
66
|
+
* );
|
|
67
|
+
* }
|
|
68
|
+
* ```
|
|
69
|
+
*
|
|
70
|
+
* @param {ThemeProviderProps} props - Component props
|
|
71
|
+
* @returns {JSX.Element} Provider component wrapping children with theme context
|
|
72
|
+
*
|
|
73
|
+
* @see {@link useTheme} for accessing theme in child components
|
|
74
|
+
* @see {@link useThemeMode} for optional theme access without error
|
|
75
|
+
*/
|
|
76
|
+
export declare function ThemeProvider({ children, defaultMode, }: ThemeProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
77
|
+
/**
|
|
78
|
+
* Hook to access theme context and controls
|
|
79
|
+
*
|
|
80
|
+
* Provides access to the current theme state and methods to change the theme.
|
|
81
|
+
* Must be used within a ThemeProvider component tree.
|
|
82
|
+
*
|
|
83
|
+
* @returns {ThemeContextType} Theme context object
|
|
84
|
+
* @throws {Error} If used outside of ThemeProvider
|
|
85
|
+
*
|
|
86
|
+
* @example
|
|
87
|
+
* ```tsx
|
|
88
|
+
* function MyComponent() {
|
|
89
|
+
* const { mode, isDark, setMode, colors } = useTheme();
|
|
90
|
+
*
|
|
91
|
+
* return (
|
|
92
|
+
* <View style={{ backgroundColor: colors.background }}>
|
|
93
|
+
* <Text style={{ color: colors.foreground }}>
|
|
94
|
+
* Current mode: {mode} (Dark: {isDark ? 'Yes' : 'No'})
|
|
95
|
+
* </Text>
|
|
96
|
+
* <Button onPress={() => setMode(isDark ? 'light' : 'dark')}>
|
|
97
|
+
* <Text>Toggle Theme</Text>
|
|
98
|
+
* </Button>
|
|
99
|
+
* </View>
|
|
100
|
+
* );
|
|
101
|
+
* }
|
|
102
|
+
* ```
|
|
103
|
+
*
|
|
104
|
+
* @see {@link ThemeProvider} for setup
|
|
105
|
+
* @see {@link useThemeMode} for optional access without error throwing
|
|
106
|
+
*/
|
|
107
|
+
export declare function useTheme(): ThemeContextType;
|
|
108
|
+
/**
|
|
109
|
+
* Optional hook to get current dark mode state
|
|
110
|
+
*
|
|
111
|
+
* Similar to useTheme but only returns the isDark boolean and doesn't throw
|
|
112
|
+
* an error if used outside ThemeProvider. Useful for components that want
|
|
113
|
+
* to adapt to theme but don't require it.
|
|
114
|
+
*
|
|
115
|
+
* @returns {boolean | undefined} Whether dark mode is active, or undefined if no provider
|
|
116
|
+
*
|
|
117
|
+
* @example
|
|
118
|
+
* ```tsx
|
|
119
|
+
* function OptionalThemedComponent() {
|
|
120
|
+
* const isDark = useThemeMode();
|
|
121
|
+
*
|
|
122
|
+
* // Component works with or without ThemeProvider
|
|
123
|
+
* const backgroundColor = isDark ? '#000' : '#fff';
|
|
124
|
+
*
|
|
125
|
+
* return (
|
|
126
|
+
* <View style={{ backgroundColor }}>
|
|
127
|
+
* <Text>This component adapts if theme is available</Text>
|
|
128
|
+
* </View>
|
|
129
|
+
* );
|
|
130
|
+
* }
|
|
131
|
+
* ```
|
|
132
|
+
*
|
|
133
|
+
* @see {@link useTheme} for full theme access (requires provider)
|
|
134
|
+
*/
|
|
135
|
+
export declare function useThemeMode(): boolean | undefined;
|
|
136
|
+
export {};
|
|
137
|
+
//# sourceMappingURL=ThemeProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../../../../src/lib/ThemeProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B;;;;;;GAMG;AACH,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEpD;;;GAGG;AACH,KAAK,gBAAgB,GAAG;IACtB,iCAAiC;IACjC,IAAI,EAAE,SAAS,CAAC;IAChB,uFAAuF;IACvF,MAAM,EAAE,OAAO,CAAC;IAChB,wCAAwC;IACxC,OAAO,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;IACnC,8CAA8C;IAC9C,MAAM,EAAE,cAAc,SAAS,EAAE,KAAK,CAAC,KAAK,CAAC;CAC9C,CAAC;AAMF;;GAEG;AACH,KAAK,kBAAkB,GAAG;IACxB,sDAAsD;IACtD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;;OAGG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,WAAsB,GACvB,EAAE,kBAAkB,2CA6CpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,QAAQ,qBAMvB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,YAAY,IAAI,OAAO,GAAG,SAAS,CAGlD"}
|