@lotte-innovate/ui-component-test 0.0.13 → 0.0.14
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/app/layout.d.ts +1 -1
- package/dist/app/{layout.js → layout.jsx} +3 -2
- package/dist/app/page.d.ts +2 -1
- package/dist/app/page.jsx +9 -0
- package/dist/app/template/colorPicker.d.ts +2 -1
- package/dist/app/template/colorPicker.jsx +19 -0
- package/dist/app/template/theme.d.ts +2 -2
- package/dist/app/template/{theme.js → theme.jsx} +8 -2
- 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/dist/stories/Welcome.d.ts +2 -1
- package/dist/stories/Welcome.jsx +48 -0
- package/dist/stories/accordion/Accordion.stories.d.ts +1 -1
- package/dist/stories/accordion/{Accordion.stories.js → Accordion.stories.jsx} +20 -2
- package/dist/stories/alert-dialog/AlertDialog.stories.d.ts +1 -1
- package/dist/stories/alert-dialog/{AlertDialog.stories.js → AlertDialog.stories.jsx} +15 -2
- package/dist/stories/aspect-ratio/AspectRatio.stories.d.ts +3 -3
- package/dist/stories/aspect-ratio/AspectRatio.stories.jsx +106 -0
- package/dist/stories/avatar/Avatar.stories.d.ts +5 -5
- package/dist/stories/avatar/{Avatar.stories.js → Avatar.stories.jsx} +17 -6
- package/dist/stories/badge/Badge.stories.d.ts +6 -6
- package/dist/stories/badge/{Badge.stories.js → Badge.stories.jsx} +51 -7
- package/dist/stories/bubble-chart/BubbleChart.stories.d.ts +5 -4
- package/dist/stories/bubble-chart/{BubbleChart.stories.js → BubbleChart.stories.jsx} +12 -4
- package/dist/stories/button/Button.stories.d.ts +7 -7
- package/dist/stories/button/{Button.stories.js → Button.stories.jsx} +41 -8
- package/dist/stories/button/IconButton.stories.d.ts +4 -4
- package/dist/stories/button/{IconButton.stories.js → IconButton.stories.jsx} +18 -5
- package/dist/stories/callout/Callout.stories.d.ts +7 -7
- package/dist/stories/callout/Callout.stories.jsx +205 -0
- package/dist/stories/card/Card.stories.d.ts +5 -5
- package/dist/stories/card/{Card.stories.js → Card.stories.jsx} +56 -6
- package/dist/stories/checkbox/Checkbox.stories.d.ts +6 -6
- package/dist/stories/checkbox/{Checkbox.stories.js → Checkbox.stories.jsx} +63 -7
- package/dist/stories/checkbox/CheckboxCard.stories.d.ts +5 -5
- package/dist/stories/checkbox/{CheckboxCard.stories.js → CheckboxCard.stories.jsx} +41 -6
- package/dist/stories/checkbox/CheckboxGroup.stories.d.ts +3 -3
- package/dist/stories/checkbox/{CheckboxGroup.stories.js → CheckboxGroup.stories.jsx} +76 -4
- package/dist/stories/context-menu/ContextMenu.stories.d.ts +4 -4
- package/dist/stories/context-menu/{ContextMenu.stories.js → ContextMenu.stories.jsx} +74 -5
- package/dist/stories/data-list/DataList.stories.d.ts +4 -4
- package/dist/stories/data-list/DataList.stories.jsx +185 -0
- package/dist/stories/dialog/Dialog.stories.d.ts +1 -1
- package/dist/stories/dialog/{Dialog.stories.js → Dialog.stories.jsx} +25 -2
- package/dist/stories/doughnut-chart/DoughnutChart.stories.d.ts +5 -4
- package/dist/stories/doughnut-chart/{DoughnutChart.stories.js → DoughnutChart.stories.jsx} +12 -4
- package/dist/stories/dropdown-menu/DropdownMenu.stories.d.ts +4 -4
- package/dist/stories/dropdown-menu/DropdownMenu.stories.jsx +170 -0
- package/dist/stories/header/Header.stories.d.ts +6 -6
- package/dist/stories/header/{Header.stories.js → Header.stories.jsx} +26 -7
- package/dist/stories/hover-card/HoverCard.stories.d.ts +2 -2
- package/dist/stories/hover-card/{HoverCard.stories.js → HoverCard.stories.jsx} +30 -3
- package/dist/stories/inset/Inset.stories.d.ts +2 -2
- package/dist/stories/inset/{Inset.stories.js → Inset.stories.jsx} +27 -12
- package/dist/stories/label/Label.stories.d.ts +4 -4
- package/dist/stories/label/{Label.stories.js → Label.stories.jsx} +26 -5
- package/dist/stories/menubar/Menubar.stories.d.ts +1 -1
- package/dist/stories/menubar/{Menubar.stories.js → Menubar.stories.jsx} +45 -8
- package/dist/stories/navigation-menu/NavigationMenu.stories.d.ts +2 -2
- package/dist/stories/navigation-menu/{NavigationMenu.stories.js → NavigationMenu.stories.jsx} +68 -3
- package/dist/stories/pie-chart/PieChart.stories.d.ts +6 -5
- package/dist/stories/pie-chart/{PieChart.stories.js → PieChart.stories.jsx} +32 -13
- package/dist/stories/popover/Popover.stories.d.ts +2 -2
- package/dist/stories/popover/{Popover.stories.js → Popover.stories.jsx} +42 -9
- package/dist/stories/progress/Progress.stories.d.ts +4 -4
- package/dist/stories/progress/{Progress.stories.js → Progress.stories.jsx} +11 -6
- package/dist/stories/radar-chart/RadarChart.stories.d.ts +6 -5
- package/dist/stories/radar-chart/{RadarChart.stories.js → RadarChart.stories.jsx} +4 -5
- package/dist/stories/radio/Radio.stories.d.ts +3 -3
- package/dist/stories/radio/{Radio.stories.js → Radio.stories.jsx} +14 -4
- package/dist/stories/radio/RadioCards.stories.d.ts +4 -4
- package/dist/stories/radio/{RadioCards.stories.js → RadioCards.stories.jsx} +64 -5
- package/dist/stories/radio/RadioGroup.stories.d.ts +4 -4
- package/dist/stories/radio/{RadioGroup.stories.js → RadioGroup.stories.jsx} +59 -5
- package/dist/stories/scroll-area/ScrollArea.stories.d.ts +2 -2
- package/dist/stories/scroll-area/ScrollArea.stories.jsx +123 -0
- package/dist/stories/segmented-control/SegmentedControl.stories.d.ts +4 -4
- package/dist/stories/segmented-control/{SegmentedControl.stories.js → SegmentedControl.stories.jsx} +26 -5
- package/dist/stories/select/Select.stories.d.ts +5 -5
- package/dist/stories/select/{Select.stories.js → Select.stories.jsx} +67 -6
- package/dist/stories/separator/Separator.stories.d.ts +4 -4
- package/dist/stories/separator/{Separator.stories.js → Separator.stories.jsx} +29 -5
- package/dist/stories/skeleton/Skeleton.stories.d.ts +5 -5
- package/dist/stories/skeleton/{Skeleton.stories.js → Skeleton.stories.jsx} +33 -6
- package/dist/stories/slider/Slider.stories.d.ts +4 -4
- package/dist/stories/slider/{Slider.stories.js → Slider.stories.jsx} +16 -5
- package/dist/stories/spinner/Spinner.stories.d.ts +5 -5
- package/dist/stories/spinner/{Spinner.stories.js → Spinner.stories.jsx} +31 -6
- package/dist/stories/switch/Switch.stories.d.ts +4 -4
- package/dist/stories/switch/{Switch.stories.js → Switch.stories.jsx} +16 -5
- package/dist/stories/tab-nav/TabNav.stories.d.ts +1 -1
- package/dist/stories/tab-nav/{TabNav.stories.js → TabNav.stories.jsx} +11 -2
- package/dist/stories/table/Table.stories.d.ts +1 -1
- package/dist/stories/table/{Table.stories.js → Table.stories.jsx} +29 -2
- package/dist/stories/tabs/Tabs.stories.d.ts +1 -1
- package/dist/stories/tabs/{Tabs.stories.js → Tabs.stories.jsx} +19 -2
- package/dist/stories/text/Text.stories.d.ts +5 -5
- package/dist/stories/text/{Text.stories.js → Text.stories.jsx} +21 -6
- package/dist/stories/textArea/TextArea.stories.d.ts +5 -5
- package/dist/stories/textArea/{TextArea.stories.js → TextArea.stories.jsx} +22 -6
- package/dist/stories/textfield/TextField.stories.d.ts +5 -5
- package/dist/stories/textfield/{TextField.stories.js → TextField.stories.jsx} +38 -6
- package/dist/stories/toast/Toast.stories.d.ts +3 -3
- package/dist/stories/toast/{Toast.stories.js → Toast.stories.jsx} +22 -4
- package/dist/stories/toggle/Toggle.stories.d.ts +5 -5
- package/dist/stories/toggle/{Toggle.stories.js → Toggle.stories.jsx} +23 -6
- package/dist/stories/toggle/ToggleGroup.stories.d.ts +3 -3
- package/dist/stories/toggle/{ToggleGroup.stories.js → ToggleGroup.stories.jsx} +39 -6
- package/dist/stories/tooltip/Tooltip.stories.d.ts +3 -3
- package/dist/stories/tooltip/{Tooltip.stories.js → Tooltip.stories.jsx} +17 -4
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/app/page.js +0 -6
- package/dist/app/template/colorPicker.js +0 -14
- package/dist/components/NavigationMenu/NavigationMenuIndicator.js +0 -31
- package/dist/stories/Welcome.js +0 -30
- package/dist/stories/aspect-ratio/AspectRatio.stories.js +0 -78
- package/dist/stories/callout/Callout.stories.js +0 -104
- package/dist/stories/data-list/DataList.stories.js +0 -87
- package/dist/stories/dropdown-menu/DropdownMenu.stories.js +0 -75
- package/dist/stories/scroll-area/ScrollArea.stories.js +0 -63
@@ -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 Checkbox from 'components/Checkbox';
|
25
24
|
import { radiusOptions, scalingOptions, commonArgTypes, appearanceOptions, sizeOptions, } from '../../../src/constants';
|
26
25
|
import { Text } from 'Typography/Text';
|
@@ -86,25 +85,82 @@ var meta = {
|
|
86
85
|
export default meta;
|
87
86
|
export var Default = function (_a) {
|
88
87
|
var args = __rest(_a, []);
|
89
|
-
return (
|
88
|
+
return (<Checkbox id="checkbox" {...args} defaultChecked>
|
89
|
+
체크박스
|
90
|
+
</Checkbox>);
|
90
91
|
};
|
91
92
|
export var Types = function (_a) {
|
92
93
|
var args = __rest(_a, []);
|
93
|
-
return (
|
94
|
+
return (<div className="flex flex-col space-y-3">
|
95
|
+
<Checkbox id="defaultCheckbox" {...args} defaultChecked>
|
96
|
+
default
|
97
|
+
</Checkbox>
|
98
|
+
<Checkbox id="disabledCheckedCheckbox" {...args} disabled defaultChecked>
|
99
|
+
disabled
|
100
|
+
</Checkbox>
|
101
|
+
<Checkbox id="indeterminate" {...args} indeterminate defaultChecked>
|
102
|
+
indeterminate
|
103
|
+
</Checkbox>
|
104
|
+
</div>);
|
94
105
|
};
|
95
106
|
export var Size = function (_a) {
|
96
107
|
var args = __rest(_a, []);
|
97
|
-
return (
|
108
|
+
return (<div className="flex space-x-5">
|
109
|
+
<Checkbox id="size-s" {...args} size="small" defaultChecked>
|
110
|
+
small
|
111
|
+
</Checkbox>
|
112
|
+
<Checkbox id="size-m" {...args} size="medium" defaultChecked>
|
113
|
+
medium
|
114
|
+
</Checkbox>
|
115
|
+
<Checkbox id="size-l" {...args} size="large" defaultChecked>
|
116
|
+
large
|
117
|
+
</Checkbox>
|
118
|
+
</div>);
|
98
119
|
};
|
99
120
|
export var Scaling = function (_a) {
|
100
121
|
var args = __rest(_a, []);
|
101
|
-
return (
|
122
|
+
return (<div className="flex space-x-5">
|
123
|
+
{scalingOptions.map(function (scaling) { return (<Checkbox key={scaling} id={scaling} {...args} scaling={scaling} defaultChecked>
|
124
|
+
{scaling}
|
125
|
+
</Checkbox>); })}
|
126
|
+
</div>);
|
102
127
|
};
|
103
128
|
export var Radius = function (_a) {
|
104
129
|
var args = __rest(_a, []);
|
105
|
-
return (
|
130
|
+
return (<div className="flex space-x-5">
|
131
|
+
{radiusOptions.map(function (radius) { return (<Checkbox key={radius} id={radius} {...args} radius={radius} defaultChecked>
|
132
|
+
{radius}
|
133
|
+
</Checkbox>); })}
|
134
|
+
</div>);
|
106
135
|
};
|
107
136
|
export var Appearance = function (_a) {
|
108
137
|
var args = __rest(_a, []);
|
109
|
-
return (
|
138
|
+
return (<div className="flex flex-col space-y-3">
|
139
|
+
<div className="flex space-x-3">
|
140
|
+
<div className="w-[60px]">
|
141
|
+
<Text>Surface</Text>
|
142
|
+
</div>
|
143
|
+
<Checkbox id={'uncheckedSurface'} {...args} appearance={'surface'}/>
|
144
|
+
<Checkbox id={'checkedSurface'} {...args} appearance={'surface'} defaultChecked/>
|
145
|
+
<Checkbox id={'checkedIndeterminate'} {...args} appearance={'surface'} indeterminate defaultChecked/>
|
146
|
+
</div>
|
147
|
+
|
148
|
+
<div className="flex space-x-3">
|
149
|
+
<div className="w-[60px]">
|
150
|
+
<Text>Classic</Text>
|
151
|
+
</div>
|
152
|
+
<Checkbox id={'uncheckedClassic'} {...args} appearance={'classic'}/>
|
153
|
+
<Checkbox id={'checkedClassic'} {...args} appearance={'classic'} defaultChecked/>
|
154
|
+
<Checkbox id={'indeterminateClassic'} {...args} appearance={'classic'} indeterminate defaultChecked/>
|
155
|
+
</div>
|
156
|
+
|
157
|
+
<div className="flex space-x-3">
|
158
|
+
<div className="w-[60px]">
|
159
|
+
<Text>Soft</Text>
|
160
|
+
</div>
|
161
|
+
<Checkbox id={'uncheckedSoft'} {...args} appearance={'soft'}/>
|
162
|
+
<Checkbox id={'checkedSoft'} {...args} appearance={'soft'} defaultChecked/>
|
163
|
+
<Checkbox id={'indeterminateSoft'} {...args} appearance={'soft'} indeterminate defaultChecked/>
|
164
|
+
</div>
|
165
|
+
</div>);
|
110
166
|
};
|
@@ -114,16 +114,16 @@ declare const meta: {
|
|
114
114
|
export default meta;
|
115
115
|
export declare const Default: ({ ...args }: {
|
116
116
|
[x: string]: any;
|
117
|
-
}) => import("react
|
117
|
+
}) => import("react").JSX.Element;
|
118
118
|
export declare const Scaling: ({ ...args }: {
|
119
119
|
[x: string]: any;
|
120
|
-
}) => import("react
|
120
|
+
}) => import("react").JSX.Element;
|
121
121
|
export declare const Size: ({ ...args }: {
|
122
122
|
[x: string]: any;
|
123
|
-
}) => import("react
|
123
|
+
}) => import("react").JSX.Element;
|
124
124
|
export declare const Radius: ({ ...args }: {
|
125
125
|
[x: string]: any;
|
126
|
-
}) => import("react
|
126
|
+
}) => import("react").JSX.Element;
|
127
127
|
export declare const Appearance: ({ ...args }: {
|
128
128
|
[x: string]: any;
|
129
|
-
}) => import("react
|
129
|
+
}) => import("react").JSX.Element;
|
@@ -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 { scalingOptions, commonArgTypes, appearanceOptions, radiusOptions, sizeOptions, } from '../../../src/constants';
|
25
24
|
import CheckboxCard from 'components/CheckboxCard';
|
26
25
|
var meta = {
|
@@ -70,21 +69,57 @@ var meta = {
|
|
70
69
|
export default meta;
|
71
70
|
export var Default = function (_a) {
|
72
71
|
var args = __rest(_a, []);
|
73
|
-
return (
|
72
|
+
return (<div className="flex flex-col space-y-3">
|
73
|
+
<CheckboxCard id="defaultCheckboxCard" {...args} defaultChecked>
|
74
|
+
default
|
75
|
+
</CheckboxCard>
|
76
|
+
<CheckboxCard id="disabledCheckboxCard" {...args} disabled defaultChecked>
|
77
|
+
disabled
|
78
|
+
</CheckboxCard>
|
79
|
+
</div>);
|
74
80
|
};
|
75
81
|
export var Scaling = function (_a) {
|
76
82
|
var args = __rest(_a, []);
|
77
|
-
return (
|
83
|
+
return (<div className="flex flex-col space-y-3">
|
84
|
+
{scalingOptions.map(function (scaling) { return (<div key={scaling}>
|
85
|
+
<CheckboxCard id={scaling} {...args} scaling={scaling}>
|
86
|
+
{scaling}
|
87
|
+
</CheckboxCard>
|
88
|
+
</div>); })}
|
89
|
+
</div>);
|
78
90
|
};
|
79
91
|
export var Size = function (_a) {
|
80
92
|
var args = __rest(_a, []);
|
81
|
-
return (
|
93
|
+
return (<div className="flex flex-col space-y-3">
|
94
|
+
<CheckboxCard id="size-s" {...args} size="small" defaultChecked>
|
95
|
+
small
|
96
|
+
</CheckboxCard>
|
97
|
+
<CheckboxCard id="size-m" {...args} size="medium" defaultChecked>
|
98
|
+
medium
|
99
|
+
</CheckboxCard>
|
100
|
+
<CheckboxCard id="size-l" {...args} size="large" defaultChecked>
|
101
|
+
large
|
102
|
+
</CheckboxCard>
|
103
|
+
</div>);
|
82
104
|
};
|
83
105
|
export var Radius = function (_a) {
|
84
106
|
var args = __rest(_a, []);
|
85
|
-
return (
|
107
|
+
return (<div className="flex flex-col space-y-3">
|
108
|
+
{radiusOptions.map(function (radius) { return (<div key={radius}>
|
109
|
+
<CheckboxCard id={radius} {...args} radius={radius}>
|
110
|
+
{radius}
|
111
|
+
</CheckboxCard>
|
112
|
+
</div>); })}
|
113
|
+
</div>);
|
86
114
|
};
|
87
115
|
export var Appearance = function (_a) {
|
88
116
|
var args = __rest(_a, []);
|
89
|
-
return (
|
117
|
+
return (<div className="flex space-x-4">
|
118
|
+
<CheckboxCard id={'classic'} {...args} appearance={'classic'}>
|
119
|
+
classic
|
120
|
+
</CheckboxCard>
|
121
|
+
<CheckboxCard id={'surface'} {...args} appearance={'surface'}>
|
122
|
+
surface
|
123
|
+
</CheckboxCard>
|
124
|
+
</div>);
|
90
125
|
};
|
@@ -82,10 +82,10 @@ declare const meta: {
|
|
82
82
|
export default meta;
|
83
83
|
export declare const Default: ({ ...args }: {
|
84
84
|
[x: string]: any;
|
85
|
-
}) => import("react
|
85
|
+
}) => import("react").JSX.Element;
|
86
86
|
export declare const Size: ({ ...args }: {
|
87
87
|
[x: string]: any;
|
88
|
-
}) => import("react
|
88
|
+
}) => import("react").JSX.Element;
|
89
89
|
export declare const Radius: ({ ...args }: {
|
90
90
|
[x: string]: any;
|
91
|
-
}) => import("react
|
91
|
+
}) => import("react").JSX.Element;
|
@@ -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 { commonArgTypes, appearanceOptions, sizeOptions } from '../../../src/constants';
|
25
24
|
import { CheckboxGroupItem, CheckboxGroup } from 'components/CheckboxGroup';
|
26
25
|
var meta = {
|
@@ -60,13 +59,86 @@ var meta = {
|
|
60
59
|
export default meta;
|
61
60
|
export var Default = function (_a) {
|
62
61
|
var args = __rest(_a, []);
|
63
|
-
return (
|
62
|
+
return (<CheckboxGroup defaultValue={['apple']}>
|
63
|
+
<CheckboxGroupItem id={'apple'} {...args}>
|
64
|
+
사과🍎
|
65
|
+
</CheckboxGroupItem>
|
66
|
+
<CheckboxGroupItem id={'orange'} {...args}>
|
67
|
+
오렌지🍊
|
68
|
+
</CheckboxGroupItem>
|
69
|
+
<CheckboxGroupItem id={'banana'} {...args}>
|
70
|
+
바나나🍌
|
71
|
+
</CheckboxGroupItem>
|
72
|
+
</CheckboxGroup>);
|
64
73
|
};
|
65
74
|
export var Size = function (_a) {
|
66
75
|
var args = __rest(_a, []);
|
67
|
-
return (
|
76
|
+
return (<div className="flex flex-col space-y-6">
|
77
|
+
<CheckboxGroup size={'small'} defaultValue={['size-s1']}>
|
78
|
+
<CheckboxGroupItem id="size-s1" {...args}>
|
79
|
+
Agree to Terms and Conditions
|
80
|
+
</CheckboxGroupItem>
|
81
|
+
<CheckboxGroupItem id="size-s2" {...args}>
|
82
|
+
Agree to Privacy Policy
|
83
|
+
</CheckboxGroupItem>
|
84
|
+
</CheckboxGroup>
|
85
|
+
|
86
|
+
<CheckboxGroup size={'medium'} defaultValue={['size-m1']}>
|
87
|
+
<CheckboxGroupItem id="size-m1" {...args}>
|
88
|
+
Agree to Terms and Conditions
|
89
|
+
</CheckboxGroupItem>
|
90
|
+
<CheckboxGroupItem id="size-m2" {...args}>
|
91
|
+
Agree to Privacy Policy
|
92
|
+
</CheckboxGroupItem>
|
93
|
+
</CheckboxGroup>
|
94
|
+
|
95
|
+
<CheckboxGroup size={'large'} defaultValue={['size-l1']}>
|
96
|
+
<CheckboxGroupItem id="size-l1" {...args}>
|
97
|
+
Agree to Terms and Conditions
|
98
|
+
</CheckboxGroupItem>
|
99
|
+
<CheckboxGroupItem id="size-l2" {...args}>
|
100
|
+
Agree to Privacy Policy
|
101
|
+
</CheckboxGroupItem>
|
102
|
+
</CheckboxGroup>
|
103
|
+
</div>);
|
68
104
|
};
|
69
105
|
export var Radius = function (_a) {
|
70
106
|
var args = __rest(_a, []);
|
71
|
-
return (
|
107
|
+
return (<div className="flex flex-col space-y-6">
|
108
|
+
<CheckboxGroup defaultValue={['radius-none-1']} radius={'none'}>
|
109
|
+
<CheckboxGroupItem id="radius-none-1" {...args}>
|
110
|
+
체크박스1
|
111
|
+
</CheckboxGroupItem>
|
112
|
+
<CheckboxGroupItem id="radius-none-2" {...args}>
|
113
|
+
체크박스2
|
114
|
+
</CheckboxGroupItem>
|
115
|
+
</CheckboxGroup>
|
116
|
+
|
117
|
+
<CheckboxGroup defaultValue={['radius-small-1']} radius={'small'}>
|
118
|
+
<CheckboxGroupItem id="radius-small-1" {...args}>
|
119
|
+
체크박스1
|
120
|
+
</CheckboxGroupItem>
|
121
|
+
<CheckboxGroupItem id="radius-small-2" {...args}>
|
122
|
+
체크박스2
|
123
|
+
</CheckboxGroupItem>
|
124
|
+
</CheckboxGroup>
|
125
|
+
|
126
|
+
<CheckboxGroup defaultValue={['radius-medium-1']} radius={'medium'}>
|
127
|
+
<CheckboxGroupItem id="radius-medium-1" {...args}>
|
128
|
+
체크박스1
|
129
|
+
</CheckboxGroupItem>
|
130
|
+
<CheckboxGroupItem id="radius-medium-2" {...args}>
|
131
|
+
체크박스2
|
132
|
+
</CheckboxGroupItem>
|
133
|
+
</CheckboxGroup>
|
134
|
+
|
135
|
+
<CheckboxGroup defaultValue={['radius-large-1']} radius={'large'}>
|
136
|
+
<CheckboxGroupItem id="radius-large-1" {...args}>
|
137
|
+
체크박스1
|
138
|
+
</CheckboxGroupItem>
|
139
|
+
<CheckboxGroupItem id="radius-large-2" {...args}>
|
140
|
+
체크박스2
|
141
|
+
</CheckboxGroupItem>
|
142
|
+
</CheckboxGroup>
|
143
|
+
</div>);
|
72
144
|
};
|
@@ -101,13 +101,13 @@ declare const meta: {
|
|
101
101
|
export default meta;
|
102
102
|
export declare const Default: ({ ...args }: {
|
103
103
|
[x: string]: any;
|
104
|
-
}) => import("react
|
104
|
+
}) => import("react").JSX.Element;
|
105
105
|
export declare const Radius: ({ ...args }: {
|
106
106
|
[x: string]: any;
|
107
|
-
}) => import("react
|
107
|
+
}) => import("react").JSX.Element;
|
108
108
|
export declare const Size: ({ ...args }: {
|
109
109
|
[x: string]: any;
|
110
|
-
}) => import("react
|
110
|
+
}) => import("react").JSX.Element;
|
111
111
|
export declare const Appearance: ({ ...args }: {
|
112
112
|
[x: string]: any;
|
113
|
-
}) => import("react
|
113
|
+
}) => import("react").JSX.Element;
|
@@ -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 { radiusOptions, commonArgTypes, sizeOptions, appearanceOptions } from '../../constants';
|
25
24
|
import { ContextMenuContent, ContextMenu, ContextMenuTrigger, ContextMenuLabel, ContextMenuItem, ContextMenuCheckboxItem, ContextMenuGroup, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuSubTrigger, ContextMenuSubContent, } from 'components/ContextMenu';
|
26
25
|
import { Text } from 'Typography/Text';
|
@@ -70,17 +69,87 @@ var meta = {
|
|
70
69
|
export default meta;
|
71
70
|
export var Default = function (_a) {
|
72
71
|
var args = __rest(_a, []);
|
73
|
-
return (
|
72
|
+
return (<ContextMenu {...args}>
|
73
|
+
<ContextMenuTrigger>
|
74
|
+
<Text>Right-click here.</Text>
|
75
|
+
</ContextMenuTrigger>
|
76
|
+
<ContextMenuContent>
|
77
|
+
<ContextMenuLabel>라벨</ContextMenuLabel>
|
78
|
+
<ContextMenuItem shortcut="⌘ T">기본 아이템</ContextMenuItem>
|
79
|
+
<ContextMenuItem disabled>사용불가 아이템</ContextMenuItem>
|
80
|
+
<ContextMenuSeparator />
|
81
|
+
<ContextMenuGroup>
|
82
|
+
<ContextMenuItem>그룹 아이템1</ContextMenuItem>
|
83
|
+
<ContextMenuItem>그룹 아이템2</ContextMenuItem>
|
84
|
+
</ContextMenuGroup>
|
85
|
+
<ContextMenuSeparator />
|
86
|
+
<ContextMenuCheckboxItem checked>checked 아이템</ContextMenuCheckboxItem>
|
87
|
+
<ContextMenuCheckboxItem checked={false}>unchecked 아이템</ContextMenuCheckboxItem>
|
88
|
+
<ContextMenuSeparator />
|
89
|
+
<ContextMenuRadioGroup value={'apple'}>
|
90
|
+
<ContextMenuRadioItem value={'apple'}>라디오 아이템1</ContextMenuRadioItem>
|
91
|
+
<ContextMenuRadioItem value={'banana'}>라디오 아이템2</ContextMenuRadioItem>
|
92
|
+
</ContextMenuRadioGroup>
|
93
|
+
<ContextMenuSeparator />
|
94
|
+
<ContextMenuSubTrigger>
|
95
|
+
More Menu{' '}
|
96
|
+
<ContextMenuSubContent>
|
97
|
+
<ContextMenuItem>서브 아이템1</ContextMenuItem>
|
98
|
+
<ContextMenuItem>서브 아이템2</ContextMenuItem>
|
99
|
+
</ContextMenuSubContent>
|
100
|
+
</ContextMenuSubTrigger>
|
101
|
+
</ContextMenuContent>
|
102
|
+
</ContextMenu>);
|
74
103
|
};
|
75
104
|
export var Radius = function (_a) {
|
76
105
|
var args = __rest(_a, []);
|
77
|
-
return (
|
106
|
+
return (<div className="flex space-x-2">
|
107
|
+
{radiusOptions.map(function (radius) { return (<ContextMenu key={radius} radius={radius} {...args}>
|
108
|
+
<ContextMenuTrigger className="w-[100px]">{radius}</ContextMenuTrigger>
|
109
|
+
<ContextMenuContent>
|
110
|
+
<ContextMenuItem>메뉴1</ContextMenuItem>
|
111
|
+
<ContextMenuItem>메뉴2</ContextMenuItem>
|
112
|
+
</ContextMenuContent>
|
113
|
+
</ContextMenu>); })}
|
114
|
+
</div>);
|
78
115
|
};
|
79
116
|
export var Size = function (_a) {
|
80
117
|
var args = __rest(_a, []);
|
81
|
-
return (
|
118
|
+
return (<div className="flex space-x-2">
|
119
|
+
<ContextMenu size={'small'} {...args}>
|
120
|
+
<ContextMenuTrigger className="w-[100px]">small</ContextMenuTrigger>
|
121
|
+
<ContextMenuContent>
|
122
|
+
<ContextMenuItem>메뉴1</ContextMenuItem>
|
123
|
+
<ContextMenuItem>메뉴2</ContextMenuItem>
|
124
|
+
</ContextMenuContent>
|
125
|
+
</ContextMenu>
|
126
|
+
|
127
|
+
<ContextMenu size={'medium'} {...args}>
|
128
|
+
<ContextMenuTrigger className="w-[100px]">medium</ContextMenuTrigger>
|
129
|
+
<ContextMenuContent>
|
130
|
+
<ContextMenuItem>메뉴1</ContextMenuItem>
|
131
|
+
<ContextMenuItem>메뉴2</ContextMenuItem>
|
132
|
+
</ContextMenuContent>
|
133
|
+
</ContextMenu>
|
134
|
+
</div>);
|
82
135
|
};
|
83
136
|
export var Appearance = function (_a) {
|
84
137
|
var args = __rest(_a, []);
|
85
|
-
return (
|
138
|
+
return (<div className="flex space-x-2">
|
139
|
+
<ContextMenu appearance={'solid'} {...args}>
|
140
|
+
<ContextMenuTrigger className="w-[100px]">solid</ContextMenuTrigger>
|
141
|
+
<ContextMenuContent>
|
142
|
+
<ContextMenuItem>메뉴1</ContextMenuItem>
|
143
|
+
<ContextMenuItem>메뉴2</ContextMenuItem>
|
144
|
+
</ContextMenuContent>
|
145
|
+
</ContextMenu>
|
146
|
+
|
147
|
+
<ContextMenu appearance={'soft'} {...args}>
|
148
|
+
<ContextMenuTrigger className="w-[100px]">soft</ContextMenuTrigger>
|
149
|
+
<ContextMenuContent>
|
150
|
+
<ContextMenuItem>메뉴1</ContextMenuItem>
|
151
|
+
<ContextMenuItem>메뉴2</ContextMenuItem>
|
152
|
+
</ContextMenuContent>
|
153
|
+
</ContextMenu>
|
154
|
+
</div>);
|
86
155
|
};
|
@@ -85,13 +85,13 @@ declare const meta: {
|
|
85
85
|
export default meta;
|
86
86
|
export declare const Default: ({ ...args }: {
|
87
87
|
[x: string]: any;
|
88
|
-
}) => import("react
|
88
|
+
}) => import("react").JSX.Element;
|
89
89
|
export declare const Orientation: ({ ...args }: {
|
90
90
|
[x: string]: any;
|
91
|
-
}) => import("react
|
91
|
+
}) => import("react").JSX.Element;
|
92
92
|
export declare const Scaling: ({ ...args }: {
|
93
93
|
[x: string]: any;
|
94
|
-
}) => import("react
|
94
|
+
}) => import("react").JSX.Element;
|
95
95
|
export declare const Size: ({ ...args }: {
|
96
96
|
[x: string]: any;
|
97
|
-
}) => import("react
|
97
|
+
}) => import("react").JSX.Element;
|
@@ -0,0 +1,185 @@
|
|
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 { DataList, DataListItem, DataListLabel, DataListValue } from 'components/DataList';
|
24
|
+
import Badge from 'components/Badge';
|
25
|
+
import { scalingOptions, commonArgTypes, sizeOptions } from '../../constants';
|
26
|
+
import Button from 'components/Button';
|
27
|
+
var meta = {
|
28
|
+
title: 'Component/DataList',
|
29
|
+
component: DataList,
|
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
|
+
scaling: __assign(__assign({}, commonArgTypes.scaling), { description: 'DataList 비율' }),
|
44
|
+
size: __assign(__assign({}, commonArgTypes.size), { table: {
|
45
|
+
category: 'Props',
|
46
|
+
type: {
|
47
|
+
summary: sizeOptions
|
48
|
+
.filter(function (option) { return option !== 'x-small' && option !== 'x-large'; })
|
49
|
+
.join(' | '),
|
50
|
+
},
|
51
|
+
}, options: sizeOptions.filter(function (option) { return option !== 'x-small' && option !== 'x-large'; }), description: 'DataList 크기' }),
|
52
|
+
color: __assign(__assign({}, commonArgTypes.color), { description: 'DataList 값 매인색', defaultValue: { summary: 'black' } }),
|
53
|
+
orientation: {
|
54
|
+
table: {
|
55
|
+
category: 'Props',
|
56
|
+
type: {
|
57
|
+
summary: ['horizontal', 'vertical'].join(' | '),
|
58
|
+
},
|
59
|
+
},
|
60
|
+
options: ['horizontal', 'vertical'],
|
61
|
+
control: { type: 'select' },
|
62
|
+
defaultValue: { summary: 'horizontal' },
|
63
|
+
description: 'DataList 방향',
|
64
|
+
},
|
65
|
+
},
|
66
|
+
};
|
67
|
+
export default meta;
|
68
|
+
export var Default = function (_a) {
|
69
|
+
var args = __rest(_a, []);
|
70
|
+
return (<DataList {...args}>
|
71
|
+
<DataListItem {...args}>
|
72
|
+
<DataListLabel {...args}>상태</DataListLabel>
|
73
|
+
<DataListValue {...args}>
|
74
|
+
<Badge appearance="soft" {...args}>
|
75
|
+
배지
|
76
|
+
</Badge>
|
77
|
+
</DataListValue>
|
78
|
+
</DataListItem>
|
79
|
+
<DataListItem {...args}>
|
80
|
+
<DataListLabel {...args}>라벨</DataListLabel>
|
81
|
+
<DataListValue {...args}>
|
82
|
+
텍스트가 길어질 경우 줄바꿈으로 처리됩니다.텍스트가 길어질 경우 줄바꿈으로 처리됩니다.
|
83
|
+
</DataListValue>
|
84
|
+
</DataListItem>
|
85
|
+
<DataListItem {...args}>
|
86
|
+
<DataListLabel {...args}>라벨</DataListLabel>
|
87
|
+
<DataListValue {...args}>
|
88
|
+
<Button {...args}>버튼</Button>
|
89
|
+
</DataListValue>
|
90
|
+
</DataListItem>
|
91
|
+
</DataList>);
|
92
|
+
};
|
93
|
+
export var Orientation = function (_a) {
|
94
|
+
var args = __rest(_a, []);
|
95
|
+
return (<DataList {...args} orientation={'vertical'}>
|
96
|
+
<DataListItem {...args}>
|
97
|
+
<DataListLabel {...args}>상태</DataListLabel>
|
98
|
+
<DataListValue {...args}>
|
99
|
+
<Badge appearance="soft" {...args}>
|
100
|
+
배지
|
101
|
+
</Badge>
|
102
|
+
</DataListValue>
|
103
|
+
</DataListItem>
|
104
|
+
<DataListItem {...args}>
|
105
|
+
<DataListLabel {...args}>라벨</DataListLabel>
|
106
|
+
<DataListValue {...args}>
|
107
|
+
텍스트가 길어질 경우 줄바꿈으로 처리됩니다.텍스트가 길어질 경우 줄바꿈으로 처리됩니다.
|
108
|
+
</DataListValue>
|
109
|
+
</DataListItem>
|
110
|
+
<DataListItem {...args}>
|
111
|
+
<DataListLabel {...args}>라벨</DataListLabel>
|
112
|
+
<DataListValue {...args}>
|
113
|
+
<Button {...args}>버튼</Button>
|
114
|
+
</DataListValue>
|
115
|
+
</DataListItem>
|
116
|
+
</DataList>);
|
117
|
+
};
|
118
|
+
export var Scaling = function (_a) {
|
119
|
+
var args = __rest(_a, []);
|
120
|
+
return (<div className="flex flex-col space-y-7">
|
121
|
+
{scalingOptions.map(function (scaling) { return (<DataList {...args} key={scaling} scaling={scaling}>
|
122
|
+
<DataListItem {...args}>
|
123
|
+
<DataListLabel {...args}>{scaling}</DataListLabel>
|
124
|
+
<DataListValue {...args}>
|
125
|
+
텍스트가 길어질 경우 줄바꿈으로 처리됩니다.텍스트가 길어질 경우 줄바꿈으로 처리됩니다.
|
126
|
+
</DataListValue>
|
127
|
+
</DataListItem>
|
128
|
+
<DataListItem {...args}>
|
129
|
+
<DataListLabel {...args}>{scaling}</DataListLabel>
|
130
|
+
<DataListValue {...args}>
|
131
|
+
텍스트가 길어질 경우 줄바꿈으로 처리됩니다.텍스트가 길어질 경우 줄바꿈으로 처리됩니다.
|
132
|
+
</DataListValue>
|
133
|
+
</DataListItem>
|
134
|
+
</DataList>); })}
|
135
|
+
</div>);
|
136
|
+
};
|
137
|
+
export var Size = function (_a) {
|
138
|
+
var args = __rest(_a, []);
|
139
|
+
return (<div className="flex flex-col space-y-7">
|
140
|
+
<DataList size={'small'}>
|
141
|
+
<DataListItem {...args}>
|
142
|
+
<DataListLabel {...args}>small</DataListLabel>
|
143
|
+
<DataListValue {...args}>
|
144
|
+
텍스트가 길어질 경우 줄바꿈으로 처리됩니다.텍스트가 길어질 경우 줄바꿈으로 처리됩니다.
|
145
|
+
</DataListValue>
|
146
|
+
</DataListItem>
|
147
|
+
<DataListItem {...args}>
|
148
|
+
<DataListLabel {...args}>small</DataListLabel>
|
149
|
+
<DataListValue {...args}>
|
150
|
+
텍스트가 길어질 경우 줄바꿈으로 처리됩니다.텍스트가 길어질 경우 줄바꿈으로 처리됩니다.
|
151
|
+
</DataListValue>
|
152
|
+
</DataListItem>
|
153
|
+
</DataList>
|
154
|
+
|
155
|
+
<DataList size={'medium'}>
|
156
|
+
<DataListItem {...args}>
|
157
|
+
<DataListLabel {...args}>medium</DataListLabel>
|
158
|
+
<DataListValue {...args}>
|
159
|
+
텍스트가 길어질 경우 줄바꿈으로 처리됩니다.텍스트가 길어질 경우 줄바꿈으로 처리됩니다.
|
160
|
+
</DataListValue>
|
161
|
+
</DataListItem>
|
162
|
+
<DataListItem {...args}>
|
163
|
+
<DataListLabel {...args}>medium</DataListLabel>
|
164
|
+
<DataListValue {...args}>
|
165
|
+
텍스트가 길어질 경우 줄바꿈으로 처리됩니다.텍스트가 길어질 경우 줄바꿈으로 처리됩니다.
|
166
|
+
</DataListValue>
|
167
|
+
</DataListItem>
|
168
|
+
</DataList>
|
169
|
+
|
170
|
+
<DataList size={'large'}>
|
171
|
+
<DataListItem {...args}>
|
172
|
+
<DataListLabel {...args}>large</DataListLabel>
|
173
|
+
<DataListValue {...args}>
|
174
|
+
텍스트가 길어질 경우 줄바꿈으로 처리됩니다.텍스트가 길어질 경우 줄바꿈으로 처리됩니다.
|
175
|
+
</DataListValue>
|
176
|
+
</DataListItem>
|
177
|
+
<DataListItem {...args}>
|
178
|
+
<DataListLabel {...args}>large</DataListLabel>
|
179
|
+
<DataListValue {...args}>
|
180
|
+
텍스트가 길어질 경우 줄바꿈으로 처리됩니다.텍스트가 길어질 경우 줄바꿈으로 처리됩니다.
|
181
|
+
</DataListValue>
|
182
|
+
</DataListItem>
|
183
|
+
</DataList>
|
184
|
+
</div>);
|
185
|
+
};
|