@contentstudio/ui 0.1.0 → 0.1.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,187 +1,16 @@
1
+ import { default as Alert } from './Alert.vue';
2
+ import { default as Badge } from './components/Badge/Badge.vue';
3
+ import { default as Button } from './components/Button/Button.vue';
4
+ import { default as Checkbox } from './components/Checkbox/Checkbox.vue';
5
+ import { default as Chip } from './Chip.vue';
1
6
  import { Component } from 'vue';
2
- import { ComponentOptionsMixin } from 'vue';
3
- import { ComponentProvideOptions } from 'vue';
4
- import { DefineComponent } from 'vue';
5
- import { PublicProps } from 'vue';
6
-
7
- declare const __VLS_component: DefineComponent<ButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
8
- click: (event: MouseEvent) => any;
9
- }, string, PublicProps, Readonly<ButtonProps> & Readonly<{
10
- onClick?: ((event: MouseEvent) => any) | undefined;
11
- }>, {
12
- color: ThemeColor;
13
- size: ComponentSize;
14
- radius: ComponentRadius;
15
- disabled: boolean;
16
- variant: ButtonVariant;
17
- loading: boolean;
18
- fullWidth: boolean;
19
- type: "button" | "submit" | "reset";
20
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
21
-
22
- declare const __VLS_component_2: DefineComponent<BadgeProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BadgeProps> & Readonly<{}>, {
23
- color: ThemeColor;
24
- size: ComponentSize;
25
- radius: ComponentRadius;
26
- variant: BadgeVariant;
27
- fullWidth: boolean;
28
- circle: boolean;
29
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
30
-
31
- declare const __VLS_component_3: DefineComponent<SelectProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
32
- "update:modelValue": (value: string | null) => any;
33
- change: (option: SelectOption | null) => any;
34
- }, string, PublicProps, Readonly<SelectProps> & Readonly<{
35
- "onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
36
- onChange?: ((option: SelectOption | null) => any) | undefined;
37
- }>, {
38
- color: "primary" | "secondary" | "success" | "warning" | "danger" | "info" | "dark" | "light";
39
- size: "xs" | "sm" | "md" | "lg" | "xl";
40
- radius: "xs" | "sm" | "md" | "lg" | "xl" | "none";
41
- disabled: boolean;
42
- variant: "filled" | "outline";
43
- loading: boolean;
44
- modelValue: string | null;
45
- error: boolean;
46
- placeholder: string;
47
- options: SelectOption[];
48
- searchable: boolean;
49
- clearable: boolean;
50
- withCheckIcon: boolean;
51
- checkIconPosition: "left" | "right";
52
- nothingFoundMessage: string;
53
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
54
-
55
- declare const __VLS_component_4: DefineComponent<RadioProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
56
- "update:modelValue": (value: any) => any;
57
- change: (value: any) => any;
58
- }, string, PublicProps, Readonly<RadioProps> & Readonly<{
59
- "onUpdate:modelValue"?: ((value: any) => any) | undefined;
60
- onChange?: ((value: any) => any) | undefined;
61
- }>, {
62
- color: ThemeColor;
63
- size: ComponentSize;
64
- disabled: boolean;
65
- label: string;
66
- modelValue: any;
67
- value: any;
68
- id: string;
69
- labelPosition: "left" | "right";
70
- description: string;
71
- error: string;
72
- iconColor: string;
73
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
74
-
75
- declare const __VLS_component_5: DefineComponent<AlertProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
76
- close: () => any;
77
- }, string, PublicProps, Readonly<AlertProps> & Readonly<{
78
- onClose?: (() => any) | undefined;
79
- }>, {
80
- color: ColorVariant;
81
- size: ComponentSize;
82
- disabled: boolean;
83
- variant: VariantType;
84
- loading: boolean;
85
- invalid: boolean;
86
- closable: boolean;
87
- valid: boolean;
88
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
89
-
90
- declare function __VLS_template(): {
91
- slots: {
92
- loader?(_: {}): any;
93
- default?(_: {}): any;
94
- };
95
- refs: {};
96
- attrs: Partial<{}>;
97
- };
98
-
99
- declare function __VLS_template_2(): {
100
- slots: {
101
- default?(_: {}): any;
102
- };
103
- refs: {};
104
- attrs: Partial<{}>;
105
- };
106
-
107
- declare function __VLS_template_3(): {
108
- slots: {
109
- loader?(_: {}): any;
110
- };
111
- refs: {
112
- selectRoot: HTMLDivElement;
113
- searchInput: HTMLInputElement;
114
- };
115
- attrs: Partial<{}>;
116
- };
117
-
118
- declare function __VLS_template_4(): {
119
- slots: {
120
- label?(_: {}): any;
121
- description?(_: {}): any;
122
- error?(_: {}): any;
123
- };
124
- refs: {
125
- radio: HTMLInputElement;
126
- };
127
- attrs: Partial<{}>;
128
- };
129
-
130
- declare function __VLS_template_5(): {
131
- slots: {
132
- default?(_: {}): any;
133
- };
134
- refs: {};
135
- attrs: Partial<{}>;
136
- };
137
-
138
- declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
139
-
140
- declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
141
-
142
- declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
143
-
144
- declare type __VLS_TemplateResult_4 = ReturnType<typeof __VLS_template_4>;
145
-
146
- declare type __VLS_TemplateResult_5 = ReturnType<typeof __VLS_template_5>;
147
-
148
- declare type __VLS_WithTemplateSlots<T, S> = T & {
149
- new (): {
150
- $slots: S;
151
- };
152
- };
153
-
154
- declare type __VLS_WithTemplateSlots_2<T, S> = T & {
155
- new (): {
156
- $slots: S;
157
- };
158
- };
159
-
160
- declare type __VLS_WithTemplateSlots_3<T, S> = T & {
161
- new (): {
162
- $slots: S;
163
- };
164
- };
165
-
166
- declare type __VLS_WithTemplateSlots_4<T, S> = T & {
167
- new (): {
168
- $slots: S;
169
- };
170
- };
7
+ import { default as Indicator } from './Indicator.vue';
8
+ import { default as Progress } from './Progress.vue';
9
+ import { default as Radio } from './components/Radio/Radio.vue';
10
+ import { default as Select } from './components/Select/Select.vue';
11
+ import { default as TextInput } from './TextInput.vue';
171
12
 
172
- declare type __VLS_WithTemplateSlots_5<T, S> = T & {
173
- new (): {
174
- $slots: S;
175
- };
176
- };
177
-
178
- declare type __VLS_WithTemplateSlots_6<T, S> = T & {
179
- new (): {
180
- $slots: S;
181
- };
182
- };
183
-
184
- export declare const Alert: __VLS_WithTemplateSlots_6<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
13
+ export { Alert }
185
14
 
186
15
  export declare interface AlertProps {
187
16
  /** Title of the alert */
@@ -212,7 +41,7 @@ export declare interface AlertProps {
212
41
  class?: string;
213
42
  }
214
43
 
215
- export declare const Badge: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
44
+ export { Badge }
216
45
 
217
46
  export declare interface BadgeProps {
218
47
  /** Controls font-size, height and horizontal padding */
@@ -241,7 +70,7 @@ export declare interface BadgeProps {
241
70
 
242
71
  export declare type BadgeVariant = 'filled' | 'light' | 'outline' | 'dot' | 'transparent' | 'white' | 'default' | 'gradient';
243
72
 
244
- export declare const Button: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
73
+ export { Button }
245
74
 
246
75
  export declare type ButtonColor = NonNullable<ButtonProps['color']>;
247
76
 
@@ -281,25 +110,7 @@ export declare type ButtonSize = NonNullable<ButtonProps['size']>;
281
110
 
282
111
  declare type ButtonVariant = 'filled' | 'light' | 'outline' | 'subtle' | 'gradient' | 'white' | 'default';
283
112
 
284
- export declare const Checkbox: DefineComponent<CheckboxProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
285
- "update:modelValue": (value: boolean) => any;
286
- change: (value: boolean) => any;
287
- }, string, PublicProps, Readonly<CheckboxProps> & Readonly<{
288
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
289
- onChange?: ((value: boolean) => any) | undefined;
290
- }>, {
291
- color: ColorVariant;
292
- size: Size;
293
- radius: "sm" | "md" | "lg" | "full";
294
- disabled: boolean;
295
- label: string;
296
- modelValue: boolean | any[];
297
- labelPosition: "left" | "right";
298
- description: string;
299
- error: string;
300
- indeterminate: boolean;
301
- iconColor: ColorVariant;
302
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
113
+ export { Checkbox }
303
114
 
304
115
  export declare interface CheckboxProps {
305
116
  modelValue?: boolean | any[];
@@ -318,21 +129,7 @@ export declare interface CheckboxProps {
318
129
  autoContrast?: boolean;
319
130
  }
320
131
 
321
- export declare const Chip: DefineComponent<ChipProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
322
- "update:modelValue": (value: boolean) => any;
323
- }, string, PublicProps, Readonly<ChipProps> & Readonly<{
324
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
325
- }>, {
326
- color: ChipColor;
327
- size: ChipSize;
328
- disabled: boolean;
329
- variant: ChipVariant;
330
- loading: boolean;
331
- label: string;
332
- modelValue: boolean;
333
- withCheckIcon: boolean;
334
- allowDeselect: boolean;
335
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
132
+ export { Chip }
336
133
 
337
134
  declare type ChipColor = 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info' | 'dark' | 'light';
338
135
 
@@ -394,22 +191,7 @@ declare type ComponentSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
394
191
 
395
192
  export declare const composables: {};
396
193
 
397
- export declare const Indicator: __VLS_WithTemplateSlots_5<DefineComponent<IndicatorProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IndicatorProps> & Readonly<{}>, {
398
- color: ThemeColor;
399
- size: ComponentSize;
400
- radius: ComponentRadius;
401
- disabled: boolean;
402
- variant: "filled" | "light" | "outline" | "default" | "subtle";
403
- label: string | number;
404
- position: Position;
405
- offset: number;
406
- inline: boolean;
407
- withBorder: boolean;
408
- processing: boolean;
409
- zIndex: number;
410
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
411
- default?(_: {}): any;
412
- }>;
194
+ export { Indicator }
413
195
 
414
196
  export declare interface IndicatorProps {
415
197
  /** Position of the indicator relative to its container */
@@ -460,12 +242,7 @@ export declare type MantineSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
460
242
 
461
243
  declare type Position = 'top-start' | 'top-end' | 'top-center' | 'bottom-start' | 'bottom-end' | 'bottom-center' | 'middle-start' | 'middle-end' | 'middle-center';
462
244
 
463
- export declare const Progress: DefineComponent<ProgressProps_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ProgressProps_2> & Readonly<{}>, {
464
- size: Size;
465
- value: number;
466
- striped: boolean;
467
- animated: boolean;
468
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
245
+ export { Progress }
469
246
 
470
247
  export declare interface ProgressProps {
471
248
  /** Value of the progress (0-100) */
@@ -484,15 +261,6 @@ export declare interface ProgressProps {
484
261
  class?: string;
485
262
  }
486
263
 
487
- declare interface ProgressProps_2 {
488
- value?: number;
489
- size?: Size;
490
- color?: ColorVariant;
491
- label?: string;
492
- striped?: boolean;
493
- animated?: boolean;
494
- }
495
-
496
264
  export declare interface ProgressSectionProps {
497
265
  value: number;
498
266
  color?: string;
@@ -500,7 +268,7 @@ export declare interface ProgressSectionProps {
500
268
  animated?: boolean;
501
269
  }
502
270
 
503
- export declare const Radio: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
271
+ export { Radio }
504
272
 
505
273
  export declare interface RadioProps {
506
274
  /**
@@ -551,7 +319,7 @@ export declare interface RadioProps {
551
319
 
552
320
  declare type SectionProps = Record<string, any>;
553
321
 
554
- export declare const Select: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
322
+ export { Select }
555
323
 
556
324
  export declare interface SelectOption {
557
325
  value: string;
@@ -579,19 +347,7 @@ export declare interface SelectProps {
579
347
 
580
348
  declare type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
581
349
 
582
- export declare const TextInput: DefineComponent<TextInputProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
583
- "update:modelValue": (value: string) => any;
584
- }, string, PublicProps, Readonly<TextInputProps> & Readonly<{
585
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
586
- }>, {
587
- size: ComponentSize;
588
- radius: ComponentRadius;
589
- disabled: boolean;
590
- type: string;
591
- required: boolean;
592
- withAsterisk: boolean;
593
- withError: boolean;
594
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
350
+ export { TextInput }
595
351
 
596
352
  export declare interface TextInputProps {
597
353
  /** Input's id attribute */