@adyen/bento-vue3 1.22.0 → 1.23.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 (199) hide show
  1. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell/data-grid-cell.types.d.ts +9 -5
  2. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell/data-grid-cell.vue.d.ts +15 -0
  3. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.types.d.ts +1 -0
  4. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +18 -0
  5. package/dist/@types/packages/vue2/src/components/data-grid/composables/index.d.ts +1 -0
  6. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-calculate-column-width/use-calculate-column-width.d.ts +1 -0
  7. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-hovering/index.d.ts +2 -0
  8. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-hovering/use-column-hovering.d.ts +53 -0
  9. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-hovering/use-column-hovering.types.d.ts +12 -0
  10. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-config-settings/use-config-settings.d.ts +2 -99
  11. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-config-settings/use-config.settings.types.d.ts +7 -0
  12. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-resizer.d.ts +47 -1
  13. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +48 -8
  14. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +48 -24
  15. package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.types.d.ts +12 -2
  16. package/dist/@types/packages/vue2/src/components/menu/menu.types.d.ts +1 -1
  17. package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +1 -0
  18. package/dist/@types/packages/vue2/src/components/stepper/composables/index.d.ts +2 -0
  19. package/dist/@types/packages/vue2/src/components/stepper/composables/use-step-register/use-step-register.d.ts +11 -0
  20. package/dist/@types/packages/vue2/src/components/stepper/stepper.types.d.ts +1 -0
  21. package/dist/accordion.js +2 -2
  22. package/dist/action-bar.js +6 -6
  23. package/dist/alert.js +3 -3
  24. package/dist/assets/base-modal.css +1 -1
  25. package/dist/assets/button.css +1 -1
  26. package/dist/assets/dialog-page.css +1 -1
  27. package/dist/assets/index10.css +1 -1
  28. package/dist/assets/index11.css +1 -1
  29. package/dist/assets/index12.css +1 -1
  30. package/dist/assets/index13.css +1 -1
  31. package/dist/assets/index14.css +1 -1
  32. package/dist/assets/index15.css +1 -1
  33. package/dist/assets/index16.css +1 -1
  34. package/dist/assets/index17.css +1 -1
  35. package/dist/assets/index18.css +1 -1
  36. package/dist/assets/index19.css +1 -1
  37. package/dist/assets/index2.css +1 -1
  38. package/dist/assets/index20.css +1 -1
  39. package/dist/assets/index21.css +1 -1
  40. package/dist/assets/index22.css +1 -1
  41. package/dist/assets/index23.css +1 -1
  42. package/dist/assets/index24.css +1 -1
  43. package/dist/assets/index25.css +1 -1
  44. package/dist/assets/index26.css +1 -1
  45. package/dist/assets/index27.css +1 -1
  46. package/dist/assets/index28.css +1 -1
  47. package/dist/assets/index29.css +1 -1
  48. package/dist/assets/index3.css +1 -1
  49. package/dist/assets/index30.css +1 -1
  50. package/dist/assets/index31.css +1 -1
  51. package/dist/assets/index32.css +1 -1
  52. package/dist/assets/index33.css +1 -1
  53. package/dist/assets/index34.css +1 -1
  54. package/dist/assets/index35.css +1 -1
  55. package/dist/assets/index36.css +1 -1
  56. package/dist/assets/index37.css +1 -1
  57. package/dist/assets/index39.css +1 -1
  58. package/dist/assets/index4.css +1 -1
  59. package/dist/assets/index40.css +1 -1
  60. package/dist/assets/index41.css +1 -1
  61. package/dist/assets/index42.css +1 -1
  62. package/dist/assets/index43.css +1 -1
  63. package/dist/assets/index44.css +1 -1
  64. package/dist/assets/index45.css +1 -1
  65. package/dist/assets/index46.css +1 -1
  66. package/dist/assets/index47.css +1 -1
  67. package/dist/assets/index48.css +1 -1
  68. package/dist/assets/index5.css +1 -1
  69. package/dist/assets/index6.css +1 -1
  70. package/dist/assets/index7.css +1 -1
  71. package/dist/assets/index8.css +1 -1
  72. package/dist/assets/index9.css +1 -1
  73. package/dist/avatar-image.js +1 -1
  74. package/dist/button.js +5 -5
  75. package/dist/card.js +3 -3
  76. package/dist/checkbox.js +5 -5
  77. package/dist/chunks/{base-button.86be8130.js → base-button.13df4e44.js} +2 -2
  78. package/dist/chunks/{base-button.86be8130.js.map → base-button.13df4e44.js.map} +1 -1
  79. package/dist/chunks/{base-modal.01333c00.js → base-modal.30bce990.js} +6 -6
  80. package/dist/chunks/{base-modal.01333c00.js.map → base-modal.30bce990.js.map} +1 -1
  81. package/dist/chunks/{button-actions-with-menu.df95130d.js → button-actions-with-menu.a5d2bb13.js} +4 -4
  82. package/dist/chunks/{button-actions-with-menu.df95130d.js.map → button-actions-with-menu.a5d2bb13.js.map} +1 -1
  83. package/dist/chunks/{button-actions.bcc9dcc7.js → button-actions.ec3c649c.js} +3 -3
  84. package/dist/chunks/{button-actions.bcc9dcc7.js.map → button-actions.ec3c649c.js.map} +1 -1
  85. package/dist/chunks/{button.a378e7ab.js → button.e965bf53.js} +3 -3
  86. package/dist/chunks/{button.a378e7ab.js.map → button.e965bf53.js.map} +1 -1
  87. package/dist/chunks/{calendar.891a60a9.js → calendar.52fe4032.js} +4 -4
  88. package/dist/chunks/{calendar.891a60a9.js.map → calendar.52fe4032.js.map} +1 -1
  89. package/dist/chunks/{checkbox.9753e9d6.js → checkbox.1442f41a.js} +3 -3
  90. package/dist/chunks/{checkbox.9753e9d6.js.map → checkbox.1442f41a.js.map} +1 -1
  91. package/dist/chunks/{controls-group.84981503.js → controls-group.1f29b602.js} +3 -3
  92. package/dist/chunks/{controls-group.84981503.js.map → controls-group.1f29b602.js.map} +1 -1
  93. package/dist/chunks/{copy.86eb5d86.js → copy.d052f444.js} +4 -4
  94. package/dist/chunks/{copy.86eb5d86.js.map → copy.d052f444.js.map} +1 -1
  95. package/dist/chunks/{dialog-page.ce02932b.js → dialog-page.d505c5ec.js} +3 -3
  96. package/dist/chunks/{dialog-page.ce02932b.js.map → dialog-page.d505c5ec.js.map} +1 -1
  97. package/dist/chunks/{dropdown-default-textbox.91ad6585.js → dropdown-default-textbox.e0ca5afb.js} +136 -116
  98. package/dist/chunks/dropdown-default-textbox.e0ca5afb.js.map +1 -0
  99. package/dist/chunks/{dropdown.6c010045.js → dropdown.257691c0.js} +14 -15
  100. package/dist/chunks/{dropdown.6c010045.js.map → dropdown.257691c0.js.map} +1 -1
  101. package/dist/chunks/{error-message.498811e4.js → error-message.56247bcc.js} +2 -2
  102. package/dist/chunks/{error-message.498811e4.js.map → error-message.56247bcc.js.map} +1 -1
  103. package/dist/chunks/{fixed-scroller.51b63488.js → fixed-scroller.47546775.js} +2 -2
  104. package/dist/chunks/{fixed-scroller.51b63488.js.map → fixed-scroller.47546775.js.map} +1 -1
  105. package/dist/chunks/{footer-actions.573307ed.js → footer-actions.3c2dbf43.js} +4 -4
  106. package/dist/chunks/{footer-actions.573307ed.js.map → footer-actions.3c2dbf43.js.map} +1 -1
  107. package/dist/chunks/{index.fb0e9e1a.js → index.08d813e2.js} +6 -6
  108. package/dist/chunks/{index.fb0e9e1a.js.map → index.08d813e2.js.map} +1 -1
  109. package/dist/chunks/{index.19dab2ef.js → index.0e01e0b2.js} +3 -3
  110. package/dist/chunks/{index.19dab2ef.js.map → index.0e01e0b2.js.map} +1 -1
  111. package/dist/chunks/{index.c4f8460d.js → index.10c69f39.js} +187 -187
  112. package/dist/chunks/index.10c69f39.js.map +1 -0
  113. package/dist/chunks/{index.037ae52f.js → index.44f2aca7.js} +2 -2
  114. package/dist/chunks/{index.037ae52f.js.map → index.44f2aca7.js.map} +1 -1
  115. package/dist/chunks/{index.9c423f37.js → index.4fb57ba0.js} +6 -6
  116. package/dist/chunks/{index.9c423f37.js.map → index.4fb57ba0.js.map} +1 -1
  117. package/dist/chunks/{index.da4cb1b8.js → index.56c13d2c.js} +16 -17
  118. package/dist/chunks/{index.da4cb1b8.js.map → index.56c13d2c.js.map} +1 -1
  119. package/dist/chunks/{index.d6a0cf32.js → index.824101bb.js} +2 -2
  120. package/dist/chunks/{index.d6a0cf32.js.map → index.824101bb.js.map} +1 -1
  121. package/dist/chunks/{index.6e7e9ac6.js → index.99c63a74.js} +2 -2
  122. package/dist/chunks/{index.6e7e9ac6.js.map → index.99c63a74.js.map} +1 -1
  123. package/dist/chunks/{index.e2793c20.js → index.9aaed799.js} +3 -3
  124. package/dist/chunks/{index.e2793c20.js.map → index.9aaed799.js.map} +1 -1
  125. package/dist/chunks/{index.030fb327.js → index.bf4a116b.js} +20 -19
  126. package/dist/chunks/index.bf4a116b.js.map +1 -0
  127. package/dist/chunks/{index.9d65b72a.js → index.f800b267.js} +2 -2
  128. package/dist/chunks/{index.9d65b72a.js.map → index.f800b267.js.map} +1 -1
  129. package/dist/chunks/{listbox-option-tag.abedc9e0.js → listbox-option-tag.4de1659c.js} +3 -3
  130. package/dist/chunks/{listbox-option-tag.abedc9e0.js.map → listbox-option-tag.4de1659c.js.map} +1 -1
  131. package/dist/chunks/{listbox.8ce17729.js → listbox.eb436d06.js} +5 -5
  132. package/dist/chunks/{listbox.8ce17729.js.map → listbox.eb436d06.js.map} +1 -1
  133. package/dist/chunks/{loading-button.5f58f1cf.js → loading-button.6e15f27f.js} +2 -2
  134. package/dist/chunks/{loading-button.5f58f1cf.js.map → loading-button.6e15f27f.js.map} +1 -1
  135. package/dist/chunks/{payment-method.313f2635.js → payment-method.df1b62db.js} +2 -2
  136. package/dist/chunks/{payment-method.313f2635.js.map → payment-method.df1b62db.js.map} +1 -1
  137. package/dist/chunks/{tooltip.a70c9e69.js → tooltip.066fd8f7.js} +3 -3
  138. package/dist/chunks/{tooltip.a70c9e69.js.map → tooltip.066fd8f7.js.map} +1 -1
  139. package/dist/chunks/use-click-outside.941d1600.js +14 -0
  140. package/dist/chunks/use-click-outside.941d1600.js.map +1 -0
  141. package/dist/code-snippet.js +7 -7
  142. package/dist/code-snippet.js.map +1 -1
  143. package/dist/country.js +2 -2
  144. package/dist/currency.js +1 -1
  145. package/dist/data-grid-template.js +1 -1
  146. package/dist/data-grid.js +1219 -1127
  147. package/dist/data-grid.js.map +1 -1
  148. package/dist/date-picker.js +21 -22
  149. package/dist/date-picker.js.map +1 -1
  150. package/dist/date-range-picker.js +2 -2
  151. package/dist/date.js +1 -1
  152. package/dist/divider.js +1 -1
  153. package/dist/dropdown.js +7 -7
  154. package/dist/empty-state.js +3 -3
  155. package/dist/filter-bar.js +586 -593
  156. package/dist/filter-bar.js.map +1 -1
  157. package/dist/focus-trap.js +1 -1
  158. package/dist/form-layout.js +2 -2
  159. package/dist/header.js +4 -4
  160. package/dist/index.js +19 -19
  161. package/dist/info-icon.js +3 -3
  162. package/dist/input-field.js +4 -4
  163. package/dist/internal.js +8 -8
  164. package/dist/link.js +1 -1
  165. package/dist/loading-indicator.js +1 -1
  166. package/dist/menu.js +1 -1
  167. package/dist/modal-fullscreen.js +6 -6
  168. package/dist/modal.js +6 -6
  169. package/dist/pagination.js +4 -4
  170. package/dist/payment-method.js +1 -1
  171. package/dist/popover.js +1 -1
  172. package/dist/popper-container.js +1 -1
  173. package/dist/radio-group.js +4 -4
  174. package/dist/search-bar.js +2 -2
  175. package/dist/secondary-nav.js +2 -2
  176. package/dist/segmented-control.js +3 -3
  177. package/dist/selection-card.js +4 -4
  178. package/dist/sidepanel.js +6 -6
  179. package/dist/status.js +2 -2
  180. package/dist/stepper.js +152 -141
  181. package/dist/stepper.js.map +1 -1
  182. package/dist/structured-list.js +1 -1
  183. package/dist/summary-grid.js +3 -3
  184. package/dist/tabs.js +3 -3
  185. package/dist/tag.js +2 -2
  186. package/dist/textarea.js +4 -4
  187. package/dist/timeline.js +7 -7
  188. package/dist/toast.js +3 -3
  189. package/dist/toggle.js +2 -2
  190. package/dist/tutorial.js +6 -6
  191. package/dist/typography.js +1 -1
  192. package/dist/web-types.json +1 -1
  193. package/package.json +2 -2
  194. package/dist/chunks/directive.0408e565.js +0 -23
  195. package/dist/chunks/directive.0408e565.js.map +0 -1
  196. package/dist/chunks/dropdown-default-textbox.91ad6585.js.map +0 -1
  197. package/dist/chunks/index.030fb327.js.map +0 -1
  198. package/dist/chunks/index.c4f8460d.js.map +0 -1
  199. /package/dist/@types/packages/vue2/src/components/stepper/composables/{useKeyboardNavigation/useKeyboardNavigation.d.ts → use-keyboard-navigation/use-keyboard-navigation.d.ts} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"index.6e7e9ac6.js","sources":["../../../vue2/src/components/typography/typography.types.ts","../../../vue2/src/utils/ts/dev-environment.ts","../../../vue2/src/utils/ts/print-development-warning.ts","../../../vue2/src/utils/ts/deprecate.ts","../../../vue2/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","openBlock","createBlock","resolveDynamicComponent","_ctx","normalizeClass"],"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;ACQI,MAAAG,IAAAC,EAAA;AAAA,EAA+B,MAAA;AAAA,EACrB,cAAA;AAAA,EACQ,OAAA;AAAA;AAA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nB,EAAA,MAAA,GAAAmB,EAAA,YAAAnB,EAAA;AAAA,QAG6B,CAAA,iBAAAA,EAAA,QAAAE,EAAA,MAAA,GAAAiB,EAAA,YAAAnB,EAAA,QAAAmB,EAAA;AAAA,QAEhC,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,QAGoC,CAAA,iBAAAA,EAAA,YAAAE,EAAA,UAAA,GAAAiB,EAAA,YAAAnB,EAAA,YAAAmB,EAAA;AAAA;AAAA,QAEhC,CAAA,iBAAAnB,EAAA,OAAA,GAAAmB,EAAA,YAAAnB,EAAA,SAAA,CAAAmB,EAAA,UAAA,CAAAA,EAAA;AAAA,QAIe,CAAA,iBAAAnB,EAAA,SAAAE,EAAA,QAAA,GAAAiB,EAAA,YAAAnB,EAAA,SAAAmB,EAAA;AAAA,QAElB,CAAA,iBAAAnB,EAAA,SAAAE,EAAA,OAAA,GAAAiB,EAAA,YAAAnB,EAAA,SAAAmB,EAAA;AAAA,MAEA,EAAA;AAAA,IAI5D;AAAA,EACJ;AAER,CAAA;;AA9IqE,SAAAE,EAAA,GAAAC,EAAAC,EAAAC,EAAA,EAAA,GAAA;AAAA,IAAwB,OAAAC,EAAA,CAAA,gBAAAD,EAAA,kBAAA,CAAA;AAAA;;;;;;;;;"}
1
+ {"version":3,"file":"index.99c63a74.js","sources":["../../../vue2/src/components/typography/typography.types.ts","../../../vue2/src/utils/ts/dev-environment.ts","../../../vue2/src/utils/ts/print-development-warning.ts","../../../vue2/src/utils/ts/deprecate.ts","../../../vue2/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","openBlock","createBlock","resolveDynamicComponent","_ctx","normalizeClass"],"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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,EAAA;AAAA,QAIe,CAAA,iBAAAnB,EAAA,SAAAE,EAAA,QAAA,GAAAiB,EAAA,YAAAnB,EAAA,SAAAmB,EAAA;AAAA,QAElB,CAAA,iBAAAnB,EAAA,SAAAE,EAAA,OAAA,GAAAiB,EAAA,YAAAnB,EAAA,SAAAmB,EAAA;AAAA,MAEA,EAAA;AAAA,IAI5D;AAAA,EACJ;AAER,CAAA;;AA9IqE,SAAAE,EAAA,GAAAC,EAAAC,EAAAC,EAAA,EAAA,GAAA;AAAA,IAAwB,OAAAC,EAAA,CAAA,gBAAAD,EAAA,kBAAA,CAAA;AAAA;;;;;;;;;"}
@@ -1,7 +1,7 @@
1
1
  import { unref as B, computed as R, ref as j, shallowRef as qt, watch as Z, getCurrentScope as Gt, onScopeDispose as Kt, shallowReadonly as G, defineComponent as Jt, toRefs as Qt, openBlock as yt, createBlock as Zt, mergeProps as xt, withCtx as te, renderSlot as ee, createElementBlock as ne, createCommentVNode as oe } from "vue";
2
- import { B as ie } from "./index.037ae52f.js";
2
+ import { B as ie } from "./index.44f2aca7.js";
3
3
  import { _ as re } from "./_plugin-vue_export-helper.dad06003.js";
4
- import "../assets/index31.css";
4
+ import "../assets/index19.css";
5
5
  const Pt = ["top", "right", "bottom", "left"], bt = ["start", "end"], Ot = /* @__PURE__ */ Pt.reduce((t, e) => t.concat(e, e + "-" + bt[0], e + "-" + bt[1]), []), J = Math.min, X = Math.max, it = Math.round, ot = Math.floor, z = (t) => ({
6
6
  x: t,
7
7
  y: t
@@ -1331,4 +1331,4 @@ export {
1331
1331
  en as h,
1332
1332
  ye as o
1333
1333
  };
1334
- //# sourceMappingURL=index.e2793c20.js.map
1334
+ //# sourceMappingURL=index.9aaed799.js.map