@adyen/bento-vue2 1.24.0 → 1.25.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 (188) hide show
  1. package/dist/@types/index.d.ts +415 -528
  2. package/dist/accordion.js +2 -2
  3. package/dist/action-bar.js +6 -6
  4. package/dist/alert.js +69 -104
  5. package/dist/alert.js.map +1 -1
  6. package/dist/assets/base-modal.css +1 -1
  7. package/dist/assets/dialog-page.css +1 -1
  8. package/dist/assets/dropdown.css +1 -1
  9. package/dist/assets/index.css +1 -1
  10. package/dist/assets/index10.css +1 -1
  11. package/dist/assets/index11.css +1 -1
  12. package/dist/assets/index12.css +1 -1
  13. package/dist/assets/index13.css +1 -1
  14. package/dist/assets/index14.css +1 -1
  15. package/dist/assets/index15.css +1 -1
  16. package/dist/assets/index16.css +1 -1
  17. package/dist/assets/index17.css +1 -1
  18. package/dist/assets/index18.css +1 -1
  19. package/dist/assets/index19.css +1 -1
  20. package/dist/assets/index2.css +1 -1
  21. package/dist/assets/index20.css +1 -1
  22. package/dist/assets/index21.css +1 -1
  23. package/dist/assets/index22.css +1 -1
  24. package/dist/assets/index23.css +1 -1
  25. package/dist/assets/index24.css +1 -1
  26. package/dist/assets/index25.css +1 -1
  27. package/dist/assets/index26.css +1 -1
  28. package/dist/assets/index27.css +1 -1
  29. package/dist/assets/index28.css +1 -1
  30. package/dist/assets/index29.css +1 -1
  31. package/dist/assets/index3.css +1 -1
  32. package/dist/assets/index30.css +1 -1
  33. package/dist/assets/index31.css +1 -1
  34. package/dist/assets/index32.css +1 -1
  35. package/dist/assets/index33.css +1 -1
  36. package/dist/assets/index34.css +1 -1
  37. package/dist/assets/index35.css +1 -1
  38. package/dist/assets/index36.css +1 -1
  39. package/dist/assets/index37.css +1 -1
  40. package/dist/assets/index38.css +1 -1
  41. package/dist/assets/index39.css +1 -1
  42. package/dist/assets/index40.css +1 -1
  43. package/dist/assets/index41.css +1 -1
  44. package/dist/assets/index42.css +1 -1
  45. package/dist/assets/index43.css +1 -1
  46. package/dist/assets/index44.css +1 -1
  47. package/dist/assets/index45.css +1 -1
  48. package/dist/assets/index46.css +1 -1
  49. package/dist/assets/index47.css +1 -1
  50. package/dist/assets/index48.css +1 -1
  51. package/dist/assets/index5.css +1 -1
  52. package/dist/assets/index6.css +1 -1
  53. package/dist/assets/index7.css +1 -1
  54. package/dist/assets/index8.css +1 -1
  55. package/dist/assets/index9.css +1 -1
  56. package/dist/assets/{listbox.css → use-cached-selected-values.css} +1 -1
  57. package/dist/avatar-image.js +1 -1
  58. package/dist/badge.js +1 -1
  59. package/dist/button.js +5 -5
  60. package/dist/card.js +83 -180
  61. package/dist/card.js.map +1 -1
  62. package/dist/checkbox.js +5 -5
  63. package/dist/chunks/{base-button.090f511d.js → base-button.773343f6.js} +2 -2
  64. package/dist/chunks/{base-button.090f511d.js.map → base-button.773343f6.js.map} +1 -1
  65. package/dist/chunks/{base-modal.aa09a60c.js → base-modal.2d596e6f.js} +6 -6
  66. package/dist/chunks/{base-modal.aa09a60c.js.map → base-modal.2d596e6f.js.map} +1 -1
  67. package/dist/chunks/{button-actions-with-menu.879c4573.js → button-actions-with-menu.d08d2c51.js} +4 -4
  68. package/dist/chunks/{button-actions-with-menu.879c4573.js.map → button-actions-with-menu.d08d2c51.js.map} +1 -1
  69. package/dist/chunks/{button-actions.239456cb.js → button-actions.a03a672f.js} +3 -3
  70. package/dist/chunks/{button-actions.239456cb.js.map → button-actions.a03a672f.js.map} +1 -1
  71. package/dist/chunks/{button.6e6324f0.js → button.e5f5638f.js} +3 -3
  72. package/dist/chunks/{button.6e6324f0.js.map → button.e5f5638f.js.map} +1 -1
  73. package/dist/chunks/{calendar.1e416969.js → calendar.7d3e2db0.js} +4 -4
  74. package/dist/chunks/{calendar.1e416969.js.map → calendar.7d3e2db0.js.map} +1 -1
  75. package/dist/chunks/{checkbox.f38276e6.js → checkbox.28578383.js} +3 -3
  76. package/dist/chunks/{checkbox.f38276e6.js.map → checkbox.28578383.js.map} +1 -1
  77. package/dist/chunks/{controls-group.f1dfa419.js → controls-group.faa482b2.js} +3 -3
  78. package/dist/chunks/{controls-group.f1dfa419.js.map → controls-group.faa482b2.js.map} +1 -1
  79. package/dist/chunks/{copy.acc9f1b0.js → copy.3c50b447.js} +4 -4
  80. package/dist/chunks/{copy.acc9f1b0.js.map → copy.3c50b447.js.map} +1 -1
  81. package/dist/chunks/dialog-page.286ead53.js +133 -0
  82. package/dist/chunks/dialog-page.286ead53.js.map +1 -0
  83. package/dist/chunks/{dropdown-default-textbox.c1f8fe5f.js → dropdown-default-textbox.a1c0c0fb.js} +2 -2
  84. package/dist/chunks/{dropdown-default-textbox.c1f8fe5f.js.map → dropdown-default-textbox.a1c0c0fb.js.map} +1 -1
  85. package/dist/chunks/dropdown.7d4a8dfc.js +775 -0
  86. package/dist/chunks/dropdown.7d4a8dfc.js.map +1 -0
  87. package/dist/chunks/{error-message.8734e591.js → error-message.db315e68.js} +2 -2
  88. package/dist/chunks/{error-message.8734e591.js.map → error-message.db315e68.js.map} +1 -1
  89. package/dist/chunks/{fixed-scroller.772ad033.js → fixed-scroller.3135f86c.js} +2 -2
  90. package/dist/chunks/{fixed-scroller.772ad033.js.map → fixed-scroller.3135f86c.js.map} +1 -1
  91. package/dist/chunks/{footer-actions.11071f12.js → footer-actions.32891b25.js} +4 -4
  92. package/dist/chunks/{footer-actions.11071f12.js.map → footer-actions.32891b25.js.map} +1 -1
  93. package/dist/chunks/{index.87180cdd.js → index.30948302.js} +138 -119
  94. package/dist/chunks/index.30948302.js.map +1 -0
  95. package/dist/chunks/{index.8e6bc325.js → index.444d221f.js} +3 -3
  96. package/dist/chunks/{index.8e6bc325.js.map → index.444d221f.js.map} +1 -1
  97. package/dist/chunks/{index.73abb1a9.js → index.4b6211c7.js} +27 -27
  98. package/dist/chunks/{index.73abb1a9.js.map → index.4b6211c7.js.map} +1 -1
  99. package/dist/chunks/{index.94980f50.js → index.596c4d0a.js} +2 -2
  100. package/dist/chunks/{index.94980f50.js.map → index.596c4d0a.js.map} +1 -1
  101. package/dist/chunks/{index.ff09389c.js → index.81e509f3.js} +6 -6
  102. package/dist/chunks/{index.ff09389c.js.map → index.81e509f3.js.map} +1 -1
  103. package/dist/chunks/{index.f19887a1.js → index.939dd5cf.js} +2 -2
  104. package/dist/chunks/{index.f19887a1.js.map → index.939dd5cf.js.map} +1 -1
  105. package/dist/chunks/{index.51308a21.js → index.94acf214.js} +3 -3
  106. package/dist/chunks/{index.51308a21.js.map → index.94acf214.js.map} +1 -1
  107. package/dist/chunks/{index.49ce3f6a.js → index.9536a077.js} +3 -3
  108. package/dist/chunks/{index.49ce3f6a.js.map → index.9536a077.js.map} +1 -1
  109. package/dist/chunks/{index.03ae22b4.js → index.9e40ffeb.js} +2 -2
  110. package/dist/chunks/{index.03ae22b4.js.map → index.9e40ffeb.js.map} +1 -1
  111. package/dist/chunks/{index.ba6c1040.js → index.d97166c6.js} +2 -2
  112. package/dist/chunks/{index.ba6c1040.js.map → index.d97166c6.js.map} +1 -1
  113. package/dist/chunks/{index.5d5f2200.js → index.ec632d95.js} +6 -6
  114. package/dist/chunks/{index.5d5f2200.js.map → index.ec632d95.js.map} +1 -1
  115. package/dist/chunks/{listbox-option-tag.c0a56a95.js → listbox-option-tag.95a65534.js} +3 -3
  116. package/dist/chunks/{listbox-option-tag.c0a56a95.js.map → listbox-option-tag.95a65534.js.map} +1 -1
  117. package/dist/chunks/{loading-button.84a5529d.js → loading-button.e8060c04.js} +2 -2
  118. package/dist/chunks/{loading-button.84a5529d.js.map → loading-button.e8060c04.js.map} +1 -1
  119. package/dist/chunks/{payment-method.faa302de.js → payment-method.564ed43a.js} +2 -2
  120. package/dist/chunks/{payment-method.faa302de.js.map → payment-method.564ed43a.js.map} +1 -1
  121. package/dist/chunks/{tooltip.8e9d733c.js → tooltip.e5deb137.js} +3 -3
  122. package/dist/chunks/{tooltip.8e9d733c.js.map → tooltip.e5deb137.js.map} +1 -1
  123. package/dist/chunks/{use-bento-toast-controller.7d4436ad.js → use-bento-toast-controller.8414d283.js} +2 -2
  124. package/dist/chunks/{use-bento-toast-controller.7d4436ad.js.map → use-bento-toast-controller.8414d283.js.map} +1 -1
  125. package/dist/chunks/{listbox.e6e1bc90.js → use-cached-selected-values.3772a679.js} +510 -448
  126. package/dist/chunks/use-cached-selected-values.3772a679.js.map +1 -0
  127. package/dist/code-snippet.js +7 -7
  128. package/dist/code-snippet.js.map +1 -1
  129. package/dist/country.js +2 -2
  130. package/dist/currency.js +1 -1
  131. package/dist/data-grid-template.js +1 -1
  132. package/dist/data-grid.js +758 -725
  133. package/dist/data-grid.js.map +1 -1
  134. package/dist/date-picker.js +19 -19
  135. package/dist/date-range-picker.js +2 -2
  136. package/dist/date.js +1 -1
  137. package/dist/divider.js +1 -1
  138. package/dist/dropdown.js +7 -7
  139. package/dist/empty-state.js +2 -2
  140. package/dist/filter-bar.js +1115 -955
  141. package/dist/filter-bar.js.map +1 -1
  142. package/dist/focus-trap.js +1 -1
  143. package/dist/form-layout.js +2 -2
  144. package/dist/header.js +4 -4
  145. package/dist/index.js +177 -169
  146. package/dist/index.js.map +1 -1
  147. package/dist/info-icon.js +3 -3
  148. package/dist/input-field.js +31 -29
  149. package/dist/input-field.js.map +1 -1
  150. package/dist/internal.js +31 -78
  151. package/dist/internal.js.map +1 -1
  152. package/dist/link.js +1 -1
  153. package/dist/loading-indicator.js +1 -1
  154. package/dist/menu.js +1 -1
  155. package/dist/modal-fullscreen.js +6 -6
  156. package/dist/modal.js +6 -6
  157. package/dist/pagination.js +4 -4
  158. package/dist/payment-method.js +1 -1
  159. package/dist/popover.js +1 -1
  160. package/dist/popper-container.js +1 -1
  161. package/dist/radio-group.js +62 -62
  162. package/dist/radio-group.js.map +1 -1
  163. package/dist/search-bar.js +2 -2
  164. package/dist/secondary-nav.js +2 -2
  165. package/dist/segmented-control.js +3 -3
  166. package/dist/selection-card.js +4 -4
  167. package/dist/sidepanel.js +52 -50
  168. package/dist/sidepanel.js.map +1 -1
  169. package/dist/status.js +2 -2
  170. package/dist/stepper.js +3 -3
  171. package/dist/structured-list.js +1 -1
  172. package/dist/summary-grid.js +3 -3
  173. package/dist/tabs.js +3 -3
  174. package/dist/tag.js +3 -3
  175. package/dist/textarea.js +4 -4
  176. package/dist/timeline.js +7 -7
  177. package/dist/toast.js +4 -4
  178. package/dist/toggle.js +2 -2
  179. package/dist/tutorial.js +6 -6
  180. package/dist/typography.js +1 -1
  181. package/dist/web-types.json +532 -282
  182. package/package.json +3 -2
  183. package/dist/chunks/dialog-page.75b295b7.js +0 -133
  184. package/dist/chunks/dialog-page.75b295b7.js.map +0 -1
  185. package/dist/chunks/dropdown.669b858b.js +0 -797
  186. package/dist/chunks/dropdown.669b858b.js.map +0 -1
  187. package/dist/chunks/index.87180cdd.js.map +0 -1
  188. package/dist/chunks/listbox.e6e1bc90.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.8e6bc325.js","sources":["../../../core/src/components/link/link.types.ts","../../../../node_modules/@adyen/ui-assets-icons-16/dist/vue/external-link.vue","../../src/components/link/link.vue"],"sourcesContent":["/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoLinkVariant {\n DEFAULT = 'default',\n QUIET = 'quiet',\n}\n","\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><path fill=\"#00112C\" d=\"M2.93933 11.9999L10.1893 4.74989H5.24999V3.24989H12.75V10.7499H11.25V5.81055L3.99999 13.0605L2.93933 11.9999Z\"/></svg>\n</template>\n<script>\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n<style>\n @import '../css/main.css';\n</style>\n","<template>\n <a\n v-if=\"external || isNotRouting\"\n :class=\"conditionalClasses\"\n v-bind=\"$attrs\"\n :href=\"$props.to.toString()\"\n :title=\"getAttributeTitle($attrs.title)\"\n :target=\"computedTarget\"\n @click=\"onClick\"\n >\n <bento-typography v-if=\"!disableTypography\" class=\"b-link__text\" el=\"span\" variant=\"body\">\n <slot />\n </bento-typography>\n <slot v-else />\n <span v-if=\"showExternalLinkIcon\" class=\"b-link__external-link-icon\">\n <external-link-icon />\n </span>\n </a>\n <router-link\n v-else\n v-bind=\"{ ...$attrs, ...$props }\"\n :class=\"conditionalClasses\"\n :target=\"target\"\n :to=\"props.to\"\n custom\n @click.native=\"onClick\"\n >\n <bento-typography v-if=\"!disableTypography\" class=\"b-link__text\" el=\"span\" variant=\"body\">\n <slot />\n </bento-typography>\n <slot v-else />\n </router-link>\n</template>\n\n<script setup lang=\"ts\">\n import { RouterLink } from 'vue-router';\n import { computed } from 'vue';\n import { BentoTypography } from '@/components/typography';\n import { BentoLinkVariant } from '@/core/components/link/link.types';\n import type { RouterLinkSlotArgument } from 'vue-router/types/router';\n import ExternalLinkIcon from '@adyen/ui-assets-icons-16/vue/external-link';\n\n /* eslint-disable vue/require-default-prop */ // Allow RouterLink to set the defaults\n /* eslint-disable @typescript-eslint/no-explicit-any */ // \"to\" needs to be any\n export interface LinkProps {\n /**\n * Denotes the target route of the link. When clicked, the value of the `to` prop will be passed to\n * `router.push()` internally, so the value can be either a \"string\" or a location\" descriptor object.\n */\n to: any;\n /* eslint-enable @typescript-eslint/no-explicit-any */\n\n /**\n * Setting `replace` prop will call `router.replace()` instead of `router.push()` when clicked, so the navigation will\n * not create a new history record.\n *\n * @default false\n */\n replace?: boolean;\n /**\n * Setting `append` prop always appends the relative path to the current path. For example, assuming we are navigating\n * from `/a` to a relative link `b`, without `append` we will end up at `/b`, but with append we will end up at\n * `/a/b`.\n *\n * @default false\n */\n append?: boolean;\n /**\n * Sometimes we want <RouterLink> to render as another tag, e.g <li>. Then we can use tag prop to specify which tag to\n * render to, and it will still listen to click events for navigation.\n *\n * @default \"a\"\n */\n tag?: string;\n /**\n * Configure the active CSS class applied when the link is active. Note the default value can also be configured\n * globally via the `linkActiveClass` router constructor option.\n *\n * @default \"router-link-active\"\n */\n activeClass?: string;\n /**\n * The default active class matching behavior is **inclusive match**. For example, `<RouterLink to=\"/a\">` will get\n * this class applied as long as the current path starts with `/a/` or is `/a`.\n *\n * @default false\n */\n exact?: boolean;\n /**\n * Allows matching only using the `path` section of the url, effectively ignoring the `query` and the `hash` sections.\n *\n * @default false\n */\n exactPath?: boolean;\n /**\n * Configure the active CSS class applied when the link is active with exact path match. Note the default value can\n * also be configured globally via the `linkExactPathActiveClass` router constructor option.\n *\n * @default \"router-link-exact-path-active\"\n */\n exactPathActiveClass?: string;\n\n /**\n * Specify the event(s) that can trigger the link navigation.\n *\n * @default 'click'\n */\n event?: string | ReadonlyArray<string>;\n /**\n * Configure the active CSS class applied when the link is active with exact match. Note the default value can also be\n * configured globally via the `linkExactActiveClass` router constructor option.\n *\n * @default \"router-link-exact-active\"\n */\n exactActiveClass?: string;\n /**\n * Configure the value of `aria-current` when the link is active with exact match. It must be one of the allowed\n * values for [aria-current](https://www.w3.org/TR/wai-aria-1.2/#aria-current) in the ARIA spec. In most cases, the\n * default of page should be the best fit.\n *\n * @default \"page\"\n */\n ariaCurrentValue?: 'page' | 'step' | 'location' | 'date' | 'time' | 'true' | 'false';\n\n /**\n * Custom Props\n */\n\n /**\n * Disable the default typography for the component. Only use this when the component is inside another typography component.\n */\n disableTypography?: boolean;\n\n /**\n * Set the rendered link to a regular external anchor link and renders an external link icon.\n */\n external?: boolean;\n\n /**\n * Set to true if used inside a `BentoButton` component.\n */\n isButton?: boolean;\n\n /**\n * Set the rendered link to a regular external anchor link.\n */\n isNotRouting?: boolean;\n\n /**\n * Sets the target of the rendered link.\n */\n target?: string;\n\n /**\n * Set to true to truncate link. Doesn't work with disableTypography.\n */\n truncate?: boolean;\n\n /**\n * Link variant type affecting visual style.\n * @values default, quiet\n */\n variant?: BentoLinkVariant | `${BentoLinkVariant}`;\n }\n\n const props = withDefaults(defineProps<LinkProps>(), {\n target: null,\n variant: BentoLinkVariant.DEFAULT,\n });\n\n const getAttributeTitle = (attributesTitle: unknown) => attributesTitle as string;\n\n const conditionalClasses = computed(() => ({\n 'b-link': !props.isButton,\n [`b-link--${BentoLinkVariant.QUIET}`]: props.variant === BentoLinkVariant.QUIET,\n [`b-link--truncate`]: props.truncate,\n }));\n\n const computedTarget = computed(() => (props.external ? props.target ?? '_blank' : props.target));\n const showExternalLinkIcon = computed(() => !(props.isButton || props.isNotRouting));\n\n const emit = defineEmits<{\n (e: 'click', clickEvent: MouseEvent): void;\n }>();\n\n const onClick = (e: MouseEvent, navigateCallback?: RouterLinkSlotArgument['navigate']) => {\n emit('click', e);\n if (navigateCallback) {\n navigateCallback();\n }\n };\n</script>\n\n<script lang=\"ts\">\n /**\n * Extends the `router-link` from the `vue-router` NPM package.\n *\n * @example\n * import { BentoLink } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoLink },\n * template: `\n * <bento-link to=\"/\">\n * link\n * </bento-link>\n * `\n * }\n */\n export default {\n name: 'bento-link',\n inheritAttrs: false,\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"@/core/components/link/link.scss\" />\n"],"names":["BentoLinkVariant","BentoLinkVariant2","uuid","_sfc_main$1","__default__","getAttributeTitle","attributesTitle","conditionalClasses","computed","props","computedTarget","showExternalLinkIcon","e","navigateCallback","emit"],"mappings":";;;;;AAGY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,UAAA,WACAA,EAAA,QAAA,SAFQA,IAAAD,KAAA,CAAA,CAAA;ACEZ,IAAAE,IAAA;AAEA,MAAAC,IAAA;AAAA,EACA,eAAA;AACA,SAAA,OAAAD,EAAA,SAAA,GACAA,KAAA;AAAA,EACA;AACA;;;;;;;;;;;;;;qBCqMIE,IAAA;AAAA,EAAe,MAAA;AAAA,EACL,cAAA;AAEV;;;;;;;;;;;;;;;;;;;;;;;;iBA1CAC,IAAA,CAAAC,MAAAA,GAEAC,IAAAC,EAAA,OAAA;AAAA,MAA2C,UAAA,CAAAC,EAAA;AAAA,MACtB,CAAA,WAAAT,EAAA,OAAA,GAAAS,EAAA,YAAAT,EAAA;AAAA,MACyD,CAAA,kBAAA,GAAAS,EAAA;AAAA,IAC9C,EAAA,GAGhCC,IAAAF,EAAA,MAAAC,EAAA,WAAAA,EAAA,UAAA,WAAAA,EAAA,MAAA,GACAE,IAAAH,EAAA,MAAA,EAAAC,EAAA,YAAAA,EAAA,aAAA;6IAMA,CAAAG,GAAAC,MAAA;AACI,MAAAC,EAAA,SAAAF,CAAA,GACAC,KACIA,EAAA;AAAA,IACJ;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[1]}
1
+ {"version":3,"file":"index.444d221f.js","sources":["../../../core/src/components/link/link.types.ts","../../../../node_modules/@adyen/ui-assets-icons-16/dist/vue/external-link.vue","../../src/components/link/link.vue"],"sourcesContent":["/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoLinkVariant {\n DEFAULT = 'default',\n QUIET = 'quiet',\n}\n","\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><path fill=\"#00112C\" d=\"M2.93933 11.9999L10.1893 4.74989H5.24999V3.24989H12.75V10.7499H11.25V5.81055L3.99999 13.0605L2.93933 11.9999Z\"/></svg>\n</template>\n<script>\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n<style>\n @import '../css/main.css';\n</style>\n","<template>\n <a\n v-if=\"external || isNotRouting\"\n :class=\"conditionalClasses\"\n v-bind=\"$attrs\"\n :href=\"$props.to.toString()\"\n :title=\"getAttributeTitle($attrs.title)\"\n :target=\"computedTarget\"\n @click=\"onClick\"\n >\n <bento-typography v-if=\"!disableTypography\" class=\"b-link__text\" el=\"span\" variant=\"body\">\n <slot />\n </bento-typography>\n <slot v-else />\n <span v-if=\"showExternalLinkIcon\" class=\"b-link__external-link-icon\">\n <external-link-icon />\n </span>\n </a>\n <router-link\n v-else\n v-bind=\"{ ...$attrs, ...$props }\"\n :class=\"conditionalClasses\"\n :target=\"target\"\n :to=\"props.to\"\n custom\n @click.native=\"onClick\"\n >\n <bento-typography v-if=\"!disableTypography\" class=\"b-link__text\" el=\"span\" variant=\"body\">\n <slot />\n </bento-typography>\n <slot v-else />\n </router-link>\n</template>\n\n<script setup lang=\"ts\">\n import { RouterLink } from 'vue-router';\n import { computed } from 'vue';\n import { BentoTypography } from '@/components/typography';\n import { BentoLinkVariant } from '@/core/components/link/link.types';\n import type { RouterLinkSlotArgument } from 'vue-router/types/router';\n import ExternalLinkIcon from '@adyen/ui-assets-icons-16/vue/external-link';\n\n /* eslint-disable vue/require-default-prop */ // Allow RouterLink to set the defaults\n /* eslint-disable @typescript-eslint/no-explicit-any */ // \"to\" needs to be any\n export interface LinkProps {\n /**\n * Denotes the target route of the link. When clicked, the value of the `to` prop will be passed to\n * `router.push()` internally, so the value can be either a \"string\" or a location\" descriptor object.\n */\n to: any;\n /* eslint-enable @typescript-eslint/no-explicit-any */\n\n /**\n * Setting `replace` prop will call `router.replace()` instead of `router.push()` when clicked, so the navigation will\n * not create a new history record.\n *\n * @default false\n */\n replace?: boolean;\n /**\n * Setting `append` prop always appends the relative path to the current path. For example, assuming we are navigating\n * from `/a` to a relative link `b`, without `append` we will end up at `/b`, but with append we will end up at\n * `/a/b`.\n *\n * @default false\n */\n append?: boolean;\n /**\n * Sometimes we want <RouterLink> to render as another tag, e.g <li>. Then we can use tag prop to specify which tag to\n * render to, and it will still listen to click events for navigation.\n *\n * @default \"a\"\n */\n tag?: string;\n /**\n * Configure the active CSS class applied when the link is active. Note the default value can also be configured\n * globally via the `linkActiveClass` router constructor option.\n *\n * @default \"router-link-active\"\n */\n activeClass?: string;\n /**\n * The default active class matching behavior is **inclusive match**. For example, `<RouterLink to=\"/a\">` will get\n * this class applied as long as the current path starts with `/a/` or is `/a`.\n *\n * @default false\n */\n exact?: boolean;\n /**\n * Allows matching only using the `path` section of the url, effectively ignoring the `query` and the `hash` sections.\n *\n * @default false\n */\n exactPath?: boolean;\n /**\n * Configure the active CSS class applied when the link is active with exact path match. Note the default value can\n * also be configured globally via the `linkExactPathActiveClass` router constructor option.\n *\n * @default \"router-link-exact-path-active\"\n */\n exactPathActiveClass?: string;\n\n /**\n * Specify the event(s) that can trigger the link navigation.\n *\n * @default 'click'\n */\n event?: string | ReadonlyArray<string>;\n /**\n * Configure the active CSS class applied when the link is active with exact match. Note the default value can also be\n * configured globally via the `linkExactActiveClass` router constructor option.\n *\n * @default \"router-link-exact-active\"\n */\n exactActiveClass?: string;\n /**\n * Configure the value of `aria-current` when the link is active with exact match. It must be one of the allowed\n * values for [aria-current](https://www.w3.org/TR/wai-aria-1.2/#aria-current) in the ARIA spec. In most cases, the\n * default of page should be the best fit.\n *\n * @default \"page\"\n */\n ariaCurrentValue?: 'page' | 'step' | 'location' | 'date' | 'time' | 'true' | 'false';\n\n /**\n * Custom Props\n */\n\n /**\n * Disable the default typography for the component. Only use this when the component is inside another typography component.\n */\n disableTypography?: boolean;\n\n /**\n * Set the rendered link to a regular external anchor link and renders an external link icon.\n */\n external?: boolean;\n\n /**\n * Set to true if used inside a `BentoButton` component.\n */\n isButton?: boolean;\n\n /**\n * Set the rendered link to a regular external anchor link.\n */\n isNotRouting?: boolean;\n\n /**\n * Sets the target of the rendered link.\n */\n target?: string;\n\n /**\n * Set to true to truncate link. Doesn't work with disableTypography.\n */\n truncate?: boolean;\n\n /**\n * Link variant type affecting visual style.\n * @values default, quiet\n */\n variant?: BentoLinkVariant | `${BentoLinkVariant}`;\n }\n\n const props = withDefaults(defineProps<LinkProps>(), {\n target: null,\n variant: BentoLinkVariant.DEFAULT,\n });\n\n const getAttributeTitle = (attributesTitle: unknown) => attributesTitle as string;\n\n const conditionalClasses = computed(() => ({\n 'b-link': !props.isButton,\n [`b-link--${BentoLinkVariant.QUIET}`]: props.variant === BentoLinkVariant.QUIET,\n [`b-link--truncate`]: props.truncate,\n }));\n\n const computedTarget = computed(() => (props.external ? props.target ?? '_blank' : props.target));\n const showExternalLinkIcon = computed(() => !(props.isButton || props.isNotRouting));\n\n const emit = defineEmits<{\n (e: 'click', clickEvent: MouseEvent): void;\n }>();\n\n const onClick = (e: MouseEvent, navigateCallback?: RouterLinkSlotArgument['navigate']) => {\n emit('click', e);\n if (navigateCallback) {\n navigateCallback();\n }\n };\n</script>\n\n<script lang=\"ts\">\n /**\n * Extends the `router-link` from the `vue-router` NPM package.\n *\n * @example\n * import { BentoLink } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoLink },\n * template: `\n * <bento-link to=\"/\">\n * link\n * </bento-link>\n * `\n * }\n */\n export default {\n name: 'bento-link',\n inheritAttrs: false,\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"@/core/components/link/link.scss\" />\n"],"names":["BentoLinkVariant","BentoLinkVariant2","uuid","_sfc_main$1","__default__","getAttributeTitle","attributesTitle","conditionalClasses","computed","props","computedTarget","showExternalLinkIcon","e","navigateCallback","emit"],"mappings":";;;;;AAGY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,UAAA,WACAA,EAAA,QAAA,SAFQA,IAAAD,KAAA,CAAA,CAAA;ACEZ,IAAAE,IAAA;AAEA,MAAAC,IAAA;AAAA,EACA,eAAA;AACA,SAAA,OAAAD,EAAA,SAAA,GACAA,KAAA;AAAA,EACA;AACA;;;;;;;;;;;;;;qBCqMIE,IAAA;AAAA,EAAe,MAAA;AAAA,EACL,cAAA;AAEV;;;;;;;;;;;;;;;;;;;;;;;;iBA1CAC,IAAA,CAAAC,MAAAA,GAEAC,IAAAC,EAAA,OAAA;AAAA,MAA2C,UAAA,CAAAC,EAAA;AAAA,MACtB,CAAA,WAAAT,EAAA,OAAA,GAAAS,EAAA,YAAAT,EAAA;AAAA,MACyD,CAAA,kBAAA,GAAAS,EAAA;AAAA,IAC9C,EAAA,GAGhCC,IAAAF,EAAA,MAAAC,EAAA,WAAAA,EAAA,UAAA,WAAAA,EAAA,MAAA,GACAE,IAAAH,EAAA,MAAA,EAAAC,EAAA,YAAAA,EAAA,aAAA;6IAMA,CAAAG,GAAAC,MAAA;AACI,MAAAC,EAAA,SAAAF,CAAA,GACAC,KACIA,EAAA;AAAA,IACJ;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[1]}
@@ -1,25 +1,25 @@
1
1
  import { reactive as J, defineComponent as ke, ref as M, computed as k, onMounted as We, toRaw as qe, toRef as fe, watch as Ve } from "vue";
2
- import { a as He } from "./index.5d5f2200.js";
3
- import { B as Ee } from "./index.ba6c1040.js";
4
- import { c as je, B as Ke } from "./dropdown-default-textbox.c1f8fe5f.js";
2
+ import { a as He } from "./index.ec632d95.js";
3
+ import { B as Ee } from "./index.d97166c6.js";
5
4
  import { g as V } from "./unique-id.a2a2b458.js";
6
5
  import { u as re } from "./i18n.eb5b985b.js";
7
- import { t as se, f as $ } from "./index.03ae22b4.js";
6
+ import { t as se, f as $ } from "./index.9e40ffeb.js";
8
7
  import { r as Q, t as j, e as S, d as oe, f as ie } from "./index.f55fdc32.js";
9
- import { f as pe, v as ze, D as E } from "./date-input.9186a0bf.js";
10
- import { u as Je } from "./use-form-layout-loading.d03e5d48.js";
8
+ import { f as pe, v as je, D as E } from "./date-input.9186a0bf.js";
9
+ import { u as Ke } from "./use-form-layout-loading.d03e5d48.js";
11
10
  import "./index.4c062058.js";
12
- import { BentoInputField as Qe } from "../input-field.js";
13
- import { B as Xe } from "./dropdown.669b858b.js";
14
- import { BentoSegmentedControl as Ze } from "../segmented-control.js";
11
+ import { BentoInputField as ze } from "../input-field.js";
12
+ import { B as Je } from "./dropdown.7d4a8dfc.js";
13
+ import { BentoSegmentedControl as Qe } from "../segmented-control.js";
15
14
  import { d as z } from "./debounce.b5ef6acf.js";
16
- import { u as et } from "./use-has-slot.fbeb19ec.js";
17
- import { s as H, c as ge, i as B, d as tt, e as ve, f as at, g as _e, h as nt, j as rt, C as F, u as st } from "./calendar.1e416969.js";
15
+ import { u as Xe } from "./use-has-slot.fbeb19ec.js";
16
+ import { s as H, c as ge, i as B, d as Ze, e as ve, f as et, g as _e, h as tt, j as at, C as F, u as nt } from "./calendar.7d3e2db0.js";
18
17
  import { e as O } from "./index.fdf12170.js";
19
18
  import { e as Te } from "./index.d80206ed.js";
20
19
  import { n as Se } from "./_plugin-vue2_normalizer.71e2aa87.js";
21
- import { E as ot, F as it } from "./error-message.8734e591.js";
22
- import "../assets/index16.css";
20
+ import { c as rt, B as st } from "./dropdown-default-textbox.a1c0c0fb.js";
21
+ import { E as ot, F as it } from "./error-message.db315e68.js";
22
+ import "../assets/index2.css";
23
23
  function Re(t, e) {
24
24
  Q(2, arguments);
25
25
  var n = j(t), d = j(e);
@@ -51,13 +51,13 @@ const ct = ({
51
51
  D = H(l.earliest);
52
52
  else {
53
53
  const f = ge(D, { weekStartsOn: t });
54
- B(D, f) || (D = H(tt(ve(D, { weekStartsOn: t }), 1)));
54
+ B(D, f) || (D = H(Ze(ve(D, { weekStartsOn: t }), 1)));
55
55
  }
56
56
  if (l.latest)
57
57
  r = O(l.latest);
58
58
  else {
59
59
  const f = ve(r, { weekStartsOn: t });
60
- B(r, f) || (r = O(at(ge(r, { weekStartsOn: t }), 1)));
60
+ B(r, f) || (r = O(et(ge(r, { weekStartsOn: t }), 1)));
61
61
  }
62
62
  }
63
63
  if ((l == null ? void 0 : l.type) === "monthly") {
@@ -65,13 +65,13 @@ const ct = ({
65
65
  D = H(l.earliest);
66
66
  else {
67
67
  const f = _e(D);
68
- B(D, f) || (D = _e(nt(D, 1)));
68
+ B(D, f) || (D = _e(tt(D, 1)));
69
69
  }
70
70
  if (l.latest)
71
71
  r = O(l.latest);
72
72
  else {
73
73
  const f = Te(r);
74
- B(r, f) || (r = Te(rt(r, 1)));
74
+ B(r, f) || (r = Te(at(r, 1)));
75
75
  }
76
76
  }
77
77
  return { min: D, max: r };
@@ -121,9 +121,9 @@ const mt = /[\d]/, ft = /^\d{2}$/, pt = /^\d{2}:\d{2}$/, gt = (t) => {
121
121
  i18n: { messages: vt },
122
122
  name: "date-range-picker-calendar",
123
123
  components: {
124
- BentoDropdown: Xe,
125
- BentoInputField: Qe,
126
- BentoSegmentedControl: Ze,
124
+ BentoDropdown: Je,
125
+ BentoInputField: ze,
126
+ BentoSegmentedControl: Qe,
127
127
  BentoTypography: Ee,
128
128
  Calendar: F
129
129
  },
@@ -229,7 +229,7 @@ const mt = /[\d]/, ft = /^\d{2}$/, pt = /^\d{2}:\d{2}$/, gt = (t) => {
229
229
  adjustEndDateInputForWeekly: _,
230
230
  adjustStartDateInputForMonthly: X,
231
231
  adjustEndDateInputForMonthly: Z
232
- } = st(t.firstDayOfWeek), { savedRanges: R, saveRange: le, resetSavedRanges: ee } = Dt(), C = () => {
232
+ } = nt(t.firstDayOfWeek), { savedRanges: R, saveRange: le, resetSavedRanges: ee } = Dt(), C = () => {
233
233
  t != null && t.quickSelectRanges && (f.value = ne);
234
234
  }, T = (a) => a ? $(a, E.NUMERIC_DATE_YEAR_FIRST, {
235
235
  locale: D[d.value.substring(0, 2)] || S
@@ -340,7 +340,7 @@ const mt = /[\d]/, ft = /^\d{2}$/, pt = /^\d{2}:\d{2}$/, gt = (t) => {
340
340
  }, Ie), Fe = (a) => {
341
341
  C(), o.endDate = pe(a), he(o.endDate);
342
342
  }, Pe = (a) => {
343
- ze(a);
343
+ je(a);
344
344
  }, Ae = z((a) => {
345
345
  if (te(a)) {
346
346
  c.value = !1, r.startDate = U(r.startDate, a);
@@ -439,7 +439,7 @@ const mt = /[\d]/, ft = /^\d{2}$/, pt = /^\d{2}:\d{2}$/, gt = (t) => {
439
439
  quickSelectRangeDefaultItems: G,
440
440
  formInputWrapperConditionalClasses: Y,
441
441
  // Methods
442
- hasSlot: et(n),
442
+ hasSlot: Xe(n),
443
443
  t: l,
444
444
  // Events
445
445
  onDateInput: Me,
@@ -527,11 +527,11 @@ const bt = {
527
527
  BentoTypography: Ee,
528
528
  BentoPopover: He,
529
529
  DateRangePickerCalendar: b,
530
- DropdownInputDefault: je,
530
+ DropdownInputDefault: rt,
531
531
  ErrorMessage: ot,
532
532
  FieldLabel: it
533
533
  },
534
- directives: { BentoClickOutsideDirective: Ke },
534
+ directives: { BentoClickOutsideDirective: st },
535
535
  props: {
536
536
  /**
537
537
  * Allows user to enter time values in the form
@@ -618,7 +618,7 @@ const bt = {
618
618
  setup(t, { emit: e }) {
619
619
  const { locale: n, t: d } = re(), l = { de: oe, enUS: S, fr: ie }, D = V("bento-date-range-picker-container"), r = V("bento-date-range-picker-label"), f = V("bento-date-range-picker-description"), Y = V("bento-date-range-picker-error"), G = V("bento-date-range-picker-date-error"), y = k(
620
620
  () => t.label || d("dateRangePicker", { name: D })
621
- ), g = M(!1), P = M(null), u = M(!1), { isReadOnly: A } = Je(fe(t, "readonly"));
621
+ ), g = M(!1), P = M(null), u = M(!1), { isReadOnly: A } = Ke(fe(t, "readonly"));
622
622
  Ve(
623
623
  () => t.disabled,
624
624
  () => {
@@ -709,4 +709,4 @@ export {
709
709
  L as a,
710
710
  Re as i
711
711
  };
712
- //# sourceMappingURL=index.73abb1a9.js.map
712
+ //# sourceMappingURL=index.4b6211c7.js.map