@adyen/bento-vue2 1.40.0 → 1.41.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.
Files changed (82) hide show
  1. package/dist/@types/components.d.ts +6 -0
  2. package/dist/@types/index.d.ts +620 -373
  3. package/dist/action-bar.js +1 -1
  4. package/dist/assets/accordion-item.css +1 -1
  5. package/dist/assets/action-bar.css +1 -1
  6. package/dist/assets/base-modal.css +1 -1
  7. package/dist/assets/card.css +1 -1
  8. package/dist/assets/currency.css +1 -1
  9. package/dist/assets/data-grid.css +1 -1
  10. package/dist/assets/dialog-page.css +1 -1
  11. package/dist/assets/inspector.css +1 -1
  12. package/dist/assets/layout-row.css +1 -0
  13. package/dist/assets/menu.css +1 -1
  14. package/dist/assets/modal-fullscreen.css +1 -1
  15. package/dist/assets/popover.css +1 -1
  16. package/dist/assets/promo-banner.css +1 -0
  17. package/dist/assets/selection-card-group.css +1 -1
  18. package/dist/assets/sidepanel.css +1 -1
  19. package/dist/assets/structured-list-item.css +1 -1
  20. package/dist/chunks/{action-bar.DJmskrzB.js → action-bar.r05wfyni.js} +2 -2
  21. package/dist/chunks/{action-bar.DJmskrzB.js.map → action-bar.r05wfyni.js.map} +1 -1
  22. package/dist/chunks/{code-snippet.CmBhucys.js → code-snippet.DRH4X9pH.js} +2 -2
  23. package/dist/chunks/{code-snippet.CmBhucys.js.map → code-snippet.DRH4X9pH.js.map} +1 -1
  24. package/dist/chunks/{currency.CEqsVP2T.js → currency.P7Psn_SK.js} +53 -61
  25. package/dist/chunks/currency.P7Psn_SK.js.map +1 -0
  26. package/dist/chunks/{dashboard-section.9R8bIh92.js → dashboard-section.DchlD4B2.js} +2 -2
  27. package/dist/chunks/{dashboard-section.9R8bIh92.js.map → dashboard-section.DchlD4B2.js.map} +1 -1
  28. package/dist/chunks/{data-grid.Czo9hi7m.js → data-grid.ahAWR42s.js} +934 -895
  29. package/dist/chunks/data-grid.ahAWR42s.js.map +1 -0
  30. package/dist/chunks/es6.b4enG1py.js +10 -0
  31. package/dist/chunks/es6.b4enG1py.js.map +1 -0
  32. package/dist/chunks/image.C2D2hKat.js +56 -0
  33. package/dist/chunks/image.C2D2hKat.js.map +1 -0
  34. package/dist/chunks/index.D5am6ibQ.js +249 -0
  35. package/dist/chunks/{index.iCshT3Hx.js.map → index.D5am6ibQ.js.map} +1 -1
  36. package/dist/chunks/layout-row.CtFsZ5-v.js +87 -0
  37. package/dist/chunks/layout-row.CtFsZ5-v.js.map +1 -0
  38. package/dist/chunks/promo-banner.NSOVGA7M.js +70 -0
  39. package/dist/chunks/promo-banner.NSOVGA7M.js.map +1 -0
  40. package/dist/chunks/{secondary-nav.bchOEARi.js → secondary-nav.DMw1l7rH.js} +3 -3
  41. package/dist/chunks/{secondary-nav.bchOEARi.js.map → secondary-nav.DMw1l7rH.js.map} +1 -1
  42. package/dist/chunks/selection-card-group.BjOuUbQD.js +299 -0
  43. package/dist/chunks/selection-card-group.BjOuUbQD.js.map +1 -0
  44. package/dist/chunks/{structured-list-item.C4gxvOkq.js → structured-list-item.CAcBJutf.js} +6 -6
  45. package/dist/chunks/structured-list-item.CAcBJutf.js.map +1 -0
  46. package/dist/chunks/{timeline-item.Bmn0Pu11.js → timeline-item.CxB3KFiu.js} +2 -2
  47. package/dist/chunks/{timeline-item.Bmn0Pu11.js.map → timeline-item.CxB3KFiu.js.map} +1 -1
  48. package/dist/chunks/{tutorial.DG5I6TRS.js → tutorial.CGjM0EJT.js} +2 -2
  49. package/dist/chunks/{tutorial.DG5I6TRS.js.map → tutorial.CGjM0EJT.js.map} +1 -1
  50. package/dist/code-snippet.js +1 -1
  51. package/dist/currency.js +1 -1
  52. package/dist/dashboard-template.js +1 -1
  53. package/dist/data-grid.js +1 -1
  54. package/dist/image.js +1 -1
  55. package/dist/index.js +184 -177
  56. package/dist/index.js.map +1 -1
  57. package/dist/layout.js +6 -0
  58. package/dist/layout.js.map +1 -0
  59. package/dist/promo-banner.js +7 -0
  60. package/dist/promo-banner.js.map +1 -0
  61. package/dist/secondary-nav.js +1 -1
  62. package/dist/selection-card.js +1 -1
  63. package/dist/structured-list.js +1 -1
  64. package/dist/styles/bento-dark.css +16 -0
  65. package/dist/styles/bento-light.css +16 -0
  66. package/dist/styles/bento.css +16 -0
  67. package/dist/styles/legacy.css +16 -0
  68. package/dist/styles/styleguide.css +16 -0
  69. package/dist/timeline.js +1 -1
  70. package/dist/tutorial.js +1 -1
  71. package/dist/web-types.json +276 -83
  72. package/package.json +2 -2
  73. package/dist/chunks/currency.CEqsVP2T.js.map +0 -1
  74. package/dist/chunks/data-grid.Czo9hi7m.js.map +0 -1
  75. package/dist/chunks/es6.BvpG4Oi6.js +0 -9
  76. package/dist/chunks/es6.BvpG4Oi6.js.map +0 -1
  77. package/dist/chunks/image.B3uqhFjl.js +0 -82
  78. package/dist/chunks/image.B3uqhFjl.js.map +0 -1
  79. package/dist/chunks/index.iCshT3Hx.js +0 -183
  80. package/dist/chunks/selection-card-group.CW7c72r2.js +0 -255
  81. package/dist/chunks/selection-card-group.CW7c72r2.js.map +0 -1
  82. package/dist/chunks/structured-list-item.C4gxvOkq.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,82 +1,84 @@
1
1
  import "./chunks/index.Cl4_42j5.js";
2
- import { t as S, c as g } from "./chunks/use-bento-toast-controller.BVVMh0wc.js";
2
+ import { t as y, c as S } from "./chunks/use-bento-toast-controller.BVVMh0wc.js";
3
3
  import { u as N } from "./chunks/use-bento-toast-controller.BVVMh0wc.js";
4
- import { p as y, d as l } from "./chunks/typography.Bu_WAKdf.js";
4
+ import { p as g, d as l } from "./chunks/typography.Bu_WAKdf.js";
5
5
  import { B as _, c as Y, b as j, a as z } from "./chunks/typography.Bu_WAKdf.js";
6
6
  import { a as U, b as H } from "./chunks/accordion-item.BjXzREaK.js";
7
- import { B as Z } from "./chunks/action-bar.DJmskrzB.js";
7
+ import { B as Z } from "./chunks/action-bar.r05wfyni.js";
8
8
  import { B as J, c as Q, b as X, a as $ } from "./chunks/alert.Y4JUnmhl.js";
9
9
  import { B as te } from "./chunks/avatar.DXzyWKsI.js";
10
10
  import { B as ae, b as ne, a as re } from "./chunks/button.CufUNBkv.js";
11
11
  import { d as Be } from "./chunks/dashed-underline.6Aw4MP34.js";
12
- import { B as me, d as pe, a as de, f as le, e as ce, c as ue, b as fe } from "./chunks/data-grid.Czo9hi7m.js";
13
- import { c as Te, B as Se, a as ge } from "./chunks/card.Cfj-r6CX.js";
12
+ import { B as me, d as pe, a as de, f as le, e as ue, c as ce, b as fe } from "./chunks/data-grid.ahAWR42s.js";
13
+ import { c as Te, B as ye, a as Se } from "./chunks/card.Cfj-r6CX.js";
14
14
  import { B as be, a as he } from "./chunks/date-picker.lFLlAGXs.js";
15
15
  import { B as Ce, a as De } from "./chunks/date-range-picker.Cr_YCwxP.js";
16
16
  import { B as Ie, u as Le } from "./chunks/dropdown.D8xKm1YA.js";
17
- import { B as Pe } from "./chunks/dropdown-default-textbox.DPZmj7xJ.js";
17
+ import { B as Ge } from "./chunks/dropdown-default-textbox.DPZmj7xJ.js";
18
18
  import { B as Oe, a as ke } from "./chunks/checkbox.5uVM-HLg.js";
19
19
  import { B as Me } from "./chunks/click-outside.DSszkIvs.js";
20
- import { c as Ae, b as Ne, a as Re, B as _e } from "./chunks/code-snippet.CmBhucys.js";
20
+ import { c as Ae, b as Ne, a as Re, B as _e } from "./chunks/code-snippet.DRH4X9pH.js";
21
21
  import { c as je } from "./chunks/country.CM5oZOyZ.js";
22
22
  import { a as Ke, B as Ue, u as He, b as We, c as Ze } from "./chunks/country.types.Br0AjxGy.js";
23
- import { c as Je, B as Qe } from "./chunks/currency.CEqsVP2T.js";
23
+ import { c as Je, B as Qe } from "./chunks/currency.P7Psn_SK.js";
24
24
  import { B as $e, a as et } from "./chunks/date.BQ29-2L1.js";
25
25
  import { B as ot } from "./chunks/divider.BZfeYmB9.js";
26
26
  import { B as nt, b as rt, c as st, a as Bt } from "./chunks/empty-state.B8ZeRgDi.js";
27
27
  import { B as mt, b as pt, a as dt, c as lt } from "./chunks/filter-bar.dQZY8j9C.js";
28
- import { f as ut, a as ft, c as xt, b as Tt } from "./chunks/form-layout-title.Cd2WlefD.js";
29
- import { B as gt, a as yt, b as bt } from "./chunks/image.B3uqhFjl.js";
28
+ import { f as ct, a as ft, c as xt, b as Tt } from "./chunks/form-layout-title.Cd2WlefD.js";
29
+ import { B as St, a as gt, b as bt } from "./chunks/image.C2D2hKat.js";
30
30
  import { B as Et } from "./chunks/info-icon.CCR-cAFR.js";
31
- import { B as Dt, b as vt, e as It, c as Lt, d as Gt, a as Pt } from "./chunks/input-field.CKOdyDVy.js";
31
+ import { B as Dt, b as vt, e as It, c as Lt, d as Pt, a as Gt } from "./chunks/input-field.CKOdyDVy.js";
32
32
  import { i as Ot, B as kt } from "./chunks/inspector.types.DaY6OOzz.js";
33
- import { B as Mt, a as Vt } from "./chunks/loading-indicator.z8COalOc.js";
34
- import { B as Nt, a as Rt } from "./chunks/link.v-y0fKjn.js";
35
- import { B as Yt, a as jt } from "./chunks/menu.DEeyofbM.js";
36
- import { d as Kt, f as Ut, g as Ht, B as Wt, e as Zt, c as qt, a as Jt, b as Qt } from "./chunks/base-modal.SJX9uGT4.js";
37
- import { B as $t } from "./chunks/modal.tUtoM34X.js";
38
- import { m as to, B as oo } from "./chunks/modal-fullscreen.Ct4aitSv.js";
39
- import { B as no } from "./chunks/header.DwTrDlSa.js";
40
- import { B as so } from "./chunks/pagination.CqrSR1Md.js";
41
- import { B as io } from "./chunks/payment-method.CoXB0ZAW.js";
42
- import { B as po } from "./chunks/payment-method.types.CJKfZQN5.js";
43
- import { B as co, a as uo } from "./chunks/popover.BcWFpCY_.js";
44
- import { b as xo, B as To, a as So } from "./chunks/radio-group.DtlPzh_w.js";
45
- import { B as yo, b as bo, a as ho } from "./chunks/search-bar.CN9pWrLP.js";
46
- import { s as Co } from "./chunks/secondary-nav.bchOEARi.js";
47
- import { B as vo, s as Io, a as Lo } from "./chunks/selection-card-group.CW7c72r2.js";
48
- import { B as Po } from "./chunks/segmented-control.uVH5ahVY.js";
49
- import { B as Oo } from "./chunks/segmented-control.types.BHRLV8KU.js";
50
- import { a as wo, B as Mo, s as Vo } from "./chunks/sidepanel.BjrsqXLl.js";
51
- import { s as No, B as Ro } from "./chunks/status.types.B0jtv0c7.js";
52
- import { a as Yo, s as jo, B as zo, b as Ko } from "./chunks/step.D3-7YL7-.js";
53
- import { B as Ho, a as Wo } from "./chunks/structured-list-item.C4gxvOkq.js";
54
- import { s as qo, a as Jo, e as Qo, b as Xo, c as $o, B as ea, d as ta, f as oa } from "./chunks/summary-grid-item-custom.CPprUptt.js";
55
- import { B as na, a as ra } from "./chunks/tabs.Casntai-.js";
56
- import { B as Ba, a as ia } from "./chunks/tag.DSFSfnAf.js";
57
- import { B as pa } from "./chunks/textarea.B4MZ_pi1.js";
58
- import { t as la, b as ca, a as ua, c as fa, B as xa, d as Ta } from "./chunks/timeline-item.Bmn0Pu11.js";
59
- import { t as ga } from "./chunks/toast.BEipTIrz.js";
60
- import { B as ba, b as ha, a as Ea } from "./chunks/toggle.INRYdQzz.js";
61
- import { t as Da } from "./chunks/tutorial.DG5I6TRS.js";
62
- import { a as Ia, d as La } from "./chunks/dashboard-section.9R8bIh92.js";
63
- import { d as Pa } from "./chunks/data-grid-template.Bhotcrsr.js";
64
- import { B as Oa, c as ka, a as wa, b as Ma } from "./chunks/button-actions.BJMK3kZC.js";
65
- import { B as Aa, a as Na } from "./chunks/loading-button.2h9RXXIZ.js";
66
- import { B as _a } from "./chunks/toggle-button.CYplDIO-.js";
67
- import { C as ja, C as za } from "./chunks/calendar.B9WZ8ub3.js";
68
- import { a as Ua, B as Ha, a as Wa, B as Za } from "./chunks/use-cached-selected-values.D5ARl96f.js";
69
- import { d as Ja, a as Qa, b as Xa, c as $a, e as en } from "./chunks/dropdown-tag.BPkMWSmY.js";
70
- import { C as on } from "./chunks/checkbox-input.Bo4NxNOh.js";
71
- import { c as nn, B as rn } from "./chunks/checkbox-group.BEI5FPnW.js";
72
- import { R as Bn } from "./chunks/radio-input.q980f8Uf.js";
73
- import { shallowRef as b, ref as c, getCurrentInstance as h } from "vue";
33
+ import { l as Mt, a as Vt } from "./chunks/layout-row.CtFsZ5-v.js";
34
+ import { B as Nt, a as Rt } from "./chunks/loading-indicator.z8COalOc.js";
35
+ import { B as Yt, a as jt } from "./chunks/link.v-y0fKjn.js";
36
+ import { B as Kt, a as Ut } from "./chunks/menu.DEeyofbM.js";
37
+ import { d as Wt, f as Zt, g as qt, B as Jt, e as Qt, c as Xt, a as $t, b as eo } from "./chunks/base-modal.SJX9uGT4.js";
38
+ import { B as oo } from "./chunks/modal.tUtoM34X.js";
39
+ import { m as no, B as ro } from "./chunks/modal-fullscreen.Ct4aitSv.js";
40
+ import { B as Bo } from "./chunks/header.DwTrDlSa.js";
41
+ import { B as mo } from "./chunks/pagination.CqrSR1Md.js";
42
+ import { B as lo } from "./chunks/payment-method.CoXB0ZAW.js";
43
+ import { B as co } from "./chunks/payment-method.types.CJKfZQN5.js";
44
+ import { B as xo, a as To } from "./chunks/popover.BcWFpCY_.js";
45
+ import { p as So, B as go, a as bo } from "./chunks/promo-banner.NSOVGA7M.js";
46
+ import { b as Eo, B as Co, a as Do } from "./chunks/radio-group.DtlPzh_w.js";
47
+ import { B as Io, b as Lo, a as Po } from "./chunks/search-bar.CN9pWrLP.js";
48
+ import { s as Fo } from "./chunks/secondary-nav.DMw1l7rH.js";
49
+ import { B as ko, s as wo, a as Mo } from "./chunks/selection-card-group.BjOuUbQD.js";
50
+ import { B as Ao } from "./chunks/segmented-control.uVH5ahVY.js";
51
+ import { B as Ro } from "./chunks/segmented-control.types.BHRLV8KU.js";
52
+ import { a as Yo, B as jo, s as zo } from "./chunks/sidepanel.BjrsqXLl.js";
53
+ import { s as Uo, B as Ho } from "./chunks/status.types.B0jtv0c7.js";
54
+ import { a as Zo, s as qo, B as Jo, b as Qo } from "./chunks/step.D3-7YL7-.js";
55
+ import { B as $o, a as ea } from "./chunks/structured-list-item.CAcBJutf.js";
56
+ import { s as oa, a as aa, e as na, b as ra, c as sa, B as Ba, d as ia, f as ma } from "./chunks/summary-grid-item-custom.CPprUptt.js";
57
+ import { B as da, a as la } from "./chunks/tabs.Casntai-.js";
58
+ import { B as ca, a as fa } from "./chunks/tag.DSFSfnAf.js";
59
+ import { B as Ta } from "./chunks/textarea.B4MZ_pi1.js";
60
+ import { t as Sa, b as ga, a as ba, c as ha, B as Ea, d as Ca } from "./chunks/timeline-item.CxB3KFiu.js";
61
+ import { t as va } from "./chunks/toast.BEipTIrz.js";
62
+ import { B as La, b as Pa, a as Ga } from "./chunks/toggle.INRYdQzz.js";
63
+ import { t as Oa } from "./chunks/tutorial.CGjM0EJT.js";
64
+ import { a as wa, d as Ma } from "./chunks/dashboard-section.DchlD4B2.js";
65
+ import { d as Aa } from "./chunks/data-grid-template.Bhotcrsr.js";
66
+ import { B as Ra, c as _a, a as Ya, b as ja } from "./chunks/button-actions.BJMK3kZC.js";
67
+ import { B as Ka, a as Ua } from "./chunks/loading-button.2h9RXXIZ.js";
68
+ import { B as Wa } from "./chunks/toggle-button.CYplDIO-.js";
69
+ import { C as qa, C as Ja } from "./chunks/calendar.B9WZ8ub3.js";
70
+ import { a as Xa, B as $a, a as en, B as tn } from "./chunks/use-cached-selected-values.D5ARl96f.js";
71
+ import { d as an, a as nn, b as rn, c as sn, e as Bn } from "./chunks/dropdown-tag.BPkMWSmY.js";
72
+ import { C as pn } from "./chunks/checkbox-input.Bo4NxNOh.js";
73
+ import { c as ln, B as un } from "./chunks/checkbox-group.BEI5FPnW.js";
74
+ import { R as fn } from "./chunks/radio-input.q980f8Uf.js";
75
+ import { shallowRef as b, ref as u, getCurrentInstance as h } from "vue";
74
76
  import * as s from "zod";
75
- import { u as pn } from "./chunks/use-click-outside.D6aIgS15.js";
76
- import { D as ln } from "./chunks/date-input.BqBdAO1E.js";
77
- import { a as un, B as fn } from "./chunks/keyboard-navigation.Clz1jOaA.js";
78
- import { B as Tn } from "./chunks/directive.O3yEdalv.js";
79
- import { B as gn, a as yn, b as bn } from "./chunks/tooltip.CS2Gij6x.js";
77
+ import { u as Tn } from "./chunks/use-click-outside.D6aIgS15.js";
78
+ import { D as Sn } from "./chunks/date-input.BqBdAO1E.js";
79
+ import { a as bn, B as hn } from "./chunks/keyboard-navigation.Clz1jOaA.js";
80
+ import { B as Cn } from "./chunks/directive.O3yEdalv.js";
81
+ import { B as vn, a as In, b as Ln } from "./chunks/tooltip.CS2Gij6x.js";
80
82
  function O(e) {
81
83
  return e;
82
84
  }
@@ -92,7 +94,7 @@ function E(e) {
92
94
  function k({
93
95
  validationSchema: e
94
96
  }) {
95
- const t = b({}), a = c({}), n = c(p(e)), i = () => {
97
+ const t = b({}), a = u({}), n = u(p(e)), i = () => {
96
98
  t.value = {}, a.value = {};
97
99
  }, x = () => {
98
100
  i(), n.value = p(e);
@@ -114,11 +116,11 @@ function k({
114
116
  }
115
117
  };
116
118
  }
117
- const u = Symbol("use-bento-theme");
119
+ const c = Symbol("use-bento-theme");
118
120
  function w() {
119
121
  var t;
120
- const e = (t = h()) == null ? void 0 : t.proxy[u];
121
- return e ? { ...e } : (y("useBentoTheme does not work without Vue.use(BentoPlugin)"), {
122
+ const e = (t = h()) == null ? void 0 : t.proxy[c];
123
+ return e ? { ...e } : (g("useBentoTheme does not work without Vue.use(BentoPlugin)"), {
122
124
  getTheme: () => {
123
125
  },
124
126
  setTheme: () => {
@@ -126,7 +128,7 @@ function w() {
126
128
  });
127
129
  }
128
130
  const C = (e) => {
129
- e.prototype[S] = g();
131
+ e.prototype[y] = S();
130
132
  }, f = () => {
131
133
  var e;
132
134
  return ((e = document.body.className.match(/b-\w+-theme/)) == null ? void 0 : e[0]) ?? "";
@@ -140,7 +142,7 @@ const r = (e) => {
140
142
  getTheme: f,
141
143
  setTheme: r
142
144
  };
143
- e.prototype[u] = t;
145
+ e.prototype[c] = t;
144
146
  }, M = {
145
147
  name: "BentoVue",
146
148
  install: async (e, {
@@ -167,22 +169,22 @@ export {
167
169
  $ as BentoAlertVariant,
168
170
  te as BentoAvatar,
169
171
  ae as BentoButton,
170
- Oa as BentoButtonActions,
171
- ka as BentoButtonActionsLayout,
172
- wa as BentoButtonActionsLayoutBasic,
173
- Ma as BentoButtonActionsLayoutExtended,
172
+ Ra as BentoButtonActions,
173
+ _a as BentoButtonActionsLayout,
174
+ Ya as BentoButtonActionsLayoutBasic,
175
+ ja as BentoButtonActionsLayoutExtended,
174
176
  ne as BentoButtonPropClass,
175
177
  re as BentoButtonVariant,
176
178
  Te as BentoCard,
177
- Se as BentoCardBackground,
178
- ge as BentoCardTitleSize,
179
+ ye as BentoCardBackground,
180
+ Se as BentoCardTitleSize,
179
181
  Oe as BentoCheckbox,
180
182
  ke as BentoCheckboxEvent,
181
- nn as BentoCheckboxGroup,
182
- rn as BentoCheckboxGroupVariant,
183
- on as BentoCheckboxState,
183
+ ln as BentoCheckboxGroup,
184
+ un as BentoCheckboxGroupVariant,
185
+ pn as BentoCheckboxState,
184
186
  Me as BentoClickOutside,
185
- Tn as BentoClickOutsideDirective,
187
+ Cn as BentoClickOutsideDirective,
186
188
  Ae as BentoCodeSnippet,
187
189
  Ne as BentoCodeSnippetEvent,
188
190
  Re as BentoCodeSnippetSupportedLanguage,
@@ -193,34 +195,34 @@ export {
193
195
  Ue as BentoCountryVariant,
194
196
  Je as BentoCurrency,
195
197
  Qe as BentoCurrencyISOCode,
196
- Ia as BentoDashboardSection,
197
- La as BentoDashboardTemplate,
198
+ wa as BentoDashboardSection,
199
+ Ma as BentoDashboardTemplate,
198
200
  Be as BentoDashedUnderline,
199
201
  pe as BentoDataGrid,
200
202
  de as BentoDataGridStaticIcon,
201
- Pa as BentoDataGridTemplate,
203
+ Aa as BentoDataGridTemplate,
202
204
  le as BentoDatagridAriaSortValue,
203
- ce as BentoDatagridEvent,
204
- ue as BentoDatagridSortDirection,
205
+ ue as BentoDatagridEvent,
206
+ ce as BentoDatagridSortDirection,
205
207
  fe as BentoDatagridStyleState,
206
208
  $e as BentoDate,
207
209
  et as BentoDateFormat,
208
210
  be as BentoDatePicker,
209
211
  he as BentoDatePickerEvent,
210
- ja as BentoDatePickerFirstDayOfWeek,
212
+ qa as BentoDatePickerFirstDayOfWeek,
211
213
  Ce as BentoDateRangePicker,
212
214
  De as BentoDateRangePickerEvent,
213
- za as BentoDateRangePickerFirstDayOfWeek,
215
+ Ja as BentoDateRangePickerFirstDayOfWeek,
214
216
  ot as BentoDivider,
215
217
  Ie as BentoDropdown,
216
- Ja as BentoDropdownAvatar,
217
- Qa as BentoDropdownCountry,
218
- Xa as BentoDropdownCurrency,
219
- Ua as BentoDropdownEvent,
220
- Ha as BentoDropdownLazyLoadType,
221
- $a as BentoDropdownPaymentMethod,
222
- Pe as BentoDropdownSize,
223
- en as BentoDropdownTag,
218
+ an as BentoDropdownAvatar,
219
+ nn as BentoDropdownCountry,
220
+ rn as BentoDropdownCurrency,
221
+ Xa as BentoDropdownEvent,
222
+ $a as BentoDropdownLazyLoadType,
223
+ sn as BentoDropdownPaymentMethod,
224
+ Ge as BentoDropdownSize,
225
+ Bn as BentoDropdownTag,
224
226
  nt as BentoEmptyState,
225
227
  rt as BentoEmptyStateImage,
226
228
  st as BentoEmptyStateImageVariant,
@@ -229,115 +231,120 @@ export {
229
231
  pt as BentoFilterBarEvent,
230
232
  dt as BentoFilterEvent,
231
233
  lt as BentoFilterItemType,
232
- ut as BentoFormLayout,
234
+ ct as BentoFormLayout,
233
235
  ft as BentoFormLayoutFieldTip,
234
236
  xt as BentoFormLayoutGroup,
235
237
  Tt as BentoFormLayoutTitle,
236
- no as BentoHeader,
237
- gt as BentoImage,
238
- yt as BentoImageAspectRatio,
238
+ Bo as BentoHeader,
239
+ St as BentoImage,
240
+ gt as BentoImageAspectRatio,
239
241
  bt as BentoImageObjectFit,
240
242
  Et as BentoInfoIcon,
241
243
  Dt as BentoInputField,
242
244
  vt as BentoInputFieldElementPosition,
243
245
  It as BentoInputFieldEvent,
244
246
  Lt as BentoInputFieldStateClass,
245
- Gt as BentoInputFieldType,
246
- Pt as BentoInputFieldVariant,
247
+ Pt as BentoInputFieldType,
248
+ Gt as BentoInputFieldVariant,
247
249
  Ot as BentoInspector,
248
250
  kt as BentoInspectorSizeOptions,
249
- un as BentoKeyboardNavigationDirective,
250
- fn as BentoKeyboardNavigationKeyDownEvent,
251
- Nt as BentoLink,
252
- Rt as BentoLinkVariant,
253
- Wa as BentoListboxEvent,
254
- Za as BentoListboxLazyLoadType,
255
- Aa as BentoLoadingButton,
256
- Na as BentoLoadingButtonState,
257
- Mt as BentoLoadingIndicator,
258
- Vt as BentoLoadingIndicatorEvent,
259
- Yt as BentoMenu,
260
- jt as BentoMenuEvent,
261
- $t as BentoModal,
262
- Kt as BentoModalColumnLayoutVariant,
263
- Ut as BentoModalDialogType,
264
- Ht as BentoModalEvent,
265
- to as BentoModalFullscreen,
266
- oo as BentoModalFullscreenPage,
267
- Wt as BentoModalPage,
268
- Zt as BentoModalRole,
269
- qt as BentoModalSize,
270
- Jt as BentoModalVariant,
271
- Qt as BentoModalVariantMapping,
272
- so as BentoPagination,
273
- io as BentoPaymentMethod,
274
- po as BentoPaymentMethodType,
275
- co as BentoPopover,
276
- uo as BentoPopoverPositions,
277
- xo as BentoRadioButton,
278
- Bn as BentoRadioButtonStateClass,
279
- To as BentoRadioGroup,
280
- So as BentoRadioGroupVariant,
281
- yo as BentoSearchBar,
282
- bo as BentoSearchBarEvent,
283
- ho as BentoSearchBarInternalEvent,
284
- Co as BentoSecondaryNav,
285
- Po as BentoSegmentedControl,
286
- Oo as BentoSegmentedControlEvent,
287
- vo as BentoSelectionCard,
288
- Io as BentoSelectionCardGroup,
289
- Lo as BentoSelectionCardState,
290
- wo as BentoSidepanel,
291
- Mo as BentoSidepanelEvent,
292
- Vo as BentoSidepanelPage,
293
- No as BentoStatus,
294
- Ro as BentoStatusVariant,
295
- Yo as BentoStep,
296
- jo as BentoStepper,
297
- zo as BentoStepperTypeOption,
298
- Ko as BentoStepperVariantOption,
299
- Ho as BentoStructuredList,
300
- Wo as BentoStructuredListItem,
301
- qo as BentoSummaryGrid,
302
- Jo as BentoSummaryGridItemAmount,
303
- Qo as BentoSummaryGridItemCustom,
304
- Xo as BentoSummaryGridItemNumeric,
305
- $o as BentoSummaryGridItemPercentage,
306
- ea as BentoSummaryGridItemSize,
307
- ta as BentoSummaryGridItemText,
308
- oa as BentoSummaryGridItemTrendDirection,
309
- na as BentoTab,
310
- ra as BentoTabs,
311
- Ba as BentoTag,
312
- ia as BentoTagVariant,
313
- pa as BentoTextarea,
251
+ bn as BentoKeyboardNavigationDirective,
252
+ hn as BentoKeyboardNavigationKeyDownEvent,
253
+ Mt as BentoLayout,
254
+ Vt as BentoLayoutRow,
255
+ Yt as BentoLink,
256
+ jt as BentoLinkVariant,
257
+ en as BentoListboxEvent,
258
+ tn as BentoListboxLazyLoadType,
259
+ Ka as BentoLoadingButton,
260
+ Ua as BentoLoadingButtonState,
261
+ Nt as BentoLoadingIndicator,
262
+ Rt as BentoLoadingIndicatorEvent,
263
+ Kt as BentoMenu,
264
+ Ut as BentoMenuEvent,
265
+ oo as BentoModal,
266
+ Wt as BentoModalColumnLayoutVariant,
267
+ Zt as BentoModalDialogType,
268
+ qt as BentoModalEvent,
269
+ no as BentoModalFullscreen,
270
+ ro as BentoModalFullscreenPage,
271
+ Jt as BentoModalPage,
272
+ Qt as BentoModalRole,
273
+ Xt as BentoModalSize,
274
+ $t as BentoModalVariant,
275
+ eo as BentoModalVariantMapping,
276
+ mo as BentoPagination,
277
+ lo as BentoPaymentMethod,
278
+ co as BentoPaymentMethodType,
279
+ xo as BentoPopover,
280
+ To as BentoPopoverPositions,
281
+ So as BentoPromoBanner,
282
+ go as BentoPromoBannerColor,
283
+ bo as BentoPromoBannerLayout,
284
+ Eo as BentoRadioButton,
285
+ fn as BentoRadioButtonStateClass,
286
+ Co as BentoRadioGroup,
287
+ Do as BentoRadioGroupVariant,
288
+ Io as BentoSearchBar,
289
+ Lo as BentoSearchBarEvent,
290
+ Po as BentoSearchBarInternalEvent,
291
+ Fo as BentoSecondaryNav,
292
+ Ao as BentoSegmentedControl,
293
+ Ro as BentoSegmentedControlEvent,
294
+ ko as BentoSelectionCard,
295
+ wo as BentoSelectionCardGroup,
296
+ Mo as BentoSelectionCardState,
297
+ Yo as BentoSidepanel,
298
+ jo as BentoSidepanelEvent,
299
+ zo as BentoSidepanelPage,
300
+ Uo as BentoStatus,
301
+ Ho as BentoStatusVariant,
302
+ Zo as BentoStep,
303
+ qo as BentoStepper,
304
+ Jo as BentoStepperTypeOption,
305
+ Qo as BentoStepperVariantOption,
306
+ $o as BentoStructuredList,
307
+ ea as BentoStructuredListItem,
308
+ oa as BentoSummaryGrid,
309
+ aa as BentoSummaryGridItemAmount,
310
+ na as BentoSummaryGridItemCustom,
311
+ ra as BentoSummaryGridItemNumeric,
312
+ sa as BentoSummaryGridItemPercentage,
313
+ Ba as BentoSummaryGridItemSize,
314
+ ia as BentoSummaryGridItemText,
315
+ ma as BentoSummaryGridItemTrendDirection,
316
+ da as BentoTab,
317
+ la as BentoTabs,
318
+ ca as BentoTag,
319
+ fa as BentoTagVariant,
320
+ Ta as BentoTextarea,
314
321
  o as BentoTheme,
315
- la as BentoTimeline,
316
- ca as BentoTimelineGapUnit,
317
- ua as BentoTimelineItem,
318
- fa as BentoTimelineItemVariant,
319
- xa as BentoTimelineShowMorePlacement,
320
- Ta as BentoTimelineStatus,
321
- ga as BentoToast,
322
- ba as BentoToggle,
323
- _a as BentoToggleButton,
324
- ha as BentoToggleLabelPosition,
325
- Ea as BentoTogglePropClass,
326
- gn as BentoTooltipDirective,
327
- yn as BentoTooltipPosition,
328
- bn as BentoTooltipState,
329
- Da as BentoTutorial,
322
+ Sa as BentoTimeline,
323
+ ga as BentoTimelineGapUnit,
324
+ ba as BentoTimelineItem,
325
+ ha as BentoTimelineItemVariant,
326
+ Ea as BentoTimelineShowMorePlacement,
327
+ Ca as BentoTimelineStatus,
328
+ va as BentoToast,
329
+ La as BentoToggle,
330
+ Wa as BentoToggleButton,
331
+ Pa as BentoToggleLabelPosition,
332
+ Ga as BentoTogglePropClass,
333
+ vn as BentoTooltipDirective,
334
+ In as BentoTooltipPosition,
335
+ Ln as BentoTooltipState,
336
+ Oa as BentoTutorial,
330
337
  _ as BentoTypography,
331
338
  Y as BentoTypographyElement,
332
339
  j as BentoTypographyModifier,
333
340
  z as BentoTypographyVariant,
334
- ln as DateFormat,
341
+ Sn as DateFormat,
335
342
  M as default,
336
343
  O as toTypedSchema,
337
344
  w as useBentoTheme,
338
- u as useBentoThemeKey,
345
+ c as useBentoThemeKey,
339
346
  N as useBentoToastController,
340
- pn as useClickOutside,
347
+ Tn as useClickOutside,
341
348
  He as useCountryCapital,
342
349
  We as useCountryName,
343
350
  Ze as useCountryPhoneCode,
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../src/composables/use-form-validate/use-form.ts","../src/composables/use-bento-theme/use-bento-theme.types.ts","../src/composables/use-bento-theme/use-bento-theme.ts","../src/composables/use-bento-toast-controller/install.ts","../src/composables/use-bento-theme/install.ts","../src/install.ts"],"sourcesContent":["import { type Ref, ref, type ShallowRef, shallowRef } from 'vue';\nimport * as z from 'zod';\nimport type { ZodSchema } from 'zod';\nimport { ErrorBag, UseForm } from './use-form.types';\n\n/**\n * Composable that tansforms a Zod schema into a Typed Schema that can be used alongside with {@see useForm}.\n *\n * This is meant to simulate the behavior of {@link @vee-validate/zod} {@see https://vee-validate.logaretm.com/v4/integrations/zod-schema-validation}.\n * Function that transform Zod’s schemas into something that can be understood by vee-validate\n *\n * @param {T extends ZodSchema} formSchema Zod schema to be transformed into a `vee-validate` schema\n * @returns {UseForm<T>} schema Schema transformed\n */\nexport function toTypedSchema<T extends ZodSchema>(formSchema: T) {\n return formSchema;\n}\n\n/**\n * Finds and returns the initial values of each of the values defined in the schema so that they\n * can be transformed into a reactive element.\n * @param {ZodSchema} schema Zod validation schema containing the definitions of each value to be used in the form\n * @returns Object with the items defined in the schema and their (default) values\n *\n * @example\n * const validationSchema = toTypedSchema(\n * z.object({\n * name: z\n * .string()\n * .min(3, { message: 'Name is required' })\n * .startsWith('Jane')\n * .max(4, { message: 'Name cannot be longer than 4 characters' })\n * .default('Joe'),\n * })\n * );\n * getInitialFormValues(validationSchema)\n *\n * Will return:\n *\n * {\n * name: 'Joe'\n * }\n *\n */\nfunction getInitialFormValues<T extends ZodSchema>(schema: T): z.infer<typeof schema> {\n if (!!z && schema instanceof z.ZodObject) {\n return Object.fromEntries(\n Object.entries(schema.shape).map(([key, value]) => {\n if (!!z && value instanceof z.ZodDefault) {\n // eslint-disable-next-line no-underscore-dangle\n return [key, value._def.defaultValue()];\n }\n\n if (!!z && value instanceof z.ZodObject) {\n return [key, getInitialFormValues(value)];\n }\n\n return [key, undefined];\n })\n ) as z.infer<typeof schema>;\n }\n\n return undefined;\n}\n\n/**\n * Constructs a path with dot paths for arrays to use brackets to be compatible with vee-validate path syntax\n * @param issue List of nested path elements\n * @returns Path with dots\n */\nfunction normalizeFormPath(issue: z.ZodIssue) {\n return issue.path.join('.');\n}\n\n/**\n * Composable that facilitates validating form data for Vue2 & Vue3 implementations with FormLayout\n * to ease the migration to Vue3.\n *\n * For Vue3 implementations use Vee-Validate.\n *\n * This provides a simplified version of Vee-Validate v4 implemented with Zod to validate a form schema.\n * It returns reactive values that can be used directly in form input elements with 'v-model' alongside\n * with functions to \"reset\" the data (sets values to default value) and a function to execute the\n * successful form validation process (through a callback).\n *\n * @param {UseForm<T>} props Form configuration object\n * @param {T extends ZodSchema} props.validationSchema Zod typed validation schema\n * @returns {Object} response - Composable with reactive form values and errors, and functions to handle the reactive data\n * @returns {Ref<ErrorBag<T>>} response.errorBag Object with all the form values and an array of each one of the errors (if any) per value\n * @returns {Ref<T>} response.errors Object with all the form values and the first error found for that field (if any)\n * @returns {Ref<T>} response.values Object with all the form values and their current value\n * @returns {() => void} response.handleReset Resets the form values to default (initial values) when it gets called\n * @returns {(callback: (values: T) => void) => () => void} response.submitForm Validates the data set in {response.values} and sets errors (if found) inside {response.errors} and {response.errorBag}.\n * When the validation is successful it calls the callback so the submit process can continue\n *\n * @example\n * const validationSchema = toTypedSchema(\n * z.object({\n * name: z\n * .string()\n * .min(3, { message: 'Name is required' })\n * .startsWith('Jane')\n * .max(4, { message: 'Name cannot be longer than 4 characters' })\n * .default('Joe'),\n * })\n * );\n *\n * const { values, errors, errorBag, submitForm, handleReset } = useForm({\n * validationSchema\n * });\n * const handleSubmit = submitForm(() => {\n * // Send data to API here\n * })\n *\n */\nexport function useForm<T extends ZodSchema>({\n validationSchema,\n}: UseForm<T>): {\n errorBag: Ref<ErrorBag<z.TypeOf<T>>>;\n errors: Ref<z.TypeOf<T>> | ShallowRef<z.TypeOf<T>>;\n values: Ref<z.TypeOf<T>>;\n handleReset: () => void;\n submitForm: (submitted: any) => () => void;\n} {\n // Errors per field\n const errors = shallowRef<z.infer<typeof validationSchema>>({});\n // All errors per field\n const errorBag: Ref<ErrorBag<z.infer<typeof validationSchema>>> = ref({});\n const values: Ref<z.TypeOf<T>> = ref(getInitialFormValues<T>(validationSchema));\n\n const cleanErrors = () => {\n errors.value = {};\n errorBag.value = {};\n };\n\n const resetForm = () => {\n cleanErrors();\n values.value = getInitialFormValues<T>(validationSchema);\n };\n\n const submitForm = submitted => () => {\n cleanErrors();\n\n // Run validations on the form data through the schema\n const validSchema = validationSchema.safeParse(values.value);\n\n // Update errors\n if (!validSchema.success) {\n (validSchema as z.SafeParseError<T>).error.issues.forEach(error => {\n const path = normalizeFormPath(error);\n\n // Add the first ocurrance of a fild error to the \"errors\" object\n if (!errors.value[path]) {\n errors.value[path] = error.message;\n }\n\n // Add each error to the \"errorBag\" per field array\n if (!errorBag.value[path]) {\n errorBag.value[path] = [error.message];\n } else {\n errorBag.value[path].push(error.message);\n }\n });\n } else {\n submitted(values.value);\n }\n };\n\n return {\n // Values\n errorBag,\n errors,\n values,\n\n // Methods\n handleReset: () => resetForm(),\n submitForm,\n };\n}\n","import { BentoTheme } from './install';\n\nexport const useBentoThemeKey = Symbol('use-bento-theme');\n\nexport interface UseBentoTheme {\n getTheme: () => string;\n setTheme: (theme: BentoTheme | `${BentoTheme}`) => void;\n}\n","import { printDevelopmentWarning } from '@/utils/ts/print-development-warning';\nimport { getCurrentInstance, inject } from 'vue';\nimport { isVue2 } from 'vue-demi';\nimport { UseBentoTheme, useBentoThemeKey } from './use-bento-theme.types';\n\n/**\n * Composable that handles theming-related capabilities for the Bento component library.\n * Requires the use of `BentoPlugin`.\n *\n * @example\n * <script setup lang=\"ts\">\n * import { useBentoTheme, BentoTheme } from '@adyen/bento-vue2';\n *\n * const { setTheme } = useBentoTheme();\n *\n * setTheme(BentoTheme.BENTO_DARK)\n * </script>\n *\n * @returns {UseBentoTheme} An object with getter and setter method for the Bento theme.\n * @returns {Function} getTheme - Returns the current theme in the string form of BentoTheme enum.\n * @returns {Function} setTheme - Sets the theme of the Bento component library.\n *\n */\nexport function useBentoTheme(): UseBentoTheme {\n const bentoThemeController = isVue2\n ? getCurrentInstance()?.proxy[useBentoThemeKey]\n : inject(useBentoThemeKey, null);\n\n if (!bentoThemeController) {\n printDevelopmentWarning('useBentoTheme does not work without Vue.use(BentoPlugin)');\n\n // Return placeholder functions so client code won't break, but theme won't toggle\n return {\n getTheme: () => undefined,\n setTheme: () => undefined,\n };\n }\n\n // Return a new object so unintentional reassigning its properties won't override a global state\n return { ...bentoThemeController };\n}\n","import { type App, isVue2, type Vue2 } from 'vue-demi';\nimport { createToastStack, toastStackInjectionKey } from './toast-stack';\n\n/**\n * This function is used to create and register global reactive state necessary fro the Toasts to operate.\n * @param {Vue} Vue A context application to register global state with.\n */\nexport default Vue => {\n if (isVue2) {\n // Add toast stack as a global property as there is no \"app.provide\" functionality in Vue2\n // eslint-disable-next-line no-param-reassign -- this is an official way of setting up instance properties on Vue\n (Vue as typeof Vue2).prototype[toastStackInjectionKey] = createToastStack();\n } else {\n (Vue as App).provide(toastStackInjectionKey, createToastStack());\n }\n};\n","import { type App, isVue2, type Vue2 } from 'vue-demi';\nimport { useBentoThemeKey } from './use-bento-theme.types';\n\nconst getTheme = () => document.body.className.match(/b-\\w+-theme/)?.[0] ?? '';\nconst getThemeForSystemPreference = () => {\n const preferredDarkMode = window.matchMedia('(prefers-color-scheme: dark)').matches;\n\n if (preferredDarkMode) {\n return BentoTheme.BENTO_DARK;\n }\n\n return BentoTheme.BENTO_LIGHT;\n};\n\nexport enum BentoTheme {\n LEGACY = 'b-legacy-theme',\n STYLEGUIDE = 'b-styleguide-theme',\n\n /**\n * @deprecated in favor of {@link BENTO_LIGHT}. To be removed in v2.0.0.\n */\n BENTO = '',\n\n BENTO_LIGHT = 'b-light-theme',\n BENTO_DARK = 'b-dark-theme',\n BENTO_SYSTEM = 'b-system',\n}\n\nexport const setTheme = (theme: BentoTheme) => {\n const currentTheme = getTheme();\n const systemTheme = getThemeForSystemPreference();\n const themeToSet = theme === BentoTheme.BENTO_SYSTEM ? systemTheme : theme;\n\n if (themeToSet === BentoTheme.BENTO_LIGHT || themeToSet === BentoTheme.BENTO) {\n document.documentElement.style.colorScheme = 'light';\n } else if (themeToSet === BentoTheme.BENTO_DARK) {\n document.documentElement.style.colorScheme = 'dark';\n }\n\n // if theme is different from current and it is not `BentoTheme.BENTO`\n if (currentTheme.length && currentTheme !== themeToSet) {\n document.body.classList.remove(currentTheme);\n }\n\n // if theme is not `BentoTheme.BENTO`\n if (themeToSet.length) {\n document.body.classList.add(themeToSet);\n }\n};\n\n/**\n * This function is used to create and register global reactive state necessary for theme to operate.\n * @param {Vue} Vue A context application to register global state with.\n */\nexport default Vue => {\n const themeProvider = {\n getTheme,\n setTheme,\n };\n\n if (isVue2) {\n // Add theme as a global property as there is no \"app.provide\" functionality in Vue2\n // eslint-disable-next-line no-param-reassign -- this is an official way of setting up instance properties on Vue\n (Vue as typeof Vue2).prototype[useBentoThemeKey] = themeProvider;\n } else {\n (Vue as App).provide(useBentoThemeKey, themeProvider);\n }\n};\n","import type { PluginObject } from 'vue';\nimport installToast from './composables/use-bento-toast-controller/install';\nimport installTheme, { BentoTheme, setTheme } from './composables/use-bento-theme/install';\nimport { deprecate } from './utils/ts/deprecate';\n\ninterface BentoVuePlugin {\n theme?: BentoTheme;\n withToast?: boolean;\n withUtilityClasses?: boolean;\n withDesignTokensCSSInjection?: boolean;\n}\n\nconst plugin: PluginObject<BentoVuePlugin> = {\n name: 'BentoVue',\n install: async (\n Vue,\n {\n theme = BentoTheme.BENTO_LIGHT,\n withToast = false,\n withUtilityClasses = false,\n withDesignTokensCSSInjection = true,\n }: BentoVuePlugin\n ) => {\n installTheme(Vue);\n\n if (withToast) {\n installToast(Vue);\n }\n if (withDesignTokensCSSInjection) {\n deprecate(\n 'Using default setting withDesignTokensCSSInjection set to true in BentoVue plugin',\n 'Please disable CSS injection by setting withDesignTokensCSSInjection to false in BentoVue plugin options as highlighted here:\\nhttps://adyen-bento.netlify.app/?path=/docs/welcome-getting-started--docs#import-css-variables',\n '2.0.0'\n );\n // Make sure to put all awaited CSS imports below this point and not above!\n if (theme === BentoTheme.LEGACY) {\n await import('@adyen/bento-design-tokens/dist/css/bento/variables-legacy.css');\n } else if (theme === BentoTheme.STYLEGUIDE) {\n await import('@adyen/bento-design-tokens/dist/css/bento/variables-styleguide.css');\n } else {\n await import('@adyen/bento-design-tokens/dist/css/bento/variables.css');\n }\n\n if (withUtilityClasses) {\n await import('@adyen/bento-design-tokens/dist/css/bento/utility.css');\n }\n }\n\n if (theme === BentoTheme.LEGACY) {\n setTheme(BentoTheme.LEGACY);\n } else if (theme === BentoTheme.STYLEGUIDE) {\n setTheme(BentoTheme.STYLEGUIDE);\n } else if (theme === BentoTheme.BENTO_SYSTEM) {\n setTheme(BentoTheme.BENTO_SYSTEM);\n } else if (theme === BentoTheme.BENTO_DARK) {\n setTheme(BentoTheme.BENTO_DARK);\n } else if (theme === BentoTheme.BENTO) {\n deprecate('Using `BentoTheme.BENTO`', 'Please use `BentoTheme.BENTO_LIGHT` instead', '2.0.0');\n setTheme(BentoTheme.BENTO_LIGHT);\n } else {\n setTheme(BentoTheme.BENTO_LIGHT);\n }\n },\n};\n\nexport { BentoTheme };\nexport default plugin;\n"],"names":["toTypedSchema","formSchema","getInitialFormValues","schema","z","key","value","normalizeFormPath","issue","useForm","validationSchema","errors","shallowRef","errorBag","ref","values","cleanErrors","resetForm","validSchema","submitted","error","path","useBentoThemeKey","useBentoTheme","bentoThemeController","_a","getCurrentInstance","printDevelopmentWarning","installToast","Vue","toastStackInjectionKey","createToastStack","getTheme","getThemeForSystemPreference","BentoTheme","setTheme","theme","currentTheme","systemTheme","themeToSet","installTheme","themeProvider","plugin","withToast","withUtilityClasses","withDesignTokensCSSInjection","deprecate"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcO,SAASA,EAAmCC,GAAe;AACvD,SAAAA;AACX;AA4BA,SAASC,EAA0CC,GAAmC;AAClF,MAAMC,KAAKD,aAAkBC,EAAE;AAC3B,WAAO,OAAO;AAAA,MACV,OAAO,QAAQD,EAAO,KAAK,EAAE,IAAI,CAAC,CAACE,GAAKC,CAAK,MACnCF,KAAKE,aAAiBF,EAAE,aAEnB,CAACC,GAAKC,EAAM,KAAK,cAAc,IAGpCF,KAAKE,aAAiBF,EAAE,YACnB,CAACC,GAAKH,EAAqBI,CAAK,CAAC,IAGrC,CAACD,GAAK,MAAS,CACzB;AAAA,IACL;AAIR;AAOA,SAASE,EAAkBC,GAAmB;AACnC,SAAAA,EAAM,KAAK,KAAK,GAAG;AAC9B;AA2CO,SAASC,EAA6B;AAAA,EACzC,kBAAAC;AACJ,GAME;AAEQ,QAAAC,IAASC,EAA6C,EAAE,GAExDC,IAA4DC,EAAI,EAAE,GAClEC,IAA2BD,EAAIZ,EAAwBQ,CAAgB,CAAC,GAExEM,IA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EAAW,MAAM,IACnBE,MAAUF,EAAW,aAC5BC,EAASD,EAAW,UAAU,IACvBE,MAAUF,EAAW,eAC5BC,EAASD,EAAW,YAAY,IACzBE,MAAUF,EAAW,aAC5BC,EAASD,EAAW,UAAU,KACvBE,MAAUF,EAAW,SAClBY,EAAA,4BAA4B,+CAA+C,OAAO,GAC5FX,EAASD,EAAW,WAAW;AAAA,EAGnC;AAER;"}
1
+ {"version":3,"file":"index.js","sources":["../src/composables/use-form-validate/use-form.ts","../src/composables/use-bento-theme/use-bento-theme.types.ts","../src/composables/use-bento-theme/use-bento-theme.ts","../src/composables/use-bento-toast-controller/install.ts","../src/composables/use-bento-theme/install.ts","../src/install.ts"],"sourcesContent":["import { type Ref, ref, type ShallowRef, shallowRef } from 'vue';\nimport * as z from 'zod';\nimport type { ZodSchema } from 'zod';\nimport { ErrorBag, UseForm } from './use-form.types';\n\n/**\n * Composable that tansforms a Zod schema into a Typed Schema that can be used alongside with {@see useForm}.\n *\n * This is meant to simulate the behavior of {@link @vee-validate/zod} {@see https://vee-validate.logaretm.com/v4/integrations/zod-schema-validation}.\n * Function that transform Zod’s schemas into something that can be understood by vee-validate\n *\n * @param {T extends ZodSchema} formSchema Zod schema to be transformed into a `vee-validate` schema\n * @returns {UseForm<T>} schema Schema transformed\n */\nexport function toTypedSchema<T extends ZodSchema>(formSchema: T) {\n return formSchema;\n}\n\n/**\n * Finds and returns the initial values of each of the values defined in the schema so that they\n * can be transformed into a reactive element.\n * @param {ZodSchema} schema Zod validation schema containing the definitions of each value to be used in the form\n * @returns Object with the items defined in the schema and their (default) values\n *\n * @example\n * const validationSchema = toTypedSchema(\n * z.object({\n * name: z\n * .string()\n * .min(3, { message: 'Name is required' })\n * .startsWith('Jane')\n * .max(4, { message: 'Name cannot be longer than 4 characters' })\n * .default('Joe'),\n * })\n * );\n * getInitialFormValues(validationSchema)\n *\n * Will return:\n *\n * {\n * name: 'Joe'\n * }\n *\n */\nfunction getInitialFormValues<T extends ZodSchema>(schema: T): z.infer<typeof schema> {\n if (!!z && schema instanceof z.ZodObject) {\n return Object.fromEntries(\n Object.entries(schema.shape).map(([key, value]) => {\n if (!!z && value instanceof z.ZodDefault) {\n // eslint-disable-next-line no-underscore-dangle\n return [key, value._def.defaultValue()];\n }\n\n if (!!z && value instanceof z.ZodObject) {\n return [key, getInitialFormValues(value)];\n }\n\n return [key, undefined];\n })\n ) as z.infer<typeof schema>;\n }\n\n return undefined;\n}\n\n/**\n * Constructs a path with dot paths for arrays to use brackets to be compatible with vee-validate path syntax\n * @param issue List of nested path elements\n * @returns Path with dots\n */\nfunction normalizeFormPath(issue: z.ZodIssue) {\n return issue.path.join('.');\n}\n\n/**\n * Composable that facilitates validating form data for Vue2 & Vue3 implementations with FormLayout\n * to ease the migration to Vue3.\n *\n * For Vue3 implementations use Vee-Validate.\n *\n * This provides a simplified version of Vee-Validate v4 implemented with Zod to validate a form schema.\n * It returns reactive values that can be used directly in form input elements with 'v-model' alongside\n * with functions to \"reset\" the data (sets values to default value) and a function to execute the\n * successful form validation process (through a callback).\n *\n * @param {UseForm<T>} props Form configuration object\n * @param {T extends ZodSchema} props.validationSchema Zod typed validation schema\n * @returns {Object} response - Composable with reactive form values and errors, and functions to handle the reactive data\n * @returns {Ref<ErrorBag<T>>} response.errorBag Object with all the form values and an array of each one of the errors (if any) per value\n * @returns {Ref<T>} response.errors Object with all the form values and the first error found for that field (if any)\n * @returns {Ref<T>} response.values Object with all the form values and their current value\n * @returns {() => void} response.handleReset Resets the form values to default (initial values) when it gets called\n * @returns {(callback: (values: T) => void) => () => void} response.submitForm Validates the data set in {response.values} and sets errors (if found) inside {response.errors} and {response.errorBag}.\n * When the validation is successful it calls the callback so the submit process can continue\n *\n * @example\n * const validationSchema = toTypedSchema(\n * z.object({\n * name: z\n * .string()\n * .min(3, { message: 'Name is required' })\n * .startsWith('Jane')\n * .max(4, { message: 'Name cannot be longer than 4 characters' })\n * .default('Joe'),\n * })\n * );\n *\n * const { values, errors, errorBag, submitForm, handleReset } = useForm({\n * validationSchema\n * });\n * const handleSubmit = submitForm(() => {\n * // Send data to API here\n * })\n *\n */\nexport function useForm<T extends ZodSchema>({\n validationSchema,\n}: UseForm<T>): {\n errorBag: Ref<ErrorBag<z.TypeOf<T>>>;\n errors: Ref<z.TypeOf<T>> | ShallowRef<z.TypeOf<T>>;\n values: Ref<z.TypeOf<T>>;\n handleReset: () => void;\n submitForm: (submitted: any) => () => void;\n} {\n // Errors per field\n const errors = shallowRef<z.infer<typeof validationSchema>>({});\n // All errors per field\n const errorBag: Ref<ErrorBag<z.infer<typeof validationSchema>>> = ref({});\n const values: Ref<z.TypeOf<T>> = ref(getInitialFormValues<T>(validationSchema));\n\n const cleanErrors = () => {\n errors.value = {};\n errorBag.value = {};\n };\n\n const resetForm = () => {\n cleanErrors();\n values.value = getInitialFormValues<T>(validationSchema);\n };\n\n const submitForm = submitted => () => {\n cleanErrors();\n\n // Run validations on the form data through the schema\n const validSchema = validationSchema.safeParse(values.value);\n\n // Update errors\n if (!validSchema.success) {\n (validSchema as z.SafeParseError<T>).error.issues.forEach(error => {\n const path = normalizeFormPath(error);\n\n // Add the first ocurrance of a fild error to the \"errors\" object\n if (!errors.value[path]) {\n errors.value[path] = error.message;\n }\n\n // Add each error to the \"errorBag\" per field array\n if (!errorBag.value[path]) {\n errorBag.value[path] = [error.message];\n } else {\n errorBag.value[path].push(error.message);\n }\n });\n } else {\n submitted(values.value);\n }\n };\n\n return {\n // Values\n errorBag,\n errors,\n values,\n\n // Methods\n handleReset: () => resetForm(),\n submitForm,\n };\n}\n","import { BentoTheme } from './install';\n\nexport const useBentoThemeKey = Symbol('use-bento-theme');\n\nexport interface UseBentoTheme {\n getTheme: () => string;\n setTheme: (theme: BentoTheme | `${BentoTheme}`) => void;\n}\n","import { printDevelopmentWarning } from '@/utils/ts/print-development-warning';\nimport { getCurrentInstance, inject } from 'vue';\nimport { isVue2 } from 'vue-demi';\nimport { UseBentoTheme, useBentoThemeKey } from './use-bento-theme.types';\n\n/**\n * Composable that handles theming-related capabilities for the Bento component library.\n * Requires the use of `BentoPlugin`.\n *\n * @example\n * <script setup lang=\"ts\">\n * import { useBentoTheme, BentoTheme } from '@adyen/bento-vue2';\n *\n * const { setTheme } = useBentoTheme();\n *\n * setTheme(BentoTheme.BENTO_DARK)\n * </script>\n *\n * @returns {UseBentoTheme} An object with getter and setter method for the Bento theme.\n * @returns {Function} getTheme - Returns the current theme in the string form of BentoTheme enum.\n * @returns {Function} setTheme - Sets the theme of the Bento component library.\n *\n */\nexport function useBentoTheme(): UseBentoTheme {\n const bentoThemeController = isVue2\n ? getCurrentInstance()?.proxy[useBentoThemeKey]\n : inject(useBentoThemeKey, null);\n\n if (!bentoThemeController) {\n printDevelopmentWarning('useBentoTheme does not work without Vue.use(BentoPlugin)');\n\n // Return placeholder functions so client code won't break, but theme won't toggle\n return {\n getTheme: () => undefined,\n setTheme: () => undefined,\n };\n }\n\n // Return a new object so unintentional reassigning its properties won't override a global state\n return { ...bentoThemeController };\n}\n","import { type App, isVue2, type Vue2 } from 'vue-demi';\nimport { createToastStack, toastStackInjectionKey } from './toast-stack';\n\n/**\n * This function is used to create and register global reactive state necessary fro the Toasts to operate.\n * @param {Vue} Vue A context application to register global state with.\n */\nexport default Vue => {\n if (isVue2) {\n // Add toast stack as a global property as there is no \"app.provide\" functionality in Vue2\n // eslint-disable-next-line no-param-reassign -- this is an official way of setting up instance properties on Vue\n (Vue as typeof Vue2).prototype[toastStackInjectionKey] = createToastStack();\n } else {\n (Vue as App).provide(toastStackInjectionKey, createToastStack());\n }\n};\n","import { type App, isVue2, type Vue2 } from 'vue-demi';\nimport { useBentoThemeKey } from './use-bento-theme.types';\n\nconst getTheme = () => document.body.className.match(/b-\\w+-theme/)?.[0] ?? '';\nconst getThemeForSystemPreference = () => {\n const preferredDarkMode = window.matchMedia('(prefers-color-scheme: dark)').matches;\n\n if (preferredDarkMode) {\n return BentoTheme.BENTO_DARK;\n }\n\n return BentoTheme.BENTO_LIGHT;\n};\n\nexport enum BentoTheme {\n LEGACY = 'b-legacy-theme',\n STYLEGUIDE = 'b-styleguide-theme',\n\n /**\n * @deprecated in favor of {@link BENTO_LIGHT}. To be removed in v2.0.0.\n */\n BENTO = '',\n\n BENTO_LIGHT = 'b-light-theme',\n BENTO_DARK = 'b-dark-theme',\n BENTO_SYSTEM = 'b-system',\n}\n\nexport const setTheme = (theme: BentoTheme) => {\n const currentTheme = getTheme();\n const systemTheme = getThemeForSystemPreference();\n const themeToSet = theme === BentoTheme.BENTO_SYSTEM ? systemTheme : theme;\n\n if (themeToSet === BentoTheme.BENTO_LIGHT || themeToSet === BentoTheme.BENTO) {\n document.documentElement.style.colorScheme = 'light';\n } else if (themeToSet === BentoTheme.BENTO_DARK) {\n document.documentElement.style.colorScheme = 'dark';\n }\n\n // if theme is different from current and it is not `BentoTheme.BENTO`\n if (currentTheme.length && currentTheme !== themeToSet) {\n document.body.classList.remove(currentTheme);\n }\n\n // if theme is not `BentoTheme.BENTO`\n if (themeToSet.length) {\n document.body.classList.add(themeToSet);\n }\n};\n\n/**\n * This function is used to create and register global reactive state necessary for theme to operate.\n * @param {Vue} Vue A context application to register global state with.\n */\nexport default Vue => {\n const themeProvider = {\n getTheme,\n setTheme,\n };\n\n if (isVue2) {\n // Add theme as a global property as there is no \"app.provide\" functionality in Vue2\n // eslint-disable-next-line no-param-reassign -- this is an official way of setting up instance properties on Vue\n (Vue as typeof Vue2).prototype[useBentoThemeKey] = themeProvider;\n } else {\n (Vue as App).provide(useBentoThemeKey, themeProvider);\n }\n};\n","import type { PluginObject } from 'vue';\nimport installToast from './composables/use-bento-toast-controller/install';\nimport installTheme, { BentoTheme, setTheme } from './composables/use-bento-theme/install';\nimport { deprecate } from './utils/ts/deprecate';\n\ninterface BentoVuePlugin {\n theme?: BentoTheme;\n withToast?: boolean;\n withUtilityClasses?: boolean;\n withDesignTokensCSSInjection?: boolean;\n}\n\nconst plugin: PluginObject<BentoVuePlugin> = {\n name: 'BentoVue',\n install: async (\n Vue,\n {\n theme = BentoTheme.BENTO_LIGHT,\n withToast = false,\n withUtilityClasses = false,\n withDesignTokensCSSInjection = true,\n }: BentoVuePlugin\n ) => {\n installTheme(Vue);\n\n if (withToast) {\n installToast(Vue);\n }\n if (withDesignTokensCSSInjection) {\n deprecate(\n 'Using default setting withDesignTokensCSSInjection set to true in BentoVue plugin',\n 'Please disable CSS injection by setting withDesignTokensCSSInjection to false in BentoVue plugin options as highlighted here:\\nhttps://adyen-bento.netlify.app/?path=/docs/welcome-getting-started--docs#import-css-variables',\n '2.0.0'\n );\n // Make sure to put all awaited CSS imports below this point and not above!\n if (theme === BentoTheme.LEGACY) {\n await import('@adyen/bento-design-tokens/dist/css/bento/variables-legacy.css');\n } else if (theme === BentoTheme.STYLEGUIDE) {\n await import('@adyen/bento-design-tokens/dist/css/bento/variables-styleguide.css');\n } else {\n await import('@adyen/bento-design-tokens/dist/css/bento/variables.css');\n }\n\n if (withUtilityClasses) {\n await import('@adyen/bento-design-tokens/dist/css/bento/utility.css');\n }\n }\n\n if (theme === BentoTheme.LEGACY) {\n setTheme(BentoTheme.LEGACY);\n } else if (theme === BentoTheme.STYLEGUIDE) {\n setTheme(BentoTheme.STYLEGUIDE);\n } else if (theme === BentoTheme.BENTO_SYSTEM) {\n setTheme(BentoTheme.BENTO_SYSTEM);\n } else if (theme === BentoTheme.BENTO_DARK) {\n setTheme(BentoTheme.BENTO_DARK);\n } else if (theme === BentoTheme.BENTO) {\n deprecate('Using `BentoTheme.BENTO`', 'Please use `BentoTheme.BENTO_LIGHT` instead', '2.0.0');\n setTheme(BentoTheme.BENTO_LIGHT);\n } else {\n setTheme(BentoTheme.BENTO_LIGHT);\n }\n },\n};\n\nexport { BentoTheme };\nexport default plugin;\n"],"names":["toTypedSchema","formSchema","getInitialFormValues","schema","z","key","value","normalizeFormPath","issue","useForm","validationSchema","errors","shallowRef","errorBag","ref","values","cleanErrors","resetForm","validSchema","submitted","error","path","useBentoThemeKey","useBentoTheme","bentoThemeController","_a","getCurrentInstance","printDevelopmentWarning","installToast","Vue","toastStackInjectionKey","createToastStack","getTheme","getThemeForSystemPreference","BentoTheme","setTheme","theme","currentTheme","systemTheme","themeToSet","installTheme","themeProvider","plugin","withToast","withUtilityClasses","withDesignTokensCSSInjection","deprecate"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcO,SAASA,EAAmCC,GAAe;AACvD,SAAAA;AACX;AA4BA,SAASC,EAA0CC,GAAmC;AAClF,MAAMC,KAAKD,aAAkBC,EAAE;AAC3B,WAAO,OAAO;AAAA,MACV,OAAO,QAAQD,EAAO,KAAK,EAAE,IAAI,CAAC,CAACE,GAAKC,CAAK,MACnCF,KAAKE,aAAiBF,EAAE,aAEnB,CAACC,GAAKC,EAAM,KAAK,cAAc,IAGpCF,KAAKE,aAAiBF,EAAE,YACnB,CAACC,GAAKH,EAAqBI,CAAK,CAAC,IAGrC,CAACD,GAAK,MAAS,CACzB;AAAA,IACL;AAIR;AAOA,SAASE,EAAkBC,GAAmB;AACnC,SAAAA,EAAM,KAAK,KAAK,GAAG;AAC9B;AA2CO,SAASC,EAA6B;AAAA,EACzC,kBAAAC;AACJ,GAME;AAEQ,QAAAC,IAASC,EAA6C,EAAE,GAExDC,IAA4DC,EAAI,EAAE,GAClEC,IAA2BD,EAAIZ,EAAwBQ,CAAgB,CAAC,GAExEM,IAAc,MAAM;AACtB,IAAAL,EAAO,QAAQ,CAAC,GAChBE,EAAS,QAAQ,CAAC;AAAA,EACtB,GAEMI,IAAY,MAAM;AACR,IAAAD,EAAA,GACLD,EAAA,QAAQb,EAAwBQ,CAAgB;AAAA,EAC3D;AA8BO,SAAA;AAAA;AAAA,IAEH,UAAAG;AAAA,IACA,QAAAF;AAAA,IACA,QAAAI;AAAA;AAAA,IAGA,aAAa,MAAME,EAAU;AAAA,IAC7B,YApCe,OAAa,MAAM;AAC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"./chunks/layout-row.CtFsZ5-v.js";
2
+ export {
3
+ t as BentoLayout,
4
+ e as BentoLayoutRow
5
+ };
6
+ //# sourceMappingURL=layout.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,7 @@
1
+ import { p as r, B as a, a as e } from "./chunks/promo-banner.NSOVGA7M.js";
2
+ export {
3
+ r as BentoPromoBanner,
4
+ a as BentoPromoBannerColor,
5
+ e as BentoPromoBannerLayout
6
+ };
7
+ //# sourceMappingURL=promo-banner.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"promo-banner.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,4 +1,4 @@
1
- import { s as e } from "./chunks/secondary-nav.bchOEARi.js";
1
+ import { s as e } from "./chunks/secondary-nav.DMw1l7rH.js";
2
2
  export {
3
3
  e as BentoSecondaryNav
4
4
  };
@@ -1,4 +1,4 @@
1
- import { B as t, s as a, a as n } from "./chunks/selection-card-group.CW7c72r2.js";
1
+ import { B as t, s as a, a as n } from "./chunks/selection-card-group.BjOuUbQD.js";
2
2
  export {
3
3
  t as BentoSelectionCard,
4
4
  a as BentoSelectionCardGroup,
@@ -1,4 +1,4 @@
1
- import { B as r, a as o } from "./chunks/structured-list-item.C4gxvOkq.js";
1
+ import { B as r, a as o } from "./chunks/structured-list-item.CAcBJutf.js";
2
2
  export {
3
3
  r as BentoStructuredList,
4
4
  o as BentoStructuredListItem