@krds.ui/vue 0.0.3 → 0.0.5
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 +994 -500
- 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/types/index.d.ts +257 -0
- package/package.json +34 -38
package/dist/types/index.d.ts
CHANGED
|
@@ -38,6 +38,18 @@ export declare interface BaseFormProps extends BaseComponentProps {
|
|
|
38
38
|
readonly?: boolean;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
+
/**
|
|
42
|
+
* 브레드크럼 아이템 인터페이스
|
|
43
|
+
*/
|
|
44
|
+
export declare interface BreadcrumbItem {
|
|
45
|
+
/** 텍스트 */
|
|
46
|
+
text: string;
|
|
47
|
+
/** 링크 URL */
|
|
48
|
+
href?: string;
|
|
49
|
+
/** 클릭 핸들러 */
|
|
50
|
+
onClick?: (event: MouseEvent) => void;
|
|
51
|
+
}
|
|
52
|
+
|
|
41
53
|
/**
|
|
42
54
|
* 클래스명을 조합합니다.
|
|
43
55
|
*
|
|
@@ -115,6 +127,14 @@ export declare interface FileInfo {
|
|
|
115
127
|
*/
|
|
116
128
|
export declare function generateId(prefix?: string): string;
|
|
117
129
|
|
|
130
|
+
/**
|
|
131
|
+
* 간단한 고유 ID를 생성합니다.
|
|
132
|
+
* 브라우저와 Node.js 환경에서 모두 작동합니다.
|
|
133
|
+
*
|
|
134
|
+
* @returns 7자리 랜덤 문자열
|
|
135
|
+
*/
|
|
136
|
+
export declare function generateUid(): string;
|
|
137
|
+
|
|
118
138
|
/**
|
|
119
139
|
* 아이콘 속성
|
|
120
140
|
*/
|
|
@@ -157,6 +177,37 @@ export declare interface KrdsBadgeProps extends BaseComponentProps {
|
|
|
157
177
|
size?: 'large' | 'medium' | 'small';
|
|
158
178
|
}
|
|
159
179
|
|
|
180
|
+
export declare const KrdsBreadcrumb: DefineComponent<KrdsBreadcrumbProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
181
|
+
"item-click": (item: BreadcrumbItem, event: MouseEvent) => any;
|
|
182
|
+
}, string, PublicProps, Readonly<KrdsBreadcrumbProps> & Readonly<{
|
|
183
|
+
"onItem-click"?: ((item: BreadcrumbItem, event: MouseEvent) => any) | undefined;
|
|
184
|
+
}>, {
|
|
185
|
+
id: string;
|
|
186
|
+
ariaLabel: string;
|
|
187
|
+
showHomeIcon: boolean;
|
|
188
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLElement>;
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* KRDS Breadcrumb 컴포넌트 이벤트
|
|
192
|
+
*/
|
|
193
|
+
export declare interface KrdsBreadcrumbEmits {
|
|
194
|
+
'item-click': [item: BreadcrumbItem, event: MouseEvent];
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* KRDS Breadcrumb 컴포넌트 속성
|
|
199
|
+
*/
|
|
200
|
+
export declare interface KrdsBreadcrumbProps {
|
|
201
|
+
/** 브레드크럼 아이템 배열 */
|
|
202
|
+
items: BreadcrumbItem[];
|
|
203
|
+
/** 엘리먼트 ID */
|
|
204
|
+
id?: string;
|
|
205
|
+
/** 접근성 라벨 */
|
|
206
|
+
ariaLabel?: string;
|
|
207
|
+
/** 홈 아이콘 표시 여부 */
|
|
208
|
+
showHomeIcon?: boolean;
|
|
209
|
+
}
|
|
210
|
+
|
|
160
211
|
export declare const KrdsButton: DefineComponent<KrdsButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<KrdsButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
161
212
|
|
|
162
213
|
/**
|
|
@@ -616,6 +667,33 @@ export declare interface KrdsIconProps extends BaseComponentProps {
|
|
|
616
667
|
name: string;
|
|
617
668
|
}
|
|
618
669
|
|
|
670
|
+
export declare const KrdsInPageNavigation: DefineComponent<KrdsInPageNavigationProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<KrdsInPageNavigationProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
671
|
+
|
|
672
|
+
/**
|
|
673
|
+
* KRDS InPageNavigation 컴포넌트 이벤트
|
|
674
|
+
*/
|
|
675
|
+
export declare interface KrdsInPageNavigationEmits {
|
|
676
|
+
(e: 'itemClick', item: NavigationItem, event: MouseEvent | KeyboardEvent): void;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
/**
|
|
680
|
+
* KRDS InPageNavigation 컴포넌트 속성
|
|
681
|
+
*/
|
|
682
|
+
export declare interface KrdsInPageNavigationProps extends BaseComponentProps {
|
|
683
|
+
/** 네비게이션 제목 */
|
|
684
|
+
title?: string;
|
|
685
|
+
/** 네비게이션 캡션 */
|
|
686
|
+
caption?: string;
|
|
687
|
+
/** 네비게이션 아이템 목록 */
|
|
688
|
+
items?: NavigationItem[];
|
|
689
|
+
/** 스크롤에 따른 자동 활성화 여부 */
|
|
690
|
+
autoActive?: boolean;
|
|
691
|
+
/** 헤더 상단 영역 선택자 (기본값: '#krds-masthead') */
|
|
692
|
+
headerTopSelector?: string;
|
|
693
|
+
/** 헤더 내부 영역 선택자 (기본값: '#krds-header .header-in') */
|
|
694
|
+
headerInnerSelector?: string;
|
|
695
|
+
}
|
|
696
|
+
|
|
619
697
|
export declare const KrdsInput: DefineComponent<KrdsInputProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<KrdsInputProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
620
698
|
|
|
621
699
|
/**
|
|
@@ -663,6 +741,8 @@ export declare interface KrdsInputProps extends BaseFormProps {
|
|
|
663
741
|
state?: 'default' | 'error' | 'success' | 'information';
|
|
664
742
|
/** 아이콘 (있을 때 btn-ico-wrap 클래스 적용) */
|
|
665
743
|
icon?: boolean;
|
|
744
|
+
/** 로딩 상태 */
|
|
745
|
+
loading?: boolean;
|
|
666
746
|
}
|
|
667
747
|
|
|
668
748
|
export declare const KrdsLink: DefineComponent<KrdsLinkProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<KrdsLinkProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
@@ -706,6 +786,171 @@ export declare const KrdsMasthead: DefineComponent<BaseComponentProps, {}, {}, {
|
|
|
706
786
|
*/
|
|
707
787
|
export declare type KrdsMastheadProps = BaseComponentProps;
|
|
708
788
|
|
|
789
|
+
export declare const KrdsPagination: DefineComponent<KrdsPaginationProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
790
|
+
"update:modelValue": (value: number) => any;
|
|
791
|
+
}, string, PublicProps, Readonly<KrdsPaginationProps> & Readonly<{
|
|
792
|
+
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
793
|
+
}>, {
|
|
794
|
+
id: string;
|
|
795
|
+
modelValue: number;
|
|
796
|
+
min: number;
|
|
797
|
+
ariaLabel: string;
|
|
798
|
+
pageRange: number;
|
|
799
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
800
|
+
|
|
801
|
+
/**
|
|
802
|
+
* KRDS Pagination 컴포넌트 이벤트
|
|
803
|
+
*/
|
|
804
|
+
export declare interface KrdsPaginationEmits {
|
|
805
|
+
/** v-model 업데이트 이벤트 */
|
|
806
|
+
'update:modelValue': [value: number];
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
/**
|
|
810
|
+
* KRDS Pagination 컴포넌트 속성
|
|
811
|
+
*/
|
|
812
|
+
export declare interface KrdsPaginationProps {
|
|
813
|
+
/** 현재 페이지 번호 (v-model) */
|
|
814
|
+
modelValue?: number;
|
|
815
|
+
/** 최소 페이지 번호 (기본값: 1, 최소값: 1) */
|
|
816
|
+
min?: number;
|
|
817
|
+
/** 최대 페이지 번호 (전체 페이지 수) */
|
|
818
|
+
max: number;
|
|
819
|
+
/** 엘리먼트 ID */
|
|
820
|
+
id?: string;
|
|
821
|
+
/** 접근성 라벨 */
|
|
822
|
+
ariaLabel?: string;
|
|
823
|
+
/** 표시할 페이지 범위 */
|
|
824
|
+
pageRange?: number;
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
/**
|
|
828
|
+
* KRDS SkipLink 컴포넌트
|
|
829
|
+
*
|
|
830
|
+
* 건너뛰기 링크는 웹사이트에서 웹 페이지의 주요 콘텐츠 섹션의 탐색을 도와주는 페이지 내부 링크입니다.
|
|
831
|
+
* 키보드나 가상 초점을 이용하여 콘텐츠를 탐색하는 사용자는 건너뛰기 링크를 이용하여
|
|
832
|
+
* 대부분의 페이지에서 반복되는 콘텐츠 영역을 건너뛰고 주요 콘텐츠로 빠르게 이동할 수 있습니다.
|
|
833
|
+
*
|
|
834
|
+
* @example
|
|
835
|
+
* ```vue
|
|
836
|
+
* <KrdsSkipLink href="#main-content">본문 바로가기</KrdsSkipLink>
|
|
837
|
+
* <KrdsSkipLink href="#breadcrumb">본문 바로가기</KrdsSkipLink>
|
|
838
|
+
* <KrdsSkipLink href="#gnb">메인메뉴 바로가기</KrdsSkipLink>
|
|
839
|
+
* ```
|
|
840
|
+
*/
|
|
841
|
+
export declare const KrdsSkipLink: DefineComponent<ExtractPropTypes< {
|
|
842
|
+
/**
|
|
843
|
+
* 건너뛸 대상 요소의 ID
|
|
844
|
+
* @example '#main-content', '#breadcrumb'
|
|
845
|
+
*/
|
|
846
|
+
href: {
|
|
847
|
+
type: StringConstructor;
|
|
848
|
+
required: true;
|
|
849
|
+
validator: (value: string) => boolean;
|
|
850
|
+
};
|
|
851
|
+
/**
|
|
852
|
+
* 추가 CSS 클래스
|
|
853
|
+
*/
|
|
854
|
+
class: {
|
|
855
|
+
type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
|
|
856
|
+
default: undefined;
|
|
857
|
+
};
|
|
858
|
+
/**
|
|
859
|
+
* 요소 ID
|
|
860
|
+
*/
|
|
861
|
+
id: {
|
|
862
|
+
type: StringConstructor;
|
|
863
|
+
default: string;
|
|
864
|
+
};
|
|
865
|
+
}>, () => VNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
866
|
+
/**
|
|
867
|
+
* 건너뛸 대상 요소의 ID
|
|
868
|
+
* @example '#main-content', '#breadcrumb'
|
|
869
|
+
*/
|
|
870
|
+
href: {
|
|
871
|
+
type: StringConstructor;
|
|
872
|
+
required: true;
|
|
873
|
+
validator: (value: string) => boolean;
|
|
874
|
+
};
|
|
875
|
+
/**
|
|
876
|
+
* 추가 CSS 클래스
|
|
877
|
+
*/
|
|
878
|
+
class: {
|
|
879
|
+
type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
|
|
880
|
+
default: undefined;
|
|
881
|
+
};
|
|
882
|
+
/**
|
|
883
|
+
* 요소 ID
|
|
884
|
+
*/
|
|
885
|
+
id: {
|
|
886
|
+
type: StringConstructor;
|
|
887
|
+
default: string;
|
|
888
|
+
};
|
|
889
|
+
}>> & Readonly<{}>, {
|
|
890
|
+
class: string | unknown[] | Record<string, any>;
|
|
891
|
+
id: string;
|
|
892
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
893
|
+
|
|
894
|
+
/**
|
|
895
|
+
* KRDS SkipLink 컴포넌트 속성
|
|
896
|
+
*/
|
|
897
|
+
export declare interface KrdsSkipLinkProps extends BaseComponentProps {
|
|
898
|
+
/** 건너뛸 대상 요소의 ID */
|
|
899
|
+
href: string;
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
export declare const KrdsSpinner: DefineComponent<ExtractPropTypes< {
|
|
903
|
+
label: {
|
|
904
|
+
type: StringConstructor;
|
|
905
|
+
default: undefined;
|
|
906
|
+
};
|
|
907
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
908
|
+
label: {
|
|
909
|
+
type: StringConstructor;
|
|
910
|
+
default: undefined;
|
|
911
|
+
};
|
|
912
|
+
}>> & Readonly<{}>, {
|
|
913
|
+
label: string;
|
|
914
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
915
|
+
|
|
916
|
+
export declare const KrdsStep: DefineComponent<KrdsStepProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<KrdsStepProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
917
|
+
|
|
918
|
+
/**
|
|
919
|
+
* KRDS Step 컴포넌트 이벤트
|
|
920
|
+
*/
|
|
921
|
+
export declare interface KrdsStepEmits {
|
|
922
|
+
(e: 'click', event: MouseEvent, step: string | number): void;
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
export declare const KrdsStepIndicator: DefineComponent<KrdsStepIndicatorProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<KrdsStepIndicatorProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
926
|
+
|
|
927
|
+
/**
|
|
928
|
+
* KRDS StepIndicator 컴포넌트 이벤트
|
|
929
|
+
*/
|
|
930
|
+
export declare interface KrdsStepIndicatorEmits {
|
|
931
|
+
(e: 'update:modelValue', value: number): void;
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
/**
|
|
935
|
+
* KRDS StepIndicator 컴포넌트 속성
|
|
936
|
+
*/
|
|
937
|
+
export declare interface KrdsStepIndicatorProps extends BaseComponentProps {
|
|
938
|
+
/** 현재 활성 단계 인덱스 (0부터 시작) - v-model */
|
|
939
|
+
modelValue?: number;
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
/**
|
|
943
|
+
* KRDS Step 컴포넌트 속성
|
|
944
|
+
*/
|
|
945
|
+
export declare interface KrdsStepProps extends BaseComponentProps {
|
|
946
|
+
/** 단계 번호 */
|
|
947
|
+
step: string | number;
|
|
948
|
+
/** 단계 제목 */
|
|
949
|
+
title: string;
|
|
950
|
+
/** 단계 상태 강제 설정 (선택적) */
|
|
951
|
+
status?: 'done' | 'active' | 'pending';
|
|
952
|
+
}
|
|
953
|
+
|
|
709
954
|
export declare const KrdsTag: DefineComponent<KrdsTagProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<KrdsTagProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
710
955
|
|
|
711
956
|
/**
|
|
@@ -1001,6 +1246,18 @@ export declare interface LoadingProps {
|
|
|
1001
1246
|
loadingText?: string;
|
|
1002
1247
|
}
|
|
1003
1248
|
|
|
1249
|
+
/**
|
|
1250
|
+
* 네비게이션 아이템 인터페이스
|
|
1251
|
+
*/
|
|
1252
|
+
export declare interface NavigationItem {
|
|
1253
|
+
/** 링크 URL (앵커 링크) */
|
|
1254
|
+
href: string;
|
|
1255
|
+
/** 표시될 텍스트 */
|
|
1256
|
+
text: string;
|
|
1257
|
+
/** 활성 상태 여부 */
|
|
1258
|
+
active?: boolean;
|
|
1259
|
+
}
|
|
1260
|
+
|
|
1004
1261
|
/**
|
|
1005
1262
|
* 유틸리티 타입들
|
|
1006
1263
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@krds.ui/vue",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"description": "KRDS Vue Design System - 한국 정부 디자인 시스템 Vue 컴포넌트 라이브러리",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"krds",
|
|
@@ -44,41 +44,21 @@
|
|
|
44
44
|
"files": [
|
|
45
45
|
"dist"
|
|
46
46
|
],
|
|
47
|
-
"scripts": {
|
|
48
|
-
"dev": "vite",
|
|
49
|
-
"build": "pnpm run type-check && pnpm run build:lib",
|
|
50
|
-
"build:lib": "vite build && vue-tsc --declaration --emitDeclarationOnly --outDir dist/types",
|
|
51
|
-
"preview": "vite preview",
|
|
52
|
-
"test": "vitest",
|
|
53
|
-
"test:coverage": "vitest --coverage",
|
|
54
|
-
"type-check": "vue-tsc --noEmit",
|
|
55
|
-
"lint": "eslint . --fix",
|
|
56
|
-
"format": "prettier --write src/",
|
|
57
|
-
"storybook": "storybook dev -p 6006",
|
|
58
|
-
"build-storybook": "storybook build",
|
|
59
|
-
"bundle-size": "bundlewatch",
|
|
60
|
-
"release": "standard-version",
|
|
61
|
-
"release:minor": "standard-version --release-as minor",
|
|
62
|
-
"release:major": "standard-version --release-as major",
|
|
63
|
-
"release:patch": "standard-version --release-as patch",
|
|
64
|
-
"prepublishOnly": "pnpm run build"
|
|
65
|
-
},
|
|
66
47
|
"peerDependencies": {
|
|
67
48
|
"vue": "^3.5.0"
|
|
68
49
|
},
|
|
69
50
|
"devDependencies": {
|
|
70
51
|
"@chromatic-com/storybook": "^4.1.1",
|
|
71
|
-
"@eslint/js": "^9.
|
|
72
|
-
"@rushstack/eslint-patch": "^1.
|
|
73
|
-
"@storybook/addon-a11y": "^9.1.
|
|
74
|
-
"@storybook/addon-docs": "^9.1.
|
|
75
|
-
"@storybook/addon-
|
|
76
|
-
"@storybook/
|
|
77
|
-
"@storybook/vue3-vite": "^9.1.4",
|
|
52
|
+
"@eslint/js": "^9.35.0",
|
|
53
|
+
"@rushstack/eslint-patch": "^1.12.0",
|
|
54
|
+
"@storybook/addon-a11y": "^9.1.5",
|
|
55
|
+
"@storybook/addon-docs": "^9.1.5",
|
|
56
|
+
"@storybook/addon-vitest": "^9.1.5",
|
|
57
|
+
"@storybook/vue3-vite": "^9.1.5",
|
|
78
58
|
"@tsconfig/node20": "^20.1.4",
|
|
79
59
|
"@types/node": "^22.10.6",
|
|
80
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
81
|
-
"@typescript-eslint/parser": "^8.
|
|
60
|
+
"@typescript-eslint/eslint-plugin": "^8.43.0",
|
|
61
|
+
"@typescript-eslint/parser": "^8.43.0",
|
|
82
62
|
"@vitejs/plugin-vue": "^6.0.1",
|
|
83
63
|
"@vitest/browser": "3.2.4",
|
|
84
64
|
"@vitest/coverage-v8": "^3.2.4",
|
|
@@ -86,24 +66,23 @@
|
|
|
86
66
|
"@vue/eslint-config-typescript": "^14.1.3",
|
|
87
67
|
"@vue/test-utils": "^2.4.6",
|
|
88
68
|
"@vue/tsconfig": "^0.8.1",
|
|
89
|
-
"
|
|
90
|
-
"eslint": "^9.
|
|
91
|
-
"eslint-plugin-storybook": "^9.1.4",
|
|
69
|
+
"eslint": "^9.35.0",
|
|
70
|
+
"eslint-plugin-storybook": "^9.1.5",
|
|
92
71
|
"eslint-plugin-vue": "^10.4.0",
|
|
93
|
-
"jsdom": "^
|
|
72
|
+
"jsdom": "^27.0.0",
|
|
94
73
|
"playwright": "^1.55.0",
|
|
95
74
|
"prettier": "^3.6.2",
|
|
96
75
|
"sass": "^1.92.0",
|
|
97
76
|
"source-map-explorer": "^2.5.3",
|
|
98
77
|
"standard-version": "^9.5.0",
|
|
99
|
-
"storybook": "^9.1.
|
|
78
|
+
"storybook": "^9.1.5",
|
|
100
79
|
"typescript": "~5.7.2",
|
|
101
|
-
"vite": "^7.1.
|
|
80
|
+
"vite": "^7.1.5",
|
|
102
81
|
"vite-plugin-dts": "^4.5.4",
|
|
103
82
|
"vitest": "^3.2.4",
|
|
104
83
|
"vue": "^3.5.21",
|
|
105
84
|
"vue-eslint-parser": "^10.2.0",
|
|
106
|
-
"vue-tsc": "^3.0.
|
|
85
|
+
"vue-tsc": "^3.0.7"
|
|
107
86
|
},
|
|
108
87
|
"publishConfig": {
|
|
109
88
|
"access": "public",
|
|
@@ -113,5 +92,22 @@
|
|
|
113
92
|
"node": ">=20.0.0",
|
|
114
93
|
"pnpm": ">=9.0.0"
|
|
115
94
|
},
|
|
116
|
-
"
|
|
117
|
-
|
|
95
|
+
"scripts": {
|
|
96
|
+
"dev": "vite",
|
|
97
|
+
"build": "pnpm run type-check && pnpm run build:lib",
|
|
98
|
+
"build:lib": "vite build && vue-tsc --declaration --emitDeclarationOnly --outDir dist/types",
|
|
99
|
+
"preview": "vite preview",
|
|
100
|
+
"test": "vitest",
|
|
101
|
+
"test:coverage": "vitest --coverage",
|
|
102
|
+
"type-check": "vue-tsc --noEmit",
|
|
103
|
+
"lint": "eslint . --fix",
|
|
104
|
+
"format": "prettier --write src/",
|
|
105
|
+
"storybook": "storybook dev -p 6006",
|
|
106
|
+
"build-storybook": "storybook build",
|
|
107
|
+
"bundle-size": "vite build && echo 'Bundle size check removed due to bundlewatch security vulnerability'",
|
|
108
|
+
"release": "standard-version",
|
|
109
|
+
"release:minor": "standard-version --release-as minor",
|
|
110
|
+
"release:major": "standard-version --release-as major",
|
|
111
|
+
"release:patch": "standard-version --release-as patch"
|
|
112
|
+
}
|
|
113
|
+
}
|