@lotte-innovate/ui-component-test 0.0.50 → 0.0.51

Sign up to get free protection for your applications and to get access to all the features.
Files changed (314) hide show
  1. package/README.md +78 -281
  2. package/dist/globals.css +4 -0
  3. package/dist/lib/Typography/Header/index.d.ts +13 -0
  4. package/dist/lib/Typography/Header/index.js +55 -0
  5. package/dist/lib/Typography/Text/index.d.ts +15 -0
  6. package/dist/lib/Typography/Text/index.js +44 -0
  7. package/dist/lib/Typography/index.d.ts +2 -0
  8. package/dist/lib/Typography/index.js +2 -0
  9. package/dist/lib/color/alpha.d.ts +784 -0
  10. package/dist/lib/color/alpha.js +784 -0
  11. package/dist/lib/color/constants.d.ts +29 -0
  12. package/dist/lib/color/constants.js +296 -0
  13. package/dist/lib/color/dark.d.ts +392 -0
  14. package/dist/lib/color/dark.js +392 -0
  15. package/dist/lib/color/krdsColors.d.ts +309 -0
  16. package/dist/lib/color/krdsColors.js +309 -0
  17. package/dist/lib/color/light.d.ts +392 -0
  18. package/dist/lib/color/light.js +393 -0
  19. package/dist/lib/components/Accordion/index.d.ts +22 -0
  20. package/dist/lib/components/Accordion/index.js +64 -0
  21. package/dist/lib/components/AlertDialog/AlertDialogAction.d.ts +14 -0
  22. package/dist/lib/components/AlertDialog/AlertDialogAction.js +61 -0
  23. package/dist/lib/components/AlertDialog/AlertDialogCancel.d.ts +13 -0
  24. package/dist/lib/components/AlertDialog/AlertDialogCancel.js +60 -0
  25. package/dist/lib/components/AlertDialog/AlertDialogContent.d.ts +11 -0
  26. package/dist/lib/components/AlertDialog/AlertDialogContent.js +51 -0
  27. package/dist/lib/components/AlertDialog/AlertDialogDescription.d.ts +10 -0
  28. package/dist/lib/components/AlertDialog/AlertDialogDescription.js +47 -0
  29. package/dist/lib/components/AlertDialog/AlertDialogRoot.d.ts +16 -0
  30. package/dist/lib/components/AlertDialog/AlertDialogRoot.js +46 -0
  31. package/dist/lib/components/AlertDialog/AlertDialogTitle.d.ts +10 -0
  32. package/dist/lib/components/AlertDialog/AlertDialogTitle.js +47 -0
  33. package/dist/lib/components/AlertDialog/AlertDialogTrigger.d.ts +17 -0
  34. package/dist/lib/components/AlertDialog/AlertDialogTrigger.js +55 -0
  35. package/dist/lib/components/AlertDialog/index.d.ts +11 -0
  36. package/dist/lib/components/AlertDialog/index.js +17 -0
  37. package/dist/lib/components/AspectRatio/index.d.ts +10 -0
  38. package/dist/lib/components/AspectRatio/index.js +42 -0
  39. package/dist/lib/components/Avatar/index.d.ts +21 -0
  40. package/dist/lib/components/Avatar/index.js +58 -0
  41. package/dist/lib/components/Badge/index.d.ts +18 -0
  42. package/dist/lib/components/Badge/index.js +54 -0
  43. package/dist/lib/components/BarChart/index.d.ts +37 -0
  44. package/dist/lib/components/BarChart/index.js +63 -0
  45. package/dist/lib/components/BubbleChart/index.d.ts +28 -0
  46. package/dist/lib/components/BubbleChart/index.js +73 -0
  47. package/dist/lib/components/Button/index.d.ts +16 -0
  48. package/dist/lib/components/Button/index.js +56 -0
  49. package/dist/lib/components/Callout/CalloutIcon.d.ts +13 -0
  50. package/dist/lib/components/Callout/CalloutIcon.js +57 -0
  51. package/dist/lib/components/Callout/CalloutRoot.d.ts +18 -0
  52. package/dist/lib/components/Callout/CalloutRoot.js +72 -0
  53. package/dist/lib/components/Callout/CalloutText.d.ts +10 -0
  54. package/dist/lib/components/Callout/CalloutText.js +52 -0
  55. package/dist/lib/components/Callout/index.d.ts +7 -0
  56. package/dist/lib/components/Callout/index.js +9 -0
  57. package/dist/lib/components/Card/index.d.ts +14 -0
  58. package/dist/lib/components/Card/index.js +64 -0
  59. package/dist/lib/components/Checkbox/index.d.ts +17 -0
  60. package/dist/lib/components/Checkbox/index.js +89 -0
  61. package/dist/lib/components/CheckboxCard/index.d.ts +20 -0
  62. package/dist/lib/components/CheckboxCard/index.js +58 -0
  63. package/dist/lib/components/CheckboxGroup/CheckboxGroupItem.d.ts +5 -0
  64. package/dist/lib/components/CheckboxGroup/CheckboxGroupItem.js +33 -0
  65. package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.d.ts +17 -0
  66. package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.js +34 -0
  67. package/dist/lib/components/CheckboxGroup/index.d.ts +6 -0
  68. package/dist/lib/components/CheckboxGroup/index.js +4 -0
  69. package/dist/lib/components/ContextMenu/ContextMenuCheckboxItem.d.ts +4 -0
  70. package/dist/lib/components/ContextMenu/ContextMenuCheckboxItem.js +42 -0
  71. package/dist/lib/components/ContextMenu/ContextMenuContent.d.ts +11 -0
  72. package/dist/lib/components/ContextMenu/ContextMenuContent.js +56 -0
  73. package/dist/lib/components/ContextMenu/ContextMenuGroup.d.ts +4 -0
  74. package/dist/lib/components/ContextMenu/ContextMenuGroup.js +30 -0
  75. package/dist/lib/components/ContextMenu/ContextMenuItem.d.ts +13 -0
  76. package/dist/lib/components/ContextMenu/ContextMenuItem.js +59 -0
  77. package/dist/lib/components/ContextMenu/ContextMenuItemIndicator.d.ts +10 -0
  78. package/dist/lib/components/ContextMenu/ContextMenuItemIndicator.js +50 -0
  79. package/dist/lib/components/ContextMenu/ContextMenuLabel.d.ts +11 -0
  80. package/dist/lib/components/ContextMenu/ContextMenuLabel.js +48 -0
  81. package/dist/lib/components/ContextMenu/ContextMenuRadioGroup.d.ts +8 -0
  82. package/dist/lib/components/ContextMenu/ContextMenuRadioGroup.js +31 -0
  83. package/dist/lib/components/ContextMenu/ContextMenuRadioItem.d.ts +4 -0
  84. package/dist/lib/components/ContextMenu/ContextMenuRadioItem.js +44 -0
  85. package/dist/lib/components/ContextMenu/ContextMenuRoot.d.ts +13 -0
  86. package/dist/lib/components/ContextMenu/ContextMenuRoot.js +42 -0
  87. package/dist/lib/components/ContextMenu/ContextMenuSeparator.d.ts +3 -0
  88. package/dist/lib/components/ContextMenu/ContextMenuSeparator.js +31 -0
  89. package/dist/lib/components/ContextMenu/ContextMenuSubContent.d.ts +11 -0
  90. package/dist/lib/components/ContextMenu/ContextMenuSubContent.js +54 -0
  91. package/dist/lib/components/ContextMenu/ContextMenuSubTrigger.d.ts +4 -0
  92. package/dist/lib/components/ContextMenu/ContextMenuSubTrigger.js +40 -0
  93. package/dist/lib/components/ContextMenu/ContextMenuTrigger.d.ts +4 -0
  94. package/dist/lib/components/ContextMenu/ContextMenuTrigger.js +31 -0
  95. package/dist/lib/components/ContextMenu/index.d.ts +17 -0
  96. package/dist/lib/components/ContextMenu/index.js +29 -0
  97. package/dist/lib/components/DataList/DataListItem.d.ts +9 -0
  98. package/dist/lib/components/DataList/DataListItem.js +43 -0
  99. package/dist/lib/components/DataList/DataListLabel.d.ts +10 -0
  100. package/dist/lib/components/DataList/DataListLabel.js +49 -0
  101. package/dist/lib/components/DataList/DataListRoot.d.ts +14 -0
  102. package/dist/lib/components/DataList/DataListRoot.js +54 -0
  103. package/dist/lib/components/DataList/DataListValue.d.ts +11 -0
  104. package/dist/lib/components/DataList/DataListValue.js +51 -0
  105. package/dist/lib/components/DataList/index.d.ts +8 -0
  106. package/dist/lib/components/DataList/index.js +6 -0
  107. package/dist/lib/components/Dialog/DialogAction.d.ts +13 -0
  108. package/dist/lib/components/Dialog/DialogAction.js +59 -0
  109. package/dist/lib/components/Dialog/DialogCancel.d.ts +11 -0
  110. package/dist/lib/components/Dialog/DialogCancel.js +55 -0
  111. package/dist/lib/components/Dialog/DialogContent.d.ts +11 -0
  112. package/dist/lib/components/Dialog/DialogContent.js +57 -0
  113. package/dist/lib/components/Dialog/DialogDescription.d.ts +9 -0
  114. package/dist/lib/components/Dialog/DialogDescription.js +47 -0
  115. package/dist/lib/components/Dialog/DialogRoot.d.ts +15 -0
  116. package/dist/lib/components/Dialog/DialogRoot.js +37 -0
  117. package/dist/lib/components/Dialog/DialogSlot.d.ts +9 -0
  118. package/dist/lib/components/Dialog/DialogSlot.js +46 -0
  119. package/dist/lib/components/Dialog/DialogTitle.d.ts +11 -0
  120. package/dist/lib/components/Dialog/DialogTitle.js +47 -0
  121. package/dist/lib/components/Dialog/DialogTrigger.d.ts +3 -0
  122. package/dist/lib/components/Dialog/DialogTrigger.js +30 -0
  123. package/dist/lib/components/Dialog/index.d.ts +15 -0
  124. package/dist/lib/components/Dialog/index.js +19 -0
  125. package/dist/lib/components/DoughnutChart/index.d.ts +22 -0
  126. package/dist/lib/components/DoughnutChart/index.js +65 -0
  127. package/dist/lib/components/DropdownMenu/DropdonMenuRadioGroup.d.ts +3 -0
  128. package/dist/lib/components/DropdownMenu/DropdonMenuRadioGroup.js +30 -0
  129. package/dist/lib/components/DropdownMenu/DropdonMenuSubContent.d.ts +11 -0
  130. package/dist/lib/components/DropdownMenu/DropdonMenuSubContent.js +60 -0
  131. package/dist/lib/components/DropdownMenu/DropdownMenuCheckboxItem.d.ts +7 -0
  132. package/dist/lib/components/DropdownMenu/DropdownMenuCheckboxItem.js +41 -0
  133. package/dist/lib/components/DropdownMenu/DropdownMenuContent.d.ts +11 -0
  134. package/dist/lib/components/DropdownMenu/DropdownMenuContent.js +56 -0
  135. package/dist/lib/components/DropdownMenu/DropdownMenuItem.d.ts +15 -0
  136. package/dist/lib/components/DropdownMenu/DropdownMenuItem.js +58 -0
  137. package/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.d.ts +10 -0
  138. package/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.js +48 -0
  139. package/dist/lib/components/DropdownMenu/DropdownMenuLable.d.ts +10 -0
  140. package/dist/lib/components/DropdownMenu/DropdownMenuLable.js +45 -0
  141. package/dist/lib/components/DropdownMenu/DropdownMenuRadioItem.d.ts +6 -0
  142. package/dist/lib/components/DropdownMenu/DropdownMenuRadioItem.js +41 -0
  143. package/dist/lib/components/DropdownMenu/DropdownMenuRoot.d.ts +15 -0
  144. package/dist/lib/components/DropdownMenu/DropdownMenuRoot.js +38 -0
  145. package/dist/lib/components/DropdownMenu/DropdownMenuSeparator.d.ts +3 -0
  146. package/dist/lib/components/DropdownMenu/DropdownMenuSeparator.js +31 -0
  147. package/dist/lib/components/DropdownMenu/DropdownMenuSub.d.ts +3 -0
  148. package/dist/lib/components/DropdownMenu/DropdownMenuSub.js +30 -0
  149. package/dist/lib/components/DropdownMenu/DropdownMenuSubTrigger.d.ts +4 -0
  150. package/dist/lib/components/DropdownMenu/DropdownMenuSubTrigger.js +40 -0
  151. package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.d.ts +14 -0
  152. package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.js +53 -0
  153. package/dist/lib/components/DropdownMenu/index.d.ts +20 -0
  154. package/dist/lib/components/DropdownMenu/index.js +29 -0
  155. package/dist/lib/components/HoverCard/HoverCardContent.d.ts +14 -0
  156. package/dist/lib/components/HoverCard/HoverCardContent.js +61 -0
  157. package/dist/lib/components/HoverCard/HoverCardRoot.d.ts +11 -0
  158. package/dist/lib/components/HoverCard/HoverCardRoot.js +38 -0
  159. package/dist/lib/components/HoverCard/HoverCardTrigger.d.ts +3 -0
  160. package/dist/lib/components/HoverCard/HoverCardTrigger.js +30 -0
  161. package/dist/lib/components/HoverCard/index.d.ts +10 -0
  162. package/dist/lib/components/HoverCard/index.js +9 -0
  163. package/dist/lib/components/IconButton/index.d.ts +15 -0
  164. package/dist/lib/components/IconButton/index.js +63 -0
  165. package/dist/lib/components/Inset/index.d.ts +10 -0
  166. package/dist/lib/components/Inset/index.js +50 -0
  167. package/dist/lib/components/Label/index.d.ts +17 -0
  168. package/dist/lib/components/Label/index.js +53 -0
  169. package/dist/lib/components/LineChart/index.d.ts +43 -0
  170. package/dist/lib/components/LineChart/index.js +61 -0
  171. package/dist/lib/components/Menubar/MenubarCheckboxItem.d.ts +4 -0
  172. package/dist/lib/components/Menubar/MenubarCheckboxItem.js +38 -0
  173. package/dist/lib/components/Menubar/MenubarContent.d.ts +11 -0
  174. package/dist/lib/components/Menubar/MenubarContent.js +60 -0
  175. package/dist/lib/components/Menubar/MenubarItem.d.ts +13 -0
  176. package/dist/lib/components/Menubar/MenubarItem.js +54 -0
  177. package/dist/lib/components/Menubar/MenubarItemIndicator.d.ts +10 -0
  178. package/dist/lib/components/Menubar/MenubarItemIndicator.js +49 -0
  179. package/dist/lib/components/Menubar/MenubarMenu.d.ts +5 -0
  180. package/dist/lib/components/Menubar/MenubarMenu.js +30 -0
  181. package/dist/lib/components/Menubar/MenubarRadioGroup.d.ts +8 -0
  182. package/dist/lib/components/Menubar/MenubarRadioGroup.js +31 -0
  183. package/dist/lib/components/Menubar/MenubarRadioItem.d.ts +4 -0
  184. package/dist/lib/components/Menubar/MenubarRadioItem.js +40 -0
  185. package/dist/lib/components/Menubar/MenubarRoot.d.ts +19 -0
  186. package/dist/lib/components/Menubar/MenubarRoot.js +61 -0
  187. package/dist/lib/components/Menubar/MenubarSeparator.d.ts +3 -0
  188. package/dist/lib/components/Menubar/MenubarSeparator.js +31 -0
  189. package/dist/lib/components/Menubar/MenubarSub.d.ts +3 -0
  190. package/dist/lib/components/Menubar/MenubarSub.js +30 -0
  191. package/dist/lib/components/Menubar/MenubarSubContent.d.ts +10 -0
  192. package/dist/lib/components/Menubar/MenubarSubContent.js +51 -0
  193. package/dist/lib/components/Menubar/MenubarSubTrigger.d.ts +4 -0
  194. package/dist/lib/components/Menubar/MenubarSubTrigger.js +41 -0
  195. package/dist/lib/components/Menubar/MenubarTrigger.d.ts +12 -0
  196. package/dist/lib/components/Menubar/MenubarTrigger.js +57 -0
  197. package/dist/lib/components/Menubar/index.d.ts +19 -0
  198. package/dist/lib/components/Menubar/index.js +29 -0
  199. package/dist/lib/components/NavigationMenu/NavigationMenuContent.d.ts +11 -0
  200. package/dist/lib/components/NavigationMenu/NavigationMenuContent.js +48 -0
  201. package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.d.ts +3 -0
  202. package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.js +31 -0
  203. package/dist/lib/components/NavigationMenu/NavigationMenuItem.d.ts +3 -0
  204. package/dist/lib/components/NavigationMenu/NavigationMenuItem.js +30 -0
  205. package/dist/lib/components/NavigationMenu/NavigationMenuLink.d.ts +13 -0
  206. package/dist/lib/components/NavigationMenu/NavigationMenuLink.js +51 -0
  207. package/dist/lib/components/NavigationMenu/NavigationMenuList.d.ts +12 -0
  208. package/dist/lib/components/NavigationMenu/NavigationMenuList.js +47 -0
  209. package/dist/lib/components/NavigationMenu/NavigationMenuRoot.d.ts +14 -0
  210. package/dist/lib/components/NavigationMenu/NavigationMenuRoot.js +43 -0
  211. package/dist/lib/components/NavigationMenu/NavigationMenuTrigger.d.ts +13 -0
  212. package/dist/lib/components/NavigationMenu/NavigationMenuTrigger.js +58 -0
  213. package/dist/lib/components/NavigationMenu/NavigationMenuViewport.d.ts +12 -0
  214. package/dist/lib/components/NavigationMenu/NavigationMenuViewport.js +53 -0
  215. package/dist/lib/components/NavigationMenu/index.d.ts +12 -0
  216. package/dist/lib/components/NavigationMenu/index.js +10 -0
  217. package/dist/lib/components/PieChart/index.d.ts +22 -0
  218. package/dist/lib/components/PieChart/index.js +65 -0
  219. package/dist/lib/components/Popover/PopoverClose.d.ts +9 -0
  220. package/dist/lib/components/Popover/PopoverClose.js +48 -0
  221. package/dist/lib/components/Popover/PopoverContent.d.ts +11 -0
  222. package/dist/lib/components/Popover/PopoverContent.js +65 -0
  223. package/dist/lib/components/Popover/PopoverRoot.d.ts +12 -0
  224. package/dist/lib/components/Popover/PopoverRoot.js +36 -0
  225. package/dist/lib/components/Popover/PopoverTrigger.d.ts +3 -0
  226. package/dist/lib/components/Popover/PopoverTrigger.js +30 -0
  227. package/dist/lib/components/Popover/index.d.ts +11 -0
  228. package/dist/lib/components/Popover/index.js +11 -0
  229. package/dist/lib/components/Progress/index.d.ts +13 -0
  230. package/dist/lib/components/Progress/index.js +56 -0
  231. package/dist/lib/components/RadarChart/index.d.ts +32 -0
  232. package/dist/lib/components/RadarChart/index.js +76 -0
  233. package/dist/lib/components/Radio/index.d.ts +13 -0
  234. package/dist/lib/components/Radio/index.js +53 -0
  235. package/dist/lib/components/RadioCards/RadioCardsItem.d.ts +10 -0
  236. package/dist/lib/components/RadioCards/RadioCardsItem.js +54 -0
  237. package/dist/lib/components/RadioCards/RadioCardsRoot.d.ts +13 -0
  238. package/dist/lib/components/RadioCards/RadioCardsRoot.js +46 -0
  239. package/dist/lib/components/RadioCards/index.d.ts +6 -0
  240. package/dist/lib/components/RadioCards/index.js +7 -0
  241. package/dist/lib/components/RadioGroup/RadioGroupItem.d.ts +13 -0
  242. package/dist/lib/components/RadioGroup/RadioGroupItem.js +46 -0
  243. package/dist/lib/components/RadioGroup/RadioGroupRoot.d.ts +15 -0
  244. package/dist/lib/components/RadioGroup/RadioGroupRoot.js +53 -0
  245. package/dist/lib/components/RadioGroup/index.d.ts +6 -0
  246. package/dist/lib/components/RadioGroup/index.js +7 -0
  247. package/dist/lib/components/ScrollArea/index.d.ts +9 -0
  248. package/dist/lib/components/ScrollArea/index.js +36 -0
  249. package/dist/lib/components/SegmentedControl/SegmentedControlItem.d.ts +6 -0
  250. package/dist/lib/components/SegmentedControl/SegmentedControlItem.js +35 -0
  251. package/dist/lib/components/SegmentedControl/SegmentedControlRoot.d.ts +14 -0
  252. package/dist/lib/components/SegmentedControl/SegmentedControlRoot.js +47 -0
  253. package/dist/lib/components/SegmentedControl/index.d.ts +6 -0
  254. package/dist/lib/components/SegmentedControl/index.js +7 -0
  255. package/dist/lib/components/Select/index.d.ts +34 -0
  256. package/dist/lib/components/Select/index.js +92 -0
  257. package/dist/lib/components/Separator/index.d.ts +11 -0
  258. package/dist/lib/components/Separator/index.js +47 -0
  259. package/dist/lib/components/Skeleton/index.d.ts +14 -0
  260. package/dist/lib/components/Skeleton/index.js +42 -0
  261. package/dist/lib/components/Slider/index.d.ts +14 -0
  262. package/dist/lib/components/Slider/index.js +49 -0
  263. package/dist/lib/components/Spinner/index.d.ts +15 -0
  264. package/dist/lib/components/Spinner/index.js +47 -0
  265. package/dist/lib/components/TabNav/index.d.ts +15 -0
  266. package/dist/lib/components/TabNav/index.js +50 -0
  267. package/dist/lib/components/Table/index.d.ts +30 -0
  268. package/dist/lib/components/Table/index.js +98 -0
  269. package/dist/lib/components/Tabs/index.d.ts +22 -0
  270. package/dist/lib/components/Tabs/index.js +65 -0
  271. package/dist/lib/components/TextArea/index.d.ts +16 -0
  272. package/dist/lib/components/TextArea/index.js +58 -0
  273. package/dist/lib/components/TextField/index.d.ts +21 -0
  274. package/dist/lib/components/TextField/index.js +56 -0
  275. package/dist/lib/components/Toast/ToastActionButton.d.ts +14 -0
  276. package/dist/lib/components/Toast/ToastActionButton.js +67 -0
  277. package/dist/lib/components/Toast/ToastDescription.d.ts +13 -0
  278. package/dist/lib/components/Toast/ToastDescription.js +53 -0
  279. package/dist/lib/components/Toast/ToastRoot.d.ts +27 -0
  280. package/dist/lib/components/Toast/ToastRoot.js +90 -0
  281. package/dist/lib/components/Toast/ToastTitle.d.ts +13 -0
  282. package/dist/lib/components/Toast/ToastTitle.js +53 -0
  283. package/dist/lib/components/Toast/index.d.ts +8 -0
  284. package/dist/lib/components/Toast/index.js +11 -0
  285. package/dist/lib/components/Toggle/ToggleWithText.d.ts +21 -0
  286. package/dist/lib/components/Toggle/ToggleWithText.js +58 -0
  287. package/dist/lib/components/Toggle/index.d.ts +21 -0
  288. package/dist/lib/components/Toggle/index.js +58 -0
  289. package/dist/lib/components/ToggleGroup/ToggleGroupItem.d.ts +17 -0
  290. package/dist/lib/components/ToggleGroup/ToggleGroupItem.js +54 -0
  291. package/dist/lib/components/ToggleGroup/ToggleGroupRoot.d.ts +15 -0
  292. package/dist/lib/components/ToggleGroup/ToggleGroupRoot.js +48 -0
  293. package/dist/lib/components/ToggleGroup/index.d.ts +6 -0
  294. package/dist/lib/components/ToggleGroup/index.js +7 -0
  295. package/dist/lib/components/ToggleSwitch/index.d.ts +13 -0
  296. package/dist/lib/components/ToggleSwitch/index.js +71 -0
  297. package/dist/lib/components/Tooltip/index.d.ts +19 -0
  298. package/dist/lib/components/Tooltip/index.js +49 -0
  299. package/dist/lib/components/index.d.ts +50 -0
  300. package/dist/lib/components/index.js +52 -0
  301. package/dist/lib/constants.d.ts +655 -0
  302. package/dist/lib/constants.js +914 -0
  303. package/dist/lib/index.d.ts +2 -0
  304. package/dist/lib/index.js +2 -0
  305. package/dist/lib/types.d.ts +81 -0
  306. package/dist/lib/types.js +1 -0
  307. package/dist/lib/utils/useDarkMode.d.ts +1 -0
  308. package/dist/lib/utils/useDarkMode.js +49 -0
  309. package/dist/lib/utils/utils.d.ts +2 -0
  310. package/dist/lib/utils/utils.js +10 -0
  311. package/dist/tailwind.config.d.ts +3 -0
  312. package/dist/tailwind.config.js +141 -0
  313. package/package.json +5 -13
  314. package/dist/cjs/index.js +0 -18
package/README.md CHANGED
@@ -1,62 +1,88 @@
1
- # 🎨 LOTTE UI LIBRARY (L-UI)
1
+ # LOTTE UI COMPONENT LIBRARY
2
2
 
3
3
  <br />
4
4
 
5
- ## 📌목차
5
+ ## 목차
6
6
 
7
- - [💁 소개](#소개)
8
- - [🔨 기술스택](#기술스택)
9
- - [💻 사전설치](#사전설치)
10
- - [🟢 실행](#실행)
11
- - [🛠️ 배포](#배포)
12
- - [📁 구조](#구조)
7
+ - [Introduction](#introduction)
8
+ - [Installation](#installation)
9
+ - [Setup](#setup)
10
+ - [Usage](#usage)
11
+ - [Components](#components)
12
+ - [License](#license)
13
13
 
14
- <br />
14
+ ## Introduction
15
15
 
16
- ## 💁소개
16
+ 모든 L-UI 구성 요소를 내보내는 단일 패키지입니다.
17
17
 
18
- <b>Lotte Innovate 디자인 가이드를 적용한 전사 표준 UI 라이브러리입니다.</b>
18
+ 일관되고 통일된 컴포넌트를 제공하며 사용자 정의 재사용 가능합니다.
19
19
 
20
- #### 주요 특징
20
+ 라이브러리는 React로 구축된 프로젝트를 지원합니다.
21
21
 
22
- - <b>웹 표준 및 접근성 준수</b>
22
+ ## Installation
23
23
 
24
- - Headless UI Library인 radix-ui를 사용하여 웹 접근성을 보장합니다.
25
- - 정부 UI/UX 가이드라인을 준수하여 개발되었습니다.
24
+ 패키지를 설치하기 위해 아래 명령어를 사용합니다.
26
25
 
27
- - <b>다양한 컴포넌트</b>
26
+ ```bash
27
+ npm i @lotte-innovate/lui
28
+ ```
28
29
 
29
- - 45가지의 UI 컴포넌트와 6가지의 차트를 제공합니다.
30
+ ```bash
31
+ yarn add @lotte-innovate/lui
32
+ ```
30
33
 
31
- - <b>일관된 디자인</b>
34
+ ## Setup
32
35
 
33
- - 모든 컴포넌트와 차트에 공통 Props (Color, Radius, Scaling, Weight, Appearance, Size)를 적용하여 디자인의 통일성을 유지합니다.
34
- - 다크모드에서도 표준화된 색상을 적용하여 모든 컴포넌트에 일관되게 적용욉니다.
35
- - [피그마 디자인 가이드 바로가기](https://www.figma.com/design/tlcB7UYdvUNzPk5T66FqLf/UI-%EB%9D%BC%EC%9D%B4%EB%B8%8C%EB%9F%AC%EB%A6%AC-%EA%B3%B5%EC%9C%A0%EC%9A%A9?node-id=0-1&node-type=canvas&t=PEwpe2j6PilPTwXC-0)
36
+ 패키지를 설치한 css 스타일을 프로젝트로 가져옵니다.
36
37
 
37
- - <b>스토리북 통합</b>
38
+ 프로젝트 App 진입 파일에 다음 줄을 추가해줍니다.
38
39
 
39
- - Storybook을 활용하여 컴포넌트를 문서화하고 테스트할 수 있습니다.
40
- - [스토리북 바로가기](https://66849ef80cb87f1ca900f051-tqldgzbipz.chromatic.com/?path=/docs/welcome--docs)
40
+ ```
41
+ import '@lotte-innovate/lui/dist/globals.css';
42
+ ```
41
43
 
42
- - <b>npm 패키지 배포</b>
43
- - 디자인 시스템은 npm 패키지로 배포되어, 프로젝트에 쉽게 설치하고 사용할 수 있습니다.
44
- - [NPM 패키지 바로가기](https://www.npmjs.com/package/@lotte-innovate/lui)
44
+ ## Usage
45
45
 
46
- <br />
47
- <details>
48
- <summary>공통 Props 목록</summary>
46
+ React 프로젝트에서 컴포넌트를 사용하는 방법에 대한 예시입니다.
49
47
 
50
- | name | description | 단계 | option |
51
- | ---------- | ------------------------------------------------- | -------- | --------------------------------------------- |
52
- | Color | 27가지 색상을 라이트/다크/알파/알파다크 모드 제공 | 1~12단계 | blue, crimson, teal, orange, purple, amber... |
53
- | Radius | 컴포넌트의 둥글기 적용 | 5단계 | none, small, medium, large, full |
54
- | Scaling | 컴포넌트의 비율 | 5단계 | 90%, 95%, 100%, 105%, 110% |
55
- | Weight | 컴포넌트의 텍스트 굵기 | 4단계 | regular, medium, semibold, bold |
56
- | Appearance | 컴포넌트의 디자인 스타일 | 6단계 | classic, ghost, outline, soft, solid, surface |
57
- | Size | 컴포넌트의 크기 | 5단계 | x-small, small, medium, large, x-large |
48
+ ```javascript
49
+ import React from 'react';
50
+ import { Button } from '@lotte-innovate/lui';
58
51
 
59
- </details>
52
+ const App = () => {
53
+ return (
54
+ <div>
55
+ <Button onClick={() => alert('Button clicked!')}>Click Me</Button>
56
+ </div>
57
+ );
58
+ };
59
+
60
+ export default App;
61
+ ```
62
+
63
+ 컴포넌트에서 아이콘을 사용하려면, 다음과 같은 방법으로 아이콘을 가져올 수 있습니다.
64
+
65
+ ```javascript
66
+ import React from 'react';
67
+ import { IconButton } from '@lotte-innovate/lui';
68
+ import { MagnifyingGlassIcon } from '@radix-ui/react-icons';
69
+
70
+ const App = () => {
71
+ return (
72
+ <div>
73
+ <IconButton>
74
+ <MagnifyingGlassIcon />
75
+ </IconButton>
76
+ </div>
77
+ );
78
+ };
79
+
80
+ export default App;
81
+ ```
82
+
83
+ ## Components
84
+
85
+ <br />
60
86
 
61
87
  <details>
62
88
  <summary>컴포넌트 목록</summary>
@@ -86,251 +112,22 @@
86
112
 
87
113
  </details>
88
114
 
89
- <br />
90
-
91
- #### 스토리북 주요 화면
92
-
93
- <div>
94
- <div>
95
- <p>Light, Dark Color</p>
96
- <img src="/uploads/6ff420bc359758218c69e3fdabd9ec38/color.png" width="40%" />&nbsp;
97
- <img src="/uploads/5c6296dc810dd5668330520057a094f4/color-dark.png" width="40%" />
98
- </div>
99
- <div>
100
- <p>Header, Checkbox Component</p>
101
- <img src="/uploads/8a01ff02586bf822f17e3f06f70f1857/header.png" width="40%" />&nbsp;
102
- <img src="/uploads/a44c67d88d699d84dcb38a16900a2654/checkbox.png" width="40%" />
103
- </div>
104
- <div>
105
- <p>SegmentedControl, Doughnutchart Component</p>
106
- <img src="/uploads/54d0265e45325d56a8f5df5a947560d4/segmented.png" width="40%" />&nbsp;
107
- <img src="/uploads/1e2d25043446da8c67ce62334043618b/doughnut-chart.png" width="40%" />
108
- </div>
109
- <div>
110
- <p>Dark 모드일때 ToggleGroup, Dropdown Component</p>
111
- <img src="/uploads/059d20ecfbc22f0864f4b769f30a1723/dark-toggle.png" width="40%" />&nbsp;
112
- <img src="/uploads/d4b7006f59bb35a166105dad34ee232f/dark-dropdown.png" width="40%" />
113
- </div>
114
- </div>
115
-
116
- <br />
117
-
118
- ## 🔨기술스택
119
-
120
- #### Environment
121
-
122
- ![Visual Studio Code](https://img.shields.io/badge/Visual%20Studio%20Code-007ACC?style=for-the-badge&logo=Visual%20Studio%20Code&logoColor=white)
123
- ![Git](https://img.shields.io/badge/Git-F05032?style=for-the-badge&logo=Git&logoColor=white)
124
- ![Github](https://img.shields.io/badge/Gitlab-FC6D26?style=for-the-badge&logo=GitLab&logoColor=white)
125
-
126
- #### Config
127
-
128
- ![npm](https://img.shields.io/badge/npm-CB3837?style=for-the-badge&logo=npm&logoColor=white)
129
-
130
- #### Development
131
-
132
- ![JavaScript](https://img.shields.io/badge/JavaScript-F7DF1E?style=for-the-badge&logo=Javascript&logoColor=white)
133
- ![React](https://img.shields.io/badge/React-20232A?style=for-the-badge&logo=react&logoColor=61DAFB)
134
- ![Next.js](https://img.shields.io/badge/Next.js-000000?style=for-the-badge&logo=Next.js&logoColor=white)
135
- ![tailwind CSS](https://img.shields.io/badge/TailwindCSS-06B6D4?style=for-the-badge&logo=TailwindCSS&logoColor=white)
136
- ![storybook](https://img.shields.io/badge/storybook-FF4785?style=for-the-badge&logo=storybook&logoColor=white)
137
-
138
- #### Communication
139
-
140
- ![Figma](https://img.shields.io/badge/Figma-F24E1E?style=for-the-badge&logo=Figma&logoColor=white)
141
- ![Github Issues](https://img.shields.io/badge/Github%20Issues-FC6D26?style=for-the-badge&logo=GitLab&logoColor=white)
142
-
143
- #### Reference
144
-
145
- ![RadixUI](https://img.shields.io/badge/Radix%20UI-161618?style=for-the-badge&logo=RadixUI&logoColor=white)
146
- ![Chartjs](https://img.shields.io/badge/Chart.js-FF6384?style=for-the-badge&logo=Chart.js&logoColor=white)
147
-
148
- <br />
149
-
150
- ## 💻사전설치
151
-
152
- 이 라이브러리는 React로 구축된 프로젝트를 지원하며 주요 사전 설치 라이브러리는 아래와 같습니다.
153
-
154
- - radix-ui/primitives
155
- - 컴포넌트 개발 시 활용할 라이브러리로 필요한 컴포넌트 별 설치
156
-
157
- ```shell
158
- npm install @radix-ui/react-accordion@latest -E
159
- ```
160
-
161
- - radix-ui/theme
162
- - 일부 컴포넌트는 스타일이 적용된 theme 라이브러리 설치
163
-
164
- ```shell
165
- npm install @radix-ui/themes -E
166
- ```
167
-
168
- - chart.js
169
- - 차트 컴포넌트 개발 시 활용
170
-
171
- ```shell
172
- npm install chart.js
173
- ```
174
-
175
- - storybook
176
- - 컴포넌트 디자인 테스트를 위해 설치
177
-
178
- ```shell
179
- npx sb init
180
- npx storybook@latest add @storybook/addon-styling-webpack
181
- ```
182
-
183
- - clsx
184
- - 조건부 className 작성을 위해 사용
185
-
186
- ```shell
187
- npm i clsx
188
- ```
189
-
190
- - tailwind-merge
191
- - 스타일 충돌 없이 자바스크립트에서 tailwind CSS 클래스를 효율적으로 병합하는 기능을 가진 라이브러리
192
-
193
- ```shell
194
- npm i tailwind-merge
195
- ```
196
-
197
- - class-variance-authority (CVA)
198
- - 일관성 있는 UI를 정의하고 사용할 수 있도록 도와주는 툴로써 shadcn/ui 컴포넌트의 핵심 도구
199
-
200
- ```shell
201
- npm i class-variance-authority
202
- ```
203
-
204
- <br />
205
-
206
- ## 🟢실행
207
-
208
- - 개발모드 실행
209
-
210
- ```shell
211
- npm run dev
212
- ```
213
-
214
- - 스토리북 실행
215
-
216
- ```shell
217
- npm run storybook
218
- ```
219
-
220
- > 접속주소(포트 6006 사용 시): `http://localhost:6006`
221
-
222
- - 크로마틱 배포
223
- - 터미널에서 크로마틱으로 배포된 주소 확인 가능
224
-
225
- ```shell
226
- npm run chromatic
227
- ```
228
-
229
- - 빌드
230
- - 패키지 배포없이 스토리북과 컴포넌트 빌드가 필요할때 사용
231
-
232
- ```shell
233
- npm run build:all
234
- ```
235
-
236
- <br />
237
-
238
- ## 🛠️배포
239
-
240
- > NPM 패키지로 배포하는 과정
241
-
242
- - npm 로그인하기
243
-
244
- ```shell
245
- npm login
246
- ```
247
-
248
- - npm scope 배포
249
- - npm 로그인 후, 조직 생성 시 @계정명 으로 scope 생성
250
- scope로 생성된 패키지는 npm publish 시, 아래 옵션 추가
251
-
252
- ```shell
253
- npm publish --access=public
254
- ```
255
-
256
- - package.json "version" 수정 후 배포
257
- - 버전 표기법
258
- - 메이저: 기능 대거 추가 및 수정
259
- - 마이너: 작은 기능 추가 및 수정
260
- - 패치: 버그나 사소한 오류 수정
261
-
262
- <br />
263
-
264
- - npm 패키지 배포는 아래 명령어를 이용
265
-
266
- ```shell
267
- npm run publish:npm
268
- ```
115
+ <details>
116
+ <summary>공통 Props 목록</summary>
269
117
 
270
- - package.json 에서 명시된 아래 파일들만 배포됨
118
+ | name | description | 단계 | option |
119
+ | ---------- | ------------------------------------------------- | -------- | --------------------------------------------- |
120
+ | Color | 27가지 색상을 라이트/다크/알파/알파다크 모드 제공 | 1~12단계 | blue, crimson, teal, orange, purple, amber... |
121
+ | Radius | 컴포넌트의 둥글기 적용 | 5단계 | none, small, medium, large, full |
122
+ | Scaling | 컴포넌트의 비율 | 5단계 | 90%, 95%, 100%, 105%, 110% |
123
+ | Weight | 컴포넌트의 텍스트 굵기 | 4단계 | regular, medium, semibold, bold |
124
+ | Appearance | 컴포넌트의 디자인 스타일 | 6단계 | classic, ghost, outline, soft, solid, surface |
125
+ | Size | 컴포넌트의 크기 | 5단계 | x-small, small, medium, large, x-large |
271
126
 
272
- ```
273
- "files": [
274
- "dist/lib",
275
- "dist/tailwind.config.d.ts",
276
- "dist/tailwind.config.js",
277
- "dist/globals.css"
278
- ],
279
- ```
127
+ </details>
280
128
 
281
129
  <br />
282
130
 
283
- ## 📁구조
131
+ ## License
284
132
 
285
- #### 디렉토리 구조
286
-
287
- ```
288
- 📦dist : 컴파일 시 생성되며 NPM 패키지로 배포됨
289
- 📦src
290
- ┣ 📂app
291
- ┃ ┣ 📜layout.tsx
292
- ┃ ┣ 📜page.tsx
293
- ┃ ┣ 📜stories.css : 스토리북 관련 CSS 파일
294
- ┃ ┣ 📜globals.css
295
- ┃ ┗ 📜styles.css
296
- ┣ 📂lib : NPM 패키지 배포에 필요한 컴포넌트가 들어있는 폴더
297
- ┃ ┣ 📂Typography
298
- ┃ ┃ ┣ 📂Header
299
- ┃ ┃ ┣ 📂Text
300
- ┃ ┃ ┗ 📜index.ts
301
- ┃ ┣ 📂color : 컴포넌트에서 사용하는 컬러 관련 파일 모음 폴더
302
- ┃ ┃ ┣ 📜alpha.ts
303
- ┃ ┃ ┣ 📜constants.ts
304
- ┃ ┃ ┣ 📜dark.ts
305
- ┃ ┃ ┣ 📜krdsColors.ts
306
- ┃ ┃ ┗ 📜light.ts
307
- ┃ ┣ 📂components : 배포되는 컴포넌트들이 들어있는 폴더
308
- ┃ ┃ ┣ 📂Accordion
309
- ┃ ┃ ┣ 📂AlertDialog
310
- ┃ ┃ ┣ 📂AspectRatio
311
- ┃ ┃ ┣ ...
312
- ┃ ┃ ┣ 📂ToggleGroup
313
- ┃ ┃ ┣ 📂ToggleSwitch
314
- ┃ ┃ ┣ 📂Tooltip
315
- ┃ ┃ ┗ 📜index.ts
316
- ┃ ┣ 📂utils
317
- ┃ ┃ ┗ 📜utils.ts : 공통 유틸 함수
318
- ┃ ┣ 📜README.md : NPM 전용 README 파일
319
- ┣ 📂stories : 디자인 테스트를 위한 스토리북 폴더
320
- ┃ ┣ 📂accordion
321
- ┃ ┣ 📂alert-dialog
322
- ┃ ┣ 📂aspect-ratio
323
- ┃ ┣ 📂assets : 스토리북 관련 이미지 폴더
324
- ┃ ┣ ...
325
- ┃ ┣ 📂toggle
326
- ┃ ┣ 📂tooltip
327
- ┃ ┣ 📜DarkAlphaColors.mdx
328
- ┃ ┣ 📜DarkColors.mdx
329
- ┃ ┣ 📜LightAlphaColors.mdx
330
- ┃ ┣ 📜LightColors.mdx
331
- ┃ ┣ 📜Welcome.mdx
332
- ┃ ┗ 📜Welcome.tsx
333
- ┗ 📂utils : 패키지 배포에 필요한 함수 모음
334
- ┣ 📜move.js
335
- ┗ 📜post-publish.js
336
- ```
133
+ @lotte-innovate