@choosemycompany/ui 0.3.0 → 0.9.1

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/index.d.ts CHANGED
@@ -1,29 +1,41 @@
1
+ import { ColumnDefinition } from './CmcTable.d.ts';
2
+ import { ColumnDefinition as ColumnDefinition_2 } from '../../Molecules/CmcTable/CmcTable';
1
3
  import { ComponentOptionsMixin } from 'vue';
2
4
  import { ComponentProvideOptions } from 'vue';
3
5
  import { DefineComponent } from 'vue';
4
6
  import { PublicProps } from 'vue';
7
+ import { Row } from './CmcTable.d.ts';
8
+ import { Row as Row_2 } from '../../Molecules/CmcTable/CmcTable';
5
9
 
6
10
  declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
7
- click: (id: number) => any;
11
+ click: () => any;
8
12
  }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
9
- onClick?: ((id: number) => any) | undefined;
13
+ onClick?: (() => any) | undefined;
10
14
  }>, {
15
+ loading: boolean;
11
16
  kind: ButtonKind;
12
17
  variant: ButtonVariant;
13
18
  size: ButtonSize;
14
19
  disabled: boolean;
15
- loading: boolean;
16
20
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
17
21
 
18
22
  declare const __VLS_component_2: DefineComponent<__VLS_Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_2> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
19
23
 
20
24
  declare const __VLS_component_3: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
21
25
 
22
- declare const __VLS_component_4: DefineComponent<__VLS_Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_3> & Readonly<{}>, {
23
- status: Status;
26
+ declare const __VLS_component_4: DefineComponent<__VLS_PublicProps_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
27
+ "update:modelValue": (value: string | number) => any;
28
+ }, string, PublicProps, Readonly<__VLS_PublicProps_2> & Readonly<{
29
+ "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
30
+ }>, {
31
+ type: InputTextType;
32
+ required: boolean;
33
+ variant: InputTextVariant;
34
+ size: InputTextSize;
35
+ disabled: boolean;
24
36
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
25
37
 
26
- declare const __VLS_component_5: DefineComponent<__VLS_Props_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_5> & Readonly<{}>, {
38
+ declare const __VLS_component_5: DefineComponent<__VLS_Props_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_8> & Readonly<{}>, {
27
39
  gap: ButtonGroupGap;
28
40
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
29
41
 
@@ -31,28 +43,100 @@ declare type __VLS_Props = {
31
43
  kind: ButtonKind;
32
44
  variant: ButtonVariant;
33
45
  size: ButtonSize;
46
+ icon?: IconName;
34
47
  disabled: boolean;
35
48
  loading: boolean;
36
49
  };
37
50
 
51
+ declare type __VLS_Props_10 = Props;
52
+
53
+ declare type __VLS_Props_11 = {
54
+ rows?: Row_2[];
55
+ columns?: ColumnDefinition_2[];
56
+ itemsPerPage: number;
57
+ currentPage: number;
58
+ };
59
+
60
+ declare type __VLS_Props_12 = {
61
+ steps: Step[];
62
+ current: number;
63
+ clickable?: boolean;
64
+ };
65
+
66
+ declare type __VLS_Props_13 = {
67
+ items: string[];
68
+ label?: string;
69
+ loading?: boolean;
70
+ placeholder?: string;
71
+ emptyValue?: string;
72
+ };
73
+
38
74
  declare type __VLS_Props_2 = {
39
75
  level: HeadingLevels;
40
76
  };
41
77
 
42
78
  declare type __VLS_Props_3 = {
79
+ text?: string;
43
80
  status?: Status;
44
81
  };
45
82
 
46
83
  declare type __VLS_Props_4 = {
47
84
  name: IconName;
48
- size?: IconSize;
49
85
  color?: IconColor;
50
86
  };
51
87
 
52
88
  declare type __VLS_Props_5 = {
89
+ size?: InputTextSize;
90
+ variant?: InputTextVariant;
91
+ placeholder?: string;
92
+ };
93
+
94
+ declare type __VLS_Props_6 = {
95
+ id: string;
96
+ label?: string;
97
+ placeholder?: string;
98
+ required?: boolean;
99
+ disabled?: boolean;
100
+ errorMessage?: string;
101
+ type?: InputTextType;
102
+ variant?: InputTextVariant;
103
+ size?: InputTextSize;
104
+ };
105
+
106
+ declare type __VLS_Props_7 = {
107
+ id: string;
108
+ label?: string;
109
+ placeholder?: string;
110
+ required?: boolean;
111
+ disabled?: boolean;
112
+ errorMessage?: string;
113
+ variant?: SelectVariant;
114
+ options: SelectOption[];
115
+ };
116
+
117
+ declare type __VLS_Props_8 = {
53
118
  gap: ButtonGroupGap;
54
119
  };
55
120
 
121
+ declare type __VLS_Props_9 = {
122
+ currentPage: number;
123
+ totalItems: number;
124
+ itemsPerPage: number;
125
+ visibleRange?: number;
126
+ };
127
+
128
+ declare type __VLS_PublicProps = {
129
+ modelValue?: string;
130
+ } & __VLS_Props_5;
131
+
132
+ declare type __VLS_PublicProps_2 = {
133
+ modelValue?: string | number;
134
+ } & __VLS_Props_6;
135
+
136
+ declare type __VLS_PublicProps_3 = {
137
+ modelValue?: string | number;
138
+ } & __VLS_Props_7;
139
+
56
140
  declare function __VLS_template(): {
57
141
  attrs: Partial<{}>;
58
142
  slots: {
@@ -88,7 +172,8 @@ declare function __VLS_template_3(): {
88
172
  declare function __VLS_template_4(): {
89
173
  attrs: Partial<{}>;
90
174
  slots: {
91
- default?(_: {}): any;
175
+ left?(_: {}): any;
176
+ right?(_: {}): any;
92
177
  };
93
178
  refs: {};
94
179
  rootEl: HTMLDivElement;
@@ -170,6 +255,15 @@ export declare const buttonVariantOptions: {
170
255
  readonly danger: "danger";
171
256
  };
172
257
 
258
+ export declare const CmcAutocomplete: DefineComponent<__VLS_Props_13, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_13> & Readonly<{}>, {
259
+ loading: boolean;
260
+ placeholder: string;
261
+ label: string;
262
+ emptyValue: string;
263
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
264
+ autocompleteRef: HTMLDivElement;
265
+ }, HTMLDivElement>;
266
+
173
267
  export declare const CmcButton: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
174
268
 
175
269
  export declare const CmcButtonGroup: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
@@ -178,14 +272,67 @@ export declare const CmcHeading: __VLS_WithTemplateSlots_2<typeof __VLS_componen
178
272
 
179
273
  export declare const CmcIcon: DefineComponent<__VLS_Props_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_4> & Readonly<{}>, {
180
274
  name: IconName;
181
- size: IconSize;
182
- color: IconColor;
183
275
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
184
276
 
185
- export declare const CmcStatus: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
277
+ export declare const CmcInputText: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
278
+
279
+ export declare const CmcLoading: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLImageElement>;
280
+
281
+ export declare const CmcPagination: DefineComponent<__VLS_Props_9, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
282
+ "update:currentPage": (page: number) => any;
283
+ }, string, PublicProps, Readonly<__VLS_Props_9> & Readonly<{
284
+ "onUpdate:currentPage"?: ((page: number) => any) | undefined;
285
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLElement>;
286
+
287
+ export declare const CmcSearch: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
288
+ "update:modelValue": (value: string) => any;
289
+ }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
290
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
291
+ }>, {
292
+ placeholder: string;
293
+ size: InputTextSize;
294
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
295
+
296
+ export declare const CmcSelect: DefineComponent<__VLS_PublicProps_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
297
+ "update:modelValue": (value: string | number) => any;
298
+ }, string, PublicProps, Readonly<__VLS_PublicProps_3> & Readonly<{
299
+ "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
300
+ }>, {
301
+ required: boolean;
302
+ variant: SelectVariant;
303
+ disabled: boolean;
304
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
305
+
306
+ export declare const CmcStatus: DefineComponent<__VLS_Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_3> & Readonly<{}>, {
307
+ text: string;
308
+ status: Status;
309
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
310
+
311
+ export declare const CmcTable: DefineComponent<__VLS_Props_10, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_10> & Readonly<{}>, {
312
+ rows: Row[];
313
+ emptyText: string;
314
+ columns: ColumnDefinition[];
315
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLTableElement>;
316
+
317
+ export declare const CmcTablePagination: DefineComponent<__VLS_Props_11, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
318
+ "update:currentPage": (page: number) => any;
319
+ }, string, PublicProps, Readonly<__VLS_Props_11> & Readonly<{
320
+ "onUpdate:currentPage"?: ((page: number) => any) | undefined;
321
+ }>, {
322
+ currentPage: number;
323
+ itemsPerPage: number;
324
+ rows: Row_2[];
325
+ columns: ColumnDefinition_2[];
326
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
186
327
 
187
328
  export declare const CmcTitle: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
188
329
 
330
+ export declare const CmcWizard: DefineComponent<__VLS_Props_12, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
331
+ "update:current": (value: number) => any;
332
+ }, string, PublicProps, Readonly<__VLS_Props_12> & Readonly<{
333
+ "onUpdate:current"?: ((value: number) => any) | undefined;
334
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
335
+
189
336
  export declare const headingLevelOptions: {
190
337
  readonly h1: "h1";
191
338
  readonly h2: "h2";
@@ -201,16 +348,58 @@ declare type IconColor = keyof typeof iconColorOptions;
201
348
 
202
349
  export declare const iconColorOptions: Record<string, string>;
203
350
 
204
- declare type IconName = keyof typeof iconsMap;
351
+ declare type IconName = keyof typeof iconNameOptions;
352
+
353
+ export declare const iconNameOptions: Record<string, string>;
354
+
355
+ declare type InputTextSize = keyof typeof inputTextSizeOptions;
205
356
 
206
- declare type IconSize = keyof typeof iconSizeOptions;
357
+ export declare const inputTextSizeOptions: {
358
+ readonly small: "small";
359
+ readonly medium: "medium";
360
+ };
361
+
362
+ declare type InputTextType = keyof typeof inputTextTypeOptions;
207
363
 
208
- export declare const iconSizeOptions: Record<string, number>;
364
+ export declare const inputTextTypeOptions: {
365
+ readonly text: "text";
366
+ readonly search: "search";
367
+ };
368
+
369
+ declare type InputTextVariant = keyof typeof inputTextVariantOptions;
209
370
 
210
- export declare const iconsMap: Record<string, string>;
371
+ export declare const inputTextVariantOptions: {
372
+ readonly outlined: "outlined";
373
+ readonly filled: "filled";
374
+ readonly underline: "underline";
375
+ };
376
+
377
+ declare type Props<TRow extends Row = Row> = {
378
+ rows?: TRow[];
379
+ columns?: ColumnDefinition[];
380
+ emptyText?: string;
381
+ };
382
+
383
+ declare interface SelectOption {
384
+ value: string | number;
385
+ label: string;
386
+ disabled?: boolean;
387
+ }
388
+
389
+ declare type SelectVariant = keyof typeof selectVariantOptions;
390
+
391
+ export declare const selectVariantOptions: {
392
+ readonly outlined: "outlined";
393
+ readonly filled: "filled";
394
+ readonly underline: "underline";
395
+ };
211
396
 
212
397
  declare type Status = keyof typeof statusOptions;
213
398
 
214
399
  export declare const statusOptions: Record<string, string>;
215
400
 
401
+ declare type Step = {
402
+ label: string;
403
+ };
404
+
216
405
  export { }