@lotte-innovate/ui-component-test 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (132) hide show
  1. package/dist/globals.css +261081 -0
  2. package/dist/lib/Typography/Header/index.d.ts +1 -1
  3. package/dist/lib/Typography/Header/{index.jsx → index.js} +2 -5
  4. package/dist/lib/Typography/Text/{index.jsx → index.js} +3 -6
  5. package/dist/lib/components/Accordion/{index.jsx → index.js} +5 -17
  6. package/dist/lib/components/AlertDialog/{AlertDialogAction.jsx → AlertDialogAction.js} +3 -4
  7. package/dist/lib/components/AlertDialog/{AlertDialogCancel.jsx → AlertDialogCancel.js} +3 -4
  8. package/dist/lib/components/AlertDialog/{AlertDialogContent.jsx → AlertDialogContent.js} +3 -7
  9. package/dist/lib/components/AlertDialog/{AlertDialogDescription.jsx → AlertDialogDescription.js} +14 -4
  10. package/dist/lib/components/AlertDialog/{AlertDialogTitle.jsx → AlertDialogTitle.js} +14 -4
  11. package/dist/lib/components/AlertDialog/{AlertDialogTrigger.jsx → AlertDialogTrigger.js} +3 -4
  12. package/dist/lib/components/AlertDialog/{index.jsx → index.js} +14 -4
  13. package/dist/lib/components/AspectRatio/{index.jsx → index.js} +3 -4
  14. package/dist/lib/components/Avatar/{index.jsx → index.js} +3 -7
  15. package/dist/lib/components/Badge/{index.jsx → index.js} +3 -4
  16. package/dist/lib/components/BubbleChart/index.d.ts +1 -2
  17. package/dist/lib/components/BubbleChart/{index.jsx → index.js} +2 -2
  18. package/dist/lib/components/Button/{index.jsx → index.js} +3 -4
  19. package/dist/lib/components/Callout/{CalloutIcon.jsx → CalloutIcon.js} +3 -8
  20. package/dist/lib/components/Callout/{CalloutText.jsx → CalloutText.js} +14 -4
  21. package/dist/lib/components/Callout/{index.jsx → index.js} +3 -6
  22. package/dist/lib/components/Card/{index.jsx → index.js} +3 -4
  23. package/dist/lib/components/Checkbox/{index.jsx → index.js} +3 -11
  24. package/dist/lib/components/CheckboxCard/{index.jsx → index.js} +3 -5
  25. package/dist/lib/components/CheckboxGroup/{CheckboxGroupItem.jsx → CheckboxGroupItem.js} +14 -6
  26. package/dist/lib/components/CheckboxGroup/{index.jsx → index.js} +2 -5
  27. package/dist/lib/components/ContextMenu/{ContextMenuCheckboxItem.jsx → ContextMenuCheckboxItem.js} +14 -7
  28. package/dist/lib/components/ContextMenu/{ContextMenuContent.jsx → ContextMenuContent.js} +3 -6
  29. package/dist/lib/components/ContextMenu/{ContextMenuGroup.jsx → ContextMenuGroup.js} +14 -4
  30. package/dist/lib/components/ContextMenu/{ContextMenuItem.jsx → ContextMenuItem.js} +3 -5
  31. package/dist/lib/components/ContextMenu/{ContextMenuItemIndicator.jsx → ContextMenuItemIndicator.js} +3 -4
  32. package/dist/lib/components/ContextMenu/{ContextMenuLabel.jsx → ContextMenuLabel.js} +3 -4
  33. package/dist/lib/components/ContextMenu/{ContextMenuRadioGroup.jsx → ContextMenuRadioGroup.js} +14 -6
  34. package/dist/lib/components/ContextMenu/{ContextMenuRadioItem.jsx → ContextMenuRadioItem.js} +14 -7
  35. package/dist/lib/components/ContextMenu/{ContextMenuSeparator.jsx → ContextMenuSeparator.js} +14 -4
  36. package/dist/lib/components/ContextMenu/{ContextMenuSubContent.jsx → ContextMenuSubContent.js} +6 -9
  37. package/dist/lib/components/ContextMenu/{ContextMenuSubTrigger.jsx → ContextMenuSubTrigger.js} +14 -9
  38. package/dist/lib/components/ContextMenu/{ContextMenuTrigger.jsx → ContextMenuTrigger.js} +14 -4
  39. package/dist/lib/components/ContextMenu/{index.jsx → index.js} +14 -6
  40. package/dist/lib/components/DataList/{DataListItem.jsx → DataListItem.js} +3 -4
  41. package/dist/lib/components/DataList/{DataListLabel.jsx → DataListLabel.js} +3 -4
  42. package/dist/lib/components/DataList/{DataListValue.jsx → DataListValue.js} +3 -4
  43. package/dist/lib/components/DataList/{index.jsx → index.js} +14 -6
  44. package/dist/lib/components/Dialog/{DialogAction.jsx → DialogAction.js} +14 -4
  45. package/dist/lib/components/Dialog/{DialogCancel.jsx → DialogCancel.js} +14 -4
  46. package/dist/lib/components/Dialog/{DialogContent.jsx → DialogContent.js} +3 -4
  47. package/dist/lib/components/Dialog/{DialogDescription.jsx → DialogDescription.js} +14 -4
  48. package/dist/lib/components/Dialog/{DialogSlot.jsx → DialogSlot.js} +14 -4
  49. package/dist/lib/components/Dialog/{DialogTitle.jsx → DialogTitle.js} +14 -4
  50. package/dist/lib/components/Dialog/{DialogTrigger.jsx → DialogTrigger.js} +14 -4
  51. package/dist/lib/components/Dialog/{index.jsx → index.js} +14 -4
  52. package/dist/lib/components/DoughnutChart/index.d.ts +1 -2
  53. package/dist/lib/components/DoughnutChart/{index.jsx → index.js} +2 -2
  54. package/dist/lib/components/DropdownMenu/{DropdonMenuRadioGroup.jsx → DropdonMenuRadioGroup.js} +14 -6
  55. package/dist/lib/components/DropdownMenu/{DropdonMenuSubContent.jsx → DropdonMenuSubContent.js} +7 -10
  56. package/dist/lib/components/DropdownMenu/{DropdownMenuCheckboxItem.jsx → DropdownMenuCheckboxItem.js} +14 -7
  57. package/dist/lib/components/DropdownMenu/{DropdownMenuContent.jsx → DropdownMenuContent.js} +3 -6
  58. package/dist/lib/components/DropdownMenu/{DropdownMenuItem.jsx → DropdownMenuItem.js} +3 -5
  59. package/dist/lib/components/DropdownMenu/{DropdownMenuItemIndicator.jsx → DropdownMenuItemIndicator.js} +3 -4
  60. package/dist/lib/components/DropdownMenu/{DropdownMenuLable.jsx → DropdownMenuLable.js} +3 -4
  61. package/dist/lib/components/DropdownMenu/{DropdownMenuRadioItem.jsx → DropdownMenuRadioItem.js} +14 -7
  62. package/dist/lib/components/DropdownMenu/{DropdownMenuSeparator.jsx → DropdownMenuSeparator.js} +14 -2
  63. package/dist/lib/components/DropdownMenu/{DropdownMenuSub.jsx → DropdownMenuSub.js} +14 -2
  64. package/dist/lib/components/DropdownMenu/{DropdownMenuSubTrigger.jsx → DropdownMenuSubTrigger.js} +14 -7
  65. package/dist/lib/components/DropdownMenu/{DropdownMenuTrigger.jsx → DropdownMenuTrigger.js} +14 -4
  66. package/dist/lib/components/DropdownMenu/{index.jsx → index.js} +14 -2
  67. package/dist/lib/components/HoverCard/{HoverCardContent.jsx → HoverCardContent.js} +3 -4
  68. package/dist/lib/components/HoverCard/{HoverCardTrigger.jsx → HoverCardTrigger.js} +14 -4
  69. package/dist/lib/components/HoverCard/{index.jsx → index.js} +14 -4
  70. package/dist/lib/components/IconButton/{index.jsx → index.js} +2 -3
  71. package/dist/lib/components/Inset/{index.jsx → index.js} +3 -6
  72. package/dist/lib/components/Label/{index.jsx → index.js} +2 -3
  73. package/dist/lib/components/Menubar/{MenubarCheckboxItem.jsx → MenubarCheckboxItem.js} +14 -7
  74. package/dist/lib/components/Menubar/{MenubarContent.jsx → MenubarContent.js} +7 -10
  75. package/dist/lib/components/Menubar/{MenubarItem.jsx → MenubarItem.js} +3 -5
  76. package/dist/lib/components/Menubar/{MenubarItemIndicator.jsx → MenubarItemIndicator.js} +3 -4
  77. package/dist/lib/components/Menubar/{MenubarMenu.jsx → MenubarMenu.js} +14 -2
  78. package/dist/lib/components/Menubar/{MenubarRadioGroup.jsx → MenubarRadioGroup.js} +14 -6
  79. package/dist/lib/components/Menubar/{MenubarRadioItem.jsx → MenubarRadioItem.js} +14 -7
  80. package/dist/lib/components/Menubar/{MenubarSeparator.jsx → MenubarSeparator.js} +14 -4
  81. package/dist/lib/components/Menubar/{MenubarSub.jsx → MenubarSub.js} +14 -2
  82. package/dist/lib/components/Menubar/{MenubarSubContent.jsx → MenubarSubContent.js} +4 -5
  83. package/dist/lib/components/Menubar/{MenubarSubTrigger.jsx → MenubarSubTrigger.js} +14 -7
  84. package/dist/lib/components/Menubar/{MenubarTrigger.jsx → MenubarTrigger.js} +3 -4
  85. package/dist/lib/components/Menubar/{index.jsx → index.js} +3 -6
  86. package/dist/lib/components/NavigationMenu/{NavigationMenuContent.jsx → NavigationMenuContent.js} +3 -4
  87. package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.js +31 -0
  88. package/dist/lib/components/NavigationMenu/{NavigationMenuItem.jsx → NavigationMenuItem.js} +14 -4
  89. package/dist/lib/components/NavigationMenu/{NavigationMenuLink.jsx → NavigationMenuLink.js} +3 -4
  90. package/dist/lib/components/NavigationMenu/{NavigationMenuList.jsx → NavigationMenuList.js} +3 -5
  91. package/dist/lib/components/NavigationMenu/{NavigationMenuTrigger.jsx → NavigationMenuTrigger.js} +3 -5
  92. package/dist/lib/components/NavigationMenu/{NavigationMenuViewport.jsx → NavigationMenuViewport.js} +3 -4
  93. package/dist/lib/components/NavigationMenu/{index.jsx → index.js} +14 -6
  94. package/dist/lib/components/PieChart/index.d.ts +1 -2
  95. package/dist/lib/components/PieChart/{index.jsx → index.js} +2 -2
  96. package/dist/lib/components/Popover/{PopoverClose.jsx → PopoverClose.js} +14 -4
  97. package/dist/lib/components/Popover/{PopoverContent.jsx → PopoverContent.js} +3 -4
  98. package/dist/lib/components/Popover/{PopoverTrigger.jsx → PopoverTrigger.js} +14 -4
  99. package/dist/lib/components/Popover/{index.jsx → index.js} +14 -4
  100. package/dist/lib/components/Progress/{index.jsx → index.js} +3 -4
  101. package/dist/lib/components/RadarChart/index.d.ts +1 -2
  102. package/dist/lib/components/RadarChart/{index.jsx → index.js} +2 -2
  103. package/dist/lib/components/Radio/{index.jsx → index.js} +13 -8
  104. package/dist/lib/components/RadioCards/{RadioCardsItem.jsx → RadioCardsItem.js} +14 -4
  105. package/dist/lib/components/RadioCards/{index.jsx → index.js} +3 -6
  106. package/dist/lib/components/RadioGroup/{RadioGroupItem.jsx → RadioGroupItem.js} +14 -4
  107. package/dist/lib/components/RadioGroup/{index.jsx → index.js} +14 -6
  108. package/dist/lib/components/ScrollArea/{index.jsx → index.js} +14 -6
  109. package/dist/lib/components/SegmentedControl/{SegmentedControlItem.jsx → SegmentedControlItem.js} +14 -4
  110. package/dist/lib/components/SegmentedControl/{index.jsx → index.js} +2 -5
  111. package/dist/lib/components/Select/{index.jsx → index.js} +8 -25
  112. package/dist/lib/components/Separator/{index.jsx → index.js} +2 -5
  113. package/dist/lib/components/Skeleton/{index.jsx → index.js} +2 -5
  114. package/dist/lib/components/Slider/{index.jsx → index.js} +2 -3
  115. package/dist/lib/components/Spinner/{index.jsx → index.js} +2 -5
  116. package/dist/lib/components/TabNav/{index.jsx → index.js} +14 -8
  117. package/dist/lib/components/Table/{index.jsx → index.js} +8 -23
  118. package/dist/lib/components/Tabs/{index.jsx → index.js} +5 -14
  119. package/dist/lib/components/TextArea/{index.jsx → index.js} +2 -3
  120. package/dist/lib/components/TextField/{index.jsx → index.js} +3 -8
  121. package/dist/lib/components/Toast/{ToastActionButton.jsx → ToastActionButton.js} +3 -4
  122. package/dist/lib/components/Toast/{ToastDescription.jsx → ToastDescription.js} +14 -6
  123. package/dist/lib/components/Toast/{ToastTitle.jsx → ToastTitle.js} +14 -4
  124. package/dist/lib/components/Toast/{index.jsx → index.js} +3 -9
  125. package/dist/lib/components/Toggle/{ToggleWithText.jsx → ToggleWithText.js} +4 -6
  126. package/dist/lib/components/Toggle/{index.jsx → index.js} +3 -4
  127. package/dist/lib/components/ToggleGroup/{index.jsx → index.js} +3 -6
  128. package/dist/lib/components/ToggleGroup/{toggleGroupItem.jsx → toggleGroupItem.js} +14 -4
  129. package/dist/lib/components/ToggleSwitch/{index.jsx → index.js} +2 -6
  130. package/dist/lib/components/Tooltip/{index.jsx → index.js} +2 -11
  131. package/package.json +2 -2
  132. package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.jsx +0 -22
@@ -20,6 +20,7 @@ var __rest = (this && this.__rest) || function (s, e) {
20
20
  }
21
21
  return t;
22
22
  };
23
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
23
24
  import React from 'react';
24
25
  import { cva } from 'class-variance-authority';
25
26
  import { cn } from '../../../lib/utils/utils';
@@ -64,12 +65,7 @@ export var ToggleSwitch = React.forwardRef(function (_a, forwardedRef) {
64
65
  sizeTheme = '1';
65
66
  if (size === 'large')
66
67
  sizeTheme = '3';
67
- return (<Theme className="flex" accentColor={color} hasBackground={false}>
68
- <Text as="label" className={cn('flex items-center', SwitchLabelVariants({ size: size, scaling: scaling }))}>
69
- <SwitchTheme ref={forwardedRef} {...switchProps} variant={appearance} radius={radius} size={sizeTheme} color={color} className={cn(toggleSwitchVariants({ scaling: scaling, radius: radius, size: size }), className)}></SwitchTheme>
70
- {children}
71
- </Text>
72
- </Theme>);
68
+ return (_jsx(Theme, { className: "flex", accentColor: color, hasBackground: false, children: _jsxs(Text, { as: "label", className: cn('flex items-center', SwitchLabelVariants({ size: size, scaling: scaling })), children: [_jsx(SwitchTheme, __assign({ ref: forwardedRef }, switchProps, { variant: appearance, radius: radius, size: sizeTheme, color: color, className: cn(toggleSwitchVariants({ scaling: scaling, radius: radius, size: size }), className) })), children] }) }));
73
69
  });
74
70
  ToggleSwitch.displayName = 'ToggleSwitch';
75
71
  export default ToggleSwitch;
@@ -20,6 +20,7 @@ var __rest = (this && this.__rest) || function (s, e) {
20
20
  }
21
21
  return t;
22
22
  };
23
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
23
24
  // your-tooltip.jsx
24
25
  import React from 'react';
25
26
  import * as TooltipPrimitive from '@radix-ui/react-tooltip';
@@ -43,16 +44,6 @@ export var Tooltip = React.forwardRef(function (_a) {
43
44
  var arrowColor = color
44
45
  ? "fill-".concat(color, "-9 dark:fill-").concat(color, "Dark-9")
45
46
  : 'fill-slate-12 dark:fill-slateDark-12';
46
- return (<TooltipPrimitive.Provider>
47
- <TooltipPrimitive.Root open={open} defaultOpen={defaultOpen} onOpenChange={onOpenChange}>
48
- <TooltipPrimitive.Trigger className="cursor-pointer text-slate-12 dark:text-slateDark-12" asChild>
49
- {children}
50
- </TooltipPrimitive.Trigger>
51
- <TooltipPrimitive.Content align="center" {...props} side={side} className={cn('mr-2', tooltipVariants({ scaling: scaling, weight: weight, radius: radius, color: color }), className)} sideOffset={5}>
52
- {content}
53
- <TooltipPrimitive.Arrow width={11} height={5} className={arrowColor}/>
54
- </TooltipPrimitive.Content>
55
- </TooltipPrimitive.Root>
56
- </TooltipPrimitive.Provider>);
47
+ return (_jsx(TooltipPrimitive.Provider, { children: _jsxs(TooltipPrimitive.Root, { open: open, defaultOpen: defaultOpen, onOpenChange: onOpenChange, children: [_jsx(TooltipPrimitive.Trigger, { className: "cursor-pointer text-slate-12 dark:text-slateDark-12", asChild: true, children: children }), _jsxs(TooltipPrimitive.Content, __assign({ align: "center" }, props, { side: side, className: cn('mr-2', tooltipVariants({ scaling: scaling, weight: weight, radius: radius, color: color }), className), sideOffset: 5, children: [content, _jsx(TooltipPrimitive.Arrow, { width: 11, height: 5, className: arrowColor })] }))] }) }));
57
48
  });
58
49
  Tooltip.displayName = TooltipPrimitive.Root.displayName;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lotte-innovate/ui-component-test",
3
3
  "description": "Lotte UI Library",
4
- "version": "0.1.4",
4
+ "version": "0.1.5",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "files": [
@@ -44,7 +44,7 @@
44
44
  "lint": "next lint",
45
45
  "storybook": "cross-env NODE_OPTIONS='--max-old-space-size=8192' storybook dev -p 6006",
46
46
  "build-storybook": "storybook build",
47
- "build:css": "npx tailwindcss -i src/app/globals.css -i src/app/styles.css -o dist/globals.css -o dist/styles.css",
47
+ "build:css": "npx tailwindcss -i src/app/globals.css -o dist/globals.css & npx tailwindcss -i src/app/styles.css -o dist/styles.css && ",
48
48
  "publish:npm": "rimraf dist && mkdir dist && tsc && npm run move && npm run build:css && tsc-alias && node update-tailwind-import.js",
49
49
  "move:unix": "mv dist/src/lib dist/lib && rimraf dist/src",
50
50
  "move:win": "move dist/src/lib dist/lib && rimraf dist/src",
@@ -1,22 +0,0 @@
1
- var __rest = (this && this.__rest) || function (s, e) {
2
- var t = {};
3
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
- t[p] = s[p];
5
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
- t[p[i]] = s[p[i]];
9
- }
10
- return t;
11
- };
12
- import React, { forwardRef } from 'react';
13
- import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
14
- import { cn } from '../../../lib/utils/utils';
15
- export var NavigationMenuIndicator = forwardRef(function (_a, ref) {
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}
20
- </NavigationMenuPrimitive.Indicator>);
21
- });
22
- NavigationMenuIndicator.displayName = 'NavigationMenuIndicator';