@kimdw-rtk/ui 0.0.2 → 0.0.5
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/dist/components/Accordion/Accordion.css.d.ts +16 -0
- package/dist/components/Accordion/Accordion.css.d.ts.map +1 -0
- package/dist/components/Accordion/Accordion.css.js +24 -0
- package/dist/components/Accordion/Accordion.d.ts +8 -0
- package/dist/components/Accordion/Accordion.d.ts.map +1 -0
- package/dist/components/Accordion/Accordion.js +12 -0
- package/dist/components/Accordion/Accordion.spec.d.ts +2 -0
- package/dist/components/Accordion/Accordion.spec.d.ts.map +1 -0
- package/dist/components/Accordion/Accordion.spec.js +5 -0
- package/dist/components/Accordion/AccordionContent.css.d.ts +13 -0
- package/dist/components/Accordion/AccordionContent.css.d.ts.map +1 -0
- package/dist/components/Accordion/AccordionContent.css.js +22 -0
- package/dist/components/Accordion/AccordionContent.d.ts +7 -0
- package/dist/components/Accordion/AccordionContent.d.ts.map +1 -0
- package/dist/components/Accordion/AccordionContent.js +56 -0
- package/dist/components/Accordion/AccordionContext.d.ts +7 -0
- package/dist/components/Accordion/AccordionContext.d.ts.map +1 -0
- package/dist/components/Accordion/AccordionContext.js +5 -0
- package/dist/components/Accordion/AccordionTrigger.css.d.ts +19 -0
- package/dist/components/Accordion/AccordionTrigger.css.d.ts.map +1 -0
- package/dist/components/Accordion/AccordionTrigger.css.js +39 -0
- package/dist/components/Accordion/AccordionTrigger.d.ts +8 -0
- package/dist/components/Accordion/AccordionTrigger.d.ts.map +1 -0
- package/dist/components/Accordion/AccordionTrigger.js +14 -0
- package/dist/components/Accordion/index.d.ts +4 -0
- package/dist/components/Accordion/index.d.ts.map +1 -0
- package/dist/components/Accordion/index.js +3 -0
- package/dist/components/Alert/index.d.ts +7 -0
- package/dist/components/Alert/index.d.ts.map +1 -0
- package/dist/components/Alert/index.js +9 -0
- package/dist/components/Box/Box.css.d.ts +13 -0
- package/dist/components/Box/Box.css.d.ts.map +1 -0
- package/dist/components/Box/Box.css.js +16 -0
- package/dist/components/Box/Box.spec.d.ts +2 -0
- package/dist/components/Box/Box.spec.d.ts.map +1 -0
- package/dist/components/Box/Box.spec.js +5 -0
- package/dist/components/Box/index.d.ts +7 -0
- package/dist/components/Box/index.d.ts.map +1 -0
- package/dist/components/Box/index.js +10 -0
- package/dist/components/Button/Button.css.d.ts +146 -0
- package/dist/components/Button/Button.css.d.ts.map +1 -0
- package/dist/components/Button/Button.css.js +182 -0
- package/dist/components/Button/Button.spec.d.ts +2 -0
- package/dist/components/Button/Button.spec.d.ts.map +1 -0
- package/dist/components/Button/Button.spec.js +19 -0
- package/dist/components/Button/index.d.ts +9 -0
- package/dist/components/Button/index.d.ts.map +1 -0
- package/dist/components/Button/index.js +19 -0
- package/dist/components/Card/Card.css.d.ts +61 -0
- package/dist/components/Card/Card.css.d.ts.map +1 -0
- package/dist/components/Card/Card.css.js +68 -0
- package/dist/components/Card/Card.d.ts +10 -0
- package/dist/components/Card/Card.d.ts.map +1 -0
- package/dist/components/Card/Card.js +10 -0
- package/dist/components/Card/Card.spec.d.ts +2 -0
- package/dist/components/Card/Card.spec.d.ts.map +1 -0
- package/dist/components/Card/Card.spec.js +16 -0
- package/dist/components/Card/CardContent.css.d.ts +2 -0
- package/dist/components/Card/CardContent.css.d.ts.map +1 -0
- package/dist/components/Card/CardContent.css.js +6 -0
- package/dist/components/Card/CardContent.d.ts +5 -0
- package/dist/components/Card/CardContent.d.ts.map +1 -0
- package/dist/components/Card/CardContent.js +9 -0
- package/dist/components/Card/CardInteraction.css.d.ts +2 -0
- package/dist/components/Card/CardInteraction.css.d.ts.map +1 -0
- package/dist/components/Card/CardInteraction.css.js +8 -0
- package/dist/components/Card/CardInteraction.d.ts +5 -0
- package/dist/components/Card/CardInteraction.d.ts.map +1 -0
- package/dist/components/Card/CardInteraction.js +12 -0
- package/dist/components/Card/CardThumbnail.css.d.ts +2 -0
- package/dist/components/Card/CardThumbnail.css.d.ts.map +1 -0
- package/dist/components/Card/CardThumbnail.css.js +5 -0
- package/dist/components/Card/CardThumbnail.d.ts +5 -0
- package/dist/components/Card/CardThumbnail.d.ts.map +1 -0
- package/dist/components/Card/CardThumbnail.js +9 -0
- package/dist/components/Card/index.d.ts +5 -0
- package/dist/components/Card/index.d.ts.map +1 -0
- package/dist/components/Card/index.js +4 -0
- package/dist/components/Chip/Chip.css.d.ts +46 -0
- package/dist/components/Chip/Chip.css.d.ts.map +1 -0
- package/dist/components/Chip/Chip.css.js +56 -0
- package/dist/components/Chip/Chip.d.ts +6 -0
- package/dist/components/Chip/Chip.d.ts.map +1 -0
- package/dist/components/Chip/Chip.js +10 -0
- package/dist/components/Chip/Chip.spec.d.ts +2 -0
- package/dist/components/Chip/Chip.spec.d.ts.map +1 -0
- package/dist/components/Chip/Chip.spec.js +5 -0
- package/dist/components/Chip/index.d.ts +2 -0
- package/dist/components/Chip/index.d.ts.map +1 -0
- package/dist/components/Chip/index.js +1 -0
- package/dist/components/Confirm/index.d.ts +12 -0
- package/dist/components/Confirm/index.d.ts.map +1 -0
- package/dist/components/Confirm/index.js +13 -0
- package/dist/components/Dialog/Dialog.css.d.ts +3 -0
- package/dist/components/Dialog/Dialog.css.d.ts.map +1 -0
- package/dist/components/Dialog/Dialog.css.js +19 -0
- package/dist/components/Dialog/Dialog.d.ts +5 -0
- package/dist/components/Dialog/Dialog.d.ts.map +1 -0
- package/dist/components/Dialog/Dialog.js +10 -0
- package/dist/components/Dialog/Dialog.spec.d.ts +2 -0
- package/dist/components/Dialog/Dialog.spec.d.ts.map +1 -0
- package/dist/components/Dialog/Dialog.spec.js +16 -0
- package/dist/components/Dialog/DialogContent.css.d.ts +2 -0
- package/dist/components/Dialog/DialogContent.css.d.ts.map +1 -0
- package/dist/components/Dialog/DialogContent.css.js +12 -0
- package/dist/components/Dialog/DialogContent.d.ts +5 -0
- package/dist/components/Dialog/DialogContent.d.ts.map +1 -0
- package/dist/components/Dialog/DialogContent.js +10 -0
- package/dist/components/Dialog/DialogFooter.css.d.ts +3 -0
- package/dist/components/Dialog/DialogFooter.css.d.ts.map +1 -0
- package/dist/components/Dialog/DialogFooter.css.js +15 -0
- package/dist/components/Dialog/DialogFooter.d.ts +5 -0
- package/dist/components/Dialog/DialogFooter.d.ts.map +1 -0
- package/dist/components/Dialog/DialogFooter.js +9 -0
- package/dist/components/Dialog/DialogHeader.css.d.ts +3 -0
- package/dist/components/Dialog/DialogHeader.css.d.ts.map +1 -0
- package/dist/components/Dialog/DialogHeader.css.js +23 -0
- package/dist/components/Dialog/DialogHeader.d.ts +7 -0
- package/dist/components/Dialog/DialogHeader.d.ts.map +1 -0
- package/dist/components/Dialog/DialogHeader.js +11 -0
- package/dist/components/Dialog/index.d.ts +5 -0
- package/dist/components/Dialog/index.d.ts.map +1 -0
- package/dist/components/Dialog/index.js +4 -0
- package/dist/components/Navigation/Navigation.spec.d.ts +2 -0
- package/dist/components/Navigation/Navigation.spec.d.ts.map +1 -0
- package/dist/components/Navigation/Navigation.spec.js +11 -0
- package/dist/components/Navigation/NavigationAside.css.d.ts +2 -0
- package/dist/components/Navigation/NavigationAside.css.d.ts.map +1 -0
- package/dist/components/Navigation/NavigationAside.css.js +6 -0
- package/dist/components/Navigation/NavigationAside.d.ts +5 -0
- package/dist/components/Navigation/NavigationAside.d.ts.map +1 -0
- package/dist/components/Navigation/NavigationAside.js +10 -0
- package/dist/components/Navigation/NavigationBar.css.d.ts +15 -0
- package/dist/components/Navigation/NavigationBar.css.d.ts.map +1 -0
- package/dist/components/Navigation/NavigationBar.css.js +32 -0
- package/dist/components/Navigation/NavigationBar.d.ts +6 -0
- package/dist/components/Navigation/NavigationBar.d.ts.map +1 -0
- package/dist/components/Navigation/NavigationBar.js +10 -0
- package/dist/components/Navigation/NavigationContainer.css.d.ts +2 -0
- package/dist/components/Navigation/NavigationContainer.css.d.ts.map +1 -0
- package/dist/components/Navigation/NavigationContainer.css.js +9 -0
- package/dist/components/Navigation/NavigationContainer.d.ts +5 -0
- package/dist/components/Navigation/NavigationContainer.d.ts.map +1 -0
- package/dist/components/Navigation/NavigationContainer.js +9 -0
- package/dist/components/Navigation/NavigationDrawer.css.d.ts +14 -0
- package/dist/components/Navigation/NavigationDrawer.css.d.ts.map +1 -0
- package/dist/components/Navigation/NavigationDrawer.css.js +49 -0
- package/dist/components/Navigation/NavigationDrawer.d.ts +8 -0
- package/dist/components/Navigation/NavigationDrawer.d.ts.map +1 -0
- package/dist/components/Navigation/NavigationDrawer.js +23 -0
- package/dist/components/Navigation/NavigationItem.css.d.ts +11 -0
- package/dist/components/Navigation/NavigationItem.css.d.ts.map +1 -0
- package/dist/components/Navigation/NavigationItem.css.js +34 -0
- package/dist/components/Navigation/NavigationItem.d.ts +6 -0
- package/dist/components/Navigation/NavigationItem.d.ts.map +1 -0
- package/dist/components/Navigation/NavigationItem.js +9 -0
- package/dist/components/Navigation/NavigationLogo.css.d.ts +2 -0
- package/dist/components/Navigation/NavigationLogo.css.d.ts.map +1 -0
- package/dist/components/Navigation/NavigationLogo.css.js +4 -0
- package/dist/components/Navigation/NavigationLogo.d.ts +5 -0
- package/dist/components/Navigation/NavigationLogo.d.ts.map +1 -0
- package/dist/components/Navigation/NavigationLogo.js +9 -0
- package/dist/components/Navigation/NavigationMenu.css.d.ts +2 -0
- package/dist/components/Navigation/NavigationMenu.css.d.ts.map +1 -0
- package/dist/components/Navigation/NavigationMenu.css.js +19 -0
- package/dist/components/Navigation/NavigationMenu.d.ts +6 -0
- package/dist/components/Navigation/NavigationMenu.d.ts.map +1 -0
- package/dist/components/Navigation/NavigationMenu.js +10 -0
- package/dist/components/Navigation/index.d.ts +8 -0
- package/dist/components/Navigation/index.d.ts.map +1 -0
- package/dist/components/Navigation/index.js +7 -0
- package/dist/components/Range/Range.css.d.ts +49 -0
- package/dist/components/Range/Range.css.d.ts.map +1 -0
- package/dist/components/Range/Range.css.js +93 -0
- package/dist/components/Range/Range.d.ts +12 -0
- package/dist/components/Range/Range.d.ts.map +1 -0
- package/dist/components/Range/Range.js +37 -0
- package/dist/components/Range/Range.spec.d.ts +2 -0
- package/dist/components/Range/Range.spec.d.ts.map +1 -0
- package/dist/components/Range/Range.spec.js +5 -0
- package/dist/components/Range/index.d.ts +2 -0
- package/dist/components/Range/index.d.ts.map +1 -0
- package/dist/components/Range/index.js +1 -0
- package/dist/components/ScrollArea/ScrollArea.css.d.ts +6 -0
- package/dist/components/ScrollArea/ScrollArea.css.d.ts.map +1 -0
- package/dist/components/ScrollArea/ScrollArea.css.js +32 -0
- package/dist/components/ScrollArea/ScrollArea.d.ts +6 -0
- package/dist/components/ScrollArea/ScrollArea.d.ts.map +1 -0
- package/dist/components/ScrollArea/ScrollArea.js +34 -0
- package/dist/components/ScrollArea/ScrollArea.spec.d.ts +2 -0
- package/dist/components/ScrollArea/ScrollArea.spec.d.ts.map +1 -0
- package/dist/components/ScrollArea/ScrollArea.spec.js +5 -0
- package/dist/components/ScrollArea/index.d.ts +2 -0
- package/dist/components/ScrollArea/index.d.ts.map +1 -0
- package/dist/components/ScrollArea/index.js +1 -0
- package/dist/components/Select/Select.css.d.ts +14 -0
- package/dist/components/Select/Select.css.d.ts.map +1 -0
- package/dist/components/Select/Select.css.js +20 -0
- package/dist/components/Select/Select.d.ts +17 -0
- package/dist/components/Select/Select.d.ts.map +1 -0
- package/dist/components/Select/Select.js +46 -0
- package/dist/components/Select/Select.spec.d.ts +2 -0
- package/dist/components/Select/Select.spec.d.ts.map +1 -0
- package/dist/components/Select/Select.spec.js +35 -0
- package/dist/components/Select/SelectContext.d.ts +34 -0
- package/dist/components/Select/SelectContext.d.ts.map +1 -0
- package/dist/components/Select/SelectContext.js +30 -0
- package/dist/components/Select/SelectOption.css.d.ts +2 -0
- package/dist/components/Select/SelectOption.css.d.ts.map +1 -0
- package/dist/components/Select/SelectOption.css.js +10 -0
- package/dist/components/Select/SelectOption.d.ts +8 -0
- package/dist/components/Select/SelectOption.d.ts.map +1 -0
- package/dist/components/Select/SelectOption.js +23 -0
- package/dist/components/Select/SelectOptionList.css.d.ts +19 -0
- package/dist/components/Select/SelectOptionList.css.d.ts.map +1 -0
- package/dist/components/Select/SelectOptionList.css.js +55 -0
- package/dist/components/Select/SelectOptionList.d.ts +7 -0
- package/dist/components/Select/SelectOptionList.d.ts.map +1 -0
- package/dist/components/Select/SelectOptionList.js +33 -0
- package/dist/components/Select/SelectTrigger.css.d.ts +34 -0
- package/dist/components/Select/SelectTrigger.css.d.ts.map +1 -0
- package/dist/components/Select/SelectTrigger.css.js +59 -0
- package/dist/components/Select/SelectTrigger.d.ts +6 -0
- package/dist/components/Select/SelectTrigger.d.ts.map +1 -0
- package/dist/components/Select/SelectTrigger.js +19 -0
- package/dist/components/Select/index.d.ts +3 -0
- package/dist/components/Select/index.d.ts.map +1 -0
- package/dist/components/Select/index.js +2 -0
- package/dist/components/Skeleton/Skeleton.css.d.ts +2 -0
- package/dist/components/Skeleton/Skeleton.css.d.ts.map +1 -0
- package/dist/components/Skeleton/Skeleton.css.js +19 -0
- package/dist/components/Skeleton/Skeleton.spec.d.ts +2 -0
- package/dist/components/Skeleton/Skeleton.spec.d.ts.map +1 -0
- package/dist/components/Skeleton/Skeleton.spec.js +5 -0
- package/dist/components/Skeleton/index.d.ts +9 -0
- package/dist/components/Skeleton/index.d.ts.map +1 -0
- package/dist/components/Skeleton/index.js +9 -0
- package/dist/components/Table/Table.css.d.ts +3 -0
- package/dist/components/Table/Table.css.d.ts.map +1 -0
- package/dist/components/Table/Table.css.js +7 -0
- package/dist/components/Table/Table.d.ts +8 -0
- package/dist/components/Table/Table.d.ts.map +1 -0
- package/dist/components/Table/Table.js +10 -0
- package/dist/components/Table/Table.spec.d.ts +2 -0
- package/dist/components/Table/Table.spec.d.ts.map +1 -0
- package/dist/components/Table/Table.spec.js +10 -0
- package/dist/components/Table/TableBody.d.ts +5 -0
- package/dist/components/Table/TableBody.d.ts.map +1 -0
- package/dist/components/Table/TableBody.js +6 -0
- package/dist/components/Table/TableCell.css.d.ts +2 -0
- package/dist/components/Table/TableCell.css.d.ts.map +1 -0
- package/dist/components/Table/TableCell.css.js +32 -0
- package/dist/components/Table/TableCell.d.ts +9 -0
- package/dist/components/Table/TableCell.d.ts.map +1 -0
- package/dist/components/Table/TableCell.js +8 -0
- package/dist/components/Table/TableHead.css.d.ts +2 -0
- package/dist/components/Table/TableHead.css.d.ts.map +1 -0
- package/dist/components/Table/TableHead.css.js +8 -0
- package/dist/components/Table/TableHead.d.ts +9 -0
- package/dist/components/Table/TableHead.d.ts.map +1 -0
- package/dist/components/Table/TableHead.js +8 -0
- package/dist/components/Table/TableHeader.d.ts +5 -0
- package/dist/components/Table/TableHeader.d.ts.map +1 -0
- package/dist/components/Table/TableHeader.js +6 -0
- package/dist/components/Table/TableRow.css.d.ts +2 -0
- package/dist/components/Table/TableRow.css.d.ts.map +1 -0
- package/dist/components/Table/TableRow.css.js +2 -0
- package/dist/components/Table/TableRow.d.ts +7 -0
- package/dist/components/Table/TableRow.d.ts.map +1 -0
- package/dist/components/Table/TableRow.js +7 -0
- package/dist/components/Table/index.d.ts +7 -0
- package/dist/components/Table/index.d.ts.map +1 -0
- package/dist/components/Table/index.js +6 -0
- package/dist/components/Tabs/Tabs.d.ts +7 -0
- package/dist/components/Tabs/Tabs.d.ts.map +1 -0
- package/dist/components/Tabs/Tabs.js +11 -0
- package/dist/components/Tabs/Tabs.spec.d.ts +2 -0
- package/dist/components/Tabs/Tabs.spec.d.ts.map +1 -0
- package/dist/components/Tabs/Tabs.spec.js +22 -0
- package/dist/components/Tabs/TabsContent.d.ts +9 -0
- package/dist/components/Tabs/TabsContent.d.ts.map +1 -0
- package/dist/components/Tabs/TabsContent.js +17 -0
- package/dist/components/Tabs/TabsList.css.d.ts +2 -0
- package/dist/components/Tabs/TabsList.css.d.ts.map +1 -0
- package/dist/components/Tabs/TabsList.css.js +8 -0
- package/dist/components/Tabs/TabsList.d.ts +5 -0
- package/dist/components/Tabs/TabsList.d.ts.map +1 -0
- package/dist/components/Tabs/TabsList.js +9 -0
- package/dist/components/Tabs/TabsProvider.d.ts +9 -0
- package/dist/components/Tabs/TabsProvider.d.ts.map +1 -0
- package/dist/components/Tabs/TabsProvider.js +6 -0
- package/dist/components/Tabs/TabsTrigger.css.d.ts +13 -0
- package/dist/components/Tabs/TabsTrigger.css.d.ts.map +1 -0
- package/dist/components/Tabs/TabsTrigger.css.js +29 -0
- package/dist/components/Tabs/TabsTrigger.d.ts +7 -0
- package/dist/components/Tabs/TabsTrigger.d.ts.map +1 -0
- package/dist/components/Tabs/TabsTrigger.js +19 -0
- package/dist/components/Tabs/index.d.ts +5 -0
- package/dist/components/Tabs/index.d.ts.map +1 -0
- package/dist/components/Tabs/index.js +4 -0
- package/dist/components/TextField/TextField.css.d.ts +49 -0
- package/dist/components/TextField/TextField.css.d.ts.map +1 -0
- package/dist/components/TextField/TextField.css.js +59 -0
- package/dist/components/TextField/TextField.spec.d.ts +2 -0
- package/dist/components/TextField/TextField.spec.d.ts.map +1 -0
- package/dist/components/TextField/TextField.spec.js +5 -0
- package/dist/components/TextField/index.d.ts +8 -0
- package/dist/components/TextField/index.d.ts.map +1 -0
- package/dist/components/TextField/index.js +10 -0
- package/dist/components/Toast/Toast.css.d.ts +26 -0
- package/dist/components/Toast/Toast.css.d.ts.map +1 -0
- package/dist/components/Toast/Toast.css.js +62 -0
- package/dist/components/Toast/Toast.spec.d.ts +2 -0
- package/dist/components/Toast/Toast.spec.d.ts.map +1 -0
- package/dist/components/Toast/Toast.spec.js +5 -0
- package/dist/components/Toast/index.d.ts +8 -0
- package/dist/components/Toast/index.d.ts.map +1 -0
- package/dist/components/Toast/index.js +13 -0
- package/dist/components/Typography/Typography.css.d.ts +10 -0
- package/dist/components/Typography/Typography.css.d.ts.map +1 -0
- package/dist/components/Typography/Typography.css.js +15 -0
- package/dist/components/Typography/Typography.spec.d.ts +2 -0
- package/dist/components/Typography/Typography.spec.d.ts.map +1 -0
- package/dist/components/Typography/Typography.spec.js +28 -0
- package/dist/components/Typography/index.d.ts +14 -0
- package/dist/components/Typography/index.d.ts.map +1 -0
- package/dist/components/Typography/index.js +11 -0
- package/dist/components/index.d.ts +19 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +18 -0
- package/dist/contexts/UIProvider.d.ts +9 -0
- package/dist/contexts/UIProvider.d.ts.map +1 -0
- package/dist/contexts/UIProvider.js +8 -0
- package/dist/contexts/index.d.ts +2 -0
- package/dist/contexts/index.d.ts.map +1 -0
- package/dist/contexts/index.js +1 -0
- package/dist/hooks/index.d.ts +6 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +5 -0
- package/dist/hooks/useDialog/index.d.ts +6 -0
- package/dist/hooks/useDialog/index.d.ts.map +1 -0
- package/dist/hooks/useDialog/index.js +28 -0
- package/dist/hooks/useDialog/useDialog.spec.d.ts +2 -0
- package/dist/hooks/useDialog/useDialog.spec.d.ts.map +1 -0
- package/dist/hooks/useDialog/useDialog.spec.js +53 -0
- package/dist/hooks/useMouseScroll/index.d.ts +5 -0
- package/dist/hooks/useMouseScroll/index.d.ts.map +1 -0
- package/dist/hooks/useMouseScroll/index.js +47 -0
- package/dist/hooks/usePointerSlider/index.d.ts +6 -0
- package/dist/hooks/usePointerSlider/index.d.ts.map +1 -0
- package/dist/hooks/usePointerSlider/index.js +44 -0
- package/dist/hooks/useRipple/index.d.ts +4 -0
- package/dist/hooks/useRipple/index.d.ts.map +1 -0
- package/dist/hooks/useRipple/index.js +111 -0
- package/dist/hooks/useRipple/ripple.css.d.ts +13 -0
- package/dist/hooks/useRipple/ripple.css.d.ts.map +1 -0
- package/dist/hooks/useRipple/ripple.css.js +30 -0
- package/dist/hooks/useToast/ToastContainer.css.d.ts +2 -0
- package/dist/hooks/useToast/ToastContainer.css.d.ts.map +1 -0
- package/dist/hooks/useToast/ToastContainer.css.js +10 -0
- package/dist/hooks/useToast/ToastContainer.d.ts +7 -0
- package/dist/hooks/useToast/ToastContainer.d.ts.map +1 -0
- package/dist/hooks/useToast/ToastContainer.js +5 -0
- package/dist/hooks/useToast/ToastProvider.d.ts +22 -0
- package/dist/hooks/useToast/ToastProvider.d.ts.map +1 -0
- package/dist/hooks/useToast/ToastProvider.js +47 -0
- package/dist/hooks/useToast/index.d.ts +5 -0
- package/dist/hooks/useToast/index.d.ts.map +1 -0
- package/dist/hooks/useToast/index.js +10 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +8 -0
- package/dist/styles/globalStyle.css.d.ts +2 -0
- package/dist/styles/globalStyle.css.d.ts.map +1 -0
- package/dist/styles/globalStyle.css.js +26 -0
- package/dist/styles/index.d.ts +5 -0
- package/dist/styles/index.d.ts.map +1 -0
- package/dist/styles/index.js +4 -0
- package/dist/styles/layers.css.d.ts +3 -0
- package/dist/styles/layers.css.d.ts.map +1 -0
- package/dist/styles/layers.css.js +3 -0
- package/dist/styles/overlay.css.d.ts +4 -0
- package/dist/styles/overlay.css.d.ts.map +1 -0
- package/dist/styles/overlay.css.js +31 -0
- package/dist/styles/sprinkles.css.d.ts +3954 -0
- package/dist/styles/sprinkles.css.d.ts.map +1 -0
- package/dist/styles/sprinkles.css.js +118 -0
- package/dist/styles/sx.d.ts +3 -0
- package/dist/styles/sx.d.ts.map +1 -0
- package/dist/styles/sx.js +10 -0
- package/dist/tests/uiTest.d.ts +3 -0
- package/dist/tests/uiTest.d.ts.map +1 -0
- package/dist/tests/uiTest.js +36 -0
- package/dist/themes/darkTheme.css.d.ts +314 -0
- package/dist/themes/darkTheme.css.d.ts.map +1 -0
- package/dist/themes/darkTheme.css.js +29 -0
- package/dist/themes/index.d.ts +4 -0
- package/dist/themes/index.d.ts.map +1 -0
- package/dist/themes/index.js +3 -0
- package/dist/themes/lightTheme.css.d.ts +314 -0
- package/dist/themes/lightTheme.css.d.ts.map +1 -0
- package/dist/themes/lightTheme.css.js +29 -0
- package/dist/themes/theme.css.d.ts +314 -0
- package/dist/themes/theme.css.d.ts.map +1 -0
- package/dist/themes/theme.css.js +21 -0
- package/dist/tokens/index.d.ts +6 -0
- package/dist/tokens/index.d.ts.map +1 -0
- package/dist/tokens/index.js +5 -0
- package/dist/tokens/scale/color.d.ts +579 -0
- package/dist/tokens/scale/color.d.ts.map +1 -0
- package/dist/tokens/scale/color.js +600 -0
- package/dist/tokens/semantic/breakpoint.d.ts +7 -0
- package/dist/tokens/semantic/breakpoint.d.ts.map +1 -0
- package/dist/tokens/semantic/breakpoint.js +6 -0
- package/dist/tokens/semantic/color.d.ts +2 -0
- package/dist/tokens/semantic/color.d.ts.map +1 -0
- package/dist/tokens/semantic/color.js +10 -0
- package/dist/tokens/semantic/spacing.d.ts +10 -0
- package/dist/tokens/semantic/spacing.d.ts.map +1 -0
- package/dist/tokens/semantic/spacing.js +9 -0
- package/dist/tokens/semantic/typography.d.ts +33 -0
- package/dist/tokens/semantic/typography.d.ts.map +1 -0
- package/dist/tokens/semantic/typography.js +32 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +1 -0
- package/dist/types/ui.types.d.ts +15 -0
- package/dist/types/ui.types.d.ts.map +1 -0
- package/dist/types/ui.types.js +1 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +1 -0
- package/dist/utils/sprinklesUtils.d.ts +10 -0
- package/dist/utils/sprinklesUtils.d.ts.map +1 -0
- package/dist/utils/sprinklesUtils.js +19 -0
- package/dist/utils/styleUtils.css.d.ts +23 -0
- package/dist/utils/styleUtils.css.d.ts.map +1 -0
- package/dist/utils/styleUtils.css.js +61 -0
- package/package.json +8 -3
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import { createVar, globalStyle, keyframes, style } from '@vanilla-extract/css';
|
|
2
|
+
import { recipeWithLayer, styleWithLayer } from '#styleUtils';
|
|
3
|
+
import { theme } from '#themes';
|
|
4
|
+
import { semanticColor } from '#tokens';
|
|
5
|
+
import { SCALE_COLOR } from '../../tokens/scale/color';
|
|
6
|
+
const backgroundVar = createVar();
|
|
7
|
+
const foregroundVar = createVar();
|
|
8
|
+
const semanticColors = semanticColor.reduce((prev, color) => ({
|
|
9
|
+
...prev,
|
|
10
|
+
[color]: styleWithLayer({
|
|
11
|
+
vars: {
|
|
12
|
+
[backgroundVar]: theme.color[color],
|
|
13
|
+
[foregroundVar]: theme.color[`${color}-foreground`],
|
|
14
|
+
},
|
|
15
|
+
}),
|
|
16
|
+
}), {});
|
|
17
|
+
const scaleColors = SCALE_COLOR.reduce((prev, value) => ({
|
|
18
|
+
...prev,
|
|
19
|
+
[value]: styleWithLayer({
|
|
20
|
+
vars: {
|
|
21
|
+
[backgroundVar]: theme.color[value][500],
|
|
22
|
+
[foregroundVar]: theme.color.background,
|
|
23
|
+
},
|
|
24
|
+
}),
|
|
25
|
+
}), {});
|
|
26
|
+
const pulse = keyframes({
|
|
27
|
+
'0%': {
|
|
28
|
+
backgroundPosition: '-300% 0',
|
|
29
|
+
},
|
|
30
|
+
'100%': {
|
|
31
|
+
backgroundPosition: '300% 0',
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
export const span = recipeWithLayer({
|
|
35
|
+
base: {
|
|
36
|
+
lineHeight: '0',
|
|
37
|
+
},
|
|
38
|
+
variants: {
|
|
39
|
+
size: {
|
|
40
|
+
sm: {
|
|
41
|
+
fontSize: '0.875em',
|
|
42
|
+
},
|
|
43
|
+
md: {
|
|
44
|
+
fontSize: '1em',
|
|
45
|
+
},
|
|
46
|
+
lg: {
|
|
47
|
+
fontSize: '1.125em',
|
|
48
|
+
},
|
|
49
|
+
'icon-sm': {
|
|
50
|
+
fontSize: '1em',
|
|
51
|
+
},
|
|
52
|
+
'icon-md': {
|
|
53
|
+
fontSize: '1.25em',
|
|
54
|
+
},
|
|
55
|
+
'icon-lg': {
|
|
56
|
+
fontSize: '1.5em',
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
});
|
|
61
|
+
export const button = recipeWithLayer({
|
|
62
|
+
base: {
|
|
63
|
+
display: 'inline-flex',
|
|
64
|
+
alignItems: 'center',
|
|
65
|
+
justifyContent: 'center',
|
|
66
|
+
position: 'relative',
|
|
67
|
+
overflow: 'hidden',
|
|
68
|
+
border: '0',
|
|
69
|
+
borderRadius: theme.borderRadius,
|
|
70
|
+
fontSize: '1em',
|
|
71
|
+
transition: 'background-color 0.2s ease, color 0.2s ease',
|
|
72
|
+
cursor: 'pointer',
|
|
73
|
+
userSelect: 'none',
|
|
74
|
+
},
|
|
75
|
+
variants: {
|
|
76
|
+
hasIcon: {
|
|
77
|
+
true: {
|
|
78
|
+
gap: '0.5em',
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
color: {
|
|
82
|
+
...semanticColors,
|
|
83
|
+
...scaleColors,
|
|
84
|
+
},
|
|
85
|
+
size: {
|
|
86
|
+
sm: {
|
|
87
|
+
height: '2.25em',
|
|
88
|
+
padding: '0 0.75em',
|
|
89
|
+
},
|
|
90
|
+
md: {
|
|
91
|
+
height: '2.5em',
|
|
92
|
+
padding: '0 0.875em',
|
|
93
|
+
},
|
|
94
|
+
lg: {
|
|
95
|
+
height: '2.75em',
|
|
96
|
+
padding: '0 1em',
|
|
97
|
+
},
|
|
98
|
+
'icon-sm': {
|
|
99
|
+
width: '2em',
|
|
100
|
+
height: '2em',
|
|
101
|
+
},
|
|
102
|
+
'icon-md': {
|
|
103
|
+
width: '2.5em',
|
|
104
|
+
height: '2.5em',
|
|
105
|
+
},
|
|
106
|
+
'icon-lg': {
|
|
107
|
+
width: '2.75em',
|
|
108
|
+
height: '2.75em',
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
variant: {
|
|
112
|
+
contained: {
|
|
113
|
+
boxShadow: `inset 0 0 0 1px rgba(255, 255, 255, 0.08)`,
|
|
114
|
+
backgroundColor: `rgb(${backgroundVar})`,
|
|
115
|
+
color: `rgb(${foregroundVar})`,
|
|
116
|
+
':disabled': {
|
|
117
|
+
backgroundColor: `rgb(${theme.color.muted})`,
|
|
118
|
+
color: `rgb(${theme.color['muted-foreground']})`,
|
|
119
|
+
cursor: 'default',
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
outlined: {
|
|
123
|
+
boxShadow: `inset 0 0 0 1px rgb(${backgroundVar})`,
|
|
124
|
+
backgroundColor: `rgb(${theme.color.background})`,
|
|
125
|
+
color: `rgb(${theme.color.foreground})`,
|
|
126
|
+
':disabled': {
|
|
127
|
+
backgroundColor: `rgb(${theme.color.muted})`,
|
|
128
|
+
color: `rgb(${theme.color['muted-foreground']})`,
|
|
129
|
+
cursor: 'default',
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
ghost: {
|
|
133
|
+
background: 'transparent',
|
|
134
|
+
color: `rgb(${theme.color.foreground})`,
|
|
135
|
+
':hover': {
|
|
136
|
+
backgroundColor: `rgba(${backgroundVar}, 0.8)`,
|
|
137
|
+
color: `rgb(${foregroundVar})`,
|
|
138
|
+
},
|
|
139
|
+
':disabled': {
|
|
140
|
+
color: `rgb(${theme.color['muted-foreground']})`,
|
|
141
|
+
cursor: 'default',
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
glass: {
|
|
145
|
+
boxShadow: `inset 0 0 0 1px rgba(255, 255, 255, 0.08)`,
|
|
146
|
+
backgroundColor: `rgba(${backgroundVar}, 0.75)`,
|
|
147
|
+
backdropFilter: 'blur(1rem)',
|
|
148
|
+
color: `rgb(${theme.color.foreground})`,
|
|
149
|
+
':disabled': {
|
|
150
|
+
backgroundColor: `rgb(${theme.color.muted})`,
|
|
151
|
+
color: `rgb(${theme.color['muted-foreground']})`,
|
|
152
|
+
cursor: 'default',
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
|
+
},
|
|
156
|
+
pulse: {
|
|
157
|
+
true: {
|
|
158
|
+
'::after': {
|
|
159
|
+
content: '',
|
|
160
|
+
position: 'absolute',
|
|
161
|
+
inset: '0',
|
|
162
|
+
background: 'linear-gradient(90deg, transparent 30%, #ffffff33 65%, transparent 100%)',
|
|
163
|
+
backgroundSize: '300% 100%',
|
|
164
|
+
animation: `${pulse} 5s linear 0s infinite`,
|
|
165
|
+
},
|
|
166
|
+
},
|
|
167
|
+
},
|
|
168
|
+
},
|
|
169
|
+
});
|
|
170
|
+
export const icon = style({
|
|
171
|
+
lineHeight: '0',
|
|
172
|
+
});
|
|
173
|
+
globalStyle(`${icon} > *`, {
|
|
174
|
+
width: '1em',
|
|
175
|
+
height: '1em',
|
|
176
|
+
lineHeight: '0',
|
|
177
|
+
pointerEvents: 'none',
|
|
178
|
+
});
|
|
179
|
+
globalStyle(`${button.classNames.base} svg`, {
|
|
180
|
+
width: '1em',
|
|
181
|
+
height: '1em',
|
|
182
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.spec.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.spec.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { render, screen, fireEvent } from '@testing-library/react';
|
|
3
|
+
import { uiTest } from '../../tests/uiTest';
|
|
4
|
+
import { Button } from './';
|
|
5
|
+
describe('Button 컴포넌트', () => {
|
|
6
|
+
uiTest(Button, 'Button');
|
|
7
|
+
it('Button을 클릭하면 onClick이 호출되어야 한다', () => {
|
|
8
|
+
const handleClick = jest.fn();
|
|
9
|
+
render(_jsx(Button, { onClick: handleClick, children: "Click" }));
|
|
10
|
+
fireEvent.click(screen.getByRole('button', { name: 'Click' }));
|
|
11
|
+
expect(handleClick).toHaveBeenCalledTimes(1);
|
|
12
|
+
});
|
|
13
|
+
it('disabled Button을 클릭하면 onClick이 호출되지 않아야 한다', () => {
|
|
14
|
+
const handleClick = jest.fn();
|
|
15
|
+
render(_jsx(Button, { onClick: handleClick, disabled: true, children: "Click" }));
|
|
16
|
+
fireEvent.click(screen.getByRole('button', { name: 'Click' }));
|
|
17
|
+
expect(handleClick).not.toHaveBeenCalledTimes(1);
|
|
18
|
+
});
|
|
19
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type ReactElement } from 'react';
|
|
2
|
+
import type { UIComponent } from '#types';
|
|
3
|
+
import * as s from './Button.css';
|
|
4
|
+
interface ButtonProps extends Omit<UIComponent<'button', typeof s.button>, 'hasIcon'> {
|
|
5
|
+
icon?: ReactElement;
|
|
6
|
+
}
|
|
7
|
+
export declare const Button: import("react").ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
8
|
+
export { s as buttonCss };
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Button/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAc,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAMtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAE1C,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAElC,UAAU,WACR,SAAQ,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,MAAM,CAAC,EAAE,SAAS,CAAC;IAC/D,IAAI,CAAC,EAAE,YAAY,CAAC;CACrB;AAED,eAAO,MAAM,MAAM,wHAuClB,CAAC;AAGF,OAAO,EAAE,CAAC,IAAI,SAAS,EAAE,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
import { clsx } from 'clsx';
|
|
5
|
+
import { useRipple } from '#hooks';
|
|
6
|
+
import { sx } from '#styles';
|
|
7
|
+
import * as s from './Button.css';
|
|
8
|
+
export const Button = forwardRef(({ children, color = 'primary', size = 'md', variant = 'contained', pulse = false, className, sx: propSx, icon, ...props }, ref) => {
|
|
9
|
+
const { ripple } = useRipple(ref);
|
|
10
|
+
return (_jsxs("button", { ref: ref, className: clsx(className, s.button({
|
|
11
|
+
color,
|
|
12
|
+
size,
|
|
13
|
+
variant,
|
|
14
|
+
pulse,
|
|
15
|
+
hasIcon: icon !== undefined,
|
|
16
|
+
}), sx(propSx)), ...props, children: [icon !== undefined && _jsx("span", { className: s.icon, children: icon }), _jsx("span", { className: s.span({ size }), children: children }), ripple] }));
|
|
17
|
+
});
|
|
18
|
+
Button.displayName = 'Button';
|
|
19
|
+
export { s as buttonCss };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
export declare const card: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
2
|
+
variant: {
|
|
3
|
+
contained: {};
|
|
4
|
+
outlined: {
|
|
5
|
+
border: "1px solid";
|
|
6
|
+
borderColor: `rgb(var(--${string}))`;
|
|
7
|
+
};
|
|
8
|
+
glass: {
|
|
9
|
+
border: `1px solid rgb(var(--${string}))`;
|
|
10
|
+
borderRadius: "0.75rem";
|
|
11
|
+
background: `linear-gradient(rgba(var(--${string}), 0.06) 0%, rgba(var(--${string}), 0.02) 100%)`;
|
|
12
|
+
backdropFilter: "blur(1rem)";
|
|
13
|
+
'::before': {
|
|
14
|
+
position: "absolute";
|
|
15
|
+
inset: "0";
|
|
16
|
+
background: "linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 100%)";
|
|
17
|
+
opacity: "0";
|
|
18
|
+
transition: "opacity 0.3s ease";
|
|
19
|
+
content: "";
|
|
20
|
+
};
|
|
21
|
+
selectors: {
|
|
22
|
+
'&:hover::before': {
|
|
23
|
+
opacity: "1";
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
color: {
|
|
29
|
+
red: string;
|
|
30
|
+
orange: string;
|
|
31
|
+
amber: string;
|
|
32
|
+
yellow: string;
|
|
33
|
+
lime: string;
|
|
34
|
+
green: string;
|
|
35
|
+
emerald: string;
|
|
36
|
+
teal: string;
|
|
37
|
+
cyan: string;
|
|
38
|
+
sky: string;
|
|
39
|
+
blue: string;
|
|
40
|
+
indigo: string;
|
|
41
|
+
violet: string;
|
|
42
|
+
purple: string;
|
|
43
|
+
fuchsia: string;
|
|
44
|
+
pink: string;
|
|
45
|
+
rose: string;
|
|
46
|
+
slate: string;
|
|
47
|
+
gray: string;
|
|
48
|
+
zinc: string;
|
|
49
|
+
neutral: string;
|
|
50
|
+
stone: string;
|
|
51
|
+
primary: string;
|
|
52
|
+
secondary: string;
|
|
53
|
+
muted: string;
|
|
54
|
+
accent: string;
|
|
55
|
+
card: string;
|
|
56
|
+
danger: string;
|
|
57
|
+
warning: string;
|
|
58
|
+
success: string;
|
|
59
|
+
};
|
|
60
|
+
}>;
|
|
61
|
+
//# sourceMappingURL=Card.css.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Card.css.d.ts","sourceRoot":"","sources":["../../../src/components/Card/Card.css.ts"],"names":[],"mappings":"AA2BA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiEf,CAAC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { recipeWithLayer, styleWithLayer } from '#styleUtils';
|
|
2
|
+
import { theme } from '#themes';
|
|
3
|
+
import { semanticColor } from '#tokens';
|
|
4
|
+
import { SCALE_COLOR } from '../../tokens/scale/color';
|
|
5
|
+
import { cardInteraction } from './CardInteraction.css';
|
|
6
|
+
const semanticColors = semanticColor.reduce((prev, color) => ({
|
|
7
|
+
...prev,
|
|
8
|
+
[color]: styleWithLayer({
|
|
9
|
+
backgroundColor: `rgb(${theme.color[color]})`,
|
|
10
|
+
}),
|
|
11
|
+
}), {});
|
|
12
|
+
const scaleColors = SCALE_COLOR.reduce((prev, value) => ({
|
|
13
|
+
...prev,
|
|
14
|
+
[value]: styleWithLayer({
|
|
15
|
+
backgroundColor: `color-mix(in srgb, rgb(${theme.color[value][500]}) 20%, rgb(${theme.color.background}) 80%)`,
|
|
16
|
+
}),
|
|
17
|
+
}), {});
|
|
18
|
+
export const card = recipeWithLayer({
|
|
19
|
+
base: {
|
|
20
|
+
display: 'flex',
|
|
21
|
+
flexDirection: 'column',
|
|
22
|
+
overflow: 'hidden',
|
|
23
|
+
position: 'relative',
|
|
24
|
+
borderRadius: theme.borderRadius,
|
|
25
|
+
color: `rgb(${theme.color.foreground})`,
|
|
26
|
+
transition: 'border-color 0.2s ease, transform 0.4s ease',
|
|
27
|
+
selectors: {
|
|
28
|
+
[`&:has(${cardInteraction}:hover)`]: {
|
|
29
|
+
borderColor: `color-mix(in srgb, rgb(${theme.color.primary}) 10%, rgb(${theme.color.border}) 90%)`,
|
|
30
|
+
},
|
|
31
|
+
[`&:has(${cardInteraction}:active)`]: {
|
|
32
|
+
borderColor: `color-mix(in srgb, rgb(${theme.color.primary}) 40%, rgb(${theme.color.border}) 60%)`,
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
variants: {
|
|
37
|
+
variant: {
|
|
38
|
+
contained: {},
|
|
39
|
+
outlined: {
|
|
40
|
+
border: '1px solid',
|
|
41
|
+
borderColor: `rgb(${theme.color.border})`,
|
|
42
|
+
},
|
|
43
|
+
glass: {
|
|
44
|
+
border: `1px solid rgb(${theme.color['border.weak']})`,
|
|
45
|
+
borderRadius: '0.75rem',
|
|
46
|
+
background: `linear-gradient(rgba(${theme.color['card.gradient']}, 0.06) 0%, rgba(${theme.color['card.gradient']}, 0.02) 100%)`,
|
|
47
|
+
backdropFilter: 'blur(1rem)',
|
|
48
|
+
'::before': {
|
|
49
|
+
position: 'absolute',
|
|
50
|
+
inset: '0',
|
|
51
|
+
background: 'linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 100%)',
|
|
52
|
+
opacity: '0',
|
|
53
|
+
transition: 'opacity 0.3s ease',
|
|
54
|
+
content: '',
|
|
55
|
+
},
|
|
56
|
+
selectors: {
|
|
57
|
+
'&:hover::before': {
|
|
58
|
+
opacity: '1',
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
color: {
|
|
64
|
+
...semanticColors,
|
|
65
|
+
...scaleColors,
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type CSSProperties } from 'react';
|
|
2
|
+
import type { UIComponent } from '#types';
|
|
3
|
+
import * as s from './Card.css';
|
|
4
|
+
interface CardProps extends UIComponent<'div', typeof s.card> {
|
|
5
|
+
width?: CSSProperties['width'];
|
|
6
|
+
height?: CSSProperties['height'];
|
|
7
|
+
}
|
|
8
|
+
export declare const Card: import("react").ForwardRefExoticComponent<Omit<CardProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
+
export { s as cardCss };
|
|
10
|
+
//# sourceMappingURL=Card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../src/components/Card/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAKvD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAE1C,OAAO,KAAK,CAAC,MAAM,YAAY,CAAC;AAEhC,UAAU,SAAU,SAAQ,WAAW,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC;IAC3D,KAAK,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IAC/B,MAAM,CAAC,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;CAClC;AAED,eAAO,MAAM,IAAI,mHAuBhB,CAAC;AAGF,OAAO,EAAE,CAAC,IAAI,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
import { sx } from '#styles';
|
|
5
|
+
import * as s from './Card.css';
|
|
6
|
+
export const Card = forwardRef(({ width, height, color = 'card', variant = 'outlined', className, style, sx: propSx, ...props }, ref) => {
|
|
7
|
+
return (_jsx("div", { ref: ref, className: clsx(s.card({ color, variant }), className, sx(propSx)), style: { width, height, ...style }, ...props }));
|
|
8
|
+
});
|
|
9
|
+
Card.displayName = 'Card';
|
|
10
|
+
export { s as cardCss };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Card.spec.d.ts","sourceRoot":"","sources":["../../../src/components/Card/Card.spec.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { render, screen, fireEvent } from '@testing-library/react';
|
|
3
|
+
import { uiTest } from '../../tests/uiTest';
|
|
4
|
+
import { Card, CardContent, CardInteraction, CardThumbnail } from './';
|
|
5
|
+
describe('Card 컴포넌트', () => {
|
|
6
|
+
uiTest(Card, 'Card');
|
|
7
|
+
uiTest(CardContent, 'CardContent');
|
|
8
|
+
uiTest(CardInteraction, 'CardInteraction');
|
|
9
|
+
uiTest(CardThumbnail, 'CardThumbnail');
|
|
10
|
+
it('CardInteraction을 클릭하면 onClick이 호출되어야 한다', () => {
|
|
11
|
+
const handleClick = jest.fn();
|
|
12
|
+
render(_jsx(Card, { onClick: handleClick, children: _jsx(CardInteraction, { children: "Click" }) }));
|
|
13
|
+
fireEvent.click(screen.getByText('Click'));
|
|
14
|
+
expect(handleClick).toHaveBeenCalledTimes(1);
|
|
15
|
+
});
|
|
16
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CardContent.css.d.ts","sourceRoot":"","sources":["../../../src/components/Card/CardContent.css.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,QAItB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { UIComponent } from '#types';
|
|
2
|
+
type CardContentProps = UIComponent<'div'>;
|
|
3
|
+
export declare const CardContent: import("react").ForwardRefExoticComponent<Omit<CardContentProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
4
|
+
export {};
|
|
5
|
+
//# sourceMappingURL=CardContent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CardContent.d.ts","sourceRoot":"","sources":["../../../src/components/Card/CardContent.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAI1C,KAAK,gBAAgB,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3C,eAAO,MAAM,WAAW,0HAUvB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import { clsx } from 'clsx';
|
|
4
|
+
import { sx } from '#styles';
|
|
5
|
+
import * as s from './CardContent.css';
|
|
6
|
+
export const CardContent = forwardRef(({ className, sx: propSx, ...props }, ref) => {
|
|
7
|
+
return (_jsx("div", { ref: ref, className: clsx(s.cardContent, className, sx(propSx)), ...props }));
|
|
8
|
+
});
|
|
9
|
+
CardContent.displayName = 'CardContent';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CardInteraction.css.d.ts","sourceRoot":"","sources":["../../../src/components/Card/CardInteraction.css.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,QAQ1B,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { UIComponent } from '#types';
|
|
2
|
+
type CardInteractionProps = UIComponent<'div'>;
|
|
3
|
+
export declare const CardInteraction: import("react").ForwardRefExoticComponent<Omit<CardInteractionProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
4
|
+
export {};
|
|
5
|
+
//# sourceMappingURL=CardInteraction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CardInteraction.d.ts","sourceRoot":"","sources":["../../../src/components/Card/CardInteraction.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAI1C,KAAK,oBAAoB,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC;AAE/C,eAAO,MAAM,eAAe,8HAoB3B,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
import clsx from 'clsx';
|
|
5
|
+
import { useRipple } from '#hooks';
|
|
6
|
+
import { sx } from '#styles';
|
|
7
|
+
import * as s from './CardInteraction.css';
|
|
8
|
+
export const CardInteraction = forwardRef(({ children, className, sx: propSx, ...props }, ref) => {
|
|
9
|
+
const { ripple } = useRipple(ref);
|
|
10
|
+
return (_jsxs("div", { ref: ref, className: clsx(className, s.cardInteraction, s.cardInteraction, sx(propSx)), ...props, children: [children, ripple] }));
|
|
11
|
+
});
|
|
12
|
+
CardInteraction.displayName = 'CardInteraction';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CardThumbnail.css.d.ts","sourceRoot":"","sources":["../../../src/components/Card/CardThumbnail.css.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,QAGpB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { UIComponent } from '#types';
|
|
2
|
+
type CardThumbnailProps = UIComponent<'img'>;
|
|
3
|
+
export declare const CardThumbnail: import("react").ForwardRefExoticComponent<Omit<CardThumbnailProps, "ref"> & import("react").RefAttributes<HTMLImageElement>>;
|
|
4
|
+
export {};
|
|
5
|
+
//# sourceMappingURL=CardThumbnail.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CardThumbnail.d.ts","sourceRoot":"","sources":["../../../src/components/Card/CardThumbnail.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAI1C,KAAK,kBAAkB,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC;AAE7C,eAAO,MAAM,aAAa,8HAUzB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
import { sx } from '#styles';
|
|
5
|
+
import * as s from './CardThumbnail.css';
|
|
6
|
+
export const CardThumbnail = forwardRef(({ className, sx: propSx, ...props }, ref) => {
|
|
7
|
+
return (_jsx("img", { ref: ref, className: clsx(s.thumbnail, className, sx(propSx)), ...props }));
|
|
8
|
+
});
|
|
9
|
+
CardThumbnail.displayName = 'CardThumbnail';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Card/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export declare const chip: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
2
|
+
color: {
|
|
3
|
+
red: string;
|
|
4
|
+
orange: string;
|
|
5
|
+
amber: string;
|
|
6
|
+
yellow: string;
|
|
7
|
+
lime: string;
|
|
8
|
+
green: string;
|
|
9
|
+
emerald: string;
|
|
10
|
+
teal: string;
|
|
11
|
+
cyan: string;
|
|
12
|
+
sky: string;
|
|
13
|
+
blue: string;
|
|
14
|
+
indigo: string;
|
|
15
|
+
violet: string;
|
|
16
|
+
purple: string;
|
|
17
|
+
fuchsia: string;
|
|
18
|
+
pink: string;
|
|
19
|
+
rose: string;
|
|
20
|
+
slate: string;
|
|
21
|
+
gray: string;
|
|
22
|
+
zinc: string;
|
|
23
|
+
neutral: string;
|
|
24
|
+
stone: string;
|
|
25
|
+
primary: string;
|
|
26
|
+
secondary: string;
|
|
27
|
+
muted: string;
|
|
28
|
+
accent: string;
|
|
29
|
+
card: string;
|
|
30
|
+
danger: string;
|
|
31
|
+
warning: string;
|
|
32
|
+
success: string;
|
|
33
|
+
};
|
|
34
|
+
size: {
|
|
35
|
+
sm: {
|
|
36
|
+
fontSize: "0.75em";
|
|
37
|
+
};
|
|
38
|
+
md: {
|
|
39
|
+
fontSize: "0.875em";
|
|
40
|
+
};
|
|
41
|
+
lg: {
|
|
42
|
+
fontSize: "1em";
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
}>;
|
|
46
|
+
//# sourceMappingURL=Chip.css.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Chip.css.d.ts","sourceRoot":"","sources":["../../../src/components/Chip/Chip.css.ts"],"names":[],"mappings":"AAqCA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqCf,CAAC"}
|