@adyen/bento-vue2 1.3.0-1 → 1.3.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 (131) hide show
  1. package/dist/accordion.js +1 -1
  2. package/dist/alert.js +3 -3
  3. package/dist/assets/index.css +1 -1
  4. package/dist/assets/index10.css +1 -1
  5. package/dist/assets/index11.css +1 -1
  6. package/dist/assets/index12.css +1 -1
  7. package/dist/assets/index13.css +1 -1
  8. package/dist/assets/index14.css +1 -1
  9. package/dist/assets/index15.css +1 -1
  10. package/dist/assets/index16.css +1 -1
  11. package/dist/assets/index17.css +1 -1
  12. package/dist/assets/index18.css +1 -1
  13. package/dist/assets/index19.css +1 -1
  14. package/dist/assets/index2.css +1 -1
  15. package/dist/assets/index20.css +1 -1
  16. package/dist/assets/index21.css +1 -1
  17. package/dist/assets/index22.css +1 -1
  18. package/dist/assets/index23.css +1 -1
  19. package/dist/assets/index24.css +1 -1
  20. package/dist/assets/index25.css +1 -1
  21. package/dist/assets/index26.css +1 -1
  22. package/dist/assets/index27.css +1 -1
  23. package/dist/assets/index28.css +1 -1
  24. package/dist/assets/index29.css +1 -1
  25. package/dist/assets/index3.css +1 -1
  26. package/dist/assets/index30.css +1 -1
  27. package/dist/assets/index31.css +1 -1
  28. package/dist/assets/index32.css +1 -1
  29. package/dist/assets/index33.css +1 -1
  30. package/dist/assets/index34.css +1 -1
  31. package/dist/assets/index35.css +1 -1
  32. package/dist/assets/index36.css +1 -1
  33. package/dist/assets/index37.css +1 -1
  34. package/dist/assets/index38.css +1 -1
  35. package/dist/assets/index39.css +1 -1
  36. package/dist/assets/index4.css +1 -1
  37. package/dist/assets/index40.css +1 -1
  38. package/dist/assets/index41.css +1 -1
  39. package/dist/assets/index5.css +1 -1
  40. package/dist/assets/index6.css +1 -1
  41. package/dist/assets/index7.css +1 -1
  42. package/dist/assets/index8.css +1 -1
  43. package/dist/assets/index9.css +1 -1
  44. package/dist/avatar-image.js +1 -1
  45. package/dist/badge.js +1 -1
  46. package/dist/button.js +3 -3
  47. package/dist/card.js +3 -3
  48. package/dist/checkbox.js +6 -6
  49. package/dist/chunks/{base-button.ebd7c02e.js → base-button.98379576.js} +2 -2
  50. package/dist/chunks/{base-button.ebd7c02e.js.map → base-button.98379576.js.map} +1 -1
  51. package/dist/chunks/{button-actions.075932ac.js → button-actions.bd397c79.js} +2 -2
  52. package/dist/chunks/{button-actions.075932ac.js.map → button-actions.bd397c79.js.map} +1 -1
  53. package/dist/chunks/{button.be42b512.js → button.d0c9527d.js} +2 -2
  54. package/dist/chunks/{button.be42b512.js.map → button.d0c9527d.js.map} +1 -1
  55. package/dist/chunks/{calendar.2d5aa882.js → calendar.0ae43a96.js} +4 -4
  56. package/dist/chunks/{calendar.2d5aa882.js.map → calendar.0ae43a96.js.map} +1 -1
  57. package/dist/chunks/{checkbox.f6548e4f.js → checkbox.f8457c93.js} +3 -3
  58. package/dist/chunks/{checkbox.f6548e4f.js.map → checkbox.f8457c93.js.map} +1 -1
  59. package/dist/chunks/{controls-group.62e35aef.js → controls-group.b827382b.js} +2 -2
  60. package/dist/chunks/{controls-group.62e35aef.js.map → controls-group.b827382b.js.map} +1 -1
  61. package/dist/chunks/{copy.6081b6ec.js → copy.5a4cbd4d.js} +3 -3
  62. package/dist/chunks/{copy.6081b6ec.js.map → copy.5a4cbd4d.js.map} +1 -1
  63. package/dist/chunks/{dropdown-default-textbox.35029df1.js → dropdown-default-textbox.819e43f7.js} +2 -2
  64. package/dist/chunks/{dropdown-default-textbox.35029df1.js.map → dropdown-default-textbox.819e43f7.js.map} +1 -1
  65. package/dist/chunks/{dropdown.9681d483.js → dropdown.c05678d0.js} +6 -6
  66. package/dist/chunks/{dropdown.9681d483.js.map → dropdown.c05678d0.js.map} +1 -1
  67. package/dist/chunks/{error-message.588e0cf6.js → error-message.0433b539.js} +2 -2
  68. package/dist/chunks/{error-message.588e0cf6.js.map → error-message.0433b539.js.map} +1 -1
  69. package/dist/chunks/{footer-actions.63766096.js → footer-actions.67642347.js} +4 -4
  70. package/dist/chunks/{footer-actions.63766096.js.map → footer-actions.67642347.js.map} +1 -1
  71. package/dist/chunks/{index.b56bf100.js → index.0cf00b47.js} +6 -6
  72. package/dist/chunks/{index.b56bf100.js.map → index.0cf00b47.js.map} +1 -1
  73. package/dist/chunks/{index.0a747d58.js → index.10aaf539.js} +8 -8
  74. package/dist/chunks/{index.0a747d58.js.map → index.10aaf539.js.map} +1 -1
  75. package/dist/chunks/{index.96e2f563.js → index.133e4da0.js} +2 -2
  76. package/dist/chunks/{index.96e2f563.js.map → index.133e4da0.js.map} +1 -1
  77. package/dist/chunks/{index.e3c7b9ee.js → index.56858f4e.js} +2 -2
  78. package/dist/chunks/{index.e3c7b9ee.js.map → index.56858f4e.js.map} +1 -1
  79. package/dist/chunks/{index.4d3472d3.js → index.73d50fa6.js} +2 -2
  80. package/dist/chunks/{index.4d3472d3.js.map → index.73d50fa6.js.map} +1 -1
  81. package/dist/chunks/{index.a374cb78.js → index.f0f8ed98.js} +3 -3
  82. package/dist/chunks/{index.a374cb78.js.map → index.f0f8ed98.js.map} +1 -1
  83. package/dist/chunks/{listbox-option-tag.e5a28267.js → listbox-option-tag.8d6cccac.js} +3 -3
  84. package/dist/chunks/{listbox-option-tag.e5a28267.js.map → listbox-option-tag.8d6cccac.js.map} +1 -1
  85. package/dist/chunks/{listbox.140e447a.js → listbox.116ed0c1.js} +5 -5
  86. package/dist/chunks/{listbox.140e447a.js.map → listbox.116ed0c1.js.map} +1 -1
  87. package/dist/chunks/{loading-button.80bba4ca.js → loading-button.1c201f87.js} +2 -2
  88. package/dist/chunks/{loading-button.80bba4ca.js.map → loading-button.1c201f87.js.map} +1 -1
  89. package/dist/chunks/{tooltip.680d6038.js → tooltip.2aff4fa6.js} +2 -2
  90. package/dist/chunks/{tooltip.680d6038.js.map → tooltip.2aff4fa6.js.map} +1 -1
  91. package/dist/code-snippet.js +6 -6
  92. package/dist/country.js +2 -2
  93. package/dist/currency.js +1 -1
  94. package/dist/data-grid.js +6 -6
  95. package/dist/date-picker.js +7 -7
  96. package/dist/date-range-picker.js +2 -2
  97. package/dist/date.js +1 -1
  98. package/dist/divider.js +1 -1
  99. package/dist/dropdown.js +4 -4
  100. package/dist/filter-bar.js +13 -13
  101. package/dist/focus-trap.js +1 -1
  102. package/dist/form-layout.js +2 -2
  103. package/dist/header.js +3 -3
  104. package/dist/index.js +12 -12
  105. package/dist/info-icon.js +2 -2
  106. package/dist/input-field.js +4 -4
  107. package/dist/internal.js +6 -6
  108. package/dist/link.js +2 -2
  109. package/dist/loading-indicator.js +1 -1
  110. package/dist/menu.js +4 -4
  111. package/dist/modal.js +6 -6
  112. package/dist/pagination.js +4 -4
  113. package/dist/payment-method.js +2 -2
  114. package/dist/popover.js +4 -4
  115. package/dist/popper-container.js +2 -2
  116. package/dist/radio-group.js +4 -4
  117. package/dist/search-bar.js +2 -2
  118. package/dist/segmented-control.js +4 -4
  119. package/dist/sidepanel.js +5 -5
  120. package/dist/status.js +2 -2
  121. package/dist/structured-list.js +1 -1
  122. package/dist/summary-grid.js +3 -3
  123. package/dist/tabs.js +2 -2
  124. package/dist/tag.js +3 -3
  125. package/dist/textarea.js +4 -4
  126. package/dist/timeline.js +5 -5
  127. package/dist/toast.js +3 -3
  128. package/dist/toggle.js +2 -2
  129. package/dist/typography.js +1 -1
  130. package/dist/web-types.json +1 -1
  131. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"loading-button.80bba4ca.js","sources":["../../src/components/button/components/loading-button/loading-button.types.ts","../../src/components/button/components/loading-button/loading-button.vue"],"sourcesContent":["export enum BentoLoadingButtonState {\n START = 'start',\n LOADING = 'loading',\n SUCCESS = 'success',\n FAIL = 'fail',\n}\n\nexport type BentoLoadingButtonIconState = Partial<{ [key in BentoLoadingButtonState]: string }>;\n","<template>\n <bento-button\n :critical=\"state === BentoLoadingButtonState.FAIL\"\n :variant=\"variant\"\n :condensed=\"condensed\"\n :disabled=\"disabled\"\n class=\"b-loading-button\"\n :class=\"conditionalClasses\"\n @click=\"onClick\"\n >\n <slot></slot>\n <template v-if=\"state !== BentoLoadingButtonState.START\" #iconLeft>\n <span class=\"b-loading-button__icon\" data-testid=\"loading-button-rotating-icon\">\n <cross v-if=\"state === BentoLoadingButtonState.FAIL\" svg-title=\"failed\" />\n <checkmark v-else-if=\"state === BentoLoadingButtonState.SUCCESS\" svg-title=\"succeded\" />\n <!-- TODO: Replace with new loading-indicator component -->\n <bento-loading-indicator\n v-else-if=\"state === BentoLoadingButtonState.LOADING\"\n small\n :inverse=\"isInverseLoadingIndicator\"\n />\n </span>\n </template>\n </bento-button>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType } from 'vue';\n import { BentoButtonVariant } from '@/core/components/button/button.types';\n import { BentoLoadingButtonState } from './loading-button.types';\n import { BentoLoadingIndicator } from '@/components/loading-indicator';\n import BentoButton from '@/components/button/button.vue';\n import Cross from '@adyen/ui-assets-icons-16/vue/cross-circle-fill';\n import Checkmark from '@adyen/ui-assets-icons-16/vue/checkmark-circle-fill';\n\n export default defineComponent({\n name: 'bento-loading-button',\n components: { BentoButton, Cross, Checkmark, BentoLoadingIndicator },\n props: {\n /**\n * Reduces sizing of button\n */\n condensed: {\n type: BentoButton.props.condensed.type,\n default: false,\n },\n\n /**\n * Disables button functonality\n */\n disabled: {\n type: BentoButton.props.disabled.type,\n default: false,\n },\n\n /**\n * State of the button.\n * @values start, loading, success, fail\n */\n state: {\n type: String as PropType<BentoLoadingButtonState | `${BentoLoadingButtonState}`>,\n default: BentoLoadingButtonState.START,\n validator: (value: BentoLoadingButtonState) => Object.values(BentoLoadingButtonState).includes(value),\n },\n\n /**\n * Types of flavour of Button\n * @values primary, secondary, tertiary\n */\n variant: {\n type: BentoButton.props.variant.type,\n default: BentoButtonVariant.PRIMARY,\n validator: BentoButton.props.variant.validator,\n },\n },\n setup(props, { emit }) {\n const conditionalClasses = computed(() => ({\n [`b-loading-button--${props.variant}-${BentoLoadingButtonState.LOADING}`]:\n props.state === BentoLoadingButtonState.LOADING && !props.disabled,\n [`b-loading-button--${props.variant}-${BentoLoadingButtonState.SUCCESS}`]:\n props.state === BentoLoadingButtonState.SUCCESS,\n }));\n\n const isInverseLoadingIndicator = computed(() => props.variant === BentoButtonVariant.PRIMARY);\n\n const onClick = () => {\n if (props.state !== BentoLoadingButtonState.LOADING) {\n emit('click');\n }\n };\n\n return {\n // Enums\n BentoLoadingButtonState,\n\n // Functions\n onClick,\n\n // Values\n conditionalClasses,\n isInverseLoadingIndicator,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./loading-button.scss\" />\n"],"names":["BentoLoadingButtonState","BentoLoadingButtonState2","_sfc_main","defineComponent","BentoButton","CrossCircleIcon","CheckedCircleIcon","BentoLoadingIndicator","value","BentoButtonVariant","props","emit","conditionalClasses","computed","isInverseLoadingIndicator"],"mappings":";;;;;;;AAAY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,QAAA,SACAA,EAAA,UAAA,WACAA,EAAA,UAAA,WACAA,EAAA,OAAA,QAJQA,IAAAD,KAAA,CAAA,CAAA;ACmCZ,MAAAE,IAAAC,EAAA;AAAA,EAAA,MAAA;AAAA,EACA,YAAA,EAAA,aAAAC,GAAA,OAAAC,GAAA,WAAAC,GAAA,uBAAAC,EAAA;AAAA,EACA,OAAA;AAAA;AAAA;AAAA;AAAA,IACA,WAAA;AAAA,MAIA,MAAAH,EAAA,MAAA,UAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IACA,UAAA;AAAA,MAKA,MAAAA,EAAA,MAAA,SAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA,IACA,OAAA;AAAA,MAMA,MAAA;AAAA,MACA,SAAAJ,EAAA;AAAA,MACA,WAAA,CAAAQ,MAAA,OAAA,OAAAR,CAAA,EAAA,SAAAQ,CAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA,IACA,SAAA;AAAA,MAMA,MAAAJ,EAAA,MAAA,QAAA;AAAA,MACA,SAAAK,EAAA;AAAA,MACA,WAAAL,EAAA,MAAA,QAAA;AAAA,IACA;AAAA,EACA;AAAA,EACA,MAAAM,GAAA,EAAA,MAAAC,EAAA,GAAA;AAEA,UAAAC,IAAAC,EAAA,OAAA;AAAA,MAAA,CAAA,qBAAAH,EAAA,WAAAV,EAAA,SAAA,GAAAU,EAAA,UAAAV,EAAA,WAAA,CAAAU,EAAA;AAAA,MAEA,CAAA,qBAAAA,EAAA,WAAAV,EAAA,SAAA,GAAAU,EAAA,UAAAV,EAAA;AAAA,IAEA,EAAA,GAGAc,IAAAD,EAAA,MAAAH,EAAA,YAAAD,EAAA,OAAA;AAQA,WAAA;AAAA;AAAA,MAAA,yBAAAT;AAAA;AAAA,MAEA,SARA,MAAA;AACA,QAAAU,EAAA,UAAAV,EAAA,WACAW,EAAA,OAAA;AAAA,MACA;AAAA;AAAA,MAQA,oBAAAC;AAAA,MAGA,2BAAAE;AAAA,IACA;AAAA,EACA;AAEA,CAAA;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"loading-button.1c201f87.js","sources":["../../src/components/button/components/loading-button/loading-button.types.ts","../../src/components/button/components/loading-button/loading-button.vue"],"sourcesContent":["export enum BentoLoadingButtonState {\n START = 'start',\n LOADING = 'loading',\n SUCCESS = 'success',\n FAIL = 'fail',\n}\n\nexport type BentoLoadingButtonIconState = Partial<{ [key in BentoLoadingButtonState]: string }>;\n","<template>\n <bento-button\n :critical=\"state === BentoLoadingButtonState.FAIL\"\n :variant=\"variant\"\n :condensed=\"condensed\"\n :disabled=\"disabled\"\n class=\"b-loading-button\"\n :class=\"conditionalClasses\"\n @click=\"onClick\"\n >\n <slot></slot>\n <template v-if=\"state !== BentoLoadingButtonState.START\" #iconLeft>\n <span class=\"b-loading-button__icon\" data-testid=\"loading-button-rotating-icon\">\n <cross v-if=\"state === BentoLoadingButtonState.FAIL\" svg-title=\"failed\" />\n <checkmark v-else-if=\"state === BentoLoadingButtonState.SUCCESS\" svg-title=\"succeded\" />\n <!-- TODO: Replace with new loading-indicator component -->\n <bento-loading-indicator\n v-else-if=\"state === BentoLoadingButtonState.LOADING\"\n small\n :inverse=\"isInverseLoadingIndicator\"\n />\n </span>\n </template>\n </bento-button>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType } from 'vue';\n import { BentoButtonVariant } from '@/core/components/button/button.types';\n import { BentoLoadingButtonState } from './loading-button.types';\n import { BentoLoadingIndicator } from '@/components/loading-indicator';\n import BentoButton from '@/components/button/button.vue';\n import Cross from '@adyen/ui-assets-icons-16/vue/cross-circle-fill';\n import Checkmark from '@adyen/ui-assets-icons-16/vue/checkmark-circle-fill';\n\n export default defineComponent({\n name: 'bento-loading-button',\n components: { BentoButton, Cross, Checkmark, BentoLoadingIndicator },\n props: {\n /**\n * Reduces sizing of button\n */\n condensed: {\n type: BentoButton.props.condensed.type,\n default: false,\n },\n\n /**\n * Disables button functonality\n */\n disabled: {\n type: BentoButton.props.disabled.type,\n default: false,\n },\n\n /**\n * State of the button.\n * @values start, loading, success, fail\n */\n state: {\n type: String as PropType<BentoLoadingButtonState | `${BentoLoadingButtonState}`>,\n default: BentoLoadingButtonState.START,\n validator: (value: BentoLoadingButtonState) => Object.values(BentoLoadingButtonState).includes(value),\n },\n\n /**\n * Types of flavour of Button\n * @values primary, secondary, tertiary\n */\n variant: {\n type: BentoButton.props.variant.type,\n default: BentoButtonVariant.PRIMARY,\n validator: BentoButton.props.variant.validator,\n },\n },\n setup(props, { emit }) {\n const conditionalClasses = computed(() => ({\n [`b-loading-button--${props.variant}-${BentoLoadingButtonState.LOADING}`]:\n props.state === BentoLoadingButtonState.LOADING && !props.disabled,\n [`b-loading-button--${props.variant}-${BentoLoadingButtonState.SUCCESS}`]:\n props.state === BentoLoadingButtonState.SUCCESS,\n }));\n\n const isInverseLoadingIndicator = computed(() => props.variant === BentoButtonVariant.PRIMARY);\n\n const onClick = () => {\n if (props.state !== BentoLoadingButtonState.LOADING) {\n emit('click');\n }\n };\n\n return {\n // Enums\n BentoLoadingButtonState,\n\n // Functions\n onClick,\n\n // Values\n conditionalClasses,\n isInverseLoadingIndicator,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./loading-button.scss\" />\n"],"names":["BentoLoadingButtonState","BentoLoadingButtonState2","_sfc_main","defineComponent","BentoButton","CrossCircleIcon","CheckedCircleIcon","BentoLoadingIndicator","value","BentoButtonVariant","props","emit","conditionalClasses","computed","isInverseLoadingIndicator"],"mappings":";;;;;;;AAAY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,QAAA,SACAA,EAAA,UAAA,WACAA,EAAA,UAAA,WACAA,EAAA,OAAA,QAJQA,IAAAD,KAAA,CAAA,CAAA;ACmCZ,MAAAE,IAAAC,EAAA;AAAA,EAAA,MAAA;AAAA,EACA,YAAA,EAAA,aAAAC,GAAA,OAAAC,GAAA,WAAAC,GAAA,uBAAAC,EAAA;AAAA,EACA,OAAA;AAAA;AAAA;AAAA;AAAA,IACA,WAAA;AAAA,MAIA,MAAAH,EAAA,MAAA,UAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IACA,UAAA;AAAA,MAKA,MAAAA,EAAA,MAAA,SAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA,IACA,OAAA;AAAA,MAMA,MAAA;AAAA,MACA,SAAAJ,EAAA;AAAA,MACA,WAAA,CAAAQ,MAAA,OAAA,OAAAR,CAAA,EAAA,SAAAQ,CAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA,IACA,SAAA;AAAA,MAMA,MAAAJ,EAAA,MAAA,QAAA;AAAA,MACA,SAAAK,EAAA;AAAA,MACA,WAAAL,EAAA,MAAA,QAAA;AAAA,IACA;AAAA,EACA;AAAA,EACA,MAAAM,GAAA,EAAA,MAAAC,EAAA,GAAA;AAEA,UAAAC,IAAAC,EAAA,OAAA;AAAA,MAAA,CAAA,qBAAAH,EAAA,WAAAV,EAAA,SAAA,GAAAU,EAAA,UAAAV,EAAA,WAAA,CAAAU,EAAA;AAAA,MAEA,CAAA,qBAAAA,EAAA,WAAAV,EAAA,SAAA,GAAAU,EAAA,UAAAV,EAAA;AAAA,IAEA,EAAA,GAGAc,IAAAD,EAAA,MAAAH,EAAA,YAAAD,EAAA,OAAA;AAQA,WAAA;AAAA;AAAA,MAAA,yBAAAT;AAAA;AAAA,MAEA,SARA,MAAA;AACA,QAAAU,EAAA,UAAAV,EAAA,WACAW,EAAA,OAAA;AAAA,MACA;AAAA;AAAA,MAQA,oBAAAC;AAAA,MAGA,2BAAAE;AAAA,IACA;AAAA,EACA;AAEA,CAAA;;;;;;;;;;;;;;;;;"}
@@ -3,7 +3,7 @@ import { l as s } from "./events.58c00e6d.js";
3
3
  import { g as S } from "./unique-id.a2a2b458.js";
4
4
  import { PopperContainerPositionBasic as v, PopperContainer as N, PopperContainerAriaRole as D, PopperContainerPositionExtended as W } from "../popper-container.js";
5
5
  import { V as B } from "./index.af05ced4.js";
6
- import { B as x, a as I, b as U } from "./index.e3c7b9ee.js";
6
+ import { B as x, a as I, b as U } from "./index.56858f4e.js";
7
7
  import { n as G } from "./_plugin-vue2_normalizer.71e2aa87.js";
8
8
  import "../assets/tooltip.css";
9
9
  const l = { ...v };
@@ -170,4 +170,4 @@ export {
170
170
  A as a,
171
171
  tt as b
172
172
  };
173
- //# sourceMappingURL=tooltip.680d6038.js.map
173
+ //# sourceMappingURL=tooltip.2aff4fa6.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tooltip.680d6038.js","sources":["../../src/directives/tooltip/tooltip.types.ts","../../src/types/utils-events.ts","../../src/components/tooltip/tooltip.vue","../../src/directives/tooltip/tooltip.ts"],"sourcesContent":["import { PopperContainerPositionBasic } from '@/components/popper-container';\nimport type { DirectiveBinding } from 'vue/types/options';\n\nexport const BentoTooltipPosition = { ...PopperContainerPositionBasic };\nexport type BentoTooltipPosition = PopperContainerPositionBasic;\n\nexport enum BentoTooltipState {\n HIDDEN = 'hidden',\n}\n\nexport interface BentoTooltipDirectiveBinding extends Readonly<DirectiveBinding> {\n readonly value: string;\n}\n","import type { Vue } from 'vue-demi';\n\nexport interface ListenOptions {\n capture?: boolean;\n passive?: boolean;\n once?: boolean;\n self?: boolean;\n vm?: Vue;\n onCleanup?: () => void;\n}\n\nexport enum EventKey {\n ESCAPE = 'Escape',\n ENTER = 'Enter',\n ARROW_LEFT = 'ArrowLeft',\n ARROW_UP = 'ArrowUp',\n ARROW_RIGHT = 'ArrowRight',\n ARROW_DOWN = 'ArrowDown',\n PAGE_UP = 'PageUp',\n PAGE_DOWN = 'PageDown',\n END = 'End',\n HOME = 'Home',\n}\n\n/**\n * @deprecated `Event.keyCode` is deprecated. Use `EventKey` instead\n */\nexport enum KeyCode {\n ESCAPE = 27,\n ENTER = 13,\n ARROW_LEFT = 37,\n ARROW_UP = 38,\n ARROW_RIGHT = 39,\n ARROW_DOWN = 40,\n PAGE_UP = 33,\n PAGE_DOWN = 34,\n END = 35,\n HOME = 36,\n}\n","<template>\n <popper-container\n :id=\"id\"\n :target-element=\"targetElement\"\n :position=\"position\"\n :offset=\"[0, 4]\"\n :arrow=\"{ classes: ['b-tooltip__arrow'] }\"\n :aria-hidden=\"!isShown\"\n :class=\"conditionalClasses\"\n :tabindex=\"tabIndex\"\n class=\"b-tooltip\"\n :aria-role=\"PopperContainerAriaRole.TOOLTIP\"\n :fallback-position=\"PopperContainerPositionExtended.AUTO\"\n >\n <bento-typography :el=\"BentoTypographyElement.SPAN\" :variant=\"BentoTypographyVariant.CAPTION\">\n {{ content }}\n </bento-typography>\n </popper-container>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType } from 'vue';\n import { BentoTooltipPosition, BentoTooltipState } from '@/directives/tooltip/tooltip.types';\n import {\n PopperContainer,\n PopperContainerAriaRole,\n PopperContainerPositionExtended,\n } from '@/components/popper-container';\n import { BentoTypography, BentoTypographyElement, BentoTypographyVariant } from '@/components/typography';\n import { VueNodeElement } from '@/types';\n\n /**\n * Tooltip container, to be used internally to render the tooltip container where the text is shown.\n */\n export const Tooltip = {\n name: 'tooltip',\n components: { BentoTypography, PopperContainer },\n props: {\n /**\n * The tooltip's id. Necessary for accessibility purposes.\n */\n id: { type: String, default: null },\n /**\n * Tooltip's target reference to the DOM element or Vue component.\n * The tooltip will position itself relatively to target element, in the specified position.\n */\n targetElement: { type: [Element, Object] as PropType<VueNodeElement>, required: true },\n /**\n * Tooltip's position relative to the target element.\n * Possible values are: 'top', 'bottom', 'left' and 'right'.\n */\n position: {\n type: String as PropType<BentoTooltipPosition>,\n default: BentoTooltipPosition.TOP,\n validator: value => Object.values(BentoTooltipPosition).includes(value as BentoTooltipPosition),\n },\n /**\n * Tooltip's offset.\n * If specified, the tooltip will have an offset in pixels between it and the target element\n * in specified position.\n */\n offset: { type: Number, default: 0 },\n /**\n * Tooltip's text content.\n */\n content: { type: String, required: true },\n /**\n * Shows / Hides the Tooltip component\n */\n isShown: { type: Boolean, default: false },\n },\n setup(props) {\n const conditionalClasses = computed(() => ({\n [`b-tooltip--${BentoTooltipState.HIDDEN}`]: !props.isShown,\n }));\n\n const tabIndex = computed((): number => (props.isShown ? 1 : -1));\n\n return {\n // Enums\n BentoTypographyElement,\n BentoTypographyVariant,\n PopperContainerAriaRole,\n PopperContainerPositionExtended,\n\n // Values\n conditionalClasses,\n tabIndex,\n };\n },\n };\n\n export default defineComponent(Tooltip);\n</script>\n\n<style lang=\"scss\" scoped src=\"./tooltip.scss\" />\n","import { nextTick, reactive } from 'vue';\nimport { listen } from '@/utils/ts/events';\nimport { generateUid } from '@/utils/ts/unique-id';\nimport { EventKey } from '@/types/utils-events';\nimport { BentoTooltipDirectiveBinding, BentoTooltipPosition } from './tooltip.types';\nimport { createApp, h, isVue2, Vue2 } from 'vue-demi';\nimport BentoTooltip from '@/components/tooltip/tooltip.vue';\n\ninterface TooltipInstance {\n target: HTMLElement;\n content: string;\n position: BentoTooltipPosition;\n removeListeners: Array<() => void>;\n}\n\n/**\n * Tooltip directive to render a tooltip on a given HTML element or component.\n *\n * @usage\n * import { BentoTooltipDirective, BentoTooltipPosition } from '@adyen/bento-vue2';\n *\n * export default {\n * directives: { BentoTooltipDirective },\n * template: `\n * <bento-button\n * v-bento-tooltip-directive:BentoTooltipPosition.BOTTOM=\"refToTextContent\"\n * >\n * Button text\n * </bento-button>\n * `,\n * }\n */\nconst tooltipInstances: Array<TooltipInstance> = [];\nconst ariaDescribedByAttr = 'aria-describedby';\nconst tooltipId = generateUid('tooltip');\n\nlet tooltipVNode;\n\n// Reusable Tooltip component instance.\nlet tooltip;\n// Global visibility state to prevent tooltips from showing after it being instructed to hide\nlet open = false;\n\nconst tooltipProps = reactive({\n targetElement: null,\n content: 'START_MESSAGE',\n id: tooltipId,\n position: undefined,\n isShown: false,\n});\n\n/**\n * Creates a new Tooltip component instance and inserts it into DOM.\n * @param {HTMLElement} el the target element for the Tooltip\n * @internal\n */\nconst createTooltip = (el: HTMLElement) => {\n // Sets the target's tabindex so as to make the tooltip interactive via keyboard navigation\n el.setAttribute('tabindex', '0');\n\n if (isVue2) {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore: Type error for Vue method in Vue 3 but this code only executes in vue 2 so ignoring.\n const TooltipComponent = Vue2.extend(BentoTooltip);\n tooltip = new TooltipComponent({ propsData: { targetElement: el, content: '', id: tooltipId } }).$mount();\n document.body.appendChild(tooltip.$el);\n } else {\n tooltipProps.targetElement = el;\n tooltip = createApp({\n components: { BentoTooltip },\n setup() {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore: Type error for h method in Vue 2 but this code only executes in vue 3 so ignoring.\n return () => h(BentoTooltip, { ...tooltipProps }, '');\n },\n });\n tooltipVNode = document.createElement('div');\n tooltipVNode.id = 'tooltip-parent';\n document.body.appendChild(tooltipVNode);\n tooltip.mount('#tooltip-parent');\n }\n};\n\n/**\n * Removes Tooltip component instance from the DOM and destroys it.\n * @internal\n */\nconst destroyTooltip = () => {\n if (isVue2) {\n document.body.removeChild(tooltip.$el);\n tooltip.$destroy();\n } else {\n tooltip.unmount();\n document.body.removeChild(tooltipVNode);\n }\n\n tooltip = undefined;\n};\n\n/**\n * Returns tooltip position based on the specified argument.\n * By default returns 'top' if no argument is specified.\n * @param {BentoTooltipDirectiveBinding} binding Directive binding object.\n * @returns {string} Tooltip position.\n * @internal\n */\nconst getTooltipPosition = (binding: BentoTooltipDirectiveBinding): BentoTooltipPosition =>\n Object.values(BentoTooltipPosition).includes(binding.arg as BentoTooltipPosition)\n ? (binding.arg as BentoTooltipPosition)\n : BentoTooltipPosition.TOP;\n\n/**\n * Get the correct Tooltip instance for the given target element\n * @param {HTMLElement} el the target element for the Tooltip\n * @returns\n */\nconst getTooltipInstanceForTarget = (el: HTMLElement): TooltipInstance =>\n tooltipInstances.find(\n ctx =>\n // isEqualNode doesn't work correct for svg element, hence the second check here\n ctx.target.isEqualNode(el) && ctx.target === el\n );\n\n/**\n * On mouse enter event updates tooltip with correct content and position, and shows tooltip.\n * @param {?HTMLElement} el - Target element\n * @internal\n */\nconst showTooltip = (el?: HTMLElement) => {\n const tooltipInstance = getTooltipInstanceForTarget(el);\n\n // If tooltip content is empty – do not show the tooltip\n if (!tooltipInstance.content || !el) {\n return;\n }\n\n if (el) {\n el.setAttribute(ariaDescribedByAttr, tooltipId);\n }\n\n // If the Tooltip is inside a dialog, move tooltip element inside of it\n // It gets restored to <body> when it gets hidden\n let isDialogOpen = false;\n document.querySelectorAll('dialog').forEach(node => {\n isDialogOpen = node?.open || isDialogOpen;\n });\n\n if (isDialogOpen) {\n el.after(tooltip.$el);\n isDialogOpen = false;\n }\n\n open = true;\n\n tooltip.content = tooltipInstance.content;\n tooltip.position = tooltipInstance.position;\n\n tooltipProps.content = tooltipInstance.content;\n tooltipProps.position = tooltipInstance.position;\n\n // Do calculations on a next tick, otherwise tooltip position calculations will be wrong\n nextTick(() => {\n // Do not open tooltip if it has been instructed to hide in process\n if (!open) {\n return;\n }\n tooltip.targetElement = el;\n tooltip.isShown = true;\n\n tooltipProps.targetElement = el;\n tooltipProps.isShown = true;\n });\n};\n\n/**\n * On mouse leave event hides the tooltip.\n * @internal\n */\nconst hideTooltip = (el?: HTMLElement) => {\n // Restore the tooltip element to body if it got move out of <body>\n if (tooltip.$el?.parentElement?.tagName && tooltip.$el?.parentElement?.tagName !== 'BODY') {\n document.body.appendChild(tooltip.$el);\n }\n\n open = false;\n tooltip.isShown = false;\n tooltipProps.isShown = false;\n if (el) {\n el.removeAttribute(ariaDescribedByAttr);\n }\n};\n\nconst tooltipBind = (el: HTMLElement, binding: BentoTooltipDirectiveBinding) => {\n // eslint-disable-next-line no-prototype-builtins\n if (!binding.hasOwnProperty('value') || binding.value) {\n // Create Tooltip component singleton instance\n if (tooltipInstances.length === 0) {\n createTooltip(el);\n }\n\n const show = () => showTooltip(el);\n const hide = () => hideTooltip(el);\n\n // Create and store context object, which has directive related handlers and content.\n const tooltipInstance: TooltipInstance = {\n target: el,\n content: binding.value,\n position: getTooltipPosition(binding),\n removeListeners: [\n listen(el, 'mouseenter', show),\n listen(el, 'mouseleave', hide),\n listen(el, 'focus', show),\n listen(el, 'blur', hide),\n listen(el, 'keydown', evt => {\n const keyboardEvent = <KeyboardEvent>evt;\n if (keyboardEvent.key === EventKey.ESCAPE) {\n hide();\n }\n }),\n ],\n };\n\n tooltipInstances.push(tooltipInstance);\n }\n};\n\nconst tooltipUpdate = (el: HTMLElement, binding: BentoTooltipDirectiveBinding) => {\n const tooltipInstance = getTooltipInstanceForTarget(el);\n if (tooltipInstance) {\n // Update tooltip content value if it is changed\n if (tooltipInstance?.content !== binding.value) {\n tooltipInstance.content = binding.value;\n // If tooltip is currently shown for current element – update tooltip's content value\n if (tooltip.isShown && tooltip.targetElement.isEqualNode(el)) {\n if (!tooltipInstance.content) {\n tooltip.isShown = false;\n } else {\n tooltip.content = binding.value;\n }\n }\n }\n // Update tooltip position if it is changed\n if (tooltipInstance.position !== binding.arg) {\n const position = getTooltipPosition(binding);\n tooltipInstance.position = position;\n tooltip.position = position;\n }\n }\n};\n\nconst tooltipUnbind = (el: HTMLElement) => {\n const context = getTooltipInstanceForTarget(el);\n\n // Prevent unbinding/removing when there's nothing to unbind, leads to stack overflow errors\n if (!context) {\n return;\n }\n\n context.removeListeners.forEach(removeListener => {\n removeListener();\n });\n\n // If el is removed while tooltip is displayed, the tooltip doesnt hide as\n // there is no el to trigger mouseleave/blur.\n hideTooltip();\n\n tooltipInstances.splice(tooltipInstances.indexOf(context), 1);\n\n // If all the elements using the directive are removed, then no point having\n // the component on the page.\n if (tooltipInstances.length === 0) {\n destroyTooltip();\n }\n};\n\n/**\n * This directive allows you to bind a tooltip to an element.\n * Tooltip can be configured to be shown in one of four positions: 'top', 'left', 'right' and 'bottom'.\n *\n * @example\n * import { BentoTooltipDirective as BentoTooltip, BentoTooltipPosition } from '@adyen/bento-vue2';\n *\n * export default {\n * directives: { BentoTooltip },\n * methods: {\n * contentExpression() {\n * return 'tooltip content';\n * },\n * },\n * template: `<div>\n * <div v-bento-tooltip:left=\"refToTooltipContent\"></div>\n * <div v-bento-tooltip:[TooltipPosition.BOTTOM]=\"refToTooltipContent\"></div>\n *\n * <!-- If you don't specify the position then by default it's `TooltipPosition.TOP` -->\n * <div v-bento-tooltip=\"refToTooltipContent\"></div>\n *\n * <!-- Tooltip content can also be a data property or a method or a computed property as well -->\n * <div v-bento-tooltip=\"contentExpression()\"></div>\n * </div>`,\n * };\n */\nexport const BentoTooltipDirective = {\n // Vue 2 Directive hooks\n bind(el, binding) {\n tooltipBind(el, binding);\n },\n update(el, binding) {\n tooltipUpdate(el, binding);\n },\n unbind(el) {\n tooltipUnbind(el);\n },\n // Vue 3 Directive hooks\n beforeMount(el, binding) {\n tooltipBind(el, binding);\n },\n mounted(el, binding) {\n tooltipUpdate(el, binding);\n },\n updated(el, binding) {\n tooltipUpdate(el, binding);\n },\n unmounted(el) {\n tooltipUnbind(el);\n },\n};\n"],"names":["BentoTooltipPosition","PopperContainerPositionBasic","BentoTooltipState","BentoTooltipState2","EventKey","EventKey2","KeyCode","KeyCode2","Tooltip","BentoTypography","PopperContainer","value","props","conditionalClasses","computed","tabIndex","BentoTypographyElement","BentoTypographyVariant","PopperContainerAriaRole","PopperContainerPositionExtended","_sfc_main","defineComponent","tooltipInstances","ariaDescribedByAttr","tooltipId","generateUid","tooltip","open","tooltipProps","reactive","createTooltip","el","TooltipComponent","Vue2","BentoTooltip","destroyTooltip","getTooltipPosition","binding","getTooltipInstanceForTarget","ctx","showTooltip","tooltipInstance","isDialogOpen","node","nextTick","hideTooltip","_b","_a","_d","_c","tooltipBind","show","hide","listen","evt","tooltipUpdate","position","tooltipUnbind","context","removeListener","BentoTooltipDirective"],"mappings":";;;;;;;;AAGa,MAAAA,IAAA,EAAA,GAAAC,EAAA;AAGD,IAAAC,IAAA,kBAAAC,OACRA,EAAA,SAAA,UADQA,IAAAD,KAAA,CAAA,CAAA,GCKAE,IAAA,kBAAAC,OACRA,EAAA,SAAA,UACAA,EAAA,QAAA,SACAA,EAAA,aAAA,aACAA,EAAA,WAAA,WACAA,EAAA,cAAA,cACAA,EAAA,aAAA,aACAA,EAAA,UAAA,UACAA,EAAA,YAAA,YACAA,EAAA,MAAA,OACAA,EAAA,OAAA,QAVQA,IAAAD,KAAA,CAAA,CAAA,GAgBAE,IAAA,kBAAAC,OACRA,EAAAA,EAAA,SAAA,EAAA,IAAA,UACAA,EAAAA,EAAA,QAAA,EAAA,IAAA,SACAA,EAAAA,EAAA,aAAA,EAAA,IAAA,cACAA,EAAAA,EAAA,WAAA,EAAA,IAAA,YACAA,EAAAA,EAAA,cAAA,EAAA,IAAA,eACAA,EAAAA,EAAA,aAAA,EAAA,IAAA,cACAA,EAAAA,EAAA,UAAA,EAAA,IAAA,WACAA,EAAAA,EAAA,YAAA,EAAA,IAAA,aACAA,EAA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AA,EAAA,cAAA,YAAAK,CAAA,MACIU,EAAA,UAGIf,EAAA,UAAAW,EAAA,QAFAX,EAAA,UAAA,MAOZe,EAAA,aAAAJ,EAAA,MAAA;AACI,UAAAmB,IAAApB,EAAAC,CAAA;AACA,IAAAI,EAAA,WAAAe,GACA9B,EAAA,WAAA8B;AAAA;AAGZ,GAEAC,IAAA,CAAA1B,MAAA;AACI,QAAA2B,IAAApB,EAAAP,CAAA;AAGA,EAAA2B,MAIAA,EAAA,gBAAA,QAAA,CAAAC,MAAA;AACI,IAAAA,EAAA;AAAA,EAAe,CAAA,GAKnBd,EAAA,GAEAvB,EAAA,OAAAA,EAAA,QAAAoC,CAAA,GAAA,CAAA,GAIApC,EAAA,WAAA,KACIa,EAAA;AAER,GA4BOyB,KAAA;AAAA;AAAA,EAA8B,KAAA7B,GAAAM,GAAA;AAG7B,IAAAa,EAAAnB,GAAAM,CAAA;AAAA,EAAuB;AAAA,EAC3B,OAAAN,GAAAM,GAAA;AAEI,IAAAkB,EAAAxB,GAAAM,CAAA;AAAA,EAAyB;AAAA,EAC7B,OAAAN,GAAA;AAEI,IAAA0B,EAAA1B,CAAA;AAAA,EAAgB;AAAA;AAAA,EACpB,YAAAA,GAAAM,GAAA;AAGI,IAAAa,EAAAnB,GAAAM,CAAA;AAAA,EAAuB;AAAA,EAC3B,QAAAN,GAAAM,GAAA;AAEI,IAAAkB,EAAAxB,GAAAM,CAAA;AAAA,EAAyB;AAAA,EAC7B,QAAAN,GAAAM,GAAA;AAEI,IAAAkB,EAAAxB,GAAAM,CAAA;AAAA,EAAyB;AAAA,EAC7B,UAAAN,GAAA;AAEI,IAAA0B,EAAA1B,CAAA;AAAA,EAAgB;AAExB;"}
1
+ {"version":3,"file":"tooltip.2aff4fa6.js","sources":["../../src/directives/tooltip/tooltip.types.ts","../../src/types/utils-events.ts","../../src/components/tooltip/tooltip.vue","../../src/directives/tooltip/tooltip.ts"],"sourcesContent":["import { PopperContainerPositionBasic } from '@/components/popper-container';\nimport type { DirectiveBinding } from 'vue/types/options';\n\nexport const BentoTooltipPosition = { ...PopperContainerPositionBasic };\nexport type BentoTooltipPosition = PopperContainerPositionBasic;\n\nexport enum BentoTooltipState {\n HIDDEN = 'hidden',\n}\n\nexport interface BentoTooltipDirectiveBinding extends Readonly<DirectiveBinding> {\n readonly value: string;\n}\n","import type { Vue } from 'vue-demi';\n\nexport interface ListenOptions {\n capture?: boolean;\n passive?: boolean;\n once?: boolean;\n self?: boolean;\n vm?: Vue;\n onCleanup?: () => void;\n}\n\nexport enum EventKey {\n ESCAPE = 'Escape',\n ENTER = 'Enter',\n ARROW_LEFT = 'ArrowLeft',\n ARROW_UP = 'ArrowUp',\n ARROW_RIGHT = 'ArrowRight',\n ARROW_DOWN = 'ArrowDown',\n PAGE_UP = 'PageUp',\n PAGE_DOWN = 'PageDown',\n END = 'End',\n HOME = 'Home',\n}\n\n/**\n * @deprecated `Event.keyCode` is deprecated. Use `EventKey` instead\n */\nexport enum KeyCode {\n ESCAPE = 27,\n ENTER = 13,\n ARROW_LEFT = 37,\n ARROW_UP = 38,\n ARROW_RIGHT = 39,\n ARROW_DOWN = 40,\n PAGE_UP = 33,\n PAGE_DOWN = 34,\n END = 35,\n HOME = 36,\n}\n","<template>\n <popper-container\n :id=\"id\"\n :target-element=\"targetElement\"\n :position=\"position\"\n :offset=\"[0, 4]\"\n :arrow=\"{ classes: ['b-tooltip__arrow'] }\"\n :aria-hidden=\"!isShown\"\n :class=\"conditionalClasses\"\n :tabindex=\"tabIndex\"\n class=\"b-tooltip\"\n :aria-role=\"PopperContainerAriaRole.TOOLTIP\"\n :fallback-position=\"PopperContainerPositionExtended.AUTO\"\n >\n <bento-typography :el=\"BentoTypographyElement.SPAN\" :variant=\"BentoTypographyVariant.CAPTION\">\n {{ content }}\n </bento-typography>\n </popper-container>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType } from 'vue';\n import { BentoTooltipPosition, BentoTooltipState } from '@/directives/tooltip/tooltip.types';\n import {\n PopperContainer,\n PopperContainerAriaRole,\n PopperContainerPositionExtended,\n } from '@/components/popper-container';\n import { BentoTypography, BentoTypographyElement, BentoTypographyVariant } from '@/components/typography';\n import { VueNodeElement } from '@/types';\n\n /**\n * Tooltip container, to be used internally to render the tooltip container where the text is shown.\n */\n export const Tooltip = {\n name: 'tooltip',\n components: { BentoTypography, PopperContainer },\n props: {\n /**\n * The tooltip's id. Necessary for accessibility purposes.\n */\n id: { type: String, default: null },\n /**\n * Tooltip's target reference to the DOM element or Vue component.\n * The tooltip will position itself relatively to target element, in the specified position.\n */\n targetElement: { type: [Element, Object] as PropType<VueNodeElement>, required: true },\n /**\n * Tooltip's position relative to the target element.\n * Possible values are: 'top', 'bottom', 'left' and 'right'.\n */\n position: {\n type: String as PropType<BentoTooltipPosition>,\n default: BentoTooltipPosition.TOP,\n validator: value => Object.values(BentoTooltipPosition).includes(value as BentoTooltipPosition),\n },\n /**\n * Tooltip's offset.\n * If specified, the tooltip will have an offset in pixels between it and the target element\n * in specified position.\n */\n offset: { type: Number, default: 0 },\n /**\n * Tooltip's text content.\n */\n content: { type: String, required: true },\n /**\n * Shows / Hides the Tooltip component\n */\n isShown: { type: Boolean, default: false },\n },\n setup(props) {\n const conditionalClasses = computed(() => ({\n [`b-tooltip--${BentoTooltipState.HIDDEN}`]: !props.isShown,\n }));\n\n const tabIndex = computed((): number => (props.isShown ? 1 : -1));\n\n return {\n // Enums\n BentoTypographyElement,\n BentoTypographyVariant,\n PopperContainerAriaRole,\n PopperContainerPositionExtended,\n\n // Values\n conditionalClasses,\n tabIndex,\n };\n },\n };\n\n export default defineComponent(Tooltip);\n</script>\n\n<style lang=\"scss\" scoped src=\"./tooltip.scss\" />\n","import { nextTick, reactive } from 'vue';\nimport { listen } from '@/utils/ts/events';\nimport { generateUid } from '@/utils/ts/unique-id';\nimport { EventKey } from '@/types/utils-events';\nimport { BentoTooltipDirectiveBinding, BentoTooltipPosition } from './tooltip.types';\nimport { createApp, h, isVue2, Vue2 } from 'vue-demi';\nimport BentoTooltip from '@/components/tooltip/tooltip.vue';\n\ninterface TooltipInstance {\n target: HTMLElement;\n content: string;\n position: BentoTooltipPosition;\n removeListeners: Array<() => void>;\n}\n\n/**\n * Tooltip directive to render a tooltip on a given HTML element or component.\n *\n * @usage\n * import { BentoTooltipDirective, BentoTooltipPosition } from '@adyen/bento-vue2';\n *\n * export default {\n * directives: { BentoTooltipDirective },\n * template: `\n * <bento-button\n * v-bento-tooltip-directive:BentoTooltipPosition.BOTTOM=\"refToTextContent\"\n * >\n * Button text\n * </bento-button>\n * `,\n * }\n */\nconst tooltipInstances: Array<TooltipInstance> = [];\nconst ariaDescribedByAttr = 'aria-describedby';\nconst tooltipId = generateUid('tooltip');\n\nlet tooltipVNode;\n\n// Reusable Tooltip component instance.\nlet tooltip;\n// Global visibility state to prevent tooltips from showing after it being instructed to hide\nlet open = false;\n\nconst tooltipProps = reactive({\n targetElement: null,\n content: 'START_MESSAGE',\n id: tooltipId,\n position: undefined,\n isShown: false,\n});\n\n/**\n * Creates a new Tooltip component instance and inserts it into DOM.\n * @param {HTMLElement} el the target element for the Tooltip\n * @internal\n */\nconst createTooltip = (el: HTMLElement) => {\n // Sets the target's tabindex so as to make the tooltip interactive via keyboard navigation\n el.setAttribute('tabindex', '0');\n\n if (isVue2) {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore: Type error for Vue method in Vue 3 but this code only executes in vue 2 so ignoring.\n const TooltipComponent = Vue2.extend(BentoTooltip);\n tooltip = new TooltipComponent({ propsData: { targetElement: el, content: '', id: tooltipId } }).$mount();\n document.body.appendChild(tooltip.$el);\n } else {\n tooltipProps.targetElement = el;\n tooltip = createApp({\n components: { BentoTooltip },\n setup() {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore: Type error for h method in Vue 2 but this code only executes in vue 3 so ignoring.\n return () => h(BentoTooltip, { ...tooltipProps }, '');\n },\n });\n tooltipVNode = document.createElement('div');\n tooltipVNode.id = 'tooltip-parent';\n document.body.appendChild(tooltipVNode);\n tooltip.mount('#tooltip-parent');\n }\n};\n\n/**\n * Removes Tooltip component instance from the DOM and destroys it.\n * @internal\n */\nconst destroyTooltip = () => {\n if (isVue2) {\n document.body.removeChild(tooltip.$el);\n tooltip.$destroy();\n } else {\n tooltip.unmount();\n document.body.removeChild(tooltipVNode);\n }\n\n tooltip = undefined;\n};\n\n/**\n * Returns tooltip position based on the specified argument.\n * By default returns 'top' if no argument is specified.\n * @param {BentoTooltipDirectiveBinding} binding Directive binding object.\n * @returns {string} Tooltip position.\n * @internal\n */\nconst getTooltipPosition = (binding: BentoTooltipDirectiveBinding): BentoTooltipPosition =>\n Object.values(BentoTooltipPosition).includes(binding.arg as BentoTooltipPosition)\n ? (binding.arg as BentoTooltipPosition)\n : BentoTooltipPosition.TOP;\n\n/**\n * Get the correct Tooltip instance for the given target element\n * @param {HTMLElement} el the target element for the Tooltip\n * @returns\n */\nconst getTooltipInstanceForTarget = (el: HTMLElement): TooltipInstance =>\n tooltipInstances.find(\n ctx =>\n // isEqualNode doesn't work correct for svg element, hence the second check here\n ctx.target.isEqualNode(el) && ctx.target === el\n );\n\n/**\n * On mouse enter event updates tooltip with correct content and position, and shows tooltip.\n * @param {?HTMLElement} el - Target element\n * @internal\n */\nconst showTooltip = (el?: HTMLElement) => {\n const tooltipInstance = getTooltipInstanceForTarget(el);\n\n // If tooltip content is empty – do not show the tooltip\n if (!tooltipInstance.content || !el) {\n return;\n }\n\n if (el) {\n el.setAttribute(ariaDescribedByAttr, tooltipId);\n }\n\n // If the Tooltip is inside a dialog, move tooltip element inside of it\n // It gets restored to <body> when it gets hidden\n let isDialogOpen = false;\n document.querySelectorAll('dialog').forEach(node => {\n isDialogOpen = node?.open || isDialogOpen;\n });\n\n if (isDialogOpen) {\n el.after(tooltip.$el);\n isDialogOpen = false;\n }\n\n open = true;\n\n tooltip.content = tooltipInstance.content;\n tooltip.position = tooltipInstance.position;\n\n tooltipProps.content = tooltipInstance.content;\n tooltipProps.position = tooltipInstance.position;\n\n // Do calculations on a next tick, otherwise tooltip position calculations will be wrong\n nextTick(() => {\n // Do not open tooltip if it has been instructed to hide in process\n if (!open) {\n return;\n }\n tooltip.targetElement = el;\n tooltip.isShown = true;\n\n tooltipProps.targetElement = el;\n tooltipProps.isShown = true;\n });\n};\n\n/**\n * On mouse leave event hides the tooltip.\n * @internal\n */\nconst hideTooltip = (el?: HTMLElement) => {\n // Restore the tooltip element to body if it got move out of <body>\n if (tooltip.$el?.parentElement?.tagName && tooltip.$el?.parentElement?.tagName !== 'BODY') {\n document.body.appendChild(tooltip.$el);\n }\n\n open = false;\n tooltip.isShown = false;\n tooltipProps.isShown = false;\n if (el) {\n el.removeAttribute(ariaDescribedByAttr);\n }\n};\n\nconst tooltipBind = (el: HTMLElement, binding: BentoTooltipDirectiveBinding) => {\n // eslint-disable-next-line no-prototype-builtins\n if (!binding.hasOwnProperty('value') || binding.value) {\n // Create Tooltip component singleton instance\n if (tooltipInstances.length === 0) {\n createTooltip(el);\n }\n\n const show = () => showTooltip(el);\n const hide = () => hideTooltip(el);\n\n // Create and store context object, which has directive related handlers and content.\n const tooltipInstance: TooltipInstance = {\n target: el,\n content: binding.value,\n position: getTooltipPosition(binding),\n removeListeners: [\n listen(el, 'mouseenter', show),\n listen(el, 'mouseleave', hide),\n listen(el, 'focus', show),\n listen(el, 'blur', hide),\n listen(el, 'keydown', evt => {\n const keyboardEvent = <KeyboardEvent>evt;\n if (keyboardEvent.key === EventKey.ESCAPE) {\n hide();\n }\n }),\n ],\n };\n\n tooltipInstances.push(tooltipInstance);\n }\n};\n\nconst tooltipUpdate = (el: HTMLElement, binding: BentoTooltipDirectiveBinding) => {\n const tooltipInstance = getTooltipInstanceForTarget(el);\n if (tooltipInstance) {\n // Update tooltip content value if it is changed\n if (tooltipInstance?.content !== binding.value) {\n tooltipInstance.content = binding.value;\n // If tooltip is currently shown for current element – update tooltip's content value\n if (tooltip.isShown && tooltip.targetElement.isEqualNode(el)) {\n if (!tooltipInstance.content) {\n tooltip.isShown = false;\n } else {\n tooltip.content = binding.value;\n }\n }\n }\n // Update tooltip position if it is changed\n if (tooltipInstance.position !== binding.arg) {\n const position = getTooltipPosition(binding);\n tooltipInstance.position = position;\n tooltip.position = position;\n }\n }\n};\n\nconst tooltipUnbind = (el: HTMLElement) => {\n const context = getTooltipInstanceForTarget(el);\n\n // Prevent unbinding/removing when there's nothing to unbind, leads to stack overflow errors\n if (!context) {\n return;\n }\n\n context.removeListeners.forEach(removeListener => {\n removeListener();\n });\n\n // If el is removed while tooltip is displayed, the tooltip doesnt hide as\n // there is no el to trigger mouseleave/blur.\n hideTooltip();\n\n tooltipInstances.splice(tooltipInstances.indexOf(context), 1);\n\n // If all the elements using the directive are removed, then no point having\n // the component on the page.\n if (tooltipInstances.length === 0) {\n destroyTooltip();\n }\n};\n\n/**\n * This directive allows you to bind a tooltip to an element.\n * Tooltip can be configured to be shown in one of four positions: 'top', 'left', 'right' and 'bottom'.\n *\n * @example\n * import { BentoTooltipDirective as BentoTooltip, BentoTooltipPosition } from '@adyen/bento-vue2';\n *\n * export default {\n * directives: { BentoTooltip },\n * methods: {\n * contentExpression() {\n * return 'tooltip content';\n * },\n * },\n * template: `<div>\n * <div v-bento-tooltip:left=\"refToTooltipContent\"></div>\n * <div v-bento-tooltip:[TooltipPosition.BOTTOM]=\"refToTooltipContent\"></div>\n *\n * <!-- If you don't specify the position then by default it's `TooltipPosition.TOP` -->\n * <div v-bento-tooltip=\"refToTooltipContent\"></div>\n *\n * <!-- Tooltip content can also be a data property or a method or a computed property as well -->\n * <div v-bento-tooltip=\"contentExpression()\"></div>\n * </div>`,\n * };\n */\nexport const BentoTooltipDirective = {\n // Vue 2 Directive hooks\n bind(el, binding) {\n tooltipBind(el, binding);\n },\n update(el, binding) {\n tooltipUpdate(el, binding);\n },\n unbind(el) {\n tooltipUnbind(el);\n },\n // Vue 3 Directive hooks\n beforeMount(el, binding) {\n tooltipBind(el, binding);\n },\n mounted(el, binding) {\n tooltipUpdate(el, binding);\n },\n updated(el, binding) {\n tooltipUpdate(el, binding);\n },\n unmounted(el) {\n tooltipUnbind(el);\n },\n};\n"],"names":["BentoTooltipPosition","PopperContainerPositionBasic","BentoTooltipState","BentoTooltipState2","EventKey","EventKey2","KeyCode","KeyCode2","Tooltip","BentoTypography","PopperContainer","value","props","conditionalClasses","computed","tabIndex","BentoTypographyElement","BentoTypographyVariant","PopperContainerAriaRole","PopperContainerPositionExtended","_sfc_main","defineComponent","tooltipInstances","ariaDescribedByAttr","tooltipId","generateUid","tooltip","open","tooltipProps","reactive","createTooltip","el","TooltipComponent","Vue2","BentoTooltip","destroyTooltip","getTooltipPosition","binding","getTooltipInstanceForTarget","ctx","showTooltip","tooltipInstance","isDialogOpen","node","nextTick","hideTooltip","_b","_a","_d","_c","tooltipBind","show","hide","listen","evt","tooltipUpdate","position","tooltipUnbind","context","removeListener","BentoTooltipDirective"],"mappings":";;;;;;;;AAGa,MAAAA,IAAA,EAAA,GAAAC,EAAA;AAGD,IAAAC,IAAA,kBAAAC,OACRA,EAAA,SAAA,UADQA,IAAAD,KAAA,CAAA,CAAA,GCKAE,IAAA,kBAAAC,OACRA,EAAA,SAAA,UACAA,EAAA,QAAA,SACAA,EAAA,aAAA,aACAA,EAAA,WAAA,WACAA,EAAA,cAAA,cACAA,EAAA,aAAA,aACAA,EAAA,UAAA,UACAA,EAAA,YAAA,YACAA,EAAA,MAAA,OACAA,EAAA,OAAA,QAVQA,IAAAD,KAAA,CAAA,CAAA,GAgBAE,IAAA,kBAAAC,OACRA,EAAAA,EAAA,SAAA,EAAA,IAAA,UACAA,EAAAA,EAAA,QAAA,EAAA,IAAA,SACAA,EAAAA,EAAA,aAAA,EAAA,IAAA,cACAA,EAAAA,EAAA,WAAA,EAAA,IAAA,YACAA,EAAAA,EAAA,cAAA,EAAA,IAAA,eACAA,EAAAA,EAAA,aAAA,EAAA,IAAA,cACAA,EAAAA,EAAA,UAAA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AA,aAAAJ,EAAA,UACII,EAAA,UAAAJ,EAAA,OAEAX,EAAA,WAAAA,EAAA,cAAA,YAAAK,CAAA,MACIU,EAAA,UAGIf,EAAA,UAAAW,EAAA,QAFAX,EAAA,UAAA,MAOZe,EAAA,aAAAJ,EAAA,MAAA;AACI,UAAAmB,IAAApB,EAAAC,CAAA;AACA,IAAAI,EAAA,WAAAe,GACA9B,EAAA,WAAA8B;AAAA;AAGZ,GAEAC,IAAA,CAAA1B,MAAA;AACI,QAAA2B,IAAApB,EAAAP,CAAA;AAGA,EAAA2B,MAIAA,EAAA,gBAAA,QAAA,CAAAC,MAAA;AACI,IAAAA,EAAA;AAAA,EAAe,CAAA,GAKnBd,EAAA,GAEAvB,EAAA,OAAAA,EAAA,QAAAoC,CAAA,GAAA,CAAA,GAIApC,EAAA,WAAA,KACIa,EAAA;AAER,GA4BOyB,KAAA;AAAA;AAAA,EAA8B,KAAA7B,GAAAM,GAAA;AAG7B,IAAAa,EAAAnB,GAAAM,CAAA;AAAA,EAAuB;AAAA,EAC3B,OAAAN,GAAAM,GAAA;AAEI,IAAAkB,EAAAxB,GAAAM,CAAA;AAAA,EAAyB;AAAA,EAC7B,OAAAN,GAAA;AAEI,IAAA0B,EAAA1B,CAAA;AAAA,EAAgB;AAAA;AAAA,EACpB,YAAAA,GAAAM,GAAA;AAGI,IAAAa,EAAAnB,GAAAM,CAAA;AAAA,EAAuB;AAAA,EAC3B,QAAAN,GAAAM,GAAA;AAEI,IAAAkB,EAAAxB,GAAAM,CAAA;AAAA,EAAyB;AAAA,EAC7B,QAAAN,GAAAM,GAAA;AAEI,IAAAkB,EAAAxB,GAAAM,CAAA;AAAA,EAAyB;AAAA,EAC7B,UAAAN,GAAA;AAEI,IAAA0B,EAAA1B,CAAA;AAAA,EAAgB;AAExB;"}
@@ -7,14 +7,14 @@ import { json as qe } from "@codemirror/lang-json";
7
7
  import { xml as Xe } from "@codemirror/lang-xml";
8
8
  import { javascript as $e } from "@codemirror/lang-javascript";
9
9
  import { java as Ye } from "@codemirror/lang-java";
10
- import { B as Qe } from "./chunks/dropdown.9681d483.js";
11
- import { B as Ze, a as et } from "./chunks/button.be42b512.js";
12
- import { B as tt, a as nt } from "./chunks/index.e3c7b9ee.js";
10
+ import { B as Qe } from "./chunks/dropdown.c05678d0.js";
11
+ import { B as Ze, a as et } from "./chunks/button.d0c9527d.js";
12
+ import { B as tt, a as nt } from "./chunks/index.56858f4e.js";
13
13
  import { u as rt } from "./chunks/i18n.155748d6.js";
14
- import { C as it } from "./chunks/copy.6081b6ec.js";
15
- import { b as st } from "./chunks/tooltip.680d6038.js";
14
+ import { C as it } from "./chunks/copy.5a4cbd4d.js";
15
+ import { b as st } from "./chunks/tooltip.2aff4fa6.js";
16
16
  import { n as lt } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
17
- import "./assets/index7.css";
17
+ import "./assets/index5.css";
18
18
  const ot = 1024;
19
19
  let at = 0;
20
20
  class _ {
package/dist/country.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { ref as u, computed as c, defineComponent as T, toRefs as N, watch as m, inject as g } from "vue";
2
- import { B as K, d as B, a as P } from "./chunks/index.e3c7b9ee.js";
2
+ import { B as K, d as B, a as P } from "./chunks/index.56858f4e.js";
3
3
  import { u as I } from "./chunks/i18n.155748d6.js";
4
4
  import { n as L } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
5
- import "./assets/index8.css";
5
+ import "./assets/index6.css";
6
6
  const d = {
7
7
  "en-US": {
8
8
  BD: "Dhaka",
package/dist/currency.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as m, computed as F } from "vue";
2
- import { B as G, b as E, a as i } from "./chunks/index.e3c7b9ee.js";
2
+ import { B as G, b as E, a as i } from "./chunks/index.56858f4e.js";
3
3
  import { g as U } from "./chunks/get-slot-text.e5c766d0.js";
4
4
  import { n as f } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
5
5
  const p = [
package/dist/data-grid.js CHANGED
@@ -1,29 +1,29 @@
1
1
  import { ref as I, onMounted as fe, nextTick as x, watch as Ce, onUnmounted as ve, reactive as K, toRefs as ee, computed as R, watchEffect as et, defineComponent as X, toRef as me } from "vue";
2
2
  import { o as pe } from "./chunks/resize.a041304d.js";
3
3
  import { u as tt } from "./chunks/aria-label.ac9651a5.js";
4
- import { B as be } from "./chunks/checkbox.f6548e4f.js";
4
+ import { B as be } from "./chunks/checkbox.f8457c93.js";
5
5
  import { BentoPagination as nt } from "./pagination.js";
6
6
  import { BentoLoadingIndicator as st } from "./loading-indicator.js";
7
- import { B as te, a as q, b as ne, i as it } from "./chunks/index.e3c7b9ee.js";
7
+ import { B as te, a as q, b as ne, i as it } from "./chunks/index.56858f4e.js";
8
8
  import { g as lt } from "./chunks/get-slot-text.e5c766d0.js";
9
9
  import { u as he } from "./chunks/i18n.155748d6.js";
10
10
  import { BentoFilterBar as J } from "./filter-bar.js";
11
11
  import { BentoInfoIcon as ot } from "./info-icon.js";
12
12
  import { BentoMenu as at } from "./menu.js";
13
13
  import { BentoPopoverPositions as Se, BentoPopover as rt } from "./popover.js";
14
- import { a as ye, B as dt } from "./chunks/button.be42b512.js";
15
- import { K as D } from "./chunks/tooltip.680d6038.js";
14
+ import { a as ye, B as dt } from "./chunks/button.d0c9527d.js";
15
+ import { K as D } from "./chunks/tooltip.2aff4fa6.js";
16
16
  import { n as U } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
17
17
  import { A as ct } from "./chunks/arrow-left.1d5d08bd.js";
18
18
  import { l as le } from "./chunks/events.58c00e6d.js";
19
19
  import { BentoToggle as Le, BentoToggleLabelPosition as Ee } from "./toggle.js";
20
20
  import { BentoSearchBar as ut } from "./search-bar.js";
21
- import { u as gt } from "./chunks/dropdown.9681d483.js";
21
+ import { u as gt } from "./chunks/dropdown.c05678d0.js";
22
22
  import { C as _t } from "./chunks/cross.a2cadac5.js";
23
23
  import { S as ft } from "./chunks/search.a8055e95.js";
24
24
  import { g as Ct } from "./chunks/unique-id.a2a2b458.js";
25
25
  import { B as vt } from "./chunks/directive.0408e565.js";
26
- import "./assets/index9.css";
26
+ import "./assets/index7.css";
27
27
  const mt = ({
28
28
  paginationRef: t,
29
29
  fitContent: e
@@ -1,20 +1,20 @@
1
1
  import { ref as u, computed as p, defineComponent as q, toRef as T, watch as L, nextTick as B } from "vue";
2
- import { c as Y } from "./chunks/dropdown-default-textbox.35029df1.js";
2
+ import { c as Y } from "./chunks/dropdown-default-textbox.819e43f7.js";
3
3
  import { BentoPopover as W, BentoPopoverPositions as $ } from "./popover.js";
4
4
  import { g as c } from "./chunks/unique-id.a2a2b458.js";
5
- import { B as K, a as j, b as z } from "./chunks/index.e3c7b9ee.js";
5
+ import { B as K, a as j, b as z } from "./chunks/index.56858f4e.js";
6
6
  import { u as O } from "./chunks/i18n.155748d6.js";
7
- import { f as E } from "./chunks/index.4d3472d3.js";
7
+ import { f as E } from "./chunks/index.73d50fa6.js";
8
8
  import { e as _, d as G, f as H } from "./chunks/index.f55fdc32.js";
9
9
  import { D as x, v as J, f as Q } from "./chunks/date-input.9186a0bf.js";
10
10
  import { d as X } from "./chunks/debounce.f8d92e44.js";
11
11
  import { u as Z } from "./chunks/use-form-layout-loading.d03e5d48.js";
12
- import { C as k } from "./chunks/calendar.2d5aa882.js";
13
- import { b as Re } from "./chunks/calendar.2d5aa882.js";
14
- import { E as ee } from "./chunks/error-message.588e0cf6.js";
12
+ import { C as k } from "./chunks/calendar.0ae43a96.js";
13
+ import { b as Re } from "./chunks/calendar.0ae43a96.js";
14
+ import { E as ee } from "./chunks/error-message.0433b539.js";
15
15
  import { B as ae } from "./chunks/directive.0408e565.js";
16
16
  import { n as te } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
17
- import "./assets/index10.css";
17
+ import "./assets/index8.css";
18
18
  var l = /* @__PURE__ */ ((a) => (a.INPUT = "input", a))(l || {});
19
19
  const re = ({ datePickerValue: a, isDateIncorrect: e }) => {
20
20
  const { locale: t, t: n } = O(), f = { de: G, enUS: _, fr: H }, i = u(null);
@@ -1,5 +1,5 @@
1
- import { B as t, a as r } from "./chunks/index.0a747d58.js";
2
- import { b as o } from "./chunks/calendar.2d5aa882.js";
1
+ import { B as t, a as r } from "./chunks/index.10aaf539.js";
2
+ import { b as o } from "./chunks/calendar.0ae43a96.js";
3
3
  export {
4
4
  t as BentoDateRangePicker,
5
5
  r as BentoDateRangePickerEvent,
package/dist/date.js CHANGED
@@ -1,4 +1,4 @@
1
- import { B as e, a as o } from "./chunks/index.4d3472d3.js";
1
+ import { B as e, a as o } from "./chunks/index.73d50fa6.js";
2
2
  export {
3
3
  e as BentoDate,
4
4
  o as BentoDateFormat
package/dist/divider.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as i, computed as n } from "vue";
2
2
  import { n as s } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
3
- import "./assets/index12.css";
3
+ import "./assets/index10.css";
4
4
  const _ = i({
5
5
  name: "bento-divider",
6
6
  setup(a, { attrs: e }) {
package/dist/dropdown.js CHANGED
@@ -1,12 +1,12 @@
1
- import { B as s } from "./chunks/dropdown.9681d483.js";
1
+ import { B as s } from "./chunks/dropdown.c05678d0.js";
2
2
  import { defineComponent as u, computed as _, toRefs as m, provide as f } from "vue";
3
- import { B as y, L as l } from "./chunks/listbox-option-tag.e5a28267.js";
3
+ import { B as y, L as l } from "./chunks/listbox-option-tag.8d6cccac.js";
4
4
  import { n as d } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
5
5
  import { BentoCountry as v, BentoCountryVariant as c } from "./country.js";
6
6
  import { u as b } from "./chunks/useCountryItems.5d7b436e.js";
7
- import { d as w } from "./chunks/index.e3c7b9ee.js";
7
+ import { d as w } from "./chunks/index.56858f4e.js";
8
8
  import { BentoPaymentMethod as I } from "./payment-method.js";
9
- import "./assets/index27.css";
9
+ import "./assets/index11.css";
10
10
  const $ = u({
11
11
  name: "bento-dropdown-avatar",
12
12
  components: {
@@ -1,38 +1,38 @@
1
1
  import { n as T } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
2
2
  import { defineComponent as E, computed as i, ref as A, watch as Z, toRef as P, onBeforeUpdate as te, nextTick as _e, reactive as be, toRefs as Me, provide as we, onMounted as qe } from "vue";
3
- import { a as le, B as ve } from "./chunks/button.be42b512.js";
3
+ import { a as le, B as ve } from "./chunks/button.d0c9527d.js";
4
4
  import { BentoPopover as ue, BentoPopoverPositions as Ye } from "./popover.js";
5
5
  import { u as Y } from "./chunks/i18n.155748d6.js";
6
6
  import { g as ae } from "./chunks/unique-id.a2a2b458.js";
7
- import { B as ne, a as se, b as oe, d as He } from "./chunks/index.e3c7b9ee.js";
7
+ import { B as ne, a as se, b as oe, d as He } from "./chunks/index.56858f4e.js";
8
8
  import { u as je } from "./chunks/aria-label.ac9651a5.js";
9
9
  import { u as ze } from "./chunks/use-has-slot.068222e6.js";
10
- import { B as Ge, a as ce } from "./chunks/base-button.ebd7c02e.js";
10
+ import { B as Ge, a as ce } from "./chunks/base-button.98379576.js";
11
11
  import { g as Je } from "./chunks/get-slot-text.e5c766d0.js";
12
12
  import { a as Ke, C as We } from "./chunks/chevron-down.b851a6da.js";
13
- import { B as Qe } from "./chunks/tooltip.680d6038.js";
13
+ import { B as Qe } from "./chunks/tooltip.2aff4fa6.js";
14
14
  import { B as Xe } from "./chunks/directive.0408e565.js";
15
- import { c as ye, B as Ze } from "./chunks/button-actions.075932ac.js";
15
+ import { c as ye, B as Ze } from "./chunks/button-actions.bd397c79.js";
16
16
  import { BentoRadioGroup as et } from "./radio-group.js";
17
17
  import { BentoInputField as me, BentoInputFieldType as tt } from "./input-field.js";
18
18
  import { BentoSearchBar as X, BentoSearchBarEvent as H } from "./search-bar.js";
19
19
  import { u as lt } from "./chunks/toastController.0e01443d.js";
20
20
  import { BentoModal as at, BentoModalEvent as nt, BentoModalSize as st } from "./modal.js";
21
- import { B as ot, u as Fe } from "./chunks/dropdown.9681d483.js";
22
- import { g as rt } from "./chunks/index.96e2f563.js";
21
+ import { B as ot, u as Fe } from "./chunks/dropdown.c05678d0.js";
22
+ import { g as rt } from "./chunks/index.133e4da0.js";
23
23
  import { BentoDivider as Be } from "./divider.js";
24
24
  import { BentoDatePicker as it } from "./date-picker.js";
25
- import { f as K } from "./chunks/index.4d3472d3.js";
25
+ import { f as K } from "./chunks/index.73d50fa6.js";
26
26
  import { e as q, d as he, f as Ce } from "./chunks/index.f55fdc32.js";
27
- import { C as ut } from "./chunks/calendar.2d5aa882.js";
28
- import { B as ct, D as dt } from "./chunks/index.0a747d58.js";
27
+ import { C as ut } from "./chunks/calendar.0ae43a96.js";
28
+ import { B as ct, D as dt } from "./chunks/index.10aaf539.js";
29
29
  import { D as de } from "./chunks/date-input.9186a0bf.js";
30
- import { B as ft } from "./chunks/listbox.140e447a.js";
31
- import { B as pt, L as ge } from "./chunks/listbox-option-tag.e5a28267.js";
30
+ import { B as ft } from "./chunks/listbox.116ed0c1.js";
31
+ import { B as pt, L as ge } from "./chunks/listbox-option-tag.8d6cccac.js";
32
32
  import { BentoCountry as _t, BentoCountryVariant as Se } from "./country.js";
33
33
  import { u as bt } from "./chunks/useCountryItems.5d7b436e.js";
34
34
  import { BentoPaymentMethod as vt } from "./payment-method.js";
35
- import "./assets/index32.css";
35
+ import "./assets/index21.css";
36
36
  var r = /* @__PURE__ */ ((t) => (t.INPUT = "input", t.UPDATE = "update", t))(r || {}), M = /* @__PURE__ */ ((t) => (t.INPUT = "input", t))(M || {}), R = /* @__PURE__ */ ((t) => (t.INPUT = "BentoInputFilter", t.BOOLEAN = "BentoBooleanFilter", t.RANGE = "BentoRangeFilter", t.SELECT = "BentoSelectFilter", t.SELECT_AVATAR = "BentoSelectAvatarFilter", t.SELECT_COUNTRY = "BentoSelectCountryFilter", t.SELECT_CURRENCY = "BentoSelectCurrencyFilter", t.SELECT_PAYMENT_METHOD = "BentoSelectPaymentMethodFilter", t.SELECT_TAG = "BentoSelectTagFilter", t.DATE = "BentoDateFilter", t.DATE_RANGE = "BentoDateRangeFilter", t))(R || {});
37
37
  const yt = E({
38
38
  name: "base-filter-button",
@@ -1,4 +1,4 @@
1
- import { B as a } from "./chunks/index.96e2f563.js";
1
+ import { B as a } from "./chunks/index.133e4da0.js";
2
2
  export {
3
3
  a as BentoFocusTrap
4
4
  };
@@ -3,8 +3,8 @@ import { BentoAlert as m, BentoAlertTypeOption as y, BentoAlertVariant as h } fr
3
3
  import { u as d } from "./chunks/use-has-slot.068222e6.js";
4
4
  import { F as T } from "./chunks/form-layout.types.a7a1438d.js";
5
5
  import { n as l } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
6
- import { B as u, a as i, b } from "./chunks/index.e3c7b9ee.js";
7
- import "./assets/index15.css";
6
+ import { B as u, a as i, b } from "./chunks/index.56858f4e.js";
7
+ import "./assets/index12.css";
8
8
  const C = {}, $ = /* @__PURE__ */ _({
9
9
  ...C,
10
10
  __name: "form-layout",
package/dist/header.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as E, computed as T } from "vue";
2
2
  import { BentoInfoIcon as A } from "./info-icon.js";
3
3
  import { u as C } from "./chunks/use-has-slot.068222e6.js";
4
- import { B as U, a as v, b as D } from "./chunks/index.e3c7b9ee.js";
4
+ import { B as U, a as v, b as D } from "./chunks/index.56858f4e.js";
5
5
  import { u as X } from "./chunks/i18n.155748d6.js";
6
6
  import { c as p, a as B } from "./chunks/index.86453263.js";
7
7
  import { r as u, t as s, e as _, g as b, d as H, f as P } from "./chunks/index.f55fdc32.js";
8
8
  import { e as R } from "./chunks/index.fdf12170.js";
9
- import { B as Y } from "./chunks/button-actions.075932ac.js";
9
+ import { B as Y } from "./chunks/button-actions.bd397c79.js";
10
10
  import { n as w } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
11
- import "./assets/index36.css";
11
+ import "./assets/index16.css";
12
12
  function F(t, e) {
13
13
  u(2, arguments);
14
14
  var a = s(t), n = s(e), f = a.getFullYear() - n.getFullYear(), r = a.getMonth() - n.getMonth();
package/dist/index.js CHANGED
@@ -5,19 +5,19 @@ import "./chunks/index.af05ced4.js";
5
5
  import { reactive as m } from "vue";
6
6
  import { g as s } from "./chunks/unique-id.a2a2b458.js";
7
7
  import { BentoAlert as C, BentoAlertEvent as S, BentoAlertTypeOption as h, BentoAlertVariant as D } from "./alert.js";
8
- import { B as b, b as E, a as L } from "./chunks/button.be42b512.js";
8
+ import { B as b, b as E, a as L } from "./chunks/button.d0c9527d.js";
9
9
  import { BentoColumnOverflow as P, BentoDataGrid as F, BentoDatagridAriaSortValue as k, BentoDatagridEvent as G, BentoDatagridSortDirection as w, BentoDatagridStyleState as V } from "./data-grid.js";
10
10
  import { BentoCard as A, BentoCardBackground as O, BentoCardTitleSize as R } from "./card.js";
11
11
  import { BentoDatePicker as N, BentoDatePickerEvent as q } from "./date-picker.js";
12
- import { B as U, a as K } from "./chunks/index.0a747d58.js";
13
- import { B as Y, u as H } from "./chunks/dropdown.9681d483.js";
12
+ import { B as U, a as K } from "./chunks/index.10aaf539.js";
13
+ import { B as Y, u as H } from "./chunks/dropdown.c05678d0.js";
14
14
  import { BentoDropdownAvatar as j, BentoDropdownCountry as J, BentoDropdownCurrency as Q, BentoDropdownPaymentMethod as X, BentoDropdownTag as Z } from "./dropdown.js";
15
- import { B as te, b as oe, a as ne } from "./chunks/checkbox.f6548e4f.js";
15
+ import { B as te, b as oe, a as ne } from "./chunks/checkbox.f8457c93.js";
16
16
  import { BentoClickOutside as ae } from "./click-outside.js";
17
17
  import { BentoCodeSnippet as ie, BentoCodeSnippetEvent as me, BentoCodeSnippetSupportedLanguage as se, BentoCodeSnippetVariant as pe } from "./code-snippet.js";
18
18
  import { BentoCountry as ue, BentoCountryCode as le, BentoCountryVariant as fe, useCountryCapital as xe, useCountryName as ye, useCountryPhoneCode as ce } from "./country.js";
19
19
  import { BentoCurrency as Te, BentoCurrencyISOCode as Ce } from "./currency.js";
20
- import { B as he, a as De } from "./chunks/index.4d3472d3.js";
20
+ import { B as he, a as De } from "./chunks/index.73d50fa6.js";
21
21
  import { BentoDivider as be } from "./divider.js";
22
22
  import { BentoFilterBar as Le, BentoFilterBarEvent as Ie, BentoFilterEvent as Pe, BentoFilterItemType as Fe } from "./filter-bar.js";
23
23
  import { BentoFormLayout as Ge, BentoFormLayoutFieldTip as we, BentoFormLayoutGroup as Ve, BentoFormLayoutTitle as Me } from "./form-layout.js";
@@ -36,7 +36,7 @@ import { BentoSearchBar as ht, BentoSearchBarEvent as Dt, BentoSearchBarInternal
36
36
  import { BentoSegmentedControl as Et, BentoSegmentedControlEvent as Lt } from "./segmented-control.js";
37
37
  import { BentoSidepanel as Pt, BentoSidepanelAnimation as Ft, BentoSidepanelEvent as kt, BentoSidepanelPage as Gt } from "./sidepanel.js";
38
38
  import { BentoStatus as Vt, BentoStatusVariant as Mt } from "./status.js";
39
- import { B as Ot, a as Rt } from "./chunks/index.b56bf100.js";
39
+ import { B as Ot, a as Rt } from "./chunks/index.0cf00b47.js";
40
40
  import { BentoSummaryGrid as Nt, BentoSummaryGridItemAmount as qt, BentoSummaryGridItemCustom as zt, BentoSummaryGridItemNumeric as Ut, BentoSummaryGridItemPercentage as Kt, BentoSummaryGridItemSize as Wt, BentoSummaryGridItemText as Yt, BentoSummaryGridItemTrendDirection as Ht } from "./summary-grid.js";
41
41
  import { BentoTab as jt, BentoTabs as Jt } from "./tabs.js";
42
42
  import { BentoTag as Xt, BentoTagVariant as Zt } from "./tag.js";
@@ -45,16 +45,16 @@ import { BentoTimeline as no, BentoTimelineGapUnit as ro, BentoTimelineItem as a
45
45
  import { BentoToast as so } from "./toast.js";
46
46
  import { u as uo } from "./chunks/toastController.0e01443d.js";
47
47
  import { BentoToggle as fo, BentoToggleLabelPosition as xo, BentoTogglePropClass as yo } from "./toggle.js";
48
- import { B as go, a as To, c as Co, b as So } from "./chunks/index.e3c7b9ee.js";
49
- import { B as Do, c as vo, a as bo, b as Eo } from "./chunks/button-actions.075932ac.js";
50
- import { B as Io, a as Po } from "./chunks/loading-button.80bba4ca.js";
51
- import { b as ko, b as Go } from "./chunks/calendar.2d5aa882.js";
48
+ import { B as go, a as To, c as Co, b as So } from "./chunks/index.56858f4e.js";
49
+ import { B as Do, c as vo, a as bo, b as Eo } from "./chunks/button-actions.bd397c79.js";
50
+ import { B as Io, a as Po } from "./chunks/loading-button.1c201f87.js";
51
+ import { b as ko, b as Go } from "./chunks/calendar.0ae43a96.js";
52
52
  import { BentoCheckboxGroup as Vo, BentoCheckboxGroupVariant as Mo } from "./checkbox.js";
53
53
  import { D as Oo } from "./chunks/date-input.9186a0bf.js";
54
54
  import { a as _o, B as No } from "./chunks/debounce.f8d92e44.js";
55
- import { a as zo, b as Uo } from "./chunks/listbox.140e447a.js";
55
+ import { a as zo, b as Uo } from "./chunks/listbox.116ed0c1.js";
56
56
  import { B as Wo } from "./chunks/directive.0408e565.js";
57
- import { b as Ho, B as $o, a as jo } from "./chunks/tooltip.680d6038.js";
57
+ import { b as Ho, B as $o, a as jo } from "./chunks/tooltip.2aff4fa6.js";
58
58
  class p {
59
59
  constructor() {
60
60
  r(this, "_state");
package/dist/info-icon.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as r } from "vue";
2
2
  import { PopperContainerPosition as i } from "./popper-container.js";
3
3
  import { n as s } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
4
- import { b as a } from "./chunks/tooltip.680d6038.js";
5
- import "./assets/index30.css";
4
+ import { b as a } from "./chunks/tooltip.2aff4fa6.js";
5
+ import "./assets/index14.css";
6
6
  let n = 0;
7
7
  const l = {
8
8
  beforeCreate() {
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as C, ref as U, toRef as V, computed as n } from "vue";
2
- import { B as M, d as $, b as H, a as F } from "./chunks/index.e3c7b9ee.js";
2
+ import { B as M, d as $, b as H, a as F } from "./chunks/index.56858f4e.js";
3
3
  import { u as Y } from "./chunks/use-has-slot.068222e6.js";
4
4
  import { u as x } from "./chunks/use-form-layout-loading.d03e5d48.js";
5
5
  import { g as u } from "./chunks/unique-id.a2a2b458.js";
6
6
  import { u as W } from "./chunks/i18n.155748d6.js";
7
- import { B as G, a as k } from "./chunks/dropdown.9681d483.js";
7
+ import { B as G, a as k } from "./chunks/dropdown.c05678d0.js";
8
8
  import { g as q } from "./chunks/get-slot-text.e5c766d0.js";
9
- import { E as z } from "./chunks/error-message.588e0cf6.js";
9
+ import { E as z } from "./chunks/error-message.0433b539.js";
10
10
  import { n as j } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
11
- import "./assets/index35.css";
11
+ import "./assets/index40.css";
12
12
  var d = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.PAYMENT_METHOD = "payment-method", e.STATIC_VALUE = "static-value", e.DROPDOWN = "dropdown", e))(d || {}), i = /* @__PURE__ */ ((e) => (e.START = "start", e.END = "end", e))(i || {}), l = /* @__PURE__ */ ((e) => (e.DISABLED = "disabled", e.READONLY = "readonly", e.ERROR = "error", e.SMALL_PADDING_LEFT = "small-padding-left", e.SMALL_PADDING_RIGHT = "small-padding-right", e))(l || {}), m = /* @__PURE__ */ ((e) => (e.SEARCH = "search", e.TEXT = "text", e.NUMBER = "number", e))(m || {}), r = /* @__PURE__ */ ((e) => (e.INPUT = "input", e.ESCAPE_PRESSED = "escape-pressed", e.UPDATE_DROPDOWN = "update:dropdown", e.DROPDOWN_INPUT = "dropdown-input", e.FOCUS = "focus", e.CHANGE = "change", e.BLUR = "blur", e.KEYDOWN = "keydown", e))(r || {});
13
13
  const K = {
14
14
  "en-US": {
package/dist/internal.js CHANGED
@@ -1,10 +1,10 @@
1
- import { B as r, L as e } from "./chunks/listbox-option-tag.e5a28267.js";
2
- import { C as s, a as p, b as n } from "./chunks/calendar.2d5aa882.js";
3
- import { C } from "./chunks/copy.6081b6ec.js";
4
- import { C as i } from "./chunks/controls-group.62e35aef.js";
5
- import { E as d } from "./chunks/error-message.588e0cf6.js";
1
+ import { B as r, L as e } from "./chunks/listbox-option-tag.8d6cccac.js";
2
+ import { C as s, a as p, b as n } from "./chunks/calendar.0ae43a96.js";
3
+ import { C } from "./chunks/copy.5a4cbd4d.js";
4
+ import { C as i } from "./chunks/controls-group.b827382b.js";
5
+ import { E as d } from "./chunks/error-message.0433b539.js";
6
6
  import { G as L, a as l } from "./chunks/grid-layout.73f23b1b.js";
7
- import { B as G } from "./chunks/listbox.140e447a.js";
7
+ import { B as G } from "./chunks/listbox.116ed0c1.js";
8
8
  export {
9
9
  r as BentoAvatar,
10
10
  G as BentoListbox,
package/dist/link.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as i, computed as p, useAttrs as c } from "vue";
2
2
  import { RouterLink as _ } from "vue-router";
3
- import { B as u, a as y, b as d } from "./chunks/index.e3c7b9ee.js";
3
+ import { B as u, a as y, b as d } from "./chunks/index.56858f4e.js";
4
4
  import { n as f } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
5
- import "./assets/index34.css";
5
+ import "./assets/index13.css";
6
6
  var a = /* @__PURE__ */ ((o) => (o.DEFAULT = "default", o.QUIET = "quiet", o))(a || {});
7
7
  const m = {
8
8
  name: "bento-link"
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as t, onMounted as s, onUnmounted as l, computed as i } from "vue";
2
2
  import { n as r } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
3
- import "./assets/index13.css";
3
+ import "./assets/index15.css";
4
4
  var a = /* @__PURE__ */ ((n) => (n.START = "loading-start", n.END = "loading-end", n))(a || {});
5
5
  const d = t({
6
6
  name: "bento-loading-indicator",
package/dist/menu.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as k, computed as b, ref as c, onMounted as U } from "vue";
2
2
  import { n as h } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
3
3
  import { g as w } from "./chunks/unique-id.a2a2b458.js";
4
- import { B as H, a as I } from "./chunks/button.be42b512.js";
4
+ import { B as H, a as I } from "./chunks/button.d0c9527d.js";
5
5
  import { BentoPopover as q, BentoPopoverPositions as B } from "./popover.js";
6
6
  import { a as V, C as O } from "./chunks/chevron-right.3b826337.js";
7
- import { B as W, a as L } from "./chunks/base-button.ebd7c02e.js";
8
- import { B as j, a as Y, b as Z } from "./chunks/index.e3c7b9ee.js";
7
+ import { B as W, a as L } from "./chunks/base-button.98379576.js";
8
+ import { B as j, a as Y, b as Z } from "./chunks/index.56858f4e.js";
9
9
  import { B as $ } from "./chunks/directive.0408e565.js";
10
- import "./assets/index14.css";
10
+ import "./assets/index27.css";
11
11
  let S = 0;
12
12
  const z = {
13
13
  beforeCreate() {
package/dist/modal.js CHANGED
@@ -1,16 +1,16 @@
1
1
  import { defineComponent as S, useAttrs as M, ref as N, computed as s, watch as P, onMounted as D, toRefs as I } from "vue";
2
- import { B as G, a as L } from "./chunks/button.be42b512.js";
3
- import { B as z, a as F, b as V } from "./chunks/index.e3c7b9ee.js";
2
+ import { B as G, a as L } from "./chunks/button.d0c9527d.js";
3
+ import { B as z, a as F, b as V } from "./chunks/index.56858f4e.js";
4
4
  import { BentoDivider as $ } from "./divider.js";
5
- import { B as q } from "./chunks/index.96e2f563.js";
5
+ import { B as q } from "./chunks/index.133e4da0.js";
6
6
  import { u as O } from "./chunks/use-has-slot.068222e6.js";
7
7
  import { u as w } from "./chunks/i18n.155748d6.js";
8
8
  import { C as U } from "./chunks/cross.a2cadac5.js";
9
9
  import { G as W, a as K } from "./chunks/grid-layout.73f23b1b.js";
10
10
  import { n as A } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
11
- import { F as j } from "./chunks/footer-actions.63766096.js";
12
- import { B as Y, c as H } from "./chunks/button-actions.075932ac.js";
13
- import "./assets/index31.css";
11
+ import { F as j } from "./chunks/footer-actions.67642347.js";
12
+ import { B as Y, c as H } from "./chunks/button-actions.bd397c79.js";
13
+ import "./assets/index17.css";
14
14
  var B = /* @__PURE__ */ ((e) => (e.DEFAULT = "BentoModalDefault", e.DIALOG = "BentoModalDialog", e))(B || {}), _ = /* @__PURE__ */ ((e) => (e.SMALL = "small", e.MEDIUM = "medium", e.LARGE = "large", e))(_ || {}), m = /* @__PURE__ */ ((e) => (e.SMALLER = "smaller", e.EQUAL = "equal", e.BIGGER = "bigger", e))(m || {}), h = /* @__PURE__ */ ((e) => (e.DIALOG = "dialog", e.ALERT_DIALOG = "alertdialog", e))(h || {}), c = /* @__PURE__ */ ((e) => (e.CONFIRMATION = "confirmation", e.DESTRUCTIVE = "destructive", e.INFO = "info", e.ACKNOWLEDGEMENT = "acknowledgement", e))(c || {}), i = /* @__PURE__ */ ((e) => (e.CLOSE_MODAL = "close-modal", e))(i || {});
15
15
  const Q = {
16
16
  "en-US": {