@adyen/bento-vue3 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.QL3wdbhL.js → accordion-item.DOnW0OnU.js} +16 -15
- package/dist/chunks/{accordion-item.QL3wdbhL.js.map → accordion-item.DOnW0OnU.js.map} +1 -1
- package/dist/chunks/{action-bar.DZhxAMLL.js → action-bar.D8eibCuD.js} +2 -2
- package/dist/chunks/{action-bar.DZhxAMLL.js.map → action-bar.D8eibCuD.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.DhqEdBBQ.js → button-actions-with-menu.BS4gewjn.js} +2 -2
- package/dist/chunks/{button-actions-with-menu.DhqEdBBQ.js.map → button-actions-with-menu.BS4gewjn.js.map} +1 -1
- package/dist/chunks/{calendar.DW8Uy3b_.js → calendar.CLpwW_-k.js} +2 -2
- package/dist/chunks/{calendar.DW8Uy3b_.js.map → calendar.CLpwW_-k.js.map} +1 -1
- package/dist/chunks/card.DiBtLuRU.js +227 -0
- package/dist/chunks/card.DiBtLuRU.js.map +1 -0
- package/dist/chunks/{checkbox-group.Dsmy9OW5.js → checkbox-group.Aqtco8Q5.js} +2 -2
- package/dist/chunks/{checkbox-group.Dsmy9OW5.js.map → checkbox-group.Aqtco8Q5.js.map} +1 -1
- package/dist/chunks/checkbox-input.DFkwZ4GM.js +144 -0
- package/dist/chunks/checkbox-input.DFkwZ4GM.js.map +1 -0
- package/dist/chunks/{checkbox.C4dJVYbB.js → checkbox.Hl6-8Sai.js} +22 -21
- package/dist/chunks/{checkbox.C4dJVYbB.js.map → checkbox.Hl6-8Sai.js.map} +1 -1
- package/dist/chunks/chevron-down.DCQ6ZLaq.js +29 -0
- package/dist/chunks/chevron-down.DCQ6ZLaq.js.map +1 -0
- package/dist/chunks/{chevron-left.Cfn1uGLH.js → chevron-right.Brdj0WlO.js} +5 -5
- package/dist/chunks/chevron-right.Brdj0WlO.js.map +1 -0
- package/dist/chunks/chevron-up.kfuLRpZb.js +29 -0
- package/dist/chunks/chevron-up.kfuLRpZb.js.map +1 -0
- package/dist/chunks/{code-snippet.Cn2Lcvup.js → code-snippet.DyAfzpUj.js} +2 -2
- package/dist/chunks/{code-snippet.Cn2Lcvup.js.map → code-snippet.DyAfzpUj.js.map} +1 -1
- package/dist/chunks/{dashboard-section.BEpgS9FV.js → dashboard-section.Bff7RNHI.js} +3 -3
- package/dist/chunks/{dashboard-section.BEpgS9FV.js.map → dashboard-section.Bff7RNHI.js.map} +1 -1
- package/dist/chunks/{data-grid-template.DCJc9gFg.js → data-grid-template.Dt-4ta3L.js} +3 -3
- package/dist/chunks/{data-grid-template.DCJc9gFg.js.map → data-grid-template.Dt-4ta3L.js.map} +1 -1
- package/dist/chunks/{data-grid.CMwzTU-b.js → data-grid.dnbCuBF7.js} +1266 -1278
- package/dist/chunks/data-grid.dnbCuBF7.js.map +1 -0
- package/dist/chunks/{date-picker.BcquOXbz.js → date-picker.Bfemi1um.js} +15 -15
- package/dist/chunks/{date-picker.BcquOXbz.js.map → date-picker.Bfemi1um.js.map} +1 -1
- package/dist/chunks/date-range-picker.BJm2xOoG.js +1209 -0
- package/dist/chunks/date-range-picker.BJm2xOoG.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.CtsO8vqZ.js → dropdown-default-textbox.B05elQig.js} +7 -6
- package/dist/chunks/{dropdown-default-textbox.CtsO8vqZ.js.map → dropdown-default-textbox.B05elQig.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.6DqQdI4d.js → dropdown-tag.CQMkfl3K.js} +3 -3
- package/dist/chunks/{dropdown-tag.6DqQdI4d.js.map → dropdown-tag.CQMkfl3K.js.map} +1 -1
- package/dist/chunks/{dropdown.OG72_pRK.js → dropdown.BPQS22Kl.js} +27 -27
- package/dist/chunks/{dropdown.OG72_pRK.js.map → dropdown.BPQS22Kl.js.map} +1 -1
- package/dist/chunks/es6.n1ewaW31.js.map +1 -1
- package/dist/chunks/{filter-bar.CV9gc16N.js → filter-bar.BNMR3HZ5.js} +15 -14
- package/dist/chunks/{filter-bar.CV9gc16N.js.map → filter-bar.BNMR3HZ5.js.map} +1 -1
- package/dist/chunks/{fixed-scroller.Cmi0TpjZ.js → fixed-scroller.D5nAPPbo.js} +31 -31
- package/dist/chunks/fixed-scroller.D5nAPPbo.js.map +1 -0
- package/dist/chunks/{header-with-views.B3WWqTtt.js → header-with-views.go02TaiU.js} +435 -435
- package/dist/chunks/header-with-views.go02TaiU.js.map +1 -0
- package/dist/chunks/{header.D94roWI-.js → header.CLg3TLJs.js} +2 -2
- package/dist/chunks/{header.D94roWI-.js.map → header.CLg3TLJs.js.map} +1 -1
- package/dist/chunks/{input-field-password.BsH_9lnw.js → input-field-password.B5zx9e4K.js} +3 -3
- package/dist/chunks/{input-field-password.BsH_9lnw.js.map → input-field-password.B5zx9e4K.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.CiicWtuZ.js → input-field-phone-number.DqfmWaJ2.js} +3 -3
- package/dist/chunks/{input-field-phone-number.CiicWtuZ.js.map → input-field-phone-number.DqfmWaJ2.js.map} +1 -1
- package/dist/chunks/{input-field.D3z0nJ43.js → input-field.CfsdWr4t.js} +2 -2
- package/dist/chunks/{input-field.D3z0nJ43.js.map → input-field.CfsdWr4t.js.map} +1 -1
- package/dist/chunks/listbox-option-tag.0fIXV0Bs.js +57 -0
- package/dist/chunks/listbox-option-tag.0fIXV0Bs.js.map +1 -0
- package/dist/chunks/menu.CCDxWQPw.js +679 -0
- package/dist/chunks/menu.CCDxWQPw.js.map +1 -0
- package/dist/chunks/minus-small.DYIyF5XW.js +32 -0
- package/dist/chunks/minus-small.DYIyF5XW.js.map +1 -0
- package/dist/chunks/{pagination.B_d4N-RQ.js → pagination.BKyr5hq_.js} +2 -2
- package/dist/chunks/{pagination.B_d4N-RQ.js.map → pagination.BKyr5hq_.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.CnoXCpHV.js → rich-text-editor.BK2zdyOm.js} +2 -2
- package/dist/chunks/{rich-text-editor.CnoXCpHV.js.map → rich-text-editor.BK2zdyOm.js.map} +1 -1
- package/dist/chunks/{search-bar.BeOwzjq4.js → search-bar.DgOHq0ns.js} +3 -3
- package/dist/chunks/{search-bar.BeOwzjq4.js.map → search-bar.DgOHq0ns.js.map} +1 -1
- package/dist/chunks/{secondary-nav.GRqyqoMi.js → secondary-nav.BHpoi5U4.js} +2 -2
- package/dist/chunks/{secondary-nav.GRqyqoMi.js.map → secondary-nav.BHpoi5U4.js.map} +1 -1
- package/dist/chunks/{selection-card-group.0tHKJZ1M.js → selection-card-group.-8bXRhOW.js} +2 -2
- package/dist/chunks/{selection-card-group.0tHKJZ1M.js.map → selection-card-group.-8bXRhOW.js.map} +1 -1
- package/dist/chunks/{tabs.CkDHEdGa.js → tabs.Cq1fdzVh.js} +2 -2
- package/dist/chunks/{tabs.CkDHEdGa.js.map → tabs.Cq1fdzVh.js.map} +1 -1
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.20XC06Eu.js → tutorial.vue_vue_type_script_setup_true_lang.BlSsK0Rr.js} +2 -2
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.20XC06Eu.js.map → tutorial.vue_vue_type_script_setup_true_lang.BlSsK0Rr.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.CUi4XfMa.js → use-cached-selected-values.swt0cdsA.js} +603 -571
- package/dist/chunks/use-cached-selected-values.swt0cdsA.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 +1 -1
- package/package.json +6 -6
- package/dist/chunks/card.CxeuIcpZ.js +0 -213
- package/dist/chunks/card.CxeuIcpZ.js.map +0 -1
- package/dist/chunks/checkbox-input.BhAIj6Cq.js +0 -168
- package/dist/chunks/checkbox-input.BhAIj6Cq.js.map +0 -1
- package/dist/chunks/chevron-left.Cfn1uGLH.js.map +0 -1
- package/dist/chunks/chevron-up.MAa3Ksgd.js +0 -52
- package/dist/chunks/chevron-up.MAa3Ksgd.js.map +0 -1
- package/dist/chunks/data-grid.CMwzTU-b.js.map +0 -1
- package/dist/chunks/date-range-picker.DSgv57wo.js +0 -1181
- package/dist/chunks/date-range-picker.DSgv57wo.js.map +0 -1
- package/dist/chunks/fixed-scroller.Cmi0TpjZ.js.map +0 -1
- package/dist/chunks/header-with-views.B3WWqTtt.js.map +0 -1
- package/dist/chunks/listbox-option-tag.WzftYVP_.js +0 -55
- package/dist/chunks/listbox-option-tag.WzftYVP_.js.map +0 -1
- package/dist/chunks/menu.DOKYXlFy.js +0 -768
- package/dist/chunks/menu.DOKYXlFy.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.CUi4XfMa.js.map +0 -1
package/dist/internal.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { a as e, b as r, C as t, c as s, d as p } from "./chunks/calendar.
|
|
1
|
+
import { a as e, b as r, C as t, c as s, d as p } from "./chunks/calendar.CLpwW_-k.js";
|
|
2
2
|
import { C as n, a as l } from "./chunks/copy.BFMgEWBq.js";
|
|
3
3
|
import { C as f } from "./chunks/controls-group.D32ggMrj.js";
|
|
4
4
|
import { B as I, b as m, a as E, D as T } from "./chunks/dialog-page.C80HOigq.js";
|
|
5
5
|
import { E as d, F as N } from "./chunks/error-message.C9YtK-P0.js";
|
|
6
|
-
import { F as O } from "./chunks/fixed-scroller.
|
|
6
|
+
import { F as O } from "./chunks/fixed-scroller.D5nAPPbo.js";
|
|
7
7
|
import { G as A, a as L } from "./chunks/grid-layout.BTLE3rac.js";
|
|
8
8
|
import { I as c } from "./chunks/info-icon-with-popover.Duk1tj5G.js";
|
|
9
|
-
import { b, c as g, u as y } from "./chunks/use-cached-selected-values.
|
|
10
|
-
import { L as F } from "./chunks/listbox-option-tag.
|
|
9
|
+
import { b, c as g, u as y } from "./chunks/use-cached-selected-values.swt0cdsA.js";
|
|
10
|
+
import { L as F } from "./chunks/listbox-option-tag.0fIXV0Bs.js";
|
|
11
11
|
import { B as M } from "./chunks/teleport.CfGWjxe2.js";
|
|
12
12
|
import { T as h } from "./chunks/tooltip.D2o0d8Xf.js";
|
|
13
|
-
import { B as J } from "./chunks/button-actions-with-menu.
|
|
13
|
+
import { B as J } from "./chunks/button-actions-with-menu.BS4gewjn.js";
|
|
14
14
|
import { f as R } from "./chunks/button-actions.D1pXI1AJ.js";
|
|
15
15
|
export {
|
|
16
16
|
R as BUTTON_ACTIONS_WITH_MENU_CONTAINER_INJECTION_KEY,
|
package/dist/menu.js
CHANGED
package/dist/pagination.js
CHANGED
package/dist/rich-text-editor.js
CHANGED
package/dist/search-bar.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as r, b as t, a as B } from "./chunks/search-bar.
|
|
2
|
-
import { u as o } from "./chunks/dropdown.
|
|
1
|
+
import { B as r, b as t, a as B } from "./chunks/search-bar.DgOHq0ns.js";
|
|
2
|
+
import { u as o } from "./chunks/dropdown.BPQS22Kl.js";
|
|
3
3
|
export {
|
|
4
4
|
r as BentoSearchBar,
|
|
5
5
|
t as BentoSearchBarEvent,
|
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adyen/bento-vue3",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.63.0",
|
|
4
4
|
"description": "Adyen Bento Vue 3 components",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"unified": "11.0.5",
|
|
46
46
|
"uuid": "11.0.5",
|
|
47
47
|
"vue-demi": "0.14.10",
|
|
48
|
-
"@adyen/bento-design-tokens": "1.
|
|
48
|
+
"@adyen/bento-design-tokens": "1.63.0"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"vue": "^3.2.47",
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
"storybook": "8.6.4",
|
|
110
110
|
"tsc-alias": "1.8.11",
|
|
111
111
|
"typescript": "5.6.3",
|
|
112
|
-
"vite": "5.4.
|
|
112
|
+
"vite": "5.4.20",
|
|
113
113
|
"vite-plugin-css-injected-by-js": "2.4.0",
|
|
114
114
|
"vite-plugin-dynamic-import": "1.5.0",
|
|
115
115
|
"vite-plugin-static-copy": "0.15.0",
|
|
@@ -122,9 +122,9 @@
|
|
|
122
122
|
"vue-style-loader": "4.1.3",
|
|
123
123
|
"vue-tsc": "1.0.24",
|
|
124
124
|
"@adyen/bento-core": "0.0.1",
|
|
125
|
-
"@adyen/bento-tailwind": "0.4.
|
|
126
|
-
"@adyen/ui-assets-icons-16": "6.4.
|
|
127
|
-
"@adyen/ui-assets-payment-method-icons": "9.3.
|
|
125
|
+
"@adyen/bento-tailwind": "0.4.1",
|
|
126
|
+
"@adyen/ui-assets-icons-16": "6.4.1",
|
|
127
|
+
"@adyen/ui-assets-payment-method-icons": "9.3.1"
|
|
128
128
|
},
|
|
129
129
|
"scripts": {
|
|
130
130
|
"build": "pnpm run build:prod",
|
|
@@ -1,213 +0,0 @@
|
|
|
1
|
-
import { defineComponent as K, useSlots as j, ref as S, watch as B, computed as n, createElementBlock as i, openBlock as d, normalizeClass as c, createCommentVNode as s, createVNode as L, unref as o, renderSlot as b, withKeys as A, createElementVNode as m, createBlock as _, mergeProps as J, withCtx as f, Transition as q, normalizeStyle as G } from "vue";
|
|
2
|
-
import { B as E } from "./typography.DN5eC5ch.js";
|
|
3
|
-
import { C as Q, a as X } from "./chevron-up.MAa3Ksgd.js";
|
|
4
|
-
import { u as Z } from "./use-expandable-content-height.GkjjbmPy.js";
|
|
5
|
-
import { u as ee } from "./use-has-slot.B7eQSabc.js";
|
|
6
|
-
import { g as ae } from "./generate-uid.NJ8tVoha.js";
|
|
7
|
-
import { u as te } from "./i18n.B6g5VX0q.js";
|
|
8
|
-
import { o as oe } from "./resize.Bqks3WUm.js";
|
|
9
|
-
import { c as ne, B as de } from "./button-actions.D1pXI1AJ.js";
|
|
10
|
-
import { _ as se } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
11
|
-
import "../assets/card.css";
|
|
12
|
-
var T = /* @__PURE__ */ ((l) => (l.PRIMARY = "primary", l.SECONDARY = "secondary", l))(T || {}), p = /* @__PURE__ */ ((l) => (l.DEFAULT = "default", l.SMALL = "small", l))(p || {});
|
|
13
|
-
const D = {
|
|
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
|
-
}, le = {
|
|
27
|
-
key: 0,
|
|
28
|
-
class: "b-card__image"
|
|
29
|
-
}, re = ["tabindex", "aria-controls", "aria-expanded", "role"], ie = { class: "b-card__header-wrapper" }, ce = {
|
|
30
|
-
key: 0,
|
|
31
|
-
class: "b-card__header-slot-wrapper"
|
|
32
|
-
}, ue = ["id"], pe = {
|
|
33
|
-
i18n: { messages: D },
|
|
34
|
-
name: "bento-card"
|
|
35
|
-
}, be = /* @__PURE__ */ K({
|
|
36
|
-
...pe,
|
|
37
|
-
props: {
|
|
38
|
-
actions: { default: null },
|
|
39
|
-
actionsLayout: { default: ne.BUTTONS_END },
|
|
40
|
-
background: { default: T.PRIMARY },
|
|
41
|
-
closed: { type: Boolean, default: !1 },
|
|
42
|
-
disabled: { type: Boolean, default: !1 },
|
|
43
|
-
expandable: { type: Boolean, default: !1 },
|
|
44
|
-
titleSize: { default: p.DEFAULT }
|
|
45
|
-
},
|
|
46
|
-
emits: ["click", "expanded"],
|
|
47
|
-
setup(l, { emit: H }) {
|
|
48
|
-
const { t: y } = te({ messages: D }), I = j(), t = ee(I), e = l, C = H, u = S(null), g = ae("card"), r = S(!e.closed);
|
|
49
|
-
B(
|
|
50
|
-
() => e.closed,
|
|
51
|
-
(a) => {
|
|
52
|
-
r.value = !a;
|
|
53
|
-
}
|
|
54
|
-
);
|
|
55
|
-
const v = n(() => t("default") || t("description") || t("header")), M = n(() => t("default") || t("header")), x = n(
|
|
56
|
-
() => {
|
|
57
|
-
var a;
|
|
58
|
-
return (t("content") || ((a = e.actions) == null ? void 0 : a.length)) && (!e.expandable || e.expandable && r.value);
|
|
59
|
-
}
|
|
60
|
-
), z = n(() => e.expandable && !e.disabled ? 0 : -1), N = n(() => ({
|
|
61
|
-
[`b-card--${e.background}`]: e.background,
|
|
62
|
-
"b-card--expandable": e.expandable,
|
|
63
|
-
"b-card--disabled": e.expandable && e.disabled
|
|
64
|
-
})), U = n(() => ({
|
|
65
|
-
"b-card__header--expandable": e.expandable,
|
|
66
|
-
"b-card__header--without-body": !e.expandable && !x.value
|
|
67
|
-
})), $ = n(() => ({
|
|
68
|
-
"b-card__toggle--small-text": e.titleSize === p.SMALL
|
|
69
|
-
})), R = n(() => ({
|
|
70
|
-
"b-card__body--expandable": e.expandable && t("content"),
|
|
71
|
-
"b-card__body--without-header": !e.expandable && !v.value
|
|
72
|
-
})), O = n(() => ({
|
|
73
|
-
"b-card__content--without-header": !e.expandable && !v.value,
|
|
74
|
-
"b-card__content--expandable": e.expandable
|
|
75
|
-
})), P = n(() => {
|
|
76
|
-
const a = !e.expandable && e.actions && !t("content");
|
|
77
|
-
return {
|
|
78
|
-
"b-card__actions--without-content": a,
|
|
79
|
-
"b-card__actions--without-content-and-with-header": a && v.value
|
|
80
|
-
};
|
|
81
|
-
}), F = n(() => ({
|
|
82
|
-
"b-card__title-wrapper--truncated": t("header")
|
|
83
|
-
})), V = n(
|
|
84
|
-
() => ({
|
|
85
|
-
el: "div",
|
|
86
|
-
variant: e.titleSize === p.DEFAULT ? "title" : "body",
|
|
87
|
-
strongest: e.titleSize === p.SMALL,
|
|
88
|
-
wide: e.titleSize === p.SMALL
|
|
89
|
-
})
|
|
90
|
-
), { updateContentHeight: w, contentHeight: k } = Z(u, r), W = n(
|
|
91
|
-
() => e.expandable && k.value ? { "max-height": k.value } : {}
|
|
92
|
-
);
|
|
93
|
-
B(
|
|
94
|
-
() => u.value,
|
|
95
|
-
() => {
|
|
96
|
-
let a = null;
|
|
97
|
-
!a && u.value && (a = oe(u.value, () => {
|
|
98
|
-
u.value && w();
|
|
99
|
-
}));
|
|
100
|
-
}
|
|
101
|
-
);
|
|
102
|
-
const h = () => {
|
|
103
|
-
!e.disabled && e.expandable && (r.value = !r.value, C("expanded", r.value), w());
|
|
104
|
-
}, Y = () => {
|
|
105
|
-
e.disabled || C("click");
|
|
106
|
-
};
|
|
107
|
-
return (a, ve) => (d(), i("div", {
|
|
108
|
-
class: c(["b-card", N.value]),
|
|
109
|
-
"data-testid": "card",
|
|
110
|
-
onClick: Y
|
|
111
|
-
}, [
|
|
112
|
-
o(t)("image") ? (d(), i("div", le, [
|
|
113
|
-
b(a.$slots, "image", {}, void 0, !0)
|
|
114
|
-
])) : s("", !0),
|
|
115
|
-
v.value ? (d(), i("div", {
|
|
116
|
-
key: 1,
|
|
117
|
-
class: c(["b-card__header", U.value]),
|
|
118
|
-
tabindex: z.value,
|
|
119
|
-
"aria-controls": a.expandable ? o(g) : null,
|
|
120
|
-
"aria-expanded": a.expandable ? `${r.value}` : null,
|
|
121
|
-
role: a.expandable ? "button" : null,
|
|
122
|
-
onClick: h,
|
|
123
|
-
onKeypress: [
|
|
124
|
-
A(h, ["enter"]),
|
|
125
|
-
A(h, ["space"])
|
|
126
|
-
]
|
|
127
|
-
}, [
|
|
128
|
-
m("div", ie, [
|
|
129
|
-
M.value ? (d(), i("div", ce, [
|
|
130
|
-
m("div", {
|
|
131
|
-
class: c(["b-card__title-wrapper", F.value])
|
|
132
|
-
}, [
|
|
133
|
-
a.expandable ? (d(), i("div", {
|
|
134
|
-
key: 0,
|
|
135
|
-
class: c(["b-card__toggle", $.value])
|
|
136
|
-
}, [
|
|
137
|
-
r.value ? (d(), _(o(Q), {
|
|
138
|
-
key: 0,
|
|
139
|
-
"svg-title": o(y)("hideContent"),
|
|
140
|
-
"aria-hidden": "true"
|
|
141
|
-
}, null, 8, ["svg-title"])) : (d(), _(o(X), {
|
|
142
|
-
key: 1,
|
|
143
|
-
"svg-title": o(y)("showContent"),
|
|
144
|
-
"aria-hidden": "true"
|
|
145
|
-
}, null, 8, ["svg-title"]))
|
|
146
|
-
], 2)) : s("", !0),
|
|
147
|
-
o(t)("default") ? (d(), _(o(E), J({
|
|
148
|
-
key: 1,
|
|
149
|
-
class: "b-card__title"
|
|
150
|
-
}, V.value), {
|
|
151
|
-
default: f(() => [
|
|
152
|
-
b(a.$slots, "default", {}, void 0, !0)
|
|
153
|
-
]),
|
|
154
|
-
_: 3
|
|
155
|
-
}, 16)) : s("", !0)
|
|
156
|
-
], 2),
|
|
157
|
-
o(t)("header") ? b(a.$slots, "header", { key: 0 }, void 0, !0) : s("", !0)
|
|
158
|
-
])) : s("", !0),
|
|
159
|
-
o(t)("description") ? (d(), _(o(E), {
|
|
160
|
-
key: 1,
|
|
161
|
-
class: "b-card__description",
|
|
162
|
-
el: "div",
|
|
163
|
-
variant: "body"
|
|
164
|
-
}, {
|
|
165
|
-
default: f(() => [
|
|
166
|
-
b(a.$slots, "description", {}, void 0, !0)
|
|
167
|
-
]),
|
|
168
|
-
_: 3
|
|
169
|
-
})) : s("", !0)
|
|
170
|
-
])
|
|
171
|
-
], 42, re)) : s("", !0),
|
|
172
|
-
L(q, { name: "b-card__animation" }, {
|
|
173
|
-
default: f(() => [
|
|
174
|
-
x.value ? (d(), i("div", {
|
|
175
|
-
key: 0,
|
|
176
|
-
class: "b-card__wrapper",
|
|
177
|
-
style: G(W.value)
|
|
178
|
-
}, [
|
|
179
|
-
m("div", {
|
|
180
|
-
id: a.expandable ? o(g) : null,
|
|
181
|
-
ref_key: "contentDiv",
|
|
182
|
-
ref: u,
|
|
183
|
-
class: c(["b-card__body", R.value])
|
|
184
|
-
}, [
|
|
185
|
-
o(t)("content") ? (d(), i("div", {
|
|
186
|
-
key: 0,
|
|
187
|
-
class: c(["b-card__content", O.value])
|
|
188
|
-
}, [
|
|
189
|
-
b(a.$slots, "content", {}, void 0, !0)
|
|
190
|
-
], 2)) : s("", !0),
|
|
191
|
-
a.actions ? (d(), i("div", {
|
|
192
|
-
key: 1,
|
|
193
|
-
class: c(["b-card__actions", P.value])
|
|
194
|
-
}, [
|
|
195
|
-
L(o(de), {
|
|
196
|
-
actions: a.actions,
|
|
197
|
-
layout: a.actionsLayout
|
|
198
|
-
}, null, 8, ["actions", "layout"])
|
|
199
|
-
], 2)) : s("", !0)
|
|
200
|
-
], 10, ue)
|
|
201
|
-
], 4)) : s("", !0)
|
|
202
|
-
]),
|
|
203
|
-
_: 3
|
|
204
|
-
})
|
|
205
|
-
], 2));
|
|
206
|
-
}
|
|
207
|
-
}), Se = /* @__PURE__ */ se(be, [["__scopeId", "data-v-518b98d9"]]);
|
|
208
|
-
export {
|
|
209
|
-
T as B,
|
|
210
|
-
p as a,
|
|
211
|
-
Se as c
|
|
212
|
-
};
|
|
213
|
-
//# sourceMappingURL=card.CxeuIcpZ.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"card.CxeuIcpZ.js","sources":["../../../vue2/src/components/card/card.types.ts","../../../vue2/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 = withDefaults(\n defineProps<{\n /**\n * List of actions that will be used to render the buttons.\n * First element in the list will be rendered as \"primary\".\n * All elements after the first will be rendered as \"secondary\".\n *\n * Each object in the list should have a `title`, an `event` and\n * (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.\n *\n * `title`: Button's text.\n *\n * `event`: Event triggered when clicking the Button.\n *\n * `icon`: Vue Icon from the library `@adyen/ui-assets-icons-16`.\n *\n * ```\n * [{\n * title: 'Primary',\n * event: () => { ... },\n * icon: FourPeopleIcon\n * }, {\n * title: 'Secondary',\n * event: () => { ... }\n * }]\n * ```\n */\n actions?: BentoButtonActionsList;\n\n /**\n * Defines the layout in which the button actions is presented.\n * It can be one of:\n *\n * @values BUTTONS_START\n * @values BUTTONS_END\n * @values FILL_CONTAINER\n * @values SPACE_BETWEEN\n * @values VERTICAL_STACK\n */\n actionsLayout?: BentoButtonActionsLayout | `${BentoButtonActionsLayout}`;\n\n /**\n * Defines the color of card background\n */\n background?: BentoCardBackground | `${BentoCardBackground}`;\n\n /**\n * Sets the expandable card in a closed state\n */\n closed?: boolean;\n\n /**\n * Disables the expandable card\n */\n disabled?: boolean;\n\n /**\n * The whole content of the card will be expandable in accordion manner\n */\n expandable?: boolean;\n\n /**\n * Defines the title size of the card header\n */\n titleSize?: BentoCardTitleSize | `${BentoCardTitleSize}`;\n }>(),\n {\n actions: null,\n actionsLayout: BentoButtonActionsLayout.BUTTONS_END,\n background: BentoCardBackground.PRIMARY,\n closed: false,\n disabled: false,\n expandable: false,\n titleSize: BentoCardTitleSize.DEFAULT,\n }\n );\n\n const emit = defineEmits<{\n (e: 'click');\n (e: 'expanded', isExpanded: boolean);\n }>();\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","t","useI18n","slots","useSlots","hasSlot","useHasSlot","props","__props","emit","__emit","contentDiv","ref","cardId","generateUid","showContent","watch","value","showHeader","computed","showTitleWrapper","showCardBody","_a","tabIndex","cardConditionalClasses","cardHeaderConditionalClasses","cardToggleConditionalClasses","cardBodyConditionalClasses","cardContentConditionalClasses","cardActionsConditionalClasses","isNotExpandableWithoutContent","cardTitleWrapperConditionalClasses","typography","updateContentHeight","contentHeight","useExpandableContentHeight","contentMaxHeight","observer","observeSizeOfElement","toggleExpansion","onClick"],"mappings":"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"}
|
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
import { createElementBlock as m, openBlock as u, mergeProps as A, createCommentVNode as R, createElementVNode as w, toDisplayString as H, defineComponent as I, ref as K, computed as r, useAttrs as P, toRefs as T, normalizeClass as Y, createBlock as C, unref as s, withKeys as $, withModifiers as D } from "vue";
|
|
2
|
-
import { C as M } from "./checkmark-small.x-gmK2Dt.js";
|
|
3
|
-
/* empty css */
|
|
4
|
-
import { _ as B } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
5
|
-
import "../assets/checkbox-input.css";
|
|
6
|
-
var o = /* @__PURE__ */ ((e) => (e.UNCHECKED = "unchecked", e.DISABLED = "disabled", e.ERROR = "error", e.READONLY = "readonly", e))(o || {}), h = /* @__PURE__ */ ((e) => (e.UPDATE = "update:model-value", e))(h || {});
|
|
7
|
-
let x = 0;
|
|
8
|
-
const z = {
|
|
9
|
-
beforeCreate() {
|
|
10
|
-
this.uuid = x.toString(), x += 1;
|
|
11
|
-
}
|
|
12
|
-
}, G = { key: 0 };
|
|
13
|
-
function Z(e, d, t, b, c, y) {
|
|
14
|
-
return u(), m("svg", A({ role: "img" }, e.$attrs, {
|
|
15
|
-
class: "ui-assets-icons-16",
|
|
16
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
17
|
-
width: "16",
|
|
18
|
-
height: "16",
|
|
19
|
-
fill: "none"
|
|
20
|
-
}), [
|
|
21
|
-
e.$attrs["svg-title"] ? (u(), m("title", G, H(e.$attrs["svg-title"]), 1)) : R("", !0),
|
|
22
|
-
d[0] || (d[0] = w("path", {
|
|
23
|
-
fill: "#001222",
|
|
24
|
-
d: "M4.25 7.25H11.75V8.75H4.25V7.25Z"
|
|
25
|
-
}, null, -1))
|
|
26
|
-
], 16);
|
|
27
|
-
}
|
|
28
|
-
const j = /* @__PURE__ */ B(z, [["render", Z]]), q = ["id", "aria-label", "aria-checked", "aria-describedby", "aria-invalid", "checked", "disabled", ".indeterminate", "value", "aria-readonly"], F = {
|
|
29
|
-
name: "checkbox-input",
|
|
30
|
-
inheritAttrs: !1
|
|
31
|
-
}, J = /* @__PURE__ */ I({
|
|
32
|
-
...F,
|
|
33
|
-
props: {
|
|
34
|
-
/**
|
|
35
|
-
* The aria label associated to the input checkbox.
|
|
36
|
-
*/
|
|
37
|
-
ariaLabel: { type: String, default: "" },
|
|
38
|
-
/**
|
|
39
|
-
* An additional string that serves as description for the input checkbox (useful if the component shows a description).
|
|
40
|
-
*/
|
|
41
|
-
ariaDescribedby: { type: String, default: "" },
|
|
42
|
-
/**
|
|
43
|
-
* Setting this property to true will disable the checkbox in your form.
|
|
44
|
-
*/
|
|
45
|
-
disabled: { type: Boolean, default: !1 },
|
|
46
|
-
/**
|
|
47
|
-
* Setting this property to true will show the checkbox in error state.
|
|
48
|
-
*/
|
|
49
|
-
hasError: { type: Boolean, default: !1 },
|
|
50
|
-
/**
|
|
51
|
-
* Sets the id of the checkbox. Required for accessibility purposes
|
|
52
|
-
*/
|
|
53
|
-
id: { type: String, default: null },
|
|
54
|
-
/**
|
|
55
|
-
* The :indeterminate CSS pseudo-class represents any form element
|
|
56
|
-
* whose state is indeterminate, such as checkboxes which have their HTML indeterminate attribute
|
|
57
|
-
* set to true, radio buttons which are members of a group in which all radio buttons are unchecked,
|
|
58
|
-
* and indeterminate <progress> elements. https://developer.mozilla.org/en-US/docs/Web/CSS/:indeterminate
|
|
59
|
-
* This property lets you control the input.indeterminate native property.
|
|
60
|
-
*/
|
|
61
|
-
indeterminate: { type: Boolean, default: !1 },
|
|
62
|
-
/**
|
|
63
|
-
* When handling a single checkbox with a singular state, use a boolean.
|
|
64
|
-
*
|
|
65
|
-
* When handling multiple checkboxes, use an array of keys.
|
|
66
|
-
* These keys exist as a set "value" prop for each checkbox.
|
|
67
|
-
*/
|
|
68
|
-
modelValue: {
|
|
69
|
-
type: [Boolean, Array],
|
|
70
|
-
default: !1
|
|
71
|
-
},
|
|
72
|
-
/**
|
|
73
|
-
* Setting this property to true will set the checkbox to read only state.
|
|
74
|
-
*/
|
|
75
|
-
readonly: { type: Boolean, default: !1 },
|
|
76
|
-
/**
|
|
77
|
-
* The value of the component. The DOM API casts this to a string.
|
|
78
|
-
* The browser uses "on" as the default value.
|
|
79
|
-
*
|
|
80
|
-
* In the case of multiple checkboxes this value is used as a unique key.
|
|
81
|
-
*/
|
|
82
|
-
value: { type: [String, Number], default: null }
|
|
83
|
-
},
|
|
84
|
-
emits: ["update:model-value"],
|
|
85
|
-
setup(e, { emit: d }) {
|
|
86
|
-
const t = e, b = d, c = K(null), y = r(() => {
|
|
87
|
-
{
|
|
88
|
-
const { class: i, style: n, ...a } = P();
|
|
89
|
-
return a;
|
|
90
|
-
}
|
|
91
|
-
}), { disabled: k, indeterminate: _, modelValue: p, readonly: E, value: v } = T(t), N = r(() => ({
|
|
92
|
-
[`b-checkbox-input--${o.DISABLED}`]: t.disabled,
|
|
93
|
-
[`b-checkbox-input--${o.READONLY}`]: t.readonly
|
|
94
|
-
})), L = r(() => ({
|
|
95
|
-
[`b-checkbox-input__outline--${o.UNCHECKED}`]: !f.value && !t.indeterminate,
|
|
96
|
-
[`b-checkbox-input__outline--${o.ERROR}`]: t.hasError,
|
|
97
|
-
[`b-checkbox-input__outline--${o.READONLY}`]: t.readonly
|
|
98
|
-
})), g = r(() => Array.isArray(p.value)), f = r(() => g.value ? p.value.some((i) => i === v.value) : p.value), V = r(
|
|
99
|
-
() => t.indeterminate ? "mixed" : `${!!f.value}`
|
|
100
|
-
), O = r(
|
|
101
|
-
() => t.hasError && !t.disabled && !t.readonly
|
|
102
|
-
), S = (i) => {
|
|
103
|
-
if (E.value) {
|
|
104
|
-
i.preventDefault();
|
|
105
|
-
return;
|
|
106
|
-
}
|
|
107
|
-
}, U = (i) => {
|
|
108
|
-
if (k.value)
|
|
109
|
-
return;
|
|
110
|
-
const n = i.target.checked;
|
|
111
|
-
if (g.value) {
|
|
112
|
-
const a = [...p.value], l = a.indexOf(v.value);
|
|
113
|
-
l === -1 ? a.push(v.value) : a.splice(l, 1), b(h.UPDATE, a);
|
|
114
|
-
} else
|
|
115
|
-
b(h.UPDATE, n);
|
|
116
|
-
};
|
|
117
|
-
return (i, n) => (u(), m("div", {
|
|
118
|
-
class: Y(["b-checkbox-input", N.value])
|
|
119
|
-
}, [
|
|
120
|
-
s(_) ? (u(), C(s(j), {
|
|
121
|
-
key: 0,
|
|
122
|
-
class: "b-checkbox-input__icon",
|
|
123
|
-
"svg-title": "",
|
|
124
|
-
"aria-hidden": "true"
|
|
125
|
-
})) : f.value ? (u(), C(s(M), {
|
|
126
|
-
key: 1,
|
|
127
|
-
class: "b-checkbox-input__icon",
|
|
128
|
-
"svg-title": "",
|
|
129
|
-
"aria-hidden": "true"
|
|
130
|
-
})) : R("", !0),
|
|
131
|
-
w("input", A({
|
|
132
|
-
id: e.id,
|
|
133
|
-
ref_key: "inputRef",
|
|
134
|
-
ref: c
|
|
135
|
-
}, y.value, {
|
|
136
|
-
type: "checkbox",
|
|
137
|
-
class: ["b-checkbox-input__outline", L.value],
|
|
138
|
-
"aria-label": e.ariaLabel,
|
|
139
|
-
"aria-checked": V.value,
|
|
140
|
-
"aria-describedby": e.ariaDescribedby,
|
|
141
|
-
"aria-invalid": O.value,
|
|
142
|
-
checked: f.value,
|
|
143
|
-
disabled: s(k),
|
|
144
|
-
".indeterminate": s(_),
|
|
145
|
-
value: s(v),
|
|
146
|
-
"aria-readonly": s(E),
|
|
147
|
-
onClick: S,
|
|
148
|
-
onChange: U,
|
|
149
|
-
onKeydown: [
|
|
150
|
-
n[0] || (n[0] = $(D((a) => {
|
|
151
|
-
var l;
|
|
152
|
-
return (l = c.value) == null ? void 0 : l.click();
|
|
153
|
-
}, ["prevent"]), ["space"])),
|
|
154
|
-
n[1] || (n[1] = $(D((a) => {
|
|
155
|
-
var l;
|
|
156
|
-
return (l = c.value) == null ? void 0 : l.click();
|
|
157
|
-
}, ["prevent"]), ["enter"]))
|
|
158
|
-
]
|
|
159
|
-
}), null, 48, q)
|
|
160
|
-
], 2));
|
|
161
|
-
}
|
|
162
|
-
}), te = /* @__PURE__ */ B(J, [["__scopeId", "data-v-7781bcee"]]);
|
|
163
|
-
export {
|
|
164
|
-
o as C,
|
|
165
|
-
j as N,
|
|
166
|
-
te as a
|
|
167
|
-
};
|
|
168
|
-
//# sourceMappingURL=checkbox-input.BhAIj6Cq.js.map
|