@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.
- package/README.md +37 -15
- package/dist/globals.css +1 -1
- package/dist/lib/color/alpha.mjs.map +1 -1
- package/dist/lib/color/constants.mjs.map +1 -1
- package/dist/lib/color/light.mjs.map +1 -1
- package/dist/lib/components/AlertDialog/index.mjs.map +1 -1
- package/dist/lib/components/BarChart/index.mjs.map +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbEllipsis.mjs.map +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbItem.mjs.map +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbLink.js +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbLink.mjs +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbLink.mjs.map +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbList.js +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbList.mjs +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbList.mjs.map +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbPage.js +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbPage.mjs +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbPage.mjs.map +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbSeparator.mjs.map +1 -1
- package/dist/lib/components/Breadcrumb/index.mjs.map +1 -1
- package/dist/lib/components/BubbleChart/index.mjs.map +1 -1
- package/dist/lib/components/Callout/index.mjs.map +1 -1
- package/dist/lib/components/CheckboxGroup/index.mjs.map +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuGroup.mjs.map +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuSeparator.mjs.map +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuTrigger.mjs.map +1 -1
- package/dist/lib/components/ContextMenu/index.mjs.map +1 -1
- package/dist/lib/components/DataList/index.mjs.map +1 -1
- package/dist/lib/components/Dialog/DialogTrigger.mjs.map +1 -1
- package/dist/lib/components/Dialog/index.mjs.map +1 -1
- package/dist/lib/components/DoughnutChart/index.mjs.map +1 -1
- package/dist/lib/components/DropdownMenu/DropdonMenuRadioGroup.mjs.map +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuSeparator.mjs.map +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuSub.mjs.map +1 -1
- package/dist/lib/components/DropdownMenu/index.mjs.map +1 -1
- package/dist/lib/components/Gnb/GnbInfo.d.ts +9 -0
- package/dist/lib/components/Gnb/GnbInfo.js +45 -0
- package/dist/lib/components/Gnb/GnbInfo.mjs +2 -0
- package/dist/lib/components/Gnb/GnbInfo.mjs.map +1 -0
- package/dist/lib/components/Gnb/GnbLogo.d.ts +9 -0
- package/dist/lib/components/Gnb/GnbLogo.js +47 -0
- package/dist/lib/components/Gnb/GnbLogo.mjs +2 -0
- package/dist/lib/components/Gnb/GnbLogo.mjs.map +1 -0
- package/dist/lib/components/Gnb/GnbMenu.d.ts +11 -0
- package/dist/lib/components/Gnb/GnbMenu.js +48 -0
- package/dist/lib/components/Gnb/GnbMenu.mjs +2 -0
- package/dist/lib/components/Gnb/GnbMenu.mjs.map +1 -0
- package/dist/lib/components/Gnb/GnbRoot.d.ts +11 -0
- package/dist/lib/components/Gnb/GnbRoot.js +51 -0
- package/dist/lib/components/Gnb/GnbRoot.mjs +3 -0
- package/dist/lib/components/Gnb/GnbRoot.mjs.map +1 -0
- package/dist/lib/components/Gnb/index.d.ts +8 -0
- package/dist/lib/components/Gnb/index.js +11 -0
- package/dist/lib/components/Gnb/index.mjs +2 -0
- package/dist/lib/components/Gnb/index.mjs.map +1 -0
- package/dist/lib/components/HoverCard/HoverCardTrigger.mjs.map +1 -1
- package/dist/lib/components/HoverCard/index.mjs.map +1 -1
- package/dist/lib/components/LineChart/index.mjs.map +1 -1
- package/dist/lib/components/Menubar/MenubarMenu.mjs.map +1 -1
- package/dist/lib/components/Menubar/MenubarSeparator.mjs.map +1 -1
- package/dist/lib/components/Menubar/MenubarSub.mjs.map +1 -1
- package/dist/lib/components/Menubar/index.mjs.map +1 -1
- package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.mjs.map +1 -1
- package/dist/lib/components/NavigationMenu/NavigationMenuItem.mjs.map +1 -1
- package/dist/lib/components/NavigationMenu/index.mjs.map +1 -1
- package/dist/lib/components/PieChart/index.mjs.map +1 -1
- package/dist/lib/components/Popover/PopoverTrigger.mjs.map +1 -1
- package/dist/lib/components/Popover/index.mjs.map +1 -1
- package/dist/lib/components/RadarChart/index.mjs.map +1 -1
- package/dist/lib/components/RadioCards/index.mjs.map +1 -1
- package/dist/lib/components/RadioGroup/index.mjs.map +1 -1
- package/dist/lib/components/SegmentedControl/SegmentedControlItem.mjs.map +1 -1
- package/dist/lib/components/SegmentedControl/index.mjs.map +1 -1
- package/dist/lib/components/Slider/index.d.ts +2 -1
- package/dist/lib/components/Timeline/TimelineConnector.d.ts +6 -0
- package/dist/lib/components/Timeline/TimelineConnector.js +36 -0
- package/dist/lib/components/Timeline/TimelineContent.d.ts +6 -0
- package/dist/lib/components/Timeline/TimelineContent.js +34 -0
- package/dist/lib/components/Timeline/TimelineDescription.d.ts +6 -0
- package/dist/lib/components/Timeline/TimelineDescription.js +34 -0
- package/dist/lib/components/Timeline/TimelineHeader.d.ts +6 -0
- package/dist/lib/components/Timeline/TimelineHeader.js +34 -0
- package/dist/lib/components/Timeline/TimelineIcon.d.ts +8 -0
- package/dist/lib/components/Timeline/TimelineIcon.js +42 -0
- package/dist/lib/components/Timeline/TimelineItem.d.ts +6 -0
- package/dist/lib/components/Timeline/TimelineItem.js +34 -0
- package/dist/lib/components/Timeline/TimelineRoot.d.ts +11 -0
- package/dist/lib/components/Timeline/TimelineRoot.js +53 -0
- package/dist/lib/components/Timeline/TimelineTime.d.ts +6 -0
- package/dist/lib/components/Timeline/TimelineTime.js +34 -0
- package/dist/lib/components/Timeline/TimelineTitle.d.ts +6 -0
- package/dist/lib/components/Timeline/TimelineTitle.js +34 -0
- package/dist/lib/components/Timeline/index.d.ts +13 -0
- package/dist/lib/components/Timeline/index.js +21 -0
- package/dist/lib/components/Toast/index.mjs.map +1 -1
- package/dist/lib/components/ToggleGroup/index.mjs.map +1 -1
- package/dist/lib/components/index.d.ts +1 -0
- package/dist/lib/components/index.js +1 -0
- package/dist/lib/constants.mjs.map +1 -1
- package/dist/lib/index.mjs +1 -1
- package/dist/lib/types.d.ts +7 -1
- package/dist/lib/utils/utils.mjs.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/lib/tailwind.config.d.ts +0 -3
- 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
|
-
|
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
|
-
<
|
165
|
-
<
|
166
|
-
|
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
|