@adyen/bento-vue2 1.20.0 → 1.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (195) hide show
  1. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +2 -2
  2. package/dist/@types/packages/vue2/src/components/payment-method/payment-method.types.d.ts +1079 -3
  3. package/dist/@types/packages/vue2/src/components/payment-method/payment-method.vue.d.ts +8 -7
  4. package/dist/accordion.js +3 -3
  5. package/dist/action-bar.js +7 -7
  6. package/dist/alert.js +6 -6
  7. package/dist/assets/base-modal.css +1 -1
  8. package/dist/assets/dialog-page.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/index7.css +1 -1
  53. package/dist/assets/index8.css +1 -1
  54. package/dist/assets/index9.css +1 -1
  55. package/dist/avatar-image.js +1 -1
  56. package/dist/badge.js +1 -1
  57. package/dist/button.js +5 -5
  58. package/dist/card.js +4 -4
  59. package/dist/checkbox.js +6 -6
  60. package/dist/chunks/{arrow-left.93ae08f5.js → arrow-left.2db60716.js} +2 -2
  61. package/dist/chunks/{arrow-left.93ae08f5.js.map → arrow-left.2db60716.js.map} +1 -1
  62. package/dist/chunks/{base-button.2abda566.js → base-button.d3f27fe6.js} +2 -2
  63. package/dist/chunks/{base-button.2abda566.js.map → base-button.d3f27fe6.js.map} +1 -1
  64. package/dist/chunks/{base-modal.9d4f6201.js → base-modal.cc448ad3.js} +5 -5
  65. package/dist/chunks/{base-modal.9d4f6201.js.map → base-modal.cc448ad3.js.map} +1 -1
  66. package/dist/chunks/{button-actions-with-menu.db38aa1d.js → button-actions-with-menu.4e274e5d.js} +4 -4
  67. package/dist/chunks/{button-actions-with-menu.db38aa1d.js.map → button-actions-with-menu.4e274e5d.js.map} +1 -1
  68. package/dist/chunks/{button-actions.0ed5f462.js → button-actions.98e96aa6.js} +3 -3
  69. package/dist/chunks/{button-actions.0ed5f462.js.map → button-actions.98e96aa6.js.map} +1 -1
  70. package/dist/chunks/{button.8738aa07.js → button.27948f1c.js} +3 -3
  71. package/dist/chunks/{button.8738aa07.js.map → button.27948f1c.js.map} +1 -1
  72. package/dist/chunks/{calendar.ce3f34b7.js → calendar.943ea7c3.js} +5 -5
  73. package/dist/chunks/{calendar.ce3f34b7.js.map → calendar.943ea7c3.js.map} +1 -1
  74. package/dist/chunks/{checkbox.4f4e8f67.js → checkbox.2c2a1f90.js} +4 -4
  75. package/dist/chunks/{checkbox.4f4e8f67.js.map → checkbox.2c2a1f90.js.map} +1 -1
  76. package/dist/chunks/{checkmark-circle-fill.d1cdb44b.js → checkmark-circle-fill.345311d2.js} +2 -2
  77. package/dist/chunks/{checkmark-circle-fill.d1cdb44b.js.map → checkmark-circle-fill.345311d2.js.map} +1 -1
  78. package/dist/chunks/{checkmark-small.73cf8f1d.js → checkmark-small.520f01b1.js} +2 -2
  79. package/dist/chunks/{checkmark-small.73cf8f1d.js.map → checkmark-small.520f01b1.js.map} +1 -1
  80. package/dist/chunks/{checkmark.b6d2d4d1.js → checkmark.a6ed8f47.js} +2 -2
  81. package/dist/chunks/{checkmark.b6d2d4d1.js.map → checkmark.a6ed8f47.js.map} +1 -1
  82. package/dist/chunks/{chevron-left.ddc658ff.js → chevron-left.5edf02ac.js} +2 -2
  83. package/dist/chunks/{chevron-left.ddc658ff.js.map → chevron-left.5edf02ac.js.map} +1 -1
  84. package/dist/chunks/{chevron-up.52aea493.js → chevron-up.81185563.js} +2 -2
  85. package/dist/chunks/{chevron-up.52aea493.js.map → chevron-up.81185563.js.map} +1 -1
  86. package/dist/chunks/{controls-group.0e3d1fc5.js → controls-group.02abd743.js} +3 -3
  87. package/dist/chunks/{controls-group.0e3d1fc5.js.map → controls-group.02abd743.js.map} +1 -1
  88. package/dist/chunks/{copy.2aca9aaf.js → copy.a9f87101.js} +4 -4
  89. package/dist/chunks/{copy.2aca9aaf.js.map → copy.a9f87101.js.map} +1 -1
  90. package/dist/chunks/{cross-circle-fill.42f9b938.js → cross-circle-fill.27580c4b.js} +2 -2
  91. package/dist/chunks/{cross-circle-fill.42f9b938.js.map → cross-circle-fill.27580c4b.js.map} +1 -1
  92. package/dist/chunks/{cross-small.3aadf170.js → cross-small.e851e0de.js} +2 -2
  93. package/dist/chunks/{cross-small.3aadf170.js.map → cross-small.e851e0de.js.map} +1 -1
  94. package/dist/chunks/{cross.eaaaf355.js → cross.04678d81.js} +2 -2
  95. package/dist/chunks/{cross.eaaaf355.js.map → cross.04678d81.js.map} +1 -1
  96. package/dist/chunks/{dialog-page.6bc19d1a.js → dialog-page.0e787c2d.js} +4 -4
  97. package/dist/chunks/{dialog-page.6bc19d1a.js.map → dialog-page.0e787c2d.js.map} +1 -1
  98. package/dist/chunks/{dropdown-default-textbox.a55b9de3.js → dropdown-default-textbox.b4f19086.js} +4 -4
  99. package/dist/chunks/{dropdown-default-textbox.a55b9de3.js.map → dropdown-default-textbox.b4f19086.js.map} +1 -1
  100. package/dist/chunks/{dropdown.7ad3a860.js → dropdown.9abc124c.js} +14 -14
  101. package/dist/chunks/{dropdown.7ad3a860.js.map → dropdown.9abc124c.js.map} +1 -1
  102. package/dist/chunks/{error-message.775f9114.js → error-message.3d436de3.js} +3 -3
  103. package/dist/chunks/{error-message.775f9114.js.map → error-message.3d436de3.js.map} +1 -1
  104. package/dist/chunks/{fixed-scroller.5764a0d4.js → fixed-scroller.c430a595.js} +3 -3
  105. package/dist/chunks/{fixed-scroller.5764a0d4.js.map → fixed-scroller.c430a595.js.map} +1 -1
  106. package/dist/chunks/{footer-actions.093f0cbe.js → footer-actions.74983707.js} +4 -4
  107. package/dist/chunks/{footer-actions.093f0cbe.js.map → footer-actions.74983707.js.map} +1 -1
  108. package/dist/chunks/{index.9f7e23cb.js → index.211ea795.js} +7 -7
  109. package/dist/chunks/{index.9f7e23cb.js.map → index.211ea795.js.map} +1 -1
  110. package/dist/chunks/{index.7e9406c4.js → index.25de3ab8.js} +2 -2
  111. package/dist/chunks/{index.7e9406c4.js.map → index.25de3ab8.js.map} +1 -1
  112. package/dist/chunks/{index.f64eee15.js → index.2f00afab.js} +2 -2
  113. package/dist/chunks/{index.f64eee15.js.map → index.2f00afab.js.map} +1 -1
  114. package/dist/chunks/{index.9e16359f.js → index.3a8caa8d.js} +26 -26
  115. package/dist/chunks/{index.9e16359f.js.map → index.3a8caa8d.js.map} +1 -1
  116. package/dist/chunks/{index.e537c4f4.js → index.54eb824c.js} +3 -3
  117. package/dist/chunks/{index.e537c4f4.js.map → index.54eb824c.js.map} +1 -1
  118. package/dist/chunks/{index.096f3429.js → index.900d8b24.js} +2 -2
  119. package/dist/chunks/{index.096f3429.js.map → index.900d8b24.js.map} +1 -1
  120. package/dist/chunks/{index.b86a901b.js → index.985d9d31.js} +2 -2
  121. package/dist/chunks/{index.b86a901b.js.map → index.985d9d31.js.map} +1 -1
  122. package/dist/chunks/{index.f03831cf.js → index.a2095588.js} +3 -3
  123. package/dist/chunks/{index.f03831cf.js.map → index.a2095588.js.map} +1 -1
  124. package/dist/chunks/{index.e1f51235.js → index.af17c8ac.js} +2 -2
  125. package/dist/chunks/{index.e1f51235.js.map → index.af17c8ac.js.map} +1 -1
  126. package/dist/chunks/{index.efda8afc.js → index.d080a0e6.js} +8 -8
  127. package/dist/chunks/{index.efda8afc.js.map → index.d080a0e6.js.map} +1 -1
  128. package/dist/chunks/{index.973e0dbe.js → index.dd7d8418.js} +15 -15
  129. package/dist/chunks/{index.973e0dbe.js.map → index.dd7d8418.js.map} +1 -1
  130. package/dist/chunks/{index.4c011bf9.js → index.de9a552e.js} +7 -7
  131. package/dist/chunks/{index.4c011bf9.js.map → index.de9a552e.js.map} +1 -1
  132. package/dist/chunks/{info-filled.c7bd493a.js → info-filled.c37e091d.js} +2 -2
  133. package/dist/chunks/{info-filled.c7bd493a.js.map → info-filled.c37e091d.js.map} +1 -1
  134. package/dist/chunks/{info.04ff164c.js → info.8b6328aa.js} +2 -2
  135. package/dist/chunks/{info.04ff164c.js.map → info.8b6328aa.js.map} +1 -1
  136. package/dist/chunks/{listbox-option-tag.1c6a0605.js → listbox-option-tag.37da51ba.js} +3 -3
  137. package/dist/chunks/{listbox-option-tag.1c6a0605.js.map → listbox-option-tag.37da51ba.js.map} +1 -1
  138. package/dist/chunks/{listbox.2a5fb14f.js → listbox.a142458a.js} +8 -8
  139. package/dist/chunks/{listbox.2a5fb14f.js.map → listbox.a142458a.js.map} +1 -1
  140. package/dist/chunks/{loading-button.c7b30923.js → loading-button.2c3d9afc.js} +4 -4
  141. package/dist/chunks/{loading-button.c7b30923.js.map → loading-button.2c3d9afc.js.map} +1 -1
  142. package/dist/chunks/{refresh.14e39831.js → refresh.71a03998.js} +2 -2
  143. package/dist/chunks/{refresh.14e39831.js.map → refresh.71a03998.js.map} +1 -1
  144. package/dist/chunks/{search.eca6bd88.js → search.471270fe.js} +2 -2
  145. package/dist/chunks/{search.eca6bd88.js.map → search.471270fe.js.map} +1 -1
  146. package/dist/chunks/{tooltip.a76de645.js → tooltip.0459eb5c.js} +3 -3
  147. package/dist/chunks/{tooltip.a76de645.js.map → tooltip.0459eb5c.js.map} +1 -1
  148. package/dist/code-snippet.js +7 -7
  149. package/dist/country.js +2 -2
  150. package/dist/currency.js +1 -1
  151. package/dist/data-grid.js +1 -1
  152. package/dist/date-picker.js +18 -18
  153. package/dist/date-range-picker.js +2 -2
  154. package/dist/date.js +1 -1
  155. package/dist/divider.js +1 -1
  156. package/dist/dropdown.js +6 -6
  157. package/dist/empty-state.js +3 -3
  158. package/dist/filter-bar.js +19 -19
  159. package/dist/focus-trap.js +1 -1
  160. package/dist/form-layout.js +2 -2
  161. package/dist/header.js +5 -5
  162. package/dist/index.js +20 -20
  163. package/dist/info-icon.js +4 -4
  164. package/dist/input-field.js +4 -4
  165. package/dist/internal.js +8 -8
  166. package/dist/link.js +1 -1
  167. package/dist/loading-indicator.js +1 -1
  168. package/dist/menu.js +1 -1
  169. package/dist/modal-fullscreen.js +7 -7
  170. package/dist/modal.js +6 -6
  171. package/dist/pagination.js +4 -4
  172. package/dist/payment-method.js +43 -43
  173. package/dist/payment-method.js.map +1 -1
  174. package/dist/popover.js +1 -1
  175. package/dist/popper-container.js +1 -1
  176. package/dist/radio-group.js +4 -4
  177. package/dist/search-bar.js +4 -4
  178. package/dist/secondary-nav.js +2 -2
  179. package/dist/segmented-control.js +4 -4
  180. package/dist/sidepanel.js +7 -7
  181. package/dist/status.js +2 -2
  182. package/dist/stepper.js +4 -4
  183. package/dist/structured-list.js +1 -1
  184. package/dist/summary-grid.js +3 -3
  185. package/dist/tabs.js +3 -3
  186. package/dist/tag.js +3 -3
  187. package/dist/textarea.js +4 -4
  188. package/dist/timeline.js +7 -7
  189. package/dist/toast.js +5 -5
  190. package/dist/toggle.js +3 -3
  191. package/dist/tutorial.js +7 -7
  192. package/dist/typography.js +1 -1
  193. package/dist/web-types.json +7 -7
  194. package/package.json +3 -3
  195. /package/dist/assets/{checkmark-circle-fill.css → cross.css} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"index.9f7e23cb.js","sources":["../../src/components/structured-list/structured-list.keys.ts","../../src/components/structured-list/structured-list.types.ts","../../src/components/structured-list/structured-list.vue","../../src/components/structured-list/components/structered-list-item/structured-list-item.vue"],"sourcesContent":["export const STRUCTURED_LIST_CONDENSED_INJECTION_KEY = Symbol('structured list condensed style injection key');\nexport const STRUCTURED_LIST_LABELS_WIDTH_INJECTION_KEY = Symbol('structured list labels width injection key');\n","export type BentoStructuredListLayoutOptions = '25-75' | '33-66' | '42-58' | '50-50';\nexport const BentoStructuredListLayoutOptions = ['25-75', '33-66', '42-58', '50-50'];\n","<template>\n <dl class=\"b-structured-list\">\n <slot />\n </dl>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, inject, PropType, provide } from 'vue';\n import {\n STRUCTURED_LIST_CONDENSED_INJECTION_KEY,\n STRUCTURED_LIST_LABELS_WIDTH_INJECTION_KEY,\n } from '@/components/structured-list/structured-list.keys';\n import { BentoStructuredListLayoutOptions } from './structured-list.types';\n\n const props = defineProps({\n /**\n * Width of the labels container, in pixels. Overrides layout prop.\n */\n labelsWidth: {\n type: Number,\n default: null,\n },\n /**\n * The layout of the label value pair in percentage.\n * If labelsWidth is set, layout will be overriden by the static pixel value.\n *\n * If the value entered is not listed in the example\n * list below '33-66' will be applied\n * @example\n * '25-75'\n * '33-66'\n * '42-58'\n * '50-50'\n */\n layout: {\n type: String as PropType<BentoStructuredListLayoutOptions>,\n default: '33-66',\n validator: (value: BentoStructuredListLayoutOptions) => BentoStructuredListLayoutOptions.includes(value),\n },\n });\n\n const isCondensed = inject(STRUCTURED_LIST_CONDENSED_INJECTION_KEY, false);\n\n const computedLayout = computed(() =>\n BentoStructuredListLayoutOptions.includes(props.layout) ? props.layout : '33-66'\n );\n\n const computedLabelsWidth = computed(() => {\n if (isCondensed) {\n return '130px';\n }\n\n if (props.labelsWidth) {\n return `${props.labelsWidth}px`;\n }\n\n return `${computedLayout.value.split('-')[0]}%`;\n });\n\n provide(STRUCTURED_LIST_LABELS_WIDTH_INJECTION_KEY, computedLabelsWidth);\n</script>\n\n<script lang=\"ts\">\n /**\n * This is a list used to display pairs of information in a clear and organized manner.\n * `BentoStructureListItem` should be used to pass the label/value pairs to the list.\n *\n * @example\n * import { BentoStructuredListItem, BentoStructuredListItem } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoStructuredList, BentoStructuredListItem },\n * template: `\n * <bento-structured-list>\n * <bento-structured-list-item label=\"Payment\">\n * <bento-payment-method label=\"Klarna\" type=\"Klarna\" />\n * </bento-structured-list-item>\n * <bento-structured-list-item label=\"Amount\">\n * <bento-currency :currency=\"BentoCurrencyISOCode.USD\">\n * 123456\n * </bento-currency>\n * </bento-structured-list-item>\n * </bento-structured-list>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./structured-list.scss\" />\n","<template>\n <div class=\"b-structured-list-item\" :class=\"conditionalClasses\">\n <dt class=\"b-structured-list-item__label\" :style=\"`flex-basis:${labelsWidth}`\">\n <bento-typography :variant=\"labelTypographyVariant\">{{ label }}</bento-typography>\n <bento-info-icon v-if=\"labelInfo\" class=\"b-structured-list-item__icon\" :tooltip-text=\"labelInfo\" />\n </dt>\n <dd class=\"b-structured-list-item__value\">\n <slot />\n <copy v-if=\"copy\" class=\"b-structured-list-item__icon\" :text=\"copy\" />\n <bento-button\n v-if=\"search\"\n v-bento-tooltip-directive:top=\"searchTooltip ? searchTooltip : $t('search')\"\n class=\"b-structured-list-item__icon\"\n variant=\"tertiary\"\n @click=\"search\"\n >\n <template #iconLeft>\n <search-icon :svg-title=\"$t('search')\" />\n </template>\n </bento-button>\n </dd>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, inject, PropType, ref, Ref } from 'vue';\n\n // Components\n import { BentoButton } from '@/components/button';\n import { BentoInfoIcon } from '@/components/info-icon';\n import { BentoTypography } from '@/components/typography';\n import Copy from '@/components/internal/copy/copy.vue';\n import SearchIcon from '@adyen/ui-assets-icons-16/vue/search';\n\n // Directives\n import { BentoTooltipDirective } from '@/directives';\n\n // Keys\n import {\n STRUCTURED_LIST_CONDENSED_INJECTION_KEY,\n STRUCTURED_LIST_LABELS_WIDTH_INJECTION_KEY,\n } from '../../structured-list.keys';\n\n import messages from '../../messages.json';\n\n const DEFAULT_LABELS_WIDTH = '33%';\n\n /**\n * This is an item of the `BentoStructuredList` meant to be used only with that component.\n * It consists of a label/value pair, and also the optional copy and search modifiers.\n *\n * @example\n * import { BentoCurrencyISOCode, BentoStructuredListItem, BentoStructuredListItem } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoStructuredListItem, BentoStructuredListItem },\n * template: `\n * <bento-structured-list>\n * <bento-structured-list-item label=\"Shopper\" search='searchShopper' search-tooltip='Find shopper'>\n * <bento-typography>\n * 143442642\n * </bento-status>\n * </bento-structured-list-item>\n * <bento-structured-list-item label=\"Amount\" copy='123456'>\n * <bento-currency :currency=\"BentoCurrencyISOCode.USD\">\n * 123456\n * </bento-currency>\n * </bento-structured-list-item>\n * </bento-structured-list>\n * `\n * }\n */\n export default defineComponent({\n i18n: { messages },\n name: 'bento-structured-list-item',\n components: {\n BentoButton,\n BentoInfoIcon,\n BentoTypography,\n Copy,\n SearchIcon,\n },\n directives: { BentoTooltipDirective },\n props: {\n /**\n * Label to display for the value\n */\n label: {\n type: String,\n required: true,\n },\n /**\n * Text to display in info icon tooltip in the label to display for the value\n */\n labelInfo: {\n type: String,\n default: undefined,\n },\n /**\n * Text to copy when the user clicks `Copy` icon\n */\n copy: {\n type: String,\n default: undefined,\n },\n /**\n * Function to trigger when user clicks `Search` icon\n */\n search: {\n type: Function as PropType<(event: Event) => void>,\n default: undefined,\n },\n /**\n * Text to display when the user hovers over `Search` icon\n */\n searchTooltip: {\n type: String,\n default: undefined,\n },\n },\n setup() {\n const isCondensed = inject(STRUCTURED_LIST_CONDENSED_INJECTION_KEY, false);\n const labelsWidth = inject<Ref<string>>(\n STRUCTURED_LIST_LABELS_WIDTH_INJECTION_KEY,\n ref(DEFAULT_LABELS_WIDTH)\n );\n const conditionalClasses = computed(() => ({\n 'b-structured-list-item--condensed': isCondensed,\n }));\n\n const labelTypographyVariant = computed(() => (isCondensed ? 'caption' : 'body'));\n\n return {\n // Values\n conditionalClasses,\n labelTypographyVariant,\n labelsWidth,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./structured-list-item.scss\" />\n"],"names":["STRUCTURED_LIST_CONDENSED_INJECTION_KEY","STRUCTURED_LIST_LABELS_WIDTH_INJECTION_KEY","BentoStructuredListLayoutOptions","__default__","isCondensed","inject","computedLayout","computed","props","computedLabelsWidth","provide","DEFAULT_LABELS_WIDTH","_sfc_main","defineComponent","messages","BentoButton","BentoInfoIcon","BentoTypography","Copy","SearchIcon","BentoTooltipDirective","labelsWidth","ref","conditionalClasses","labelTypographyVariant"],"mappings":";;;;;;;;;AAAa,MAAAA,IAAA,OAAA,+CAAA,GACAC,IAAA,OAAA,4CAAA,GCANC,IAAA,CAAA,SAAA,SAAA,SAAA,OAAA,GCqFHC,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA7CAC,IAAAC,EAAAL,GAAA,EAAA,GAEAM,IAAAC;AAAA,MAAuB,MAAAL,EAAA,S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A;AAAA,EACA;AAEA,CAAA;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.211ea795.js","sources":["../../src/components/structured-list/structured-list.keys.ts","../../src/components/structured-list/structured-list.types.ts","../../src/components/structured-list/structured-list.vue","../../src/components/structured-list/components/structered-list-item/structured-list-item.vue"],"sourcesContent":["export const STRUCTURED_LIST_CONDENSED_INJECTION_KEY = Symbol('structured list condensed style injection key');\nexport const STRUCTURED_LIST_LABELS_WIDTH_INJECTION_KEY = Symbol('structured list labels width injection key');\n","export type BentoStructuredListLayoutOptions = '25-75' | '33-66' | '42-58' | '50-50';\nexport const BentoStructuredListLayoutOptions = ['25-75', '33-66', '42-58', '50-50'];\n","<template>\n <dl class=\"b-structured-list\">\n <slot />\n </dl>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, inject, PropType, provide } from 'vue';\n import {\n STRUCTURED_LIST_CONDENSED_INJECTION_KEY,\n STRUCTURED_LIST_LABELS_WIDTH_INJECTION_KEY,\n } from '@/components/structured-list/structured-list.keys';\n import { BentoStructuredListLayoutOptions } from './structured-list.types';\n\n const props = defineProps({\n /**\n * Width of the labels container, in pixels. Overrides layout prop.\n */\n labelsWidth: {\n type: Number,\n default: null,\n },\n /**\n * The layout of the label value pair in percentage.\n * If labelsWidth is set, layout will be overriden by the static pixel value.\n *\n * If the value entered is not listed in the example\n * list below '33-66' will be applied\n * @example\n * '25-75'\n * '33-66'\n * '42-58'\n * '50-50'\n */\n layout: {\n type: String as PropType<BentoStructuredListLayoutOptions>,\n default: '33-66',\n validator: (value: BentoStructuredListLayoutOptions) => BentoStructuredListLayoutOptions.includes(value),\n },\n });\n\n const isCondensed = inject(STRUCTURED_LIST_CONDENSED_INJECTION_KEY, false);\n\n const computedLayout = computed(() =>\n BentoStructuredListLayoutOptions.includes(props.layout) ? props.layout : '33-66'\n );\n\n const computedLabelsWidth = computed(() => {\n if (isCondensed) {\n return '130px';\n }\n\n if (props.labelsWidth) {\n return `${props.labelsWidth}px`;\n }\n\n return `${computedLayout.value.split('-')[0]}%`;\n });\n\n provide(STRUCTURED_LIST_LABELS_WIDTH_INJECTION_KEY, computedLabelsWidth);\n</script>\n\n<script lang=\"ts\">\n /**\n * This is a list used to display pairs of information in a clear and organized manner.\n * `BentoStructureListItem` should be used to pass the label/value pairs to the list.\n *\n * @example\n * import { BentoStructuredListItem, BentoStructuredListItem } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoStructuredList, BentoStructuredListItem },\n * template: `\n * <bento-structured-list>\n * <bento-structured-list-item label=\"Payment\">\n * <bento-payment-method label=\"Klarna\" type=\"Klarna\" />\n * </bento-structured-list-item>\n * <bento-structured-list-item label=\"Amount\">\n * <bento-currency :currency=\"BentoCurrencyISOCode.USD\">\n * 123456\n * </bento-currency>\n * </bento-structured-list-item>\n * </bento-structured-list>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./structured-list.scss\" />\n","<template>\n <div class=\"b-structured-list-item\" :class=\"conditionalClasses\">\n <dt class=\"b-structured-list-item__label\" :style=\"`flex-basis:${labelsWidth}`\">\n <bento-typography :variant=\"labelTypographyVariant\">{{ label }}</bento-typography>\n <bento-info-icon v-if=\"labelInfo\" class=\"b-structured-list-item__icon\" :tooltip-text=\"labelInfo\" />\n </dt>\n <dd class=\"b-structured-list-item__value\">\n <slot />\n <copy v-if=\"copy\" class=\"b-structured-list-item__icon\" :text=\"copy\" />\n <bento-button\n v-if=\"search\"\n v-bento-tooltip-directive:top=\"searchTooltip ? searchTooltip : $t('search')\"\n class=\"b-structured-list-item__icon\"\n variant=\"tertiary\"\n @click=\"search\"\n >\n <template #iconLeft>\n <search-icon :svg-title=\"$t('search')\" />\n </template>\n </bento-button>\n </dd>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, inject, PropType, ref, Ref } from 'vue';\n\n // Components\n import { BentoButton } from '@/components/button';\n import { BentoInfoIcon } from '@/components/info-icon';\n import { BentoTypography } from '@/components/typography';\n import Copy from '@/components/internal/copy/copy.vue';\n import SearchIcon from '@adyen/ui-assets-icons-16/vue/search';\n\n // Directives\n import { BentoTooltipDirective } from '@/directives';\n\n // Keys\n import {\n STRUCTURED_LIST_CONDENSED_INJECTION_KEY,\n STRUCTURED_LIST_LABELS_WIDTH_INJECTION_KEY,\n } from '../../structured-list.keys';\n\n import messages from '../../messages.json';\n\n const DEFAULT_LABELS_WIDTH = '33%';\n\n /**\n * This is an item of the `BentoStructuredList` meant to be used only with that component.\n * It consists of a label/value pair, and also the optional copy and search modifiers.\n *\n * @example\n * import { BentoCurrencyISOCode, BentoStructuredListItem, BentoStructuredListItem } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoStructuredListItem, BentoStructuredListItem },\n * template: `\n * <bento-structured-list>\n * <bento-structured-list-item label=\"Shopper\" search='searchShopper' search-tooltip='Find shopper'>\n * <bento-typography>\n * 143442642\n * </bento-status>\n * </bento-structured-list-item>\n * <bento-structured-list-item label=\"Amount\" copy='123456'>\n * <bento-currency :currency=\"BentoCurrencyISOCode.USD\">\n * 123456\n * </bento-currency>\n * </bento-structured-list-item>\n * </bento-structured-list>\n * `\n * }\n */\n export default defineComponent({\n i18n: { messages },\n name: 'bento-structured-list-item',\n components: {\n BentoButton,\n BentoInfoIcon,\n BentoTypography,\n Copy,\n SearchIcon,\n },\n directives: { BentoTooltipDirective },\n props: {\n /**\n * Label to display for the value\n */\n label: {\n type: String,\n required: true,\n },\n /**\n * Text to display in info icon tooltip in the label to display for the value\n */\n labelInfo: {\n type: String,\n default: undefined,\n },\n /**\n * Text to copy when the user clicks `Copy` icon\n */\n copy: {\n type: String,\n default: undefined,\n },\n /**\n * Function to trigger when user clicks `Search` icon\n */\n search: {\n type: Function as PropType<(event: Event) => void>,\n default: undefined,\n },\n /**\n * Text to display when the user hovers over `Search` icon\n */\n searchTooltip: {\n type: String,\n default: undefined,\n },\n },\n setup() {\n const isCondensed = inject(STRUCTURED_LIST_CONDENSED_INJECTION_KEY, false);\n const labelsWidth = inject<Ref<string>>(\n STRUCTURED_LIST_LABELS_WIDTH_INJECTION_KEY,\n ref(DEFAULT_LABELS_WIDTH)\n );\n const conditionalClasses = computed(() => ({\n 'b-structured-list-item--condensed': isCondensed,\n }));\n\n const labelTypographyVariant = computed(() => (isCondensed ? 'caption' : 'body'));\n\n return {\n // Values\n conditionalClasses,\n labelTypographyVariant,\n labelsWidth,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./structured-list-item.scss\" />\n"],"names":["STRUCTURED_LIST_CONDENSED_INJECTION_KEY","STRUCTURED_LIST_LABELS_WIDTH_INJECTION_KEY","BentoStructuredListLayoutOptions","__default__","isCondensed","inject","computedLayout","computed","props","computedLabelsWidth","provide","DEFAULT_LABELS_WIDTH","_sfc_main","defineComponent","messages","BentoButton","BentoInfoIcon","BentoTypography","Copy","SearchIcon","BentoTooltipDirective","labelsWidth","ref","conditionalClasses","labelTypographyVariant"],"mappings":";;;;;;;;;AAAa,MAAAA,IAAA,OAAA,+CAAA,GACAC,IAAA,OAAA,4CAAA,GCANC,IAAA,CAAA,SAAA,SAAA,SAAA,OAAA,GCqFHC,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA7CAC,IAAAC,EAAAL,GAAA,EAAA,GAEAM,IAAAC;AAAA,MAAuB,MAAAL,EAAA,SAAAM,EAAA,MAAA,IAAAA,EAAA,SAAA;AAAA,IACsD,GAG7EC,IAAAF,EAAA,MACIH,IACI,UAGJI,EAAA,cACI,GAAAA,EAAA,kBAGJ,GAAAF,EAAA,MAAA,MAAA,GAAA,EAAA,CAAA,IAA2C;AAG/C,WAAAI,EAAAT,GAAAQ,CAAA;;;;;;;;;;;;;;;;;;;;GCdJE,IAAA,OA2BAC,IAAAC,EAAA;AAAA,EAAA,MAAA,EAAA,UAAAC,EAAA;AAAA,EACA,MAAA;AAAA,EACA,YAAA;AAAA,IACA,aAAAC;AAAA,IACA,eAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,MAAAC;AAAA,IACA,YAAAC;AAAA,EACA;AAAA,EACA,YAAA,EAAA,uBAAAC,EAAA;AAAA,EACA,OAAA;AAAA;AAAA;AAAA;AAAA,IACA,OAAA;AAAA,MAIA,MAAA;AAAA,MACA,UAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IACA,WAAA;AAAA,MAIA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IACA,MAAA;AAAA,MAIA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IACA,QAAA;AAAA,MAIA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IACA,eAAA;AAAA,MAIA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA,EACA;AAAA,EACA,QAAA;AAEA,UAAAhB,IAAAC,EAAAL,GAAA,EAAA,GACAqB,IAAAhB;AAAA,MAAAJ;AAAA,MACAqB,EAAAX,CAAA;AAAA,IACA,GAEAY,IAAAhB,EAAA,OAAA;AAAA,MAAA,qCAAAH;AAAA,IACA,EAAA,GAGAoB,IAAAjB,EAAA,MAAAH,IAAA,YAAA,MAAA;AAEA,WAAA;AAAA;AAAA,MAAA,oBAAAmB;AAAA,MAEA,wBAAAC;AAAA,MACA,aAAAH;AAAA,IACA;AAAA,EACA;AAEA,CAAA;;;;;;;;;;;;;;;;;"}
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as t, inject as r, ref as i, computed as o } from "vue";
2
2
  import { n as a } from "./_plugin-vue2_normalizer.71e2aa87.js";
3
- import "../assets/index25.css";
3
+ import "../assets/index22.css";
4
4
  const c = Symbol("divider inverse style injection key"), d = {}, l = /* @__PURE__ */ t({
5
5
  ...d,
6
6
  __name: "divider",
@@ -29,4 +29,4 @@ export {
29
29
  C as B,
30
30
  c as D
31
31
  };
32
- //# sourceMappingURL=index.7e9406c4.js.map
32
+ //# sourceMappingURL=index.25de3ab8.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.7e9406c4.js","sources":["../../src/components/divider/divider.keys.ts","../../src/components/divider/divider.vue"],"sourcesContent":["export const DIVIDER_INVERSE_INJECTION_KEY = Symbol('divider inverse style injection key');\n","<template>\n <div class=\"b-divider\">\n <hr class=\"b-divider__horizontal-rule\" :class=\"conditionalClasses\" />\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, inject, ref } from 'vue';\n import { DIVIDER_INVERSE_INJECTION_KEY } from './divider.keys';\n\n const isInverseColorSet = inject(DIVIDER_INVERSE_INJECTION_KEY, ref(false));\n\n const conditionalClasses = computed(() => ({\n 'b-divider--inverse': isInverseColorSet.value,\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * Divider component is a thin line that helps separate content and group them visually into sections.\n *\n * @example\n * import { BentoDivider } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoDivider },\n * template: `<bento-divider />`\n * }\n */\n\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./divider.scss\" />\n"],"names":["DIVIDER_INVERSE_INJECTION_KEY","__default__","isInverseColorSet","inject","ref","conditionalClasses","computed"],"mappings":";;;AAAa,MAAAA,IAAA,OAAA,qCAAA,GC8BTC,IAAA,CAAA;;;;AApBA,UAAAC,IAAAC,EAAAH,GAAAI,EAAA,EAAA,CAAA,GAEAC,IAAAC,EAAA,OAAA;AAAA,MAA2C,sBAAAJ,EAAA;AAAA,IACC,EAAA;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.25de3ab8.js","sources":["../../src/components/divider/divider.keys.ts","../../src/components/divider/divider.vue"],"sourcesContent":["export const DIVIDER_INVERSE_INJECTION_KEY = Symbol('divider inverse style injection key');\n","<template>\n <div class=\"b-divider\">\n <hr class=\"b-divider__horizontal-rule\" :class=\"conditionalClasses\" />\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, inject, ref } from 'vue';\n import { DIVIDER_INVERSE_INJECTION_KEY } from './divider.keys';\n\n const isInverseColorSet = inject(DIVIDER_INVERSE_INJECTION_KEY, ref(false));\n\n const conditionalClasses = computed(() => ({\n 'b-divider--inverse': isInverseColorSet.value,\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * Divider component is a thin line that helps separate content and group them visually into sections.\n *\n * @example\n * import { BentoDivider } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoDivider },\n * template: `<bento-divider />`\n * }\n */\n\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./divider.scss\" />\n"],"names":["DIVIDER_INVERSE_INJECTION_KEY","__default__","isInverseColorSet","inject","ref","conditionalClasses","computed"],"mappings":";;;AAAa,MAAAA,IAAA,OAAA,qCAAA,GC8BTC,IAAA,CAAA;;;;AApBA,UAAAC,IAAAC,EAAAH,GAAAI,EAAA,EAAA,CAAA,GAEAC,IAAAC,EAAA,OAAA;AAAA,MAA2C,sBAAAJ,EAAA;AAAA,IACC,EAAA;;;;;;;;;;;;;;;;;;"}
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as c, computed as d } from "vue";
2
2
  import { n as E } from "./_plugin-vue2_normalizer.71e2aa87.js";
3
- import "../assets/index36.css";
3
+ import "../assets/index47.css";
4
4
  var a = /* @__PURE__ */ ((t) => (t.CAPTION = "caption", t.BODY = "body", t.SUBTITLE = "subtitle", t.TITLE = "title", t))(a || {}), e = /* @__PURE__ */ ((t) => (t.WIDE = "wide", t.STRONGER = "stronger", t.STRONGER_WIDE = "stronger-wide", t.STRONGEST = "strongest", t.STRONGEST_WIDE = "strongest-wide", t.MEDIUM = "m", t.LARGE = "l", t.MOBILE = "mobile", t))(e || {}), i = /* @__PURE__ */ ((t) => (t.H1 = "h1", t.H2 = "h2", t.H3 = "h3", t.H4 = "h4", t.H5 = "h5", t.H6 = "h6", t.DIV = "div", t.PARAGRAPH = "p", t.SPAN = "span", t))(i || {});
5
5
  const T = ["development", "DEVELOPMENT", "dev", "DEV"], _ = () => T.includes(process.env.NODE_ENV);
6
6
  function r(...t) {
@@ -124,4 +124,4 @@ export {
124
124
  _ as i,
125
125
  r as p
126
126
  };
127
- //# sourceMappingURL=index.f64eee15.js.map
127
+ //# sourceMappingURL=index.2f00afab.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.f64eee15.js","sources":["../../src/components/typography/typography.types.ts","../../src/utils/ts/dev-environment.ts","../../src/utils/ts/print-development-warning.ts","../../src/utils/ts/deprecate.ts","../../src/components/typography/typography.vue"],"sourcesContent":["/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoTypographyVariant {\n CAPTION = 'caption',\n BODY = 'body',\n /** @deprecated Use \"TITLE\" instead. */\n SUBTITLE = 'subtitle',\n TITLE = 'title',\n}\n\nexport enum BentoTypographyModifier {\n WIDE = 'wide',\n STRONGER = 'stronger',\n STRONGER_WIDE = 'stronger-wide',\n STRONGEST = 'strongest',\n STRONGEST_WIDE = 'strongest-wide',\n MEDIUM = 'm',\n LARGE = 'l',\n MOBILE = 'mobile',\n}\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoTypographyElement {\n H1 = 'h1',\n H2 = 'h2',\n H3 = 'h3',\n H4 = 'h4',\n H5 = 'h5',\n H6 = 'h6',\n DIV = 'div',\n PARAGRAPH = 'p',\n SPAN = 'span',\n}\n","const DEV_ENVIROMENT_NAMES = ['development', 'DEVELOPMENT', 'dev', 'DEV'];\n\nexport const isDevelopmentEnviroment = () => DEV_ENVIROMENT_NAMES.includes(process.env.NODE_ENV);\n","import { isDevelopmentEnviroment } from '@/utils/ts/dev-environment';\n\n/**\n * Prints console.warn messages in development mode only.\n *\n * @see console.warn for what parameters you can use\n */\n\nexport function printDevelopmentWarning(...args: Parameters<typeof console.warn>) {\n if (isDevelopmentEnviroment()) {\n // eslint-disable-next-line no-console\n console.warn(...args);\n }\n}\n","import { printDevelopmentWarning } from './print-development-warning';\n\nconst DEPRECATION_STYLES = ['color: red', 'background: yellow'].join(';');\nconst shownMessages = new Set<string>();\n\n/**\n * Informs users about the deprecations in development mode only.\n *\n * @param title Indicates what is being deprecated.\n * @param deprecationMessage How to avoid the deprecation by giving an example of the alternatives. Backticks can be used to multi-line the message.\n * @param toBeRemovedInVersion The version it will be removed. Must be in X.Y.Z format.\n */\nexport function deprecate(title: string, deprecationMessage: string, toBeRemovedInVersion: string) {\n // If the message is already showing, don't show it again\n if (!shownMessages.has(title)) {\n printDevelopmentWarning(`%cDEPRECATED:\\x1b[0m ${title}`, DEPRECATION_STYLES);\n // Format multi-line descriptions with the backtick\n printDevelopmentWarning(`${deprecationMessage.replaceAll(' ', '').trim()}`);\n printDevelopmentWarning(`To be removed in: %c${toBeRemovedInVersion}`, DEPRECATION_STYLES);\n shownMessages.add(title);\n }\n}\n\n/**\n * Reset shownMessages set\n *\n * @deprecated For testing purposes only. Do not use.\n */\nexport function resetShownMessages() {\n shownMessages.clear();\n}\n","<template>\n <component :is=\"el\" class=\"b-typography\" :class=\"conditionalClasses\" data-testid=\"typography\">\n <slot />\n </component>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType } from 'vue';\n import { BentoTypographyElement, BentoTypographyModifier, BentoTypographyVariant } from './typography.types';\n import { deprecate } from '@/utils/ts/deprecate';\n\n /**\n * The Typography component makes it easy to apply a default set of font weights, sizes and other text styles\n * easily to text. The variants and properties match with those found in Figma.\n *\n * For example, seeing text with the typography styling of\n *\n * @example\n * import { BentoTypography } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoTypography },\n * template: `\n * <bento-typography>\n * ... text content\n * </bento-typography>\n * `\n * }\n */\n export default defineComponent({\n name: 'bento-typography',\n inheritAttrs: true,\n props: {\n /**\n * Sets the HTML DOM element.\n * @values h1, h2, h3, h4, h5, h6, div, p, span\n */\n el: {\n type: String as PropType<BentoTypographyElement | `${BentoTypographyElement}`>,\n default: BentoTypographyElement.PARAGRAPH,\n validator: (value: BentoTypographyElement) => Object.values(BentoTypographyElement).includes(value),\n },\n\n /**\n * Adds the stronger class modifier.\n * Applicable to Caption, Body and Subtitle variants.\n */\n stronger: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Adds the strongest class modifier.\n * Applicable to Caption, Body and Subtitle variants.\n */\n strongest: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets the type of typography variant.\n * @values caption, body, title.\n */\n variant: {\n type: String as PropType<BentoTypographyVariant | `${BentoTypographyVariant}`>,\n default: BentoTypographyVariant.BODY,\n validator: (value: BentoTypographyVariant) => Object.values(BentoTypographyVariant).includes(value),\n },\n\n /**\n * Adds the medium class modifier.\n * Applicable to the Title variant.\n */\n medium: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Adds the large class modifier.\n * Applicable to the Title variant.\n */\n large: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Adds the medium class modifier.\n * Applicable to tje Body variant.\n */\n wide: {\n type: Boolean,\n default: false,\n },\n },\n setup(props) {\n if (props.variant === BentoTypographyVariant.SUBTITLE) {\n deprecate(\n 'BentoTypography \"subtitle\" variant (BentoTypographyVariant.SUBTITLE)',\n `Use the \"title\" or \"BentoTypographyVariant.TITLE\" variant and (optionally) combine it with a size property. e.g. medium / large.\n <bento-typography :variant=\"BentoTypographyVariant.TITLE\" medium>`,\n '2.0.0'\n );\n }\n\n const conditionalClasses = computed(() => ({\n // Caption\n [`b-typography--${BentoTypographyVariant.CAPTION}`]: props.variant === BentoTypographyVariant.CAPTION,\n [`b-typography--${BentoTypographyVariant.CAPTION}-${BentoTypographyModifier.WIDE}`]:\n props.variant === BentoTypographyVariant.CAPTION && props.wide,\n [`b-typography--${BentoTypographyVariant.CAPTION}-${BentoTypographyModifier.STRONGER}`]:\n props.variant === BentoTypographyVariant.CAPTION && props.stronger,\n\n // Body\n [`b-typography--${BentoTypographyVariant.BODY}`]: props.variant === BentoTypographyVariant.BODY,\n [`b-typography--${BentoTypographyVariant.BODY}-${BentoTypographyModifier.WIDE}`]:\n props.variant === BentoTypographyVariant.BODY && props.wide,\n [`b-typography--${BentoTypographyVariant.BODY}-${BentoTypographyModifier.STRONGER}`]:\n props.variant === BentoTypographyVariant.BODY && props.stronger,\n [`b-typography--${BentoTypographyVariant.BODY}-${BentoTypographyModifier.STRONGEST}`]:\n props.variant === BentoTypographyVariant.BODY && props.strongest,\n\n // Subtitle\n [`b-typography--${BentoTypographyVariant.SUBTITLE}`]: props.variant === BentoTypographyVariant.SUBTITLE,\n [`b-typography--${BentoTypographyVariant.SUBTITLE}-${BentoTypographyModifier.STRONGER}`]:\n props.variant === BentoTypographyVariant.SUBTITLE && props.stronger,\n\n // Title\n [`b-typography--${BentoTypographyVariant.TITLE}`]:\n props.variant === BentoTypographyVariant.TITLE && !props.medium && !props.large,\n [`b-typography--${BentoTypographyVariant.TITLE}-${BentoTypographyModifier.MEDIUM}`]:\n props.variant === BentoTypographyVariant.TITLE && props.medium,\n [`b-typography--${BentoTypographyVariant.TITLE}-${BentoTypographyModifier.LARGE}`]:\n props.variant === BentoTypographyVariant.TITLE && props.large,\n }));\n\n return {\n conditionalClasses,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./typography.scss\" />\n<style lang=\"scss\">\n // Reset preset browser margin on all elements but allow for it to be overriden\n .b-typography {\n margin: 0;\n }\n</style>\n"],"names":["BentoTypographyVariant","BentoTypographyVariant2","BentoTypographyModifier","BentoTypographyModifier2","BentoTypographyElement","BentoTypographyElement2","DEV_ENVIROMENT_NAMES","isDevelopmentEnviroment","printDevelopmentWarning","args","DEPRECATION_STYLES","shownMessages","deprecate","title","deprecationMessage","toBeRemovedInVersion","_sfc_main","defineComponent","value","props","computed"],"mappings":";;;AAGY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,UAAA,WACAA,EAAA,OAAA,QAEAA,EAAA,WAAA,YACAA,EAAA,QAAA,SALQA,IAAAD,KAAA,CAAA,CAAA,GAQAE,IAAA,kBAAAC,OACRA,EAAA,OAAA,QACAA,EAAA,WAAA,YACAA,EAAA,gBAAA,iBACAA,EAAA,YAAA,aACAA,EAAA,iBA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A,iBAAAnB,EAAA,UAAA,GAAAmB,EAAA,YAAAnB,EAAA;AAAA,QAGA,CAAA,iBAAAA,EAAA,YAAAE,EAAA,UAAA,GAAAiB,EAAA,YAAAnB,EAAA,YAAAmB,EAAA;AAAA;AAAA,QAEA,CAAA,iBAAAnB,EAAA,OAAA,GAAAmB,EAAA,YAAAnB,EAAA,SAAA,CAAAmB,EAAA,UAAA,CAAAA,EAAA;AAAA,QAIA,CAAA,iBAAAnB,EAAA,SAAAE,EAAA,QAAA,GAAAiB,EAAA,YAAAnB,EAAA,SAAAmB,EAAA;AAAA,QAEA,CAAA,iBAAAnB,EAAA,SAAAE,EAAA,OAAA,GAAAiB,EAAA,YAAAnB,EAAA,SAAAmB,EAAA;AAAA,MAEA,EAAA;AAAA,IAIA;AAAA,EACA;AAEA,CAAA;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.2f00afab.js","sources":["../../src/components/typography/typography.types.ts","../../src/utils/ts/dev-environment.ts","../../src/utils/ts/print-development-warning.ts","../../src/utils/ts/deprecate.ts","../../src/components/typography/typography.vue"],"sourcesContent":["/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoTypographyVariant {\n CAPTION = 'caption',\n BODY = 'body',\n /** @deprecated Use \"TITLE\" instead. */\n SUBTITLE = 'subtitle',\n TITLE = 'title',\n}\n\nexport enum BentoTypographyModifier {\n WIDE = 'wide',\n STRONGER = 'stronger',\n STRONGER_WIDE = 'stronger-wide',\n STRONGEST = 'strongest',\n STRONGEST_WIDE = 'strongest-wide',\n MEDIUM = 'm',\n LARGE = 'l',\n MOBILE = 'mobile',\n}\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoTypographyElement {\n H1 = 'h1',\n H2 = 'h2',\n H3 = 'h3',\n H4 = 'h4',\n H5 = 'h5',\n H6 = 'h6',\n DIV = 'div',\n PARAGRAPH = 'p',\n SPAN = 'span',\n}\n","const DEV_ENVIROMENT_NAMES = ['development', 'DEVELOPMENT', 'dev', 'DEV'];\n\nexport const isDevelopmentEnviroment = () => DEV_ENVIROMENT_NAMES.includes(process.env.NODE_ENV);\n","import { isDevelopmentEnviroment } from '@/utils/ts/dev-environment';\n\n/**\n * Prints console.warn messages in development mode only.\n *\n * @see console.warn for what parameters you can use\n */\n\nexport function printDevelopmentWarning(...args: Parameters<typeof console.warn>) {\n if (isDevelopmentEnviroment()) {\n // eslint-disable-next-line no-console\n console.warn(...args);\n }\n}\n","import { printDevelopmentWarning } from './print-development-warning';\n\nconst DEPRECATION_STYLES = ['color: red', 'background: yellow'].join(';');\nconst shownMessages = new Set<string>();\n\n/**\n * Informs users about the deprecations in development mode only.\n *\n * @param title Indicates what is being deprecated.\n * @param deprecationMessage How to avoid the deprecation by giving an example of the alternatives. Backticks can be used to multi-line the message.\n * @param toBeRemovedInVersion The version it will be removed. Must be in X.Y.Z format.\n */\nexport function deprecate(title: string, deprecationMessage: string, toBeRemovedInVersion: string) {\n // If the message is already showing, don't show it again\n if (!shownMessages.has(title)) {\n printDevelopmentWarning(`%cDEPRECATED:\\x1b[0m ${title}`, DEPRECATION_STYLES);\n // Format multi-line descriptions with the backtick\n printDevelopmentWarning(`${deprecationMessage.replaceAll(' ', '').trim()}`);\n printDevelopmentWarning(`To be removed in: %c${toBeRemovedInVersion}`, DEPRECATION_STYLES);\n shownMessages.add(title);\n }\n}\n\n/**\n * Reset shownMessages set\n *\n * @deprecated For testing purposes only. Do not use.\n */\nexport function resetShownMessages() {\n shownMessages.clear();\n}\n","<template>\n <component :is=\"el\" class=\"b-typography\" :class=\"conditionalClasses\" data-testid=\"typography\">\n <slot />\n </component>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType } from 'vue';\n import { BentoTypographyElement, BentoTypographyModifier, BentoTypographyVariant } from './typography.types';\n import { deprecate } from '@/utils/ts/deprecate';\n\n /**\n * The Typography component makes it easy to apply a default set of font weights, sizes and other text styles\n * easily to text. The variants and properties match with those found in Figma.\n *\n * For example, seeing text with the typography styling of\n *\n * @example\n * import { BentoTypography } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoTypography },\n * template: `\n * <bento-typography>\n * ... text content\n * </bento-typography>\n * `\n * }\n */\n export default defineComponent({\n name: 'bento-typography',\n inheritAttrs: true,\n props: {\n /**\n * Sets the HTML DOM element.\n * @values h1, h2, h3, h4, h5, h6, div, p, span\n */\n el: {\n type: String as PropType<BentoTypographyElement | `${BentoTypographyElement}`>,\n default: BentoTypographyElement.PARAGRAPH,\n validator: (value: BentoTypographyElement) => Object.values(BentoTypographyElement).includes(value),\n },\n\n /**\n * Adds the stronger class modifier.\n * Applicable to Caption, Body and Subtitle variants.\n */\n stronger: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Adds the strongest class modifier.\n * Applicable to Caption, Body and Subtitle variants.\n */\n strongest: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets the type of typography variant.\n * @values caption, body, title.\n */\n variant: {\n type: String as PropType<BentoTypographyVariant | `${BentoTypographyVariant}`>,\n default: BentoTypographyVariant.BODY,\n validator: (value: BentoTypographyVariant) => Object.values(BentoTypographyVariant).includes(value),\n },\n\n /**\n * Adds the medium class modifier.\n * Applicable to the Title variant.\n */\n medium: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Adds the large class modifier.\n * Applicable to the Title variant.\n */\n large: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Adds the medium class modifier.\n * Applicable to tje Body variant.\n */\n wide: {\n type: Boolean,\n default: false,\n },\n },\n setup(props) {\n if (props.variant === BentoTypographyVariant.SUBTITLE) {\n deprecate(\n 'BentoTypography \"subtitle\" variant (BentoTypographyVariant.SUBTITLE)',\n `Use the \"title\" or \"BentoTypographyVariant.TITLE\" variant and (optionally) combine it with a size property. e.g. medium / large.\n <bento-typography :variant=\"BentoTypographyVariant.TITLE\" medium>`,\n '2.0.0'\n );\n }\n\n const conditionalClasses = computed(() => ({\n // Caption\n [`b-typography--${BentoTypographyVariant.CAPTION}`]: props.variant === BentoTypographyVariant.CAPTION,\n [`b-typography--${BentoTypographyVariant.CAPTION}-${BentoTypographyModifier.WIDE}`]:\n props.variant === BentoTypographyVariant.CAPTION && props.wide,\n [`b-typography--${BentoTypographyVariant.CAPTION}-${BentoTypographyModifier.STRONGER}`]:\n props.variant === BentoTypographyVariant.CAPTION && props.stronger,\n\n // Body\n [`b-typography--${BentoTypographyVariant.BODY}`]: props.variant === BentoTypographyVariant.BODY,\n [`b-typography--${BentoTypographyVariant.BODY}-${BentoTypographyModifier.WIDE}`]:\n props.variant === BentoTypographyVariant.BODY && props.wide,\n [`b-typography--${BentoTypographyVariant.BODY}-${BentoTypographyModifier.STRONGER}`]:\n props.variant === BentoTypographyVariant.BODY && props.stronger,\n [`b-typography--${BentoTypographyVariant.BODY}-${BentoTypographyModifier.STRONGEST}`]:\n props.variant === BentoTypographyVariant.BODY && props.strongest,\n\n // Subtitle\n [`b-typography--${BentoTypographyVariant.SUBTITLE}`]: props.variant === BentoTypographyVariant.SUBTITLE,\n [`b-typography--${BentoTypographyVariant.SUBTITLE}-${BentoTypographyModifier.STRONGER}`]:\n props.variant === BentoTypographyVariant.SUBTITLE && props.stronger,\n\n // Title\n [`b-typography--${BentoTypographyVariant.TITLE}`]:\n props.variant === BentoTypographyVariant.TITLE && !props.medium && !props.large,\n [`b-typography--${BentoTypographyVariant.TITLE}-${BentoTypographyModifier.MEDIUM}`]:\n props.variant === BentoTypographyVariant.TITLE && props.medium,\n [`b-typography--${BentoTypographyVariant.TITLE}-${BentoTypographyModifier.LARGE}`]:\n props.variant === BentoTypographyVariant.TITLE && props.large,\n }));\n\n return {\n conditionalClasses,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./typography.scss\" />\n<style lang=\"scss\">\n // Reset preset browser margin on all elements but allow for it to be overriden\n .b-typography {\n margin: 0;\n }\n</style>\n"],"names":["BentoTypographyVariant","BentoTypographyVariant2","BentoTypographyModifier","BentoTypographyModifier2","BentoTypographyElement","BentoTypographyElement2","DEV_ENVIROMENT_NAMES","isDevelopmentEnviroment","printDevelopmentWarning","args","DEPRECATION_STYLES","shownMessages","deprecate","title","deprecationMessage","toBeRemovedInVersion","_sfc_main","defineComponent","value","props","computed"],"mappings":";;;AAGY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,UAAA,WACAA,EAAA,OAAA,QAEAA,EAAA,WAAA,YACAA,EAAA,QAAA,SALQA,IAAAD,KAAA,CAAA,CAAA,GAQAE,IAAA,kBAAAC,OACRA,EAAA,OAAA,QACAA,EAAA,WAAA,YACAA,EAAA,gBAAA,iBACAA,EAAA,YAAA,aACAA,EAAA,iBAAA,kBACAA,EAAA,SAAA,KACAA,EAAA,QAAA,KACAA,EAAA,SAAA,UARQA,IAAAD,KAAA,CAAA,CAAA,GAcAE,IAAA,kBAAAC,OACRA,EAAA,KAAA,MACAA,EAAA,KAAA,MACAA,EAAA,KAAA,MACAA,EAAA,KAAA,MACAA,EAAA,KAAA,MACAA,EAAA,KAAA,MACAA,EAAA,MAAA,OACAA,EAAA,YAAA,KACAA,EAAA,OAAA,QATQA,IAAAD,KAAA,CAAA,CAAA;ACzBZ,MAAAE,IAAA,CAAA,eAAA,eAAA,OAAA,KAAA,GAEOC,IAAA,MAAAD,EAAA,SAAA,QAAA,IAAA,QAAA;ACMA,SAAAE,KAAAC,GAAA;AACH,EAAAF,EAAA,KAEI,QAAA,KAAA,GAAAE,CAAA;AAER;ACXA,MAAAC,IAAA,CAAA,cAAA,oBAAA,EAAA,KAAA,GAAA,GACAC,IAAA,oBAAA,IAAA;AASgB,SAAAC,EAAAC,GAAAC,GAAAC,GAAA;AAEZ,EAAAJ,EAAA,IAAAE,CAAA,MACIL,EAAA,wBAAAK,KAAAH,CAAA,GAEAF,EAAA,GAAAM,EAAA,WAAA,MAAA,EAAA,EAAA,KAAA,GAAA,GACAN,EAAA,uBAAAO,KAAAL,CAAA,GACAC,EAAA,IAAAE,CAAA;AAER;ACQA,MAAAG,IAAAC,EAA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AA,WAAAmB,EAAA;AAAA;AAAA,QAEA,CAAA,iBAAAnB,EAAA,MAAA,GAAAmB,EAAA,YAAAnB,EAAA;AAAA,QAGA,CAAA,iBAAAA,EAAA,QAAAE,EAAA,MAAA,GAAAiB,EAAA,YAAAnB,EAAA,QAAAmB,EAAA;AAAA,QAEA,CAAA,iBAAAnB,EAAA,QAAAE,EAAA,UAAA,GAAAiB,EAAA,YAAAnB,EAAA,QAAAmB,EAAA;AAAA,QAEA,CAAA,iBAAAnB,EAAA,QAAAE,EAAA,WAAA,GAAAiB,EAAA,YAAAnB,EAAA,QAAAmB,EAAA;AAAA;AAAA,QAEA,CAAA,iBAAAnB,EAAA,UAAA,GAAAmB,EAAA,YAAAnB,EAAA;AAAA,QAGA,CAAA,iBAAAA,EAAA,YAAAE,EAAA,UAAA,GAAAiB,EAAA,YAAAnB,EAAA,YAAAmB,EAAA;AAAA;AAAA,QAEA,CAAA,iBAAAnB,EAAA,OAAA,GAAAmB,EAAA,YAAAnB,EAAA,SAAA,CAAAmB,EAAA,UAAA,CAAAA,EAAA;AAAA,QAIA,CAAA,iBAAAnB,EAAA,SAAAE,EAAA,QAAA,GAAAiB,EAAA,YAAAnB,EAAA,SAAAmB,EAAA;AAAA,QAEA,CAAA,iBAAAnB,EAAA,SAAAE,EAAA,OAAA,GAAAiB,EAAA,YAAAnB,EAAA,SAAAmB,EAAA;AAAA,MAEA,EAAA;AAAA,IAIA;AAAA,EACA;AAEA,CAAA;;;;;;;;;;;;;;;"}
@@ -1,26 +1,26 @@
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.4c011bf9.js";
3
- import { B as Ee } from "./index.f64eee15.js";
4
- import { c as je } from "./dropdown-default-textbox.a55b9de3.js";
2
+ import { a as He } from "./index.de9a552e.js";
3
+ import { B as Ee } from "./index.2f00afab.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.e1f51235.js";
6
+ import { t as se, f as $ } from "./index.af17c8ac.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 Ke, D as E } from "./date-input.9186a0bf.js";
10
- import { u as ze } 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 Je } from "../input-field.js";
13
- import { B as Qe } from "./dropdown.7ad3a860.js";
14
- import { BentoSegmentedControl as Xe } from "../segmented-control.js";
11
+ import { BentoInputField as ze } from "../input-field.js";
12
+ import { B as Je } from "./dropdown.9abc124c.js";
13
+ import { BentoSegmentedControl as Qe } from "../segmented-control.js";
15
14
  import { d as z } from "./debounce.b5ef6acf.js";
16
- import { u as Ze } from "./use-has-slot.fbeb19ec.js";
17
- import { s as H, c as ge, i as B, d as et, e as ve, f as tt, g as _e, h as at, j as nt, C as F, u as rt } from "./calendar.ce3f34b7.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.943ea7c3.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 st, F as ot } from "./error-message.775f9114.js";
20
+ import { c as rt } from "./dropdown-default-textbox.b4f19086.js";
21
+ import { E as st, F as ot } from "./error-message.3d436de3.js";
22
22
  import { B as it } from "./directive.0408e565.js";
23
- import "../assets/index39.css";
23
+ import "../assets/index31.css";
24
24
  function Re(t, e) {
25
25
  Q(2, arguments);
26
26
  var n = j(t), d = j(e);
@@ -52,13 +52,13 @@ const ct = ({
52
52
  D = H(l.earliest);
53
53
  else {
54
54
  const f = ge(D, { weekStartsOn: t });
55
- B(D, f) || (D = H(et(ve(D, { weekStartsOn: t }), 1)));
55
+ B(D, f) || (D = H(Ze(ve(D, { weekStartsOn: t }), 1)));
56
56
  }
57
57
  if (l.latest)
58
58
  r = O(l.latest);
59
59
  else {
60
60
  const f = ve(r, { weekStartsOn: t });
61
- B(r, f) || (r = O(tt(ge(r, { weekStartsOn: t }), 1)));
61
+ B(r, f) || (r = O(et(ge(r, { weekStartsOn: t }), 1)));
62
62
  }
63
63
  }
64
64
  if ((l == null ? void 0 : l.type) === "monthly") {
@@ -66,13 +66,13 @@ const ct = ({
66
66
  D = H(l.earliest);
67
67
  else {
68
68
  const f = _e(D);
69
- B(D, f) || (D = _e(at(D, 1)));
69
+ B(D, f) || (D = _e(tt(D, 1)));
70
70
  }
71
71
  if (l.latest)
72
72
  r = O(l.latest);
73
73
  else {
74
74
  const f = Te(r);
75
- B(r, f) || (r = Te(nt(r, 1)));
75
+ B(r, f) || (r = Te(at(r, 1)));
76
76
  }
77
77
  }
78
78
  return { min: D, max: r };
@@ -122,9 +122,9 @@ const mt = /[\d]/, ft = /^\d{2}$/, pt = /^\d{2}:\d{2}$/, gt = (t) => {
122
122
  i18n: { messages: vt },
123
123
  name: "date-range-picker-calendar",
124
124
  components: {
125
- BentoDropdown: Qe,
126
- BentoInputField: Je,
127
- BentoSegmentedControl: Xe,
125
+ BentoDropdown: Je,
126
+ BentoInputField: ze,
127
+ BentoSegmentedControl: Qe,
128
128
  BentoTypography: Ee,
129
129
  Calendar: F
130
130
  },
@@ -230,7 +230,7 @@ const mt = /[\d]/, ft = /^\d{2}$/, pt = /^\d{2}:\d{2}$/, gt = (t) => {
230
230
  adjustEndDateInputForWeekly: _,
231
231
  adjustStartDateInputForMonthly: X,
232
232
  adjustEndDateInputForMonthly: Z
233
- } = rt(t.firstDayOfWeek), { savedRanges: R, saveRange: le, resetSavedRanges: ee } = Dt(), C = () => {
233
+ } = nt(t.firstDayOfWeek), { savedRanges: R, saveRange: le, resetSavedRanges: ee } = Dt(), C = () => {
234
234
  t != null && t.quickSelectRanges && (f.value = ne);
235
235
  }, T = (a) => a ? $(a, E.NUMERIC_DATE_YEAR_FIRST, {
236
236
  locale: D[d.value.substring(0, 2)] || S
@@ -341,7 +341,7 @@ const mt = /[\d]/, ft = /^\d{2}$/, pt = /^\d{2}:\d{2}$/, gt = (t) => {
341
341
  }, Ie), Fe = (a) => {
342
342
  C(), o.endDate = pe(a), he(o.endDate);
343
343
  }, Pe = (a) => {
344
- Ke(a);
344
+ je(a);
345
345
  }, Ae = z((a) => {
346
346
  if (te(a)) {
347
347
  c.value = !1, r.startDate = U(r.startDate, a);
@@ -440,7 +440,7 @@ const mt = /[\d]/, ft = /^\d{2}$/, pt = /^\d{2}:\d{2}$/, gt = (t) => {
440
440
  quickSelectRangeDefaultItems: G,
441
441
  formInputWrapperConditionalClasses: Y,
442
442
  // Methods
443
- hasSlot: Ze(n),
443
+ hasSlot: Xe(n),
444
444
  t: l,
445
445
  // Events
446
446
  onDateInput: Me,
@@ -528,7 +528,7 @@ const bt = {
528
528
  BentoTypography: Ee,
529
529
  BentoPopover: He,
530
530
  DateRangePickerCalendar: b,
531
- DropdownInputDefault: je,
531
+ DropdownInputDefault: rt,
532
532
  ErrorMessage: st,
533
533
  FieldLabel: ot
534
534
  },
@@ -619,7 +619,7 @@ const bt = {
619
619
  setup(t, { emit: e }) {
620
620
  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(
621
621
  () => t.label || d("dateRangePicker", { name: D })
622
- ), g = M(!1), P = M(null), u = M(!1), { isReadOnly: A } = ze(fe(t, "readonly"));
622
+ ), g = M(!1), P = M(null), u = M(!1), { isReadOnly: A } = Ke(fe(t, "readonly"));
623
623
  Ve(
624
624
  () => t.disabled,
625
625
  () => {
@@ -710,4 +710,4 @@ export {
710
710
  L as a,
711
711
  Re as i
712
712
  };
713
- //# sourceMappingURL=index.9e16359f.js.map
713
+ //# sourceMappingURL=index.3a8caa8d.js.map