@adyen/bento-vue2 1.62.0 → 1.63.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 +181 -235
- package/dist/accordion.js +1 -1
- 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/checkbox-input.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/header-with-views.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/listbox-option-tag.css +1 -1
- 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/sidepanel.css +1 -1
- package/dist/assets/use-cached-selected-values.css +1 -1
- package/dist/card.js +1 -1
- package/dist/checkbox.js +3 -3
- package/dist/chunks/{accordion-item.D1t0oHlP.js → accordion-item.BNtdoVto.js} +9 -8
- package/dist/chunks/{accordion-item.D1t0oHlP.js.map → accordion-item.BNtdoVto.js.map} +1 -1
- package/dist/chunks/{action-bar.whU1em8H.js → action-bar.Dsp7iRxz.js} +2 -2
- package/dist/chunks/{action-bar.whU1em8H.js.map → action-bar.Dsp7iRxz.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.RoaQFPKT.js → button-actions-with-menu.CtW_16tY.js} +2 -2
- package/dist/chunks/{button-actions-with-menu.RoaQFPKT.js.map → button-actions-with-menu.CtW_16tY.js.map} +1 -1
- package/dist/chunks/{calendar.DoOFNX-Z.js → calendar.DbTC35rM.js} +2 -2
- package/dist/chunks/{calendar.DoOFNX-Z.js.map → calendar.DbTC35rM.js.map} +1 -1
- package/dist/chunks/card.CypgT0Ji.js +136 -0
- package/dist/chunks/card.CypgT0Ji.js.map +1 -0
- package/dist/chunks/{checkbox-group.B0IGYf1q.js → checkbox-group.6y92U6AF.js} +2 -2
- package/dist/chunks/{checkbox-group.B0IGYf1q.js.map → checkbox-group.6y92U6AF.js.map} +1 -1
- package/dist/chunks/checkbox-input.CNWigbX4.js +117 -0
- package/dist/chunks/checkbox-input.CNWigbX4.js.map +1 -0
- package/dist/chunks/{checkbox.DkCukYh0.js → checkbox.C9nJVvMq.js} +9 -8
- package/dist/chunks/{checkbox.DkCukYh0.js.map → checkbox.C9nJVvMq.js.map} +1 -1
- package/dist/chunks/chevron-down.eYtgv5ly.js +24 -0
- package/dist/chunks/chevron-down.eYtgv5ly.js.map +1 -0
- package/dist/chunks/{chevron-left.BS24hEFa.js → chevron-right.C--ZOC9j.js} +5 -5
- package/dist/chunks/chevron-right.C--ZOC9j.js.map +1 -0
- package/dist/chunks/chevron-up.d8cwIlA_.js +24 -0
- package/dist/chunks/chevron-up.d8cwIlA_.js.map +1 -0
- package/dist/chunks/{code-snippet.n93oYvH4.js → code-snippet.CBU8Tlbs.js} +2 -2
- package/dist/chunks/{code-snippet.n93oYvH4.js.map → code-snippet.CBU8Tlbs.js.map} +1 -1
- package/dist/chunks/{dashboard-section.BEw-n-XQ.js → dashboard-section.CspNW0CA.js} +3 -3
- package/dist/chunks/{dashboard-section.BEw-n-XQ.js.map → dashboard-section.CspNW0CA.js.map} +1 -1
- package/dist/chunks/{data-grid-template.DGFmCUII.js → data-grid-template.BhzgqkZp.js} +3 -3
- package/dist/chunks/{data-grid-template.DGFmCUII.js.map → data-grid-template.BhzgqkZp.js.map} +1 -1
- package/dist/chunks/{data-grid.BcGRXt9C.js → data-grid.BfsBhYpW.js} +451 -452
- package/dist/chunks/data-grid.BfsBhYpW.js.map +1 -0
- package/dist/chunks/{date-picker.Dc_HdQnr.js → date-picker.CPQ6WLZE.js} +3 -3
- package/dist/chunks/{date-picker.Dc_HdQnr.js.map → date-picker.CPQ6WLZE.js.map} +1 -1
- package/dist/chunks/date-range-picker.CNB28UaM.js +1005 -0
- package/dist/chunks/date-range-picker.CNB28UaM.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.7PMxHqoa.js → dropdown-default-textbox.BNuuA4ES.js} +15 -14
- package/dist/chunks/{dropdown-default-textbox.7PMxHqoa.js.map → dropdown-default-textbox.BNuuA4ES.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.qKSu6xYY.js → dropdown-tag.DmVsDrL_.js} +3 -3
- package/dist/chunks/{dropdown-tag.qKSu6xYY.js.map → dropdown-tag.DmVsDrL_.js.map} +1 -1
- package/dist/chunks/{dropdown.BNLPzKbr.js → dropdown.B_PWXFtT.js} +3 -3
- package/dist/chunks/{dropdown.BNLPzKbr.js.map → dropdown.B_PWXFtT.js.map} +1 -1
- package/dist/chunks/es6.n1ewaW31.js.map +1 -1
- package/dist/chunks/{filter-bar.TiqZofNt.js → filter-bar.D6HeYnzZ.js} +15 -14
- package/dist/chunks/{filter-bar.TiqZofNt.js.map → filter-bar.D6HeYnzZ.js.map} +1 -1
- package/dist/chunks/{fixed-scroller.Ctz5dFqz.js → fixed-scroller.XN-jvWqb.js} +12 -12
- package/dist/chunks/fixed-scroller.XN-jvWqb.js.map +1 -0
- package/dist/chunks/{header-with-views.MFHmiIXb.js → header-with-views.Dkn8IDew.js} +270 -270
- package/dist/chunks/header-with-views.Dkn8IDew.js.map +1 -0
- package/dist/chunks/{header.B1PrBQG0.js → header.DNzQO7u-.js} +2 -2
- package/dist/chunks/{header.B1PrBQG0.js.map → header.DNzQO7u-.js.map} +1 -1
- package/dist/chunks/{input-field-password.BlX3Icgt.js → input-field-password.CY3eRVpe.js} +3 -3
- package/dist/chunks/{input-field-password.BlX3Icgt.js.map → input-field-password.CY3eRVpe.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.Ofvi2A48.js → input-field-phone-number.CN5qZ0VL.js} +3 -3
- package/dist/chunks/{input-field-phone-number.Ofvi2A48.js.map → input-field-phone-number.CN5qZ0VL.js.map} +1 -1
- package/dist/chunks/{input-field.Dck9dAeK.js → input-field.DKhsSYF8.js} +2 -2
- package/dist/chunks/{input-field.Dck9dAeK.js.map → input-field.DKhsSYF8.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.EzSkn_lM.js → listbox-option-tag.DFmB_TuD.js} +9 -9
- package/dist/chunks/listbox-option-tag.DFmB_TuD.js.map +1 -0
- package/dist/chunks/menu.W_kuhRKI.js +514 -0
- package/dist/chunks/menu.W_kuhRKI.js.map +1 -0
- package/dist/chunks/minus-small.DJacLGTw.js +27 -0
- package/dist/chunks/minus-small.DJacLGTw.js.map +1 -0
- package/dist/chunks/{pagination.BvhUFgsT.js → pagination.DvP8FqiW.js} +2 -2
- package/dist/chunks/{pagination.BvhUFgsT.js.map → pagination.DvP8FqiW.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.BTJpOiYL.js → rich-text-editor.aSOSl4Rz.js} +2 -2
- package/dist/chunks/{rich-text-editor.BTJpOiYL.js.map → rich-text-editor.aSOSl4Rz.js.map} +1 -1
- package/dist/chunks/{search-bar.Ch1dLZAb.js → search-bar.Sh4A8UId.js} +3 -3
- package/dist/chunks/{search-bar.Ch1dLZAb.js.map → search-bar.Sh4A8UId.js.map} +1 -1
- package/dist/chunks/{secondary-nav.DBssP9fQ.js → secondary-nav.BFtGx_IN.js} +2 -2
- package/dist/chunks/{secondary-nav.DBssP9fQ.js.map → secondary-nav.BFtGx_IN.js.map} +1 -1
- package/dist/chunks/{selection-card-group.CjFm-cAm.js → selection-card-group.CrWy35QU.js} +2 -2
- package/dist/chunks/{selection-card-group.CjFm-cAm.js.map → selection-card-group.CrWy35QU.js.map} +1 -1
- package/dist/chunks/{tabs.zkTl2PQR.js → tabs.Dx6teJGW.js} +2 -2
- package/dist/chunks/{tabs.zkTl2PQR.js.map → tabs.Dx6teJGW.js.map} +1 -1
- package/dist/chunks/{tutorial.C9PYfB4z.js → tutorial.BNZh6N3h.js} +2 -2
- package/dist/chunks/{tutorial.C9PYfB4z.js.map → tutorial.BNZh6N3h.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.Da6xbfzO.js → use-cached-selected-values.CDBmVxYM.js} +514 -481
- package/dist/chunks/use-cached-selected-values.CDBmVxYM.js.map +1 -0
- package/dist/code-snippet.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/dropdown.js +4 -4
- package/dist/filter-bar.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +31 -31
- 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 +5 -5
- package/dist/menu.js +1 -1
- package/dist/pagination.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/selection-card.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/tabs.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/web-types.json +176 -120
- package/package.json +7 -7
- package/dist/chunks/card.Cu6MicVI.js +0 -123
- package/dist/chunks/card.Cu6MicVI.js.map +0 -1
- package/dist/chunks/checkbox-input.B-4Rw5mp.js +0 -137
- package/dist/chunks/checkbox-input.B-4Rw5mp.js.map +0 -1
- package/dist/chunks/chevron-left.BS24hEFa.js.map +0 -1
- package/dist/chunks/chevron-up.CHK1E4p9.js +0 -43
- package/dist/chunks/chevron-up.CHK1E4p9.js.map +0 -1
- package/dist/chunks/data-grid.BcGRXt9C.js.map +0 -1
- package/dist/chunks/date-range-picker.D6xJAHoB.js +0 -977
- package/dist/chunks/date-range-picker.D6xJAHoB.js.map +0 -1
- package/dist/chunks/fixed-scroller.Ctz5dFqz.js.map +0 -1
- package/dist/chunks/header-with-views.MFHmiIXb.js.map +0 -1
- package/dist/chunks/listbox-option-tag.EzSkn_lM.js.map +0 -1
- package/dist/chunks/menu.CTVbNfuo.js +0 -601
- package/dist/chunks/menu.CTVbNfuo.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.Da6xbfzO.js.map +0 -1
package/dist/secondary-nav.js
CHANGED
package/dist/selection-card.js
CHANGED
|
@@ -1764,11 +1764,15 @@
|
|
|
1764
1764
|
--b-card-animation-easing: var(--b-animation-easing-standard);
|
|
1765
1765
|
--b-card-animation-duration: var(--b-animation-duration-moderate);
|
|
1766
1766
|
--b-card-title-wrapper-gap: var(--b-spacer-070);
|
|
1767
|
+
--b-card-secondary-clickable-active-background-color: var(--b-color-background-secondary-active);
|
|
1768
|
+
--b-card-secondary-clickable-hover-background-color: var(--b-color-background-secondary-hover);
|
|
1767
1769
|
--b-card-secondary-header-focus-background-color: var(--b-color-background-secondary-hover);
|
|
1768
1770
|
--b-card-secondary-header-active-background-color: var(--b-color-background-secondary-active);
|
|
1769
1771
|
--b-card-secondary-header-hover-background-color: var(--b-color-background-secondary-hover);
|
|
1770
1772
|
--b-card-secondary-hover-background-color: var(--b-color-background-tertiary);
|
|
1771
1773
|
--b-card-secondary-background-color: var(--b-color-background-secondary);
|
|
1774
|
+
--b-card-clickable-active-background-color: var(--b-color-background-primary-active);
|
|
1775
|
+
--b-card-clickable-hover-background-color: var(--b-color-background-primary-hover);
|
|
1772
1776
|
--b-card-disabled-color: var(--b-color-label-disabled);
|
|
1773
1777
|
--b-card-disabled-background-color: var(--b-color-background-secondary);
|
|
1774
1778
|
--b-card-expandable-header-padding-bottom: var(--b-spacer-060);
|
|
@@ -1762,11 +1762,15 @@
|
|
|
1762
1762
|
--b-card-animation-easing: var(--b-animation-easing-standard);
|
|
1763
1763
|
--b-card-animation-duration: var(--b-animation-duration-moderate);
|
|
1764
1764
|
--b-card-title-wrapper-gap: var(--b-spacer-070);
|
|
1765
|
+
--b-card-secondary-clickable-active-background-color: var(--b-color-background-secondary-active);
|
|
1766
|
+
--b-card-secondary-clickable-hover-background-color: var(--b-color-background-secondary-hover);
|
|
1765
1767
|
--b-card-secondary-header-focus-background-color: var(--b-color-background-secondary-hover);
|
|
1766
1768
|
--b-card-secondary-header-active-background-color: var(--b-color-background-secondary-active);
|
|
1767
1769
|
--b-card-secondary-header-hover-background-color: var(--b-color-background-secondary-hover);
|
|
1768
1770
|
--b-card-secondary-hover-background-color: var(--b-color-background-tertiary);
|
|
1769
1771
|
--b-card-secondary-background-color: var(--b-color-background-secondary);
|
|
1772
|
+
--b-card-clickable-active-background-color: var(--b-color-background-primary-active);
|
|
1773
|
+
--b-card-clickable-hover-background-color: var(--b-color-background-primary-hover);
|
|
1770
1774
|
--b-card-disabled-color: var(--b-color-label-disabled);
|
|
1771
1775
|
--b-card-disabled-background-color: var(--b-color-background-secondary);
|
|
1772
1776
|
--b-card-expandable-header-padding-bottom: var(--b-spacer-060);
|
package/dist/styles/bento.css
CHANGED
|
@@ -1762,11 +1762,15 @@
|
|
|
1762
1762
|
--b-card-animation-easing: var(--b-animation-easing-standard);
|
|
1763
1763
|
--b-card-animation-duration: var(--b-animation-duration-moderate);
|
|
1764
1764
|
--b-card-title-wrapper-gap: var(--b-spacer-070);
|
|
1765
|
+
--b-card-secondary-clickable-active-background-color: var(--b-color-background-secondary-active);
|
|
1766
|
+
--b-card-secondary-clickable-hover-background-color: var(--b-color-background-secondary-hover);
|
|
1765
1767
|
--b-card-secondary-header-focus-background-color: var(--b-color-background-secondary-hover);
|
|
1766
1768
|
--b-card-secondary-header-active-background-color: var(--b-color-background-secondary-active);
|
|
1767
1769
|
--b-card-secondary-header-hover-background-color: var(--b-color-background-secondary-hover);
|
|
1768
1770
|
--b-card-secondary-hover-background-color: var(--b-color-background-tertiary);
|
|
1769
1771
|
--b-card-secondary-background-color: var(--b-color-background-secondary);
|
|
1772
|
+
--b-card-clickable-active-background-color: var(--b-color-background-primary-active);
|
|
1773
|
+
--b-card-clickable-hover-background-color: var(--b-color-background-primary-hover);
|
|
1770
1774
|
--b-card-disabled-color: var(--b-color-label-disabled);
|
|
1771
1775
|
--b-card-disabled-background-color: var(--b-color-background-secondary);
|
|
1772
1776
|
--b-card-expandable-header-padding-bottom: var(--b-spacer-060);
|
package/dist/styles/legacy.css
CHANGED
|
@@ -1647,12 +1647,16 @@
|
|
|
1647
1647
|
--b-card-animation-easing: var(--b-animation-easing-standard);
|
|
1648
1648
|
--b-card-animation-duration: var(--b-animation-duration-moderate);
|
|
1649
1649
|
--b-card-title-wrapper-gap: var(--b-spacer-070);
|
|
1650
|
+
--b-card-secondary-clickable-active-background-color: var(--b-color-background-secondary-active);
|
|
1651
|
+
--b-card-secondary-clickable-hover-background-color: var(--b-color-background-secondary-hover);
|
|
1650
1652
|
--b-card-secondary-header-focus-background-color: var(--b-color-background-secondary-hover);
|
|
1651
1653
|
--b-card-secondary-header-active-background-color: var(--b-color-background-secondary-active);
|
|
1652
1654
|
--b-card-secondary-header-hover-background-color: var(--b-color-background-secondary-hover);
|
|
1653
1655
|
--b-card-secondary-hover-background-color: var(--b-color-background-tertiary);
|
|
1654
1656
|
--b-card-secondary-border-color: var(--b-color-grey-10);
|
|
1655
1657
|
--b-card-secondary-background-color: var(--b-color-grey-10);
|
|
1658
|
+
--b-card-clickable-active-background-color: var(--b-color-background-primary-active);
|
|
1659
|
+
--b-card-clickable-hover-background-color: var(--b-color-background-primary-hover);
|
|
1656
1660
|
--b-card-disabled-color: var(--b-color-label-disabled);
|
|
1657
1661
|
--b-card-disabled-background-color: var(--b-color-background-secondary);
|
|
1658
1662
|
--b-card-expandable-header-padding-bottom: var(--b-spacer-060);
|
|
@@ -1817,11 +1817,15 @@
|
|
|
1817
1817
|
--b-card-animation-easing: var(--b-animation-easing-standard);
|
|
1818
1818
|
--b-card-animation-duration: var(--b-animation-duration-moderate);
|
|
1819
1819
|
--b-card-title-wrapper-gap: var(--b-spacer-070);
|
|
1820
|
+
--b-card-secondary-clickable-active-background-color: var(--b-color-background-secondary-active);
|
|
1821
|
+
--b-card-secondary-clickable-hover-background-color: var(--b-color-background-secondary-hover);
|
|
1820
1822
|
--b-card-secondary-header-focus-background-color: var(--b-color-background-secondary-hover);
|
|
1821
1823
|
--b-card-secondary-header-active-background-color: var(--b-color-background-secondary-active);
|
|
1822
1824
|
--b-card-secondary-header-hover-background-color: var(--b-color-background-secondary-hover);
|
|
1823
1825
|
--b-card-secondary-hover-background-color: var(--b-color-background-tertiary);
|
|
1824
1826
|
--b-card-secondary-background-color: var(--b-color-background-secondary);
|
|
1827
|
+
--b-card-clickable-active-background-color: var(--b-color-background-primary-active);
|
|
1828
|
+
--b-card-clickable-hover-background-color: var(--b-color-background-primary-hover);
|
|
1825
1829
|
--b-card-disabled-color: var(--b-color-label-disabled);
|
|
1826
1830
|
--b-card-disabled-background-color: var(--b-color-background-secondary);
|
|
1827
1831
|
--b-card-expandable-header-padding-bottom: var(--b-spacer-060);
|
package/dist/tabs.js
CHANGED
package/dist/tutorial.js
CHANGED
package/dist/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"framework": "vue",
|
|
3
3
|
"name": "@adyen/bento-vue2",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.63.0",
|
|
5
5
|
"contributions": {
|
|
6
6
|
"html": {
|
|
7
7
|
"description-markup": "markdown",
|
|
@@ -2188,125 +2188,6 @@
|
|
|
2188
2188
|
"symbol": "default"
|
|
2189
2189
|
}
|
|
2190
2190
|
},
|
|
2191
|
-
{
|
|
2192
|
-
"name": "bento-menu",
|
|
2193
|
-
"description": "Menu component to render a series of buttons. Csan render nested submenus.",
|
|
2194
|
-
"attributes": [
|
|
2195
|
-
{
|
|
2196
|
-
"name": "button",
|
|
2197
|
-
"description": "Object containing props to change the menu button appearance. Accepts the same props present in BentoButton.",
|
|
2198
|
-
"value": {
|
|
2199
|
-
"kind": "expression",
|
|
2200
|
-
"type": "BentoMenuButtonProps"
|
|
2201
|
-
},
|
|
2202
|
-
"default": "() =>\n (({\n variant: 'secondary'\n }) as BentoMenuButtonProps)"
|
|
2203
|
-
},
|
|
2204
|
-
{
|
|
2205
|
-
"name": "closeMenuOnItemSelect",
|
|
2206
|
-
"description": "Controls if the menu should close when an item is clicked.\nDefaults to `true`.",
|
|
2207
|
-
"value": {
|
|
2208
|
-
"kind": "expression",
|
|
2209
|
-
"type": "boolean"
|
|
2210
|
-
},
|
|
2211
|
-
"default": "true"
|
|
2212
|
-
},
|
|
2213
|
-
{
|
|
2214
|
-
"name": "data",
|
|
2215
|
-
"required": true,
|
|
2216
|
-
"description": "The data to be displayed in the list",
|
|
2217
|
-
"value": {
|
|
2218
|
-
"kind": "expression",
|
|
2219
|
-
"type": "BentoMenuItem[]"
|
|
2220
|
-
}
|
|
2221
|
-
},
|
|
2222
|
-
{
|
|
2223
|
-
"name": "disableArrowDownOpeningMenu",
|
|
2224
|
-
"description": "Disables opening the menu when the down arrow key is pressed.",
|
|
2225
|
-
"value": {
|
|
2226
|
-
"kind": "expression",
|
|
2227
|
-
"type": "boolean"
|
|
2228
|
-
},
|
|
2229
|
-
"default": "false"
|
|
2230
|
-
},
|
|
2231
|
-
{
|
|
2232
|
-
"name": "menuPosition",
|
|
2233
|
-
"description": "The position of where the menu should open.",
|
|
2234
|
-
"value": {
|
|
2235
|
-
"kind": "expression",
|
|
2236
|
-
"type": "BentoPopoverPositions | `${BentoPopoverPositions}`"
|
|
2237
|
-
},
|
|
2238
|
-
"default": "BentoPopoverPositions.BOTTOM_START"
|
|
2239
|
-
},
|
|
2240
|
-
{
|
|
2241
|
-
"name": "menuFixedPositioning",
|
|
2242
|
-
"description": "Instructs the menu popover to be visible outside of the containing container.",
|
|
2243
|
-
"value": {
|
|
2244
|
-
"kind": "expression",
|
|
2245
|
-
"type": "boolean"
|
|
2246
|
-
},
|
|
2247
|
-
"default": "false"
|
|
2248
|
-
},
|
|
2249
|
-
{
|
|
2250
|
-
"name": "menuWidth",
|
|
2251
|
-
"description": "Sets a custom width for the menu popover.",
|
|
2252
|
-
"value": {
|
|
2253
|
-
"kind": "expression",
|
|
2254
|
-
"type": "number"
|
|
2255
|
-
},
|
|
2256
|
-
"default": "null"
|
|
2257
|
-
},
|
|
2258
|
-
{
|
|
2259
|
-
"name": "revertFocusToButton",
|
|
2260
|
-
"description": "Returns focus to the menu button after popover is closed.\nDisable if focus management is delegated to the parent component.\nDefaults to `true`.",
|
|
2261
|
-
"value": {
|
|
2262
|
-
"kind": "expression",
|
|
2263
|
-
"type": "boolean"
|
|
2264
|
-
},
|
|
2265
|
-
"default": "true"
|
|
2266
|
-
},
|
|
2267
|
-
{
|
|
2268
|
-
"name": "teleport",
|
|
2269
|
-
"description": "Can be used to set the inner teleport component to render the menu's popover in the root `body` DOM node\n(or `dialog` if popover is inside a dialog).",
|
|
2270
|
-
"value": {
|
|
2271
|
-
"kind": "expression",
|
|
2272
|
-
"type": "boolean"
|
|
2273
|
-
},
|
|
2274
|
-
"default": "false"
|
|
2275
|
-
},
|
|
2276
|
-
{
|
|
2277
|
-
"name": "closeOnClickOutsideOptions",
|
|
2278
|
-
"description": "Can be used to set the inner teleport component to render the menu's popover in the root `body` DOM node\n(or `dialog` if popover is inside a dialog).",
|
|
2279
|
-
"value": {
|
|
2280
|
-
"kind": "expression",
|
|
2281
|
-
"type": "OnClickOutsideOptions"
|
|
2282
|
-
},
|
|
2283
|
-
"default": "undefined"
|
|
2284
|
-
}
|
|
2285
|
-
],
|
|
2286
|
-
"events": [
|
|
2287
|
-
{
|
|
2288
|
-
"name": "menu-item-click"
|
|
2289
|
-
},
|
|
2290
|
-
{
|
|
2291
|
-
"name": "click-outside"
|
|
2292
|
-
}
|
|
2293
|
-
],
|
|
2294
|
-
"slots": [
|
|
2295
|
-
{
|
|
2296
|
-
"name": "iconLeft"
|
|
2297
|
-
},
|
|
2298
|
-
{
|
|
2299
|
-
"name": "default"
|
|
2300
|
-
},
|
|
2301
|
-
{
|
|
2302
|
-
"name": "iconRight"
|
|
2303
|
-
}
|
|
2304
|
-
],
|
|
2305
|
-
"source": {
|
|
2306
|
-
"module": "./src/components/menu/menu.vue",
|
|
2307
|
-
"symbol": "default"
|
|
2308
|
-
}
|
|
2309
|
-
},
|
|
2310
2191
|
{
|
|
2311
2192
|
"name": "bento-popover-dismiss-button",
|
|
2312
2193
|
"description": "",
|
|
@@ -3457,6 +3338,16 @@
|
|
|
3457
3338
|
},
|
|
3458
3339
|
"default": "BentoCardBackground.PRIMARY"
|
|
3459
3340
|
},
|
|
3341
|
+
{
|
|
3342
|
+
"name": "clickable",
|
|
3343
|
+
"required": false,
|
|
3344
|
+
"description": "Makes the whole card clickable",
|
|
3345
|
+
"value": {
|
|
3346
|
+
"kind": "expression",
|
|
3347
|
+
"type": "boolean"
|
|
3348
|
+
},
|
|
3349
|
+
"default": "false"
|
|
3350
|
+
},
|
|
3460
3351
|
{
|
|
3461
3352
|
"name": "closed",
|
|
3462
3353
|
"required": false,
|
|
@@ -9615,6 +9506,46 @@
|
|
|
9615
9506
|
"symbol": "default"
|
|
9616
9507
|
}
|
|
9617
9508
|
},
|
|
9509
|
+
{
|
|
9510
|
+
"name": "listbox-decorative-checkbox",
|
|
9511
|
+
"description": "",
|
|
9512
|
+
"attributes": [
|
|
9513
|
+
{
|
|
9514
|
+
"name": "disabled",
|
|
9515
|
+
"required": false,
|
|
9516
|
+
"description": "Setting this property to true will disable the checkbox in your form.",
|
|
9517
|
+
"value": {
|
|
9518
|
+
"kind": "expression",
|
|
9519
|
+
"type": "boolean"
|
|
9520
|
+
},
|
|
9521
|
+
"default": "false"
|
|
9522
|
+
},
|
|
9523
|
+
{
|
|
9524
|
+
"name": "indeterminate",
|
|
9525
|
+
"required": false,
|
|
9526
|
+
"description": "The :indeterminate CSS pseudo-class represents any form element\nwhose state is indeterminate, such as checkboxes which have their HTML indeterminate attribute\nset to true, radio buttons which are members of a group in which all radio buttons are unchecked,\nand indeterminate <progress> elements. https://developer.mozilla.org/en-US/docs/Web/CSS/:indeterminate\nThis property lets you control the input.indeterminate native property.",
|
|
9527
|
+
"value": {
|
|
9528
|
+
"kind": "expression",
|
|
9529
|
+
"type": "boolean"
|
|
9530
|
+
},
|
|
9531
|
+
"default": "false"
|
|
9532
|
+
},
|
|
9533
|
+
{
|
|
9534
|
+
"name": "checked",
|
|
9535
|
+
"required": false,
|
|
9536
|
+
"description": "Setting this to true will show the checkbox as checked",
|
|
9537
|
+
"value": {
|
|
9538
|
+
"kind": "expression",
|
|
9539
|
+
"type": "boolean"
|
|
9540
|
+
},
|
|
9541
|
+
"default": "false"
|
|
9542
|
+
}
|
|
9543
|
+
],
|
|
9544
|
+
"source": {
|
|
9545
|
+
"module": "./src/components/internal/listbox/components/listbox-multi-select/components/listbox-decorative-checkbox/listbox-decorative-checkbox.vue",
|
|
9546
|
+
"symbol": "default"
|
|
9547
|
+
}
|
|
9548
|
+
},
|
|
9618
9549
|
{
|
|
9619
9550
|
"name": "listbox-multi-select",
|
|
9620
9551
|
"description": "",
|
|
@@ -9893,6 +9824,131 @@
|
|
|
9893
9824
|
"symbol": "default"
|
|
9894
9825
|
}
|
|
9895
9826
|
},
|
|
9827
|
+
{
|
|
9828
|
+
"name": "menu",
|
|
9829
|
+
"description": "",
|
|
9830
|
+
"attributes": [
|
|
9831
|
+
{
|
|
9832
|
+
"name": "button",
|
|
9833
|
+
"required": false,
|
|
9834
|
+
"description": "Object containing props to change the menu button appearance. Accepts the same props present in BentoButton.",
|
|
9835
|
+
"value": {
|
|
9836
|
+
"kind": "expression",
|
|
9837
|
+
"type": "BentoMenuButtonProps"
|
|
9838
|
+
},
|
|
9839
|
+
"default": "() => ({\n variant: 'secondary',\n})"
|
|
9840
|
+
},
|
|
9841
|
+
{
|
|
9842
|
+
"name": "closeMenuOnItemSelect",
|
|
9843
|
+
"required": false,
|
|
9844
|
+
"description": "Controls if the menu should close when an item is clicked.\nDefaults to `true`.",
|
|
9845
|
+
"value": {
|
|
9846
|
+
"kind": "expression",
|
|
9847
|
+
"type": "boolean"
|
|
9848
|
+
},
|
|
9849
|
+
"default": "true"
|
|
9850
|
+
},
|
|
9851
|
+
{
|
|
9852
|
+
"name": "data",
|
|
9853
|
+
"required": true,
|
|
9854
|
+
"description": "The data to be displayed in the list",
|
|
9855
|
+
"value": {
|
|
9856
|
+
"kind": "expression",
|
|
9857
|
+
"type": "Array"
|
|
9858
|
+
}
|
|
9859
|
+
},
|
|
9860
|
+
{
|
|
9861
|
+
"name": "disableArrowDownOpeningMenu",
|
|
9862
|
+
"required": false,
|
|
9863
|
+
"description": "Disables opening the menu when the down arrow key is pressed.",
|
|
9864
|
+
"value": {
|
|
9865
|
+
"kind": "expression",
|
|
9866
|
+
"type": "boolean"
|
|
9867
|
+
},
|
|
9868
|
+
"default": "false"
|
|
9869
|
+
},
|
|
9870
|
+
{
|
|
9871
|
+
"name": "menuPosition",
|
|
9872
|
+
"required": false,
|
|
9873
|
+
"description": "The position of where the menu should open.",
|
|
9874
|
+
"value": {
|
|
9875
|
+
"kind": "expression",
|
|
9876
|
+
"type": "union"
|
|
9877
|
+
},
|
|
9878
|
+
"default": "BentoPopoverPositions.BOTTOM_START"
|
|
9879
|
+
},
|
|
9880
|
+
{
|
|
9881
|
+
"name": "menuFixedPositioning",
|
|
9882
|
+
"required": false,
|
|
9883
|
+
"description": "Instructs the menu popover to be visible outside of the containing container.",
|
|
9884
|
+
"value": {
|
|
9885
|
+
"kind": "expression",
|
|
9886
|
+
"type": "boolean"
|
|
9887
|
+
},
|
|
9888
|
+
"default": "false"
|
|
9889
|
+
},
|
|
9890
|
+
{
|
|
9891
|
+
"name": "menuWidth",
|
|
9892
|
+
"required": false,
|
|
9893
|
+
"description": "Sets a custom width for the menu popover.",
|
|
9894
|
+
"value": {
|
|
9895
|
+
"kind": "expression",
|
|
9896
|
+
"type": "number"
|
|
9897
|
+
},
|
|
9898
|
+
"default": "null"
|
|
9899
|
+
},
|
|
9900
|
+
{
|
|
9901
|
+
"name": "revertFocusToButton",
|
|
9902
|
+
"required": false,
|
|
9903
|
+
"description": "Returns focus to the menu button after popover is closed.\nDisable if focus management is delegated to the parent component.\nDefaults to `true`.",
|
|
9904
|
+
"value": {
|
|
9905
|
+
"kind": "expression",
|
|
9906
|
+
"type": "boolean"
|
|
9907
|
+
},
|
|
9908
|
+
"default": "true"
|
|
9909
|
+
},
|
|
9910
|
+
{
|
|
9911
|
+
"name": "teleport",
|
|
9912
|
+
"required": false,
|
|
9913
|
+
"description": "Can be used to set the inner teleport component to render the menu's popover in the root `body` DOM node\n(or `dialog` if popover is inside a dialog).",
|
|
9914
|
+
"value": {
|
|
9915
|
+
"kind": "expression",
|
|
9916
|
+
"type": "boolean"
|
|
9917
|
+
},
|
|
9918
|
+
"default": "false"
|
|
9919
|
+
},
|
|
9920
|
+
{
|
|
9921
|
+
"name": "closeOnClickOutsideOptions",
|
|
9922
|
+
"required": false,
|
|
9923
|
+
"description": "Can be used to set the inner teleport component to render the menu's popover in the root `body` DOM node\n(or `dialog` if popover is inside a dialog).",
|
|
9924
|
+
"value": {
|
|
9925
|
+
"kind": "expression",
|
|
9926
|
+
"type": "OnClickOutsideOptions"
|
|
9927
|
+
},
|
|
9928
|
+
"default": "undefined"
|
|
9929
|
+
}
|
|
9930
|
+
],
|
|
9931
|
+
"events": [
|
|
9932
|
+
{
|
|
9933
|
+
"name": "menu-item-click"
|
|
9934
|
+
},
|
|
9935
|
+
{
|
|
9936
|
+
"name": "click-outside"
|
|
9937
|
+
}
|
|
9938
|
+
],
|
|
9939
|
+
"slots": [
|
|
9940
|
+
{
|
|
9941
|
+
"name": "iconLeft"
|
|
9942
|
+
},
|
|
9943
|
+
{
|
|
9944
|
+
"name": "default"
|
|
9945
|
+
}
|
|
9946
|
+
],
|
|
9947
|
+
"source": {
|
|
9948
|
+
"module": "./src/components/menu/menu.vue",
|
|
9949
|
+
"symbol": "default"
|
|
9950
|
+
}
|
|
9951
|
+
},
|
|
9896
9952
|
{
|
|
9897
9953
|
"name": "menu-item",
|
|
9898
9954
|
"description": "Menu item component to render items in a menu. For internal use only.",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adyen/bento-vue2",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.63.0",
|
|
4
4
|
"description": "Adyen Bento Vue2 components",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"unified": "11.0.5",
|
|
47
47
|
"uuid": "11.0.5",
|
|
48
48
|
"vue-demi": "0.14.10",
|
|
49
|
-
"@adyen/bento-design-tokens": "1.
|
|
49
|
+
"@adyen/bento-design-tokens": "1.63.0"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"vue": "~2.7",
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
"tsc-alias": "1.8.11",
|
|
124
124
|
"typescript": "5.6.3",
|
|
125
125
|
"typescript-eslint": "8.16.0",
|
|
126
|
-
"vite": "5.4.
|
|
126
|
+
"vite": "5.4.20",
|
|
127
127
|
"vite-plugin-dynamic-import": "1.5.0",
|
|
128
128
|
"vite-plugin-static-copy": "0.15.0",
|
|
129
129
|
"vitest": "2.1.9",
|
|
@@ -136,11 +136,11 @@
|
|
|
136
136
|
"vue-style-loader": "4.1.3",
|
|
137
137
|
"vue-template-compiler": "2.7.16",
|
|
138
138
|
"vue-tsc": "1.0.24",
|
|
139
|
-
"@adyen/bento-cli": "0.4.
|
|
139
|
+
"@adyen/bento-cli": "0.4.1",
|
|
140
140
|
"@adyen/bento-core": "0.0.1",
|
|
141
|
-
"@adyen/
|
|
142
|
-
"@adyen/ui-assets-icons
|
|
143
|
-
"@adyen/
|
|
141
|
+
"@adyen/ui-assets-icons-16": "6.4.1",
|
|
142
|
+
"@adyen/ui-assets-payment-method-icons": "9.3.1",
|
|
143
|
+
"@adyen/bento-tailwind": "0.4.1"
|
|
144
144
|
},
|
|
145
145
|
"optionalDependencies": {
|
|
146
146
|
"vue-router": "~3.6"
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import { defineComponent as T, useSlots as I, ref as C, watch as h, computed as n } from "vue";
|
|
2
|
-
import { B as H } from "./typography.J1v_SPG3.js";
|
|
3
|
-
import { C as D, a as M } from "./chevron-up.CHK1E4p9.js";
|
|
4
|
-
import { u as U } from "./use-expandable-content-height.GkjjbmPy.js";
|
|
5
|
-
import { u as R } from "./use-has-slot.C9lQZ6nz.js";
|
|
6
|
-
import { g as z } from "./generate-uid.NJ8tVoha.js";
|
|
7
|
-
import { u as O } from "./i18n.BQkEbtPM.js";
|
|
8
|
-
import { o as W } from "./resize.Bqks3WUm.js";
|
|
9
|
-
import { c as F, B as N } from "./button-actions._OIvTdKt.js";
|
|
10
|
-
import { n as P } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
11
|
-
import "../assets/card.css";
|
|
12
|
-
var f = /* @__PURE__ */ ((o) => (o.PRIMARY = "primary", o.SECONDARY = "secondary", o))(f || {}), c = /* @__PURE__ */ ((o) => (o.DEFAULT = "default", o.SMALL = "small", o))(c || {});
|
|
13
|
-
const Y = {
|
|
14
|
-
"en-US": {
|
|
15
|
-
hideContent: "Hide content",
|
|
16
|
-
showContent: "Show content"
|
|
17
|
-
},
|
|
18
|
-
"ja-JP": {
|
|
19
|
-
hideContent: "コンテンツを非表示",
|
|
20
|
-
showContent: "コンテンツを表示"
|
|
21
|
-
},
|
|
22
|
-
"pt-BR": {
|
|
23
|
-
hideContent: "Ocultar conteúdo",
|
|
24
|
-
showContent: "Mostrar conteúdo"
|
|
25
|
-
}
|
|
26
|
-
}, j = {
|
|
27
|
-
i18n: { messages: Y },
|
|
28
|
-
name: "bento-card"
|
|
29
|
-
}, J = /* @__PURE__ */ T({
|
|
30
|
-
...j,
|
|
31
|
-
props: {
|
|
32
|
-
actions: { default: null },
|
|
33
|
-
actionsLayout: { default: F.BUTTONS_END },
|
|
34
|
-
background: { default: f.PRIMARY },
|
|
35
|
-
closed: { type: Boolean, default: !1 },
|
|
36
|
-
disabled: { type: Boolean, default: !1 },
|
|
37
|
-
expandable: { type: Boolean, default: !1 },
|
|
38
|
-
titleSize: { default: c.DEFAULT }
|
|
39
|
-
},
|
|
40
|
-
emits: ["click", "expanded"],
|
|
41
|
-
setup(o, { emit: e }) {
|
|
42
|
-
const a = o, { t } = O(), s = I(), d = R(s), i = C(null), x = z("card"), r = C(!a.closed);
|
|
43
|
-
h(
|
|
44
|
-
() => a.closed,
|
|
45
|
-
(l) => {
|
|
46
|
-
r.value = !l;
|
|
47
|
-
}
|
|
48
|
-
);
|
|
49
|
-
const p = n(() => d("default") || d("description") || d("header")), g = n(() => d("default") || d("header")), b = n(
|
|
50
|
-
() => {
|
|
51
|
-
var l;
|
|
52
|
-
return (d("content") || ((l = a.actions) == null ? void 0 : l.length)) && (!a.expandable || a.expandable && r.value);
|
|
53
|
-
}
|
|
54
|
-
), y = n(() => a.expandable && !a.disabled ? 0 : -1), v = n(() => ({
|
|
55
|
-
[`b-card--${a.background}`]: a.background,
|
|
56
|
-
"b-card--expandable": a.expandable,
|
|
57
|
-
"b-card--disabled": a.expandable && a.disabled
|
|
58
|
-
})), m = n(() => ({
|
|
59
|
-
"b-card__header--expandable": a.expandable,
|
|
60
|
-
"b-card__header--without-body": !a.expandable && !b.value
|
|
61
|
-
})), w = n(() => ({
|
|
62
|
-
"b-card__toggle--small-text": a.titleSize === c.SMALL
|
|
63
|
-
})), S = n(() => ({
|
|
64
|
-
"b-card__body--expandable": a.expandable && d("content"),
|
|
65
|
-
"b-card__body--without-header": !a.expandable && !p.value
|
|
66
|
-
})), k = n(() => ({
|
|
67
|
-
"b-card__content--without-header": !a.expandable && !p.value,
|
|
68
|
-
"b-card__content--expandable": a.expandable
|
|
69
|
-
})), B = n(() => {
|
|
70
|
-
const l = !a.expandable && a.actions && !d("content");
|
|
71
|
-
return {
|
|
72
|
-
"b-card__actions--without-content": l,
|
|
73
|
-
"b-card__actions--without-content-and-with-header": l && p.value
|
|
74
|
-
};
|
|
75
|
-
}), A = n(() => ({
|
|
76
|
-
"b-card__title-wrapper--truncated": d("header")
|
|
77
|
-
})), E = n(
|
|
78
|
-
() => ({
|
|
79
|
-
el: "div",
|
|
80
|
-
variant: a.titleSize === c.DEFAULT ? "title" : "body",
|
|
81
|
-
strongest: a.titleSize === c.SMALL,
|
|
82
|
-
wide: a.titleSize === c.SMALL
|
|
83
|
-
})
|
|
84
|
-
), { updateContentHeight: _, contentHeight: u } = U(i, r), L = n(
|
|
85
|
-
() => a.expandable && u.value ? { "max-height": u.value } : {}
|
|
86
|
-
);
|
|
87
|
-
return h(
|
|
88
|
-
() => i.value,
|
|
89
|
-
() => {
|
|
90
|
-
let l = null;
|
|
91
|
-
!l && i.value && (l = W(i.value, () => {
|
|
92
|
-
i.value && _();
|
|
93
|
-
}));
|
|
94
|
-
}
|
|
95
|
-
), { __sfc: !0, t, slots: s, hasSlot: d, props: a, emit: e, contentDiv: i, cardId: x, showContent: r, showHeader: p, showTitleWrapper: g, showCardBody: b, tabIndex: y, cardConditionalClasses: v, cardHeaderConditionalClasses: m, cardToggleConditionalClasses: w, cardBodyConditionalClasses: S, cardContentConditionalClasses: k, cardActionsConditionalClasses: B, cardTitleWrapperConditionalClasses: A, typography: E, updateContentHeight: _, contentHeight: u, contentMaxHeight: L, toggleExpansion: () => {
|
|
96
|
-
!a.disabled && a.expandable && (r.value = !r.value, e("expanded", r.value), _());
|
|
97
|
-
}, onClick: () => {
|
|
98
|
-
a.disabled || e("click");
|
|
99
|
-
}, BentoTypography: H, BentoButtonActions: N, ChevronDownIcon: M, ChevronUpIcon: D };
|
|
100
|
-
}
|
|
101
|
-
});
|
|
102
|
-
var q = function() {
|
|
103
|
-
var e = this, a = e._self._c, t = e._self._setupProxy;
|
|
104
|
-
return a("div", { staticClass: "b-card", class: t.cardConditionalClasses, attrs: { "data-testid": "card" }, on: { click: t.onClick } }, [t.hasSlot("image") ? a("div", { staticClass: "b-card__image" }, [e._t("image")], 2) : e._e(), t.showHeader ? a("div", { staticClass: "b-card__header", class: t.cardHeaderConditionalClasses, attrs: { tabindex: t.tabIndex, "aria-controls": e.expandable ? t.cardId : null, "aria-expanded": e.expandable ? `${t.showContent}` : null, role: e.expandable ? "button" : null }, on: { click: t.toggleExpansion, keypress: [function(s) {
|
|
105
|
-
return !s.type.indexOf("key") && e._k(s.keyCode, "enter", 13, s.key, "Enter") ? null : t.toggleExpansion.apply(null, arguments);
|
|
106
|
-
}, function(s) {
|
|
107
|
-
return !s.type.indexOf("key") && e._k(s.keyCode, "space", 32, s.key, [" ", "Spacebar"]) ? null : t.toggleExpansion.apply(null, arguments);
|
|
108
|
-
}] } }, [a("div", { staticClass: "b-card__header-wrapper" }, [t.showTitleWrapper ? a("div", { staticClass: "b-card__header-slot-wrapper" }, [a("div", { staticClass: "b-card__title-wrapper", class: t.cardTitleWrapperConditionalClasses }, [e.expandable ? a("div", { staticClass: "b-card__toggle", class: t.cardToggleConditionalClasses }, [t.showContent ? a(t.ChevronUpIcon, { attrs: { "svg-title": t.t("hideContent"), "aria-hidden": "true" } }) : a(t.ChevronDownIcon, { attrs: { "svg-title": t.t("showContent"), "aria-hidden": "true" } })], 1) : e._e(), t.hasSlot("default") ? a(t.BentoTypography, e._b({ staticClass: "b-card__title" }, "bento-typography", t.typography, !1), [e._t("default")], 2) : e._e()], 1), t.hasSlot("header") ? [e._t("header")] : e._e()], 2) : e._e(), t.hasSlot("description") ? a(t.BentoTypography, { staticClass: "b-card__description", attrs: { el: "div", variant: "body" } }, [e._t("description")], 2) : e._e()], 1)]) : e._e(), a("Transition", { attrs: { name: "b-card__animation" } }, [t.showCardBody ? a("div", { staticClass: "b-card__wrapper", style: t.contentMaxHeight }, [a("div", { ref: "contentDiv", staticClass: "b-card__body", class: t.cardBodyConditionalClasses, attrs: { id: e.expandable ? t.cardId : null } }, [t.hasSlot("content") ? a("div", { staticClass: "b-card__content", class: t.cardContentConditionalClasses }, [e._t("content")], 2) : e._e(), e.actions ? a("div", { staticClass: "b-card__actions", class: t.cardActionsConditionalClasses }, [a(t.BentoButtonActions, { attrs: { actions: e.actions, layout: e.actionsLayout } })], 1) : e._e()])]) : e._e()])], 1);
|
|
109
|
-
}, G = [], K = /* @__PURE__ */ P(
|
|
110
|
-
J,
|
|
111
|
-
q,
|
|
112
|
-
G,
|
|
113
|
-
!1,
|
|
114
|
-
null,
|
|
115
|
-
"5fb61a36"
|
|
116
|
-
);
|
|
117
|
-
const la = K.exports;
|
|
118
|
-
export {
|
|
119
|
-
f as B,
|
|
120
|
-
c as a,
|
|
121
|
-
la as c
|
|
122
|
-
};
|
|
123
|
-
//# sourceMappingURL=card.Cu6MicVI.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"card.Cu6MicVI.js","sources":["../../src/components/card/card.types.ts","../../src/components/card/card.vue"],"sourcesContent":["/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoCardBackground {\n PRIMARY = 'primary',\n SECONDARY = 'secondary',\n}\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoCardTitleSize {\n DEFAULT = 'default',\n SMALL = 'small',\n}\n","<template>\n <div class=\"b-card\" :class=\"cardConditionalClasses\" data-testid=\"card\" @click=\"onClick\">\n <div v-if=\"hasSlot('image')\" class=\"b-card__image\">\n <slot name=\"image\"></slot>\n </div>\n <div\n v-if=\"showHeader\"\n class=\"b-card__header\"\n :class=\"cardHeaderConditionalClasses\"\n :tabindex=\"tabIndex\"\n :aria-controls=\"expandable ? cardId : null\"\n :aria-expanded=\"expandable ? `${showContent}` : null\"\n :role=\"expandable ? 'button' : null\"\n @click=\"toggleExpansion\"\n @keypress.enter=\"toggleExpansion\"\n @keypress.space=\"toggleExpansion\"\n >\n <div class=\"b-card__header-wrapper\">\n <div v-if=\"showTitleWrapper\" class=\"b-card__header-slot-wrapper\">\n <div class=\"b-card__title-wrapper\" :class=\"cardTitleWrapperConditionalClasses\">\n <div v-if=\"expandable\" class=\"b-card__toggle\" :class=\"cardToggleConditionalClasses\">\n <chevron-up-icon v-if=\"showContent\" :svg-title=\"t('hideContent')\" aria-hidden=\"true\" />\n <chevron-down-icon v-else :svg-title=\"t('showContent')\" aria-hidden=\"true\" />\n </div>\n <bento-typography v-if=\"hasSlot('default')\" class=\"b-card__title\" v-bind=\"typography\">\n <slot />\n </bento-typography>\n </div>\n\n <template v-if=\"hasSlot('header')\">\n <slot name=\"header\"></slot>\n </template>\n </div>\n\n <bento-typography v-if=\"hasSlot('description')\" class=\"b-card__description\" el=\"div\" variant=\"body\">\n <slot name=\"description\" />\n </bento-typography>\n </div>\n </div>\n\n <Transition name=\"b-card__animation\">\n <div v-if=\"showCardBody\" class=\"b-card__wrapper\" :style=\"contentMaxHeight\">\n <div\n :id=\"expandable ? cardId : null\"\n ref=\"contentDiv\"\n class=\"b-card__body\"\n :class=\"cardBodyConditionalClasses\"\n >\n <div v-if=\"hasSlot('content')\" class=\"b-card__content\" :class=\"cardContentConditionalClasses\">\n <slot name=\"content\" />\n </div>\n\n <div v-if=\"actions\" class=\"b-card__actions\" :class=\"cardActionsConditionalClasses\">\n <bento-button-actions :actions=\"actions\" :layout=\"actionsLayout\"></bento-button-actions>\n </div>\n </div>\n </div>\n </Transition>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, ref, useSlots, watch } from 'vue';\n\n // Components\n import { BentoTypography } from '@/components/typography';\n import { BentoButtonActions, BentoButtonActionsLayout, BentoButtonActionsList } from '@/components/button';\n import { BentoCardBackground, BentoCardTitleSize } from '@/components/card/card.types';\n import ChevronDownIcon from '@adyen/ui-assets-icons-16/vue/chevron-down';\n import ChevronUpIcon from '@adyen/ui-assets-icons-16/vue/chevron-up';\n\n // Composables\n import { useExpandableContentHeight } from '@/composables/use-expandable-content-height/use-expandable-content-height';\n\n // Utils\n import { useHasSlot } from '@/composables';\n import { generateUid } from '@/core/utils/ts';\n import { useI18n } from '@/utils/ts/i18n';\n import { observeSizeOfElement } from '@/utils/ts/resize';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n const props = defineProps({\n actions: { default: null },\n actionsLayout: { default: BentoButtonActionsLayout.BUTTONS_END },\n background: { default: BentoCardBackground.PRIMARY },\n closed: { type: Boolean, default: false },\n disabled: { type: Boolean, default: false },\n expandable: { type: Boolean, default: false },\n titleSize: { default: BentoCardTitleSize.DEFAULT }\n});\n\n const emit = defineEmits([\"click\", \"expanded\"]);\n\n const contentDiv = ref<HTMLDivElement>(null);\n\n const cardId = generateUid('card');\n const showContent = ref(!props.closed);\n watch(\n () => props.closed,\n value => {\n showContent.value = !value;\n }\n );\n const showHeader = computed(() => hasSlot('default') || hasSlot('description') || hasSlot('header'));\n const showTitleWrapper = computed(() => hasSlot('default') || hasSlot('header'));\n const showCardBody = computed(\n () =>\n (hasSlot('content') || props.actions?.length) &&\n (!props.expandable || (props.expandable && showContent.value))\n );\n const tabIndex = computed(() => (props.expandable && !props.disabled ? 0 : -1));\n\n const cardConditionalClasses = computed(() => ({\n [`b-card--${props.background}`]: props.background,\n 'b-card--expandable': props.expandable,\n 'b-card--disabled': props.expandable && props.disabled,\n }));\n\n const cardHeaderConditionalClasses = computed(() => ({\n 'b-card__header--expandable': props.expandable,\n 'b-card__header--without-body': !props.expandable && !showCardBody.value,\n }));\n\n const cardToggleConditionalClasses = computed(() => ({\n 'b-card__toggle--small-text': props.titleSize === BentoCardTitleSize.SMALL,\n }));\n\n const cardBodyConditionalClasses = computed(() => ({\n 'b-card__body--expandable': props.expandable && hasSlot('content'),\n 'b-card__body--without-header': !props.expandable && !showHeader.value,\n }));\n\n const cardContentConditionalClasses = computed(() => ({\n 'b-card__content--without-header': !props.expandable && !showHeader.value,\n 'b-card__content--expandable': props.expandable,\n }));\n\n const cardActionsConditionalClasses = computed(() => {\n const isNotExpandableWithoutContent = !props.expandable && props.actions && !hasSlot('content');\n\n return {\n 'b-card__actions--without-content': isNotExpandableWithoutContent,\n 'b-card__actions--without-content-and-with-header': isNotExpandableWithoutContent && showHeader.value,\n };\n });\n\n const cardTitleWrapperConditionalClasses = computed(() => ({\n 'b-card__title-wrapper--truncated': hasSlot('header'),\n }));\n\n const typography = computed(\n () =>\n ({\n el: 'div',\n variant: props.titleSize === BentoCardTitleSize.DEFAULT ? 'title' : 'body',\n strongest: props.titleSize === BentoCardTitleSize.SMALL,\n wide: props.titleSize === BentoCardTitleSize.SMALL,\n } as InstanceType<typeof BentoTypography>['$props'])\n );\n\n // Toggle open and close logic and animation\n const { updateContentHeight, contentHeight } = useExpandableContentHeight(contentDiv, showContent);\n\n const contentMaxHeight = computed(() =>\n props.expandable && contentHeight.value ? { 'max-height': contentHeight.value } : {}\n );\n\n watch(\n () => contentDiv.value,\n () => {\n let observer: ResizeObserver | null = null;\n if (!observer && contentDiv.value) {\n observer = observeSizeOfElement(contentDiv.value, () => {\n if (contentDiv.value) {\n updateContentHeight();\n }\n });\n }\n }\n );\n\n const toggleExpansion = () => {\n if (!props.disabled && props.expandable) {\n showContent.value = !showContent.value;\n emit('expanded', showContent.value);\n updateContentHeight();\n }\n };\n\n const onClick = () => {\n if (!props.disabled) {\n emit('click');\n }\n };\n</script>\n\n<script lang=\"ts\">\n /**\n * A card is a flexible and composable container.\n * Use cards to represent a single object or to visually group certain content, like legal information within company settings.\n *\n * @example\n * import { BentoCard } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoCard },\n * template: `\n * <bento-card>\n * Title of the Card\n * </bento-card>\n * `\n * };\n */\n export default {\n i18n: { messages },\n name: 'bento-card',\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"@/core/components/card/card.scss\" />\n"],"names":["BentoCardBackground","BentoCardBackground2","BentoCardTitleSize","BentoCardTitleSize2","__default__","messages","useI18n","slots","useSlots","hasSlot","useHasSlot","contentDiv","ref","cardId","generateUid","showContent","props","watch","value","showHeader","computed","showTitleWrapper","showCardBody","_a","tabIndex","cardConditionalClasses","cardHeaderConditionalClasses","cardToggleConditionalClasses","cardBodyConditionalClasses","cardContentConditionalClasses","cardActionsConditionalClasses","isNotExpandableWithoutContent","cardTitleWrapperConditionalClasses","typography","updateContentHeight","contentHeight","useExpandableContentHeight","contentMaxHeight","observer","observeSizeOfElement","emit"],"mappings":"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"}
|