@adyen/bento-vue3 1.8.0 → 1.9.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/packages/vue2/src/components/data-grid/composables/useKeyboardNavigator/useKeyboardNavigator.d.ts +6 -2
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useScroller/useScroller.d.ts +6 -0
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +23 -422
- package/dist/@types/packages/vue2/src/components/divider/divider.vue.d.ts +1 -5
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +10 -0
- package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +12 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/base-filter.vue.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/input-field/input-field.types.d.ts +1 -3
- package/dist/@types/packages/vue2/src/components/internal/field-label/field-label.vue.d.ts +9 -0
- package/dist/accordion.js +2 -2
- package/dist/action-bar.js +4 -4
- package/dist/alert.js +58 -59
- package/dist/alert.js.map +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/checkbox.css +1 -1
- package/dist/assets/copy.css +1 -1
- package/dist/assets/cross.css +1 -1
- package/dist/assets/dropdown-default-textbox.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/field-label.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/index16.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/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/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/listbox.css +1 -1
- package/dist/avatar-image.js +1 -1
- package/dist/button.js +3 -3
- package/dist/card.js +2 -2
- package/dist/checkbox.js +5 -5
- package/dist/chunks/arrow-left.81a91b8f.js +29 -0
- package/dist/chunks/arrow-left.81a91b8f.js.map +1 -0
- package/dist/chunks/{base-modal.3dcf8376.js → base-modal.a629cb32.js} +3 -3
- package/dist/chunks/{base-modal.3dcf8376.js.map → base-modal.a629cb32.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.3f52ea2d.js → button-actions-with-menu.f6dfb14d.js} +3 -3
- package/dist/chunks/{button-actions-with-menu.3f52ea2d.js.map → button-actions-with-menu.f6dfb14d.js.map} +1 -1
- package/dist/chunks/{calendar.d4ab387d.js → calendar.fa7712e8.js} +2 -2
- package/dist/chunks/{calendar.d4ab387d.js.map → calendar.fa7712e8.js.map} +1 -1
- package/dist/chunks/{checkbox.03c4b0fe.js → checkbox.731dc0ab.js} +71 -72
- package/dist/chunks/checkbox.731dc0ab.js.map +1 -0
- package/dist/chunks/checkmark-circle-fill.c45a999d.js +44 -0
- package/dist/chunks/checkmark-circle-fill.c45a999d.js.map +1 -0
- package/dist/chunks/checkmark-small.c79220d9.js +29 -0
- package/dist/chunks/checkmark-small.c79220d9.js.map +1 -0
- package/dist/chunks/checkmark.eb3c7a06.js +29 -0
- package/dist/chunks/checkmark.eb3c7a06.js.map +1 -0
- package/dist/chunks/chevron-left.4ee92950.js +52 -0
- package/dist/chunks/chevron-left.4ee92950.js.map +1 -0
- package/dist/chunks/chevron-up.46afb34c.js +52 -0
- package/dist/chunks/chevron-up.46afb34c.js.map +1 -0
- package/dist/chunks/{controls-group.807b5fb0.js → controls-group.d6543674.js} +2 -2
- package/dist/chunks/{controls-group.807b5fb0.js.map → controls-group.d6543674.js.map} +1 -1
- package/dist/chunks/{copy.28bd4298.js → copy.330d594e.js} +36 -37
- package/dist/chunks/copy.330d594e.js.map +1 -0
- package/dist/chunks/cross-circle-fill.1abec1a2.js +44 -0
- package/dist/chunks/cross-circle-fill.1abec1a2.js.map +1 -0
- package/dist/chunks/cross.26509efc.js +29 -0
- package/dist/chunks/cross.26509efc.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.74c4584a.js → dropdown-default-textbox.4108b289.js} +63 -58
- package/dist/chunks/{dropdown-default-textbox.74c4584a.js.map → dropdown-default-textbox.4108b289.js.map} +1 -1
- package/dist/chunks/{dropdown.502e1f5c.js → dropdown.63de9aac.js} +209 -201
- package/dist/chunks/dropdown.63de9aac.js.map +1 -0
- package/dist/chunks/field-label.3c19a29a.js +146 -0
- package/dist/chunks/field-label.3c19a29a.js.map +1 -0
- package/dist/chunks/{fixed-scroller.92bb77a6.js → fixed-scroller.bced60dd.js} +2 -2
- package/dist/chunks/{fixed-scroller.92bb77a6.js.map → fixed-scroller.bced60dd.js.map} +1 -1
- package/dist/chunks/{index.cf0d3be3.js → index.4d2a13e1.js} +2 -2
- package/dist/chunks/{index.cf0d3be3.js.map → index.4d2a13e1.js.map} +1 -1
- package/dist/chunks/{index.d2542c6a.js → index.73ed22a7.js} +145 -150
- package/dist/chunks/index.73ed22a7.js.map +1 -0
- package/dist/chunks/{index.7262642e.js → index.85832db5.js} +3 -3
- package/dist/chunks/{index.7262642e.js.map → index.85832db5.js.map} +1 -1
- package/dist/chunks/{index.abb2a1d5.js → index.89dfe209.js} +2 -2
- package/dist/chunks/{index.abb2a1d5.js.map → index.89dfe209.js.map} +1 -1
- package/dist/chunks/{index.726e2f3c.js → index.98174339.js} +4 -4
- package/dist/chunks/{index.726e2f3c.js.map → index.98174339.js.map} +1 -1
- package/dist/chunks/{index.e9156fe3.js → index.c6fecf1c.js} +7 -7
- package/dist/chunks/{index.e9156fe3.js.map → index.c6fecf1c.js.map} +1 -1
- package/dist/chunks/{index.b043371e.js → index.edcaf766.js} +5 -5
- package/dist/chunks/{index.b043371e.js.map → index.edcaf766.js.map} +1 -1
- package/dist/chunks/info-filled.e591599f.js +67 -0
- package/dist/chunks/info-filled.e591599f.js.map +1 -0
- package/dist/chunks/{listbox-option-tag.5b00c85f.js → listbox-option-tag.b1eb32bd.js} +2 -2
- package/dist/chunks/{listbox-option-tag.5b00c85f.js.map → listbox-option-tag.b1eb32bd.js.map} +1 -1
- package/dist/chunks/{listbox.d07c24e6.js → listbox.ac43f8ab.js} +39 -36
- package/dist/chunks/{listbox.d07c24e6.js.map → listbox.ac43f8ab.js.map} +1 -1
- package/dist/chunks/{loading-button.ad7cfaee.js → loading-button.4b88e24d.js} +3 -3
- package/dist/chunks/{loading-button.ad7cfaee.js.map → loading-button.4b88e24d.js.map} +1 -1
- package/dist/chunks/refresh.bd60f6a8.js +29 -0
- package/dist/chunks/refresh.bd60f6a8.js.map +1 -0
- package/dist/chunks/search.ade93bda.js +44 -0
- package/dist/chunks/search.ade93bda.js.map +1 -0
- package/dist/chunks/{tooltip.054d2eb6.js → tooltip.27c32d36.js} +2 -2
- package/dist/chunks/{tooltip.054d2eb6.js.map → tooltip.27c32d36.js.map} +1 -1
- package/dist/code-snippet.js +425 -428
- package/dist/code-snippet.js.map +1 -1
- package/dist/country.js +1 -1
- package/dist/data-grid.js +1080 -1140
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +6 -6
- package/dist/date-range-picker.js +2 -2
- package/dist/divider.js +9 -26
- package/dist/divider.js.map +1 -1
- package/dist/dropdown.js +3 -3
- package/dist/empty-state.js +1 -1
- package/dist/filter-bar.js +1035 -836
- package/dist/filter-bar.js.map +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header.js +2 -2
- package/dist/index.js +12 -12
- package/dist/info-icon.js +38 -39
- package/dist/info-icon.js.map +1 -1
- package/dist/input-field.js +105 -107
- package/dist/input-field.js.map +1 -1
- package/dist/internal.js +7 -7
- package/dist/link.js +1 -1
- package/dist/loading-indicator.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal.js +1 -1
- package/dist/pagination.js +149 -157
- package/dist/pagination.js.map +1 -1
- package/dist/payment-method.js +2 -2
- package/dist/payment-method.js.map +1 -1
- package/dist/popover.js +1 -1
- package/dist/popper-container.js +1 -1
- package/dist/radio-group.js +3 -3
- package/dist/search-bar.js +4 -4
- package/dist/segmented-control.js +3 -3
- package/dist/sidepanel.js +4 -4
- package/dist/status.js +1 -1
- package/dist/stepper.js +78 -79
- package/dist/stepper.js.map +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +2 -2
- package/dist/tabs.js +2 -2
- package/dist/tag.js +2 -2
- package/dist/textarea.js +46 -47
- package/dist/textarea.js.map +1 -1
- package/dist/timeline.js +92 -93
- package/dist/timeline.js.map +1 -1
- package/dist/toast.js +2 -2
- package/dist/toggle.js +2 -2
- package/dist/tutorial.js +86 -87
- package/dist/tutorial.js.map +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +4 -4
- package/dist/assets/arrow-left.css +0 -1
- package/dist/assets/checkmark-circle-fill.css +0 -1
- package/dist/assets/checkmark-small.css +0 -1
- package/dist/assets/checkmark.css +0 -1
- package/dist/assets/chevron-left.css +0 -1
- package/dist/assets/chevron-up.css +0 -1
- package/dist/assets/cross-circle-fill.css +0 -1
- package/dist/assets/info-filled.css +0 -1
- package/dist/assets/refresh.css +0 -1
- package/dist/assets/search.css +0 -1
- package/dist/chunks/arrow-left.cdbcc128.js +0 -30
- package/dist/chunks/arrow-left.cdbcc128.js.map +0 -1
- package/dist/chunks/checkbox.03c4b0fe.js.map +0 -1
- package/dist/chunks/checkmark-circle-fill.e6b84561.js +0 -45
- package/dist/chunks/checkmark-circle-fill.e6b84561.js.map +0 -1
- package/dist/chunks/checkmark-small.3e93a119.js +0 -30
- package/dist/chunks/checkmark-small.3e93a119.js.map +0 -1
- package/dist/chunks/checkmark.83e4f1e0.js +0 -30
- package/dist/chunks/checkmark.83e4f1e0.js.map +0 -1
- package/dist/chunks/chevron-left.2fd6b083.js +0 -54
- package/dist/chunks/chevron-left.2fd6b083.js.map +0 -1
- package/dist/chunks/chevron-up.9bf21068.js +0 -54
- package/dist/chunks/chevron-up.9bf21068.js.map +0 -1
- package/dist/chunks/copy.28bd4298.js.map +0 -1
- package/dist/chunks/cross-circle-fill.0feb37b3.js +0 -45
- package/dist/chunks/cross-circle-fill.0feb37b3.js.map +0 -1
- package/dist/chunks/cross.5c36a670.js +0 -30
- package/dist/chunks/cross.5c36a670.js.map +0 -1
- package/dist/chunks/dropdown.502e1f5c.js.map +0 -1
- package/dist/chunks/field-label.61679178.js +0 -132
- package/dist/chunks/field-label.61679178.js.map +0 -1
- package/dist/chunks/index.d2542c6a.js.map +0 -1
- package/dist/chunks/info-filled.514a2db6.js +0 -69
- package/dist/chunks/info-filled.514a2db6.js.map +0 -1
- package/dist/chunks/refresh.c38c9eee.js +0 -30
- package/dist/chunks/refresh.c38c9eee.js.map +0 -1
- package/dist/chunks/search.d18f9657.js +0 -45
- package/dist/chunks/search.d18f9657.js.map +0 -1
package/dist/focus-trap.js
CHANGED
package/dist/form-layout.js
CHANGED
|
@@ -4,7 +4,7 @@ import { F as k } from "./chunks/form-layout.types.a7a1438d.js";
|
|
|
4
4
|
import { u as F } from "./chunks/use-has-slot.4d98bf29.js";
|
|
5
5
|
import { _ as m } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
6
6
|
import { B as y, c as G } from "./chunks/index.75f3672e.js";
|
|
7
|
-
import "./assets/
|
|
7
|
+
import "./assets/index35.css";
|
|
8
8
|
const A = {
|
|
9
9
|
key: 1,
|
|
10
10
|
class: "b-form-layout__actions-container"
|
package/dist/header.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as H, computed as g, resolveComponent as _, openBlock as p, createElementBlock as R, normalizeClass as k, createElementVNode as M, createVNode as Y, mergeProps as G, withCtx as I, createTextVNode as S, toDisplayString as E, createBlock as T, createCommentVNode as D } from "vue";
|
|
2
|
-
import { B as L } from "./chunks/button-actions-with-menu.
|
|
2
|
+
import { B as L } from "./chunks/button-actions-with-menu.f6dfb14d.js";
|
|
3
3
|
import { BentoInfoIcon as V } from "./info-icon.js";
|
|
4
4
|
import { u as $ } from "./chunks/use-has-slot.4d98bf29.js";
|
|
5
5
|
import { B as z, c as O, a as W } from "./chunks/index.75f3672e.js";
|
|
@@ -9,7 +9,7 @@ import { r as d, t as c, e as y, g as A, d as F, f as J } from "./chunks/index.f
|
|
|
9
9
|
import { e as K } from "./chunks/index.fdf12170.js";
|
|
10
10
|
import { e as Q } from "./chunks/index.d80206ed.js";
|
|
11
11
|
import { _ as Z } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
12
|
-
import "./assets/
|
|
12
|
+
import "./assets/index36.css";
|
|
13
13
|
function ee(e, r) {
|
|
14
14
|
d(2, arguments);
|
|
15
15
|
var a = c(e), t = c(r), i = a.getFullYear() - t.getFullYear(), n = a.getMonth() - t.getMonth();
|
package/dist/index.js
CHANGED
|
@@ -10,11 +10,11 @@ import { a as te, b as oe, B as re } from "./chunks/button.82ed953e.js";
|
|
|
10
10
|
import { BentoCard as ae, BentoCardBackground as ie, BentoCardTitleSize as Be } from "./card.js";
|
|
11
11
|
import { BentoColumnOverflow as me, BentoDataGrid as pe, BentoDatagridAriaSortValue as le, BentoDatagridEvent as de, BentoDatagridSortDirection as ue, BentoDatagridStyleState as fe } from "./data-grid.js";
|
|
12
12
|
import { BentoDatePicker as ye, BentoDatePickerEvent as xe } from "./date-picker.js";
|
|
13
|
-
import { B as Te, a as Se } from "./chunks/index.
|
|
14
|
-
import { B as Ce, u as be } from "./chunks/dropdown.
|
|
13
|
+
import { B as Te, a as Se } from "./chunks/index.c6fecf1c.js";
|
|
14
|
+
import { B as Ce, u as be } from "./chunks/dropdown.63de9aac.js";
|
|
15
15
|
import { BentoDropdownAvatar as ve, BentoDropdownCountry as De, BentoDropdownCurrency as Ie, BentoDropdownPaymentMethod as Ee, BentoDropdownTag as Le } from "./dropdown.js";
|
|
16
16
|
import { BentoDivider as Fe } from "./divider.js";
|
|
17
|
-
import { B as Ve, b as we, a as Ae } from "./chunks/checkbox.
|
|
17
|
+
import { B as Ve, b as we, a as Ae } from "./chunks/checkbox.731dc0ab.js";
|
|
18
18
|
import { BentoClickOutside as Me } from "./click-outside.js";
|
|
19
19
|
import { BentoCodeSnippet as $e, BentoCodeSnippetEvent as Re, BentoCodeSnippetSupportedLanguage as Ue, BentoCodeSnippetVariant as Ne } from "./code-snippet.js";
|
|
20
20
|
import { BentoCountry as ze, BentoCountryCode as Ke, BentoCountryVariant as Qe, useCountryCapital as We, useCountryName as je, useCountryPhoneCode as He } from "./country.js";
|
|
@@ -27,19 +27,19 @@ import { BentoImage as gt, BentoImageAspectRatio as Tt, BentoImageObjectFit as S
|
|
|
27
27
|
import { BentoInfoIcon as Ct } from "./info-icon.js";
|
|
28
28
|
import { BentoInputField as kt, BentoInputFieldElementPosition as vt, BentoInputFieldEvent as Dt, BentoInputFieldStateClass as It, BentoInputFieldType as Et, BentoInputFieldVariant as Lt } from "./input-field.js";
|
|
29
29
|
import { BentoLoadingIndicator as Ft, BentoLoadingIndicatorEvent as _t } from "./loading-indicator.js";
|
|
30
|
-
import { B as wt, a as At } from "./chunks/index.
|
|
30
|
+
import { B as wt, a as At } from "./chunks/index.73ed22a7.js";
|
|
31
31
|
import { BentoModal as Mt } from "./modal.js";
|
|
32
|
-
import { b as $t, d as Rt, e as Ut, c as Nt, a as qt, B as zt } from "./chunks/base-modal.
|
|
32
|
+
import { b as $t, d as Rt, e as Ut, c as Nt, a as qt, B as zt } from "./chunks/base-modal.a629cb32.js";
|
|
33
33
|
import { BentoHeader as Qt } from "./header.js";
|
|
34
34
|
import { BentoPagination as jt } from "./pagination.js";
|
|
35
35
|
import { BentoPaymentMethod as Jt, BentoPaymentMethodType as Xt } from "./payment-method.js";
|
|
36
|
-
import { a as Zt, B as eo } from "./chunks/index.
|
|
36
|
+
import { a as Zt, B as eo } from "./chunks/index.98174339.js";
|
|
37
37
|
import { BentoRadioGroup as oo, BentoRadioGroupVariant as ro } from "./radio-group.js";
|
|
38
38
|
import { BentoSearchBar as ao, BentoSearchBarEvent as io, BentoSearchBarInternalEvent as Bo } from "./search-bar.js";
|
|
39
39
|
import { BentoSegmentedControl as mo, BentoSegmentedControlEvent as po } from "./segmented-control.js";
|
|
40
40
|
import { BentoStatus as uo, BentoStatusVariant as fo } from "./status.js";
|
|
41
41
|
import { BentoStep as yo, BentoStepper as xo, BentoStepperTypeOption as go, BentoStepperVariantOption as To } from "./stepper.js";
|
|
42
|
-
import { B as ho, a as Co } from "./chunks/index.
|
|
42
|
+
import { B as ho, a as Co } from "./chunks/index.edcaf766.js";
|
|
43
43
|
import { BentoSummaryGrid as ko, BentoSummaryGridItemAmount as vo, BentoSummaryGridItemCustom as Do, BentoSummaryGridItemNumeric as Io, BentoSummaryGridItemPercentage as Eo, BentoSummaryGridItemSize as Lo, BentoSummaryGridItemText as Po, BentoSummaryGridItemTrendDirection as Fo } from "./summary-grid.js";
|
|
44
44
|
import { BentoTab as Vo, BentoTabs as wo } from "./tabs.js";
|
|
45
45
|
import { BentoTag as Go, BentoTagVariant as Mo } from "./tag.js";
|
|
@@ -52,18 +52,18 @@ import { B as c } from "./chunks/index.75f3672e.js";
|
|
|
52
52
|
import { c as tr, b as or, a as rr } from "./chunks/index.75f3672e.js";
|
|
53
53
|
import { D as ar } from "./chunks/date-input.9186a0bf.js";
|
|
54
54
|
import { a as Br, B as sr } from "./chunks/keyboard-navigation.ca47dfa8.js";
|
|
55
|
-
import { a as pr, b as lr } from "./chunks/listbox.
|
|
55
|
+
import { a as pr, b as lr } from "./chunks/listbox.ac43f8ab.js";
|
|
56
56
|
import { B as ur } from "./chunks/directive.0408e565.js";
|
|
57
|
-
import { b as cr, B as yr, a as xr } from "./chunks/tooltip.
|
|
57
|
+
import { b as cr, B as yr, a as xr } from "./chunks/tooltip.27c32d36.js";
|
|
58
58
|
import { BentoButtonActions as Tr, BentoButtonActionsLayout as Sr, BentoButtonActionsLayoutBasic as hr, BentoButtonActionsLayoutExtended as Cr } from "./button.js";
|
|
59
|
-
import { B as kr, a as vr } from "./chunks/loading-button.
|
|
60
|
-
import { b as Ir, b as Er } from "./chunks/calendar.
|
|
59
|
+
import { B as kr, a as vr } from "./chunks/loading-button.4b88e24d.js";
|
|
60
|
+
import { b as Ir, b as Er } from "./chunks/calendar.fa7712e8.js";
|
|
61
61
|
import { BentoCheckboxGroup as Pr, BentoCheckboxGroupVariant as Fr } from "./checkbox.js";
|
|
62
62
|
import { BentoLinkVariant as d } from "./link.js";
|
|
63
63
|
import { RouterLink as y } from "vue-router";
|
|
64
64
|
import { _ as E } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
65
65
|
import { BentoTutorial as Vr } from "./tutorial.js";
|
|
66
|
-
import "./assets/
|
|
66
|
+
import "./assets/index13.css";
|
|
67
67
|
class L {
|
|
68
68
|
constructor() {
|
|
69
69
|
f(this, "_state");
|
package/dist/info-icon.js
CHANGED
|
@@ -1,49 +1,48 @@
|
|
|
1
|
-
import { openBlock as
|
|
2
|
-
import { c as
|
|
3
|
-
import { b as
|
|
1
|
+
import { openBlock as e, createElementBlock as i, mergeProps as u, toDisplayString as f, createCommentVNode as h, createElementVNode as o, defineComponent as m, resolveComponent as v, resolveDirective as g, withDirectives as b, createVNode as $ } from "vue";
|
|
2
|
+
import { c as n } from "./chunks/index.85832db5.js";
|
|
3
|
+
import { b as y } from "./chunks/tooltip.27c32d36.js";
|
|
4
4
|
import { _ as r } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
5
|
-
import "./assets/
|
|
6
|
-
let
|
|
7
|
-
const
|
|
5
|
+
import "./assets/index32.css";
|
|
6
|
+
let s = 0;
|
|
7
|
+
const V = {
|
|
8
8
|
beforeCreate() {
|
|
9
|
-
this.uuid =
|
|
9
|
+
this.uuid = s.toString(), s += 1;
|
|
10
10
|
}
|
|
11
|
-
},
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
],
|
|
11
|
+
}, w = { key: 0 }, I = ["clip-path"], P = /* @__PURE__ */ o("path", { d: "M8.58147 5.05557C8.69135 4.89112 8.75 4.69778 8.75 4.5C8.75 4.23478 8.64464 3.98043 8.45711 3.79289C8.26957 3.60536 8.01522 3.5 7.75 3.5C7.55222 3.5 7.35888 3.55865 7.19443 3.66853C7.02998 3.77841 6.90181 3.93459 6.82612 4.11732C6.75043 4.30004 6.73063 4.50111 6.76921 4.69509C6.8078 4.88907 6.90304 5.06725 7.04289 5.20711C7.18275 5.34696 7.36093 5.4422 7.55491 5.48079C7.74889 5.51937 7.94996 5.49957 8.13268 5.42388C8.31541 5.34819 8.47159 5.22002 8.58147 5.05557Z" }, null, -1), T = /* @__PURE__ */ o("path", { d: "M6.25 6.25H8.75V10.25H9.75V11.75H6.25V10.25H7.25V7.75H6.25V6.25Z" }, null, -1), H = /* @__PURE__ */ o("path", { d: "M9.51195 0.398918C8.0086 0.0998821 6.45033 0.253358 5.0342 0.839937C3.61808 1.42652 2.40769 2.41985 1.55611 3.69433C0.704529 4.96881 0.25 6.4672 0.25 8C0.25 10.0554 1.06652 12.0267 2.51992 13.4801C3.97333 14.9335 5.94457 15.75 8 15.75C9.53281 15.75 11.0312 15.2955 12.3057 14.4439C13.5801 13.5923 14.5735 12.3819 15.1601 10.9658C15.7466 9.54967 15.9001 7.99141 15.6011 6.48805C15.3021 4.9847 14.5639 3.60378 13.4801 2.51993C12.3962 1.43607 11.0153 0.697953 9.51195 0.398918ZM5.60823 2.22576C6.75027 1.75271 8.00693 1.62894 9.21931 1.8701C10.4317 2.11125 11.5453 2.70651 12.4194 3.58059C13.2935 4.45466 13.8887 5.56831 14.1299 6.78069C14.3711 7.99307 14.2473 9.24974 13.7742 10.3918C13.3012 11.5338 12.5001 12.5099 11.4723 13.1967C10.4445 13.8834 9.23613 14.25 8 14.25C6.3424 14.25 4.75268 13.5915 3.58058 12.4194C2.40848 11.2473 1.75 9.65761 1.75 8C1.75 6.76387 2.11656 5.5555 2.80331 4.52769C3.49007 3.49988 4.46619 2.6988 5.60823 2.22576Z" }, null, -1), B = [
|
|
12
|
+
P,
|
|
13
|
+
T,
|
|
14
|
+
H
|
|
15
|
+
], D = ["id"], M = /* @__PURE__ */ o("rect", {
|
|
16
16
|
width: "16",
|
|
17
17
|
height: "16",
|
|
18
18
|
fill: "#fff"
|
|
19
|
-
}, null, -1)
|
|
20
|
-
|
|
19
|
+
}, null, -1), S = [
|
|
20
|
+
M
|
|
21
21
|
];
|
|
22
|
-
function
|
|
23
|
-
return
|
|
22
|
+
function Z(t, c, l, _, a, d) {
|
|
23
|
+
return e(), i("svg", u({ role: "img" }, t.$attrs, {
|
|
24
|
+
class: "ui-assets-icons-16",
|
|
24
25
|
xmlns: "http://www.w3.org/2000/svg",
|
|
25
26
|
width: "16",
|
|
26
27
|
height: "16",
|
|
27
28
|
fill: "none"
|
|
28
29
|
}), [
|
|
29
|
-
t.$attrs["svg-title"] ? (
|
|
30
|
-
|
|
30
|
+
t.$attrs["svg-title"] ? (e(), i("title", w, f(t.$attrs["svg-title"]), 1)) : h("", !0),
|
|
31
|
+
o("g", {
|
|
31
32
|
fill: "#00112C",
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
e("defs", null, [
|
|
37
|
-
e("clipPath", {
|
|
33
|
+
"clip-path": "url(#uia-icons-16-info__a" + t.uuid + ")"
|
|
34
|
+
}, B, 8, I),
|
|
35
|
+
o("defs", null, [
|
|
36
|
+
o("clipPath", {
|
|
38
37
|
id: "uia-icons-16-info__a" + t.uuid
|
|
39
|
-
},
|
|
38
|
+
}, S, 8, D)
|
|
40
39
|
])
|
|
41
40
|
], 16);
|
|
42
41
|
}
|
|
43
|
-
const
|
|
42
|
+
const k = /* @__PURE__ */ r(V, [["render", Z]]), x = m({
|
|
44
43
|
name: "bento-info-icon",
|
|
45
|
-
components: { InfoIcon:
|
|
46
|
-
directives: { BentoTooltipDirective:
|
|
44
|
+
components: { InfoIcon: k },
|
|
45
|
+
directives: { BentoTooltipDirective: y },
|
|
47
46
|
props: {
|
|
48
47
|
/**
|
|
49
48
|
* Text showed in the info-icon tooltip on hover
|
|
@@ -54,29 +53,29 @@ const E = /* @__PURE__ */ r(P, [["render", N], ["__scopeId", "data-v-20ae506d"]]
|
|
|
54
53
|
*/
|
|
55
54
|
tooltipPosition: {
|
|
56
55
|
type: String,
|
|
57
|
-
default:
|
|
58
|
-
validator: (t) => Object.values(
|
|
56
|
+
default: n.AUTO,
|
|
57
|
+
validator: (t) => Object.values(n).includes(t)
|
|
59
58
|
}
|
|
60
59
|
}
|
|
61
60
|
});
|
|
62
|
-
const
|
|
63
|
-
function
|
|
64
|
-
const
|
|
65
|
-
return
|
|
61
|
+
const N = ["aria-label"];
|
|
62
|
+
function E(t, c, l, _, a, d) {
|
|
63
|
+
const p = v("info-icon", !0), C = g("bento-tooltip-directive");
|
|
64
|
+
return b((e(), i("span", {
|
|
66
65
|
"aria-label": t.tooltipText,
|
|
67
66
|
class: "b-info-icon",
|
|
68
67
|
tabindex: "0"
|
|
69
68
|
}, [
|
|
70
|
-
|
|
69
|
+
$(p, {
|
|
71
70
|
"svg-title": t.tooltipText,
|
|
72
71
|
class: "b-info-icon__svg"
|
|
73
72
|
}, null, 8, ["svg-title"])
|
|
74
|
-
], 8,
|
|
75
|
-
[
|
|
73
|
+
], 8, N)), [
|
|
74
|
+
[C, t.tooltipText, t.tooltipPosition]
|
|
76
75
|
]);
|
|
77
76
|
}
|
|
78
|
-
const
|
|
77
|
+
const U = /* @__PURE__ */ r(x, [["render", E], ["__scopeId", "data-v-ded345b1"]]);
|
|
79
78
|
export {
|
|
80
|
-
|
|
79
|
+
U as BentoInfoIcon
|
|
81
80
|
};
|
|
82
81
|
//# sourceMappingURL=info-icon.js.map
|
package/dist/info-icon.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"info-icon.js","sources":["
|
|
1
|
+
{"version":3,"file":"info-icon.js","sources":["../../vue2/node_modules/@adyen/ui-assets-icons-16/dist/vue/info.vue","../../vue2/src/components/info-icon/info-icon.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><g fill=\"#00112C\" :clip-path=\"'url(#uia-icons-16-info__a' + uuid + ')'\"><path d=\"M8.58147 5.05557C8.69135 4.89112 8.75 4.69778 8.75 4.5C8.75 4.23478 8.64464 3.98043 8.45711 3.79289C8.26957 3.60536 8.01522 3.5 7.75 3.5C7.55222 3.5 7.35888 3.55865 7.19443 3.66853C7.02998 3.77841 6.90181 3.93459 6.82612 4.11732C6.75043 4.30004 6.73063 4.50111 6.76921 4.69509C6.8078 4.88907 6.90304 5.06725 7.04289 5.20711C7.18275 5.34696 7.36093 5.4422 7.55491 5.48079C7.74889 5.51937 7.94996 5.49957 8.13268 5.42388C8.31541 5.34819 8.47159 5.22002 8.58147 5.05557Z\"/><path d=\"M6.25 6.25H8.75V10.25H9.75V11.75H6.25V10.25H7.25V7.75H6.25V6.25Z\"/><path d=\"M9.51195 0.398918C8.0086 0.0998821 6.45033 0.253358 5.0342 0.839937C3.61808 1.42652 2.40769 2.41985 1.55611 3.69433C0.704529 4.96881 0.25 6.4672 0.25 8C0.25 10.0554 1.06652 12.0267 2.51992 13.4801C3.97333 14.9335 5.94457 15.75 8 15.75C9.53281 15.75 11.0312 15.2955 12.3057 14.4439C13.5801 13.5923 14.5735 12.3819 15.1601 10.9658C15.7466 9.54967 15.9001 7.99141 15.6011 6.48805C15.3021 4.9847 14.5639 3.60378 13.4801 2.51993C12.3962 1.43607 11.0153 0.697953 9.51195 0.398918ZM5.60823 2.22576C6.75027 1.75271 8.00693 1.62894 9.21931 1.8701C10.4317 2.11125 11.5453 2.70651 12.4194 3.58059C13.2935 4.45466 13.8887 5.56831 14.1299 6.78069C14.3711 7.99307 14.2473 9.24974 13.7742 10.3918C13.3012 11.5338 12.5001 12.5099 11.4723 13.1967C10.4445 13.8834 9.23613 14.25 8 14.25C6.3424 14.25 4.75268 13.5915 3.58058 12.4194C2.40848 11.2473 1.75 9.65761 1.75 8C1.75 6.76387 2.11656 5.5555 2.80331 4.52769C3.49007 3.49988 4.46619 2.6988 5.60823 2.22576Z\"/></g><defs><clipPath :id=\"'uia-icons-16-info__a' + uuid\"><rect width=\"16\" height=\"16\" fill=\"#fff\"/></clipPath></defs></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","<template>\n <span\n v-bento-tooltip-directive:[tooltipPosition]=\"tooltipText\"\n :aria-label=\"tooltipText\"\n class=\"b-info-icon\"\n tabindex=\"0\"\n >\n <info-icon :svg-title=\"tooltipText\" class=\"b-info-icon__svg\" />\n </span>\n</template>\n\n<script lang=\"ts\">\n import { defineComponent, PropType } from 'vue';\n import { PopperContainerPosition } from '@/components/popper-container';\n import { BentoTooltipDirective } from '@/directives';\n import InfoIcon from '@adyen/ui-assets-icons-16/vue/info';\n\n /**\n * @example\n * import { BentoInfoIcon } from '@adyen/adl-vue-components';\n *\n * export default {\n * components: { BentoInfoIcon },\n * template: `\n * <bento-info-icon tooltip-text=\"Text on hover\" />\n * `\n * }\n */\n export default defineComponent({\n name: 'bento-info-icon',\n components: { InfoIcon },\n directives: { BentoTooltipDirective },\n props: {\n /**\n * Text showed in the info-icon tooltip on hover\n */\n tooltipText: { type: String, required: true },\n\n /**\n * Position the tooltip should take if space is available. Defaults to 'auto'\n */\n tooltipPosition: {\n type: String as PropType<PopperContainerPosition | `${PopperContainerPosition}`>,\n default: PopperContainerPosition.AUTO,\n validator: (value: PopperContainerPosition) => Object.values(PopperContainerPosition).includes(value),\n },\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./info-icon.scss\" />\n"],"names":["uuid","openBlock","createElementBlock","mergeProps","_ctx","_hoisted_1$1","toDisplayString","_sfc_main","defineComponent","InfoIcon","BentoTooltipDirective","PopperContainerPosition","value"],"mappings":";;;;;AAKI,IAAAA,IAAA;;EAGI,eAAA;8BAEIA,KAAA;AAAA;;;;;;EARqyD,OAAA;AAAA,EAAW,QAAA;AAAA,EAAY,MAAA;;;;;AAAp0D,SAAAC,EAAA,GAAAC,EAAA,OAAAC,EAAA,EAAA,MAAA,MAAA,GAAAC,EAAA,QAAA;AAAA,IAAgC,OAAA;AAAA,IAA2B,OAAA;AAAA,IAAmC,OAAA;AAAA,IAAW,QAAA;AAAA,IAAY,MAAA;AAAA;6BAAYH,EAAA,GAAAC,EAAA,SAAAG,GAAAC,EAAAF,EAAA,OAAA,WAAA,CAAA,GAAA,CAAA;;MAAsE,MAAA;AAAA,MAAgB,aAAA,8BAAAA,EAAA,OAAA;AAAA;;;QAA6iD,IAAA,yBAAAA,EAAA;AAAA;;;;iDC0BpwDG,IAAAC,EAAA;AAAA,EAA+B,MAAA;AAAA,EACrB,YAAA,EAAA,UAAAC,EAAA;AAAA,EACiB,YAAA,EAAA,uBAAAC,EAAA;AAAA,EACa,OAAA;AAAA;AAAA;AAAA;AAAA,IAC7B,aAAA,EAAA,MAAA,QAAA,UAAA,GAAA;AAAA;AAAA;AAAA;AAAA,IAIyC,iBAAA;AAAA,MAK3B,MAAA;AAAA,MACP,SAAAC,EAAA;AAAA,MAC2B,WAAA,CAAAC,MAAA,OAAA,OAAAD,CAAA,EAAA,SAAAC,CAAA;AAAA,IACmE;AAAA,EACxG;AAER,CAAA;;;;;IA3CuB,cAAAR,EAAA;AAAA,IACP,OAAA;AAAA,IAEZ,UAAA;AAAA,EAAA,GAAA;AAAA;MAA4D,aAAAA,EAAA;AAAA;;;;;;;","x_google_ignoreList":[0]}
|
package/dist/input-field.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { B, a as
|
|
3
|
-
import { d as pe, B as
|
|
4
|
-
import { g as
|
|
1
|
+
import { defineComponent as oe, useAttrs as de, useSlots as ie, ref as U, toRef as re, computed as r, toRefs as ne, openBlock as d, createBlock as p, unref as t, normalizeClass as le, withCtx as w, renderSlot as c, createCommentVNode as n, createElementVNode as V, createElementBlock as y, withModifiers as B, mergeProps as L, withKeys as se, createVNode as ue } from "vue";
|
|
2
|
+
import { B as H, a as x } from "./chunks/dropdown.63de9aac.js";
|
|
3
|
+
import { d as pe, B as _ } from "./chunks/index.75f3672e.js";
|
|
4
|
+
import { g as D } from "./chunks/unique-id.a2a2b458.js";
|
|
5
5
|
import { g as ce } from "./chunks/get-slot-text.bead058f.js";
|
|
6
6
|
import { u as fe } from "./chunks/aria-label.ac9651a5.js";
|
|
7
7
|
import { u as be } from "./chunks/i18n.6c402773.js";
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { F as me, E as
|
|
11
|
-
import { _ as
|
|
12
|
-
import "./assets/
|
|
13
|
-
var f = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.PAYMENT_METHOD = "payment-method", e.STATIC_VALUE = "static-value", e.DROPDOWN = "dropdown", e))(f || {}), l = /* @__PURE__ */ ((e) => (e.START = "start", e.END = "end", e))(l || {}),
|
|
14
|
-
const
|
|
8
|
+
import { u as ye } from "./chunks/use-form-layout-loading.d03e5d48.js";
|
|
9
|
+
import { u as ve } from "./chunks/use-has-slot.4d98bf29.js";
|
|
10
|
+
import { F as me, E as we } from "./chunks/field-label.3c19a29a.js";
|
|
11
|
+
import { _ as De } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
12
|
+
import "./assets/index41.css";
|
|
13
|
+
var f = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.PAYMENT_METHOD = "payment-method", e.STATIC_VALUE = "static-value", e.DROPDOWN = "dropdown", e))(f || {}), l = /* @__PURE__ */ ((e) => (e.START = "start", e.END = "end", e))(l || {}), S = /* @__PURE__ */ ((e) => (e.CONDENSED = "condensed", e.DISABLED = "disabled", e.READONLY = "readonly", e.ERROR = "error", e))(S || {}), O = /* @__PURE__ */ ((e) => (e.SEARCH = "search", e.TEXT = "text", e.NUMBER = "number", e))(O || {}), Se = /* @__PURE__ */ ((e) => (e.INPUT = "input", e.ESCAPE_PRESSED = "escape-pressed", e.UPDATE_DROPDOWN = "update:dropdown", e.DROPDOWN_INPUT = "dropdown-input", e.FOCUS = "focus", e.CHANGE = "change", e.BLUR = "blur", e.KEYDOWN = "keydown", e))(Se || {});
|
|
14
|
+
const I = {
|
|
15
15
|
"en-US": {
|
|
16
16
|
ariaLabelFallback: "Input field"
|
|
17
17
|
}
|
|
18
|
-
},
|
|
19
|
-
i18n: { messages:
|
|
20
|
-
},
|
|
21
|
-
...
|
|
18
|
+
}, ge = ["aria-disabled"], he = ["aria-hidden"], Ae = ["aria-hidden"], Ee = ["id"], Te = ["id", "aria-label", "aria-describedby", "aria-owns", "aria-invalid", "placeholder", "type", "value", "disabled", "readonly"], _e = ["aria-hidden"], ke = ["id"], Le = ["id"], Oe = {
|
|
19
|
+
i18n: { messages: I }
|
|
20
|
+
}, Ne = /* @__PURE__ */ oe({
|
|
21
|
+
...Oe,
|
|
22
22
|
__name: "input-field",
|
|
23
23
|
props: {
|
|
24
24
|
/**
|
|
@@ -104,8 +104,8 @@ const z = {
|
|
|
104
104
|
*/
|
|
105
105
|
type: {
|
|
106
106
|
type: String,
|
|
107
|
-
default:
|
|
108
|
-
validator: (e) => Object.values(
|
|
107
|
+
default: O.TEXT,
|
|
108
|
+
validator: (e) => Object.values(O).includes(e)
|
|
109
109
|
},
|
|
110
110
|
/**
|
|
111
111
|
* Text displayed as the value of the input-field
|
|
@@ -121,209 +121,207 @@ const z = {
|
|
|
121
121
|
}
|
|
122
122
|
},
|
|
123
123
|
emits: ["update:dropdown", "blur", "change", "dropdown-input", "escape-pressed", "focus", "keydown", "input"],
|
|
124
|
-
setup(e, { expose:
|
|
125
|
-
const a = e,
|
|
126
|
-
() => a.variant === f.STATIC_VALUE && !!
|
|
127
|
-
),
|
|
128
|
-
() =>
|
|
129
|
-
),
|
|
130
|
-
() =>
|
|
131
|
-
),
|
|
132
|
-
() =>
|
|
133
|
-
),
|
|
134
|
-
() =>
|
|
124
|
+
setup(e, { expose: z, emit: s }) {
|
|
125
|
+
const a = e, N = de(), k = ie(), { t: j } = be({ messages: I }), u = ve(k), R = U(null), $ = D("input"), v = D("input-dropdown"), g = D("input-static-value"), M = D("input-description"), P = D("input-error"), { isReadOnly: b } = ye(re(a, "readonly")), h = r(
|
|
126
|
+
() => a.variant === f.STATIC_VALUE && !!k.staticValue
|
|
127
|
+
), W = r(() => a.variant === f.DEFAULT), Y = r(() => a.variant === f.PAYMENT_METHOD), q = r(
|
|
128
|
+
() => h.value && a.staticValuePosition === l.START
|
|
129
|
+
), F = r(
|
|
130
|
+
() => h.value && a.staticValuePosition === l.END
|
|
131
|
+
), A = r(() => a.variant === f.DROPDOWN && !!a.dropdown), K = r(
|
|
132
|
+
() => A.value && a.dropdownPosition === l.START
|
|
133
|
+
), X = r(
|
|
134
|
+
() => A.value && a.dropdownPosition === l.END
|
|
135
135
|
), E = r(
|
|
136
|
-
() => !a.disabled && !
|
|
137
|
-
),
|
|
136
|
+
() => !a.disabled && !b.value && (!!a.errorMessage || a.error)
|
|
137
|
+
), G = r(() => A.value === !0 && h.value === !0 ? `${g} ${v}` : A.value === !0 ? `${v}` : h.value === !0 ? `${g}` : null), J = U(N["aria-label"]), { ariaLabel: Q } = ne(a), Z = fe({
|
|
138
138
|
ariaLabel: J.value,
|
|
139
139
|
// TODO: take this line away when the aria-label props is removed
|
|
140
140
|
label: Q,
|
|
141
|
-
defaultFallback: u("default") ? ce(
|
|
141
|
+
defaultFallback: u("default") ? ce(k)("default") : j("ariaLabelFallback")
|
|
142
142
|
}), ee = r(
|
|
143
|
-
() => `${u("description") ?
|
|
143
|
+
() => `${u("description") ? M : ""} ${E.value && a.errorMessage ? P : ""}`
|
|
144
144
|
), te = r(() => ({
|
|
145
|
-
[`b-input-field--${
|
|
146
|
-
[`b-input-field--${
|
|
147
|
-
[`b-input-field--${
|
|
148
|
-
[`b-input-field--${
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
},
|
|
154
|
-
|
|
155
|
-
}, _ = () => {
|
|
156
|
-
O.value.focus();
|
|
145
|
+
[`b-input-field--${S.CONDENSED}`]: a.condensed,
|
|
146
|
+
[`b-input-field--${S.DISABLED}`]: a.disabled,
|
|
147
|
+
[`b-input-field--${S.READONLY}`]: b.value,
|
|
148
|
+
[`b-input-field--${S.ERROR}`]: E.value
|
|
149
|
+
})), ae = (i) => {
|
|
150
|
+
!a.disabled && !b.value && s("input", i.target.value);
|
|
151
|
+
}, C = (i) => {
|
|
152
|
+
s("dropdown-input", i), s("update:dropdown", { ...a == null ? void 0 : a.dropdown, value: i });
|
|
153
|
+
}, T = () => {
|
|
154
|
+
R.value.focus();
|
|
157
155
|
};
|
|
158
|
-
return
|
|
159
|
-
focusInput:
|
|
156
|
+
return z({
|
|
157
|
+
focusInput: T
|
|
160
158
|
}), a.error && pe(
|
|
161
159
|
'BentoInputField "error" property',
|
|
162
160
|
`Use the BentoInputField "errorMessage" property instead to indicate that there is a modifier error.
|
|
163
161
|
Having the field as "undefined" will hide/remove the error.
|
|
164
162
|
<bento-dropdown errorMessage="Error message text" />`,
|
|
165
163
|
"2.0.0"
|
|
166
|
-
), (
|
|
164
|
+
), (i, o) => (d(), p(t(_), {
|
|
167
165
|
class: le(["b-input-field", t(te)]),
|
|
168
166
|
"data-testid": "input-text-container",
|
|
169
167
|
el: "div",
|
|
170
168
|
variant: "body"
|
|
171
169
|
}, {
|
|
172
170
|
default: w(() => [
|
|
173
|
-
t(u)("default") ? (
|
|
171
|
+
t(u)("default") ? (d(), p(t(me), {
|
|
174
172
|
key: 0,
|
|
175
|
-
for: t(
|
|
173
|
+
for: t($),
|
|
176
174
|
"data-testid": "input-field-label",
|
|
177
175
|
"tooltip-text": e.tooltipText,
|
|
178
176
|
optional: e.optional,
|
|
179
177
|
required: e.required,
|
|
180
|
-
onClick:
|
|
178
|
+
onClick: T
|
|
181
179
|
}, {
|
|
182
180
|
default: w(() => [
|
|
183
|
-
c(
|
|
181
|
+
c(i.$slots, "default", {}, void 0, !0)
|
|
184
182
|
]),
|
|
185
183
|
_: 3
|
|
186
184
|
}, 8, ["for", "tooltip-text", "optional", "required"])) : n("", !0),
|
|
187
|
-
|
|
185
|
+
V("div", {
|
|
188
186
|
class: "b-input-field__input-box",
|
|
189
187
|
"data-testid": "input-box",
|
|
190
188
|
"aria-disabled": e.disabled,
|
|
191
|
-
onClick:
|
|
189
|
+
onClick: T
|
|
192
190
|
}, [
|
|
193
|
-
t(
|
|
191
|
+
t(W) && t(u)("defaultIconBefore") ? (d(), y("span", {
|
|
194
192
|
key: 0,
|
|
195
193
|
"aria-hidden": e.ariaHidden ? "true" : void 0,
|
|
196
194
|
class: "b-input-field__default-icon-before"
|
|
197
195
|
}, [
|
|
198
|
-
c(
|
|
199
|
-
], 8,
|
|
200
|
-
t(
|
|
196
|
+
c(i.$slots, "defaultIconBefore", {}, void 0, !0)
|
|
197
|
+
], 8, he)) : n("", !0),
|
|
198
|
+
t(Y) && t(u)("paymentMethod") ? (d(), y("span", {
|
|
201
199
|
key: 1,
|
|
202
200
|
"aria-hidden": e.ariaHidden ? "true" : void 0,
|
|
203
201
|
class: "b-input-field__payment-method"
|
|
204
202
|
}, [
|
|
205
|
-
c(
|
|
206
|
-
], 8,
|
|
207
|
-
t(
|
|
203
|
+
c(i.$slots, "paymentMethod", {}, void 0, !0)
|
|
204
|
+
], 8, Ae)) : n("", !0),
|
|
205
|
+
t(K) ? (d(), y("div", {
|
|
208
206
|
key: 2,
|
|
209
|
-
id: t(
|
|
207
|
+
id: t(v),
|
|
210
208
|
class: "b-input-field__dropdown b-input-field__dropdown--start",
|
|
211
|
-
onClick:
|
|
209
|
+
onClick: o[0] || (o[0] = B(() => {
|
|
212
210
|
}, ["stop"]))
|
|
213
211
|
}, [
|
|
214
|
-
e.dropdown ? (
|
|
215
|
-
size: t(
|
|
212
|
+
e.dropdown ? (d(), p(t(H), L({ key: 0 }, e.dropdown, {
|
|
213
|
+
size: t(x).SMALL,
|
|
216
214
|
disabled: e.disabled,
|
|
217
|
-
readonly: t(
|
|
218
|
-
onInput:
|
|
215
|
+
readonly: t(b),
|
|
216
|
+
onInput: C
|
|
219
217
|
}), null, 16, ["size", "disabled", "readonly"])) : n("", !0)
|
|
220
218
|
], 8, Ee)) : n("", !0),
|
|
221
|
-
t(
|
|
219
|
+
t(q) ? (d(), p(t(_), {
|
|
222
220
|
key: 3,
|
|
223
|
-
id: t(
|
|
221
|
+
id: t(g),
|
|
224
222
|
class: "b-input-field__static-value b-input-field__static-value--start",
|
|
225
223
|
el: "span",
|
|
226
224
|
variant: "body"
|
|
227
225
|
}, {
|
|
228
226
|
default: w(() => [
|
|
229
|
-
c(
|
|
227
|
+
c(i.$slots, "staticValue", {}, void 0, !0)
|
|
230
228
|
]),
|
|
231
229
|
_: 3
|
|
232
230
|
}, 8, ["id"])) : n("", !0),
|
|
233
|
-
|
|
231
|
+
V("input", L({ id: t($) }, t(N), {
|
|
234
232
|
ref_key: "inputFieldElement",
|
|
235
|
-
ref:
|
|
233
|
+
ref: R,
|
|
236
234
|
class: "b-input-field__input",
|
|
237
235
|
"aria-label": t(Z),
|
|
238
236
|
"aria-describedby": t(ee),
|
|
239
|
-
"aria-owns": t(
|
|
237
|
+
"aria-owns": t(G),
|
|
240
238
|
"aria-invalid": t(E),
|
|
241
239
|
placeholder: e.placeholder,
|
|
242
240
|
type: e.type,
|
|
243
241
|
value: e.value,
|
|
244
242
|
disabled: e.disabled,
|
|
245
|
-
readonly: t(
|
|
243
|
+
readonly: t(b),
|
|
246
244
|
onInput: ae,
|
|
247
|
-
onChange:
|
|
248
|
-
onFocus:
|
|
249
|
-
onBlur:
|
|
245
|
+
onChange: o[1] || (o[1] = (m) => s("change")),
|
|
246
|
+
onFocus: o[2] || (o[2] = (m) => s("focus")),
|
|
247
|
+
onBlur: o[3] || (o[3] = (m) => s("blur")),
|
|
250
248
|
onKeydown: [
|
|
251
|
-
|
|
252
|
-
|
|
249
|
+
o[4] || (o[4] = (m) => s("keydown", m)),
|
|
250
|
+
o[5] || (o[5] = se((m) => s("escape-pressed"), ["esc"]))
|
|
253
251
|
]
|
|
254
|
-
}), null, 16,
|
|
255
|
-
t(u)("iconAfter") ? (
|
|
252
|
+
}), null, 16, Te),
|
|
253
|
+
t(u)("iconAfter") ? (d(), y("span", {
|
|
256
254
|
key: 4,
|
|
257
255
|
"aria-hidden": e.ariaHidden ? "true" : void 0,
|
|
258
256
|
class: "b-input-field__icon-after",
|
|
259
257
|
"data-testid": "input-text__icon-after"
|
|
260
258
|
}, [
|
|
261
|
-
c(
|
|
262
|
-
], 8,
|
|
263
|
-
t(
|
|
259
|
+
c(i.$slots, "iconAfter", {}, void 0, !0)
|
|
260
|
+
], 8, _e)) : n("", !0),
|
|
261
|
+
t(F) ? (d(), p(t(_), {
|
|
264
262
|
key: 5,
|
|
265
|
-
id: t(
|
|
263
|
+
id: t(g),
|
|
266
264
|
class: "b-input-field__static-value b-input-field__static-value--end",
|
|
267
265
|
el: "span",
|
|
268
266
|
variant: "body"
|
|
269
267
|
}, {
|
|
270
268
|
default: w(() => [
|
|
271
|
-
c(
|
|
269
|
+
c(i.$slots, "staticValue", {}, void 0, !0)
|
|
272
270
|
]),
|
|
273
271
|
_: 3
|
|
274
272
|
}, 8, ["id"])) : n("", !0),
|
|
275
|
-
t(
|
|
273
|
+
t(X) ? (d(), y("div", {
|
|
276
274
|
key: 6,
|
|
277
|
-
id: t(
|
|
275
|
+
id: t(v),
|
|
278
276
|
class: "b-input-field__dropdown b-input-field__dropdown--end",
|
|
279
|
-
onClick:
|
|
277
|
+
onClick: o[6] || (o[6] = B(() => {
|
|
280
278
|
}, ["stop"]))
|
|
281
279
|
}, [
|
|
282
|
-
e.dropdown ? (
|
|
280
|
+
e.dropdown ? (d(), p(t(H), L({
|
|
283
281
|
key: 0,
|
|
284
|
-
id: t(
|
|
282
|
+
id: t(v)
|
|
285
283
|
}, e.dropdown, {
|
|
286
|
-
size: t(
|
|
284
|
+
size: t(x).SMALL,
|
|
287
285
|
disabled: e.disabled,
|
|
288
|
-
readonly: t(
|
|
289
|
-
onInput:
|
|
286
|
+
readonly: t(b),
|
|
287
|
+
onInput: C
|
|
290
288
|
}), null, 16, ["id", "size", "disabled", "readonly"])) : n("", !0)
|
|
291
|
-
], 8,
|
|
292
|
-
], 8,
|
|
293
|
-
t(E) && e.errorMessage ? (
|
|
289
|
+
], 8, ke)) : n("", !0)
|
|
290
|
+
], 8, ge),
|
|
291
|
+
t(E) && e.errorMessage ? (d(), p(t(we), {
|
|
294
292
|
key: 1,
|
|
295
293
|
id: t(P),
|
|
296
294
|
"error-message": e.errorMessage,
|
|
297
295
|
class: "b-input-field__error-message"
|
|
298
296
|
}, null, 8, ["id", "error-message"])) : n("", !0),
|
|
299
|
-
t(u)("description") ? (
|
|
297
|
+
t(u)("description") ? (d(), y("span", {
|
|
300
298
|
key: 2,
|
|
301
|
-
id: t(
|
|
299
|
+
id: t(M),
|
|
302
300
|
class: "b-input-field__description",
|
|
303
|
-
onClick:
|
|
301
|
+
onClick: T
|
|
304
302
|
}, [
|
|
305
|
-
ue(t(
|
|
303
|
+
ue(t(_), {
|
|
306
304
|
el: "span",
|
|
307
305
|
variant: "body"
|
|
308
306
|
}, {
|
|
309
307
|
default: w(() => [
|
|
310
|
-
c(
|
|
308
|
+
c(i.$slots, "description", { id: "description" }, void 0, !0)
|
|
311
309
|
]),
|
|
312
310
|
_: 3
|
|
313
311
|
})
|
|
314
|
-
], 8,
|
|
312
|
+
], 8, Le)) : n("", !0)
|
|
315
313
|
]),
|
|
316
314
|
_: 3
|
|
317
315
|
}, 8, ["class"]));
|
|
318
316
|
}
|
|
319
317
|
});
|
|
320
|
-
const
|
|
318
|
+
const ze = /* @__PURE__ */ De(Ne, [["__scopeId", "data-v-80ea3c08"]]);
|
|
321
319
|
export {
|
|
322
|
-
|
|
320
|
+
ze as BentoInputField,
|
|
323
321
|
l as BentoInputFieldElementPosition,
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
322
|
+
Se as BentoInputFieldEvent,
|
|
323
|
+
S as BentoInputFieldStateClass,
|
|
324
|
+
O as BentoInputFieldType,
|
|
327
325
|
f as BentoInputFieldVariant
|
|
328
326
|
};
|
|
329
327
|
//# sourceMappingURL=input-field.js.map
|