@lotte-innovate/ui-component-test 0.0.18 → 0.0.20
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/{Typography → lib/Typography}/Header/index.d.ts +1 -1
- package/dist/{Typography/Header/index.js → lib/Typography/Header/index.jsx} +7 -4
- package/dist/{Typography → lib/Typography}/Text/index.d.ts +1 -2
- package/dist/{Typography/Text/index.js → lib/Typography/Text/index.jsx} +8 -5
- package/dist/{color → lib/color}/constants.d.ts +1 -1
- package/dist/{components → lib/components}/Accordion/index.d.ts +1 -1
- package/dist/{components/Accordion/index.js → lib/components/Accordion/index.jsx} +19 -7
- package/dist/{components → lib/components}/AlertDialog/AlertDialogAction.d.ts +1 -1
- package/dist/{components/AlertDialog/AlertDialogAction.js → lib/components/AlertDialog/AlertDialogAction.jsx} +6 -5
- package/dist/{components → lib/components}/AlertDialog/AlertDialogCancel.d.ts +1 -1
- package/dist/{components/AlertDialog/AlertDialogCancel.js → lib/components/AlertDialog/AlertDialogCancel.jsx} +6 -5
- package/dist/{components/AlertDialog/AlertDialogContent.js → lib/components/AlertDialog/AlertDialogContent.jsx} +9 -5
- package/dist/{components/AlertDialog/AlertDialogDescription.js → lib/components/AlertDialog/AlertDialogDescription.jsx} +5 -15
- package/dist/{components/AlertDialog/AlertDialogTitle.js → lib/components/AlertDialog/AlertDialogTitle.jsx} +5 -15
- package/dist/{components → lib/components}/AlertDialog/AlertDialogTrigger.d.ts +1 -1
- package/dist/{components/AlertDialog/AlertDialogTrigger.js → lib/components/AlertDialog/AlertDialogTrigger.jsx} +6 -5
- package/dist/{components → lib/components}/AlertDialog/index.d.ts +1 -1
- package/dist/{components/AlertDialog/index.js → lib/components/AlertDialog/index.jsx} +4 -14
- package/dist/{components/AspectRatio/index.js → lib/components/AspectRatio/index.jsx} +6 -5
- package/dist/{components/Avatar/index.js → lib/components/Avatar/index.jsx} +9 -5
- package/dist/{components → lib/components}/Badge/index.d.ts +1 -1
- package/dist/{components/Badge/index.js → lib/components/Badge/index.jsx} +6 -5
- package/dist/{components → lib/components}/BubbleChart/index.d.ts +3 -2
- package/dist/{components/BubbleChart/index.js → lib/components/BubbleChart/index.jsx} +4 -4
- package/dist/{components → lib/components}/Button/index.d.ts +1 -1
- package/dist/{components/Button/index.js → lib/components/Button/index.jsx} +6 -5
- package/dist/{components/Callout/CalloutIcon.js → lib/components/Callout/CalloutIcon.jsx} +10 -5
- package/dist/{components/Callout/CalloutText.js → lib/components/Callout/CalloutText.jsx} +5 -15
- package/dist/{components → lib/components}/Callout/index.d.ts +1 -1
- package/dist/{components/Callout/index.js → lib/components/Callout/index.jsx} +8 -5
- package/dist/{components → lib/components}/Card/index.d.ts +1 -1
- package/dist/{components/Card/index.js → lib/components/Card/index.jsx} +6 -5
- package/dist/{components → lib/components}/Checkbox/index.d.ts +1 -1
- package/dist/{components/Checkbox/index.js → lib/components/Checkbox/index.jsx} +14 -6
- package/dist/{components → lib/components}/CheckboxCard/index.d.ts +2 -2
- package/dist/{components/CheckboxCard/index.js → lib/components/CheckboxCard/index.jsx} +9 -7
- package/dist/{components → lib/components}/CheckboxGroup/CheckboxGroupItem.d.ts +1 -1
- package/dist/{components/CheckboxGroup/CheckboxGroupItem.js → lib/components/CheckboxGroup/CheckboxGroupItem.jsx} +7 -15
- package/dist/{components → lib/components}/CheckboxGroup/index.d.ts +2 -2
- package/dist/{components/CheckboxGroup/index.js → lib/components/CheckboxGroup/index.jsx} +6 -3
- package/dist/{components/ContextMenu/ContextMenuCheckboxItem.js → lib/components/ContextMenu/ContextMenuCheckboxItem.jsx} +9 -16
- package/dist/{components/ContextMenu/ContextMenuContent.js → lib/components/ContextMenu/ContextMenuContent.jsx} +8 -5
- package/dist/{components/ContextMenu/ContextMenuGroup.js → lib/components/ContextMenu/ContextMenuGroup.jsx} +4 -14
- package/dist/{components/ContextMenu/ContextMenuItem.js → lib/components/ContextMenu/ContextMenuItem.jsx} +7 -5
- package/dist/{components/ContextMenu/ContextMenuItemIndicator.js → lib/components/ContextMenu/ContextMenuItemIndicator.jsx} +6 -5
- package/dist/{components/ContextMenu/ContextMenuLabel.js → lib/components/ContextMenu/ContextMenuLabel.jsx} +6 -5
- package/dist/{components/ContextMenu/ContextMenuRadioGroup.js → lib/components/ContextMenu/ContextMenuRadioGroup.jsx} +6 -14
- package/dist/{components/ContextMenu/ContextMenuRadioItem.js → lib/components/ContextMenu/ContextMenuRadioItem.jsx} +9 -16
- package/dist/{components/ContextMenu/ContextMenuSeparator.js → lib/components/ContextMenu/ContextMenuSeparator.jsx} +5 -15
- package/dist/{components/ContextMenu/ContextMenuSubContent.js → lib/components/ContextMenu/ContextMenuSubContent.jsx} +11 -8
- package/dist/{components/ContextMenu/ContextMenuSubTrigger.js → lib/components/ContextMenu/ContextMenuSubTrigger.jsx} +11 -16
- package/dist/{components/ContextMenu/ContextMenuTrigger.js → lib/components/ContextMenu/ContextMenuTrigger.jsx} +5 -15
- package/dist/{components → lib/components}/ContextMenu/index.d.ts +1 -1
- package/dist/{components/ContextMenu/index.js → lib/components/ContextMenu/index.jsx} +6 -14
- package/dist/{components/DataList/DataListItem.js → lib/components/DataList/DataListItem.jsx} +6 -5
- package/dist/{components/DataList/DataListLabel.js → lib/components/DataList/DataListLabel.jsx} +6 -5
- package/dist/{components/DataList/DataListValue.js → lib/components/DataList/DataListValue.jsx} +6 -5
- package/dist/{components/DataList/index.js → lib/components/DataList/index.jsx} +7 -15
- package/dist/{components → lib/components}/Dialog/DialogAction.d.ts +1 -1
- package/dist/{components/Dialog/DialogAction.js → lib/components/Dialog/DialogAction.jsx} +6 -16
- package/dist/{components/Dialog/DialogCancel.js → lib/components/Dialog/DialogCancel.jsx} +5 -15
- package/dist/{components/Dialog/DialogContent.js → lib/components/Dialog/DialogContent.jsx} +6 -5
- package/dist/{components/Dialog/DialogDescription.js → lib/components/Dialog/DialogDescription.jsx} +5 -15
- package/dist/{components/Dialog/DialogSlot.js → lib/components/Dialog/DialogSlot.jsx} +5 -15
- package/dist/{components/Dialog/DialogTitle.js → lib/components/Dialog/DialogTitle.jsx} +5 -15
- package/dist/{components/Dialog/DialogTrigger.js → lib/components/Dialog/DialogTrigger.jsx} +4 -14
- package/dist/{components/Dialog/index.js → lib/components/Dialog/index.jsx} +4 -14
- package/dist/{components → lib/components}/DoughnutChart/index.d.ts +2 -1
- package/dist/{components/DoughnutChart/index.js → lib/components/DoughnutChart/index.jsx} +4 -4
- package/dist/{components/DropdownMenu/DropdonMenuRadioGroup.js → lib/components/DropdownMenu/DropdonMenuRadioGroup.jsx} +6 -14
- package/dist/{components/DropdownMenu/DropdonMenuSubContent.js → lib/components/DropdownMenu/DropdonMenuSubContent.jsx} +12 -9
- package/dist/{components/DropdownMenu/DropdownMenuCheckboxItem.js → lib/components/DropdownMenu/DropdownMenuCheckboxItem.jsx} +9 -16
- package/dist/{components/DropdownMenu/DropdownMenuContent.js → lib/components/DropdownMenu/DropdownMenuContent.jsx} +8 -5
- package/dist/{components/DropdownMenu/DropdownMenuItem.js → lib/components/DropdownMenu/DropdownMenuItem.jsx} +7 -5
- package/dist/{components/DropdownMenu/DropdownMenuItemIndicator.js → lib/components/DropdownMenu/DropdownMenuItemIndicator.jsx} +6 -5
- package/dist/{components/DropdownMenu/DropdownMenuLable.js → lib/components/DropdownMenu/DropdownMenuLable.jsx} +6 -5
- package/dist/{components/DropdownMenu/DropdownMenuRadioItem.js → lib/components/DropdownMenu/DropdownMenuRadioItem.jsx} +9 -16
- package/dist/{components/DropdownMenu/DropdownMenuSeparator.js → lib/components/DropdownMenu/DropdownMenuSeparator.jsx} +3 -15
- package/dist/{components/DropdownMenu/DropdownMenuSub.js → lib/components/DropdownMenu/DropdownMenuSub.jsx} +2 -14
- package/dist/{components/DropdownMenu/DropdownMenuSubTrigger.js → lib/components/DropdownMenu/DropdownMenuSubTrigger.jsx} +9 -16
- package/dist/{components/DropdownMenu/DropdownMenuTrigger.js → lib/components/DropdownMenu/DropdownMenuTrigger.jsx} +5 -15
- package/dist/{components/DropdownMenu/index.js → lib/components/DropdownMenu/index.jsx} +2 -14
- package/dist/{components/HoverCard/HoverCardContent.js → lib/components/HoverCard/HoverCardContent.jsx} +6 -6
- package/dist/{components/HoverCard/HoverCardTrigger.js → lib/components/HoverCard/HoverCardTrigger.jsx} +4 -14
- package/dist/{components/HoverCard/index.js → lib/components/HoverCard/index.jsx} +4 -14
- package/dist/{components → lib/components}/IconButton/index.d.ts +1 -1
- package/dist/{components/IconButton/index.js → lib/components/IconButton/index.jsx} +5 -4
- package/dist/{components/Inset/index.js → lib/components/Inset/index.jsx} +8 -5
- package/dist/{components → lib/components}/Label/index.d.ts +1 -1
- package/dist/{components/Label/index.js → lib/components/Label/index.jsx} +5 -4
- package/dist/{components/Menubar/MenubarCheckboxItem.js → lib/components/Menubar/MenubarCheckboxItem.jsx} +9 -16
- package/dist/{components/Menubar/MenubarContent.js → lib/components/Menubar/MenubarContent.jsx} +12 -9
- package/dist/{components/Menubar/MenubarItem.js → lib/components/Menubar/MenubarItem.jsx} +7 -5
- package/dist/{components/Menubar/MenubarItemIndicator.js → lib/components/Menubar/MenubarItemIndicator.jsx} +6 -5
- package/dist/{components/Menubar/MenubarMenu.js → lib/components/Menubar/MenubarMenu.jsx} +2 -14
- package/dist/{components/Menubar/MenubarRadioGroup.js → lib/components/Menubar/MenubarRadioGroup.jsx} +6 -14
- package/dist/{components/Menubar/MenubarRadioItem.js → lib/components/Menubar/MenubarRadioItem.jsx} +9 -16
- package/dist/{components/Menubar/MenubarSeparator.js → lib/components/Menubar/MenubarSeparator.jsx} +5 -15
- package/dist/{components/Menubar/MenubarSub.js → lib/components/Menubar/MenubarSub.jsx} +2 -14
- package/dist/{components/Menubar/MenubarSubContent.js → lib/components/Menubar/MenubarSubContent.jsx} +7 -6
- package/dist/{components/Menubar/MenubarSubTrigger.js → lib/components/Menubar/MenubarSubTrigger.jsx} +9 -16
- package/dist/{components/Menubar/MenubarTrigger.js → lib/components/Menubar/MenubarTrigger.jsx} +6 -5
- package/dist/{components → lib/components}/Menubar/index.d.ts +1 -1
- package/dist/{components/Menubar/index.js → lib/components/Menubar/index.jsx} +8 -5
- package/dist/{components/NavigationMenu/NavigationMenuContent.js → lib/components/NavigationMenu/NavigationMenuContent.jsx} +6 -5
- package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.jsx +22 -0
- package/dist/{components/NavigationMenu/NavigationMenuItem.js → lib/components/NavigationMenu/NavigationMenuItem.jsx} +4 -14
- package/dist/{components/NavigationMenu/NavigationMenuLink.js → lib/components/NavigationMenu/NavigationMenuLink.jsx} +6 -5
- package/dist/{components/NavigationMenu/NavigationMenuList.js → lib/components/NavigationMenu/NavigationMenuList.jsx} +7 -5
- package/dist/{components/NavigationMenu/NavigationMenuTrigger.js → lib/components/NavigationMenu/NavigationMenuTrigger.jsx} +7 -5
- package/dist/{components/NavigationMenu/NavigationMenuViewport.js → lib/components/NavigationMenu/NavigationMenuViewport.jsx} +6 -5
- package/dist/{components → lib/components}/NavigationMenu/index.d.ts +1 -1
- package/dist/{components/NavigationMenu/index.js → lib/components/NavigationMenu/index.jsx} +7 -15
- package/dist/{components → lib/components}/PieChart/index.d.ts +2 -1
- package/dist/{components/PieChart/index.js → lib/components/PieChart/index.jsx} +4 -4
- package/dist/{components/Popover/PopoverClose.js → lib/components/Popover/PopoverClose.jsx} +5 -15
- package/dist/{components/Popover/PopoverContent.js → lib/components/Popover/PopoverContent.jsx} +6 -5
- package/dist/{components/Popover/PopoverTrigger.js → lib/components/Popover/PopoverTrigger.jsx} +4 -14
- package/dist/{components/Popover/index.js → lib/components/Popover/index.jsx} +4 -14
- package/dist/{components/Progress/index.js → lib/components/Progress/index.jsx} +6 -5
- package/dist/{components → lib/components}/RadarChart/index.d.ts +3 -2
- package/dist/{components/RadarChart/index.js → lib/components/RadarChart/index.jsx} +4 -4
- package/dist/{components → lib/components}/Radio/index.d.ts +1 -1
- package/dist/{components/Radio/index.js → lib/components/Radio/index.jsx} +10 -15
- package/dist/{components/RadioCards/RadioCardsItem.js → lib/components/RadioCards/RadioCardsItem.jsx} +5 -15
- package/dist/{components/RadioCards/index.js → lib/components/RadioCards/index.jsx} +8 -5
- package/dist/{components/RadioGroup/RadioGroupItem.js → lib/components/RadioGroup/RadioGroupItem.jsx} +5 -15
- package/dist/{components → lib/components}/RadioGroup/index.d.ts +1 -1
- package/dist/{components/RadioGroup/index.js → lib/components/RadioGroup/index.jsx} +7 -15
- package/dist/{components/ScrollArea/index.js → lib/components/ScrollArea/index.jsx} +6 -14
- package/dist/{components/SegmentedControl/SegmentedControlItem.js → lib/components/SegmentedControl/SegmentedControlItem.jsx} +5 -15
- package/dist/{components → lib/components}/SegmentedControl/index.d.ts +1 -1
- package/dist/{components/SegmentedControl/index.js → lib/components/SegmentedControl/index.jsx} +7 -4
- package/dist/{components → lib/components}/Select/index.d.ts +1 -1
- package/dist/{components/Select/index.js → lib/components/Select/index.jsx} +27 -10
- package/dist/{components/Separator/index.js → lib/components/Separator/index.jsx} +7 -4
- package/dist/{components → lib/components}/Skeleton/index.d.ts +1 -1
- package/dist/{components/Skeleton/index.js → lib/components/Skeleton/index.jsx} +7 -4
- package/dist/{components → lib/components}/Slider/index.d.ts +1 -1
- package/dist/{components/Slider/index.js → lib/components/Slider/index.jsx} +5 -4
- package/dist/{components → lib/components}/Spinner/index.d.ts +1 -1
- package/dist/{components/Spinner/index.js → lib/components/Spinner/index.jsx} +7 -4
- package/dist/{components/TabNav/index.js → lib/components/TabNav/index.jsx} +9 -15
- package/dist/{components → lib/components}/Table/index.d.ts +1 -1
- package/dist/{components/Table/index.js → lib/components/Table/index.jsx} +25 -10
- package/dist/{components/Tabs/index.js → lib/components/Tabs/index.jsx} +16 -7
- package/dist/{components → lib/components}/TextArea/index.d.ts +1 -1
- package/dist/{components/TextArea/index.js → lib/components/TextArea/index.jsx} +5 -4
- package/dist/{components → lib/components}/TextField/index.d.ts +1 -1
- package/dist/{components/TextField/index.js → lib/components/TextField/index.jsx} +10 -5
- package/dist/{components → lib/components}/Toast/ToastActionButton.d.ts +1 -1
- package/dist/{components/Toast/ToastActionButton.js → lib/components/Toast/ToastActionButton.jsx} +7 -6
- package/dist/{components → lib/components}/Toast/ToastDescription.d.ts +1 -1
- package/dist/{components/Toast/ToastDescription.js → lib/components/Toast/ToastDescription.jsx} +7 -15
- package/dist/{components → lib/components}/Toast/ToastTitle.d.ts +1 -1
- package/dist/{components/Toast/ToastTitle.js → lib/components/Toast/ToastTitle.jsx} +5 -15
- package/dist/{components/Toast/index.js → lib/components/Toast/index.jsx} +11 -5
- package/dist/{components → lib/components}/Toggle/ToggleWithText.d.ts +1 -1
- package/dist/{components/Toggle/ToggleWithText.js → lib/components/Toggle/ToggleWithText.jsx} +9 -7
- package/dist/{components → lib/components}/Toggle/index.d.ts +1 -1
- package/dist/{components/Toggle/index.js → lib/components/Toggle/index.jsx} +6 -5
- package/dist/{components → lib/components}/ToggleGroup/index.d.ts +1 -1
- package/dist/{components/ToggleGroup/index.js → lib/components/ToggleGroup/index.jsx} +8 -5
- package/dist/{components → lib/components}/ToggleGroup/toggleGroupItem.d.ts +1 -1
- package/dist/{components/ToggleGroup/toggleGroupItem.js → lib/components/ToggleGroup/toggleGroupItem.jsx} +6 -16
- package/dist/{components/ToggleSwitch/index.js → lib/components/ToggleSwitch/index.jsx} +9 -5
- package/dist/{components → lib/components}/Tooltip/index.d.ts +1 -1
- package/dist/{components/Tooltip/index.js → lib/components/Tooltip/index.jsx} +13 -4
- package/dist/{constants.js → lib/constants.js} +1 -1
- package/package.json +3 -20
- package/dist/components/NavigationMenu/NavigationMenuIndicator.js +0 -31
- /package/dist/{Typography → lib/Typography}/index.d.ts +0 -0
- /package/dist/{Typography → lib/Typography}/index.js +0 -0
- /package/dist/{color → lib/color}/alpha.d.ts +0 -0
- /package/dist/{color → lib/color}/alpha.js +0 -0
- /package/dist/{color → lib/color}/constants.js +0 -0
- /package/dist/{color → lib/color}/dark.d.ts +0 -0
- /package/dist/{color → lib/color}/dark.js +0 -0
- /package/dist/{color → lib/color}/krdsColors.d.ts +0 -0
- /package/dist/{color → lib/color}/krdsColors.js +0 -0
- /package/dist/{color → lib/color}/light.d.ts +0 -0
- /package/dist/{color → lib/color}/light.js +0 -0
- /package/dist/{components → lib/components}/AlertDialog/AlertDialogContent.d.ts +0 -0
- /package/dist/{components → lib/components}/AlertDialog/AlertDialogDescription.d.ts +0 -0
- /package/dist/{components → lib/components}/AlertDialog/AlertDialogTitle.d.ts +0 -0
- /package/dist/{components → lib/components}/AspectRatio/index.d.ts +0 -0
- /package/dist/{components → lib/components}/Avatar/index.d.ts +0 -0
- /package/dist/{components → lib/components}/Callout/CalloutIcon.d.ts +0 -0
- /package/dist/{components → lib/components}/Callout/CalloutText.d.ts +0 -0
- /package/dist/{components → lib/components}/ContextMenu/ContextMenuCheckboxItem.d.ts +0 -0
- /package/dist/{components → lib/components}/ContextMenu/ContextMenuContent.d.ts +0 -0
- /package/dist/{components → lib/components}/ContextMenu/ContextMenuGroup.d.ts +0 -0
- /package/dist/{components → lib/components}/ContextMenu/ContextMenuItem.d.ts +0 -0
- /package/dist/{components → lib/components}/ContextMenu/ContextMenuItemIndicator.d.ts +0 -0
- /package/dist/{components → lib/components}/ContextMenu/ContextMenuLabel.d.ts +0 -0
- /package/dist/{components → lib/components}/ContextMenu/ContextMenuRadioGroup.d.ts +0 -0
- /package/dist/{components → lib/components}/ContextMenu/ContextMenuRadioItem.d.ts +0 -0
- /package/dist/{components → lib/components}/ContextMenu/ContextMenuSeparator.d.ts +0 -0
- /package/dist/{components → lib/components}/ContextMenu/ContextMenuSubContent.d.ts +0 -0
- /package/dist/{components → lib/components}/ContextMenu/ContextMenuSubTrigger.d.ts +0 -0
- /package/dist/{components → lib/components}/ContextMenu/ContextMenuTrigger.d.ts +0 -0
- /package/dist/{components → lib/components}/DataList/DataListItem.d.ts +0 -0
- /package/dist/{components → lib/components}/DataList/DataListLabel.d.ts +0 -0
- /package/dist/{components → lib/components}/DataList/DataListValue.d.ts +0 -0
- /package/dist/{components → lib/components}/DataList/index.d.ts +0 -0
- /package/dist/{components → lib/components}/Dialog/DialogCancel.d.ts +0 -0
- /package/dist/{components → lib/components}/Dialog/DialogContent.d.ts +0 -0
- /package/dist/{components → lib/components}/Dialog/DialogDescription.d.ts +0 -0
- /package/dist/{components → lib/components}/Dialog/DialogSlot.d.ts +0 -0
- /package/dist/{components → lib/components}/Dialog/DialogTitle.d.ts +0 -0
- /package/dist/{components → lib/components}/Dialog/DialogTrigger.d.ts +0 -0
- /package/dist/{components → lib/components}/Dialog/index.d.ts +0 -0
- /package/dist/{components → lib/components}/DropdownMenu/DropdonMenuRadioGroup.d.ts +0 -0
- /package/dist/{components → lib/components}/DropdownMenu/DropdonMenuSubContent.d.ts +0 -0
- /package/dist/{components → lib/components}/DropdownMenu/DropdownMenuCheckboxItem.d.ts +0 -0
- /package/dist/{components → lib/components}/DropdownMenu/DropdownMenuContent.d.ts +0 -0
- /package/dist/{components → lib/components}/DropdownMenu/DropdownMenuItem.d.ts +0 -0
- /package/dist/{components → lib/components}/DropdownMenu/DropdownMenuItemIndicator.d.ts +0 -0
- /package/dist/{components → lib/components}/DropdownMenu/DropdownMenuLable.d.ts +0 -0
- /package/dist/{components → lib/components}/DropdownMenu/DropdownMenuRadioItem.d.ts +0 -0
- /package/dist/{components → lib/components}/DropdownMenu/DropdownMenuSeparator.d.ts +0 -0
- /package/dist/{components → lib/components}/DropdownMenu/DropdownMenuSub.d.ts +0 -0
- /package/dist/{components → lib/components}/DropdownMenu/DropdownMenuSubTrigger.d.ts +0 -0
- /package/dist/{components → lib/components}/DropdownMenu/DropdownMenuTrigger.d.ts +0 -0
- /package/dist/{components → lib/components}/DropdownMenu/index.d.ts +0 -0
- /package/dist/{components → lib/components}/HoverCard/HoverCardContent.d.ts +0 -0
- /package/dist/{components → lib/components}/HoverCard/HoverCardTrigger.d.ts +0 -0
- /package/dist/{components → lib/components}/HoverCard/index.d.ts +0 -0
- /package/dist/{components → lib/components}/Inset/index.d.ts +0 -0
- /package/dist/{components → lib/components}/Menubar/MenubarCheckboxItem.d.ts +0 -0
- /package/dist/{components → lib/components}/Menubar/MenubarContent.d.ts +0 -0
- /package/dist/{components → lib/components}/Menubar/MenubarItem.d.ts +0 -0
- /package/dist/{components → lib/components}/Menubar/MenubarItemIndicator.d.ts +0 -0
- /package/dist/{components → lib/components}/Menubar/MenubarMenu.d.ts +0 -0
- /package/dist/{components → lib/components}/Menubar/MenubarRadioGroup.d.ts +0 -0
- /package/dist/{components → lib/components}/Menubar/MenubarRadioItem.d.ts +0 -0
- /package/dist/{components → lib/components}/Menubar/MenubarSeparator.d.ts +0 -0
- /package/dist/{components → lib/components}/Menubar/MenubarSub.d.ts +0 -0
- /package/dist/{components → lib/components}/Menubar/MenubarSubContent.d.ts +0 -0
- /package/dist/{components → lib/components}/Menubar/MenubarSubTrigger.d.ts +0 -0
- /package/dist/{components → lib/components}/Menubar/MenubarTrigger.d.ts +0 -0
- /package/dist/{components → lib/components}/NavigationMenu/NavigationMenuContent.d.ts +0 -0
- /package/dist/{components → lib/components}/NavigationMenu/NavigationMenuIndicator.d.ts +0 -0
- /package/dist/{components → lib/components}/NavigationMenu/NavigationMenuItem.d.ts +0 -0
- /package/dist/{components → lib/components}/NavigationMenu/NavigationMenuLink.d.ts +0 -0
- /package/dist/{components → lib/components}/NavigationMenu/NavigationMenuList.d.ts +0 -0
- /package/dist/{components → lib/components}/NavigationMenu/NavigationMenuTrigger.d.ts +0 -0
- /package/dist/{components → lib/components}/NavigationMenu/NavigationMenuViewport.d.ts +0 -0
- /package/dist/{components → lib/components}/Popover/PopoverClose.d.ts +0 -0
- /package/dist/{components → lib/components}/Popover/PopoverContent.d.ts +0 -0
- /package/dist/{components → lib/components}/Popover/PopoverTrigger.d.ts +0 -0
- /package/dist/{components → lib/components}/Popover/index.d.ts +0 -0
- /package/dist/{components → lib/components}/Progress/index.d.ts +0 -0
- /package/dist/{components → lib/components}/RadioCards/RadioCardsItem.d.ts +0 -0
- /package/dist/{components → lib/components}/RadioCards/index.d.ts +0 -0
- /package/dist/{components → lib/components}/RadioGroup/RadioGroupItem.d.ts +0 -0
- /package/dist/{components → lib/components}/ScrollArea/index.d.ts +0 -0
- /package/dist/{components → lib/components}/SegmentedControl/SegmentedControlItem.d.ts +0 -0
- /package/dist/{components → lib/components}/Separator/index.d.ts +0 -0
- /package/dist/{components → lib/components}/TabNav/index.d.ts +0 -0
- /package/dist/{components → lib/components}/Tabs/index.d.ts +0 -0
- /package/dist/{components → lib/components}/Toast/index.d.ts +0 -0
- /package/dist/{components → lib/components}/ToggleSwitch/index.d.ts +0 -0
- /package/dist/{components → lib/components}/index.d.ts +0 -0
- /package/dist/{components → lib/components}/index.js +0 -0
- /package/dist/{constants.d.ts → lib/constants.d.ts} +0 -0
- /package/dist/{types.d.ts → lib/types.d.ts} +0 -0
- /package/dist/{types.js → lib/types.js} +0 -0
- /package/dist/{utils → lib/utils}/utils.d.ts +0 -0
- /package/dist/{utils → lib/utils}/utils.js +0 -0
@@ -20,13 +20,13 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
20
20
|
}
|
21
21
|
return t;
|
22
22
|
};
|
23
|
-
import
|
23
|
+
import React from 'react';
|
24
24
|
import { Doughnut } from 'react-chartjs-2';
|
25
25
|
import { Chart as ChartJS, ArcElement, Tooltip, Legend, plugins } from 'chart.js';
|
26
26
|
import ChartDataLabels from 'chartjs-plugin-datalabels';
|
27
|
-
import { cn } from 'utils/utils';
|
27
|
+
import { cn } from 'lib/utils/utils';
|
28
28
|
import { cva } from 'class-variance-authority';
|
29
|
-
import { scalingVariants } from '
|
29
|
+
import { scalingVariants } from 'lib/constants';
|
30
30
|
ChartJS.register(ArcElement, Tooltip, Legend, plugins, ChartDataLabels);
|
31
31
|
ChartJS.defaults.set('plugins.datalabels', {
|
32
32
|
display: false,
|
@@ -41,6 +41,6 @@ var doughnutVariants = cva('', {
|
|
41
41
|
});
|
42
42
|
var DoughnutChart = function (_a) {
|
43
43
|
var labels = _a.labels, datasets = _a.datasets, scaling = _a.scaling, className = _a.className, rest = __rest(_a, ["labels", "datasets", "scaling", "className"]);
|
44
|
-
return (
|
44
|
+
return (<Doughnut data={{ labels: labels, datasets: datasets }} className={cn(doughnutVariants({ scaling: scaling }), className)} {...rest}/>);
|
45
45
|
};
|
46
46
|
export default DoughnutChart;
|
@@ -1,14 +1,3 @@
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
2
|
-
__assign = Object.assign || function(t) {
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
4
|
-
s = arguments[i];
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
6
|
-
t[p] = s[p];
|
7
|
-
}
|
8
|
-
return t;
|
9
|
-
};
|
10
|
-
return __assign.apply(this, arguments);
|
11
|
-
};
|
12
1
|
var __rest = (this && this.__rest) || function (s, e) {
|
13
2
|
var t = {};
|
14
3
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
@@ -20,12 +9,15 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
20
9
|
}
|
21
10
|
return t;
|
22
11
|
};
|
23
|
-
import {
|
24
|
-
import { createContext, forwardRef } from 'react';
|
12
|
+
import React, { createContext, forwardRef } from 'react';
|
25
13
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
26
14
|
export var RadioContext = createContext({ selectedValue: '' });
|
27
15
|
export var DropdownMenuRadioGroup = forwardRef(function (_a, ref) {
|
28
16
|
var className = _a.className, children = _a.children, value = _a.value, props = __rest(_a, ["className", "children", "value"]);
|
29
|
-
return (
|
17
|
+
return (<DropdownMenuPrimitive.RadioGroup ref={ref} className={className} {...props}>
|
18
|
+
<RadioContext.Provider value={{ selectedValue: value !== null && value !== void 0 ? value : '' }}>
|
19
|
+
{children}
|
20
|
+
</RadioContext.Provider>
|
21
|
+
</DropdownMenuPrimitive.RadioGroup>);
|
30
22
|
});
|
31
23
|
DropdownMenuRadioGroup.displayName = 'DropdownMenuRadioGroup';
|
@@ -20,12 +20,11 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
20
20
|
}
|
21
21
|
return t;
|
22
22
|
};
|
23
|
-
import {
|
24
|
-
import { forwardRef } from 'react';
|
23
|
+
import React, { forwardRef } from 'react';
|
25
24
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
26
25
|
import { cva } from 'class-variance-authority';
|
27
|
-
import { scalingVariants } from '
|
28
|
-
import { cn } from 'utils/utils';
|
26
|
+
import { scalingVariants } from 'lib/constants';
|
27
|
+
import { cn } from 'lib/utils/utils';
|
29
28
|
export var dropdownMenuSubContentVariants = cva("p-[5px] bg-white dark:bg-slateDark-1 will-change-[transform,opacity]\n shadow-[0px_10px_38px_-10px_rgba(22,_23,_24,_0.35),_0px_10px_20px_-15px_rgba(22,_23,_24,_0.2)] \n [animation-duration:_400ms] [animation-timing-function:_cubic-bezier(0.16,_1,_0.3,_1)]", {
|
30
29
|
variants: {
|
31
30
|
radius: {
|
@@ -49,10 +48,14 @@ export var dropdownMenuSubContentVariants = cva("p-[5px] bg-white dark:bg-slateD
|
|
49
48
|
});
|
50
49
|
export var DropdownMenuSubContent = forwardRef(function (_a, ref) {
|
51
50
|
var className = _a.className, children = _a.children, radius = _a.radius, scaling = _a.scaling, size = _a.size, props = __rest(_a, ["className", "children", "radius", "scaling", "size"]);
|
52
|
-
return (
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
51
|
+
return (<DropdownMenuPrimitive.Portal>
|
52
|
+
<DropdownMenuPrimitive.SubContent ref={ref} className={cn(dropdownMenuSubContentVariants({
|
53
|
+
radius: radius,
|
54
|
+
size: size,
|
55
|
+
scaling: scaling,
|
56
|
+
}), className)} sideOffset={2} alignOffset={-5} {...props}>
|
57
|
+
{children}
|
58
|
+
</DropdownMenuPrimitive.SubContent>
|
59
|
+
</DropdownMenuPrimitive.Portal>);
|
57
60
|
});
|
58
61
|
DropdownMenuSubContent.displayName = 'DropdownMenuSubContent';
|
@@ -1,14 +1,3 @@
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
2
|
-
__assign = Object.assign || function(t) {
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
4
|
-
s = arguments[i];
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
6
|
-
t[p] = s[p];
|
7
|
-
}
|
8
|
-
return t;
|
9
|
-
};
|
10
|
-
return __assign.apply(this, arguments);
|
11
|
-
};
|
12
1
|
var __rest = (this && this.__rest) || function (s, e) {
|
13
2
|
var t = {};
|
14
3
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
@@ -20,19 +9,23 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
20
9
|
}
|
21
10
|
return t;
|
22
11
|
};
|
23
|
-
import
|
24
|
-
import { forwardRef } from 'react';
|
12
|
+
import React, { forwardRef } from 'react';
|
25
13
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
26
|
-
import { menuItemAppearanceStyle } from '
|
14
|
+
import { menuItemAppearanceStyle } from 'lib/constants';
|
27
15
|
import { dropdownMenuItemVariants, DropdownMenuItemIndicator } from '.';
|
28
16
|
import { CheckIcon } from '@radix-ui/react-icons';
|
29
|
-
import { cn } from 'utils/utils';
|
17
|
+
import { cn } from 'lib/utils/utils';
|
30
18
|
export var DropdownMenuCheckboxItem = forwardRef(function (_a, ref) {
|
31
19
|
var className = _a.className, children = _a.children, radius = _a.radius, size = _a.size, _b = _a.color, color = _b === void 0 ? 'red' : _b, _c = _a.appearance, appearance = _c === void 0 ? 'solid' : _c, shortcut = _a.shortcut, checked = _a.checked, props = __rest(_a, ["className", "children", "radius", "size", "color", "appearance", "shortcut", "checked"]);
|
32
20
|
var itemClassName = cn(dropdownMenuItemVariants({
|
33
21
|
radius: radius,
|
34
22
|
size: size,
|
35
23
|
}), 'pl-7', menuItemAppearanceStyle(appearance, color), className);
|
36
|
-
return (
|
24
|
+
return (<DropdownMenuPrimitive.CheckboxItem ref={ref} className={itemClassName} {...props}>
|
25
|
+
<DropdownMenuItemIndicator forceMount radius={'medium'} size={size}>
|
26
|
+
{checked && <CheckIcon />}
|
27
|
+
</DropdownMenuItemIndicator>
|
28
|
+
{children}
|
29
|
+
</DropdownMenuPrimitive.CheckboxItem>);
|
37
30
|
});
|
38
31
|
DropdownMenuCheckboxItem.displayName = 'DropdownMenuCheckboxItem';
|
@@ -20,12 +20,11 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
20
20
|
}
|
21
21
|
return t;
|
22
22
|
};
|
23
|
-
import {
|
24
|
-
import { forwardRef } from 'react';
|
23
|
+
import React, { forwardRef } from 'react';
|
25
24
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
26
25
|
import { cva } from 'class-variance-authority';
|
27
|
-
import { scalingVariants } from '
|
28
|
-
import { cn } from 'utils/utils';
|
26
|
+
import { scalingVariants } from 'lib/constants';
|
27
|
+
import { cn } from 'lib/utils/utils';
|
29
28
|
export var dropdownMenuContentVariants = cva("p-[5px] bg-white dark:bg-slateDark-1 will-change-[transform,opacity]\n shadow-[0px_10px_38px_-10px_rgba(22,_23,_24,_0.35),_0px_10px_20px_-15px_rgba(22,_23,_24,_0.2)] \n [animation-duration:_400ms] [animation-timing-function:_cubic-bezier(0.16,_1,_0.3,_1)]", {
|
30
29
|
variants: {
|
31
30
|
radius: {
|
@@ -49,6 +48,10 @@ export var dropdownMenuContentVariants = cva("p-[5px] bg-white dark:bg-slateDark
|
|
49
48
|
});
|
50
49
|
export var DropdownMenuContent = forwardRef(function (_a, ref) {
|
51
50
|
var className = _a.className, children = _a.children, size = _a.size, scaling = _a.scaling, radius = _a.radius, props = __rest(_a, ["className", "children", "size", "scaling", "radius"]);
|
52
|
-
return (
|
51
|
+
return (<DropdownMenuPrimitive.Portal>
|
52
|
+
<DropdownMenuPrimitive.Content ref={ref} sideOffset={5} className={cn(dropdownMenuContentVariants({ radius: radius, scaling: scaling, size: size }), className)} {...props}>
|
53
|
+
{children}
|
54
|
+
</DropdownMenuPrimitive.Content>
|
55
|
+
</DropdownMenuPrimitive.Portal>);
|
53
56
|
});
|
54
57
|
DropdownMenuContent.displayName = 'DropdownMenuContent';
|
@@ -20,12 +20,11 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
20
20
|
}
|
21
21
|
return t;
|
22
22
|
};
|
23
|
-
import
|
24
|
-
import { forwardRef } from 'react';
|
23
|
+
import React, { forwardRef } from 'react';
|
25
24
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
26
25
|
import { cva } from 'class-variance-authority';
|
27
|
-
import { menuItemAppearanceStyle, scalingVariants, radiusVariants, blackText
|
28
|
-
import { cn } from 'utils/utils';
|
26
|
+
import { menuItemAppearanceStyle, scalingVariants, radiusVariants, blackText } from 'lib/constants';
|
27
|
+
import { cn } from 'lib/utils/utils';
|
29
28
|
export var dropdownMenuItemVariants = cva("flex group relative leading-none select-none outline-none items-center justify-between\n data-[disabled]:text-slate-8 dark:data-[disabled]:text-slateDark-8 hover:data-[disabled]:bg-transparent dark:hover:data-[disabled]:bg-transparent text-slate-12 dark:text-slateDark-12", {
|
30
29
|
variants: {
|
31
30
|
radius: __assign({}, radiusVariants['menu-item']),
|
@@ -51,6 +50,9 @@ export var DropdownMenuItem = forwardRef(function (_a, ref) {
|
|
51
50
|
if (appearance === 'solid' && !blackText.includes(color)) {
|
52
51
|
shortcutClassName = 'group-hover:text-white dark:group-hover:text-white';
|
53
52
|
}
|
54
|
-
return (
|
53
|
+
return (<DropdownMenuPrimitive.Item ref={ref} {...props} className={itemClassName}>
|
54
|
+
{children}
|
55
|
+
{shortcut && <span className={shortcutClassName}>{shortcut}</span>}
|
56
|
+
</DropdownMenuPrimitive.Item>);
|
55
57
|
});
|
56
58
|
DropdownMenuItem.displayName = 'DropdownMenuItem';
|
@@ -20,12 +20,11 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
20
20
|
}
|
21
21
|
return t;
|
22
22
|
};
|
23
|
-
import {
|
24
|
-
import { forwardRef } from 'react';
|
23
|
+
import React, { forwardRef } from 'react';
|
25
24
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
26
25
|
import { cva } from 'class-variance-authority';
|
27
|
-
import { radiusVariants } from '
|
28
|
-
import { cn } from 'utils/utils';
|
26
|
+
import { radiusVariants } from 'lib/constants';
|
27
|
+
import { cn } from 'lib/utils/utils';
|
29
28
|
export var dropdownMenuItemIndicatorVariants = cva("absolute left-0 inline-flex items-center justify-center ml-1 border", {
|
30
29
|
variants: {
|
31
30
|
radius: __assign({}, radiusVariants['base']),
|
@@ -41,6 +40,8 @@ export var dropdownMenuItemIndicatorVariants = cva("absolute left-0 inline-flex
|
|
41
40
|
});
|
42
41
|
export var DropdownMenuItemIndicator = forwardRef(function (_a, ref) {
|
43
42
|
var className = _a.className, children = _a.children, size = _a.size, radius = _a.radius, props = __rest(_a, ["className", "children", "size", "radius"]);
|
44
|
-
return (
|
43
|
+
return (<DropdownMenuPrimitive.ItemIndicator ref={ref} className={cn(dropdownMenuItemIndicatorVariants({ radius: radius, size: size }), className)} {...props}>
|
44
|
+
{children}
|
45
|
+
</DropdownMenuPrimitive.ItemIndicator>);
|
45
46
|
});
|
46
47
|
DropdownMenuItemIndicator.displayName = 'DropdownMenuItemIndicator';
|
@@ -20,12 +20,11 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
20
20
|
}
|
21
21
|
return t;
|
22
22
|
};
|
23
|
-
import {
|
24
|
-
import { forwardRef } from 'react';
|
23
|
+
import React, { forwardRef } from 'react';
|
25
24
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
26
25
|
import { cva } from 'class-variance-authority';
|
27
|
-
import { scalingVariants } from '
|
28
|
-
import { cn } from 'utils/utils';
|
26
|
+
import { scalingVariants } from 'lib/constants';
|
27
|
+
import { cn } from 'lib/utils/utils';
|
29
28
|
export var dropdownMenuLabelVariants = cva("flex relative leading-none select-none outline-none items-center font-normal text-slateA-11 dark:text-slateDarkA-11", {
|
30
29
|
variants: {
|
31
30
|
size: {
|
@@ -41,6 +40,8 @@ export var dropdownMenuLabelVariants = cva("flex relative leading-none select-no
|
|
41
40
|
});
|
42
41
|
export var DropdownMenuLabel = forwardRef(function (_a, ref) {
|
43
42
|
var className = _a.className, children = _a.children, size = _a.size, props = __rest(_a, ["className", "children", "size"]);
|
44
|
-
return (
|
43
|
+
return (<DropdownMenuPrimitive.Label ref={ref} className={cn(dropdownMenuLabelVariants({ size: size }), className)} {...props}>
|
44
|
+
{children}
|
45
|
+
</DropdownMenuPrimitive.Label>);
|
45
46
|
});
|
46
47
|
DropdownMenuLabel.displayName = 'DropdownMenuLabel';
|
@@ -1,14 +1,3 @@
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
2
|
-
__assign = Object.assign || function(t) {
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
4
|
-
s = arguments[i];
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
6
|
-
t[p] = s[p];
|
7
|
-
}
|
8
|
-
return t;
|
9
|
-
};
|
10
|
-
return __assign.apply(this, arguments);
|
11
|
-
};
|
12
1
|
var __rest = (this && this.__rest) || function (s, e) {
|
13
2
|
var t = {};
|
14
3
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
@@ -20,13 +9,12 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
20
9
|
}
|
21
10
|
return t;
|
22
11
|
};
|
23
|
-
import {
|
24
|
-
import { forwardRef, useContext } from 'react';
|
12
|
+
import React, { forwardRef, useContext } from 'react';
|
25
13
|
import { DropdownMenu as DropdownMenuTheme } from '@radix-ui/themes';
|
26
14
|
import { dropdownMenuItemVariants, DropdownMenuItemIndicator, RadioContext, } from '.';
|
27
|
-
import { menuItemAppearanceStyle } from '
|
15
|
+
import { menuItemAppearanceStyle } from 'lib/constants';
|
28
16
|
import { DotFilledIcon } from '@radix-ui/react-icons';
|
29
|
-
import { cn } from 'utils/utils';
|
17
|
+
import { cn } from 'lib/utils/utils';
|
30
18
|
export var DropdownMenuRadioItem = forwardRef(function (_a, ref) {
|
31
19
|
var className = _a.className, children = _a.children, _b = _a.color, color = _b === void 0 ? 'red' : _b, _c = _a.appearance, appearance = _c === void 0 ? 'solid' : _c, radius = _a.radius, size = _a.size, props = __rest(_a, ["className", "children", "color", "appearance", "radius", "size"]);
|
32
20
|
var radioGroup = useContext(RadioContext);
|
@@ -34,6 +22,11 @@ export var DropdownMenuRadioItem = forwardRef(function (_a, ref) {
|
|
34
22
|
radius: radius,
|
35
23
|
size: size,
|
36
24
|
}), 'pl-7', menuItemAppearanceStyle(appearance, color), className);
|
37
|
-
return (
|
25
|
+
return (<DropdownMenuTheme.RadioItem ref={ref} className={itemClassName} {...props}>
|
26
|
+
<DropdownMenuItemIndicator forceMount radius={'full'} size={size}>
|
27
|
+
{radioGroup.selectedValue === props.value && <DotFilledIcon />}
|
28
|
+
</DropdownMenuItemIndicator>
|
29
|
+
{children}
|
30
|
+
</DropdownMenuTheme.RadioItem>);
|
38
31
|
});
|
39
32
|
DropdownMenuRadioItem.displayName = 'DropdownMenuRadioItem';
|
@@ -1,14 +1,3 @@
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
2
|
-
__assign = Object.assign || function(t) {
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
4
|
-
s = arguments[i];
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
6
|
-
t[p] = s[p];
|
7
|
-
}
|
8
|
-
return t;
|
9
|
-
};
|
10
|
-
return __assign.apply(this, arguments);
|
11
|
-
};
|
12
1
|
var __rest = (this && this.__rest) || function (s, e) {
|
13
2
|
var t = {};
|
14
3
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
@@ -20,12 +9,11 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
20
9
|
}
|
21
10
|
return t;
|
22
11
|
};
|
23
|
-
import {
|
24
|
-
import { forwardRef } from 'react';
|
12
|
+
import React, { forwardRef } from 'react';
|
25
13
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
26
|
-
import { cn } from 'utils/utils';
|
14
|
+
import { cn } from 'lib/utils/utils';
|
27
15
|
export var DropdownMenuSeparator = forwardRef(function (_a, ref) {
|
28
16
|
var className = _a.className, children = _a.children, color = _a.color, props = __rest(_a, ["className", "children", "color"]);
|
29
|
-
return (
|
17
|
+
return (<DropdownMenuPrimitive.Separator ref={ref} className={cn('h-[1px] m-[5px] bg-slate-6 dark:bg-slateDark-6', className)} {...props}/>);
|
30
18
|
});
|
31
19
|
DropdownMenuSeparator.displayName = 'DropdownMenuSeparator';
|
@@ -1,14 +1,3 @@
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
2
|
-
__assign = Object.assign || function(t) {
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
4
|
-
s = arguments[i];
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
6
|
-
t[p] = s[p];
|
7
|
-
}
|
8
|
-
return t;
|
9
|
-
};
|
10
|
-
return __assign.apply(this, arguments);
|
11
|
-
};
|
12
1
|
var __rest = (this && this.__rest) || function (s, e) {
|
13
2
|
var t = {};
|
14
3
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
@@ -20,11 +9,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
20
9
|
}
|
21
10
|
return t;
|
22
11
|
};
|
23
|
-
import {
|
24
|
-
import { forwardRef } from 'react';
|
12
|
+
import React, { forwardRef } from 'react';
|
25
13
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
26
14
|
export var DropdownMenuSub = forwardRef(function (_a, ref) {
|
27
15
|
var children = _a.children, props = __rest(_a, ["children"]);
|
28
|
-
return
|
16
|
+
return <DropdownMenuPrimitive.Sub {...props}>{children}</DropdownMenuPrimitive.Sub>;
|
29
17
|
});
|
30
18
|
DropdownMenuSub.displayName = 'DropdownMenuSub';
|
@@ -1,14 +1,3 @@
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
2
|
-
__assign = Object.assign || function(t) {
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
4
|
-
s = arguments[i];
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
6
|
-
t[p] = s[p];
|
7
|
-
}
|
8
|
-
return t;
|
9
|
-
};
|
10
|
-
return __assign.apply(this, arguments);
|
11
|
-
};
|
12
1
|
var __rest = (this && this.__rest) || function (s, e) {
|
13
2
|
var t = {};
|
14
3
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
@@ -20,19 +9,23 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
20
9
|
}
|
21
10
|
return t;
|
22
11
|
};
|
23
|
-
import
|
24
|
-
import { forwardRef } from 'react';
|
12
|
+
import React, { forwardRef } from 'react';
|
25
13
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
26
14
|
import { dropdownMenuItemVariants } from './DropdownMenuItem';
|
27
15
|
import { ChevronRightIcon } from '@radix-ui/react-icons';
|
28
|
-
import { blackText, menuItemAppearanceStyle } from '
|
29
|
-
import { cn } from '
|
16
|
+
import { blackText, menuItemAppearanceStyle } from 'lib/constants';
|
17
|
+
import { cn } from 'lib/utils/utils';
|
30
18
|
export var DropdownMenuSubTrigger = forwardRef(function (_a, ref) {
|
31
19
|
var className = _a.className, children = _a.children, size = _a.size, radius = _a.radius, _b = _a.color, color = _b === void 0 ? 'red' : _b, _c = _a.appearance, appearance = _c === void 0 ? 'solid' : _c, props = __rest(_a, ["className", "children", "size", "radius", "color", "appearance"]);
|
32
20
|
var iconClassName = cn('group-data-[disabled]:text-slate-8 ', appearance === 'solid' && blackText.includes(color)
|
33
21
|
? 'hover:fill-slate-12 dark:hover:fill-slateDark-1'
|
34
22
|
: "hover:fill-white dark:hover:fill-slateDark-12 ");
|
35
23
|
var triggerClassName = cn(dropdownMenuItemVariants({ size: size, radius: radius }), menuItemAppearanceStyle(appearance, color), className);
|
36
|
-
return (
|
24
|
+
return (<DropdownMenuPrimitive.SubTrigger ref={ref} className={triggerClassName} {...props}>
|
25
|
+
{children}
|
26
|
+
<div className="ml-auto pl-5 ">
|
27
|
+
<ChevronRightIcon className={iconClassName}/>
|
28
|
+
</div>
|
29
|
+
</DropdownMenuPrimitive.SubTrigger>);
|
37
30
|
});
|
38
31
|
DropdownMenuSubTrigger.displayName = 'DropdownMenuSubTrigger';
|
@@ -1,14 +1,3 @@
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
2
|
-
__assign = Object.assign || function(t) {
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
4
|
-
s = arguments[i];
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
6
|
-
t[p] = s[p];
|
7
|
-
}
|
8
|
-
return t;
|
9
|
-
};
|
10
|
-
return __assign.apply(this, arguments);
|
11
|
-
};
|
12
1
|
var __rest = (this && this.__rest) || function (s, e) {
|
13
2
|
var t = {};
|
14
3
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
@@ -20,11 +9,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
20
9
|
}
|
21
10
|
return t;
|
22
11
|
};
|
23
|
-
import {
|
24
|
-
import { forwardRef } from 'react';
|
12
|
+
import React, { forwardRef } from 'react';
|
25
13
|
import { cva } from 'class-variance-authority';
|
26
14
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
27
|
-
import { cn } from '
|
15
|
+
import { cn } from 'lib/utils/utils';
|
28
16
|
var dropdownMenuTriggerVariants = cva('', {
|
29
17
|
variants: {
|
30
18
|
radius: {
|
@@ -46,6 +34,8 @@ var dropdownMenuTriggerVariants = cva('', {
|
|
46
34
|
});
|
47
35
|
export var DropdownMenuTrigger = forwardRef(function (_a, ref) {
|
48
36
|
var className = _a.className, children = _a.children, radius = _a.radius, size = _a.size, props = __rest(_a, ["className", "children", "radius", "size"]);
|
49
|
-
return (
|
37
|
+
return (<DropdownMenuPrimitive.Trigger asChild ref={ref} className={cn(dropdownMenuTriggerVariants({ radius: radius, size: size }), className)} {...props}>
|
38
|
+
{children}
|
39
|
+
</DropdownMenuPrimitive.Trigger>);
|
50
40
|
});
|
51
41
|
DropdownMenuTrigger.displayName = 'DropdownMenuTrigger';
|
@@ -1,14 +1,3 @@
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
2
|
-
__assign = Object.assign || function(t) {
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
4
|
-
s = arguments[i];
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
6
|
-
t[p] = s[p];
|
7
|
-
}
|
8
|
-
return t;
|
9
|
-
};
|
10
|
-
return __assign.apply(this, arguments);
|
11
|
-
};
|
12
1
|
var __rest = (this && this.__rest) || function (s, e) {
|
13
2
|
var t = {};
|
14
3
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
@@ -20,8 +9,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
20
9
|
}
|
21
10
|
return t;
|
22
11
|
};
|
23
|
-
import {
|
24
|
-
import { forwardRef } from 'react';
|
12
|
+
import React, { forwardRef } from 'react';
|
25
13
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
26
14
|
export * from './DropdownMenuTrigger';
|
27
15
|
export * from './DropdownMenuContent';
|
@@ -37,7 +25,7 @@ export * from './DropdonMenuRadioGroup';
|
|
37
25
|
export * from './DropdownMenuRadioItem';
|
38
26
|
export var DropdownMenu = forwardRef(function (_a, ref) {
|
39
27
|
var children = _a.children, props = __rest(_a, ["children"]);
|
40
|
-
return (
|
28
|
+
return (<DropdownMenuPrimitive.Root {...props}>{children}</DropdownMenuPrimitive.Root>);
|
41
29
|
});
|
42
30
|
DropdownMenu.displayName = 'DropdownMenu';
|
43
31
|
export default DropdownMenu;
|
@@ -20,13 +20,11 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
20
20
|
}
|
21
21
|
return t;
|
22
22
|
};
|
23
|
-
import {
|
24
|
-
import {
|
25
|
-
import { primaryColorStyle, radiusVariants, weightVariants } from '../../constants';
|
23
|
+
import React, { forwardRef } from 'react';
|
24
|
+
import { primaryColorStyle, radiusVariants, weightVariants, scalingVariants } from 'lib/constants';
|
26
25
|
import { cva } from 'class-variance-authority';
|
27
26
|
import { HoverCard as HoverCardTheme } from '@radix-ui/themes';
|
28
|
-
import {
|
29
|
-
import { cn } from '../../utils/utils';
|
27
|
+
import { cn } from 'lib/utils/utils';
|
30
28
|
export var hoverCardContentVariants = cva('', {
|
31
29
|
variants: {
|
32
30
|
radius: __assign({}, radiusVariants['base']),
|
@@ -55,6 +53,8 @@ export var HoverCardContent = forwardRef(function (_a, ref) {
|
|
55
53
|
sizeTheme = '1';
|
56
54
|
if (size === 'large')
|
57
55
|
sizeTheme = '3';
|
58
|
-
return (
|
56
|
+
return (<HoverCardTheme.Content ref={ref} {...props} size={sizeTheme} className={cn(hoverCardContentVariants({ size: size, scaling: scaling, weight: weight, radius: radius, color: color }), size === 'x-large' && 'rt-r-size-4', className)}>
|
57
|
+
{children}
|
58
|
+
</HoverCardTheme.Content>);
|
59
59
|
});
|
60
60
|
HoverCardContent.displayName = 'HoverCardContent';
|
@@ -1,14 +1,3 @@
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
2
|
-
__assign = Object.assign || function(t) {
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
4
|
-
s = arguments[i];
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
6
|
-
t[p] = s[p];
|
7
|
-
}
|
8
|
-
return t;
|
9
|
-
};
|
10
|
-
return __assign.apply(this, arguments);
|
11
|
-
};
|
12
1
|
var __rest = (this && this.__rest) || function (s, e) {
|
13
2
|
var t = {};
|
14
3
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
@@ -20,11 +9,12 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
20
9
|
}
|
21
10
|
return t;
|
22
11
|
};
|
23
|
-
import {
|
24
|
-
import { forwardRef } from 'react';
|
12
|
+
import React, { forwardRef } from 'react';
|
25
13
|
import { HoverCard as HoverCardTheme } from '@radix-ui/themes';
|
26
14
|
export var HoverCardTrigger = forwardRef(function (_a, ref) {
|
27
15
|
var className = _a.className, children = _a.children, props = __rest(_a, ["className", "children"]);
|
28
|
-
return (
|
16
|
+
return (<HoverCardTheme.Trigger ref={ref} className={className} {...props}>
|
17
|
+
{children}
|
18
|
+
</HoverCardTheme.Trigger>);
|
29
19
|
});
|
30
20
|
HoverCardTrigger.displayName = 'HoverCardTrigger';
|
@@ -1,14 +1,3 @@
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
2
|
-
__assign = Object.assign || function(t) {
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
4
|
-
s = arguments[i];
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
6
|
-
t[p] = s[p];
|
7
|
-
}
|
8
|
-
return t;
|
9
|
-
};
|
10
|
-
return __assign.apply(this, arguments);
|
11
|
-
};
|
12
1
|
var __rest = (this && this.__rest) || function (s, e) {
|
13
2
|
var t = {};
|
14
3
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
@@ -20,14 +9,15 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
20
9
|
}
|
21
10
|
return t;
|
22
11
|
};
|
23
|
-
import {
|
24
|
-
import { forwardRef } from 'react';
|
12
|
+
import React, { forwardRef } from 'react';
|
25
13
|
import { HoverCard as HoverCardTheme, Theme } from '@radix-ui/themes';
|
26
14
|
export * from './HoverCardTrigger';
|
27
15
|
export * from './HoverCardContent';
|
28
16
|
export var HoverCard = forwardRef(function (_a, ref) {
|
29
17
|
var children = _a.children, props = __rest(_a, ["children"]);
|
30
|
-
return (
|
18
|
+
return (<Theme>
|
19
|
+
<HoverCardTheme.Root {...props}>{children}</HoverCardTheme.Root>
|
20
|
+
</Theme>);
|
31
21
|
});
|
32
22
|
HoverCard.displayName = 'HoverCard';
|
33
23
|
export default HoverCard;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
3
|
-
import { IAppearance } from 'types';
|
3
|
+
import { IAppearance } from 'lib/types';
|
4
4
|
export interface IconButtonProps extends VariantProps<typeof iconButtonVariants> {
|
5
5
|
appearance?: IAppearance;
|
6
6
|
size?: 'x-small' | 'small' | 'medium' | 'large' | 'x-large';
|
@@ -20,11 +20,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
20
20
|
}
|
21
21
|
return t;
|
22
22
|
};
|
23
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
24
23
|
import React, { Children, forwardRef } from 'react';
|
25
24
|
import { cva } from 'class-variance-authority';
|
26
|
-
import { scalingVariants, radiusVariants, primaryColorStyle, appearanceStyle
|
27
|
-
import { cn } from '
|
25
|
+
import { scalingVariants, radiusVariants, primaryColorStyle, appearanceStyle } from 'lib/constants';
|
26
|
+
import { cn } from 'lib/utils/utils';
|
28
27
|
var iconButtonVariants = cva("grid place-content-center transition-colors focus:outline-none hover:cursor-pointer\n disabled:cursor-not-allowed disabled:bg-slate-3 disabled:text-slate-8", {
|
29
28
|
variants: {
|
30
29
|
radius: __assign({}, radiusVariants['base']),
|
@@ -57,7 +56,9 @@ export var IconButton = forwardRef(function (_a, ref) {
|
|
57
56
|
var width = iconSize[size];
|
58
57
|
var height = iconSize[size];
|
59
58
|
var buttonClassName = cn(iconButtonVariants({ radius: radius, scaling: scaling, size: size, color: color }), appearanceStyle(appearance, color, true), className);
|
60
|
-
return (
|
59
|
+
return (<button ref={ref} className={buttonClassName} {...props}>
|
60
|
+
{Children.map(children, function (child) { return React.cloneElement(child, { width: width, height: height }); })}
|
61
|
+
</button>);
|
61
62
|
});
|
62
63
|
IconButton.displayName = 'IconButton';
|
63
64
|
export default IconButton;
|