@lotte-innovate/ui-component-test 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (146) hide show
  1. package/README.md +163 -163
  2. package/dist/components/Accordion/index.jsx +13 -13
  3. package/dist/components/AlertDialog/AlertDialogAction.jsx +2 -2
  4. package/dist/components/AlertDialog/AlertDialogCancel.jsx +2 -2
  5. package/dist/components/AlertDialog/AlertDialogContent.jsx +5 -5
  6. package/dist/components/AlertDialog/AlertDialogDescription.jsx +2 -2
  7. package/dist/components/AlertDialog/AlertDialogTitle.jsx +2 -2
  8. package/dist/components/AlertDialog/AlertDialogTrigger.jsx +2 -2
  9. package/dist/components/AspectRatio/index.jsx +2 -2
  10. package/dist/components/Avatar/index.jsx +5 -5
  11. package/dist/components/Badge/index.jsx +2 -2
  12. package/dist/components/BubbleChart/index.d.ts +1 -1
  13. package/dist/components/Button/index.jsx +2 -2
  14. package/dist/components/Callout/CalloutIcon.jsx +6 -6
  15. package/dist/components/Callout/CalloutText.jsx +2 -2
  16. package/dist/components/Callout/index.jsx +4 -4
  17. package/dist/components/Card/index.jsx +2 -2
  18. package/dist/components/Checkbox/index.jsx +9 -9
  19. package/dist/components/CheckboxCard/index.jsx +3 -3
  20. package/dist/components/CheckboxGroup/CheckboxGroupItem.jsx +4 -4
  21. package/dist/components/CheckboxGroup/index.jsx +4 -4
  22. package/dist/components/ContextMenu/ContextMenuCheckboxItem.jsx +5 -5
  23. package/dist/components/ContextMenu/ContextMenuContent.jsx +4 -4
  24. package/dist/components/ContextMenu/ContextMenuGroup.jsx +2 -2
  25. package/dist/components/ContextMenu/ContextMenuItem.jsx +3 -3
  26. package/dist/components/ContextMenu/ContextMenuItemIndicator.jsx +2 -2
  27. package/dist/components/ContextMenu/ContextMenuLabel.jsx +2 -2
  28. package/dist/components/ContextMenu/ContextMenuRadioGroup.jsx +4 -4
  29. package/dist/components/ContextMenu/ContextMenuRadioItem.jsx +5 -5
  30. package/dist/components/ContextMenu/ContextMenuSeparator.jsx +2 -2
  31. package/dist/components/ContextMenu/ContextMenuSubContent.jsx +4 -4
  32. package/dist/components/ContextMenu/ContextMenuSubTrigger.jsx +7 -7
  33. package/dist/components/ContextMenu/ContextMenuTrigger.jsx +2 -2
  34. package/dist/components/ContextMenu/index.jsx +2 -2
  35. package/dist/components/DataList/DataListItem.jsx +2 -2
  36. package/dist/components/DataList/DataListLabel.jsx +2 -2
  37. package/dist/components/DataList/DataListValue.jsx +2 -2
  38. package/dist/components/DataList/index.jsx +4 -4
  39. package/dist/components/Dialog/DialogAction.jsx +2 -2
  40. package/dist/components/Dialog/DialogCancel.jsx +2 -2
  41. package/dist/components/Dialog/DialogContent.jsx +2 -2
  42. package/dist/components/Dialog/DialogDescription.jsx +2 -2
  43. package/dist/components/Dialog/DialogSlot.jsx +2 -2
  44. package/dist/components/Dialog/DialogTitle.jsx +2 -2
  45. package/dist/components/Dialog/DialogTrigger.jsx +2 -2
  46. package/dist/components/Dialog/index.jsx +2 -2
  47. package/dist/components/DropdownMenu/DropdonMenuRadioGroup.jsx +4 -4
  48. package/dist/components/DropdownMenu/DropdonMenuSubContent.jsx +4 -4
  49. package/dist/components/DropdownMenu/DropdownMenuCheckboxItem.jsx +5 -5
  50. package/dist/components/DropdownMenu/DropdownMenuContent.jsx +4 -4
  51. package/dist/components/DropdownMenu/DropdownMenuItem.jsx +3 -3
  52. package/dist/components/DropdownMenu/DropdownMenuItemIndicator.jsx +2 -2
  53. package/dist/components/DropdownMenu/DropdownMenuLable.jsx +2 -2
  54. package/dist/components/DropdownMenu/DropdownMenuRadioItem.jsx +5 -5
  55. package/dist/components/DropdownMenu/DropdownMenuSubTrigger.jsx +5 -5
  56. package/dist/components/DropdownMenu/DropdownMenuTrigger.jsx +2 -2
  57. package/dist/components/HoverCard/HoverCardContent.jsx +2 -2
  58. package/dist/components/HoverCard/HoverCardTrigger.jsx +2 -2
  59. package/dist/components/HoverCard/index.jsx +2 -2
  60. package/dist/components/IconButton/index.jsx +2 -2
  61. package/dist/components/Input/Input.stories.jsx +6 -6
  62. package/dist/components/Inset/index.jsx +4 -4
  63. package/dist/components/Label/index.jsx +2 -2
  64. package/dist/components/Menubar/MenubarCheckboxItem.jsx +5 -5
  65. package/dist/components/Menubar/MenubarContent.jsx +4 -4
  66. package/dist/components/Menubar/MenubarItem.jsx +3 -3
  67. package/dist/components/Menubar/MenubarItemIndicator.jsx +2 -2
  68. package/dist/components/Menubar/MenubarRadioGroup.jsx +4 -4
  69. package/dist/components/Menubar/MenubarRadioItem.jsx +5 -5
  70. package/dist/components/Menubar/MenubarSeparator.jsx +2 -2
  71. package/dist/components/Menubar/MenubarSubContent.jsx +2 -2
  72. package/dist/components/Menubar/MenubarSubTrigger.jsx +5 -5
  73. package/dist/components/Menubar/MenubarTrigger.jsx +2 -2
  74. package/dist/components/Menubar/index.jsx +4 -4
  75. package/dist/components/NavigationMenu/NavigationMenuContent.jsx +2 -2
  76. package/dist/components/NavigationMenu/NavigationMenuIndicator.jsx +3 -3
  77. package/dist/components/NavigationMenu/NavigationMenuItem.jsx +2 -2
  78. package/dist/components/NavigationMenu/NavigationMenuLink.jsx +2 -2
  79. package/dist/components/NavigationMenu/NavigationMenuList.jsx +3 -3
  80. package/dist/components/NavigationMenu/NavigationMenuTrigger.jsx +3 -3
  81. package/dist/components/NavigationMenu/NavigationMenuViewport.jsx +2 -2
  82. package/dist/components/NavigationMenu/index.jsx +4 -4
  83. package/dist/components/Popover/PopoverClose.jsx +2 -2
  84. package/dist/components/Popover/PopoverContent.jsx +2 -2
  85. package/dist/components/Popover/PopoverTrigger.jsx +2 -2
  86. package/dist/components/Popover/index.jsx +2 -2
  87. package/dist/components/Progress/index.d.ts +3 -3
  88. package/dist/components/Progress/index.jsx +2 -2
  89. package/dist/components/RadarChart/index.d.ts +1 -1
  90. package/dist/components/Radio/index.d.ts +1 -1
  91. package/dist/components/Radio/index.jsx +7 -7
  92. package/dist/components/RadioCards/RadioCardsItem.jsx +2 -2
  93. package/dist/components/RadioCards/index.d.ts +1 -1
  94. package/dist/components/RadioCards/index.jsx +4 -4
  95. package/dist/components/RadioGroup/RadioGroupItem.jsx +2 -2
  96. package/dist/components/RadioGroup/index.d.ts +1 -1
  97. package/dist/components/RadioGroup/index.jsx +4 -4
  98. package/dist/components/ScrollArea/index.jsx +4 -4
  99. package/dist/components/SegmentedControl/SegmentedControlItem.jsx +2 -2
  100. package/dist/components/SegmentedControl/index.d.ts +1 -1
  101. package/dist/components/SegmentedControl/index.jsx +4 -4
  102. package/dist/components/Select/index.d.ts +1 -1
  103. package/dist/components/Select/index.jsx +16 -16
  104. package/dist/components/Separator/index.d.ts +1 -1
  105. package/dist/components/Separator/index.jsx +4 -4
  106. package/dist/components/Skeleton/index.d.ts +1 -1
  107. package/dist/components/Skeleton/index.jsx +4 -4
  108. package/dist/components/Slider/index.d.ts +1 -1
  109. package/dist/components/Slider/index.jsx +2 -2
  110. package/dist/components/Spinner/index.d.ts +1 -1
  111. package/dist/components/Spinner/index.jsx +4 -4
  112. package/dist/components/TabNav/index.jsx +6 -6
  113. package/dist/components/Table/index.d.ts +2 -2
  114. package/dist/components/Table/index.jsx +16 -16
  115. package/dist/components/Tabs/index.d.ts +1 -1
  116. package/dist/components/Tabs/index.jsx +10 -10
  117. package/dist/components/TextArea/index.d.ts +3 -3
  118. package/dist/components/TextArea/index.jsx +2 -2
  119. package/dist/components/TextField/index.d.ts +1 -1
  120. package/dist/components/TextField/index.jsx +6 -6
  121. package/dist/components/Toast/ToastActionButton.d.ts +3 -3
  122. package/dist/components/Toast/ToastActionButton.jsx +2 -2
  123. package/dist/components/Toast/ToastDescription.d.ts +1 -1
  124. package/dist/components/Toast/ToastDescription.jsx +4 -4
  125. package/dist/components/Toast/ToastTitle.d.ts +1 -1
  126. package/dist/components/Toast/ToastTitle.jsx +2 -2
  127. package/dist/components/Toast/index.d.ts +3 -3
  128. package/dist/components/Toast/index.jsx +7 -7
  129. package/dist/components/Toggle/ToggleWithText.jsx +3 -3
  130. package/dist/components/Toggle/index.d.ts +3 -3
  131. package/dist/components/Toggle/index.jsx +2 -2
  132. package/dist/components/ToggleGroup/index.d.ts +1 -1
  133. package/dist/components/ToggleGroup/index.jsx +4 -4
  134. package/dist/components/ToggleGroup/toggleGroupItem.jsx +2 -2
  135. package/dist/components/ToggleSwitch/index.d.ts +3 -3
  136. package/dist/components/ToggleSwitch/index.jsx +5 -5
  137. package/dist/components/Tooltip/index.d.ts +1 -1
  138. package/dist/components/Tooltip/index.jsx +10 -10
  139. package/dist/components/index.d.ts +0 -48
  140. package/dist/components/index.js +52 -51
  141. package/dist/index.js +51 -0
  142. package/package.json +119 -120
  143. package/dist/Typography/Header/index.d.ts +0 -13
  144. package/dist/Typography/Header/index.jsx +0 -58
  145. package/dist/Typography/Text/index.d.ts +0 -16
  146. package/dist/Typography/Text/index.jsx +0 -47
@@ -15,10 +15,10 @@ import { useCheckboxGroupContext } from '.';
15
15
  export var CheckboxGroupItem = forwardRef(function (_a, ref) {
16
16
  var className = _a.className, children = _a.children, value = _a.value, id = _a.id, defaultValue = _a.defaultValue, props = __rest(_a, ["className", "children", "value", "id", "defaultValue"]);
17
17
  var _b = useCheckboxGroupContext(), scaling = _b.scaling, size = _b.size, color = _b.color, radius = _b.radius, appearance = _b.appearance;
18
- return (<div className="flex">
19
- <Checkbox className={className} ref={ref} id={id} defaultChecked={defaultValue == id} scaling={scaling} radius={radius} color={color} size={size} appearance={appearance} {...props}>
20
- {children}
21
- </Checkbox>
18
+ return (<div className="flex">
19
+ <Checkbox className={className} ref={ref} id={id} defaultChecked={defaultValue == id} scaling={scaling} radius={radius} color={color} size={size} appearance={appearance} {...props}>
20
+ {children}
21
+ </Checkbox>
22
22
  </div>);
23
23
  });
24
24
  CheckboxGroupItem.displayName = 'CheckboxGroupItem';
@@ -28,10 +28,10 @@ export var useCheckboxGroupContext = function () {
28
28
  export var CheckboxGroup = forwardRef(function (_a, ref) {
29
29
  var className = _a.className, children = _a.children, defaultValue = _a.defaultValue, size = _a.size;
30
30
  var contextValue = { size: size };
31
- return (<CheckboxGroupContext.Provider value={contextValue}>
32
- <CheckboxGroupTheme.Root defaultValue={defaultValue} ref={ref} className={cn(CheckboxGroupVariants({ size: size }), className)}>
33
- {Children.map(children, function (child) { return React.cloneElement(child, { defaultValue: defaultValue }); })}
34
- </CheckboxGroupTheme.Root>
31
+ return (<CheckboxGroupContext.Provider value={contextValue}>
32
+ <CheckboxGroupTheme.Root defaultValue={defaultValue} ref={ref} className={cn(CheckboxGroupVariants({ size: size }), className)}>
33
+ {Children.map(children, function (child) { return React.cloneElement(child, { defaultValue: defaultValue }); })}
34
+ </CheckboxGroupTheme.Root>
35
35
  </CheckboxGroupContext.Provider>);
36
36
  });
37
37
  CheckboxGroup.displayName = 'CheckboxGroup';
@@ -23,11 +23,11 @@ export var ContextMenuCheckboxItem = forwardRef(function (_a, ref) {
23
23
  scaling: scaling,
24
24
  size: size,
25
25
  }), 'pl-7', menuItemAppearanceStyle(appearance, color), className);
26
- return (<ContextMenuPrimitive.CheckboxItem ref={ref} className={itemClassName} {...props}>
27
- <ContextMenuItemIndicator forceMount radius={'medium'} size={size}>
28
- {checked && <CheckIcon />}
29
- </ContextMenuItemIndicator>
30
- {children}
26
+ return (<ContextMenuPrimitive.CheckboxItem ref={ref} className={itemClassName} {...props}>
27
+ <ContextMenuItemIndicator forceMount radius={'medium'} size={size}>
28
+ {checked && <CheckIcon />}
29
+ </ContextMenuItemIndicator>
30
+ {children}
31
31
  </ContextMenuPrimitive.CheckboxItem>);
32
32
  });
33
33
  ContextMenuCheckboxItem.displayName = 'ContextMenuCheckboxItem';
@@ -50,10 +50,10 @@ export var contextMenuContentVariants = cva("p-[5px] bg-white dark:bg-slateDark-
50
50
  export var ContextMenuContent = forwardRef(function (_a, ref) {
51
51
  var className = _a.className, children = _a.children, props = __rest(_a, ["className", "children"]);
52
52
  var _b = useContextMenuContext(), radius = _b.radius, scaling = _b.scaling, size = _b.size;
53
- return (<ContextMenuPrimitive.Portal>
54
- <ContextMenuPrimitive.Content ref={ref} className={cn(contextMenuContentVariants({ radius: radius, scaling: scaling, size: size }), className)} {...props}>
55
- {children}
56
- </ContextMenuPrimitive.Content>
53
+ return (<ContextMenuPrimitive.Portal>
54
+ <ContextMenuPrimitive.Content ref={ref} className={cn(contextMenuContentVariants({ radius: radius, scaling: scaling, size: size }), className)} {...props}>
55
+ {children}
56
+ </ContextMenuPrimitive.Content>
57
57
  </ContextMenuPrimitive.Portal>);
58
58
  });
59
59
  ContextMenuContent.displayName = 'ContextMenuContent';
@@ -13,8 +13,8 @@ import React, { forwardRef } from 'react';
13
13
  import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
14
14
  export var ContextMenuGroup = forwardRef(function (_a, ref) {
15
15
  var className = _a.className, children = _a.children, props = __rest(_a, ["className", "children"]);
16
- return (<ContextMenuPrimitive.Group ref={ref} className={className} {...props}>
17
- {children}
16
+ return (<ContextMenuPrimitive.Group ref={ref} className={className} {...props}>
17
+ {children}
18
18
  </ContextMenuPrimitive.Group>);
19
19
  });
20
20
  ContextMenuGroup.displayName = 'ContextMenuGroup';
@@ -53,9 +53,9 @@ export var ContextMenuItem = forwardRef(function (_a, ref) {
53
53
  if (appearance === 'solid' && !blackText.includes(color)) {
54
54
  shortcutClassName = 'group-hover:text-white dark:group-hover:text-slateDark-1';
55
55
  }
56
- return (<ContextMenuPrimitive.Item ref={ref} className={itemClassName} {...props}>
57
- {children}
58
- {shortcut && <span className={shortcutClassName}>{shortcut}</span>}
56
+ return (<ContextMenuPrimitive.Item ref={ref} className={itemClassName} {...props}>
57
+ {children}
58
+ {shortcut && <span className={shortcutClassName}>{shortcut}</span>}
59
59
  </ContextMenuPrimitive.Item>);
60
60
  });
61
61
  ContextMenuItem.displayName = 'ContextMenuItem';
@@ -44,8 +44,8 @@ export var ContextMenuItemIndicator = forwardRef(function (_a, ref) {
44
44
  var className = _a.className, children = _a.children, radius = _a.radius, props = __rest(_a, ["className", "children", "radius"]);
45
45
  var size = useContextMenuContext().size;
46
46
  var indicatorClassName = cn(contextMenuItemIndicatorVariants({ size: size, radius: radius }), className);
47
- return (<ContextMenuPrimitive.ItemIndicator ref={ref} className={indicatorClassName} {...props}>
48
- {children !== null && children !== void 0 ? children : <CheckIcon />}
47
+ return (<ContextMenuPrimitive.ItemIndicator ref={ref} className={indicatorClassName} {...props}>
48
+ {children !== null && children !== void 0 ? children : <CheckIcon />}
49
49
  </ContextMenuPrimitive.ItemIndicator>);
50
50
  });
51
51
  ContextMenuItemIndicator.displayName = 'ContextMenuItemIndicator';
@@ -42,8 +42,8 @@ export var contextMenuLabelVariants = cva("flex relative leading-none select-non
42
42
  export var ContextMenuLabel = forwardRef(function (_a, ref) {
43
43
  var className = _a.className, children = _a.children, props = __rest(_a, ["className", "children"]);
44
44
  var _b = useContextMenuContext(), size = _b.size, scaling = _b.scaling;
45
- return (<ContextMenuPrimitive.Label ref={ref} className={cn(contextMenuLabelVariants({ size: size, scaling: scaling }), className)} {...props}>
46
- {children}
45
+ return (<ContextMenuPrimitive.Label ref={ref} className={cn(contextMenuLabelVariants({ size: size, scaling: scaling }), className)} {...props}>
46
+ {children}
47
47
  </ContextMenuPrimitive.Label>);
48
48
  });
49
49
  ContextMenuLabel.displayName = 'ContextMenuLabel';
@@ -14,10 +14,10 @@ import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
14
14
  export var RadioContext = createContext({ selectedValue: '' });
15
15
  export var ContextMenuRadioGroup = forwardRef(function (_a, ref) {
16
16
  var className = _a.className, children = _a.children, value = _a.value, props = __rest(_a, ["className", "children", "value"]);
17
- return (<ContextMenuPrimitive.RadioGroup ref={ref} className={className} {...props}>
18
- <RadioContext.Provider value={{ selectedValue: value !== null && value !== void 0 ? value : '' }}>
19
- {children}
20
- </RadioContext.Provider>
17
+ return (<ContextMenuPrimitive.RadioGroup ref={ref} className={className} {...props}>
18
+ <RadioContext.Provider value={{ selectedValue: value !== null && value !== void 0 ? value : '' }}>
19
+ {children}
20
+ </RadioContext.Provider>
21
21
  </ContextMenuPrimitive.RadioGroup>);
22
22
  });
23
23
  ContextMenuRadioGroup.displayName = 'ContextMenuRadioGroup';
@@ -24,11 +24,11 @@ export var ContextMenuRadioItem = forwardRef(function (_a, ref) {
24
24
  size: size,
25
25
  }), 'pl-7', menuItemAppearanceStyle(appearance, color), className);
26
26
  var radioGroup = useContext(RadioContext);
27
- return (<ContextMenuPrimitive.RadioItem ref={ref} className={itemClassName} {...props}>
28
- <ContextMenuItemIndicator forceMount radius={'full'} size={size}>
29
- {radioGroup.selectedValue === props.value && <DotFilledIcon />}
30
- </ContextMenuItemIndicator>
31
- {children}
27
+ return (<ContextMenuPrimitive.RadioItem ref={ref} className={itemClassName} {...props}>
28
+ <ContextMenuItemIndicator forceMount radius={'full'} size={size}>
29
+ {radioGroup.selectedValue === props.value && <DotFilledIcon />}
30
+ </ContextMenuItemIndicator>
31
+ {children}
32
32
  </ContextMenuPrimitive.RadioItem>);
33
33
  });
34
34
  ContextMenuRadioItem.displayName = 'ContextMenuRadioItem';
@@ -14,8 +14,8 @@ import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
14
14
  import { cn } from 'utils/utils';
15
15
  export var ContextMenuSeparator = forwardRef(function (_a, ref) {
16
16
  var className = _a.className, children = _a.children, props = __rest(_a, ["className", "children"]);
17
- return (<ContextMenuPrimitive.Separator ref={ref} className={cn('h-[1px] m-[5px] bg-slate-6 dark:bg-slateDark-6', className)} {...props}>
18
- {children}
17
+ return (<ContextMenuPrimitive.Separator ref={ref} className={cn('h-[1px] m-[5px] bg-slate-6 dark:bg-slateDark-6', className)} {...props}>
18
+ {children}
19
19
  </ContextMenuPrimitive.Separator>);
20
20
  });
21
21
  ContextMenuSeparator.displayName = 'ContextMenuSeparator';
@@ -44,13 +44,13 @@ export var contextMenuSubContentVariants = cva("p-[5px] bg-white dark:bg-slateDa
44
44
  export var ContextMenuSubContent = forwardRef(function (_a, ref) {
45
45
  var className = _a.className, children = _a.children, props = __rest(_a, ["className", "children"]);
46
46
  var _b = useContextMenuContext(), radius = _b.radius, size = _b.size, scaling = _b.scaling;
47
- return (<ContextMenuPrimitive.Portal>
47
+ return (<ContextMenuPrimitive.Portal>
48
48
  <ContextMenuPrimitive.SubContent ref={ref} className={cn(contextMenuSubContentVariants({
49
49
  radius: radius,
50
50
  size: size,
51
- }), className)} sideOffset={2} alignOffset={-5} {...props}>
52
- {children}
53
- </ContextMenuPrimitive.SubContent>
51
+ }), className)} sideOffset={2} alignOffset={-5} {...props}>
52
+ {children}
53
+ </ContextMenuPrimitive.SubContent>
54
54
  </ContextMenuPrimitive.Portal>);
55
55
  });
56
56
  ContextMenuSubContent.displayName = 'ContextMenuSubContent';
@@ -23,13 +23,13 @@ export var ContextMenuSubTrigger = forwardRef(function (_a, ref) {
23
23
  var iconClassName = cn('group-data-[disabled]:text-slate-8 ', appearance === 'solid' && blackText.includes(color)
24
24
  ? 'hover:fill-slate-12 dark:hover:fill-slateDark-1'
25
25
  : "hover:fill-white dark:hover:fill-slateDark-12 ");
26
- return (<ContextMenuPrimitive.Sub>
27
- <ContextMenuPrimitive.SubTrigger ref={ref} className={triggerClassName} {...props}>
28
- {children}
29
- <div className="ml-auto pl-5 ">
30
- <ChevronRightIcon className={iconClassName}/>
31
- </div>
32
- </ContextMenuPrimitive.SubTrigger>
26
+ return (<ContextMenuPrimitive.Sub>
27
+ <ContextMenuPrimitive.SubTrigger ref={ref} className={triggerClassName} {...props}>
28
+ {children}
29
+ <div className="ml-auto pl-5 ">
30
+ <ChevronRightIcon className={iconClassName}/>
31
+ </div>
32
+ </ContextMenuPrimitive.SubTrigger>
33
33
  </ContextMenuPrimitive.Sub>);
34
34
  });
35
35
  ContextMenuSubTrigger.displayName = 'ContextMenuSubTrigger';
@@ -14,8 +14,8 @@ import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
14
14
  import { cn } from 'utils/utils';
15
15
  export var ContextMenuTrigger = forwardRef(function (_a, ref) {
16
16
  var className = _a.className, children = _a.children, props = __rest(_a, ["className", "children"]);
17
- return (<ContextMenuPrimitive.Trigger ref={ref} className={cn("block border-2 border-dashed text-slate-12 dark:text-slateDark-12 rounded text-base \n select-none py-[45px] w-[300px] text-center", className)} {...props}>
18
- {children}
17
+ return (<ContextMenuPrimitive.Trigger ref={ref} className={cn("block border-2 border-dashed text-slate-12 dark:text-slateDark-12 rounded text-base \n select-none py-[45px] w-[300px] text-center", className)} {...props}>
18
+ {children}
19
19
  </ContextMenuPrimitive.Trigger>);
20
20
  });
21
21
  ContextMenuTrigger.displayName = 'ContextMenuTrigger';
@@ -36,8 +36,8 @@ export var useContextMenuContext = function () {
36
36
  export var ContextMenu = forwardRef(function (_a) {
37
37
  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"]);
38
38
  var contextValue = { radius: radius, size: size, scaling: scaling, color: color, appearance: appearance };
39
- return (<ContextMenuContext.Provider value={contextValue}>
40
- <ContextMenuPrimitive.Root {...props}>{children}</ContextMenuPrimitive.Root>
39
+ return (<ContextMenuContext.Provider value={contextValue}>
40
+ <ContextMenuPrimitive.Root {...props}>{children}</ContextMenuPrimitive.Root>
41
41
  </ContextMenuContext.Provider>);
42
42
  });
43
43
  ContextMenu.displayName = 'ContextMenu';
@@ -37,8 +37,8 @@ export var dataListItemVariants = cva('flex', {
37
37
  export var DataListItem = forwardRef(function (_a, ref) {
38
38
  var className = _a.className, children = _a.children, props = __rest(_a, ["className", "children"]);
39
39
  var scaling = useDataListContext().scaling;
40
- return (<DataListTheme.Item ref={ref} {...props} className={cn(dataListItemVariants({ scaling: scaling }), className)}>
41
- {children}
40
+ return (<DataListTheme.Item ref={ref} {...props} className={cn(dataListItemVariants({ scaling: scaling }), className)}>
41
+ {children}
42
42
  </DataListTheme.Item>);
43
43
  });
44
44
  DataListItem.displayName = 'DataListItem';
@@ -43,8 +43,8 @@ export var dataListLabelVariants = cva('text-slateA-11 dark:text-slateDarkA-11 w
43
43
  export var DataListLabel = forwardRef(function (_a, ref) {
44
44
  var children = _a.children, className = _a.className, weight = _a.weight, color = _a.color, props = __rest(_a, ["children", "className", "weight", "color"]);
45
45
  var size = useDataListContext().size;
46
- return (<DataListTheme.Label ref={ref} {...props}>
47
- <p className={cn(dataListLabelVariants({ weight: weight, size: size }), className)}>{children}</p>
46
+ return (<DataListTheme.Label ref={ref} {...props}>
47
+ <p className={cn(dataListLabelVariants({ weight: weight, size: size }), className)}>{children}</p>
48
48
  </DataListTheme.Label>);
49
49
  });
50
50
  DataListLabel.displayName = 'DataListLabel';
@@ -45,8 +45,8 @@ export var dataListValueVariants = cva('text-slate-12 dark:text-slateDark-12 w-[
45
45
  export var DataListValue = forwardRef(function (_a, ref) {
46
46
  var children = _a.children, className = _a.className, weight = _a.weight, props = __rest(_a, ["children", "className", "weight"]);
47
47
  var _b = useDataListContext(), size = _b.size, color = _b.color;
48
- return (<DataListTheme.Value ref={ref} className={cn(dataListValueVariants({ weight: weight, size: size, color: color }), className)} {...props}>
49
- {children}
48
+ return (<DataListTheme.Value ref={ref} className={cn(dataListValueVariants({ weight: weight, size: size, color: color }), className)} {...props}>
49
+ {children}
50
50
  </DataListTheme.Value>);
51
51
  });
52
52
  DataListValue.displayName = 'DataListValue';
@@ -39,10 +39,10 @@ export var useDataListContext = function () {
39
39
  export var DataList = forwardRef(function (_a, ref) {
40
40
  var children = _a.children, className = _a.className, size = _a.size, scaling = _a.scaling, color = _a.color, props = __rest(_a, ["children", "className", "size", "scaling", "color"]);
41
41
  var contextValue = { size: size, scaling: scaling, color: color };
42
- return (<DataListContext.Provider value={contextValue}>
43
- <DataListTheme.Root ref={ref} {...props} className={cn(dataListVariants({ size: size }), className)}>
44
- {children}
45
- </DataListTheme.Root>
42
+ return (<DataListContext.Provider value={contextValue}>
43
+ <DataListTheme.Root ref={ref} {...props} className={cn(dataListVariants({ size: size }), className)}>
44
+ {children}
45
+ </DataListTheme.Root>
46
46
  </DataListContext.Provider>);
47
47
  });
48
48
  DataList.displayName = 'DataList';
@@ -40,8 +40,8 @@ export var dialogActionVariants = cva('rounded-md inline-flex font-medium items-
40
40
  export var DialogAction = forwardRef(function (_a, ref) {
41
41
  var children = _a.children, className = _a.className, radius = _a.radius, size = _a.size, _b = _a.color, color = _b === void 0 ? 'red' : _b, _c = _a.appearance, appearance = _c === void 0 ? 'solid' : _c, props = __rest(_a, ["children", "className", "radius", "size", "color", "appearance"]);
42
42
  var buttonClassName = cn(dialogActionVariants({ radius: radius, size: size, color: color }), appearanceStyle(appearance, color), className);
43
- return (<DialogTheme.Close ref={ref} className={buttonClassName} {...props}>
44
- {children}
43
+ return (<DialogTheme.Close ref={ref} className={buttonClassName} {...props}>
44
+ {children}
45
45
  </DialogTheme.Close>);
46
46
  });
47
47
  DialogAction.displayName = 'DialogAction';
@@ -36,8 +36,8 @@ export var dialogCancelVariants = cva("rounded-md font-medium inline-flex justif
36
36
  });
37
37
  export var DialogCancel = forwardRef(function (_a, ref) {
38
38
  var children = _a.children, className = _a.className, radius = _a.radius, size = _a.size, props = __rest(_a, ["children", "className", "radius", "size"]);
39
- return (<DialogTheme.Close ref={ref} className={cn(dialogCancelVariants({ radius: radius, size: size }), className)} {...props}>
40
- {children}
39
+ return (<DialogTheme.Close ref={ref} className={cn(dialogCancelVariants({ radius: radius, size: size }), className)} {...props}>
40
+ {children}
41
41
  </DialogTheme.Close>);
42
42
  });
43
43
  DialogCancel.displayName = 'DialogCancel';
@@ -49,8 +49,8 @@ export var dialogContentVariants = cva("rounded-md focus:outline-none bg-white d
49
49
  });
50
50
  export var DialogContent = forwardRef(function (_a, forwardedRef) {
51
51
  var children = _a.children, className = _a.className, radius = _a.radius, size = _a.size, scaling = _a.scaling, props = __rest(_a, ["children", "className", "radius", "size", "scaling"]);
52
- return (<DialogTheme.Content ref={forwardedRef} className={cn(dialogContentVariants({ radius: radius, scaling: scaling, size: size }), className)} {...props}>
53
- {children}
52
+ return (<DialogTheme.Content ref={forwardedRef} className={cn(dialogContentVariants({ radius: radius, scaling: scaling, size: size }), className)} {...props}>
53
+ {children}
54
54
  </DialogTheme.Content>);
55
55
  });
56
56
  DialogContent.displayName = 'DialogContent';
@@ -28,8 +28,8 @@ export var dialogDescriptionVariants = cva('font-normal text-slate-12 dark:text-
28
28
  });
29
29
  export var DialogDescription = forwardRef(function (_a, ref) {
30
30
  var children = _a.children, className = _a.className, size = _a.size, props = __rest(_a, ["children", "className", "size"]);
31
- return (<DialogTheme.Description mb="4" ref={ref} className={cn(dialogDescriptionVariants({ size: size }), className)} {...props}>
32
- {children}
31
+ return (<DialogTheme.Description mb="4" ref={ref} className={cn(dialogDescriptionVariants({ size: size }), className)} {...props}>
32
+ {children}
33
33
  </DialogTheme.Description>);
34
34
  });
35
35
  DialogDescription.displayName = 'DialogDescription';
@@ -27,8 +27,8 @@ export var dialogSlotVariants = cva('flex flex-col gap-2 font-normal text-slate-
27
27
  });
28
28
  export var DialogSlot = forwardRef(function (_a, ref) {
29
29
  var children = _a.children, className = _a.className, size = _a.size, props = __rest(_a, ["children", "className", "size"]);
30
- return (<div ref={ref} className={cn(dialogSlotVariants({ size: size }), className)} {...props}>
31
- {children}
30
+ return (<div ref={ref} className={cn(dialogSlotVariants({ size: size }), className)} {...props}>
31
+ {children}
32
32
  </div>);
33
33
  });
34
34
  DialogSlot.displayName = 'DialogSlot';
@@ -28,8 +28,8 @@ export var dialogTitleVariants = cva('font-bold text-slate-12 dark:text-slateDar
28
28
  });
29
29
  export var DialogTitle = forwardRef(function (_a, ref) {
30
30
  var children = _a.children, className = _a.className, size = _a.size, props = __rest(_a, ["children", "className", "size"]);
31
- return (<DialogTheme.Title ref={ref} className={cn(dialogTitleVariants({ size: size }), className)} {...props}>
32
- {children}
31
+ return (<DialogTheme.Title ref={ref} className={cn(dialogTitleVariants({ size: size }), className)} {...props}>
32
+ {children}
33
33
  </DialogTheme.Title>);
34
34
  });
35
35
  DialogTitle.displayName = 'DialogTitle';
@@ -13,8 +13,8 @@ import React, { forwardRef } from 'react';
13
13
  import { Dialog as DialogTheme } from '@radix-ui/themes';
14
14
  export var DialogTrigger = forwardRef(function (_a, ref) {
15
15
  var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
16
- return (<DialogTheme.Trigger ref={ref} className={className} {...props}>
17
- {children}
16
+ return (<DialogTheme.Trigger ref={ref} className={className} {...props}>
17
+ {children}
18
18
  </DialogTheme.Trigger>);
19
19
  });
20
20
  DialogTrigger.displayName = 'DialogTrigger';
@@ -20,8 +20,8 @@ export * from './DialogCancel';
20
20
  export * from './DialogAction';
21
21
  export var Dialog = forwardRef(function (_a, ref) {
22
22
  var children = _a.children, color = _a.color, props = __rest(_a, ["children", "color"]);
23
- return (<Theme accentColor={color}>
24
- <DialogTheme.Root {...props}>{children}</DialogTheme.Root>
23
+ return (<Theme accentColor={color}>
24
+ <DialogTheme.Root {...props}>{children}</DialogTheme.Root>
25
25
  </Theme>);
26
26
  });
27
27
  Dialog.displayName = 'Dialog';
@@ -14,10 +14,10 @@ import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
14
14
  export var RadioContext = createContext({ selectedValue: '' });
15
15
  export var DropdownMenuRadioGroup = forwardRef(function (_a, ref) {
16
16
  var className = _a.className, children = _a.children, value = _a.value, props = __rest(_a, ["className", "children", "value"]);
17
- return (<DropdownMenuPrimitive.RadioGroup ref={ref} className={className} {...props}>
18
- <RadioContext.Provider value={{ selectedValue: value !== null && value !== void 0 ? value : '' }}>
19
- {children}
20
- </RadioContext.Provider>
17
+ return (<DropdownMenuPrimitive.RadioGroup ref={ref} className={className} {...props}>
18
+ <RadioContext.Provider value={{ selectedValue: value !== null && value !== void 0 ? value : '' }}>
19
+ {children}
20
+ </RadioContext.Provider>
21
21
  </DropdownMenuPrimitive.RadioGroup>);
22
22
  });
23
23
  DropdownMenuRadioGroup.displayName = 'DropdownMenuRadioGroup';
@@ -48,14 +48,14 @@ export var dropdownMenuSubContentVariants = cva("p-[5px] bg-white dark:bg-slateD
48
48
  });
49
49
  export var DropdownMenuSubContent = forwardRef(function (_a, ref) {
50
50
  var className = _a.className, children = _a.children, radius = _a.radius, scaling = _a.scaling, size = _a.size, props = __rest(_a, ["className", "children", "radius", "scaling", "size"]);
51
- return (<DropdownMenuPrimitive.Portal>
51
+ return (<DropdownMenuPrimitive.Portal>
52
52
  <DropdownMenuPrimitive.SubContent ref={ref} className={cn(dropdownMenuSubContentVariants({
53
53
  radius: radius,
54
54
  size: size,
55
55
  scaling: scaling,
56
- }), className)} sideOffset={2} alignOffset={-5} {...props}>
57
- {children}
58
- </DropdownMenuPrimitive.SubContent>
56
+ }), className)} sideOffset={2} alignOffset={-5} {...props}>
57
+ {children}
58
+ </DropdownMenuPrimitive.SubContent>
59
59
  </DropdownMenuPrimitive.Portal>);
60
60
  });
61
61
  DropdownMenuSubContent.displayName = 'DropdownMenuSubContent';
@@ -21,11 +21,11 @@ export var DropdownMenuCheckboxItem = forwardRef(function (_a, ref) {
21
21
  radius: radius,
22
22
  size: size,
23
23
  }), 'pl-7', menuItemAppearanceStyle(appearance, color), className);
24
- return (<DropdownMenuPrimitive.CheckboxItem ref={ref} className={itemClassName} {...props}>
25
- <DropdownMenuItemIndicator forceMount radius={'medium'} size={size}>
26
- {checked && <CheckIcon />}
27
- </DropdownMenuItemIndicator>
28
- {children}
24
+ return (<DropdownMenuPrimitive.CheckboxItem ref={ref} className={itemClassName} {...props}>
25
+ <DropdownMenuItemIndicator forceMount radius={'medium'} size={size}>
26
+ {checked && <CheckIcon />}
27
+ </DropdownMenuItemIndicator>
28
+ {children}
29
29
  </DropdownMenuPrimitive.CheckboxItem>);
30
30
  });
31
31
  DropdownMenuCheckboxItem.displayName = 'DropdownMenuCheckboxItem';
@@ -48,10 +48,10 @@ export var dropdownMenuContentVariants = cva("p-[5px] bg-white dark:bg-slateDark
48
48
  });
49
49
  export var DropdownMenuContent = forwardRef(function (_a, ref) {
50
50
  var className = _a.className, children = _a.children, size = _a.size, scaling = _a.scaling, radius = _a.radius, props = __rest(_a, ["className", "children", "size", "scaling", "radius"]);
51
- return (<DropdownMenuPrimitive.Portal>
52
- <DropdownMenuPrimitive.Content ref={ref} sideOffset={5} className={cn(dropdownMenuContentVariants({ radius: radius, scaling: scaling, size: size }), className)} {...props}>
53
- {children}
54
- </DropdownMenuPrimitive.Content>
51
+ return (<DropdownMenuPrimitive.Portal>
52
+ <DropdownMenuPrimitive.Content ref={ref} sideOffset={5} className={cn(dropdownMenuContentVariants({ radius: radius, scaling: scaling, size: size }), className)} {...props}>
53
+ {children}
54
+ </DropdownMenuPrimitive.Content>
55
55
  </DropdownMenuPrimitive.Portal>);
56
56
  });
57
57
  DropdownMenuContent.displayName = 'DropdownMenuContent';
@@ -50,9 +50,9 @@ export var DropdownMenuItem = forwardRef(function (_a, ref) {
50
50
  if (appearance === 'solid' && !blackText.includes(color)) {
51
51
  shortcutClassName = 'group-hover:text-white dark:group-hover:text-white';
52
52
  }
53
- return (<DropdownMenuPrimitive.Item ref={ref} {...props} className={itemClassName}>
54
- {children}
55
- {shortcut && <span className={shortcutClassName}>{shortcut}</span>}
53
+ return (<DropdownMenuPrimitive.Item ref={ref} {...props} className={itemClassName}>
54
+ {children}
55
+ {shortcut && <span className={shortcutClassName}>{shortcut}</span>}
56
56
  </DropdownMenuPrimitive.Item>);
57
57
  });
58
58
  DropdownMenuItem.displayName = 'DropdownMenuItem';
@@ -40,8 +40,8 @@ export var dropdownMenuItemIndicatorVariants = cva("absolute left-0 inline-flex
40
40
  });
41
41
  export var DropdownMenuItemIndicator = forwardRef(function (_a, ref) {
42
42
  var className = _a.className, children = _a.children, size = _a.size, radius = _a.radius, props = __rest(_a, ["className", "children", "size", "radius"]);
43
- return (<DropdownMenuPrimitive.ItemIndicator ref={ref} className={cn(dropdownMenuItemIndicatorVariants({ radius: radius, size: size }), className)} {...props}>
44
- {children}
43
+ return (<DropdownMenuPrimitive.ItemIndicator ref={ref} className={cn(dropdownMenuItemIndicatorVariants({ radius: radius, size: size }), className)} {...props}>
44
+ {children}
45
45
  </DropdownMenuPrimitive.ItemIndicator>);
46
46
  });
47
47
  DropdownMenuItemIndicator.displayName = 'DropdownMenuItemIndicator';
@@ -40,8 +40,8 @@ export var dropdownMenuLabelVariants = cva("flex relative leading-none select-no
40
40
  });
41
41
  export var DropdownMenuLabel = forwardRef(function (_a, ref) {
42
42
  var className = _a.className, children = _a.children, size = _a.size, props = __rest(_a, ["className", "children", "size"]);
43
- return (<DropdownMenuPrimitive.Label ref={ref} className={cn(dropdownMenuLabelVariants({ size: size }), className)} {...props}>
44
- {children}
43
+ return (<DropdownMenuPrimitive.Label ref={ref} className={cn(dropdownMenuLabelVariants({ size: size }), className)} {...props}>
44
+ {children}
45
45
  </DropdownMenuPrimitive.Label>);
46
46
  });
47
47
  DropdownMenuLabel.displayName = 'DropdownMenuLabel';
@@ -22,11 +22,11 @@ export var DropdownMenuRadioItem = forwardRef(function (_a, ref) {
22
22
  radius: radius,
23
23
  size: size,
24
24
  }), 'pl-7', menuItemAppearanceStyle(appearance, color), className);
25
- return (<DropdownMenuTheme.RadioItem ref={ref} className={itemClassName} {...props}>
26
- <DropdownMenuItemIndicator forceMount radius={'full'} size={size}>
27
- {radioGroup.selectedValue === props.value && <DotFilledIcon />}
28
- </DropdownMenuItemIndicator>
29
- {children}
25
+ return (<DropdownMenuTheme.RadioItem ref={ref} className={itemClassName} {...props}>
26
+ <DropdownMenuItemIndicator forceMount radius={'full'} size={size}>
27
+ {radioGroup.selectedValue === props.value && <DotFilledIcon />}
28
+ </DropdownMenuItemIndicator>
29
+ {children}
30
30
  </DropdownMenuTheme.RadioItem>);
31
31
  });
32
32
  DropdownMenuRadioItem.displayName = 'DropdownMenuRadioItem';
@@ -21,11 +21,11 @@ export var DropdownMenuSubTrigger = forwardRef(function (_a, ref) {
21
21
  ? 'hover:fill-slate-12 dark:hover:fill-slateDark-1'
22
22
  : "hover:fill-white dark:hover:fill-slateDark-12 ");
23
23
  var triggerClassName = cn(dropdownMenuItemVariants({ size: size, radius: radius }), menuItemAppearanceStyle(appearance, color), className);
24
- return (<DropdownMenuPrimitive.SubTrigger ref={ref} className={triggerClassName} {...props}>
25
- {children}
26
- <div className="ml-auto pl-5 ">
27
- <ChevronRightIcon className={iconClassName}/>
28
- </div>
24
+ return (<DropdownMenuPrimitive.SubTrigger ref={ref} className={triggerClassName} {...props}>
25
+ {children}
26
+ <div className="ml-auto pl-5 ">
27
+ <ChevronRightIcon className={iconClassName}/>
28
+ </div>
29
29
  </DropdownMenuPrimitive.SubTrigger>);
30
30
  });
31
31
  DropdownMenuSubTrigger.displayName = 'DropdownMenuSubTrigger';
@@ -34,8 +34,8 @@ var dropdownMenuTriggerVariants = cva('', {
34
34
  });
35
35
  export var DropdownMenuTrigger = forwardRef(function (_a, ref) {
36
36
  var className = _a.className, children = _a.children, radius = _a.radius, size = _a.size, props = __rest(_a, ["className", "children", "radius", "size"]);
37
- return (<DropdownMenuPrimitive.Trigger asChild ref={ref} className={cn(dropdownMenuTriggerVariants({ radius: radius, size: size }), className)} {...props}>
38
- {children}
37
+ return (<DropdownMenuPrimitive.Trigger asChild ref={ref} className={cn(dropdownMenuTriggerVariants({ radius: radius, size: size }), className)} {...props}>
38
+ {children}
39
39
  </DropdownMenuPrimitive.Trigger>);
40
40
  });
41
41
  DropdownMenuTrigger.displayName = 'DropdownMenuTrigger';
@@ -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';