@adyen/bento-vue3 1.68.2 → 1.70.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 +1 -0
- package/dist/@types/index.d.ts +978 -1976
- 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/alert.css +1 -1
- package/dist/assets/base-button.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions-with-menu.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/checkbox-group.css +1 -1
- package/dist/assets/checkbox-input.css +1 -1
- package/dist/assets/checkbox.css +1 -1
- package/dist/assets/chip.css +1 -1
- package/dist/assets/code-snippet.css +1 -1
- package/dist/assets/controls-group.css +1 -1
- package/dist/assets/copy.css +1 -1
- package/dist/assets/country.css +1 -1
- package/dist/assets/currency.css +1 -1
- package/dist/assets/dashed-underline.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/divider.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/empty-state.css +1 -1
- package/dist/assets/error-message.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/focus-trap.css +1 -1
- package/dist/assets/footer-actions.css +1 -1
- package/dist/assets/form-layout-title.css +1 -1
- package/dist/assets/grid-layout.css +1 -1
- package/dist/assets/header-meta.css +1 -1
- package/dist/assets/header-with-views.css +1 -1
- package/dist/assets/header.css +1 -1
- package/dist/assets/info-icon.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/layout-row.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/payment-method.css +1 -1
- package/dist/assets/popper-container.css +1 -1
- package/dist/assets/promo-banner.css +1 -1
- package/dist/assets/radio-group.css +1 -1
- package/dist/assets/radio-input.css +1 -1
- package/dist/assets/rich-text-editor.css +1 -1
- package/dist/assets/search-bar.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/status.css +1 -1
- package/dist/assets/step.css +1 -1
- package/dist/assets/structured-list-item.css +1 -1
- package/dist/assets/tab.css +1 -1
- package/dist/assets/tag.css +1 -1
- package/dist/assets/textarea.css +1 -1
- package/dist/assets/timeline-item.css +1 -1
- package/dist/assets/toast.css +1 -1
- package/dist/assets/toggle-button.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/typography.css +1 -1
- package/dist/assets/use-cached-selected-values.css +1 -1
- package/dist/avatar.js +1 -1
- package/dist/button.js +9 -9
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chip.js +1 -1
- package/dist/chunks/{accordion-item.DOnW0OnU.js → accordion-item.6etqAJV9.js} +3 -3
- package/dist/chunks/accordion-item.6etqAJV9.js.map +1 -0
- package/dist/chunks/{action-bar.CflF49oL.js → action-bar.CweA2FeY.js} +7 -8
- package/dist/chunks/action-bar.CweA2FeY.js.map +1 -0
- package/dist/chunks/alert.Dzx5MzgE.js +171 -0
- package/dist/chunks/alert.Dzx5MzgE.js.map +1 -0
- package/dist/chunks/aria-label.CaUURpnB.js.map +1 -1
- package/dist/chunks/{avatar.B0-9jC6H.js → avatar.Dq59yj6m.js} +2 -2
- package/dist/chunks/avatar.Dq59yj6m.js.map +1 -0
- package/dist/chunks/{base-button.DdNFlbgH.js → base-button.CjYb5Y8k.js} +19 -19
- package/dist/chunks/base-button.CjYb5Y8k.js.map +1 -0
- package/dist/chunks/{base-modal.C3_r3rmc.js → base-modal.BrBcILSe.js} +21 -21
- package/dist/chunks/base-modal.BrBcILSe.js.map +1 -0
- package/dist/chunks/bin.DuHlEQBO.js +37 -0
- package/dist/chunks/bin.DuHlEQBO.js.map +1 -0
- package/dist/chunks/button-actions-with-menu.CBuoSd3w.js +93 -0
- package/dist/chunks/button-actions-with-menu.CBuoSd3w.js.map +1 -0
- package/dist/chunks/button-actions.types.BptAXjD8.js +8 -0
- package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -0
- package/dist/chunks/{button.AB0SOQMn.js → button.C-MAa6ut.js} +4 -4
- package/dist/chunks/button.C-MAa6ut.js.map +1 -0
- package/dist/chunks/{calendar._oPk_A1C.js → calendar.DFHiga9k.js} +36 -37
- package/dist/chunks/calendar.DFHiga9k.js.map +1 -0
- package/dist/chunks/{card.CS34Mi_G.js → card.BspLDcas.js} +6 -5
- package/dist/chunks/card.BspLDcas.js.map +1 -0
- package/dist/chunks/{checkbox-group.JRo6xNpe.js → checkbox-group.DIXgr1WQ.js} +6 -6
- package/dist/chunks/checkbox-group.DIXgr1WQ.js.map +1 -0
- package/dist/chunks/{checkbox-input.DFkwZ4GM.js → checkbox-input.BXNGT9U0.js} +2 -2
- package/dist/chunks/checkbox-input.BXNGT9U0.js.map +1 -0
- package/dist/chunks/{checkbox.DGrG3GN1.js → checkbox.M6lKj2hQ.js} +27 -27
- package/dist/chunks/checkbox.M6lKj2hQ.js.map +1 -0
- package/dist/chunks/{chip.CneNX2_j.js → chip.DcpP3zb6.js} +11 -11
- package/dist/chunks/chip.DcpP3zb6.js.map +1 -0
- package/dist/chunks/{code-snippet.D5M76Qy6.js → code-snippet.CKrxKjkQ.js} +8 -8
- package/dist/chunks/code-snippet.CKrxKjkQ.js.map +1 -0
- package/dist/chunks/{controls-group.CrzkSu0U.js → controls-group.CXVHTaYp.js} +32 -29
- package/dist/chunks/controls-group.CXVHTaYp.js.map +1 -0
- package/dist/chunks/{copy.RUoQOydT.js → copy.C4DAAiPw.js} +18 -19
- package/dist/chunks/copy.C4DAAiPw.js.map +1 -0
- package/dist/chunks/{country.Q95voxeL.js → country.RVvsGwuV.js} +9 -9
- package/dist/chunks/country.RVvsGwuV.js.map +1 -0
- package/dist/chunks/country.types.C0Q_hhgJ.js.map +1 -1
- package/dist/chunks/{currency.CZVdyZUH.js → currency.CN4UnCx8.js} +3 -3
- package/dist/chunks/currency.CN4UnCx8.js.map +1 -0
- package/dist/chunks/{dashboard-section.Bhd5Lsy2.js → dashboard-section.Cll3tn0q.js} +4 -4
- package/dist/chunks/{dashboard-section.Bhd5Lsy2.js.map → dashboard-section.Cll3tn0q.js.map} +1 -1
- package/dist/chunks/{dashed-underline.DkzQkpaf.js → dashed-underline.2OYxO-Rh.js} +30 -32
- package/dist/chunks/dashed-underline.2OYxO-Rh.js.map +1 -0
- package/dist/chunks/{data-grid-template.DSwj7e1E.js → data-grid-template.CTRHofoW.js} +5 -5
- package/dist/chunks/data-grid-template.CTRHofoW.js.map +1 -0
- package/dist/chunks/data-grid.DMOTTywp.js +3932 -0
- package/dist/chunks/data-grid.DMOTTywp.js.map +1 -0
- package/dist/chunks/{date-picker.CAoXTiZR.js → date-picker.CBlQ0ql7.js} +13 -14
- package/dist/chunks/date-picker.CBlQ0ql7.js.map +1 -0
- package/dist/chunks/date-range-picker.D-gGqpFB.js +1168 -0
- package/dist/chunks/date-range-picker.D-gGqpFB.js.map +1 -0
- package/dist/chunks/{date.DSjCnSgL.js → date.4GAXrgy5.js} +2 -2
- package/dist/chunks/{date.DSjCnSgL.js.map → date.4GAXrgy5.js.map} +1 -1
- package/dist/chunks/{dialog-page.C80HOigq.js → dialog-page.VSJgHY3C.js} +15 -15
- package/dist/chunks/dialog-page.VSJgHY3C.js.map +1 -0
- package/dist/chunks/{divider.qUOSAbU6.js → divider.DnKNNyWB.js} +2 -2
- package/dist/chunks/divider.DnKNNyWB.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.Ce5D3ipi.js → dropdown-default-textbox.CGsOngY1.js} +111 -109
- package/dist/chunks/dropdown-default-textbox.CGsOngY1.js.map +1 -0
- package/dist/chunks/dropdown-tag.DlFpUeXa.js +296 -0
- package/dist/chunks/dropdown-tag.DlFpUeXa.js.map +1 -0
- package/dist/chunks/{dropdown.CMOYmQLB.js → dropdown.agfzvJZE.js} +59 -59
- package/dist/chunks/dropdown.agfzvJZE.js.map +1 -0
- package/dist/chunks/{empty-state.D7llINgF.js → empty-state.BTaeZdQu.js} +4 -4
- package/dist/chunks/empty-state.BTaeZdQu.js.map +1 -0
- package/dist/chunks/{error-message.DHMHq9bR.js → error-message.B1P5ictH.js} +5 -5
- package/dist/chunks/{error-message.DHMHq9bR.js.map → error-message.B1P5ictH.js.map} +1 -1
- package/dist/chunks/es6.MoTTyETW.js +12 -0
- package/dist/chunks/es6.MoTTyETW.js.map +1 -0
- package/dist/chunks/events.CMzGybJJ.js +47 -0
- package/dist/chunks/events.CMzGybJJ.js.map +1 -0
- package/dist/chunks/{file-uploader.B_EI2fAc.js → file-uploader.Vac1Cu0i.js} +165 -164
- package/dist/chunks/file-uploader.Vac1Cu0i.js.map +1 -0
- package/dist/chunks/{filter-bar.DoHMLZ4O.js → filter-bar.uUpoP-XZ.js} +361 -368
- package/dist/chunks/filter-bar.uUpoP-XZ.js.map +1 -0
- package/dist/chunks/{fixed-scroller.D5nAPPbo.js → fixed-scroller.DSGxXiAH.js} +2 -2
- package/dist/chunks/{fixed-scroller.D5nAPPbo.js.map → fixed-scroller.DSGxXiAH.js.map} +1 -1
- package/dist/chunks/{focus-trap.CljZgv9i.js → focus-trap.rjp24a37.js} +2 -2
- package/dist/chunks/focus-trap.rjp24a37.js.map +1 -0
- package/dist/chunks/{footer-actions.Bje-DDqw.js → footer-actions.gRKTKGts.js} +5 -5
- package/dist/chunks/footer-actions.gRKTKGts.js.map +1 -0
- package/dist/chunks/{form-layout-title.rpIO-I9A.js → form-layout-title.DdRqnXXi.js} +5 -5
- package/dist/chunks/form-layout-title.DdRqnXXi.js.map +1 -0
- package/dist/chunks/{grid-layout.BTLE3rac.js → grid-layout.DDaRNz4-.js} +2 -2
- package/dist/chunks/grid-layout.DDaRNz4-.js.map +1 -0
- package/dist/chunks/{header-meta.Yt43-cUI.js → header-meta.Ct79L1O8.js} +26 -27
- package/dist/chunks/{header-meta.Yt43-cUI.js.map → header-meta.Ct79L1O8.js.map} +1 -1
- package/dist/chunks/{header-with-views.BUed3ocZ.js → header-with-views.BVHdSAKp.js} +281 -281
- package/dist/chunks/header-with-views.BVHdSAKp.js.map +1 -0
- package/dist/chunks/{header.CwKjDgKv.js → header.Cd1P8lYK.js} +32 -32
- package/dist/chunks/header.Cd1P8lYK.js.map +1 -0
- package/dist/chunks/image.vue_vue_type_script_setup_true_lang.DQT2oNEF.js.map +1 -1
- package/dist/chunks/{info-icon.DprUQ9fj.js → info-icon.Bl0iKUfC.js} +7 -8
- package/dist/chunks/info-icon.Bl0iKUfC.js.map +1 -0
- package/dist/chunks/info.BKwey1HA.js +44 -0
- package/dist/chunks/info.BKwey1HA.js.map +1 -0
- package/dist/chunks/{input-field-password.DN0Jro1V.js → input-field-password.DkIWrrxy.js} +8 -8
- package/dist/chunks/input-field-password.DkIWrrxy.js.map +1 -0
- package/dist/chunks/{input-field-phone-number.BhPsrafR.js → input-field-phone-number.EXlRu8qq.js} +46 -45
- package/dist/chunks/{input-field-phone-number.BhPsrafR.js.map → input-field-phone-number.EXlRu8qq.js.map} +1 -1
- package/dist/chunks/{input-field.su5Cq8Dt.js → input-field.CgbiOju9.js} +5 -5
- package/dist/chunks/input-field.CgbiOju9.js.map +1 -0
- package/dist/chunks/{inspector.CoZCPfHC.js → inspector.BGtTMtE0.js} +13 -13
- package/dist/chunks/inspector.BGtTMtE0.js.map +1 -0
- package/dist/chunks/{keyboard-navigation.CqgGzfZQ.js → keyboard-navigation.pB8weElW.js} +2 -2
- package/dist/chunks/keyboard-navigation.pB8weElW.js.map +1 -0
- package/dist/chunks/{layout-row.CZNtHaXd.js → layout-row.BPfOPn4x.js} +9 -9
- package/dist/chunks/layout-row.BPfOPn4x.js.map +1 -0
- package/dist/chunks/{link.BBpxiclu.js → link.cwPmWlsk.js} +2 -2
- package/dist/chunks/{link.BBpxiclu.js.map → link.cwPmWlsk.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.0BK6jWO9.js → listbox-option-tag.CDIkX7nh.js} +7 -7
- package/dist/chunks/listbox-option-tag.CDIkX7nh.js.map +1 -0
- package/dist/chunks/{loading-indicator.DEepb9Wl.js → loading-indicator.VHi5tbZa.js} +3 -3
- package/dist/chunks/loading-indicator.VHi5tbZa.js.map +1 -0
- package/dist/chunks/minus-small.DYIyF5XW.js.map +1 -1
- package/dist/chunks/{modal-fullscreen.DBTnoSX9.js → modal-fullscreen.-Q-7GMyT.js} +18 -19
- package/dist/chunks/modal-fullscreen.-Q-7GMyT.js.map +1 -0
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.Cd-mQUJ8.js → modal.vue_vue_type_script_setup_true_lang.TFh7p51f.js} +6 -6
- package/dist/chunks/modal.vue_vue_type_script_setup_true_lang.TFh7p51f.js.map +1 -0
- package/dist/chunks/{pagination.fYQak4C8.js → pagination.DW_HPEIu.js} +5 -5
- package/dist/chunks/pagination.DW_HPEIu.js.map +1 -0
- package/dist/chunks/{payment-method.eazefwm6.js → payment-method.CDnn1bjo.js} +3 -3
- package/dist/chunks/payment-method.CDnn1bjo.js.map +1 -0
- package/dist/chunks/popover.types.COM6oQgq.js +6 -0
- package/dist/chunks/popover.types.COM6oQgq.js.map +1 -0
- package/dist/chunks/{popper-container.b5h4zYgT.js → popper-container.CgJzEQ7N.js} +285 -281
- package/dist/chunks/popper-container.CgJzEQ7N.js.map +1 -0
- package/dist/chunks/{promo-banner.CQp3z2CP.js → promo-banner.BbqIA4Ce.js} +4 -4
- package/dist/chunks/promo-banner.BbqIA4Ce.js.map +1 -0
- package/dist/chunks/{radio-group.H9A5QcNu.js → radio-group.CbLIPi7h.js} +77 -69
- package/dist/chunks/radio-group.CbLIPi7h.js.map +1 -0
- package/dist/chunks/{radio-input.DKfQGxtp.js → radio-input.odN9FOyr.js} +2 -2
- package/dist/chunks/radio-input.odN9FOyr.js.map +1 -0
- package/dist/chunks/{rich-text-editor.Dx78coVL.js → rich-text-editor.C0hJeV4H.js} +8 -8
- package/dist/chunks/rich-text-editor.C0hJeV4H.js.map +1 -0
- package/dist/chunks/{search-bar.CUrcP_wf.js → search-bar.CvAi2t3-.js} +46 -44
- package/dist/chunks/search-bar.CvAi2t3-.js.map +1 -0
- package/dist/chunks/{secondary-nav.j3ddtYoZ.js → secondary-nav.yntS8-u5.js} +28 -28
- package/dist/chunks/secondary-nav.yntS8-u5.js.map +1 -0
- package/dist/chunks/{segmented-control.5-vlm8Gt.js → segmented-control.CRSdIvha.js} +6 -7
- package/dist/chunks/segmented-control.CRSdIvha.js.map +1 -0
- package/dist/chunks/{selection-card-group.B4xpnd-z.js → selection-card-group.Cu3V8h4R.js} +16 -16
- package/dist/chunks/selection-card-group.Cu3V8h4R.js.map +1 -0
- package/dist/chunks/{sidepanel.DPN__L3Q.js → sidepanel.z18XSO3M.js} +14 -14
- package/dist/chunks/sidepanel.z18XSO3M.js.map +1 -0
- package/dist/chunks/{status.types.Bdv2zuuh.js → status.types.-l2qJxLn.js} +9 -9
- package/dist/chunks/status.types.-l2qJxLn.js.map +1 -0
- package/dist/chunks/{step.BtNhPZAf.js → step.BMSjltwl.js} +8 -9
- package/dist/chunks/step.BMSjltwl.js.map +1 -0
- package/dist/chunks/{structured-list-item.BQbEDKhg.js → structured-list-item.CD1nMqzH.js} +18 -19
- package/dist/chunks/structured-list-item.CD1nMqzH.js.map +1 -0
- package/dist/chunks/{summary-grid.types.CjbbSZBJ.js → summary-grid.types.BHuDlPDw.js} +7 -7
- package/dist/chunks/{summary-grid.types.CjbbSZBJ.js.map → summary-grid.types.BHuDlPDw.js.map} +1 -1
- package/dist/chunks/{tab.CAt51ksU.js → tab.C3R_VoJL.js} +5 -5
- package/dist/chunks/tab.C3R_VoJL.js.map +1 -0
- package/dist/chunks/{tag.D3in0-Bp.js → tag.B6AmSws9.js} +11 -12
- package/dist/chunks/tag.B6AmSws9.js.map +1 -0
- package/dist/chunks/textarea.DfQLxj_w.js +295 -0
- package/dist/chunks/textarea.DfQLxj_w.js.map +1 -0
- package/dist/chunks/timeline-item.25y9USE-.js +568 -0
- package/dist/chunks/timeline-item.25y9USE-.js.map +1 -0
- package/dist/chunks/{toast.CSoCPteL.js → toast.DIhABAW8.js} +18 -18
- package/dist/chunks/toast.DIhABAW8.js.map +1 -0
- package/dist/chunks/toggle-button.CQl9HneO.js +1353 -0
- package/dist/chunks/toggle-button.CQl9HneO.js.map +1 -0
- package/dist/chunks/{toggle.BuKXexA6.js → toggle.C8k7NQ7y.js} +3 -3
- package/dist/chunks/toggle.C8k7NQ7y.js.map +1 -0
- package/dist/chunks/{tooltip.VYPUHERk.js → tooltip.lBnko9QV.js} +70 -64
- package/dist/chunks/tooltip.lBnko9QV.js.map +1 -0
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.Dmf8fGaM.js → tutorial.vue_vue_type_script_setup_true_lang.BProZFmI.js} +48 -51
- package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.BProZFmI.js.map +1 -0
- package/dist/chunks/{typography.DN5eC5ch.js → typography.yBEME_Gu.js} +25 -25
- package/dist/chunks/typography.yBEME_Gu.js.map +1 -0
- package/dist/chunks/{use-bento-toast-controller.D3LA1FCd.js → use-bento-toast-controller.Kri_h7jS.js} +2 -2
- package/dist/chunks/{use-bento-toast-controller.D3LA1FCd.js.map → use-bento-toast-controller.Kri_h7jS.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.Dyoz6cUK.js → use-cached-selected-values.CELe-MsT.js} +16 -17
- package/dist/chunks/use-cached-selected-values.CELe-MsT.js.map +1 -0
- package/dist/chunks/{use-country-items.Duh4bMqW.js → use-country-items.D_kamcYy.js} +2 -2
- package/dist/chunks/use-country-items.D_kamcYy.js.map +1 -0
- package/dist/chunks/{use-country-phon-code.BOaJ9PDl.js → use-country-phon-code.Bui3zD6W.js} +5 -3
- package/dist/chunks/{use-country-phon-code.BOaJ9PDl.js.map → use-country-phon-code.Bui3zD6W.js.map} +1 -1
- package/dist/chunks/use-has-slot.B7eQSabc.js.map +1 -1
- package/dist/chunks/warning-filled.BMGD0G-_.js +29 -0
- package/dist/chunks/warning-filled.BMGD0G-_.js.map +1 -0
- package/dist/code-snippet.js +1 -1
- package/dist/country.js +2 -2
- 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 +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/divider.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 +1 -1
- package/dist/focus-trap.js +1 -1
- 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 +241 -244
- 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 +3 -2
- package/dist/input-field.js +1 -1
- package/dist/inspector.js +1 -1
- package/dist/internal.js +33 -32
- package/dist/internal.js.map +1 -1
- package/dist/layout.js +1 -1
- 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/payment-method.js +1 -1
- package/dist/popover.js +2 -2
- package/dist/popper-container.js +4 -5
- package/dist/popper-container.js.map +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/status.js +1 -1
- package/dist/stepper.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/styles/bento-dark.css +17 -4
- package/dist/styles/bento-light.css +17 -4
- package/dist/styles/bento.css +17 -4
- package/dist/styles/styleguide.css +17 -4
- package/dist/styles/utility.css +3 -0
- 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/typography.js +1 -1
- package/dist/use-form-v4.js.map +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +6 -6
- package/dist/assets/button-actions.css +0 -1
- package/dist/assets/menu.css +0 -1
- package/dist/assets/popover.css +0 -1
- package/dist/assets/teleport.css +0 -1
- package/dist/chunks/accordion-item.DOnW0OnU.js.map +0 -1
- package/dist/chunks/action-bar.CflF49oL.js.map +0 -1
- package/dist/chunks/alert.DvleqX0i.js +0 -169
- package/dist/chunks/alert.DvleqX0i.js.map +0 -1
- package/dist/chunks/avatar.B0-9jC6H.js.map +0 -1
- package/dist/chunks/base-button.DdNFlbgH.js.map +0 -1
- package/dist/chunks/base-modal.C3_r3rmc.js.map +0 -1
- package/dist/chunks/base-modal.keys.C2PQXcE2.js +0 -5
- package/dist/chunks/base-modal.keys.C2PQXcE2.js.map +0 -1
- package/dist/chunks/bin.CiGG2V4b.js +0 -37
- package/dist/chunks/bin.CiGG2V4b.js.map +0 -1
- package/dist/chunks/button-actions-with-menu.8ZYh7-9s.js +0 -91
- package/dist/chunks/button-actions-with-menu.8ZYh7-9s.js.map +0 -1
- package/dist/chunks/button-actions.CZdO9YOk.js +0 -264
- package/dist/chunks/button-actions.CZdO9YOk.js.map +0 -1
- package/dist/chunks/button.AB0SOQMn.js.map +0 -1
- package/dist/chunks/calendar._oPk_A1C.js.map +0 -1
- package/dist/chunks/card.CS34Mi_G.js.map +0 -1
- package/dist/chunks/checkbox-group.JRo6xNpe.js.map +0 -1
- package/dist/chunks/checkbox-input.DFkwZ4GM.js.map +0 -1
- package/dist/chunks/checkbox.DGrG3GN1.js.map +0 -1
- package/dist/chunks/chip.CneNX2_j.js.map +0 -1
- package/dist/chunks/code-snippet.D5M76Qy6.js.map +0 -1
- package/dist/chunks/controls-group.CrzkSu0U.js.map +0 -1
- package/dist/chunks/copy.RUoQOydT.js.map +0 -1
- package/dist/chunks/country.Q95voxeL.js.map +0 -1
- package/dist/chunks/currency.CZVdyZUH.js.map +0 -1
- package/dist/chunks/dashed-underline.DkzQkpaf.js.map +0 -1
- package/dist/chunks/data-grid-template.DSwj7e1E.js.map +0 -1
- package/dist/chunks/data-grid.BEdELRNZ.js +0 -3860
- package/dist/chunks/data-grid.BEdELRNZ.js.map +0 -1
- package/dist/chunks/date-picker.CAoXTiZR.js.map +0 -1
- package/dist/chunks/date-range-picker.DtV4L3L6.js +0 -1225
- package/dist/chunks/date-range-picker.DtV4L3L6.js.map +0 -1
- package/dist/chunks/dialog-page.C80HOigq.js.map +0 -1
- package/dist/chunks/divider.qUOSAbU6.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.Ce5D3ipi.js.map +0 -1
- package/dist/chunks/dropdown-tag.B3fptORX.js +0 -230
- package/dist/chunks/dropdown-tag.B3fptORX.js.map +0 -1
- package/dist/chunks/dropdown.CMOYmQLB.js.map +0 -1
- package/dist/chunks/empty-state.D7llINgF.js.map +0 -1
- package/dist/chunks/es6.n1ewaW31.js +0 -11
- package/dist/chunks/es6.n1ewaW31.js.map +0 -1
- package/dist/chunks/events.FNmSWp_P.js +0 -52
- package/dist/chunks/events.FNmSWp_P.js.map +0 -1
- package/dist/chunks/file-uploader.B_EI2fAc.js.map +0 -1
- package/dist/chunks/filter-bar.DoHMLZ4O.js.map +0 -1
- package/dist/chunks/focus-trap.CljZgv9i.js.map +0 -1
- package/dist/chunks/footer-actions.Bje-DDqw.js.map +0 -1
- package/dist/chunks/form-layout-title.rpIO-I9A.js.map +0 -1
- package/dist/chunks/grid-layout.BTLE3rac.js.map +0 -1
- package/dist/chunks/header-with-views.BUed3ocZ.js.map +0 -1
- package/dist/chunks/header.CwKjDgKv.js.map +0 -1
- package/dist/chunks/info-icon.DprUQ9fj.js.map +0 -1
- package/dist/chunks/info.DcTs-Bzp.js +0 -44
- package/dist/chunks/info.DcTs-Bzp.js.map +0 -1
- package/dist/chunks/input-field-password.DN0Jro1V.js.map +0 -1
- package/dist/chunks/input-field.su5Cq8Dt.js.map +0 -1
- package/dist/chunks/inspector.CoZCPfHC.js.map +0 -1
- package/dist/chunks/keyboard-navigation.CqgGzfZQ.js.map +0 -1
- package/dist/chunks/layout-row.CZNtHaXd.js.map +0 -1
- package/dist/chunks/listbox-option-tag.0BK6jWO9.js.map +0 -1
- package/dist/chunks/loading-indicator.DEepb9Wl.js.map +0 -1
- package/dist/chunks/menu.EtjeOPXX.js +0 -680
- package/dist/chunks/menu.EtjeOPXX.js.map +0 -1
- package/dist/chunks/modal-fullscreen.DBTnoSX9.js.map +0 -1
- package/dist/chunks/modal-fullscreen.keys.CMba3hYp.js +0 -5
- package/dist/chunks/modal-fullscreen.keys.CMba3hYp.js.map +0 -1
- package/dist/chunks/modal.vue_vue_type_script_setup_true_lang.Cd-mQUJ8.js.map +0 -1
- package/dist/chunks/pagination.fYQak4C8.js.map +0 -1
- package/dist/chunks/payment-method.eazefwm6.js.map +0 -1
- package/dist/chunks/popover.DYgCCUCJ.js +0 -200
- package/dist/chunks/popover.DYgCCUCJ.js.map +0 -1
- package/dist/chunks/popover.types.V8old-GW.js +0 -6
- package/dist/chunks/popover.types.V8old-GW.js.map +0 -1
- package/dist/chunks/popper-container.b5h4zYgT.js.map +0 -1
- package/dist/chunks/popper-container.types.BCZMbVFD.js +0 -9
- package/dist/chunks/popper-container.types.BCZMbVFD.js.map +0 -1
- package/dist/chunks/promo-banner.CQp3z2CP.js.map +0 -1
- package/dist/chunks/radio-group.H9A5QcNu.js.map +0 -1
- package/dist/chunks/radio-input.DKfQGxtp.js.map +0 -1
- package/dist/chunks/rich-text-editor.Dx78coVL.js.map +0 -1
- package/dist/chunks/search-bar.CUrcP_wf.js.map +0 -1
- package/dist/chunks/secondary-nav.j3ddtYoZ.js.map +0 -1
- package/dist/chunks/segmented-control.5-vlm8Gt.js.map +0 -1
- package/dist/chunks/selection-card-group.B4xpnd-z.js.map +0 -1
- package/dist/chunks/sidepanel.DPN__L3Q.js.map +0 -1
- package/dist/chunks/sidepanel.keys.R0DKQuYx.js +0 -5
- package/dist/chunks/sidepanel.keys.R0DKQuYx.js.map +0 -1
- package/dist/chunks/status.types.Bdv2zuuh.js.map +0 -1
- package/dist/chunks/step.BtNhPZAf.js.map +0 -1
- package/dist/chunks/structured-list-item.BQbEDKhg.js.map +0 -1
- package/dist/chunks/tab.CAt51ksU.js.map +0 -1
- package/dist/chunks/tag.D3in0-Bp.js.map +0 -1
- package/dist/chunks/teleport.CfGWjxe2.js +0 -129
- package/dist/chunks/teleport.CfGWjxe2.js.map +0 -1
- package/dist/chunks/textarea.BBhN67-I.js +0 -282
- package/dist/chunks/textarea.BBhN67-I.js.map +0 -1
- package/dist/chunks/timeline-item.CuCII37W.js +0 -566
- package/dist/chunks/timeline-item.CuCII37W.js.map +0 -1
- package/dist/chunks/toast.CSoCPteL.js.map +0 -1
- package/dist/chunks/toggle-button.NQwrfSr1.js +0 -80
- package/dist/chunks/toggle-button.NQwrfSr1.js.map +0 -1
- package/dist/chunks/toggle.BuKXexA6.js.map +0 -1
- package/dist/chunks/tooltip.VYPUHERk.js.map +0 -1
- package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.Dmf8fGaM.js.map +0 -1
- package/dist/chunks/typography.DN5eC5ch.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.Dyoz6cUK.js.map +0 -1
- package/dist/chunks/use-click-outside.BnhTgpSt.js +0 -14
- package/dist/chunks/use-click-outside.BnhTgpSt.js.map +0 -1
- package/dist/chunks/use-country-items.Duh4bMqW.js.map +0 -1
- package/dist/chunks/warning-filled.AiUbXzzg.js +0 -29
- package/dist/chunks/warning-filled.AiUbXzzg.js.map +0 -1
- package/dist/styles/legacy.css +0 -2226
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as w, useSlots as q, toRefs as F, ref as D, computed as i, createElementBlock as g, openBlock as r, normalizeClass as H, createVNode as N, createElementVNode as G, unref as t, createCommentVNode as f, createBlock as h, withCtx as n, renderSlot as B, mergeProps as j, toRef as M, watch as P, createSlots as O, Fragment as Z, renderList as Y, createTextVNode as $, toDisplayString as x } from "vue";
|
|
2
2
|
import { u as J } from "./use-form-layout-loading.D3lALhtC.js";
|
|
3
|
-
import { u as
|
|
3
|
+
import { u as U } from "./use-has-slot.B7eQSabc.js";
|
|
4
4
|
import { g as T } from "./generate-uid.NJ8tVoha.js";
|
|
5
|
-
import { B as L, d as K } from "./typography.
|
|
6
|
-
import { C as Q } from "./controls-group.
|
|
7
|
-
import { B as W } from "./tag.
|
|
5
|
+
import { B as L, d as K } from "./typography.yBEME_Gu.js";
|
|
6
|
+
import { C as Q } from "./controls-group.CXVHTaYp.js";
|
|
7
|
+
import { B as W } from "./tag.B6AmSws9.js";
|
|
8
8
|
import { u as X } from "./aria-label.CaUURpnB.js";
|
|
9
9
|
import { u as ee } from "./use-default-slot-validator.O02rzsob.js";
|
|
10
10
|
import { g as te } from "./get-slot-text.DQlZEsId.js";
|
|
11
|
-
import { R as A, a as
|
|
12
|
-
import { _ as
|
|
13
|
-
import { E as
|
|
11
|
+
import { R as A, a as oe } from "./radio-input.odN9FOyr.js";
|
|
12
|
+
import { _ as z } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
13
|
+
import { E as ae } from "./error-message.B1P5ictH.js";
|
|
14
14
|
import "../assets/radio-group.css";
|
|
15
15
|
const re = ["for"], le = {
|
|
16
16
|
key: 0,
|
|
@@ -18,7 +18,7 @@ const re = ["for"], le = {
|
|
|
18
18
|
}, de = {
|
|
19
19
|
name: "bento-radio-button",
|
|
20
20
|
model: { prop: "modelValue" }
|
|
21
|
-
}, ne = /* @__PURE__ */
|
|
21
|
+
}, ne = /* @__PURE__ */ w({
|
|
22
22
|
...de,
|
|
23
23
|
props: {
|
|
24
24
|
/**
|
|
@@ -63,30 +63,30 @@ const re = ["for"], le = {
|
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
65
|
emits: ["input", "update:model-value"],
|
|
66
|
-
setup(e, { expose:
|
|
67
|
-
const
|
|
68
|
-
ee("bento-radio-button",
|
|
69
|
-
const
|
|
66
|
+
setup(e, { expose: I, emit: R }) {
|
|
67
|
+
const u = q(), d = U(u), o = e, b = R, { value: a } = F(o), S = T("bento-radio-button"), m = T("description"), c = D(null);
|
|
68
|
+
ee("bento-radio-button", u.default, u.description);
|
|
69
|
+
const E = i(() => ({
|
|
70
70
|
[`b-radio-button--${A.DISABLED}`]: o.disabled,
|
|
71
71
|
[`b-radio-button--${A.READONLY}`]: o.readonly
|
|
72
72
|
})), C = X({
|
|
73
|
-
ariaLabel: te(
|
|
73
|
+
ariaLabel: te(u)("default"),
|
|
74
74
|
label: a.value
|
|
75
|
-
}), p =
|
|
75
|
+
}), p = i(() => o.value === o.modelValue), V = () => {
|
|
76
76
|
!o.disabled && !o.readonly && (b("update:model-value", o.value), b("input", o.value));
|
|
77
77
|
};
|
|
78
|
-
return
|
|
78
|
+
return I({
|
|
79
79
|
focus: () => {
|
|
80
|
-
|
|
80
|
+
c.value.focus();
|
|
81
81
|
}
|
|
82
82
|
}), (y, _) => (r(), g("div", {
|
|
83
|
-
class:
|
|
83
|
+
class: H(["b-radio-button", E.value]),
|
|
84
84
|
"data-testid": "radio-button-container"
|
|
85
85
|
}, [
|
|
86
|
-
N(t(
|
|
87
|
-
id: t(
|
|
86
|
+
N(t(oe), {
|
|
87
|
+
id: t(S),
|
|
88
88
|
ref_key: "radioInputRef",
|
|
89
|
-
ref:
|
|
89
|
+
ref: c,
|
|
90
90
|
"aria-label": t(C),
|
|
91
91
|
"aria-describedby": t(d)("description") ? t(m) : "",
|
|
92
92
|
checked: p.value,
|
|
@@ -98,10 +98,10 @@ const re = ["for"], le = {
|
|
|
98
98
|
name: e.name,
|
|
99
99
|
"onUpdate:modelValue": V
|
|
100
100
|
}, null, 8, ["id", "aria-label", "aria-describedby", "checked", "disabled", "readonly", "has-error", "value", "model-value", "name"]),
|
|
101
|
-
|
|
101
|
+
G("div", null, [
|
|
102
102
|
t(d)("default") ? (r(), g("label", {
|
|
103
103
|
key: 0,
|
|
104
|
-
for: t(
|
|
104
|
+
for: t(S),
|
|
105
105
|
class: "b-radio-button__label-container"
|
|
106
106
|
}, [
|
|
107
107
|
t(d)("default") ? (r(), g("span", le, [
|
|
@@ -110,12 +110,12 @@ const re = ["for"], le = {
|
|
|
110
110
|
el: "span",
|
|
111
111
|
variant: "body"
|
|
112
112
|
}, {
|
|
113
|
-
default:
|
|
114
|
-
|
|
113
|
+
default: n(() => [
|
|
114
|
+
B(y.$slots, "default", {}, void 0, !0)
|
|
115
115
|
]),
|
|
116
116
|
_: 3
|
|
117
117
|
}),
|
|
118
|
-
e.tag ? (r(), h(t(W),
|
|
118
|
+
e.tag ? (r(), h(t(W), j({
|
|
119
119
|
key: 0,
|
|
120
120
|
class: "b-radio-button__label-tag"
|
|
121
121
|
}, e.tag), null, 16)) : f("", !0)
|
|
@@ -127,8 +127,8 @@ const re = ["for"], le = {
|
|
|
127
127
|
el: "span",
|
|
128
128
|
variant: "body"
|
|
129
129
|
}, {
|
|
130
|
-
default:
|
|
131
|
-
|
|
130
|
+
default: n(() => [
|
|
131
|
+
B(y.$slots, "description", {}, void 0, !0)
|
|
132
132
|
]),
|
|
133
133
|
_: 3
|
|
134
134
|
}, 8, ["id"])) : f("", !0)
|
|
@@ -138,20 +138,20 @@ const re = ["for"], le = {
|
|
|
138
138
|
class: "b-radio-button__content",
|
|
139
139
|
el: "div"
|
|
140
140
|
}, {
|
|
141
|
-
default:
|
|
142
|
-
|
|
141
|
+
default: n(() => [
|
|
142
|
+
B(y.$slots, "content", {}, void 0, !0)
|
|
143
143
|
]),
|
|
144
144
|
_: 3
|
|
145
145
|
})) : f("", !0)
|
|
146
146
|
])
|
|
147
147
|
], 2));
|
|
148
148
|
}
|
|
149
|
-
}), se = /* @__PURE__ */
|
|
150
|
-
var
|
|
149
|
+
}), se = /* @__PURE__ */ z(ne, [["__scopeId", "data-v-db65f460"]]);
|
|
150
|
+
var k = /* @__PURE__ */ ((e) => (e.HORIZONTAL = "horizontal", e.VERTICAL = "vertical", e))(k || {});
|
|
151
151
|
const ie = { class: "b-radio-group" }, ue = {
|
|
152
152
|
name: "bento-radio-group",
|
|
153
153
|
model: { prop: "modelValue" }
|
|
154
|
-
}, ce = /* @__PURE__ */
|
|
154
|
+
}, ce = /* @__PURE__ */ w({
|
|
155
155
|
...ue,
|
|
156
156
|
props: {
|
|
157
157
|
/**
|
|
@@ -220,18 +220,18 @@ const ie = { class: "b-radio-group" }, ue = {
|
|
|
220
220
|
*/
|
|
221
221
|
variant: {
|
|
222
222
|
type: String,
|
|
223
|
-
default:
|
|
224
|
-
validator: (e) => Object.values(
|
|
223
|
+
default: k.VERTICAL,
|
|
224
|
+
validator: (e) => Object.values(k).includes(e)
|
|
225
225
|
}
|
|
226
226
|
},
|
|
227
227
|
emits: ["input", "update:model-value"],
|
|
228
|
-
setup(e, { expose:
|
|
229
|
-
const
|
|
230
|
-
() => !a.disabled && !
|
|
231
|
-
), p =
|
|
232
|
-
"b-radio-group__buttons--horizontal": a.variant ===
|
|
233
|
-
})), v =
|
|
234
|
-
b("update:model-value",
|
|
228
|
+
setup(e, { expose: I, emit: R }) {
|
|
229
|
+
const u = "bento-radio-group", d = q(), o = U(d), b = R, a = e, S = M(a, "modelValue"), m = T("error"), { isReadOnly: c } = J(M(a, "readonly")), E = D(null), C = i(
|
|
230
|
+
() => !a.disabled && !c.value && (!!a.errorMessage || a.hasError)
|
|
231
|
+
), p = i(() => !a.disabled && !c.value && !!a.errorMessage), V = i(() => ({
|
|
232
|
+
"b-radio-group__buttons--horizontal": a.variant === k.HORIZONTAL
|
|
233
|
+
})), v = i(() => a.variant === "vertical"), y = i(() => o("content") && !(v != null && v.value)), _ = (s) => {
|
|
234
|
+
b("update:model-value", s), b("input", s);
|
|
235
235
|
};
|
|
236
236
|
return a.hasError && K(
|
|
237
237
|
'BentoRadioGroup "hasError" property',
|
|
@@ -239,24 +239,24 @@ const ie = { class: "b-radio-group" }, ue = {
|
|
|
239
239
|
Having the field as "undefined" will hide/remove the error.
|
|
240
240
|
<bento-radio-group errorMessage="Error message text" />`,
|
|
241
241
|
"2.0.0"
|
|
242
|
-
),
|
|
242
|
+
), P(
|
|
243
243
|
y,
|
|
244
|
-
(
|
|
245
|
-
if (
|
|
244
|
+
(s) => {
|
|
245
|
+
if (s)
|
|
246
246
|
throw new Error("The content slot is only available for the vertical radio group layout");
|
|
247
247
|
},
|
|
248
248
|
{
|
|
249
249
|
immediate: !0
|
|
250
250
|
}
|
|
251
|
-
),
|
|
251
|
+
), I({
|
|
252
252
|
focus: () => {
|
|
253
|
-
|
|
253
|
+
E.value[0].focus();
|
|
254
254
|
}
|
|
255
|
-
}), (
|
|
255
|
+
}), (s, be) => (r(), g("div", ie, [
|
|
256
256
|
N(t(Q), {
|
|
257
|
-
class:
|
|
257
|
+
class: H(["b-radio-group__buttons", V.value]),
|
|
258
258
|
"aria-describedby": p.value ? t(m) : "",
|
|
259
|
-
"component-name":
|
|
259
|
+
"component-name": u,
|
|
260
260
|
description: e.description,
|
|
261
261
|
disabled: e.disabled,
|
|
262
262
|
form: e.formId,
|
|
@@ -265,46 +265,54 @@ const ie = { class: "b-radio-group" }, ue = {
|
|
|
265
265
|
required: e.required,
|
|
266
266
|
"hide-label": e.hideLabel,
|
|
267
267
|
"tooltip-text": e.tooltipText
|
|
268
|
-
}, {
|
|
269
|
-
default:
|
|
270
|
-
(r(!0), g(
|
|
268
|
+
}, O({
|
|
269
|
+
default: n(() => [
|
|
270
|
+
(r(!0), g(Z, null, Y(e.items, (l) => (r(), h(t(se), {
|
|
271
271
|
ref_for: !0,
|
|
272
272
|
ref_key: "radioButton",
|
|
273
|
-
ref:
|
|
273
|
+
ref: E,
|
|
274
274
|
key: l.value,
|
|
275
|
-
"model-value":
|
|
275
|
+
"model-value": S.value,
|
|
276
276
|
value: l.value,
|
|
277
277
|
disabled: e.disabled || l.disabled,
|
|
278
|
-
readonly: t(
|
|
278
|
+
readonly: t(c) || l.readonly,
|
|
279
279
|
"has-error": C.value || l.hasError,
|
|
280
280
|
tag: l.tag,
|
|
281
281
|
name: e.formId || e.label,
|
|
282
282
|
"onUpdate:modelValue": _
|
|
283
|
-
},
|
|
284
|
-
default:
|
|
285
|
-
|
|
283
|
+
}, O({
|
|
284
|
+
default: n(() => [
|
|
285
|
+
$(x(l.label), 1)
|
|
286
286
|
]),
|
|
287
287
|
_: 2
|
|
288
288
|
}, [
|
|
289
289
|
l.description ? {
|
|
290
290
|
name: "description",
|
|
291
|
-
fn:
|
|
292
|
-
|
|
291
|
+
fn: n(() => [
|
|
292
|
+
$(x(l.description), 1)
|
|
293
293
|
]),
|
|
294
294
|
key: "0"
|
|
295
295
|
} : void 0,
|
|
296
296
|
t(o)("content") && v.value ? {
|
|
297
297
|
name: "content",
|
|
298
|
-
fn:
|
|
299
|
-
|
|
298
|
+
fn: n(() => [
|
|
299
|
+
B(s.$slots, "content", {}, void 0, !0)
|
|
300
300
|
]),
|
|
301
301
|
key: "1"
|
|
302
302
|
} : void 0
|
|
303
303
|
]), 1032, ["model-value", "value", "disabled", "readonly", "has-error", "tag", "name"]))), 128))
|
|
304
304
|
]),
|
|
305
|
-
_:
|
|
306
|
-
},
|
|
307
|
-
|
|
305
|
+
_: 2
|
|
306
|
+
}, [
|
|
307
|
+
t(o)("description") ? {
|
|
308
|
+
name: "description",
|
|
309
|
+
fn: n(() => [
|
|
310
|
+
B(s.$slots, "description", {}, void 0, !0)
|
|
311
|
+
]),
|
|
312
|
+
key: "0"
|
|
313
|
+
} : void 0
|
|
314
|
+
]), 1032, ["aria-describedby", "class", "description", "disabled", "form", "label", "optional", "required", "hide-label", "tooltip-text"]),
|
|
315
|
+
p.value ? (r(), h(t(ae), {
|
|
308
316
|
key: 0,
|
|
309
317
|
id: t(m),
|
|
310
318
|
"error-message": e.errorMessage,
|
|
@@ -312,10 +320,10 @@ const ie = { class: "b-radio-group" }, ue = {
|
|
|
312
320
|
}, null, 8, ["id", "error-message"])) : f("", !0)
|
|
313
321
|
]));
|
|
314
322
|
}
|
|
315
|
-
}), Ve = /* @__PURE__ */
|
|
323
|
+
}), Ve = /* @__PURE__ */ z(ce, [["__scopeId", "data-v-64f71792"]]);
|
|
316
324
|
export {
|
|
317
325
|
Ve as B,
|
|
318
|
-
|
|
326
|
+
k as a,
|
|
319
327
|
se as b
|
|
320
328
|
};
|
|
321
|
-
//# sourceMappingURL=radio-group.
|
|
329
|
+
//# sourceMappingURL=radio-group.CbLIPi7h.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"radio-group.CbLIPi7h.js","sources":["../../../vue2/src/components/radio-group/components/radio-button/radio-button.vue","../../../vue2/src/components/radio-group/radio-group.types.ts","../../../vue2/src/components/radio-group/radio-group.vue"],"sourcesContent":["<template>\n <div class=\"b-radio-button\" data-testid=\"radio-button-container\" :class=\"conditionalClassContainer\">\n <radio-input\n :id=\"radioButtonId\"\n ref=\"radioInputRef\"\n :aria-label=\"ariaLabel\"\n :aria-describedby=\"hasSlot('description') ? descriptionId : ''\"\n :checked=\"isChecked\"\n :disabled=\"disabled\"\n :readonly=\"readonly\"\n :has-error=\"hasError\"\n :value=\"value\"\n :model-value=\"modelValue\"\n :name=\"name\"\n @update:model-value=\"onChange\"\n />\n <div>\n <label v-if=\"hasSlot('default')\" :for=\"radioButtonId\" class=\"b-radio-button__label-container\">\n <span v-if=\"hasSlot('default')\" class=\"b-radio-button__primary-label\">\n <bento-typography class=\"b-radio-button__label\" el=\"span\" variant=\"body\"><slot /></bento-typography>\n <bento-tag v-if=\"tag\" class=\"b-radio-button__label-tag\" v-bind=\"tag\" />\n </span>\n <bento-typography\n v-if=\"hasSlot('default') && hasSlot('description')\"\n :id=\"descriptionId\"\n class=\"b-radio-button__description\"\n el=\"span\"\n variant=\"body\"\n >\n <slot name=\"description\"></slot>\n </bento-typography>\n </label>\n <bento-typography v-if=\"hasSlot('content') && isChecked\" class=\"b-radio-button__content\" el=\"div\">\n <slot name=\"content\"></slot>\n </bento-typography>\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { BentoTag } from '@/components/tag';\n import { BentoTypography } from '@/components/typography';\n import { RadioInput } from '../../../internal/radio-input';\n import { useAriaLabel } from '@/utils/ts/aria-label';\n import { generateUid } from '@/core/utils/ts';\n import { computed, type ComputedRef, type PropType, ref, toRefs, useSlots } from 'vue';\n import { useDefaultSlotValidator, useHasSlot } from '@/composables';\n import { BentoRadioButtonStateClass, type BentoRadioButtonTag, type BentoRadioButtonValue } from './radio-button.types';\n import { getSlotText } from '@/utils/ts/get-slot-text';\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n const props = defineProps({\n /**\n * Disable the radio button (optional)\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Shows bento-radio-button in error state (optional)\n */\n hasError: { type: Boolean, default: false },\n\n /**\n * This property should not be used directly.\n * It will be used by v-model directive on radio component.\n */\n modelValue: {\n type: [String, Number] as PropType<BentoRadioButtonValue>,\n default: null,\n },\n\n /**\n * Sets the radio button to readonly (optional)\n */\n readonly: { type: Boolean, default: false },\n\n /**\n * Sets the properties of the BentoTag component that is placed next to the label.\n * {@see BentoTag}\n */\n tag: { type: Object as PropType<BentoRadioButtonTag>, default: undefined },\n\n /**\n * Indicates the value of the input that will be returned when it's checked\n */\n value: {\n type: [String, Number] as PropType<BentoRadioButtonValue>,\n required: true,\n },\n\n /**\n * Sets the name of the radio input.\n * Used for differentiating radio groups or accessing input via form submission.\n */\n name: {\n type: String,\n default: null,\n },\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when the radio button is clicked. Enables Vue2 \"v-model\"\n */\n (e: 'input', value: BentoRadioButtonValue);\n\n /**\n * Emitted when the radio button is clicked. Enables Vue3 \"v-model\"\n */\n (e: 'update:model-value', value: BentoRadioButtonValue);\n }>();\n\n const { value } = toRefs(props);\n const radioButtonId = generateUid('bento-radio-button');\n const descriptionId = generateUid('description');\n const radioInputRef = ref(null);\n\n useDefaultSlotValidator('bento-radio-button', slots.default, slots.description);\n\n const conditionalClassContainer = computed(() => ({\n [`b-radio-button--${BentoRadioButtonStateClass.DISABLED}`]: props.disabled,\n [`b-radio-button--${BentoRadioButtonStateClass.READONLY}`]: props.readonly,\n }));\n\n const ariaLabel = useAriaLabel({\n ariaLabel: getSlotText(slots)('default'),\n label: value.value as string,\n });\n\n const isChecked: ComputedRef<boolean> = computed(() => props.value === props.modelValue);\n\n const onChange = () => {\n if (!props.disabled && !props.readonly) {\n emit('update:model-value', props.value);\n emit('input', props.value);\n }\n };\n\n const focus = () => {\n radioInputRef.value.focus();\n };\n\n defineExpose({\n focus,\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * Radio buttons are used when two or more options are mutually exclusive,\n * the user can only select a single option from a list of pre-defined options.\n * The label tag area is also clickable.\n * Only to be used internally.\n *\n * @example\n * import { BentoRadioButton } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoRadioButton },\n * template: `\n * <bento-radio-button\n * disabled\n * value=\"inputRadio\"\n * model-value.sync=\"modelValue\"\n * >\n * Label text\n * <template #description>Description text below label</template>\n * <template #content>Content shown when checked</template>\n * </bento-radio-button>\n * `,\n * setup() {\n * const modelValue = ref('anyValue')\n * const value = 'option-value'\n *\n * return {\n * modelValue,\n * value,\n * }\n * }\n * }\n */\n export default {\n name: 'bento-radio-button',\n model: { prop: 'modelValue' },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./radio-button.scss\" />\n","import type { BentoRadioButtonTag, BentoRadioButtonValue } from './components/radio-button';\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoRadioGroupVariant {\n HORIZONTAL = 'horizontal',\n VERTICAL = 'vertical',\n}\n\nexport type BentoRadioGroupValue = BentoRadioButtonValue;\n\nexport interface BentoRadioGroupItem {\n value: BentoRadioGroupValue;\n label: string;\n description?: string;\n disabled?: boolean;\n readonly?: boolean;\n hasError?: boolean;\n tag?: BentoRadioButtonTag;\n}\n\nexport type BentoRadioGroupItems = Array<BentoRadioGroupItem>;\n","<template>\n <div class=\"b-radio-group\">\n <controls-group\n class=\"b-radio-group__buttons\"\n :aria-describedby=\"shouldShowErrorMessage ? errorId : ''\"\n :component-name=\"COMPONENT_NAME\"\n :class=\"conditionalClasses\"\n :description=\"description\"\n :disabled=\"disabled\"\n :form=\"formId\"\n :label=\"label\"\n :optional=\"optional\"\n :required=\"required\"\n :hide-label=\"hideLabel\"\n :tooltip-text=\"tooltipText\"\n >\n <bento-radio-button\n v-for=\"item in items\"\n ref=\"radioButton\"\n :key=\"item.value\"\n :model-value=\"inputValue\"\n :value=\"item.value\"\n :disabled=\"disabled || item.disabled\"\n :readonly=\"isReadOnly || item.readonly\"\n :has-error=\"shouldShowError || item.hasError\"\n :tag=\"item.tag\"\n :name=\"formId || label\"\n @update:model-value=\"onInput\"\n >\n <template #default>{{ item.label }}</template>\n <template v-if=\"item.description\" #description>{{ item.description }}</template>\n <template v-if=\"hasSlot('content') && isVertical\" #content>\n <slot name=\"content\"></slot>\n </template>\n </bento-radio-button>\n <template v-if=\"hasSlot('description')\" #description>\n <slot name=\"description\" />\n </template>\n </controls-group>\n <error-message\n v-if=\"shouldShowErrorMessage\"\n :id=\"errorId\"\n :error-message=\"errorMessage\"\n class=\"b-radio-group__error-message\"\n />\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, type PropType, ref, toRef, useSlots, watch } from 'vue';\n import { ControlsGroup, ErrorMessage } from '@/components/internal';\n import { BentoRadioButton } from './components/radio-button';\n import { useHasSlot } from '@/composables';\n import { generateUid } from '@/core/utils/ts';\n import { deprecate } from '@/utils/ts/deprecate';\n import { type BentoRadioGroupItems, type BentoRadioGroupValue, BentoRadioGroupVariant } from './radio-group.types';\n import { useFormLayoutFieldLoading } from '@/composables/use-form-layout-loading/use-form-layout-loading';\n\n /**\n * The name of the component to be used in the Vue devtools and console warnings.\n */\n const COMPONENT_NAME = 'bento-radio-group';\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n const emit = defineEmits<{\n /**\n * Emitted when an option inside the group is selected. Enables Vue2 \"v-model\"\n */\n (e: 'input', value: BentoRadioGroupValue);\n\n /**\n * Emitted when an option inside the group is selected. Enables Vue3 \"v-model\"\n */\n (e: 'update:model-value', value: BentoRadioGroupValue);\n }>();\n\n const props = defineProps({\n /**\n * Descriptive supporting text visbile underneath the label.\n */\n description: { type: String, default: null },\n\n /**\n * If set to true, renders all bento-radio-buttons in the group in a disabled state.\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * If passed as a prop, all bento-radio-buttons in an error state and renders the string beneath the buttons.\n */\n errorMessage: { type: String, default: null },\n\n /**\n * The form id the radio group is associated with. Defaults to null, as a radio group can also be used standalone.\n */\n formId: { type: String, default: null },\n\n /**\n * If set to true, renders all bento-radio-buttons in the group in an error state.\n *\n * @deprecated Use \"errorMessage\" prop instead\n */\n hasError: { type: Boolean, default: false },\n\n /**\n * Shows/hides the group label.\n */\n hideLabel: { type: Boolean, default: null },\n\n /**\n * The radio group's items.\n */\n items: {\n type: Array as PropType<BentoRadioGroupItems>,\n required: true,\n },\n\n /**\n * The name associated with the group. Required for accessibility purposes.\n */\n label: { type: String, required: true },\n\n /**\n * Determines the initially selected value of the group. Corresponds to the BentoRadioButtonItem's value.\n * Defaults to no value selected.\n */\n modelValue: {\n type: [Number, String] as PropType<BentoRadioGroupValue>,\n default: null,\n },\n\n /**\n * Indicates the field is optional.\n */\n optional: { type: Boolean, default: false },\n\n /**\n * If set to true, renders all bento-radio-button in the group in a readonly state.\n */\n readonly: { type: Boolean, default: false },\n\n /**\n * Indicates the field is required.\n */\n required: { type: Boolean, default: false },\n\n /**\n * Tooltip message.\n */\n tooltipText: { type: String, default: null },\n\n /**\n * The radio group's layout. It can be vertical or horizontal. Defaults to vertical.\n */\n variant: {\n type: String as PropType<BentoRadioGroupVariant | `${BentoRadioGroupVariant}`>,\n default: BentoRadioGroupVariant.VERTICAL,\n validator: (value: BentoRadioGroupVariant) => Object.values(BentoRadioGroupVariant).includes(value),\n },\n });\n\n const inputValue = toRef(props, 'modelValue');\n const errorId = generateUid('error');\n const { isReadOnly } = useFormLayoutFieldLoading(toRef(props, 'readonly'));\n const radioButton = ref(null);\n\n const shouldShowError = computed(\n () => !props.disabled && !isReadOnly.value && (!!props.errorMessage || props.hasError)\n );\n const shouldShowErrorMessage = computed(() => !props.disabled && !isReadOnly.value && !!props.errorMessage);\n\n const conditionalClasses = computed(() => ({\n 'b-radio-group__buttons--horizontal': props.variant === BentoRadioGroupVariant.HORIZONTAL,\n }));\n\n // Content slot logic\n const isVertical = computed(() => props.variant === 'vertical');\n const shouldShowSlotError = computed(() => hasSlot('content') && !isVertical?.value);\n\n const onInput = value => {\n emit('update:model-value', value);\n emit('input', value);\n };\n\n if (props.hasError) {\n deprecate(\n 'BentoRadioGroup \"hasError\" property',\n `Use the BentoRadioGroup \"errorMessage\" property instead to indicate that there is a modifier error.\n Having the field as \"undefined\" will hide/remove the error.\n <bento-radio-group errorMessage=\"Error message text\" />`,\n '2.0.0'\n );\n }\n\n watch(\n shouldShowSlotError,\n newVal => {\n if (newVal) {\n throw new Error('The content slot is only available for the vertical radio group layout');\n }\n },\n {\n immediate: true,\n }\n );\n\n const focus = () => {\n radioButton.value[0].focus();\n };\n\n defineExpose({\n focus,\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * A radio group component should be used whenever it is necessary to use a set of radio buttons\n * This component conforms to the official WAI-ARIA guidelines for grouping controls: https://www.w3.org/WAI/tutorials/forms/grouping/\n *\n * import { BentoRadioGroup } from '@adyen/bento-vue2/';\n *\n * export default {\n * components: { BentoRadioGroup },\n * template: `\n * <bento-radio-group\n * label=\"Your group label\"\n * :items=\"[\n * { value: 1, label: 'Your label' },\n * { value: 2, label: 'Another label', description: 'Your descriptive sub label' },\n * ]\"\n * variant=\"horizontal\"\n * />\n * `\n * };\n */\n export default {\n name: 'bento-radio-group',\n model: { prop: 'modelValue' },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./radio-group.scss\" />\n"],"names":["__default__$1","slots","useSlots","hasSlot","useHasSlot","props","__props","emit","__emit","value","toRefs","radioButtonId","generateUid","descriptionId","radioInputRef","ref","useDefaultSlotValidator","conditionalClassContainer","computed","RadioInputStateClass","ariaLabel","useAriaLabel","getSlotText","isChecked","onChange","__expose","BentoRadioGroupVariant","BentoRadioGroupVariant2","__default__","COMPONENT_NAME","inputValue","toRef","errorId","isReadOnly","useFormLayoutFieldLoading","radioButton","shouldShowError","shouldShowErrorMessage","conditionalClasses","isVertical","shouldShowSlotError","onInput","deprecate","watch","newVal"],"mappings":";;;;;;;;;;;;;;;;;GAsLIA,KAAA;AAAA,EAAe,MAAA;AAAA,EACL,OAAA,EAAA,MAAA,aAAA;AAEV;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAvIA,UAAAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GACAI,IAAAC,GAiDAC,IAAAC,GAYA,EAAA,OAAAC,EAAA,IAAAC,EAAAL,CAAA,GACAM,IAAAC,EAAA,oBAAA,GACAC,IAAAD,EAAA,aAAA,GACAE,IAAAC,EAAA,IAAA;AAEA,IAAAC,GAAA,sBAAAf,EAAA,SAAAA,EAAA,WAAA;AAEA,UAAAgB,IAAAC,EAAA,OAAA;AAAA,MAAkD,CAAA,mBAAAC,EAAA,QAAA,EAAA,GAAAd,EAAA;AAAA,MACoB,CAAA,mBAAAc,EAAA,QAAA,EAAA,GAAAd,EAAA;AAAA,IACA,EAAA,GAGtEe,IAAAC,EAAA;AAAA,MAA+B,WAAAC,GAAArB,CAAA,EAAA,SAAA;AAAA,MACY,OAAAQ,EAAA;AAAA,IAC1B,CAAA,GAGjBc,IAAAL,EAAA,MAAAb,EAAA,UAAAA,EAAA,UAAA,GAEAmB,IAAA,MAAA;AACI,MAAA,CAAAnB,EAAA,YAAA,CAAAA,EAAA,aACIE,EAAA,sBAAAF,EAAA,KAAA,GACAE,EAAA,SAAAF,EAAA,KAAA;AAAA,IACJ;AAOJ,WAAAoB,EAAA;AAAA,MAAa,OAJb,MAAA;AACI,QAAAX,EAAA,MAAA,MAAA;AAAA,MAA0B;AAAA,IAI1B,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC3II,IAAAY,IAAA,kBAAAC,OACRA,EAAA,aAAA,cACAA,EAAA,WAAA,YAFQA,IAAAD,KAAA,CAAA,CAAA;uCCyORE,KAAA;AAAA,EAAe,MAAA;AAAA,EACL,OAAA,EAAA,MAAA,aAAA;AAEV;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AApLA,UAAAC,IAAA,qBAEA5B,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAEAM,IAAAC,GAYAH,IAAAC,GAqFAwB,IAAAC,EAAA1B,GAAA,YAAA,GACA2B,IAAApB,EAAA,OAAA,GACA,EAAA,YAAAqB,EAAA,IAAAC,EAAAH,EAAA1B,GAAA,UAAA,CAAA,GACA8B,IAAApB,EAAA,IAAA,GAEAqB,IAAAlB;AAAA,MAAwB,MAAA,CAAAb,EAAA,YAAA,CAAA4B,EAAA,UAAA,CAAA,CAAA5B,EAAA,gBAAAA,EAAA;AAAA,IACyD,GAEjFgC,IAAAnB,EAAA,MAAA,CAAAb,EAAA,YAAA,CAAA4B,EAAA,SAAA,CAAA,CAAA5B,EAAA,YAAA,GAEAiC,IAAApB,EAAA,OAAA;AAAA,MAA2C,sCAAAb,EAAA,YAAAqB,EAAA;AAAA,IACwC,EAAA,GAInFa,IAAArB,EAAA,MAAAb,EAAA,YAAA,UAAA,GACAmC,IAAAtB,EAAA,MAAAf,EAAA,SAAA,KAAA,EAAAoC,KAAA,QAAAA,EAAA,MAAA,GAEAE,IAAA,CAAAhC,MAAA;AACI,MAAAF,EAAA,sBAAAE,CAAA,GACAF,EAAA,SAAAE,CAAA;AAAA,IAAmB;AAGvB,WAAAJ,EAAA,YACIqC;AAAA,MAAA;AAAA,MACI;AAAA;AAAA;AAAA,MACA;AAAA,IAGA,GAIRC;AAAA,MAAAH;AAAA,MACI,CAAAI,MAAA;AAEI,YAAAA;AACI,gBAAA,IAAA,MAAA,wEAAA;AAAA,MACJ;AAAA,MACJ;AAAA,QACA,WAAA;AAAA,MACe;AAAA,IACf,GAOJnB,EAAA;AAAA,MAAa,OAJb,MAAA;AACI,QAAAU,EAAA,MAAA,CAAA,EAAA,MAAA;AAAA,MAA2B;AAAA,IAI3B,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -88,9 +88,9 @@ const g = ["id", "aria-checked", "aria-label", "aria-invalid", "aria-describedby
|
|
|
88
88
|
onChange: b
|
|
89
89
|
}, null, 42, g));
|
|
90
90
|
}
|
|
91
|
-
}), N = /* @__PURE__ */ D(L, [["__scopeId", "data-v-
|
|
91
|
+
}), N = /* @__PURE__ */ D(L, [["__scopeId", "data-v-5b049e8c"]]);
|
|
92
92
|
export {
|
|
93
93
|
l as R,
|
|
94
94
|
N as a
|
|
95
95
|
};
|
|
96
|
-
//# sourceMappingURL=radio-input.
|
|
96
|
+
//# sourceMappingURL=radio-input.odN9FOyr.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"radio-input.odN9FOyr.js","sources":["../../../vue2/src/components/internal/radio-input/radio-input.types.ts","../../../vue2/src/components/internal/radio-input/radio-input.vue"],"sourcesContent":["export type RadioInputValue = string | number;\n\nexport enum RadioInputStateClass {\n DISABLED = 'disabled',\n READONLY = 'readonly',\n ERROR = 'error',\n}\n","<template>\n <input\n :id=\"id\"\n ref=\"inputRef\"\n :aria-checked=\"isChecked\"\n :aria-label=\"ariaLabel\"\n :aria-invalid=\"ariaInvalid\"\n :aria-describedby=\"ariaDescribedby\"\n :checked=\"isChecked\"\n :disabled=\"disabled\"\n :aria-readonly=\"readonly ? readonly : undefined\"\n :value=\"value\"\n :name=\"name\"\n type=\"radio\"\n class=\"b-radio-input\"\n :class=\"conditionalClasses\"\n role=\"radio\"\n @click=\"onClick\"\n @change=\"onChange\"\n />\n</template>\n\n<script setup lang=\"ts\">\n import { computed, type ComputedRef, type PropType, ref, toRefs } from 'vue';\n import { RadioInputStateClass, type RadioInputValue } from './radio-input.types';\n import type { HTMLAttributes } from 'vue/types/jsx.d.ts';\n\n const props = defineProps({\n /**\n * The aria label associated to the input checkbox.\n */\n ariaLabel: { type: String, default: '' },\n\n /**\n * An additional string that serves as description for the input checkbox (useful if the component shows a description).\n */\n ariaDescribedby: { type: String, default: '' },\n\n /**\n * Disable the radio button (optional)\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Shows bento-radio-button in error state (optional)\n */\n hasError: { type: Boolean, default: false },\n\n /**\n * Sets the id of the radio input. Required for accessibility purposes\n */\n id: { type: String, default: null },\n\n /**\n * This property should not be used directly.\n * It will be used by v-model directive on radio component.\n */\n modelValue: {\n type: [String, Number] as PropType<RadioInputValue>,\n default: null,\n },\n\n /**\n * Sets the radio button to readonly (optional)\n */\n readonly: { type: Boolean, default: false },\n\n /**\n * Indicates the value of the input that will be returned when it's checked\n */\n value: {\n type: [String, Number] as PropType<RadioInputValue>,\n required: true,\n },\n\n /**\n * Sets the name of the radio input.\n * Used for differentiating radio groups or accessing input via form submission.\n */\n name: { type: String, default: null },\n });\n\n const emit = defineEmits<{\n /**\n * Emit that emits the input value\n */\n (e: 'update:model-value', value: RadioInputValue): void;\n }>();\n\n const { value } = toRefs(props);\n\n const inputRef = ref(null);\n\n const conditionalClasses = computed(() => ({\n [`b-radio-input--${RadioInputStateClass.DISABLED}`]: props.disabled,\n [`b-radio-input--${RadioInputStateClass.ERROR}`]: props.hasError,\n [`b-radio-input--${RadioInputStateClass.READONLY}`]: props.readonly,\n }));\n\n const ariaInvalid = computed<HTMLAttributes['aria-invalid']>(() => props.hasError);\n\n const isChecked: ComputedRef<boolean> = computed(() => props.value === props.modelValue);\n\n const onChange = () => {\n if (!props.disabled && !props.readonly) {\n emit('update:model-value', props.value);\n }\n };\n\n // readonly attr doesn't work with radio button, so we need to manually ignore the click instead\n const onClick = event => {\n if (props.readonly) {\n event.preventDefault();\n }\n };\n\n const focus = () => {\n inputRef.value.focus();\n };\n\n defineExpose({\n focus,\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * Internal component that renders a radio input (without label)\n *\n * @example\n * import { RadioInput } from '@/internal/radio-input';\n *\n * export default {\n * components: { BentoCheckboxInput },\n * template: `\n * <label for=\"checkbox-id\">Your label</label>\n * <span id=\"description-id\">Description</span>\n * <radio-input id=\"checkbox-id\" aria=label=\"Your label\" aria-describedby=\"description-id\" />\n * `\n * }\n */\n export default {\n name: 'radio-input',\n inheritAttrs: false,\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./radio-input.scss\" />\n"],"names":["RadioInputStateClass","RadioInputStateClass2","__default__","props","__props","emit","__emit","value","toRefs","inputRef","ref","conditionalClasses","computed","ariaInvalid","isChecked","onChange","onClick","event","__expose"],"mappings":";;;AAEY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,WAAA,YACAA,EAAA,WAAA,YACAA,EAAA,QAAA,SAHQA,IAAAD,KAAA,CAAA,CAAA;6IC2IRE,IAAA;AAAA,EAAe,MAAA;AAAA,EACL,cAAA;AAEV;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AArHA,UAAAC,IAAAC,GAuDAC,IAAAC,GAOA,EAAA,OAAAC,EAAA,IAAAC,EAAAL,CAAA,GAEAM,IAAAC,EAAA,IAAA,GAEAC,IAAAC,EAAA,OAAA;AAAA,MAA2C,CAAA,kBAAAZ,EAAA,QAAA,EAAA,GAAAG,EAAA;AAAA,MACoB,CAAA,kBAAAH,EAAA,KAAA,EAAA,GAAAG,EAAA;AAAA,MACH,CAAA,kBAAAH,EAAA,QAAA,EAAA,GAAAG,EAAA;AAAA,IACG,EAAA,GAG/DU,IAAAD,EAAA,MAAAT,EAAA,QAAA,GAEAW,IAAAF,EAAA,MAAAT,EAAA,UAAAA,EAAA,UAAA,GAEAY,IAAA,MAAA;AACI,MAAA,CAAAZ,EAAA,YAAA,CAAAA,EAAA,YACIE,EAAA,sBAAAF,EAAA,KAAA;AAAA,IACJ,GAIJa,IAAA,CAAAC,MAAA;AACI,MAAAd,EAAA,YACIc,EAAA,eAAA;AAAA,IACJ;AAOJ,WAAAC,EAAA;AAAA,MAAa,OAJb,MAAA;AACI,QAAAT,EAAA,MAAA,MAAA;AAAA,MAAqB;AAAA,IAIrB,CAAA;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent as Dt, ref as wt, onMounted as sr, watch as me, createElementBlock as Ft, openBlock as Z, toDisplayString as $t, createBlock as pt, unref as ht, withCtx as Pt, renderSlot as Tt, createElementVNode as Ut, computed as xt, normalizeStyle as cr, h as Q, useAttrs as fr, createCommentVNode as te, mergeProps as hr, createVNode as Pe, KeepAlive as pr, createTextVNode as Me, normalizeClass as mr } from "vue";
|
|
2
|
-
import { B as Oe } from "./typography.
|
|
3
|
-
import { B as gr } from "./segmented-control.
|
|
4
|
-
import { B as dr } from "./alert.
|
|
2
|
+
import { B as Oe } from "./typography.yBEME_Gu.js";
|
|
3
|
+
import { B as gr } from "./segmented-control.CRSdIvha.js";
|
|
4
|
+
import { B as dr } from "./alert.Dzx5MzgE.js";
|
|
5
5
|
import { _ as Fe } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
6
|
-
import { B as kr } from "./link.
|
|
7
|
-
import { B as xr } from "./checkbox.
|
|
6
|
+
import { B as kr } from "./link.cwPmWlsk.js";
|
|
7
|
+
import { B as xr } from "./checkbox.M6lKj2hQ.js";
|
|
8
8
|
import { u as br } from "./i18n.B6g5VX0q.js";
|
|
9
9
|
import { u as yr } from "./aria-label.CaUURpnB.js";
|
|
10
10
|
import { g as Re } from "./generate-uid.NJ8tVoha.js";
|
|
11
11
|
import { g as wr } from "./_commonjsHelpers.C6fGbg64.js";
|
|
12
|
-
import { F as Fr, E as Sr } from "./error-message.
|
|
12
|
+
import { F as Fr, E as Sr } from "./error-message.B1P5ictH.js";
|
|
13
13
|
import "../assets/rich-text-editor.css";
|
|
14
14
|
const Cr = ["disabled"], Ar = /* @__PURE__ */ Dt({
|
|
15
15
|
__name: "rich-text-editor-content-area",
|
|
@@ -41,7 +41,7 @@ const Cr = ["disabled"], Ar = /* @__PURE__ */ Dt({
|
|
|
41
41
|
onKeydown: u
|
|
42
42
|
}, null, 40, Cr));
|
|
43
43
|
}
|
|
44
|
-
}), Er = /* @__PURE__ */ Fe(Ar, [["__scopeId", "data-v-
|
|
44
|
+
}), Er = /* @__PURE__ */ Fe(Ar, [["__scopeId", "data-v-36c7b18d"]]);
|
|
45
45
|
function X(t, n, e, r) {
|
|
46
46
|
const i = t.length;
|
|
47
47
|
let l = 0, u;
|
|
@@ -6219,4 +6219,4 @@ const ao = {
|
|
|
6219
6219
|
export {
|
|
6220
6220
|
Eo as r
|
|
6221
6221
|
};
|
|
6222
|
-
//# sourceMappingURL=rich-text-editor.
|
|
6222
|
+
//# sourceMappingURL=rich-text-editor.C0hJeV4H.js.map
|