@frollo/frollo-web-ui 0.0.16 → 0.0.17

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/index.d.ts CHANGED
@@ -2,6 +2,198 @@ import * as vue from 'vue';
2
2
  import { PropType, Plugin } from 'vue';
3
3
  export { Form as FwForm } from 'vee-validate';
4
4
 
5
+ declare type InputType = 'text' | 'password';
6
+ interface FwInputProps {
7
+ value: string;
8
+ name: string;
9
+ type?: InputType;
10
+ label?: string;
11
+ placeholder?: string;
12
+ rules?: string | object | Function;
13
+ readonly?: boolean;
14
+ hint?: string;
15
+ }
16
+ declare const _default$6: vue.DefineComponent<{
17
+ /**
18
+ * The input v-model
19
+ */
20
+ modelValue: {
21
+ type: StringConstructor;
22
+ default: string;
23
+ };
24
+ /**
25
+ * The name of the input field. Must be unique per form.
26
+ */
27
+ name: {
28
+ type: StringConstructor;
29
+ required: true;
30
+ };
31
+ /**
32
+ * The input type. Accepts `text` | `password`
33
+ */
34
+ type: {
35
+ type: PropType<InputType>;
36
+ default: string;
37
+ validator: (value: string) => boolean;
38
+ };
39
+ /**
40
+ * Label for the input. Also renders to an aria-label attribute
41
+ */
42
+ label: {
43
+ type: StringConstructor;
44
+ };
45
+ /**
46
+ * The placeholder text of the input
47
+ */
48
+ placeholder: {
49
+ type: StringConstructor;
50
+ default: string;
51
+ };
52
+ /**
53
+ * Validation rules. Accepts a string, object, function or schema.
54
+ */
55
+ rules: {
56
+ type: (StringConstructor | ObjectConstructor | FunctionConstructor)[];
57
+ };
58
+ /**
59
+ * Converts the input into a readonly disabled field
60
+ */
61
+ readonly: {
62
+ type: BooleanConstructor;
63
+ default: boolean;
64
+ };
65
+ /**
66
+ * The hint text shown below the input
67
+ */
68
+ hint: {
69
+ type: StringConstructor;
70
+ };
71
+ }, {
72
+ inputValue: vue.WritableComputedRef<string>;
73
+ }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
74
+ /**
75
+ * The input v-model
76
+ */
77
+ modelValue: {
78
+ type: StringConstructor;
79
+ default: string;
80
+ };
81
+ /**
82
+ * The name of the input field. Must be unique per form.
83
+ */
84
+ name: {
85
+ type: StringConstructor;
86
+ required: true;
87
+ };
88
+ /**
89
+ * The input type. Accepts `text` | `password`
90
+ */
91
+ type: {
92
+ type: PropType<InputType>;
93
+ default: string;
94
+ validator: (value: string) => boolean;
95
+ };
96
+ /**
97
+ * Label for the input. Also renders to an aria-label attribute
98
+ */
99
+ label: {
100
+ type: StringConstructor;
101
+ };
102
+ /**
103
+ * The placeholder text of the input
104
+ */
105
+ placeholder: {
106
+ type: StringConstructor;
107
+ default: string;
108
+ };
109
+ /**
110
+ * Validation rules. Accepts a string, object, function or schema.
111
+ */
112
+ rules: {
113
+ type: (StringConstructor | ObjectConstructor | FunctionConstructor)[];
114
+ };
115
+ /**
116
+ * Converts the input into a readonly disabled field
117
+ */
118
+ readonly: {
119
+ type: BooleanConstructor;
120
+ default: boolean;
121
+ };
122
+ /**
123
+ * The hint text shown below the input
124
+ */
125
+ hint: {
126
+ type: StringConstructor;
127
+ };
128
+ }>> & {
129
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
130
+ }, {
131
+ modelValue: string;
132
+ type: InputType;
133
+ placeholder: string;
134
+ readonly: boolean;
135
+ }>;
136
+
137
+ interface FwCheckboxProps {
138
+ name: string;
139
+ label?: string;
140
+ rules?: string | object | Function;
141
+ hint?: string;
142
+ }
143
+ declare const _default$5: vue.DefineComponent<{
144
+ /**
145
+ * The name of the input field. Must be unique per form.
146
+ */
147
+ name: {
148
+ type: StringConstructor;
149
+ required: true;
150
+ };
151
+ /**
152
+ * Label for the input. Also renders to an aria-label attribute
153
+ */
154
+ label: {
155
+ type: StringConstructor;
156
+ };
157
+ /**
158
+ * Validation rules. Accepts a string, object, function or schema.
159
+ */
160
+ rules: {
161
+ type: (StringConstructor | ObjectConstructor | FunctionConstructor)[];
162
+ };
163
+ /**
164
+ * The hint text shown below the input
165
+ */
166
+ hint: {
167
+ type: StringConstructor;
168
+ };
169
+ }, unknown, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
170
+ /**
171
+ * The name of the input field. Must be unique per form.
172
+ */
173
+ name: {
174
+ type: StringConstructor;
175
+ required: true;
176
+ };
177
+ /**
178
+ * Label for the input. Also renders to an aria-label attribute
179
+ */
180
+ label: {
181
+ type: StringConstructor;
182
+ };
183
+ /**
184
+ * Validation rules. Accepts a string, object, function or schema.
185
+ */
186
+ rules: {
187
+ type: (StringConstructor | ObjectConstructor | FunctionConstructor)[];
188
+ };
189
+ /**
190
+ * The hint text shown below the input
191
+ */
192
+ hint: {
193
+ type: StringConstructor;
194
+ };
195
+ }>>, {}>;
196
+
5
197
  declare const _default$4: vue.DefineComponent<{
6
198
  /**
7
199
  * The header title of the card
@@ -211,195 +403,48 @@ declare const _default$2: vue.DefineComponent<{
211
403
  onAction?: ((...args: any[]) => any) | undefined;
212
404
  }, {}>;
213
405
 
214
- declare type InputType = 'text' | 'password';
215
- interface FwInputProps {
216
- value: string;
217
- name: string;
218
- type?: InputType;
219
- label?: string;
220
- placeholder?: string;
221
- rules?: string | object | Function;
222
- readonly?: boolean;
223
- hint?: string;
224
- }
225
406
  declare const _default$1: vue.DefineComponent<{
226
407
  /**
227
- * The input v-model
408
+ * The active tab v-model
228
409
  */
229
410
  modelValue: {
230
- type: StringConstructor;
231
- default: string;
232
- };
233
- /**
234
- * The name of the input field. Must be unique per form.
235
- */
236
- name: {
237
- type: StringConstructor;
411
+ type: NumberConstructor;
238
412
  required: true;
239
413
  };
240
- /**
241
- * The input type. Accepts `text` | `password`
242
- */
243
- type: {
244
- type: PropType<InputType>;
245
- default: string;
246
- validator: (value: string) => boolean;
247
- };
248
- /**
249
- * Label for the input. Also renders to an aria-label attribute
250
- */
251
- label: {
252
- type: StringConstructor;
253
- };
254
- /**
255
- * The placeholder text of the input
256
- */
257
- placeholder: {
258
- type: StringConstructor;
259
- default: string;
260
- };
261
- /**
262
- * Validation rules. Accepts a string, object, function or schema.
263
- */
264
- rules: {
265
- type: (StringConstructor | ObjectConstructor | FunctionConstructor)[];
266
- };
267
- /**
268
- * Converts the input into a readonly disabled field
269
- */
270
- readonly: {
271
- type: BooleanConstructor;
272
- default: boolean;
273
- };
274
- /**
275
- * The hint text shown below the input
276
- */
277
- hint: {
278
- type: StringConstructor;
279
- };
280
414
  }, {
281
- inputValue: vue.WritableComputedRef<string>;
415
+ active: vue.ComputedRef<number>;
416
+ tabs: vue.Ref<never[]>;
417
+ selectTab: (tab: number) => void;
282
418
  }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
283
419
  /**
284
- * The input v-model
420
+ * The active tab v-model
285
421
  */
286
422
  modelValue: {
287
- type: StringConstructor;
288
- default: string;
289
- };
290
- /**
291
- * The name of the input field. Must be unique per form.
292
- */
293
- name: {
294
- type: StringConstructor;
423
+ type: NumberConstructor;
295
424
  required: true;
296
425
  };
297
- /**
298
- * The input type. Accepts `text` | `password`
299
- */
300
- type: {
301
- type: PropType<InputType>;
302
- default: string;
303
- validator: (value: string) => boolean;
304
- };
305
- /**
306
- * Label for the input. Also renders to an aria-label attribute
307
- */
308
- label: {
309
- type: StringConstructor;
310
- };
311
- /**
312
- * The placeholder text of the input
313
- */
314
- placeholder: {
315
- type: StringConstructor;
316
- default: string;
317
- };
318
- /**
319
- * Validation rules. Accepts a string, object, function or schema.
320
- */
321
- rules: {
322
- type: (StringConstructor | ObjectConstructor | FunctionConstructor)[];
323
- };
324
- /**
325
- * Converts the input into a readonly disabled field
326
- */
327
- readonly: {
328
- type: BooleanConstructor;
329
- default: boolean;
330
- };
331
- /**
332
- * The hint text shown below the input
333
- */
334
- hint: {
335
- type: StringConstructor;
336
- };
337
426
  }>> & {
338
427
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
339
- }, {
340
- modelValue: string;
341
- type: InputType;
342
- placeholder: string;
343
- readonly: boolean;
344
- }>;
428
+ }, {}>;
345
429
 
346
- interface FwCheckboxProps {
347
- name: string;
348
- label?: string;
349
- rules?: string | object | Function;
350
- hint?: string;
351
- }
352
430
  declare const _default: vue.DefineComponent<{
353
431
  /**
354
- * The name of the input field. Must be unique per form.
355
- */
356
- name: {
357
- type: StringConstructor;
358
- required: true;
359
- };
360
- /**
361
- * Label for the input. Also renders to an aria-label attribute
432
+ * The label of the tab component used as the button panel label
362
433
  */
363
434
  label: {
364
435
  type: StringConstructor;
365
- };
366
- /**
367
- * Validation rules. Accepts a string, object, function or schema.
368
- */
369
- rules: {
370
- type: (StringConstructor | ObjectConstructor | FunctionConstructor)[];
371
- };
372
- /**
373
- * The hint text shown below the input
374
- */
375
- hint: {
376
- type: StringConstructor;
377
- };
378
- }, unknown, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
379
- /**
380
- * The name of the input field. Must be unique per form.
381
- */
382
- name: {
383
- type: StringConstructor;
384
436
  required: true;
385
437
  };
438
+ }, {
439
+ isActive: vue.ComputedRef<boolean>;
440
+ index: vue.ComputedRef<any>;
441
+ }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
386
442
  /**
387
- * Label for the input. Also renders to an aria-label attribute
443
+ * The label of the tab component used as the button panel label
388
444
  */
389
445
  label: {
390
446
  type: StringConstructor;
391
- };
392
- /**
393
- * Validation rules. Accepts a string, object, function or schema.
394
- */
395
- rules: {
396
- type: (StringConstructor | ObjectConstructor | FunctionConstructor)[];
397
- };
398
- /**
399
- * The hint text shown below the input
400
- */
401
- hint: {
402
- type: StringConstructor;
447
+ required: true;
403
448
  };
404
449
  }>>, {}>;
405
450
 
@@ -407,4 +452,4 @@ declare const install: Exclude<Plugin['install'], undefined>;
407
452
 
408
453
  declare module '@frollo/frollo-web-ui/icons' { }
409
454
 
410
- export { ButtonDefinition, ButtonDefinitionList, ButtonSize, ButtonSizes, ButtonTypeAttribute, ButtonVariantName, _default$3 as FwButton, FwButtonProps, _default$4 as FwCard, _default as FwCheckbox, FwCheckboxProps, _default$1 as FwInput, FwInputProps, _default$2 as FwNavigationMenu, InputType, NavMenuItem, install as default };
455
+ export { ButtonDefinition, ButtonDefinitionList, ButtonSize, ButtonSizes, ButtonTypeAttribute, ButtonVariantName, _default$3 as FwButton, FwButtonProps, _default$4 as FwCard, _default$5 as FwCheckbox, FwCheckboxProps, _default$6 as FwInput, FwInputProps, _default$2 as FwNavigationMenu, _default as FwTab, _default$1 as FwTabs, InputType, NavMenuItem, install as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frollo/frollo-web-ui",
3
- "version": "0.0.16",
3
+ "version": "0.0.17",
4
4
  "description": "Frollo's UI library for components, utilities and configs",
5
5
  "exports": {
6
6
  "./icons": "./icons/index.ts",
@@ -0,0 +1,21 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ /**
3
+ * The label of the tab component used as the button panel label
4
+ */
5
+ label: {
6
+ type: StringConstructor;
7
+ required: true;
8
+ };
9
+ }, {
10
+ isActive: import("vue").ComputedRef<boolean>;
11
+ index: import("vue").ComputedRef<any>;
12
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
13
+ /**
14
+ * The label of the tab component used as the button panel label
15
+ */
16
+ label: {
17
+ type: StringConstructor;
18
+ required: true;
19
+ };
20
+ }>>, {}>;
21
+ export default _default;
@@ -0,0 +1,24 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ /**
3
+ * The active tab v-model
4
+ */
5
+ modelValue: {
6
+ type: NumberConstructor;
7
+ required: true;
8
+ };
9
+ }, {
10
+ active: import("vue").ComputedRef<number>;
11
+ tabs: import("vue").Ref<never[]>;
12
+ selectTab: (tab: number) => void;
13
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
14
+ /**
15
+ * The active tab v-model
16
+ */
17
+ modelValue: {
18
+ type: NumberConstructor;
19
+ required: true;
20
+ };
21
+ }>> & {
22
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
23
+ }, {}>;
24
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import FwTabs from './fw-tabs.vue';
2
+ import FwTab from './fw-tab.vue';
3
+ export { FwTabs, FwTab };
@@ -1,6 +1,7 @@
1
- export * from './fw-card';
2
- export * from './fw-button';
3
- export * from './fw-navigation-menu';
4
1
  export * from './fw-form';
5
2
  export * from './fw-input';
6
3
  export * from './fw-checkbox';
4
+ export * from './fw-card';
5
+ export * from './fw-button';
6
+ export * from './fw-navigation-menu';
7
+ export * from './fw-tabs';
@@ -7,3 +7,5 @@ export * from './components/fw-button/fw-button.vue';
7
7
  export * from './components/fw-navigation-menu/fw-navigation-menu.vue';
8
8
  export * from './components/fw-input/fw-input.vue';
9
9
  export * from './components/fw-checkbox/fw-checkbox.vue';
10
+ export * from './components/fw-tabs/fw-tabs.vue';
11
+ export * from './components/fw-tabs/fw-tab.vue';