@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,112 @@
1
+ /// <reference types="react" />
2
+ import { HeaderProps } from '../../Typography/Header/index';
3
+ declare const meta: {
4
+ title: string;
5
+ component: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/themes").HeadingProps & import("react").RefAttributes<HTMLHeadingElement>, "ref"> & HeaderProps & import("react").RefAttributes<HTMLHeadingElement>>;
6
+ tags: string[];
7
+ parameters: {
8
+ docs: {
9
+ description: {
10
+ component: string;
11
+ };
12
+ };
13
+ };
14
+ argTypes: {
15
+ weight: {
16
+ description: string;
17
+ table: {
18
+ category: string;
19
+ type: {
20
+ summary: string;
21
+ };
22
+ };
23
+ options: import("types").IWeight[];
24
+ control: {
25
+ type: string;
26
+ };
27
+ defaultValue: {
28
+ summary: string;
29
+ };
30
+ };
31
+ color: {
32
+ defaultValue: {
33
+ summary: string;
34
+ };
35
+ description: string;
36
+ table: {
37
+ category: string;
38
+ type: {
39
+ summary: string;
40
+ };
41
+ };
42
+ options: import("types").IColor[];
43
+ control: {
44
+ type: string;
45
+ };
46
+ };
47
+ size: {
48
+ table: {
49
+ category: string;
50
+ type: {
51
+ summary: string;
52
+ };
53
+ };
54
+ options: import("types").ITypoSize[];
55
+ control: {
56
+ type: string;
57
+ };
58
+ description: string;
59
+ defaultValue: {
60
+ summary: string;
61
+ };
62
+ };
63
+ headers: {
64
+ table: {
65
+ category: string;
66
+ type: {
67
+ summary: string;
68
+ };
69
+ };
70
+ options: string[];
71
+ control: {
72
+ type: string;
73
+ };
74
+ description: string;
75
+ defaultValue: {
76
+ summary: string;
77
+ };
78
+ };
79
+ align: {
80
+ table: {
81
+ category: string;
82
+ type: {
83
+ summary: string;
84
+ };
85
+ };
86
+ options: string[];
87
+ control: {
88
+ type: string;
89
+ };
90
+ description: string;
91
+ };
92
+ };
93
+ };
94
+ export default meta;
95
+ export declare const Default: ({ ...args }: {
96
+ [x: string]: any;
97
+ }) => import("react/jsx-runtime").JSX.Element;
98
+ export declare const Weight: ({ ...args }: {
99
+ [x: string]: any;
100
+ }) => import("react/jsx-runtime").JSX.Element;
101
+ export declare const Color: ({ ...args }: {
102
+ [x: string]: any;
103
+ }) => import("react/jsx-runtime").JSX.Element;
104
+ export declare const Size: ({ ...args }: {
105
+ [x: string]: any;
106
+ }) => import("react/jsx-runtime").JSX.Element;
107
+ export declare const Headers: ({ ...args }: {
108
+ [x: string]: any;
109
+ }) => import("react/jsx-runtime").JSX.Element;
110
+ export declare const Align: ({ ...args }: {
111
+ [x: string]: any;
112
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,97 @@
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 } from "react/jsx-runtime";
24
+ import { Header } from '../../Typography/Header/index';
25
+ import { weightOptions, typoSizeOptions, commonArgTypes } from '../../constants';
26
+ import { colorOptions } from 'color/constants';
27
+ var headerOptions = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
28
+ var meta = {
29
+ title: 'Typography/Header',
30
+ component: Header,
31
+ tags: ['autodocs'],
32
+ parameters: {
33
+ docs: {
34
+ description: {
35
+ component: 'Header 컴포넌트는 주로 텍스트의 제목이나 섹션의 헤더를 표시하는 데 사용됩니다. h1부터 h6까지의 태그를 사용하여 제목의 계층 구조를 나타냅니다.',
36
+ },
37
+ },
38
+ },
39
+ argTypes: {
40
+ weight: __assign(__assign({}, commonArgTypes.weight), { description: 'Header 컴포넌트 폰트 두께' }),
41
+ color: __assign(__assign({}, commonArgTypes.color), { defaultValue: { summary: 'black' }, description: 'Header 컴포넌트 폰트 색상' }),
42
+ size: {
43
+ table: {
44
+ category: 'Props',
45
+ type: { summary: '1 ~ 9' },
46
+ },
47
+ options: typoSizeOptions,
48
+ control: { type: 'select' },
49
+ description: 'Header 컴포넌트 폰트 사이즈',
50
+ defaultValue: { summary: '6' },
51
+ },
52
+ headers: {
53
+ table: {
54
+ category: 'Props',
55
+ type: { summary: headerOptions.join(' | ') },
56
+ },
57
+ options: headerOptions,
58
+ control: { type: 'select' },
59
+ description: 'Header 컴포넌트 heading level',
60
+ defaultValue: { summary: 'h1' },
61
+ },
62
+ align: {
63
+ table: {
64
+ category: 'Props',
65
+ type: { summary: 'left | center | right' },
66
+ },
67
+ options: ['left', 'center', 'right'],
68
+ control: { type: 'select' },
69
+ description: 'Header 컴포넌트 정렬',
70
+ },
71
+ },
72
+ };
73
+ export default meta;
74
+ export var Default = function (_a) {
75
+ var args = __rest(_a, []);
76
+ return _jsx(Header, __assign({}, args, { children: "The quick brown fox jumps over the lazy dog" }));
77
+ };
78
+ export var Weight = function (_a) {
79
+ var args = __rest(_a, []);
80
+ return (_jsx("div", { children: weightOptions.map(function (weight) { return (_jsx(Header, __assign({}, args, { weight: weight, children: "The quick brown fox jumps over the lazy dog" }), weight)); }) }));
81
+ };
82
+ export var Color = function (_a) {
83
+ var args = __rest(_a, []);
84
+ return (_jsx("div", { children: colorOptions.map(function (color) { return (_jsx(Header, __assign({}, args, { color: color, children: "The quick brown fox jumps over the lazy dog" }), color)); }) }));
85
+ };
86
+ export var Size = function (_a) {
87
+ var args = __rest(_a, []);
88
+ return (_jsx("div", { children: typoSizeOptions.map(function (size) { return (_jsx(Header, __assign({}, args, { size: size, children: "The quick brown fox jumps over the lazy dog" }), size)); }) }));
89
+ };
90
+ export var Headers = function (_a) {
91
+ var args = __rest(_a, []);
92
+ return (_jsx("div", { children: headerOptions.map(function (headers) { return (_jsx(Header, __assign({}, args, { headers: headers, children: "The quick brown fox jumps over the lazy dog" }), headers)); }) }));
93
+ };
94
+ export var Align = function (_a) {
95
+ var args = __rest(_a, []);
96
+ return (_jsx("div", { children: ['left', 'center', 'right'].map(function (align) { return (_jsx(Header, __assign({}, args, { align: align, children: "The quick brown fox jumps over the lazy dog" }), align)); }) }));
97
+ };
@@ -0,0 +1,107 @@
1
+ /// <reference types="react" />
2
+ import { ISize, IRadius } from 'types';
3
+ declare const meta: {
4
+ title: string;
5
+ component: import("react").ForwardRefExoticComponent<import("@radix-ui/themes/dist/cjs/components/hover-card").RootProps & import("../../components/HoverCard").HoverCardProps & 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
+ table: {
21
+ category: string;
22
+ type: {
23
+ summary: string;
24
+ };
25
+ };
26
+ options: IRadius[];
27
+ description: string;
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
+ weight: {
68
+ description: string;
69
+ table: {
70
+ category: string;
71
+ type: {
72
+ summary: string;
73
+ };
74
+ };
75
+ options: import("types").IWeight[];
76
+ control: {
77
+ type: string;
78
+ };
79
+ defaultValue: {
80
+ summary: string;
81
+ };
82
+ };
83
+ color: {
84
+ description: string;
85
+ defaultValue: {
86
+ summary: string;
87
+ };
88
+ table: {
89
+ category: string;
90
+ type: {
91
+ summary: string;
92
+ };
93
+ };
94
+ options: import("types").IColor[];
95
+ control: {
96
+ type: string;
97
+ };
98
+ };
99
+ };
100
+ };
101
+ export default meta;
102
+ export declare const Default: ({ ...args }: {
103
+ [x: string]: any;
104
+ }) => import("react/jsx-runtime").JSX.Element;
105
+ export declare const WithInset: ({ ...args }: {
106
+ [x: string]: any;
107
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,71 @@
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 } from '../../constants';
25
+ import { HoverCard, HoverCardTrigger, HoverCardContent } from '../../components/HoverCard';
26
+ import { Inset } from '@radix-ui/themes';
27
+ import { radiusOptions, sizeOptions } from '../../constants';
28
+ import Link from 'next/link';
29
+ import Image from 'next/image';
30
+ var meta = {
31
+ title: 'Component/HoverCard',
32
+ component: HoverCard,
33
+ parameters: {
34
+ layout: 'centered',
35
+ themes: {
36
+ themeOverride: 'dark',
37
+ },
38
+ docs: {
39
+ description: {
40
+ component: '특정 개체 위에 포인터를 올려놓았을 때 제공되는 Card UI 요소',
41
+ },
42
+ },
43
+ },
44
+ tags: ['autodocs'],
45
+ argTypes: {
46
+ radius: __assign(__assign({}, commonArgTypes.radius), { table: {
47
+ category: 'Theme Props',
48
+ type: {
49
+ summary: radiusOptions.filter(function (value) { return value !== 'full'; }).join(' | '),
50
+ },
51
+ }, options: radiusOptions.filter(function (value) { return value !== 'full'; }), description: 'hoverCard 둥글기' }),
52
+ size: __assign(__assign({}, commonArgTypes.size), { table: {
53
+ category: 'Props',
54
+ type: {
55
+ summary: sizeOptions.filter(function (value) { return value != 'x-small'; }).join(' | '),
56
+ },
57
+ }, options: sizeOptions.filter(function (value) { return value != 'x-small'; }), description: 'hoverCard 크기' }),
58
+ scaling: __assign(__assign({}, commonArgTypes.scaling), { description: 'hoverCard 비율' }),
59
+ weight: __assign(__assign({}, commonArgTypes.weight), { description: 'hoverCard 글씨 두께' }),
60
+ color: __assign(__assign({}, commonArgTypes.color), { description: 'hoverCard color', defaultValue: { summary: 'white' } }),
61
+ },
62
+ };
63
+ export default meta;
64
+ export var Default = function (_a) {
65
+ var args = __rest(_a, []);
66
+ return (_jsxs(HoverCard, { children: [_jsx(HoverCardTrigger, { children: _jsx(Link, { href: "#", target: "_blank", className: "text-indigo-9 dark:text-indigoDark-9 hover:underline", children: "@radix_ui" }) }), _jsx(HoverCardContent, __assign({}, args, { children: _jsxs("div", { children: [_jsx("strong", { children: "Typography" }), " is the art and technique of arranging type to make written language legible, readable and appealing when displayed."] }) }))] }));
67
+ };
68
+ export var WithInset = function (_a) {
69
+ var args = __rest(_a, []);
70
+ return (_jsxs(HoverCard, { children: [_jsx(HoverCardTrigger, { children: _jsx(Link, { href: "https://twitter.com/radix_ui", target: "_blank", className: "text-indigo-9 dark:text-indigoDark-9 hover:underline", children: "@radix_ui" }) }), _jsx(HoverCardContent, __assign({}, args, { children: _jsxs("div", { className: "flex", children: [_jsx(Inset, { side: "left", pr: "current", children: _jsx(Image, { src: "https://images.unsplash.com/photo-1617050318658-a9a3175e34cb?&auto=format&fit=crop&w=300&q=90", alt: "Bold typography", width: 150, height: 150, className: "h-full block object-cover" }) }), _jsxs("span", { children: [_jsx("strong", { children: "Typography" }), " is the art and technique."] })] }) }))] }));
71
+ };
@@ -0,0 +1,58 @@
1
+ /// <reference types="react" />
2
+ declare const meta: {
3
+ title: string;
4
+ component: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/themes").InsetProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("../../components/Inset").InsetProps & import("react").RefAttributes<HTMLDivElement>>;
5
+ parameters: {
6
+ layout: string;
7
+ themes: {
8
+ themeOverride: string;
9
+ };
10
+ docs: {
11
+ description: {
12
+ component: string;
13
+ };
14
+ };
15
+ };
16
+ tags: string[];
17
+ argTypes: {
18
+ radius: {
19
+ description: string;
20
+ table: {
21
+ category: string;
22
+ type: {
23
+ summary: string;
24
+ };
25
+ };
26
+ options: import("types").IRadius[];
27
+ control: {
28
+ type: string;
29
+ };
30
+ defaultValue: {
31
+ summary: string;
32
+ };
33
+ };
34
+ scaling: {
35
+ description: string;
36
+ table: {
37
+ category: string;
38
+ type: {
39
+ summary: string;
40
+ };
41
+ };
42
+ control: {
43
+ type: string;
44
+ };
45
+ options: import("types").IScaling[];
46
+ defaultValue: {
47
+ summary: string;
48
+ };
49
+ };
50
+ };
51
+ };
52
+ export default meta;
53
+ export declare const Default: ({ ...args }: {
54
+ [x: string]: any;
55
+ }) => import("react/jsx-runtime").JSX.Element;
56
+ export declare const Horizontal: ({ ...args }: {
57
+ [x: string]: any;
58
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,64 @@
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 } from '../../../src/constants';
25
+ import Image from 'next/image';
26
+ import { Inset } from '../../components/Inset';
27
+ var meta = {
28
+ title: 'Component/Inset',
29
+ component: Inset,
30
+ parameters: {
31
+ layout: 'centered',
32
+ themes: {
33
+ themeOverride: 'dark',
34
+ },
35
+ docs: {
36
+ description: {
37
+ component: '여백을 조정하여 콘텐츠 삽입',
38
+ },
39
+ },
40
+ },
41
+ tags: ['autodocs'],
42
+ argTypes: {
43
+ radius: __assign(__assign({}, commonArgTypes.radius), { description: 'inset 둥글기' }),
44
+ scaling: __assign(__assign({}, commonArgTypes.scaling), { description: 'inset 비율' }),
45
+ },
46
+ };
47
+ export default meta;
48
+ export var Default = function (_a) {
49
+ var args = __rest(_a, []);
50
+ return (_jsxs(Inset, __assign({ clip: "padding-box", side: "top", pb: "current", className: "w-[290px]" }, args, { children: [_jsx(Image, { src: "https://images.unsplash.com/photo-1617050318658-a9a3175e34cb?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=600&q=80", alt: "Bold typography", width: 100, height: 200, style: {
51
+ display: 'block',
52
+ objectFit: 'cover',
53
+ width: '100%',
54
+ backgroundColor: 'var(--gray-5)',
55
+ } }), _jsx("div", { className: "p-4", children: _jsx("span", { children: "Typography is the art and technique of arranging type to make written language legible." }) })] })));
56
+ };
57
+ export var Horizontal = function (_a) {
58
+ var args = __rest(_a, []);
59
+ return (_jsx(Inset, __assign({ side: "left", pr: "current", className: "w-[400px]" }, args, { children: _jsxs("div", { className: "flex", children: [_jsx(Image, { src: "https://images.unsplash.com/photo-1617050318658-a9a3175e34cb?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=600&q=80", alt: "Bold typography", width: 150, height: 140, style: {
60
+ display: 'block',
61
+ objectFit: 'cover',
62
+ backgroundColor: 'var(--gray-5)',
63
+ } }), _jsx("div", { className: "p-4", children: _jsx("span", { children: "Typography is the art and technique of arranging type to make written language legible." }) })] }) })));
64
+ };
@@ -0,0 +1,94 @@
1
+ /// <reference types="react" />
2
+ import { IColor, IScaling } from '../../types';
3
+ declare const meta: {
4
+ title: string;
5
+ component: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-label").LabelProps & import("react").RefAttributes<HTMLLabelElement>, "ref"> & import("../../components/Label/index").LabelProps & import("react").RefAttributes<HTMLLabelElement>>;
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
+ scaling: {
20
+ description: string;
21
+ table: {
22
+ category: string;
23
+ type: {
24
+ summary: string;
25
+ };
26
+ };
27
+ control: {
28
+ type: string;
29
+ };
30
+ options: IScaling[];
31
+ defaultValue: {
32
+ summary: string;
33
+ };
34
+ };
35
+ weight: {
36
+ table: {
37
+ category: string;
38
+ type: {
39
+ summary: string;
40
+ };
41
+ };
42
+ control: {
43
+ type: string;
44
+ };
45
+ options: string[];
46
+ defaultValue: {
47
+ summary: string;
48
+ };
49
+ description: string;
50
+ };
51
+ color: {
52
+ table: {
53
+ category: string;
54
+ type: {
55
+ summary: string;
56
+ };
57
+ };
58
+ options: IColor[];
59
+ control: {
60
+ type: string;
61
+ };
62
+ description: string;
63
+ };
64
+ size: {
65
+ table: {
66
+ category: string;
67
+ type: {
68
+ summary: string;
69
+ };
70
+ };
71
+ control: {
72
+ type: string;
73
+ };
74
+ options: string[];
75
+ defaultValue: {
76
+ summary: string;
77
+ };
78
+ description: string;
79
+ };
80
+ };
81
+ };
82
+ export default meta;
83
+ export declare const Default: ({ ...args }: {
84
+ [x: string]: any;
85
+ }) => import("react/jsx-runtime").JSX.Element;
86
+ export declare const Scaling: ({ ...args }: {
87
+ [x: string]: any;
88
+ }) => import("react/jsx-runtime").JSX.Element;
89
+ export declare const Size: ({ ...args }: {
90
+ [x: string]: any;
91
+ }) => import("react/jsx-runtime").JSX.Element;
92
+ export declare const Weight: ({ ...args }: {
93
+ [x: string]: any;
94
+ }) => import("react/jsx-runtime").JSX.Element;