@adyen/bento-vue2 1.51.0 → 1.53.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 +583 -79
- package/dist/action-bar.js +1 -1
- package/dist/alert.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-with-menu.css +1 -1
- package/dist/assets/calendar.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/checkbox-input.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/date-picker.css +1 -1
- package/dist/assets/date-range-picker.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/form-layout-title.css +1 -1
- package/dist/assets/header-with-views.css +1 -0
- package/dist/assets/input-field-password.css +1 -1
- package/dist/assets/input-field-phone-number.css +1 -1
- package/dist/assets/input-field.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/menu.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/popover.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/summary-grid-item-custom.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 +3 -3
- package/dist/chunks/{action-bar.DGhojWpe.js → action-bar.Cuktzrp5.js} +5 -5
- package/dist/chunks/{action-bar.DGhojWpe.js.map → action-bar.Cuktzrp5.js.map} +1 -1
- package/dist/chunks/{alert.BSBLkXkM.js → alert.BkMKX9wD.js} +9 -9
- package/dist/chunks/alert.BkMKX9wD.js.map +1 -0
- package/dist/chunks/{base-modal.Dan5WQin.js → base-modal.DnaWOvaM.js} +4 -4
- package/dist/chunks/{base-modal.Dan5WQin.js.map → base-modal.DnaWOvaM.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.twMFsb82.js +166 -0
- package/dist/chunks/button-actions-with-menu.twMFsb82.js.map +1 -0
- package/dist/chunks/{button-actions.GhdYBSwt.js → button-actions.DAvSJtOB.js} +3 -3
- package/dist/chunks/{button-actions.GhdYBSwt.js.map → button-actions.DAvSJtOB.js.map} +1 -1
- package/dist/chunks/calendar.CJToU_uI.js +1130 -0
- package/dist/chunks/calendar.CJToU_uI.js.map +1 -0
- package/dist/chunks/{card.Csazj5Qz.js → card.AQO_BjGb.js} +2 -2
- package/dist/chunks/{card.Csazj5Qz.js.map → card.AQO_BjGb.js.map} +1 -1
- package/dist/chunks/{checkbox-group.DcJ31aLq.js → checkbox-group.DkM6n3JR.js} +4 -4
- package/dist/chunks/{checkbox-group.DcJ31aLq.js.map → checkbox-group.DkM6n3JR.js.map} +1 -1
- package/dist/chunks/checkbox-input.CMhyJDdo.js +129 -0
- package/dist/chunks/checkbox-input.CMhyJDdo.js.map +1 -0
- package/dist/chunks/checkbox.l7h6GYew.js +176 -0
- package/dist/chunks/checkbox.l7h6GYew.js.map +1 -0
- package/dist/chunks/checkmark-circle-fill.DZBl7CeY.js +24 -0
- package/dist/chunks/checkmark-circle-fill.DZBl7CeY.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.z_G2UXVT.js → code-snippet.BsEe6nml.js} +5 -5
- package/dist/chunks/{code-snippet.z_G2UXVT.js.map → code-snippet.BsEe6nml.js.map} +1 -1
- package/dist/chunks/{controls-group.ghJ7a8PY.js → controls-group.vFyThDMU.js} +2 -2
- package/dist/chunks/{controls-group.ghJ7a8PY.js.map → controls-group.vFyThDMU.js.map} +1 -1
- package/dist/chunks/{copy.BNOiinIt.js → copy.DD_Yfyn_.js} +3 -3
- package/dist/chunks/{copy.BNOiinIt.js.map → copy.DD_Yfyn_.js.map} +1 -1
- package/dist/chunks/cross-circle-fill.Ra0-PIUo.js +24 -0
- package/dist/chunks/cross-circle-fill.Ra0-PIUo.js.map +1 -0
- package/dist/chunks/{dashboard-section.Db_E382r.js → dashboard-section.z-Rnv5E-.js} +3 -3
- package/dist/chunks/{dashboard-section.Db_E382r.js.map → dashboard-section.z-Rnv5E-.js.map} +1 -1
- package/dist/chunks/{dashed-underline.CAhDrAG_.js → dashed-underline.CfQuYKV9.js} +8 -8
- package/dist/chunks/{dashed-underline.CAhDrAG_.js.map → dashed-underline.CfQuYKV9.js.map} +1 -1
- package/dist/chunks/{data-grid-template.DG5IWdLG.js → data-grid-template.73mazFER.js} +2 -2
- package/dist/chunks/{data-grid-template.DG5IWdLG.js.map → data-grid-template.73mazFER.js.map} +1 -1
- package/dist/chunks/{data-grid.CHV-FvBB.js → data-grid.C_Xoz-GC.js} +38 -28
- package/dist/chunks/data-grid.C_Xoz-GC.js.map +1 -0
- package/dist/chunks/date-picker.bgk9aymW.js +235 -0
- package/dist/chunks/date-picker.bgk9aymW.js.map +1 -0
- package/dist/chunks/date-range-picker.-s05jOQA.js +903 -0
- package/dist/chunks/date-range-picker.-s05jOQA.js.map +1 -0
- package/dist/chunks/{date.YLIcAerL.js → date.dYFFEunA.js} +12 -12
- package/dist/chunks/{date.YLIcAerL.js.map → date.dYFFEunA.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-default-textbox.DzPBw4CV.js → dropdown-default-textbox.CDTdHfTv.js} +2 -2
- package/dist/chunks/{dropdown-default-textbox.DzPBw4CV.js.map → dropdown-default-textbox.CDTdHfTv.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.K4idCLeu.js → dropdown-tag.8qh8J-NE.js} +4 -4
- package/dist/chunks/{dropdown-tag.K4idCLeu.js.map → dropdown-tag.8qh8J-NE.js.map} +1 -1
- package/dist/chunks/{dropdown.DFEGHxjw.js → dropdown.DzWXcJyF.js} +141 -132
- package/dist/chunks/dropdown.DzWXcJyF.js.map +1 -0
- package/dist/chunks/{error-message.B3oWB_HM.js → error-message.CzQf7YOD.js} +3 -3
- package/dist/chunks/{error-message.B3oWB_HM.js.map → error-message.CzQf7YOD.js.map} +1 -1
- package/dist/chunks/es6.BtaxuP0b.js.map +1 -1
- package/dist/chunks/{file-uploader.DaBMZSsB.js → file-uploader.CcZPr-jD.js} +329 -328
- package/dist/chunks/file-uploader.CcZPr-jD.js.map +1 -0
- package/dist/chunks/{filter-bar.DClIG9aP.js → filter-bar.BdGtQC7p.js} +619 -668
- package/dist/chunks/filter-bar.BdGtQC7p.js.map +1 -0
- package/dist/chunks/{focus-trap._RrLaKlq.js → focus-trap.CIUzScHc.js} +2 -2
- package/dist/chunks/{focus-trap._RrLaKlq.js.map → focus-trap.CIUzScHc.js.map} +1 -1
- package/dist/chunks/{footer-actions.D0SuJroc.js → footer-actions.BkHpWa7A.js} +2 -2
- package/dist/chunks/{footer-actions.D0SuJroc.js.map → footer-actions.BkHpWa7A.js.map} +1 -1
- package/dist/chunks/{form-layout-title.C1n2S73_.js → form-layout-title.DK1-01RH.js} +50 -47
- package/dist/chunks/form-layout-title.DK1-01RH.js.map +1 -0
- package/dist/chunks/header-with-views.ChEgH2tn.js +1536 -0
- package/dist/chunks/header-with-views.ChEgH2tn.js.map +1 -0
- package/dist/chunks/header.0hX8OYwM.js +183 -0
- package/dist/chunks/header.0hX8OYwM.js.map +1 -0
- package/dist/chunks/index.BCUiAdb6.js +387 -0
- package/dist/chunks/{index.CU8GKq4C.js.map → index.BCUiAdb6.js.map} +1 -1
- package/dist/chunks/index.BDuTpjD8.js +40 -0
- package/dist/chunks/index.BDuTpjD8.js.map +1 -0
- package/dist/chunks/index.BxBB1rsx.js +15 -0
- package/dist/chunks/index.BxBB1rsx.js.map +1 -0
- package/dist/chunks/index.DD7TppDb.js +10 -0
- package/dist/chunks/index.DD7TppDb.js.map +1 -0
- package/dist/chunks/{info-icon-with-popover.C29aZ1Vh.js → info-icon-with-popover.w6MpKOWh.js} +3 -3
- package/dist/chunks/{info-icon-with-popover.C29aZ1Vh.js.map → info-icon-with-popover.w6MpKOWh.js.map} +1 -1
- package/dist/chunks/{info-icon.bXR5eo6I.js → info-icon.C1ReXurF.js} +4 -4
- package/dist/chunks/{info-icon.bXR5eo6I.js.map → info-icon.C1ReXurF.js.map} +1 -1
- package/dist/chunks/info.4d_mJHvT.js +24 -0
- package/dist/chunks/info.4d_mJHvT.js.map +1 -0
- package/dist/chunks/input-field-password.CZn4kW8v.js +198 -0
- package/dist/chunks/input-field-password.CZn4kW8v.js.map +1 -0
- package/dist/chunks/{input-field-phone-number.Bmugk7fI.js → input-field-phone-number.C8WTJ1W-.js} +324 -321
- package/dist/chunks/{input-field-phone-number.Bmugk7fI.js.map → input-field-phone-number.C8WTJ1W-.js.map} +1 -1
- package/dist/chunks/input-field.tP3Eupoo.js +152 -0
- package/dist/chunks/input-field.tP3Eupoo.js.map +1 -0
- package/dist/chunks/{inspector.types.C9Oc8FgA.js → inspector.types.A0b4jNO3.js} +3 -3
- package/dist/chunks/{inspector.types.C9Oc8FgA.js.map → inspector.types.A0b4jNO3.js.map} +1 -1
- package/dist/chunks/{layout-row.CHwDU8yK.js → layout-row.BgBazwnM.js} +2 -2
- package/dist/chunks/{layout-row.CHwDU8yK.js.map → layout-row.BgBazwnM.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.bPRcATJK.js → listbox-option-tag.T9cfTst7.js} +2 -2
- package/dist/chunks/{listbox-option-tag.bPRcATJK.js.map → listbox-option-tag.T9cfTst7.js.map} +1 -1
- package/dist/chunks/{menu.CzbkunwY.js → menu.CY7ceslP.js} +88 -87
- package/dist/chunks/menu.CY7ceslP.js.map +1 -0
- package/dist/chunks/{modal-fullscreen.C4D3Rkdg.js → modal-fullscreen.Dz5w250z.js} +3 -3
- package/dist/chunks/{modal-fullscreen.C4D3Rkdg.js.map → modal-fullscreen.Dz5w250z.js.map} +1 -1
- package/dist/chunks/{modal.DgCmKjQC.js → modal.CnmRkXZM.js} +4 -4
- package/dist/chunks/{modal.DgCmKjQC.js.map → modal.CnmRkXZM.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.CdOxfZW2.js → pagination.CvGOUwd8.js} +2 -2
- package/dist/chunks/{pagination.CdOxfZW2.js.map → pagination.CvGOUwd8.js.map} +1 -1
- package/dist/chunks/payment-method.NZKiNOmM.js +76 -0
- package/dist/chunks/payment-method.NZKiNOmM.js.map +1 -0
- package/dist/chunks/{popover.3sHql3nd.js → popover.BvsqsZQ1.js} +3 -3
- package/dist/chunks/{popover.3sHql3nd.js.map → popover.BvsqsZQ1.js.map} +1 -1
- package/dist/chunks/{popper-container.Bqy3oVj6.js → popper-container.LRQgzjRf.js} +2 -2
- package/dist/chunks/{popper-container.Bqy3oVj6.js.map → popper-container.LRQgzjRf.js.map} +1 -1
- package/dist/chunks/{promo-banner.BIICM7FC.js → promo-banner.DDnJwMDC.js} +2 -2
- package/dist/chunks/{promo-banner.BIICM7FC.js.map → promo-banner.DDnJwMDC.js.map} +1 -1
- package/dist/chunks/{radio-group.L-XokgwC.js → radio-group.BvswbJa8.js} +4 -4
- package/dist/chunks/{radio-group.L-XokgwC.js.map → radio-group.BvswbJa8.js.map} +1 -1
- package/dist/chunks/{search-bar.CDTWPjG1.js → search-bar.kKLreEXo.js} +5 -5
- package/dist/chunks/{search-bar.CDTWPjG1.js.map → search-bar.kKLreEXo.js.map} +1 -1
- package/dist/chunks/search.DLtglc02.js +24 -0
- package/dist/chunks/search.DLtglc02.js.map +1 -0
- package/dist/chunks/{secondary-nav.BwmBTvl5.js → secondary-nav.C6bfsK2p.js} +3 -3
- package/dist/chunks/{secondary-nav.BwmBTvl5.js.map → secondary-nav.C6bfsK2p.js.map} +1 -1
- package/dist/chunks/{segmented-control.CW6v1rDg.js → segmented-control.BywW3ont.js} +2 -2
- package/dist/chunks/{segmented-control.CW6v1rDg.js.map → segmented-control.BywW3ont.js.map} +1 -1
- package/dist/chunks/{selection-card-group.CURxGbd9.js → selection-card-group.Ca4G00h5.js} +5 -5
- package/dist/chunks/{selection-card-group.CURxGbd9.js.map → selection-card-group.Ca4G00h5.js.map} +1 -1
- package/dist/chunks/{sidepanel.MBArfd4a.js → sidepanel.D4H3Vu0m.js} +4 -4
- package/dist/chunks/{sidepanel.MBArfd4a.js.map → sidepanel.D4H3Vu0m.js.map} +1 -1
- package/dist/chunks/{structured-list-item.CYYZ1Fil.js → structured-list-item.Bv8reTz2.js} +5 -5
- package/dist/chunks/{structured-list-item.CYYZ1Fil.js.map → structured-list-item.Bv8reTz2.js.map} +1 -1
- package/dist/chunks/{summary-grid-item-custom.CVEhwKNM.js → summary-grid-item-custom.Bbdie4EL.js} +188 -135
- package/dist/chunks/summary-grid-item-custom.Bbdie4EL.js.map +1 -0
- package/dist/chunks/{tag.BxmageRW.js → tag.IyMxowGc.js} +2 -2
- package/dist/chunks/{tag.BxmageRW.js.map → tag.IyMxowGc.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.DmjhRupr.js → textarea.B9HjT5LH.js} +2 -2
- package/dist/chunks/{textarea.DmjhRupr.js.map → textarea.B9HjT5LH.js.map} +1 -1
- package/dist/chunks/{timeline-item.CLbS-cEf.js → timeline-item.BIwk0vqM.js} +12 -11
- package/dist/chunks/{timeline-item.CLbS-cEf.js.map → timeline-item.BIwk0vqM.js.map} +1 -1
- package/dist/chunks/{tooltip.Vgoc41cI.js → tooltip.DShIiBiY.js} +2 -2
- package/dist/chunks/{tooltip.Vgoc41cI.js.map → tooltip.DShIiBiY.js.map} +1 -1
- package/dist/chunks/{tutorial.CmLMgXDK.js → tutorial.DDlXTjAO.js} +42 -42
- package/dist/chunks/tutorial.DDlXTjAO.js.map +1 -0
- package/dist/chunks/{use-cached-selected-values.DVcpkFV3.js → use-cached-selected-values.LVldNial.js} +13 -9
- package/dist/chunks/{use-cached-selected-values.DVcpkFV3.js.map → use-cached-selected-values.LVldNial.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/date.js +1 -1
- package/dist/dropdown.js +4 -4
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.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 +200 -198
- 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 +35 -33
- 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 +1 -1
- 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 +73 -1
- package/dist/styles/bento-light.css +73 -1
- package/dist/styles/bento.css +73 -1
- package/dist/styles/legacy.css +75 -3
- package/dist/styles/styleguide.css +73 -1
- package/dist/summary-grid.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 +1005 -206
- package/package.json +9 -8
- package/dist/chunks/alert.BSBLkXkM.js.map +0 -1
- package/dist/chunks/button-actions-with-menu.B5gcSgRQ.js +0 -112
- package/dist/chunks/button-actions-with-menu.B5gcSgRQ.js.map +0 -1
- package/dist/chunks/calendar.YJTNpmzh.js +0 -888
- package/dist/chunks/calendar.YJTNpmzh.js.map +0 -1
- package/dist/chunks/checkbox-input.B4A_gL2b.js +0 -128
- package/dist/chunks/checkbox-input.B4A_gL2b.js.map +0 -1
- package/dist/chunks/checkbox.BpF0HY7C.js +0 -162
- package/dist/chunks/checkbox.BpF0HY7C.js.map +0 -1
- package/dist/chunks/checkmark-circle-fill.C46dV1Rf.js +0 -24
- package/dist/chunks/checkmark-circle-fill.C46dV1Rf.js.map +0 -1
- package/dist/chunks/cross-circle-fill.BawVYNw7.js +0 -24
- package/dist/chunks/cross-circle-fill.BawVYNw7.js.map +0 -1
- package/dist/chunks/data-grid.CHV-FvBB.js.map +0 -1
- package/dist/chunks/date-picker.CMj5-RQl.js +0 -213
- package/dist/chunks/date-picker.CMj5-RQl.js.map +0 -1
- package/dist/chunks/date-range-picker.Jysfo6h3.js +0 -885
- package/dist/chunks/date-range-picker.Jysfo6h3.js.map +0 -1
- package/dist/chunks/dropdown.DFEGHxjw.js.map +0 -1
- package/dist/chunks/file-uploader.DaBMZSsB.js.map +0 -1
- package/dist/chunks/filter-bar.DClIG9aP.js.map +0 -1
- package/dist/chunks/form-layout-title.C1n2S73_.js.map +0 -1
- package/dist/chunks/header.CRlxEGHb.js +0 -205
- package/dist/chunks/header.CRlxEGHb.js.map +0 -1
- package/dist/chunks/index.CU8GKq4C.js +0 -369
- package/dist/chunks/index.CrhTVr5J.js +0 -10
- package/dist/chunks/index.CrhTVr5J.js.map +0 -1
- package/dist/chunks/index.DDnf1O9p.js +0 -22
- package/dist/chunks/index.DDnf1O9p.js.map +0 -1
- package/dist/chunks/index.DPafeRJa.js +0 -10
- package/dist/chunks/index.DPafeRJa.js.map +0 -1
- package/dist/chunks/info.D4SG-AIm.js +0 -24
- package/dist/chunks/info.D4SG-AIm.js.map +0 -1
- package/dist/chunks/input-field-password.DsIpkc_9.js +0 -191
- package/dist/chunks/input-field-password.DsIpkc_9.js.map +0 -1
- package/dist/chunks/input-field.Dl2lXZda.js +0 -146
- package/dist/chunks/input-field.Dl2lXZda.js.map +0 -1
- package/dist/chunks/menu.CzbkunwY.js.map +0 -1
- package/dist/chunks/payment-method.BudFG3aC.js +0 -76
- package/dist/chunks/payment-method.BudFG3aC.js.map +0 -1
- package/dist/chunks/search.pVu-JVAN.js +0 -24
- package/dist/chunks/search.pVu-JVAN.js.map +0 -1
- package/dist/chunks/summary-grid-item-custom.CVEhwKNM.js.map +0 -1
- package/dist/chunks/tutorial.CmLMgXDK.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,CA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,IACI,OAAAO,IAAQF,EAAW;AAAA,IACnB,WAAAS,IAAY;AAAA,IACZ,oBAAAC,IAAqB;AAAA,IACrB,8BAAAC,IAA+B;AAAA,EAAA,MAElC;AACD,IAAAL,EAAaX,CAAG,GAEZc,KACAf,EAAaC,CAAG,GAEhBgB,MACAC;AAAA,MACI;AAAA,MACA;AAAA;AAAA,MACA;AAAA,IACJ,GAEIV,MAAUF,EAAW,SACrB,MAAM,OAAO,gEAAgE,IACtEE,MAAUF,EAAW,aAC5B,MAAM,OAAO,oEAAoE,IAEjF,MAAM,OAAO,yDAAyD,GAGtEU,KACA,MAAM,OAAO,uDAAuD,IAIxER,MAAUF,EAAW,SACrBC,EAASD,EAAW,MAAM,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,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AA,MACI;AAAA,MACA;AAAA;AAAA,MACA;AAAA,IACJ,GAEIV,MAAUF,EAAW,SACrB,MAAM,OAAO,gEAAgE,IACtEE,MAAUF,EAAW,aAC5B,MAAM,OAAO,oEAAoE,IAEjF,MAAM,OAAO,yDAAyD,GAGtEU,KACA,MAAM,OAAO,uDAAuD,IAIxER,MAAUF,EAAW,SACrBC,EAASD,EAAW,MAAM,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;"}
|
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.CZn4kW8v.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.tP3Eupoo.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,41 +1,43 @@
|
|
|
1
|
-
import { a as e, b as r, C as t } from "./chunks/calendar.
|
|
2
|
-
import { C as
|
|
3
|
-
import { C as f } from "./chunks/controls-group.
|
|
4
|
-
import { B as
|
|
5
|
-
import { E as
|
|
6
|
-
import { F as
|
|
7
|
-
import { G as
|
|
8
|
-
import { I as
|
|
9
|
-
import { b, c, u as
|
|
10
|
-
import { L as
|
|
11
|
-
import { B as
|
|
12
|
-
import { T as
|
|
13
|
-
import { B as
|
|
14
|
-
import { f as
|
|
1
|
+
import { a as e, b as r, C as t, c as s, d as p } from "./chunks/calendar.CJToU_uI.js";
|
|
2
|
+
import { C as n, a as l } from "./chunks/copy.DD_Yfyn_.js";
|
|
3
|
+
import { C as f } from "./chunks/controls-group.vFyThDMU.js";
|
|
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.CzQf7YOD.js";
|
|
6
|
+
import { F as O } from "./chunks/fixed-scroller.BwvXYzE6.js";
|
|
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.w6MpKOWh.js";
|
|
9
|
+
import { b, c as g, u as y } from "./chunks/use-cached-selected-values.LVldNial.js";
|
|
10
|
+
import { L as F } from "./chunks/listbox-option-tag.T9cfTst7.js";
|
|
11
|
+
import { B as M } from "./chunks/teleport.BHfrns33.js";
|
|
12
|
+
import { T as h } from "./chunks/tooltip.DShIiBiY.js";
|
|
13
|
+
import { B as J } from "./chunks/button-actions-with-menu.twMFsb82.js";
|
|
14
|
+
import { f as R } from "./chunks/button-actions.DAvSJtOB.js";
|
|
15
15
|
export {
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
R as BUTTON_ACTIONS_WITH_MENU_CONTAINER_INJECTION_KEY,
|
|
17
|
+
I as BentoDialogPageAnimation,
|
|
18
18
|
b as BentoListbox,
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
M as BentoTeleport,
|
|
20
|
+
J as ButtonActionsWithMenu,
|
|
21
21
|
e as Calendar,
|
|
22
22
|
r as CalendarEvent,
|
|
23
23
|
t as CalendarFirstDayOfWeek,
|
|
24
|
+
s as CalendarPosition,
|
|
25
|
+
p as CalendarVariant,
|
|
24
26
|
f as ControlsGroup,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
27
|
+
n as Copy,
|
|
28
|
+
l as CopyTooltipState,
|
|
29
|
+
m as DIALOG_PAGE_CONFIG_INJECTION_KEY,
|
|
30
|
+
E as DIALOG_PAGE_REGISTER_PAGE_INJECTION_KEY,
|
|
31
|
+
T as DialogPage,
|
|
32
|
+
d as ErrorMessage,
|
|
33
|
+
N as FieldLabel,
|
|
34
|
+
O as FixedScroller,
|
|
35
|
+
A as GridLayout,
|
|
36
|
+
L as GridLayoutContainerType,
|
|
37
|
+
c as InfoIconWithPopover,
|
|
38
|
+
F as ListboxOptionTag,
|
|
39
|
+
h as Tooltip,
|
|
40
|
+
g as useCachedSelectedValues,
|
|
41
|
+
y as useMultiLevelItems
|
|
40
42
|
};
|
|
41
43
|
//# sourceMappingURL=internal.js.map
|
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.DnaWOvaM.js";
|
|
2
|
+
import { B as i } from "./chunks/modal.CnmRkXZM.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
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.kKLreEXo.js";
|
|
2
|
+
import { u as o } from "./chunks/dropdown.DzWXcJyF.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;
|
|
@@ -158,6 +159,9 @@
|
|
|
158
159
|
--b-code-snippet-code-area-margin: 0;
|
|
159
160
|
--b-card-toggle-small-text-height: 24px;
|
|
160
161
|
--b-card-toggle-height: 26px;
|
|
162
|
+
--b-calendar-year-month-focus-visible-z-index: 1;
|
|
163
|
+
--b-calendar-year-month-width: 60px;
|
|
164
|
+
--b-calendar-year-month-height: 60px;
|
|
161
165
|
--b-calendar-month-day-width: 40px;
|
|
162
166
|
--b-calendar-month-day-height: 40px;
|
|
163
167
|
--b-button-condensed-tertiary-height: auto;
|
|
@@ -1093,6 +1097,49 @@
|
|
|
1093
1097
|
--b-header-title-margin-top: var(--b-spacer-010);
|
|
1094
1098
|
--b-header-title-color: var(--b-color-label-primary);
|
|
1095
1099
|
--b-header-wrapper-gap: var(--b-spacer-110);
|
|
1100
|
+
--b-header-with-views-edit-form-title-gap: var(--b-spacer-030);
|
|
1101
|
+
--b-header-with-views-edit-form-icon-panel-padding: var(--b-spacer-020);
|
|
1102
|
+
--b-header-with-views-edit-form-icon-panel-gap: var(--b-spacer-040);
|
|
1103
|
+
--b-header-with-views-edit-form-icon-selector-gap: var(--b-spacer-050);
|
|
1104
|
+
--b-header-with-views-edit-form-icon-options-button-border-selected: var(--b-border-width-s) solid var(--b-color-outline-primary-active);
|
|
1105
|
+
--b-header-with-views-edit-form-icon-options-button-border-radius: var(--b-border-radius-s);
|
|
1106
|
+
--b-header-with-views-edit-form-icon-options-button-border-hover: var(--b-border-width-s) solid var(--b-color-outline-primary-hover);
|
|
1107
|
+
--b-header-with-views-edit-form-icon-color-options-gap: var(--b-spacer-020);
|
|
1108
|
+
--b-header-with-views-edit-form-icon-color-options-button-padding: var(--b-spacer-010);
|
|
1109
|
+
--b-header-with-views-edit-form-icon-color-options-button-border-radius: var(--b-border-radius-xl);
|
|
1110
|
+
--b-header-with-views-edit-form-additional-config-margin-top: var(--b-spacer-080);
|
|
1111
|
+
--b-header-with-views-edit-form-actions-margin-top: var(--b-spacer-060);
|
|
1112
|
+
--b-header-with-views-edit-form-gap: var(--b-spacer-080);
|
|
1113
|
+
--b-header-with-views-all-views-popover-menu-item-button-select-margin: var(--b-spacer-070);
|
|
1114
|
+
--b-header-with-views-all-views-popover-menu-item-button-reorder-margin: var(--b-spacer-050);
|
|
1115
|
+
--b-header-with-views-all-views-popover-menu-item-button-reorder-color: var(--b-color-label-tertiary);
|
|
1116
|
+
--b-header-with-views-all-views-popover-menu-item-button-gap: var(--b-spacer-030);
|
|
1117
|
+
--b-header-with-views-all-views-popover-menu-item-padding: var(--b-spacer-040) var(--b-spacer-070);
|
|
1118
|
+
--b-header-with-views-all-views-popover-menu-item-hover-background-color: var(--b-color-background-modal-hover);
|
|
1119
|
+
--b-header-with-views-all-views-popover-menu-item-focus-background-color: var(--b-color-background-modal-active);
|
|
1120
|
+
--b-header-with-views-all-views-popover-menu-item-dragging-box-shadow: var(--b-shadow-medium);
|
|
1121
|
+
--b-header-with-views-all-views-popover-menu-item-dragging-background-color: var(--b-color-background-selected);
|
|
1122
|
+
--b-header-with-views-all-views-popover-menu-item-active-background-color: var(--b-color-background-modal-active);
|
|
1123
|
+
--b-header-with-views-all-views-popover-padding: var(--b-spacer-040) var(--b-spacer-000);
|
|
1124
|
+
--b-header-with-views-modal-description-gap: var(--b-spacer-070);
|
|
1125
|
+
--b-header-with-views-bar-tab-icon-yellow: var(--b-color-decorative-yellow);
|
|
1126
|
+
--b-header-with-views-bar-tab-icon-red: var(--b-color-decorative-red);
|
|
1127
|
+
--b-header-with-views-bar-tab-icon-primary: var(--b-color-outline-primary-active);
|
|
1128
|
+
--b-header-with-views-bar-tab-icon-orange: var(--b-color-decorative-orange);
|
|
1129
|
+
--b-header-with-views-bar-tab-icon-green: var(--b-color-decorative-green);
|
|
1130
|
+
--b-header-with-views-bar-tab-icon-blue: var(--b-color-decorative-blue);
|
|
1131
|
+
--b-header-with-views-bar-tab-button-unsaved-color: var(--b-color-background-highlight-strong);
|
|
1132
|
+
--b-header-with-views-bar-tab-button-menu-right: var(--b-spacer-040);
|
|
1133
|
+
--b-header-with-views-bar-tab-button-menu-button-padding: var(--b-spacer-030);
|
|
1134
|
+
--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%);
|
|
1135
|
+
--b-header-with-views-bar-tab-button-gap: var(--b-spacer-040);
|
|
1136
|
+
--b-header-with-views-bar-tab-button-background-color-active: var(--b-color-background-primary-active);
|
|
1137
|
+
--b-header-with-views-bar-tab-padding-inline: var(--b-border-width-l) var(--b-spacer-040);
|
|
1138
|
+
--b-header-with-views-bar-padding: var(--b-spacer-030) 0;
|
|
1139
|
+
--b-header-with-views-bar-gap: var(--b-spacer-020);
|
|
1140
|
+
--b-header-with-views-title-gap: var(--b-spacer-030);
|
|
1141
|
+
--b-header-with-views-padding-inline: var(--b-spacer-070);
|
|
1142
|
+
--b-header-with-views-gap: var(--b-spacer-050);
|
|
1096
1143
|
--b-form-layout-title-subsection-margin-top: var(--b-spacer-080);
|
|
1097
1144
|
--b-form-layout-title-description-color: var(--b-color-label-secondary);
|
|
1098
1145
|
--b-form-layout-title-color: var(--b-color-label-primary);
|
|
@@ -1490,8 +1537,10 @@
|
|
|
1490
1537
|
--b-data-grid-static-icon-error-colored-color: var(--b-color-label-critical);
|
|
1491
1538
|
--b-data-grid-static-icon-cross-colored-color: var(--b-color-label-critical);
|
|
1492
1539
|
--b-data-grid-static-icon-checkmark-colored-color: var(--b-color-label-success);
|
|
1540
|
+
--b-dashed-underline-hover-text-decoration-color: var(--b-color-outline-tertiary-active);
|
|
1493
1541
|
--b-dashed-underline-hover-border-color: var(--b-color-outline-tertiary-active);
|
|
1494
|
-
--b-dashed-underline-
|
|
1542
|
+
--b-dashed-underline-text-decoration-color: var(--b-color-outline-tertiary);
|
|
1543
|
+
--b-dashed-underline-border-bottom: var(--b-border-width-m) solid transparent;
|
|
1495
1544
|
--b-dashboard-section-divider-margin-top: var(--b-spacer-090);
|
|
1496
1545
|
--b-dashboard-section-controls-gap: var(--b-spacer-040);
|
|
1497
1546
|
--b-dashboard-section-columns-m-and-up-gap: var(--b-spacer-120);
|
|
@@ -1675,6 +1724,29 @@
|
|
|
1675
1724
|
--b-card-border-radius: var(--b-border-radius-l);
|
|
1676
1725
|
--b-card-border-color: var(--b-color-outline-primary);
|
|
1677
1726
|
--b-card-background-color: var(--b-color-background-primary);
|
|
1727
|
+
--b-calendar-year-month-unselected-active-background: var(--b-color-background-primary-active);
|
|
1728
|
+
--b-calendar-year-month-unselected-hover-background: var(--b-color-background-primary-hover);
|
|
1729
|
+
--b-calendar-year-month-unselected-color: var(--b-color-label-primary);
|
|
1730
|
+
--b-calendar-year-month-selected-active-background: var(--b-color-background-inverse-primary-active);
|
|
1731
|
+
--b-calendar-year-month-selected-hover-background: var(--b-color-background-inverse-primary-hover);
|
|
1732
|
+
--b-calendar-year-month-selected-color: var(--b-color-label-inverse-primary);
|
|
1733
|
+
--b-calendar-year-month-selected-border-radius: var(--b-border-radius-s);
|
|
1734
|
+
--b-calendar-year-month-selected-background: var(--b-color-background-inverse-primary);
|
|
1735
|
+
--b-calendar-year-month-middle-active-background: var(--b-color-background-primary);
|
|
1736
|
+
--b-calendar-year-month-middle-hover-background: var(--b-color-background-primary-hover);
|
|
1737
|
+
--b-calendar-year-month-middle-color: var(--b-color-label-primary);
|
|
1738
|
+
--b-calendar-year-month-middle-background: var(--b-color-background-tertiary);
|
|
1739
|
+
--b-calendar-year-month-end-border-radius: 0 var(--b-border-radius-s) var(--b-border-radius-s) 0;
|
|
1740
|
+
--b-calendar-year-month-disabled-unselected-color: var(--b-color-label-disabled);
|
|
1741
|
+
--b-calendar-year-month-disabled-selected-background: var(--b-color-background-disabled);
|
|
1742
|
+
--b-calendar-year-month-disabled-selected-color: var(--b-color-label-disabled);
|
|
1743
|
+
--b-calendar-year-month-current-month-unselected-wrapper-background: var(--b-color-background-tertiary);
|
|
1744
|
+
--b-calendar-year-month-current-month-unselected-hover-wrapper-background: var(--b-color-background-primary);
|
|
1745
|
+
--b-calendar-year-month-current-month-selected-wrapper-background: var(--b-color-background-primary);
|
|
1746
|
+
--b-calendar-year-month-current-month-selected-color: var(--b-color-label-primary);
|
|
1747
|
+
--b-calendar-year-month-beginning-border-radius: var(--b-border-radius-s) 0 0 var(--b-border-radius-s);
|
|
1748
|
+
--b-calendar-year-year-selector-margin-bottom: var(--b-spacer-090);
|
|
1749
|
+
--b-calendar-year-year-selector-color: var(--b-color-label-primary);
|
|
1678
1750
|
--b-calendar-month-day-unselected-active-background: var(--b-color-background-primary-active);
|
|
1679
1751
|
--b-calendar-month-day-unselected-hover-background: var(--b-color-background-primary-hover);
|
|
1680
1752
|
--b-calendar-month-day-unselected-color: var(--b-color-label-primary);
|
|
@@ -105,6 +105,7 @@
|
|
|
105
105
|
--b-input-field-input-box-height: 36px;
|
|
106
106
|
--b-input-field-password-validation-title-font-weight: 700;
|
|
107
107
|
--b-header-actions-margin-top-desktop: 0;
|
|
108
|
+
--b-header-with-views-all-views-popover-menu-item-dragging-z-index: 1;
|
|
108
109
|
--b-filter-button-label-line-height: 20px;
|
|
109
110
|
--b-filter-bar-select-filter-button-divider-border-width: 0;
|
|
110
111
|
--b-filter-bar-select-filter-divider-border-width: 0;
|
|
@@ -157,6 +158,9 @@
|
|
|
157
158
|
--b-code-snippet-code-area-margin: 0;
|
|
158
159
|
--b-card-toggle-small-text-height: 24px;
|
|
159
160
|
--b-card-toggle-height: 26px;
|
|
161
|
+
--b-calendar-year-month-focus-visible-z-index: 1;
|
|
162
|
+
--b-calendar-year-month-width: 60px;
|
|
163
|
+
--b-calendar-year-month-height: 60px;
|
|
160
164
|
--b-calendar-month-day-width: 40px;
|
|
161
165
|
--b-calendar-month-day-height: 40px;
|
|
162
166
|
--b-button-condensed-tertiary-height: auto;
|
|
@@ -1092,6 +1096,49 @@
|
|
|
1092
1096
|
--b-header-title-margin-top: var(--b-spacer-010);
|
|
1093
1097
|
--b-header-title-color: var(--b-color-label-primary);
|
|
1094
1098
|
--b-header-wrapper-gap: var(--b-spacer-110);
|
|
1099
|
+
--b-header-with-views-edit-form-title-gap: var(--b-spacer-030);
|
|
1100
|
+
--b-header-with-views-edit-form-icon-panel-padding: var(--b-spacer-020);
|
|
1101
|
+
--b-header-with-views-edit-form-icon-panel-gap: var(--b-spacer-040);
|
|
1102
|
+
--b-header-with-views-edit-form-icon-selector-gap: var(--b-spacer-050);
|
|
1103
|
+
--b-header-with-views-edit-form-icon-options-button-border-selected: var(--b-border-width-s) solid var(--b-color-outline-primary-active);
|
|
1104
|
+
--b-header-with-views-edit-form-icon-options-button-border-radius: var(--b-border-radius-s);
|
|
1105
|
+
--b-header-with-views-edit-form-icon-options-button-border-hover: var(--b-border-width-s) solid var(--b-color-outline-primary-hover);
|
|
1106
|
+
--b-header-with-views-edit-form-icon-color-options-gap: var(--b-spacer-020);
|
|
1107
|
+
--b-header-with-views-edit-form-icon-color-options-button-padding: var(--b-spacer-010);
|
|
1108
|
+
--b-header-with-views-edit-form-icon-color-options-button-border-radius: var(--b-border-radius-xl);
|
|
1109
|
+
--b-header-with-views-edit-form-additional-config-margin-top: var(--b-spacer-080);
|
|
1110
|
+
--b-header-with-views-edit-form-actions-margin-top: var(--b-spacer-060);
|
|
1111
|
+
--b-header-with-views-edit-form-gap: var(--b-spacer-080);
|
|
1112
|
+
--b-header-with-views-all-views-popover-menu-item-button-select-margin: var(--b-spacer-070);
|
|
1113
|
+
--b-header-with-views-all-views-popover-menu-item-button-reorder-margin: var(--b-spacer-050);
|
|
1114
|
+
--b-header-with-views-all-views-popover-menu-item-button-reorder-color: var(--b-color-label-tertiary);
|
|
1115
|
+
--b-header-with-views-all-views-popover-menu-item-button-gap: var(--b-spacer-030);
|
|
1116
|
+
--b-header-with-views-all-views-popover-menu-item-padding: var(--b-spacer-040) var(--b-spacer-070);
|
|
1117
|
+
--b-header-with-views-all-views-popover-menu-item-hover-background-color: var(--b-color-background-modal-hover);
|
|
1118
|
+
--b-header-with-views-all-views-popover-menu-item-focus-background-color: var(--b-color-background-modal-active);
|
|
1119
|
+
--b-header-with-views-all-views-popover-menu-item-dragging-box-shadow: var(--b-shadow-medium);
|
|
1120
|
+
--b-header-with-views-all-views-popover-menu-item-dragging-background-color: var(--b-color-background-selected);
|
|
1121
|
+
--b-header-with-views-all-views-popover-menu-item-active-background-color: var(--b-color-background-modal-active);
|
|
1122
|
+
--b-header-with-views-all-views-popover-padding: var(--b-spacer-040) var(--b-spacer-000);
|
|
1123
|
+
--b-header-with-views-modal-description-gap: var(--b-spacer-070);
|
|
1124
|
+
--b-header-with-views-bar-tab-icon-yellow: var(--b-color-decorative-yellow);
|
|
1125
|
+
--b-header-with-views-bar-tab-icon-red: var(--b-color-decorative-red);
|
|
1126
|
+
--b-header-with-views-bar-tab-icon-primary: var(--b-color-outline-primary-active);
|
|
1127
|
+
--b-header-with-views-bar-tab-icon-orange: var(--b-color-decorative-orange);
|
|
1128
|
+
--b-header-with-views-bar-tab-icon-green: var(--b-color-decorative-green);
|
|
1129
|
+
--b-header-with-views-bar-tab-icon-blue: var(--b-color-decorative-blue);
|
|
1130
|
+
--b-header-with-views-bar-tab-button-unsaved-color: var(--b-color-background-highlight-strong);
|
|
1131
|
+
--b-header-with-views-bar-tab-button-menu-right: var(--b-spacer-040);
|
|
1132
|
+
--b-header-with-views-bar-tab-button-menu-button-padding: var(--b-spacer-030);
|
|
1133
|
+
--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%);
|
|
1134
|
+
--b-header-with-views-bar-tab-button-gap: var(--b-spacer-040);
|
|
1135
|
+
--b-header-with-views-bar-tab-button-background-color-active: var(--b-color-background-primary-active);
|
|
1136
|
+
--b-header-with-views-bar-tab-padding-inline: var(--b-border-width-l) var(--b-spacer-040);
|
|
1137
|
+
--b-header-with-views-bar-padding: var(--b-spacer-030) 0;
|
|
1138
|
+
--b-header-with-views-bar-gap: var(--b-spacer-020);
|
|
1139
|
+
--b-header-with-views-title-gap: var(--b-spacer-030);
|
|
1140
|
+
--b-header-with-views-padding-inline: var(--b-spacer-070);
|
|
1141
|
+
--b-header-with-views-gap: var(--b-spacer-050);
|
|
1095
1142
|
--b-form-layout-title-subsection-margin-top: var(--b-spacer-080);
|
|
1096
1143
|
--b-form-layout-title-description-color: var(--b-color-label-secondary);
|
|
1097
1144
|
--b-form-layout-title-color: var(--b-color-label-primary);
|
|
@@ -1488,8 +1535,10 @@
|
|
|
1488
1535
|
--b-data-grid-static-icon-error-colored-color: var(--b-color-label-critical);
|
|
1489
1536
|
--b-data-grid-static-icon-cross-colored-color: var(--b-color-label-critical);
|
|
1490
1537
|
--b-data-grid-static-icon-checkmark-colored-color: var(--b-color-label-success);
|
|
1538
|
+
--b-dashed-underline-hover-text-decoration-color: var(--b-color-outline-tertiary-active);
|
|
1491
1539
|
--b-dashed-underline-hover-border-color: var(--b-color-outline-tertiary-active);
|
|
1492
|
-
--b-dashed-underline-
|
|
1540
|
+
--b-dashed-underline-text-decoration-color: var(--b-color-outline-tertiary);
|
|
1541
|
+
--b-dashed-underline-border-bottom: var(--b-border-width-m) solid transparent;
|
|
1493
1542
|
--b-dashboard-section-divider-margin-top: var(--b-spacer-090);
|
|
1494
1543
|
--b-dashboard-section-controls-gap: var(--b-spacer-040);
|
|
1495
1544
|
--b-dashboard-section-columns-m-and-up-gap: var(--b-spacer-120);
|
|
@@ -1673,6 +1722,29 @@
|
|
|
1673
1722
|
--b-card-border-radius: var(--b-border-radius-l);
|
|
1674
1723
|
--b-card-border-color: var(--b-color-outline-primary);
|
|
1675
1724
|
--b-card-background-color: var(--b-color-background-primary);
|
|
1725
|
+
--b-calendar-year-month-unselected-active-background: var(--b-color-background-primary-active);
|
|
1726
|
+
--b-calendar-year-month-unselected-hover-background: var(--b-color-background-primary-hover);
|
|
1727
|
+
--b-calendar-year-month-unselected-color: var(--b-color-label-primary);
|
|
1728
|
+
--b-calendar-year-month-selected-active-background: var(--b-color-background-inverse-primary-active);
|
|
1729
|
+
--b-calendar-year-month-selected-hover-background: var(--b-color-background-inverse-primary-hover);
|
|
1730
|
+
--b-calendar-year-month-selected-color: var(--b-color-label-inverse-primary);
|
|
1731
|
+
--b-calendar-year-month-selected-border-radius: var(--b-border-radius-s);
|
|
1732
|
+
--b-calendar-year-month-selected-background: var(--b-color-background-inverse-primary);
|
|
1733
|
+
--b-calendar-year-month-middle-active-background: var(--b-color-background-primary);
|
|
1734
|
+
--b-calendar-year-month-middle-hover-background: var(--b-color-background-primary-hover);
|
|
1735
|
+
--b-calendar-year-month-middle-color: var(--b-color-label-primary);
|
|
1736
|
+
--b-calendar-year-month-middle-background: var(--b-color-background-tertiary);
|
|
1737
|
+
--b-calendar-year-month-end-border-radius: 0 var(--b-border-radius-s) var(--b-border-radius-s) 0;
|
|
1738
|
+
--b-calendar-year-month-disabled-unselected-color: var(--b-color-label-disabled);
|
|
1739
|
+
--b-calendar-year-month-disabled-selected-background: var(--b-color-background-disabled);
|
|
1740
|
+
--b-calendar-year-month-disabled-selected-color: var(--b-color-label-disabled);
|
|
1741
|
+
--b-calendar-year-month-current-month-unselected-wrapper-background: var(--b-color-background-tertiary);
|
|
1742
|
+
--b-calendar-year-month-current-month-unselected-hover-wrapper-background: var(--b-color-background-primary);
|
|
1743
|
+
--b-calendar-year-month-current-month-selected-wrapper-background: var(--b-color-background-primary);
|
|
1744
|
+
--b-calendar-year-month-current-month-selected-color: var(--b-color-label-primary);
|
|
1745
|
+
--b-calendar-year-month-beginning-border-radius: var(--b-border-radius-s) 0 0 var(--b-border-radius-s);
|
|
1746
|
+
--b-calendar-year-year-selector-margin-bottom: var(--b-spacer-090);
|
|
1747
|
+
--b-calendar-year-year-selector-color: var(--b-color-label-primary);
|
|
1676
1748
|
--b-calendar-month-day-unselected-active-background: var(--b-color-background-primary-active);
|
|
1677
1749
|
--b-calendar-month-day-unselected-hover-background: var(--b-color-background-primary-hover);
|
|
1678
1750
|
--b-calendar-month-day-unselected-color: var(--b-color-label-primary);
|