@adyen/bento-vue3 1.40.0 → 1.41.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 (140) hide show
  1. package/dist/@types/components.d.ts +6 -0
  2. package/dist/@types/packages/vue2/src/components/currency/currency.types.d.ts +18 -0
  3. package/dist/@types/packages/vue2/src/components/currency/currency.vue.d.ts +34 -211
  4. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.types.d.ts +0 -1
  5. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +1 -1
  6. package/dist/@types/packages/vue2/src/components/data-grid/composables/index.d.ts +1 -1
  7. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-calculate-column-width/use-calculate-column-width.d.ts +1 -0
  8. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-scroller/use-scroller.d.ts +10 -1
  9. package/dist/@types/packages/vue2/src/components/data-grid/composables/{use-selector.d.ts → use-selector/use-selector.d.ts} +2 -2
  10. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-sorter.d.ts +1 -2
  11. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +16 -1
  12. package/dist/@types/packages/vue2/src/components/image/image.vue.d.ts +43 -72
  13. package/dist/@types/packages/vue2/src/components/image/index.d.ts +1 -1
  14. package/dist/@types/packages/vue2/src/components/layout/components/layout-row/layout-row.vue.d.ts +54 -0
  15. package/dist/@types/packages/vue2/src/components/layout/index.d.ts +3 -0
  16. package/dist/@types/packages/vue2/src/components/layout/layout.keys.d.ts +1 -0
  17. package/dist/@types/packages/vue2/src/components/layout/layout.types.d.ts +19 -0
  18. package/dist/@types/packages/vue2/src/components/layout/layout.vue.d.ts +53 -0
  19. package/dist/@types/packages/vue2/src/components/promo-banner/__mock-image.d.ts +1 -0
  20. package/dist/@types/packages/vue2/src/components/promo-banner/index.d.ts +2 -0
  21. package/dist/@types/packages/vue2/src/components/promo-banner/promo-banner.types.d.ts +83 -0
  22. package/dist/@types/packages/vue2/src/components/promo-banner/promo-banner.vue.d.ts +65 -0
  23. package/dist/@types/packages/vue2/src/components/selection-card/components/selection-card-group/selection-card-group.types.d.ts +2 -0
  24. package/dist/@types/packages/vue2/src/components/selection-card/components/selection-card-group/selection-card-group.vue.d.ts +19 -4
  25. package/dist/@types/packages/vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +1 -3
  26. package/dist/@types/packages/vue2/src/components/structured-list/structured-list.vue.d.ts +1 -3
  27. package/dist/@types/packages/vue2/src/components/tutorial/components/tutorial-popover/tutorial-popover.vue.d.ts +4 -4
  28. package/dist/@types/packages/vue2/src/index.d.ts +2 -0
  29. package/dist/action-bar.js +1 -1
  30. package/dist/assets/accordion-item.css +1 -1
  31. package/dist/assets/action-bar.css +1 -1
  32. package/dist/assets/base-modal.css +1 -1
  33. package/dist/assets/card.css +1 -1
  34. package/dist/assets/currency.css +1 -1
  35. package/dist/assets/data-grid.css +1 -1
  36. package/dist/assets/dialog-page.css +1 -1
  37. package/dist/assets/inspector.css +1 -1
  38. package/dist/assets/layout-row.css +1 -0
  39. package/dist/assets/menu.css +1 -1
  40. package/dist/assets/modal-fullscreen.css +1 -1
  41. package/dist/assets/popover.css +1 -1
  42. package/dist/assets/promo-banner.css +1 -0
  43. package/dist/assets/selection-card-group.css +1 -1
  44. package/dist/assets/sidepanel.css +1 -1
  45. package/dist/assets/structured-list-item.css +1 -1
  46. package/dist/checkbox.js +2 -2
  47. package/dist/chunks/{action-bar.CNH2XWmk.js → action-bar.BZIBGja0.js} +2 -2
  48. package/dist/chunks/{action-bar.CNH2XWmk.js.map → action-bar.BZIBGja0.js.map} +1 -1
  49. package/dist/chunks/{checkbox-group.Bu6WRt6i.js → checkbox-group.Zf-GivDW.js} +2 -2
  50. package/dist/chunks/{checkbox-group.Bu6WRt6i.js.map → checkbox-group.Zf-GivDW.js.map} +1 -1
  51. package/dist/chunks/{checkbox.DfUxRkJe.js → checkbox.DdMkyTo5.js} +15 -15
  52. package/dist/chunks/{checkbox.DfUxRkJe.js.map → checkbox.DdMkyTo5.js.map} +1 -1
  53. package/dist/chunks/{code-snippet.DqTEK8cz.js → code-snippet.Dp_tDJ-S.js} +3 -3
  54. package/dist/chunks/{code-snippet.DqTEK8cz.js.map → code-snippet.Dp_tDJ-S.js.map} +1 -1
  55. package/dist/chunks/{currency.BGrGBnhm.js → currency.Dz2x17_Q.js} +57 -70
  56. package/dist/chunks/currency.Dz2x17_Q.js.map +1 -0
  57. package/dist/chunks/{dashboard-section.rv0r2_-a.js → dashboard-section.BdRXcY4u.js} +2 -2
  58. package/dist/chunks/{dashboard-section.rv0r2_-a.js.map → dashboard-section.BdRXcY4u.js.map} +1 -1
  59. package/dist/chunks/{data-grid.DR-w_KKU.js → data-grid.BC2tOBxm.js} +1329 -1276
  60. package/dist/chunks/data-grid.BC2tOBxm.js.map +1 -0
  61. package/dist/chunks/{date-picker.mfXjVZ9w.js → date-picker.B6HK0sb2.js} +14 -14
  62. package/dist/chunks/{date-picker.mfXjVZ9w.js.map → date-picker.B6HK0sb2.js.map} +1 -1
  63. package/dist/chunks/{date-range-picker.Cs8Ia3Qs.js → date-range-picker.3iWt1Cd6.js} +23 -23
  64. package/dist/chunks/{date-range-picker.Cs8Ia3Qs.js.map → date-range-picker.3iWt1Cd6.js.map} +1 -1
  65. package/dist/chunks/{dropdown-tag.DeoUXbp4.js → dropdown-tag.ChFJ9l5g.js} +2 -2
  66. package/dist/chunks/{dropdown-tag.DeoUXbp4.js.map → dropdown-tag.ChFJ9l5g.js.map} +1 -1
  67. package/dist/chunks/{dropdown.DBxpqjEM.js → dropdown.CMKdLPHi.js} +26 -26
  68. package/dist/chunks/{dropdown.DBxpqjEM.js.map → dropdown.CMKdLPHi.js.map} +1 -1
  69. package/dist/chunks/es6.b4enG1py.js +10 -0
  70. package/dist/chunks/es6.b4enG1py.js.map +1 -0
  71. package/dist/chunks/{filter-bar.DiW13x-f.js → filter-bar.pKcJryD3.js} +7 -7
  72. package/dist/chunks/{filter-bar.DiW13x-f.js.map → filter-bar.pKcJryD3.js.map} +1 -1
  73. package/dist/chunks/image.vue_vue_type_script_setup_true_lang.BMoSMeM-.js +47 -0
  74. package/dist/chunks/image.vue_vue_type_script_setup_true_lang.BMoSMeM-.js.map +1 -0
  75. package/dist/chunks/index.ChdIlujs.js +248 -0
  76. package/dist/chunks/{index.DKQuLmwu.js.map → index.ChdIlujs.js.map} +1 -1
  77. package/dist/chunks/{input-field.DbeVnbwg.js → input-field.Bk2p3kIb.js} +2 -2
  78. package/dist/chunks/{input-field.DbeVnbwg.js.map → input-field.Bk2p3kIb.js.map} +1 -1
  79. package/dist/chunks/layout-row.rzhGrBQ3.js +101 -0
  80. package/dist/chunks/layout-row.rzhGrBQ3.js.map +1 -0
  81. package/dist/chunks/{pagination.B-OihXTg.js → pagination.D_4FRHE9.js} +2 -2
  82. package/dist/chunks/{pagination.B-OihXTg.js.map → pagination.D_4FRHE9.js.map} +1 -1
  83. package/dist/chunks/promo-banner.BRn1iznD.js +126 -0
  84. package/dist/chunks/promo-banner.BRn1iznD.js.map +1 -0
  85. package/dist/chunks/{search-bar.DN-QKFlJ.js → search-bar.D_4u91te.js} +3 -3
  86. package/dist/chunks/{search-bar.DN-QKFlJ.js.map → search-bar.D_4u91te.js.map} +1 -1
  87. package/dist/chunks/{secondary-nav.C-7Qq6rE.js → secondary-nav.CQ3aLyrM.js} +4 -4
  88. package/dist/chunks/{secondary-nav.C-7Qq6rE.js.map → secondary-nav.CQ3aLyrM.js.map} +1 -1
  89. package/dist/chunks/selection-card-group.Du3Cwf47.js +474 -0
  90. package/dist/chunks/selection-card-group.Du3Cwf47.js.map +1 -0
  91. package/dist/chunks/{structured-list-item.BhNJlDub.js → structured-list-item.CujUEOTK.js} +3 -3
  92. package/dist/chunks/structured-list-item.CujUEOTK.js.map +1 -0
  93. package/dist/chunks/{timeline-item.CEolKFn0.js → timeline-item.B8VvkDfR.js} +2 -2
  94. package/dist/chunks/{timeline-item.CEolKFn0.js.map → timeline-item.B8VvkDfR.js.map} +1 -1
  95. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.Bz6QyDuV.js → tutorial.vue_vue_type_script_setup_true_lang.CGpbGgfc.js} +9 -9
  96. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.Bz6QyDuV.js.map → tutorial.vue_vue_type_script_setup_true_lang.CGpbGgfc.js.map} +1 -1
  97. package/dist/chunks/{use-cached-selected-values.C7Lt5U_S.js → use-cached-selected-values.DaRzXFIt.js} +2 -2
  98. package/dist/chunks/{use-cached-selected-values.C7Lt5U_S.js.map → use-cached-selected-values.DaRzXFIt.js.map} +1 -1
  99. package/dist/code-snippet.js +1 -1
  100. package/dist/currency.js +1 -1
  101. package/dist/dashboard-template.js +1 -1
  102. package/dist/data-grid.js +1 -1
  103. package/dist/date-picker.js +1 -1
  104. package/dist/date-range-picker.js +1 -1
  105. package/dist/dropdown.js +3 -3
  106. package/dist/filter-bar.js +1 -1
  107. package/dist/image.js +1 -1
  108. package/dist/index.js +197 -190
  109. package/dist/index.js.map +1 -1
  110. package/dist/input-field.js +1 -1
  111. package/dist/internal.js +1 -1
  112. package/dist/layout.js +6 -0
  113. package/dist/layout.js.map +1 -0
  114. package/dist/pagination.js +1 -1
  115. package/dist/promo-banner.js +7 -0
  116. package/dist/promo-banner.js.map +1 -0
  117. package/dist/search-bar.js +2 -2
  118. package/dist/secondary-nav.js +1 -1
  119. package/dist/selection-card.js +1 -1
  120. package/dist/structured-list.js +1 -1
  121. package/dist/styles/bento-dark.css +16 -0
  122. package/dist/styles/bento-light.css +16 -0
  123. package/dist/styles/bento.css +16 -0
  124. package/dist/styles/legacy.css +16 -0
  125. package/dist/styles/styleguide.css +16 -0
  126. package/dist/timeline.js +1 -1
  127. package/dist/tutorial.js +1 -1
  128. package/dist/web-types.json +1 -1
  129. package/package.json +2 -2
  130. package/dist/@types/packages/vue2/src/components/image/image.types.d.ts +0 -19
  131. package/dist/chunks/currency.BGrGBnhm.js.map +0 -1
  132. package/dist/chunks/data-grid.DR-w_KKU.js.map +0 -1
  133. package/dist/chunks/es6.BvpG4Oi6.js +0 -9
  134. package/dist/chunks/es6.BvpG4Oi6.js.map +0 -1
  135. package/dist/chunks/image.0KzfycGE.js +0 -78
  136. package/dist/chunks/image.0KzfycGE.js.map +0 -1
  137. package/dist/chunks/index.DKQuLmwu.js +0 -182
  138. package/dist/chunks/selection-card-group.DkSYInMF.js +0 -392
  139. package/dist/chunks/selection-card-group.DkSYInMF.js.map +0 -1
  140. package/dist/chunks/structured-list-item.BhNJlDub.js.map +0 -1
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as S, provide as E, toRef as g, useAttrs as A, ref as p, watch as P, openBlock as T, createElementBlock as N, createVNode as n, mergeProps as F, unref as s, createSlots as x, withCtx as m, createElementVNode as L, withKeys as f } from "vue";
2
2
  import { d as U } from "./debounce.DUTu11PS.js";
3
3
  import { u as k } from "./i18n.CPGoe9tN.js";
4
- import { B as K } from "./input-field.DbeVnbwg.js";
5
- import { I as R } from "./dropdown.DBxpqjEM.js";
4
+ import { B as K } from "./input-field.Bk2p3kIb.js";
5
+ import { I as R } from "./dropdown.CMKdLPHi.js";
6
6
  import { S as w } from "./search.EnLryD8V.js";
7
7
  import { C as D } from "./cross-circle-fill.DN5b3_eL.js";
8
8
  import { _ as $ } from "./_plugin-vue_export-helper.CHgC5LLL.js";
@@ -129,4 +129,4 @@ export {
129
129
  h as a,
130
130
  B as b
131
131
  };
132
- //# sourceMappingURL=search-bar.DN-QKFlJ.js.map
132
+ //# sourceMappingURL=search-bar.D_4u91te.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"search-bar.DN-QKFlJ.js","sources":["../../../vue2/src/components/search-bar/search-bar.types.ts","../../../vue2/src/components/search-bar/search-bar.vue"],"sourcesContent":["export enum BentoSearchBarInternalEvent {\n CLEAR = 'clear',\n ESCAPE = 'escape-pressed',\n INPUT = 'input',\n UPDATE = 'update:search-term',\n}\n\nexport enum BentoSearchBarEvent {\n CLEAR = 'search-clear',\n INPUT = 'search-input',\n UPDATE = 'update:search-term',\n}\n\nexport interface BentoSearchBarItem {\n label: string;\n items?: Array<BentoSearchBarItem>;\n}\n\nexport type BentoSearchBarData = Array<BentoSearchBarItem>;\n","<template>\n <div class=\"b-search-bar\">\n <bento-input-field\n ref=\"bentoInputField\"\n v-bind=\"attrs\"\n :value=\"searchTerm\"\n type=\"search\"\n :condensed=\"condensed\"\n :aria-label=\"inputFieldAriaLabel\"\n :aria-hidden=\"false\"\n :placeholder=\"placeholder\"\n @input=\"onInputEvent\"\n @focus=\"emit('focus')\"\n @blur=\"emit('blur')\"\n @escape-pressed=\"emit(BentoSearchBarInternalEvent.ESCAPE)\"\n >\n <template #iconBefore>\n <search-icon :svg-title=\"t('search')\" aria-hidden=\"true\" />\n </template>\n\n <template v-if=\"searchTerm\" #iconAfter>\n <div\n class=\"b-search-bar__clear-search\"\n tabindex=\"0\"\n data-testid=\"b-search-bar-clear-search-button\"\n @click=\"onClearSearch\"\n @keypress.enter=\"onClearSearch\"\n @keyup.space=\"onClearSearch\"\n >\n <cross-circle-fill-icon :svg-title=\"t('clearSearch')\" />\n </div>\n </template>\n </bento-input-field>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { provide, ref, toRef, watch } from 'vue';\n import { debounce } from '@/utils/ts/debounce';\n import { BentoSearchBarInternalEvent } from './search-bar.types';\n import { useI18n } from '@/utils/ts/i18n';\n import BentoInputField from '@/components/input-field/input-field.vue';\n import { INPUT_FIELD_HINT_INJECTION_KEY } from '@/components/input-field/input-field.keys';\n import SearchIcon from '@adyen/ui-assets-icons-16/vue/search';\n import CrossCircleFillIcon from '@adyen/ui-assets-icons-16/vue/cross-circle-fill';\n import messages from './messages.json';\n import { useAttrs } from 'vue';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const props = defineProps({\n /**\n * Text that labels an the search bar input element\n */\n inputFieldAriaLabel: { type: String, required: true },\n\n /**\n * Reduces height of the search bar\n */\n condensed: { type: Boolean, default: false },\n\n /**\n * Custom debounce time. Default: 300\n */\n debounceTime: { type: Number, default: 300 },\n\n /**\n * Text displayed as a hint when the field is not empty\n */\n hint: { type: String, default: '' },\n\n /**\n * Text displayed as the placeholder of the input-field\n */\n placeholder: { type: String, default: '' },\n\n /**\n * Text displayed as the value being searched\n */\n value: { type: String, default: undefined },\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when the input value changes by typing a search. Debounced by the `debounceTime` property\n */\n (e: 'input', inputValue: string): void;\n\n /**\n * Emitted when the \"clear search\" button is clicked\n */\n (e: 'clear'): void;\n\n /**\n * Emitted when the \"ESC\" key is pressed inside the Search Bar input\n */\n (e: 'escape-pressed'): void;\n\n /**\n * Emitted when the element has lost focus\n */\n (e: 'blur'): void;\n\n /**\n * Emitted when the element has received focus\n */\n (e: 'focus'): void;\n }>();\n\n provide(INPUT_FIELD_HINT_INJECTION_KEY, toRef(props, 'hint'));\n\n const attrs = useAttrs();\n const searchTerm = ref(props.value);\n const bentoInputField = ref<InstanceType<typeof BentoInputField> | null>();\n\n watch(\n () => props.value,\n () => {\n searchTerm.value = props.value;\n },\n { immediate: true }\n );\n\n const onClearSearch = () => {\n searchTerm.value = '';\n emit('clear');\n emit('input', '');\n };\n\n const debouncedEmit = debounce(() => {\n emit('input', searchTerm.value);\n }, props.debounceTime);\n\n const onInputEvent = (value: string) => {\n searchTerm.value = value;\n debouncedEmit();\n };\n\n const focus = () => {\n bentoInputField.value.focusInput();\n };\n\n // Expose method so that it can be used to focus on the input from outside the component\n defineExpose({\n /**\n * Focus on the input field when called.\n */\n focus,\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * Search functionality to help users find the desired data quicker.\n * When a user starts typing, the data is dynamically filtered to\n * only show the relevant results.\n *\n * Clearing the search field displays the entire list again.\n *\n * @example\n * import {\n * BentoSearchBar,\n * BentoSearchBarData,\n * useSearchBarFilter\n * } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoSearchBar },\n * template: `\n * <bento-search-bar\n * input-field-aria-label=\"Search bar\"\n * v-model=\"searchTerm\"\n * @input=\"onInput\"\n * @clear=\"onClearSearch\"\n * />\n * // Render the filtered data\n * {{ filteredData }}\n * `,\n * setup() {\n * const searchTerm = ref('');\n * const data = ref<BentoSearchBarData>([]);\n * const filteredData = useSearchBarFilter(searchTerm, data);\n *\n * consdt onInput = () => {}\n * consdt onClearSearch = () => {}\n *\n * return {\n * searchTerm,\n * filteredData,\n * onInput,\n * onClearSearch,\n * };\n * }\n * }\n */\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./search-bar.scss\" />\n"],"names":["BentoSearchBarInternalEvent","BentoSearchBarInternalEvent2","BentoSearchBarEvent","BentoSearchBarEvent2","__default__","messages","t","useI18n","props","__props","emit","__emit","provide","INPUT_FIELD_HINT_INJECTION_KEY","toRef","attrs","useAttrs","searchTerm","ref","bentoInputField","watch","onClearSearch","debouncedEmit","debounce","onInputEvent","value","__expose"],"mappings":";;;;;;;;;AAAY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,QAAA,SACAA,EAAA,SAAA,kBACAA,EAAA,QAAA,SACAA,EAAA,SAAA,sBAJQA,IAAAD,KAAA,CAAA,CAAA,GAOAE,IAAA,kBAAAC,OACRA,EAAA,QAAA,gBACAA,EAAA,QAAA,gBACAA,EAAA,SAAA,sBAHQA,IAAAD,KAAA,CAAA,CAAA;;;;;;;;;;;;;;kCC8LRE,IAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,EAAA;AAEf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AArJA,UAAA,EAAA,GAAAC,EAAA,IAAAC,EAAA,EAAA,UAAAF,EAAA,CAAA,GAEAG,IAAAC,GAgCAC,IAAAC;AA2BA,IAAAC,EAAAC,GAAAC,EAAAN,GAAA,MAAA,CAAA;AAEA,UAAAO,IAAAC,EAAA,GACAC,IAAAC,EAAAV,EAAA,KAAA,GACAW,IAAAD,EAAA;AAEA,IAAAE;AAAA,MAAA,MAAAZ,EAAA;AAAA,MACgB,MAAA;AAER,QAAAS,EAAA,QAAAT,EAAA;AAAA,MAAyB;AAAA,MAC7B,EAAA,WAAA,GAAA;AAAA,IACkB;AAGtB,UAAAa,IAAA,MAAA;AACI,MAAAJ,EAAA,QAAA,IACAP,EAAA,OAAA,GACAA,EAAA,SAAA,EAAA;AAAA,IAAgB,GAGpBY,IAAAC,EAAA,MAAA;AACI,MAAAb,EAAA,SAAAO,EAAA,KAAA;AAAA,IAA8B,GAAAT,EAAA,YAAA,GAGlCgB,IAAA,CAAAC,MAAA;AACI,MAAAR,EAAA,QAAAQ,GACAH,EAAA;AAAA,IAAc;AAQlB,WAAAI,EAAA;AAAA;AAAA;AAAA;AAAA,MAAa,OALb,MAAA;AACI,QAAAP,EAAA,MAAA,WAAA;AAAA,MAAiC;AAAA,IAQjC,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"search-bar.D_4u91te.js","sources":["../../../vue2/src/components/search-bar/search-bar.types.ts","../../../vue2/src/components/search-bar/search-bar.vue"],"sourcesContent":["export enum BentoSearchBarInternalEvent {\n CLEAR = 'clear',\n ESCAPE = 'escape-pressed',\n INPUT = 'input',\n UPDATE = 'update:search-term',\n}\n\nexport enum BentoSearchBarEvent {\n CLEAR = 'search-clear',\n INPUT = 'search-input',\n UPDATE = 'update:search-term',\n}\n\nexport interface BentoSearchBarItem {\n label: string;\n items?: Array<BentoSearchBarItem>;\n}\n\nexport type BentoSearchBarData = Array<BentoSearchBarItem>;\n","<template>\n <div class=\"b-search-bar\">\n <bento-input-field\n ref=\"bentoInputField\"\n v-bind=\"attrs\"\n :value=\"searchTerm\"\n type=\"search\"\n :condensed=\"condensed\"\n :aria-label=\"inputFieldAriaLabel\"\n :aria-hidden=\"false\"\n :placeholder=\"placeholder\"\n @input=\"onInputEvent\"\n @focus=\"emit('focus')\"\n @blur=\"emit('blur')\"\n @escape-pressed=\"emit(BentoSearchBarInternalEvent.ESCAPE)\"\n >\n <template #iconBefore>\n <search-icon :svg-title=\"t('search')\" aria-hidden=\"true\" />\n </template>\n\n <template v-if=\"searchTerm\" #iconAfter>\n <div\n class=\"b-search-bar__clear-search\"\n tabindex=\"0\"\n data-testid=\"b-search-bar-clear-search-button\"\n @click=\"onClearSearch\"\n @keypress.enter=\"onClearSearch\"\n @keyup.space=\"onClearSearch\"\n >\n <cross-circle-fill-icon :svg-title=\"t('clearSearch')\" />\n </div>\n </template>\n </bento-input-field>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { provide, ref, toRef, watch } from 'vue';\n import { debounce } from '@/utils/ts/debounce';\n import { BentoSearchBarInternalEvent } from './search-bar.types';\n import { useI18n } from '@/utils/ts/i18n';\n import BentoInputField from '@/components/input-field/input-field.vue';\n import { INPUT_FIELD_HINT_INJECTION_KEY } from '@/components/input-field/input-field.keys';\n import SearchIcon from '@adyen/ui-assets-icons-16/vue/search';\n import CrossCircleFillIcon from '@adyen/ui-assets-icons-16/vue/cross-circle-fill';\n import messages from './messages.json';\n import { useAttrs } from 'vue';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const props = defineProps({\n /**\n * Text that labels an the search bar input element\n */\n inputFieldAriaLabel: { type: String, required: true },\n\n /**\n * Reduces height of the search bar\n */\n condensed: { type: Boolean, default: false },\n\n /**\n * Custom debounce time. Default: 300\n */\n debounceTime: { type: Number, default: 300 },\n\n /**\n * Text displayed as a hint when the field is not empty\n */\n hint: { type: String, default: '' },\n\n /**\n * Text displayed as the placeholder of the input-field\n */\n placeholder: { type: String, default: '' },\n\n /**\n * Text displayed as the value being searched\n */\n value: { type: String, default: undefined },\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when the input value changes by typing a search. Debounced by the `debounceTime` property\n */\n (e: 'input', inputValue: string): void;\n\n /**\n * Emitted when the \"clear search\" button is clicked\n */\n (e: 'clear'): void;\n\n /**\n * Emitted when the \"ESC\" key is pressed inside the Search Bar input\n */\n (e: 'escape-pressed'): void;\n\n /**\n * Emitted when the element has lost focus\n */\n (e: 'blur'): void;\n\n /**\n * Emitted when the element has received focus\n */\n (e: 'focus'): void;\n }>();\n\n provide(INPUT_FIELD_HINT_INJECTION_KEY, toRef(props, 'hint'));\n\n const attrs = useAttrs();\n const searchTerm = ref(props.value);\n const bentoInputField = ref<InstanceType<typeof BentoInputField> | null>();\n\n watch(\n () => props.value,\n () => {\n searchTerm.value = props.value;\n },\n { immediate: true }\n );\n\n const onClearSearch = () => {\n searchTerm.value = '';\n emit('clear');\n emit('input', '');\n };\n\n const debouncedEmit = debounce(() => {\n emit('input', searchTerm.value);\n }, props.debounceTime);\n\n const onInputEvent = (value: string) => {\n searchTerm.value = value;\n debouncedEmit();\n };\n\n const focus = () => {\n bentoInputField.value.focusInput();\n };\n\n // Expose method so that it can be used to focus on the input from outside the component\n defineExpose({\n /**\n * Focus on the input field when called.\n */\n focus,\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * Search functionality to help users find the desired data quicker.\n * When a user starts typing, the data is dynamically filtered to\n * only show the relevant results.\n *\n * Clearing the search field displays the entire list again.\n *\n * @example\n * import {\n * BentoSearchBar,\n * BentoSearchBarData,\n * useSearchBarFilter\n * } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoSearchBar },\n * template: `\n * <bento-search-bar\n * input-field-aria-label=\"Search bar\"\n * v-model=\"searchTerm\"\n * @input=\"onInput\"\n * @clear=\"onClearSearch\"\n * />\n * // Render the filtered data\n * {{ filteredData }}\n * `,\n * setup() {\n * const searchTerm = ref('');\n * const data = ref<BentoSearchBarData>([]);\n * const filteredData = useSearchBarFilter(searchTerm, data);\n *\n * consdt onInput = () => {}\n * consdt onClearSearch = () => {}\n *\n * return {\n * searchTerm,\n * filteredData,\n * onInput,\n * onClearSearch,\n * };\n * }\n * }\n */\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./search-bar.scss\" />\n"],"names":["BentoSearchBarInternalEvent","BentoSearchBarInternalEvent2","BentoSearchBarEvent","BentoSearchBarEvent2","__default__","messages","t","useI18n","props","__props","emit","__emit","provide","INPUT_FIELD_HINT_INJECTION_KEY","toRef","attrs","useAttrs","searchTerm","ref","bentoInputField","watch","onClearSearch","debouncedEmit","debounce","onInputEvent","value","__expose"],"mappings":";;;;;;;;;AAAY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,QAAA,SACAA,EAAA,SAAA,kBACAA,EAAA,QAAA,SACAA,EAAA,SAAA,sBAJQA,IAAAD,KAAA,CAAA,CAAA,GAOAE,IAAA,kBAAAC,OACRA,EAAA,QAAA,gBACAA,EAAA,QAAA,gBACAA,EAAA,SAAA,sBAHQA,IAAAD,KAAA,CAAA,CAAA;;;;;;;;;;;;;;kCC8LRE,IAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,EAAA;AAEf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AArJA,UAAA,EAAA,GAAAC,EAAA,IAAAC,EAAA,EAAA,UAAAF,EAAA,CAAA,GAEAG,IAAAC,GAgCAC,IAAAC;AA2BA,IAAAC,EAAAC,GAAAC,EAAAN,GAAA,MAAA,CAAA;AAEA,UAAAO,IAAAC,EAAA,GACAC,IAAAC,EAAAV,EAAA,KAAA,GACAW,IAAAD,EAAA;AAEA,IAAAE;AAAA,MAAA,MAAAZ,EAAA;AAAA,MACgB,MAAA;AAER,QAAAS,EAAA,QAAAT,EAAA;AAAA,MAAyB;AAAA,MAC7B,EAAA,WAAA,GAAA;AAAA,IACkB;AAGtB,UAAAa,IAAA,MAAA;AACI,MAAAJ,EAAA,QAAA,IACAP,EAAA,OAAA,GACAA,EAAA,SAAA,EAAA;AAAA,IAAgB,GAGpBY,IAAAC,EAAA,MAAA;AACI,MAAAb,EAAA,SAAAO,EAAA,KAAA;AAAA,IAA8B,GAAAT,EAAA,YAAA,GAGlCgB,IAAA,CAAAC,MAAA;AACI,MAAAR,EAAA,QAAAQ,GACAH,EAAA;AAAA,IAAc;AAQlB,WAAAI,EAAA;AAAA;AAAA;AAAA;AAAA,MAAa,OALb,MAAA;AACI,QAAAP,EAAA,MAAA,WAAA;AAAA,MAAiC;AAAA,IAQjC,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as f, inject as E, computed as v, openBlock as a, createElementBlock as s, normalizeClass as O, createVNode as y, unref as t, withCtx as I, createTextVNode as V, toDisplayString as w, createElementVNode as T, Fragment as B, renderList as N, ref as x, readonly as L, watch as M, provide as j, createBlock as b } from "vue";
2
- import { B as F } from "./dropdown.DBxpqjEM.js";
3
- import { b as q } from "./index.DKQuLmwu.js";
2
+ import { B as F } from "./dropdown.CMKdLPHi.js";
3
+ import { d as q } from "./index.ChdIlujs.js";
4
4
  import { u as z } from "./i18n.CPGoe9tN.js";
5
- import { d as Q } from "./es6.BvpG4Oi6.js";
5
+ import { d as Q } from "./es6.b4enG1py.js";
6
6
  import { B as C } from "./typography.DNzU41ah.js";
7
7
  import { _ as g } from "./_plugin-vue_export-helper.CHgC5LLL.js";
8
8
  import "../assets/secondary-nav.css";
@@ -134,4 +134,4 @@ const S = Symbol("secondary nav state"), R = {}, U = /* @__PURE__ */ f({
134
134
  export {
135
135
  ce as s
136
136
  };
137
- //# sourceMappingURL=secondary-nav.C-7Qq6rE.js.map
137
+ //# sourceMappingURL=secondary-nav.CQ3aLyrM.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"secondary-nav.C-7Qq6rE.js","sources":["../../../vue2/src/components/secondary-nav/secondary-nav.keys.ts","../../../vue2/src/components/secondary-nav/components/secondary-nav-item/secondary-nav-item.vue","../../../vue2/src/components/secondary-nav/components/secondary-nav-category/secondary-nav-category.vue","../../../vue2/src/components/secondary-nav/secondary-nav.vue"],"sourcesContent":["import { InjectionKey } from 'vue';\nimport { BentoSecondaryNavState } from './secondary-nav.types';\n\nexport const SECONDARY_NAV_STATE = Symbol('secondary nav state') as InjectionKey<BentoSecondaryNavState>;\n","<template>\n <button class=\"b-secondary-nav-item\" :class=\"conditionalClasses\" @click=\"onClick\">\n <bento-typography class=\"b-secondary-nav-item__title\" variant=\"body\" stronger>\n {{ label }}\n </bento-typography>\n </button>\n</template>\n\n<script lang=\"ts\" setup>\n import { SECONDARY_NAV_STATE } from '../../secondary-nav.keys';\n import { BentoTypography } from '@/components/typography';\n import { computed, inject } from 'vue';\n\n const { activeItemValue, updateActiveItemValue } = inject(SECONDARY_NAV_STATE);\n\n const props = defineProps<{\n /**\n * The display name of the navigation item\n */\n label: string;\n /**\n * The value of this item.\n */\n value: string;\n }>();\n\n const conditionalClasses = computed(() => ({\n 'b-secondary-nav-item--active': activeItemValue.value === props.value,\n }));\n\n const emit = defineEmits<{\n /**\n * Event emitted when this element is clicked\n */\n (e: 'click', clickEvent: MouseEvent): void;\n }>();\n\n const onClick = (e: MouseEvent) => {\n emit('click', e);\n updateActiveItemValue(props.value);\n };\n</script>\n\n<script lang=\"ts\">\n /**\n * This component shouldn't be used directly. It is internally used by {@see BentoSecondaryNav}\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./secondary-nav-item.scss\" />\n","<template>\n <section class=\"b-secondary-nav-category\" :aria-label=\"label\">\n <bento-typography el=\"h1\" class=\"b-secondary-nav-category__label\" variant=\"caption\" stronger>{{\n label\n }}</bento-typography>\n <ul class=\"b-secondary-nav__list\">\n <li v-for=\"item in items\" :key=\"item.value\">\n <secondary-nav-item :label=\"item.label\" :value=\"item.value\" />\n </li>\n </ul>\n </section>\n</template>\n\n<script lang=\"ts\" setup>\n import { BentoTypography } from '@/components/typography';\n import { SecondaryNavItem } from '../secondary-nav-item';\n import { BentoSecondaryNavItemsItem } from '../../secondary-nav.types';\n\n defineProps<{\n /**\n * The display name of the category\n */\n label: string;\n /**\n * A list of {@see BentoSecondaryNavItemsItem} that belongs to this category\n */\n items: BentoSecondaryNavItemsItem[];\n }>();\n</script>\n\n<script lang=\"ts\">\n /**\n * This component shouldn't be used directly. It is internally used by {@see BentoSecondaryNav}\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./secondary-nav-category.scss\" />\n","<template>\n <nav class=\"b-secondary-nav\">\n <bento-dropdown\n v-if=\"isMobile\"\n :aria-label=\"t('mobileDropdownAriaLabel')\"\n :items=\"dropdownItems\"\n :static-categories=\"hasCategories\"\n :value=\"activeItemValue\"\n @input=\"updateActiveItemValue\"\n />\n <ul v-else class=\"b-secondary-nav__list\">\n <li v-for=\"item in items\" :key=\"item.label\">\n <secondary-nav-category v-if=\"'items' in item\" :label=\"item.label\" :items=\"item.items\" />\n <secondary-nav-item v-else :label=\"item.label\" :value=\"item.value\" />\n </li>\n </ul>\n </nav>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, provide, readonly, ref, watch } from 'vue';\n import { SecondaryNavItem } from './components/secondary-nav-item';\n import { SecondaryNavCategory } from './components/secondary-nav-category';\n import { SECONDARY_NAV_STATE } from './secondary-nav.keys';\n import { BentoSecondaryNavItems, BentoSecondaryNavState } from './secondary-nav.types';\n import { BentoDropdown } from '@/components/dropdown';\n import { useBreakpoints } from '@vueuse/core';\n import { useI18n } from '@/utils/ts/i18n';\n import { BentoListboxOptions } from '@/types';\n import { BMediaQuerySMax } from '@adyen/bento-design-tokens/dist/js/bento/es6';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const breakpoints = useBreakpoints({\n s: BMediaQuerySMax,\n });\n\n const isMobile = breakpoints.smallerOrEqual('s');\n const props = defineProps<{\n /**\n * An array containing all the items on the nav. The array can have either {@see BentoSecondaryNavItemsCategory },\n * which is used to group different items or {@see BentoSecondaryNavItemsItem } if you don't need to group them.\n */\n items: BentoSecondaryNavItems;\n /**\n * The value of the selected item.\n * If nothing is passed, it defaults to the first item value in items.\n */\n value?: string;\n }>();\n\n const emit = defineEmits<{\n /**\n * Emmited when the current selected item changes\n */\n (e: 'change', category: string): void;\n }>();\n\n const hasCategories = computed(() => props.items.some(item => Object.hasOwn(item, 'items')));\n const dropdownItems = computed(() => props.items as BentoListboxOptions);\n\n const activeItemValueFallback = computed(() => {\n const firstDropdownItem = (dropdownItems.value as BentoSecondaryNavItems)[0];\n\n if ('items' in firstDropdownItem) {\n return firstDropdownItem.items[0].value;\n } else {\n return firstDropdownItem.value;\n }\n });\n const activeItemValue = ref(props.value ?? activeItemValueFallback.value);\n const updateActiveItemValue = (value: string) => {\n activeItemValue.value = value;\n emit('change', value);\n };\n\n // The component's state is inject on `secondary-nav-item` to determine the\n // current active item and to change its value\n const state: BentoSecondaryNavState = {\n activeItemValue: readonly(activeItemValue),\n updateActiveItemValue,\n };\n\n watch(\n () => props.value,\n value => {\n activeItemValue.value = value;\n }\n );\n\n provide(SECONDARY_NAV_STATE, state);\n</script>\n\n<script lang=\"ts\">\n /**\n * Secondary Nav offers users a structured way to access information.\n * It also provides a clear hierarchy for users to understand and navigate through various information.\n *\n * @example\n * import { BentoSecondaryNav } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoSecondaryNav },\n * template: `\n * <bento-secondary-nav :value=\"value\" :items=\"items\" />\n * `,\n * setup() {\n * const value = ref(2) // Active item value\n * const items: BentoSecondaryNavItemInfo[] = [\n * { label: 'Option 1', value: 1 },\n * { label: 'Option 2', value: 2 },\n * ];\n * return { items, value };\n * }\n * }\n */\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./secondary-nav.scss\" />\n"],"names":["SECONDARY_NAV_STATE","__default__$2","activeItemValue","updateActiveItemValue","inject","props","__props","conditionalClasses","computed","emit","__emit","onClick","e","__default__$1","__default__","messages","t","useI18n","isMobile","useBreakpoints","BMediaQuerySMax","hasCategories","item","dropdownItems","activeItemValueFallback","firstDropdownItem","ref","value","state","readonly","watch","provide"],"mappings":";;;;;;;;AAGa,MAAAA,IAAA,OAAA,qBAAA,GC4CTC,IAAA,CAAA;;;;;;;;;AAlCA,UAAA,EAAA,iBAAAC,GAAA,uBAAAC,EAAA,IAAAC,EAAAJ,CAAA,GAEAK,IAAAC,GAWAC,IAAAC,EAAA,OAAA;AAAA,MAA2C,gCAAAN,EAAA,UAAAG,EAAA;AAAA,IACyB,EAAA,GAGpEI,IAAAC,GAOAC,IAAA,CAAAC,MAAA;AACI,MAAAH,EAAA,SAAAG,CAAA,GACAT,EAAAE,EAAA,KAAA;AAAA,IAAiC;;;;;;;;;;;;;;;;;8HCLrCQ,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GCsFAC,IAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,EAAA;AAEf;;;;;;;;;AAvFA,UAAA,EAAA,GAAAC,EAAA,IAAAC,EAAA,EAAA,UAAAF,EAAA,CAAA,GAMAG,IAJAC,EAAA;AAAA,MAAmC,GAAAC;AAAA,IAC5B,CAAA,EAGP,eAAA,GAAA,GACAf,IAAAC,GAaAG,IAAAC,GAOAW,IAAAb,EAAA,MAAAH,EAAA,MAAA,KAAA,CAAAiB,MAAA,OAAA,OAAAA,GAAA,OAAA,CAAA,CAAA,GACAC,IAAAf,EAAA,MAAAH,EAAA,KAAA,GAEAmB,IAAAhB,EAAA,MAAA;AACI,YAAAiB,IAAAF,EAAA,MAAA,CAAA;AAEA,aAAA,WAAAE,IACIA,EAAA,MAAA,CAAA,EAAA,QAEAA,EAAA;AAAA,IACJ,CAAA,GAEJvB,IAAAwB,EAAArB,EAAA,SAAAmB,EAAA,KAAA,GACArB,IAAA,CAAAwB,MAAA;AACI,MAAAzB,EAAA,QAAAyB,GACAlB,EAAA,UAAAkB,CAAA;AAAA,IAAoB,GAKxBC,IAAA;AAAA,MAAsC,iBAAAC,EAAA3B,CAAA;AAAA,MACO,uBAAAC;AAAA,IACzC;AAGJ,WAAA2B;AAAA,MAAA,MAAAzB,EAAA;AAAA,MACgB,CAAAsB,MAAA;AAER,QAAAzB,EAAA,QAAAyB;AAAA,MAAwB;AAAA,IAC5B,GAGJI,EAAA/B,GAAA4B,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"secondary-nav.CQ3aLyrM.js","sources":["../../../vue2/src/components/secondary-nav/secondary-nav.keys.ts","../../../vue2/src/components/secondary-nav/components/secondary-nav-item/secondary-nav-item.vue","../../../vue2/src/components/secondary-nav/components/secondary-nav-category/secondary-nav-category.vue","../../../vue2/src/components/secondary-nav/secondary-nav.vue"],"sourcesContent":["import { InjectionKey } from 'vue';\nimport { BentoSecondaryNavState } from './secondary-nav.types';\n\nexport const SECONDARY_NAV_STATE = Symbol('secondary nav state') as InjectionKey<BentoSecondaryNavState>;\n","<template>\n <button class=\"b-secondary-nav-item\" :class=\"conditionalClasses\" @click=\"onClick\">\n <bento-typography class=\"b-secondary-nav-item__title\" variant=\"body\" stronger>\n {{ label }}\n </bento-typography>\n </button>\n</template>\n\n<script lang=\"ts\" setup>\n import { SECONDARY_NAV_STATE } from '../../secondary-nav.keys';\n import { BentoTypography } from '@/components/typography';\n import { computed, inject } from 'vue';\n\n const { activeItemValue, updateActiveItemValue } = inject(SECONDARY_NAV_STATE);\n\n const props = defineProps<{\n /**\n * The display name of the navigation item\n */\n label: string;\n /**\n * The value of this item.\n */\n value: string;\n }>();\n\n const conditionalClasses = computed(() => ({\n 'b-secondary-nav-item--active': activeItemValue.value === props.value,\n }));\n\n const emit = defineEmits<{\n /**\n * Event emitted when this element is clicked\n */\n (e: 'click', clickEvent: MouseEvent): void;\n }>();\n\n const onClick = (e: MouseEvent) => {\n emit('click', e);\n updateActiveItemValue(props.value);\n };\n</script>\n\n<script lang=\"ts\">\n /**\n * This component shouldn't be used directly. It is internally used by {@see BentoSecondaryNav}\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./secondary-nav-item.scss\" />\n","<template>\n <section class=\"b-secondary-nav-category\" :aria-label=\"label\">\n <bento-typography el=\"h1\" class=\"b-secondary-nav-category__label\" variant=\"caption\" stronger>{{\n label\n }}</bento-typography>\n <ul class=\"b-secondary-nav__list\">\n <li v-for=\"item in items\" :key=\"item.value\">\n <secondary-nav-item :label=\"item.label\" :value=\"item.value\" />\n </li>\n </ul>\n </section>\n</template>\n\n<script lang=\"ts\" setup>\n import { BentoTypography } from '@/components/typography';\n import { SecondaryNavItem } from '../secondary-nav-item';\n import { BentoSecondaryNavItemsItem } from '../../secondary-nav.types';\n\n defineProps<{\n /**\n * The display name of the category\n */\n label: string;\n /**\n * A list of {@see BentoSecondaryNavItemsItem} that belongs to this category\n */\n items: BentoSecondaryNavItemsItem[];\n }>();\n</script>\n\n<script lang=\"ts\">\n /**\n * This component shouldn't be used directly. It is internally used by {@see BentoSecondaryNav}\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./secondary-nav-category.scss\" />\n","<template>\n <nav class=\"b-secondary-nav\">\n <bento-dropdown\n v-if=\"isMobile\"\n :aria-label=\"t('mobileDropdownAriaLabel')\"\n :items=\"dropdownItems\"\n :static-categories=\"hasCategories\"\n :value=\"activeItemValue\"\n @input=\"updateActiveItemValue\"\n />\n <ul v-else class=\"b-secondary-nav__list\">\n <li v-for=\"item in items\" :key=\"item.label\">\n <secondary-nav-category v-if=\"'items' in item\" :label=\"item.label\" :items=\"item.items\" />\n <secondary-nav-item v-else :label=\"item.label\" :value=\"item.value\" />\n </li>\n </ul>\n </nav>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, provide, readonly, ref, watch } from 'vue';\n import { SecondaryNavItem } from './components/secondary-nav-item';\n import { SecondaryNavCategory } from './components/secondary-nav-category';\n import { SECONDARY_NAV_STATE } from './secondary-nav.keys';\n import { BentoSecondaryNavItems, BentoSecondaryNavState } from './secondary-nav.types';\n import { BentoDropdown } from '@/components/dropdown';\n import { useBreakpoints } from '@vueuse/core';\n import { useI18n } from '@/utils/ts/i18n';\n import { BentoListboxOptions } from '@/types';\n import { BMediaQuerySMax } from '@adyen/bento-design-tokens/dist/js/bento/es6';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const breakpoints = useBreakpoints({\n s: BMediaQuerySMax,\n });\n\n const isMobile = breakpoints.smallerOrEqual('s');\n const props = defineProps<{\n /**\n * An array containing all the items on the nav. The array can have either {@see BentoSecondaryNavItemsCategory },\n * which is used to group different items or {@see BentoSecondaryNavItemsItem } if you don't need to group them.\n */\n items: BentoSecondaryNavItems;\n /**\n * The value of the selected item.\n * If nothing is passed, it defaults to the first item value in items.\n */\n value?: string;\n }>();\n\n const emit = defineEmits<{\n /**\n * Emmited when the current selected item changes\n */\n (e: 'change', category: string): void;\n }>();\n\n const hasCategories = computed(() => props.items.some(item => Object.hasOwn(item, 'items')));\n const dropdownItems = computed(() => props.items as BentoListboxOptions);\n\n const activeItemValueFallback = computed(() => {\n const firstDropdownItem = (dropdownItems.value as BentoSecondaryNavItems)[0];\n\n if ('items' in firstDropdownItem) {\n return firstDropdownItem.items[0].value;\n } else {\n return firstDropdownItem.value;\n }\n });\n const activeItemValue = ref(props.value ?? activeItemValueFallback.value);\n const updateActiveItemValue = (value: string) => {\n activeItemValue.value = value;\n emit('change', value);\n };\n\n // The component's state is inject on `secondary-nav-item` to determine the\n // current active item and to change its value\n const state: BentoSecondaryNavState = {\n activeItemValue: readonly(activeItemValue),\n updateActiveItemValue,\n };\n\n watch(\n () => props.value,\n value => {\n activeItemValue.value = value;\n }\n );\n\n provide(SECONDARY_NAV_STATE, state);\n</script>\n\n<script lang=\"ts\">\n /**\n * Secondary Nav offers users a structured way to access information.\n * It also provides a clear hierarchy for users to understand and navigate through various information.\n *\n * @example\n * import { BentoSecondaryNav } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoSecondaryNav },\n * template: `\n * <bento-secondary-nav :value=\"value\" :items=\"items\" />\n * `,\n * setup() {\n * const value = ref(2) // Active item value\n * const items: BentoSecondaryNavItemInfo[] = [\n * { label: 'Option 1', value: 1 },\n * { label: 'Option 2', value: 2 },\n * ];\n * return { items, value };\n * }\n * }\n */\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./secondary-nav.scss\" />\n"],"names":["SECONDARY_NAV_STATE","__default__$2","activeItemValue","updateActiveItemValue","inject","props","__props","conditionalClasses","computed","emit","__emit","onClick","e","__default__$1","__default__","messages","t","useI18n","isMobile","useBreakpoints","BMediaQuerySMax","hasCategories","item","dropdownItems","activeItemValueFallback","firstDropdownItem","ref","value","state","readonly","watch","provide"],"mappings":";;;;;;;;AAGa,MAAAA,IAAA,OAAA,qBAAA,GC4CTC,IAAA,CAAA;;;;;;;;;AAlCA,UAAA,EAAA,iBAAAC,GAAA,uBAAAC,EAAA,IAAAC,EAAAJ,CAAA,GAEAK,IAAAC,GAWAC,IAAAC,EAAA,OAAA;AAAA,MAA2C,gCAAAN,EAAA,UAAAG,EAAA;AAAA,IACyB,EAAA,GAGpEI,IAAAC,GAOAC,IAAA,CAAAC,MAAA;AACI,MAAAH,EAAA,SAAAG,CAAA,GACAT,EAAAE,EAAA,KAAA;AAAA,IAAiC;;;;;;;;;;;;;;;;;8HCLrCQ,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GCsFAC,IAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,EAAA;AAEf;;;;;;;;;AAvFA,UAAA,EAAA,GAAAC,EAAA,IAAAC,EAAA,EAAA,UAAAF,EAAA,CAAA,GAMAG,IAJAC,EAAA;AAAA,MAAmC,GAAAC;AAAA,IAC5B,CAAA,EAGP,eAAA,GAAA,GACAf,IAAAC,GAaAG,IAAAC,GAOAW,IAAAb,EAAA,MAAAH,EAAA,MAAA,KAAA,CAAAiB,MAAA,OAAA,OAAAA,GAAA,OAAA,CAAA,CAAA,GACAC,IAAAf,EAAA,MAAAH,EAAA,KAAA,GAEAmB,IAAAhB,EAAA,MAAA;AACI,YAAAiB,IAAAF,EAAA,MAAA,CAAA;AAEA,aAAA,WAAAE,IACIA,EAAA,MAAA,CAAA,EAAA,QAEAA,EAAA;AAAA,IACJ,CAAA,GAEJvB,IAAAwB,EAAArB,EAAA,SAAAmB,EAAA,KAAA,GACArB,IAAA,CAAAwB,MAAA;AACI,MAAAzB,EAAA,QAAAyB,GACAlB,EAAA,UAAAkB,CAAA;AAAA,IAAoB,GAKxBC,IAAA;AAAA,MAAsC,iBAAAC,EAAA3B,CAAA;AAAA,MACO,uBAAAC;AAAA,IACzC;AAGJ,WAAA2B;AAAA,MAAA,MAAAzB,EAAA;AAAA,MACgB,CAAAsB,MAAA;AAER,QAAAzB,EAAA,QAAAyB;AAAA,MAAwB;AAAA,IAC5B,GAGJI,EAAA/B,GAAA4B,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,474 @@
1
+ import { defineComponent as ae, useSlots as le, computed as o, inject as re, ref as V, openBlock as i, createElementBlock as E, normalizeClass as k, createElementVNode as q, unref as t, renderSlot as y, createCommentVNode as $, withModifiers as ie, createBlock as f, withCtx as u, createTextVNode as Y, toDisplayString as Q, createVNode as de, watch as se, provide as ue, onMounted as ce, Fragment as Z, renderList as W, mergeProps as m, createSlots as F } from "vue";
2
+ import { a as fe } from "./index.ChdIlujs.js";
3
+ import { d as ve, e as ye } from "./es6.b4enG1py.js";
4
+ import { B as I } from "./typography.DNzU41ah.js";
5
+ import { a as be } from "./checkbox-input.D8ZUqd4m.js";
6
+ import { u as me } from "./aria-label.CaUURpnB.js";
7
+ import { g as H } from "./generate-uid.D-HFI38h.js";
8
+ import { u as pe } from "./use-has-slot.B7eQSabc.js";
9
+ import { a as he } from "./radio-input.DtvlM-mr.js";
10
+ import { _ as te } from "./_plugin-vue_export-helper.CHgC5LLL.js";
11
+ import { C as ge } from "./controls-group.RL8WrYdy.js";
12
+ import { G as ke } from "./grid-layout.CqLbbEzI.js";
13
+ import { E as Ce } from "./error-message.CmMyB-k9.js";
14
+ import "../assets/selection-card-group.css";
15
+ var G = /* @__PURE__ */ ((e) => (e.DISABLED = "disabled", e.READONLY = "readonly", e.ERROR = "error", e))(G || {});
16
+ const oe = Symbol("selection card radio input injection key"), Se = {
17
+ key: 0,
18
+ class: "b-selection-card__icon",
19
+ role: "presentation"
20
+ }, Re = ["for"], $e = {
21
+ name: "bento-selection-card"
22
+ }, Ve = /* @__PURE__ */ ae({
23
+ ...$e,
24
+ props: {
25
+ /**
26
+ * The description of the selection card
27
+ */
28
+ description: {
29
+ type: String,
30
+ default: void 0
31
+ },
32
+ /**
33
+ * Disables the selection card
34
+ */
35
+ disabled: { type: Boolean, default: !1 },
36
+ /**
37
+ * Makes the entire selection card clickable. Clicking over interactive elements inside the card with this prop enabled will not be possible.
38
+ */
39
+ fullyClickable: { type: Boolean, default: !1 },
40
+ /**
41
+ * Shows the selection card in error state
42
+ */
43
+ hasError: { type: Boolean, default: !1 },
44
+ /**
45
+ * This property should not be used directly.
46
+ * It will be used by v-model directive on selection card component.
47
+ *
48
+ * When handling a single input, use a string or a number.
49
+ *
50
+ * When handling multiple inputs, use an array of keys.
51
+ * These keys exist as a set "value" prop for each input.
52
+ */
53
+ modelValue: {
54
+ type: [Boolean, String, Array],
55
+ default: null
56
+ },
57
+ /**
58
+ * Sets the selection card to readonly
59
+ */
60
+ readonly: { type: Boolean, default: !1 },
61
+ /**
62
+ * The subtitle of the selection card
63
+ */
64
+ subtitle: {
65
+ type: String,
66
+ default: void 0
67
+ },
68
+ /**
69
+ * The title of the selection card
70
+ */
71
+ title: {
72
+ type: String,
73
+ required: !0
74
+ },
75
+ /**
76
+ * Indicates the value of the input that will be returned when it's checked.
77
+ */
78
+ value: {
79
+ type: [String, Number],
80
+ required: !0
81
+ }
82
+ },
83
+ emits: ["input", "update:model-value"],
84
+ setup(e, { emit: j }) {
85
+ const a = e, x = j, z = le(), c = pe(z), B = H("selection-card-input-id"), p = H("selection-card-description"), L = o(
86
+ () => a.modelValue
87
+ ), C = o(
88
+ () => a.modelValue
89
+ ), N = o(() => ({
90
+ "b-selection-card--checked": S.value,
91
+ "b-selection-card--fully-clickable": a.fullyClickable
92
+ })), w = o(() => ({
93
+ [`b-selection-card--${G.DISABLED}`]: a.disabled,
94
+ [`b-selection-card--${G.ERROR}`]: a.hasError,
95
+ [`b-selection-card--${G.READONLY}`]: a.readonly,
96
+ "b-selection-card--center-aligned": R.value
97
+ })), O = o(() => ({
98
+ "b-selection-card__checkbox-container--center-aligned": R.value
99
+ })), U = o(() => ({
100
+ "b-selection-card__checkbox-container-text--center-aligned": R.value
101
+ })), h = o(() => ({
102
+ "b-selection-card__slot--with-icon": c("icon")
103
+ })), n = me({
104
+ ariaLabel: a.title,
105
+ label: a.value
106
+ }), D = o(() => Array.isArray(a.modelValue)), S = o(() => _.value ? a.value === a.modelValue : D.value ? a.modelValue.some((r) => r === a.value) : a.modelValue), _ = re(oe, V(!1)), R = o(() => !a.subtitle && !a.description), b = V(null), l = V(null), v = V(null), d = (r) => {
107
+ var g, A, J, K, P, X;
108
+ if (b.value.$refs.inputRef === r.target) {
109
+ const ne = T();
110
+ s(ne);
111
+ return;
112
+ }
113
+ if (a.disabled && a.readonly || !a.fullyClickable && (l.value && ((A = (g = l.value) == null ? void 0 : g.$el) != null && A.contains(r.target)) || v.value && ((K = (J = v.value) == null ? void 0 : J.$el) != null && K.contains(r.target)) || b.value && ((X = (P = b.value) == null ? void 0 : P.$el) != null && X.contains(r.target))))
114
+ return;
115
+ const M = T();
116
+ s(M);
117
+ }, T = () => {
118
+ var M;
119
+ const r = ((M = b.value) == null ? void 0 : M.$refs.inputRef).checked;
120
+ if (D.value) {
121
+ const g = [...a.modelValue], A = g.indexOf(a.value);
122
+ return A === -1 ? g.push(a.value) : g.splice(A, 1), g;
123
+ }
124
+ return _.value ? a.value : r;
125
+ }, s = (r) => {
126
+ !a.disabled && !a.readonly && (x("update:model-value", r), x("input", r));
127
+ };
128
+ return (r, M) => (i(), E("div", {
129
+ class: k(["b-selection-card", N.value]),
130
+ onClick: d
131
+ }, [
132
+ q("div", {
133
+ class: k(["b-selection-card__container", w.value])
134
+ }, [
135
+ q("div", {
136
+ class: k(["b-selection-card__checkbox-container", O.value])
137
+ }, [
138
+ q("div", {
139
+ class: k(["b-selection-card__checkbox-container-text", U.value])
140
+ }, [
141
+ t(c)("icon") ? (i(), E("div", Se, [
142
+ y(r.$slots, "icon", {}, void 0, !0)
143
+ ])) : $("", !0),
144
+ q("label", {
145
+ for: t(B),
146
+ class: "b-selection-card__text",
147
+ onClick: ie(d, ["stop", "prevent"])
148
+ }, [
149
+ e.subtitle ? (i(), f(t(I), {
150
+ key: 0,
151
+ class: "b-selection-card__description",
152
+ el: "span",
153
+ variant: "caption"
154
+ }, {
155
+ default: u(() => [
156
+ Y(Q(e.subtitle), 1)
157
+ ]),
158
+ _: 1
159
+ })) : $("", !0),
160
+ de(t(I), {
161
+ el: "span",
162
+ variant: "title"
163
+ }, {
164
+ default: u(() => [
165
+ Y(Q(e.title), 1)
166
+ ]),
167
+ _: 1
168
+ }),
169
+ e.description ? (i(), f(t(I), {
170
+ key: 1,
171
+ id: "descriptionId",
172
+ class: "b-selection-card__description",
173
+ el: "span",
174
+ variant: "body"
175
+ }, {
176
+ default: u(() => [
177
+ Y(Q(e.description), 1)
178
+ ]),
179
+ _: 1
180
+ })) : $("", !0)
181
+ ], 8, Re)
182
+ ], 2),
183
+ t(_) ? (i(), f(t(he), {
184
+ key: 0,
185
+ id: t(B),
186
+ ref_key: "inputRef",
187
+ ref: b,
188
+ "aria-label": t(n),
189
+ "aria-describedby": e.description ? t(p) : void 0,
190
+ disabled: e.disabled,
191
+ "has-error": e.hasError,
192
+ "aria-readonly": e.readonly ?? void 0,
193
+ value: e.value,
194
+ readonly: e.readonly,
195
+ "model-value": L.value
196
+ }, null, 8, ["id", "aria-label", "aria-describedby", "disabled", "has-error", "aria-readonly", "value", "readonly", "model-value"])) : (i(), f(t(be), {
197
+ key: 1,
198
+ id: t(B),
199
+ ref_key: "inputRef",
200
+ ref: b,
201
+ "aria-label": t(n),
202
+ "aria-describedby": e.description ? t(p) : void 0,
203
+ disabled: e.disabled,
204
+ "has-error": e.hasError,
205
+ "aria-readonly": e.readonly ?? void 0,
206
+ value: e.value,
207
+ readonly: e.readonly,
208
+ "model-value": C.value
209
+ }, null, 8, ["id", "aria-label", "aria-describedby", "disabled", "has-error", "aria-readonly", "value", "readonly", "model-value"]))
210
+ ], 2),
211
+ t(c)("content") ? (i(), f(t(I), {
212
+ key: 0,
213
+ ref_key: "slotRef",
214
+ ref: l,
215
+ el: "div",
216
+ class: k(["b-selection-card__slot", h.value])
217
+ }, {
218
+ default: u(() => [
219
+ y(r.$slots, "content", {}, void 0, !0)
220
+ ]),
221
+ _: 3
222
+ }, 8, ["class"])) : $("", !0),
223
+ t(c)("dynamicContent") && S.value ? (i(), f(t(I), {
224
+ key: 1,
225
+ ref_key: "dynamicSlotRef",
226
+ ref: v,
227
+ el: "div",
228
+ class: k(["b-selection-card__slot", h.value])
229
+ }, {
230
+ default: u(() => [
231
+ y(r.$slots, "dynamicContent", {}, void 0, !0)
232
+ ]),
233
+ _: 3
234
+ }, 8, ["class"])) : $("", !0)
235
+ ], 2)
236
+ ], 2));
237
+ }
238
+ }), ee = /* @__PURE__ */ te(Ve, [["__scopeId", "data-v-582a885b"]]), Ee = {}, xe = /* @__PURE__ */ ae({
239
+ ...Ee,
240
+ __name: "selection-card-group",
241
+ props: {
242
+ /**
243
+ * Descriptive supporting text visbile underneath the label.
244
+ */
245
+ description: { type: String, default: null },
246
+ /**
247
+ * If set to true, renders all cards in the group in a disabled state.
248
+ */
249
+ disabled: { type: Boolean, default: !1 },
250
+ /**
251
+ * Renders all cards in an error state with an error message.
252
+ */
253
+ errorMessage: { type: String, default: null },
254
+ /**
255
+ * The form id the selection card group is associated with. Defaults to null, as a selection card group can also be used standalone.
256
+ */
257
+ formId: { type: String, default: null },
258
+ /**
259
+ * Shows/hides the group label.
260
+ */
261
+ hideLabel: { type: Boolean, default: null },
262
+ /**
263
+ * Label of the group. Required for accessibility purposes, even if it's not shown
264
+ */
265
+ label: {
266
+ type: String,
267
+ required: !0
268
+ },
269
+ /**
270
+ * The selection card group's layout. It can be vertical or horizontal. Defaults to vertical.
271
+ * @values horizontal, vertical
272
+ */
273
+ layout: {
274
+ type: String,
275
+ default: "vertical"
276
+ },
277
+ /**
278
+ * The selection card group's items.
279
+ */
280
+ items: {
281
+ type: Array,
282
+ required: !0
283
+ },
284
+ /**
285
+ * Sets the responsive number of items rendered in each row.
286
+ */
287
+ itemsPerRow: {
288
+ type: Object,
289
+ default: void 0
290
+ },
291
+ /**
292
+ * Determines the initially selected value of the group. Corresponds to the BentoSelectionCardItem's value.
293
+ * Defaults to no value selected.
294
+ */
295
+ modelValue: {
296
+ type: [Array, String, Number],
297
+ default: null
298
+ },
299
+ /**
300
+ * Indicates the field is optional.
301
+ */
302
+ optional: { type: Boolean, default: !1 },
303
+ /**
304
+ * Indicates the field is required.
305
+ */
306
+ required: { type: Boolean, default: !1 },
307
+ /**
308
+ * Tooltip message.
309
+ */
310
+ tooltipText: { type: String, default: null },
311
+ /**
312
+ * If set to true, renders all cards in the group in a readonly state.
313
+ */
314
+ readonly: { type: Boolean, default: !1 },
315
+ /**
316
+ * Renders the cards with a checkbox or a radio input. Selection logic will also apply in accordance.
317
+ * @values checkbox, radio
318
+ */
319
+ variant: { type: String, default: "checkbox" }
320
+ },
321
+ emits: ["input", "update:model-value"],
322
+ setup(e, { emit: j }) {
323
+ const a = e, x = j, z = le(), c = (l) => !!z[l], B = o(() => ({
324
+ "b-selection-card-group__items--horizontal": a.layout === "horizontal"
325
+ })), p = V(a.modelValue);
326
+ se(
327
+ () => a.modelValue,
328
+ () => {
329
+ p.value = a.modelValue;
330
+ }
331
+ );
332
+ const L = H("error"), C = o(() => !a.disabled && !a.readonly && !!a.errorMessage), N = V(null), { width: w } = fe(N), O = o(() => ve.split("px")[0]), U = o(() => ye.split("px")[0]), h = o(() => w.value < O.value ? "small" : w.value >= O.value && w.value < U.value ? "medium" : "large"), n = o(() => {
333
+ var l;
334
+ return ((l = a.itemsPerRow) == null ? void 0 : l[h == null ? void 0 : h.value]) || a.items.length;
335
+ }), D = o(() => {
336
+ if (!a.itemsPerRow)
337
+ return [];
338
+ const l = [];
339
+ for (let v = 0; v < a.items.length; v += n == null ? void 0 : n.value)
340
+ l.push(a.items.slice(v, v + (n == null ? void 0 : n.value)));
341
+ return l;
342
+ }), S = o(() => 12 / (n == null ? void 0 : n.value)), _ = o(() => n != null && n.value ? new Array(n == null ? void 0 : n.value).fill({
343
+ // Instead of passing the actual screen sizes values, passing the same values per each screen size and recomputing it makes sure visually the change is smoother and not laggy
344
+ small: S.value,
345
+ medium: S.value,
346
+ large: S.value
347
+ }) : []), R = (l) => {
348
+ p.value = l, x("update:model-value", l), x("input", l);
349
+ }, b = o(() => a.variant === "radio");
350
+ return ue(oe, b), ce(() => {
351
+ a.itemsPerRow && Object.values(a.itemsPerRow).forEach((l) => {
352
+ if (l && (l < 2 || l > 6))
353
+ throw new Error(
354
+ "itemsPerRow values must have a value between 2 and 6 items per row. Read the documentation for more information."
355
+ );
356
+ });
357
+ }), (l, v) => (i(), f(t(ge), {
358
+ ref_key: "containerRef",
359
+ ref: N,
360
+ "aria-describedby": C.value ? t(L) : null,
361
+ label: e.label,
362
+ "hide-label": e.hideLabel,
363
+ description: e.description,
364
+ disabled: e.disabled,
365
+ "tooltip-text": e.tooltipText,
366
+ readonly: e.readonly,
367
+ required: e.required,
368
+ optional: e.optional,
369
+ class: "b-selection-card-group",
370
+ "component-name": "selection-card-group"
371
+ }, {
372
+ default: u(() => [
373
+ !e.itemsPerRow || e.layout === "vertical" ? (i(), E("div", {
374
+ key: 0,
375
+ class: k(["b-selection-card-group__items", B.value])
376
+ }, [
377
+ (i(!0), E(Z, null, W(e.items, (d) => (i(), f(ee, m({
378
+ key: `selection-card-${d.value}`,
379
+ class: "b-selection-card-group__item",
380
+ ref_for: !0
381
+ }, d, {
382
+ "model-value": p.value,
383
+ readonly: e.readonly || d.readonly,
384
+ "has-error": C.value,
385
+ disabled: e.disabled || d.disabled,
386
+ "onUpdate:modelValue": R
387
+ }), F({ _: 2 }, [
388
+ c("icon") && d.icon ? {
389
+ name: "icon",
390
+ fn: u(() => [
391
+ y(l.$slots, "icon", m({ ref_for: !0 }, d), void 0, !0)
392
+ ]),
393
+ key: "0"
394
+ } : void 0,
395
+ c("content") && d.content ? {
396
+ name: "content",
397
+ fn: u(() => [
398
+ y(l.$slots, "content", m({ ref_for: !0 }, d), void 0, !0)
399
+ ]),
400
+ key: "1"
401
+ } : void 0,
402
+ c("dynamicContent") && d.dynamicContent ? {
403
+ name: "dynamicContent",
404
+ fn: u(() => [
405
+ y(l.$slots, "dynamicContent", m({ ref_for: !0 }, d), void 0, !0)
406
+ ]),
407
+ key: "2"
408
+ } : void 0
409
+ ]), 1040, ["model-value", "readonly", "has-error", "disabled"]))), 128))
410
+ ], 2)) : (i(), E("div", {
411
+ key: `selection-card-group-layout-breakpoint-${h.value}`
412
+ }, [
413
+ (i(!0), E(Z, null, W(D.value, (d, T) => (i(), f(t(ke), {
414
+ key: `selection-card-group-row-${T}-cols-${n.value}`,
415
+ class: "b-selection-card-group__items--wrap",
416
+ "column-width": _.value
417
+ }, F({ _: 2 }, [
418
+ W(d, (s, r) => ({
419
+ name: `col-${r + 1}`,
420
+ fn: u(() => [
421
+ (i(), f(ee, m({
422
+ key: `selection-card-${s.value}`,
423
+ class: "b-selection-card-group__item",
424
+ ref_for: !0
425
+ }, s, {
426
+ "model-value": p.value,
427
+ readonly: e.readonly || s.readonly,
428
+ "has-error": C.value,
429
+ disabled: e.disabled || s.disabled,
430
+ "onUpdate:modelValue": R
431
+ }), F({ _: 2 }, [
432
+ c("icon") && s.icon ? {
433
+ name: "icon",
434
+ fn: u(() => [
435
+ y(l.$slots, "icon", m({ ref_for: !0 }, s), void 0, !0)
436
+ ]),
437
+ key: "0"
438
+ } : void 0,
439
+ c("content") && s.content ? {
440
+ name: "content",
441
+ fn: u(() => [
442
+ y(l.$slots, "content", m({ ref_for: !0 }, s), void 0, !0)
443
+ ]),
444
+ key: "1"
445
+ } : void 0,
446
+ c("dynamicContent") && s.dynamicContent ? {
447
+ name: "dynamicContent",
448
+ fn: u(() => [
449
+ y(l.$slots, "dynamicContent", m({ ref_for: !0 }, s), void 0, !0)
450
+ ]),
451
+ key: "2"
452
+ } : void 0
453
+ ]), 1040, ["model-value", "readonly", "has-error", "disabled"]))
454
+ ])
455
+ }))
456
+ ]), 1032, ["column-width"]))), 128))
457
+ ])),
458
+ C.value ? (i(), f(t(Ce), {
459
+ key: 2,
460
+ id: t(L),
461
+ "error-message": e.errorMessage,
462
+ class: "b-selection-card-group__error-message"
463
+ }, null, 8, ["id", "error-message"])) : $("", !0)
464
+ ]),
465
+ _: 3
466
+ }, 8, ["aria-describedby", "label", "hide-label", "description", "disabled", "tooltip-text", "readonly", "required", "optional"]));
467
+ }
468
+ }), je = /* @__PURE__ */ te(xe, [["__scopeId", "data-v-4bd92e75"]]);
469
+ export {
470
+ ee as B,
471
+ G as a,
472
+ je as s
473
+ };
474
+ //# sourceMappingURL=selection-card-group.Du3Cwf47.js.map