@lotte-innovate/ui-component-test 0.0.14 → 0.0.16
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Typography/Header/{index.jsx → index.js} +2 -5
- package/dist/Typography/Text/{index.jsx → index.js} +3 -6
- package/dist/components/Accordion/{index.jsx → index.js} +5 -17
- package/dist/components/AlertDialog/{AlertDialogAction.jsx → AlertDialogAction.js} +3 -4
- package/dist/components/AlertDialog/{AlertDialogCancel.jsx → AlertDialogCancel.js} +3 -4
- package/dist/components/AlertDialog/{AlertDialogContent.jsx → AlertDialogContent.js} +3 -7
- package/dist/components/AlertDialog/{AlertDialogDescription.jsx → AlertDialogDescription.js} +14 -4
- package/dist/components/AlertDialog/{AlertDialogTitle.jsx → AlertDialogTitle.js} +14 -4
- package/dist/components/AlertDialog/{AlertDialogTrigger.jsx → AlertDialogTrigger.js} +3 -4
- package/dist/components/AlertDialog/{index.jsx → index.js} +14 -4
- package/dist/components/AspectRatio/{index.jsx → index.js} +3 -4
- package/dist/components/Avatar/{index.jsx → index.js} +3 -7
- package/dist/components/Badge/{index.jsx → index.js} +3 -4
- package/dist/components/BubbleChart/index.d.ts +1 -2
- package/dist/components/BubbleChart/{index.jsx → index.js} +2 -2
- package/dist/components/Button/{index.jsx → index.js} +3 -4
- package/dist/components/Callout/{CalloutIcon.jsx → CalloutIcon.js} +3 -8
- package/dist/components/Callout/{CalloutText.jsx → CalloutText.js} +14 -4
- package/dist/components/Callout/{index.jsx → index.js} +3 -6
- package/dist/components/Card/{index.jsx → index.js} +3 -4
- package/dist/components/Checkbox/{index.jsx → index.js} +3 -11
- package/dist/components/CheckboxCard/{index.jsx → index.js} +3 -5
- package/dist/components/CheckboxGroup/{CheckboxGroupItem.jsx → CheckboxGroupItem.js} +14 -6
- package/dist/components/CheckboxGroup/{index.jsx → index.js} +2 -5
- package/dist/components/ContextMenu/{ContextMenuCheckboxItem.jsx → ContextMenuCheckboxItem.js} +14 -7
- package/dist/components/ContextMenu/{ContextMenuContent.jsx → ContextMenuContent.js} +3 -6
- package/dist/components/ContextMenu/{ContextMenuGroup.jsx → ContextMenuGroup.js} +14 -4
- package/dist/components/ContextMenu/{ContextMenuItem.jsx → ContextMenuItem.js} +3 -5
- package/dist/components/ContextMenu/{ContextMenuItemIndicator.jsx → ContextMenuItemIndicator.js} +3 -4
- package/dist/components/ContextMenu/{ContextMenuLabel.jsx → ContextMenuLabel.js} +3 -4
- package/dist/components/ContextMenu/{ContextMenuRadioGroup.jsx → ContextMenuRadioGroup.js} +14 -6
- package/dist/components/ContextMenu/{ContextMenuRadioItem.jsx → ContextMenuRadioItem.js} +14 -7
- package/dist/components/ContextMenu/{ContextMenuSeparator.jsx → ContextMenuSeparator.js} +14 -4
- package/dist/components/ContextMenu/{ContextMenuSubContent.jsx → ContextMenuSubContent.js} +6 -9
- package/dist/components/ContextMenu/{ContextMenuSubTrigger.jsx → ContextMenuSubTrigger.js} +14 -9
- package/dist/components/ContextMenu/{ContextMenuTrigger.jsx → ContextMenuTrigger.js} +14 -4
- package/dist/components/ContextMenu/{index.jsx → index.js} +14 -6
- package/dist/components/DataList/{DataListItem.jsx → DataListItem.js} +3 -4
- package/dist/components/DataList/{DataListLabel.jsx → DataListLabel.js} +3 -4
- package/dist/components/DataList/{DataListValue.jsx → DataListValue.js} +3 -4
- package/dist/components/DataList/{index.jsx → index.js} +14 -6
- package/dist/components/Dialog/{DialogAction.jsx → DialogAction.js} +14 -4
- package/dist/components/Dialog/{DialogCancel.jsx → DialogCancel.js} +14 -4
- package/dist/components/Dialog/{DialogContent.jsx → DialogContent.js} +3 -4
- package/dist/components/Dialog/{DialogDescription.jsx → DialogDescription.js} +14 -4
- package/dist/components/Dialog/{DialogSlot.jsx → DialogSlot.js} +14 -4
- package/dist/components/Dialog/{DialogTitle.jsx → DialogTitle.js} +14 -4
- package/dist/components/Dialog/{DialogTrigger.jsx → DialogTrigger.js} +14 -4
- package/dist/components/Dialog/{index.jsx → index.js} +14 -4
- package/dist/components/DoughnutChart/index.d.ts +1 -2
- package/dist/components/DoughnutChart/{index.jsx → index.js} +2 -2
- package/dist/components/DropdownMenu/{DropdonMenuRadioGroup.jsx → DropdonMenuRadioGroup.js} +14 -6
- package/dist/components/DropdownMenu/{DropdonMenuSubContent.jsx → DropdonMenuSubContent.js} +7 -10
- package/dist/components/DropdownMenu/{DropdownMenuCheckboxItem.jsx → DropdownMenuCheckboxItem.js} +14 -7
- package/dist/components/DropdownMenu/{DropdownMenuContent.jsx → DropdownMenuContent.js} +3 -6
- package/dist/components/DropdownMenu/{DropdownMenuItem.jsx → DropdownMenuItem.js} +3 -5
- package/dist/components/DropdownMenu/{DropdownMenuItemIndicator.jsx → DropdownMenuItemIndicator.js} +3 -4
- package/dist/components/DropdownMenu/{DropdownMenuLable.jsx → DropdownMenuLable.js} +3 -4
- package/dist/components/DropdownMenu/{DropdownMenuRadioItem.jsx → DropdownMenuRadioItem.js} +14 -7
- package/dist/components/DropdownMenu/{DropdownMenuSeparator.jsx → DropdownMenuSeparator.js} +14 -2
- package/dist/components/DropdownMenu/{DropdownMenuSub.jsx → DropdownMenuSub.js} +14 -2
- package/dist/components/DropdownMenu/{DropdownMenuSubTrigger.jsx → DropdownMenuSubTrigger.js} +14 -7
- package/dist/components/DropdownMenu/{DropdownMenuTrigger.jsx → DropdownMenuTrigger.js} +14 -4
- package/dist/components/DropdownMenu/{index.jsx → index.js} +14 -2
- package/dist/components/HoverCard/{HoverCardContent.jsx → HoverCardContent.js} +3 -4
- package/dist/components/HoverCard/{HoverCardTrigger.jsx → HoverCardTrigger.js} +14 -4
- package/dist/components/HoverCard/{index.jsx → index.js} +14 -4
- package/dist/components/IconButton/{index.jsx → index.js} +2 -3
- package/dist/components/Inset/{index.jsx → index.js} +3 -6
- package/dist/components/Label/{index.jsx → index.js} +2 -3
- package/dist/components/Menubar/{MenubarCheckboxItem.jsx → MenubarCheckboxItem.js} +14 -7
- package/dist/components/Menubar/{MenubarContent.jsx → MenubarContent.js} +7 -10
- package/dist/components/Menubar/{MenubarItem.jsx → MenubarItem.js} +3 -5
- package/dist/components/Menubar/{MenubarItemIndicator.jsx → MenubarItemIndicator.js} +3 -4
- package/dist/components/Menubar/{MenubarMenu.jsx → MenubarMenu.js} +14 -2
- package/dist/components/Menubar/{MenubarRadioGroup.jsx → MenubarRadioGroup.js} +14 -6
- package/dist/components/Menubar/{MenubarRadioItem.jsx → MenubarRadioItem.js} +14 -7
- package/dist/components/Menubar/{MenubarSeparator.jsx → MenubarSeparator.js} +14 -4
- package/dist/components/Menubar/{MenubarSub.jsx → MenubarSub.js} +14 -2
- package/dist/components/Menubar/{MenubarSubContent.jsx → MenubarSubContent.js} +4 -5
- package/dist/components/Menubar/{MenubarSubTrigger.jsx → MenubarSubTrigger.js} +14 -7
- package/dist/components/Menubar/{MenubarTrigger.jsx → MenubarTrigger.js} +3 -4
- package/dist/components/Menubar/{index.jsx → index.js} +3 -6
- package/dist/components/NavigationMenu/{NavigationMenuContent.jsx → NavigationMenuContent.js} +3 -4
- package/dist/components/NavigationMenu/NavigationMenuIndicator.js +31 -0
- package/dist/components/NavigationMenu/{NavigationMenuItem.jsx → NavigationMenuItem.js} +14 -4
- package/dist/components/NavigationMenu/{NavigationMenuLink.jsx → NavigationMenuLink.js} +3 -4
- package/dist/components/NavigationMenu/{NavigationMenuList.jsx → NavigationMenuList.js} +3 -5
- package/dist/components/NavigationMenu/{NavigationMenuTrigger.jsx → NavigationMenuTrigger.js} +3 -5
- package/dist/components/NavigationMenu/{NavigationMenuViewport.jsx → NavigationMenuViewport.js} +3 -4
- package/dist/components/NavigationMenu/{index.jsx → index.js} +14 -6
- package/dist/components/PieChart/index.d.ts +1 -2
- package/dist/components/PieChart/{index.jsx → index.js} +2 -2
- package/dist/components/Popover/{PopoverClose.jsx → PopoverClose.js} +14 -4
- package/dist/components/Popover/{PopoverContent.jsx → PopoverContent.js} +3 -4
- package/dist/components/Popover/{PopoverTrigger.jsx → PopoverTrigger.js} +14 -4
- package/dist/components/Popover/{index.jsx → index.js} +14 -4
- package/dist/components/Progress/{index.jsx → index.js} +3 -4
- package/dist/components/RadarChart/index.d.ts +1 -2
- package/dist/components/RadarChart/{index.jsx → index.js} +2 -2
- package/dist/components/Radio/{index.jsx → index.js} +13 -8
- package/dist/components/RadioCards/{RadioCardsItem.jsx → RadioCardsItem.js} +14 -4
- package/dist/components/RadioCards/{index.jsx → index.js} +3 -6
- package/dist/components/RadioGroup/{RadioGroupItem.jsx → RadioGroupItem.js} +14 -4
- package/dist/components/RadioGroup/{index.jsx → index.js} +14 -6
- package/dist/components/ScrollArea/{index.jsx → index.js} +14 -6
- package/dist/components/SegmentedControl/{SegmentedControlItem.jsx → SegmentedControlItem.js} +14 -4
- package/dist/components/SegmentedControl/{index.jsx → index.js} +2 -5
- package/dist/components/Select/{index.jsx → index.js} +8 -25
- package/dist/components/Separator/{index.jsx → index.js} +2 -5
- package/dist/components/Skeleton/{index.jsx → index.js} +2 -5
- package/dist/components/Slider/{index.jsx → index.js} +2 -3
- package/dist/components/Spinner/{index.jsx → index.js} +2 -5
- package/dist/components/TabNav/{index.jsx → index.js} +14 -8
- package/dist/components/Table/{index.jsx → index.js} +8 -23
- package/dist/components/Tabs/{index.jsx → index.js} +5 -14
- package/dist/components/TextArea/{index.jsx → index.js} +2 -3
- package/dist/components/TextField/{index.jsx → index.js} +3 -8
- package/dist/components/Toast/{ToastActionButton.jsx → ToastActionButton.js} +3 -4
- package/dist/components/Toast/{ToastDescription.jsx → ToastDescription.js} +14 -6
- package/dist/components/Toast/{ToastTitle.jsx → ToastTitle.js} +14 -4
- package/dist/components/Toast/{index.jsx → index.js} +3 -9
- package/dist/components/Toggle/{ToggleWithText.jsx → ToggleWithText.js} +4 -6
- package/dist/components/Toggle/{index.jsx → index.js} +3 -4
- package/dist/components/ToggleGroup/{index.jsx → index.js} +3 -6
- package/dist/components/ToggleGroup/{toggleGroupItem.jsx → toggleGroupItem.js} +14 -4
- package/dist/components/ToggleSwitch/{index.jsx → index.js} +2 -6
- package/dist/components/Tooltip/{index.jsx → index.js} +2 -11
- package/package.json +11 -2
- package/dist/app/layout.d.ts +0 -7
- package/dist/app/layout.jsx +0 -13
- package/dist/app/page.d.ts +0 -2
- package/dist/app/page.jsx +0 -9
- package/dist/app/template/colorPicker.d.ts +0 -7
- package/dist/app/template/colorPicker.jsx +0 -19
- package/dist/app/template/theme.d.ts +0 -12
- package/dist/app/template/theme.jsx +0 -17
- package/dist/components/NavigationMenu/NavigationMenuIndicator.jsx +0 -22
- package/dist/stories/Welcome.d.ts +0 -3
- package/dist/stories/Welcome.jsx +0 -48
- package/dist/stories/accordion/Accordion.stories.d.ts +0 -71
- package/dist/stories/accordion/Accordion.stories.jsx +0 -79
- package/dist/stories/alert-dialog/AlertDialog.stories.d.ts +0 -107
- package/dist/stories/alert-dialog/AlertDialog.stories.jsx +0 -73
- package/dist/stories/aspect-ratio/AspectRatio.stories.d.ts +0 -68
- package/dist/stories/aspect-ratio/AspectRatio.stories.jsx +0 -106
- package/dist/stories/avatar/Avatar.stories.d.ts +0 -127
- package/dist/stories/avatar/Avatar.stories.jsx +0 -105
- package/dist/stories/badge/Badge.stories.d.ts +0 -133
- package/dist/stories/badge/Badge.stories.jsx +0 -130
- package/dist/stories/bubble-chart/BubbleChart.stories.d.ts +0 -103
- package/dist/stories/bubble-chart/BubbleChart.stories.jsx +0 -176
- package/dist/stories/button/Button.stories.d.ts +0 -148
- package/dist/stories/button/Button.stories.jsx +0 -98
- package/dist/stories/button/IconButton.stories.d.ts +0 -125
- package/dist/stories/button/IconButton.stories.jsx +0 -93
- package/dist/stories/callout/Callout.stories.d.ts +0 -129
- package/dist/stories/callout/Callout.stories.jsx +0 -205
- package/dist/stories/card/Card.stories.d.ts +0 -100
- package/dist/stories/card/Card.stories.jsx +0 -134
- package/dist/stories/checkbox/Checkbox.stories.d.ts +0 -147
- package/dist/stories/checkbox/Checkbox.stories.jsx +0 -166
- package/dist/stories/checkbox/CheckboxCard.stories.d.ts +0 -129
- package/dist/stories/checkbox/CheckboxCard.stories.jsx +0 -125
- package/dist/stories/checkbox/CheckboxGroup.stories.d.ts +0 -91
- package/dist/stories/checkbox/CheckboxGroup.stories.jsx +0 -144
- package/dist/stories/context-menu/ContextMenu.stories.d.ts +0 -113
- package/dist/stories/context-menu/ContextMenu.stories.jsx +0 -155
- package/dist/stories/data-list/DataList.stories.d.ts +0 -97
- package/dist/stories/data-list/DataList.stories.jsx +0 -185
- package/dist/stories/dialog/Dialog.stories.d.ts +0 -88
- package/dist/stories/dialog/Dialog.stories.jsx +0 -82
- package/dist/stories/doughnut-chart/DoughnutChart.stories.d.ts +0 -181
- package/dist/stories/doughnut-chart/DoughnutChart.stories.jsx +0 -236
- package/dist/stories/dropdown-menu/DropdownMenu.stories.d.ts +0 -112
- package/dist/stories/dropdown-menu/DropdownMenu.stories.jsx +0 -170
- package/dist/stories/header/Header.stories.d.ts +0 -112
- package/dist/stories/header/Header.stories.jsx +0 -116
- package/dist/stories/hover-card/HoverCard.stories.d.ts +0 -107
- package/dist/stories/hover-card/HoverCard.stories.jsx +0 -98
- package/dist/stories/inset/Inset.stories.d.ts +0 -58
- package/dist/stories/inset/Inset.stories.jsx +0 -79
- package/dist/stories/label/Label.stories.d.ts +0 -94
- package/dist/stories/label/Label.stories.jsx +0 -112
- package/dist/stories/menubar/Menubar.stories.d.ts +0 -119
- package/dist/stories/menubar/Menubar.stories.jsx +0 -135
- package/dist/stories/navigation-menu/NavigationMenu.stories.d.ts +0 -385
- package/dist/stories/navigation-menu/NavigationMenu.stories.jsx +0 -144
- package/dist/stories/pie-chart/PieChart.stories.d.ts +0 -186
- package/dist/stories/pie-chart/PieChart.stories.jsx +0 -300
- package/dist/stories/popover/Popover.stories.d.ts +0 -78
- package/dist/stories/popover/Popover.stories.jsx +0 -107
- package/dist/stories/progress/Progress.stories.d.ts +0 -113
- package/dist/stories/progress/Progress.stories.jsx +0 -82
- package/dist/stories/radar-chart/RadarChart.stories.d.ts +0 -111
- package/dist/stories/radar-chart/RadarChart.stories.jsx +0 -200
- package/dist/stories/radio/Radio.stories.d.ts +0 -108
- package/dist/stories/radio/Radio.stories.jsx +0 -94
- package/dist/stories/radio/RadioCards.stories.d.ts +0 -127
- package/dist/stories/radio/RadioCards.stories.jsx +0 -153
- package/dist/stories/radio/RadioGroup.stories.d.ts +0 -111
- package/dist/stories/radio/RadioGroup.stories.jsx +0 -142
- package/dist/stories/scroll-area/ScrollArea.stories.d.ts +0 -59
- package/dist/stories/scroll-area/ScrollArea.stories.jsx +0 -123
- package/dist/stories/segmented-control/SegmentedControl.stories.d.ts +0 -97
- package/dist/stories/segmented-control/SegmentedControl.stories.jsx +0 -101
- package/dist/stories/select/Select.stories.d.ts +0 -116
- package/dist/stories/select/Select.stories.jsx +0 -149
- package/dist/stories/separator/Separator.stories.d.ts +0 -93
- package/dist/stories/separator/Separator.stories.jsx +0 -106
- package/dist/stories/skeleton/Skeleton.stories.d.ts +0 -88
- package/dist/stories/skeleton/Skeleton.stories.jsx +0 -119
- package/dist/stories/slider/Slider.stories.d.ts +0 -114
- package/dist/stories/slider/Slider.stories.jsx +0 -94
- package/dist/stories/spinner/Spinner.stories.d.ts +0 -83
- package/dist/stories/spinner/Spinner.stories.jsx +0 -112
- package/dist/stories/switch/Switch.stories.d.ts +0 -146
- package/dist/stories/switch/Switch.stories.jsx +0 -119
- package/dist/stories/tab-nav/TabNav.stories.d.ts +0 -55
- package/dist/stories/tab-nav/TabNav.stories.jsx +0 -68
- package/dist/stories/table/Table.stories.d.ts +0 -87
- package/dist/stories/table/Table.stories.jsx +0 -106
- package/dist/stories/tabs/Tabs.stories.d.ts +0 -55
- package/dist/stories/tabs/Tabs.stories.jsx +0 -76
- package/dist/stories/text/Text.stories.d.ts +0 -74
- package/dist/stories/text/Text.stories.jsx +0 -91
- package/dist/stories/textArea/TextArea.stories.d.ts +0 -117
- package/dist/stories/textArea/TextArea.stories.jsx +0 -112
- package/dist/stories/textfield/TextField.stories.d.ts +0 -116
- package/dist/stories/textfield/TextField.stories.jsx +0 -120
- package/dist/stories/toast/Toast.stories.d.ts +0 -138
- package/dist/stories/toast/Toast.stories.jsx +0 -122
- package/dist/stories/toggle/Toggle.stories.d.ts +0 -115
- package/dist/stories/toggle/Toggle.stories.jsx +0 -106
- package/dist/stories/toggle/ToggleGroup.stories.d.ts +0 -103
- package/dist/stories/toggle/ToggleGroup.stories.jsx +0 -127
- package/dist/stories/tooltip/Tooltip.stories.d.ts +0 -93
- package/dist/stories/tooltip/Tooltip.stories.jsx +0 -91
- package/dist/tsconfig.tsbuildinfo +0 -1
@@ -1,106 +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 Image from 'next/image';
|
24
|
-
import AspectRatio from 'components/AspectRatio';
|
25
|
-
import { Text } from 'Typography/Text';
|
26
|
-
import { commonArgTypes, scalingOptions } from '../../constants';
|
27
|
-
var aspectOptions = {
|
28
|
-
'1': 1,
|
29
|
-
'5/4': 1.25,
|
30
|
-
'5/3': 1.66,
|
31
|
-
'5/2': 2.5,
|
32
|
-
'5/1': 5,
|
33
|
-
'16/9': 1.77,
|
34
|
-
};
|
35
|
-
var meta = {
|
36
|
-
title: 'Component/AspectRatio',
|
37
|
-
component: AspectRatio,
|
38
|
-
parameters: {
|
39
|
-
layout: 'centered',
|
40
|
-
docs: {
|
41
|
-
description: {
|
42
|
-
component: '원하는 비율로 콘텐츠를 표시하는 컴포넌트',
|
43
|
-
},
|
44
|
-
},
|
45
|
-
},
|
46
|
-
tags: ['autodocs'],
|
47
|
-
argTypes: {
|
48
|
-
ratio: {
|
49
|
-
table: {
|
50
|
-
category: 'Props',
|
51
|
-
type: { summary: 'number' },
|
52
|
-
},
|
53
|
-
options: Object.keys(aspectOptions),
|
54
|
-
mapping: aspectOptions,
|
55
|
-
control: {
|
56
|
-
type: 'select',
|
57
|
-
},
|
58
|
-
description: 'width / height 비율',
|
59
|
-
defaultValue: { summary: '16/9' },
|
60
|
-
},
|
61
|
-
scaling: __assign(__assign({}, commonArgTypes.scaling), { description: 'AspectRatio 비율' }),
|
62
|
-
},
|
63
|
-
args: {},
|
64
|
-
};
|
65
|
-
export default meta;
|
66
|
-
export var Default = function (_a) {
|
67
|
-
var args = __rest(_a, []);
|
68
|
-
return (<div className="w-[300px]">
|
69
|
-
<AspectRatio id="defaultAspectRatio" {...args}>
|
70
|
-
<Image className="h-full w-full object-cover" src="https://images.unsplash.com/photo-1535025183041-0991a977e25b?w=300&dpr=2&q=80" alt="Landscape photograph by Tobias Tullius" width={100} height={100}/>
|
71
|
-
</AspectRatio>
|
72
|
-
</div>);
|
73
|
-
};
|
74
|
-
export var Ratio = function (_a) {
|
75
|
-
var args = __rest(_a, []);
|
76
|
-
return (<div className="flex space-x-2">
|
77
|
-
<div className="flex flex-col w-[200px] items-center">
|
78
|
-
<Text>{'3 / 1'}</Text>
|
79
|
-
<AspectRatio id="defaultAspectRatio" {...args} ratio={3 / 1}>
|
80
|
-
<Image className="h-full w-full object-cover" src="https://images.unsplash.com/photo-1535025183041-0991a977e25b?w=300&dpr=2&q=80" alt="Landscape photograph by Tobias Tullius" width={100} height={100}/>
|
81
|
-
</AspectRatio>
|
82
|
-
</div>
|
83
|
-
<div className="flex flex-col w-[200px] items-center">
|
84
|
-
<Text>{'3 / 2'}</Text>
|
85
|
-
<AspectRatio id="defaultAspectRatio" {...args} ratio={3 / 2}>
|
86
|
-
<Image className="h-full w-full object-cover" src="https://images.unsplash.com/photo-1535025183041-0991a977e25b?w=300&dpr=2&q=80" alt="Landscape photograph by Tobias Tullius" width={100} height={100}/>
|
87
|
-
</AspectRatio>
|
88
|
-
</div>
|
89
|
-
<div className="flex flex-col w-[200px] items-center">
|
90
|
-
<Text>{'3 / 3'}</Text>
|
91
|
-
<AspectRatio id="defaultAspectRatio" {...args} ratio={3 / 3}>
|
92
|
-
<Image className="h-full w-full object-cover" src="https://images.unsplash.com/photo-1535025183041-0991a977e25b?w=300&dpr=2&q=80" alt="Landscape photograph by Tobias Tullius" width={100} height={100}/>
|
93
|
-
</AspectRatio>
|
94
|
-
</div>
|
95
|
-
</div>);
|
96
|
-
};
|
97
|
-
export var Scaling = function (_a) {
|
98
|
-
var args = __rest(_a, []);
|
99
|
-
return (<div className="flex flex-row space-x-5">
|
100
|
-
{scalingOptions.map(function (scaling) { return (<div className="w-[130px] border border-red-9" key={scaling}>
|
101
|
-
<AspectRatio id={scaling} scaling={scaling} {...args}>
|
102
|
-
<Image className="h-full w-full object-cover" src="https://images.unsplash.com/photo-1535025183041-0991a977e25b?w=300&dpr=2&q=80" alt="Landscape photograph by Tobias Tullius" width={100} height={100}/>
|
103
|
-
</AspectRatio>
|
104
|
-
</div>); })}
|
105
|
-
</div>);
|
106
|
-
};
|
@@ -1,127 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { IRadius, IScaling, ITypoSize } from 'types';
|
3
|
-
declare const meta: {
|
4
|
-
title: string;
|
5
|
-
component: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import("components/Avatar").AvatarProps & import("react").RefAttributes<HTMLSpanElement>>;
|
6
|
-
parameters: {
|
7
|
-
layout: string;
|
8
|
-
themes: {
|
9
|
-
themeOverride: string;
|
10
|
-
};
|
11
|
-
docs: {
|
12
|
-
description: {
|
13
|
-
component: string;
|
14
|
-
};
|
15
|
-
};
|
16
|
-
};
|
17
|
-
tags: string[];
|
18
|
-
argTypes: {
|
19
|
-
radius: {
|
20
|
-
description: string;
|
21
|
-
defaultValue: {
|
22
|
-
summary: string;
|
23
|
-
};
|
24
|
-
table: {
|
25
|
-
category: string;
|
26
|
-
type: {
|
27
|
-
summary: string;
|
28
|
-
};
|
29
|
-
};
|
30
|
-
options: IRadius[];
|
31
|
-
control: {
|
32
|
-
type: string;
|
33
|
-
};
|
34
|
-
};
|
35
|
-
scaling: {
|
36
|
-
description: string;
|
37
|
-
table: {
|
38
|
-
category: string;
|
39
|
-
type: {
|
40
|
-
summary: string;
|
41
|
-
};
|
42
|
-
};
|
43
|
-
control: {
|
44
|
-
type: string;
|
45
|
-
};
|
46
|
-
options: IScaling[];
|
47
|
-
defaultValue: {
|
48
|
-
summary: string;
|
49
|
-
};
|
50
|
-
};
|
51
|
-
size: {
|
52
|
-
table: {
|
53
|
-
category: string;
|
54
|
-
type: {
|
55
|
-
summary: string;
|
56
|
-
};
|
57
|
-
};
|
58
|
-
options: ITypoSize[];
|
59
|
-
control: {
|
60
|
-
type: string;
|
61
|
-
};
|
62
|
-
description: string;
|
63
|
-
defaultValue: {
|
64
|
-
summary: string;
|
65
|
-
};
|
66
|
-
};
|
67
|
-
color: {
|
68
|
-
description: string;
|
69
|
-
table: {
|
70
|
-
category: string;
|
71
|
-
type: {
|
72
|
-
summary: string;
|
73
|
-
};
|
74
|
-
};
|
75
|
-
options: import("types").IColor[];
|
76
|
-
control: {
|
77
|
-
type: string;
|
78
|
-
};
|
79
|
-
defaultValue: {
|
80
|
-
summary: string;
|
81
|
-
};
|
82
|
-
};
|
83
|
-
appearance: {
|
84
|
-
description: string;
|
85
|
-
table: {
|
86
|
-
category: string;
|
87
|
-
type: {
|
88
|
-
summary: string;
|
89
|
-
};
|
90
|
-
};
|
91
|
-
options: import("types").IAppearance[];
|
92
|
-
control: {
|
93
|
-
type: string;
|
94
|
-
};
|
95
|
-
defaultValue: {
|
96
|
-
summary: string;
|
97
|
-
};
|
98
|
-
};
|
99
|
-
fallbackText: {
|
100
|
-
table: {
|
101
|
-
category: string;
|
102
|
-
type: {
|
103
|
-
summary: string;
|
104
|
-
};
|
105
|
-
};
|
106
|
-
control: string;
|
107
|
-
description: string;
|
108
|
-
defaultValue: string;
|
109
|
-
};
|
110
|
-
};
|
111
|
-
};
|
112
|
-
export default meta;
|
113
|
-
export declare const Default: ({ ...args }: {
|
114
|
-
[x: string]: any;
|
115
|
-
}) => import("react").JSX.Element;
|
116
|
-
export declare const Radius: ({ ...args }: {
|
117
|
-
[x: string]: any;
|
118
|
-
}) => import("react").JSX.Element;
|
119
|
-
export declare const Size: ({ ...args }: {
|
120
|
-
[x: string]: any;
|
121
|
-
}) => import("react").JSX.Element;
|
122
|
-
export declare const Scaling: ({ ...args }: {
|
123
|
-
[x: string]: any;
|
124
|
-
}) => import("react").JSX.Element;
|
125
|
-
export declare const Appearance: ({ ...args }: {
|
126
|
-
[x: string]: any;
|
127
|
-
}) => import("react").JSX.Element;
|
@@ -1,105 +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 Avatar from 'components/Avatar';
|
24
|
-
import { radiusOptions, scalingOptions, commonArgTypes, typoSizeOptions, appearanceOptions, } from '../../constants';
|
25
|
-
var meta = {
|
26
|
-
title: 'Component/Avatar',
|
27
|
-
component: Avatar,
|
28
|
-
parameters: {
|
29
|
-
layout: 'centered',
|
30
|
-
themes: {
|
31
|
-
themeOverride: 'dark',
|
32
|
-
},
|
33
|
-
docs: {
|
34
|
-
description: {
|
35
|
-
component: '사용자 프로필 아이콘으로 사용자를 대표하는 이미지를 사진이나 이니셜로 표현하는 컴포넌트',
|
36
|
-
},
|
37
|
-
},
|
38
|
-
},
|
39
|
-
tags: ['autodocs'],
|
40
|
-
argTypes: {
|
41
|
-
radius: __assign(__assign({}, commonArgTypes.radius), { description: 'Avatar 둥굴기', defaultValue: { summary: 'full' } }),
|
42
|
-
scaling: __assign(__assign({}, commonArgTypes.scaling), { description: 'Avatar 비율' }),
|
43
|
-
size: {
|
44
|
-
table: {
|
45
|
-
category: 'Props',
|
46
|
-
type: { summary: '1 ~ 9' },
|
47
|
-
},
|
48
|
-
options: typoSizeOptions,
|
49
|
-
control: { type: 'select' },
|
50
|
-
description: 'Avatar 크기',
|
51
|
-
defaultValue: { summary: '3' },
|
52
|
-
},
|
53
|
-
color: __assign(__assign({}, commonArgTypes.color), { description: 'Avatar 메인 color' }),
|
54
|
-
appearance: __assign(__assign({}, commonArgTypes.appearance), { description: 'Avatar 스타일', table: {
|
55
|
-
category: 'Props',
|
56
|
-
type: {
|
57
|
-
summary: appearanceOptions
|
58
|
-
.filter(function (option) { return option === 'solid' || option === 'soft'; })
|
59
|
-
.join(' | '),
|
60
|
-
},
|
61
|
-
}, options: appearanceOptions.filter(function (option) { return option === 'solid' || option === 'soft'; }) }),
|
62
|
-
fallbackText: {
|
63
|
-
table: {
|
64
|
-
category: 'Props',
|
65
|
-
type: { summary: 'string' },
|
66
|
-
},
|
67
|
-
control: 'text',
|
68
|
-
description: 'Avatar fallback 텍스트',
|
69
|
-
defaultValue: 'FB',
|
70
|
-
},
|
71
|
-
},
|
72
|
-
};
|
73
|
-
export default meta;
|
74
|
-
export var Default = function (_a) {
|
75
|
-
var args = __rest(_a, []);
|
76
|
-
return (<div className="flex space-x-4">
|
77
|
-
<Avatar imagePath="https://images.unsplash.com/photo-1492633423870-43d1cd2775eb?&w=128&h=128&dpr=2&q=80" {...args}/>
|
78
|
-
<Avatar fallbackText="A" {...args}/>
|
79
|
-
</div>);
|
80
|
-
};
|
81
|
-
export var Radius = function (_a) {
|
82
|
-
var args = __rest(_a, []);
|
83
|
-
return (<div className="flex space-x-4">
|
84
|
-
{radiusOptions.map(function (radius) { return (<Avatar key={radius} radius={radius} imagePath="https://images.unsplash.com/photo-1511485977113-f34c92461ad9?ixlib=rb-1.2.1&w=128&h=128&dpr=2&q=80" {...args}/>); })}
|
85
|
-
</div>);
|
86
|
-
};
|
87
|
-
export var Size = function (_a) {
|
88
|
-
var args = __rest(_a, []);
|
89
|
-
return (<div className="flex space-x-4">
|
90
|
-
{typoSizeOptions.map(function (size) { return (<Avatar key={size} size={size} fallbackText="A" {...args}/>); })}
|
91
|
-
</div>);
|
92
|
-
};
|
93
|
-
export var Scaling = function (_a) {
|
94
|
-
var args = __rest(_a, []);
|
95
|
-
return (<div className="flex space-x-4">
|
96
|
-
{scalingOptions.map(function (scaling) { return (<Avatar key={scaling} scaling={scaling} imagePath="https://images.unsplash.com/photo-1502823403499-6ccfcf4fb453?&w=256&h=256&q=70&crop=focalpoint&fp-x=0.5&fp-y=0.3&fp-z=1&fit=crop" {...args}/>); })}
|
97
|
-
</div>);
|
98
|
-
};
|
99
|
-
export var Appearance = function (_a) {
|
100
|
-
var args = __rest(_a, []);
|
101
|
-
return (<div className="flex space-x-4">
|
102
|
-
<Avatar appearance="solid" fallbackText={'A'} {...args}/>
|
103
|
-
<Avatar appearance="soft" fallbackText={'A'} {...args}/>
|
104
|
-
</div>);
|
105
|
-
};
|
@@ -1,133 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { IRadius, IScaling, IWeight } from '../../types';
|
3
|
-
declare const meta: {
|
4
|
-
title: string;
|
5
|
-
component: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("components/Badge").BadgeProps & React.RefAttributes<HTMLDivElement>>;
|
6
|
-
parameters: {
|
7
|
-
layout: string;
|
8
|
-
docs: {
|
9
|
-
description: {
|
10
|
-
component: string;
|
11
|
-
};
|
12
|
-
};
|
13
|
-
};
|
14
|
-
tags: string[];
|
15
|
-
argTypes: {
|
16
|
-
radius: {
|
17
|
-
description: string;
|
18
|
-
table: {
|
19
|
-
category: string;
|
20
|
-
type: {
|
21
|
-
summary: string;
|
22
|
-
};
|
23
|
-
};
|
24
|
-
options: IRadius[];
|
25
|
-
control: {
|
26
|
-
type: string;
|
27
|
-
};
|
28
|
-
defaultValue: {
|
29
|
-
summary: string;
|
30
|
-
};
|
31
|
-
};
|
32
|
-
size: {
|
33
|
-
table: {
|
34
|
-
category: string;
|
35
|
-
type: {
|
36
|
-
summary: string;
|
37
|
-
};
|
38
|
-
};
|
39
|
-
options: import("../../types").ISize[];
|
40
|
-
description: string;
|
41
|
-
control: {
|
42
|
-
type: string;
|
43
|
-
};
|
44
|
-
defaultValue: {
|
45
|
-
summary: string;
|
46
|
-
};
|
47
|
-
};
|
48
|
-
scaling: {
|
49
|
-
description: string;
|
50
|
-
table: {
|
51
|
-
category: string;
|
52
|
-
type: {
|
53
|
-
summary: string;
|
54
|
-
};
|
55
|
-
};
|
56
|
-
control: {
|
57
|
-
type: string;
|
58
|
-
};
|
59
|
-
options: IScaling[];
|
60
|
-
defaultValue: {
|
61
|
-
summary: string;
|
62
|
-
};
|
63
|
-
};
|
64
|
-
weight: {
|
65
|
-
description: string;
|
66
|
-
table: {
|
67
|
-
category: string;
|
68
|
-
type: {
|
69
|
-
summary: string;
|
70
|
-
};
|
71
|
-
};
|
72
|
-
options: IWeight[];
|
73
|
-
control: {
|
74
|
-
type: string;
|
75
|
-
};
|
76
|
-
defaultValue: {
|
77
|
-
summary: string;
|
78
|
-
};
|
79
|
-
};
|
80
|
-
color: {
|
81
|
-
description: string;
|
82
|
-
table: {
|
83
|
-
category: string;
|
84
|
-
type: {
|
85
|
-
summary: string;
|
86
|
-
};
|
87
|
-
};
|
88
|
-
options: import("../../types").IColor[];
|
89
|
-
control: {
|
90
|
-
type: string;
|
91
|
-
};
|
92
|
-
defaultValue: {
|
93
|
-
summary: string;
|
94
|
-
};
|
95
|
-
};
|
96
|
-
appearance: {
|
97
|
-
table: {
|
98
|
-
category: string;
|
99
|
-
type: {
|
100
|
-
summary: string;
|
101
|
-
};
|
102
|
-
};
|
103
|
-
description: string;
|
104
|
-
options: import("../../types").IAppearance[];
|
105
|
-
control: {
|
106
|
-
type: string;
|
107
|
-
};
|
108
|
-
defaultValue: {
|
109
|
-
summary: string;
|
110
|
-
};
|
111
|
-
};
|
112
|
-
};
|
113
|
-
args: {};
|
114
|
-
};
|
115
|
-
export default meta;
|
116
|
-
export declare const Default: ({ ...args }: {
|
117
|
-
[x: string]: any;
|
118
|
-
}) => React.JSX.Element;
|
119
|
-
export declare const Radius: ({ ...args }: {
|
120
|
-
[x: string]: any;
|
121
|
-
}) => React.JSX.Element;
|
122
|
-
export declare const Size: ({ ...args }: {
|
123
|
-
[x: string]: any;
|
124
|
-
}) => React.JSX.Element;
|
125
|
-
export declare const Scaling: ({ ...args }: {
|
126
|
-
[x: string]: any;
|
127
|
-
}) => React.JSX.Element;
|
128
|
-
export declare const Weight: ({ ...args }: {
|
129
|
-
[x: string]: any;
|
130
|
-
}) => React.JSX.Element;
|
131
|
-
export declare const Appearance: ({ ...args }: {
|
132
|
-
[x: string]: any;
|
133
|
-
}) => React.JSX.Element;
|
@@ -1,130 +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 React from 'react';
|
24
|
-
import Badge from 'components/Badge';
|
25
|
-
import { radiusOptions, commonArgTypes, appearanceOptions, sizeOptions, scalingOptions, } from '../../../src/constants';
|
26
|
-
var meta = {
|
27
|
-
title: 'Component/Badge',
|
28
|
-
component: Badge,
|
29
|
-
parameters: {
|
30
|
-
layout: 'centered',
|
31
|
-
docs: {
|
32
|
-
description: {
|
33
|
-
component: '빠른 인지와 탐색을 돕기 위해 컴포넌트 근처에 표시되는 작은 문자 또는 숫자 데이터',
|
34
|
-
},
|
35
|
-
},
|
36
|
-
},
|
37
|
-
tags: ['autodocs'],
|
38
|
-
argTypes: {
|
39
|
-
radius: __assign(__assign({}, commonArgTypes.radius), { description: 'Badge 둥굴기' }),
|
40
|
-
size: __assign(__assign({}, commonArgTypes.size), { table: {
|
41
|
-
category: 'Props',
|
42
|
-
type: {
|
43
|
-
summary: sizeOptions
|
44
|
-
.filter(function (option) { return option !== 'x-small' && option !== 'x-large'; })
|
45
|
-
.join(' | '),
|
46
|
-
},
|
47
|
-
}, options: sizeOptions.filter(function (option) { return option !== 'x-small' && option !== 'x-large'; }), description: 'Badge 크기' }),
|
48
|
-
scaling: __assign(__assign({}, commonArgTypes.scaling), { description: 'Badge 비율' }),
|
49
|
-
weight: __assign(__assign({}, commonArgTypes.weight), { description: 'Badge 폰트 두께' }),
|
50
|
-
color: __assign(__assign({}, commonArgTypes.color), { description: 'Badge 매인색' }),
|
51
|
-
appearance: __assign(__assign({}, commonArgTypes.appearance), { table: {
|
52
|
-
category: 'Props',
|
53
|
-
type: {
|
54
|
-
summary: appearanceOptions
|
55
|
-
.filter(function (option) { return option !== 'classic' && option !== 'ghost'; })
|
56
|
-
.join(' | '),
|
57
|
-
},
|
58
|
-
}, description: 'Badge 스타일', options: appearanceOptions.filter(function (option) { return option !== 'classic' && option !== 'ghost'; }) }),
|
59
|
-
},
|
60
|
-
args: {},
|
61
|
-
};
|
62
|
-
export default meta;
|
63
|
-
export var Default = function (_a) {
|
64
|
-
var args = __rest(_a, []);
|
65
|
-
return <Badge {...args}>Badge</Badge>;
|
66
|
-
};
|
67
|
-
export var Radius = function (_a) {
|
68
|
-
var args = __rest(_a, []);
|
69
|
-
return (<div className="flex gap-3">
|
70
|
-
{radiusOptions.map(function (radius) { return (<Badge key={radius} {...args} radius={radius}>
|
71
|
-
{radius}
|
72
|
-
</Badge>); })}
|
73
|
-
</div>);
|
74
|
-
};
|
75
|
-
export var Size = function (_a) {
|
76
|
-
var args = __rest(_a, []);
|
77
|
-
return (<div className="flex items-center gap-3">
|
78
|
-
<Badge {...args} size={'small'}>
|
79
|
-
small
|
80
|
-
</Badge>
|
81
|
-
<Badge {...args} size={'medium'}>
|
82
|
-
medium
|
83
|
-
</Badge>
|
84
|
-
<Badge {...args} size={'large'}>
|
85
|
-
large
|
86
|
-
</Badge>
|
87
|
-
</div>);
|
88
|
-
};
|
89
|
-
export var Scaling = function (_a) {
|
90
|
-
var args = __rest(_a, []);
|
91
|
-
return (<div className="flex items-center gap-3">
|
92
|
-
{scalingOptions.map(function (scaling) { return (<Badge key={scaling} {...args} scaling={scaling}>
|
93
|
-
{scaling}
|
94
|
-
</Badge>); })}
|
95
|
-
</div>);
|
96
|
-
};
|
97
|
-
export var Weight = function (_a) {
|
98
|
-
var args = __rest(_a, []);
|
99
|
-
return (<div className="flex items-center gap-3">
|
100
|
-
<Badge {...args} weight="regular">
|
101
|
-
regular
|
102
|
-
</Badge>
|
103
|
-
<Badge {...args} weight="medium">
|
104
|
-
medium
|
105
|
-
</Badge>
|
106
|
-
<Badge {...args} weight="semibold">
|
107
|
-
semibold
|
108
|
-
</Badge>
|
109
|
-
<Badge {...args} weight="bold">
|
110
|
-
bold
|
111
|
-
</Badge>
|
112
|
-
</div>);
|
113
|
-
};
|
114
|
-
export var Appearance = function (_a) {
|
115
|
-
var args = __rest(_a, []);
|
116
|
-
return (<div className="flex items-center gap-3">
|
117
|
-
<Badge {...args} appearance="solid">
|
118
|
-
solid
|
119
|
-
</Badge>
|
120
|
-
<Badge {...args} appearance="soft">
|
121
|
-
soft
|
122
|
-
</Badge>
|
123
|
-
<Badge {...args} appearance="surface">
|
124
|
-
surface
|
125
|
-
</Badge>
|
126
|
-
<Badge {...args} appearance="outline">
|
127
|
-
outline
|
128
|
-
</Badge>
|
129
|
-
</div>);
|
130
|
-
};
|