@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.
Files changed (192) hide show
  1. package/README.md +163 -163
  2. package/dist/Typography/Header/index.d.ts +1 -1
  3. package/dist/Typography/Header/index.jsx +4 -4
  4. package/dist/Typography/Text/index.jsx +4 -4
  5. package/dist/Typography/index.d.ts +2 -2
  6. package/dist/Typography/index.js +2 -3
  7. package/dist/app/layout.jsx +2 -2
  8. package/dist/app/page.d.ts +1 -1
  9. package/dist/app/page.jsx +6 -39
  10. package/dist/app/template/colorPicker.d.ts +1 -1
  11. package/dist/app/template/colorPicker.jsx +7 -7
  12. package/dist/app/template/theme.jsx +6 -33
  13. package/dist/components/Accordion/index.jsx +13 -13
  14. package/dist/components/AlertDialog/AlertDialogAction.jsx +3 -3
  15. package/dist/components/AlertDialog/AlertDialogCancel.jsx +3 -3
  16. package/dist/components/AlertDialog/AlertDialogContent.jsx +6 -6
  17. package/dist/components/AlertDialog/AlertDialogDescription.jsx +3 -3
  18. package/dist/components/AlertDialog/AlertDialogTitle.jsx +3 -3
  19. package/dist/components/AlertDialog/AlertDialogTrigger.jsx +3 -3
  20. package/dist/components/AlertDialog/index.jsx +4 -2
  21. package/dist/components/AspectRatio/index.jsx +3 -3
  22. package/dist/components/Avatar/index.jsx +6 -6
  23. package/dist/components/Badge/index.jsx +2 -2
  24. package/dist/components/BubbleChart/index.jsx +1 -1
  25. package/dist/components/Button/index.jsx +3 -3
  26. package/dist/components/Callout/CalloutIcon.jsx +7 -7
  27. package/dist/components/Callout/CalloutText.jsx +3 -3
  28. package/dist/components/Callout/index.jsx +5 -5
  29. package/dist/components/Card/index.jsx +3 -3
  30. package/dist/components/Checkbox/index.jsx +10 -10
  31. package/dist/components/CheckboxCard/index.jsx +4 -4
  32. package/dist/components/CheckboxGroup/CheckboxGroupItem.jsx +4 -4
  33. package/dist/components/CheckboxGroup/index.jsx +5 -5
  34. package/dist/components/ContextMenu/ContextMenuCheckboxItem.jsx +6 -6
  35. package/dist/components/ContextMenu/ContextMenuContent.jsx +5 -5
  36. package/dist/components/ContextMenu/ContextMenuGroup.jsx +2 -2
  37. package/dist/components/ContextMenu/ContextMenuItem.jsx +4 -4
  38. package/dist/components/ContextMenu/ContextMenuItemIndicator.jsx +3 -3
  39. package/dist/components/ContextMenu/ContextMenuLabel.jsx +3 -3
  40. package/dist/components/ContextMenu/ContextMenuRadioGroup.jsx +4 -4
  41. package/dist/components/ContextMenu/ContextMenuRadioItem.jsx +6 -6
  42. package/dist/components/ContextMenu/ContextMenuSeparator.jsx +3 -3
  43. package/dist/components/ContextMenu/ContextMenuSubContent.jsx +6 -6
  44. package/dist/components/ContextMenu/ContextMenuSubTrigger.jsx +8 -8
  45. package/dist/components/ContextMenu/ContextMenuTrigger.jsx +3 -3
  46. package/dist/components/ContextMenu/index.jsx +5 -3
  47. package/dist/components/DataList/DataListItem.jsx +3 -3
  48. package/dist/components/DataList/DataListLabel.jsx +3 -3
  49. package/dist/components/DataList/DataListValue.jsx +3 -3
  50. package/dist/components/DataList/index.jsx +5 -5
  51. package/dist/components/Dialog/DialogAction.jsx +3 -3
  52. package/dist/components/Dialog/DialogCancel.jsx +3 -3
  53. package/dist/components/Dialog/DialogContent.jsx +3 -3
  54. package/dist/components/Dialog/DialogDescription.jsx +3 -3
  55. package/dist/components/Dialog/DialogSlot.jsx +3 -3
  56. package/dist/components/Dialog/DialogTitle.jsx +3 -3
  57. package/dist/components/Dialog/DialogTrigger.jsx +2 -2
  58. package/dist/components/Dialog/index.jsx +2 -2
  59. package/dist/components/DoughnutChart/index.jsx +1 -1
  60. package/dist/components/DropdownMenu/DropdonMenuRadioGroup.jsx +4 -4
  61. package/dist/components/DropdownMenu/DropdonMenuSubContent.jsx +5 -5
  62. package/dist/components/DropdownMenu/DropdownMenuCheckboxItem.jsx +6 -6
  63. package/dist/components/DropdownMenu/DropdownMenuContent.jsx +5 -5
  64. package/dist/components/DropdownMenu/DropdownMenuItem.jsx +4 -4
  65. package/dist/components/DropdownMenu/DropdownMenuItemIndicator.jsx +3 -3
  66. package/dist/components/DropdownMenu/DropdownMenuLable.jsx +3 -3
  67. package/dist/components/DropdownMenu/DropdownMenuRadioItem.jsx +6 -6
  68. package/dist/components/DropdownMenu/DropdownMenuSeparator.jsx +1 -1
  69. package/dist/components/DropdownMenu/DropdownMenuSubTrigger.jsx +5 -5
  70. package/dist/components/DropdownMenu/DropdownMenuTrigger.jsx +2 -2
  71. package/dist/components/HoverCard/HoverCardContent.jsx +2 -2
  72. package/dist/components/HoverCard/HoverCardTrigger.jsx +2 -2
  73. package/dist/components/HoverCard/index.jsx +2 -2
  74. package/dist/components/IconButton/index.jsx +2 -2
  75. package/dist/components/Inset/index.jsx +4 -4
  76. package/dist/components/Label/index.jsx +2 -2
  77. package/dist/components/Menubar/MenubarCheckboxItem.jsx +6 -6
  78. package/dist/components/Menubar/MenubarContent.jsx +5 -5
  79. package/dist/components/Menubar/MenubarItem.jsx +4 -4
  80. package/dist/components/Menubar/MenubarItemIndicator.jsx +3 -3
  81. package/dist/components/Menubar/MenubarRadioGroup.jsx +4 -4
  82. package/dist/components/Menubar/MenubarRadioItem.jsx +6 -6
  83. package/dist/components/Menubar/MenubarSeparator.jsx +3 -3
  84. package/dist/components/Menubar/MenubarSubContent.jsx +3 -3
  85. package/dist/components/Menubar/MenubarSubTrigger.jsx +6 -6
  86. package/dist/components/Menubar/MenubarTrigger.jsx +3 -3
  87. package/dist/components/Menubar/index.jsx +5 -5
  88. package/dist/components/NavigationMenu/NavigationMenuContent.jsx +3 -3
  89. package/dist/components/NavigationMenu/NavigationMenuIndicator.jsx +4 -4
  90. package/dist/components/NavigationMenu/NavigationMenuItem.jsx +2 -2
  91. package/dist/components/NavigationMenu/NavigationMenuLink.jsx +3 -3
  92. package/dist/components/NavigationMenu/NavigationMenuList.jsx +4 -4
  93. package/dist/components/NavigationMenu/NavigationMenuTrigger.jsx +4 -4
  94. package/dist/components/NavigationMenu/NavigationMenuViewport.jsx +3 -3
  95. package/dist/components/NavigationMenu/index.jsx +5 -5
  96. package/dist/components/PieChart/index.jsx +1 -1
  97. package/dist/components/Popover/PopoverClose.jsx +2 -2
  98. package/dist/components/Popover/PopoverContent.jsx +2 -2
  99. package/dist/components/Popover/PopoverTrigger.jsx +2 -2
  100. package/dist/components/Popover/index.jsx +2 -2
  101. package/dist/components/Progress/index.jsx +2 -2
  102. package/dist/components/Radio/index.jsx +7 -7
  103. package/dist/components/RadioCards/RadioCardsItem.jsx +2 -2
  104. package/dist/components/RadioCards/index.jsx +4 -4
  105. package/dist/components/RadioGroup/RadioGroupItem.jsx +2 -2
  106. package/dist/components/RadioGroup/index.jsx +4 -4
  107. package/dist/components/ScrollArea/index.jsx +4 -4
  108. package/dist/components/SegmentedControl/SegmentedControlItem.jsx +2 -2
  109. package/dist/components/SegmentedControl/index.jsx +4 -4
  110. package/dist/components/Select/index.jsx +20 -18
  111. package/dist/components/Separator/index.jsx +5 -5
  112. package/dist/components/Skeleton/index.jsx +5 -5
  113. package/dist/components/Slider/index.jsx +3 -3
  114. package/dist/components/Spinner/index.jsx +4 -4
  115. package/dist/components/TabNav/index.jsx +6 -6
  116. package/dist/components/Table/index.d.ts +2 -1
  117. package/dist/components/Table/index.jsx +17 -17
  118. package/dist/components/Tabs/index.jsx +10 -10
  119. package/dist/components/TextArea/index.jsx +2 -2
  120. package/dist/components/TextField/index.jsx +7 -7
  121. package/dist/components/Toast/ToastActionButton.jsx +3 -3
  122. package/dist/components/Toast/ToastDescription.jsx +5 -5
  123. package/dist/components/Toast/ToastTitle.jsx +3 -3
  124. package/dist/components/Toast/index.jsx +8 -8
  125. package/dist/components/Toggle/ToggleWithText.jsx +3 -3
  126. package/dist/components/Toggle/index.jsx +2 -2
  127. package/dist/components/ToggleGroup/index.jsx +4 -4
  128. package/dist/components/ToggleGroup/toggleGroupItem.jsx +2 -2
  129. package/dist/components/ToggleSwitch/index.jsx +5 -5
  130. package/dist/components/Tooltip/index.d.ts +1 -1
  131. package/dist/components/Tooltip/index.jsx +11 -11
  132. package/dist/components/index.d.ts +0 -2
  133. package/dist/index.d.ts +2 -5
  134. package/dist/index.js +0 -3
  135. package/dist/stories/Welcome.jsx +19 -19
  136. package/dist/stories/accordion/Accordion.stories.jsx +19 -19
  137. package/dist/stories/alert-dialog/AlertDialog.stories.jsx +14 -14
  138. package/dist/stories/aspect-ratio/AspectRatio.stories.jsx +29 -29
  139. package/dist/stories/avatar/Avatar.stories.jsx +12 -12
  140. package/dist/stories/badge/Badge.stories.jsx +44 -44
  141. package/dist/stories/bubble-chart/BubbleChart.stories.jsx +9 -9
  142. package/dist/stories/button/Button.stories.jsx +34 -34
  143. package/dist/stories/button/IconButton.stories.jsx +14 -14
  144. package/dist/stories/callout/Callout.stories.jsx +107 -107
  145. package/dist/stories/card/Card.stories.jsx +51 -51
  146. package/dist/stories/checkbox/Checkbox.stories.jsx +57 -57
  147. package/dist/stories/checkbox/CheckboxCard.stories.jsx +36 -36
  148. package/dist/stories/checkbox/CheckboxGroup.stories.jsx +73 -73
  149. package/dist/stories/context-menu/ContextMenu.stories.jsx +70 -70
  150. package/dist/stories/data-list/DataList.stories.jsx +102 -102
  151. package/dist/stories/dialog/Dialog.stories.jsx +24 -24
  152. package/dist/stories/doughnut-chart/DoughnutChart.stories.jsx +9 -9
  153. package/dist/stories/dropdown-menu/DropdownMenu.stories.jsx +96 -96
  154. package/dist/stories/header/Header.stories.jsx +20 -20
  155. package/dist/stories/hover-card/HoverCard.stories.jsx +28 -28
  156. package/dist/stories/inset/Inset.stories.jsx +16 -16
  157. package/dist/stories/label/Label.stories.jsx +22 -22
  158. package/dist/stories/menubar/Menubar.stories.jsx +38 -38
  159. package/dist/stories/navigation-menu/NavigationMenu.stories.d.ts +11 -11
  160. package/dist/stories/navigation-menu/NavigationMenu.stories.jsx +67 -67
  161. package/dist/stories/pie-chart/PieChart.stories.jsx +20 -20
  162. package/dist/stories/popover/Popover.stories.jsx +34 -34
  163. package/dist/stories/progress/Progress.stories.jsx +6 -6
  164. package/dist/stories/radio/Radio.stories.jsx +11 -11
  165. package/dist/stories/radio/RadioCards.stories.jsx +60 -60
  166. package/dist/stories/radio/RadioGroup.stories.jsx +55 -55
  167. package/dist/stories/scroll-area/ScrollArea.stories.jsx +61 -61
  168. package/dist/stories/segmented-control/SegmentedControl.stories.jsx +22 -22
  169. package/dist/stories/select/Select.stories.jsx +62 -62
  170. package/dist/stories/separator/Separator.stories.jsx +25 -25
  171. package/dist/stories/skeleton/Skeleton.stories.jsx +28 -28
  172. package/dist/stories/slider/Slider.stories.jsx +12 -12
  173. package/dist/stories/spinner/Spinner.stories.jsx +26 -26
  174. package/dist/stories/switch/Switch.stories.jsx +12 -12
  175. package/dist/stories/tab-nav/TabNav.stories.jsx +10 -10
  176. package/dist/stories/table/Table.stories.jsx +28 -28
  177. package/dist/stories/tabs/Tabs.stories.jsx +18 -18
  178. package/dist/stories/text/Text.stories.jsx +16 -16
  179. package/dist/stories/textArea/TextArea.stories.jsx +17 -17
  180. package/dist/stories/textfield/TextField.stories.jsx +33 -33
  181. package/dist/stories/toast/Toast.stories.jsx +19 -19
  182. package/dist/stories/toggle/Toggle.stories.jsx +18 -18
  183. package/dist/stories/toggle/ToggleGroup.stories.jsx +34 -34
  184. package/dist/stories/tooltip/Tooltip.stories.jsx +14 -14
  185. package/dist/tsconfig.tsbuildinfo +1 -1
  186. package/package.json +120 -118
  187. package/dist/app/template/badgeTemplate.d.ts +0 -12
  188. package/dist/app/template/badgeTemplate.jsx +0 -82
  189. package/dist/app/template/buttonTemplate.d.ts +0 -12
  190. package/dist/app/template/buttonTemplate.jsx +0 -82
  191. package/dist/app/template/textTemplate.d.ts +0 -11
  192. package/dist/app/template/textTemplate.jsx +0 -72
@@ -58,113 +58,113 @@ var meta = {
58
58
  export default meta;
59
59
  export var Default = function (_a) {
60
60
  var args = __rest(_a, []);
61
- return (<DropdownMenu>
62
- <DropdownMenuTrigger {...args}>
63
- <Button>
64
- Options
65
- <ChevronDownIcon />
66
- </Button>
67
- </DropdownMenuTrigger>
68
- <DropdownMenuContent {...args}>
69
- <DropdownMenuLabel {...args}>라벨</DropdownMenuLabel>
70
- <DropdownMenuItem {...args} shortcut="⌘ E">
71
- 기본 아이템
72
- </DropdownMenuItem>
73
- <DropdownMenuItem {...args} disabled>
74
- 사용불가 아이템
75
- </DropdownMenuItem>
76
- <DropdownMenuSeparator />
77
- <DropdownMenuCheckboxItem checked {...args}>
78
- 체크박스1
79
- </DropdownMenuCheckboxItem>
80
- <DropdownMenuCheckboxItem checked={false} {...args}>
81
- 체크박스2
82
- </DropdownMenuCheckboxItem>
83
- <DropdownMenuSeparator />
84
-
85
- <DropdownMenuRadioGroup value="option1">
86
- <DropdownMenuRadioItem value="option1" {...args}>
87
- 라디오1
88
- </DropdownMenuRadioItem>
89
- <DropdownMenuRadioItem value="option2" {...args}>
90
- 라디오2
91
- </DropdownMenuRadioItem>
92
- </DropdownMenuRadioGroup>
93
- <DropdownMenuSeparator />
94
-
95
- <DropdownMenuSub>
96
- <DropdownMenuSubTrigger {...args}>More Menu</DropdownMenuSubTrigger>
97
- <DropdownMenuSubContent {...args}>
98
- <DropdownMenuItem {...args}>project</DropdownMenuItem>
99
- <DropdownMenuItem {...args}>folder</DropdownMenuItem>
100
-
101
- <DropdownMenuSeparator />
102
- <DropdownMenuItem {...args}>options</DropdownMenuItem>
103
- </DropdownMenuSubContent>
104
- </DropdownMenuSub>
105
- </DropdownMenuContent>
61
+ return (<DropdownMenu>
62
+ <DropdownMenuTrigger {...args}>
63
+ <Button>
64
+ Options
65
+ <ChevronDownIcon />
66
+ </Button>
67
+ </DropdownMenuTrigger>
68
+ <DropdownMenuContent {...args}>
69
+ <DropdownMenuLabel {...args}>라벨</DropdownMenuLabel>
70
+ <DropdownMenuItem {...args} shortcut="⌘ E">
71
+ 기본 아이템
72
+ </DropdownMenuItem>
73
+ <DropdownMenuItem {...args} disabled>
74
+ 사용불가 아이템
75
+ </DropdownMenuItem>
76
+ <DropdownMenuSeparator />
77
+ <DropdownMenuCheckboxItem checked {...args}>
78
+ 체크박스1
79
+ </DropdownMenuCheckboxItem>
80
+ <DropdownMenuCheckboxItem checked={false} {...args}>
81
+ 체크박스2
82
+ </DropdownMenuCheckboxItem>
83
+ <DropdownMenuSeparator />
84
+
85
+ <DropdownMenuRadioGroup value="option1">
86
+ <DropdownMenuRadioItem value="option1" {...args}>
87
+ 라디오1
88
+ </DropdownMenuRadioItem>
89
+ <DropdownMenuRadioItem value="option2" {...args}>
90
+ 라디오2
91
+ </DropdownMenuRadioItem>
92
+ </DropdownMenuRadioGroup>
93
+ <DropdownMenuSeparator />
94
+
95
+ <DropdownMenuSub>
96
+ <DropdownMenuSubTrigger {...args}>More Menu</DropdownMenuSubTrigger>
97
+ <DropdownMenuSubContent {...args}>
98
+ <DropdownMenuItem {...args}>project</DropdownMenuItem>
99
+ <DropdownMenuItem {...args}>folder</DropdownMenuItem>
100
+
101
+ <DropdownMenuSeparator />
102
+ <DropdownMenuItem {...args}>options</DropdownMenuItem>
103
+ </DropdownMenuSubContent>
104
+ </DropdownMenuSub>
105
+ </DropdownMenuContent>
106
106
  </DropdownMenu>);
107
107
  };
108
108
  export var Radius = function (_a) {
109
109
  var args = __rest(_a, []);
110
- return (<div className="flex items-center space-x-4">
111
- {radiusOptions.map(function (radius) { return (<DropdownMenu key={radius}>
112
- <DropdownMenuTrigger {...args} radius={radius}>
113
- <Button>
114
- {radius}
115
- <ChevronDownIcon />
116
- </Button>
117
- </DropdownMenuTrigger>
118
- <DropdownMenuContent {...args} radius={radius}>
119
- <DropdownMenuItem {...args} radius={radius}>
120
- 메뉴1
121
- </DropdownMenuItem>
122
- <DropdownMenuItem {...args} radius={radius}>
123
- 메뉴2
124
- </DropdownMenuItem>
125
- </DropdownMenuContent>
126
- </DropdownMenu>); })}
110
+ return (<div className="flex items-center space-x-4">
111
+ {radiusOptions.map(function (radius) { return (<DropdownMenu key={radius}>
112
+ <DropdownMenuTrigger {...args} radius={radius}>
113
+ <Button>
114
+ {radius}
115
+ <ChevronDownIcon />
116
+ </Button>
117
+ </DropdownMenuTrigger>
118
+ <DropdownMenuContent {...args} radius={radius}>
119
+ <DropdownMenuItem {...args} radius={radius}>
120
+ 메뉴1
121
+ </DropdownMenuItem>
122
+ <DropdownMenuItem {...args} radius={radius}>
123
+ 메뉴2
124
+ </DropdownMenuItem>
125
+ </DropdownMenuContent>
126
+ </DropdownMenu>); })}
127
127
  </div>);
128
128
  };
129
129
  export var Size = function (_a) {
130
130
  var args = __rest(_a, []);
131
- return (<div className="flex items-center space-x-4">
132
- {['small', 'medium'].map(function (size) { return (<DropdownMenu key={size}>
133
- <DropdownMenuTrigger {...args} size={size}>
134
- <Button>
135
- {size}
136
- <ChevronDownIcon />
137
- </Button>
138
- </DropdownMenuTrigger>
139
- <DropdownMenuContent {...args} size={size}>
140
- <DropdownMenuItem {...args} size={size}>
141
- 메뉴1
142
- </DropdownMenuItem>
143
- <DropdownMenuItem {...args} size={size}>
144
- 메뉴2
145
- </DropdownMenuItem>
146
- </DropdownMenuContent>
147
- </DropdownMenu>); })}
131
+ return (<div className="flex items-center space-x-4">
132
+ {['small', 'medium'].map(function (size) { return (<DropdownMenu key={size}>
133
+ <DropdownMenuTrigger {...args} size={size}>
134
+ <Button>
135
+ {size}
136
+ <ChevronDownIcon />
137
+ </Button>
138
+ </DropdownMenuTrigger>
139
+ <DropdownMenuContent {...args} size={size}>
140
+ <DropdownMenuItem {...args} size={size}>
141
+ 메뉴1
142
+ </DropdownMenuItem>
143
+ <DropdownMenuItem {...args} size={size}>
144
+ 메뉴2
145
+ </DropdownMenuItem>
146
+ </DropdownMenuContent>
147
+ </DropdownMenu>); })}
148
148
  </div>);
149
149
  };
150
150
  export var Appearance = function (_a) {
151
151
  var args = __rest(_a, []);
152
- return (<div className="flex items-center space-x-4">
153
- {['solid', 'soft'].map(function (appearance) { return (<DropdownMenu key={appearance}>
154
- <DropdownMenuTrigger {...args} appearance={appearance}>
155
- <Button>
156
- {appearance}
157
- <ChevronDownIcon />
158
- </Button>
159
- </DropdownMenuTrigger>
160
- <DropdownMenuContent {...args}>
161
- <DropdownMenuItem {...args} appearance={appearance}>
162
- 메뉴1
163
- </DropdownMenuItem>
164
- <DropdownMenuItem {...args} appearance={appearance}>
165
- 메뉴2
166
- </DropdownMenuItem>
167
- </DropdownMenuContent>
168
- </DropdownMenu>); })}
152
+ return (<div className="flex items-center space-x-4">
153
+ {['solid', 'soft'].map(function (appearance) { return (<DropdownMenu key={appearance}>
154
+ <DropdownMenuTrigger {...args} appearance={appearance}>
155
+ <Button>
156
+ {appearance}
157
+ <ChevronDownIcon />
158
+ </Button>
159
+ </DropdownMenuTrigger>
160
+ <DropdownMenuContent {...args}>
161
+ <DropdownMenuItem {...args} appearance={appearance}>
162
+ 메뉴1
163
+ </DropdownMenuItem>
164
+ <DropdownMenuItem {...args} appearance={appearance}>
165
+ 메뉴2
166
+ </DropdownMenuItem>
167
+ </DropdownMenuContent>
168
+ </DropdownMenu>); })}
169
169
  </div>);
170
170
  };
@@ -76,41 +76,41 @@ export var Default = function (_a) {
76
76
  };
77
77
  export var Weight = function (_a) {
78
78
  var args = __rest(_a, []);
79
- return (<div>
80
- {weightOptions.map(function (weight) { return (<Header key={weight} {...args} weight={weight}>
81
- The quick brown fox jumps over the lazy dog
82
- </Header>); })}
79
+ return (<div>
80
+ {weightOptions.map(function (weight) { return (<Header key={weight} {...args} weight={weight}>
81
+ The quick brown fox jumps over the lazy dog
82
+ </Header>); })}
83
83
  </div>);
84
84
  };
85
85
  export var Color = function (_a) {
86
86
  var args = __rest(_a, []);
87
- return (<div>
88
- {colorOptions.map(function (color) { return (<Header key={color} {...args} color={color}>
89
- The quick brown fox jumps over the lazy dog
90
- </Header>); })}
87
+ return (<div>
88
+ {colorOptions.map(function (color) { return (<Header key={color} {...args} color={color}>
89
+ The quick brown fox jumps over the lazy dog
90
+ </Header>); })}
91
91
  </div>);
92
92
  };
93
93
  export var Size = function (_a) {
94
94
  var args = __rest(_a, []);
95
- return (<div>
96
- {typoSizeOptions.map(function (size) { return (<Header key={size} {...args} size={size}>
97
- The quick brown fox jumps over the lazy dog
98
- </Header>); })}
95
+ return (<div>
96
+ {typoSizeOptions.map(function (size) { return (<Header key={size} {...args} size={size}>
97
+ The quick brown fox jumps over the lazy dog
98
+ </Header>); })}
99
99
  </div>);
100
100
  };
101
101
  export var Headers = function (_a) {
102
102
  var args = __rest(_a, []);
103
- return (<div>
104
- {headerOptions.map(function (headers) { return (<Header key={headers} {...args} headers={headers}>
105
- The quick brown fox jumps over the lazy dog
106
- </Header>); })}
103
+ return (<div>
104
+ {headerOptions.map(function (headers) { return (<Header key={headers} {...args} headers={headers}>
105
+ The quick brown fox jumps over the lazy dog
106
+ </Header>); })}
107
107
  </div>);
108
108
  };
109
109
  export var Align = function (_a) {
110
110
  var args = __rest(_a, []);
111
- return (<div>
112
- {['left', 'center', 'right'].map(function (align) { return (<Header key={align} {...args} align={align}>
113
- The quick brown fox jumps over the lazy dog
114
- </Header>); })}
111
+ return (<div>
112
+ {['left', 'center', 'right'].map(function (align) { return (<Header key={align} {...args} align={align}>
113
+ The quick brown fox jumps over the lazy dog
114
+ </Header>); })}
115
115
  </div>);
116
116
  };
@@ -62,37 +62,37 @@ var meta = {
62
62
  export default meta;
63
63
  export var Default = function (_a) {
64
64
  var args = __rest(_a, []);
65
- return (<HoverCard>
66
- <HoverCardTrigger>
67
- <Link href="#" target="_blank" className="text-indigo-9 dark:text-indigoDark-9 hover:underline">
68
- @radix_ui
69
- </Link>
70
- </HoverCardTrigger>
71
- <HoverCardContent {...args}>
72
- <div>
73
- <strong>Typography</strong> is the art and technique of arranging type to make written
74
- language legible, readable and appealing when displayed.
75
- </div>
76
- </HoverCardContent>
65
+ return (<HoverCard>
66
+ <HoverCardTrigger>
67
+ <Link href="#" target="_blank" className="text-indigo-9 dark:text-indigoDark-9 hover:underline">
68
+ @radix_ui
69
+ </Link>
70
+ </HoverCardTrigger>
71
+ <HoverCardContent {...args}>
72
+ <div>
73
+ <strong>Typography</strong> is the art and technique of arranging type to make written
74
+ language legible, readable and appealing when displayed.
75
+ </div>
76
+ </HoverCardContent>
77
77
  </HoverCard>);
78
78
  };
79
79
  export var WithInset = function (_a) {
80
80
  var args = __rest(_a, []);
81
- return (<HoverCard>
82
- <HoverCardTrigger>
83
- <Link href="https://twitter.com/radix_ui" target="_blank" className="text-indigo-9 dark:text-indigoDark-9 hover:underline">
84
- @radix_ui
85
- </Link>
86
- </HoverCardTrigger>
87
- <HoverCardContent {...args}>
88
- <div className="flex">
89
- <Inset side="left" pr="current">
90
- <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"/>
91
- </Inset>
92
- <span>
93
- <strong>Typography</strong> is the art and technique.
94
- </span>
95
- </div>
96
- </HoverCardContent>
81
+ return (<HoverCard>
82
+ <HoverCardTrigger>
83
+ <Link href="https://twitter.com/radix_ui" target="_blank" className="text-indigo-9 dark:text-indigoDark-9 hover:underline">
84
+ @radix_ui
85
+ </Link>
86
+ </HoverCardTrigger>
87
+ <HoverCardContent {...args}>
88
+ <div className="flex">
89
+ <Inset side="left" pr="current">
90
+ <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"/>
91
+ </Inset>
92
+ <span>
93
+ <strong>Typography</strong> is the art and technique.
94
+ </span>
95
+ </div>
96
+ </HoverCardContent>
97
97
  </HoverCard>);
98
98
  };
@@ -46,34 +46,34 @@ var meta = {
46
46
  export default meta;
47
47
  export var Default = function (_a) {
48
48
  var args = __rest(_a, []);
49
- return (<Inset clip="padding-box" side="top" pb="current" className="w-[290px]" {...args}>
49
+ return (<Inset clip="padding-box" side="top" pb="current" className="w-[290px]" {...args}>
50
50
  <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
51
  display: 'block',
52
52
  objectFit: 'cover',
53
53
  width: '100%',
54
54
  backgroundColor: 'var(--gray-5)',
55
- }}/>
56
- <div className="p-4">
57
- <span>
58
- Typography is the art and technique of arranging type to make written language legible.
59
- </span>
60
- </div>
55
+ }}/>
56
+ <div className="p-4">
57
+ <span>
58
+ Typography is the art and technique of arranging type to make written language legible.
59
+ </span>
60
+ </div>
61
61
  </Inset>);
62
62
  };
63
63
  export var Horizontal = function (_a) {
64
64
  var args = __rest(_a, []);
65
- return (<Inset side="left" pr="current" className="w-[400px]" {...args}>
66
- <div className="flex">
65
+ return (<Inset side="left" pr="current" className="w-[400px]" {...args}>
66
+ <div className="flex">
67
67
  <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={{
68
68
  display: 'block',
69
69
  objectFit: 'cover',
70
70
  backgroundColor: 'var(--gray-5)',
71
- }}/>
72
- <div className="p-4">
73
- <span>
74
- Typography is the art and technique of arranging type to make written language legible.
75
- </span>
76
- </div>
77
- </div>
71
+ }}/>
72
+ <div className="p-4">
73
+ <span>
74
+ Typography is the art and technique of arranging type to make written language legible.
75
+ </span>
76
+ </div>
77
+ </div>
78
78
  </Inset>);
79
79
  };
@@ -78,35 +78,35 @@ export var Default = function (_a) {
78
78
  };
79
79
  export var Scaling = function (_a) {
80
80
  var args = __rest(_a, []);
81
- return (<div className="">
82
- {scalingOptions.map(function (scaling, index) { return (<div key={scaling} className="flex pt-3 items-center space-x-2">
83
- <Label scaling={scaling} {...args}>
84
- Label component
85
- </Label>
86
- </div>); })}
81
+ return (<div className="">
82
+ {scalingOptions.map(function (scaling, index) { return (<div key={scaling} className="flex pt-3 items-center space-x-2">
83
+ <Label scaling={scaling} {...args}>
84
+ Label component
85
+ </Label>
86
+ </div>); })}
87
87
  </div>);
88
88
  };
89
89
  export var Size = function (_a) {
90
90
  var args = __rest(_a, []);
91
- return (<div className="flex flex-wrap items-center gap-[15px] px-5">
92
- <Label size={'small'} {...args}>
93
- Label component
94
- </Label>
95
- <Label size={'medium'} {...args}>
96
- Label component
97
- </Label>
98
- <Label size={'large'} {...args}>
99
- Label component
100
- </Label>
91
+ return (<div className="flex flex-wrap items-center gap-[15px] px-5">
92
+ <Label size={'small'} {...args}>
93
+ Label component
94
+ </Label>
95
+ <Label size={'medium'} {...args}>
96
+ Label component
97
+ </Label>
98
+ <Label size={'large'} {...args}>
99
+ Label component
100
+ </Label>
101
101
  </div>);
102
102
  };
103
103
  export var Weight = function (_a) {
104
104
  var args = __rest(_a, []);
105
- return (<div className="">
106
- {['regular', 'bold'].map(function (weight, index) { return (<div key={weight} className="flex pt-3 items-center space-x-2">
107
- <Label weight={weight} {...args}>
108
- Label component
109
- </Label>
110
- </div>); })}
105
+ return (<div className="">
106
+ {['regular', 'bold'].map(function (weight, index) { return (<div key={weight} className="flex pt-3 items-center space-x-2">
107
+ <Label weight={weight} {...args}>
108
+ Label component
109
+ </Label>
110
+ </div>); })}
111
111
  </div>);
112
112
  };
@@ -87,49 +87,49 @@ export var Default = function (_a) {
87
87
  var RADIO_ITEMS = ['구글', '네이버', '인트라넷'];
88
88
  var _b = useState([CHECK_ITEMS[0]]), checkedSelection = _b[0], setCheckedSelection = _b[1];
89
89
  var _c = useState(RADIO_ITEMS[0]), radioSelection = _c[0], setRadioSelection = _c[1];
90
- return (<Menubar {...args}>
91
- {/* 메뉴-기본 */}
92
- <MenubarMenu>
93
- <MenubarTrigger>파일</MenubarTrigger>
94
- <MenubarContent>
95
- <MenubarItem shortcut="⌘ T">새 탭</MenubarItem>
96
- <MenubarItem shortcut="⌘ N">새 창</MenubarItem>
97
- <MenubarItem disabled>사용불가</MenubarItem>
98
- <MenubarSeparator />
99
- <MenubarSub>
100
- <MenubarSubTrigger>공유하기</MenubarSubTrigger>
101
- <MenubarSubContent>
102
- <MenubarItem>이메일</MenubarItem>
103
- <MenubarItem>메신저</MenubarItem>
104
- </MenubarSubContent>
105
- </MenubarSub>
106
- </MenubarContent>
107
- </MenubarMenu>
108
- {/* 메뉴-체크 */}
109
- <MenubarMenu>
110
- <MenubarTrigger>보기</MenubarTrigger>
111
- <MenubarContent>
90
+ return (<Menubar {...args}>
91
+ {/* 메뉴-기본 */}
92
+ <MenubarMenu>
93
+ <MenubarTrigger>파일</MenubarTrigger>
94
+ <MenubarContent>
95
+ <MenubarItem shortcut="⌘ T">새 탭</MenubarItem>
96
+ <MenubarItem shortcut="⌘ N">새 창</MenubarItem>
97
+ <MenubarItem disabled>사용불가</MenubarItem>
98
+ <MenubarSeparator />
99
+ <MenubarSub>
100
+ <MenubarSubTrigger>공유하기</MenubarSubTrigger>
101
+ <MenubarSubContent>
102
+ <MenubarItem>이메일</MenubarItem>
103
+ <MenubarItem>메신저</MenubarItem>
104
+ </MenubarSubContent>
105
+ </MenubarSub>
106
+ </MenubarContent>
107
+ </MenubarMenu>
108
+ {/* 메뉴-체크 */}
109
+ <MenubarMenu>
110
+ <MenubarTrigger>보기</MenubarTrigger>
111
+ <MenubarContent>
112
112
  {CHECK_ITEMS.map(function (item) { return (<MenubarCheckboxItem key={item} checked={checkedSelection.includes(item)} onCheckedChange={function () {
113
113
  return setCheckedSelection(function (current) {
114
114
  return current.includes(item)
115
115
  ? current.filter(function (el) { return el !== item; })
116
116
  : current.concat(item);
117
117
  });
118
- }}>
119
- {item}
120
- </MenubarCheckboxItem>); })}
121
- </MenubarContent>
122
- </MenubarMenu>
123
- {/* 메뉴-라디오 */}
124
- <MenubarMenu>
125
- <MenubarTrigger>프로필</MenubarTrigger>
126
- <MenubarContent>
127
- <MenubarRadioGroup value={radioSelection} onValueChange={setRadioSelection}>
128
- {RADIO_ITEMS.map(function (item) { return (<MenubarRadioItem key={item} value={item}>
129
- {item}
130
- </MenubarRadioItem>); })}
131
- </MenubarRadioGroup>
132
- </MenubarContent>
133
- </MenubarMenu>
118
+ }}>
119
+ {item}
120
+ </MenubarCheckboxItem>); })}
121
+ </MenubarContent>
122
+ </MenubarMenu>
123
+ {/* 메뉴-라디오 */}
124
+ <MenubarMenu>
125
+ <MenubarTrigger>프로필</MenubarTrigger>
126
+ <MenubarContent>
127
+ <MenubarRadioGroup value={radioSelection} onValueChange={setRadioSelection}>
128
+ {RADIO_ITEMS.map(function (item) { return (<MenubarRadioItem key={item} value={item}>
129
+ {item}
130
+ </MenubarRadioItem>); })}
131
+ </MenubarRadioGroup>
132
+ </MenubarContent>
133
+ </MenubarMenu>
134
134
  </Menubar>);
135
135
  };
@@ -17,14 +17,10 @@ declare const meta: {
17
17
  decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react").ReactRenderer, {
18
18
  value?: string | undefined;
19
19
  className?: string | undefined;
20
+ defaultValue?: string | undefined;
20
21
  color?: "slate" | "olive" | "sand" | "tomato" | "red" | "ruby" | "crimson" | "pink" | "plum" | "purple" | "violet" | "iris" | "indigo" | "blue" | "cyan" | "teal" | "jade" | "green" | "grass" | "brown" | "bronze" | "gold" | "sky" | "mint" | "lime" | "yellow" | "amber" | "orange" | "black" | "white" | undefined;
21
- asChild?: boolean | undefined;
22
+ onChange?: import("react").FormEventHandler<HTMLElement> | undefined;
22
23
  defaultChecked?: boolean | undefined;
23
- defaultValue?: string | undefined;
24
- slot?: string | undefined;
25
- style?: import("react").CSSProperties | undefined;
26
- title?: string | undefined;
27
- key?: import("react").Key | null | undefined;
28
24
  suppressContentEditableWarning?: boolean | undefined;
29
25
  suppressHydrationWarning?: boolean | undefined;
30
26
  accessKey?: string | undefined;
@@ -37,8 +33,11 @@ declare const meta: {
37
33
  id?: string | undefined;
38
34
  lang?: string | undefined;
39
35
  nonce?: string | undefined;
36
+ slot?: string | undefined;
40
37
  spellCheck?: (boolean | "true" | "false") | undefined;
38
+ style?: import("react").CSSProperties | undefined;
41
39
  tabIndex?: number | undefined;
40
+ title?: string | undefined;
42
41
  translate?: "yes" | "no" | undefined;
43
42
  radioGroup?: string | undefined;
44
43
  role?: import("react").AriaRole | undefined;
@@ -64,7 +63,7 @@ declare const meta: {
64
63
  results?: number | undefined;
65
64
  security?: string | undefined;
66
65
  unselectable?: "on" | "off" | undefined;
67
- inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
66
+ inputMode?: "none" | "text" | "search" | "email" | "tel" | "url" | "numeric" | "decimal" | undefined;
68
67
  is?: string | undefined;
69
68
  inert?: boolean | undefined;
70
69
  tw?: string | undefined;
@@ -80,7 +79,7 @@ declare const meta: {
80
79
  "aria-colindextext"?: string | undefined;
81
80
  "aria-colspan"?: number | undefined;
82
81
  "aria-controls"?: string | undefined;
83
- "aria-current"?: boolean | "true" | "false" | "time" | "step" | "page" | "location" | "date" | undefined;
82
+ "aria-current"?: boolean | "true" | "false" | "step" | "time" | "date" | "page" | "location" | undefined;
84
83
  "aria-describedby"?: string | undefined;
85
84
  "aria-description"?: string | undefined;
86
85
  "aria-details"?: string | undefined;
@@ -141,7 +140,6 @@ declare const meta: {
141
140
  onFocusCapture?: import("react").FocusEventHandler<HTMLElement> | undefined;
142
141
  onBlur?: import("react").FocusEventHandler<HTMLElement> | undefined;
143
142
  onBlurCapture?: import("react").FocusEventHandler<HTMLElement> | undefined;
144
- onChange?: import("react").FormEventHandler<HTMLElement> | undefined;
145
143
  onChangeCapture?: import("react").FormEventHandler<HTMLElement> | undefined;
146
144
  onBeforeInput?: import("react").FormEventHandler<HTMLElement> | undefined;
147
145
  onBeforeInputCapture?: import("react").FormEventHandler<HTMLElement> | undefined;
@@ -285,13 +283,15 @@ declare const meta: {
285
283
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLElement> | undefined;
286
284
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLElement> | undefined;
287
285
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLElement> | undefined;
288
- orientation?: ("horizontal" | "vertical") | undefined;
286
+ key?: import("react").Key | null | undefined;
287
+ asChild?: boolean | undefined;
289
288
  onValueChange?: ((value: string) => void) | undefined;
289
+ orientation?: ("horizontal" | "vertical") | undefined;
290
290
  delayDuration?: number | undefined;
291
291
  skipDelayDuration?: number | undefined;
292
292
  appearance?: "solid" | "ghost" | undefined;
293
- radius?: "none" | "small" | "medium" | "large" | "full" | null | undefined;
294
293
  scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
294
+ radius?: "none" | "small" | "medium" | "large" | "full" | null | undefined;
295
295
  size?: "small" | "medium" | null | undefined;
296
296
  ref?: import("react").LegacyRef<HTMLElement> | undefined;
297
297
  }>) => import("react").JSX.Element)[];