@lotte-innovate/ui-component-test 0.1.71 → 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 -2
- 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 -2
- 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
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../lib/components/ToggleSwitch/index.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 React from 'react';\nimport { cva } from 'class-variance-authority';\nimport { cn } from '../../../lib/utils/utils';\nimport { radiusVariants, scalingVariants } from '../../../lib/constants';\nimport { Switch as SwitchTheme, Theme } from '@radix-ui/themes';\nimport { Text } from '../../../lib/Typography/Text';\nvar toggleSwitchVariants = cva('', {\n variants: {\n scaling: __assign({}, scalingVariants),\n radius: __assign({}, radiusVariants['base']),\n size: {\n small: 'w-[28px] h-[16px]',\n medium: 'w-[35px] h-[20px]',\n large: 'w-[42px] h-[24px]',\n },\n },\n defaultVariants: {\n radius: 'full',\n size: 'medium',\n },\n});\nvar SwitchLabelVariants = cva('flex items-center justify-start text-slate-12 font-normal dark:text-white', {\n variants: {\n size: {\n small: 'text-xs gap-2',\n medium: 'text-sm gap-2',\n large: 'text-base gap-3',\n },\n scaling: __assign({}, scalingVariants),\n },\n defaultVariants: {\n size: 'medium',\n scaling: '100%',\n },\n});\nexport var ToggleSwitch = React.forwardRef(function (_a, forwardedRef) {\n var className = _a.className, _b = _a.color, color = _b === void 0 ? 'red' : _b, scaling = _a.scaling, size = _a.size, _c = _a.appearance, appearance = _c === void 0 ? 'surface' : _c, radius = _a.radius, tabIndex = _a.tabIndex, children = _a.children, switchProps = __rest(_a, [\"className\", \"color\", \"scaling\", \"size\", \"appearance\", \"radius\", \"tabIndex\", \"children\"]);\n if (radius === 'medium' || radius === 'large')\n radius = 'full';\n var sizeTheme = '2';\n if (size === 'small')\n sizeTheme = '1';\n if (size === 'large')\n sizeTheme = '3';\n return (_jsx(Theme, { className: \"flex\", accentColor: color, hasBackground: false, children: _jsxs(Text, { as: \"label\", className: cn('flex items-center', SwitchLabelVariants({ size: size, scaling: scaling })), children: [_jsx(SwitchTheme, __assign({ ref: forwardedRef }, switchProps, { variant: appearance, radius: radius, size: sizeTheme, color: color, className: cn(toggleSwitchVariants({ scaling: scaling, radius: radius, size: size }), className), \"aria-label\": \"Switch\" })), children] }) }));\n});\nToggleSwitch.displayName = 'ToggleSwitch';\nexport default ToggleSwitch;\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","toggleSwitchVariants","cva","variants","scaling","scalingVariants","radius","radiusVariants","size","small","medium","large","defaultVariants","SwitchLabelVariants","ToggleSwitch","React","forwardRef","_a","forwardedRef","className","_b","color","_c","appearance","tabIndex","children","switchProps","sizeTheme","_jsx","jsx","Theme","accentColor","hasBackground","_jsxs","Text","as","cn","SwitchTheme","ref","variant","displayName"],"mappings":"ghBAAA,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,EAQIiB,EAAuBC,EAAI,GAAI,CAC/BC,SAAU,CACNC,QAASvB,EAAS,CAAE,EAAEwB,GACtBC,OAAQzB,EAAS,CAAA,EAAI0B,EAAqB,MAC1CC,KAAM,CACFC,MAAO,oBACPC,OAAQ,oBACRC,MAAO,sBAGfC,gBAAiB,CACbN,OAAQ,OACRE,KAAM,YAGVK,EAAsBX,EAAI,4EAA6E,CACvGC,SAAU,CACNK,KAAM,CACFC,MAAO,gBACPC,OAAQ,gBACRC,MAAO,mBAEXP,QAASvB,EAAS,CAAE,EAAEwB,IAE1BO,gBAAiB,CACbJ,KAAM,SACNJ,QAAS,UAGNU,EAAeC,EAAMC,YAAW,SAAUC,EAAIC,GAClD,IAACC,EAAYF,EAAGE,UAAWC,EAAKH,EAAGI,MAAOA,OAAe,IAAPD,EAAgB,MAAQA,EAAIhB,EAAUa,EAAGb,QAASI,EAAOS,EAAGT,KAAMc,EAAKL,EAAGM,WAAYA,OAAoB,IAAPD,EAAgB,UAAYA,EAAIhB,EAASW,EAAGX,OAAmBW,EAAGO,SAAU,IAAAC,EAAWR,EAAGQ,SAAUC,EAAc9B,EAAOqB,EAAI,CAAC,YAAa,QAAS,UAAW,OAAQ,aAAc,SAAU,WAAY,aACpV,WAAXX,GAAkC,UAAXA,IACvBA,EAAS,QACb,IAAIqB,EAAY,IAKhB,MAJa,UAATnB,IACAmB,EAAY,KACH,UAATnB,IACAmB,EAAY,KACRC,EAAIC,IAACC,EAAO,CAAEX,UAAW,OAAQY,YAAaV,EAAOW,eAAe,EAAOP,SAAUQ,EAAAA,KAAMC,EAAM,CAAEC,GAAI,QAAShB,UAAWiB,EAAG,oBAAqBvB,EAAoB,CAAEL,KAAMA,EAAMJ,QAASA,KAAaqB,SAAU,CAACG,EAAIC,IAACQ,EAAaxD,EAAS,CAAEyD,IAAKpB,GAAgBQ,EAAa,CAAEa,QAAShB,EAAYjB,OAAQA,EAAQE,KAAMmB,EAAWN,MAAOA,EAAOF,UAAWiB,EAAGnC,EAAqB,CAAEG,QAASA,EAASE,OAAQA,EAAQE,KAAMA,IAASW,GAAY,aAAc,YAAcM,MACre,IACAX,EAAa0B,YAAc"}
|
@@ -1,49 +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
|
-
// your-tooltip.jsx
|
25
|
-
import React from 'react';
|
26
|
-
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
27
|
-
import { cva } from 'class-variance-authority';
|
28
|
-
import { cn } from '../../../lib/utils/utils';
|
29
|
-
import { primaryColorStyle, radiusVariants, weightVariants } from '../../../lib/constants';
|
30
|
-
var tooltipVariants = cva('bg-slate-12 text-slate-1 dark:bg-slateDark-12 dark:text-slateDark-1 data-[state=delayed-open]:data-[side=top]:animate-slideDownAndFade data-[state=delayed-open]:data-[side=right]:animate-slideLeftAndFade data-[state=delayed-open]:data-[side=left]:animate-slideRightAndFade data-[state=delayed-open]:data-[side=bottom]:animate-slideUpAndFade select-none rounded-[4px] px-[9px] py-[6px] text-[12px] leading-none shadow-[hsl(206_22%_7%_/_35%)_0px_10px_38px_-10px,_hsl(206_22%_7%_/_20%)_0px_10px_20px_-15px] will-change-[transform,opacity]', {
|
31
|
-
variants: {
|
32
|
-
weight: __assign({}, weightVariants),
|
33
|
-
radius: __assign({}, radiusVariants['extra-large']),
|
34
|
-
color: primaryColorStyle(),
|
35
|
-
},
|
36
|
-
});
|
37
|
-
var Tooltip = React.forwardRef(function (_a, ref) {
|
38
|
-
var content = _a.content, weight = _a.weight, color = _a.color, radius = _a.radius, children = _a.children, defaultOpen = _a.defaultOpen, open = _a.open, className = _a.className, side = _a.side, onOpenChange = _a.onOpenChange, props = __rest(_a, ["content", "weight", "color", "radius", "children", "defaultOpen", "open", "className", "side", "onOpenChange"]);
|
39
|
-
if (!side)
|
40
|
-
side = 'top';
|
41
|
-
if (radius === 'full')
|
42
|
-
radius = 'large';
|
43
|
-
var arrowColor = color
|
44
|
-
? "fill-".concat(color, "-9 dark:fill-").concat(color, "Dark-9")
|
45
|
-
: 'fill-slate-12 dark:fill-slateDark-12';
|
46
|
-
return (_jsx(TooltipPrimitive.Provider, { children: _jsxs(TooltipPrimitive.Root, { open: open, defaultOpen: defaultOpen, onOpenChange: onOpenChange, children: [_jsx(TooltipPrimitive.Trigger, { className: "cursor-pointer text-slate-12 dark:text-slateDark-12", asChild: true, children: children }), _jsxs(TooltipPrimitive.Content, __assign({ align: "center" }, props, { side: side, className: cn('mr-2', tooltipVariants({ weight: weight, radius: radius, color: color }), className), sideOffset: 5, children: [content, _jsx(TooltipPrimitive.Arrow, { width: 11, height: 5, className: arrowColor })] }))] }) }));
|
47
|
-
});
|
48
|
-
Tooltip.displayName = 'Tooltip';
|
49
|
-
export default Tooltip;
|
1
|
+
import{j as e}from"../../../../_virtual/jsx-runtime.js";import t from"react";import{Provider as a,Root as r,Trigger as n,Content as o,Arrow as s}from"../../../../node_modules/@radix-ui/react-tooltip/dist/index.mjs.js";import{cva as l}from"../../../../node_modules/class-variance-authority/dist/index.mjs.js";import{cn as i}from"../../utils/utils.js";import{weightVariants as d,radiusVariants as p,primaryColorStyle as c}from"../../constants.js";var f=function(){return f=Object.assign||function(e){for(var t,a=1,r=arguments.length;a<r;a++)for(var n in t=arguments[a])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},f.apply(this,arguments)},m=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(a[r[n]]=e[r[n]])}return a},x=l("bg-slate-12 text-slate-1 dark:bg-slateDark-12 dark:text-slateDark-1 data-[state=delayed-open]:data-[side=top]:animate-slideDownAndFade data-[state=delayed-open]:data-[side=right]:animate-slideLeftAndFade data-[state=delayed-open]:data-[side=left]:animate-slideRightAndFade data-[state=delayed-open]:data-[side=bottom]:animate-slideUpAndFade select-none rounded-[4px] px-[9px] py-[6px] text-[12px] leading-none shadow-[hsl(206_22%_7%_/_35%)_0px_10px_38px_-10px,_hsl(206_22%_7%_/_20%)_0px_10px_20px_-15px] will-change-[transform,opacity]",{variants:{weight:f({},d),radius:f({},p["extra-large"]),color:c()}}),u=t.forwardRef((function(t,l){var d=t.content,p=t.weight,c=t.color,u=t.radius,h=t.children,g=t.defaultOpen,j=t.open,y=t.className,_=t.side,O=t.onOpenChange,w=m(t,["content","weight","color","radius","children","defaultOpen","open","className","side","onOpenChange"]);_||(_="top"),"full"===u&&(u="large");var b=c?"fill-".concat(c,"-9 dark:fill-").concat(c,"Dark-9"):"fill-slate-12 dark:fill-slateDark-12";return e.jsx(a,{children:e.jsxs(r,{open:j,defaultOpen:g,onOpenChange:O,children:[e.jsx(n,{className:"cursor-pointer text-slate-12 dark:text-slateDark-12",asChild:!0,children:h}),e.jsxs(o,f({align:"center"},w,{side:_,className:i("mr-2",x({weight:p,radius:u,color:c}),y),sideOffset:5,children:[d,e.jsx(s,{width:11,height:5,className:b})]}))]})})}));u.displayName="Tooltip";export{u as default};
|
2
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../lib/components/Tooltip/index.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\";\n// your-tooltip.jsx\nimport React from 'react';\nimport * as TooltipPrimitive from '@radix-ui/react-tooltip';\nimport { cva } from 'class-variance-authority';\nimport { cn } from '../../../lib/utils/utils';\nimport { primaryColorStyle, radiusVariants, weightVariants } from '../../../lib/constants';\nvar tooltipVariants = cva('bg-slate-12 text-slate-1 dark:bg-slateDark-12 dark:text-slateDark-1 data-[state=delayed-open]:data-[side=top]:animate-slideDownAndFade data-[state=delayed-open]:data-[side=right]:animate-slideLeftAndFade data-[state=delayed-open]:data-[side=left]:animate-slideRightAndFade data-[state=delayed-open]:data-[side=bottom]:animate-slideUpAndFade select-none rounded-[4px] px-[9px] py-[6px] text-[12px] leading-none shadow-[hsl(206_22%_7%_/_35%)_0px_10px_38px_-10px,_hsl(206_22%_7%_/_20%)_0px_10px_20px_-15px] will-change-[transform,opacity]', {\n variants: {\n weight: __assign({}, weightVariants),\n radius: __assign({}, radiusVariants['extra-large']),\n color: primaryColorStyle(),\n },\n});\nvar Tooltip = React.forwardRef(function (_a, ref) {\n var content = _a.content, weight = _a.weight, color = _a.color, radius = _a.radius, children = _a.children, defaultOpen = _a.defaultOpen, open = _a.open, className = _a.className, side = _a.side, onOpenChange = _a.onOpenChange, props = __rest(_a, [\"content\", \"weight\", \"color\", \"radius\", \"children\", \"defaultOpen\", \"open\", \"className\", \"side\", \"onOpenChange\"]);\n if (!side)\n side = 'top';\n if (radius === 'full')\n radius = 'large';\n var arrowColor = color\n ? \"fill-\".concat(color, \"-9 dark:fill-\").concat(color, \"Dark-9\")\n : 'fill-slate-12 dark:fill-slateDark-12';\n return (_jsx(TooltipPrimitive.Provider, { children: _jsxs(TooltipPrimitive.Root, { open: open, defaultOpen: defaultOpen, onOpenChange: onOpenChange, children: [_jsx(TooltipPrimitive.Trigger, { className: \"cursor-pointer text-slate-12 dark:text-slateDark-12\", asChild: true, children: children }), _jsxs(TooltipPrimitive.Content, __assign({ align: \"center\" }, props, { side: side, className: cn('mr-2', tooltipVariants({ weight: weight, radius: radius, color: color }), className), sideOffset: 5, children: [content, _jsx(TooltipPrimitive.Arrow, { width: 11, height: 5, className: arrowColor })] }))] }) }));\n});\nTooltip.displayName = 'Tooltip';\nexport default Tooltip;\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","tooltipVariants","cva","variants","weight","weightVariants","radius","radiusVariants","color","primaryColorStyle","Tooltip","React","forwardRef","_a","ref","content","children","defaultOpen","open","className","side","onOpenChange","props","arrowColor","concat","_jsx","TooltipPrimitive.Provider","_jsxs","jsxs","TooltipPrimitive.Root","TooltipPrimitive.Trigger","asChild","TooltipPrimitive.Content","align","cn","sideOffset","jsx","TooltipPrimitive.Arrow","width","height","displayName"],"mappings":"6bAAA,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,EAQIiB,EAAkBC,EAAI,0hBAA2hB,CACjjBC,SAAU,CACNC,OAAQvB,EAAS,CAAE,EAAEwB,GACrBC,OAAQzB,EAAS,CAAA,EAAI0B,EAAe,gBACpCC,MAAOC,OAGXC,EAAUC,EAAMC,YAAW,SAAUC,EAAIC,GACzC,IAAIC,EAAUF,EAAGE,QAASX,EAASS,EAAGT,OAAQI,EAAQK,EAAGL,MAAOF,EAASO,EAAGP,OAAQU,EAAWH,EAAGG,SAAUC,EAAcJ,EAAGI,YAAaC,EAAOL,EAAGK,KAAMC,EAAYN,EAAGM,UAAWC,EAAOP,EAAGO,KAAMC,EAAeR,EAAGQ,aAAcC,EAAQ1B,EAAOiB,EAAI,CAAC,UAAW,SAAU,QAAS,SAAU,WAAY,cAAe,OAAQ,YAAa,OAAQ,iBACnVO,IACDA,EAAO,OACI,SAAXd,IACAA,EAAS,SACb,IAAIiB,EAAaf,EACX,QAAQgB,OAAOhB,EAAO,iBAAiBgB,OAAOhB,EAAO,UACrD,uCACN,OAAQiB,EAAAA,IAAKC,EAA2B,CAAEV,SAAUW,EAAKC,KAACC,EAAuB,CAAEX,KAAMA,EAAMD,YAAaA,EAAaI,aAAcA,EAAcL,SAAU,CAACS,MAAKK,EAA0B,CAAEX,UAAW,sDAAuDY,SAAS,EAAMf,SAAUA,IAAaW,EAAKC,KAACI,EAA0BnD,EAAS,CAAEoD,MAAO,UAAYX,EAAO,CAAEF,KAAMA,EAAMD,UAAWe,EAAG,OAAQjC,EAAgB,CAAEG,OAAQA,EAAQE,OAAQA,EAAQE,MAAOA,IAAUW,GAAYgB,WAAY,EAAGnB,SAAU,CAACD,EAASU,EAAIW,IAACC,EAAwB,CAAEC,MAAO,GAAIC,OAAQ,EAAGpB,UAAWI,YACxkB,IACAb,EAAQ8B,YAAc"}
|