@lotte-innovate/ui-component-test 0.0.6 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +163 -163
- package/dist/Typography/Header/index.d.ts +1 -1
- package/dist/Typography/Header/index.jsx +4 -4
- package/dist/Typography/Text/index.d.ts +1 -1
- package/dist/Typography/Text/index.jsx +4 -4
- package/dist/Typography/index.js +3 -2
- package/dist/app/layout.jsx +2 -2
- package/dist/app/page.d.ts +1 -1
- package/dist/app/page.jsx +3 -39
- package/dist/app/template/badgeTemplate.jsx +71 -71
- package/dist/app/template/buttonTemplate.jsx +71 -71
- package/dist/app/template/colorPicker.jsx +6 -6
- package/dist/app/template/textTemplate.jsx +55 -55
- package/dist/app/template/theme.jsx +32 -32
- package/dist/components/Accordion/index.jsx +13 -13
- package/dist/components/AlertDialog/AlertDialogAction.jsx +2 -2
- package/dist/components/AlertDialog/AlertDialogCancel.jsx +2 -2
- package/dist/components/AlertDialog/AlertDialogContent.jsx +5 -5
- package/dist/components/AlertDialog/AlertDialogDescription.jsx +2 -2
- package/dist/components/AlertDialog/AlertDialogTitle.jsx +2 -2
- package/dist/components/AlertDialog/AlertDialogTrigger.jsx +2 -2
- package/dist/components/AspectRatio/index.jsx +2 -2
- package/dist/components/Avatar/index.jsx +5 -5
- package/dist/components/Badge/index.jsx +2 -2
- package/dist/components/BubbleChart/index.d.ts +1 -1
- package/dist/components/Button/index.jsx +2 -2
- package/dist/components/Callout/CalloutIcon.jsx +6 -6
- package/dist/components/Callout/CalloutText.jsx +2 -2
- package/dist/components/Callout/index.jsx +4 -4
- package/dist/components/Card/index.jsx +2 -2
- package/dist/components/Checkbox/index.jsx +9 -9
- package/dist/components/CheckboxCard/index.jsx +3 -3
- package/dist/components/CheckboxGroup/CheckboxGroupItem.jsx +4 -4
- package/dist/components/CheckboxGroup/index.jsx +4 -4
- package/dist/components/ContextMenu/ContextMenuCheckboxItem.jsx +5 -5
- package/dist/components/ContextMenu/ContextMenuContent.jsx +4 -4
- package/dist/components/ContextMenu/ContextMenuGroup.jsx +2 -2
- package/dist/components/ContextMenu/ContextMenuItem.jsx +3 -3
- package/dist/components/ContextMenu/ContextMenuItemIndicator.jsx +2 -2
- package/dist/components/ContextMenu/ContextMenuLabel.jsx +2 -2
- package/dist/components/ContextMenu/ContextMenuRadioGroup.jsx +4 -4
- package/dist/components/ContextMenu/ContextMenuRadioItem.jsx +5 -5
- package/dist/components/ContextMenu/ContextMenuSeparator.jsx +2 -2
- package/dist/components/ContextMenu/ContextMenuSubContent.jsx +4 -4
- package/dist/components/ContextMenu/ContextMenuSubTrigger.jsx +7 -7
- package/dist/components/ContextMenu/ContextMenuTrigger.jsx +2 -2
- package/dist/components/ContextMenu/index.jsx +2 -2
- package/dist/components/DataList/DataListItem.jsx +2 -2
- package/dist/components/DataList/DataListLabel.jsx +2 -2
- package/dist/components/DataList/DataListValue.jsx +2 -2
- package/dist/components/DataList/index.jsx +4 -4
- package/dist/components/Dialog/DialogAction.jsx +2 -2
- package/dist/components/Dialog/DialogCancel.jsx +2 -2
- package/dist/components/Dialog/DialogContent.jsx +2 -2
- package/dist/components/Dialog/DialogDescription.jsx +2 -2
- package/dist/components/Dialog/DialogSlot.jsx +2 -2
- package/dist/components/Dialog/DialogTitle.jsx +2 -2
- package/dist/components/Dialog/DialogTrigger.jsx +2 -2
- package/dist/components/Dialog/index.jsx +2 -2
- package/dist/components/DropdownMenu/DropdonMenuRadioGroup.jsx +4 -4
- package/dist/components/DropdownMenu/DropdonMenuSubContent.jsx +4 -4
- package/dist/components/DropdownMenu/DropdownMenuCheckboxItem.jsx +5 -5
- package/dist/components/DropdownMenu/DropdownMenuContent.jsx +4 -4
- package/dist/components/DropdownMenu/DropdownMenuItem.jsx +3 -3
- package/dist/components/DropdownMenu/DropdownMenuItemIndicator.jsx +2 -2
- package/dist/components/DropdownMenu/DropdownMenuLable.jsx +2 -2
- package/dist/components/DropdownMenu/DropdownMenuRadioItem.jsx +5 -5
- package/dist/components/DropdownMenu/DropdownMenuSubTrigger.jsx +5 -5
- package/dist/components/DropdownMenu/DropdownMenuTrigger.jsx +2 -2
- package/dist/components/HoverCard/HoverCardContent.jsx +2 -2
- package/dist/components/HoverCard/HoverCardTrigger.jsx +2 -2
- package/dist/components/HoverCard/index.jsx +2 -2
- package/dist/components/IconButton/index.jsx +2 -2
- package/dist/components/Input/Input.stories.jsx +6 -6
- package/dist/components/Inset/index.jsx +4 -4
- package/dist/components/Label/index.jsx +2 -2
- package/dist/components/Menubar/MenubarCheckboxItem.jsx +5 -5
- package/dist/components/Menubar/MenubarContent.jsx +4 -4
- package/dist/components/Menubar/MenubarItem.jsx +3 -3
- package/dist/components/Menubar/MenubarItemIndicator.jsx +2 -2
- package/dist/components/Menubar/MenubarRadioGroup.jsx +4 -4
- package/dist/components/Menubar/MenubarRadioItem.jsx +5 -5
- package/dist/components/Menubar/MenubarSeparator.jsx +2 -2
- package/dist/components/Menubar/MenubarSubContent.jsx +2 -2
- package/dist/components/Menubar/MenubarSubTrigger.jsx +5 -5
- package/dist/components/Menubar/MenubarTrigger.jsx +2 -2
- package/dist/components/Menubar/index.jsx +4 -4
- package/dist/components/NavigationMenu/NavigationMenuContent.jsx +2 -2
- package/dist/components/NavigationMenu/NavigationMenuIndicator.jsx +3 -3
- package/dist/components/NavigationMenu/NavigationMenuItem.jsx +2 -2
- package/dist/components/NavigationMenu/NavigationMenuLink.jsx +2 -2
- package/dist/components/NavigationMenu/NavigationMenuList.jsx +3 -3
- package/dist/components/NavigationMenu/NavigationMenuTrigger.jsx +3 -3
- package/dist/components/NavigationMenu/NavigationMenuViewport.jsx +2 -2
- package/dist/components/NavigationMenu/index.jsx +4 -4
- package/dist/components/Popover/PopoverClose.jsx +2 -2
- package/dist/components/Popover/PopoverContent.jsx +2 -2
- package/dist/components/Popover/PopoverTrigger.jsx +2 -2
- package/dist/components/Popover/index.jsx +2 -2
- package/dist/components/Progress/index.d.ts +3 -3
- package/dist/components/Progress/index.jsx +2 -2
- package/dist/components/RadarChart/index.d.ts +1 -1
- package/dist/components/Radio/index.d.ts +1 -1
- package/dist/components/Radio/index.jsx +7 -7
- package/dist/components/RadioCards/RadioCardsItem.jsx +2 -2
- package/dist/components/RadioCards/index.d.ts +1 -1
- package/dist/components/RadioCards/index.jsx +4 -4
- package/dist/components/RadioGroup/RadioGroupItem.jsx +2 -2
- package/dist/components/RadioGroup/index.d.ts +1 -1
- package/dist/components/RadioGroup/index.jsx +4 -4
- package/dist/components/ScrollArea/index.jsx +4 -4
- package/dist/components/SegmentedControl/SegmentedControlItem.jsx +2 -2
- package/dist/components/SegmentedControl/index.d.ts +1 -1
- package/dist/components/SegmentedControl/index.jsx +4 -4
- package/dist/components/Select/index.d.ts +1 -1
- package/dist/components/Select/index.jsx +16 -16
- package/dist/components/Separator/index.d.ts +1 -1
- package/dist/components/Separator/index.jsx +4 -4
- package/dist/components/Skeleton/index.d.ts +1 -1
- package/dist/components/Skeleton/index.jsx +4 -4
- package/dist/components/Slider/index.d.ts +1 -1
- package/dist/components/Slider/index.jsx +2 -2
- package/dist/components/Spinner/index.d.ts +1 -1
- package/dist/components/Spinner/index.jsx +4 -4
- package/dist/components/TabNav/index.jsx +6 -6
- package/dist/components/Table/index.d.ts +2 -2
- package/dist/components/Table/index.jsx +16 -16
- package/dist/components/Tabs/index.d.ts +1 -1
- package/dist/components/Tabs/index.jsx +10 -10
- package/dist/components/TextArea/index.d.ts +3 -3
- package/dist/components/TextArea/index.jsx +2 -2
- package/dist/components/TextField/index.d.ts +1 -1
- package/dist/components/TextField/index.jsx +6 -6
- package/dist/components/Toast/ToastActionButton.d.ts +3 -3
- package/dist/components/Toast/ToastActionButton.jsx +2 -2
- package/dist/components/Toast/ToastDescription.d.ts +1 -1
- package/dist/components/Toast/ToastDescription.jsx +4 -4
- package/dist/components/Toast/ToastTitle.d.ts +1 -1
- package/dist/components/Toast/ToastTitle.jsx +2 -2
- package/dist/components/Toast/index.d.ts +3 -3
- package/dist/components/Toast/index.jsx +7 -7
- package/dist/components/Toggle/ToggleWithText.jsx +3 -3
- package/dist/components/Toggle/index.d.ts +3 -3
- package/dist/components/Toggle/index.jsx +2 -2
- package/dist/components/ToggleGroup/index.d.ts +1 -1
- package/dist/components/ToggleGroup/index.jsx +4 -4
- package/dist/components/ToggleGroup/toggleGroupItem.jsx +2 -2
- package/dist/components/ToggleSwitch/index.d.ts +3 -3
- package/dist/components/ToggleSwitch/index.jsx +5 -5
- package/dist/components/Tooltip/index.d.ts +1 -1
- package/dist/components/Tooltip/index.jsx +10 -10
- package/dist/components/index.d.ts +0 -2
- package/dist/index.d.ts +0 -5
- package/dist/index.js +3 -5
- package/dist/stories/Welcome.jsx +19 -19
- package/dist/stories/accordion/Accordion.stories.jsx +19 -19
- package/dist/stories/alert-dialog/AlertDialog.stories.jsx +14 -14
- package/dist/stories/aspect-ratio/AspectRatio.stories.jsx +29 -29
- package/dist/stories/avatar/Avatar.stories.jsx +12 -12
- package/dist/stories/badge/Badge.stories.jsx +44 -44
- package/dist/stories/bubble-chart/BubbleChart.stories.jsx +9 -9
- package/dist/stories/button/Button.stories.jsx +34 -34
- package/dist/stories/button/IconButton.stories.jsx +14 -14
- package/dist/stories/callout/Callout.stories.jsx +107 -107
- package/dist/stories/card/Card.stories.jsx +51 -51
- package/dist/stories/checkbox/Checkbox.stories.jsx +57 -57
- package/dist/stories/checkbox/CheckboxCard.stories.jsx +36 -36
- package/dist/stories/checkbox/CheckboxGroup.stories.jsx +73 -73
- package/dist/stories/context-menu/ContextMenu.stories.jsx +70 -70
- package/dist/stories/data-list/DataList.stories.jsx +102 -102
- package/dist/stories/dialog/Dialog.stories.jsx +24 -24
- package/dist/stories/doughnut-chart/DoughnutChart.stories.jsx +9 -9
- package/dist/stories/dropdown-menu/DropdownMenu.stories.jsx +96 -96
- package/dist/stories/header/Header.stories.jsx +20 -20
- package/dist/stories/hover-card/HoverCard.stories.jsx +28 -28
- package/dist/stories/inset/Inset.stories.jsx +16 -16
- package/dist/stories/label/Label.stories.jsx +22 -22
- package/dist/stories/menubar/Menubar.stories.jsx +38 -38
- package/dist/stories/navigation-menu/NavigationMenu.stories.d.ts +9 -9
- package/dist/stories/navigation-menu/NavigationMenu.stories.jsx +67 -67
- package/dist/stories/pie-chart/PieChart.stories.jsx +20 -20
- package/dist/stories/popover/Popover.stories.jsx +34 -34
- package/dist/stories/progress/Progress.stories.jsx +6 -6
- package/dist/stories/radio/Radio.stories.jsx +11 -11
- package/dist/stories/radio/RadioCards.stories.jsx +60 -60
- package/dist/stories/radio/RadioGroup.stories.jsx +55 -55
- package/dist/stories/scroll-area/ScrollArea.stories.jsx +61 -61
- package/dist/stories/segmented-control/SegmentedControl.stories.jsx +22 -22
- package/dist/stories/select/Select.stories.jsx +62 -62
- package/dist/stories/separator/Separator.stories.jsx +25 -25
- package/dist/stories/skeleton/Skeleton.stories.jsx +28 -28
- package/dist/stories/slider/Slider.stories.jsx +12 -12
- package/dist/stories/spinner/Spinner.stories.jsx +26 -26
- package/dist/stories/switch/Switch.stories.jsx +12 -12
- package/dist/stories/tab-nav/TabNav.stories.jsx +10 -10
- package/dist/stories/table/Table.stories.jsx +28 -28
- package/dist/stories/tabs/Tabs.stories.jsx +18 -18
- package/dist/stories/text/Text.stories.jsx +16 -16
- package/dist/stories/textArea/TextArea.stories.jsx +17 -17
- package/dist/stories/textfield/TextField.stories.jsx +33 -33
- package/dist/stories/toast/Toast.stories.jsx +19 -19
- package/dist/stories/toggle/Toggle.stories.jsx +18 -18
- package/dist/stories/toggle/ToggleGroup.stories.jsx +34 -34
- package/dist/stories/tooltip/Tooltip.stories.jsx +14 -14
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +119 -118
@@ -54,29 +54,29 @@ var meta = {
|
|
54
54
|
export default meta;
|
55
55
|
export var Default = function (_a) {
|
56
56
|
var args = __rest(_a, []);
|
57
|
-
return (<Dialog {...args}>
|
58
|
-
<DialogTrigger>
|
59
|
-
<Button>Edit profile</Button>
|
60
|
-
</DialogTrigger>
|
61
|
-
<DialogContent {...args}>
|
62
|
-
<DialogTitle {...args}>Edit profile</DialogTitle>
|
63
|
-
<DialogDescription {...args}>Make changes to your profile.</DialogDescription>
|
64
|
-
|
65
|
-
<DialogSlot {...args}>
|
66
|
-
<span>Name</span>
|
67
|
-
<TextField {...args} placeholder="Enter your full name"/>
|
68
|
-
<span>Email</span>
|
69
|
-
<TextField {...args} placeholder="Enter your email"/>
|
70
|
-
</DialogSlot>
|
71
|
-
|
72
|
-
<div className="flex justify-end">
|
73
|
-
<DialogCancel {...args}>
|
74
|
-
<span>Cancel</span>
|
75
|
-
</DialogCancel>
|
76
|
-
<DialogAction {...args}>
|
77
|
-
<span>Save</span>
|
78
|
-
</DialogAction>
|
79
|
-
</div>
|
80
|
-
</DialogContent>
|
57
|
+
return (<Dialog {...args}>
|
58
|
+
<DialogTrigger>
|
59
|
+
<Button>Edit profile</Button>
|
60
|
+
</DialogTrigger>
|
61
|
+
<DialogContent {...args}>
|
62
|
+
<DialogTitle {...args}>Edit profile</DialogTitle>
|
63
|
+
<DialogDescription {...args}>Make changes to your profile.</DialogDescription>
|
64
|
+
|
65
|
+
<DialogSlot {...args}>
|
66
|
+
<span>Name</span>
|
67
|
+
<TextField {...args} placeholder="Enter your full name"/>
|
68
|
+
<span>Email</span>
|
69
|
+
<TextField {...args} placeholder="Enter your email"/>
|
70
|
+
</DialogSlot>
|
71
|
+
|
72
|
+
<div className="flex justify-end">
|
73
|
+
<DialogCancel {...args}>
|
74
|
+
<span>Cancel</span>
|
75
|
+
</DialogCancel>
|
76
|
+
<DialogAction {...args}>
|
77
|
+
<span>Save</span>
|
78
|
+
</DialogAction>
|
79
|
+
</div>
|
80
|
+
</DialogContent>
|
81
81
|
</Dialog>);
|
82
82
|
};
|
@@ -169,8 +169,8 @@ var meta = {
|
|
169
169
|
export default meta;
|
170
170
|
export var Default = function (_a) {
|
171
171
|
var args = __rest(_a, []);
|
172
|
-
return (<div className="w-[300px]">
|
173
|
-
<DoughnutChart labels={args.label} datasets={args.datasets} {...args}/>
|
172
|
+
return (<div className="w-[300px]">
|
173
|
+
<DoughnutChart labels={args.label} datasets={args.datasets} {...args}/>
|
174
174
|
</div>);
|
175
175
|
};
|
176
176
|
export var BorderStyles = function () {
|
@@ -204,13 +204,13 @@ export var BorderStyles = function () {
|
|
204
204
|
},
|
205
205
|
},
|
206
206
|
};
|
207
|
-
return (<div className="flex">
|
208
|
-
<div className="w-[200px]">
|
209
|
-
<DoughnutChart datasets={datasets} options={options}/>
|
210
|
-
</div>
|
211
|
-
<div className="w-[200px]">
|
212
|
-
<DoughnutChart datasets={dashDatasets} options={dashOptions}/>
|
213
|
-
</div>
|
207
|
+
return (<div className="flex">
|
208
|
+
<div className="w-[200px]">
|
209
|
+
<DoughnutChart datasets={datasets} options={options}/>
|
210
|
+
</div>
|
211
|
+
<div className="w-[200px]">
|
212
|
+
<DoughnutChart datasets={dashDatasets} options={dashOptions}/>
|
213
|
+
</div>
|
214
214
|
</div>);
|
215
215
|
};
|
216
216
|
export var DataLabels = function () {
|
@@ -58,113 +58,113 @@ var meta = {
|
|
58
58
|
export default meta;
|
59
59
|
export var Default = function (_a) {
|
60
60
|
var args = __rest(_a, []);
|
61
|
-
return (<DropdownMenu>
|
62
|
-
<DropdownMenuTrigger {...args}>
|
63
|
-
<Button>
|
64
|
-
Options
|
65
|
-
<ChevronDownIcon />
|
66
|
-
</Button>
|
67
|
-
</DropdownMenuTrigger>
|
68
|
-
<DropdownMenuContent {...args}>
|
69
|
-
<DropdownMenuLabel {...args}>라벨</DropdownMenuLabel>
|
70
|
-
<DropdownMenuItem {...args} shortcut="⌘ E">
|
71
|
-
기본 아이템
|
72
|
-
</DropdownMenuItem>
|
73
|
-
<DropdownMenuItem {...args} disabled>
|
74
|
-
사용불가 아이템
|
75
|
-
</DropdownMenuItem>
|
76
|
-
<DropdownMenuSeparator />
|
77
|
-
<DropdownMenuCheckboxItem checked {...args}>
|
78
|
-
체크박스1
|
79
|
-
</DropdownMenuCheckboxItem>
|
80
|
-
<DropdownMenuCheckboxItem checked={false} {...args}>
|
81
|
-
체크박스2
|
82
|
-
</DropdownMenuCheckboxItem>
|
83
|
-
<DropdownMenuSeparator />
|
84
|
-
|
85
|
-
<DropdownMenuRadioGroup value="option1">
|
86
|
-
<DropdownMenuRadioItem value="option1" {...args}>
|
87
|
-
라디오1
|
88
|
-
</DropdownMenuRadioItem>
|
89
|
-
<DropdownMenuRadioItem value="option2" {...args}>
|
90
|
-
라디오2
|
91
|
-
</DropdownMenuRadioItem>
|
92
|
-
</DropdownMenuRadioGroup>
|
93
|
-
<DropdownMenuSeparator />
|
94
|
-
|
95
|
-
<DropdownMenuSub>
|
96
|
-
<DropdownMenuSubTrigger {...args}>More Menu</DropdownMenuSubTrigger>
|
97
|
-
<DropdownMenuSubContent {...args}>
|
98
|
-
<DropdownMenuItem {...args}>project</DropdownMenuItem>
|
99
|
-
<DropdownMenuItem {...args}>folder</DropdownMenuItem>
|
100
|
-
|
101
|
-
<DropdownMenuSeparator />
|
102
|
-
<DropdownMenuItem {...args}>options</DropdownMenuItem>
|
103
|
-
</DropdownMenuSubContent>
|
104
|
-
</DropdownMenuSub>
|
105
|
-
</DropdownMenuContent>
|
61
|
+
return (<DropdownMenu>
|
62
|
+
<DropdownMenuTrigger {...args}>
|
63
|
+
<Button>
|
64
|
+
Options
|
65
|
+
<ChevronDownIcon />
|
66
|
+
</Button>
|
67
|
+
</DropdownMenuTrigger>
|
68
|
+
<DropdownMenuContent {...args}>
|
69
|
+
<DropdownMenuLabel {...args}>라벨</DropdownMenuLabel>
|
70
|
+
<DropdownMenuItem {...args} shortcut="⌘ E">
|
71
|
+
기본 아이템
|
72
|
+
</DropdownMenuItem>
|
73
|
+
<DropdownMenuItem {...args} disabled>
|
74
|
+
사용불가 아이템
|
75
|
+
</DropdownMenuItem>
|
76
|
+
<DropdownMenuSeparator />
|
77
|
+
<DropdownMenuCheckboxItem checked {...args}>
|
78
|
+
체크박스1
|
79
|
+
</DropdownMenuCheckboxItem>
|
80
|
+
<DropdownMenuCheckboxItem checked={false} {...args}>
|
81
|
+
체크박스2
|
82
|
+
</DropdownMenuCheckboxItem>
|
83
|
+
<DropdownMenuSeparator />
|
84
|
+
|
85
|
+
<DropdownMenuRadioGroup value="option1">
|
86
|
+
<DropdownMenuRadioItem value="option1" {...args}>
|
87
|
+
라디오1
|
88
|
+
</DropdownMenuRadioItem>
|
89
|
+
<DropdownMenuRadioItem value="option2" {...args}>
|
90
|
+
라디오2
|
91
|
+
</DropdownMenuRadioItem>
|
92
|
+
</DropdownMenuRadioGroup>
|
93
|
+
<DropdownMenuSeparator />
|
94
|
+
|
95
|
+
<DropdownMenuSub>
|
96
|
+
<DropdownMenuSubTrigger {...args}>More Menu</DropdownMenuSubTrigger>
|
97
|
+
<DropdownMenuSubContent {...args}>
|
98
|
+
<DropdownMenuItem {...args}>project</DropdownMenuItem>
|
99
|
+
<DropdownMenuItem {...args}>folder</DropdownMenuItem>
|
100
|
+
|
101
|
+
<DropdownMenuSeparator />
|
102
|
+
<DropdownMenuItem {...args}>options</DropdownMenuItem>
|
103
|
+
</DropdownMenuSubContent>
|
104
|
+
</DropdownMenuSub>
|
105
|
+
</DropdownMenuContent>
|
106
106
|
</DropdownMenu>);
|
107
107
|
};
|
108
108
|
export var Radius = function (_a) {
|
109
109
|
var args = __rest(_a, []);
|
110
|
-
return (<div className="flex items-center space-x-4">
|
111
|
-
{radiusOptions.map(function (radius) { return (<DropdownMenu key={radius}>
|
112
|
-
<DropdownMenuTrigger {...args} radius={radius}>
|
113
|
-
<Button>
|
114
|
-
{radius}
|
115
|
-
<ChevronDownIcon />
|
116
|
-
</Button>
|
117
|
-
</DropdownMenuTrigger>
|
118
|
-
<DropdownMenuContent {...args} radius={radius}>
|
119
|
-
<DropdownMenuItem {...args} radius={radius}>
|
120
|
-
메뉴1
|
121
|
-
</DropdownMenuItem>
|
122
|
-
<DropdownMenuItem {...args} radius={radius}>
|
123
|
-
메뉴2
|
124
|
-
</DropdownMenuItem>
|
125
|
-
</DropdownMenuContent>
|
126
|
-
</DropdownMenu>); })}
|
110
|
+
return (<div className="flex items-center space-x-4">
|
111
|
+
{radiusOptions.map(function (radius) { return (<DropdownMenu key={radius}>
|
112
|
+
<DropdownMenuTrigger {...args} radius={radius}>
|
113
|
+
<Button>
|
114
|
+
{radius}
|
115
|
+
<ChevronDownIcon />
|
116
|
+
</Button>
|
117
|
+
</DropdownMenuTrigger>
|
118
|
+
<DropdownMenuContent {...args} radius={radius}>
|
119
|
+
<DropdownMenuItem {...args} radius={radius}>
|
120
|
+
메뉴1
|
121
|
+
</DropdownMenuItem>
|
122
|
+
<DropdownMenuItem {...args} radius={radius}>
|
123
|
+
메뉴2
|
124
|
+
</DropdownMenuItem>
|
125
|
+
</DropdownMenuContent>
|
126
|
+
</DropdownMenu>); })}
|
127
127
|
</div>);
|
128
128
|
};
|
129
129
|
export var Size = function (_a) {
|
130
130
|
var args = __rest(_a, []);
|
131
|
-
return (<div className="flex items-center space-x-4">
|
132
|
-
{['small', 'medium'].map(function (size) { return (<DropdownMenu key={size}>
|
133
|
-
<DropdownMenuTrigger {...args} size={size}>
|
134
|
-
<Button>
|
135
|
-
{size}
|
136
|
-
<ChevronDownIcon />
|
137
|
-
</Button>
|
138
|
-
</DropdownMenuTrigger>
|
139
|
-
<DropdownMenuContent {...args} size={size}>
|
140
|
-
<DropdownMenuItem {...args} size={size}>
|
141
|
-
메뉴1
|
142
|
-
</DropdownMenuItem>
|
143
|
-
<DropdownMenuItem {...args} size={size}>
|
144
|
-
메뉴2
|
145
|
-
</DropdownMenuItem>
|
146
|
-
</DropdownMenuContent>
|
147
|
-
</DropdownMenu>); })}
|
131
|
+
return (<div className="flex items-center space-x-4">
|
132
|
+
{['small', 'medium'].map(function (size) { return (<DropdownMenu key={size}>
|
133
|
+
<DropdownMenuTrigger {...args} size={size}>
|
134
|
+
<Button>
|
135
|
+
{size}
|
136
|
+
<ChevronDownIcon />
|
137
|
+
</Button>
|
138
|
+
</DropdownMenuTrigger>
|
139
|
+
<DropdownMenuContent {...args} size={size}>
|
140
|
+
<DropdownMenuItem {...args} size={size}>
|
141
|
+
메뉴1
|
142
|
+
</DropdownMenuItem>
|
143
|
+
<DropdownMenuItem {...args} size={size}>
|
144
|
+
메뉴2
|
145
|
+
</DropdownMenuItem>
|
146
|
+
</DropdownMenuContent>
|
147
|
+
</DropdownMenu>); })}
|
148
148
|
</div>);
|
149
149
|
};
|
150
150
|
export var Appearance = function (_a) {
|
151
151
|
var args = __rest(_a, []);
|
152
|
-
return (<div className="flex items-center space-x-4">
|
153
|
-
{['solid', 'soft'].map(function (appearance) { return (<DropdownMenu key={appearance}>
|
154
|
-
<DropdownMenuTrigger {...args} appearance={appearance}>
|
155
|
-
<Button>
|
156
|
-
{appearance}
|
157
|
-
<ChevronDownIcon />
|
158
|
-
</Button>
|
159
|
-
</DropdownMenuTrigger>
|
160
|
-
<DropdownMenuContent {...args}>
|
161
|
-
<DropdownMenuItem {...args} appearance={appearance}>
|
162
|
-
메뉴1
|
163
|
-
</DropdownMenuItem>
|
164
|
-
<DropdownMenuItem {...args} appearance={appearance}>
|
165
|
-
메뉴2
|
166
|
-
</DropdownMenuItem>
|
167
|
-
</DropdownMenuContent>
|
168
|
-
</DropdownMenu>); })}
|
152
|
+
return (<div className="flex items-center space-x-4">
|
153
|
+
{['solid', 'soft'].map(function (appearance) { return (<DropdownMenu key={appearance}>
|
154
|
+
<DropdownMenuTrigger {...args} appearance={appearance}>
|
155
|
+
<Button>
|
156
|
+
{appearance}
|
157
|
+
<ChevronDownIcon />
|
158
|
+
</Button>
|
159
|
+
</DropdownMenuTrigger>
|
160
|
+
<DropdownMenuContent {...args}>
|
161
|
+
<DropdownMenuItem {...args} appearance={appearance}>
|
162
|
+
메뉴1
|
163
|
+
</DropdownMenuItem>
|
164
|
+
<DropdownMenuItem {...args} appearance={appearance}>
|
165
|
+
메뉴2
|
166
|
+
</DropdownMenuItem>
|
167
|
+
</DropdownMenuContent>
|
168
|
+
</DropdownMenu>); })}
|
169
169
|
</div>);
|
170
170
|
};
|
@@ -76,41 +76,41 @@ export var Default = function (_a) {
|
|
76
76
|
};
|
77
77
|
export var Weight = function (_a) {
|
78
78
|
var args = __rest(_a, []);
|
79
|
-
return (<div>
|
80
|
-
{weightOptions.map(function (weight) { return (<Header key={weight} {...args} weight={weight}>
|
81
|
-
The quick brown fox jumps over the lazy dog
|
82
|
-
</Header>); })}
|
79
|
+
return (<div>
|
80
|
+
{weightOptions.map(function (weight) { return (<Header key={weight} {...args} weight={weight}>
|
81
|
+
The quick brown fox jumps over the lazy dog
|
82
|
+
</Header>); })}
|
83
83
|
</div>);
|
84
84
|
};
|
85
85
|
export var Color = function (_a) {
|
86
86
|
var args = __rest(_a, []);
|
87
|
-
return (<div>
|
88
|
-
{colorOptions.map(function (color) { return (<Header key={color} {...args} color={color}>
|
89
|
-
The quick brown fox jumps over the lazy dog
|
90
|
-
</Header>); })}
|
87
|
+
return (<div>
|
88
|
+
{colorOptions.map(function (color) { return (<Header key={color} {...args} color={color}>
|
89
|
+
The quick brown fox jumps over the lazy dog
|
90
|
+
</Header>); })}
|
91
91
|
</div>);
|
92
92
|
};
|
93
93
|
export var Size = function (_a) {
|
94
94
|
var args = __rest(_a, []);
|
95
|
-
return (<div>
|
96
|
-
{typoSizeOptions.map(function (size) { return (<Header key={size} {...args} size={size}>
|
97
|
-
The quick brown fox jumps over the lazy dog
|
98
|
-
</Header>); })}
|
95
|
+
return (<div>
|
96
|
+
{typoSizeOptions.map(function (size) { return (<Header key={size} {...args} size={size}>
|
97
|
+
The quick brown fox jumps over the lazy dog
|
98
|
+
</Header>); })}
|
99
99
|
</div>);
|
100
100
|
};
|
101
101
|
export var Headers = function (_a) {
|
102
102
|
var args = __rest(_a, []);
|
103
|
-
return (<div>
|
104
|
-
{headerOptions.map(function (headers) { return (<Header key={headers} {...args} headers={headers}>
|
105
|
-
The quick brown fox jumps over the lazy dog
|
106
|
-
</Header>); })}
|
103
|
+
return (<div>
|
104
|
+
{headerOptions.map(function (headers) { return (<Header key={headers} {...args} headers={headers}>
|
105
|
+
The quick brown fox jumps over the lazy dog
|
106
|
+
</Header>); })}
|
107
107
|
</div>);
|
108
108
|
};
|
109
109
|
export var Align = function (_a) {
|
110
110
|
var args = __rest(_a, []);
|
111
|
-
return (<div>
|
112
|
-
{['left', 'center', 'right'].map(function (align) { return (<Header key={align} {...args} align={align}>
|
113
|
-
The quick brown fox jumps over the lazy dog
|
114
|
-
</Header>); })}
|
111
|
+
return (<div>
|
112
|
+
{['left', 'center', 'right'].map(function (align) { return (<Header key={align} {...args} align={align}>
|
113
|
+
The quick brown fox jumps over the lazy dog
|
114
|
+
</Header>); })}
|
115
115
|
</div>);
|
116
116
|
};
|
@@ -62,37 +62,37 @@ var meta = {
|
|
62
62
|
export default meta;
|
63
63
|
export var Default = function (_a) {
|
64
64
|
var args = __rest(_a, []);
|
65
|
-
return (<HoverCard>
|
66
|
-
<HoverCardTrigger>
|
67
|
-
<Link href="#" target="_blank" className="text-indigo-9 dark:text-indigoDark-9 hover:underline">
|
68
|
-
@radix_ui
|
69
|
-
</Link>
|
70
|
-
</HoverCardTrigger>
|
71
|
-
<HoverCardContent {...args}>
|
72
|
-
<div>
|
73
|
-
<strong>Typography</strong> is the art and technique of arranging type to make written
|
74
|
-
language legible, readable and appealing when displayed.
|
75
|
-
</div>
|
76
|
-
</HoverCardContent>
|
65
|
+
return (<HoverCard>
|
66
|
+
<HoverCardTrigger>
|
67
|
+
<Link href="#" target="_blank" className="text-indigo-9 dark:text-indigoDark-9 hover:underline">
|
68
|
+
@radix_ui
|
69
|
+
</Link>
|
70
|
+
</HoverCardTrigger>
|
71
|
+
<HoverCardContent {...args}>
|
72
|
+
<div>
|
73
|
+
<strong>Typography</strong> is the art and technique of arranging type to make written
|
74
|
+
language legible, readable and appealing when displayed.
|
75
|
+
</div>
|
76
|
+
</HoverCardContent>
|
77
77
|
</HoverCard>);
|
78
78
|
};
|
79
79
|
export var WithInset = function (_a) {
|
80
80
|
var args = __rest(_a, []);
|
81
|
-
return (<HoverCard>
|
82
|
-
<HoverCardTrigger>
|
83
|
-
<Link href="https://twitter.com/radix_ui" target="_blank" className="text-indigo-9 dark:text-indigoDark-9 hover:underline">
|
84
|
-
@radix_ui
|
85
|
-
</Link>
|
86
|
-
</HoverCardTrigger>
|
87
|
-
<HoverCardContent {...args}>
|
88
|
-
<div className="flex">
|
89
|
-
<Inset side="left" pr="current">
|
90
|
-
<Image src="https://images.unsplash.com/photo-1617050318658-a9a3175e34cb?&auto=format&fit=crop&w=300&q=90" alt="Bold typography" width={150} height={150} className="h-full block object-cover"/>
|
91
|
-
</Inset>
|
92
|
-
<span>
|
93
|
-
<strong>Typography</strong> is the art and technique.
|
94
|
-
</span>
|
95
|
-
</div>
|
96
|
-
</HoverCardContent>
|
81
|
+
return (<HoverCard>
|
82
|
+
<HoverCardTrigger>
|
83
|
+
<Link href="https://twitter.com/radix_ui" target="_blank" className="text-indigo-9 dark:text-indigoDark-9 hover:underline">
|
84
|
+
@radix_ui
|
85
|
+
</Link>
|
86
|
+
</HoverCardTrigger>
|
87
|
+
<HoverCardContent {...args}>
|
88
|
+
<div className="flex">
|
89
|
+
<Inset side="left" pr="current">
|
90
|
+
<Image src="https://images.unsplash.com/photo-1617050318658-a9a3175e34cb?&auto=format&fit=crop&w=300&q=90" alt="Bold typography" width={150} height={150} className="h-full block object-cover"/>
|
91
|
+
</Inset>
|
92
|
+
<span>
|
93
|
+
<strong>Typography</strong> is the art and technique.
|
94
|
+
</span>
|
95
|
+
</div>
|
96
|
+
</HoverCardContent>
|
97
97
|
</HoverCard>);
|
98
98
|
};
|
@@ -46,34 +46,34 @@ var meta = {
|
|
46
46
|
export default meta;
|
47
47
|
export var Default = function (_a) {
|
48
48
|
var args = __rest(_a, []);
|
49
|
-
return (<Inset clip="padding-box" side="top" pb="current" className="w-[290px]" {...args}>
|
49
|
+
return (<Inset clip="padding-box" side="top" pb="current" className="w-[290px]" {...args}>
|
50
50
|
<Image src="https://images.unsplash.com/photo-1617050318658-a9a3175e34cb?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=600&q=80" alt="Bold typography" width={100} height={200} style={{
|
51
51
|
display: 'block',
|
52
52
|
objectFit: 'cover',
|
53
53
|
width: '100%',
|
54
54
|
backgroundColor: 'var(--gray-5)',
|
55
|
-
}}/>
|
56
|
-
<div className="p-4">
|
57
|
-
<span>
|
58
|
-
Typography is the art and technique of arranging type to make written language legible.
|
59
|
-
</span>
|
60
|
-
</div>
|
55
|
+
}}/>
|
56
|
+
<div className="p-4">
|
57
|
+
<span>
|
58
|
+
Typography is the art and technique of arranging type to make written language legible.
|
59
|
+
</span>
|
60
|
+
</div>
|
61
61
|
</Inset>);
|
62
62
|
};
|
63
63
|
export var Horizontal = function (_a) {
|
64
64
|
var args = __rest(_a, []);
|
65
|
-
return (<Inset side="left" pr="current" className="w-[400px]" {...args}>
|
66
|
-
<div className="flex">
|
65
|
+
return (<Inset side="left" pr="current" className="w-[400px]" {...args}>
|
66
|
+
<div className="flex">
|
67
67
|
<Image src="https://images.unsplash.com/photo-1617050318658-a9a3175e34cb?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=600&q=80" alt="Bold typography" width={150} height={140} style={{
|
68
68
|
display: 'block',
|
69
69
|
objectFit: 'cover',
|
70
70
|
backgroundColor: 'var(--gray-5)',
|
71
|
-
}}/>
|
72
|
-
<div className="p-4">
|
73
|
-
<span>
|
74
|
-
Typography is the art and technique of arranging type to make written language legible.
|
75
|
-
</span>
|
76
|
-
</div>
|
77
|
-
</div>
|
71
|
+
}}/>
|
72
|
+
<div className="p-4">
|
73
|
+
<span>
|
74
|
+
Typography is the art and technique of arranging type to make written language legible.
|
75
|
+
</span>
|
76
|
+
</div>
|
77
|
+
</div>
|
78
78
|
</Inset>);
|
79
79
|
};
|
@@ -78,35 +78,35 @@ export var Default = function (_a) {
|
|
78
78
|
};
|
79
79
|
export var Scaling = function (_a) {
|
80
80
|
var args = __rest(_a, []);
|
81
|
-
return (<div className="">
|
82
|
-
{scalingOptions.map(function (scaling, index) { return (<div key={scaling} className="flex pt-3 items-center space-x-2">
|
83
|
-
<Label scaling={scaling} {...args}>
|
84
|
-
Label component
|
85
|
-
</Label>
|
86
|
-
</div>); })}
|
81
|
+
return (<div className="">
|
82
|
+
{scalingOptions.map(function (scaling, index) { return (<div key={scaling} className="flex pt-3 items-center space-x-2">
|
83
|
+
<Label scaling={scaling} {...args}>
|
84
|
+
Label component
|
85
|
+
</Label>
|
86
|
+
</div>); })}
|
87
87
|
</div>);
|
88
88
|
};
|
89
89
|
export var Size = function (_a) {
|
90
90
|
var args = __rest(_a, []);
|
91
|
-
return (<div className="flex flex-wrap items-center gap-[15px] px-5">
|
92
|
-
<Label size={'small'} {...args}>
|
93
|
-
Label component
|
94
|
-
</Label>
|
95
|
-
<Label size={'medium'} {...args}>
|
96
|
-
Label component
|
97
|
-
</Label>
|
98
|
-
<Label size={'large'} {...args}>
|
99
|
-
Label component
|
100
|
-
</Label>
|
91
|
+
return (<div className="flex flex-wrap items-center gap-[15px] px-5">
|
92
|
+
<Label size={'small'} {...args}>
|
93
|
+
Label component
|
94
|
+
</Label>
|
95
|
+
<Label size={'medium'} {...args}>
|
96
|
+
Label component
|
97
|
+
</Label>
|
98
|
+
<Label size={'large'} {...args}>
|
99
|
+
Label component
|
100
|
+
</Label>
|
101
101
|
</div>);
|
102
102
|
};
|
103
103
|
export var Weight = function (_a) {
|
104
104
|
var args = __rest(_a, []);
|
105
|
-
return (<div className="">
|
106
|
-
{['regular', 'bold'].map(function (weight, index) { return (<div key={weight} className="flex pt-3 items-center space-x-2">
|
107
|
-
<Label weight={weight} {...args}>
|
108
|
-
Label component
|
109
|
-
</Label>
|
110
|
-
</div>); })}
|
105
|
+
return (<div className="">
|
106
|
+
{['regular', 'bold'].map(function (weight, index) { return (<div key={weight} className="flex pt-3 items-center space-x-2">
|
107
|
+
<Label weight={weight} {...args}>
|
108
|
+
Label component
|
109
|
+
</Label>
|
110
|
+
</div>); })}
|
111
111
|
</div>);
|
112
112
|
};
|
@@ -87,49 +87,49 @@ export var Default = function (_a) {
|
|
87
87
|
var RADIO_ITEMS = ['구글', '네이버', '인트라넷'];
|
88
88
|
var _b = useState([CHECK_ITEMS[0]]), checkedSelection = _b[0], setCheckedSelection = _b[1];
|
89
89
|
var _c = useState(RADIO_ITEMS[0]), radioSelection = _c[0], setRadioSelection = _c[1];
|
90
|
-
return (<Menubar {...args}>
|
91
|
-
{/* 메뉴-기본 */}
|
92
|
-
<MenubarMenu>
|
93
|
-
<MenubarTrigger>파일</MenubarTrigger>
|
94
|
-
<MenubarContent>
|
95
|
-
<MenubarItem shortcut="⌘ T">새 탭</MenubarItem>
|
96
|
-
<MenubarItem shortcut="⌘ N">새 창</MenubarItem>
|
97
|
-
<MenubarItem disabled>사용불가</MenubarItem>
|
98
|
-
<MenubarSeparator />
|
99
|
-
<MenubarSub>
|
100
|
-
<MenubarSubTrigger>공유하기</MenubarSubTrigger>
|
101
|
-
<MenubarSubContent>
|
102
|
-
<MenubarItem>이메일</MenubarItem>
|
103
|
-
<MenubarItem>메신저</MenubarItem>
|
104
|
-
</MenubarSubContent>
|
105
|
-
</MenubarSub>
|
106
|
-
</MenubarContent>
|
107
|
-
</MenubarMenu>
|
108
|
-
{/* 메뉴-체크 */}
|
109
|
-
<MenubarMenu>
|
110
|
-
<MenubarTrigger>보기</MenubarTrigger>
|
111
|
-
<MenubarContent>
|
90
|
+
return (<Menubar {...args}>
|
91
|
+
{/* 메뉴-기본 */}
|
92
|
+
<MenubarMenu>
|
93
|
+
<MenubarTrigger>파일</MenubarTrigger>
|
94
|
+
<MenubarContent>
|
95
|
+
<MenubarItem shortcut="⌘ T">새 탭</MenubarItem>
|
96
|
+
<MenubarItem shortcut="⌘ N">새 창</MenubarItem>
|
97
|
+
<MenubarItem disabled>사용불가</MenubarItem>
|
98
|
+
<MenubarSeparator />
|
99
|
+
<MenubarSub>
|
100
|
+
<MenubarSubTrigger>공유하기</MenubarSubTrigger>
|
101
|
+
<MenubarSubContent>
|
102
|
+
<MenubarItem>이메일</MenubarItem>
|
103
|
+
<MenubarItem>메신저</MenubarItem>
|
104
|
+
</MenubarSubContent>
|
105
|
+
</MenubarSub>
|
106
|
+
</MenubarContent>
|
107
|
+
</MenubarMenu>
|
108
|
+
{/* 메뉴-체크 */}
|
109
|
+
<MenubarMenu>
|
110
|
+
<MenubarTrigger>보기</MenubarTrigger>
|
111
|
+
<MenubarContent>
|
112
112
|
{CHECK_ITEMS.map(function (item) { return (<MenubarCheckboxItem key={item} checked={checkedSelection.includes(item)} onCheckedChange={function () {
|
113
113
|
return setCheckedSelection(function (current) {
|
114
114
|
return current.includes(item)
|
115
115
|
? current.filter(function (el) { return el !== item; })
|
116
116
|
: current.concat(item);
|
117
117
|
});
|
118
|
-
}}>
|
119
|
-
{item}
|
120
|
-
</MenubarCheckboxItem>); })}
|
121
|
-
</MenubarContent>
|
122
|
-
</MenubarMenu>
|
123
|
-
{/* 메뉴-라디오 */}
|
124
|
-
<MenubarMenu>
|
125
|
-
<MenubarTrigger>프로필</MenubarTrigger>
|
126
|
-
<MenubarContent>
|
127
|
-
<MenubarRadioGroup value={radioSelection} onValueChange={setRadioSelection}>
|
128
|
-
{RADIO_ITEMS.map(function (item) { return (<MenubarRadioItem key={item} value={item}>
|
129
|
-
{item}
|
130
|
-
</MenubarRadioItem>); })}
|
131
|
-
</MenubarRadioGroup>
|
132
|
-
</MenubarContent>
|
133
|
-
</MenubarMenu>
|
118
|
+
}}>
|
119
|
+
{item}
|
120
|
+
</MenubarCheckboxItem>); })}
|
121
|
+
</MenubarContent>
|
122
|
+
</MenubarMenu>
|
123
|
+
{/* 메뉴-라디오 */}
|
124
|
+
<MenubarMenu>
|
125
|
+
<MenubarTrigger>프로필</MenubarTrigger>
|
126
|
+
<MenubarContent>
|
127
|
+
<MenubarRadioGroup value={radioSelection} onValueChange={setRadioSelection}>
|
128
|
+
{RADIO_ITEMS.map(function (item) { return (<MenubarRadioItem key={item} value={item}>
|
129
|
+
{item}
|
130
|
+
</MenubarRadioItem>); })}
|
131
|
+
</MenubarRadioGroup>
|
132
|
+
</MenubarContent>
|
133
|
+
</MenubarMenu>
|
134
134
|
</Menubar>);
|
135
135
|
};
|