@frollo/frollo-web-ui 0.1.1 → 0.1.2

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
@@ -12,7 +12,7 @@ declare interface FwInputProps {
12
12
  type?: FwInputType;
13
13
  label?: string;
14
14
  placeholder?: string;
15
- rules?: string | object | Function;
15
+ rules?: string | Record<string, unknown> | (() => boolean);
16
16
  readonly?: boolean;
17
17
  hint?: string;
18
18
  }
@@ -54,10 +54,10 @@ declare const _default$7: vue.DefineComponent<{
54
54
  default: string;
55
55
  };
56
56
  /**
57
- * Validation rules. Accepts a string, object, function or schema.
57
+ * Validation rules. Accepts an object, string schema or validation function.
58
58
  */
59
59
  rules: {
60
- type: (StringConstructor | ObjectConstructor | FunctionConstructor)[];
60
+ type: PropType<string | Record<string, unknown> | (() => boolean) | undefined>;
61
61
  };
62
62
  /**
63
63
  * Converts the input into a readonly disabled field
@@ -72,6 +72,12 @@ declare const _default$7: vue.DefineComponent<{
72
72
  hint: {
73
73
  type: StringConstructor;
74
74
  };
75
+ /**
76
+ * The autocomplete input attribute
77
+ */
78
+ autocomplete: {
79
+ type: StringConstructor;
80
+ };
75
81
  }, {
76
82
  inputBaseClass: vue.Ref<string>;
77
83
  inputValue: vue.WritableComputedRef<string>;
@@ -112,10 +118,10 @@ declare const _default$7: vue.DefineComponent<{
112
118
  default: string;
113
119
  };
114
120
  /**
115
- * Validation rules. Accepts a string, object, function or schema.
121
+ * Validation rules. Accepts an object, string schema or validation function.
116
122
  */
117
123
  rules: {
118
- type: (StringConstructor | ObjectConstructor | FunctionConstructor)[];
124
+ type: PropType<string | Record<string, unknown> | (() => boolean) | undefined>;
119
125
  };
120
126
  /**
121
127
  * Converts the input into a readonly disabled field
@@ -130,6 +136,12 @@ declare const _default$7: vue.DefineComponent<{
130
136
  hint: {
131
137
  type: StringConstructor;
132
138
  };
139
+ /**
140
+ * The autocomplete input attribute
141
+ */
142
+ autocomplete: {
143
+ type: StringConstructor;
144
+ };
133
145
  }>> & {
134
146
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
135
147
  }, {
@@ -154,10 +166,10 @@ declare const _default$6: vue.DefineComponent<{
154
166
  type: StringConstructor;
155
167
  };
156
168
  /**
157
- * Validation rules. Accepts a string, object, function or schema.
169
+ * Validation rules. Accepts an object, stringm schema or validation function.
158
170
  */
159
171
  rules: {
160
- type: (StringConstructor | ObjectConstructor | FunctionConstructor)[];
172
+ type: PropType<string | Record<string, unknown> | (() => boolean) | undefined>;
161
173
  };
162
174
  /**
163
175
  * The hint text shown below the input
@@ -180,10 +192,10 @@ declare const _default$6: vue.DefineComponent<{
180
192
  type: StringConstructor;
181
193
  };
182
194
  /**
183
- * Validation rules. Accepts a string, object, function or schema.
195
+ * Validation rules. Accepts an object, stringm schema or validation function.
184
196
  */
185
197
  rules: {
186
- type: (StringConstructor | ObjectConstructor | FunctionConstructor)[];
198
+ type: PropType<string | Record<string, unknown> | (() => boolean) | undefined>;
187
199
  };
188
200
  /**
189
201
  * The hint text shown below the input
@@ -396,6 +408,7 @@ declare const _default$3: vue.DefineComponent<{
396
408
  isMobileMenuOpen: vue.Ref<boolean>;
397
409
  toggleMobileMenu: () => boolean;
398
410
  actionClicked: () => void;
411
+ ButtonVariantName: typeof ButtonVariantName;
399
412
  }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "action"[], "action", vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
400
413
  /**
401
414
  * An array of menu items
@@ -636,7 +649,7 @@ declare interface FwCardProps {
636
649
  declare interface FwCheckboxProps {
637
650
  name: string;
638
651
  label?: string;
639
- rules?: string | object | Function;
652
+ rules?: string | Record<string, unknown> | (() => boolean);
640
653
  hint?: string;
641
654
  }
642
655
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frollo/frollo-web-ui",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Frollo's UI library for components, utilities and configs",
5
5
  "exports": {
6
6
  "./icons": "./icons/index.ts",
@@ -57,7 +57,7 @@
57
57
  "@vue/eslint-config-typescript": "^10.0.0",
58
58
  "@vue/test-utils": "^2.0.0-rc.17",
59
59
  "@vue/vue3-jest": "^28.0.0",
60
- "autoprefixer": "^10.4.2",
60
+ "autoprefixer": "^10.4.7",
61
61
  "babel-core": "^7.0.0-bridge.0",
62
62
  "babel-jest": "^28.1.1",
63
63
  "babel-loader": "^8.2.5",
@@ -1,3 +1,4 @@
1
+ import { PropType } from 'vue';
1
2
  declare const _default: import("vue").DefineComponent<{
2
3
  /**
3
4
  * The name of the input field. Must be unique per form.
@@ -13,10 +14,10 @@ declare const _default: import("vue").DefineComponent<{
13
14
  type: StringConstructor;
14
15
  };
15
16
  /**
16
- * Validation rules. Accepts a string, object, function or schema.
17
+ * Validation rules. Accepts an object, stringm schema or validation function.
17
18
  */
18
19
  rules: {
19
- type: (StringConstructor | ObjectConstructor | FunctionConstructor)[];
20
+ type: PropType<string | Record<string, unknown> | (() => boolean) | undefined>;
20
21
  };
21
22
  /**
22
23
  * The hint text shown below the input
@@ -39,10 +40,10 @@ declare const _default: import("vue").DefineComponent<{
39
40
  type: StringConstructor;
40
41
  };
41
42
  /**
42
- * Validation rules. Accepts a string, object, function or schema.
43
+ * Validation rules. Accepts an object, stringm schema or validation function.
43
44
  */
44
45
  rules: {
45
- type: (StringConstructor | ObjectConstructor | FunctionConstructor)[];
46
+ type: PropType<string | Record<string, unknown> | (() => boolean) | undefined>;
46
47
  };
47
48
  /**
48
49
  * The hint text shown below the input
@@ -1,6 +1,6 @@
1
1
  export declare interface FwCheckboxProps {
2
2
  name: string;
3
3
  label?: string;
4
- rules?: string | object | Function;
4
+ rules?: string | Record<string, unknown> | (() => boolean);
5
5
  hint?: string;
6
6
  }
@@ -37,10 +37,10 @@ declare const _default: import("vue").DefineComponent<{
37
37
  default: string;
38
38
  };
39
39
  /**
40
- * Validation rules. Accepts a string, object, function or schema.
40
+ * Validation rules. Accepts an object, string schema or validation function.
41
41
  */
42
42
  rules: {
43
- type: (StringConstructor | ObjectConstructor | FunctionConstructor)[];
43
+ type: PropType<string | Record<string, unknown> | (() => boolean) | undefined>;
44
44
  };
45
45
  /**
46
46
  * Converts the input into a readonly disabled field
@@ -55,6 +55,12 @@ declare const _default: import("vue").DefineComponent<{
55
55
  hint: {
56
56
  type: StringConstructor;
57
57
  };
58
+ /**
59
+ * The autocomplete input attribute
60
+ */
61
+ autocomplete: {
62
+ type: StringConstructor;
63
+ };
58
64
  }, {
59
65
  inputBaseClass: import("vue").Ref<string>;
60
66
  inputValue: import("vue").WritableComputedRef<string>;
@@ -95,10 +101,10 @@ declare const _default: import("vue").DefineComponent<{
95
101
  default: string;
96
102
  };
97
103
  /**
98
- * Validation rules. Accepts a string, object, function or schema.
104
+ * Validation rules. Accepts an object, string schema or validation function.
99
105
  */
100
106
  rules: {
101
- type: (StringConstructor | ObjectConstructor | FunctionConstructor)[];
107
+ type: PropType<string | Record<string, unknown> | (() => boolean) | undefined>;
102
108
  };
103
109
  /**
104
110
  * Converts the input into a readonly disabled field
@@ -113,6 +119,12 @@ declare const _default: import("vue").DefineComponent<{
113
119
  hint: {
114
120
  type: StringConstructor;
115
121
  };
122
+ /**
123
+ * The autocomplete input attribute
124
+ */
125
+ autocomplete: {
126
+ type: StringConstructor;
127
+ };
116
128
  }>> & {
117
129
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
118
130
  }, {
@@ -8,7 +8,7 @@ export declare interface FwInputProps {
8
8
  type?: FwInputType;
9
9
  label?: string;
10
10
  placeholder?: string;
11
- rules?: string | object | Function;
11
+ rules?: string | Record<string, unknown> | (() => boolean);
12
12
  readonly?: boolean;
13
13
  hint?: string;
14
14
  }
@@ -1,5 +1,6 @@
1
1
  import { PropType } from 'vue';
2
2
  import { NavMenuItem } from './index.types';
3
+ import { ButtonVariantName } from '../fw-button/index.types';
3
4
  declare const _default: import("vue").DefineComponent<{
4
5
  /**
5
6
  * An array of menu items
@@ -20,6 +21,7 @@ declare const _default: import("vue").DefineComponent<{
20
21
  isMobileMenuOpen: import("vue").Ref<boolean>;
21
22
  toggleMobileMenu: () => boolean;
22
23
  actionClicked: () => void;
24
+ ButtonVariantName: typeof ButtonVariantName;
23
25
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "action"[], "action", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
24
26
  /**
25
27
  * An array of menu items