@cregis/ui 0.1.8 → 0.1.9

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.
Files changed (2) hide show
  1. package/dist/types/index.d.ts +53 -159
  2. package/package.json +1 -1
@@ -7,162 +7,11 @@ import { InjectionKey } from 'vue';
7
7
  import { PublicProps } from 'vue';
8
8
  import { Ref } from 'vue';
9
9
 
10
- declare const __VLS_component: DefineComponent<InputProps, {
11
- focus: () => Promise<void>;
12
- updateTextWidth: () => void;
13
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
14
- "update:modelValue": (value: string | number) => any;
15
- input: (value: string | number) => any;
16
- change: (value: string | number) => any;
17
- focus: (value: FocusEvent) => any;
18
- blur: (value: FocusEvent) => any;
19
- clear: () => any;
20
- }, string, PublicProps, Readonly<InputProps> & Readonly<{
21
- "onUpdate:modelValue"?: (value: string | number) => any;
22
- onInput?: (value: string | number) => any;
23
- onChange?: (value: string | number) => any;
24
- onFocus?: (value: FocusEvent) => any;
25
- onBlur?: (value: FocusEvent) => any;
26
- onClear?: () => any;
27
- }>, {
28
- type: "text" | "number" | "textarea";
29
- size: "small" | "medium" | "large";
30
- width: string;
31
- placeholder: string;
32
- rows: number;
33
- }, {}, {}, {}, string, ComponentProvideOptions, false, {
34
- inputRef: HTMLTextAreaElement;
35
- }, any>;
36
-
37
- declare const __VLS_component_2: DefineComponent<ButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ButtonProps> & Readonly<{}>, {
10
+ export declare const Button: DefineComponent<ButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ButtonProps> & Readonly<{}>, {
38
11
  type: ButtonType;
39
12
  size: ButtonSize;
40
13
  iconType: IconButtonType;
41
- }, {}, {}, {}, string, ComponentProvideOptions, true, {
42
- buttonRef: HTMLButtonElement;
43
- }, any>;
44
-
45
- declare const __VLS_component_3: DefineComponent<CheckboxProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
46
- "update:modelValue": (value: number | boolean) => any;
47
- change: (value: number | boolean) => any;
48
- }, string, PublicProps, Readonly<CheckboxProps> & Readonly<{
49
- "onUpdate:modelValue"?: (value: number | boolean) => any;
50
- onChange?: (value: number | boolean) => any;
51
- }>, {
52
- disabled: boolean;
53
- modelValue: boolean | number;
54
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
55
-
56
- declare const __VLS_component_4: DefineComponent<RadioProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
57
- "update:modelValue": (value: RadioValue) => any;
58
- change: (value: RadioValue) => any;
59
- }, string, PublicProps, Readonly<RadioProps> & Readonly<{
60
- "onUpdate:modelValue"?: (value: RadioValue) => any;
61
- onChange?: (value: RadioValue) => any;
62
- }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
63
-
64
- declare const __VLS_component_5: DefineComponent<TabsProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
65
- "update:modelValue": (name: string | number) => any;
66
- }, string, PublicProps, Readonly<TabsProps> & Readonly<{
67
- "onUpdate:modelValue"?: (name: string | number) => any;
68
- }>, {
69
- type: "default" | "card";
70
- size: TabSize;
71
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
72
-
73
- declare function __VLS_template(): {
74
- attrs: Partial<{}>;
75
- slots: {
76
- prefix?(_: {}): any;
77
- suffix?(_: {}): any;
78
- };
79
- refs: {
80
- inputRef: HTMLTextAreaElement;
81
- };
82
- rootEl: any;
83
- };
84
-
85
- declare function __VLS_template_2(): {
86
- attrs: Partial<{}>;
87
- slots: {
88
- icon?(_: {}): any;
89
- default?(_: {}): any;
90
- default?(_: {}): any;
91
- };
92
- refs: {
93
- buttonRef: HTMLButtonElement;
94
- };
95
- rootEl: any;
96
- };
97
-
98
- declare function __VLS_template_3(): {
99
- attrs: Partial<{}>;
100
- slots: {
101
- default?(_: {}): any;
102
- };
103
- refs: {};
104
- rootEl: HTMLDivElement;
105
- };
106
-
107
- declare function __VLS_template_4(): {
108
- attrs: Partial<{}>;
109
- slots: {
110
- default?(_: {}): any;
111
- };
112
- refs: {};
113
- rootEl: HTMLDivElement;
114
- };
115
-
116
- declare function __VLS_template_5(): {
117
- attrs: Partial<{}>;
118
- slots: {
119
- default?(_: {}): any;
120
- };
121
- refs: {};
122
- rootEl: HTMLDivElement;
123
- };
124
-
125
- declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
126
-
127
- declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
128
-
129
- declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
130
-
131
- declare type __VLS_TemplateResult_4 = ReturnType<typeof __VLS_template_4>;
132
-
133
- declare type __VLS_TemplateResult_5 = ReturnType<typeof __VLS_template_5>;
134
-
135
- declare type __VLS_WithTemplateSlots<T, S> = T & {
136
- new (): {
137
- $slots: S;
138
- };
139
- };
140
-
141
- declare type __VLS_WithTemplateSlots_2<T, S> = T & {
142
- new (): {
143
- $slots: S;
144
- };
145
- };
146
-
147
- declare type __VLS_WithTemplateSlots_3<T, S> = T & {
148
- new (): {
149
- $slots: S;
150
- };
151
- };
152
-
153
- declare type __VLS_WithTemplateSlots_4<T, S> = T & {
154
- new (): {
155
- $slots: S;
156
- };
157
- };
158
-
159
- declare type __VLS_WithTemplateSlots_5<T, S> = T & {
160
- new (): {
161
- $slots: S;
162
- };
163
- };
164
-
165
- export declare const Button: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
14
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
166
15
 
167
16
  export declare interface ButtonProps {
168
17
  type?: ButtonType;
@@ -185,7 +34,16 @@ export declare type ButtonSize = 'extraSmall' | 'small' | 'medium' | 'large';
185
34
 
186
35
  export declare type ButtonType = 'primary' | 'secondary' | 'danger' | 'foreground' | 'sameWhite';
187
36
 
188
- export declare const Checkbox: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
37
+ export declare const Checkbox: DefineComponent<CheckboxProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
38
+ "update:modelValue": (value: number | boolean) => any;
39
+ change: (value: number | boolean) => any;
40
+ }, string, PublicProps, Readonly<CheckboxProps> & Readonly<{
41
+ "onUpdate:modelValue"?: (value: number | boolean) => any;
42
+ onChange?: (value: number | boolean) => any;
43
+ }>, {
44
+ disabled: boolean;
45
+ modelValue: boolean | number;
46
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
189
47
 
190
48
  export declare interface CheckboxEmits {
191
49
  (e: 'update:modelValue', value: boolean | number): void;
@@ -201,12 +59,12 @@ export declare interface CheckboxProps {
201
59
  }
202
60
 
203
61
  export declare const Divider: DefineComponent<DividerProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<DividerProps> & Readonly<{}>, {
204
- color: string;
205
62
  direction: "horizontal" | "vertical";
206
63
  borderStyle: "solid" | "dashed" | "dotted";
207
64
  lineThickness: string;
65
+ color: string;
208
66
  margin: string | [string, string];
209
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
67
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
210
68
 
211
69
  export declare interface DividerProps {
212
70
  direction?: 'horizontal' | 'vertical';
@@ -219,7 +77,30 @@ export declare interface DividerProps {
219
77
 
220
78
  export declare type IconButtonType = 'rectangle' | 'square' | 'circle' | 'professional';
221
79
 
222
- export declare const Input: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
80
+ export declare const Input: DefineComponent<InputProps, {
81
+ focus: () => Promise<void>;
82
+ updateTextWidth: () => void;
83
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
84
+ "update:modelValue": (value: string | number) => any;
85
+ input: (value: string | number) => any;
86
+ change: (value: string | number) => any;
87
+ focus: (value: FocusEvent) => any;
88
+ blur: (value: FocusEvent) => any;
89
+ clear: () => any;
90
+ }, string, PublicProps, Readonly<InputProps> & Readonly<{
91
+ "onUpdate:modelValue"?: (value: string | number) => any;
92
+ onInput?: (value: string | number) => any;
93
+ onChange?: (value: string | number) => any;
94
+ onFocus?: (value: FocusEvent) => any;
95
+ onBlur?: (value: FocusEvent) => any;
96
+ onClear?: () => any;
97
+ }>, {
98
+ type: "text" | "number" | "textarea";
99
+ size: "small" | "medium" | "large";
100
+ width: string;
101
+ placeholder: string;
102
+ rows: number;
103
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
223
104
 
224
105
  export declare interface InputEmits {
225
106
  (e: 'update:modelValue', value: StringOrNumber): void;
@@ -243,7 +124,13 @@ export declare interface InputProps {
243
124
  rows?: number;
244
125
  }
245
126
 
246
- export declare const Radio: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
127
+ export declare const Radio: DefineComponent<RadioProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
128
+ "update:modelValue": (value: RadioValue) => any;
129
+ change: (value: RadioValue) => any;
130
+ }, string, PublicProps, Readonly<RadioProps> & Readonly<{
131
+ "onUpdate:modelValue"?: (value: RadioValue) => any;
132
+ onChange?: (value: RadioValue) => any;
133
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
247
134
 
248
135
  export declare interface RadioEmits {
249
136
  (e: 'update:modelValue', value: RadioValue): void;
@@ -268,7 +155,14 @@ export declare interface TabPaneProps {
268
155
  name: string | number;
269
156
  }
270
157
 
271
- export declare const Tabs: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
158
+ export declare const Tabs: DefineComponent<TabsProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
159
+ "update:modelValue": (name: string | number) => any;
160
+ }, string, PublicProps, Readonly<TabsProps> & Readonly<{
161
+ "onUpdate:modelValue"?: (name: string | number) => any;
162
+ }>, {
163
+ type: "default" | "card";
164
+ size: TabSize;
165
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
272
166
 
273
167
  export declare const TABS_KEY: InjectionKey<TabsContext>;
274
168
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cregis/ui",
3
3
  "private": false,
4
- "version": "0.1.8",
4
+ "version": "0.1.9",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"