@lotte-innovate/ui-component-test 0.0.157 → 0.0.159
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +8 -9
- package/dist/globals.css +2 -2
- package/dist/lib/Typography/Text/index.mjs +1 -1
- package/dist/lib/color/constants.js +1 -1
- package/dist/lib/color/constants.mjs +1 -1
- package/dist/lib/color/constants.mjs.map +1 -1
- package/dist/lib/color/dark.mjs +2 -0
- package/dist/lib/color/dark.mjs.map +1 -0
- package/dist/lib/color/index.d.ts +5 -0
- package/dist/lib/color/index.js +5 -0
- package/dist/lib/color/krdsColors.mjs +2 -0
- package/dist/lib/color/krdsColors.mjs.map +1 -0
- package/dist/lib/color/light.mjs +1 -1
- package/dist/lib/color/light.mjs.map +1 -1
- package/dist/lib/components/Avatar/index.js +1 -0
- package/dist/lib/components/Avatar/index.mjs +1 -1
- package/dist/lib/components/Badge/index.js +3 -3
- package/dist/lib/components/Badge/index.mjs +1 -1
- package/dist/lib/components/Box/index.js +2 -2
- package/dist/lib/components/Box/index.mjs +1 -1
- package/dist/lib/components/Box/index.mjs.map +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbLink.js +2 -2
- package/dist/lib/components/Breadcrumb/BreadcrumbLink.mjs +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbLink.mjs.map +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbPage.js +3 -3
- package/dist/lib/components/Breadcrumb/BreadcrumbPage.mjs +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbPage.mjs.map +1 -1
- package/dist/lib/components/Breadcrumb/BreadcrumbRoot.js +2 -2
- package/dist/lib/components/Breadcrumb/BreadcrumbRoot.mjs +1 -1
- package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.d.ts +1 -1
- package/dist/lib/components/CheckboxGroup/index.d.ts +1 -1
- package/dist/lib/components/Container/index.js +2 -2
- package/dist/lib/components/Container/index.mjs +1 -1
- package/dist/lib/components/Container/index.mjs.map +1 -1
- package/dist/lib/components/Datepicker/index.d.ts +2 -1
- package/dist/lib/components/Datepicker/index.js +5 -3
- package/dist/lib/components/Datepicker/index.mjs +1 -1
- package/dist/lib/components/Dialog/DialogAction.mjs +1 -1
- package/dist/lib/components/Dialog/DialogCancel.js +1 -1
- package/dist/lib/components/Dialog/DialogCancel.mjs +1 -1
- package/dist/lib/components/Dialog/DialogContent.js +1 -1
- package/dist/lib/components/Dialog/DialogContent.mjs +1 -1
- package/dist/lib/components/Dialog/DialogRoot.d.ts +4 -3
- package/dist/lib/components/Dialog/DialogTrigger.js +1 -0
- package/dist/lib/components/Dialog/DialogTrigger.mjs +1 -0
- package/dist/lib/components/Dialog/DialogTrigger.mjs.map +1 -1
- package/dist/lib/components/Dialog/index.d.ts +1 -1
- package/dist/lib/components/Dialog/index.js +16 -16
- package/dist/lib/components/Dialog/index.mjs.map +1 -1
- package/dist/lib/components/DoughnutChart/index.d.ts +1 -1
- package/dist/lib/components/DoughnutChart/index.js +1 -1
- package/dist/lib/components/DoughnutChart/index.mjs +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.js +3 -3
- package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.mjs +1 -1
- package/dist/lib/components/Editor/index.d.ts +0 -1
- package/dist/lib/components/Editor/index.js +11 -2
- package/dist/lib/components/Editor/index.mjs +1 -1
- package/dist/lib/components/Flex/index.js +2 -2
- package/dist/lib/components/Flex/index.mjs +1 -1
- package/dist/lib/components/Flex/index.mjs.map +1 -1
- package/dist/lib/components/Gnb/GnbInfo.js +2 -2
- package/dist/lib/components/Gnb/GnbInfo.mjs +1 -1
- package/dist/lib/components/Gnb/GnbLogo.js +1 -1
- package/dist/lib/components/Gnb/GnbLogo.mjs +1 -1
- package/dist/lib/components/Gnb/GnbLogo.mjs.map +1 -1
- package/dist/lib/components/Gnb/GnbMenuItem.js +1 -1
- package/dist/lib/components/Gnb/GnbMenuItem.mjs +1 -1
- package/dist/lib/components/Grid/NumberingPagination.js +65 -22
- package/dist/lib/components/Grid/NumberingPagination.mjs +1 -1
- package/dist/lib/components/Grid/NumberingPagination.mjs.map +1 -1
- package/dist/lib/components/Grid/index.d.ts +1 -0
- package/dist/lib/components/Grid/index.js +57 -39
- package/dist/lib/components/Grid/index.mjs +1 -1
- package/dist/lib/components/Grid/useGrid.js +36 -14
- package/dist/lib/components/Grid/useGrid.mjs +1 -1
- package/dist/lib/components/IconButton/index.js +10 -10
- package/dist/lib/components/IconButton/index.mjs +1 -1
- package/dist/lib/components/LineChart/index.js +11 -1
- package/dist/lib/components/LineChart/index.mjs +1 -1
- package/dist/lib/components/Modal/ModalAction.js +1 -1
- package/dist/lib/components/Modal/ModalAction.mjs +1 -1
- package/dist/lib/components/Modal/ModalCancel.mjs +1 -1
- package/dist/lib/components/Modal/ModalRoot.d.ts +2 -2
- package/dist/lib/components/Modal/ModalTitle.js +1 -1
- package/dist/lib/components/Modal/ModalTitle.mjs +1 -1
- package/dist/lib/components/PieChart/index.d.ts +1 -1
- package/dist/lib/components/PieChart/index.js +1 -1
- package/dist/lib/components/PieChart/index.mjs +1 -1
- package/dist/lib/components/Radio/index.js +3 -2
- package/dist/lib/components/Radio/index.mjs +1 -1
- package/dist/lib/components/RadioCards/RadioCardsRoot.d.ts +3 -1
- package/dist/lib/components/RadioCards/index.d.ts +1 -1
- package/dist/lib/components/SearchBar/index.js +2 -2
- package/dist/lib/components/SearchBar/index.mjs +1 -1
- package/dist/lib/components/Select/index.d.ts +4 -4
- package/dist/lib/components/Select/index.js +2 -2
- package/dist/lib/components/Select/index.mjs +1 -1
- package/dist/lib/components/Separator/index.d.ts +1 -1
- package/dist/lib/components/SideBar/index.d.ts +27 -0
- package/dist/lib/components/SideBar/index.js +17 -4
- package/dist/lib/components/SideBar/index.mjs +1 -1
- package/dist/lib/components/Slider/index.d.ts +1 -1
- package/dist/lib/components/Table/index.d.ts +1 -1
- package/dist/lib/components/Table/index.js +30 -10
- package/dist/lib/components/Table/index.mjs +1 -1
- package/dist/lib/components/Tabs/DynamicTabs.d.ts +4 -2
- package/dist/lib/components/Tabs/DynamicTabs.js +21 -16
- package/dist/lib/components/Tabs/DynamicTabs.mjs +1 -1
- package/dist/lib/components/TextField/index.js +3 -5
- package/dist/lib/components/TextField/index.mjs +1 -1
- package/dist/lib/components/Timeline/TimelineDescription.js +1 -1
- package/dist/lib/components/Timeline/TimelineDescription.mjs +1 -1
- package/dist/lib/components/Timeline/TimelineDescription.mjs.map +1 -1
- package/dist/lib/components/Tree/index.d.ts +1 -0
- package/dist/lib/components/Tree/index.js +22 -1
- package/dist/lib/components/Tree/index.mjs +2 -1
- package/dist/lib/components/Tree/index.mjs.map +1 -1
- package/dist/lib/index.d.ts +1 -0
- package/dist/lib/index.js +1 -0
- package/dist/lib/index.mjs +1 -1
- package/dist/lib/tsconfig.tsbuildinfo +1 -1
- package/dist/lib/types.d.ts +1 -0
- package/dist/lib/utils/useLoadTinyMCE.d.ts +1 -37
- package/dist/lib/utils/useLoadTinyMCE.js +151 -36
- package/dist/lib/utils/useLoadTinyMCE.mjs +2 -0
- package/dist/lib/utils/useLoadTinyMCE.mjs.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/lib/is-client-ctx.d.ts +0 -4
- package/dist/lib/is-client-ctx.js +0 -11
- package/dist/lib/is-client-ctx.mjs +0 -2
- package/dist/lib/is-client-ctx.mjs.map +0 -1
package/README.md
CHANGED
@@ -38,15 +38,15 @@
|
|
38
38
|
|
39
39
|
프로젝트 App 진입 파일에 다음 줄을 추가해줍니다.
|
40
40
|
|
41
|
-
```
|
42
|
-
|
41
|
+
```javascript
|
42
|
+
import '@lotte-innovate/lui/dist/globals.css';
|
43
43
|
```
|
44
44
|
|
45
45
|
## Usage
|
46
46
|
|
47
47
|
React 프로젝트에서 컴포넌트를 사용하는 방법에 대한 예시입니다.
|
48
48
|
|
49
|
-
```
|
49
|
+
```tsx
|
50
50
|
import React from 'react';
|
51
51
|
import { Button } from '@lotte-innovate/lui';
|
52
52
|
|
@@ -63,7 +63,7 @@ export default App;
|
|
63
63
|
|
64
64
|
컴포넌트에서 아이콘을 사용하려면, 다음과 같은 방법으로 아이콘을 가져올 수 있습니다.
|
65
65
|
|
66
|
-
```
|
66
|
+
```tsx
|
67
67
|
import React from 'react';
|
68
68
|
import { IconButton } from '@lotte-innovate/lui';
|
69
69
|
import { MagnifyingGlassIcon } from '@radix-ui/react-icons';
|
@@ -140,7 +140,7 @@ L-UI는 테마 컨텍스트를 제공하여 `Color`, `Radius`, `Scaling`, `Weigh
|
|
140
140
|
|
141
141
|
> Next.js와 같은 프레임워크를 사용하는 프로젝트에서 사용 예시
|
142
142
|
|
143
|
-
```
|
143
|
+
```tsx
|
144
144
|
import { LuiThemeProvider } from '@lotte-innovate/lui';
|
145
145
|
|
146
146
|
export default function RootLayout({
|
@@ -156,12 +156,11 @@ export default function RootLayout({
|
|
156
156
|
</html>
|
157
157
|
);
|
158
158
|
}
|
159
|
-
|
160
159
|
```
|
161
160
|
|
162
161
|
> 클라이언트 사이드 프로젝트에서 사용 예시
|
163
162
|
|
164
|
-
```
|
163
|
+
```tsx
|
165
164
|
import { LuiThemeProvider } from '@lotte-innovate/lui';
|
166
165
|
|
167
166
|
const root = ReactDOM.createRoot(document.getElementById('root'));
|
@@ -176,7 +175,7 @@ root.render(
|
|
176
175
|
|
177
176
|
`useTheme`훅은 현재 테마와 테마를 업데이트할 수 있는 함수를 제공합니다.
|
178
177
|
|
179
|
-
```
|
178
|
+
```tsx
|
180
179
|
import { useTheme, Button } from '@lotte-innovate/lui';
|
181
180
|
|
182
181
|
const ThemeChanger = () => {
|
@@ -201,7 +200,7 @@ const ThemeChanger = () => {
|
|
201
200
|
|
202
201
|
테마가 적용되었지만 일부 컴포넌트는 스타일을 다르게 하고 싶은 경우, 각 컴포넌트에 직접 Props를 전달하여 스타일을 재정의할 수 있습니다.
|
203
202
|
|
204
|
-
```
|
203
|
+
```tsx
|
205
204
|
import { useTheme, Button } from '@lotte-innovate/lui';
|
206
205
|
|
207
206
|
const ThemeChanger = () => {
|