@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.
- package/README.md +8 -4
- package/dist/@types/components.d.ts +6 -0
- package/dist/@types/index.d.ts +635 -373
- package/dist/action-bar.js +1 -1
- 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/card.css +1 -1
- package/dist/assets/currency.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/input-field.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/layout-row.css +1 -0
- package/dist/assets/menu.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/popover.css +1 -1
- package/dist/assets/promo-banner.css +1 -0
- package/dist/assets/search-bar.css +1 -1
- package/dist/assets/selection-card-group.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/status.css +1 -1
- package/dist/assets/structured-list-item.css +1 -1
- package/dist/chunks/{action-bar.DJmskrzB.js → action-bar.r05wfyni.js} +2 -2
- package/dist/chunks/{action-bar.DJmskrzB.js.map → action-bar.r05wfyni.js.map} +1 -1
- package/dist/chunks/{code-snippet.DcnJjb7d.js → code-snippet.DRH4X9pH.js} +3 -3
- package/dist/chunks/{code-snippet.DcnJjb7d.js.map → code-snippet.DRH4X9pH.js.map} +1 -1
- package/dist/chunks/{currency.CEqsVP2T.js → currency.P7Psn_SK.js} +53 -61
- package/dist/chunks/currency.P7Psn_SK.js.map +1 -0
- package/dist/chunks/{dashboard-section.9R8bIh92.js → dashboard-section.DchlD4B2.js} +2 -2
- package/dist/chunks/{dashboard-section.9R8bIh92.js.map → dashboard-section.DchlD4B2.js.map} +1 -1
- package/dist/chunks/{data-grid.Rsc0UaRr.js → data-grid.ahAWR42s.js} +943 -894
- package/dist/chunks/data-grid.ahAWR42s.js.map +1 -0
- package/dist/chunks/{date-picker.CiTVXFEQ.js → date-picker.lFLlAGXs.js} +12 -12
- package/dist/chunks/{date-picker.CiTVXFEQ.js.map → date-picker.lFLlAGXs.js.map} +1 -1
- package/dist/chunks/{date-range-picker.BOZHGkjI.js → date-range-picker.Cr_YCwxP.js} +21 -21
- package/dist/chunks/{date-range-picker.BOZHGkjI.js.map → date-range-picker.Cr_YCwxP.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.BDwWIqte.js → dropdown-tag.BPkMWSmY.js} +2 -2
- package/dist/chunks/{dropdown-tag.BDwWIqte.js.map → dropdown-tag.BPkMWSmY.js.map} +1 -1
- package/dist/chunks/{dropdown.BLO5AxUn.js → dropdown.D8xKm1YA.js} +41 -40
- package/dist/chunks/{dropdown.BLO5AxUn.js.map → dropdown.D8xKm1YA.js.map} +1 -1
- package/dist/chunks/es6.b4enG1py.js +10 -0
- package/dist/chunks/es6.b4enG1py.js.map +1 -0
- package/dist/chunks/{filter-bar.CvbDBAyi.js → filter-bar.dQZY8j9C.js} +6 -6
- package/dist/chunks/{filter-bar.CvbDBAyi.js.map → filter-bar.dQZY8j9C.js.map} +1 -1
- package/dist/chunks/image.C2D2hKat.js +56 -0
- package/dist/chunks/image.C2D2hKat.js.map +1 -0
- package/dist/chunks/index.D5am6ibQ.js +249 -0
- package/dist/chunks/{index.iCshT3Hx.js.map → index.D5am6ibQ.js.map} +1 -1
- package/dist/chunks/input-field.CKOdyDVy.js +226 -0
- package/dist/chunks/input-field.CKOdyDVy.js.map +1 -0
- package/dist/chunks/layout-row.CtFsZ5-v.js +87 -0
- package/dist/chunks/layout-row.CtFsZ5-v.js.map +1 -0
- package/dist/chunks/{pagination.DWJHXefX.js → pagination.CqrSR1Md.js} +2 -2
- package/dist/chunks/{pagination.DWJHXefX.js.map → pagination.CqrSR1Md.js.map} +1 -1
- package/dist/chunks/promo-banner.NSOVGA7M.js +70 -0
- package/dist/chunks/promo-banner.NSOVGA7M.js.map +1 -0
- package/dist/chunks/{search-bar.C11BS-C7.js → search-bar.CN9pWrLP.js} +36 -29
- package/dist/chunks/search-bar.CN9pWrLP.js.map +1 -0
- package/dist/chunks/{secondary-nav.CpN4jHUA.js → secondary-nav.DMw1l7rH.js} +4 -4
- package/dist/chunks/{secondary-nav.CpN4jHUA.js.map → secondary-nav.DMw1l7rH.js.map} +1 -1
- package/dist/chunks/selection-card-group.BjOuUbQD.js +299 -0
- package/dist/chunks/selection-card-group.BjOuUbQD.js.map +1 -0
- package/dist/chunks/{status.types.UkYKuQHH.js → status.types.B0jtv0c7.js} +6 -6
- package/dist/chunks/status.types.B0jtv0c7.js.map +1 -0
- package/dist/chunks/{structured-list-item.C4gxvOkq.js → structured-list-item.CAcBJutf.js} +6 -6
- package/dist/chunks/structured-list-item.CAcBJutf.js.map +1 -0
- package/dist/chunks/{timeline-item.Bmn0Pu11.js → timeline-item.CxB3KFiu.js} +2 -2
- package/dist/chunks/{timeline-item.Bmn0Pu11.js.map → timeline-item.CxB3KFiu.js.map} +1 -1
- package/dist/chunks/{tutorial.DG5I6TRS.js → tutorial.CGjM0EJT.js} +2 -2
- package/dist/chunks/{tutorial.DG5I6TRS.js.map → tutorial.CGjM0EJT.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/currency.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +1 -1
- package/dist/date-range-picker.js +1 -1
- package/dist/dropdown.js +2 -2
- package/dist/filter-bar.js +1 -1
- package/dist/image.js +1 -1
- package/dist/index.js +188 -181
- package/dist/index.js.map +1 -1
- package/dist/input-field.js +1 -1
- package/dist/layout.js +6 -0
- package/dist/layout.js.map +1 -0
- package/dist/pagination.js +1 -1
- package/dist/promo-banner.js +7 -0
- package/dist/promo-banner.js.map +1 -0
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/status.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/styles/bento-dark.css +23 -2
- package/dist/styles/bento-light.css +24 -3
- package/dist/styles/bento.css +24 -3
- package/dist/styles/legacy.css +24 -3
- package/dist/styles/styleguide.css +24 -3
- package/dist/timeline.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/web-types.json +302 -91
- package/package.json +6 -6
- package/dist/chunks/currency.CEqsVP2T.js.map +0 -1
- package/dist/chunks/data-grid.Rsc0UaRr.js.map +0 -1
- package/dist/chunks/es6.BvpG4Oi6.js +0 -9
- package/dist/chunks/es6.BvpG4Oi6.js.map +0 -1
- package/dist/chunks/image.B3uqhFjl.js +0 -82
- package/dist/chunks/image.B3uqhFjl.js.map +0 -1
- package/dist/chunks/index.iCshT3Hx.js +0 -183
- package/dist/chunks/input-field.CebnRyP_.js +0 -225
- package/dist/chunks/input-field.CebnRyP_.js.map +0 -1
- package/dist/chunks/search-bar.C11BS-C7.js.map +0 -1
- package/dist/chunks/selection-card-group.CW7c72r2.js +0 -255
- package/dist/chunks/selection-card-group.CW7c72r2.js.map +0 -1
- package/dist/chunks/status.types.UkYKuQHH.js.map +0 -1
- 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;
|