@lotte-innovate/ui-component-test 0.1.72 → 0.1.73
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/lib/Typography/Header/index.js +2 -55
- package/dist/lib/Typography/Header/index.js.map +1 -0
- package/dist/lib/Typography/Text/index.js +2 -44
- package/dist/lib/Typography/Text/index.js.map +1 -0
- package/dist/lib/color/alpha.js +2 -784
- package/dist/lib/color/alpha.js.map +1 -0
- package/dist/lib/color/constants.js +2 -296
- package/dist/lib/color/constants.js.map +1 -0
- package/dist/lib/color/light.js +2 -393
- package/dist/lib/color/light.js.map +1 -0
- package/dist/lib/components/Accordion/index.js +2 -64
- package/dist/lib/components/Accordion/index.js.map +1 -0
- package/dist/lib/components/AlertDialog/AlertDialogAction.js +2 -61
- package/dist/lib/components/AlertDialog/AlertDialogAction.js.map +1 -0
- package/dist/lib/components/AlertDialog/AlertDialogCancel.js +2 -60
- package/dist/lib/components/AlertDialog/AlertDialogCancel.js.map +1 -0
- package/dist/lib/components/AlertDialog/AlertDialogContent.js +2 -51
- package/dist/lib/components/AlertDialog/AlertDialogContent.js.map +1 -0
- package/dist/lib/components/AlertDialog/AlertDialogDescription.js +2 -47
- package/dist/lib/components/AlertDialog/AlertDialogDescription.js.map +1 -0
- package/dist/lib/components/AlertDialog/AlertDialogRoot.js +2 -46
- package/dist/lib/components/AlertDialog/AlertDialogRoot.js.map +1 -0
- package/dist/lib/components/AlertDialog/AlertDialogTitle.js +2 -47
- package/dist/lib/components/AlertDialog/AlertDialogTitle.js.map +1 -0
- package/dist/lib/components/AlertDialog/AlertDialogTrigger.js +2 -55
- package/dist/lib/components/AlertDialog/AlertDialogTrigger.js.map +1 -0
- package/dist/lib/components/AlertDialog/index.js +2 -17
- package/dist/lib/components/AlertDialog/index.js.map +1 -0
- package/dist/lib/components/AspectRatio/index.js +2 -42
- package/dist/lib/components/AspectRatio/index.js.map +1 -0
- package/dist/lib/components/Avatar/index.js +2 -58
- package/dist/lib/components/Avatar/index.js.map +1 -0
- package/dist/lib/components/Badge/index.js +2 -54
- package/dist/lib/components/Badge/index.js.map +1 -0
- package/dist/lib/components/BarChart/index.js +2 -63
- package/dist/lib/components/BarChart/index.js.map +1 -0
- package/dist/lib/components/BubbleChart/index.js +2 -73
- package/dist/lib/components/BubbleChart/index.js.map +1 -0
- package/dist/lib/components/Button/index.js +2 -56
- package/dist/lib/components/Button/index.js.map +1 -0
- package/dist/lib/components/Callout/CalloutIcon.js +2 -57
- package/dist/lib/components/Callout/CalloutIcon.js.map +1 -0
- package/dist/lib/components/Callout/CalloutRoot.js +2 -72
- package/dist/lib/components/Callout/CalloutRoot.js.map +1 -0
- package/dist/lib/components/Callout/CalloutText.js +2 -52
- package/dist/lib/components/Callout/CalloutText.js.map +1 -0
- package/dist/lib/components/Callout/index.js +2 -9
- package/dist/lib/components/Callout/index.js.map +1 -0
- package/dist/lib/components/Card/index.js +2 -64
- package/dist/lib/components/Card/index.js.map +1 -0
- package/dist/lib/components/Checkbox/index.js +2 -89
- package/dist/lib/components/Checkbox/index.js.map +1 -0
- package/dist/lib/components/CheckboxCard/index.js +2 -58
- package/dist/lib/components/CheckboxCard/index.js.map +1 -0
- package/dist/lib/components/CheckboxGroup/CheckboxGroupItem.js +2 -33
- package/dist/lib/components/CheckboxGroup/CheckboxGroupItem.js.map +1 -0
- package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.js +2 -34
- package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.js.map +1 -0
- package/dist/lib/components/CheckboxGroup/index.js +2 -4
- package/dist/lib/components/CheckboxGroup/index.js.map +1 -0
- package/dist/lib/components/ContextMenu/ContextMenuCheckboxItem.js +2 -42
- package/dist/lib/components/ContextMenu/ContextMenuCheckboxItem.js.map +1 -0
- package/dist/lib/components/ContextMenu/ContextMenuContent.js +2 -56
- package/dist/lib/components/ContextMenu/ContextMenuContent.js.map +1 -0
- package/dist/lib/components/ContextMenu/ContextMenuGroup.js +2 -30
- package/dist/lib/components/ContextMenu/ContextMenuGroup.js.map +1 -0
- package/dist/lib/components/ContextMenu/ContextMenuItem.js +2 -59
- package/dist/lib/components/ContextMenu/ContextMenuItem.js.map +1 -0
- package/dist/lib/components/ContextMenu/ContextMenuItemIndicator.js +2 -50
- package/dist/lib/components/ContextMenu/ContextMenuItemIndicator.js.map +1 -0
- package/dist/lib/components/ContextMenu/ContextMenuLabel.js +2 -48
- package/dist/lib/components/ContextMenu/ContextMenuLabel.js.map +1 -0
- package/dist/lib/components/ContextMenu/ContextMenuRadioGroup.js +2 -31
- package/dist/lib/components/ContextMenu/ContextMenuRadioGroup.js.map +1 -0
- package/dist/lib/components/ContextMenu/ContextMenuRadioItem.js +2 -44
- package/dist/lib/components/ContextMenu/ContextMenuRadioItem.js.map +1 -0
- package/dist/lib/components/ContextMenu/ContextMenuRoot.js +2 -42
- package/dist/lib/components/ContextMenu/ContextMenuRoot.js.map +1 -0
- package/dist/lib/components/ContextMenu/ContextMenuSeparator.js +2 -31
- package/dist/lib/components/ContextMenu/ContextMenuSeparator.js.map +1 -0
- package/dist/lib/components/ContextMenu/ContextMenuSubContent.js +2 -54
- package/dist/lib/components/ContextMenu/ContextMenuSubContent.js.map +1 -0
- package/dist/lib/components/ContextMenu/ContextMenuSubTrigger.js +2 -40
- package/dist/lib/components/ContextMenu/ContextMenuSubTrigger.js.map +1 -0
- package/dist/lib/components/ContextMenu/ContextMenuTrigger.js +2 -31
- package/dist/lib/components/ContextMenu/ContextMenuTrigger.js.map +1 -0
- package/dist/lib/components/ContextMenu/index.js +2 -29
- package/dist/lib/components/ContextMenu/index.js.map +1 -0
- package/dist/lib/components/DataList/DataListItem.js +2 -43
- package/dist/lib/components/DataList/DataListItem.js.map +1 -0
- package/dist/lib/components/DataList/DataListLabel.js +2 -49
- package/dist/lib/components/DataList/DataListLabel.js.map +1 -0
- package/dist/lib/components/DataList/DataListRoot.js +2 -54
- package/dist/lib/components/DataList/DataListRoot.js.map +1 -0
- package/dist/lib/components/DataList/DataListValue.js +2 -51
- package/dist/lib/components/DataList/DataListValue.js.map +1 -0
- package/dist/lib/components/DataList/index.js +2 -6
- package/dist/lib/components/DataList/index.js.map +1 -0
- package/dist/lib/components/Dialog/DialogAction.js +2 -59
- package/dist/lib/components/Dialog/DialogAction.js.map +1 -0
- package/dist/lib/components/Dialog/DialogCancel.js +2 -55
- package/dist/lib/components/Dialog/DialogCancel.js.map +1 -0
- package/dist/lib/components/Dialog/DialogContent.js +2 -57
- package/dist/lib/components/Dialog/DialogContent.js.map +1 -0
- package/dist/lib/components/Dialog/DialogDescription.js +2 -47
- package/dist/lib/components/Dialog/DialogDescription.js.map +1 -0
- package/dist/lib/components/Dialog/DialogRoot.js +2 -37
- package/dist/lib/components/Dialog/DialogRoot.js.map +1 -0
- package/dist/lib/components/Dialog/DialogSlot.js +2 -46
- package/dist/lib/components/Dialog/DialogSlot.js.map +1 -0
- package/dist/lib/components/Dialog/DialogTitle.js +2 -47
- package/dist/lib/components/Dialog/DialogTitle.js.map +1 -0
- package/dist/lib/components/Dialog/DialogTrigger.js +2 -30
- package/dist/lib/components/Dialog/DialogTrigger.js.map +1 -0
- package/dist/lib/components/Dialog/index.js +2 -19
- package/dist/lib/components/Dialog/index.js.map +1 -0
- package/dist/lib/components/DoughnutChart/index.js +2 -65
- package/dist/lib/components/DoughnutChart/index.js.map +1 -0
- package/dist/lib/components/DropdownMenu/DropdonMenuRadioGroup.js +2 -30
- package/dist/lib/components/DropdownMenu/DropdonMenuRadioGroup.js.map +1 -0
- package/dist/lib/components/DropdownMenu/DropdonMenuSubContent.js +2 -60
- package/dist/lib/components/DropdownMenu/DropdonMenuSubContent.js.map +1 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuCheckboxItem.js +2 -41
- package/dist/lib/components/DropdownMenu/DropdownMenuCheckboxItem.js.map +1 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuContent.js +2 -56
- package/dist/lib/components/DropdownMenu/DropdownMenuContent.js.map +1 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuItem.js +2 -58
- package/dist/lib/components/DropdownMenu/DropdownMenuItem.js.map +1 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.js +2 -48
- package/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.js.map +1 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuLable.js +2 -45
- package/dist/lib/components/DropdownMenu/DropdownMenuLable.js.map +1 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuRadioItem.js +2 -41
- package/dist/lib/components/DropdownMenu/DropdownMenuRadioItem.js.map +1 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuRoot.js +2 -38
- package/dist/lib/components/DropdownMenu/DropdownMenuRoot.js.map +1 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuSeparator.js +2 -31
- package/dist/lib/components/DropdownMenu/DropdownMenuSeparator.js.map +1 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuSub.js +2 -30
- package/dist/lib/components/DropdownMenu/DropdownMenuSub.js.map +1 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuSubTrigger.js +2 -40
- package/dist/lib/components/DropdownMenu/DropdownMenuSubTrigger.js.map +1 -0
- package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.js +2 -53
- package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.js.map +1 -0
- package/dist/lib/components/DropdownMenu/index.js +2 -29
- package/dist/lib/components/DropdownMenu/index.js.map +1 -0
- package/dist/lib/components/HoverCard/HoverCardContent.js +2 -61
- package/dist/lib/components/HoverCard/HoverCardContent.js.map +1 -0
- package/dist/lib/components/HoverCard/HoverCardRoot.js +2 -38
- package/dist/lib/components/HoverCard/HoverCardRoot.js.map +1 -0
- package/dist/lib/components/HoverCard/HoverCardTrigger.js +2 -30
- package/dist/lib/components/HoverCard/HoverCardTrigger.js.map +1 -0
- package/dist/lib/components/HoverCard/index.js +2 -9
- package/dist/lib/components/HoverCard/index.js.map +1 -0
- package/dist/lib/components/IconButton/index.js +2 -63
- package/dist/lib/components/IconButton/index.js.map +1 -0
- package/dist/lib/components/Inset/index.js +2 -50
- package/dist/lib/components/Inset/index.js.map +1 -0
- package/dist/lib/components/Label/index.js +2 -53
- package/dist/lib/components/Label/index.js.map +1 -0
- package/dist/lib/components/LineChart/index.js +2 -61
- package/dist/lib/components/LineChart/index.js.map +1 -0
- package/dist/lib/components/Menubar/MenubarCheckboxItem.js +2 -38
- package/dist/lib/components/Menubar/MenubarCheckboxItem.js.map +1 -0
- package/dist/lib/components/Menubar/MenubarContent.js +2 -60
- package/dist/lib/components/Menubar/MenubarContent.js.map +1 -0
- package/dist/lib/components/Menubar/MenubarItem.js +2 -54
- package/dist/lib/components/Menubar/MenubarItem.js.map +1 -0
- package/dist/lib/components/Menubar/MenubarItemIndicator.js +2 -49
- package/dist/lib/components/Menubar/MenubarItemIndicator.js.map +1 -0
- package/dist/lib/components/Menubar/MenubarMenu.js +2 -30
- package/dist/lib/components/Menubar/MenubarMenu.js.map +1 -0
- package/dist/lib/components/Menubar/MenubarRadioGroup.js +2 -31
- package/dist/lib/components/Menubar/MenubarRadioGroup.js.map +1 -0
- package/dist/lib/components/Menubar/MenubarRadioItem.js +2 -40
- package/dist/lib/components/Menubar/MenubarRadioItem.js.map +1 -0
- package/dist/lib/components/Menubar/MenubarRoot.js +2 -61
- package/dist/lib/components/Menubar/MenubarRoot.js.map +1 -0
- package/dist/lib/components/Menubar/MenubarSeparator.js +2 -31
- package/dist/lib/components/Menubar/MenubarSeparator.js.map +1 -0
- package/dist/lib/components/Menubar/MenubarSub.js +2 -30
- package/dist/lib/components/Menubar/MenubarSub.js.map +1 -0
- package/dist/lib/components/Menubar/MenubarSubContent.js +2 -51
- package/dist/lib/components/Menubar/MenubarSubContent.js.map +1 -0
- package/dist/lib/components/Menubar/MenubarSubTrigger.js +2 -41
- package/dist/lib/components/Menubar/MenubarSubTrigger.js.map +1 -0
- package/dist/lib/components/Menubar/MenubarTrigger.js +2 -57
- package/dist/lib/components/Menubar/MenubarTrigger.js.map +1 -0
- package/dist/lib/components/Menubar/index.js +2 -29
- package/dist/lib/components/Menubar/index.js.map +1 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuContent.js +2 -48
- package/dist/lib/components/NavigationMenu/NavigationMenuContent.js.map +1 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.js +2 -31
- package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.js.map +1 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuItem.js +2 -30
- package/dist/lib/components/NavigationMenu/NavigationMenuItem.js.map +1 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuLink.js +2 -51
- package/dist/lib/components/NavigationMenu/NavigationMenuLink.js.map +1 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuList.js +2 -47
- package/dist/lib/components/NavigationMenu/NavigationMenuList.js.map +1 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuRoot.js +2 -43
- package/dist/lib/components/NavigationMenu/NavigationMenuRoot.js.map +1 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuTrigger.js +2 -58
- package/dist/lib/components/NavigationMenu/NavigationMenuTrigger.js.map +1 -0
- package/dist/lib/components/NavigationMenu/NavigationMenuViewport.js +2 -53
- package/dist/lib/components/NavigationMenu/NavigationMenuViewport.js.map +1 -0
- package/dist/lib/components/NavigationMenu/index.js +2 -10
- package/dist/lib/components/NavigationMenu/index.js.map +1 -0
- package/dist/lib/components/PieChart/index.js +2 -65
- package/dist/lib/components/PieChart/index.js.map +1 -0
- package/dist/lib/components/Popover/PopoverClose.js +2 -48
- package/dist/lib/components/Popover/PopoverClose.js.map +1 -0
- package/dist/lib/components/Popover/PopoverContent.js +2 -65
- package/dist/lib/components/Popover/PopoverContent.js.map +1 -0
- package/dist/lib/components/Popover/PopoverRoot.js +2 -36
- package/dist/lib/components/Popover/PopoverRoot.js.map +1 -0
- package/dist/lib/components/Popover/PopoverTrigger.js +2 -30
- package/dist/lib/components/Popover/PopoverTrigger.js.map +1 -0
- package/dist/lib/components/Popover/index.js +2 -11
- package/dist/lib/components/Popover/index.js.map +1 -0
- package/dist/lib/components/Progress/index.js +2 -56
- package/dist/lib/components/Progress/index.js.map +1 -0
- package/dist/lib/components/RadarChart/index.js +2 -76
- package/dist/lib/components/RadarChart/index.js.map +1 -0
- package/dist/lib/components/Radio/index.js +2 -53
- package/dist/lib/components/Radio/index.js.map +1 -0
- package/dist/lib/components/RadioCards/RadioCardsItem.js +2 -54
- package/dist/lib/components/RadioCards/RadioCardsItem.js.map +1 -0
- package/dist/lib/components/RadioCards/RadioCardsRoot.js +2 -46
- package/dist/lib/components/RadioCards/RadioCardsRoot.js.map +1 -0
- package/dist/lib/components/RadioCards/index.js +2 -7
- package/dist/lib/components/RadioCards/index.js.map +1 -0
- package/dist/lib/components/RadioGroup/RadioGroupItem.js +2 -46
- package/dist/lib/components/RadioGroup/RadioGroupItem.js.map +1 -0
- package/dist/lib/components/RadioGroup/RadioGroupRoot.js +2 -53
- package/dist/lib/components/RadioGroup/RadioGroupRoot.js.map +1 -0
- package/dist/lib/components/RadioGroup/index.js +2 -7
- package/dist/lib/components/RadioGroup/index.js.map +1 -0
- package/dist/lib/components/ScrollArea/index.js +2 -36
- package/dist/lib/components/ScrollArea/index.js.map +1 -0
- package/dist/lib/components/SegmentedControl/SegmentedControlItem.js +2 -35
- package/dist/lib/components/SegmentedControl/SegmentedControlItem.js.map +1 -0
- package/dist/lib/components/SegmentedControl/SegmentedControlRoot.js +2 -47
- package/dist/lib/components/SegmentedControl/SegmentedControlRoot.js.map +1 -0
- package/dist/lib/components/SegmentedControl/index.js +2 -7
- package/dist/lib/components/SegmentedControl/index.js.map +1 -0
- package/dist/lib/components/Select/index.js +2 -92
- package/dist/lib/components/Select/index.js.map +1 -0
- package/dist/lib/components/Separator/index.js +2 -47
- package/dist/lib/components/Separator/index.js.map +1 -0
- package/dist/lib/components/Skeleton/index.js +2 -42
- package/dist/lib/components/Skeleton/index.js.map +1 -0
- package/dist/lib/components/Slider/index.js +2 -49
- package/dist/lib/components/Slider/index.js.map +1 -0
- package/dist/lib/components/Spinner/index.js +2 -47
- package/dist/lib/components/Spinner/index.js.map +1 -0
- package/dist/lib/components/TabNav/index.js +2 -50
- package/dist/lib/components/TabNav/index.js.map +1 -0
- package/dist/lib/components/Table/index.js +2 -98
- package/dist/lib/components/Table/index.js.map +1 -0
- package/dist/lib/components/Tabs/index.js +2 -65
- package/dist/lib/components/Tabs/index.js.map +1 -0
- package/dist/lib/components/TextArea/index.js +2 -58
- package/dist/lib/components/TextArea/index.js.map +1 -0
- package/dist/lib/components/TextField/index.js +2 -56
- package/dist/lib/components/TextField/index.js.map +1 -0
- package/dist/lib/components/Toast/ToastActionButton.js +2 -67
- package/dist/lib/components/Toast/ToastActionButton.js.map +1 -0
- package/dist/lib/components/Toast/ToastDescription.js +2 -53
- package/dist/lib/components/Toast/ToastDescription.js.map +1 -0
- package/dist/lib/components/Toast/ToastRoot.js +2 -90
- package/dist/lib/components/Toast/ToastRoot.js.map +1 -0
- package/dist/lib/components/Toast/ToastTitle.js +2 -53
- package/dist/lib/components/Toast/ToastTitle.js.map +1 -0
- package/dist/lib/components/Toast/index.js +2 -11
- package/dist/lib/components/Toast/index.js.map +1 -0
- package/dist/lib/components/Toggle/ToggleWithText.js +2 -58
- package/dist/lib/components/Toggle/ToggleWithText.js.map +1 -0
- package/dist/lib/components/Toggle/index.js +2 -58
- package/dist/lib/components/Toggle/index.js.map +1 -0
- package/dist/lib/components/ToggleGroup/ToggleGroupItem.js +2 -54
- package/dist/lib/components/ToggleGroup/ToggleGroupItem.js.map +1 -0
- package/dist/lib/components/ToggleGroup/ToggleGroupRoot.js +2 -48
- package/dist/lib/components/ToggleGroup/ToggleGroupRoot.js.map +1 -0
- package/dist/lib/components/ToggleGroup/index.js +2 -7
- package/dist/lib/components/ToggleGroup/index.js.map +1 -0
- package/dist/lib/components/ToggleSwitch/index.js +2 -71
- package/dist/lib/components/ToggleSwitch/index.js.map +1 -0
- package/dist/lib/components/Tooltip/index.js +2 -49
- package/dist/lib/components/Tooltip/index.js.map +1 -0
- package/dist/lib/constants.js +2 -914
- package/dist/lib/constants.js.map +1 -0
- package/dist/lib/index.js +2 -3
- package/dist/lib/index.js.map +1 -0
- package/dist/lib/tsconfig.tsbuildinfo +1 -0
- package/dist/lib/utils/useDarkMode.js +2 -49
- package/dist/lib/utils/useDarkMode.js.map +1 -0
- package/dist/lib/utils/utils.js +2 -10
- package/dist/lib/utils/utils.js.map +1 -0
- package/package.json +8 -7
- package/dist/lib/Typography/Header/index.d.ts +0 -13
- package/dist/lib/Typography/Text/index.d.ts +0 -15
- package/dist/lib/Typography/index.d.ts +0 -2
- package/dist/lib/Typography/index.js +0 -2
- package/dist/lib/color/alpha.d.ts +0 -784
- package/dist/lib/color/constants.d.ts +0 -29
- package/dist/lib/color/dark.d.ts +0 -392
- package/dist/lib/color/dark.js +0 -392
- package/dist/lib/color/krdsColors.d.ts +0 -309
- package/dist/lib/color/krdsColors.js +0 -309
- package/dist/lib/color/light.d.ts +0 -392
- package/dist/lib/components/Accordion/index.d.ts +0 -22
- package/dist/lib/components/AlertDialog/AlertDialogAction.d.ts +0 -14
- package/dist/lib/components/AlertDialog/AlertDialogCancel.d.ts +0 -13
- package/dist/lib/components/AlertDialog/AlertDialogContent.d.ts +0 -11
- package/dist/lib/components/AlertDialog/AlertDialogDescription.d.ts +0 -10
- package/dist/lib/components/AlertDialog/AlertDialogRoot.d.ts +0 -16
- package/dist/lib/components/AlertDialog/AlertDialogTitle.d.ts +0 -10
- package/dist/lib/components/AlertDialog/AlertDialogTrigger.d.ts +0 -17
- package/dist/lib/components/AlertDialog/index.d.ts +0 -11
- package/dist/lib/components/AspectRatio/index.d.ts +0 -10
- package/dist/lib/components/Avatar/index.d.ts +0 -21
- package/dist/lib/components/Badge/index.d.ts +0 -18
- package/dist/lib/components/BarChart/index.d.ts +0 -37
- package/dist/lib/components/BubbleChart/index.d.ts +0 -28
- package/dist/lib/components/Button/index.d.ts +0 -16
- package/dist/lib/components/Callout/CalloutIcon.d.ts +0 -13
- package/dist/lib/components/Callout/CalloutRoot.d.ts +0 -18
- package/dist/lib/components/Callout/CalloutText.d.ts +0 -10
- package/dist/lib/components/Callout/index.d.ts +0 -7
- package/dist/lib/components/Card/index.d.ts +0 -14
- package/dist/lib/components/Checkbox/index.d.ts +0 -17
- package/dist/lib/components/CheckboxCard/index.d.ts +0 -20
- package/dist/lib/components/CheckboxGroup/CheckboxGroupItem.d.ts +0 -5
- package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.d.ts +0 -17
- package/dist/lib/components/CheckboxGroup/index.d.ts +0 -6
- package/dist/lib/components/ContextMenu/ContextMenuCheckboxItem.d.ts +0 -4
- package/dist/lib/components/ContextMenu/ContextMenuContent.d.ts +0 -11
- package/dist/lib/components/ContextMenu/ContextMenuGroup.d.ts +0 -4
- package/dist/lib/components/ContextMenu/ContextMenuItem.d.ts +0 -13
- package/dist/lib/components/ContextMenu/ContextMenuItemIndicator.d.ts +0 -10
- package/dist/lib/components/ContextMenu/ContextMenuLabel.d.ts +0 -11
- package/dist/lib/components/ContextMenu/ContextMenuRadioGroup.d.ts +0 -8
- package/dist/lib/components/ContextMenu/ContextMenuRadioItem.d.ts +0 -4
- package/dist/lib/components/ContextMenu/ContextMenuRoot.d.ts +0 -13
- package/dist/lib/components/ContextMenu/ContextMenuSeparator.d.ts +0 -3
- package/dist/lib/components/ContextMenu/ContextMenuSubContent.d.ts +0 -11
- package/dist/lib/components/ContextMenu/ContextMenuSubTrigger.d.ts +0 -4
- package/dist/lib/components/ContextMenu/ContextMenuTrigger.d.ts +0 -4
- package/dist/lib/components/ContextMenu/index.d.ts +0 -17
- package/dist/lib/components/DataList/DataListItem.d.ts +0 -9
- package/dist/lib/components/DataList/DataListLabel.d.ts +0 -10
- package/dist/lib/components/DataList/DataListRoot.d.ts +0 -14
- package/dist/lib/components/DataList/DataListValue.d.ts +0 -11
- package/dist/lib/components/DataList/index.d.ts +0 -8
- package/dist/lib/components/Dialog/DialogAction.d.ts +0 -13
- package/dist/lib/components/Dialog/DialogCancel.d.ts +0 -11
- package/dist/lib/components/Dialog/DialogContent.d.ts +0 -11
- package/dist/lib/components/Dialog/DialogDescription.d.ts +0 -9
- package/dist/lib/components/Dialog/DialogRoot.d.ts +0 -15
- package/dist/lib/components/Dialog/DialogSlot.d.ts +0 -9
- package/dist/lib/components/Dialog/DialogTitle.d.ts +0 -11
- package/dist/lib/components/Dialog/DialogTrigger.d.ts +0 -3
- package/dist/lib/components/Dialog/index.d.ts +0 -15
- package/dist/lib/components/DoughnutChart/index.d.ts +0 -22
- package/dist/lib/components/DropdownMenu/DropdonMenuRadioGroup.d.ts +0 -3
- package/dist/lib/components/DropdownMenu/DropdonMenuSubContent.d.ts +0 -11
- package/dist/lib/components/DropdownMenu/DropdownMenuCheckboxItem.d.ts +0 -7
- package/dist/lib/components/DropdownMenu/DropdownMenuContent.d.ts +0 -11
- package/dist/lib/components/DropdownMenu/DropdownMenuItem.d.ts +0 -15
- package/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.d.ts +0 -10
- package/dist/lib/components/DropdownMenu/DropdownMenuLable.d.ts +0 -10
- package/dist/lib/components/DropdownMenu/DropdownMenuRadioItem.d.ts +0 -6
- package/dist/lib/components/DropdownMenu/DropdownMenuRoot.d.ts +0 -15
- package/dist/lib/components/DropdownMenu/DropdownMenuSeparator.d.ts +0 -3
- package/dist/lib/components/DropdownMenu/DropdownMenuSub.d.ts +0 -3
- package/dist/lib/components/DropdownMenu/DropdownMenuSubTrigger.d.ts +0 -4
- package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.d.ts +0 -14
- package/dist/lib/components/DropdownMenu/index.d.ts +0 -20
- package/dist/lib/components/HoverCard/HoverCardContent.d.ts +0 -14
- package/dist/lib/components/HoverCard/HoverCardRoot.d.ts +0 -11
- package/dist/lib/components/HoverCard/HoverCardTrigger.d.ts +0 -3
- package/dist/lib/components/HoverCard/index.d.ts +0 -10
- package/dist/lib/components/IconButton/index.d.ts +0 -15
- package/dist/lib/components/Inset/index.d.ts +0 -10
- package/dist/lib/components/Label/index.d.ts +0 -17
- package/dist/lib/components/LineChart/index.d.ts +0 -43
- package/dist/lib/components/Menubar/MenubarCheckboxItem.d.ts +0 -4
- package/dist/lib/components/Menubar/MenubarContent.d.ts +0 -11
- package/dist/lib/components/Menubar/MenubarItem.d.ts +0 -13
- package/dist/lib/components/Menubar/MenubarItemIndicator.d.ts +0 -10
- package/dist/lib/components/Menubar/MenubarMenu.d.ts +0 -5
- package/dist/lib/components/Menubar/MenubarRadioGroup.d.ts +0 -8
- package/dist/lib/components/Menubar/MenubarRadioItem.d.ts +0 -4
- package/dist/lib/components/Menubar/MenubarRoot.d.ts +0 -19
- package/dist/lib/components/Menubar/MenubarSeparator.d.ts +0 -3
- package/dist/lib/components/Menubar/MenubarSub.d.ts +0 -3
- package/dist/lib/components/Menubar/MenubarSubContent.d.ts +0 -10
- package/dist/lib/components/Menubar/MenubarSubTrigger.d.ts +0 -4
- package/dist/lib/components/Menubar/MenubarTrigger.d.ts +0 -12
- package/dist/lib/components/Menubar/index.d.ts +0 -19
- package/dist/lib/components/NavigationMenu/NavigationMenuContent.d.ts +0 -11
- package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.d.ts +0 -3
- package/dist/lib/components/NavigationMenu/NavigationMenuItem.d.ts +0 -3
- package/dist/lib/components/NavigationMenu/NavigationMenuLink.d.ts +0 -13
- package/dist/lib/components/NavigationMenu/NavigationMenuList.d.ts +0 -12
- package/dist/lib/components/NavigationMenu/NavigationMenuRoot.d.ts +0 -14
- package/dist/lib/components/NavigationMenu/NavigationMenuTrigger.d.ts +0 -13
- package/dist/lib/components/NavigationMenu/NavigationMenuViewport.d.ts +0 -12
- package/dist/lib/components/NavigationMenu/index.d.ts +0 -12
- package/dist/lib/components/PieChart/index.d.ts +0 -22
- package/dist/lib/components/Popover/PopoverClose.d.ts +0 -9
- package/dist/lib/components/Popover/PopoverContent.d.ts +0 -11
- package/dist/lib/components/Popover/PopoverRoot.d.ts +0 -12
- package/dist/lib/components/Popover/PopoverTrigger.d.ts +0 -3
- package/dist/lib/components/Popover/index.d.ts +0 -11
- package/dist/lib/components/Progress/index.d.ts +0 -13
- package/dist/lib/components/RadarChart/index.d.ts +0 -32
- package/dist/lib/components/Radio/index.d.ts +0 -13
- package/dist/lib/components/RadioCards/RadioCardsItem.d.ts +0 -10
- package/dist/lib/components/RadioCards/RadioCardsRoot.d.ts +0 -13
- package/dist/lib/components/RadioCards/index.d.ts +0 -6
- package/dist/lib/components/RadioGroup/RadioGroupItem.d.ts +0 -13
- package/dist/lib/components/RadioGroup/RadioGroupRoot.d.ts +0 -15
- package/dist/lib/components/RadioGroup/index.d.ts +0 -6
- package/dist/lib/components/ScrollArea/index.d.ts +0 -9
- package/dist/lib/components/SegmentedControl/SegmentedControlItem.d.ts +0 -6
- package/dist/lib/components/SegmentedControl/SegmentedControlRoot.d.ts +0 -14
- package/dist/lib/components/SegmentedControl/index.d.ts +0 -6
- package/dist/lib/components/Select/index.d.ts +0 -34
- package/dist/lib/components/Separator/index.d.ts +0 -11
- package/dist/lib/components/Skeleton/index.d.ts +0 -14
- package/dist/lib/components/Slider/index.d.ts +0 -14
- package/dist/lib/components/Spinner/index.d.ts +0 -15
- package/dist/lib/components/TabNav/index.d.ts +0 -15
- package/dist/lib/components/Table/index.d.ts +0 -30
- package/dist/lib/components/Tabs/index.d.ts +0 -22
- package/dist/lib/components/TextArea/index.d.ts +0 -16
- package/dist/lib/components/TextField/index.d.ts +0 -21
- package/dist/lib/components/Toast/ToastActionButton.d.ts +0 -14
- package/dist/lib/components/Toast/ToastDescription.d.ts +0 -13
- package/dist/lib/components/Toast/ToastRoot.d.ts +0 -27
- package/dist/lib/components/Toast/ToastTitle.d.ts +0 -13
- package/dist/lib/components/Toast/index.d.ts +0 -8
- package/dist/lib/components/Toggle/ToggleWithText.d.ts +0 -21
- package/dist/lib/components/Toggle/index.d.ts +0 -21
- package/dist/lib/components/ToggleGroup/ToggleGroupItem.d.ts +0 -17
- package/dist/lib/components/ToggleGroup/ToggleGroupRoot.d.ts +0 -15
- package/dist/lib/components/ToggleGroup/index.d.ts +0 -6
- package/dist/lib/components/ToggleSwitch/index.d.ts +0 -13
- package/dist/lib/components/Tooltip/index.d.ts +0 -19
- package/dist/lib/components/index.d.ts +0 -50
- package/dist/lib/components/index.js +0 -52
- package/dist/lib/constants.d.ts +0 -655
- package/dist/lib/index.d.ts +0 -3
- package/dist/lib/types.d.ts +0 -81
- package/dist/lib/types.js +0 -1
- package/dist/lib/utils/useDarkMode.d.ts +0 -1
- package/dist/lib/utils/utils.d.ts +0 -2
- /package/dist/{globals.css → lib/globals.css} +0 -0
- /package/dist/{tailwind.config.d.ts → lib/tailwind.config.d.ts} +0 -0
- /package/dist/{tailwind.config.js → lib/tailwind.config.js} +0 -0
@@ -1,30 +1,2 @@
|
|
1
|
-
var
|
2
|
-
|
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
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
13
|
-
var t = {};
|
14
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
15
|
-
t[p] = s[p];
|
16
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
17
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
18
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
19
|
-
t[p[i]] = s[p[i]];
|
20
|
-
}
|
21
|
-
return t;
|
22
|
-
};
|
23
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
24
|
-
import { forwardRef } from 'react';
|
25
|
-
import * as MenubarPrimitive from '@radix-ui/react-menubar';
|
26
|
-
export var MenubarSub = forwardRef(function (_a, ref) {
|
27
|
-
var children = _a.children, props = __rest(_a, ["children"]);
|
28
|
-
return _jsx(MenubarPrimitive.Sub, __assign({}, props, { children: children }));
|
29
|
-
});
|
30
|
-
MenubarSub.displayName = 'Menubar.Sub';
|
1
|
+
import{j as r}from"../../../../_virtual/jsx-runtime.js";import{forwardRef as t}from"react";import{Sub as e}from"../../../../node_modules/@radix-ui/react-menubar/dist/index.mjs.js";var n=function(){return n=Object.assign||function(r){for(var t,e=1,n=arguments.length;e<n;e++)for(var o in t=arguments[e])Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o]);return r},n.apply(this,arguments)},o=function(r,t){var e={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&t.indexOf(n)<0&&(e[n]=r[n]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(r);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(r,n[o])&&(e[n[o]]=r[n[o]])}return e},a=t((function(t,a){var i=t.children,l=o(t,["children"]);return r.jsx(e,n({},l,{children:i}))}));a.displayName="Menubar.Sub";export{a as MenubarSub};
|
2
|
+
//# sourceMappingURL=MenubarSub.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"MenubarSub.js","sources":["../../../../lib/components/Menubar/MenubarSub.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { forwardRef } from 'react';\nimport * as MenubarPrimitive from '@radix-ui/react-menubar';\nexport var MenubarSub = forwardRef(function (_a, ref) {\n var children = _a.children, props = __rest(_a, [\"children\"]);\n return _jsx(MenubarPrimitive.Sub, __assign({}, props, { children: children }));\n});\nMenubarSub.displayName = 'Menubar.Sub';\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","MenubarSub","forwardRef","_a","ref","children","props","_jsx","jsx","MenubarPrimitive.Sub","displayName"],"mappings":"oLAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,mBAAjCH,OAAOiB,sBACtB,KAAIb,EAAI,EAAb,IAAgBI,EAAIR,OAAOiB,sBAAsBd,GAAIC,EAAII,EAAED,OAAQH,IAC3DW,EAAEC,QAAQR,EAAEJ,IAAM,GAAKJ,OAAOS,UAAUS,qBAAqBP,KAAKR,EAAGK,EAAEJ,MACvEF,EAAEM,EAAEJ,IAAMD,EAAEK,EAAEJ,IAF4B,CAItD,OAAOF,CACX,EAIWiB,EAAaC,GAAW,SAAUC,EAAIC,GAC7C,IAAIC,EAAWF,EAAGE,SAAUC,EAAQV,EAAOO,EAAI,CAAC,aAChD,OAAOI,EAAIC,IAACC,EAAsB5B,EAAS,CAAE,EAAEyB,EAAO,CAAED,SAAUA,IACtE,IACAJ,EAAWS,YAAc"}
|
@@ -1,51 +1,2 @@
|
|
1
|
-
var
|
2
|
-
|
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
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
13
|
-
var t = {};
|
14
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
15
|
-
t[p] = s[p];
|
16
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
17
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
18
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
19
|
-
t[p[i]] = s[p[i]];
|
20
|
-
}
|
21
|
-
return t;
|
22
|
-
};
|
23
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
24
|
-
import { forwardRef } from 'react';
|
25
|
-
import * as MenubarPrimitive from '@radix-ui/react-menubar';
|
26
|
-
import { cva } from 'class-variance-authority';
|
27
|
-
import { cn } from '../../../lib/utils/utils';
|
28
|
-
import { radiusVariants } from '../../../lib/constants';
|
29
|
-
import { useMenubarContext } from './MenubarRoot';
|
30
|
-
export var menubarSubContentVariants = cva("p-[5px] w-fit 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
|
-
variants: {
|
32
|
-
radius: __assign({}, radiusVariants['extra-large']),
|
33
|
-
size: {
|
34
|
-
small: 'p-1 min-w-[120px]',
|
35
|
-
medium: 'p-2 min-w-[136px]',
|
36
|
-
},
|
37
|
-
},
|
38
|
-
defaultVariants: {
|
39
|
-
radius: 'small',
|
40
|
-
size: 'medium',
|
41
|
-
},
|
42
|
-
});
|
43
|
-
export var MenubarSubContent = forwardRef(function (_a, ref) {
|
44
|
-
var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
|
45
|
-
var _b = useMenubarContext(), radius = _b.radius, size = _b.size;
|
46
|
-
return (_jsx(MenubarPrimitive.SubContent, __assign({ ref: ref, className: cn(menubarSubContentVariants({
|
47
|
-
radius: radius,
|
48
|
-
size: size,
|
49
|
-
}), className), alignOffset: -5 }, props, { children: children })));
|
50
|
-
});
|
51
|
-
MenubarSubContent.displayName = 'Menubar.SubContent';
|
1
|
+
import{j as r}from"../../../../_virtual/jsx-runtime.js";import{forwardRef as t}from"react";import{SubContent as e}from"../../../../node_modules/@radix-ui/react-menubar/dist/index.mjs.js";import{cva as a}from"../../../../node_modules/class-variance-authority/dist/index.mjs.js";import{cn as i}from"../../utils/utils.js";import{radiusVariants as n}from"../../constants.js";import{useMenubarContext as o}from"./MenubarRoot.js";var s=function(){return s=Object.assign||function(r){for(var t,e=1,a=arguments.length;e<a;e++)for(var i in t=arguments[e])Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i]);return r},s.apply(this,arguments)},m=function(r,t){var e={};for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&t.indexOf(a)<0&&(e[a]=r[a]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(r);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(r,a[i])&&(e[a[i]]=r[a[i]])}return e},p=a("p-[5px] w-fit 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)]",{variants:{radius:s({},n["extra-large"]),size:{small:"p-1 min-w-[120px]",medium:"p-2 min-w-[136px]"}},defaultVariants:{radius:"small",size:"medium"}}),l=t((function(t,a){var n=t.children,l=t.className,u=m(t,["children","className"]),c=o(),f=c.radius,d=c.size;return r.jsx(e,s({ref:a,className:i(p({radius:f,size:d}),l),alignOffset:-5},u,{children:n}))}));l.displayName="Menubar.SubContent";export{l as MenubarSubContent,p as menubarSubContentVariants};
|
2
|
+
//# sourceMappingURL=MenubarSubContent.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"MenubarSubContent.js","sources":["../../../../lib/components/Menubar/MenubarSubContent.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { forwardRef } from 'react';\nimport * as MenubarPrimitive from '@radix-ui/react-menubar';\nimport { cva } from 'class-variance-authority';\nimport { cn } from '../../../lib/utils/utils';\nimport { radiusVariants } from '../../../lib/constants';\nimport { useMenubarContext } from './MenubarRoot';\nexport var menubarSubContentVariants = cva(\"p-[5px] w-fit 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)]\", {\n variants: {\n radius: __assign({}, radiusVariants['extra-large']),\n size: {\n small: 'p-1 min-w-[120px]',\n medium: 'p-2 min-w-[136px]',\n },\n },\n defaultVariants: {\n radius: 'small',\n size: 'medium',\n },\n});\nexport var MenubarSubContent = forwardRef(function (_a, ref) {\n var children = _a.children, className = _a.className, props = __rest(_a, [\"children\", \"className\"]);\n var _b = useMenubarContext(), radius = _b.radius, size = _b.size;\n return (_jsx(MenubarPrimitive.SubContent, __assign({ ref: ref, className: cn(menubarSubContentVariants({\n radius: radius,\n size: size,\n }), className), alignOffset: -5 }, props, { children: children })));\n});\nMenubarSubContent.displayName = 'Menubar.SubContent';\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","menubarSubContentVariants","cva","variants","radius","radiusVariants","size","small","medium","defaultVariants","MenubarSubContent","forwardRef","_a","ref","children","className","props","_b","useMenubarContext","_jsx","jsx","MenubarPrimitive.SubContent","cn","alignOffset","displayName"],"mappings":"waAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,mBAAjCH,OAAOiB,sBACtB,KAAIb,EAAI,EAAb,IAAgBI,EAAIR,OAAOiB,sBAAsBd,GAAIC,EAAII,EAAED,OAAQH,IAC3DW,EAAEC,QAAQR,EAAEJ,IAAM,GAAKJ,OAAOS,UAAUS,qBAAqBP,KAAKR,EAAGK,EAAEJ,MACvEF,EAAEM,EAAEJ,IAAMD,EAAEK,EAAEJ,IAF4B,CAItD,OAAOF,CACX,EAQWiB,EAA4BC,EAAI,0QAA2Q,CAClTC,SAAU,CACNC,OAAQvB,EAAS,CAAA,EAAIwB,EAAe,gBACpCC,KAAM,CACFC,MAAO,oBACPC,OAAQ,sBAGhBC,gBAAiB,CACbL,OAAQ,QACRE,KAAM,YAGHI,EAAoBC,GAAW,SAAUC,EAAIC,GACpD,IAAIC,EAAWF,EAAGE,SAAUC,EAAYH,EAAGG,UAAWC,EAAQpB,EAAOgB,EAAI,CAAC,WAAY,cAClFK,EAAKC,IAAqBd,EAASa,EAAGb,OAAQE,EAAOW,EAAGX,KAC5D,OAAQa,EAAIC,IAACC,EAA6BxC,EAAS,CAAEgC,IAAKA,EAAKE,UAAWO,EAAGrB,EAA0B,CAC/FG,OAAQA,EACRE,KAAMA,IACNS,GAAYQ,aAAc,GAAKP,EAAO,CAAEF,SAAUA,IAC9D,IACAJ,EAAkBc,YAAc"}
|
@@ -1,41 +1,2 @@
|
|
1
|
-
var
|
2
|
-
|
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
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
13
|
-
var t = {};
|
14
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
15
|
-
t[p] = s[p];
|
16
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
17
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
18
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
19
|
-
t[p[i]] = s[p[i]];
|
20
|
-
}
|
21
|
-
return t;
|
22
|
-
};
|
23
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
24
|
-
import { forwardRef } from 'react';
|
25
|
-
import * as MenubarPrimitive from '@radix-ui/react-menubar';
|
26
|
-
import { ChevronRightIcon } from '@radix-ui/react-icons';
|
27
|
-
import { cn } from '../../../lib/utils/utils';
|
28
|
-
import { blackText, menuItemAppearanceStyle } from '../../../lib/constants';
|
29
|
-
import { menubarItemVariants } from './MenubarItem';
|
30
|
-
import { useMenubarContext } from './MenubarRoot';
|
31
|
-
export var MenubarSubTrigger = forwardRef(function (_a, ref) {
|
32
|
-
var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
|
33
|
-
var _b = useMenubarContext(), scaling = _b.scaling, size = _b.size, radius = _b.radius, _c = _b.color, color = _c === void 0 ? 'red' : _c, _d = _b.itemAppearance, itemAppearance = _d === void 0 ? 'solid' : _d;
|
34
|
-
var triggerClassName = cn(menubarItemVariants({ scaling: scaling, size: size, radius: radius }), menuItemAppearanceStyle(itemAppearance, color), className);
|
35
|
-
var iconClassName = 'ml-auto pl-5 group-hover:text-slateA-11 dark:group-hover:text-slateDarkA-11';
|
36
|
-
if (itemAppearance === 'solid' && !blackText.includes(color)) {
|
37
|
-
iconClassName = 'group-hover:text-white dark:group-hover:text-slateDark-1';
|
38
|
-
}
|
39
|
-
return (_jsxs(MenubarPrimitive.SubTrigger, __assign({ ref: ref, className: triggerClassName }, props, { children: [children, _jsx("div", { className: iconClassName, children: _jsx(ChevronRightIcon, {}) })] })));
|
40
|
-
});
|
41
|
-
MenubarSubTrigger.displayName = 'Menubar.SubTrigger';
|
1
|
+
import{j as r}from"../../../../_virtual/jsx-runtime.js";import{forwardRef as e}from"react";import{SubTrigger as t}from"../../../../node_modules/@radix-ui/react-menubar/dist/index.mjs.js";import{ChevronRightIcon as o}from"../../../../node_modules/@radix-ui/react-icons/dist/react-icons.esm.js";import{cn as s}from"../../utils/utils.js";import{menuItemAppearanceStyle as i,blackText as a}from"../../constants.js";import{menubarItemVariants as n}from"./MenubarItem.js";import{useMenubarContext as l}from"./MenubarRoot.js";var c=function(){return c=Object.assign||function(r){for(var e,t=1,o=arguments.length;t<o;t++)for(var s in e=arguments[t])Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r},c.apply(this,arguments)},m=function(r,e){var t={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&e.indexOf(o)<0&&(t[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(o=Object.getOwnPropertySymbols(r);s<o.length;s++)e.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(r,o[s])&&(t[o[s]]=r[o[s]])}return t},u=e((function(e,u){var p=e.children,d=e.className,f=m(e,["children","className"]),j=l(),b=j.scaling,g=j.size,v=j.radius,h=j.color,x=void 0===h?"red":h,y=j.itemAppearance,O=void 0===y?"solid":y,w=s(n({scaling:b,size:g,radius:v}),i(O,x),d),N="ml-auto pl-5 group-hover:text-slateA-11 dark:group-hover:text-slateDarkA-11";return"solid"!==O||a.includes(x)||(N="group-hover:text-white dark:group-hover:text-slateDark-1"),r.jsxs(t,c({ref:u,className:w},f,{children:[p,r.jsx("div",{className:N,children:r.jsx(o,{})})]}))}));u.displayName="Menubar.SubTrigger";export{u as MenubarSubTrigger};
|
2
|
+
//# sourceMappingURL=MenubarSubTrigger.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"MenubarSubTrigger.js","sources":["../../../../lib/components/Menubar/MenubarSubTrigger.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { forwardRef } from 'react';\nimport * as MenubarPrimitive from '@radix-ui/react-menubar';\nimport { ChevronRightIcon } from '@radix-ui/react-icons';\nimport { cn } from '../../../lib/utils/utils';\nimport { blackText, menuItemAppearanceStyle } from '../../../lib/constants';\nimport { menubarItemVariants } from './MenubarItem';\nimport { useMenubarContext } from './MenubarRoot';\nexport var MenubarSubTrigger = forwardRef(function (_a, ref) {\n var children = _a.children, className = _a.className, props = __rest(_a, [\"children\", \"className\"]);\n var _b = useMenubarContext(), scaling = _b.scaling, size = _b.size, radius = _b.radius, _c = _b.color, color = _c === void 0 ? 'red' : _c, _d = _b.itemAppearance, itemAppearance = _d === void 0 ? 'solid' : _d;\n var triggerClassName = cn(menubarItemVariants({ scaling: scaling, size: size, radius: radius }), menuItemAppearanceStyle(itemAppearance, color), className);\n var iconClassName = 'ml-auto pl-5 group-hover:text-slateA-11 dark:group-hover:text-slateDarkA-11';\n if (itemAppearance === 'solid' && !blackText.includes(color)) {\n iconClassName = 'group-hover:text-white dark:group-hover:text-slateDark-1';\n }\n return (_jsxs(MenubarPrimitive.SubTrigger, __assign({ ref: ref, className: triggerClassName }, props, { children: [children, _jsx(\"div\", { className: iconClassName, children: _jsx(ChevronRightIcon, {}) })] })));\n});\nMenubarSubTrigger.displayName = 'Menubar.SubTrigger';\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","MenubarSubTrigger","forwardRef","_a","ref","children","className","props","_b","useMenubarContext","scaling","size","radius","_c","color","_d","itemAppearance","triggerClassName","cn","menubarItemVariants","menuItemAppearanceStyle","iconClassName","blackText","includes","_jsxs","MenubarPrimitive.SubTrigger","_jsx","jsx","ChevronRightIcon","displayName"],"mappings":"ugBAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,mBAAjCH,OAAOiB,sBACtB,KAAIb,EAAI,EAAb,IAAgBI,EAAIR,OAAOiB,sBAAsBd,GAAIC,EAAII,EAAED,OAAQH,IAC3DW,EAAEC,QAAQR,EAAEJ,IAAM,GAAKJ,OAAOS,UAAUS,qBAAqBP,KAAKR,EAAGK,EAAEJ,MACvEF,EAAEM,EAAEJ,IAAMD,EAAEK,EAAEJ,IAF4B,CAItD,OAAOF,CACX,EASWiB,EAAoBC,GAAW,SAAUC,EAAIC,GACpD,IAAIC,EAAWF,EAAGE,SAAUC,EAAYH,EAAGG,UAAWC,EAAQX,EAAOO,EAAI,CAAC,WAAY,cAClFK,EAAKC,IAAqBC,EAAUF,EAAGE,QAASC,EAAOH,EAAGG,KAAMC,EAASJ,EAAGI,OAAQC,EAAKL,EAAGM,MAAOA,OAAe,IAAPD,EAAgB,MAAQA,EAAIE,EAAKP,EAAGQ,eAAgBA,OAAwB,IAAPD,EAAgB,QAAUA,EAC1ME,EAAmBC,EAAGC,EAAoB,CAAET,QAASA,EAASC,KAAMA,EAAMC,OAAQA,IAAWQ,EAAwBJ,EAAgBF,GAAQR,GAC7Ie,EAAgB,8EAIpB,MAHuB,UAAnBL,GAA+BM,EAAUC,SAAST,KAClDO,EAAgB,4DAEZG,OAAMC,EAA6B5C,EAAS,CAAEuB,IAAKA,EAAKE,UAAWW,GAAoBV,EAAO,CAAEF,SAAU,CAACA,EAAUqB,EAAIC,IAAC,MAAO,CAAErB,UAAWe,EAAehB,SAAUqB,EAAAA,IAAKE,EAAkB,SAC1M,IACA3B,EAAkB4B,YAAc"}
|
@@ -1,57 +1,2 @@
|
|
1
|
-
var
|
2
|
-
|
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
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
13
|
-
var t = {};
|
14
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
15
|
-
t[p] = s[p];
|
16
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
17
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
18
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
19
|
-
t[p[i]] = s[p[i]];
|
20
|
-
}
|
21
|
-
return t;
|
22
|
-
};
|
23
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
24
|
-
import { forwardRef } from 'react';
|
25
|
-
import * as MenubarPrimitive from '@radix-ui/react-menubar';
|
26
|
-
import { cva } from 'class-variance-authority';
|
27
|
-
import { cn } from '../../../lib/utils/utils';
|
28
|
-
import { appearanceStyle, scalingVariants } from '../../../lib/constants';
|
29
|
-
import { useMenubarContext } from './MenubarRoot';
|
30
|
-
export var menubarTriggerVariants = cva("flex items-center justify-between gap-[2px] outline-none select-none leading-none py-1 px-3 \n font-medium truncate w-fit", {
|
31
|
-
variants: {
|
32
|
-
size: {
|
33
|
-
small: 'text-xs',
|
34
|
-
medium: 'text-sm',
|
35
|
-
},
|
36
|
-
radius: {
|
37
|
-
none: 'rounded-none',
|
38
|
-
small: 'rounded-[1px]',
|
39
|
-
medium: 'rounded-sm',
|
40
|
-
large: 'rounded',
|
41
|
-
full: 'rounded-full',
|
42
|
-
},
|
43
|
-
scaling: __assign({}, scalingVariants),
|
44
|
-
},
|
45
|
-
defaultVariants: {
|
46
|
-
scaling: '100%',
|
47
|
-
size: 'medium',
|
48
|
-
radius: 'small',
|
49
|
-
},
|
50
|
-
});
|
51
|
-
export var MenubarTrigger = forwardRef(function (_a, ref) {
|
52
|
-
var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
|
53
|
-
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
|
-
var triggerClassName = cn(menubarTriggerVariants({ scaling: scaling, size: size, radius: radius }), appearanceStyle(appearance, color), className);
|
55
|
-
return (_jsx(MenubarPrimitive.Trigger, __assign({ ref: ref, className: triggerClassName }, props, { children: children })));
|
56
|
-
});
|
57
|
-
MenubarTrigger.displayName = 'Menubar.Trigger';
|
1
|
+
import{j as e}from"../../../../_virtual/jsx-runtime.js";import{forwardRef as r}from"react";import{Trigger as t}from"../../../../node_modules/@radix-ui/react-menubar/dist/index.mjs.js";import{cva as n}from"../../../../node_modules/class-variance-authority/dist/index.mjs.js";import{cn as o}from"../../utils/utils.js";import{scalingVariants as i,appearanceStyle as s}from"../../constants.js";import{useMenubarContext as a}from"./MenubarRoot.js";var l=function(){return l=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e},l.apply(this,arguments)},m=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(t[n[o]]=e[n[o]])}return t},u=n("flex items-center justify-between gap-[2px] outline-none select-none leading-none py-1 px-3 \n font-medium truncate w-fit",{variants:{size:{small:"text-xs",medium:"text-sm"},radius:{none:"rounded-none",small:"rounded-[1px]",medium:"rounded-sm",large:"rounded",full:"rounded-full"},scaling:l({},i)},defaultVariants:{scaling:"100%",size:"medium",radius:"small"}}),d=r((function(r,n){var i=r.children,d=r.className,c=m(r,["children","className"]),p=a(),f=p.scaling,j=p.size,y=p.radius,g=p.color,x=void 0===g?"red":g,b=p.appearance,v=void 0===b?"ghost":b,O=o(u({scaling:f,size:j,radius:y}),s(v,x),d);return e.jsx(t,l({ref:n,className:O},c,{children:i}))}));d.displayName="Menubar.Trigger";export{d as MenubarTrigger,u as menubarTriggerVariants};
|
2
|
+
//# sourceMappingURL=MenubarTrigger.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"MenubarTrigger.js","sources":["../../../../lib/components/Menubar/MenubarTrigger.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { forwardRef } from 'react';\nimport * as MenubarPrimitive from '@radix-ui/react-menubar';\nimport { cva } from 'class-variance-authority';\nimport { cn } from '../../../lib/utils/utils';\nimport { appearanceStyle, scalingVariants } from '../../../lib/constants';\nimport { useMenubarContext } from './MenubarRoot';\nexport var menubarTriggerVariants = cva(\"flex items-center justify-between gap-[2px] outline-none select-none leading-none py-1 px-3 \\n font-medium truncate w-fit\", {\n variants: {\n size: {\n small: 'text-xs',\n medium: 'text-sm',\n },\n radius: {\n none: 'rounded-none',\n small: 'rounded-[1px]',\n medium: 'rounded-sm',\n large: 'rounded',\n full: 'rounded-full',\n },\n scaling: __assign({}, scalingVariants),\n },\n defaultVariants: {\n scaling: '100%',\n size: 'medium',\n radius: 'small',\n },\n});\nexport var MenubarTrigger = forwardRef(function (_a, ref) {\n var children = _a.children, className = _a.className, props = __rest(_a, [\"children\", \"className\"]);\n 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;\n var triggerClassName = cn(menubarTriggerVariants({ scaling: scaling, size: size, radius: radius }), appearanceStyle(appearance, color), className);\n return (_jsx(MenubarPrimitive.Trigger, __assign({ ref: ref, className: triggerClassName }, props, { children: children })));\n});\nMenubarTrigger.displayName = 'Menubar.Trigger';\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","menubarTriggerVariants","cva","variants","size","small","medium","radius","none","large","full","scaling","scalingVariants","defaultVariants","MenubarTrigger","forwardRef","_a","ref","children","className","props","_b","useMenubarContext","_c","color","_d","appearance","triggerClassName","cn","appearanceStyle","_jsx","jsx","MenubarPrimitive.Trigger","displayName"],"mappings":"2bAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,mBAAjCH,OAAOiB,sBACtB,KAAIb,EAAI,EAAb,IAAgBI,EAAIR,OAAOiB,sBAAsBd,GAAIC,EAAII,EAAED,OAAQH,IAC3DW,EAAEC,QAAQR,EAAEJ,IAAM,GAAKJ,OAAOS,UAAUS,qBAAqBP,KAAKR,EAAGK,EAAEJ,MACvEF,EAAEM,EAAEJ,IAAMD,EAAEK,EAAEJ,IAF4B,CAItD,OAAOF,CACX,EAQWiB,EAAyBC,EAAI,+HAAgI,CACpKC,SAAU,CACNC,KAAM,CACFC,MAAO,UACPC,OAAQ,WAEZC,OAAQ,CACJC,KAAM,eACNH,MAAO,gBACPC,OAAQ,aACRG,MAAO,UACPC,KAAM,gBAEVC,QAAS9B,EAAS,CAAE,EAAE+B,IAE1BC,gBAAiB,CACbF,QAAS,OACTP,KAAM,SACNG,OAAQ,WAGLO,EAAiBC,GAAW,SAAUC,EAAIC,GACjD,IAAIC,EAAWF,EAAGE,SAAUC,EAAYH,EAAGG,UAAWC,EAAQxB,EAAOoB,EAAI,CAAC,WAAY,cAClFK,EAAKC,IAAqBX,EAAUU,EAAGV,QAASP,EAAOiB,EAAGjB,KAAMG,EAASc,EAAGd,OAAQgB,EAAKF,EAAGG,MAAOA,OAAe,IAAPD,EAAgB,MAAQA,EAAIE,EAAKJ,EAAGK,WAAYA,OAAoB,IAAPD,EAAgB,QAAUA,EAClME,EAAmBC,EAAG3B,EAAuB,CAAEU,QAASA,EAASP,KAAMA,EAAMG,OAAQA,IAAWsB,EAAgBH,EAAYF,GAAQL,GACxI,OAAQW,EAAIC,IAACC,EAA0BnD,EAAS,CAAEoC,IAAKA,EAAKE,UAAWQ,GAAoBP,EAAO,CAAEF,SAAUA,IAClH,IACAJ,EAAemB,YAAc"}
|
@@ -1,29 +1,2 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
import { MenubarTrigger as Trigger } from './MenubarTrigger';
|
4
|
-
import { MenubarContent as Content } from './MenubarContent';
|
5
|
-
import { MenubarItem as Item } from './MenubarItem';
|
6
|
-
import { MenubarSeparator as Separator } from './MenubarSeparator';
|
7
|
-
import { MenubarSub as Sub } from './MenubarSub';
|
8
|
-
import { MenubarSubTrigger as SubTrigger } from './MenubarSubTrigger';
|
9
|
-
import { MenubarSubContent as SubContent } from './MenubarSubContent';
|
10
|
-
import { MenubarCheckboxItem as CheckboxItem } from './MenubarCheckboxItem';
|
11
|
-
import { MenubarItemIndicator as ItemIndicator } from './MenubarItemIndicator';
|
12
|
-
import { MenubarRadioGroup as RadioGroup } from './MenubarRadioGroup';
|
13
|
-
import { MenubarRadioItem as RadioItem } from './MenubarRadioItem';
|
14
|
-
var Menubar = {
|
15
|
-
Root: Root,
|
16
|
-
Menu: Menu,
|
17
|
-
Trigger: Trigger,
|
18
|
-
Content: Content,
|
19
|
-
Item: Item,
|
20
|
-
Separator: Separator,
|
21
|
-
Sub: Sub,
|
22
|
-
SubTrigger: SubTrigger,
|
23
|
-
SubContent: SubContent,
|
24
|
-
CheckboxItem: CheckboxItem,
|
25
|
-
ItemIndicator: ItemIndicator,
|
26
|
-
RadioGroup: RadioGroup,
|
27
|
-
RadioItem: RadioItem,
|
28
|
-
};
|
29
|
-
export default Menubar;
|
1
|
+
import{MenubarRoot as r}from"./MenubarRoot.js";import{MenubarMenu as o}from"./MenubarMenu.js";import{MenubarTrigger as e}from"./MenubarTrigger.js";import{MenubarContent as t}from"./MenubarContent.js";import{MenubarItem as m}from"./MenubarItem.js";import{MenubarSeparator as a}from"./MenubarSeparator.js";import{MenubarSub as n}from"./MenubarSub.js";import{MenubarSubTrigger as u}from"./MenubarSubTrigger.js";import{MenubarSubContent as i}from"./MenubarSubContent.js";import{MenubarCheckboxItem as b}from"./MenubarCheckboxItem.js";import{MenubarItemIndicator as p}from"./MenubarItemIndicator.js";import{MenubarRadioGroup as M}from"./MenubarRadioGroup.js";import{MenubarRadioItem as f}from"./MenubarRadioItem.js";var s={Root:r,Menu:o,Trigger:e,Content:t,Item:m,Separator:a,Sub:n,SubTrigger:u,SubContent:i,CheckboxItem:b,ItemIndicator:p,RadioGroup:M,RadioItem:f};export{s as default};
|
2
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../lib/components/Menubar/index.js"],"sourcesContent":["import { MenubarRoot as Root } from './MenubarRoot';\nimport { MenubarMenu as Menu } from './MenubarMenu';\nimport { MenubarTrigger as Trigger } from './MenubarTrigger';\nimport { MenubarContent as Content } from './MenubarContent';\nimport { MenubarItem as Item } from './MenubarItem';\nimport { MenubarSeparator as Separator } from './MenubarSeparator';\nimport { MenubarSub as Sub } from './MenubarSub';\nimport { MenubarSubTrigger as SubTrigger } from './MenubarSubTrigger';\nimport { MenubarSubContent as SubContent } from './MenubarSubContent';\nimport { MenubarCheckboxItem as CheckboxItem } from './MenubarCheckboxItem';\nimport { MenubarItemIndicator as ItemIndicator } from './MenubarItemIndicator';\nimport { MenubarRadioGroup as RadioGroup } from './MenubarRadioGroup';\nimport { MenubarRadioItem as RadioItem } from './MenubarRadioItem';\nvar Menubar = {\n Root: Root,\n Menu: Menu,\n Trigger: Trigger,\n Content: Content,\n Item: Item,\n Separator: Separator,\n Sub: Sub,\n SubTrigger: SubTrigger,\n SubContent: SubContent,\n CheckboxItem: CheckboxItem,\n ItemIndicator: ItemIndicator,\n RadioGroup: RadioGroup,\n RadioItem: RadioItem,\n};\nexport default Menubar;\n"],"names":["Menubar","Root","Menu","Trigger","Content","Item","Separator","Sub","SubTrigger","SubContent","CheckboxItem","ItemIndicator","RadioGroup","RadioItem"],"mappings":"usBAaG,IAACA,EAAU,CACVC,KAAMA,EACNC,KAAMA,EACNC,QAASA,EACTC,QAASA,EACTC,KAAMA,EACNC,UAAWA,EACXC,IAAKA,EACLC,WAAYA,EACZC,WAAYA,EACZC,aAAcA,EACdC,cAAeA,EACfC,WAAYA,EACZC,UAAWA"}
|
@@ -1,48 +1,2 @@
|
|
1
|
-
var
|
2
|
-
|
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
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
13
|
-
var t = {};
|
14
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
15
|
-
t[p] = s[p];
|
16
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
17
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
18
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
19
|
-
t[p[i]] = s[p[i]];
|
20
|
-
}
|
21
|
-
return t;
|
22
|
-
};
|
23
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
24
|
-
import { forwardRef } from 'react';
|
25
|
-
import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
26
|
-
import { cn } from '../../../lib/utils/utils';
|
27
|
-
import { cva } from 'class-variance-authority';
|
28
|
-
import { radiusVariants } from '../../../lib/constants';
|
29
|
-
import { useNavigationMenuContext } from './NavigationMenuRoot';
|
30
|
-
export var navigationMenuContentVariants = cva("text-slate-12 dark:text-slateDark-12 bg-white dark:bg-slateDark-1 p-2 cursor-pointer", {
|
31
|
-
variants: {
|
32
|
-
radius: __assign({}, radiusVariants['extra-large']),
|
33
|
-
size: {
|
34
|
-
small: 'min-w-[250px] text-xs py-2 px-3',
|
35
|
-
medium: 'min-w-[300px] text-sm py-2 px-3',
|
36
|
-
},
|
37
|
-
},
|
38
|
-
defaultVariants: {
|
39
|
-
radius: 'medium',
|
40
|
-
size: 'medium',
|
41
|
-
},
|
42
|
-
});
|
43
|
-
export var NavigationMenuContent = forwardRef(function (_a, ref) {
|
44
|
-
var className = _a.className, children = _a.children, props = __rest(_a, ["className", "children"]);
|
45
|
-
var _b = useNavigationMenuContext(), radius = _b.radius, size = _b.size;
|
46
|
-
return (_jsx(NavigationMenuPrimitive.Content, __assign({ ref: ref, className: cn("data-[motion=from-start]:animate-enterFromLeft data-[motion=from-end]:animate-enterFromRight data-[motion=to-start]:animate-exitToLeft data-[motion=to-end]:animate-exitToRight absolute left-0 top-0 w-full sm:w-auto", navigationMenuContentVariants({ radius: radius, size: size }), className) }, props, { children: children })));
|
47
|
-
});
|
48
|
-
NavigationMenuContent.displayName = 'NavigationMenu.Content';
|
1
|
+
import{j as t}from"../../../../_virtual/jsx-runtime.js";import{forwardRef as e}from"react";import{Content as r}from"../../../../node_modules/@radix-ui/react-navigation-menu/dist/index.mjs.js";import{cn as a}from"../../utils/utils.js";import{cva as o}from"../../../../node_modules/class-variance-authority/dist/index.mjs.js";import{radiusVariants as i}from"../../constants.js";import{useNavigationMenuContext as n}from"./NavigationMenuRoot.js";var s=function(){return s=Object.assign||function(t){for(var e,r=1,a=arguments.length;r<a;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},s.apply(this,arguments)},m=function(t,e){var r={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.indexOf(a)<0&&(r[a]=t[a]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(a=Object.getOwnPropertySymbols(t);o<a.length;o++)e.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(t,a[o])&&(r[a[o]]=t[a[o]])}return r},l=o("text-slate-12 dark:text-slateDark-12 bg-white dark:bg-slateDark-1 p-2 cursor-pointer",{variants:{radius:s({},i["extra-large"]),size:{small:"min-w-[250px] text-xs py-2 px-3",medium:"min-w-[300px] text-sm py-2 px-3"}},defaultVariants:{radius:"medium",size:"medium"}}),u=e((function(e,o){var i=e.className,u=e.children,p=m(e,["className","children"]),d=n(),f=d.radius,c=d.size;return t.jsx(r,s({ref:o,className:a("data-[motion=from-start]:animate-enterFromLeft data-[motion=from-end]:animate-enterFromRight data-[motion=to-start]:animate-exitToLeft data-[motion=to-end]:animate-exitToRight absolute left-0 top-0 w-full sm:w-auto",l({radius:f,size:c}),i)},p,{children:u}))}));u.displayName="NavigationMenu.Content";export{u as NavigationMenuContent,l as navigationMenuContentVariants};
|
2
|
+
//# sourceMappingURL=NavigationMenuContent.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"NavigationMenuContent.js","sources":["../../../../lib/components/NavigationMenu/NavigationMenuContent.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { forwardRef } from 'react';\nimport * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';\nimport { cn } from '../../../lib/utils/utils';\nimport { cva } from 'class-variance-authority';\nimport { radiusVariants } from '../../../lib/constants';\nimport { useNavigationMenuContext } from './NavigationMenuRoot';\nexport var navigationMenuContentVariants = cva(\"text-slate-12 dark:text-slateDark-12 bg-white dark:bg-slateDark-1 p-2 cursor-pointer\", {\n variants: {\n radius: __assign({}, radiusVariants['extra-large']),\n size: {\n small: 'min-w-[250px] text-xs py-2 px-3',\n medium: 'min-w-[300px] text-sm py-2 px-3',\n },\n },\n defaultVariants: {\n radius: 'medium',\n size: 'medium',\n },\n});\nexport var NavigationMenuContent = forwardRef(function (_a, ref) {\n var className = _a.className, children = _a.children, props = __rest(_a, [\"className\", \"children\"]);\n var _b = useNavigationMenuContext(), radius = _b.radius, size = _b.size;\n return (_jsx(NavigationMenuPrimitive.Content, __assign({ ref: ref, className: cn(\"data-[motion=from-start]:animate-enterFromLeft data-[motion=from-end]:animate-enterFromRight data-[motion=to-start]:animate-exitToLeft data-[motion=to-end]:animate-exitToRight absolute left-0 top-0 w-full sm:w-auto\", navigationMenuContentVariants({ radius: radius, size: size }), className) }, props, { children: children })));\n});\nNavigationMenuContent.displayName = 'NavigationMenu.Content';\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","navigationMenuContentVariants","cva","variants","radius","radiusVariants","size","small","medium","defaultVariants","NavigationMenuContent","forwardRef","_a","ref","className","children","props","_b","useNavigationMenuContext","_jsx","NavigationMenuPrimitive.Content","cn","displayName"],"mappings":"2bAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,mBAAjCH,OAAOiB,sBACtB,KAAIb,EAAI,EAAb,IAAgBI,EAAIR,OAAOiB,sBAAsBd,GAAIC,EAAII,EAAED,OAAQH,IAC3DW,EAAEC,QAAQR,EAAEJ,IAAM,GAAKJ,OAAOS,UAAUS,qBAAqBP,KAAKR,EAAGK,EAAEJ,MACvEF,EAAEM,EAAEJ,IAAMD,EAAEK,EAAEJ,IAF4B,CAItD,OAAOF,CACX,EAQWiB,EAAgCC,EAAI,uFAAwF,CACnIC,SAAU,CACNC,OAAQvB,EAAS,CAAA,EAAIwB,EAAe,gBACpCC,KAAM,CACFC,MAAO,kCACPC,OAAQ,oCAGhBC,gBAAiB,CACbL,OAAQ,SACRE,KAAM,YAGHI,EAAwBC,GAAW,SAAUC,EAAIC,GACxD,IAAIC,EAAYF,EAAGE,UAAWC,EAAWH,EAAGG,SAAUC,EAAQpB,EAAOgB,EAAI,CAAC,YAAa,aACnFK,EAAKC,IAA4Bd,EAASa,EAAGb,OAAQE,EAAOW,EAAGX,KACnE,OAAQa,MAAKC,EAAiCvC,EAAS,CAAEgC,IAAKA,EAAKC,UAAWO,EAAG,yNAA0NpB,EAA8B,CAAEG,OAAQA,EAAQE,KAAMA,IAASQ,IAAcE,EAAO,CAAED,SAAUA,IAC/Y,IACAL,EAAsBY,YAAc"}
|
@@ -1,31 +1,2 @@
|
|
1
|
-
var
|
2
|
-
|
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
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
13
|
-
var t = {};
|
14
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
15
|
-
t[p] = s[p];
|
16
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
17
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
18
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
19
|
-
t[p[i]] = s[p[i]];
|
20
|
-
}
|
21
|
-
return t;
|
22
|
-
};
|
23
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
24
|
-
import { forwardRef } from 'react';
|
25
|
-
import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
26
|
-
import { cn } from '../../../lib/utils/utils';
|
27
|
-
export var NavigationMenuIndicator = forwardRef(function (_a, ref) {
|
28
|
-
var className = _a.className, children = _a.children, props = __rest(_a, ["className", "children"]);
|
29
|
-
return (_jsxs(NavigationMenuPrimitive.Indicator, __assign({ ref: ref, className: "data-[state=visible]:animate-fadeIn data-[state=hidden]:animate-fadeOut top-full z-[1] flex h-[10px] items-end justify-center overflow-hidden transition-[width,transform_250ms_ease]" }, props, { children: [_jsx("div", { className: cn("relative top-[70%] h-[10px] w-[10px] rotate-[45deg] rounded-tl-[2px] bg-white shadow shadow-slate-4 dark:bg-slateDark-2 dark:shadow-slateDark-4", className) }), children] })));
|
30
|
-
});
|
31
|
-
NavigationMenuIndicator.displayName = 'NavigationMenu.Indicator';
|
1
|
+
import{j as t}from"../../../../_virtual/jsx-runtime.js";import{forwardRef as e}from"react";import{Indicator as r}from"../../../../node_modules/@radix-ui/react-navigation-menu/dist/index.mjs.js";import{cn as a}from"../../utils/utils.js";var n=function(){return n=Object.assign||function(t){for(var e,r=1,a=arguments.length;r<a;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},n.apply(this,arguments)},o=function(t,e){var r={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.indexOf(a)<0&&(r[a]=t[a]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(a=Object.getOwnPropertySymbols(t);n<a.length;n++)e.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(t,a[n])&&(r[a[n]]=t[a[n]])}return r},i=e((function(e,i){var s=e.className,l=e.children,d=o(e,["className","children"]);return t.jsxs(r,n({ref:i,className:"data-[state=visible]:animate-fadeIn data-[state=hidden]:animate-fadeOut top-full z-[1] flex h-[10px] items-end justify-center overflow-hidden transition-[width,transform_250ms_ease]"},d,{children:[t.jsx("div",{className:a("relative top-[70%] h-[10px] w-[10px] rotate-[45deg] rounded-tl-[2px] bg-white shadow shadow-slate-4 dark:bg-slateDark-2 dark:shadow-slateDark-4",s)}),l]}))}));i.displayName="NavigationMenu.Indicator";export{i as NavigationMenuIndicator};
|
2
|
+
//# sourceMappingURL=NavigationMenuIndicator.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"NavigationMenuIndicator.js","sources":["../../../../lib/components/NavigationMenu/NavigationMenuIndicator.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { forwardRef } from 'react';\nimport * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';\nimport { cn } from '../../../lib/utils/utils';\nexport var NavigationMenuIndicator = forwardRef(function (_a, ref) {\n var className = _a.className, children = _a.children, props = __rest(_a, [\"className\", \"children\"]);\n return (_jsxs(NavigationMenuPrimitive.Indicator, __assign({ ref: ref, className: \"data-[state=visible]:animate-fadeIn data-[state=hidden]:animate-fadeOut top-full z-[1] flex h-[10px] items-end justify-center overflow-hidden transition-[width,transform_250ms_ease]\" }, props, { children: [_jsx(\"div\", { className: cn(\"relative top-[70%] h-[10px] w-[10px] rotate-[45deg] rounded-tl-[2px] bg-white shadow shadow-slate-4 dark:bg-slateDark-2 dark:shadow-slateDark-4\", className) }), children] })));\n});\nNavigationMenuIndicator.displayName = 'NavigationMenu.Indicator';\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","NavigationMenuIndicator","forwardRef","_a","ref","className","children","props","_jsxs","NavigationMenuPrimitive.Indicator","_jsx","jsx","cn","displayName"],"mappings":"4OAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,mBAAjCH,OAAOiB,sBACtB,KAAIb,EAAI,EAAb,IAAgBI,EAAIR,OAAOiB,sBAAsBd,GAAIC,EAAII,EAAED,OAAQH,IAC3DW,EAAEC,QAAQR,EAAEJ,IAAM,GAAKJ,OAAOS,UAAUS,qBAAqBP,KAAKR,EAAGK,EAAEJ,MACvEF,EAAEM,EAAEJ,IAAMD,EAAEK,EAAEJ,IAF4B,CAItD,OAAOF,CACX,EAKWiB,EAA0BC,GAAW,SAAUC,EAAIC,GAC1D,IAAIC,EAAYF,EAAGE,UAAWC,EAAWH,EAAGG,SAAUC,EAAQX,EAAOO,EAAI,CAAC,YAAa,aACvF,OAAQK,OAAMC,EAAmC5B,EAAS,CAAEuB,IAAKA,EAAKC,UAAW,yLAA2LE,EAAO,CAAED,SAAU,CAACI,EAAIC,IAAC,MAAO,CAAEN,UAAWO,EAAG,kJAAmJP,KAAeC,KACle,IACAL,EAAwBY,YAAc"}
|
@@ -1,30 +1,2 @@
|
|
1
|
-
var
|
2
|
-
|
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
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
13
|
-
var t = {};
|
14
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
15
|
-
t[p] = s[p];
|
16
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
17
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
18
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
19
|
-
t[p[i]] = s[p[i]];
|
20
|
-
}
|
21
|
-
return t;
|
22
|
-
};
|
23
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
24
|
-
import { forwardRef } from 'react';
|
25
|
-
import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
26
|
-
export var NavigationMenuItem = forwardRef(function (_a, ref) {
|
27
|
-
var className = _a.className, children = _a.children, props = __rest(_a, ["className", "children"]);
|
28
|
-
return (_jsx(NavigationMenuPrimitive.Item, __assign({ ref: ref, className: className }, props, { children: children })));
|
29
|
-
});
|
30
|
-
NavigationMenuItem.displayName = 'NavigationMenu.Item';
|
1
|
+
import{j as r}from"../../../../_virtual/jsx-runtime.js";import{forwardRef as e}from"react";import{Item as t}from"../../../../node_modules/@radix-ui/react-navigation-menu/dist/index.mjs.js";var n=function(){return n=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++)for(var o in e=arguments[t])Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r},n.apply(this,arguments)},o=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(r);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(r,n[o])&&(t[n[o]]=r[n[o]])}return t},a=e((function(e,a){var i=e.className,l=e.children,s=o(e,["className","children"]);return r.jsx(t,n({ref:a,className:i},s,{children:l}))}));a.displayName="NavigationMenu.Item";export{a as NavigationMenuItem};
|
2
|
+
//# sourceMappingURL=NavigationMenuItem.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"NavigationMenuItem.js","sources":["../../../../lib/components/NavigationMenu/NavigationMenuItem.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { forwardRef } from 'react';\nimport * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';\nexport var NavigationMenuItem = forwardRef(function (_a, ref) {\n var className = _a.className, children = _a.children, props = __rest(_a, [\"className\", \"children\"]);\n return (_jsx(NavigationMenuPrimitive.Item, __assign({ ref: ref, className: className }, props, { children: children })));\n});\nNavigationMenuItem.displayName = 'NavigationMenu.Item';\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","NavigationMenuItem","forwardRef","_a","ref","className","children","props","_jsx","jsx","NavigationMenuPrimitive.Item","displayName"],"mappings":"6LAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,mBAAjCH,OAAOiB,sBACtB,KAAIb,EAAI,EAAb,IAAgBI,EAAIR,OAAOiB,sBAAsBd,GAAIC,EAAII,EAAED,OAAQH,IAC3DW,EAAEC,QAAQR,EAAEJ,IAAM,GAAKJ,OAAOS,UAAUS,qBAAqBP,KAAKR,EAAGK,EAAEJ,MACvEF,EAAEM,EAAEJ,IAAMD,EAAEK,EAAEJ,IAF4B,CAItD,OAAOF,CACX,EAIWiB,EAAqBC,GAAW,SAAUC,EAAIC,GACrD,IAAIC,EAAYF,EAAGE,UAAWC,EAAWH,EAAGG,SAAUC,EAAQX,EAAOO,EAAI,CAAC,YAAa,aACvF,OAAQK,EAAIC,IAACC,EAA8B7B,EAAS,CAAEuB,IAAKA,EAAKC,UAAWA,GAAaE,EAAO,CAAED,SAAUA,IAC/G,IACAL,EAAmBU,YAAc"}
|
@@ -1,51 +1,2 @@
|
|
1
|
-
var
|
2
|
-
|
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
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
13
|
-
var t = {};
|
14
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
15
|
-
t[p] = s[p];
|
16
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
17
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
18
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
19
|
-
t[p[i]] = s[p[i]];
|
20
|
-
}
|
21
|
-
return t;
|
22
|
-
};
|
23
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
24
|
-
import { forwardRef } from 'react';
|
25
|
-
import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
26
|
-
import { cn } from '../../../lib/utils/utils';
|
27
|
-
import { cva } from 'class-variance-authority';
|
28
|
-
import { appearanceStyle, radiusVariants, scalingVariants } from '../../../lib/constants';
|
29
|
-
import { useNavigationMenuContext } from './NavigationMenuRoot';
|
30
|
-
export var navigationMenuLinkVariants = cva("block select-none leading-none outline-none py-1 px-3 cursor-alias hover:underline font-medium", {
|
31
|
-
variants: {
|
32
|
-
size: {
|
33
|
-
small: 'text-xs gap-[2px]',
|
34
|
-
medium: 'text-sm gap-[3px]',
|
35
|
-
},
|
36
|
-
radius: __assign({}, radiusVariants['base']),
|
37
|
-
scaling: __assign({}, scalingVariants),
|
38
|
-
},
|
39
|
-
defaultVariants: {
|
40
|
-
scaling: '100%',
|
41
|
-
size: 'medium',
|
42
|
-
radius: 'small',
|
43
|
-
},
|
44
|
-
});
|
45
|
-
export var NavigationMenuLink = forwardRef(function (_a, ref) {
|
46
|
-
var children = _a.children, className = _a.className, href = _a.href, props = __rest(_a, ["children", "className", "href"]);
|
47
|
-
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
|
-
var linkClassName = cn(navigationMenuLinkVariants({ scaling: scaling, size: size, radius: radius }), appearanceStyle(appearance, color), className);
|
49
|
-
return (_jsx(NavigationMenuPrimitive.Link, __assign({ ref: ref, href: href, title: href, className: linkClassName }, props, { children: children })));
|
50
|
-
});
|
51
|
-
NavigationMenuLink.displayName = 'NavigationMenu.Link';
|
1
|
+
import{j as e}from"../../../../_virtual/jsx-runtime.js";import{forwardRef as r}from"react";import{Link as t}from"../../../../node_modules/@radix-ui/react-navigation-menu/dist/index.mjs.js";import{cn as i}from"../../utils/utils.js";import{cva as n}from"../../../../node_modules/class-variance-authority/dist/index.mjs.js";import{radiusVariants as a,scalingVariants as o,appearanceStyle as s}from"../../constants.js";import{useNavigationMenuContext as l}from"./NavigationMenuRoot.js";var m=function(){return m=Object.assign||function(e){for(var r,t=1,i=arguments.length;t<i;t++)for(var n in r=arguments[t])Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);return e},m.apply(this,arguments)},c=function(e,r){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&r.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(e);n<i.length;n++)r.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(t[i[n]]=e[i[n]])}return t},u=n("block select-none leading-none outline-none py-1 px-3 cursor-alias hover:underline font-medium",{variants:{size:{small:"text-xs gap-[2px]",medium:"text-sm gap-[3px]"},radius:m({},a.base),scaling:m({},o)},defaultVariants:{scaling:"100%",size:"medium",radius:"small"}}),p=r((function(r,n){var a=r.children,o=r.className,p=r.href,d=c(r,["children","className","href"]),f=l(),j=f.scaling,g=f.size,v=f.radius,y=f.color,h=void 0===y?"red":y,x=f.appearance,O=void 0===x?"ghost":x,b=i(u({scaling:j,size:g,radius:v}),s(O,h),o);return e.jsx(t,m({ref:n,href:p,title:p,className:b},d,{children:a}))}));p.displayName="NavigationMenu.Link";export{p as NavigationMenuLink,u as navigationMenuLinkVariants};
|
2
|
+
//# sourceMappingURL=NavigationMenuLink.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"NavigationMenuLink.js","sources":["../../../../lib/components/NavigationMenu/NavigationMenuLink.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { forwardRef } from 'react';\nimport * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';\nimport { cn } from '../../../lib/utils/utils';\nimport { cva } from 'class-variance-authority';\nimport { appearanceStyle, radiusVariants, scalingVariants } from '../../../lib/constants';\nimport { useNavigationMenuContext } from './NavigationMenuRoot';\nexport var navigationMenuLinkVariants = cva(\"block select-none leading-none outline-none py-1 px-3 cursor-alias hover:underline font-medium\", {\n variants: {\n size: {\n small: 'text-xs gap-[2px]',\n medium: 'text-sm gap-[3px]',\n },\n radius: __assign({}, radiusVariants['base']),\n scaling: __assign({}, scalingVariants),\n },\n defaultVariants: {\n scaling: '100%',\n size: 'medium',\n radius: 'small',\n },\n});\nexport var NavigationMenuLink = forwardRef(function (_a, ref) {\n var children = _a.children, className = _a.className, href = _a.href, props = __rest(_a, [\"children\", \"className\", \"href\"]);\n 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;\n var linkClassName = cn(navigationMenuLinkVariants({ scaling: scaling, size: size, radius: radius }), appearanceStyle(appearance, color), className);\n return (_jsx(NavigationMenuPrimitive.Link, __assign({ ref: ref, href: href, title: href, className: linkClassName }, props, { children: children })));\n});\nNavigationMenuLink.displayName = 'NavigationMenu.Link';\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","navigationMenuLinkVariants","cva","variants","size","small","medium","radius","radiusVariants","scaling","scalingVariants","defaultVariants","NavigationMenuLink","forwardRef","_a","ref","children","className","href","props","_b","useNavigationMenuContext","_c","color","_d","appearance","linkClassName","cn","appearanceStyle","_jsx","NavigationMenuPrimitive.Link","title","displayName"],"mappings":"keAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,mBAAjCH,OAAOiB,sBACtB,KAAIb,EAAI,EAAb,IAAgBI,EAAIR,OAAOiB,sBAAsBd,GAAIC,EAAII,EAAED,OAAQH,IAC3DW,EAAEC,QAAQR,EAAEJ,IAAM,GAAKJ,OAAOS,UAAUS,qBAAqBP,KAAKR,EAAGK,EAAEJ,MACvEF,EAAEM,EAAEJ,IAAMD,EAAEK,EAAEJ,IAF4B,CAItD,OAAOF,CACX,EAQWiB,EAA6BC,EAAI,iGAAkG,CAC1IC,SAAU,CACNC,KAAM,CACFC,MAAO,oBACPC,OAAQ,qBAEZC,OAAQ1B,EAAS,CAAA,EAAI2B,EAAqB,MAC1CC,QAAS5B,EAAS,CAAE,EAAE6B,IAE1BC,gBAAiB,CACbF,QAAS,OACTL,KAAM,SACNG,OAAQ,WAGLK,EAAqBC,GAAW,SAAUC,EAAIC,GACrD,IAAIC,EAAWF,EAAGE,SAAUC,EAAYH,EAAGG,UAAWC,EAAOJ,EAAGI,KAAMC,EAAQvB,EAAOkB,EAAI,CAAC,WAAY,YAAa,SAC/GM,EAAKC,IAA4BZ,EAAUW,EAAGX,QAASL,EAAOgB,EAAGhB,KAAMG,EAASa,EAAGb,OAAQe,EAAKF,EAAGG,MAAOA,OAAe,IAAPD,EAAgB,MAAQA,EAAIE,EAAKJ,EAAGK,WAAYA,OAAoB,IAAPD,EAAgB,QAAUA,EACzME,EAAgBC,EAAG1B,EAA2B,CAAEQ,QAASA,EAASL,KAAMA,EAAMG,OAAQA,IAAWqB,EAAgBH,EAAYF,GAAQN,GACzI,OAAQY,EAAAA,IAAKC,EAA8BjD,EAAS,CAAEkC,IAAKA,EAAKG,KAAMA,EAAMa,MAAOb,EAAMD,UAAWS,GAAiBP,EAAO,CAAEH,SAAUA,IAC5I,IACAJ,EAAmBoB,YAAc"}
|
@@ -1,47 +1,2 @@
|
|
1
|
-
var
|
2
|
-
|
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
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
13
|
-
var t = {};
|
14
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
15
|
-
t[p] = s[p];
|
16
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
17
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
18
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
19
|
-
t[p[i]] = s[p[i]];
|
20
|
-
}
|
21
|
-
return t;
|
22
|
-
};
|
23
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
24
|
-
import { forwardRef } from 'react';
|
25
|
-
import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
26
|
-
import { cn } from '../../../lib/utils/utils';
|
27
|
-
import { cva } from 'class-variance-authority';
|
28
|
-
import { appearanceStyle, radiusVariants, scalingVariants } from '../../../lib/constants';
|
29
|
-
import { NavigationMenuIndicator } from './NavigationMenuIndicator';
|
30
|
-
import { useNavigationMenuContext } from './NavigationMenuRoot';
|
31
|
-
export var navigationMenuListVariants = cva('flex p-1 space-x-1 shadow-slate-4 shadow dark:shadow-slateDark-4 bg-white dark:bg-slateDark-1', {
|
32
|
-
variants: {
|
33
|
-
radius: __assign({}, radiusVariants['base']),
|
34
|
-
scaling: __assign({}, scalingVariants),
|
35
|
-
},
|
36
|
-
defaultVariants: {
|
37
|
-
scaling: '100%',
|
38
|
-
radius: 'small',
|
39
|
-
},
|
40
|
-
});
|
41
|
-
export var NavigationMenuList = forwardRef(function (_a, ref) {
|
42
|
-
var children = _a.children, className = _a.className, _b = _a.isShowIndicator, isShowIndicator = _b === void 0 ? true : _b, props = __rest(_a, ["children", "className", "isShowIndicator"]);
|
43
|
-
var _c = useNavigationMenuContext(), scaling = _c.scaling, radius = _c.radius, _d = _c.appearance, appearance = _d === void 0 ? 'ghost' : _d, _e = _c.color, color = _e === void 0 ? 'red' : _e;
|
44
|
-
var navigationMenuListClassName = cn(navigationMenuListVariants({ scaling: scaling, radius: radius }), appearanceStyle(appearance, color, false), 'border-none', appearance === 'ghost' && 'bg-white', className);
|
45
|
-
return (_jsxs(NavigationMenuPrimitive.List, __assign({ ref: ref, className: navigationMenuListClassName }, props, { children: [children, isShowIndicator && _jsx(NavigationMenuIndicator, {})] })));
|
46
|
-
});
|
47
|
-
NavigationMenuList.displayName = 'NavigationMenu.List';
|
1
|
+
import{j as r}from"../../../../_virtual/jsx-runtime.js";import{forwardRef as a}from"react";import{List as t}from"../../../../node_modules/@radix-ui/react-navigation-menu/dist/index.mjs.js";import{cn as o}from"../../utils/utils.js";import{cva as i}from"../../../../node_modules/class-variance-authority/dist/index.mjs.js";import{radiusVariants as e,scalingVariants as s,appearanceStyle as n}from"../../constants.js";import{NavigationMenuIndicator as l}from"./NavigationMenuIndicator.js";import{useNavigationMenuContext as c}from"./NavigationMenuRoot.js";var d=function(){return d=Object.assign||function(r){for(var a,t=1,o=arguments.length;t<o;t++)for(var i in a=arguments[t])Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i]);return r},d.apply(this,arguments)},m=function(r,a){var t={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&a.indexOf(o)<0&&(t[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(r);i<o.length;i++)a.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(r,o[i])&&(t[o[i]]=r[o[i]])}return t},p=i("flex p-1 space-x-1 shadow-slate-4 shadow dark:shadow-slateDark-4 bg-white dark:bg-slateDark-1",{variants:{radius:d({},e.base),scaling:d({},s)},defaultVariants:{scaling:"100%",radius:"small"}}),u=a((function(a,i){var e=a.children,s=a.className,u=a.isShowIndicator,f=void 0===u||u,j=m(a,["children","className","isShowIndicator"]),g=c(),h=g.scaling,v=g.radius,b=g.appearance,y=void 0===b?"ghost":b,O=g.color,w=void 0===O?"red":O,x=o(p({scaling:h,radius:v}),n(y,w,!1),"border-none","ghost"===y&&"bg-white",s);return r.jsxs(t,d({ref:i,className:x},j,{children:[e,f&&r.jsx(l,{})]}))}));u.displayName="NavigationMenu.List";export{u as NavigationMenuList,p as navigationMenuListVariants};
|
2
|
+
//# sourceMappingURL=NavigationMenuList.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"NavigationMenuList.js","sources":["../../../../lib/components/NavigationMenu/NavigationMenuList.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { forwardRef } from 'react';\nimport * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';\nimport { cn } from '../../../lib/utils/utils';\nimport { cva } from 'class-variance-authority';\nimport { appearanceStyle, radiusVariants, scalingVariants } from '../../../lib/constants';\nimport { NavigationMenuIndicator } from './NavigationMenuIndicator';\nimport { useNavigationMenuContext } from './NavigationMenuRoot';\nexport var navigationMenuListVariants = cva('flex p-1 space-x-1 shadow-slate-4 shadow dark:shadow-slateDark-4 bg-white dark:bg-slateDark-1', {\n variants: {\n radius: __assign({}, radiusVariants['base']),\n scaling: __assign({}, scalingVariants),\n },\n defaultVariants: {\n scaling: '100%',\n radius: 'small',\n },\n});\nexport var NavigationMenuList = forwardRef(function (_a, ref) {\n var children = _a.children, className = _a.className, _b = _a.isShowIndicator, isShowIndicator = _b === void 0 ? true : _b, props = __rest(_a, [\"children\", \"className\", \"isShowIndicator\"]);\n var _c = useNavigationMenuContext(), scaling = _c.scaling, radius = _c.radius, _d = _c.appearance, appearance = _d === void 0 ? 'ghost' : _d, _e = _c.color, color = _e === void 0 ? 'red' : _e;\n var navigationMenuListClassName = cn(navigationMenuListVariants({ scaling: scaling, radius: radius }), appearanceStyle(appearance, color, false), 'border-none', appearance === 'ghost' && 'bg-white', className);\n return (_jsxs(NavigationMenuPrimitive.List, __assign({ ref: ref, className: navigationMenuListClassName }, props, { children: [children, isShowIndicator && _jsx(NavigationMenuIndicator, {})] })));\n});\nNavigationMenuList.displayName = 'NavigationMenu.List';\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","navigationMenuListVariants","cva","variants","radius","radiusVariants","scaling","scalingVariants","defaultVariants","NavigationMenuList","forwardRef","_a","ref","children","className","_b","isShowIndicator","props","_c","useNavigationMenuContext","_d","appearance","_e","color","navigationMenuListClassName","cn","appearanceStyle","_jsxs","jsxs","NavigationMenuPrimitive.List","_jsx","NavigationMenuIndicator","displayName"],"mappings":"yiBAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,mBAAjCH,OAAOiB,sBACtB,KAAIb,EAAI,EAAb,IAAgBI,EAAIR,OAAOiB,sBAAsBd,GAAIC,EAAII,EAAED,OAAQH,IAC3DW,EAAEC,QAAQR,EAAEJ,IAAM,GAAKJ,OAAOS,UAAUS,qBAAqBP,KAAKR,EAAGK,EAAEJ,MACvEF,EAAEM,EAAEJ,IAAMD,EAAEK,EAAEJ,IAF4B,CAItD,OAAOF,CACX,EASWiB,EAA6BC,EAAI,gGAAiG,CACzIC,SAAU,CACNC,OAAQvB,EAAS,CAAA,EAAIwB,EAAqB,MAC1CC,QAASzB,EAAS,CAAE,EAAE0B,IAE1BC,gBAAiB,CACbF,QAAS,OACTF,OAAQ,WAGLK,EAAqBC,GAAW,SAAUC,EAAIC,GACrD,IAAIC,EAAWF,EAAGE,SAAUC,EAAYH,EAAGG,UAAWC,EAAKJ,EAAGK,gBAAiBA,OAAyB,IAAPD,GAAuBA,EAAIE,EAAQrB,EAAOe,EAAI,CAAC,WAAY,YAAa,oBACrKO,EAAKC,IAA4Bb,EAAUY,EAAGZ,QAASF,EAASc,EAAGd,OAAQgB,EAAKF,EAAGG,WAAYA,OAAoB,IAAPD,EAAgB,QAAUA,EAAIE,EAAKJ,EAAGK,MAAOA,OAAe,IAAPD,EAAgB,MAAQA,EACzLE,EAA8BC,EAAGxB,EAA2B,CAAEK,QAASA,EAASF,OAAQA,IAAWsB,EAAgBL,EAAYE,GAAO,GAAQ,cAA8B,UAAfF,GAA0B,WAAYP,GACvM,OAAQa,EAAKC,KAACC,EAA8BhD,EAAS,CAAE+B,IAAKA,EAAKE,UAAWU,GAA+BP,EAAO,CAAEJ,SAAU,CAACA,EAAUG,GAAmBc,EAAAA,IAAKC,EAAyB,CAAE,MAChM,IACAtB,EAAmBuB,YAAc"}
|