@frollo/frollo-web-ui 0.0.11 → 0.0.14

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,7 +2,7 @@ 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 const _default$3: vue.DefineComponent<{
5
+ declare const _default$4: vue.DefineComponent<{
6
6
  /**
7
7
  * The header title of the card
8
8
  */
@@ -73,7 +73,7 @@ interface FwButtonProps {
73
73
  variant?: ButtonVariantName;
74
74
  buttonType?: ButtonTypeAttribute;
75
75
  }
76
- declare const _default$2: vue.DefineComponent<{
76
+ declare const _default$3: vue.DefineComponent<{
77
77
  /**
78
78
  * A `router-link` path or object
79
79
  */
@@ -173,7 +173,7 @@ interface NavMenuItem {
173
173
  href?: string;
174
174
  label: string;
175
175
  }
176
- declare const _default$1: vue.DefineComponent<{
176
+ declare const _default$2: vue.DefineComponent<{
177
177
  /**
178
178
  * An array of menu items
179
179
  * `{ to?: string | object; href?: string; label: string; }`
@@ -220,8 +220,9 @@ interface FwInputProps {
220
220
  placeholder?: string;
221
221
  rules?: string | object | Function;
222
222
  readonly?: boolean;
223
+ hint?: string;
223
224
  }
224
- declare const _default: vue.DefineComponent<{
225
+ declare const _default$1: vue.DefineComponent<{
225
226
  /**
226
227
  * The input v-model
227
228
  */
@@ -270,6 +271,12 @@ declare const _default: vue.DefineComponent<{
270
271
  type: BooleanConstructor;
271
272
  default: boolean;
272
273
  };
274
+ /**
275
+ * The hint text shown below the input
276
+ */
277
+ hint: {
278
+ type: StringConstructor;
279
+ };
273
280
  }, {
274
281
  inputValue: vue.WritableComputedRef<string>;
275
282
  }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
@@ -321,6 +328,12 @@ declare const _default: vue.DefineComponent<{
321
328
  type: BooleanConstructor;
322
329
  default: boolean;
323
330
  };
331
+ /**
332
+ * The hint text shown below the input
333
+ */
334
+ hint: {
335
+ type: StringConstructor;
336
+ };
324
337
  }>> & {
325
338
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
326
339
  }, {
@@ -330,8 +343,68 @@ declare const _default: vue.DefineComponent<{
330
343
  readonly: boolean;
331
344
  }>;
332
345
 
346
+ interface FwCheckboxProps {
347
+ name: string;
348
+ label?: string;
349
+ rules?: string | object | Function;
350
+ hint?: string;
351
+ }
352
+ declare const _default: vue.DefineComponent<{
353
+ /**
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
362
+ */
363
+ label: {
364
+ 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
+ required: true;
385
+ };
386
+ /**
387
+ * Label for the input. Also renders to an aria-label attribute
388
+ */
389
+ label: {
390
+ 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;
403
+ };
404
+ }>>, {}>;
405
+
333
406
  declare const install: Exclude<Plugin['install'], undefined>;
334
407
 
335
408
  declare module '@frollo/frollo-web-ui/icons' { }
336
409
 
337
- export { ButtonDefinition, ButtonDefinitionList, ButtonSize, ButtonSizes, ButtonTypeAttribute, ButtonVariantName, _default$2 as FwButton, FwButtonProps, _default$3 as FwCard, _default as FwInput, FwInputProps, _default$1 as FwNavigationMenu, InputType, NavMenuItem, install as default };
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frollo/frollo-web-ui",
3
- "version": "0.0.11",
3
+ "version": "0.0.14",
4
4
  "description": "Frollo's UI library for components, utilities and configs",
5
5
  "exports": {
6
6
  "./icons": "./icons/index.ts",
@@ -0,0 +1,60 @@
1
+ export interface FwCheckboxProps {
2
+ name: string;
3
+ label?: string;
4
+ rules?: string | object | Function;
5
+ hint?: string;
6
+ }
7
+ declare const _default: import("vue").DefineComponent<{
8
+ /**
9
+ * The name of the input field. Must be unique per form.
10
+ */
11
+ name: {
12
+ type: StringConstructor;
13
+ required: true;
14
+ };
15
+ /**
16
+ * Label for the input. Also renders to an aria-label attribute
17
+ */
18
+ label: {
19
+ type: StringConstructor;
20
+ };
21
+ /**
22
+ * Validation rules. Accepts a string, object, function or schema.
23
+ */
24
+ rules: {
25
+ type: (StringConstructor | ObjectConstructor | FunctionConstructor)[];
26
+ };
27
+ /**
28
+ * The hint text shown below the input
29
+ */
30
+ hint: {
31
+ type: StringConstructor;
32
+ };
33
+ }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
34
+ /**
35
+ * The name of the input field. Must be unique per form.
36
+ */
37
+ name: {
38
+ type: StringConstructor;
39
+ required: true;
40
+ };
41
+ /**
42
+ * Label for the input. Also renders to an aria-label attribute
43
+ */
44
+ label: {
45
+ type: StringConstructor;
46
+ };
47
+ /**
48
+ * Validation rules. Accepts a string, object, function or schema.
49
+ */
50
+ rules: {
51
+ type: (StringConstructor | ObjectConstructor | FunctionConstructor)[];
52
+ };
53
+ /**
54
+ * The hint text shown below the input
55
+ */
56
+ hint: {
57
+ type: StringConstructor;
58
+ };
59
+ }>>, {}>;
60
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import FwCheckbox from './fw-checkbox.vue';
2
+ export { FwCheckbox };
@@ -8,6 +8,7 @@ export interface FwInputProps {
8
8
  placeholder?: string;
9
9
  rules?: string | object | Function;
10
10
  readonly?: boolean;
11
+ hint?: string;
11
12
  }
12
13
  declare const _default: import("vue").DefineComponent<{
13
14
  /**
@@ -58,6 +59,12 @@ declare const _default: import("vue").DefineComponent<{
58
59
  type: BooleanConstructor;
59
60
  default: boolean;
60
61
  };
62
+ /**
63
+ * The hint text shown below the input
64
+ */
65
+ hint: {
66
+ type: StringConstructor;
67
+ };
61
68
  }, {
62
69
  inputValue: import("vue").WritableComputedRef<string>;
63
70
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -109,6 +116,12 @@ declare const _default: import("vue").DefineComponent<{
109
116
  type: BooleanConstructor;
110
117
  default: boolean;
111
118
  };
119
+ /**
120
+ * The hint text shown below the input
121
+ */
122
+ hint: {
123
+ type: StringConstructor;
124
+ };
112
125
  }>> & {
113
126
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
114
127
  }, {
@@ -3,3 +3,4 @@ export * from './fw-button';
3
3
  export * from './fw-navigation-menu';
4
4
  export * from './fw-form';
5
5
  export * from './fw-input';
6
+ export * from './fw-checkbox';
@@ -5,4 +5,9 @@ import NotFoundSvg from './not-found.svg';
5
5
  import EmailFilledSvg from './email-filled.svg';
6
6
  import AlertSvg from './alert.svg';
7
7
  import LockSvg from './lock.svg';
8
- export { ViewSvg, GenerateSvg, ManageSvg, NotFoundSvg, EmailFilledSvg, AlertSvg, LockSvg };
8
+ import EyeSvg from './eye.svg';
9
+ import EyeCrossedSvg from './eye-crossed.svg';
10
+ import DownloadSvg from './download.svg';
11
+ import IdCardSvg from './id-card.svg';
12
+ import InfoCircleSvg from './info-circle.svg';
13
+ export { ViewSvg, GenerateSvg, ManageSvg, NotFoundSvg, EmailFilledSvg, AlertSvg, LockSvg, EyeSvg, EyeCrossedSvg, DownloadSvg, IdCardSvg, InfoCircleSvg };
@@ -6,3 +6,4 @@ export * from './components/fw-card/fw-card.vue';
6
6
  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
+ export * from './components/fw-checkbox/fw-checkbox.vue';