@lotte-innovate/ui-component-test 0.0.13 → 0.0.15
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Typography/Header/{index.js → index.jsx} +5 -2
- package/dist/Typography/Text/{index.js → index.jsx} +6 -3
- package/dist/components/Accordion/{index.js → index.jsx} +17 -5
- package/dist/components/AlertDialog/{AlertDialogAction.js → AlertDialogAction.jsx} +4 -3
- package/dist/components/AlertDialog/{AlertDialogCancel.js → AlertDialogCancel.jsx} +4 -3
- package/dist/components/AlertDialog/{AlertDialogContent.js → AlertDialogContent.jsx} +7 -3
- package/dist/components/AlertDialog/{AlertDialogDescription.js → AlertDialogDescription.jsx} +4 -14
- package/dist/components/AlertDialog/{AlertDialogTitle.js → AlertDialogTitle.jsx} +4 -14
- package/dist/components/AlertDialog/{AlertDialogTrigger.js → AlertDialogTrigger.jsx} +4 -3
- package/dist/components/AlertDialog/{index.js → index.jsx} +4 -14
- package/dist/components/AspectRatio/{index.js → index.jsx} +4 -3
- package/dist/components/Avatar/{index.js → index.jsx} +7 -3
- package/dist/components/Badge/{index.js → index.jsx} +4 -3
- package/dist/components/BubbleChart/index.d.ts +2 -1
- package/dist/components/BubbleChart/{index.js → index.jsx} +2 -2
- package/dist/components/Button/{index.js → index.jsx} +4 -3
- package/dist/components/Callout/{CalloutIcon.js → CalloutIcon.jsx} +8 -3
- package/dist/components/Callout/{CalloutText.js → CalloutText.jsx} +4 -14
- package/dist/components/Callout/{index.js → index.jsx} +6 -3
- package/dist/components/Card/{index.js → index.jsx} +4 -3
- package/dist/components/Checkbox/{index.js → index.jsx} +11 -3
- package/dist/components/CheckboxCard/{index.js → index.jsx} +5 -3
- package/dist/components/CheckboxGroup/{CheckboxGroupItem.js → CheckboxGroupItem.jsx} +6 -14
- package/dist/components/CheckboxGroup/{index.js → index.jsx} +5 -2
- package/dist/components/ContextMenu/{ContextMenuCheckboxItem.js → ContextMenuCheckboxItem.jsx} +7 -14
- package/dist/components/ContextMenu/{ContextMenuContent.js → ContextMenuContent.jsx} +6 -3
- package/dist/components/ContextMenu/{ContextMenuGroup.js → ContextMenuGroup.jsx} +4 -14
- package/dist/components/ContextMenu/{ContextMenuItem.js → ContextMenuItem.jsx} +5 -3
- package/dist/components/ContextMenu/{ContextMenuItemIndicator.js → ContextMenuItemIndicator.jsx} +4 -3
- package/dist/components/ContextMenu/{ContextMenuLabel.js → ContextMenuLabel.jsx} +4 -3
- package/dist/components/ContextMenu/{ContextMenuRadioGroup.js → ContextMenuRadioGroup.jsx} +6 -14
- package/dist/components/ContextMenu/{ContextMenuRadioItem.js → ContextMenuRadioItem.jsx} +7 -14
- package/dist/components/ContextMenu/{ContextMenuSeparator.js → ContextMenuSeparator.jsx} +4 -14
- package/dist/components/ContextMenu/{ContextMenuSubContent.js → ContextMenuSubContent.jsx} +9 -6
- package/dist/components/ContextMenu/{ContextMenuSubTrigger.js → ContextMenuSubTrigger.jsx} +9 -14
- package/dist/components/ContextMenu/{ContextMenuTrigger.js → ContextMenuTrigger.jsx} +4 -14
- package/dist/components/ContextMenu/{index.js → index.jsx} +6 -14
- package/dist/components/DataList/{DataListItem.js → DataListItem.jsx} +4 -3
- package/dist/components/DataList/{DataListLabel.js → DataListLabel.jsx} +4 -3
- package/dist/components/DataList/{DataListValue.js → DataListValue.jsx} +4 -3
- package/dist/components/DataList/{index.js → index.jsx} +6 -14
- package/dist/components/Dialog/{DialogAction.js → DialogAction.jsx} +4 -14
- package/dist/components/Dialog/{DialogCancel.js → DialogCancel.jsx} +4 -14
- package/dist/components/Dialog/{DialogContent.js → DialogContent.jsx} +4 -3
- package/dist/components/Dialog/{DialogDescription.js → DialogDescription.jsx} +4 -14
- package/dist/components/Dialog/{DialogSlot.js → DialogSlot.jsx} +4 -14
- package/dist/components/Dialog/{DialogTitle.js → DialogTitle.jsx} +4 -14
- package/dist/components/Dialog/{DialogTrigger.js → DialogTrigger.jsx} +4 -14
- package/dist/components/Dialog/{index.js → index.jsx} +4 -14
- package/dist/components/DoughnutChart/index.d.ts +2 -1
- package/dist/components/DoughnutChart/{index.js → index.jsx} +2 -2
- package/dist/components/DropdownMenu/{DropdonMenuRadioGroup.js → DropdonMenuRadioGroup.jsx} +6 -14
- package/dist/components/DropdownMenu/{DropdonMenuSubContent.js → DropdonMenuSubContent.jsx} +10 -7
- package/dist/components/DropdownMenu/{DropdownMenuCheckboxItem.js → DropdownMenuCheckboxItem.jsx} +7 -14
- package/dist/components/DropdownMenu/{DropdownMenuContent.js → DropdownMenuContent.jsx} +6 -3
- package/dist/components/DropdownMenu/{DropdownMenuItem.js → DropdownMenuItem.jsx} +5 -3
- package/dist/components/DropdownMenu/{DropdownMenuItemIndicator.js → DropdownMenuItemIndicator.jsx} +4 -3
- package/dist/components/DropdownMenu/{DropdownMenuLable.js → DropdownMenuLable.jsx} +4 -3
- package/dist/components/DropdownMenu/{DropdownMenuRadioItem.js → DropdownMenuRadioItem.jsx} +7 -14
- package/dist/components/DropdownMenu/{DropdownMenuSeparator.js → DropdownMenuSeparator.jsx} +2 -14
- package/dist/components/DropdownMenu/{DropdownMenuSub.js → DropdownMenuSub.jsx} +2 -14
- package/dist/components/DropdownMenu/{DropdownMenuSubTrigger.js → DropdownMenuSubTrigger.jsx} +7 -14
- package/dist/components/DropdownMenu/{DropdownMenuTrigger.js → DropdownMenuTrigger.jsx} +4 -14
- package/dist/components/DropdownMenu/{index.js → index.jsx} +2 -14
- package/dist/components/HoverCard/{HoverCardContent.js → HoverCardContent.jsx} +4 -3
- package/dist/components/HoverCard/{HoverCardTrigger.js → HoverCardTrigger.jsx} +4 -14
- package/dist/components/HoverCard/{index.js → index.jsx} +4 -14
- package/dist/components/IconButton/{index.js → index.jsx} +3 -2
- package/dist/components/Inset/{index.js → index.jsx} +6 -3
- package/dist/components/Label/{index.js → index.jsx} +3 -2
- package/dist/components/Menubar/{MenubarCheckboxItem.js → MenubarCheckboxItem.jsx} +7 -14
- package/dist/components/Menubar/{MenubarContent.js → MenubarContent.jsx} +10 -7
- package/dist/components/Menubar/{MenubarItem.js → MenubarItem.jsx} +5 -3
- package/dist/components/Menubar/{MenubarItemIndicator.js → MenubarItemIndicator.jsx} +4 -3
- package/dist/components/Menubar/{MenubarMenu.js → MenubarMenu.jsx} +2 -14
- package/dist/components/Menubar/{MenubarRadioGroup.js → MenubarRadioGroup.jsx} +6 -14
- package/dist/components/Menubar/{MenubarRadioItem.js → MenubarRadioItem.jsx} +7 -14
- package/dist/components/Menubar/{MenubarSeparator.js → MenubarSeparator.jsx} +4 -14
- package/dist/components/Menubar/{MenubarSub.js → MenubarSub.jsx} +2 -14
- package/dist/components/Menubar/{MenubarSubContent.js → MenubarSubContent.jsx} +5 -4
- package/dist/components/Menubar/{MenubarSubTrigger.js → MenubarSubTrigger.jsx} +7 -14
- package/dist/components/Menubar/{MenubarTrigger.js → MenubarTrigger.jsx} +4 -3
- package/dist/components/Menubar/{index.js → index.jsx} +6 -3
- package/dist/components/NavigationMenu/{NavigationMenuContent.js → NavigationMenuContent.jsx} +4 -3
- package/dist/components/NavigationMenu/NavigationMenuIndicator.jsx +22 -0
- package/dist/components/NavigationMenu/{NavigationMenuItem.js → NavigationMenuItem.jsx} +4 -14
- package/dist/components/NavigationMenu/{NavigationMenuLink.js → NavigationMenuLink.jsx} +4 -3
- package/dist/components/NavigationMenu/{NavigationMenuList.js → NavigationMenuList.jsx} +5 -3
- package/dist/components/NavigationMenu/{NavigationMenuTrigger.js → NavigationMenuTrigger.jsx} +5 -3
- package/dist/components/NavigationMenu/{NavigationMenuViewport.js → NavigationMenuViewport.jsx} +4 -3
- package/dist/components/NavigationMenu/{index.js → index.jsx} +6 -14
- package/dist/components/PieChart/index.d.ts +2 -1
- package/dist/components/PieChart/{index.js → index.jsx} +2 -2
- package/dist/components/Popover/{PopoverClose.js → PopoverClose.jsx} +4 -14
- package/dist/components/Popover/{PopoverContent.js → PopoverContent.jsx} +4 -3
- package/dist/components/Popover/{PopoverTrigger.js → PopoverTrigger.jsx} +4 -14
- package/dist/components/Popover/{index.js → index.jsx} +4 -14
- package/dist/components/Progress/{index.js → index.jsx} +4 -3
- package/dist/components/RadarChart/index.d.ts +2 -1
- package/dist/components/RadarChart/{index.js → index.jsx} +2 -2
- package/dist/components/Radio/{index.js → index.jsx} +8 -13
- package/dist/components/RadioCards/{RadioCardsItem.js → RadioCardsItem.jsx} +4 -14
- package/dist/components/RadioCards/{index.js → index.jsx} +6 -3
- package/dist/components/RadioGroup/{RadioGroupItem.js → RadioGroupItem.jsx} +4 -14
- package/dist/components/RadioGroup/{index.js → index.jsx} +6 -14
- package/dist/components/ScrollArea/{index.js → index.jsx} +6 -14
- package/dist/components/SegmentedControl/{SegmentedControlItem.js → SegmentedControlItem.jsx} +4 -14
- package/dist/components/SegmentedControl/{index.js → index.jsx} +5 -2
- package/dist/components/Select/{index.js → index.jsx} +25 -8
- package/dist/components/Separator/{index.js → index.jsx} +5 -2
- package/dist/components/Skeleton/{index.js → index.jsx} +5 -2
- package/dist/components/Slider/{index.js → index.jsx} +3 -2
- package/dist/components/Spinner/{index.js → index.jsx} +5 -2
- package/dist/components/TabNav/{index.js → index.jsx} +8 -14
- package/dist/components/Table/{index.js → index.jsx} +23 -8
- package/dist/components/Tabs/{index.js → index.jsx} +14 -5
- package/dist/components/TextArea/{index.js → index.jsx} +3 -2
- package/dist/components/TextField/{index.js → index.jsx} +8 -3
- package/dist/components/Toast/{ToastActionButton.js → ToastActionButton.jsx} +4 -3
- package/dist/components/Toast/{ToastDescription.js → ToastDescription.jsx} +6 -14
- package/dist/components/Toast/{ToastTitle.js → ToastTitle.jsx} +4 -14
- package/dist/components/Toast/{index.js → index.jsx} +9 -3
- package/dist/components/Toggle/{ToggleWithText.js → ToggleWithText.jsx} +6 -4
- package/dist/components/Toggle/{index.js → index.jsx} +4 -3
- package/dist/components/ToggleGroup/{index.js → index.jsx} +6 -3
- package/dist/components/ToggleGroup/{toggleGroupItem.js → toggleGroupItem.jsx} +4 -14
- package/dist/components/ToggleSwitch/{index.js → index.jsx} +6 -2
- package/dist/components/Tooltip/{index.js → index.jsx} +11 -2
- package/package.json +11 -2
- package/dist/app/layout.d.ts +0 -7
- package/dist/app/layout.js +0 -12
- package/dist/app/page.d.ts +0 -1
- package/dist/app/page.js +0 -6
- package/dist/app/template/colorPicker.d.ts +0 -6
- package/dist/app/template/colorPicker.js +0 -14
- package/dist/app/template/theme.d.ts +0 -12
- package/dist/app/template/theme.js +0 -11
- package/dist/components/NavigationMenu/NavigationMenuIndicator.js +0 -31
- package/dist/stories/Welcome.d.ts +0 -2
- package/dist/stories/Welcome.js +0 -30
- package/dist/stories/accordion/Accordion.stories.d.ts +0 -71
- package/dist/stories/accordion/Accordion.stories.js +0 -61
- package/dist/stories/alert-dialog/AlertDialog.stories.d.ts +0 -107
- package/dist/stories/alert-dialog/AlertDialog.stories.js +0 -60
- package/dist/stories/aspect-ratio/AspectRatio.stories.d.ts +0 -68
- package/dist/stories/aspect-ratio/AspectRatio.stories.js +0 -78
- package/dist/stories/avatar/Avatar.stories.d.ts +0 -127
- package/dist/stories/avatar/Avatar.stories.js +0 -94
- package/dist/stories/badge/Badge.stories.d.ts +0 -133
- package/dist/stories/badge/Badge.stories.js +0 -86
- package/dist/stories/bubble-chart/BubbleChart.stories.d.ts +0 -102
- package/dist/stories/bubble-chart/BubbleChart.stories.js +0 -168
- package/dist/stories/button/Button.stories.d.ts +0 -148
- package/dist/stories/button/Button.stories.js +0 -65
- package/dist/stories/button/IconButton.stories.d.ts +0 -125
- package/dist/stories/button/IconButton.stories.js +0 -80
- package/dist/stories/callout/Callout.stories.d.ts +0 -129
- package/dist/stories/callout/Callout.stories.js +0 -104
- package/dist/stories/card/Card.stories.d.ts +0 -100
- package/dist/stories/card/Card.stories.js +0 -84
- package/dist/stories/checkbox/Checkbox.stories.d.ts +0 -147
- package/dist/stories/checkbox/Checkbox.stories.js +0 -110
- package/dist/stories/checkbox/CheckboxCard.stories.d.ts +0 -129
- package/dist/stories/checkbox/CheckboxCard.stories.js +0 -90
- package/dist/stories/checkbox/CheckboxGroup.stories.d.ts +0 -91
- package/dist/stories/checkbox/CheckboxGroup.stories.js +0 -72
- package/dist/stories/context-menu/ContextMenu.stories.d.ts +0 -113
- package/dist/stories/context-menu/ContextMenu.stories.js +0 -86
- package/dist/stories/data-list/DataList.stories.d.ts +0 -97
- package/dist/stories/data-list/DataList.stories.js +0 -87
- package/dist/stories/dialog/Dialog.stories.d.ts +0 -88
- package/dist/stories/dialog/Dialog.stories.js +0 -59
- package/dist/stories/doughnut-chart/DoughnutChart.stories.d.ts +0 -180
- package/dist/stories/doughnut-chart/DoughnutChart.stories.js +0 -228
- package/dist/stories/dropdown-menu/DropdownMenu.stories.d.ts +0 -112
- package/dist/stories/dropdown-menu/DropdownMenu.stories.js +0 -75
- package/dist/stories/header/Header.stories.d.ts +0 -112
- package/dist/stories/header/Header.stories.js +0 -97
- package/dist/stories/hover-card/HoverCard.stories.d.ts +0 -107
- package/dist/stories/hover-card/HoverCard.stories.js +0 -71
- package/dist/stories/inset/Inset.stories.d.ts +0 -58
- package/dist/stories/inset/Inset.stories.js +0 -64
- package/dist/stories/label/Label.stories.d.ts +0 -94
- package/dist/stories/label/Label.stories.js +0 -91
- package/dist/stories/menubar/Menubar.stories.d.ts +0 -119
- package/dist/stories/menubar/Menubar.stories.js +0 -98
- package/dist/stories/navigation-menu/NavigationMenu.stories.d.ts +0 -385
- package/dist/stories/navigation-menu/NavigationMenu.stories.js +0 -79
- package/dist/stories/pie-chart/PieChart.stories.d.ts +0 -185
- package/dist/stories/pie-chart/PieChart.stories.js +0 -281
- package/dist/stories/popover/Popover.stories.d.ts +0 -78
- package/dist/stories/popover/Popover.stories.js +0 -74
- package/dist/stories/progress/Progress.stories.d.ts +0 -113
- package/dist/stories/progress/Progress.stories.js +0 -77
- package/dist/stories/radar-chart/RadarChart.stories.d.ts +0 -110
- package/dist/stories/radar-chart/RadarChart.stories.js +0 -201
- package/dist/stories/radio/Radio.stories.d.ts +0 -108
- package/dist/stories/radio/Radio.stories.js +0 -84
- package/dist/stories/radio/RadioCards.stories.d.ts +0 -127
- package/dist/stories/radio/RadioCards.stories.js +0 -94
- package/dist/stories/radio/RadioGroup.stories.d.ts +0 -111
- package/dist/stories/radio/RadioGroup.stories.js +0 -88
- package/dist/stories/scroll-area/ScrollArea.stories.d.ts +0 -59
- package/dist/stories/scroll-area/ScrollArea.stories.js +0 -63
- package/dist/stories/segmented-control/SegmentedControl.stories.d.ts +0 -97
- package/dist/stories/segmented-control/SegmentedControl.stories.js +0 -80
- package/dist/stories/select/Select.stories.d.ts +0 -116
- package/dist/stories/select/Select.stories.js +0 -88
- package/dist/stories/separator/Separator.stories.d.ts +0 -93
- package/dist/stories/separator/Separator.stories.js +0 -82
- package/dist/stories/skeleton/Skeleton.stories.d.ts +0 -88
- package/dist/stories/skeleton/Skeleton.stories.js +0 -92
- package/dist/stories/slider/Slider.stories.d.ts +0 -114
- package/dist/stories/slider/Slider.stories.js +0 -83
- package/dist/stories/spinner/Spinner.stories.d.ts +0 -83
- package/dist/stories/spinner/Spinner.stories.js +0 -87
- package/dist/stories/switch/Switch.stories.d.ts +0 -146
- package/dist/stories/switch/Switch.stories.js +0 -108
- package/dist/stories/tab-nav/TabNav.stories.d.ts +0 -55
- package/dist/stories/tab-nav/TabNav.stories.js +0 -59
- package/dist/stories/table/Table.stories.d.ts +0 -87
- package/dist/stories/table/Table.stories.js +0 -79
- package/dist/stories/tabs/Tabs.stories.d.ts +0 -55
- package/dist/stories/tabs/Tabs.stories.js +0 -59
- package/dist/stories/text/Text.stories.d.ts +0 -74
- package/dist/stories/text/Text.stories.js +0 -76
- package/dist/stories/textArea/TextArea.stories.d.ts +0 -117
- package/dist/stories/textArea/TextArea.stories.js +0 -96
- package/dist/stories/textfield/TextField.stories.d.ts +0 -116
- package/dist/stories/textfield/TextField.stories.js +0 -88
- package/dist/stories/toast/Toast.stories.d.ts +0 -138
- package/dist/stories/toast/Toast.stories.js +0 -104
- package/dist/stories/toggle/Toggle.stories.d.ts +0 -115
- package/dist/stories/toggle/Toggle.stories.js +0 -89
- package/dist/stories/toggle/ToggleGroup.stories.d.ts +0 -103
- package/dist/stories/toggle/ToggleGroup.stories.js +0 -94
- package/dist/stories/tooltip/Tooltip.stories.d.ts +0 -93
- package/dist/stories/tooltip/Tooltip.stories.js +0 -78
- package/dist/tsconfig.tsbuildinfo +0 -1
@@ -1,185 +0,0 @@
|
|
1
|
-
declare const meta: {
|
2
|
-
title: string;
|
3
|
-
component: ({ labels, datasets, scaling, className, ...rest }: import("components/PieChart").PieChartProps) => import("react/jsx-runtime").JSX.Element;
|
4
|
-
parameters: {
|
5
|
-
layout: string;
|
6
|
-
docs: {
|
7
|
-
description: {
|
8
|
-
component: string;
|
9
|
-
};
|
10
|
-
};
|
11
|
-
};
|
12
|
-
tags: string[];
|
13
|
-
args: {
|
14
|
-
labels: string[];
|
15
|
-
datasets: {
|
16
|
-
label: string;
|
17
|
-
data: number[];
|
18
|
-
backgroundColor: string[];
|
19
|
-
borderColor: string[];
|
20
|
-
borderWidth: number;
|
21
|
-
}[];
|
22
|
-
options: {
|
23
|
-
plugins: {
|
24
|
-
legend: {
|
25
|
-
position: string;
|
26
|
-
labels: {
|
27
|
-
usePointStyle: boolean;
|
28
|
-
pointStyle: boolean;
|
29
|
-
};
|
30
|
-
};
|
31
|
-
title: {
|
32
|
-
display: boolean;
|
33
|
-
text: string;
|
34
|
-
};
|
35
|
-
};
|
36
|
-
};
|
37
|
-
};
|
38
|
-
argTypes: {
|
39
|
-
scaling: {
|
40
|
-
description: string;
|
41
|
-
table: {
|
42
|
-
category: string;
|
43
|
-
type: {
|
44
|
-
summary: string;
|
45
|
-
};
|
46
|
-
};
|
47
|
-
control: {
|
48
|
-
type: string;
|
49
|
-
};
|
50
|
-
options: import("types").IScaling[];
|
51
|
-
defaultValue: {
|
52
|
-
summary: string;
|
53
|
-
};
|
54
|
-
};
|
55
|
-
labels: {
|
56
|
-
name: string;
|
57
|
-
description: string;
|
58
|
-
table: {
|
59
|
-
category: string;
|
60
|
-
type: {
|
61
|
-
summary: string;
|
62
|
-
};
|
63
|
-
};
|
64
|
-
};
|
65
|
-
datasets: {
|
66
|
-
name: string;
|
67
|
-
description: string;
|
68
|
-
table: {
|
69
|
-
category: string;
|
70
|
-
type: {
|
71
|
-
summary: string;
|
72
|
-
};
|
73
|
-
};
|
74
|
-
};
|
75
|
-
'options.plugins.legend.position': {
|
76
|
-
description: string;
|
77
|
-
table: {
|
78
|
-
category: string;
|
79
|
-
type: {
|
80
|
-
summary: string;
|
81
|
-
};
|
82
|
-
};
|
83
|
-
control: {
|
84
|
-
type: string;
|
85
|
-
};
|
86
|
-
options: string[];
|
87
|
-
defaultValue: {
|
88
|
-
summary: string;
|
89
|
-
};
|
90
|
-
};
|
91
|
-
'options.plugins.legend.labels.pointStyle': {
|
92
|
-
description: string;
|
93
|
-
table: {
|
94
|
-
category: string;
|
95
|
-
type: {
|
96
|
-
summary: string;
|
97
|
-
};
|
98
|
-
};
|
99
|
-
control: {
|
100
|
-
type: string;
|
101
|
-
};
|
102
|
-
options: (string | boolean)[];
|
103
|
-
defaultValue: {
|
104
|
-
summary: string;
|
105
|
-
};
|
106
|
-
};
|
107
|
-
'options.plugins.legend.labels.usePointStyle': {
|
108
|
-
description: string;
|
109
|
-
table: {
|
110
|
-
category: string;
|
111
|
-
type: {
|
112
|
-
summary: string;
|
113
|
-
};
|
114
|
-
};
|
115
|
-
control: {
|
116
|
-
type: string;
|
117
|
-
};
|
118
|
-
defaultValue: {
|
119
|
-
summary: string;
|
120
|
-
};
|
121
|
-
};
|
122
|
-
className: {
|
123
|
-
table: {
|
124
|
-
disable: boolean;
|
125
|
-
};
|
126
|
-
};
|
127
|
-
'datasets.borderDash': {
|
128
|
-
table: {
|
129
|
-
category: string;
|
130
|
-
type: {
|
131
|
-
summary: string;
|
132
|
-
};
|
133
|
-
};
|
134
|
-
description: string;
|
135
|
-
control: string;
|
136
|
-
};
|
137
|
-
'datasets.borderDashOffset': {
|
138
|
-
table: {
|
139
|
-
category: string;
|
140
|
-
type: {
|
141
|
-
summary: string;
|
142
|
-
};
|
143
|
-
};
|
144
|
-
description: string;
|
145
|
-
control: string;
|
146
|
-
};
|
147
|
-
'datasets.offset': {
|
148
|
-
table: {
|
149
|
-
category: string;
|
150
|
-
type: {
|
151
|
-
summary: string;
|
152
|
-
};
|
153
|
-
};
|
154
|
-
description: string;
|
155
|
-
control: string;
|
156
|
-
};
|
157
|
-
'datasets.spacing': {
|
158
|
-
table: {
|
159
|
-
category: string;
|
160
|
-
type: {
|
161
|
-
summary: string;
|
162
|
-
};
|
163
|
-
};
|
164
|
-
description: string;
|
165
|
-
control: string;
|
166
|
-
};
|
167
|
-
'datasets.weight': {
|
168
|
-
table: {
|
169
|
-
category: string;
|
170
|
-
type: {
|
171
|
-
summary: string;
|
172
|
-
};
|
173
|
-
};
|
174
|
-
description: string;
|
175
|
-
control: string;
|
176
|
-
};
|
177
|
-
};
|
178
|
-
};
|
179
|
-
export default meta;
|
180
|
-
export declare const Default: ({ ...args }: {
|
181
|
-
[x: string]: any;
|
182
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
183
|
-
export declare const LabelsStyle: () => import("react/jsx-runtime").JSX.Element;
|
184
|
-
export declare const BorderStyles: () => import("react/jsx-runtime").JSX.Element;
|
185
|
-
export declare const DataLabels: () => import("react/jsx-runtime").JSX.Element;
|
@@ -1,281 +0,0 @@
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
2
|
-
__assign = Object.assign || function(t) {
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
4
|
-
s = arguments[i];
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
6
|
-
t[p] = s[p];
|
7
|
-
}
|
8
|
-
return t;
|
9
|
-
};
|
10
|
-
return __assign.apply(this, arguments);
|
11
|
-
};
|
12
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
13
|
-
var t = {};
|
14
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
15
|
-
t[p] = s[p];
|
16
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
17
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
18
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
19
|
-
t[p[i]] = s[p[i]];
|
20
|
-
}
|
21
|
-
return t;
|
22
|
-
};
|
23
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
24
|
-
import PieChart from 'components/PieChart';
|
25
|
-
import { amber, blue, green, orange, purple, red, ruby, violet, yellow } from 'color/light';
|
26
|
-
import { commonArgTypes } from '../../constants';
|
27
|
-
var pointStyleList = [
|
28
|
-
'circle',
|
29
|
-
'cross',
|
30
|
-
'crossRot',
|
31
|
-
'dash',
|
32
|
-
'line',
|
33
|
-
'rect',
|
34
|
-
'rectRounded',
|
35
|
-
'rectRot',
|
36
|
-
'star',
|
37
|
-
'triangle',
|
38
|
-
false,
|
39
|
-
];
|
40
|
-
var labelPositionList = ['top', 'bottom', 'left', 'right'];
|
41
|
-
var meta = {
|
42
|
-
title: 'Chart/PieChart',
|
43
|
-
component: PieChart,
|
44
|
-
parameters: {
|
45
|
-
layout: 'centered',
|
46
|
-
docs: {
|
47
|
-
description: {
|
48
|
-
component: '데이터 간의 관계 비율을 알려주는데 효과적인 파이 차트 컴포넌트',
|
49
|
-
},
|
50
|
-
},
|
51
|
-
},
|
52
|
-
tags: ['autodocs'],
|
53
|
-
args: {
|
54
|
-
labels: ['Red', 'Blue', 'Yellow', 'Green', 'Purple', 'Orange'],
|
55
|
-
datasets: [
|
56
|
-
{
|
57
|
-
label: 'Count',
|
58
|
-
data: [12, 19, 3, 5, 2, 3],
|
59
|
-
backgroundColor: [red[3], blue[3], yellow[2], green[3], purple[3], orange[3]],
|
60
|
-
borderColor: [red[9], blue[9], yellow[10], green[9], purple[9], orange[9]],
|
61
|
-
borderWidth: 1,
|
62
|
-
},
|
63
|
-
],
|
64
|
-
options: {
|
65
|
-
// responsive: false,
|
66
|
-
plugins: {
|
67
|
-
legend: {
|
68
|
-
position: 'top',
|
69
|
-
labels: {
|
70
|
-
usePointStyle: false,
|
71
|
-
pointStyle: false,
|
72
|
-
},
|
73
|
-
},
|
74
|
-
title: {
|
75
|
-
display: true,
|
76
|
-
text: '파이 차트 타이틀 영역',
|
77
|
-
},
|
78
|
-
},
|
79
|
-
},
|
80
|
-
},
|
81
|
-
argTypes: {
|
82
|
-
scaling: __assign(__assign({}, commonArgTypes.scaling), { description: '차트 크기 비율' }),
|
83
|
-
labels: {
|
84
|
-
name: 'labels',
|
85
|
-
description: '차트 위에 표시될 라벨들',
|
86
|
-
table: {
|
87
|
-
category: 'Props',
|
88
|
-
type: { summary: 'string[]' },
|
89
|
-
},
|
90
|
-
},
|
91
|
-
datasets: {
|
92
|
-
name: 'Datasets',
|
93
|
-
description: '차트에 사용할 데이터셋',
|
94
|
-
table: {
|
95
|
-
category: 'Props',
|
96
|
-
type: { summary: 'object' },
|
97
|
-
},
|
98
|
-
},
|
99
|
-
'options.plugins.legend.position': {
|
100
|
-
description: '라벨 위치',
|
101
|
-
table: {
|
102
|
-
category: 'Props',
|
103
|
-
type: { summary: labelPositionList.join(' | ') },
|
104
|
-
},
|
105
|
-
control: { type: 'select' },
|
106
|
-
options: labelPositionList,
|
107
|
-
defaultValue: { summary: 'top' },
|
108
|
-
},
|
109
|
-
'options.plugins.legend.labels.pointStyle': {
|
110
|
-
description: "- \uB77C\uBCA8 \uD3EC\uC778\uD2B8 \uC2A4\uD0C0\uC77C \n - usePointStyle\uAC00 true\uC778 \uACBD\uC6B0 \uC801\uC6A9",
|
111
|
-
table: {
|
112
|
-
category: 'Props',
|
113
|
-
type: { summary: pointStyleList.join(' | ') },
|
114
|
-
},
|
115
|
-
control: { type: 'select' },
|
116
|
-
options: pointStyleList,
|
117
|
-
defaultValue: { summary: 'false' },
|
118
|
-
},
|
119
|
-
'options.plugins.legend.labels.usePointStyle': {
|
120
|
-
description: '라벨 포인트 스타일 사용여부',
|
121
|
-
table: {
|
122
|
-
category: 'Props',
|
123
|
-
type: { summary: 'boolean' },
|
124
|
-
},
|
125
|
-
control: { type: 'boolean' },
|
126
|
-
defaultValue: { summary: 'false' },
|
127
|
-
},
|
128
|
-
className: {
|
129
|
-
table: {
|
130
|
-
disable: true,
|
131
|
-
},
|
132
|
-
},
|
133
|
-
'datasets.borderDash': {
|
134
|
-
table: {
|
135
|
-
category: '기타 속성',
|
136
|
-
type: { summary: 'number[]' },
|
137
|
-
},
|
138
|
-
description: "- \uCC28\uD2B8\uC758 \uAC01 \uC139\uC158\uC758 \uD14C\uB450\uB9AC\uB97C \uC810\uC120\uC73C\uB85C \uB9CC\uB4EC \n - ex)[5,5]: 5\uD53D\uC140 \uAE38\uC774\uC758 \uC120\uACFC 5\uD53D\uC140 \uAE38\uC774\uC758 \uAC04\uACA9",
|
139
|
-
control: 'readonly',
|
140
|
-
},
|
141
|
-
'datasets.borderDashOffset': {
|
142
|
-
table: {
|
143
|
-
category: '기타 속성',
|
144
|
-
type: { summary: 'number' },
|
145
|
-
},
|
146
|
-
description: "- \uC810\uC120\uC758 \uC2DC\uC791 \uC704\uCE58 \uC870\uC815 \n - ex) 2: \uC810\uC120\uC758 \uC2DC\uC791 \uC9C0\uC810\uC744 2\uD53D\uC140 \uC774\uB3D9",
|
147
|
-
control: 'readonly',
|
148
|
-
},
|
149
|
-
'datasets.offset': {
|
150
|
-
table: {
|
151
|
-
category: '기타 속성',
|
152
|
-
type: { summary: 'number' },
|
153
|
-
},
|
154
|
-
description: '각 섹션 사이의 간격 조정',
|
155
|
-
control: 'readonly',
|
156
|
-
},
|
157
|
-
'datasets.spacing': {
|
158
|
-
table: {
|
159
|
-
category: '기타 속성',
|
160
|
-
type: { summary: 'number' },
|
161
|
-
},
|
162
|
-
description: '각 섹션 사이의 간격 조정, offset과 유사',
|
163
|
-
control: 'readonly',
|
164
|
-
},
|
165
|
-
'datasets.weight': {
|
166
|
-
table: {
|
167
|
-
category: '기타 속성',
|
168
|
-
type: { summary: 'number' },
|
169
|
-
},
|
170
|
-
description: '각 섹션의 상대적인 두께를 설정, 섹션이 차지하는 공간의 비율을 조정',
|
171
|
-
control: 'readonly',
|
172
|
-
},
|
173
|
-
},
|
174
|
-
};
|
175
|
-
export default meta;
|
176
|
-
export var Default = function (_a) {
|
177
|
-
var args = __rest(_a, []);
|
178
|
-
return (_jsx("div", { className: "w-[300px]", children: _jsx(PieChart, __assign({ labels: args.label, datasets: args.datasets }, args)) }));
|
179
|
-
};
|
180
|
-
export var LabelsStyle = function () {
|
181
|
-
var labelStyleList = ['star', 'line', 'rect', 'circle'];
|
182
|
-
var labels = ['A', 'B', 'C', 'D'];
|
183
|
-
var datasets = [
|
184
|
-
{
|
185
|
-
data: [2, 4, 7, 3],
|
186
|
-
backgroundColor: [ruby[9], violet[9], amber[9], green[9]],
|
187
|
-
borderColor: [ruby[9], violet[9], amber[9], green[9]],
|
188
|
-
},
|
189
|
-
];
|
190
|
-
return (_jsx("div", { className: "flex", children: labelStyleList.map(function (labelOption) { return (_jsx("div", { className: "w-[200px]", children: _jsx(PieChart, { labels: labels, datasets: datasets, options: {
|
191
|
-
plugins: {
|
192
|
-
legend: {
|
193
|
-
labels: {
|
194
|
-
pointStyle: labelOption,
|
195
|
-
usePointStyle: true,
|
196
|
-
},
|
197
|
-
position: 'top',
|
198
|
-
},
|
199
|
-
},
|
200
|
-
} }) }, labelOption)); }) }));
|
201
|
-
};
|
202
|
-
export var BorderStyles = function () {
|
203
|
-
var exampleData = [2, 4, 7, 3];
|
204
|
-
var datasets = [
|
205
|
-
{
|
206
|
-
data: exampleData,
|
207
|
-
backgroundColor: [ruby[9], violet[9], amber[9], green[9]],
|
208
|
-
},
|
209
|
-
];
|
210
|
-
var options = {
|
211
|
-
plugins: {
|
212
|
-
title: {
|
213
|
-
display: true,
|
214
|
-
text: '테두리선 없앤 스타일',
|
215
|
-
},
|
216
|
-
},
|
217
|
-
};
|
218
|
-
var dashDatasets = [
|
219
|
-
{
|
220
|
-
data: exampleData,
|
221
|
-
backgroundColor: [ruby[3], violet[3], amber[3], green[3]],
|
222
|
-
borderColor: [ruby[9], violet[9], amber[9], green[9]],
|
223
|
-
borderDash: [5, 5],
|
224
|
-
},
|
225
|
-
];
|
226
|
-
var dashOptions = {
|
227
|
-
plugins: {
|
228
|
-
title: {
|
229
|
-
display: true,
|
230
|
-
text: '테두리선 dash 적용 스타일',
|
231
|
-
},
|
232
|
-
},
|
233
|
-
};
|
234
|
-
return (_jsxs("div", { className: "flex", children: [_jsx("div", { className: "w-[200px]", children: _jsx(PieChart, { datasets: datasets, options: options }) }), _jsx("div", { className: "w-[200px]", children: _jsx(PieChart, { datasets: dashDatasets, options: dashOptions }) })] }));
|
235
|
-
};
|
236
|
-
export var DataLabels = function () {
|
237
|
-
var datasets = [
|
238
|
-
{
|
239
|
-
data: [1, 2, 3, 4, 5],
|
240
|
-
backgroundColor: [ruby[9], violet[9], amber[9], green[9], blue[9]],
|
241
|
-
},
|
242
|
-
];
|
243
|
-
var options = {
|
244
|
-
plugins: {
|
245
|
-
title: {
|
246
|
-
display: true,
|
247
|
-
text: '기본 데이터 라벨',
|
248
|
-
},
|
249
|
-
datalabels: {
|
250
|
-
display: true,
|
251
|
-
color: 'white',
|
252
|
-
},
|
253
|
-
},
|
254
|
-
};
|
255
|
-
var customOptions = {
|
256
|
-
plugins: {
|
257
|
-
title: {
|
258
|
-
display: true,
|
259
|
-
text: '끝에 위치한 데이터 라벨',
|
260
|
-
},
|
261
|
-
datalabels: {
|
262
|
-
display: true,
|
263
|
-
backgroundColor: function (context) {
|
264
|
-
return context.dataset.backgroundColor;
|
265
|
-
},
|
266
|
-
borderColor: 'white',
|
267
|
-
borderRadius: 10,
|
268
|
-
borderWidth: 2,
|
269
|
-
color: 'white',
|
270
|
-
font: {
|
271
|
-
weight: 'bold',
|
272
|
-
size: 9,
|
273
|
-
},
|
274
|
-
padding: 5,
|
275
|
-
formatter: Math.round,
|
276
|
-
anchor: 'end',
|
277
|
-
},
|
278
|
-
},
|
279
|
-
};
|
280
|
-
return (_jsxs("div", { className: "flex", children: [_jsx("div", { className: "w-[200px]", children: _jsx(PieChart, { datasets: datasets, options: options }) }), _jsx("div", { className: "w-[200px]", children: _jsx(PieChart, { datasets: datasets, options: customOptions }) })] }));
|
281
|
-
};
|
@@ -1,78 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { ISize } from '../../types';
|
3
|
-
declare const meta: {
|
4
|
-
title: string;
|
5
|
-
component: import("react").ForwardRefExoticComponent<import("@radix-ui/themes/dist/cjs/components/popover").RootProps & import("../../components/Popover").PopoverProps & import("react").RefAttributes<never>>;
|
6
|
-
parameters: {
|
7
|
-
layout: string;
|
8
|
-
themes: {
|
9
|
-
themeOverride: string;
|
10
|
-
};
|
11
|
-
docs: {
|
12
|
-
description: {
|
13
|
-
component: string;
|
14
|
-
};
|
15
|
-
};
|
16
|
-
};
|
17
|
-
tags: string[];
|
18
|
-
argTypes: {
|
19
|
-
radius: {
|
20
|
-
description: string;
|
21
|
-
table: {
|
22
|
-
category: string;
|
23
|
-
type: {
|
24
|
-
summary: string;
|
25
|
-
};
|
26
|
-
};
|
27
|
-
options: import("../../types").IRadius[];
|
28
|
-
control: {
|
29
|
-
type: string;
|
30
|
-
};
|
31
|
-
defaultValue: {
|
32
|
-
summary: string;
|
33
|
-
};
|
34
|
-
};
|
35
|
-
size: {
|
36
|
-
table: {
|
37
|
-
category: string;
|
38
|
-
type: {
|
39
|
-
summary: string;
|
40
|
-
};
|
41
|
-
};
|
42
|
-
options: ISize[];
|
43
|
-
description: string;
|
44
|
-
control: {
|
45
|
-
type: string;
|
46
|
-
};
|
47
|
-
defaultValue: {
|
48
|
-
summary: string;
|
49
|
-
};
|
50
|
-
};
|
51
|
-
scaling: {
|
52
|
-
description: string;
|
53
|
-
table: {
|
54
|
-
category: string;
|
55
|
-
type: {
|
56
|
-
summary: string;
|
57
|
-
};
|
58
|
-
};
|
59
|
-
control: {
|
60
|
-
type: string;
|
61
|
-
};
|
62
|
-
options: import("../../types").IScaling[];
|
63
|
-
defaultValue: {
|
64
|
-
summary: string;
|
65
|
-
};
|
66
|
-
};
|
67
|
-
};
|
68
|
-
args: {
|
69
|
-
size: "medium";
|
70
|
-
};
|
71
|
-
};
|
72
|
-
export default meta;
|
73
|
-
export declare const Default: ({ ...args }: {
|
74
|
-
[x: string]: any;
|
75
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
76
|
-
export declare const WithInset: ({ ...args }: {
|
77
|
-
[x: string]: any;
|
78
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
@@ -1,74 +0,0 @@
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
2
|
-
__assign = Object.assign || function(t) {
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
4
|
-
s = arguments[i];
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
6
|
-
t[p] = s[p];
|
7
|
-
}
|
8
|
-
return t;
|
9
|
-
};
|
10
|
-
return __assign.apply(this, arguments);
|
11
|
-
};
|
12
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
13
|
-
var t = {};
|
14
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
15
|
-
t[p] = s[p];
|
16
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
17
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
18
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
19
|
-
t[p[i]] = s[p[i]];
|
20
|
-
}
|
21
|
-
return t;
|
22
|
-
};
|
23
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
24
|
-
import { commonArgTypes, sizeOptions } from '../../constants';
|
25
|
-
import { Inset } from '@radix-ui/themes';
|
26
|
-
import { Popover, PopoverTrigger, PopoverContent, PopoverClose } from '../../components/Popover';
|
27
|
-
import { TextArea } from 'components/TextArea';
|
28
|
-
import Button from 'components/Button';
|
29
|
-
import Avatar from 'components/Avatar';
|
30
|
-
import Image from 'next/image';
|
31
|
-
var meta = {
|
32
|
-
title: 'Component/Popover',
|
33
|
-
component: Popover,
|
34
|
-
parameters: {
|
35
|
-
layout: 'centered',
|
36
|
-
themes: {
|
37
|
-
themeOverride: 'dark',
|
38
|
-
},
|
39
|
-
docs: {
|
40
|
-
description: {
|
41
|
-
component: '특정 개체 위에 포인트를 클릭했을 때 제공되는 컨테이너 요소',
|
42
|
-
},
|
43
|
-
},
|
44
|
-
},
|
45
|
-
tags: ['autodocs'],
|
46
|
-
argTypes: {
|
47
|
-
radius: __assign(__assign({}, commonArgTypes.radius), { description: 'popover 둥글기' }),
|
48
|
-
size: __assign(__assign({}, commonArgTypes.size), { table: {
|
49
|
-
category: 'Props',
|
50
|
-
type: {
|
51
|
-
summary: sizeOptions.filter(function (value) { return value != 'x-small'; }).join(' | '),
|
52
|
-
},
|
53
|
-
}, options: sizeOptions.filter(function (value) { return value != 'x-small'; }), description: 'popover 크기' }),
|
54
|
-
scaling: __assign(__assign({}, commonArgTypes.scaling), { description: 'popover 비율' }),
|
55
|
-
},
|
56
|
-
args: {
|
57
|
-
size: 'medium',
|
58
|
-
},
|
59
|
-
};
|
60
|
-
export default meta;
|
61
|
-
export var Default = function (_a) {
|
62
|
-
var args = __rest(_a, []);
|
63
|
-
return (_jsxs(Popover, __assign({}, args, { children: [_jsx(PopoverTrigger, { children: _jsx(Button, { children: "Comment" }) }), _jsxs(PopoverContent, __assign({}, args, { children: [_jsx(Avatar, __assign({ 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'
|
64
|
-
? '2'
|
65
|
-
: args.size === 'large'
|
66
|
-
? '4'
|
67
|
-
: args.size === 'x-large'
|
68
|
-
? '5'
|
69
|
-
: '3' })), _jsxs("div", { className: "grow", children: [_jsx(TextArea, __assign({ placeholder: "Write a comment\u2026" }, args, { className: "w-full" })), _jsx("div", { className: "flex mt-3 justify-end", children: _jsx(PopoverClose, __assign({}, args, { children: _jsx(Button, { children: "Comment" }) })) })] })] }))] })));
|
70
|
-
};
|
71
|
-
export var WithInset = function (_a) {
|
72
|
-
var args = __rest(_a, []);
|
73
|
-
return (_jsxs(Popover, __assign({}, args, { children: [_jsx(PopoverTrigger, { children: _jsx(Button, { children: "Share image" }) }), _jsx(PopoverContent, __assign({}, args, { children: _jsxs("div", { className: "grid grid-cols-[130px_1fr]", children: [_jsx(Inset, { side: "left", pr: "current", children: _jsx(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%' } }) }), _jsxs("div", { children: [_jsx("span", { children: "Minimalistic 3D rendering wallpaper." }), _jsx("div", { className: "mt-2 flex-col items-stretch", children: _jsx(PopoverClose, __assign({}, args, { children: _jsx(Button, { children: "Copy link" }) })) })] })] }) }))] })));
|
74
|
-
};
|