@adyen/bento-vue2 1.72.0 → 1.74.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 -10
- package/dist/@types/index.d.ts +1538 -1703
- package/dist/@types/use-form-v4.d.ts +1 -1
- package/dist/accordion.js +1 -1
- 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/avatar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/button.css +1 -1
- package/dist/assets/calendar.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/country.css +1 -1
- package/dist/assets/currency.css +1 -1
- package/dist/assets/data-grid-template.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-default-textbox.css +1 -1
- package/dist/assets/dropdown-tag.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-meta.css +1 -1
- package/dist/assets/header-with-views.css +1 -1
- 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/listbox-option-tag.css +1 -1
- package/dist/assets/loading-indicator.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/pagination.css +1 -1
- package/dist/assets/popper-container.css +1 -1
- package/dist/assets/radio-group.css +1 -1
- package/dist/assets/radio-input.css +1 -1
- package/dist/assets/secondary-nav.css +1 -1
- package/dist/assets/segmented-control.css +1 -1
- package/dist/assets/selection-card-group.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/step.css +1 -1
- package/dist/assets/tab.css +1 -1
- package/dist/assets/textarea.css +1 -1
- package/dist/assets/timeline-item.css +1 -1
- package/dist/assets/toggle.css +1 -1
- package/dist/assets/tooltip.css +1 -1
- package/dist/assets/tutorial.css +1 -1
- package/dist/assets/use-cached-selected-values.css +1 -1
- package/dist/avatar.js +1 -1
- package/dist/button.js +3 -3
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chip.js +1 -1
- package/dist/chunks/{accordion-item.CoqaoVnC.js → accordion-item.nQhXD2tV.js} +2 -2
- package/dist/chunks/{accordion-item.CoqaoVnC.js.map → accordion-item.nQhXD2tV.js.map} +1 -1
- package/dist/chunks/{action-bar.Bxrtx1Vj.js → action-bar.MXZTIUNk.js} +5 -5
- package/dist/chunks/{action-bar.Bxrtx1Vj.js.map → action-bar.MXZTIUNk.js.map} +1 -1
- package/dist/chunks/{ai-button.FRPkTHz6.js → ai-button.DBwtNkyS.js} +2 -2
- package/dist/chunks/{ai-button.FRPkTHz6.js.map → ai-button.DBwtNkyS.js.map} +1 -1
- package/dist/chunks/{alert.CMyL-zWT.js → alert.SZPP58tl.js} +3 -3
- package/dist/chunks/{alert.CMyL-zWT.js.map → alert.SZPP58tl.js.map} +1 -1
- package/dist/chunks/{avatar.KdcsNOsm.js → avatar.CeDqq2Z-.js} +3 -3
- package/dist/chunks/avatar.CeDqq2Z-.js.map +1 -0
- package/dist/chunks/{base-modal.DInbAZlp.js → base-modal.BMdlCSd0.js} +7 -7
- package/dist/chunks/base-modal.BMdlCSd0.js.map +1 -0
- package/dist/chunks/{button-actions-with-menu.BtWUxmSL.js → button-actions-with-menu.BFRkPi6g.js} +2 -2
- package/dist/chunks/{button-actions-with-menu.BtWUxmSL.js.map → button-actions-with-menu.BFRkPi6g.js.map} +1 -1
- package/dist/chunks/{button-actions.55vIvDsX.js → button-actions.B81vY51z.js} +11 -14
- package/dist/chunks/button-actions.B81vY51z.js.map +1 -0
- package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -1
- package/dist/chunks/{button.CilT7NmM.js → button.CS_kdxYh.js} +3 -3
- package/dist/chunks/button.CS_kdxYh.js.map +1 -0
- package/dist/chunks/{calendar.M69sfyB9.js → calendar.EfqJlztU.js} +191 -187
- package/dist/chunks/calendar.EfqJlztU.js.map +1 -0
- package/dist/chunks/{card.C11dmth8.js → card.VOCKI7Ad.js} +8 -8
- package/dist/chunks/card.VOCKI7Ad.js.map +1 -0
- package/dist/chunks/{checkbox-group.Cr3WdkDM.js → checkbox-group.DETXTJqI.js} +4 -4
- package/dist/chunks/{checkbox-group.Cr3WdkDM.js.map → checkbox-group.DETXTJqI.js.map} +1 -1
- package/dist/chunks/{checkbox.D7-f9Y6w.js → checkbox.BPtHAAEa.js} +4 -4
- package/dist/chunks/{checkbox.D7-f9Y6w.js.map → checkbox.BPtHAAEa.js.map} +1 -1
- package/dist/chunks/{chip.omQX_Ziq.js → chip.fqEIkR-s.js} +2 -2
- package/dist/chunks/{chip.omQX_Ziq.js.map → chip.fqEIkR-s.js.map} +1 -1
- package/dist/chunks/{code-snippet.BGrwAxWy.js → code-snippet.VtrsOTEC.js} +7 -7
- package/dist/chunks/{code-snippet.BGrwAxWy.js.map → code-snippet.VtrsOTEC.js.map} +1 -1
- package/dist/chunks/{controls-group.CWeUgE2P.js → controls-group.82mB_GDw.js} +2 -2
- package/dist/chunks/{controls-group.CWeUgE2P.js.map → controls-group.82mB_GDw.js.map} +1 -1
- package/dist/chunks/{copy._BdbMnHK.js → copy.WQDLcs_T.js} +5 -5
- package/dist/chunks/{copy._BdbMnHK.js.map → copy.WQDLcs_T.js.map} +1 -1
- package/dist/chunks/country.CGn5WjFx.js +69 -0
- package/dist/chunks/country.CGn5WjFx.js.map +1 -0
- package/dist/chunks/country.types.C0Q_hhgJ.js.map +1 -1
- package/dist/chunks/{currency.MT3baDtO.js → currency.DDB4G_A8.js} +52 -35
- package/dist/chunks/currency.DDB4G_A8.js.map +1 -0
- package/dist/chunks/{dashboard-section.e7ozaS9M.js → dashboard-section.jIpBvP6X.js} +3 -3
- package/dist/chunks/{dashboard-section.e7ozaS9M.js.map → dashboard-section.jIpBvP6X.js.map} +1 -1
- package/dist/chunks/{dashed-underline.CGU6o7ni.js → dashed-underline.K-l-7bDq.js} +3 -3
- package/dist/chunks/{dashed-underline.CGU6o7ni.js.map → dashed-underline.K-l-7bDq.js.map} +1 -1
- package/dist/chunks/{data-grid-template.BaPjUlZ2.js → data-grid-template.CozTcWQ0.js} +4 -4
- package/dist/chunks/{data-grid-template.BaPjUlZ2.js.map → data-grid-template.CozTcWQ0.js.map} +1 -1
- package/dist/chunks/{data-grid.B_Ha2vma.js → data-grid.DN9xml8y.js} +1275 -1214
- package/dist/chunks/data-grid.DN9xml8y.js.map +1 -0
- package/dist/chunks/{date-input.BqBdAO1E.js → date-format.B8RU7D42.js} +6 -6
- package/dist/chunks/date-format.B8RU7D42.js.map +1 -0
- package/dist/chunks/date-picker.DoYYzWcA.js +158 -0
- package/dist/chunks/date-picker.DoYYzWcA.js.map +1 -0
- package/dist/chunks/date-range-picker.C_pJ8yH5.js +917 -0
- package/dist/chunks/date-range-picker.C_pJ8yH5.js.map +1 -0
- package/dist/chunks/{date.BTdCYdkj.js → date.C1z2TXzM.js} +2 -2
- package/dist/chunks/{date.BTdCYdkj.js.map → date.C1z2TXzM.js.map} +1 -1
- package/dist/chunks/debounce.DUTu11PS.js.map +1 -1
- package/dist/chunks/{dialog-page.LA_ZhbYa.js → dialog-page.D23qNwKW.js} +3 -3
- package/dist/chunks/dialog-page.D23qNwKW.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.CDm-PQfc.js → dropdown-default-textbox.yLeN0E2z.js} +6 -6
- package/dist/chunks/dropdown-default-textbox.yLeN0E2z.js.map +1 -0
- package/dist/chunks/dropdown-tag.DBnurtCQ.js +245 -0
- package/dist/chunks/dropdown-tag.DBnurtCQ.js.map +1 -0
- package/dist/chunks/{dropdown.DQbTuKc5.js → dropdown.BOvtYKXS.js} +202 -193
- package/dist/chunks/dropdown.BOvtYKXS.js.map +1 -0
- package/dist/chunks/{empty-state.DNTrhYUm.js → empty-state.BsdRxzS2.js} +2 -2
- package/dist/chunks/{empty-state.DNTrhYUm.js.map → empty-state.BsdRxzS2.js.map} +1 -1
- package/dist/chunks/es6.MoTTyETW.js.map +1 -1
- package/dist/chunks/{field-label.BKzuCnXr.js → field-label.Auq-Pzho.js} +3 -3
- package/dist/chunks/{field-label.BKzuCnXr.js.map → field-label.Auq-Pzho.js.map} +1 -1
- package/dist/chunks/{file-uploader.BEClGxsF.js → file-uploader.BGoCYrnw.js} +27 -28
- package/dist/chunks/file-uploader.BGoCYrnw.js.map +1 -0
- package/dist/chunks/{filter-bar.Dnnv0rpV.js → filter-bar.DzHJi42d.js} +680 -746
- package/dist/chunks/filter-bar.DzHJi42d.js.map +1 -0
- package/dist/chunks/{fixed-scroller.QCXpkadN.js → fixed-scroller.CgVOf5VE.js} +3 -3
- package/dist/chunks/{fixed-scroller.QCXpkadN.js.map → fixed-scroller.CgVOf5VE.js.map} +1 -1
- package/dist/chunks/focus-trap.BJfpIboH.js.map +1 -1
- package/dist/chunks/{footer-actions.BTELM6rh.js → footer-actions.CLq_kBwY.js} +3 -3
- package/dist/chunks/{footer-actions.BTELM6rh.js.map → footer-actions.CLq_kBwY.js.map} +1 -1
- package/dist/chunks/{form-layout-title.aXVuAWiG.js → form-layout-title.DoF6ovPB.js} +23 -16
- package/dist/chunks/form-layout-title.DoF6ovPB.js.map +1 -0
- package/dist/chunks/get-slot-text.BQS5Olxm.js.map +1 -1
- package/dist/chunks/{header-meta.DZYH-qg-.js → header-meta.uiIO1wHP.js} +30 -27
- package/dist/chunks/{header-meta.DZYH-qg-.js.map → header-meta.uiIO1wHP.js.map} +1 -1
- package/dist/chunks/{header-with-views.DjZa4Wob.js → header-with-views.t5Fr63SD.js} +87 -87
- package/dist/chunks/header-with-views.t5Fr63SD.js.map +1 -0
- package/dist/chunks/{header.CQMiTG7f.js → header.DwSyDQ68.js} +3 -3
- package/dist/chunks/{header.CQMiTG7f.js.map → header.DwSyDQ68.js.map} +1 -1
- package/dist/chunks/index.B6WW_F-J.js +31 -0
- package/dist/chunks/index.B6WW_F-J.js.map +1 -0
- package/dist/chunks/{info-icon.fB7jf3NJ.js → info-icon.Bhka3oGh.js} +3 -3
- package/dist/chunks/{info-icon.fB7jf3NJ.js.map → info-icon.Bhka3oGh.js.map} +1 -1
- package/dist/chunks/{input-field-password.BPujvbx8.js → input-field-password.Dm3HYonF.js} +24 -24
- package/dist/chunks/input-field-password.Dm3HYonF.js.map +1 -0
- package/dist/chunks/{input-field-phone-number.bqUe_CVf.js → input-field-phone-number.bZauIuHJ.js} +1149 -1149
- package/dist/chunks/{input-field-phone-number.bqUe_CVf.js.map → input-field-phone-number.bZauIuHJ.js.map} +1 -1
- package/dist/chunks/{input-field.CwF6ldRY.js → input-field.D52XYEzU.js} +5 -5
- package/dist/chunks/input-field.D52XYEzU.js.map +1 -0
- package/dist/chunks/{inspector.g3OErNAU.js → inspector.pmpheRch.js} +4 -4
- package/dist/chunks/inspector.pmpheRch.js.map +1 -0
- package/dist/chunks/keyboard-navigation.pB8weElW.js.map +1 -1
- package/dist/chunks/{link.C4htMrDV.js → link.D8qpqg3W.js} +2 -2
- package/dist/chunks/{link.C4htMrDV.js.map → link.D8qpqg3W.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.UaD4kmXc.js → listbox-option-tag.Dl8GwHLT.js} +3 -3
- package/dist/chunks/listbox-option-tag.Dl8GwHLT.js.map +1 -0
- package/dist/chunks/loading-indicator.PxbRzshH.js +42 -0
- package/dist/chunks/loading-indicator.PxbRzshH.js.map +1 -0
- package/dist/chunks/{modal-fullscreen.B-9Ke6Ya.js → modal-fullscreen.BSKm6yn_.js} +6 -6
- package/dist/chunks/{modal-fullscreen.B-9Ke6Ya.js.map → modal-fullscreen.BSKm6yn_.js.map} +1 -1
- package/dist/chunks/{modal.qybFapnI.js → modal.Bp5twyjz.js} +6 -6
- package/dist/chunks/{modal.qybFapnI.js.map → modal.Bp5twyjz.js.map} +1 -1
- package/dist/chunks/on-click-outside.D9aY9g8G.js.map +1 -1
- package/dist/chunks/{pagination.BWTyXMRW.js → pagination.CKD9FDrA.js} +5 -5
- package/dist/chunks/pagination.CKD9FDrA.js.map +1 -0
- package/dist/chunks/popover.types.DK6opPkz.js +6 -0
- package/dist/chunks/{popover.types.iyDoIAOE.js.map → popover.types.DK6opPkz.js.map} +1 -1
- package/dist/chunks/{popper-container.C9KCAJxI.js → popper-container.agLYtGwv.js} +2 -2
- package/dist/chunks/{popper-container.C9KCAJxI.js.map → popper-container.agLYtGwv.js.map} +1 -1
- package/dist/chunks/{promo-banner.MI5NC2UT.js → promo-banner.DikQcQU2.js} +3 -3
- package/dist/chunks/promo-banner.DikQcQU2.js.map +1 -0
- package/dist/chunks/radio-group.AcYMFudv.js +177 -0
- package/dist/chunks/radio-group.AcYMFudv.js.map +1 -0
- package/dist/chunks/{radio-input.D8mv2EYC.js → radio-input.kzb4gxLW.js} +17 -17
- package/dist/chunks/radio-input.kzb4gxLW.js.map +1 -0
- package/dist/chunks/{rich-text-editor.C905JEDW.js → rich-text-editor.BZgQ578S.js} +7 -7
- package/dist/chunks/{rich-text-editor.C905JEDW.js.map → rich-text-editor.BZgQ578S.js.map} +1 -1
- package/dist/chunks/{search-bar.CKt_-tZH.js → search-bar.c-w7Uky2.js} +4 -4
- package/dist/chunks/{search-bar.CKt_-tZH.js.map → search-bar.c-w7Uky2.js.map} +1 -1
- package/dist/chunks/{secondary-nav.B5L2bLmm.js → secondary-nav.D69COlqF.js} +9 -9
- package/dist/chunks/secondary-nav.D69COlqF.js.map +1 -0
- package/dist/chunks/{segmented-control.Dc34mUMM.js → segmented-control.Cma_nu0G.js} +17 -16
- package/dist/chunks/segmented-control.Cma_nu0G.js.map +1 -0
- package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -1
- package/dist/chunks/{selection-card-group.CBVKMu6b.js → selection-card-group.8UIir78G.js} +5 -5
- package/dist/chunks/selection-card-group.8UIir78G.js.map +1 -0
- package/dist/chunks/{sidepanel.uWNc58r7.js → sidepanel.A9yG4FP_.js} +12 -12
- package/dist/chunks/{sidepanel.uWNc58r7.js.map → sidepanel.A9yG4FP_.js.map} +1 -1
- package/dist/chunks/{step.D8blWwfR.js → step.TzzZSA9f.js} +4 -4
- package/dist/chunks/step.TzzZSA9f.js.map +1 -0
- package/dist/chunks/{structured-list-item.BLalgOps.js → structured-list-item.CMsVwwA6.js} +6 -6
- package/dist/chunks/{structured-list-item.BLalgOps.js.map → structured-list-item.CMsVwwA6.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.DqzYJ9_N.js → summary-grid.types.B80533d1.js} +6 -6
- package/dist/chunks/{summary-grid.types.DqzYJ9_N.js.map → summary-grid.types.B80533d1.js.map} +1 -1
- package/dist/chunks/{tab.D8YyoNFV.js → tab.CTui3j3e.js} +3 -3
- package/dist/chunks/tab.CTui3j3e.js.map +1 -0
- package/dist/chunks/{tag.Tjg4linG.js → tag.BwKc2d2E.js} +2 -2
- package/dist/chunks/{tag.Tjg4linG.js.map → tag.BwKc2d2E.js.map} +1 -1
- package/dist/chunks/textarea.CIQuLWQ8.js +165 -0
- package/dist/chunks/textarea.CIQuLWQ8.js.map +1 -0
- package/dist/chunks/{timeline-item.DaRKHndA.js → timeline-item.VSw9vKdO.js} +10 -10
- package/dist/chunks/timeline-item.VSw9vKdO.js.map +1 -0
- package/dist/chunks/{toast.gMDjItrP.js → toast.B4J4V6n-.js} +3 -3
- package/dist/chunks/{toast.gMDjItrP.js.map → toast.B4J4V6n-.js.map} +1 -1
- package/dist/chunks/toggle.BJMXpHRu.js +108 -0
- package/dist/chunks/toggle.BJMXpHRu.js.map +1 -0
- package/dist/chunks/{tooltip.DOD_4rkI.js → tooltip.D3SDcRef.js} +64 -68
- package/dist/chunks/tooltip.D3SDcRef.js.map +1 -0
- package/dist/chunks/{tutorial.BwnRyUoh.js → tutorial.B32GMtIj.js} +6 -6
- package/dist/chunks/tutorial.B32GMtIj.js.map +1 -0
- package/dist/chunks/{use-cached-selected-values.C7j6YhuC.js → use-cached-selected-values.IsfhJHxQ.js} +19 -19
- package/dist/chunks/use-cached-selected-values.IsfhJHxQ.js.map +1 -0
- package/dist/chunks/{use-country-items.DFdM2Ank.js → use-country-items.B3Cd3Tdo.js} +2 -2
- package/dist/chunks/use-country-items.B3Cd3Tdo.js.map +1 -0
- package/dist/chunks/use-country-phon-code.Bui3zD6W.js.map +1 -1
- package/dist/chunks/use-default-slot-validator.BDn0wkYP.js.map +1 -1
- package/dist/chunks/use-has-slot.C9lQZ6nz.js.map +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/country.js +1 -1
- package/dist/currency.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +5 -4
- package/dist/date-range-picker.js +5 -4
- package/dist/date.js +1 -1
- package/dist/dropdown.js +4 -4
- package/dist/empty-state.js +1 -1
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +5 -4
- package/dist/form-layout.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +405 -329
- 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 +12 -12
- package/dist/link.js +1 -1
- package/dist/loading-indicator.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/popover.js +2 -2
- package/dist/popper-container.js +1 -1
- package/dist/promo-banner.js +1 -1
- package/dist/radio-group.js +2 -2
- package/dist/rich-text-editor.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/stepper.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/styles/bento-dark.css +25 -15
- package/dist/styles/bento-light.css +9 -3
- package/dist/styles/bento.css +9 -3
- package/dist/styles/legacy.css +9 -3
- package/dist/styles/styleguide.css +9 -3
- 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/toast.js +1 -1
- package/dist/toggle.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/use-form-v4.js.map +1 -1
- package/dist/web-types.json +1297 -1026
- package/package.json +12 -12
- package/dist/chunks/avatar.KdcsNOsm.js.map +0 -1
- package/dist/chunks/base-modal.DInbAZlp.js.map +0 -1
- package/dist/chunks/button-actions.55vIvDsX.js.map +0 -1
- package/dist/chunks/button.CilT7NmM.js.map +0 -1
- package/dist/chunks/calendar.M69sfyB9.js.map +0 -1
- package/dist/chunks/card.C11dmth8.js.map +0 -1
- package/dist/chunks/country.1yIZNjdj.js +0 -94
- package/dist/chunks/country.1yIZNjdj.js.map +0 -1
- package/dist/chunks/currency.MT3baDtO.js.map +0 -1
- package/dist/chunks/data-grid.B_Ha2vma.js.map +0 -1
- package/dist/chunks/date-input.BqBdAO1E.js.map +0 -1
- package/dist/chunks/date-picker.CGTMHUNH.js +0 -240
- package/dist/chunks/date-picker.CGTMHUNH.js.map +0 -1
- package/dist/chunks/date-range-picker.ChGfJUPq.js +0 -971
- package/dist/chunks/date-range-picker.ChGfJUPq.js.map +0 -1
- package/dist/chunks/dialog-page.LA_ZhbYa.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.CDm-PQfc.js.map +0 -1
- package/dist/chunks/dropdown-tag.Bwl0fY7o.js +0 -306
- package/dist/chunks/dropdown-tag.Bwl0fY7o.js.map +0 -1
- package/dist/chunks/dropdown.DQbTuKc5.js.map +0 -1
- package/dist/chunks/file-uploader.BEClGxsF.js.map +0 -1
- package/dist/chunks/filter-bar.Dnnv0rpV.js.map +0 -1
- package/dist/chunks/form-layout-title.aXVuAWiG.js.map +0 -1
- package/dist/chunks/header-with-views.DjZa4Wob.js.map +0 -1
- package/dist/chunks/i18n.BQkEbtPM.js +0 -31
- package/dist/chunks/i18n.BQkEbtPM.js.map +0 -1
- package/dist/chunks/input-field-password.BPujvbx8.js.map +0 -1
- package/dist/chunks/input-field.CwF6ldRY.js.map +0 -1
- package/dist/chunks/inspector.g3OErNAU.js.map +0 -1
- package/dist/chunks/listbox-option-tag.UaD4kmXc.js.map +0 -1
- package/dist/chunks/loading-indicator.DXc7I1Lm.js +0 -48
- package/dist/chunks/loading-indicator.DXc7I1Lm.js.map +0 -1
- package/dist/chunks/pagination.BWTyXMRW.js.map +0 -1
- package/dist/chunks/popover.types.iyDoIAOE.js +0 -6
- package/dist/chunks/promo-banner.MI5NC2UT.js.map +0 -1
- package/dist/chunks/radio-group.DHUa6baR.js +0 -231
- package/dist/chunks/radio-group.DHUa6baR.js.map +0 -1
- package/dist/chunks/radio-input.D8mv2EYC.js.map +0 -1
- package/dist/chunks/secondary-nav.B5L2bLmm.js.map +0 -1
- package/dist/chunks/segmented-control.Dc34mUMM.js.map +0 -1
- package/dist/chunks/selection-card-group.CBVKMu6b.js.map +0 -1
- package/dist/chunks/step.D8blWwfR.js.map +0 -1
- package/dist/chunks/tab.D8YyoNFV.js.map +0 -1
- package/dist/chunks/textarea.DUPV-I-L.js +0 -214
- package/dist/chunks/textarea.DUPV-I-L.js.map +0 -1
- package/dist/chunks/timeline-item.DaRKHndA.js.map +0 -1
- package/dist/chunks/toggle.Ct-5NUGu.js +0 -121
- package/dist/chunks/toggle.Ct-5NUGu.js.map +0 -1
- package/dist/chunks/tooltip.DOD_4rkI.js.map +0 -1
- package/dist/chunks/tutorial.BwnRyUoh.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.C7j6YhuC.js.map +0 -1
- package/dist/chunks/use-country-items.DFdM2Ank.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.types.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 { type allKeys, type ErrorBag, type 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 { type BentoTheme } from './install.types';\n\nexport const useBentoThemeKey = Symbol('use-bento-theme');\n\nexport interface UseBentoTheme {\n getTheme: () => string;\n setTheme: (theme: BentoTheme | `${BentoTheme}`) => void;\n}\n","import { printDevelopmentWarning } from '@/utils/ts/print-development-warning';\nimport { getCurrentInstance, inject } from 'vue';\nimport { isVue2 } from 'vue-demi';\nimport { type UseBentoTheme, useBentoThemeKey } from './use-bento-theme.types';\n\n/**\n * Composable that handles theming-related capabilities for the Bento component library.\n * Requires the use of `BentoPlugin`.\n *\n * @example\n * <script setup lang=\"ts\">\n * import { useBentoTheme, BentoTheme } from '@adyen/bento-vue2';\n *\n * const { setTheme } = useBentoTheme();\n *\n * setTheme(BentoTheme.BENTO_DARK)\n * </script>\n *\n * @returns {UseBentoTheme} An object with getter and setter method for the Bento theme.\n * @returns {Function} getTheme - Returns the current theme in the string form of BentoTheme enum.\n * @returns {Function} setTheme - Sets the theme of the Bento component library.\n *\n */\nexport function useBentoTheme(): UseBentoTheme {\n const bentoThemeController = isVue2\n ? getCurrentInstance()?.proxy[useBentoThemeKey]\n : inject(useBentoThemeKey, null);\n\n if (!bentoThemeController) {\n printDevelopmentWarning('useBentoTheme does not work without Vue.use(BentoPlugin)');\n\n // Return placeholder functions so client code won't break, but theme won't toggle\n return {\n getTheme: () => undefined,\n setTheme: () => undefined,\n };\n }\n\n // Return a new object so unintentional reassigning its properties won't override a global state\n return { ...bentoThemeController };\n}\n","import { type App, isVue2, type Vue2 } from 'vue-demi';\nimport { createToastStack, toastStackInjectionKey } from './toast-stack';\n\n/**\n * This function is used to create and register global reactive state necessary fro the Toasts to operate.\n * @param {Vue} Vue A context application to register global state with.\n */\nexport default Vue => {\n if (isVue2) {\n // Add toast stack as a global property as there is no \"app.provide\" functionality in Vue2\n // eslint-disable-next-line no-param-reassign -- this is an official way of setting up instance properties on Vue\n (Vue as typeof Vue2).prototype[toastStackInjectionKey] = createToastStack();\n } else {\n (Vue as App).provide(toastStackInjectionKey, createToastStack());\n }\n};\n","export enum BentoTheme {\n /**\n * @deprecated in favor of {@link BENTO_LIGHT}. To be removed in v2.0.0.\n */\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","import { type App, isVue2, type Vue2 } from 'vue-demi';\nimport { useBentoThemeKey } from './use-bento-theme.types';\nimport { BentoTheme } from './install.types';\n\nconst getTheme = () => document.body.className.match(/b-\\w+-theme/)?.[0] ?? '';\nconst getThemeForSystemPreference = () => {\n const preferredDarkMode = window.matchMedia('(prefers-color-scheme: dark)').matches;\n\n if (preferredDarkMode) {\n return BentoTheme.BENTO_DARK;\n }\n\n return BentoTheme.BENTO_LIGHT;\n};\n\nexport const setTheme = (theme: BentoTheme) => {\n const currentTheme = getTheme();\n const systemTheme = getThemeForSystemPreference();\n const themeToSet = theme === BentoTheme.BENTO_SYSTEM ? systemTheme : theme;\n\n if (themeToSet === BentoTheme.BENTO_LIGHT || themeToSet === BentoTheme.BENTO) {\n document.documentElement.style.colorScheme = 'light';\n } else if (themeToSet === BentoTheme.BENTO_DARK) {\n document.documentElement.style.colorScheme = 'dark';\n }\n\n // if theme is different from current and it is not `BentoTheme.BENTO`\n if (currentTheme.length && currentTheme !== themeToSet) {\n document.body.classList.remove(currentTheme);\n }\n\n // if theme is not `BentoTheme.BENTO`\n if (themeToSet.length) {\n document.body.classList.add(themeToSet);\n }\n};\n\n/**\n * This function is used to create and register global reactive state necessary for theme to operate.\n * @param {Vue} Vue A context application to register global state with.\n */\nexport default Vue => {\n const themeProvider = {\n getTheme,\n setTheme,\n };\n\n if (isVue2) {\n // Add theme as a global property as there is no \"app.provide\" functionality in Vue2\n // eslint-disable-next-line no-param-reassign -- this is an official way of setting up instance properties on Vue\n (Vue as typeof Vue2).prototype[useBentoThemeKey] = themeProvider;\n } else {\n (Vue as App).provide(useBentoThemeKey, themeProvider);\n }\n};\n","import installToast from './composables/use-bento-toast-controller/install';\nimport installTheme, { setTheme } from './composables/use-bento-theme/install';\nimport { deprecate } from './utils/ts/deprecate';\nimport { BentoTheme } from './composables/use-bento-theme/install.types';\nimport type { PluginObject } from 'vue';\n\ninterface BentoVuePlugin {\n theme?: BentoTheme;\n withToast?: boolean;\n withUtilityClasses?: boolean;\n withDesignTokensCSSInjection?: boolean;\n}\n\nconst plugin: PluginObject<BentoVuePlugin> = {\n name: 'BentoVue',\n install: async (\n Vue,\n {\n theme = BentoTheme.BENTO_LIGHT,\n withToast = false,\n withUtilityClasses = false,\n withDesignTokensCSSInjection = true,\n }: BentoVuePlugin\n ) => {\n installTheme(Vue);\n\n if (withToast) {\n installToast(Vue);\n }\n if (withDesignTokensCSSInjection) {\n deprecate(\n 'Using default setting withDesignTokensCSSInjection set to true in BentoVue plugin',\n 'Please disable CSS injection by setting withDesignTokensCSSInjection to false in BentoVue plugin options as highlighted here:\\nhttps://adyen-bento.netlify.app/?path=/docs/welcome-getting-started--docs#import-css-variables',\n '2.0.0'\n );\n // Make sure to put all awaited CSS imports below this point and not above!\n if (theme === BentoTheme.STYLEGUIDE) {\n await import('@adyen/bento-design-tokens/dist/css/bento/variables-styleguide.css');\n } else {\n await import('@adyen/bento-design-tokens/dist/css/bento/variables.css');\n }\n\n if (withUtilityClasses) {\n await import('@adyen/bento-design-tokens/dist/css/bento/utility.css');\n }\n }\n\n if (theme === BentoTheme.STYLEGUIDE) {\n setTheme(BentoTheme.STYLEGUIDE);\n } else if (theme === BentoTheme.BENTO_SYSTEM) {\n setTheme(BentoTheme.BENTO_SYSTEM);\n } else if (theme === BentoTheme.BENTO_DARK) {\n setTheme(BentoTheme.BENTO_DARK);\n } else if (theme === BentoTheme.BENTO) {\n deprecate('Using `BentoTheme.BENTO`', 'Please use `BentoTheme.BENTO_LIGHT` instead', '2.0.0');\n setTheme(BentoTheme.BENTO_LIGHT);\n } else {\n setTheme(BentoTheme.BENTO_LIGHT);\n }\n },\n};\n\nexport { BentoTheme };\nexport default plugin;\n"],"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","BentoTheme","getTheme","getThemeForSystemPreference","setTheme","theme","currentTheme","systemTheme","themeToSet","installTheme","themeProvider","plugin","withToast","withUtilityClasses","withDesignTokensCSSInjection","deprecate"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBO,SAASA,EAAmCC,GAAe;AACvD,SAAAA;AACX;AA4BA,SAASC,EAA0CC,GAAmC;AAClF,MAAMC,KAAKD,aAAkBC,EAAE;AAC3B,WAAO,OAAO;AAAA,MACV,OAAO,QAAQD,EAAO,KAAK,EAAE,IAAI,CAAC,CAACE,GAAKC,CAAK,MACnCF,KAAKE,aAAiBF,EAAE,aAEnB,CAACC,GAAKC,EAAM,KAAK,cAAc,IAGpCF,KAAKE,aAAiBF,EAAE,YACnB,CAACC,GAAKH,EAAqBI,CAAK,CAAC,IAGrC,CAACD,GAAK,MAAS,CACzB;AAAA,IACL;AAIR;AAOA,SAASE,EAAkBC,GAAmB;AACnC,SAAAA,EAAM,KAAK,KAAK,GAAG;AAC9B;AA6CO,SAASC,EAA6B;AAAA,EACzC,kBAAAC;AACJ,GAUE;AAEQ,QAAAC,IAASC,EAA6C,EAAE,GAExDC,IAA4DC,EAAI,EAAE,GAClEC,IAA2BD,EAAIZ,EAAwBQ,CAAgB,CAAC,GAExEM,IAAc,MAAM;AACtB,IAAAL,EAAO,QAAQ,CAAC,GAChBE,EAAS,QAAQ,CAAC;AAAA,EACtB,GAEMI,IAAY,MAAM;AACR,IAAAD,EAAA,GACLD,EAAA,QAAQb,EAAwBQ,CAAgB;AAAA,EAC3D;AA8BO,SAAA;AAAA;AAAA,IAEH,UAAAG;AAAA,IACA,QAAAF;AAAA,IACA,QAAAI;AAAA;AAAA,IAGA,aAAa,MAAME,EAAU;AAAA,IAC7B,YApCe,OAAa,MAAM;AACt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J,EAA4B,GAC1CK,IAAaH,MAAUJ,EAAW,eAAeM,IAAcF;AAErE,EAAIG,MAAeP,EAAW,eAAeO,MAAeP,EAAW,QAC1D,SAAA,gBAAgB,MAAM,cAAc,UACtCO,MAAeP,EAAW,eACxB,SAAA,gBAAgB,MAAM,cAAc,SAI7CK,EAAa,UAAUA,MAAiBE,KAC/B,SAAA,KAAK,UAAU,OAAOF,CAAY,GAI3CE,EAAW,UACF,SAAA,KAAK,UAAU,IAAIA,CAAU;AAE9C,GAMeC,IAAA,CAAOX,MAAA;AAClB,QAAMY,IAAgB;AAAA,IAClB,UAAAR;AAAA,IACA,UAAAE;AAAA,EACJ;AAKK,EAAAN,EAAoB,UAAUP,CAAgB,IAAImB;AAI3D,GCzCMC,IAAuC;AAAA,EACzC,MAAM;AAAA,EACN,SAAS,OACLb,GACA;AAAA,IACI,OAAAO,IAAQJ,EAAW;AAAA,IACnB,WAAAW,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,MAAUJ,EAAW,aACrB,MAAM,OAAO,oEAAoE,IAEjF,MAAM,OAAO,yDAAyD,GAGtEY,KACA,MAAM,OAAO,uDAAuD,IAIxER,MAAUJ,EAAW,aACrBG,EAASH,EAAW,UAAU,IACvBI,MAAUJ,EAAW,eAC5BG,EAASH,EAAW,YAAY,IACzBI,MAAUJ,EAAW,aAC5BG,EAASH,EAAW,UAAU,KACvBI,MAAUJ,EAAW,SAClBc,EAAA,4BAA4B,+CAA+C,OAAO,GAC5FX,EAASH,EAAW,WAAW;AAAA,EAGnC;AAER;"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/composables/use-bento-base-filter/utils/utils.ts","../src/composables/use-bento-base-filter/use-bento-base-filter.ts","../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.types.ts","../src/composables/use-bento-theme/install.ts","../src/install.ts","../src/types/base-filter.ts"],"sourcesContent":["/**\n * Checks if a value is a plain object.\n *\n * @param value The value to check.\n * @returns Whether the value is a plain object.\n */\nexport const isPlainObject = (value: unknown) => {\n if (value === null || typeof value !== 'object') {\n return false;\n }\n\n return Object.prototype.toString.call(value) === '[object Object]';\n};\n\n/**\n * Checks if a value is an array.\n *\n * @param value The value to check.\n * @returns Whether the value is an array.\n */\nexport const isArray = <T>(value: T) => Array.isArray(value);\n\n/**\n * Checks if a value is empty.\n * If the value is an array, it checks if the array is empty or if all elements are empty strings.\n * If the value is not an array, it checks if the value is falsy.\n *\n * @param value The value to check.\n * @returns Whether the value is empty.\n */\nexport const isValueEmpty = <T>(value: T) =>\n isArray(value) ? (value as []).length === 0 || (value as Array<T>).every(el => el === '') : !value;\n\n/**\n * Checks if two objects are deeply equal by comparing their JSON string representations.\n *\n * @param first The first value.\n * @param second The second value.\n * @returns Whether the values are equal.\n */\nexport const isEqual = <T>(first: T, second: T) => JSON.stringify(first) === JSON.stringify(second);\n\n/**\n * Creates a deep copy of a value.\n * If the value is a plain object, it uses `JSON.parse(JSON.stringify(value))` to create a deep copy.\n * Otherwise, it returns the value as is.\n *\n * @param value The value to copy.\n * @returns The deep copied value or the original value if it's not a plain object.\n */\nexport const deepCopy = <T>(value: T) =>\n isPlainObject(value) || isArray(value) ? (JSON.parse(JSON.stringify(value)) as T) : value;\n\n/**\n * Copies the structure of a plain object, setting all values to `undefined`.\n * If the value is not a plain object, it returns `undefined`.\n *\n * @param value The object whose structure to copy.\n * @returns An object with the same keys as the input object but with all values set to `undefined`, or `undefined` if the input is not a plain object.\n */\nexport const copyStructure = <T>(value: T) =>\n isPlainObject(value) ? Object.fromEntries(Object.keys(value).map(key => [key, undefined])) : undefined;\n","import { computed, onMounted, ref, watch } from 'vue';\nimport type { Ref } from 'vue';\nimport { copyStructure, deepCopy, isEqual, isValueEmpty } from './utils';\n\n/**\n * A composable to wire the `bento-base-filter` component for the mandatory fields and events.\n *\n * @usage\n * ```vue\n * <template>\n * <bento-base-filter\n * :disable-apply-button=\"isApplyButtonDisabled\"\n * :disable-secondary-button=\"isSecondaryButtonDisabled\"\n * @ apply=\"updateFilter\"\n * @ clear=\"clearFilter(updateFilter)\"\n * @ open=\"openFilter\"\n * @ reset=\"resetFilter(updateFilter)\"\n * >\n * <!-- CONTENT HERE -->\n * </bento-base-filter>\n * </template>\n * <script>\n * import { ref } from 'vue'\n * import { useBentoBaseFilter, BentoBaseFilter, BentoBaseFilterProps } from '@adyen/bento-vue2'\n *\n * type CustomFilterValue = boolean\n * const props = defineProps<BentoBaseFilterProps<CustomFilterValue>>();\n *\n * const {\n * // Values\n * internalFilterValue,\n * isSecondaryButtonDisabled,\n * isApplyButtonDisabled,\n *\n * // Methods\n * clearFilter,\n * resetFilter,\n * openFilter,\n * } = useBentoBaseFilter<CustomFilterValue>(toRef(props, 'value'), toRef(props, 'defaultValue'));\n * </script>\n * ```\n *\n * @param appliedFilter The currently applied filter value.\n * @param defaultFilter The default filter value (if available).\n * @returns An object containing refs and functions:\n * - `internalFilterValue`: The temporary state of the filter before it's applied.\n * - `isSecondaryButtonDisabled`: `true` if the secondary (clear/reset) button should be disabled.\n * - `isApplyButtonDisabled`: `true` if the apply button should be disabled.\n * - `clearFilter`: Clears the filter to its initial or default state.\n * - `resetFilter`: Resets the filter to its default state.\n * - `openFilter`: Syncs the internal state with the applied filter.\n */\nexport function useBentoBaseFilter<T>(appliedFilter: Ref<T>, defaultFilter: Ref<T>) {\n /**\n * Handles the internal value. Kept in sync when the new value is applied\n */\n const internalFilterValue = ref<T>();\n const initialStructureOrValue = ref<T>();\n\n onMounted(() => {\n /**\n * Copy initial structure as long as the value is not \"undefined\"\n */\n if (appliedFilter.value != null) {\n initialStructureOrValue.value = copyStructure<T>(appliedFilter.value) as T;\n }\n });\n\n watch(\n () => appliedFilter.value,\n newValue => {\n internalFilterValue.value = deepCopy<T>(newValue);\n },\n { immediate: true }\n );\n\n /**\n * Indicates if the filter has a value applied (active).\n * - inactive (`true`): `appliedFilter` is empty (`undefined`) or all of its properties are empty for object values\n */\n const isFilterInactive = computed(\n () => isValueEmpty(appliedFilter.value) || isEqual<T>(appliedFilter.value, initialStructureOrValue.value)\n );\n\n /**\n * Indicates if the secondary (clear/reset) button should be disabled.\n * - disabled (`true`): No filter value is applied or `appliedFilter` value is the same as the `defaultFilter` (persistent) value\n */\n const isSecondaryButtonDisabled = computed(() =>\n defaultFilter.value != null ? isEqual<T>(defaultFilter.value, appliedFilter.value) : isFilterInactive.value\n );\n\n const isApplyButtonDisabled = computed(() => {\n const isValueUnchanged = isEqual<T>(internalFilterValue.value, appliedFilter.value);\n return isValueUnchanged || (isValueEmpty(internalFilterValue.value) && isFilterInactive.value);\n });\n\n /**\n * Clears the non-persistent filters (not used in persistent filters).\n *\n * Receives a callback to execute additional tasks required when clearing a filter\n *\n * - `object`: Sets all properties to `undefined`\n * - non-`object`: Sets to `undefined`\n * @param callback Function to be called when clearing a filter\n */\n function clearFilter(callback?: (newValue: T) => void) {\n internalFilterValue.value = deepCopy<T>(initialStructureOrValue.value);\n if (callback) {\n callback(internalFilterValue.value);\n }\n }\n\n /**\n * Resets the persistent filters (not used in non-persistent filters).\n * Sets the `internalFilterValue`\n *\n * Receives a callback to execute additional tasks required when resetting a filter.\n * @param callback Function to be called when resetting a filter\n */\n function resetFilter(callback?: (newValue: T) => void) {\n internalFilterValue.value = deepCopy<T>(defaultFilter.value);\n if (callback) {\n callback(internalFilterValue.value);\n }\n }\n\n /**\n * Sets the value to what is applied when opening a filter.\n * @param callback Function to be called when opening a filter\n */\n function openFilter(callback?: (newValue: T) => void) {\n // Reset value every time it opens\n internalFilterValue.value = deepCopy<T>(appliedFilter.value);\n if (callback) {\n callback(internalFilterValue.value);\n }\n }\n\n return {\n // Values\n internalFilterValue,\n isSecondaryButtonDisabled,\n isApplyButtonDisabled,\n\n // Methods\n clearFilter,\n resetFilter,\n openFilter,\n };\n}\n","import { type Ref, ref, shallowRef } from 'vue';\nimport * as z from 'zod';\nimport type { ZodSchema } from 'zod';\nimport { type allKeys, type ErrorBag, type UseForm } from './use-form.types';\n\n/**\n * Composable that 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']>]?: Array<string>;\n }>;\n errors: Ref<{\n [P in allKeys<(typeof validationSchema)['_type']>]?: string;\n }>;\n values: Ref<(typeof validationSchema)['_type']>;\n handleReset: () => void;\n submitForm: (submitted: any) => () => void;\n} {\n // Errors per field\n const errors = shallowRef<z.infer<typeof validationSchema>>({});\n // All errors per field\n const errorBag: Ref<ErrorBag<z.infer<typeof validationSchema>>> = ref({});\n const values: Ref<z.TypeOf<T>> = ref(getInitialFormValues<T>(validationSchema));\n\n const cleanErrors = () => {\n errors.value = {};\n errorBag.value = {};\n };\n\n const resetForm = () => {\n cleanErrors();\n values.value = getInitialFormValues<T>(validationSchema);\n };\n\n const submitForm = submitted => () => {\n cleanErrors();\n\n // Run validations on the form data through the schema\n const validSchema = validationSchema.safeParse(values.value);\n\n // Update errors\n if (!validSchema.success) {\n (validSchema as z.SafeParseError<T>).error.issues.forEach(error => {\n const path = normalizeFormPath(error);\n\n // Add the first 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 { type BentoTheme } from './install.types';\n\nexport const useBentoThemeKey = Symbol('use-bento-theme');\n\nexport interface UseBentoTheme {\n getTheme: () => string;\n setTheme: (theme: BentoTheme | `${BentoTheme}`) => void;\n}\n","import { printDevelopmentWarning } from '@/utils/ts/print-development-warning';\nimport { getCurrentInstance, inject } from 'vue';\nimport { isVue2 } from 'vue-demi';\nimport { type UseBentoTheme, useBentoThemeKey } from './use-bento-theme.types';\n\n/**\n * Composable that handles theming-related capabilities for the Bento component library.\n * Requires the use of `BentoPlugin`.\n *\n * @example\n * <script setup lang=\"ts\">\n * import { useBentoTheme, BentoTheme } from '@adyen/bento-vue2';\n *\n * const { setTheme } = useBentoTheme();\n *\n * setTheme(BentoTheme.BENTO_DARK)\n * </script>\n *\n * @returns {UseBentoTheme} An object with getter and setter method for the Bento theme.\n * @returns {Function} getTheme - Returns the current theme in the string form of BentoTheme enum.\n * @returns {Function} setTheme - Sets the theme of the Bento component library.\n *\n */\nexport function useBentoTheme(): UseBentoTheme {\n const bentoThemeController = isVue2\n ? getCurrentInstance()?.proxy[useBentoThemeKey]\n : inject(useBentoThemeKey, null);\n\n if (!bentoThemeController) {\n printDevelopmentWarning('useBentoTheme does not work without Vue.use(BentoPlugin)');\n\n // Return placeholder functions so client code won't break, but theme won't toggle\n return {\n getTheme: () => undefined,\n setTheme: () => undefined,\n };\n }\n\n // Return a new object so unintentional reassigning its properties won't override a global state\n return { ...bentoThemeController };\n}\n","import { type App, isVue2, type Vue2 } from 'vue-demi';\nimport { createToastStack, toastStackInjectionKey } from './toast-stack';\n\n/**\n * This function is used to create and register global reactive state necessary fro the Toasts to operate.\n * @param {Vue} Vue A context application to register global state with.\n */\nexport default Vue => {\n if (isVue2) {\n // Add toast stack as a global property as there is no \"app.provide\" functionality in Vue2\n // eslint-disable-next-line no-param-reassign -- this is an official way of setting up instance properties on Vue\n (Vue as typeof Vue2).prototype[toastStackInjectionKey] = createToastStack();\n } else {\n (Vue as App).provide(toastStackInjectionKey, createToastStack());\n }\n};\n","export enum BentoTheme {\n /**\n * @deprecated in favor of {@link BENTO_LIGHT}. To be removed in v2.0.0.\n */\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","import { type App, isVue2, type Vue2 } from 'vue-demi';\nimport { useBentoThemeKey } from './use-bento-theme.types';\nimport { BentoTheme } from './install.types';\n\nconst getTheme = () => document.body.className.match(/b-\\w+-theme/)?.[0] ?? '';\nconst getThemeForSystemPreference = () => {\n const preferredDarkMode = window.matchMedia('(prefers-color-scheme: dark)').matches;\n\n if (preferredDarkMode) {\n return BentoTheme.BENTO_DARK;\n }\n\n return BentoTheme.BENTO_LIGHT;\n};\n\nexport const setTheme = (theme: BentoTheme) => {\n const currentTheme = getTheme();\n const systemTheme = getThemeForSystemPreference();\n const themeToSet = theme === BentoTheme.BENTO_SYSTEM ? systemTheme : theme;\n\n if (themeToSet === BentoTheme.BENTO_LIGHT || themeToSet === BentoTheme.BENTO) {\n document.documentElement.style.colorScheme = 'light';\n } else if (themeToSet === BentoTheme.BENTO_DARK) {\n document.documentElement.style.colorScheme = 'dark';\n }\n\n // if theme is different from current and it is not `BentoTheme.BENTO`\n if (currentTheme.length && currentTheme !== themeToSet) {\n document.body.classList.remove(currentTheme);\n }\n\n // if theme is not `BentoTheme.BENTO`\n if (themeToSet.length) {\n document.body.classList.add(themeToSet);\n }\n};\n\n/**\n * This function is used to create and register global reactive state necessary for theme to operate.\n * @param {Vue} Vue A context application to register global state with.\n */\nexport default Vue => {\n const themeProvider = {\n getTheme,\n setTheme,\n };\n\n if (isVue2) {\n // Add theme as a global property as there is no \"app.provide\" functionality in Vue2\n // eslint-disable-next-line no-param-reassign -- this is an official way of setting up instance properties on Vue\n (Vue as typeof Vue2).prototype[useBentoThemeKey] = themeProvider;\n } else {\n (Vue as App).provide(useBentoThemeKey, themeProvider);\n }\n};\n","import installToast from './composables/use-bento-toast-controller/install';\nimport installTheme, { setTheme } from './composables/use-bento-theme/install';\nimport { deprecate } from './utils/ts/deprecate';\nimport { BentoTheme } from './composables/use-bento-theme/install.types';\nimport type { PluginObject } from 'vue';\n\ninterface BentoVuePlugin {\n theme?: BentoTheme;\n withToast?: boolean;\n withUtilityClasses?: boolean;\n withDesignTokensCSSInjection?: boolean;\n}\n\nconst plugin: PluginObject<BentoVuePlugin> = {\n name: 'BentoVue',\n install: async (\n Vue,\n {\n theme = BentoTheme.BENTO_LIGHT,\n withToast = false,\n withUtilityClasses = false,\n withDesignTokensCSSInjection = true,\n }: BentoVuePlugin\n ) => {\n installTheme(Vue);\n\n if (withToast) {\n installToast(Vue);\n }\n if (withDesignTokensCSSInjection) {\n deprecate(\n 'Using default setting withDesignTokensCSSInjection set to true in BentoVue plugin',\n 'Please disable CSS injection by setting withDesignTokensCSSInjection to false in BentoVue plugin options as highlighted here:\\nhttps://adyen-bento.netlify.app/?path=/docs/welcome-getting-started--docs#import-css-variables',\n '2.0.0'\n );\n // Make sure to put all awaited CSS imports below this point and not above!\n if (theme === BentoTheme.STYLEGUIDE) {\n await import('@adyen/bento-design-tokens/dist/css/bento/variables-styleguide.css');\n } else {\n await import('@adyen/bento-design-tokens/dist/css/bento/variables.css');\n }\n\n if (withUtilityClasses) {\n await import('@adyen/bento-design-tokens/dist/css/bento/utility.css');\n }\n }\n\n if (theme === BentoTheme.STYLEGUIDE) {\n setTheme(BentoTheme.STYLEGUIDE);\n } else if (theme === BentoTheme.BENTO_SYSTEM) {\n setTheme(BentoTheme.BENTO_SYSTEM);\n } else if (theme === BentoTheme.BENTO_DARK) {\n setTheme(BentoTheme.BENTO_DARK);\n } else if (theme === BentoTheme.BENTO) {\n deprecate('Using `BentoTheme.BENTO`', 'Please use `BentoTheme.BENTO_LIGHT` instead', '2.0.0');\n setTheme(BentoTheme.BENTO_LIGHT);\n } else {\n setTheme(BentoTheme.BENTO_LIGHT);\n }\n },\n};\n\nexport { BentoTheme };\nexport default plugin;\n","/**\n * Defines the props used by `bento-base-filter` that must be implemented\n * on every filter as `defineProps`.\n *\n * The interface can be extended if new values are required.\n * The object can be extended if new values are required.\n *\n * @template CustomValue Defines the type of the `value` and `defaultValue` props.\n * @template CustomOptions Defines the type of the options used by the filter (default: `undefined`).\n *\n * @example\n * Using the interface\n *\n * ```typescript\n * import { type BentoBaseFilterProps } from '@adyen/bento-vue2'\n *\n * interface CustomOptions {\n * option: string;\n * }\n *\n * withDefaults(defineProps<BentoBaseFilterProps<string, CustomOptions>>(), {\n * defaultValue: undefined,\n * })\n * ```\n *\n * @example\n * Using the object\n *\n * ```typescript\n * import { BentoBaseFilterProps } from '@adyen/bento-vue2'\n *\n * defineProps({\n * ...BentoBaseFilterProps,\n * options: {\n * type: Object,\n * default: () => ({\n * option: null\n * })\n * }\n * })\n * ```\n */\nexport interface BentoBaseFilterProps<CustomValue, CustomOptions = undefined> {\n /**\n * Disables the filter from being interacted with.\n */\n disabled?: boolean;\n\n /**\n * Default value of the filter to reset to.\n */\n defaultValue?: CustomValue;\n\n /**\n * Filter name/key referencing the actual property name in the data set.\n * Should be unique per filter bar.\n */\n field: string;\n\n /**\n * Label text to be displayed\n */\n label: string;\n\n /**\n * Renders the base filter's slot content only - leaving out the button and the popover.\n * Used for the allFiltersModal component.\n */\n onlySlot?: boolean;\n\n /**\n * List of options that are needed to setup the filter\n * Available options:\n * - firstDayOfWeek: Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday\n * - isDateDisabled: Indicate if a date should be disabled or not\n * - tooltipPosition: The position of the tooltip attached to the filter button\n * - tooltipText: The content of the tooltip attached to the filter button\n */\n options?: CustomOptions;\n\n /**\n * Current value of the filter\n */\n value: CustomValue;\n}\n\nexport const BentoBaseFilterProps = Object.freeze({\n /**\n * Disables the filter from being interacted with.\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Default value of the filter to reset to.\n */\n defaultValue: {\n type: [Object, Number, Boolean, Array, String, Date],\n default: null,\n },\n\n /**\n * Filter name/key referencing the actual property name in the data set.\n * Should be unique per filter bar.\n */\n field: { type: String, required: true },\n\n /**\n * Label text to be displayed\n */\n label: { type: String, required: true },\n\n /**\n * Renders the base filter's slot content only - leaving out the button and the popover.\n * Used for the allFiltersModal component.\n */\n onlySlot: { type: Boolean, default: false },\n\n /**\n * The current value of the filter, used for v-model.\n */\n value: {\n type: [Object, Number, Boolean, Array, String, Date],\n default: undefined,\n },\n});\n\n/**\n * Defines the mandatory emits that need to be defined by the implementation of any filter\n *\n * @template CustomValue Defines the type of the value being passed to the emit. Same as the type set in `BentoBaseFilterProps`\n *\n * @example\n * Using the interface\n *\n * ```typescript\n * import { type BentoBaseFilterEvents } from '@adyen/bento-vue2'\n *\n * defineEmits<BentoBaseFilterEvents<string>>()\n * ```\n *\n * @example\n * Using the object\n *\n * ```typescript\n * import { BentoBaseFilterEvents } from '@adyen/bento-vue2'\n *\n * defineEmits(BentoBaseFilterEvents)\n * ```\n */\nexport interface BentoBaseFilterEvents<CustomValue> {\n /**\n * Used in the All filters modal\n */\n (e: 'input', newFilterValue: CustomValue): void;\n\n /**\n * Used in the Filter Bar\n */\n (e: 'update', newFilterValue: CustomValue): void;\n}\n\nexport const BentoBaseFilterEvents = ['input', 'update'];\n"],"names":["isPlainObject","value","isArray","isValueEmpty","el","isEqual","first","second","deepCopy","copyStructure","key","useBentoBaseFilter","appliedFilter","defaultFilter","internalFilterValue","ref","initialStructureOrValue","onMounted","watch","newValue","isFilterInactive","computed","isSecondaryButtonDisabled","isApplyButtonDisabled","clearFilter","callback","resetFilter","openFilter","toTypedSchema","formSchema","getInitialFormValues","schema","z","normalizeFormPath","issue","useForm","validationSchema","errors","shallowRef","errorBag","values","cleanErrors","resetForm","validSchema","submitted","error","path","useBentoThemeKey","useBentoTheme","bentoThemeController","_a","getCurrentInstance","printDevelopmentWarning","installToast","Vue","toastStackInjectionKey","createToastStack","BentoTheme","getTheme","getThemeForSystemPreference","setTheme","theme","currentTheme","systemTheme","themeToSet","installTheme","themeProvider","plugin","withToast","withUtilityClasses","withDesignTokensCSSInjection","deprecate","BentoBaseFilterProps","BentoBaseFilterEvents"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMa,MAAAA,IAAgB,CAACC,MACtBA,MAAU,QAAQ,OAAOA,KAAU,WAC5B,KAGJ,OAAO,UAAU,SAAS,KAAKA,CAAK,MAAM,mBASxCC,IAAU,CAAID,MAAa,MAAM,QAAQA,CAAK,GAU9CE,I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FX,EAASH,EAAW,WAAW;AAAA,EAGnC;AAER,GC0Bae,IAAuB,OAAO,OAAO;AAAA;AAAA;AAAA;AAAA,EAI9C,UAAU,EAAE,MAAM,SAAS,SAAS,GAAM;AAAA;AAAA;AAAA;AAAA,EAK1C,cAAc;AAAA,IACV,MAAM,CAAC,QAAQ,QAAQ,SAAS,OAAO,QAAQ,IAAI;AAAA,IACnD,SAAS;AAAA,EACb;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,OAAO,EAAE,MAAM,QAAQ,UAAU,GAAK;AAAA;AAAA;AAAA;AAAA,EAKtC,OAAO,EAAE,MAAM,QAAQ,UAAU,GAAK;AAAA;AAAA;AAAA;AAAA;AAAA,EAMtC,UAAU,EAAE,MAAM,SAAS,SAAS,GAAM;AAAA;AAAA;AAAA;AAAA,EAK1C,OAAO;AAAA,IACH,MAAM,CAAC,QAAQ,QAAQ,SAAS,OAAO,QAAQ,IAAI;AAAA,IACnD,SAAS;AAAA,EAAA;AAEjB,CAAC,GAqCYC,IAAwB,CAAC,SAAS,QAAQ;"}
|
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.Dm3HYonF.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.D52XYEzU.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,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { C as p, a as l } from "./chunks/copy.
|
|
3
|
-
import { C as I } from "./chunks/controls-group.
|
|
4
|
-
import { B as x, b as E, a as f, D as m } from "./chunks/dialog-page.
|
|
5
|
-
import { E as d, F as N } from "./chunks/field-label.
|
|
6
|
-
import { F as O } from "./chunks/fixed-scroller.
|
|
1
|
+
import { b as e, c as t, C as r, d as s, a as i } from "./chunks/calendar.EfqJlztU.js";
|
|
2
|
+
import { C as p, a as l } from "./chunks/copy.WQDLcs_T.js";
|
|
3
|
+
import { C as I } from "./chunks/controls-group.82mB_GDw.js";
|
|
4
|
+
import { B as x, b as E, a as f, D as m } from "./chunks/dialog-page.D23qNwKW.js";
|
|
5
|
+
import { E as d, F as N } from "./chunks/field-label.Auq-Pzho.js";
|
|
6
|
+
import { F as O } from "./chunks/fixed-scroller.CgVOf5VE.js";
|
|
7
7
|
import { G as B, a as A } from "./chunks/grid-layout.1aIiz2N_.js";
|
|
8
|
-
import { H as P, I as c } from "./chunks/header-meta.
|
|
9
|
-
import { b as g, c as y, u as D } from "./chunks/use-cached-selected-values.
|
|
10
|
-
import { L as S } from "./chunks/listbox-option-tag.
|
|
11
|
-
import { e as W, d as h } from "./chunks/button-actions.
|
|
12
|
-
import { B as H, a as J, T as K } from "./chunks/tooltip.
|
|
13
|
-
import { B as Y } from "./chunks/button-actions-with-menu.
|
|
8
|
+
import { H as P, I as c } from "./chunks/header-meta.uiIO1wHP.js";
|
|
9
|
+
import { b as g, c as y, u as D } from "./chunks/use-cached-selected-values.IsfhJHxQ.js";
|
|
10
|
+
import { L as S } from "./chunks/listbox-option-tag.Dl8GwHLT.js";
|
|
11
|
+
import { e as W, d as h } from "./chunks/button-actions.B81vY51z.js";
|
|
12
|
+
import { B as H, a as J, T as K } from "./chunks/tooltip.D3SDcRef.js";
|
|
13
|
+
import { B as Y } from "./chunks/button-actions-with-menu.BFRkPi6g.js";
|
|
14
14
|
export {
|
|
15
15
|
W as BUTTON_ACTIONS_WITH_MENU_CONTAINER_INJECTION_KEY,
|
|
16
16
|
x as BentoDialogPageAnimation,
|
package/dist/link.js
CHANGED
package/dist/menu.js
CHANGED
package/dist/modal-fullscreen.js
CHANGED
package/dist/modal.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as e } from "./chunks/modal.
|
|
2
|
-
import { c as n, e as l, f as B, g as d, d as M, b as s, B as r, a as i } from "./chunks/base-modal.
|
|
1
|
+
import { B as e } from "./chunks/modal.Bp5twyjz.js";
|
|
2
|
+
import { c as n, e as l, f as B, g as d, d as M, b as s, B as r, a as i } from "./chunks/base-modal.BMdlCSd0.js";
|
|
3
3
|
export {
|
|
4
4
|
e as BentoModal,
|
|
5
5
|
n as BentoModalColumnLayoutVariant,
|
package/dist/pagination.js
CHANGED
package/dist/popover.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { h as r } from "./chunks/button-actions.
|
|
2
|
-
import { B as p } from "./chunks/popover.types.
|
|
1
|
+
import { h as r } from "./chunks/button-actions.B81vY51z.js";
|
|
2
|
+
import { B as p } from "./chunks/popover.types.DK6opPkz.js";
|
|
3
3
|
export {
|
|
4
4
|
r as BentoPopover,
|
|
5
5
|
p as BentoPopoverPositions
|
package/dist/popper-container.js
CHANGED
package/dist/promo-banner.js
CHANGED
package/dist/radio-group.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as t, B as e, a as n } from "./chunks/radio-group.
|
|
2
|
-
import { R as B } from "./chunks/radio-input.
|
|
1
|
+
import { b as t, B as e, a as n } from "./chunks/radio-group.AcYMFudv.js";
|
|
2
|
+
import { R as B } from "./chunks/radio-input.kzb4gxLW.js";
|
|
3
3
|
export {
|
|
4
4
|
t as BentoRadioButton,
|
|
5
5
|
B as BentoRadioButtonStateClass,
|
package/dist/rich-text-editor.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.c-w7Uky2.js";
|
|
2
|
+
import { u as o } from "./chunks/dropdown.BOvtYKXS.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/stepper.js
CHANGED
package/dist/structured-list.js
CHANGED
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
--b-stepper-step-index-width: 20px;
|
|
77
77
|
--b-stepper-max-width: 200px;
|
|
78
78
|
--b-status-indicator-wrapper-height: 20px;
|
|
79
|
-
--b-status-indicator-size:
|
|
79
|
+
--b-status-indicator-size: 12px;
|
|
80
80
|
--b-status-column-gap: 12px;
|
|
81
81
|
--b-sidepanel-page-actions-border-top: 1px solid rgba(0, 0, 0, 0);
|
|
82
82
|
--b-sidepanel-page-actions-height: 68px;
|
|
@@ -391,12 +391,16 @@
|
|
|
391
391
|
--b-color-background-success-strong: #00d16a;
|
|
392
392
|
--b-color-background-success-weak: #00381d;
|
|
393
393
|
--b-color-background-warning-strong: #ff9e11;
|
|
394
|
+
--b-color-background-warning-weak-active: #6d4100;
|
|
395
|
+
--b-color-background-warning-weak-hover: #593500;
|
|
394
396
|
--b-color-background-warning-weak: #462a00;
|
|
395
397
|
--b-color-background-critical-strong-active: #ffded3;
|
|
396
398
|
--b-color-background-critical-strong-hover: #ffbda6;
|
|
397
399
|
--b-color-background-critical-strong: #ff9a78;
|
|
398
400
|
--b-color-background-critical-weak: #5c1800;
|
|
399
401
|
--b-color-background-spotlight: #ffe379;
|
|
402
|
+
--b-color-background-selected-active: #004a94;
|
|
403
|
+
--b-color-background-selected-hover: #003d79;
|
|
400
404
|
--b-color-background-selected: #00305f;
|
|
401
405
|
--b-color-background-disabled: #363636;
|
|
402
406
|
--b-color-background-modal-active: #525252;
|
|
@@ -414,9 +418,9 @@
|
|
|
414
418
|
--b-color-background-primary-active: #363636;
|
|
415
419
|
--b-color-background-primary-hover: #2a2a2a;
|
|
416
420
|
--b-color-background-primary: #111111;
|
|
417
|
-
--b-gradient-data-grid-highlighted-hover: linear-gradient(270deg,
|
|
418
|
-
--b-gradient-data-grid-selected-hover: linear-gradient(270deg,
|
|
419
|
-
--b-gradient-data-grid-zebra-hover: linear-gradient(270deg, var(--b-color-background-secondary-hover) 0%, rgba(
|
|
421
|
+
--b-gradient-data-grid-highlighted-hover: linear-gradient(270deg, var(--b-color-background-warning-weak-hover) 0%, rgba(89, 53, 0, .82) 53.34%, rgba(89, 53, 0, .75) 61.73%, rgba(89, 53, 0, .11) 99.25%, rgba(89, 53, 0, 0) 100%);
|
|
422
|
+
--b-gradient-data-grid-selected-hover: linear-gradient(270deg, var(--b-color-background-selected-hover) 0%, rgba(0, 61, 121, .82) 53.34%, rgba(0, 61, 121, .75) 61.73%, rgba(0, 61, 121, .11) 99.25%, rgba(0, 61, 121, 0) 100%);
|
|
423
|
+
--b-gradient-data-grid-zebra-hover: linear-gradient(270deg, var(--b-color-background-secondary-hover) 0%, rgba(54, 54, 54, .82) 53.34%, rgba(54, 54, 54, .75) 61.73%, rgba(54, 54, 54, .11) 99.25%, rgba(54, 54, 54, 0) 100%);
|
|
420
424
|
--b-tutorial-indicator-border: var(--b-border-width-m) solid var(--b-color-decorative-green);
|
|
421
425
|
--b-tutorial-popover-footer-padding-top: var(--b-spacer-060);
|
|
422
426
|
--b-tutorial-popover-footer-column-gap: var(--b-spacer-040);
|
|
@@ -581,7 +585,7 @@
|
|
|
581
585
|
--b-tag-white-color: var(--b-color-label-primary);
|
|
582
586
|
--b-tag-red-background-color: var(--b-color-background-critical-weak);
|
|
583
587
|
--b-tag-red-color: var(--b-color-label-on-background-critical-weak);
|
|
584
|
-
--b-tag-orange-background-color:
|
|
588
|
+
--b-tag-orange-background-color: var(--b-color-background-warning-weak);
|
|
585
589
|
--b-tag-orange-color: var(--b-color-label-on-background-warning-weak);
|
|
586
590
|
--b-tag-green-background-color: var(--b-color-background-success-weak);
|
|
587
591
|
--b-tag-green-color: var(--b-color-label-on-background-success-weak);
|
|
@@ -1164,7 +1168,7 @@
|
|
|
1164
1168
|
--b-header-with-views-all-views-popover-menu-item-hover-background-color: var(--b-color-background-modal-hover);
|
|
1165
1169
|
--b-header-with-views-all-views-popover-menu-item-focus-background-color: var(--b-color-background-modal-active);
|
|
1166
1170
|
--b-header-with-views-all-views-popover-menu-item-dragging-box-shadow: var(--b-shadow-medium);
|
|
1167
|
-
--b-header-with-views-all-views-popover-menu-item-dragging-background-color:
|
|
1171
|
+
--b-header-with-views-all-views-popover-menu-item-dragging-background-color: var(--b-color-background-selected);
|
|
1168
1172
|
--b-header-with-views-all-views-popover-menu-item-active-background-color: var(--b-color-background-modal-active);
|
|
1169
1173
|
--b-header-with-views-all-views-popover-padding: var(--b-spacer-040) var(--b-spacer-000);
|
|
1170
1174
|
--b-header-with-views-modal-description-gap: var(--b-spacer-070);
|
|
@@ -1253,7 +1257,8 @@
|
|
|
1253
1257
|
--b-filter-bar-date-range-filter-actions-padding: 0 var(--b-spacer-070) var(--b-spacer-060) var(--b-spacer-070);
|
|
1254
1258
|
--b-filter-bar-date-filter-divider-margin-top: var(--b-spacer-060);
|
|
1255
1259
|
--b-filter-bar-date-filter-padding: var(--b-spacer-070) var(--b-spacer-060) var(--b-spacer-070);
|
|
1256
|
-
--b-filter-bar-select-filter-button-search-bar-
|
|
1260
|
+
--b-filter-bar-select-filter-button-search-bar-wrapper-margin-top: var(--b-spacer-060);
|
|
1261
|
+
--b-filter-bar-select-filter-button-search-bar-padding: var(--b-spacer-000) var(--b-spacer-070) var(--b-spacer-000);
|
|
1257
1262
|
--b-filter-bar-select-filter-button-divider-margin: var(--b-spacer-040) var(--b-spacer-000) var(--b-spacer-000);
|
|
1258
1263
|
--b-filter-bar-select-filter-button-divider-background-color: var(--b-color-separator-primary);
|
|
1259
1264
|
--b-filter-bar-select-filter-search-bar-padding: var(--b-spacer-060) var(--b-spacer-070) var(--b-spacer-000);
|
|
@@ -1539,12 +1544,15 @@
|
|
|
1539
1544
|
--b-data-grid-select-cell-margin-left: calc(var(--b-spacer-040) - var(--b-border-width-s));
|
|
1540
1545
|
--b-data-grid-cell-actions-column-selection-padding: var(--b-spacer-050) var(--b-spacer-070);
|
|
1541
1546
|
--b-data-grid-cell-actions-column-nested-content-padding: var(--b-spacer-050) var(--b-spacer-070);
|
|
1547
|
+
--b-data-grid-cell-actions-actions-row-actions-padding: 0 var(--b-spacer-060);
|
|
1548
|
+
--b-data-grid-cell-actions-actions-padding: 0 calc(var(--b-spacer-070) - var(--b-border-width-s)) 0 0;
|
|
1549
|
+
--b-data-grid-cell-actions-actions-gap: var(--b-spacer-040);
|
|
1542
1550
|
--b-data-grid-cell-actions-row-actions-padding: 0 var(--b-spacer-060);
|
|
1543
|
-
--b-data-grid-cell-actions-padding: 0 calc(var(--b-spacer-070) - var(--b-border-width-s)) 0 0;
|
|
1544
1551
|
--b-data-grid-cell-actions-gap: var(--b-spacer-040);
|
|
1545
1552
|
--b-data-grid-cell-actions-background-gradient-width: var(--b-spacer-100);
|
|
1546
1553
|
--b-data-grid-cell-actions-background-gradient-background: var(--b-gradient-data-grid-hover);
|
|
1547
1554
|
--b-data-grid-cell-actions-animation-duration: var(--b-animation-duration-fast);
|
|
1555
|
+
--b-data-grid-cell-actions-padding: var(--b-border-width-m);
|
|
1548
1556
|
--b-data-grid-cell-condensed-column-hovered-padding: var(--b-spacer-030) 14px;
|
|
1549
1557
|
--b-data-grid-cell-condensed-padding: var(--b-spacer-030) 15px;
|
|
1550
1558
|
--b-data-grid-cell-hover-border-color: var(--b-color-separator-primary);
|
|
@@ -1560,10 +1568,10 @@
|
|
|
1560
1568
|
--b-data-grid-row-nested-row-hover: var(--b-color-background-secondary-hover);
|
|
1561
1569
|
--b-data-grid-row-nested-row-background-color: var(--b-color-background-primary);
|
|
1562
1570
|
--b-data-grid-row-nested-slot-background-color: var(--b-color-background-primary);
|
|
1563
|
-
--b-data-grid-row-selected-hover-background-color:
|
|
1564
|
-
--b-data-grid-row-selected-background-color:
|
|
1565
|
-
--b-data-grid-row-highlighted-hover-background-color:
|
|
1566
|
-
--b-data-grid-row-highlighted-background-color:
|
|
1571
|
+
--b-data-grid-row-selected-hover-background-color: var(--b-color-background-selected-hover);
|
|
1572
|
+
--b-data-grid-row-selected-background-color: var(--b-color-background-selected);
|
|
1573
|
+
--b-data-grid-row-highlighted-hover-background-color: var(--b-color-background-warning-weak-hover);
|
|
1574
|
+
--b-data-grid-row-highlighted-background-color: var(--b-color-background-warning-weak);
|
|
1567
1575
|
--b-data-grid-row-disabled-color: var(--b-color-label-primary);
|
|
1568
1576
|
--b-data-grid-row-hover-background-color: var(--b-color-background-primary-hover);
|
|
1569
1577
|
--b-data-grid-row-color: var(--b-color-label-primary);
|
|
@@ -1578,7 +1586,7 @@
|
|
|
1578
1586
|
--b-data-grid-rows-frozen-border-right-color: var(--b-color-separator-secondary);
|
|
1579
1587
|
--b-data-grid-column-actions-padding-left: var(--b-spacer-030);
|
|
1580
1588
|
--b-data-grid-column-actions-gap: var(--b-spacer-010);
|
|
1581
|
-
--b-data-grid-column-draggable-ghost-background-color:
|
|
1589
|
+
--b-data-grid-column-draggable-ghost-background-color: var(--b-color-background-selected);
|
|
1582
1590
|
--b-data-grid-column-header-padding: calc(var(--b-spacer-040) - var(--b-border-width-s)) 0;
|
|
1583
1591
|
--b-data-grid-column-header-gap: var(--b-spacer-040);
|
|
1584
1592
|
--b-data-grid-column-header-and-actions-gap: var(--b-spacer-020);
|
|
@@ -1810,6 +1818,8 @@
|
|
|
1810
1818
|
--b-card-secondary-background-color: var(--b-color-background-secondary);
|
|
1811
1819
|
--b-card-clickable-active-background-color: var(--b-color-background-primary-active);
|
|
1812
1820
|
--b-card-clickable-hover-background-color: var(--b-color-background-primary-hover);
|
|
1821
|
+
--b-card-disabled-toggle-color: var(--b-color-label-disabled);
|
|
1822
|
+
--b-card-disabled-header-color: var(--b-color-label-primary);
|
|
1813
1823
|
--b-card-disabled-color: var(--b-color-label-disabled);
|
|
1814
1824
|
--b-card-disabled-background-color: var(--b-color-background-secondary);
|
|
1815
1825
|
--b-card-expandable-header-padding-bottom: var(--b-spacer-060);
|
|
@@ -2029,7 +2039,7 @@
|
|
|
2029
2039
|
--b-avatar-image-blue-color: var(--b-color-decorative-blue);
|
|
2030
2040
|
--b-avatar-image-blue-background-color: var(--b-color-background-highlight-weak);
|
|
2031
2041
|
--b-avatar-image-yellow-color: var(--b-color-decorative-orange);
|
|
2032
|
-
--b-avatar-image-yellow-background-color:
|
|
2042
|
+
--b-avatar-image-yellow-background-color: var(--b-color-background-warning-weak);
|
|
2033
2043
|
--b-avatar-image-width: var(--b-spacer-100);
|
|
2034
2044
|
--b-avatar-image-height: var(--b-spacer-100);
|
|
2035
2045
|
--b-alert-tip-gap: var(--b-spacer-060);
|
|
@@ -2039,7 +2049,7 @@
|
|
|
2039
2049
|
--b-alert-critical-background-color: var(--b-color-background-critical-weak);
|
|
2040
2050
|
--b-alert-warning-icon-color: var(--b-color-background-warning-strong);
|
|
2041
2051
|
--b-alert-warning-color: var(--b-color-label-primary);
|
|
2042
|
-
--b-alert-warning-background-color:
|
|
2052
|
+
--b-alert-warning-background-color: var(--b-color-background-warning-weak);
|
|
2043
2053
|
--b-alert-highlight-icon-color: var(--b-color-background-highlight-strong);
|
|
2044
2054
|
--b-alert-highlight-color: var(--b-color-label-primary);
|
|
2045
2055
|
--b-alert-highlight-background-color: var(--b-color-background-highlight-weak);
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
--b-stepper-step-index-width: 20px;
|
|
76
76
|
--b-stepper-max-width: 200px;
|
|
77
77
|
--b-status-indicator-wrapper-height: 20px;
|
|
78
|
-
--b-status-indicator-size:
|
|
78
|
+
--b-status-indicator-size: 12px;
|
|
79
79
|
--b-status-column-gap: 12px;
|
|
80
80
|
--b-sidepanel-page-actions-border-top: 1px solid rgba(0, 0, 0, 0);
|
|
81
81
|
--b-sidepanel-page-actions-height: 68px;
|
|
@@ -1256,7 +1256,8 @@
|
|
|
1256
1256
|
--b-filter-bar-date-range-filter-actions-padding: 0 var(--b-spacer-070) var(--b-spacer-060) var(--b-spacer-070);
|
|
1257
1257
|
--b-filter-bar-date-filter-divider-margin-top: var(--b-spacer-060);
|
|
1258
1258
|
--b-filter-bar-date-filter-padding: var(--b-spacer-070) var(--b-spacer-060) var(--b-spacer-070);
|
|
1259
|
-
--b-filter-bar-select-filter-button-search-bar-
|
|
1259
|
+
--b-filter-bar-select-filter-button-search-bar-wrapper-margin-top: var(--b-spacer-060);
|
|
1260
|
+
--b-filter-bar-select-filter-button-search-bar-padding: var(--b-spacer-000) var(--b-spacer-070) var(--b-spacer-000);
|
|
1260
1261
|
--b-filter-bar-select-filter-button-divider-margin: var(--b-spacer-040) var(--b-spacer-000) var(--b-spacer-000);
|
|
1261
1262
|
--b-filter-bar-select-filter-button-divider-background-color: var(--b-color-separator-primary);
|
|
1262
1263
|
--b-filter-bar-select-filter-search-bar-padding: var(--b-spacer-060) var(--b-spacer-070) var(--b-spacer-000);
|
|
@@ -1542,11 +1543,14 @@
|
|
|
1542
1543
|
--b-data-grid-select-cell-margin-left: calc(var(--b-spacer-040) - var(--b-border-width-s));
|
|
1543
1544
|
--b-data-grid-cell-actions-column-selection-padding: var(--b-spacer-050) var(--b-spacer-070);
|
|
1544
1545
|
--b-data-grid-cell-actions-column-nested-content-padding: var(--b-spacer-050) var(--b-spacer-070);
|
|
1546
|
+
--b-data-grid-cell-actions-actions-row-actions-padding: 0 var(--b-spacer-060);
|
|
1547
|
+
--b-data-grid-cell-actions-actions-padding: 0 calc(var(--b-spacer-070) - var(--b-border-width-s)) 0 0;
|
|
1548
|
+
--b-data-grid-cell-actions-actions-gap: var(--b-spacer-040);
|
|
1545
1549
|
--b-data-grid-cell-actions-row-actions-padding: 0 var(--b-spacer-060);
|
|
1546
|
-
--b-data-grid-cell-actions-padding: 0 calc(var(--b-spacer-070) - var(--b-border-width-s)) 0 0;
|
|
1547
1550
|
--b-data-grid-cell-actions-gap: var(--b-spacer-040);
|
|
1548
1551
|
--b-data-grid-cell-actions-background-gradient-width: var(--b-spacer-100);
|
|
1549
1552
|
--b-data-grid-cell-actions-animation-duration: var(--b-animation-duration-fast);
|
|
1553
|
+
--b-data-grid-cell-actions-padding: var(--b-border-width-m);
|
|
1550
1554
|
--b-data-grid-cell-condensed-column-hovered-padding: var(--b-spacer-030) 14px;
|
|
1551
1555
|
--b-data-grid-cell-condensed-padding: var(--b-spacer-030) 15px;
|
|
1552
1556
|
--b-data-grid-cell-hover-border-color: var(--b-color-separator-primary);
|
|
@@ -1812,6 +1816,8 @@
|
|
|
1812
1816
|
--b-card-secondary-background-color: var(--b-color-background-secondary);
|
|
1813
1817
|
--b-card-clickable-active-background-color: var(--b-color-background-primary-active);
|
|
1814
1818
|
--b-card-clickable-hover-background-color: var(--b-color-background-primary-hover);
|
|
1819
|
+
--b-card-disabled-toggle-color: var(--b-color-label-disabled);
|
|
1820
|
+
--b-card-disabled-header-color: var(--b-color-label-primary);
|
|
1815
1821
|
--b-card-disabled-color: var(--b-color-label-disabled);
|
|
1816
1822
|
--b-card-disabled-background-color: var(--b-color-background-secondary);
|
|
1817
1823
|
--b-card-expandable-header-padding-bottom: var(--b-spacer-060);
|
package/dist/styles/bento.css
CHANGED
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
--b-stepper-step-index-width: 20px;
|
|
76
76
|
--b-stepper-max-width: 200px;
|
|
77
77
|
--b-status-indicator-wrapper-height: 20px;
|
|
78
|
-
--b-status-indicator-size:
|
|
78
|
+
--b-status-indicator-size: 12px;
|
|
79
79
|
--b-status-column-gap: 12px;
|
|
80
80
|
--b-sidepanel-page-actions-border-top: 1px solid rgba(0, 0, 0, 0);
|
|
81
81
|
--b-sidepanel-page-actions-height: 68px;
|
|
@@ -1256,7 +1256,8 @@
|
|
|
1256
1256
|
--b-filter-bar-date-range-filter-actions-padding: 0 var(--b-spacer-070) var(--b-spacer-060) var(--b-spacer-070);
|
|
1257
1257
|
--b-filter-bar-date-filter-divider-margin-top: var(--b-spacer-060);
|
|
1258
1258
|
--b-filter-bar-date-filter-padding: var(--b-spacer-070) var(--b-spacer-060) var(--b-spacer-070);
|
|
1259
|
-
--b-filter-bar-select-filter-button-search-bar-
|
|
1259
|
+
--b-filter-bar-select-filter-button-search-bar-wrapper-margin-top: var(--b-spacer-060);
|
|
1260
|
+
--b-filter-bar-select-filter-button-search-bar-padding: var(--b-spacer-000) var(--b-spacer-070) var(--b-spacer-000);
|
|
1260
1261
|
--b-filter-bar-select-filter-button-divider-margin: var(--b-spacer-040) var(--b-spacer-000) var(--b-spacer-000);
|
|
1261
1262
|
--b-filter-bar-select-filter-button-divider-background-color: var(--b-color-separator-primary);
|
|
1262
1263
|
--b-filter-bar-select-filter-search-bar-padding: var(--b-spacer-060) var(--b-spacer-070) var(--b-spacer-000);
|
|
@@ -1542,11 +1543,14 @@
|
|
|
1542
1543
|
--b-data-grid-select-cell-margin-left: calc(var(--b-spacer-040) - var(--b-border-width-s));
|
|
1543
1544
|
--b-data-grid-cell-actions-column-selection-padding: var(--b-spacer-050) var(--b-spacer-070);
|
|
1544
1545
|
--b-data-grid-cell-actions-column-nested-content-padding: var(--b-spacer-050) var(--b-spacer-070);
|
|
1546
|
+
--b-data-grid-cell-actions-actions-row-actions-padding: 0 var(--b-spacer-060);
|
|
1547
|
+
--b-data-grid-cell-actions-actions-padding: 0 calc(var(--b-spacer-070) - var(--b-border-width-s)) 0 0;
|
|
1548
|
+
--b-data-grid-cell-actions-actions-gap: var(--b-spacer-040);
|
|
1545
1549
|
--b-data-grid-cell-actions-row-actions-padding: 0 var(--b-spacer-060);
|
|
1546
|
-
--b-data-grid-cell-actions-padding: 0 calc(var(--b-spacer-070) - var(--b-border-width-s)) 0 0;
|
|
1547
1550
|
--b-data-grid-cell-actions-gap: var(--b-spacer-040);
|
|
1548
1551
|
--b-data-grid-cell-actions-background-gradient-width: var(--b-spacer-100);
|
|
1549
1552
|
--b-data-grid-cell-actions-animation-duration: var(--b-animation-duration-fast);
|
|
1553
|
+
--b-data-grid-cell-actions-padding: var(--b-border-width-m);
|
|
1550
1554
|
--b-data-grid-cell-condensed-column-hovered-padding: var(--b-spacer-030) 14px;
|
|
1551
1555
|
--b-data-grid-cell-condensed-padding: var(--b-spacer-030) 15px;
|
|
1552
1556
|
--b-data-grid-cell-hover-border-color: var(--b-color-separator-primary);
|
|
@@ -1812,6 +1816,8 @@
|
|
|
1812
1816
|
--b-card-secondary-background-color: var(--b-color-background-secondary);
|
|
1813
1817
|
--b-card-clickable-active-background-color: var(--b-color-background-primary-active);
|
|
1814
1818
|
--b-card-clickable-hover-background-color: var(--b-color-background-primary-hover);
|
|
1819
|
+
--b-card-disabled-toggle-color: var(--b-color-label-disabled);
|
|
1820
|
+
--b-card-disabled-header-color: var(--b-color-label-primary);
|
|
1815
1821
|
--b-card-disabled-color: var(--b-color-label-disabled);
|
|
1816
1822
|
--b-card-disabled-background-color: var(--b-color-background-secondary);
|
|
1817
1823
|
--b-card-expandable-header-padding-bottom: var(--b-spacer-060);
|
package/dist/styles/legacy.css
CHANGED
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
--b-stepper-step-index-width: 20px;
|
|
76
76
|
--b-stepper-max-width: 200px;
|
|
77
77
|
--b-status-indicator-wrapper-height: 20px;
|
|
78
|
-
--b-status-indicator-size:
|
|
78
|
+
--b-status-indicator-size: 12px;
|
|
79
79
|
--b-status-column-gap: 12px;
|
|
80
80
|
--b-sidepanel-page-actions-border-top: 1px solid rgba(0, 0, 0, 0);
|
|
81
81
|
--b-sidepanel-page-actions-height: 68px;
|
|
@@ -1256,7 +1256,8 @@
|
|
|
1256
1256
|
--b-filter-bar-date-range-filter-actions-padding: 0 var(--b-spacer-070) var(--b-spacer-060) var(--b-spacer-070);
|
|
1257
1257
|
--b-filter-bar-date-filter-divider-margin-top: var(--b-spacer-060);
|
|
1258
1258
|
--b-filter-bar-date-filter-padding: var(--b-spacer-070) var(--b-spacer-060) var(--b-spacer-070);
|
|
1259
|
-
--b-filter-bar-select-filter-button-search-bar-
|
|
1259
|
+
--b-filter-bar-select-filter-button-search-bar-wrapper-margin-top: var(--b-spacer-060);
|
|
1260
|
+
--b-filter-bar-select-filter-button-search-bar-padding: var(--b-spacer-000) var(--b-spacer-070) var(--b-spacer-000);
|
|
1260
1261
|
--b-filter-bar-select-filter-button-divider-margin: var(--b-spacer-040) var(--b-spacer-000) var(--b-spacer-000);
|
|
1261
1262
|
--b-filter-bar-select-filter-button-divider-background-color: var(--b-color-separator-primary);
|
|
1262
1263
|
--b-filter-bar-select-filter-search-bar-padding: var(--b-spacer-060) var(--b-spacer-070) var(--b-spacer-000);
|
|
@@ -1542,11 +1543,14 @@
|
|
|
1542
1543
|
--b-data-grid-select-cell-margin-left: calc(var(--b-spacer-040) - var(--b-border-width-s));
|
|
1543
1544
|
--b-data-grid-cell-actions-column-selection-padding: var(--b-spacer-050) var(--b-spacer-070);
|
|
1544
1545
|
--b-data-grid-cell-actions-column-nested-content-padding: var(--b-spacer-050) var(--b-spacer-070);
|
|
1546
|
+
--b-data-grid-cell-actions-actions-row-actions-padding: 0 var(--b-spacer-060);
|
|
1547
|
+
--b-data-grid-cell-actions-actions-padding: 0 calc(var(--b-spacer-070) - var(--b-border-width-s)) 0 0;
|
|
1548
|
+
--b-data-grid-cell-actions-actions-gap: var(--b-spacer-040);
|
|
1545
1549
|
--b-data-grid-cell-actions-row-actions-padding: 0 var(--b-spacer-060);
|
|
1546
|
-
--b-data-grid-cell-actions-padding: 0 calc(var(--b-spacer-070) - var(--b-border-width-s)) 0 0;
|
|
1547
1550
|
--b-data-grid-cell-actions-gap: var(--b-spacer-040);
|
|
1548
1551
|
--b-data-grid-cell-actions-background-gradient-width: var(--b-spacer-100);
|
|
1549
1552
|
--b-data-grid-cell-actions-animation-duration: var(--b-animation-duration-fast);
|
|
1553
|
+
--b-data-grid-cell-actions-padding: var(--b-border-width-m);
|
|
1550
1554
|
--b-data-grid-cell-condensed-column-hovered-padding: var(--b-spacer-030) 14px;
|
|
1551
1555
|
--b-data-grid-cell-condensed-padding: var(--b-spacer-030) 15px;
|
|
1552
1556
|
--b-data-grid-cell-hover-border-color: var(--b-color-separator-primary);
|
|
@@ -1812,6 +1816,8 @@
|
|
|
1812
1816
|
--b-card-secondary-background-color: var(--b-color-background-secondary);
|
|
1813
1817
|
--b-card-clickable-active-background-color: var(--b-color-background-primary-active);
|
|
1814
1818
|
--b-card-clickable-hover-background-color: var(--b-color-background-primary-hover);
|
|
1819
|
+
--b-card-disabled-toggle-color: var(--b-color-label-disabled);
|
|
1820
|
+
--b-card-disabled-header-color: var(--b-color-label-primary);
|
|
1815
1821
|
--b-card-disabled-color: var(--b-color-label-disabled);
|
|
1816
1822
|
--b-card-disabled-background-color: var(--b-color-background-secondary);
|
|
1817
1823
|
--b-card-expandable-header-padding-bottom: var(--b-spacer-060);
|