@lotte-innovate/ui-component-test 0.2.88 → 0.2.90
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -2
- package/dist/globals.css +3 -3
- package/dist/lib/components/AlertDialog/index.d.ts +0 -1
- package/dist/lib/components/Badge/index.js +1 -1
- package/dist/lib/components/Badge/index.mjs +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbEllipsis.d.ts +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbLink.d.ts +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbSeparator.d.ts +1 -1
- package/dist/lib/components/Breadcrumb/index.d.ts +3 -4
- package/dist/lib/components/Callout/index.d.ts +0 -1
- package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.js +3 -4
- package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.mjs +1 -1
- package/dist/lib/components/CheckboxGroup/index.d.ts +1 -2
- package/dist/lib/components/ContextMenu/index.d.ts +0 -1
- package/dist/lib/components/DataList/DataListLabel.d.ts +1 -1
- package/dist/lib/components/DataList/index.d.ts +1 -2
- package/dist/lib/components/Datepicker/index.js +2 -2
- package/dist/lib/components/Datepicker/index.mjs +1 -1
- package/dist/lib/components/DatetimePicker/index.d.ts +1 -2
- package/dist/lib/components/DatetimePicker/index.js +15 -6
- package/dist/lib/components/DatetimePicker/index.mjs +1 -1
- package/dist/lib/components/Dialog/index.d.ts +0 -1
- package/dist/lib/components/DropdownMenu/index.d.ts +1 -2
- package/dist/lib/components/Editor/content.d.ts +1 -0
- package/dist/lib/components/Editor/content.js +1 -0
- package/dist/lib/components/Editor/content.mjs +2 -0
- package/dist/lib/components/Editor/content.mjs.map +1 -0
- package/dist/lib/components/Editor/index.js +2 -3
- package/dist/lib/components/Editor/index.mjs +1 -1
- package/dist/lib/components/Gnb/index.d.ts +0 -1
- package/dist/lib/components/Grid/index.js +12 -11
- package/dist/lib/components/Grid/index.mjs +1 -1
- package/dist/lib/components/Grid/useGrid.js +17 -13
- package/dist/lib/components/Grid/useGrid.mjs +1 -1
- package/dist/lib/components/HoverCard/index.d.ts +1 -2
- package/dist/lib/components/Menubar/index.d.ts +0 -1
- package/dist/lib/components/Modal/index.d.ts +1 -2
- package/dist/lib/components/NavigationMenu/index.d.ts +0 -1
- package/dist/lib/components/Popover/index.d.ts +1 -2
- package/dist/lib/components/RadioCards/index.d.ts +0 -1
- package/dist/lib/components/RadioGroup/index.d.ts +0 -1
- package/dist/lib/components/SegmentedControl/index.d.ts +0 -1
- package/dist/lib/components/TextField/index.js +1 -1
- package/dist/lib/components/TextField/index.mjs +1 -1
- package/dist/lib/components/Timeline/index.d.ts +0 -1
- package/dist/lib/components/Toast/ToastRoot.d.ts +2 -1
- package/dist/lib/components/Toast/ToastRoot.js +2 -2
- package/dist/lib/components/Toast/ToastRoot.mjs +1 -1
- package/dist/lib/components/Toast/index.d.ts +0 -1
- package/dist/lib/components/ToggleGroup/index.d.ts +0 -1
- package/dist/lib/components/Tree/index.js +2 -2
- package/dist/lib/components/Tree/index.mjs +1 -1
- package/dist/lib/constants.d.ts +2 -2
- package/dist/lib/tsconfig.tsbuildinfo +1 -1
- package/dist/lib/utils/useLoadTinyMCE.js +2 -2
- package/dist/lib/utils/useLoadTinyMCE.mjs +1 -1
- package/dist/lib/utils/useLoadTinyMCE.mjs.map +1 -1
- package/dist/tailwind.config.js +9 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +13 -5
package/README.md
CHANGED
@@ -134,7 +134,7 @@ export default App;
|
|
134
134
|
|
135
135
|
각 컴포넌트들은 공통 Props를 개별적으로 적용할 수도 있고, 테마를 통해 컴포넌트의 스타일을 한번에 변경할 수도 있습니다.
|
136
136
|
|
137
|
-
L-UI는 테마 컨텍스트를 제공하여 `Color`, `Radius`, `Scaling`, `Weight` 를 모든 컴포넌트에 동일한 스타일을 지정할 수
|
137
|
+
L-UI는 테마 컨텍스트를 제공하여 `Color`, `Radius`, `Scaling`, `Weight` 를 모든 컴포넌트에 동일한 스타일을 지정할 수 있습니다.
|
138
138
|
|
139
139
|
먼저 App 최상단에 `LuiThemeProvider`를 추가하여 테마 컨텍스트를 제공합니다.
|
140
140
|
|
@@ -158,6 +158,23 @@ export default function RootLayout({
|
|
158
158
|
}
|
159
159
|
```
|
160
160
|
|
161
|
+
> Next.js App router 에서 Layout.tsx 을 사용하는 예시 코드
|
162
|
+
|
163
|
+
`ThemeProvider`를 프로젝트의 가장 가까운 `layout.tsx` 파일에 추가해야 합니다.
|
164
|
+
|
165
|
+
이렇게 하면 `ThemeProvider`가 해당 레이아웃 내의 모든 컴포넌트에 테마 상태를 제공할 수 있습니다.
|
166
|
+
|
167
|
+
```tsx
|
168
|
+
import React from 'react';
|
169
|
+
import { LuiThemeProvider } from '@lotte-innovate/lui';
|
170
|
+
|
171
|
+
const Layout = ({ children }: { children: React.ReactNode }) => {
|
172
|
+
return <LuiThemeProvider>{children}</LuiThemeProvider>;
|
173
|
+
};
|
174
|
+
|
175
|
+
export default Layout;
|
176
|
+
```
|
177
|
+
|
161
178
|
> 클라이언트 사이드 프로젝트에서 사용 예시
|
162
179
|
|
163
180
|
```tsx
|
@@ -188,7 +205,9 @@ const ThemeChanger = () => {
|
|
188
205
|
theme.themeWeight = 'regular';
|
189
206
|
|
190
207
|
// 테마 변경 시
|
191
|
-
|
208
|
+
useEffect(() => {
|
209
|
+
updateTheme({ themeRadius: 'full', themeColor: 'amber', themeScaling: '110%' });
|
210
|
+
}, []);
|
192
211
|
|
193
212
|
return (
|
194
213
|
<div>
|