@krds.ui/vue 0.0.6 → 0.0.8

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.
@@ -9,6 +9,155 @@ import { RendererElement } from 'vue';
9
9
  import { RendererNode } from 'vue';
10
10
  import { VNode } from 'vue';
11
11
 
12
+ declare const __VLS_component: DefineComponent<KrdsPanelProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
13
+ "update:modelValue": (value: boolean) => any;
14
+ }, string, PublicProps, Readonly<KrdsPanelProps> & Readonly<{
15
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
16
+ }>, {
17
+ modelValue: boolean;
18
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
19
+
20
+ declare const __VLS_component_2: DefineComponent<KrdsContextualHelpProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<KrdsContextualHelpProps> & Readonly<{}>, {
21
+ tooltipTitle: string;
22
+ position: "top left" | "top center" | "top right" | "bottom left" | "bottom center" | "bottom right";
23
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
24
+ containerRef: HTMLDivElement;
25
+ tooltipBtnRef: HTMLButtonElement;
26
+ tooltipPopoverRef: HTMLDivElement;
27
+ closeBtnRef: HTMLButtonElement;
28
+ }, HTMLDivElement>;
29
+
30
+ declare const __VLS_component_3: DefineComponent<KrdsCoachMarkProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
31
+ close: () => any;
32
+ "update:modelValue": (value: number | null) => any;
33
+ }, string, PublicProps, Readonly<KrdsCoachMarkProps> & Readonly<{
34
+ onClose?: (() => any) | undefined;
35
+ "onUpdate:modelValue"?: ((value: number | null) => any) | undefined;
36
+ }>, {
37
+ modelValue: number | null;
38
+ coachMarkClass: string | string[];
39
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
40
+
41
+ declare const __VLS_component_4: DefineComponent<KrdsTooltipProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<KrdsTooltipProps> & Readonly<{}>, {
42
+ disabled: boolean;
43
+ type: TooltipType;
44
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
45
+ containerRef: HTMLDivElement;
46
+ popoverRef: HTMLDivElement;
47
+ }, HTMLDivElement>;
48
+
49
+ declare const __VLS_component_5: DefineComponent<KrdsLanguageSwitcherProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
50
+ close: () => any;
51
+ "update:modelValue": (value: string) => any;
52
+ }, string, PublicProps, Readonly<KrdsLanguageSwitcherProps> & Readonly<{
53
+ onClose?: (() => any) | undefined;
54
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
55
+ }>, {
56
+ type: "default" | "external";
57
+ modelValue: string;
58
+ dropPosition: DropdownPosition;
59
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
60
+ dropdownRef: HTMLDivElement;
61
+ buttonRef: HTMLButtonElement;
62
+ }, any>;
63
+
64
+ declare function __VLS_template(): {
65
+ attrs: Partial<{}>;
66
+ slots: {
67
+ default?(_: {}): any;
68
+ };
69
+ refs: {};
70
+ rootEl: HTMLDivElement;
71
+ };
72
+
73
+ declare function __VLS_template_2(): {
74
+ attrs: Partial<{}>;
75
+ slots: {
76
+ default?(_: {}): any;
77
+ };
78
+ refs: {
79
+ containerRef: HTMLDivElement;
80
+ tooltipBtnRef: HTMLButtonElement;
81
+ tooltipPopoverRef: HTMLDivElement;
82
+ closeBtnRef: HTMLButtonElement;
83
+ };
84
+ rootEl: HTMLDivElement;
85
+ };
86
+
87
+ declare function __VLS_template_3(): {
88
+ attrs: Partial<{}>;
89
+ slots: {
90
+ 'coach-mark-content'?(_: {}): any;
91
+ };
92
+ refs: {};
93
+ rootEl: any;
94
+ };
95
+
96
+ declare function __VLS_template_4(): {
97
+ attrs: Partial<{}>;
98
+ slots: {
99
+ default?(_: {}): any;
100
+ };
101
+ refs: {
102
+ containerRef: HTMLDivElement;
103
+ popoverRef: HTMLDivElement;
104
+ };
105
+ rootEl: HTMLDivElement;
106
+ };
107
+
108
+ declare function __VLS_template_5(): {
109
+ attrs: Partial<{}>;
110
+ slots: {
111
+ default?(_: {}): any;
112
+ 'prev-item'?(_: {}): any;
113
+ };
114
+ refs: {
115
+ dropdownRef: HTMLDivElement;
116
+ buttonRef: HTMLButtonElement;
117
+ };
118
+ rootEl: any;
119
+ };
120
+
121
+ declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
122
+
123
+ declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
124
+
125
+ declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
126
+
127
+ declare type __VLS_TemplateResult_4 = ReturnType<typeof __VLS_template_4>;
128
+
129
+ declare type __VLS_TemplateResult_5 = ReturnType<typeof __VLS_template_5>;
130
+
131
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
132
+ new (): {
133
+ $slots: S;
134
+ };
135
+ };
136
+
137
+ declare type __VLS_WithTemplateSlots_2<T, S> = T & {
138
+ new (): {
139
+ $slots: S;
140
+ };
141
+ };
142
+
143
+ declare type __VLS_WithTemplateSlots_3<T, S> = T & {
144
+ new (): {
145
+ $slots: S;
146
+ };
147
+ };
148
+
149
+ declare type __VLS_WithTemplateSlots_4<T, S> = T & {
150
+ new (): {
151
+ $slots: S;
152
+ };
153
+ };
154
+
155
+ declare type __VLS_WithTemplateSlots_5<T, S> = T & {
156
+ new (): {
157
+ $slots: S;
158
+ };
159
+ };
160
+
12
161
  /**
13
162
  * 정렬 타입
14
163
  */
@@ -91,6 +240,8 @@ export declare type CSSCustomProperties = Record<`--${string}`, string | number>
91
240
  */
92
241
  export declare type Direction = 'horizontal' | 'vertical';
93
242
 
243
+ declare type DropdownPosition = 'left' | 'center' | 'right';
244
+
94
245
  /**
95
246
  * 파일 정보 인터페이스
96
247
  */
@@ -278,6 +429,15 @@ export declare interface KrdsCheckboxProps extends BaseFormProps {
278
429
  chip?: boolean;
279
430
  }
280
431
 
432
+ export declare const KrdsCoachMark: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
433
+
434
+ export declare interface KrdsCoachMarkProps extends BaseComponentProps {
435
+ coachMarkClass?: string | string[];
436
+ stepsData: StepsData[];
437
+ activeStep: number;
438
+ modelValue?: number | null;
439
+ }
440
+
281
441
  /**
282
442
  * KRDS 컴포넌트 타입
283
443
  */
@@ -288,6 +448,14 @@ export declare type KrdsComponent<Props = object, Slots = object, Emits = object
288
448
  __krdsEmits: Emits;
289
449
  };
290
450
 
451
+ export declare const KrdsContextualHelp: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
452
+
453
+ export declare interface KrdsContextualHelpProps {
454
+ tooltipTitle?: string;
455
+ helpIcon?: boolean;
456
+ position?: 'top left' | 'top center' | 'top right' | 'bottom left' | 'bottom center' | 'bottom right';
457
+ }
458
+
291
459
  export declare const KrdsDateInput: DefineComponent<KrdsDateInputProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
292
460
  focus: (event: FocusEvent) => any;
293
461
  input: (event: Event) => any;
@@ -745,6 +913,15 @@ export declare interface KrdsInputProps extends BaseFormProps {
745
913
  loading?: boolean;
746
914
  }
747
915
 
916
+ export declare const KrdsLanguageSwitcher: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
917
+
918
+ export declare interface KrdsLanguageSwitcherProps extends BaseComponentProps {
919
+ languageList: LanguageData[];
920
+ modelValue?: string;
921
+ type?: 'default' | 'external';
922
+ dropPosition?: DropdownPosition;
923
+ }
924
+
748
925
  export declare const KrdsLink: DefineComponent<KrdsLinkProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<KrdsLinkProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
749
926
 
750
927
  /**
@@ -824,6 +1001,12 @@ export declare interface KrdsPaginationProps {
824
1001
  pageRange?: number;
825
1002
  }
826
1003
 
1004
+ export declare const KrdsPanel: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
1005
+
1006
+ export declare interface KrdsPanelProps {
1007
+ modelValue?: boolean;
1008
+ }
1009
+
827
1010
  export declare const KrdsRadio: DefineComponent<KrdsRadioProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<KrdsRadioProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
828
1011
 
829
1012
  /**
@@ -849,6 +1032,22 @@ export declare interface KrdsRadioProps extends BaseFormProps {
849
1032
  chip?: boolean;
850
1033
  }
851
1034
 
1035
+ export declare const KrdsResize: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1036
+ close: () => any;
1037
+ "update:modelValue": (value: string) => any;
1038
+ }, string, PublicProps, Readonly<{}> & Readonly<{
1039
+ onClose?: (() => any) | undefined;
1040
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
1041
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
1042
+ dropdownRef: HTMLDivElement;
1043
+ buttonRef: HTMLButtonElement;
1044
+ }, any>;
1045
+
1046
+ export declare interface KrdsResizeEmits {
1047
+ 'update:modelValue': [value: string];
1048
+ close: [];
1049
+ }
1050
+
852
1051
  export declare const KrdsSelect: DefineComponent<KrdsSelectProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<KrdsSelectProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
853
1052
 
854
1053
  /**
@@ -1280,6 +1479,16 @@ export declare interface KrdsToggleSwitchProps extends BaseFormProps {
1280
1479
  size?: 'medium' | 'large';
1281
1480
  }
1282
1481
 
1482
+ export declare const KrdsTooltip: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
1483
+
1484
+ export declare interface KrdsTooltipProps extends BaseComponentProps {
1485
+ type?: TooltipType;
1486
+ tooltipContent: string;
1487
+ vertical?: boolean;
1488
+ box?: boolean;
1489
+ disabled?: boolean;
1490
+ }
1491
+
1283
1492
  /**
1284
1493
  * KRDS Vue 플러그인
1285
1494
  */
@@ -1294,6 +1503,12 @@ export declare interface KrdsVueOptions {
1294
1503
  components?: string[];
1295
1504
  }
1296
1505
 
1506
+ declare type LanguageData = {
1507
+ code: string;
1508
+ name: string;
1509
+ url?: string;
1510
+ };
1511
+
1297
1512
  /**
1298
1513
  * 로딩 상태 속성
1299
1514
  */
@@ -1356,6 +1571,14 @@ export declare interface SelectOption {
1356
1571
  */
1357
1572
  export declare type Size = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
1358
1573
 
1574
+ declare type StepsData = {
1575
+ id: number;
1576
+ title: string;
1577
+ description: string;
1578
+ };
1579
+
1580
+ declare type TooltipType = 'default' | 'icon' | 'button';
1581
+
1359
1582
  /**
1360
1583
  * 버튼 변형 타입
1361
1584
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@krds.ui/vue",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "description": "KRDS Vue Design System - 한국 정부 디자인 시스템 Vue 컴포넌트 라이브러리",
5
5
  "keywords": [
6
6
  "krds",