bonkers-ui 1.0.63 → 1.0.64

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.
Files changed (38) hide show
  1. package/_types/sizing.js.map +1 -1
  2. package/bonkers-ui.umd.js +2 -2
  3. package/bonkers-ui.umd.js.map +1 -1
  4. package/components/ui-alert/index.d.ts +23 -56
  5. package/components/ui-badge/index.d.ts +33 -68
  6. package/components/ui-button/index.d.ts +51 -86
  7. package/components/ui-card-cta/index.d.ts +39 -75
  8. package/components/ui-card-result/index.d.ts +39 -75
  9. package/components/ui-card-simple/index.d.ts +9 -39
  10. package/components/ui-checkbox/index.d.ts +47 -84
  11. package/components/ui-dropdown/index.d.ts +47 -90
  12. package/components/ui-dropdown/ui-dropdown.vue.d.ts +0 -3
  13. package/components/ui-dropdown/ui-dropdown.vue.js +19 -20
  14. package/components/ui-dropdown/ui-dropdown.vue.js.map +1 -1
  15. package/components/ui-icon-wrapper/index.d.ts +31 -64
  16. package/components/ui-input/_typings.d.ts +2 -2
  17. package/components/ui-input/index.d.ts +148 -193
  18. package/components/ui-list-item/index.d.ts +74 -111
  19. package/components/ui-modal/index.d.ts +31 -64
  20. package/components/ui-modal/ui-backdrop/index.d.ts +9 -39
  21. package/components/ui-notification-badge/index.d.ts +22 -54
  22. package/components/ui-order-card/index.d.ts +29 -62
  23. package/components/ui-plain-radio/index.d.ts +60 -98
  24. package/components/ui-radio/index.d.ts +60 -98
  25. package/components/ui-radio-compact/index.d.ts +45 -81
  26. package/components/ui-radio-fancy/index.d.ts +70 -108
  27. package/components/ui-result-card-range/index.d.ts +33 -68
  28. package/components/ui-ripple/index.d.ts +9 -39
  29. package/components/ui-select/index.d.ts +41 -77
  30. package/components/ui-snackbar/index.d.ts +29 -62
  31. package/components/ui-table/index.d.ts +22 -54
  32. package/components/ui-table/ui-table-cell/index.d.ts +21 -54
  33. package/components/ui-table/ui-table-row/index.d.ts +16 -48
  34. package/components/ui-toggle/index.d.ts +62 -101
  35. package/components/ui-typography/index.d.ts +61 -100
  36. package/components/ui-typography/ui-typography.vue.js +2 -2
  37. package/components/ui-verification-input/index.d.ts +29 -63
  38. package/package.json +35 -35
@@ -1,5 +1,5 @@
1
1
  import { EIconWrapperSizes, EIconWrapperTypes } from './_typings';
2
- import { ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType, Slot, ComponentPublicInstance, ComponentOptionsBase, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
2
+ import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase } from 'vue';
3
3
  import UiIconWrapper from "./ui-icon-wrapper.vue";
4
4
  export { UiIconWrapper };
5
5
  export { EIconWrapperTypes, EIconWrapperSizes } from "./_typings";
@@ -7,71 +7,35 @@ export { EIconWrapperTypes, EIconWrapperSizes } from "./_typings";
7
7
  * @deprecated The default should not be used - use named import as - import {[name]} from "ui/[name]"
8
8
  */
9
9
  declare const deprecatedDefault: {
10
- new (...args: any[]): {
11
- $: ComponentInternalInstance;
12
- $data: {};
13
- $props: Partial<{
14
- size: EIconWrapperSizes;
15
- kind: EIconWrapperTypes;
16
- }> & Omit<{
17
- readonly size: EIconWrapperSizes;
18
- readonly kind: EIconWrapperTypes;
19
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly<ExtractPropTypes<{
20
- size: {
21
- type: PropType<EIconWrapperSizes>;
22
- default: EIconWrapperSizes;
23
- };
24
- kind: {
25
- type: PropType<EIconWrapperTypes>;
26
- default: EIconWrapperTypes;
27
- };
28
- }>>, "size" | "kind">;
29
- $attrs: {
30
- [x: string]: unknown;
10
+ new (...args: any[]): CreateComponentPublicInstance<Readonly<ExtractPropTypes<{
11
+ size: {
12
+ type: PropType<EIconWrapperSizes>;
13
+ default: EIconWrapperSizes;
31
14
  };
32
- $refs: {
33
- [x: string]: unknown;
15
+ kind: {
16
+ type: PropType<EIconWrapperTypes>;
17
+ default: EIconWrapperTypes;
34
18
  };
35
- $slots: Readonly<{
36
- [name: string]: Slot<any> | undefined;
37
- }>;
38
- $root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
39
- $parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
40
- $emit: (event: string, ...args: any[]) => void;
41
- $el: any;
42
- $options: ComponentOptionsBase<Readonly<ExtractPropTypes<{
43
- size: {
44
- type: PropType<EIconWrapperSizes>;
45
- default: EIconWrapperSizes;
46
- };
47
- kind: {
48
- type: PropType<EIconWrapperTypes>;
49
- default: EIconWrapperTypes;
50
- };
51
- }>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
52
- size: EIconWrapperSizes;
53
- kind: EIconWrapperTypes;
54
- }, {}, string, {}> & {
55
- beforeCreate?: ((() => void) | (() => void)[]) | undefined;
56
- created?: ((() => void) | (() => void)[]) | undefined;
57
- beforeMount?: ((() => void) | (() => void)[]) | undefined;
58
- mounted?: ((() => void) | (() => void)[]) | undefined;
59
- beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
60
- updated?: ((() => void) | (() => void)[]) | undefined;
61
- activated?: ((() => void) | (() => void)[]) | undefined;
62
- deactivated?: ((() => void) | (() => void)[]) | undefined;
63
- beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
64
- beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
65
- destroyed?: ((() => void) | (() => void)[]) | undefined;
66
- unmounted?: ((() => void) | (() => void)[]) | undefined;
67
- renderTracked?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
68
- renderTriggered?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
69
- errorCaptured?: (((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void)[]) | undefined;
19
+ }>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly<ExtractPropTypes<{
20
+ size: {
21
+ type: PropType<EIconWrapperSizes>;
22
+ default: EIconWrapperSizes;
23
+ };
24
+ kind: {
25
+ type: PropType<EIconWrapperTypes>;
26
+ default: EIconWrapperTypes;
70
27
  };
71
- $forceUpdate: () => void;
72
- $nextTick: typeof nextTick;
73
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: WatchOptions<boolean> | undefined): WatchStopHandle;
74
- } & Readonly<ExtractPropTypes<{
28
+ }>>, {
29
+ size: EIconWrapperSizes;
30
+ kind: EIconWrapperTypes;
31
+ }, true, {}, {}, {
32
+ P: {};
33
+ B: {};
34
+ D: {};
35
+ C: {};
36
+ M: {};
37
+ Defaults: {};
38
+ }, Readonly<ExtractPropTypes<{
75
39
  size: {
76
40
  type: PropType<EIconWrapperSizes>;
77
41
  default: EIconWrapperSizes;
@@ -80,7 +44,10 @@ declare const deprecatedDefault: {
80
44
  type: PropType<EIconWrapperTypes>;
81
45
  default: EIconWrapperTypes;
82
46
  };
83
- }>> & ShallowUnwrapRef<{}> & {} & ComponentCustomProperties & {};
47
+ }>>, {}, {}, {}, {}, {
48
+ size: EIconWrapperSizes;
49
+ kind: EIconWrapperTypes;
50
+ }>;
84
51
  __isFragment?: undefined;
85
52
  __isTeleport?: undefined;
86
53
  __isSuspense?: undefined;
@@ -13,8 +13,8 @@ export declare enum EInputType {
13
13
  }
14
14
  export declare enum EAutocomplete {
15
15
  OFF = "off",
16
- ON = "on",
17
- NAME = "name",
16
+ ON = "on",// dont forget to add name attribute to input (custom one)
17
+ NAME = "name",// full name
18
18
  GIVEN_NAME = "given-name",
19
19
  ADDITIONAL_NAME = "additional-name",
20
20
  FAMILY_NAME = "family-name",
@@ -1,5 +1,5 @@
1
1
  import { EInputType, EInputKinds, EAutocomplete } from './_typings';
2
- import { ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType, Slot, ComponentPublicInstance, ComponentOptionsBase, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
2
+ import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase } from 'vue';
3
3
  import UiInput from "./ui-input.vue";
4
4
  export { EInputType, EInputKinds, EAutocomplete } from "./_typings";
5
5
  export { UiInput };
@@ -7,197 +7,7 @@ export { UiInput };
7
7
  * @deprecated The default should not be used - use named import as - import {[name]} from "ui/[name]"
8
8
  */
9
9
  declare const deprecatedDefault: {
10
- new (...args: any[]): {
11
- $: ComponentInternalInstance;
12
- $data: {};
13
- $props: Partial<{
14
- type: EInputType;
15
- pattern: string;
16
- kind: EInputKinds;
17
- modelValue: string | number;
18
- name: string;
19
- placeholder: string;
20
- heading: string;
21
- subLabel: string;
22
- maxlength: string;
23
- minlength: string;
24
- focusHandler: (e: FocusEvent) => void;
25
- autocomplete: EAutocomplete;
26
- }> & Omit<{
27
- readonly type: EInputType;
28
- readonly kind: EInputKinds;
29
- readonly modelValue: string | number;
30
- readonly placeholder: string;
31
- readonly pattern?: string | undefined;
32
- readonly disabled?: boolean | undefined;
33
- readonly name?: string | undefined;
34
- readonly heading?: string | undefined;
35
- readonly subLabel?: string | undefined;
36
- readonly maxlength?: string | undefined;
37
- readonly minlength?: string | undefined;
38
- readonly focusHandler?: ((e: FocusEvent) => void) | undefined;
39
- readonly autocomplete?: EAutocomplete | undefined;
40
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
41
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly<ExtractPropTypes<{
42
- type: {
43
- type: PropType<EInputType>;
44
- default: EInputType;
45
- };
46
- pattern: {
47
- type: PropType<string>;
48
- default: undefined;
49
- };
50
- kind: {
51
- type: PropType<EInputKinds>;
52
- default: EInputKinds;
53
- };
54
- disabled: {
55
- type: PropType<boolean>;
56
- };
57
- modelValue: {
58
- type: PropType<string | number>;
59
- required: true;
60
- default: string;
61
- };
62
- name: {
63
- type: PropType<string>;
64
- default: undefined;
65
- };
66
- placeholder: {
67
- type: PropType<string>;
68
- default: string;
69
- };
70
- heading: {
71
- type: PropType<string>;
72
- default: undefined;
73
- };
74
- subLabel: {
75
- type: PropType<string>;
76
- default: undefined;
77
- };
78
- maxlength: {
79
- type: PropType<string>;
80
- default: undefined;
81
- };
82
- minlength: {
83
- type: PropType<string>;
84
- default: undefined;
85
- };
86
- focusHandler: {
87
- type: PropType<(e: FocusEvent) => void>;
88
- default: () => undefined;
89
- };
90
- autocomplete: {
91
- type: PropType<EAutocomplete>;
92
- default: undefined;
93
- };
94
- }>> & {
95
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
96
- }, "type" | "pattern" | "kind" | "modelValue" | "name" | "placeholder" | "heading" | "subLabel" | "maxlength" | "minlength" | "focusHandler" | "autocomplete">;
97
- $attrs: {
98
- [x: string]: unknown;
99
- };
100
- $refs: {
101
- [x: string]: unknown;
102
- };
103
- $slots: Readonly<{
104
- [name: string]: Slot<any> | undefined;
105
- }>;
106
- $root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
107
- $parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
108
- $emit: (event: "update:modelValue", ...args: any[]) => void;
109
- $el: any;
110
- $options: ComponentOptionsBase<Readonly<ExtractPropTypes<{
111
- type: {
112
- type: PropType<EInputType>;
113
- default: EInputType;
114
- };
115
- pattern: {
116
- type: PropType<string>;
117
- default: undefined;
118
- };
119
- kind: {
120
- type: PropType<EInputKinds>;
121
- default: EInputKinds;
122
- };
123
- disabled: {
124
- type: PropType<boolean>;
125
- };
126
- modelValue: {
127
- type: PropType<string | number>;
128
- required: true;
129
- default: string;
130
- };
131
- name: {
132
- type: PropType<string>;
133
- default: undefined;
134
- };
135
- placeholder: {
136
- type: PropType<string>;
137
- default: string;
138
- };
139
- heading: {
140
- type: PropType<string>;
141
- default: undefined;
142
- };
143
- subLabel: {
144
- type: PropType<string>;
145
- default: undefined;
146
- };
147
- maxlength: {
148
- type: PropType<string>;
149
- default: undefined;
150
- };
151
- minlength: {
152
- type: PropType<string>;
153
- default: undefined;
154
- };
155
- focusHandler: {
156
- type: PropType<(e: FocusEvent) => void>;
157
- default: () => undefined;
158
- };
159
- autocomplete: {
160
- type: PropType<EAutocomplete>;
161
- default: undefined;
162
- };
163
- }>> & {
164
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
165
- }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
166
- "update:modelValue": (...args: any[]) => void;
167
- }, string, {
168
- type: EInputType;
169
- pattern: string;
170
- kind: EInputKinds;
171
- modelValue: string | number;
172
- name: string;
173
- placeholder: string;
174
- heading: string;
175
- subLabel: string;
176
- maxlength: string;
177
- minlength: string;
178
- focusHandler: (e: FocusEvent) => void;
179
- autocomplete: EAutocomplete;
180
- }, {}, string, {}> & {
181
- beforeCreate?: ((() => void) | (() => void)[]) | undefined;
182
- created?: ((() => void) | (() => void)[]) | undefined;
183
- beforeMount?: ((() => void) | (() => void)[]) | undefined;
184
- mounted?: ((() => void) | (() => void)[]) | undefined;
185
- beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
186
- updated?: ((() => void) | (() => void)[]) | undefined;
187
- activated?: ((() => void) | (() => void)[]) | undefined;
188
- deactivated?: ((() => void) | (() => void)[]) | undefined;
189
- beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
190
- beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
191
- destroyed?: ((() => void) | (() => void)[]) | undefined;
192
- unmounted?: ((() => void) | (() => void)[]) | undefined;
193
- renderTracked?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
194
- renderTriggered?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
195
- errorCaptured?: (((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void)[]) | undefined;
196
- };
197
- $forceUpdate: () => void;
198
- $nextTick: typeof nextTick;
199
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: WatchOptions<boolean> | undefined): WatchStopHandle;
200
- } & Readonly<ExtractPropTypes<{
10
+ new (...args: any[]): CreateComponentPublicInstance<Readonly<ExtractPropTypes<{
201
11
  type: {
202
12
  type: PropType<EInputType>;
203
13
  default: EInputType;
@@ -252,7 +62,152 @@ declare const deprecatedDefault: {
252
62
  };
253
63
  }>> & {
254
64
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
255
- } & ShallowUnwrapRef<{}> & {} & ComponentCustomProperties & {};
65
+ }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
66
+ "update:modelValue": (...args: any[]) => void;
67
+ }, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly<ExtractPropTypes<{
68
+ type: {
69
+ type: PropType<EInputType>;
70
+ default: EInputType;
71
+ };
72
+ pattern: {
73
+ type: PropType<string>;
74
+ default: undefined;
75
+ };
76
+ kind: {
77
+ type: PropType<EInputKinds>;
78
+ default: EInputKinds;
79
+ };
80
+ disabled: {
81
+ type: PropType<boolean>;
82
+ };
83
+ modelValue: {
84
+ type: PropType<string | number>;
85
+ required: true;
86
+ default: string;
87
+ };
88
+ name: {
89
+ type: PropType<string>;
90
+ default: undefined;
91
+ };
92
+ placeholder: {
93
+ type: PropType<string>;
94
+ default: string;
95
+ };
96
+ heading: {
97
+ type: PropType<string>;
98
+ default: undefined;
99
+ };
100
+ subLabel: {
101
+ type: PropType<string>;
102
+ default: undefined;
103
+ };
104
+ maxlength: {
105
+ type: PropType<string>;
106
+ default: undefined;
107
+ };
108
+ minlength: {
109
+ type: PropType<string>;
110
+ default: undefined;
111
+ };
112
+ focusHandler: {
113
+ type: PropType<(e: FocusEvent) => void>;
114
+ default: () => undefined;
115
+ };
116
+ autocomplete: {
117
+ type: PropType<EAutocomplete>;
118
+ default: undefined;
119
+ };
120
+ }>> & {
121
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
122
+ }, {
123
+ type: EInputType;
124
+ pattern: string;
125
+ kind: EInputKinds;
126
+ modelValue: string | number;
127
+ name: string;
128
+ placeholder: string;
129
+ heading: string;
130
+ subLabel: string;
131
+ maxlength: string;
132
+ minlength: string;
133
+ focusHandler: (e: FocusEvent) => void;
134
+ autocomplete: EAutocomplete;
135
+ }, true, {}, {}, {
136
+ P: {};
137
+ B: {};
138
+ D: {};
139
+ C: {};
140
+ M: {};
141
+ Defaults: {};
142
+ }, Readonly<ExtractPropTypes<{
143
+ type: {
144
+ type: PropType<EInputType>;
145
+ default: EInputType;
146
+ };
147
+ pattern: {
148
+ type: PropType<string>;
149
+ default: undefined;
150
+ };
151
+ kind: {
152
+ type: PropType<EInputKinds>;
153
+ default: EInputKinds;
154
+ };
155
+ disabled: {
156
+ type: PropType<boolean>;
157
+ };
158
+ modelValue: {
159
+ type: PropType<string | number>;
160
+ required: true;
161
+ default: string;
162
+ };
163
+ name: {
164
+ type: PropType<string>;
165
+ default: undefined;
166
+ };
167
+ placeholder: {
168
+ type: PropType<string>;
169
+ default: string;
170
+ };
171
+ heading: {
172
+ type: PropType<string>;
173
+ default: undefined;
174
+ };
175
+ subLabel: {
176
+ type: PropType<string>;
177
+ default: undefined;
178
+ };
179
+ maxlength: {
180
+ type: PropType<string>;
181
+ default: undefined;
182
+ };
183
+ minlength: {
184
+ type: PropType<string>;
185
+ default: undefined;
186
+ };
187
+ focusHandler: {
188
+ type: PropType<(e: FocusEvent) => void>;
189
+ default: () => undefined;
190
+ };
191
+ autocomplete: {
192
+ type: PropType<EAutocomplete>;
193
+ default: undefined;
194
+ };
195
+ }>> & {
196
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
197
+ }, {}, {}, {}, {}, {
198
+ type: EInputType;
199
+ pattern: string;
200
+ kind: EInputKinds;
201
+ modelValue: string | number;
202
+ name: string;
203
+ placeholder: string;
204
+ heading: string;
205
+ subLabel: string;
206
+ maxlength: string;
207
+ minlength: string;
208
+ focusHandler: (e: FocusEvent) => void;
209
+ autocomplete: EAutocomplete;
210
+ }>;
256
211
  __isFragment?: undefined;
257
212
  __isTeleport?: undefined;
258
213
  __isSuspense?: undefined;