@lotte-innovate/ui-component-test 0.0.13 → 0.0.15
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Typography/Header/{index.js → index.jsx} +5 -2
- package/dist/Typography/Text/{index.js → index.jsx} +6 -3
- package/dist/components/Accordion/{index.js → index.jsx} +17 -5
- package/dist/components/AlertDialog/{AlertDialogAction.js → AlertDialogAction.jsx} +4 -3
- package/dist/components/AlertDialog/{AlertDialogCancel.js → AlertDialogCancel.jsx} +4 -3
- package/dist/components/AlertDialog/{AlertDialogContent.js → AlertDialogContent.jsx} +7 -3
- package/dist/components/AlertDialog/{AlertDialogDescription.js → AlertDialogDescription.jsx} +4 -14
- package/dist/components/AlertDialog/{AlertDialogTitle.js → AlertDialogTitle.jsx} +4 -14
- package/dist/components/AlertDialog/{AlertDialogTrigger.js → AlertDialogTrigger.jsx} +4 -3
- package/dist/components/AlertDialog/{index.js → index.jsx} +4 -14
- package/dist/components/AspectRatio/{index.js → index.jsx} +4 -3
- package/dist/components/Avatar/{index.js → index.jsx} +7 -3
- package/dist/components/Badge/{index.js → index.jsx} +4 -3
- package/dist/components/BubbleChart/index.d.ts +2 -1
- package/dist/components/BubbleChart/{index.js → index.jsx} +2 -2
- package/dist/components/Button/{index.js → index.jsx} +4 -3
- package/dist/components/Callout/{CalloutIcon.js → CalloutIcon.jsx} +8 -3
- package/dist/components/Callout/{CalloutText.js → CalloutText.jsx} +4 -14
- package/dist/components/Callout/{index.js → index.jsx} +6 -3
- package/dist/components/Card/{index.js → index.jsx} +4 -3
- package/dist/components/Checkbox/{index.js → index.jsx} +11 -3
- package/dist/components/CheckboxCard/{index.js → index.jsx} +5 -3
- package/dist/components/CheckboxGroup/{CheckboxGroupItem.js → CheckboxGroupItem.jsx} +6 -14
- package/dist/components/CheckboxGroup/{index.js → index.jsx} +5 -2
- package/dist/components/ContextMenu/{ContextMenuCheckboxItem.js → ContextMenuCheckboxItem.jsx} +7 -14
- package/dist/components/ContextMenu/{ContextMenuContent.js → ContextMenuContent.jsx} +6 -3
- package/dist/components/ContextMenu/{ContextMenuGroup.js → ContextMenuGroup.jsx} +4 -14
- package/dist/components/ContextMenu/{ContextMenuItem.js → ContextMenuItem.jsx} +5 -3
- package/dist/components/ContextMenu/{ContextMenuItemIndicator.js → ContextMenuItemIndicator.jsx} +4 -3
- package/dist/components/ContextMenu/{ContextMenuLabel.js → ContextMenuLabel.jsx} +4 -3
- package/dist/components/ContextMenu/{ContextMenuRadioGroup.js → ContextMenuRadioGroup.jsx} +6 -14
- package/dist/components/ContextMenu/{ContextMenuRadioItem.js → ContextMenuRadioItem.jsx} +7 -14
- package/dist/components/ContextMenu/{ContextMenuSeparator.js → ContextMenuSeparator.jsx} +4 -14
- package/dist/components/ContextMenu/{ContextMenuSubContent.js → ContextMenuSubContent.jsx} +9 -6
- package/dist/components/ContextMenu/{ContextMenuSubTrigger.js → ContextMenuSubTrigger.jsx} +9 -14
- package/dist/components/ContextMenu/{ContextMenuTrigger.js → ContextMenuTrigger.jsx} +4 -14
- package/dist/components/ContextMenu/{index.js → index.jsx} +6 -14
- package/dist/components/DataList/{DataListItem.js → DataListItem.jsx} +4 -3
- package/dist/components/DataList/{DataListLabel.js → DataListLabel.jsx} +4 -3
- package/dist/components/DataList/{DataListValue.js → DataListValue.jsx} +4 -3
- package/dist/components/DataList/{index.js → index.jsx} +6 -14
- package/dist/components/Dialog/{DialogAction.js → DialogAction.jsx} +4 -14
- package/dist/components/Dialog/{DialogCancel.js → DialogCancel.jsx} +4 -14
- package/dist/components/Dialog/{DialogContent.js → DialogContent.jsx} +4 -3
- package/dist/components/Dialog/{DialogDescription.js → DialogDescription.jsx} +4 -14
- package/dist/components/Dialog/{DialogSlot.js → DialogSlot.jsx} +4 -14
- package/dist/components/Dialog/{DialogTitle.js → DialogTitle.jsx} +4 -14
- package/dist/components/Dialog/{DialogTrigger.js → DialogTrigger.jsx} +4 -14
- package/dist/components/Dialog/{index.js → index.jsx} +4 -14
- package/dist/components/DoughnutChart/index.d.ts +2 -1
- package/dist/components/DoughnutChart/{index.js → index.jsx} +2 -2
- package/dist/components/DropdownMenu/{DropdonMenuRadioGroup.js → DropdonMenuRadioGroup.jsx} +6 -14
- package/dist/components/DropdownMenu/{DropdonMenuSubContent.js → DropdonMenuSubContent.jsx} +10 -7
- package/dist/components/DropdownMenu/{DropdownMenuCheckboxItem.js → DropdownMenuCheckboxItem.jsx} +7 -14
- package/dist/components/DropdownMenu/{DropdownMenuContent.js → DropdownMenuContent.jsx} +6 -3
- package/dist/components/DropdownMenu/{DropdownMenuItem.js → DropdownMenuItem.jsx} +5 -3
- package/dist/components/DropdownMenu/{DropdownMenuItemIndicator.js → DropdownMenuItemIndicator.jsx} +4 -3
- package/dist/components/DropdownMenu/{DropdownMenuLable.js → DropdownMenuLable.jsx} +4 -3
- package/dist/components/DropdownMenu/{DropdownMenuRadioItem.js → DropdownMenuRadioItem.jsx} +7 -14
- package/dist/components/DropdownMenu/{DropdownMenuSeparator.js → DropdownMenuSeparator.jsx} +2 -14
- package/dist/components/DropdownMenu/{DropdownMenuSub.js → DropdownMenuSub.jsx} +2 -14
- package/dist/components/DropdownMenu/{DropdownMenuSubTrigger.js → DropdownMenuSubTrigger.jsx} +7 -14
- package/dist/components/DropdownMenu/{DropdownMenuTrigger.js → DropdownMenuTrigger.jsx} +4 -14
- package/dist/components/DropdownMenu/{index.js → index.jsx} +2 -14
- package/dist/components/HoverCard/{HoverCardContent.js → HoverCardContent.jsx} +4 -3
- package/dist/components/HoverCard/{HoverCardTrigger.js → HoverCardTrigger.jsx} +4 -14
- package/dist/components/HoverCard/{index.js → index.jsx} +4 -14
- package/dist/components/IconButton/{index.js → index.jsx} +3 -2
- package/dist/components/Inset/{index.js → index.jsx} +6 -3
- package/dist/components/Label/{index.js → index.jsx} +3 -2
- package/dist/components/Menubar/{MenubarCheckboxItem.js → MenubarCheckboxItem.jsx} +7 -14
- package/dist/components/Menubar/{MenubarContent.js → MenubarContent.jsx} +10 -7
- package/dist/components/Menubar/{MenubarItem.js → MenubarItem.jsx} +5 -3
- package/dist/components/Menubar/{MenubarItemIndicator.js → MenubarItemIndicator.jsx} +4 -3
- package/dist/components/Menubar/{MenubarMenu.js → MenubarMenu.jsx} +2 -14
- package/dist/components/Menubar/{MenubarRadioGroup.js → MenubarRadioGroup.jsx} +6 -14
- package/dist/components/Menubar/{MenubarRadioItem.js → MenubarRadioItem.jsx} +7 -14
- package/dist/components/Menubar/{MenubarSeparator.js → MenubarSeparator.jsx} +4 -14
- package/dist/components/Menubar/{MenubarSub.js → MenubarSub.jsx} +2 -14
- package/dist/components/Menubar/{MenubarSubContent.js → MenubarSubContent.jsx} +5 -4
- package/dist/components/Menubar/{MenubarSubTrigger.js → MenubarSubTrigger.jsx} +7 -14
- package/dist/components/Menubar/{MenubarTrigger.js → MenubarTrigger.jsx} +4 -3
- package/dist/components/Menubar/{index.js → index.jsx} +6 -3
- package/dist/components/NavigationMenu/{NavigationMenuContent.js → NavigationMenuContent.jsx} +4 -3
- package/dist/components/NavigationMenu/NavigationMenuIndicator.jsx +22 -0
- package/dist/components/NavigationMenu/{NavigationMenuItem.js → NavigationMenuItem.jsx} +4 -14
- package/dist/components/NavigationMenu/{NavigationMenuLink.js → NavigationMenuLink.jsx} +4 -3
- package/dist/components/NavigationMenu/{NavigationMenuList.js → NavigationMenuList.jsx} +5 -3
- package/dist/components/NavigationMenu/{NavigationMenuTrigger.js → NavigationMenuTrigger.jsx} +5 -3
- package/dist/components/NavigationMenu/{NavigationMenuViewport.js → NavigationMenuViewport.jsx} +4 -3
- package/dist/components/NavigationMenu/{index.js → index.jsx} +6 -14
- package/dist/components/PieChart/index.d.ts +2 -1
- package/dist/components/PieChart/{index.js → index.jsx} +2 -2
- package/dist/components/Popover/{PopoverClose.js → PopoverClose.jsx} +4 -14
- package/dist/components/Popover/{PopoverContent.js → PopoverContent.jsx} +4 -3
- package/dist/components/Popover/{PopoverTrigger.js → PopoverTrigger.jsx} +4 -14
- package/dist/components/Popover/{index.js → index.jsx} +4 -14
- package/dist/components/Progress/{index.js → index.jsx} +4 -3
- package/dist/components/RadarChart/index.d.ts +2 -1
- package/dist/components/RadarChart/{index.js → index.jsx} +2 -2
- package/dist/components/Radio/{index.js → index.jsx} +8 -13
- package/dist/components/RadioCards/{RadioCardsItem.js → RadioCardsItem.jsx} +4 -14
- package/dist/components/RadioCards/{index.js → index.jsx} +6 -3
- package/dist/components/RadioGroup/{RadioGroupItem.js → RadioGroupItem.jsx} +4 -14
- package/dist/components/RadioGroup/{index.js → index.jsx} +6 -14
- package/dist/components/ScrollArea/{index.js → index.jsx} +6 -14
- package/dist/components/SegmentedControl/{SegmentedControlItem.js → SegmentedControlItem.jsx} +4 -14
- package/dist/components/SegmentedControl/{index.js → index.jsx} +5 -2
- package/dist/components/Select/{index.js → index.jsx} +25 -8
- package/dist/components/Separator/{index.js → index.jsx} +5 -2
- package/dist/components/Skeleton/{index.js → index.jsx} +5 -2
- package/dist/components/Slider/{index.js → index.jsx} +3 -2
- package/dist/components/Spinner/{index.js → index.jsx} +5 -2
- package/dist/components/TabNav/{index.js → index.jsx} +8 -14
- package/dist/components/Table/{index.js → index.jsx} +23 -8
- package/dist/components/Tabs/{index.js → index.jsx} +14 -5
- package/dist/components/TextArea/{index.js → index.jsx} +3 -2
- package/dist/components/TextField/{index.js → index.jsx} +8 -3
- package/dist/components/Toast/{ToastActionButton.js → ToastActionButton.jsx} +4 -3
- package/dist/components/Toast/{ToastDescription.js → ToastDescription.jsx} +6 -14
- package/dist/components/Toast/{ToastTitle.js → ToastTitle.jsx} +4 -14
- package/dist/components/Toast/{index.js → index.jsx} +9 -3
- package/dist/components/Toggle/{ToggleWithText.js → ToggleWithText.jsx} +6 -4
- package/dist/components/Toggle/{index.js → index.jsx} +4 -3
- package/dist/components/ToggleGroup/{index.js → index.jsx} +6 -3
- package/dist/components/ToggleGroup/{toggleGroupItem.js → toggleGroupItem.jsx} +4 -14
- package/dist/components/ToggleSwitch/{index.js → index.jsx} +6 -2
- package/dist/components/Tooltip/{index.js → index.jsx} +11 -2
- package/package.json +11 -2
- package/dist/app/layout.d.ts +0 -7
- package/dist/app/layout.js +0 -12
- package/dist/app/page.d.ts +0 -1
- package/dist/app/page.js +0 -6
- package/dist/app/template/colorPicker.d.ts +0 -6
- package/dist/app/template/colorPicker.js +0 -14
- package/dist/app/template/theme.d.ts +0 -12
- package/dist/app/template/theme.js +0 -11
- package/dist/components/NavigationMenu/NavigationMenuIndicator.js +0 -31
- package/dist/stories/Welcome.d.ts +0 -2
- package/dist/stories/Welcome.js +0 -30
- package/dist/stories/accordion/Accordion.stories.d.ts +0 -71
- package/dist/stories/accordion/Accordion.stories.js +0 -61
- package/dist/stories/alert-dialog/AlertDialog.stories.d.ts +0 -107
- package/dist/stories/alert-dialog/AlertDialog.stories.js +0 -60
- package/dist/stories/aspect-ratio/AspectRatio.stories.d.ts +0 -68
- package/dist/stories/aspect-ratio/AspectRatio.stories.js +0 -78
- package/dist/stories/avatar/Avatar.stories.d.ts +0 -127
- package/dist/stories/avatar/Avatar.stories.js +0 -94
- package/dist/stories/badge/Badge.stories.d.ts +0 -133
- package/dist/stories/badge/Badge.stories.js +0 -86
- package/dist/stories/bubble-chart/BubbleChart.stories.d.ts +0 -102
- package/dist/stories/bubble-chart/BubbleChart.stories.js +0 -168
- package/dist/stories/button/Button.stories.d.ts +0 -148
- package/dist/stories/button/Button.stories.js +0 -65
- package/dist/stories/button/IconButton.stories.d.ts +0 -125
- package/dist/stories/button/IconButton.stories.js +0 -80
- package/dist/stories/callout/Callout.stories.d.ts +0 -129
- package/dist/stories/callout/Callout.stories.js +0 -104
- package/dist/stories/card/Card.stories.d.ts +0 -100
- package/dist/stories/card/Card.stories.js +0 -84
- package/dist/stories/checkbox/Checkbox.stories.d.ts +0 -147
- package/dist/stories/checkbox/Checkbox.stories.js +0 -110
- package/dist/stories/checkbox/CheckboxCard.stories.d.ts +0 -129
- package/dist/stories/checkbox/CheckboxCard.stories.js +0 -90
- package/dist/stories/checkbox/CheckboxGroup.stories.d.ts +0 -91
- package/dist/stories/checkbox/CheckboxGroup.stories.js +0 -72
- package/dist/stories/context-menu/ContextMenu.stories.d.ts +0 -113
- package/dist/stories/context-menu/ContextMenu.stories.js +0 -86
- package/dist/stories/data-list/DataList.stories.d.ts +0 -97
- package/dist/stories/data-list/DataList.stories.js +0 -87
- package/dist/stories/dialog/Dialog.stories.d.ts +0 -88
- package/dist/stories/dialog/Dialog.stories.js +0 -59
- package/dist/stories/doughnut-chart/DoughnutChart.stories.d.ts +0 -180
- package/dist/stories/doughnut-chart/DoughnutChart.stories.js +0 -228
- package/dist/stories/dropdown-menu/DropdownMenu.stories.d.ts +0 -112
- package/dist/stories/dropdown-menu/DropdownMenu.stories.js +0 -75
- package/dist/stories/header/Header.stories.d.ts +0 -112
- package/dist/stories/header/Header.stories.js +0 -97
- package/dist/stories/hover-card/HoverCard.stories.d.ts +0 -107
- package/dist/stories/hover-card/HoverCard.stories.js +0 -71
- package/dist/stories/inset/Inset.stories.d.ts +0 -58
- package/dist/stories/inset/Inset.stories.js +0 -64
- package/dist/stories/label/Label.stories.d.ts +0 -94
- package/dist/stories/label/Label.stories.js +0 -91
- package/dist/stories/menubar/Menubar.stories.d.ts +0 -119
- package/dist/stories/menubar/Menubar.stories.js +0 -98
- package/dist/stories/navigation-menu/NavigationMenu.stories.d.ts +0 -385
- package/dist/stories/navigation-menu/NavigationMenu.stories.js +0 -79
- package/dist/stories/pie-chart/PieChart.stories.d.ts +0 -185
- package/dist/stories/pie-chart/PieChart.stories.js +0 -281
- package/dist/stories/popover/Popover.stories.d.ts +0 -78
- package/dist/stories/popover/Popover.stories.js +0 -74
- package/dist/stories/progress/Progress.stories.d.ts +0 -113
- package/dist/stories/progress/Progress.stories.js +0 -77
- package/dist/stories/radar-chart/RadarChart.stories.d.ts +0 -110
- package/dist/stories/radar-chart/RadarChart.stories.js +0 -201
- package/dist/stories/radio/Radio.stories.d.ts +0 -108
- package/dist/stories/radio/Radio.stories.js +0 -84
- package/dist/stories/radio/RadioCards.stories.d.ts +0 -127
- package/dist/stories/radio/RadioCards.stories.js +0 -94
- package/dist/stories/radio/RadioGroup.stories.d.ts +0 -111
- package/dist/stories/radio/RadioGroup.stories.js +0 -88
- package/dist/stories/scroll-area/ScrollArea.stories.d.ts +0 -59
- package/dist/stories/scroll-area/ScrollArea.stories.js +0 -63
- package/dist/stories/segmented-control/SegmentedControl.stories.d.ts +0 -97
- package/dist/stories/segmented-control/SegmentedControl.stories.js +0 -80
- package/dist/stories/select/Select.stories.d.ts +0 -116
- package/dist/stories/select/Select.stories.js +0 -88
- package/dist/stories/separator/Separator.stories.d.ts +0 -93
- package/dist/stories/separator/Separator.stories.js +0 -82
- package/dist/stories/skeleton/Skeleton.stories.d.ts +0 -88
- package/dist/stories/skeleton/Skeleton.stories.js +0 -92
- package/dist/stories/slider/Slider.stories.d.ts +0 -114
- package/dist/stories/slider/Slider.stories.js +0 -83
- package/dist/stories/spinner/Spinner.stories.d.ts +0 -83
- package/dist/stories/spinner/Spinner.stories.js +0 -87
- package/dist/stories/switch/Switch.stories.d.ts +0 -146
- package/dist/stories/switch/Switch.stories.js +0 -108
- package/dist/stories/tab-nav/TabNav.stories.d.ts +0 -55
- package/dist/stories/tab-nav/TabNav.stories.js +0 -59
- package/dist/stories/table/Table.stories.d.ts +0 -87
- package/dist/stories/table/Table.stories.js +0 -79
- package/dist/stories/tabs/Tabs.stories.d.ts +0 -55
- package/dist/stories/tabs/Tabs.stories.js +0 -59
- package/dist/stories/text/Text.stories.d.ts +0 -74
- package/dist/stories/text/Text.stories.js +0 -76
- package/dist/stories/textArea/TextArea.stories.d.ts +0 -117
- package/dist/stories/textArea/TextArea.stories.js +0 -96
- package/dist/stories/textfield/TextField.stories.d.ts +0 -116
- package/dist/stories/textfield/TextField.stories.js +0 -88
- package/dist/stories/toast/Toast.stories.d.ts +0 -138
- package/dist/stories/toast/Toast.stories.js +0 -104
- package/dist/stories/toggle/Toggle.stories.d.ts +0 -115
- package/dist/stories/toggle/Toggle.stories.js +0 -89
- package/dist/stories/toggle/ToggleGroup.stories.d.ts +0 -103
- package/dist/stories/toggle/ToggleGroup.stories.js +0 -94
- package/dist/stories/tooltip/Tooltip.stories.d.ts +0 -93
- package/dist/stories/tooltip/Tooltip.stories.js +0 -78
- package/dist/tsconfig.tsbuildinfo +0 -1
@@ -20,7 +20,6 @@ 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";
|
24
23
|
import React from 'react';
|
25
24
|
import { cva } from 'class-variance-authority';
|
26
25
|
import { cn } from '../../utils/utils';
|
@@ -65,7 +64,12 @@ export var ToggleSwitch = React.forwardRef(function (_a, forwardedRef) {
|
|
65
64
|
sizeTheme = '1';
|
66
65
|
if (size === 'large')
|
67
66
|
sizeTheme = '3';
|
68
|
-
return (
|
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>);
|
69
73
|
});
|
70
74
|
ToggleSwitch.displayName = 'ToggleSwitch';
|
71
75
|
export default ToggleSwitch;
|
@@ -20,7 +20,6 @@ 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";
|
24
23
|
// your-tooltip.jsx
|
25
24
|
import React from 'react';
|
26
25
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
@@ -44,6 +43,16 @@ export var Tooltip = React.forwardRef(function (_a) {
|
|
44
43
|
var arrowColor = color
|
45
44
|
? "fill-".concat(color, "-9 dark:fill-").concat(color, "Dark-9")
|
46
45
|
: 'fill-slate-12 dark:fill-slateDark-12';
|
47
|
-
return (
|
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>);
|
48
57
|
});
|
49
58
|
Tooltip.displayName = TooltipPrimitive.Root.displayName;
|
package/package.json
CHANGED
@@ -1,11 +1,20 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lotte-innovate/ui-component-test",
|
3
3
|
"description": "Lotte UI Library",
|
4
|
-
"version": "0.0.
|
4
|
+
"version": "0.0.15",
|
5
5
|
"private": false,
|
6
6
|
"type": "module",
|
7
7
|
"files": [
|
8
|
-
"dist"
|
8
|
+
"dist/color",
|
9
|
+
"dist/components",
|
10
|
+
"dist/Typography",
|
11
|
+
"dist/utils",
|
12
|
+
"dist/constants.d.ts",
|
13
|
+
"dist/constants.js",
|
14
|
+
"dist/index.d.ts",
|
15
|
+
"dist/index.js",
|
16
|
+
"dist/types.d.ts",
|
17
|
+
"dist/types.js"
|
9
18
|
],
|
10
19
|
"main": "dist/index.js",
|
11
20
|
"module": "dist/index.js",
|
package/dist/app/layout.d.ts
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import type { Metadata } from 'next';
|
3
|
-
import './globals.css';
|
4
|
-
export declare const metadata: Metadata;
|
5
|
-
export default function RootLayout({ children, }: Readonly<{
|
6
|
-
children: React.ReactNode;
|
7
|
-
}>): import("react/jsx-runtime").JSX.Element;
|
package/dist/app/layout.js
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
-
import { Inter } from 'next/font/google';
|
3
|
-
import './globals.css';
|
4
|
-
var inter = Inter({ subsets: ['latin'] });
|
5
|
-
export var metadata = {
|
6
|
-
title: 'Create Next App',
|
7
|
-
description: 'Generated by create next app',
|
8
|
-
};
|
9
|
-
export default function RootLayout(_a) {
|
10
|
-
var children = _a.children;
|
11
|
-
return (_jsx("html", { lang: "en", children: _jsx("body", { className: inter.className, children: children }) }));
|
12
|
-
}
|
package/dist/app/page.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export default function Home(): import("react/jsx-runtime").JSX.Element;
|
package/dist/app/page.js
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
'use client';
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
3
|
-
import { bgColorStyle } from '../../constants';
|
4
|
-
var ColorPicker = function (_a) {
|
5
|
-
var setColorTheme = _a.setColorTheme;
|
6
|
-
var handleColorClick = function (color) {
|
7
|
-
setColorTheme(color);
|
8
|
-
};
|
9
|
-
return (_jsx("div", { children: _jsx("div", { className: "flex flex-row flex-wrap gap-2", children: Object.entries(bgColorStyle).map(function (_a) {
|
10
|
-
var key = _a[0], value = _a[1];
|
11
|
-
return (_jsx("button", { className: "w-12 p-2 rounded-full text-xs cursor-pointer hover:border-gray-900 ".concat(value, " text-white hover:text-black"), children: key.replace('Dark', '') }, key));
|
12
|
-
}) }) }));
|
13
|
-
};
|
14
|
-
export default ColorPicker;
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import { Dispatch, SetStateAction } from 'react';
|
2
|
-
import { IColor, IRadius, IScaling, IWeight } from 'types';
|
3
|
-
type ITheme = {
|
4
|
-
setRadiusTheme: Dispatch<SetStateAction<IRadius>>;
|
5
|
-
setScalingTheme: Dispatch<SetStateAction<IScaling>>;
|
6
|
-
setFontWeightTheme: Dispatch<SetStateAction<IWeight>>;
|
7
|
-
setColorTheme: Dispatch<SetStateAction<IColor>>;
|
8
|
-
setFontColorTheme: Dispatch<SetStateAction<IColor>>;
|
9
|
-
mode: string;
|
10
|
-
};
|
11
|
-
declare const Theme: ({ setRadiusTheme, setScalingTheme, setFontWeightTheme, setColorTheme, setFontColorTheme, mode, }: ITheme) => import("react/jsx-runtime").JSX.Element;
|
12
|
-
export default Theme;
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
-
import ColorPicker from './colorPicker';
|
3
|
-
var Theme = function (_a) {
|
4
|
-
var setRadiusTheme = _a.setRadiusTheme, setScalingTheme = _a.setScalingTheme, setFontWeightTheme = _a.setFontWeightTheme, setColorTheme = _a.setColorTheme, setFontColorTheme = _a.setFontColorTheme, mode = _a.mode;
|
5
|
-
var setColor = function (color) {
|
6
|
-
setColorTheme(color);
|
7
|
-
setFontColorTheme(color);
|
8
|
-
};
|
9
|
-
return (_jsxs("div", { className: "flex flex-col p-3", children: [_jsx("p", { className: "text-2xl font-bold", children: "Themes" }), _jsxs("div", { className: "flex flex-col text-xl gap-2", children: ["Accent Color", _jsx(ColorPicker, { mode: mode, setColorTheme: setColor })] })] }));
|
10
|
-
};
|
11
|
-
export default Theme;
|
@@ -1,31 +0,0 @@
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
2
|
-
__assign = Object.assign || function(t) {
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
4
|
-
s = arguments[i];
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
6
|
-
t[p] = s[p];
|
7
|
-
}
|
8
|
-
return t;
|
9
|
-
};
|
10
|
-
return __assign.apply(this, arguments);
|
11
|
-
};
|
12
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
13
|
-
var t = {};
|
14
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
15
|
-
t[p] = s[p];
|
16
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
17
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
18
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
19
|
-
t[p[i]] = s[p[i]];
|
20
|
-
}
|
21
|
-
return t;
|
22
|
-
};
|
23
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
24
|
-
import { forwardRef } from 'react';
|
25
|
-
import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
26
|
-
import { cn } from 'utils/utils';
|
27
|
-
export var NavigationMenuIndicator = forwardRef(function (_a, ref) {
|
28
|
-
var className = _a.className, children = _a.children, props = __rest(_a, ["className", "children"]);
|
29
|
-
return (_jsxs(NavigationMenuPrimitive.Indicator, __assign({ 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, { children: [_jsx("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) }), children] })));
|
30
|
-
});
|
31
|
-
NavigationMenuIndicator.displayName = 'NavigationMenuIndicator';
|
package/dist/stories/Welcome.js
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
-
import { useEffect } from 'react';
|
3
|
-
import Landing from './assets/landing.svg';
|
4
|
-
import Logo from './assets/logo.svg';
|
5
|
-
import Figma from './assets/figma.svg';
|
6
|
-
import Gitlab from './assets/gitlab.svg';
|
7
|
-
import Image from 'next/image';
|
8
|
-
import Button from 'components/Button';
|
9
|
-
var addParentClass = function () {
|
10
|
-
var elements = document.querySelectorAll('.welcome-wrap');
|
11
|
-
elements.forEach(function (element) {
|
12
|
-
var parent = element.parentElement.parentElement;
|
13
|
-
if (parent) {
|
14
|
-
parent.classList.add('welcome-wrap-layout');
|
15
|
-
}
|
16
|
-
});
|
17
|
-
};
|
18
|
-
var Welcome = function () {
|
19
|
-
useEffect(function () {
|
20
|
-
addParentClass();
|
21
|
-
}, []);
|
22
|
-
var navigateToGitlab = function () {
|
23
|
-
window.open('http://s-gitlab.ldcc.co.kr/l-ui/ui-component', '_blank');
|
24
|
-
};
|
25
|
-
var navigateToFigma = function () {
|
26
|
-
window.open('https://www.figma.com/design/tlcB7UYdvUNzPk5T66FqLf/UI-%EB%9D%BC%EC%9D%B4%EB%B8%8C%EB%9F%AC%EB%A6%AC-%EA%B3%B5%EC%9C%A0%EC%9A%A9?node-id=0-1&t=k7fMSU17MKc42lzy-0', '_blank');
|
27
|
-
};
|
28
|
-
return (_jsxs("div", { className: "welcome-wrap", children: [_jsxs("div", { children: [_jsxs("div", { children: [_jsx(Image, { className: "w-[150px] h-auto", layout: "fixed", src: Logo, alt: "LOTTE INNOVATE" }), _jsx("p", { className: "welcome-sub", children: "Style Guide UI Kit" }), _jsx("h1", { className: "welcome-title", children: "LOTTE UI Library" })] }), _jsxs("div", { className: "flex gap-2 pt-[40px]", children: [_jsxs(Button, { color: "slate", radius: "medium", scaling: "100%", weight: "medium", size: 'x-large', appearance: 'outline', onClick: navigateToGitlab, className: "relative z-10", children: [_jsx(Image, { src: Gitlab, width: 0, height: 0, alt: "Gitlab", className: "mr-2" }), "GitLab"] }), _jsxs(Button, { color: "slate", radius: "medium", scaling: "100%", weight: "medium", size: 'x-large', appearance: 'outline', onClick: navigateToFigma, className: "relative z-10", children: [_jsx(Image, { src: Figma, width: 0, height: 0, alt: "Figma", className: "mr-2" }), "Figma"] })] })] }), _jsx(Image, { className: "absolute bottom-0 w-auto", src: Landing, width: 0, height: 0, alt: "\uCEF4\uD3EC\uB10C\uD2B8 \uC774\uBBF8\uC9C0\uC785\uB2C8\uB2E4." })] }));
|
29
|
-
};
|
30
|
-
export default Welcome;
|
@@ -1,71 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
declare const meta: {
|
3
|
-
title: string;
|
4
|
-
component: import("react").ForwardRefExoticComponent<((Omit<import("@radix-ui/react-accordion").AccordionSingleProps & import("react").RefAttributes<HTMLDivElement>, "ref"> | Omit<import("@radix-ui/react-accordion").AccordionMultipleProps & import("react").RefAttributes<HTMLDivElement>, "ref">) & import("../../components/Accordion/index").AccordionProps) & import("react").RefAttributes<HTMLDivElement>>;
|
5
|
-
parameters: {
|
6
|
-
layout: string;
|
7
|
-
themes: {
|
8
|
-
themeOverride: string;
|
9
|
-
};
|
10
|
-
docs: {
|
11
|
-
description: {
|
12
|
-
component: string;
|
13
|
-
};
|
14
|
-
};
|
15
|
-
};
|
16
|
-
tags: string[];
|
17
|
-
argTypes: {
|
18
|
-
color: {
|
19
|
-
description: string;
|
20
|
-
table: {
|
21
|
-
category: string;
|
22
|
-
type: {
|
23
|
-
summary: string;
|
24
|
-
};
|
25
|
-
};
|
26
|
-
options: import("types").IColor[];
|
27
|
-
control: {
|
28
|
-
type: string;
|
29
|
-
};
|
30
|
-
defaultValue: {
|
31
|
-
summary: string;
|
32
|
-
};
|
33
|
-
};
|
34
|
-
scaling: {
|
35
|
-
description: string;
|
36
|
-
table: {
|
37
|
-
category: string;
|
38
|
-
type: {
|
39
|
-
summary: string;
|
40
|
-
};
|
41
|
-
};
|
42
|
-
control: {
|
43
|
-
type: string;
|
44
|
-
};
|
45
|
-
options: import("types").IScaling[];
|
46
|
-
defaultValue: {
|
47
|
-
summary: string;
|
48
|
-
};
|
49
|
-
};
|
50
|
-
type: {
|
51
|
-
description: string;
|
52
|
-
defaultValue: {
|
53
|
-
summary: string;
|
54
|
-
};
|
55
|
-
table: {
|
56
|
-
category: string;
|
57
|
-
type: {
|
58
|
-
summary: string;
|
59
|
-
};
|
60
|
-
};
|
61
|
-
options: string[];
|
62
|
-
control: {
|
63
|
-
type: string;
|
64
|
-
};
|
65
|
-
};
|
66
|
-
};
|
67
|
-
};
|
68
|
-
export default meta;
|
69
|
-
export declare const Default: ({ ...args }: {
|
70
|
-
[x: string]: any;
|
71
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
@@ -1,61 +0,0 @@
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
2
|
-
__assign = Object.assign || function(t) {
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
4
|
-
s = arguments[i];
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
6
|
-
t[p] = s[p];
|
7
|
-
}
|
8
|
-
return t;
|
9
|
-
};
|
10
|
-
return __assign.apply(this, arguments);
|
11
|
-
};
|
12
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
13
|
-
var t = {};
|
14
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
15
|
-
t[p] = s[p];
|
16
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
17
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
18
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
19
|
-
t[p[i]] = s[p[i]];
|
20
|
-
}
|
21
|
-
return t;
|
22
|
-
};
|
23
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
24
|
-
import { Accordion, AccordionContent, AccordionItem, AccordionTrigger, } from '../../components/Accordion/index';
|
25
|
-
import { commonArgTypes } from '../../constants';
|
26
|
-
var meta = {
|
27
|
-
title: 'Component/Accordion',
|
28
|
-
component: Accordion,
|
29
|
-
parameters: {
|
30
|
-
layout: 'centered',
|
31
|
-
themes: {
|
32
|
-
themeOverride: 'dark',
|
33
|
-
},
|
34
|
-
docs: {
|
35
|
-
description: {
|
36
|
-
component: '제한된 공간에 많은 정보를 구성할 수 있는 요소로 접힘, 펼침을 통해 정보를 보이거나 숨기는 기능',
|
37
|
-
},
|
38
|
-
},
|
39
|
-
},
|
40
|
-
tags: ['autodocs'],
|
41
|
-
argTypes: {
|
42
|
-
color: __assign(__assign({}, commonArgTypes.color), { description: 'Accordion 색상' }),
|
43
|
-
scaling: __assign(__assign({}, commonArgTypes.scaling), { description: 'Accordion 크기' }),
|
44
|
-
type: {
|
45
|
-
description: 'Accordion 항목을 하나 또는 여러개 열 수 있는지 설정',
|
46
|
-
defaultValue: { summary: 'single' },
|
47
|
-
table: {
|
48
|
-
category: 'Props',
|
49
|
-
type: { summary: ['single', 'multiple'].join(' | ') },
|
50
|
-
},
|
51
|
-
options: ['single', 'multiple'],
|
52
|
-
control: { type: 'select' },
|
53
|
-
},
|
54
|
-
},
|
55
|
-
};
|
56
|
-
export default meta;
|
57
|
-
export var Default = function (_a) {
|
58
|
-
var _b;
|
59
|
-
var args = __rest(_a, []);
|
60
|
-
return (_jsxs(Accordion, __assign({ defaultValue: "item-1", type: (_b = args.type) !== null && _b !== void 0 ? _b : 'single' }, args, { children: [_jsxs(AccordionItem, { value: "item-1", children: [_jsx(AccordionTrigger, __assign({}, args, { children: "\uB9AC\uC561\uD2B8\uB294 \uBB34\uC5C7\uC778\uAC00\uC694?" })), _jsx(AccordionContent, { children: "\uB9AC\uC561\uD2B8\uB294 \uC790\uBC14\uC2A4\uD06C\uB9BD\uD2B8 \uB77C\uC774\uBE0C\uB7EC\uB9AC\uC758 \uD558\uB098\uB85C\uC11C \uC0AC\uC6A9\uC790 \uC778\uD130\uD398\uC774\uC2A4\uB97C \uB9CC\uB4E4\uAE30 \uC704\uD574 \uC0AC\uC6A9\uB41C\uB2E4." })] }), _jsxs(AccordionItem, { value: "item-2", children: [_jsx(AccordionTrigger, __assign({}, args, { children: "\uC790\uBC14\uC2A4\uD06C\uB9BD\uD2B8\uB780 \uBB34\uC5C7\uC778\uAC00\uC694?" })), _jsx(AccordionContent, { children: "\uC790\uBC14\uC2A4\uD06C\uB9BD\uD2B8\uB294 \uAC1D\uCCB4 \uAE30\uBC18\uC758 \uC2A4\uD06C\uB9BD\uD2B8 \uD504\uB85C\uADF8\uB798\uBC0D \uC5B8\uC5B4\uC774\uB2E4." })] }), _jsxs(AccordionItem, { value: "item-3", disabled: true, children: [_jsx(AccordionTrigger, __assign({}, args, { children: "Can it be animated?" })), _jsx(AccordionContent, { children: "Yes! You can animate the Accordion with CSS or JavaScript." })] })] })));
|
61
|
-
};
|
@@ -1,107 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
declare const meta: {
|
3
|
-
title: string;
|
4
|
-
component: import("react").ForwardRefExoticComponent<import("@radix-ui/react-alert-dialog").AlertDialogProps & import("components/AlertDialog").AlertDialogProps & import("react").RefAttributes<never>>;
|
5
|
-
parameters: {
|
6
|
-
layout: string;
|
7
|
-
themes: {
|
8
|
-
themeOverride: string;
|
9
|
-
};
|
10
|
-
docs: {
|
11
|
-
description: {
|
12
|
-
component: string;
|
13
|
-
};
|
14
|
-
};
|
15
|
-
};
|
16
|
-
tags: string[];
|
17
|
-
argTypes: {
|
18
|
-
radius: {
|
19
|
-
description: string;
|
20
|
-
defaultValue: {
|
21
|
-
summary: string;
|
22
|
-
};
|
23
|
-
table: {
|
24
|
-
category: string;
|
25
|
-
type: {
|
26
|
-
summary: string;
|
27
|
-
};
|
28
|
-
};
|
29
|
-
options: import("types").IRadius[];
|
30
|
-
control: {
|
31
|
-
type: string;
|
32
|
-
};
|
33
|
-
};
|
34
|
-
size: {
|
35
|
-
table: {
|
36
|
-
category: string;
|
37
|
-
type: {
|
38
|
-
summary: string;
|
39
|
-
};
|
40
|
-
};
|
41
|
-
options: import("types").ISize[];
|
42
|
-
description: string;
|
43
|
-
defaultValue: {
|
44
|
-
summary: string;
|
45
|
-
};
|
46
|
-
control: {
|
47
|
-
type: string;
|
48
|
-
};
|
49
|
-
};
|
50
|
-
scaling: {
|
51
|
-
description: string;
|
52
|
-
table: {
|
53
|
-
category: string;
|
54
|
-
type: {
|
55
|
-
summary: string;
|
56
|
-
};
|
57
|
-
};
|
58
|
-
control: {
|
59
|
-
type: string;
|
60
|
-
};
|
61
|
-
options: import("types").IScaling[];
|
62
|
-
defaultValue: {
|
63
|
-
summary: string;
|
64
|
-
};
|
65
|
-
};
|
66
|
-
color: {
|
67
|
-
description: string;
|
68
|
-
table: {
|
69
|
-
category: string;
|
70
|
-
type: {
|
71
|
-
summary: string;
|
72
|
-
};
|
73
|
-
};
|
74
|
-
options: import("types").IColor[];
|
75
|
-
control: {
|
76
|
-
type: string;
|
77
|
-
};
|
78
|
-
defaultValue: {
|
79
|
-
summary: string;
|
80
|
-
};
|
81
|
-
};
|
82
|
-
titleText: {
|
83
|
-
description: string;
|
84
|
-
table: {
|
85
|
-
category: string;
|
86
|
-
type: {
|
87
|
-
summary: string;
|
88
|
-
};
|
89
|
-
};
|
90
|
-
control: string;
|
91
|
-
};
|
92
|
-
contentText: {
|
93
|
-
description: string;
|
94
|
-
table: {
|
95
|
-
category: string;
|
96
|
-
type: {
|
97
|
-
summary: string;
|
98
|
-
};
|
99
|
-
};
|
100
|
-
control: string;
|
101
|
-
};
|
102
|
-
};
|
103
|
-
};
|
104
|
-
export default meta;
|
105
|
-
export declare const Default: ({ ...args }: {
|
106
|
-
[x: string]: any;
|
107
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
@@ -1,60 +0,0 @@
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
2
|
-
__assign = Object.assign || function(t) {
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
4
|
-
s = arguments[i];
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
6
|
-
t[p] = s[p];
|
7
|
-
}
|
8
|
-
return t;
|
9
|
-
};
|
10
|
-
return __assign.apply(this, arguments);
|
11
|
-
};
|
12
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
13
|
-
var t = {};
|
14
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
15
|
-
t[p] = s[p];
|
16
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
17
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
18
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
19
|
-
t[p[i]] = s[p[i]];
|
20
|
-
}
|
21
|
-
return t;
|
22
|
-
};
|
23
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
24
|
-
import { commonArgTypes, sizeOptions } from '../../constants';
|
25
|
-
import Button from 'components/Button';
|
26
|
-
import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogTitle, AlertDialogTrigger, } from 'components/AlertDialog';
|
27
|
-
var meta = {
|
28
|
-
title: 'Component/AlertDialog',
|
29
|
-
component: AlertDialog,
|
30
|
-
parameters: {
|
31
|
-
layout: 'centered',
|
32
|
-
themes: {
|
33
|
-
themeOverride: 'dark',
|
34
|
-
},
|
35
|
-
docs: {
|
36
|
-
description: {
|
37
|
-
component: '사용자에게 결정을 내리거나 추가 정보를 입력하라는 프롬프트를 보내는 작은 창',
|
38
|
-
},
|
39
|
-
},
|
40
|
-
},
|
41
|
-
tags: ['autodocs'],
|
42
|
-
argTypes: {
|
43
|
-
radius: __assign(__assign({}, commonArgTypes.radius), { description: 'AlertDialog 테두리, Dialog 내 버튼 border 둥굴기', defaultValue: { summary: 'large' } }),
|
44
|
-
size: __assign(__assign({}, commonArgTypes.size), { table: {
|
45
|
-
category: 'Props',
|
46
|
-
type: {
|
47
|
-
summary: sizeOptions.filter(function (option) { return option !== 'x-small'; }).join(' | '),
|
48
|
-
},
|
49
|
-
}, options: sizeOptions.filter(function (option) { return option !== 'x-small'; }), description: 'AlertDialog 크기', defaultValue: { summary: 'large' } }),
|
50
|
-
scaling: __assign(__assign({}, commonArgTypes.scaling), { description: 'AlertDialog 비율' }),
|
51
|
-
color: __assign(__assign({}, commonArgTypes.color), { description: 'Action Button 메인 색' }),
|
52
|
-
titleText: __assign(__assign({}, commonArgTypes.basicText), { description: 'AlertDialog 타이틀 텍스트' }),
|
53
|
-
contentText: __assign(__assign({}, commonArgTypes.basicText), { description: 'AlertDialog 내용 텍스트' }),
|
54
|
-
},
|
55
|
-
};
|
56
|
-
export default meta;
|
57
|
-
export var Default = function (_a) {
|
58
|
-
var args = __rest(_a, []);
|
59
|
-
return (_jsxs(AlertDialog, { children: [_jsx(AlertDialogTrigger, { children: _jsx(Button, { children: "\uBC84\uD2BC\uC744 \uD074\uB9AD\uD574\uC8FC\uC138\uC694" }) }), _jsxs(AlertDialogContent, __assign({}, args, { children: [_jsx(AlertDialogTitle, __assign({}, args, { children: "AlertDialog \uC81C\uBAA9" })), _jsx(AlertDialogDescription, __assign({}, args, { children: "AlertDialog \uB0B4\uC6A9\uC774 \uB4E4\uC5B4\uAC08 \uACF5\uAC04\uC785\uB2C8\uB2E4." })), _jsxs("div", { className: "flex justify-end", children: [_jsx(AlertDialogCancel, __assign({}, args, { children: "\uCDE8\uC18C" })), _jsx(AlertDialogAction, __assign({}, args, { children: "\uD655\uC778" }))] })] }))] }));
|
60
|
-
};
|
@@ -1,68 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { IScaling } from 'types';
|
3
|
-
declare const meta: {
|
4
|
-
title: string;
|
5
|
-
component: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-aspect-ratio").AspectRatioProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("components/AspectRatio").AspectRatioProps & import("react").RefAttributes<HTMLDivElement>>;
|
6
|
-
parameters: {
|
7
|
-
layout: string;
|
8
|
-
docs: {
|
9
|
-
description: {
|
10
|
-
component: string;
|
11
|
-
};
|
12
|
-
};
|
13
|
-
};
|
14
|
-
tags: string[];
|
15
|
-
argTypes: {
|
16
|
-
ratio: {
|
17
|
-
table: {
|
18
|
-
category: string;
|
19
|
-
type: {
|
20
|
-
summary: string;
|
21
|
-
};
|
22
|
-
};
|
23
|
-
options: string[];
|
24
|
-
mapping: {
|
25
|
-
'1': number;
|
26
|
-
'5/4': number;
|
27
|
-
'5/3': number;
|
28
|
-
'5/2': number;
|
29
|
-
'5/1': number;
|
30
|
-
'16/9': number;
|
31
|
-
};
|
32
|
-
control: {
|
33
|
-
type: string;
|
34
|
-
};
|
35
|
-
description: string;
|
36
|
-
defaultValue: {
|
37
|
-
summary: string;
|
38
|
-
};
|
39
|
-
};
|
40
|
-
scaling: {
|
41
|
-
description: string;
|
42
|
-
table: {
|
43
|
-
category: string;
|
44
|
-
type: {
|
45
|
-
summary: string;
|
46
|
-
};
|
47
|
-
};
|
48
|
-
control: {
|
49
|
-
type: string;
|
50
|
-
};
|
51
|
-
options: IScaling[];
|
52
|
-
defaultValue: {
|
53
|
-
summary: string;
|
54
|
-
};
|
55
|
-
};
|
56
|
-
};
|
57
|
-
args: {};
|
58
|
-
};
|
59
|
-
export default meta;
|
60
|
-
export declare const Default: ({ ...args }: {
|
61
|
-
[x: string]: any;
|
62
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
63
|
-
export declare const Ratio: ({ ...args }: {
|
64
|
-
[x: string]: any;
|
65
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
66
|
-
export declare const Scaling: ({ ...args }: {
|
67
|
-
[x: string]: any;
|
68
|
-
}) => import("react/jsx-runtime").JSX.Element;
|