@lawkit/ui 0.1.72 → 0.1.74
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/CLAUDE.md +65 -65
- package/dist/index.css +1 -1
- package/dist/index.js +1357 -1337
- package/dist/tokens/src/contracts/theme-contract.css.d.ts +12 -0
- package/dist/tokens/src/foundation/duration-scale.d.ts +6 -0
- package/dist/tokens/src/foundation/easing-scale.d.ts +6 -0
- package/dist/tokens/src/index.d.ts +2 -0
- package/dist/tokens/src/themes/light-theme.css.d.ts +12 -0
- package/dist/ui-v3/src/components/FloatingModal/FloatingModal.css.d.ts +8 -0
- package/dist/ui-v3/src/components/FullScreenModal/FullScreenModal.css.d.ts +10 -1
- package/dist/ui-v3/src/components/FullScreenModal/index.d.ts +4 -2
- package/dist/ui-v3/src/components/Modal/Modal.css.d.ts +16 -1
- package/dist/ui-v3/src/components/Modal/index.d.ts +4 -2
- package/dist/ui-v3/src/components/SweetAlert/SweetAlert.css.d.ts +18 -2
- package/dist/ui-v3/src/lib/useScrollLock.d.ts +5 -5
- package/package.json +1 -1
package/CLAUDE.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
## Alert
|
|
11
11
|
|
|
12
12
|
```tsx
|
|
13
|
-
import { Alert } from "@
|
|
13
|
+
import { Alert } from "@lawkit/ui";
|
|
14
14
|
|
|
15
15
|
// 기본 사용
|
|
16
16
|
<Alert type="info" closable onClose={() => {}}>
|
|
@@ -44,7 +44,7 @@ import { Alert } from "@lds/ui-v3";
|
|
|
44
44
|
## ApprovalLine
|
|
45
45
|
|
|
46
46
|
```tsx
|
|
47
|
-
import { ApprovalLine } from "@
|
|
47
|
+
import { ApprovalLine } from "@lawkit/ui";
|
|
48
48
|
|
|
49
49
|
// 기본 — 수평 결재선
|
|
50
50
|
<ApprovalLine
|
|
@@ -88,7 +88,7 @@ const options = [
|
|
|
88
88
|
## Avatar
|
|
89
89
|
|
|
90
90
|
```tsx
|
|
91
|
-
import { Avatar, AvatarGroup } from "@
|
|
91
|
+
import { Avatar, AvatarGroup } from "@lawkit/ui";
|
|
92
92
|
|
|
93
93
|
// Photo 아바타
|
|
94
94
|
<Avatar src="/photo.jpg" size="md" />
|
|
@@ -112,7 +112,7 @@ import { Avatar, AvatarGroup } from "@lds/ui-v3";
|
|
|
112
112
|
## Badge
|
|
113
113
|
|
|
114
114
|
```tsx
|
|
115
|
-
import { Badge } from "@
|
|
115
|
+
import { Badge } from "@lawkit/ui";
|
|
116
116
|
|
|
117
117
|
// 기본 (filled / primary)
|
|
118
118
|
<Badge>Label</Badge>
|
|
@@ -132,7 +132,7 @@ import { Badge } from "@lds/ui-v3";
|
|
|
132
132
|
## Box
|
|
133
133
|
|
|
134
134
|
```tsx
|
|
135
|
-
import { Box } from "@
|
|
135
|
+
import { Box } from "@lawkit/ui";
|
|
136
136
|
|
|
137
137
|
// 카드형 영역 — 패딩/배경/라운드/테두리를 토큰으로
|
|
138
138
|
<Box p="x4" bg="canvas" radius="md" border>
|
|
@@ -153,7 +153,7 @@ import { Box } from "@lds/ui-v3";
|
|
|
153
153
|
## Breadcrumb
|
|
154
154
|
|
|
155
155
|
```tsx
|
|
156
|
-
import { Breadcrumb } from "@
|
|
156
|
+
import { Breadcrumb } from "@lawkit/ui";
|
|
157
157
|
|
|
158
158
|
// 기본 — 마지막 항목이 현재 페이지 (aria-current="page")
|
|
159
159
|
<Breadcrumb
|
|
@@ -182,7 +182,7 @@ import { Breadcrumb } from "@lds/ui-v3";
|
|
|
182
182
|
## Button
|
|
183
183
|
|
|
184
184
|
```tsx
|
|
185
|
-
import { Button } from "@
|
|
185
|
+
import { Button } from "@lawkit/ui";
|
|
186
186
|
|
|
187
187
|
// 기본 버튼
|
|
188
188
|
<Button>확인</Button>
|
|
@@ -216,7 +216,7 @@ import { Button } from "@lds/ui-v3";
|
|
|
216
216
|
|
|
217
217
|
```tsx
|
|
218
218
|
import { useState } from "react";
|
|
219
|
-
import { ButtonGroup } from "@
|
|
219
|
+
import { ButtonGroup } from "@lawkit/ui";
|
|
220
220
|
|
|
221
221
|
const [value, setValue] = useState("left");
|
|
222
222
|
|
|
@@ -250,7 +250,7 @@ const [value, setValue] = useState("left");
|
|
|
250
250
|
|
|
251
251
|
```tsx
|
|
252
252
|
import { useState } from "react";
|
|
253
|
-
import { ButtonTab } from "@
|
|
253
|
+
import { ButtonTab } from "@lawkit/ui";
|
|
254
254
|
|
|
255
255
|
const [tab, setTab] = useState("tab1");
|
|
256
256
|
|
|
@@ -269,7 +269,7 @@ const [tab, setTab] = useState("tab1");
|
|
|
269
269
|
## CalendarPopover
|
|
270
270
|
|
|
271
271
|
```tsx
|
|
272
|
-
import { CalendarPopover } from "@
|
|
272
|
+
import { CalendarPopover } from "@lawkit/ui";
|
|
273
273
|
|
|
274
274
|
<CalendarPopover
|
|
275
275
|
badge="계약검토"
|
|
@@ -292,7 +292,7 @@ import { CalendarPopover } from "@lds/ui-v3";
|
|
|
292
292
|
## Callout
|
|
293
293
|
|
|
294
294
|
```tsx
|
|
295
|
-
import { Callout } from "@
|
|
295
|
+
import { Callout } from "@lawkit/ui";
|
|
296
296
|
|
|
297
297
|
// 기본 (info)
|
|
298
298
|
<Callout>
|
|
@@ -313,7 +313,7 @@ import { Callout } from "@lds/ui-v3";
|
|
|
313
313
|
## Card
|
|
314
314
|
|
|
315
315
|
```tsx
|
|
316
|
-
import { Card, CardHeader, CardBody, CardFooter } from "@
|
|
316
|
+
import { Card, CardHeader, CardBody, CardFooter } from "@lawkit/ui";
|
|
317
317
|
|
|
318
318
|
// 간편 API — 헤더만
|
|
319
319
|
<Card header="헤더" title="카드 타이틀">
|
|
@@ -359,7 +359,7 @@ import { Card, CardHeader, CardBody, CardFooter } from "@lds/ui-v3";
|
|
|
359
359
|
## ChartTooltip
|
|
360
360
|
|
|
361
361
|
```tsx
|
|
362
|
-
import { ChartTooltip } from "@
|
|
362
|
+
import { ChartTooltip } from "@lawkit/ui";
|
|
363
363
|
|
|
364
364
|
// Default (헤더 + 컬러 dot)
|
|
365
365
|
<ChartTooltip
|
|
@@ -388,7 +388,7 @@ import { ChartTooltip } from "@lds/ui-v3";
|
|
|
388
388
|
|
|
389
389
|
```tsx
|
|
390
390
|
import { useState } from "react";
|
|
391
|
-
import { Checkbox } from "@
|
|
391
|
+
import { Checkbox } from "@lawkit/ui";
|
|
392
392
|
|
|
393
393
|
const [checked, setChecked] = useState(false);
|
|
394
394
|
|
|
@@ -400,7 +400,7 @@ const [checked, setChecked] = useState(false);
|
|
|
400
400
|
## Chip
|
|
401
401
|
|
|
402
402
|
```tsx
|
|
403
|
-
import { Chip } from "@
|
|
403
|
+
import { Chip } from "@lawkit/ui";
|
|
404
404
|
|
|
405
405
|
// 기본
|
|
406
406
|
<Chip>Option 1</Chip>
|
|
@@ -419,7 +419,7 @@ import { Chip } from "@lds/ui-v3";
|
|
|
419
419
|
|
|
420
420
|
```tsx
|
|
421
421
|
import { useState } from "react";
|
|
422
|
-
import { ChipsNavigation } from "@
|
|
422
|
+
import { ChipsNavigation } from "@lawkit/ui";
|
|
423
423
|
|
|
424
424
|
// 단일 선택
|
|
425
425
|
const [filter, setFilter] = useState<string | string[]>("");
|
|
@@ -457,7 +457,7 @@ const [filters, setFilters] = useState<string | string[]>([]);
|
|
|
457
457
|
|
|
458
458
|
```tsx
|
|
459
459
|
import { useState } from "react";
|
|
460
|
-
import { Collapse, CollapseGroup } from "@
|
|
460
|
+
import { Collapse, CollapseGroup } from "@lawkit/ui";
|
|
461
461
|
|
|
462
462
|
// 기본 (Uncontrolled)
|
|
463
463
|
<Collapse header="헤더">
|
|
@@ -485,7 +485,7 @@ const [open, setOpen] = useState(false);
|
|
|
485
485
|
## Container
|
|
486
486
|
|
|
487
487
|
```tsx
|
|
488
|
-
import { Container } from "@
|
|
488
|
+
import { Container } from "@lawkit/ui";
|
|
489
489
|
|
|
490
490
|
// 페이지 본문 폭 제한 (기본 lg=1280px)
|
|
491
491
|
<Container size="lg">
|
|
@@ -503,7 +503,7 @@ import { Container } from "@lds/ui-v3";
|
|
|
503
503
|
|
|
504
504
|
```tsx
|
|
505
505
|
import { useState } from "react";
|
|
506
|
-
import { DataTable } from "@
|
|
506
|
+
import { DataTable } from "@lawkit/ui";
|
|
507
507
|
import type { ColumnDef, SortingState, RowSelectionState } from "@tanstack/react-table";
|
|
508
508
|
|
|
509
509
|
// 1. 데이터 타입 정의
|
|
@@ -554,7 +554,7 @@ function UserTable() {
|
|
|
554
554
|
|
|
555
555
|
```tsx
|
|
556
556
|
import { useState } from "react";
|
|
557
|
-
import { DatePicker, DateRangePicker } from "@
|
|
557
|
+
import { DatePicker, DateRangePicker } from "@lawkit/ui";
|
|
558
558
|
|
|
559
559
|
function MyPage() {
|
|
560
560
|
const [date, setDate] = useState<Date | null>(new Date());
|
|
@@ -583,7 +583,7 @@ function MyPage() {
|
|
|
583
583
|
## DdayBadge
|
|
584
584
|
|
|
585
585
|
```tsx
|
|
586
|
-
import { DdayBadge } from "@
|
|
586
|
+
import { DdayBadge } from "@lawkit/ui";
|
|
587
587
|
|
|
588
588
|
// 목표 날짜만 넘기면 임박도별 색 자동
|
|
589
589
|
<DdayBadge date="2026-09-15" />
|
|
@@ -599,7 +599,7 @@ import { DdayBadge } from "@lds/ui-v3";
|
|
|
599
599
|
## Divider
|
|
600
600
|
|
|
601
601
|
```tsx
|
|
602
|
-
import { Divider } from "@
|
|
602
|
+
import { Divider } from "@lawkit/ui";
|
|
603
603
|
|
|
604
604
|
// 섹션 구분
|
|
605
605
|
<section>위 콘텐츠</section>
|
|
@@ -618,7 +618,7 @@ import { Divider } from "@lds/ui-v3";
|
|
|
618
618
|
|
|
619
619
|
```tsx
|
|
620
620
|
import { useState } from "react";
|
|
621
|
-
import { Drawer, Button } from "@
|
|
621
|
+
import { Drawer, Button } from "@lawkit/ui";
|
|
622
622
|
|
|
623
623
|
function MyPage() {
|
|
624
624
|
const [open, setOpen] = useState(false);
|
|
@@ -664,7 +664,7 @@ function MyPage() {
|
|
|
664
664
|
|
|
665
665
|
```tsx
|
|
666
666
|
import { useState } from "react";
|
|
667
|
-
import { Dropdown } from "@
|
|
667
|
+
import { Dropdown } from "@lawkit/ui";
|
|
668
668
|
|
|
669
669
|
// 기본 단일 선택
|
|
670
670
|
<Dropdown
|
|
@@ -699,7 +699,7 @@ const [value, setValue] = useState("1y");
|
|
|
699
699
|
## EmptyState
|
|
700
700
|
|
|
701
701
|
```tsx
|
|
702
|
-
import { EmptyState, Button } from "@
|
|
702
|
+
import { EmptyState, Button } from "@lawkit/ui";
|
|
703
703
|
|
|
704
704
|
// 기본 — 목록/테이블의 빈 상태
|
|
705
705
|
<EmptyState
|
|
@@ -722,7 +722,7 @@ import {
|
|
|
722
722
|
FileThumbnail,
|
|
723
723
|
FileItem,
|
|
724
724
|
FileAttachBadge,
|
|
725
|
-
} from "@
|
|
725
|
+
} from "@lawkit/ui";
|
|
726
726
|
|
|
727
727
|
// 파일 업로드 영역 + 파일 목록
|
|
728
728
|
const [files, setFiles] = useState([]);
|
|
@@ -760,7 +760,7 @@ const [files, setFiles] = useState([]);
|
|
|
760
760
|
|
|
761
761
|
```tsx
|
|
762
762
|
import { useState } from "react";
|
|
763
|
-
import { FloatingModal, Button } from "@
|
|
763
|
+
import { FloatingModal, Button } from "@lawkit/ui";
|
|
764
764
|
|
|
765
765
|
function MyPage() {
|
|
766
766
|
const [open, setOpen] = useState(false);
|
|
@@ -798,7 +798,7 @@ function MyPage() {
|
|
|
798
798
|
|
|
799
799
|
```tsx
|
|
800
800
|
import { useState } from "react";
|
|
801
|
-
import { FullScreenModal, Button } from "@
|
|
801
|
+
import { FullScreenModal, Button } from "@lawkit/ui";
|
|
802
802
|
|
|
803
803
|
function MyPage() {
|
|
804
804
|
const [open, setOpen] = useState(false);
|
|
@@ -826,7 +826,7 @@ function MyPage() {
|
|
|
826
826
|
open={open}
|
|
827
827
|
onClose={() => setOpen(false)}
|
|
828
828
|
title="문서 작성"
|
|
829
|
-
|
|
829
|
+
closeOnEscape={false}
|
|
830
830
|
>
|
|
831
831
|
<p>작성 중 실수로 닫히지 않도록 Escape를 막습니다.</p>
|
|
832
832
|
</FullScreenModal>
|
|
@@ -838,7 +838,7 @@ function MyPage() {
|
|
|
838
838
|
## Grid
|
|
839
839
|
|
|
840
840
|
```tsx
|
|
841
|
-
import { Grid } from "@
|
|
841
|
+
import { Grid } from "@lawkit/ui";
|
|
842
842
|
|
|
843
843
|
// 통계 카드 3열
|
|
844
844
|
<Grid columns={3} gap="x3">
|
|
@@ -860,7 +860,7 @@ import { Grid } from "@lds/ui-v3";
|
|
|
860
860
|
|
|
861
861
|
```tsx
|
|
862
862
|
import { useState } from "react";
|
|
863
|
-
import { IconButtonGroup } from "@
|
|
863
|
+
import { IconButtonGroup } from "@lawkit/ui";
|
|
864
864
|
|
|
865
865
|
const [view, setView] = useState("card");
|
|
866
866
|
|
|
@@ -879,7 +879,7 @@ const [view, setView] = useState("card");
|
|
|
879
879
|
## InfoPopover
|
|
880
880
|
|
|
881
881
|
```tsx
|
|
882
|
-
import { InfoPopover } from "@
|
|
882
|
+
import { InfoPopover } from "@lawkit/ui";
|
|
883
883
|
|
|
884
884
|
<InfoPopover
|
|
885
885
|
title="법무검토 중 외 3개"
|
|
@@ -898,8 +898,8 @@ import { InfoPopover } from "@lds/ui-v3";
|
|
|
898
898
|
|
|
899
899
|
```tsx
|
|
900
900
|
import { useState } from "react";
|
|
901
|
-
import { Input, InputGroup, MultiSelect } from "@
|
|
902
|
-
import type { MultiSelectItem } from "@
|
|
901
|
+
import { Input, InputGroup, MultiSelect } from "@lawkit/ui";
|
|
902
|
+
import type { MultiSelectItem } from "@lawkit/ui";
|
|
903
903
|
|
|
904
904
|
// 기본
|
|
905
905
|
<Input placeholder="이메일 입력" />
|
|
@@ -931,7 +931,7 @@ const [items, setItems] = useState<MultiSelectItem[]>([
|
|
|
931
931
|
## LinkBadge
|
|
932
932
|
|
|
933
933
|
```tsx
|
|
934
|
-
import { LinkBadge } from "@
|
|
934
|
+
import { LinkBadge } from "@lawkit/ui";
|
|
935
935
|
|
|
936
936
|
// 기본 (outline / primary) — 계약번호 등 식별자 링크
|
|
937
937
|
<LinkBadge href="/contracts/C2026-01">C2026-01</LinkBadge>
|
|
@@ -950,7 +950,7 @@ import { LinkBadge } from "@lds/ui-v3";
|
|
|
950
950
|
## ListGroup
|
|
951
951
|
|
|
952
952
|
```tsx
|
|
953
|
-
import { ListGroup, ListGroupItem, BottomSheet } from "@
|
|
953
|
+
import { ListGroup, ListGroupItem, BottomSheet } from "@lawkit/ui";
|
|
954
954
|
|
|
955
955
|
// Basic (간편 API)
|
|
956
956
|
<ListGroup items={["항목 1", "항목 2", "항목 3"]} />
|
|
@@ -984,7 +984,7 @@ import { ListGroup, ListGroupItem, BottomSheet } from "@lds/ui-v3";
|
|
|
984
984
|
## Mention
|
|
985
985
|
|
|
986
986
|
```tsx
|
|
987
|
-
import { Mention } from "@
|
|
987
|
+
import { Mention } from "@lawkit/ui";
|
|
988
988
|
|
|
989
989
|
// 기본 멘션
|
|
990
990
|
<Mention name="나담당" />
|
|
@@ -1003,7 +1003,7 @@ import { Mention } from "@lds/ui-v3";
|
|
|
1003
1003
|
|
|
1004
1004
|
```tsx
|
|
1005
1005
|
import { useState } from "react";
|
|
1006
|
-
import { Modal, ModalHeader, ModalBody, ModalFooter, Button } from "@
|
|
1006
|
+
import { Modal, ModalHeader, ModalBody, ModalFooter, Button } from "@lawkit/ui";
|
|
1007
1007
|
|
|
1008
1008
|
function MyPage() {
|
|
1009
1009
|
const [open, setOpen] = useState(false);
|
|
@@ -1042,8 +1042,8 @@ function MyPage() {
|
|
|
1042
1042
|
|
|
1043
1043
|
```tsx
|
|
1044
1044
|
import { useState } from "react";
|
|
1045
|
-
import { NavigationTab } from "@
|
|
1046
|
-
import type { NavigationTabItem } from "@
|
|
1045
|
+
import { NavigationTab } from "@lawkit/ui";
|
|
1046
|
+
import type { NavigationTabItem } from "@lawkit/ui";
|
|
1047
1047
|
|
|
1048
1048
|
const [tab, setTab] = useState("overview");
|
|
1049
1049
|
|
|
@@ -1073,7 +1073,7 @@ const [tab, setTab] = useState("overview");
|
|
|
1073
1073
|
|
|
1074
1074
|
```tsx
|
|
1075
1075
|
import { useState } from "react";
|
|
1076
|
-
import { NumberInput } from "@
|
|
1076
|
+
import { NumberInput } from "@lawkit/ui";
|
|
1077
1077
|
|
|
1078
1078
|
const [count, setCount] = useState(50);
|
|
1079
1079
|
|
|
@@ -1094,7 +1094,7 @@ const [count, setCount] = useState(50);
|
|
|
1094
1094
|
## PageLayout
|
|
1095
1095
|
|
|
1096
1096
|
```tsx
|
|
1097
|
-
import { PageLayout } from "@
|
|
1097
|
+
import { PageLayout } from "@lawkit/ui";
|
|
1098
1098
|
|
|
1099
1099
|
// 기본 — Header + Nav + Content
|
|
1100
1100
|
<PageLayout>
|
|
@@ -1120,7 +1120,7 @@ const [collapsed, setCollapsed] = useState(false);
|
|
|
1120
1120
|
|
|
1121
1121
|
```tsx
|
|
1122
1122
|
import { useState } from "react";
|
|
1123
|
-
import { Pagination, PaginationCount } from "@
|
|
1123
|
+
import { Pagination, PaginationCount } from "@lawkit/ui";
|
|
1124
1124
|
|
|
1125
1125
|
function MyPage() {
|
|
1126
1126
|
const [page, setPage] = useState(1);
|
|
@@ -1142,7 +1142,7 @@ function MyPage() {
|
|
|
1142
1142
|
## Popover
|
|
1143
1143
|
|
|
1144
1144
|
```tsx
|
|
1145
|
-
import { Popover } from "@
|
|
1145
|
+
import { Popover } from "@lawkit/ui";
|
|
1146
1146
|
|
|
1147
1147
|
// 기본 (간편 API)
|
|
1148
1148
|
<Popover
|
|
@@ -1164,7 +1164,7 @@ import { Popover } from "@lds/ui-v3";
|
|
|
1164
1164
|
## Progress
|
|
1165
1165
|
|
|
1166
1166
|
```tsx
|
|
1167
|
-
import { ProgressBar, StepBar } from "@
|
|
1167
|
+
import { ProgressBar, StepBar } from "@lawkit/ui";
|
|
1168
1168
|
|
|
1169
1169
|
// Basic
|
|
1170
1170
|
<ProgressBar value={75} />
|
|
@@ -1194,7 +1194,7 @@ import { ProgressBar, StepBar } from "@lds/ui-v3";
|
|
|
1194
1194
|
|
|
1195
1195
|
```tsx
|
|
1196
1196
|
import { useState } from "react";
|
|
1197
|
-
import { Radio, RadioGroup } from "@
|
|
1197
|
+
import { Radio, RadioGroup } from "@lawkit/ui";
|
|
1198
1198
|
|
|
1199
1199
|
const [selected, setSelected] = useState("a");
|
|
1200
1200
|
|
|
@@ -1227,7 +1227,7 @@ const [selected, setSelected] = useState("a");
|
|
|
1227
1227
|
## Skeleton
|
|
1228
1228
|
|
|
1229
1229
|
```tsx
|
|
1230
|
-
import { Skeleton } from "@
|
|
1230
|
+
import { Skeleton } from "@lawkit/ui";
|
|
1231
1231
|
|
|
1232
1232
|
// 사각형
|
|
1233
1233
|
<Skeleton width={200} height={120} />
|
|
@@ -1251,7 +1251,7 @@ import { Skeleton } from "@lds/ui-v3";
|
|
|
1251
1251
|
|
|
1252
1252
|
```tsx
|
|
1253
1253
|
import { useState } from "react";
|
|
1254
|
-
import { Slider, RangeSlider } from "@
|
|
1254
|
+
import { Slider, RangeSlider } from "@lawkit/ui";
|
|
1255
1255
|
|
|
1256
1256
|
const [value, setValue] = useState(50);
|
|
1257
1257
|
const [range, setRange] = useState<[number, number]>([25, 75]);
|
|
@@ -1278,7 +1278,7 @@ const [range, setRange] = useState<[number, number]>([25, 75]);
|
|
|
1278
1278
|
## Spacer
|
|
1279
1279
|
|
|
1280
1280
|
```tsx
|
|
1281
|
-
import { HStack, Spacer, Button } from "@
|
|
1281
|
+
import { HStack, Spacer, Button } from "@lawkit/ui";
|
|
1282
1282
|
|
|
1283
1283
|
// 제목 왼쪽, 버튼 오른쪽 끝
|
|
1284
1284
|
<HStack gap="x3" align="center">
|
|
@@ -1291,7 +1291,7 @@ import { HStack, Spacer, Button } from "@lds/ui-v3";
|
|
|
1291
1291
|
## Spinner
|
|
1292
1292
|
|
|
1293
1293
|
```tsx
|
|
1294
|
-
import { Spinner } from "@
|
|
1294
|
+
import { Spinner } from "@lawkit/ui";
|
|
1295
1295
|
|
|
1296
1296
|
// 기본
|
|
1297
1297
|
<Spinner />
|
|
@@ -1309,7 +1309,7 @@ import { Spinner } from "@lds/ui-v3";
|
|
|
1309
1309
|
## Stack
|
|
1310
1310
|
|
|
1311
1311
|
```tsx
|
|
1312
|
-
import { HStack, VStack } from "@
|
|
1312
|
+
import { HStack, VStack } from "@lawkit/ui";
|
|
1313
1313
|
|
|
1314
1314
|
// 기본 — gap만
|
|
1315
1315
|
<HStack gap="x2">
|
|
@@ -1335,7 +1335,7 @@ import { HStack, VStack } from "@lds/ui-v3";
|
|
|
1335
1335
|
|
|
1336
1336
|
```tsx
|
|
1337
1337
|
import { useState } from "react";
|
|
1338
|
-
import { SweetAlert, Button } from "@
|
|
1338
|
+
import { SweetAlert, Button } from "@lawkit/ui";
|
|
1339
1339
|
|
|
1340
1340
|
const [open, setOpen] = useState(false);
|
|
1341
1341
|
|
|
@@ -1361,7 +1361,7 @@ const [open, setOpen] = useState(false);
|
|
|
1361
1361
|
|
|
1362
1362
|
```tsx
|
|
1363
1363
|
import { useState } from "react";
|
|
1364
|
-
import { Switch } from "@
|
|
1364
|
+
import { Switch } from "@lawkit/ui";
|
|
1365
1365
|
|
|
1366
1366
|
const [on, setOn] = useState(false);
|
|
1367
1367
|
|
|
@@ -1382,8 +1382,8 @@ const [on, setOn] = useState(false);
|
|
|
1382
1382
|
## TableTree
|
|
1383
1383
|
|
|
1384
1384
|
```tsx
|
|
1385
|
-
import { TableTree } from "@
|
|
1386
|
-
import type { TableTreeColumn, TableTreeRow } from "@
|
|
1385
|
+
import { TableTree } from "@lawkit/ui";
|
|
1386
|
+
import type { TableTreeColumn, TableTreeRow } from "@lawkit/ui";
|
|
1387
1387
|
|
|
1388
1388
|
const columns: TableTreeColumn[] = [
|
|
1389
1389
|
{ key: "code", header: "관리번호", width: 180 },
|
|
@@ -1437,8 +1437,8 @@ const [expandedIds, setExpandedIds] = useState<string[]>(["1"]);
|
|
|
1437
1437
|
|
|
1438
1438
|
```tsx
|
|
1439
1439
|
import { useState } from "react";
|
|
1440
|
-
import { Tabs } from "@
|
|
1441
|
-
import type { TabItem } from "@
|
|
1440
|
+
import { Tabs } from "@lawkit/ui";
|
|
1441
|
+
import type { TabItem } from "@lawkit/ui";
|
|
1442
1442
|
|
|
1443
1443
|
const [tab, setTab] = useState("tab1");
|
|
1444
1444
|
|
|
@@ -1482,7 +1482,7 @@ const [tab, setTab] = useState("tab1");
|
|
|
1482
1482
|
|
|
1483
1483
|
```tsx
|
|
1484
1484
|
import { useState } from "react";
|
|
1485
|
-
import { TagSelect } from "@
|
|
1485
|
+
import { TagSelect } from "@lawkit/ui";
|
|
1486
1486
|
|
|
1487
1487
|
const [value, setValue] = useState<string[]>([]);
|
|
1488
1488
|
|
|
@@ -1501,7 +1501,7 @@ const [value, setValue] = useState<string[]>([]);
|
|
|
1501
1501
|
## Textarea
|
|
1502
1502
|
|
|
1503
1503
|
```tsx
|
|
1504
|
-
import { Textarea, InputGroup } from "@
|
|
1504
|
+
import { Textarea, InputGroup } from "@lawkit/ui";
|
|
1505
1505
|
|
|
1506
1506
|
// 기본
|
|
1507
1507
|
<Textarea placeholder="내용을 입력하세요" />
|
|
@@ -1529,7 +1529,7 @@ import { Textarea, InputGroup } from "@lds/ui-v3";
|
|
|
1529
1529
|
## Timeline
|
|
1530
1530
|
|
|
1531
1531
|
```tsx
|
|
1532
|
-
import { Timeline } from "@
|
|
1532
|
+
import { Timeline } from "@lawkit/ui";
|
|
1533
1533
|
|
|
1534
1534
|
<Timeline
|
|
1535
1535
|
items={[
|
|
@@ -1548,7 +1548,7 @@ import { Timeline } from "@lds/ui-v3";
|
|
|
1548
1548
|
## Toast
|
|
1549
1549
|
|
|
1550
1550
|
```tsx
|
|
1551
|
-
import { Toast, ToastContainer } from "@
|
|
1551
|
+
import { Toast, ToastContainer } from "@lawkit/ui";
|
|
1552
1552
|
|
|
1553
1553
|
// 1-row
|
|
1554
1554
|
<Toast title="Toast Title" intent="info" onClose={() => {}} />
|
|
@@ -1584,7 +1584,7 @@ import { Toast, ToastContainer } from "@lds/ui-v3";
|
|
|
1584
1584
|
## Tooltip
|
|
1585
1585
|
|
|
1586
1586
|
```tsx
|
|
1587
|
-
import { Tooltip } from "@
|
|
1587
|
+
import { Tooltip } from "@lawkit/ui";
|
|
1588
1588
|
|
|
1589
1589
|
// 1-row (기본)
|
|
1590
1590
|
<Tooltip content="Tooltip right" placement="right">
|
|
@@ -1600,8 +1600,8 @@ import { Tooltip } from "@lds/ui-v3";
|
|
|
1600
1600
|
## TreeView
|
|
1601
1601
|
|
|
1602
1602
|
```tsx
|
|
1603
|
-
import { TreeView } from "@
|
|
1604
|
-
import type { TreeNode } from "@
|
|
1603
|
+
import { TreeView } from "@lawkit/ui";
|
|
1604
|
+
import type { TreeNode } from "@lawkit/ui";
|
|
1605
1605
|
|
|
1606
1606
|
const nodes: TreeNode[] = [
|
|
1607
1607
|
{
|
|
@@ -1643,7 +1643,7 @@ const nodes: TreeNode[] = [
|
|
|
1643
1643
|
## Widget
|
|
1644
1644
|
|
|
1645
1645
|
```tsx
|
|
1646
|
-
import { Widget, StatCell, StatGrid, QuickMenuItem, ScheduleItem } from "@
|
|
1646
|
+
import { Widget, StatCell, StatGrid, QuickMenuItem, ScheduleItem } from "@lawkit/ui";
|
|
1647
1647
|
|
|
1648
1648
|
// 통계 위젯
|
|
1649
1649
|
<Widget title="라이선스 현황">
|