@krds.ui/vue 0.0.9 → 0.0.11
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/krds-vue.es.js +1120 -921
- package/dist/krds-vue.es.js.map +1 -1
- package/dist/krds-vue.umd.js +1 -1
- package/dist/krds-vue.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/index.d.ts +132 -0
- package/package.json +22 -23
package/dist/types/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { Plugin as Plugin_2 } from 'vue';
|
|
|
7
7
|
import { PublicProps } from 'vue';
|
|
8
8
|
import { RendererElement } from 'vue';
|
|
9
9
|
import { RendererNode } from 'vue';
|
|
10
|
+
import { SlotsType } from 'vue';
|
|
10
11
|
import { VNode } from 'vue';
|
|
11
12
|
|
|
12
13
|
declare const __VLS_component: DefineComponent<KrdsPanelProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
@@ -61,6 +62,12 @@ dropdownRef: HTMLDivElement;
|
|
|
61
62
|
buttonRef: HTMLButtonElement;
|
|
62
63
|
}, any>;
|
|
63
64
|
|
|
65
|
+
declare const __VLS_component_6: DefineComponent<KrdsAccordionItemProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
66
|
+
toggle: (id: string) => any;
|
|
67
|
+
}, string, PublicProps, Readonly<KrdsAccordionItemProps> & Readonly<{
|
|
68
|
+
onToggle?: ((id: string) => any) | undefined;
|
|
69
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
70
|
+
|
|
64
71
|
declare function __VLS_template(): {
|
|
65
72
|
attrs: Partial<{}>;
|
|
66
73
|
slots: {
|
|
@@ -118,6 +125,16 @@ declare function __VLS_template_5(): {
|
|
|
118
125
|
rootEl: any;
|
|
119
126
|
};
|
|
120
127
|
|
|
128
|
+
declare function __VLS_template_6(): {
|
|
129
|
+
attrs: Partial<{}>;
|
|
130
|
+
slots: {
|
|
131
|
+
title?(_: {}): any;
|
|
132
|
+
content?(_: {}): any;
|
|
133
|
+
};
|
|
134
|
+
refs: {};
|
|
135
|
+
rootEl: HTMLDivElement;
|
|
136
|
+
};
|
|
137
|
+
|
|
121
138
|
declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
122
139
|
|
|
123
140
|
declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
|
|
@@ -128,6 +145,8 @@ declare type __VLS_TemplateResult_4 = ReturnType<typeof __VLS_template_4>;
|
|
|
128
145
|
|
|
129
146
|
declare type __VLS_TemplateResult_5 = ReturnType<typeof __VLS_template_5>;
|
|
130
147
|
|
|
148
|
+
declare type __VLS_TemplateResult_6 = ReturnType<typeof __VLS_template_6>;
|
|
149
|
+
|
|
131
150
|
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
132
151
|
new (): {
|
|
133
152
|
$slots: S;
|
|
@@ -158,6 +177,12 @@ declare type __VLS_WithTemplateSlots_5<T, S> = T & {
|
|
|
158
177
|
};
|
|
159
178
|
};
|
|
160
179
|
|
|
180
|
+
declare type __VLS_WithTemplateSlots_6<T, S> = T & {
|
|
181
|
+
new (): {
|
|
182
|
+
$slots: S;
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
|
|
161
186
|
/**
|
|
162
187
|
* 정렬 타입
|
|
163
188
|
*/
|
|
@@ -308,6 +333,25 @@ export declare type InputState = ComponentState | 'error' | 'success';
|
|
|
308
333
|
*/
|
|
309
334
|
export declare type InputType = 'text' | 'password' | 'email' | 'number' | 'tel' | 'url' | 'search';
|
|
310
335
|
|
|
336
|
+
export declare const KrdsAccordionGroup: DefineComponent<KrdsAccordionGroupProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<KrdsAccordionGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
337
|
+
|
|
338
|
+
export declare interface KrdsAccordionGroupProps extends BaseComponentProps {
|
|
339
|
+
typeLine?: boolean;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
export declare const KrdsAccordionItem: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
|
|
343
|
+
|
|
344
|
+
export declare interface KrdsAccordionItemEmits {
|
|
345
|
+
(e: 'toggle', id: string): void;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
export declare interface KrdsAccordionItemProps {
|
|
349
|
+
id: string;
|
|
350
|
+
openItem?: string;
|
|
351
|
+
title?: string;
|
|
352
|
+
content?: string;
|
|
353
|
+
}
|
|
354
|
+
|
|
311
355
|
export declare const KrdsBadge: DefineComponent<KrdsBadgeProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<KrdsBadgeProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
312
356
|
|
|
313
357
|
/**
|
|
@@ -965,6 +1009,94 @@ export declare const KrdsMasthead: DefineComponent<BaseComponentProps, {}, {}, {
|
|
|
965
1009
|
*/
|
|
966
1010
|
export declare type KrdsMastheadProps = BaseComponentProps;
|
|
967
1011
|
|
|
1012
|
+
export declare const KrdsModal: DefineComponent<ExtractPropTypes< {
|
|
1013
|
+
modelValue: {
|
|
1014
|
+
type: BooleanConstructor;
|
|
1015
|
+
default: boolean;
|
|
1016
|
+
};
|
|
1017
|
+
modalId: {
|
|
1018
|
+
type: StringConstructor;
|
|
1019
|
+
default: undefined;
|
|
1020
|
+
};
|
|
1021
|
+
backdrop: {
|
|
1022
|
+
type: BooleanConstructor;
|
|
1023
|
+
default: boolean;
|
|
1024
|
+
};
|
|
1025
|
+
size: {
|
|
1026
|
+
type: () => KrdsModalSize;
|
|
1027
|
+
default: string;
|
|
1028
|
+
};
|
|
1029
|
+
full: {
|
|
1030
|
+
type: BooleanConstructor;
|
|
1031
|
+
default: boolean;
|
|
1032
|
+
};
|
|
1033
|
+
bottomSheet: {
|
|
1034
|
+
type: BooleanConstructor;
|
|
1035
|
+
default: boolean;
|
|
1036
|
+
};
|
|
1037
|
+
persistent: {
|
|
1038
|
+
type: BooleanConstructor;
|
|
1039
|
+
default: boolean;
|
|
1040
|
+
};
|
|
1041
|
+
}>, () => VNode<RendererNode, RendererElement, {
|
|
1042
|
+
[key: string]: any;
|
|
1043
|
+
}> | null, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", PublicProps, Readonly<ExtractPropTypes< {
|
|
1044
|
+
modelValue: {
|
|
1045
|
+
type: BooleanConstructor;
|
|
1046
|
+
default: boolean;
|
|
1047
|
+
};
|
|
1048
|
+
modalId: {
|
|
1049
|
+
type: StringConstructor;
|
|
1050
|
+
default: undefined;
|
|
1051
|
+
};
|
|
1052
|
+
backdrop: {
|
|
1053
|
+
type: BooleanConstructor;
|
|
1054
|
+
default: boolean;
|
|
1055
|
+
};
|
|
1056
|
+
size: {
|
|
1057
|
+
type: () => KrdsModalSize;
|
|
1058
|
+
default: string;
|
|
1059
|
+
};
|
|
1060
|
+
full: {
|
|
1061
|
+
type: BooleanConstructor;
|
|
1062
|
+
default: boolean;
|
|
1063
|
+
};
|
|
1064
|
+
bottomSheet: {
|
|
1065
|
+
type: BooleanConstructor;
|
|
1066
|
+
default: boolean;
|
|
1067
|
+
};
|
|
1068
|
+
persistent: {
|
|
1069
|
+
type: BooleanConstructor;
|
|
1070
|
+
default: boolean;
|
|
1071
|
+
};
|
|
1072
|
+
}>> & Readonly<{
|
|
1073
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
1074
|
+
}>, {
|
|
1075
|
+
size: KrdsModalSize;
|
|
1076
|
+
modelValue: boolean;
|
|
1077
|
+
modalId: string;
|
|
1078
|
+
backdrop: boolean;
|
|
1079
|
+
full: boolean;
|
|
1080
|
+
bottomSheet: boolean;
|
|
1081
|
+
persistent: boolean;
|
|
1082
|
+
}, SlotsType<{
|
|
1083
|
+
title?: () => any;
|
|
1084
|
+
default?: () => any;
|
|
1085
|
+
footer?: () => any;
|
|
1086
|
+
}>, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
1087
|
+
|
|
1088
|
+
export declare interface KrdsModalProps {
|
|
1089
|
+
modelValue?: boolean;
|
|
1090
|
+
modalId?: string;
|
|
1091
|
+
backdrop?: boolean;
|
|
1092
|
+
size?: KrdsModalSize;
|
|
1093
|
+
full?: boolean;
|
|
1094
|
+
bottomSheet?: boolean;
|
|
1095
|
+
persistent?: boolean;
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
export declare type KrdsModalSize = 'small' | 'medium' | 'large';
|
|
1099
|
+
|
|
968
1100
|
export declare const KrdsPagination: DefineComponent<KrdsPaginationProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
969
1101
|
"update:modelValue": (value: number) => any;
|
|
970
1102
|
}, string, PublicProps, Readonly<KrdsPaginationProps> & Readonly<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@krds.ui/vue",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"description": "KRDS Vue Design System - 한국 정부 디자인 시스템 Vue 컴포넌트 라이브러리",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"krds",
|
|
@@ -48,40 +48,39 @@
|
|
|
48
48
|
"vue": "^3.5.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@eslint/js": "^9.
|
|
52
|
-
"@
|
|
53
|
-
"@storybook/addon-
|
|
54
|
-
"@storybook/addon-
|
|
55
|
-
"@storybook/
|
|
56
|
-
"@
|
|
57
|
-
"@
|
|
58
|
-
"@
|
|
59
|
-
"@typescript-eslint/
|
|
60
|
-
"@
|
|
61
|
-
"@vitejs/plugin-vue": "^6.0.1",
|
|
51
|
+
"@eslint/js": "^9.39.1",
|
|
52
|
+
"@storybook/addon-a11y": "^9.1.16",
|
|
53
|
+
"@storybook/addon-docs": "^9.1.16",
|
|
54
|
+
"@storybook/addon-vitest": "^9.1.16",
|
|
55
|
+
"@storybook/vue3-vite": "^9.1.16",
|
|
56
|
+
"@tsconfig/node20": "^20.1.8",
|
|
57
|
+
"@types/node": "^22.19.0",
|
|
58
|
+
"@typescript-eslint/eslint-plugin": "^8.46.3",
|
|
59
|
+
"@typescript-eslint/parser": "^8.47.0",
|
|
60
|
+
"@vitejs/plugin-vue": "^6.0.2",
|
|
62
61
|
"@vitest/browser": "^3.2.4",
|
|
63
62
|
"@vitest/coverage-v8": "^3.2.4",
|
|
64
63
|
"@vue/eslint-config-prettier": "^10.2.0",
|
|
65
64
|
"@vue/eslint-config-typescript": "^14.6.0",
|
|
66
65
|
"@vue/test-utils": "^2.4.6",
|
|
67
66
|
"@vue/tsconfig": "^0.8.1",
|
|
68
|
-
"eslint": "^9.
|
|
69
|
-
"eslint-plugin-storybook": "^9.1.
|
|
70
|
-
"eslint-plugin-vue": "^10.
|
|
71
|
-
"jsdom": "^27.
|
|
72
|
-
"playwright": "^1.
|
|
67
|
+
"eslint": "^9.39.1",
|
|
68
|
+
"eslint-plugin-storybook": "^9.1.16",
|
|
69
|
+
"eslint-plugin-vue": "^10.6.0",
|
|
70
|
+
"jsdom": "^27.2.0",
|
|
71
|
+
"playwright": "^1.56.1",
|
|
73
72
|
"prettier": "^3.6.2",
|
|
74
|
-
"sass": "^1.
|
|
73
|
+
"sass": "^1.94.2",
|
|
75
74
|
"source-map-explorer": "^2.5.3",
|
|
76
75
|
"standard-version": "^9.5.0",
|
|
77
|
-
"storybook": "^9.1.
|
|
78
|
-
"typescript": "5.
|
|
79
|
-
"vite": "^7.
|
|
76
|
+
"storybook": "^9.1.16",
|
|
77
|
+
"typescript": "5.9.3",
|
|
78
|
+
"vite": "^7.2.4",
|
|
80
79
|
"vite-plugin-dts": "^4.5.4",
|
|
81
80
|
"vitest": "^3.2.4",
|
|
82
|
-
"vue": "^3.5.
|
|
81
|
+
"vue": "^3.5.24",
|
|
83
82
|
"vue-eslint-parser": "^10.2.0",
|
|
84
|
-
"vue-tsc": "^3.1.
|
|
83
|
+
"vue-tsc": "^3.1.5"
|
|
85
84
|
},
|
|
86
85
|
"publishConfig": {
|
|
87
86
|
"access": "public",
|