@campxdev/react-native-blueprint 0.1.9 → 0.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +156 -25
- package/lib/commonjs/app/_layout.js +34 -0
- package/lib/commonjs/app/_layout.js.map +1 -0
- package/lib/commonjs/assets/icons/weather_icons/drizzle.png +0 -0
- package/lib/commonjs/assets/icons/weather_icons/foggy.png +0 -0
- package/lib/commonjs/assets/icons/weather_icons/freezing_rain.png +0 -0
- package/lib/commonjs/assets/icons/weather_icons/partly_cloudy.png +0 -0
- package/lib/commonjs/assets/icons/weather_icons/rainy.png +0 -0
- package/lib/commonjs/assets/icons/weather_icons/showers.png +0 -0
- package/lib/commonjs/assets/icons/weather_icons/sunny_weather.png +0 -0
- package/lib/commonjs/assets/icons/weather_icons/thunderstorm.png +0 -0
- package/lib/commonjs/assets/icons/weather_icons/thunderstorm_hail.png +0 -0
- package/lib/commonjs/components/theme-config.js +274 -0
- package/lib/commonjs/components/theme-config.js.map +1 -0
- package/lib/commonjs/components/ui/Accordion.js +235 -0
- package/lib/commonjs/components/ui/Accordion.js.map +1 -0
- package/lib/commonjs/components/ui/Alert-Dialog.js +280 -0
- package/lib/commonjs/components/ui/Alert-Dialog.js.map +1 -0
- package/lib/commonjs/components/ui/Alert.js +113 -0
- package/lib/commonjs/components/ui/Alert.js.map +1 -0
- package/lib/commonjs/components/ui/AppBar.js +407 -0
- package/lib/commonjs/components/ui/AppBar.js.map +1 -0
- package/lib/commonjs/components/ui/Aspect-Ratio.js +30 -0
- package/lib/commonjs/components/ui/Aspect-Ratio.js.map +1 -0
- package/lib/commonjs/components/ui/Avatar.js +101 -0
- package/lib/commonjs/components/ui/Avatar.js.map +1 -0
- package/lib/commonjs/components/ui/Badge.js +131 -0
- package/lib/commonjs/components/ui/Badge.js.map +1 -0
- package/lib/commonjs/components/ui/Bottom-Sheet.js +156 -0
- package/lib/commonjs/components/ui/Bottom-Sheet.js.map +1 -0
- package/lib/commonjs/components/ui/Button.js +92 -0
- package/lib/commonjs/components/ui/Button.js.map +1 -0
- package/lib/commonjs/components/ui/Card.js +180 -0
- package/lib/commonjs/components/ui/Card.js.map +1 -0
- package/lib/commonjs/components/ui/Checkbox.js +69 -0
- package/lib/commonjs/components/ui/Checkbox.js.map +1 -0
- package/lib/commonjs/components/ui/Collapsible.js +45 -0
- package/lib/commonjs/components/ui/Collapsible.js.map +1 -0
- package/lib/commonjs/components/ui/Context-Menu.js +304 -0
- package/lib/commonjs/components/ui/Context-Menu.js.map +1 -0
- package/lib/commonjs/components/ui/Custom-Card.js +210 -0
- package/lib/commonjs/components/ui/Custom-Card.js.map +1 -0
- package/lib/commonjs/components/ui/Dialog.js +214 -0
- package/lib/commonjs/components/ui/Dialog.js.map +1 -0
- package/lib/commonjs/components/ui/Dropdown-Menu.js +438 -0
- package/lib/commonjs/components/ui/Dropdown-Menu.js.map +1 -0
- package/lib/commonjs/components/ui/Floating-Action.js +55 -0
- package/lib/commonjs/components/ui/Floating-Action.js.map +1 -0
- package/lib/commonjs/components/ui/Greeting-Card.js +401 -0
- package/lib/commonjs/components/ui/Greeting-Card.js.map +1 -0
- package/lib/commonjs/components/ui/Hover-Card.js +100 -0
- package/lib/commonjs/components/ui/Hover-Card.js.map +1 -0
- package/lib/commonjs/components/ui/Icon.js +76 -0
- package/lib/commonjs/components/ui/Icon.js.map +1 -0
- package/lib/commonjs/components/ui/Input.js +79 -0
- package/lib/commonjs/components/ui/Input.js.map +1 -0
- package/lib/commonjs/components/ui/Label.js +48 -0
- package/lib/commonjs/components/ui/Label.js.map +1 -0
- package/lib/commonjs/components/ui/Menubar.js +392 -0
- package/lib/commonjs/components/ui/Menubar.js.map +1 -0
- package/lib/commonjs/components/ui/Native-Only-Animated-View.js +43 -0
- package/lib/commonjs/components/ui/Native-Only-Animated-View.js.map +1 -0
- package/lib/commonjs/components/ui/NavBar.js +356 -0
- package/lib/commonjs/components/ui/NavBar.js.map +1 -0
- package/lib/commonjs/components/ui/Popover.js +105 -0
- package/lib/commonjs/components/ui/Popover.js.map +1 -0
- package/lib/commonjs/components/ui/Progress.js +127 -0
- package/lib/commonjs/components/ui/Progress.js.map +1 -0
- package/lib/commonjs/components/ui/Radio-Group.js +78 -0
- package/lib/commonjs/components/ui/Radio-Group.js.map +1 -0
- package/lib/commonjs/components/ui/Select.js +283 -0
- package/lib/commonjs/components/ui/Select.js.map +1 -0
- package/lib/commonjs/components/ui/Separator.js +62 -0
- package/lib/commonjs/components/ui/Separator.js.map +1 -0
- package/lib/commonjs/components/ui/SizedBox.js +106 -0
- package/lib/commonjs/components/ui/SizedBox.js.map +1 -0
- package/lib/commonjs/components/ui/Skeleton.js +60 -0
- package/lib/commonjs/components/ui/Skeleton.js.map +1 -0
- package/lib/commonjs/components/ui/Slider.js +178 -0
- package/lib/commonjs/components/ui/Slider.js.map +1 -0
- package/lib/commonjs/components/ui/Switch.js +57 -0
- package/lib/commonjs/components/ui/Switch.js.map +1 -0
- package/lib/commonjs/components/ui/Table.js +161 -0
- package/lib/commonjs/components/ui/Table.js.map +1 -0
- package/lib/commonjs/components/ui/Tabs.js +111 -0
- package/lib/commonjs/components/ui/Tabs.js.map +1 -0
- package/lib/commonjs/components/ui/Text.js +73 -0
- package/lib/commonjs/components/ui/Text.js.map +1 -0
- package/lib/commonjs/components/ui/Textarea.js +93 -0
- package/lib/commonjs/components/ui/Textarea.js.map +1 -0
- package/lib/commonjs/components/ui/Theme-Toggle.js +160 -0
- package/lib/commonjs/components/ui/Theme-Toggle.js.map +1 -0
- package/lib/commonjs/components/ui/Toast.js +107 -0
- package/lib/commonjs/components/ui/Toast.js.map +1 -0
- package/lib/commonjs/components/ui/Toggle-Group.js +133 -0
- package/lib/commonjs/components/ui/Toggle-Group.js.map +1 -0
- package/lib/commonjs/components/ui/Toggle.js +110 -0
- package/lib/commonjs/components/ui/Toggle.js.map +1 -0
- package/lib/commonjs/components/ui/Tooltip.js +110 -0
- package/lib/commonjs/components/ui/Tooltip.js.map +1 -0
- package/lib/commonjs/components/ui/index.js +479 -0
- package/lib/commonjs/components/ui/index.js.map +1 -0
- package/lib/commonjs/global.css +417 -0
- package/lib/commonjs/index.js +118 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/lib/ThemeProvider.js +180 -0
- package/lib/commonjs/lib/ThemeProvider.js.map +1 -0
- package/lib/commonjs/lib/cornerRadius.js +171 -0
- package/lib/commonjs/lib/cornerRadius.js.map +1 -0
- package/lib/commonjs/lib/fonts.js +101 -0
- package/lib/commonjs/lib/fonts.js.map +1 -0
- package/lib/commonjs/lib/slot-helpers.js +24 -0
- package/lib/commonjs/lib/slot-helpers.js.map +1 -0
- package/lib/commonjs/lib/theme.js +215 -0
- package/lib/commonjs/lib/theme.js.map +1 -0
- package/lib/commonjs/lib/utils.js +142 -0
- package/lib/commonjs/lib/utils.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/types/components.d.js +6 -0
- package/lib/commonjs/types/components.d.js.map +1 -0
- package/lib/commonjs/types/global.d.js +8 -0
- package/lib/commonjs/types/global.d.js.map +1 -0
- package/lib/commonjs/types/rn-primitives.d.js +6 -0
- package/lib/commonjs/types/rn-primitives.d.js.map +1 -0
- package/lib/module/components/ui/Alert-Dialog.js.map +1 -1
- package/lib/module/components/ui/Context-Menu.js.map +1 -1
- package/lib/module/components/ui/Dropdown-Menu.js.map +1 -1
- package/lib/module/components/ui/Menubar.js.map +1 -1
- package/lib/module/components/ui/Tabs.js.map +1 -1
- package/lib/module/components/ui/Toggle-Group.js.map +1 -1
- package/lib/module/lib/fonts.js +81 -8
- package/lib/module/lib/fonts.js.map +1 -1
- package/lib/typescript/commonjs/package.json +1 -0
- package/lib/typescript/commonjs/src/app/_layout.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/theme-config.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Accordion.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Alert-Dialog.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Alert.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/AppBar.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Aspect-Ratio.d.ts.map +1 -0
- package/lib/typescript/{src → commonjs/src}/components/ui/Avatar.d.ts +59 -59
- package/lib/typescript/{src → commonjs/src}/components/ui/Avatar.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/ui/Badge.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Bottom-Sheet.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Button.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Card.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Checkbox.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Collapsible.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Context-Menu.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Custom-Card.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Dialog.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Dropdown-Menu.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Floating-Action.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Greeting-Card.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Hover-Card.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Icon.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Input.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Label.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Menubar.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Native-Only-Animated-View.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/NavBar.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Popover.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Progress.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Radio-Group.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Select.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Separator.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/SizedBox.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Skeleton.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Slider.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Switch.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Table.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Tabs.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Text.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Textarea.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Theme-Toggle.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Toast.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Toggle-Group.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Toggle.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/Tooltip.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/ui/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/lib/ThemeProvider.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/lib/cornerRadius.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/lib/fonts.d.ts +16 -0
- package/lib/typescript/commonjs/src/lib/fonts.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/lib/slot-helpers.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/lib/theme.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/lib/utils.d.ts.map +1 -0
- package/lib/typescript/module/src/app/_layout.d.ts +7 -0
- package/lib/typescript/module/src/app/_layout.d.ts.map +1 -0
- package/lib/typescript/module/src/components/theme-config.d.ts +174 -0
- package/lib/typescript/module/src/components/theme-config.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Accordion.d.ts +103 -0
- package/lib/typescript/module/src/components/ui/Accordion.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Alert-Dialog.d.ts +145 -0
- package/lib/typescript/module/src/components/ui/Alert-Dialog.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Alert.d.ts +61 -0
- package/lib/typescript/module/src/components/ui/Alert.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/AppBar.d.ts +227 -0
- package/lib/typescript/module/src/components/ui/AppBar.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Aspect-Ratio.d.ts +24 -0
- package/lib/typescript/module/src/components/ui/Aspect-Ratio.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Avatar.d.ts +1486 -0
- package/lib/typescript/module/src/components/ui/Avatar.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Badge.d.ts +77 -0
- package/lib/typescript/module/src/components/ui/Badge.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Bottom-Sheet.d.ts +43 -0
- package/lib/typescript/module/src/components/ui/Bottom-Sheet.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Button.d.ts +23 -0
- package/lib/typescript/module/src/components/ui/Button.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Card.d.ts +93 -0
- package/lib/typescript/module/src/components/ui/Card.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Checkbox.d.ts +36 -0
- package/lib/typescript/module/src/components/ui/Checkbox.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Collapsible.d.ts +37 -0
- package/lib/typescript/module/src/components/ui/Collapsible.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Context-Menu.d.ts +107 -0
- package/lib/typescript/module/src/components/ui/Context-Menu.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Custom-Card.d.ts +103 -0
- package/lib/typescript/module/src/components/ui/Custom-Card.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Dialog.d.ts +90 -0
- package/lib/typescript/module/src/components/ui/Dialog.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Dropdown-Menu.d.ts +242 -0
- package/lib/typescript/module/src/components/ui/Dropdown-Menu.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Floating-Action.d.ts +44 -0
- package/lib/typescript/module/src/components/ui/Floating-Action.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Greeting-Card.d.ts +153 -0
- package/lib/typescript/module/src/components/ui/Greeting-Card.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Hover-Card.d.ts +49 -0
- package/lib/typescript/module/src/components/ui/Hover-Card.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Icon.d.ts +43 -0
- package/lib/typescript/module/src/components/ui/Icon.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Input.d.ts +54 -0
- package/lib/typescript/module/src/components/ui/Input.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Label.d.ts +34 -0
- package/lib/typescript/module/src/components/ui/Label.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Menubar.d.ts +142 -0
- package/lib/typescript/module/src/components/ui/Menubar.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Native-Only-Animated-View.d.ts +26 -0
- package/lib/typescript/module/src/components/ui/Native-Only-Animated-View.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/NavBar.d.ts +273 -0
- package/lib/typescript/module/src/components/ui/NavBar.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Popover.d.ts +54 -0
- package/lib/typescript/module/src/components/ui/Popover.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Progress.d.ts +27 -0
- package/lib/typescript/module/src/components/ui/Progress.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Radio-Group.d.ts +47 -0
- package/lib/typescript/module/src/components/ui/Radio-Group.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Select.d.ts +86 -0
- package/lib/typescript/module/src/components/ui/Select.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Separator.d.ts +40 -0
- package/lib/typescript/module/src/components/ui/Separator.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/SizedBox.d.ts +79 -0
- package/lib/typescript/module/src/components/ui/SizedBox.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Skeleton.d.ts +42 -0
- package/lib/typescript/module/src/components/ui/Skeleton.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Slider.d.ts +56 -0
- package/lib/typescript/module/src/components/ui/Slider.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Switch.d.ts +34 -0
- package/lib/typescript/module/src/components/ui/Switch.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Table.d.ts +80 -0
- package/lib/typescript/module/src/components/ui/Table.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Tabs.d.ts +51 -0
- package/lib/typescript/module/src/components/ui/Tabs.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Text.d.ts +45 -0
- package/lib/typescript/module/src/components/ui/Text.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Textarea.d.ts +65 -0
- package/lib/typescript/module/src/components/ui/Textarea.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Theme-Toggle.d.ts +67 -0
- package/lib/typescript/module/src/components/ui/Theme-Toggle.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Toast.d.ts +56 -0
- package/lib/typescript/module/src/components/ui/Toast.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Toggle-Group.d.ts +49 -0
- package/lib/typescript/module/src/components/ui/Toggle-Group.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Toggle.d.ts +53 -0
- package/lib/typescript/module/src/components/ui/Toggle.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/Tooltip.d.ts +51 -0
- package/lib/typescript/module/src/components/ui/Tooltip.d.ts.map +1 -0
- package/lib/typescript/module/src/components/ui/index.d.ts +44 -0
- package/lib/typescript/module/src/components/ui/index.d.ts.map +1 -0
- package/lib/typescript/module/src/index.d.ts +9 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -0
- package/lib/typescript/module/src/lib/ThemeProvider.d.ts +137 -0
- package/lib/typescript/module/src/lib/ThemeProvider.d.ts.map +1 -0
- package/lib/typescript/module/src/lib/cornerRadius.d.ts +112 -0
- package/lib/typescript/module/src/lib/cornerRadius.d.ts.map +1 -0
- package/lib/typescript/module/src/lib/fonts.d.ts +16 -0
- package/lib/typescript/module/src/lib/fonts.d.ts.map +1 -0
- package/lib/typescript/module/src/lib/slot-helpers.d.ts +32 -0
- package/lib/typescript/module/src/lib/slot-helpers.d.ts.map +1 -0
- package/lib/typescript/module/src/lib/theme.d.ts +87 -0
- package/lib/typescript/module/src/lib/theme.d.ts.map +1 -0
- package/lib/typescript/module/src/lib/utils.d.ts +111 -0
- package/lib/typescript/module/src/lib/utils.d.ts.map +1 -0
- package/package.json +180 -50
- package/src/components/ui/Alert-Dialog.tsx +2 -2
- package/src/components/ui/Context-Menu.tsx +1 -1
- package/src/components/ui/Dropdown-Menu.tsx +1 -1
- package/src/components/ui/Menubar.tsx +2 -2
- package/src/components/ui/Tabs.tsx +1 -1
- package/src/components/ui/Toggle-Group.tsx +2 -2
- package/src/lib/fonts.ts +83 -12
- package/lib/typescript/src/app/_layout.d.ts.map +0 -1
- package/lib/typescript/src/components/theme-config.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Accordion.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Alert-Dialog.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Alert.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/AppBar.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Aspect-Ratio.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Badge.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Bottom-Sheet.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Button.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Card.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Checkbox.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Collapsible.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Context-Menu.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Custom-Card.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Dialog.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Dropdown-Menu.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Floating-Action.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Greeting-Card.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Hover-Card.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Icon.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Input.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Label.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Menubar.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Native-Only-Animated-View.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/NavBar.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Popover.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Progress.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Radio-Group.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Select.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Separator.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/SizedBox.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Skeleton.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Slider.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Switch.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Table.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Tabs.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Text.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Textarea.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Theme-Toggle.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Toast.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Toggle-Group.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Toggle.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Tooltip.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/index.d.ts.map +0 -1
- package/lib/typescript/src/index.d.ts.map +0 -1
- package/lib/typescript/src/lib/ThemeProvider.d.ts.map +0 -1
- package/lib/typescript/src/lib/cornerRadius.d.ts.map +0 -1
- package/lib/typescript/src/lib/fonts.d.ts +0 -21
- package/lib/typescript/src/lib/fonts.d.ts.map +0 -1
- package/lib/typescript/src/lib/slot-helpers.d.ts.map +0 -1
- package/lib/typescript/src/lib/theme.d.ts.map +0 -1
- package/lib/typescript/src/lib/utils.d.ts.map +0 -1
- /package/lib/typescript/{src → commonjs/src}/app/_layout.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/theme-config.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Accordion.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Alert-Dialog.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Alert.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/AppBar.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Aspect-Ratio.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Badge.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Bottom-Sheet.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Button.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Card.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Checkbox.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Collapsible.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Context-Menu.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Custom-Card.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Dialog.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Dropdown-Menu.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Floating-Action.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Greeting-Card.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Hover-Card.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Icon.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Input.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Label.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Menubar.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Native-Only-Animated-View.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/NavBar.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Popover.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Progress.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Radio-Group.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Select.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Separator.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/SizedBox.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Skeleton.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Slider.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Switch.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Table.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Tabs.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Text.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Textarea.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Theme-Toggle.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Toast.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Toggle-Group.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Toggle.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/Tooltip.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/components/ui/index.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/index.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/lib/ThemeProvider.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/lib/cornerRadius.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/lib/slot-helpers.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/lib/theme.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/lib/utils.d.ts +0 -0
- /package/lib/typescript/{package.json → module/package.json} +0 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Checkbox = Checkbox;
|
|
7
|
+
var _Icon = require("./Icon");
|
|
8
|
+
var _utils = require("../../lib/utils");
|
|
9
|
+
var CheckboxPrimitive = _interopRequireWildcard(require("@rn-primitives/checkbox"));
|
|
10
|
+
var _lucideReactNative = require("lucide-react-native");
|
|
11
|
+
var _reactNative = require("react-native");
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
14
|
+
const DEFAULT_HIT_SLOP = 24;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Interactive checkbox for boolean selections
|
|
18
|
+
*
|
|
19
|
+
* A control that allows users to toggle between checked and unchecked states.
|
|
20
|
+
* Features a checkmark indicator, configurable styling, and accessible touch targets.
|
|
21
|
+
*
|
|
22
|
+
* @component
|
|
23
|
+
* @example
|
|
24
|
+
* ```tsx
|
|
25
|
+
* // Basic checkbox
|
|
26
|
+
* <Checkbox checked={isChecked} onCheckedChange={setIsChecked} />
|
|
27
|
+
*
|
|
28
|
+
* // Checkbox with label
|
|
29
|
+
* <View className="flex-row items-center gap-2">
|
|
30
|
+
* <Checkbox id="terms" checked={accepted} onCheckedChange={setAccepted} />
|
|
31
|
+
* <Label htmlFor="terms">Accept terms and conditions</Label>
|
|
32
|
+
* </View>
|
|
33
|
+
*
|
|
34
|
+
* // Disabled checkbox
|
|
35
|
+
* <Checkbox checked={true} disabled />
|
|
36
|
+
* ```
|
|
37
|
+
*
|
|
38
|
+
* @accessibility
|
|
39
|
+
* - Uses 24px hit slop for easier touch interaction
|
|
40
|
+
* - Supports keyboard navigation on web
|
|
41
|
+
* - Proper ARIA attributes for screen readers
|
|
42
|
+
* - Visual focus indicators on web
|
|
43
|
+
*/
|
|
44
|
+
function Checkbox({
|
|
45
|
+
className,
|
|
46
|
+
checkedClassName,
|
|
47
|
+
indicatorClassName,
|
|
48
|
+
iconClassName,
|
|
49
|
+
...props
|
|
50
|
+
}) {
|
|
51
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(CheckboxPrimitive.Root, {
|
|
52
|
+
className: (0, _utils.cn)('border-input dark:bg-input/30 size-4 shrink-0 rounded-[4px] border shadow-sm shadow-black/5', _reactNative.Platform.select({
|
|
53
|
+
web: 'focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive peer cursor-default outline-none transition-shadow focus-visible:ring-[3px] disabled:cursor-not-allowed',
|
|
54
|
+
native: 'overflow-hidden'
|
|
55
|
+
}), props.checked && (0, _utils.cn)('border-primary', checkedClassName), props.disabled && 'opacity-50', className),
|
|
56
|
+
hitSlop: DEFAULT_HIT_SLOP,
|
|
57
|
+
...props,
|
|
58
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(CheckboxPrimitive.Indicator, {
|
|
59
|
+
className: (0, _utils.cn)('bg-primary h-full w-full items-center justify-center', indicatorClassName),
|
|
60
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
61
|
+
as: _lucideReactNative.Check,
|
|
62
|
+
size: 12,
|
|
63
|
+
strokeWidth: _reactNative.Platform.OS === 'web' ? 2.5 : 3.5,
|
|
64
|
+
className: (0, _utils.cn)('text-primary-foreground', iconClassName)
|
|
65
|
+
})
|
|
66
|
+
})
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=Checkbox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_Icon","require","_utils","CheckboxPrimitive","_interopRequireWildcard","_lucideReactNative","_reactNative","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","DEFAULT_HIT_SLOP","Checkbox","className","checkedClassName","indicatorClassName","iconClassName","props","jsx","Root","cn","Platform","select","web","native","checked","disabled","hitSlop","children","Indicator","Icon","as","Check","size","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exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.CollapsibleTrigger = exports.CollapsibleContent = exports.Collapsible = void 0;
|
|
7
|
+
var CollapsiblePrimitive = _interopRequireWildcard(require("@rn-primitives/collapsible"));
|
|
8
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
9
|
+
/**
|
|
10
|
+
* Root collapsible container
|
|
11
|
+
*
|
|
12
|
+
* An interactive component that can show and hide content. Unlike Accordion, it doesn't enforce
|
|
13
|
+
* any specific visual styling, making it more flexible for custom layouts.
|
|
14
|
+
*
|
|
15
|
+
* @component
|
|
16
|
+
* @example
|
|
17
|
+
* ```tsx
|
|
18
|
+
* <Collapsible open={isOpen} onOpenChange={setIsOpen}>
|
|
19
|
+
* <CollapsibleTrigger asChild>
|
|
20
|
+
* <Button variant="ghost"><Text>Toggle</Text></Button>
|
|
21
|
+
* </CollapsibleTrigger>
|
|
22
|
+
* <CollapsibleContent>
|
|
23
|
+
* <Text>This content can be shown or hidden</Text>
|
|
24
|
+
* </CollapsibleContent>
|
|
25
|
+
* </Collapsible>
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
const Collapsible = exports.Collapsible = CollapsiblePrimitive.Root;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Trigger button that toggles collapsible content visibility
|
|
32
|
+
*
|
|
33
|
+
* @component
|
|
34
|
+
*/
|
|
35
|
+
const CollapsibleTrigger = exports.CollapsibleTrigger = CollapsiblePrimitive.Trigger;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Collapsible content container
|
|
39
|
+
*
|
|
40
|
+
* Automatically animates height when expanding or collapsing.
|
|
41
|
+
*
|
|
42
|
+
* @component
|
|
43
|
+
*/
|
|
44
|
+
const CollapsibleContent = exports.CollapsibleContent = CollapsiblePrimitive.Content;
|
|
45
|
+
//# sourceMappingURL=Collapsible.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["CollapsiblePrimitive","_interopRequireWildcard","require","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","Collapsible","exports","Root","CollapsibleTrigger","Trigger","CollapsibleContent","Content"],"sourceRoot":"../../../../src","sources":["components/ui/Collapsible.tsx"],"mappings":";;;;;;AAAA,IAAAA,oBAAA,GAAAC,uBAAA,CAAAC,OAAA;AAAmE,SAAAD,wBAAAE,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAJ,uBAAA,YAAAA,CAAAE,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EAAAP,CAAA,EAAAM,CAAA,IAAAC,CAAA,CAAAP,CAAA,IAAAD,CAAA,CAAAC,CAAA,WAAAO,CAAA,KAAAR,CAAA,EAAAC,CAAA;AAEnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMkB,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAGtB,oBAAoB,CAACwB,IAAI;;AAE7C;AACA;AACA;AACA;AACA;AACA,MAAMC,kBAAkB,GAAAF,OAAA,CAAAE,kBAAA,GAAGzB,oBAAoB,CAAC0B,OAAO;;AAEvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMC,kBAAkB,GAAAJ,OAAA,CAAAI,kBAAA,GAAG3B,oBAAoB,CAAC4B,OAAO","ignoreList":[]}
|
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ContextMenu = void 0;
|
|
7
|
+
exports.ContextMenuCheckboxItem = ContextMenuCheckboxItem;
|
|
8
|
+
exports.ContextMenuContent = ContextMenuContent;
|
|
9
|
+
exports.ContextMenuGroup = void 0;
|
|
10
|
+
exports.ContextMenuItem = ContextMenuItem;
|
|
11
|
+
exports.ContextMenuLabel = ContextMenuLabel;
|
|
12
|
+
exports.ContextMenuRadioGroup = void 0;
|
|
13
|
+
exports.ContextMenuRadioItem = ContextMenuRadioItem;
|
|
14
|
+
exports.ContextMenuSeparator = ContextMenuSeparator;
|
|
15
|
+
exports.ContextMenuShortcut = ContextMenuShortcut;
|
|
16
|
+
exports.ContextMenuSub = void 0;
|
|
17
|
+
exports.ContextMenuSubContent = ContextMenuSubContent;
|
|
18
|
+
exports.ContextMenuSubTrigger = ContextMenuSubTrigger;
|
|
19
|
+
exports.ContextMenuTrigger = void 0;
|
|
20
|
+
var _Icon = require("./Icon");
|
|
21
|
+
var _NativeOnlyAnimatedView = require("./Native-Only-Animated-View");
|
|
22
|
+
var _Text = require("./Text");
|
|
23
|
+
var _utils = require("../../lib/utils");
|
|
24
|
+
var ContextMenuPrimitive = _interopRequireWildcard(require("@rn-primitives/context-menu"));
|
|
25
|
+
var _lucideReactNative = require("lucide-react-native");
|
|
26
|
+
var React = _interopRequireWildcard(require("react"));
|
|
27
|
+
var _reactNative = require("react-native");
|
|
28
|
+
var _nativewind = require("nativewind");
|
|
29
|
+
var _reactNativeReanimated = require("react-native-reanimated");
|
|
30
|
+
var _reactNativeScreens = require("react-native-screens");
|
|
31
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
32
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
33
|
+
const View = (0, _nativewind.cssInterop)(_reactNative.View, {
|
|
34
|
+
className: 'style'
|
|
35
|
+
});
|
|
36
|
+
const Text = (0, _nativewind.cssInterop)(_reactNative.Text, {
|
|
37
|
+
className: 'style'
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Root context menu component
|
|
42
|
+
*
|
|
43
|
+
* @component
|
|
44
|
+
* @example
|
|
45
|
+
* ```tsx
|
|
46
|
+
* <ContextMenu>
|
|
47
|
+
* <ContextMenuTrigger>
|
|
48
|
+
* <View><Text>Right-click me</Text></View>
|
|
49
|
+
* </ContextMenuTrigger>
|
|
50
|
+
* <ContextMenuContent>
|
|
51
|
+
* <ContextMenuItem><Text>Edit</Text></ContextMenuItem>
|
|
52
|
+
* <ContextMenuItem><Text>Delete</Text></ContextMenuItem>
|
|
53
|
+
* </ContextMenuContent>
|
|
54
|
+
* </ContextMenu>
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
const ContextMenu = exports.ContextMenu = ContextMenuPrimitive.Root;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Trigger component that opens context menu on right-click or long-press
|
|
61
|
+
* @component
|
|
62
|
+
*/
|
|
63
|
+
const ContextMenuTrigger = exports.ContextMenuTrigger = ContextMenuPrimitive.Trigger;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Groups related context menu items
|
|
67
|
+
* @component
|
|
68
|
+
*/
|
|
69
|
+
const ContextMenuGroup = exports.ContextMenuGroup = ContextMenuPrimitive.Group;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Root component for nested submenu
|
|
73
|
+
* @component
|
|
74
|
+
*/
|
|
75
|
+
const ContextMenuSub = exports.ContextMenuSub = ContextMenuPrimitive.Sub;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Groups radio items for single selection
|
|
79
|
+
* @component
|
|
80
|
+
*/
|
|
81
|
+
const ContextMenuRadioGroup = exports.ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Trigger for opening a nested submenu
|
|
85
|
+
* @component
|
|
86
|
+
*/
|
|
87
|
+
function ContextMenuSubTrigger({
|
|
88
|
+
className: _className,
|
|
89
|
+
inset,
|
|
90
|
+
children,
|
|
91
|
+
iconClassName,
|
|
92
|
+
...props
|
|
93
|
+
}) {
|
|
94
|
+
const {
|
|
95
|
+
open
|
|
96
|
+
} = ContextMenuPrimitive.useSubContext();
|
|
97
|
+
const icon = _reactNative.Platform.OS === 'web' ? _lucideReactNative.ChevronRight : open ? _lucideReactNative.ChevronUp : _lucideReactNative.ChevronDown;
|
|
98
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Text.TextClassContext.Provider, {
|
|
99
|
+
value: (0, _utils.cn)('text-sm select-none group-active:text-accent-foreground', open && 'text-accent-foreground'),
|
|
100
|
+
children: ["supported by NativeWind", /*#__PURE__*/(0, _jsxRuntime.jsxs)(ContextMenuPrimitive.SubTrigger, {
|
|
101
|
+
className: (0, _utils.cn)('active:bg-accent group flex flex-row items-center rounded-sm px-2 py-2 sm:py-1.5', _reactNative.Platform.select({
|
|
102
|
+
web: 'focus:bg-accent focus:text-accent-foreground cursor-default outline-none [&_svg]:pointer-events-none'
|
|
103
|
+
}), open && (0, _utils.cn)('bg-accent', _reactNative.Platform.select({
|
|
104
|
+
native: 'mb-1'
|
|
105
|
+
})), inset && 'pl-8'),
|
|
106
|
+
...props,
|
|
107
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
108
|
+
children: children
|
|
109
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
110
|
+
as: icon,
|
|
111
|
+
className: (0, _utils.cn)('text-foreground ml-auto size-4 shrink-0', iconClassName)
|
|
112
|
+
})]
|
|
113
|
+
})]
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Content container for nested submenu items
|
|
119
|
+
* @component
|
|
120
|
+
*/
|
|
121
|
+
function ContextMenuSubContent({
|
|
122
|
+
className,
|
|
123
|
+
...props
|
|
124
|
+
}) {
|
|
125
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_NativeOnlyAnimatedView.NativeOnlyAnimatedView, {
|
|
126
|
+
entering: _reactNativeReanimated.FadeIn,
|
|
127
|
+
children: ["supported by NativeWind", /*#__PURE__*/(0, _jsxRuntime.jsx)(ContextMenuPrimitive.SubContent, {
|
|
128
|
+
className: (0, _utils.cn)('bg-popover border-border overflow-hidden rounded-md border p-1 shadow-lg shadow-black/5', _reactNative.Platform.select({
|
|
129
|
+
web: 'animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 fade-in-0 data-[state=closed]:zoom-out-95 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-context-menu-content-transform-origin) z-50 min-w-[8rem]'
|
|
130
|
+
}), className),
|
|
131
|
+
...props
|
|
132
|
+
})]
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Full window overlay wrapper for iOS
|
|
138
|
+
*/
|
|
139
|
+
const FullWindowOverlay = _reactNative.Platform.OS === 'ios' ? _reactNativeScreens.FullWindowOverlay : React.Fragment;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Main content container for context menu items
|
|
143
|
+
* @component
|
|
144
|
+
*/
|
|
145
|
+
function ContextMenuContent({
|
|
146
|
+
className,
|
|
147
|
+
overlayClassName,
|
|
148
|
+
overlayStyle,
|
|
149
|
+
portalHost,
|
|
150
|
+
...props
|
|
151
|
+
}) {
|
|
152
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(ContextMenuPrimitive.Portal, {
|
|
153
|
+
hostName: portalHost,
|
|
154
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(FullWindowOverlay, {
|
|
155
|
+
children: ["supported by NativeWind", /*#__PURE__*/(0, _jsxRuntime.jsx)(ContextMenuPrimitive.Overlay, {
|
|
156
|
+
style: _reactNative.Platform.select({
|
|
157
|
+
web: overlayStyle ?? undefined,
|
|
158
|
+
native: overlayStyle ? _reactNative.StyleSheet.flatten([_reactNative.StyleSheet.absoluteFill, overlayStyle]) : _reactNative.StyleSheet.absoluteFill
|
|
159
|
+
}),
|
|
160
|
+
className: overlayClassName,
|
|
161
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_NativeOnlyAnimatedView.NativeOnlyAnimatedView, {
|
|
162
|
+
entering: _reactNativeReanimated.FadeIn,
|
|
163
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Text.TextClassContext.Provider, {
|
|
164
|
+
value: "text-popover-foreground",
|
|
165
|
+
children: ["is supported by NativeWind", /*#__PURE__*/(0, _jsxRuntime.jsx)(ContextMenuPrimitive.Content, {
|
|
166
|
+
className: (0, _utils.cn)('bg-popover border-border min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-lg shadow-black/5', _reactNative.Platform.select({
|
|
167
|
+
web: (0, _utils.cn)('animate-in fade-in-0 zoom-in-95 max-h-(--radix-context-menu-content-available-height) origin-(--radix-context-menu-content-transform-origin) z-50 cursor-default', props.side === 'bottom' && 'slide-in-from-top-2', props.side === 'top' && 'slide-in-from-bottom-2')
|
|
168
|
+
}), className),
|
|
169
|
+
...props
|
|
170
|
+
})]
|
|
171
|
+
})
|
|
172
|
+
})
|
|
173
|
+
})]
|
|
174
|
+
})
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Individual context menu item
|
|
180
|
+
* @component
|
|
181
|
+
*/
|
|
182
|
+
function ContextMenuItem({
|
|
183
|
+
className,
|
|
184
|
+
inset,
|
|
185
|
+
variant,
|
|
186
|
+
...props
|
|
187
|
+
}) {
|
|
188
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Text.TextClassContext.Provider, {
|
|
189
|
+
value: (0, _utils.cn)('select-none text-sm text-popover-foreground group-active:text-popover-foreground', variant === 'destructive' && 'text-destructive group-active:text-destructive'),
|
|
190
|
+
children: ["supported by NativeWind", /*#__PURE__*/(0, _jsxRuntime.jsx)(ContextMenuPrimitive.Item, {
|
|
191
|
+
className: (0, _utils.cn)('active:bg-accent group relative flex flex-row items-center gap-2 rounded-sm px-2 py-2 sm:py-1.5', _reactNative.Platform.select({
|
|
192
|
+
web: (0, _utils.cn)('focus:bg-accent focus:text-accent-foreground cursor-default outline-none data-[disabled]:pointer-events-none', variant === 'destructive' && 'focus:bg-destructive/10 dark:focus:bg-destructive/20')
|
|
193
|
+
}), variant === 'destructive' && 'active:bg-destructive/10 dark:active:bg-destructive/20', props.disabled && 'opacity-50', inset && 'pl-8', className),
|
|
194
|
+
...props
|
|
195
|
+
})]
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* Menu item with checkbox for multi-selection
|
|
201
|
+
* @component
|
|
202
|
+
*/
|
|
203
|
+
function ContextMenuCheckboxItem({
|
|
204
|
+
className,
|
|
205
|
+
children,
|
|
206
|
+
...props
|
|
207
|
+
}) {
|
|
208
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Text.TextClassContext.Provider, {
|
|
209
|
+
value: "text-sm text-popover-foreground select-none group-active:text-accent-foreground",
|
|
210
|
+
children: ["supported by NativeWind", /*#__PURE__*/(0, _jsxRuntime.jsxs)(ContextMenuPrimitive.CheckboxItem, {
|
|
211
|
+
className: (0, _utils.cn)('active:bg-accent group relative flex flex-row items-center gap-2 rounded-sm py-2 pl-8 pr-2 sm:py-1.5', _reactNative.Platform.select({
|
|
212
|
+
web: 'focus:bg-accent focus:text-accent-foreground cursor-default outline-none data-[disabled]:pointer-events-none'
|
|
213
|
+
}), props.disabled && 'opacity-50', className),
|
|
214
|
+
...props,
|
|
215
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(View, {
|
|
216
|
+
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
217
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(ContextMenuPrimitive.ItemIndicator, {
|
|
218
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
219
|
+
as: _lucideReactNative.Check,
|
|
220
|
+
className: (0, _utils.cn)('text-foreground size-4', _reactNative.Platform.select({
|
|
221
|
+
web: 'pointer-events-none'
|
|
222
|
+
}))
|
|
223
|
+
})
|
|
224
|
+
})
|
|
225
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
226
|
+
children: children
|
|
227
|
+
})]
|
|
228
|
+
})]
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Menu item with radio button for single selection
|
|
234
|
+
* @component
|
|
235
|
+
*/
|
|
236
|
+
function ContextMenuRadioItem({
|
|
237
|
+
className,
|
|
238
|
+
children,
|
|
239
|
+
...props
|
|
240
|
+
}) {
|
|
241
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Text.TextClassContext.Provider, {
|
|
242
|
+
value: "text-sm text-popover-foreground select-none group-active:text-accent-foreground",
|
|
243
|
+
children: ["supported by NativeWind", /*#__PURE__*/(0, _jsxRuntime.jsxs)(ContextMenuPrimitive.RadioItem, {
|
|
244
|
+
className: (0, _utils.cn)('active:bg-accent group relative flex flex-row items-center gap-2 rounded-sm py-2 pl-8 pr-2 sm:py-1.5', _reactNative.Platform.select({
|
|
245
|
+
web: 'focus:bg-accent focus:text-accent-foreground cursor-default outline-none data-[disabled]:pointer-events-none'
|
|
246
|
+
}), props.disabled && 'opacity-50', className),
|
|
247
|
+
...props,
|
|
248
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(View, {
|
|
249
|
+
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
250
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(ContextMenuPrimitive.ItemIndicator, {
|
|
251
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(View, {
|
|
252
|
+
className: "bg-foreground h-2 w-2 rounded-full"
|
|
253
|
+
})
|
|
254
|
+
})
|
|
255
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
256
|
+
children: children
|
|
257
|
+
})]
|
|
258
|
+
})]
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* Label for grouping context menu sections
|
|
264
|
+
* @component
|
|
265
|
+
*/
|
|
266
|
+
function ContextMenuLabel({
|
|
267
|
+
className,
|
|
268
|
+
inset,
|
|
269
|
+
...props
|
|
270
|
+
}) {
|
|
271
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(ContextMenuPrimitive.Label, {
|
|
272
|
+
className: (0, _utils.cn)('text-foreground px-2 py-2 text-sm font-medium sm:py-1.5', inset && 'pl-8', className),
|
|
273
|
+
...props
|
|
274
|
+
});
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* Visual separator between menu items
|
|
279
|
+
* @component
|
|
280
|
+
*/
|
|
281
|
+
function ContextMenuSeparator({
|
|
282
|
+
className,
|
|
283
|
+
...props
|
|
284
|
+
}) {
|
|
285
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(ContextMenuPrimitive.Separator, {
|
|
286
|
+
className: (0, _utils.cn)('bg-border -mx-1 my-1 h-px', className),
|
|
287
|
+
...props
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* Displays keyboard shortcut hint for menu items
|
|
293
|
+
* @component
|
|
294
|
+
*/
|
|
295
|
+
function ContextMenuShortcut({
|
|
296
|
+
className,
|
|
297
|
+
...props
|
|
298
|
+
}) {
|
|
299
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Text, {
|
|
300
|
+
className: (0, _utils.cn)('text-muted-foreground ml-auto text-xs tracking-widest', className),
|
|
301
|
+
...props
|
|
302
|
+
});
|
|
303
|
+
}
|
|
304
|
+
//# sourceMappingURL=Context-Menu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_Icon","require","_NativeOnlyAnimatedView","_Text","_utils","ContextMenuPrimitive","_interopRequireWildcard","_lucideReactNative","React","_reactNative","_nativewind","_reactNativeReanimated","_reactNativeScreens","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","View","cssInterop","RNView","className","Text","RNText","ContextMenu","exports","Root","ContextMenuTrigger","Trigger","ContextMenuGroup","Group","ContextMenuSub","Sub","ContextMenuRadioGroup","RadioGroup","ContextMenuSubTrigger","_className","inset","children","iconClassName","props","open","useSubContext","icon","Platform","OS","ChevronRight","ChevronUp","ChevronDown","jsxs","TextClassContext","Provider","value","cn","SubTrigger","select","web","native","jsx","Fragment","Icon","as","ContextMenuSubContent","NativeOnlyAnimatedView","entering","FadeIn","SubContent","FullWindowOverlay","RNFullWindowOverlay","ContextMenuContent","overlayClassName","overlayStyle","portalHost","Portal","hostName","Overlay","style","undefined","StyleSheet","flatten","absoluteFill","Content","side","ContextMenuItem","variant","Item","disabled","ContextMenuCheckboxItem","CheckboxItem","ItemIndicator","Check","ContextMenuRadioItem","RadioItem","ContextMenuLabel","Label","ContextMenuSeparator","Separator","ContextMenuShortcut"],"sourceRoot":"../../../../src","sources":["components/ui/Context-Menu.tsx"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,uBAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,oBAAA,GAAAC,uBAAA,CAAAL,OAAA;AACA,IAAAM,kBAAA,GAAAN,OAAA;AAMA,IAAAO,KAAA,GAAAF,uBAAA,CAAAL,OAAA;AACA,IAAAQ,YAAA,GAAAR,OAAA;AASA,IAAAS,WAAA,GAAAT,OAAA;AACA,IAAAU,sBAAA,GAAAV,OAAA;AACA,IAAAW,mBAAA,GAAAX,OAAA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mG,aAAa;UAAAnD,QAAA,eACjC,IAAAxC,WAAA,CAAA4D,GAAA,EAACxC,IAAI;YAACG,SAAS,EAAC;UAAoC,CAAE;QAAC,CACrB;MAAC,CACjC,CAAC,eACP,IAAAvB,WAAA,CAAA4D,GAAA,EAAA5D,WAAA,CAAA6D,QAAA;QAAArB,QAAA,EAAGA;MAAQ,CAAG,CAAC;IAAA,CACe,CAAC;EAAA,CACR,CAAC;AAEhC;;AAEA;AACA;AACA;AACA;AACA,SAASuD,gBAAgBA,CAAC;EACxBxE,SAAS;EACTgB,KAAK;EACL,GAAGG;AAKH,CAAC,EAAE;EACH,oBACE,IAAA1C,WAAA,CAAA4D,GAAA,EAACpE,oBAAoB,CAACwG,KAAK;IACzBzE,SAAS,EAAE,IAAAgC,SAAE,EACX,yDAAyD,EACzDhB,KAAK,IAAI,MAAM,EACfhB,SACF,CAAE;IAAA,GACEmB;EAAK,CACV,CAAC;AAEN;;AAEA;AACA;AACA;AACA;AACA,SAASuD,oBAAoBA,CAAC;EAC5B1E,SAAS;EACT,GAAGmB;AAEkD,CAAC,EAAE;EACxD,oBACE,IAAA1C,WAAA,CAAA4D,GAAA,EAACpE,oBAAoB,CAAC0G,SAAS;IAC7B3E,SAAS,EAAE,IAAAgC,SAAE,EAAC,2BAA2B,EAAEhC,SAAS,CAAE;IAAA,GAClDmB;EAAK,CACV,CAAC;AAEN;;AAEA;AACA;AACA;AACA;AACA,SAASyD,mBAAmBA,CAAC;EAC3B5E,SAAS;EACT,GAAGmB;AACkC,CAAC,EAAE;EACxC,oBACE,IAAA1C,WAAA,CAAA4D,GAAA,EAACpC,IAAI;IACHD,SAAS,EAAE,IAAAgC,SAAE,EACX,uDAAuD,EACvDhC,SACF,CAAE;IAAA,GACEmB;EAAK,CACV,CAAC;AAEN","ignoreList":[]}
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.CustomCardTitle = exports.CustomCardHeader = exports.CustomCardFooter = exports.CustomCardDescription = exports.CustomCardContent = exports.CustomCard = void 0;
|
|
7
|
+
var Slot = _interopRequireWildcard(require("@rn-primitives/slot"));
|
|
8
|
+
var React = _interopRequireWildcard(require("react"));
|
|
9
|
+
var _reactNative = require("react-native");
|
|
10
|
+
var _reactNativeFigmaSquircle = require("react-native-figma-squircle");
|
|
11
|
+
var _nativewind = require("nativewind");
|
|
12
|
+
var _utils = require("../../lib/utils");
|
|
13
|
+
var _Text = require("./Text");
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
16
|
+
const View = (0, _nativewind.cssInterop)(_reactNative.View, {
|
|
17
|
+
className: 'style'
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* CustomCard container component with squircle shape
|
|
22
|
+
*
|
|
23
|
+
* Provides elevated container with smooth squircle corners (iOS-like rounded corners),
|
|
24
|
+
* border, and shadow. Uses Figma's squircle algorithm for premium look.
|
|
25
|
+
* Use with CardHeader, CardTitle, CardDescription, CardContent, and CardFooter
|
|
26
|
+
* for a complete card structure.
|
|
27
|
+
*
|
|
28
|
+
* @component
|
|
29
|
+
* @example
|
|
30
|
+
* ```tsx
|
|
31
|
+
* <CustomCard>
|
|
32
|
+
* <CardHeader>
|
|
33
|
+
* <CardTitle><Text>Title</Text></CardTitle>
|
|
34
|
+
* <CardDescription><Text>Description</Text></CardDescription>
|
|
35
|
+
* </CardHeader>
|
|
36
|
+
* <CardContent>
|
|
37
|
+
* <Text>Card content goes here</Text>
|
|
38
|
+
* </CardContent>
|
|
39
|
+
* <CardFooter>
|
|
40
|
+
* <Button>Action</Button>
|
|
41
|
+
* </CardFooter>
|
|
42
|
+
* </CustomCard>
|
|
43
|
+
*
|
|
44
|
+
* // With custom corner smoothing
|
|
45
|
+
* <CustomCard cornerSmoothing={1}>
|
|
46
|
+
* <Text>Extra smooth corners</Text>
|
|
47
|
+
* </CustomCard>
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
50
|
+
* @property {boolean} [asChild] - When true, merges props into immediate child
|
|
51
|
+
* @property {string} [className] - Additional Tailwind classes
|
|
52
|
+
* @property {number} [cornerRadius=16] - Corner radius in pixels
|
|
53
|
+
* @property {number} [cornerSmoothing=0.8] - Smoothing factor (0-1), higher = more iOS-like
|
|
54
|
+
*/
|
|
55
|
+
const CustomCard = exports.CustomCard = /*#__PURE__*/React.forwardRef(({
|
|
56
|
+
className: _className,
|
|
57
|
+
asChild = false,
|
|
58
|
+
cornerRadius = 16,
|
|
59
|
+
cornerSmoothing = 1.0,
|
|
60
|
+
children,
|
|
61
|
+
...props
|
|
62
|
+
}, ref) => {
|
|
63
|
+
const colorScheme = (0, _reactNative.useColorScheme)();
|
|
64
|
+
const isDark = colorScheme === 'dark';
|
|
65
|
+
if (asChild) {
|
|
66
|
+
const Component = Slot.View;
|
|
67
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
|
|
68
|
+
ref: ref,
|
|
69
|
+
...props,
|
|
70
|
+
children: children
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// Use SquircleView directly as the container with inner View for content
|
|
75
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeFigmaSquircle.SquircleView, {
|
|
76
|
+
squircleParams: {
|
|
77
|
+
cornerRadius,
|
|
78
|
+
cornerSmoothing,
|
|
79
|
+
fillColor: isDark ? 'hsl(224 71.4% 4.1%)' : 'hsl(0 0% 100%)',
|
|
80
|
+
strokeColor: isDark ? 'hsl(215 27.9% 16.9%)' : 'hsl(214.3 31.8% 91.4%)',
|
|
81
|
+
strokeWidth: 1
|
|
82
|
+
},
|
|
83
|
+
...props,
|
|
84
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(View, {
|
|
85
|
+
ref: ref,
|
|
86
|
+
className: "px-4",
|
|
87
|
+
children: children
|
|
88
|
+
})
|
|
89
|
+
});
|
|
90
|
+
});
|
|
91
|
+
CustomCard.displayName = 'CustomCard';
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* CustomCardHeader - Container for card title and description
|
|
95
|
+
*
|
|
96
|
+
* Provides proper spacing for title and description elements at the top of a card.
|
|
97
|
+
*
|
|
98
|
+
* @property {boolean} [asChild] - When true, merges props into immediate child
|
|
99
|
+
* @property {string} [className] - Additional Tailwind classes
|
|
100
|
+
*/
|
|
101
|
+
const CustomCardHeader = exports.CustomCardHeader = /*#__PURE__*/React.forwardRef(({
|
|
102
|
+
className,
|
|
103
|
+
asChild = false,
|
|
104
|
+
...props
|
|
105
|
+
}, ref) => {
|
|
106
|
+
const Component = asChild ? Slot.View : View;
|
|
107
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
|
|
108
|
+
className: (0, _utils.cn)('flex flex-col gap-1.5 p-6', className),
|
|
109
|
+
ref: ref,
|
|
110
|
+
...props
|
|
111
|
+
});
|
|
112
|
+
});
|
|
113
|
+
CustomCardHeader.displayName = 'CustomCardHeader';
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* CustomCardTitle - Main title text for the card
|
|
117
|
+
*
|
|
118
|
+
* Automatically styles child Text components with large, semibold typography.
|
|
119
|
+
* Uses TextClassContext to apply consistent styling to nested Text elements.
|
|
120
|
+
*
|
|
121
|
+
* @property {boolean} [asChild] - When true, merges props into immediate child
|
|
122
|
+
* @property {string} [className] - Additional Tailwind classes for text styling
|
|
123
|
+
*/
|
|
124
|
+
const CustomCardTitle = exports.CustomCardTitle = /*#__PURE__*/React.forwardRef(({
|
|
125
|
+
className,
|
|
126
|
+
asChild = false,
|
|
127
|
+
...props
|
|
128
|
+
}, ref) => {
|
|
129
|
+
const Component = asChild ? Slot.View : View;
|
|
130
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.TextClassContext.Provider, {
|
|
131
|
+
value: (0, _utils.cn)('text-2xl font-semibold leading-none tracking-tight text-card-foreground dark:text-card-foreground', className),
|
|
132
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
|
|
133
|
+
ref: ref,
|
|
134
|
+
...props
|
|
135
|
+
})
|
|
136
|
+
});
|
|
137
|
+
});
|
|
138
|
+
CustomCardTitle.displayName = 'CustomCardTitle';
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* CustomCardDescription - Subtitle or description text for the card
|
|
142
|
+
*
|
|
143
|
+
* Automatically styles child Text components with muted, smaller typography.
|
|
144
|
+
* Uses TextClassContext to apply consistent styling to nested Text elements.
|
|
145
|
+
*
|
|
146
|
+
* @property {boolean} [asChild] - When true, merges props into immediate child
|
|
147
|
+
* @property {string} [className] - Additional Tailwind classes for text styling
|
|
148
|
+
*/
|
|
149
|
+
const CustomCardDescription = exports.CustomCardDescription = /*#__PURE__*/React.forwardRef(({
|
|
150
|
+
className,
|
|
151
|
+
asChild = false,
|
|
152
|
+
...props
|
|
153
|
+
}, ref) => {
|
|
154
|
+
const Component = asChild ? Slot.View : View;
|
|
155
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.TextClassContext.Provider, {
|
|
156
|
+
value: (0, _utils.cn)('text-sm text-muted-foreground dark:text-muted-foreground', className),
|
|
157
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
|
|
158
|
+
ref: ref,
|
|
159
|
+
...props
|
|
160
|
+
})
|
|
161
|
+
});
|
|
162
|
+
});
|
|
163
|
+
CustomCardDescription.displayName = 'CustomCardDescription';
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* CustomCardContent - Main content area of the card
|
|
167
|
+
*
|
|
168
|
+
* Container for the primary card content with appropriate padding.
|
|
169
|
+
* Top padding is removed to flow naturally after CustomCardHeader.
|
|
170
|
+
*
|
|
171
|
+
* @property {boolean} [asChild] - When true, merges props into immediate child
|
|
172
|
+
* @property {string} [className] - Additional Tailwind classes
|
|
173
|
+
*/
|
|
174
|
+
const CustomCardContent = exports.CustomCardContent = /*#__PURE__*/React.forwardRef(({
|
|
175
|
+
className,
|
|
176
|
+
asChild = false,
|
|
177
|
+
...props
|
|
178
|
+
}, ref) => {
|
|
179
|
+
const Component = asChild ? Slot.View : View;
|
|
180
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
|
|
181
|
+
className: (0, _utils.cn)('p-6 pt-0', className),
|
|
182
|
+
ref: ref,
|
|
183
|
+
...props
|
|
184
|
+
});
|
|
185
|
+
});
|
|
186
|
+
CustomCardContent.displayName = 'CustomCardContent';
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* CustomCardFooter - Footer area for actions or additional info
|
|
190
|
+
*
|
|
191
|
+
* Typically contains buttons or other interactive elements.
|
|
192
|
+
* Arranged as a row with centered items.
|
|
193
|
+
*
|
|
194
|
+
* @property {boolean} [asChild] - When true, merges props into immediate child
|
|
195
|
+
* @property {string} [className] - Additional Tailwind classes
|
|
196
|
+
*/
|
|
197
|
+
const CustomCardFooter = exports.CustomCardFooter = /*#__PURE__*/React.forwardRef(({
|
|
198
|
+
className,
|
|
199
|
+
asChild = false,
|
|
200
|
+
...props
|
|
201
|
+
}, ref) => {
|
|
202
|
+
const Component = asChild ? Slot.View : View;
|
|
203
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
|
|
204
|
+
className: (0, _utils.cn)('flex flex-row items-center p-6 pt-0', className),
|
|
205
|
+
ref: ref,
|
|
206
|
+
...props
|
|
207
|
+
});
|
|
208
|
+
});
|
|
209
|
+
CustomCardFooter.displayName = 'CustomCardFooter';
|
|
210
|
+
//# sourceMappingURL=Custom-Card.js.map
|