@adyen/bento-vue2 1.23.0 → 1.24.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/README.md +2 -0
- package/dist/@types/index.d.ts +235 -235
- package/dist/accordion.js +2 -2
- package/dist/action-bar.js +6 -6
- package/dist/alert.js +72 -53
- package/dist/alert.js.map +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/grid-layout.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/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/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/avatar-image.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.025269d7.js → base-button.090f511d.js} +2 -2
- package/dist/chunks/{base-button.025269d7.js.map → base-button.090f511d.js.map} +1 -1
- package/dist/chunks/{base-modal.c354f456.js → base-modal.aa09a60c.js} +6 -6
- package/dist/chunks/{base-modal.c354f456.js.map → base-modal.aa09a60c.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.15d22fa3.js → button-actions-with-menu.879c4573.js} +4 -4
- package/dist/chunks/{button-actions-with-menu.15d22fa3.js.map → button-actions-with-menu.879c4573.js.map} +1 -1
- package/dist/chunks/{button-actions.3882346f.js → button-actions.239456cb.js} +3 -3
- package/dist/chunks/{button-actions.3882346f.js.map → button-actions.239456cb.js.map} +1 -1
- package/dist/chunks/{button.a823da67.js → button.6e6324f0.js} +3 -3
- package/dist/chunks/{button.a823da67.js.map → button.6e6324f0.js.map} +1 -1
- package/dist/chunks/{calendar.4ba3b251.js → calendar.1e416969.js} +4 -4
- package/dist/chunks/{calendar.4ba3b251.js.map → calendar.1e416969.js.map} +1 -1
- package/dist/chunks/{checkbox.1edcc4c0.js → checkbox.f38276e6.js} +3 -3
- package/dist/chunks/{checkbox.1edcc4c0.js.map → checkbox.f38276e6.js.map} +1 -1
- package/dist/chunks/{controls-group.b17e40ad.js → controls-group.f1dfa419.js} +3 -3
- package/dist/chunks/{controls-group.b17e40ad.js.map → controls-group.f1dfa419.js.map} +1 -1
- package/dist/chunks/{copy.b20b47f9.js → copy.acc9f1b0.js} +4 -4
- package/dist/chunks/{copy.b20b47f9.js.map → copy.acc9f1b0.js.map} +1 -1
- package/dist/chunks/{dialog-page.3965f89e.js → dialog-page.75b295b7.js} +3 -3
- package/dist/chunks/{dialog-page.3965f89e.js.map → dialog-page.75b295b7.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.537c81a2.js → dropdown-default-textbox.c1f8fe5f.js} +2 -2
- package/dist/chunks/{dropdown-default-textbox.537c81a2.js.map → dropdown-default-textbox.c1f8fe5f.js.map} +1 -1
- package/dist/chunks/{dropdown.93a582cc.js → dropdown.669b858b.js} +7 -7
- package/dist/chunks/{dropdown.93a582cc.js.map → dropdown.669b858b.js.map} +1 -1
- package/dist/chunks/{error-message.7022fa86.js → error-message.8734e591.js} +2 -2
- package/dist/chunks/{error-message.7022fa86.js.map → error-message.8734e591.js.map} +1 -1
- package/dist/chunks/{fixed-scroller.077a5709.js → fixed-scroller.772ad033.js} +2 -2
- package/dist/chunks/{fixed-scroller.077a5709.js.map → fixed-scroller.772ad033.js.map} +1 -1
- package/dist/chunks/{footer-actions.1f22f86d.js → footer-actions.11071f12.js} +4 -4
- package/dist/chunks/{footer-actions.1f22f86d.js.map → footer-actions.11071f12.js.map} +1 -1
- package/dist/chunks/{index.b231f9ef.js → index.03ae22b4.js} +2 -2
- package/dist/chunks/{index.b231f9ef.js.map → index.03ae22b4.js.map} +1 -1
- package/dist/chunks/index.49ce3f6a.js +49 -0
- package/dist/chunks/index.49ce3f6a.js.map +1 -0
- package/dist/chunks/{index.59d76d6b.js → index.51308a21.js} +3 -3
- package/dist/chunks/{index.59d76d6b.js.map → index.51308a21.js.map} +1 -1
- package/dist/chunks/{index.787ded40.js → index.5d5f2200.js} +6 -6
- package/dist/chunks/{index.787ded40.js.map → index.5d5f2200.js.map} +1 -1
- package/dist/chunks/{index.0be6a210.js → index.73abb1a9.js} +8 -8
- package/dist/chunks/{index.0be6a210.js.map → index.73abb1a9.js.map} +1 -1
- package/dist/chunks/{index.255c82a2.js → index.87180cdd.js} +6 -6
- package/dist/chunks/{index.255c82a2.js.map → index.87180cdd.js.map} +1 -1
- package/dist/chunks/{index.19675c16.js → index.8e6bc325.js} +3 -3
- package/dist/chunks/{index.19675c16.js.map → index.8e6bc325.js.map} +1 -1
- package/dist/chunks/{index.9d130872.js → index.94980f50.js} +2 -2
- package/dist/chunks/{index.9d130872.js.map → index.94980f50.js.map} +1 -1
- package/dist/chunks/index.ba6c1040.js +79 -0
- package/dist/chunks/index.ba6c1040.js.map +1 -0
- package/dist/chunks/{index.f828081b.js → index.f19887a1.js} +2 -2
- package/dist/chunks/{index.f828081b.js.map → index.f19887a1.js.map} +1 -1
- package/dist/chunks/{index.7a59b0b8.js → index.ff09389c.js} +6 -6
- package/dist/chunks/{index.7a59b0b8.js.map → index.ff09389c.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.e025da67.js → listbox-option-tag.c0a56a95.js} +3 -3
- package/dist/chunks/{listbox-option-tag.e025da67.js.map → listbox-option-tag.c0a56a95.js.map} +1 -1
- package/dist/chunks/{listbox.f99c2f3e.js → listbox.e6e1bc90.js} +5 -5
- package/dist/chunks/{listbox.f99c2f3e.js.map → listbox.e6e1bc90.js.map} +1 -1
- package/dist/chunks/{loading-button.5de13e50.js → loading-button.84a5529d.js} +2 -2
- package/dist/chunks/{loading-button.5de13e50.js.map → loading-button.84a5529d.js.map} +1 -1
- package/dist/chunks/{payment-method.bf9e71a2.js → payment-method.faa302de.js} +2 -2
- package/dist/chunks/{payment-method.bf9e71a2.js.map → payment-method.faa302de.js.map} +1 -1
- package/dist/chunks/{tooltip.eb1eb37e.js → tooltip.8e9d733c.js} +3 -3
- package/dist/chunks/{tooltip.eb1eb37e.js.map → tooltip.8e9d733c.js.map} +1 -1
- package/dist/chunks/use-bento-toast-controller.7d4436ad.js +52 -0
- package/dist/chunks/use-bento-toast-controller.7d4436ad.js.map +1 -0
- package/dist/code-snippet.js +7 -7
- package/dist/code-snippet.js.map +1 -1
- package/dist/country.js +2 -2
- package/dist/currency.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +432 -424
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +8 -8
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/divider.js +1 -1
- package/dist/dropdown.js +7 -7
- package/dist/empty-state.js +3 -3
- package/dist/filter-bar.js +88 -92
- package/dist/filter-bar.js.map +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +2 -2
- package/dist/header.js +4 -4
- package/dist/index.js +247 -269
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +3 -3
- package/dist/input-field.js +38 -34
- package/dist/input-field.js.map +1 -1
- 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 +3 -3
- package/dist/selection-card.js +4 -4
- package/dist/sidepanel.js +6 -6
- package/dist/status.js +2 -2
- package/dist/stepper.js +3 -3
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +3 -3
- package/dist/tabs.js +3 -3
- package/dist/tag.js +3 -3
- package/dist/textarea.js +4 -4
- package/dist/timeline.js +7 -7
- package/dist/toast.js +143 -98
- package/dist/toast.js.map +1 -1
- package/dist/toggle.js +2 -2
- package/dist/tutorial.js +6 -6
- package/dist/typography.js +1 -1
- package/dist/web-types.json +164 -117
- package/package.json +2 -2
- package/dist/chunks/index.0b534dc6.js +0 -83
- package/dist/chunks/index.0b534dc6.js.map +0 -1
- package/dist/chunks/index.be6917c8.js +0 -127
- package/dist/chunks/index.be6917c8.js.map +0 -1
- package/dist/chunks/info-filled.c37e091d.js +0 -26
- package/dist/chunks/info-filled.c37e091d.js.map +0 -1
- package/dist/chunks/toastController.fd667b68.js +0 -15
- package/dist/chunks/toastController.fd667b68.js.map +0 -1
package/dist/tutorial.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as g, ref as d, computed as a, isRef as R, watch as F, nextTick as $ } from "vue";
|
|
2
|
-
import { B as I } from "./chunks/index.
|
|
3
|
-
import { B as S, a as P } from "./chunks/index.
|
|
4
|
-
import { B as k } from "./chunks/index.
|
|
2
|
+
import { B as I } from "./chunks/index.87180cdd.js";
|
|
3
|
+
import { B as S, a as P } from "./chunks/index.5d5f2200.js";
|
|
4
|
+
import { B as k } from "./chunks/index.ba6c1040.js";
|
|
5
5
|
import { BentoImage as w } from "./image.js";
|
|
6
6
|
import { u as A } from "./chunks/i18n.eb5b985b.js";
|
|
7
7
|
import { R as N } from "./chunks/refresh.71a03998.js";
|
|
8
8
|
import { n as f } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
|
|
9
|
-
import { a as T, h as D, o as M } from "./chunks/index.
|
|
10
|
-
import { B as V } from "./chunks/button-actions.
|
|
11
|
-
import "./assets/
|
|
9
|
+
import { a as T, h as D, o as M } from "./chunks/index.51308a21.js";
|
|
10
|
+
import { B as V } from "./chunks/button-actions.239456cb.js";
|
|
11
|
+
import "./assets/index41.css";
|
|
12
12
|
var E;
|
|
13
13
|
const j = /* @__PURE__ */ g({
|
|
14
14
|
__name: "tutorial-indicator",
|
package/dist/typography.js
CHANGED
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.24.0",
|
|
5
5
|
"contributions": {
|
|
6
6
|
"html": {
|
|
7
7
|
"description-markup": "markdown",
|
|
@@ -324,8 +324,19 @@
|
|
|
324
324
|
"name": "avatar-image",
|
|
325
325
|
"description": "",
|
|
326
326
|
"attributes": [
|
|
327
|
+
{
|
|
328
|
+
"name": "color",
|
|
329
|
+
"required": false,
|
|
330
|
+
"description": "Avatar color. Defaults to yellow.",
|
|
331
|
+
"value": {
|
|
332
|
+
"kind": "expression",
|
|
333
|
+
"type": "BentoAvatarImageColor"
|
|
334
|
+
},
|
|
335
|
+
"default": "BentoAvatarImageColor.YELLOW"
|
|
336
|
+
},
|
|
327
337
|
{
|
|
328
338
|
"name": "src",
|
|
339
|
+
"required": false,
|
|
329
340
|
"description": "Image src to load the profile picture.",
|
|
330
341
|
"value": {
|
|
331
342
|
"kind": "expression",
|
|
@@ -335,6 +346,7 @@
|
|
|
335
346
|
},
|
|
336
347
|
{
|
|
337
348
|
"name": "username",
|
|
349
|
+
"required": false,
|
|
338
350
|
"description": "Name of the user that will be used to extract initials to display default value.\nJohn => J\nJohn Smith => JS\nJohn Smith Doe => JD\nJohn Smith Doe Holly => JH",
|
|
339
351
|
"value": {
|
|
340
352
|
"kind": "expression",
|
|
@@ -344,21 +356,13 @@
|
|
|
344
356
|
},
|
|
345
357
|
{
|
|
346
358
|
"name": "variant",
|
|
359
|
+
"required": false,
|
|
347
360
|
"description": "Variants supported for small and large.\nDefault - large",
|
|
348
361
|
"value": {
|
|
349
362
|
"kind": "expression",
|
|
350
363
|
"type": "BentoAvatarImageVariant"
|
|
351
364
|
},
|
|
352
365
|
"default": "BentoAvatarImageVariant.LARGE"
|
|
353
|
-
},
|
|
354
|
-
{
|
|
355
|
-
"name": "color",
|
|
356
|
-
"description": "Avatar color. Defaults to yellow.",
|
|
357
|
-
"value": {
|
|
358
|
-
"kind": "expression",
|
|
359
|
-
"type": "BentoAvatarImageColor"
|
|
360
|
-
},
|
|
361
|
-
"default": "BentoAvatarImageColor.YELLOW"
|
|
362
366
|
}
|
|
363
367
|
],
|
|
364
368
|
"source": {
|
|
@@ -3112,10 +3116,10 @@
|
|
|
3112
3116
|
"attributes": [
|
|
3113
3117
|
{
|
|
3114
3118
|
"name": "options",
|
|
3115
|
-
"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
|
|
3119
|
+
"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.",
|
|
3116
3120
|
"value": {
|
|
3117
3121
|
"kind": "expression",
|
|
3118
|
-
"type": "
|
|
3122
|
+
"type": "BentoSelectCountryFilterOptions"
|
|
3119
3123
|
},
|
|
3120
3124
|
"default": "undefined"
|
|
3121
3125
|
}
|
|
@@ -3126,7 +3130,7 @@
|
|
|
3126
3130
|
}
|
|
3127
3131
|
],
|
|
3128
3132
|
"source": {
|
|
3129
|
-
"module": "./src/components/filter-bar/components/select-filter/variants/select-
|
|
3133
|
+
"module": "./src/components/filter-bar/components/select-filter/variants/select-country-filter/select-country-filter.vue",
|
|
3130
3134
|
"symbol": "default"
|
|
3131
3135
|
}
|
|
3132
3136
|
},
|
|
@@ -3136,10 +3140,10 @@
|
|
|
3136
3140
|
"attributes": [
|
|
3137
3141
|
{
|
|
3138
3142
|
"name": "options",
|
|
3139
|
-
"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
|
|
3143
|
+
"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}",
|
|
3140
3144
|
"value": {
|
|
3141
3145
|
"kind": "expression",
|
|
3142
|
-
"type": "
|
|
3146
|
+
"type": "BentoSelectCurrencyFilterOptions"
|
|
3143
3147
|
},
|
|
3144
3148
|
"default": "undefined"
|
|
3145
3149
|
}
|
|
@@ -3150,7 +3154,7 @@
|
|
|
3150
3154
|
}
|
|
3151
3155
|
],
|
|
3152
3156
|
"source": {
|
|
3153
|
-
"module": "./src/components/filter-bar/components/select-filter/variants/select-
|
|
3157
|
+
"module": "./src/components/filter-bar/components/select-filter/variants/select-currency-filter/select-currency-filter.vue",
|
|
3154
3158
|
"symbol": "default"
|
|
3155
3159
|
}
|
|
3156
3160
|
},
|
|
@@ -4020,14 +4024,6 @@
|
|
|
4020
4024
|
"symbol": "default"
|
|
4021
4025
|
}
|
|
4022
4026
|
},
|
|
4023
|
-
{
|
|
4024
|
-
"name": "bento-toast",
|
|
4025
|
-
"description": "",
|
|
4026
|
-
"source": {
|
|
4027
|
-
"module": "./src/components/toast/toast.vue",
|
|
4028
|
-
"symbol": "default"
|
|
4029
|
-
}
|
|
4030
|
-
},
|
|
4031
4027
|
{
|
|
4032
4028
|
"name": "bento-toggle",
|
|
4033
4029
|
"description": "A wrapper around the bento toggle, providing checkbox functionality with a knob-like toggle",
|
|
@@ -4096,84 +4092,6 @@
|
|
|
4096
4092
|
"symbol": "default"
|
|
4097
4093
|
}
|
|
4098
4094
|
},
|
|
4099
|
-
{
|
|
4100
|
-
"name": "bento-typography",
|
|
4101
|
-
"description": "The Typography component makes it easy to apply a default set of font weights, sizes and other text styles\neasily to text. The variants and properties match with those found in Figma.\n\nFor example, seeing text with the typography styling of",
|
|
4102
|
-
"attributes": [
|
|
4103
|
-
{
|
|
4104
|
-
"name": "el",
|
|
4105
|
-
"description": "Sets the HTML DOM element.",
|
|
4106
|
-
"value": {
|
|
4107
|
-
"kind": "expression",
|
|
4108
|
-
"type": "BentoTypographyElement | `${BentoTypographyElement}`"
|
|
4109
|
-
},
|
|
4110
|
-
"default": "BentoTypographyElement.PARAGRAPH"
|
|
4111
|
-
},
|
|
4112
|
-
{
|
|
4113
|
-
"name": "stronger",
|
|
4114
|
-
"description": "Adds the stronger class modifier.\nApplicable to Caption, Body and Subtitle variants.",
|
|
4115
|
-
"value": {
|
|
4116
|
-
"kind": "expression",
|
|
4117
|
-
"type": "boolean"
|
|
4118
|
-
},
|
|
4119
|
-
"default": "false"
|
|
4120
|
-
},
|
|
4121
|
-
{
|
|
4122
|
-
"name": "strongest",
|
|
4123
|
-
"description": "Adds the strongest class modifier.\nApplicable to Caption, Body and Subtitle variants.",
|
|
4124
|
-
"value": {
|
|
4125
|
-
"kind": "expression",
|
|
4126
|
-
"type": "boolean"
|
|
4127
|
-
},
|
|
4128
|
-
"default": "false"
|
|
4129
|
-
},
|
|
4130
|
-
{
|
|
4131
|
-
"name": "variant",
|
|
4132
|
-
"description": "Sets the type of typography variant.",
|
|
4133
|
-
"value": {
|
|
4134
|
-
"kind": "expression",
|
|
4135
|
-
"type": "BentoTypographyVariant | `${BentoTypographyVariant}`"
|
|
4136
|
-
},
|
|
4137
|
-
"default": "BentoTypographyVariant.BODY"
|
|
4138
|
-
},
|
|
4139
|
-
{
|
|
4140
|
-
"name": "medium",
|
|
4141
|
-
"description": "Adds the medium class modifier.\nApplicable to the Title variant.",
|
|
4142
|
-
"value": {
|
|
4143
|
-
"kind": "expression",
|
|
4144
|
-
"type": "boolean"
|
|
4145
|
-
},
|
|
4146
|
-
"default": "false"
|
|
4147
|
-
},
|
|
4148
|
-
{
|
|
4149
|
-
"name": "large",
|
|
4150
|
-
"description": "Adds the large class modifier.\nApplicable to the Title variant.",
|
|
4151
|
-
"value": {
|
|
4152
|
-
"kind": "expression",
|
|
4153
|
-
"type": "boolean"
|
|
4154
|
-
},
|
|
4155
|
-
"default": "false"
|
|
4156
|
-
},
|
|
4157
|
-
{
|
|
4158
|
-
"name": "wide",
|
|
4159
|
-
"description": "Adds the medium class modifier.\nApplicable to tje Body variant.",
|
|
4160
|
-
"value": {
|
|
4161
|
-
"kind": "expression",
|
|
4162
|
-
"type": "boolean"
|
|
4163
|
-
},
|
|
4164
|
-
"default": "false"
|
|
4165
|
-
}
|
|
4166
|
-
],
|
|
4167
|
-
"slots": [
|
|
4168
|
-
{
|
|
4169
|
-
"name": "default"
|
|
4170
|
-
}
|
|
4171
|
-
],
|
|
4172
|
-
"source": {
|
|
4173
|
-
"module": "./src/components/typography/typography.vue",
|
|
4174
|
-
"symbol": "default"
|
|
4175
|
-
}
|
|
4176
|
-
},
|
|
4177
4095
|
{
|
|
4178
4096
|
"name": "button",
|
|
4179
4097
|
"description": "",
|
|
@@ -7766,7 +7684,7 @@
|
|
|
7766
7684
|
},
|
|
7767
7685
|
{
|
|
7768
7686
|
"name": "dropdown",
|
|
7769
|
-
"description": "Dropdown props for the small selectable dropdown menu
|
|
7687
|
+
"description": "Dropdown props for the small selectable dropdown menu.\nProperties supported:\n\n - `value`: Selected value of the dropdown\n - `items`: List of available items",
|
|
7770
7688
|
"value": {
|
|
7771
7689
|
"kind": "expression",
|
|
7772
7690
|
"type": "BentoInputDropdownProps"
|
|
@@ -11127,55 +11045,99 @@
|
|
|
11127
11045
|
"symbol": "default"
|
|
11128
11046
|
}
|
|
11129
11047
|
},
|
|
11048
|
+
{
|
|
11049
|
+
"name": "toast",
|
|
11050
|
+
"description": "",
|
|
11051
|
+
"source": {
|
|
11052
|
+
"module": "./src/components/toast/toast.vue",
|
|
11053
|
+
"symbol": "default"
|
|
11054
|
+
}
|
|
11055
|
+
},
|
|
11130
11056
|
{
|
|
11131
11057
|
"name": "toast-item",
|
|
11132
11058
|
"description": "",
|
|
11133
11059
|
"attributes": [
|
|
11134
11060
|
{
|
|
11135
|
-
"name": "
|
|
11061
|
+
"name": "toast",
|
|
11136
11062
|
"required": true,
|
|
11137
11063
|
"value": {
|
|
11138
11064
|
"kind": "expression",
|
|
11139
|
-
"type": "
|
|
11065
|
+
"type": "BentoToastItem"
|
|
11140
11066
|
}
|
|
11141
|
-
}
|
|
11067
|
+
}
|
|
11068
|
+
],
|
|
11069
|
+
"source": {
|
|
11070
|
+
"module": "./src/components/toast/components/toast-item/toast-item.vue",
|
|
11071
|
+
"symbol": "default"
|
|
11072
|
+
}
|
|
11073
|
+
},
|
|
11074
|
+
{
|
|
11075
|
+
"name": "toast-mock",
|
|
11076
|
+
"description": "",
|
|
11077
|
+
"attributes": [
|
|
11142
11078
|
{
|
|
11143
|
-
"name": "
|
|
11079
|
+
"name": "items",
|
|
11144
11080
|
"value": {
|
|
11145
11081
|
"kind": "expression",
|
|
11146
|
-
"type": "
|
|
11082
|
+
"type": "BentoToastItemParams[]"
|
|
11147
11083
|
},
|
|
11148
|
-
"default": "
|
|
11084
|
+
"default": "() => []"
|
|
11149
11085
|
}
|
|
11150
11086
|
],
|
|
11151
11087
|
"events": [
|
|
11152
11088
|
{
|
|
11153
|
-
"name": "
|
|
11154
|
-
}
|
|
11089
|
+
"name": "toast"
|
|
11090
|
+
}
|
|
11091
|
+
],
|
|
11092
|
+
"source": {
|
|
11093
|
+
"module": "./src/components/toast/__tests__/toast-mock.vue",
|
|
11094
|
+
"symbol": "default"
|
|
11095
|
+
}
|
|
11096
|
+
},
|
|
11097
|
+
{
|
|
11098
|
+
"name": "toast-shadow-stack",
|
|
11099
|
+
"description": "",
|
|
11100
|
+
"events": [
|
|
11155
11101
|
{
|
|
11156
|
-
"name": "
|
|
11102
|
+
"name": "update"
|
|
11157
11103
|
}
|
|
11158
11104
|
],
|
|
11159
11105
|
"source": {
|
|
11160
|
-
"module": "./src/components/toast/components/toast-
|
|
11106
|
+
"module": "./src/components/toast/components/toast-shadow-stack/toast-shadow-stack.vue",
|
|
11161
11107
|
"symbol": "default"
|
|
11162
11108
|
}
|
|
11163
11109
|
},
|
|
11164
11110
|
{
|
|
11165
|
-
"name": "toast-mock",
|
|
11111
|
+
"name": "toast-shadow-stack-mock",
|
|
11166
11112
|
"description": "",
|
|
11167
11113
|
"attributes": [
|
|
11168
11114
|
{
|
|
11169
|
-
"name": "
|
|
11115
|
+
"name": "text",
|
|
11170
11116
|
"value": {
|
|
11171
11117
|
"kind": "expression",
|
|
11172
|
-
"type": "
|
|
11118
|
+
"type": "string"
|
|
11173
11119
|
},
|
|
11174
11120
|
"default": "null"
|
|
11121
|
+
},
|
|
11122
|
+
{
|
|
11123
|
+
"name": "action",
|
|
11124
|
+
"value": {
|
|
11125
|
+
"kind": "expression",
|
|
11126
|
+
"type": "BentoToastItemAction"
|
|
11127
|
+
},
|
|
11128
|
+
"default": "null"
|
|
11129
|
+
}
|
|
11130
|
+
],
|
|
11131
|
+
"events": [
|
|
11132
|
+
{
|
|
11133
|
+
"name": "update"
|
|
11134
|
+
},
|
|
11135
|
+
{
|
|
11136
|
+
"name": "toast"
|
|
11175
11137
|
}
|
|
11176
11138
|
],
|
|
11177
11139
|
"source": {
|
|
11178
|
-
"module": "./src/components/toast/__tests__/toast-mock.vue",
|
|
11140
|
+
"module": "./src/components/toast/components/toast-shadow-stack/__tests__/toast-shadow-stack-mock.vue",
|
|
11179
11141
|
"symbol": "default"
|
|
11180
11142
|
}
|
|
11181
11143
|
},
|
|
@@ -11584,6 +11546,91 @@
|
|
|
11584
11546
|
"module": "./src/components/tutorial/__tests__/tutorial-stub.vue",
|
|
11585
11547
|
"symbol": "default"
|
|
11586
11548
|
}
|
|
11549
|
+
},
|
|
11550
|
+
{
|
|
11551
|
+
"name": "typography",
|
|
11552
|
+
"description": "",
|
|
11553
|
+
"attributes": [
|
|
11554
|
+
{
|
|
11555
|
+
"name": "el",
|
|
11556
|
+
"required": false,
|
|
11557
|
+
"description": "Sets the HTML DOM element.",
|
|
11558
|
+
"value": {
|
|
11559
|
+
"kind": "expression",
|
|
11560
|
+
"type": "union"
|
|
11561
|
+
},
|
|
11562
|
+
"default": "BentoTypographyElement.PARAGRAPH"
|
|
11563
|
+
},
|
|
11564
|
+
{
|
|
11565
|
+
"name": "large",
|
|
11566
|
+
"required": false,
|
|
11567
|
+
"description": "Adds the large class modifier.\nApplicable to the Title variant.",
|
|
11568
|
+
"value": {
|
|
11569
|
+
"kind": "expression",
|
|
11570
|
+
"type": "boolean"
|
|
11571
|
+
},
|
|
11572
|
+
"default": "false"
|
|
11573
|
+
},
|
|
11574
|
+
{
|
|
11575
|
+
"name": "medium",
|
|
11576
|
+
"required": false,
|
|
11577
|
+
"description": "Adds the medium class modifier.\nApplicable to the Title variant.",
|
|
11578
|
+
"value": {
|
|
11579
|
+
"kind": "expression",
|
|
11580
|
+
"type": "boolean"
|
|
11581
|
+
},
|
|
11582
|
+
"default": "false"
|
|
11583
|
+
},
|
|
11584
|
+
{
|
|
11585
|
+
"name": "stronger",
|
|
11586
|
+
"required": false,
|
|
11587
|
+
"description": "Adds the stronger class modifier.\nApplicable to Caption, Body and Subtitle variants.",
|
|
11588
|
+
"value": {
|
|
11589
|
+
"kind": "expression",
|
|
11590
|
+
"type": "boolean"
|
|
11591
|
+
},
|
|
11592
|
+
"default": "false"
|
|
11593
|
+
},
|
|
11594
|
+
{
|
|
11595
|
+
"name": "strongest",
|
|
11596
|
+
"required": false,
|
|
11597
|
+
"description": "Adds the strongest class modifier.\nApplicable to Caption, Body and Subtitle variants.",
|
|
11598
|
+
"value": {
|
|
11599
|
+
"kind": "expression",
|
|
11600
|
+
"type": "boolean"
|
|
11601
|
+
},
|
|
11602
|
+
"default": "false"
|
|
11603
|
+
},
|
|
11604
|
+
{
|
|
11605
|
+
"name": "variant",
|
|
11606
|
+
"required": false,
|
|
11607
|
+
"description": "Sets the type of typography variant.",
|
|
11608
|
+
"value": {
|
|
11609
|
+
"kind": "expression",
|
|
11610
|
+
"type": "union"
|
|
11611
|
+
},
|
|
11612
|
+
"default": "BentoTypographyVariant.BODY"
|
|
11613
|
+
},
|
|
11614
|
+
{
|
|
11615
|
+
"name": "wide",
|
|
11616
|
+
"required": false,
|
|
11617
|
+
"description": "Adds the medium class modifier.\nApplicable to tje Body variant.",
|
|
11618
|
+
"value": {
|
|
11619
|
+
"kind": "expression",
|
|
11620
|
+
"type": "boolean"
|
|
11621
|
+
},
|
|
11622
|
+
"default": "false"
|
|
11623
|
+
}
|
|
11624
|
+
],
|
|
11625
|
+
"slots": [
|
|
11626
|
+
{
|
|
11627
|
+
"name": "default"
|
|
11628
|
+
}
|
|
11629
|
+
],
|
|
11630
|
+
"source": {
|
|
11631
|
+
"module": "./src/components/typography/typography.vue",
|
|
11632
|
+
"symbol": "default"
|
|
11633
|
+
}
|
|
11587
11634
|
}
|
|
11588
11635
|
]
|
|
11589
11636
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adyen/bento-vue2",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.24.0",
|
|
4
4
|
"description": "Adyen Bento Vue2 components",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -62,7 +62,7 @@
|
|
|
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.24.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",
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { ref as i, computed as n, defineComponent as l, toRefs as o } from "vue";
|
|
2
|
-
import { B as c } from "./index.be6917c8.js";
|
|
3
|
-
import "./index.4c062058.js";
|
|
4
|
-
import { n as u } from "./_plugin-vue2_normalizer.71e2aa87.js";
|
|
5
|
-
import "../assets/index19.css";
|
|
6
|
-
const _ = (a) => {
|
|
7
|
-
const t = i(a);
|
|
8
|
-
return n(() => t.value ? t.value.trim().charAt(0).toUpperCase() : null);
|
|
9
|
-
};
|
|
10
|
-
var s = /* @__PURE__ */ ((a) => (a.LARGE = "large", a.SMALL = "small", a))(s || {}), r = /* @__PURE__ */ ((a) => (a.BLUE = "blue", a.GREEN = "green", a.RED = "red", a.YELLOW = "yellow", a))(r || {});
|
|
11
|
-
const d = l({
|
|
12
|
-
name: "avatar-image",
|
|
13
|
-
components: { BentoTypography: c },
|
|
14
|
-
props: {
|
|
15
|
-
/**
|
|
16
|
-
* Image src to load the profile picture.
|
|
17
|
-
*/
|
|
18
|
-
src: {
|
|
19
|
-
type: String,
|
|
20
|
-
default: null
|
|
21
|
-
},
|
|
22
|
-
/**
|
|
23
|
-
* Name of the user that will be used to extract initials to display default value.
|
|
24
|
-
* John => J
|
|
25
|
-
* John Smith => JS
|
|
26
|
-
* John Smith Doe => JD
|
|
27
|
-
* John Smith Doe Holly => JH
|
|
28
|
-
*/
|
|
29
|
-
username: {
|
|
30
|
-
type: String,
|
|
31
|
-
default: null
|
|
32
|
-
},
|
|
33
|
-
/**
|
|
34
|
-
* Variants supported for small and large.
|
|
35
|
-
* Default - large
|
|
36
|
-
*/
|
|
37
|
-
variant: {
|
|
38
|
-
type: String,
|
|
39
|
-
default: s.LARGE,
|
|
40
|
-
validator: (a) => Object.values(s).includes(a)
|
|
41
|
-
},
|
|
42
|
-
/**
|
|
43
|
-
* Avatar color. Defaults to yellow.
|
|
44
|
-
*/
|
|
45
|
-
color: {
|
|
46
|
-
type: String,
|
|
47
|
-
default: r.YELLOW,
|
|
48
|
-
validator: (a) => Object.values(r).includes(a)
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
setup(a) {
|
|
52
|
-
const { username: t } = o(a), e = _(t);
|
|
53
|
-
return {
|
|
54
|
-
// Values
|
|
55
|
-
conditionalClasses: n(() => ({
|
|
56
|
-
[`b-avatar-image--${s.SMALL}`]: a.variant === s.SMALL,
|
|
57
|
-
[`b-avatar-image--${a.color}`]: a.color
|
|
58
|
-
})),
|
|
59
|
-
initials: e
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
var m = function() {
|
|
64
|
-
var t = this, e = t._self._c;
|
|
65
|
-
return t._self._setupProxy, e("div", { staticClass: "b-avatar-image", class: t.conditionalClasses, attrs: { "aria-hidden": "true", "data-testid": "avatar" } }, [t.src ? e("img", { staticClass: "b-avatar-image__image", attrs: { src: t.src, alt: "Profile picture", "data-testid": "avatar-content" } }) : e("div", { staticClass: "b-avatar-image__default", attrs: { "data-testid": "avatar-content" } }, [e("bento-typography", { attrs: { el: "span", variant: "body", strongest: "" } }, [t._v(" " + t._s(t.initials) + " ")])], 1)]);
|
|
66
|
-
}, v = [], p = /* @__PURE__ */ u(
|
|
67
|
-
d,
|
|
68
|
-
m,
|
|
69
|
-
v,
|
|
70
|
-
!1,
|
|
71
|
-
null,
|
|
72
|
-
"46be3f6e",
|
|
73
|
-
null,
|
|
74
|
-
null
|
|
75
|
-
);
|
|
76
|
-
const E = p.exports;
|
|
77
|
-
export {
|
|
78
|
-
E as A,
|
|
79
|
-
r as B,
|
|
80
|
-
s as a,
|
|
81
|
-
_ as u
|
|
82
|
-
};
|
|
83
|
-
//# sourceMappingURL=index.0b534dc6.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.0b534dc6.js","sources":["../../src/composables/initials.ts","../../src/components/avatar-image/avatar-image.types.ts","../../src/components/avatar-image/avatar-image.vue"],"sourcesContent":["import { computed, ComputedRef, ref } from 'vue';\nimport { MaybeRef } from '@/types';\n\n/** Extracts the first letter of a username\n * @param username - The name to return the initials of\n * Common patterns:\n * 1. John => J\n * 2. John Smith => J\n * John Smith Doe Holly => J\n */\nexport const useInitials = (username: MaybeRef<string | null>): ComputedRef<string | null> => {\n const computedUsername = ref(username);\n return computed(() => (computedUsername.value ? computedUsername.value.trim().charAt(0).toUpperCase() : null));\n};\n","export enum BentoAvatarImageVariant {\n LARGE = 'large',\n SMALL = 'small',\n}\n\nexport enum BentoAvatarImageColor {\n BLUE = 'blue',\n GREEN = 'green',\n RED = 'red',\n YELLOW = 'yellow',\n}\n","<template>\n <div class=\"b-avatar-image\" :class=\"conditionalClasses\" aria-hidden=\"true\" data-testid=\"avatar\">\n <img v-if=\"src\" :src=\"src\" class=\"b-avatar-image__image\" alt=\"Profile picture\" data-testid=\"avatar-content\" />\n <div v-else class=\"b-avatar-image__default\" data-testid=\"avatar-content\">\n <bento-typography el=\"span\" variant=\"body\" strongest>\n {{ initials }}\n </bento-typography>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType, toRefs } from 'vue';\n import { BentoAvatarImageColor, BentoAvatarImageVariant } from './avatar-image.types';\n import { BentoTypography } from '@/components/typography';\n import { useInitials } from '@/composables';\n\n export default defineComponent({\n name: 'avatar-image',\n components: { BentoTypography },\n props: {\n /**\n * Image src to load the profile picture.\n */\n src: {\n type: String,\n default: null,\n },\n /**\n * Name of the user that will be used to extract initials to display default value.\n * John => J\n * John Smith => JS\n * John Smith Doe => JD\n * John Smith Doe Holly => JH\n */\n username: {\n type: String,\n default: null,\n },\n /**\n * Variants supported for small and large.\n * Default - large\n */\n variant: {\n type: String as PropType<BentoAvatarImageVariant>,\n default: BentoAvatarImageVariant.LARGE,\n validator: (value: BentoAvatarImageVariant) => Object.values(BentoAvatarImageVariant).includes(value),\n },\n /**\n * Avatar color. Defaults to yellow.\n */\n color: {\n type: String as PropType<BentoAvatarImageColor>,\n default: BentoAvatarImageColor.YELLOW,\n validator: (value: BentoAvatarImageColor) => Object.values(BentoAvatarImageColor).includes(value),\n },\n },\n setup(props) {\n const { username } = toRefs(props);\n const initials = useInitials(username);\n\n const conditionalClasses = computed(() => ({\n [`b-avatar-image--${BentoAvatarImageVariant.SMALL}`]: props.variant === BentoAvatarImageVariant.SMALL,\n [`b-avatar-image--${props.color}`]: props.color,\n }));\n\n return {\n // Values\n conditionalClasses,\n initials,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./avatar-image.scss\" />\n"],"names":["useInitials","username","computedUsername","ref","computed","BentoAvatarImageVariant","BentoAvatarImageVariant2","BentoAvatarImageColor","BentoAvatarImageColor2","_sfc_main","defineComponent","BentoTypography","value","props","toRefs","initials"],"mappings":";;;;;AAUa,MAAAA,IAAA,CAAAC,MAAA;AACT,QAAAC,IAAAC,EAAAF,CAAA;AACA,SAAAG,EAAA,MAAAF,EAAA,QAAAA,EAAA,MAAA,KAAA,EAAA,OAAA,CAAA,EAAA,YAAA,IAAA,IAAA;AACJ;ACbY,IAAAG,IAAA,kBAAAC,OACRA,EAAA,QAAA,SACAA,EAAA,QAAA,SAFQA,IAAAD,KAAA,CAAA,CAAA,GAKAE,IAAA,kBAAAC,OACRA,EAAA,OAAA,QACAA,EAAA,QAAA,SACAA,EAAA,MAAA,OACAA,EAAA,SAAA,UAJQA,IAAAD,KAAA,CAAA,CAAA;ACYZ,MAAAE,IAAAC,EAAA;AAAA,EAAA,MAAA;AAAA,EACA,YAAA,EAAA,iBAAAC,EAAA;AAAA,EACA,OAAA;AAAA;AAAA;AAAA;AAAA,IACA,KAAA;AAAA,MAIA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IACA,UAAA;AAAA,MAQA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA,IACA,SAAA;AAAA,MAKA,MAAA;AAAA,MACA,SAAAN,EAAA;AAAA,MACA,WAAA,CAAAO,MAAA,OAAA,OAAAP,CAAA,EAAA,SAAAO,CAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IACA,OAAA;AAAA,MAIA,MAAA;AAAA,MACA,SAAAL,EAAA;AAAA,MACA,WAAA,CAAAK,MAAA,OAAA,OAAAL,CAAA,EAAA,SAAAK,CAAA;AAAA,IACA;AAAA,EACA;AAAA,EACA,MAAAC,GAAA;AAEA,UAAA,EAAA,UAAAZ,EAAA,IAAAa,EAAAD,CAAA,GACAE,IAAAf,EAAAC,CAAA;AAOA,WAAA;AAAA;AAAA,MAAA,oBALAG,EAAA,OAAA;AAAA,QAAA,CAAA,mBAAAC,EAAA,OAAA,GAAAQ,EAAA,YAAAR,EAAA;AAAA,QACA,CAAA,mBAAAQ,EAAA,OAAA,GAAAA,EAAA;AAAA,MACA,EAAA;AAAA,MAKA,UAAAE;AAAA,IACA;AAAA,EACA;AAEA,CAAA;;;;;;;;;;;;;;;"}
|