@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,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 { cva } from 'class-variance-authority';
|
26
25
|
import { Inset as InsetTheme, Theme } from '@radix-ui/themes';
|
27
|
-
import { scalingVariants } from '
|
28
|
-
import { cn } from '
|
26
|
+
import { scalingVariants } from 'lib/constants';
|
27
|
+
import { cn } from 'lib/utils/utils';
|
29
28
|
var insetVariants = cva('border-[1px] border-slate-6 dark:border-slateDark-6 text-slate-12 dark:text-slateDark-12', {
|
30
29
|
variants: {
|
31
30
|
radius: {
|
@@ -44,7 +43,11 @@ var insetVariants = cva('border-[1px] border-slate-6 dark:border-slateDark-6 tex
|
|
44
43
|
});
|
45
44
|
export var Inset = forwardRef(function (_a, ref) {
|
46
45
|
var children = _a.children, className = _a.className, radius = _a.radius, scaling = _a.scaling, props = __rest(_a, ["children", "className", "radius", "scaling"]);
|
47
|
-
return (
|
46
|
+
return (<Theme>
|
47
|
+
<InsetTheme ref={ref} className={cn(insetVariants({ radius: radius, scaling: scaling }), className)} {...props}>
|
48
|
+
{children}
|
49
|
+
</InsetTheme>
|
50
|
+
</Theme>);
|
48
51
|
});
|
49
52
|
Inset.displayName = 'Inset';
|
50
53
|
export default Inset;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
2
2
|
import React from 'react';
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
4
|
-
import { IColor } from 'types';
|
4
|
+
import { IColor } from 'lib/types';
|
5
5
|
export interface LabelProps extends VariantProps<typeof labeVariants> {
|
6
6
|
defaultValue?: string;
|
7
7
|
color?: IColor;
|
@@ -20,12 +20,11 @@ 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 * as LabelPrimitive from '@radix-ui/react-label';
|
25
24
|
import React from 'react';
|
26
|
-
import { cn } from '
|
25
|
+
import { cn } from 'lib/utils/utils';
|
27
26
|
import { cva } from 'class-variance-authority';
|
28
|
-
import { scalingVariants, textColorStyle, weightVariants } from '
|
27
|
+
import { scalingVariants, textColorStyle, weightVariants } from 'lib/constants';
|
29
28
|
var labeVariants = cva('text-slate-12', {
|
30
29
|
variants: {
|
31
30
|
scaling: __assign({}, scalingVariants),
|
@@ -47,7 +46,9 @@ export var Label = React.forwardRef(function (_a, forwardedRef) {
|
|
47
46
|
var className = _a.className, scaling = _a.scaling, weight = _a.weight, size = _a.size, color = _a.color, children = _a.children, rootProps = __rest(_a, ["className", "scaling", "weight", "size", "color", "children"]);
|
48
47
|
if (weight === 'medium' || weight === 'semibold')
|
49
48
|
weight = 'bold';
|
50
|
-
return (
|
49
|
+
return (<LabelPrimitive.Root {...rootProps} ref={forwardedRef} className={cn('', labeVariants({ scaling: scaling, size: size, weight: weight, color: color }), className)}>
|
50
|
+
{children}
|
51
|
+
</LabelPrimitive.Root>);
|
51
52
|
});
|
52
53
|
Label.displayName = 'Label';
|
53
54
|
export default Label;
|
@@ -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 MenubarPrimitive from '@radix-ui/react-menubar';
|
26
14
|
import { CheckIcon } from '@radix-ui/react-icons';
|
27
|
-
import { cn } from 'utils/utils';
|
15
|
+
import { cn } from 'lib/utils/utils';
|
28
16
|
import { menubarItemVariants } from './MenubarItem';
|
29
17
|
import { MenubarItemIndicator } from './MenubarItemIndicator';
|
30
|
-
import { menuItemAppearanceStyle } from '
|
18
|
+
import { menuItemAppearanceStyle } from 'lib/constants';
|
31
19
|
import { useMenubarContext } from '.';
|
32
20
|
export var MenubarCheckboxItem = forwardRef(function (_a, ref) {
|
33
21
|
var children = _a.children, className = _a.className, checked = _a.checked, props = __rest(_a, ["children", "className", "checked"]);
|
34
22
|
var _b = useMenubarContext(), radius = _b.radius, scaling = _b.scaling, size = _b.size, _c = _b.color, color = _c === void 0 ? 'red' : _c, _d = _b.itemAppearance, itemAppearance = _d === void 0 ? 'solid' : _d;
|
35
23
|
var itemClassName = cn(menubarItemVariants({ radius: radius, scaling: scaling, size: size }), 'pl-7', menuItemAppearanceStyle(itemAppearance, color), className);
|
36
|
-
return (
|
24
|
+
return (<MenubarPrimitive.CheckboxItem ref={ref} className={itemClassName} {...props}>
|
25
|
+
<MenubarItemIndicator forceMount radius={'medium'} size={size}>
|
26
|
+
{checked && <CheckIcon />}
|
27
|
+
</MenubarItemIndicator>
|
28
|
+
{children}
|
29
|
+
</MenubarPrimitive.CheckboxItem>);
|
37
30
|
});
|
38
31
|
MenubarCheckboxItem.displayName = 'MenubarCheckboxItem';
|
package/dist/{components/Menubar/MenubarContent.js → lib/components/Menubar/MenubarContent.jsx}
RENAMED
@@ -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 MenubarPrimitive from '@radix-ui/react-menubar';
|
26
25
|
import { cva } from 'class-variance-authority';
|
27
|
-
import { cn } from 'utils/utils';
|
28
|
-
import { scalingVariants } from '
|
26
|
+
import { cn } from 'lib/utils/utils';
|
27
|
+
import { scalingVariants } from 'lib/constants';
|
29
28
|
import { useMenubarContext } from '.';
|
30
29
|
export var menubarContentVariants = 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)]", {
|
31
30
|
variants: {
|
@@ -51,10 +50,14 @@ export var menubarContentVariants = cva("p-[5px] bg-white dark:bg-slateDark-1 wi
|
|
51
50
|
export var MenubarContent = forwardRef(function (_a, ref) {
|
52
51
|
var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
|
53
52
|
var _b = useMenubarContext(), radius = _b.radius, size = _b.size, scaling = _b.scaling;
|
54
|
-
return (
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
53
|
+
return (<MenubarPrimitive.Portal>
|
54
|
+
<MenubarPrimitive.Content ref={ref} className={cn(menubarContentVariants({
|
55
|
+
radius: radius,
|
56
|
+
size: size,
|
57
|
+
scaling: scaling,
|
58
|
+
}), className)} align="start" sideOffset={5} alignOffset={-3} {...props}>
|
59
|
+
{children}
|
60
|
+
</MenubarPrimitive.Content>
|
61
|
+
</MenubarPrimitive.Portal>);
|
59
62
|
});
|
60
63
|
MenubarContent.displayName = 'MenubarContent';
|
@@ -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 MenubarPrimitive from '@radix-ui/react-menubar';
|
26
25
|
import { cva } from 'class-variance-authority';
|
27
|
-
import { cn } from 'utils/utils';
|
28
|
-
import { blackText, menuItemAppearanceStyle, radiusVariants, scalingVariants
|
26
|
+
import { cn } from 'lib/utils/utils';
|
27
|
+
import { blackText, menuItemAppearanceStyle, radiusVariants, scalingVariants } from 'lib/constants';
|
29
28
|
import { useMenubarContext } from '.';
|
30
29
|
export var menubarItemVariants = cva("flex group relative leading-none select-none outline-none items-center justify-between font-normal\n data-[disabled]:text-slate-8 data-[disabled]:cursor-not-allowed text-slate-12 dark:text-slateDark-12\n data-[disabled]:hover:bg-transparent dark:data-[disabled]:text-slateDark-8 data-[disabled]:dark:hover:bg-transparent", {
|
31
30
|
variants: {
|
@@ -49,6 +48,9 @@ export var MenubarItem = forwardRef(function (_a, ref) {
|
|
49
48
|
var shortcutClassName = "text-slateA-11 dark:text-slateDarkA-11 ".concat(itemAppearance === 'solid' && !blackText.includes(color)
|
50
49
|
? 'group-hover:text-white dark:group-hover:text-slateDark-1'
|
51
50
|
: '');
|
52
|
-
return (
|
51
|
+
return (<MenubarPrimitive.Item ref={ref} className={itemClassName} {...props}>
|
52
|
+
{children}
|
53
|
+
{shortcut && <span className={shortcutClassName}>{shortcut}</span>}
|
54
|
+
</MenubarPrimitive.Item>);
|
53
55
|
});
|
54
56
|
MenubarItem.displayName = 'MenubarItem';
|
@@ -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 MenubarPrimitive from '@radix-ui/react-menubar';
|
26
|
-
import { cn } from 'utils/utils';
|
25
|
+
import { cn } from 'lib/utils/utils';
|
27
26
|
import { cva } from 'class-variance-authority';
|
28
|
-
import { radiusVariants } from '
|
27
|
+
import { radiusVariants } from 'lib/constants';
|
29
28
|
import { useMenubarContext } from '.';
|
30
29
|
export var menubarItemIndicatorVariants = cva("absolute left-0 inline-flex items-center justify-center ml-1 border", {
|
31
30
|
variants: {
|
@@ -44,6 +43,8 @@ export var MenubarItemIndicator = forwardRef(function (_a, ref) {
|
|
44
43
|
var children = _a.children, className = _a.className, radius = _a.radius, props = __rest(_a, ["children", "className", "radius"]);
|
45
44
|
var size = useMenubarContext().size;
|
46
45
|
var indicatorClassName = cn(menubarItemIndicatorVariants({ size: size, radius: radius }), className);
|
47
|
-
return (
|
46
|
+
return (<MenubarPrimitive.ItemIndicator ref={ref} className={indicatorClassName} {...props}>
|
47
|
+
{children}
|
48
|
+
</MenubarPrimitive.ItemIndicator>);
|
48
49
|
});
|
49
50
|
MenubarItemIndicator.displayName = 'MenubarItemIndicator';
|
@@ -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 MenubarPrimitive from '@radix-ui/react-menubar';
|
26
14
|
export var MenubarMenu = forwardRef(function (_a, ref) {
|
27
15
|
var children = _a.children, props = __rest(_a, ["children"]);
|
28
|
-
return
|
16
|
+
return <MenubarPrimitive.Menu {...props}>{children}</MenubarPrimitive.Menu>;
|
29
17
|
});
|
30
18
|
MenubarMenu.displayName = 'MenubarMenu';
|
@@ -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 MenubarPrimitive from '@radix-ui/react-menubar';
|
26
14
|
export var RadioContext = createContext({ selectedValue: '' });
|
27
15
|
export var MenubarRadioGroup = forwardRef(function (_a, ref) {
|
28
16
|
var children = _a.children, className = _a.className, value = _a.value, props = __rest(_a, ["children", "className", "value"]);
|
29
|
-
return (
|
17
|
+
return (<MenubarPrimitive.RadioGroup ref={ref} className={className} {...props}>
|
18
|
+
<RadioContext.Provider value={{ selectedValue: value !== null && value !== void 0 ? value : '' }}>
|
19
|
+
{children}
|
20
|
+
</RadioContext.Provider>
|
21
|
+
</MenubarPrimitive.RadioGroup>);
|
30
22
|
});
|
31
23
|
MenubarRadioGroup.displayName = 'MenubarRadioGroup';
|
package/dist/{components/Menubar/MenubarRadioItem.js → lib/components/Menubar/MenubarRadioItem.jsx}
RENAMED
@@ -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, useContext } from 'react';
|
12
|
+
import React, { forwardRef, useContext } from 'react';
|
25
13
|
import * as MenubarPrimitive from '@radix-ui/react-menubar';
|
26
14
|
import { DotFilledIcon } from '@radix-ui/react-icons';
|
27
|
-
import { cn } from 'utils/utils';
|
28
|
-
import { menuItemAppearanceStyle } from '
|
15
|
+
import { cn } from 'lib/utils/utils';
|
16
|
+
import { menuItemAppearanceStyle } from 'lib/constants';
|
29
17
|
import { menubarItemVariants } from './MenubarItem';
|
30
18
|
import { MenubarItemIndicator } from './MenubarItemIndicator';
|
31
19
|
import { RadioContext } from './MenubarRadioGroup';
|
@@ -35,6 +23,11 @@ export var MenubarRadioItem = forwardRef(function (_a, ref) {
|
|
35
23
|
var _b = useMenubarContext(), radius = _b.radius, scaling = _b.scaling, size = _b.size, _c = _b.color, color = _c === void 0 ? 'red' : _c, _d = _b.itemAppearance, itemAppearance = _d === void 0 ? 'solid' : _d;
|
36
24
|
var itemClassName = cn(menubarItemVariants({ radius: radius, scaling: scaling, size: size }), 'pl-7', menuItemAppearanceStyle(itemAppearance, color), className);
|
37
25
|
var radioGroup = useContext(RadioContext);
|
38
|
-
return (
|
26
|
+
return (<MenubarPrimitive.RadioItem ref={ref} className={itemClassName} {...props}>
|
27
|
+
<MenubarItemIndicator forceMount radius={'full'} size={size}>
|
28
|
+
{radioGroup.selectedValue === props.value && <DotFilledIcon />}
|
29
|
+
</MenubarItemIndicator>
|
30
|
+
{children}
|
31
|
+
</MenubarPrimitive.RadioItem>);
|
39
32
|
});
|
40
33
|
MenubarRadioItem.displayName = 'MenubarRadioItem';
|
package/dist/{components/Menubar/MenubarSeparator.js → lib/components/Menubar/MenubarSeparator.jsx}
RENAMED
@@ -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,13 @@ 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 MenubarPrimitive from '@radix-ui/react-menubar';
|
26
|
-
import { cn } from 'utils/utils';
|
14
|
+
import { cn } from 'lib/utils/utils';
|
27
15
|
export var MenubarSeparator = forwardRef(function (_a, ref) {
|
28
16
|
var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
|
29
|
-
return (
|
17
|
+
return (<MenubarPrimitive.Separator ref={ref} className={cn('h-[1px] m-[5px] bg-slate-6 dark:bg-slateDark-6', className)} {...props}>
|
18
|
+
{children}
|
19
|
+
</MenubarPrimitive.Separator>);
|
30
20
|
});
|
31
21
|
MenubarSeparator.displayName = 'MenubarSeparator';
|
@@ -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 MenubarPrimitive from '@radix-ui/react-menubar';
|
26
14
|
export var MenubarSub = forwardRef(function (_a, ref) {
|
27
15
|
var children = _a.children, props = __rest(_a, ["children"]);
|
28
|
-
return
|
16
|
+
return <MenubarPrimitive.Sub {...props}>{children}</MenubarPrimitive.Sub>;
|
29
17
|
});
|
30
18
|
MenubarSub.displayName = 'MenubarSub';
|
@@ -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 MenubarPrimitive from '@radix-ui/react-menubar';
|
26
25
|
import { cva } from 'class-variance-authority';
|
27
|
-
import { cn } from 'utils/utils';
|
28
|
-
import { radiusVariants } from '
|
26
|
+
import { cn } from 'lib/utils/utils';
|
27
|
+
import { radiusVariants } from 'lib/constants';
|
29
28
|
import { useMenubarContext } from '.';
|
30
29
|
export var menubarSubContentVariants = 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)]", {
|
31
30
|
variants: {
|
@@ -43,9 +42,11 @@ export var menubarSubContentVariants = cva("p-[5px] bg-white dark:bg-slateDark-1
|
|
43
42
|
export var MenubarSubContent = forwardRef(function (_a, ref) {
|
44
43
|
var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
|
45
44
|
var _b = useMenubarContext(), radius = _b.radius, size = _b.size;
|
46
|
-
return (
|
45
|
+
return (<MenubarPrimitive.SubContent ref={ref} className={cn(menubarSubContentVariants({
|
47
46
|
radius: radius,
|
48
47
|
size: size,
|
49
|
-
}), className)
|
48
|
+
}), className)} alignOffset={-5} {...props}>
|
49
|
+
{children}
|
50
|
+
</MenubarPrimitive.SubContent>);
|
50
51
|
});
|
51
52
|
MenubarSubContent.displayName = 'MenubarSubContent';
|
@@ -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 MenubarPrimitive from '@radix-ui/react-menubar';
|
26
14
|
import { ChevronRightIcon } from '@radix-ui/react-icons';
|
27
|
-
import { cn } from 'utils/utils';
|
28
|
-
import { blackText, menuItemAppearanceStyle } from '
|
15
|
+
import { cn } from 'lib/utils/utils';
|
16
|
+
import { blackText, menuItemAppearanceStyle } from 'lib/constants';
|
29
17
|
import { menubarItemVariants } from './MenubarItem';
|
30
18
|
import { useMenubarContext } from '.';
|
31
19
|
export var MenubarSubTrigger = forwardRef(function (_a, ref) {
|
@@ -36,6 +24,11 @@ export var MenubarSubTrigger = forwardRef(function (_a, ref) {
|
|
36
24
|
if (itemAppearance === 'solid' && !blackText.includes(color)) {
|
37
25
|
iconClassName = 'group-hover:text-white dark:group-hover:text-slateDark-1';
|
38
26
|
}
|
39
|
-
return (
|
27
|
+
return (<MenubarPrimitive.SubTrigger ref={ref} className={triggerClassName} {...props}>
|
28
|
+
{children}
|
29
|
+
<div className={iconClassName}>
|
30
|
+
<ChevronRightIcon />
|
31
|
+
</div>
|
32
|
+
</MenubarPrimitive.SubTrigger>);
|
40
33
|
});
|
41
34
|
MenubarSubTrigger.displayName = 'MenubarSubTrigger';
|
package/dist/{components/Menubar/MenubarTrigger.js → lib/components/Menubar/MenubarTrigger.jsx}
RENAMED
@@ -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 MenubarPrimitive from '@radix-ui/react-menubar';
|
26
25
|
import { cva } from 'class-variance-authority';
|
27
|
-
import { cn } from 'utils/utils';
|
28
|
-
import { appearanceStyle, scalingVariants } from '
|
26
|
+
import { cn } from 'lib/utils/utils';
|
27
|
+
import { appearanceStyle, scalingVariants } from 'lib/constants';
|
29
28
|
import { useMenubarContext } from '.';
|
30
29
|
export var menubarTriggerVariants = cva("flex items-center justify-between gap-[2px] outline-none select-none leading-none py-1 px-3 font-medium", {
|
31
30
|
variants: {
|
@@ -52,6 +51,8 @@ export var MenubarTrigger = forwardRef(function (_a, ref) {
|
|
52
51
|
var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
|
53
52
|
var _b = useMenubarContext(), scaling = _b.scaling, size = _b.size, radius = _b.radius, _c = _b.color, color = _c === void 0 ? 'red' : _c, _d = _b.appearance, appearance = _d === void 0 ? 'ghost' : _d;
|
54
53
|
var triggerClassName = cn(menubarTriggerVariants({ scaling: scaling, size: size, radius: radius }), appearanceStyle(appearance, color), className);
|
55
|
-
return (
|
54
|
+
return (<MenubarPrimitive.Trigger ref={ref} className={triggerClassName} {...props}>
|
55
|
+
{children}
|
56
|
+
</MenubarPrimitive.Trigger>);
|
56
57
|
});
|
57
58
|
MenubarTrigger.displayName = 'MenubarTrigger';
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import * as MenubarPrimitive from '@radix-ui/react-menubar';
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
4
|
-
import { IColor } from 'types';
|
4
|
+
import { IColor } from 'lib/types';
|
5
5
|
import { menubarTriggerVariants } from './MenubarTrigger';
|
6
6
|
import { menubarItemVariants } from './MenubarItem';
|
7
7
|
export * from './MenubarMenu';
|
@@ -20,12 +20,11 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
20
20
|
}
|
21
21
|
return t;
|
22
22
|
};
|
23
|
-
import {
|
24
|
-
import { createContext, forwardRef, useContext, } from 'react';
|
23
|
+
import React, { createContext, forwardRef, useContext, } from 'react';
|
25
24
|
import * as MenubarPrimitive from '@radix-ui/react-menubar';
|
26
25
|
import { cva } from 'class-variance-authority';
|
27
|
-
import { cn } from 'utils/utils';
|
28
|
-
import { radiusVariants, scalingVariants } from '
|
26
|
+
import { cn } from 'lib/utils/utils';
|
27
|
+
import { radiusVariants, scalingVariants } from 'lib/constants';
|
29
28
|
export * from './MenubarMenu';
|
30
29
|
export * from './MenubarTrigger';
|
31
30
|
export * from './MenubarContent';
|
@@ -67,7 +66,11 @@ export var Menubar = forwardRef(function (_a, ref) {
|
|
67
66
|
var children = _a.children, className = _a.className, radius = _a.radius, scaling = _a.scaling, size = _a.size, _b = _a.color, color = _b === void 0 ? 'red' : _b, _c = _a.appearance, appearance = _c === void 0 ? 'ghost' : _c, _d = _a.itemAppearance, itemAppearance = _d === void 0 ? 'solid' : _d, props = __rest(_a, ["children", "className", "radius", "scaling", "size", "color", "appearance", "itemAppearance"]);
|
68
67
|
var contextValue = { radius: radius, size: size, scaling: scaling, color: color, appearance: appearance, itemAppearance: itemAppearance };
|
69
68
|
var menuClassName = cn(menubarVariants({ radius: radius, scaling: scaling, size: size }), appearance === 'solid' && "bg-".concat(color, "-9 dark:bg-$").concat(color, "Dark-9"), className);
|
70
|
-
return (
|
69
|
+
return (<MenubarContext.Provider value={contextValue}>
|
70
|
+
<MenubarPrimitive.Root ref={ref} className={menuClassName} {...props}>
|
71
|
+
{children}
|
72
|
+
</MenubarPrimitive.Root>
|
73
|
+
</MenubarContext.Provider>);
|
71
74
|
});
|
72
75
|
Menubar.displayName = 'Menubar';
|
73
76
|
export default Menubar;
|
@@ -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 NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
26
|
-
import { cn } from 'utils/utils';
|
25
|
+
import { cn } from 'lib/utils/utils';
|
27
26
|
import { cva } from 'class-variance-authority';
|
28
|
-
import { radiusVariants } from '
|
27
|
+
import { radiusVariants } from 'lib/constants';
|
29
28
|
import { useNavigationMenuContext } from '.';
|
30
29
|
export var navigationMenuContentVariants = cva("text-slate-12 dark:text-slateDark-12 bg-white dark:bg-slateDark-1 p-2", {
|
31
30
|
variants: {
|
@@ -43,6 +42,8 @@ export var navigationMenuContentVariants = cva("text-slate-12 dark:text-slateDar
|
|
43
42
|
export var NavigationMenuContent = forwardRef(function (_a, ref) {
|
44
43
|
var className = _a.className, children = _a.children, props = __rest(_a, ["className", "children"]);
|
45
44
|
var _b = useNavigationMenuContext(), radius = _b.radius, size = _b.size;
|
46
|
-
return (
|
45
|
+
return (<NavigationMenuPrimitive.Content ref={ref} className={cn("absolute top-0 left-0 w-full sm:w-auto\n data-[motion=from-start]:animate-enterFromLeft \n data-[motion=from-end]:animate-enterFromRight \n data-[motion=to-start]:animate-exitToLeft \n data-[motion=to-end]:animate-exitToRight", navigationMenuContentVariants({ radius: radius, size: size }), className)} {...props}>
|
46
|
+
{children}
|
47
|
+
</NavigationMenuPrimitive.Content>);
|
47
48
|
});
|
48
49
|
NavigationMenuContent.displayName = 'NavigationMenuContent';
|
@@ -0,0 +1,22 @@
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
2
|
+
var t = {};
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
4
|
+
t[p] = s[p];
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
8
|
+
t[p[i]] = s[p[i]];
|
9
|
+
}
|
10
|
+
return t;
|
11
|
+
};
|
12
|
+
import React, { forwardRef } from 'react';
|
13
|
+
import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
14
|
+
import { cn } from 'lib/utils/utils';
|
15
|
+
export var NavigationMenuIndicator = forwardRef(function (_a, ref) {
|
16
|
+
var className = _a.className, children = _a.children, props = __rest(_a, ["className", "children"]);
|
17
|
+
return (<NavigationMenuPrimitive.Indicator ref={ref} className={"flex z-[1] top-full h-[10px] items-end justify-center overflow-hidden\n data-[state=visible]:animate-fadeIn data-[state=hidden]:animate-fadeOut \n transition-[width,transform_250ms_ease]"} {...props}>
|
18
|
+
<div className={cn("relative top-[70%] h-[10px] w-[10px] rotate-[45deg] rounded-tl-[2px] \n bg-white dark:bg-slateDark-2 shadow-slate-4 shadow dark:shadow-slateDark-4", className)}/>
|
19
|
+
{children}
|
20
|
+
</NavigationMenuPrimitive.Indicator>);
|
21
|
+
});
|
22
|
+
NavigationMenuIndicator.displayName = 'NavigationMenuIndicator';
|
@@ -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 * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
26
14
|
export var NavigationMenuItem = forwardRef(function (_a, ref) {
|
27
15
|
var className = _a.className, children = _a.children, props = __rest(_a, ["className", "children"]);
|
28
|
-
return (
|
16
|
+
return (<NavigationMenuPrimitive.Item ref={ref} className={className} {...props}>
|
17
|
+
{children}
|
18
|
+
</NavigationMenuPrimitive.Item>);
|
29
19
|
});
|
30
20
|
NavigationMenuItem.displayName = 'NavigationMenuItem';
|
@@ -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 NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
26
|
-
import { cn } from 'utils/utils';
|
25
|
+
import { cn } from 'lib/utils/utils';
|
27
26
|
import { cva } from 'class-variance-authority';
|
28
|
-
import { appearanceStyle, radiusVariants, scalingVariants } from '
|
27
|
+
import { appearanceStyle, radiusVariants, scalingVariants } from 'lib/constants';
|
29
28
|
import { useNavigationMenuContext } from '.';
|
30
29
|
export var navigationMenuLinkVariants = cva("block select-none leading-none outline-none py-1 px-3 cursor-alias hover:underline font-medium", {
|
31
30
|
variants: {
|
@@ -46,6 +45,8 @@ export var NavigationMenuLink = forwardRef(function (_a, ref) {
|
|
46
45
|
var children = _a.children, className = _a.className, href = _a.href, props = __rest(_a, ["children", "className", "href"]);
|
47
46
|
var _b = useNavigationMenuContext(), scaling = _b.scaling, size = _b.size, radius = _b.radius, _c = _b.color, color = _c === void 0 ? 'red' : _c, _d = _b.appearance, appearance = _d === void 0 ? 'ghost' : _d;
|
48
47
|
var linkClassName = cn(navigationMenuLinkVariants({ scaling: scaling, size: size, radius: radius }), appearanceStyle(appearance, color), className);
|
49
|
-
return (
|
48
|
+
return (<NavigationMenuPrimitive.Link ref={ref} href={href} title={href} className={linkClassName} {...props}>
|
49
|
+
{children}
|
50
|
+
</NavigationMenuPrimitive.Link>);
|
50
51
|
});
|
51
52
|
NavigationMenuLink.displayName = 'NavigationMenuLink';
|