@adyen/bento-vue2 1.34.0 → 1.35.1

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 (188) hide show
  1. package/dist/@types/index.d.ts +2 -2
  2. package/dist/accordion.js +1 -1
  3. package/dist/action-bar.js +1 -1
  4. package/dist/alert.js +1 -1
  5. package/dist/assets/accordion-item.css +1 -1
  6. package/dist/assets/action-bar.css +1 -1
  7. package/dist/assets/avatar.css +1 -1
  8. package/dist/assets/base-modal.css +1 -1
  9. package/dist/assets/calendar.css +1 -1
  10. package/dist/assets/card.css +1 -1
  11. package/dist/assets/checkbox.css +1 -1
  12. package/dist/assets/code-snippet.css +1 -1
  13. package/dist/assets/currency.css +1 -0
  14. package/dist/assets/data-grid.css +1 -1
  15. package/dist/assets/date-range-picker.css +1 -1
  16. package/dist/assets/dialog-page.css +1 -1
  17. package/dist/assets/dropdown.css +1 -1
  18. package/dist/assets/error-message.css +1 -1
  19. package/dist/assets/filter-bar.css +1 -1
  20. package/dist/assets/header.css +1 -1
  21. package/dist/assets/inspector.css +1 -1
  22. package/dist/assets/loading-button.css +1 -1
  23. package/dist/assets/menu.css +1 -1
  24. package/dist/assets/modal-fullscreen.css +1 -1
  25. package/dist/assets/popover.css +1 -1
  26. package/dist/assets/sidepanel.css +1 -1
  27. package/dist/assets/structured-list-item.css +1 -1
  28. package/dist/assets/tutorial.css +1 -1
  29. package/dist/avatar.js +1 -1
  30. package/dist/button.js +2 -2
  31. package/dist/card.js +1 -1
  32. package/dist/checkbox.js +2 -2
  33. package/dist/chunks/accordion-item.BDNSykyK.js +116 -0
  34. package/dist/chunks/accordion-item.BDNSykyK.js.map +1 -0
  35. package/dist/chunks/{action-bar.CsRmYQ-k.js → action-bar.CCVKS1xo.js} +51 -37
  36. package/dist/chunks/{action-bar.CsRmYQ-k.js.map → action-bar.CCVKS1xo.js.map} +1 -1
  37. package/dist/chunks/{alert.DtT7BRdr.js → alert.CVsckdGC.js} +17 -11
  38. package/dist/chunks/{alert.DtT7BRdr.js.map → alert.CVsckdGC.js.map} +1 -1
  39. package/dist/chunks/{avatar.0ffdL8i0.js → avatar.qcWk9clF.js} +9 -9
  40. package/dist/chunks/avatar.qcWk9clF.js.map +1 -0
  41. package/dist/chunks/{base-modal.zHjXVjwU.js → base-modal.BaHkDH5f.js} +15 -9
  42. package/dist/chunks/{base-modal.zHjXVjwU.js.map → base-modal.BaHkDH5f.js.map} +1 -1
  43. package/dist/chunks/{button-actions-with-menu.B6Nb6Ohu.js → button-actions-with-menu.Bl82u6yP.js} +4 -4
  44. package/dist/chunks/{button-actions-with-menu.B6Nb6Ohu.js.map → button-actions-with-menu.Bl82u6yP.js.map} +1 -1
  45. package/dist/chunks/{button-actions.BQHr68sA.js → button-actions.DN4eIQes.js} +2 -2
  46. package/dist/chunks/{button-actions.BQHr68sA.js.map → button-actions.DN4eIQes.js.map} +1 -1
  47. package/dist/chunks/{calendar.CaTMWZUM.js → calendar.BFrqPClW.js} +230 -230
  48. package/dist/chunks/calendar.BFrqPClW.js.map +1 -0
  49. package/dist/chunks/card.lWLgpCWM.js +123 -0
  50. package/dist/chunks/card.lWLgpCWM.js.map +1 -0
  51. package/dist/chunks/{checkbox-group.D_mCZMPr.js → checkbox-group.C0cqbJWx.js} +4 -4
  52. package/dist/chunks/{checkbox-group.D_mCZMPr.js.map → checkbox-group.C0cqbJWx.js.map} +1 -1
  53. package/dist/chunks/{checkbox.CaX67eM_.js → checkbox.B3u_hzUo.js} +38 -28
  54. package/dist/chunks/{checkbox.CaX67eM_.js.map → checkbox.B3u_hzUo.js.map} +1 -1
  55. package/dist/chunks/{code-snippet.DgKK7fE8.js → code-snippet.BgjvWTHP.js} +43 -34
  56. package/dist/chunks/code-snippet.BgjvWTHP.js.map +1 -0
  57. package/dist/chunks/{controls-group.6aTaRWFI.js → controls-group.DLBxlPfl.js} +2 -2
  58. package/dist/chunks/{controls-group.6aTaRWFI.js.map → controls-group.DLBxlPfl.js.map} +1 -1
  59. package/dist/chunks/{copy.B1DYKX_q.js → copy.CmxcGt77.js} +31 -23
  60. package/dist/chunks/{copy.B1DYKX_q.js.map → copy.CmxcGt77.js.map} +1 -1
  61. package/dist/chunks/{currency.D_2CN1OJ.js → currency.CbZqZrBz.js} +9 -8
  62. package/dist/chunks/{currency.D_2CN1OJ.js.map → currency.CbZqZrBz.js.map} +1 -1
  63. package/dist/chunks/{dashboard-section.DWfQGGwS.js → dashboard-section.BfXtTf6l.js} +2 -2
  64. package/dist/chunks/{dashboard-section.DWfQGGwS.js.map → dashboard-section.BfXtTf6l.js.map} +1 -1
  65. package/dist/chunks/{dashed-underline.C7gLtEqx.js → dashed-underline.xq5j9fGG.js} +2 -2
  66. package/dist/chunks/{dashed-underline.C7gLtEqx.js.map → dashed-underline.xq5j9fGG.js.map} +1 -1
  67. package/dist/chunks/{data-grid-template.2xocKVqX.js → data-grid-template.C8AR5CxA.js} +2 -2
  68. package/dist/chunks/{data-grid-template.2xocKVqX.js.map → data-grid-template.C8AR5CxA.js.map} +1 -1
  69. package/dist/chunks/{data-grid.CUn6MrZz.js → data-grid.BCTcokYm.js} +472 -426
  70. package/dist/chunks/{data-grid.CUn6MrZz.js.map → data-grid.BCTcokYm.js.map} +1 -1
  71. package/dist/chunks/{date-picker.C6_KbCYT.js → date-picker.CPG0zksD.js} +91 -83
  72. package/dist/chunks/date-picker.CPG0zksD.js.map +1 -0
  73. package/dist/chunks/{date-range-picker.DaTgBXP1.js → date-range-picker.Bt439x32.js} +265 -243
  74. package/dist/chunks/date-range-picker.Bt439x32.js.map +1 -0
  75. package/dist/chunks/{date.DaiTzNEZ.js → date.C0uwNQjg.js} +80 -80
  76. package/dist/chunks/{date.DaiTzNEZ.js.map → date.C0uwNQjg.js.map} +1 -1
  77. package/dist/chunks/{dropdown-tag.pJ_sQbJN.js → dropdown-tag.Cd4LGtwl.js} +3 -3
  78. package/dist/chunks/{dropdown-tag.pJ_sQbJN.js.map → dropdown-tag.Cd4LGtwl.js.map} +1 -1
  79. package/dist/chunks/{dropdown.DpsQPLy-.js → dropdown.B4KMM58m.js} +158 -139
  80. package/dist/chunks/dropdown.B4KMM58m.js.map +1 -0
  81. package/dist/chunks/{error-message.BnFyGbR7.js → error-message.GCYDEzGL.js} +28 -14
  82. package/dist/chunks/{error-message.BnFyGbR7.js.map → error-message.GCYDEzGL.js.map} +1 -1
  83. package/dist/chunks/es6.BvpG4Oi6.js.map +1 -1
  84. package/dist/chunks/{filter-bar.DGBvcKsz.js → filter-bar.Co2YeUUg.js} +604 -589
  85. package/dist/chunks/filter-bar.Co2YeUUg.js.map +1 -0
  86. package/dist/chunks/{footer-actions.CwHY2-Ap.js → footer-actions.CxxS87iQ.js} +2 -2
  87. package/dist/chunks/{footer-actions.CwHY2-Ap.js.map → footer-actions.CxxS87iQ.js.map} +1 -1
  88. package/dist/chunks/{form-layout-title.CRsR3o2x.js → form-layout-title.DomnJXLE.js} +2 -2
  89. package/dist/chunks/{form-layout-title.CRsR3o2x.js.map → form-layout-title.DomnJXLE.js.map} +1 -1
  90. package/dist/chunks/{index.B_UZQ6qF.js → get-date-locale.BN8xEjY0.js} +855 -204
  91. package/dist/chunks/get-date-locale.BN8xEjY0.js.map +1 -0
  92. package/dist/chunks/{header.BmNDoXio.js → header.zacQVbjn.js} +79 -73
  93. package/dist/chunks/{header.BmNDoXio.js.map → header.zacQVbjn.js.map} +1 -1
  94. package/dist/chunks/{index.Z84QE0E2.js → index.CrhTVr5J.js} +2 -2
  95. package/dist/chunks/{index.Z84QE0E2.js.map → index.CrhTVr5J.js.map} +1 -1
  96. package/dist/chunks/{index.xqFSZOAb.js → index.DDnf1O9p.js} +2 -2
  97. package/dist/chunks/{index.xqFSZOAb.js.map → index.DDnf1O9p.js.map} +1 -1
  98. package/dist/chunks/{index.B_EJflcs.js → index.DPafeRJa.js} +2 -2
  99. package/dist/chunks/{index.B_EJflcs.js.map → index.DPafeRJa.js.map} +1 -1
  100. package/dist/chunks/{input-field.S5HIZtYA.js → input-field.DBrzeKBj.js} +3 -3
  101. package/dist/chunks/{input-field.S5HIZtYA.js.map → input-field.DBrzeKBj.js.map} +1 -1
  102. package/dist/chunks/{inspector.types.D6kCCKNk.js → inspector.types.lu_MoQn5.js} +17 -9
  103. package/dist/chunks/{inspector.types.D6kCCKNk.js.map → inspector.types.lu_MoQn5.js.map} +1 -1
  104. package/dist/chunks/{loading-button.DDPZYO6r.js → loading-button.DoX2sopf.js} +39 -25
  105. package/dist/chunks/loading-button.DoX2sopf.js.map +1 -0
  106. package/dist/chunks/{menu.DSOJEn4v.js → menu.DHakGFS4.js} +2 -2
  107. package/dist/chunks/{menu.DSOJEn4v.js.map → menu.DHakGFS4.js.map} +1 -1
  108. package/dist/chunks/{modal-fullscreen.BQKE0bm0.js → modal-fullscreen.mIlp0LnL.js} +25 -19
  109. package/dist/chunks/{modal-fullscreen.BQKE0bm0.js.map → modal-fullscreen.mIlp0LnL.js.map} +1 -1
  110. package/dist/chunks/{modal.ClqkmzVZ.js → modal.CtTQWN8H.js} +25 -19
  111. package/dist/chunks/modal.CtTQWN8H.js.map +1 -0
  112. package/dist/chunks/{pagination.he0lQGAV.js → pagination.By-p9MjL.js} +2 -2
  113. package/dist/chunks/{pagination.he0lQGAV.js.map → pagination.By-p9MjL.js.map} +1 -1
  114. package/dist/chunks/{popover.UmNw_M-C.js → popover.BDaf6hmW.js} +2 -2
  115. package/dist/chunks/{popover.UmNw_M-C.js.map → popover.BDaf6hmW.js.map} +1 -1
  116. package/dist/chunks/{radio-group.D7cuMKzV.js → radio-group.OaYz1wJf.js} +3 -3
  117. package/dist/chunks/{radio-group.D7cuMKzV.js.map → radio-group.OaYz1wJf.js.map} +1 -1
  118. package/dist/chunks/{search-bar.BPyYb0WB.js → search-bar.eC-crOww.js} +14 -6
  119. package/dist/chunks/{search-bar.BPyYb0WB.js.map → search-bar.eC-crOww.js.map} +1 -1
  120. package/dist/chunks/{secondary-nav.CMUfpgQf.js → secondary-nav.1xw-o8OR.js} +2 -2
  121. package/dist/chunks/{secondary-nav.CMUfpgQf.js.map → secondary-nav.1xw-o8OR.js.map} +1 -1
  122. package/dist/chunks/{selection-card-group.DbMfzyTG.js → selection-card-group.BLPaJy5U.js} +3 -3
  123. package/dist/chunks/{selection-card-group.DbMfzyTG.js.map → selection-card-group.BLPaJy5U.js.map} +1 -1
  124. package/dist/chunks/{sidepanel.Ck6Ts9RR.js → sidepanel.ZYT_vzbj.js} +24 -18
  125. package/dist/chunks/{sidepanel.Ck6Ts9RR.js.map → sidepanel.ZYT_vzbj.js.map} +1 -1
  126. package/dist/chunks/{structured-list-item.DpLscUX4.js → structured-list-item.D7D8VpQY.js} +22 -16
  127. package/dist/chunks/{structured-list-item.DpLscUX4.js.map → structured-list-item.D7D8VpQY.js.map} +1 -1
  128. package/dist/chunks/{summary-grid-item-custom.B7Re6OCf.js → summary-grid-item-custom.v0QSLZKT.js} +2 -2
  129. package/dist/chunks/{summary-grid-item-custom.B7Re6OCf.js.map → summary-grid-item-custom.v0QSLZKT.js.map} +1 -1
  130. package/dist/chunks/{textarea.BRMpTWKS.js → textarea.C0IMS5XS.js} +2 -2
  131. package/dist/chunks/{textarea.BRMpTWKS.js.map → textarea.C0IMS5XS.js.map} +1 -1
  132. package/dist/chunks/{timeline-item.jh7UnviR.js → timeline-item.Dmd78uwQ.js} +53 -47
  133. package/dist/chunks/{timeline-item.jh7UnviR.js.map → timeline-item.Dmd78uwQ.js.map} +1 -1
  134. package/dist/chunks/{tutorial.DERGsCkg.js → tutorial.D64_0i0-.js} +50 -38
  135. package/dist/chunks/{tutorial.DERGsCkg.js.map → tutorial.D64_0i0-.js.map} +1 -1
  136. package/dist/chunks/{use-cached-selected-values.B39-iEp4.js → use-cached-selected-values.BOAumEi7.js} +54 -40
  137. package/dist/chunks/{use-cached-selected-values.B39-iEp4.js.map → use-cached-selected-values.BOAumEi7.js.map} +1 -1
  138. package/dist/code-snippet.js +1 -1
  139. package/dist/currency.js +1 -1
  140. package/dist/dashboard-template.js +1 -1
  141. package/dist/dashed-underline.js +1 -1
  142. package/dist/data-grid-template.js +1 -1
  143. package/dist/data-grid.js +1 -1
  144. package/dist/date-picker.js +2 -2
  145. package/dist/date-range-picker.js +2 -2
  146. package/dist/date.js +1 -1
  147. package/dist/dropdown.js +3 -3
  148. package/dist/filter-bar.js +1 -1
  149. package/dist/form-layout.js +1 -1
  150. package/dist/header.js +1 -1
  151. package/dist/index.js +43 -43
  152. package/dist/input-field.js +1 -1
  153. package/dist/inspector.js +1 -1
  154. package/dist/internal.js +5 -5
  155. package/dist/menu.js +1 -1
  156. package/dist/modal-fullscreen.js +1 -1
  157. package/dist/modal.js +2 -2
  158. package/dist/pagination.js +1 -1
  159. package/dist/popover.js +1 -1
  160. package/dist/radio-group.js +1 -1
  161. package/dist/search-bar.js +2 -2
  162. package/dist/secondary-nav.js +1 -1
  163. package/dist/selection-card.js +1 -1
  164. package/dist/sidepanel.js +1 -1
  165. package/dist/structured-list.js +1 -1
  166. package/dist/styles/bento.css +3 -0
  167. package/dist/styles/legacy.css +3 -0
  168. package/dist/styles/styleguide.css +3 -0
  169. package/dist/summary-grid.js +1 -1
  170. package/dist/textarea.js +1 -1
  171. package/dist/timeline.js +1 -1
  172. package/dist/tutorial.js +1 -1
  173. package/dist/web-types.json +9 -9
  174. package/package.json +2 -2
  175. package/dist/chunks/accordion-item.IMlV_Vik.js +0 -100
  176. package/dist/chunks/accordion-item.IMlV_Vik.js.map +0 -1
  177. package/dist/chunks/avatar.0ffdL8i0.js.map +0 -1
  178. package/dist/chunks/calendar.CaTMWZUM.js.map +0 -1
  179. package/dist/chunks/card.ignL7-CH.js +0 -115
  180. package/dist/chunks/card.ignL7-CH.js.map +0 -1
  181. package/dist/chunks/code-snippet.DgKK7fE8.js.map +0 -1
  182. package/dist/chunks/date-picker.C6_KbCYT.js.map +0 -1
  183. package/dist/chunks/date-range-picker.DaTgBXP1.js.map +0 -1
  184. package/dist/chunks/dropdown.DpsQPLy-.js.map +0 -1
  185. package/dist/chunks/filter-bar.DGBvcKsz.js.map +0 -1
  186. package/dist/chunks/index.B_UZQ6qF.js.map +0 -1
  187. package/dist/chunks/loading-button.DDPZYO6r.js.map +0 -1
  188. package/dist/chunks/modal.ClqkmzVZ.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as n, useSlots as i, computed as r, provide as m, toRef as d } from "vue";
2
- import { B as f } from "./alert.DtT7BRdr.js";
2
+ import { B as f } from "./alert.CVsckdGC.js";
3
3
  import { F as y } from "./form-layout.types.D3EKzbE7.js";
4
4
  import { u } from "./use-has-slot.C9lQZ6nz.js";
5
5
  import { n as l } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
@@ -184,4 +184,4 @@ export {
184
184
  K as c,
185
185
  H as f
186
186
  };
187
- //# sourceMappingURL=form-layout-title.CRsR3o2x.js.map
187
+ //# sourceMappingURL=form-layout-title.DomnJXLE.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"form-layout-title.CRsR3o2x.js","sources":["../../src/components/form-layout/form-layout.vue","../../src/components/form-layout/components/form-layout-field-tip/form-layout-tip.types.ts","../../src/components/form-layout/components/form-layout-field-tip/form-layout-field-tip.vue","../../src/components/form-layout/components/form-layout-group/form-layout-group.types.ts","../../src/components/form-layout/components/form-layout-group/form-layout-group.vue","../../src/components/form-layout/components/form-layout-title/form-layout-title.vue"],"sourcesContent":["<template>\n <component :is=\"formLayoutElement\" class=\"b-form-layout\" role=\"form\">\n <bento-alert v-if=\"hasSlot('error-message')\" class=\"b-form-layout__error-message\" type=\"critical\">\n <template #description>\n <slot name=\"error-message\" />\n </template>\n </bento-alert>\n\n <slot />\n\n <div v-if=\"hasActions\" class=\"b-form-layout__actions-container\">\n <div class=\"b-form-layout__actions\">\n <slot name=\"actions-left\" />\n </div>\n\n <div class=\"b-form-layout__actions\">\n <slot name=\"actions-right\" />\n </div>\n </div>\n </component>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, provide, toRef, useSlots } from 'vue';\n import { BentoAlert } from '@/components/alert';\n import { useHasSlot } from '@/composables';\n import { FORM_LAYOUT_LOADING_INJECTION_KEY } from './form-layout.types';\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n const props = defineProps({\n /**\n * Renders the form layout as an HTML `form`\n */\n form: { type: Boolean, default: false },\n\n /**\n * Sets the state of the form and its fields to\n * a read only status.\n */\n loading: { type: Boolean, default: false },\n });\n\n const formLayoutElement = computed(() => (props.form ? 'form' : 'div'));\n const hasActions = computed(() => hasSlot('actions-left') || hasSlot('actions-right'));\n\n provide(FORM_LAYOUT_LOADING_INJECTION_KEY, toRef(props, 'loading'));\n</script>\n\n<script lang=\"ts\">\n /**\n * Form layout component is a pre-designed layout that serves\n * as a starting point for creating a form.\n *\n * It can include various common form components:\n * input field, dropdown, date picker, checkbox group, radio group,\n * textarea, etc.\n *\n * Form layout is context agnostic and can be dropped in different\n * places, for example in modals, side panels or pages.\n *\n * @example\n * import { BentoFormLayout, BentoFormLayoutFieldTip } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayout, BentoFormLayoutFieldTip },\n * template: `\n * <bento-form-layout>\n * <template #error-message>There is an error. Correct the highlighted field.</template>\n *\n * <bento-input-field>Input field</bento-input-field>\n *\n * <bento-form-layout-field-tip>\n * <bento-dropdown label=\"Dropdown\" :items=\"dropdownItems\" placeholder=\"Select an animal\" />\n * <template #message>This is a small tip that can be used in small spaces</template>\n * </bento-form-layout-field-tip>\n *\n * <bento-form-layout-title subsection>\n * Section title\n * <template #description>Optional section description</template>\n * </bento-form-layout-title>\n * </bento-form-layout>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout.scss\" />\n","import { BentoAlertTypeOption } from '@/components/alert/alert.types';\n\nexport type BentoFormLayoutFieldTipTypeOption = `${BentoAlertTypeOption}`;\nexport const BentoFormLayoutFieldTipTypeOptions = ['warning', 'critical', 'highlight', 'success'];\n","<template>\n <div class=\"b-form-layout-field-tip\">\n <slot />\n <bento-alert v-if=\"hasSlot('message')\" variant=\"tip\" :type=\"type\">\n <template #description>\n <slot name=\"message\" />\n </template>\n </bento-alert>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { PropType, useSlots } from 'vue';\n import { BentoFormLayoutFieldTipTypeOption, BentoFormLayoutFieldTipTypeOptions } from './form-layout-tip.types';\n import { BentoAlert } from '@/components/alert';\n import { useHasSlot } from '@/composables/use-has-slot/use-has-slot';\n\n defineProps({\n /**\n * Type of a alert; set a distinctive icon and color. Defaults to highlight.\n * @values highlight, success, critical, warning\n */\n type: {\n type: String as PropType<BentoFormLayoutFieldTipTypeOption>,\n default: 'highlight',\n validator: (value: BentoFormLayoutFieldTipTypeOption) => BentoFormLayoutFieldTipTypeOptions.includes(value),\n },\n });\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n</script>\n\n<script lang=\"ts\">\n /**\n * You can help users provide accurate and well formatted information\n * by using various elements that come with an input field.\n *\n * Use description/supporting text to add additional context to the\n * field or guidance how to format the input correctly.\n * Because description is always visible it should be the first\n * choice in providing guidance.\n *\n * @example\n * import { BentoFormLayoutFieldTip } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutFieldTip },\n * template: `\n * <bento-form-layout-field-tip>\n * <bento-dropdown label=\"Dropdown\" :items=\"dropdownItems\" placeholder=\"Select an animal\" />\n *\n * <template #message>This is a small tip that can be used in small spaces</template>\n * </bento-form-layout-field-tip>\n * `\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-field-tip.scss\" />\n","export type BentoLayoutGroupProportions =\n | '33-33-33'\n | '50-50'\n | '25-75'\n | '75-25'\n | '33-66'\n | '66-33'\n | '25'\n | '33'\n | '50'\n | '100';\n\nexport const BentoLayoutGroupProportions = [\n '100',\n '50',\n '33',\n '25',\n '66-33',\n '33-66',\n '75-25',\n '25-75',\n '50-50',\n '33-33-33',\n];\n","<template>\n <div class=\"b-form-layout-group\" :class=\"conditionalClasses\">\n <slot></slot>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, PropType } from 'vue';\n import { BentoLayoutGroupProportions } from './form-layout-group.types';\n\n // Default proportion\n const DEFAULT_PROPORTION = 100;\n\n const props = defineProps({\n /**\n * The layout of the pair group of components.\n * This will render the components within the width of the proportions.\n * Only two colums are available.\n *\n * If only one value is entered, then it will assume there's only one child in the group.\n * If two values are entered, the first value will be use for the first child and the second\n * value for the second child.\n *\n * If the value entered is not listed in the example\n * list below it will use 100% by default.\n * @example\n * '33-33-33'\n * '50-50'\n * '25-75'\n * '75-25'\n * '33-66'\n * '66-33'\n * '25'\n * '33'\n * '50'\n * '100'\n */\n layout: {\n type: String as PropType<BentoLayoutGroupProportions>,\n default: '100',\n validator: (value: BentoLayoutGroupProportions) => BentoLayoutGroupProportions.includes(value),\n },\n });\n\n // Sets DEFAULT_PROPORTION by default if `layout` is not in the list\n const computedLayout = computed(() =>\n BentoLayoutGroupProportions.includes(props.layout) ? props.layout : DEFAULT_PROPORTION\n );\n\n const conditionalClasses = computed(() => ({\n // Transform into column if the layout is unsupported\n 'b-form-layout-group--column': !BentoLayoutGroupProportions.includes(props.layout),\n // Assings the correct layout class\n [`b-form-layout-group--${computedLayout.value}`]: true,\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * Use to provide horizontal layouts to build forms\n * with two fields per line.\n *\n * These can be used for field combinations,\n * such as post code and city or title and first name.\n *\n * @example\n * import { BentoFormLayoutGroup } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutGroup },\n * template: `\n * <bento-form-layout-group>\n * <first-element />\n * <second-element />\n * </bento-form-layout-group>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-group.scss\" />\n","<template>\n <div class=\"b-form-layout-title\" :class=\"conditionalClasses\">\n <bento-typography :el=\"el\" variant=\"title\" :medium=\"isSection\">\n <slot />\n </bento-typography>\n\n <bento-typography v-if=\"hasSlot('description')\" class=\"b-form-layout-title__description\" el=\"span\" wide>\n <slot name=\"description\" />\n </bento-typography>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, useSlots } from 'vue';\n import { BentoTypography, BentoTypographyElement } from '@/components/typography';\n import { useHasSlot } from '@/composables';\n\n const slots = useSlots();\n\n const props = defineProps({\n /**\n * Defines if the Form Layout title is\n * a \"section\" or a \"subsection\".\n * Default is \"section\" (false). Turn into \"true\" for \"subsection\"\n */\n subsection: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets the HTML DOM element.\n * @values h1, h2, h3, h4, h5, h6, div, p, span\n */\n el: {\n type: BentoTypography.props.el.type,\n required: true,\n validator: (value: BentoTypographyElement) => Object.values(BentoTypographyElement).includes(value),\n },\n });\n\n // Uses \"medium\" typography if it is a section title\n const isSection = computed(() => !props.subsection);\n const hasSlot = useHasSlot(slots);\n const conditionalClasses = computed(() => ({\n 'b-form-layout-title--subsection': props.subsection,\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * If you’re building a lengthy form, organise related\n * fields into sections and, if needed, subsections.\n *\n * A form can have a \"Section Title\" and multiple \"Subsection titles\".\n *\n * One of the values provided in @see BentoTypographyElement must always be provided as a string\n * to define correct HTML sementic from the application's context\n *\n * @example\n * import { BentoFormLayoutTitle } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutTitle },\n * template: `\n * <bento-form-layout-title subsection el=\"h2\">\n * Title\n * <template #description>Description text</template>\n * </bento-form-layout-title>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-title.scss\" />\n"],"names":["__default__$3","slots","useSlots","hasSlot","useHasSlot","formLayoutElement","computed","props","hasActions","provide","FORM_LAYOUT_LOADING_INJECTION_KEY","toRef","BentoFormLayoutFieldTipTypeOptions","__default__$2","BentoLayoutGroupProportions","__default__$1","DEFAULT_PROPORTION","computedLayout","conditionalClasses","__default__","isSection"],"mappings":";;;;;;;AAsFI,MAAAA,IAAA,CAAA;;;;;;;;;;;;;;;iBA1DAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAeAI,IAAAC,EAAA,MAAAC,EAAA,OAAA,SAAA,KAAA,GACAC,IAAAF,EAAA,MAAAH,EAAA,cAAA,KAAAA,EAAA,eAAA,CAAA;AAEA,WAAAM,EAAAC,GAAAC,EAAAJ,GAAA,SAAA,CAAA;;;;;;;;;;;;;;;;qBC5CGK,IAAA,CAAA,WAAA,YAAA,aAAA,SAAA,GCqDHC,IAAA,CAAA;;;;;;;;;;;;;;;AA3BA,UAAAZ,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA;;;;;;;;;;;;;;;;;qBClBGa,IAAA;AAAA,EAAoC;AAAA,EACvC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAEJ,GCuDIC,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAnEAC,IAAA,KAkCAC,IAAAX;AAAA,MAAuB,MAAAQ,EAAA,SAAAP,EAAA,MAAA,IAAAA,EAAA,SAAAS;AAAA,IACiD,GAGxEE,IAAAZ,EAAA,OAAA;AAAA;AAAA,MAA2C,+BAAA,CAAAQ,EAAA,SAAAP,EAAA,MAAA;AAAA;AAAA,MAE0C,CAAA,wBAAAU,EAAA,KAAA,EAAA,GAAA;AAAA,IAE/B,EAAA;;;;;;;;;;;;;;;qBCmBtDE,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;iBAvDAlB,IAAAC,EAAA,GAyBAkB,IAAAd,EAAA,MAAA,CAAAC,EAAA,UAAA,GACAJ,IAAAC,EAAAH,CAAA,GACAiB,IAAAZ,EAAA,OAAA;AAAA,MAA2C,mCAAAC,EAAA;AAAA,IACE,EAAA;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"form-layout-title.DomnJXLE.js","sources":["../../src/components/form-layout/form-layout.vue","../../src/components/form-layout/components/form-layout-field-tip/form-layout-tip.types.ts","../../src/components/form-layout/components/form-layout-field-tip/form-layout-field-tip.vue","../../src/components/form-layout/components/form-layout-group/form-layout-group.types.ts","../../src/components/form-layout/components/form-layout-group/form-layout-group.vue","../../src/components/form-layout/components/form-layout-title/form-layout-title.vue"],"sourcesContent":["<template>\n <component :is=\"formLayoutElement\" class=\"b-form-layout\" role=\"form\">\n <bento-alert v-if=\"hasSlot('error-message')\" class=\"b-form-layout__error-message\" type=\"critical\">\n <template #description>\n <slot name=\"error-message\" />\n </template>\n </bento-alert>\n\n <slot />\n\n <div v-if=\"hasActions\" class=\"b-form-layout__actions-container\">\n <div class=\"b-form-layout__actions\">\n <slot name=\"actions-left\" />\n </div>\n\n <div class=\"b-form-layout__actions\">\n <slot name=\"actions-right\" />\n </div>\n </div>\n </component>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, provide, toRef, useSlots } from 'vue';\n import { BentoAlert } from '@/components/alert';\n import { useHasSlot } from '@/composables';\n import { FORM_LAYOUT_LOADING_INJECTION_KEY } from './form-layout.types';\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n const props = defineProps({\n /**\n * Renders the form layout as an HTML `form`\n */\n form: { type: Boolean, default: false },\n\n /**\n * Sets the state of the form and its fields to\n * a read only status.\n */\n loading: { type: Boolean, default: false },\n });\n\n const formLayoutElement = computed(() => (props.form ? 'form' : 'div'));\n const hasActions = computed(() => hasSlot('actions-left') || hasSlot('actions-right'));\n\n provide(FORM_LAYOUT_LOADING_INJECTION_KEY, toRef(props, 'loading'));\n</script>\n\n<script lang=\"ts\">\n /**\n * Form layout component is a pre-designed layout that serves\n * as a starting point for creating a form.\n *\n * It can include various common form components:\n * input field, dropdown, date picker, checkbox group, radio group,\n * textarea, etc.\n *\n * Form layout is context agnostic and can be dropped in different\n * places, for example in modals, side panels or pages.\n *\n * @example\n * import { BentoFormLayout, BentoFormLayoutFieldTip } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayout, BentoFormLayoutFieldTip },\n * template: `\n * <bento-form-layout>\n * <template #error-message>There is an error. Correct the highlighted field.</template>\n *\n * <bento-input-field>Input field</bento-input-field>\n *\n * <bento-form-layout-field-tip>\n * <bento-dropdown label=\"Dropdown\" :items=\"dropdownItems\" placeholder=\"Select an animal\" />\n * <template #message>This is a small tip that can be used in small spaces</template>\n * </bento-form-layout-field-tip>\n *\n * <bento-form-layout-title subsection>\n * Section title\n * <template #description>Optional section description</template>\n * </bento-form-layout-title>\n * </bento-form-layout>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout.scss\" />\n","import { BentoAlertTypeOption } from '@/components/alert/alert.types';\n\nexport type BentoFormLayoutFieldTipTypeOption = `${BentoAlertTypeOption}`;\nexport const BentoFormLayoutFieldTipTypeOptions = ['warning', 'critical', 'highlight', 'success'];\n","<template>\n <div class=\"b-form-layout-field-tip\">\n <slot />\n <bento-alert v-if=\"hasSlot('message')\" variant=\"tip\" :type=\"type\">\n <template #description>\n <slot name=\"message\" />\n </template>\n </bento-alert>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { PropType, useSlots } from 'vue';\n import { BentoFormLayoutFieldTipTypeOption, BentoFormLayoutFieldTipTypeOptions } from './form-layout-tip.types';\n import { BentoAlert } from '@/components/alert';\n import { useHasSlot } from '@/composables/use-has-slot/use-has-slot';\n\n defineProps({\n /**\n * Type of a alert; set a distinctive icon and color. Defaults to highlight.\n * @values highlight, success, critical, warning\n */\n type: {\n type: String as PropType<BentoFormLayoutFieldTipTypeOption>,\n default: 'highlight',\n validator: (value: BentoFormLayoutFieldTipTypeOption) => BentoFormLayoutFieldTipTypeOptions.includes(value),\n },\n });\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n</script>\n\n<script lang=\"ts\">\n /**\n * You can help users provide accurate and well formatted information\n * by using various elements that come with an input field.\n *\n * Use description/supporting text to add additional context to the\n * field or guidance how to format the input correctly.\n * Because description is always visible it should be the first\n * choice in providing guidance.\n *\n * @example\n * import { BentoFormLayoutFieldTip } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutFieldTip },\n * template: `\n * <bento-form-layout-field-tip>\n * <bento-dropdown label=\"Dropdown\" :items=\"dropdownItems\" placeholder=\"Select an animal\" />\n *\n * <template #message>This is a small tip that can be used in small spaces</template>\n * </bento-form-layout-field-tip>\n * `\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-field-tip.scss\" />\n","export type BentoLayoutGroupProportions =\n | '33-33-33'\n | '50-50'\n | '25-75'\n | '75-25'\n | '33-66'\n | '66-33'\n | '25'\n | '33'\n | '50'\n | '100';\n\nexport const BentoLayoutGroupProportions = [\n '100',\n '50',\n '33',\n '25',\n '66-33',\n '33-66',\n '75-25',\n '25-75',\n '50-50',\n '33-33-33',\n];\n","<template>\n <div class=\"b-form-layout-group\" :class=\"conditionalClasses\">\n <slot></slot>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, PropType } from 'vue';\n import { BentoLayoutGroupProportions } from './form-layout-group.types';\n\n // Default proportion\n const DEFAULT_PROPORTION = 100;\n\n const props = defineProps({\n /**\n * The layout of the pair group of components.\n * This will render the components within the width of the proportions.\n * Only two colums are available.\n *\n * If only one value is entered, then it will assume there's only one child in the group.\n * If two values are entered, the first value will be use for the first child and the second\n * value for the second child.\n *\n * If the value entered is not listed in the example\n * list below it will use 100% by default.\n * @example\n * '33-33-33'\n * '50-50'\n * '25-75'\n * '75-25'\n * '33-66'\n * '66-33'\n * '25'\n * '33'\n * '50'\n * '100'\n */\n layout: {\n type: String as PropType<BentoLayoutGroupProportions>,\n default: '100',\n validator: (value: BentoLayoutGroupProportions) => BentoLayoutGroupProportions.includes(value),\n },\n });\n\n // Sets DEFAULT_PROPORTION by default if `layout` is not in the list\n const computedLayout = computed(() =>\n BentoLayoutGroupProportions.includes(props.layout) ? props.layout : DEFAULT_PROPORTION\n );\n\n const conditionalClasses = computed(() => ({\n // Transform into column if the layout is unsupported\n 'b-form-layout-group--column': !BentoLayoutGroupProportions.includes(props.layout),\n // Assings the correct layout class\n [`b-form-layout-group--${computedLayout.value}`]: true,\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * Use to provide horizontal layouts to build forms\n * with two fields per line.\n *\n * These can be used for field combinations,\n * such as post code and city or title and first name.\n *\n * @example\n * import { BentoFormLayoutGroup } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutGroup },\n * template: `\n * <bento-form-layout-group>\n * <first-element />\n * <second-element />\n * </bento-form-layout-group>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-group.scss\" />\n","<template>\n <div class=\"b-form-layout-title\" :class=\"conditionalClasses\">\n <bento-typography :el=\"el\" variant=\"title\" :medium=\"isSection\">\n <slot />\n </bento-typography>\n\n <bento-typography v-if=\"hasSlot('description')\" class=\"b-form-layout-title__description\" el=\"span\" wide>\n <slot name=\"description\" />\n </bento-typography>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, useSlots } from 'vue';\n import { BentoTypography, BentoTypographyElement } from '@/components/typography';\n import { useHasSlot } from '@/composables';\n\n const slots = useSlots();\n\n const props = defineProps({\n /**\n * Defines if the Form Layout title is\n * a \"section\" or a \"subsection\".\n * Default is \"section\" (false). Turn into \"true\" for \"subsection\"\n */\n subsection: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets the HTML DOM element.\n * @values h1, h2, h3, h4, h5, h6, div, p, span\n */\n el: {\n type: BentoTypography.props.el.type,\n required: true,\n validator: (value: BentoTypographyElement) => Object.values(BentoTypographyElement).includes(value),\n },\n });\n\n // Uses \"medium\" typography if it is a section title\n const isSection = computed(() => !props.subsection);\n const hasSlot = useHasSlot(slots);\n const conditionalClasses = computed(() => ({\n 'b-form-layout-title--subsection': props.subsection,\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * If you’re building a lengthy form, organise related\n * fields into sections and, if needed, subsections.\n *\n * A form can have a \"Section Title\" and multiple \"Subsection titles\".\n *\n * One of the values provided in @see BentoTypographyElement must always be provided as a string\n * to define correct HTML sementic from the application's context\n *\n * @example\n * import { BentoFormLayoutTitle } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutTitle },\n * template: `\n * <bento-form-layout-title subsection el=\"h2\">\n * Title\n * <template #description>Description text</template>\n * </bento-form-layout-title>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-title.scss\" />\n"],"names":["__default__$3","slots","useSlots","hasSlot","useHasSlot","formLayoutElement","computed","props","hasActions","provide","FORM_LAYOUT_LOADING_INJECTION_KEY","toRef","BentoFormLayoutFieldTipTypeOptions","__default__$2","BentoLayoutGroupProportions","__default__$1","DEFAULT_PROPORTION","computedLayout","conditionalClasses","__default__","isSection"],"mappings":";;;;;;;AAsFI,MAAAA,IAAA,CAAA;;;;;;;;;;;;;;;iBA1DAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAeAI,IAAAC,EAAA,MAAAC,EAAA,OAAA,SAAA,KAAA,GACAC,IAAAF,EAAA,MAAAH,EAAA,cAAA,KAAAA,EAAA,eAAA,CAAA;AAEA,WAAAM,EAAAC,GAAAC,EAAAJ,GAAA,SAAA,CAAA;;;;;;;;;;;;;;;;qBC5CGK,IAAA,CAAA,WAAA,YAAA,aAAA,SAAA,GCqDHC,IAAA,CAAA;;;;;;;;;;;;;;;AA3BA,UAAAZ,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA;;;;;;;;;;;;;;;;;qBClBGa,IAAA;AAAA,EAAoC;AAAA,EACvC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAEJ,GCuDIC,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAnEAC,IAAA,KAkCAC,IAAAX;AAAA,MAAuB,MAAAQ,EAAA,SAAAP,EAAA,MAAA,IAAAA,EAAA,SAAAS;AAAA,IACiD,GAGxEE,IAAAZ,EAAA,OAAA;AAAA;AAAA,MAA2C,+BAAA,CAAAQ,EAAA,SAAAP,EAAA,MAAA;AAAA;AAAA,MAE0C,CAAA,wBAAAU,EAAA,KAAA,EAAA,GAAA;AAAA,IAE/B,EAAA;;;;;;;;;;;;;;;qBCmBtDE,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;iBAvDAlB,IAAAC,EAAA,GAyBAkB,IAAAd,EAAA,MAAA,CAAAC,EAAA,UAAA,GACAJ,IAAAC,EAAAH,CAAA,GACAiB,IAAAZ,EAAA,OAAA;AAAA,MAA2C,mCAAAC,EAAA;AAAA,IACE,EAAA;;;;;;;;;;;;;;;;"}