@lotte-innovate/ui-component-test 0.0.49 → 0.0.51
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +78 -281
- package/dist/globals.css +4 -0
- package/dist/lib/Typography/Header/index.d.ts +1 -1
- package/dist/lib/Typography/Header/{index.jsx → index.js} +4 -7
- package/dist/lib/Typography/Text/index.d.ts +1 -1
- package/dist/lib/Typography/Text/{index.jsx → index.js} +5 -8
- package/dist/lib/components/Accordion/index.d.ts +1 -1
- package/dist/lib/components/Accordion/{index.jsx → index.js} +7 -19
- package/dist/lib/components/AlertDialog/AlertDialogAction.d.ts +1 -1
- package/dist/lib/components/AlertDialog/{AlertDialogAction.jsx → AlertDialogAction.js} +5 -6
- package/dist/lib/components/AlertDialog/AlertDialogCancel.d.ts +1 -1
- package/dist/lib/components/AlertDialog/{AlertDialogCancel.jsx → AlertDialogCancel.js} +5 -6
- package/dist/lib/components/AlertDialog/{AlertDialogContent.jsx → AlertDialogContent.js} +5 -9
- package/dist/lib/components/AlertDialog/{AlertDialogDescription.jsx → AlertDialogDescription.js} +15 -5
- package/dist/lib/components/AlertDialog/AlertDialogRoot.d.ts +1 -1
- package/dist/lib/components/AlertDialog/{AlertDialogRoot.jsx → AlertDialogRoot.js} +14 -6
- package/dist/lib/components/AlertDialog/{AlertDialogTitle.jsx → AlertDialogTitle.js} +15 -5
- package/dist/lib/components/AlertDialog/AlertDialogTrigger.d.ts +1 -1
- package/dist/lib/components/AlertDialog/{AlertDialogTrigger.jsx → AlertDialogTrigger.js} +5 -6
- package/dist/lib/components/AspectRatio/{index.jsx → index.js} +5 -6
- package/dist/lib/components/Avatar/{index.jsx → index.js} +5 -9
- package/dist/lib/components/Badge/index.d.ts +1 -1
- package/dist/lib/components/Badge/{index.jsx → index.js} +5 -6
- package/dist/lib/components/BarChart/index.d.ts +2 -3
- package/dist/lib/components/BarChart/{index.jsx → index.js} +7 -6
- package/dist/lib/components/BubbleChart/index.d.ts +2 -3
- package/dist/lib/components/BubbleChart/{index.jsx → index.js} +7 -7
- package/dist/lib/components/Button/index.d.ts +1 -1
- package/dist/lib/components/Button/{index.jsx → index.js} +5 -6
- package/dist/lib/components/Callout/{CalloutIcon.jsx → CalloutIcon.js} +5 -10
- package/dist/lib/components/Callout/CalloutRoot.d.ts +1 -1
- package/dist/lib/components/Callout/{CalloutRoot.jsx → CalloutRoot.js} +5 -8
- package/dist/lib/components/Callout/{CalloutText.jsx → CalloutText.js} +15 -5
- package/dist/lib/components/Card/index.d.ts +1 -1
- package/dist/lib/components/Card/{index.jsx → index.js} +5 -6
- package/dist/lib/components/Checkbox/index.d.ts +1 -1
- package/dist/lib/components/Checkbox/{index.jsx → index.js} +6 -14
- package/dist/lib/components/CheckboxCard/index.d.ts +2 -2
- package/dist/lib/components/CheckboxCard/{index.jsx → index.js} +7 -9
- package/dist/lib/components/CheckboxGroup/CheckboxGroupItem.d.ts +1 -1
- package/dist/lib/components/CheckboxGroup/{CheckboxGroupItem.jsx → CheckboxGroupItem.js} +15 -7
- package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.d.ts +2 -2
- package/dist/lib/components/CheckboxGroup/{CheckboxGroupRoot.jsx → CheckboxGroupRoot.js} +3 -6
- package/dist/lib/components/CheckboxGroup/index.d.ts +1 -1
- package/dist/lib/components/ContextMenu/{ContextMenuCheckboxItem.jsx → ContextMenuCheckboxItem.js} +16 -9
- package/dist/lib/components/ContextMenu/{ContextMenuContent.jsx → ContextMenuContent.js} +5 -8
- package/dist/lib/components/ContextMenu/{ContextMenuGroup.jsx → ContextMenuGroup.js} +14 -4
- package/dist/lib/components/ContextMenu/{ContextMenuItem.jsx → ContextMenuItem.js} +5 -7
- package/dist/lib/components/ContextMenu/{ContextMenuItemIndicator.jsx → ContextMenuItemIndicator.js} +5 -6
- package/dist/lib/components/ContextMenu/{ContextMenuLabel.jsx → ContextMenuLabel.js} +5 -6
- package/dist/lib/components/ContextMenu/{ContextMenuRadioGroup.jsx → ContextMenuRadioGroup.js} +14 -6
- package/dist/lib/components/ContextMenu/{ContextMenuRadioItem.jsx → ContextMenuRadioItem.js} +16 -9
- package/dist/lib/components/ContextMenu/ContextMenuRoot.d.ts +1 -1
- package/dist/lib/components/ContextMenu/{ContextMenuRoot.jsx → ContextMenuRoot.js} +14 -6
- package/dist/lib/components/ContextMenu/{ContextMenuSeparator.jsx → ContextMenuSeparator.js} +15 -5
- package/dist/lib/components/ContextMenu/{ContextMenuSubContent.jsx → ContextMenuSubContent.js} +9 -12
- package/dist/lib/components/ContextMenu/{ContextMenuSubTrigger.jsx → ContextMenuSubTrigger.js} +16 -11
- package/dist/lib/components/ContextMenu/{ContextMenuTrigger.jsx → ContextMenuTrigger.js} +15 -5
- package/dist/lib/components/DataList/{DataListItem.jsx → DataListItem.js} +5 -6
- package/dist/lib/components/DataList/{DataListLabel.jsx → DataListLabel.js} +5 -6
- package/dist/lib/components/DataList/{DataListRoot.jsx → DataListRoot.js} +15 -7
- package/dist/lib/components/DataList/{DataListValue.jsx → DataListValue.js} +5 -6
- package/dist/lib/components/Dialog/{DialogAction.jsx → DialogAction.js} +16 -6
- package/dist/lib/components/Dialog/{DialogCancel.jsx → DialogCancel.js} +15 -5
- package/dist/lib/components/Dialog/{DialogContent.jsx → DialogContent.js} +5 -6
- package/dist/lib/components/Dialog/{DialogDescription.jsx → DialogDescription.js} +15 -5
- package/dist/lib/components/Dialog/DialogRoot.d.ts +1 -1
- package/dist/lib/components/Dialog/{DialogRoot.jsx → DialogRoot.js} +14 -6
- package/dist/lib/components/Dialog/{DialogSlot.jsx → DialogSlot.js} +15 -5
- package/dist/lib/components/Dialog/{DialogTitle.jsx → DialogTitle.js} +15 -5
- package/dist/lib/components/Dialog/{DialogTrigger.jsx → DialogTrigger.js} +14 -4
- package/dist/lib/components/Dialog/index.d.ts +1 -1
- package/dist/lib/components/DoughnutChart/index.d.ts +2 -3
- package/dist/lib/components/DoughnutChart/{index.jsx → index.js} +6 -6
- package/dist/lib/components/DropdownMenu/{DropdonMenuRadioGroup.jsx → DropdonMenuRadioGroup.js} +13 -3
- package/dist/lib/components/DropdownMenu/{DropdonMenuSubContent.jsx → DropdonMenuSubContent.js} +9 -12
- package/dist/lib/components/DropdownMenu/{DropdownMenuCheckboxItem.jsx → DropdownMenuCheckboxItem.js} +16 -9
- package/dist/lib/components/DropdownMenu/{DropdownMenuContent.jsx → DropdownMenuContent.js} +5 -8
- package/dist/lib/components/DropdownMenu/DropdownMenuItem.d.ts +1 -1
- package/dist/lib/components/DropdownMenu/{DropdownMenuItem.jsx → DropdownMenuItem.js} +5 -7
- package/dist/lib/components/DropdownMenu/{DropdownMenuItemIndicator.jsx → DropdownMenuItemIndicator.js} +5 -6
- package/dist/lib/components/DropdownMenu/{DropdownMenuLable.jsx → DropdownMenuLable.js} +15 -5
- package/dist/lib/components/DropdownMenu/{DropdownMenuRadioItem.jsx → DropdownMenuRadioItem.js} +16 -9
- package/dist/lib/components/DropdownMenu/DropdownMenuRoot.d.ts +2 -2
- package/dist/lib/components/DropdownMenu/{DropdownMenuRoot.jsx → DropdownMenuRoot.js} +14 -4
- package/dist/lib/components/DropdownMenu/{DropdownMenuSeparator.jsx → DropdownMenuSeparator.js} +15 -3
- package/dist/lib/components/DropdownMenu/{DropdownMenuSub.jsx → DropdownMenuSub.js} +14 -2
- package/dist/lib/components/DropdownMenu/{DropdownMenuSubTrigger.jsx → DropdownMenuSubTrigger.js} +16 -9
- package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.d.ts +1 -1
- package/dist/lib/components/DropdownMenu/{DropdownMenuTrigger.jsx → DropdownMenuTrigger.js} +15 -5
- package/dist/lib/components/DropdownMenu/index.d.ts +1 -1
- package/dist/lib/components/HoverCard/{HoverCardContent.jsx → HoverCardContent.js} +5 -6
- package/dist/lib/components/HoverCard/HoverCardRoot.d.ts +1 -1
- package/dist/lib/components/HoverCard/{HoverCardRoot.jsx → HoverCardRoot.js} +14 -6
- package/dist/lib/components/HoverCard/{HoverCardTrigger.jsx → HoverCardTrigger.js} +14 -4
- package/dist/lib/components/HoverCard/index.d.ts +1 -1
- package/dist/lib/components/IconButton/index.d.ts +1 -1
- package/dist/lib/components/IconButton/{index.jsx → index.js} +4 -5
- package/dist/lib/components/Inset/{index.jsx → index.js} +5 -8
- package/dist/lib/components/Label/index.d.ts +1 -1
- package/dist/lib/components/Label/{index.jsx → index.js} +4 -5
- package/dist/lib/components/LineChart/index.d.ts +2 -3
- package/dist/lib/components/LineChart/{index.jsx → index.js} +7 -6
- package/dist/lib/components/Menubar/{MenubarCheckboxItem.jsx → MenubarCheckboxItem.js} +16 -9
- package/dist/lib/components/Menubar/{MenubarContent.jsx → MenubarContent.js} +9 -12
- package/dist/lib/components/Menubar/{MenubarItem.jsx → MenubarItem.js} +5 -7
- package/dist/lib/components/Menubar/{MenubarItemIndicator.jsx → MenubarItemIndicator.js} +5 -6
- package/dist/lib/components/Menubar/{MenubarMenu.jsx → MenubarMenu.js} +14 -2
- package/dist/lib/components/Menubar/{MenubarRadioGroup.jsx → MenubarRadioGroup.js} +14 -6
- package/dist/lib/components/Menubar/{MenubarRadioItem.jsx → MenubarRadioItem.js} +16 -9
- package/dist/lib/components/Menubar/MenubarRoot.d.ts +1 -1
- package/dist/lib/components/Menubar/{MenubarRoot.jsx → MenubarRoot.js} +5 -8
- package/dist/lib/components/Menubar/{MenubarSeparator.jsx → MenubarSeparator.js} +15 -5
- package/dist/lib/components/Menubar/{MenubarSub.jsx → MenubarSub.js} +14 -2
- package/dist/lib/components/Menubar/{MenubarSubContent.jsx → MenubarSubContent.js} +6 -7
- package/dist/lib/components/Menubar/{MenubarSubTrigger.jsx → MenubarSubTrigger.js} +16 -9
- package/dist/lib/components/Menubar/{MenubarTrigger.jsx → MenubarTrigger.js} +5 -6
- package/dist/lib/components/NavigationMenu/{NavigationMenuContent.jsx → NavigationMenuContent.js} +5 -6
- package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.js +31 -0
- package/dist/lib/components/NavigationMenu/{NavigationMenuItem.jsx → NavigationMenuItem.js} +14 -4
- package/dist/lib/components/NavigationMenu/{NavigationMenuLink.jsx → NavigationMenuLink.js} +5 -6
- package/dist/lib/components/NavigationMenu/{NavigationMenuList.jsx → NavigationMenuList.js} +5 -7
- package/dist/lib/components/NavigationMenu/NavigationMenuRoot.d.ts +1 -1
- package/dist/lib/components/NavigationMenu/{NavigationMenuRoot.jsx → NavigationMenuRoot.js} +15 -7
- package/dist/lib/components/NavigationMenu/{NavigationMenuTrigger.jsx → NavigationMenuTrigger.js} +5 -7
- package/dist/lib/components/NavigationMenu/{NavigationMenuViewport.jsx → NavigationMenuViewport.js} +5 -6
- package/dist/lib/components/PieChart/index.d.ts +2 -3
- package/dist/lib/components/PieChart/{index.jsx → index.js} +6 -6
- package/dist/lib/components/Popover/{PopoverClose.jsx → PopoverClose.js} +15 -5
- package/dist/lib/components/Popover/{PopoverContent.jsx → PopoverContent.js} +5 -6
- package/dist/lib/components/Popover/PopoverRoot.d.ts +1 -1
- package/dist/lib/components/Popover/{PopoverRoot.jsx → PopoverRoot.js} +14 -6
- package/dist/lib/components/Popover/{PopoverTrigger.jsx → PopoverTrigger.js} +14 -4
- package/dist/lib/components/Popover/index.d.ts +1 -1
- package/dist/lib/components/Progress/{index.jsx → index.js} +5 -6
- package/dist/lib/components/RadarChart/index.d.ts +2 -3
- package/dist/lib/components/RadarChart/{index.jsx → index.js} +7 -7
- package/dist/lib/components/Radio/index.d.ts +1 -1
- package/dist/lib/components/Radio/{index.jsx → index.js} +15 -10
- package/dist/lib/components/RadioCards/{RadioCardsItem.jsx → RadioCardsItem.js} +15 -5
- package/dist/lib/components/RadioCards/{RadioCardsRoot.jsx → RadioCardsRoot.js} +5 -10
- package/dist/lib/components/RadioGroup/{RadioGroupItem.jsx → RadioGroupItem.js} +15 -5
- package/dist/lib/components/RadioGroup/RadioGroupRoot.d.ts +1 -1
- package/dist/lib/components/RadioGroup/{RadioGroupRoot.jsx → RadioGroupRoot.js} +15 -9
- package/dist/lib/components/ScrollArea/{index.jsx → index.js} +14 -6
- package/dist/lib/components/SegmentedControl/{SegmentedControlItem.jsx → SegmentedControlItem.js} +15 -5
- package/dist/lib/components/SegmentedControl/SegmentedControlRoot.d.ts +1 -1
- package/dist/lib/components/SegmentedControl/{SegmentedControlRoot.jsx → SegmentedControlRoot.js} +4 -7
- package/dist/lib/components/SegmentedControl/index.d.ts +1 -1
- package/dist/lib/components/Select/index.d.ts +1 -1
- package/dist/lib/components/Select/{index.jsx → index.js} +10 -27
- package/dist/lib/components/Separator/{index.jsx → index.js} +4 -7
- package/dist/lib/components/Skeleton/index.d.ts +1 -1
- package/dist/lib/components/Skeleton/{index.jsx → index.js} +4 -7
- package/dist/lib/components/Slider/index.d.ts +1 -1
- package/dist/lib/components/Slider/{index.jsx → index.js} +4 -5
- package/dist/lib/components/Spinner/index.d.ts +1 -1
- package/dist/lib/components/Spinner/{index.jsx → index.js} +4 -7
- package/dist/lib/components/TabNav/{index.jsx → index.js} +15 -9
- package/dist/lib/components/Table/index.d.ts +1 -1
- package/dist/lib/components/Table/{index.jsx → index.js} +10 -25
- package/dist/lib/components/Tabs/{index.jsx → index.js} +7 -16
- package/dist/lib/components/TextArea/index.d.ts +1 -1
- package/dist/lib/components/TextArea/{index.jsx → index.js} +4 -5
- package/dist/lib/components/TextField/index.d.ts +1 -1
- package/dist/lib/components/TextField/{index.jsx → index.js} +5 -10
- package/dist/lib/components/Toast/ToastActionButton.d.ts +1 -1
- package/dist/lib/components/Toast/{ToastActionButton.jsx → ToastActionButton.js} +6 -7
- package/dist/lib/components/Toast/ToastDescription.d.ts +1 -1
- package/dist/lib/components/Toast/{ToastDescription.jsx → ToastDescription.js} +15 -7
- package/dist/lib/components/Toast/{ToastRoot.jsx → ToastRoot.js} +5 -11
- package/dist/lib/components/Toast/ToastTitle.d.ts +1 -1
- package/dist/lib/components/Toast/{ToastTitle.jsx → ToastTitle.js} +15 -5
- package/dist/lib/components/Toggle/ToggleWithText.d.ts +1 -1
- package/dist/lib/components/Toggle/{ToggleWithText.jsx → ToggleWithText.js} +7 -9
- package/dist/lib/components/Toggle/index.d.ts +1 -1
- package/dist/lib/components/Toggle/{index.jsx → index.js} +5 -6
- package/dist/lib/components/ToggleGroup/ToggleGroupItem.d.ts +1 -1
- package/dist/lib/components/ToggleGroup/{ToggleGroupItem.jsx → ToggleGroupItem.js} +16 -6
- package/dist/lib/components/ToggleGroup/ToggleGroupRoot.d.ts +1 -1
- package/dist/lib/components/ToggleGroup/{ToggleGroupRoot.jsx → ToggleGroupRoot.js} +5 -10
- package/dist/lib/components/ToggleSwitch/{index.jsx → index.js} +5 -9
- package/dist/lib/components/Tooltip/index.d.ts +1 -1
- package/dist/lib/components/Tooltip/{index.jsx → index.js} +4 -13
- package/dist/lib/constants.js +2 -2
- package/dist/lib/index.d.ts +2 -2
- package/dist/lib/index.js +2 -2
- package/dist/lib/utils/useDarkMode.js +1 -1
- package/dist/tailwind.config.d.ts +3 -0
- package/dist/tailwind.config.js +141 -0
- package/package.json +4 -2
- package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.jsx +0 -22
- /package/dist/lib/components/AlertDialog/{index.jsx → index.js} +0 -0
- /package/dist/lib/components/Callout/{index.jsx → index.js} +0 -0
- /package/dist/lib/components/CheckboxGroup/{index.jsx → index.js} +0 -0
- /package/dist/lib/components/ContextMenu/{index.jsx → index.js} +0 -0
- /package/dist/lib/components/DataList/{index.jsx → index.js} +0 -0
- /package/dist/lib/components/Dialog/{index.jsx → index.js} +0 -0
- /package/dist/lib/components/DropdownMenu/{index.jsx → index.js} +0 -0
- /package/dist/lib/components/HoverCard/{index.jsx → index.js} +0 -0
- /package/dist/lib/components/Menubar/{index.jsx → index.js} +0 -0
- /package/dist/lib/components/NavigationMenu/{index.jsx → index.js} +0 -0
- /package/dist/lib/components/Popover/{index.jsx → index.js} +0 -0
- /package/dist/lib/components/RadioCards/{index.jsx → index.js} +0 -0
- /package/dist/lib/components/RadioGroup/{index.jsx → index.js} +0 -0
- /package/dist/lib/components/SegmentedControl/{index.jsx → index.js} +0 -0
- /package/dist/lib/components/Toast/{index.jsx → index.js} +0 -0
- /package/dist/lib/components/ToggleGroup/{index.jsx → index.js} +0 -0
@@ -1,3 +1,14 @@
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
2
|
+
__assign = Object.assign || function(t) {
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
4
|
+
s = arguments[i];
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
6
|
+
t[p] = s[p];
|
7
|
+
}
|
8
|
+
return t;
|
9
|
+
};
|
10
|
+
return __assign.apply(this, arguments);
|
11
|
+
};
|
1
12
|
var __rest = (this && this.__rest) || function (s, e) {
|
2
13
|
var t = {};
|
3
14
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
@@ -9,10 +20,11 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
9
20
|
}
|
10
21
|
return t;
|
11
22
|
};
|
12
|
-
import
|
23
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
24
|
+
import { forwardRef, useContext } from 'react';
|
13
25
|
import { cva } from 'class-variance-authority';
|
14
26
|
import { DialogContext } from './DialogRoot';
|
15
|
-
import { cn } from 'lib/utils/utils';
|
27
|
+
import { cn } from '../../../lib/utils/utils';
|
16
28
|
export var dialogSlotVariants = cva('flex flex-col gap-2 font-normal text-slate-12 dark:text-slateDark-12', {
|
17
29
|
variants: {
|
18
30
|
size: {
|
@@ -29,8 +41,6 @@ export var dialogSlotVariants = cva('flex flex-col gap-2 font-normal text-slate-
|
|
29
41
|
export var DialogSlot = forwardRef(function (_a, ref) {
|
30
42
|
var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
|
31
43
|
var size = useContext(DialogContext).size;
|
32
|
-
return (
|
33
|
-
{children}
|
34
|
-
</div>);
|
44
|
+
return (_jsx("div", __assign({ ref: ref, className: cn(dialogSlotVariants({ size: size }), className) }, props, { children: children })));
|
35
45
|
});
|
36
46
|
DialogSlot.displayName = 'Dialog.Slot';
|
@@ -1,3 +1,14 @@
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
2
|
+
__assign = Object.assign || function(t) {
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
4
|
+
s = arguments[i];
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
6
|
+
t[p] = s[p];
|
7
|
+
}
|
8
|
+
return t;
|
9
|
+
};
|
10
|
+
return __assign.apply(this, arguments);
|
11
|
+
};
|
1
12
|
var __rest = (this && this.__rest) || function (s, e) {
|
2
13
|
var t = {};
|
3
14
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
@@ -9,11 +20,12 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
9
20
|
}
|
10
21
|
return t;
|
11
22
|
};
|
12
|
-
import
|
23
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
24
|
+
import { forwardRef, useContext } from 'react';
|
13
25
|
import { cva } from 'class-variance-authority';
|
14
26
|
import { Dialog as DialogTheme } from '@radix-ui/themes';
|
15
27
|
import { DialogContext } from './DialogRoot';
|
16
|
-
import { cn } from 'lib/utils/utils';
|
28
|
+
import { cn } from '../../../lib/utils/utils';
|
17
29
|
export var dialogTitleVariants = cva('font-bold text-slate-12 dark:text-slateDark-12', {
|
18
30
|
variants: {
|
19
31
|
size: {
|
@@ -30,8 +42,6 @@ export var dialogTitleVariants = cva('font-bold text-slate-12 dark:text-slateDar
|
|
30
42
|
export var DialogTitle = forwardRef(function (_a, ref) {
|
31
43
|
var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
|
32
44
|
var size = useContext(DialogContext).size;
|
33
|
-
return (
|
34
|
-
{children}
|
35
|
-
</DialogTheme.Title>);
|
45
|
+
return (_jsx(DialogTheme.Title, __assign({ ref: ref, className: cn(dialogTitleVariants({ size: size }), className) }, props, { children: children })));
|
36
46
|
});
|
37
47
|
DialogTitle.displayName = 'Dialog.Title';
|
@@ -1,3 +1,14 @@
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
2
|
+
__assign = Object.assign || function(t) {
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
4
|
+
s = arguments[i];
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
6
|
+
t[p] = s[p];
|
7
|
+
}
|
8
|
+
return t;
|
9
|
+
};
|
10
|
+
return __assign.apply(this, arguments);
|
11
|
+
};
|
1
12
|
var __rest = (this && this.__rest) || function (s, e) {
|
2
13
|
var t = {};
|
3
14
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
@@ -9,12 +20,11 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
9
20
|
}
|
10
21
|
return t;
|
11
22
|
};
|
12
|
-
import
|
23
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
24
|
+
import { forwardRef } from 'react';
|
13
25
|
import { Dialog as DialogTheme } from '@radix-ui/themes';
|
14
26
|
export var DialogTrigger = forwardRef(function (_a, ref) {
|
15
27
|
var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
|
16
|
-
return (
|
17
|
-
{children}
|
18
|
-
</DialogTheme.Trigger>);
|
28
|
+
return (_jsx(DialogTheme.Trigger, __assign({ ref: ref, className: className }, props, { children: children })));
|
19
29
|
});
|
20
30
|
DialogTrigger.displayName = 'Dialog.Trigger';
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
declare const Dialog: {
|
3
3
|
Root: {
|
4
|
-
({ children, radius, size, scaling, color, ...props }: import("@radix-ui/themes/dist/cjs/components/dialog").RootProps & import("./DialogRoot").DialogProps): import("react").JSX.Element;
|
4
|
+
({ children, radius, size, scaling, color, ...props }: import("@radix-ui/themes/dist/cjs/components/dialog").RootProps & import("./DialogRoot").DialogProps): import("react/jsx-runtime").JSX.Element;
|
5
5
|
displayName: string;
|
6
6
|
};
|
7
7
|
Trigger: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/themes/dist/cjs/components/dialog").TriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import React from 'react';
|
2
1
|
import { VariantProps } from 'class-variance-authority';
|
3
|
-
import { IChartDataLabels, IChartDatasets, IChartLegend, IChartTitle } from 'lib/types';
|
2
|
+
import { IChartDataLabels, IChartDatasets, IChartLegend, IChartTitle } from '../../../lib/types';
|
4
3
|
export interface DoughnutChartProps extends VariantProps<typeof doughnutVariants> {
|
5
4
|
labels?: string[];
|
6
5
|
appearance?: 'solid' | 'soft';
|
@@ -17,7 +16,7 @@ declare const doughnutVariants: (props?: ({
|
|
17
16
|
scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
|
18
17
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
19
18
|
declare const DoughnutChart: {
|
20
|
-
({ labels, title, legend, datasets, datalabels, scaling, className, appearance, isColorMixed, ...rest }: DoughnutChartProps):
|
19
|
+
({ labels, title, legend, datasets, datalabels, scaling, className, appearance, isColorMixed, ...rest }: DoughnutChartProps): import("react/jsx-runtime").JSX.Element;
|
21
20
|
displayName: string;
|
22
21
|
};
|
23
22
|
export default DoughnutChart;
|
@@ -20,14 +20,14 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
20
20
|
}
|
21
21
|
return t;
|
22
22
|
};
|
23
|
-
import
|
23
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
24
24
|
import { Doughnut } from 'react-chartjs-2';
|
25
25
|
import { Chart as ChartJS, ArcElement, Tooltip, Legend, plugins } from 'chart.js/auto';
|
26
26
|
import ChartDataLabels from 'chartjs-plugin-datalabels';
|
27
|
-
import { cn } from 'lib/utils/utils';
|
27
|
+
import { cn } from '../../../lib/utils/utils';
|
28
28
|
import { cva } from 'class-variance-authority';
|
29
|
-
import { scalingVariants } from 'lib/constants';
|
30
|
-
import { chartColorList, chartAlphaColorList } from 'lib/color/constants';
|
29
|
+
import { scalingVariants } from '../../../lib/constants';
|
30
|
+
import { chartColorList, chartAlphaColorList } from '../../../lib/color/constants';
|
31
31
|
ChartJS.register(ArcElement, Tooltip, Legend, plugins, ChartDataLabels);
|
32
32
|
ChartJS.defaults.set('plugins.datalabels', {
|
33
33
|
display: false,
|
@@ -53,13 +53,13 @@ var DoughnutChart = function (_a) {
|
|
53
53
|
datasets.forEach(function (dataset, index) {
|
54
54
|
datasets[index] = __assign(__assign({}, dataset), { backgroundColor: getChartColor(isColorMixed, appearance), borderColor: getChartColor(isColorMixed, 'solid') });
|
55
55
|
});
|
56
|
-
return (
|
56
|
+
return (_jsx(Doughnut, __assign({ data: { labels: labels, datasets: datasets }, options: {
|
57
57
|
plugins: {
|
58
58
|
title: title,
|
59
59
|
legend: legend,
|
60
60
|
datalabels: datalabels,
|
61
61
|
},
|
62
|
-
}
|
62
|
+
}, className: cn(doughnutVariants({ scaling: scaling }), className) }, rest)));
|
63
63
|
};
|
64
64
|
DoughnutChart.displayName = 'DoughnutChart';
|
65
65
|
export default DoughnutChart;
|
package/dist/lib/components/DropdownMenu/{DropdonMenuRadioGroup.jsx → DropdonMenuRadioGroup.js}
RENAMED
@@ -1,3 +1,14 @@
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
2
|
+
__assign = Object.assign || function(t) {
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
4
|
+
s = arguments[i];
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
6
|
+
t[p] = s[p];
|
7
|
+
}
|
8
|
+
return t;
|
9
|
+
};
|
10
|
+
return __assign.apply(this, arguments);
|
11
|
+
};
|
1
12
|
var __rest = (this && this.__rest) || function (s, e) {
|
2
13
|
var t = {};
|
3
14
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
@@ -9,12 +20,11 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
9
20
|
}
|
10
21
|
return t;
|
11
22
|
};
|
23
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
12
24
|
import React, { forwardRef, Children } from 'react';
|
13
25
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
14
26
|
export var DropdownMenuRadioGroup = forwardRef(function (_a, ref) {
|
15
27
|
var className = _a.className, children = _a.children, value = _a.value, props = __rest(_a, ["className", "children", "value"]);
|
16
|
-
return (
|
17
|
-
{Children.map(children, function (child) { return React.cloneElement(child, { selectedValue: value }); })}
|
18
|
-
</DropdownMenuPrimitive.RadioGroup>);
|
28
|
+
return (_jsx(DropdownMenuPrimitive.RadioGroup, __assign({ ref: ref, className: className }, props, { children: Children.map(children, function (child) { return React.cloneElement(child, { selectedValue: value }); }) })));
|
19
29
|
});
|
20
30
|
DropdownMenuRadioGroup.displayName = 'DropdownMenu.RadioGroup';
|
package/dist/lib/components/DropdownMenu/{DropdonMenuSubContent.jsx → DropdonMenuSubContent.js}
RENAMED
@@ -20,12 +20,13 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
20
20
|
}
|
21
21
|
return t;
|
22
22
|
};
|
23
|
-
import
|
23
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
24
|
+
import { forwardRef, useContext } from 'react';
|
24
25
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
25
26
|
import { cva } from 'class-variance-authority';
|
26
|
-
import { scalingVariants } from 'lib/constants';
|
27
|
+
import { scalingVariants } from '../../../lib/constants';
|
27
28
|
import { DropdownMenuContext } from './DropdownMenuRoot';
|
28
|
-
import { cn } from 'lib/utils/utils';
|
29
|
+
import { cn } from '../../../lib/utils/utils';
|
29
30
|
export var dropdownMenuSubContentVariants = cva("p-[5px] bg-white dark:bg-slateDark-1 will-change-[transform,opacity]\n shadow-[0px_10px_38px_-10px_rgba(22,_23,_24,_0.35),_0px_10px_20px_-15px_rgba(22,_23,_24,_0.2)] \n [animation-duration:_400ms] [animation-timing-function:_cubic-bezier(0.16,_1,_0.3,_1)]", {
|
30
31
|
variants: {
|
31
32
|
radius: {
|
@@ -50,14 +51,10 @@ export var dropdownMenuSubContentVariants = cva("p-[5px] bg-white dark:bg-slateD
|
|
50
51
|
export var DropdownMenuSubContent = forwardRef(function (_a, ref) {
|
51
52
|
var className = _a.className, children = _a.children, props = __rest(_a, ["className", "children"]);
|
52
53
|
var _b = useContext(DropdownMenuContext), radius = _b.radius, scaling = _b.scaling, size = _b.size;
|
53
|
-
return (
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
}), className)} sideOffset={2} alignOffset={-5} {...props}>
|
59
|
-
{children}
|
60
|
-
</DropdownMenuPrimitive.SubContent>
|
61
|
-
</DropdownMenuPrimitive.Portal>);
|
54
|
+
return (_jsx(DropdownMenuPrimitive.Portal, { children: _jsx(DropdownMenuPrimitive.SubContent, __assign({ ref: ref, className: cn(dropdownMenuSubContentVariants({
|
55
|
+
radius: radius,
|
56
|
+
size: size,
|
57
|
+
scaling: scaling,
|
58
|
+
}), className), sideOffset: 2, alignOffset: -5 }, props, { children: children })) }));
|
62
59
|
});
|
63
60
|
DropdownMenuSubContent.displayName = 'DropdownMenu.SubContent';
|
@@ -1,3 +1,14 @@
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
2
|
+
__assign = Object.assign || function(t) {
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
4
|
+
s = arguments[i];
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
6
|
+
t[p] = s[p];
|
7
|
+
}
|
8
|
+
return t;
|
9
|
+
};
|
10
|
+
return __assign.apply(this, arguments);
|
11
|
+
};
|
1
12
|
var __rest = (this && this.__rest) || function (s, e) {
|
2
13
|
var t = {};
|
3
14
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
@@ -9,14 +20,15 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
9
20
|
}
|
10
21
|
return t;
|
11
22
|
};
|
12
|
-
import
|
23
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
24
|
+
import { forwardRef, useContext } from 'react';
|
13
25
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
14
|
-
import { menuItemAppearanceStyle } from 'lib/constants';
|
26
|
+
import { menuItemAppearanceStyle } from '../../../lib/constants';
|
15
27
|
import { dropdownMenuItemVariants } from './DropdownMenuItem';
|
16
28
|
import { DropdownMenuItemIndicator } from './DropdownMenuItemIndicator';
|
17
29
|
import { CheckIcon } from '@radix-ui/react-icons';
|
18
30
|
import { DropdownMenuContext } from './DropdownMenuRoot';
|
19
|
-
import { cn } from 'lib/utils/utils';
|
31
|
+
import { cn } from '../../../lib/utils/utils';
|
20
32
|
export var DropdownMenuCheckboxItem = forwardRef(function (_a, ref) {
|
21
33
|
var className = _a.className, children = _a.children, shortcut = _a.shortcut, checked = _a.checked, props = __rest(_a, ["className", "children", "shortcut", "checked"]);
|
22
34
|
var _b = useContext(DropdownMenuContext), radius = _b.radius, size = _b.size, _c = _b.color, color = _c === void 0 ? 'red' : _c, _d = _b.appearance, appearance = _d === void 0 ? 'solid' : _d;
|
@@ -24,11 +36,6 @@ export var DropdownMenuCheckboxItem = forwardRef(function (_a, ref) {
|
|
24
36
|
radius: radius,
|
25
37
|
size: size,
|
26
38
|
}), menuItemAppearanceStyle(appearance, color), className);
|
27
|
-
return (
|
28
|
-
<DropdownMenuItemIndicator forceMount radius={'medium'} size={size}>
|
29
|
-
{checked && <CheckIcon />}
|
30
|
-
</DropdownMenuItemIndicator>
|
31
|
-
{children}
|
32
|
-
</DropdownMenuPrimitive.CheckboxItem>);
|
39
|
+
return (_jsxs(DropdownMenuPrimitive.CheckboxItem, __assign({ ref: ref, className: itemClassName }, props, { children: [_jsx(DropdownMenuItemIndicator, { forceMount: true, radius: 'medium', size: size, children: checked && _jsx(CheckIcon, {}) }), children] })));
|
33
40
|
});
|
34
41
|
DropdownMenuCheckboxItem.displayName = 'DropdownMenu.CheckboxItem';
|
@@ -20,12 +20,13 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
20
20
|
}
|
21
21
|
return t;
|
22
22
|
};
|
23
|
-
import
|
23
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
24
|
+
import { forwardRef, useContext } from 'react';
|
24
25
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
25
26
|
import { cva } from 'class-variance-authority';
|
26
|
-
import { scalingVariants } from 'lib/constants';
|
27
|
+
import { scalingVariants } from '../../../lib/constants';
|
27
28
|
import { DropdownMenuContext } from './DropdownMenuRoot';
|
28
|
-
import { cn } from 'lib/utils/utils';
|
29
|
+
import { cn } from '../../../lib/utils/utils';
|
29
30
|
export var dropdownMenuContentVariants = cva("p-[5px] bg-white dark:bg-slateDark-1 will-change-[transform,opacity]\n shadow-[0px_10px_38px_-10px_rgba(22,_23,_24,_0.35),_0px_10px_20px_-15px_rgba(22,_23,_24,_0.2)] \n [animation-duration:_400ms] [animation-timing-function:_cubic-bezier(0.16,_1,_0.3,_1)]", {
|
30
31
|
variants: {
|
31
32
|
radius: {
|
@@ -50,10 +51,6 @@ export var dropdownMenuContentVariants = cva("p-[5px] bg-white dark:bg-slateDark
|
|
50
51
|
export var DropdownMenuContent = forwardRef(function (_a, ref) {
|
51
52
|
var className = _a.className, children = _a.children, props = __rest(_a, ["className", "children"]);
|
52
53
|
var _b = useContext(DropdownMenuContext), size = _b.size, scaling = _b.scaling, radius = _b.radius;
|
53
|
-
return (
|
54
|
-
<DropdownMenuPrimitive.Content ref={ref} sideOffset={5} className={cn(dropdownMenuContentVariants({ radius: radius, scaling: scaling, size: size }), className)} {...props}>
|
55
|
-
{children}
|
56
|
-
</DropdownMenuPrimitive.Content>
|
57
|
-
</DropdownMenuPrimitive.Portal>);
|
54
|
+
return (_jsx(DropdownMenuPrimitive.Portal, { children: _jsx(DropdownMenuPrimitive.Content, __assign({ ref: ref, sideOffset: 5, className: cn(dropdownMenuContentVariants({ radius: radius, scaling: scaling, size: size }), className) }, props, { children: children })) }));
|
58
55
|
});
|
59
56
|
DropdownMenuContent.displayName = 'DropdownMenu.Content';
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
4
|
-
import { IColor } from 'lib/types';
|
4
|
+
import { IColor } from '../../../lib/types';
|
5
5
|
export interface DropdownMenuItemProps extends VariantProps<typeof dropdownMenuItemVariants> {
|
6
6
|
color?: IColor;
|
7
7
|
shortcut?: string;
|
@@ -20,12 +20,13 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
20
20
|
}
|
21
21
|
return t;
|
22
22
|
};
|
23
|
-
import
|
23
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
24
|
+
import { forwardRef, useContext } from 'react';
|
24
25
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
25
26
|
import { cva } from 'class-variance-authority';
|
26
|
-
import { menuItemAppearanceStyle, scalingVariants, radiusVariants, blackText } from 'lib/constants';
|
27
|
+
import { menuItemAppearanceStyle, scalingVariants, radiusVariants, blackText } from '../../../lib/constants';
|
27
28
|
import { DropdownMenuContext } from './DropdownMenuRoot';
|
28
|
-
import { cn } from 'lib/utils/utils';
|
29
|
+
import { cn } from '../../../lib/utils/utils';
|
29
30
|
export var dropdownMenuItemVariants = cva("flex gap-2 group relative leading-none select-none outline-none items-center\n data-[disabled]:text-slate-8 dark:data-[disabled]:text-slateDark-8 hover:data-[disabled]:bg-transparent dark:hover:data-[disabled]:bg-transparent text-slate-12 dark:text-slateDark-12", {
|
30
31
|
variants: {
|
31
32
|
radius: __assign({}, radiusVariants['menu-item']),
|
@@ -52,9 +53,6 @@ export var DropdownMenuItem = forwardRef(function (_a, ref) {
|
|
52
53
|
if (appearance === 'solid' && !blackText.includes(color)) {
|
53
54
|
shortcutClassName = 'ml-auto group-hover:text-white dark:group-hover:text-white';
|
54
55
|
}
|
55
|
-
return (
|
56
|
-
{children}
|
57
|
-
{shortcut && <span className={shortcutClassName}>{shortcut}</span>}
|
58
|
-
</DropdownMenuPrimitive.Item>);
|
56
|
+
return (_jsxs(DropdownMenuPrimitive.Item, __assign({ ref: ref }, props, { className: itemClassName, children: [children, shortcut && _jsx("span", { className: shortcutClassName, children: shortcut })] })));
|
59
57
|
});
|
60
58
|
DropdownMenuItem.displayName = 'DropdownMenu.Item';
|
@@ -20,12 +20,13 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
20
20
|
}
|
21
21
|
return t;
|
22
22
|
};
|
23
|
-
import
|
23
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
24
|
+
import { forwardRef, useContext } from 'react';
|
24
25
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
25
26
|
import { cva } from 'class-variance-authority';
|
26
|
-
import { radiusVariants } from 'lib/constants';
|
27
|
+
import { radiusVariants } from '../../../lib/constants';
|
27
28
|
import { DropdownMenuContext } from './DropdownMenuRoot';
|
28
|
-
import { cn } from 'lib/utils/utils';
|
29
|
+
import { cn } from '../../../lib/utils/utils';
|
29
30
|
export var dropdownMenuItemIndicatorVariants = cva("inline-flex items-center justify-center border", {
|
30
31
|
variants: {
|
31
32
|
radius: __assign({}, radiusVariants['base']),
|
@@ -42,8 +43,6 @@ export var dropdownMenuItemIndicatorVariants = cva("inline-flex items-center jus
|
|
42
43
|
export var DropdownMenuItemIndicator = forwardRef(function (_a, ref) {
|
43
44
|
var className = _a.className, children = _a.children, radius = _a.radius, props = __rest(_a, ["className", "children", "radius"]);
|
44
45
|
var size = useContext(DropdownMenuContext).size;
|
45
|
-
return (
|
46
|
-
{children}
|
47
|
-
</DropdownMenuPrimitive.ItemIndicator>);
|
46
|
+
return (_jsx(DropdownMenuPrimitive.ItemIndicator, __assign({ ref: ref, className: cn(dropdownMenuItemIndicatorVariants({ radius: radius, size: size }), className) }, props, { children: children })));
|
48
47
|
});
|
49
48
|
DropdownMenuItemIndicator.displayName = 'DropdownMenu.ItemIndicator';
|
@@ -1,3 +1,14 @@
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
2
|
+
__assign = Object.assign || function(t) {
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
4
|
+
s = arguments[i];
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
6
|
+
t[p] = s[p];
|
7
|
+
}
|
8
|
+
return t;
|
9
|
+
};
|
10
|
+
return __assign.apply(this, arguments);
|
11
|
+
};
|
1
12
|
var __rest = (this && this.__rest) || function (s, e) {
|
2
13
|
var t = {};
|
3
14
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
@@ -9,11 +20,12 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
9
20
|
}
|
10
21
|
return t;
|
11
22
|
};
|
12
|
-
import
|
23
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
24
|
+
import { forwardRef, useContext } from 'react';
|
13
25
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
14
26
|
import { cva } from 'class-variance-authority';
|
15
27
|
import { DropdownMenuContext } from './DropdownMenuRoot';
|
16
|
-
import { cn } from 'lib/utils/utils';
|
28
|
+
import { cn } from '../../../lib/utils/utils';
|
17
29
|
export var dropdownMenuLabelVariants = cva("flex relative leading-none select-none outline-none items-center font-normal text-slateA-11 dark:text-slateDarkA-11", {
|
18
30
|
variants: {
|
19
31
|
size: {
|
@@ -28,8 +40,6 @@ export var dropdownMenuLabelVariants = cva("flex relative leading-none select-no
|
|
28
40
|
export var DropdownMenuLabel = forwardRef(function (_a, ref) {
|
29
41
|
var className = _a.className, children = _a.children, props = __rest(_a, ["className", "children"]);
|
30
42
|
var size = useContext(DropdownMenuContext).size;
|
31
|
-
return (
|
32
|
-
{children}
|
33
|
-
</DropdownMenuPrimitive.Label>);
|
43
|
+
return (_jsx(DropdownMenuPrimitive.Label, __assign({ ref: ref, className: cn(dropdownMenuLabelVariants({ size: size }), className) }, props, { children: children })));
|
34
44
|
});
|
35
45
|
DropdownMenuLabel.displayName = 'DropdownMenu.Label';
|
package/dist/lib/components/DropdownMenu/{DropdownMenuRadioItem.jsx → DropdownMenuRadioItem.js}
RENAMED
@@ -1,3 +1,14 @@
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
2
|
+
__assign = Object.assign || function(t) {
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
4
|
+
s = arguments[i];
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
6
|
+
t[p] = s[p];
|
7
|
+
}
|
8
|
+
return t;
|
9
|
+
};
|
10
|
+
return __assign.apply(this, arguments);
|
11
|
+
};
|
1
12
|
var __rest = (this && this.__rest) || function (s, e) {
|
2
13
|
var t = {};
|
3
14
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
@@ -9,14 +20,15 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
9
20
|
}
|
10
21
|
return t;
|
11
22
|
};
|
12
|
-
import
|
23
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
24
|
+
import { forwardRef, useContext } from 'react';
|
13
25
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
14
26
|
import { DropdownMenuItemIndicator } from './DropdownMenuItemIndicator';
|
15
27
|
import { dropdownMenuItemVariants } from './DropdownMenuItem';
|
16
|
-
import { menuItemAppearanceStyle } from 'lib/constants';
|
28
|
+
import { menuItemAppearanceStyle } from '../../../lib/constants';
|
17
29
|
import { DotFilledIcon } from '@radix-ui/react-icons';
|
18
30
|
import { DropdownMenuContext } from './DropdownMenuRoot';
|
19
|
-
import { cn } from 'lib/utils/utils';
|
31
|
+
import { cn } from '../../../lib/utils/utils';
|
20
32
|
export var DropdownMenuRadioItem = forwardRef(function (_a, ref) {
|
21
33
|
var className = _a.className, children = _a.children, selectedValue = _a.selectedValue, props = __rest(_a, ["className", "children", "selectedValue"]);
|
22
34
|
var _b = useContext(DropdownMenuContext), radius = _b.radius, size = _b.size, _c = _b.color, color = _c === void 0 ? 'red' : _c, _d = _b.appearance, appearance = _d === void 0 ? 'solid' : _d;
|
@@ -24,11 +36,6 @@ export var DropdownMenuRadioItem = forwardRef(function (_a, ref) {
|
|
24
36
|
radius: radius,
|
25
37
|
size: size,
|
26
38
|
}), menuItemAppearanceStyle(appearance, color), className);
|
27
|
-
return (
|
28
|
-
<DropdownMenuItemIndicator forceMount radius={'full'} size={size}>
|
29
|
-
{selectedValue === props.value && <DotFilledIcon />}
|
30
|
-
</DropdownMenuItemIndicator>
|
31
|
-
{children}
|
32
|
-
</DropdownMenuPrimitive.RadioItem>);
|
39
|
+
return (_jsxs(DropdownMenuPrimitive.RadioItem, __assign({ ref: ref, className: itemClassName }, props, { children: [_jsx(DropdownMenuItemIndicator, { forceMount: true, radius: 'full', size: size, children: selectedValue === props.value && _jsx(DotFilledIcon, {}) }), children] })));
|
33
40
|
});
|
34
41
|
DropdownMenuRadioItem.displayName = 'DropdownMenu.RadioItem';
|
@@ -3,13 +3,13 @@ import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
4
4
|
import { dropdownMenuContentVariants } from './DropdownMenuContent';
|
5
5
|
import { dropdownMenuItemVariants } from './DropdownMenuItem';
|
6
|
-
import { IColor } from 'lib/types';
|
6
|
+
import { IColor } from '../../../lib/types';
|
7
7
|
export interface DropdownMenuProps extends VariantProps<typeof dropdownMenuContentVariants>, VariantProps<typeof dropdownMenuItemVariants> {
|
8
8
|
color?: IColor;
|
9
9
|
appearance?: 'solid' | 'soft';
|
10
10
|
}
|
11
11
|
export declare const DropdownMenuContext: React.Context<DropdownMenuProps>;
|
12
12
|
export declare const DropdownMenuRoot: {
|
13
|
-
({ children, radius, size, scaling, color, appearance, ...props }: ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Root> & DropdownMenuProps):
|
13
|
+
({ children, radius, size, scaling, color, appearance, ...props }: ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Root> & DropdownMenuProps): import("react/jsx-runtime").JSX.Element;
|
14
14
|
displayName: string;
|
15
15
|
};
|
@@ -1,3 +1,14 @@
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
2
|
+
__assign = Object.assign || function(t) {
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
4
|
+
s = arguments[i];
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
6
|
+
t[p] = s[p];
|
7
|
+
}
|
8
|
+
return t;
|
9
|
+
};
|
10
|
+
return __assign.apply(this, arguments);
|
11
|
+
};
|
1
12
|
var __rest = (this && this.__rest) || function (s, e) {
|
2
13
|
var t = {};
|
3
14
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
@@ -9,7 +20,8 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
9
20
|
}
|
10
21
|
return t;
|
11
22
|
};
|
12
|
-
import
|
23
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
24
|
+
import { createContext } from 'react';
|
13
25
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
14
26
|
export var DropdownMenuContext = createContext({
|
15
27
|
radius: 'medium',
|
@@ -21,8 +33,6 @@ export var DropdownMenuContext = createContext({
|
|
21
33
|
export var DropdownMenuRoot = function (_a) {
|
22
34
|
var children = _a.children, radius = _a.radius, size = _a.size, scaling = _a.scaling, color = _a.color, appearance = _a.appearance, props = __rest(_a, ["children", "radius", "size", "scaling", "color", "appearance"]);
|
23
35
|
var contextValue = { radius: radius, size: size, scaling: scaling, color: color, appearance: appearance };
|
24
|
-
return (
|
25
|
-
<DropdownMenuPrimitive.Root {...props}>{children}</DropdownMenuPrimitive.Root>
|
26
|
-
</DropdownMenuContext.Provider>);
|
36
|
+
return (_jsx(DropdownMenuContext.Provider, { value: contextValue, children: _jsx(DropdownMenuPrimitive.Root, __assign({}, props, { children: children })) }));
|
27
37
|
};
|
28
38
|
DropdownMenuRoot.displayName = 'DropdownMenu.Root';
|
package/dist/lib/components/DropdownMenu/{DropdownMenuSeparator.jsx → DropdownMenuSeparator.js}
RENAMED
@@ -1,3 +1,14 @@
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
2
|
+
__assign = Object.assign || function(t) {
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
4
|
+
s = arguments[i];
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
6
|
+
t[p] = s[p];
|
7
|
+
}
|
8
|
+
return t;
|
9
|
+
};
|
10
|
+
return __assign.apply(this, arguments);
|
11
|
+
};
|
1
12
|
var __rest = (this && this.__rest) || function (s, e) {
|
2
13
|
var t = {};
|
3
14
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
@@ -9,11 +20,12 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
9
20
|
}
|
10
21
|
return t;
|
11
22
|
};
|
12
|
-
import
|
23
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
24
|
+
import { forwardRef } from 'react';
|
13
25
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
14
|
-
import { cn } from 'lib/utils/utils';
|
26
|
+
import { cn } from '../../../lib/utils/utils';
|
15
27
|
export var DropdownMenuSeparator = forwardRef(function (_a, ref) {
|
16
28
|
var className = _a.className, children = _a.children, color = _a.color, props = __rest(_a, ["className", "children", "color"]);
|
17
|
-
return (
|
29
|
+
return (_jsx(DropdownMenuPrimitive.Separator, __assign({ ref: ref, className: cn('h-[1px] m-[5px] bg-slate-6 dark:bg-slateDark-6', className) }, props)));
|
18
30
|
});
|
19
31
|
DropdownMenuSeparator.displayName = 'DropdownMenu.Separator';
|
@@ -1,3 +1,14 @@
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
2
|
+
__assign = Object.assign || function(t) {
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
4
|
+
s = arguments[i];
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
6
|
+
t[p] = s[p];
|
7
|
+
}
|
8
|
+
return t;
|
9
|
+
};
|
10
|
+
return __assign.apply(this, arguments);
|
11
|
+
};
|
1
12
|
var __rest = (this && this.__rest) || function (s, e) {
|
2
13
|
var t = {};
|
3
14
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
@@ -9,10 +20,11 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
9
20
|
}
|
10
21
|
return t;
|
11
22
|
};
|
12
|
-
import
|
23
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
24
|
+
import { forwardRef } from 'react';
|
13
25
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
14
26
|
export var DropdownMenuSub = forwardRef(function (_a, ref) {
|
15
27
|
var children = _a.children, props = __rest(_a, ["children"]);
|
16
|
-
return
|
28
|
+
return _jsx(DropdownMenuPrimitive.Sub, __assign({}, props, { children: children }));
|
17
29
|
});
|
18
30
|
DropdownMenuSub.displayName = 'DropdownMenu.Sub';
|