@campxdev/react-native-blueprint 0.1.12 → 0.1.14
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 +82 -469
- package/lib/module/@types/rn-primitives.d.js +2 -0
- package/lib/module/@types/rn-primitives.d.js.map +1 -0
- package/lib/module/app/_layout.js +1 -7
- package/lib/module/app/_layout.js.map +1 -1
- package/lib/module/assets/404.json +1 -0
- package/lib/module/assets/empty-document.json +1 -0
- package/lib/module/assets/icons/logo.png +0 -0
- package/lib/module/assets/index.js +4 -0
- package/lib/module/assets/index.js.map +1 -0
- package/lib/module/assets/lotties/index.js +16 -0
- package/lib/module/assets/lotties/index.js.map +1 -0
- package/lib/module/assets/no-connection.json +1 -0
- package/lib/module/assets/no-content.json +1 -0
- package/lib/module/assets/no-profile.json +1 -0
- package/lib/module/assets/no-search.json +1 -0
- package/lib/module/assets/no-task.json +1 -0
- package/lib/module/assets/no-wifi.json +1 -0
- package/lib/module/components/DataDisplay/Accordion/Accordion.figma.js +41 -0
- package/lib/module/components/DataDisplay/Accordion/Accordion.figma.js.map +1 -0
- package/lib/module/components/DataDisplay/Accordion/Accordion.js +203 -0
- package/lib/module/components/DataDisplay/Accordion/Accordion.js.map +1 -0
- package/lib/module/components/DataDisplay/AccordionItem/AccordionItem.figma.js +35 -0
- package/lib/module/components/DataDisplay/AccordionItem/AccordionItem.figma.js.map +1 -0
- package/lib/module/components/DataDisplay/AccordionItem/AccordionItem.js +147 -0
- package/lib/module/components/DataDisplay/AccordionItem/AccordionItem.js.map +1 -0
- package/lib/module/components/DataDisplay/Avatar/Avatar.figma.js +44 -0
- package/lib/module/components/DataDisplay/Avatar/Avatar.figma.js.map +1 -0
- package/lib/module/components/DataDisplay/Avatar/Avatar.js +129 -0
- package/lib/module/components/DataDisplay/Avatar/Avatar.js.map +1 -0
- package/lib/module/components/DataDisplay/Badge/Badge.figma.js +54 -0
- package/lib/module/components/DataDisplay/Badge/Badge.figma.js.map +1 -0
- package/lib/module/components/DataDisplay/Badge/Badge.js +159 -0
- package/lib/module/components/DataDisplay/Badge/Badge.js.map +1 -0
- package/lib/module/components/DataDisplay/BannerRow/BannerRow.figma.js +34 -0
- package/lib/module/components/DataDisplay/BannerRow/BannerRow.figma.js.map +1 -0
- package/lib/module/components/DataDisplay/BannerRow/BannerRow.js +120 -0
- package/lib/module/components/DataDisplay/BannerRow/BannerRow.js.map +1 -0
- package/lib/module/components/DataDisplay/CalendarItem/CalendarItem.figma.js +62 -0
- package/lib/module/components/DataDisplay/CalendarItem/CalendarItem.figma.js.map +1 -0
- package/lib/module/components/DataDisplay/CalendarItem/CalendarItem.js +116 -0
- package/lib/module/components/DataDisplay/CalendarItem/CalendarItem.js.map +1 -0
- package/lib/module/components/DataDisplay/Card/Card.figma.js +34 -0
- package/lib/module/components/DataDisplay/Card/Card.figma.js.map +1 -0
- package/lib/module/components/DataDisplay/Card/Card.js +335 -0
- package/lib/module/components/DataDisplay/Card/Card.js.map +1 -0
- package/lib/module/components/DataDisplay/Chips/Chips.figma.js +48 -0
- package/lib/module/components/DataDisplay/Chips/Chips.figma.js.map +1 -0
- package/lib/module/components/DataDisplay/Chips/Chips.js +224 -0
- package/lib/module/components/DataDisplay/Chips/Chips.js.map +1 -0
- package/lib/module/components/DataDisplay/ChipsRow/ChipsRow.figma.js +42 -0
- package/lib/module/components/DataDisplay/ChipsRow/ChipsRow.figma.js.map +1 -0
- package/lib/module/components/DataDisplay/ChipsRow/ChipsRow.js +61 -0
- package/lib/module/components/DataDisplay/ChipsRow/ChipsRow.js.map +1 -0
- package/lib/module/components/DataDisplay/DataCard/DataCard.figma.js +38 -0
- package/lib/module/components/DataDisplay/DataCard/DataCard.figma.js.map +1 -0
- package/lib/module/components/DataDisplay/DataCard/DataCard.js +50 -0
- package/lib/module/components/DataDisplay/DataCard/DataCard.js.map +1 -0
- package/lib/module/components/DataDisplay/DataListItem/DataListItem.figma.js +58 -0
- package/lib/module/components/DataDisplay/DataListItem/DataListItem.figma.js.map +1 -0
- package/lib/module/components/DataDisplay/DataListItem/DataListItem.js +272 -0
- package/lib/module/components/DataDisplay/DataListItem/DataListItem.js.map +1 -0
- package/lib/module/components/DataDisplay/Datalist/DataList.figma.js +28 -0
- package/lib/module/components/DataDisplay/Datalist/DataList.figma.js.map +1 -0
- package/lib/module/components/DataDisplay/Datalist/Datalist.js +39 -0
- package/lib/module/components/DataDisplay/Datalist/Datalist.js.map +1 -0
- package/lib/module/components/DataDisplay/MonthCalendar/MonthCalendar.figma.js +15 -0
- package/lib/module/components/DataDisplay/MonthCalendar/MonthCalendar.figma.js.map +1 -0
- package/lib/module/components/DataDisplay/MonthCalendar/MonthCalendar.js +362 -0
- package/lib/module/components/DataDisplay/MonthCalendar/MonthCalendar.js.map +1 -0
- package/lib/module/components/DataDisplay/MonthCalendar/index.js +4 -0
- package/lib/module/components/DataDisplay/MonthCalendar/index.js.map +1 -0
- package/lib/module/components/DataDisplay/Separator/Separator.figma.js +38 -0
- package/lib/module/components/DataDisplay/Separator/Separator.figma.js.map +1 -0
- package/lib/module/components/DataDisplay/Separator/Separator.js +109 -0
- package/lib/module/components/DataDisplay/Separator/Separator.js.map +1 -0
- package/lib/module/components/DataDisplay/Skeleton/Skeleton.figma.js +39 -0
- package/lib/module/components/DataDisplay/Skeleton/Skeleton.figma.js.map +1 -0
- package/lib/module/components/DataDisplay/Skeleton/Skeleton.js +181 -0
- package/lib/module/components/DataDisplay/Skeleton/Skeleton.js.map +1 -0
- package/lib/module/components/DataDisplay/Tooltip/Tooltip.figma.js +33 -0
- package/lib/module/components/DataDisplay/Tooltip/Tooltip.figma.js.map +1 -0
- package/lib/module/components/DataDisplay/Tooltip/Tooltip.js +78 -0
- package/lib/module/components/DataDisplay/Tooltip/Tooltip.js.map +1 -0
- package/lib/module/components/Feedback/Alert/Alert.figma.js +33 -0
- package/lib/module/components/Feedback/Alert/Alert.figma.js.map +1 -0
- package/lib/module/components/Feedback/Alert/Alert.js +350 -0
- package/lib/module/components/Feedback/Alert/Alert.js.map +1 -0
- package/lib/module/components/Feedback/AlertDialog/Alert-Dialog.figma.js +24 -0
- package/lib/module/components/Feedback/AlertDialog/Alert-Dialog.figma.js.map +1 -0
- package/lib/module/components/Feedback/AlertDialog/Alert-Dialog.js +126 -0
- package/lib/module/components/Feedback/AlertDialog/Alert-Dialog.js.map +1 -0
- package/lib/module/components/Feedback/ProgressCircular/Progress-circular.figma.js +28 -0
- package/lib/module/components/Feedback/ProgressCircular/Progress-circular.figma.js.map +1 -0
- package/lib/module/components/Feedback/ProgressCircular/Progress-circular.js +141 -0
- package/lib/module/components/Feedback/ProgressCircular/Progress-circular.js.map +1 -0
- package/lib/module/components/Feedback/ProgressLinear/Progress-linear.figma.js +24 -0
- package/lib/module/components/Feedback/ProgressLinear/Progress-linear.figma.js.map +1 -0
- package/lib/module/components/Feedback/ProgressLinear/Progress-linear.js +98 -0
- package/lib/module/components/Feedback/ProgressLinear/Progress-linear.js.map +1 -0
- package/lib/module/components/Feedback/Stepper/Stepper.figma.js +76 -0
- package/lib/module/components/Feedback/Stepper/Stepper.figma.js.map +1 -0
- package/lib/module/components/Feedback/Stepper/Stepper.js +219 -0
- package/lib/module/components/Feedback/Stepper/Stepper.js.map +1 -0
- package/lib/module/components/Input/Button/Button.figma.js +35 -0
- package/lib/module/components/Input/Button/Button.figma.js.map +1 -0
- package/lib/module/components/Input/Button/Button.js +202 -0
- package/lib/module/components/Input/Button/Button.js.map +1 -0
- package/lib/module/components/Input/Checkbox/Checkbox.figma.js +36 -0
- package/lib/module/components/Input/Checkbox/Checkbox.figma.js.map +1 -0
- package/lib/module/components/Input/Checkbox/Checkbox.js +159 -0
- package/lib/module/components/Input/Checkbox/Checkbox.js.map +1 -0
- package/lib/module/components/Input/RadioGroup/Radio-Group.figma.js +38 -0
- package/lib/module/components/Input/RadioGroup/Radio-Group.figma.js.map +1 -0
- package/lib/module/components/Input/RadioGroup/Radio-Group.js +170 -0
- package/lib/module/components/Input/RadioGroup/Radio-Group.js.map +1 -0
- package/lib/module/components/Input/Select/Select.figma.js +39 -0
- package/lib/module/components/Input/Select/Select.figma.js.map +1 -0
- package/lib/module/components/Input/Select/Select.js +276 -0
- package/lib/module/components/Input/Select/Select.js.map +1 -0
- package/lib/module/components/Input/Text/Text.js +69 -0
- package/lib/module/components/Input/Text/Text.js.map +1 -0
- package/lib/module/components/Input/TextField/Textfield.figma.js +49 -0
- package/lib/module/components/Input/TextField/Textfield.figma.js.map +1 -0
- package/lib/module/components/Input/TextField/Textfield.js +191 -0
- package/lib/module/components/Input/TextField/Textfield.js.map +1 -0
- package/lib/module/components/Input/Toggle/Toggle.js +111 -0
- package/lib/module/components/Input/Toggle/Toggle.js.map +1 -0
- package/lib/module/components/Input/ToggleGroup/Toggle-Group.figma.js +54 -0
- package/lib/module/components/Input/ToggleGroup/Toggle-Group.figma.js.map +1 -0
- package/lib/module/components/Input/ToggleGroup/Toggle-Group.js +210 -0
- package/lib/module/components/Input/ToggleGroup/Toggle-Group.js.map +1 -0
- package/lib/module/components/Input/switch/Switch.figma.js +34 -0
- package/lib/module/components/Input/switch/Switch.figma.js.map +1 -0
- package/lib/module/components/Input/switch/Switch.js +107 -0
- package/lib/module/components/Input/switch/Switch.js.map +1 -0
- package/lib/module/components/Layout/AspectRatio/Aspect-Ratio.figma.js +24 -0
- package/lib/module/components/Layout/AspectRatio/Aspect-Ratio.figma.js.map +1 -0
- package/lib/module/components/Layout/AspectRatio/Aspect-Ratio.js +59 -0
- package/lib/module/components/Layout/AspectRatio/Aspect-Ratio.js.map +1 -0
- package/lib/module/components/Layout/Bottomsheet/Bottom-Sheet.js +312 -0
- package/lib/module/components/Layout/Bottomsheet/Bottom-Sheet.js.map +1 -0
- package/lib/module/components/Layout/Bottomsheet/BottomSheet.figma.js +35 -0
- package/lib/module/components/Layout/Bottomsheet/BottomSheet.figma.js.map +1 -0
- package/lib/module/components/Layout/PageContent/PageContent.figma.js +32 -0
- package/lib/module/components/Layout/PageContent/PageContent.figma.js.map +1 -0
- package/lib/module/components/Layout/PageContent/PageContent.js +50 -0
- package/lib/module/components/Layout/PageContent/PageContent.js.map +1 -0
- package/lib/module/components/Layout/PageLayoutFocused/PageLayoutFocused.figma.js +62 -0
- package/lib/module/components/Layout/PageLayoutFocused/PageLayoutFocused.figma.js.map +1 -0
- package/lib/module/components/Layout/PageLayoutFocused/PageLayoutFocused.js +66 -0
- package/lib/module/components/Layout/PageLayoutFocused/PageLayoutFocused.js.map +1 -0
- package/lib/module/components/Layout/PageLayoutShell/PageLayoutShell.figma.js +38 -0
- package/lib/module/components/Layout/PageLayoutShell/PageLayoutShell.figma.js.map +1 -0
- package/lib/module/components/Layout/PageLayoutShell/PageLayoutShell.js +86 -0
- package/lib/module/components/Layout/PageLayoutShell/PageLayoutShell.js.map +1 -0
- package/lib/module/components/Layout/PopoverContainer/Popover-Container.js +226 -0
- package/lib/module/components/Layout/PopoverContainer/Popover-Container.js.map +1 -0
- package/lib/module/components/Layout/PopoverContainer/PopoverContainer.figma.js +33 -0
- package/lib/module/components/Layout/PopoverContainer/PopoverContainer.figma.js.map +1 -0
- package/lib/module/components/Layout/Tabs/Tabs.figma.js +25 -0
- package/lib/module/components/Layout/Tabs/Tabs.figma.js.map +1 -0
- package/lib/module/components/Layout/Tabs/Tabs.js +143 -0
- package/lib/module/components/Layout/Tabs/Tabs.js.map +1 -0
- package/lib/module/components/Navigation/Appbar/AppBar.figma.js +56 -0
- package/lib/module/components/Navigation/Appbar/AppBar.figma.js.map +1 -0
- package/lib/module/components/Navigation/Appbar/AppBar.js +147 -0
- package/lib/module/components/Navigation/Appbar/AppBar.js.map +1 -0
- package/lib/module/components/Navigation/ContextMenu/Context-Menu.js +98 -0
- package/lib/module/components/Navigation/ContextMenu/Context-Menu.js.map +1 -0
- package/lib/module/components/Navigation/ContextMenu/ContextMenu.figma.js +28 -0
- package/lib/module/components/Navigation/ContextMenu/ContextMenu.figma.js.map +1 -0
- package/lib/module/components/Navigation/Dialog/Dialog.figma.js +35 -0
- package/lib/module/components/Navigation/Dialog/Dialog.figma.js.map +1 -0
- package/lib/module/components/Navigation/Dialog/Dialog.js +199 -0
- package/lib/module/components/Navigation/Dialog/Dialog.js.map +1 -0
- package/lib/module/components/Navigation/FloatingAction/Floating-Action.figma.js +26 -0
- package/lib/module/components/Navigation/FloatingAction/Floating-Action.figma.js.map +1 -0
- package/lib/module/components/Navigation/FloatingAction/Floating-Action.js +58 -0
- package/lib/module/components/Navigation/FloatingAction/Floating-Action.js.map +1 -0
- package/lib/module/components/Navigation/Navbar/NavBar.figma.js +29 -0
- package/lib/module/components/Navigation/Navbar/NavBar.figma.js.map +1 -0
- package/lib/module/components/Navigation/Navbar/NavBar.js +170 -0
- package/lib/module/components/Navigation/Navbar/NavBar.js.map +1 -0
- package/lib/module/components/Navigation/Popover/Popover.figma.js +54 -0
- package/lib/module/components/Navigation/Popover/Popover.figma.js.map +1 -0
- package/lib/module/components/Navigation/Popover/Popover.js +48 -0
- package/lib/module/components/Navigation/Popover/Popover.js.map +1 -0
- package/lib/module/components/Navigation/Themetoggle/Theme-Toggle.figma.js +18 -0
- package/lib/module/components/Navigation/Themetoggle/Theme-Toggle.figma.js.map +1 -0
- package/lib/module/components/Navigation/Themetoggle/Theme-Toggle.js +48 -0
- package/lib/module/components/Navigation/Themetoggle/Theme-Toggle.js.map +1 -0
- package/lib/module/components/ui/Custom-Card.js +3 -7
- package/lib/module/components/ui/Custom-Card.js.map +1 -1
- package/lib/module/components/ui/Dropdown-Menu.js +4 -4
- package/lib/module/components/ui/Dropdown-Menu.js.map +1 -1
- package/lib/module/components/ui/Greeting-Card.js +1 -1
- package/lib/module/components/ui/Greeting-Card.js.map +1 -1
- package/lib/module/components/ui/Hover-Card.js +1 -1
- package/lib/module/components/ui/Hover-Card.js.map +1 -1
- package/lib/module/components/ui/Input.js +2 -3
- package/lib/module/components/ui/Input.js.map +1 -1
- package/lib/module/components/ui/Label.js +1 -1
- package/lib/module/components/ui/Label.js.map +1 -1
- package/lib/module/components/ui/Menubar.js +5 -5
- package/lib/module/components/ui/Menubar.js.map +1 -1
- package/lib/module/components/ui/Native-Only-Animated-View.js.map +1 -1
- package/lib/module/components/ui/Slider.js +2 -7
- package/lib/module/components/ui/Slider.js.map +1 -1
- package/lib/module/components/ui/Table.js +3 -3
- package/lib/module/components/ui/Table.js.map +1 -1
- package/lib/module/components/ui/Toast.js +3 -3
- package/lib/module/components/ui/Toast.js.map +1 -1
- package/lib/module/components/ui/index.js +49 -40
- package/lib/module/components/ui/index.js.map +1 -1
- package/lib/module/index.js +0 -3
- package/lib/module/index.js.map +1 -1
- package/lib/module/lib/fonts.js +8 -81
- package/lib/module/lib/fonts.js.map +1 -1
- package/lib/module/lib/theme.js +26 -2
- package/lib/module/lib/theme.js.map +1 -1
- package/lib/module/patterns/MonthlyCalendarPattern.js +465 -0
- package/lib/module/patterns/MonthlyCalendarPattern.js.map +1 -0
- package/lib/module/patterns/index.js +5 -0
- package/lib/module/patterns/index.js.map +1 -0
- package/lib/module/patterns/pattern-components/AlertDialogPattern/AlertDialogPattern.figma.js +32 -0
- package/lib/module/patterns/pattern-components/AlertDialogPattern/AlertDialogPattern.figma.js.map +1 -0
- package/lib/module/patterns/pattern-components/AlertDialogPattern/AlertDialogPattern.js +43 -0
- package/lib/module/patterns/pattern-components/AlertDialogPattern/AlertDialogPattern.js.map +1 -0
- package/lib/module/patterns/pattern-components/AlertDialogPattern/index.js +4 -0
- package/lib/module/patterns/pattern-components/AlertDialogPattern/index.js.map +1 -0
- package/lib/module/patterns/pattern-components/AlertPattern/AlertPattern.figma.js +19 -0
- package/lib/module/patterns/pattern-components/AlertPattern/AlertPattern.figma.js.map +1 -0
- package/lib/module/patterns/pattern-components/AlertPattern/AlertPattern.js +113 -0
- package/lib/module/patterns/pattern-components/AlertPattern/AlertPattern.js.map +1 -0
- package/lib/module/patterns/pattern-components/AlertPattern/index.js +4 -0
- package/lib/module/patterns/pattern-components/AlertPattern/index.js.map +1 -0
- package/lib/module/patterns/pattern-components/BottomSheetPattern/BottomSheetPattern.figma.js +34 -0
- package/lib/module/patterns/pattern-components/BottomSheetPattern/BottomSheetPattern.figma.js.map +1 -0
- package/lib/module/patterns/pattern-components/BottomSheetPattern/BottomSheetPattern.js +46 -0
- package/lib/module/patterns/pattern-components/BottomSheetPattern/BottomSheetPattern.js.map +1 -0
- package/lib/module/patterns/pattern-components/CalendarPattern/CalendarPattern.figma.js +73 -0
- package/lib/module/patterns/pattern-components/CalendarPattern/CalendarPattern.figma.js.map +1 -0
- package/lib/module/patterns/pattern-components/CalendarPattern/CalendarPattern.js +166 -0
- package/lib/module/patterns/pattern-components/CalendarPattern/CalendarPattern.js.map +1 -0
- package/lib/module/patterns/pattern-components/CardListPattern/CardListPattern.figma.js +69 -0
- package/lib/module/patterns/pattern-components/CardListPattern/CardListPattern.figma.js.map +1 -0
- package/lib/module/patterns/pattern-components/CardListPattern/CardListPattern.js +91 -0
- package/lib/module/patterns/pattern-components/CardListPattern/CardListPattern.js.map +1 -0
- package/lib/module/patterns/pattern-components/CardListPattern/index.js +4 -0
- package/lib/module/patterns/pattern-components/CardListPattern/index.js.map +1 -0
- package/lib/module/patterns/pattern-components/DashboardPattern/DashboardPattern.figma.js +57 -0
- package/lib/module/patterns/pattern-components/DashboardPattern/DashboardPattern.figma.js.map +1 -0
- package/lib/module/patterns/pattern-components/DashboardPattern/DashboardPattern.js +242 -0
- package/lib/module/patterns/pattern-components/DashboardPattern/DashboardPattern.js.map +1 -0
- package/lib/module/patterns/pattern-components/DataListPattern/DataListPattern.figma.js +70 -0
- package/lib/module/patterns/pattern-components/DataListPattern/DataListPattern.figma.js.map +1 -0
- package/lib/module/patterns/pattern-components/DataListPattern/DataListPattern.js +66 -0
- package/lib/module/patterns/pattern-components/DataListPattern/DataListPattern.js.map +1 -0
- package/lib/module/patterns/pattern-components/DataListPattern/index.js +4 -0
- package/lib/module/patterns/pattern-components/DataListPattern/index.js.map +1 -0
- package/lib/module/patterns/pattern-components/DialogPattern/DialogPattern.figma.js +33 -0
- package/lib/module/patterns/pattern-components/DialogPattern/DialogPattern.figma.js.map +1 -0
- package/lib/module/patterns/pattern-components/DialogPattern/DialogPattern.js +48 -0
- package/lib/module/patterns/pattern-components/DialogPattern/DialogPattern.js.map +1 -0
- package/lib/module/patterns/pattern-components/DialogPattern/index.js +4 -0
- package/lib/module/patterns/pattern-components/DialogPattern/index.js.map +1 -0
- package/lib/module/patterns/pattern-components/EmptyState/EmptyState.figma.js +33 -0
- package/lib/module/patterns/pattern-components/EmptyState/EmptyState.figma.js.map +1 -0
- package/lib/module/patterns/pattern-components/EmptyState/EmptyState.js +140 -0
- package/lib/module/patterns/pattern-components/EmptyState/EmptyState.js.map +1 -0
- package/lib/module/patterns/pattern-components/EmptyState/index.js +4 -0
- package/lib/module/patterns/pattern-components/EmptyState/index.js.map +1 -0
- package/lib/module/patterns/pattern-components/EntityPatternGuided/EntityPatternGuided.figma.js +31 -0
- package/lib/module/patterns/pattern-components/EntityPatternGuided/EntityPatternGuided.figma.js.map +1 -0
- package/lib/module/patterns/pattern-components/EntityPatternGuided/EntityPatternGuided.js +122 -0
- package/lib/module/patterns/pattern-components/EntityPatternGuided/EntityPatternGuided.js.map +1 -0
- package/lib/module/patterns/pattern-components/EntityPatternOverview/EntityPatternOverview.figma.js +31 -0
- package/lib/module/patterns/pattern-components/EntityPatternOverview/EntityPatternOverview.figma.js.map +1 -0
- package/lib/module/patterns/pattern-components/EntityPatternOverview/EntityPatternOverview.js +135 -0
- package/lib/module/patterns/pattern-components/EntityPatternOverview/EntityPatternOverview.js.map +1 -0
- package/lib/module/patterns/pattern-components/EntityPatternOverview/index.js +4 -0
- package/lib/module/patterns/pattern-components/EntityPatternOverview/index.js.map +1 -0
- package/lib/module/patterns/pattern-components/EntityPatternStructured/EntityPatternStructured.figma.js +31 -0
- package/lib/module/patterns/pattern-components/EntityPatternStructured/EntityPatternStructured.figma.js.map +1 -0
- package/lib/module/patterns/pattern-components/EntityPatternStructured/EntityPatternStructured.js +139 -0
- package/lib/module/patterns/pattern-components/EntityPatternStructured/EntityPatternStructured.js.map +1 -0
- package/lib/module/patterns/pattern-components/EntityPatternStructured/index.js +4 -0
- package/lib/module/patterns/pattern-components/EntityPatternStructured/index.js.map +1 -0
- package/lib/module/patterns/pattern-components/FormPattern/FormPattern.figma.js +31 -0
- package/lib/module/patterns/pattern-components/FormPattern/FormPattern.figma.js.map +1 -0
- package/lib/module/patterns/pattern-components/FormPattern/FormPattern.js +115 -0
- package/lib/module/patterns/pattern-components/FormPattern/FormPattern.js.map +1 -0
- package/lib/module/patterns/pattern-components/FormPattern/index.js +4 -0
- package/lib/module/patterns/pattern-components/FormPattern/index.js.map +1 -0
- package/lib/module/patterns/pattern-components/MonthlyCalendarPattern/MonthlyCalendarPattern.figma.js +48 -0
- package/lib/module/patterns/pattern-components/MonthlyCalendarPattern/MonthlyCalendarPattern.figma.js.map +1 -0
- package/lib/module/patterns/pattern-components/MonthlyCalendarPattern/MonthlyCalendarPattern.js +121 -0
- package/lib/module/patterns/pattern-components/MonthlyCalendarPattern/MonthlyCalendarPattern.js.map +1 -0
- package/lib/module/patterns/pattern-components/MonthlyCalendarPattern/index.js +5 -0
- package/lib/module/patterns/pattern-components/MonthlyCalendarPattern/index.js.map +1 -0
- package/lib/module/patterns/pattern-components/SkeletonPattern/SkeletonPattern.figma.js +31 -0
- package/lib/module/patterns/pattern-components/SkeletonPattern/SkeletonPattern.figma.js.map +1 -0
- package/lib/module/patterns/pattern-components/SkeletonPattern/SkeletonPattern.js +91 -0
- package/lib/module/patterns/pattern-components/SkeletonPattern/SkeletonPattern.js.map +1 -0
- package/lib/module/patterns/pattern-components/SkeletonPattern/index.js +4 -0
- package/lib/module/patterns/pattern-components/SkeletonPattern/index.js.map +1 -0
- package/lib/module/patterns/pattern-components/index.js +17 -0
- package/lib/module/patterns/pattern-components/index.js.map +1 -0
- package/package.json +65 -634
- package/src/@types/rn-primitives.d.ts +85 -0
- package/src/app/_layout.tsx +1 -7
- package/src/assets/404.json +1 -0
- package/src/assets/empty-document.json +1 -0
- package/src/assets/icons/logo.png +0 -0
- package/src/assets/index.ts +1 -0
- package/src/assets/lotties/index.ts +15 -0
- package/src/assets/no-connection.json +1 -0
- package/src/assets/no-content.json +1 -0
- package/src/assets/no-profile.json +1 -0
- package/src/assets/no-search.json +1 -0
- package/src/assets/no-task.json +1 -0
- package/src/assets/no-wifi.json +1 -0
- package/src/components/DataDisplay/Accordion/Accordion.figma.tsx +36 -0
- package/src/components/DataDisplay/Accordion/Accordion.tsx +226 -0
- package/src/components/DataDisplay/AccordionItem/AccordionItem.figma.tsx +33 -0
- package/src/components/DataDisplay/AccordionItem/AccordionItem.tsx +168 -0
- package/src/components/DataDisplay/Avatar/Avatar.figma.tsx +36 -0
- package/src/components/DataDisplay/Avatar/Avatar.tsx +146 -0
- package/src/components/DataDisplay/Badge/Badge.figma.tsx +56 -0
- package/src/components/DataDisplay/Badge/Badge.tsx +169 -0
- package/src/components/DataDisplay/BannerRow/BannerRow.figma.tsx +26 -0
- package/src/components/DataDisplay/BannerRow/BannerRow.tsx +185 -0
- package/src/components/DataDisplay/CalendarItem/CalendarItem.figma.tsx +74 -0
- package/src/components/DataDisplay/CalendarItem/CalendarItem.tsx +176 -0
- package/src/components/DataDisplay/Card/Card.figma.tsx +36 -0
- package/src/components/DataDisplay/Card/Card.tsx +449 -0
- package/src/components/DataDisplay/Chips/Chips.figma.tsx +43 -0
- package/src/components/DataDisplay/Chips/Chips.tsx +278 -0
- package/src/components/DataDisplay/ChipsRow/ChipsRow.figma.tsx +34 -0
- package/src/components/DataDisplay/ChipsRow/ChipsRow.tsx +90 -0
- package/src/components/DataDisplay/DataCard/DataCard.figma.tsx +31 -0
- package/src/components/DataDisplay/DataCard/DataCard.tsx +67 -0
- package/src/components/DataDisplay/DataListItem/DataListItem.figma.tsx +60 -0
- package/src/components/DataDisplay/DataListItem/DataListItem.tsx +370 -0
- package/src/components/DataDisplay/Datalist/DataList.figma.tsx +32 -0
- package/src/components/DataDisplay/Datalist/Datalist.tsx +43 -0
- package/src/components/DataDisplay/MonthCalendar/MonthCalendar.figma.tsx +15 -0
- package/src/components/DataDisplay/MonthCalendar/MonthCalendar.tsx +354 -0
- package/src/components/DataDisplay/MonthCalendar/index.ts +1 -0
- package/src/components/DataDisplay/Separator/Separator.figma.tsx +34 -0
- package/src/components/DataDisplay/Separator/Separator.tsx +107 -0
- package/src/components/DataDisplay/Skeleton/Skeleton.figma.tsx +36 -0
- package/src/components/DataDisplay/Skeleton/Skeleton.tsx +164 -0
- package/src/components/DataDisplay/Tooltip/Tooltip.figma.tsx +30 -0
- package/src/components/DataDisplay/Tooltip/Tooltip.tsx +100 -0
- package/src/components/Feedback/Alert/Alert.figma.tsx +40 -0
- package/src/components/Feedback/Alert/Alert.tsx +378 -0
- package/src/components/Feedback/AlertDialog/Alert-Dialog.figma.tsx +25 -0
- package/src/components/Feedback/AlertDialog/Alert-Dialog.tsx +176 -0
- package/src/components/Feedback/ProgressCircular/Progress-circular.figma.tsx +32 -0
- package/src/components/Feedback/ProgressCircular/Progress-circular.tsx +164 -0
- package/src/components/Feedback/ProgressLinear/Progress-linear.figma.tsx +27 -0
- package/src/components/Feedback/ProgressLinear/Progress-linear.tsx +125 -0
- package/src/components/Feedback/Stepper/Stepper.figma.tsx +92 -0
- package/src/components/Feedback/Stepper/Stepper.tsx +289 -0
- package/src/components/Input/Button/Button.figma.tsx +41 -0
- package/src/components/Input/Button/Button.tsx +223 -0
- package/src/components/Input/Checkbox/Checkbox.figma.tsx +35 -0
- package/src/components/Input/Checkbox/Checkbox.tsx +179 -0
- package/src/components/Input/RadioGroup/Radio-Group.figma.tsx +36 -0
- package/src/components/Input/RadioGroup/Radio-Group.tsx +221 -0
- package/src/components/Input/Select/Select.figma.tsx +44 -0
- package/src/components/Input/Select/Select.tsx +365 -0
- package/src/components/Input/Text/Text.tsx +73 -0
- package/src/components/Input/TextField/Textfield.figma.tsx +54 -0
- package/src/components/Input/TextField/Textfield.tsx +269 -0
- package/src/components/Input/Toggle/Toggle.tsx +119 -0
- package/src/components/Input/ToggleGroup/Toggle-Group.figma.tsx +48 -0
- package/src/components/Input/ToggleGroup/Toggle-Group.tsx +263 -0
- package/src/components/Input/switch/Switch.figma.tsx +38 -0
- package/src/components/Input/switch/Switch.tsx +103 -0
- package/src/components/Layout/AspectRatio/Aspect-Ratio.figma.tsx +22 -0
- package/src/components/Layout/AspectRatio/Aspect-Ratio.tsx +54 -0
- package/src/components/Layout/Bottomsheet/Bottom-Sheet.tsx +443 -0
- package/src/components/Layout/Bottomsheet/BottomSheet.figma.tsx +38 -0
- package/src/components/Layout/PageContent/PageContent.figma.tsx +26 -0
- package/src/components/Layout/PageContent/PageContent.tsx +61 -0
- package/src/components/Layout/PageLayoutFocused/PageLayoutFocused.figma.tsx +65 -0
- package/src/components/Layout/PageLayoutFocused/PageLayoutFocused.tsx +67 -0
- package/src/components/Layout/PageLayoutShell/PageLayoutShell.figma.tsx +39 -0
- package/src/components/Layout/PageLayoutShell/PageLayoutShell.tsx +86 -0
- package/src/components/Layout/PopoverContainer/Popover-Container.tsx +300 -0
- package/src/components/Layout/PopoverContainer/PopoverContainer.figma.tsx +38 -0
- package/src/components/Layout/Tabs/Tabs.figma.tsx +21 -0
- package/src/components/Layout/Tabs/Tabs.tsx +170 -0
- package/src/components/Navigation/Appbar/AppBar.figma.tsx +56 -0
- package/src/components/Navigation/Appbar/AppBar.tsx +216 -0
- package/src/components/Navigation/ContextMenu/Context-Menu.tsx +136 -0
- package/src/components/Navigation/ContextMenu/ContextMenu.figma.tsx +27 -0
- package/src/components/Navigation/Dialog/Dialog.figma.tsx +38 -0
- package/src/components/Navigation/Dialog/Dialog.tsx +249 -0
- package/src/components/Navigation/FloatingAction/Floating-Action.figma.tsx +30 -0
- package/src/components/Navigation/FloatingAction/Floating-Action.tsx +77 -0
- package/src/components/Navigation/Navbar/NavBar.figma.tsx +41 -0
- package/src/components/Navigation/Navbar/NavBar.tsx +214 -0
- package/src/components/Navigation/Popover/Popover.figma.tsx +63 -0
- package/src/components/Navigation/Popover/Popover.tsx +59 -0
- package/src/components/Navigation/Themetoggle/Theme-Toggle.figma.tsx +19 -0
- package/src/components/Navigation/Themetoggle/Theme-Toggle.tsx +51 -0
- package/src/components/ui/Custom-Card.tsx +2 -7
- package/src/components/ui/Dropdown-Menu.tsx +6 -10
- package/src/components/ui/Greeting-Card.tsx +1 -1
- package/src/components/ui/Hover-Card.tsx +1 -1
- package/src/components/ui/Input.tsx +4 -12
- package/src/components/ui/Label.tsx +1 -1
- package/src/components/ui/Menubar.tsx +9 -16
- package/src/components/ui/Native-Only-Animated-View.tsx +4 -3
- package/src/components/ui/Slider.tsx +2 -8
- package/src/components/ui/Table.tsx +8 -10
- package/src/components/ui/Toast.tsx +4 -7
- package/src/components/ui/index.ts +49 -40
- package/src/index.tsx +0 -3
- package/src/lib/fonts.ts +12 -83
- package/src/lib/theme.ts +22 -0
- package/src/patterns/MonthlyCalendarPattern.tsx +404 -0
- package/src/patterns/index.ts +2 -0
- package/src/patterns/pattern-components/AlertDialogPattern/AlertDialogPattern.figma.tsx +28 -0
- package/src/patterns/pattern-components/AlertDialogPattern/AlertDialogPattern.tsx +73 -0
- package/src/patterns/pattern-components/AlertDialogPattern/index.ts +4 -0
- package/src/patterns/pattern-components/AlertPattern/AlertPattern.figma.tsx +15 -0
- package/src/patterns/pattern-components/AlertPattern/AlertPattern.tsx +154 -0
- package/src/patterns/pattern-components/AlertPattern/index.ts +2 -0
- package/src/patterns/pattern-components/BottomSheetPattern/BottomSheetPattern.figma.tsx +30 -0
- package/src/patterns/pattern-components/BottomSheetPattern/BottomSheetPattern.tsx +66 -0
- package/src/patterns/pattern-components/CalendarPattern/CalendarPattern.figma.tsx +79 -0
- package/src/patterns/pattern-components/CalendarPattern/CalendarPattern.tsx +200 -0
- package/src/patterns/pattern-components/CardListPattern/CardListPattern.figma.tsx +61 -0
- package/src/patterns/pattern-components/CardListPattern/CardListPattern.tsx +139 -0
- package/src/patterns/pattern-components/CardListPattern/index.ts +2 -0
- package/src/patterns/pattern-components/DashboardPattern/DashboardPattern.figma.tsx +50 -0
- package/src/patterns/pattern-components/DashboardPattern/DashboardPattern.tsx +295 -0
- package/src/patterns/pattern-components/DataListPattern/DataListPattern.figma.tsx +45 -0
- package/src/patterns/pattern-components/DataListPattern/DataListPattern.tsx +88 -0
- package/src/patterns/pattern-components/DataListPattern/index.ts +2 -0
- package/src/patterns/pattern-components/DialogPattern/DialogPattern.figma.tsx +29 -0
- package/src/patterns/pattern-components/DialogPattern/DialogPattern.tsx +71 -0
- package/src/patterns/pattern-components/DialogPattern/index.ts +1 -0
- package/src/patterns/pattern-components/EmptyState/EmptyState.figma.tsx +34 -0
- package/src/patterns/pattern-components/EmptyState/EmptyState.tsx +175 -0
- package/src/patterns/pattern-components/EmptyState/index.ts +2 -0
- package/src/patterns/pattern-components/EntityPatternGuided/EntityPatternGuided.figma.tsx +27 -0
- package/src/patterns/pattern-components/EntityPatternGuided/EntityPatternGuided.tsx +163 -0
- package/src/patterns/pattern-components/EntityPatternOverview/EntityPatternOverview.figma.tsx +27 -0
- package/src/patterns/pattern-components/EntityPatternOverview/EntityPatternOverview.tsx +174 -0
- package/src/patterns/pattern-components/EntityPatternOverview/index.ts +2 -0
- package/src/patterns/pattern-components/EntityPatternStructured/EntityPatternStructured.figma.tsx +27 -0
- package/src/patterns/pattern-components/EntityPatternStructured/EntityPatternStructured.tsx +187 -0
- package/src/patterns/pattern-components/EntityPatternStructured/index.ts +2 -0
- package/src/patterns/pattern-components/FormPattern/FormPattern.figma.tsx +27 -0
- package/src/patterns/pattern-components/FormPattern/FormPattern.tsx +138 -0
- package/src/patterns/pattern-components/FormPattern/index.ts +2 -0
- package/src/patterns/pattern-components/MonthlyCalendarPattern/MonthlyCalendarPattern.figma.tsx +39 -0
- package/src/patterns/pattern-components/MonthlyCalendarPattern/MonthlyCalendarPattern.tsx +139 -0
- package/src/patterns/pattern-components/MonthlyCalendarPattern/index.ts +5 -0
- package/src/patterns/pattern-components/SkeletonPattern/SkeletonPattern.figma.tsx +27 -0
- package/src/patterns/pattern-components/SkeletonPattern/SkeletonPattern.tsx +100 -0
- package/src/patterns/pattern-components/SkeletonPattern/index.ts +2 -0
- package/src/patterns/pattern-components/index.ts +14 -0
- package/lib/commonjs/app/_layout.js +0 -34
- package/lib/commonjs/app/_layout.js.map +0 -1
- 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 +0 -274
- package/lib/commonjs/components/theme-config.js.map +0 -1
- package/lib/commonjs/components/ui/Accordion.js +0 -235
- package/lib/commonjs/components/ui/Accordion.js.map +0 -1
- package/lib/commonjs/components/ui/Alert-Dialog.js +0 -280
- package/lib/commonjs/components/ui/Alert-Dialog.js.map +0 -1
- package/lib/commonjs/components/ui/Alert.js +0 -113
- package/lib/commonjs/components/ui/Alert.js.map +0 -1
- package/lib/commonjs/components/ui/AppBar.js +0 -407
- package/lib/commonjs/components/ui/AppBar.js.map +0 -1
- package/lib/commonjs/components/ui/Aspect-Ratio.js +0 -30
- package/lib/commonjs/components/ui/Aspect-Ratio.js.map +0 -1
- package/lib/commonjs/components/ui/Avatar.js +0 -101
- package/lib/commonjs/components/ui/Avatar.js.map +0 -1
- package/lib/commonjs/components/ui/Badge.js +0 -131
- package/lib/commonjs/components/ui/Badge.js.map +0 -1
- package/lib/commonjs/components/ui/Bottom-Sheet.js +0 -156
- package/lib/commonjs/components/ui/Bottom-Sheet.js.map +0 -1
- package/lib/commonjs/components/ui/Button.js +0 -92
- package/lib/commonjs/components/ui/Button.js.map +0 -1
- package/lib/commonjs/components/ui/Card.js +0 -180
- package/lib/commonjs/components/ui/Card.js.map +0 -1
- package/lib/commonjs/components/ui/Checkbox.js +0 -69
- package/lib/commonjs/components/ui/Checkbox.js.map +0 -1
- package/lib/commonjs/components/ui/Collapsible.js +0 -45
- package/lib/commonjs/components/ui/Collapsible.js.map +0 -1
- package/lib/commonjs/components/ui/Context-Menu.js +0 -304
- package/lib/commonjs/components/ui/Context-Menu.js.map +0 -1
- package/lib/commonjs/components/ui/Custom-Card.js +0 -210
- package/lib/commonjs/components/ui/Custom-Card.js.map +0 -1
- package/lib/commonjs/components/ui/Dialog.js +0 -214
- package/lib/commonjs/components/ui/Dialog.js.map +0 -1
- package/lib/commonjs/components/ui/Dropdown-Menu.js +0 -438
- package/lib/commonjs/components/ui/Dropdown-Menu.js.map +0 -1
- package/lib/commonjs/components/ui/Floating-Action.js +0 -55
- package/lib/commonjs/components/ui/Floating-Action.js.map +0 -1
- package/lib/commonjs/components/ui/Greeting-Card.js +0 -401
- package/lib/commonjs/components/ui/Greeting-Card.js.map +0 -1
- package/lib/commonjs/components/ui/Hover-Card.js +0 -100
- package/lib/commonjs/components/ui/Hover-Card.js.map +0 -1
- package/lib/commonjs/components/ui/Icon.js +0 -76
- package/lib/commonjs/components/ui/Icon.js.map +0 -1
- package/lib/commonjs/components/ui/Input.js +0 -79
- package/lib/commonjs/components/ui/Input.js.map +0 -1
- package/lib/commonjs/components/ui/Label.js +0 -48
- package/lib/commonjs/components/ui/Label.js.map +0 -1
- package/lib/commonjs/components/ui/Menubar.js +0 -392
- package/lib/commonjs/components/ui/Menubar.js.map +0 -1
- package/lib/commonjs/components/ui/Native-Only-Animated-View.js +0 -43
- package/lib/commonjs/components/ui/Native-Only-Animated-View.js.map +0 -1
- package/lib/commonjs/components/ui/NavBar.js +0 -356
- package/lib/commonjs/components/ui/NavBar.js.map +0 -1
- package/lib/commonjs/components/ui/Popover.js +0 -105
- package/lib/commonjs/components/ui/Popover.js.map +0 -1
- package/lib/commonjs/components/ui/Progress.js +0 -127
- package/lib/commonjs/components/ui/Progress.js.map +0 -1
- package/lib/commonjs/components/ui/Radio-Group.js +0 -78
- package/lib/commonjs/components/ui/Radio-Group.js.map +0 -1
- package/lib/commonjs/components/ui/Select.js +0 -283
- package/lib/commonjs/components/ui/Select.js.map +0 -1
- package/lib/commonjs/components/ui/Separator.js +0 -62
- package/lib/commonjs/components/ui/Separator.js.map +0 -1
- package/lib/commonjs/components/ui/SizedBox.js +0 -106
- package/lib/commonjs/components/ui/SizedBox.js.map +0 -1
- package/lib/commonjs/components/ui/Skeleton.js +0 -60
- package/lib/commonjs/components/ui/Skeleton.js.map +0 -1
- package/lib/commonjs/components/ui/Slider.js +0 -178
- package/lib/commonjs/components/ui/Slider.js.map +0 -1
- package/lib/commonjs/components/ui/Switch.js +0 -57
- package/lib/commonjs/components/ui/Switch.js.map +0 -1
- package/lib/commonjs/components/ui/Table.js +0 -161
- package/lib/commonjs/components/ui/Table.js.map +0 -1
- package/lib/commonjs/components/ui/Tabs.js +0 -111
- package/lib/commonjs/components/ui/Tabs.js.map +0 -1
- package/lib/commonjs/components/ui/Text.js +0 -73
- package/lib/commonjs/components/ui/Text.js.map +0 -1
- package/lib/commonjs/components/ui/Textarea.js +0 -93
- package/lib/commonjs/components/ui/Textarea.js.map +0 -1
- package/lib/commonjs/components/ui/Theme-Toggle.js +0 -160
- package/lib/commonjs/components/ui/Theme-Toggle.js.map +0 -1
- package/lib/commonjs/components/ui/Toast.js +0 -107
- package/lib/commonjs/components/ui/Toast.js.map +0 -1
- package/lib/commonjs/components/ui/Toggle-Group.js +0 -133
- package/lib/commonjs/components/ui/Toggle-Group.js.map +0 -1
- package/lib/commonjs/components/ui/Toggle.js +0 -110
- package/lib/commonjs/components/ui/Toggle.js.map +0 -1
- package/lib/commonjs/components/ui/Tooltip.js +0 -110
- package/lib/commonjs/components/ui/Tooltip.js.map +0 -1
- package/lib/commonjs/components/ui/index.js +0 -479
- package/lib/commonjs/components/ui/index.js.map +0 -1
- package/lib/commonjs/global.css +0 -417
- package/lib/commonjs/index.js +0 -118
- package/lib/commonjs/index.js.map +0 -1
- package/lib/commonjs/lib/ThemeProvider.js +0 -180
- package/lib/commonjs/lib/ThemeProvider.js.map +0 -1
- package/lib/commonjs/lib/cornerRadius.js +0 -171
- package/lib/commonjs/lib/cornerRadius.js.map +0 -1
- package/lib/commonjs/lib/fonts.js +0 -101
- package/lib/commonjs/lib/fonts.js.map +0 -1
- package/lib/commonjs/lib/slot-helpers.js +0 -24
- package/lib/commonjs/lib/slot-helpers.js.map +0 -1
- package/lib/commonjs/lib/theme.js +0 -215
- package/lib/commonjs/lib/theme.js.map +0 -1
- package/lib/commonjs/lib/utils.js +0 -142
- package/lib/commonjs/lib/utils.js.map +0 -1
- package/lib/commonjs/package.json +0 -1
- package/lib/commonjs/types/components.d.js +0 -6
- package/lib/commonjs/types/components.d.js.map +0 -1
- package/lib/commonjs/types/global.d.js +0 -8
- package/lib/commonjs/types/global.d.js.map +0 -1
- package/lib/commonjs/types/rn-primitives.d.js +0 -6
- package/lib/commonjs/types/rn-primitives.d.js.map +0 -1
- package/lib/module/components/ui/Accordion.js +0 -228
- package/lib/module/components/ui/Accordion.js.map +0 -1
- package/lib/module/components/ui/Alert-Dialog.js +0 -266
- package/lib/module/components/ui/Alert-Dialog.js.map +0 -1
- package/lib/module/components/ui/Alert.js +0 -107
- package/lib/module/components/ui/Alert.js.map +0 -1
- package/lib/module/components/ui/AppBar.js +0 -403
- package/lib/module/components/ui/AppBar.js.map +0 -1
- package/lib/module/components/ui/Aspect-Ratio.js +0 -27
- package/lib/module/components/ui/Aspect-Ratio.js.map +0 -1
- package/lib/module/components/ui/Avatar.js +0 -97
- package/lib/module/components/ui/Avatar.js.map +0 -1
- package/lib/module/components/ui/Badge.js +0 -127
- package/lib/module/components/ui/Badge.js.map +0 -1
- package/lib/module/components/ui/Bottom-Sheet.js +0 -151
- package/lib/module/components/ui/Bottom-Sheet.js.map +0 -1
- package/lib/module/components/ui/Button.js +0 -88
- package/lib/module/components/ui/Button.js.map +0 -1
- package/lib/module/components/ui/Card.js +0 -176
- package/lib/module/components/ui/Card.js.map +0 -1
- package/lib/module/components/ui/Checkbox.js +0 -65
- package/lib/module/components/ui/Checkbox.js.map +0 -1
- package/lib/module/components/ui/Context-Menu.js +0 -287
- package/lib/module/components/ui/Context-Menu.js.map +0 -1
- package/lib/module/components/ui/Dialog.js +0 -202
- package/lib/module/components/ui/Dialog.js.map +0 -1
- package/lib/module/components/ui/Floating-Action.js +0 -50
- package/lib/module/components/ui/Floating-Action.js.map +0 -1
- package/lib/module/components/ui/NavBar.js +0 -352
- package/lib/module/components/ui/NavBar.js.map +0 -1
- package/lib/module/components/ui/Popover.js +0 -101
- package/lib/module/components/ui/Popover.js.map +0 -1
- package/lib/module/components/ui/Progress.js +0 -124
- package/lib/module/components/ui/Progress.js.map +0 -1
- package/lib/module/components/ui/Radio-Group.js +0 -75
- package/lib/module/components/ui/Radio-Group.js.map +0 -1
- package/lib/module/components/ui/Select.js +0 -269
- package/lib/module/components/ui/Select.js.map +0 -1
- package/lib/module/components/ui/Separator.js +0 -58
- package/lib/module/components/ui/Separator.js.map +0 -1
- package/lib/module/components/ui/Skeleton.js +0 -57
- package/lib/module/components/ui/Skeleton.js.map +0 -1
- package/lib/module/components/ui/Switch.js +0 -55
- package/lib/module/components/ui/Switch.js.map +0 -1
- package/lib/module/components/ui/Tabs.js +0 -106
- package/lib/module/components/ui/Tabs.js.map +0 -1
- package/lib/module/components/ui/Text.js +0 -69
- package/lib/module/components/ui/Text.js.map +0 -1
- package/lib/module/components/ui/Textarea.js +0 -89
- package/lib/module/components/ui/Textarea.js.map +0 -1
- package/lib/module/components/ui/Theme-Toggle.js +0 -156
- package/lib/module/components/ui/Theme-Toggle.js.map +0 -1
- package/lib/module/components/ui/Toggle-Group.js +0 -129
- package/lib/module/components/ui/Toggle-Group.js.map +0 -1
- package/lib/module/components/ui/Toggle.js +0 -106
- package/lib/module/components/ui/Toggle.js.map +0 -1
- package/lib/module/components/ui/Tooltip.js +0 -106
- package/lib/module/components/ui/Tooltip.js.map +0 -1
- package/lib/module/global.css +0 -417
- package/lib/module/lib/slot-helpers.js +0 -19
- package/lib/module/lib/slot-helpers.js.map +0 -1
- package/lib/module/types/components.d.js +0 -4
- package/lib/module/types/components.d.js.map +0 -1
- package/lib/module/types/global.d.js +0 -11
- package/lib/module/types/global.d.js.map +0 -1
- package/lib/module/types/rn-primitives.d.js +0 -61
- package/lib/module/types/rn-primitives.d.js.map +0 -1
- package/lib/typescript/commonjs/package.json +0 -1
- package/lib/typescript/commonjs/src/app/_layout.d.ts +0 -7
- package/lib/typescript/commonjs/src/app/_layout.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/theme-config.d.ts +0 -174
- package/lib/typescript/commonjs/src/components/theme-config.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/ui/Accordion.d.ts +0 -103
- package/lib/typescript/commonjs/src/components/ui/Accordion.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/ui/Alert-Dialog.d.ts +0 -145
- package/lib/typescript/commonjs/src/components/ui/Alert-Dialog.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/ui/Alert.d.ts +0 -61
- package/lib/typescript/commonjs/src/components/ui/Alert.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/ui/AppBar.d.ts +0 -227
- package/lib/typescript/commonjs/src/components/ui/AppBar.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/ui/Aspect-Ratio.d.ts +0 -24
- package/lib/typescript/commonjs/src/components/ui/Aspect-Ratio.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/ui/Avatar.d.ts +0 -1486
- package/lib/typescript/commonjs/src/components/ui/Avatar.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/ui/Badge.d.ts +0 -77
- package/lib/typescript/commonjs/src/components/ui/Badge.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/ui/Bottom-Sheet.d.ts +0 -43
- package/lib/typescript/commonjs/src/components/ui/Bottom-Sheet.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/ui/Button.d.ts +0 -23
- package/lib/typescript/commonjs/src/components/ui/Button.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/ui/Card.d.ts +0 -93
- package/lib/typescript/commonjs/src/components/ui/Card.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/ui/Checkbox.d.ts +0 -36
- package/lib/typescript/commonjs/src/components/ui/Checkbox.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/ui/Collapsible.d.ts +0 -37
- package/lib/typescript/commonjs/src/components/ui/Collapsible.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/ui/Context-Menu.d.ts +0 -107
- package/lib/typescript/commonjs/src/components/ui/Context-Menu.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/ui/Custom-Card.d.ts +0 -103
- package/lib/typescript/commonjs/src/components/ui/Custom-Card.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/ui/Dialog.d.ts +0 -90
- package/lib/typescript/commonjs/src/components/ui/Dialog.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/ui/Dropdown-Menu.d.ts +0 -242
- package/lib/typescript/commonjs/src/components/ui/Dropdown-Menu.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/ui/Floating-Action.d.ts +0 -44
- package/lib/typescript/commonjs/src/components/ui/Floating-Action.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/ui/Greeting-Card.d.ts +0 -153
- package/lib/typescript/commonjs/src/components/ui/Greeting-Card.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/ui/Hover-Card.d.ts +0 -49
- package/lib/typescript/commonjs/src/components/ui/Hover-Card.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/ui/Icon.d.ts +0 -43
- package/lib/typescript/commonjs/src/components/ui/Icon.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/ui/Input.d.ts +0 -54
- package/lib/typescript/commonjs/src/components/ui/Input.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/ui/Label.d.ts +0 -34
- package/lib/typescript/commonjs/src/components/ui/Label.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/ui/Menubar.d.ts +0 -142
- package/lib/typescript/commonjs/src/components/ui/Menubar.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/ui/Native-Only-Animated-View.d.ts +0 -26
- package/lib/typescript/commonjs/src/components/ui/Native-Only-Animated-View.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/ui/NavBar.d.ts +0 -273
- package/lib/typescript/commonjs/src/components/ui/NavBar.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/ui/Popover.d.ts +0 -54
- package/lib/typescript/commonjs/src/components/ui/Popover.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/ui/Progress.d.ts +0 -27
- package/lib/typescript/commonjs/src/components/ui/Progress.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/ui/Radio-Group.d.ts +0 -47
- package/lib/typescript/commonjs/src/components/ui/Radio-Group.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/ui/Select.d.ts +0 -86
- package/lib/typescript/commonjs/src/components/ui/Select.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/ui/Separator.d.ts +0 -40
- package/lib/typescript/commonjs/src/components/ui/Separator.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/ui/SizedBox.d.ts +0 -79
- package/lib/typescript/commonjs/src/components/ui/SizedBox.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/ui/Skeleton.d.ts +0 -42
- package/lib/typescript/commonjs/src/components/ui/Skeleton.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/ui/Slider.d.ts +0 -56
- package/lib/typescript/commonjs/src/components/ui/Slider.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/ui/Switch.d.ts +0 -34
- package/lib/typescript/commonjs/src/components/ui/Switch.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/ui/Table.d.ts +0 -80
- package/lib/typescript/commonjs/src/components/ui/Table.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/ui/Tabs.d.ts +0 -51
- package/lib/typescript/commonjs/src/components/ui/Tabs.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/ui/Text.d.ts +0 -45
- package/lib/typescript/commonjs/src/components/ui/Text.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/ui/Textarea.d.ts +0 -65
- package/lib/typescript/commonjs/src/components/ui/Textarea.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/ui/Theme-Toggle.d.ts +0 -67
- package/lib/typescript/commonjs/src/components/ui/Theme-Toggle.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/ui/Toast.d.ts +0 -56
- package/lib/typescript/commonjs/src/components/ui/Toast.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/ui/Toggle-Group.d.ts +0 -49
- package/lib/typescript/commonjs/src/components/ui/Toggle-Group.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/ui/Toggle.d.ts +0 -53
- package/lib/typescript/commonjs/src/components/ui/Toggle.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/ui/Tooltip.d.ts +0 -51
- package/lib/typescript/commonjs/src/components/ui/Tooltip.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/ui/index.d.ts +0 -44
- package/lib/typescript/commonjs/src/components/ui/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/index.d.ts +0 -9
- package/lib/typescript/commonjs/src/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/lib/ThemeProvider.d.ts +0 -137
- package/lib/typescript/commonjs/src/lib/ThemeProvider.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/lib/cornerRadius.d.ts +0 -112
- package/lib/typescript/commonjs/src/lib/cornerRadius.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/lib/fonts.d.ts +0 -16
- package/lib/typescript/commonjs/src/lib/fonts.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/lib/slot-helpers.d.ts +0 -32
- package/lib/typescript/commonjs/src/lib/slot-helpers.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/lib/theme.d.ts +0 -87
- package/lib/typescript/commonjs/src/lib/theme.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/lib/utils.d.ts +0 -111
- package/lib/typescript/commonjs/src/lib/utils.d.ts.map +0 -1
- package/lib/typescript/module/package.json +0 -1
- package/lib/typescript/module/src/app/_layout.d.ts +0 -7
- package/lib/typescript/module/src/app/_layout.d.ts.map +0 -1
- package/lib/typescript/module/src/components/theme-config.d.ts +0 -174
- package/lib/typescript/module/src/components/theme-config.d.ts.map +0 -1
- package/lib/typescript/module/src/components/ui/Accordion.d.ts +0 -103
- package/lib/typescript/module/src/components/ui/Accordion.d.ts.map +0 -1
- package/lib/typescript/module/src/components/ui/Alert-Dialog.d.ts +0 -145
- package/lib/typescript/module/src/components/ui/Alert-Dialog.d.ts.map +0 -1
- package/lib/typescript/module/src/components/ui/Alert.d.ts +0 -61
- package/lib/typescript/module/src/components/ui/Alert.d.ts.map +0 -1
- package/lib/typescript/module/src/components/ui/AppBar.d.ts +0 -227
- package/lib/typescript/module/src/components/ui/AppBar.d.ts.map +0 -1
- package/lib/typescript/module/src/components/ui/Aspect-Ratio.d.ts +0 -24
- package/lib/typescript/module/src/components/ui/Aspect-Ratio.d.ts.map +0 -1
- package/lib/typescript/module/src/components/ui/Avatar.d.ts +0 -1486
- package/lib/typescript/module/src/components/ui/Avatar.d.ts.map +0 -1
- package/lib/typescript/module/src/components/ui/Badge.d.ts +0 -77
- package/lib/typescript/module/src/components/ui/Badge.d.ts.map +0 -1
- package/lib/typescript/module/src/components/ui/Bottom-Sheet.d.ts +0 -43
- package/lib/typescript/module/src/components/ui/Bottom-Sheet.d.ts.map +0 -1
- package/lib/typescript/module/src/components/ui/Button.d.ts +0 -23
- package/lib/typescript/module/src/components/ui/Button.d.ts.map +0 -1
- package/lib/typescript/module/src/components/ui/Card.d.ts +0 -93
- package/lib/typescript/module/src/components/ui/Card.d.ts.map +0 -1
- package/lib/typescript/module/src/components/ui/Checkbox.d.ts +0 -36
- package/lib/typescript/module/src/components/ui/Checkbox.d.ts.map +0 -1
- package/lib/typescript/module/src/components/ui/Collapsible.d.ts +0 -37
- package/lib/typescript/module/src/components/ui/Collapsible.d.ts.map +0 -1
- package/lib/typescript/module/src/components/ui/Context-Menu.d.ts +0 -107
- package/lib/typescript/module/src/components/ui/Context-Menu.d.ts.map +0 -1
- package/lib/typescript/module/src/components/ui/Custom-Card.d.ts +0 -103
- package/lib/typescript/module/src/components/ui/Custom-Card.d.ts.map +0 -1
- package/lib/typescript/module/src/components/ui/Dialog.d.ts +0 -90
- package/lib/typescript/module/src/components/ui/Dialog.d.ts.map +0 -1
- package/lib/typescript/module/src/components/ui/Dropdown-Menu.d.ts +0 -242
- package/lib/typescript/module/src/components/ui/Dropdown-Menu.d.ts.map +0 -1
- package/lib/typescript/module/src/components/ui/Floating-Action.d.ts +0 -44
- package/lib/typescript/module/src/components/ui/Floating-Action.d.ts.map +0 -1
- package/lib/typescript/module/src/components/ui/Greeting-Card.d.ts +0 -153
- package/lib/typescript/module/src/components/ui/Greeting-Card.d.ts.map +0 -1
- package/lib/typescript/module/src/components/ui/Hover-Card.d.ts +0 -49
- package/lib/typescript/module/src/components/ui/Hover-Card.d.ts.map +0 -1
- package/lib/typescript/module/src/components/ui/Icon.d.ts +0 -43
- package/lib/typescript/module/src/components/ui/Icon.d.ts.map +0 -1
- package/lib/typescript/module/src/components/ui/Input.d.ts +0 -54
- package/lib/typescript/module/src/components/ui/Input.d.ts.map +0 -1
- package/lib/typescript/module/src/components/ui/Label.d.ts +0 -34
- package/lib/typescript/module/src/components/ui/Label.d.ts.map +0 -1
- package/lib/typescript/module/src/components/ui/Menubar.d.ts +0 -142
- package/lib/typescript/module/src/components/ui/Menubar.d.ts.map +0 -1
- package/lib/typescript/module/src/components/ui/Native-Only-Animated-View.d.ts +0 -26
- package/lib/typescript/module/src/components/ui/Native-Only-Animated-View.d.ts.map +0 -1
- package/lib/typescript/module/src/components/ui/NavBar.d.ts +0 -273
- package/lib/typescript/module/src/components/ui/NavBar.d.ts.map +0 -1
- package/lib/typescript/module/src/components/ui/Popover.d.ts +0 -54
- package/lib/typescript/module/src/components/ui/Popover.d.ts.map +0 -1
- package/lib/typescript/module/src/components/ui/Progress.d.ts +0 -27
- package/lib/typescript/module/src/components/ui/Progress.d.ts.map +0 -1
- package/lib/typescript/module/src/components/ui/Radio-Group.d.ts +0 -47
- package/lib/typescript/module/src/components/ui/Radio-Group.d.ts.map +0 -1
- package/lib/typescript/module/src/components/ui/Select.d.ts +0 -86
- package/lib/typescript/module/src/components/ui/Select.d.ts.map +0 -1
- package/lib/typescript/module/src/components/ui/Separator.d.ts +0 -40
- package/lib/typescript/module/src/components/ui/Separator.d.ts.map +0 -1
- package/lib/typescript/module/src/components/ui/SizedBox.d.ts +0 -79
- package/lib/typescript/module/src/components/ui/SizedBox.d.ts.map +0 -1
- package/lib/typescript/module/src/components/ui/Skeleton.d.ts +0 -42
- package/lib/typescript/module/src/components/ui/Skeleton.d.ts.map +0 -1
- package/lib/typescript/module/src/components/ui/Slider.d.ts +0 -56
- package/lib/typescript/module/src/components/ui/Slider.d.ts.map +0 -1
- package/lib/typescript/module/src/components/ui/Switch.d.ts +0 -34
- package/lib/typescript/module/src/components/ui/Switch.d.ts.map +0 -1
- package/lib/typescript/module/src/components/ui/Table.d.ts +0 -80
- package/lib/typescript/module/src/components/ui/Table.d.ts.map +0 -1
- package/lib/typescript/module/src/components/ui/Tabs.d.ts +0 -51
- package/lib/typescript/module/src/components/ui/Tabs.d.ts.map +0 -1
- package/lib/typescript/module/src/components/ui/Text.d.ts +0 -45
- package/lib/typescript/module/src/components/ui/Text.d.ts.map +0 -1
- package/lib/typescript/module/src/components/ui/Textarea.d.ts +0 -65
- package/lib/typescript/module/src/components/ui/Textarea.d.ts.map +0 -1
- package/lib/typescript/module/src/components/ui/Theme-Toggle.d.ts +0 -67
- package/lib/typescript/module/src/components/ui/Theme-Toggle.d.ts.map +0 -1
- package/lib/typescript/module/src/components/ui/Toast.d.ts +0 -56
- package/lib/typescript/module/src/components/ui/Toast.d.ts.map +0 -1
- package/lib/typescript/module/src/components/ui/Toggle-Group.d.ts +0 -49
- package/lib/typescript/module/src/components/ui/Toggle-Group.d.ts.map +0 -1
- package/lib/typescript/module/src/components/ui/Toggle.d.ts +0 -53
- package/lib/typescript/module/src/components/ui/Toggle.d.ts.map +0 -1
- package/lib/typescript/module/src/components/ui/Tooltip.d.ts +0 -51
- package/lib/typescript/module/src/components/ui/Tooltip.d.ts.map +0 -1
- package/lib/typescript/module/src/components/ui/index.d.ts +0 -44
- package/lib/typescript/module/src/components/ui/index.d.ts.map +0 -1
- package/lib/typescript/module/src/index.d.ts +0 -9
- package/lib/typescript/module/src/index.d.ts.map +0 -1
- package/lib/typescript/module/src/lib/ThemeProvider.d.ts +0 -137
- package/lib/typescript/module/src/lib/ThemeProvider.d.ts.map +0 -1
- package/lib/typescript/module/src/lib/cornerRadius.d.ts +0 -112
- package/lib/typescript/module/src/lib/cornerRadius.d.ts.map +0 -1
- package/lib/typescript/module/src/lib/fonts.d.ts +0 -16
- package/lib/typescript/module/src/lib/fonts.d.ts.map +0 -1
- package/lib/typescript/module/src/lib/slot-helpers.d.ts +0 -32
- package/lib/typescript/module/src/lib/slot-helpers.d.ts.map +0 -1
- package/lib/typescript/module/src/lib/theme.d.ts +0 -87
- package/lib/typescript/module/src/lib/theme.d.ts.map +0 -1
- package/lib/typescript/module/src/lib/utils.d.ts +0 -111
- package/lib/typescript/module/src/lib/utils.d.ts.map +0 -1
- package/nativewind-env.d.ts +0 -7
- package/src/components/ui/Accordion.tsx +0 -255
- package/src/components/ui/Alert-Dialog.tsx +0 -297
- package/src/components/ui/Alert.tsx +0 -140
- package/src/components/ui/AppBar.tsx +0 -555
- package/src/components/ui/Aspect-Ratio.tsx +0 -25
- package/src/components/ui/Avatar.tsx +0 -107
- package/src/components/ui/Badge.tsx +0 -121
- package/src/components/ui/Bottom-Sheet.tsx +0 -232
- package/src/components/ui/Button.tsx +0 -100
- package/src/components/ui/Card.tsx +0 -185
- package/src/components/ui/Checkbox.tsx +0 -81
- package/src/components/ui/Context-Menu.tsx +0 -418
- package/src/components/ui/Dialog.tsx +0 -250
- package/src/components/ui/Floating-Action.tsx +0 -54
- package/src/components/ui/NavBar.tsx +0 -403
- package/src/components/ui/Popover.tsx +0 -110
- package/src/components/ui/Progress.tsx +0 -140
- package/src/components/ui/Radio-Group.tsx +0 -79
- package/src/components/ui/Select.tsx +0 -356
- package/src/components/ui/Separator.tsx +0 -70
- package/src/components/ui/Skeleton.tsx +0 -57
- package/src/components/ui/Switch.tsx +0 -67
- package/src/components/ui/Tabs.tsx +0 -119
- package/src/components/ui/Text.tsx +0 -68
- package/src/components/ui/Textarea.tsx +0 -104
- package/src/components/ui/Theme-Toggle.tsx +0 -208
- package/src/components/ui/Toggle-Group.tsx +0 -160
- package/src/components/ui/Toggle.tsx +0 -122
- package/src/components/ui/Tooltip.tsx +0 -117
- package/src/global.css +0 -417
- package/src/lib/slot-helpers.ts +0 -57
- package/src/types/components.d.ts +0 -38
- package/src/types/global.d.ts +0 -218
- package/src/types/rn-primitives.d.ts +0 -1427
|
@@ -1,555 +0,0 @@
|
|
|
1
|
-
import type { LucideIcon } from 'lucide-react-native';
|
|
2
|
-
import { ArrowLeft, Menu, MoreVertical } from 'lucide-react-native';
|
|
3
|
-
import { cssInterop, useColorScheme } from 'nativewind';
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
import {
|
|
6
|
-
Platform,
|
|
7
|
-
Pressable as RNPressable,
|
|
8
|
-
View as RNView,
|
|
9
|
-
StatusBar,
|
|
10
|
-
} from 'react-native';
|
|
11
|
-
import { SafeAreaView } from 'react-native-safe-area-context';
|
|
12
|
-
import { cn } from '../../lib/utils';
|
|
13
|
-
import { Icon } from './Icon';
|
|
14
|
-
import { Text } from './Text';
|
|
15
|
-
|
|
16
|
-
const View = cssInterop(RNView, {
|
|
17
|
-
className: 'style',
|
|
18
|
-
}) as React.ComponentType<any>;
|
|
19
|
-
const Pressable = cssInterop(RNPressable, {
|
|
20
|
-
className: 'style',
|
|
21
|
-
}) as React.ComponentType<any>;
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Configuration for an action item in the AppBar
|
|
25
|
-
*
|
|
26
|
-
* @property {LucideIcon} icon - Icon component from lucide-react-native
|
|
27
|
-
* @property {() => void} [onPress] - Callback when action is pressed
|
|
28
|
-
* @property {string} [label] - Accessibility label for the action
|
|
29
|
-
* @property {string} [className] - Additional classes for the action button container
|
|
30
|
-
* @property {string} [iconClassName] - Additional classes for the icon
|
|
31
|
-
* @property {boolean} [disabled] - Whether the action is disabled
|
|
32
|
-
*
|
|
33
|
-
* @example
|
|
34
|
-
* ```tsx
|
|
35
|
-
* const actions: AppBarAction[] = [
|
|
36
|
-
* { icon: Search, onPress: handleSearch, label: 'Search' },
|
|
37
|
-
* { icon: MoreVertical, onPress: handleMore, label: 'More options' }
|
|
38
|
-
* ];
|
|
39
|
-
* ```
|
|
40
|
-
*/
|
|
41
|
-
export type AppBarAction = {
|
|
42
|
-
icon: LucideIcon;
|
|
43
|
-
onPress?: () => void;
|
|
44
|
-
label?: string;
|
|
45
|
-
className?: string;
|
|
46
|
-
iconClassName?: string;
|
|
47
|
-
disabled?: boolean;
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Props for AppBar component - A flexible top app bar following Material Design guidelines
|
|
52
|
-
*
|
|
53
|
-
* @property {string | React.ReactNode} [title] - AppBar title text or custom component
|
|
54
|
-
* @property {string} [subtitle] - Optional subtitle text displayed below title
|
|
55
|
-
*
|
|
56
|
-
* @property {React.ReactNode} [leading] - Custom leading widget (can include multiple icons or custom components, overrides default back button)
|
|
57
|
-
* @property {boolean} [showLeading=true] - Whether to show the leading widget
|
|
58
|
-
* @property {() => void} [onLeadingPress] - Callback when leading icon is pressed (only used if no custom leading provided)
|
|
59
|
-
* @property {LucideIcon} [leadingIcon=ArrowLeft] - Icon for the leading button (only used if no custom leading provided)
|
|
60
|
-
*
|
|
61
|
-
* @property {React.ReactNode} [center] - Custom center component (overrides title/subtitle, can include images, text, or complex layouts)
|
|
62
|
-
*
|
|
63
|
-
* @property {AppBarAction[]} [actions=[]] - Array of action items to display on the right (supports multiple icons)
|
|
64
|
-
*
|
|
65
|
-
* @property {string} [className] - Additional classes for the root container
|
|
66
|
-
* @property {string} [titleClassName] - Additional classes for the title text
|
|
67
|
-
* @property {string} [subtitleClassName] - Additional classes for the subtitle text
|
|
68
|
-
* @property {string} [contentClassName] - Additional classes for the content container
|
|
69
|
-
* @property {string} [leadingClassName] - Additional classes for the leading section container
|
|
70
|
-
* @property {string} [centerClassName] - Additional classes for the center section container
|
|
71
|
-
* @property {string} [actionsClassName] - Additional classes for the actions section container
|
|
72
|
-
*
|
|
73
|
-
* @property {boolean} [centerTitle=false] - Whether to center the title
|
|
74
|
-
* @property {number} [elevation=4] - Elevation level for shadow (0 = no shadow)
|
|
75
|
-
* @property {boolean} [transparent=false] - Whether the AppBar background is transparent
|
|
76
|
-
*
|
|
77
|
-
* @property {boolean} [useSafeArea=true] - Whether to respect safe area insets
|
|
78
|
-
*
|
|
79
|
-
* @property {string} [backgroundColor] - Custom background color class
|
|
80
|
-
* @property {string} [foregroundColor] - Custom foreground/text color class
|
|
81
|
-
*
|
|
82
|
-
* @property {'default' | 'light-content' | 'dark-content'} [statusBarStyle] - Status bar text color (auto-adjusts based on theme if not set)
|
|
83
|
-
* @property {string} [statusBarColor] - Status bar background color (Android)
|
|
84
|
-
*
|
|
85
|
-
* @property {number} [height] - Custom height in pixels (default: 56px per Material Design)
|
|
86
|
-
*
|
|
87
|
-
* @property {React.ReactNode} [bottom] - Additional content below main app bar (e.g., tabs, search)
|
|
88
|
-
*
|
|
89
|
-
* @example
|
|
90
|
-
* ```tsx
|
|
91
|
-
* // Simple app bar with title
|
|
92
|
-
* <AppBar title="Home" />
|
|
93
|
-
*
|
|
94
|
-
* // With custom center containing image and text
|
|
95
|
-
* <AppBar
|
|
96
|
-
* center={
|
|
97
|
-
* <View className="flex-row items-center gap-2">
|
|
98
|
-
* <Image source={logo} className="w-8 h-8" />
|
|
99
|
-
* <Text className="text-lg font-bold">MyApp</Text>
|
|
100
|
-
* </View>
|
|
101
|
-
* }
|
|
102
|
-
* />
|
|
103
|
-
*
|
|
104
|
-
* // With multiple leading icons
|
|
105
|
-
* <AppBar
|
|
106
|
-
* title="Settings"
|
|
107
|
-
* leading={
|
|
108
|
-
* <View className="flex-row items-center">
|
|
109
|
-
* <IconButton icon={Menu} onPress={openMenu} />
|
|
110
|
-
* <IconButton icon={ArrowLeft} onPress={goBack} />
|
|
111
|
-
* </View>
|
|
112
|
-
* }
|
|
113
|
-
* actions={[
|
|
114
|
-
* { icon: Search, onPress: handleSearch },
|
|
115
|
-
* { icon: Settings, onPress: openSettings },
|
|
116
|
-
* { icon: MoreVertical, onPress: handleMore }
|
|
117
|
-
* ]}
|
|
118
|
-
* />
|
|
119
|
-
* ```
|
|
120
|
-
*/
|
|
121
|
-
export type AppBarProps = {
|
|
122
|
-
// Title and subtitle
|
|
123
|
-
title?: string | React.ReactNode;
|
|
124
|
-
subtitle?: string;
|
|
125
|
-
|
|
126
|
-
// Leading (supports custom components with multiple icons)
|
|
127
|
-
leading?: React.ReactNode;
|
|
128
|
-
showLeading?: boolean;
|
|
129
|
-
onLeadingPress?: () => void;
|
|
130
|
-
leadingIcon?: LucideIcon;
|
|
131
|
-
|
|
132
|
-
// Center (custom component that can include images or complex layouts)
|
|
133
|
-
center?: React.ReactNode;
|
|
134
|
-
|
|
135
|
-
// Actions (supports multiple icons)
|
|
136
|
-
actions?: AppBarAction[];
|
|
137
|
-
|
|
138
|
-
// Styling
|
|
139
|
-
className?: string;
|
|
140
|
-
titleClassName?: string;
|
|
141
|
-
subtitleClassName?: string;
|
|
142
|
-
contentClassName?: string;
|
|
143
|
-
leadingClassName?: string;
|
|
144
|
-
centerClassName?: string;
|
|
145
|
-
actionsClassName?: string;
|
|
146
|
-
|
|
147
|
-
// Layout
|
|
148
|
-
centerTitle?: boolean;
|
|
149
|
-
elevation?: number;
|
|
150
|
-
transparent?: boolean;
|
|
151
|
-
|
|
152
|
-
// Safe area
|
|
153
|
-
useSafeArea?: boolean;
|
|
154
|
-
|
|
155
|
-
// Colors
|
|
156
|
-
backgroundColor?: string;
|
|
157
|
-
foregroundColor?: string;
|
|
158
|
-
|
|
159
|
-
// Status bar (iOS/Android)
|
|
160
|
-
statusBarStyle?: 'default' | 'light-content' | 'dark-content';
|
|
161
|
-
statusBarColor?: string;
|
|
162
|
-
|
|
163
|
-
// Height
|
|
164
|
-
height?: number;
|
|
165
|
-
|
|
166
|
-
// Additional content
|
|
167
|
-
bottom?: React.ReactNode;
|
|
168
|
-
};
|
|
169
|
-
|
|
170
|
-
/**
|
|
171
|
-
* A flexible top app bar component following Material Design guidelines
|
|
172
|
-
*
|
|
173
|
-
* Provides consistent navigation and actions across your app with support for:
|
|
174
|
-
* - Customizable leading navigation (back button, menu, custom widget)
|
|
175
|
-
* - Title and subtitle with flexible positioning
|
|
176
|
-
* - Action buttons on the right side
|
|
177
|
-
* - Safe area insets handling
|
|
178
|
-
* - Platform-specific status bar configuration
|
|
179
|
-
* - Transparent overlay mode
|
|
180
|
-
* - Bottom content slot for tabs or search bars
|
|
181
|
-
*
|
|
182
|
-
* @component
|
|
183
|
-
* @example
|
|
184
|
-
* ```tsx
|
|
185
|
-
* // Basic with back button
|
|
186
|
-
* <AppBar
|
|
187
|
-
* title="Profile"
|
|
188
|
-
* onLeadingPress={() => navigation.goBack()}
|
|
189
|
-
* />
|
|
190
|
-
*
|
|
191
|
-
* // With menu and actions
|
|
192
|
-
* <AppBar
|
|
193
|
-
* title="Home"
|
|
194
|
-
* leadingIcon={Menu}
|
|
195
|
-
* onLeadingPress={openDrawer}
|
|
196
|
-
* actions={[
|
|
197
|
-
* { icon: Search, onPress: handleSearch },
|
|
198
|
-
* { icon: Settings, onPress: openSettings }
|
|
199
|
-
* ]}
|
|
200
|
-
* />
|
|
201
|
-
*
|
|
202
|
-
* // Transparent overlay (for use over content)
|
|
203
|
-
* <AppBar
|
|
204
|
-
* title="Photo"
|
|
205
|
-
* transparent
|
|
206
|
-
* foregroundColor="text-white"
|
|
207
|
-
* statusBarStyle="light-content"
|
|
208
|
-
* />
|
|
209
|
-
* ```
|
|
210
|
-
*
|
|
211
|
-
* @accessibility
|
|
212
|
-
* - Leading button includes "Navigate back" accessibility label
|
|
213
|
-
* - Action buttons support custom accessibility labels
|
|
214
|
-
* - Proper button role for all interactive elements
|
|
215
|
-
*/
|
|
216
|
-
const AppBar = React.forwardRef<RNView, AppBarProps>(
|
|
217
|
-
(
|
|
218
|
-
{
|
|
219
|
-
title,
|
|
220
|
-
subtitle,
|
|
221
|
-
leading,
|
|
222
|
-
showLeading = true,
|
|
223
|
-
onLeadingPress,
|
|
224
|
-
leadingIcon = ArrowLeft,
|
|
225
|
-
center,
|
|
226
|
-
actions = [],
|
|
227
|
-
className,
|
|
228
|
-
titleClassName,
|
|
229
|
-
subtitleClassName,
|
|
230
|
-
contentClassName,
|
|
231
|
-
leadingClassName,
|
|
232
|
-
centerClassName,
|
|
233
|
-
actionsClassName,
|
|
234
|
-
centerTitle = false,
|
|
235
|
-
elevation = 4,
|
|
236
|
-
transparent = false,
|
|
237
|
-
useSafeArea = true,
|
|
238
|
-
backgroundColor,
|
|
239
|
-
foregroundColor,
|
|
240
|
-
statusBarStyle,
|
|
241
|
-
statusBarColor,
|
|
242
|
-
height,
|
|
243
|
-
bottom,
|
|
244
|
-
},
|
|
245
|
-
ref
|
|
246
|
-
) => {
|
|
247
|
-
// Get the current color scheme for dark mode support
|
|
248
|
-
const { colorScheme } = useColorScheme();
|
|
249
|
-
const isDark = colorScheme === 'dark';
|
|
250
|
-
|
|
251
|
-
// Default height following Material Design guidelines
|
|
252
|
-
const defaultHeight = 56;
|
|
253
|
-
const appBarHeight = height ?? defaultHeight;
|
|
254
|
-
|
|
255
|
-
// Determine status bar style based on theme if not explicitly set
|
|
256
|
-
const defaultStatusBarStyle = transparent
|
|
257
|
-
? 'light-content' // Transparent bars usually overlay content, so use light text
|
|
258
|
-
: isDark
|
|
259
|
-
? 'light-content'
|
|
260
|
-
: 'dark-content';
|
|
261
|
-
const resolvedStatusBarStyle = statusBarStyle ?? defaultStatusBarStyle;
|
|
262
|
-
|
|
263
|
-
// Background color
|
|
264
|
-
const bgColor = transparent
|
|
265
|
-
? 'bg-transparent'
|
|
266
|
-
: backgroundColor || 'bg-background';
|
|
267
|
-
|
|
268
|
-
// Shadow/elevation styles
|
|
269
|
-
const elevationStyle =
|
|
270
|
-
!transparent && elevation > 0 ? 'border-b border-border shadow-sm' : '';
|
|
271
|
-
|
|
272
|
-
// Render center/title content
|
|
273
|
-
const renderCenter = () => {
|
|
274
|
-
// If custom center is provided, use it
|
|
275
|
-
if (center) {
|
|
276
|
-
return (
|
|
277
|
-
<View className={cn('flex-1 justify-center', centerClassName)}>
|
|
278
|
-
{center}
|
|
279
|
-
</View>
|
|
280
|
-
);
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
// Otherwise fall back to title/subtitle
|
|
284
|
-
if (!title) return null;
|
|
285
|
-
|
|
286
|
-
if (typeof title === 'string') {
|
|
287
|
-
return (
|
|
288
|
-
<View
|
|
289
|
-
className={cn(
|
|
290
|
-
'flex-1 justify-center',
|
|
291
|
-
subtitle && 'gap-0.5',
|
|
292
|
-
centerClassName
|
|
293
|
-
)}
|
|
294
|
-
>
|
|
295
|
-
<Text
|
|
296
|
-
className={cn(
|
|
297
|
-
'text-xl font-semibold',
|
|
298
|
-
foregroundColor || 'text-foreground',
|
|
299
|
-
titleClassName
|
|
300
|
-
)}
|
|
301
|
-
numberOfLines={1}
|
|
302
|
-
ellipsizeMode="tail"
|
|
303
|
-
>
|
|
304
|
-
{title}
|
|
305
|
-
</Text>
|
|
306
|
-
{subtitle && (
|
|
307
|
-
<Text
|
|
308
|
-
className={cn(
|
|
309
|
-
'text-xs',
|
|
310
|
-
foregroundColor ? 'opacity-70' : 'text-muted-foreground',
|
|
311
|
-
subtitleClassName
|
|
312
|
-
)}
|
|
313
|
-
numberOfLines={1}
|
|
314
|
-
ellipsizeMode="tail"
|
|
315
|
-
>
|
|
316
|
-
{subtitle}
|
|
317
|
-
</Text>
|
|
318
|
-
)}
|
|
319
|
-
</View>
|
|
320
|
-
);
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
return (
|
|
324
|
-
<View className={cn('flex-1 justify-center', centerClassName)}>
|
|
325
|
-
{title}
|
|
326
|
-
</View>
|
|
327
|
-
);
|
|
328
|
-
};
|
|
329
|
-
|
|
330
|
-
// Render leading icon/widget
|
|
331
|
-
const renderLeading = () => {
|
|
332
|
-
if (!showLeading) return null;
|
|
333
|
-
|
|
334
|
-
if (leading) {
|
|
335
|
-
return <View className={cn('mr-2', leadingClassName)}>{leading}</View>;
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
if (onLeadingPress) {
|
|
339
|
-
const LeadingIcon = leadingIcon;
|
|
340
|
-
return (
|
|
341
|
-
<Pressable
|
|
342
|
-
onPress={onLeadingPress}
|
|
343
|
-
className={cn(
|
|
344
|
-
'mr-2 -ml-2 h-10 w-10 items-center justify-center rounded-full active:bg-accent/50',
|
|
345
|
-
leadingClassName
|
|
346
|
-
)}
|
|
347
|
-
accessibilityRole="button"
|
|
348
|
-
accessibilityLabel="Navigate back"
|
|
349
|
-
>
|
|
350
|
-
<Icon
|
|
351
|
-
as={LeadingIcon}
|
|
352
|
-
size={24}
|
|
353
|
-
className={cn(foregroundColor || 'text-foreground')}
|
|
354
|
-
/>
|
|
355
|
-
</Pressable>
|
|
356
|
-
);
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
return null;
|
|
360
|
-
};
|
|
361
|
-
|
|
362
|
-
// Render action items
|
|
363
|
-
const renderActions = () => {
|
|
364
|
-
if (!actions || actions.length === 0) return null;
|
|
365
|
-
|
|
366
|
-
return (
|
|
367
|
-
<View className={cn('flex-row items-center gap-1', actionsClassName)}>
|
|
368
|
-
{actions.map((action, index) => {
|
|
369
|
-
const ActionIcon = action.icon;
|
|
370
|
-
return (
|
|
371
|
-
<Pressable
|
|
372
|
-
key={index}
|
|
373
|
-
onPress={action.onPress}
|
|
374
|
-
disabled={action.disabled}
|
|
375
|
-
className={cn(
|
|
376
|
-
'h-10 w-10 items-center justify-center rounded-full active:bg-accent/50',
|
|
377
|
-
action.disabled && 'opacity-50',
|
|
378
|
-
action.className
|
|
379
|
-
)}
|
|
380
|
-
accessibilityRole="button"
|
|
381
|
-
accessibilityLabel={action.label || `Action ${index + 1}`}
|
|
382
|
-
>
|
|
383
|
-
<Icon
|
|
384
|
-
as={ActionIcon}
|
|
385
|
-
size={24}
|
|
386
|
-
className={cn(
|
|
387
|
-
foregroundColor || 'text-foreground',
|
|
388
|
-
action.iconClassName
|
|
389
|
-
)}
|
|
390
|
-
/>
|
|
391
|
-
</Pressable>
|
|
392
|
-
);
|
|
393
|
-
})}
|
|
394
|
-
</View>
|
|
395
|
-
);
|
|
396
|
-
};
|
|
397
|
-
|
|
398
|
-
return (
|
|
399
|
-
<>
|
|
400
|
-
{/* Status Bar */}
|
|
401
|
-
{Platform.OS !== 'web' && (
|
|
402
|
-
<StatusBar
|
|
403
|
-
barStyle={resolvedStatusBarStyle}
|
|
404
|
-
backgroundColor={statusBarColor || 'transparent'}
|
|
405
|
-
translucent={useSafeArea}
|
|
406
|
-
/>
|
|
407
|
-
)}
|
|
408
|
-
|
|
409
|
-
{/* Main AppBar Container with SafeAreaView */}
|
|
410
|
-
{useSafeArea ? (
|
|
411
|
-
<SafeAreaView edges={['top']}>
|
|
412
|
-
<View
|
|
413
|
-
ref={ref as any}
|
|
414
|
-
className={cn(bgColor, elevationStyle, className)}
|
|
415
|
-
>
|
|
416
|
-
{/* AppBar Content */}
|
|
417
|
-
<View
|
|
418
|
-
className={cn(
|
|
419
|
-
'flex-row items-center justify-between px-4',
|
|
420
|
-
contentClassName
|
|
421
|
-
)}
|
|
422
|
-
style={{ height: appBarHeight }}
|
|
423
|
-
>
|
|
424
|
-
{/* Leading Section */}
|
|
425
|
-
{renderLeading()}
|
|
426
|
-
|
|
427
|
-
{/* Center/Title Section */}
|
|
428
|
-
<View
|
|
429
|
-
className={cn(
|
|
430
|
-
'flex-1',
|
|
431
|
-
centerTitle && 'items-center',
|
|
432
|
-
!centerTitle && 'items-start'
|
|
433
|
-
)}
|
|
434
|
-
>
|
|
435
|
-
{renderCenter()}
|
|
436
|
-
</View>
|
|
437
|
-
|
|
438
|
-
{/* Actions Section */}
|
|
439
|
-
{renderActions()}
|
|
440
|
-
</View>
|
|
441
|
-
|
|
442
|
-
{/* Bottom Content (for tabs, search bar, etc.) */}
|
|
443
|
-
{bottom && <View className="pb-2">{bottom}</View>}
|
|
444
|
-
</View>
|
|
445
|
-
</SafeAreaView>
|
|
446
|
-
) : (
|
|
447
|
-
<View
|
|
448
|
-
ref={ref as any}
|
|
449
|
-
className={cn(bgColor, elevationStyle, className)}
|
|
450
|
-
>
|
|
451
|
-
{/* AppBar Content */}
|
|
452
|
-
<View
|
|
453
|
-
className={cn(
|
|
454
|
-
'flex-row items-center justify-between px-4',
|
|
455
|
-
contentClassName
|
|
456
|
-
)}
|
|
457
|
-
style={{ height: appBarHeight }}
|
|
458
|
-
>
|
|
459
|
-
{/* Leading Section */}
|
|
460
|
-
{renderLeading()}
|
|
461
|
-
|
|
462
|
-
{/* Center/Title Section */}
|
|
463
|
-
<View
|
|
464
|
-
className={cn(
|
|
465
|
-
'flex-1',
|
|
466
|
-
centerTitle && 'items-center',
|
|
467
|
-
!centerTitle && 'items-start'
|
|
468
|
-
)}
|
|
469
|
-
>
|
|
470
|
-
{renderCenter()}
|
|
471
|
-
</View>
|
|
472
|
-
|
|
473
|
-
{/* Actions Section */}
|
|
474
|
-
{renderActions()}
|
|
475
|
-
</View>
|
|
476
|
-
|
|
477
|
-
{/* Bottom Content (for tabs, search bar, etc.) */}
|
|
478
|
-
{bottom && <View className="pb-2">{bottom}</View>}
|
|
479
|
-
</View>
|
|
480
|
-
)}
|
|
481
|
-
</>
|
|
482
|
-
);
|
|
483
|
-
}
|
|
484
|
-
);
|
|
485
|
-
|
|
486
|
-
AppBar.displayName = 'AppBar';
|
|
487
|
-
|
|
488
|
-
/**
|
|
489
|
-
* Pre-configured AppBar variants for common use cases
|
|
490
|
-
*
|
|
491
|
-
* @example
|
|
492
|
-
* ```tsx
|
|
493
|
-
* // Simple app bar without navigation
|
|
494
|
-
* <AppBarVariants.Simple title="Home" />
|
|
495
|
-
*
|
|
496
|
-
* // With back button
|
|
497
|
-
* <AppBarVariants.WithBack title="Details" onLeadingPress={goBack} />
|
|
498
|
-
*
|
|
499
|
-
* // With menu drawer
|
|
500
|
-
* <AppBarVariants.WithMenu title="Main" onLeadingPress={openDrawer} />
|
|
501
|
-
*
|
|
502
|
-
* // Transparent overlay
|
|
503
|
-
* <AppBarVariants.Transparent title="Gallery" />
|
|
504
|
-
*
|
|
505
|
-
* // Centered title
|
|
506
|
-
* <AppBarVariants.Centered title="About" />
|
|
507
|
-
* ```
|
|
508
|
-
*/
|
|
509
|
-
export const AppBarVariants = {
|
|
510
|
-
// Simple app bar with just a title
|
|
511
|
-
Simple: (props: Omit<AppBarProps, 'showLeading'>) => (
|
|
512
|
-
<AppBar {...props} showLeading={false} />
|
|
513
|
-
),
|
|
514
|
-
|
|
515
|
-
// App bar with back button
|
|
516
|
-
WithBack: (props: AppBarProps) => <AppBar {...props} showLeading={true} />,
|
|
517
|
-
|
|
518
|
-
// App bar with menu icon
|
|
519
|
-
WithMenu: (props: Omit<AppBarProps, 'leadingIcon'>) => (
|
|
520
|
-
<AppBar {...props} leadingIcon={Menu} showLeading={true} />
|
|
521
|
-
),
|
|
522
|
-
|
|
523
|
-
// Transparent app bar (for use over content)
|
|
524
|
-
Transparent: (props: Omit<AppBarProps, 'transparent'>) => (
|
|
525
|
-
<AppBar {...props} transparent={true} elevation={0} />
|
|
526
|
-
),
|
|
527
|
-
|
|
528
|
-
// Centered title app bar
|
|
529
|
-
Centered: (props: Omit<AppBarProps, 'centerTitle'>) => (
|
|
530
|
-
<AppBar {...props} centerTitle={true} />
|
|
531
|
-
),
|
|
532
|
-
};
|
|
533
|
-
|
|
534
|
-
/**
|
|
535
|
-
* Common icons exported for convenience when configuring AppBar
|
|
536
|
-
*
|
|
537
|
-
* @example
|
|
538
|
-
* ```tsx
|
|
539
|
-
* import { AppBar, AppBarIcons } from './AppBar';
|
|
540
|
-
*
|
|
541
|
-
* <AppBar
|
|
542
|
-
* leadingIcon={AppBarIcons.Menu}
|
|
543
|
-
* actions={[
|
|
544
|
-
* { icon: AppBarIcons.MoreVertical, onPress: handleMore }
|
|
545
|
-
* ]}
|
|
546
|
-
* />
|
|
547
|
-
* ```
|
|
548
|
-
*/
|
|
549
|
-
export const AppBarIcons = {
|
|
550
|
-
Menu,
|
|
551
|
-
ArrowLeft,
|
|
552
|
-
MoreVertical,
|
|
553
|
-
};
|
|
554
|
-
|
|
555
|
-
export { AppBar };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as AspectRatioPrimitive from '@rn-primitives/aspect-ratio';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Maintains a consistent aspect ratio for its child content
|
|
5
|
-
*
|
|
6
|
-
* Displays content within a desired ratio (e.g., 16/9, 4/3, 1/1) regardless of available space.
|
|
7
|
-
* Commonly used for images, videos, and embedded content that require specific proportions.
|
|
8
|
-
*
|
|
9
|
-
* @component
|
|
10
|
-
* @example
|
|
11
|
-
* ```tsx
|
|
12
|
-
* // 16:9 aspect ratio for video container
|
|
13
|
-
* <AspectRatio ratio={16 / 9} className="bg-muted">
|
|
14
|
-
* <Image source={{uri: 'video-thumbnail.jpg'}} className="h-full w-full rounded-md object-cover" />
|
|
15
|
-
* </AspectRatio>
|
|
16
|
-
*
|
|
17
|
-
* // Square aspect ratio for avatars
|
|
18
|
-
* <AspectRatio ratio={1} className="w-full">
|
|
19
|
-
* <Image source={{uri: 'avatar.jpg'}} className="h-full w-full" />
|
|
20
|
-
* </AspectRatio>
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
const AspectRatio = AspectRatioPrimitive.Root;
|
|
24
|
-
|
|
25
|
-
export { AspectRatio };
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Image as RNImage, View as RNView } from 'react-native';
|
|
3
|
-
import { cssInterop } from 'nativewind';
|
|
4
|
-
import { cn } from '../../lib/utils';
|
|
5
|
-
import type { ViewRef, SlottableViewProps } from '@rn-primitives/types';
|
|
6
|
-
import * as Slot from '@rn-primitives/slot';
|
|
7
|
-
|
|
8
|
-
const View = cssInterop(RNView, {
|
|
9
|
-
className: 'style',
|
|
10
|
-
}) as React.ComponentType<any>;
|
|
11
|
-
cssInterop(Slot.View, { className: 'style' });
|
|
12
|
-
const Image = cssInterop(RNImage, {
|
|
13
|
-
className: 'style',
|
|
14
|
-
}) as React.ComponentType<any>;
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Avatar container component
|
|
18
|
-
*
|
|
19
|
-
* Circular container for displaying user avatars with images or fallback initials.
|
|
20
|
-
* Use with AvatarImage and AvatarFallback for complete functionality.
|
|
21
|
-
*
|
|
22
|
-
* @component
|
|
23
|
-
* @example
|
|
24
|
-
* ```tsx
|
|
25
|
-
* <Avatar>
|
|
26
|
-
* <AvatarImage source={{ uri: userPhoto }} alt="User avatar" />
|
|
27
|
-
* <AvatarFallback>
|
|
28
|
-
* <Text>JD</Text>
|
|
29
|
-
* </AvatarFallback>
|
|
30
|
-
* </Avatar>
|
|
31
|
-
* ```
|
|
32
|
-
*
|
|
33
|
-
* @property {boolean} [asChild] - When true, merges props into immediate child
|
|
34
|
-
* @property {string} [className] - Additional Tailwind classes
|
|
35
|
-
*/
|
|
36
|
-
const Avatar = React.forwardRef<
|
|
37
|
-
ViewRef,
|
|
38
|
-
SlottableViewProps & { className?: string }
|
|
39
|
-
>(({ className, asChild = false, ...props }, ref) => {
|
|
40
|
-
const Component = asChild ? Slot.View : View;
|
|
41
|
-
return (
|
|
42
|
-
<Component
|
|
43
|
-
className={cn(
|
|
44
|
-
'relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full',
|
|
45
|
-
className
|
|
46
|
-
)}
|
|
47
|
-
ref={ref as any}
|
|
48
|
-
{...props}
|
|
49
|
-
/>
|
|
50
|
-
);
|
|
51
|
-
});
|
|
52
|
-
Avatar.displayName = 'Avatar';
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* AvatarImage - Image component for avatar
|
|
56
|
-
*
|
|
57
|
-
* Displays the user's profile image. Falls back to AvatarFallback if image fails to load.
|
|
58
|
-
*
|
|
59
|
-
* @property {ImageSource} source - Image source (local or remote URI)
|
|
60
|
-
* @property {string} [alt] - Alternative text for accessibility
|
|
61
|
-
* @property {string} [className] - Additional Tailwind classes
|
|
62
|
-
*/
|
|
63
|
-
const AvatarImage = React.forwardRef<
|
|
64
|
-
React.ElementRef<typeof RNImage>,
|
|
65
|
-
React.ComponentPropsWithoutRef<typeof RNImage> & {
|
|
66
|
-
className?: string;
|
|
67
|
-
alt?: string;
|
|
68
|
-
}
|
|
69
|
-
>(({ className, ...props }, ref) => {
|
|
70
|
-
return (
|
|
71
|
-
<Image
|
|
72
|
-
className={cn('aspect-square h-full w-full', className)}
|
|
73
|
-
ref={ref as any}
|
|
74
|
-
{...props}
|
|
75
|
-
/>
|
|
76
|
-
);
|
|
77
|
-
});
|
|
78
|
-
AvatarImage.displayName = 'AvatarImage';
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* AvatarFallback - Fallback content when image is unavailable
|
|
82
|
-
*
|
|
83
|
-
* Typically displays user initials or an icon. Shows when AvatarImage fails to load
|
|
84
|
-
* or is not provided.
|
|
85
|
-
*
|
|
86
|
-
* @property {boolean} [asChild] - When true, merges props into immediate child
|
|
87
|
-
* @property {string} [className] - Additional Tailwind classes
|
|
88
|
-
*/
|
|
89
|
-
const AvatarFallback = React.forwardRef<
|
|
90
|
-
ViewRef,
|
|
91
|
-
SlottableViewProps & { className?: string }
|
|
92
|
-
>(({ className, asChild = false, ...props }, ref) => {
|
|
93
|
-
const Component = asChild ? Slot.View : View;
|
|
94
|
-
return (
|
|
95
|
-
<Component
|
|
96
|
-
className={cn(
|
|
97
|
-
'flex h-full w-full items-center justify-center rounded-full bg-muted',
|
|
98
|
-
className
|
|
99
|
-
)}
|
|
100
|
-
ref={ref}
|
|
101
|
-
{...props}
|
|
102
|
-
/>
|
|
103
|
-
);
|
|
104
|
-
});
|
|
105
|
-
AvatarFallback.displayName = 'AvatarFallback';
|
|
106
|
-
|
|
107
|
-
export { Avatar, AvatarImage, AvatarFallback };
|