@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,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.RadioGroup = RadioGroup;
|
|
7
|
+
exports.RadioGroupItem = RadioGroupItem;
|
|
8
|
+
var _utils = require("../../lib/utils");
|
|
9
|
+
var RadioGroupPrimitive = _interopRequireWildcard(require("@rn-primitives/radio-group"));
|
|
10
|
+
var _reactNative = require("react-native");
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
+
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); }
|
|
13
|
+
/**
|
|
14
|
+
* Radio group component for single-choice selection
|
|
15
|
+
*
|
|
16
|
+
* Groups radio buttons together to ensure only one can be selected at a time.
|
|
17
|
+
*
|
|
18
|
+
* @component
|
|
19
|
+
* @example
|
|
20
|
+
* ```tsx
|
|
21
|
+
* <RadioGroup value={selectedValue} onValueChange={setSelectedValue}>
|
|
22
|
+
* <View className="flex-row items-center gap-2">
|
|
23
|
+
* <RadioGroupItem value="option1" />
|
|
24
|
+
* <Label>Option 1</Label>
|
|
25
|
+
* </View>
|
|
26
|
+
* <View className="flex-row items-center gap-2">
|
|
27
|
+
* <RadioGroupItem value="option2" />
|
|
28
|
+
* <Label>Option 2</Label>
|
|
29
|
+
* </View>
|
|
30
|
+
* </RadioGroup>
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* @accessibility
|
|
34
|
+
* - Uses proper ARIA role for radio group
|
|
35
|
+
* - Keyboard navigation support (arrow keys)
|
|
36
|
+
* - Screen reader friendly with proper labeling
|
|
37
|
+
*/function RadioGroup({
|
|
38
|
+
className,
|
|
39
|
+
...props
|
|
40
|
+
}) {
|
|
41
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(RadioGroupPrimitive.Root, {
|
|
42
|
+
className: (0, _utils.cn)('gap-3', className),
|
|
43
|
+
...props
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Individual radio button item
|
|
49
|
+
*
|
|
50
|
+
* Displays as a circular button with an inner indicator when selected.
|
|
51
|
+
*
|
|
52
|
+
* @component
|
|
53
|
+
* @example
|
|
54
|
+
* ```tsx
|
|
55
|
+
* <RadioGroupItem value="dark" />
|
|
56
|
+
* <RadioGroupItem value="light" disabled />
|
|
57
|
+
* ```
|
|
58
|
+
*
|
|
59
|
+
* @accessibility
|
|
60
|
+
* - Disabled state prevents interaction
|
|
61
|
+
* - Focus visible states on web
|
|
62
|
+
* - Invalid state styling for form validation
|
|
63
|
+
*/
|
|
64
|
+
function RadioGroupItem({
|
|
65
|
+
className,
|
|
66
|
+
...props
|
|
67
|
+
}) {
|
|
68
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(RadioGroupPrimitive.Item, {
|
|
69
|
+
className: (0, _utils.cn)('border-input dark:bg-input/30 aspect-square size-4 shrink-0 items-center justify-center rounded-full border shadow-sm shadow-black/5', _reactNative.Platform.select({
|
|
70
|
+
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 outline-none transition-all focus-visible:ring-[3px] disabled:cursor-not-allowed'
|
|
71
|
+
}), props.disabled && 'opacity-50', className),
|
|
72
|
+
...props,
|
|
73
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(RadioGroupPrimitive.Indicator, {
|
|
74
|
+
className: "bg-primary size-2 rounded-full"
|
|
75
|
+
})
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
//# sourceMappingURL=Radio-Group.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_utils","require","RadioGroupPrimitive","_interopRequireWildcard","_reactNative","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","RadioGroup","className","props","jsx","Root","cn","RadioGroupItem","Item","Platform","select","web","disabled","children","Indicator"],"sourceRoot":"../../../../src","sources":["components/ui/Radio-Group.tsx"],"mappings":";;;;;;;AAAA,IAAAA,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BC,SAAS;EACT,GAAGC;AAE4C,CAAC,EAAE;EAClD,oBACE,IAAAtB,WAAA,CAAAuB,GAAA,EAAC1B,mBAAmB,CAAC2B,IAAI;IAACH,SAAS,EAAE,IAAAI,SAAE,EAAC,OAAO,EAAEJ,SAAS,CAAE;IAAA,GAAKC;EAAK,CAAG,CAAC;AAE9E;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASI,cAAcA,CAAC;EACtBL,SAAS;EACT,GAAGC;AAE4C,CAAC,EAAE;EAClD,oBACE,IAAAtB,WAAA,CAAAuB,GAAA,EAAC1B,mBAAmB,CAAC8B,IAAI;IACvBN,SAAS,EAAE,IAAAI,SAAE,EACX,sIAAsI,EACtIG,qBAAQ,CAACC,MAAM,CAAC;MACdC,GAAG,EAAE;IACP,CAAC,CAAC,EACFR,KAAK,CAACS,QAAQ,IAAI,YAAY,EAC9BV,SACF,CAAE;IAAA,GACEC,KAAK;IAAAU,QAAA,eAET,IAAAhC,WAAA,CAAAuB,GAAA,EAAC1B,mBAAmB,CAACoC,SAAS;MAACZ,SAAS,EAAC;IAAgC,CAAE;EAAC,CACpD,CAAC;AAE/B","ignoreList":[]}
|
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.NativeSelectScrollView = NativeSelectScrollView;
|
|
7
|
+
exports.Select = void 0;
|
|
8
|
+
exports.SelectContent = SelectContent;
|
|
9
|
+
exports.SelectGroup = void 0;
|
|
10
|
+
exports.SelectItem = SelectItem;
|
|
11
|
+
exports.SelectLabel = SelectLabel;
|
|
12
|
+
exports.SelectScrollDownButton = SelectScrollDownButton;
|
|
13
|
+
exports.SelectScrollUpButton = SelectScrollUpButton;
|
|
14
|
+
exports.SelectSeparator = SelectSeparator;
|
|
15
|
+
exports.SelectTrigger = SelectTrigger;
|
|
16
|
+
exports.SelectValue = SelectValue;
|
|
17
|
+
var _Icon = require("./Icon");
|
|
18
|
+
var _NativeOnlyAnimatedView = require("./Native-Only-Animated-View");
|
|
19
|
+
var _Text = require("./Text");
|
|
20
|
+
var _utils = require("../../lib/utils");
|
|
21
|
+
var SelectPrimitive = _interopRequireWildcard(require("@rn-primitives/select"));
|
|
22
|
+
var _lucideReactNative = require("lucide-react-native");
|
|
23
|
+
var React = _interopRequireWildcard(require("react"));
|
|
24
|
+
var _reactNative = require("react-native");
|
|
25
|
+
var _nativewind = require("nativewind");
|
|
26
|
+
var _reactNativeReanimated = require("react-native-reanimated");
|
|
27
|
+
var _reactNativeScreens = require("react-native-screens");
|
|
28
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
29
|
+
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); }
|
|
30
|
+
const View = (0, _nativewind.cssInterop)(_reactNative.View, {
|
|
31
|
+
className: 'style'
|
|
32
|
+
});
|
|
33
|
+
const ScrollView = (0, _nativewind.cssInterop)(_reactNative.ScrollView, {
|
|
34
|
+
className: 'style'
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Option type for select items
|
|
39
|
+
*/
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Root select component for dropdown selection
|
|
43
|
+
*
|
|
44
|
+
* @component
|
|
45
|
+
* @example
|
|
46
|
+
* ```tsx
|
|
47
|
+
* <Select value={value} onValueChange={setValue}>
|
|
48
|
+
* <SelectTrigger>
|
|
49
|
+
* <SelectValue placeholder="Select an option" />
|
|
50
|
+
* </SelectTrigger>
|
|
51
|
+
* <SelectContent>
|
|
52
|
+
* <SelectItem value="option1">
|
|
53
|
+
* <Text>Option 1</Text>
|
|
54
|
+
* </SelectItem>
|
|
55
|
+
* </SelectContent>
|
|
56
|
+
* </Select>
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
const Select = exports.Select = SelectPrimitive.Root;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Groups related select items together
|
|
63
|
+
* @component
|
|
64
|
+
*/
|
|
65
|
+
const SelectGroup = exports.SelectGroup = SelectPrimitive.Group;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Displays the selected value or placeholder text
|
|
69
|
+
* @component
|
|
70
|
+
*/
|
|
71
|
+
function SelectValue({
|
|
72
|
+
ref,
|
|
73
|
+
className,
|
|
74
|
+
...props
|
|
75
|
+
}) {
|
|
76
|
+
const {
|
|
77
|
+
value
|
|
78
|
+
} = SelectPrimitive.useRootContext();
|
|
79
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(SelectPrimitive.Value, {
|
|
80
|
+
ref: ref,
|
|
81
|
+
className: (0, _utils.cn)('text-foreground line-clamp-1 flex flex-row items-center gap-2 text-sm', !value && 'text-muted-foreground', className),
|
|
82
|
+
...props
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Trigger button that opens the select dropdown
|
|
88
|
+
* @component
|
|
89
|
+
*/
|
|
90
|
+
function SelectTrigger({
|
|
91
|
+
ref,
|
|
92
|
+
className,
|
|
93
|
+
children,
|
|
94
|
+
size = 'default',
|
|
95
|
+
...props
|
|
96
|
+
}) {
|
|
97
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(SelectPrimitive.Trigger, {
|
|
98
|
+
ref: ref,
|
|
99
|
+
className: (0, _utils.cn)('border-input dark:bg-input/30 dark:active:bg-input/50 bg-background flex h-10 flex-row items-center justify-between gap-2 rounded-md border px-3 py-2 shadow-sm shadow-black/5 sm:h-9', _reactNative.Platform.select({
|
|
100
|
+
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 dark:hover:bg-input/50 w-fit whitespace-nowrap text-sm outline-none transition-[color,box-shadow] focus-visible:ring-[3px] disabled:cursor-not-allowed [&_svg]:pointer-events-none [&_svg]:shrink-0'
|
|
101
|
+
}), props.disabled && 'opacity-50', size === 'sm' && 'h-8 py-2 sm:py-1.5', className),
|
|
102
|
+
...props,
|
|
103
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
104
|
+
children: children
|
|
105
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
106
|
+
as: _lucideReactNative.ChevronDown,
|
|
107
|
+
"aria-hidden": true,
|
|
108
|
+
className: "text-muted-foreground size-4"
|
|
109
|
+
})]
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Full window overlay wrapper for iOS
|
|
115
|
+
*/
|
|
116
|
+
const FullWindowOverlay = _reactNative.Platform.OS === 'ios' ? _reactNativeScreens.FullWindowOverlay : React.Fragment;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Content container for select items
|
|
120
|
+
* @component
|
|
121
|
+
*/
|
|
122
|
+
function SelectContent({
|
|
123
|
+
className,
|
|
124
|
+
children,
|
|
125
|
+
position = 'popper',
|
|
126
|
+
portalHost,
|
|
127
|
+
...props
|
|
128
|
+
}) {
|
|
129
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(SelectPrimitive.Portal, {
|
|
130
|
+
hostName: portalHost,
|
|
131
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(FullWindowOverlay, {
|
|
132
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(SelectPrimitive.Overlay, {
|
|
133
|
+
style: _reactNative.Platform.select({
|
|
134
|
+
native: _reactNative.StyleSheet.absoluteFill
|
|
135
|
+
}),
|
|
136
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.TextClassContext.Provider, {
|
|
137
|
+
value: "text-popover-foreground",
|
|
138
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_NativeOnlyAnimatedView.NativeOnlyAnimatedView, {
|
|
139
|
+
className: "z-50",
|
|
140
|
+
entering: _reactNativeReanimated.FadeIn,
|
|
141
|
+
exiting: _reactNativeReanimated.FadeOut,
|
|
142
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(SelectPrimitive.Content, {
|
|
143
|
+
className: (0, _utils.cn)('bg-popover border-border relative z-50 min-w-[8rem] rounded-md border shadow-md shadow-black/5', _reactNative.Platform.select({
|
|
144
|
+
web: (0, _utils.cn)('animate-in fade-in-0 zoom-in-95 origin-(--radix-select-content-transform-origin) max-h-52 overflow-y-auto overflow-x-hidden', props.side === 'bottom' && 'slide-in-from-top-2', props.side === 'top' && 'slide-in-from-bottom-2'),
|
|
145
|
+
native: 'p-1'
|
|
146
|
+
}), position === 'popper' && _reactNative.Platform.select({
|
|
147
|
+
web: (0, _utils.cn)(props.side === 'bottom' && 'translate-y-1', props.side === 'top' && '-translate-y-1')
|
|
148
|
+
}), className),
|
|
149
|
+
position: position,
|
|
150
|
+
...props,
|
|
151
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(SelectScrollUpButton, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(SelectPrimitive.Viewport, {
|
|
152
|
+
className: (0, _utils.cn)('p-1', position === 'popper' && (0, _utils.cn)('w-full', _reactNative.Platform.select({
|
|
153
|
+
web: 'h-[var(--radix-select-trigger-height)] min-w-[var(--radix-select-trigger-width)]'
|
|
154
|
+
}))),
|
|
155
|
+
children: children
|
|
156
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(SelectScrollDownButton, {})]
|
|
157
|
+
})
|
|
158
|
+
})
|
|
159
|
+
})
|
|
160
|
+
})
|
|
161
|
+
})
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Label for grouping select items
|
|
167
|
+
* @component
|
|
168
|
+
*/
|
|
169
|
+
function SelectLabel({
|
|
170
|
+
className,
|
|
171
|
+
...props
|
|
172
|
+
}) {
|
|
173
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(SelectPrimitive.Label, {
|
|
174
|
+
className: (0, _utils.cn)('text-muted-foreground px-2 py-2 text-xs sm:py-1.5', className),
|
|
175
|
+
...props
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Individual selectable item
|
|
181
|
+
* @component
|
|
182
|
+
*/
|
|
183
|
+
function SelectItem({
|
|
184
|
+
className,
|
|
185
|
+
children: _children,
|
|
186
|
+
...props
|
|
187
|
+
}) {
|
|
188
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(SelectPrimitive.Item, {
|
|
189
|
+
className: (0, _utils.cn)('active:bg-accent group relative flex w-full flex-row items-center gap-2 rounded-sm py-2 pl-2 pr-8 sm:py-1.5', _reactNative.Platform.select({
|
|
190
|
+
web: 'focus:bg-accent focus:text-accent-foreground *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2 cursor-default outline-none data-[disabled]:pointer-events-none [&_svg]:pointer-events-none'
|
|
191
|
+
}), props.disabled && 'opacity-50', className),
|
|
192
|
+
...props,
|
|
193
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(View, {
|
|
194
|
+
className: "absolute right-2 flex size-3.5 items-center justify-center",
|
|
195
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(SelectPrimitive.ItemIndicator, {
|
|
196
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
197
|
+
as: _lucideReactNative.Check,
|
|
198
|
+
className: "text-muted-foreground size-4 shrink-0"
|
|
199
|
+
})
|
|
200
|
+
})
|
|
201
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(SelectPrimitive.ItemText, {
|
|
202
|
+
className: "text-foreground group-active:text-accent-foreground select-none text-sm"
|
|
203
|
+
})]
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Visual separator between select items
|
|
209
|
+
* @component
|
|
210
|
+
*/
|
|
211
|
+
function SelectSeparator({
|
|
212
|
+
className,
|
|
213
|
+
...props
|
|
214
|
+
}) {
|
|
215
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(SelectPrimitive.Separator, {
|
|
216
|
+
className: (0, _utils.cn)('bg-border -mx-1 my-1 h-px', _reactNative.Platform.select({
|
|
217
|
+
web: 'pointer-events-none'
|
|
218
|
+
}), className),
|
|
219
|
+
...props
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* @platform Web only
|
|
225
|
+
* Returns null on native platforms
|
|
226
|
+
*/
|
|
227
|
+
function SelectScrollUpButton({
|
|
228
|
+
className,
|
|
229
|
+
...props
|
|
230
|
+
}) {
|
|
231
|
+
if (_reactNative.Platform.OS !== 'web') {
|
|
232
|
+
return null;
|
|
233
|
+
}
|
|
234
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(SelectPrimitive.ScrollUpButton, {
|
|
235
|
+
className: (0, _utils.cn)('flex cursor-default items-center justify-center py-1', className),
|
|
236
|
+
...props,
|
|
237
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
238
|
+
as: _lucideReactNative.ChevronUpIcon,
|
|
239
|
+
className: "size-4"
|
|
240
|
+
})
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* @platform Web only
|
|
246
|
+
* Returns null on native platforms
|
|
247
|
+
*/
|
|
248
|
+
function SelectScrollDownButton({
|
|
249
|
+
className,
|
|
250
|
+
...props
|
|
251
|
+
}) {
|
|
252
|
+
if (_reactNative.Platform.OS !== 'web') {
|
|
253
|
+
return null;
|
|
254
|
+
}
|
|
255
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(SelectPrimitive.ScrollDownButton, {
|
|
256
|
+
className: (0, _utils.cn)('flex cursor-default items-center justify-center py-1', className),
|
|
257
|
+
...props,
|
|
258
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
259
|
+
as: _lucideReactNative.ChevronDownIcon,
|
|
260
|
+
className: "size-4"
|
|
261
|
+
})
|
|
262
|
+
});
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* @platform Native only
|
|
267
|
+
* Returns the children on the web
|
|
268
|
+
*/
|
|
269
|
+
function NativeSelectScrollView({
|
|
270
|
+
className,
|
|
271
|
+
...props
|
|
272
|
+
}) {
|
|
273
|
+
if (_reactNative.Platform.OS === 'web') {
|
|
274
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
275
|
+
children: props.children
|
|
276
|
+
});
|
|
277
|
+
}
|
|
278
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(ScrollView, {
|
|
279
|
+
className: (0, _utils.cn)('max-h-52', className),
|
|
280
|
+
...props
|
|
281
|
+
});
|
|
282
|
+
}
|
|
283
|
+
//# sourceMappingURL=Select.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_Icon","require","_NativeOnlyAnimatedView","_Text","_utils","SelectPrimitive","_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","ScrollView","RNScrollView","Select","exports","Root","SelectGroup","Group","SelectValue","ref","props","value","useRootContext","jsx","Value","cn","SelectTrigger","children","size","jsxs","Trigger","Platform","select","web","disabled","Fragment","Icon","as","ChevronDown","FullWindowOverlay","OS","RNFullWindowOverlay","SelectContent","position","portalHost","Portal","hostName","Overlay","style","native","StyleSheet","absoluteFill","TextClassContext","Provider","NativeOnlyAnimatedView","entering","FadeIn","exiting","FadeOut","Content","side","SelectScrollUpButton","Viewport","SelectScrollDownButton","SelectLabel","Label","SelectItem","_children","Item","ItemIndicator","Check","ItemText","SelectSeparator","Separator","ScrollUpButton","ChevronUpIcon","ScrollDownButton","ChevronDownIcon","NativeSelectScrollView"],"sourceRoot":"../../../../src","sources":["components/ui/Select.tsx"],"mappings":";;;;;;;;;;;;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,uBAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,eAAA,GAAAC,uBAAA,CAAAL,OAAA;AACA,IAAAM,kBAAA,GAAAN,OAAA;AAMA,IAAAO,KAAA,GAAAF,uBAAA,CAAAL,OAAA;AACA,IAAAQ,YAAA,GAAAR,OAAA;AAMA,IAAAS,WAAA,GAAAT,OAAA;AACA,IAAAU,sBAAA,GAAAV,OAAA;AACA,IAAAW,mBAAA,GAAAX,OAAA;AAAgF,IAAAY,WAAA,GAAAZ,OAAA;AAAA,SAAAK,wBAAAQ,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAV,uBAAA,YAAAA,CAAAQ,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAA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IAAI;MAACC,EAAE,EAAEsC,gCAAc;MAACjE,SAAS,EAAC;IAAQ,CAAE;EAAC,CAChB,CAAC;AAErC;;AAEA;AACA;AACA;AACA;AACA,SAASqD,sBAAsBA,CAAC;EAC9BrD,SAAS;EACT,GAAGU;AAC0D,CAAC,EAAE;EAChE,IAAIW,qBAAQ,CAACS,EAAE,KAAK,KAAK,EAAE;IACzB,OAAO,IAAI;EACb;EACA,oBACE,IAAArD,WAAA,CAAAoC,GAAA,EAAC5C,eAAe,CAACiG,gBAAgB;IAC/BlE,SAAS,EAAE,IAAAe,SAAE,EACX,sDAAsD,EACtDf,SACF,CAAE;IAAA,GACEU,KAAK;IAAAO,QAAA,eAET,IAAAxC,WAAA,CAAAoC,GAAA,EAACjD,KAAA,CAAA8D,IAAI;MAACC,EAAE,EAAEwC,kCAAgB;MAACnE,SAAS,EAAC;IAAQ,CAAE;EAAC,CAChB,CAAC;AAEvC;;AAEA;AACA;AACA;AACA;AACA,SAASoE,sBAAsBA,CAAC;EAC9BpE,SAAS;EACT,GAAGU;AACoC,CAAC,EAAE;EAC1C,IAAIW,qBAAQ,CAACS,EAAE,KAAK,KAAK,EAAE;IACzB,oBAAO,IAAArD,WAAA,CAAAoC,GAAA,EAAApC,WAAA,CAAAgD,QAAA;MAAAR,QAAA,EAAGP,KAAK,CAACO;IAAQ,CAAG,CAAC;EAC9B;EAEA,oBAAO,IAAAxC,WAAA,CAAAoC,GAAA,EAACZ,UAAU;IAACD,SAAS,EAAE,IAAAe,SAAE,EAAC,UAAU,EAAEf,SAAS,CAAE;IAAA,GAAKU;EAAK,CAAG,CAAC;AACxE","ignoreList":[]}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Separator = void 0;
|
|
7
|
+
var React = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _nativewind = require("nativewind");
|
|
10
|
+
var _utils = require("../../lib/utils");
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
+
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); }
|
|
13
|
+
const View = (0, _nativewind.cssInterop)(_reactNative.View, {
|
|
14
|
+
className: 'style'
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Visual divider for separating content sections
|
|
19
|
+
*
|
|
20
|
+
* A thin line that creates visual separation between content areas. Can be oriented
|
|
21
|
+
* horizontally or vertically and supports decorative or semantic roles.
|
|
22
|
+
*
|
|
23
|
+
* @component
|
|
24
|
+
* @example
|
|
25
|
+
* ```tsx
|
|
26
|
+
* // Horizontal separator (default)
|
|
27
|
+
* <View>
|
|
28
|
+
* <Text>Section 1</Text>
|
|
29
|
+
* <Separator className="my-4" />
|
|
30
|
+
* <Text>Section 2</Text>
|
|
31
|
+
* </View>
|
|
32
|
+
*
|
|
33
|
+
* // Vertical separator
|
|
34
|
+
* <View className="flex-row items-center gap-4">
|
|
35
|
+
* <Text>Left</Text>
|
|
36
|
+
* <Separator orientation="vertical" className="h-4" />
|
|
37
|
+
* <Text>Right</Text>
|
|
38
|
+
* </View>
|
|
39
|
+
*
|
|
40
|
+
* // Semantic separator for screen readers
|
|
41
|
+
* <Separator decorative={false} />
|
|
42
|
+
* ```
|
|
43
|
+
*
|
|
44
|
+
* @accessibility
|
|
45
|
+
* - Decorative separators (default) have role="none" for screen readers
|
|
46
|
+
* - Non-decorative separators have role="separator" for semantic meaning
|
|
47
|
+
*/
|
|
48
|
+
const Separator = exports.Separator = /*#__PURE__*/React.forwardRef(({
|
|
49
|
+
className,
|
|
50
|
+
orientation = 'horizontal',
|
|
51
|
+
decorative = true,
|
|
52
|
+
...props
|
|
53
|
+
}, ref) => {
|
|
54
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(View, {
|
|
55
|
+
role: decorative ? 'none' : 'separator',
|
|
56
|
+
className: (0, _utils.cn)('shrink-0 bg-border dark:bg-border', orientation === 'horizontal' ? 'h-[1px] w-full' : 'h-full w-[1px]', className),
|
|
57
|
+
ref: ref,
|
|
58
|
+
...props
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
Separator.displayName = 'Separator';
|
|
62
|
+
//# sourceMappingURL=Separator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","_interopRequireWildcard","require","_reactNative","_nativewind","_utils","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","View","cssInterop","RNView","className","Separator","exports","forwardRef","orientation","decorative","props","ref","jsx","role","cn","displayName"],"sourceRoot":"../../../../src","sources":["components/ui/Separator.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AAAqC,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAD,wBAAAM,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAR,uBAAA,YAAAA,CAAAM,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL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ACHY,IAAI,EAAEJ,UAAU,GAAG,MAAM,GAAG,WAAY;IACxCL,SAAS,EAAE,IAAAU,SAAE,EACX,mCAAmC,EACnCN,WAAW,KAAK,YAAY,GAAG,gBAAgB,GAAG,gBAAgB,EAClEJ,SACF,CAAE;IACFO,GAAG,EAAEA,GAAI;IAAA,GACLD;EAAK,CACV,CAAC;AAEN,CACF,CAAC;AACDL,SAAS,CAACU,WAAW,GAAG,WAAW","ignoreList":[]}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.SizedBox = SizedBox;
|
|
7
|
+
var React = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
+
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); }
|
|
11
|
+
/**
|
|
12
|
+
* A box with a specified size.
|
|
13
|
+
*
|
|
14
|
+
* If a child is provided, this widget forces its child to have a specific width and/or height.
|
|
15
|
+
* If either the width or height is not specified, this widget will size itself to match the child's size in that dimension.
|
|
16
|
+
*
|
|
17
|
+
* If no child is provided, this widget will size itself to the specified width and height,
|
|
18
|
+
* treating null values as zero.
|
|
19
|
+
*
|
|
20
|
+
* This is similar to Flutter's SizedBox widget and is useful for:
|
|
21
|
+
* - Adding fixed spacing between widgets
|
|
22
|
+
* - Constraining child widget dimensions
|
|
23
|
+
* - Creating empty space
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* // Create spacing
|
|
27
|
+
* <SizedBox height={16} />
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* // Constrain child size
|
|
31
|
+
* <SizedBox width={100} height={100}>
|
|
32
|
+
* <Image source={...} />
|
|
33
|
+
* </SizedBox>
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* // Create horizontal spacing
|
|
37
|
+
* <View style={{ flexDirection: 'row' }}>
|
|
38
|
+
* <Button />
|
|
39
|
+
* <SizedBox width={12} />
|
|
40
|
+
* <Button />
|
|
41
|
+
* </View>
|
|
42
|
+
*/
|
|
43
|
+
function SizedBox({
|
|
44
|
+
width,
|
|
45
|
+
height,
|
|
46
|
+
children,
|
|
47
|
+
style
|
|
48
|
+
}) {
|
|
49
|
+
const boxStyle = {
|
|
50
|
+
...(width !== undefined && {
|
|
51
|
+
width
|
|
52
|
+
}),
|
|
53
|
+
...(height !== undefined && {
|
|
54
|
+
height
|
|
55
|
+
}),
|
|
56
|
+
...style
|
|
57
|
+
};
|
|
58
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
59
|
+
style: boxStyle,
|
|
60
|
+
children: children
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// Convenience components for common spacing values
|
|
65
|
+
(function (_SizedBox) {
|
|
66
|
+
function Square({
|
|
67
|
+
size,
|
|
68
|
+
children,
|
|
69
|
+
style
|
|
70
|
+
}) {
|
|
71
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(SizedBox, {
|
|
72
|
+
width: size,
|
|
73
|
+
height: size,
|
|
74
|
+
style: style,
|
|
75
|
+
children: children
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
_SizedBox.Square = Square;
|
|
79
|
+
function Expand({
|
|
80
|
+
children,
|
|
81
|
+
style
|
|
82
|
+
}) {
|
|
83
|
+
const expandStyle = {
|
|
84
|
+
flex: 1
|
|
85
|
+
};
|
|
86
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
87
|
+
style: [expandStyle, style],
|
|
88
|
+
children: children
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
_SizedBox.Expand = Expand;
|
|
92
|
+
function Shrink({
|
|
93
|
+
children,
|
|
94
|
+
style
|
|
95
|
+
}) {
|
|
96
|
+
const shrinkStyle = {
|
|
97
|
+
flexShrink: 1
|
|
98
|
+
};
|
|
99
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
100
|
+
style: [shrinkStyle, style],
|
|
101
|
+
children: children
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
_SizedBox.Shrink = Shrink;
|
|
105
|
+
})(SizedBox || (exports.SizedBox = SizedBox = {}));
|
|
106
|
+
//# sourceMappingURL=SizedBox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","_interopRequireWildcard","require","_reactNative","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","SizedBox","width","height","children","style","boxStyle","undefined","jsx","View","_SizedBox","Square","size","Expand","expandStyle","flex","Shrink","shrinkStyle","flexShrink","exports"],"sourceRoot":"../../../../src","sources":["components/ui/SizedBox.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAAoD,IAAAE,WAAA,GAAAF,OAAA;AAAA,SAAAD,wBAAAI,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAN,uBAAA,YAAAA,CAAAI,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,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ule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Skeleton = Skeleton;
|
|
7
|
+
var _utils = require("../../lib/utils");
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _nativewind = require("nativewind");
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
+
const View = (0, _nativewind.cssInterop)(_reactNative.View, {
|
|
12
|
+
className: 'style'
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Skeleton loading placeholder component
|
|
17
|
+
*
|
|
18
|
+
* Displays an animated placeholder during content loading states. Provides visual feedback
|
|
19
|
+
* to users while data is being fetched, improving perceived performance.
|
|
20
|
+
*
|
|
21
|
+
* @component
|
|
22
|
+
* @example
|
|
23
|
+
* ```tsx
|
|
24
|
+
* // Text skeleton
|
|
25
|
+
* <Skeleton className="h-4 w-[250px]" />
|
|
26
|
+
*
|
|
27
|
+
* // Avatar skeleton
|
|
28
|
+
* <Skeleton className="h-12 w-12 rounded-full" />
|
|
29
|
+
*
|
|
30
|
+
* // Card skeleton
|
|
31
|
+
* <View className="flex gap-3">
|
|
32
|
+
* <Skeleton className="h-[125px] w-full rounded-xl" />
|
|
33
|
+
* <View className="gap-2">
|
|
34
|
+
* <Skeleton className="h-4 w-full" />
|
|
35
|
+
* <Skeleton className="h-4 w-[80%]" />
|
|
36
|
+
* </View>
|
|
37
|
+
* </View>
|
|
38
|
+
*
|
|
39
|
+
* // List skeleton
|
|
40
|
+
* {[1, 2, 3].map((i) => (
|
|
41
|
+
* <View key={i} className="flex-row items-center gap-4">
|
|
42
|
+
* <Skeleton className="h-12 w-12 rounded-full" />
|
|
43
|
+
* <View className="flex-1 gap-2">
|
|
44
|
+
* <Skeleton className="h-4 w-full" />
|
|
45
|
+
* <Skeleton className="h-4 w-3/4" />
|
|
46
|
+
* </View>
|
|
47
|
+
* </View>
|
|
48
|
+
* ))}
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
function Skeleton({
|
|
52
|
+
className,
|
|
53
|
+
...props
|
|
54
|
+
}) {
|
|
55
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(View, {
|
|
56
|
+
className: (0, _utils.cn)('bg-muted animate-pulse rounded-md', className),
|
|
57
|
+
...props
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=Skeleton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_utils","require","_reactNative","_nativewind","_jsxRuntime","View","cssInterop","RNView","className","Skeleton","props","jsx","cn"],"sourceRoot":"../../../../src","sources":["components/ui/Skeleton.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AAAwC,IAAAG,WAAA,GAAAH,OAAA;AAExC,MAAMI,IAAI,GAAG,IAAAC,sBAAU,EAACC,iBAAM,EAAE;EAC9BC,SAAS,EAAE;AACb,CAAC,CAA6B;;AAE9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,QAAQA,CAAC;EAChBD,SAAS;EACT,GAAGE;AAC6D,CAAC,EAAE;EACnE,oBACE,IAAAN,WAAA,CAAAO,GAAA,EAACN,IAAI;IACHG,SAAS,EAAE,IAAAI,SAAE,EAAC,mCAAmC,EAAEJ,SAAS,CAAE;IAAA,GAC1DE;EAAK,CACV,CAAC;AAEN","ignoreList":[]}
|