@lotte-innovate/ui-component-test 0.1.4 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/globals.css +261081 -0
- package/dist/lib/Typography/Header/index.d.ts +1 -1
- package/dist/lib/Typography/Header/{index.jsx → index.js} +2 -5
- package/dist/lib/Typography/Text/{index.jsx → index.js} +3 -6
- package/dist/lib/components/Accordion/{index.jsx → index.js} +5 -17
- package/dist/lib/components/AlertDialog/{AlertDialogAction.jsx → AlertDialogAction.js} +3 -4
- package/dist/lib/components/AlertDialog/{AlertDialogCancel.jsx → AlertDialogCancel.js} +3 -4
- package/dist/lib/components/AlertDialog/{AlertDialogContent.jsx → AlertDialogContent.js} +3 -7
- package/dist/lib/components/AlertDialog/{AlertDialogDescription.jsx → AlertDialogDescription.js} +14 -4
- package/dist/lib/components/AlertDialog/{AlertDialogTitle.jsx → AlertDialogTitle.js} +14 -4
- package/dist/lib/components/AlertDialog/{AlertDialogTrigger.jsx → AlertDialogTrigger.js} +3 -4
- package/dist/lib/components/AlertDialog/{index.jsx → index.js} +14 -4
- package/dist/lib/components/AspectRatio/{index.jsx → index.js} +3 -4
- package/dist/lib/components/Avatar/{index.jsx → index.js} +3 -7
- package/dist/lib/components/Badge/{index.jsx → index.js} +3 -4
- package/dist/lib/components/BubbleChart/index.d.ts +1 -2
- package/dist/lib/components/BubbleChart/{index.jsx → index.js} +2 -2
- package/dist/lib/components/Button/{index.jsx → index.js} +3 -4
- package/dist/lib/components/Callout/{CalloutIcon.jsx → CalloutIcon.js} +3 -8
- package/dist/lib/components/Callout/{CalloutText.jsx → CalloutText.js} +14 -4
- package/dist/lib/components/Callout/{index.jsx → index.js} +3 -6
- package/dist/lib/components/Card/{index.jsx → index.js} +3 -4
- package/dist/lib/components/Checkbox/{index.jsx → index.js} +3 -11
- package/dist/lib/components/CheckboxCard/{index.jsx → index.js} +3 -5
- package/dist/lib/components/CheckboxGroup/{CheckboxGroupItem.jsx → CheckboxGroupItem.js} +14 -6
- package/dist/lib/components/CheckboxGroup/{index.jsx → index.js} +2 -5
- package/dist/lib/components/ContextMenu/{ContextMenuCheckboxItem.jsx → ContextMenuCheckboxItem.js} +14 -7
- package/dist/lib/components/ContextMenu/{ContextMenuContent.jsx → ContextMenuContent.js} +3 -6
- package/dist/lib/components/ContextMenu/{ContextMenuGroup.jsx → ContextMenuGroup.js} +14 -4
- package/dist/lib/components/ContextMenu/{ContextMenuItem.jsx → ContextMenuItem.js} +3 -5
- package/dist/lib/components/ContextMenu/{ContextMenuItemIndicator.jsx → ContextMenuItemIndicator.js} +3 -4
- package/dist/lib/components/ContextMenu/{ContextMenuLabel.jsx → ContextMenuLabel.js} +3 -4
- package/dist/lib/components/ContextMenu/{ContextMenuRadioGroup.jsx → ContextMenuRadioGroup.js} +14 -6
- package/dist/lib/components/ContextMenu/{ContextMenuRadioItem.jsx → ContextMenuRadioItem.js} +14 -7
- package/dist/lib/components/ContextMenu/{ContextMenuSeparator.jsx → ContextMenuSeparator.js} +14 -4
- package/dist/lib/components/ContextMenu/{ContextMenuSubContent.jsx → ContextMenuSubContent.js} +6 -9
- package/dist/lib/components/ContextMenu/{ContextMenuSubTrigger.jsx → ContextMenuSubTrigger.js} +14 -9
- package/dist/lib/components/ContextMenu/{ContextMenuTrigger.jsx → ContextMenuTrigger.js} +14 -4
- package/dist/lib/components/ContextMenu/{index.jsx → index.js} +14 -6
- package/dist/lib/components/DataList/{DataListItem.jsx → DataListItem.js} +3 -4
- package/dist/lib/components/DataList/{DataListLabel.jsx → DataListLabel.js} +3 -4
- package/dist/lib/components/DataList/{DataListValue.jsx → DataListValue.js} +3 -4
- package/dist/lib/components/DataList/{index.jsx → index.js} +14 -6
- package/dist/lib/components/Dialog/{DialogAction.jsx → DialogAction.js} +14 -4
- package/dist/lib/components/Dialog/{DialogCancel.jsx → DialogCancel.js} +14 -4
- package/dist/lib/components/Dialog/{DialogContent.jsx → DialogContent.js} +3 -4
- package/dist/lib/components/Dialog/{DialogDescription.jsx → DialogDescription.js} +14 -4
- package/dist/lib/components/Dialog/{DialogSlot.jsx → DialogSlot.js} +14 -4
- package/dist/lib/components/Dialog/{DialogTitle.jsx → DialogTitle.js} +14 -4
- package/dist/lib/components/Dialog/{DialogTrigger.jsx → DialogTrigger.js} +14 -4
- package/dist/lib/components/Dialog/{index.jsx → index.js} +14 -4
- package/dist/lib/components/DoughnutChart/index.d.ts +1 -2
- package/dist/lib/components/DoughnutChart/{index.jsx → index.js} +2 -2
- package/dist/lib/components/DropdownMenu/{DropdonMenuRadioGroup.jsx → DropdonMenuRadioGroup.js} +14 -6
- package/dist/lib/components/DropdownMenu/{DropdonMenuSubContent.jsx → DropdonMenuSubContent.js} +7 -10
- package/dist/lib/components/DropdownMenu/{DropdownMenuCheckboxItem.jsx → DropdownMenuCheckboxItem.js} +14 -7
- package/dist/lib/components/DropdownMenu/{DropdownMenuContent.jsx → DropdownMenuContent.js} +3 -6
- package/dist/lib/components/DropdownMenu/{DropdownMenuItem.jsx → DropdownMenuItem.js} +3 -5
- package/dist/lib/components/DropdownMenu/{DropdownMenuItemIndicator.jsx → DropdownMenuItemIndicator.js} +3 -4
- package/dist/lib/components/DropdownMenu/{DropdownMenuLable.jsx → DropdownMenuLable.js} +3 -4
- package/dist/lib/components/DropdownMenu/{DropdownMenuRadioItem.jsx → DropdownMenuRadioItem.js} +14 -7
- package/dist/lib/components/DropdownMenu/{DropdownMenuSeparator.jsx → DropdownMenuSeparator.js} +14 -2
- package/dist/lib/components/DropdownMenu/{DropdownMenuSub.jsx → DropdownMenuSub.js} +14 -2
- package/dist/lib/components/DropdownMenu/{DropdownMenuSubTrigger.jsx → DropdownMenuSubTrigger.js} +14 -7
- package/dist/lib/components/DropdownMenu/{DropdownMenuTrigger.jsx → DropdownMenuTrigger.js} +14 -4
- package/dist/lib/components/DropdownMenu/{index.jsx → index.js} +14 -2
- package/dist/lib/components/HoverCard/{HoverCardContent.jsx → HoverCardContent.js} +3 -4
- package/dist/lib/components/HoverCard/{HoverCardTrigger.jsx → HoverCardTrigger.js} +14 -4
- package/dist/lib/components/HoverCard/{index.jsx → index.js} +14 -4
- package/dist/lib/components/IconButton/{index.jsx → index.js} +2 -3
- package/dist/lib/components/Inset/{index.jsx → index.js} +3 -6
- package/dist/lib/components/Label/{index.jsx → index.js} +2 -3
- package/dist/lib/components/Menubar/{MenubarCheckboxItem.jsx → MenubarCheckboxItem.js} +14 -7
- package/dist/lib/components/Menubar/{MenubarContent.jsx → MenubarContent.js} +7 -10
- package/dist/lib/components/Menubar/{MenubarItem.jsx → MenubarItem.js} +3 -5
- package/dist/lib/components/Menubar/{MenubarItemIndicator.jsx → MenubarItemIndicator.js} +3 -4
- package/dist/lib/components/Menubar/{MenubarMenu.jsx → MenubarMenu.js} +14 -2
- package/dist/lib/components/Menubar/{MenubarRadioGroup.jsx → MenubarRadioGroup.js} +14 -6
- package/dist/lib/components/Menubar/{MenubarRadioItem.jsx → MenubarRadioItem.js} +14 -7
- package/dist/lib/components/Menubar/{MenubarSeparator.jsx → MenubarSeparator.js} +14 -4
- package/dist/lib/components/Menubar/{MenubarSub.jsx → MenubarSub.js} +14 -2
- package/dist/lib/components/Menubar/{MenubarSubContent.jsx → MenubarSubContent.js} +4 -5
- package/dist/lib/components/Menubar/{MenubarSubTrigger.jsx → MenubarSubTrigger.js} +14 -7
- package/dist/lib/components/Menubar/{MenubarTrigger.jsx → MenubarTrigger.js} +3 -4
- package/dist/lib/components/Menubar/{index.jsx → index.js} +3 -6
- package/dist/lib/components/NavigationMenu/{NavigationMenuContent.jsx → NavigationMenuContent.js} +3 -4
- package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.js +31 -0
- package/dist/lib/components/NavigationMenu/{NavigationMenuItem.jsx → NavigationMenuItem.js} +14 -4
- package/dist/lib/components/NavigationMenu/{NavigationMenuLink.jsx → NavigationMenuLink.js} +3 -4
- package/dist/lib/components/NavigationMenu/{NavigationMenuList.jsx → NavigationMenuList.js} +3 -5
- package/dist/lib/components/NavigationMenu/{NavigationMenuTrigger.jsx → NavigationMenuTrigger.js} +3 -5
- package/dist/lib/components/NavigationMenu/{NavigationMenuViewport.jsx → NavigationMenuViewport.js} +3 -4
- package/dist/lib/components/NavigationMenu/{index.jsx → index.js} +14 -6
- package/dist/lib/components/PieChart/index.d.ts +1 -2
- package/dist/lib/components/PieChart/{index.jsx → index.js} +2 -2
- package/dist/lib/components/Popover/{PopoverClose.jsx → PopoverClose.js} +14 -4
- package/dist/lib/components/Popover/{PopoverContent.jsx → PopoverContent.js} +3 -4
- package/dist/lib/components/Popover/{PopoverTrigger.jsx → PopoverTrigger.js} +14 -4
- package/dist/lib/components/Popover/{index.jsx → index.js} +14 -4
- package/dist/lib/components/Progress/{index.jsx → index.js} +3 -4
- package/dist/lib/components/RadarChart/index.d.ts +1 -2
- package/dist/lib/components/RadarChart/{index.jsx → index.js} +2 -2
- package/dist/lib/components/Radio/{index.jsx → index.js} +13 -8
- package/dist/lib/components/RadioCards/{RadioCardsItem.jsx → RadioCardsItem.js} +14 -4
- package/dist/lib/components/RadioCards/{index.jsx → index.js} +3 -6
- package/dist/lib/components/RadioGroup/{RadioGroupItem.jsx → RadioGroupItem.js} +14 -4
- package/dist/lib/components/RadioGroup/{index.jsx → index.js} +14 -6
- package/dist/lib/components/ScrollArea/{index.jsx → index.js} +14 -6
- package/dist/lib/components/SegmentedControl/{SegmentedControlItem.jsx → SegmentedControlItem.js} +14 -4
- package/dist/lib/components/SegmentedControl/{index.jsx → index.js} +2 -5
- package/dist/lib/components/Select/{index.jsx → index.js} +8 -25
- package/dist/lib/components/Separator/{index.jsx → index.js} +2 -5
- package/dist/lib/components/Skeleton/{index.jsx → index.js} +2 -5
- package/dist/lib/components/Slider/{index.jsx → index.js} +2 -3
- package/dist/lib/components/Spinner/{index.jsx → index.js} +2 -5
- package/dist/lib/components/TabNav/{index.jsx → index.js} +14 -8
- package/dist/lib/components/Table/{index.jsx → index.js} +8 -23
- package/dist/lib/components/Tabs/{index.jsx → index.js} +5 -14
- package/dist/lib/components/TextArea/{index.jsx → index.js} +2 -3
- package/dist/lib/components/TextField/{index.jsx → index.js} +3 -8
- package/dist/lib/components/Toast/{ToastActionButton.jsx → ToastActionButton.js} +3 -4
- package/dist/lib/components/Toast/{ToastDescription.jsx → ToastDescription.js} +14 -6
- package/dist/lib/components/Toast/{ToastTitle.jsx → ToastTitle.js} +14 -4
- package/dist/lib/components/Toast/{index.jsx → index.js} +3 -9
- package/dist/lib/components/Toggle/{ToggleWithText.jsx → ToggleWithText.js} +4 -6
- package/dist/lib/components/Toggle/{index.jsx → index.js} +3 -4
- package/dist/lib/components/ToggleGroup/{index.jsx → index.js} +3 -6
- package/dist/lib/components/ToggleGroup/{toggleGroupItem.jsx → toggleGroupItem.js} +14 -4
- package/dist/lib/components/ToggleSwitch/{index.jsx → index.js} +2 -6
- package/dist/lib/components/Tooltip/{index.jsx → index.js} +2 -11
- package/package.json +2 -2
- 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 (
|
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 (
|
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
|
+
"version": "0.1.6",
|
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 -
|
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';
|