@krds.ui/vue 0.0.20 → 0.0.22

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/global.d.ts CHANGED
@@ -2,12 +2,64 @@
2
2
  * app.use(KrdsVue)로 전역 등록되는 컴포넌트·디렉티브·전역 속성 타입
3
3
  *
4
4
  * 사용: tsconfig.json의 compilerOptions.types에 "@krds.ui/vue/global" 추가
5
+ * 컴포넌트는 에디터(WebStorm 등)가 바로 인식하도록 하나씩 적는다 (목록이 실제 내보내기와 맞는지는 테스트가 확인)
5
6
  */
6
7
  import type { Directive } from 'vue'
7
- import type * as Krds from '@krds.ui/vue'
8
8
 
9
9
  declare module 'vue' {
10
- export interface GlobalComponents extends Pick<typeof Krds, Krds.KrdsComponentName> {}
10
+ export interface GlobalComponents {
11
+ KrdsAccordionGroup: (typeof import('@krds.ui/vue'))['KrdsAccordionGroup']
12
+ KrdsAccordionItem: (typeof import('@krds.ui/vue'))['KrdsAccordionItem']
13
+ KrdsBadge: (typeof import('@krds.ui/vue'))['KrdsBadge']
14
+ KrdsBreadcrumb: (typeof import('@krds.ui/vue'))['KrdsBreadcrumb']
15
+ KrdsButton: (typeof import('@krds.ui/vue'))['KrdsButton']
16
+ KrdsButtonGroup: (typeof import('@krds.ui/vue'))['KrdsButtonGroup']
17
+ KrdsCarousel: (typeof import('@krds.ui/vue'))['KrdsCarousel']
18
+ KrdsCheckArea: (typeof import('@krds.ui/vue'))['KrdsCheckArea']
19
+ KrdsCheckbox: (typeof import('@krds.ui/vue'))['KrdsCheckbox']
20
+ KrdsCoachMark: (typeof import('@krds.ui/vue'))['KrdsCoachMark']
21
+ KrdsContextualHelp: (typeof import('@krds.ui/vue'))['KrdsContextualHelp']
22
+ KrdsCriticalAlerts: (typeof import('@krds.ui/vue'))['KrdsCriticalAlerts']
23
+ KrdsDateInput: (typeof import('@krds.ui/vue'))['KrdsDateInput']
24
+ KrdsDisclosure: (typeof import('@krds.ui/vue'))['KrdsDisclosure']
25
+ KrdsFileUpload: (typeof import('@krds.ui/vue'))['KrdsFileUpload']
26
+ KrdsFloatingButton: (typeof import('@krds.ui/vue'))['KrdsFloatingButton']
27
+ KrdsFooter: (typeof import('@krds.ui/vue'))['KrdsFooter']
28
+ KrdsFormGroup: (typeof import('@krds.ui/vue'))['KrdsFormGroup']
29
+ KrdsFormHint: (typeof import('@krds.ui/vue'))['KrdsFormHint']
30
+ KrdsFormLabel: (typeof import('@krds.ui/vue'))['KrdsFormLabel']
31
+ KrdsHeader: (typeof import('@krds.ui/vue'))['KrdsHeader']
32
+ KrdsIcon: (typeof import('@krds.ui/vue'))['KrdsIcon']
33
+ KrdsIdentifier: (typeof import('@krds.ui/vue'))['KrdsIdentifier']
34
+ KrdsInPageNavigation: (typeof import('@krds.ui/vue'))['KrdsInPageNavigation']
35
+ KrdsInput: (typeof import('@krds.ui/vue'))['KrdsInput']
36
+ KrdsLanguageSwitcher: (typeof import('@krds.ui/vue'))['KrdsLanguageSwitcher']
37
+ KrdsLayout: (typeof import('@krds.ui/vue'))['KrdsLayout']
38
+ KrdsLink: (typeof import('@krds.ui/vue'))['KrdsLink']
39
+ KrdsMainMenu: (typeof import('@krds.ui/vue'))['KrdsMainMenu']
40
+ KrdsMasthead: (typeof import('@krds.ui/vue'))['KrdsMasthead']
41
+ KrdsModal: (typeof import('@krds.ui/vue'))['KrdsModal']
42
+ KrdsPagination: (typeof import('@krds.ui/vue'))['KrdsPagination']
43
+ KrdsPanel: (typeof import('@krds.ui/vue'))['KrdsPanel']
44
+ KrdsRadio: (typeof import('@krds.ui/vue'))['KrdsRadio']
45
+ KrdsResize: (typeof import('@krds.ui/vue'))['KrdsResize']
46
+ KrdsSelect: (typeof import('@krds.ui/vue'))['KrdsSelect']
47
+ KrdsSideNavigation: (typeof import('@krds.ui/vue'))['KrdsSideNavigation']
48
+ KrdsSkipLink: (typeof import('@krds.ui/vue'))['KrdsSkipLink']
49
+ KrdsSpinner: (typeof import('@krds.ui/vue'))['KrdsSpinner']
50
+ KrdsStep: (typeof import('@krds.ui/vue'))['KrdsStep']
51
+ KrdsStepIndicator: (typeof import('@krds.ui/vue'))['KrdsStepIndicator']
52
+ KrdsStructuredList: (typeof import('@krds.ui/vue'))['KrdsStructuredList']
53
+ KrdsTable: (typeof import('@krds.ui/vue'))['KrdsTable']
54
+ KrdsTabs: (typeof import('@krds.ui/vue'))['KrdsTabs']
55
+ KrdsTag: (typeof import('@krds.ui/vue'))['KrdsTag']
56
+ KrdsTagGroup: (typeof import('@krds.ui/vue'))['KrdsTagGroup']
57
+ KrdsTextList: (typeof import('@krds.ui/vue'))['KrdsTextList']
58
+ KrdsTextarea: (typeof import('@krds.ui/vue'))['KrdsTextarea']
59
+ KrdsToggleSwitch: (typeof import('@krds.ui/vue'))['KrdsToggleSwitch']
60
+ KrdsTooltip: (typeof import('@krds.ui/vue'))['KrdsTooltip']
61
+ KrdsTts: (typeof import('@krds.ui/vue'))['KrdsTts']
62
+ }
11
63
 
12
64
  export interface GlobalDirectives {
13
65
  /** 스크린 리더 전용 텍스트 (.sr-only 클래스 추가) */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@krds.ui/vue",
3
- "version": "0.0.20",
3
+ "version": "0.0.22",
4
4
  "description": "KRDS Vue Design System - 한국 정부 디자인 시스템 Vue 컴포넌트 라이브러리",
5
5
  "keywords": [
6
6
  "krds",
@@ -35,8 +35,14 @@
35
35
  "./global": {
36
36
  "types": "./global.d.ts"
37
37
  },
38
- "./dist/style.css": "./dist/style.css",
39
- "./style": "./dist/style.css",
38
+ "./dist/style.css": {
39
+ "types": "./style.d.ts",
40
+ "default": "./dist/style.css"
41
+ },
42
+ "./style": {
43
+ "types": "./style.d.ts",
44
+ "default": "./dist/style.css"
45
+ },
40
46
  "./package.json": "./package.json"
41
47
  },
42
48
  "sideEffects": [
@@ -44,7 +50,8 @@
44
50
  ],
45
51
  "files": [
46
52
  "dist",
47
- "global.d.ts"
53
+ "global.d.ts",
54
+ "style.d.ts"
48
55
  ],
49
56
  "peerDependencies": {
50
57
  "vue": "^3.5.0"
@@ -109,7 +116,7 @@
109
116
  "build:lib": "vite build",
110
117
  "test": "vitest",
111
118
  "test:coverage": "vitest --coverage",
112
- "type-check": "node node_modules/typescript7/bin/tsc --noEmit",
119
+ "type-check": "node node_modules/typescript7/bin/tsc --noEmit && node node_modules/typescript7/bin/tsc --noEmit -p docs",
113
120
  "lint": "oxlint",
114
121
  "format": "oxfmt",
115
122
  "bundle-size": "size-limit",
package/style.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ /**
2
+ * 스타일 시트(@krds.ui/vue/style)용 빈 타입 선언.
3
+ * TypeScript 6부터 기본으로 켜진 noUncheckedSideEffectImports에서 `import '@krds.ui/vue/style'`이 오류 나지 않게 한다
4
+ */
5
+ export {}