@adyen/bento-vue2 1.96.1 → 1.97.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 (178) hide show
  1. package/dist/@types/index.d.ts +162 -127
  2. package/dist/action-bar.js +1 -1
  3. package/dist/ai-tag.js +1 -1
  4. package/dist/alert.js +1 -1
  5. package/dist/assets/accordion-item.css +1 -1
  6. package/dist/assets/action-bar.css +1 -1
  7. package/dist/assets/alert.css +1 -1
  8. package/dist/assets/base-modal.css +1 -1
  9. package/dist/assets/button-actions.css +1 -1
  10. package/dist/assets/calendar.css +1 -1
  11. package/dist/assets/card.css +1 -1
  12. package/dist/assets/country.css +1 -1
  13. package/dist/assets/data-grid.css +1 -1
  14. package/dist/assets/date-picker.css +1 -1
  15. package/dist/assets/date-range-picker.css +1 -1
  16. package/dist/assets/date-time-picker.css +1 -1
  17. package/dist/assets/dialog-page.css +1 -1
  18. package/dist/assets/dropdown.css +1 -1
  19. package/dist/assets/file-uploader.css +1 -1
  20. package/dist/assets/filter-bar.css +1 -1
  21. package/dist/assets/inspector.css +1 -1
  22. package/dist/assets/modal-fullscreen.css +1 -1
  23. package/dist/assets/navigation-menu-group.css +1 -1
  24. package/dist/assets/secondary-nav.css +1 -1
  25. package/dist/assets/sidepanel.css +1 -1
  26. package/dist/assets/summary-grid.css +1 -1
  27. package/dist/assets/textarea.css +1 -1
  28. package/dist/button.js +1 -1
  29. package/dist/card.js +1 -1
  30. package/dist/checkbox.js +2 -2
  31. package/dist/chunks/{action-bar.Chu-0oVy.js → action-bar.B890LCTe.js} +3 -3
  32. package/dist/chunks/{action-bar.Chu-0oVy.js.map → action-bar.B890LCTe.js.map} +1 -1
  33. package/dist/chunks/{ai-tag.DVmvni7U.js → ai-tag.C8RxACNj.js} +2 -2
  34. package/dist/chunks/{ai-tag.DVmvni7U.js.map → ai-tag.C8RxACNj.js.map} +1 -1
  35. package/dist/chunks/{alert.B4bHCE8V.js → alert.BDkEbdf4.js} +10 -10
  36. package/dist/chunks/{alert.B4bHCE8V.js.map → alert.BDkEbdf4.js.map} +1 -1
  37. package/dist/chunks/{base-modal.CC7gm9fc.js → base-modal.CDMoF3b_.js} +3 -3
  38. package/dist/chunks/{base-modal.CC7gm9fc.js.map → base-modal.CDMoF3b_.js.map} +1 -1
  39. package/dist/chunks/{button-actions-with-menu.BlOBDvdL.js → button-actions-with-menu.DqDQ_gVX.js} +2 -2
  40. package/dist/chunks/{button-actions-with-menu.BlOBDvdL.js.map → button-actions-with-menu.DqDQ_gVX.js.map} +1 -1
  41. package/dist/chunks/{button-actions.D1jRC1fs.js → button-actions.DKc63aCb.js} +122 -110
  42. package/dist/chunks/{button-actions.D1jRC1fs.js.map → button-actions.DKc63aCb.js.map} +1 -1
  43. package/dist/chunks/calendar.BckAv9N_.js +1235 -0
  44. package/dist/chunks/calendar.BckAv9N_.js.map +1 -0
  45. package/dist/chunks/{card.ErZLKN0q.js → card.ChBURa5R.js} +2 -2
  46. package/dist/chunks/{card.ErZLKN0q.js.map → card.ChBURa5R.js.map} +1 -1
  47. package/dist/chunks/{checkbox-group.CNTMMwQr.js → checkbox-group.BAjvgXlc.js} +2 -2
  48. package/dist/chunks/{checkbox-group.CNTMMwQr.js.map → checkbox-group.BAjvgXlc.js.map} +1 -1
  49. package/dist/chunks/{checkbox.BIzqX_eH.js → checkbox.BAQDBNL6.js} +18 -18
  50. package/dist/chunks/{checkbox.BIzqX_eH.js.map → checkbox.BAQDBNL6.js.map} +1 -1
  51. package/dist/chunks/{code-snippet.lcQRsLdZ.js → code-snippet.nUo9bjhC.js} +3 -3
  52. package/dist/chunks/{code-snippet.lcQRsLdZ.js.map → code-snippet.nUo9bjhC.js.map} +1 -1
  53. package/dist/chunks/{country.BEwW8TQo.js → country.nGZJwp_A.js} +2 -2
  54. package/dist/chunks/country.nGZJwp_A.js.map +1 -0
  55. package/dist/chunks/{dashboard-section.DiGQXS9L.js → dashboard-section.BDDVJpxY.js} +2 -2
  56. package/dist/chunks/{dashboard-section.DiGQXS9L.js.map → dashboard-section.BDDVJpxY.js.map} +1 -1
  57. package/dist/chunks/{dashed-underline.Cl07OQID.js → dashed-underline.CfEmbgOv.js} +2 -2
  58. package/dist/chunks/{dashed-underline.Cl07OQID.js.map → dashed-underline.CfEmbgOv.js.map} +1 -1
  59. package/dist/chunks/{data-grid-template.BVppx9kZ.js → data-grid-template.BUlLHTYe.js} +2 -2
  60. package/dist/chunks/{data-grid-template.BVppx9kZ.js.map → data-grid-template.BUlLHTYe.js.map} +1 -1
  61. package/dist/chunks/{data-grid.DQwAkw4U.js → data-grid.0OiCQjFc.js} +28 -29
  62. package/dist/chunks/{data-grid.DQwAkw4U.js.map → data-grid.0OiCQjFc.js.map} +1 -1
  63. package/dist/chunks/date-picker.CsFSskqf.js +245 -0
  64. package/dist/chunks/date-picker.CsFSskqf.js.map +1 -0
  65. package/dist/chunks/date-picker.types.Ckt7zxGy.js.map +1 -1
  66. package/dist/chunks/date-range-picker.Bczgdu5X.js +1250 -0
  67. package/dist/chunks/date-range-picker.Bczgdu5X.js.map +1 -0
  68. package/dist/chunks/date-range-picker.types.Ckt7zxGy.js.map +1 -1
  69. package/dist/chunks/date-time-picker.DT54TiG4.js +177 -0
  70. package/dist/chunks/date-time-picker.DT54TiG4.js.map +1 -0
  71. package/dist/chunks/{draggable-handle.DIhHtHG9.js → draggable-handle.DwJBaf5y.js} +2 -2
  72. package/dist/chunks/{draggable-handle.DIhHtHG9.js.map → draggable-handle.DwJBaf5y.js.map} +1 -1
  73. package/dist/chunks/{dropdown-tag.CuDxdSfb.js → dropdown-tag.BqSrkuwj.js} +2 -2
  74. package/dist/chunks/{dropdown-tag.CuDxdSfb.js.map → dropdown-tag.BqSrkuwj.js.map} +1 -1
  75. package/dist/chunks/dropdown.CIEm6MBB.js +2660 -0
  76. package/dist/chunks/dropdown.CIEm6MBB.js.map +1 -0
  77. package/dist/chunks/{file-uploader.CO2MeHwl.js → file-uploader.DOvQMUHC.js} +2 -2
  78. package/dist/chunks/{file-uploader.CO2MeHwl.js.map → file-uploader.DOvQMUHC.js.map} +1 -1
  79. package/dist/chunks/{filter-bar.DQ9fJXq1.js → filter-bar.DVRPM9tf.js} +318 -319
  80. package/dist/chunks/filter-bar.DVRPM9tf.js.map +1 -0
  81. package/dist/chunks/{footer-actions.CZE9dcmA.js → footer-actions.C1sXd7ti.js} +2 -2
  82. package/dist/chunks/{footer-actions.CZE9dcmA.js.map → footer-actions.C1sXd7ti.js.map} +1 -1
  83. package/dist/chunks/{form-layout-title.CXXdsiK5.js → form-layout-title.xrix5vY3.js} +2 -2
  84. package/dist/chunks/{form-layout-title.CXXdsiK5.js.map → form-layout-title.xrix5vY3.js.map} +1 -1
  85. package/dist/chunks/{header-meta.6rZdOgXD.js → header-meta.D1eb37QJ.js} +2 -2
  86. package/dist/chunks/{header-meta.6rZdOgXD.js.map → header-meta.D1eb37QJ.js.map} +1 -1
  87. package/dist/chunks/{header-with-views.4VNHbNk0.js → header-with-views.Bk6ly102.js} +8 -8
  88. package/dist/chunks/{header-with-views.4VNHbNk0.js.map → header-with-views.Bk6ly102.js.map} +1 -1
  89. package/dist/chunks/{header.BsroOD5b.js → header.CszOmM16.js} +3 -3
  90. package/dist/chunks/{header.BsroOD5b.js.map → header.CszOmM16.js.map} +1 -1
  91. package/dist/chunks/{input-field-password.CRqYWZGS.js → input-field-password.C4Wxsl16.js} +3 -3
  92. package/dist/chunks/{input-field-password.CRqYWZGS.js.map → input-field-password.C4Wxsl16.js.map} +1 -1
  93. package/dist/chunks/{input-field-phone-number.DHiuL0cF.js → input-field-phone-number.BhYTU628.js} +2 -2
  94. package/dist/chunks/{input-field-phone-number.DHiuL0cF.js.map → input-field-phone-number.BhYTU628.js.map} +1 -1
  95. package/dist/chunks/{input-field.BkQZ6Qzl.js → input-field.3tzX7t2y.js} +2 -2
  96. package/dist/chunks/{input-field.BkQZ6Qzl.js.map → input-field.3tzX7t2y.js.map} +1 -1
  97. package/dist/chunks/{input-time.BiOHvUEA.js → input-time.Bf-ZrCPX.js} +34 -34
  98. package/dist/chunks/{input-time.BiOHvUEA.js.map → input-time.Bf-ZrCPX.js.map} +1 -1
  99. package/dist/chunks/{modal-fullscreen.OS6KhVdg.js → modal-fullscreen.Dg1Hi3jB.js} +2 -2
  100. package/dist/chunks/{modal-fullscreen.OS6KhVdg.js.map → modal-fullscreen.Dg1Hi3jB.js.map} +1 -1
  101. package/dist/chunks/{modal.DHL3TGHv.js → modal.DZTEFM_E.js} +4 -4
  102. package/dist/chunks/{modal.DHL3TGHv.js.map → modal.DZTEFM_E.js.map} +1 -1
  103. package/dist/chunks/{pagination.DItyAwy1.js → pagination.C6HIPq58.js} +2 -2
  104. package/dist/chunks/{pagination.DItyAwy1.js.map → pagination.C6HIPq58.js.map} +1 -1
  105. package/dist/chunks/{rich-text-editor.D5URbwnM.js → rich-text-editor.-B96ibAd.js} +3 -3
  106. package/dist/chunks/{rich-text-editor.D5URbwnM.js.map → rich-text-editor.-B96ibAd.js.map} +1 -1
  107. package/dist/chunks/{search-bar.D-WK8eMQ.js → search-bar.DunTxVmZ.js} +5 -5
  108. package/dist/chunks/{search-bar.D-WK8eMQ.js.map → search-bar.DunTxVmZ.js.map} +1 -1
  109. package/dist/chunks/{secondary-nav.C7lEDaoj.js → secondary-nav.CGGPkYpc.js} +2 -2
  110. package/dist/chunks/{secondary-nav.C7lEDaoj.js.map → secondary-nav.CGGPkYpc.js.map} +1 -1
  111. package/dist/chunks/{selection-card-group.CiFW4AZR.js → selection-card-group.ZZ_qF1L1.js} +8 -8
  112. package/dist/chunks/{selection-card-group.CiFW4AZR.js.map → selection-card-group.ZZ_qF1L1.js.map} +1 -1
  113. package/dist/chunks/{sidepanel.B8zQp_MJ.js → sidepanel.ChuW63J7.js} +3 -3
  114. package/dist/chunks/{sidepanel.B8zQp_MJ.js.map → sidepanel.ChuW63J7.js.map} +1 -1
  115. package/dist/chunks/{summary-grid.types.CkqRXOKv.js → summary-grid.types.BnEhhDQz.js} +3 -3
  116. package/dist/chunks/summary-grid.types.BnEhhDQz.js.map +1 -0
  117. package/dist/chunks/{timeline-item.sdxvTjmS.js → timeline-item.DzMh520x.js} +3 -3
  118. package/dist/chunks/{timeline-item.sdxvTjmS.js.map → timeline-item.DzMh520x.js.map} +1 -1
  119. package/dist/chunks/{tutorial.Ba9dqb2j.js → tutorial.CkeL_7Je.js} +2 -2
  120. package/dist/chunks/{tutorial.Ba9dqb2j.js.map → tutorial.CkeL_7Je.js.map} +1 -1
  121. package/dist/chunks/use-bento-delayed-hover.D4rfUUOr.js.map +1 -1
  122. package/dist/chunks/{use-date-input-formatter.B5GQd3s2.js → use-date-input-formatter.Dq9C0nc9.js} +2 -2
  123. package/dist/chunks/{use-date-input-formatter.B5GQd3s2.js.map → use-date-input-formatter.Dq9C0nc9.js.map} +1 -1
  124. package/dist/code-snippet.js +1 -1
  125. package/dist/country.js +1 -1
  126. package/dist/dashboard-template.js +1 -1
  127. package/dist/dashed-underline.js +1 -1
  128. package/dist/data-grid-template.js +1 -1
  129. package/dist/data-grid.js +1 -1
  130. package/dist/date-picker.js +2 -2
  131. package/dist/date-range-picker.js +2 -2
  132. package/dist/date-time-picker.js +1 -1
  133. package/dist/draggable.js +1 -1
  134. package/dist/dropdown.js +10 -11
  135. package/dist/dropdown.js.map +1 -1
  136. package/dist/file-uploader.js +1 -1
  137. package/dist/filter-bar.js +1 -1
  138. package/dist/form-layout.js +1 -1
  139. package/dist/header-with-views.js +1 -1
  140. package/dist/header.js +1 -1
  141. package/dist/index.js +269 -270
  142. package/dist/index.js.map +1 -1
  143. package/dist/input-field-password.js +1 -1
  144. package/dist/input-field-phone-number.js +1 -1
  145. package/dist/input-field.js +1 -1
  146. package/dist/input-time.js +1 -1
  147. package/dist/internal.js +13 -13
  148. package/dist/menu.js +1 -1
  149. package/dist/modal-fullscreen.js +1 -1
  150. package/dist/modal.js +2 -2
  151. package/dist/pagination.js +1 -1
  152. package/dist/popover.js +1 -1
  153. package/dist/rich-text-editor.js +1 -1
  154. package/dist/search-bar.js +2 -2
  155. package/dist/secondary-nav.js +1 -1
  156. package/dist/selection-card.js +1 -1
  157. package/dist/sidepanel.js +1 -1
  158. package/dist/summary-grid.js +1 -1
  159. package/dist/timeline.js +1 -1
  160. package/dist/tutorial.js +1 -1
  161. package/dist/web-types.json +205 -2
  162. package/package.json +3 -3
  163. package/dist/assets/use-cached-selected-values.css +0 -1
  164. package/dist/chunks/calendar.D0JIbmoS.js +0 -1151
  165. package/dist/chunks/calendar.D0JIbmoS.js.map +0 -1
  166. package/dist/chunks/country.BEwW8TQo.js.map +0 -1
  167. package/dist/chunks/date-picker.BWxvyK5J.js +0 -245
  168. package/dist/chunks/date-picker.BWxvyK5J.js.map +0 -1
  169. package/dist/chunks/date-range-picker.gfRJmzXn.js +0 -1114
  170. package/dist/chunks/date-range-picker.gfRJmzXn.js.map +0 -1
  171. package/dist/chunks/date-time-picker.BIl9kFLh.js +0 -129
  172. package/dist/chunks/date-time-picker.BIl9kFLh.js.map +0 -1
  173. package/dist/chunks/dropdown.C70AlvOT.js +0 -1155
  174. package/dist/chunks/dropdown.C70AlvOT.js.map +0 -1
  175. package/dist/chunks/filter-bar.DQ9fJXq1.js.map +0 -1
  176. package/dist/chunks/summary-grid.types.CkqRXOKv.js.map +0 -1
  177. package/dist/chunks/use-cached-selected-values.D0s14AxT.js +0 -1520
  178. package/dist/chunks/use-cached-selected-values.D0s14AxT.js.map +0 -1
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../src/composables/use-form-validate/use-form.ts","../src/composables/use-bento-theme/use-bento-theme.types.ts","../src/composables/use-bento-theme/use-bento-theme.ts","../src/directives/highlight/highlight.ts","../src/composables/use-bento-toast-controller/install.ts","../src/composables/use-bento-theme/install.types.ts","../src/composables/use-bento-theme/install.ts","../src/install.ts","../src/types/base-filter.ts","../src/types/date-format.ts"],"sourcesContent":["import { type Ref, ref, shallowRef } from 'vue';\nimport * as z from 'zod';\nimport type { ZodSchema } from 'zod';\nimport { type allKeys, type ErrorBag, type UseForm } from './use-form.types';\n\n/**\n * Composable that transforms a Zod schema into a Typed Schema that can be used alongside with {@see useForm}.\n *\n * This is meant to simulate the behavior of {@link @vee-validate/zod} {@see https://vee-validate.logaretm.com/v4/integrations/zod-schema-validation}.\n * Function that transform Zod’s schemas into something that can be understood by vee-validate\n *\n * @deprecated Since v2.0.0. Use `@adyen/bento-vue2/use-form-v4' instead or migrate to Vue3 and use Vee-Validate instead.\n *\n * @param formSchema Zod schema to be transformed into a `vee-validate` schema\n * @returns Schema transformed\n */\nexport function toTypedSchema<T extends ZodSchema>(formSchema: T) {\n return formSchema;\n}\n\n/**\n * Finds and returns the initial values of each of the values defined in the schema so that they\n * can be transformed into a reactive element.\n * @param schema Zod validation schema containing the definitions of each value to be used in the form\n * @returns Object with the items defined in the schema and their (default) values\n *\n * @example\n * const validationSchema = toTypedSchema(\n * z.object({\n * name: z\n * .string()\n * .min(3, { message: 'Name is required' })\n * .startsWith('Jane')\n * .max(4, { message: 'Name cannot be longer than 4 characters' })\n * .default('Joe'),\n * })\n * );\n * getInitialFormValues(validationSchema)\n *\n * Will return:\n *\n * {\n * name: 'Joe'\n * }\n *\n */\nfunction getInitialFormValues<T extends ZodSchema>(schema: T): z.infer<typeof schema> {\n if (!!z && schema instanceof z.ZodObject) {\n return Object.fromEntries(\n Object.entries(schema.shape).map(([key, value]) => {\n if (!!z && value instanceof z.ZodDefault) {\n /* eslint-disable-next-line no-underscore-dangle */\n return [key, value._def.defaultValue()];\n }\n\n if (!!z && value instanceof z.ZodObject) {\n return [key, getInitialFormValues(value)];\n }\n\n return [key, undefined];\n })\n ) as z.infer<typeof schema>;\n }\n\n /**\n * Zod's refine and superRefine use {@link z.ZodEffects} instead of {@link z.ZodSchema}.\n * We need to extract the schema from the {@link z.ZodEffects} structure.\n */\n if (!!z && schema instanceof z.ZodEffects) {\n // eslint-disable-next-line no-underscore-dangle\n return getInitialFormValues(schema._def.schema);\n }\n\n return undefined;\n}\n\n/**\n * Constructs a path with dot paths for arrays to use brackets to be compatible with vee-validate path syntax\n * @param issue List of nested path elements\n * @returns Path with dots\n */\nfunction normalizeFormPath(issue: z.ZodIssue) {\n return issue.path.join('.');\n}\n\n/**\n * Composable that facilitates validating form data for Vue2 & Vue3 implementations with FormLayout\n * to ease the migration to Vue3.\n *\n * For Vue3 implementations use Vee-Validate.\n *\n * This provides a simplified version of Vee-Validate v4 implemented with Zod to validate a form schema.\n * It returns reactive values that can be used directly in form input elements with 'v-model' alongside\n * with functions to \"reset\" the data (sets values to default value) and a function to execute the\n * successful form validation process (through a callback).\n *\n * @deprecated Since v2.0.0. Use `@adyen/bento-vue2/use-form-v4' instead or migrate to Vue3 and use Vee-Validate instead.\n *\n * @param props Form configuration object\n * @param extends ZodSchema} props.validationSchema Zod typed validation schema\n * @returns response - Composable with reactive form values and errors, and functions to handle the reactive data\n * @returns response.errorBag Object with all the form values and an array of each one of the errors (if any) per value\n * @returns response.errors Object with all the form values and the first error found for that field (if any)\n * @returns response.values Object with all the form values and their current value\n * @returns response.handleReset Resets the form values to default (initial values) when it gets called\n * @returns response.submitForm Validates the data set in {response.values} and sets errors (if found) inside {response.errors} and {response.errorBag}.\n * When the validation is successful it calls the callback so the submit process can continue\n *\n * @example\n * const validationSchema = toTypedSchema(\n * z.object({\n * name: z\n * .string()\n * .min(3, { message: 'Name is required' })\n * .startsWith('Jane')\n * .max(4, { message: 'Name cannot be longer than 4 characters' })\n * .default('Joe'),\n * })\n * );\n *\n * const { values, errors, errorBag, submitForm, handleReset } = useForm({\n * validationSchema\n * });\n * const handleSubmit = submitForm(() => {\n * // Send data to API here\n * })\n *\n */\nexport function useForm<T extends ZodSchema>({\n validationSchema,\n}: UseForm<T>): {\n errorBag: Ref<{\n [P in allKeys<(typeof validationSchema)['_type']>]?: Array<string>;\n }>;\n errors: Ref<{\n [P in allKeys<(typeof validationSchema)['_type']>]?: string;\n }>;\n values: Ref<(typeof validationSchema)['_type']>;\n handleReset: () => void;\n submitForm: (submitted: any) => () => void;\n} {\n // Errors per field\n const errors = shallowRef<z.infer<typeof validationSchema>>({});\n // All errors per field\n const errorBag: Ref<ErrorBag<z.infer<typeof validationSchema>>> = ref({});\n const values: Ref<z.TypeOf<T>> = ref(getInitialFormValues<T>(validationSchema));\n\n const cleanErrors = () => {\n errors.value = {};\n errorBag.value = {};\n };\n\n const resetForm = () => {\n cleanErrors();\n values.value = getInitialFormValues<T>(validationSchema);\n };\n\n const submitForm = submitted => () => {\n cleanErrors();\n\n // Run validations on the form data through the schema\n const validSchema = validationSchema.safeParse(values.value);\n\n // Update errors\n if (!validSchema.success) {\n (validSchema as z.SafeParseError<T>).error.issues.forEach(error => {\n const path = normalizeFormPath(error);\n\n // Add the first occurrence of a field error to the \"errors\" object\n if (!errors.value[path]) {\n errors.value[path] = error.message;\n }\n\n // Add each error to the \"errorBag\" per field array\n if (!errorBag.value[path]) {\n errorBag.value[path] = [error.message];\n } else {\n errorBag.value[path].push(error.message);\n }\n });\n } else {\n submitted(values.value);\n }\n };\n\n return {\n // Values\n errorBag,\n errors,\n values,\n\n // Methods\n handleReset: () => resetForm(),\n submitForm,\n };\n}\n","import { type BentoTheme } from './install.types';\n\nexport const useBentoThemeKey = Symbol('use-bento-theme');\n\nexport interface UseBentoTheme {\n getTheme: () => string;\n setTheme: (theme: BentoTheme | `${BentoTheme}`) => void;\n}\n","import { printDevelopmentWarning } from '@/utils/ts/print-development-warning';\nimport { getCurrentInstance, inject } from 'vue';\nimport { isVue2 } from 'vue-demi';\nimport { type UseBentoTheme, useBentoThemeKey } from './use-bento-theme.types';\n\n/**\n * Composable that handles theming-related capabilities for the Bento component library.\n * Requires the use of `BentoPlugin`.\n *\n * @example\n * <script setup lang=\"ts\">\n * import { useBentoTheme, BentoTheme } from '@adyen/bento-vue2';\n *\n * const { setTheme } = useBentoTheme();\n *\n * setTheme(BentoTheme.BENTO_DARK)\n * </script>\n *\n * @returns {UseBentoTheme} An object with getter and setter method for the Bento theme.\n * @returns {Function} getTheme - Returns the current theme in the string form of BentoTheme enum.\n * @returns {Function} setTheme - Sets the theme of the Bento component library.\n *\n */\nexport function useBentoTheme(): UseBentoTheme {\n const bentoThemeController = isVue2\n ? getCurrentInstance()?.proxy[useBentoThemeKey]\n : inject(useBentoThemeKey, null);\n\n if (!bentoThemeController) {\n printDevelopmentWarning('useBentoTheme does not work without Vue.use(BentoPlugin)');\n\n // Return placeholder functions so client code won't break, but theme won't toggle\n return {\n getTheme: () => undefined,\n setTheme: () => undefined,\n };\n }\n\n // Return a new object so unintentional reassigning its properties won't override a global state\n return { ...bentoThemeController };\n}\n","const getSize = ({ modifiers, value }) => Object.keys(modifiers)[0] || value?.size || 'small';\n\nconst toggleHighlight = (el, binding, enabled) => {\n const extraPadding = binding.value?.extraPadding ?? false;\n const rounded = binding.value?.rounded ?? false;\n const size = getSize(binding);\n\n el.classList.toggle('b-highlight', enabled);\n el.classList.toggle('b-highlight--extra-padding', enabled && extraPadding);\n el.classList.toggle('b-highlight--rounded', enabled && rounded);\n\n ['small', 'medium', 'large'].forEach(s => {\n el.classList.toggle(`b-highlight--${s}`, enabled && s === size);\n });\n};\n\nconst applyHighlight = (el, binding) => {\n toggleHighlight(el, binding, binding.value !== false);\n};\n\nconst updateHighlight = (el, binding) => {\n toggleHighlight(el, binding, binding.value !== false);\n};\n\nconst removeHighlight = (el, binding) => {\n toggleHighlight(el, binding, false);\n};\n\nexport const BentoHighlightDirective = {\n // Vue 2\n bind: applyHighlight,\n update: updateHighlight,\n unbind: removeHighlight,\n\n // Vue 3\n beforeMount: applyHighlight,\n mounted: updateHighlight,\n updated: updateHighlight,\n unmounted: removeHighlight,\n};\n\nimport './highlight.scss';\n","import { type App, isVue2, type Vue2 } from 'vue-demi';\nimport { createToastStack, toastStackInjectionKey } from './toast-stack';\n\n/**\n * This function is used to create and register global reactive state necessary fro the Toasts to operate.\n * @param {Vue} Vue A context application to register global state with.\n */\nexport default Vue => {\n if (isVue2) {\n // Add toast stack as a global property as there is no \"app.provide\" functionality in Vue2\n // eslint-disable-next-line no-param-reassign -- this is an official way of setting up instance properties on Vue\n (Vue as typeof Vue2).prototype[toastStackInjectionKey] = createToastStack();\n } else {\n (Vue as App).provide(toastStackInjectionKey, createToastStack());\n }\n};\n","export enum BentoTheme {\n /**\n * @deprecated Since v2.0.0. Use `BENTO_LIGHT` instead.\n */\n LEGACY = 'b-legacy-theme',\n STYLEGUIDE = 'b-styleguide-theme',\n\n /**\n * @deprecated Since v2.0.0. Use `BENTO_LIGHT` instead.\n */\n BENTO = '',\n\n BENTO_LIGHT = 'b-light-theme',\n BENTO_DARK = 'b-dark-theme',\n BENTO_SYSTEM = 'b-system',\n}\n","import { type App, isVue2, type Vue2 } from 'vue-demi';\nimport { useBentoThemeKey } from './use-bento-theme.types';\nimport { BentoTheme } from './install.types';\n\nconst getTheme = () => document.body.className.match(/b-\\w+-theme/)?.[0] ?? '';\nconst getThemeForSystemPreference = () => {\n const preferredDarkMode = window.matchMedia('(prefers-color-scheme: dark)').matches;\n\n if (preferredDarkMode) {\n return BentoTheme.BENTO_DARK;\n }\n\n return BentoTheme.BENTO_LIGHT;\n};\n\nexport const setTheme = (theme: BentoTheme) => {\n const currentTheme = getTheme();\n const systemTheme = getThemeForSystemPreference();\n const themeToSet = theme === BentoTheme.BENTO_SYSTEM ? systemTheme : theme;\n\n if (themeToSet === BentoTheme.BENTO_LIGHT || themeToSet === BentoTheme.BENTO) {\n document.documentElement.style.colorScheme = 'light';\n } else if (themeToSet === BentoTheme.BENTO_DARK) {\n document.documentElement.style.colorScheme = 'dark';\n }\n\n // if theme is different from current and it is not `BentoTheme.BENTO`\n if (currentTheme.length && currentTheme !== themeToSet) {\n document.body.classList.remove(currentTheme);\n }\n\n // if theme is not `BentoTheme.BENTO`\n if (themeToSet.length) {\n document.body.classList.add(themeToSet);\n }\n};\n\n/**\n * This function is used to create and register global reactive state necessary for theme to operate.\n * @param {Vue} Vue A context application to register global state with.\n */\nexport default Vue => {\n const themeProvider = {\n getTheme,\n setTheme,\n };\n\n if (isVue2) {\n // Add theme as a global property as there is no \"app.provide\" functionality in Vue2\n // eslint-disable-next-line no-param-reassign -- this is an official way of setting up instance properties on Vue\n (Vue as typeof Vue2).prototype[useBentoThemeKey] = themeProvider;\n } else {\n (Vue as App).provide(useBentoThemeKey, themeProvider);\n }\n};\n","import installToast from './composables/use-bento-toast-controller/install';\nimport installTheme, { setTheme } from './composables/use-bento-theme/install';\nimport { deprecate } from './utils/ts/deprecate';\nimport { BentoTheme } from './composables/use-bento-theme/install.types';\nimport type { PluginObject } from 'vue';\n\ninterface BentoVuePlugin {\n theme?: BentoTheme;\n withToast?: boolean;\n withUtilityClasses?: boolean;\n withDesignTokensCSSInjection?: boolean;\n}\n\nconst plugin: PluginObject<BentoVuePlugin> = {\n name: 'BentoVue',\n install: async (\n Vue,\n {\n theme = BentoTheme.BENTO_LIGHT,\n withToast = false,\n withUtilityClasses = false,\n withDesignTokensCSSInjection = true,\n }: BentoVuePlugin\n ) => {\n installTheme(Vue);\n\n if (withToast) {\n installToast(Vue);\n }\n if (withDesignTokensCSSInjection) {\n deprecate(\n 'Using default setting withDesignTokensCSSInjection set to true in BentoVue plugin',\n 'Please disable CSS injection by setting withDesignTokensCSSInjection to false in BentoVue plugin options as highlighted here:\\nhttps://adyen-bento.netlify.app/?path=/docs/welcome-getting-started--docs#import-css-variables',\n '2.0.0'\n );\n // Make sure to put all awaited CSS imports below this point and not above!\n if (theme === BentoTheme.STYLEGUIDE) {\n await import('@adyen/bento-design-tokens/dist/css/bento/variables-styleguide.css');\n } else {\n await import('@adyen/bento-design-tokens/dist/css/bento/variables.css');\n }\n\n if (withUtilityClasses) {\n await import('@adyen/bento-design-tokens/dist/css/bento/utility.css');\n }\n }\n\n if (theme === BentoTheme.STYLEGUIDE) {\n setTheme(BentoTheme.STYLEGUIDE);\n } else if (theme === BentoTheme.BENTO_SYSTEM) {\n setTheme(BentoTheme.BENTO_SYSTEM);\n } else if (theme === BentoTheme.BENTO_DARK) {\n setTheme(BentoTheme.BENTO_DARK);\n } else if (theme === BentoTheme.BENTO) {\n deprecate('Using `BentoTheme.BENTO`', 'Please use `BentoTheme.BENTO_LIGHT` instead', '2.0.0');\n setTheme(BentoTheme.BENTO_LIGHT);\n } else {\n setTheme(BentoTheme.BENTO_LIGHT);\n }\n },\n};\n\nexport { BentoTheme };\nexport default plugin;\n","/**\n * Defines the props used by `bento-base-filter` that must be implemented\n * on every filter as `defineProps`.\n *\n * The interface can be extended if new values are required.\n * The object can be extended if new values are required.\n *\n * @template CustomValue Defines the type of the `value` and `defaultValue` props.\n * @template CustomOptions Defines the type of the options used by the filter (default: `undefined`).\n *\n * @example\n * Using the interface\n *\n * ```typescript\n * import { type BentoBaseFilterProps } from '@adyen/bento-vue2'\n *\n * interface CustomOptions {\n * option: string;\n * }\n *\n * withDefaults(defineProps<BentoBaseFilterProps<string, CustomOptions>>(), {\n * defaultValue: undefined,\n * })\n * ```\n *\n * @example\n * Using the object\n *\n * ```typescript\n * import { BentoBaseFilterProps } from '@adyen/bento-vue2'\n *\n * defineProps({\n * ...BentoBaseFilterProps,\n * options: {\n * type: Object,\n * default: () => ({\n * option: null\n * })\n * }\n * })\n * ```\n */\nexport interface BentoBaseFilterProps<CustomValue, CustomOptions = undefined> {\n /**\n * Disables the filter from being interacted with.\n */\n disabled?: boolean;\n\n /**\n * Default value of the filter to reset to.\n */\n defaultValue?: CustomValue;\n\n /**\n * Filter name/key referencing the actual property name in the data set.\n * Should be unique per filter bar.\n */\n field: string;\n\n /**\n * Label text to be displayed\n */\n label: string;\n\n /**\n * Renders the base filter's slot content only - leaving out the button and the popover.\n * Used for the allFiltersModal component.\n */\n onlySlot?: boolean;\n\n /**\n * List of options that are needed to setup the filter\n * Available options:\n * - firstDayOfWeek: Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday\n * - isDateDisabled: Indicate if a date should be disabled or not\n * - tooltipPosition: The position of the tooltip attached to the filter button\n * - tooltipText: The content of the tooltip attached to the filter button\n */\n options?: CustomOptions;\n\n /**\n * Current value of the filter\n */\n value: CustomValue;\n}\n\nexport const BentoBaseFilterProps = Object.freeze({\n /**\n * Disables the filter from being interacted with.\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Default value of the filter to reset to.\n */\n defaultValue: {\n type: [Object, Number, Boolean, Array, String, Date],\n default: null,\n },\n\n /**\n * Filter name/key referencing the actual property name in the data set.\n * Should be unique per filter bar.\n */\n field: { type: String, required: true },\n\n /**\n * Label text to be displayed\n */\n label: { type: String, required: true },\n\n /**\n * Renders the base filter's slot content only - leaving out the button and the popover.\n * Used for the allFiltersModal component.\n */\n onlySlot: { type: Boolean, default: false },\n\n /**\n * The current value of the filter, used for v-model.\n */\n value: {\n type: [Object, Number, Boolean, Array, String, Date],\n default: undefined,\n },\n});\n\n/**\n * Defines the mandatory emits that need to be defined by the implementation of any filter\n *\n * @template CustomValue Defines the type of the value being passed to the emit. Same as the type set in `BentoBaseFilterProps`\n *\n * @example\n * Using the interface\n *\n * ```typescript\n * import { type BentoBaseFilterEvents } from '@adyen/bento-vue2'\n *\n * defineEmits<BentoBaseFilterEvents<string>>()\n * ```\n *\n * @example\n * Using the object\n *\n * ```typescript\n * import { BentoBaseFilterEvents } from '@adyen/bento-vue2'\n *\n * defineEmits(BentoBaseFilterEvents)\n * ```\n */\nexport interface BentoBaseFilterEvents<CustomFilterProps> {\n /**\n * Used in the All filters modal\n */\n (e: 'input', updatedProps: CustomFilterProps): void;\n\n /**\n * Used in the Filter Bar\n */\n (e: 'update', updatedProps: CustomFilterProps): void;\n}\n\nexport const BentoBaseFilterEvents = ['input', 'update'];\n","export enum DateFormat {\n // DAY\n DAY_OF_MONTH = 'd', // 1, 2, ..., 31,\n NUMERIC_DAY = 'dd', // 01, 02, ..., 31,\n\n // WEEK\n SHORT_WEEKDAY = 'EEE', // Fri\n\n // MONTH\n NUMERIC_MONTH = 'MM', // 06\n SHORT_MONTH = 'MMM', // Jun\n LONG_MONTH = 'MMMM', // June\n LONG_MONTH_YEAR = `${LONG_MONTH} yyyy`, // June 2023\n\n // YEAR\n FULL_YEAR = 'yyyy', // 0001, 2023\n\n // DATE\n FULL_DATE = `${DAY_OF_MONTH} ${SHORT_MONTH}, ${FULL_YEAR}`, // 25 Jun, 2023\n FULL_DATE_MONTH_FIRST = `${SHORT_MONTH} ${NUMERIC_DAY}, ${FULL_YEAR}`, // Jun 25, 2023\n NUMERIC_DATE_YEAR_FIRST = `${FULL_YEAR}-${NUMERIC_MONTH}-${NUMERIC_DAY}`, // 2023-06-25\n NUMERIC_DATE_DAY_FIRST = `${FULL_YEAR}-${NUMERIC_MONTH}-${NUMERIC_DAY}`, // 25-06-2023\n\n // TIME\n MILITARY_HOUR = 'HH',\n MINUTES_TWO_DIGITS = 'mm',\n SECONDS_TWO_DIGITS = 'ss',\n HOUR_MINUTE_SECONDS = `${MILITARY_HOUR}:${MINUTES_TWO_DIGITS}:${SECONDS_TWO_DIGITS}`,\n}\n\nexport type BentoTextInputDateFormat = 'YYYY-MM-DD' | 'DD-MM-YYYY' | 'MM-DD-YYYY';\n"],"names":["toTypedSchema","formSchema","getInitialFormValues","schema","z","key","value","normalizeFormPath","issue","useForm","validationSchema","errors","shallowRef","errorBag","ref","values","cleanErrors","resetForm","submitted","validSchema","error","path","useBentoThemeKey","useBentoTheme","bentoThemeController","_a","getCurrentInstance","printDevelopmentWarning","getSize","modifiers","toggleHighlight","el","binding","enabled","extraPadding","rounded","_b","size","s","applyHighlight","updateHighlight","removeHighlight","BentoHighlightDirective","installToast","Vue","toastStackInjectionKey","createToastStack","BentoTheme","BentoTheme2","getTheme","getThemeForSystemPreference","setTheme","theme","currentTheme","systemTheme","themeToSet","installTheme","themeProvider","plugin","withToast","withUtilityClasses","withDesignTokensCSSInjection","deprecate","BentoBaseFilterProps","BentoBaseFilterEvents","DateFormat","DateFormat2"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,MAAA,CAAA,QAAA,QAAA,SAAA,OAAA,QAAA,IAAA;AAAA,IACgD,SAAA;AAAA,EAC1C;AAEjB,CAAA,GAqCOC,IAAA,CAAA,SAAA,QAAA;ACjKA,IAAAC,IAAA,kBAAAC,OAEHA,EAAA,eAAA,KACAA,EAAA,cAAA,MAGAA,EAAA,gBAAA,OAGAA,EAAA,gBAAA,MACAA,EAAA,cAAA,OACAA,EAAA,aAAA,QACAA,EAAA,kBAAA,aAGAA,EAAA,YAAA,QAGAA,EAAA,YAAA,eACAA,EAAA,wBAAA,gBACAA,EAAA,0BAAA,cACAA,EAAA,yBAAA,cAGAA,EAAA,gBAAA,MACAA,EAAA,qBAAA,MACAA,EAAA,qBAAA,MACAA,EAAA,sBAAA,YA3BQA,IAAAD,KAAA,CAAA,CAAA;"}
1
+ {"version":3,"file":"index.js","sources":["../src/composables/use-form-validate/use-form.ts","../src/composables/use-bento-theme/use-bento-theme.types.ts","../src/composables/use-bento-theme/use-bento-theme.ts","../src/directives/highlight/highlight.ts","../src/composables/use-bento-toast-controller/install.ts","../src/composables/use-bento-theme/install.types.ts","../src/composables/use-bento-theme/install.ts","../src/install.ts","../src/types/base-filter.ts","../src/types/date-format.ts"],"sourcesContent":["import { type Ref, ref, shallowRef } from 'vue';\nimport * as z from 'zod';\nimport type { ZodSchema } from 'zod';\nimport { type allKeys, type ErrorBag, type UseForm } from './use-form.types';\n\n/**\n * Composable that transforms a Zod schema into a Typed Schema that can be used alongside with {@see useForm}.\n *\n * This is meant to simulate the behavior of {@link @vee-validate/zod} {@see https://vee-validate.logaretm.com/v4/integrations/zod-schema-validation}.\n * Function that transform Zod’s schemas into something that can be understood by vee-validate\n *\n * @deprecated Since v2.0.0. Use `@adyen/bento-vue2/use-form-v4' instead or migrate to Vue3 and use Vee-Validate instead.\n *\n * @param formSchema Zod schema to be transformed into a `vee-validate` schema\n * @returns Schema transformed\n */\nexport function toTypedSchema<T extends ZodSchema>(formSchema: T) {\n return formSchema;\n}\n\n/**\n * Finds and returns the initial values of each of the values defined in the schema so that they\n * can be transformed into a reactive element.\n * @param schema Zod validation schema containing the definitions of each value to be used in the form\n * @returns Object with the items defined in the schema and their (default) values\n *\n * @example\n * const validationSchema = toTypedSchema(\n * z.object({\n * name: z\n * .string()\n * .min(3, { message: 'Name is required' })\n * .startsWith('Jane')\n * .max(4, { message: 'Name cannot be longer than 4 characters' })\n * .default('Joe'),\n * })\n * );\n * getInitialFormValues(validationSchema)\n *\n * Will return:\n *\n * {\n * name: 'Joe'\n * }\n *\n */\nfunction getInitialFormValues<T extends ZodSchema>(schema: T): z.infer<typeof schema> {\n if (!!z && schema instanceof z.ZodObject) {\n return Object.fromEntries(\n Object.entries(schema.shape).map(([key, value]) => {\n if (!!z && value instanceof z.ZodDefault) {\n /* eslint-disable-next-line no-underscore-dangle */\n return [key, value._def.defaultValue()];\n }\n\n if (!!z && value instanceof z.ZodObject) {\n return [key, getInitialFormValues(value)];\n }\n\n return [key, undefined];\n })\n ) as z.infer<typeof schema>;\n }\n\n /**\n * Zod's refine and superRefine use {@link z.ZodEffects} instead of {@link z.ZodSchema}.\n * We need to extract the schema from the {@link z.ZodEffects} structure.\n */\n if (!!z && schema instanceof z.ZodEffects) {\n // eslint-disable-next-line no-underscore-dangle\n return getInitialFormValues(schema._def.schema);\n }\n\n return undefined;\n}\n\n/**\n * Constructs a path with dot paths for arrays to use brackets to be compatible with vee-validate path syntax\n * @param issue List of nested path elements\n * @returns Path with dots\n */\nfunction normalizeFormPath(issue: z.ZodIssue) {\n return issue.path.join('.');\n}\n\n/**\n * Composable that facilitates validating form data for Vue2 & Vue3 implementations with FormLayout\n * to ease the migration to Vue3.\n *\n * For Vue3 implementations use Vee-Validate.\n *\n * This provides a simplified version of Vee-Validate v4 implemented with Zod to validate a form schema.\n * It returns reactive values that can be used directly in form input elements with 'v-model' alongside\n * with functions to \"reset\" the data (sets values to default value) and a function to execute the\n * successful form validation process (through a callback).\n *\n * @deprecated Since v2.0.0. Use `@adyen/bento-vue2/use-form-v4' instead or migrate to Vue3 and use Vee-Validate instead.\n *\n * @param props Form configuration object\n * @param extends ZodSchema} props.validationSchema Zod typed validation schema\n * @returns response - Composable with reactive form values and errors, and functions to handle the reactive data\n * @returns response.errorBag Object with all the form values and an array of each one of the errors (if any) per value\n * @returns response.errors Object with all the form values and the first error found for that field (if any)\n * @returns response.values Object with all the form values and their current value\n * @returns response.handleReset Resets the form values to default (initial values) when it gets called\n * @returns response.submitForm Validates the data set in {response.values} and sets errors (if found) inside {response.errors} and {response.errorBag}.\n * When the validation is successful it calls the callback so the submit process can continue\n *\n * @example\n * const validationSchema = toTypedSchema(\n * z.object({\n * name: z\n * .string()\n * .min(3, { message: 'Name is required' })\n * .startsWith('Jane')\n * .max(4, { message: 'Name cannot be longer than 4 characters' })\n * .default('Joe'),\n * })\n * );\n *\n * const { values, errors, errorBag, submitForm, handleReset } = useForm({\n * validationSchema\n * });\n * const handleSubmit = submitForm(() => {\n * // Send data to API here\n * })\n *\n */\nexport function useForm<T extends ZodSchema>({\n validationSchema,\n}: UseForm<T>): {\n errorBag: Ref<{\n [P in allKeys<(typeof validationSchema)['_type']>]?: Array<string>;\n }>;\n errors: Ref<{\n [P in allKeys<(typeof validationSchema)['_type']>]?: string;\n }>;\n values: Ref<(typeof validationSchema)['_type']>;\n handleReset: () => void;\n submitForm: (submitted: any) => () => void;\n} {\n // Errors per field\n const errors = shallowRef<z.infer<typeof validationSchema>>({});\n // All errors per field\n const errorBag: Ref<ErrorBag<z.infer<typeof validationSchema>>> = ref({});\n const values: Ref<z.TypeOf<T>> = ref(getInitialFormValues<T>(validationSchema));\n\n const cleanErrors = () => {\n errors.value = {};\n errorBag.value = {};\n };\n\n const resetForm = () => {\n cleanErrors();\n values.value = getInitialFormValues<T>(validationSchema);\n };\n\n const submitForm = submitted => () => {\n cleanErrors();\n\n // Run validations on the form data through the schema\n const validSchema = validationSchema.safeParse(values.value);\n\n // Update errors\n if (!validSchema.success) {\n (validSchema as z.SafeParseError<T>).error.issues.forEach(error => {\n const path = normalizeFormPath(error);\n\n // Add the first occurrence of a field error to the \"errors\" object\n if (!errors.value[path]) {\n errors.value[path] = error.message;\n }\n\n // Add each error to the \"errorBag\" per field array\n if (!errorBag.value[path]) {\n errorBag.value[path] = [error.message];\n } else {\n errorBag.value[path].push(error.message);\n }\n });\n } else {\n submitted(values.value);\n }\n };\n\n return {\n // Values\n errorBag,\n errors,\n values,\n\n // Methods\n handleReset: () => resetForm(),\n submitForm,\n };\n}\n","import { type BentoTheme } from './install.types';\n\nexport const useBentoThemeKey = Symbol('use-bento-theme');\n\nexport interface UseBentoTheme {\n getTheme: () => string;\n setTheme: (theme: BentoTheme | `${BentoTheme}`) => void;\n}\n","import { printDevelopmentWarning } from '@/utils/ts/print-development-warning';\nimport { getCurrentInstance, inject } from 'vue';\nimport { isVue2 } from 'vue-demi';\nimport { type UseBentoTheme, useBentoThemeKey } from './use-bento-theme.types';\n\n/**\n * Composable that handles theming-related capabilities for the Bento component library.\n * Requires the use of `BentoPlugin`.\n *\n * @example\n * <script setup lang=\"ts\">\n * import { useBentoTheme, BentoTheme } from '@adyen/bento-vue2';\n *\n * const { setTheme } = useBentoTheme();\n *\n * setTheme(BentoTheme.BENTO_DARK)\n * </script>\n *\n * @returns {UseBentoTheme} An object with getter and setter method for the Bento theme.\n * @returns {Function} getTheme - Returns the current theme in the string form of BentoTheme enum.\n * @returns {Function} setTheme - Sets the theme of the Bento component library.\n *\n */\nexport function useBentoTheme(): UseBentoTheme {\n const bentoThemeController = isVue2\n ? getCurrentInstance()?.proxy[useBentoThemeKey]\n : inject(useBentoThemeKey, null);\n\n if (!bentoThemeController) {\n printDevelopmentWarning('useBentoTheme does not work without Vue.use(BentoPlugin)');\n\n // Return placeholder functions so client code won't break, but theme won't toggle\n return {\n getTheme: () => undefined,\n setTheme: () => undefined,\n };\n }\n\n // Return a new object so unintentional reassigning its properties won't override a global state\n return { ...bentoThemeController };\n}\n","const getSize = ({ modifiers, value }) => Object.keys(modifiers)[0] || value?.size || 'small';\n\nconst toggleHighlight = (el, binding, enabled) => {\n const extraPadding = binding.value?.extraPadding ?? false;\n const rounded = binding.value?.rounded ?? false;\n const size = getSize(binding);\n\n el.classList.toggle('b-highlight', enabled);\n el.classList.toggle('b-highlight--extra-padding', enabled && extraPadding);\n el.classList.toggle('b-highlight--rounded', enabled && rounded);\n\n ['small', 'medium', 'large'].forEach(s => {\n el.classList.toggle(`b-highlight--${s}`, enabled && s === size);\n });\n};\n\nconst applyHighlight = (el, binding) => {\n toggleHighlight(el, binding, binding.value !== false);\n};\n\nconst updateHighlight = (el, binding) => {\n toggleHighlight(el, binding, binding.value !== false);\n};\n\nconst removeHighlight = (el, binding) => {\n toggleHighlight(el, binding, false);\n};\n\nexport const BentoHighlightDirective = {\n // Vue 2\n bind: applyHighlight,\n update: updateHighlight,\n unbind: removeHighlight,\n\n // Vue 3\n beforeMount: applyHighlight,\n mounted: updateHighlight,\n updated: updateHighlight,\n unmounted: removeHighlight,\n};\n\nimport './highlight.scss';\n","import { type App, isVue2, type Vue2 } from 'vue-demi';\nimport { createToastStack, toastStackInjectionKey } from './toast-stack';\n\n/**\n * This function is used to create and register global reactive state necessary fro the Toasts to operate.\n * @param {Vue} Vue A context application to register global state with.\n */\nexport default Vue => {\n if (isVue2) {\n // Add toast stack as a global property as there is no \"app.provide\" functionality in Vue2\n // eslint-disable-next-line no-param-reassign -- this is an official way of setting up instance properties on Vue\n (Vue as typeof Vue2).prototype[toastStackInjectionKey] = createToastStack();\n } else {\n (Vue as App).provide(toastStackInjectionKey, createToastStack());\n }\n};\n","export enum BentoTheme {\n /**\n * @deprecated Since v2.0.0. Use `BENTO_LIGHT` instead.\n */\n LEGACY = 'b-legacy-theme',\n STYLEGUIDE = 'b-styleguide-theme',\n\n /**\n * @deprecated Since v2.0.0. Use `BENTO_LIGHT` instead.\n */\n BENTO = '',\n\n BENTO_LIGHT = 'b-light-theme',\n BENTO_DARK = 'b-dark-theme',\n BENTO_SYSTEM = 'b-system',\n}\n","import { type App, isVue2, type Vue2 } from 'vue-demi';\nimport { useBentoThemeKey } from './use-bento-theme.types';\nimport { BentoTheme } from './install.types';\n\nconst getTheme = () => document.body.className.match(/b-\\w+-theme/)?.[0] ?? '';\nconst getThemeForSystemPreference = () => {\n const preferredDarkMode = window.matchMedia('(prefers-color-scheme: dark)').matches;\n\n if (preferredDarkMode) {\n return BentoTheme.BENTO_DARK;\n }\n\n return BentoTheme.BENTO_LIGHT;\n};\n\nexport const setTheme = (theme: BentoTheme) => {\n const currentTheme = getTheme();\n const systemTheme = getThemeForSystemPreference();\n const themeToSet = theme === BentoTheme.BENTO_SYSTEM ? systemTheme : theme;\n\n if (themeToSet === BentoTheme.BENTO_LIGHT || themeToSet === BentoTheme.BENTO) {\n document.documentElement.style.colorScheme = 'light';\n } else if (themeToSet === BentoTheme.BENTO_DARK) {\n document.documentElement.style.colorScheme = 'dark';\n }\n\n // if theme is different from current and it is not `BentoTheme.BENTO`\n if (currentTheme.length && currentTheme !== themeToSet) {\n document.body.classList.remove(currentTheme);\n }\n\n // if theme is not `BentoTheme.BENTO`\n if (themeToSet.length) {\n document.body.classList.add(themeToSet);\n }\n};\n\n/**\n * This function is used to create and register global reactive state necessary for theme to operate.\n * @param {Vue} Vue A context application to register global state with.\n */\nexport default Vue => {\n const themeProvider = {\n getTheme,\n setTheme,\n };\n\n if (isVue2) {\n // Add theme as a global property as there is no \"app.provide\" functionality in Vue2\n // eslint-disable-next-line no-param-reassign -- this is an official way of setting up instance properties on Vue\n (Vue as typeof Vue2).prototype[useBentoThemeKey] = themeProvider;\n } else {\n (Vue as App).provide(useBentoThemeKey, themeProvider);\n }\n};\n","import installToast from './composables/use-bento-toast-controller/install';\nimport installTheme, { setTheme } from './composables/use-bento-theme/install';\nimport { deprecate } from './utils/ts/deprecate';\nimport { BentoTheme } from './composables/use-bento-theme/install.types';\nimport type { PluginObject } from 'vue';\n\ninterface BentoVuePlugin {\n theme?: BentoTheme;\n withToast?: boolean;\n withUtilityClasses?: boolean;\n withDesignTokensCSSInjection?: boolean;\n}\n\nconst plugin: PluginObject<BentoVuePlugin> = {\n name: 'BentoVue',\n install: async (\n Vue,\n {\n theme = BentoTheme.BENTO_LIGHT,\n withToast = false,\n withUtilityClasses = false,\n withDesignTokensCSSInjection = true,\n }: BentoVuePlugin\n ) => {\n installTheme(Vue);\n\n if (withToast) {\n installToast(Vue);\n }\n if (withDesignTokensCSSInjection) {\n deprecate(\n 'Using default setting withDesignTokensCSSInjection set to true in BentoVue plugin',\n 'Please disable CSS injection by setting withDesignTokensCSSInjection to false in BentoVue plugin options as highlighted here:\\nhttps://adyen-bento.netlify.app/?path=/docs/welcome-getting-started--docs#import-css-variables',\n '2.0.0'\n );\n // Make sure to put all awaited CSS imports below this point and not above!\n if (theme === BentoTheme.STYLEGUIDE) {\n await import('@adyen/bento-design-tokens/dist/css/bento/variables-styleguide.css');\n } else {\n await import('@adyen/bento-design-tokens/dist/css/bento/variables.css');\n }\n\n if (withUtilityClasses) {\n await import('@adyen/bento-design-tokens/dist/css/bento/utility.css');\n }\n }\n\n if (theme === BentoTheme.STYLEGUIDE) {\n setTheme(BentoTheme.STYLEGUIDE);\n } else if (theme === BentoTheme.BENTO_SYSTEM) {\n setTheme(BentoTheme.BENTO_SYSTEM);\n } else if (theme === BentoTheme.BENTO_DARK) {\n setTheme(BentoTheme.BENTO_DARK);\n } else if (theme === BentoTheme.BENTO) {\n deprecate('Using `BentoTheme.BENTO`', 'Please use `BentoTheme.BENTO_LIGHT` instead', '2.0.0');\n setTheme(BentoTheme.BENTO_LIGHT);\n } else {\n setTheme(BentoTheme.BENTO_LIGHT);\n }\n },\n};\n\nexport { BentoTheme };\nexport default plugin;\n","/**\n * Defines the props used by `bento-base-filter` that must be implemented\n * on every filter as `defineProps`.\n *\n * The interface can be extended if new values are required.\n * The object can be extended if new values are required.\n *\n * @template CustomValue Defines the type of the `value` and `defaultValue` props.\n * @template CustomOptions Defines the type of the options used by the filter (default: `undefined`).\n *\n * @example\n * Using the interface\n *\n * ```typescript\n * import { type BentoBaseFilterProps } from '@adyen/bento-vue2'\n *\n * interface CustomOptions {\n * option: string;\n * }\n *\n * withDefaults(defineProps<BentoBaseFilterProps<string, CustomOptions>>(), {\n * defaultValue: undefined,\n * })\n * ```\n *\n * @example\n * Using the object\n *\n * ```typescript\n * import { BentoBaseFilterProps } from '@adyen/bento-vue2'\n *\n * defineProps({\n * ...BentoBaseFilterProps,\n * options: {\n * type: Object,\n * default: () => ({\n * option: null\n * })\n * }\n * })\n * ```\n */\nexport interface BentoBaseFilterProps<CustomValue, CustomOptions = undefined> {\n /**\n * Disables the filter from being interacted with.\n */\n disabled?: boolean;\n\n /**\n * Default value of the filter to reset to.\n */\n defaultValue?: CustomValue;\n\n /**\n * Filter name/key referencing the actual property name in the data set.\n * Should be unique per filter bar.\n */\n field: string;\n\n /**\n * Label text to be displayed\n */\n label: string;\n\n /**\n * Renders the base filter's slot content only - leaving out the button and the popover.\n * Used for the allFiltersModal component.\n */\n onlySlot?: boolean;\n\n /**\n * List of options that are needed to setup the filter\n * Available options:\n * - firstDayOfWeek: Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday\n * - isDateDisabled: Indicate if a date should be disabled or not\n * - tooltipPosition: The position of the tooltip attached to the filter button\n * - tooltipText: The content of the tooltip attached to the filter button\n */\n options?: CustomOptions;\n\n /**\n * Current value of the filter\n */\n value: CustomValue;\n}\n\nexport const BentoBaseFilterProps = Object.freeze({\n /**\n * Disables the filter from being interacted with.\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Default value of the filter to reset to.\n */\n defaultValue: {\n type: [Object, Number, Boolean, Array, String, Date],\n default: null,\n },\n\n /**\n * Filter name/key referencing the actual property name in the data set.\n * Should be unique per filter bar.\n */\n field: { type: String, required: true },\n\n /**\n * Label text to be displayed\n */\n label: { type: String, required: true },\n\n /**\n * Renders the base filter's slot content only - leaving out the button and the popover.\n * Used for the allFiltersModal component.\n */\n onlySlot: { type: Boolean, default: false },\n\n /**\n * The current value of the filter, used for v-model.\n */\n value: {\n type: [Object, Number, Boolean, Array, String, Date],\n default: undefined,\n },\n});\n\n/**\n * Defines the mandatory emits that need to be defined by the implementation of any filter\n *\n * @template CustomValue Defines the type of the value being passed to the emit. Same as the type set in `BentoBaseFilterProps`\n *\n * @example\n * Using the interface\n *\n * ```typescript\n * import { type BentoBaseFilterEvents } from '@adyen/bento-vue2'\n *\n * defineEmits<BentoBaseFilterEvents<string>>()\n * ```\n *\n * @example\n * Using the object\n *\n * ```typescript\n * import { BentoBaseFilterEvents } from '@adyen/bento-vue2'\n *\n * defineEmits(BentoBaseFilterEvents)\n * ```\n */\nexport interface BentoBaseFilterEvents<CustomFilterProps> {\n /**\n * Used in the All filters modal\n */\n (e: 'input', updatedProps: CustomFilterProps): void;\n\n /**\n * Used in the Filter Bar\n */\n (e: 'update', updatedProps: CustomFilterProps): void;\n}\n\nexport const BentoBaseFilterEvents = ['input', 'update'];\n","export enum DateFormat {\n // DAY\n DAY_OF_MONTH = 'd', // 1, 2, ..., 31,\n NUMERIC_DAY = 'dd', // 01, 02, ..., 31,\n\n // WEEK\n SHORT_WEEKDAY = 'EEE', // Fri\n\n // MONTH\n NUMERIC_MONTH = 'MM', // 06\n SHORT_MONTH = 'MMM', // Jun\n LONG_MONTH = 'MMMM', // June\n LONG_MONTH_YEAR = `${LONG_MONTH} yyyy`, // June 2023\n\n // YEAR\n FULL_YEAR = 'yyyy', // 0001, 2023\n\n // DATE\n FULL_DATE = `${DAY_OF_MONTH} ${SHORT_MONTH}, ${FULL_YEAR}`, // 25 Jun, 2023\n FULL_DATE_MONTH_FIRST = `${SHORT_MONTH} ${NUMERIC_DAY}, ${FULL_YEAR}`, // Jun 25, 2023\n NUMERIC_DATE_YEAR_FIRST = `${FULL_YEAR}-${NUMERIC_MONTH}-${NUMERIC_DAY}`, // 2023-06-25\n NUMERIC_DATE_DAY_FIRST = `${FULL_YEAR}-${NUMERIC_MONTH}-${NUMERIC_DAY}`, // 25-06-2023\n\n // TIME\n MILITARY_HOUR = 'HH',\n MINUTES_TWO_DIGITS = 'mm',\n SECONDS_TWO_DIGITS = 'ss',\n HOUR_MINUTE_SECONDS = `${MILITARY_HOUR}:${MINUTES_TWO_DIGITS}:${SECONDS_TWO_DIGITS}`,\n}\n\nexport type BentoTextInputDateFormat = 'YYYY-MM-DD' | 'DD-MM-YYYY' | 'MM-DD-YYYY';\n"],"names":["toTypedSchema","formSchema","getInitialFormValues","schema","z","key","value","normalizeFormPath","issue","useForm","validationSchema","errors","shallowRef","errorBag","ref","values","cleanErrors","resetForm","submitted","validSchema","error","path","useBentoThemeKey","useBentoTheme","bentoThemeController","_a","getCurrentInstance","printDevelopmentWarning","getSize","modifiers","toggleHighlight","el","binding","enabled","extraPadding","rounded","_b","size","s","applyHighlight","updateHighlight","removeHighlight","BentoHighlightDirective","installToast","Vue","toastStackInjectionKey","createToastStack","BentoTheme","BentoTheme2","getTheme","getThemeForSystemPreference","setTheme","theme","currentTheme","systemTheme","themeToSet","installTheme","themeProvider","plugin","withToast","withUtilityClasses","withDesignTokensCSSInjection","deprecate","BentoBaseFilterProps","BentoBaseFilterEvents","DateFormat","DateFormat2"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBO,SAAAA,EAAAC,GAAA;AACH,SAAAA;AACJ;AA4BA,SAAAC,EAAAC,GAAA;AACI,MAAAC,KAAAD,aAAAC,EAAA;AACI,WAAA,OAAA;AAAA,MAAc,OAAA,QAAAD,EAAA,KAAA,EAAA,IAAA,CAAA,CAAAE,GAAAC,CAAA,MAENF,KAAAE,aAAAF,EAAA,aAEI,CAAAC,GAAAC,EAAA,KAAA,aAAA,CAAA,IAGJF,KAAAE,aAAAF,EAAA,YACI,CAAAC,GAAAH,EAAAI,CAAA,CAAA,IAGJ,CAAAD,GAAA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AA,qBAAA,MACAA,EAAA,sBAAA,YA3BQA,IAAAD,KAAA,CAAA,CAAA;"}
@@ -1,4 +1,4 @@
1
- import { i as a, m as s, r as i, a as c, b as u, c as o } from "./chunks/input-field-password.CRqYWZGS.js";
1
+ import { i as a, m as s, r as i, a as c, b as u, c as o } from "./chunks/input-field-password.C4Wxsl16.js";
2
2
  export {
3
3
  a as BentoInputFieldPassword,
4
4
  s as minLength,
@@ -1,4 +1,4 @@
1
- import { i as o, B as t } from "./chunks/input-field-phone-number.DHiuL0cF.js";
1
+ import { i as o, B as t } from "./chunks/input-field-phone-number.BhYTU628.js";
2
2
  export {
3
3
  o as BentoInputFieldPhoneNumber,
4
4
  t as BentoInputFieldPhoneNumberCountries
@@ -1,4 +1,4 @@
1
- import { B as n, a, b as o, c as i, d as s, e as l } from "./chunks/input-field.BkQZ6Qzl.js";
1
+ import { B as n, a, b as o, c as i, d as s, e as l } from "./chunks/input-field.3tzX7t2y.js";
2
2
  export {
3
3
  n as BentoInputField,
4
4
  a as BentoInputFieldElementPosition,
@@ -1,4 +1,4 @@
1
- import { B as t } from "./chunks/input-time.BiOHvUEA.js";
1
+ import { B as t } from "./chunks/input-time.Bf-ZrCPX.js";
2
2
  export {
3
3
  t as BentoInputTime
4
4
  };
package/dist/internal.js CHANGED
@@ -1,16 +1,16 @@
1
- import { d as e, e as t } from "./chunks/button-actions.D1jRC1fs.js";
1
+ import { d as e, e as t } from "./chunks/button-actions.DKc63aCb.js";
2
2
  import { B as s, D as i, a as n, b as p } from "./chunks/dialog-page.DYWnKdnP.js";
3
- import { b as C, u as x, c as I } from "./chunks/use-cached-selected-values.D0s14AxT.js";
3
+ import { d as C, u as x, e as I } from "./chunks/dropdown.CIEm6MBB.js";
4
4
  import { B as f, a as m, T as E } from "./chunks/tooltip.CnkqMpOA.js";
5
- import { B as d } from "./chunks/button-actions-with-menu.BlOBDvdL.js";
6
- import { b as G, c as O, C as u, d as B, a as A } from "./chunks/calendar.D0JIbmoS.js";
5
+ import { B as _ } from "./chunks/button-actions-with-menu.DqDQ_gVX.js";
6
+ import { b as G, c as O, C as u, d as B, a as A } from "./chunks/calendar.BckAv9N_.js";
7
7
  import { C as P } from "./chunks/controls-group.Bzpsrtcx.js";
8
- import { C as b, a as g } from "./chunks/copy.DVB6pQC8.js";
9
- import { E as D } from "./chunks/error-message.CyERcfdt.js";
10
- import { F as S } from "./chunks/field-label.CdVbAfK-.js";
8
+ import { C as g, a as y } from "./chunks/copy.DVB6pQC8.js";
9
+ import { E as F } from "./chunks/error-message.CyERcfdt.js";
10
+ import { F as b } from "./chunks/field-label.CdVbAfK-.js";
11
11
  import { F as W } from "./chunks/fixed-scroller.4xAzt_OI.js";
12
12
  import { G as v, a as H } from "./chunks/grid-layout.1aIiz2N_.js";
13
- import { H as K, I as R } from "./chunks/header-meta.6rZdOgXD.js";
13
+ import { H as K, I as R } from "./chunks/header-meta.D1eb37QJ.js";
14
14
  import { L as U } from "./chunks/listbox-option-tag.Ddyl2vuc.js";
15
15
  export {
16
16
  e as BUTTON_ACTIONS_WITH_MENU_CONTAINER_INJECTION_KEY,
@@ -19,20 +19,20 @@ export {
19
19
  t as BentoTeleport,
20
20
  f as BentoTooltipPosition,
21
21
  m as BentoTooltipState,
22
- d as ButtonActionsWithMenu,
22
+ _ as ButtonActionsWithMenu,
23
23
  G as Calendar,
24
24
  O as CalendarEvent,
25
25
  u as CalendarFirstDayOfWeek,
26
26
  B as CalendarPosition,
27
27
  A as CalendarVariant,
28
28
  P as ControlsGroup,
29
- b as Copy,
30
- g as CopyTooltipState,
29
+ g as Copy,
30
+ y as CopyTooltipState,
31
31
  i as DIALOG_PAGE_CONFIG_INJECTION_KEY,
32
32
  n as DIALOG_PAGE_REGISTER_PAGE_INJECTION_KEY,
33
33
  p as DialogPage,
34
- D as ErrorMessage,
35
- S as FieldLabel,
34
+ F as ErrorMessage,
35
+ b as FieldLabel,
36
36
  W as FixedScroller,
37
37
  v as GridLayout,
38
38
  H as GridLayoutContainerType,
package/dist/menu.js CHANGED
@@ -1,4 +1,4 @@
1
- import { f as o, g as t } from "./chunks/button-actions.D1jRC1fs.js";
1
+ import { f as o, g as t } from "./chunks/button-actions.DKc63aCb.js";
2
2
  export {
3
3
  o as BentoMenu,
4
4
  t as BentoMenuEvent
@@ -1,4 +1,4 @@
1
- import { m as o, B as a } from "./chunks/modal-fullscreen.OS6KhVdg.js";
1
+ import { m as o, B as a } from "./chunks/modal-fullscreen.Dg1Hi3jB.js";
2
2
  export {
3
3
  o as BentoModalFullscreen,
4
4
  a as BentoModalFullscreenPage
package/dist/modal.js CHANGED
@@ -1,5 +1,5 @@
1
- import { B as e } from "./chunks/modal.DHL3TGHv.js";
2
- import { B as n, a as l, b as B, c as d, d as M, e as s, f as r, g as i } from "./chunks/base-modal.CC7gm9fc.js";
1
+ import { B as e } from "./chunks/modal.DZTEFM_E.js";
2
+ import { B as n, a as l, b as B, c as d, d as M, e as s, f as r, g as i } from "./chunks/base-modal.CDMoF3b_.js";
3
3
  export {
4
4
  e as BentoModal,
5
5
  n as BentoModalColumnLayoutVariant,
@@ -1,4 +1,4 @@
1
- import { B as n } from "./chunks/pagination.DItyAwy1.js";
1
+ import { B as n } from "./chunks/pagination.C6HIPq58.js";
2
2
  export {
3
3
  n as BentoPagination
4
4
  };
package/dist/popover.js CHANGED
@@ -1,4 +1,4 @@
1
- import { h as r } from "./chunks/button-actions.D1jRC1fs.js";
1
+ import { h as r } from "./chunks/button-actions.DKc63aCb.js";
2
2
  import { B as p } from "./chunks/popover.types.B9TXaqAt.js";
3
3
  export {
4
4
  r as BentoPopover,
@@ -1,4 +1,4 @@
1
- import { r as t } from "./chunks/rich-text-editor.D5URbwnM.js";
1
+ import { r as t } from "./chunks/rich-text-editor.-B96ibAd.js";
2
2
  export {
3
3
  t as BentoRichTextEditor
4
4
  };
@@ -1,5 +1,5 @@
1
- import { B as r, a as t, b as B } from "./chunks/search-bar.D-WK8eMQ.js";
2
- import { u as o } from "./chunks/dropdown.C70AlvOT.js";
1
+ import { B as r, a as t, b as B } from "./chunks/search-bar.DunTxVmZ.js";
2
+ import { f as o } from "./chunks/dropdown.CIEm6MBB.js";
3
3
  export {
4
4
  r as BentoSearchBar,
5
5
  t as BentoSearchBarEvent,
@@ -1,4 +1,4 @@
1
- import { s as e } from "./chunks/secondary-nav.C7lEDaoj.js";
1
+ import { s as e } from "./chunks/secondary-nav.CGGPkYpc.js";
2
2
  export {
3
3
  e as BentoSecondaryNav
4
4
  };
@@ -1,4 +1,4 @@
1
- import { B as t, s as a, a as n } from "./chunks/selection-card-group.CiFW4AZR.js";
1
+ import { B as t, s as a, a as n } from "./chunks/selection-card-group.ZZ_qF1L1.js";
2
2
  export {
3
3
  t as BentoSelectionCard,
4
4
  a as BentoSelectionCardGroup,
package/dist/sidepanel.js CHANGED
@@ -1,4 +1,4 @@
1
- import { s as n, B as o, a as t } from "./chunks/sidepanel.B8zQp_MJ.js";
1
+ import { s as n, B as o, a as t } from "./chunks/sidepanel.ChuW63J7.js";
2
2
  export {
3
3
  n as BentoSidepanel,
4
4
  o as BentoSidepanelEvent,
@@ -1,4 +1,4 @@
1
- import { s as r, a as t, b as a, c as o, d as i, B as n, e as u, f as d } from "./chunks/summary-grid.types.CkqRXOKv.js";
1
+ import { s as r, a as t, b as a, c as o, d as i, B as n, e as u, f as d } from "./chunks/summary-grid.types.BnEhhDQz.js";
2
2
  export {
3
3
  r as BentoSummaryGrid,
4
4
  t as BentoSummaryGridItemAmount,
package/dist/timeline.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t, B as i, a, b as m, c as o, d as l } from "./chunks/timeline-item.sdxvTjmS.js";
1
+ import { t, B as i, a, b as m, c as o, d as l } from "./chunks/timeline-item.DzMh520x.js";
2
2
  export {
3
3
  t as BentoTimeline,
4
4
  i as BentoTimelineGapUnit,
package/dist/tutorial.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as r } from "./chunks/tutorial.Ba9dqb2j.js";
1
+ import { t as r } from "./chunks/tutorial.CkeL_7Je.js";
2
2
  export {
3
3
  r as BentoTutorial
4
4
  };
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "framework": "vue",
3
3
  "name": "@adyen/bento-vue2",
4
- "version": "1.96.1",
4
+ "version": "1.97.0",
5
5
  "contributions": {
6
6
  "html": {
7
7
  "description-markup": "markdown",
@@ -2670,6 +2670,15 @@
2670
2670
  },
2671
2671
  "default": "null"
2672
2672
  },
2673
+ {
2674
+ "name": "yearRange",
2675
+ "description": "Range of years to be selectable from the year dropdown",
2676
+ "value": {
2677
+ "kind": "expression",
2678
+ "type": "CalendarYearRange"
2679
+ },
2680
+ "default": "() => ({})"
2681
+ },
2673
2682
  {
2674
2683
  "name": "variant",
2675
2684
  "description": "The type of calendar to display. Defaults to showing days.",
@@ -2776,7 +2785,17 @@
2776
2785
  "kind": "expression",
2777
2786
  "type": "Date"
2778
2787
  },
2779
- "default": "null"
2788
+ "default": "undefined"
2789
+ },
2790
+ {
2791
+ "name": "yearRange",
2792
+ "required": false,
2793
+ "description": "Range of years to be selectable from the year dropdown.\nThis is capped by the min & max properties (if present)",
2794
+ "value": {
2795
+ "kind": "expression",
2796
+ "type": "CalendarYearRange"
2797
+ },
2798
+ "default": "undefined"
2780
2799
  }
2781
2800
  ],
2782
2801
  "events": [
@@ -2886,6 +2905,16 @@
2886
2905
  },
2887
2906
  "default": "null"
2888
2907
  },
2908
+ {
2909
+ "name": "yearRange",
2910
+ "required": false,
2911
+ "description": "Range of years to be selectable from the year dropdown",
2912
+ "value": {
2913
+ "kind": "expression",
2914
+ "type": "CalendarYearRange"
2915
+ },
2916
+ "default": "undefined"
2917
+ },
2889
2918
  {
2890
2919
  "name": "position",
2891
2920
  "required": false,
@@ -3051,6 +3080,60 @@
3051
3080
  "symbol": "default"
3052
3081
  }
3053
3082
  },
3083
+ {
3084
+ "name": "calendar-year-selector",
3085
+ "description": "",
3086
+ "attributes": [
3087
+ {
3088
+ "name": "currentYear",
3089
+ "required": true,
3090
+ "description": "The currently selected/displayed year",
3091
+ "value": {
3092
+ "kind": "expression",
3093
+ "type": "number"
3094
+ }
3095
+ },
3096
+ {
3097
+ "name": "yearRange",
3098
+ "required": false,
3099
+ "description": "Range of years to be selectable from the year dropdown",
3100
+ "value": {
3101
+ "kind": "expression",
3102
+ "type": "CalendarYearRange"
3103
+ },
3104
+ "default": "undefined"
3105
+ },
3106
+ {
3107
+ "name": "max",
3108
+ "required": false,
3109
+ "description": "Sets a maximum limit for selectable dates - dates after `max` will not be selectable",
3110
+ "value": {
3111
+ "kind": "expression",
3112
+ "type": "Date"
3113
+ },
3114
+ "default": "undefined"
3115
+ },
3116
+ {
3117
+ "name": "min",
3118
+ "required": false,
3119
+ "description": "Sets a minimum limit for selectable dates - dates before `min` will not be selectable",
3120
+ "value": {
3121
+ "kind": "expression",
3122
+ "type": "Date"
3123
+ },
3124
+ "default": "undefined"
3125
+ }
3126
+ ],
3127
+ "events": [
3128
+ {
3129
+ "name": "update:year"
3130
+ }
3131
+ ],
3132
+ "source": {
3133
+ "module": "./src/components/internal/calendar/components/calendar-year-selector/calendar-year-selector.vue",
3134
+ "symbol": "default"
3135
+ }
3136
+ },
3054
3137
  {
3055
3138
  "name": "card",
3056
3139
  "description": "",
@@ -5920,6 +6003,16 @@
5920
6003
  },
5921
6004
  "default": "null"
5922
6005
  },
6006
+ {
6007
+ "name": "yearRange",
6008
+ "required": false,
6009
+ "description": "Range of years to be selectable from the year dropdown",
6010
+ "value": {
6011
+ "kind": "expression",
6012
+ "type": "BentoDatePickerYearRange"
6013
+ },
6014
+ "default": "undefined"
6015
+ },
5923
6016
  {
5924
6017
  "name": "variant",
5925
6018
  "required": false,
@@ -6176,6 +6269,16 @@
6176
6269
  },
6177
6270
  "default": "undefined"
6178
6271
  },
6272
+ {
6273
+ "name": "yearRange",
6274
+ "required": false,
6275
+ "description": "Range of years to be selectable from the year dropdown",
6276
+ "value": {
6277
+ "kind": "expression",
6278
+ "type": "BentoDateRangePickerYearRange"
6279
+ },
6280
+ "default": "undefined"
6281
+ },
6179
6282
  {
6180
6283
  "name": "hasActions",
6181
6284
  "required": false,
@@ -6316,6 +6419,14 @@
6316
6419
  "kind": "expression",
6317
6420
  "type": "Calendar.props.variant"
6318
6421
  }
6422
+ },
6423
+ {
6424
+ "name": "yearRange",
6425
+ "description": "Range of years to be selectable from the year dropdown",
6426
+ "value": {
6427
+ "kind": "expression",
6428
+ "type": "Calendar.props.yearRange"
6429
+ }
6319
6430
  }
6320
6431
  ],
6321
6432
  "slots": [
@@ -6339,6 +6450,98 @@
6339
6450
  "symbol": "default"
6340
6451
  }
6341
6452
  },
6453
+ {
6454
+ "name": "date-time-input",
6455
+ "description": "",
6456
+ "attributes": [
6457
+ {
6458
+ "name": "dateModelValue",
6459
+ "required": false,
6460
+ "description": "Model value for the date input field.",
6461
+ "value": {
6462
+ "kind": "expression",
6463
+ "type": "string"
6464
+ },
6465
+ "default": "''"
6466
+ },
6467
+ {
6468
+ "name": "dateProps",
6469
+ "required": false,
6470
+ "description": "Props passed directly to the inner `bento-input-field`.\nAccepts all `BentoInputFieldProps` except `modelValue` and `value`.",
6471
+ "value": {
6472
+ "kind": "expression",
6473
+ "type": "Omit"
6474
+ },
6475
+ "default": "() => ({})"
6476
+ },
6477
+ {
6478
+ "name": "errorMessage",
6479
+ "required": false,
6480
+ "description": "Shared error message displayed below the input group.\nWhen set, individual error messages are visually hidden and a single error spans the group.",
6481
+ "value": {
6482
+ "kind": "expression",
6483
+ "type": "union"
6484
+ },
6485
+ "default": "null"
6486
+ },
6487
+ {
6488
+ "name": "showTimeInput",
6489
+ "required": false,
6490
+ "description": "Whether to display the time input alongside the date input.",
6491
+ "value": {
6492
+ "kind": "expression",
6493
+ "type": "boolean"
6494
+ },
6495
+ "default": "false"
6496
+ },
6497
+ {
6498
+ "name": "timeModelValue",
6499
+ "required": false,
6500
+ "description": "Model value for the time input field.",
6501
+ "value": {
6502
+ "kind": "expression",
6503
+ "type": "string"
6504
+ },
6505
+ "default": "''"
6506
+ },
6507
+ {
6508
+ "name": "timeProps",
6509
+ "required": false,
6510
+ "description": "Props passed directly to the inner `bento-input-time`.\nAccepts all `BentoInputTimeProps` except `modelValue`.",
6511
+ "value": {
6512
+ "kind": "expression",
6513
+ "type": "Omit"
6514
+ },
6515
+ "default": "() => ({})"
6516
+ }
6517
+ ],
6518
+ "events": [
6519
+ {
6520
+ "name": "update:date-model-value",
6521
+ "description": "Emitted when the date input value changes."
6522
+ },
6523
+ {
6524
+ "name": "date:keydown",
6525
+ "description": "Emitted on keydown within the date input."
6526
+ },
6527
+ {
6528
+ "name": "update:time-model-value",
6529
+ "description": "Emitted when the time input value changes."
6530
+ },
6531
+ {
6532
+ "name": "time:error",
6533
+ "description": "Emitted when the time input has a validation error."
6534
+ },
6535
+ {
6536
+ "name": "time:valid",
6537
+ "description": "Emitted when the time input value passes validation."
6538
+ }
6539
+ ],
6540
+ "source": {
6541
+ "module": "./src/components/date-range-picker/components/date-time-input/date-time-input.vue",
6542
+ "symbol": "default"
6543
+ }
6544
+ },
6342
6545
  {
6343
6546
  "name": "date-time-picker",
6344
6547
  "description": "",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adyen/bento-vue2",
3
- "version": "1.96.1",
3
+ "version": "1.97.0",
4
4
  "description": "Adyen Bento Vue2 components",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -51,7 +51,7 @@
51
51
  "unified": "11.0.5",
52
52
  "uuid": "11.0.5",
53
53
  "vue-demi": "0.14.10",
54
- "@adyen/bento-design-tokens": "1.96.1"
54
+ "@adyen/bento-design-tokens": "1.97.0"
55
55
  },
56
56
  "dependenciesMeta": {
57
57
  "@adyen/bento-vue-i18n-demi": {
@@ -134,8 +134,8 @@
134
134
  "zod": "3.25.35",
135
135
  "@adyen/bento-cli": "0.10.4",
136
136
  "@adyen/bento-vue-i18n-demi": "0.1.0",
137
- "@adyen/ui-assets-icons-16": "7.9.3",
138
137
  "@adyen/bento-core": "0.0.1",
138
+ "@adyen/ui-assets-icons-16": "7.9.3",
139
139
  "@adyen/ui-assets-payment-method-icons": "11.0.0"
140
140
  },
141
141
  "optionalDependencies": {