@lotte-innovate/ui-component-test 0.0.8 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Typography/Header/index.d.ts +1 -1
- package/dist/Typography/Header/{index.jsx → index.js} +2 -5
- package/dist/Typography/Text/{index.jsx → index.js} +3 -6
- package/dist/app/layout.d.ts +1 -1
- package/dist/app/{layout.jsx → layout.js} +2 -3
- package/dist/app/page.d.ts +1 -2
- package/dist/app/{page.jsx → page.js} +2 -2
- package/dist/app/template/badgeTemplate.d.ts +1 -2
- package/dist/app/template/badgeTemplate.js +11 -0
- package/dist/app/template/buttonTemplate.d.ts +1 -2
- package/dist/app/template/buttonTemplate.js +11 -0
- package/dist/app/template/colorPicker.d.ts +1 -2
- package/dist/app/template/colorPicker.js +14 -0
- package/dist/app/template/textTemplate.d.ts +1 -2
- package/dist/app/template/textTemplate.js +23 -0
- package/dist/app/template/theme.d.ts +2 -2
- package/dist/app/template/theme.js +12 -0
- 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 -2
- 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 -4
- 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/Input/Input.stories.d.ts +4 -4
- package/dist/components/Input/{Input.stories.jsx → Input.stories.js} +15 -9
- package/dist/components/Input/index.d.ts +1 -1
- package/dist/components/Input/{index.jsx → index.js} +3 -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 -23
- 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.d.ts +1 -1
- package/dist/components/Tooltip/{index.jsx → index.js} +2 -11
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -3
- package/dist/stories/Welcome.d.ts +1 -2
- package/dist/stories/Welcome.js +30 -0
- package/dist/stories/accordion/Accordion.stories.d.ts +1 -1
- package/dist/stories/accordion/{Accordion.stories.jsx → Accordion.stories.js} +2 -20
- package/dist/stories/alert-dialog/AlertDialog.stories.d.ts +1 -1
- package/dist/stories/alert-dialog/{AlertDialog.stories.jsx → AlertDialog.stories.js} +2 -15
- package/dist/stories/aspect-ratio/AspectRatio.stories.d.ts +3 -3
- package/dist/stories/aspect-ratio/AspectRatio.stories.js +78 -0
- package/dist/stories/avatar/Avatar.stories.d.ts +5 -5
- package/dist/stories/avatar/{Avatar.stories.jsx → Avatar.stories.js} +6 -17
- package/dist/stories/badge/Badge.stories.d.ts +6 -6
- package/dist/stories/badge/{Badge.stories.jsx → Badge.stories.js} +7 -51
- package/dist/stories/bubble-chart/BubbleChart.stories.d.ts +4 -5
- package/dist/stories/bubble-chart/{BubbleChart.stories.jsx → BubbleChart.stories.js} +4 -12
- package/dist/stories/button/Button.stories.d.ts +7 -7
- package/dist/stories/button/{Button.stories.jsx → Button.stories.js} +8 -41
- package/dist/stories/button/IconButton.stories.d.ts +4 -4
- package/dist/stories/button/{IconButton.stories.jsx → IconButton.stories.js} +5 -18
- package/dist/stories/callout/Callout.stories.d.ts +7 -7
- package/dist/stories/callout/Callout.stories.js +104 -0
- package/dist/stories/card/Card.stories.d.ts +5 -5
- package/dist/stories/card/{Card.stories.jsx → Card.stories.js} +6 -56
- package/dist/stories/checkbox/Checkbox.stories.d.ts +6 -6
- package/dist/stories/checkbox/{Checkbox.stories.jsx → Checkbox.stories.js} +7 -63
- package/dist/stories/checkbox/CheckboxCard.stories.d.ts +5 -5
- package/dist/stories/checkbox/{CheckboxCard.stories.jsx → CheckboxCard.stories.js} +6 -41
- package/dist/stories/checkbox/CheckboxGroup.stories.d.ts +3 -3
- package/dist/stories/checkbox/{CheckboxGroup.stories.jsx → CheckboxGroup.stories.js} +4 -76
- package/dist/stories/context-menu/ContextMenu.stories.d.ts +4 -4
- package/dist/stories/context-menu/{ContextMenu.stories.jsx → ContextMenu.stories.js} +5 -74
- package/dist/stories/data-list/DataList.stories.d.ts +4 -4
- package/dist/stories/data-list/DataList.stories.js +87 -0
- package/dist/stories/dialog/Dialog.stories.d.ts +1 -1
- package/dist/stories/dialog/{Dialog.stories.jsx → Dialog.stories.js} +2 -25
- package/dist/stories/doughnut-chart/DoughnutChart.stories.d.ts +4 -5
- package/dist/stories/doughnut-chart/{DoughnutChart.stories.jsx → DoughnutChart.stories.js} +4 -12
- package/dist/stories/dropdown-menu/DropdownMenu.stories.d.ts +4 -4
- package/dist/stories/dropdown-menu/DropdownMenu.stories.js +75 -0
- package/dist/stories/header/Header.stories.d.ts +6 -6
- package/dist/stories/header/{Header.stories.jsx → Header.stories.js} +7 -26
- package/dist/stories/hover-card/HoverCard.stories.d.ts +2 -2
- package/dist/stories/hover-card/{HoverCard.stories.jsx → HoverCard.stories.js} +3 -30
- package/dist/stories/inset/Inset.stories.d.ts +2 -2
- package/dist/stories/inset/{Inset.stories.jsx → Inset.stories.js} +12 -27
- package/dist/stories/label/Label.stories.d.ts +4 -4
- package/dist/stories/label/{Label.stories.jsx → Label.stories.js} +5 -26
- package/dist/stories/menubar/Menubar.stories.d.ts +1 -1
- package/dist/stories/menubar/{Menubar.stories.jsx → Menubar.stories.js} +8 -45
- package/dist/stories/navigation-menu/NavigationMenu.stories.d.ts +13 -13
- package/dist/stories/navigation-menu/{NavigationMenu.stories.jsx → NavigationMenu.stories.js} +3 -68
- package/dist/stories/pie-chart/PieChart.stories.d.ts +5 -6
- package/dist/stories/pie-chart/{PieChart.stories.jsx → PieChart.stories.js} +13 -32
- package/dist/stories/popover/Popover.stories.d.ts +2 -2
- package/dist/stories/popover/{Popover.stories.jsx → Popover.stories.js} +9 -42
- package/dist/stories/progress/Progress.stories.d.ts +4 -4
- package/dist/stories/progress/{Progress.stories.jsx → Progress.stories.js} +6 -11
- package/dist/stories/radar-chart/RadarChart.stories.d.ts +5 -6
- package/dist/stories/radar-chart/{RadarChart.stories.jsx → RadarChart.stories.js} +5 -4
- package/dist/stories/radio/Radio.stories.d.ts +3 -3
- package/dist/stories/radio/{Radio.stories.jsx → Radio.stories.js} +4 -14
- package/dist/stories/radio/RadioCards.stories.d.ts +4 -4
- package/dist/stories/radio/{RadioCards.stories.jsx → RadioCards.stories.js} +5 -64
- package/dist/stories/radio/RadioGroup.stories.d.ts +4 -4
- package/dist/stories/radio/{RadioGroup.stories.jsx → RadioGroup.stories.js} +5 -59
- package/dist/stories/scroll-area/ScrollArea.stories.d.ts +2 -2
- package/dist/stories/scroll-area/ScrollArea.stories.js +63 -0
- package/dist/stories/segmented-control/SegmentedControl.stories.d.ts +4 -4
- package/dist/stories/segmented-control/{SegmentedControl.stories.jsx → SegmentedControl.stories.js} +5 -26
- package/dist/stories/select/Select.stories.d.ts +5 -5
- package/dist/stories/select/{Select.stories.jsx → Select.stories.js} +6 -67
- package/dist/stories/separator/Separator.stories.d.ts +4 -4
- package/dist/stories/separator/{Separator.stories.jsx → Separator.stories.js} +5 -29
- package/dist/stories/skeleton/Skeleton.stories.d.ts +5 -5
- package/dist/stories/skeleton/{Skeleton.stories.jsx → Skeleton.stories.js} +6 -33
- package/dist/stories/slider/Slider.stories.d.ts +4 -4
- package/dist/stories/slider/{Slider.stories.jsx → Slider.stories.js} +5 -16
- package/dist/stories/spinner/Spinner.stories.d.ts +5 -5
- package/dist/stories/spinner/{Spinner.stories.jsx → Spinner.stories.js} +6 -31
- package/dist/stories/switch/Switch.stories.d.ts +4 -4
- package/dist/stories/switch/{Switch.stories.jsx → Switch.stories.js} +5 -16
- package/dist/stories/tab-nav/TabNav.stories.d.ts +1 -1
- package/dist/stories/tab-nav/{TabNav.stories.jsx → TabNav.stories.js} +2 -11
- package/dist/stories/table/Table.stories.d.ts +1 -1
- package/dist/stories/table/{Table.stories.jsx → Table.stories.js} +2 -29
- package/dist/stories/tabs/Tabs.stories.d.ts +1 -1
- package/dist/stories/tabs/{Tabs.stories.jsx → Tabs.stories.js} +2 -19
- package/dist/stories/text/Text.stories.d.ts +5 -5
- package/dist/stories/text/{Text.stories.jsx → Text.stories.js} +6 -21
- package/dist/stories/textArea/TextArea.stories.d.ts +5 -5
- package/dist/stories/textArea/{TextArea.stories.jsx → TextArea.stories.js} +6 -22
- package/dist/stories/textfield/TextField.stories.d.ts +5 -5
- package/dist/stories/textfield/{TextField.stories.jsx → TextField.stories.js} +6 -38
- package/dist/stories/toast/Toast.stories.d.ts +3 -3
- package/dist/stories/toast/{Toast.stories.jsx → Toast.stories.js} +4 -22
- package/dist/stories/toggle/Toggle.stories.d.ts +5 -5
- package/dist/stories/toggle/{Toggle.stories.jsx → Toggle.stories.js} +6 -23
- package/dist/stories/toggle/ToggleGroup.stories.d.ts +3 -3
- package/dist/stories/toggle/{ToggleGroup.stories.jsx → ToggleGroup.stories.js} +6 -39
- package/dist/stories/tooltip/Tooltip.stories.d.ts +3 -3
- package/dist/stories/tooltip/{Tooltip.stories.jsx → Tooltip.stories.js} +4 -17
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -3
- package/dist/app/template/badgeTemplate.jsx +0 -82
- package/dist/app/template/buttonTemplate.jsx +0 -82
- package/dist/app/template/colorPicker.jsx +0 -19
- package/dist/app/template/textTemplate.jsx +0 -72
- package/dist/app/template/theme.jsx +0 -44
- package/dist/components/NavigationMenu/NavigationMenuIndicator.jsx +0 -22
- package/dist/stories/Welcome.jsx +0 -48
- package/dist/stories/aspect-ratio/AspectRatio.stories.jsx +0 -106
- package/dist/stories/callout/Callout.stories.jsx +0 -205
- package/dist/stories/data-list/DataList.stories.jsx +0 -185
- package/dist/stories/dropdown-menu/DropdownMenu.stories.jsx +0 -170
- package/dist/stories/scroll-area/ScrollArea.stories.jsx +0 -123
@@ -20,6 +20,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
20
20
|
}
|
21
21
|
return t;
|
22
22
|
};
|
23
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
23
24
|
import Avatar from 'components/Avatar';
|
24
25
|
import { radiusOptions, scalingOptions, commonArgTypes, typoSizeOptions, appearanceOptions, } from '../../constants';
|
25
26
|
var meta = {
|
@@ -73,33 +74,21 @@ var meta = {
|
|
73
74
|
export default meta;
|
74
75
|
export var Default = function (_a) {
|
75
76
|
var args = __rest(_a, []);
|
76
|
-
return (
|
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>);
|
77
|
+
return (_jsxs("div", { className: "flex space-x-4", children: [_jsx(Avatar, __assign({ imagePath: "https://images.unsplash.com/photo-1492633423870-43d1cd2775eb?&w=128&h=128&dpr=2&q=80" }, args)), _jsx(Avatar, __assign({ fallbackText: "A" }, args))] }));
|
80
78
|
};
|
81
79
|
export var Radius = function (_a) {
|
82
80
|
var args = __rest(_a, []);
|
83
|
-
return (
|
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>);
|
81
|
+
return (_jsx("div", { className: "flex space-x-4", children: radiusOptions.map(function (radius) { return (_jsx(Avatar, __assign({ radius: radius, imagePath: "https://images.unsplash.com/photo-1511485977113-f34c92461ad9?ixlib=rb-1.2.1&w=128&h=128&dpr=2&q=80" }, args), radius)); }) }));
|
86
82
|
};
|
87
83
|
export var Size = function (_a) {
|
88
84
|
var args = __rest(_a, []);
|
89
|
-
return (
|
90
|
-
{typoSizeOptions.map(function (size) { return (<Avatar key={size} size={size} fallbackText="A" {...args}/>); })}
|
91
|
-
</div>);
|
85
|
+
return (_jsx("div", { className: "flex space-x-4", children: typoSizeOptions.map(function (size) { return (_jsx(Avatar, __assign({ size: size, fallbackText: "A" }, args), size)); }) }));
|
92
86
|
};
|
93
87
|
export var Scaling = function (_a) {
|
94
88
|
var args = __rest(_a, []);
|
95
|
-
return (
|
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>);
|
89
|
+
return (_jsx("div", { className: "flex space-x-4", children: scalingOptions.map(function (scaling) { return (_jsx(Avatar, __assign({ 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), scaling)); }) }));
|
98
90
|
};
|
99
91
|
export var Appearance = function (_a) {
|
100
92
|
var args = __rest(_a, []);
|
101
|
-
return (
|
102
|
-
<Avatar appearance="solid" fallbackText={'A'} {...args}/>
|
103
|
-
<Avatar appearance="soft" fallbackText={'A'} {...args}/>
|
104
|
-
</div>);
|
93
|
+
return (_jsxs("div", { className: "flex space-x-4", children: [_jsx(Avatar, __assign({ appearance: "solid", fallbackText: 'A' }, args)), _jsx(Avatar, __assign({ appearance: "soft", fallbackText: 'A' }, args))] }));
|
105
94
|
};
|
@@ -115,19 +115,19 @@ declare const meta: {
|
|
115
115
|
export default meta;
|
116
116
|
export declare const Default: ({ ...args }: {
|
117
117
|
[x: string]: any;
|
118
|
-
}) =>
|
118
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
119
119
|
export declare const Radius: ({ ...args }: {
|
120
120
|
[x: string]: any;
|
121
|
-
}) =>
|
121
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
122
122
|
export declare const Size: ({ ...args }: {
|
123
123
|
[x: string]: any;
|
124
|
-
}) =>
|
124
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
125
125
|
export declare const Scaling: ({ ...args }: {
|
126
126
|
[x: string]: any;
|
127
|
-
}) =>
|
127
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
128
128
|
export declare const Weight: ({ ...args }: {
|
129
129
|
[x: string]: any;
|
130
|
-
}) =>
|
130
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
131
131
|
export declare const Appearance: ({ ...args }: {
|
132
132
|
[x: string]: any;
|
133
|
-
}) =>
|
133
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
@@ -20,7 +20,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
20
20
|
}
|
21
21
|
return t;
|
22
22
|
};
|
23
|
-
import
|
23
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
24
24
|
import Badge from 'components/Badge';
|
25
25
|
import { radiusOptions, commonArgTypes, appearanceOptions, sizeOptions, scalingOptions, } from '../../../src/constants';
|
26
26
|
var meta = {
|
@@ -62,69 +62,25 @@ var meta = {
|
|
62
62
|
export default meta;
|
63
63
|
export var Default = function (_a) {
|
64
64
|
var args = __rest(_a, []);
|
65
|
-
return
|
65
|
+
return _jsx(Badge, __assign({}, args, { children: "Badge" }));
|
66
66
|
};
|
67
67
|
export var Radius = function (_a) {
|
68
68
|
var args = __rest(_a, []);
|
69
|
-
return (
|
70
|
-
{radiusOptions.map(function (radius) { return (<Badge key={radius} {...args} radius={radius}>
|
71
|
-
{radius}
|
72
|
-
</Badge>); })}
|
73
|
-
</div>);
|
69
|
+
return (_jsx("div", { className: "flex gap-3", children: radiusOptions.map(function (radius) { return (_jsx(Badge, __assign({}, args, { radius: radius, children: radius }), radius)); }) }));
|
74
70
|
};
|
75
71
|
export var Size = function (_a) {
|
76
72
|
var args = __rest(_a, []);
|
77
|
-
return (
|
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>);
|
73
|
+
return (_jsxs("div", { className: "flex items-center gap-3", children: [_jsx(Badge, __assign({}, args, { size: 'small', children: "small" })), _jsx(Badge, __assign({}, args, { size: 'medium', children: "medium" })), _jsx(Badge, __assign({}, args, { size: 'large', children: "large" }))] }));
|
88
74
|
};
|
89
75
|
export var Scaling = function (_a) {
|
90
76
|
var args = __rest(_a, []);
|
91
|
-
return (
|
92
|
-
{scalingOptions.map(function (scaling) { return (<Badge key={scaling} {...args} scaling={scaling}>
|
93
|
-
{scaling}
|
94
|
-
</Badge>); })}
|
95
|
-
</div>);
|
77
|
+
return (_jsx("div", { className: "flex items-center gap-3", children: scalingOptions.map(function (scaling) { return (_jsx(Badge, __assign({}, args, { scaling: scaling, children: scaling }), scaling)); }) }));
|
96
78
|
};
|
97
79
|
export var Weight = function (_a) {
|
98
80
|
var args = __rest(_a, []);
|
99
|
-
return (
|
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>);
|
81
|
+
return (_jsxs("div", { className: "flex items-center gap-3", children: [_jsx(Badge, __assign({}, args, { weight: "regular", children: "regular" })), _jsx(Badge, __assign({}, args, { weight: "medium", children: "medium" })), _jsx(Badge, __assign({}, args, { weight: "semibold", children: "semibold" })), _jsx(Badge, __assign({}, args, { weight: "bold", children: "bold" }))] }));
|
113
82
|
};
|
114
83
|
export var Appearance = function (_a) {
|
115
84
|
var args = __rest(_a, []);
|
116
|
-
return (
|
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>);
|
85
|
+
return (_jsxs("div", { className: "flex items-center gap-3", children: [_jsx(Badge, __assign({}, args, { appearance: "solid", children: "solid" })), _jsx(Badge, __assign({}, args, { appearance: "soft", children: "soft" })), _jsx(Badge, __assign({}, args, { appearance: "surface", children: "surface" })), _jsx(Badge, __assign({}, args, { appearance: "outline", children: "outline" }))] }));
|
130
86
|
};
|
@@ -1,9 +1,8 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
import { PointStyle } from 'types';
|
3
2
|
declare const meta: {
|
4
3
|
title: string;
|
5
4
|
component: {
|
6
|
-
({ className, datasets, scaling, width, height, ...props }: import("components/BubbleChart").BubbleChartProps): import("react").JSX.Element;
|
5
|
+
({ className, datasets, scaling, width, height, ...props }: import("components/BubbleChart").BubbleChartProps): import("react/jsx-runtime").JSX.Element;
|
7
6
|
displayName: string;
|
8
7
|
};
|
9
8
|
parameters: {
|
@@ -94,10 +93,10 @@ declare const meta: {
|
|
94
93
|
export default meta;
|
95
94
|
export declare const Default: ({ ...args }: {
|
96
95
|
[x: string]: any;
|
97
|
-
}) => import("react").JSX.Element;
|
96
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
98
97
|
export declare const MultiDatasets: ({ ...args }: {
|
99
98
|
[x: string]: any;
|
100
|
-
}) => import("react").JSX.Element;
|
99
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
101
100
|
export declare const PointStyles: ({ ...args }: {
|
102
101
|
[x: string]: any;
|
103
|
-
}) => import("react").JSX.Element;
|
102
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
@@ -20,6 +20,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
20
20
|
}
|
21
21
|
return t;
|
22
22
|
};
|
23
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
23
24
|
import { BubbleChart } from 'components/BubbleChart';
|
24
25
|
import { commonArgTypes, labelPositionList } from '../../constants';
|
25
26
|
import { red, blue, yellow } from 'color/light';
|
@@ -109,9 +110,7 @@ export var Default = function (_a) {
|
|
109
110
|
},
|
110
111
|
},
|
111
112
|
};
|
112
|
-
return (
|
113
|
-
<BubbleChart width={400} height={300} datasets={args.datasets} options={options} {...args}/>
|
114
|
-
</div>);
|
113
|
+
return (_jsx("div", { className: "w-[500px] h-[400px]", children: _jsx(BubbleChart, __assign({ width: 400, height: 300, datasets: args.datasets, options: options }, args)) }));
|
115
114
|
};
|
116
115
|
export var MultiDatasets = function (_a) {
|
117
116
|
var args = __rest(_a, []);
|
@@ -158,19 +157,12 @@ export var MultiDatasets = function (_a) {
|
|
158
157
|
},
|
159
158
|
},
|
160
159
|
};
|
161
|
-
return
|
160
|
+
return _jsx(Default, { datasets: datasets, options: options });
|
162
161
|
};
|
163
162
|
export var PointStyles = function (_a) {
|
164
163
|
var args = __rest(_a, []);
|
165
164
|
var options = {
|
166
165
|
responsive: false,
|
167
166
|
};
|
168
|
-
return (
|
169
|
-
<div className="flex items-center space-x-3">
|
170
|
-
{['cross', 'crossRot'].map(function (style, index) { return (<BubbleChart key={index} options={options} width={350} height={250} {...args} datasets={datasets(style, style)}/>); })}
|
171
|
-
</div>
|
172
|
-
<div className="flex items-center space-x-3">
|
173
|
-
{['dash', 'rect'].map(function (style, index) { return (<BubbleChart key={index} options={options} width={350} height={250} {...args} datasets={datasets(style, style)}/>); })}
|
174
|
-
</div>
|
175
|
-
</div>);
|
167
|
+
return (_jsxs("div", { className: "space-y-3", children: [_jsx("div", { className: "flex items-center space-x-3", children: ['cross', 'crossRot'].map(function (style, index) { return (_jsx(BubbleChart, __assign({ options: options, width: 350, height: 250 }, args, { datasets: datasets(style, style) }), index)); }) }), _jsx("div", { className: "flex items-center space-x-3", children: ['dash', 'rect'].map(function (style, index) { return (_jsx(BubbleChart, __assign({ options: options, width: 350, height: 250 }, args, { datasets: datasets(style, style) }), index)); }) })] }));
|
176
168
|
};
|
@@ -139,10 +139,10 @@ declare const meta: {
|
|
139
139
|
};
|
140
140
|
};
|
141
141
|
export default meta;
|
142
|
-
export declare const Default: (args: ButtonProps) => import("react").JSX.Element;
|
143
|
-
export declare const Radius: (args: ButtonProps) => import("react").JSX.Element;
|
144
|
-
export declare const Size: (args: ButtonProps) => import("react").JSX.Element;
|
145
|
-
export declare const Scaling: (args: ButtonProps) => import("react").JSX.Element;
|
146
|
-
export declare const Weight: (args: ButtonProps) => import("react").JSX.Element;
|
147
|
-
export declare const Appearance: (args: ButtonProps) => import("react").JSX.Element;
|
148
|
-
export declare const WithIcon: (args: ButtonProps) => import("react").JSX.Element;
|
142
|
+
export declare const Default: (args: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
143
|
+
export declare const Radius: (args: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
144
|
+
export declare const Size: (args: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
145
|
+
export declare const Scaling: (args: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
146
|
+
export declare const Weight: (args: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
147
|
+
export declare const Appearance: (args: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
148
|
+
export declare const WithIcon: (args: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
@@ -9,6 +9,7 @@ var __assign = (this && this.__assign) || function () {
|
|
9
9
|
};
|
10
10
|
return __assign.apply(this, arguments);
|
11
11
|
};
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
12
13
|
import { fn } from '@storybook/test';
|
13
14
|
import { radiusOptions, scalingOptions, weightOptions, commonArgTypes, appearanceOptions, sizeOptions, } from '../../../src/constants';
|
14
15
|
import Button from 'components/Button';
|
@@ -55,44 +56,10 @@ var meta = {
|
|
55
56
|
},
|
56
57
|
};
|
57
58
|
export default meta;
|
58
|
-
export var Default = function (args) { return
|
59
|
-
export var Radius = function (args) { return (
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
export var
|
65
|
-
{sizeOptions.map(function (size) { return (<Button key={"".concat(size, "-size")} {...args} size={size}>
|
66
|
-
{size}
|
67
|
-
</Button>); })}
|
68
|
-
</div>); };
|
69
|
-
export var Scaling = function (args) { return (<div className="flex items-center space-x-3">
|
70
|
-
{scalingOptions.map(function (scaling) { return (<Button key={scaling} {...args} scaling={scaling}>
|
71
|
-
{scaling}
|
72
|
-
</Button>); })}
|
73
|
-
</div>); };
|
74
|
-
export var Weight = function (args) { return (<div className="flex items-center space-x-3">
|
75
|
-
{weightOptions.map(function (weight) { return (<Button key={weight} {...args} weight={weight}>
|
76
|
-
{weight}
|
77
|
-
</Button>); })}
|
78
|
-
</div>); };
|
79
|
-
export var Appearance = function (args) { return (<div className="flex items-center space-x-3">
|
80
|
-
{appearanceOptions.map(function (appearance) { return (<Button key={appearance} {...args} appearance={appearance}>
|
81
|
-
{appearance}
|
82
|
-
</Button>); })}
|
83
|
-
</div>); };
|
84
|
-
export var WithIcon = function (args) { return (<div className="flex flex-col items-center space-y-3">
|
85
|
-
<div className="flex items-center space-x-3">
|
86
|
-
{appearanceOptions.map(function (appearance) { return (<Button key={appearance} {...args} appearance={appearance}>
|
87
|
-
<BookmarkIcon className="w-4 h-4 mr-2"/>
|
88
|
-
북마크
|
89
|
-
</Button>); })}
|
90
|
-
</div>
|
91
|
-
|
92
|
-
<div className="flex items-center space-x-3">
|
93
|
-
{appearanceOptions.map(function (appearance) { return (<Button key={appearance} {...args} appearance={appearance}>
|
94
|
-
More
|
95
|
-
<ArrowRightIcon className="w-4 h-4 ml-2"/>
|
96
|
-
</Button>); })}
|
97
|
-
</div>
|
98
|
-
</div>); };
|
59
|
+
export var Default = function (args) { return _jsx(Button, __assign({}, args, { children: "\uBC84\uD2BC" })); };
|
60
|
+
export var Radius = function (args) { return (_jsx("div", { className: "flex space-x-2", children: radiusOptions.map(function (radius) { return (_jsx(Button, __assign({}, args, { radius: radius, children: radius }), radius)); }) })); };
|
61
|
+
export var Size = function (args) { return (_jsx("div", { className: "flex items-center space-x-3", children: sizeOptions.map(function (size) { return (_jsx(Button, __assign({}, args, { size: size, children: size }), "".concat(size, "-size"))); }) })); };
|
62
|
+
export var Scaling = function (args) { return (_jsx("div", { className: "flex items-center space-x-3", children: scalingOptions.map(function (scaling) { return (_jsx(Button, __assign({}, args, { scaling: scaling, children: scaling }), scaling)); }) })); };
|
63
|
+
export var Weight = function (args) { return (_jsx("div", { className: "flex items-center space-x-3", children: weightOptions.map(function (weight) { return (_jsx(Button, __assign({}, args, { weight: weight, children: weight }), weight)); }) })); };
|
64
|
+
export var Appearance = function (args) { return (_jsx("div", { className: "flex items-center space-x-3", children: appearanceOptions.map(function (appearance) { return (_jsx(Button, __assign({}, args, { appearance: appearance, children: appearance }), appearance)); }) })); };
|
65
|
+
export var WithIcon = function (args) { return (_jsxs("div", { className: "flex flex-col items-center space-y-3", children: [_jsx("div", { className: "flex items-center space-x-3", children: appearanceOptions.map(function (appearance) { return (_jsxs(Button, __assign({}, args, { appearance: appearance, children: [_jsx(BookmarkIcon, { className: "w-4 h-4 mr-2" }), "\uBD81\uB9C8\uD06C"] }), appearance)); }) }), _jsx("div", { className: "flex items-center space-x-3", children: appearanceOptions.map(function (appearance) { return (_jsxs(Button, __assign({}, args, { appearance: appearance, children: ["More", _jsx(ArrowRightIcon, { className: "w-4 h-4 ml-2" })] }), appearance)); }) })] })); };
|
@@ -113,13 +113,13 @@ declare const meta: {
|
|
113
113
|
};
|
114
114
|
};
|
115
115
|
export default meta;
|
116
|
-
export declare const Default: ({ ...args }: any) => import("react").JSX.Element;
|
116
|
+
export declare const Default: ({ ...args }: any) => import("react/jsx-runtime").JSX.Element;
|
117
117
|
export declare const Size: ({ ...args }: {
|
118
118
|
[x: string]: any;
|
119
|
-
}) => import("react").JSX.Element;
|
119
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
120
120
|
export declare const Radius: ({ ...args }: {
|
121
121
|
[x: string]: any;
|
122
|
-
}) => import("react").JSX.Element;
|
122
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
123
123
|
export declare const Appearance: ({ ...args }: {
|
124
124
|
[x: string]: any;
|
125
|
-
}) => import("react").JSX.Element;
|
125
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
@@ -20,6 +20,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
20
20
|
}
|
21
21
|
return t;
|
22
22
|
};
|
23
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
23
24
|
import { MagnifyingGlassIcon } from '@radix-ui/react-icons';
|
24
25
|
import { commonArgTypes, radiusOptions, sizeOptions, appearanceOptions } from '../../constants';
|
25
26
|
import { IconButton } from '../../components/IconButton';
|
@@ -63,31 +64,17 @@ var meta = {
|
|
63
64
|
export default meta;
|
64
65
|
export var Default = function (_a) {
|
65
66
|
var args = __rest(_a, []);
|
66
|
-
return (
|
67
|
-
<MagnifyingGlassIcon />
|
68
|
-
</IconButton>);
|
67
|
+
return (_jsx(IconButton, __assign({}, args, { children: _jsx(MagnifyingGlassIcon, {}) })));
|
69
68
|
};
|
70
69
|
export var Size = function (_a) {
|
71
70
|
var args = __rest(_a, []);
|
72
|
-
return (
|
73
|
-
{sizeOptions.map(function (size) { return (<IconButton key={size} {...args} size={size}>
|
74
|
-
<MagnifyingGlassIcon />
|
75
|
-
</IconButton>); })}
|
76
|
-
</div>);
|
71
|
+
return (_jsx("div", { className: "flex items-center space-x-4", children: sizeOptions.map(function (size) { return (_jsx(IconButton, __assign({}, args, { size: size, children: _jsx(MagnifyingGlassIcon, {}) }), size)); }) }));
|
77
72
|
};
|
78
73
|
export var Radius = function (_a) {
|
79
74
|
var args = __rest(_a, []);
|
80
|
-
return (
|
81
|
-
{radiusOptions.map(function (radius) { return (<IconButton key={radius} {...args} radius={radius}>
|
82
|
-
<MagnifyingGlassIcon />
|
83
|
-
</IconButton>); })}
|
84
|
-
</div>);
|
75
|
+
return (_jsx("div", { className: "flex items-center space-x-4", children: radiusOptions.map(function (radius) { return (_jsx(IconButton, __assign({}, args, { radius: radius, children: _jsx(MagnifyingGlassIcon, {}) }), radius)); }) }));
|
85
76
|
};
|
86
77
|
export var Appearance = function (_a) {
|
87
78
|
var args = __rest(_a, []);
|
88
|
-
return (
|
89
|
-
{appearanceOptions.map(function (appearance) { return (<IconButton key={appearance} {...args} appearance={appearance}>
|
90
|
-
<MagnifyingGlassIcon />
|
91
|
-
</IconButton>); })}
|
92
|
-
</div>);
|
79
|
+
return (_jsx("div", { className: "flex items-center space-x-4", children: appearanceOptions.map(function (appearance) { return (_jsx(IconButton, __assign({}, args, { appearance: appearance, children: _jsx(MagnifyingGlassIcon, {}) }), appearance)); }) }));
|
93
80
|
};
|
@@ -108,22 +108,22 @@ declare const meta: {
|
|
108
108
|
export default meta;
|
109
109
|
export declare const Default: ({ ...args }: {
|
110
110
|
[x: string]: any;
|
111
|
-
}) => import("react").JSX.Element;
|
111
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
112
112
|
export declare const Radius: ({ ...args }: {
|
113
113
|
[x: string]: any;
|
114
|
-
}) => import("react").JSX.Element;
|
114
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
115
115
|
export declare const Size: ({ ...args }: {
|
116
116
|
[x: string]: any;
|
117
|
-
}) => import("react").JSX.Element;
|
117
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
118
118
|
export declare const Color: ({ ...args }: {
|
119
119
|
[x: string]: any;
|
120
|
-
}) => import("react").JSX.Element;
|
120
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
121
121
|
export declare const Appearance: ({ ...args }: {
|
122
122
|
[x: string]: any;
|
123
|
-
}) => import("react").JSX.Element;
|
123
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
124
124
|
export declare const Scaling: ({ ...args }: {
|
125
125
|
[x: string]: any;
|
126
|
-
}) => import("react").JSX.Element;
|
126
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
127
127
|
export declare const IconTypes: ({ ...args }: {
|
128
128
|
[x: string]: any;
|
129
|
-
}) => import("react").JSX.Element;
|
129
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1,104 @@
|
|
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 { createElement as _createElement } from "react";
|
24
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
25
|
+
import { Callout, CalloutIcon, CalloutText } from 'components/Callout';
|
26
|
+
import { Text } from 'Typography/Text';
|
27
|
+
import { radiusOptions, scalingOptions, commonArgTypes, sizeOptions, appearanceOptions, } from '../../constants';
|
28
|
+
var meta = {
|
29
|
+
title: 'Component/Callout',
|
30
|
+
component: Callout,
|
31
|
+
parameters: {
|
32
|
+
layout: 'centered',
|
33
|
+
docs: {
|
34
|
+
description: {
|
35
|
+
component: '중요한 정보나 경고를 강조하기 위해 사용되는 알림 박스 컴포넌트',
|
36
|
+
},
|
37
|
+
},
|
38
|
+
},
|
39
|
+
tags: ['autodocs'],
|
40
|
+
argTypes: {
|
41
|
+
radius: __assign(__assign({}, commonArgTypes.radius), { description: 'Callout border 둥굴기' }),
|
42
|
+
size: __assign(__assign({}, commonArgTypes.size), { table: {
|
43
|
+
category: 'Props',
|
44
|
+
type: {
|
45
|
+
summary: sizeOptions
|
46
|
+
.filter(function (option) { return option !== 'x-small' && option !== 'x-large'; })
|
47
|
+
.join(' | '),
|
48
|
+
},
|
49
|
+
}, options: sizeOptions.filter(function (option) { return option !== 'x-small' && option !== 'x-large'; }), description: 'Callout 크기' }),
|
50
|
+
scaling: __assign(__assign({}, commonArgTypes.scaling), { description: 'Callout 비율' }),
|
51
|
+
color: {
|
52
|
+
table: {
|
53
|
+
category: 'Props',
|
54
|
+
type: { summary: ['danger', 'warning', 'success', 'information'].join(' | ') },
|
55
|
+
},
|
56
|
+
options: ['danger', 'warning', 'success', 'information'],
|
57
|
+
control: { type: 'select' },
|
58
|
+
defaultValue: { summary: 'information' },
|
59
|
+
description: 'Toast 색',
|
60
|
+
},
|
61
|
+
contentText: __assign(__assign({}, commonArgTypes.basicText), { description: 'Callout 안에 들어가는 텍스트' }),
|
62
|
+
appearance: __assign(__assign({}, commonArgTypes.appearance), { table: {
|
63
|
+
category: 'Props',
|
64
|
+
type: {
|
65
|
+
summary: appearanceOptions
|
66
|
+
.filter(function (option) { return option !== 'classic' && option !== 'ghost' && option !== 'solid'; })
|
67
|
+
.join(' | '),
|
68
|
+
},
|
69
|
+
}, description: 'Callout 스타일', options: appearanceOptions.filter(function (option) { return option !== 'classic' && option !== 'ghost' && option !== 'solid'; }) }),
|
70
|
+
},
|
71
|
+
};
|
72
|
+
export default meta;
|
73
|
+
export var Default = function (_a) {
|
74
|
+
var args = __rest(_a, []);
|
75
|
+
return (_jsxs(Callout, __assign({}, args, { children: [_jsx(CalloutIcon, __assign({}, args, { iconType: "information" })), _jsx(CalloutText, __assign({}, args, { children: "\uC2DC\uC2A4\uD15C \uC810\uAC80\uC774 \uC608\uC815\uB418\uC5B4 \uC788\uC2B5\uB2C8\uB2E4." }))] })));
|
76
|
+
};
|
77
|
+
export var Radius = function (_a) {
|
78
|
+
var args = __rest(_a, []);
|
79
|
+
return (_jsx("div", { className: "flex flex-col space-y-3", children: radiusOptions.map(function (radius) { return (_createElement(Callout, __assign({}, args, { radius: radius, key: radius }),
|
80
|
+
_jsx(CalloutIcon, __assign({}, args, { iconType: "information" })),
|
81
|
+
_jsx(CalloutText, __assign({}, args, { children: "\uC2DC\uC2A4\uD15C \uC810\uAC80\uC774 \uC608\uC815\uB418\uC5B4 \uC788\uC2B5\uB2C8\uB2E4." })))); }) }));
|
82
|
+
};
|
83
|
+
export var Size = function (_a) {
|
84
|
+
var args = __rest(_a, []);
|
85
|
+
return (_jsxs("div", { className: "flex flex-col space-y-5", children: [_jsxs(Callout, __assign({}, args, { size: 'small', children: [_jsx(CalloutIcon, __assign({}, args, { iconType: "information" })), _jsx(CalloutText, __assign({}, args, { children: "\uC0C8\uB85C\uC6B4 \uC5C5\uB370\uC774\uD2B8\uAC00 \uC788\uC2B5\uB2C8\uB2E4. \uCD5C\uC2E0 \uBC84\uC804\uC744 \uB2E4\uC6B4\uB85C\uB4DC\uD558\uC5EC \uC0AC\uC6A9\uD574 \uC8FC\uC138\uC694." }))] })), _jsxs(Callout, __assign({}, args, { children: [_jsx(CalloutIcon, __assign({}, args, { iconType: "information" })), _jsx(CalloutText, __assign({}, args, { children: "\uC0C8\uB85C\uC6B4 \uC5C5\uB370\uC774\uD2B8\uAC00 \uC788\uC2B5\uB2C8\uB2E4. \uCD5C\uC2E0 \uBC84\uC804\uC744 \uB2E4\uC6B4\uB85C\uB4DC\uD558\uC5EC \uC0AC\uC6A9\uD574 \uC8FC\uC138\uC694." }))] })), _jsxs(Callout, __assign({}, args, { size: "large", children: [_jsx(CalloutIcon, __assign({}, args, { iconType: "information" })), _jsx(CalloutText, __assign({}, args, { children: "\uC0C8\uB85C\uC6B4 \uC5C5\uB370\uC774\uD2B8\uAC00 \uC788\uC2B5\uB2C8\uB2E4. \uCD5C\uC2E0 \uBC84\uC804\uC744 \uB2E4\uC6B4\uB85C\uB4DC\uD558\uC5EC \uC0AC\uC6A9\uD574 \uC8FC\uC138\uC694." }))] }))] }));
|
86
|
+
};
|
87
|
+
export var Color = function (_a) {
|
88
|
+
var args = __rest(_a, []);
|
89
|
+
return (_jsxs("div", { className: "flex space-x-5", children: [_jsxs(Callout, __assign({}, args, { color: "information", children: [_jsx(CalloutIcon, __assign({}, args, { iconType: "information" })), _jsx(CalloutText, __assign({}, args, { children: "\uC815\uBCF4 \uBA54\uC138\uC9C0" }))] })), _jsxs(Callout, __assign({}, args, { color: "danger", children: [_jsx(CalloutIcon, __assign({}, args, { iconType: "danger" })), _jsx(CalloutText, __assign({}, args, { children: "\uC704\uD5D8 \uBA54\uC138\uC9C0" }))] })), _jsxs(Callout, __assign({}, args, { color: "warning", children: [_jsx(CalloutIcon, __assign({}, args, { iconType: "warning" })), _jsx(CalloutText, __assign({}, args, { children: "\uACBD\uACE0 \uBA54\uC138\uC9C0" }))] })), _jsxs(Callout, __assign({}, args, { color: "success", children: [_jsx(CalloutIcon, __assign({}, args, { iconType: "success" })), _jsx(CalloutText, __assign({}, args, { children: "\uC131\uACF5 \uBA54\uC138\uC9C0" }))] }))] }));
|
90
|
+
};
|
91
|
+
export var Appearance = function (_a) {
|
92
|
+
var args = __rest(_a, []);
|
93
|
+
return (_jsxs("div", { className: "flex space-x-5", children: [_jsxs("div", { className: "flex flex-col space-y-1", children: [_jsx(Text, { children: "Soft(\uAE30\uC900)" }), _jsxs(Callout, __assign({}, args, { appearance: "soft", children: [_jsx(CalloutIcon, __assign({}, args, { iconType: "information" })), _jsx(CalloutText, __assign({}, args, { children: "\uC0C8\uB85C\uC6B4 \uC5C5\uB370\uC774\uD2B8\uAC00 \uC788\uC2B5\uB2C8\uB2E4. " }))] }))] }), _jsxs("div", { className: "flex flex-col space-y-1", children: [_jsx(Text, { children: "Surface" }), _jsxs(Callout, __assign({}, args, { appearance: "surface", children: [_jsx(CalloutIcon, __assign({}, args, { iconType: "information" })), _jsx(CalloutText, __assign({}, args, { children: "\uC0C8\uB85C\uC6B4 \uC5C5\uB370\uC774\uD2B8\uAC00 \uC788\uC2B5\uB2C8\uB2E4. " }))] }))] }), _jsxs("div", { className: "flex flex-col space-y-1", children: [_jsx(Text, { children: "Outline" }), _jsxs(Callout, __assign({}, args, { appearance: "outline", children: [_jsx(CalloutIcon, __assign({}, args, { iconType: "information" })), _jsx(CalloutText, __assign({}, args, { children: "\uC0C8\uB85C\uC6B4 \uC5C5\uB370\uC774\uD2B8\uAC00 \uC788\uC2B5\uB2C8\uB2E4. " }))] }))] })] }));
|
94
|
+
};
|
95
|
+
export var Scaling = function (_a) {
|
96
|
+
var args = __rest(_a, []);
|
97
|
+
return (_jsx("div", { className: "flex flex-col space-y-5", children: scalingOptions.map(function (scaling) { return (_createElement(Callout, __assign({}, args, { scaling: scaling, key: scaling }),
|
98
|
+
_jsx(CalloutIcon, __assign({}, args, { iconType: "information" })),
|
99
|
+
_jsx(CalloutText, __assign({}, args, { children: "\uAD00\uB9AC\uC790\uC5D0\uAC8C \uBB38\uC758\uD558\uC138\uC694." })))); }) }));
|
100
|
+
};
|
101
|
+
export var IconTypes = function (_a) {
|
102
|
+
var args = __rest(_a, []);
|
103
|
+
return (_jsxs("div", { className: "flex space-x-5", children: [_jsxs("div", { className: "flex flex-col space-y-1", children: [_jsx(Text, { children: "Danger" }), _jsxs(Callout, __assign({}, args, { color: "danger", children: [_jsx(CalloutIcon, __assign({}, args, { iconType: "danger", color: "danger" })), _jsx(CalloutText, __assign({}, args, { color: "danger", children: "\uC704\uD5D8 \uC544\uC774\uCF58" }))] }))] }), _jsxs("div", { className: "flex flex-col space-y-1", children: [_jsx(Text, { children: "Warning" }), _jsxs(Callout, __assign({}, args, { color: "warning", children: [_jsx(CalloutIcon, __assign({}, args, { iconType: "warning" })), _jsx(CalloutText, __assign({}, args, { children: "\uACBD\uACE0 \uC544\uC774\uCF58" }))] }))] }), _jsxs("div", { className: "flex flex-col space-y-1", children: [_jsx(Text, { children: "Success" }), _jsxs(Callout, __assign({}, args, { color: "success", children: [_jsx(CalloutIcon, __assign({}, args, { iconType: "success" })), _jsx(CalloutText, __assign({}, args, { children: "\uC131\uACF5 \uC544\uC774\uCF58" }))] }))] }), _jsxs("div", { className: "flex flex-col space-y-1", children: [_jsx(Text, { children: "Info" }), _jsxs(Callout, __assign({}, args, { color: "information", children: [_jsx(CalloutIcon, __assign({}, args, { iconType: "information" })), _jsx(CalloutText, __assign({}, args, { children: "\uC815\uBCF4 \uC544\uC774\uCF58" }))] }))] })] }));
|
104
|
+
};
|
@@ -85,16 +85,16 @@ declare const meta: {
|
|
85
85
|
export default meta;
|
86
86
|
export declare const Default: ({ ...args }: {
|
87
87
|
[x: string]: any;
|
88
|
-
}) => import("react").JSX.Element;
|
88
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
89
89
|
export declare const NoAvatar: ({ ...args }: {
|
90
90
|
[x: string]: any;
|
91
|
-
}) => import("react").JSX.Element;
|
91
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
92
92
|
export declare const Appearance: ({ ...args }: {
|
93
93
|
[x: string]: any;
|
94
|
-
}) => import("react").JSX.Element;
|
94
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
95
95
|
export declare const Scaling: ({ ...args }: {
|
96
96
|
[x: string]: any;
|
97
|
-
}) => import("react").JSX.Element;
|
97
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
98
98
|
export declare const Radius: ({ ...args }: {
|
99
99
|
[x: string]: any;
|
100
|
-
}) => import("react").JSX.Element;
|
100
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
@@ -20,6 +20,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
20
20
|
}
|
21
21
|
return t;
|
22
22
|
};
|
23
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
23
24
|
import Card from 'components/Card';
|
24
25
|
import Avatar from 'components/Avatar';
|
25
26
|
import { Text } from 'Typography/Text';
|
@@ -63,72 +64,21 @@ var meta = {
|
|
63
64
|
export default meta;
|
64
65
|
export var Default = function (_a) {
|
65
66
|
var args = __rest(_a, []);
|
66
|
-
return (
|
67
|
-
<Avatar {...args} size={args.size === 'small' ? '3' : args.size === 'large' ? '5' : '4'} appearance="solid" 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"/>
|
68
|
-
<div className="flex flex-col">
|
69
|
-
<Text {...args} weight={'bold'} size={args.size === 'small' ? '3' : args.size === 'large' ? '5' : '4'}>
|
70
|
-
Title
|
71
|
-
</Text>
|
72
|
-
<Text {...args} size={args.size === 'small' ? '3' : args.size === 'large' ? '5' : '4'}>
|
73
|
-
Content
|
74
|
-
</Text>
|
75
|
-
</div>
|
76
|
-
</Card>);
|
67
|
+
return (_jsxs(Card, __assign({}, args, { children: [_jsx(Avatar, __assign({}, args, { size: args.size === 'small' ? '3' : args.size === 'large' ? '5' : '4', appearance: "solid", 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" })), _jsxs("div", { className: "flex flex-col", children: [_jsx(Text, __assign({}, args, { weight: 'bold', size: args.size === 'small' ? '3' : args.size === 'large' ? '5' : '4', children: "Title" })), _jsx(Text, __assign({}, args, { size: args.size === 'small' ? '3' : args.size === 'large' ? '5' : '4', children: "Content" }))] })] })));
|
77
68
|
};
|
78
69
|
export var NoAvatar = function (_a) {
|
79
70
|
var args = __rest(_a, []);
|
80
|
-
return (
|
81
|
-
<div className="flex flex-col">
|
82
|
-
<Text {...args} weight={'bold'}>
|
83
|
-
Typography
|
84
|
-
</Text>
|
85
|
-
<Text {...args}>{"is the art and technique of arranging type to make written language legible, \n readable and appealing when displayed."}</Text>
|
86
|
-
</div>
|
87
|
-
</Card>);
|
71
|
+
return (_jsx(Card, __assign({}, args, { children: _jsxs("div", { className: "flex flex-col", children: [_jsx(Text, __assign({}, args, { weight: 'bold', children: "Typography" })), _jsx(Text, __assign({}, args, { children: "is the art and technique of arranging type to make written language legible, \n readable and appealing when displayed." }))] }) })));
|
88
72
|
};
|
89
73
|
export var Appearance = function (_a) {
|
90
74
|
var args = __rest(_a, []);
|
91
|
-
return (
|
92
|
-
<Card {...args} appearance="surface">
|
93
|
-
<Text>surface style card (default)</Text>
|
94
|
-
</Card>
|
95
|
-
<Card {...args} appearance="classic">
|
96
|
-
<Text>classic style card</Text>
|
97
|
-
</Card>
|
98
|
-
<Card {...args} appearance="ghost">
|
99
|
-
<Text> ghost style card</Text>
|
100
|
-
</Card>
|
101
|
-
</div>);
|
75
|
+
return (_jsxs("div", { className: "flex flex-col space-y-4", children: [_jsx(Card, __assign({}, args, { appearance: "surface", children: _jsx(Text, { children: "surface style card (default)" }) })), _jsx(Card, __assign({}, args, { appearance: "classic", children: _jsx(Text, { children: "classic style card" }) })), _jsx(Card, __assign({}, args, { appearance: "ghost", children: _jsx(Text, { children: " ghost style card" }) }))] }));
|
102
76
|
};
|
103
77
|
export var Scaling = function (_a) {
|
104
78
|
var args = __rest(_a, []);
|
105
|
-
return (
|
106
|
-
{scalingOptions.map(function (scaling) { return (<div key={scaling}>
|
107
|
-
<Card {...args} scaling={scaling}>
|
108
|
-
<Avatar {...args} radius={'full'} 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"/>
|
109
|
-
<div className="flex flex-col">
|
110
|
-
<Text {...args} weight={'bold'}>
|
111
|
-
Title
|
112
|
-
</Text>
|
113
|
-
<Text {...args}>Content</Text>
|
114
|
-
</div>
|
115
|
-
</Card>
|
116
|
-
</div>); })}
|
117
|
-
</div>);
|
79
|
+
return (_jsx("div", { className: "flex flex-col items-center space-y-4", children: scalingOptions.map(function (scaling) { return (_jsx("div", { children: _jsxs(Card, __assign({}, args, { scaling: scaling, children: [_jsx(Avatar, __assign({}, args, { radius: 'full', 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" })), _jsxs("div", { className: "flex flex-col", children: [_jsx(Text, __assign({}, args, { weight: 'bold', children: "Title" })), _jsx(Text, __assign({}, args, { children: "Content" }))] })] })) }, scaling)); }) }));
|
118
80
|
};
|
119
81
|
export var Radius = function (_a) {
|
120
82
|
var args = __rest(_a, []);
|
121
|
-
return (
|
122
|
-
{radiusOptions.map(function (radius) { return (<div key={radius}>
|
123
|
-
<Card {...args} radius={radius}>
|
124
|
-
<Avatar {...args} radius={radius} 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"/>
|
125
|
-
<div className="flex flex-col">
|
126
|
-
<Text {...args} weight={'bold'}>
|
127
|
-
Title
|
128
|
-
</Text>
|
129
|
-
<Text {...args}>Content</Text>
|
130
|
-
</div>
|
131
|
-
</Card>
|
132
|
-
</div>); })}
|
133
|
-
</div>);
|
83
|
+
return (_jsx("div", { className: "flex flex-col items-center space-y-3", children: radiusOptions.map(function (radius) { return (_jsx("div", { children: _jsxs(Card, __assign({}, args, { radius: radius, children: [_jsx(Avatar, __assign({}, args, { radius: radius, 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" })), _jsxs("div", { className: "flex flex-col", children: [_jsx(Text, __assign({}, args, { weight: 'bold', children: "Title" })), _jsx(Text, __assign({}, args, { children: "Content" }))] })] })) }, radius)); }) }));
|
134
84
|
};
|