@adyen/bento-vue2 1.67.0 → 1.68.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 (175) hide show
  1. package/dist/@types/index.d.ts +2066 -2264
  2. package/dist/action-bar.js +1 -1
  3. package/dist/assets/accordion-item.css +1 -1
  4. package/dist/assets/action-bar.css +1 -1
  5. package/dist/assets/base-modal.css +1 -1
  6. package/dist/assets/button-actions.css +1 -1
  7. package/dist/assets/card.css +1 -1
  8. package/dist/assets/checkbox.css +1 -1
  9. package/dist/assets/data-grid.css +1 -1
  10. package/dist/assets/dialog-page.css +1 -1
  11. package/dist/assets/dropdown.css +1 -1
  12. package/dist/assets/file-uploader.css +1 -1
  13. package/dist/assets/filter-bar.css +1 -1
  14. package/dist/assets/header-meta.css +1 -0
  15. package/dist/assets/header-with-views.css +1 -1
  16. package/dist/assets/header.css +1 -1
  17. package/dist/assets/input-field-phone-number.css +1 -1
  18. package/dist/assets/input-field.css +1 -1
  19. package/dist/assets/inspector.css +1 -1
  20. package/dist/assets/menu.css +1 -1
  21. package/dist/assets/modal-fullscreen.css +1 -1
  22. package/dist/assets/popover.css +1 -1
  23. package/dist/assets/sidepanel.css +1 -1
  24. package/dist/assets/summary-grid.css +1 -1
  25. package/dist/assets/textarea.css +1 -1
  26. package/dist/assets/use-cached-selected-values.css +1 -1
  27. package/dist/button.js +1 -1
  28. package/dist/card.js +1 -1
  29. package/dist/checkbox.js +2 -2
  30. package/dist/chunks/{action-bar.BxX3I27_.js → action-bar.Dy6tfK8c.js} +4 -4
  31. package/dist/chunks/{action-bar.BxX3I27_.js.map → action-bar.Dy6tfK8c.js.map} +1 -1
  32. package/dist/chunks/{base-modal.QGDM_kjG.js → base-modal.CkkfT6r6.js} +55 -118
  33. package/dist/chunks/base-modal.CkkfT6r6.js.map +1 -0
  34. package/dist/chunks/{button-actions-with-menu.itkbcqzk.js → button-actions-with-menu.CcxUTbsI.js} +3 -3
  35. package/dist/chunks/{button-actions-with-menu.itkbcqzk.js.map → button-actions-with-menu.CcxUTbsI.js.map} +1 -1
  36. package/dist/chunks/{button-actions.BKdI_ooV.js → button-actions.Ju27CRNG.js} +2 -2
  37. package/dist/chunks/button-actions.Ju27CRNG.js.map +1 -0
  38. package/dist/chunks/{card.BktfAMv5.js → card.CASAAsuJ.js} +2 -2
  39. package/dist/chunks/{card.BktfAMv5.js.map → card.CASAAsuJ.js.map} +1 -1
  40. package/dist/chunks/{checkbox-group.BVMGnokj.js → checkbox-group.QdX-NrSG.js} +2 -2
  41. package/dist/chunks/{checkbox-group.BVMGnokj.js.map → checkbox-group.QdX-NrSG.js.map} +1 -1
  42. package/dist/chunks/{checkbox.Bg5FM5Oa.js → checkbox.DCD6SSXC.js} +38 -37
  43. package/dist/chunks/checkbox.DCD6SSXC.js.map +1 -0
  44. package/dist/chunks/{code-snippet.DDiQ9R3o.js → code-snippet.dIKi0D7d.js} +3 -3
  45. package/dist/chunks/{code-snippet.DDiQ9R3o.js.map → code-snippet.dIKi0D7d.js.map} +1 -1
  46. package/dist/chunks/{country.Df7erZov.js → country.melpzEsY.js} +2 -2
  47. package/dist/chunks/{country.Df7erZov.js.map → country.melpzEsY.js.map} +1 -1
  48. package/dist/chunks/{dashboard-section.Beep1lY8.js → dashboard-section.DBT99mLj.js} +2 -2
  49. package/dist/chunks/{dashboard-section.Beep1lY8.js.map → dashboard-section.DBT99mLj.js.map} +1 -1
  50. package/dist/chunks/{dashed-underline.BQwLgzz6.js → dashed-underline.BbH6Lnd2.js} +2 -2
  51. package/dist/chunks/{dashed-underline.BQwLgzz6.js.map → dashed-underline.BbH6Lnd2.js.map} +1 -1
  52. package/dist/chunks/{data-grid-template.nkx0pCMA.js → data-grid-template.B2lDfM2o.js} +2 -2
  53. package/dist/chunks/{data-grid-template.nkx0pCMA.js.map → data-grid-template.B2lDfM2o.js.map} +1 -1
  54. package/dist/chunks/{data-grid.CkwZVy3a.js → data-grid.B7Z9_WDY.js} +1198 -1143
  55. package/dist/chunks/data-grid.B7Z9_WDY.js.map +1 -0
  56. package/dist/chunks/{date-picker.BLBXaDHv.js → date-picker.DGIS6Pp-.js} +2 -2
  57. package/dist/chunks/{date-picker.BLBXaDHv.js.map → date-picker.DGIS6Pp-.js.map} +1 -1
  58. package/dist/chunks/{date-range-picker.am63DgMj.js → date-range-picker.CIaKRXIQ.js} +5 -5
  59. package/dist/chunks/{date-range-picker.am63DgMj.js.map → date-range-picker.CIaKRXIQ.js.map} +1 -1
  60. package/dist/chunks/dropdown-default-textbox.94q6opSD.js.map +1 -1
  61. package/dist/chunks/dropdown-tag.BaosvGGZ.js +240 -0
  62. package/dist/chunks/dropdown-tag.BaosvGGZ.js.map +1 -0
  63. package/dist/chunks/{dropdown.HA6ISg2h.js → dropdown.DazYAy4B.js} +220 -363
  64. package/dist/chunks/dropdown.DazYAy4B.js.map +1 -0
  65. package/dist/chunks/es6.n1ewaW31.js.map +1 -1
  66. package/dist/chunks/{filter-bar.DbqsoAI1.js → filter-bar.DL19SXF1.js} +674 -669
  67. package/dist/chunks/filter-bar.DL19SXF1.js.map +1 -0
  68. package/dist/chunks/{footer-actions.BUfQFz7J.js → footer-actions.BE_zzX-e.js} +2 -2
  69. package/dist/chunks/{footer-actions.BUfQFz7J.js.map → footer-actions.BE_zzX-e.js.map} +1 -1
  70. package/dist/chunks/header-meta.CfloYa86.js +183 -0
  71. package/dist/chunks/header-meta.CfloYa86.js.map +1 -0
  72. package/dist/chunks/{header-with-views.JllLR2nW.js → header-with-views.Bxvu8mq_.js} +526 -520
  73. package/dist/chunks/header-with-views.Bxvu8mq_.js.map +1 -0
  74. package/dist/chunks/header.DvHS-PnC.js +103 -0
  75. package/dist/chunks/header.DvHS-PnC.js.map +1 -0
  76. package/dist/chunks/{input-field-password.BtOdV0gF.js → input-field-password.C1zTapiN.js} +4 -4
  77. package/dist/chunks/{input-field-password.BtOdV0gF.js.map → input-field-password.C1zTapiN.js.map} +1 -1
  78. package/dist/chunks/{input-field-phone-number.Dq-LnGag.js → input-field-phone-number.K8BYjWfa.js} +623 -607
  79. package/dist/chunks/{input-field-phone-number.Dq-LnGag.js.map → input-field-phone-number.K8BYjWfa.js.map} +1 -1
  80. package/dist/chunks/{input-field.Bg77qHT2.js → input-field.5S-pUNxA.js} +7 -7
  81. package/dist/chunks/input-field.5S-pUNxA.js.map +1 -0
  82. package/dist/chunks/{menu.EgYjFAku.js → menu.dX3_vU05.js} +154 -153
  83. package/dist/chunks/{menu.EgYjFAku.js.map → menu.dX3_vU05.js.map} +1 -1
  84. package/dist/chunks/{modal-fullscreen.BNTUOC7o.js → modal-fullscreen.DHotw1RI.js} +76 -63
  85. package/dist/chunks/modal-fullscreen.DHotw1RI.js.map +1 -0
  86. package/dist/chunks/{modal.OvB4kEGR.js → modal.eoNQ6E3U.js} +4 -4
  87. package/dist/chunks/{modal.OvB4kEGR.js.map → modal.eoNQ6E3U.js.map} +1 -1
  88. package/dist/chunks/{pagination.Dw153NzQ.js → pagination.4J7ZMyf5.js} +2 -2
  89. package/dist/chunks/{pagination.Dw153NzQ.js.map → pagination.4J7ZMyf5.js.map} +1 -1
  90. package/dist/chunks/popover.Bo4Bkudr.js +145 -0
  91. package/dist/chunks/popover.Bo4Bkudr.js.map +1 -0
  92. package/dist/chunks/popover.types.CBqyA4ly.js +6 -0
  93. package/dist/chunks/popover.types.CBqyA4ly.js.map +1 -0
  94. package/dist/chunks/{rich-text-editor.CRJRvfJn.js → rich-text-editor.BUKLdRkN.js} +2 -2
  95. package/dist/chunks/{rich-text-editor.CRJRvfJn.js.map → rich-text-editor.BUKLdRkN.js.map} +1 -1
  96. package/dist/chunks/{search-bar.BTZSePJh.js → search-bar.CuBj5FAE.js} +3 -3
  97. package/dist/chunks/{search-bar.BTZSePJh.js.map → search-bar.CuBj5FAE.js.map} +1 -1
  98. package/dist/chunks/{secondary-nav.BBhSBNn7.js → secondary-nav.C6usurfD.js} +2 -2
  99. package/dist/chunks/{secondary-nav.BBhSBNn7.js.map → secondary-nav.C6usurfD.js.map} +1 -1
  100. package/dist/chunks/{sidepanel.Dt-BnFzN.js → sidepanel.DyThBUgV.js} +2 -2
  101. package/dist/chunks/{sidepanel.Dt-BnFzN.js.map → sidepanel.DyThBUgV.js.map} +1 -1
  102. package/dist/chunks/{summary-grid.types.DsvtLg3D.js → summary-grid.types.D_FU3sUq.js} +4 -4
  103. package/dist/chunks/summary-grid.types.D_FU3sUq.js.map +1 -0
  104. package/dist/chunks/{textarea.RAU710Uw.js → textarea.UPM6N9V1.js} +7 -7
  105. package/dist/chunks/textarea.UPM6N9V1.js.map +1 -0
  106. package/dist/chunks/{timeline-item.Dz66luo5.js → timeline-item.DqLhj0Lb.js} +3 -3
  107. package/dist/chunks/{timeline-item.Dz66luo5.js.map → timeline-item.DqLhj0Lb.js.map} +1 -1
  108. package/dist/chunks/{tutorial.DAKO-fKz.js → tutorial.DRRfp81j.js} +7 -6
  109. package/dist/chunks/{tutorial.DAKO-fKz.js.map → tutorial.DRRfp81j.js.map} +1 -1
  110. package/dist/chunks/{use-cached-selected-values.DQPABFfG.js → use-cached-selected-values.0EeyFfyF.js} +413 -410
  111. package/dist/chunks/use-cached-selected-values.0EeyFfyF.js.map +1 -0
  112. package/dist/chunks/{use-country-items.HFnjuDsG.js → use-country-items.BllTb5MK.js} +2 -2
  113. package/dist/chunks/{use-country-items.HFnjuDsG.js.map → use-country-items.BllTb5MK.js.map} +1 -1
  114. package/dist/chunks/{use-country-phon-code.DVgE19zT.js → use-country-phon-code.BOaJ9PDl.js} +507 -498
  115. package/dist/chunks/{use-country-phon-code.DVgE19zT.js.map → use-country-phon-code.BOaJ9PDl.js.map} +1 -1
  116. package/dist/code-snippet.js +1 -1
  117. package/dist/country.js +2 -2
  118. package/dist/dashboard-template.js +1 -1
  119. package/dist/dashed-underline.js +1 -1
  120. package/dist/data-grid-template.js +1 -1
  121. package/dist/data-grid.js +1 -1
  122. package/dist/date-picker.js +1 -1
  123. package/dist/date-range-picker.js +1 -1
  124. package/dist/dropdown.js +3 -3
  125. package/dist/filter-bar.js +1 -1
  126. package/dist/header-with-views.js +1 -1
  127. package/dist/header.js +1 -1
  128. package/dist/index.js +155 -154
  129. package/dist/index.js.map +1 -1
  130. package/dist/input-field-password.js +1 -1
  131. package/dist/input-field-phone-number.js +1 -1
  132. package/dist/input-field.js +1 -1
  133. package/dist/internal.js +15 -14
  134. package/dist/menu.js +1 -1
  135. package/dist/modal-fullscreen.js +1 -1
  136. package/dist/modal.js +11 -11
  137. package/dist/pagination.js +1 -1
  138. package/dist/popover.js +3 -2
  139. package/dist/popover.js.map +1 -1
  140. package/dist/rich-text-editor.js +1 -1
  141. package/dist/search-bar.js +2 -2
  142. package/dist/secondary-nav.js +1 -1
  143. package/dist/sidepanel.js +1 -1
  144. package/dist/styles/bento-dark.css +10 -2
  145. package/dist/styles/bento-light.css +10 -2
  146. package/dist/styles/bento.css +10 -2
  147. package/dist/styles/legacy.css +10 -2
  148. package/dist/styles/styleguide.css +10 -2
  149. package/dist/summary-grid.js +1 -1
  150. package/dist/textarea.js +1 -1
  151. package/dist/timeline.js +1 -1
  152. package/dist/tutorial.js +1 -1
  153. package/dist/web-types.json +265 -51
  154. package/package.json +6 -6
  155. package/dist/assets/info-icon-with-popover.css +0 -1
  156. package/dist/chunks/base-modal.QGDM_kjG.js.map +0 -1
  157. package/dist/chunks/button-actions.BKdI_ooV.js.map +0 -1
  158. package/dist/chunks/checkbox.Bg5FM5Oa.js.map +0 -1
  159. package/dist/chunks/data-grid.CkwZVy3a.js.map +0 -1
  160. package/dist/chunks/dropdown-tag.DYIkCBa6.js +0 -215
  161. package/dist/chunks/dropdown-tag.DYIkCBa6.js.map +0 -1
  162. package/dist/chunks/dropdown.HA6ISg2h.js.map +0 -1
  163. package/dist/chunks/filter-bar.DbqsoAI1.js.map +0 -1
  164. package/dist/chunks/header-with-views.JllLR2nW.js.map +0 -1
  165. package/dist/chunks/header.04Y0unpy.js +0 -188
  166. package/dist/chunks/header.04Y0unpy.js.map +0 -1
  167. package/dist/chunks/info-icon-with-popover.B1DnkW4B.js +0 -71
  168. package/dist/chunks/info-icon-with-popover.B1DnkW4B.js.map +0 -1
  169. package/dist/chunks/input-field.Bg77qHT2.js.map +0 -1
  170. package/dist/chunks/modal-fullscreen.BNTUOC7o.js.map +0 -1
  171. package/dist/chunks/popover.BGHbPUOr.js +0 -295
  172. package/dist/chunks/popover.BGHbPUOr.js.map +0 -1
  173. package/dist/chunks/summary-grid.types.DsvtLg3D.js.map +0 -1
  174. package/dist/chunks/textarea.RAU710Uw.js.map +0 -1
  175. package/dist/chunks/use-cached-selected-values.DQPABFfG.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/composables/use-bento-toast-controller/install.ts","../src/composables/use-bento-theme/install.ts","../src/install.ts"],"sourcesContent":["import { type Ref, ref, shallowRef } from 'vue';\nimport * as z from 'zod';\nimport type { ZodSchema } from 'zod';\nimport { allKeys, ErrorBag, UseForm } from './use-form.types';\n\n/**\n * Composable that tansforms 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 For usage with Zod/v3. Migrate to Zod/v4 and 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 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 For usage with Zod/v3. Migrate to Zod/v4 and 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']>]?: 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 ocurrance of a fild 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 { BentoTheme } from './install';\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 { 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","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","import { type App, isVue2, type Vue2 } from 'vue-demi';\nimport { useBentoThemeKey } from './use-bento-theme.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 enum BentoTheme {\n LEGACY = 'b-legacy-theme',\n STYLEGUIDE = 'b-styleguide-theme',\n\n /**\n * @deprecated in favor of {@link BENTO_LIGHT}. To be removed in v2.0.0.\n */\n BENTO = '',\n\n BENTO_LIGHT = 'b-light-theme',\n BENTO_DARK = 'b-dark-theme',\n BENTO_SYSTEM = 'b-system',\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 type { PluginObject } from 'vue';\nimport installToast from './composables/use-bento-toast-controller/install';\nimport installTheme, { BentoTheme, setTheme } from './composables/use-bento-theme/install';\nimport { deprecate } from './utils/ts/deprecate';\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.LEGACY) {\n await import('@adyen/bento-design-tokens/dist/css/bento/variables-legacy.css');\n } else 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.LEGACY) {\n setTheme(BentoTheme.LEGACY);\n } else 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"],"names":["toTypedSchema","formSchema","getInitialFormValues","schema","z","key","value","normalizeFormPath","issue","useForm","validationSchema","errors","shallowRef","errorBag","ref","values","cleanErrors","resetForm","validSchema","submitted","error","path","useBentoThemeKey","useBentoTheme","bentoThemeController","_a","getCurrentInstance","printDevelopmentWarning","installToast","Vue","toastStackInjectionKey","createToastStack","getTheme","getThemeForSystemPreference","BentoTheme","setTheme","theme","currentTheme","systemTheme","themeToSet","installTheme","themeProvider","plugin","withToast","withUtilityClasses","withDesignTokensCSSInjection","deprecate"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBO,SAASA,EAAmCC,GAAe;AACvD,SAAAA;AACX;AA4BA,SAASC,EAA0CC,GAAmC;AAClF,MAAMC,KAAKD,aAAkBC,EAAE;AAC3B,WAAO,OAAO;AAAA,MACV,OAAO,QAAQD,EAAO,KAAK,EAAE,IAAI,CAAC,CAACE,GAAKC,CAAK,MACnCF,KAAKE,aAAiBF,EAAE,aAEnB,CAACC,GAAKC,EAAM,KAAK,cAAc,IAGpCF,KAAKE,aAAiBF,EAAE,YACnB,CAACC,GAAKH,EAAqBI,CAAK,CAAC,IAGrC,CAACD,GAAK,MAAS,CACzB;AAAA,IACL;AAIR;AAOA,SAASE,EAAkBC,GAAmB;AACnC,SAAAA,EAAM,KAAK,KAAK,GAAG;AAC9B;AA6CO,SAASC,EAA6B;AAAA,EACzC,kBAAAC;AACJ,GAUE;AAEQ,QAAAC,IAASC,EAA6C,EAAE,GAExDC,IAA4DC,EAAI,EAAE,GAClEC,IAA2BD,EAAIZ,EAAwBQ,CAAgB,CAAC,GAExEM,IAAc,MAAM;AACtB,IAAAL,E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UF,EAAW,aAC5BC,EAASD,EAAW,UAAU,IACvBE,MAAUF,EAAW,eAC5BC,EAASD,EAAW,YAAY,IACzBE,MAAUF,EAAW,aAC5BC,EAASD,EAAW,UAAU,KACvBE,MAAUF,EAAW,SAClBY,EAAA,4BAA4B,+CAA+C,OAAO,GAC5FX,EAASD,EAAW,WAAW;AAAA,EAGnC;AAER;"}
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/composables/use-bento-toast-controller/install.ts","../src/composables/use-bento-theme/install.ts","../src/install.ts"],"sourcesContent":["import { type Ref, ref, shallowRef } from 'vue';\nimport * as z from 'zod';\nimport type { ZodSchema } from 'zod';\nimport { allKeys, ErrorBag, UseForm } from './use-form.types';\n\n/**\n * Composable that tansforms 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 For usage with Zod/v3. Migrate to Zod/v4 and 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 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 For usage with Zod/v3. Migrate to Zod/v4 and 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']>]?: 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 ocurrance of a fild 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 { BentoTheme } from './install';\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 { 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","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","import { type App, isVue2, type Vue2 } from 'vue-demi';\nimport { useBentoThemeKey } from './use-bento-theme.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 enum BentoTheme {\n LEGACY = 'b-legacy-theme',\n STYLEGUIDE = 'b-styleguide-theme',\n\n /**\n * @deprecated in favor of {@link BENTO_LIGHT}. To be removed in v2.0.0.\n */\n BENTO = '',\n\n BENTO_LIGHT = 'b-light-theme',\n BENTO_DARK = 'b-dark-theme',\n BENTO_SYSTEM = 'b-system',\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 type { PluginObject } from 'vue';\nimport installToast from './composables/use-bento-toast-controller/install';\nimport installTheme, { BentoTheme, setTheme } from './composables/use-bento-theme/install';\nimport { deprecate } from './utils/ts/deprecate';\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.LEGACY) {\n await import('@adyen/bento-design-tokens/dist/css/bento/variables-legacy.css');\n } else 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.LEGACY) {\n setTheme(BentoTheme.LEGACY);\n } else 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"],"names":["toTypedSchema","formSchema","getInitialFormValues","schema","z","key","value","normalizeFormPath","issue","useForm","validationSchema","errors","shallowRef","errorBag","ref","values","cleanErrors","resetForm","validSchema","submitted","error","path","useBentoThemeKey","useBentoTheme","bentoThemeController","_a","getCurrentInstance","printDevelopmentWarning","installToast","Vue","toastStackInjectionKey","createToastStack","getTheme","getThemeForSystemPreference","BentoTheme","setTheme","theme","currentTheme","systemTheme","themeToSet","installTheme","themeProvider","plugin","withToast","withUtilityClasses","withDesignTokensCSSInjection","deprecate"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBO,SAASA,EAAmCC,GAAe;AACvD,SAAAA;AACX;AA4BA,SAASC,EAA0CC,GAAmC;AAClF,MAAMC,KAAKD,aAAkBC,EAAE;AAC3B,WAAO,OAAO;AAAA,MACV,OAAO,QAAQD,EAAO,KAAK,EAAE,IAAI,CAAC,CAACE,GAAKC,CAAK,MACnCF,KAAKE,aAAiBF,EAAE,aAEnB,CAACC,GAAKC,EAAM,KAAK,cAAc,IAGpCF,KAAKE,aAAiBF,EAAE,YACnB,CAACC,GAAKH,EAAqBI,CAAK,CAAC,IAGrC,CAACD,GAAK,MAAS,CACzB;AAAA,IACL;AAIR;AAOA,SAASE,EAAkBC,GAAmB;AACnC,SAAAA,EAAM,KAAK,KAAK,GAAG;AAC9B;AA6CO,SAASC,EAA6B;AAAA,EACzC,kBAAAC;AACJ,GAUE;AAEQ,QAAAC,IAASC,EAA6C,EAAE,GAExDC,IAA4DC,EAAI,EAAE,GAClEC,IAA2BD,EAAIZ,EAAwBQ,CAAgB,CAAC,GAExEM,IAAc,MAAM;AACtB,IAAAL,EAAO,QAAQ,CAAC,GAChBE,EAAS,QAAQ,CAAC;AAAA,EACtB,GAEMI,IAAY,MAAM;AACR,IAAAD,EAAA,GACLD,EAAA,QAAQb,EAAwBQ,CAAgB;AAAA,EAC3D;AA8BO,SAAA;AAAA;AAAA,IAEH,UAAAG;AAAA,IACA,QAAAF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D,EAAW,WAAW;AAAA,EAGnC;AAER;"}
@@ -1,4 +1,4 @@
1
- import { i as a, m as s, r as i, b as c, c as u, a as o } from "./chunks/input-field-password.BtOdV0gF.js";
1
+ import { i as a, m as s, r as i, b as c, c as u, a as o } from "./chunks/input-field-password.C1zTapiN.js";
2
2
  export {
3
3
  a as BentoInputFieldPassword,
4
4
  s as minLength,
@@ -1,4 +1,4 @@
1
- import { i as n } from "./chunks/input-field-phone-number.Dq-LnGag.js";
1
+ import { i as n } from "./chunks/input-field-phone-number.K8BYjWfa.js";
2
2
  export {
3
3
  n as BentoInputFieldPhoneNumber
4
4
  };
@@ -1,4 +1,4 @@
1
- import { B as n, b as a, e as o, c as i, d as s, a as l } from "./chunks/input-field.Bg77qHT2.js";
1
+ import { B as n, b as a, e as o, c as i, d as s, a as l } from "./chunks/input-field.5S-pUNxA.js";
2
2
  export {
3
3
  n as BentoInputField,
4
4
  a as BentoInputFieldElementPosition,
package/dist/internal.js CHANGED
@@ -5,18 +5,18 @@ import { B as I, b as m, a as E, D as T } from "./chunks/dialog-page.CLHZqQeU.js
5
5
  import { E as d, F as N } from "./chunks/error-message.BgxnwPLF.js";
6
6
  import { F as O } from "./chunks/fixed-scroller.XN-jvWqb.js";
7
7
  import { G as A, a as L } from "./chunks/grid-layout.HvTAa4to.js";
8
- import { I as c } from "./chunks/info-icon-with-popover.B1DnkW4B.js";
9
- import { b, c as g, u as y } from "./chunks/use-cached-selected-values.DQPABFfG.js";
10
- import { L as F } from "./chunks/listbox-option-tag.D0Cql_R3.js";
11
- import { B as M } from "./chunks/teleport.BV6zrDjA.js";
12
- import { T as h } from "./chunks/tooltip.wQsyAwkC.js";
13
- import { B as J } from "./chunks/button-actions-with-menu.itkbcqzk.js";
14
- import { f as R } from "./chunks/button-actions.BKdI_ooV.js";
8
+ import { H as c, I as P } from "./chunks/header-meta.CfloYa86.js";
9
+ import { b as g, c as y, u as D } from "./chunks/use-cached-selected-values.0EeyFfyF.js";
10
+ import { L as M } from "./chunks/listbox-option-tag.D0Cql_R3.js";
11
+ import { B as W } from "./chunks/teleport.BV6zrDjA.js";
12
+ import { T as v } from "./chunks/tooltip.wQsyAwkC.js";
13
+ import { B as J } from "./chunks/button-actions-with-menu.CcxUTbsI.js";
14
+ import { f as R } from "./chunks/button-actions.Ju27CRNG.js";
15
15
  export {
16
16
  R as BUTTON_ACTIONS_WITH_MENU_CONTAINER_INJECTION_KEY,
17
17
  I as BentoDialogPageAnimation,
18
- b as BentoListbox,
19
- M as BentoTeleport,
18
+ g as BentoListbox,
19
+ W as BentoTeleport,
20
20
  J as ButtonActionsWithMenu,
21
21
  e as Calendar,
22
22
  r as CalendarEvent,
@@ -34,10 +34,11 @@ export {
34
34
  O as FixedScroller,
35
35
  A as GridLayout,
36
36
  L as GridLayoutContainerType,
37
- c as InfoIconWithPopover,
38
- F as ListboxOptionTag,
39
- h as Tooltip,
40
- g as useCachedSelectedValues,
41
- y as useMultiLevelItems
37
+ c as HeaderMeta,
38
+ P as InfoIconWithPopover,
39
+ M as ListboxOptionTag,
40
+ v as Tooltip,
41
+ y as useCachedSelectedValues,
42
+ D as useMultiLevelItems
42
43
  };
43
44
  //# sourceMappingURL=internal.js.map
package/dist/menu.js CHANGED
@@ -1,4 +1,4 @@
1
- import { B as o, a as t } from "./chunks/menu.EgYjFAku.js";
1
+ import { B as o, a as t } from "./chunks/menu.dX3_vU05.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.BNTUOC7o.js";
1
+ import { m as o, B as a } from "./chunks/modal-fullscreen.DHotw1RI.js";
2
2
  export {
3
3
  o as BentoModalFullscreen,
4
4
  a as BentoModalFullscreenPage
package/dist/modal.js CHANGED
@@ -1,14 +1,14 @@
1
- import { d as e, f as t, g as n, B as l, e as B, c as d, a as M, b as s } from "./chunks/base-modal.QGDM_kjG.js";
2
- import { B as i } from "./chunks/modal.OvB4kEGR.js";
1
+ import { B as e } from "./chunks/modal.eoNQ6E3U.js";
2
+ import { c as n, e as l, f as B, g as d, d as M, b as s, B as r, a as i } from "./chunks/base-modal.CkkfT6r6.js";
3
3
  export {
4
- i as BentoModal,
5
- e as BentoModalColumnLayoutVariant,
6
- t as BentoModalDialogType,
7
- n as BentoModalEvent,
8
- l as BentoModalPage,
9
- B as BentoModalRole,
10
- d as BentoModalSize,
11
- M as BentoModalVariant,
12
- s as BentoModalVariantMapping
4
+ e as BentoModal,
5
+ n as BentoModalColumnLayoutVariant,
6
+ l as BentoModalDialogType,
7
+ B as BentoModalEvent,
8
+ d as BentoModalPage,
9
+ M as BentoModalRole,
10
+ s as BentoModalSize,
11
+ r as BentoModalVariant,
12
+ i as BentoModalVariantMapping
13
13
  };
14
14
  //# sourceMappingURL=modal.js.map
@@ -1,4 +1,4 @@
1
- import { B as n } from "./chunks/pagination.Dw153NzQ.js";
1
+ import { B as n } from "./chunks/pagination.4J7ZMyf5.js";
2
2
  export {
3
3
  n as BentoPagination
4
4
  };
package/dist/popover.js CHANGED
@@ -1,6 +1,7 @@
1
- import { B as r, a as s } from "./chunks/popover.BGHbPUOr.js";
1
+ import { B as r } from "./chunks/popover.Bo4Bkudr.js";
2
+ import { B as p } from "./chunks/popover.types.CBqyA4ly.js";
2
3
  export {
3
4
  r as BentoPopover,
4
- s as BentoPopoverPositions
5
+ p as BentoPopoverPositions
5
6
  };
6
7
  //# sourceMappingURL=popover.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"popover.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"popover.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -1,4 +1,4 @@
1
- import { r as t } from "./chunks/rich-text-editor.CRJRvfJn.js";
1
+ import { r as t } from "./chunks/rich-text-editor.BUKLdRkN.js";
2
2
  export {
3
3
  t as BentoRichTextEditor
4
4
  };
@@ -1,5 +1,5 @@
1
- import { B as r, b as t, a as B } from "./chunks/search-bar.BTZSePJh.js";
2
- import { u as o } from "./chunks/dropdown.HA6ISg2h.js";
1
+ import { B as r, b as t, a as B } from "./chunks/search-bar.CuBj5FAE.js";
2
+ import { u as o } from "./chunks/dropdown.DazYAy4B.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.BBhSBNn7.js";
1
+ import { s as e } from "./chunks/secondary-nav.C6usurfD.js";
2
2
  export {
3
3
  e as BentoSecondaryNav
4
4
  };
package/dist/sidepanel.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as n, B as o, s as t } from "./chunks/sidepanel.Dt-BnFzN.js";
1
+ import { a as n, B as o, s as t } from "./chunks/sidepanel.DyThBUgV.js";
2
2
  export {
3
3
  n as BentoSidepanel,
4
4
  o as BentoSidepanelEvent,
@@ -1130,8 +1130,6 @@
1130
1130
  --b-header-timestamp-gap: var(--b-spacer-060);
1131
1131
  --b-header-timestamp-color: var(--b-color-label-secondary);
1132
1132
  --b-header-description-color: var(--b-color-label-secondary);
1133
- --b-header-meta-container-margin-top: var(--b-spacer-020);
1134
- --b-header-meta-container-gap: var(--b-spacer-020);
1135
1133
  --b-header-info-icon-margin-top: var(--b-spacer-020);
1136
1134
  --b-header-info-icon-margin-left: var(--b-spacer-050);
1137
1135
  --b-header-title-margin-top: var(--b-spacer-010);
@@ -1180,6 +1178,13 @@
1180
1178
  --b-header-with-views-title-gap: var(--b-spacer-030);
1181
1179
  --b-header-with-views-padding-inline: var(--b-spacer-070);
1182
1180
  --b-header-with-views-gap: var(--b-spacer-050);
1181
+ --b-header-meta-timestamp-title-margin-top: var(--b-spacer-020);
1182
+ --b-header-meta-timestamp-margin-block: var(--b-spacer-020);
1183
+ --b-header-meta-timestamp-gap: var(--b-spacer-060);
1184
+ --b-header-meta-timestamp-color: var(--b-color-label-secondary);
1185
+ --b-header-meta-description-color: var(--b-color-label-secondary);
1186
+ --b-header-meta-container-margin-top: var(--b-spacer-020);
1187
+ --b-header-meta-container-gap: var(--b-spacer-020);
1183
1188
  --b-form-layout-title-subsection-margin-top: var(--b-spacer-080);
1184
1189
  --b-form-layout-title-description-color: var(--b-color-label-secondary);
1185
1190
  --b-form-layout-title-color: var(--b-color-label-primary);
@@ -1570,6 +1575,9 @@
1570
1575
  --b-data-grid-column-padding: 7px var(--b-spacer-070);
1571
1576
  --b-data-grid-column-border: var(--b-border-width-s) solid var(--b-color-separator-primary);
1572
1577
  --b-data-grid-column-background-color: var(--b-color-background-primary);
1578
+ --b-data-grid-columns-select-column-menu-button-gap: var(--b-spacer-020);
1579
+ --b-data-grid-columns-select-column-deselect-all-checkbox-padding: var(--b-spacer-030);
1580
+ --b-data-grid-columns-select-column-all-padding-left: var(--b-spacer-010);
1573
1581
  --b-data-grid-columns-select-column-gap: var(--b-spacer-020);
1574
1582
  --b-data-grid-columns-select-column-padding-right: var(--b-spacer-020);
1575
1583
  --b-data-grid-columns-select-column-padding-left: var(--b-spacer-040);
@@ -1129,8 +1129,6 @@
1129
1129
  --b-header-timestamp-gap: var(--b-spacer-060);
1130
1130
  --b-header-timestamp-color: var(--b-color-label-secondary);
1131
1131
  --b-header-description-color: var(--b-color-label-secondary);
1132
- --b-header-meta-container-margin-top: var(--b-spacer-020);
1133
- --b-header-meta-container-gap: var(--b-spacer-020);
1134
1132
  --b-header-info-icon-margin-top: var(--b-spacer-020);
1135
1133
  --b-header-info-icon-margin-left: var(--b-spacer-050);
1136
1134
  --b-header-title-margin-top: var(--b-spacer-010);
@@ -1179,6 +1177,13 @@
1179
1177
  --b-header-with-views-title-gap: var(--b-spacer-030);
1180
1178
  --b-header-with-views-padding-inline: var(--b-spacer-070);
1181
1179
  --b-header-with-views-gap: var(--b-spacer-050);
1180
+ --b-header-meta-timestamp-title-margin-top: var(--b-spacer-020);
1181
+ --b-header-meta-timestamp-margin-block: var(--b-spacer-020);
1182
+ --b-header-meta-timestamp-gap: var(--b-spacer-060);
1183
+ --b-header-meta-timestamp-color: var(--b-color-label-secondary);
1184
+ --b-header-meta-description-color: var(--b-color-label-secondary);
1185
+ --b-header-meta-container-margin-top: var(--b-spacer-020);
1186
+ --b-header-meta-container-gap: var(--b-spacer-020);
1182
1187
  --b-form-layout-title-subsection-margin-top: var(--b-spacer-080);
1183
1188
  --b-form-layout-title-description-color: var(--b-color-label-secondary);
1184
1189
  --b-form-layout-title-color: var(--b-color-label-primary);
@@ -1568,6 +1573,9 @@
1568
1573
  --b-data-grid-column-padding: 7px var(--b-spacer-070);
1569
1574
  --b-data-grid-column-border: var(--b-border-width-s) solid var(--b-color-separator-primary);
1570
1575
  --b-data-grid-column-background-color: var(--b-color-background-primary);
1576
+ --b-data-grid-columns-select-column-menu-button-gap: var(--b-spacer-020);
1577
+ --b-data-grid-columns-select-column-deselect-all-checkbox-padding: var(--b-spacer-030);
1578
+ --b-data-grid-columns-select-column-all-padding-left: var(--b-spacer-010);
1571
1579
  --b-data-grid-columns-select-column-gap: var(--b-spacer-020);
1572
1580
  --b-data-grid-columns-select-column-padding-right: var(--b-spacer-020);
1573
1581
  --b-data-grid-columns-select-column-padding-left: var(--b-spacer-040);
@@ -1129,8 +1129,6 @@
1129
1129
  --b-header-timestamp-gap: var(--b-spacer-060);
1130
1130
  --b-header-timestamp-color: var(--b-color-label-secondary);
1131
1131
  --b-header-description-color: var(--b-color-label-secondary);
1132
- --b-header-meta-container-margin-top: var(--b-spacer-020);
1133
- --b-header-meta-container-gap: var(--b-spacer-020);
1134
1132
  --b-header-info-icon-margin-top: var(--b-spacer-020);
1135
1133
  --b-header-info-icon-margin-left: var(--b-spacer-050);
1136
1134
  --b-header-title-margin-top: var(--b-spacer-010);
@@ -1179,6 +1177,13 @@
1179
1177
  --b-header-with-views-title-gap: var(--b-spacer-030);
1180
1178
  --b-header-with-views-padding-inline: var(--b-spacer-070);
1181
1179
  --b-header-with-views-gap: var(--b-spacer-050);
1180
+ --b-header-meta-timestamp-title-margin-top: var(--b-spacer-020);
1181
+ --b-header-meta-timestamp-margin-block: var(--b-spacer-020);
1182
+ --b-header-meta-timestamp-gap: var(--b-spacer-060);
1183
+ --b-header-meta-timestamp-color: var(--b-color-label-secondary);
1184
+ --b-header-meta-description-color: var(--b-color-label-secondary);
1185
+ --b-header-meta-container-margin-top: var(--b-spacer-020);
1186
+ --b-header-meta-container-gap: var(--b-spacer-020);
1182
1187
  --b-form-layout-title-subsection-margin-top: var(--b-spacer-080);
1183
1188
  --b-form-layout-title-description-color: var(--b-color-label-secondary);
1184
1189
  --b-form-layout-title-color: var(--b-color-label-primary);
@@ -1568,6 +1573,9 @@
1568
1573
  --b-data-grid-column-padding: 7px var(--b-spacer-070);
1569
1574
  --b-data-grid-column-border: var(--b-border-width-s) solid var(--b-color-separator-primary);
1570
1575
  --b-data-grid-column-background-color: var(--b-color-background-primary);
1576
+ --b-data-grid-columns-select-column-menu-button-gap: var(--b-spacer-020);
1577
+ --b-data-grid-columns-select-column-deselect-all-checkbox-padding: var(--b-spacer-030);
1578
+ --b-data-grid-columns-select-column-all-padding-left: var(--b-spacer-010);
1571
1579
  --b-data-grid-columns-select-column-gap: var(--b-spacer-020);
1572
1580
  --b-data-grid-columns-select-column-padding-right: var(--b-spacer-020);
1573
1581
  --b-data-grid-columns-select-column-padding-left: var(--b-spacer-040);
@@ -1076,8 +1076,6 @@
1076
1076
  --b-header-timestamp-gap: var(--b-spacer-060);
1077
1077
  --b-header-timestamp-color: var(--b-color-label-secondary);
1078
1078
  --b-header-description-color: var(--b-color-label-secondary);
1079
- --b-header-meta-container-margin-top: var(--b-spacer-020);
1080
- --b-header-meta-container-gap: var(--b-spacer-020);
1081
1079
  --b-header-info-icon-margin-top: var(--b-spacer-020);
1082
1080
  --b-header-info-icon-margin-left: var(--b-spacer-050);
1083
1081
  --b-header-title-margin-top: var(--b-spacer-010);
@@ -1126,6 +1124,13 @@
1126
1124
  --b-header-with-views-title-gap: var(--b-spacer-030);
1127
1125
  --b-header-with-views-padding-inline: var(--b-spacer-070);
1128
1126
  --b-header-with-views-gap: var(--b-spacer-050);
1127
+ --b-header-meta-timestamp-title-margin-top: var(--b-spacer-020);
1128
+ --b-header-meta-timestamp-margin-block: var(--b-spacer-020);
1129
+ --b-header-meta-timestamp-gap: var(--b-spacer-060);
1130
+ --b-header-meta-timestamp-color: var(--b-color-label-secondary);
1131
+ --b-header-meta-description-color: var(--b-color-label-secondary);
1132
+ --b-header-meta-container-margin-top: var(--b-spacer-020);
1133
+ --b-header-meta-container-gap: var(--b-spacer-020);
1129
1134
  --b-form-layout-title-subsection-margin-top: var(--b-spacer-080);
1130
1135
  --b-form-layout-title-description-color: var(--b-color-label-secondary);
1131
1136
  --b-form-layout-title-color: var(--b-color-label-primary);
@@ -1510,6 +1515,9 @@
1510
1515
  --b-data-grid-column-color: var(--b-color-label-primary);
1511
1516
  --b-data-grid-column-padding: var(--b-spacer-070);
1512
1517
  --b-data-grid-column-border: var(--b-border-width-s) solid var(--b-color-separator-primary);
1518
+ --b-data-grid-columns-select-column-menu-button-gap: var(--b-spacer-020);
1519
+ --b-data-grid-columns-select-column-deselect-all-checkbox-padding: var(--b-spacer-030);
1520
+ --b-data-grid-columns-select-column-all-padding-left: var(--b-spacer-010);
1513
1521
  --b-data-grid-columns-select-column-gap: var(--b-spacer-020);
1514
1522
  --b-data-grid-columns-select-column-padding-right: var(--b-spacer-020);
1515
1523
  --b-data-grid-columns-select-column-padding-left: var(--b-spacer-040);
@@ -1184,8 +1184,6 @@
1184
1184
  --b-header-timestamp-gap: var(--b-spacer-060);
1185
1185
  --b-header-timestamp-color: var(--b-color-label-secondary);
1186
1186
  --b-header-description-color: var(--b-color-label-secondary);
1187
- --b-header-meta-container-margin-top: var(--b-spacer-020);
1188
- --b-header-meta-container-gap: var(--b-spacer-020);
1189
1187
  --b-header-info-icon-margin-top: var(--b-spacer-020);
1190
1188
  --b-header-info-icon-margin-left: var(--b-spacer-050);
1191
1189
  --b-header-title-margin-top: var(--b-spacer-010);
@@ -1234,6 +1232,13 @@
1234
1232
  --b-header-with-views-title-gap: var(--b-spacer-030);
1235
1233
  --b-header-with-views-padding-inline: var(--b-spacer-070);
1236
1234
  --b-header-with-views-gap: var(--b-spacer-050);
1235
+ --b-header-meta-timestamp-title-margin-top: var(--b-spacer-020);
1236
+ --b-header-meta-timestamp-margin-block: var(--b-spacer-020);
1237
+ --b-header-meta-timestamp-gap: var(--b-spacer-060);
1238
+ --b-header-meta-timestamp-color: var(--b-color-label-secondary);
1239
+ --b-header-meta-description-color: var(--b-color-label-secondary);
1240
+ --b-header-meta-container-margin-top: var(--b-spacer-020);
1241
+ --b-header-meta-container-gap: var(--b-spacer-020);
1237
1242
  --b-form-layout-title-subsection-margin-top: var(--b-spacer-080);
1238
1243
  --b-form-layout-title-description-color: var(--b-color-label-secondary);
1239
1244
  --b-form-layout-title-color: var(--b-color-label-primary);
@@ -1623,6 +1628,9 @@
1623
1628
  --b-data-grid-column-padding: 7px var(--b-spacer-070);
1624
1629
  --b-data-grid-column-border: var(--b-border-width-s) solid var(--b-color-separator-primary);
1625
1630
  --b-data-grid-column-background-color: var(--b-color-background-primary);
1631
+ --b-data-grid-columns-select-column-menu-button-gap: var(--b-spacer-020);
1632
+ --b-data-grid-columns-select-column-deselect-all-checkbox-padding: var(--b-spacer-030);
1633
+ --b-data-grid-columns-select-column-all-padding-left: var(--b-spacer-010);
1626
1634
  --b-data-grid-columns-select-column-gap: var(--b-spacer-020);
1627
1635
  --b-data-grid-columns-select-column-padding-right: var(--b-spacer-020);
1628
1636
  --b-data-grid-columns-select-column-padding-left: var(--b-spacer-040);
@@ -1,4 +1,4 @@
1
- import { s as r, a as t, e as a, b as o, c as i, B as n, d as u, f as d } from "./chunks/summary-grid.types.DsvtLg3D.js";
1
+ import { s as r, a as t, e as a, b as o, c as i, B as n, d as u, f as d } from "./chunks/summary-grid.types.D_FU3sUq.js";
2
2
  export {
3
3
  r as BentoSummaryGrid,
4
4
  t as BentoSummaryGridItemAmount,
package/dist/textarea.js CHANGED
@@ -1,4 +1,4 @@
1
- import { B as o } from "./chunks/textarea.RAU710Uw.js";
1
+ import { B as o } from "./chunks/textarea.UPM6N9V1.js";
2
2
  export {
3
3
  o as BentoTextarea
4
4
  };
package/dist/timeline.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t, b as i, a, c as m, B as o, d as l } from "./chunks/timeline-item.Dz66luo5.js";
1
+ import { t, b as i, a, c as m, B as o, d as l } from "./chunks/timeline-item.DqLhj0Lb.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.DAKO-fKz.js";
1
+ import { t as r } from "./chunks/tutorial.DRRfp81j.js";
2
2
  export {
3
3
  r as BentoTutorial
4
4
  };