@adyen/bento-vue2 1.52.0 → 1.54.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.
- package/dist/@types/components.d.ts +2 -0
- package/dist/@types/index.d.ts +2104 -2027
- package/dist/action-bar.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/calendar.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/checkbox.css +1 -1
- package/dist/assets/dashed-underline.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/header-with-views.css +1 -0
- package/dist/assets/input-field-password.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/link.css +1 -1
- package/dist/assets/menu.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/pagination.css +1 -1
- package/dist/assets/payment-method.css +1 -1
- package/dist/assets/popover.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/summary-grid.css +1 -0
- package/dist/assets/tabs.css +1 -1
- package/dist/assets/textarea.css +1 -1
- package/dist/assets/use-cached-selected-values.css +1 -1
- package/dist/button.js +1 -1
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{action-bar.DuJkjAt1.js → action-bar.CH1Mswou.js} +5 -5
- package/dist/chunks/{action-bar.DuJkjAt1.js.map → action-bar.CH1Mswou.js.map} +1 -1
- package/dist/chunks/{base-modal.CiTysydg.js → base-modal.kHzGyWf6.js} +4 -4
- package/dist/chunks/{base-modal.CiTysydg.js.map → base-modal.kHzGyWf6.js.map} +1 -1
- package/dist/chunks/bin.DuebwJYu.js +24 -0
- package/dist/chunks/bin.DuebwJYu.js.map +1 -0
- package/dist/chunks/{button-actions-with-menu.B9oXYIgo.js → button-actions-with-menu.mqNecwDb.js} +5 -5
- package/dist/chunks/{button-actions-with-menu.B9oXYIgo.js.map → button-actions-with-menu.mqNecwDb.js.map} +1 -1
- package/dist/chunks/{button-actions.DAvSJtOB.js → button-actions.XlUhz42n.js} +42 -100
- package/dist/chunks/{button-actions.DAvSJtOB.js.map → button-actions.XlUhz42n.js.map} +1 -1
- package/dist/chunks/{calendar.Bq67h02Z.js → calendar.D4dMXwc0.js} +4 -4
- package/dist/chunks/{calendar.Bq67h02Z.js.map → calendar.D4dMXwc0.js.map} +1 -1
- package/dist/chunks/{card.AQO_BjGb.js → card.BT04hjvV.js} +2 -2
- package/dist/chunks/{card.AQO_BjGb.js.map → card.BT04hjvV.js.map} +1 -1
- package/dist/chunks/{checkbox-group.CqSIn-lG.js → checkbox-group.DZF4UIym.js} +4 -4
- package/dist/chunks/{checkbox-group.CqSIn-lG.js.map → checkbox-group.DZF4UIym.js.map} +1 -1
- package/dist/chunks/{checkbox.BeYtbfPv.js → checkbox.DloQJI-K.js} +57 -51
- package/dist/chunks/checkbox.DloQJI-K.js.map +1 -0
- package/dist/chunks/{click-outside.DSszkIvs.js → click-outside.C1Ud8AA2.js} +2 -2
- package/dist/chunks/{click-outside.DSszkIvs.js.map → click-outside.C1Ud8AA2.js.map} +1 -1
- package/dist/chunks/{code-snippet.CW42FdpP.js → code-snippet.B3GhZo7r.js} +5 -5
- package/dist/chunks/{code-snippet.CW42FdpP.js.map → code-snippet.B3GhZo7r.js.map} +1 -1
- package/dist/chunks/{controls-group.D0_cJaFF.js → controls-group.C-HKhH1m.js} +2 -2
- package/dist/chunks/{controls-group.D0_cJaFF.js.map → controls-group.C-HKhH1m.js.map} +1 -1
- package/dist/chunks/{copy.2iD8aI5a.js → copy.k18tXmP1.js} +3 -3
- package/dist/chunks/{copy.2iD8aI5a.js.map → copy.k18tXmP1.js.map} +1 -1
- package/dist/chunks/{dashboard-section.Cmulh6WM.js → dashboard-section.DlIwNKkx.js} +4 -4
- package/dist/chunks/{dashboard-section.Cmulh6WM.js.map → dashboard-section.DlIwNKkx.js.map} +1 -1
- package/dist/chunks/{dashed-underline.eMF75SuT.js → dashed-underline.BbQIbZfu.js} +8 -8
- package/dist/chunks/{dashed-underline.eMF75SuT.js.map → dashed-underline.BbQIbZfu.js.map} +1 -1
- package/dist/chunks/{data-grid-template.CdHnPE1-.js → data-grid-template.BJTWe6Ty.js} +3 -3
- package/dist/chunks/{data-grid-template.CdHnPE1-.js.map → data-grid-template.BJTWe6Ty.js.map} +1 -1
- package/dist/chunks/{data-grid.DedjAz4_.js → data-grid.BjtvKzyw.js} +213 -203
- package/dist/chunks/data-grid.BjtvKzyw.js.map +1 -0
- package/dist/chunks/{date-picker.BdMr3Sn2.js → date-picker.Dy0k-7_1.js} +16 -16
- package/dist/chunks/{date-picker.BdMr3Sn2.js.map → date-picker.Dy0k-7_1.js.map} +1 -1
- package/dist/chunks/{date-range-picker.BHfvD0GK.js → date-range-picker.B_uiZRMc.js} +25 -25
- package/dist/chunks/{date-range-picker.BHfvD0GK.js.map → date-range-picker.B_uiZRMc.js.map} +1 -1
- package/dist/chunks/{directive.O3yEdalv.js → directive.Cbdox5VL.js} +2 -2
- package/dist/chunks/{directive.O3yEdalv.js.map → directive.Cbdox5VL.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.CvZ1jckk.js → dropdown-tag.D3py85f0.js} +4 -4
- package/dist/chunks/{dropdown-tag.CvZ1jckk.js.map → dropdown-tag.D3py85f0.js.map} +1 -1
- package/dist/chunks/{dropdown.CcHoKbLz.js → dropdown.CI6ccgJJ.js} +89 -82
- package/dist/chunks/dropdown.CI6ccgJJ.js.map +1 -0
- package/dist/chunks/{error-message.B1-ekAMa.js → error-message.qHRfH-8Y.js} +2 -2
- package/dist/chunks/{error-message.B1-ekAMa.js.map → error-message.qHRfH-8Y.js.map} +1 -1
- package/dist/chunks/es6.BtaxuP0b.js.map +1 -1
- package/dist/chunks/{file-uploader.Dlfzh5QQ.js → file-uploader.BOWE87dN.js} +473 -452
- package/dist/chunks/file-uploader.BOWE87dN.js.map +1 -0
- package/dist/chunks/{filter-bar.CwqoJGiK.js → filter-bar.pVpO62X3.js} +620 -613
- package/dist/chunks/filter-bar.pVpO62X3.js.map +1 -0
- package/dist/chunks/{focus-trap.CWlKh48z.js → focus-trap.V3Q8H_5C.js} +2 -2
- package/dist/chunks/{focus-trap.CWlKh48z.js.map → focus-trap.V3Q8H_5C.js.map} +1 -1
- package/dist/chunks/{footer-actions.BkHpWa7A.js → footer-actions.DYi_MR9I.js} +2 -2
- package/dist/chunks/{footer-actions.BkHpWa7A.js.map → footer-actions.DYi_MR9I.js.map} +1 -1
- package/dist/chunks/header-with-views.CLSMOYua.js +1536 -0
- package/dist/chunks/header-with-views.CLSMOYua.js.map +1 -0
- package/dist/chunks/{header.BAKjEGmH.js → header.DWx6s2nt.js} +4 -4
- package/dist/chunks/{header.BAKjEGmH.js.map → header.DWx6s2nt.js.map} +1 -1
- package/dist/chunks/index.48Mn1OCp.js +387 -0
- package/dist/chunks/{index.-wO_BQCb.js.map → index.48Mn1OCp.js.map} +1 -1
- package/dist/chunks/{info-icon-with-popover.CxXWP4TR.js → info-icon-with-popover.B4wYDzGz.js} +2 -2
- package/dist/chunks/{info-icon-with-popover.CxXWP4TR.js.map → info-icon-with-popover.B4wYDzGz.js.map} +1 -1
- package/dist/chunks/{info-icon.D3neDWqH.js → info-icon.J62KXp9I.js} +3 -3
- package/dist/chunks/{info-icon.D3neDWqH.js.map → info-icon.J62KXp9I.js.map} +1 -1
- package/dist/chunks/input-field-password.D6lhO8b2.js +228 -0
- package/dist/chunks/input-field-password.D6lhO8b2.js.map +1 -0
- package/dist/chunks/{input-field-phone-number.TXnK0dch.js → input-field-phone-number.CYRNWZL8.js} +3 -3
- package/dist/chunks/{input-field-phone-number.TXnK0dch.js.map → input-field-phone-number.CYRNWZL8.js.map} +1 -1
- package/dist/chunks/{input-field.De4sp76g.js → input-field.CsnMZceM.js} +3 -3
- package/dist/chunks/{input-field.De4sp76g.js.map → input-field.CsnMZceM.js.map} +1 -1
- package/dist/chunks/inspector.types.Cmq6sdCz.js +105 -0
- package/dist/chunks/inspector.types.Cmq6sdCz.js.map +1 -0
- package/dist/chunks/{layout-row.dh2VyGoD.js → layout-row.DWRoI0dm.js} +2 -2
- package/dist/chunks/{layout-row.dh2VyGoD.js.map → layout-row.DWRoI0dm.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.xGQr3Su1.js → listbox-option-tag.BHI-8rRX.js} +2 -2
- package/dist/chunks/{listbox-option-tag.xGQr3Su1.js.map → listbox-option-tag.BHI-8rRX.js.map} +1 -1
- package/dist/chunks/{menu.li3Kg9Uq.js → menu.BoxhffPs.js} +84 -83
- package/dist/chunks/{menu.li3Kg9Uq.js.map → menu.BoxhffPs.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.C4eL63TC.js → modal-fullscreen.E7e13pW9.js} +3 -3
- package/dist/chunks/{modal-fullscreen.C4eL63TC.js.map → modal-fullscreen.E7e13pW9.js.map} +1 -1
- package/dist/chunks/{modal.BpDz0Dhc.js → modal.BUPJIcb6.js} +4 -4
- package/dist/chunks/{modal.BpDz0Dhc.js.map → modal.BUPJIcb6.js.map} +1 -1
- package/dist/chunks/{on-click-outside.MUWbmGDn.js → on-click-outside.D9aY9g8G.js} +3 -2
- package/dist/chunks/{on-click-outside.MUWbmGDn.js.map → on-click-outside.D9aY9g8G.js.map} +1 -1
- package/dist/chunks/{pagination.FuELftBG.js → pagination.FBlW1fUz.js} +3 -3
- package/dist/chunks/{pagination.FuELftBG.js.map → pagination.FBlW1fUz.js.map} +1 -1
- package/dist/chunks/{payment-method.NZKiNOmM.js → payment-method.Cx4nPDtE.js} +6 -6
- package/dist/chunks/payment-method.Cx4nPDtE.js.map +1 -0
- package/dist/chunks/payment-method.types.BqtH7RM2.js +5 -0
- package/dist/chunks/payment-method.types.BqtH7RM2.js.map +1 -0
- package/dist/chunks/{popover.Cb6utVhS.js → popover.C4PNSrnW.js} +3 -3
- package/dist/chunks/{popover.Cb6utVhS.js.map → popover.C4PNSrnW.js.map} +1 -1
- package/dist/chunks/{popper-container.CiEkF7eb.js → popper-container.DWY19wS0.js} +2 -2
- package/dist/chunks/{popper-container.CiEkF7eb.js.map → popper-container.DWY19wS0.js.map} +1 -1
- package/dist/chunks/{promo-banner.PnHud5Wi.js → promo-banner.DgCKKp6o.js} +6 -6
- package/dist/chunks/{promo-banner.PnHud5Wi.js.map → promo-banner.DgCKKp6o.js.map} +1 -1
- package/dist/chunks/{radio-group._8PsjPCZ.js → radio-group.WbbrQhEO.js} +4 -4
- package/dist/chunks/{radio-group._8PsjPCZ.js.map → radio-group.WbbrQhEO.js.map} +1 -1
- package/dist/chunks/{search-bar.CVY2e8_B.js → search-bar.CFKWbNeA.js} +3 -3
- package/dist/chunks/{search-bar.CVY2e8_B.js.map → search-bar.CFKWbNeA.js.map} +1 -1
- package/dist/chunks/{secondary-nav.LxcuTR16.js → secondary-nav.C0gPD0MR.js} +3 -3
- package/dist/chunks/{secondary-nav.LxcuTR16.js.map → secondary-nav.C0gPD0MR.js.map} +1 -1
- package/dist/chunks/{segmented-control.D69WXQGh.js → segmented-control.DGNMY2BP.js} +2 -2
- package/dist/chunks/{segmented-control.D69WXQGh.js.map → segmented-control.DGNMY2BP.js.map} +1 -1
- package/dist/chunks/{selection-card-group.MTKkCBeK.js → selection-card-group.BmKUEuny.js} +4 -4
- package/dist/chunks/{selection-card-group.MTKkCBeK.js.map → selection-card-group.BmKUEuny.js.map} +1 -1
- package/dist/chunks/{sidepanel.BStCbRqN.js → sidepanel.CyhG1nQR.js} +4 -4
- package/dist/chunks/{sidepanel.BStCbRqN.js.map → sidepanel.CyhG1nQR.js.map} +1 -1
- package/dist/chunks/{structured-list-item.CeosjL40.js → structured-list-item.Co5P9bFC.js} +4 -4
- package/dist/chunks/{structured-list-item.CeosjL40.js.map → structured-list-item.Co5P9bFC.js.map} +1 -1
- package/dist/chunks/summary-grid.types.egM7irBt.js +295 -0
- package/dist/chunks/summary-grid.types.egM7irBt.js.map +1 -0
- package/dist/chunks/tabs.C8CgvNt4.js +214 -0
- package/dist/chunks/tabs.C8CgvNt4.js.map +1 -0
- package/dist/chunks/{tag.OgtZ3-ql.js → tag.CyspYb1E.js} +2 -2
- package/dist/chunks/{tag.OgtZ3-ql.js.map → tag.CyspYb1E.js.map} +1 -1
- package/dist/chunks/{teleport.B5fwsT5y.js → teleport.BHfrns33.js} +2 -2
- package/dist/chunks/{teleport.B5fwsT5y.js.map → teleport.BHfrns33.js.map} +1 -1
- package/dist/chunks/{textarea.BEISPJua.js → textarea.CC8esIW6.js} +75 -71
- package/dist/chunks/textarea.CC8esIW6.js.map +1 -0
- package/dist/chunks/{timeline-item.BeWMuM8A.js → timeline-item.Byorbxmc.js} +5 -5
- package/dist/chunks/{timeline-item.BeWMuM8A.js.map → timeline-item.Byorbxmc.js.map} +1 -1
- package/dist/chunks/{tooltip.RPURZd36.js → tooltip.DOvci5lX.js} +2 -2
- package/dist/chunks/{tooltip.RPURZd36.js.map → tooltip.DOvci5lX.js.map} +1 -1
- package/dist/chunks/{tutorial.Ba8PTa0x.js → tutorial.QwHbq1FO.js} +5 -5
- package/dist/chunks/{tutorial.Ba8PTa0x.js.map → tutorial.QwHbq1FO.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.CxlYYUbd.js → use-cached-selected-values.DHpjo2tV.js} +36 -32
- package/dist/chunks/{use-cached-selected-values.CxlYYUbd.js.map → use-cached-selected-values.DHpjo2tV.js.map} +1 -1
- package/dist/click-outside.js +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +2 -2
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/dropdown.js +3 -3
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/header-with-views.js +5 -0
- package/dist/header-with-views.js.map +1 -0
- package/dist/header.js +1 -1
- package/dist/index.js +196 -194
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +1 -1
- package/dist/input-field-password.js +1 -1
- package/dist/input-field-phone-number.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/inspector.js +1 -1
- package/dist/internal.js +11 -11
- package/dist/layout.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/pagination.js +1 -1
- package/dist/payment-method.js +2 -2
- package/dist/popover.js +1 -1
- package/dist/popper-container.js +1 -1
- package/dist/promo-banner.js +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/segmented-control.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/styles/bento-dark.css +89 -17
- package/dist/styles/bento-light.css +89 -17
- package/dist/styles/bento.css +89 -17
- package/dist/styles/legacy.css +77 -5
- package/dist/styles/styleguide.css +89 -17
- package/dist/summary-grid.js +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tag.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/use-form-v4.js +8300 -0
- package/dist/use-form-v4.js.map +1 -0
- package/dist/web-types.json +4514 -3895
- package/package.json +8 -7
- package/dist/assets/summary-grid-item-custom.css +0 -1
- package/dist/chunks/checkbox.BeYtbfPv.js.map +0 -1
- package/dist/chunks/data-grid.DedjAz4_.js.map +0 -1
- package/dist/chunks/dropdown.CcHoKbLz.js.map +0 -1
- package/dist/chunks/file-uploader.Dlfzh5QQ.js.map +0 -1
- package/dist/chunks/filter-bar.CwqoJGiK.js.map +0 -1
- package/dist/chunks/index.-wO_BQCb.js +0 -370
- package/dist/chunks/input-field-password.CO0lAgMh.js +0 -194
- package/dist/chunks/input-field-password.CO0lAgMh.js.map +0 -1
- package/dist/chunks/inspector.types.ClnPOYmb.js +0 -101
- package/dist/chunks/inspector.types.ClnPOYmb.js.map +0 -1
- package/dist/chunks/payment-method.NZKiNOmM.js.map +0 -1
- package/dist/chunks/payment-method.types.CJKfZQN5.js +0 -5
- package/dist/chunks/payment-method.types.CJKfZQN5.js.map +0 -1
- package/dist/chunks/summary-grid-item-custom.CF_TS7oA.js +0 -578
- package/dist/chunks/summary-grid-item-custom.CF_TS7oA.js.map +0 -1
- package/dist/chunks/tabs.UFoTqvew.js +0 -154
- package/dist/chunks/tabs.UFoTqvew.js.map +0 -1
- package/dist/chunks/textarea.BEISPJua.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 * @param {T extends ZodSchema} formSchema Zod schema to be transformed into a `vee-validate` schema\n * @returns {UseForm<T>} schema 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 {ZodSchema} 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 * @param {UseForm<T>} props Form configuration object\n * @param {T extends ZodSchema} props.validationSchema Zod typed validation schema\n * @returns {Object} response - Composable with reactive form values and errors, and functions to handle the reactive data\n * @returns {Ref<ErrorBag<T>>} response.errorBag Object with all the form values and an array of each one of the errors (if any) per value\n * @returns {Ref<T>} response.errors Object with all the form values and the first error found for that field (if any)\n * @returns {Ref<T>} response.values Object with all the form values and their current value\n * @returns {() => void} response.handleReset Resets the form values to default (initial values) when it gets called\n * @returns {(callback: (values: T) => void) => () => void} 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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcO,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;AA2CO,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;AAC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,IACnBE,MAAUF,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;A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AO,GAC5FX,EAASD,EAAW,WAAW;AAAA,EAGnC;AAER;"}
|
package/dist/info-icon.js
CHANGED
|
@@ -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.
|
|
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.D6lhO8b2.js";
|
|
2
2
|
export {
|
|
3
3
|
a as BentoInputFieldPassword,
|
|
4
4
|
s as minLength,
|
package/dist/input-field.js
CHANGED
|
@@ -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.
|
|
1
|
+
import { B as n, b as a, e as o, c as i, d as s, a as l } from "./chunks/input-field.CsnMZceM.js";
|
|
2
2
|
export {
|
|
3
3
|
n as BentoInputField,
|
|
4
4
|
a as BentoInputFieldElementPosition,
|
package/dist/inspector.js
CHANGED
package/dist/internal.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { a as e, b as r, C as t, c as s, d as p } from "./chunks/calendar.
|
|
2
|
-
import { C as n, a as l } from "./chunks/copy.
|
|
3
|
-
import { C as f } from "./chunks/controls-group.
|
|
1
|
+
import { a as e, b as r, C as t, c as s, d as p } from "./chunks/calendar.D4dMXwc0.js";
|
|
2
|
+
import { C as n, a as l } from "./chunks/copy.k18tXmP1.js";
|
|
3
|
+
import { C as f } from "./chunks/controls-group.C-HKhH1m.js";
|
|
4
4
|
import { B as I, b as m, a as E, D as T } from "./chunks/dialog-page.BfF5_hmG.js";
|
|
5
|
-
import { E as d, F as N } from "./chunks/error-message.
|
|
5
|
+
import { E as d, F as N } from "./chunks/error-message.qHRfH-8Y.js";
|
|
6
6
|
import { F as O } from "./chunks/fixed-scroller.BwvXYzE6.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.
|
|
9
|
-
import { b, c as g, u as y } from "./chunks/use-cached-selected-values.
|
|
10
|
-
import { L as F } from "./chunks/listbox-option-tag.
|
|
11
|
-
import { B as M } from "./chunks/teleport.
|
|
12
|
-
import { T as h } from "./chunks/tooltip.
|
|
13
|
-
import { B as J } from "./chunks/button-actions-with-menu.
|
|
14
|
-
import { f as R } from "./chunks/button-actions.
|
|
8
|
+
import { I as c } from "./chunks/info-icon-with-popover.B4wYDzGz.js";
|
|
9
|
+
import { b, c as g, u as y } from "./chunks/use-cached-selected-values.DHpjo2tV.js";
|
|
10
|
+
import { L as F } from "./chunks/listbox-option-tag.BHI-8rRX.js";
|
|
11
|
+
import { B as M } from "./chunks/teleport.BHfrns33.js";
|
|
12
|
+
import { T as h } from "./chunks/tooltip.DOvci5lX.js";
|
|
13
|
+
import { B as J } from "./chunks/button-actions-with-menu.mqNecwDb.js";
|
|
14
|
+
import { f as R } from "./chunks/button-actions.XlUhz42n.js";
|
|
15
15
|
export {
|
|
16
16
|
R as BUTTON_ACTIONS_WITH_MENU_CONTAINER_INJECTION_KEY,
|
|
17
17
|
I as BentoDialogPageAnimation,
|
package/dist/layout.js
CHANGED
package/dist/menu.js
CHANGED
package/dist/modal-fullscreen.js
CHANGED
package/dist/modal.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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.
|
|
2
|
-
import { B as i } from "./chunks/modal.
|
|
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.kHzGyWf6.js";
|
|
2
|
+
import { B as i } from "./chunks/modal.BUPJIcb6.js";
|
|
3
3
|
export {
|
|
4
4
|
i as BentoModal,
|
|
5
5
|
e as BentoModalColumnLayoutVariant,
|
package/dist/pagination.js
CHANGED
package/dist/payment-method.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as t } from "./chunks/payment-method.
|
|
2
|
-
import { B as m } from "./chunks/payment-method.types.
|
|
1
|
+
import { B as t } from "./chunks/payment-method.Cx4nPDtE.js";
|
|
2
|
+
import { B as m } from "./chunks/payment-method.types.BqtH7RM2.js";
|
|
3
3
|
export {
|
|
4
4
|
t as BentoPaymentMethod,
|
|
5
5
|
m as BentoPaymentMethodType
|
package/dist/popover.js
CHANGED
package/dist/popper-container.js
CHANGED
package/dist/promo-banner.js
CHANGED
package/dist/radio-group.js
CHANGED
package/dist/search-bar.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as r, b as t, a as B } from "./chunks/search-bar.
|
|
2
|
-
import { u as o } from "./chunks/dropdown.
|
|
1
|
+
import { B as r, b as t, a as B } from "./chunks/search-bar.CFKWbNeA.js";
|
|
2
|
+
import { u as o } from "./chunks/dropdown.CI6ccgJJ.js";
|
|
3
3
|
export {
|
|
4
4
|
r as BentoSearchBar,
|
|
5
5
|
t as BentoSearchBarEvent,
|
package/dist/secondary-nav.js
CHANGED
package/dist/selection-card.js
CHANGED
package/dist/sidepanel.js
CHANGED
package/dist/structured-list.js
CHANGED
|
@@ -106,6 +106,7 @@
|
|
|
106
106
|
--b-input-field-input-box-height: 36px;
|
|
107
107
|
--b-input-field-password-validation-title-font-weight: 700;
|
|
108
108
|
--b-header-actions-margin-top-desktop: 0;
|
|
109
|
+
--b-header-with-views-all-views-popover-menu-item-dragging-z-index: 1;
|
|
109
110
|
--b-filter-button-label-line-height: 20px;
|
|
110
111
|
--b-filter-bar-select-filter-button-divider-border-width: 0;
|
|
111
112
|
--b-filter-bar-select-filter-divider-border-width: 0;
|
|
@@ -161,6 +162,7 @@
|
|
|
161
162
|
--b-calendar-year-month-focus-visible-z-index: 1;
|
|
162
163
|
--b-calendar-year-month-width: 60px;
|
|
163
164
|
--b-calendar-year-month-height: 60px;
|
|
165
|
+
--b-calendar-year-year-container-border-collapse: collapse;
|
|
164
166
|
--b-calendar-month-day-width: 40px;
|
|
165
167
|
--b-calendar-month-day-height: 40px;
|
|
166
168
|
--b-button-condensed-tertiary-height: auto;
|
|
@@ -296,10 +298,17 @@
|
|
|
296
298
|
--b-color-outline-primary-active: #efefef;
|
|
297
299
|
--b-color-outline-primary-hover: #525252;
|
|
298
300
|
--b-color-outline-primary: #454545;
|
|
301
|
+
--b-color-link-quiet-disabled: #9d9d9d;
|
|
302
|
+
--b-color-link-quiet-active: #cdcdcd;
|
|
303
|
+
--b-color-link-quiet-hover: #cdcdcd;
|
|
304
|
+
--b-color-link-quiet: #efefef;
|
|
305
|
+
--b-color-link-primary-visited-active: #ba73ff;
|
|
306
|
+
--b-color-link-primary-visited-hover: #ba73ff;
|
|
307
|
+
--b-color-link-primary-visited: #d0a1ff;
|
|
299
308
|
--b-color-link-primary-disabled: #9d9d9d;
|
|
300
|
-
--b-color-link-primary-active: #
|
|
301
|
-
--b-color-link-primary-hover: #
|
|
302
|
-
--b-color-link-primary: #
|
|
309
|
+
--b-color-link-primary-active: #3d96ff;
|
|
310
|
+
--b-color-link-primary-hover: #3d96ff;
|
|
311
|
+
--b-color-link-primary: #7db9ff;
|
|
303
312
|
--b-color-label-always-dark: #121212;
|
|
304
313
|
--b-color-label-always-light-tertiary-active: #616161;
|
|
305
314
|
--b-color-label-always-light-tertiary-hover: #7e7e7e;
|
|
@@ -591,6 +600,9 @@
|
|
|
591
600
|
--b-tabs-tab-text-height: var(--b-spacer-090);
|
|
592
601
|
--b-tabs-tab-text-border-radius: var(--b-border-radius-xs);
|
|
593
602
|
--b-tabs-tab-list-gap: var(--b-spacer-090);
|
|
603
|
+
--b-tabs-sticky-z-index: var(--b-z-index-local-tier-2);
|
|
604
|
+
--b-tabs-sticky-padding-top: var(--b-spacer-060);
|
|
605
|
+
--b-tabs-sticky-border-bottom: var(--b-border-width-s) solid var(--b-color-separator-primary);
|
|
594
606
|
--b-tabs-background-color: var(--b-color-background-primary);
|
|
595
607
|
--b-summary-grid-item-amount-secondary-label-padding-left: var(--b-spacer-020);
|
|
596
608
|
--b-summary-grid-item-content-trend-margin-left: var(--b-spacer-040);
|
|
@@ -986,9 +998,12 @@
|
|
|
986
998
|
--b-link-data-grid-hover-color: var(--b-color-link-primary);
|
|
987
999
|
--b-link-data-grid-text-decoration-color: var(--b-color-outline-secondary);
|
|
988
1000
|
--b-link-data-grid-color: var(--b-color-link-primary);
|
|
989
|
-
--b-link-quiet-active-color: var(--b-color-link-
|
|
990
|
-
--b-link-quiet-hover-color: var(--b-color-link-
|
|
991
|
-
--b-link-quiet-color: var(--b-color-link-
|
|
1001
|
+
--b-link-quiet-active-color: var(--b-color-link-quiet-active);
|
|
1002
|
+
--b-link-quiet-hover-color: var(--b-color-link-quiet-hover);
|
|
1003
|
+
--b-link-quiet-color: var(--b-color-link-quiet);
|
|
1004
|
+
--b-link-visited-active-color: var(--b-color-link-primary-visited-active);
|
|
1005
|
+
--b-link-visited-hover-color: var(--b-color-link-primary-visited-hover);
|
|
1006
|
+
--b-link-visited-color: var(--b-color-link-primary-visited);
|
|
992
1007
|
--b-link-active-color: var(--b-color-link-primary-active);
|
|
993
1008
|
--b-link-hover-color: var(--b-color-link-primary-hover);
|
|
994
1009
|
--b-link-external-link-padding: 0 0 0 var(--b-spacer-020);
|
|
@@ -1096,6 +1111,49 @@
|
|
|
1096
1111
|
--b-header-title-margin-top: var(--b-spacer-010);
|
|
1097
1112
|
--b-header-title-color: var(--b-color-label-primary);
|
|
1098
1113
|
--b-header-wrapper-gap: var(--b-spacer-110);
|
|
1114
|
+
--b-header-with-views-edit-form-title-gap: var(--b-spacer-030);
|
|
1115
|
+
--b-header-with-views-edit-form-icon-panel-padding: var(--b-spacer-020);
|
|
1116
|
+
--b-header-with-views-edit-form-icon-panel-gap: var(--b-spacer-040);
|
|
1117
|
+
--b-header-with-views-edit-form-icon-selector-gap: var(--b-spacer-050);
|
|
1118
|
+
--b-header-with-views-edit-form-icon-options-button-border-selected: var(--b-border-width-s) solid var(--b-color-outline-primary-active);
|
|
1119
|
+
--b-header-with-views-edit-form-icon-options-button-border-radius: var(--b-border-radius-s);
|
|
1120
|
+
--b-header-with-views-edit-form-icon-options-button-border-hover: var(--b-border-width-s) solid var(--b-color-outline-primary-hover);
|
|
1121
|
+
--b-header-with-views-edit-form-icon-color-options-gap: var(--b-spacer-020);
|
|
1122
|
+
--b-header-with-views-edit-form-icon-color-options-button-padding: var(--b-spacer-010);
|
|
1123
|
+
--b-header-with-views-edit-form-icon-color-options-button-border-radius: var(--b-border-radius-xl);
|
|
1124
|
+
--b-header-with-views-edit-form-additional-config-margin-top: var(--b-spacer-080);
|
|
1125
|
+
--b-header-with-views-edit-form-actions-margin-top: var(--b-spacer-060);
|
|
1126
|
+
--b-header-with-views-edit-form-gap: var(--b-spacer-080);
|
|
1127
|
+
--b-header-with-views-all-views-popover-menu-item-button-select-margin: var(--b-spacer-070);
|
|
1128
|
+
--b-header-with-views-all-views-popover-menu-item-button-reorder-margin: var(--b-spacer-050);
|
|
1129
|
+
--b-header-with-views-all-views-popover-menu-item-button-reorder-color: var(--b-color-label-tertiary);
|
|
1130
|
+
--b-header-with-views-all-views-popover-menu-item-button-gap: var(--b-spacer-030);
|
|
1131
|
+
--b-header-with-views-all-views-popover-menu-item-padding: var(--b-spacer-040) var(--b-spacer-070);
|
|
1132
|
+
--b-header-with-views-all-views-popover-menu-item-hover-background-color: var(--b-color-background-modal-hover);
|
|
1133
|
+
--b-header-with-views-all-views-popover-menu-item-focus-background-color: var(--b-color-background-modal-active);
|
|
1134
|
+
--b-header-with-views-all-views-popover-menu-item-dragging-box-shadow: var(--b-shadow-medium);
|
|
1135
|
+
--b-header-with-views-all-views-popover-menu-item-dragging-background-color: var(--b-color-background-selected);
|
|
1136
|
+
--b-header-with-views-all-views-popover-menu-item-active-background-color: var(--b-color-background-modal-active);
|
|
1137
|
+
--b-header-with-views-all-views-popover-padding: var(--b-spacer-040) var(--b-spacer-000);
|
|
1138
|
+
--b-header-with-views-modal-description-gap: var(--b-spacer-070);
|
|
1139
|
+
--b-header-with-views-bar-tab-icon-yellow: var(--b-color-decorative-yellow);
|
|
1140
|
+
--b-header-with-views-bar-tab-icon-red: var(--b-color-decorative-red);
|
|
1141
|
+
--b-header-with-views-bar-tab-icon-primary: var(--b-color-outline-primary-active);
|
|
1142
|
+
--b-header-with-views-bar-tab-icon-orange: var(--b-color-decorative-orange);
|
|
1143
|
+
--b-header-with-views-bar-tab-icon-green: var(--b-color-decorative-green);
|
|
1144
|
+
--b-header-with-views-bar-tab-icon-blue: var(--b-color-decorative-blue);
|
|
1145
|
+
--b-header-with-views-bar-tab-button-unsaved-color: var(--b-color-background-highlight-strong);
|
|
1146
|
+
--b-header-with-views-bar-tab-button-menu-right: var(--b-spacer-040);
|
|
1147
|
+
--b-header-with-views-bar-tab-button-menu-button-padding: var(--b-spacer-030);
|
|
1148
|
+
--b-header-with-views-bar-tab-button-menu-background: linear-gradient(90deg, rgba(247, 247, 248, 0.00) 0%, var(--b-color-background-primary-hover) 45%);
|
|
1149
|
+
--b-header-with-views-bar-tab-button-gap: var(--b-spacer-040);
|
|
1150
|
+
--b-header-with-views-bar-tab-button-background-color-active: var(--b-color-background-primary-active);
|
|
1151
|
+
--b-header-with-views-bar-tab-padding-inline: var(--b-border-width-l) var(--b-spacer-040);
|
|
1152
|
+
--b-header-with-views-bar-padding: var(--b-spacer-030) 0;
|
|
1153
|
+
--b-header-with-views-bar-gap: var(--b-spacer-020);
|
|
1154
|
+
--b-header-with-views-title-gap: var(--b-spacer-030);
|
|
1155
|
+
--b-header-with-views-padding-inline: var(--b-spacer-070);
|
|
1156
|
+
--b-header-with-views-gap: var(--b-spacer-050);
|
|
1099
1157
|
--b-form-layout-title-subsection-margin-top: var(--b-spacer-080);
|
|
1100
1158
|
--b-form-layout-title-description-color: var(--b-color-label-secondary);
|
|
1101
1159
|
--b-form-layout-title-color: var(--b-color-label-primary);
|
|
@@ -1123,14 +1181,14 @@
|
|
|
1123
1181
|
--b-filter-button-hover-text-color: var(--b-color-label-primary-hover);
|
|
1124
1182
|
--b-filter-button-hover-background-color: var(--b-color-background-primary-hover);
|
|
1125
1183
|
--b-filter-button-counter-hover-background-color: var(--b-color-background-tertiary-hover);
|
|
1126
|
-
--b-filter-button-counter-disabled-font-color: var(--b-color-label-disabled);
|
|
1127
|
-
--b-filter-button-counter-disabled-background-color: var(--b-color-background-disabled);
|
|
1184
|
+
--b-filter-button-counter-disabled-font-color: var(--b-color-label-inverse-disabled);
|
|
1185
|
+
--b-filter-button-counter-disabled-background-color: var(--b-color-background-inverse-disabled);
|
|
1128
1186
|
--b-filter-button-counter-open-background-color: var(--b-color-background-tertiary-active);
|
|
1129
1187
|
--b-filter-button-counter-active-background-color: var(--b-color-background-tertiary-active);
|
|
1130
1188
|
--b-filter-button-counter-padding: var(--b-spacer-020) var(--b-spacer-030);
|
|
1131
|
-
--b-filter-button-counter-font-color: var(--b-color-label-
|
|
1189
|
+
--b-filter-button-counter-font-color: var(--b-color-label-inverse-primary);
|
|
1132
1190
|
--b-filter-button-counter-border-radius: var(--b-border-radius-s);
|
|
1133
|
-
--b-filter-button-counter-background-color: var(--b-color-background-
|
|
1191
|
+
--b-filter-button-counter-background-color: var(--b-color-background-inverse-primary);
|
|
1134
1192
|
--b-filter-button-disabled-font-color: var(--b-color-label-disabled);
|
|
1135
1193
|
--b-filter-button-disabled-background-color: var(--b-color-background-primary);
|
|
1136
1194
|
--b-filter-button-default-container-gap: var(--b-spacer-070);
|
|
@@ -1191,21 +1249,33 @@
|
|
|
1191
1249
|
--b-filter-bar-button-filter-open-background-color: var(--b-color-background-primary-active);
|
|
1192
1250
|
--b-filter-bar-button-counter-filter-open-background-color: var(--b-color-background-tertiary-active);
|
|
1193
1251
|
--b-filter-bar-button-counter-filter-open-color: var(--b-color-label-primary);
|
|
1194
|
-
--b-filter-bar-button-counter-hover-background-color: var(--b-color-background-
|
|
1195
|
-
--b-filter-bar-button-counter-hover-color: var(--b-color-label-
|
|
1196
|
-
--b-filter-bar-button-counter-disabled-color: var(--b-color-label-disabled);
|
|
1197
|
-
--b-filter-bar-button-counter-disabled-background-color: var(--b-color-background-disabled);
|
|
1252
|
+
--b-filter-bar-button-counter-hover-background-color: var(--b-color-background-inverse-primary);
|
|
1253
|
+
--b-filter-bar-button-counter-hover-color: var(--b-color-label-inverse-primary);
|
|
1254
|
+
--b-filter-bar-button-counter-disabled-color: var(--b-color-label-inverse-disabled);
|
|
1255
|
+
--b-filter-bar-button-counter-disabled-background-color: var(--b-color-background-inverse-disabled);
|
|
1198
1256
|
--b-filter-bar-button-counter-padding: 0 var(--b-spacer-020);
|
|
1199
1257
|
--b-filter-bar-button-counter-margin-right: var(--b-spacer-020);
|
|
1200
|
-
--b-filter-bar-button-counter-color: var(--b-color-label-primary);
|
|
1258
|
+
--b-filter-bar-button-counter-color: var(--b-color-label-inverse-primary);
|
|
1201
1259
|
--b-filter-bar-button-counter-border-radius: var(--b-border-radius-s);
|
|
1202
|
-
--b-filter-bar-button-counter-background-color: var(--b-color-background-
|
|
1260
|
+
--b-filter-bar-button-counter-background-color: var(--b-color-background-inverse-primary);
|
|
1203
1261
|
--b-filter-bar-button-container-padding: var(--b-spacer-020) var(--b-spacer-050);
|
|
1204
1262
|
--b-filter-bar-button-container-gap: var(--b-spacer-040);
|
|
1205
1263
|
--b-filter-bar-button-with-secondary-label-container-padding-right: var(--b-spacer-050);
|
|
1206
1264
|
--b-filter-bar-button-with-counter-container-padding-right: var(--b-spacer-020);
|
|
1207
1265
|
--b-filter-bar-button-disabled-color: var(--b-color-label-disabled);
|
|
1208
1266
|
--b-filter-bar-button-disabled-background-color: var(--b-color-background-primary);
|
|
1267
|
+
--b-filter-bar-button-applied-filter-open-color: var(--b-color-label-inverse-primary);
|
|
1268
|
+
--b-filter-bar-button-applied-filter-open-border: var(--b-border-width-s) solid var(--b-color-background-inverse-secondary-active);
|
|
1269
|
+
--b-filter-bar-button-applied-filter-open-background-color: var(--b-color-background-inverse-secondary-active);
|
|
1270
|
+
--b-filter-bar-button-applied-disabled-color: var(--b-color-label-inverse-disabled);
|
|
1271
|
+
--b-filter-bar-button-applied-disabled-border: var(--b-border-width-s) solid var(--b-color-background-inverse-disabled);
|
|
1272
|
+
--b-filter-bar-button-applied-disabled-background-color: var(--b-color-background-inverse-disabled);
|
|
1273
|
+
--b-filter-bar-button-applied-hover-color: var(--b-color-label-inverse-primary);
|
|
1274
|
+
--b-filter-bar-button-applied-hover-border: var(--b-border-width-s) solid var(--b-color-background-inverse-secondary-hover);
|
|
1275
|
+
--b-filter-bar-button-applied-hover-background-color: var(--b-color-background-inverse-secondary-hover);
|
|
1276
|
+
--b-filter-bar-button-applied-color: var(--b-color-label-inverse-primary);
|
|
1277
|
+
--b-filter-bar-button-applied-border: var(--b-border-width-s) solid var(--b-color-background-inverse-secondary);
|
|
1278
|
+
--b-filter-bar-button-applied-background-color: var(--b-color-background-inverse-secondary);
|
|
1209
1279
|
--b-filter-bar-button-attention-outline: 0.5px solid var(--b-color-outline-secondary-active);
|
|
1210
1280
|
--b-filter-bar-button-attention-border: var(--b-border-width-s) solid var(--b-color-outline-secondary-active);
|
|
1211
1281
|
--b-filter-bar-button-active-border: var(--b-border-width-s) solid var(--b-color-outline-secondary-active);
|
|
@@ -1493,8 +1563,10 @@
|
|
|
1493
1563
|
--b-data-grid-static-icon-error-colored-color: var(--b-color-label-critical);
|
|
1494
1564
|
--b-data-grid-static-icon-cross-colored-color: var(--b-color-label-critical);
|
|
1495
1565
|
--b-data-grid-static-icon-checkmark-colored-color: var(--b-color-label-success);
|
|
1566
|
+
--b-dashed-underline-hover-text-decoration-color: var(--b-color-outline-tertiary-active);
|
|
1496
1567
|
--b-dashed-underline-hover-border-color: var(--b-color-outline-tertiary-active);
|
|
1497
|
-
--b-dashed-underline-
|
|
1568
|
+
--b-dashed-underline-text-decoration-color: var(--b-color-outline-tertiary);
|
|
1569
|
+
--b-dashed-underline-border-bottom: var(--b-border-width-m) solid transparent;
|
|
1498
1570
|
--b-dashboard-section-divider-margin-top: var(--b-spacer-090);
|
|
1499
1571
|
--b-dashboard-section-controls-gap: var(--b-spacer-040);
|
|
1500
1572
|
--b-dashboard-section-columns-m-and-up-gap: var(--b-spacer-120);
|