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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (208) hide show
  1. package/README.md +78 -281
  2. package/dist/globals.css +4 -0
  3. package/dist/lib/Typography/Header/index.d.ts +1 -1
  4. package/dist/lib/Typography/Header/{index.jsx → index.js} +4 -7
  5. package/dist/lib/Typography/Text/index.d.ts +1 -1
  6. package/dist/lib/Typography/Text/{index.jsx → index.js} +5 -8
  7. package/dist/lib/components/Accordion/index.d.ts +1 -1
  8. package/dist/lib/components/Accordion/{index.jsx → index.js} +7 -19
  9. package/dist/lib/components/AlertDialog/AlertDialogAction.d.ts +1 -1
  10. package/dist/lib/components/AlertDialog/{AlertDialogAction.jsx → AlertDialogAction.js} +5 -6
  11. package/dist/lib/components/AlertDialog/AlertDialogCancel.d.ts +1 -1
  12. package/dist/lib/components/AlertDialog/{AlertDialogCancel.jsx → AlertDialogCancel.js} +5 -6
  13. package/dist/lib/components/AlertDialog/{AlertDialogContent.jsx → AlertDialogContent.js} +5 -9
  14. package/dist/lib/components/AlertDialog/{AlertDialogDescription.jsx → AlertDialogDescription.js} +15 -5
  15. package/dist/lib/components/AlertDialog/AlertDialogRoot.d.ts +1 -1
  16. package/dist/lib/components/AlertDialog/{AlertDialogRoot.jsx → AlertDialogRoot.js} +14 -6
  17. package/dist/lib/components/AlertDialog/{AlertDialogTitle.jsx → AlertDialogTitle.js} +15 -5
  18. package/dist/lib/components/AlertDialog/AlertDialogTrigger.d.ts +1 -1
  19. package/dist/lib/components/AlertDialog/{AlertDialogTrigger.jsx → AlertDialogTrigger.js} +5 -6
  20. package/dist/lib/components/AspectRatio/{index.jsx → index.js} +5 -6
  21. package/dist/lib/components/Avatar/{index.jsx → index.js} +5 -9
  22. package/dist/lib/components/Badge/index.d.ts +1 -1
  23. package/dist/lib/components/Badge/{index.jsx → index.js} +5 -6
  24. package/dist/lib/components/BarChart/index.d.ts +2 -3
  25. package/dist/lib/components/BarChart/{index.jsx → index.js} +7 -6
  26. package/dist/lib/components/BubbleChart/index.d.ts +2 -3
  27. package/dist/lib/components/BubbleChart/{index.jsx → index.js} +7 -7
  28. package/dist/lib/components/Button/index.d.ts +1 -1
  29. package/dist/lib/components/Button/{index.jsx → index.js} +5 -6
  30. package/dist/lib/components/Callout/{CalloutIcon.jsx → CalloutIcon.js} +5 -10
  31. package/dist/lib/components/Callout/CalloutRoot.d.ts +1 -1
  32. package/dist/lib/components/Callout/{CalloutRoot.jsx → CalloutRoot.js} +5 -8
  33. package/dist/lib/components/Callout/{CalloutText.jsx → CalloutText.js} +15 -5
  34. package/dist/lib/components/Card/index.d.ts +1 -1
  35. package/dist/lib/components/Card/{index.jsx → index.js} +5 -6
  36. package/dist/lib/components/Checkbox/index.d.ts +1 -1
  37. package/dist/lib/components/Checkbox/{index.jsx → index.js} +6 -14
  38. package/dist/lib/components/CheckboxCard/index.d.ts +2 -2
  39. package/dist/lib/components/CheckboxCard/{index.jsx → index.js} +7 -9
  40. package/dist/lib/components/CheckboxGroup/CheckboxGroupItem.d.ts +1 -1
  41. package/dist/lib/components/CheckboxGroup/{CheckboxGroupItem.jsx → CheckboxGroupItem.js} +15 -7
  42. package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.d.ts +2 -2
  43. package/dist/lib/components/CheckboxGroup/{CheckboxGroupRoot.jsx → CheckboxGroupRoot.js} +3 -6
  44. package/dist/lib/components/CheckboxGroup/index.d.ts +1 -1
  45. package/dist/lib/components/ContextMenu/{ContextMenuCheckboxItem.jsx → ContextMenuCheckboxItem.js} +16 -9
  46. package/dist/lib/components/ContextMenu/{ContextMenuContent.jsx → ContextMenuContent.js} +5 -8
  47. package/dist/lib/components/ContextMenu/{ContextMenuGroup.jsx → ContextMenuGroup.js} +14 -4
  48. package/dist/lib/components/ContextMenu/{ContextMenuItem.jsx → ContextMenuItem.js} +5 -7
  49. package/dist/lib/components/ContextMenu/{ContextMenuItemIndicator.jsx → ContextMenuItemIndicator.js} +5 -6
  50. package/dist/lib/components/ContextMenu/{ContextMenuLabel.jsx → ContextMenuLabel.js} +5 -6
  51. package/dist/lib/components/ContextMenu/{ContextMenuRadioGroup.jsx → ContextMenuRadioGroup.js} +14 -6
  52. package/dist/lib/components/ContextMenu/{ContextMenuRadioItem.jsx → ContextMenuRadioItem.js} +16 -9
  53. package/dist/lib/components/ContextMenu/ContextMenuRoot.d.ts +1 -1
  54. package/dist/lib/components/ContextMenu/{ContextMenuRoot.jsx → ContextMenuRoot.js} +14 -6
  55. package/dist/lib/components/ContextMenu/{ContextMenuSeparator.jsx → ContextMenuSeparator.js} +15 -5
  56. package/dist/lib/components/ContextMenu/{ContextMenuSubContent.jsx → ContextMenuSubContent.js} +9 -12
  57. package/dist/lib/components/ContextMenu/{ContextMenuSubTrigger.jsx → ContextMenuSubTrigger.js} +16 -11
  58. package/dist/lib/components/ContextMenu/{ContextMenuTrigger.jsx → ContextMenuTrigger.js} +15 -5
  59. package/dist/lib/components/DataList/{DataListItem.jsx → DataListItem.js} +5 -6
  60. package/dist/lib/components/DataList/{DataListLabel.jsx → DataListLabel.js} +5 -6
  61. package/dist/lib/components/DataList/{DataListRoot.jsx → DataListRoot.js} +15 -7
  62. package/dist/lib/components/DataList/{DataListValue.jsx → DataListValue.js} +5 -6
  63. package/dist/lib/components/Dialog/{DialogAction.jsx → DialogAction.js} +16 -6
  64. package/dist/lib/components/Dialog/{DialogCancel.jsx → DialogCancel.js} +15 -5
  65. package/dist/lib/components/Dialog/{DialogContent.jsx → DialogContent.js} +5 -6
  66. package/dist/lib/components/Dialog/{DialogDescription.jsx → DialogDescription.js} +15 -5
  67. package/dist/lib/components/Dialog/DialogRoot.d.ts +1 -1
  68. package/dist/lib/components/Dialog/{DialogRoot.jsx → DialogRoot.js} +14 -6
  69. package/dist/lib/components/Dialog/{DialogSlot.jsx → DialogSlot.js} +15 -5
  70. package/dist/lib/components/Dialog/{DialogTitle.jsx → DialogTitle.js} +15 -5
  71. package/dist/lib/components/Dialog/{DialogTrigger.jsx → DialogTrigger.js} +14 -4
  72. package/dist/lib/components/Dialog/index.d.ts +1 -1
  73. package/dist/lib/components/DoughnutChart/index.d.ts +2 -3
  74. package/dist/lib/components/DoughnutChart/{index.jsx → index.js} +6 -6
  75. package/dist/lib/components/DropdownMenu/{DropdonMenuRadioGroup.jsx → DropdonMenuRadioGroup.js} +13 -3
  76. package/dist/lib/components/DropdownMenu/{DropdonMenuSubContent.jsx → DropdonMenuSubContent.js} +9 -12
  77. package/dist/lib/components/DropdownMenu/{DropdownMenuCheckboxItem.jsx → DropdownMenuCheckboxItem.js} +16 -9
  78. package/dist/lib/components/DropdownMenu/{DropdownMenuContent.jsx → DropdownMenuContent.js} +5 -8
  79. package/dist/lib/components/DropdownMenu/DropdownMenuItem.d.ts +1 -1
  80. package/dist/lib/components/DropdownMenu/{DropdownMenuItem.jsx → DropdownMenuItem.js} +5 -7
  81. package/dist/lib/components/DropdownMenu/{DropdownMenuItemIndicator.jsx → DropdownMenuItemIndicator.js} +5 -6
  82. package/dist/lib/components/DropdownMenu/{DropdownMenuLable.jsx → DropdownMenuLable.js} +15 -5
  83. package/dist/lib/components/DropdownMenu/{DropdownMenuRadioItem.jsx → DropdownMenuRadioItem.js} +16 -9
  84. package/dist/lib/components/DropdownMenu/DropdownMenuRoot.d.ts +2 -2
  85. package/dist/lib/components/DropdownMenu/{DropdownMenuRoot.jsx → DropdownMenuRoot.js} +14 -4
  86. package/dist/lib/components/DropdownMenu/{DropdownMenuSeparator.jsx → DropdownMenuSeparator.js} +15 -3
  87. package/dist/lib/components/DropdownMenu/{DropdownMenuSub.jsx → DropdownMenuSub.js} +14 -2
  88. package/dist/lib/components/DropdownMenu/{DropdownMenuSubTrigger.jsx → DropdownMenuSubTrigger.js} +16 -9
  89. package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.d.ts +1 -1
  90. package/dist/lib/components/DropdownMenu/{DropdownMenuTrigger.jsx → DropdownMenuTrigger.js} +15 -5
  91. package/dist/lib/components/DropdownMenu/index.d.ts +1 -1
  92. package/dist/lib/components/HoverCard/{HoverCardContent.jsx → HoverCardContent.js} +5 -6
  93. package/dist/lib/components/HoverCard/HoverCardRoot.d.ts +1 -1
  94. package/dist/lib/components/HoverCard/{HoverCardRoot.jsx → HoverCardRoot.js} +14 -6
  95. package/dist/lib/components/HoverCard/{HoverCardTrigger.jsx → HoverCardTrigger.js} +14 -4
  96. package/dist/lib/components/HoverCard/index.d.ts +1 -1
  97. package/dist/lib/components/IconButton/index.d.ts +1 -1
  98. package/dist/lib/components/IconButton/{index.jsx → index.js} +4 -5
  99. package/dist/lib/components/Inset/{index.jsx → index.js} +5 -8
  100. package/dist/lib/components/Label/index.d.ts +1 -1
  101. package/dist/lib/components/Label/{index.jsx → index.js} +4 -5
  102. package/dist/lib/components/LineChart/index.d.ts +2 -3
  103. package/dist/lib/components/LineChart/{index.jsx → index.js} +7 -6
  104. package/dist/lib/components/Menubar/{MenubarCheckboxItem.jsx → MenubarCheckboxItem.js} +16 -9
  105. package/dist/lib/components/Menubar/{MenubarContent.jsx → MenubarContent.js} +9 -12
  106. package/dist/lib/components/Menubar/{MenubarItem.jsx → MenubarItem.js} +5 -7
  107. package/dist/lib/components/Menubar/{MenubarItemIndicator.jsx → MenubarItemIndicator.js} +5 -6
  108. package/dist/lib/components/Menubar/{MenubarMenu.jsx → MenubarMenu.js} +14 -2
  109. package/dist/lib/components/Menubar/{MenubarRadioGroup.jsx → MenubarRadioGroup.js} +14 -6
  110. package/dist/lib/components/Menubar/{MenubarRadioItem.jsx → MenubarRadioItem.js} +16 -9
  111. package/dist/lib/components/Menubar/MenubarRoot.d.ts +1 -1
  112. package/dist/lib/components/Menubar/{MenubarRoot.jsx → MenubarRoot.js} +5 -8
  113. package/dist/lib/components/Menubar/{MenubarSeparator.jsx → MenubarSeparator.js} +15 -5
  114. package/dist/lib/components/Menubar/{MenubarSub.jsx → MenubarSub.js} +14 -2
  115. package/dist/lib/components/Menubar/{MenubarSubContent.jsx → MenubarSubContent.js} +6 -7
  116. package/dist/lib/components/Menubar/{MenubarSubTrigger.jsx → MenubarSubTrigger.js} +16 -9
  117. package/dist/lib/components/Menubar/{MenubarTrigger.jsx → MenubarTrigger.js} +5 -6
  118. package/dist/lib/components/NavigationMenu/{NavigationMenuContent.jsx → NavigationMenuContent.js} +5 -6
  119. package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.js +31 -0
  120. package/dist/lib/components/NavigationMenu/{NavigationMenuItem.jsx → NavigationMenuItem.js} +14 -4
  121. package/dist/lib/components/NavigationMenu/{NavigationMenuLink.jsx → NavigationMenuLink.js} +5 -6
  122. package/dist/lib/components/NavigationMenu/{NavigationMenuList.jsx → NavigationMenuList.js} +5 -7
  123. package/dist/lib/components/NavigationMenu/NavigationMenuRoot.d.ts +1 -1
  124. package/dist/lib/components/NavigationMenu/{NavigationMenuRoot.jsx → NavigationMenuRoot.js} +15 -7
  125. package/dist/lib/components/NavigationMenu/{NavigationMenuTrigger.jsx → NavigationMenuTrigger.js} +5 -7
  126. package/dist/lib/components/NavigationMenu/{NavigationMenuViewport.jsx → NavigationMenuViewport.js} +5 -6
  127. package/dist/lib/components/PieChart/index.d.ts +2 -3
  128. package/dist/lib/components/PieChart/{index.jsx → index.js} +6 -6
  129. package/dist/lib/components/Popover/{PopoverClose.jsx → PopoverClose.js} +15 -5
  130. package/dist/lib/components/Popover/{PopoverContent.jsx → PopoverContent.js} +5 -6
  131. package/dist/lib/components/Popover/PopoverRoot.d.ts +1 -1
  132. package/dist/lib/components/Popover/{PopoverRoot.jsx → PopoverRoot.js} +14 -6
  133. package/dist/lib/components/Popover/{PopoverTrigger.jsx → PopoverTrigger.js} +14 -4
  134. package/dist/lib/components/Popover/index.d.ts +1 -1
  135. package/dist/lib/components/Progress/{index.jsx → index.js} +5 -6
  136. package/dist/lib/components/RadarChart/index.d.ts +2 -3
  137. package/dist/lib/components/RadarChart/{index.jsx → index.js} +7 -7
  138. package/dist/lib/components/Radio/index.d.ts +1 -1
  139. package/dist/lib/components/Radio/{index.jsx → index.js} +15 -10
  140. package/dist/lib/components/RadioCards/{RadioCardsItem.jsx → RadioCardsItem.js} +15 -5
  141. package/dist/lib/components/RadioCards/{RadioCardsRoot.jsx → RadioCardsRoot.js} +5 -10
  142. package/dist/lib/components/RadioGroup/{RadioGroupItem.jsx → RadioGroupItem.js} +15 -5
  143. package/dist/lib/components/RadioGroup/RadioGroupRoot.d.ts +1 -1
  144. package/dist/lib/components/RadioGroup/{RadioGroupRoot.jsx → RadioGroupRoot.js} +15 -9
  145. package/dist/lib/components/ScrollArea/{index.jsx → index.js} +14 -6
  146. package/dist/lib/components/SegmentedControl/{SegmentedControlItem.jsx → SegmentedControlItem.js} +15 -5
  147. package/dist/lib/components/SegmentedControl/SegmentedControlRoot.d.ts +1 -1
  148. package/dist/lib/components/SegmentedControl/{SegmentedControlRoot.jsx → SegmentedControlRoot.js} +4 -7
  149. package/dist/lib/components/SegmentedControl/index.d.ts +1 -1
  150. package/dist/lib/components/Select/index.d.ts +1 -1
  151. package/dist/lib/components/Select/{index.jsx → index.js} +10 -27
  152. package/dist/lib/components/Separator/{index.jsx → index.js} +4 -7
  153. package/dist/lib/components/Skeleton/index.d.ts +1 -1
  154. package/dist/lib/components/Skeleton/{index.jsx → index.js} +4 -7
  155. package/dist/lib/components/Slider/index.d.ts +1 -1
  156. package/dist/lib/components/Slider/{index.jsx → index.js} +4 -5
  157. package/dist/lib/components/Spinner/index.d.ts +1 -1
  158. package/dist/lib/components/Spinner/{index.jsx → index.js} +4 -7
  159. package/dist/lib/components/TabNav/{index.jsx → index.js} +15 -9
  160. package/dist/lib/components/Table/index.d.ts +1 -1
  161. package/dist/lib/components/Table/{index.jsx → index.js} +10 -25
  162. package/dist/lib/components/Tabs/{index.jsx → index.js} +7 -16
  163. package/dist/lib/components/TextArea/index.d.ts +1 -1
  164. package/dist/lib/components/TextArea/{index.jsx → index.js} +4 -5
  165. package/dist/lib/components/TextField/index.d.ts +1 -1
  166. package/dist/lib/components/TextField/{index.jsx → index.js} +5 -10
  167. package/dist/lib/components/Toast/ToastActionButton.d.ts +1 -1
  168. package/dist/lib/components/Toast/{ToastActionButton.jsx → ToastActionButton.js} +6 -7
  169. package/dist/lib/components/Toast/ToastDescription.d.ts +1 -1
  170. package/dist/lib/components/Toast/{ToastDescription.jsx → ToastDescription.js} +15 -7
  171. package/dist/lib/components/Toast/{ToastRoot.jsx → ToastRoot.js} +5 -11
  172. package/dist/lib/components/Toast/ToastTitle.d.ts +1 -1
  173. package/dist/lib/components/Toast/{ToastTitle.jsx → ToastTitle.js} +15 -5
  174. package/dist/lib/components/Toggle/ToggleWithText.d.ts +1 -1
  175. package/dist/lib/components/Toggle/{ToggleWithText.jsx → ToggleWithText.js} +7 -9
  176. package/dist/lib/components/Toggle/index.d.ts +1 -1
  177. package/dist/lib/components/Toggle/{index.jsx → index.js} +5 -6
  178. package/dist/lib/components/ToggleGroup/ToggleGroupItem.d.ts +1 -1
  179. package/dist/lib/components/ToggleGroup/{ToggleGroupItem.jsx → ToggleGroupItem.js} +16 -6
  180. package/dist/lib/components/ToggleGroup/ToggleGroupRoot.d.ts +1 -1
  181. package/dist/lib/components/ToggleGroup/{ToggleGroupRoot.jsx → ToggleGroupRoot.js} +5 -10
  182. package/dist/lib/components/ToggleSwitch/{index.jsx → index.js} +5 -9
  183. package/dist/lib/components/Tooltip/index.d.ts +1 -1
  184. package/dist/lib/components/Tooltip/{index.jsx → index.js} +4 -13
  185. package/dist/lib/constants.js +2 -2
  186. package/dist/lib/index.d.ts +2 -2
  187. package/dist/lib/index.js +2 -2
  188. package/dist/lib/utils/useDarkMode.js +1 -1
  189. package/dist/tailwind.config.d.ts +3 -0
  190. package/dist/tailwind.config.js +141 -0
  191. package/package.json +4 -2
  192. package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.jsx +0 -22
  193. /package/dist/lib/components/AlertDialog/{index.jsx → index.js} +0 -0
  194. /package/dist/lib/components/Callout/{index.jsx → index.js} +0 -0
  195. /package/dist/lib/components/CheckboxGroup/{index.jsx → index.js} +0 -0
  196. /package/dist/lib/components/ContextMenu/{index.jsx → index.js} +0 -0
  197. /package/dist/lib/components/DataList/{index.jsx → index.js} +0 -0
  198. /package/dist/lib/components/Dialog/{index.jsx → index.js} +0 -0
  199. /package/dist/lib/components/DropdownMenu/{index.jsx → index.js} +0 -0
  200. /package/dist/lib/components/HoverCard/{index.jsx → index.js} +0 -0
  201. /package/dist/lib/components/Menubar/{index.jsx → index.js} +0 -0
  202. /package/dist/lib/components/NavigationMenu/{index.jsx → index.js} +0 -0
  203. /package/dist/lib/components/Popover/{index.jsx → index.js} +0 -0
  204. /package/dist/lib/components/RadioCards/{index.jsx → index.js} +0 -0
  205. /package/dist/lib/components/RadioGroup/{index.jsx → index.js} +0 -0
  206. /package/dist/lib/components/SegmentedControl/{index.jsx → index.js} +0 -0
  207. /package/dist/lib/components/Toast/{index.jsx → index.js} +0 -0
  208. /package/dist/lib/components/ToggleGroup/{index.jsx → index.js} +0 -0
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