@oub/fusion 0.2.8 → 0.2.10

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 (45) hide show
  1. package/dist/base/classes/BaseTokens.d.ts +11 -0
  2. package/dist/components/common/banner/FusionBanner.vue.d.ts +69 -0
  3. package/dist/components/common/country/CountrySelectDropdown.vue.d.ts +56 -0
  4. package/dist/components/common/country/CountrySelectList.vue.d.ts +58 -0
  5. package/dist/components/common/date-picker/FusionDatePicker.vue.d.ts +159 -0
  6. package/dist/components/common/loading-spinner/FusionLoadingSpinner.vue.d.ts +23 -0
  7. package/dist/components/common/numeric-input-stepper/FusionNumericInputStepper.vue.d.ts +65 -0
  8. package/dist/components/form/button/FusionButton.vue.d.ts +103 -0
  9. package/dist/components/form/checkbox/FusionCheckbox.vue.d.ts +86 -0
  10. package/dist/components/form/input/FusionInput.d.ts +3 -0
  11. package/dist/components/form/input/FusionInput.vue.d.ts +164 -0
  12. package/dist/components/form/password-input/FusionPasswordInput.d.ts +3 -0
  13. package/dist/components/form/password-input/FusionPasswordInput.vue.d.ts +141 -0
  14. package/dist/components/form/phone/FusionPhoneInput.d.ts +15 -0
  15. package/dist/components/form/phone/FusionPhoneInput.vue.d.ts +188 -0
  16. package/dist/components/form/radio/FusionRadio.d.ts +5 -0
  17. package/dist/components/form/radio/FusionRadio.vue.d.ts +94 -0
  18. package/dist/components/form/searchable-input/FusionSearchableInput.d.ts +10 -0
  19. package/dist/components/form/searchable-input/FusionSearchableInput.vue.d.ts +236 -0
  20. package/dist/components/form/select/FusionSelect.d.ts +10 -0
  21. package/dist/components/form/select/FusionSelect.vue.d.ts +244 -0
  22. package/dist/components/form/select/panel/FusionSelectPanel.d.ts +5 -0
  23. package/dist/components/form/select/panel/FusionSelectPanel.vue.d.ts +116 -0
  24. package/dist/components/form/textarea/FusionTextarea.vue.d.ts +180 -0
  25. package/dist/components/link/text/FusionTextLink.d.ts +13 -0
  26. package/dist/components/link/text/FusionTextLink.vue.d.ts +105 -0
  27. package/dist/components/svgs/SVGArrowDown.vue.d.ts +2 -0
  28. package/dist/components/svgs/SVGCalendar.vue.d.ts +2 -0
  29. package/dist/components/svgs/SVGCheckCircle.vue.d.ts +2 -0
  30. package/dist/components/svgs/SVGClose.vue.d.ts +2 -0
  31. package/dist/components/svgs/SVGDecrement.vue.d.ts +2 -0
  32. package/dist/components/svgs/SVGExclamationCircle.vue.d.ts +2 -0
  33. package/dist/components/svgs/SVGExclamationTriangle.vue.d.ts +2 -0
  34. package/dist/components/svgs/SVGInbox.vue.d.ts +2 -0
  35. package/dist/components/svgs/SVGIncrement.vue.d.ts +2 -0
  36. package/dist/components/svgs/SVGInformationCircle.vue.d.ts +2 -0
  37. package/dist/components/svgs/SVGSearch.vue.d.ts +2 -0
  38. package/dist/components/svgs/SVGTick.vue.d.ts +2 -0
  39. package/dist/constants/countries.d.ts +21 -0
  40. package/dist/fusion.js +2706 -2427
  41. package/dist/fusion.umd.cjs +3 -3
  42. package/dist/main.d.ts +15 -0
  43. package/dist/style.css +1 -1
  44. package/dist/types/index.d.ts +1 -0
  45. package/package.json +4 -2
@@ -0,0 +1,236 @@
1
+ import { type PropType } from "vue";
2
+ import type { FusionSelectOption } from '../select/FusionSelect';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ id: {
5
+ type: StringConstructor;
6
+ required: true;
7
+ };
8
+ name: {
9
+ type: StringConstructor;
10
+ required: true;
11
+ };
12
+ options: {
13
+ type: PropType<FusionSelectOption[]>;
14
+ required: true;
15
+ };
16
+ label: {
17
+ type: StringConstructor;
18
+ default: string;
19
+ };
20
+ placeholder: {
21
+ type: StringConstructor;
22
+ default: string;
23
+ };
24
+ searchText: {
25
+ type: StringConstructor;
26
+ default: string;
27
+ };
28
+ searchPlaceholder: {
29
+ type: StringConstructor;
30
+ default: string;
31
+ };
32
+ searchLoading: {
33
+ type: BooleanConstructor;
34
+ default: boolean;
35
+ };
36
+ searchErrorTitle: {
37
+ type: StringConstructor;
38
+ default: string;
39
+ };
40
+ searchErrorDescription: {
41
+ type: StringConstructor;
42
+ default: string;
43
+ };
44
+ helperLabel: {
45
+ type: StringConstructor;
46
+ default: string;
47
+ };
48
+ errorLabel: {
49
+ type: StringConstructor;
50
+ default: string;
51
+ };
52
+ modelValue: {
53
+ type: PropType<FusionSelectOption>;
54
+ default: () => {
55
+ label: string;
56
+ value: null;
57
+ };
58
+ };
59
+ required: {
60
+ type: BooleanConstructor;
61
+ default: boolean;
62
+ };
63
+ tabIndex: {
64
+ type: NumberConstructor;
65
+ default: number;
66
+ };
67
+ autocomplete: {
68
+ type: StringConstructor;
69
+ default: string;
70
+ };
71
+ title: {
72
+ type: StringConstructor;
73
+ default: string;
74
+ };
75
+ disabled: {
76
+ type: BooleanConstructor;
77
+ default: boolean;
78
+ };
79
+ readonly: {
80
+ type: BooleanConstructor;
81
+ default: boolean;
82
+ };
83
+ autofocus: {
84
+ type: BooleanConstructor;
85
+ default: boolean;
86
+ };
87
+ ariaLabel: {
88
+ type: StringConstructor;
89
+ default: string;
90
+ };
91
+ dataTest: {
92
+ type: StringConstructor;
93
+ default: string;
94
+ };
95
+ }, unknown, {
96
+ selected: FusionSelectOption;
97
+ searchInputValue: string;
98
+ styleVariables: {};
99
+ interactionStates: {
100
+ opened: boolean;
101
+ focused: boolean;
102
+ };
103
+ }, {
104
+ stateClasses(): {
105
+ disabled: boolean;
106
+ error: boolean;
107
+ opened: boolean;
108
+ };
109
+ }, {
110
+ handleSelect: (option: FusionSelectOption) => void;
111
+ updateInput(value: string): void;
112
+ handleInputClick(): void;
113
+ handleFocus(): void;
114
+ handleBlur(): void;
115
+ handleKeydownEnter(): void;
116
+ closePanel(): void;
117
+ handleKeyDown(event: KeyboardEvent): void;
118
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "keydown:enter" | "select:blur" | "select:focus")[], "update:modelValue" | "keydown:enter" | "select:blur" | "select:focus", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
119
+ id: {
120
+ type: StringConstructor;
121
+ required: true;
122
+ };
123
+ name: {
124
+ type: StringConstructor;
125
+ required: true;
126
+ };
127
+ options: {
128
+ type: PropType<FusionSelectOption[]>;
129
+ required: true;
130
+ };
131
+ label: {
132
+ type: StringConstructor;
133
+ default: string;
134
+ };
135
+ placeholder: {
136
+ type: StringConstructor;
137
+ default: string;
138
+ };
139
+ searchText: {
140
+ type: StringConstructor;
141
+ default: string;
142
+ };
143
+ searchPlaceholder: {
144
+ type: StringConstructor;
145
+ default: string;
146
+ };
147
+ searchLoading: {
148
+ type: BooleanConstructor;
149
+ default: boolean;
150
+ };
151
+ searchErrorTitle: {
152
+ type: StringConstructor;
153
+ default: string;
154
+ };
155
+ searchErrorDescription: {
156
+ type: StringConstructor;
157
+ default: string;
158
+ };
159
+ helperLabel: {
160
+ type: StringConstructor;
161
+ default: string;
162
+ };
163
+ errorLabel: {
164
+ type: StringConstructor;
165
+ default: string;
166
+ };
167
+ modelValue: {
168
+ type: PropType<FusionSelectOption>;
169
+ default: () => {
170
+ label: string;
171
+ value: null;
172
+ };
173
+ };
174
+ required: {
175
+ type: BooleanConstructor;
176
+ default: boolean;
177
+ };
178
+ tabIndex: {
179
+ type: NumberConstructor;
180
+ default: number;
181
+ };
182
+ autocomplete: {
183
+ type: StringConstructor;
184
+ default: string;
185
+ };
186
+ title: {
187
+ type: StringConstructor;
188
+ default: string;
189
+ };
190
+ disabled: {
191
+ type: BooleanConstructor;
192
+ default: boolean;
193
+ };
194
+ readonly: {
195
+ type: BooleanConstructor;
196
+ default: boolean;
197
+ };
198
+ autofocus: {
199
+ type: BooleanConstructor;
200
+ default: boolean;
201
+ };
202
+ ariaLabel: {
203
+ type: StringConstructor;
204
+ default: string;
205
+ };
206
+ dataTest: {
207
+ type: StringConstructor;
208
+ default: string;
209
+ };
210
+ }>> & {
211
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
212
+ "onKeydown:enter"?: ((...args: any[]) => any) | undefined;
213
+ "onSelect:blur"?: ((...args: any[]) => any) | undefined;
214
+ "onSelect:focus"?: ((...args: any[]) => any) | undefined;
215
+ }, {
216
+ label: string;
217
+ title: string;
218
+ dataTest: string;
219
+ disabled: boolean;
220
+ searchText: string;
221
+ modelValue: FusionSelectOption;
222
+ placeholder: string;
223
+ readonly: boolean;
224
+ required: boolean;
225
+ autocomplete: string;
226
+ helperLabel: string;
227
+ errorLabel: string;
228
+ tabIndex: number;
229
+ searchPlaceholder: string;
230
+ searchLoading: boolean;
231
+ searchErrorTitle: string;
232
+ searchErrorDescription: string;
233
+ autofocus: boolean;
234
+ ariaLabel: string;
235
+ }, {}>;
236
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import type { FusionElementStates } from '../../../../types/Global';
2
+
3
+ export interface FusionSelectStates extends FusionElementStates {
4
+ opened: boolean;
5
+ }
6
+
7
+ export interface FusionSelectOption {
8
+ label: string;
9
+ value: any;
10
+ }
@@ -0,0 +1,244 @@
1
+ import { type PropType } from "vue";
2
+ import type { FusionSelectOption } from './FusionSelect';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ id: {
5
+ type: StringConstructor;
6
+ required: true;
7
+ };
8
+ name: {
9
+ type: StringConstructor;
10
+ required: true;
11
+ };
12
+ options: {
13
+ type: PropType<FusionSelectOption[]>;
14
+ required: true;
15
+ };
16
+ label: {
17
+ type: StringConstructor;
18
+ default: string;
19
+ };
20
+ placeholder: {
21
+ type: StringConstructor;
22
+ default: string;
23
+ };
24
+ searchDisabled: {
25
+ type: BooleanConstructor;
26
+ default: boolean;
27
+ };
28
+ searchText: {
29
+ type: StringConstructor;
30
+ default: string;
31
+ };
32
+ searchPlaceholder: {
33
+ type: StringConstructor;
34
+ default: string;
35
+ };
36
+ searchLoading: {
37
+ type: BooleanConstructor;
38
+ default: boolean;
39
+ };
40
+ searchErrorTitle: {
41
+ type: StringConstructor;
42
+ default: string;
43
+ };
44
+ searchErrorDescription: {
45
+ type: StringConstructor;
46
+ default: string;
47
+ };
48
+ helperLabel: {
49
+ type: StringConstructor;
50
+ default: string;
51
+ };
52
+ errorLabel: {
53
+ type: StringConstructor;
54
+ default: string;
55
+ };
56
+ modelValue: {
57
+ type: PropType<FusionSelectOption>;
58
+ default: () => {
59
+ label: string;
60
+ value: null;
61
+ };
62
+ };
63
+ required: {
64
+ type: BooleanConstructor;
65
+ default: boolean;
66
+ };
67
+ tabIndex: {
68
+ type: NumberConstructor;
69
+ default: number;
70
+ };
71
+ autocomplete: {
72
+ type: StringConstructor;
73
+ default: string;
74
+ };
75
+ title: {
76
+ type: StringConstructor;
77
+ default: string;
78
+ };
79
+ disabled: {
80
+ type: BooleanConstructor;
81
+ default: boolean;
82
+ };
83
+ readonly: {
84
+ type: BooleanConstructor;
85
+ default: boolean;
86
+ };
87
+ autofocus: {
88
+ type: BooleanConstructor;
89
+ default: boolean;
90
+ };
91
+ ariaLabel: {
92
+ type: StringConstructor;
93
+ default: string;
94
+ };
95
+ dataTest: {
96
+ type: StringConstructor;
97
+ default: string;
98
+ };
99
+ }, unknown, {
100
+ selected: FusionSelectOption;
101
+ searchInputValue: string;
102
+ styleVariables: {};
103
+ interactionStates: {
104
+ opened: boolean;
105
+ focused: boolean;
106
+ };
107
+ }, {
108
+ stateClasses(): {
109
+ disabled: boolean;
110
+ error: boolean;
111
+ opened: boolean;
112
+ };
113
+ }, {
114
+ handleInputClick: () => void;
115
+ handleSelect: (option: FusionSelectOption) => void;
116
+ updateInput(): void;
117
+ handleFocus(): void;
118
+ handleBlur(): void;
119
+ handleKeydownEnter(): void;
120
+ closePanel(): void;
121
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "keydown:enter" | "select:blur" | "select:focus")[], "update:modelValue" | "keydown:enter" | "select:blur" | "select:focus", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
122
+ id: {
123
+ type: StringConstructor;
124
+ required: true;
125
+ };
126
+ name: {
127
+ type: StringConstructor;
128
+ required: true;
129
+ };
130
+ options: {
131
+ type: PropType<FusionSelectOption[]>;
132
+ required: true;
133
+ };
134
+ label: {
135
+ type: StringConstructor;
136
+ default: string;
137
+ };
138
+ placeholder: {
139
+ type: StringConstructor;
140
+ default: string;
141
+ };
142
+ searchDisabled: {
143
+ type: BooleanConstructor;
144
+ default: boolean;
145
+ };
146
+ searchText: {
147
+ type: StringConstructor;
148
+ default: string;
149
+ };
150
+ searchPlaceholder: {
151
+ type: StringConstructor;
152
+ default: string;
153
+ };
154
+ searchLoading: {
155
+ type: BooleanConstructor;
156
+ default: boolean;
157
+ };
158
+ searchErrorTitle: {
159
+ type: StringConstructor;
160
+ default: string;
161
+ };
162
+ searchErrorDescription: {
163
+ type: StringConstructor;
164
+ default: string;
165
+ };
166
+ helperLabel: {
167
+ type: StringConstructor;
168
+ default: string;
169
+ };
170
+ errorLabel: {
171
+ type: StringConstructor;
172
+ default: string;
173
+ };
174
+ modelValue: {
175
+ type: PropType<FusionSelectOption>;
176
+ default: () => {
177
+ label: string;
178
+ value: null;
179
+ };
180
+ };
181
+ required: {
182
+ type: BooleanConstructor;
183
+ default: boolean;
184
+ };
185
+ tabIndex: {
186
+ type: NumberConstructor;
187
+ default: number;
188
+ };
189
+ autocomplete: {
190
+ type: StringConstructor;
191
+ default: string;
192
+ };
193
+ title: {
194
+ type: StringConstructor;
195
+ default: string;
196
+ };
197
+ disabled: {
198
+ type: BooleanConstructor;
199
+ default: boolean;
200
+ };
201
+ readonly: {
202
+ type: BooleanConstructor;
203
+ default: boolean;
204
+ };
205
+ autofocus: {
206
+ type: BooleanConstructor;
207
+ default: boolean;
208
+ };
209
+ ariaLabel: {
210
+ type: StringConstructor;
211
+ default: string;
212
+ };
213
+ dataTest: {
214
+ type: StringConstructor;
215
+ default: string;
216
+ };
217
+ }>> & {
218
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
219
+ "onKeydown:enter"?: ((...args: any[]) => any) | undefined;
220
+ "onSelect:blur"?: ((...args: any[]) => any) | undefined;
221
+ "onSelect:focus"?: ((...args: any[]) => any) | undefined;
222
+ }, {
223
+ label: string;
224
+ title: string;
225
+ dataTest: string;
226
+ disabled: boolean;
227
+ searchText: string;
228
+ modelValue: FusionSelectOption;
229
+ placeholder: string;
230
+ readonly: boolean;
231
+ required: boolean;
232
+ autocomplete: string;
233
+ helperLabel: string;
234
+ errorLabel: string;
235
+ tabIndex: number;
236
+ searchDisabled: boolean;
237
+ searchPlaceholder: string;
238
+ searchLoading: boolean;
239
+ searchErrorTitle: string;
240
+ searchErrorDescription: string;
241
+ autofocus: boolean;
242
+ ariaLabel: string;
243
+ }, {}>;
244
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import type { FusionElementStates } from '../../../../../types/Global';
2
+
3
+ export interface FusionSelectPanelStates extends FusionElementStates {
4
+ loading: boolean;
5
+ }
@@ -0,0 +1,116 @@
1
+ import type { FusionSelectOption } from '../FusionSelect';
2
+ import type { Themes } from '../../../../../types/Themes';
3
+ import { type PropType } from "vue";
4
+ declare const _default: import("vue").DefineComponent<{
5
+ theme: {
6
+ type: PropType<keyof Themes>;
7
+ default: string;
8
+ };
9
+ selectId: {
10
+ type: StringConstructor;
11
+ required: true;
12
+ };
13
+ options: {
14
+ type: () => FusionSelectOption[];
15
+ default: () => never[];
16
+ };
17
+ searchText: {
18
+ type: StringConstructor;
19
+ default: string;
20
+ };
21
+ searchDisabled: {
22
+ type: BooleanConstructor;
23
+ default: boolean;
24
+ };
25
+ searchPlaceholder: {
26
+ type: StringConstructor;
27
+ default: string;
28
+ };
29
+ searchLoading: {
30
+ type: BooleanConstructor;
31
+ default: boolean;
32
+ };
33
+ searchErrorTitle: {
34
+ type: StringConstructor;
35
+ default: string;
36
+ };
37
+ searchErrorDescription: {
38
+ type: StringConstructor;
39
+ default: string;
40
+ };
41
+ selected: {
42
+ type: PropType<FusionSelectOption>;
43
+ default: () => FusionSelectOption;
44
+ };
45
+ dataTest: {
46
+ type: StringConstructor;
47
+ default: string;
48
+ };
49
+ }, unknown, {
50
+ searchInputValue: string;
51
+ }, {}, {
52
+ closePanel(): void;
53
+ handleSelect(option: FusionSelectOption): void;
54
+ handleKeydownSelect(event: KeyboardEvent, option: FusionSelectOption): void;
55
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("handle:select" | "handle:search" | "handle:close")[], "handle:select" | "handle:search" | "handle:close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
56
+ theme: {
57
+ type: PropType<keyof Themes>;
58
+ default: string;
59
+ };
60
+ selectId: {
61
+ type: StringConstructor;
62
+ required: true;
63
+ };
64
+ options: {
65
+ type: () => FusionSelectOption[];
66
+ default: () => never[];
67
+ };
68
+ searchText: {
69
+ type: StringConstructor;
70
+ default: string;
71
+ };
72
+ searchDisabled: {
73
+ type: BooleanConstructor;
74
+ default: boolean;
75
+ };
76
+ searchPlaceholder: {
77
+ type: StringConstructor;
78
+ default: string;
79
+ };
80
+ searchLoading: {
81
+ type: BooleanConstructor;
82
+ default: boolean;
83
+ };
84
+ searchErrorTitle: {
85
+ type: StringConstructor;
86
+ default: string;
87
+ };
88
+ searchErrorDescription: {
89
+ type: StringConstructor;
90
+ default: string;
91
+ };
92
+ selected: {
93
+ type: PropType<FusionSelectOption>;
94
+ default: () => FusionSelectOption;
95
+ };
96
+ dataTest: {
97
+ type: StringConstructor;
98
+ default: string;
99
+ };
100
+ }>> & {
101
+ "onHandle:select"?: ((...args: any[]) => any) | undefined;
102
+ "onHandle:search"?: ((...args: any[]) => any) | undefined;
103
+ "onHandle:close"?: ((...args: any[]) => any) | undefined;
104
+ }, {
105
+ dataTest: string;
106
+ searchText: string;
107
+ selected: FusionSelectOption;
108
+ options: FusionSelectOption[];
109
+ theme: keyof Themes;
110
+ searchDisabled: boolean;
111
+ searchPlaceholder: string;
112
+ searchLoading: boolean;
113
+ searchErrorTitle: string;
114
+ searchErrorDescription: string;
115
+ }, {}>;
116
+ export default _default;