@adyen/bento-vue3 1.41.0 → 1.43.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (263) hide show
  1. package/dist/@types/components.d.ts +4 -0
  2. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell/data-grid-cell.vue.d.ts +15 -0
  3. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-row/data-grid-row.vue.d.ts +1 -350
  4. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-calculate-column-width/use-calculate-column-width.types.d.ts +1 -0
  5. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-scroller/use-scroller.d.ts +1 -0
  6. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-selector/use-selector.d.ts +3 -2
  7. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +3 -0
  8. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +33 -1
  9. package/dist/@types/packages/vue2/src/components/date-range-picker/components/date-range-picker-calendar/date-range-picker-calendar.vue.d.ts +7 -0
  10. package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.vue.d.ts +7 -0
  11. package/dist/@types/packages/vue2/src/components/file-uploader/components/file-uploader-file-card/components/file-uploader-file-card-animation/file-uploader-file-card-animation.vue.d.ts +24 -0
  12. package/dist/@types/packages/vue2/src/components/file-uploader/components/file-uploader-file-card/components/index.d.ts +1 -0
  13. package/dist/@types/packages/vue2/src/components/file-uploader/components/file-uploader-file-card/composables/use-truncated-file-name.d.ts +10 -0
  14. package/dist/@types/packages/vue2/src/components/file-uploader/components/file-uploader-file-card/file-uploader-file-card.types.d.ts +11 -0
  15. package/dist/@types/packages/vue2/src/components/file-uploader/components/file-uploader-file-card/file-uploader-file-card.vue.d.ts +63 -0
  16. package/dist/@types/packages/vue2/src/components/file-uploader/components/file-uploader-file-card/index.d.ts +1 -0
  17. package/dist/@types/packages/vue2/src/components/file-uploader/components/file-uploader-file-card/utils/get-file-icon/get-file-icon.d.ts +8 -0
  18. package/dist/@types/packages/vue2/src/components/file-uploader/components/file-uploader-file-card/utils/get-file-icon-color/get-file-icon-color.d.ts +8 -0
  19. package/dist/@types/packages/vue2/src/components/file-uploader/components/file-uploader-file-card/utils/index.d.ts +2 -0
  20. package/dist/@types/packages/vue2/src/components/file-uploader/components/file-uploader-restrictions/file-uploader-restrictions.types.d.ts +39 -0
  21. package/dist/@types/packages/vue2/src/components/file-uploader/components/file-uploader-restrictions/file-uploader-restrictions.vue.d.ts +68 -0
  22. package/dist/@types/packages/vue2/src/components/file-uploader/components/file-uploader-restrictions/index.d.ts +1 -0
  23. package/dist/@types/packages/vue2/src/components/file-uploader/composables/index.d.ts +1 -0
  24. package/dist/@types/packages/vue2/src/components/file-uploader/composables/use-file-type-list/use-file-type-list.d.ts +11 -0
  25. package/dist/@types/packages/vue2/src/components/file-uploader/file-uploader.types.d.ts +99 -0
  26. package/dist/@types/packages/vue2/src/components/file-uploader/file-uploader.vue.d.ts +85 -0
  27. package/dist/@types/packages/vue2/src/components/file-uploader/index.d.ts +2 -0
  28. package/dist/@types/packages/vue2/src/components/file-uploader/utils/format-file-size/format-file-size.d.ts +9 -0
  29. package/dist/@types/packages/vue2/src/components/file-uploader/utils/get-file-type/get-file-type.d.ts +8 -0
  30. package/dist/@types/packages/vue2/src/components/file-uploader/utils/index.d.ts +3 -0
  31. package/dist/@types/packages/vue2/src/components/file-uploader/utils/read-file/read-file.d.ts +14 -0
  32. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +277 -37
  33. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/components/all-filters-modal-button/all-filters-modal-button.vue.d.ts +1 -1
  34. package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/base-filter.vue.d.ts +21 -6
  35. package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter-button/base-filter-button.vue.d.ts +1 -1
  36. package/dist/@types/packages/vue2/src/components/filter-bar/components/boolean-filter/boolean-filter.vue.d.ts +30 -6
  37. package/dist/@types/packages/vue2/src/components/filter-bar/components/date-filter/date-filter.vue.d.ts +30 -6
  38. package/dist/@types/packages/vue2/src/components/filter-bar/components/date-range-filter/date-range-filter.vue.d.ts +44 -6
  39. package/dist/@types/packages/vue2/src/components/filter-bar/components/filter-bar-button/filter-bar-button.vue.d.ts +5 -7
  40. package/dist/@types/packages/vue2/src/components/filter-bar/components/input-filter/input-filter.vue.d.ts +37 -6
  41. package/dist/@types/packages/vue2/src/components/filter-bar/components/input-with-dropdown-filter/input-with-dropdown-filter.vue.d.ts +8 -0
  42. package/dist/@types/packages/vue2/src/components/filter-bar/components/range-filter/range-filter.vue.d.ts +37 -6
  43. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/components/select-filter-button/select-filter-button.vue.d.ts +15 -0
  44. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/components/select-filter-dropdown/select-filter-dropdown.vue.d.ts +15 -0
  45. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/select-filter.props.d.ts +7 -0
  46. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/select-filter.vue.d.ts +9 -0
  47. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-avatar-filter/select-avatar-filter.vue.d.ts +24 -0
  48. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-country-filter/select-country-filter.vue.d.ts +9 -0
  49. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-currency-filter/select-currency-filter.vue.d.ts +24 -0
  50. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-payment-method-filter/select-payment-method-filter.vue.d.ts +24 -0
  51. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue.d.ts +24 -0
  52. package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.types.d.ts +4 -0
  53. package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.vue.d.ts +274 -30
  54. package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +3 -0
  55. package/dist/@types/packages/vue2/src/components/input-field-password/index.d.ts +3 -0
  56. package/dist/@types/packages/vue2/src/components/input-field-password/input-field-password.types.d.ts +77 -0
  57. package/dist/@types/packages/vue2/src/components/input-field-password/input-field-password.vue.d.ts +90 -0
  58. package/dist/@types/packages/vue2/src/components/input-field-password/utilities/input-field-password.validation.d.ts +37 -0
  59. package/dist/@types/packages/vue2/src/components/internal/tooltip/tooltip.vue.d.ts +43 -8
  60. package/dist/@types/packages/vue2/src/index.d.ts +2 -0
  61. package/dist/action-bar.js +1 -1
  62. package/dist/alert.js +1 -1
  63. package/dist/assets/accordion-item.css +1 -1
  64. package/dist/assets/action-bar.css +1 -1
  65. package/dist/assets/base-modal.css +1 -1
  66. package/dist/assets/card.css +1 -1
  67. package/dist/assets/data-grid.css +1 -1
  68. package/dist/assets/date-range-picker.css +1 -1
  69. package/dist/assets/dialog-page.css +1 -1
  70. package/dist/assets/file-uploader.css +1 -0
  71. package/dist/assets/filter-bar.css +1 -1
  72. package/dist/assets/input-field-password.css +1 -0
  73. package/dist/assets/input-field.css +1 -1
  74. package/dist/assets/inspector.css +1 -1
  75. package/dist/assets/menu.css +1 -1
  76. package/dist/assets/modal-fullscreen.css +1 -1
  77. package/dist/assets/popover.css +1 -1
  78. package/dist/assets/sidepanel.css +1 -1
  79. package/dist/assets/step.css +1 -1
  80. package/dist/assets/tooltip.css +1 -1
  81. package/dist/assets/typography.css +1 -1
  82. package/dist/button.js +2 -2
  83. package/dist/card.js +1 -1
  84. package/dist/checkbox.js +2 -2
  85. package/dist/chunks/{action-bar.BZIBGja0.js → action-bar.COQrEUYU.js} +5 -5
  86. package/dist/chunks/{action-bar.BZIBGja0.js.map → action-bar.COQrEUYU.js.map} +1 -1
  87. package/dist/chunks/{alert.CHddA_lK.js → alert.B9V6kUmo.js} +9 -9
  88. package/dist/chunks/{alert.CHddA_lK.js.map → alert.B9V6kUmo.js.map} +1 -1
  89. package/dist/chunks/{base-modal.6IqnDuvf.js → base-modal.ku0lyHOs.js} +2 -2
  90. package/dist/chunks/{base-modal.6IqnDuvf.js.map → base-modal.ku0lyHOs.js.map} +1 -1
  91. package/dist/chunks/{button-actions-with-menu.ByYlrFqZ.js → button-actions-with-menu.Bn7Kdx4v.js} +4 -4
  92. package/dist/chunks/{button-actions-with-menu.ByYlrFqZ.js.map → button-actions-with-menu.Bn7Kdx4v.js.map} +1 -1
  93. package/dist/chunks/{button-actions.ndsyVgzV.js → button-actions.Bjfo46Q_.js} +2 -2
  94. package/dist/chunks/{button-actions.ndsyVgzV.js.map → button-actions.Bjfo46Q_.js.map} +1 -1
  95. package/dist/chunks/{card.B6tMI3KP.js → card.D_XL2TWr.js} +2 -2
  96. package/dist/chunks/{card.B6tMI3KP.js.map → card.D_XL2TWr.js.map} +1 -1
  97. package/dist/chunks/{checkbox-group.Zf-GivDW.js → checkbox-group.BUmkYc2R.js} +4 -4
  98. package/dist/chunks/{checkbox-group.Zf-GivDW.js.map → checkbox-group.BUmkYc2R.js.map} +1 -1
  99. package/dist/chunks/{checkbox.DdMkyTo5.js → checkbox.L94hTcPY.js} +16 -16
  100. package/dist/chunks/{checkbox.DdMkyTo5.js.map → checkbox.L94hTcPY.js.map} +1 -1
  101. package/dist/chunks/{checkmark-circle-fill.ChV7Jy6r.js → checkmark-circle-fill.ClIf1E3H.js} +7 -7
  102. package/dist/chunks/{checkmark-circle-fill.ChV7Jy6r.js.map → checkmark-circle-fill.ClIf1E3H.js.map} +1 -1
  103. package/dist/chunks/{code-snippet.Dp_tDJ-S.js → code-snippet.DbUGxmYi.js} +5 -5
  104. package/dist/chunks/{code-snippet.Dp_tDJ-S.js.map → code-snippet.DbUGxmYi.js.map} +1 -1
  105. package/dist/chunks/{controls-group.RL8WrYdy.js → controls-group.Dg_YRS1e.js} +2 -2
  106. package/dist/chunks/{controls-group.RL8WrYdy.js.map → controls-group.Dg_YRS1e.js.map} +1 -1
  107. package/dist/chunks/{copy.dbbJppdL.js → copy.CnzLQyvJ.js} +2 -2
  108. package/dist/chunks/{copy.dbbJppdL.js.map → copy.CnzLQyvJ.js.map} +1 -1
  109. package/dist/chunks/{dashboard-section.BdRXcY4u.js → dashboard-section.YU5gKDEJ.js} +3 -3
  110. package/dist/chunks/{dashboard-section.BdRXcY4u.js.map → dashboard-section.YU5gKDEJ.js.map} +1 -1
  111. package/dist/chunks/{dashed-underline.D6ke20Vd.js → dashed-underline.BKfUevuM.js} +3 -3
  112. package/dist/chunks/{dashed-underline.D6ke20Vd.js.map → dashed-underline.BKfUevuM.js.map} +1 -1
  113. package/dist/chunks/{data-grid-template.CRxJLJsn.js → data-grid-template.DI27ou71.js} +2 -2
  114. package/dist/chunks/{data-grid-template.CRxJLJsn.js.map → data-grid-template.DI27ou71.js.map} +1 -1
  115. package/dist/chunks/data-grid.DgPWs1hH.js +3374 -0
  116. package/dist/chunks/data-grid.DgPWs1hH.js.map +1 -0
  117. package/dist/chunks/{date-picker.B6HK0sb2.js → date-picker.DDsfecHp.js} +3 -3
  118. package/dist/chunks/{date-picker.B6HK0sb2.js.map → date-picker.DDsfecHp.js.map} +1 -1
  119. package/dist/chunks/{date-range-picker.3iWt1Cd6.js → date-range-picker.DjPmRy0E.js} +205 -202
  120. package/dist/chunks/date-range-picker.DjPmRy0E.js.map +1 -0
  121. package/dist/chunks/dot.pQfhaKda.js +29 -0
  122. package/dist/chunks/dot.pQfhaKda.js.map +1 -0
  123. package/dist/chunks/{dropdown-tag.ChFJ9l5g.js → dropdown-tag.BKDmDRSv.js} +3 -3
  124. package/dist/chunks/{dropdown-tag.ChFJ9l5g.js.map → dropdown-tag.BKDmDRSv.js.map} +1 -1
  125. package/dist/chunks/{dropdown.CMKdLPHi.js → dropdown.DpjMobyf.js} +4 -4
  126. package/dist/chunks/{dropdown.CMKdLPHi.js.map → dropdown.DpjMobyf.js.map} +1 -1
  127. package/dist/chunks/{error-message.CmMyB-k9.js → error-message.BYXS0kUN.js} +2 -2
  128. package/dist/chunks/{error-message.CmMyB-k9.js.map → error-message.BYXS0kUN.js.map} +1 -1
  129. package/dist/chunks/es6.b4enG1py.js.map +1 -1
  130. package/dist/chunks/file-uploader.cRbwpcAw.js +1074 -0
  131. package/dist/chunks/file-uploader.cRbwpcAw.js.map +1 -0
  132. package/dist/chunks/filter-bar.BwJTrH5U.js +2867 -0
  133. package/dist/chunks/filter-bar.BwJTrH5U.js.map +1 -0
  134. package/dist/chunks/{footer-actions.DAlN9pd3.js → footer-actions.DvIVWqWv.js} +2 -2
  135. package/dist/chunks/{footer-actions.DAlN9pd3.js.map → footer-actions.DvIVWqWv.js.map} +1 -1
  136. package/dist/chunks/{form-layout-title.w0J-ymMW.js → form-layout-title.BqNDCnLk.js} +2 -2
  137. package/dist/chunks/{form-layout-title.w0J-ymMW.js.map → form-layout-title.BqNDCnLk.js.map} +1 -1
  138. package/dist/chunks/{header.DQmnYarZ.js → header.C0NBlBJv.js} +4 -4
  139. package/dist/chunks/{header.DQmnYarZ.js.map → header.C0NBlBJv.js.map} +1 -1
  140. package/dist/chunks/index.CWuzEfiV.js +6 -0
  141. package/dist/chunks/index.CWuzEfiV.js.map +1 -0
  142. package/dist/chunks/index.lHdwuJAx.js +366 -0
  143. package/dist/chunks/index.lHdwuJAx.js.map +1 -0
  144. package/dist/chunks/{info-icon.CNPSAUM6.js → info-icon.CUC0fwLb.js} +2 -2
  145. package/dist/chunks/{info-icon.CNPSAUM6.js.map → info-icon.CUC0fwLb.js.map} +1 -1
  146. package/dist/chunks/input-field-password.DxNS4MmO.js +306 -0
  147. package/dist/chunks/input-field-password.DxNS4MmO.js.map +1 -0
  148. package/dist/chunks/{input-field.Bk2p3kIb.js → input-field.BQKEQIZd.js} +84 -83
  149. package/dist/chunks/input-field.BQKEQIZd.js.map +1 -0
  150. package/dist/chunks/{layout-row.rzhGrBQ3.js → layout-row.DcyZ3DP3.js} +2 -2
  151. package/dist/chunks/{layout-row.rzhGrBQ3.js.map → layout-row.DcyZ3DP3.js.map} +1 -1
  152. package/dist/chunks/{listbox-option-tag.58u_cWFs.js → listbox-option-tag.DU_NVK_z.js} +2 -2
  153. package/dist/chunks/{listbox-option-tag.58u_cWFs.js.map → listbox-option-tag.DU_NVK_z.js.map} +1 -1
  154. package/dist/chunks/{loading-button.CHujR70I.js → loading-button.CNWhVIPK.js} +10 -10
  155. package/dist/chunks/{loading-button.CHujR70I.js.map → loading-button.CNWhVIPK.js.map} +1 -1
  156. package/dist/chunks/{menu.DXVN_WLr.js → menu.BpqOdkxR.js} +3 -3
  157. package/dist/chunks/{menu.DXVN_WLr.js.map → menu.BpqOdkxR.js.map} +1 -1
  158. package/dist/chunks/{modal-fullscreen.D96Avr2Q.js → modal-fullscreen.DtgTb1Xh.js} +2 -2
  159. package/dist/chunks/{modal-fullscreen.D96Avr2Q.js.map → modal-fullscreen.DtgTb1Xh.js.map} +1 -1
  160. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.ylWdiVwQ.js → modal.vue_vue_type_script_setup_true_lang.CjD91zJo.js} +4 -4
  161. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.ylWdiVwQ.js.map → modal.vue_vue_type_script_setup_true_lang.CjD91zJo.js.map} +1 -1
  162. package/dist/chunks/{pagination.D_4FRHE9.js → pagination.C34l_EYf.js} +2 -2
  163. package/dist/chunks/{pagination.D_4FRHE9.js.map → pagination.C34l_EYf.js.map} +1 -1
  164. package/dist/chunks/{popover.HArIkKve.js → popover.D9Zw4w9l.js} +2 -2
  165. package/dist/chunks/{popover.HArIkKve.js.map → popover.D9Zw4w9l.js.map} +1 -1
  166. package/dist/chunks/{promo-banner.BRn1iznD.js → promo-banner.CzR9ri5v.js} +2 -2
  167. package/dist/chunks/{promo-banner.BRn1iznD.js.map → promo-banner.CzR9ri5v.js.map} +1 -1
  168. package/dist/chunks/{radio-group.D94e5N12.js → radio-group.DIyCKfOQ.js} +4 -4
  169. package/dist/chunks/{radio-group.D94e5N12.js.map → radio-group.DIyCKfOQ.js.map} +1 -1
  170. package/dist/chunks/{search-bar.D_4u91te.js → search-bar.Dy0dBek2.js} +3 -3
  171. package/dist/chunks/{search-bar.D_4u91te.js.map → search-bar.Dy0dBek2.js.map} +1 -1
  172. package/dist/chunks/{secondary-nav.CQ3aLyrM.js → secondary-nav.DYFnrUIK.js} +3 -3
  173. package/dist/chunks/{secondary-nav.CQ3aLyrM.js.map → secondary-nav.DYFnrUIK.js.map} +1 -1
  174. package/dist/chunks/{segmented-control.CueLfseV.js → segmented-control.B5H5Wiyz.js} +2 -2
  175. package/dist/chunks/{segmented-control.CueLfseV.js.map → segmented-control.B5H5Wiyz.js.map} +1 -1
  176. package/dist/chunks/{selection-card-group.Du3Cwf47.js → selection-card-group.BY8o4PYF.js} +12 -12
  177. package/dist/chunks/{selection-card-group.Du3Cwf47.js.map → selection-card-group.BY8o4PYF.js.map} +1 -1
  178. package/dist/chunks/show.ChPQTrAT.js +64 -0
  179. package/dist/chunks/show.ChPQTrAT.js.map +1 -0
  180. package/dist/chunks/{sidepanel.CGbl5x5B.js → sidepanel.BywianGe.js} +2 -2
  181. package/dist/chunks/{sidepanel.CGbl5x5B.js.map → sidepanel.BywianGe.js.map} +1 -1
  182. package/dist/chunks/step.Db0UJ8mx.js +264 -0
  183. package/dist/chunks/step.Db0UJ8mx.js.map +1 -0
  184. package/dist/chunks/{structured-list-item.CujUEOTK.js → structured-list-item.C_6ju-IY.js} +4 -4
  185. package/dist/chunks/{structured-list-item.CujUEOTK.js.map → structured-list-item.C_6ju-IY.js.map} +1 -1
  186. package/dist/chunks/{summary-grid-item-custom.DF9waESp.js → summary-grid-item-custom.FxBnzHzb.js} +4 -4
  187. package/dist/chunks/{summary-grid-item-custom.DF9waESp.js.map → summary-grid-item-custom.FxBnzHzb.js.map} +1 -1
  188. package/dist/chunks/{tag.wfnhGWVG.js → tag.xvqrfTwk.js} +2 -2
  189. package/dist/chunks/{tag.wfnhGWVG.js.map → tag.xvqrfTwk.js.map} +1 -1
  190. package/dist/chunks/{teleport.L8qFCYpr.js → teleport.CI0k6eaC.js} +9 -9
  191. package/dist/chunks/teleport.CI0k6eaC.js.map +1 -0
  192. package/dist/chunks/{textarea.DlPNxnUQ.js → textarea.vAp6HFi9.js} +2 -2
  193. package/dist/chunks/{textarea.DlPNxnUQ.js.map → textarea.vAp6HFi9.js.map} +1 -1
  194. package/dist/chunks/{timeline-item.B8VvkDfR.js → timeline-item.ND_EMuwP.js} +5 -5
  195. package/dist/chunks/{timeline-item.B8VvkDfR.js.map → timeline-item.ND_EMuwP.js.map} +1 -1
  196. package/dist/chunks/tooltip.BvJoy09y.js +203 -0
  197. package/dist/chunks/tooltip.BvJoy09y.js.map +1 -0
  198. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.CGpbGgfc.js → tutorial.vue_vue_type_script_setup_true_lang.LBw_ALfS.js} +4 -4
  199. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.CGpbGgfc.js.map → tutorial.vue_vue_type_script_setup_true_lang.LBw_ALfS.js.map} +1 -1
  200. package/dist/chunks/{use-cached-selected-values.DaRzXFIt.js → use-cached-selected-values.BOZK76mN.js} +8 -5
  201. package/dist/chunks/{use-cached-selected-values.DaRzXFIt.js.map → use-cached-selected-values.BOZK76mN.js.map} +1 -1
  202. package/dist/chunks/{warning-filled.Dm_HhqzW.js → warning-filled.OUOUbA6k.js} +2 -2
  203. package/dist/chunks/{warning-filled.Dm_HhqzW.js.map → warning-filled.OUOUbA6k.js.map} +1 -1
  204. package/dist/code-snippet.js +1 -1
  205. package/dist/dashboard-template.js +1 -1
  206. package/dist/dashed-underline.js +1 -1
  207. package/dist/data-grid-template.js +1 -1
  208. package/dist/data-grid.js +1 -1
  209. package/dist/date-picker.js +1 -1
  210. package/dist/date-range-picker.js +1 -1
  211. package/dist/dropdown.js +3 -3
  212. package/dist/file-uploader.js +5 -0
  213. package/dist/file-uploader.js.map +1 -0
  214. package/dist/filter-bar.js +1 -1
  215. package/dist/form-layout.js +1 -1
  216. package/dist/header.js +1 -1
  217. package/dist/index.js +228 -219
  218. package/dist/index.js.map +1 -1
  219. package/dist/info-icon.js +1 -1
  220. package/dist/input-field-password.js +10 -0
  221. package/dist/input-field-password.js.map +1 -0
  222. package/dist/input-field.js +1 -1
  223. package/dist/internal.js +7 -7
  224. package/dist/layout.js +1 -1
  225. package/dist/menu.js +1 -1
  226. package/dist/modal-fullscreen.js +1 -1
  227. package/dist/modal.js +2 -2
  228. package/dist/pagination.js +1 -1
  229. package/dist/popover.js +1 -1
  230. package/dist/promo-banner.js +1 -1
  231. package/dist/radio-group.js +1 -1
  232. package/dist/search-bar.js +2 -2
  233. package/dist/secondary-nav.js +1 -1
  234. package/dist/segmented-control.js +1 -1
  235. package/dist/selection-card.js +1 -1
  236. package/dist/sidepanel.js +1 -1
  237. package/dist/stepper.js +1 -1
  238. package/dist/structured-list.js +1 -1
  239. package/dist/styles/bento-dark.css +98 -34
  240. package/dist/styles/bento-light.css +98 -34
  241. package/dist/styles/bento.css +98 -34
  242. package/dist/styles/legacy.css +106 -42
  243. package/dist/styles/styleguide.css +98 -34
  244. package/dist/summary-grid.js +1 -1
  245. package/dist/tag.js +1 -1
  246. package/dist/textarea.js +1 -1
  247. package/dist/timeline.js +1 -1
  248. package/dist/tutorial.js +1 -1
  249. package/dist/web-types.json +1 -1
  250. package/package.json +9 -8
  251. package/dist/chunks/data-grid.BC2tOBxm.js +0 -3229
  252. package/dist/chunks/data-grid.BC2tOBxm.js.map +0 -1
  253. package/dist/chunks/date-range-picker.3iWt1Cd6.js.map +0 -1
  254. package/dist/chunks/filter-bar.pKcJryD3.js +0 -2898
  255. package/dist/chunks/filter-bar.pKcJryD3.js.map +0 -1
  256. package/dist/chunks/index.ChdIlujs.js +0 -248
  257. package/dist/chunks/index.ChdIlujs.js.map +0 -1
  258. package/dist/chunks/input-field.Bk2p3kIb.js.map +0 -1
  259. package/dist/chunks/step.CwuThZ0G.js +0 -285
  260. package/dist/chunks/step.CwuThZ0G.js.map +0 -1
  261. package/dist/chunks/teleport.L8qFCYpr.js.map +0 -1
  262. package/dist/chunks/tooltip.BEl_LdFo.js +0 -188
  263. package/dist/chunks/tooltip.BEl_LdFo.js.map +0 -1
@@ -1,24 +1,24 @@
1
- import { defineComponent as pe, useAttrs as ce, useSlots as fe, ref as A, provide as be, inject as ve, toRef as ye, computed as o, toRefs as me, openBlock as d, createBlock as p, unref as t, normalizeClass as we, withCtx as v, renderSlot as c, createCommentVNode as i, createElementVNode as O, createElementBlock as y, withModifiers as Y, mergeProps as R, withKeys as De, createTextVNode as he, toDisplayString as Ee, createVNode as ge } from "vue";
2
- import { a as Se, I as Te, B as j } from "./dropdown.CMKdLPHi.js";
3
- import { p as _e, d as W, B as w } from "./typography.DNzU41ah.js";
4
- import { g as D } from "./generate-uid.D-HFI38h.js";
1
+ import { defineComponent as pe, useAttrs as ce, useSlots as fe, ref as _, provide as be, inject as ve, toRef as ye, computed as o, toRefs as me, openBlock as r, createBlock as p, unref as t, normalizeClass as we, withCtx as v, renderSlot as c, createCommentVNode as i, createElementVNode as O, createElementBlock as y, withModifiers as Y, mergeProps as R, withKeys as De, createTextVNode as he, toDisplayString as Ee, createVNode as ge } from "vue";
2
+ import { a as Se, I as Te, B as j } from "./dropdown.DpjMobyf.js";
3
+ import { p as ke, d as K, B as D } from "./typography.DNzU41ah.js";
4
+ import { g as h } from "./generate-uid.D-HFI38h.js";
5
5
  import { g as Ae } from "./get-slot-text.D5WBGjic.js";
6
- import { u as ke } from "./aria-label.CaUURpnB.js";
6
+ import { u as _e } from "./aria-label.CaUURpnB.js";
7
7
  import { u as Ne } from "./i18n.CPGoe9tN.js";
8
8
  import { u as Le } from "./use-form-layout-loading.D3lALhtC.js";
9
9
  import { u as Oe } from "./use-has-slot.B7eQSabc.js";
10
- import { F as Re, E as Ie } from "./error-message.CmMyB-k9.js";
10
+ import { F as Re, E as Ie } from "./error-message.BYXS0kUN.js";
11
11
  import { _ as Pe } from "./_plugin-vue_export-helper.CHgC5LLL.js";
12
12
  import "../assets/input-field.css";
13
- var f = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.PAYMENT_METHOD = "payment-method", e.STATIC_VALUE = "static-value", e.DROPDOWN = "dropdown", e))(f || {}), s = /* @__PURE__ */ ((e) => (e.START = "start", e.END = "end", e))(s || {}), h = /* @__PURE__ */ ((e) => (e.CONDENSED = "condensed", e.DISABLED = "disabled", e.READONLY = "readonly", e.ERROR = "error", e))(h || {}), I = /* @__PURE__ */ ((e) => (e.SEARCH = "search", e.TEXT = "text", e.NUMBER = "number", e))(I || {}), Be = /* @__PURE__ */ ((e) => (e.INPUT = "input", e.ESCAPE_PRESSED = "escape-pressed", e.UPDATE_DROPDOWN = "update:dropdown", e.DROPDOWN_INPUT = "dropdown-input", e.FOCUS = "focus", e.CHANGE = "change", e.BLUR = "blur", e.KEYDOWN = "keydown", e))(Be || {});
14
- const K = {
13
+ var f = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.PAYMENT_METHOD = "payment-method", e.STATIC_VALUE = "static-value", e.DROPDOWN = "dropdown", e))(f || {}), u = /* @__PURE__ */ ((e) => (e.START = "start", e.END = "end", e))(u || {}), E = /* @__PURE__ */ ((e) => (e.CONDENSED = "condensed", e.DISABLED = "disabled", e.READONLY = "readonly", e.ERROR = "error", e))(E || {}), I = /* @__PURE__ */ ((e) => (e.SEARCH = "search", e.TEXT = "text", e.NUMBER = "number", e))(I || {}), Be = /* @__PURE__ */ ((e) => (e.INPUT = "input", e.ESCAPE_PRESSED = "escape-pressed", e.UPDATE_DROPDOWN = "update:dropdown", e.DROPDOWN_INPUT = "dropdown-input", e.FOCUS = "focus", e.CHANGE = "change", e.BLUR = "blur", e.KEYDOWN = "keydown", e))(Be || {});
14
+ const W = {
15
15
  "en-US": {
16
16
  ariaLabelFallback: "Input field",
17
17
  ariaLabelDropdownFallback: "{inputLabel} Dropdown"
18
18
  }
19
19
  }, $e = ["aria-disabled"], Ce = ["aria-hidden"], Me = ["aria-hidden"], Ue = ["id"], Ve = { class: "b-input-field__input-container" }, Fe = ["id", "aria-label", "aria-describedby", "aria-owns", "aria-invalid", "placeholder", "type", "value", "disabled", "readonly"], He = ["aria-hidden"], xe = ["id"], Ye = ["id"], je = {
20
- i18n: { messages: K }
21
- }, We = /* @__PURE__ */ pe({
20
+ i18n: { messages: W }
21
+ }, Ke = /* @__PURE__ */ pe({
22
22
  ...je,
23
23
  __name: "input-field",
24
24
  props: {
@@ -59,8 +59,8 @@ const K = {
59
59
  */
60
60
  dropdownPosition: {
61
61
  type: String,
62
- default: s.START,
63
- validator: (e) => Object.values(s).includes(e)
62
+ default: u.START,
63
+ validator: (e) => Object.values(u).includes(e)
64
64
  },
65
65
  /**
66
66
  * Adds error validation class for outlining input-field.
@@ -98,8 +98,8 @@ const K = {
98
98
  */
99
99
  staticValuePosition: {
100
100
  type: String,
101
- default: s.START,
102
- validator: (e) => Object.values(s).includes(e)
101
+ default: u.START,
102
+ validator: (e) => Object.values(u).includes(e)
103
103
  },
104
104
  /**
105
105
  * Adds a info icon next to the label to display the passed tooltip message.
@@ -128,60 +128,60 @@ const K = {
128
128
  validator: (e) => Object.values(f).includes(e)
129
129
  }
130
130
  },
131
- emits: ["update:dropdown", "blur", "change", "dropdown-input", "escape-pressed", "focus", "keydown", "input"],
131
+ emits: ["update:dropdown", "blur", "change", "dropdown-input", "escape-pressed", "focus", "keydown", "keyup", "input"],
132
132
  setup(e, { expose: q, emit: J }) {
133
- const P = ce(), k = fe(), a = e, u = J, { t: B } = Ne({ messages: K }), n = Oe(k), $ = A(null), C = D("input"), m = D("input-dropdown"), E = D("input-static-value"), M = D("input-description"), U = D("input-error"), N = A(!1);
133
+ const P = ce(), N = fe(), a = e, s = J, { t: B } = Ne({ messages: W }), l = Oe(N), $ = _(null), C = h("input"), m = h("input-dropdown"), g = h("input-static-value"), M = h("input-description"), U = h("input-error"), L = _(!1);
134
134
  be(Se, !0);
135
- const V = ve(Te, A(void 0)), X = () => {
136
- N.value = !0, u("focus");
135
+ const V = ve(Te, _(void 0)), X = () => {
136
+ L.value = !0, s("focus");
137
137
  }, z = () => {
138
- N.value = !1, u("blur");
139
- }, { isReadOnly: b } = Le(ye(a, "readonly")), g = o(
140
- () => a.variant === f.STATIC_VALUE && !!k.staticValue
138
+ L.value = !1, s("blur");
139
+ }, { isReadOnly: b } = Le(ye(a, "readonly")), S = o(
140
+ () => a.variant === f.STATIC_VALUE && !!N.staticValue
141
141
  ), G = o(() => a.variant === f.DEFAULT), Q = o(() => a.variant === f.PAYMENT_METHOD), Z = o(
142
- () => g.value && a.staticValuePosition === s.START
142
+ () => S.value && a.staticValuePosition === u.START
143
143
  ), ee = o(
144
- () => g.value && a.staticValuePosition === s.END
145
- ), S = o(() => a.variant === f.DROPDOWN && !!a.dropdown), te = o(
146
- () => S.value && a.dropdownPosition === s.START
144
+ () => S.value && a.staticValuePosition === u.END
145
+ ), T = o(() => a.variant === f.DROPDOWN && !!a.dropdown), te = o(
146
+ () => T.value && a.dropdownPosition === u.START
147
147
  ), ae = o(
148
- () => S.value && a.dropdownPosition === s.END
149
- ), T = o(
148
+ () => T.value && a.dropdownPosition === u.END
149
+ ), k = o(
150
150
  () => !a.disabled && !b.value && (!!a.errorMessage || a.error)
151
- ), oe = o(() => S.value === !0 && g.value === !0 ? `${E} ${m}` : S.value === !0 ? `${m}` : g.value === !0 ? `${E}` : null), ie = o(() => B("ariaLabelFallback")), de = o(
151
+ ), oe = o(() => T.value === !0 && S.value === !0 ? `${g} ${m}` : T.value === !0 ? `${m}` : S.value === !0 ? `${g}` : null), ie = o(() => B("ariaLabelFallback")), de = o(
152
152
  () => B("ariaLabelDropdownFallback", { inputLabel: F.value })
153
- ), re = A(P["aria-label"]), { ariaLabel: ne } = me(a), F = ke({
153
+ ), re = _(P["aria-label"]), { ariaLabel: ne } = me(a), F = _e({
154
154
  ariaLabel: re.value,
155
155
  // TODO: take this line away when the aria-label props is removed
156
156
  label: ne,
157
- defaultFallback: n("default") ? Ae(k)("default") : ie
157
+ defaultFallback: l("default") ? Ae(N)("default") : ie
158
158
  }), le = o(
159
- () => `${n("description") ? M : ""} ${T.value && a.errorMessage ? U : ""}`
159
+ () => `${l("description") ? M : ""} ${k.value && a.errorMessage ? U : ""}`
160
160
  ), se = o(() => ({
161
- [`b-input-field--${h.CONDENSED}`]: a.condensed,
162
- [`b-input-field--${h.DISABLED}`]: a.disabled,
163
- [`b-input-field--${h.READONLY}`]: b.value,
164
- [`b-input-field--${h.ERROR}`]: T.value
161
+ [`b-input-field--${E.CONDENSED}`]: a.condensed,
162
+ [`b-input-field--${E.DISABLED}`]: a.disabled,
163
+ [`b-input-field--${E.READONLY}`]: b.value,
164
+ [`b-input-field--${E.ERROR}`]: k.value
165
165
  })), H = o(() => ({
166
166
  "aria-label": de.value,
167
167
  ...a.dropdown
168
- })), ue = (r) => {
169
- const l = r.target.value;
170
- !a.disabled && !b.value && u("input", l);
171
- }, x = (r) => {
172
- u("dropdown-input", r), u("update:dropdown", { ...a == null ? void 0 : a.dropdown, value: r });
173
- }, _ = () => {
168
+ })), ue = (n) => {
169
+ const d = n.target.value;
170
+ !a.disabled && !b.value && s("input", d);
171
+ }, x = (n) => {
172
+ s("dropdown-input", n), s("update:dropdown", { ...a == null ? void 0 : a.dropdown, value: n });
173
+ }, A = () => {
174
174
  $.value.focus();
175
175
  };
176
176
  return q({
177
- focusInput: _
178
- }), Object.values(I).includes(a.type) || _e(`"bento-input-field" dropdown does not support the type ${a.type}`), a.error && W(
177
+ focusInput: A
178
+ }), Object.values(I).includes(a.type) || ke(`"bento-input-field" dropdown does not support the type ${a.type}`), a.error && K(
179
179
  'BentoInputField "error" property',
180
180
  `Use the BentoInputField "errorMessage" property instead to indicate that there is a modifier error.
181
181
  Having the field as "undefined" will hide/remove the error.
182
182
  <bento-dropdown errorMessage="Error message text" />`,
183
183
  "2.0.0"
184
- ), n("defaultIconBefore") && W(
184
+ ), l("defaultIconBefore") && K(
185
185
  'BentoInputField "defaultIconBefore" slot',
186
186
  `Use the BentoInputField "iconBefore" slot instead to add an icon at the left side of the input field
187
187
  <bento-input-field>
@@ -190,24 +190,24 @@ const K = {
190
190
  </template>
191
191
  </bento-input-field>`,
192
192
  "2.0.0"
193
- ), (r, l) => (d(), p(t(w), {
193
+ ), (n, d) => (r(), p(t(D), {
194
194
  class: we(["b-input-field", se.value]),
195
195
  "data-testid": "input-text-container",
196
196
  el: "div",
197
197
  variant: "body"
198
198
  }, {
199
199
  default: v(() => [
200
- t(n)("default") ? (d(), p(t(Re), {
200
+ t(l)("default") ? (r(), p(t(Re), {
201
201
  key: 0,
202
202
  for: t(C),
203
203
  "data-testid": "input-field-label",
204
204
  "tooltip-text": e.tooltipText,
205
205
  optional: e.optional,
206
206
  required: e.required,
207
- onClick: _
207
+ onClick: A
208
208
  }, {
209
209
  default: v(() => [
210
- c(r.$slots, "default", {}, void 0, !0)
210
+ c(n.$slots, "default", {}, void 0, !0)
211
211
  ]),
212
212
  _: 3
213
213
  }, 8, ["for", "tooltip-text", "optional", "required"])) : i("", !0),
@@ -215,45 +215,45 @@ const K = {
215
215
  class: "b-input-field__input-box",
216
216
  "data-testid": "input-box",
217
217
  "aria-disabled": e.disabled,
218
- onClick: _
218
+ onClick: A
219
219
  }, [
220
- G.value && (t(n)("defaultIconBefore") || t(n)("iconBefore")) ? (d(), y("span", {
220
+ G.value && (t(l)("defaultIconBefore") || t(l)("iconBefore")) ? (r(), y("span", {
221
221
  key: 0,
222
222
  "aria-hidden": e.ariaHidden ? "true" : void 0,
223
223
  class: "b-input-field__icon-before"
224
224
  }, [
225
- t(n)("iconBefore") ? c(r.$slots, "iconBefore", { key: 0 }, void 0, !0) : i("", !0),
226
- t(n)("defaultIconBefore") && !t(n)("iconBefore") ? c(r.$slots, "defaultIconBefore", { key: 1 }, void 0, !0) : i("", !0)
225
+ t(l)("iconBefore") ? c(n.$slots, "iconBefore", { key: 0 }, void 0, !0) : i("", !0),
226
+ t(l)("defaultIconBefore") && !t(l)("iconBefore") ? c(n.$slots, "defaultIconBefore", { key: 1 }, void 0, !0) : i("", !0)
227
227
  ], 8, Ce)) : i("", !0),
228
- Q.value && t(n)("paymentMethod") ? (d(), y("span", {
228
+ Q.value && t(l)("paymentMethod") ? (r(), y("span", {
229
229
  key: 1,
230
230
  "aria-hidden": e.ariaHidden ? "true" : void 0,
231
231
  class: "b-input-field__payment-method"
232
232
  }, [
233
- c(r.$slots, "paymentMethod", {}, void 0, !0)
233
+ c(n.$slots, "paymentMethod", {}, void 0, !0)
234
234
  ], 8, Me)) : i("", !0),
235
- te.value ? (d(), y("div", {
235
+ te.value ? (r(), y("div", {
236
236
  key: 2,
237
237
  id: t(m),
238
238
  class: "b-input-field__dropdown b-input-field__dropdown--start",
239
- onClick: l[0] || (l[0] = Y(() => {
239
+ onClick: d[0] || (d[0] = Y(() => {
240
240
  }, ["stop"]))
241
241
  }, [
242
- e.dropdown ? (d(), p(t(j), R({ key: 0 }, H.value, {
242
+ e.dropdown ? (r(), p(t(j), R({ key: 0 }, H.value, {
243
243
  disabled: e.disabled,
244
244
  readonly: t(b),
245
245
  onInput: x
246
246
  }), null, 16, ["disabled", "readonly"])) : i("", !0)
247
247
  ], 8, Ue)) : i("", !0),
248
- Z.value ? (d(), p(t(w), {
248
+ Z.value ? (r(), p(t(D), {
249
249
  key: 3,
250
- id: t(E),
250
+ id: t(g),
251
251
  class: "b-input-field__static-value b-input-field__static-value--start",
252
252
  el: "span",
253
253
  variant: "body"
254
254
  }, {
255
255
  default: v(() => [
256
- c(r.$slots, "staticValue", {}, void 0, !0)
256
+ c(n.$slots, "staticValue", {}, void 0, !0)
257
257
  ]),
258
258
  _: 3
259
259
  }, 8, ["id"])) : i("", !0),
@@ -265,22 +265,23 @@ const K = {
265
265
  "aria-label": t(F),
266
266
  "aria-describedby": le.value,
267
267
  "aria-owns": oe.value,
268
- "aria-invalid": T.value,
268
+ "aria-invalid": k.value,
269
269
  placeholder: e.placeholder,
270
270
  type: e.type,
271
271
  value: e.value,
272
272
  disabled: e.disabled,
273
273
  readonly: t(b),
274
274
  onInput: ue,
275
- onChange: l[1] || (l[1] = (L) => u("change")),
275
+ onChange: d[1] || (d[1] = (w) => s("change")),
276
276
  onFocus: X,
277
277
  onBlur: z,
278
278
  onKeydown: [
279
- l[2] || (l[2] = (L) => u("keydown", L)),
280
- l[3] || (l[3] = De((L) => u("escape-pressed"), ["esc"]))
281
- ]
279
+ d[2] || (d[2] = (w) => s("keydown", w)),
280
+ d[4] || (d[4] = De((w) => s("escape-pressed"), ["esc"]))
281
+ ],
282
+ onKeyup: d[3] || (d[3] = (w) => s("keyup", w))
282
283
  }), null, 16, Fe),
283
- t(V) && N.value && e.value ? (d(), p(t(w), {
284
+ t(V) && L.value && e.value ? (r(), p(t(D), {
284
285
  key: 0,
285
286
  el: "span",
286
287
  class: "b-input-field__hint"
@@ -291,35 +292,35 @@ const K = {
291
292
  _: 1
292
293
  })) : i("", !0)
293
294
  ]),
294
- t(n)("iconAfter") ? (d(), y("span", {
295
+ t(l)("iconAfter") ? (r(), y("span", {
295
296
  key: 4,
296
297
  "aria-hidden": e.ariaHidden ? "true" : void 0,
297
298
  class: "b-input-field__icon-after",
298
299
  "data-testid": "input-text__icon-after"
299
300
  }, [
300
- c(r.$slots, "iconAfter", {}, void 0, !0)
301
+ c(n.$slots, "iconAfter", {}, void 0, !0)
301
302
  ], 8, He)) : i("", !0),
302
- ee.value ? (d(), p(t(w), {
303
+ ee.value ? (r(), p(t(D), {
303
304
  key: 5,
304
- id: t(E),
305
+ id: t(g),
305
306
  class: "b-input-field__static-value b-input-field__static-value--end",
306
307
  el: "span",
307
308
  variant: "body"
308
309
  }, {
309
310
  default: v(() => [
310
- c(r.$slots, "staticValue", {}, void 0, !0)
311
+ c(n.$slots, "staticValue", {}, void 0, !0)
311
312
  ]),
312
313
  _: 3
313
314
  }, 8, ["id"])) : i("", !0),
314
- ae.value ? (d(), y("div", {
315
+ ae.value ? (r(), y("div", {
315
316
  key: 6,
316
317
  id: t(m),
317
318
  "data-testid": "input-field-dropdown-container-end",
318
319
  class: "b-input-field__dropdown b-input-field__dropdown--end",
319
- onClick: l[4] || (l[4] = Y(() => {
320
+ onClick: d[5] || (d[5] = Y(() => {
320
321
  }, ["stop"]))
321
322
  }, [
322
- e.dropdown ? (d(), p(t(j), R({
323
+ e.dropdown ? (r(), p(t(j), R({
323
324
  key: 0,
324
325
  id: t(m)
325
326
  }, H.value, {
@@ -329,24 +330,24 @@ const K = {
329
330
  }), null, 16, ["id", "disabled", "readonly"])) : i("", !0)
330
331
  ], 8, xe)) : i("", !0)
331
332
  ], 8, $e),
332
- T.value && e.errorMessage ? (d(), p(t(Ie), {
333
+ k.value && e.errorMessage ? (r(), p(t(Ie), {
333
334
  key: 1,
334
335
  id: t(U),
335
336
  "error-message": e.errorMessage,
336
337
  class: "b-input-field__error-message"
337
338
  }, null, 8, ["id", "error-message"])) : i("", !0),
338
- t(n)("description") ? (d(), y("span", {
339
+ t(l)("description") ? (r(), y("span", {
339
340
  key: 2,
340
341
  id: t(M),
341
342
  class: "b-input-field__description",
342
- onClick: _
343
+ onClick: A
343
344
  }, [
344
- ge(t(w), {
345
+ ge(t(D), {
345
346
  el: "span",
346
347
  variant: "body"
347
348
  }, {
348
349
  default: v(() => [
349
- c(r.$slots, "description", { id: "description" }, void 0, !0)
350
+ c(n.$slots, "description", { id: "description" }, void 0, !0)
350
351
  ]),
351
352
  _: 3
352
353
  })
@@ -355,13 +356,13 @@ const K = {
355
356
  _: 3
356
357
  }, 8, ["class"]));
357
358
  }
358
- }), ot = /* @__PURE__ */ Pe(We, [["__scopeId", "data-v-e73812ab"]]);
359
+ }), ot = /* @__PURE__ */ Pe(Ke, [["__scopeId", "data-v-96e9e31c"]]);
359
360
  export {
360
361
  ot as B,
361
362
  f as a,
362
- s as b,
363
- h as c,
363
+ u as b,
364
+ E as c,
364
365
  I as d,
365
366
  Be as e
366
367
  };
367
- //# sourceMappingURL=input-field.Bk2p3kIb.js.map
368
+ //# sourceMappingURL=input-field.BQKEQIZd.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input-field.BQKEQIZd.js","sources":["../../../vue2/src/components/input-field/input-field.types.ts","../../../vue2/src/components/input-field/input-field.vue"],"sourcesContent":["import { BentoDropdown } from '@/components/dropdown/';\nimport type { HTMLAttributes } from 'vue/types/jsx';\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoInputFieldVariant {\n DEFAULT = 'default',\n PAYMENT_METHOD = 'payment-method',\n STATIC_VALUE = 'static-value',\n DROPDOWN = 'dropdown',\n}\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoInputFieldElementPosition {\n START = 'start',\n END = 'end',\n}\n\nexport enum BentoInputFieldStateClass {\n CONDENSED = 'condensed',\n DISABLED = 'disabled',\n READONLY = 'readonly',\n ERROR = 'error',\n}\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoInputFieldType {\n SEARCH = 'search',\n TEXT = 'text',\n NUMBER = 'number',\n}\n\nexport type BentoInputFieldValue = string | number;\n\ntype DropdownProps = InstanceType<typeof BentoDropdown>['$props'];\nexport type BentoInputDropdownProps = {\n items: DropdownProps['items'];\n value: DropdownProps['value'];\n dynamicFiltering?: DropdownProps['dynamicFiltering'];\n 'aria-label'?: HTMLAttributes['aria-label'];\n};\n\n/**\n * @deprecated The use of these enums is no longer supported.\n * Use `v-on:` or `@` to listen to the events being emitted.\n * This enum will be removed in 2.0.\n */\nexport enum BentoInputFieldEvent {\n INPUT = 'input',\n ESCAPE_PRESSED = 'escape-pressed',\n UPDATE_DROPDOWN = 'update:dropdown',\n DROPDOWN_INPUT = 'dropdown-input',\n FOCUS = 'focus',\n CHANGE = 'change',\n BLUR = 'blur',\n KEYDOWN = 'keydown',\n}\n","<template>\n <bento-typography\n class=\"b-input-field\"\n data-testid=\"input-text-container\"\n :class=\"inputFieldConditionalClasses\"\n el=\"div\"\n variant=\"body\"\n >\n <field-label\n v-if=\"hasSlot('default')\"\n :for=\"inputFieldId\"\n data-testid=\"input-field-label\"\n :tooltip-text=\"tooltipText\"\n :optional=\"optional\"\n :required=\"required\"\n @click=\"focusInput\"\n >\n <slot></slot>\n </field-label>\n\n <div class=\"b-input-field__input-box\" data-testid=\"input-box\" :aria-disabled=\"disabled\" @click=\"focusInput\">\n <!-- Optional Icon for Default text variant -->\n <span\n v-if=\"isDefaultVariant && (hasSlot('defaultIconBefore') || hasSlot('iconBefore'))\"\n :aria-hidden=\"ariaHidden ? 'true' : undefined\"\n class=\"b-input-field__icon-before\"\n >\n <slot v-if=\"hasSlot('iconBefore')\" name=\"iconBefore\" />\n <slot v-if=\"hasSlot('defaultIconBefore') && !hasSlot('iconBefore')\" name=\"defaultIconBefore\" />\n </span>\n\n <!-- Mandatory Icon for Payment Method variant -->\n <span\n v-if=\"isPaymentMethodVariant && hasSlot('paymentMethod')\"\n :aria-hidden=\"ariaHidden ? 'true' : undefined\"\n class=\"b-input-field__payment-method\"\n >\n <slot name=\"paymentMethod\" />\n </span>\n\n <!-- Dropdown at start -->\n <div\n v-if=\"shouldDisplayDropdownAtStart\"\n :id=\"dropdownId\"\n class=\"b-input-field__dropdown b-input-field__dropdown--start\"\n @click.stop\n >\n <bento-dropdown\n v-if=\"dropdown\"\n v-bind=\"inputFieldDropdownProps\"\n :disabled=\"disabled\"\n :readonly=\"isReadOnly\"\n @input=\"onDropdownInput\"\n />\n </div>\n\n <!-- Static Value at start -->\n <bento-typography\n v-if=\"shouldDisplayStaticValueAtStart\"\n :id=\"staticValueId\"\n class=\"b-input-field__static-value b-input-field__static-value--start\"\n el=\"span\"\n variant=\"body\"\n >\n <slot name=\"staticValue\" />\n </bento-typography>\n <div class=\"b-input-field__input-container\">\n <input\n :id=\"inputFieldId\"\n v-bind=\"attrs\"\n ref=\"inputFieldElement\"\n class=\"b-input-field__input\"\n :aria-label=\"computedAriaLabel\"\n :aria-describedby=\"computedAriaDescribedBy\"\n :aria-owns=\"computedAriaOwns\"\n :aria-invalid=\"shouldShowError\"\n :placeholder=\"placeholder\"\n :type=\"type\"\n :value=\"value\"\n :disabled=\"disabled\"\n :readonly=\"isReadOnly\"\n @input=\"onInput\"\n @change=\"emit('change')\"\n @focus=\"onFocus\"\n @blur=\"onBlur\"\n @keydown=\"emit('keydown', $event)\"\n @keyup=\"emit('keyup', $event)\"\n @keydown.esc=\"emit('escape-pressed')\"\n />\n\n <!-- Hint at the end -->\n <bento-typography v-if=\"hint && isFocused && value\" el=\"span\" class=\"b-input-field__hint\">\n {{ hint }}\n </bento-typography>\n </div>\n\n <span\n v-if=\"hasSlot('iconAfter')\"\n :aria-hidden=\"ariaHidden ? 'true' : undefined\"\n class=\"b-input-field__icon-after\"\n data-testid=\"input-text__icon-after\"\n >\n <slot name=\"iconAfter\" />\n </span>\n\n <!-- Static Value at the end -->\n <bento-typography\n v-if=\"shouldDisplayStaticValueAtEnd\"\n :id=\"staticValueId\"\n class=\"b-input-field__static-value b-input-field__static-value--end\"\n el=\"span\"\n variant=\"body\"\n >\n <slot name=\"staticValue\" />\n </bento-typography>\n\n <!-- Dropdown at end -->\n <div\n v-if=\"shouldDisplayDropdownAtEnd\"\n :id=\"dropdownId\"\n data-testid=\"input-field-dropdown-container-end\"\n class=\"b-input-field__dropdown b-input-field__dropdown--end\"\n @click.stop\n >\n <bento-dropdown\n v-if=\"dropdown\"\n :id=\"dropdownId\"\n v-bind=\"inputFieldDropdownProps\"\n :disabled=\"disabled\"\n :readonly=\"isReadOnly\"\n @input=\"onDropdownInput\"\n />\n </div>\n </div>\n\n <error-message\n v-if=\"shouldShowError && !!errorMessage\"\n :id=\"errorId\"\n :error-message=\"errorMessage\"\n class=\"b-input-field__error-message\"\n />\n\n <span v-if=\"hasSlot('description')\" :id=\"descriptionId\" class=\"b-input-field__description\" @click=\"focusInput\">\n <bento-typography el=\"span\" variant=\"body\">\n <slot id=\"description\" name=\"description\" />\n </bento-typography>\n </span>\n </bento-typography>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, inject, PropType, provide, Ref, ref, toRef, toRefs, useAttrs, useSlots } from 'vue';\n\n // Components\n import { BentoDropdown } from '@/components/dropdown';\n import { BentoTypography } from '@/components/typography';\n import { ErrorMessage, FieldLabel } from '@/internal';\n\n // Utils\n import { deprecate } from '@/utils/ts/deprecate';\n import { generateUid } from '@/core/utils/ts';\n import { getSlotText } from '@/utils/ts/get-slot-text';\n import { useAriaLabel } from '@/utils/ts/aria-label';\n import { useI18n } from '@/utils/ts/i18n';\n import { printDevelopmentWarning } from '@/utils/ts/print-development-warning';\n import {\n INPUT_FIELD_COMPONENT_INJECTION_KEY,\n INPUT_FIELD_HINT_INJECTION_KEY,\n } from '@/components/input-field/input-field.keys';\n\n // Composables\n import { useFormLayoutFieldLoading, useHasSlot } from '@/composables';\n\n // Types\n import {\n BentoInputDropdownProps,\n BentoInputFieldElementPosition,\n BentoInputFieldStateClass,\n BentoInputFieldType,\n BentoInputFieldValue,\n BentoInputFieldVariant,\n } from './input-field.types';\n import { BentoListboxSelectedValue } from '@/types';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const attrs = useAttrs();\n const slots = useSlots();\n\n const props = defineProps({\n /**\n * Indicates whether the element is exposed to an accessibility API.\n */\n ariaHidden: { type: Boolean, default: true },\n\n /**\n * @deprecated from version 2.0.0. Use the aria-label attribute instead.\n */\n /**\n * Text that labels an the input element\n */\n ariaLabel: { type: String, default: undefined },\n\n /**\n * Reduces height of the input\n */\n condensed: { type: Boolean, default: false },\n\n /**\n * Disables the possibility of changing value in the input-field\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Dropdown props for the small selectable dropdown menu.\n * Properties supported:\n *\n * - `value`: Selected value of the dropdown\n * - `items`: List of available items\n * - `aria-label`: Text that labels the dropdown element\n *\n */\n dropdown: {\n type: Object as PropType<BentoInputDropdownProps>,\n default: undefined,\n },\n\n /**\n * Position of the dropdown before or after input value\n */\n dropdownPosition: {\n type: String as PropType<BentoInputFieldElementPosition | `${BentoInputFieldElementPosition}`>,\n default: BentoInputFieldElementPosition.START,\n validator: (value: BentoInputFieldElementPosition) =>\n Object.values(BentoInputFieldElementPosition).includes(value),\n },\n\n /**\n * Adds error validation class for outlining input-field.\n *\n * @deprecated Use \"errorMessage\" prop instead\n */\n error: { type: Boolean, default: false },\n\n /**\n * Renders input-field with an error state and the error message beneath the input box\n */\n errorMessage: { type: String, default: null },\n\n /**\n * Highlights the dropdown is optional.\n */\n optional: { type: Boolean, default: false },\n\n /**\n * Text displayed as the placeholder of the input-field\n */\n placeholder: { type: String, default: '' },\n\n /**\n * Highlights the dropdown is required.\n */\n required: { type: Boolean, default: false },\n\n /**\n * Setting this property to true will set the input field to read only state.\n */\n readonly: { type: Boolean, default: false },\n\n /**\n * Static text that displayed before or after input value\n * Applicable to the Static Value variant\n */\n staticValue: { type: String, default: '' },\n\n /**\n * Position of Static Value before or after input value\n */\n staticValuePosition: {\n type: String as PropType<BentoInputFieldElementPosition | `${BentoInputFieldElementPosition}`>,\n default: BentoInputFieldElementPosition.START,\n validator: (value: BentoInputFieldElementPosition) =>\n Object.values(BentoInputFieldElementPosition).includes(value),\n },\n\n /**\n * Adds a info icon next to the label to display the passed tooltip message.\n */\n tooltipText: { type: String, default: null },\n\n /**\n * A string specifying the type of control to render.\n * All `input` types are available but only `search`, `text` and `number` are fully supported.\n *\n * If `type` is `search`, use `bento-search-bar` instead.\n */\n type: {\n type: String as PropType<BentoInputFieldType | `${BentoInputFieldType}` | HTMLInputElement['type']>,\n default: BentoInputFieldType.TEXT,\n },\n\n /**\n * Text displayed as the value of the input-field\n */\n value: { type: [String, Number] as PropType<BentoInputFieldValue>, default: undefined },\n\n /**\n * Describes the different variants for the input element\n */\n variant: {\n type: String as PropType<BentoInputFieldVariant | `${BentoInputFieldVariant}`>,\n default: BentoInputFieldVariant.DEFAULT,\n validator: (value: BentoInputFieldVariant) => Object.values(BentoInputFieldVariant).includes(value),\n },\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when the Input Field's internal dropdown changes it's value. Contains every dropdown prop passed with the updated selected value as 'value'\n */\n (e: 'update:dropdown', updatedDropdownProps: BentoInputDropdownProps): void;\n\n /**\n * Emitted when the element has lost focus\n */\n (e: 'blur'): void;\n\n /**\n * Emitted when the user modifies the element's value. Unlike the 'input' event, the change event is not necessarily fired for each alteration to an element's value\n */\n (e: 'change'): void;\n\n /**\n * Emitted when the Input Field's internal dropdown changes it's value\n */\n (e: 'dropdown-input', selectedValue: BentoListboxSelectedValue): void;\n\n /**\n * Emitted when the \"ESC\" key is pressed\n */\n (e: 'escape-pressed'): void;\n\n /**\n * Emitted when the element has received focus\n */\n (e: 'focus'): void;\n\n /**\n * Emitted when a key is pressed down\n */\n (e: 'keydown', event: KeyboardEvent): void;\n\n /**\n * Emitted when a key is pressed and lifted up\n */\n (e: 'keyup', event: KeyboardEvent): void;\n\n /**\n * Emitted when the component's model changes\n */\n (e: 'input', inputValue: string): void;\n }>();\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const hasSlot = useHasSlot(slots);\n const inputFieldElement = ref(null);\n const inputFieldId = generateUid('input');\n const dropdownId = generateUid('input-dropdown');\n const staticValueId = generateUid('input-static-value');\n const descriptionId = generateUid('input-description');\n const errorId = generateUid('input-error');\n const isFocused = ref(false);\n\n // Provide INPUT_FIELD_COMPONENT_INJECTION_KEY as true, to set the input only dropdown size variant in the BentoDropdown comp\n provide(INPUT_FIELD_COMPONENT_INJECTION_KEY, true);\n // Renders the input with a hint if a string is provided\n const hint = inject<Ref<string | undefined>>(INPUT_FIELD_HINT_INJECTION_KEY, ref(undefined));\n\n const onFocus = () => {\n isFocused.value = true;\n emit('focus');\n };\n\n const onBlur = () => {\n isFocused.value = false;\n emit('blur');\n };\n\n const { isReadOnly } = useFormLayoutFieldLoading(toRef(props, 'readonly'));\n\n const shouldShowStaticValue = computed(\n () => props.variant === BentoInputFieldVariant.STATIC_VALUE && !!slots.staticValue\n );\n\n const isDefaultVariant = computed(() => props.variant === BentoInputFieldVariant.DEFAULT);\n\n const isPaymentMethodVariant = computed(() => props.variant === BentoInputFieldVariant.PAYMENT_METHOD);\n\n const shouldDisplayStaticValueAtStart = computed(\n () => shouldShowStaticValue.value && props.staticValuePosition === BentoInputFieldElementPosition.START\n );\n const shouldDisplayStaticValueAtEnd = computed(\n () => shouldShowStaticValue.value && props.staticValuePosition === BentoInputFieldElementPosition.END\n );\n\n const shouldShowDropdown = computed(() => props.variant === BentoInputFieldVariant.DROPDOWN && !!props.dropdown);\n const shouldDisplayDropdownAtStart = computed(\n () => shouldShowDropdown.value && props.dropdownPosition === BentoInputFieldElementPosition.START\n );\n const shouldDisplayDropdownAtEnd = computed(\n () => shouldShowDropdown.value && props.dropdownPosition === BentoInputFieldElementPosition.END\n );\n\n const shouldShowError = computed(\n () => !props.disabled && !isReadOnly.value && (!!props.errorMessage || props.error)\n );\n\n const computedAriaOwns = computed(() => {\n if (shouldShowDropdown.value === true && shouldShowStaticValue.value === true) {\n return `${staticValueId} ${dropdownId}`;\n }\n if (shouldShowDropdown.value === true) {\n return `${dropdownId}`;\n }\n if (shouldShowStaticValue.value === true) {\n return `${staticValueId}`;\n }\n return null;\n });\n\n // vue-i18n issue with t() used in script - direct usage in template works\n // requires either createI18n({ legacy: false }) or to be wrapped in computed()\n const computedAriaLabelFallbackMessage = computed(() => t('ariaLabelFallback'));\n const computedAriaLabelDropdowFallback = computed(() =>\n t('ariaLabelDropdownFallback', { inputLabel: computedAriaLabel.value })\n );\n\n const ariaLabelAttribute = ref(attrs['aria-label']);\n const { ariaLabel } = toRefs(props);\n const computedAriaLabel = useAriaLabel({\n ariaLabel: ariaLabelAttribute.value as string,\n // TODO: take this line away when the aria-label props is removed\n label: ariaLabel,\n defaultFallback: hasSlot('default')\n ? (getSlotText(slots)('default') as string)\n : computedAriaLabelFallbackMessage,\n });\n\n const computedAriaDescribedBy = computed(\n () =>\n `${hasSlot('description') ? descriptionId : ''} ${\n shouldShowError.value && !!props.errorMessage ? errorId : ''\n }`\n );\n\n const inputFieldConditionalClasses = computed(() => ({\n [`b-input-field--${BentoInputFieldStateClass.CONDENSED}`]: props.condensed,\n [`b-input-field--${BentoInputFieldStateClass.DISABLED}`]: props.disabled,\n [`b-input-field--${BentoInputFieldStateClass.READONLY}`]: isReadOnly.value,\n [`b-input-field--${BentoInputFieldStateClass.ERROR}`]: shouldShowError.value,\n }));\n\n const inputFieldDropdownProps = computed(() => ({\n 'aria-label': computedAriaLabelDropdowFallback.value,\n ...props.dropdown,\n }));\n\n const onInput = (event: Event) => {\n const inputValue = (event.target as HTMLInputElement).value;\n if (!props.disabled && !isReadOnly.value) {\n emit('input', inputValue);\n }\n };\n\n const onDropdownInput = (selectedValue: BentoListboxSelectedValue) => {\n emit('dropdown-input', selectedValue);\n emit('update:dropdown', { ...props?.dropdown, value: selectedValue });\n };\n\n const focusInput = () => {\n inputFieldElement.value.focus();\n };\n\n // Expose method so that other components can focus on it in Vue3\n defineExpose({\n focusInput,\n });\n\n if (!Object.values(BentoInputFieldType).includes(props.type as BentoInputFieldType)) {\n printDevelopmentWarning(`\"bento-input-field\" dropdown does not support the type ${props.type}`);\n }\n\n /**\n * Deprecations\n */\n if (props.error) {\n deprecate(\n 'BentoInputField \"error\" property',\n `Use the BentoInputField \"errorMessage\" property instead to indicate that there is a modifier error.\n Having the field as \"undefined\" will hide/remove the error.\n <bento-dropdown errorMessage=\"Error message text\" />`,\n '2.0.0'\n );\n }\n\n if (hasSlot('defaultIconBefore')) {\n deprecate(\n 'BentoInputField \"defaultIconBefore\" slot',\n `Use the BentoInputField \"iconBefore\" slot instead to add an icon at the left side of the input field\n <bento-input-field>\n \\t<template #iconBefore>\n \\t\\t<my-icon-goes-here />\n \\t</template>\n </bento-input-field>`,\n '2.0.0'\n );\n }\n</script>\n\n<script lang=\"ts\">\n /**\n * Input field component is used to create interactive controls for web-based\n * forms in order to accept data from the user.\n *\n * @example\n * import { BentoInputField } from '@adyen/bento-vue2'\n *\n * const inputValue = ref('');\n *\n * export default {\n * components: { BentoInputField },\n * tempate: `\n * <bento-input-field\n * :value=\"inputValue\"\n * :input=\"newValue => inputValue.value = newValue\"\n * >\n * }\n */\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./input-field.scss\" />\n"],"names":["BentoInputFieldVariant","BentoInputFieldVariant2","BentoInputFieldElementPosition","BentoInputFieldElementPosition2","BentoInputFieldStateClass","BentoInputFieldStateClass2","BentoInputFieldType","BentoInputFieldType2","BentoInputFieldEvent","BentoInputFieldEvent2","__default__","messages","attrs","useAttrs","slots","useSlots","props","__props","emit","__emit","t","useI18n","hasSlot","useHasSlot","inputFieldElement","ref","inputFieldId","generateUid","dropdownId","staticValueId","descriptionId","errorId","isFocused","provide","INPUT_FIELD_COMPONENT_INJECTION_KEY","hint","inject","INPUT_FIELD_HINT_INJECTION_KEY","onFocus","onBlur","isReadOnly","useFormLayoutFieldLoading","toRef","shouldShowStaticValue","computed","isDefaultVariant","isPaymentMethodVariant","shouldDisplayStaticValueAtStart","shouldDisplayStaticValueAtEnd","shouldShowDropdown","shouldDisplayDropdownAtStart","shouldDisplayDropdownAtEnd","shouldShowError","computedAriaOwns","computedAriaLabelFallbackMessage","computedAriaLabelDropdowFallback","computedAriaLabel","ariaLabelAttribute","ariaLabel","toRefs","useAriaLabel","getSlotText","computedAriaDescribedBy","inputFieldConditionalClasses","inputFieldDropdownProps","onInput","event","inputValue","onDropdownInput","selectedValue","focusInput","__expose","printDevelopmentWarning","deprecate"],"mappings":"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"}
@@ -2,7 +2,7 @@ import { defineComponent as $, provide as T, toRef as g, computed as l, openBloc
2
2
  import { _ as B } from "./_plugin-vue_export-helper.CHgC5LLL.js";
3
3
  import { B as W } from "./typography.DNzU41ah.js";
4
4
  import { u as Y } from "./use-has-slot.B7eQSabc.js";
5
- import { c as A } from "./index.ChdIlujs.js";
5
+ import { d as A } from "./index.lHdwuJAx.js";
6
6
  import "../assets/layout-row.css";
7
7
  const I = Symbol("Layout size inject key"), D = {}, F = /* @__PURE__ */ $({
8
8
  ...D,
@@ -98,4 +98,4 @@ export {
98
98
  to as a,
99
99
  oo as l
100
100
  };
101
- //# sourceMappingURL=layout-row.rzhGrBQ3.js.map
101
+ //# sourceMappingURL=layout-row.DcyZ3DP3.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"layout-row.rzhGrBQ3.js","sources":["../../../vue2/src/components/layout/layout.keys.ts","../../../vue2/src/components/layout/layout.vue","../../../vue2/src/components/layout/layout.types.ts","../../../vue2/src/components/layout/components/layout-row/layout-row.vue"],"sourcesContent":["export const LAYOUT_SIZE_INJECTION_KEY = Symbol('Layout size inject key');\n","<template>\n <component :is=\"wrapperElement\" class=\"b-layout\" :class=\"conditionalClasses\">\n <slot />\n </component>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, provide, toRef } from 'vue';\n import { BentoLayoutProps } from './layout.types';\n import { LAYOUT_SIZE_INJECTION_KEY } from '@/components/layout/layout.keys';\n\n const props = withDefaults(defineProps<BentoLayoutProps>(), {\n size: 'full-width',\n variant: 'page',\n });\n\n provide(LAYOUT_SIZE_INJECTION_KEY, toRef(props, 'size'));\n\n const conditionalClasses = computed(() => ({\n 'b-layout--component': props.variant === 'component',\n }));\n\n const wrapperElement = props.variant === 'page' ? 'main' : 'div';\n</script>\n\n<script lang=\"ts\">\n /**\n * Layout is a basic scaffolding of a page that defines spacing, some functionality and responsive behaviour of its top level sections.\n *\n * @example\n * import { BentoLayout, BentoLayoutRow } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoLayout, BentoLayoutRow },\n * template: `\n * <bento-layout size=\"narrow\">\n * <bento-layout-row>\n * Row 1\n * </bento-layout-row>\n * <bento-layout-row>\n * Row 2\n * </bento-layout-row>\n * </bento-layout>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./layout.scss\" />\n","/**\n * @private\n */\nexport const BentoLayoutVariantOptions = ['page', 'component'] as const;\nexport const BentoLayoutSizeOptions = ['full-width', 'narrow', 'half-width'] as const;\nexport const BentoLayoutRowColumnLayoutOptions = ['3-9', '9-3', '4-8', '8-4', '6-6'] as const;\n\n// Public\nexport type BentoLayoutVariant = (typeof BentoLayoutVariantOptions)[number];\nexport type BentoLayoutSize = (typeof BentoLayoutSizeOptions)[number];\nexport type BentoLayoutRowColumnLayout = (typeof BentoLayoutRowColumnLayoutOptions)[number];\n\nexport interface BentoLayoutProps {\n /** Defines if the layout is used in a page or only a section */\n variant?: BentoLayoutVariant;\n /** Defines the size of the page */\n size?: BentoLayoutSize;\n}\n\nexport interface BentoLayoutRowProps {\n /** Sets the layout of the columns when multiple columns are used */\n columnsLayout?: BentoLayoutRowColumnLayout;\n}\n","<template>\n <bento-typography el=\"div\" rich-text class=\"b-layout-row\" :class=\"conditionalRowClass\">\n <div v-if=\"hasSlot('default')\">\n <slot />\n </div>\n <div v-else-if=\"hasSlot('col-1') && hasSlot('col-2')\" ref=\"row\" :class=\"conditionalRowWithColumnsClass\">\n <div ref=\"col1\" :class=\"conditionalColumnClass.col1\">\n <slot name=\"col-1\"></slot>\n </div>\n <div ref=\"col2\" :class=\"conditionalColumnClass.col2\">\n <slot name=\"col-2\"></slot>\n </div>\n </div>\n </bento-typography>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, inject, nextTick, onMounted, ref, Ref, useSlots, watch } from 'vue';\n import { BentoTypography } from '@/components/typography';\n import { useHasSlot } from '@/composables';\n import {\n BentoLayoutRowColumnLayoutOptions,\n type BentoLayoutRowProps,\n type BentoLayoutSize,\n } from '../../layout.types';\n import { useMediaQuery } from '@vueuse/core';\n\n import { LAYOUT_SIZE_INJECTION_KEY } from '@/components/layout/layout.keys';\n\n const props = withDefaults(defineProps<BentoLayoutRowProps>(), {\n columnsLayout: '6-6',\n });\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n const size = inject<Ref<BentoLayoutSize>>(LAYOUT_SIZE_INJECTION_KEY, ref('full-width'));\n\n const row = ref<HTMLElement>(null);\n const col1 = ref<HTMLElement>(null);\n const col2 = ref<HTMLElement>(null);\n\n const isFullWidth = computed(() => size.value === 'full-width');\n const isValidColumnLayout = computed(() => BentoLayoutRowColumnLayoutOptions.includes(props.columnsLayout));\n\n const conditionalRowClass = computed(() => `b-layout-row--${size.value}`);\n\n const conditionalRowWithColumnsClass = computed(() => ({\n 'b-layout-row__column-wrapper': isFullWidth.value,\n }));\n\n const conditionalColumnClass = computed(() => {\n const columns = isValidColumnLayout.value ? props.columnsLayout.split('-') : [6, 6];\n const getColumnModifier = index => (isFullWidth.value ? columns[index] : size.value);\n\n return {\n col1: `b-layout-row__column--${getColumnModifier(0)}`,\n col2: `b-layout-row__column--${getColumnModifier(1)}`,\n };\n });\n\n watch(\n useMediaQuery('(min-width: 768px)'),\n async isLargeScreen => {\n await nextTick();\n const areColumnsInTheRightOrder = row.value?.firstChild === col1.value;\n if (isLargeScreen && !areColumnsInTheRightOrder) {\n row.value?.prepend(col1.value);\n } else if (!isLargeScreen && (props.columnsLayout === '3-9' || props.columnsLayout === '4-8')) {\n row.value?.prepend(col2.value);\n }\n },\n { immediate: true }\n );\n\n onMounted(() => {\n if (!isFullWidth.value && (hasSlot('col-1') || hasSlot('col-2'))) {\n throw new Error(\n 'Column slots can only be used with the `full-width` size. Please check documentation for more info.'\n );\n }\n\n if (!isValidColumnLayout.value) {\n throw new Error(\n `${props.columnsLayout} is not a valid column layout. Please refer to the documentation for the list of available column layouts.`\n );\n }\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * Page row is subcomponent of Layout meant to be used to generate the row layout.\n *\n * @example\n * import { BentoLayout, BentoLayoutRow } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoLayout, BentoLayoutRow },\n * template: `\n * <bento-layout>\n * <bento-layout-row columns-layout=\"3-9\">\n * <template #col-1>Narrow 3-9</template>\n * <template #col-2>Wide 3-9</template>\n * </bento-layout-row>\n * <bento-layout-row>\n * <template #col-1>6-6</template>\n * <template #col-2>6-6</template>\n * </bento-layout-row>\n * </bento-layout>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./layout-row.scss\" />\n"],"names":["LAYOUT_SIZE_INJECTION_KEY","__default__$1","props","__props","provide","toRef","conditionalClasses","computed","wrapperElement","BentoLayoutRowColumnLayoutOptions","__default__","slots","useSlots","hasSlot","useHasSlot","size","inject","ref","row","col1","col2","isFullWidth","isValidColumnLayout","conditionalRowClass","conditionalRowWithColumnsClass","conditionalColumnClass","columns","getColumnModifier","index","watch","useMediaQuery","isLargeScreen","nextTick","areColumnsInTheRightOrder","_a","_b","_c","onMounted"],"mappings":";;;;;;AAAa,MAAAA,IAAA,OAAA,wBAAA,GC8CTC,IAAA,CAAA;;;;;;;;AAnCA,UAAAC,IAAAC;AAKA,IAAAC,EAAAJ,GAAAK,EAAAH,GAAA,MAAA,CAAA;AAEA,UAAAI,IAAAC,EAAA,OAAA;AAAA,MAA2C,uBAAAL,EAAA,YAAA;AAAA,IACE,EAAA,GAG7CM,IAAAN,EAAA,YAAA,SAAA,SAAA;;;;;;;;;;mECjBGO,IAAA,CAAA,OAAA,OAAA,OAAA,OAAA,KAAA,mBC2GHC,IAAA,CAAA;;;;;;;AAnFA,UAAAR,IAAAC,GAIAQ,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GACAI,IAAAC,EAAAhB,GAAAiB,EAAA,YAAA,CAAA,GAEAC,IAAAD,EAAA,IAAA,GACAE,IAAAF,EAAA,IAAA,GACAG,IAAAH,EAAA,IAAA,GAEAI,IAAAd,EAAA,MAAAQ,EAAA,UAAA,YAAA,GACAO,IAAAf,EAAA,MAAAE,EAAA,SAAAP,EAAA,aAAA,CAAA,GAEAqB,IAAAhB,EAAA,MAAA,iBAAAQ,EAAA,KAAA,EAAA,GAEAS,IAAAjB,EAAA,OAAA;AAAA,MAAuD,gCAAAc,EAAA;AAAA,IACP,EAAA,GAGhDI,IAAAlB,EAAA,MAAA;AACI,YAAAmB,IAAAJ,EAAA,QAAApB,EAAA,cAAA,MAAA,GAAA,IAAA,CAAA,GAAA,CAAA,GACAyB,IAAA,CAAAC,MAAAP,EAAA,QAAAK,EAAAE,CAAA,IAAAb,EAAA;AAEA,aAAA;AAAA,QAAO,MAAA,yBAAAY,EAAA,CAAA,CAAA;AAAA,QACgD,MAAA,yBAAAA,EAAA,CAAA,CAAA;AAAA,MACA;AAAA,IACvD,CAAA;AAGJ,WAAAE;AAAA,MAAAC,EAAA,oBAAA;AAAA,MACsC,OAAAC,MAAA;;AAE9B,cAAAC,EAAA;AACA,cAAAC,MAAAC,IAAAhB,EAAA,UAAA,gBAAAgB,EAAA,gBAAAf,EAAA;AACA,QAAAY,KAAA,CAAAE,KACIE,IAAAjB,EAAA,UAAA,QAAAiB,EAAA,QAAAhB,EAAA,SAA6B,CAAAY,MAAA7B,EAAA,kBAAA,SAAAA,EAAA,kBAAA,YAE7BkC,IAAAlB,EAAA,UAAA,QAAAkB,EAAA,QAAAhB,EAAA;AAAA,MACJ;AAAA,MACJ,EAAA,WAAA,GAAA;AAAA,IACkB,GAGtBiB,EAAA,MAAA;AACI,UAAA,CAAAhB,EAAA,UAAAR,EAAA,OAAA,KAAAA,EAAA,OAAA;AACI,cAAA,IAAA;AAAA,UAAU;AAAA,QACN;AAIR,UAAA,CAAAS,EAAA;AACI,cAAA,IAAA;AAAA,UAAU,GAAApB,EAAA,aAAA;AAAA,QACgB;AAAA,IAE9B,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"layout-row.DcyZ3DP3.js","sources":["../../../vue2/src/components/layout/layout.keys.ts","../../../vue2/src/components/layout/layout.vue","../../../vue2/src/components/layout/layout.types.ts","../../../vue2/src/components/layout/components/layout-row/layout-row.vue"],"sourcesContent":["export const LAYOUT_SIZE_INJECTION_KEY = Symbol('Layout size inject key');\n","<template>\n <component :is=\"wrapperElement\" class=\"b-layout\" :class=\"conditionalClasses\">\n <slot />\n </component>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, provide, toRef } from 'vue';\n import { BentoLayoutProps } from './layout.types';\n import { LAYOUT_SIZE_INJECTION_KEY } from '@/components/layout/layout.keys';\n\n const props = withDefaults(defineProps<BentoLayoutProps>(), {\n size: 'full-width',\n variant: 'page',\n });\n\n provide(LAYOUT_SIZE_INJECTION_KEY, toRef(props, 'size'));\n\n const conditionalClasses = computed(() => ({\n 'b-layout--component': props.variant === 'component',\n }));\n\n const wrapperElement = props.variant === 'page' ? 'main' : 'div';\n</script>\n\n<script lang=\"ts\">\n /**\n * Layout is a basic scaffolding of a page that defines spacing, some functionality and responsive behaviour of its top level sections.\n *\n * @example\n * import { BentoLayout, BentoLayoutRow } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoLayout, BentoLayoutRow },\n * template: `\n * <bento-layout size=\"narrow\">\n * <bento-layout-row>\n * Row 1\n * </bento-layout-row>\n * <bento-layout-row>\n * Row 2\n * </bento-layout-row>\n * </bento-layout>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./layout.scss\" />\n","/**\n * @private\n */\nexport const BentoLayoutVariantOptions = ['page', 'component'] as const;\nexport const BentoLayoutSizeOptions = ['full-width', 'narrow', 'half-width'] as const;\nexport const BentoLayoutRowColumnLayoutOptions = ['3-9', '9-3', '4-8', '8-4', '6-6'] as const;\n\n// Public\nexport type BentoLayoutVariant = (typeof BentoLayoutVariantOptions)[number];\nexport type BentoLayoutSize = (typeof BentoLayoutSizeOptions)[number];\nexport type BentoLayoutRowColumnLayout = (typeof BentoLayoutRowColumnLayoutOptions)[number];\n\nexport interface BentoLayoutProps {\n /** Defines if the layout is used in a page or only a section */\n variant?: BentoLayoutVariant;\n /** Defines the size of the page */\n size?: BentoLayoutSize;\n}\n\nexport interface BentoLayoutRowProps {\n /** Sets the layout of the columns when multiple columns are used */\n columnsLayout?: BentoLayoutRowColumnLayout;\n}\n","<template>\n <bento-typography el=\"div\" rich-text class=\"b-layout-row\" :class=\"conditionalRowClass\">\n <div v-if=\"hasSlot('default')\">\n <slot />\n </div>\n <div v-else-if=\"hasSlot('col-1') && hasSlot('col-2')\" ref=\"row\" :class=\"conditionalRowWithColumnsClass\">\n <div ref=\"col1\" :class=\"conditionalColumnClass.col1\">\n <slot name=\"col-1\"></slot>\n </div>\n <div ref=\"col2\" :class=\"conditionalColumnClass.col2\">\n <slot name=\"col-2\"></slot>\n </div>\n </div>\n </bento-typography>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, inject, nextTick, onMounted, ref, Ref, useSlots, watch } from 'vue';\n import { BentoTypography } from '@/components/typography';\n import { useHasSlot } from '@/composables';\n import {\n BentoLayoutRowColumnLayoutOptions,\n type BentoLayoutRowProps,\n type BentoLayoutSize,\n } from '../../layout.types';\n import { useMediaQuery } from '@vueuse/core';\n\n import { LAYOUT_SIZE_INJECTION_KEY } from '@/components/layout/layout.keys';\n\n const props = withDefaults(defineProps<BentoLayoutRowProps>(), {\n columnsLayout: '6-6',\n });\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n const size = inject<Ref<BentoLayoutSize>>(LAYOUT_SIZE_INJECTION_KEY, ref('full-width'));\n\n const row = ref<HTMLElement>(null);\n const col1 = ref<HTMLElement>(null);\n const col2 = ref<HTMLElement>(null);\n\n const isFullWidth = computed(() => size.value === 'full-width');\n const isValidColumnLayout = computed(() => BentoLayoutRowColumnLayoutOptions.includes(props.columnsLayout));\n\n const conditionalRowClass = computed(() => `b-layout-row--${size.value}`);\n\n const conditionalRowWithColumnsClass = computed(() => ({\n 'b-layout-row__column-wrapper': isFullWidth.value,\n }));\n\n const conditionalColumnClass = computed(() => {\n const columns = isValidColumnLayout.value ? props.columnsLayout.split('-') : [6, 6];\n const getColumnModifier = index => (isFullWidth.value ? columns[index] : size.value);\n\n return {\n col1: `b-layout-row__column--${getColumnModifier(0)}`,\n col2: `b-layout-row__column--${getColumnModifier(1)}`,\n };\n });\n\n watch(\n useMediaQuery('(min-width: 768px)'),\n async isLargeScreen => {\n await nextTick();\n const areColumnsInTheRightOrder = row.value?.firstChild === col1.value;\n if (isLargeScreen && !areColumnsInTheRightOrder) {\n row.value?.prepend(col1.value);\n } else if (!isLargeScreen && (props.columnsLayout === '3-9' || props.columnsLayout === '4-8')) {\n row.value?.prepend(col2.value);\n }\n },\n { immediate: true }\n );\n\n onMounted(() => {\n if (!isFullWidth.value && (hasSlot('col-1') || hasSlot('col-2'))) {\n throw new Error(\n 'Column slots can only be used with the `full-width` size. Please check documentation for more info.'\n );\n }\n\n if (!isValidColumnLayout.value) {\n throw new Error(\n `${props.columnsLayout} is not a valid column layout. Please refer to the documentation for the list of available column layouts.`\n );\n }\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * Page row is subcomponent of Layout meant to be used to generate the row layout.\n *\n * @example\n * import { BentoLayout, BentoLayoutRow } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoLayout, BentoLayoutRow },\n * template: `\n * <bento-layout>\n * <bento-layout-row columns-layout=\"3-9\">\n * <template #col-1>Narrow 3-9</template>\n * <template #col-2>Wide 3-9</template>\n * </bento-layout-row>\n * <bento-layout-row>\n * <template #col-1>6-6</template>\n * <template #col-2>6-6</template>\n * </bento-layout-row>\n * </bento-layout>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./layout-row.scss\" />\n"],"names":["LAYOUT_SIZE_INJECTION_KEY","__default__$1","props","__props","provide","toRef","conditionalClasses","computed","wrapperElement","BentoLayoutRowColumnLayoutOptions","__default__","slots","useSlots","hasSlot","useHasSlot","size","inject","ref","row","col1","col2","isFullWidth","isValidColumnLayout","conditionalRowClass","conditionalRowWithColumnsClass","conditionalColumnClass","columns","getColumnModifier","index","watch","useMediaQuery","isLargeScreen","nextTick","areColumnsInTheRightOrder","_a","_b","_c","onMounted"],"mappings":";;;;;;AAAa,MAAAA,IAAA,OAAA,wBAAA,GC8CTC,IAAA,CAAA;;;;;;;;AAnCA,UAAAC,IAAAC;AAKA,IAAAC,EAAAJ,GAAAK,EAAAH,GAAA,MAAA,CAAA;AAEA,UAAAI,IAAAC,EAAA,OAAA;AAAA,MAA2C,uBAAAL,EAAA,YAAA;AAAA,IACE,EAAA,GAG7CM,IAAAN,EAAA,YAAA,SAAA,SAAA;;;;;;;;;;mECjBGO,IAAA,CAAA,OAAA,OAAA,OAAA,OAAA,KAAA,mBC2GHC,IAAA,CAAA;;;;;;;AAnFA,UAAAR,IAAAC,GAIAQ,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GACAI,IAAAC,EAAAhB,GAAAiB,EAAA,YAAA,CAAA,GAEAC,IAAAD,EAAA,IAAA,GACAE,IAAAF,EAAA,IAAA,GACAG,IAAAH,EAAA,IAAA,GAEAI,IAAAd,EAAA,MAAAQ,EAAA,UAAA,YAAA,GACAO,IAAAf,EAAA,MAAAE,EAAA,SAAAP,EAAA,aAAA,CAAA,GAEAqB,IAAAhB,EAAA,MAAA,iBAAAQ,EAAA,KAAA,EAAA,GAEAS,IAAAjB,EAAA,OAAA;AAAA,MAAuD,gCAAAc,EAAA;AAAA,IACP,EAAA,GAGhDI,IAAAlB,EAAA,MAAA;AACI,YAAAmB,IAAAJ,EAAA,QAAApB,EAAA,cAAA,MAAA,GAAA,IAAA,CAAA,GAAA,CAAA,GACAyB,IAAA,CAAAC,MAAAP,EAAA,QAAAK,EAAAE,CAAA,IAAAb,EAAA;AAEA,aAAA;AAAA,QAAO,MAAA,yBAAAY,EAAA,CAAA,CAAA;AAAA,QACgD,MAAA,yBAAAA,EAAA,CAAA,CAAA;AAAA,MACA;AAAA,IACvD,CAAA;AAGJ,WAAAE;AAAA,MAAAC,EAAA,oBAAA;AAAA,MACsC,OAAAC,MAAA;;AAE9B,cAAAC,EAAA;AACA,cAAAC,MAAAC,IAAAhB,EAAA,UAAA,gBAAAgB,EAAA,gBAAAf,EAAA;AACA,QAAAY,KAAA,CAAAE,KACIE,IAAAjB,EAAA,UAAA,QAAAiB,EAAA,QAAAhB,EAAA,SAA6B,CAAAY,MAAA7B,EAAA,kBAAA,SAAAA,EAAA,kBAAA,YAE7BkC,IAAAlB,EAAA,UAAA,QAAAkB,EAAA,QAAAhB,EAAA;AAAA,MACJ;AAAA,MACJ,EAAA,WAAA,GAAA;AAAA,IACkB,GAGtBiB,EAAA,MAAA;AACI,UAAA,CAAAhB,EAAA,UAAAR,EAAA,OAAA,KAAAA,EAAA,OAAA;AACI,cAAA,IAAA;AAAA,UAAU;AAAA,QACN;AAIR,UAAA,CAAAS,EAAA;AACI,cAAA,IAAA;AAAA,UAAU,GAAApB,EAAA,aAAA;AAAA,QACgB;AAAA,IAE9B,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as p, computed as s, resolveComponent as o, openBlock as e, createElementBlock as i, createElementVNode as c, createVNode as l, createBlock as _, withCtx as m, createTextVNode as d, toDisplayString as b, createCommentVNode as g } from "vue";
2
- import { B as u } from "./tag.wfnhGWVG.js";
2
+ import { B as u } from "./tag.xvqrfTwk.js";
3
3
  import { B as f } from "./typography.DNzU41ah.js";
4
4
  import { _ as y } from "./_plugin-vue_export-helper.CHgC5LLL.js";
5
5
  import "../assets/listbox-option-tag.css";
@@ -52,4 +52,4 @@ const O = /* @__PURE__ */ y(h, [["render", x], ["__scopeId", "data-v-ca40f8d7"]]
52
52
  export {
53
53
  O as L
54
54
  };
55
- //# sourceMappingURL=listbox-option-tag.58u_cWFs.js.map
55
+ //# sourceMappingURL=listbox-option-tag.DU_NVK_z.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"listbox-option-tag.58u_cWFs.js","sources":["../../../vue2/src/components/internal/listbox/components/listbox-option-tag/listbox-option-tag.vue"],"sourcesContent":["<template>\n <span class=\"b-listbox-tag-option\">\n <span aria-hidden=\"true\">\n <bento-tag class=\"b-listbox-tag-option__tag\" :label=\"option.value.toString()\" :variant=\"variant\" />\n </span>\n <bento-typography v-if=\"option.label\" el=\"span\" class=\"b-listbox-tag-option__label\">\n {{ option.label }}\n </bento-typography>\n </span>\n</template>\n<script lang=\"ts\">\n import { computed, defineComponent, PropType } from 'vue';\n import type { BentoListboxOptionItem } from '@/types';\n import { BentoTag, BentoTagVariant } from '@/components/tag';\n import { BentoTypography } from '@/components/typography';\n\n /**\n * A Tag Dropdown option item used in the Dropdown and Filter components.\n */\n export default defineComponent({\n name: 'listbox-tag-option',\n components: {\n BentoTag,\n BentoTypography,\n },\n props: {\n /**\n * The option item that contains all the option item's data.\n * @type {BentoListboxOptionItem}\n */\n option: {\n type: Object as PropType<BentoListboxOptionItem>,\n required: true,\n },\n },\n setup(props) {\n const variant = computed(() => props.option.data as BentoTagVariant);\n\n return {\n // Values\n variant,\n };\n },\n });\n</script>\n<style lang=\"scss\" scoped src=\"./listbox-option-tag.scss\" />\n"],"names":["_sfc_main","defineComponent","BentoTag","BentoTypography","props","computed","createElementVNode","_hoisted_2","createVNode","_component_bento_tag","_ctx","option","createTextVNode","toDisplayString","createCommentVNode"],"mappings":";;;;;AAmBI,MAAAA,IAAAC,EAAA;AAAA,EAA+B,MAAA;AAAA,EACrB,YAAA;AAAA,IACM,UAAAC;AAAA,IACR,iBAAAC;AAAA,EACA;AAAA,EACJ,OAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IACO,QAAA;AAAA,MAKK,MAAA;AAAA,MACE,UAAA;AAAA,IACI;AAAA,EACd;AAAA,EACJ,MAAAC,GAAA;AAII,WAAA;AAAA;AAAA,MAAO,SAFPC,EAAA,MAAAD,EAAA,OAAA,IAAA;AAAA,IAII;AAAA,EACJ;AAER,CAAA;;;;IAxC2GE,EAAA,QAAAC,GAAA;AAAA,MAAvDC,EAAAC,GAAA;AAAA,QAA8B,OAAA;AAAA,QAAY,OAAAC,EAAA,OAAA,MAAA,SAAA;AAAA;MAElEC,GAAAA,MAAAA,GAAAA,CAAAA,SAAAA,SAAAA,CAAAA;AAAAA,IAAY,CAAA;AAAA;MAAW,KAAA;AAAA,MAAM,IAAA;AAAA,MAL7D,OAAA;AAAA,IAAA,GAAA;AAAA;QAAAC,EAAAC,EAAAH,EAAA,OAAA,KAAA,GAAA,CAAA;AAAA,MAAA,CAAA;AAAA,MAAA,GAAA;AAAA,IAAA,CAAA,KAAAI,EAAA,IAAA,EAAA;AAAA;;;"}
1
+ {"version":3,"file":"listbox-option-tag.DU_NVK_z.js","sources":["../../../vue2/src/components/internal/listbox/components/listbox-option-tag/listbox-option-tag.vue"],"sourcesContent":["<template>\n <span class=\"b-listbox-tag-option\">\n <span aria-hidden=\"true\">\n <bento-tag class=\"b-listbox-tag-option__tag\" :label=\"option.value.toString()\" :variant=\"variant\" />\n </span>\n <bento-typography v-if=\"option.label\" el=\"span\" class=\"b-listbox-tag-option__label\">\n {{ option.label }}\n </bento-typography>\n </span>\n</template>\n<script lang=\"ts\">\n import { computed, defineComponent, PropType } from 'vue';\n import type { BentoListboxOptionItem } from '@/types';\n import { BentoTag, BentoTagVariant } from '@/components/tag';\n import { BentoTypography } from '@/components/typography';\n\n /**\n * A Tag Dropdown option item used in the Dropdown and Filter components.\n */\n export default defineComponent({\n name: 'listbox-tag-option',\n components: {\n BentoTag,\n BentoTypography,\n },\n props: {\n /**\n * The option item that contains all the option item's data.\n * @type {BentoListboxOptionItem}\n */\n option: {\n type: Object as PropType<BentoListboxOptionItem>,\n required: true,\n },\n },\n setup(props) {\n const variant = computed(() => props.option.data as BentoTagVariant);\n\n return {\n // Values\n variant,\n };\n },\n });\n</script>\n<style lang=\"scss\" scoped src=\"./listbox-option-tag.scss\" />\n"],"names":["_sfc_main","defineComponent","BentoTag","BentoTypography","props","computed","createElementVNode","_hoisted_2","createVNode","_component_bento_tag","_ctx","option","createTextVNode","toDisplayString","createCommentVNode"],"mappings":";;;;;AAmBI,MAAAA,IAAAC,EAAA;AAAA,EAA+B,MAAA;AAAA,EACrB,YAAA;AAAA,IACM,UAAAC;AAAA,IACR,iBAAAC;AAAA,EACA;AAAA,EACJ,OAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IACO,QAAA;AAAA,MAKK,MAAA;AAAA,MACE,UAAA;AAAA,IACI;AAAA,EACd;AAAA,EACJ,MAAAC,GAAA;AAII,WAAA;AAAA;AAAA,MAAO,SAFPC,EAAA,MAAAD,EAAA,OAAA,IAAA;AAAA,IAII;AAAA,EACJ;AAER,CAAA;;;;IAxC2GE,EAAA,QAAAC,GAAA;AAAA,MAAvDC,EAAAC,GAAA;AAAA,QAA8B,OAAA;AAAA,QAAY,OAAAC,EAAA,OAAA,MAAA,SAAA;AAAA;MAElEC,GAAAA,MAAAA,GAAAA,CAAAA,SAAAA,SAAAA,CAAAA;AAAAA,IAAY,CAAA;AAAA;MAAW,KAAA;AAAA,MAAM,IAAA;AAAA,MAL7D,OAAA;AAAA,IAAA,GAAA;AAAA;QAAAC,EAAAC,EAAAH,EAAA,OAAA,KAAA,GAAA,CAAA;AAAA,MAAA,CAAA;AAAA,MAAA,GAAA;AAAA,IAAA,CAAA,KAAAI,EAAA,IAAA,EAAA;AAAA;;;"}
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as I, useSlots as k, computed as r, openBlock as o, createBlock as l, normalizeClass as L, withModifiers as A, createSlots as h, withCtx as c, renderSlot as u, unref as s, createElementVNode as N, createCommentVNode as B } from "vue";
2
- import { B as O } from "./loading-indicator.N_WV9Gwz.js";
2
+ import { B as F } from "./loading-indicator.N_WV9Gwz.js";
3
3
  import { B as i } from "./button.pwNCxwPu.js";
4
- import { C as T } from "./cross-circle-fill.DN5b3_eL.js";
5
- import { C as $ } from "./checkmark-circle-fill.ChV7Jy6r.js";
6
- import { u as D } from "./use-has-slot.B7eQSabc.js";
7
- import { u as F } from "./i18n.CPGoe9tN.js";
4
+ import { C as O } from "./cross-circle-fill.DN5b3_eL.js";
5
+ import { C as T } from "./checkmark-circle-fill.ClIf1E3H.js";
6
+ import { u as $ } from "./use-has-slot.B7eQSabc.js";
7
+ import { u as D } from "./i18n.CPGoe9tN.js";
8
8
  import { _ as G } from "./_plugin-vue_export-helper.CHgC5LLL.js";
9
9
  import "../assets/loading-button.css";
10
10
  var a = /* @__PURE__ */ ((t) => (t.START = "start", t.LOADING = "loading", t.SUCCESS = "success", t.FAIL = "fail", t))(a || {});
@@ -76,7 +76,7 @@ const f = {
76
76
  },
77
77
  emits: ["click"],
78
78
  setup(t, { emit: v }) {
79
- const e = t, m = v, p = k(), b = D(p), { t: d } = F({ messages: f }), C = r(() => ({
79
+ const e = t, m = v, p = k(), b = $(p), { t: d } = D({ messages: f }), C = r(() => ({
80
80
  [`b-loading-button--${e.variant}-${a.LOADING}`]: e.state === a.LOADING && !e.disabled,
81
81
  "b-loading-button--loading": e.state === a.LOADING && !e.disabled,
82
82
  [`b-loading-button--${e.variant}-${a.SUCCESS}`]: e.state === a.SUCCESS,
@@ -112,13 +112,13 @@ const f = {
112
112
  name: "iconLeft",
113
113
  fn: c(() => [
114
114
  N("span", E, [
115
- t.state === "fail" ? (o(), l(s(T), {
115
+ t.state === "fail" ? (o(), l(s(O), {
116
116
  key: 0,
117
117
  "svg-title": s(d)("failed")
118
- }, null, 8, ["svg-title"])) : t.state === "success" ? (o(), l(s($), {
118
+ }, null, 8, ["svg-title"])) : t.state === "success" ? (o(), l(s(T), {
119
119
  key: 1,
120
120
  "svg-title": s(d)("succeded")
121
- }, null, 8, ["svg-title"])) : t.state === "loading" ? (o(), l(s(O), {
121
+ }, null, 8, ["svg-title"])) : t.state === "loading" ? (o(), l(s(F), {
122
122
  key: 2,
123
123
  small: "",
124
124
  inverse: g.value
@@ -134,4 +134,4 @@ export {
134
134
  q as B,
135
135
  a
136
136
  };
137
- //# sourceMappingURL=loading-button.CHujR70I.js.map
137
+ //# sourceMappingURL=loading-button.CNWhVIPK.js.map