@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
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import Animated from 'react-native-reanimated';
|
|
2
|
+
/**
|
|
3
|
+
* Platform-conditional animated view component
|
|
4
|
+
*
|
|
5
|
+
* Renders an Animated.View on native platforms (iOS/Android) and a React Fragment
|
|
6
|
+
* on web. This utility helps maintain consistent animation APIs across platforms
|
|
7
|
+
* while avoiding web-incompatible animations.
|
|
8
|
+
*
|
|
9
|
+
* Used internally by other components like Dialog, Popover, Tooltip, etc. to provide
|
|
10
|
+
* smooth entrance/exit animations on native while gracefully degrading to no animation
|
|
11
|
+
* on web where certain Reanimated features are not supported.
|
|
12
|
+
*
|
|
13
|
+
* @component
|
|
14
|
+
* @example
|
|
15
|
+
* ```tsx
|
|
16
|
+
* <NativeOnlyAnimatedView entering={FadeIn} exiting={FadeOut}>
|
|
17
|
+
* <View><Text>Animated content on native, static on web</Text></View>
|
|
18
|
+
* </NativeOnlyAnimatedView>
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* @platform iOS, Android - Full animation support
|
|
22
|
+
* @platform web - Renders as Fragment without animations
|
|
23
|
+
*/
|
|
24
|
+
declare function NativeOnlyAnimatedView(props: React.ComponentPropsWithRef<typeof Animated.View> & {
|
|
25
|
+
children?: React.ReactNode;
|
|
26
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export { NativeOnlyAnimatedView };
|
|
28
|
+
//# sourceMappingURL=Native-Only-Animated-View.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Native-Only-Animated-View.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/Native-Only-Animated-View.tsx"],"names":[],"mappings":"AACA,OAAO,QAAQ,MAAM,yBAAyB,CAAC;AAE/C;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,iBAAS,sBAAsB,CAC7B,KAAK,EAAE,KAAK,CAAC,qBAAqB,CAAC,OAAO,QAAQ,CAAC,IAAI,CAAC,GAAG;IACzD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,2CAOF;AAED,OAAO,EAAE,sBAAsB,EAAE,CAAC"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type ViewStyle } from 'react-native';
|
|
3
|
+
interface SizedBoxProps {
|
|
4
|
+
/**
|
|
5
|
+
* The width of the box
|
|
6
|
+
*/
|
|
7
|
+
width?: number;
|
|
8
|
+
/**
|
|
9
|
+
* The height of the box
|
|
10
|
+
*/
|
|
11
|
+
height?: number;
|
|
12
|
+
/**
|
|
13
|
+
* Optional child element to render inside the box
|
|
14
|
+
*/
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
/**
|
|
17
|
+
* Additional styles to apply
|
|
18
|
+
*/
|
|
19
|
+
style?: ViewStyle;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* A box with a specified size.
|
|
23
|
+
*
|
|
24
|
+
* If a child is provided, this widget forces its child to have a specific width and/or height.
|
|
25
|
+
* If either the width or height is not specified, this widget will size itself to match the child's size in that dimension.
|
|
26
|
+
*
|
|
27
|
+
* If no child is provided, this widget will size itself to the specified width and height,
|
|
28
|
+
* treating null values as zero.
|
|
29
|
+
*
|
|
30
|
+
* This is similar to Flutter's SizedBox widget and is useful for:
|
|
31
|
+
* - Adding fixed spacing between widgets
|
|
32
|
+
* - Constraining child widget dimensions
|
|
33
|
+
* - Creating empty space
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* // Create spacing
|
|
37
|
+
* <SizedBox height={16} />
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* // Constrain child size
|
|
41
|
+
* <SizedBox width={100} height={100}>
|
|
42
|
+
* <Image source={...} />
|
|
43
|
+
* </SizedBox>
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* // Create horizontal spacing
|
|
47
|
+
* <View style={{ flexDirection: 'row' }}>
|
|
48
|
+
* <Button />
|
|
49
|
+
* <SizedBox width={12} />
|
|
50
|
+
* <Button />
|
|
51
|
+
* </View>
|
|
52
|
+
*/
|
|
53
|
+
export declare function SizedBox({ width, height, children, style }: SizedBoxProps): import("react/jsx-runtime").JSX.Element;
|
|
54
|
+
export declare namespace SizedBox {
|
|
55
|
+
/**
|
|
56
|
+
* Creates a square SizedBox with equal width and height
|
|
57
|
+
*/
|
|
58
|
+
function Square({ size, children, style, }: {
|
|
59
|
+
size: number;
|
|
60
|
+
children?: React.ReactNode;
|
|
61
|
+
style?: ViewStyle;
|
|
62
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
63
|
+
/**
|
|
64
|
+
* Creates a SizedBox that expands to fill available space
|
|
65
|
+
*/
|
|
66
|
+
function Expand({ children, style, }: {
|
|
67
|
+
children?: React.ReactNode;
|
|
68
|
+
style?: ViewStyle;
|
|
69
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
70
|
+
/**
|
|
71
|
+
* Creates a SizedBox that shrinks to fit its content
|
|
72
|
+
*/
|
|
73
|
+
function Shrink({ children, style, }: {
|
|
74
|
+
children?: React.ReactNode;
|
|
75
|
+
style?: ViewStyle;
|
|
76
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
77
|
+
}
|
|
78
|
+
export {};
|
|
79
|
+
//# sourceMappingURL=SizedBox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SizedBox.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/SizedBox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpD,UAAU,aAAa;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAgB,QAAQ,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,aAAa,2CAQzE;AAGD,yBAAiB,QAAQ,CAAC;IACxB;;OAEG;IACH,SAAgB,MAAM,CAAC,EACrB,IAAI,EACJ,QAAQ,EACR,KAAK,GACN,EAAE;QACD,IAAI,EAAE,MAAM,CAAC;QACb,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,KAAK,CAAC,EAAE,SAAS,CAAC;KACnB,2CAMA;IAED;;OAEG;IACH,SAAgB,MAAM,CAAC,EACrB,QAAQ,EACR,KAAK,GACN,EAAE;QACD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,KAAK,CAAC,EAAE,SAAS,CAAC;KACnB,2CAGA;IAED;;OAEG;IACH,SAAgB,MAAM,CAAC,EACrB,QAAQ,EACR,KAAK,GACN,EAAE;QACD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,KAAK,CAAC,EAAE,SAAS,CAAC;KACnB,2CAGA;CACF"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ViewProps } from 'react-native';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the Slider component
|
|
5
|
+
*
|
|
6
|
+
* @property {number} value - Current slider value
|
|
7
|
+
* @property {function} onValueChange - Callback when value changes
|
|
8
|
+
* @property {number} min - Minimum value (default: 0)
|
|
9
|
+
* @property {number} max - Maximum value (default: 100)
|
|
10
|
+
* @property {number} step - Step increment (default: 1)
|
|
11
|
+
* @property {boolean} disabled - Whether the slider is disabled
|
|
12
|
+
*/
|
|
13
|
+
export interface SliderProps extends Omit<ViewProps, 'children'> {
|
|
14
|
+
value: number;
|
|
15
|
+
onValueChange?: (value: number[]) => void;
|
|
16
|
+
min?: number;
|
|
17
|
+
max?: number;
|
|
18
|
+
step?: number;
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
className?: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Ref interface for Slider component
|
|
24
|
+
*
|
|
25
|
+
* @property {function} reset - Resets slider to minimum value
|
|
26
|
+
*/
|
|
27
|
+
export interface SliderRef {
|
|
28
|
+
reset: () => void;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Interactive slider component for selecting numeric values
|
|
32
|
+
*
|
|
33
|
+
* Provides smooth gesture-based interaction with spring animations.
|
|
34
|
+
* Supports min/max ranges, step increments, and tap-to-select.
|
|
35
|
+
*
|
|
36
|
+
* @component
|
|
37
|
+
* @example
|
|
38
|
+
* ```tsx
|
|
39
|
+
* <Slider
|
|
40
|
+
* value={volume}
|
|
41
|
+
* onValueChange={(values) => setVolume(values[0])}
|
|
42
|
+
* min={0}
|
|
43
|
+
* max={100}
|
|
44
|
+
* step={5}
|
|
45
|
+
* />
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* @accessibility
|
|
49
|
+
* - Disabled state prevents interaction
|
|
50
|
+
* - Focus visible states on web
|
|
51
|
+
* - Value changes are announced by screen readers
|
|
52
|
+
*/
|
|
53
|
+
declare const Slider: React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<SliderRef>>;
|
|
54
|
+
export { Slider };
|
|
55
|
+
//# sourceMappingURL=Slider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/Slider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAkB,SAAS,EAAE,MAAM,cAAc,CAAC;AAUzD;;;;;;;;;GASG;AACH,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC;IAC9D,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAC1C,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,QAAA,MAAM,MAAM,+EA0JX,CAAC;AAIF,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { Text } from '../Input/Text/Text';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
/**
|
|
5
|
+
* Root table container component
|
|
6
|
+
*
|
|
7
|
+
* @component
|
|
8
|
+
* @example
|
|
9
|
+
* ```tsx
|
|
10
|
+
* <Table>
|
|
11
|
+
* <TableHeader>
|
|
12
|
+
* <TableRow>
|
|
13
|
+
* <TableHead><Text>Name</Text></TableHead>
|
|
14
|
+
* <TableHead><Text>Email</Text></TableHead>
|
|
15
|
+
* </TableRow>
|
|
16
|
+
* </TableHeader>
|
|
17
|
+
* <TableBody>
|
|
18
|
+
* <TableRow>
|
|
19
|
+
* <TableCell><Text>John Doe</Text></TableCell>
|
|
20
|
+
* <TableCell><Text>john@example.com</Text></TableCell>
|
|
21
|
+
* </TableRow>
|
|
22
|
+
* </TableBody>
|
|
23
|
+
* </Table>
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
declare function Table({ className, ...props }: React.ComponentProps<typeof View> & React.RefAttributes<View>): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
/**
|
|
28
|
+
* Table header container
|
|
29
|
+
*
|
|
30
|
+
* @component
|
|
31
|
+
*/
|
|
32
|
+
declare function TableHeader({ className, ...props }: React.ComponentProps<typeof View> & React.RefAttributes<View>): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
/**
|
|
34
|
+
* Table body container for data rows
|
|
35
|
+
*
|
|
36
|
+
* @component
|
|
37
|
+
*/
|
|
38
|
+
declare function TableBody({ className, ...props }: React.ComponentProps<typeof View> & React.RefAttributes<View>): import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
/**
|
|
40
|
+
* Table footer container
|
|
41
|
+
*
|
|
42
|
+
* @component
|
|
43
|
+
*/
|
|
44
|
+
declare function TableFooter({ className, ...props }: React.ComponentProps<typeof View> & React.RefAttributes<View>): import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
/**
|
|
46
|
+
* Table row component
|
|
47
|
+
*
|
|
48
|
+
* @component
|
|
49
|
+
*/
|
|
50
|
+
declare function TableRow({ className, ...props }: React.ComponentProps<typeof View> & React.RefAttributes<View>): import("react/jsx-runtime").JSX.Element;
|
|
51
|
+
/**
|
|
52
|
+
* Table header cell component
|
|
53
|
+
*
|
|
54
|
+
* @component
|
|
55
|
+
*/
|
|
56
|
+
declare function TableHead({ className, ...props }: React.ComponentProps<typeof Text> & React.RefAttributes<Text>): import("react/jsx-runtime").JSX.Element;
|
|
57
|
+
/**
|
|
58
|
+
* Table data cell component
|
|
59
|
+
*
|
|
60
|
+
* @component
|
|
61
|
+
*/
|
|
62
|
+
declare function TableCell({ className, ...props }: React.ComponentProps<typeof Text> & React.RefAttributes<Text>): import("react/jsx-runtime").JSX.Element;
|
|
63
|
+
/**
|
|
64
|
+
* Table caption for describing the table
|
|
65
|
+
*
|
|
66
|
+
* @component
|
|
67
|
+
*/
|
|
68
|
+
declare function TableCaption({ className, ...props }: React.ComponentProps<typeof Text> & React.RefAttributes<Text>): import("react/jsx-runtime").JSX.Element;
|
|
69
|
+
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, };
|
|
70
|
+
//# sourceMappingURL=Table.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/Table.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,iBAAS,KAAK,CAAC,EACb,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,2CAE/D;AAED;;;;GAIG;AACH,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,2CAO/D;AAED;;;;GAIG;AACH,iBAAS,SAAS,CAAC,EACjB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,2CAE/D;AAED;;;;GAIG;AACH,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,2CAU/D;AAED;;;;GAIG;AACH,iBAAS,QAAQ,CAAC,EAChB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,2CAO/D;AAED;;;;GAIG;AACH,iBAAS,SAAS,CAAC,EACjB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,2CAU/D;AAED;;;;GAIG;AACH,iBAAS,SAAS,CAAC,EACjB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,2CAO/D;AAED;;;;GAIG;AACH,iBAAS,YAAY,CAAC,EACpB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,2CAU/D;AAED,OAAO,EACL,KAAK,EACL,SAAS,EACT,YAAY,EACZ,SAAS,EACT,WAAW,EACX,SAAS,EACT,WAAW,EACX,QAAQ,GACT,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Text } from '../Input/Text/Text';
|
|
2
|
+
import type { LucideIcon } from 'lucide-react-native';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { View, type ViewProps } from 'react-native';
|
|
5
|
+
/**
|
|
6
|
+
* Toast notification component
|
|
7
|
+
*
|
|
8
|
+
* Displays temporary messages or notifications with optional icons.
|
|
9
|
+
* Supports default and destructive variants for different message types.
|
|
10
|
+
*
|
|
11
|
+
* @component
|
|
12
|
+
* @example
|
|
13
|
+
* ```tsx
|
|
14
|
+
* <Toast icon={CheckCircle}>
|
|
15
|
+
* <ToastTitle>
|
|
16
|
+
* <Text>Success</Text>
|
|
17
|
+
* </ToastTitle>
|
|
18
|
+
* <ToastDescription>
|
|
19
|
+
* <Text>Your changes have been saved</Text>
|
|
20
|
+
* </ToastDescription>
|
|
21
|
+
* </Toast>
|
|
22
|
+
*
|
|
23
|
+
* <Toast variant="destructive" icon={AlertCircle}>
|
|
24
|
+
* <ToastTitle>
|
|
25
|
+
* <Text>Error</Text>
|
|
26
|
+
* </ToastTitle>
|
|
27
|
+
* <ToastDescription>
|
|
28
|
+
* <Text>Failed to save changes</Text>
|
|
29
|
+
* </ToastDescription>
|
|
30
|
+
* </Toast>
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* @accessibility
|
|
34
|
+
* - Announces messages to screen readers
|
|
35
|
+
* - Proper role for notifications
|
|
36
|
+
*/
|
|
37
|
+
declare function Toast({ className, variant, children, icon, iconClassName, ...props }: ViewProps & React.RefAttributes<View> & {
|
|
38
|
+
icon?: LucideIcon;
|
|
39
|
+
variant?: 'default' | 'destructive';
|
|
40
|
+
iconClassName?: string;
|
|
41
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
/**
|
|
43
|
+
* Toast title component
|
|
44
|
+
*
|
|
45
|
+
* @component
|
|
46
|
+
*/
|
|
47
|
+
declare function ToastTitle({ className, ...props }: React.ComponentProps<typeof Text> & React.RefAttributes<Text>): import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
/**
|
|
49
|
+
* Toast description component
|
|
50
|
+
*
|
|
51
|
+
* @component
|
|
52
|
+
*/
|
|
53
|
+
declare function ToastDescription({ className, ...props }: React.ComponentProps<typeof Text> & React.RefAttributes<Text>): import("react/jsx-runtime").JSX.Element;
|
|
54
|
+
export { Toast, ToastDescription, ToastTitle };
|
|
55
|
+
//# sourceMappingURL=Toast.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/Toast.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAoB,MAAM,oBAAoB,CAAC;AAE5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAKpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,iBAAS,KAAK,CAAC,EACb,SAAS,EACT,OAAO,EACP,QAAQ,EACR,IAAI,EACJ,aAAa,EACb,GAAG,KAAK,EACT,EAAE,SAAS,GACV,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,GAAG;IAC1B,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,OAAO,CAAC,EAAE,SAAS,GAAG,aAAa,CAAC;IACpC,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,2CA+BF;AAED;;;;GAIG;AACH,iBAAS,UAAU,CAAC,EAClB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,2CAO/D;AAED;;;;GAIG;AACH,iBAAS,gBAAgB,CAAC,EACxB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,2CAY/D;AAED,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
export * from '../DataDisplay/Accordion/Accordion';
|
|
2
|
+
export * from '../DataDisplay/AccordionItem/AccordionItem';
|
|
3
|
+
export * from '../Feedback/Alert/Alert';
|
|
4
|
+
export * from '../Feedback/AlertDialog/Alert-Dialog';
|
|
5
|
+
export * from '../Feedback/InfoBar/InfoBar';
|
|
6
|
+
export * from '../Navigation/Appbar/AppBar';
|
|
7
|
+
export * from '../Layout/AspectRatio/Aspect-Ratio';
|
|
8
|
+
export * from '../DataDisplay/Avatar/Avatar';
|
|
9
|
+
export * from '../DataDisplay/Badge/Badge';
|
|
10
|
+
export * from '../DataDisplay/Banner/Banner';
|
|
11
|
+
export * from '../DataDisplay/Chips/Chips';
|
|
12
|
+
export * from '../DataDisplay/ChipsRow/ChipsRow';
|
|
13
|
+
export * from '../DataDisplay/BannerRow/BannerRow';
|
|
14
|
+
export * from '../Layout/PageLayoutShell/PageLayoutShell';
|
|
15
|
+
export * from '../Layout/PageLayoutFocused/PageLayoutFocused';
|
|
16
|
+
export * from '../Layout/PageContent/PageContent';
|
|
17
|
+
export * from '../Layout/Bottomsheet/Bottom-Sheet';
|
|
18
|
+
export * from '../Input/Button/Button';
|
|
19
|
+
export * from '../DataDisplay/Card/Card';
|
|
20
|
+
export * from '../DataDisplay/CalendarItem/CalendarItem';
|
|
21
|
+
export * from '../DataDisplay/FeedCard/FeedCard';
|
|
22
|
+
export * from '../DataDisplay/Greeting/Greeting';
|
|
23
|
+
export * from '../DataDisplay/MonthCalendar/MonthCalendar';
|
|
24
|
+
export * from '../DataDisplay/DataCard/DataCard';
|
|
25
|
+
export * from '../Input/Checkbox/Checkbox';
|
|
26
|
+
export * from './Collapsible';
|
|
27
|
+
export * from '../Navigation/ContextMenu/Context-Menu';
|
|
28
|
+
export * from './Custom-Card';
|
|
29
|
+
export * from '../Navigation/Dialog/Dialog';
|
|
30
|
+
export * from './Dropdown-Menu';
|
|
31
|
+
export * from '../Navigation/FloatingAction/Floating-Action';
|
|
32
|
+
export * from './Hover-Card';
|
|
33
|
+
export * from './Icon';
|
|
34
|
+
export * from './Input';
|
|
35
|
+
export * from './Label';
|
|
36
|
+
export * from './Menubar';
|
|
37
|
+
export * from '../Navigation/Navbar/NavBar';
|
|
38
|
+
export * from '../Navigation/Popover/Popover';
|
|
39
|
+
export * from '../Layout/PopoverContainer/Popover-Container';
|
|
40
|
+
export * from '../Feedback/ProgressLinear/Progress-linear';
|
|
41
|
+
export * from '../Feedback/ProgressCircular/Progress-circular';
|
|
42
|
+
export * from '../Feedback/Stepper/Stepper';
|
|
43
|
+
export * from '../Input/RadioGroup/Radio-Group';
|
|
44
|
+
export * from '../Input/Select/Select';
|
|
45
|
+
export * from '../DataDisplay/Separator/Separator';
|
|
46
|
+
export * from './SizedBox';
|
|
47
|
+
export * from '../DataDisplay/Skeleton/Skeleton';
|
|
48
|
+
export * from './Slider';
|
|
49
|
+
export * from '../Input/switch/Switch';
|
|
50
|
+
export * from './Table';
|
|
51
|
+
export * from '../Layout/Tabs/Tabs';
|
|
52
|
+
export * from '../Input/Text/Text';
|
|
53
|
+
export * from '../Input/TextField/Textfield';
|
|
54
|
+
export * from '../Navigation/Themetoggle/Theme-Toggle';
|
|
55
|
+
export * from './Toast';
|
|
56
|
+
export * from '../Input/Toggle/Toggle';
|
|
57
|
+
export * from '../Input/ToggleGroup/Toggle-Group';
|
|
58
|
+
export * from '../DataDisplay/Tooltip/Tooltip';
|
|
59
|
+
export * from '../DataDisplay/DataListItem/DataListItem';
|
|
60
|
+
export * from '../DataDisplay/Datalist/Datalist';
|
|
61
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/index.ts"],"names":[],"mappings":"AACA,cAAc,oCAAoC,CAAC;AACnD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,yBAAyB,CAAC;AACxC,cAAc,sCAAsC,CAAC;AACrD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oCAAoC,CAAC;AACnD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AACnD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0CAA0C,CAAC;AACzD,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;AACjD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,eAAe,CAAC;AAC9B,cAAc,wCAAwC,CAAC;AACvD,cAAc,eAAe,CAAC;AAC9B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iBAAiB,CAAC;AAChC,cAAc,8CAA8C,CAAC;AAE7D,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,8CAA8C,CAAC;AAC7D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,wBAAwB,CAAC;AACvC,cAAc,oCAAoC,CAAC;AACnD,cAAc,YAAY,CAAC;AAC3B,cAAc,kCAAkC,CAAC;AACjD,cAAc,UAAU,CAAC;AACzB,cAAc,wBAAwB,CAAC;AACvC,cAAc,SAAS,CAAC;AACxB,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wCAAwC,CAAC;AACvD,cAAc,SAAS,CAAC;AACxB,cAAc,wBAAwB,CAAC;AACvC,cAAc,mCAAmC,CAAC;AAClD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0CAA0C,CAAC;AACzD,cAAc,kCAAkC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './components/ui';
|
|
2
|
+
export * from './patterns/pattern-components';
|
|
3
|
+
export { default as RootLayout } from './app/_layout';
|
|
4
|
+
export { cn } from './lib/utils';
|
|
5
|
+
export { THEME, NAV_THEME } from './lib/theme';
|
|
6
|
+
export { ThemeProvider, useTheme } from './lib/ThemeProvider';
|
|
7
|
+
export { getRadiusForHeight, getRadiusForDimensions, getCustomRadius, RADIUS, RADIUS_PRESET, CORNER_SMOOTHING, } from './lib/cornerRadius';
|
|
8
|
+
export { fonts } from './lib/fonts';
|
|
9
|
+
export type { FontName } from './lib/fonts';
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AACA,cAAc,iBAAiB,CAAC;AAGhC,cAAc,+BAA+B,CAAC;AAG9C,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,eAAe,CAAC;AAGtD,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAG9D,OAAO,EACL,kBAAkB,EAClB,sBAAsB,EACtB,eAAe,EACf,MAAM,EACN,aAAa,EACb,gBAAgB,GACjB,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,YAAY,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Available theme modes for the application
|
|
4
|
+
* @typedef {'light' | 'dark' | 'system'} ThemeMode
|
|
5
|
+
* - `light`: Force light theme regardless of system preference
|
|
6
|
+
* - `dark`: Force dark theme regardless of system preference
|
|
7
|
+
* - `system`: Automatically follow device system theme preference (default)
|
|
8
|
+
*/
|
|
9
|
+
export type ThemeMode = 'light' | 'dark' | 'system';
|
|
10
|
+
/**
|
|
11
|
+
* Context type for theme management
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
type ThemeContextType = {
|
|
15
|
+
/** Current theme mode setting */
|
|
16
|
+
mode: ThemeMode;
|
|
17
|
+
/** Whether dark mode is currently active (computed from mode and system preference) */
|
|
18
|
+
isDark: boolean;
|
|
19
|
+
/** Function to change the theme mode */
|
|
20
|
+
setMode: (mode: ThemeMode) => void;
|
|
21
|
+
/** Theme color tokens for the current mode */
|
|
22
|
+
colors: typeof import('./theme').THEME.light;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Props for ThemeProvider component
|
|
26
|
+
*/
|
|
27
|
+
type ThemeProviderProps = {
|
|
28
|
+
/** Application content to provide theme context to */
|
|
29
|
+
children: React.ReactNode;
|
|
30
|
+
/**
|
|
31
|
+
* Initial theme mode
|
|
32
|
+
* @default 'system'
|
|
33
|
+
*/
|
|
34
|
+
defaultMode?: ThemeMode;
|
|
35
|
+
/**
|
|
36
|
+
* Storage key for persisting theme preference (not yet implemented)
|
|
37
|
+
* @deprecated Currently not used - will be implemented in future version
|
|
38
|
+
*/
|
|
39
|
+
storageKey?: string;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Theme Provider component that manages application theme state
|
|
43
|
+
*
|
|
44
|
+
* Provides theme context to all child components, enabling dark mode support
|
|
45
|
+
* throughout the application. Automatically responds to system theme changes
|
|
46
|
+
* when mode is set to 'system'.
|
|
47
|
+
*
|
|
48
|
+
* @component
|
|
49
|
+
* @example
|
|
50
|
+
* ```tsx
|
|
51
|
+
* // Basic usage with system theme
|
|
52
|
+
* function App() {
|
|
53
|
+
* return (
|
|
54
|
+
* <ThemeProvider>
|
|
55
|
+
* <YourApp />
|
|
56
|
+
* </ThemeProvider>
|
|
57
|
+
* );
|
|
58
|
+
* }
|
|
59
|
+
*
|
|
60
|
+
* // Start with dark mode
|
|
61
|
+
* function App() {
|
|
62
|
+
* return (
|
|
63
|
+
* <ThemeProvider defaultMode="dark">
|
|
64
|
+
* <YourApp />
|
|
65
|
+
* </ThemeProvider>
|
|
66
|
+
* );
|
|
67
|
+
* }
|
|
68
|
+
* ```
|
|
69
|
+
*
|
|
70
|
+
* @param {ThemeProviderProps} props - Component props
|
|
71
|
+
* @returns {JSX.Element} Provider component wrapping children with theme context
|
|
72
|
+
*
|
|
73
|
+
* @see {@link useTheme} for accessing theme in child components
|
|
74
|
+
* @see {@link useThemeMode} for optional theme access without error
|
|
75
|
+
*/
|
|
76
|
+
export declare function ThemeProvider({ children, defaultMode, }: ThemeProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
77
|
+
/**
|
|
78
|
+
* Hook to access theme context and controls
|
|
79
|
+
*
|
|
80
|
+
* Provides access to the current theme state and methods to change the theme.
|
|
81
|
+
* Must be used within a ThemeProvider component tree.
|
|
82
|
+
*
|
|
83
|
+
* @returns {ThemeContextType} Theme context object
|
|
84
|
+
* @throws {Error} If used outside of ThemeProvider
|
|
85
|
+
*
|
|
86
|
+
* @example
|
|
87
|
+
* ```tsx
|
|
88
|
+
* function MyComponent() {
|
|
89
|
+
* const { mode, isDark, setMode, colors } = useTheme();
|
|
90
|
+
*
|
|
91
|
+
* return (
|
|
92
|
+
* <View style={{ backgroundColor: colors.background }}>
|
|
93
|
+
* <Text style={{ color: colors.foreground }}>
|
|
94
|
+
* Current mode: {mode} (Dark: {isDark ? 'Yes' : 'No'})
|
|
95
|
+
* </Text>
|
|
96
|
+
* <Button onPress={() => setMode(isDark ? 'light' : 'dark')}>
|
|
97
|
+
* <Text>Toggle Theme</Text>
|
|
98
|
+
* </Button>
|
|
99
|
+
* </View>
|
|
100
|
+
* );
|
|
101
|
+
* }
|
|
102
|
+
* ```
|
|
103
|
+
*
|
|
104
|
+
* @see {@link ThemeProvider} for setup
|
|
105
|
+
* @see {@link useThemeMode} for optional access without error throwing
|
|
106
|
+
*/
|
|
107
|
+
export declare function useTheme(): ThemeContextType;
|
|
108
|
+
/**
|
|
109
|
+
* Optional hook to get current dark mode state
|
|
110
|
+
*
|
|
111
|
+
* Similar to useTheme but only returns the isDark boolean and doesn't throw
|
|
112
|
+
* an error if used outside ThemeProvider. Useful for components that want
|
|
113
|
+
* to adapt to theme but don't require it.
|
|
114
|
+
*
|
|
115
|
+
* @returns {boolean | undefined} Whether dark mode is active, or undefined if no provider
|
|
116
|
+
*
|
|
117
|
+
* @example
|
|
118
|
+
* ```tsx
|
|
119
|
+
* function OptionalThemedComponent() {
|
|
120
|
+
* const isDark = useThemeMode();
|
|
121
|
+
*
|
|
122
|
+
* // Component works with or without ThemeProvider
|
|
123
|
+
* const backgroundColor = isDark ? '#000' : '#fff';
|
|
124
|
+
*
|
|
125
|
+
* return (
|
|
126
|
+
* <View style={{ backgroundColor }}>
|
|
127
|
+
* <Text>This component adapts if theme is available</Text>
|
|
128
|
+
* </View>
|
|
129
|
+
* );
|
|
130
|
+
* }
|
|
131
|
+
* ```
|
|
132
|
+
*
|
|
133
|
+
* @see {@link useTheme} for full theme access (requires provider)
|
|
134
|
+
*/
|
|
135
|
+
export declare function useThemeMode(): boolean | undefined;
|
|
136
|
+
export {};
|
|
137
|
+
//# sourceMappingURL=ThemeProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../../../src/lib/ThemeProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B;;;;;;GAMG;AACH,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEpD;;;GAGG;AACH,KAAK,gBAAgB,GAAG;IACtB,iCAAiC;IACjC,IAAI,EAAE,SAAS,CAAC;IAChB,uFAAuF;IACvF,MAAM,EAAE,OAAO,CAAC;IAChB,wCAAwC;IACxC,OAAO,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;IACnC,8CAA8C;IAC9C,MAAM,EAAE,cAAc,SAAS,EAAE,KAAK,CAAC,KAAK,CAAC;CAC9C,CAAC;AAMF;;GAEG;AACH,KAAK,kBAAkB,GAAG;IACxB,sDAAsD;IACtD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;;OAGG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,WAAsB,GACvB,EAAE,kBAAkB,2CA6CpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,QAAQ,qBAMvB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,YAAY,IAAI,OAAO,GAAG,SAAS,CAGlD"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Corner Radius System
|
|
3
|
+
*
|
|
4
|
+
* Automatically calculates the appropriate corner radius based on element dimensions.
|
|
5
|
+
*
|
|
6
|
+
* Design Rule:
|
|
7
|
+
* - Elements < 80px height → 12px radius
|
|
8
|
+
* - Elements ≥ 80px height → 20px radius
|
|
9
|
+
* - All corners use 100% smoothing (Apple-style squircles)
|
|
10
|
+
*
|
|
11
|
+
* Examples:
|
|
12
|
+
* - Button (50px height) → 12px
|
|
13
|
+
* - Chip (24px height) → 12px
|
|
14
|
+
* - Checkbox (16px height) → 4px (special case for very small)
|
|
15
|
+
* - Small card (60px height) → 12px
|
|
16
|
+
* - Large card (200px height) → 20px
|
|
17
|
+
* - Dialog (400px height) → 20px
|
|
18
|
+
*/
|
|
19
|
+
/**
|
|
20
|
+
* Primitive radius values from your design system
|
|
21
|
+
* Your exact values: 0, 2, 4, 8, 12, 20, 24, 32, 48
|
|
22
|
+
*/
|
|
23
|
+
export declare const RADIUS: {
|
|
24
|
+
readonly R0: 0;
|
|
25
|
+
readonly R1: 2;
|
|
26
|
+
readonly R2: 4;
|
|
27
|
+
readonly R3: 8;
|
|
28
|
+
readonly R4: 12;
|
|
29
|
+
readonly R5: 20;
|
|
30
|
+
readonly R6: 24;
|
|
31
|
+
readonly R7: 32;
|
|
32
|
+
readonly R8: 48;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Calculate corner radius based on element height
|
|
36
|
+
*
|
|
37
|
+
* @param height - Element height in pixels
|
|
38
|
+
* @returns Corner radius in pixels
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```tsx
|
|
42
|
+
* // Button (50px height)
|
|
43
|
+
* const radius = getRadiusForHeight(50); // Returns 12
|
|
44
|
+
*
|
|
45
|
+
* // Checkbox (16px height)
|
|
46
|
+
* const radius = getRadiusForHeight(16); // Returns 4
|
|
47
|
+
*
|
|
48
|
+
* // Card (160px height)
|
|
49
|
+
* const radius = getRadiusForHeight(160); // Returns 20
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
export declare function getRadiusForHeight(height: number): number;
|
|
53
|
+
/**
|
|
54
|
+
* Calculate corner radius based on smallest dimension (width or height)
|
|
55
|
+
* Useful for square or nearly-square elements
|
|
56
|
+
*
|
|
57
|
+
* @param width - Element width in pixels
|
|
58
|
+
* @param height - Element height in pixels
|
|
59
|
+
* @returns Corner radius in pixels
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* ```tsx
|
|
63
|
+
* // Square checkbox (16×16)
|
|
64
|
+
* const radius = getRadiusForDimensions(16, 16); // Returns 4
|
|
65
|
+
*
|
|
66
|
+
* // Wide button (200×50)
|
|
67
|
+
* const radius = getRadiusForDimensions(200, 50); // Returns 12 (based on height)
|
|
68
|
+
*
|
|
69
|
+
* // Tall card (300×200)
|
|
70
|
+
* const radius = getRadiusForDimensions(300, 200); // Returns 20 (based on width)
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
export declare function getRadiusForDimensions(width: number, height: number): number;
|
|
74
|
+
/**
|
|
75
|
+
* Get corner radius with custom thresholds
|
|
76
|
+
* Advanced usage when you need different breakpoints
|
|
77
|
+
*
|
|
78
|
+
* @param height - Element height in pixels
|
|
79
|
+
* @param options - Custom threshold options
|
|
80
|
+
* @returns Corner radius in pixels
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* ```tsx
|
|
84
|
+
* // Use 20px radius for elements ≥ 100px instead of 80px
|
|
85
|
+
* const radius = getCustomRadius(90, { largeThreshold: 100 });
|
|
86
|
+
* ```
|
|
87
|
+
*/
|
|
88
|
+
export declare function getCustomRadius(height: number, options?: {
|
|
89
|
+
tinyThreshold?: number;
|
|
90
|
+
smallThreshold?: number;
|
|
91
|
+
tinyRadius?: number;
|
|
92
|
+
smallRadius?: number;
|
|
93
|
+
largeRadius?: number;
|
|
94
|
+
}): number;
|
|
95
|
+
/**
|
|
96
|
+
* Corner smoothing value (0-1)
|
|
97
|
+
* 1.0 = 100% smoothing (Apple-style squircles)
|
|
98
|
+
*/
|
|
99
|
+
export declare const CORNER_SMOOTHING = 1;
|
|
100
|
+
/**
|
|
101
|
+
* Preset radius values for common use cases
|
|
102
|
+
* Use these when you know the exact size you want
|
|
103
|
+
*/
|
|
104
|
+
export declare const RADIUS_PRESET: {
|
|
105
|
+
readonly none: 0;
|
|
106
|
+
readonly tiny: 4;
|
|
107
|
+
readonly small: 12;
|
|
108
|
+
readonly large: 20;
|
|
109
|
+
readonly pill: 24;
|
|
110
|
+
readonly circle: 9999;
|
|
111
|
+
};
|
|
112
|
+
//# sourceMappingURL=cornerRadius.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cornerRadius.d.ts","sourceRoot":"","sources":["../../../../src/lib/cornerRadius.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH;;;GAGG;AACH,eAAO,MAAM,MAAM;;;;;;;;;;CAUT,CAAC;AAWX;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAUzD;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAG5E;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,eAAe,CAC7B,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE;IACR,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GACA,MAAM,CAkBR;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,IAAM,CAAC;AAEpC;;;GAGG;AACH,eAAO,MAAM,aAAa;;;;;;;CAOhB,CAAC"}
|