@adyen/bento-vue2 0.9.3 → 0.10.0

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "framework": "vue",
3
3
  "name": "@adyen/bento-vue2",
4
- "version": "0.9.3",
4
+ "version": "0.10.0",
5
5
  "contributions": {
6
6
  "html": {
7
7
  "description-markup": "markdown",
@@ -180,113 +180,6 @@
180
180
  "symbol": "default"
181
181
  }
182
182
  },
183
- {
184
- "name": "adl-segmented-control",
185
- "description": "",
186
- "attributes": [
187
- {
188
- "name": "disabled",
189
- "description": "Determines whether the entire control is disabled.",
190
- "value": {
191
- "kind": "expression",
192
- "type": "boolean"
193
- },
194
- "default": "false"
195
- },
196
- {
197
- "name": "value",
198
- "description": "The currently selected value.",
199
- "value": {
200
- "kind": "expression",
201
- "type": "null"
202
- },
203
- "default": "undefined"
204
- },
205
- {
206
- "name": "name",
207
- "required": true,
208
- "description": "The name to be used on the radio button input elements internally.",
209
- "value": {
210
- "kind": "expression",
211
- "type": "string"
212
- }
213
- }
214
- ],
215
- "events": [
216
- {
217
- "name": "input"
218
- }
219
- ],
220
- "slots": [
221
- {
222
- "name": "default"
223
- }
224
- ],
225
- "source": {
226
- "module": "./src/components/segmented-control/segmented-control.vue",
227
- "symbol": "default"
228
- }
229
- },
230
- {
231
- "name": "adl-segmented-option",
232
- "description": "",
233
- "attributes": [
234
- {
235
- "name": "disabled",
236
- "description": "Determines whether this option is disabled or not.",
237
- "value": {
238
- "kind": "expression",
239
- "type": "boolean"
240
- },
241
- "default": "false"
242
- },
243
- {
244
- "name": "value",
245
- "required": true,
246
- "description": "The value for this option. This will determine whether this option is currently selected\nbased on if it matches with `value` of SegmentedControl (injected here as `adlSegmentedControlApi.state.selectedValue`).",
247
- "value": {
248
- "kind": "expression",
249
- "type": "null"
250
- }
251
- },
252
- {
253
- "name": "label",
254
- "description": "The label text. Note if this is provided, the icon shall not be rendered.",
255
- "value": {
256
- "kind": "expression",
257
- "type": "string"
258
- },
259
- "default": "''"
260
- },
261
- {
262
- "name": "segmentedControl",
263
- "description": "Injected prop that contains the required segmentedControl interface.\nNOTE: This Prop definition can be removed when the following issue is resolved:\nhttps://github.com/vuejs/vue/issues/8969",
264
- "value": {
265
- "kind": "expression",
266
- "type": "AdlSegmentedControlApi"
267
- },
268
- "default": "null"
269
- },
270
- {
271
- "name": "testId",
272
- "description": "For testing purposes you can decide which testId your adl-segmented-option instance will have",
273
- "value": {
274
- "kind": "expression",
275
- "type": "string"
276
- },
277
- "default": "'adl-segmented-option'"
278
- }
279
- ],
280
- "slots": [
281
- {
282
- "name": "icon"
283
- }
284
- ],
285
- "source": {
286
- "module": "./src/components/segmented-control/components/segmented-option.vue",
287
- "symbol": "default"
288
- }
289
- },
290
183
  {
291
184
  "name": "adl-textarea",
292
185
  "description": "",
@@ -4144,6 +4037,66 @@
4144
4037
  "symbol": "default"
4145
4038
  }
4146
4039
  },
4040
+ {
4041
+ "name": "bento-segmented-control-button",
4042
+ "description": "Internal component to be used within the BentoSegmentedControl component only",
4043
+ "attributes": [
4044
+ {
4045
+ "name": "label",
4046
+ "required": true,
4047
+ "description": "The string the button will showcase",
4048
+ "value": {
4049
+ "kind": "expression",
4050
+ "type": "string"
4051
+ }
4052
+ },
4053
+ {
4054
+ "name": "value",
4055
+ "required": true,
4056
+ "description": "Indicates the value of the input that will be returned when it's selected",
4057
+ "value": {
4058
+ "kind": "expression",
4059
+ "type": "string|number"
4060
+ }
4061
+ },
4062
+ {
4063
+ "name": "v-model",
4064
+ "description": "This property should not be used directly.\nIt will be used by v-model directive on the segmented control component",
4065
+ "value": {
4066
+ "kind": "expression",
4067
+ "type": "string|number"
4068
+ },
4069
+ "default": "null"
4070
+ },
4071
+ {
4072
+ "name": "disabled",
4073
+ "description": "Disable the radio button (optional)",
4074
+ "value": {
4075
+ "kind": "expression",
4076
+ "type": "boolean"
4077
+ },
4078
+ "default": "false"
4079
+ },
4080
+ {
4081
+ "name": "fullWidth",
4082
+ "description": "Renders the button with a 100% width",
4083
+ "value": {
4084
+ "kind": "expression",
4085
+ "type": "boolean"
4086
+ },
4087
+ "default": "false"
4088
+ }
4089
+ ],
4090
+ "events": [
4091
+ {
4092
+ "name": "input"
4093
+ }
4094
+ ],
4095
+ "source": {
4096
+ "module": "./src/components/segmented-control/components/segmented-control-button/segmented-control-button.vue",
4097
+ "symbol": "default"
4098
+ }
4099
+ },
4147
4100
  {
4148
4101
  "name": "bento-select-avatar-filter",
4149
4102
  "description": "The Select Avatar filter displays a listbox of avatar items\npassed in the \"options.listboxItems\" property.",
@@ -4905,9 +4858,6 @@
4905
4858
  {
4906
4859
  "name": "default"
4907
4860
  },
4908
- {
4909
- "name": "subLabel"
4910
- },
4911
4861
  {
4912
4862
  "name": "description"
4913
4863
  }
@@ -6714,9 +6664,6 @@
6714
6664
  {
6715
6665
  "name": "default"
6716
6666
  },
6717
- {
6718
- "name": "subLabel"
6719
- },
6720
6667
  {
6721
6668
  "name": "description"
6722
6669
  }
@@ -6726,14 +6673,6 @@
6726
6673
  "symbol": "default"
6727
6674
  }
6728
6675
  },
6729
- {
6730
- "name": "segmented-control.test",
6731
- "description": "",
6732
- "source": {
6733
- "module": "./src/components/segmented-control/segmented-control.test.vue",
6734
- "symbol": "default"
6735
- }
6736
- },
6737
6676
  {
6738
6677
  "name": "status.test",
6739
6678
  "description": "",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adyen/bento-vue2",
3
- "version": "0.9.3",
3
+ "version": "0.10.0",
4
4
  "description": "Adyen Bento Vue2 components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -50,7 +50,7 @@
50
50
  "url": "git@github.com:Adyen/bento.git"
51
51
  },
52
52
  "dependencies": {
53
- "@adyen/bento-design-tokens": "0.5.3",
53
+ "@adyen/bento-design-tokens": "0.5.4",
54
54
  "@adyen/ui-assets-flag-icons": "1.2.0",
55
55
  "@adyen/ui-assets-icons-16": "3.1.0",
56
56
  "@adyen/ui-assets-payment-method-icons": "5.2.0",
@@ -1,59 +0,0 @@
1
- import { PropType } from 'vue';
2
- import { AdlSegmentedControlApi } from '../segmented-control.types';
3
- declare const _default: import("vue").DefineComponent<{
4
- disabled: {
5
- type: BooleanConstructor;
6
- default: boolean;
7
- };
8
- value: {
9
- type: any;
10
- required: true;
11
- };
12
- label: {
13
- type: StringConstructor;
14
- default: string;
15
- };
16
- segmentedControl: {
17
- type: PropType<AdlSegmentedControlApi>;
18
- default: any;
19
- };
20
- testId: {
21
- type: StringConstructor;
22
- default: string;
23
- };
24
- }, {}, {}, {
25
- isSelected(): boolean;
26
- isDisabled(): boolean;
27
- isChecked(): boolean;
28
- adlSegmentedControlApi(): AdlSegmentedControlApi;
29
- conditionalClasses(): {
30
- [className: string]: boolean;
31
- };
32
- }, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
33
- disabled: {
34
- type: BooleanConstructor;
35
- default: boolean;
36
- };
37
- value: {
38
- type: any;
39
- required: true;
40
- };
41
- label: {
42
- type: StringConstructor;
43
- default: string;
44
- };
45
- segmentedControl: {
46
- type: PropType<AdlSegmentedControlApi>;
47
- default: any;
48
- };
49
- testId: {
50
- type: StringConstructor;
51
- default: string;
52
- };
53
- }>>, {
54
- label: string;
55
- disabled: boolean;
56
- testId: string;
57
- segmentedControl: AdlSegmentedControlApi;
58
- }>;
59
- export default _default;
@@ -1,3 +0,0 @@
1
- export { default as AdlSegmentedOption } from './components/segmented-option.vue';
2
- export { default as AdlSegmentedControl } from './segmented-control.vue';
3
- export * from './segmented-control.types';
@@ -1 +0,0 @@
1
- export declare const SEGMENTED_CONTROL_INJ_KEY: unique symbol;
@@ -1,15 +0,0 @@
1
- export interface AdlSegmentedControlApi {
2
- state: {
3
- name: string;
4
- disabled: boolean;
5
- selectedValue: unknown;
6
- };
7
- changeValue: (newValue: unknown) => void;
8
- }
9
- export declare enum AdlSegmentedControlState {
10
- DISABLED = "disabled"
11
- }
12
- export declare enum AdlSegmentedOptionState {
13
- DISABLED = "disabled",
14
- SELECTED = "selected"
15
- }
@@ -1,42 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{
2
- disabled: {
3
- type: BooleanConstructor;
4
- default: boolean;
5
- };
6
- value: {
7
- type: any;
8
- default: any;
9
- };
10
- name: {
11
- type: StringConstructor;
12
- required: true;
13
- };
14
- }, {}, {
15
- state: {
16
- disabled: boolean;
17
- selectedValue: any;
18
- name: string;
19
- };
20
- ariaLabel: any;
21
- }, {
22
- conditionalClasses(): {
23
- [className: string]: boolean;
24
- };
25
- }, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
26
- disabled: {
27
- type: BooleanConstructor;
28
- default: boolean;
29
- };
30
- value: {
31
- type: any;
32
- default: any;
33
- };
34
- name: {
35
- type: StringConstructor;
36
- required: true;
37
- };
38
- }>>, {
39
- value: any;
40
- disabled: boolean;
41
- }>;
42
- export default _default;