@loafacto/ui 0.6.0 → 0.7.0

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.
@@ -0,0 +1,33 @@
1
+ import type { LfIconName } from '../icons';
2
+ type __VLS_Props = {
3
+ tone?: 'info' | 'success' | 'warning' | 'error';
4
+ title?: string;
5
+ message?: string;
6
+ /** 톤 기본 아이콘 대신 쓸 아이콘. */
7
+ icon?: LfIconName;
8
+ iconPath?: string;
9
+ closable?: boolean;
10
+ closeLabel?: string;
11
+ };
12
+ declare var __VLS_6: {}, __VLS_8: {};
13
+ type __VLS_Slots = {} & {
14
+ default?: (props: typeof __VLS_6) => any;
15
+ } & {
16
+ actions?: (props: typeof __VLS_8) => any;
17
+ };
18
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
+ close: () => any;
20
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
21
+ onClose?: (() => any) | undefined;
22
+ }>, {
23
+ closeLabel: string;
24
+ tone: "info" | "success" | "warning" | "error";
25
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
26
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
27
+ declare const _default: typeof __VLS_export;
28
+ export default _default;
29
+ type __VLS_WithSlots<T, S> = T & {
30
+ new (): {
31
+ $slots: S;
32
+ };
33
+ };
@@ -0,0 +1,11 @@
1
+ type __VLS_Props = {
2
+ name?: string | null;
3
+ src?: string | null;
4
+ /** CSS 길이. 숫자는 px 로 읽는다. */
5
+ size?: string | number;
6
+ };
7
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
8
+ size: string | number;
9
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
+ declare const _default: typeof __VLS_export;
11
+ export default _default;
@@ -0,0 +1,37 @@
1
+ import type { LfIconName } from '../icons';
2
+ type __VLS_Props = {
3
+ label?: string;
4
+ tone?: 'neutral' | 'accent' | 'success' | 'warning' | 'error' | 'info' | 'purple';
5
+ /** soft — 옅은 배경(기본) / solid — 채움 / outline — 테두리만 */
6
+ variant?: 'soft' | 'solid' | 'outline';
7
+ size?: 'sm' | 'md';
8
+ icon?: LfIconName;
9
+ iconPath?: string;
10
+ /** 앞에 점을 찍는다. 상태 목록을 훑을 때. */
11
+ dot?: boolean;
12
+ /** 지우기 버튼(칩으로 쓸 때). */
13
+ removable?: boolean;
14
+ removeLabel?: string;
15
+ };
16
+ declare var __VLS_6: {};
17
+ type __VLS_Slots = {} & {
18
+ default?: (props: typeof __VLS_6) => any;
19
+ };
20
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
+ remove: () => any;
22
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
23
+ onRemove?: (() => any) | undefined;
24
+ }>, {
25
+ size: "sm" | "md";
26
+ variant: "soft" | "solid" | "outline";
27
+ tone: "neutral" | "accent" | "success" | "warning" | "error" | "info" | "purple";
28
+ removeLabel: string;
29
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
30
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
31
+ declare const _default: typeof __VLS_export;
32
+ export default _default;
33
+ type __VLS_WithSlots<T, S> = T & {
34
+ new (): {
35
+ $slots: S;
36
+ };
37
+ };
@@ -0,0 +1,44 @@
1
+ import type { LfIconName } from '../icons';
2
+ type __VLS_Props = {
3
+ /**
4
+ * primary — 화면에서 하나뿐인 주 동작
5
+ * ghost — 테두리만 있는 보조 동작. 툴바의 기본값이다
6
+ * danger — 되돌릴 수 없는 동작(삭제·강제 종료)
7
+ * subtle — 배경도 테두리도 없는 텍스트 버튼
8
+ */
9
+ variant?: 'primary' | 'ghost' | 'danger' | 'subtle';
10
+ size?: 'sm' | 'md' | 'lg';
11
+ /** 부모 폭을 꽉 채운다. 모달 하단 버튼에 쓴다. */
12
+ block?: boolean;
13
+ /** 진행 중 표시. 스피너로 바뀌고 입력을 막는다. */
14
+ loading?: boolean;
15
+ disabled?: boolean;
16
+ /** `<button>` 의 type. form 안에서 기본값이 submit 이 되는 사고를 막으려고 button 이 기본이다. */
17
+ type?: 'button' | 'submit' | 'reset';
18
+ /** 주면 `<a>` 로 렌더한다. */
19
+ href?: string;
20
+ /** 새 탭으로 연다. `href` 와 함께 쓴다. */
21
+ external?: boolean;
22
+ icon?: LfIconName;
23
+ /** 레지스트리에 없는 아이콘. 24x24 path 데이터. */
24
+ iconPath?: string;
25
+ /** 라벨 오른쪽 아이콘. 드롭다운 캐럿 같은 것. */
26
+ iconRight?: LfIconName;
27
+ };
28
+ declare var __VLS_18: {};
29
+ type __VLS_Slots = {} & {
30
+ default?: (props: typeof __VLS_18) => any;
31
+ };
32
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
33
+ size: "sm" | "md" | "lg";
34
+ type: "button" | "submit" | "reset";
35
+ variant: "primary" | "ghost" | "danger" | "subtle";
36
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
37
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
38
+ declare const _default: typeof __VLS_export;
39
+ export default _default;
40
+ type __VLS_WithSlots<T, S> = T & {
41
+ new (): {
42
+ $slots: S;
43
+ };
44
+ };
@@ -0,0 +1,31 @@
1
+ import type { LfIconName } from '../icons';
2
+ type __VLS_Props = {
3
+ title?: string;
4
+ icon?: LfIconName;
5
+ iconPath?: string;
6
+ /** 반투명 + blur. 끄면 불투명 표면(--admin-surface)이 된다. */
7
+ glass?: boolean;
8
+ padding?: 'none' | 'sm' | 'md' | 'lg';
9
+ };
10
+ declare var __VLS_1: {}, __VLS_8: {}, __VLS_10: {}, __VLS_12: {};
11
+ type __VLS_Slots = {} & {
12
+ header?: (props: typeof __VLS_1) => any;
13
+ } & {
14
+ actions?: (props: typeof __VLS_8) => any;
15
+ } & {
16
+ default?: (props: typeof __VLS_10) => any;
17
+ } & {
18
+ footer?: (props: typeof __VLS_12) => any;
19
+ };
20
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
21
+ glass: boolean;
22
+ padding: "none" | "sm" | "md" | "lg";
23
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
25
+ declare const _default: typeof __VLS_export;
26
+ export default _default;
27
+ type __VLS_WithSlots<T, S> = T & {
28
+ new (): {
29
+ $slots: S;
30
+ };
31
+ };
@@ -0,0 +1,29 @@
1
+ type __VLS_Props = {
2
+ label?: string;
3
+ /** 라벨 아래 한 줄 설명. 무엇이 켜지는지 라벨만으로 모호할 때 쓴다. */
4
+ description?: string;
5
+ disabled?: boolean;
6
+ /** 배열 모델에 담길 값. 여러 개를 한 배열로 묶을 때만 쓴다. */
7
+ value?: string | number;
8
+ };
9
+ type __VLS_ModelProps = {
10
+ modelValue?: boolean | (string | number)[];
11
+ };
12
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
13
+ declare var __VLS_6: {};
14
+ type __VLS_Slots = {} & {
15
+ default?: (props: typeof __VLS_6) => any;
16
+ };
17
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
18
+ "update:modelValue": (value: boolean | (string | number)[]) => any;
19
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
20
+ "onUpdate:modelValue"?: ((value: boolean | (string | number)[]) => any) | undefined;
21
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
23
+ declare const _default: typeof __VLS_export;
24
+ export default _default;
25
+ type __VLS_WithSlots<T, S> = T & {
26
+ new (): {
27
+ $slots: S;
28
+ };
29
+ };
@@ -0,0 +1,18 @@
1
+ type __VLS_Props = {
2
+ label?: string;
3
+ /** 세로 선. 툴바에서 버튼 묶음을 가를 때. */
4
+ vertical?: boolean;
5
+ };
6
+ declare var __VLS_1: {};
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_1) => any;
9
+ };
10
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
14
+ type __VLS_WithSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -0,0 +1,26 @@
1
+ import type { LfIconName } from '../icons';
2
+ type __VLS_Props = {
3
+ title?: string;
4
+ description?: string;
5
+ icon?: LfIconName;
6
+ iconPath?: string;
7
+ };
8
+ declare var __VLS_6: {}, __VLS_8: {}, __VLS_10: {};
9
+ type __VLS_Slots = {} & {
10
+ title?: (props: typeof __VLS_6) => any;
11
+ } & {
12
+ description?: (props: typeof __VLS_8) => any;
13
+ } & {
14
+ default?: (props: typeof __VLS_10) => any;
15
+ };
16
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
17
+ title: string;
18
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
20
+ declare const _default: typeof __VLS_export;
21
+ export default _default;
22
+ type __VLS_WithSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
@@ -0,0 +1,23 @@
1
+ type __VLS_Props = {
2
+ label?: string;
3
+ /** 평상시 도움말. `error` 가 있으면 가려진다. */
4
+ hint?: string;
5
+ /** 오류 메시지. 값이 있으면 필드 전체가 오류 상태가 된다. */
6
+ error?: string;
7
+ required?: boolean;
8
+ /** 라벨이 가리킬 컨트롤의 id. 클릭으로 포커스가 옮겨간다. */
9
+ htmlFor?: string;
10
+ };
11
+ declare var __VLS_1: {};
12
+ type __VLS_Slots = {} & {
13
+ default?: (props: typeof __VLS_1) => any;
14
+ };
15
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
17
+ declare const _default: typeof __VLS_export;
18
+ export default _default;
19
+ type __VLS_WithSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -0,0 +1,19 @@
1
+ import { type LfIconName } from '../icons';
2
+ type __VLS_Props = {
3
+ /** 레지스트리 아이콘 이름. Material Symbols 리거처 이름과 같다. */
4
+ name?: LfIconName;
5
+ /** 레지스트리에 없는 아이콘. 24x24 viewBox 기준 path 데이터. `name` 보다 우선한다. */
6
+ path?: string;
7
+ /** CSS 길이. 숫자를 주면 px 로 읽는다. */
8
+ size?: string | number;
9
+ /**
10
+ * 스크린리더용 이름. 주면 role="img" 가 되고, 없으면 aria-hidden 이다.
11
+ * 아이콘 대부분은 옆의 글자가 이미 의미를 말하므로 기본은 숨기는 쪽이다.
12
+ */
13
+ label?: string;
14
+ };
15
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
16
+ size: string | number;
17
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
+ declare const _default: typeof __VLS_export;
19
+ export default _default;
@@ -0,0 +1,20 @@
1
+ import type { LfIconName } from '../icons';
2
+ type __VLS_Props = {
3
+ icon?: LfIconName;
4
+ /** 레지스트리에 없는 아이콘. 24x24 path 데이터. */
5
+ iconPath?: string;
6
+ /** 접근성 이름 겸 툴팁. 생략하면 스크린리더가 읽을 것이 없다. */
7
+ label: string;
8
+ size?: 'sm' | 'md';
9
+ /** 평소에도 강조색으로 둔다. 목록 행의 주 동작에 쓴다. */
10
+ accent?: boolean;
11
+ danger?: boolean;
12
+ disabled?: boolean;
13
+ href?: string;
14
+ external?: boolean;
15
+ };
16
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
17
+ size: "sm" | "md";
18
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
+ declare const _default: typeof __VLS_export;
20
+ export default _default;
@@ -0,0 +1,38 @@
1
+ import type { LfOption } from '../types';
2
+ type __VLS_Props = {
3
+ items?: (LfOption | string)[];
4
+ /** 트리거 기준 정렬. 오른쪽 끝에 있는 메뉴는 'end' 로 두어야 화면 밖으로 안 나간다. */
5
+ align?: 'start' | 'end';
6
+ /** 기본 트리거(⋮)의 접근성 이름. */
7
+ triggerLabel?: string;
8
+ };
9
+ declare function toggle(): void;
10
+ declare var __VLS_1: {
11
+ open: boolean;
12
+ toggle: typeof toggle;
13
+ }, __VLS_16: {};
14
+ type __VLS_Slots = {} & {
15
+ trigger?: (props: typeof __VLS_1) => any;
16
+ } & {
17
+ items?: (props: typeof __VLS_16) => any;
18
+ };
19
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
20
+ open: import("vue").Ref<boolean, boolean>;
21
+ toggle: typeof toggle;
22
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
23
+ select: (item: LfOption) => any;
24
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
25
+ onSelect?: ((item: LfOption) => any) | undefined;
26
+ }>, {
27
+ items: (LfOption | string)[];
28
+ align: "start" | "end";
29
+ triggerLabel: string;
30
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
31
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
32
+ declare const _default: typeof __VLS_export;
33
+ export default _default;
34
+ type __VLS_WithSlots<T, S> = T & {
35
+ new (): {
36
+ $slots: S;
37
+ };
38
+ };
@@ -0,0 +1,45 @@
1
+ type __VLS_Props = {
2
+ title?: string;
3
+ subtitle?: string;
4
+ size?: 'sm' | 'md' | 'lg' | 'xl';
5
+ /** 화면 높이를 거의 채운다. 목록·에디터처럼 내용이 긴 모달용. */
6
+ fullHeight?: boolean;
7
+ /** 바깥 클릭·ESC 로 닫히지 않게 한다. 입력 중이던 내용을 잃는 모달에 쓴다. */
8
+ persistent?: boolean;
9
+ /** 닫기 버튼을 놓을지. */
10
+ closable?: boolean;
11
+ closeLabel?: string;
12
+ /** `title` 이 없을 때의 접근성 이름. */
13
+ ariaLabel?: string;
14
+ };
15
+ type __VLS_ModelProps = {
16
+ modelValue?: boolean;
17
+ };
18
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
19
+ declare var __VLS_13: {}, __VLS_22: {}, __VLS_24: {};
20
+ type __VLS_Slots = {} & {
21
+ header?: (props: typeof __VLS_13) => any;
22
+ } & {
23
+ default?: (props: typeof __VLS_22) => any;
24
+ } & {
25
+ footer?: (props: typeof __VLS_24) => any;
26
+ };
27
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
28
+ close: (reason: "close" | "scrim" | "esc") => any;
29
+ "update:modelValue": (value: boolean) => any;
30
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
31
+ onClose?: ((reason: "close" | "scrim" | "esc") => any) | undefined;
32
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
33
+ }>, {
34
+ size: "sm" | "md" | "lg" | "xl";
35
+ closable: boolean;
36
+ closeLabel: string;
37
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
38
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
39
+ declare const _default: typeof __VLS_export;
40
+ export default _default;
41
+ type __VLS_WithSlots<T, S> = T & {
42
+ new (): {
43
+ $slots: S;
44
+ };
45
+ };
@@ -0,0 +1,24 @@
1
+ import type { LfIconName } from '../icons';
2
+ type __VLS_Props = {
3
+ title?: string;
4
+ description?: string;
5
+ icon?: LfIconName;
6
+ iconPath?: string;
7
+ };
8
+ declare var __VLS_6: {}, __VLS_8: {}, __VLS_10: {};
9
+ type __VLS_Slots = {} & {
10
+ title?: (props: typeof __VLS_6) => any;
11
+ } & {
12
+ description?: (props: typeof __VLS_8) => any;
13
+ } & {
14
+ actions?: (props: typeof __VLS_10) => any;
15
+ };
16
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
18
+ declare const _default: typeof __VLS_export;
19
+ export default _default;
20
+ type __VLS_WithSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
@@ -0,0 +1,38 @@
1
+ type __VLS_Props = {
2
+ /** 전체 건수. 페이지 수는 perPage 로 나눠서 구한다. */
3
+ total?: number;
4
+ perPage?: number;
5
+ /** 현재 페이지 좌우로 보여줄 번호 개수. */
6
+ siblings?: number;
7
+ /** "전체 N건"을 왼쪽에 보여줄지. */
8
+ showTotal?: boolean;
9
+ ariaLabel?: string;
10
+ };
11
+ type __VLS_ModelProps = {
12
+ /** 1-based. 0-based 로 두면 화면에 그릴 때마다 +1 을 붙이다가 어딘가에서 빠뜨린다. */
13
+ modelValue?: number;
14
+ };
15
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
16
+ declare var __VLS_1: {};
17
+ type __VLS_Slots = {} & {
18
+ total?: (props: typeof __VLS_1) => any;
19
+ };
20
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
+ "update:modelValue": (value: number) => any;
22
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
23
+ "onUpdate:modelValue"?: ((value: number) => any) | undefined;
24
+ }>, {
25
+ ariaLabel: string;
26
+ total: number;
27
+ perPage: number;
28
+ siblings: number;
29
+ showTotal: boolean;
30
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
31
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
32
+ declare const _default: typeof __VLS_export;
33
+ export default _default;
34
+ type __VLS_WithSlots<T, S> = T & {
35
+ new (): {
36
+ $slots: S;
37
+ };
38
+ };
@@ -0,0 +1,24 @@
1
+ import type { LfOption } from '../types';
2
+ type __VLS_Props = {
3
+ options?: (LfOption | string)[];
4
+ label?: string;
5
+ hint?: string;
6
+ error?: string;
7
+ required?: boolean;
8
+ disabled?: boolean;
9
+ /** 선택지를 가로로 늘어놓는다. 두세 개짜리 짧은 라벨일 때만 쓴다. */
10
+ inline?: boolean;
11
+ };
12
+ type __VLS_ModelProps = {
13
+ modelValue?: string | number;
14
+ };
15
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
16
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
+ "update:modelValue": (value: string | number | undefined) => any;
18
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
19
+ "onUpdate:modelValue"?: ((value: string | number | undefined) => any) | undefined;
20
+ }>, {
21
+ options: (LfOption | string)[];
22
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
+ declare const _default: typeof __VLS_export;
24
+ export default _default;
@@ -0,0 +1,29 @@
1
+ import type { LfOption } from '../types';
2
+ type __VLS_Props = {
3
+ /** 문자열 배열도 받는다 — 값과 표시가 같을 때 `{value,label}` 을 두 번 쓰지 않으려고. */
4
+ options?: (LfOption | string)[];
5
+ label?: string;
6
+ hint?: string;
7
+ error?: string;
8
+ required?: boolean;
9
+ /** 값이 비었을 때 보이는 안내 문구. 목록 맨 위 옵션으로 들어간다. */
10
+ placeholder?: string;
11
+ /** placeholder 옵션을 다시 고를 수 있게 한다(= 선택 해제). */
12
+ clearable?: boolean;
13
+ disabled?: boolean;
14
+ size?: 'sm' | 'md';
15
+ };
16
+ type __VLS_ModelProps = {
17
+ modelValue?: string | number;
18
+ };
19
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
20
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
+ "update:modelValue": (value: string | number) => any;
22
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
23
+ "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
24
+ }>, {
25
+ size: "sm" | "md";
26
+ options: (LfOption | string)[];
27
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
28
+ declare const _default: typeof __VLS_export;
29
+ export default _default;
@@ -0,0 +1,14 @@
1
+ type __VLS_Props = {
2
+ /** text — 글줄 / rect — 카드·이미지 / circle — 아바타 */
3
+ variant?: 'text' | 'rect' | 'circle';
4
+ width?: string;
5
+ height?: string;
6
+ /** 여러 줄. 마지막 줄은 짧게 그린다 — 문단이 그렇게 끝나기 때문이다. */
7
+ lines?: number;
8
+ };
9
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
10
+ variant: "text" | "rect" | "circle";
11
+ lines: number;
12
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
+ declare const _default: typeof __VLS_export;
14
+ export default _default;
@@ -0,0 +1,10 @@
1
+ type __VLS_Props = {
2
+ size?: string | number;
3
+ /** 주면 role="status" 가 된다. 페이지 로딩처럼 스피너 자체가 유일한 신호일 때 쓴다. */
4
+ label?: string;
5
+ };
6
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
7
+ size: string | number;
8
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
+ declare const _default: typeof __VLS_export;
10
+ export default _default;
@@ -0,0 +1,30 @@
1
+ import type { LfIconName } from '../icons';
2
+ type __VLS_Props = {
3
+ label: string;
4
+ value?: string | number;
5
+ icon?: LfIconName;
6
+ iconPath?: string;
7
+ /** 직전 기간 대비 변화. 부호와 색은 여기서 붙인다. */
8
+ delta?: number;
9
+ deltaUnit?: string;
10
+ /** 감소가 좋은 지표(오류율·응답 시간)에 준다. */
11
+ invert?: boolean;
12
+ hint?: string;
13
+ glass?: boolean;
14
+ };
15
+ declare var __VLS_6: {};
16
+ type __VLS_Slots = {} & {
17
+ default?: (props: typeof __VLS_6) => any;
18
+ };
19
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
20
+ glass: boolean;
21
+ deltaUnit: string;
22
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
24
+ declare const _default: typeof __VLS_export;
25
+ export default _default;
26
+ type __VLS_WithSlots<T, S> = T & {
27
+ new (): {
28
+ $slots: S;
29
+ };
30
+ };
@@ -0,0 +1,28 @@
1
+ type __VLS_Props = {
2
+ label?: string;
3
+ description?: string;
4
+ disabled?: boolean;
5
+ /** 라벨과 스위치를 양 끝으로 벌린다. 설정 화면의 한 줄로 쓸 때. */
6
+ row?: boolean;
7
+ };
8
+ type __VLS_ModelProps = {
9
+ modelValue?: boolean;
10
+ };
11
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
12
+ declare var __VLS_1: {};
13
+ type __VLS_Slots = {} & {
14
+ default?: (props: typeof __VLS_1) => any;
15
+ };
16
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
+ "update:modelValue": (value: boolean) => any;
18
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
19
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
20
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
22
+ declare const _default: typeof __VLS_export;
23
+ export default _default;
24
+ type __VLS_WithSlots<T, S> = T & {
25
+ new (): {
26
+ $slots: S;
27
+ };
28
+ };
@@ -0,0 +1,47 @@
1
+ import type { LfTableColumn, LfTableSort } from '../types';
2
+ type Row = Record<string, any>;
3
+ type __VLS_Props = {
4
+ columns: LfTableColumn[];
5
+ rows?: Row[];
6
+ /** 행을 구분할 키. Vue 의 :key 로 쓴다. 없으면 인덱스라 재정렬 시 깜빡인다. */
7
+ rowKey?: string;
8
+ loading?: boolean;
9
+ /** 로딩 중 깔아 둘 회색 행 수. 실제 페이지 크기와 맞추면 높이가 튀지 않는다. */
10
+ skeletonRows?: number;
11
+ emptyText?: string;
12
+ /** 행 클릭을 받는다. 커서·포커스·Enter 키가 같이 붙는다. */
13
+ clickable?: boolean;
14
+ compact?: boolean;
15
+ /** 이보다 좁아지면 가로 스크롤이 생긴다. 열이 많은 표에 준다. */
16
+ minWidth?: string;
17
+ sort?: LfTableSort | null;
18
+ };
19
+ declare var __VLS_6: {}, __VLS_9: `cell-${string}`, __VLS_10: {
20
+ row: Row;
21
+ value: any;
22
+ index: number;
23
+ };
24
+ type __VLS_Slots = {} & {
25
+ [K in NonNullable<typeof __VLS_9>]?: (props: typeof __VLS_10) => any;
26
+ } & {
27
+ empty?: (props: typeof __VLS_6) => any;
28
+ };
29
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
30
+ rowClick: (row: Row) => any;
31
+ "update:sort": (sort: LfTableSort) => any;
32
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
33
+ onRowClick?: ((row: Row) => any) | undefined;
34
+ "onUpdate:sort"?: ((sort: LfTableSort) => any) | undefined;
35
+ }>, {
36
+ rows: Row[];
37
+ skeletonRows: number;
38
+ emptyText: string;
39
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
40
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
41
+ declare const _default: typeof __VLS_export;
42
+ export default _default;
43
+ type __VLS_WithSlots<T, S> = T & {
44
+ new (): {
45
+ $slots: S;
46
+ };
47
+ };