@lotte-innovate/ui-component-test 0.1.33 → 0.1.35

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. package/README.md +133 -89
  2. package/dist/globals.css +4 -4
  3. package/dist/lib/Typography/Text/index.js +1 -1
  4. package/dist/lib/color/dark.js +1 -1
  5. package/dist/lib/color/light.js +3 -3
  6. package/dist/lib/components/AlertDialog/AlertDialogAction.js +5 -5
  7. package/dist/lib/components/AlertDialog/AlertDialogCancel.js +5 -5
  8. package/dist/lib/components/AlertDialog/AlertDialogTrigger.js +1 -1
  9. package/dist/lib/components/Avatar/index.d.ts +1 -0
  10. package/dist/lib/components/Avatar/index.js +2 -2
  11. package/dist/lib/components/Badge/index.js +1 -1
  12. package/dist/lib/components/BarChart/index.d.ts +13 -57
  13. package/dist/lib/components/BarChart/index.js +3 -0
  14. package/dist/lib/components/BubbleChart/index.d.ts +15 -22
  15. package/dist/lib/components/BubbleChart/index.js +34 -15
  16. package/dist/lib/components/Callout/CalloutIcon.d.ts +2 -1
  17. package/dist/lib/components/Callout/CalloutRoot.js +4 -4
  18. package/dist/lib/components/Callout/CalloutText.js +1 -1
  19. package/dist/lib/components/Callout/index.d.ts +1 -1
  20. package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.d.ts +2 -1
  21. package/dist/lib/components/CheckboxGroup/index.d.ts +1 -1
  22. package/dist/lib/components/DoughnutChart/index.d.ts +12 -15
  23. package/dist/lib/components/DoughnutChart/index.js +10 -3
  24. package/dist/lib/components/LineChart/index.d.ts +9 -53
  25. package/dist/lib/components/LineChart/index.js +3 -1
  26. package/dist/lib/components/Menubar/MenubarMenu.d.ts +4 -1
  27. package/dist/lib/components/Menubar/MenubarRoot.js +1 -1
  28. package/dist/lib/components/Menubar/MenubarTrigger.js +1 -1
  29. package/dist/lib/components/Menubar/index.d.ts +3 -1
  30. package/dist/lib/components/NavigationMenu/NavigationMenuContent.js +2 -2
  31. package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.js +1 -1
  32. package/dist/lib/components/NavigationMenu/NavigationMenuList.js +1 -1
  33. package/dist/lib/components/NavigationMenu/NavigationMenuRoot.js +1 -1
  34. package/dist/lib/components/NavigationMenu/NavigationMenuViewport.js +1 -1
  35. package/dist/lib/components/PieChart/index.d.ts +12 -15
  36. package/dist/lib/components/PieChart/index.js +9 -2
  37. package/dist/lib/components/Progress/index.d.ts +1 -4
  38. package/dist/lib/components/Progress/index.js +2 -3
  39. package/dist/lib/components/RadarChart/index.d.ts +19 -26
  40. package/dist/lib/components/RadarChart/index.js +37 -15
  41. package/dist/lib/components/Radio/index.d.ts +0 -1
  42. package/dist/lib/components/Radio/index.js +3 -1
  43. package/dist/lib/components/RadioCards/RadioCardsItem.js +1 -1
  44. package/dist/lib/components/RadioCards/RadioCardsRoot.d.ts +0 -1
  45. package/dist/lib/components/RadioGroup/RadioGroupRoot.d.ts +0 -1
  46. package/dist/lib/components/Select/index.js +1 -1
  47. package/dist/lib/components/Toggle/ToggleWithText.d.ts +1 -1
  48. package/dist/lib/components/Toggle/ToggleWithText.js +1 -0
  49. package/dist/lib/components/ToggleSwitch/index.js +1 -1
  50. package/dist/lib/components/Tooltip/index.d.ts +0 -1
  51. package/dist/lib/components/Tooltip/index.js +3 -4
  52. package/dist/lib/components/index.d.ts +1 -0
  53. package/dist/lib/components/index.js +1 -0
  54. package/dist/lib/constants.d.ts +151 -0
  55. package/dist/lib/constants.js +111 -4
  56. package/dist/lib/types.d.ts +70 -0
  57. package/dist/lib/utils/useDarkMode.d.ts +1 -0
  58. package/dist/lib/utils/useDarkMode.js +49 -0
  59. package/dist/tailwind.config.js +2 -5
  60. package/package.json +131 -131
package/README.md CHANGED
@@ -1,89 +1,133 @@
1
- # LOTTE UI COMPONENT LIBRARY
2
-
3
- <br />
4
-
5
- ## 목차
6
-
7
- - [Introduction](#introduction)
8
- - [Installation](#installation)
9
- - [Setup](#setup)
10
- - [Usage](#usage)
11
- - [Components](#components)
12
- - [License](#license)
13
-
14
- ## Introduction
15
-
16
- 모든 L-UI 구성 요소를 내보내는 단일 패키지입니다.
17
-
18
- 일관되고 통일된 컴포넌트를 제공하며 사용자 정의 및 재사용 가능합니다.
19
-
20
- 이 라이브러리는 React로 구축된 프로젝트를 지원합니다.
21
-
22
- ## Installation
23
-
24
- 패키지를 설치하기 위해 아래 명령어를 사용합니다.
25
-
26
- ```bash
27
- npm i @lotte-innovate/ui-component-test
28
- ```
29
-
30
- ```bash
31
- yarn add @lotte-innovate/ui-component-test
32
- ```
33
-
34
- ## Setup
35
-
36
- 패키지를 설치한 후 css 스타일을 프로젝트로 가져옵니다.
37
-
38
- 프로젝트 App 진입 파일에 다음 줄을 추가해줍니다.
39
-
40
- ```
41
- import '@lotte-innovate/ui-component-test/dist/globals.css';
42
- ```
43
-
44
- ## Usage
45
-
46
- React 프로젝트에서 컴포넌트를 사용하는 방법에 대한 예시입니다.
47
-
48
- ```javascript
49
- import React from 'react';
50
- import { Button } from '@lotte-innovate/ui-component-test';
51
-
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/ui-component-test';
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
- 주요 컴포넌트는 이런 이런 종류가 있습니다. (추가 설명 작성 예정)
86
-
87
- ## License
88
-
89
- @lotte
1
+ # LOTTE UI COMPONENT LIBRARY
2
+
3
+ <br />
4
+
5
+ ## 목차
6
+
7
+ - [Introduction](#introduction)
8
+ - [Installation](#installation)
9
+ - [Setup](#setup)
10
+ - [Usage](#usage)
11
+ - [Components](#components)
12
+ - [License](#license)
13
+
14
+ ## Introduction
15
+
16
+ 모든 L-UI 구성 요소를 내보내는 단일 패키지입니다.
17
+
18
+ 일관되고 통일된 컴포넌트를 제공하며 사용자 정의 및 재사용 가능합니다.
19
+
20
+ 이 라이브러리는 React로 구축된 프로젝트를 지원합니다.
21
+
22
+ ## Installation
23
+
24
+ 패키지를 설치하기 위해 아래 명령어를 사용합니다.
25
+
26
+ ```bash
27
+ npm i @lotte-innovate/lui
28
+ ```
29
+
30
+ ```bash
31
+ yarn add @lotte-innovate/lui
32
+ ```
33
+
34
+ ## Setup
35
+
36
+ 패키지를 설치한 후 css 스타일을 프로젝트로 가져옵니다.
37
+
38
+ 프로젝트 App 진입 파일에 다음 줄을 추가해줍니다.
39
+
40
+ ```
41
+ import '@lotte-innovate/lui/dist/globals.css';
42
+ ```
43
+
44
+ ## Usage
45
+
46
+ React 프로젝트에서 컴포넌트를 사용하는 방법에 대한 예시입니다.
47
+
48
+ ```javascript
49
+ import React from 'react';
50
+ import { Button } from '@lotte-innovate/lui';
51
+
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 />
86
+
87
+ <details>
88
+ <summary>컴포넌트 목록</summary>
89
+
90
+ | 구분 | 종류 |
91
+ | --------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
92
+ | Typography 컴포넌트 | Text, Header |
93
+ | 기본 컴포넌트 | Avatar, Badge, Button, Icon Button, Label |
94
+ | 입력 컴포넌트 | Checkbox, Checkbox Group, Checkbox Cards, Radio, Radio Group, Radio Cards, Select, Slider, Switch, Text Area, Text Field, Toggle, Toggle Group |
95
+ | 네비게이션 컴포넌트 | Menubar, Navigation Menu, Tabs, Tab Nav |
96
+ | 레이아웃 컴포넌트 | Aspeact Ratio, Card, Inset, Scroll Area, Separator, Table |
97
+ | 피드백 컴포넌트 | Alert Dialog, Dialog, Hover Card, Popover, Toast, Tooltip |
98
+ | 로딩 컴포넌트 | Progress, Skeleton, Spinner, |
99
+ | 메뉴 및 선택 컴포넌트 | Context Menu, Dropdown Menu, Segmented Control |
100
+ | 기타 컴포넌트 | Accordian, Callout |
101
+
102
+ </details>
103
+ <details>
104
+ <summary>차트 목록</summary>
105
+
106
+ | 구분 | 종류 |
107
+ | --------- | ------------- |
108
+ | 비교 차트 | Bar, Line |
109
+ | 구성 차트 | Pie, Doughnut |
110
+ | 분포 차트 | Bubble |
111
+ | 관계 차트 | Radar |
112
+
113
+ </details>
114
+
115
+ <details>
116
+ <summary>공통 Props 목록</summary>
117
+
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 |
126
+
127
+ </details>
128
+
129
+ <br />
130
+
131
+ ## License
132
+
133
+ @lotte-innovate