@lotte-innovate/ui-component-test 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +163 -163
- package/dist/Typography/Header/index.d.ts +1 -1
- package/dist/Typography/Header/index.jsx +4 -4
- package/dist/Typography/Text/index.jsx +4 -4
- package/dist/Typography/index.d.ts +2 -2
- package/dist/Typography/index.js +2 -3
- package/dist/app/layout.jsx +2 -2
- package/dist/app/page.d.ts +1 -1
- package/dist/app/page.jsx +6 -39
- package/dist/app/template/colorPicker.d.ts +1 -1
- package/dist/app/template/colorPicker.jsx +7 -7
- package/dist/app/template/theme.jsx +6 -33
- package/dist/components/Accordion/index.jsx +13 -13
- package/dist/components/AlertDialog/AlertDialogAction.jsx +3 -3
- package/dist/components/AlertDialog/AlertDialogCancel.jsx +3 -3
- package/dist/components/AlertDialog/AlertDialogContent.jsx +6 -6
- package/dist/components/AlertDialog/AlertDialogDescription.jsx +3 -3
- package/dist/components/AlertDialog/AlertDialogTitle.jsx +3 -3
- package/dist/components/AlertDialog/AlertDialogTrigger.jsx +3 -3
- package/dist/components/AlertDialog/index.jsx +4 -2
- package/dist/components/AspectRatio/index.jsx +3 -3
- package/dist/components/Avatar/index.jsx +6 -6
- package/dist/components/Badge/index.jsx +2 -2
- package/dist/components/BubbleChart/index.jsx +1 -1
- package/dist/components/Button/index.jsx +3 -3
- package/dist/components/Callout/CalloutIcon.jsx +7 -7
- package/dist/components/Callout/CalloutText.jsx +3 -3
- package/dist/components/Callout/index.jsx +5 -5
- package/dist/components/Card/index.jsx +3 -3
- package/dist/components/Checkbox/index.jsx +10 -10
- package/dist/components/CheckboxCard/index.jsx +4 -4
- package/dist/components/CheckboxGroup/CheckboxGroupItem.jsx +4 -4
- package/dist/components/CheckboxGroup/index.jsx +5 -5
- package/dist/components/ContextMenu/ContextMenuCheckboxItem.jsx +6 -6
- package/dist/components/ContextMenu/ContextMenuContent.jsx +5 -5
- package/dist/components/ContextMenu/ContextMenuGroup.jsx +2 -2
- package/dist/components/ContextMenu/ContextMenuItem.jsx +4 -4
- package/dist/components/ContextMenu/ContextMenuItemIndicator.jsx +3 -3
- package/dist/components/ContextMenu/ContextMenuLabel.jsx +3 -3
- package/dist/components/ContextMenu/ContextMenuRadioGroup.jsx +4 -4
- package/dist/components/ContextMenu/ContextMenuRadioItem.jsx +6 -6
- package/dist/components/ContextMenu/ContextMenuSeparator.jsx +3 -3
- package/dist/components/ContextMenu/ContextMenuSubContent.jsx +6 -6
- package/dist/components/ContextMenu/ContextMenuSubTrigger.jsx +8 -8
- package/dist/components/ContextMenu/ContextMenuTrigger.jsx +3 -3
- package/dist/components/ContextMenu/index.jsx +5 -3
- package/dist/components/DataList/DataListItem.jsx +3 -3
- package/dist/components/DataList/DataListLabel.jsx +3 -3
- package/dist/components/DataList/DataListValue.jsx +3 -3
- package/dist/components/DataList/index.jsx +5 -5
- package/dist/components/Dialog/DialogAction.jsx +3 -3
- package/dist/components/Dialog/DialogCancel.jsx +3 -3
- package/dist/components/Dialog/DialogContent.jsx +3 -3
- package/dist/components/Dialog/DialogDescription.jsx +3 -3
- package/dist/components/Dialog/DialogSlot.jsx +3 -3
- package/dist/components/Dialog/DialogTitle.jsx +3 -3
- package/dist/components/Dialog/DialogTrigger.jsx +2 -2
- package/dist/components/Dialog/index.jsx +2 -2
- package/dist/components/DoughnutChart/index.jsx +1 -1
- package/dist/components/DropdownMenu/DropdonMenuRadioGroup.jsx +4 -4
- package/dist/components/DropdownMenu/DropdonMenuSubContent.jsx +5 -5
- package/dist/components/DropdownMenu/DropdownMenuCheckboxItem.jsx +6 -6
- package/dist/components/DropdownMenu/DropdownMenuContent.jsx +5 -5
- package/dist/components/DropdownMenu/DropdownMenuItem.jsx +4 -4
- package/dist/components/DropdownMenu/DropdownMenuItemIndicator.jsx +3 -3
- package/dist/components/DropdownMenu/DropdownMenuLable.jsx +3 -3
- package/dist/components/DropdownMenu/DropdownMenuRadioItem.jsx +6 -6
- package/dist/components/DropdownMenu/DropdownMenuSeparator.jsx +1 -1
- package/dist/components/DropdownMenu/DropdownMenuSubTrigger.jsx +5 -5
- package/dist/components/DropdownMenu/DropdownMenuTrigger.jsx +2 -2
- package/dist/components/HoverCard/HoverCardContent.jsx +2 -2
- package/dist/components/HoverCard/HoverCardTrigger.jsx +2 -2
- package/dist/components/HoverCard/index.jsx +2 -2
- package/dist/components/IconButton/index.jsx +2 -2
- package/dist/components/Inset/index.jsx +4 -4
- package/dist/components/Label/index.jsx +2 -2
- package/dist/components/Menubar/MenubarCheckboxItem.jsx +6 -6
- package/dist/components/Menubar/MenubarContent.jsx +5 -5
- package/dist/components/Menubar/MenubarItem.jsx +4 -4
- package/dist/components/Menubar/MenubarItemIndicator.jsx +3 -3
- package/dist/components/Menubar/MenubarRadioGroup.jsx +4 -4
- package/dist/components/Menubar/MenubarRadioItem.jsx +6 -6
- package/dist/components/Menubar/MenubarSeparator.jsx +3 -3
- package/dist/components/Menubar/MenubarSubContent.jsx +3 -3
- package/dist/components/Menubar/MenubarSubTrigger.jsx +6 -6
- package/dist/components/Menubar/MenubarTrigger.jsx +3 -3
- package/dist/components/Menubar/index.jsx +5 -5
- package/dist/components/NavigationMenu/NavigationMenuContent.jsx +3 -3
- package/dist/components/NavigationMenu/NavigationMenuIndicator.jsx +4 -4
- package/dist/components/NavigationMenu/NavigationMenuItem.jsx +2 -2
- package/dist/components/NavigationMenu/NavigationMenuLink.jsx +3 -3
- package/dist/components/NavigationMenu/NavigationMenuList.jsx +4 -4
- package/dist/components/NavigationMenu/NavigationMenuTrigger.jsx +4 -4
- package/dist/components/NavigationMenu/NavigationMenuViewport.jsx +3 -3
- package/dist/components/NavigationMenu/index.jsx +5 -5
- package/dist/components/PieChart/index.jsx +1 -1
- package/dist/components/Popover/PopoverClose.jsx +2 -2
- package/dist/components/Popover/PopoverContent.jsx +2 -2
- package/dist/components/Popover/PopoverTrigger.jsx +2 -2
- package/dist/components/Popover/index.jsx +2 -2
- package/dist/components/Progress/index.jsx +2 -2
- package/dist/components/Radio/index.jsx +7 -7
- package/dist/components/RadioCards/RadioCardsItem.jsx +2 -2
- package/dist/components/RadioCards/index.jsx +4 -4
- package/dist/components/RadioGroup/RadioGroupItem.jsx +2 -2
- package/dist/components/RadioGroup/index.jsx +4 -4
- package/dist/components/ScrollArea/index.jsx +4 -4
- package/dist/components/SegmentedControl/SegmentedControlItem.jsx +2 -2
- package/dist/components/SegmentedControl/index.jsx +4 -4
- package/dist/components/Select/index.jsx +20 -18
- package/dist/components/Separator/index.jsx +5 -5
- package/dist/components/Skeleton/index.jsx +5 -5
- package/dist/components/Slider/index.jsx +3 -3
- package/dist/components/Spinner/index.jsx +4 -4
- package/dist/components/TabNav/index.jsx +6 -6
- package/dist/components/Table/index.d.ts +2 -1
- package/dist/components/Table/index.jsx +17 -17
- package/dist/components/Tabs/index.jsx +10 -10
- package/dist/components/TextArea/index.jsx +2 -2
- package/dist/components/TextField/index.jsx +7 -7
- package/dist/components/Toast/ToastActionButton.jsx +3 -3
- package/dist/components/Toast/ToastDescription.jsx +5 -5
- package/dist/components/Toast/ToastTitle.jsx +3 -3
- package/dist/components/Toast/index.jsx +8 -8
- package/dist/components/Toggle/ToggleWithText.jsx +3 -3
- package/dist/components/Toggle/index.jsx +2 -2
- package/dist/components/ToggleGroup/index.jsx +4 -4
- package/dist/components/ToggleGroup/toggleGroupItem.jsx +2 -2
- package/dist/components/ToggleSwitch/index.jsx +5 -5
- package/dist/components/Tooltip/index.d.ts +1 -1
- package/dist/components/Tooltip/index.jsx +11 -11
- package/dist/components/index.d.ts +0 -2
- package/dist/index.d.ts +2 -5
- package/dist/index.js +0 -3
- package/dist/stories/Welcome.jsx +19 -19
- package/dist/stories/accordion/Accordion.stories.jsx +19 -19
- package/dist/stories/alert-dialog/AlertDialog.stories.jsx +14 -14
- package/dist/stories/aspect-ratio/AspectRatio.stories.jsx +29 -29
- package/dist/stories/avatar/Avatar.stories.jsx +12 -12
- package/dist/stories/badge/Badge.stories.jsx +44 -44
- package/dist/stories/bubble-chart/BubbleChart.stories.jsx +9 -9
- package/dist/stories/button/Button.stories.jsx +34 -34
- package/dist/stories/button/IconButton.stories.jsx +14 -14
- package/dist/stories/callout/Callout.stories.jsx +107 -107
- package/dist/stories/card/Card.stories.jsx +51 -51
- package/dist/stories/checkbox/Checkbox.stories.jsx +57 -57
- package/dist/stories/checkbox/CheckboxCard.stories.jsx +36 -36
- package/dist/stories/checkbox/CheckboxGroup.stories.jsx +73 -73
- package/dist/stories/context-menu/ContextMenu.stories.jsx +70 -70
- package/dist/stories/data-list/DataList.stories.jsx +102 -102
- package/dist/stories/dialog/Dialog.stories.jsx +24 -24
- package/dist/stories/doughnut-chart/DoughnutChart.stories.jsx +9 -9
- package/dist/stories/dropdown-menu/DropdownMenu.stories.jsx +96 -96
- package/dist/stories/header/Header.stories.jsx +20 -20
- package/dist/stories/hover-card/HoverCard.stories.jsx +28 -28
- package/dist/stories/inset/Inset.stories.jsx +16 -16
- package/dist/stories/label/Label.stories.jsx +22 -22
- package/dist/stories/menubar/Menubar.stories.jsx +38 -38
- package/dist/stories/navigation-menu/NavigationMenu.stories.d.ts +11 -11
- package/dist/stories/navigation-menu/NavigationMenu.stories.jsx +67 -67
- package/dist/stories/pie-chart/PieChart.stories.jsx +20 -20
- package/dist/stories/popover/Popover.stories.jsx +34 -34
- package/dist/stories/progress/Progress.stories.jsx +6 -6
- package/dist/stories/radio/Radio.stories.jsx +11 -11
- package/dist/stories/radio/RadioCards.stories.jsx +60 -60
- package/dist/stories/radio/RadioGroup.stories.jsx +55 -55
- package/dist/stories/scroll-area/ScrollArea.stories.jsx +61 -61
- package/dist/stories/segmented-control/SegmentedControl.stories.jsx +22 -22
- package/dist/stories/select/Select.stories.jsx +62 -62
- package/dist/stories/separator/Separator.stories.jsx +25 -25
- package/dist/stories/skeleton/Skeleton.stories.jsx +28 -28
- package/dist/stories/slider/Slider.stories.jsx +12 -12
- package/dist/stories/spinner/Spinner.stories.jsx +26 -26
- package/dist/stories/switch/Switch.stories.jsx +12 -12
- package/dist/stories/tab-nav/TabNav.stories.jsx +10 -10
- package/dist/stories/table/Table.stories.jsx +28 -28
- package/dist/stories/tabs/Tabs.stories.jsx +18 -18
- package/dist/stories/text/Text.stories.jsx +16 -16
- package/dist/stories/textArea/TextArea.stories.jsx +17 -17
- package/dist/stories/textfield/TextField.stories.jsx +33 -33
- package/dist/stories/toast/Toast.stories.jsx +19 -19
- package/dist/stories/toggle/Toggle.stories.jsx +18 -18
- package/dist/stories/toggle/ToggleGroup.stories.jsx +34 -34
- package/dist/stories/tooltip/Tooltip.stories.jsx +14 -14
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +120 -118
- package/dist/app/template/badgeTemplate.d.ts +0 -12
- package/dist/app/template/badgeTemplate.jsx +0 -82
- package/dist/app/template/buttonTemplate.d.ts +0 -12
- package/dist/app/template/buttonTemplate.jsx +0 -82
- package/dist/app/template/textTemplate.d.ts +0 -11
- package/dist/app/template/textTemplate.jsx +0 -72
@@ -24,7 +24,7 @@ import { appearanceOptions, commonArgTypes, sizeOptions } from '../../constants'
|
|
24
24
|
import { NavigationMenu, NavigationMenuContent, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, } from 'components/NavigationMenu';
|
25
25
|
import Image from 'next/image';
|
26
26
|
import { Text } from 'Typography/Text';
|
27
|
-
import
|
27
|
+
import Card from 'components/Card';
|
28
28
|
var meta = {
|
29
29
|
title: 'Component/NavigationMenu',
|
30
30
|
component: NavigationMenu,
|
@@ -40,8 +40,8 @@ var meta = {
|
|
40
40
|
},
|
41
41
|
},
|
42
42
|
decorators: [
|
43
|
-
function (Story) { return (<div className="h-[300px] p-2">
|
44
|
-
<Story />
|
43
|
+
function (Story) { return (<div className="h-[300px] p-2">
|
44
|
+
<Story />
|
45
45
|
</div>); },
|
46
46
|
],
|
47
47
|
tags: ['autodocs'],
|
@@ -76,69 +76,69 @@ var meta = {
|
|
76
76
|
export default meta;
|
77
77
|
export var Default = function (_a) {
|
78
78
|
var args = __rest(_a, []);
|
79
|
-
return (<NavigationMenu {...args}>
|
80
|
-
<NavigationMenuList>
|
81
|
-
<NavigationMenuItem>
|
82
|
-
<NavigationMenuTrigger>홈페이지</NavigationMenuTrigger>
|
83
|
-
<NavigationMenuContent>
|
84
|
-
<div className="flex space-x-2">
|
85
|
-
<Image className="rounded" src="https://images.unsplash.com/photo-1535025183041-0991a977e25b?w=300&dpr=2&q=80" alt="Landscape photograph by Tobias Tullius" width={120} height={200}/>
|
86
|
-
<div className="space-y-2">
|
87
|
-
<Card size={'small'} className="w-[150px] hover:bg-red-3 dark:hover:bg-redDark-3">
|
88
|
-
<Text weight={'bold'}>타이틀</Text>
|
89
|
-
<Text>내용</Text>
|
90
|
-
</Card>
|
91
|
-
<Card size={'small'} className="w-[150px] hover:bg-red-3 dark:hover:bg-redDark-3">
|
92
|
-
<Text weight={'bold'}>타이틀</Text>
|
93
|
-
<Text>내용</Text>
|
94
|
-
</Card>
|
95
|
-
<Card size={'small'} className="w-[150px] hover:bg-red-3 dark:hover:bg-redDark-3">
|
96
|
-
<Text weight={'bold'}>타이틀</Text>
|
97
|
-
<Text>내용</Text>
|
98
|
-
</Card>
|
99
|
-
</div>
|
100
|
-
</div>
|
101
|
-
</NavigationMenuContent>
|
102
|
-
</NavigationMenuItem>
|
103
|
-
|
104
|
-
<NavigationMenuItem>
|
105
|
-
<NavigationMenuTrigger>개요</NavigationMenuTrigger>
|
106
|
-
<NavigationMenuContent>
|
107
|
-
<div className="flex flex-col space-y-3">
|
108
|
-
<Card className="hover:bg-red-3 dark:hover:bg-redDark-3" appearance="ghost">
|
109
|
-
<div className="flex flex-col">
|
110
|
-
<Text weight={'bold'} color="red">
|
111
|
-
타이틀이 들어가는 자리입니다.
|
112
|
-
</Text>
|
113
|
-
<Text>내용이 들어가는 자리입니다.</Text>
|
114
|
-
</div>
|
115
|
-
</Card>
|
116
|
-
<Card className="hover:bg-red-3 dark:hover:bg-redDark-3" appearance="ghost">
|
117
|
-
<div className="flex flex-col">
|
118
|
-
<Text weight={'bold'} color="red">
|
119
|
-
타이틀이 들어가는 자리입니다.
|
120
|
-
</Text>
|
121
|
-
<Text>내용이 들어가는 자리입니다.</Text>
|
122
|
-
</div>
|
123
|
-
</Card>
|
124
|
-
<Card className="hover:bg-red-3 dark:hover:bg-redDark-3" appearance="ghost">
|
125
|
-
<div className="flex flex-col">
|
126
|
-
<Text weight={'bold'} color="red">
|
127
|
-
타이틀이 들어가는 자리입니다.
|
128
|
-
</Text>
|
129
|
-
<Text>내용이 들어가는 자리입니다.</Text>
|
130
|
-
</div>
|
131
|
-
</Card>
|
132
|
-
</div>
|
133
|
-
</NavigationMenuContent>
|
134
|
-
</NavigationMenuItem>
|
135
|
-
|
136
|
-
<NavigationMenuItem>
|
137
|
-
<NavigationMenuLink href="https://tailwindcss.com/docs/border-radius">
|
138
|
-
tailwind 바로가기
|
139
|
-
</NavigationMenuLink>
|
140
|
-
</NavigationMenuItem>
|
141
|
-
</NavigationMenuList>
|
142
|
-
<NavigationMenuViewport />
|
79
|
+
return (<NavigationMenu {...args}>
|
80
|
+
<NavigationMenuList>
|
81
|
+
<NavigationMenuItem>
|
82
|
+
<NavigationMenuTrigger>홈페이지</NavigationMenuTrigger>
|
83
|
+
<NavigationMenuContent>
|
84
|
+
<div className="flex space-x-2">
|
85
|
+
<Image className="rounded" src="https://images.unsplash.com/photo-1535025183041-0991a977e25b?w=300&dpr=2&q=80" alt="Landscape photograph by Tobias Tullius" width={120} height={200}/>
|
86
|
+
<div className="space-y-2">
|
87
|
+
<Card size={'small'} className="w-[150px] hover:bg-red-3 dark:hover:bg-redDark-3">
|
88
|
+
<Text weight={'bold'}>타이틀</Text>
|
89
|
+
<Text>내용</Text>
|
90
|
+
</Card>
|
91
|
+
<Card size={'small'} className="w-[150px] hover:bg-red-3 dark:hover:bg-redDark-3">
|
92
|
+
<Text weight={'bold'}>타이틀</Text>
|
93
|
+
<Text>내용</Text>
|
94
|
+
</Card>
|
95
|
+
<Card size={'small'} className="w-[150px] hover:bg-red-3 dark:hover:bg-redDark-3">
|
96
|
+
<Text weight={'bold'}>타이틀</Text>
|
97
|
+
<Text>내용</Text>
|
98
|
+
</Card>
|
99
|
+
</div>
|
100
|
+
</div>
|
101
|
+
</NavigationMenuContent>
|
102
|
+
</NavigationMenuItem>
|
103
|
+
|
104
|
+
<NavigationMenuItem>
|
105
|
+
<NavigationMenuTrigger>개요</NavigationMenuTrigger>
|
106
|
+
<NavigationMenuContent>
|
107
|
+
<div className="flex flex-col space-y-3">
|
108
|
+
<Card className="hover:bg-red-3 dark:hover:bg-redDark-3" appearance="ghost">
|
109
|
+
<div className="flex flex-col">
|
110
|
+
<Text weight={'bold'} color="red">
|
111
|
+
타이틀이 들어가는 자리입니다.
|
112
|
+
</Text>
|
113
|
+
<Text>내용이 들어가는 자리입니다.</Text>
|
114
|
+
</div>
|
115
|
+
</Card>
|
116
|
+
<Card className="hover:bg-red-3 dark:hover:bg-redDark-3" appearance="ghost">
|
117
|
+
<div className="flex flex-col">
|
118
|
+
<Text weight={'bold'} color="red">
|
119
|
+
타이틀이 들어가는 자리입니다.
|
120
|
+
</Text>
|
121
|
+
<Text>내용이 들어가는 자리입니다.</Text>
|
122
|
+
</div>
|
123
|
+
</Card>
|
124
|
+
<Card className="hover:bg-red-3 dark:hover:bg-redDark-3" appearance="ghost">
|
125
|
+
<div className="flex flex-col">
|
126
|
+
<Text weight={'bold'} color="red">
|
127
|
+
타이틀이 들어가는 자리입니다.
|
128
|
+
</Text>
|
129
|
+
<Text>내용이 들어가는 자리입니다.</Text>
|
130
|
+
</div>
|
131
|
+
</Card>
|
132
|
+
</div>
|
133
|
+
</NavigationMenuContent>
|
134
|
+
</NavigationMenuItem>
|
135
|
+
|
136
|
+
<NavigationMenuItem>
|
137
|
+
<NavigationMenuLink href="https://tailwindcss.com/docs/border-radius">
|
138
|
+
tailwind 바로가기
|
139
|
+
</NavigationMenuLink>
|
140
|
+
</NavigationMenuItem>
|
141
|
+
</NavigationMenuList>
|
142
|
+
<NavigationMenuViewport />
|
143
143
|
</NavigationMenu>);
|
144
144
|
};
|
@@ -174,8 +174,8 @@ var meta = {
|
|
174
174
|
export default meta;
|
175
175
|
export var Default = function (_a) {
|
176
176
|
var args = __rest(_a, []);
|
177
|
-
return (<div className="w-[300px]">
|
178
|
-
<PieChart labels={args.label} datasets={args.datasets} {...args}/>
|
177
|
+
return (<div className="w-[300px]">
|
178
|
+
<PieChart labels={args.label} datasets={args.datasets} {...args}/>
|
179
179
|
</div>);
|
180
180
|
};
|
181
181
|
export var LabelsStyle = function () {
|
@@ -188,8 +188,8 @@ export var LabelsStyle = function () {
|
|
188
188
|
borderColor: [ruby[9], violet[9], amber[9], green[9]],
|
189
189
|
},
|
190
190
|
];
|
191
|
-
return (<div className="flex">
|
192
|
-
{labelStyleList.map(function (labelOption) { return (<div className="w-[200px]" key={labelOption}>
|
191
|
+
return (<div className="flex">
|
192
|
+
{labelStyleList.map(function (labelOption) { return (<div className="w-[200px]" key={labelOption}>
|
193
193
|
<PieChart labels={labels} datasets={datasets} options={{
|
194
194
|
plugins: {
|
195
195
|
legend: {
|
@@ -200,8 +200,8 @@ export var LabelsStyle = function () {
|
|
200
200
|
position: 'top',
|
201
201
|
},
|
202
202
|
},
|
203
|
-
}}/>
|
204
|
-
</div>); })}
|
203
|
+
}}/>
|
204
|
+
</div>); })}
|
205
205
|
</div>);
|
206
206
|
};
|
207
207
|
export var BorderStyles = function () {
|
@@ -236,13 +236,13 @@ export var BorderStyles = function () {
|
|
236
236
|
},
|
237
237
|
},
|
238
238
|
};
|
239
|
-
return (<div className="flex">
|
240
|
-
<div className="w-[200px]">
|
241
|
-
<PieChart datasets={datasets} options={options}/>
|
242
|
-
</div>
|
243
|
-
<div className="w-[200px]">
|
244
|
-
<PieChart datasets={dashDatasets} options={dashOptions}/>
|
245
|
-
</div>
|
239
|
+
return (<div className="flex">
|
240
|
+
<div className="w-[200px]">
|
241
|
+
<PieChart datasets={datasets} options={options}/>
|
242
|
+
</div>
|
243
|
+
<div className="w-[200px]">
|
244
|
+
<PieChart datasets={dashDatasets} options={dashOptions}/>
|
245
|
+
</div>
|
246
246
|
</div>);
|
247
247
|
};
|
248
248
|
export var DataLabels = function () {
|
@@ -289,12 +289,12 @@ export var DataLabels = function () {
|
|
289
289
|
},
|
290
290
|
},
|
291
291
|
};
|
292
|
-
return (<div className="flex">
|
293
|
-
<div className="w-[200px]">
|
294
|
-
<PieChart datasets={datasets} options={options}/>
|
295
|
-
</div>
|
296
|
-
<div className="w-[200px]">
|
297
|
-
<PieChart datasets={datasets} options={customOptions}/>
|
298
|
-
</div>
|
292
|
+
return (<div className="flex">
|
293
|
+
<div className="w-[200px]">
|
294
|
+
<PieChart datasets={datasets} options={options}/>
|
295
|
+
</div>
|
296
|
+
<div className="w-[200px]">
|
297
|
+
<PieChart datasets={datasets} options={customOptions}/>
|
298
|
+
</div>
|
299
299
|
</div>);
|
300
300
|
};
|
@@ -59,49 +59,49 @@ var meta = {
|
|
59
59
|
export default meta;
|
60
60
|
export var Default = function (_a) {
|
61
61
|
var args = __rest(_a, []);
|
62
|
-
return (<Popover {...args}>
|
63
|
-
<PopoverTrigger>
|
64
|
-
<Button>Comment</Button>
|
65
|
-
</PopoverTrigger>
|
66
|
-
<PopoverContent {...args}>
|
62
|
+
return (<Popover {...args}>
|
63
|
+
<PopoverTrigger>
|
64
|
+
<Button>Comment</Button>
|
65
|
+
</PopoverTrigger>
|
66
|
+
<PopoverContent {...args}>
|
67
67
|
<Avatar imagePath="https://images.unsplash.com/photo-1607346256330-dee7af15f7c5?&w=64&h=64&dpr=2&q=70&crop=focalpoint&fp-x=0.67&fp-y=0.5&fp-z=1.4&fit=crop" {...args} size={args.size === 'small'
|
68
68
|
? '2'
|
69
69
|
: args.size === 'large'
|
70
70
|
? '4'
|
71
71
|
: args.size === 'x-large'
|
72
72
|
? '5'
|
73
|
-
: '3'}/>
|
74
|
-
<div className="grow">
|
75
|
-
<TextArea placeholder="Write a comment…" {...args} className="w-full"/>
|
76
|
-
<div className="flex mt-3 justify-end">
|
77
|
-
<PopoverClose {...args}>
|
78
|
-
<Button>Comment</Button>
|
79
|
-
</PopoverClose>
|
80
|
-
</div>
|
81
|
-
</div>
|
82
|
-
</PopoverContent>
|
73
|
+
: '3'}/>
|
74
|
+
<div className="grow">
|
75
|
+
<TextArea placeholder="Write a comment…" {...args} className="w-full"/>
|
76
|
+
<div className="flex mt-3 justify-end">
|
77
|
+
<PopoverClose {...args}>
|
78
|
+
<Button>Comment</Button>
|
79
|
+
</PopoverClose>
|
80
|
+
</div>
|
81
|
+
</div>
|
82
|
+
</PopoverContent>
|
83
83
|
</Popover>);
|
84
84
|
};
|
85
85
|
export var WithInset = function (_a) {
|
86
86
|
var args = __rest(_a, []);
|
87
|
-
return (<Popover {...args}>
|
88
|
-
<PopoverTrigger>
|
89
|
-
<Button>Share image</Button>
|
90
|
-
</PopoverTrigger>
|
91
|
-
<PopoverContent {...args}>
|
92
|
-
<div className="grid grid-cols-[130px_1fr]">
|
93
|
-
<Inset side="left" pr="current">
|
94
|
-
<Image src="https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?&auto=format&fit=crop&w=400&q=80" alt="toggle with inset" width={150} height={150} style={{ objectFit: 'cover', width: '100%', height: '100%' }}/>
|
95
|
-
</Inset>
|
96
|
-
<div>
|
97
|
-
<span>Minimalistic 3D rendering wallpaper.</span>
|
98
|
-
<div className="mt-2 flex-col items-stretch">
|
99
|
-
<PopoverClose {...args}>
|
100
|
-
<Button>Copy link</Button>
|
101
|
-
</PopoverClose>
|
102
|
-
</div>
|
103
|
-
</div>
|
104
|
-
</div>
|
105
|
-
</PopoverContent>
|
87
|
+
return (<Popover {...args}>
|
88
|
+
<PopoverTrigger>
|
89
|
+
<Button>Share image</Button>
|
90
|
+
</PopoverTrigger>
|
91
|
+
<PopoverContent {...args}>
|
92
|
+
<div className="grid grid-cols-[130px_1fr]">
|
93
|
+
<Inset side="left" pr="current">
|
94
|
+
<Image src="https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?&auto=format&fit=crop&w=400&q=80" alt="toggle with inset" width={150} height={150} style={{ objectFit: 'cover', width: '100%', height: '100%' }}/>
|
95
|
+
</Inset>
|
96
|
+
<div>
|
97
|
+
<span>Minimalistic 3D rendering wallpaper.</span>
|
98
|
+
<div className="mt-2 flex-col items-stretch">
|
99
|
+
<PopoverClose {...args}>
|
100
|
+
<Button>Copy link</Button>
|
101
|
+
</PopoverClose>
|
102
|
+
</div>
|
103
|
+
</div>
|
104
|
+
</div>
|
105
|
+
</PopoverContent>
|
106
106
|
</Popover>);
|
107
107
|
};
|
@@ -62,21 +62,21 @@ export var Default = function (_a) {
|
|
62
62
|
};
|
63
63
|
export var Radius = function (_a) {
|
64
64
|
var args = __rest(_a, []);
|
65
|
-
return (<div className="flex flex-col space-y-3">
|
66
|
-
{radiusOptions.map(function (radius) { return (<Progress key={radius} value={25} {...args} radius={radius}/>); })}
|
65
|
+
return (<div className="flex flex-col space-y-3">
|
66
|
+
{radiusOptions.map(function (radius) { return (<Progress key={radius} value={25} {...args} radius={radius}/>); })}
|
67
67
|
</div>);
|
68
68
|
};
|
69
69
|
export var Size = function (_a) {
|
70
70
|
var args = __rest(_a, []);
|
71
|
-
return (<div className="flex flex-col space-y-3">
|
71
|
+
return (<div className="flex flex-col space-y-3">
|
72
72
|
{sizeOptions
|
73
73
|
.filter(function (value) { return value != 'x-small' && value != 'x-large'; })
|
74
|
-
.map(function (size) { return (<Progress key={size} value={25} {...args} size={size}/>); })}
|
74
|
+
.map(function (size) { return (<Progress key={size} value={25} {...args} size={size}/>); })}
|
75
75
|
</div>);
|
76
76
|
};
|
77
77
|
export var Variant = function (_a) {
|
78
78
|
var args = __rest(_a, []);
|
79
|
-
return (<div className="flex flex-col space-y-3">
|
80
|
-
{['classic', 'surface', 'soft'].map(function (appearance) { return (<Default key={appearance} value={25} {...args} appearance={appearance}/>); })}
|
79
|
+
return (<div className="flex flex-col space-y-3">
|
80
|
+
{['classic', 'surface', 'soft'].map(function (appearance) { return (<Default key={appearance} value={25} {...args} appearance={appearance}/>); })}
|
81
81
|
</div>);
|
82
82
|
};
|
@@ -71,24 +71,24 @@ var meta = {
|
|
71
71
|
export default meta;
|
72
72
|
export var Default = function (_a) {
|
73
73
|
var args = __rest(_a, []);
|
74
|
-
return (<>
|
75
|
-
<Radio value={'1'} name={'example'} {...args}>
|
76
|
-
radio option1
|
77
|
-
</Radio>
|
78
|
-
<Radio value={'2'} name={'example'} {...args}>
|
79
|
-
radio option2
|
80
|
-
</Radio>
|
74
|
+
return (<>
|
75
|
+
<Radio value={'1'} name={'example'} {...args}>
|
76
|
+
radio option1
|
77
|
+
</Radio>
|
78
|
+
<Radio value={'2'} name={'example'} {...args}>
|
79
|
+
radio option2
|
80
|
+
</Radio>
|
81
81
|
</>);
|
82
82
|
};
|
83
83
|
export var Size = function (_a) {
|
84
84
|
var args = __rest(_a, []);
|
85
|
-
return (<div className="flex items-center space-x-4">
|
86
|
-
{['small', 'medium', 'large'].map(function (size) { return (<Radio key={size} size={size} value={'1'} name={'size'} defaultChecked={size === 'small'} {...args}/>); })}
|
85
|
+
return (<div className="flex items-center space-x-4">
|
86
|
+
{['small', 'medium', 'large'].map(function (size) { return (<Radio key={size} size={size} value={'1'} name={'size'} defaultChecked={size === 'small'} {...args}/>); })}
|
87
87
|
</div>);
|
88
88
|
};
|
89
89
|
export var Appearance = function (_a) {
|
90
90
|
var args = __rest(_a, []);
|
91
|
-
return (<div className="flex items-center space-x-4">
|
92
|
-
{['classic', 'soft', 'surface'].map(function (appearance) { return (<Radio key={appearance} value={appearance} appearance={appearance} name={'appearance'} defaultChecked={appearance === 'classic'} {...args}/>); })}
|
91
|
+
return (<div className="flex items-center space-x-4">
|
92
|
+
{['classic', 'soft', 'surface'].map(function (appearance) { return (<Radio key={appearance} value={appearance} appearance={appearance} name={'appearance'} defaultChecked={appearance === 'classic'} {...args}/>); })}
|
93
93
|
</div>);
|
94
94
|
};
|
@@ -77,77 +77,77 @@ var meta = {
|
|
77
77
|
export default meta;
|
78
78
|
export var Default = function (_a) {
|
79
79
|
var args = __rest(_a, []);
|
80
|
-
return (<RadioCards {...args} defaultValue="1">
|
81
|
-
<RadioCardsItem value="1" {...args}>
|
82
|
-
radioCard 1
|
83
|
-
</RadioCardsItem>
|
84
|
-
<RadioCardsItem value="2" {...args}>
|
85
|
-
radioCard 2
|
86
|
-
</RadioCardsItem>
|
87
|
-
<RadioCardsItem value="3" {...args}>
|
88
|
-
radioCard 3
|
89
|
-
</RadioCardsItem>
|
80
|
+
return (<RadioCards {...args} defaultValue="1">
|
81
|
+
<RadioCardsItem value="1" {...args}>
|
82
|
+
radioCard 1
|
83
|
+
</RadioCardsItem>
|
84
|
+
<RadioCardsItem value="2" {...args}>
|
85
|
+
radioCard 2
|
86
|
+
</RadioCardsItem>
|
87
|
+
<RadioCardsItem value="3" {...args}>
|
88
|
+
radioCard 3
|
89
|
+
</RadioCardsItem>
|
90
90
|
</RadioCards>);
|
91
91
|
};
|
92
92
|
export var Radius = function (_a) {
|
93
93
|
var args = __rest(_a, []);
|
94
|
-
return (<div className="flex items-center space-x-4">
|
95
|
-
<div className="flex space-x-1">
|
96
|
-
<RadioCards {...args} defaultValue="none">
|
97
|
-
<RadioCardsItem value="none" {...args} radius={'none'}>
|
98
|
-
none
|
99
|
-
</RadioCardsItem>
|
100
|
-
<RadioCardsItem value="small" {...args} radius={'small'}>
|
101
|
-
small
|
102
|
-
</RadioCardsItem>
|
103
|
-
<RadioCardsItem value="medium" {...args} radius={'medium'}>
|
104
|
-
medium
|
105
|
-
</RadioCardsItem>
|
106
|
-
<RadioCardsItem value="large" {...args} radius={'large'}>
|
107
|
-
large
|
108
|
-
</RadioCardsItem>
|
109
|
-
</RadioCards>
|
110
|
-
</div>
|
94
|
+
return (<div className="flex items-center space-x-4">
|
95
|
+
<div className="flex space-x-1">
|
96
|
+
<RadioCards {...args} defaultValue="none">
|
97
|
+
<RadioCardsItem value="none" {...args} radius={'none'}>
|
98
|
+
none
|
99
|
+
</RadioCardsItem>
|
100
|
+
<RadioCardsItem value="small" {...args} radius={'small'}>
|
101
|
+
small
|
102
|
+
</RadioCardsItem>
|
103
|
+
<RadioCardsItem value="medium" {...args} radius={'medium'}>
|
104
|
+
medium
|
105
|
+
</RadioCardsItem>
|
106
|
+
<RadioCardsItem value="large" {...args} radius={'large'}>
|
107
|
+
large
|
108
|
+
</RadioCardsItem>
|
109
|
+
</RadioCards>
|
110
|
+
</div>
|
111
111
|
</div>);
|
112
112
|
};
|
113
113
|
export var Size = function (_a) {
|
114
114
|
var args = __rest(_a, []);
|
115
|
-
return (<div className="flex items-center space-x-4">
|
116
|
-
<RadioCards defaultValue="small" {...args}>
|
117
|
-
<RadioCardsItem value={'small'} {...args} size={'small'}>
|
118
|
-
small
|
119
|
-
</RadioCardsItem>
|
120
|
-
<RadioCardsItem value={'medium'} {...args} size={'medium'}>
|
121
|
-
medium
|
122
|
-
</RadioCardsItem>
|
123
|
-
<RadioCardsItem value={'large'} {...args} size={'large'}>
|
124
|
-
large
|
125
|
-
</RadioCardsItem>
|
126
|
-
</RadioCards>
|
115
|
+
return (<div className="flex items-center space-x-4">
|
116
|
+
<RadioCards defaultValue="small" {...args}>
|
117
|
+
<RadioCardsItem value={'small'} {...args} size={'small'}>
|
118
|
+
small
|
119
|
+
</RadioCardsItem>
|
120
|
+
<RadioCardsItem value={'medium'} {...args} size={'medium'}>
|
121
|
+
medium
|
122
|
+
</RadioCardsItem>
|
123
|
+
<RadioCardsItem value={'large'} {...args} size={'large'}>
|
124
|
+
large
|
125
|
+
</RadioCardsItem>
|
126
|
+
</RadioCards>
|
127
127
|
</div>);
|
128
128
|
};
|
129
129
|
export var States = function (_a) {
|
130
130
|
var args = __rest(_a, []);
|
131
|
-
return (<div className="space-y-2">
|
132
|
-
<div className="flex items-center space-x-4">
|
133
|
-
<RadioCards {...args} defaultValue="On">
|
134
|
-
<RadioCardsItem value="Off" {...args}>
|
135
|
-
Off
|
136
|
-
</RadioCardsItem>
|
137
|
-
<RadioCardsItem value="On" {...args}>
|
138
|
-
On
|
139
|
-
</RadioCardsItem>
|
140
|
-
</RadioCards>
|
141
|
-
</div>
|
142
|
-
<div className="flex items-center space-x-4">
|
143
|
-
<RadioCards {...args} defaultValue="On">
|
144
|
-
<RadioCardsItem value="Off" {...args} disabled>
|
145
|
-
Off
|
146
|
-
</RadioCardsItem>
|
147
|
-
<RadioCardsItem value="On" {...args} disabled>
|
148
|
-
On
|
149
|
-
</RadioCardsItem>
|
150
|
-
</RadioCards>
|
151
|
-
</div>
|
131
|
+
return (<div className="space-y-2">
|
132
|
+
<div className="flex items-center space-x-4">
|
133
|
+
<RadioCards {...args} defaultValue="On">
|
134
|
+
<RadioCardsItem value="Off" {...args}>
|
135
|
+
Off
|
136
|
+
</RadioCardsItem>
|
137
|
+
<RadioCardsItem value="On" {...args}>
|
138
|
+
On
|
139
|
+
</RadioCardsItem>
|
140
|
+
</RadioCards>
|
141
|
+
</div>
|
142
|
+
<div className="flex items-center space-x-4">
|
143
|
+
<RadioCards {...args} defaultValue="On">
|
144
|
+
<RadioCardsItem value="Off" {...args} disabled>
|
145
|
+
Off
|
146
|
+
</RadioCardsItem>
|
147
|
+
<RadioCardsItem value="On" {...args} disabled>
|
148
|
+
On
|
149
|
+
</RadioCardsItem>
|
150
|
+
</RadioCards>
|
151
|
+
</div>
|
152
152
|
</div>);
|
153
153
|
};
|
@@ -71,72 +71,72 @@ var meta = {
|
|
71
71
|
export default meta;
|
72
72
|
export var Default = function (_a) {
|
73
73
|
var args = __rest(_a, []);
|
74
|
-
return (<RadioGroup defaultValue={'1'} name="example" {...args}>
|
75
|
-
<RadioGroupItem value="1" {...args}>
|
76
|
-
Default
|
77
|
-
</RadioGroupItem>
|
78
|
-
<RadioGroupItem value="2" {...args}>
|
79
|
-
Comfortable
|
80
|
-
</RadioGroupItem>
|
81
|
-
<RadioGroupItem value="3" {...args}>
|
82
|
-
Compact
|
83
|
-
</RadioGroupItem>
|
74
|
+
return (<RadioGroup defaultValue={'1'} name="example" {...args}>
|
75
|
+
<RadioGroupItem value="1" {...args}>
|
76
|
+
Default
|
77
|
+
</RadioGroupItem>
|
78
|
+
<RadioGroupItem value="2" {...args}>
|
79
|
+
Comfortable
|
80
|
+
</RadioGroupItem>
|
81
|
+
<RadioGroupItem value="3" {...args}>
|
82
|
+
Compact
|
83
|
+
</RadioGroupItem>
|
84
84
|
</RadioGroup>);
|
85
85
|
};
|
86
86
|
export var Size = function (_a) {
|
87
87
|
var args = __rest(_a, []);
|
88
|
-
return (<div className="flex items-center space-x-4">
|
89
|
-
{['small', 'medium', 'large'].map(function (size) { return (<RadioGroup key={size} defaultValue={'1'} name={size} {...args} size={size}>
|
90
|
-
<RadioGroupItem value="1" {...args}>
|
91
|
-
Default
|
92
|
-
</RadioGroupItem>
|
93
|
-
<RadioGroupItem value="2" {...args}>
|
94
|
-
Comfortable
|
95
|
-
</RadioGroupItem>
|
96
|
-
<RadioGroupItem value="3" {...args}>
|
97
|
-
Compact
|
98
|
-
</RadioGroupItem>
|
99
|
-
</RadioGroup>); })}
|
88
|
+
return (<div className="flex items-center space-x-4">
|
89
|
+
{['small', 'medium', 'large'].map(function (size) { return (<RadioGroup key={size} defaultValue={'1'} name={size} {...args} size={size}>
|
90
|
+
<RadioGroupItem value="1" {...args}>
|
91
|
+
Default
|
92
|
+
</RadioGroupItem>
|
93
|
+
<RadioGroupItem value="2" {...args}>
|
94
|
+
Comfortable
|
95
|
+
</RadioGroupItem>
|
96
|
+
<RadioGroupItem value="3" {...args}>
|
97
|
+
Compact
|
98
|
+
</RadioGroupItem>
|
99
|
+
</RadioGroup>); })}
|
100
100
|
</div>);
|
101
101
|
};
|
102
102
|
export var Appearance = function (_a) {
|
103
103
|
var args = __rest(_a, []);
|
104
|
-
return (<div className="flex items-center space-x-4">
|
105
|
-
{['classic', 'soft', 'surface'].map(function (appearance) { return (<RadioGroup key={appearance} defaultValue={'1'} name={appearance} {...args} appearance={appearance}>
|
106
|
-
<RadioGroupItem value="1" {...args}>
|
107
|
-
Default
|
108
|
-
</RadioGroupItem>
|
109
|
-
<RadioGroupItem value="2" {...args}>
|
110
|
-
Comfortable
|
111
|
-
</RadioGroupItem>
|
112
|
-
<RadioGroupItem value="3" {...args}>
|
113
|
-
Compact
|
114
|
-
</RadioGroupItem>
|
115
|
-
</RadioGroup>); })}
|
104
|
+
return (<div className="flex items-center space-x-4">
|
105
|
+
{['classic', 'soft', 'surface'].map(function (appearance) { return (<RadioGroup key={appearance} defaultValue={'1'} name={appearance} {...args} appearance={appearance}>
|
106
|
+
<RadioGroupItem value="1" {...args}>
|
107
|
+
Default
|
108
|
+
</RadioGroupItem>
|
109
|
+
<RadioGroupItem value="2" {...args}>
|
110
|
+
Comfortable
|
111
|
+
</RadioGroupItem>
|
112
|
+
<RadioGroupItem value="3" {...args}>
|
113
|
+
Compact
|
114
|
+
</RadioGroupItem>
|
115
|
+
</RadioGroup>); })}
|
116
116
|
</div>);
|
117
117
|
};
|
118
118
|
export var Disabled = function (_a) {
|
119
119
|
var args = __rest(_a, []);
|
120
|
-
return (<div className="flex items-center space-x-4">
|
121
|
-
<div>
|
122
|
-
<RadioGroup defaultValue={'On'} {...args}>
|
123
|
-
<RadioGroupItem value="Off" {...args}>
|
124
|
-
Off
|
125
|
-
</RadioGroupItem>
|
126
|
-
<RadioGroupItem value="On" {...args}>
|
127
|
-
On
|
128
|
-
</RadioGroupItem>
|
129
|
-
</RadioGroup>
|
130
|
-
</div>
|
131
|
-
<div>
|
132
|
-
<RadioGroup defaultValue={'On'} {...args}>
|
133
|
-
<RadioGroupItem value="Off" {...args} disabled>
|
134
|
-
Off
|
135
|
-
</RadioGroupItem>
|
136
|
-
<RadioGroupItem value="On" {...args} disabled>
|
137
|
-
On
|
138
|
-
</RadioGroupItem>
|
139
|
-
</RadioGroup>
|
140
|
-
</div>
|
120
|
+
return (<div className="flex items-center space-x-4">
|
121
|
+
<div>
|
122
|
+
<RadioGroup defaultValue={'On'} {...args}>
|
123
|
+
<RadioGroupItem value="Off" {...args}>
|
124
|
+
Off
|
125
|
+
</RadioGroupItem>
|
126
|
+
<RadioGroupItem value="On" {...args}>
|
127
|
+
On
|
128
|
+
</RadioGroupItem>
|
129
|
+
</RadioGroup>
|
130
|
+
</div>
|
131
|
+
<div>
|
132
|
+
<RadioGroup defaultValue={'On'} {...args}>
|
133
|
+
<RadioGroupItem value="Off" {...args} disabled>
|
134
|
+
Off
|
135
|
+
</RadioGroupItem>
|
136
|
+
<RadioGroupItem value="On" {...args} disabled>
|
137
|
+
On
|
138
|
+
</RadioGroupItem>
|
139
|
+
</RadioGroup>
|
140
|
+
</div>
|
141
141
|
</div>);
|
142
142
|
};
|