@campxdev/react-native-blueprint 0.1.17 → 0.1.19
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/lib/global.css +1 -0
- package/lib/module/components/DataDisplay/FeedCard/FeedCard.figma.js +42 -0
- package/lib/module/components/DataDisplay/FeedCard/FeedCard.figma.js.map +1 -0
- package/lib/module/components/DataDisplay/FeedCard/FeedCard.js +261 -0
- package/lib/module/components/DataDisplay/FeedCard/FeedCard.js.map +1 -0
- package/lib/module/components/DataDisplay/Greeting/Greeting.figma.js +8 -1
- package/lib/module/components/DataDisplay/Greeting/Greeting.figma.js.map +1 -1
- package/lib/module/components/DataDisplay/Greeting/Greeting.js +75 -21
- package/lib/module/components/DataDisplay/Greeting/Greeting.js.map +1 -1
- package/lib/module/components/ui/index.js +1 -0
- package/lib/module/components/ui/index.js.map +1 -1
- package/lib/typescript/babel.config.d.ts +13 -0
- package/lib/typescript/babel.config.d.ts.map +1 -0
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/src/app/_layout.d.ts +8 -0
- package/lib/typescript/src/app/_layout.d.ts.map +1 -0
- package/lib/typescript/src/assets/index.d.ts +2 -0
- package/lib/typescript/src/assets/index.d.ts.map +1 -0
- package/lib/typescript/src/assets/lotties/index.d.ts +14 -0
- package/lib/typescript/src/assets/lotties/index.d.ts.map +1 -0
- package/lib/typescript/src/components/DataDisplay/Accordion/Accordion.d.ts +35 -0
- package/lib/typescript/src/components/DataDisplay/Accordion/Accordion.d.ts.map +1 -0
- package/lib/typescript/src/components/DataDisplay/Accordion/Accordion.figma.d.ts +2 -0
- package/lib/typescript/src/components/DataDisplay/Accordion/Accordion.figma.d.ts.map +1 -0
- package/lib/typescript/src/components/DataDisplay/AccordionItem/AccordionItem.d.ts +32 -0
- package/lib/typescript/src/components/DataDisplay/AccordionItem/AccordionItem.d.ts.map +1 -0
- package/lib/typescript/src/components/DataDisplay/AccordionItem/AccordionItem.figma.d.ts +2 -0
- package/lib/typescript/src/components/DataDisplay/AccordionItem/AccordionItem.figma.d.ts.map +1 -0
- package/lib/typescript/src/components/DataDisplay/Avatar/Avatar.d.ts +36 -0
- package/lib/typescript/src/components/DataDisplay/Avatar/Avatar.d.ts.map +1 -0
- package/lib/typescript/src/components/DataDisplay/Avatar/Avatar.figma.d.ts +2 -0
- package/lib/typescript/src/components/DataDisplay/Avatar/Avatar.figma.d.ts.map +1 -0
- package/lib/typescript/src/components/DataDisplay/Badge/Badge.d.ts +219 -0
- package/lib/typescript/src/components/DataDisplay/Badge/Badge.d.ts.map +1 -0
- package/lib/typescript/src/components/DataDisplay/Badge/Badge.figma.d.ts +2 -0
- package/lib/typescript/src/components/DataDisplay/Badge/Badge.figma.d.ts.map +1 -0
- package/lib/typescript/src/components/DataDisplay/Banner/Banner.d.ts +15 -0
- package/lib/typescript/src/components/DataDisplay/Banner/Banner.d.ts.map +1 -0
- package/lib/typescript/src/components/DataDisplay/Banner/Banner.figma.d.ts +2 -0
- package/lib/typescript/src/components/DataDisplay/Banner/Banner.figma.d.ts.map +1 -0
- package/lib/typescript/src/components/DataDisplay/BannerRow/BannerRow.d.ts +61 -0
- package/lib/typescript/src/components/DataDisplay/BannerRow/BannerRow.d.ts.map +1 -0
- package/lib/typescript/src/components/DataDisplay/BannerRow/BannerRow.figma.d.ts +2 -0
- package/lib/typescript/src/components/DataDisplay/BannerRow/BannerRow.figma.d.ts.map +1 -0
- package/lib/typescript/src/components/DataDisplay/CalendarItem/CalendarItem.d.ts +44 -0
- package/lib/typescript/src/components/DataDisplay/CalendarItem/CalendarItem.d.ts.map +1 -0
- package/lib/typescript/src/components/DataDisplay/CalendarItem/CalendarItem.figma.d.ts +2 -0
- package/lib/typescript/src/components/DataDisplay/CalendarItem/CalendarItem.figma.d.ts.map +1 -0
- package/lib/typescript/src/components/DataDisplay/Card/Card.d.ts +65 -0
- package/lib/typescript/src/components/DataDisplay/Card/Card.d.ts.map +1 -0
- package/lib/typescript/src/components/DataDisplay/Card/Card.figma.d.ts +2 -0
- package/lib/typescript/src/components/DataDisplay/Card/Card.figma.d.ts.map +1 -0
- package/lib/typescript/src/components/DataDisplay/Chips/Chips.d.ts +37 -0
- package/lib/typescript/src/components/DataDisplay/Chips/Chips.d.ts.map +1 -0
- package/lib/typescript/src/components/DataDisplay/Chips/Chips.figma.d.ts +2 -0
- package/lib/typescript/src/components/DataDisplay/Chips/Chips.figma.d.ts.map +1 -0
- package/lib/typescript/src/components/DataDisplay/ChipsRow/ChipsRow.d.ts +31 -0
- package/lib/typescript/src/components/DataDisplay/ChipsRow/ChipsRow.d.ts.map +1 -0
- package/lib/typescript/src/components/DataDisplay/ChipsRow/ChipsRow.figma.d.ts +2 -0
- package/lib/typescript/src/components/DataDisplay/ChipsRow/ChipsRow.figma.d.ts.map +1 -0
- package/lib/typescript/src/components/DataDisplay/DataCard/DataCard.d.ts +25 -0
- package/lib/typescript/src/components/DataDisplay/DataCard/DataCard.d.ts.map +1 -0
- package/lib/typescript/src/components/DataDisplay/DataCard/DataCard.figma.d.ts +2 -0
- package/lib/typescript/src/components/DataDisplay/DataCard/DataCard.figma.d.ts.map +1 -0
- package/lib/typescript/src/components/DataDisplay/DataListItem/DataListItem.d.ts +47 -0
- package/lib/typescript/src/components/DataDisplay/DataListItem/DataListItem.d.ts.map +1 -0
- package/lib/typescript/src/components/DataDisplay/DataListItem/DataListItem.figma.d.ts +3 -0
- package/lib/typescript/src/components/DataDisplay/DataListItem/DataListItem.figma.d.ts.map +1 -0
- package/lib/typescript/src/components/DataDisplay/Datalist/DataList.figma.d.ts +2 -0
- package/lib/typescript/src/components/DataDisplay/Datalist/DataList.figma.d.ts.map +1 -0
- package/lib/typescript/src/components/DataDisplay/Datalist/Datalist.d.ts +14 -0
- package/lib/typescript/src/components/DataDisplay/Datalist/Datalist.d.ts.map +1 -0
- package/lib/typescript/src/components/DataDisplay/FeedCard/FeedCard.d.ts +49 -0
- package/lib/typescript/src/components/DataDisplay/FeedCard/FeedCard.d.ts.map +1 -0
- package/lib/typescript/src/components/DataDisplay/FeedCard/FeedCard.figma.d.ts +2 -0
- package/lib/typescript/src/components/DataDisplay/FeedCard/FeedCard.figma.d.ts.map +1 -0
- package/lib/typescript/src/components/DataDisplay/Greeting/Greeting.d.ts +58 -0
- package/lib/typescript/src/components/DataDisplay/Greeting/Greeting.d.ts.map +1 -0
- package/lib/typescript/src/components/DataDisplay/Greeting/Greeting.figma.d.ts +2 -0
- package/lib/typescript/src/components/DataDisplay/Greeting/Greeting.figma.d.ts.map +1 -0
- package/lib/typescript/src/components/DataDisplay/MonthCalendar/MonthCalendar.d.ts +6 -0
- package/lib/typescript/src/components/DataDisplay/MonthCalendar/MonthCalendar.d.ts.map +1 -0
- package/lib/typescript/src/components/DataDisplay/MonthCalendar/MonthCalendar.figma.d.ts +3 -0
- package/lib/typescript/src/components/DataDisplay/MonthCalendar/MonthCalendar.figma.d.ts.map +1 -0
- package/lib/typescript/src/components/DataDisplay/MonthCalendar/index.d.ts +2 -0
- package/lib/typescript/src/components/DataDisplay/MonthCalendar/index.d.ts.map +1 -0
- package/lib/typescript/src/components/DataDisplay/Separator/Separator.d.ts +29 -0
- package/lib/typescript/src/components/DataDisplay/Separator/Separator.d.ts.map +1 -0
- package/lib/typescript/src/components/DataDisplay/Separator/Separator.figma.d.ts +2 -0
- package/lib/typescript/src/components/DataDisplay/Separator/Separator.figma.d.ts.map +1 -0
- package/lib/typescript/src/components/DataDisplay/Skeleton/Skeleton.d.ts +45 -0
- package/lib/typescript/src/components/DataDisplay/Skeleton/Skeleton.d.ts.map +1 -0
- package/lib/typescript/src/components/DataDisplay/Skeleton/Skeleton.figma.d.ts +2 -0
- package/lib/typescript/src/components/DataDisplay/Skeleton/Skeleton.figma.d.ts.map +1 -0
- package/lib/typescript/src/components/DataDisplay/Tooltip/Tooltip.d.ts +178 -0
- package/lib/typescript/src/components/DataDisplay/Tooltip/Tooltip.d.ts.map +1 -0
- package/lib/typescript/src/components/DataDisplay/Tooltip/Tooltip.figma.d.ts +2 -0
- package/lib/typescript/src/components/DataDisplay/Tooltip/Tooltip.figma.d.ts.map +1 -0
- package/lib/typescript/src/components/Feedback/Alert/Alert.d.ts +32 -0
- package/lib/typescript/src/components/Feedback/Alert/Alert.d.ts.map +1 -0
- package/lib/typescript/src/components/Feedback/Alert/Alert.figma.d.ts +2 -0
- package/lib/typescript/src/components/Feedback/Alert/Alert.figma.d.ts.map +1 -0
- package/lib/typescript/src/components/Feedback/AlertDialog/Alert-Dialog.d.ts +28 -0
- package/lib/typescript/src/components/Feedback/AlertDialog/Alert-Dialog.d.ts.map +1 -0
- package/lib/typescript/src/components/Feedback/AlertDialog/Alert-Dialog.figma.d.ts +2 -0
- package/lib/typescript/src/components/Feedback/AlertDialog/Alert-Dialog.figma.d.ts.map +1 -0
- package/lib/typescript/src/components/Feedback/InfoBar/InfoBar.d.ts +22 -0
- package/lib/typescript/src/components/Feedback/InfoBar/InfoBar.d.ts.map +1 -0
- package/lib/typescript/src/components/Feedback/InfoBar/InfoBar.figma.d.ts +2 -0
- package/lib/typescript/src/components/Feedback/InfoBar/InfoBar.figma.d.ts.map +1 -0
- package/lib/typescript/src/components/Feedback/ProgressCircular/Progress-circular.d.ts +47 -0
- package/lib/typescript/src/components/Feedback/ProgressCircular/Progress-circular.d.ts.map +1 -0
- package/lib/typescript/src/components/Feedback/ProgressCircular/Progress-circular.figma.d.ts +2 -0
- package/lib/typescript/src/components/Feedback/ProgressCircular/Progress-circular.figma.d.ts.map +1 -0
- package/lib/typescript/src/components/Feedback/ProgressLinear/Progress-linear.d.ts +39 -0
- package/lib/typescript/src/components/Feedback/ProgressLinear/Progress-linear.d.ts.map +1 -0
- package/lib/typescript/src/components/Feedback/ProgressLinear/Progress-linear.figma.d.ts +2 -0
- package/lib/typescript/src/components/Feedback/ProgressLinear/Progress-linear.figma.d.ts.map +1 -0
- package/lib/typescript/src/components/Feedback/Stepper/Stepper.d.ts +37 -0
- package/lib/typescript/src/components/Feedback/Stepper/Stepper.d.ts.map +1 -0
- package/lib/typescript/src/components/Feedback/Stepper/Stepper.figma.d.ts +2 -0
- package/lib/typescript/src/components/Feedback/Stepper/Stepper.figma.d.ts.map +1 -0
- package/lib/typescript/src/components/Input/Button/Button.d.ts +50 -0
- package/lib/typescript/src/components/Input/Button/Button.d.ts.map +1 -0
- package/lib/typescript/src/components/Input/Button/Button.figma.d.ts +2 -0
- package/lib/typescript/src/components/Input/Button/Button.figma.d.ts.map +1 -0
- package/lib/typescript/src/components/Input/Checkbox/Checkbox.d.ts +35 -0
- package/lib/typescript/src/components/Input/Checkbox/Checkbox.d.ts.map +1 -0
- package/lib/typescript/src/components/Input/Checkbox/Checkbox.figma.d.ts +2 -0
- package/lib/typescript/src/components/Input/Checkbox/Checkbox.figma.d.ts.map +1 -0
- package/lib/typescript/src/components/Input/RadioGroup/Radio-Group.d.ts +46 -0
- package/lib/typescript/src/components/Input/RadioGroup/Radio-Group.d.ts.map +1 -0
- package/lib/typescript/src/components/Input/RadioGroup/Radio-Group.figma.d.ts +2 -0
- package/lib/typescript/src/components/Input/RadioGroup/Radio-Group.figma.d.ts.map +1 -0
- package/lib/typescript/src/components/Input/Select/Select.d.ts +68 -0
- package/lib/typescript/src/components/Input/Select/Select.d.ts.map +1 -0
- package/lib/typescript/src/components/Input/Select/Select.figma.d.ts +2 -0
- package/lib/typescript/src/components/Input/Select/Select.figma.d.ts.map +1 -0
- package/lib/typescript/src/components/Input/Text/Text.d.ts +116 -0
- package/lib/typescript/src/components/Input/Text/Text.d.ts.map +1 -0
- package/lib/typescript/src/components/Input/TextField/Textfield.d.ts +57 -0
- package/lib/typescript/src/components/Input/TextField/Textfield.d.ts.map +1 -0
- package/lib/typescript/src/components/Input/TextField/Textfield.figma.d.ts +2 -0
- package/lib/typescript/src/components/Input/TextField/Textfield.figma.d.ts.map +1 -0
- package/lib/typescript/src/components/Input/Toggle/Toggle.d.ts +14 -0
- package/lib/typescript/src/components/Input/Toggle/Toggle.d.ts.map +1 -0
- package/lib/typescript/src/components/Input/Toggle/Toggle.figma.d.ts +2 -0
- package/lib/typescript/src/components/Input/Toggle/Toggle.figma.d.ts.map +1 -0
- package/lib/typescript/src/components/Input/ToggleGroup/Toggle-Group.d.ts +34 -0
- package/lib/typescript/src/components/Input/ToggleGroup/Toggle-Group.d.ts.map +1 -0
- package/lib/typescript/src/components/Input/ToggleGroup/Toggle-Group.figma.d.ts +2 -0
- package/lib/typescript/src/components/Input/ToggleGroup/Toggle-Group.figma.d.ts.map +1 -0
- package/lib/typescript/src/components/Input/switch/Switch.d.ts +11 -0
- package/lib/typescript/src/components/Input/switch/Switch.d.ts.map +1 -0
- package/lib/typescript/src/components/Input/switch/Switch.figma.d.ts +2 -0
- package/lib/typescript/src/components/Input/switch/Switch.figma.d.ts.map +1 -0
- package/lib/typescript/src/components/Layout/AspectRatio/Aspect-Ratio.d.ts +12 -0
- package/lib/typescript/src/components/Layout/AspectRatio/Aspect-Ratio.d.ts.map +1 -0
- package/lib/typescript/src/components/Layout/AspectRatio/Aspect-Ratio.figma.d.ts +2 -0
- package/lib/typescript/src/components/Layout/AspectRatio/Aspect-Ratio.figma.d.ts.map +1 -0
- package/lib/typescript/src/components/Layout/Bottomsheet/Bottom-Sheet.d.ts +63 -0
- package/lib/typescript/src/components/Layout/Bottomsheet/Bottom-Sheet.d.ts.map +1 -0
- package/lib/typescript/src/components/Layout/Bottomsheet/BottomSheet.figma.d.ts +2 -0
- package/lib/typescript/src/components/Layout/Bottomsheet/BottomSheet.figma.d.ts.map +1 -0
- package/lib/typescript/src/components/Layout/PageContent/PageContent.d.ts +19 -0
- package/lib/typescript/src/components/Layout/PageContent/PageContent.d.ts.map +1 -0
- package/lib/typescript/src/components/Layout/PageContent/PageContent.figma.d.ts +2 -0
- package/lib/typescript/src/components/Layout/PageContent/PageContent.figma.d.ts.map +1 -0
- package/lib/typescript/src/components/Layout/PageLayoutFocused/PageLayoutFocused.d.ts +40 -0
- package/lib/typescript/src/components/Layout/PageLayoutFocused/PageLayoutFocused.d.ts.map +1 -0
- package/lib/typescript/src/components/Layout/PageLayoutFocused/PageLayoutFocused.figma.d.ts +2 -0
- package/lib/typescript/src/components/Layout/PageLayoutFocused/PageLayoutFocused.figma.d.ts.map +1 -0
- package/lib/typescript/src/components/Layout/PageLayoutShell/PageLayoutShell.d.ts +52 -0
- package/lib/typescript/src/components/Layout/PageLayoutShell/PageLayoutShell.d.ts.map +1 -0
- package/lib/typescript/src/components/Layout/PageLayoutShell/PageLayoutShell.figma.d.ts +2 -0
- package/lib/typescript/src/components/Layout/PageLayoutShell/PageLayoutShell.figma.d.ts.map +1 -0
- package/lib/typescript/src/components/Layout/PopoverContainer/Popover-Container.d.ts +288 -0
- package/lib/typescript/src/components/Layout/PopoverContainer/Popover-Container.d.ts.map +1 -0
- package/lib/typescript/src/components/Layout/PopoverContainer/PopoverContainer.figma.d.ts +2 -0
- package/lib/typescript/src/components/Layout/PopoverContainer/PopoverContainer.figma.d.ts.map +1 -0
- package/lib/typescript/src/components/Layout/Tabs/Tabs.d.ts +32 -0
- package/lib/typescript/src/components/Layout/Tabs/Tabs.d.ts.map +1 -0
- package/lib/typescript/src/components/Layout/Tabs/Tabs.figma.d.ts +2 -0
- package/lib/typescript/src/components/Layout/Tabs/Tabs.figma.d.ts.map +1 -0
- package/lib/typescript/src/components/Navigation/Appbar/AppBar.d.ts +29 -0
- package/lib/typescript/src/components/Navigation/Appbar/AppBar.d.ts.map +1 -0
- package/lib/typescript/src/components/Navigation/Appbar/AppBar.figma.d.ts +2 -0
- package/lib/typescript/src/components/Navigation/Appbar/AppBar.figma.d.ts.map +1 -0
- package/lib/typescript/src/components/Navigation/ContextMenu/Context-Menu.d.ts +30 -0
- package/lib/typescript/src/components/Navigation/ContextMenu/Context-Menu.d.ts.map +1 -0
- package/lib/typescript/src/components/Navigation/ContextMenu/ContextMenu.figma.d.ts +3 -0
- package/lib/typescript/src/components/Navigation/ContextMenu/ContextMenu.figma.d.ts.map +1 -0
- package/lib/typescript/src/components/Navigation/Dialog/Dialog.d.ts +24 -0
- package/lib/typescript/src/components/Navigation/Dialog/Dialog.d.ts.map +1 -0
- package/lib/typescript/src/components/Navigation/Dialog/Dialog.figma.d.ts +2 -0
- package/lib/typescript/src/components/Navigation/Dialog/Dialog.figma.d.ts.map +1 -0
- package/lib/typescript/src/components/Navigation/FloatingAction/Floating-Action.d.ts +12 -0
- package/lib/typescript/src/components/Navigation/FloatingAction/Floating-Action.d.ts.map +1 -0
- package/lib/typescript/src/components/Navigation/FloatingAction/Floating-Action.figma.d.ts +2 -0
- package/lib/typescript/src/components/Navigation/FloatingAction/Floating-Action.figma.d.ts.map +1 -0
- package/lib/typescript/src/components/Navigation/Navbar/NavBar.d.ts +40 -0
- package/lib/typescript/src/components/Navigation/Navbar/NavBar.d.ts.map +1 -0
- package/lib/typescript/src/components/Navigation/Navbar/NavBar.figma.d.ts +3 -0
- package/lib/typescript/src/components/Navigation/Navbar/NavBar.figma.d.ts.map +1 -0
- package/lib/typescript/src/components/Navigation/Popover/Popover.d.ts +19 -0
- package/lib/typescript/src/components/Navigation/Popover/Popover.d.ts.map +1 -0
- package/lib/typescript/src/components/Navigation/Popover/Popover.figma.d.ts +2 -0
- package/lib/typescript/src/components/Navigation/Popover/Popover.figma.d.ts.map +1 -0
- package/lib/typescript/src/components/Navigation/Themetoggle/Theme-Toggle.d.ts +7 -0
- package/lib/typescript/src/components/Navigation/Themetoggle/Theme-Toggle.d.ts.map +1 -0
- package/lib/typescript/src/components/Navigation/Themetoggle/Theme-Toggle.figma.d.ts +3 -0
- package/lib/typescript/src/components/Navigation/Themetoggle/Theme-Toggle.figma.d.ts.map +1 -0
- package/lib/typescript/src/components/theme-config.d.ts +174 -0
- package/lib/typescript/src/components/theme-config.d.ts.map +1 -0
- package/lib/typescript/src/components/ui/Collapsible.d.ts +212 -0
- package/lib/typescript/src/components/ui/Collapsible.d.ts.map +1 -0
- package/lib/typescript/src/components/ui/Custom-Card.d.ts +864 -0
- package/lib/typescript/src/components/ui/Custom-Card.d.ts.map +1 -0
- package/lib/typescript/src/components/ui/Dropdown-Menu.d.ts +430 -0
- package/lib/typescript/src/components/ui/Dropdown-Menu.d.ts.map +1 -0
- package/lib/typescript/src/components/ui/Hover-Card.d.ts +214 -0
- package/lib/typescript/src/components/ui/Hover-Card.d.ts.map +1 -0
- package/lib/typescript/src/components/ui/Icon.d.ts +43 -0
- package/lib/typescript/src/components/ui/Icon.d.ts.map +1 -0
- package/lib/typescript/src/components/ui/Input.d.ts +52 -0
- package/lib/typescript/src/components/ui/Input.d.ts.map +1 -0
- package/lib/typescript/src/components/ui/Label.d.ts +105 -0
- package/lib/typescript/src/components/ui/Label.d.ts.map +1 -0
- package/lib/typescript/src/components/ui/Menubar.d.ts +142 -0
- package/lib/typescript/src/components/ui/Menubar.d.ts.map +1 -0
- package/lib/typescript/src/components/ui/Native-Only-Animated-View.d.ts +28 -0
- package/lib/typescript/src/components/ui/Native-Only-Animated-View.d.ts.map +1 -0
- package/lib/typescript/src/components/ui/SizedBox.d.ts +79 -0
- package/lib/typescript/src/components/ui/SizedBox.d.ts.map +1 -0
- package/lib/typescript/src/components/ui/Slider.d.ts +55 -0
- package/lib/typescript/src/components/ui/Slider.d.ts.map +1 -0
- package/lib/typescript/src/components/ui/Table.d.ts +70 -0
- package/lib/typescript/src/components/ui/Table.d.ts.map +1 -0
- package/lib/typescript/src/components/ui/Toast.d.ts +55 -0
- package/lib/typescript/src/components/ui/Toast.d.ts.map +1 -0
- package/lib/typescript/src/components/ui/index.d.ts +61 -0
- package/lib/typescript/src/components/ui/index.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +10 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/lib/ThemeProvider.d.ts +137 -0
- package/lib/typescript/src/lib/ThemeProvider.d.ts.map +1 -0
- package/lib/typescript/src/lib/cornerRadius.d.ts +112 -0
- package/lib/typescript/src/lib/cornerRadius.d.ts.map +1 -0
- package/lib/typescript/src/lib/fonts.d.ts +21 -0
- package/lib/typescript/src/lib/fonts.d.ts.map +1 -0
- package/lib/typescript/src/lib/theme.d.ts +136 -0
- package/lib/typescript/src/lib/theme.d.ts.map +1 -0
- package/lib/typescript/src/lib/utils.d.ts +111 -0
- package/lib/typescript/src/lib/utils.d.ts.map +1 -0
- package/lib/typescript/src/patterns/MonthlyCalendarPattern.d.ts +4 -0
- package/lib/typescript/src/patterns/MonthlyCalendarPattern.d.ts.map +1 -0
- package/lib/typescript/src/patterns/index.d.ts +2 -0
- package/lib/typescript/src/patterns/index.d.ts.map +1 -0
- package/lib/typescript/src/patterns/pattern-components/AlertDialogPattern/AlertDialogPattern.d.ts +27 -0
- package/lib/typescript/src/patterns/pattern-components/AlertDialogPattern/AlertDialogPattern.d.ts.map +1 -0
- package/lib/typescript/src/patterns/pattern-components/AlertDialogPattern/AlertDialogPattern.figma.d.ts +2 -0
- package/lib/typescript/src/patterns/pattern-components/AlertDialogPattern/AlertDialogPattern.figma.d.ts.map +1 -0
- package/lib/typescript/src/patterns/pattern-components/AlertDialogPattern/index.d.ts +2 -0
- package/lib/typescript/src/patterns/pattern-components/AlertDialogPattern/index.d.ts.map +1 -0
- package/lib/typescript/src/patterns/pattern-components/AlertPattern/AlertPattern.d.ts +23 -0
- package/lib/typescript/src/patterns/pattern-components/AlertPattern/AlertPattern.d.ts.map +1 -0
- package/lib/typescript/src/patterns/pattern-components/AlertPattern/AlertPattern.figma.d.ts +2 -0
- package/lib/typescript/src/patterns/pattern-components/AlertPattern/AlertPattern.figma.d.ts.map +1 -0
- package/lib/typescript/src/patterns/pattern-components/AlertPattern/index.d.ts +3 -0
- package/lib/typescript/src/patterns/pattern-components/AlertPattern/index.d.ts.map +1 -0
- package/lib/typescript/src/patterns/pattern-components/BottomSheetPattern/BottomSheetPattern.d.ts +22 -0
- package/lib/typescript/src/patterns/pattern-components/BottomSheetPattern/BottomSheetPattern.d.ts.map +1 -0
- package/lib/typescript/src/patterns/pattern-components/BottomSheetPattern/BottomSheetPattern.figma.d.ts +2 -0
- package/lib/typescript/src/patterns/pattern-components/BottomSheetPattern/BottomSheetPattern.figma.d.ts.map +1 -0
- package/lib/typescript/src/patterns/pattern-components/BottomSheetPattern/index.d.ts +2 -0
- package/lib/typescript/src/patterns/pattern-components/BottomSheetPattern/index.d.ts.map +1 -0
- package/lib/typescript/src/patterns/pattern-components/CalendarPattern/CalendarPattern.d.ts +37 -0
- package/lib/typescript/src/patterns/pattern-components/CalendarPattern/CalendarPattern.d.ts.map +1 -0
- package/lib/typescript/src/patterns/pattern-components/CalendarPattern/CalendarPattern.figma.d.ts +2 -0
- package/lib/typescript/src/patterns/pattern-components/CalendarPattern/CalendarPattern.figma.d.ts.map +1 -0
- package/lib/typescript/src/patterns/pattern-components/CalendarPattern/index.d.ts +2 -0
- package/lib/typescript/src/patterns/pattern-components/CalendarPattern/index.d.ts.map +1 -0
- package/lib/typescript/src/patterns/pattern-components/CardListPattern/CardListPattern.d.ts +70 -0
- package/lib/typescript/src/patterns/pattern-components/CardListPattern/CardListPattern.d.ts.map +1 -0
- package/lib/typescript/src/patterns/pattern-components/CardListPattern/CardListPattern.figma.d.ts +2 -0
- package/lib/typescript/src/patterns/pattern-components/CardListPattern/CardListPattern.figma.d.ts.map +1 -0
- package/lib/typescript/src/patterns/pattern-components/CardListPattern/index.d.ts +3 -0
- package/lib/typescript/src/patterns/pattern-components/CardListPattern/index.d.ts.map +1 -0
- package/lib/typescript/src/patterns/pattern-components/DashboardPattern/DashboardPattern.d.ts +45 -0
- package/lib/typescript/src/patterns/pattern-components/DashboardPattern/DashboardPattern.d.ts.map +1 -0
- package/lib/typescript/src/patterns/pattern-components/DashboardPattern/DashboardPattern.figma.d.ts +2 -0
- package/lib/typescript/src/patterns/pattern-components/DashboardPattern/DashboardPattern.figma.d.ts.map +1 -0
- package/lib/typescript/src/patterns/pattern-components/DashboardPattern/index.d.ts +2 -0
- package/lib/typescript/src/patterns/pattern-components/DashboardPattern/index.d.ts.map +1 -0
- package/lib/typescript/src/patterns/pattern-components/DataListPattern/DataListPattern.d.ts +49 -0
- package/lib/typescript/src/patterns/pattern-components/DataListPattern/DataListPattern.d.ts.map +1 -0
- package/lib/typescript/src/patterns/pattern-components/DataListPattern/DataListPattern.figma.d.ts +2 -0
- package/lib/typescript/src/patterns/pattern-components/DataListPattern/DataListPattern.figma.d.ts.map +1 -0
- package/lib/typescript/src/patterns/pattern-components/DataListPattern/index.d.ts +3 -0
- package/lib/typescript/src/patterns/pattern-components/DataListPattern/index.d.ts.map +1 -0
- package/lib/typescript/src/patterns/pattern-components/DialogPattern/DialogPattern.d.ts +24 -0
- package/lib/typescript/src/patterns/pattern-components/DialogPattern/DialogPattern.d.ts.map +1 -0
- package/lib/typescript/src/patterns/pattern-components/DialogPattern/DialogPattern.figma.d.ts +2 -0
- package/lib/typescript/src/patterns/pattern-components/DialogPattern/DialogPattern.figma.d.ts.map +1 -0
- package/lib/typescript/src/patterns/pattern-components/DialogPattern/index.d.ts +2 -0
- package/lib/typescript/src/patterns/pattern-components/DialogPattern/index.d.ts.map +1 -0
- package/lib/typescript/src/patterns/pattern-components/EmptyState/EmptyState.d.ts +38 -0
- package/lib/typescript/src/patterns/pattern-components/EmptyState/EmptyState.d.ts.map +1 -0
- package/lib/typescript/src/patterns/pattern-components/EmptyState/EmptyState.figma.d.ts +2 -0
- package/lib/typescript/src/patterns/pattern-components/EmptyState/EmptyState.figma.d.ts.map +1 -0
- package/lib/typescript/src/patterns/pattern-components/EmptyState/index.d.ts +3 -0
- package/lib/typescript/src/patterns/pattern-components/EmptyState/index.d.ts.map +1 -0
- package/lib/typescript/src/patterns/pattern-components/EntityPatternGuided/EntityPatternGuided.d.ts +35 -0
- package/lib/typescript/src/patterns/pattern-components/EntityPatternGuided/EntityPatternGuided.d.ts.map +1 -0
- package/lib/typescript/src/patterns/pattern-components/EntityPatternGuided/EntityPatternGuided.figma.d.ts +2 -0
- package/lib/typescript/src/patterns/pattern-components/EntityPatternGuided/EntityPatternGuided.figma.d.ts.map +1 -0
- package/lib/typescript/src/patterns/pattern-components/EntityPatternGuided/index.d.ts +2 -0
- package/lib/typescript/src/patterns/pattern-components/EntityPatternGuided/index.d.ts.map +1 -0
- package/lib/typescript/src/patterns/pattern-components/EntityPatternOverview/EntityPatternOverview.d.ts +42 -0
- package/lib/typescript/src/patterns/pattern-components/EntityPatternOverview/EntityPatternOverview.d.ts.map +1 -0
- package/lib/typescript/src/patterns/pattern-components/EntityPatternOverview/EntityPatternOverview.figma.d.ts +2 -0
- package/lib/typescript/src/patterns/pattern-components/EntityPatternOverview/EntityPatternOverview.figma.d.ts.map +1 -0
- package/lib/typescript/src/patterns/pattern-components/EntityPatternOverview/index.d.ts +3 -0
- package/lib/typescript/src/patterns/pattern-components/EntityPatternOverview/index.d.ts.map +1 -0
- package/lib/typescript/src/patterns/pattern-components/EntityPatternStructured/EntityPatternStructured.d.ts +43 -0
- package/lib/typescript/src/patterns/pattern-components/EntityPatternStructured/EntityPatternStructured.d.ts.map +1 -0
- package/lib/typescript/src/patterns/pattern-components/EntityPatternStructured/EntityPatternStructured.figma.d.ts +2 -0
- package/lib/typescript/src/patterns/pattern-components/EntityPatternStructured/EntityPatternStructured.figma.d.ts.map +1 -0
- package/lib/typescript/src/patterns/pattern-components/EntityPatternStructured/index.d.ts +3 -0
- package/lib/typescript/src/patterns/pattern-components/EntityPatternStructured/index.d.ts.map +1 -0
- package/lib/typescript/src/patterns/pattern-components/FormPattern/FormPattern.d.ts +42 -0
- package/lib/typescript/src/patterns/pattern-components/FormPattern/FormPattern.d.ts.map +1 -0
- package/lib/typescript/src/patterns/pattern-components/FormPattern/FormPattern.figma.d.ts +2 -0
- package/lib/typescript/src/patterns/pattern-components/FormPattern/FormPattern.figma.d.ts.map +1 -0
- package/lib/typescript/src/patterns/pattern-components/FormPattern/index.d.ts +3 -0
- package/lib/typescript/src/patterns/pattern-components/FormPattern/index.d.ts.map +1 -0
- package/lib/typescript/src/patterns/pattern-components/MonthlyCalendarPattern/MonthlyCalendarPattern.d.ts +41 -0
- package/lib/typescript/src/patterns/pattern-components/MonthlyCalendarPattern/MonthlyCalendarPattern.d.ts.map +1 -0
- package/lib/typescript/src/patterns/pattern-components/MonthlyCalendarPattern/MonthlyCalendarPattern.figma.d.ts +2 -0
- package/lib/typescript/src/patterns/pattern-components/MonthlyCalendarPattern/MonthlyCalendarPattern.figma.d.ts.map +1 -0
- package/lib/typescript/src/patterns/pattern-components/MonthlyCalendarPattern/index.d.ts +3 -0
- package/lib/typescript/src/patterns/pattern-components/MonthlyCalendarPattern/index.d.ts.map +1 -0
- package/lib/typescript/src/patterns/pattern-components/SkeletonPattern/SkeletonPattern.d.ts +42 -0
- package/lib/typescript/src/patterns/pattern-components/SkeletonPattern/SkeletonPattern.d.ts.map +1 -0
- package/lib/typescript/src/patterns/pattern-components/SkeletonPattern/SkeletonPattern.figma.d.ts +2 -0
- package/lib/typescript/src/patterns/pattern-components/SkeletonPattern/SkeletonPattern.figma.d.ts.map +1 -0
- package/lib/typescript/src/patterns/pattern-components/SkeletonPattern/index.d.ts +3 -0
- package/lib/typescript/src/patterns/pattern-components/SkeletonPattern/index.d.ts.map +1 -0
- package/lib/typescript/src/patterns/pattern-components/SuccessPattern/SuccessPattern.d.ts +45 -0
- package/lib/typescript/src/patterns/pattern-components/SuccessPattern/SuccessPattern.d.ts.map +1 -0
- package/lib/typescript/src/patterns/pattern-components/SuccessPattern/SuccessPattern.figma.d.ts +2 -0
- package/lib/typescript/src/patterns/pattern-components/SuccessPattern/SuccessPattern.figma.d.ts.map +1 -0
- package/lib/typescript/src/patterns/pattern-components/SuccessPattern/index.d.ts +3 -0
- package/lib/typescript/src/patterns/pattern-components/SuccessPattern/index.d.ts.map +1 -0
- package/lib/typescript/src/patterns/pattern-components/index.d.ts +16 -0
- package/lib/typescript/src/patterns/pattern-components/index.d.ts.map +1 -0
- package/lib/typescript/tailwind.config.d.ts +3 -0
- package/lib/typescript/tailwind.config.d.ts.map +1 -0
- package/package.json +7 -5
- package/src/components/DataDisplay/FeedCard/FeedCard.figma.tsx +43 -0
- package/src/components/DataDisplay/FeedCard/FeedCard.tsx +376 -0
- package/src/components/DataDisplay/Greeting/Greeting.figma.tsx +10 -2
- package/src/components/DataDisplay/Greeting/Greeting.tsx +107 -26
- package/src/components/ui/index.ts +1 -0
package/lib/typescript/src/patterns/pattern-components/SuccessPattern/SuccessPattern.figma.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SuccessPattern.figma.d.ts","sourceRoot":"","sources":["../../../../../../src/patterns/pattern-components/SuccessPattern/SuccessPattern.figma.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/patterns/pattern-components/SuccessPattern/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export * from './AlertDialogPattern';
|
|
2
|
+
export * from './DashboardPattern';
|
|
3
|
+
export * from './EmptyState';
|
|
4
|
+
export * from './DataListPattern';
|
|
5
|
+
export * from './CardListPattern';
|
|
6
|
+
export * from './AlertPattern';
|
|
7
|
+
export * from './DialogPattern';
|
|
8
|
+
export * from './SkeletonPattern';
|
|
9
|
+
export * from './SuccessPattern';
|
|
10
|
+
export * from './FormPattern';
|
|
11
|
+
export * from './EntityPatternOverview';
|
|
12
|
+
export * from './EntityPatternStructured';
|
|
13
|
+
export * from './EntityPatternGuided';
|
|
14
|
+
export * from './CalendarPattern';
|
|
15
|
+
export * from './MonthlyCalendarPattern';
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/patterns/pattern-components/index.ts"],"names":[],"mappings":"AACA,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tailwind.config.d.ts","sourceRoot":"","sources":["../../tailwind.config.js"],"names":[],"mappings":"wBAEW,OAAO,aAAa,EAAE,MAAM"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@campxdev/react-native-blueprint",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.19",
|
|
4
4
|
"description": "This is a react-native package for mobile apps",
|
|
5
5
|
"main": "./lib/module/index.js",
|
|
6
6
|
"types": "./lib/typescript/src/index.d.ts",
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
"types": "./lib/typescript/src/index.d.ts",
|
|
11
11
|
"default": "./lib/module/index.js"
|
|
12
12
|
},
|
|
13
|
-
"./package.json": "./package.json"
|
|
13
|
+
"./package.json": "./package.json",
|
|
14
|
+
"./style": "./global.css"
|
|
14
15
|
},
|
|
15
16
|
"files": [
|
|
16
17
|
"src",
|
|
@@ -43,8 +44,9 @@
|
|
|
43
44
|
"typecheck": "tsc --project tsconfig.build.json",
|
|
44
45
|
"lint": "eslint \"**/*.{js,ts,tsx}\"",
|
|
45
46
|
"clean": "del-cli lib",
|
|
46
|
-
"
|
|
47
|
-
"
|
|
47
|
+
"build:css": "tailwindcss -i ./global.css -o ./lib/global.css --content './src/**/*.{ts,tsx}' --minify",
|
|
48
|
+
"prepare": "yarn build:css && bob build --target module",
|
|
49
|
+
"build:full": "yarn build:css && bob build",
|
|
48
50
|
"release": "release-it --only-version"
|
|
49
51
|
},
|
|
50
52
|
"keywords": [
|
|
@@ -91,7 +93,6 @@
|
|
|
91
93
|
"react-native": "0.81.4",
|
|
92
94
|
"react-native-builder-bob": "^0.40.13",
|
|
93
95
|
"release-it": "^19.0.4",
|
|
94
|
-
"tailwindcss": "^3.4.17",
|
|
95
96
|
"typescript": "^5.9.2"
|
|
96
97
|
},
|
|
97
98
|
"peerDependencies": {
|
|
@@ -213,6 +214,7 @@
|
|
|
213
214
|
"react-native-svg": "^15.14.0",
|
|
214
215
|
"react-native-worklets": "0.5.1",
|
|
215
216
|
"tailwind-merge": "^3.3.1",
|
|
217
|
+
"tailwindcss": "^3.4.17",
|
|
216
218
|
"tailwindcss-animate": "^1.0.7"
|
|
217
219
|
}
|
|
218
220
|
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import figma from '@figma/code-connect';
|
|
2
|
+
import { FeedCard } from './FeedCard';
|
|
3
|
+
|
|
4
|
+
const FIGMA_URL =
|
|
5
|
+
'https://www.figma.com/design/66WaqopqU3WXgwVtyQuTUf/React-Native-Blueprint-Library?node-id=511-10139';
|
|
6
|
+
|
|
7
|
+
figma.connect(FeedCard, FIGMA_URL, {
|
|
8
|
+
props: {
|
|
9
|
+
type: figma.enum('type', {
|
|
10
|
+
post: 'post',
|
|
11
|
+
announcement: 'announcement',
|
|
12
|
+
}),
|
|
13
|
+
authorName: figma.string('authorName'),
|
|
14
|
+
postTitle: figma.string('postTitle'),
|
|
15
|
+
subtitle: figma.string('subtitle'),
|
|
16
|
+
postContent: figma.string('postContent'),
|
|
17
|
+
showHeader: figma.boolean('Show Header'),
|
|
18
|
+
showLeading: figma.boolean('Show Leading'),
|
|
19
|
+
showMedia: figma.boolean('Show Media'),
|
|
20
|
+
showPostContent: figma.boolean('Show PostContent'),
|
|
21
|
+
showSubtitle: figma.boolean('Show Subtitle'),
|
|
22
|
+
showBadges: figma.boolean('Show Badges'),
|
|
23
|
+
showFooterActions: figma.boolean('Show FooterActions'),
|
|
24
|
+
showSecondaryButton: figma.boolean('Show SecondaryButton'),
|
|
25
|
+
},
|
|
26
|
+
example: (props) => (
|
|
27
|
+
<FeedCard
|
|
28
|
+
type={props.type}
|
|
29
|
+
authorName={props.authorName}
|
|
30
|
+
postTitle={props.postTitle}
|
|
31
|
+
subtitle={props.subtitle}
|
|
32
|
+
postContent={props.postContent}
|
|
33
|
+
showHeader={props.showHeader}
|
|
34
|
+
showLeading={props.showLeading}
|
|
35
|
+
showMedia={props.showMedia}
|
|
36
|
+
showPostContent={props.showPostContent}
|
|
37
|
+
showSubtitle={props.showSubtitle}
|
|
38
|
+
showBadges={props.showBadges}
|
|
39
|
+
showFooterActions={props.showFooterActions}
|
|
40
|
+
showSecondaryButton={props.showSecondaryButton}
|
|
41
|
+
/>
|
|
42
|
+
),
|
|
43
|
+
});
|
|
@@ -0,0 +1,376 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import {
|
|
3
|
+
View as RNView,
|
|
4
|
+
Text as RNTextBase,
|
|
5
|
+
Image as RNImage,
|
|
6
|
+
type ImageSourcePropType,
|
|
7
|
+
type StyleProp,
|
|
8
|
+
type ViewStyle,
|
|
9
|
+
} from 'react-native';
|
|
10
|
+
import { cssInterop } from 'nativewind';
|
|
11
|
+
import { cva } from 'class-variance-authority';
|
|
12
|
+
|
|
13
|
+
import { cn } from '../../../lib/utils';
|
|
14
|
+
import { Button } from '../../Input/Button/Button';
|
|
15
|
+
import { Badge } from '../Badge/Badge';
|
|
16
|
+
import { Text } from '../../Input/Text/Text';
|
|
17
|
+
import { Avatar } from '../Avatar/Avatar';
|
|
18
|
+
import { AspectRatio } from '../../Layout/AspectRatio/Aspect-Ratio';
|
|
19
|
+
|
|
20
|
+
// Default placeholder image
|
|
21
|
+
const DEFAULT_MEDIA_IMAGE =
|
|
22
|
+
'https://images.unsplash.com/photo-1470071459604-3b5ec3a7fe3e?w=400&h=224&fit=crop';
|
|
23
|
+
|
|
24
|
+
// NativeWind interop (className -> style)
|
|
25
|
+
const View = cssInterop(RNView, { className: 'style' });
|
|
26
|
+
const RNText = cssInterop(RNTextBase, { className: 'style' });
|
|
27
|
+
const Image = cssInterop(RNImage, { className: 'style' });
|
|
28
|
+
|
|
29
|
+
/* ============================================================================
|
|
30
|
+
* VARIANTS
|
|
31
|
+
* ============================================================================ */
|
|
32
|
+
|
|
33
|
+
export const FeedCardVariants = {
|
|
34
|
+
type: ['post', 'announcement'] as const,
|
|
35
|
+
} as const;
|
|
36
|
+
|
|
37
|
+
type FeedCardType = (typeof FeedCardVariants.type)[number];
|
|
38
|
+
|
|
39
|
+
const rootVariants = cva('w-full overflow-hidden rounded-3xl', {
|
|
40
|
+
variants: {
|
|
41
|
+
type: {
|
|
42
|
+
post: 'bg-surface-default',
|
|
43
|
+
announcement: 'bg-surface-default border border-border-default',
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
defaultVariants: {
|
|
47
|
+
type: 'post',
|
|
48
|
+
},
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
const metaRowVariants = cva('w-full flex-row p-4', {
|
|
52
|
+
variants: {
|
|
53
|
+
type: {
|
|
54
|
+
post: 'items-center gap-2',
|
|
55
|
+
announcement: 'items-center justify-between',
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
defaultVariants: {
|
|
59
|
+
type: 'post',
|
|
60
|
+
},
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
const mediaWrapVariants = cva('w-full overflow-hidden px-4 pb-4');
|
|
64
|
+
|
|
65
|
+
const contentWrapVariants = cva('w-full px-4 pb-4 flex-col');
|
|
66
|
+
|
|
67
|
+
const headerVariants = cva('w-full gap-1 flex-col');
|
|
68
|
+
|
|
69
|
+
const titleVariants = cva('text-base font-semibold text-text-primary');
|
|
70
|
+
|
|
71
|
+
const subtitleVariants = cva('text-xs font-medium text-text-secondary');
|
|
72
|
+
|
|
73
|
+
const bodyVariants = cva('text-sm font-medium text-text-primary');
|
|
74
|
+
|
|
75
|
+
const badgesRowVariants = cva('w-full flex-row items-start gap-2 pb-4 px-4');
|
|
76
|
+
|
|
77
|
+
const footerRowVariants = cva(
|
|
78
|
+
'w-full flex-row items-center justify-between px-4 pb-4'
|
|
79
|
+
);
|
|
80
|
+
|
|
81
|
+
const leftButtonsVariants = cva('flex-row items-center gap-2');
|
|
82
|
+
|
|
83
|
+
const rightButtonsVariants = cva('flex-row items-center');
|
|
84
|
+
|
|
85
|
+
/* ============================================================================
|
|
86
|
+
* HELPERS
|
|
87
|
+
* ============================================================================ */
|
|
88
|
+
|
|
89
|
+
function normalizeType(v: any): FeedCardType {
|
|
90
|
+
const s = String(v ?? 'post').toLowerCase();
|
|
91
|
+
return s === 'announcement' ? 'announcement' : 'post';
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/* ============================================================================
|
|
95
|
+
* PROPS
|
|
96
|
+
* ============================================================================ */
|
|
97
|
+
|
|
98
|
+
export type FeedCardProps = {
|
|
99
|
+
/** Author/creator name */
|
|
100
|
+
authorName?: string;
|
|
101
|
+
|
|
102
|
+
/** Post/announcement title */
|
|
103
|
+
postTitle?: string;
|
|
104
|
+
|
|
105
|
+
/** Subtitle below title */
|
|
106
|
+
subtitle?: string;
|
|
107
|
+
|
|
108
|
+
/** Main body content */
|
|
109
|
+
postContent?: string;
|
|
110
|
+
|
|
111
|
+
/** Optional image/media */
|
|
112
|
+
image?: ImageSourcePropType;
|
|
113
|
+
|
|
114
|
+
/** Card type variant */
|
|
115
|
+
type?: FeedCardType | 'Post' | 'Announcement';
|
|
116
|
+
|
|
117
|
+
/** Visibility toggles */
|
|
118
|
+
showHeader?: boolean;
|
|
119
|
+
showLeading?: boolean;
|
|
120
|
+
showMedia?: boolean;
|
|
121
|
+
showPostContent?: boolean;
|
|
122
|
+
showSubtitle?: boolean;
|
|
123
|
+
showBadges?: boolean;
|
|
124
|
+
showFooterActions?: boolean;
|
|
125
|
+
showSecondaryButton?: boolean;
|
|
126
|
+
|
|
127
|
+
/** Badge labels */
|
|
128
|
+
badge1Text?: string;
|
|
129
|
+
badge2Text?: string;
|
|
130
|
+
|
|
131
|
+
/** Button labels */
|
|
132
|
+
primaryActionText?: string;
|
|
133
|
+
secondaryActionText?: string;
|
|
134
|
+
tertiaryActionText?: string;
|
|
135
|
+
|
|
136
|
+
/** Callbacks */
|
|
137
|
+
onPrimaryActionPress?: () => void;
|
|
138
|
+
onSecondaryActionPress?: () => void;
|
|
139
|
+
onTertiaryActionPress?: () => void;
|
|
140
|
+
|
|
141
|
+
/** Styling */
|
|
142
|
+
style?: StyleProp<ViewStyle>;
|
|
143
|
+
testID?: string;
|
|
144
|
+
className?: never;
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
/* ============================================================================
|
|
148
|
+
* COMPONENT
|
|
149
|
+
* ============================================================================ */
|
|
150
|
+
|
|
151
|
+
export function FeedCard(props: FeedCardProps) {
|
|
152
|
+
const {
|
|
153
|
+
authorName = 'Author Name',
|
|
154
|
+
postTitle = 'Post Title',
|
|
155
|
+
subtitle = 'Subtitle of the card goes here',
|
|
156
|
+
postContent = 'The card may contain body content which can be truncated to 1-2 lines. Swap Content in Props.',
|
|
157
|
+
image,
|
|
158
|
+
|
|
159
|
+
type = 'post',
|
|
160
|
+
|
|
161
|
+
showHeader = true,
|
|
162
|
+
showLeading = true,
|
|
163
|
+
showMedia = true,
|
|
164
|
+
showPostContent = true,
|
|
165
|
+
showSubtitle = true,
|
|
166
|
+
showBadges = true,
|
|
167
|
+
showFooterActions = true,
|
|
168
|
+
showSecondaryButton = true,
|
|
169
|
+
|
|
170
|
+
badge1Text = 'Badge',
|
|
171
|
+
badge2Text = 'Badge',
|
|
172
|
+
|
|
173
|
+
primaryActionText = 'Button',
|
|
174
|
+
secondaryActionText = 'Button',
|
|
175
|
+
|
|
176
|
+
onPrimaryActionPress,
|
|
177
|
+
onSecondaryActionPress,
|
|
178
|
+
onTertiaryActionPress,
|
|
179
|
+
|
|
180
|
+
style,
|
|
181
|
+
testID,
|
|
182
|
+
} = props;
|
|
183
|
+
|
|
184
|
+
const cardType = normalizeType(type);
|
|
185
|
+
const isAnnouncement = cardType === 'announcement';
|
|
186
|
+
|
|
187
|
+
return (
|
|
188
|
+
<View
|
|
189
|
+
testID={testID ?? 'feed-card'}
|
|
190
|
+
className={cn(rootVariants({ type: cardType }))}
|
|
191
|
+
style={style}
|
|
192
|
+
>
|
|
193
|
+
{/* Meta Section: Author Info */}
|
|
194
|
+
<View
|
|
195
|
+
testID="feed-card-meta"
|
|
196
|
+
className={cn(metaRowVariants({ type: cardType }))}
|
|
197
|
+
>
|
|
198
|
+
{showLeading && (
|
|
199
|
+
<View
|
|
200
|
+
testID="feed-card-leading"
|
|
201
|
+
className="items-center justify-center"
|
|
202
|
+
>
|
|
203
|
+
<Avatar
|
|
204
|
+
initials={(authorName ?? 'AA').slice(0, 2).toUpperCase()}
|
|
205
|
+
size="Default"
|
|
206
|
+
type="Initials"
|
|
207
|
+
/>
|
|
208
|
+
</View>
|
|
209
|
+
)}
|
|
210
|
+
|
|
211
|
+
{/* Author Details */}
|
|
212
|
+
<View testID="feed-card-author" className="flex-col flex-1 gap-0.5">
|
|
213
|
+
<RNText
|
|
214
|
+
testID="feed-card-author-name"
|
|
215
|
+
numberOfLines={1}
|
|
216
|
+
className="text-sm font-semibold text-text-primary"
|
|
217
|
+
>
|
|
218
|
+
{authorName}
|
|
219
|
+
</RNText>
|
|
220
|
+
<RNText
|
|
221
|
+
testID="feed-card-timestamp"
|
|
222
|
+
numberOfLines={1}
|
|
223
|
+
className="text-xs font-normal text-text-secondary"
|
|
224
|
+
>
|
|
225
|
+
Posted 1 day ago
|
|
226
|
+
</RNText>
|
|
227
|
+
</View>
|
|
228
|
+
|
|
229
|
+
{/* Announcement Badge */}
|
|
230
|
+
{isAnnouncement && (
|
|
231
|
+
<Badge
|
|
232
|
+
testID="feed-card-type-badge"
|
|
233
|
+
variant="default"
|
|
234
|
+
size="sm"
|
|
235
|
+
showLeftIcon={false}
|
|
236
|
+
showRightIcon={false}
|
|
237
|
+
>
|
|
238
|
+
<Text>Announcement</Text>
|
|
239
|
+
</Badge>
|
|
240
|
+
)}
|
|
241
|
+
</View>
|
|
242
|
+
|
|
243
|
+
{/* Media Section */}
|
|
244
|
+
{showMedia && (
|
|
245
|
+
<View testID="feed-card-media-wrap" className={cn(mediaWrapVariants())}>
|
|
246
|
+
<AspectRatio variant="16:9">
|
|
247
|
+
<View className="w-full h-full bg-surface-subtle rounded-3xl overflow-hidden">
|
|
248
|
+
<Image
|
|
249
|
+
testID="feed-card-media"
|
|
250
|
+
source={image || { uri: DEFAULT_MEDIA_IMAGE }}
|
|
251
|
+
resizeMode="cover"
|
|
252
|
+
className="w-full h-full"
|
|
253
|
+
/>
|
|
254
|
+
</View>
|
|
255
|
+
</AspectRatio>
|
|
256
|
+
</View>
|
|
257
|
+
)}
|
|
258
|
+
|
|
259
|
+
{/* Content Section */}
|
|
260
|
+
{showPostContent && (
|
|
261
|
+
<View testID="feed-card-content" className={cn(contentWrapVariants())}>
|
|
262
|
+
{/* Header: Title + Subtitle */}
|
|
263
|
+
{showHeader && (
|
|
264
|
+
<View testID="feed-card-header" className={cn(headerVariants())}>
|
|
265
|
+
<RNText
|
|
266
|
+
testID="feed-card-title"
|
|
267
|
+
numberOfLines={1}
|
|
268
|
+
className={cn(titleVariants())}
|
|
269
|
+
>
|
|
270
|
+
{postTitle}
|
|
271
|
+
</RNText>
|
|
272
|
+
|
|
273
|
+
{showSubtitle && (
|
|
274
|
+
<RNText
|
|
275
|
+
testID="feed-card-subtitle"
|
|
276
|
+
numberOfLines={1}
|
|
277
|
+
className={cn(subtitleVariants())}
|
|
278
|
+
>
|
|
279
|
+
{subtitle}
|
|
280
|
+
</RNText>
|
|
281
|
+
)}
|
|
282
|
+
</View>
|
|
283
|
+
)}
|
|
284
|
+
|
|
285
|
+
{/* Body */}
|
|
286
|
+
<RNText
|
|
287
|
+
testID="feed-card-body"
|
|
288
|
+
numberOfLines={2}
|
|
289
|
+
className={cn(bodyVariants())}
|
|
290
|
+
>
|
|
291
|
+
{postContent}
|
|
292
|
+
</RNText>
|
|
293
|
+
</View>
|
|
294
|
+
)}
|
|
295
|
+
|
|
296
|
+
{/* Badges Section */}
|
|
297
|
+
{showBadges && (
|
|
298
|
+
<View testID="feed-card-badges" className={cn(badgesRowVariants())}>
|
|
299
|
+
<Badge
|
|
300
|
+
testID="feed-card-badge-1"
|
|
301
|
+
variant="default"
|
|
302
|
+
size="sm"
|
|
303
|
+
showLeftIcon={false}
|
|
304
|
+
showRightIcon={false}
|
|
305
|
+
>
|
|
306
|
+
<Text>{badge1Text}</Text>
|
|
307
|
+
</Badge>
|
|
308
|
+
<Badge
|
|
309
|
+
testID="feed-card-badge-2"
|
|
310
|
+
variant="default"
|
|
311
|
+
size="sm"
|
|
312
|
+
showLeftIcon={false}
|
|
313
|
+
showRightIcon={false}
|
|
314
|
+
>
|
|
315
|
+
<Text>{badge2Text}</Text>
|
|
316
|
+
</Badge>
|
|
317
|
+
</View>
|
|
318
|
+
)}
|
|
319
|
+
|
|
320
|
+
{/* Footer Actions */}
|
|
321
|
+
{showFooterActions && (
|
|
322
|
+
<View testID="feed-card-footer" className={cn(footerRowVariants())}>
|
|
323
|
+
<View
|
|
324
|
+
testID="feed-card-footer-left"
|
|
325
|
+
className={cn(leftButtonsVariants())}
|
|
326
|
+
>
|
|
327
|
+
<Button
|
|
328
|
+
testID="feed-card-primary-action"
|
|
329
|
+
disabled={false}
|
|
330
|
+
size="default"
|
|
331
|
+
variant="default"
|
|
332
|
+
showLeftIcon={false}
|
|
333
|
+
showRightIcon={false}
|
|
334
|
+
onPress={onPrimaryActionPress}
|
|
335
|
+
>
|
|
336
|
+
{primaryActionText}
|
|
337
|
+
</Button>
|
|
338
|
+
|
|
339
|
+
{showSecondaryButton && (
|
|
340
|
+
<Button
|
|
341
|
+
testID="feed-card-secondary-action"
|
|
342
|
+
disabled={false}
|
|
343
|
+
size="default"
|
|
344
|
+
variant="secondary"
|
|
345
|
+
showLeftIcon={false}
|
|
346
|
+
showRightIcon={false}
|
|
347
|
+
onPress={onSecondaryActionPress}
|
|
348
|
+
>
|
|
349
|
+
{secondaryActionText}
|
|
350
|
+
</Button>
|
|
351
|
+
)}
|
|
352
|
+
</View>
|
|
353
|
+
|
|
354
|
+
<View
|
|
355
|
+
testID="feed-card-footer-right"
|
|
356
|
+
className={cn(rightButtonsVariants())}
|
|
357
|
+
>
|
|
358
|
+
<Button
|
|
359
|
+
testID="feed-card-tertiary-action"
|
|
360
|
+
disabled={false}
|
|
361
|
+
size="icon"
|
|
362
|
+
variant="secondary"
|
|
363
|
+
showLeftIcon={false}
|
|
364
|
+
showRightIcon={false}
|
|
365
|
+
onPress={onTertiaryActionPress}
|
|
366
|
+
/>
|
|
367
|
+
</View>
|
|
368
|
+
</View>
|
|
369
|
+
)}
|
|
370
|
+
</View>
|
|
371
|
+
);
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
FeedCard.displayName = 'FeedCard';
|
|
375
|
+
|
|
376
|
+
export type { FeedCardProps };
|
|
@@ -2,11 +2,19 @@ import figma from '@figma/code-connect';
|
|
|
2
2
|
import { Greeting } from './Greeting';
|
|
3
3
|
|
|
4
4
|
const FIGMA_URL =
|
|
5
|
-
'https://www.figma.com/design/66WaqopqU3WXgwVtyQuTUf/React-Native-Blueprint-Library?node-id=
|
|
5
|
+
'https://www.figma.com/design/66WaqopqU3WXgwVtyQuTUf/React-Native-Blueprint-Library?node-id=495-8995';
|
|
6
6
|
|
|
7
7
|
figma.connect(Greeting, FIGMA_URL, {
|
|
8
8
|
props: {
|
|
9
|
+
ctaLayout: figma.enum('CTA Layout', {
|
|
10
|
+
'icon': 'icon',
|
|
11
|
+
'none': 'none',
|
|
12
|
+
'floating': 'floating',
|
|
13
|
+
'ai summary': 'ai summary',
|
|
14
|
+
}),
|
|
9
15
|
showNextUp: figma.boolean('Show NextUp'),
|
|
10
16
|
},
|
|
11
|
-
example: (props) =>
|
|
17
|
+
example: (props) => (
|
|
18
|
+
<Greeting ctaLayout={props.ctaLayout} showNextUp={props.showNextUp} />
|
|
19
|
+
),
|
|
12
20
|
});
|