@choosemycompany/ui 0.3.1 → 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
11
  click: () => any;
8
12
  }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
9
13
  onClick?: (() => any) | undefined;
10
14
  }>, {
11
- size: ButtonSize;
15
+ loading: boolean;
12
16
  kind: ButtonKind;
13
17
  variant: ButtonVariant;
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
 
@@ -36,30 +48,95 @@ declare type __VLS_Props = {
36
48
  loading: boolean;
37
49
  };
38
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
+
39
74
  declare type __VLS_Props_2 = {
40
75
  level: HeadingLevels;
41
76
  };
42
77
 
43
78
  declare type __VLS_Props_3 = {
79
+ text?: string;
44
80
  status?: Status;
45
81
  };
46
82
 
47
83
  declare type __VLS_Props_4 = {
48
84
  name: IconName;
49
- size?: IconSize;
50
85
  color?: IconColor;
51
86
  };
52
87
 
53
88
  declare type __VLS_Props_5 = {
54
- gap: ButtonGroupGap;
89
+ size?: InputTextSize;
90
+ variant?: InputTextVariant;
91
+ placeholder?: string;
55
92
  };
56
93
 
57
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 = {
118
+ gap: ButtonGroupGap;
119
+ };
120
+
121
+ declare type __VLS_Props_9 = {
58
122
  currentPage: number;
59
123
  totalItems: number;
60
124
  itemsPerPage: number;
125
+ visibleRange?: number;
61
126
  };
62
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
+
63
140
  declare function __VLS_template(): {
64
141
  attrs: Partial<{}>;
65
142
  slots: {
@@ -95,7 +172,8 @@ declare function __VLS_template_3(): {
95
172
  declare function __VLS_template_4(): {
96
173
  attrs: Partial<{}>;
97
174
  slots: {
98
- default?(_: {}): any;
175
+ left?(_: {}): any;
176
+ right?(_: {}): any;
99
177
  };
100
178
  refs: {};
101
179
  rootEl: HTMLDivElement;
@@ -177,6 +255,15 @@ export declare const buttonVariantOptions: {
177
255
  readonly danger: "danger";
178
256
  };
179
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
+
180
267
  export declare const CmcButton: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
181
268
 
182
269
  export declare const CmcButtonGroup: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
@@ -185,20 +272,67 @@ export declare const CmcHeading: __VLS_WithTemplateSlots_2<typeof __VLS_componen
185
272
 
186
273
  export declare const CmcIcon: DefineComponent<__VLS_Props_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_4> & Readonly<{}>, {
187
274
  name: IconName;
188
- size: IconSize;
189
- color: IconColor;
190
275
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
191
276
 
192
- export declare const CmcPagination: DefineComponent<__VLS_Props_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
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, {} & {
193
282
  "update:currentPage": (page: number) => any;
194
- }, string, PublicProps, Readonly<__VLS_Props_6> & Readonly<{
283
+ }, string, PublicProps, Readonly<__VLS_Props_9> & Readonly<{
195
284
  "onUpdate:currentPage"?: ((page: number) => any) | undefined;
196
285
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLElement>;
197
286
 
198
- export declare const CmcStatus: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
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>;
199
327
 
200
328
  export declare const CmcTitle: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
201
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
+
202
336
  export declare const headingLevelOptions: {
203
337
  readonly h1: "h1";
204
338
  readonly h2: "h2";
@@ -218,12 +352,54 @@ declare type IconName = keyof typeof iconNameOptions;
218
352
 
219
353
  export declare const iconNameOptions: Record<string, string>;
220
354
 
221
- declare type IconSize = keyof typeof iconSizeOptions;
355
+ declare type InputTextSize = keyof typeof inputTextSizeOptions;
222
356
 
223
- export declare const iconSizeOptions: Record<string, string>;
357
+ export declare const inputTextSizeOptions: {
358
+ readonly small: "small";
359
+ readonly medium: "medium";
360
+ };
361
+
362
+ declare type InputTextType = keyof typeof inputTextTypeOptions;
363
+
364
+ export declare const inputTextTypeOptions: {
365
+ readonly text: "text";
366
+ readonly search: "search";
367
+ };
368
+
369
+ declare type InputTextVariant = keyof typeof inputTextVariantOptions;
370
+
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
+ };
224
396
 
225
397
  declare type Status = keyof typeof statusOptions;
226
398
 
227
399
  export declare const statusOptions: Record<string, string>;
228
400
 
401
+ declare type Step = {
402
+ label: string;
403
+ };
404
+
229
405
  export { }