@lotte-innovate/ui-component-test 0.1.69-beta.4 → 0.1.69-beta.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (106) hide show
  1. package/README.md +37 -15
  2. package/dist/globals.css +1 -1
  3. package/dist/lib/color/alpha.mjs.map +1 -1
  4. package/dist/lib/color/constants.mjs.map +1 -1
  5. package/dist/lib/color/light.mjs.map +1 -1
  6. package/dist/lib/components/AlertDialog/index.mjs.map +1 -1
  7. package/dist/lib/components/BarChart/index.mjs.map +1 -1
  8. package/dist/lib/components/Breadcrumb/BreadcrumbEllipsis.mjs.map +1 -1
  9. package/dist/lib/components/Breadcrumb/BreadcrumbItem.mjs.map +1 -1
  10. package/dist/lib/components/Breadcrumb/BreadcrumbLink.js +1 -1
  11. package/dist/lib/components/Breadcrumb/BreadcrumbLink.mjs +1 -1
  12. package/dist/lib/components/Breadcrumb/BreadcrumbLink.mjs.map +1 -1
  13. package/dist/lib/components/Breadcrumb/BreadcrumbList.js +1 -1
  14. package/dist/lib/components/Breadcrumb/BreadcrumbList.mjs +1 -1
  15. package/dist/lib/components/Breadcrumb/BreadcrumbList.mjs.map +1 -1
  16. package/dist/lib/components/Breadcrumb/BreadcrumbPage.js +1 -1
  17. package/dist/lib/components/Breadcrumb/BreadcrumbPage.mjs +1 -1
  18. package/dist/lib/components/Breadcrumb/BreadcrumbPage.mjs.map +1 -1
  19. package/dist/lib/components/Breadcrumb/BreadcrumbSeparator.mjs.map +1 -1
  20. package/dist/lib/components/Breadcrumb/index.mjs.map +1 -1
  21. package/dist/lib/components/BubbleChart/index.mjs.map +1 -1
  22. package/dist/lib/components/Callout/index.mjs.map +1 -1
  23. package/dist/lib/components/CheckboxGroup/index.mjs.map +1 -1
  24. package/dist/lib/components/ContextMenu/ContextMenuGroup.mjs.map +1 -1
  25. package/dist/lib/components/ContextMenu/ContextMenuSeparator.mjs.map +1 -1
  26. package/dist/lib/components/ContextMenu/ContextMenuTrigger.mjs.map +1 -1
  27. package/dist/lib/components/ContextMenu/index.mjs.map +1 -1
  28. package/dist/lib/components/DataList/index.mjs.map +1 -1
  29. package/dist/lib/components/Dialog/DialogTrigger.mjs.map +1 -1
  30. package/dist/lib/components/Dialog/index.mjs.map +1 -1
  31. package/dist/lib/components/DoughnutChart/index.mjs.map +1 -1
  32. package/dist/lib/components/DropdownMenu/DropdonMenuRadioGroup.mjs.map +1 -1
  33. package/dist/lib/components/DropdownMenu/DropdownMenuSeparator.mjs.map +1 -1
  34. package/dist/lib/components/DropdownMenu/DropdownMenuSub.mjs.map +1 -1
  35. package/dist/lib/components/DropdownMenu/index.mjs.map +1 -1
  36. package/dist/lib/components/Gnb/GnbInfo.d.ts +9 -0
  37. package/dist/lib/components/Gnb/GnbInfo.js +45 -0
  38. package/dist/lib/components/Gnb/GnbInfo.mjs +2 -0
  39. package/dist/lib/components/Gnb/GnbInfo.mjs.map +1 -0
  40. package/dist/lib/components/Gnb/GnbLogo.d.ts +9 -0
  41. package/dist/lib/components/Gnb/GnbLogo.js +47 -0
  42. package/dist/lib/components/Gnb/GnbLogo.mjs +2 -0
  43. package/dist/lib/components/Gnb/GnbLogo.mjs.map +1 -0
  44. package/dist/lib/components/Gnb/GnbMenu.d.ts +11 -0
  45. package/dist/lib/components/Gnb/GnbMenu.js +48 -0
  46. package/dist/lib/components/Gnb/GnbMenu.mjs +2 -0
  47. package/dist/lib/components/Gnb/GnbMenu.mjs.map +1 -0
  48. package/dist/lib/components/Gnb/GnbRoot.d.ts +11 -0
  49. package/dist/lib/components/Gnb/GnbRoot.js +51 -0
  50. package/dist/lib/components/Gnb/GnbRoot.mjs +3 -0
  51. package/dist/lib/components/Gnb/GnbRoot.mjs.map +1 -0
  52. package/dist/lib/components/Gnb/index.d.ts +8 -0
  53. package/dist/lib/components/Gnb/index.js +11 -0
  54. package/dist/lib/components/Gnb/index.mjs +2 -0
  55. package/dist/lib/components/Gnb/index.mjs.map +1 -0
  56. package/dist/lib/components/HoverCard/HoverCardTrigger.mjs.map +1 -1
  57. package/dist/lib/components/HoverCard/index.mjs.map +1 -1
  58. package/dist/lib/components/LineChart/index.mjs.map +1 -1
  59. package/dist/lib/components/Menubar/MenubarMenu.mjs.map +1 -1
  60. package/dist/lib/components/Menubar/MenubarSeparator.mjs.map +1 -1
  61. package/dist/lib/components/Menubar/MenubarSub.mjs.map +1 -1
  62. package/dist/lib/components/Menubar/index.mjs.map +1 -1
  63. package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.mjs.map +1 -1
  64. package/dist/lib/components/NavigationMenu/NavigationMenuItem.mjs.map +1 -1
  65. package/dist/lib/components/NavigationMenu/index.mjs.map +1 -1
  66. package/dist/lib/components/PieChart/index.mjs.map +1 -1
  67. package/dist/lib/components/Popover/PopoverTrigger.mjs.map +1 -1
  68. package/dist/lib/components/Popover/index.mjs.map +1 -1
  69. package/dist/lib/components/RadarChart/index.mjs.map +1 -1
  70. package/dist/lib/components/RadioCards/index.mjs.map +1 -1
  71. package/dist/lib/components/RadioGroup/index.mjs.map +1 -1
  72. package/dist/lib/components/SegmentedControl/SegmentedControlItem.mjs.map +1 -1
  73. package/dist/lib/components/SegmentedControl/index.mjs.map +1 -1
  74. package/dist/lib/components/Slider/index.d.ts +2 -1
  75. package/dist/lib/components/Timeline/TimelineConnector.d.ts +6 -0
  76. package/dist/lib/components/Timeline/TimelineConnector.js +36 -0
  77. package/dist/lib/components/Timeline/TimelineContent.d.ts +6 -0
  78. package/dist/lib/components/Timeline/TimelineContent.js +34 -0
  79. package/dist/lib/components/Timeline/TimelineDescription.d.ts +6 -0
  80. package/dist/lib/components/Timeline/TimelineDescription.js +34 -0
  81. package/dist/lib/components/Timeline/TimelineHeader.d.ts +6 -0
  82. package/dist/lib/components/Timeline/TimelineHeader.js +34 -0
  83. package/dist/lib/components/Timeline/TimelineIcon.d.ts +8 -0
  84. package/dist/lib/components/Timeline/TimelineIcon.js +42 -0
  85. package/dist/lib/components/Timeline/TimelineItem.d.ts +6 -0
  86. package/dist/lib/components/Timeline/TimelineItem.js +34 -0
  87. package/dist/lib/components/Timeline/TimelineRoot.d.ts +11 -0
  88. package/dist/lib/components/Timeline/TimelineRoot.js +53 -0
  89. package/dist/lib/components/Timeline/TimelineTime.d.ts +6 -0
  90. package/dist/lib/components/Timeline/TimelineTime.js +34 -0
  91. package/dist/lib/components/Timeline/TimelineTitle.d.ts +6 -0
  92. package/dist/lib/components/Timeline/TimelineTitle.js +34 -0
  93. package/dist/lib/components/Timeline/index.d.ts +13 -0
  94. package/dist/lib/components/Timeline/index.js +21 -0
  95. package/dist/lib/components/Toast/index.mjs.map +1 -1
  96. package/dist/lib/components/ToggleGroup/index.mjs.map +1 -1
  97. package/dist/lib/components/index.d.ts +1 -0
  98. package/dist/lib/components/index.js +1 -0
  99. package/dist/lib/constants.mjs.map +1 -1
  100. package/dist/lib/index.mjs +1 -1
  101. package/dist/lib/types.d.ts +7 -1
  102. package/dist/lib/utils/utils.mjs.map +1 -1
  103. package/dist/tsconfig.tsbuildinfo +1 -1
  104. package/package.json +1 -1
  105. package/dist/lib/tailwind.config.d.ts +0 -3
  106. package/dist/lib/tsconfig.tsbuildinfo +0 -1
package/README.md CHANGED
@@ -116,14 +116,14 @@ export default App;
116
116
  <details>
117
117
  <summary>공통 Props 목록</summary>
118
118
 
119
- | name | description | 단계 | option |
120
- | ---------- | ------------------------------------------------- | -------- | --------------------------------------------- |
121
- | Color | 27가지 색상을 라이트/다크/알파/알파다크 모드 제공 | 1~12단계 | blue, crimson, teal, orange, purple, amber... |
122
- | Radius | 컴포넌트의 둥글기 적용 | 5단계 | none, small, medium, large, full |
123
- | Scaling | 컴포넌트의 비율 | 5단계 | 90%, 95%, 100%, 105%, 110% |
124
- | Weight | 컴포넌트의 텍스트 굵기 | 4단계 | regular, medium, semibold, bold |
125
- | Appearance | 컴포넌트의 디자인 스타일 | 6단계 | classic, ghost, outline, soft, solid, surface |
126
- | Size | 컴포넌트의 크기 | 5단계 | x-small, small, medium, large, x-large |
119
+ | name | description | 단계 | option | 테마적용여부 |
120
+ | ---------- | ------------------------------------------------- | -------- | --------------------------------------------- | ------------ |
121
+ | Color | 27가지 색상을 라이트/다크/알파/알파다크 모드 제공 | 1~12단계 | blue, crimson, teal, orange, purple, amber... | O |
122
+ | Radius | 컴포넌트의 둥글기 적용 | 5단계 | none, small, medium, large, full | O |
123
+ | Scaling | 컴포넌트의 비율 | 5단계 | 90%, 95%, 100%, 105%, 110% | O |
124
+ | Weight | 컴포넌트의 텍스트 굵기 | 4단계 | regular, medium, semibold, bold | O |
125
+ | Appearance | 컴포넌트의 디자인 스타일 | 6단계 | classic, ghost, outline, soft, solid, surface | X |
126
+ | Size | 컴포넌트의 크기 | 5단계 | x-small, small, medium, large, x-large | X |
127
127
 
128
128
  </details>
129
129
 
@@ -131,12 +131,14 @@ export default App;
131
131
 
132
132
  ## Theme
133
133
 
134
- L-UI는 테마 컨텍스트를 제공하여 배포된 컴포넌트들에 대해 다양한 테마를 적용할 있게 합니다.
134
+ 컴포넌트들은 공통 Props를 개별적으로 적용할 수도 있고, 테마를 통해 컴포넌트의 스타일을 한번에 변경할 수도 있습니다.
135
135
 
136
- `Color`, `Radius`, `Scaling`, `Weight` 를 한번에 적용할있습니다.
136
+ L-UI는 테마 컨텍스트를 제공하여 `Color`, `Radius`, `Scaling`, `Weight` 를 모든 컴포넌트에 동일한 스타일을 지정할 있습니다..
137
137
 
138
138
  먼저 App 최상단에 `LuiThemeProvider`를 추가하여 테마 컨텍스트를 제공합니다.
139
139
 
140
+ > Next.js와 같은 프레임워크를 사용하는 프로젝트에서 사용 예시
141
+
140
142
  ```javascript
141
143
  import { LuiThemeProvider } from '@lotte-innovate/lui';
142
144
 
@@ -156,16 +158,16 @@ export default function RootLayout({
156
158
 
157
159
  ```
158
160
 
161
+ > 클라이언트 사이드 프로젝트에서 사용 예시
162
+
159
163
  ```javascript
160
164
  import { LuiThemeProvider } from '@lotte-innovate/lui';
161
165
 
162
166
  const root = ReactDOM.createRoot(document.getElementById('root'));
163
167
  root.render(
164
- <React.StrictMode>
165
- <LuiThemeProvider>
166
- <App />
167
- </LuiThemeProvider>
168
- </React.StrictMode>,
168
+ <LuiThemeProvider>
169
+ <App />
170
+ </LuiThemeProvider>,
169
171
  );
170
172
  ```
171
173
 
@@ -196,6 +198,26 @@ const ThemeChanger = () => {
196
198
  };
197
199
  ```
198
200
 
201
+ 테마가 적용되었지만 일부 컴포넌트는 스타일을 다르게 하고 싶은 경우, 각 컴포넌트에 직접 Props를 전달하여 스타일을 재정의할 수 있습니다.
202
+
203
+ ```javascript
204
+ import { useTheme, Button } from '@lotte-innovate/lui';
205
+
206
+ const ThemeChanger = () => {
207
+ const { theme } = useTheme();
208
+
209
+ theme.themeRadius: 'full';
210
+ theme.themeColor: 'blue';
211
+
212
+ return (
213
+ <div>
214
+ <Button>테마 적용 버튼</Button>
215
+ <Button radius="none" color="crimson">테마 미적용 버튼</Button>
216
+ </div>
217
+ );
218
+ };
219
+ ```
220
+
199
221
  <br />
200
222
 
201
223
  ## License