@lotte-innovate/ui-component-test 0.0.6 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +163 -163
- package/dist/Typography/Header/index.d.ts +1 -1
- package/dist/Typography/Header/index.jsx +4 -4
- package/dist/Typography/Text/index.d.ts +1 -1
- package/dist/Typography/Text/index.jsx +4 -4
- package/dist/Typography/index.js +3 -2
- package/dist/app/layout.jsx +2 -2
- package/dist/app/page.d.ts +1 -1
- package/dist/app/page.jsx +3 -39
- package/dist/app/template/badgeTemplate.jsx +71 -71
- package/dist/app/template/buttonTemplate.jsx +71 -71
- package/dist/app/template/colorPicker.jsx +6 -6
- package/dist/app/template/textTemplate.jsx +55 -55
- package/dist/app/template/theme.jsx +32 -32
- package/dist/components/Accordion/index.jsx +13 -13
- package/dist/components/AlertDialog/AlertDialogAction.jsx +2 -2
- package/dist/components/AlertDialog/AlertDialogCancel.jsx +2 -2
- package/dist/components/AlertDialog/AlertDialogContent.jsx +5 -5
- package/dist/components/AlertDialog/AlertDialogDescription.jsx +2 -2
- package/dist/components/AlertDialog/AlertDialogTitle.jsx +2 -2
- package/dist/components/AlertDialog/AlertDialogTrigger.jsx +2 -2
- package/dist/components/AspectRatio/index.jsx +2 -2
- package/dist/components/Avatar/index.jsx +5 -5
- package/dist/components/Badge/index.jsx +2 -2
- package/dist/components/BubbleChart/index.d.ts +1 -1
- package/dist/components/Button/index.jsx +2 -2
- package/dist/components/Callout/CalloutIcon.jsx +6 -6
- package/dist/components/Callout/CalloutText.jsx +2 -2
- package/dist/components/Callout/index.jsx +4 -4
- package/dist/components/Card/index.jsx +2 -2
- package/dist/components/Checkbox/index.jsx +9 -9
- package/dist/components/CheckboxCard/index.jsx +3 -3
- package/dist/components/CheckboxGroup/CheckboxGroupItem.jsx +4 -4
- package/dist/components/CheckboxGroup/index.jsx +4 -4
- package/dist/components/ContextMenu/ContextMenuCheckboxItem.jsx +5 -5
- package/dist/components/ContextMenu/ContextMenuContent.jsx +4 -4
- package/dist/components/ContextMenu/ContextMenuGroup.jsx +2 -2
- package/dist/components/ContextMenu/ContextMenuItem.jsx +3 -3
- package/dist/components/ContextMenu/ContextMenuItemIndicator.jsx +2 -2
- package/dist/components/ContextMenu/ContextMenuLabel.jsx +2 -2
- package/dist/components/ContextMenu/ContextMenuRadioGroup.jsx +4 -4
- package/dist/components/ContextMenu/ContextMenuRadioItem.jsx +5 -5
- package/dist/components/ContextMenu/ContextMenuSeparator.jsx +2 -2
- package/dist/components/ContextMenu/ContextMenuSubContent.jsx +4 -4
- package/dist/components/ContextMenu/ContextMenuSubTrigger.jsx +7 -7
- package/dist/components/ContextMenu/ContextMenuTrigger.jsx +2 -2
- package/dist/components/ContextMenu/index.jsx +2 -2
- package/dist/components/DataList/DataListItem.jsx +2 -2
- package/dist/components/DataList/DataListLabel.jsx +2 -2
- package/dist/components/DataList/DataListValue.jsx +2 -2
- package/dist/components/DataList/index.jsx +4 -4
- package/dist/components/Dialog/DialogAction.jsx +2 -2
- package/dist/components/Dialog/DialogCancel.jsx +2 -2
- package/dist/components/Dialog/DialogContent.jsx +2 -2
- package/dist/components/Dialog/DialogDescription.jsx +2 -2
- package/dist/components/Dialog/DialogSlot.jsx +2 -2
- package/dist/components/Dialog/DialogTitle.jsx +2 -2
- package/dist/components/Dialog/DialogTrigger.jsx +2 -2
- package/dist/components/Dialog/index.jsx +2 -2
- package/dist/components/DropdownMenu/DropdonMenuRadioGroup.jsx +4 -4
- package/dist/components/DropdownMenu/DropdonMenuSubContent.jsx +4 -4
- package/dist/components/DropdownMenu/DropdownMenuCheckboxItem.jsx +5 -5
- package/dist/components/DropdownMenu/DropdownMenuContent.jsx +4 -4
- package/dist/components/DropdownMenu/DropdownMenuItem.jsx +3 -3
- package/dist/components/DropdownMenu/DropdownMenuItemIndicator.jsx +2 -2
- package/dist/components/DropdownMenu/DropdownMenuLable.jsx +2 -2
- package/dist/components/DropdownMenu/DropdownMenuRadioItem.jsx +5 -5
- package/dist/components/DropdownMenu/DropdownMenuSubTrigger.jsx +5 -5
- package/dist/components/DropdownMenu/DropdownMenuTrigger.jsx +2 -2
- package/dist/components/HoverCard/HoverCardContent.jsx +2 -2
- package/dist/components/HoverCard/HoverCardTrigger.jsx +2 -2
- package/dist/components/HoverCard/index.jsx +2 -2
- package/dist/components/IconButton/index.jsx +2 -2
- package/dist/components/Input/Input.stories.jsx +6 -6
- package/dist/components/Inset/index.jsx +4 -4
- package/dist/components/Label/index.jsx +2 -2
- package/dist/components/Menubar/MenubarCheckboxItem.jsx +5 -5
- package/dist/components/Menubar/MenubarContent.jsx +4 -4
- package/dist/components/Menubar/MenubarItem.jsx +3 -3
- package/dist/components/Menubar/MenubarItemIndicator.jsx +2 -2
- package/dist/components/Menubar/MenubarRadioGroup.jsx +4 -4
- package/dist/components/Menubar/MenubarRadioItem.jsx +5 -5
- package/dist/components/Menubar/MenubarSeparator.jsx +2 -2
- package/dist/components/Menubar/MenubarSubContent.jsx +2 -2
- package/dist/components/Menubar/MenubarSubTrigger.jsx +5 -5
- package/dist/components/Menubar/MenubarTrigger.jsx +2 -2
- package/dist/components/Menubar/index.jsx +4 -4
- package/dist/components/NavigationMenu/NavigationMenuContent.jsx +2 -2
- package/dist/components/NavigationMenu/NavigationMenuIndicator.jsx +3 -3
- package/dist/components/NavigationMenu/NavigationMenuItem.jsx +2 -2
- package/dist/components/NavigationMenu/NavigationMenuLink.jsx +2 -2
- package/dist/components/NavigationMenu/NavigationMenuList.jsx +3 -3
- package/dist/components/NavigationMenu/NavigationMenuTrigger.jsx +3 -3
- package/dist/components/NavigationMenu/NavigationMenuViewport.jsx +2 -2
- package/dist/components/NavigationMenu/index.jsx +4 -4
- package/dist/components/Popover/PopoverClose.jsx +2 -2
- package/dist/components/Popover/PopoverContent.jsx +2 -2
- package/dist/components/Popover/PopoverTrigger.jsx +2 -2
- package/dist/components/Popover/index.jsx +2 -2
- package/dist/components/Progress/index.d.ts +3 -3
- package/dist/components/Progress/index.jsx +2 -2
- package/dist/components/RadarChart/index.d.ts +1 -1
- package/dist/components/Radio/index.d.ts +1 -1
- package/dist/components/Radio/index.jsx +7 -7
- package/dist/components/RadioCards/RadioCardsItem.jsx +2 -2
- package/dist/components/RadioCards/index.d.ts +1 -1
- package/dist/components/RadioCards/index.jsx +4 -4
- package/dist/components/RadioGroup/RadioGroupItem.jsx +2 -2
- package/dist/components/RadioGroup/index.d.ts +1 -1
- package/dist/components/RadioGroup/index.jsx +4 -4
- package/dist/components/ScrollArea/index.jsx +4 -4
- package/dist/components/SegmentedControl/SegmentedControlItem.jsx +2 -2
- package/dist/components/SegmentedControl/index.d.ts +1 -1
- package/dist/components/SegmentedControl/index.jsx +4 -4
- package/dist/components/Select/index.d.ts +1 -1
- package/dist/components/Select/index.jsx +16 -16
- package/dist/components/Separator/index.d.ts +1 -1
- package/dist/components/Separator/index.jsx +4 -4
- package/dist/components/Skeleton/index.d.ts +1 -1
- package/dist/components/Skeleton/index.jsx +4 -4
- package/dist/components/Slider/index.d.ts +1 -1
- package/dist/components/Slider/index.jsx +2 -2
- package/dist/components/Spinner/index.d.ts +1 -1
- package/dist/components/Spinner/index.jsx +4 -4
- package/dist/components/TabNav/index.jsx +6 -6
- package/dist/components/Table/index.d.ts +2 -2
- package/dist/components/Table/index.jsx +16 -16
- package/dist/components/Tabs/index.d.ts +1 -1
- package/dist/components/Tabs/index.jsx +10 -10
- package/dist/components/TextArea/index.d.ts +3 -3
- package/dist/components/TextArea/index.jsx +2 -2
- package/dist/components/TextField/index.d.ts +1 -1
- package/dist/components/TextField/index.jsx +6 -6
- package/dist/components/Toast/ToastActionButton.d.ts +3 -3
- package/dist/components/Toast/ToastActionButton.jsx +2 -2
- package/dist/components/Toast/ToastDescription.d.ts +1 -1
- package/dist/components/Toast/ToastDescription.jsx +4 -4
- package/dist/components/Toast/ToastTitle.d.ts +1 -1
- package/dist/components/Toast/ToastTitle.jsx +2 -2
- package/dist/components/Toast/index.d.ts +3 -3
- package/dist/components/Toast/index.jsx +7 -7
- package/dist/components/Toggle/ToggleWithText.jsx +3 -3
- package/dist/components/Toggle/index.d.ts +3 -3
- package/dist/components/Toggle/index.jsx +2 -2
- package/dist/components/ToggleGroup/index.d.ts +1 -1
- package/dist/components/ToggleGroup/index.jsx +4 -4
- package/dist/components/ToggleGroup/toggleGroupItem.jsx +2 -2
- package/dist/components/ToggleSwitch/index.d.ts +3 -3
- package/dist/components/ToggleSwitch/index.jsx +5 -5
- package/dist/components/Tooltip/index.d.ts +1 -1
- package/dist/components/Tooltip/index.jsx +10 -10
- package/dist/components/index.d.ts +0 -2
- package/dist/index.d.ts +0 -5
- package/dist/index.js +3 -5
- package/dist/stories/Welcome.jsx +19 -19
- package/dist/stories/accordion/Accordion.stories.jsx +19 -19
- package/dist/stories/alert-dialog/AlertDialog.stories.jsx +14 -14
- package/dist/stories/aspect-ratio/AspectRatio.stories.jsx +29 -29
- package/dist/stories/avatar/Avatar.stories.jsx +12 -12
- package/dist/stories/badge/Badge.stories.jsx +44 -44
- package/dist/stories/bubble-chart/BubbleChart.stories.jsx +9 -9
- package/dist/stories/button/Button.stories.jsx +34 -34
- package/dist/stories/button/IconButton.stories.jsx +14 -14
- package/dist/stories/callout/Callout.stories.jsx +107 -107
- package/dist/stories/card/Card.stories.jsx +51 -51
- package/dist/stories/checkbox/Checkbox.stories.jsx +57 -57
- package/dist/stories/checkbox/CheckboxCard.stories.jsx +36 -36
- package/dist/stories/checkbox/CheckboxGroup.stories.jsx +73 -73
- package/dist/stories/context-menu/ContextMenu.stories.jsx +70 -70
- package/dist/stories/data-list/DataList.stories.jsx +102 -102
- package/dist/stories/dialog/Dialog.stories.jsx +24 -24
- package/dist/stories/doughnut-chart/DoughnutChart.stories.jsx +9 -9
- package/dist/stories/dropdown-menu/DropdownMenu.stories.jsx +96 -96
- package/dist/stories/header/Header.stories.jsx +20 -20
- package/dist/stories/hover-card/HoverCard.stories.jsx +28 -28
- package/dist/stories/inset/Inset.stories.jsx +16 -16
- package/dist/stories/label/Label.stories.jsx +22 -22
- package/dist/stories/menubar/Menubar.stories.jsx +38 -38
- package/dist/stories/navigation-menu/NavigationMenu.stories.d.ts +9 -9
- package/dist/stories/navigation-menu/NavigationMenu.stories.jsx +67 -67
- package/dist/stories/pie-chart/PieChart.stories.jsx +20 -20
- package/dist/stories/popover/Popover.stories.jsx +34 -34
- package/dist/stories/progress/Progress.stories.jsx +6 -6
- package/dist/stories/radio/Radio.stories.jsx +11 -11
- package/dist/stories/radio/RadioCards.stories.jsx +60 -60
- package/dist/stories/radio/RadioGroup.stories.jsx +55 -55
- package/dist/stories/scroll-area/ScrollArea.stories.jsx +61 -61
- package/dist/stories/segmented-control/SegmentedControl.stories.jsx +22 -22
- package/dist/stories/select/Select.stories.jsx +62 -62
- package/dist/stories/separator/Separator.stories.jsx +25 -25
- package/dist/stories/skeleton/Skeleton.stories.jsx +28 -28
- package/dist/stories/slider/Slider.stories.jsx +12 -12
- package/dist/stories/spinner/Spinner.stories.jsx +26 -26
- package/dist/stories/switch/Switch.stories.jsx +12 -12
- package/dist/stories/tab-nav/TabNav.stories.jsx +10 -10
- package/dist/stories/table/Table.stories.jsx +28 -28
- package/dist/stories/tabs/Tabs.stories.jsx +18 -18
- package/dist/stories/text/Text.stories.jsx +16 -16
- package/dist/stories/textArea/TextArea.stories.jsx +17 -17
- package/dist/stories/textfield/TextField.stories.jsx +33 -33
- package/dist/stories/toast/Toast.stories.jsx +19 -19
- package/dist/stories/toggle/Toggle.stories.jsx +18 -18
- package/dist/stories/toggle/ToggleGroup.stories.jsx +34 -34
- package/dist/stories/tooltip/Tooltip.stories.jsx +14 -14
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +119 -118
@@ -54,8 +54,8 @@ export var HoverCardContent = forwardRef(function (_a, ref) {
|
|
54
54
|
sizeTheme = '1';
|
55
55
|
if (size === 'large')
|
56
56
|
sizeTheme = '3';
|
57
|
-
return (<HoverCardTheme.Content ref={ref} {...props} size={sizeTheme} className={cn(hoverCardContentVariants({ size: size, scaling: scaling, weight: weight, radius: radius, color: color }), size === 'x-large' && 'rt-r-size-4', className)}>
|
58
|
-
{children}
|
57
|
+
return (<HoverCardTheme.Content ref={ref} {...props} size={sizeTheme} className={cn(hoverCardContentVariants({ size: size, scaling: scaling, weight: weight, radius: radius, color: color }), size === 'x-large' && 'rt-r-size-4', className)}>
|
58
|
+
{children}
|
59
59
|
</HoverCardTheme.Content>);
|
60
60
|
});
|
61
61
|
HoverCardContent.displayName = 'HoverCardContent';
|
@@ -13,8 +13,8 @@ import React, { forwardRef } from 'react';
|
|
13
13
|
import { HoverCard as HoverCardTheme } from '@radix-ui/themes';
|
14
14
|
export var HoverCardTrigger = forwardRef(function (_a, ref) {
|
15
15
|
var className = _a.className, children = _a.children, props = __rest(_a, ["className", "children"]);
|
16
|
-
return (<HoverCardTheme.Trigger ref={ref} className={className} {...props}>
|
17
|
-
{children}
|
16
|
+
return (<HoverCardTheme.Trigger ref={ref} className={className} {...props}>
|
17
|
+
{children}
|
18
18
|
</HoverCardTheme.Trigger>);
|
19
19
|
});
|
20
20
|
HoverCardTrigger.displayName = 'HoverCardTrigger';
|
@@ -15,8 +15,8 @@ export * from './HoverCardTrigger';
|
|
15
15
|
export * from './HoverCardContent';
|
16
16
|
export var HoverCard = forwardRef(function (_a, ref) {
|
17
17
|
var children = _a.children, props = __rest(_a, ["children"]);
|
18
|
-
return (<Theme>
|
19
|
-
<HoverCardTheme.Root {...props}>{children}</HoverCardTheme.Root>
|
18
|
+
return (<Theme>
|
19
|
+
<HoverCardTheme.Root {...props}>{children}</HoverCardTheme.Root>
|
20
20
|
</Theme>);
|
21
21
|
});
|
22
22
|
HoverCard.displayName = 'HoverCard';
|
@@ -56,8 +56,8 @@ export var IconButton = forwardRef(function (_a, ref) {
|
|
56
56
|
var width = iconSize[size];
|
57
57
|
var height = iconSize[size];
|
58
58
|
var buttonClassName = cn(iconButtonVariants({ radius: radius, scaling: scaling, size: size, color: color }), appearanceStyle(appearance, color, true), className);
|
59
|
-
return (<button ref={ref} className={buttonClassName} {...props}>
|
60
|
-
{Children.map(children, function (child) { return React.cloneElement(child, { width: width, height: height }); })}
|
59
|
+
return (<button ref={ref} className={buttonClassName} {...props}>
|
60
|
+
{Children.map(children, function (child) { return React.cloneElement(child, { width: width, height: height }); })}
|
61
61
|
</button>);
|
62
62
|
});
|
63
63
|
IconButton.displayName = 'IconButton';
|
@@ -57,12 +57,12 @@ export default meta;
|
|
57
57
|
export var Default = {
|
58
58
|
args: {},
|
59
59
|
};
|
60
|
-
export var Radius = function (args) { return (<div className="flex space-x-2">
|
61
|
-
{radiusOptions.map(function (radius) { return (<Input key={radius} {...args} radius={radius}/>); })}
|
60
|
+
export var Radius = function (args) { return (<div className="flex space-x-2">
|
61
|
+
{radiusOptions.map(function (radius) { return (<Input key={radius} {...args} radius={radius}/>); })}
|
62
62
|
</div>); };
|
63
|
-
export var Scaling = function (args) { return (<div className="flex items-center space-x-2">
|
64
|
-
{scalingOptions.map(function (scaling) { return (<Input key={scaling} {...args} scaling={scaling}></Input>); })}
|
63
|
+
export var Scaling = function (args) { return (<div className="flex items-center space-x-2">
|
64
|
+
{scalingOptions.map(function (scaling) { return (<Input key={scaling} {...args} scaling={scaling}></Input>); })}
|
65
65
|
</div>); };
|
66
|
-
export var Weight = function (args) { return (<div className="flex items-center space-x-2">
|
67
|
-
{weightOptions.map(function (weight) { return (<Input key={weight} {...args} weight={weight}></Input>); })}
|
66
|
+
export var Weight = function (args) { return (<div className="flex items-center space-x-2">
|
67
|
+
{weightOptions.map(function (weight) { return (<Input key={weight} {...args} weight={weight}></Input>); })}
|
68
68
|
</div>); };
|
@@ -43,10 +43,10 @@ var insetVariants = cva('border-[1px] border-slate-6 dark:border-slateDark-6 tex
|
|
43
43
|
});
|
44
44
|
export var Inset = forwardRef(function (_a, ref) {
|
45
45
|
var children = _a.children, className = _a.className, radius = _a.radius, scaling = _a.scaling, props = __rest(_a, ["children", "className", "radius", "scaling"]);
|
46
|
-
return (<Theme>
|
47
|
-
<InsetTheme ref={ref} className={cn(insetVariants({ radius: radius, scaling: scaling }), className)} {...props}>
|
48
|
-
{children}
|
49
|
-
</InsetTheme>
|
46
|
+
return (<Theme>
|
47
|
+
<InsetTheme ref={ref} className={cn(insetVariants({ radius: radius, scaling: scaling }), className)} {...props}>
|
48
|
+
{children}
|
49
|
+
</InsetTheme>
|
50
50
|
</Theme>);
|
51
51
|
});
|
52
52
|
Inset.displayName = 'Inset';
|
@@ -46,8 +46,8 @@ export var Label = React.forwardRef(function (_a, forwardedRef) {
|
|
46
46
|
var className = _a.className, scaling = _a.scaling, weight = _a.weight, size = _a.size, color = _a.color, children = _a.children, rootProps = __rest(_a, ["className", "scaling", "weight", "size", "color", "children"]);
|
47
47
|
if (weight === 'medium' || weight === 'semibold')
|
48
48
|
weight = 'bold';
|
49
|
-
return (<LabelPrimitive.Root {...rootProps} ref={forwardedRef} className={cn('', labeVariants({ scaling: scaling, size: size, weight: weight, color: color }), className)}>
|
50
|
-
{children}
|
49
|
+
return (<LabelPrimitive.Root {...rootProps} ref={forwardedRef} className={cn('', labeVariants({ scaling: scaling, size: size, weight: weight, color: color }), className)}>
|
50
|
+
{children}
|
51
51
|
</LabelPrimitive.Root>);
|
52
52
|
});
|
53
53
|
Label.displayName = 'Label';
|
@@ -21,11 +21,11 @@ export var MenubarCheckboxItem = forwardRef(function (_a, ref) {
|
|
21
21
|
var children = _a.children, className = _a.className, checked = _a.checked, props = __rest(_a, ["children", "className", "checked"]);
|
22
22
|
var _b = useMenubarContext(), radius = _b.radius, scaling = _b.scaling, size = _b.size, _c = _b.color, color = _c === void 0 ? 'red' : _c, _d = _b.itemAppearance, itemAppearance = _d === void 0 ? 'solid' : _d;
|
23
23
|
var itemClassName = cn(menubarItemVariants({ radius: radius, scaling: scaling, size: size }), 'pl-7', menuItemAppearanceStyle(itemAppearance, color), className);
|
24
|
-
return (<MenubarPrimitive.CheckboxItem ref={ref} className={itemClassName} {...props}>
|
25
|
-
<MenubarItemIndicator forceMount radius={'medium'} size={size}>
|
26
|
-
{checked && <CheckIcon />}
|
27
|
-
</MenubarItemIndicator>
|
28
|
-
{children}
|
24
|
+
return (<MenubarPrimitive.CheckboxItem ref={ref} className={itemClassName} {...props}>
|
25
|
+
<MenubarItemIndicator forceMount radius={'medium'} size={size}>
|
26
|
+
{checked && <CheckIcon />}
|
27
|
+
</MenubarItemIndicator>
|
28
|
+
{children}
|
29
29
|
</MenubarPrimitive.CheckboxItem>);
|
30
30
|
});
|
31
31
|
MenubarCheckboxItem.displayName = 'MenubarCheckboxItem';
|
@@ -50,14 +50,14 @@ export var menubarContentVariants = cva("p-[5px] bg-white dark:bg-slateDark-1 wi
|
|
50
50
|
export var MenubarContent = forwardRef(function (_a, ref) {
|
51
51
|
var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
|
52
52
|
var _b = useMenubarContext(), radius = _b.radius, size = _b.size, scaling = _b.scaling;
|
53
|
-
return (<MenubarPrimitive.Portal>
|
53
|
+
return (<MenubarPrimitive.Portal>
|
54
54
|
<MenubarPrimitive.Content ref={ref} className={cn(menubarContentVariants({
|
55
55
|
radius: radius,
|
56
56
|
size: size,
|
57
57
|
scaling: scaling,
|
58
|
-
}), className)} align="start" sideOffset={5} alignOffset={-3} {...props}>
|
59
|
-
{children}
|
60
|
-
</MenubarPrimitive.Content>
|
58
|
+
}), className)} align="start" sideOffset={5} alignOffset={-3} {...props}>
|
59
|
+
{children}
|
60
|
+
</MenubarPrimitive.Content>
|
61
61
|
</MenubarPrimitive.Portal>);
|
62
62
|
});
|
63
63
|
MenubarContent.displayName = 'MenubarContent';
|
@@ -48,9 +48,9 @@ export var MenubarItem = forwardRef(function (_a, ref) {
|
|
48
48
|
var shortcutClassName = "text-slateA-11 dark:text-slateDarkA-11 ".concat(itemAppearance === 'solid' && !blackText.includes(color)
|
49
49
|
? 'group-hover:text-white dark:group-hover:text-slateDark-1'
|
50
50
|
: '');
|
51
|
-
return (<MenubarPrimitive.Item ref={ref} className={itemClassName} {...props}>
|
52
|
-
{children}
|
53
|
-
{shortcut && <span className={shortcutClassName}>{shortcut}</span>}
|
51
|
+
return (<MenubarPrimitive.Item ref={ref} className={itemClassName} {...props}>
|
52
|
+
{children}
|
53
|
+
{shortcut && <span className={shortcutClassName}>{shortcut}</span>}
|
54
54
|
</MenubarPrimitive.Item>);
|
55
55
|
});
|
56
56
|
MenubarItem.displayName = 'MenubarItem';
|
@@ -43,8 +43,8 @@ export var MenubarItemIndicator = forwardRef(function (_a, ref) {
|
|
43
43
|
var children = _a.children, className = _a.className, radius = _a.radius, props = __rest(_a, ["children", "className", "radius"]);
|
44
44
|
var size = useMenubarContext().size;
|
45
45
|
var indicatorClassName = cn(menubarItemIndicatorVariants({ size: size, radius: radius }), className);
|
46
|
-
return (<MenubarPrimitive.ItemIndicator ref={ref} className={indicatorClassName} {...props}>
|
47
|
-
{children}
|
46
|
+
return (<MenubarPrimitive.ItemIndicator ref={ref} className={indicatorClassName} {...props}>
|
47
|
+
{children}
|
48
48
|
</MenubarPrimitive.ItemIndicator>);
|
49
49
|
});
|
50
50
|
MenubarItemIndicator.displayName = 'MenubarItemIndicator';
|
@@ -14,10 +14,10 @@ import * as MenubarPrimitive from '@radix-ui/react-menubar';
|
|
14
14
|
export var RadioContext = createContext({ selectedValue: '' });
|
15
15
|
export var MenubarRadioGroup = forwardRef(function (_a, ref) {
|
16
16
|
var children = _a.children, className = _a.className, value = _a.value, props = __rest(_a, ["children", "className", "value"]);
|
17
|
-
return (<MenubarPrimitive.RadioGroup ref={ref} className={className} {...props}>
|
18
|
-
<RadioContext.Provider value={{ selectedValue: value !== null && value !== void 0 ? value : '' }}>
|
19
|
-
{children}
|
20
|
-
</RadioContext.Provider>
|
17
|
+
return (<MenubarPrimitive.RadioGroup ref={ref} className={className} {...props}>
|
18
|
+
<RadioContext.Provider value={{ selectedValue: value !== null && value !== void 0 ? value : '' }}>
|
19
|
+
{children}
|
20
|
+
</RadioContext.Provider>
|
21
21
|
</MenubarPrimitive.RadioGroup>);
|
22
22
|
});
|
23
23
|
MenubarRadioGroup.displayName = 'MenubarRadioGroup';
|
@@ -23,11 +23,11 @@ export var MenubarRadioItem = forwardRef(function (_a, ref) {
|
|
23
23
|
var _b = useMenubarContext(), radius = _b.radius, scaling = _b.scaling, size = _b.size, _c = _b.color, color = _c === void 0 ? 'red' : _c, _d = _b.itemAppearance, itemAppearance = _d === void 0 ? 'solid' : _d;
|
24
24
|
var itemClassName = cn(menubarItemVariants({ radius: radius, scaling: scaling, size: size }), 'pl-7', menuItemAppearanceStyle(itemAppearance, color), className);
|
25
25
|
var radioGroup = useContext(RadioContext);
|
26
|
-
return (<MenubarPrimitive.RadioItem ref={ref} className={itemClassName} {...props}>
|
27
|
-
<MenubarItemIndicator forceMount radius={'full'} size={size}>
|
28
|
-
{radioGroup.selectedValue === props.value && <DotFilledIcon />}
|
29
|
-
</MenubarItemIndicator>
|
30
|
-
{children}
|
26
|
+
return (<MenubarPrimitive.RadioItem ref={ref} className={itemClassName} {...props}>
|
27
|
+
<MenubarItemIndicator forceMount radius={'full'} size={size}>
|
28
|
+
{radioGroup.selectedValue === props.value && <DotFilledIcon />}
|
29
|
+
</MenubarItemIndicator>
|
30
|
+
{children}
|
31
31
|
</MenubarPrimitive.RadioItem>);
|
32
32
|
});
|
33
33
|
MenubarRadioItem.displayName = 'MenubarRadioItem';
|
@@ -14,8 +14,8 @@ import * as MenubarPrimitive from '@radix-ui/react-menubar';
|
|
14
14
|
import { cn } from 'utils/utils';
|
15
15
|
export var MenubarSeparator = forwardRef(function (_a, ref) {
|
16
16
|
var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
|
17
|
-
return (<MenubarPrimitive.Separator ref={ref} className={cn('h-[1px] m-[5px] bg-slate-6 dark:bg-slateDark-6', className)} {...props}>
|
18
|
-
{children}
|
17
|
+
return (<MenubarPrimitive.Separator ref={ref} className={cn('h-[1px] m-[5px] bg-slate-6 dark:bg-slateDark-6', className)} {...props}>
|
18
|
+
{children}
|
19
19
|
</MenubarPrimitive.Separator>);
|
20
20
|
});
|
21
21
|
MenubarSeparator.displayName = 'MenubarSeparator';
|
@@ -45,8 +45,8 @@ export var MenubarSubContent = forwardRef(function (_a, ref) {
|
|
45
45
|
return (<MenubarPrimitive.SubContent ref={ref} className={cn(menubarSubContentVariants({
|
46
46
|
radius: radius,
|
47
47
|
size: size,
|
48
|
-
}), className)} alignOffset={-5} {...props}>
|
49
|
-
{children}
|
48
|
+
}), className)} alignOffset={-5} {...props}>
|
49
|
+
{children}
|
50
50
|
</MenubarPrimitive.SubContent>);
|
51
51
|
});
|
52
52
|
MenubarSubContent.displayName = 'MenubarSubContent';
|
@@ -24,11 +24,11 @@ export var MenubarSubTrigger = forwardRef(function (_a, ref) {
|
|
24
24
|
if (itemAppearance === 'solid' && !blackText.includes(color)) {
|
25
25
|
iconClassName = 'group-hover:text-white dark:group-hover:text-slateDark-1';
|
26
26
|
}
|
27
|
-
return (<MenubarPrimitive.SubTrigger ref={ref} className={triggerClassName} {...props}>
|
28
|
-
{children}
|
29
|
-
<div className={iconClassName}>
|
30
|
-
<ChevronRightIcon />
|
31
|
-
</div>
|
27
|
+
return (<MenubarPrimitive.SubTrigger ref={ref} className={triggerClassName} {...props}>
|
28
|
+
{children}
|
29
|
+
<div className={iconClassName}>
|
30
|
+
<ChevronRightIcon />
|
31
|
+
</div>
|
32
32
|
</MenubarPrimitive.SubTrigger>);
|
33
33
|
});
|
34
34
|
MenubarSubTrigger.displayName = 'MenubarSubTrigger';
|
@@ -51,8 +51,8 @@ export var MenubarTrigger = forwardRef(function (_a, ref) {
|
|
51
51
|
var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
|
52
52
|
var _b = useMenubarContext(), scaling = _b.scaling, size = _b.size, radius = _b.radius, _c = _b.color, color = _c === void 0 ? 'red' : _c, _d = _b.appearance, appearance = _d === void 0 ? 'ghost' : _d;
|
53
53
|
var triggerClassName = cn(menubarTriggerVariants({ scaling: scaling, size: size, radius: radius }), appearanceStyle(appearance, color), className);
|
54
|
-
return (<MenubarPrimitive.Trigger ref={ref} className={triggerClassName} {...props}>
|
55
|
-
{children}
|
54
|
+
return (<MenubarPrimitive.Trigger ref={ref} className={triggerClassName} {...props}>
|
55
|
+
{children}
|
56
56
|
</MenubarPrimitive.Trigger>);
|
57
57
|
});
|
58
58
|
MenubarTrigger.displayName = 'MenubarTrigger';
|
@@ -66,10 +66,10 @@ export var Menubar = forwardRef(function (_a, ref) {
|
|
66
66
|
var children = _a.children, className = _a.className, radius = _a.radius, scaling = _a.scaling, size = _a.size, _b = _a.color, color = _b === void 0 ? 'red' : _b, _c = _a.appearance, appearance = _c === void 0 ? 'ghost' : _c, _d = _a.itemAppearance, itemAppearance = _d === void 0 ? 'solid' : _d, props = __rest(_a, ["children", "className", "radius", "scaling", "size", "color", "appearance", "itemAppearance"]);
|
67
67
|
var contextValue = { radius: radius, size: size, scaling: scaling, color: color, appearance: appearance, itemAppearance: itemAppearance };
|
68
68
|
var menuClassName = cn(menubarVariants({ radius: radius, scaling: scaling, size: size }), appearance === 'solid' && "bg-".concat(color, "-9 dark:bg-$").concat(color, "Dark-9"), className);
|
69
|
-
return (<MenubarContext.Provider value={contextValue}>
|
70
|
-
<MenubarPrimitive.Root ref={ref} className={menuClassName} {...props}>
|
71
|
-
{children}
|
72
|
-
</MenubarPrimitive.Root>
|
69
|
+
return (<MenubarContext.Provider value={contextValue}>
|
70
|
+
<MenubarPrimitive.Root ref={ref} className={menuClassName} {...props}>
|
71
|
+
{children}
|
72
|
+
</MenubarPrimitive.Root>
|
73
73
|
</MenubarContext.Provider>);
|
74
74
|
});
|
75
75
|
Menubar.displayName = 'Menubar';
|
@@ -42,8 +42,8 @@ export var navigationMenuContentVariants = cva("text-slate-12 dark:text-slateDar
|
|
42
42
|
export var NavigationMenuContent = forwardRef(function (_a, ref) {
|
43
43
|
var className = _a.className, children = _a.children, props = __rest(_a, ["className", "children"]);
|
44
44
|
var _b = useNavigationMenuContext(), radius = _b.radius, size = _b.size;
|
45
|
-
return (<NavigationMenuPrimitive.Content ref={ref} className={cn("absolute top-0 left-0 w-full sm:w-auto\n data-[motion=from-start]:animate-enterFromLeft \n data-[motion=from-end]:animate-enterFromRight \n data-[motion=to-start]:animate-exitToLeft \n data-[motion=to-end]:animate-exitToRight", navigationMenuContentVariants({ radius: radius, size: size }), className)} {...props}>
|
46
|
-
{children}
|
45
|
+
return (<NavigationMenuPrimitive.Content ref={ref} className={cn("absolute top-0 left-0 w-full sm:w-auto\n data-[motion=from-start]:animate-enterFromLeft \n data-[motion=from-end]:animate-enterFromRight \n data-[motion=to-start]:animate-exitToLeft \n data-[motion=to-end]:animate-exitToRight", navigationMenuContentVariants({ radius: radius, size: size }), className)} {...props}>
|
46
|
+
{children}
|
47
47
|
</NavigationMenuPrimitive.Content>);
|
48
48
|
});
|
49
49
|
NavigationMenuContent.displayName = 'NavigationMenuContent';
|
@@ -14,9 +14,9 @@ import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
|
14
14
|
import { cn } from 'utils/utils';
|
15
15
|
export var NavigationMenuIndicator = forwardRef(function (_a, ref) {
|
16
16
|
var className = _a.className, children = _a.children, props = __rest(_a, ["className", "children"]);
|
17
|
-
return (<NavigationMenuPrimitive.Indicator ref={ref} className={"flex z-[1] top-full h-[10px] items-end justify-center overflow-hidden\n data-[state=visible]:animate-fadeIn data-[state=hidden]:animate-fadeOut \n transition-[width,transform_250ms_ease]"} {...props}>
|
18
|
-
<div className={cn("relative top-[70%] h-[10px] w-[10px] rotate-[45deg] rounded-tl-[2px] \n bg-white dark:bg-slateDark-2 shadow-slate-4 shadow dark:shadow-slateDark-4", className)}/>
|
19
|
-
{children}
|
17
|
+
return (<NavigationMenuPrimitive.Indicator ref={ref} className={"flex z-[1] top-full h-[10px] items-end justify-center overflow-hidden\n data-[state=visible]:animate-fadeIn data-[state=hidden]:animate-fadeOut \n transition-[width,transform_250ms_ease]"} {...props}>
|
18
|
+
<div className={cn("relative top-[70%] h-[10px] w-[10px] rotate-[45deg] rounded-tl-[2px] \n bg-white dark:bg-slateDark-2 shadow-slate-4 shadow dark:shadow-slateDark-4", className)}/>
|
19
|
+
{children}
|
20
20
|
</NavigationMenuPrimitive.Indicator>);
|
21
21
|
});
|
22
22
|
NavigationMenuIndicator.displayName = 'NavigationMenuIndicator';
|
@@ -13,8 +13,8 @@ import React, { forwardRef } from 'react';
|
|
13
13
|
import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
14
14
|
export var NavigationMenuItem = forwardRef(function (_a, ref) {
|
15
15
|
var className = _a.className, children = _a.children, props = __rest(_a, ["className", "children"]);
|
16
|
-
return (<NavigationMenuPrimitive.Item ref={ref} className={className} {...props}>
|
17
|
-
{children}
|
16
|
+
return (<NavigationMenuPrimitive.Item ref={ref} className={className} {...props}>
|
17
|
+
{children}
|
18
18
|
</NavigationMenuPrimitive.Item>);
|
19
19
|
});
|
20
20
|
NavigationMenuItem.displayName = 'NavigationMenuItem';
|
@@ -45,8 +45,8 @@ export var NavigationMenuLink = forwardRef(function (_a, ref) {
|
|
45
45
|
var children = _a.children, className = _a.className, href = _a.href, props = __rest(_a, ["children", "className", "href"]);
|
46
46
|
var _b = useNavigationMenuContext(), scaling = _b.scaling, size = _b.size, radius = _b.radius, _c = _b.color, color = _c === void 0 ? 'red' : _c, _d = _b.appearance, appearance = _d === void 0 ? 'ghost' : _d;
|
47
47
|
var linkClassName = cn(navigationMenuLinkVariants({ scaling: scaling, size: size, radius: radius }), appearanceStyle(appearance, color), className);
|
48
|
-
return (<NavigationMenuPrimitive.Link ref={ref} href={href} title={href} className={linkClassName} {...props}>
|
49
|
-
{children}
|
48
|
+
return (<NavigationMenuPrimitive.Link ref={ref} href={href} title={href} className={linkClassName} {...props}>
|
49
|
+
{children}
|
50
50
|
</NavigationMenuPrimitive.Link>);
|
51
51
|
});
|
52
52
|
NavigationMenuLink.displayName = 'NavigationMenuLink';
|
@@ -41,9 +41,9 @@ export var NavigationMenuList = forwardRef(function (_a, ref) {
|
|
41
41
|
var children = _a.children, className = _a.className, _b = _a.isShowIndicator, isShowIndicator = _b === void 0 ? true : _b, props = __rest(_a, ["children", "className", "isShowIndicator"]);
|
42
42
|
var _c = useNavigationMenuContext(), scaling = _c.scaling, radius = _c.radius, _d = _c.appearance, appearance = _d === void 0 ? 'ghost' : _d, _e = _c.color, color = _e === void 0 ? 'red' : _e;
|
43
43
|
var navigationMenuListClassName = cn(navigationMenuListVariants({ scaling: scaling, radius: radius }), appearanceStyle(appearance, color, false), 'border-none', appearance === 'ghost' && 'bg-white', className);
|
44
|
-
return (<NavigationMenuPrimitive.List ref={ref} className={navigationMenuListClassName} {...props}>
|
45
|
-
{children}
|
46
|
-
{isShowIndicator && <NavigationMenuIndicator />}
|
44
|
+
return (<NavigationMenuPrimitive.List ref={ref} className={navigationMenuListClassName} {...props}>
|
45
|
+
{children}
|
46
|
+
{isShowIndicator && <NavigationMenuIndicator />}
|
47
47
|
</NavigationMenuPrimitive.List>);
|
48
48
|
});
|
49
49
|
NavigationMenuList.displayName = 'NavigationMenuList';
|
@@ -52,9 +52,9 @@ export var NavigationMenuTrigger = forwardRef(function (_a, ref) {
|
|
52
52
|
var children = _a.children, className = _a.className, _b = _a.isShowIcon, isShowIcon = _b === void 0 ? true : _b, props = __rest(_a, ["children", "className", "isShowIcon"]);
|
53
53
|
var _c = useNavigationMenuContext(), scaling = _c.scaling, size = _c.size, radius = _c.radius, _d = _c.color, color = _d === void 0 ? 'red' : _d, _e = _c.appearance, appearance = _e === void 0 ? 'ghost' : _e;
|
54
54
|
var triggerClassName = cn(navigationMenuTriggerVariants({ scaling: scaling, size: size, radius: radius }), appearanceStyle(appearance, color), className);
|
55
|
-
return (<NavigationMenuPrimitive.Trigger ref={ref} className={triggerClassName} {...props}>
|
56
|
-
{children}
|
57
|
-
{isShowIcon && (<CaretDownIcon className={cn("relative top-[1px] transition-transform duration-[250] ease-in group-data-[state=open]:-rotate-180")} aria-hidden/>)}
|
55
|
+
return (<NavigationMenuPrimitive.Trigger ref={ref} className={triggerClassName} {...props}>
|
56
|
+
{children}
|
57
|
+
{isShowIcon && (<CaretDownIcon className={cn("relative top-[1px] transition-transform duration-[250] ease-in group-data-[state=open]:-rotate-180")} aria-hidden/>)}
|
58
58
|
</NavigationMenuPrimitive.Trigger>);
|
59
59
|
});
|
60
60
|
NavigationMenuTrigger.displayName = 'NavigationMenuTrigger';
|
@@ -47,8 +47,8 @@ export var NavigationMenuViewport = forwardRef(function (_a, ref) {
|
|
47
47
|
var className = _a.className, props = __rest(_a, ["className"]);
|
48
48
|
var _b = useNavigationMenuContext(), size = _b.size, scaling = _b.scaling, radius = _b.radius;
|
49
49
|
var viewportClassName = cn(navigationViewportVariants({ size: size, scaling: scaling, radius: radius }), className);
|
50
|
-
return (<div className="perspective-[2000px] absolute top-full left-0 flex w-full justify-center ">
|
51
|
-
<NavigationMenuPrimitive.Viewport ref={ref} className={viewportClassName} {...props}/>
|
50
|
+
return (<div className="perspective-[2000px] absolute top-full left-0 flex w-full justify-center ">
|
51
|
+
<NavigationMenuPrimitive.Viewport ref={ref} className={viewportClassName} {...props}/>
|
52
52
|
</div>);
|
53
53
|
});
|
54
54
|
NavigationMenuViewport.displayName = 'NavigationMenuViewport';
|
@@ -32,10 +32,10 @@ export var useNavigationMenuContext = function () {
|
|
32
32
|
export var NavigationMenu = forwardRef(function (_a, ref) {
|
33
33
|
var className = _a.className, children = _a.children, radius = _a.radius, size = _a.size, scaling = _a.scaling, color = _a.color, appearance = _a.appearance, props = __rest(_a, ["className", "children", "radius", "size", "scaling", "color", "appearance"]);
|
34
34
|
var contextValue = { radius: radius, size: size, scaling: scaling, color: color, appearance: appearance };
|
35
|
-
return (<NavigationMenuContext.Provider value={contextValue}>
|
36
|
-
<NavigationMenuPrimitive.Root ref={ref} className={cn('flex relative z-[1] w-screen justify-center', className)} {...props}>
|
37
|
-
{children}
|
38
|
-
</NavigationMenuPrimitive.Root>
|
35
|
+
return (<NavigationMenuContext.Provider value={contextValue}>
|
36
|
+
<NavigationMenuPrimitive.Root ref={ref} className={cn('flex relative z-[1] w-screen justify-center', className)} {...props}>
|
37
|
+
{children}
|
38
|
+
</NavigationMenuPrimitive.Root>
|
39
39
|
</NavigationMenuContext.Provider>);
|
40
40
|
});
|
41
41
|
NavigationMenu.displayName = 'NavigationMenu';
|
@@ -29,8 +29,8 @@ export var popoverCloseVariants = cva('', {
|
|
29
29
|
});
|
30
30
|
export var PopoverClose = forwardRef(function (_a, ref) {
|
31
31
|
var className = _a.className, children = _a.children, radius = _a.radius, props = __rest(_a, ["className", "children", "radius"]);
|
32
|
-
return (<PopoverTheme.Close ref={ref} className={cn(popoverCloseVariants({ radius: radius }), className)} {...props}>
|
33
|
-
{children}
|
32
|
+
return (<PopoverTheme.Close ref={ref} className={cn(popoverCloseVariants({ radius: radius }), className)} {...props}>
|
33
|
+
{children}
|
34
34
|
</PopoverTheme.Close>);
|
35
35
|
});
|
36
36
|
PopoverClose.displayName = 'PopoverClose';
|
@@ -57,8 +57,8 @@ export var PopoverContent = forwardRef(function (_a, ref) {
|
|
57
57
|
sizeTheme = '3';
|
58
58
|
if (size === 'x-large')
|
59
59
|
sizeTheme = '4';
|
60
|
-
return (<PopoverTheme.Content ref={ref} size={sizeTheme} className={cn(popoverContentVariants({ size: size, radius: radius, scaling: scaling }), className)} {...props}>
|
61
|
-
{children}
|
60
|
+
return (<PopoverTheme.Content ref={ref} size={sizeTheme} className={cn(popoverContentVariants({ size: size, radius: radius, scaling: scaling }), className)} {...props}>
|
61
|
+
{children}
|
62
62
|
</PopoverTheme.Content>);
|
63
63
|
});
|
64
64
|
PopoverContent.displayName = 'PopoverContent';
|
@@ -13,8 +13,8 @@ import React, { forwardRef } from 'react';
|
|
13
13
|
import { Popover as PopoverTheme } from '@radix-ui/themes';
|
14
14
|
export var PopoverTrigger = forwardRef(function (_a, ref) {
|
15
15
|
var className = _a.className, children = _a.children, props = __rest(_a, ["className", "children"]);
|
16
|
-
return (<PopoverTheme.Trigger ref={ref} {...props} className={className}>
|
17
|
-
{children}
|
16
|
+
return (<PopoverTheme.Trigger ref={ref} {...props} className={className}>
|
17
|
+
{children}
|
18
18
|
</PopoverTheme.Trigger>);
|
19
19
|
});
|
20
20
|
PopoverTrigger.displayName = 'PopoverTrigger';
|
@@ -16,8 +16,8 @@ export * from './PopoverContent';
|
|
16
16
|
export * from './PopoverClose';
|
17
17
|
export var Popover = forwardRef(function (_a, ref) {
|
18
18
|
var children = _a.children, props = __rest(_a, ["children"]);
|
19
|
-
return (<Theme>
|
20
|
-
<PopoverTheme.Root {...props}>{children}</PopoverTheme.Root>
|
19
|
+
return (<Theme>
|
20
|
+
<PopoverTheme.Root {...props}>{children}</PopoverTheme.Root>
|
21
21
|
</Theme>);
|
22
22
|
});
|
23
23
|
Popover.displayName = 'Popover';
|
@@ -7,9 +7,9 @@ export interface ProgressProps extends VariantProps<typeof progressVariants> {
|
|
7
7
|
appearance?: 'classic' | 'surface' | 'soft';
|
8
8
|
}
|
9
9
|
declare const progressVariants: (props?: ({
|
10
|
-
radius?: "
|
11
|
-
size?: "
|
12
|
-
scaling?: "
|
10
|
+
radius?: "none" | "small" | "medium" | "large" | "full" | null | undefined;
|
11
|
+
size?: "small" | "medium" | "large" | null | undefined;
|
12
|
+
scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
|
13
13
|
color?: string | null | undefined;
|
14
14
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
15
15
|
export declare const Progress: React.ForwardRefExoticComponent<Omit<ProgressPrimitive.ProgressProps & React.RefAttributes<HTMLDivElement>, "ref"> & ProgressProps & React.RefAttributes<HTMLDivElement>>;
|
@@ -50,8 +50,8 @@ var progressVariants = cva('w-[300px]', {
|
|
50
50
|
});
|
51
51
|
export var Progress = forwardRef(function (_a, ref) {
|
52
52
|
var className = _a.className, children = _a.children, radius = _a.radius, size = _a.size, value = _a.value, _b = _a.appearance, appearance = _b === void 0 ? 'surface' : _b, _c = _a.color, color = _c === void 0 ? 'red' : _c, scaling = _a.scaling, props = __rest(_a, ["className", "children", "radius", "size", "value", "appearance", "color", "scaling"]);
|
53
|
-
return (<Theme accentColor={color}>
|
54
|
-
<ProgressTheme ref={ref} value={value} variant={appearance} className={cn(progressVariants({ radius: radius, size: size, scaling: scaling }), className)} {...props}/>
|
53
|
+
return (<Theme accentColor={color}>
|
54
|
+
<ProgressTheme ref={ref} value={value} variant={appearance} className={cn(progressVariants({ radius: radius, size: size, scaling: scaling }), className)} {...props}/>
|
55
55
|
</Theme>);
|
56
56
|
});
|
57
57
|
Progress.displayName = 'Progress';
|
@@ -26,7 +26,7 @@ export interface RadarChartProps extends VariantProps<typeof radarChartVariants>
|
|
26
26
|
height?: string | number;
|
27
27
|
}
|
28
28
|
declare const radarChartVariants: (props?: ({
|
29
|
-
scaling?: "
|
29
|
+
scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
|
30
30
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
31
31
|
export declare const RadarChart: {
|
32
32
|
({ className, labels, datasets, width, height, scaling, ...props }: RadarChartProps): React.JSX.Element;
|
@@ -8,7 +8,7 @@ export interface RadioProps extends VariantProps<typeof radioVariants> {
|
|
8
8
|
appearance?: 'classic' | 'surface' | 'soft';
|
9
9
|
}
|
10
10
|
declare const radioVariants: (props?: ({
|
11
|
-
size?: "
|
11
|
+
size?: "small" | "medium" | "large" | null | undefined;
|
12
12
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
13
13
|
export declare const Radio: React.ForwardRefExoticComponent<Omit<import("@radix-ui/themes").RadioProps & React.RefAttributes<HTMLInputElement>, "ref"> & RadioProps & React.RefAttributes<HTMLInputElement>>;
|
14
14
|
export default Radio;
|
@@ -33,13 +33,13 @@ export var Radio = React.forwardRef(function (_a, ref) {
|
|
33
33
|
sizeTheme = '1';
|
34
34
|
if (size === 'large')
|
35
35
|
sizeTheme = '3';
|
36
|
-
return (<Theme accentColor={color} scaling={scaling}>
|
37
|
-
<Flex asChild className={cn(radioVariants({ size: size }), className)}>
|
38
|
-
<Text as="label" size={sizeTheme}>
|
39
|
-
<RadioTheme ref={ref} value={value} variant={appearance} size={sizeTheme} {...props}/>
|
40
|
-
{children}
|
41
|
-
</Text>
|
42
|
-
</Flex>
|
36
|
+
return (<Theme accentColor={color} scaling={scaling}>
|
37
|
+
<Flex asChild className={cn(radioVariants({ size: size }), className)}>
|
38
|
+
<Text as="label" size={sizeTheme}>
|
39
|
+
<RadioTheme ref={ref} value={value} variant={appearance} size={sizeTheme} {...props}/>
|
40
|
+
{children}
|
41
|
+
</Text>
|
42
|
+
</Flex>
|
43
43
|
</Theme>);
|
44
44
|
});
|
45
45
|
Radio.displayName = 'Radio';
|
@@ -35,8 +35,8 @@ export var radioCardsItemVariants = cva('bg-white dark:bg-slateDark-1 text-slate
|
|
35
35
|
});
|
36
36
|
export var RadioCardsItem = forwardRef(function (_a, ref) {
|
37
37
|
var children = _a.children, className = _a.className, radius = _a.radius, size = _a.size, value = _a.value, props = __rest(_a, ["children", "className", "radius", "size", "value"]);
|
38
|
-
return (<RadioCardsTheme.Item ref={ref} value={value} className={cn(radioCardsItemVariants({ radius: radius, size: size }), className)} {...props}>
|
39
|
-
{children}
|
38
|
+
return (<RadioCardsTheme.Item ref={ref} value={value} className={cn(radioCardsItemVariants({ radius: radius, size: size }), className)} {...props}>
|
39
|
+
{children}
|
40
40
|
</RadioCardsTheme.Item>);
|
41
41
|
});
|
42
42
|
RadioCardsItem.displayName = 'RadioCardsItem';
|
@@ -8,7 +8,7 @@ export interface RadioCardsProps extends VariantProps<typeof radioCardsVariants>
|
|
8
8
|
appearance?: 'classic' | 'surface';
|
9
9
|
}
|
10
10
|
declare const radioCardsVariants: (props?: ({
|
11
|
-
scaling?: "
|
11
|
+
scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
|
12
12
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
13
13
|
export declare const RadioCards: React.ForwardRefExoticComponent<Omit<RadioCardsTheme.RootProps & React.RefAttributes<HTMLDivElement>, "ref"> & RadioCardsProps & React.RefAttributes<HTMLDivElement>>;
|
14
14
|
export default RadioCards;
|
@@ -36,10 +36,10 @@ var radioCardsVariants = cva('flex items-center gap-2', {
|
|
36
36
|
});
|
37
37
|
export var RadioCards = forwardRef(function (_a, ref) {
|
38
38
|
var children = _a.children, className = _a.className, scaling = _a.scaling, _b = _a.appearance, appearance = _b === void 0 ? 'surface' : _b, _c = _a.color, color = _c === void 0 ? 'red' : _c, props = __rest(_a, ["children", "className", "scaling", "appearance", "color"]);
|
39
|
-
return (<Theme accentColor={color}>
|
40
|
-
<RadioCardsTheme.Root ref={ref} variant={appearance} className={cn(radioCardsVariants({ scaling: scaling }), className)} {...props}>
|
41
|
-
{children}
|
42
|
-
</RadioCardsTheme.Root>
|
39
|
+
return (<Theme accentColor={color}>
|
40
|
+
<RadioCardsTheme.Root ref={ref} variant={appearance} className={cn(radioCardsVariants({ scaling: scaling }), className)} {...props}>
|
41
|
+
{children}
|
42
|
+
</RadioCardsTheme.Root>
|
43
43
|
</Theme>);
|
44
44
|
});
|
45
45
|
RadioCards.displayName = 'RadioCards';
|
@@ -27,8 +27,8 @@ var radioGroupItemVariants = cva('font-normal text-slate-12 dark:text-slateDark-
|
|
27
27
|
});
|
28
28
|
export var RadioGroupItem = forwardRef(function (_a, ref) {
|
29
29
|
var className = _a.className, children = _a.children, value = _a.value, size = _a.size, _b = _a.appearance, appearance = _b === void 0 ? 'surface' : _b, props = __rest(_a, ["className", "children", "value", "size", "appearance"]);
|
30
|
-
return (<RadioGroupTheme.Item ref={ref} value={value} className={cn(radioGroupItemVariants({ size: size }), className)} {...props}>
|
31
|
-
{children}
|
30
|
+
return (<RadioGroupTheme.Item ref={ref} value={value} className={cn(radioGroupItemVariants({ size: size }), className)} {...props}>
|
31
|
+
{children}
|
32
32
|
</RadioGroupTheme.Item>);
|
33
33
|
});
|
34
34
|
RadioGroupItem.displayName = 'RadioGroupItem';
|
@@ -10,7 +10,7 @@ export interface RadioGroupProps extends VariantProps<typeof radioGroupVariants>
|
|
10
10
|
appearance?: 'classic' | 'surface' | 'soft';
|
11
11
|
}
|
12
12
|
declare const radioGroupVariants: (props?: ({
|
13
|
-
size?: "
|
13
|
+
size?: "small" | "medium" | "large" | null | undefined;
|
14
14
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
15
15
|
export declare const RadioGroup: React.ForwardRefExoticComponent<Omit<RadioGroupTheme.RootProps & React.RefAttributes<HTMLDivElement>, "ref"> & RadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
16
16
|
export default RadioGroup;
|
@@ -33,10 +33,10 @@ export var RadioGroup = forwardRef(function (_a, ref) {
|
|
33
33
|
sizeTheme = '1';
|
34
34
|
if (size === 'large')
|
35
35
|
sizeTheme = '3';
|
36
|
-
return (<Theme accentColor={color} scaling={scaling}>
|
37
|
-
<RadioGroupTheme.Root ref={ref} size={sizeTheme} variant={appearance} className={cn(radioGroupVariants({ size: size }), className)} {...props}>
|
38
|
-
{children}
|
39
|
-
</RadioGroupTheme.Root>
|
36
|
+
return (<Theme accentColor={color} scaling={scaling}>
|
37
|
+
<RadioGroupTheme.Root ref={ref} size={sizeTheme} variant={appearance} className={cn(radioGroupVariants({ size: size }), className)} {...props}>
|
38
|
+
{children}
|
39
|
+
</RadioGroupTheme.Root>
|
40
40
|
</Theme>);
|
41
41
|
});
|
42
42
|
RadioGroup.displayName = 'RadioGroup';
|
@@ -18,10 +18,10 @@ export var ScrollArea = forwardRef(function (_a, ref) {
|
|
18
18
|
sizeTheme = '2';
|
19
19
|
if (size === 'large')
|
20
20
|
sizeTheme = '3';
|
21
|
-
return (<Theme>
|
22
|
-
<ScrollAreaTheme ref={ref} scrollbars={scrollbars} radius={radius} size={sizeTheme} className={className} {...props}>
|
23
|
-
{children}
|
24
|
-
</ScrollAreaTheme>
|
21
|
+
return (<Theme>
|
22
|
+
<ScrollAreaTheme ref={ref} scrollbars={scrollbars} radius={radius} size={sizeTheme} className={className} {...props}>
|
23
|
+
{children}
|
24
|
+
</ScrollAreaTheme>
|
25
25
|
</Theme>);
|
26
26
|
});
|
27
27
|
ScrollArea.displayName = 'ScrollArea';
|