@adyen/bento-vue2 1.25.0 → 1.27.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.
- package/dist/@types/components.d.ts +4 -0
- package/dist/@types/index.d.ts +582 -237
- package/dist/accordion.js +2 -2
- package/dist/action-bar.js +61 -146
- package/dist/action-bar.js.map +1 -1
- package/dist/alert.js +3 -3
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/button.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index18.css +1 -1
- package/dist/assets/index19.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index20.css +1 -1
- package/dist/assets/index21.css +1 -1
- package/dist/assets/index22.css +1 -1
- package/dist/assets/index23.css +1 -1
- package/dist/assets/index24.css +1 -1
- package/dist/assets/index25.css +1 -1
- package/dist/assets/index26.css +1 -1
- package/dist/assets/index27.css +1 -1
- package/dist/assets/index28.css +1 -1
- package/dist/assets/index29.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index30.css +1 -1
- package/dist/assets/index31.css +1 -1
- package/dist/assets/index32.css +1 -1
- package/dist/assets/index33.css +1 -1
- package/dist/assets/index34.css +1 -1
- package/dist/assets/index35.css +1 -1
- package/dist/assets/index36.css +1 -1
- package/dist/assets/index37.css +1 -1
- package/dist/assets/index38.css +1 -1
- package/dist/assets/index39.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/assets/index40.css +1 -1
- package/dist/assets/index41.css +1 -1
- package/dist/assets/index42.css +1 -1
- package/dist/assets/index43.css +1 -1
- package/dist/assets/index44.css +1 -1
- package/dist/assets/index45.css +1 -1
- package/dist/assets/index46.css +1 -1
- package/dist/assets/index47.css +1 -1
- package/dist/assets/index48.css +1 -1
- package/dist/assets/index49.css +1 -0
- package/dist/assets/index5.css +1 -1
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/assets/use-cached-selected-values.css +1 -1
- package/dist/avatar-image.js +1 -1
- package/dist/badge.js +1 -1
- package/dist/button.js +5 -5
- package/dist/card.js +3 -3
- package/dist/checkbox.js +5 -5
- package/dist/chunks/{base-button.773343f6.js → base-button.852204dc.js} +2 -2
- package/dist/chunks/{base-button.773343f6.js.map → base-button.852204dc.js.map} +1 -1
- package/dist/chunks/{base-modal.2d596e6f.js → base-modal.4fb7528b.js} +6 -6
- package/dist/chunks/{base-modal.2d596e6f.js.map → base-modal.4fb7528b.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.d08d2c51.js → button-actions-with-menu.bf968959.js} +4 -4
- package/dist/chunks/{button-actions-with-menu.d08d2c51.js.map → button-actions-with-menu.bf968959.js.map} +1 -1
- package/dist/chunks/{button-actions.a03a672f.js → button-actions.87e589e3.js} +31 -29
- package/dist/chunks/button-actions.87e589e3.js.map +1 -0
- package/dist/chunks/button.cb90b55c.js +101 -0
- package/dist/chunks/button.cb90b55c.js.map +1 -0
- package/dist/chunks/{calendar.7d3e2db0.js → calendar.f02e0a5a.js} +5 -5
- package/dist/chunks/{calendar.7d3e2db0.js.map → calendar.f02e0a5a.js.map} +1 -1
- package/dist/chunks/{checkbox.28578383.js → checkbox.9f9c978a.js} +3 -3
- package/dist/chunks/{checkbox.28578383.js.map → checkbox.9f9c978a.js.map} +1 -1
- package/dist/chunks/{controls-group.faa482b2.js → controls-group.121a307d.js} +3 -3
- package/dist/chunks/{controls-group.faa482b2.js.map → controls-group.121a307d.js.map} +1 -1
- package/dist/chunks/{copy.3c50b447.js → copy.6808b2dc.js} +4 -4
- package/dist/chunks/{copy.3c50b447.js.map → copy.6808b2dc.js.map} +1 -1
- package/dist/chunks/{dialog-page.286ead53.js → dialog-page.7fd7d006.js} +3 -3
- package/dist/chunks/{dialog-page.286ead53.js.map → dialog-page.7fd7d006.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.a1c0c0fb.js → dropdown-default-textbox.d0f17d96.js} +3 -3
- package/dist/chunks/{dropdown-default-textbox.a1c0c0fb.js.map → dropdown-default-textbox.d0f17d96.js.map} +1 -1
- package/dist/chunks/{dropdown.7d4a8dfc.js → dropdown.a8037bca.js} +192 -201
- package/dist/chunks/dropdown.a8037bca.js.map +1 -0
- package/dist/chunks/{error-message.db315e68.js → error-message.bdcc1020.js} +2 -2
- package/dist/chunks/{error-message.db315e68.js.map → error-message.bdcc1020.js.map} +1 -1
- package/dist/chunks/{events.58c00e6d.js → events.f14a214b.js} +5 -5
- package/dist/chunks/events.f14a214b.js.map +1 -0
- package/dist/chunks/{fixed-scroller.3135f86c.js → fixed-scroller.82ef6187.js} +2 -2
- package/dist/chunks/{fixed-scroller.3135f86c.js.map → fixed-scroller.82ef6187.js.map} +1 -1
- package/dist/chunks/{footer-actions.32891b25.js → footer-actions.58d14a16.js} +4 -4
- package/dist/chunks/{footer-actions.32891b25.js.map → footer-actions.58d14a16.js.map} +1 -1
- package/dist/chunks/{index.ec632d95.js → index.0a30d358.js} +6 -6
- package/dist/chunks/{index.ec632d95.js.map → index.0a30d358.js.map} +1 -1
- package/dist/chunks/{index.596c4d0a.js → index.1deef79e.js} +2 -2
- package/dist/chunks/{index.596c4d0a.js.map → index.1deef79e.js.map} +1 -1
- package/dist/chunks/index.3c69be27.js +85 -0
- package/dist/chunks/index.3c69be27.js.map +1 -0
- package/dist/chunks/index.561786f6.js +126 -0
- package/dist/chunks/index.561786f6.js.map +1 -0
- package/dist/chunks/{index.9e40ffeb.js → index.614a5138.js} +2 -2
- package/dist/chunks/{index.9e40ffeb.js.map → index.614a5138.js.map} +1 -1
- package/dist/chunks/{index.4b6211c7.js → index.854d6498.js} +27 -27
- package/dist/chunks/{index.4b6211c7.js.map → index.854d6498.js.map} +1 -1
- package/dist/chunks/{index.30948302.js → index.a48e7f99.js} +5 -5
- package/dist/chunks/{index.30948302.js.map → index.a48e7f99.js.map} +1 -1
- package/dist/chunks/{index.444d221f.js → index.bd1d28d0.js} +3 -3
- package/dist/chunks/{index.444d221f.js.map → index.bd1d28d0.js.map} +1 -1
- package/dist/chunks/{index.94acf214.js → index.c8621e8e.js} +3 -3
- package/dist/chunks/{index.94acf214.js.map → index.c8621e8e.js.map} +1 -1
- package/dist/chunks/{index.9536a077.js → index.ccc7e8d7.js} +3 -3
- package/dist/chunks/{index.9536a077.js.map → index.ccc7e8d7.js.map} +1 -1
- package/dist/chunks/{index.d97166c6.js → index.e29a6907.js} +3 -3
- package/dist/chunks/index.e29a6907.js.map +1 -0
- package/dist/chunks/{keyboard-navigation.ca47dfa8.js → keyboard-navigation.bbc3d15c.js} +2 -2
- package/dist/chunks/{keyboard-navigation.ca47dfa8.js.map → keyboard-navigation.bbc3d15c.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.95a65534.js → listbox-option-tag.8708be60.js} +3 -3
- package/dist/chunks/{listbox-option-tag.95a65534.js.map → listbox-option-tag.8708be60.js.map} +1 -1
- package/dist/chunks/{loading-button.e8060c04.js → loading-button.692dbdc8.js} +2 -2
- package/dist/chunks/{loading-button.e8060c04.js.map → loading-button.692dbdc8.js.map} +1 -1
- package/dist/chunks/{payment-method.564ed43a.js → payment-method.c55dd352.js} +2 -2
- package/dist/chunks/{payment-method.564ed43a.js.map → payment-method.c55dd352.js.map} +1 -1
- package/dist/chunks/{tooltip.e5deb137.js → tooltip.efddb5f3.js} +4 -4
- package/dist/chunks/{tooltip.e5deb137.js.map → tooltip.efddb5f3.js.map} +1 -1
- package/dist/chunks/{use-bento-toast-controller.8414d283.js → use-bento-toast-controller.5dac1f3c.js} +2 -2
- package/dist/chunks/{use-bento-toast-controller.8414d283.js.map → use-bento-toast-controller.5dac1f3c.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.3772a679.js → use-cached-selected-values.98a9ed01.js} +225 -206
- package/dist/chunks/use-cached-selected-values.98a9ed01.js.map +1 -0
- package/dist/code-snippet.js +131 -129
- package/dist/code-snippet.js.map +1 -1
- package/dist/country.js +2 -2
- package/dist/currency.js +1 -1
- package/dist/dashboard-template.js +109 -0
- package/dist/dashboard-template.js.map +1 -0
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +903 -866
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +19 -19
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/dropdown.js +7 -7
- package/dist/empty-state.js +3 -3
- package/dist/filter-bar.js +76 -74
- package/dist/filter-bar.js.map +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +15 -14
- package/dist/form-layout.js.map +1 -1
- package/dist/header.js +4 -4
- package/dist/index.js +81 -78
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +3 -3
- package/dist/input-field.js +4 -4
- package/dist/internal.js +8 -8
- package/dist/link.js +1 -1
- package/dist/loading-indicator.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +6 -6
- package/dist/modal.js +6 -6
- package/dist/pagination.js +4 -4
- package/dist/payment-method.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/popper-container.js +1 -1
- package/dist/radio-group.js +4 -4
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +2 -2
- package/dist/segmented-control.js +40 -41
- package/dist/segmented-control.js.map +1 -1
- package/dist/selection-card.js +4 -4
- package/dist/sidepanel.js +6 -6
- package/dist/status.js +2 -2
- package/dist/stepper.js +4 -4
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +3 -3
- package/dist/tabs.js +72 -71
- package/dist/tabs.js.map +1 -1
- package/dist/tag.js +3 -3
- package/dist/textarea.js +4 -4
- package/dist/timeline.js +7 -7
- package/dist/toast.js +4 -4
- package/dist/toggle.js +2 -2
- package/dist/tutorial.js +123 -87
- package/dist/tutorial.js.map +1 -1
- package/dist/typography.js +1 -1
- package/dist/web-types.json +174 -77
- package/package.json +9 -6
- package/dist/chunks/button-actions.a03a672f.js.map +0 -1
- package/dist/chunks/button.e5f5638f.js +0 -100
- package/dist/chunks/button.e5f5638f.js.map +0 -1
- package/dist/chunks/checkmark.a6ed8f47.js +0 -26
- package/dist/chunks/checkmark.a6ed8f47.js.map +0 -1
- package/dist/chunks/dropdown.7d4a8dfc.js.map +0 -1
- package/dist/chunks/events.58c00e6d.js.map +0 -1
- package/dist/chunks/index.81e509f3.js +0 -147
- package/dist/chunks/index.81e509f3.js.map +0 -1
- package/dist/chunks/index.d97166c6.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.3772a679.js.map +0 -1
package/dist/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"framework": "vue",
|
|
3
3
|
"name": "@adyen/bento-vue2",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.27.0",
|
|
5
5
|
"contributions": {
|
|
6
6
|
"html": {
|
|
7
7
|
"description-markup": "markdown",
|
|
@@ -3037,10 +3037,10 @@
|
|
|
3037
3037
|
"attributes": [
|
|
3038
3038
|
{
|
|
3039
3039
|
"name": "options",
|
|
3040
|
-
"description": "List of options that are needed to setup the country filter\nAvailable options:\n - multiple: If \"true\", the user will be able to select multiple items.\n - listboxItems: The option elements to populate the filter with {@see
|
|
3040
|
+
"description": "List of options that are needed to setup the country filter\nAvailable options:\n - multiple: If \"true\", the user will be able to select multiple items.\n - listboxItems: The option elements to populate the filter with {@see BentoSelectCountryFilterOptions}\n - variant: Which label variant to display for the option item.",
|
|
3041
3041
|
"value": {
|
|
3042
3042
|
"kind": "expression",
|
|
3043
|
-
"type": "
|
|
3043
|
+
"type": "BentoSelectCountryFilterOptions"
|
|
3044
3044
|
},
|
|
3045
3045
|
"default": "undefined"
|
|
3046
3046
|
}
|
|
@@ -3051,7 +3051,7 @@
|
|
|
3051
3051
|
}
|
|
3052
3052
|
],
|
|
3053
3053
|
"source": {
|
|
3054
|
-
"module": "./src/components/filter-bar/components/select-filter/variants/select-
|
|
3054
|
+
"module": "./src/components/filter-bar/components/select-filter/variants/select-country-filter/select-country-filter.vue",
|
|
3055
3055
|
"symbol": "default"
|
|
3056
3056
|
}
|
|
3057
3057
|
},
|
|
@@ -3061,10 +3061,10 @@
|
|
|
3061
3061
|
"attributes": [
|
|
3062
3062
|
{
|
|
3063
3063
|
"name": "options",
|
|
3064
|
-
"description": "List of options that are needed to setup the country filter\nAvailable options:\n - multiple: If \"true\", the user will be able to select multiple items.\n - listboxItems: The option elements to populate the filter with {@see
|
|
3064
|
+
"description": "List of options that are needed to setup the country filter\nAvailable options:\n - multiple: If \"true\", the user will be able to select multiple items.\n - listboxItems: The option elements to populate the filter with {@see BentoSelectCurrencyFilterOptions}",
|
|
3065
3065
|
"value": {
|
|
3066
3066
|
"kind": "expression",
|
|
3067
|
-
"type": "
|
|
3067
|
+
"type": "BentoSelectCurrencyFilterOptions"
|
|
3068
3068
|
},
|
|
3069
3069
|
"default": "undefined"
|
|
3070
3070
|
}
|
|
@@ -3075,7 +3075,7 @@
|
|
|
3075
3075
|
}
|
|
3076
3076
|
],
|
|
3077
3077
|
"source": {
|
|
3078
|
-
"module": "./src/components/filter-bar/components/select-filter/variants/select-
|
|
3078
|
+
"module": "./src/components/filter-bar/components/select-filter/variants/select-currency-filter/select-currency-filter.vue",
|
|
3079
3079
|
"symbol": "default"
|
|
3080
3080
|
}
|
|
3081
3081
|
},
|
|
@@ -3150,66 +3150,6 @@
|
|
|
3150
3150
|
"symbol": "default"
|
|
3151
3151
|
}
|
|
3152
3152
|
},
|
|
3153
|
-
{
|
|
3154
|
-
"name": "bento-structured-list-item",
|
|
3155
|
-
"description": "This is an item of the `BentoStructuredList` meant to be used only with that component.\nIt consists of a label/value pair, and also the optional copy and search modifiers.",
|
|
3156
|
-
"attributes": [
|
|
3157
|
-
{
|
|
3158
|
-
"name": "label",
|
|
3159
|
-
"required": true,
|
|
3160
|
-
"description": "Label to display for the value",
|
|
3161
|
-
"value": {
|
|
3162
|
-
"kind": "expression",
|
|
3163
|
-
"type": "string"
|
|
3164
|
-
}
|
|
3165
|
-
},
|
|
3166
|
-
{
|
|
3167
|
-
"name": "labelInfo",
|
|
3168
|
-
"description": "Text to display in info icon tooltip in the label to display for the value",
|
|
3169
|
-
"value": {
|
|
3170
|
-
"kind": "expression",
|
|
3171
|
-
"type": "string"
|
|
3172
|
-
},
|
|
3173
|
-
"default": "undefined"
|
|
3174
|
-
},
|
|
3175
|
-
{
|
|
3176
|
-
"name": "copy",
|
|
3177
|
-
"description": "Text to copy when the user clicks `Copy` icon",
|
|
3178
|
-
"value": {
|
|
3179
|
-
"kind": "expression",
|
|
3180
|
-
"type": "string"
|
|
3181
|
-
},
|
|
3182
|
-
"default": "undefined"
|
|
3183
|
-
},
|
|
3184
|
-
{
|
|
3185
|
-
"name": "search",
|
|
3186
|
-
"description": "Function to trigger when user clicks `Search` icon",
|
|
3187
|
-
"value": {
|
|
3188
|
-
"kind": "expression",
|
|
3189
|
-
"type": "(event: Event) => void"
|
|
3190
|
-
},
|
|
3191
|
-
"default": "undefined"
|
|
3192
|
-
},
|
|
3193
|
-
{
|
|
3194
|
-
"name": "searchTooltip",
|
|
3195
|
-
"description": "Text to display when the user hovers over `Search` icon",
|
|
3196
|
-
"value": {
|
|
3197
|
-
"kind": "expression",
|
|
3198
|
-
"type": "string"
|
|
3199
|
-
},
|
|
3200
|
-
"default": "undefined"
|
|
3201
|
-
}
|
|
3202
|
-
],
|
|
3203
|
-
"slots": [
|
|
3204
|
-
{
|
|
3205
|
-
"name": "default"
|
|
3206
|
-
}
|
|
3207
|
-
],
|
|
3208
|
-
"source": {
|
|
3209
|
-
"module": "./src/components/structured-list/components/structered-list-item/structured-list-item.vue",
|
|
3210
|
-
"symbol": "default"
|
|
3211
|
-
}
|
|
3212
|
-
},
|
|
3213
3153
|
{
|
|
3214
3154
|
"name": "bento-summary-grid",
|
|
3215
3155
|
"description": "A summary grid component that displays a collection items.",
|
|
@@ -4086,6 +4026,16 @@
|
|
|
4086
4026
|
{
|
|
4087
4027
|
"name": "button-actions-icons-stub",
|
|
4088
4028
|
"description": "",
|
|
4029
|
+
"attributes": [
|
|
4030
|
+
{
|
|
4031
|
+
"name": "iconOnly",
|
|
4032
|
+
"value": {
|
|
4033
|
+
"kind": "expression",
|
|
4034
|
+
"type": "boolean"
|
|
4035
|
+
},
|
|
4036
|
+
"default": "false"
|
|
4037
|
+
}
|
|
4038
|
+
],
|
|
4089
4039
|
"source": {
|
|
4090
4040
|
"module": "./src/components/button/components/button-actions/__tests__/button-actions-icons-stub.vue",
|
|
4091
4041
|
"symbol": "default"
|
|
@@ -4137,6 +4087,14 @@
|
|
|
4137
4087
|
"symbol": "default"
|
|
4138
4088
|
}
|
|
4139
4089
|
},
|
|
4090
|
+
{
|
|
4091
|
+
"name": "button-stub",
|
|
4092
|
+
"description": "",
|
|
4093
|
+
"source": {
|
|
4094
|
+
"module": "./src/components/button/__tests__/button-stub.vue",
|
|
4095
|
+
"symbol": "default"
|
|
4096
|
+
}
|
|
4097
|
+
},
|
|
4140
4098
|
{
|
|
4141
4099
|
"name": "calendar",
|
|
4142
4100
|
"description": "Handles the calendar logic to change visible months for Single calendar\nand Range calendar, as well as the selection logic for range.\nAll the processing necessary for the calendar to select dates",
|
|
@@ -5169,6 +5127,15 @@
|
|
|
5169
5127
|
},
|
|
5170
5128
|
"default": "() => []"
|
|
5171
5129
|
},
|
|
5130
|
+
{
|
|
5131
|
+
"name": "noSpacingTop",
|
|
5132
|
+
"description": "Renders the data grid with no top spacing, to render inside containers that already have spacing",
|
|
5133
|
+
"value": {
|
|
5134
|
+
"kind": "expression",
|
|
5135
|
+
"type": "boolean"
|
|
5136
|
+
},
|
|
5137
|
+
"default": "false"
|
|
5138
|
+
},
|
|
5172
5139
|
{
|
|
5173
5140
|
"name": "sortBy",
|
|
5174
5141
|
"description": "Sortby handles proper rendering of sort icon in header. Sorting currently is only supported server side.\nIt does make sure the currently sorted column has a more visible sort icon, and the sort icon points in the right direction.",
|
|
@@ -5510,7 +5477,7 @@
|
|
|
5510
5477
|
}
|
|
5511
5478
|
},
|
|
5512
5479
|
{
|
|
5513
|
-
"name": "
|
|
5480
|
+
"name": "isMeasuringColumnWidths",
|
|
5514
5481
|
"description": "Toggled to true when the DataGrid has auto width columns and is measuring the",
|
|
5515
5482
|
"value": {
|
|
5516
5483
|
"kind": "expression",
|
|
@@ -6631,15 +6598,6 @@
|
|
|
6631
6598
|
"type": "string"
|
|
6632
6599
|
}
|
|
6633
6600
|
},
|
|
6634
|
-
{
|
|
6635
|
-
"name": "inputSize",
|
|
6636
|
-
"description": "Dropdown input size",
|
|
6637
|
-
"value": {
|
|
6638
|
-
"kind": "expression",
|
|
6639
|
-
"type": "BentoDropdownSize | `${BentoDropdownSize}`"
|
|
6640
|
-
},
|
|
6641
|
-
"default": "BentoDropdownSize.DEFAULT"
|
|
6642
|
-
},
|
|
6643
6601
|
{
|
|
6644
6602
|
"name": "isOptionDisabled",
|
|
6645
6603
|
"description": "Function that allows the options to be disabled",
|
|
@@ -10614,6 +10572,17 @@
|
|
|
10614
10572
|
{
|
|
10615
10573
|
"name": "selection-card-group-stub",
|
|
10616
10574
|
"description": "",
|
|
10575
|
+
"attributes": [
|
|
10576
|
+
{
|
|
10577
|
+
"name": "layout",
|
|
10578
|
+
"required": false,
|
|
10579
|
+
"value": {
|
|
10580
|
+
"kind": "expression",
|
|
10581
|
+
"type": "TSIndexedAccessType"
|
|
10582
|
+
},
|
|
10583
|
+
"default": "'vertical'"
|
|
10584
|
+
}
|
|
10585
|
+
],
|
|
10617
10586
|
"source": {
|
|
10618
10587
|
"module": "./src/components/selection-card/components/selection-card-group/__tests__/selection-card-group-stub.vue",
|
|
10619
10588
|
"symbol": "default"
|
|
@@ -10842,6 +10811,7 @@
|
|
|
10842
10811
|
"attributes": [
|
|
10843
10812
|
{
|
|
10844
10813
|
"name": "labelsWidth",
|
|
10814
|
+
"required": false,
|
|
10845
10815
|
"description": "Width of the labels container, in pixels. Overrides layout prop.",
|
|
10846
10816
|
"value": {
|
|
10847
10817
|
"kind": "expression",
|
|
@@ -10851,6 +10821,7 @@
|
|
|
10851
10821
|
},
|
|
10852
10822
|
{
|
|
10853
10823
|
"name": "layout",
|
|
10824
|
+
"required": false,
|
|
10854
10825
|
"description": "The layout of the label value pair in percentage.\nIf labelsWidth is set, layout will be overriden by the static pixel value.\n\nIf the value entered is not listed in the example\nlist below '33-66' will be applied",
|
|
10855
10826
|
"value": {
|
|
10856
10827
|
"kind": "expression",
|
|
@@ -10869,6 +10840,75 @@
|
|
|
10869
10840
|
"symbol": "default"
|
|
10870
10841
|
}
|
|
10871
10842
|
},
|
|
10843
|
+
{
|
|
10844
|
+
"name": "structured-list-item",
|
|
10845
|
+
"description": "",
|
|
10846
|
+
"attributes": [
|
|
10847
|
+
{
|
|
10848
|
+
"name": "label",
|
|
10849
|
+
"required": true,
|
|
10850
|
+
"description": "Label to display for the value",
|
|
10851
|
+
"value": {
|
|
10852
|
+
"kind": "expression",
|
|
10853
|
+
"type": "string"
|
|
10854
|
+
}
|
|
10855
|
+
},
|
|
10856
|
+
{
|
|
10857
|
+
"name": "labelInfo",
|
|
10858
|
+
"required": false,
|
|
10859
|
+
"description": "Text to display in info icon tooltip in the label to display for the value",
|
|
10860
|
+
"value": {
|
|
10861
|
+
"kind": "expression",
|
|
10862
|
+
"type": "string"
|
|
10863
|
+
}
|
|
10864
|
+
},
|
|
10865
|
+
{
|
|
10866
|
+
"name": "copy",
|
|
10867
|
+
"required": false,
|
|
10868
|
+
"description": "Text to copy when the user clicks `Copy` icon",
|
|
10869
|
+
"value": {
|
|
10870
|
+
"kind": "expression",
|
|
10871
|
+
"type": "string"
|
|
10872
|
+
}
|
|
10873
|
+
},
|
|
10874
|
+
{
|
|
10875
|
+
"name": "search",
|
|
10876
|
+
"required": false,
|
|
10877
|
+
"description": "Function to trigger when user clicks `Search` icon",
|
|
10878
|
+
"value": {
|
|
10879
|
+
"kind": "expression",
|
|
10880
|
+
"type": "TSFunctionType"
|
|
10881
|
+
}
|
|
10882
|
+
},
|
|
10883
|
+
{
|
|
10884
|
+
"name": "searchTooltip",
|
|
10885
|
+
"required": false,
|
|
10886
|
+
"description": "Text to display when the user hovers over `Search` icon",
|
|
10887
|
+
"value": {
|
|
10888
|
+
"kind": "expression",
|
|
10889
|
+
"type": "string"
|
|
10890
|
+
}
|
|
10891
|
+
},
|
|
10892
|
+
{
|
|
10893
|
+
"name": "truncate",
|
|
10894
|
+
"required": false,
|
|
10895
|
+
"description": "Truncates the value of the item",
|
|
10896
|
+
"value": {
|
|
10897
|
+
"kind": "expression",
|
|
10898
|
+
"type": "boolean"
|
|
10899
|
+
}
|
|
10900
|
+
}
|
|
10901
|
+
],
|
|
10902
|
+
"slots": [
|
|
10903
|
+
{
|
|
10904
|
+
"name": "default"
|
|
10905
|
+
}
|
|
10906
|
+
],
|
|
10907
|
+
"source": {
|
|
10908
|
+
"module": "./src/components/structured-list/components/structered-list-item/structured-list-item.vue",
|
|
10909
|
+
"symbol": "default"
|
|
10910
|
+
}
|
|
10911
|
+
},
|
|
10872
10912
|
{
|
|
10873
10913
|
"name": "structured-list-mock",
|
|
10874
10914
|
"description": "",
|
|
@@ -11537,6 +11577,15 @@
|
|
|
11537
11577
|
"name": "tutorial",
|
|
11538
11578
|
"description": "",
|
|
11539
11579
|
"attributes": [
|
|
11580
|
+
{
|
|
11581
|
+
"name": "index",
|
|
11582
|
+
"description": "The current step index. If provided, will start the tutorial in that step.",
|
|
11583
|
+
"value": {
|
|
11584
|
+
"kind": "expression",
|
|
11585
|
+
"type": "number"
|
|
11586
|
+
},
|
|
11587
|
+
"default": "null"
|
|
11588
|
+
},
|
|
11540
11589
|
{
|
|
11541
11590
|
"name": "steps",
|
|
11542
11591
|
"required": true,
|
|
@@ -11545,6 +11594,21 @@
|
|
|
11545
11594
|
"kind": "expression",
|
|
11546
11595
|
"type": "BentoTutorialStep[]"
|
|
11547
11596
|
}
|
|
11597
|
+
},
|
|
11598
|
+
{
|
|
11599
|
+
"name": "scrollOptions",
|
|
11600
|
+
"description": "Options to control the scroll into view behavior.\nTakes the same options as the `scrollIntoView` function",
|
|
11601
|
+
"value": {
|
|
11602
|
+
"kind": "expression",
|
|
11603
|
+
"type": "BentoTutorialScrollOptions"
|
|
11604
|
+
},
|
|
11605
|
+
"default": "null"
|
|
11606
|
+
}
|
|
11607
|
+
],
|
|
11608
|
+
"events": [
|
|
11609
|
+
{
|
|
11610
|
+
"name": "update:index",
|
|
11611
|
+
"description": "Fired every time the step index is changed. `-1` value means the tutorial is finished/skipped."
|
|
11548
11612
|
}
|
|
11549
11613
|
],
|
|
11550
11614
|
"source": {
|
|
@@ -11619,6 +11683,15 @@
|
|
|
11619
11683
|
},
|
|
11620
11684
|
"default": "BentoPopoverPositions.BOTTOM_START"
|
|
11621
11685
|
},
|
|
11686
|
+
{
|
|
11687
|
+
"name": "scrollOptions",
|
|
11688
|
+
"description": "Options to control the scroll into view behavior.\nTakes the same options as the `scrollIntoView` function",
|
|
11689
|
+
"value": {
|
|
11690
|
+
"kind": "expression",
|
|
11691
|
+
"type": "BentoTutorialScrollOptions"
|
|
11692
|
+
},
|
|
11693
|
+
"default": "null"
|
|
11694
|
+
},
|
|
11622
11695
|
{
|
|
11623
11696
|
"name": "single",
|
|
11624
11697
|
"description": "Indicates whether this popover is a single tutorial or a tour.",
|
|
@@ -11756,6 +11829,14 @@
|
|
|
11756
11829
|
"type": "boolean"
|
|
11757
11830
|
},
|
|
11758
11831
|
"default": "false"
|
|
11832
|
+
},
|
|
11833
|
+
{
|
|
11834
|
+
"name": "scrollOptions",
|
|
11835
|
+
"value": {
|
|
11836
|
+
"kind": "expression",
|
|
11837
|
+
"type": "BentoTutorialScrollOptions"
|
|
11838
|
+
},
|
|
11839
|
+
"default": "null"
|
|
11759
11840
|
}
|
|
11760
11841
|
],
|
|
11761
11842
|
"events": [
|
|
@@ -11783,6 +11864,14 @@
|
|
|
11783
11864
|
"name": "tutorial-stub",
|
|
11784
11865
|
"description": "",
|
|
11785
11866
|
"attributes": [
|
|
11867
|
+
{
|
|
11868
|
+
"name": "index",
|
|
11869
|
+
"value": {
|
|
11870
|
+
"kind": "expression",
|
|
11871
|
+
"type": "number"
|
|
11872
|
+
},
|
|
11873
|
+
"default": "null"
|
|
11874
|
+
},
|
|
11786
11875
|
{
|
|
11787
11876
|
"name": "steps",
|
|
11788
11877
|
"required": true,
|
|
@@ -11790,6 +11879,14 @@
|
|
|
11790
11879
|
"kind": "expression",
|
|
11791
11880
|
"type": "Array<Omit<BentoTutorialStep, 'target'>>"
|
|
11792
11881
|
}
|
|
11882
|
+
},
|
|
11883
|
+
{
|
|
11884
|
+
"name": "scrollOptions",
|
|
11885
|
+
"value": {
|
|
11886
|
+
"kind": "expression",
|
|
11887
|
+
"type": "BentoTutorialScrollOptions"
|
|
11888
|
+
},
|
|
11889
|
+
"default": "null"
|
|
11793
11890
|
}
|
|
11794
11891
|
],
|
|
11795
11892
|
"source": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adyen/bento-vue2",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.27.0",
|
|
4
4
|
"description": "Adyen Bento Vue2 components",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"lint:eslint": "eslint -c ./.eslintrc.js src test --exit-on-fatal-error",
|
|
44
44
|
"lint:fix": "npm run lint:eslint -- --fix && npm run lint:style -- --fix",
|
|
45
45
|
"lint:style": "stylelint --allow-empty-input --config ../../.stylelintrc.js '**/*.scss'",
|
|
46
|
-
"test": "TZ='Europe/Paris' vitest run",
|
|
46
|
+
"test": "TZ='Europe/Paris' vitest run --config ./vitest.config.ts",
|
|
47
47
|
"test:coverage": "npm run test -- --coverage",
|
|
48
48
|
"test:watch": "TZ='Europe/Paris' vitest watch",
|
|
49
49
|
"e2e": "test/bin/e2e-docker.sh vue2",
|
|
@@ -62,10 +62,15 @@
|
|
|
62
62
|
"url": "git@github.com:Adyen/bento.git"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@adyen/bento-design-tokens": "1.
|
|
65
|
+
"@adyen/bento-design-tokens": "1.27.0",
|
|
66
66
|
"@adyen/ui-assets-icons-16": "4.1.0",
|
|
67
67
|
"@adyen/ui-assets-payment-method-icons": "6.1.0",
|
|
68
68
|
"@codemirror/commands": "6.3.3",
|
|
69
|
+
"@codemirror/lang-java": "6.0.1",
|
|
70
|
+
"@codemirror/lang-javascript": "6.2.2",
|
|
71
|
+
"@codemirror/lang-json": "6.0.1",
|
|
72
|
+
"@codemirror/lang-python": "6.1.6",
|
|
73
|
+
"@codemirror/lang-xml": "6.1.0",
|
|
69
74
|
"@codemirror/language-data": "6.4.0",
|
|
70
75
|
"@codemirror/state": "6.4.0",
|
|
71
76
|
"@codemirror/view": "6.23.0",
|
|
@@ -89,7 +94,7 @@
|
|
|
89
94
|
"react": "16.14.0"
|
|
90
95
|
},
|
|
91
96
|
"devDependencies": {
|
|
92
|
-
"@adyen/bento-cli": "0.0
|
|
97
|
+
"@adyen/bento-cli": "0.1.0",
|
|
93
98
|
"@adyen/lume": "1.11.1",
|
|
94
99
|
"@storybook/addon-a11y": "7.6.17",
|
|
95
100
|
"@storybook/addon-essentials": "7.6.17",
|
|
@@ -104,8 +109,6 @@
|
|
|
104
109
|
"axe-core": "4.4.2",
|
|
105
110
|
"clean-webpack-plugin": "3.0.0",
|
|
106
111
|
"css-loader": "5.2.7",
|
|
107
|
-
"eslint-import-resolver-typescript": "2.7.0",
|
|
108
|
-
"eslint-import-resolver-webpack": "0.13.2",
|
|
109
112
|
"fork-ts-checker-webpack-plugin": "6.5.2",
|
|
110
113
|
"html-webpack-plugin": "4.5.2",
|
|
111
114
|
"sass": "1.54.6",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button-actions.a03a672f.js","sources":["../../src/components/button/components/button-actions/button-actions.types.ts","../../src/components/button/components/button-actions/button-actions.vue"],"sourcesContent":["import type { VueNodeElement } from '@/types';\nimport type { BentoButtonProps, BentoLoadingButtonState } from '@/components/button';\n\nexport interface BentoButtonActionObject extends BentoButtonProps {\n title: string;\n event?: (event: Event) => void;\n icon?: VueNodeElement;\n iconLeft?: VueNodeElement;\n iconRight?: VueNodeElement;\n state?: BentoLoadingButtonState | `${BentoLoadingButtonState}`;\n}\n\nexport type BentoButtonActionsList = Array<BentoButtonActionObject>;\n\nexport enum BentoButtonActionsLayoutBasic {\n BUTTONS_END = 'buttons-end',\n FILL_CONTAINER = 'fill-container',\n SPACE_BETWEEN = 'space-between',\n VERTICAL_STACK = 'vertical-stack',\n}\nexport enum BentoButtonActionsLayoutExtended {\n BUTTONS_START = 'buttons-start',\n}\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport const BentoButtonActionsLayout = { ...BentoButtonActionsLayoutBasic, ...BentoButtonActionsLayoutExtended };\nexport type BentoButtonActionsLayout = BentoButtonActionsLayoutBasic | BentoButtonActionsLayoutExtended;\n","<template>\n <div class=\"b-button-actions\">\n <div class=\"b-button-actions__container-wrapper\" :class=\"conditionalClasses\" role=\"group\">\n <div v-for=\"(button, index) in reversedActionsList\" :key=\"index\" class=\"b-button-actions__button-wrapper\">\n <bento-loading-button\n v-if=\"button.state\"\n :condensed=\"button.condensed\"\n :critical=\"button.critical\"\n :disabled=\"button.disabled\"\n :inverse=\"inverse\"\n :state=\"button.state\"\n :variant=\"button.variant || generateButtonVariantByIndex(index)\"\n v-on=\"generateButtonEvents(button)\"\n >\n {{ button.title }}\n </bento-loading-button>\n <bento-button\n v-else\n :condensed=\"button.condensed\"\n :critical=\"button.critical\"\n :disabled=\"button.disabled\"\n :inverse=\"inverse\"\n :link=\"button.link\"\n :variant=\"button.variant || generateButtonVariantByIndex(index)\"\n v-on=\"generateButtonEvents(button)\"\n >\n <template v-if=\"button.icon || button.iconLeft\" #iconLeft>\n <component :is=\"button.icon || button.iconLeft\" :svg-title=\"button.title\"></component>\n </template>\n {{ button.title }}\n <template v-if=\"button.iconRight\" #iconRight>\n <component :is=\"button.iconRight\" :svg-title=\"button.title\"></component>\n </template>\n </bento-button>\n </div>\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, PropType } from 'vue';\n import BentoButton from '../../button.vue';\n import { BentoButtonActionObject, BentoButtonActionsLayout, BentoButtonActionsList } from './button-actions.types';\n import { BentoLoadingButton } from '../loading-button';\n\n const props = defineProps({\n /**\n * List of actions that will be used to render the buttons.\n * First element in the list will be rendered as \"primary\".\n * All elements after the first will be rendered as \"secondary\".\n *\n * Each object in the list should have a `title`, an `event` and\n * (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.\n *\n * `title`: Button's text.\n *\n * `event`: Event triggered when clicking the Button.\n *\n * `icon` (optional): Vue Icon from the library `@adyen/ui-assets-icons-16`.\n *\n * @see BentoButton for a list of all the other props supported by each button action.\n *\n * ```\n * [{\n * title: 'Primary',\n * event: () => { ... },\n * icon: FourPeopleIcon,\n * link: {\n * variant: 'default',\n * external: true,\n * to: 'https://www.adyen.com/'\n * },\n * }, {\n * title: 'Secondary',\n * event: () => { ... }\n * disabled: true,\n * variant: 'secondary',\n * critical: true\n * }]\n * ```\n */\n actions: {\n type: Array as PropType<BentoButtonActionsList>,\n required: true,\n },\n\n /**\n * Sets the Button Actions to color scheme inverse\n */\n inverse: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Defines the layout in which the button actions is presented.\n * It can be one of:\n *\n * @values BUTTONS_START\n * @values BUTTONS_END\n * @values FILL_CONTAINER\n * @values SPACE_BETWEEN\n * @values VERTICAL_STACK\n */\n layout: {\n type: String as PropType<BentoButtonActionsLayout | `${BentoButtonActionsLayout}`>,\n default: BentoButtonActionsLayout.BUTTONS_END,\n validator: (layout: BentoButtonActionsLayout) => Object.values(BentoButtonActionsLayout).includes(layout),\n },\n });\n\n const reversedActionsList = computed(() => props.actions.slice().reverse());\n const generateButtonVariantByIndex = actionIndex => {\n const lastActionIndex = props.actions.length - 1;\n return actionIndex === lastActionIndex ? 'primary' : 'secondary';\n };\n\n const conditionalClasses = computed(() => ({\n [`b-button-actions--${props.layout}`]: true,\n }));\n\n const generateButtonEvents = (button: BentoButtonActionObject) =>\n button?.event !== undefined\n ? {\n click: button.event,\n }\n : {};\n</script>\n\n<script lang=\"ts\">\n /**\n * ButtonActions component component manages a set of actions a user can choose from by displaying a group of buttons.\n *\n * @example\n * import { BentoButtonActions } from '@adyen/bento-vue2';\n * import MachineLearningIcon from '@adyen/ui-assets-icons-16/vue/machine-learning';\n *\n * const clickedAction = () => { //your action here }\n *\n * <template>\n * <bento-button-actions\n * :actions=\"[{\n * title: 'Primary',\n * event: clickedAction,\n * icon: MachineLearningIcon,\n * }, {\n * title: 'Secondary',\n * event: clickedAction,\n * }, {\n * title: 'Tertiary',\n * event: clickedAction,\n * }]\"\n * />\n * </template>\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./button-actions.scss\" />\n"],"names":["BentoButtonActionsLayoutBasic","BentoButtonActionsLayoutBasic2","BentoButtonActionsLayoutExtended","BentoButtonActionsLayoutExtended2","BentoButtonActionsLayout","__default__","reversedActionsList","computed","props","generateButtonVariantByIndex","actionIndex","lastActionIndex","conditionalClasses","button"],"mappings":";;;;;AAcY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,cAAA,eACAA,EAAA,iBAAA,kBACAA,EAAA,gBAAA,iBACAA,EAAA,iBAAA,kBAJQA,IAAAD,KAAA,CAAA,CAAA,GAMAE,IAAA,kBAAAC,OACRA,EAAA,gBAAA,iBADQA,IAAAD,KAAA,CAAA,CAAA;AAOL,MAAAE,IAAA,EAAA,GAAAJ,GAAA,GAAAE,EAAA,GCgIHG,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA5CAC,IAAAC,EAAA,MAAAC,EAAA,QAAA,MAAA,EAAA,QAAA,CAAA,GACAC,IAAA,CAAAC,MAAA;AACI,YAAAC,IAAAH,EAAA,QAAA,SAAA;AACA,aAAAE,MAAAC,IAAA,YAAA;AAAA,IAAqD,GAGzDC,IAAAL,EAAA,OAAA;AAAA,MAA2C,CAAA,qBAAAC,EAAA,QAAA,GAAA;AAAA,IACA,EAAA;wIAG3C,CAAAK,OAAAA,KAAA,gBAAAA,EAAA,WAAA,SAAA;AAAA,MAEU,OAAAA,EAAA;AAAA,IACkB,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { defineComponent as y, useAttrs as m, useSlots as v, computed as i } from "vue";
|
|
2
|
-
import { B as S } from "./index.d97166c6.js";
|
|
3
|
-
import { u as E } from "./use-has-slot.fbeb19ec.js";
|
|
4
|
-
import { B as g, a as R } from "./index.444d221f.js";
|
|
5
|
-
import { n as C } from "./_plugin-vue2_normalizer.71e2aa87.js";
|
|
6
|
-
import "../assets/button.css";
|
|
7
|
-
var c = /* @__PURE__ */ ((e) => (e.PRIMARY = "primary", e.SECONDARY = "secondary", e.TERTIARY = "tertiary", e.TERTIARY_WITH_BACKGROUND = "tertiary-with-background", e))(c || {}), s = /* @__PURE__ */ ((e) => (e.CONDENSED = "condensed", e.DESTRUCTIVE = "critical", e.DISABLED = "disabled", e.ICON_ONLY = "icon-only", e.INVERSE = "inverse", e))(s || {});
|
|
8
|
-
const T = {
|
|
9
|
-
name: "bento-button"
|
|
10
|
-
}, D = /* @__PURE__ */ y({
|
|
11
|
-
...T,
|
|
12
|
-
props: {
|
|
13
|
-
/**
|
|
14
|
-
* Reduces sizing of button
|
|
15
|
-
*/
|
|
16
|
-
condensed: { type: Boolean, default: !1 },
|
|
17
|
-
/**
|
|
18
|
-
* Displays button as critical
|
|
19
|
-
*/
|
|
20
|
-
critical: { type: Boolean, default: !1 },
|
|
21
|
-
/**
|
|
22
|
-
* Disables button functionality
|
|
23
|
-
*/
|
|
24
|
-
disabled: { type: Boolean, default: !1 },
|
|
25
|
-
/**
|
|
26
|
-
* Sets color set to inverse
|
|
27
|
-
*/
|
|
28
|
-
inverse: { type: Boolean, default: !1 },
|
|
29
|
-
/**
|
|
30
|
-
* Object containing props passed on to the BentoLink component. @see BentoLink documentation for which properties you can pass.
|
|
31
|
-
*/
|
|
32
|
-
link: { type: Object, default: void 0 },
|
|
33
|
-
/**
|
|
34
|
-
* The default behavior of the button.
|
|
35
|
-
* Possible values are: 'button', 'reset', 'submit'
|
|
36
|
-
*/
|
|
37
|
-
type: {
|
|
38
|
-
type: String,
|
|
39
|
-
default: "button"
|
|
40
|
-
},
|
|
41
|
-
/**
|
|
42
|
-
* Types of flavour of Button
|
|
43
|
-
* @values primary, secondary, tertiary, tertiary-with-background
|
|
44
|
-
*/
|
|
45
|
-
variant: {
|
|
46
|
-
type: String,
|
|
47
|
-
default: c.PRIMARY,
|
|
48
|
-
validator: (e) => Object.values(c).includes(e)
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
emits: ["blur", "click", "focus", "keydown.esc"],
|
|
52
|
-
setup(e, { emit: n }) {
|
|
53
|
-
const t = e, o = m(), r = v(), l = E(r), u = i(() => (t == null ? void 0 : t.link) !== void 0 ? g : "button"), d = i(() => {
|
|
54
|
-
var a, p;
|
|
55
|
-
return {
|
|
56
|
-
"aria-controls": (a = o["aria-controls"]) == null ? void 0 : a.toString(),
|
|
57
|
-
"aria-expanded": (p = o["aria-expanded"]) == null ? void 0 : p.toString()
|
|
58
|
-
};
|
|
59
|
-
}), b = i(
|
|
60
|
-
() => u.value === "button" ? {
|
|
61
|
-
...d.value,
|
|
62
|
-
disabled: t.disabled,
|
|
63
|
-
type: t.type
|
|
64
|
-
} : { ...t.link, disableTypography: !0, variant: R.DEFAULT, isButton: !0 }
|
|
65
|
-
), _ = i(() => ({
|
|
66
|
-
[`b-button--${t.variant}${t.critical ? `-${s.DESTRUCTIVE}` : ""}`]: !0
|
|
67
|
-
})), f = i(() => ({
|
|
68
|
-
..._.value,
|
|
69
|
-
[`b-button--${s.CONDENSED}`]: t.condensed,
|
|
70
|
-
[`b-button--${s.DISABLED}`]: t.disabled,
|
|
71
|
-
[`b-button--${s.ICON_ONLY}`]: !l("default"),
|
|
72
|
-
[`b-button--${s.INVERSE}`]: t.inverse
|
|
73
|
-
}));
|
|
74
|
-
return { __sfc: !0, props: t, emit: n, attrs: o, slots: r, hasSlot: l, componentType: u, ariaAttributes: d, componentProps: b, variantClass: _, conditionalClasses: f, onClickButton: (a) => {
|
|
75
|
-
t.disabled ? (a.preventDefault(), a.stopPropagation()) : n("click", a);
|
|
76
|
-
}, BentoTypography: S };
|
|
77
|
-
}
|
|
78
|
-
});
|
|
79
|
-
var h = function() {
|
|
80
|
-
var n = this, t = n._self._c, o = n._self._setupProxy;
|
|
81
|
-
return t(o.componentType, n._b({ tag: "component", staticClass: "b-button", class: o.conditionalClasses, on: { "!click": function(r) {
|
|
82
|
-
return o.onClickButton.apply(null, arguments);
|
|
83
|
-
} } }, "component", o.componentProps, !1), [o.hasSlot("iconLeft") ? t("span", { staticClass: "b-button__icon-left", attrs: { "data-testid": "icon-button-left" } }, [n._t("iconLeft")], 2) : n._e(), o.hasSlot("default") ? t(o.BentoTypography, { staticClass: "b-button__label", attrs: { el: "span", variant: "body", stronger: "" } }, [n._t("default")], 2) : n._e(), o.hasSlot("iconRight") ? t("span", { staticClass: "b-button__icon-right", attrs: { "data-testid": "icon-button-right" } }, [n._t("iconRight")], 2) : n._e()], 1);
|
|
84
|
-
}, k = [], I = /* @__PURE__ */ C(
|
|
85
|
-
D,
|
|
86
|
-
h,
|
|
87
|
-
k,
|
|
88
|
-
!1,
|
|
89
|
-
null,
|
|
90
|
-
"c3f1cc77",
|
|
91
|
-
null,
|
|
92
|
-
null
|
|
93
|
-
);
|
|
94
|
-
const x = I.exports;
|
|
95
|
-
export {
|
|
96
|
-
c as B,
|
|
97
|
-
x as a,
|
|
98
|
-
s as b
|
|
99
|
-
};
|
|
100
|
-
//# sourceMappingURL=button.e5f5638f.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button.e5f5638f.js","sources":["../../../core/src/components/button/button.types.ts","../../src/components/button/button.vue"],"sourcesContent":["/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoButtonVariant {\n PRIMARY = 'primary',\n SECONDARY = 'secondary',\n TERTIARY = 'tertiary',\n TERTIARY_WITH_BACKGROUND = 'tertiary-with-background',\n}\n\nexport enum BentoButtonPropClass {\n CONDENSED = 'condensed',\n DESTRUCTIVE = 'critical',\n DISABLED = 'disabled',\n ICON_ONLY = 'icon-only',\n INVERSE = 'inverse',\n}\n\nexport interface BentoButtonProps {\n condensed?: boolean;\n critical?: boolean;\n disabled?: boolean;\n inverse?: boolean;\n variant?: BentoButtonVariant | `${BentoButtonVariant}`;\n type?: string;\n link?: object;\n}\n","<template>\n <component\n :is=\"componentType\"\n v-bind=\"componentProps\"\n class=\"b-button\"\n :class=\"conditionalClasses\"\n @click.capture=\"onClickButton\"\n >\n <span v-if=\"hasSlot('iconLeft')\" class=\"b-button__icon-left\" data-testid=\"icon-button-left\">\n <slot name=\"iconLeft\" />\n </span>\n <bento-typography v-if=\"hasSlot('default')\" el=\"span\" variant=\"body\" stronger class=\"b-button__label\">\n <slot />\n </bento-typography>\n <span v-if=\"hasSlot('iconRight')\" class=\"b-button__icon-right\" data-testid=\"icon-button-right\">\n <slot name=\"iconRight\" />\n </span>\n </component>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, PropType, useAttrs, useSlots } from 'vue';\n import { BentoButtonPropClass, BentoButtonVariant } from '@/core/components/button/button.types';\n import { BentoTypography } from '@/components/typography';\n import { useHasSlot } from '@/composables/use-has-slot/use-has-slot';\n import { Booleanish } from '@/types/prop-types';\n import type { RouterLinkProps } from 'vue-router/types/router';\n import type { AnchorHTMLAttributes, ButtonHTMLAttributes } from 'vue/types/jsx';\n import { BentoLink, BentoLinkVariant } from '@/components/link';\n\n // TODO: replace all this code when migrated to Vue 3 is complete as this is the only\n // current way to extend the `router-link` component in Vue 2 and Vue Router 3\n export interface LinkProps extends RouterLinkProps, AnchorHTMLAttributes {\n // eslint-disable-next-line vue/require-default-prop\n args?: { props: RouterLinkProps };\n\n /**\n * Set the rendered link to a regular external anchor link.\n */\n external: boolean;\n }\n\n const props = defineProps({\n /**\n * Reduces sizing of button\n */\n condensed: { type: Boolean, default: false },\n\n /**\n * Displays button as critical\n */\n critical: { type: Boolean, default: false },\n\n /**\n * Disables button functionality\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Sets color set to inverse\n */\n inverse: { type: Boolean, default: false },\n\n /**\n * Object containing props passed on to the BentoLink component. @see BentoLink documentation for which properties you can pass.\n */\n link: { type: Object, default: undefined },\n\n /**\n * The default behavior of the button.\n * Possible values are: 'button', 'reset', 'submit'\n */\n type: {\n type: String as PropType<ButtonHTMLAttributes['type']>,\n default: 'button',\n },\n\n /**\n * Types of flavour of Button\n * @values primary, secondary, tertiary, tertiary-with-background\n */\n variant: {\n type: String as PropType<BentoButtonVariant | `${BentoButtonVariant}`>,\n default: BentoButtonVariant.PRIMARY,\n validator: (value: BentoButtonVariant) => Object.values(BentoButtonVariant).includes(value),\n },\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when the element has lost focus\n */\n (e: 'blur');\n\n /**\n * Emitted when the button is clicked\n */\n (e: 'click', event: MouseEvent);\n\n /**\n * Emitted when the element has received focus\n */\n (e: 'focus');\n\n /**\n * Emitted when the \"ESC\" key is pressed\n */\n (e: 'keydown.esc');\n }>();\n\n const attrs = useAttrs();\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n const componentType = computed(() => {\n if (props?.link !== undefined) {\n return BentoLink;\n }\n return 'button';\n });\n const ariaAttributes = computed(() => ({\n 'aria-controls': attrs['aria-controls']?.toString() as string,\n 'aria-expanded': attrs['aria-expanded']?.toString() as Booleanish,\n }));\n\n const componentProps = computed(() =>\n componentType.value === 'button'\n ? {\n ...ariaAttributes.value,\n disabled: props.disabled,\n type: props.type,\n }\n : { ...props.link, disableTypography: true, variant: BentoLinkVariant.DEFAULT, isButton: true }\n );\n\n const variantClass = computed(() => ({\n [`b-button--${props.variant}${props.critical ? `-${BentoButtonPropClass.DESTRUCTIVE}` : ''}`]: true,\n }));\n\n const conditionalClasses = computed(() => ({\n ...variantClass.value,\n [`b-button--${BentoButtonPropClass.CONDENSED}`]: props.condensed,\n [`b-button--${BentoButtonPropClass.DISABLED}`]: props.disabled,\n [`b-button--${BentoButtonPropClass.ICON_ONLY}`]: !hasSlot('default'),\n [`b-button--${BentoButtonPropClass.INVERSE}`]: props.inverse,\n }));\n\n const onClickButton = (e: MouseEvent) => {\n if (!props.disabled) {\n emit('click', e);\n } else {\n e.preventDefault();\n e.stopPropagation();\n }\n };\n</script>\n\n<script lang=\"ts\">\n /**\n * Button component for all the various types of bento buttons.\n *\n * @example\n * import { BentoButton } from '@adyen/bento-vue2';\n * import { CheckMarkIcon } from '@adyen/ui-assets-icons-16';\n *\n * export default {\n * components: { BentoButton },\n * template: `\n * <bento-button\n * disabled\n * variant=\"secondary\"\n * >\n * <template #iconLeft>\n * <check-mark svg-title=\"checked\" />\n * </template>\n *\n * Button text\n *\n * <template #iconRight>\n * <check-mark svg-title=\"checked\" />\n * </template>\n * </bento-button>\n * `,\n * }\n */\n export default {\n name: 'bento-button',\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"@/core/components/button/button.scss\" />\n"],"names":["BentoButtonVariant","BentoButtonVariant2","BentoButtonPropClass","BentoButtonPropClass2","__default__","attrs","useAttrs","slots","useSlots","hasSlot","useHasSlot","componentType","computed","props","BentoLink","ariaAttributes","_a","_b","componentProps","BentoLinkVariant","variantClass","conditionalClasses","e","emit"],"mappings":";;;;;;AAGY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,UAAA,WACAA,EAAA,YAAA,aACAA,EAAA,WAAA,YACAA,EAAA,2BAAA,4BAJQA,IAAAD,KAAA,CAAA,CAAA,GAOAE,IAAA,kBAAAC,OACRA,EAAA,YAAA,aACAA,EAAA,cAAA,YACAA,EAAA,WAAA,YACAA,EAAA,YAAA,aACAA,EAAA,UAAA,WALQA,IAAAD,KAAA,CAAA,CAAA;AC+KR,MAAAE,IAAA;AAAA,EAAe,MAAA;AAEf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA7EAC,IAAAC,EAAA,GACAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAEAI,IAAAC,EAAA,OACIC,KAAA,gBAAAA,EAAA,UAAA,SACIC,IAEJ,QAAO,GAEXC,IAAAH,EAAA,MAAA;;AAAA;AAAA,QAAuC,kBAAAI,IAAAX,EAAA,eAAA,MAAA,gBAAAW,EAAA;AAAA,QACe,kBAAAC,IAAAZ,EAAA,eAAA,MAAA,gBAAAY,EAAA;AAAA,MACA;AAAA,KAAA,GAGtDC,IAAAN;AAAA,MAAuB,MAAAD,EAAA,UAAA,WAAA;AAAA,QAEb,GAAAI,EAAA;AAAA,QACsB,UAAAF,EAAA;AAAA,QACF,MAAAA,EAAA;AAAA,MACJ,IAAA,EAAA,GAAAA,EAAA,MAAA,mBAAA,IAAA,SAAAM,EAAA,SAAA,UAAA,GAAA;AAAA,IAE4E,GAGtGC,IAAAR,EAAA,OAAA;AAAA,MAAqC,CAAA,aAAAC,EAAA,UAAAA,EAAA,WAAA,IAAAX,EAAA,gBAAA,IAAA,GAAA;AAAA,IAC8D,EAAA,GAGnGmB,IAAAT,EAAA,OAAA;AAAA,MAA2C,GAAAQ,EAAA;AAAA,MACvB,CAAA,aAAAlB,EAAA,WAAA,GAAAW,EAAA;AAAA,MACuC,CAAA,aAAAX,EAAA,UAAA,GAAAW,EAAA;AAAA,MACD,CAAA,aAAAX,EAAA,WAAA,GAAA,CAAAO,EAAA,SAAA;AAAA,MACa,CAAA,aAAAP,EAAA,SAAA,GAAAW,EAAA;AAAA,IACd,EAAA;0LAGzD,CAAAS,MAAA;AACI,MAAAT,EAAA,YAGIS,EAAA,eAAA,GACAA,EAAA,gBAAA,KAHAC,EAAA,SAAAD,CAAA;AAAA,IAIJ;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { n } from "./_plugin-vue2_normalizer.71e2aa87.js";
|
|
2
|
-
import "../assets/cross.css";
|
|
3
|
-
let e = 0;
|
|
4
|
-
const r = {
|
|
5
|
-
beforeCreate() {
|
|
6
|
-
this.uuid = e.toString(), e += 1;
|
|
7
|
-
}
|
|
8
|
-
};
|
|
9
|
-
var l = function() {
|
|
10
|
-
var t = this, s = t._self._c;
|
|
11
|
-
return s("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? s("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), s("path", { attrs: { fill: "#00112C", d: "M15.0608 4.00011L14.0001 2.93945L6.00011 10.9395L2.00011 6.93945L0.939453 8.00011L6.00011 13.0608L15.0608 4.00011Z" } })]);
|
|
12
|
-
}, _ = [], a = /* @__PURE__ */ n(
|
|
13
|
-
r,
|
|
14
|
-
l,
|
|
15
|
-
_,
|
|
16
|
-
!1,
|
|
17
|
-
null,
|
|
18
|
-
null,
|
|
19
|
-
null,
|
|
20
|
-
null
|
|
21
|
-
);
|
|
22
|
-
const c = a.exports;
|
|
23
|
-
export {
|
|
24
|
-
c as C
|
|
25
|
-
};
|
|
26
|
-
//# sourceMappingURL=checkmark.a6ed8f47.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checkmark.a6ed8f47.js","sources":["../../../../node_modules/@adyen/ui-assets-icons-16/dist/vue/checkmark.vue"],"sourcesContent":["\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><path fill=\"#00112C\" d=\"M15.0608 4.00011L14.0001 2.93945L6.00011 10.9395L2.00011 6.93945L0.939453 8.00011L6.00011 13.0608L15.0608 4.00011Z\"/></svg>\n</template>\n<script>\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n<style>\n @import '../css/main.css';\n</style>\n"],"names":["uuid","_sfc_main"],"mappings":";;AAKA,IAAAA,IAAA;AAEA,MAAAC,IAAA;AAAA,EACA,eAAA;AACA,SAAA,OAAAD,EAAA,SAAA,GACAA,KAAA;AAAA,EACA;AACA;;;;;;;;;;;;;;;","x_google_ignoreList":[0]}
|