@adyen/bento-vue2 1.39.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 (116) hide show
  1. package/README.md +8 -4
  2. package/dist/@types/components.d.ts +6 -0
  3. package/dist/@types/index.d.ts +635 -373
  4. package/dist/action-bar.js +1 -1
  5. package/dist/assets/accordion-item.css +1 -1
  6. package/dist/assets/action-bar.css +1 -1
  7. package/dist/assets/base-modal.css +1 -1
  8. package/dist/assets/card.css +1 -1
  9. package/dist/assets/currency.css +1 -1
  10. package/dist/assets/data-grid.css +1 -1
  11. package/dist/assets/dialog-page.css +1 -1
  12. package/dist/assets/input-field.css +1 -1
  13. package/dist/assets/inspector.css +1 -1
  14. package/dist/assets/layout-row.css +1 -0
  15. package/dist/assets/menu.css +1 -1
  16. package/dist/assets/modal-fullscreen.css +1 -1
  17. package/dist/assets/popover.css +1 -1
  18. package/dist/assets/promo-banner.css +1 -0
  19. package/dist/assets/search-bar.css +1 -1
  20. package/dist/assets/selection-card-group.css +1 -1
  21. package/dist/assets/sidepanel.css +1 -1
  22. package/dist/assets/status.css +1 -1
  23. package/dist/assets/structured-list-item.css +1 -1
  24. package/dist/chunks/{action-bar.DJmskrzB.js → action-bar.r05wfyni.js} +2 -2
  25. package/dist/chunks/{action-bar.DJmskrzB.js.map → action-bar.r05wfyni.js.map} +1 -1
  26. package/dist/chunks/{code-snippet.DcnJjb7d.js → code-snippet.DRH4X9pH.js} +3 -3
  27. package/dist/chunks/{code-snippet.DcnJjb7d.js.map → code-snippet.DRH4X9pH.js.map} +1 -1
  28. package/dist/chunks/{currency.CEqsVP2T.js → currency.P7Psn_SK.js} +53 -61
  29. package/dist/chunks/currency.P7Psn_SK.js.map +1 -0
  30. package/dist/chunks/{dashboard-section.9R8bIh92.js → dashboard-section.DchlD4B2.js} +2 -2
  31. package/dist/chunks/{dashboard-section.9R8bIh92.js.map → dashboard-section.DchlD4B2.js.map} +1 -1
  32. package/dist/chunks/{data-grid.Rsc0UaRr.js → data-grid.ahAWR42s.js} +943 -894
  33. package/dist/chunks/data-grid.ahAWR42s.js.map +1 -0
  34. package/dist/chunks/{date-picker.CiTVXFEQ.js → date-picker.lFLlAGXs.js} +12 -12
  35. package/dist/chunks/{date-picker.CiTVXFEQ.js.map → date-picker.lFLlAGXs.js.map} +1 -1
  36. package/dist/chunks/{date-range-picker.BOZHGkjI.js → date-range-picker.Cr_YCwxP.js} +21 -21
  37. package/dist/chunks/{date-range-picker.BOZHGkjI.js.map → date-range-picker.Cr_YCwxP.js.map} +1 -1
  38. package/dist/chunks/{dropdown-tag.BDwWIqte.js → dropdown-tag.BPkMWSmY.js} +2 -2
  39. package/dist/chunks/{dropdown-tag.BDwWIqte.js.map → dropdown-tag.BPkMWSmY.js.map} +1 -1
  40. package/dist/chunks/{dropdown.BLO5AxUn.js → dropdown.D8xKm1YA.js} +41 -40
  41. package/dist/chunks/{dropdown.BLO5AxUn.js.map → dropdown.D8xKm1YA.js.map} +1 -1
  42. package/dist/chunks/es6.b4enG1py.js +10 -0
  43. package/dist/chunks/es6.b4enG1py.js.map +1 -0
  44. package/dist/chunks/{filter-bar.CvbDBAyi.js → filter-bar.dQZY8j9C.js} +6 -6
  45. package/dist/chunks/{filter-bar.CvbDBAyi.js.map → filter-bar.dQZY8j9C.js.map} +1 -1
  46. package/dist/chunks/image.C2D2hKat.js +56 -0
  47. package/dist/chunks/image.C2D2hKat.js.map +1 -0
  48. package/dist/chunks/index.D5am6ibQ.js +249 -0
  49. package/dist/chunks/{index.iCshT3Hx.js.map → index.D5am6ibQ.js.map} +1 -1
  50. package/dist/chunks/input-field.CKOdyDVy.js +226 -0
  51. package/dist/chunks/input-field.CKOdyDVy.js.map +1 -0
  52. package/dist/chunks/layout-row.CtFsZ5-v.js +87 -0
  53. package/dist/chunks/layout-row.CtFsZ5-v.js.map +1 -0
  54. package/dist/chunks/{pagination.DWJHXefX.js → pagination.CqrSR1Md.js} +2 -2
  55. package/dist/chunks/{pagination.DWJHXefX.js.map → pagination.CqrSR1Md.js.map} +1 -1
  56. package/dist/chunks/promo-banner.NSOVGA7M.js +70 -0
  57. package/dist/chunks/promo-banner.NSOVGA7M.js.map +1 -0
  58. package/dist/chunks/{search-bar.C11BS-C7.js → search-bar.CN9pWrLP.js} +36 -29
  59. package/dist/chunks/search-bar.CN9pWrLP.js.map +1 -0
  60. package/dist/chunks/{secondary-nav.CpN4jHUA.js → secondary-nav.DMw1l7rH.js} +4 -4
  61. package/dist/chunks/{secondary-nav.CpN4jHUA.js.map → secondary-nav.DMw1l7rH.js.map} +1 -1
  62. package/dist/chunks/selection-card-group.BjOuUbQD.js +299 -0
  63. package/dist/chunks/selection-card-group.BjOuUbQD.js.map +1 -0
  64. package/dist/chunks/{status.types.UkYKuQHH.js → status.types.B0jtv0c7.js} +6 -6
  65. package/dist/chunks/status.types.B0jtv0c7.js.map +1 -0
  66. package/dist/chunks/{structured-list-item.C4gxvOkq.js → structured-list-item.CAcBJutf.js} +6 -6
  67. package/dist/chunks/structured-list-item.CAcBJutf.js.map +1 -0
  68. package/dist/chunks/{timeline-item.Bmn0Pu11.js → timeline-item.CxB3KFiu.js} +2 -2
  69. package/dist/chunks/{timeline-item.Bmn0Pu11.js.map → timeline-item.CxB3KFiu.js.map} +1 -1
  70. package/dist/chunks/{tutorial.DG5I6TRS.js → tutorial.CGjM0EJT.js} +2 -2
  71. package/dist/chunks/{tutorial.DG5I6TRS.js.map → tutorial.CGjM0EJT.js.map} +1 -1
  72. package/dist/code-snippet.js +1 -1
  73. package/dist/currency.js +1 -1
  74. package/dist/dashboard-template.js +1 -1
  75. package/dist/data-grid.js +1 -1
  76. package/dist/date-picker.js +1 -1
  77. package/dist/date-range-picker.js +1 -1
  78. package/dist/dropdown.js +2 -2
  79. package/dist/filter-bar.js +1 -1
  80. package/dist/image.js +1 -1
  81. package/dist/index.js +188 -181
  82. package/dist/index.js.map +1 -1
  83. package/dist/input-field.js +1 -1
  84. package/dist/layout.js +6 -0
  85. package/dist/layout.js.map +1 -0
  86. package/dist/pagination.js +1 -1
  87. package/dist/promo-banner.js +7 -0
  88. package/dist/promo-banner.js.map +1 -0
  89. package/dist/search-bar.js +2 -2
  90. package/dist/secondary-nav.js +1 -1
  91. package/dist/selection-card.js +1 -1
  92. package/dist/status.js +1 -1
  93. package/dist/structured-list.js +1 -1
  94. package/dist/styles/bento-dark.css +23 -2
  95. package/dist/styles/bento-light.css +24 -3
  96. package/dist/styles/bento.css +24 -3
  97. package/dist/styles/legacy.css +24 -3
  98. package/dist/styles/styleguide.css +24 -3
  99. package/dist/timeline.js +1 -1
  100. package/dist/tutorial.js +1 -1
  101. package/dist/web-types.json +302 -91
  102. package/package.json +6 -6
  103. package/dist/chunks/currency.CEqsVP2T.js.map +0 -1
  104. package/dist/chunks/data-grid.Rsc0UaRr.js.map +0 -1
  105. package/dist/chunks/es6.BvpG4Oi6.js +0 -9
  106. package/dist/chunks/es6.BvpG4Oi6.js.map +0 -1
  107. package/dist/chunks/image.B3uqhFjl.js +0 -82
  108. package/dist/chunks/image.B3uqhFjl.js.map +0 -1
  109. package/dist/chunks/index.iCshT3Hx.js +0 -183
  110. package/dist/chunks/input-field.CebnRyP_.js +0 -225
  111. package/dist/chunks/input-field.CebnRyP_.js.map +0 -1
  112. package/dist/chunks/search-bar.C11BS-C7.js.map +0 -1
  113. package/dist/chunks/selection-card-group.CW7c72r2.js +0 -255
  114. package/dist/chunks/selection-card-group.CW7c72r2.js.map +0 -1
  115. package/dist/chunks/status.types.UkYKuQHH.js.map +0 -1
  116. package/dist/chunks/structured-list-item.C4gxvOkq.js.map +0 -1
package/README.md CHANGED
@@ -468,22 +468,26 @@ The Bento plugin defaults to `BentoTheme.BENTO_LIGHT` if unset.
468
468
 
469
469
  Starting from version v1.37.0, variables for the dark theme have been introduced, along with the `useBentoTheme`
470
470
  composable. This must be used together with the `BentoVue` plugin for theme toggling and configuration to function
471
- properly.
471
+ properly. Additionally, ensure that [the CSS variables are imported](#import-css-variables) to enable correct styling.
472
472
 
473
473
  #### Setting a default theme
474
474
 
475
475
  To set a default theme at the application level, ensure that the BentoVue plugin is properly integrated.
476
476
 
477
477
  ```typescript
478
+ // import the stylesheets
479
+ import '@adyen/bento-vue2/styles/bento-light';
480
+ import '@adyen/bento-vue2/styles/bento-dark';
481
+
478
482
  // set default to light theme
479
- Vue.use(BentoVue, { theme: BentoTheme.BENTO_LIGHT });
483
+ Vue.use(BentoVue, { theme: BentoTheme.BENTO_LIGHT, withDesignTokensCSSInjection: false });
480
484
 
481
485
  // set default to dark theme
482
- Vue.use(BentoVue, { theme: BentoTheme.BENTO_DARK });
486
+ Vue.use(BentoVue, { theme: BentoTheme.BENTO_DARK, withDesignTokensCSSInjection: false });
483
487
 
484
488
  // set default to follow user preference
485
489
  // this is implemented using window.matchMedia(), so the behavior may vary across different browsers and systems
486
- Vue.use(BentoVue, { theme: BentoTheme.BENTO_SYSTEM });
490
+ Vue.use(BentoVue, { theme: BentoTheme.BENTO_SYSTEM, withDesignTokensCSSInjection: false });
487
491
  ```
488
492
 
489
493
  #### Toggling a theme
@@ -45,6 +45,8 @@ import {
45
45
  BentoInfoIcon,
46
46
  BentoInputField,
47
47
  BentoInspector,
48
+ BentoLayout,
49
+ BentoLayoutRow,
48
50
  BentoLink,
49
51
  BentoLoadingButton,
50
52
  BentoLoadingIndicator,
@@ -56,6 +58,7 @@ import {
56
58
  BentoPagination,
57
59
  BentoPaymentMethod,
58
60
  BentoPopover,
61
+ BentoPromoBanner,
59
62
  BentoRadioButton,
60
63
  BentoRadioGroup,
61
64
  BentoSearchBar,
@@ -133,6 +136,8 @@ declare module 'vue' {
133
136
  BentoImage: typeof BentoImage;
134
137
  BentoInfoIcon: typeof BentoInfoIcon;
135
138
  BentoInspector: typeof BentoInspector;
139
+ BentoLayout: typeof BentoLayout;
140
+ BentoLayoutRow: typeof BentoLayoutRow;
136
141
  BentoDropdownCurrency: typeof BentoDropdownCurrency;
137
142
  BentoDropdownPaymentMethod: typeof BentoDropdownPaymentMethod;
138
143
  BentoDropdownTag: typeof BentoDropdownTag;
@@ -148,6 +153,7 @@ declare module 'vue' {
148
153
  BentoPagination: typeof BentoPagination;
149
154
  BentoPaymentMethod: typeof BentoPaymentMethod;
150
155
  BentoPopover: typeof BentoPopover;
156
+ BentoPromoBanner: typeof BentoPromoBanner;
151
157
  BentoRadioButton: typeof BentoRadioButton;
152
158
  BentoRadioGroup: typeof BentoRadioGroup;
153
159
  BentoSearchBar: typeof BentoSearchBar;