@adyen/bento-vue2 1.76.2 → 1.77.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/index.d.ts +300 -35
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-picker.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown-default-textbox.css +1 -1
- package/dist/assets/dropdown-tag.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/input-field-phone-number.css +1 -1
- package/dist/assets/input-field.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/pagination.css +1 -1
- package/dist/assets/payment-method.css +1 -1
- package/dist/assets/secondary-nav.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/tag.css +1 -1
- package/dist/assets/textarea.css +1 -1
- package/dist/assets/timeline-item.css +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{checkbox-group.CtNVRcmP.js → checkbox-group.C3RH5Gcg.js} +2 -2
- package/dist/chunks/{checkbox-group.CtNVRcmP.js.map → checkbox-group.C3RH5Gcg.js.map} +1 -1
- package/dist/chunks/{checkbox.nyUc0gLb.js → checkbox.itbBlXev.js} +3 -3
- package/dist/chunks/{checkbox.nyUc0gLb.js.map → checkbox.itbBlXev.js.map} +1 -1
- package/dist/chunks/{code-snippet.DFf3KMSi.js → code-snippet.BEbA1bIn.js} +2 -2
- package/dist/chunks/{code-snippet.DFf3KMSi.js.map → code-snippet.BEbA1bIn.js.map} +1 -1
- package/dist/chunks/{currency.AvvbekWO.js → currency.Cwhzzxw2.js} +2 -2
- package/dist/chunks/{currency.AvvbekWO.js.map → currency.Cwhzzxw2.js.map} +1 -1
- package/dist/chunks/{data-grid.C07AmPwV.js → data-grid.B-kBw540.js} +7 -7
- package/dist/chunks/{data-grid.C07AmPwV.js.map → data-grid.B-kBw540.js.map} +1 -1
- package/dist/chunks/date-picker.CKaQJcPa.js +168 -0
- package/dist/chunks/date-picker.CKaQJcPa.js.map +1 -0
- package/dist/chunks/date-picker.types.Ckt7zxGy.js +5 -0
- package/dist/chunks/date-picker.types.Ckt7zxGy.js.map +1 -0
- package/dist/chunks/date-range-picker.BtPxkPN0.js +942 -0
- package/dist/chunks/date-range-picker.BtPxkPN0.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.yLeN0E2z.js → dropdown-default-textbox.BCOVaw-a.js} +10 -10
- package/dist/chunks/dropdown-default-textbox.BCOVaw-a.js.map +1 -0
- package/dist/chunks/dropdown-tag.BXMgDH3v.js +294 -0
- package/dist/chunks/dropdown-tag.BXMgDH3v.js.map +1 -0
- package/dist/chunks/{dropdown.RxD2TqnP.js → dropdown.-3x2IBDg.js} +305 -297
- package/dist/chunks/{dropdown.RxD2TqnP.js.map → dropdown.-3x2IBDg.js.map} +1 -1
- package/dist/chunks/es6.MoTTyETW.js.map +1 -1
- package/dist/chunks/{file-uploader.BGoCYrnw.js → file-uploader.BkTtqgvQ.js} +296 -295
- package/dist/chunks/{file-uploader.BGoCYrnw.js.map → file-uploader.BkTtqgvQ.js.map} +1 -1
- package/dist/chunks/{filter-bar.DVqgwt2p.js → filter-bar.BLnSnOlj.js} +201 -201
- package/dist/chunks/filter-bar.BLnSnOlj.js.map +1 -0
- package/dist/chunks/form-field.BBqLu-vs.js +10 -0
- package/dist/chunks/form-field.BBqLu-vs.js.map +1 -0
- package/dist/chunks/get-slot-text.Bjb9dTSV.js +12 -0
- package/dist/chunks/get-slot-text.Bjb9dTSV.js.map +1 -0
- package/dist/chunks/{header-with-views.jnhILkoQ.js → header-with-views.C6Y7mAkq.js} +3 -3
- package/dist/chunks/{header-with-views.jnhILkoQ.js.map → header-with-views.C6Y7mAkq.js.map} +1 -1
- package/dist/chunks/{input-field-password.CHn2GUcL.js → input-field-password.sthICA2L.js} +3 -3
- package/dist/chunks/{input-field-password.CHn2GUcL.js.map → input-field-password.sthICA2L.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.CpnfVw6w.js → input-field-phone-number.BjinuvOl.js} +5 -5
- package/dist/chunks/{input-field-phone-number.CpnfVw6w.js.map → input-field-phone-number.BjinuvOl.js.map} +1 -1
- package/dist/chunks/{input-field.sGmuIXiw.js → input-field.CwKD3p3q.js} +34 -34
- package/dist/chunks/input-field.CwKD3p3q.js.map +1 -0
- package/dist/chunks/link.D8qpqg3W.js.map +1 -1
- package/dist/chunks/{listbox-option-tag.Dl8GwHLT.js → listbox-option-tag.DkPz3wPc.js} +2 -2
- package/dist/chunks/{listbox-option-tag.Dl8GwHLT.js.map → listbox-option-tag.DkPz3wPc.js.map} +1 -1
- package/dist/chunks/{pagination.C0YW_A_o.js → pagination.BzyyZJy6.js} +7 -7
- package/dist/chunks/pagination.BzyyZJy6.js.map +1 -0
- package/dist/chunks/{payment-method.DtvfUnit.js → payment-method.CcASYR3B.js} +12 -12
- package/dist/chunks/payment-method.CcASYR3B.js.map +1 -0
- package/dist/chunks/payment-method.types.BqtH7RM2.js.map +1 -1
- package/dist/chunks/{radio-group.AcYMFudv.js → radio-group.B8ukv-pw.js} +3 -3
- package/dist/chunks/{radio-group.AcYMFudv.js.map → radio-group.B8ukv-pw.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.eYW8X_YP.js → rich-text-editor.DzH-Z5oi.js} +2 -2
- package/dist/chunks/{rich-text-editor.eYW8X_YP.js.map → rich-text-editor.DzH-Z5oi.js.map} +1 -1
- package/dist/chunks/{search-bar.D8SJsbze.js → search-bar.CgzPXP8r.js} +3 -3
- package/dist/chunks/{search-bar.D8SJsbze.js.map → search-bar.CgzPXP8r.js.map} +1 -1
- package/dist/chunks/{secondary-nav.BFiTQaag.js → secondary-nav.3eZKyb8K.js} +4 -4
- package/dist/chunks/secondary-nav.3eZKyb8K.js.map +1 -0
- package/dist/chunks/{summary-grid.types.B80533d1.js → summary-grid.types.CaYrtyVO.js} +2 -2
- package/dist/chunks/{summary-grid.types.B80533d1.js.map → summary-grid.types.CaYrtyVO.js.map} +1 -1
- package/dist/chunks/tag.BltIbSh3.js +44 -0
- package/dist/chunks/tag.BltIbSh3.js.map +1 -0
- package/dist/chunks/textarea.h-WF62HP.js +173 -0
- package/dist/chunks/textarea.h-WF62HP.js.map +1 -0
- package/dist/chunks/{timeline-item.CZBuknZ_.js → timeline-item.BLhS7uNF.js} +5 -5
- package/dist/chunks/timeline-item.BLhS7uNF.js.map +1 -0
- package/dist/chunks/{toggle.BJMXpHRu.js → toggle.D2wmNu7m.js} +2 -2
- package/dist/chunks/{toggle.BJMXpHRu.js.map → toggle.D2wmNu7m.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/currency.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +7 -6
- package/dist/date-picker.js.map +1 -1
- package/dist/date-range-picker.js +1 -1
- package/dist/dropdown.js +3 -3
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/index.js +247 -246
- package/dist/index.js.map +1 -1
- package/dist/input-field-password.js +1 -1
- package/dist/input-field-phone-number.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/internal.js +1 -1
- package/dist/pagination.js +1 -1
- package/dist/payment-method.js +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/rich-text-editor.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/styles/bento-dark.css +4 -0
- package/dist/styles/bento-light.css +4 -0
- package/dist/styles/bento.css +4 -0
- package/dist/styles/legacy.css +4 -0
- package/dist/styles/styleguide.css +4 -0
- package/dist/summary-grid.js +1 -1
- package/dist/tag.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/toggle.js +1 -1
- package/dist/web-types.json +144 -6
- package/package.json +6 -6
- package/dist/chunks/date-picker.DImAYvoM.js +0 -158
- package/dist/chunks/date-picker.DImAYvoM.js.map +0 -1
- package/dist/chunks/date-range-picker.NAG_5i8I.js +0 -914
- package/dist/chunks/date-range-picker.NAG_5i8I.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.yLeN0E2z.js.map +0 -1
- package/dist/chunks/dropdown-tag.CpvU8eSZ.js +0 -260
- package/dist/chunks/dropdown-tag.CpvU8eSZ.js.map +0 -1
- package/dist/chunks/filter-bar.DVqgwt2p.js.map +0 -1
- package/dist/chunks/get-slot-text.BQS5Olxm.js +0 -12
- package/dist/chunks/get-slot-text.BQS5Olxm.js.map +0 -1
- package/dist/chunks/input-field.sGmuIXiw.js.map +0 -1
- package/dist/chunks/pagination.C0YW_A_o.js.map +0 -1
- package/dist/chunks/payment-method.DtvfUnit.js.map +0 -1
- package/dist/chunks/secondary-nav.BFiTQaag.js.map +0 -1
- package/dist/chunks/tag.BwKc2d2E.js +0 -44
- package/dist/chunks/tag.BwKc2d2E.js.map +0 -1
- package/dist/chunks/textarea.CIQuLWQ8.js +0 -165
- package/dist/chunks/textarea.CIQuLWQ8.js.map +0 -1
- package/dist/chunks/timeline-item.CZBuknZ_.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-field.BBqLu-vs.js","sources":["../../src/utils/ts/form-field/form-field.ts"],"sourcesContent":["import { type FormFieldEmits } from '../../../types/form-field';\n\n/**\n * Provides standard emit functions for form-field components\n *\n * @param emit The emit function\n */\nexport function useFormFieldEmits<T>(emit: FormFieldEmits<T>) {\n /**\n * Provides standard emit function for the value/model-value for form-field components\n *\n * @param value The value being emitted from the component\n */\n function emitValue(value: T) {\n emit('input', value);\n emit('update:model-value', value);\n }\n\n return { emitValue };\n}\n"],"names":["useFormFieldEmits","emit","emitValue","value"],"mappings":"AAOO,SAASA,EAAqBC,GAAyB;AAM1D,WAASC,EAAUC,GAAU;AACzB,IAAAF,EAAK,SAASE,CAAK,GACnBF,EAAK,sBAAsBE,CAAK;AAAA,EAAA;AAGpC,SAAO,EAAE,WAAAD,EAAU;AACvB;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import "./index.Cl4_42j5.js";
|
|
2
|
+
const i = (r, t) => {
|
|
3
|
+
var n, c, p, u;
|
|
4
|
+
return t > 5 ? "" : Array.isArray(r) ? r != null && r[0].text ? r == null ? void 0 : r[0].text : !((n = r == null ? void 0 : r[0]) != null && n.children) && ((p = (c = r == null ? void 0 : r[0]) == null ? void 0 : c.componentOptions) != null && p.children) ? i(r[0].componentOptions.children, t + 1) : i((u = r == null ? void 0 : r[0]) == null ? void 0 : u.children, t + 1) : r == null ? void 0 : r.text;
|
|
5
|
+
}, h = (r) => (t) => {
|
|
6
|
+
var n;
|
|
7
|
+
return i((n = r[t]) == null ? void 0 : n.call(r), 1);
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
h as g
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=get-slot-text.Bjb9dTSV.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-slot-text.Bjb9dTSV.js","sources":["../../src/utils/ts/get-slot-text/get-slot-text.ts"],"sourcesContent":["import { isVue2 } from 'vue-demi';\nimport type { Slots } from 'vue/types/v3-setup-context';\n\n// TODO: remove these types when vue 2 support has been removed\ntype vue2VNode = { text?: string; children?: vue2VNode; componentOptions?: { children?: vue2VNode } };\n\nconst getTextFromChildren = (vNode: Array<vue2VNode> | vue2VNode, nestedLevel: number): string => {\n // We should not be checking for slot text more than 5 layers. If we are end the recursion.\n if (nestedLevel > 5) {\n return '';\n }\n if (Array.isArray(vNode)) {\n if (isVue2 && (vNode as Array<vue2VNode>)?.[0].text) {\n return vNode?.[0].text;\n }\n\n // If we have a nested component, drill down into its children\n if (!vNode?.[0]?.children && vNode?.[0]?.componentOptions?.children) {\n return getTextFromChildren(vNode[0].componentOptions.children, nestedLevel + 1);\n }\n\n return getTextFromChildren(vNode?.[0]?.children, nestedLevel + 1);\n }\n return isVue2 ? (vNode as vue2VNode)?.text : vNode?.toString();\n};\n\n/**\n * Get text recursively from slot by giving slot name.\n * This recursion will only occur 5 times before the method gives up and returns an empty string.\n * @param slots - the slots provided the the component's setup function\n * @returns A function who's first parameter is the name of the slot.\n */\nexport const getSlotText = (slots: Slots) => (name: string) => {\n return getTextFromChildren(slots[name]?.() as Array<vue2VNode> | vue2VNode, 1);\n};\n\nexport default getSlotText;\n"],"names":["getTextFromChildren","vNode","nestedLevel","_a","_c","_b","_d","getSlotText","slots","name"],"mappings":";AAMA,MAAMA,IAAsB,CAACC,GAAqCC,MAAgC;;AAE9F,SAAIA,IAAc,IACP,KAEP,MAAM,QAAQD,CAAK,IACJA,KAAA,QAAAA,EAA6B,GAAG,OACpCA,KAAA,gBAAAA,EAAQ,GAAG,OAIlB,GAACE,IAAAF,KAAA,gBAAAA,EAAQ,OAAR,QAAAE,EAAY,eAAYC,KAAAC,IAAAJ,KAAA,gBAAAA,EAAQ,OAAR,gBAAAI,EAAY,qBAAZ,QAAAD,EAA8B,YAChDJ,EAAoBC,EAAM,CAAC,EAAE,iBAAiB,UAAUC,IAAc,CAAC,IAG3EF,GAAoBM,IAAAL,KAAA,gBAAAA,EAAQ,OAAR,gBAAAK,EAAY,UAAUJ,IAAc,CAAC,IAEnDD,KAAA,gBAAAA,EAAqB;AAC1C,GAQaM,IAAc,CAACC,MAAiB,CAACC,MAAiB;;AAC3D,SAAOT,GAAoBG,IAAAK,EAAMC,OAAN,gBAAAN,EAAA,KAAAK,IAAiD,CAAC;AACjF;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as o, reactive as Pe, computed as D, watch as N, nextTick as l1, defineComponent as _1, toRef as De, onMounted as pe, useSlots as Ie } from "vue";
|
|
2
2
|
import { B as f1 } from "./button.CS_kdxYh.js";
|
|
3
|
-
import { B as ge } from "./checkbox.
|
|
3
|
+
import { B as ge } from "./checkbox.itbBlXev.js";
|
|
4
4
|
import { u as s1, h as C1, f as he, c as p1, B as Te } from "./button-actions.B81vY51z.js";
|
|
5
5
|
import { B as Fe } from "./modal.Bp5twyjz.js";
|
|
6
6
|
import { B as we } from "./typography.hlOAxsEn.js";
|
|
@@ -15,7 +15,7 @@ import { n as d } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
|
15
15
|
import { R as Ue } from "./refresh.arF7jP-l.js";
|
|
16
16
|
import { b as me, o as Ne } from "./index.BDK4hwK_.js";
|
|
17
17
|
import { B as Ge } from "./divider.CFbtmKeQ.js";
|
|
18
|
-
import { B as ze } from "./input-field.
|
|
18
|
+
import { B as ze } from "./input-field.CwKD3p3q.js";
|
|
19
19
|
import "./index.Cl4_42j5.js";
|
|
20
20
|
import { d as Ke } from "./debounce.DUTu11PS.js";
|
|
21
21
|
import { F as Ye } from "./field-label.Auq-Pzho.js";
|
|
@@ -1564,4 +1564,4 @@ const Sa = la.exports;
|
|
|
1564
1564
|
export {
|
|
1565
1565
|
Sa as h
|
|
1566
1566
|
};
|
|
1567
|
-
//# sourceMappingURL=header-with-views.
|
|
1567
|
+
//# sourceMappingURL=header-with-views.C6Y7mAkq.js.map
|