@loafacto/ui 0.12.5 → 0.13.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.
- package/dist/components/LfListSelect.vue.d.ts +54 -0
- package/dist/components/LfSegmented.vue.d.ts +26 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +764 -336
- package/dist/index.js.map +1 -1
- package/dist/loafacto-ui.css +208 -0
- package/dist/types.d.ts +3 -1
- package/package.json +1 -1
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { LfOption } from '../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
options?: (LfOption | string | number)[];
|
|
4
|
+
label?: string;
|
|
5
|
+
hint?: string;
|
|
6
|
+
error?: string;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
size?: 'sm' | 'md';
|
|
11
|
+
/** 목록 위에 찾기 칸. 열 개를 넘는 목록에 둔다. */
|
|
12
|
+
searchable?: boolean;
|
|
13
|
+
/** 적은 글자가 곧 값이다. 목록은 제안일 뿐이고, 없는 값도 적을 수 있다(combobox). */
|
|
14
|
+
editable?: boolean;
|
|
15
|
+
clearable?: boolean;
|
|
16
|
+
/** 목록을 아직 받는 중. 오른쪽 화살표 자리가 스피너가 된다. */
|
|
17
|
+
loading?: boolean;
|
|
18
|
+
emptyText?: string;
|
|
19
|
+
searchPlaceholder?: string;
|
|
20
|
+
clearLabel?: string;
|
|
21
|
+
};
|
|
22
|
+
type __VLS_ModelProps = {
|
|
23
|
+
modelValue?: string | number | null;
|
|
24
|
+
};
|
|
25
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
26
|
+
declare var __VLS_13: {
|
|
27
|
+
option: LfOption | null;
|
|
28
|
+
}, __VLS_42: {
|
|
29
|
+
option: LfOption;
|
|
30
|
+
};
|
|
31
|
+
type __VLS_Slots = {} & {
|
|
32
|
+
selected?: (props: typeof __VLS_13) => any;
|
|
33
|
+
} & {
|
|
34
|
+
option?: (props: typeof __VLS_42) => any;
|
|
35
|
+
};
|
|
36
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
37
|
+
"update:modelValue": (value: string | number | null) => any;
|
|
38
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
39
|
+
"onUpdate:modelValue"?: ((value: string | number | null) => any) | undefined;
|
|
40
|
+
}>, {
|
|
41
|
+
size: "sm" | "md";
|
|
42
|
+
options: (LfOption | string | number)[];
|
|
43
|
+
emptyText: string;
|
|
44
|
+
searchPlaceholder: string;
|
|
45
|
+
clearLabel: string;
|
|
46
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
47
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
48
|
+
declare const _default: typeof __VLS_export;
|
|
49
|
+
export default _default;
|
|
50
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
51
|
+
new (): {
|
|
52
|
+
$slots: S;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { LfOption } from '../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
options?: (LfOption | string)[];
|
|
4
|
+
size?: 'sm' | 'md';
|
|
5
|
+
/** 아이콘만 보인다. 라벨은 aria-label·title 로 남는다. */
|
|
6
|
+
labelHidden?: boolean;
|
|
7
|
+
/** 부모 폭을 채우고 칸을 같은 폭으로 나눈다. */
|
|
8
|
+
block?: boolean;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
/** 묶음의 접근성 이름. 「보기 방식」처럼 무엇을 고르는 자리인지. */
|
|
11
|
+
ariaLabel?: string;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_ModelProps = {
|
|
14
|
+
modelValue?: string | number | null;
|
|
15
|
+
};
|
|
16
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
17
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
|
+
"update:modelValue": (value: string | number | null) => any;
|
|
19
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
20
|
+
"onUpdate:modelValue"?: ((value: string | number | null) => any) | undefined;
|
|
21
|
+
}>, {
|
|
22
|
+
size: "sm" | "md";
|
|
23
|
+
options: (LfOption | string)[];
|
|
24
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
declare const _default: typeof __VLS_export;
|
|
26
|
+
export default _default;
|
package/dist/index.d.ts
CHANGED
|
@@ -44,6 +44,8 @@ export { default as LfStatCard } from './components/LfStatCard.vue';
|
|
|
44
44
|
export { default as LfTooltip } from './components/LfTooltip.vue';
|
|
45
45
|
export { default as LfMenu } from './components/LfMenu.vue';
|
|
46
46
|
export { default as LfNavRail } from './components/LfNavRail.vue';
|
|
47
|
+
export { default as LfSegmented } from './components/LfSegmented.vue';
|
|
48
|
+
export { default as LfListSelect } from './components/LfListSelect.vue';
|
|
47
49
|
export { default as LfDivider } from './components/LfDivider.vue';
|
|
48
50
|
export { LF_ICONS, type LfIconName } from './icons';
|
|
49
51
|
export { createApiClient, ApiError, type ApiClient, type ApiClientOptions, type ApiRequestOptions, } from './lib/apiClient';
|