@adyen/bento-vue2 1.52.0 → 1.53.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 (203) hide show
  1. package/dist/@types/components.d.ts +2 -0
  2. package/dist/@types/index.d.ts +474 -75
  3. package/dist/action-bar.js +1 -1
  4. package/dist/assets/accordion-item.css +1 -1
  5. package/dist/assets/action-bar.css +1 -1
  6. package/dist/assets/base-modal.css +1 -1
  7. package/dist/assets/card.css +1 -1
  8. package/dist/assets/checkbox.css +1 -1
  9. package/dist/assets/dashed-underline.css +1 -1
  10. package/dist/assets/data-grid.css +1 -1
  11. package/dist/assets/dialog-page.css +1 -1
  12. package/dist/assets/dropdown.css +1 -1
  13. package/dist/assets/file-uploader.css +1 -1
  14. package/dist/assets/filter-bar.css +1 -1
  15. package/dist/assets/header-with-views.css +1 -0
  16. package/dist/assets/input-field-password.css +1 -1
  17. package/dist/assets/inspector.css +1 -1
  18. package/dist/assets/menu.css +1 -1
  19. package/dist/assets/modal-fullscreen.css +1 -1
  20. package/dist/assets/popover.css +1 -1
  21. package/dist/assets/sidepanel.css +1 -1
  22. package/dist/assets/summary-grid-item-custom.css +1 -1
  23. package/dist/assets/use-cached-selected-values.css +1 -1
  24. package/dist/checkbox.js +2 -2
  25. package/dist/chunks/{action-bar.DuJkjAt1.js → action-bar.Cuktzrp5.js} +4 -4
  26. package/dist/chunks/{action-bar.DuJkjAt1.js.map → action-bar.Cuktzrp5.js.map} +1 -1
  27. package/dist/chunks/{base-modal.CiTysydg.js → base-modal.DnaWOvaM.js} +3 -3
  28. package/dist/chunks/{base-modal.CiTysydg.js.map → base-modal.DnaWOvaM.js.map} +1 -1
  29. package/dist/chunks/bin.DuebwJYu.js +24 -0
  30. package/dist/chunks/bin.DuebwJYu.js.map +1 -0
  31. package/dist/chunks/{button-actions-with-menu.B9oXYIgo.js → button-actions-with-menu.twMFsb82.js} +4 -4
  32. package/dist/chunks/{button-actions-with-menu.B9oXYIgo.js.map → button-actions-with-menu.twMFsb82.js.map} +1 -1
  33. package/dist/chunks/{calendar.Bq67h02Z.js → calendar.CJToU_uI.js} +2 -2
  34. package/dist/chunks/{calendar.Bq67h02Z.js.map → calendar.CJToU_uI.js.map} +1 -1
  35. package/dist/chunks/{checkbox-group.CqSIn-lG.js → checkbox-group.DkM6n3JR.js} +4 -4
  36. package/dist/chunks/{checkbox-group.CqSIn-lG.js.map → checkbox-group.DkM6n3JR.js.map} +1 -1
  37. package/dist/chunks/checkbox.l7h6GYew.js +176 -0
  38. package/dist/chunks/checkbox.l7h6GYew.js.map +1 -0
  39. package/dist/chunks/{click-outside.DSszkIvs.js → click-outside.C1Ud8AA2.js} +2 -2
  40. package/dist/chunks/{click-outside.DSszkIvs.js.map → click-outside.C1Ud8AA2.js.map} +1 -1
  41. package/dist/chunks/{code-snippet.CW42FdpP.js → code-snippet.BsEe6nml.js} +5 -5
  42. package/dist/chunks/{code-snippet.CW42FdpP.js.map → code-snippet.BsEe6nml.js.map} +1 -1
  43. package/dist/chunks/{controls-group.D0_cJaFF.js → controls-group.vFyThDMU.js} +2 -2
  44. package/dist/chunks/{controls-group.D0_cJaFF.js.map → controls-group.vFyThDMU.js.map} +1 -1
  45. package/dist/chunks/{copy.2iD8aI5a.js → copy.DD_Yfyn_.js} +3 -3
  46. package/dist/chunks/{copy.2iD8aI5a.js.map → copy.DD_Yfyn_.js.map} +1 -1
  47. package/dist/chunks/{dashboard-section.Cmulh6WM.js → dashboard-section.z-Rnv5E-.js} +3 -3
  48. package/dist/chunks/{dashboard-section.Cmulh6WM.js.map → dashboard-section.z-Rnv5E-.js.map} +1 -1
  49. package/dist/chunks/{dashed-underline.eMF75SuT.js → dashed-underline.CfQuYKV9.js} +8 -8
  50. package/dist/chunks/{dashed-underline.eMF75SuT.js.map → dashed-underline.CfQuYKV9.js.map} +1 -1
  51. package/dist/chunks/{data-grid-template.CdHnPE1-.js → data-grid-template.73mazFER.js} +2 -2
  52. package/dist/chunks/{data-grid-template.CdHnPE1-.js.map → data-grid-template.73mazFER.js.map} +1 -1
  53. package/dist/chunks/{data-grid.DedjAz4_.js → data-grid.C_Xoz-GC.js} +28 -18
  54. package/dist/chunks/data-grid.C_Xoz-GC.js.map +1 -0
  55. package/dist/chunks/{date-picker.BdMr3Sn2.js → date-picker.bgk9aymW.js} +5 -5
  56. package/dist/chunks/{date-picker.BdMr3Sn2.js.map → date-picker.bgk9aymW.js.map} +1 -1
  57. package/dist/chunks/{date-range-picker.BHfvD0GK.js → date-range-picker.-s05jOQA.js} +8 -8
  58. package/dist/chunks/{date-range-picker.BHfvD0GK.js.map → date-range-picker.-s05jOQA.js.map} +1 -1
  59. package/dist/chunks/{directive.O3yEdalv.js → directive.Cbdox5VL.js} +2 -2
  60. package/dist/chunks/{directive.O3yEdalv.js.map → directive.Cbdox5VL.js.map} +1 -1
  61. package/dist/chunks/{dropdown-tag.CvZ1jckk.js → dropdown-tag.8qh8J-NE.js} +3 -3
  62. package/dist/chunks/{dropdown-tag.CvZ1jckk.js.map → dropdown-tag.8qh8J-NE.js.map} +1 -1
  63. package/dist/chunks/{dropdown.CcHoKbLz.js → dropdown.DzWXcJyF.js} +50 -42
  64. package/dist/chunks/dropdown.DzWXcJyF.js.map +1 -0
  65. package/dist/chunks/{error-message.B1-ekAMa.js → error-message.CzQf7YOD.js} +2 -2
  66. package/dist/chunks/{error-message.B1-ekAMa.js.map → error-message.CzQf7YOD.js.map} +1 -1
  67. package/dist/chunks/es6.BtaxuP0b.js.map +1 -1
  68. package/dist/chunks/{file-uploader.Dlfzh5QQ.js → file-uploader.CcZPr-jD.js} +327 -326
  69. package/dist/chunks/file-uploader.CcZPr-jD.js.map +1 -0
  70. package/dist/chunks/{filter-bar.CwqoJGiK.js → filter-bar.BdGtQC7p.js} +305 -304
  71. package/dist/chunks/filter-bar.BdGtQC7p.js.map +1 -0
  72. package/dist/chunks/{focus-trap.CWlKh48z.js → focus-trap.CIUzScHc.js} +2 -2
  73. package/dist/chunks/{focus-trap.CWlKh48z.js.map → focus-trap.CIUzScHc.js.map} +1 -1
  74. package/dist/chunks/header-with-views.ChEgH2tn.js +1536 -0
  75. package/dist/chunks/header-with-views.ChEgH2tn.js.map +1 -0
  76. package/dist/chunks/{header.BAKjEGmH.js → header.0hX8OYwM.js} +3 -3
  77. package/dist/chunks/{header.BAKjEGmH.js.map → header.0hX8OYwM.js.map} +1 -1
  78. package/dist/chunks/index.BCUiAdb6.js +387 -0
  79. package/dist/chunks/{index.-wO_BQCb.js.map → index.BCUiAdb6.js.map} +1 -1
  80. package/dist/chunks/{info-icon-with-popover.CxXWP4TR.js → info-icon-with-popover.w6MpKOWh.js} +2 -2
  81. package/dist/chunks/{info-icon-with-popover.CxXWP4TR.js.map → info-icon-with-popover.w6MpKOWh.js.map} +1 -1
  82. package/dist/chunks/{info-icon.D3neDWqH.js → info-icon.C1ReXurF.js} +3 -3
  83. package/dist/chunks/{info-icon.D3neDWqH.js.map → info-icon.C1ReXurF.js.map} +1 -1
  84. package/dist/chunks/input-field-password.CZn4kW8v.js +198 -0
  85. package/dist/chunks/input-field-password.CZn4kW8v.js.map +1 -0
  86. package/dist/chunks/{input-field-phone-number.TXnK0dch.js → input-field-phone-number.C8WTJ1W-.js} +3 -3
  87. package/dist/chunks/{input-field-phone-number.TXnK0dch.js.map → input-field-phone-number.C8WTJ1W-.js.map} +1 -1
  88. package/dist/chunks/{input-field.De4sp76g.js → input-field.tP3Eupoo.js} +3 -3
  89. package/dist/chunks/{input-field.De4sp76g.js.map → input-field.tP3Eupoo.js.map} +1 -1
  90. package/dist/chunks/{inspector.types.ClnPOYmb.js → inspector.types.A0b4jNO3.js} +3 -3
  91. package/dist/chunks/{inspector.types.ClnPOYmb.js.map → inspector.types.A0b4jNO3.js.map} +1 -1
  92. package/dist/chunks/{layout-row.dh2VyGoD.js → layout-row.BgBazwnM.js} +2 -2
  93. package/dist/chunks/{layout-row.dh2VyGoD.js.map → layout-row.BgBazwnM.js.map} +1 -1
  94. package/dist/chunks/{listbox-option-tag.xGQr3Su1.js → listbox-option-tag.T9cfTst7.js} +2 -2
  95. package/dist/chunks/{listbox-option-tag.xGQr3Su1.js.map → listbox-option-tag.T9cfTst7.js.map} +1 -1
  96. package/dist/chunks/{menu.li3Kg9Uq.js → menu.CY7ceslP.js} +84 -83
  97. package/dist/chunks/{menu.li3Kg9Uq.js.map → menu.CY7ceslP.js.map} +1 -1
  98. package/dist/chunks/{modal-fullscreen.C4eL63TC.js → modal-fullscreen.Dz5w250z.js} +2 -2
  99. package/dist/chunks/{modal-fullscreen.C4eL63TC.js.map → modal-fullscreen.Dz5w250z.js.map} +1 -1
  100. package/dist/chunks/{modal.BpDz0Dhc.js → modal.CnmRkXZM.js} +2 -2
  101. package/dist/chunks/{modal.BpDz0Dhc.js.map → modal.CnmRkXZM.js.map} +1 -1
  102. package/dist/chunks/{on-click-outside.MUWbmGDn.js → on-click-outside.D9aY9g8G.js} +3 -2
  103. package/dist/chunks/{on-click-outside.MUWbmGDn.js.map → on-click-outside.D9aY9g8G.js.map} +1 -1
  104. package/dist/chunks/{pagination.FuELftBG.js → pagination.CvGOUwd8.js} +2 -2
  105. package/dist/chunks/{pagination.FuELftBG.js.map → pagination.CvGOUwd8.js.map} +1 -1
  106. package/dist/chunks/{popover.Cb6utVhS.js → popover.BvsqsZQ1.js} +2 -2
  107. package/dist/chunks/{popover.Cb6utVhS.js.map → popover.BvsqsZQ1.js.map} +1 -1
  108. package/dist/chunks/{popper-container.CiEkF7eb.js → popper-container.LRQgzjRf.js} +2 -2
  109. package/dist/chunks/{popper-container.CiEkF7eb.js.map → popper-container.LRQgzjRf.js.map} +1 -1
  110. package/dist/chunks/{promo-banner.PnHud5Wi.js → promo-banner.DDnJwMDC.js} +2 -2
  111. package/dist/chunks/{promo-banner.PnHud5Wi.js.map → promo-banner.DDnJwMDC.js.map} +1 -1
  112. package/dist/chunks/{radio-group._8PsjPCZ.js → radio-group.BvswbJa8.js} +4 -4
  113. package/dist/chunks/{radio-group._8PsjPCZ.js.map → radio-group.BvswbJa8.js.map} +1 -1
  114. package/dist/chunks/{search-bar.CVY2e8_B.js → search-bar.kKLreEXo.js} +3 -3
  115. package/dist/chunks/{search-bar.CVY2e8_B.js.map → search-bar.kKLreEXo.js.map} +1 -1
  116. package/dist/chunks/{secondary-nav.LxcuTR16.js → secondary-nav.C6bfsK2p.js} +3 -3
  117. package/dist/chunks/{secondary-nav.LxcuTR16.js.map → secondary-nav.C6bfsK2p.js.map} +1 -1
  118. package/dist/chunks/{segmented-control.D69WXQGh.js → segmented-control.BywW3ont.js} +2 -2
  119. package/dist/chunks/{segmented-control.D69WXQGh.js.map → segmented-control.BywW3ont.js.map} +1 -1
  120. package/dist/chunks/{selection-card-group.MTKkCBeK.js → selection-card-group.Ca4G00h5.js} +11 -11
  121. package/dist/chunks/{selection-card-group.MTKkCBeK.js.map → selection-card-group.Ca4G00h5.js.map} +1 -1
  122. package/dist/chunks/{sidepanel.BStCbRqN.js → sidepanel.D4H3Vu0m.js} +3 -3
  123. package/dist/chunks/{sidepanel.BStCbRqN.js.map → sidepanel.D4H3Vu0m.js.map} +1 -1
  124. package/dist/chunks/{structured-list-item.CeosjL40.js → structured-list-item.Bv8reTz2.js} +4 -4
  125. package/dist/chunks/{structured-list-item.CeosjL40.js.map → structured-list-item.Bv8reTz2.js.map} +1 -1
  126. package/dist/chunks/{summary-grid-item-custom.CF_TS7oA.js → summary-grid-item-custom.Bbdie4EL.js} +188 -135
  127. package/dist/chunks/summary-grid-item-custom.Bbdie4EL.js.map +1 -0
  128. package/dist/chunks/{tag.OgtZ3-ql.js → tag.IyMxowGc.js} +2 -2
  129. package/dist/chunks/{tag.OgtZ3-ql.js.map → tag.IyMxowGc.js.map} +1 -1
  130. package/dist/chunks/{teleport.B5fwsT5y.js → teleport.BHfrns33.js} +2 -2
  131. package/dist/chunks/{teleport.B5fwsT5y.js.map → teleport.BHfrns33.js.map} +1 -1
  132. package/dist/chunks/{textarea.BEISPJua.js → textarea.B9HjT5LH.js} +2 -2
  133. package/dist/chunks/{textarea.BEISPJua.js.map → textarea.B9HjT5LH.js.map} +1 -1
  134. package/dist/chunks/{timeline-item.BeWMuM8A.js → timeline-item.BIwk0vqM.js} +4 -4
  135. package/dist/chunks/{timeline-item.BeWMuM8A.js.map → timeline-item.BIwk0vqM.js.map} +1 -1
  136. package/dist/chunks/{tooltip.RPURZd36.js → tooltip.DShIiBiY.js} +2 -2
  137. package/dist/chunks/{tooltip.RPURZd36.js.map → tooltip.DShIiBiY.js.map} +1 -1
  138. package/dist/chunks/{tutorial.Ba8PTa0x.js → tutorial.DDlXTjAO.js} +4 -4
  139. package/dist/chunks/{tutorial.Ba8PTa0x.js.map → tutorial.DDlXTjAO.js.map} +1 -1
  140. package/dist/chunks/{use-cached-selected-values.CxlYYUbd.js → use-cached-selected-values.LVldNial.js} +12 -8
  141. package/dist/chunks/{use-cached-selected-values.CxlYYUbd.js.map → use-cached-selected-values.LVldNial.js.map} +1 -1
  142. package/dist/click-outside.js +1 -1
  143. package/dist/code-snippet.js +1 -1
  144. package/dist/dashboard-template.js +1 -1
  145. package/dist/dashed-underline.js +2 -2
  146. package/dist/data-grid-template.js +1 -1
  147. package/dist/data-grid.js +1 -1
  148. package/dist/date-picker.js +2 -2
  149. package/dist/date-range-picker.js +2 -2
  150. package/dist/dropdown.js +3 -3
  151. package/dist/file-uploader.js +1 -1
  152. package/dist/filter-bar.js +1 -1
  153. package/dist/focus-trap.js +1 -1
  154. package/dist/header-with-views.js +5 -0
  155. package/dist/header-with-views.js.map +1 -0
  156. package/dist/header.js +1 -1
  157. package/dist/index.js +195 -193
  158. package/dist/index.js.map +1 -1
  159. package/dist/info-icon.js +1 -1
  160. package/dist/input-field-password.js +1 -1
  161. package/dist/input-field-phone-number.js +1 -1
  162. package/dist/input-field.js +1 -1
  163. package/dist/inspector.js +1 -1
  164. package/dist/internal.js +10 -10
  165. package/dist/layout.js +1 -1
  166. package/dist/menu.js +1 -1
  167. package/dist/modal-fullscreen.js +1 -1
  168. package/dist/modal.js +2 -2
  169. package/dist/pagination.js +1 -1
  170. package/dist/popover.js +1 -1
  171. package/dist/popper-container.js +1 -1
  172. package/dist/promo-banner.js +1 -1
  173. package/dist/radio-group.js +1 -1
  174. package/dist/search-bar.js +2 -2
  175. package/dist/secondary-nav.js +1 -1
  176. package/dist/segmented-control.js +1 -1
  177. package/dist/selection-card.js +1 -1
  178. package/dist/sidepanel.js +1 -1
  179. package/dist/structured-list.js +1 -1
  180. package/dist/styles/bento-dark.css +47 -1
  181. package/dist/styles/bento-light.css +47 -1
  182. package/dist/styles/bento.css +47 -1
  183. package/dist/styles/legacy.css +47 -1
  184. package/dist/styles/styleguide.css +47 -1
  185. package/dist/summary-grid.js +1 -1
  186. package/dist/tag.js +1 -1
  187. package/dist/textarea.js +1 -1
  188. package/dist/timeline.js +1 -1
  189. package/dist/tutorial.js +1 -1
  190. package/dist/use-form-v4.js +8300 -0
  191. package/dist/use-form-v4.js.map +1 -0
  192. package/dist/web-types.json +520 -5
  193. package/package.json +6 -5
  194. package/dist/chunks/checkbox.BeYtbfPv.js +0 -170
  195. package/dist/chunks/checkbox.BeYtbfPv.js.map +0 -1
  196. package/dist/chunks/data-grid.DedjAz4_.js.map +0 -1
  197. package/dist/chunks/dropdown.CcHoKbLz.js.map +0 -1
  198. package/dist/chunks/file-uploader.Dlfzh5QQ.js.map +0 -1
  199. package/dist/chunks/filter-bar.CwqoJGiK.js.map +0 -1
  200. package/dist/chunks/index.-wO_BQCb.js +0 -370
  201. package/dist/chunks/input-field-password.CO0lAgMh.js +0 -194
  202. package/dist/chunks/input-field-password.CO0lAgMh.js.map +0 -1
  203. package/dist/chunks/summary-grid-item-custom.CF_TS7oA.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as l, ref as s } from "vue";
2
- import { B as i } from "./popover.Cb6utVhS.js";
2
+ import { B as i } from "./popover.BvsqsZQ1.js";
3
3
  import { B as _ } from "./typography.J1v_SPG3.js";
4
4
  import { u as v } from "./i18n.BQkEbtPM.js";
5
5
  import { g as d } from "./generate-uid.NJ8tVoha.js";
@@ -68,4 +68,4 @@ const M = h.exports;
68
68
  export {
69
69
  M as I
70
70
  };
71
- //# sourceMappingURL=info-icon-with-popover.CxXWP4TR.js.map
71
+ //# sourceMappingURL=info-icon-with-popover.w6MpKOWh.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"info-icon-with-popover.CxXWP4TR.js","sources":["../../src/components/internal/info-icon-with-popover/info-icon-with-popover.vue"],"sourcesContent":["<template>\n <div\n ref=\"infoIconRef\"\n class=\"b-info-icon-with-popover\"\n tabindex=\"0\"\n data-testid=\"info-icon-with-popover\"\n @mouseenter=\"openPopover\"\n @mouseleave=\"closePopover\"\n @focus=\"infoIconOnFocus\"\n @focusout=\"infoIconOnFocusOut\"\n >\n <info-icon\n ref=\"targetElement\"\n class=\"b-info-icon-with-popover__svg\"\n :aria-expanded=\"isOpen\"\n :aria-describedby=\"popoverId\"\n :svg-title=\"t('moreInformation')\"\n />\n <bento-popover\n v-if=\"targetElement\"\n :open=\"isOpen\"\n :target-element=\"targetElement\"\n :position=\"popoverPosition\"\n role=\"tooltip\"\n fit-content\n disable-focus-trap\n >\n <bento-typography>\n <slot>\n <div v-if=\"popoverText\">\n {{ popoverText }}\n </div>\n </slot>\n </bento-typography>\n </bento-popover>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { ref } from 'vue';\n import { BentoPopover } from '@/components/popover';\n import { BentoTypography } from '@/components/typography';\n import { useI18n } from '@/utils/ts/i18n';\n import { generateUid } from '@/core/utils/ts';\n import InfoIcon from '@adyen/ui-assets-icons-16/vue/info';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const CLOSING_POPOVER_DELAY_MS = 200;\n\n defineProps({\n /**\n * Text showed in the popover on hover\n */\n popoverText: { type: String, default: null },\n\n /**\n * Position the popover should take if space is available\n */\n popoverPosition: {\n type: BentoPopover.props.position.type,\n default: BentoPopover.props.position.default,\n validator: BentoPopover.props.position.validator,\n },\n });\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const infoIconRef = ref<HTMLDivElement>();\n const targetElement = ref(null);\n const popoverId = generateUid('bento-info-icon-with-popover');\n const isOpen = ref();\n const closingTimeOutId = ref();\n\n const openPopover = () => {\n isOpen.value = true;\n if (closingTimeOutId.value) {\n clearTimeout(closingTimeOutId.value);\n }\n };\n const closePopover = () => {\n // We want to delay closing for a couple of seconds so\n // it doesn't flicker if a user hovers over the icon and then inside the popover.\n const timeOutId = setTimeout(() => {\n isOpen.value = false;\n }, CLOSING_POPOVER_DELAY_MS);\n closingTimeOutId.value = timeOutId;\n };\n\n const infoIconOnFocus = () => {\n openPopover();\n };\n\n /**\n * Only close popover on blur if the newly focus element is not a child of this element\n * @param e - the event that contains the newly focused element\n */\n const infoIconOnFocusOut = (e: FocusEvent) => {\n if (\n !infoIconRef.value ||\n !(e?.relatedTarget instanceof Element) ||\n !infoIconRef.value.contains(e.relatedTarget)\n ) {\n closePopover();\n }\n };\n</script>\n\n<script lang=\"ts\">\n /**\n * Internal component to be used whenever an info icon needs to be rendered with a popover instead of a tooltip.\n *\n * @example\n * import { BentoInfoIconWithPopover } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoInfoIconWithPopover },\n * template: `\n * <info-icon-with-popover popover-text=\"Content can be passed as a string like\" :popover-position=\"position\">\n * Content can also be rendered as a slot\n * </info-icon-with-popover>\n * `\n * }\n */\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./info-icon-with-popover.scss\" />\n"],"names":["__default__","messages","useI18n","infoIconRef","ref","targetElement","popoverId","generateUid","isOpen","closingTimeOutId","openPopover","closePopover","timeOutId","e"],"mappings":";;;;;;;;;;;;;;;;;;GA6HIA,IAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,EAAA;AAEf;;;;;;;;;;;;;;;;;;AA5DA,UAAA,EAAA,EAAA,IAAAC,EAAA,GAEAC,IAAAC,EAAA,GACAC,IAAAD,EAAA,IAAA,GACAE,IAAAC,EAAA,8BAAA,GACAC,IAAAJ,EAAA,GACAK,IAAAL,EAAA,GAEAM,IAAA,MAAA;AACI,MAAAF,EAAA,QAAA,IACAC,EAAA,SACI,aAAAA,EAAA,KAAA;AAAA,IACJ,GAEJE,IAAA,MAAA;AAGI,YAAAC,IAAA,WAAA,MAAA;AACI,QAAAJ,EAAA,QAAA;AAAA,MAAe,GAAA,GAAA;AAEnB,MAAAC,EAAA,QAAAG;AAAA,IAAyB;4LAG7B,MAAA;AACI,MAAAF,EAAA;AAAA,IAAY,uBAOhB,CAAAG,MAAA;AACI,OAAA,CAAAV,EAAA,SAAA,GAAAU,KAAA,gBAAAA,EAAA,0BAAA,YAAA,CAAAV,EAAA,MAAA,SAAAU,EAAA,aAAA,MAKIF,EAAA;AAAA,IACJ;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"info-icon-with-popover.w6MpKOWh.js","sources":["../../src/components/internal/info-icon-with-popover/info-icon-with-popover.vue"],"sourcesContent":["<template>\n <div\n ref=\"infoIconRef\"\n class=\"b-info-icon-with-popover\"\n tabindex=\"0\"\n data-testid=\"info-icon-with-popover\"\n @mouseenter=\"openPopover\"\n @mouseleave=\"closePopover\"\n @focus=\"infoIconOnFocus\"\n @focusout=\"infoIconOnFocusOut\"\n >\n <info-icon\n ref=\"targetElement\"\n class=\"b-info-icon-with-popover__svg\"\n :aria-expanded=\"isOpen\"\n :aria-describedby=\"popoverId\"\n :svg-title=\"t('moreInformation')\"\n />\n <bento-popover\n v-if=\"targetElement\"\n :open=\"isOpen\"\n :target-element=\"targetElement\"\n :position=\"popoverPosition\"\n role=\"tooltip\"\n fit-content\n disable-focus-trap\n >\n <bento-typography>\n <slot>\n <div v-if=\"popoverText\">\n {{ popoverText }}\n </div>\n </slot>\n </bento-typography>\n </bento-popover>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { ref } from 'vue';\n import { BentoPopover } from '@/components/popover';\n import { BentoTypography } from '@/components/typography';\n import { useI18n } from '@/utils/ts/i18n';\n import { generateUid } from '@/core/utils/ts';\n import InfoIcon from '@adyen/ui-assets-icons-16/vue/info';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const CLOSING_POPOVER_DELAY_MS = 200;\n\n defineProps({\n /**\n * Text showed in the popover on hover\n */\n popoverText: { type: String, default: null },\n\n /**\n * Position the popover should take if space is available\n */\n popoverPosition: {\n type: BentoPopover.props.position.type,\n default: BentoPopover.props.position.default,\n validator: BentoPopover.props.position.validator,\n },\n });\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const infoIconRef = ref<HTMLDivElement>();\n const targetElement = ref(null);\n const popoverId = generateUid('bento-info-icon-with-popover');\n const isOpen = ref();\n const closingTimeOutId = ref();\n\n const openPopover = () => {\n isOpen.value = true;\n if (closingTimeOutId.value) {\n clearTimeout(closingTimeOutId.value);\n }\n };\n const closePopover = () => {\n // We want to delay closing for a couple of seconds so\n // it doesn't flicker if a user hovers over the icon and then inside the popover.\n const timeOutId = setTimeout(() => {\n isOpen.value = false;\n }, CLOSING_POPOVER_DELAY_MS);\n closingTimeOutId.value = timeOutId;\n };\n\n const infoIconOnFocus = () => {\n openPopover();\n };\n\n /**\n * Only close popover on blur if the newly focus element is not a child of this element\n * @param e - the event that contains the newly focused element\n */\n const infoIconOnFocusOut = (e: FocusEvent) => {\n if (\n !infoIconRef.value ||\n !(e?.relatedTarget instanceof Element) ||\n !infoIconRef.value.contains(e.relatedTarget)\n ) {\n closePopover();\n }\n };\n</script>\n\n<script lang=\"ts\">\n /**\n * Internal component to be used whenever an info icon needs to be rendered with a popover instead of a tooltip.\n *\n * @example\n * import { BentoInfoIconWithPopover } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoInfoIconWithPopover },\n * template: `\n * <info-icon-with-popover popover-text=\"Content can be passed as a string like\" :popover-position=\"position\">\n * Content can also be rendered as a slot\n * </info-icon-with-popover>\n * `\n * }\n */\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./info-icon-with-popover.scss\" />\n"],"names":["__default__","messages","useI18n","infoIconRef","ref","targetElement","popoverId","generateUid","isOpen","closingTimeOutId","openPopover","closePopover","timeOutId","e"],"mappings":";;;;;;;;;;;;;;;;;;GA6HIA,IAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,EAAA;AAEf;;;;;;;;;;;;;;;;;;AA5DA,UAAA,EAAA,EAAA,IAAAC,EAAA,GAEAC,IAAAC,EAAA,GACAC,IAAAD,EAAA,IAAA,GACAE,IAAAC,EAAA,8BAAA,GACAC,IAAAJ,EAAA,GACAK,IAAAL,EAAA,GAEAM,IAAA,MAAA;AACI,MAAAF,EAAA,QAAA,IACAC,EAAA,SACI,aAAAA,EAAA,KAAA;AAAA,IACJ,GAEJE,IAAA,MAAA;AAGI,YAAAC,IAAA,WAAA,MAAA;AACI,QAAAJ,EAAA,QAAA;AAAA,MAAe,GAAA,GAAA;AAEnB,MAAAC,EAAA,QAAAG;AAAA,IAAyB;4LAG7B,MAAA;AACI,MAAAF,EAAA;AAAA,IAAY,uBAOhB,CAAAG,MAAA;AACI,OAAA,CAAAV,EAAA,SAAA,GAAAU,KAAA,gBAAAA,EAAA,0BAAA,YAAA,CAAAV,EAAA,MAAA,SAAAU,EAAA,aAAA,MAKIF,EAAA;AAAA,IACJ;;;;;;;;;;;;;;;;;"}
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as n } from "vue";
2
- import { d as i } from "./popper-container.CiEkF7eb.js";
2
+ import { d as i } from "./popper-container.LRQgzjRf.js";
3
3
  import { I as r } from "./info.4d_mJHvT.js";
4
- import { B as s } from "./tooltip.RPURZd36.js";
4
+ import { B as s } from "./tooltip.DShIiBiY.js";
5
5
  import { n as a } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
6
6
  import "../assets/info-icon.css";
7
7
  const p = n({
@@ -38,4 +38,4 @@ const x = m.exports;
38
38
  export {
39
39
  x as B
40
40
  };
41
- //# sourceMappingURL=info-icon.D3neDWqH.js.map
41
+ //# sourceMappingURL=info-icon.C1ReXurF.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"info-icon.D3neDWqH.js","sources":["../../src/components/info-icon/info-icon.vue"],"sourcesContent":["<template>\n <span v-bento-tooltip-directive:[tooltipPosition]=\"tooltipText\" :aria-label=\"tooltipText\" class=\"b-info-icon\">\n <info-icon :svg-title=\"tooltipText\" class=\"b-info-icon__svg\" />\n </span>\n</template>\n\n<script lang=\"ts\">\n import { defineComponent, PropType } from 'vue';\n import { PopperContainerPosition } from '@/components/popper-container';\n import { BentoTooltipDirective } from '@/directives';\n import InfoIcon from '@adyen/ui-assets-icons-16/vue/info';\n\n /**\n * @example\n * import { BentoInfoIcon } from '@adyen/adl-vue-components';\n *\n * export default {\n * components: { BentoInfoIcon },\n * template: `\n * <bento-info-icon tooltip-text=\"Text on hover\" />\n * `\n * }\n */\n export default defineComponent({\n name: 'bento-info-icon',\n components: { InfoIcon },\n directives: { BentoTooltipDirective },\n props: {\n /**\n * Text showed in the info-icon tooltip on hover\n */\n tooltipText: { type: String, required: true },\n\n /**\n * Position the tooltip should take if space is available. Defaults to 'auto'\n */\n tooltipPosition: {\n type: String as PropType<PopperContainerPosition | `${PopperContainerPosition}`>,\n default: PopperContainerPosition.AUTO,\n validator: (value: PopperContainerPosition) => Object.values(PopperContainerPosition).includes(value),\n },\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"@/core/components/info-icon/info-icon.scss\" />\n"],"names":["_sfc_main","defineComponent","InfoIcon","BentoTooltipDirective","PopperContainerPosition","value"],"mappings":";;;;;;AAuBA,MAAAA,IAAAC,EAAA;AAAA,EAAA,MAAA;AAAA,EACA,YAAA,EAAA,UAAAC,EAAA;AAAA,EACA,YAAA,EAAA,uBAAAC,EAAA;AAAA,EACA,OAAA;AAAA;AAAA;AAAA;AAAA,IACA,aAAA,EAAA,MAAA,QAAA,UAAA,GAAA;AAAA;AAAA;AAAA;AAAA,IAIA,iBAAA;AAAA,MAKA,MAAA;AAAA,MACA,SAAAC,EAAA;AAAA,MACA,WAAA,CAAAC,MAAA,OAAA,OAAAD,CAAA,EAAA,SAAAC,CAAA;AAAA,IACA;AAAA,EACA;AAEA,CAAA;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"info-icon.C1ReXurF.js","sources":["../../src/components/info-icon/info-icon.vue"],"sourcesContent":["<template>\n <span v-bento-tooltip-directive:[tooltipPosition]=\"tooltipText\" :aria-label=\"tooltipText\" class=\"b-info-icon\">\n <info-icon :svg-title=\"tooltipText\" class=\"b-info-icon__svg\" />\n </span>\n</template>\n\n<script lang=\"ts\">\n import { defineComponent, PropType } from 'vue';\n import { PopperContainerPosition } from '@/components/popper-container';\n import { BentoTooltipDirective } from '@/directives';\n import InfoIcon from '@adyen/ui-assets-icons-16/vue/info';\n\n /**\n * @example\n * import { BentoInfoIcon } from '@adyen/adl-vue-components';\n *\n * export default {\n * components: { BentoInfoIcon },\n * template: `\n * <bento-info-icon tooltip-text=\"Text on hover\" />\n * `\n * }\n */\n export default defineComponent({\n name: 'bento-info-icon',\n components: { InfoIcon },\n directives: { BentoTooltipDirective },\n props: {\n /**\n * Text showed in the info-icon tooltip on hover\n */\n tooltipText: { type: String, required: true },\n\n /**\n * Position the tooltip should take if space is available. Defaults to 'auto'\n */\n tooltipPosition: {\n type: String as PropType<PopperContainerPosition | `${PopperContainerPosition}`>,\n default: PopperContainerPosition.AUTO,\n validator: (value: PopperContainerPosition) => Object.values(PopperContainerPosition).includes(value),\n },\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"@/core/components/info-icon/info-icon.scss\" />\n"],"names":["_sfc_main","defineComponent","InfoIcon","BentoTooltipDirective","PopperContainerPosition","value"],"mappings":";;;;;;AAuBA,MAAAA,IAAAC,EAAA;AAAA,EAAA,MAAA;AAAA,EACA,YAAA,EAAA,UAAAC,EAAA;AAAA,EACA,YAAA,EAAA,uBAAAC,EAAA;AAAA,EACA,OAAA;AAAA;AAAA;AAAA;AAAA,IACA,aAAA,EAAA,MAAA,QAAA,UAAA,GAAA;AAAA;AAAA;AAAA;AAAA,IAIA,iBAAA;AAAA,MAKA,MAAA;AAAA,MACA,SAAAC,EAAA;AAAA,MACA,WAAA,CAAAC,MAAA,OAAA,OAAAD,CAAA,EAAA,SAAAC,CAAA;AAAA,IACA;AAAA,EACA;AAEA,CAAA;;;;;;;;;;;;;"}
@@ -0,0 +1,198 @@
1
+ import { defineComponent as X, useAttrs as J, ref as s, provide as j, computed as n, watch as q } from "vue";
2
+ import { B as K } from "./button.D-3uUhuG.js";
3
+ import { B as Y } from "./image.C2D2hKat.js";
4
+ import { B as G } from "./input-field.tP3Eupoo.js";
5
+ import { B as Q } from "./popover.BvsqsZQ1.js";
6
+ import { B as $ } from "./typography.J1v_SPG3.js";
7
+ import { C as aa } from "./checkmark-circle-fill.DZBl7CeY.js";
8
+ import { D as ea } from "./dot.CnkXzRn3.js";
9
+ import { S as ta, H as ia } from "./show.e4LEpZKG.js";
10
+ import { d as oa, w as sa } from "./index.BCUiAdb6.js";
11
+ import { u as la } from "./i18n.BQkEbtPM.js";
12
+ import { g as A } from "./generate-uid.NJ8tVoha.js";
13
+ import { b as na } from "./dropdown.DzWXcJyF.js";
14
+ import { T as ra } from "./tooltip.DShIiBiY.js";
15
+ import { n as da } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
16
+ import "../assets/input-field-password.css";
17
+ var f = /* @__PURE__ */ ((o) => (o.TEXT = "text", o.PASSWORD = "password", o))(f || {});
18
+ const ca = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='capslock'%3e%3cg%20id='Union'%3e%3cpath%20d='M13.75%205.63952L8%201.03952L2.25%205.63952V7.74999H4.75V11.75H11.25V7.74999H13.75V5.63952ZM6.25%206.24999H3.88809L8%202.96046L12.1119%206.24999H9.75V10.25H6.25V6.24999Z'%20fill='%2300112C'/%3e%3cpath%20d='M11.25%2014.75V13.25H4.75V14.75H11.25Z'%20fill='%2300112C'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
19
+ function m(o) {
20
+ return (o == null ? void 0 : o.toString()) ?? "";
21
+ }
22
+ function ua(o, t = 8) {
23
+ return m(o).length >= t;
24
+ }
25
+ function pa(o) {
26
+ return /[a-z]/.test(m(o));
27
+ }
28
+ function va(o) {
29
+ return /[A-Z]/.test(m(o));
30
+ }
31
+ function fa(o) {
32
+ return /\d/.test(m(o));
33
+ }
34
+ function ma(o) {
35
+ return /[^a-zA-Z0-9]/.test(m(o));
36
+ }
37
+ const _a = {
38
+ "en-US": {
39
+ capsLockEnabled: "Caps lock on",
40
+ hidePassword: "Hide",
41
+ showPassword: "Show",
42
+ validationChecked: "Checked",
43
+ validationMinLength: "8 characters",
44
+ validationRequireLowercase: "1 lowercase (a-z)",
45
+ validationRequireNumeric: "1 numerical (0-9)",
46
+ validationRequireSpecialCharacter: "1 special character",
47
+ validationRequireUppercase: "1 uppercase (A-Z)",
48
+ validationSuggestion: "Avoid using currency symbols or accented letters.",
49
+ validationTitle: "Password must contain at least:",
50
+ validationUnchecked: "Unchecked",
51
+ validationValid: "Input is valid"
52
+ },
53
+ "ja-JP": {
54
+ capsLockEnabled: "Caps lockオン",
55
+ hidePassword: "非表示",
56
+ showPassword: "表示",
57
+ validationMinLength: "8字",
58
+ validationRequireLowercase: "小文字1字 (a-z)",
59
+ validationRequireNumeric: "数字1字 (0-9)",
60
+ validationRequireSpecialCharacter: "特殊文字1字",
61
+ validationRequireUppercase: "大文字1字 (A-Z)",
62
+ validationSuggestion: "通貨記号やアクセント付き文字は避けてください。",
63
+ validationTitle: "パスワードには少なくとも次のものを含める必要があります :"
64
+ },
65
+ "pt-BR": {
66
+ capsLockEnabled: "Caps lock ativado",
67
+ hidePassword: "Ocultar",
68
+ showPassword: "Exibir",
69
+ validationMinLength: "8 caracteres",
70
+ validationRequireLowercase: "1 minúscula (a-z)",
71
+ validationRequireNumeric: "1 numérico (0-9)",
72
+ validationRequireSpecialCharacter: "1 caractere especial",
73
+ validationRequireUppercase: "1 maiúscula (A-Z)",
74
+ validationSuggestion: "Evite símbolos de moeda ou letras acentuadas.",
75
+ validationTitle: "A senha deve conter pelo menos:"
76
+ }
77
+ }, ha = {
78
+ i18n: { messages: _a },
79
+ name: "bento-input-field-password"
80
+ }, ga = /* @__PURE__ */ X({
81
+ ...ha,
82
+ props: {
83
+ condensed: { default: !1 },
84
+ disabled: { default: !1 },
85
+ disableValidation: { type: Boolean, default: !1 },
86
+ errorMessage: { default: null },
87
+ placeholder: { default: "" },
88
+ readonly: { default: !1 },
89
+ value: { default: void 0 },
90
+ label: { default: null },
91
+ validation: { default: void 0 },
92
+ withHint: { type: Boolean, default: !0 }
93
+ },
94
+ emits: ["input:valid", "input"],
95
+ setup(o, { emit: t }) {
96
+ const e = o, a = 500, _ = 2e3, c = 2e3, { t: l } = la(), L = J(), v = s(f.PASSWORD), u = s(e.value), I = s(!1), g = s(!1), h = s([]), r = s(null), p = s(!1), T = s(null), R = s(null), F = s(null), w = s(!1);
97
+ j(na, "bento-input-field-password");
98
+ const { focused: P } = oa(T), H = A("validationListId"), V = A("validationPopoverId"), E = n(() => v.value === f.TEXT), B = n(() => {
99
+ const i = g.value && C.value, d = e.disableValidation && e.errorMessage;
100
+ return i || d ? e.errorMessage : "";
101
+ }), D = n(
102
+ () => h.value.map(
103
+ (i) => i ? "b-input-field-password__validation-list--valid" : "b-input-field-password__validation-list--invalid"
104
+ )
105
+ ), U = n(
106
+ () => r.value ? "b-input-field-password__input-tooltip--timed" : ""
107
+ ), O = n(() => ({
108
+ ariaHidden: !1,
109
+ condensed: e.condensed,
110
+ disabled: e.disabled,
111
+ errorMessage: B.value,
112
+ placeholder: e.placeholder,
113
+ readonly: e.readonly,
114
+ type: v.value,
115
+ value: u.value,
116
+ "aria-haspopup": k.value ? "dialog" : !1,
117
+ "aria-describedby": k.value ? V : "",
118
+ ...L
119
+ })), b = n(
120
+ () => e.validation === void 0 ? {
121
+ title: l("validationTitle"),
122
+ suggestion: l("validationSuggestion"),
123
+ list: [
124
+ { label: l("validationMinLength"), validate: ua },
125
+ { label: l("validationRequireLowercase"), validate: pa },
126
+ { label: l("validationRequireUppercase"), validate: va },
127
+ { label: l("validationRequireNumeric"), validate: fa },
128
+ { label: l("validationRequireSpecialCharacter"), validate: ma }
129
+ ]
130
+ } : e.validation
131
+ ), C = n(() => h.value.some((i) => !i)), k = n(
132
+ () => {
133
+ var i, d;
134
+ return R.value && ((d = (i = b.value) == null ? void 0 : i.list) == null ? void 0 : d.length) > 0;
135
+ }
136
+ ), N = (i) => {
137
+ typeof i.getModifierState == "function" && (w.value = i.getModifierState("CapsLock"));
138
+ }, x = () => {
139
+ E.value ? v.value = f.PASSWORD : v.value = f.TEXT;
140
+ }, Z = (i) => {
141
+ e.disabled || (u.value = i, t("input", u.value));
142
+ }, y = (i) => {
143
+ var d, S;
144
+ h.value = ((S = (d = b.value) == null ? void 0 : d.list) == null ? void 0 : S.map(
145
+ (M) => M.validate(i, M.additionalArgs)
146
+ )) ?? [];
147
+ }, z = () => {
148
+ p.value = !1, r.value = null;
149
+ }, W = () => {
150
+ p.value = !0;
151
+ };
152
+ return q(P, (i) => {
153
+ i || (g.value = !0), e.disableValidation || (e.withHint && (I.value = i), y(u.value));
154
+ }), q(w, (i) => {
155
+ i ? (p.value = !0, r.value = setTimeout(() => {
156
+ r.value = null, p.value = !1;
157
+ }, c)) : (clearTimeout(r.value), r.value = null, p.value = !1);
158
+ }), sa(
159
+ u,
160
+ (i) => {
161
+ y(i), C.value || t("input:valid");
162
+ },
163
+ // wait for 0.5s before checking validity OR 2s of continuous typing
164
+ { debounce: a, maxWait: _ }
165
+ ), { __sfc: !0, DEBOUNCE_DURATION: a, DEBOUNCE_MAX_WAIT: _, TOOLTIP_TIMEOUT: c, t: l, props: e, emit: t, attrs: L, inputType: v, inputValue: u, isHintDisplayed: I, isTouched: g, passwordValidity: h, capsLockTooltipTimeoutID: r, isTooltipDisplayed: p, inputFieldPasswordRef: T, inputFieldPasswordInputRef: R, inputFieldPasswordCapsLockIconRef: F, isCapsLockOn: w, focused: P, validationListId: H, validationPopoverId: V, isPasswordReadable: E, computedErrorMessage: B, passwordValidityConditionalClass: D, tooltipConditionalClass: U, inputFieldArgs: O, computedValidations: b, hasErrors: C, hasValidations: k, checkCapsLock: N, toggleInputType: x, onInput: Z, checkValidity: y, handleCapsLockMouseLeave: z, handleCapsLockMouseEnter: W, BentoButton: K, BentoImage: Y, BentoInputField: G, BentoPopover: Q, BentoTypography: $, Tooltip: ra, CheckmarkCircleFillIcon: aa, DotIcon: ea, HideIcon: ia, ShowIcon: ta, CapsLockIcon: ca };
166
+ }
167
+ });
168
+ var wa = function() {
169
+ var t = this, e = t._self._c, a = t._self._setupProxy;
170
+ return e("div", { ref: "inputFieldPasswordRef" }, [e(a.BentoInputField, t._b({ ref: "inputFieldPasswordInputRef", staticClass: "b-input-field-password__input", attrs: { spellcheck: "false" }, on: { input: a.onInput, keydown: a.checkCapsLock, keyup: a.checkCapsLock }, scopedSlots: t._u([{ key: "default", fn: function() {
171
+ return [t._v(t._s(t.label))];
172
+ }, proxy: !0 }, a.isCapsLockOn ? { key: "iconBefore", fn: function() {
173
+ return [e("div", { staticClass: "b-input-field-password__caps-lock-indicator", on: { mouseenter: a.handleCapsLockMouseEnter, mouseleave: a.handleCapsLockMouseLeave } }, [e(a.BentoImage, { ref: "inputFieldPasswordCapsLockIconRef", attrs: { src: a.CapsLockIcon, alt: a.t("capsLockEnabled") } })], 1), a.inputFieldPasswordCapsLockIconRef ? e(a.Tooltip, { class: a.tooltipConditionalClass, attrs: { content: a.t("capsLockEnabled"), "disabled-focus-trap": !0, "fallback-position": ["top", "bottom"], "is-shown": a.isTooltipDisplayed, "target-element": a.inputFieldPasswordCapsLockIconRef } }) : t._e()];
174
+ }, proxy: !0 } : null, t.disabled ? null : { key: "iconAfter", fn: function() {
175
+ return [e(a.BentoButton, { attrs: { variant: "tertiary" }, on: { click: a.toggleInputType }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
176
+ return [a.isPasswordReadable ? t._e() : e(a.ShowIcon, { attrs: { "svg-title": a.t("showPassword") } }), a.isPasswordReadable ? e(a.HideIcon, { attrs: { "svg-title": a.t("hidePassword") } }) : t._e()];
177
+ }, proxy: !0 }], null, !1, 956294632) })];
178
+ }, proxy: !0 }], null, !0) }, "bento-input-field", a.inputFieldArgs, !1)), a.hasValidations ? e(a.BentoPopover, { attrs: { open: a.isHintDisplayed, "target-element": a.inputFieldPasswordInputRef, "disable-focus-trap": !0, "aria-label": a.computedValidations.title, "aria-describedby": a.validationListId, position: "right-start" } }, [e("div", { attrs: { id: a.validationPopoverId } }, [a.computedValidations.title ? e(a.BentoTypography, { staticClass: "b-input-field-password__validation-title" }, [t._v(" " + t._s(a.computedValidations.title) + " ")]) : t._e(), a.hasErrors ? t._e() : e("p", { staticClass: "b-input-field-password__validation-status--valid", attrs: { role: "alert" } }, [t._v(" " + t._s(a.t("validationValid")) + " ")]), e("ul", { staticClass: "b-input-field-password__validation-list", attrs: { id: a.validationListId } }, t._l(a.computedValidations.list, function(_, c) {
179
+ return e("li", { key: c, class: a.passwordValidityConditionalClass[c], attrs: { "aria-live": "polite", "aria-atomic": "true" } }, [e("span", { staticClass: "b-input-field-password__validation-list-icon" }, [a.passwordValidity[c] ? e(a.CheckmarkCircleFillIcon, { attrs: { "svg-title": a.t("validationChecked") } }) : e(a.DotIcon, { attrs: { "svg-title": a.t("validationUnchecked") } })], 1), e(a.BentoTypography, { staticClass: "b-input-field-password__validation-list-text", attrs: { el: "span" } }, [t._v(" " + t._s(_.label) + " ")])], 1);
180
+ }), 0), a.computedValidations.suggestion ? e(a.BentoTypography, { staticClass: "b-input-field-password__validation-suggestion" }, [t._v(" " + t._s(a.computedValidations.suggestion) + " ")]) : t._e()], 1)]) : t._e()], 1);
181
+ }, ba = [], Ca = /* @__PURE__ */ da(
182
+ ga,
183
+ wa,
184
+ ba,
185
+ !1,
186
+ null,
187
+ "e06b79ff"
188
+ );
189
+ const Ha = Ca.exports;
190
+ export {
191
+ va as a,
192
+ fa as b,
193
+ ma as c,
194
+ Ha as i,
195
+ ua as m,
196
+ pa as r
197
+ };
198
+ //# sourceMappingURL=input-field-password.CZn4kW8v.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input-field-password.CZn4kW8v.js","sources":["../../src/components/input-field-password/input-field-password.types.ts","../../src/components/input-field-password/assets/capslock.svg","../../src/components/input-field-password/utilities/input-field-password.validation.ts","../../src/components/input-field-password/input-field-password.vue"],"sourcesContent":["import type { BentoInputFieldProps, BentoInputFieldValue } from '@/components/input-field/input-field.types';\n\n/**\n * Public\n */\n\nexport interface BentoInputFieldPasswordValidationListItem {\n label: string;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n validate: (value: BentoInputFieldValue, ...args: any[]) => boolean;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n additionalArgs?: any[];\n}\n\nexport interface BentoInputFieldPasswordValidation {\n title?: string;\n suggestion?: string;\n list: BentoInputFieldPasswordValidationListItem[];\n}\n\nexport interface BentoInputFieldPasswordProps {\n /**\n * Reduces height of the input\n */\n condensed?: BentoInputFieldProps['condensed'];\n\n /**\n * Disables the possibility of changing value in the input-field\n */\n disabled?: BentoInputFieldProps['disabled'];\n\n /**\n * Performs real-time validations over the input value. Default: `false`.\n * Disabling the option (set to `true`) will not run pre-defined validations or custom validations defined in the `validation` field.\n */\n disableValidation?: boolean;\n\n /**\n * Renders input-field with an error state and the error message beneath the input box\n */\n errorMessage?: BentoInputFieldProps['errorMessage'];\n\n /**\n * Text displayed as the placeholder of the input-field\n */\n placeholder?: BentoInputFieldProps['placeholder'];\n\n /**\n * Setting this property to true will set the input field to read only state.\n */\n readonly?: BentoInputFieldProps['readonly'];\n\n /**\n * Text displayed as the value of the input-field\n */\n value?: BentoInputFieldProps['value'];\n\n /**\n * Label to be shown with the input field\n */\n label?: string;\n\n /**\n * Configuration object for password field validation.\n *\n * This object defines the validation criteria and associated messages for a password field.\n * It includes the following properties:\n *\n * - `title`: The title displayed at the top of the validation hint.\n * - `suggestion`: The message displayed at the bottom of the validation hint, providing additional guidance.\n * - `list`: An array of callback functions to be executed on the value after each user input, validating the password against the specified rules.\n *\n * By default, the validation checks that:\n *\n * - The value has a minimum length of 8 characters.\n * - The value contains at least one lowercase letter.\n * - The value contains at least one uppercase letter.\n * - The value contains at least one numeric digit.\n * - The value contains at least one special character.\n *\n *\n */\n validation?: BentoInputFieldPasswordValidation;\n\n /**\n * Whether the password validation hint is displayed when the input field is activated via focus or input\n */\n withHint?: boolean;\n}\n\n/**\n * Private\n */\n\nexport enum BentoInputFieldPasswordType {\n TEXT = 'text',\n PASSWORD = 'password',\n}\n","export default \"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='capslock'%3e%3cg%20id='Union'%3e%3cpath%20d='M13.75%205.63952L8%201.03952L2.25%205.63952V7.74999H4.75V11.75H11.25V7.74999H13.75V5.63952ZM6.25%206.24999H3.88809L8%202.96046L12.1119%206.24999H9.75V10.25H6.25V6.24999Z'%20fill='%2300112C'/%3e%3cpath%20d='M11.25%2014.75V13.25H4.75V14.75H11.25Z'%20fill='%2300112C'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e\"","import { BentoInputFieldValue } from '@/components/input-field';\n\nfunction stringifyValue(value: BentoInputFieldValue): string {\n return value?.toString() ?? '';\n}\n\n/**\n * Validates if the length of the provided value is greater than or equal to the specified length.\n *\n * @param value - The input value to check.\n * @param length - The minimum required length of the value. Defaults to 8.\n * @returns `true` if the length of the value is greater than or equal to the specified length, `false` otherwise.\n */\nexport function minLength(value: BentoInputFieldValue, length = 8): boolean {\n return stringifyValue(value).length >= length;\n}\n\n/**\n * Validates if the provided value contains at least one lowercase letter.\n *\n * @param value - The input value to check.\n * @returns `true` if the value contains at least one lowercase letter, `false` otherwise.\n */\nexport function requireLowercase(value: BentoInputFieldValue): boolean {\n return /[a-z]/.test(stringifyValue(value));\n}\n\n/**\n * Validates if the provided value contains at least one uppercase letter.\n *\n * @param value - The input value to check.\n * @returns `true` if the value contains at least one uppercase letter, `false` otherwise.\n */\nexport function requireUppercase(value: BentoInputFieldValue): boolean {\n return /[A-Z]/.test(stringifyValue(value));\n}\n\n/**\n * Validates if the provided value contains at least one numerical digit.\n *\n * @param value - The input value to check.\n * @returns `true` if the value contains at least one numerical digit, `false` otherwise.\n */\nexport function requireNumeric(value: BentoInputFieldValue): boolean {\n return /\\d/.test(stringifyValue(value));\n}\n\n/**\n * Validates if the provided value contains at least one special character (non-alphanumeric).\n *\n * @param value - The input value to check.\n * @returns `true` if the value contains at least one special character, `false` otherwise.\n */\nexport function requireSpecialCharacter(value: BentoInputFieldValue): boolean {\n return /[^a-zA-Z0-9]/.test(stringifyValue(value));\n}\n","<template>\n <div ref=\"inputFieldPasswordRef\">\n <bento-input-field\n ref=\"inputFieldPasswordInputRef\"\n v-bind=\"inputFieldArgs\"\n class=\"b-input-field-password__input\"\n spellcheck=\"false\"\n @input=\"onInput\"\n @keydown=\"checkCapsLock\"\n @keyup=\"checkCapsLock\"\n >\n <template #default>{{ label }}</template>\n\n <template v-if=\"isCapsLockOn\" #iconBefore>\n <div\n class=\"b-input-field-password__caps-lock-indicator\"\n @mouseenter=\"handleCapsLockMouseEnter\"\n @mouseleave=\"handleCapsLockMouseLeave\"\n >\n <bento-image\n ref=\"inputFieldPasswordCapsLockIconRef\"\n :src=\"CapsLockIcon\"\n :alt=\"t('capsLockEnabled')\"\n ></bento-image>\n </div>\n\n <tooltip\n v-if=\"inputFieldPasswordCapsLockIconRef\"\n :class=\"tooltipConditionalClass\"\n :content=\"t('capsLockEnabled')\"\n :disabled-focus-trap=\"true\"\n :fallback-position=\"['top', 'bottom']\"\n :is-shown=\"isTooltipDisplayed\"\n :target-element=\"inputFieldPasswordCapsLockIconRef\"\n ></tooltip>\n </template>\n\n <template v-if=\"!disabled\" #iconAfter>\n <bento-button variant=\"tertiary\" @click=\"toggleInputType\">\n <template #iconLeft>\n <show-icon v-if=\"!isPasswordReadable\" :svg-title=\"t('showPassword')\" />\n\n <hide-icon v-if=\"isPasswordReadable\" :svg-title=\"t('hidePassword')\" />\n </template>\n </bento-button>\n </template>\n </bento-input-field>\n\n <bento-popover\n v-if=\"hasValidations\"\n :open=\"isHintDisplayed\"\n :target-element=\"inputFieldPasswordInputRef\"\n :disable-focus-trap=\"true\"\n :aria-label=\"computedValidations.title\"\n :aria-describedby=\"validationListId\"\n position=\"right-start\"\n >\n <div :id=\"validationPopoverId\">\n <bento-typography v-if=\"computedValidations.title\" class=\"b-input-field-password__validation-title\">\n {{ computedValidations.title }}\n </bento-typography>\n\n <p v-if=\"!hasErrors\" class=\"b-input-field-password__validation-status--valid\" role=\"alert\">\n {{ t('validationValid') }}\n </p>\n\n <ul :id=\"validationListId\" class=\"b-input-field-password__validation-list\">\n <li\n v-for=\"(validation, index) in computedValidations.list\"\n :key=\"index\"\n :class=\"passwordValidityConditionalClass[index]\"\n aria-live=\"polite\"\n aria-atomic=\"true\"\n >\n <span class=\"b-input-field-password__validation-list-icon\">\n <checkmark-circle-fill-icon\n v-if=\"passwordValidity[index]\"\n :svg-title=\"t('validationChecked')\"\n />\n\n <dot-icon v-else :svg-title=\"t('validationUnchecked')\" />\n </span>\n\n <bento-typography class=\"b-input-field-password__validation-list-text\" el=\"span\">\n {{ validation.label }}\n </bento-typography>\n </li>\n </ul>\n\n <bento-typography\n v-if=\"computedValidations.suggestion\"\n class=\"b-input-field-password__validation-suggestion\"\n >\n {{ computedValidations.suggestion }}\n </bento-typography>\n </div>\n </bento-popover>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { BentoButton } from '@/components/button';\n import { BentoImage } from '@/components/image';\n import { BentoInputField } from '@/components/input-field';\n import { BentoPopover } from '@/components/popover';\n import { BentoTypography } from '@/components/typography';\n import { Tooltip } from '@/internal';\n import type { BentoInputFieldProps } from '@/components/input-field/input-field.types';\n import { type BentoInputFieldPasswordProps, BentoInputFieldPasswordType } from './input-field-password.types';\n import CheckmarkCircleFillIcon from '@adyen/ui-assets-icons-16/vue/checkmark-circle-fill';\n import DotIcon from '@adyen/ui-assets-icons-16/vue/dot';\n import HideIcon from '@adyen/ui-assets-icons-16/vue/hide';\n import ShowIcon from '@adyen/ui-assets-icons-16/vue/show';\n import CapsLockIcon from './assets/capslock.svg';\n\n import { useFocusWithin, watchDebounced } from '@vueuse/core';\n import { computed, provide, ref, SetupContext, useAttrs, watch } from 'vue';\n\n import { useI18n } from '@/utils/ts/i18n';\n\n import {\n minLength,\n requireLowercase,\n requireNumeric,\n requireSpecialCharacter,\n requireUppercase,\n } from '@/components/input-field-password/utilities/input-field-password.validation';\n import { generateUid } from '@/core/utils/ts';\n import messages from './messages.json';\n import { INPUT_FIELD_PARENT_COMPONENT_INJECTION_KEY } from '@/components/input-field/input-field.keys';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const DEBOUNCE_DURATION = 500;\n const DEBOUNCE_MAX_WAIT = 2000;\n const TOOLTIP_TIMEOUT = 2000;\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const props = defineProps({\n condensed: { default: false },\n disabled: { default: false },\n disableValidation: { type: Boolean, default: false },\n errorMessage: { default: null },\n placeholder: { default: '' },\n readonly: { default: false },\n value: { default: undefined },\n label: { default: null },\n validation: { default: undefined },\n withHint: { type: Boolean, default: true }\n});\n\n const emit = defineEmits([\"input:valid\", \"input\"]);\n\n const attrs = useAttrs();\n\n const inputType = ref(BentoInputFieldPasswordType.PASSWORD);\n const inputValue = ref(props.value);\n const isHintDisplayed = ref(false);\n const isTouched = ref(false);\n const passwordValidity = ref<boolean[]>([]);\n const capsLockTooltipTimeoutID = ref<ReturnType<typeof setTimeout>>(null);\n const isTooltipDisplayed = ref(false);\n const inputFieldPasswordRef = ref(null);\n const inputFieldPasswordInputRef = ref(null);\n const inputFieldPasswordCapsLockIconRef = ref(null);\n const isCapsLockOn = ref(false);\n\n provide(INPUT_FIELD_PARENT_COMPONENT_INJECTION_KEY, 'bento-input-field-password');\n\n const { focused } = useFocusWithin(inputFieldPasswordRef);\n\n const validationListId = generateUid('validationListId');\n const validationPopoverId = generateUid('validationPopoverId');\n\n const isPasswordReadable = computed(() => inputType.value === BentoInputFieldPasswordType.TEXT);\n const computedErrorMessage = computed(() => {\n const hasRealTimeValidationErrors = isTouched.value && hasErrors.value;\n const hasAsyncValidationErrors = props.disableValidation && props.errorMessage;\n\n return hasRealTimeValidationErrors || hasAsyncValidationErrors ? props.errorMessage : '';\n });\n\n const passwordValidityConditionalClass = computed(() =>\n passwordValidity.value.map(validity =>\n validity\n ? 'b-input-field-password__validation-list--valid'\n : 'b-input-field-password__validation-list--invalid'\n )\n );\n\n const tooltipConditionalClass = computed(() =>\n capsLockTooltipTimeoutID.value ? 'b-input-field-password__input-tooltip--timed' : ''\n );\n\n const inputFieldArgs = computed<BentoInputFieldProps & SetupContext['attrs']>(() => ({\n ariaHidden: false,\n condensed: props.condensed,\n disabled: props.disabled,\n errorMessage: computedErrorMessage.value,\n placeholder: props.placeholder,\n readonly: props.readonly,\n type: inputType.value,\n value: inputValue.value,\n\n 'aria-haspopup': hasValidations.value ? 'dialog' : false,\n 'aria-describedby': hasValidations.value ? validationPopoverId : '',\n\n ...attrs,\n }));\n\n const computedValidations = computed(() =>\n props.validation === undefined\n ? {\n title: t('validationTitle'),\n suggestion: t('validationSuggestion'),\n list: [\n { label: t('validationMinLength'), validate: minLength },\n { label: t('validationRequireLowercase'), validate: requireLowercase },\n { label: t('validationRequireUppercase'), validate: requireUppercase },\n { label: t('validationRequireNumeric'), validate: requireNumeric },\n { label: t('validationRequireSpecialCharacter'), validate: requireSpecialCharacter },\n ],\n }\n : props.validation\n );\n\n const hasErrors = computed(() => passwordValidity.value.some(validation => !validation));\n const hasValidations = computed(\n () => inputFieldPasswordInputRef.value && computedValidations.value?.list?.length > 0\n );\n\n const checkCapsLock = (e: KeyboardEvent) => {\n // Check if getModifierState exists and is a function in case the user's browser is autofilling\n if (typeof e.getModifierState === 'function') {\n isCapsLockOn.value = e.getModifierState('CapsLock');\n }\n };\n\n const toggleInputType = () => {\n if (isPasswordReadable.value) {\n inputType.value = BentoInputFieldPasswordType.PASSWORD;\n } else {\n inputType.value = BentoInputFieldPasswordType.TEXT;\n }\n };\n\n const onInput = (value: string) => {\n if (props.disabled) {\n return;\n }\n\n inputValue.value = value;\n\n emit('input', inputValue.value);\n };\n\n const checkValidity = (value: BentoInputFieldPasswordProps['value']) => {\n passwordValidity.value =\n computedValidations.value?.list?.map(validationItem =>\n validationItem.validate(value, validationItem.additionalArgs)\n ) ?? [];\n };\n\n const handleCapsLockMouseLeave = () => {\n isTooltipDisplayed.value = false;\n capsLockTooltipTimeoutID.value = null;\n };\n\n const handleCapsLockMouseEnter = () => {\n isTooltipDisplayed.value = true;\n };\n\n watch(focused, focused => {\n // Always set dirty to true when blur occurs\n if (!focused) {\n isTouched.value = true;\n }\n\n // Disable validations & hint if \"disableValidation\" is \"true\"\n if (!props.disableValidation) {\n if (props.withHint) {\n isHintDisplayed.value = focused;\n }\n\n checkValidity(inputValue.value);\n }\n });\n\n watch(isCapsLockOn, isCapsLockOn => {\n if (!isCapsLockOn) {\n clearTimeout(capsLockTooltipTimeoutID.value);\n\n capsLockTooltipTimeoutID.value = null;\n isTooltipDisplayed.value = false;\n } else {\n isTooltipDisplayed.value = true;\n\n capsLockTooltipTimeoutID.value = setTimeout(() => {\n capsLockTooltipTimeoutID.value = null;\n isTooltipDisplayed.value = false;\n }, TOOLTIP_TIMEOUT);\n }\n });\n\n watchDebounced(\n inputValue,\n inputValue => {\n checkValidity(inputValue);\n\n if (!hasErrors.value) {\n emit('input:valid');\n }\n },\n // wait for 0.5s before checking validity OR 2s of continuous typing\n { debounce: DEBOUNCE_DURATION, maxWait: DEBOUNCE_MAX_WAIT }\n );\n</script>\n\n<script lang=\"ts\">\n /**\n * The input field password is a component designed to support users' preference for entering values securely.\n * This is an extension of the `bento-input-field` component.\n *\n * @example\n * import { BentoInputFieldPassword } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoInputFieldPassword },\n * template: `\n * <bento-input-field-password\n * label=\"Label\"\n * error-message=\"Error\"\n * :validation=\"{\n * title: 'Password must contain at least:',\n * suggestion: 'Avoid using currency symbols or accented letters.',\n * list: [\n * { label: '8 characters', validate: minLength, additionalArgs: [8] },\n * { label: '1 lowercase (a-z)', validate: requireLowercase },\n * { label: '1 uppercase (A-Z)', validate: requireUppercase },\n * { label: '1 numerical (0-9)', validate: requireNumeric },\n * { label: '1 special character', validate: requireSpecialCharacter },\n * {\n * label: 'Always true',\n * validate: () => {\n * const example = 'Example';\n *\n * return () => example.length > 1;\n * },\n * },\n * ],\n * }\"\n * />\n * `\n * }\n */\n export default {\n i18n: { messages },\n name: 'bento-input-field-password',\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./input-field-password.scss\" />\n"],"names":["BentoInputFieldPasswordType","BentoInputFieldPasswordType2","CapsLockIcon","stringifyValue","value","minLength","length","requireLowercase","requireUppercase","requireNumeric","requireSpecialCharacter","__default__","messages","DEBOUNCE_DURATION","DEBOUNCE_MAX_WAIT","TOOLTIP_TIMEOUT","t","useI18n","attrs","useAttrs","inputType","ref","inputValue","props","isHintDisplayed","isTouched","passwordValidity","capsLockTooltipTimeoutID","isTooltipDisplayed","inputFieldPasswordRef","inputFieldPasswordInputRef","inputFieldPasswordCapsLockIconRef","isCapsLockOn","provide","INPUT_FIELD_PARENT_COMPONENT_INJECTION_KEY","focused","useFocusWithin","validationListId","generateUid","validationPopoverId","isPasswordReadable","computed","computedErrorMessage","hasRealTimeValidationErrors","hasErrors","hasAsyncValidationErrors","passwordValidityConditionalClass","validity","tooltipConditionalClass","inputFieldArgs","hasValidations","computedValidations","validation","_b","_a","checkCapsLock","e","toggleInputType","onInput","emit","checkValidity","validationItem","handleCapsLockMouseLeave","handleCapsLockMouseEnter","watch","focused2","isCapsLockOn2","watchDebounced","inputValue2"],"mappings":"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"}
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as oe, ref as G, provide as $e, computed as B, onMounted as ue, nextTick as le } from "vue";
2
- import { B as se } from "./input-field.De4sp76g.js";
2
+ import { B as se } from "./input-field.tP3Eupoo.js";
3
3
  import { u as fe } from "./i18n.BQkEbtPM.js";
4
- import { b as ce } from "./dropdown.CcHoKbLz.js";
4
+ import { b as ce } from "./dropdown.DzWXcJyF.js";
5
5
  import { p as he } from "./typography.J1v_SPG3.js";
6
6
  import { a as jt, u as ge } from "./use-country-phon-code.DVgE19zT.js";
7
7
  import { n as me } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
@@ -3098,4 +3098,4 @@ const kd = Fd.exports;
3098
3098
  export {
3099
3099
  kd as i
3100
3100
  };
3101
- //# sourceMappingURL=input-field-phone-number.TXnK0dch.js.map
3101
+ //# sourceMappingURL=input-field-phone-number.C8WTJ1W-.js.map