@lotte-innovate/ui-component-test 0.0.7 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (143) hide show
  1. package/README.md +163 -163
  2. package/dist/Typography/Header/index.d.ts +1 -1
  3. package/dist/Typography/index.d.ts +2 -2
  4. package/dist/Typography/index.js +3 -3
  5. package/dist/app/layout.d.ts +7 -0
  6. package/dist/app/layout.js +12 -0
  7. package/dist/app/page.d.ts +1 -0
  8. package/dist/app/page.js +25 -0
  9. package/dist/app/template/badgeTemplate.d.ts +11 -0
  10. package/dist/app/template/badgeTemplate.js +11 -0
  11. package/dist/app/template/buttonTemplate.d.ts +11 -0
  12. package/dist/app/template/buttonTemplate.js +11 -0
  13. package/dist/app/template/colorPicker.d.ts +6 -0
  14. package/dist/app/template/colorPicker.js +14 -0
  15. package/dist/app/template/textTemplate.d.ts +10 -0
  16. package/dist/app/template/textTemplate.js +23 -0
  17. package/dist/app/template/theme.d.ts +12 -0
  18. package/dist/app/template/theme.js +12 -0
  19. package/dist/color/alpha.d.ts +784 -0
  20. package/dist/color/alpha.js +784 -0
  21. package/dist/color/constants.d.ts +20 -0
  22. package/dist/color/constants.js +200 -0
  23. package/dist/color/dark.d.ts +392 -0
  24. package/dist/color/dark.js +392 -0
  25. package/dist/color/krdsColors.d.ts +309 -0
  26. package/dist/color/krdsColors.js +309 -0
  27. package/dist/color/light.d.ts +392 -0
  28. package/dist/color/light.js +393 -0
  29. package/dist/components/Tooltip/index.d.ts +1 -1
  30. package/dist/components/index.d.ts +2 -0
  31. package/dist/constants.d.ts +185 -0
  32. package/dist/constants.js +569 -0
  33. package/dist/index.d.ts +5 -0
  34. package/dist/index.js +3 -0
  35. package/dist/stories/Welcome.d.ts +2 -0
  36. package/dist/stories/Welcome.js +30 -0
  37. package/dist/stories/accordion/Accordion.stories.d.ts +71 -0
  38. package/dist/stories/accordion/Accordion.stories.js +61 -0
  39. package/dist/stories/alert-dialog/AlertDialog.stories.d.ts +107 -0
  40. package/dist/stories/alert-dialog/AlertDialog.stories.js +60 -0
  41. package/dist/stories/aspect-ratio/AspectRatio.stories.d.ts +68 -0
  42. package/dist/stories/aspect-ratio/AspectRatio.stories.js +78 -0
  43. package/dist/stories/avatar/Avatar.stories.d.ts +127 -0
  44. package/dist/stories/avatar/Avatar.stories.js +94 -0
  45. package/dist/stories/badge/Badge.stories.d.ts +133 -0
  46. package/dist/stories/badge/Badge.stories.js +86 -0
  47. package/dist/stories/bubble-chart/BubbleChart.stories.d.ts +102 -0
  48. package/dist/stories/bubble-chart/BubbleChart.stories.js +168 -0
  49. package/dist/stories/button/Button.stories.d.ts +148 -0
  50. package/dist/stories/button/Button.stories.js +65 -0
  51. package/dist/stories/button/IconButton.stories.d.ts +125 -0
  52. package/dist/stories/button/IconButton.stories.js +80 -0
  53. package/dist/stories/callout/Callout.stories.d.ts +129 -0
  54. package/dist/stories/callout/Callout.stories.js +104 -0
  55. package/dist/stories/card/Card.stories.d.ts +100 -0
  56. package/dist/stories/card/Card.stories.js +84 -0
  57. package/dist/stories/checkbox/Checkbox.stories.d.ts +147 -0
  58. package/dist/stories/checkbox/Checkbox.stories.js +110 -0
  59. package/dist/stories/checkbox/CheckboxCard.stories.d.ts +129 -0
  60. package/dist/stories/checkbox/CheckboxCard.stories.js +90 -0
  61. package/dist/stories/checkbox/CheckboxGroup.stories.d.ts +91 -0
  62. package/dist/stories/checkbox/CheckboxGroup.stories.js +72 -0
  63. package/dist/stories/context-menu/ContextMenu.stories.d.ts +113 -0
  64. package/dist/stories/context-menu/ContextMenu.stories.js +86 -0
  65. package/dist/stories/data-list/DataList.stories.d.ts +97 -0
  66. package/dist/stories/data-list/DataList.stories.js +87 -0
  67. package/dist/{components/Input/Input.stories.d.ts → stories/dialog/Dialog.stories.d.ts} +39 -28
  68. package/dist/stories/dialog/Dialog.stories.js +59 -0
  69. package/dist/stories/doughnut-chart/DoughnutChart.stories.d.ts +180 -0
  70. package/dist/stories/doughnut-chart/DoughnutChart.stories.js +228 -0
  71. package/dist/stories/dropdown-menu/DropdownMenu.stories.d.ts +112 -0
  72. package/dist/stories/dropdown-menu/DropdownMenu.stories.js +75 -0
  73. package/dist/stories/header/Header.stories.d.ts +112 -0
  74. package/dist/stories/header/Header.stories.js +97 -0
  75. package/dist/stories/hover-card/HoverCard.stories.d.ts +107 -0
  76. package/dist/stories/hover-card/HoverCard.stories.js +71 -0
  77. package/dist/stories/inset/Inset.stories.d.ts +58 -0
  78. package/dist/stories/inset/Inset.stories.js +64 -0
  79. package/dist/stories/label/Label.stories.d.ts +94 -0
  80. package/dist/stories/label/Label.stories.js +91 -0
  81. package/dist/stories/menubar/Menubar.stories.d.ts +119 -0
  82. package/dist/stories/menubar/Menubar.stories.js +98 -0
  83. package/dist/stories/navigation-menu/NavigationMenu.stories.d.ts +385 -0
  84. package/dist/stories/navigation-menu/NavigationMenu.stories.js +79 -0
  85. package/dist/stories/pie-chart/PieChart.stories.d.ts +185 -0
  86. package/dist/stories/pie-chart/PieChart.stories.js +281 -0
  87. package/dist/stories/popover/Popover.stories.d.ts +78 -0
  88. package/dist/stories/popover/Popover.stories.js +74 -0
  89. package/dist/stories/progress/Progress.stories.d.ts +113 -0
  90. package/dist/stories/progress/Progress.stories.js +77 -0
  91. package/dist/stories/radar-chart/RadarChart.stories.d.ts +110 -0
  92. package/dist/stories/radar-chart/RadarChart.stories.js +201 -0
  93. package/dist/stories/radio/Radio.stories.d.ts +108 -0
  94. package/dist/stories/radio/Radio.stories.js +84 -0
  95. package/dist/stories/radio/RadioCards.stories.d.ts +127 -0
  96. package/dist/stories/radio/RadioCards.stories.js +94 -0
  97. package/dist/stories/radio/RadioGroup.stories.d.ts +111 -0
  98. package/dist/stories/radio/RadioGroup.stories.js +88 -0
  99. package/dist/stories/scroll-area/ScrollArea.stories.d.ts +59 -0
  100. package/dist/stories/scroll-area/ScrollArea.stories.js +63 -0
  101. package/dist/stories/segmented-control/SegmentedControl.stories.d.ts +97 -0
  102. package/dist/stories/segmented-control/SegmentedControl.stories.js +80 -0
  103. package/dist/stories/select/Select.stories.d.ts +116 -0
  104. package/dist/stories/select/Select.stories.js +88 -0
  105. package/dist/stories/separator/Separator.stories.d.ts +93 -0
  106. package/dist/stories/separator/Separator.stories.js +82 -0
  107. package/dist/stories/skeleton/Skeleton.stories.d.ts +88 -0
  108. package/dist/stories/skeleton/Skeleton.stories.js +92 -0
  109. package/dist/stories/slider/Slider.stories.d.ts +114 -0
  110. package/dist/stories/slider/Slider.stories.js +83 -0
  111. package/dist/stories/spinner/Spinner.stories.d.ts +83 -0
  112. package/dist/stories/spinner/Spinner.stories.js +87 -0
  113. package/dist/stories/switch/Switch.stories.d.ts +146 -0
  114. package/dist/stories/switch/Switch.stories.js +108 -0
  115. package/dist/stories/tab-nav/TabNav.stories.d.ts +55 -0
  116. package/dist/stories/tab-nav/TabNav.stories.js +59 -0
  117. package/dist/stories/table/Table.stories.d.ts +87 -0
  118. package/dist/stories/table/Table.stories.js +79 -0
  119. package/dist/stories/tabs/Tabs.stories.d.ts +55 -0
  120. package/dist/stories/tabs/Tabs.stories.js +59 -0
  121. package/dist/stories/text/Text.stories.d.ts +74 -0
  122. package/dist/stories/text/Text.stories.js +76 -0
  123. package/dist/stories/textArea/TextArea.stories.d.ts +117 -0
  124. package/dist/stories/textArea/TextArea.stories.js +96 -0
  125. package/dist/stories/textfield/TextField.stories.d.ts +116 -0
  126. package/dist/stories/textfield/TextField.stories.js +88 -0
  127. package/dist/stories/toast/Toast.stories.d.ts +138 -0
  128. package/dist/stories/toast/Toast.stories.js +104 -0
  129. package/dist/stories/toggle/Toggle.stories.d.ts +115 -0
  130. package/dist/stories/toggle/Toggle.stories.js +89 -0
  131. package/dist/stories/toggle/ToggleGroup.stories.d.ts +103 -0
  132. package/dist/stories/toggle/ToggleGroup.stories.js +94 -0
  133. package/dist/stories/tooltip/Tooltip.stories.d.ts +93 -0
  134. package/dist/stories/tooltip/Tooltip.stories.js +78 -0
  135. package/dist/tsconfig.tsbuildinfo +1 -0
  136. package/dist/types.d.ts +11 -0
  137. package/dist/types.js +1 -0
  138. package/dist/utils/utils.d.ts +3 -0
  139. package/dist/utils/utils.js +27 -0
  140. package/package.json +118 -120
  141. package/dist/components/Input/Input.stories.js +0 -74
  142. package/dist/components/Input/index.d.ts +0 -14
  143. package/dist/components/Input/index.js +0 -53
@@ -0,0 +1,133 @@
1
+ import React from 'react';
2
+ import { IRadius, IScaling, IWeight } from '../../types';
3
+ declare const meta: {
4
+ title: string;
5
+ component: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("components/Badge").BadgeProps & React.RefAttributes<HTMLDivElement>>;
6
+ parameters: {
7
+ layout: string;
8
+ docs: {
9
+ description: {
10
+ component: string;
11
+ };
12
+ };
13
+ };
14
+ tags: string[];
15
+ argTypes: {
16
+ radius: {
17
+ description: string;
18
+ table: {
19
+ category: string;
20
+ type: {
21
+ summary: string;
22
+ };
23
+ };
24
+ options: IRadius[];
25
+ control: {
26
+ type: string;
27
+ };
28
+ defaultValue: {
29
+ summary: string;
30
+ };
31
+ };
32
+ size: {
33
+ table: {
34
+ category: string;
35
+ type: {
36
+ summary: string;
37
+ };
38
+ };
39
+ options: import("../../types").ISize[];
40
+ description: string;
41
+ control: {
42
+ type: string;
43
+ };
44
+ defaultValue: {
45
+ summary: string;
46
+ };
47
+ };
48
+ scaling: {
49
+ description: string;
50
+ table: {
51
+ category: string;
52
+ type: {
53
+ summary: string;
54
+ };
55
+ };
56
+ control: {
57
+ type: string;
58
+ };
59
+ options: IScaling[];
60
+ defaultValue: {
61
+ summary: string;
62
+ };
63
+ };
64
+ weight: {
65
+ description: string;
66
+ table: {
67
+ category: string;
68
+ type: {
69
+ summary: string;
70
+ };
71
+ };
72
+ options: IWeight[];
73
+ control: {
74
+ type: string;
75
+ };
76
+ defaultValue: {
77
+ summary: string;
78
+ };
79
+ };
80
+ color: {
81
+ description: string;
82
+ table: {
83
+ category: string;
84
+ type: {
85
+ summary: string;
86
+ };
87
+ };
88
+ options: import("../../types").IColor[];
89
+ control: {
90
+ type: string;
91
+ };
92
+ defaultValue: {
93
+ summary: string;
94
+ };
95
+ };
96
+ appearance: {
97
+ table: {
98
+ category: string;
99
+ type: {
100
+ summary: string;
101
+ };
102
+ };
103
+ description: string;
104
+ options: import("../../types").IAppearance[];
105
+ control: {
106
+ type: string;
107
+ };
108
+ defaultValue: {
109
+ summary: string;
110
+ };
111
+ };
112
+ };
113
+ args: {};
114
+ };
115
+ export default meta;
116
+ export declare const Default: ({ ...args }: {
117
+ [x: string]: any;
118
+ }) => import("react/jsx-runtime").JSX.Element;
119
+ export declare const Radius: ({ ...args }: {
120
+ [x: string]: any;
121
+ }) => import("react/jsx-runtime").JSX.Element;
122
+ export declare const Size: ({ ...args }: {
123
+ [x: string]: any;
124
+ }) => import("react/jsx-runtime").JSX.Element;
125
+ export declare const Scaling: ({ ...args }: {
126
+ [x: string]: any;
127
+ }) => import("react/jsx-runtime").JSX.Element;
128
+ export declare const Weight: ({ ...args }: {
129
+ [x: string]: any;
130
+ }) => import("react/jsx-runtime").JSX.Element;
131
+ export declare const Appearance: ({ ...args }: {
132
+ [x: string]: any;
133
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,86 @@
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 Badge from 'components/Badge';
25
+ import { radiusOptions, commonArgTypes, appearanceOptions, sizeOptions, scalingOptions, } from '../../../src/constants';
26
+ var meta = {
27
+ title: 'Component/Badge',
28
+ component: Badge,
29
+ parameters: {
30
+ layout: 'centered',
31
+ docs: {
32
+ description: {
33
+ component: '빠른 인지와 탐색을 돕기 위해 컴포넌트 근처에 표시되는 작은 문자 또는 숫자 데이터',
34
+ },
35
+ },
36
+ },
37
+ tags: ['autodocs'],
38
+ argTypes: {
39
+ radius: __assign(__assign({}, commonArgTypes.radius), { description: 'Badge 둥굴기' }),
40
+ size: __assign(__assign({}, commonArgTypes.size), { table: {
41
+ category: 'Props',
42
+ type: {
43
+ summary: sizeOptions
44
+ .filter(function (option) { return option !== 'x-small' && option !== 'x-large'; })
45
+ .join(' | '),
46
+ },
47
+ }, options: sizeOptions.filter(function (option) { return option !== 'x-small' && option !== 'x-large'; }), description: 'Badge 크기' }),
48
+ scaling: __assign(__assign({}, commonArgTypes.scaling), { description: 'Badge 비율' }),
49
+ weight: __assign(__assign({}, commonArgTypes.weight), { description: 'Badge 폰트 두께' }),
50
+ color: __assign(__assign({}, commonArgTypes.color), { description: 'Badge 매인색' }),
51
+ appearance: __assign(__assign({}, commonArgTypes.appearance), { table: {
52
+ category: 'Props',
53
+ type: {
54
+ summary: appearanceOptions
55
+ .filter(function (option) { return option !== 'classic' && option !== 'ghost'; })
56
+ .join(' | '),
57
+ },
58
+ }, description: 'Badge 스타일', options: appearanceOptions.filter(function (option) { return option !== 'classic' && option !== 'ghost'; }) }),
59
+ },
60
+ args: {},
61
+ };
62
+ export default meta;
63
+ export var Default = function (_a) {
64
+ var args = __rest(_a, []);
65
+ return _jsx(Badge, __assign({}, args, { children: "Badge" }));
66
+ };
67
+ export var Radius = function (_a) {
68
+ var args = __rest(_a, []);
69
+ return (_jsx("div", { className: "flex gap-3", children: radiusOptions.map(function (radius) { return (_jsx(Badge, __assign({}, args, { radius: radius, children: radius }), radius)); }) }));
70
+ };
71
+ export var Size = function (_a) {
72
+ var args = __rest(_a, []);
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" }))] }));
74
+ };
75
+ export var Scaling = function (_a) {
76
+ var args = __rest(_a, []);
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)); }) }));
78
+ };
79
+ export var Weight = function (_a) {
80
+ var args = __rest(_a, []);
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" }))] }));
82
+ };
83
+ export var Appearance = function (_a) {
84
+ var args = __rest(_a, []);
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" }))] }));
86
+ };
@@ -0,0 +1,102 @@
1
+ import { PointStyle } from 'types';
2
+ declare const meta: {
3
+ title: string;
4
+ component: {
5
+ ({ className, datasets, scaling, width, height, ...props }: import("components/BubbleChart").BubbleChartProps): import("react/jsx-runtime").JSX.Element;
6
+ displayName: string;
7
+ };
8
+ parameters: {
9
+ layout: string;
10
+ themes: {
11
+ themeOverride: string;
12
+ };
13
+ docs: {
14
+ description: {
15
+ component: string;
16
+ };
17
+ };
18
+ };
19
+ tags: string[];
20
+ args: {
21
+ datasets: {
22
+ label: string;
23
+ data: {
24
+ x: number;
25
+ y: number;
26
+ r: number;
27
+ }[];
28
+ backgroundColor: string;
29
+ borderColor: string;
30
+ borderWidth: number;
31
+ pointStyle: PointStyle;
32
+ }[];
33
+ };
34
+ argTypes: {
35
+ scaling: {
36
+ description: string;
37
+ table: {
38
+ category: string;
39
+ type: {
40
+ summary: string;
41
+ };
42
+ };
43
+ control: {
44
+ type: string;
45
+ };
46
+ options: import("types").IScaling[];
47
+ defaultValue: {
48
+ summary: string;
49
+ };
50
+ };
51
+ datasets: {
52
+ description: string;
53
+ table: {
54
+ category: string;
55
+ type: {
56
+ summary: string;
57
+ };
58
+ };
59
+ };
60
+ labelPosition: {
61
+ description: string;
62
+ table: {
63
+ category: string;
64
+ type: {
65
+ summary: string;
66
+ };
67
+ };
68
+ control: {
69
+ type: string;
70
+ };
71
+ options: string[];
72
+ defaultValue: {
73
+ summary: string;
74
+ };
75
+ };
76
+ className: {
77
+ table: {
78
+ disable: boolean;
79
+ };
80
+ };
81
+ width: {
82
+ table: {
83
+ disable: boolean;
84
+ };
85
+ };
86
+ height: {
87
+ table: {
88
+ disable: boolean;
89
+ };
90
+ };
91
+ };
92
+ };
93
+ export default meta;
94
+ export declare const Default: ({ ...args }: {
95
+ [x: string]: any;
96
+ }) => import("react/jsx-runtime").JSX.Element;
97
+ export declare const MultiDatasets: ({ ...args }: {
98
+ [x: string]: any;
99
+ }) => import("react/jsx-runtime").JSX.Element;
100
+ export declare const PointStyles: ({ ...args }: {
101
+ [x: string]: any;
102
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,168 @@
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 { BubbleChart } from 'components/BubbleChart';
25
+ import { commonArgTypes, labelPositionList } from '../../constants';
26
+ import { red, blue, yellow } from 'color/light';
27
+ var datasets = function (label, pointStyle) {
28
+ return [
29
+ {
30
+ label: label,
31
+ data: [
32
+ { x: 20, y: 30, r: 15 },
33
+ { x: 25, y: 50, r: 10 },
34
+ { x: 35, y: 25, r: 25 },
35
+ { x: 40, y: 10, r: 10 },
36
+ ],
37
+ backgroundColor: red[3],
38
+ borderColor: red[9],
39
+ borderWidth: 1,
40
+ pointStyle: pointStyle,
41
+ },
42
+ ];
43
+ };
44
+ var meta = {
45
+ title: 'Chart/BubbleChart',
46
+ component: BubbleChart,
47
+ parameters: {
48
+ layout: 'centered',
49
+ themes: {
50
+ themeOverride: 'dark',
51
+ },
52
+ docs: {
53
+ description: {
54
+ component: '버블 차트 컴포넌트',
55
+ },
56
+ },
57
+ },
58
+ tags: ['autodocs'],
59
+ args: {
60
+ datasets: datasets('example', 'circle'),
61
+ },
62
+ argTypes: {
63
+ scaling: __assign(__assign({}, commonArgTypes.scaling), { description: '차트 크기 비율' }),
64
+ datasets: {
65
+ description: '차트에 사용할 데이터 세트',
66
+ table: {
67
+ category: 'Props',
68
+ type: { summary: 'object' },
69
+ },
70
+ },
71
+ labelPosition: {
72
+ description: '라벨 위치',
73
+ table: {
74
+ category: 'Props',
75
+ type: { summary: labelPositionList.join(' | ') },
76
+ },
77
+ control: { type: 'select' },
78
+ options: labelPositionList,
79
+ defaultValue: { summary: 'top' },
80
+ },
81
+ className: {
82
+ table: {
83
+ disable: true,
84
+ },
85
+ },
86
+ width: {
87
+ table: {
88
+ disable: true,
89
+ },
90
+ },
91
+ height: {
92
+ table: {
93
+ disable: true,
94
+ },
95
+ },
96
+ },
97
+ };
98
+ export default meta;
99
+ export var Default = function (_a) {
100
+ var args = __rest(_a, []);
101
+ var options = {
102
+ plugins: {
103
+ legend: {
104
+ position: args.labelPosition,
105
+ },
106
+ title: {
107
+ display: true,
108
+ text: 'Bubble Chart',
109
+ align: 'center',
110
+ },
111
+ },
112
+ };
113
+ return (_jsx("div", { className: "w-[500px] h-[400px]", children: _jsx(BubbleChart, __assign({ width: 400, height: 300, datasets: args.datasets, options: options }, args)) }));
114
+ };
115
+ export var MultiDatasets = function (_a) {
116
+ var args = __rest(_a, []);
117
+ var datasets = [
118
+ {
119
+ label: 'first',
120
+ data: [
121
+ { x: 20, y: 30, r: 15 },
122
+ { x: 25, y: 50, r: 10 },
123
+ { x: 35, y: 25, r: 25 },
124
+ { x: 40, y: 10, r: 10 },
125
+ ],
126
+ backgroundColor: red[3],
127
+ borderColor: red[9],
128
+ },
129
+ {
130
+ label: 'second',
131
+ data: [
132
+ { x: 10, y: 10, r: 15 },
133
+ { x: 35, y: 50, r: 10 },
134
+ { x: 25, y: 25, r: 21 },
135
+ { x: 30, y: 15, r: 10 },
136
+ ],
137
+ backgroundColor: blue[3],
138
+ borderColor: blue[9],
139
+ },
140
+ {
141
+ label: 'third',
142
+ data: [
143
+ { x: 5, y: 5, r: 12 },
144
+ { x: 25, y: 10, r: 8 },
145
+ { x: 12, y: 28, r: 13 },
146
+ { x: 22, y: 5, r: 10 },
147
+ ],
148
+ backgroundColor: yellow[3],
149
+ borderColor: yellow[9],
150
+ },
151
+ ];
152
+ var options = {
153
+ plugins: {
154
+ title: {
155
+ display: true,
156
+ text: 'Radar Chart - Multiple',
157
+ },
158
+ },
159
+ };
160
+ return _jsx(Default, { datasets: datasets, options: options });
161
+ };
162
+ export var PointStyles = function (_a) {
163
+ var args = __rest(_a, []);
164
+ var options = {
165
+ responsive: false,
166
+ };
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)); }) })] }));
168
+ };
@@ -0,0 +1,148 @@
1
+ /// <reference types="react" />
2
+ import { IAppearance, IRadius, IScaling, IWeight } from '../../types';
3
+ import { ButtonProps } from 'components/Button';
4
+ declare const meta: {
5
+ title: string;
6
+ component: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
7
+ parameters: {
8
+ layout: string;
9
+ themes: {
10
+ themeOverride: string;
11
+ };
12
+ docs: {
13
+ description: {
14
+ component: string;
15
+ };
16
+ };
17
+ };
18
+ tags: string[];
19
+ argTypes: {
20
+ radius: {
21
+ description: string;
22
+ table: {
23
+ category: string;
24
+ type: {
25
+ summary: string;
26
+ };
27
+ };
28
+ options: IRadius[];
29
+ control: {
30
+ type: string;
31
+ };
32
+ defaultValue: {
33
+ summary: string;
34
+ };
35
+ };
36
+ scaling: {
37
+ description: string;
38
+ table: {
39
+ category: string;
40
+ type: {
41
+ summary: string;
42
+ };
43
+ };
44
+ control: {
45
+ type: string;
46
+ };
47
+ options: IScaling[];
48
+ defaultValue: {
49
+ summary: string;
50
+ };
51
+ };
52
+ size: {
53
+ description: string;
54
+ table: {
55
+ category: string;
56
+ type: {
57
+ summary: string;
58
+ };
59
+ };
60
+ control: {
61
+ type: string;
62
+ };
63
+ options: import("../../types").ISize[];
64
+ defaultValue: {
65
+ summary: string;
66
+ };
67
+ };
68
+ weight: {
69
+ description: string;
70
+ table: {
71
+ category: string;
72
+ type: {
73
+ summary: string;
74
+ };
75
+ };
76
+ options: IWeight[];
77
+ control: {
78
+ type: string;
79
+ };
80
+ defaultValue: {
81
+ summary: string;
82
+ };
83
+ };
84
+ onClick: {
85
+ table: {
86
+ category: string;
87
+ };
88
+ };
89
+ color: {
90
+ description: string;
91
+ table: {
92
+ category: string;
93
+ type: {
94
+ summary: string;
95
+ };
96
+ };
97
+ options: import("../../types").IColor[];
98
+ control: {
99
+ type: string;
100
+ };
101
+ defaultValue: {
102
+ summary: string;
103
+ };
104
+ };
105
+ appearance: {
106
+ description: string;
107
+ options: IAppearance[];
108
+ table: {
109
+ category: string;
110
+ type: {
111
+ summary: string;
112
+ };
113
+ };
114
+ control: {
115
+ type: string;
116
+ };
117
+ defaultValue: {
118
+ summary: string;
119
+ };
120
+ };
121
+ disabled: {
122
+ description: string;
123
+ defaultValue: {
124
+ summary: string;
125
+ };
126
+ table: {
127
+ category: string;
128
+ type: {
129
+ summary: string;
130
+ };
131
+ };
132
+ control: {
133
+ type: string;
134
+ };
135
+ };
136
+ };
137
+ args: {
138
+ onClick: import("@vitest/spy").Mock<[event: import("react").MouseEvent<HTMLButtonElement, MouseEvent>], void>;
139
+ };
140
+ };
141
+ export default meta;
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;