@bigbot-community/bigbot-ui 1.0.1
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/braip-ui.cjs +2 -0
- package/dist/braip-ui.cjs.map +1 -0
- package/dist/braip-ui.js +2502 -0
- package/dist/braip-ui.js.map +1 -0
- package/dist/style.css +1 -0
- package/dist/types/components/atoms/BrAvatar/BrAvatar.vue.d.ts +9 -0
- package/dist/types/components/atoms/BrAvatar/BrAvatar.vue.d.ts.map +1 -0
- package/dist/types/components/atoms/BrAvatar/index.d.ts +3 -0
- package/dist/types/components/atoms/BrAvatar/index.d.ts.map +1 -0
- package/dist/types/components/atoms/BrAvatar/types.d.ts +37 -0
- package/dist/types/components/atoms/BrAvatar/types.d.ts.map +1 -0
- package/dist/types/components/atoms/BrBadge/BrBadge.test.d.ts +2 -0
- package/dist/types/components/atoms/BrBadge/BrBadge.test.d.ts.map +1 -0
- package/dist/types/components/atoms/BrBadge/BrBadge.vue.d.ts +18 -0
- package/dist/types/components/atoms/BrBadge/BrBadge.vue.d.ts.map +1 -0
- package/dist/types/components/atoms/BrBadge/index.d.ts +3 -0
- package/dist/types/components/atoms/BrBadge/index.d.ts.map +1 -0
- package/dist/types/components/atoms/BrBadge/types.d.ts +20 -0
- package/dist/types/components/atoms/BrBadge/types.d.ts.map +1 -0
- package/dist/types/components/atoms/BrButton/BrButton.test.d.ts +2 -0
- package/dist/types/components/atoms/BrButton/BrButton.test.d.ts.map +1 -0
- package/dist/types/components/atoms/BrButton/BrButton.vue.d.ts +25 -0
- package/dist/types/components/atoms/BrButton/BrButton.vue.d.ts.map +1 -0
- package/dist/types/components/atoms/BrButton/index.d.ts +3 -0
- package/dist/types/components/atoms/BrButton/index.d.ts.map +1 -0
- package/dist/types/components/atoms/BrButton/types.d.ts +35 -0
- package/dist/types/components/atoms/BrButton/types.d.ts.map +1 -0
- package/dist/types/components/atoms/BrCheckbox/BrCheckbox.test.d.ts +2 -0
- package/dist/types/components/atoms/BrCheckbox/BrCheckbox.test.d.ts.map +1 -0
- package/dist/types/components/atoms/BrCheckbox/BrCheckbox.vue.d.ts +29 -0
- package/dist/types/components/atoms/BrCheckbox/BrCheckbox.vue.d.ts.map +1 -0
- package/dist/types/components/atoms/BrCheckbox/BrCheckboxGroup.vue.d.ts +17 -0
- package/dist/types/components/atoms/BrCheckbox/BrCheckboxGroup.vue.d.ts.map +1 -0
- package/dist/types/components/atoms/BrCheckbox/index.d.ts +4 -0
- package/dist/types/components/atoms/BrCheckbox/index.d.ts.map +1 -0
- package/dist/types/components/atoms/BrCheckbox/types.d.ts +86 -0
- package/dist/types/components/atoms/BrCheckbox/types.d.ts.map +1 -0
- package/dist/types/components/atoms/BrImage/BrImage.vue.d.ts +9 -0
- package/dist/types/components/atoms/BrImage/BrImage.vue.d.ts.map +1 -0
- package/dist/types/components/atoms/BrImage/index.d.ts +3 -0
- package/dist/types/components/atoms/BrImage/index.d.ts.map +1 -0
- package/dist/types/components/atoms/BrImage/types.d.ts +43 -0
- package/dist/types/components/atoms/BrImage/types.d.ts.map +1 -0
- package/dist/types/components/atoms/BrInput/BrInput.test.d.ts +2 -0
- package/dist/types/components/atoms/BrInput/BrInput.test.d.ts.map +1 -0
- package/dist/types/components/atoms/BrInput/BrInput.vue.d.ts +35 -0
- package/dist/types/components/atoms/BrInput/BrInput.vue.d.ts.map +1 -0
- package/dist/types/components/atoms/BrInput/index.d.ts +3 -0
- package/dist/types/components/atoms/BrInput/index.d.ts.map +1 -0
- package/dist/types/components/atoms/BrInput/types.d.ts +55 -0
- package/dist/types/components/atoms/BrInput/types.d.ts.map +1 -0
- package/dist/types/components/atoms/BrProgressbar/BrProgressbar.vue.d.ts +15 -0
- package/dist/types/components/atoms/BrProgressbar/BrProgressbar.vue.d.ts.map +1 -0
- package/dist/types/components/atoms/BrProgressbar/index.d.ts +3 -0
- package/dist/types/components/atoms/BrProgressbar/index.d.ts.map +1 -0
- package/dist/types/components/atoms/BrProgressbar/types.d.ts +55 -0
- package/dist/types/components/atoms/BrProgressbar/types.d.ts.map +1 -0
- package/dist/types/components/atoms/BrRadio/BrRadio.vue.d.ts +26 -0
- package/dist/types/components/atoms/BrRadio/BrRadio.vue.d.ts.map +1 -0
- package/dist/types/components/atoms/BrRadio/BrRadioGroup.vue.d.ts +17 -0
- package/dist/types/components/atoms/BrRadio/BrRadioGroup.vue.d.ts.map +1 -0
- package/dist/types/components/atoms/BrRadio/index.d.ts +4 -0
- package/dist/types/components/atoms/BrRadio/index.d.ts.map +1 -0
- package/dist/types/components/atoms/BrRadio/types.d.ts +77 -0
- package/dist/types/components/atoms/BrRadio/types.d.ts.map +1 -0
- package/dist/types/components/atoms/BrRating/BrRating.vue.d.ts +21 -0
- package/dist/types/components/atoms/BrRating/BrRating.vue.d.ts.map +1 -0
- package/dist/types/components/atoms/BrRating/index.d.ts +3 -0
- package/dist/types/components/atoms/BrRating/index.d.ts.map +1 -0
- package/dist/types/components/atoms/BrRating/types.d.ts +51 -0
- package/dist/types/components/atoms/BrRating/types.d.ts.map +1 -0
- package/dist/types/components/atoms/BrSelect/BrSelect.vue.d.ts +27 -0
- package/dist/types/components/atoms/BrSelect/BrSelect.vue.d.ts.map +1 -0
- package/dist/types/components/atoms/BrSelect/index.d.ts +3 -0
- package/dist/types/components/atoms/BrSelect/index.d.ts.map +1 -0
- package/dist/types/components/atoms/BrSelect/types.d.ts +52 -0
- package/dist/types/components/atoms/BrSelect/types.d.ts.map +1 -0
- package/dist/types/components/atoms/BrSpinner/BrSpinner.vue.d.ts +8 -0
- package/dist/types/components/atoms/BrSpinner/BrSpinner.vue.d.ts.map +1 -0
- package/dist/types/components/atoms/BrSpinner/index.d.ts +3 -0
- package/dist/types/components/atoms/BrSpinner/index.d.ts.map +1 -0
- package/dist/types/components/atoms/BrSpinner/types.d.ts +20 -0
- package/dist/types/components/atoms/BrSpinner/types.d.ts.map +1 -0
- package/dist/types/components/atoms/BrSwitch/BrSwitch.test.d.ts +2 -0
- package/dist/types/components/atoms/BrSwitch/BrSwitch.test.d.ts.map +1 -0
- package/dist/types/components/atoms/BrSwitch/BrSwitch.vue.d.ts +15 -0
- package/dist/types/components/atoms/BrSwitch/BrSwitch.vue.d.ts.map +1 -0
- package/dist/types/components/atoms/BrSwitch/index.d.ts +3 -0
- package/dist/types/components/atoms/BrSwitch/index.d.ts.map +1 -0
- package/dist/types/components/atoms/BrSwitch/types.d.ts +14 -0
- package/dist/types/components/atoms/BrSwitch/types.d.ts.map +1 -0
- package/dist/types/components/atoms/BrTextarea/BrTextarea.vue.d.ts +31 -0
- package/dist/types/components/atoms/BrTextarea/BrTextarea.vue.d.ts.map +1 -0
- package/dist/types/components/atoms/BrTextarea/index.d.ts +3 -0
- package/dist/types/components/atoms/BrTextarea/index.d.ts.map +1 -0
- package/dist/types/components/atoms/BrTextarea/types.d.ts +37 -0
- package/dist/types/components/atoms/BrTextarea/types.d.ts.map +1 -0
- package/dist/types/components/atoms/BrTitle/BrTitle.vue.d.ts +22 -0
- package/dist/types/components/atoms/BrTitle/BrTitle.vue.d.ts.map +1 -0
- package/dist/types/components/atoms/BrTitle/index.d.ts +3 -0
- package/dist/types/components/atoms/BrTitle/index.d.ts.map +1 -0
- package/dist/types/components/atoms/BrTitle/types.d.ts +41 -0
- package/dist/types/components/atoms/BrTitle/types.d.ts.map +1 -0
- package/dist/types/components/atoms/BrVideo/BrVideo.vue.d.ts +39 -0
- package/dist/types/components/atoms/BrVideo/BrVideo.vue.d.ts.map +1 -0
- package/dist/types/components/atoms/BrVideo/index.d.ts +3 -0
- package/dist/types/components/atoms/BrVideo/index.d.ts.map +1 -0
- package/dist/types/components/atoms/BrVideo/types.d.ts +48 -0
- package/dist/types/components/atoms/BrVideo/types.d.ts.map +1 -0
- package/dist/types/components/atoms/index.d.ts +16 -0
- package/dist/types/components/atoms/index.d.ts.map +1 -0
- package/dist/types/components/index.d.ts +4 -0
- package/dist/types/components/index.d.ts.map +1 -0
- package/dist/types/components/molecules/BrAccordion/BrAccordion.vue.d.ts +23 -0
- package/dist/types/components/molecules/BrAccordion/BrAccordion.vue.d.ts.map +1 -0
- package/dist/types/components/molecules/BrAccordion/BrAccordionItem.vue.d.ts +20 -0
- package/dist/types/components/molecules/BrAccordion/BrAccordionItem.vue.d.ts.map +1 -0
- package/dist/types/components/molecules/BrAccordion/index.d.ts +4 -0
- package/dist/types/components/molecules/BrAccordion/index.d.ts.map +1 -0
- package/dist/types/components/molecules/BrAccordion/types.d.ts +72 -0
- package/dist/types/components/molecules/BrAccordion/types.d.ts.map +1 -0
- package/dist/types/components/molecules/BrCalendar/BrCalendar.vue.d.ts +21 -0
- package/dist/types/components/molecules/BrCalendar/BrCalendar.vue.d.ts.map +1 -0
- package/dist/types/components/molecules/BrCalendar/index.d.ts +3 -0
- package/dist/types/components/molecules/BrCalendar/index.d.ts.map +1 -0
- package/dist/types/components/molecules/BrCalendar/types.d.ts +68 -0
- package/dist/types/components/molecules/BrCalendar/types.d.ts.map +1 -0
- package/dist/types/components/molecules/BrCard/BrCard.vue.d.ts +35 -0
- package/dist/types/components/molecules/BrCard/BrCard.vue.d.ts.map +1 -0
- package/dist/types/components/molecules/BrCard/index.d.ts +3 -0
- package/dist/types/components/molecules/BrCard/index.d.ts.map +1 -0
- package/dist/types/components/molecules/BrCard/types.d.ts +61 -0
- package/dist/types/components/molecules/BrCard/types.d.ts.map +1 -0
- package/dist/types/components/molecules/BrFormField/BrFormField.vue.d.ts +24 -0
- package/dist/types/components/molecules/BrFormField/BrFormField.vue.d.ts.map +1 -0
- package/dist/types/components/molecules/BrFormField/index.d.ts +3 -0
- package/dist/types/components/molecules/BrFormField/index.d.ts.map +1 -0
- package/dist/types/components/molecules/BrFormField/types.d.ts +55 -0
- package/dist/types/components/molecules/BrFormField/types.d.ts.map +1 -0
- package/dist/types/components/molecules/BrModal/BrModal.test.d.ts +2 -0
- package/dist/types/components/molecules/BrModal/BrModal.test.d.ts.map +1 -0
- package/dist/types/components/molecules/BrModal/BrModal.vue.d.ts +43 -0
- package/dist/types/components/molecules/BrModal/BrModal.vue.d.ts.map +1 -0
- package/dist/types/components/molecules/BrModal/index.d.ts +3 -0
- package/dist/types/components/molecules/BrModal/index.d.ts.map +1 -0
- package/dist/types/components/molecules/BrModal/types.d.ts +49 -0
- package/dist/types/components/molecules/BrModal/types.d.ts.map +1 -0
- package/dist/types/components/molecules/BrStepper/BrStepper.vue.d.ts +22 -0
- package/dist/types/components/molecules/BrStepper/BrStepper.vue.d.ts.map +1 -0
- package/dist/types/components/molecules/BrStepper/index.d.ts +3 -0
- package/dist/types/components/molecules/BrStepper/index.d.ts.map +1 -0
- package/dist/types/components/molecules/BrStepper/types.d.ts +65 -0
- package/dist/types/components/molecules/BrStepper/types.d.ts.map +1 -0
- package/dist/types/components/molecules/BrTabs/BrTab.vue.d.ts +23 -0
- package/dist/types/components/molecules/BrTabs/BrTab.vue.d.ts.map +1 -0
- package/dist/types/components/molecules/BrTabs/BrTabPanel.vue.d.ts +16 -0
- package/dist/types/components/molecules/BrTabs/BrTabPanel.vue.d.ts.map +1 -0
- package/dist/types/components/molecules/BrTabs/BrTabs.test.d.ts +2 -0
- package/dist/types/components/molecules/BrTabs/BrTabs.test.d.ts.map +1 -0
- package/dist/types/components/molecules/BrTabs/BrTabs.vue.d.ts +40 -0
- package/dist/types/components/molecules/BrTabs/BrTabs.vue.d.ts.map +1 -0
- package/dist/types/components/molecules/BrTabs/index.d.ts +5 -0
- package/dist/types/components/molecules/BrTabs/index.d.ts.map +1 -0
- package/dist/types/components/molecules/BrTabs/types.d.ts +116 -0
- package/dist/types/components/molecules/BrTabs/types.d.ts.map +1 -0
- package/dist/types/components/molecules/index.d.ts +8 -0
- package/dist/types/components/molecules/index.d.ts.map +1 -0
- package/dist/types/components/organisms/BrNavbar/BrNavbar.vue.d.ts +28 -0
- package/dist/types/components/organisms/BrNavbar/BrNavbar.vue.d.ts.map +1 -0
- package/dist/types/components/organisms/BrNavbar/index.d.ts +3 -0
- package/dist/types/components/organisms/BrNavbar/index.d.ts.map +1 -0
- package/dist/types/components/organisms/BrNavbar/types.d.ts +84 -0
- package/dist/types/components/organisms/BrNavbar/types.d.ts.map +1 -0
- package/dist/types/components/organisms/BrSidebar/BrSidebar.vue.d.ts +35 -0
- package/dist/types/components/organisms/BrSidebar/BrSidebar.vue.d.ts.map +1 -0
- package/dist/types/components/organisms/BrSidebar/index.d.ts +3 -0
- package/dist/types/components/organisms/BrSidebar/index.d.ts.map +1 -0
- package/dist/types/components/organisms/BrSidebar/types.d.ts +100 -0
- package/dist/types/components/organisms/BrSidebar/types.d.ts.map +1 -0
- package/dist/types/components/organisms/index.d.ts +3 -0
- package/dist/types/components/organisms/index.d.ts.map +1 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/plugin.d.ts +9 -0
- package/dist/types/plugin.d.ts.map +1 -0
- package/dist/types/types/index.d.ts +48 -0
- package/dist/types/types/index.d.ts.map +1 -0
- package/package.json +77 -0
- package/src/assets/icons/airplane.svg +7 -0
- package/src/assets/icons/anchor.svg +6 -0
- package/src/assets/icons/arrow-bottom-right-o.svg +9 -0
- package/src/assets/icons/arrow-bottom-right-r.svg +9 -0
- package/src/assets/icons/arrow-bottom-right.svg +7 -0
- package/src/assets/icons/arrow-down-o.svg +9 -0
- package/src/assets/icons/arrow-down-r.svg +9 -0
- package/src/assets/icons/arrow-down.svg +7 -0
- package/src/assets/icons/arrow-left-o.svg +9 -0
- package/src/assets/icons/arrow-left-r.svg +9 -0
- package/src/assets/icons/arrow-left.svg +7 -0
- package/src/assets/icons/arrow-long-up.svg +7 -0
- package/src/assets/icons/arrow-right-o.svg +9 -0
- package/src/assets/icons/arrow-right-r.svg +9 -0
- package/src/assets/icons/arrow-right.svg +7 -0
- package/src/assets/icons/arrow-top-left-o.svg +9 -0
- package/src/assets/icons/arrow-top-left-r.svg +9 -0
- package/src/assets/icons/arrow-top-left.svg +7 -0
- package/src/assets/icons/arrow-top-right-o.svg +9 -0
- package/src/assets/icons/arrow-top-right-r.svg +9 -0
- package/src/assets/icons/arrow-top-right.svg +7 -0
- package/src/assets/icons/arrow-up-o.svg +9 -0
- package/src/assets/icons/arrow-up-r.svg +9 -0
- package/src/assets/icons/arrow-up.svg +7 -0
- package/src/assets/icons/awards.svg +6 -0
- package/src/assets/icons/band-aid.svg +21 -0
- package/src/assets/icons/bee.svg +7 -0
- package/src/assets/icons/bitbucket.svg +7 -0
- package/src/assets/icons/block.svg +11 -0
- package/src/assets/icons/bowl.svg +6 -0
- package/src/assets/icons/boy.svg +14 -0
- package/src/assets/icons/briefcase.svg +9 -0
- package/src/assets/icons/browse.svg +13 -0
- package/src/assets/icons/brush.svg +6 -0
- package/src/assets/icons/calibrate.svg +11 -0
- package/src/assets/icons/cap.svg +9 -0
- package/src/assets/icons/card-clubs.svg +17 -0
- package/src/assets/icons/card-diamonds.svg +9 -0
- package/src/assets/icons/card-hearts.svg +11 -0
- package/src/assets/icons/card-spades.svg +11 -0
- package/src/assets/icons/check-o.svg +9 -0
- package/src/assets/icons/check-r.svg +9 -0
- package/src/assets/icons/check.svg +3 -0
- package/src/assets/icons/chevron-double-down-o.svg +14 -0
- package/src/assets/icons/chevron-double-down-r.svg +14 -0
- package/src/assets/icons/chevron-double-down.svg +12 -0
- package/src/assets/icons/chevron-double-left-o.svg +14 -0
- package/src/assets/icons/chevron-double-left-r.svg +14 -0
- package/src/assets/icons/chevron-double-left.svg +12 -0
- package/src/assets/icons/chevron-double-right-o.svg +14 -0
- package/src/assets/icons/chevron-double-right-r.svg +14 -0
- package/src/assets/icons/chevron-double-right.svg +12 -0
- package/src/assets/icons/pix.svg +7 -0
- package/src/assets/icons/push-chevron-left-o.svg +12 -0
- package/src/assets/icons/push-chevron-left-r.svg +12 -0
- package/src/assets/icons/push-chevron-left.svg +10 -0
- package/src/assets/icons/push-chevron-right-o.svg +12 -0
- package/src/assets/icons/push-chevron-right-r.svg +12 -0
- package/src/assets/icons/push-chevron-right.svg +10 -0
- package/src/assets/icons/push-chevron-up-o.svg +6 -0
- package/src/assets/icons/push-chevron-up-r.svg +6 -0
- package/src/assets/icons/push-chevron-up.svg +10 -0
- package/src/assets/icons/sync.svg +12 -0
- package/src/assets/icons/trending-down.svg +7 -0
- package/src/assets/icons/trending.svg +7 -0
- package/src/components/atoms/BrAvatar/BrAvatar.vue +154 -0
- package/src/components/atoms/BrAvatar/index.ts +2 -0
- package/src/components/atoms/BrAvatar/types.ts +43 -0
- package/src/components/atoms/BrBadge/BrBadge.test.ts +61 -0
- package/src/components/atoms/BrBadge/BrBadge.vue +125 -0
- package/src/components/atoms/BrBadge/index.ts +2 -0
- package/src/components/atoms/BrBadge/types.ts +22 -0
- package/src/components/atoms/BrButton/BrButton.test.ts +79 -0
- package/src/components/atoms/BrButton/BrButton.vue +291 -0
- package/src/components/atoms/BrButton/index.ts +2 -0
- package/src/components/atoms/BrButton/types.ts +44 -0
- package/src/components/atoms/BrCheckbox/BrCheckbox.test.ts +132 -0
- package/src/components/atoms/BrCheckbox/BrCheckbox.vue +198 -0
- package/src/components/atoms/BrCheckbox/BrCheckboxGroup.vue +92 -0
- package/src/components/atoms/BrCheckbox/index.ts +3 -0
- package/src/components/atoms/BrCheckbox/types.ts +102 -0
- package/src/components/atoms/BrImage/BrImage.vue +134 -0
- package/src/components/atoms/BrImage/index.ts +2 -0
- package/src/components/atoms/BrImage/types.ts +51 -0
- package/src/components/atoms/BrInput/BrInput.test.ts +98 -0
- package/src/components/atoms/BrInput/BrInput.vue +215 -0
- package/src/components/atoms/BrInput/index.ts +2 -0
- package/src/components/atoms/BrInput/types.ts +65 -0
- package/src/components/atoms/BrProgressbar/BrProgressbar.vue +204 -0
- package/src/components/atoms/BrProgressbar/index.ts +2 -0
- package/src/components/atoms/BrProgressbar/types.ts +64 -0
- package/src/components/atoms/BrRadio/BrRadio.vue +175 -0
- package/src/components/atoms/BrRadio/BrRadioGroup.vue +77 -0
- package/src/components/atoms/BrRadio/index.ts +3 -0
- package/src/components/atoms/BrRadio/types.ts +91 -0
- package/src/components/atoms/BrRating/BrRating.vue +234 -0
- package/src/components/atoms/BrRating/index.ts +2 -0
- package/src/components/atoms/BrRating/types.ts +60 -0
- package/src/components/atoms/BrSelect/BrSelect.vue +408 -0
- package/src/components/atoms/BrSelect/index.ts +2 -0
- package/src/components/atoms/BrSelect/types.ts +61 -0
- package/src/components/atoms/BrSpinner/BrSpinner.vue +125 -0
- package/src/components/atoms/BrSpinner/index.ts +2 -0
- package/src/components/atoms/BrSpinner/types.ts +22 -0
- package/src/components/atoms/BrSwitch/BrSwitch.test.ts +81 -0
- package/src/components/atoms/BrSwitch/BrSwitch.vue +181 -0
- package/src/components/atoms/BrSwitch/index.ts +2 -0
- package/src/components/atoms/BrSwitch/types.ts +15 -0
- package/src/components/atoms/BrTextarea/BrTextarea.vue +179 -0
- package/src/components/atoms/BrTextarea/index.ts +2 -0
- package/src/components/atoms/BrTextarea/types.ts +43 -0
- package/src/components/atoms/BrTitle/BrTitle.vue +154 -0
- package/src/components/atoms/BrTitle/index.ts +2 -0
- package/src/components/atoms/BrTitle/types.ts +47 -0
- package/src/components/atoms/BrVideo/BrVideo.vue +135 -0
- package/src/components/atoms/BrVideo/index.ts +2 -0
- package/src/components/atoms/BrVideo/types.ts +56 -0
- package/src/components/atoms/index.ts +20 -0
- package/src/components/index.ts +7 -0
- package/src/components/molecules/BrAccordion/BrAccordion.vue +112 -0
- package/src/components/molecules/BrAccordion/BrAccordionItem.vue +168 -0
- package/src/components/molecules/BrAccordion/index.ts +3 -0
- package/src/components/molecules/BrAccordion/types.ts +85 -0
- package/src/components/molecules/BrCalendar/BrCalendar.vue +553 -0
- package/src/components/molecules/BrCalendar/index.ts +2 -0
- package/src/components/molecules/BrCalendar/types.ts +80 -0
- package/src/components/molecules/BrCard/BrCard.vue +262 -0
- package/src/components/molecules/BrCard/index.ts +2 -0
- package/src/components/molecules/BrCard/types.ts +72 -0
- package/src/components/molecules/BrFormField/BrFormField.vue +241 -0
- package/src/components/molecules/BrFormField/index.ts +2 -0
- package/src/components/molecules/BrFormField/types.ts +64 -0
- package/src/components/molecules/BrModal/BrModal.test.ts +212 -0
- package/src/components/molecules/BrModal/BrModal.vue +404 -0
- package/src/components/molecules/BrModal/index.ts +2 -0
- package/src/components/molecules/BrModal/types.ts +57 -0
- package/src/components/molecules/BrStepper/BrStepper.vue +302 -0
- package/src/components/molecules/BrStepper/index.ts +2 -0
- package/src/components/molecules/BrStepper/types.ts +77 -0
- package/src/components/molecules/BrTabs/BrTab.vue +69 -0
- package/src/components/molecules/BrTabs/BrTabPanel.vue +36 -0
- package/src/components/molecules/BrTabs/BrTabs.test.ts +168 -0
- package/src/components/molecules/BrTabs/BrTabs.vue +319 -0
- package/src/components/molecules/BrTabs/index.ts +4 -0
- package/src/components/molecules/BrTabs/types.ts +139 -0
- package/src/components/molecules/index.ts +11 -0
- package/src/components/organisms/BrNavbar/BrNavbar.vue +424 -0
- package/src/components/organisms/BrNavbar/index.ts +2 -0
- package/src/components/organisms/BrNavbar/types.ts +101 -0
- package/src/components/organisms/BrSidebar/BrSidebar.vue +382 -0
- package/src/components/organisms/BrSidebar/index.ts +2 -0
- package/src/components/organisms/BrSidebar/types.ts +121 -0
- package/src/components/organisms/index.ts +6 -0
- package/src/index.ts +32 -0
- package/src/plugin.ts +61 -0
- package/src/styles/base/_animations.scss +187 -0
- package/src/styles/base/_reset.scss +109 -0
- package/src/styles/base/index.scss +6 -0
- package/src/styles/main.scss +9 -0
- package/src/styles/tokens/_colors.scss +185 -0
- package/src/styles/tokens/_spacing.scss +88 -0
- package/src/styles/tokens/_typography.scss +77 -0
- package/src/styles/tokens/index.scss +7 -0
- package/src/types/index.ts +125 -0
package/dist/braip-ui.js
ADDED
|
@@ -0,0 +1,2502 @@
|
|
|
1
|
+
import { defineComponent as C, computed as y, createElementBlock as s, openBlock as l, normalizeClass as $, createCommentVNode as c, createElementVNode as n, renderSlot as w, mergeModels as S, useModel as E, ref as z, onMounted as J, onUnmounted as se, createVNode as X, toDisplayString as g, withModifiers as le, Transition as Q, withCtx as A, withDirectives as Z, vModelText as fe, Fragment as L, renderList as F, createBlock as Y, resolveDynamicComponent as U, normalizeStyle as P, createTextVNode as H, watch as ee, Teleport as ve, inject as te, useId as he, provide as ae, reactive as oe, withKeys as re, useSlots as me, vShow as ne } from "vue";
|
|
2
|
+
const _e = ["type", "disabled"], ye = {
|
|
3
|
+
key: 0,
|
|
4
|
+
class: "br-button__loader"
|
|
5
|
+
}, ge = /* @__PURE__ */ C({
|
|
6
|
+
__name: "BrButton",
|
|
7
|
+
props: {
|
|
8
|
+
variant: { default: "primary" },
|
|
9
|
+
size: { default: "md" },
|
|
10
|
+
disabled: { type: Boolean, default: !1 },
|
|
11
|
+
loading: { type: Boolean, default: !1 },
|
|
12
|
+
block: { type: Boolean, default: !1 },
|
|
13
|
+
type: { default: "button" }
|
|
14
|
+
},
|
|
15
|
+
emits: ["click"],
|
|
16
|
+
setup(e, { emit: t }) {
|
|
17
|
+
const a = e, o = t, r = y(() => [
|
|
18
|
+
"br-button",
|
|
19
|
+
`br-button--${a.variant}`,
|
|
20
|
+
`br-button--${a.size}`,
|
|
21
|
+
{
|
|
22
|
+
"br-button--block": a.block,
|
|
23
|
+
"br-button--loading": a.loading,
|
|
24
|
+
"br-button--disabled": a.disabled || a.loading
|
|
25
|
+
}
|
|
26
|
+
]), h = y(() => a.disabled || a.loading);
|
|
27
|
+
function i(d) {
|
|
28
|
+
h.value || o("click", d);
|
|
29
|
+
}
|
|
30
|
+
return (d, b) => (l(), s("button", {
|
|
31
|
+
class: $(r.value),
|
|
32
|
+
type: e.type,
|
|
33
|
+
disabled: h.value,
|
|
34
|
+
onClick: i
|
|
35
|
+
}, [
|
|
36
|
+
e.loading ? (l(), s("span", ye, [...b[0] || (b[0] = [
|
|
37
|
+
n("svg", {
|
|
38
|
+
class: "br-button__spinner",
|
|
39
|
+
viewBox: "0 0 24 24",
|
|
40
|
+
fill: "none",
|
|
41
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
42
|
+
}, [
|
|
43
|
+
n("circle", {
|
|
44
|
+
cx: "12",
|
|
45
|
+
cy: "12",
|
|
46
|
+
r: "10",
|
|
47
|
+
stroke: "currentColor",
|
|
48
|
+
"stroke-width": "3",
|
|
49
|
+
"stroke-linecap": "round",
|
|
50
|
+
"stroke-dasharray": "31.416",
|
|
51
|
+
"stroke-dashoffset": "10"
|
|
52
|
+
})
|
|
53
|
+
], -1)
|
|
54
|
+
])])) : c("", !0),
|
|
55
|
+
n("span", {
|
|
56
|
+
class: $(["br-button__content", { "br-button__content--hidden": e.loading }])
|
|
57
|
+
}, [
|
|
58
|
+
w(d.$slots, "default", {}, void 0, !0)
|
|
59
|
+
], 2)
|
|
60
|
+
], 10, _e));
|
|
61
|
+
}
|
|
62
|
+
}), M = (e, t) => {
|
|
63
|
+
const a = e.__vccOpts || e;
|
|
64
|
+
for (const [o, r] of t)
|
|
65
|
+
a[o] = r;
|
|
66
|
+
return a;
|
|
67
|
+
}, pe = /* @__PURE__ */ M(ge, [["__scopeId", "data-v-c5e16fb5"]]), ke = ["type", "value", "placeholder", "disabled", "readonly", "min", "max", "maxlength", "autocomplete"], $e = /* @__PURE__ */ C({
|
|
68
|
+
__name: "BrInput",
|
|
69
|
+
props: /* @__PURE__ */ S({
|
|
70
|
+
type: { default: "text" },
|
|
71
|
+
placeholder: { default: "" },
|
|
72
|
+
disabled: { type: Boolean, default: !1 },
|
|
73
|
+
readonly: { type: Boolean, default: !1 },
|
|
74
|
+
error: { type: Boolean, default: !1 },
|
|
75
|
+
size: { default: "md" },
|
|
76
|
+
block: { type: Boolean, default: !0 },
|
|
77
|
+
min: {},
|
|
78
|
+
max: {},
|
|
79
|
+
maxLength: {},
|
|
80
|
+
autocomplete: {}
|
|
81
|
+
}, {
|
|
82
|
+
modelValue: {},
|
|
83
|
+
modelModifiers: {}
|
|
84
|
+
}),
|
|
85
|
+
emits: /* @__PURE__ */ S(["focus", "blur", "enter", "keydown"], ["update:modelValue"]),
|
|
86
|
+
setup(e, { expose: t, emit: a }) {
|
|
87
|
+
const o = e, r = E(e, "modelValue"), h = a, i = z(null), d = z(!1), b = y(() => [
|
|
88
|
+
"br-input",
|
|
89
|
+
`br-input--${o.size}`,
|
|
90
|
+
{
|
|
91
|
+
"br-input--block": o.block,
|
|
92
|
+
"br-input--error": o.error,
|
|
93
|
+
"br-input--disabled": o.disabled,
|
|
94
|
+
"br-input--focused": d.value
|
|
95
|
+
}
|
|
96
|
+
]);
|
|
97
|
+
function u(V) {
|
|
98
|
+
const x = V.target, O = o.type === "number" ? Number(x.value) : x.value;
|
|
99
|
+
if (o.type === "number" && o.min !== void 0 && Number(O) < o.min) {
|
|
100
|
+
r.value = o.min;
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
if (o.type === "number" && o.max !== void 0 && Number(O) > o.max) {
|
|
104
|
+
r.value = o.max;
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
r.value = O;
|
|
108
|
+
}
|
|
109
|
+
function _() {
|
|
110
|
+
d.value = !0, h("focus", r.value);
|
|
111
|
+
}
|
|
112
|
+
function f() {
|
|
113
|
+
d.value = !1, h("blur", r.value);
|
|
114
|
+
}
|
|
115
|
+
function m(V) {
|
|
116
|
+
h("keydown", V), V.key === "Enter" && h("enter", r.value);
|
|
117
|
+
}
|
|
118
|
+
function B() {
|
|
119
|
+
var V;
|
|
120
|
+
(V = i.value) == null || V.focus();
|
|
121
|
+
}
|
|
122
|
+
function D() {
|
|
123
|
+
var V;
|
|
124
|
+
(V = i.value) == null || V.blur();
|
|
125
|
+
}
|
|
126
|
+
return t({ focus: B, blur: D, inputRef: i }), (V, x) => (l(), s("input", {
|
|
127
|
+
ref_key: "inputRef",
|
|
128
|
+
ref: i,
|
|
129
|
+
class: $(b.value),
|
|
130
|
+
type: e.type,
|
|
131
|
+
value: r.value,
|
|
132
|
+
placeholder: e.placeholder,
|
|
133
|
+
disabled: e.disabled,
|
|
134
|
+
readonly: e.readonly,
|
|
135
|
+
min: e.min,
|
|
136
|
+
max: e.max,
|
|
137
|
+
maxlength: e.maxLength,
|
|
138
|
+
autocomplete: e.autocomplete,
|
|
139
|
+
onInput: u,
|
|
140
|
+
onFocus: _,
|
|
141
|
+
onBlur: f,
|
|
142
|
+
onKeydown: m
|
|
143
|
+
}, null, 42, ke));
|
|
144
|
+
}
|
|
145
|
+
}), Be = /* @__PURE__ */ M($e, [["__scopeId", "data-v-e0d0448e"]]), we = ["disabled"], xe = { class: "br-select__value" }, Ce = { class: "br-select__actions" }, Me = {
|
|
146
|
+
key: 0,
|
|
147
|
+
class: "br-select__dropdown"
|
|
148
|
+
}, ze = { class: "br-select__options" }, De = ["onClick", "onMouseenter"], Ve = {
|
|
149
|
+
key: 0,
|
|
150
|
+
class: "br-select__empty"
|
|
151
|
+
}, Le = /* @__PURE__ */ C({
|
|
152
|
+
__name: "BrSelect",
|
|
153
|
+
props: /* @__PURE__ */ S({
|
|
154
|
+
options: { default: () => [] },
|
|
155
|
+
placeholder: { default: "Selecione..." },
|
|
156
|
+
disabled: { type: Boolean, default: !1 },
|
|
157
|
+
error: { type: Boolean, default: !1 },
|
|
158
|
+
size: { default: "md" },
|
|
159
|
+
searchable: { type: Boolean, default: !1 },
|
|
160
|
+
clearable: { type: Boolean, default: !1 }
|
|
161
|
+
}, {
|
|
162
|
+
modelValue: {},
|
|
163
|
+
modelModifiers: {}
|
|
164
|
+
}),
|
|
165
|
+
emits: /* @__PURE__ */ S(["change", "open", "close"], ["update:modelValue"]),
|
|
166
|
+
setup(e, { emit: t }) {
|
|
167
|
+
const a = e, o = E(e, "modelValue"), r = t, h = z(null), i = z(!1), d = z(""), b = z(0), u = y(() => a.options.find((I) => I.id === o.value)), _ = y(() => {
|
|
168
|
+
if (!a.searchable || !d.value)
|
|
169
|
+
return a.options;
|
|
170
|
+
const I = d.value.toLowerCase();
|
|
171
|
+
return a.options.filter((R) => R.text.toLowerCase().includes(I));
|
|
172
|
+
}), f = y(() => [
|
|
173
|
+
"br-select",
|
|
174
|
+
`br-select--${a.size}`,
|
|
175
|
+
{
|
|
176
|
+
"br-select--open": i.value,
|
|
177
|
+
"br-select--error": a.error,
|
|
178
|
+
"br-select--disabled": a.disabled,
|
|
179
|
+
"br-select--has-value": o.value !== null && o.value !== void 0
|
|
180
|
+
}
|
|
181
|
+
]);
|
|
182
|
+
function m() {
|
|
183
|
+
a.disabled || (i.value = !i.value, i.value ? (r("open"), b.value = 0) : (r("close"), d.value = ""));
|
|
184
|
+
}
|
|
185
|
+
function B(I) {
|
|
186
|
+
o.value = I.id, r("change", I.id), D();
|
|
187
|
+
}
|
|
188
|
+
function D() {
|
|
189
|
+
i.value = !1, d.value = "", r("close");
|
|
190
|
+
}
|
|
191
|
+
function V() {
|
|
192
|
+
o.value = null, r("change", null);
|
|
193
|
+
}
|
|
194
|
+
function x(I) {
|
|
195
|
+
if (!i.value) {
|
|
196
|
+
(I.key === "Enter" || I.key === " " || I.key === "ArrowDown") && (I.preventDefault(), m());
|
|
197
|
+
return;
|
|
198
|
+
}
|
|
199
|
+
switch (I.key) {
|
|
200
|
+
case "ArrowDown":
|
|
201
|
+
I.preventDefault(), b.value = Math.min(b.value + 1, _.value.length - 1);
|
|
202
|
+
break;
|
|
203
|
+
case "ArrowUp":
|
|
204
|
+
I.preventDefault(), b.value = Math.max(b.value - 1, 0);
|
|
205
|
+
break;
|
|
206
|
+
case "Enter":
|
|
207
|
+
I.preventDefault(), _.value[b.value] && B(_.value[b.value]);
|
|
208
|
+
break;
|
|
209
|
+
case "Escape":
|
|
210
|
+
D();
|
|
211
|
+
break;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
function O(I) {
|
|
215
|
+
h.value && !h.value.contains(I.target) && D();
|
|
216
|
+
}
|
|
217
|
+
return J(() => {
|
|
218
|
+
document.addEventListener("click", O);
|
|
219
|
+
}), se(() => {
|
|
220
|
+
document.removeEventListener("click", O);
|
|
221
|
+
}), (I, R) => {
|
|
222
|
+
var K;
|
|
223
|
+
return l(), s("div", {
|
|
224
|
+
ref_key: "selectRef",
|
|
225
|
+
ref: h,
|
|
226
|
+
class: $(f.value),
|
|
227
|
+
onKeydown: x
|
|
228
|
+
}, [
|
|
229
|
+
n("button", {
|
|
230
|
+
type: "button",
|
|
231
|
+
class: "br-select__trigger",
|
|
232
|
+
disabled: e.disabled,
|
|
233
|
+
onClick: m
|
|
234
|
+
}, [
|
|
235
|
+
n("span", xe, g(((K = u.value) == null ? void 0 : K.text) || e.placeholder), 1),
|
|
236
|
+
n("span", Ce, [
|
|
237
|
+
e.clearable && o.value !== null && o.value !== void 0 ? (l(), s("span", {
|
|
238
|
+
key: 0,
|
|
239
|
+
class: "br-select__clear",
|
|
240
|
+
onClick: le(V, ["stop"])
|
|
241
|
+
}, [...R[2] || (R[2] = [
|
|
242
|
+
n("svg", {
|
|
243
|
+
viewBox: "0 0 24 24",
|
|
244
|
+
fill: "currentColor"
|
|
245
|
+
}, [
|
|
246
|
+
n("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" })
|
|
247
|
+
], -1)
|
|
248
|
+
])])) : c("", !0),
|
|
249
|
+
R[3] || (R[3] = n("span", { class: "br-select__arrow" }, [
|
|
250
|
+
n("svg", {
|
|
251
|
+
viewBox: "0 0 24 24",
|
|
252
|
+
fill: "currentColor"
|
|
253
|
+
}, [
|
|
254
|
+
n("path", { d: "M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6z" })
|
|
255
|
+
])
|
|
256
|
+
], -1))
|
|
257
|
+
])
|
|
258
|
+
], 8, we),
|
|
259
|
+
X(Q, { name: "br-select-dropdown" }, {
|
|
260
|
+
default: A(() => [
|
|
261
|
+
i.value ? (l(), s("div", Me, [
|
|
262
|
+
e.searchable ? Z((l(), s("input", {
|
|
263
|
+
key: 0,
|
|
264
|
+
"onUpdate:modelValue": R[0] || (R[0] = (p) => d.value = p),
|
|
265
|
+
type: "text",
|
|
266
|
+
class: "br-select__search",
|
|
267
|
+
placeholder: "Buscar...",
|
|
268
|
+
onClick: R[1] || (R[1] = le(() => {
|
|
269
|
+
}, ["stop"]))
|
|
270
|
+
}, null, 512)), [
|
|
271
|
+
[fe, d.value]
|
|
272
|
+
]) : c("", !0),
|
|
273
|
+
n("ul", ze, [
|
|
274
|
+
(l(!0), s(L, null, F(_.value, (p, v) => (l(), s("li", {
|
|
275
|
+
key: p.id,
|
|
276
|
+
class: $(["br-select__option", {
|
|
277
|
+
"br-select__option--selected": p.id === o.value,
|
|
278
|
+
"br-select__option--highlighted": v === b.value
|
|
279
|
+
}]),
|
|
280
|
+
onClick: (k) => B(p),
|
|
281
|
+
onMouseenter: (k) => b.value = v
|
|
282
|
+
}, g(p.text), 43, De))), 128)),
|
|
283
|
+
_.value.length === 0 ? (l(), s("li", Ve, " Nenhum resultado encontrado ")) : c("", !0)
|
|
284
|
+
])
|
|
285
|
+
])) : c("", !0)
|
|
286
|
+
]),
|
|
287
|
+
_: 1
|
|
288
|
+
})
|
|
289
|
+
], 34);
|
|
290
|
+
};
|
|
291
|
+
}
|
|
292
|
+
}), Ie = /* @__PURE__ */ M(Le, [["__scopeId", "data-v-f27aca2e"]]), Se = /* @__PURE__ */ C({
|
|
293
|
+
__name: "BrBadge",
|
|
294
|
+
props: {
|
|
295
|
+
variant: { default: "default" },
|
|
296
|
+
size: { default: "md" },
|
|
297
|
+
rounded: { type: Boolean, default: !1 }
|
|
298
|
+
},
|
|
299
|
+
setup(e) {
|
|
300
|
+
const t = e, a = y(() => [
|
|
301
|
+
"br-badge",
|
|
302
|
+
`br-badge--${t.variant}`,
|
|
303
|
+
`br-badge--${t.size}`,
|
|
304
|
+
{
|
|
305
|
+
"br-badge--rounded": t.rounded
|
|
306
|
+
}
|
|
307
|
+
]);
|
|
308
|
+
return (o, r) => (l(), s("span", {
|
|
309
|
+
class: $(a.value)
|
|
310
|
+
}, [
|
|
311
|
+
w(o.$slots, "default", {}, void 0, !0)
|
|
312
|
+
], 2));
|
|
313
|
+
}
|
|
314
|
+
}), Te = /* @__PURE__ */ M(Se, [["__scopeId", "data-v-2a00a96a"]]), Fe = /* @__PURE__ */ C({
|
|
315
|
+
__name: "BrTitle",
|
|
316
|
+
props: {
|
|
317
|
+
tag: { default: "h1" },
|
|
318
|
+
level: { default: "4" },
|
|
319
|
+
weight: { default: "semibold" },
|
|
320
|
+
color: { default: "var(--br-dark-0)" },
|
|
321
|
+
align: { default: "left" },
|
|
322
|
+
truncate: { type: Boolean, default: !1 },
|
|
323
|
+
maxLines: { default: void 0 }
|
|
324
|
+
},
|
|
325
|
+
setup(e) {
|
|
326
|
+
const t = e, a = y(() => [
|
|
327
|
+
"br-title",
|
|
328
|
+
`br-title--level-${t.level}`,
|
|
329
|
+
`br-title--${t.weight}`,
|
|
330
|
+
`br-title--${t.align}`,
|
|
331
|
+
{
|
|
332
|
+
"br-title--truncate": t.truncate,
|
|
333
|
+
"br-title--clamp": t.maxLines
|
|
334
|
+
}
|
|
335
|
+
]), o = y(() => ({
|
|
336
|
+
color: t.color,
|
|
337
|
+
"--max-lines": t.maxLines
|
|
338
|
+
}));
|
|
339
|
+
return (r, h) => (l(), Y(U(e.tag), {
|
|
340
|
+
class: $(a.value),
|
|
341
|
+
style: P(o.value)
|
|
342
|
+
}, {
|
|
343
|
+
default: A(() => [
|
|
344
|
+
w(r.$slots, "default", {}, void 0, !0)
|
|
345
|
+
]),
|
|
346
|
+
_: 3
|
|
347
|
+
}, 8, ["class", "style"]));
|
|
348
|
+
}
|
|
349
|
+
}), Pe = /* @__PURE__ */ M(Fe, [["__scopeId", "data-v-2d0ba171"]]), Ee = {
|
|
350
|
+
key: 0,
|
|
351
|
+
class: "br-spinner__circle"
|
|
352
|
+
}, Oe = {
|
|
353
|
+
key: 1,
|
|
354
|
+
class: "br-spinner__check",
|
|
355
|
+
viewBox: "0 0 24 24",
|
|
356
|
+
fill: "none",
|
|
357
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
358
|
+
}, Re = {
|
|
359
|
+
key: 2,
|
|
360
|
+
class: "br-spinner__error",
|
|
361
|
+
viewBox: "0 0 24 24",
|
|
362
|
+
fill: "none",
|
|
363
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
364
|
+
}, He = /* @__PURE__ */ C({
|
|
365
|
+
__name: "BrSpinner",
|
|
366
|
+
props: {
|
|
367
|
+
size: { default: "md" },
|
|
368
|
+
color: { default: "var(--br-primary-600)" },
|
|
369
|
+
status: { default: "loading" }
|
|
370
|
+
},
|
|
371
|
+
setup(e) {
|
|
372
|
+
const t = e, a = {
|
|
373
|
+
sm: 16,
|
|
374
|
+
md: 24,
|
|
375
|
+
lg: 32,
|
|
376
|
+
xl: 48
|
|
377
|
+
}, o = y(() => a[t.size]), r = y(() => ({
|
|
378
|
+
"--spinner-size": `${o.value}px`,
|
|
379
|
+
"--spinner-color": t.color
|
|
380
|
+
}));
|
|
381
|
+
return (h, i) => (l(), s("div", {
|
|
382
|
+
class: "br-spinner",
|
|
383
|
+
style: P(r.value)
|
|
384
|
+
}, [
|
|
385
|
+
e.status === "loading" ? (l(), s("span", Ee)) : e.status === "success" ? (l(), s("svg", Oe, [...i[0] || (i[0] = [
|
|
386
|
+
n("path", {
|
|
387
|
+
d: "M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z",
|
|
388
|
+
fill: "currentColor"
|
|
389
|
+
}, null, -1)
|
|
390
|
+
])])) : e.status === "error" ? (l(), s("svg", Re, [...i[1] || (i[1] = [
|
|
391
|
+
n("path", {
|
|
392
|
+
d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",
|
|
393
|
+
fill: "currentColor"
|
|
394
|
+
}, null, -1)
|
|
395
|
+
])])) : c("", !0)
|
|
396
|
+
], 4));
|
|
397
|
+
}
|
|
398
|
+
}), Ne = /* @__PURE__ */ M(He, [["__scopeId", "data-v-e1392f7e"]]), Ae = ["aria-checked", "disabled"], Ye = /* @__PURE__ */ C({
|
|
399
|
+
__name: "BrSwitch",
|
|
400
|
+
props: /* @__PURE__ */ S({
|
|
401
|
+
size: { default: "md" },
|
|
402
|
+
disabled: { type: Boolean, default: !1 }
|
|
403
|
+
}, {
|
|
404
|
+
modelValue: { type: Boolean, default: !1 },
|
|
405
|
+
modelModifiers: {}
|
|
406
|
+
}),
|
|
407
|
+
emits: ["update:modelValue"],
|
|
408
|
+
setup(e) {
|
|
409
|
+
const t = e, a = E(e, "modelValue"), o = y(() => [
|
|
410
|
+
"br-switch",
|
|
411
|
+
`br-switch--${t.size}`,
|
|
412
|
+
{
|
|
413
|
+
"br-switch--checked": a.value,
|
|
414
|
+
"br-switch--disabled": t.disabled
|
|
415
|
+
}
|
|
416
|
+
]);
|
|
417
|
+
function r() {
|
|
418
|
+
t.disabled || (a.value = !a.value);
|
|
419
|
+
}
|
|
420
|
+
return (h, i) => (l(), s("button", {
|
|
421
|
+
type: "button",
|
|
422
|
+
role: "switch",
|
|
423
|
+
class: $(o.value),
|
|
424
|
+
"aria-checked": a.value,
|
|
425
|
+
disabled: e.disabled,
|
|
426
|
+
onClick: r
|
|
427
|
+
}, [...i[0] || (i[0] = [
|
|
428
|
+
n("span", { class: "br-switch__track" }, [
|
|
429
|
+
n("span", { class: "br-switch__thumb" })
|
|
430
|
+
], -1)
|
|
431
|
+
])], 10, Ae));
|
|
432
|
+
}
|
|
433
|
+
}), We = /* @__PURE__ */ M(Ye, [["__scopeId", "data-v-405d5e3b"]]), je = { class: "br-textarea-wrapper" }, Ue = ["value", "placeholder", "disabled", "readonly", "rows", "maxlength"], Ke = {
|
|
434
|
+
key: 0,
|
|
435
|
+
class: "br-textarea__counter"
|
|
436
|
+
}, qe = /* @__PURE__ */ C({
|
|
437
|
+
__name: "BrTextarea",
|
|
438
|
+
props: /* @__PURE__ */ S({
|
|
439
|
+
placeholder: { default: "" },
|
|
440
|
+
disabled: { type: Boolean, default: !1 },
|
|
441
|
+
readonly: { type: Boolean, default: !1 },
|
|
442
|
+
error: { type: Boolean, default: !1 },
|
|
443
|
+
rows: { default: 4 },
|
|
444
|
+
resize: { default: "vertical" },
|
|
445
|
+
maxLength: { default: void 0 }
|
|
446
|
+
}, {
|
|
447
|
+
modelValue: { default: "" },
|
|
448
|
+
modelModifiers: {}
|
|
449
|
+
}),
|
|
450
|
+
emits: /* @__PURE__ */ S(["focus", "blur"], ["update:modelValue"]),
|
|
451
|
+
setup(e, { expose: t, emit: a }) {
|
|
452
|
+
const o = e, r = E(e, "modelValue"), h = a, i = z(null), d = z(!1), b = y(() => [
|
|
453
|
+
"br-textarea",
|
|
454
|
+
{
|
|
455
|
+
"br-textarea--error": o.error,
|
|
456
|
+
"br-textarea--disabled": o.disabled,
|
|
457
|
+
"br-textarea--focused": d.value
|
|
458
|
+
}
|
|
459
|
+
]), u = y(() => ({
|
|
460
|
+
resize: o.resize
|
|
461
|
+
})), _ = y(() => {
|
|
462
|
+
var x;
|
|
463
|
+
return ((x = r.value) == null ? void 0 : x.length) || 0;
|
|
464
|
+
});
|
|
465
|
+
function f(x) {
|
|
466
|
+
const O = x.target;
|
|
467
|
+
r.value = O.value;
|
|
468
|
+
}
|
|
469
|
+
function m() {
|
|
470
|
+
d.value = !0, h("focus", r.value);
|
|
471
|
+
}
|
|
472
|
+
function B() {
|
|
473
|
+
d.value = !1, h("blur", r.value);
|
|
474
|
+
}
|
|
475
|
+
function D() {
|
|
476
|
+
var x;
|
|
477
|
+
(x = i.value) == null || x.focus();
|
|
478
|
+
}
|
|
479
|
+
function V() {
|
|
480
|
+
var x;
|
|
481
|
+
(x = i.value) == null || x.blur();
|
|
482
|
+
}
|
|
483
|
+
return t({ focus: D, blur: V, textareaRef: i }), (x, O) => (l(), s("div", je, [
|
|
484
|
+
n("textarea", {
|
|
485
|
+
ref_key: "textareaRef",
|
|
486
|
+
ref: i,
|
|
487
|
+
class: $(b.value),
|
|
488
|
+
style: P(u.value),
|
|
489
|
+
value: r.value,
|
|
490
|
+
placeholder: e.placeholder,
|
|
491
|
+
disabled: e.disabled,
|
|
492
|
+
readonly: e.readonly,
|
|
493
|
+
rows: e.rows,
|
|
494
|
+
maxlength: e.maxLength,
|
|
495
|
+
onInput: f,
|
|
496
|
+
onFocus: m,
|
|
497
|
+
onBlur: B
|
|
498
|
+
}, null, 46, Ue),
|
|
499
|
+
e.maxLength ? (l(), s("div", Ke, g(_.value) + "/" + g(e.maxLength), 1)) : c("", !0)
|
|
500
|
+
]));
|
|
501
|
+
}
|
|
502
|
+
}), Ge = /* @__PURE__ */ M(qe, [["__scopeId", "data-v-cf07f7bb"]]), Xe = ["src", "alt"], Qe = {
|
|
503
|
+
key: 1,
|
|
504
|
+
class: "br-avatar__initials"
|
|
505
|
+
}, Je = /* @__PURE__ */ C({
|
|
506
|
+
__name: "BrAvatar",
|
|
507
|
+
props: {
|
|
508
|
+
src: {},
|
|
509
|
+
alt: {},
|
|
510
|
+
initials: {},
|
|
511
|
+
size: { default: "md" },
|
|
512
|
+
shape: { default: "circle" },
|
|
513
|
+
showStatus: { type: Boolean, default: !1 },
|
|
514
|
+
status: { default: "offline" }
|
|
515
|
+
},
|
|
516
|
+
setup(e) {
|
|
517
|
+
const t = e, a = z(!1), o = y(() => [
|
|
518
|
+
"br-avatar",
|
|
519
|
+
`br-avatar--${t.size}`,
|
|
520
|
+
`br-avatar--${t.shape}`
|
|
521
|
+
]), r = y(() => {
|
|
522
|
+
if (t.initials) return t.initials.slice(0, 2).toUpperCase();
|
|
523
|
+
if (t.alt) {
|
|
524
|
+
const d = t.alt.split(" ");
|
|
525
|
+
return d.length >= 2 ? (d[0][0] + d[1][0]).toUpperCase() : t.alt.slice(0, 2).toUpperCase();
|
|
526
|
+
}
|
|
527
|
+
return "?";
|
|
528
|
+
}), h = y(() => t.src && !a.value);
|
|
529
|
+
function i() {
|
|
530
|
+
a.value = !0;
|
|
531
|
+
}
|
|
532
|
+
return (d, b) => (l(), s("div", {
|
|
533
|
+
class: $(o.value)
|
|
534
|
+
}, [
|
|
535
|
+
h.value ? (l(), s("img", {
|
|
536
|
+
key: 0,
|
|
537
|
+
src: e.src,
|
|
538
|
+
alt: e.alt,
|
|
539
|
+
class: "br-avatar__image",
|
|
540
|
+
onError: i
|
|
541
|
+
}, null, 40, Xe)) : (l(), s("span", Qe, g(r.value), 1)),
|
|
542
|
+
e.showStatus ? (l(), s("span", {
|
|
543
|
+
key: 2,
|
|
544
|
+
class: $(["br-avatar__status", `br-avatar__status--${e.status}`])
|
|
545
|
+
}, null, 2)) : c("", !0)
|
|
546
|
+
], 2));
|
|
547
|
+
}
|
|
548
|
+
}), Ze = /* @__PURE__ */ M(Je, [["__scopeId", "data-v-8fc21f0d"]]), et = {
|
|
549
|
+
key: 0,
|
|
550
|
+
class: "br-image__placeholder"
|
|
551
|
+
}, tt = ["src", "alt", "loading"], at = /* @__PURE__ */ C({
|
|
552
|
+
__name: "BrImage",
|
|
553
|
+
props: {
|
|
554
|
+
src: {},
|
|
555
|
+
alt: {},
|
|
556
|
+
width: {},
|
|
557
|
+
height: {},
|
|
558
|
+
fit: { default: "cover" },
|
|
559
|
+
lazy: { type: Boolean, default: !0 },
|
|
560
|
+
showPlaceholder: { type: Boolean, default: !0 },
|
|
561
|
+
rounded: { type: [Boolean, String], default: !1 },
|
|
562
|
+
fallback: {}
|
|
563
|
+
},
|
|
564
|
+
setup(e) {
|
|
565
|
+
const t = e, a = z(!1), o = z(!1), r = z(null), h = y(() => [
|
|
566
|
+
"br-image",
|
|
567
|
+
{
|
|
568
|
+
"br-image--loading": !a.value && t.showPlaceholder,
|
|
569
|
+
"br-image--error": o.value,
|
|
570
|
+
"br-image--rounded": t.rounded === !0,
|
|
571
|
+
[`br-image--rounded-${t.rounded}`]: typeof t.rounded == "string"
|
|
572
|
+
}
|
|
573
|
+
]), i = y(() => ({
|
|
574
|
+
width: typeof t.width == "number" ? `${t.width}px` : t.width,
|
|
575
|
+
height: typeof t.height == "number" ? `${t.height}px` : t.height,
|
|
576
|
+
objectFit: t.fit
|
|
577
|
+
})), d = y(() => o.value && t.fallback ? t.fallback : t.src);
|
|
578
|
+
function b() {
|
|
579
|
+
a.value = !0;
|
|
580
|
+
}
|
|
581
|
+
function u() {
|
|
582
|
+
o.value = !0, t.fallback || (a.value = !0);
|
|
583
|
+
}
|
|
584
|
+
return J(() => {
|
|
585
|
+
!t.lazy && r.value && (r.value.loading = "eager");
|
|
586
|
+
}), (_, f) => (l(), s("div", {
|
|
587
|
+
class: $(h.value),
|
|
588
|
+
style: P({ width: i.value.width, height: i.value.height })
|
|
589
|
+
}, [
|
|
590
|
+
!a.value && e.showPlaceholder ? (l(), s("div", et, [...f[0] || (f[0] = [
|
|
591
|
+
n("svg", {
|
|
592
|
+
viewBox: "0 0 24 24",
|
|
593
|
+
fill: "currentColor"
|
|
594
|
+
}, [
|
|
595
|
+
n("path", { d: "M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z" })
|
|
596
|
+
], -1)
|
|
597
|
+
])])) : c("", !0),
|
|
598
|
+
n("img", {
|
|
599
|
+
ref_key: "imageRef",
|
|
600
|
+
ref: r,
|
|
601
|
+
src: d.value,
|
|
602
|
+
alt: e.alt,
|
|
603
|
+
loading: e.lazy ? "lazy" : "eager",
|
|
604
|
+
class: "br-image__img",
|
|
605
|
+
style: P(i.value),
|
|
606
|
+
onLoad: b,
|
|
607
|
+
onError: u
|
|
608
|
+
}, null, 44, tt)
|
|
609
|
+
], 6));
|
|
610
|
+
}
|
|
611
|
+
}), lt = /* @__PURE__ */ M(at, [["__scopeId", "data-v-05588dbe"]]), st = ["src", "poster", "autoplay", "loop", "muted", "controls", "preload"], ot = /* @__PURE__ */ C({
|
|
612
|
+
__name: "BrVideo",
|
|
613
|
+
props: {
|
|
614
|
+
src: {},
|
|
615
|
+
poster: {},
|
|
616
|
+
width: {},
|
|
617
|
+
height: {},
|
|
618
|
+
autoplay: { type: Boolean, default: !1 },
|
|
619
|
+
loop: { type: Boolean, default: !1 },
|
|
620
|
+
muted: { type: Boolean, default: !1 },
|
|
621
|
+
controls: { type: Boolean, default: !0 },
|
|
622
|
+
preload: { default: "metadata" },
|
|
623
|
+
rounded: { type: [Boolean, String], default: !1 }
|
|
624
|
+
},
|
|
625
|
+
emits: ["play", "pause", "ended", "error"],
|
|
626
|
+
setup(e, { expose: t, emit: a }) {
|
|
627
|
+
const o = e, r = a, h = z(null), i = z(!1), d = y(() => [
|
|
628
|
+
"br-video",
|
|
629
|
+
{
|
|
630
|
+
"br-video--rounded": o.rounded === !0,
|
|
631
|
+
[`br-video--rounded-${o.rounded}`]: typeof o.rounded == "string"
|
|
632
|
+
}
|
|
633
|
+
]), b = y(() => ({
|
|
634
|
+
width: typeof o.width == "number" ? `${o.width}px` : o.width,
|
|
635
|
+
height: typeof o.height == "number" ? `${o.height}px` : o.height
|
|
636
|
+
}));
|
|
637
|
+
function u() {
|
|
638
|
+
var x;
|
|
639
|
+
(x = h.value) == null || x.play();
|
|
640
|
+
}
|
|
641
|
+
function _() {
|
|
642
|
+
var x;
|
|
643
|
+
(x = h.value) == null || x.pause();
|
|
644
|
+
}
|
|
645
|
+
function f() {
|
|
646
|
+
i.value ? _() : u();
|
|
647
|
+
}
|
|
648
|
+
function m() {
|
|
649
|
+
i.value = !0, r("play");
|
|
650
|
+
}
|
|
651
|
+
function B() {
|
|
652
|
+
i.value = !1, r("pause");
|
|
653
|
+
}
|
|
654
|
+
function D() {
|
|
655
|
+
i.value = !1, r("ended");
|
|
656
|
+
}
|
|
657
|
+
function V(x) {
|
|
658
|
+
r("error", x);
|
|
659
|
+
}
|
|
660
|
+
return t({
|
|
661
|
+
play: u,
|
|
662
|
+
pause: _,
|
|
663
|
+
toggle: f,
|
|
664
|
+
videoRef: h
|
|
665
|
+
}), (x, O) => (l(), s("div", {
|
|
666
|
+
class: $(d.value),
|
|
667
|
+
style: P(b.value)
|
|
668
|
+
}, [
|
|
669
|
+
n("video", {
|
|
670
|
+
ref_key: "videoRef",
|
|
671
|
+
ref: h,
|
|
672
|
+
src: e.src,
|
|
673
|
+
poster: e.poster,
|
|
674
|
+
autoplay: e.autoplay,
|
|
675
|
+
loop: e.loop,
|
|
676
|
+
muted: e.muted,
|
|
677
|
+
controls: e.controls,
|
|
678
|
+
preload: e.preload,
|
|
679
|
+
class: "br-video__player",
|
|
680
|
+
onPlay: m,
|
|
681
|
+
onPause: B,
|
|
682
|
+
onEnded: D,
|
|
683
|
+
onError: V
|
|
684
|
+
}, [
|
|
685
|
+
w(x.$slots, "default", {}, void 0, !0)
|
|
686
|
+
], 40, st)
|
|
687
|
+
], 6));
|
|
688
|
+
}
|
|
689
|
+
}), rt = /* @__PURE__ */ M(ot, [["__scopeId", "data-v-3c275265"]]), nt = ["for"], it = ["id", "name", "value", "checked", "disabled"], dt = {
|
|
690
|
+
key: 0,
|
|
691
|
+
class: "br-radio__label"
|
|
692
|
+
}, ut = {
|
|
693
|
+
key: 1,
|
|
694
|
+
class: "br-radio__helper"
|
|
695
|
+
}, ct = /* @__PURE__ */ C({
|
|
696
|
+
__name: "BrRadio",
|
|
697
|
+
props: /* @__PURE__ */ S({
|
|
698
|
+
value: { type: [String, Number, Boolean] },
|
|
699
|
+
label: {},
|
|
700
|
+
name: {},
|
|
701
|
+
size: { default: "md" },
|
|
702
|
+
disabled: { type: Boolean, default: !1 },
|
|
703
|
+
error: { type: Boolean, default: !1 },
|
|
704
|
+
helperText: {}
|
|
705
|
+
}, {
|
|
706
|
+
modelValue: { type: [String, Number, Boolean] },
|
|
707
|
+
modelModifiers: {}
|
|
708
|
+
}),
|
|
709
|
+
emits: ["update:modelValue"],
|
|
710
|
+
setup(e) {
|
|
711
|
+
const t = e, a = E(e, "modelValue"), o = y(() => [
|
|
712
|
+
"br-radio",
|
|
713
|
+
`br-radio--${t.size}`,
|
|
714
|
+
{
|
|
715
|
+
"br-radio--disabled": t.disabled,
|
|
716
|
+
"br-radio--error": t.error,
|
|
717
|
+
"br-radio--checked": a.value === t.value
|
|
718
|
+
}
|
|
719
|
+
]), r = y(() => `radio-${t.name}-${t.value}`);
|
|
720
|
+
function h() {
|
|
721
|
+
t.disabled || (a.value = t.value);
|
|
722
|
+
}
|
|
723
|
+
return (i, d) => (l(), s("label", {
|
|
724
|
+
class: $(o.value),
|
|
725
|
+
for: r.value
|
|
726
|
+
}, [
|
|
727
|
+
n("input", {
|
|
728
|
+
id: r.value,
|
|
729
|
+
type: "radio",
|
|
730
|
+
name: e.name,
|
|
731
|
+
value: e.value,
|
|
732
|
+
checked: a.value === e.value,
|
|
733
|
+
disabled: e.disabled,
|
|
734
|
+
class: "br-radio__input",
|
|
735
|
+
onChange: h
|
|
736
|
+
}, null, 40, it),
|
|
737
|
+
d[0] || (d[0] = n("span", { class: "br-radio__control" }, [
|
|
738
|
+
n("span", { class: "br-radio__dot" })
|
|
739
|
+
], -1)),
|
|
740
|
+
e.label || i.$slots.default ? (l(), s("span", dt, [
|
|
741
|
+
w(i.$slots, "default", {}, () => [
|
|
742
|
+
H(g(e.label), 1)
|
|
743
|
+
], !0)
|
|
744
|
+
])) : c("", !0),
|
|
745
|
+
e.helperText ? (l(), s("span", ut, g(e.helperText), 1)) : c("", !0)
|
|
746
|
+
], 10, nt));
|
|
747
|
+
}
|
|
748
|
+
}), ie = /* @__PURE__ */ M(ct, [["__scopeId", "data-v-8a6221be"]]), bt = ["aria-label"], ft = {
|
|
749
|
+
key: 0,
|
|
750
|
+
class: "br-radio-group__label"
|
|
751
|
+
}, vt = { class: "br-radio-group__options" }, ht = {
|
|
752
|
+
key: 1,
|
|
753
|
+
class: "br-radio-group__error"
|
|
754
|
+
}, mt = /* @__PURE__ */ C({
|
|
755
|
+
__name: "BrRadioGroup",
|
|
756
|
+
props: /* @__PURE__ */ S({
|
|
757
|
+
name: {},
|
|
758
|
+
label: {},
|
|
759
|
+
options: {},
|
|
760
|
+
direction: { default: "vertical" },
|
|
761
|
+
size: { default: "md" },
|
|
762
|
+
disabled: { type: Boolean, default: !1 },
|
|
763
|
+
error: { type: Boolean, default: !1 },
|
|
764
|
+
errorMessage: {}
|
|
765
|
+
}, {
|
|
766
|
+
modelValue: { type: [String, Number, Boolean] },
|
|
767
|
+
modelModifiers: {}
|
|
768
|
+
}),
|
|
769
|
+
emits: ["update:modelValue"],
|
|
770
|
+
setup(e) {
|
|
771
|
+
const t = e, a = E(e, "modelValue"), o = y(() => [
|
|
772
|
+
"br-radio-group",
|
|
773
|
+
`br-radio-group--${t.direction}`,
|
|
774
|
+
{
|
|
775
|
+
"br-radio-group--error": t.error
|
|
776
|
+
}
|
|
777
|
+
]);
|
|
778
|
+
return (r, h) => (l(), s("div", {
|
|
779
|
+
class: $(o.value),
|
|
780
|
+
role: "radiogroup",
|
|
781
|
+
"aria-label": e.label
|
|
782
|
+
}, [
|
|
783
|
+
e.label ? (l(), s("span", ft, g(e.label), 1)) : c("", !0),
|
|
784
|
+
n("div", vt, [
|
|
785
|
+
(l(!0), s(L, null, F(e.options, (i) => (l(), Y(ie, {
|
|
786
|
+
key: String(i.value),
|
|
787
|
+
modelValue: a.value,
|
|
788
|
+
"onUpdate:modelValue": h[0] || (h[0] = (d) => a.value = d),
|
|
789
|
+
value: i.value,
|
|
790
|
+
label: i.label,
|
|
791
|
+
name: e.name,
|
|
792
|
+
size: e.size,
|
|
793
|
+
disabled: e.disabled || i.disabled,
|
|
794
|
+
error: e.error
|
|
795
|
+
}, null, 8, ["modelValue", "value", "label", "name", "size", "disabled", "error"]))), 128))
|
|
796
|
+
]),
|
|
797
|
+
e.error && e.errorMessage ? (l(), s("span", ht, g(e.errorMessage), 1)) : c("", !0)
|
|
798
|
+
], 10, bt));
|
|
799
|
+
}
|
|
800
|
+
}), _t = /* @__PURE__ */ M(mt, [["__scopeId", "data-v-039c48d2"]]), yt = {
|
|
801
|
+
key: 0,
|
|
802
|
+
class: "br-progressbar__label"
|
|
803
|
+
}, gt = { class: "br-progressbar__track" }, pt = {
|
|
804
|
+
key: 0,
|
|
805
|
+
class: "br-progressbar__label"
|
|
806
|
+
}, kt = {
|
|
807
|
+
key: 1,
|
|
808
|
+
class: "br-progressbar__label"
|
|
809
|
+
}, $t = /* @__PURE__ */ C({
|
|
810
|
+
__name: "BrProgressbar",
|
|
811
|
+
props: {
|
|
812
|
+
value: { default: 0 },
|
|
813
|
+
max: { default: 100 },
|
|
814
|
+
size: { default: "md" },
|
|
815
|
+
variant: { default: "primary" },
|
|
816
|
+
showLabel: { type: Boolean, default: !1 },
|
|
817
|
+
labelPosition: { default: "right" },
|
|
818
|
+
striped: { type: Boolean, default: !1 },
|
|
819
|
+
animated: { type: Boolean, default: !1 },
|
|
820
|
+
indeterminate: { type: Boolean, default: !1 },
|
|
821
|
+
rounded: { type: Boolean, default: !0 }
|
|
822
|
+
},
|
|
823
|
+
setup(e) {
|
|
824
|
+
const t = e, a = y(() => t.indeterminate ? 0 : Math.min(100, Math.max(0, t.value / t.max * 100))), o = y(() => [
|
|
825
|
+
"br-progressbar",
|
|
826
|
+
`br-progressbar--${t.size}`,
|
|
827
|
+
`br-progressbar--${t.variant}`,
|
|
828
|
+
{
|
|
829
|
+
"br-progressbar--striped": t.striped,
|
|
830
|
+
"br-progressbar--animated": t.animated,
|
|
831
|
+
"br-progressbar--indeterminate": t.indeterminate,
|
|
832
|
+
"br-progressbar--rounded": t.rounded,
|
|
833
|
+
[`br-progressbar--label-${t.labelPosition}`]: t.showLabel
|
|
834
|
+
}
|
|
835
|
+
]), r = y(() => ({
|
|
836
|
+
width: t.indeterminate ? "100%" : `${a.value}%`
|
|
837
|
+
}));
|
|
838
|
+
return (h, i) => (l(), s("div", {
|
|
839
|
+
class: $(o.value)
|
|
840
|
+
}, [
|
|
841
|
+
e.showLabel && e.labelPosition === "top" ? (l(), s("span", yt, g(Math.round(a.value)) + "% ", 1)) : c("", !0),
|
|
842
|
+
n("div", gt, [
|
|
843
|
+
n("div", {
|
|
844
|
+
class: "br-progressbar__bar",
|
|
845
|
+
style: P(r.value)
|
|
846
|
+
}, [
|
|
847
|
+
e.showLabel && e.labelPosition === "inside" ? (l(), s("span", pt, g(Math.round(a.value)) + "% ", 1)) : c("", !0)
|
|
848
|
+
], 4)
|
|
849
|
+
]),
|
|
850
|
+
e.showLabel && e.labelPosition === "right" ? (l(), s("span", kt, g(Math.round(a.value)) + "% ", 1)) : c("", !0)
|
|
851
|
+
], 2));
|
|
852
|
+
}
|
|
853
|
+
}), Bt = /* @__PURE__ */ M($t, [["__scopeId", "data-v-88f6926a"]]), wt = { class: "br-rating__stars" }, xt = ["disabled", "onMousemove", "onClick"], Ct = {
|
|
854
|
+
viewBox: "0 0 24 24",
|
|
855
|
+
class: "br-rating__icon"
|
|
856
|
+
}, Mt = { key: 0 }, zt = ["id"], Dt = ["d", "fill"], Vt = {
|
|
857
|
+
key: 0,
|
|
858
|
+
class: "br-rating__value"
|
|
859
|
+
}, Lt = /* @__PURE__ */ C({
|
|
860
|
+
__name: "BrRating",
|
|
861
|
+
props: /* @__PURE__ */ S({
|
|
862
|
+
max: { default: 5 },
|
|
863
|
+
size: { default: "md" },
|
|
864
|
+
allowHalf: { type: Boolean, default: !1 },
|
|
865
|
+
readonly: { type: Boolean, default: !1 },
|
|
866
|
+
disabled: { type: Boolean, default: !1 },
|
|
867
|
+
showValue: { type: Boolean, default: !1 },
|
|
868
|
+
activeColor: {},
|
|
869
|
+
inactiveColor: {},
|
|
870
|
+
icon: { default: "star" },
|
|
871
|
+
clearable: { type: Boolean, default: !1 }
|
|
872
|
+
}, {
|
|
873
|
+
modelValue: { default: 0 },
|
|
874
|
+
modelModifiers: {}
|
|
875
|
+
}),
|
|
876
|
+
emits: ["update:modelValue"],
|
|
877
|
+
setup(e) {
|
|
878
|
+
const t = e, a = E(e, "modelValue"), o = z(null), r = y(() => o.value !== null && !t.readonly && !t.disabled ? o.value : a.value), h = y(() => [
|
|
879
|
+
"br-rating",
|
|
880
|
+
`br-rating--${t.size}`,
|
|
881
|
+
{
|
|
882
|
+
"br-rating--readonly": t.readonly,
|
|
883
|
+
"br-rating--disabled": t.disabled
|
|
884
|
+
}
|
|
885
|
+
]), i = y(() => {
|
|
886
|
+
const f = [];
|
|
887
|
+
for (let m = 1; m <= t.max; m++) {
|
|
888
|
+
const B = r.value >= m, D = t.allowHalf && r.value >= m - 0.5 && r.value < m;
|
|
889
|
+
f.push({
|
|
890
|
+
index: m,
|
|
891
|
+
filled: B,
|
|
892
|
+
halfFilled: D
|
|
893
|
+
});
|
|
894
|
+
}
|
|
895
|
+
return f;
|
|
896
|
+
});
|
|
897
|
+
function d(f, m) {
|
|
898
|
+
if (!(t.readonly || t.disabled))
|
|
899
|
+
if (t.allowHalf) {
|
|
900
|
+
const D = m.currentTarget.getBoundingClientRect(), V = m.clientX - D.left < D.width / 2;
|
|
901
|
+
o.value = V ? f - 0.5 : f;
|
|
902
|
+
} else
|
|
903
|
+
o.value = f;
|
|
904
|
+
}
|
|
905
|
+
function b() {
|
|
906
|
+
o.value = null;
|
|
907
|
+
}
|
|
908
|
+
function u(f, m) {
|
|
909
|
+
if (t.readonly || t.disabled) return;
|
|
910
|
+
let B;
|
|
911
|
+
if (t.allowHalf) {
|
|
912
|
+
const V = m.currentTarget.getBoundingClientRect();
|
|
913
|
+
B = m.clientX - V.left < V.width / 2 ? f - 0.5 : f;
|
|
914
|
+
} else
|
|
915
|
+
B = f;
|
|
916
|
+
t.clearable && a.value === B ? a.value = 0 : a.value = B;
|
|
917
|
+
}
|
|
918
|
+
const _ = {
|
|
919
|
+
star: "M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z",
|
|
920
|
+
heart: "M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z",
|
|
921
|
+
circle: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2z"
|
|
922
|
+
};
|
|
923
|
+
return (f, m) => (l(), s("div", {
|
|
924
|
+
class: $(h.value),
|
|
925
|
+
onMouseleave: b
|
|
926
|
+
}, [
|
|
927
|
+
n("div", wt, [
|
|
928
|
+
(l(!0), s(L, null, F(i.value, (B) => (l(), s("button", {
|
|
929
|
+
key: B.index,
|
|
930
|
+
type: "button",
|
|
931
|
+
class: $(["br-rating__star", {
|
|
932
|
+
"br-rating__star--filled": B.filled,
|
|
933
|
+
"br-rating__star--half": B.halfFilled
|
|
934
|
+
}]),
|
|
935
|
+
style: P({
|
|
936
|
+
"--active-color": e.activeColor,
|
|
937
|
+
"--inactive-color": e.inactiveColor
|
|
938
|
+
}),
|
|
939
|
+
disabled: e.disabled,
|
|
940
|
+
onMousemove: (D) => d(B.index, D),
|
|
941
|
+
onClick: (D) => u(B.index, D)
|
|
942
|
+
}, [
|
|
943
|
+
(l(), s("svg", Ct, [
|
|
944
|
+
B.halfFilled ? (l(), s("defs", Mt, [
|
|
945
|
+
n("linearGradient", {
|
|
946
|
+
id: `half-${B.index}`
|
|
947
|
+
}, [...m[0] || (m[0] = [
|
|
948
|
+
n("stop", {
|
|
949
|
+
offset: "50%",
|
|
950
|
+
"stop-color": "currentColor"
|
|
951
|
+
}, null, -1),
|
|
952
|
+
n("stop", {
|
|
953
|
+
offset: "50%",
|
|
954
|
+
"stop-color": "var(--br-light-400)"
|
|
955
|
+
}, null, -1)
|
|
956
|
+
])], 8, zt)
|
|
957
|
+
])) : c("", !0),
|
|
958
|
+
n("path", {
|
|
959
|
+
d: _[e.icon],
|
|
960
|
+
fill: B.halfFilled ? `url(#half-${B.index})` : "currentColor"
|
|
961
|
+
}, null, 8, Dt)
|
|
962
|
+
]))
|
|
963
|
+
], 46, xt))), 128))
|
|
964
|
+
]),
|
|
965
|
+
e.showValue ? (l(), s("span", Vt, g(a.value.toFixed(e.allowHalf ? 1 : 0)), 1)) : c("", !0)
|
|
966
|
+
], 34));
|
|
967
|
+
}
|
|
968
|
+
}), It = /* @__PURE__ */ M(Lt, [["__scopeId", "data-v-f48bff19"]]), St = ["checked", "disabled"], Tt = { class: "br-checkbox__control" }, Ft = {
|
|
969
|
+
key: 0,
|
|
970
|
+
viewBox: "0 0 24 24",
|
|
971
|
+
class: "br-checkbox__icon"
|
|
972
|
+
}, Pt = {
|
|
973
|
+
key: 1,
|
|
974
|
+
viewBox: "0 0 24 24",
|
|
975
|
+
class: "br-checkbox__icon"
|
|
976
|
+
}, Et = {
|
|
977
|
+
key: 0,
|
|
978
|
+
class: "br-checkbox__label"
|
|
979
|
+
}, Ot = {
|
|
980
|
+
key: 1,
|
|
981
|
+
class: "br-checkbox__helper"
|
|
982
|
+
}, Rt = /* @__PURE__ */ C({
|
|
983
|
+
__name: "BrCheckbox",
|
|
984
|
+
props: /* @__PURE__ */ S({
|
|
985
|
+
label: {},
|
|
986
|
+
size: { default: "md" },
|
|
987
|
+
disabled: { type: Boolean, default: !1 },
|
|
988
|
+
indeterminate: { type: Boolean, default: !1 },
|
|
989
|
+
error: { type: Boolean, default: !1 },
|
|
990
|
+
helperText: {},
|
|
991
|
+
trueValue: { type: [String, Number, Boolean], default: !0 },
|
|
992
|
+
falseValue: { type: [String, Number, Boolean], default: !1 }
|
|
993
|
+
}, {
|
|
994
|
+
modelValue: { type: [String, Number, Boolean, Array] },
|
|
995
|
+
modelModifiers: {}
|
|
996
|
+
}),
|
|
997
|
+
emits: ["update:modelValue"],
|
|
998
|
+
setup(e) {
|
|
999
|
+
const t = e, a = E(e, "modelValue"), o = z(null), r = y(() => Array.isArray(a.value) ? a.value.includes(t.trueValue) : a.value === t.trueValue), h = y(() => [
|
|
1000
|
+
"br-checkbox",
|
|
1001
|
+
`br-checkbox--${t.size}`,
|
|
1002
|
+
{
|
|
1003
|
+
"br-checkbox--disabled": t.disabled,
|
|
1004
|
+
"br-checkbox--error": t.error,
|
|
1005
|
+
"br-checkbox--checked": r.value,
|
|
1006
|
+
"br-checkbox--indeterminate": t.indeterminate
|
|
1007
|
+
}
|
|
1008
|
+
]);
|
|
1009
|
+
ee(
|
|
1010
|
+
() => t.indeterminate,
|
|
1011
|
+
(d) => {
|
|
1012
|
+
o.value && (o.value.indeterminate = d);
|
|
1013
|
+
},
|
|
1014
|
+
{ immediate: !0 }
|
|
1015
|
+
);
|
|
1016
|
+
function i() {
|
|
1017
|
+
if (!t.disabled)
|
|
1018
|
+
if (Array.isArray(a.value)) {
|
|
1019
|
+
const d = [...a.value], b = d.indexOf(t.trueValue);
|
|
1020
|
+
b > -1 ? d.splice(b, 1) : d.push(t.trueValue), a.value = d;
|
|
1021
|
+
} else
|
|
1022
|
+
a.value = r.value ? t.falseValue : t.trueValue;
|
|
1023
|
+
}
|
|
1024
|
+
return (d, b) => (l(), s("label", {
|
|
1025
|
+
class: $(h.value)
|
|
1026
|
+
}, [
|
|
1027
|
+
n("input", {
|
|
1028
|
+
ref_key: "inputRef",
|
|
1029
|
+
ref: o,
|
|
1030
|
+
type: "checkbox",
|
|
1031
|
+
checked: r.value,
|
|
1032
|
+
disabled: e.disabled,
|
|
1033
|
+
class: "br-checkbox__input",
|
|
1034
|
+
onChange: i
|
|
1035
|
+
}, null, 40, St),
|
|
1036
|
+
n("span", Tt, [
|
|
1037
|
+
r.value && !e.indeterminate ? (l(), s("svg", Ft, [...b[0] || (b[0] = [
|
|
1038
|
+
n("path", {
|
|
1039
|
+
d: "M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z",
|
|
1040
|
+
fill: "currentColor"
|
|
1041
|
+
}, null, -1)
|
|
1042
|
+
])])) : e.indeterminate ? (l(), s("svg", Pt, [...b[1] || (b[1] = [
|
|
1043
|
+
n("path", {
|
|
1044
|
+
d: "M19 13H5v-2h14v2z",
|
|
1045
|
+
fill: "currentColor"
|
|
1046
|
+
}, null, -1)
|
|
1047
|
+
])])) : c("", !0)
|
|
1048
|
+
]),
|
|
1049
|
+
e.label || d.$slots.default ? (l(), s("span", Et, [
|
|
1050
|
+
w(d.$slots, "default", {}, () => [
|
|
1051
|
+
H(g(e.label), 1)
|
|
1052
|
+
], !0)
|
|
1053
|
+
])) : c("", !0),
|
|
1054
|
+
e.helperText ? (l(), s("span", Ot, g(e.helperText), 1)) : c("", !0)
|
|
1055
|
+
], 2));
|
|
1056
|
+
}
|
|
1057
|
+
}), de = /* @__PURE__ */ M(Rt, [["__scopeId", "data-v-705968b3"]]), Ht = ["aria-label"], Nt = {
|
|
1058
|
+
key: 0,
|
|
1059
|
+
class: "br-checkbox-group__label"
|
|
1060
|
+
}, At = { class: "br-checkbox-group__options" }, Yt = {
|
|
1061
|
+
key: 1,
|
|
1062
|
+
class: "br-checkbox-group__error"
|
|
1063
|
+
}, Wt = /* @__PURE__ */ C({
|
|
1064
|
+
__name: "BrCheckboxGroup",
|
|
1065
|
+
props: /* @__PURE__ */ S({
|
|
1066
|
+
label: {},
|
|
1067
|
+
options: {},
|
|
1068
|
+
direction: { default: "vertical" },
|
|
1069
|
+
size: { default: "md" },
|
|
1070
|
+
disabled: { type: Boolean, default: !1 },
|
|
1071
|
+
error: { type: Boolean, default: !1 },
|
|
1072
|
+
errorMessage: {},
|
|
1073
|
+
min: {},
|
|
1074
|
+
max: {}
|
|
1075
|
+
}, {
|
|
1076
|
+
modelValue: { default: () => [] },
|
|
1077
|
+
modelModifiers: {}
|
|
1078
|
+
}),
|
|
1079
|
+
emits: ["update:modelValue"],
|
|
1080
|
+
setup(e) {
|
|
1081
|
+
const t = e, a = E(e, "modelValue"), o = y(() => [
|
|
1082
|
+
"br-checkbox-group",
|
|
1083
|
+
`br-checkbox-group--${t.direction}`,
|
|
1084
|
+
{
|
|
1085
|
+
"br-checkbox-group--error": t.error
|
|
1086
|
+
}
|
|
1087
|
+
]);
|
|
1088
|
+
function r(h) {
|
|
1089
|
+
return !!(t.disabled || h.disabled || t.max && a.value.length >= t.max && !a.value.includes(h.value) || t.min && a.value.length <= t.min && a.value.includes(h.value));
|
|
1090
|
+
}
|
|
1091
|
+
return (h, i) => (l(), s("div", {
|
|
1092
|
+
class: $(o.value),
|
|
1093
|
+
role: "group",
|
|
1094
|
+
"aria-label": e.label
|
|
1095
|
+
}, [
|
|
1096
|
+
e.label ? (l(), s("span", Nt, g(e.label), 1)) : c("", !0),
|
|
1097
|
+
n("div", At, [
|
|
1098
|
+
(l(!0), s(L, null, F(e.options, (d) => (l(), Y(de, {
|
|
1099
|
+
key: String(d.value),
|
|
1100
|
+
modelValue: a.value,
|
|
1101
|
+
"onUpdate:modelValue": i[0] || (i[0] = (b) => a.value = b),
|
|
1102
|
+
label: d.label,
|
|
1103
|
+
"true-value": d.value,
|
|
1104
|
+
size: e.size,
|
|
1105
|
+
disabled: r(d),
|
|
1106
|
+
error: e.error
|
|
1107
|
+
}, null, 8, ["modelValue", "label", "true-value", "size", "disabled", "error"]))), 128))
|
|
1108
|
+
]),
|
|
1109
|
+
e.error && e.errorMessage ? (l(), s("span", Yt, g(e.errorMessage), 1)) : c("", !0)
|
|
1110
|
+
], 10, Ht));
|
|
1111
|
+
}
|
|
1112
|
+
}), jt = /* @__PURE__ */ M(Wt, [["__scopeId", "data-v-ea9cc537"]]), Ut = {
|
|
1113
|
+
key: 0,
|
|
1114
|
+
class: "br-modal__container"
|
|
1115
|
+
}, Kt = {
|
|
1116
|
+
key: 0,
|
|
1117
|
+
class: "br-modal__header"
|
|
1118
|
+
}, qt = { class: "br-modal__title" }, Gt = { class: "br-modal__body" }, Xt = {
|
|
1119
|
+
key: 1,
|
|
1120
|
+
class: "br-modal__footer"
|
|
1121
|
+
}, Qt = /* @__PURE__ */ C({
|
|
1122
|
+
__name: "BrModal",
|
|
1123
|
+
props: /* @__PURE__ */ S({
|
|
1124
|
+
title: { default: "" },
|
|
1125
|
+
variant: { default: "center" },
|
|
1126
|
+
size: { default: "md" },
|
|
1127
|
+
closable: { type: Boolean, default: !0 },
|
|
1128
|
+
closeOnClickOutside: { type: Boolean, default: !0 },
|
|
1129
|
+
closeOnEscape: { type: Boolean, default: !0 },
|
|
1130
|
+
showHeader: { type: Boolean, default: !0 },
|
|
1131
|
+
showFooter: { type: Boolean, default: !1 },
|
|
1132
|
+
persistent: { type: Boolean, default: !1 }
|
|
1133
|
+
}, {
|
|
1134
|
+
modelValue: { type: Boolean, default: !1 },
|
|
1135
|
+
modelModifiers: {}
|
|
1136
|
+
}),
|
|
1137
|
+
emits: /* @__PURE__ */ S(["close", "confirm", "cancel"], ["update:modelValue"]),
|
|
1138
|
+
setup(e, { emit: t }) {
|
|
1139
|
+
const a = e, o = E(e, "modelValue"), r = t, h = y(() => [
|
|
1140
|
+
"br-modal",
|
|
1141
|
+
`br-modal--${a.variant}`,
|
|
1142
|
+
`br-modal--${a.size}`,
|
|
1143
|
+
{
|
|
1144
|
+
"br-modal--open": o.value
|
|
1145
|
+
}
|
|
1146
|
+
]);
|
|
1147
|
+
function i() {
|
|
1148
|
+
a.persistent || (o.value = !1, r("close"));
|
|
1149
|
+
}
|
|
1150
|
+
function d() {
|
|
1151
|
+
a.closeOnClickOutside && i();
|
|
1152
|
+
}
|
|
1153
|
+
function b(m) {
|
|
1154
|
+
m.key === "Escape" && a.closeOnEscape && o.value && i();
|
|
1155
|
+
}
|
|
1156
|
+
function u() {
|
|
1157
|
+
r("confirm");
|
|
1158
|
+
}
|
|
1159
|
+
function _() {
|
|
1160
|
+
r("cancel"), i();
|
|
1161
|
+
}
|
|
1162
|
+
ee(o, (m) => {
|
|
1163
|
+
typeof document > "u" || (document.body.style.overflow = m ? "hidden" : "");
|
|
1164
|
+
});
|
|
1165
|
+
const f = z(!1);
|
|
1166
|
+
return J(() => {
|
|
1167
|
+
f.value = !0, document.addEventListener("keydown", b);
|
|
1168
|
+
}), se(() => {
|
|
1169
|
+
document.removeEventListener("keydown", b), document.body.style.overflow = "";
|
|
1170
|
+
}), (m, B) => (l(), Y(ve, {
|
|
1171
|
+
to: "body",
|
|
1172
|
+
disabled: !f.value
|
|
1173
|
+
}, [
|
|
1174
|
+
X(Q, { name: "br-modal-fade" }, {
|
|
1175
|
+
default: A(() => [
|
|
1176
|
+
o.value ? (l(), s("div", {
|
|
1177
|
+
key: 0,
|
|
1178
|
+
class: $(h.value)
|
|
1179
|
+
}, [
|
|
1180
|
+
n("div", {
|
|
1181
|
+
class: "br-modal__backdrop",
|
|
1182
|
+
onClick: d
|
|
1183
|
+
}),
|
|
1184
|
+
X(Q, {
|
|
1185
|
+
name: e.variant === "aside" ? "br-modal-slide" : "br-modal-scale"
|
|
1186
|
+
}, {
|
|
1187
|
+
default: A(() => [
|
|
1188
|
+
o.value ? (l(), s("div", Ut, [
|
|
1189
|
+
e.showHeader ? (l(), s("header", Kt, [
|
|
1190
|
+
w(m.$slots, "header", {}, () => [
|
|
1191
|
+
n("h2", qt, g(e.title), 1)
|
|
1192
|
+
], !0),
|
|
1193
|
+
e.closable ? (l(), s("button", {
|
|
1194
|
+
key: 0,
|
|
1195
|
+
type: "button",
|
|
1196
|
+
class: "br-modal__close",
|
|
1197
|
+
"aria-label": "Fechar",
|
|
1198
|
+
onClick: i
|
|
1199
|
+
}, [...B[0] || (B[0] = [
|
|
1200
|
+
n("svg", {
|
|
1201
|
+
viewBox: "0 0 24 24",
|
|
1202
|
+
fill: "currentColor"
|
|
1203
|
+
}, [
|
|
1204
|
+
n("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" })
|
|
1205
|
+
], -1)
|
|
1206
|
+
])])) : c("", !0)
|
|
1207
|
+
])) : c("", !0),
|
|
1208
|
+
n("div", Gt, [
|
|
1209
|
+
w(m.$slots, "default", {}, void 0, !0)
|
|
1210
|
+
]),
|
|
1211
|
+
e.showFooter || m.$slots.footer ? (l(), s("footer", Xt, [
|
|
1212
|
+
w(m.$slots, "footer", {}, () => [
|
|
1213
|
+
n("button", {
|
|
1214
|
+
type: "button",
|
|
1215
|
+
class: "br-modal__btn br-modal__btn--cancel",
|
|
1216
|
+
onClick: _
|
|
1217
|
+
}, " Cancelar "),
|
|
1218
|
+
n("button", {
|
|
1219
|
+
type: "button",
|
|
1220
|
+
class: "br-modal__btn br-modal__btn--confirm",
|
|
1221
|
+
onClick: u
|
|
1222
|
+
}, " Confirmar ")
|
|
1223
|
+
], !0)
|
|
1224
|
+
])) : c("", !0)
|
|
1225
|
+
])) : c("", !0)
|
|
1226
|
+
]),
|
|
1227
|
+
_: 3
|
|
1228
|
+
}, 8, ["name"])
|
|
1229
|
+
], 2)) : c("", !0)
|
|
1230
|
+
]),
|
|
1231
|
+
_: 3
|
|
1232
|
+
})
|
|
1233
|
+
], 8, ["disabled"]));
|
|
1234
|
+
}
|
|
1235
|
+
}), Jt = /* @__PURE__ */ M(Qt, [["__scopeId", "data-v-35676239"]]), Zt = ["aria-expanded", "disabled"], ea = {
|
|
1236
|
+
key: 0,
|
|
1237
|
+
class: "br-accordion-item__icon",
|
|
1238
|
+
viewBox: "0 0 24 24",
|
|
1239
|
+
fill: "currentColor"
|
|
1240
|
+
}, ta = {
|
|
1241
|
+
key: 1,
|
|
1242
|
+
class: "br-accordion-item__custom-icon"
|
|
1243
|
+
}, aa = { class: "br-accordion-item__title" }, la = {
|
|
1244
|
+
key: 2,
|
|
1245
|
+
class: "br-accordion-item__icon",
|
|
1246
|
+
viewBox: "0 0 24 24",
|
|
1247
|
+
fill: "currentColor"
|
|
1248
|
+
}, sa = /* @__PURE__ */ C({
|
|
1249
|
+
__name: "BrAccordionItem",
|
|
1250
|
+
props: {
|
|
1251
|
+
title: {},
|
|
1252
|
+
id: {},
|
|
1253
|
+
icon: {},
|
|
1254
|
+
disabled: { type: Boolean, default: !1 },
|
|
1255
|
+
open: { type: Boolean }
|
|
1256
|
+
},
|
|
1257
|
+
setup(e) {
|
|
1258
|
+
const t = e, a = te("accordion"), o = z(t.id ?? he()), r = z(null), h = y(() => t.open !== void 0 ? t.open : (a == null ? void 0 : a.isItemOpen(o.value)) ?? !1), i = y(() => t.disabled || (a == null ? void 0 : a.disabled.value)), d = y(() => (a == null ? void 0 : a.iconPosition.value) ?? "right"), b = y(() => [
|
|
1259
|
+
"br-accordion-item",
|
|
1260
|
+
{
|
|
1261
|
+
"br-accordion-item--open": h.value,
|
|
1262
|
+
"br-accordion-item--disabled": i.value,
|
|
1263
|
+
"br-accordion-item--icon-left": d.value === "left"
|
|
1264
|
+
}
|
|
1265
|
+
]);
|
|
1266
|
+
function u() {
|
|
1267
|
+
i.value || a == null || a.toggleItem(o.value);
|
|
1268
|
+
}
|
|
1269
|
+
const _ = y(() => h.value ? r.value ? `${r.value.scrollHeight}px` : "auto" : "0px");
|
|
1270
|
+
return (f, m) => (l(), s("div", {
|
|
1271
|
+
class: $(b.value)
|
|
1272
|
+
}, [
|
|
1273
|
+
n("button", {
|
|
1274
|
+
type: "button",
|
|
1275
|
+
class: "br-accordion-item__header",
|
|
1276
|
+
"aria-expanded": h.value,
|
|
1277
|
+
disabled: i.value,
|
|
1278
|
+
onClick: u
|
|
1279
|
+
}, [
|
|
1280
|
+
d.value === "left" ? (l(), s("svg", ea, [...m[0] || (m[0] = [
|
|
1281
|
+
n("path", { d: "M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z" }, null, -1)
|
|
1282
|
+
])])) : c("", !0),
|
|
1283
|
+
e.icon ? (l(), s("span", ta, [
|
|
1284
|
+
w(f.$slots, "icon", {}, () => [
|
|
1285
|
+
H(g(e.icon), 1)
|
|
1286
|
+
], !0)
|
|
1287
|
+
])) : c("", !0),
|
|
1288
|
+
n("span", aa, [
|
|
1289
|
+
w(f.$slots, "title", {}, () => [
|
|
1290
|
+
H(g(e.title), 1)
|
|
1291
|
+
], !0)
|
|
1292
|
+
]),
|
|
1293
|
+
d.value === "right" ? (l(), s("svg", la, [...m[1] || (m[1] = [
|
|
1294
|
+
n("path", { d: "M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z" }, null, -1)
|
|
1295
|
+
])])) : c("", !0)
|
|
1296
|
+
], 8, Zt),
|
|
1297
|
+
n("div", {
|
|
1298
|
+
class: "br-accordion-item__content-wrapper",
|
|
1299
|
+
style: P({ height: _.value })
|
|
1300
|
+
}, [
|
|
1301
|
+
n("div", {
|
|
1302
|
+
ref_key: "contentRef",
|
|
1303
|
+
ref: r,
|
|
1304
|
+
class: "br-accordion-item__content"
|
|
1305
|
+
}, [
|
|
1306
|
+
w(f.$slots, "default", {}, void 0, !0)
|
|
1307
|
+
], 512)
|
|
1308
|
+
], 4)
|
|
1309
|
+
], 2));
|
|
1310
|
+
}
|
|
1311
|
+
}), ue = /* @__PURE__ */ M(sa, [["__scopeId", "data-v-0273b287"]]), oa = /* @__PURE__ */ C({
|
|
1312
|
+
__name: "BrAccordion",
|
|
1313
|
+
props: {
|
|
1314
|
+
items: {},
|
|
1315
|
+
multiple: { type: Boolean, default: !1 },
|
|
1316
|
+
variant: { default: "default" },
|
|
1317
|
+
iconPosition: { default: "right" },
|
|
1318
|
+
disabled: { type: Boolean, default: !1 }
|
|
1319
|
+
},
|
|
1320
|
+
setup(e) {
|
|
1321
|
+
const t = e, a = z(/* @__PURE__ */ new Set()), o = y(() => [
|
|
1322
|
+
"br-accordion",
|
|
1323
|
+
`br-accordion--${t.variant}`,
|
|
1324
|
+
{
|
|
1325
|
+
"br-accordion--disabled": t.disabled
|
|
1326
|
+
}
|
|
1327
|
+
]);
|
|
1328
|
+
function r(i) {
|
|
1329
|
+
t.disabled || (a.value.has(i) ? a.value.delete(i) : (t.multiple || a.value.clear(), a.value.add(i)), a.value = new Set(a.value));
|
|
1330
|
+
}
|
|
1331
|
+
function h(i) {
|
|
1332
|
+
return a.value.has(i);
|
|
1333
|
+
}
|
|
1334
|
+
return ae(
|
|
1335
|
+
"accordion",
|
|
1336
|
+
oe({
|
|
1337
|
+
iconPosition: y(() => t.iconPosition),
|
|
1338
|
+
disabled: y(() => t.disabled),
|
|
1339
|
+
toggleItem: r,
|
|
1340
|
+
isItemOpen: h
|
|
1341
|
+
})
|
|
1342
|
+
), (i, d) => (l(), s("div", {
|
|
1343
|
+
class: $(o.value)
|
|
1344
|
+
}, [
|
|
1345
|
+
e.items && e.items.length ? (l(!0), s(L, { key: 0 }, F(e.items, (b) => (l(), Y(ue, {
|
|
1346
|
+
key: b.id,
|
|
1347
|
+
id: b.id,
|
|
1348
|
+
title: b.title,
|
|
1349
|
+
icon: b.icon,
|
|
1350
|
+
disabled: b.disabled
|
|
1351
|
+
}, {
|
|
1352
|
+
default: A(() => [
|
|
1353
|
+
b.content ? (l(), s(L, { key: 0 }, [
|
|
1354
|
+
H(g(b.content), 1)
|
|
1355
|
+
], 64)) : w(i.$slots, `item-${b.id}`, {
|
|
1356
|
+
key: 1,
|
|
1357
|
+
item: b
|
|
1358
|
+
}, void 0, !0)
|
|
1359
|
+
]),
|
|
1360
|
+
_: 2
|
|
1361
|
+
}, 1032, ["id", "title", "icon", "disabled"]))), 128)) : w(i.$slots, "default", { key: 1 }, void 0, !0)
|
|
1362
|
+
], 2));
|
|
1363
|
+
}
|
|
1364
|
+
}), ra = /* @__PURE__ */ M(oa, [["__scopeId", "data-v-a3ef9f00"]]), na = ["role", "tabindex"], ia = {
|
|
1365
|
+
key: 0,
|
|
1366
|
+
class: "br-card__loader"
|
|
1367
|
+
}, da = ["src"], ua = { class: "br-card__content" }, ca = {
|
|
1368
|
+
key: 0,
|
|
1369
|
+
class: "br-card__header"
|
|
1370
|
+
}, ba = {
|
|
1371
|
+
key: 0,
|
|
1372
|
+
class: "br-card__title"
|
|
1373
|
+
}, fa = {
|
|
1374
|
+
key: 1,
|
|
1375
|
+
class: "br-card__subtitle"
|
|
1376
|
+
}, va = { class: "br-card__body" }, ha = {
|
|
1377
|
+
key: 1,
|
|
1378
|
+
class: "br-card__footer"
|
|
1379
|
+
}, ma = ["src"], _a = /* @__PURE__ */ C({
|
|
1380
|
+
__name: "BrCard",
|
|
1381
|
+
props: {
|
|
1382
|
+
variant: { default: "elevated" },
|
|
1383
|
+
size: { default: "md" },
|
|
1384
|
+
clickable: { type: Boolean, default: !1 },
|
|
1385
|
+
title: {},
|
|
1386
|
+
subtitle: {},
|
|
1387
|
+
image: {},
|
|
1388
|
+
imagePosition: { default: "top" },
|
|
1389
|
+
imageHeight: {},
|
|
1390
|
+
disabled: { type: Boolean, default: !1 },
|
|
1391
|
+
loading: { type: Boolean, default: !1 },
|
|
1392
|
+
rounded: { default: "md" },
|
|
1393
|
+
fullWidth: { type: Boolean, default: !1 }
|
|
1394
|
+
},
|
|
1395
|
+
emits: ["click"],
|
|
1396
|
+
setup(e, { emit: t }) {
|
|
1397
|
+
const a = e, o = t, r = y(() => [
|
|
1398
|
+
"br-card",
|
|
1399
|
+
`br-card--${a.variant}`,
|
|
1400
|
+
`br-card--${a.size}`,
|
|
1401
|
+
`br-card--rounded-${a.rounded}`,
|
|
1402
|
+
`br-card--image-${a.imagePosition}`,
|
|
1403
|
+
{
|
|
1404
|
+
"br-card--clickable": a.clickable,
|
|
1405
|
+
"br-card--disabled": a.disabled,
|
|
1406
|
+
"br-card--loading": a.loading,
|
|
1407
|
+
"br-card--full-width": a.fullWidth
|
|
1408
|
+
}
|
|
1409
|
+
]), h = y(() => a.imageHeight ? { height: typeof a.imageHeight == "number" ? `${a.imageHeight}px` : a.imageHeight } : {});
|
|
1410
|
+
function i(d) {
|
|
1411
|
+
a.disabled || a.loading || o("click", d);
|
|
1412
|
+
}
|
|
1413
|
+
return (d, b) => (l(), s("div", {
|
|
1414
|
+
class: $(r.value),
|
|
1415
|
+
role: e.clickable ? "button" : void 0,
|
|
1416
|
+
tabindex: e.clickable && !e.disabled ? 0 : void 0,
|
|
1417
|
+
onClick: b[0] || (b[0] = (u) => e.clickable ? i(u) : void 0),
|
|
1418
|
+
onKeydown: b[1] || (b[1] = re((u) => e.clickable ? i(u) : void 0, ["enter"]))
|
|
1419
|
+
}, [
|
|
1420
|
+
e.loading ? (l(), s("div", ia, [...b[2] || (b[2] = [
|
|
1421
|
+
n("div", { class: "br-card__loader-spinner" }, null, -1)
|
|
1422
|
+
])])) : c("", !0),
|
|
1423
|
+
e.image && (e.imagePosition === "top" || e.imagePosition === "left") ? (l(), s("div", {
|
|
1424
|
+
key: 1,
|
|
1425
|
+
class: "br-card__image",
|
|
1426
|
+
style: P(h.value)
|
|
1427
|
+
}, [
|
|
1428
|
+
w(d.$slots, "image", {}, () => [
|
|
1429
|
+
n("img", {
|
|
1430
|
+
src: e.image,
|
|
1431
|
+
alt: ""
|
|
1432
|
+
}, null, 8, da)
|
|
1433
|
+
], !0)
|
|
1434
|
+
], 4)) : c("", !0),
|
|
1435
|
+
n("div", ua, [
|
|
1436
|
+
e.title || e.subtitle || d.$slots.header ? (l(), s("div", ca, [
|
|
1437
|
+
w(d.$slots, "header", {}, () => [
|
|
1438
|
+
e.title ? (l(), s("h3", ba, g(e.title), 1)) : c("", !0),
|
|
1439
|
+
e.subtitle ? (l(), s("p", fa, g(e.subtitle), 1)) : c("", !0)
|
|
1440
|
+
], !0)
|
|
1441
|
+
])) : c("", !0),
|
|
1442
|
+
n("div", va, [
|
|
1443
|
+
w(d.$slots, "default", {}, void 0, !0)
|
|
1444
|
+
]),
|
|
1445
|
+
d.$slots.footer ? (l(), s("div", ha, [
|
|
1446
|
+
w(d.$slots, "footer", {}, void 0, !0)
|
|
1447
|
+
])) : c("", !0)
|
|
1448
|
+
]),
|
|
1449
|
+
e.image && (e.imagePosition === "bottom" || e.imagePosition === "right") ? (l(), s("div", {
|
|
1450
|
+
key: 2,
|
|
1451
|
+
class: "br-card__image",
|
|
1452
|
+
style: P(h.value)
|
|
1453
|
+
}, [
|
|
1454
|
+
w(d.$slots, "image", {}, () => [
|
|
1455
|
+
n("img", {
|
|
1456
|
+
src: e.image,
|
|
1457
|
+
alt: ""
|
|
1458
|
+
}, null, 8, ma)
|
|
1459
|
+
], !0)
|
|
1460
|
+
], 4)) : c("", !0)
|
|
1461
|
+
], 42, na));
|
|
1462
|
+
}
|
|
1463
|
+
}), ya = /* @__PURE__ */ M(_a, [["__scopeId", "data-v-f78d8f79"]]), ga = {
|
|
1464
|
+
key: 0,
|
|
1465
|
+
class: "br-form-field__label"
|
|
1466
|
+
}, pa = {
|
|
1467
|
+
key: 0,
|
|
1468
|
+
class: "br-form-field__required"
|
|
1469
|
+
}, ka = { class: "br-form-field__control" }, $a = {
|
|
1470
|
+
key: 0,
|
|
1471
|
+
class: "br-form-field__prefix"
|
|
1472
|
+
}, Ba = { class: "br-form-field__input" }, wa = {
|
|
1473
|
+
key: 1,
|
|
1474
|
+
class: "br-form-field__suffix"
|
|
1475
|
+
}, xa = {
|
|
1476
|
+
key: 1,
|
|
1477
|
+
class: "br-form-field__footer"
|
|
1478
|
+
}, Ca = {
|
|
1479
|
+
key: 0,
|
|
1480
|
+
viewBox: "0 0 24 24",
|
|
1481
|
+
class: "br-form-field__icon"
|
|
1482
|
+
}, Ma = {
|
|
1483
|
+
key: 1,
|
|
1484
|
+
viewBox: "0 0 24 24",
|
|
1485
|
+
class: "br-form-field__icon"
|
|
1486
|
+
}, za = {
|
|
1487
|
+
key: 1,
|
|
1488
|
+
class: "br-form-field__char-count"
|
|
1489
|
+
}, Da = {
|
|
1490
|
+
key: 2,
|
|
1491
|
+
class: "br-form-field__hint"
|
|
1492
|
+
}, Va = /* @__PURE__ */ C({
|
|
1493
|
+
__name: "BrFormField",
|
|
1494
|
+
props: {
|
|
1495
|
+
label: {},
|
|
1496
|
+
labelPosition: { default: "top" },
|
|
1497
|
+
required: { type: Boolean, default: !1 },
|
|
1498
|
+
helperText: {},
|
|
1499
|
+
errorMessage: {},
|
|
1500
|
+
successMessage: {},
|
|
1501
|
+
error: { type: Boolean, default: !1 },
|
|
1502
|
+
success: { type: Boolean, default: !1 },
|
|
1503
|
+
charCount: {},
|
|
1504
|
+
hint: {},
|
|
1505
|
+
disabled: { type: Boolean, default: !1 }
|
|
1506
|
+
},
|
|
1507
|
+
setup(e) {
|
|
1508
|
+
const t = e, a = me(), o = y(() => [
|
|
1509
|
+
"br-form-field",
|
|
1510
|
+
`br-form-field--label-${t.labelPosition}`,
|
|
1511
|
+
{
|
|
1512
|
+
"br-form-field--error": t.error,
|
|
1513
|
+
"br-form-field--success": t.success,
|
|
1514
|
+
"br-form-field--disabled": t.disabled,
|
|
1515
|
+
"br-form-field--has-prefix": !!a.prefix,
|
|
1516
|
+
"br-form-field--has-suffix": !!a.suffix
|
|
1517
|
+
}
|
|
1518
|
+
]), r = y(() => t.error && t.errorMessage ? "error" : t.success && t.successMessage ? "success" : t.helperText ? "helper" : null), h = y(() => t.error && t.errorMessage ? t.errorMessage : t.success && t.successMessage ? t.successMessage : t.helperText);
|
|
1519
|
+
return (i, d) => (l(), s("div", {
|
|
1520
|
+
class: $(o.value)
|
|
1521
|
+
}, [
|
|
1522
|
+
e.label ? (l(), s("label", ga, [
|
|
1523
|
+
H(g(e.label) + " ", 1),
|
|
1524
|
+
e.required ? (l(), s("span", pa, "*")) : c("", !0)
|
|
1525
|
+
])) : c("", !0),
|
|
1526
|
+
n("div", ka, [
|
|
1527
|
+
i.$slots.prefix ? (l(), s("span", $a, [
|
|
1528
|
+
w(i.$slots, "prefix", {}, void 0, !0)
|
|
1529
|
+
])) : c("", !0),
|
|
1530
|
+
n("div", Ba, [
|
|
1531
|
+
w(i.$slots, "default", {}, void 0, !0)
|
|
1532
|
+
]),
|
|
1533
|
+
i.$slots.suffix ? (l(), s("span", wa, [
|
|
1534
|
+
w(i.$slots, "suffix", {}, void 0, !0)
|
|
1535
|
+
])) : c("", !0)
|
|
1536
|
+
]),
|
|
1537
|
+
h.value || e.charCount || e.hint ? (l(), s("div", xa, [
|
|
1538
|
+
h.value ? (l(), s("span", {
|
|
1539
|
+
key: 0,
|
|
1540
|
+
class: $(["br-form-field__message", `br-form-field__message--${r.value}`])
|
|
1541
|
+
}, [
|
|
1542
|
+
r.value === "error" ? (l(), s("svg", Ca, [...d[0] || (d[0] = [
|
|
1543
|
+
n("path", {
|
|
1544
|
+
d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z",
|
|
1545
|
+
fill: "currentColor"
|
|
1546
|
+
}, null, -1)
|
|
1547
|
+
])])) : r.value === "success" ? (l(), s("svg", Ma, [...d[1] || (d[1] = [
|
|
1548
|
+
n("path", {
|
|
1549
|
+
d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z",
|
|
1550
|
+
fill: "currentColor"
|
|
1551
|
+
}, null, -1)
|
|
1552
|
+
])])) : c("", !0),
|
|
1553
|
+
H(" " + g(h.value), 1)
|
|
1554
|
+
], 2)) : c("", !0),
|
|
1555
|
+
e.charCount ? (l(), s("span", za, g(e.charCount.current) + "/" + g(e.charCount.max), 1)) : c("", !0)
|
|
1556
|
+
])) : c("", !0),
|
|
1557
|
+
e.hint ? (l(), s("span", Da, g(e.hint), 1)) : c("", !0)
|
|
1558
|
+
], 2));
|
|
1559
|
+
}
|
|
1560
|
+
}), La = /* @__PURE__ */ M(Va, [["__scopeId", "data-v-0892cb96"]]), Ia = ["role", "tabindex", "onClick", "onKeydown"], Sa = { class: "br-stepper__indicator" }, Ta = { class: "br-stepper__icon" }, Fa = {
|
|
1561
|
+
key: 0,
|
|
1562
|
+
viewBox: "0 0 24 24",
|
|
1563
|
+
fill: "currentColor"
|
|
1564
|
+
}, Pa = {
|
|
1565
|
+
key: 1,
|
|
1566
|
+
viewBox: "0 0 24 24",
|
|
1567
|
+
fill: "currentColor"
|
|
1568
|
+
}, Ea = {
|
|
1569
|
+
key: 0,
|
|
1570
|
+
class: "br-stepper__connector"
|
|
1571
|
+
}, Oa = { class: "br-stepper__content" }, Ra = { class: "br-stepper__title" }, Ha = {
|
|
1572
|
+
key: 0,
|
|
1573
|
+
class: "br-stepper__optional"
|
|
1574
|
+
}, Na = {
|
|
1575
|
+
key: 0,
|
|
1576
|
+
class: "br-stepper__description"
|
|
1577
|
+
}, Aa = /* @__PURE__ */ C({
|
|
1578
|
+
__name: "BrStepper",
|
|
1579
|
+
props: /* @__PURE__ */ S({
|
|
1580
|
+
steps: {},
|
|
1581
|
+
orientation: { default: "horizontal" },
|
|
1582
|
+
variant: { default: "default" },
|
|
1583
|
+
clickable: { type: Boolean, default: !1 },
|
|
1584
|
+
showNumbers: { type: Boolean, default: !0 },
|
|
1585
|
+
linear: { type: Boolean, default: !0 },
|
|
1586
|
+
alternativeLabel: { type: Boolean, default: !1 }
|
|
1587
|
+
}, {
|
|
1588
|
+
modelValue: { default: 0 },
|
|
1589
|
+
modelModifiers: {}
|
|
1590
|
+
}),
|
|
1591
|
+
emits: /* @__PURE__ */ S(["step-click"], ["update:modelValue"]),
|
|
1592
|
+
setup(e, { emit: t }) {
|
|
1593
|
+
const a = e, o = E(e, "modelValue"), r = t, h = y(() => [
|
|
1594
|
+
"br-stepper",
|
|
1595
|
+
`br-stepper--${a.orientation}`,
|
|
1596
|
+
`br-stepper--${a.variant}`,
|
|
1597
|
+
{
|
|
1598
|
+
"br-stepper--clickable": a.clickable,
|
|
1599
|
+
"br-stepper--alternative-label": a.alternativeLabel
|
|
1600
|
+
}
|
|
1601
|
+
]);
|
|
1602
|
+
function i(u) {
|
|
1603
|
+
return u < o.value ? "completed" : u === o.value ? "active" : "pending";
|
|
1604
|
+
}
|
|
1605
|
+
function d(u) {
|
|
1606
|
+
return !(!a.clickable || a.linear && u > o.value);
|
|
1607
|
+
}
|
|
1608
|
+
function b(u) {
|
|
1609
|
+
d(u) && (a.steps[u].error || (o.value = u, r("step-click", u)));
|
|
1610
|
+
}
|
|
1611
|
+
return (u, _) => (l(), s("div", {
|
|
1612
|
+
class: $(h.value)
|
|
1613
|
+
}, [
|
|
1614
|
+
(l(!0), s(L, null, F(e.steps, (f, m) => (l(), s("div", {
|
|
1615
|
+
key: m,
|
|
1616
|
+
class: $(["br-stepper__step", {
|
|
1617
|
+
"br-stepper__step--completed": i(m) === "completed",
|
|
1618
|
+
"br-stepper__step--active": i(m) === "active",
|
|
1619
|
+
"br-stepper__step--pending": i(m) === "pending",
|
|
1620
|
+
"br-stepper__step--error": f.error,
|
|
1621
|
+
"br-stepper__step--clickable": d(m)
|
|
1622
|
+
}]),
|
|
1623
|
+
role: e.clickable ? "button" : void 0,
|
|
1624
|
+
tabindex: d(m) ? 0 : void 0,
|
|
1625
|
+
onClick: (B) => b(m),
|
|
1626
|
+
onKeydown: re((B) => b(m), ["enter"])
|
|
1627
|
+
}, [
|
|
1628
|
+
n("div", Sa, [
|
|
1629
|
+
n("span", Ta, [
|
|
1630
|
+
i(m) === "completed" && !f.error ? (l(), s("svg", Fa, [..._[0] || (_[0] = [
|
|
1631
|
+
n("path", { d: "M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z" }, null, -1)
|
|
1632
|
+
])])) : f.error ? (l(), s("svg", Pa, [..._[1] || (_[1] = [
|
|
1633
|
+
n("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" }, null, -1)
|
|
1634
|
+
])])) : e.showNumbers ? (l(), s(L, { key: 2 }, [
|
|
1635
|
+
H(g(m + 1), 1)
|
|
1636
|
+
], 64)) : c("", !0)
|
|
1637
|
+
]),
|
|
1638
|
+
m < e.steps.length - 1 ? (l(), s("div", Ea)) : c("", !0)
|
|
1639
|
+
]),
|
|
1640
|
+
n("div", Oa, [
|
|
1641
|
+
n("span", Ra, [
|
|
1642
|
+
H(g(f.title) + " ", 1),
|
|
1643
|
+
f.optional ? (l(), s("span", Ha, "(Opcional)")) : c("", !0)
|
|
1644
|
+
]),
|
|
1645
|
+
f.description || f.errorMessage ? (l(), s("span", Na, g(f.error ? f.errorMessage : f.description), 1)) : c("", !0)
|
|
1646
|
+
])
|
|
1647
|
+
], 42, Ia))), 128))
|
|
1648
|
+
], 2));
|
|
1649
|
+
}
|
|
1650
|
+
}), Ya = /* @__PURE__ */ M(Aa, [["__scopeId", "data-v-f0034788"]]), Wa = { class: "br-calendar__header" }, ja = ["disabled"], Ua = ["disabled"], Ka = ["disabled"], qa = {
|
|
1651
|
+
key: 0,
|
|
1652
|
+
class: "br-calendar__days"
|
|
1653
|
+
}, Ga = { class: "br-calendar__weekdays" }, Xa = {
|
|
1654
|
+
key: 0,
|
|
1655
|
+
class: "br-calendar__weekday"
|
|
1656
|
+
}, Qa = { class: "br-calendar__grid" }, Ja = {
|
|
1657
|
+
key: 0,
|
|
1658
|
+
class: "br-calendar__week-number"
|
|
1659
|
+
}, Za = ["disabled", "title", "onClick"], el = {
|
|
1660
|
+
key: 1,
|
|
1661
|
+
class: "br-calendar__months"
|
|
1662
|
+
}, tl = ["disabled", "onClick"], al = {
|
|
1663
|
+
key: 2,
|
|
1664
|
+
class: "br-calendar__years"
|
|
1665
|
+
}, ll = ["disabled", "onClick"], sl = { class: "br-calendar__footer" }, ol = ["disabled"], rl = /* @__PURE__ */ C({
|
|
1666
|
+
__name: "BrCalendar",
|
|
1667
|
+
props: /* @__PURE__ */ S({
|
|
1668
|
+
minDate: {},
|
|
1669
|
+
maxDate: {},
|
|
1670
|
+
disabledDates: {},
|
|
1671
|
+
view: { default: "day" },
|
|
1672
|
+
firstDayOfWeek: { default: 0 },
|
|
1673
|
+
showWeekNumbers: { type: Boolean, default: !1 },
|
|
1674
|
+
multiple: { type: Boolean, default: !1 },
|
|
1675
|
+
range: { type: Boolean, default: !1 },
|
|
1676
|
+
locale: { default: "pt-BR" },
|
|
1677
|
+
readonly: { type: Boolean, default: !1 },
|
|
1678
|
+
disabled: { type: Boolean, default: !1 },
|
|
1679
|
+
highlightedDates: {}
|
|
1680
|
+
}, {
|
|
1681
|
+
modelValue: {},
|
|
1682
|
+
modelModifiers: {}
|
|
1683
|
+
}),
|
|
1684
|
+
emits: ["update:modelValue"],
|
|
1685
|
+
setup(e) {
|
|
1686
|
+
const t = e, a = E(e, "modelValue"), o = z(t.view), r = z(/* @__PURE__ */ new Date()), h = y(() => {
|
|
1687
|
+
const p = [], v = new Date(2024, 0, t.firstDayOfWeek);
|
|
1688
|
+
for (let k = 0; k < 7; k++) {
|
|
1689
|
+
const T = new Date(v);
|
|
1690
|
+
T.setDate(v.getDate() + k), p.push(T.toLocaleDateString(t.locale, { weekday: "short" }));
|
|
1691
|
+
}
|
|
1692
|
+
return p;
|
|
1693
|
+
}), i = y(() => r.value.toLocaleDateString(t.locale, { month: "long", year: "numeric" })), d = y(() => {
|
|
1694
|
+
const p = r.value.getFullYear(), v = r.value.getMonth(), k = new Date(p, v, 1), T = new Date(p, v + 1, 0), W = [], q = (k.getDay() - t.firstDayOfWeek + 7) % 7;
|
|
1695
|
+
for (let N = q - 1; N >= 0; N--) {
|
|
1696
|
+
const j = new Date(p, v, -N);
|
|
1697
|
+
W.push({ date: j, isCurrentMonth: !1, isToday: !1 });
|
|
1698
|
+
}
|
|
1699
|
+
const G = /* @__PURE__ */ new Date();
|
|
1700
|
+
for (let N = 1; N <= T.getDate(); N++) {
|
|
1701
|
+
const j = new Date(p, v, N), be = j.getDate() === G.getDate() && j.getMonth() === G.getMonth() && j.getFullYear() === G.getFullYear();
|
|
1702
|
+
W.push({ date: j, isCurrentMonth: !0, isToday: be });
|
|
1703
|
+
}
|
|
1704
|
+
const ce = 42 - W.length;
|
|
1705
|
+
for (let N = 1; N <= ce; N++) {
|
|
1706
|
+
const j = new Date(p, v + 1, N);
|
|
1707
|
+
W.push({ date: j, isCurrentMonth: !1, isToday: !1 });
|
|
1708
|
+
}
|
|
1709
|
+
return W;
|
|
1710
|
+
}), b = y(() => {
|
|
1711
|
+
const p = [];
|
|
1712
|
+
for (let v = 0; v < 12; v++) {
|
|
1713
|
+
const k = new Date(r.value.getFullYear(), v, 1);
|
|
1714
|
+
p.push({
|
|
1715
|
+
index: v,
|
|
1716
|
+
name: k.toLocaleDateString(t.locale, { month: "short" })
|
|
1717
|
+
});
|
|
1718
|
+
}
|
|
1719
|
+
return p;
|
|
1720
|
+
}), u = y(() => {
|
|
1721
|
+
const p = r.value.getFullYear(), v = Math.floor(p / 10) * 10, k = [];
|
|
1722
|
+
for (let T = v - 1; T <= v + 10; T++)
|
|
1723
|
+
k.push(T);
|
|
1724
|
+
return k;
|
|
1725
|
+
});
|
|
1726
|
+
function _(p) {
|
|
1727
|
+
if (t.disabled) return !0;
|
|
1728
|
+
if (t.minDate) {
|
|
1729
|
+
const v = new Date(t.minDate);
|
|
1730
|
+
if (v.setHours(0, 0, 0, 0), p < v) return !0;
|
|
1731
|
+
}
|
|
1732
|
+
if (t.maxDate) {
|
|
1733
|
+
const v = new Date(t.maxDate);
|
|
1734
|
+
if (v.setHours(23, 59, 59, 999), p > v) return !0;
|
|
1735
|
+
}
|
|
1736
|
+
return t.disabledDates ? t.disabledDates.some((v) => {
|
|
1737
|
+
const k = new Date(v);
|
|
1738
|
+
return p.getDate() === k.getDate() && p.getMonth() === k.getMonth() && p.getFullYear() === k.getFullYear();
|
|
1739
|
+
}) : !1;
|
|
1740
|
+
}
|
|
1741
|
+
function f(p) {
|
|
1742
|
+
if (!a.value) return !1;
|
|
1743
|
+
if (t.range && typeof a.value == "object" && "start" in a.value) {
|
|
1744
|
+
const v = a.value;
|
|
1745
|
+
return !!(v.start && B(p, v.start) || v.end && B(p, v.end));
|
|
1746
|
+
}
|
|
1747
|
+
return t.multiple && Array.isArray(a.value) ? a.value.some((v) => B(p, v)) : a.value instanceof Date ? B(p, a.value) : !1;
|
|
1748
|
+
}
|
|
1749
|
+
function m(p) {
|
|
1750
|
+
if (!t.range || !a.value || typeof a.value != "object" || !("start" in a.value))
|
|
1751
|
+
return !1;
|
|
1752
|
+
const v = a.value;
|
|
1753
|
+
return !v.start || !v.end ? !1 : p > v.start && p < v.end;
|
|
1754
|
+
}
|
|
1755
|
+
function B(p, v) {
|
|
1756
|
+
return p.getDate() === v.getDate() && p.getMonth() === v.getMonth() && p.getFullYear() === v.getFullYear();
|
|
1757
|
+
}
|
|
1758
|
+
function D(p) {
|
|
1759
|
+
return t.highlightedDates ? t.highlightedDates.find((v) => B(p, new Date(v.date))) : null;
|
|
1760
|
+
}
|
|
1761
|
+
function V(p) {
|
|
1762
|
+
if (!(t.readonly || t.disabled || _(p)))
|
|
1763
|
+
if (t.range) {
|
|
1764
|
+
const v = a.value || { start: null, end: null };
|
|
1765
|
+
!v.start || v.end ? a.value = { start: p, end: null } : p < v.start ? a.value = { start: p, end: v.start } : a.value = { start: v.start, end: p };
|
|
1766
|
+
} else if (t.multiple) {
|
|
1767
|
+
const v = a.value || [], k = v.findIndex((T) => B(T, p));
|
|
1768
|
+
if (k > -1) {
|
|
1769
|
+
const T = [...v];
|
|
1770
|
+
T.splice(k, 1), a.value = T;
|
|
1771
|
+
} else
|
|
1772
|
+
a.value = [...v, p];
|
|
1773
|
+
} else
|
|
1774
|
+
a.value = p;
|
|
1775
|
+
}
|
|
1776
|
+
function x(p) {
|
|
1777
|
+
r.value = new Date(r.value.getFullYear(), p, 1), o.value = "day";
|
|
1778
|
+
}
|
|
1779
|
+
function O(p) {
|
|
1780
|
+
r.value = new Date(p, r.value.getMonth(), 1), o.value = "month";
|
|
1781
|
+
}
|
|
1782
|
+
function I(p) {
|
|
1783
|
+
const v = new Date(r.value);
|
|
1784
|
+
o.value === "day" ? v.setMonth(v.getMonth() + p) : o.value === "month" ? v.setFullYear(v.getFullYear() + p) : v.setFullYear(v.getFullYear() + p * 10), r.value = v;
|
|
1785
|
+
}
|
|
1786
|
+
function R() {
|
|
1787
|
+
r.value = /* @__PURE__ */ new Date(), o.value = "day";
|
|
1788
|
+
}
|
|
1789
|
+
const K = y(() => [
|
|
1790
|
+
"br-calendar",
|
|
1791
|
+
{
|
|
1792
|
+
"br-calendar--disabled": t.disabled,
|
|
1793
|
+
"br-calendar--readonly": t.readonly
|
|
1794
|
+
}
|
|
1795
|
+
]);
|
|
1796
|
+
return (p, v) => (l(), s("div", {
|
|
1797
|
+
class: $(K.value)
|
|
1798
|
+
}, [
|
|
1799
|
+
n("div", Wa, [
|
|
1800
|
+
n("button", {
|
|
1801
|
+
type: "button",
|
|
1802
|
+
class: "br-calendar__nav",
|
|
1803
|
+
disabled: e.disabled,
|
|
1804
|
+
onClick: v[0] || (v[0] = (k) => I(-1))
|
|
1805
|
+
}, [...v[3] || (v[3] = [
|
|
1806
|
+
n("svg", {
|
|
1807
|
+
viewBox: "0 0 24 24",
|
|
1808
|
+
fill: "currentColor"
|
|
1809
|
+
}, [
|
|
1810
|
+
n("path", { d: "M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z" })
|
|
1811
|
+
], -1)
|
|
1812
|
+
])], 8, ja),
|
|
1813
|
+
n("button", {
|
|
1814
|
+
type: "button",
|
|
1815
|
+
class: "br-calendar__title",
|
|
1816
|
+
disabled: e.disabled,
|
|
1817
|
+
onClick: v[1] || (v[1] = (k) => o.value = o.value === "day" ? "month" : "year")
|
|
1818
|
+
}, g(i.value), 9, Ua),
|
|
1819
|
+
n("button", {
|
|
1820
|
+
type: "button",
|
|
1821
|
+
class: "br-calendar__nav",
|
|
1822
|
+
disabled: e.disabled,
|
|
1823
|
+
onClick: v[2] || (v[2] = (k) => I(1))
|
|
1824
|
+
}, [...v[4] || (v[4] = [
|
|
1825
|
+
n("svg", {
|
|
1826
|
+
viewBox: "0 0 24 24",
|
|
1827
|
+
fill: "currentColor"
|
|
1828
|
+
}, [
|
|
1829
|
+
n("path", { d: "M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z" })
|
|
1830
|
+
], -1)
|
|
1831
|
+
])], 8, Ka)
|
|
1832
|
+
]),
|
|
1833
|
+
o.value === "day" ? (l(), s("div", qa, [
|
|
1834
|
+
n("div", Ga, [
|
|
1835
|
+
e.showWeekNumbers ? (l(), s("span", Xa, "#")) : c("", !0),
|
|
1836
|
+
(l(!0), s(L, null, F(h.value, (k) => (l(), s("span", {
|
|
1837
|
+
key: k,
|
|
1838
|
+
class: "br-calendar__weekday"
|
|
1839
|
+
}, g(k), 1))), 128))
|
|
1840
|
+
]),
|
|
1841
|
+
n("div", Qa, [
|
|
1842
|
+
(l(!0), s(L, null, F(d.value, (k, T) => {
|
|
1843
|
+
var W, q;
|
|
1844
|
+
return l(), s(L, { key: T }, [
|
|
1845
|
+
e.showWeekNumbers && T % 7 === 0 ? (l(), s("span", Ja, g(Math.ceil((T + 1) / 7)), 1)) : c("", !0),
|
|
1846
|
+
n("button", {
|
|
1847
|
+
type: "button",
|
|
1848
|
+
class: $(["br-calendar__day", {
|
|
1849
|
+
"br-calendar__day--other-month": !k.isCurrentMonth,
|
|
1850
|
+
"br-calendar__day--today": k.isToday,
|
|
1851
|
+
"br-calendar__day--selected": f(k.date),
|
|
1852
|
+
"br-calendar__day--in-range": m(k.date),
|
|
1853
|
+
"br-calendar__day--disabled": _(k.date),
|
|
1854
|
+
"br-calendar__day--highlighted": D(k.date)
|
|
1855
|
+
}]),
|
|
1856
|
+
style: P(D(k.date) ? { "--highlight-color": (W = D(k.date)) == null ? void 0 : W.color } : {}),
|
|
1857
|
+
disabled: _(k.date),
|
|
1858
|
+
title: (q = D(k.date)) == null ? void 0 : q.label,
|
|
1859
|
+
onClick: (G) => V(k.date)
|
|
1860
|
+
}, g(k.date.getDate()), 15, Za)
|
|
1861
|
+
], 64);
|
|
1862
|
+
}), 128))
|
|
1863
|
+
])
|
|
1864
|
+
])) : o.value === "month" ? (l(), s("div", el, [
|
|
1865
|
+
(l(!0), s(L, null, F(b.value, (k) => (l(), s("button", {
|
|
1866
|
+
key: k.index,
|
|
1867
|
+
type: "button",
|
|
1868
|
+
class: $(["br-calendar__month", {
|
|
1869
|
+
"br-calendar__month--current": k.index === (/* @__PURE__ */ new Date()).getMonth() && r.value.getFullYear() === (/* @__PURE__ */ new Date()).getFullYear()
|
|
1870
|
+
}]),
|
|
1871
|
+
disabled: e.disabled,
|
|
1872
|
+
onClick: (T) => x(k.index)
|
|
1873
|
+
}, g(k.name), 11, tl))), 128))
|
|
1874
|
+
])) : (l(), s("div", al, [
|
|
1875
|
+
(l(!0), s(L, null, F(u.value, (k) => (l(), s("button", {
|
|
1876
|
+
key: k,
|
|
1877
|
+
type: "button",
|
|
1878
|
+
class: $(["br-calendar__year", {
|
|
1879
|
+
"br-calendar__year--current": k === (/* @__PURE__ */ new Date()).getFullYear()
|
|
1880
|
+
}]),
|
|
1881
|
+
disabled: e.disabled,
|
|
1882
|
+
onClick: (T) => O(k)
|
|
1883
|
+
}, g(k), 11, ll))), 128))
|
|
1884
|
+
])),
|
|
1885
|
+
n("div", sl, [
|
|
1886
|
+
n("button", {
|
|
1887
|
+
type: "button",
|
|
1888
|
+
class: "br-calendar__today",
|
|
1889
|
+
disabled: e.disabled,
|
|
1890
|
+
onClick: R
|
|
1891
|
+
}, " Hoje ", 8, ol)
|
|
1892
|
+
])
|
|
1893
|
+
], 2));
|
|
1894
|
+
}
|
|
1895
|
+
}), nl = /* @__PURE__ */ M(rl, [["__scopeId", "data-v-7956906a"]]), il = {
|
|
1896
|
+
class: "br-tabs__list",
|
|
1897
|
+
role: "tablist"
|
|
1898
|
+
}, dl = ["aria-selected", "disabled", "onClick"], ul = {
|
|
1899
|
+
key: 0,
|
|
1900
|
+
class: "br-tabs__tab-icon"
|
|
1901
|
+
}, cl = { class: "br-tabs__tab-label" }, bl = {
|
|
1902
|
+
key: 1,
|
|
1903
|
+
class: "br-tabs__tab-badge"
|
|
1904
|
+
}, fl = ["onClick"], vl = { class: "br-tabs__panels" }, hl = /* @__PURE__ */ C({
|
|
1905
|
+
__name: "BrTabs",
|
|
1906
|
+
props: /* @__PURE__ */ S({
|
|
1907
|
+
items: {},
|
|
1908
|
+
variant: { default: "default" },
|
|
1909
|
+
size: { default: "md" },
|
|
1910
|
+
fullWidth: { type: Boolean, default: !1 },
|
|
1911
|
+
centered: { type: Boolean, default: !1 },
|
|
1912
|
+
vertical: { type: Boolean, default: !1 },
|
|
1913
|
+
grow: { type: Boolean, default: !1 },
|
|
1914
|
+
closable: { type: Boolean, default: !1 },
|
|
1915
|
+
lazy: { type: Boolean, default: !0 }
|
|
1916
|
+
}, {
|
|
1917
|
+
modelValue: {},
|
|
1918
|
+
modelModifiers: {}
|
|
1919
|
+
}),
|
|
1920
|
+
emits: /* @__PURE__ */ S(["tab-close"], ["update:modelValue"]),
|
|
1921
|
+
setup(e, { emit: t }) {
|
|
1922
|
+
const a = e, o = E(e, "modelValue"), r = t, h = y(() => [
|
|
1923
|
+
"br-tabs",
|
|
1924
|
+
`br-tabs--${a.variant}`,
|
|
1925
|
+
`br-tabs--${a.size}`,
|
|
1926
|
+
{
|
|
1927
|
+
"br-tabs--full-width": a.fullWidth,
|
|
1928
|
+
"br-tabs--centered": a.centered,
|
|
1929
|
+
"br-tabs--vertical": a.vertical,
|
|
1930
|
+
"br-tabs--grow": a.grow
|
|
1931
|
+
}
|
|
1932
|
+
]);
|
|
1933
|
+
function i(b) {
|
|
1934
|
+
o.value = b;
|
|
1935
|
+
}
|
|
1936
|
+
function d(b, u) {
|
|
1937
|
+
u.stopPropagation(), r("tab-close", b);
|
|
1938
|
+
}
|
|
1939
|
+
return ae(
|
|
1940
|
+
"tabs",
|
|
1941
|
+
oe({
|
|
1942
|
+
activeTab: o,
|
|
1943
|
+
selectTab: i,
|
|
1944
|
+
lazy: y(() => a.lazy)
|
|
1945
|
+
})
|
|
1946
|
+
), (b, u) => (l(), s("div", {
|
|
1947
|
+
class: $(h.value)
|
|
1948
|
+
}, [
|
|
1949
|
+
n("div", il, [
|
|
1950
|
+
e.items && e.items.length ? (l(!0), s(L, { key: 0 }, F(e.items, (_) => (l(), s("button", {
|
|
1951
|
+
key: _.id,
|
|
1952
|
+
type: "button",
|
|
1953
|
+
role: "tab",
|
|
1954
|
+
class: $(["br-tabs__tab", {
|
|
1955
|
+
"br-tabs__tab--active": o.value === _.id,
|
|
1956
|
+
"br-tabs__tab--disabled": _.disabled
|
|
1957
|
+
}]),
|
|
1958
|
+
"aria-selected": o.value === _.id,
|
|
1959
|
+
disabled: _.disabled,
|
|
1960
|
+
onClick: (f) => i(_.id)
|
|
1961
|
+
}, [
|
|
1962
|
+
_.icon ? (l(), s("span", ul, g(_.icon), 1)) : c("", !0),
|
|
1963
|
+
n("span", cl, g(_.label), 1),
|
|
1964
|
+
_.badge !== void 0 ? (l(), s("span", bl, g(_.badge), 1)) : c("", !0),
|
|
1965
|
+
e.closable || _.closable ? (l(), s("button", {
|
|
1966
|
+
key: 2,
|
|
1967
|
+
type: "button",
|
|
1968
|
+
class: "br-tabs__tab-close",
|
|
1969
|
+
onClick: (f) => d(_.id, f)
|
|
1970
|
+
}, [...u[0] || (u[0] = [
|
|
1971
|
+
n("svg", {
|
|
1972
|
+
viewBox: "0 0 24 24",
|
|
1973
|
+
fill: "currentColor"
|
|
1974
|
+
}, [
|
|
1975
|
+
n("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" })
|
|
1976
|
+
], -1)
|
|
1977
|
+
])], 8, fl)) : c("", !0)
|
|
1978
|
+
], 10, dl))), 128)) : w(b.$slots, "tabs", { key: 1 }, void 0, !0)
|
|
1979
|
+
]),
|
|
1980
|
+
n("div", vl, [
|
|
1981
|
+
e.items && e.items.length ? (l(!0), s(L, { key: 0 }, F(e.items, (_) => Z((l(), s("div", {
|
|
1982
|
+
key: _.id,
|
|
1983
|
+
role: "tabpanel",
|
|
1984
|
+
class: "br-tabs__panel"
|
|
1985
|
+
}, [
|
|
1986
|
+
w(b.$slots, `panel-${_.id}`, { item: _ }, () => [
|
|
1987
|
+
H(g(_.content), 1)
|
|
1988
|
+
], !0)
|
|
1989
|
+
])), [
|
|
1990
|
+
[ne, o.value === _.id]
|
|
1991
|
+
])), 128)) : w(b.$slots, "default", { key: 1 }, void 0, !0)
|
|
1992
|
+
])
|
|
1993
|
+
], 2));
|
|
1994
|
+
}
|
|
1995
|
+
}), ml = /* @__PURE__ */ M(hl, [["__scopeId", "data-v-21d654c4"]]), _l = ["aria-selected", "disabled"], yl = {
|
|
1996
|
+
key: 0,
|
|
1997
|
+
class: "br-tabs__tab-icon"
|
|
1998
|
+
}, gl = { class: "br-tabs__tab-label" }, pl = {
|
|
1999
|
+
key: 1,
|
|
2000
|
+
class: "br-tabs__tab-badge"
|
|
2001
|
+
}, kl = /* @__PURE__ */ C({
|
|
2002
|
+
__name: "BrTab",
|
|
2003
|
+
props: {
|
|
2004
|
+
id: {},
|
|
2005
|
+
label: {},
|
|
2006
|
+
icon: {},
|
|
2007
|
+
disabled: { type: Boolean, default: !1 },
|
|
2008
|
+
badge: {},
|
|
2009
|
+
closable: { type: Boolean, default: !1 }
|
|
2010
|
+
},
|
|
2011
|
+
emits: ["close"],
|
|
2012
|
+
setup(e, { emit: t }) {
|
|
2013
|
+
const a = e, o = t, r = te("tabs"), h = y(() => (r == null ? void 0 : r.activeTab.value) === a.id), i = y(() => [
|
|
2014
|
+
"br-tabs__tab",
|
|
2015
|
+
{
|
|
2016
|
+
"br-tabs__tab--active": h.value,
|
|
2017
|
+
"br-tabs__tab--disabled": a.disabled
|
|
2018
|
+
}
|
|
2019
|
+
]);
|
|
2020
|
+
function d() {
|
|
2021
|
+
a.disabled || r == null || r.selectTab(a.id);
|
|
2022
|
+
}
|
|
2023
|
+
function b(u) {
|
|
2024
|
+
u.stopPropagation(), o("close");
|
|
2025
|
+
}
|
|
2026
|
+
return (u, _) => (l(), s("button", {
|
|
2027
|
+
type: "button",
|
|
2028
|
+
role: "tab",
|
|
2029
|
+
class: $(i.value),
|
|
2030
|
+
"aria-selected": h.value,
|
|
2031
|
+
disabled: e.disabled,
|
|
2032
|
+
onClick: d
|
|
2033
|
+
}, [
|
|
2034
|
+
e.icon ? (l(), s("span", yl, [
|
|
2035
|
+
w(u.$slots, "icon", {}, () => [
|
|
2036
|
+
H(g(e.icon), 1)
|
|
2037
|
+
])
|
|
2038
|
+
])) : c("", !0),
|
|
2039
|
+
n("span", gl, [
|
|
2040
|
+
w(u.$slots, "default", {}, () => [
|
|
2041
|
+
H(g(e.label), 1)
|
|
2042
|
+
])
|
|
2043
|
+
]),
|
|
2044
|
+
e.badge !== void 0 ? (l(), s("span", pl, g(e.badge), 1)) : c("", !0),
|
|
2045
|
+
e.closable ? (l(), s("button", {
|
|
2046
|
+
key: 2,
|
|
2047
|
+
type: "button",
|
|
2048
|
+
class: "br-tabs__tab-close",
|
|
2049
|
+
onClick: b
|
|
2050
|
+
}, [..._[0] || (_[0] = [
|
|
2051
|
+
n("svg", {
|
|
2052
|
+
viewBox: "0 0 24 24",
|
|
2053
|
+
fill: "currentColor"
|
|
2054
|
+
}, [
|
|
2055
|
+
n("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" })
|
|
2056
|
+
], -1)
|
|
2057
|
+
])])) : c("", !0)
|
|
2058
|
+
], 10, _l));
|
|
2059
|
+
}
|
|
2060
|
+
}), $l = {
|
|
2061
|
+
key: 0,
|
|
2062
|
+
role: "tabpanel",
|
|
2063
|
+
class: "br-tabs__panel"
|
|
2064
|
+
}, Bl = /* @__PURE__ */ C({
|
|
2065
|
+
__name: "BrTabPanel",
|
|
2066
|
+
props: {
|
|
2067
|
+
tabId: {},
|
|
2068
|
+
lazy: { type: Boolean, default: !0 }
|
|
2069
|
+
},
|
|
2070
|
+
setup(e) {
|
|
2071
|
+
const t = e, a = te("tabs"), o = z(!1), r = y(() => (a == null ? void 0 : a.activeTab.value) === t.tabId), h = y(() => t.lazy ?? (a == null ? void 0 : a.lazy.value) ?? !0 ? r.value || o.value : !0);
|
|
2072
|
+
return ee(r, (i) => {
|
|
2073
|
+
i && (o.value = !0);
|
|
2074
|
+
}), (i, d) => h.value ? Z((l(), s("div", $l, [
|
|
2075
|
+
w(i.$slots, "default")
|
|
2076
|
+
], 512)), [
|
|
2077
|
+
[ne, r.value]
|
|
2078
|
+
]) : c("", !0);
|
|
2079
|
+
}
|
|
2080
|
+
}), wl = { class: "br-navbar__container" }, xl = { class: "br-navbar__brand" }, Cl = ["src"], Ml = {
|
|
2081
|
+
key: 1,
|
|
2082
|
+
class: "br-navbar__brand-text"
|
|
2083
|
+
}, zl = { class: "br-navbar__nav" }, Dl = {
|
|
2084
|
+
key: 0,
|
|
2085
|
+
class: "br-navbar__dropdown"
|
|
2086
|
+
}, Vl = ["disabled"], Ll = {
|
|
2087
|
+
key: 0,
|
|
2088
|
+
class: "br-navbar__item-icon"
|
|
2089
|
+
}, Il = { class: "br-navbar__dropdown-menu" }, Sl = {
|
|
2090
|
+
key: 0,
|
|
2091
|
+
class: "br-navbar__item-icon"
|
|
2092
|
+
}, Tl = {
|
|
2093
|
+
key: 0,
|
|
2094
|
+
class: "br-navbar__item-icon"
|
|
2095
|
+
}, Fl = {
|
|
2096
|
+
key: 1,
|
|
2097
|
+
class: "br-navbar__item-badge"
|
|
2098
|
+
}, Pl = { class: "br-navbar__actions" }, El = ["aria-expanded"], Ol = {
|
|
2099
|
+
key: 0,
|
|
2100
|
+
class: "br-navbar__mobile-menu"
|
|
2101
|
+
}, Rl = {
|
|
2102
|
+
key: 0,
|
|
2103
|
+
class: "br-navbar__item-icon"
|
|
2104
|
+
}, Hl = /* @__PURE__ */ C({
|
|
2105
|
+
__name: "BrNavbar",
|
|
2106
|
+
props: {
|
|
2107
|
+
items: {},
|
|
2108
|
+
brand: {},
|
|
2109
|
+
logo: {},
|
|
2110
|
+
variant: { default: "default" },
|
|
2111
|
+
position: { default: "static" },
|
|
2112
|
+
showMobileToggle: { type: Boolean, default: !0 },
|
|
2113
|
+
elevated: { type: Boolean, default: !0 },
|
|
2114
|
+
dense: { type: Boolean, default: !1 },
|
|
2115
|
+
color: {}
|
|
2116
|
+
},
|
|
2117
|
+
setup(e) {
|
|
2118
|
+
const t = e, a = z(!1), o = y(() => [
|
|
2119
|
+
"br-navbar",
|
|
2120
|
+
`br-navbar--${t.variant}`,
|
|
2121
|
+
`br-navbar--${t.position}`,
|
|
2122
|
+
{
|
|
2123
|
+
"br-navbar--elevated": t.elevated,
|
|
2124
|
+
"br-navbar--dense": t.dense,
|
|
2125
|
+
"br-navbar--mobile-open": a.value
|
|
2126
|
+
}
|
|
2127
|
+
]), r = y(() => t.color && t.variant === "colored" ? { "--navbar-color": t.color } : {});
|
|
2128
|
+
function h() {
|
|
2129
|
+
a.value = !a.value;
|
|
2130
|
+
}
|
|
2131
|
+
function i() {
|
|
2132
|
+
a.value = !1;
|
|
2133
|
+
}
|
|
2134
|
+
return (d, b) => (l(), s("nav", {
|
|
2135
|
+
class: $(o.value),
|
|
2136
|
+
style: P(r.value)
|
|
2137
|
+
}, [
|
|
2138
|
+
n("div", wl, [
|
|
2139
|
+
n("div", xl, [
|
|
2140
|
+
w(d.$slots, "brand", {}, () => [
|
|
2141
|
+
e.logo ? (l(), s("img", {
|
|
2142
|
+
key: 0,
|
|
2143
|
+
src: e.logo,
|
|
2144
|
+
alt: "",
|
|
2145
|
+
class: "br-navbar__logo"
|
|
2146
|
+
}, null, 8, Cl)) : c("", !0),
|
|
2147
|
+
e.brand ? (l(), s("span", Ml, g(e.brand), 1)) : c("", !0)
|
|
2148
|
+
], !0)
|
|
2149
|
+
]),
|
|
2150
|
+
n("div", zl, [
|
|
2151
|
+
w(d.$slots, "nav", {}, () => [
|
|
2152
|
+
e.items && e.items.length ? (l(!0), s(L, { key: 0 }, F(e.items, (u) => (l(), s(L, {
|
|
2153
|
+
key: u.id
|
|
2154
|
+
}, [
|
|
2155
|
+
u.children && u.children.length ? (l(), s("div", Dl, [
|
|
2156
|
+
n("button", {
|
|
2157
|
+
type: "button",
|
|
2158
|
+
class: "br-navbar__item br-navbar__dropdown-trigger",
|
|
2159
|
+
disabled: u.disabled
|
|
2160
|
+
}, [
|
|
2161
|
+
u.icon ? (l(), s("span", Ll, g(u.icon), 1)) : c("", !0),
|
|
2162
|
+
n("span", null, g(u.label), 1),
|
|
2163
|
+
b[0] || (b[0] = n("svg", {
|
|
2164
|
+
class: "br-navbar__dropdown-arrow",
|
|
2165
|
+
viewBox: "0 0 24 24",
|
|
2166
|
+
fill: "currentColor"
|
|
2167
|
+
}, [
|
|
2168
|
+
n("path", { d: "M7 10l5 5 5-5z" })
|
|
2169
|
+
], -1))
|
|
2170
|
+
], 8, Vl),
|
|
2171
|
+
n("div", Il, [
|
|
2172
|
+
(l(!0), s(L, null, F(u.children, (_) => (l(), Y(U(_.to ? "router-link" : _.href ? "a" : "button"), {
|
|
2173
|
+
key: _.id,
|
|
2174
|
+
class: "br-navbar__dropdown-item",
|
|
2175
|
+
to: _.to,
|
|
2176
|
+
href: _.href,
|
|
2177
|
+
disabled: _.disabled,
|
|
2178
|
+
onClick: _.onClick
|
|
2179
|
+
}, {
|
|
2180
|
+
default: A(() => [
|
|
2181
|
+
_.icon ? (l(), s("span", Sl, g(_.icon), 1)) : c("", !0),
|
|
2182
|
+
n("span", null, g(_.label), 1)
|
|
2183
|
+
]),
|
|
2184
|
+
_: 2
|
|
2185
|
+
}, 1032, ["to", "href", "disabled", "onClick"]))), 128))
|
|
2186
|
+
])
|
|
2187
|
+
])) : (l(), Y(U(u.to ? "router-link" : u.href ? "a" : "button"), {
|
|
2188
|
+
key: 1,
|
|
2189
|
+
class: "br-navbar__item",
|
|
2190
|
+
to: u.to,
|
|
2191
|
+
href: u.href,
|
|
2192
|
+
disabled: u.disabled,
|
|
2193
|
+
onClick: u.onClick
|
|
2194
|
+
}, {
|
|
2195
|
+
default: A(() => [
|
|
2196
|
+
u.icon ? (l(), s("span", Tl, g(u.icon), 1)) : c("", !0),
|
|
2197
|
+
n("span", null, g(u.label), 1),
|
|
2198
|
+
u.badge ? (l(), s("span", Fl, g(u.badge), 1)) : c("", !0)
|
|
2199
|
+
]),
|
|
2200
|
+
_: 2
|
|
2201
|
+
}, 1032, ["to", "href", "disabled", "onClick"]))
|
|
2202
|
+
], 64))), 128)) : c("", !0)
|
|
2203
|
+
], !0)
|
|
2204
|
+
]),
|
|
2205
|
+
n("div", Pl, [
|
|
2206
|
+
w(d.$slots, "actions", {}, void 0, !0)
|
|
2207
|
+
]),
|
|
2208
|
+
e.showMobileToggle ? (l(), s("button", {
|
|
2209
|
+
key: 0,
|
|
2210
|
+
type: "button",
|
|
2211
|
+
class: "br-navbar__mobile-toggle",
|
|
2212
|
+
"aria-expanded": a.value,
|
|
2213
|
+
onClick: h
|
|
2214
|
+
}, [...b[1] || (b[1] = [
|
|
2215
|
+
n("span", { class: "br-navbar__mobile-toggle-bar" }, null, -1),
|
|
2216
|
+
n("span", { class: "br-navbar__mobile-toggle-bar" }, null, -1),
|
|
2217
|
+
n("span", { class: "br-navbar__mobile-toggle-bar" }, null, -1)
|
|
2218
|
+
])], 8, El)) : c("", !0)
|
|
2219
|
+
]),
|
|
2220
|
+
e.showMobileToggle ? (l(), s("div", Ol, [
|
|
2221
|
+
w(d.$slots, "mobile-nav", {}, () => [
|
|
2222
|
+
e.items && e.items.length ? (l(!0), s(L, { key: 0 }, F(e.items, (u) => (l(), Y(U(u.to ? "router-link" : u.href ? "a" : "button"), {
|
|
2223
|
+
key: u.id,
|
|
2224
|
+
class: "br-navbar__mobile-item",
|
|
2225
|
+
to: u.to,
|
|
2226
|
+
href: u.href,
|
|
2227
|
+
disabled: u.disabled,
|
|
2228
|
+
onClick: (_) => {
|
|
2229
|
+
var f;
|
|
2230
|
+
i(), (f = u.onClick) == null || f.call(u);
|
|
2231
|
+
}
|
|
2232
|
+
}, {
|
|
2233
|
+
default: A(() => [
|
|
2234
|
+
u.icon ? (l(), s("span", Rl, g(u.icon), 1)) : c("", !0),
|
|
2235
|
+
n("span", null, g(u.label), 1)
|
|
2236
|
+
]),
|
|
2237
|
+
_: 2
|
|
2238
|
+
}, 1032, ["to", "href", "disabled", "onClick"]))), 128)) : c("", !0)
|
|
2239
|
+
], !0),
|
|
2240
|
+
w(d.$slots, "mobile-actions", {}, void 0, !0)
|
|
2241
|
+
])) : c("", !0)
|
|
2242
|
+
], 6));
|
|
2243
|
+
}
|
|
2244
|
+
}), Nl = /* @__PURE__ */ M(Hl, [["__scopeId", "data-v-d4c51b2f"]]), Al = {
|
|
2245
|
+
key: 0,
|
|
2246
|
+
class: "br-sidebar__brand"
|
|
2247
|
+
}, Yl = ["src"], Wl = {
|
|
2248
|
+
key: 1,
|
|
2249
|
+
class: "br-sidebar__brand-text"
|
|
2250
|
+
}, jl = { class: "br-sidebar__nav" }, Ul = {
|
|
2251
|
+
key: 0,
|
|
2252
|
+
class: "br-sidebar__divider"
|
|
2253
|
+
}, Kl = { key: 0 }, ql = {
|
|
2254
|
+
key: 1,
|
|
2255
|
+
class: "br-sidebar__group"
|
|
2256
|
+
}, Gl = ["disabled", "onClick"], Xl = {
|
|
2257
|
+
key: 0,
|
|
2258
|
+
class: "br-sidebar__item-icon"
|
|
2259
|
+
}, Ql = {
|
|
2260
|
+
key: 1,
|
|
2261
|
+
class: "br-sidebar__item-label"
|
|
2262
|
+
}, Jl = {
|
|
2263
|
+
key: 2,
|
|
2264
|
+
class: "br-sidebar__group-arrow",
|
|
2265
|
+
viewBox: "0 0 24 24",
|
|
2266
|
+
fill: "currentColor"
|
|
2267
|
+
}, Zl = {
|
|
2268
|
+
key: 0,
|
|
2269
|
+
class: "br-sidebar__item-icon"
|
|
2270
|
+
}, es = { class: "br-sidebar__item-label" }, ts = {
|
|
2271
|
+
key: 0,
|
|
2272
|
+
class: "br-sidebar__item-icon"
|
|
2273
|
+
}, as = {
|
|
2274
|
+
key: 1,
|
|
2275
|
+
class: "br-sidebar__item-label"
|
|
2276
|
+
}, ls = { class: "br-sidebar__footer" }, ss = {
|
|
2277
|
+
viewBox: "0 0 24 24",
|
|
2278
|
+
fill: "currentColor"
|
|
2279
|
+
}, os = {
|
|
2280
|
+
key: 0,
|
|
2281
|
+
d: "M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
|
|
2282
|
+
}, rs = {
|
|
2283
|
+
key: 1,
|
|
2284
|
+
d: "M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"
|
|
2285
|
+
}, ns = /* @__PURE__ */ C({
|
|
2286
|
+
__name: "BrSidebar",
|
|
2287
|
+
props: /* @__PURE__ */ S({
|
|
2288
|
+
items: {},
|
|
2289
|
+
variant: { default: "default" },
|
|
2290
|
+
collapsed: { type: Boolean, default: !1 },
|
|
2291
|
+
showToggle: { type: Boolean, default: !0 },
|
|
2292
|
+
elevated: { type: Boolean, default: !0 },
|
|
2293
|
+
fixed: { type: Boolean, default: !1 },
|
|
2294
|
+
width: { default: 260 },
|
|
2295
|
+
collapsedWidth: { default: 64 },
|
|
2296
|
+
showBrand: { type: Boolean, default: !0 },
|
|
2297
|
+
brand: {},
|
|
2298
|
+
logo: {}
|
|
2299
|
+
}, {
|
|
2300
|
+
collapsed: { type: Boolean, default: !1 },
|
|
2301
|
+
collapsedModifiers: {}
|
|
2302
|
+
}),
|
|
2303
|
+
emits: ["update:collapsed"],
|
|
2304
|
+
setup(e) {
|
|
2305
|
+
const t = e, a = E(e, "collapsed"), o = z(/* @__PURE__ */ new Set()), r = y(() => [
|
|
2306
|
+
"br-sidebar",
|
|
2307
|
+
`br-sidebar--${t.variant}`,
|
|
2308
|
+
{
|
|
2309
|
+
"br-sidebar--collapsed": a.value,
|
|
2310
|
+
"br-sidebar--elevated": t.elevated,
|
|
2311
|
+
"br-sidebar--fixed": t.fixed
|
|
2312
|
+
}
|
|
2313
|
+
]), h = y(() => ({
|
|
2314
|
+
width: typeof (a.value ? t.collapsedWidth : t.width) == "number" ? `${a.value ? t.collapsedWidth : t.width}px` : a.value ? t.collapsedWidth : t.width
|
|
2315
|
+
}));
|
|
2316
|
+
function i() {
|
|
2317
|
+
a.value = !a.value;
|
|
2318
|
+
}
|
|
2319
|
+
function d(u) {
|
|
2320
|
+
o.value.has(u) ? o.value.delete(u) : o.value.add(u), o.value = new Set(o.value);
|
|
2321
|
+
}
|
|
2322
|
+
function b(u) {
|
|
2323
|
+
return o.value.has(u);
|
|
2324
|
+
}
|
|
2325
|
+
return ae("sidebar", {
|
|
2326
|
+
isCollapsed: a,
|
|
2327
|
+
toggleExpanded: d,
|
|
2328
|
+
isExpanded: b
|
|
2329
|
+
}), (u, _) => (l(), s("aside", {
|
|
2330
|
+
class: $(r.value),
|
|
2331
|
+
style: P(h.value)
|
|
2332
|
+
}, [
|
|
2333
|
+
e.showBrand ? (l(), s("div", Al, [
|
|
2334
|
+
w(u.$slots, "brand", {}, () => [
|
|
2335
|
+
e.logo ? (l(), s("img", {
|
|
2336
|
+
key: 0,
|
|
2337
|
+
src: e.logo,
|
|
2338
|
+
alt: "",
|
|
2339
|
+
class: "br-sidebar__logo"
|
|
2340
|
+
}, null, 8, Yl)) : c("", !0),
|
|
2341
|
+
e.brand && !a.value ? (l(), s("span", Wl, g(e.brand), 1)) : c("", !0)
|
|
2342
|
+
], !0)
|
|
2343
|
+
])) : c("", !0),
|
|
2344
|
+
n("nav", jl, [
|
|
2345
|
+
w(u.$slots, "nav", {}, () => [
|
|
2346
|
+
e.items && e.items.length ? (l(!0), s(L, { key: 0 }, F(e.items, (f) => (l(), s(L, {
|
|
2347
|
+
key: f.id
|
|
2348
|
+
}, [
|
|
2349
|
+
f.divider ? (l(), s("div", Ul, [
|
|
2350
|
+
a.value ? c("", !0) : (l(), s("span", Kl, g(f.label), 1))
|
|
2351
|
+
])) : f.children && f.children.length ? (l(), s("div", ql, [
|
|
2352
|
+
n("button", {
|
|
2353
|
+
type: "button",
|
|
2354
|
+
class: $(["br-sidebar__item br-sidebar__group-trigger", { "br-sidebar__item--expanded": b(f.id) }]),
|
|
2355
|
+
disabled: f.disabled,
|
|
2356
|
+
onClick: (m) => d(f.id)
|
|
2357
|
+
}, [
|
|
2358
|
+
f.icon ? (l(), s("span", Xl, g(f.icon), 1)) : c("", !0),
|
|
2359
|
+
a.value ? c("", !0) : (l(), s("span", Ql, g(f.label), 1)),
|
|
2360
|
+
a.value ? c("", !0) : (l(), s("svg", Jl, [..._[0] || (_[0] = [
|
|
2361
|
+
n("path", { d: "M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z" }, null, -1)
|
|
2362
|
+
])]))
|
|
2363
|
+
], 10, Gl),
|
|
2364
|
+
a.value ? c("", !0) : (l(), s("div", {
|
|
2365
|
+
key: 0,
|
|
2366
|
+
class: $(["br-sidebar__group-items", { "br-sidebar__group-items--expanded": b(f.id) }])
|
|
2367
|
+
}, [
|
|
2368
|
+
(l(!0), s(L, null, F(f.children, (m) => (l(), Y(U(m.to ? "router-link" : m.href ? "a" : "button"), {
|
|
2369
|
+
key: m.id,
|
|
2370
|
+
class: "br-sidebar__item br-sidebar__item--nested",
|
|
2371
|
+
to: m.to,
|
|
2372
|
+
href: m.href,
|
|
2373
|
+
disabled: m.disabled,
|
|
2374
|
+
onClick: m.onClick
|
|
2375
|
+
}, {
|
|
2376
|
+
default: A(() => [
|
|
2377
|
+
m.icon ? (l(), s("span", Zl, g(m.icon), 1)) : c("", !0),
|
|
2378
|
+
n("span", es, g(m.label), 1),
|
|
2379
|
+
m.badge ? (l(), s("span", {
|
|
2380
|
+
key: 1,
|
|
2381
|
+
class: $(["br-sidebar__item-badge", `br-sidebar__item-badge--${m.badgeVariant || "primary"}`])
|
|
2382
|
+
}, g(m.badge), 3)) : c("", !0)
|
|
2383
|
+
]),
|
|
2384
|
+
_: 2
|
|
2385
|
+
}, 1032, ["to", "href", "disabled", "onClick"]))), 128))
|
|
2386
|
+
], 2))
|
|
2387
|
+
])) : (l(), Y(U(f.to ? "router-link" : f.href ? "a" : "button"), {
|
|
2388
|
+
key: 2,
|
|
2389
|
+
class: "br-sidebar__item",
|
|
2390
|
+
to: f.to,
|
|
2391
|
+
href: f.href,
|
|
2392
|
+
disabled: f.disabled,
|
|
2393
|
+
title: a.value ? f.label : void 0,
|
|
2394
|
+
onClick: f.onClick
|
|
2395
|
+
}, {
|
|
2396
|
+
default: A(() => [
|
|
2397
|
+
f.icon ? (l(), s("span", ts, g(f.icon), 1)) : c("", !0),
|
|
2398
|
+
a.value ? c("", !0) : (l(), s("span", as, g(f.label), 1)),
|
|
2399
|
+
f.badge && !a.value ? (l(), s("span", {
|
|
2400
|
+
key: 2,
|
|
2401
|
+
class: $(["br-sidebar__item-badge", `br-sidebar__item-badge--${f.badgeVariant || "primary"}`])
|
|
2402
|
+
}, g(f.badge), 3)) : c("", !0)
|
|
2403
|
+
]),
|
|
2404
|
+
_: 2
|
|
2405
|
+
}, 1032, ["to", "href", "disabled", "title", "onClick"]))
|
|
2406
|
+
], 64))), 128)) : c("", !0)
|
|
2407
|
+
], !0)
|
|
2408
|
+
]),
|
|
2409
|
+
n("div", ls, [
|
|
2410
|
+
w(u.$slots, "footer", {}, void 0, !0),
|
|
2411
|
+
e.showToggle ? (l(), s("button", {
|
|
2412
|
+
key: 0,
|
|
2413
|
+
type: "button",
|
|
2414
|
+
class: "br-sidebar__toggle",
|
|
2415
|
+
onClick: i
|
|
2416
|
+
}, [
|
|
2417
|
+
(l(), s("svg", ss, [
|
|
2418
|
+
a.value ? (l(), s("path", os)) : (l(), s("path", rs))
|
|
2419
|
+
]))
|
|
2420
|
+
])) : c("", !0)
|
|
2421
|
+
])
|
|
2422
|
+
], 6));
|
|
2423
|
+
}
|
|
2424
|
+
}), is = /* @__PURE__ */ M(ns, [["__scopeId", "data-v-7afa9a90"]]), ds = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2425
|
+
__proto__: null,
|
|
2426
|
+
BrAccordion: ra,
|
|
2427
|
+
BrAccordionItem: ue,
|
|
2428
|
+
BrAvatar: Ze,
|
|
2429
|
+
BrBadge: Te,
|
|
2430
|
+
BrButton: pe,
|
|
2431
|
+
BrCalendar: nl,
|
|
2432
|
+
BrCard: ya,
|
|
2433
|
+
BrCheckbox: de,
|
|
2434
|
+
BrCheckboxGroup: jt,
|
|
2435
|
+
BrFormField: La,
|
|
2436
|
+
BrImage: lt,
|
|
2437
|
+
BrInput: Be,
|
|
2438
|
+
BrModal: Jt,
|
|
2439
|
+
BrNavbar: Nl,
|
|
2440
|
+
BrProgressbar: Bt,
|
|
2441
|
+
BrRadio: ie,
|
|
2442
|
+
BrRadioGroup: _t,
|
|
2443
|
+
BrRating: It,
|
|
2444
|
+
BrSelect: Ie,
|
|
2445
|
+
BrSidebar: is,
|
|
2446
|
+
BrSpinner: Ne,
|
|
2447
|
+
BrStepper: Ya,
|
|
2448
|
+
BrSwitch: We,
|
|
2449
|
+
BrTab: kl,
|
|
2450
|
+
BrTabPanel: Bl,
|
|
2451
|
+
BrTabs: ml,
|
|
2452
|
+
BrTextarea: Ge,
|
|
2453
|
+
BrTitle: Pe,
|
|
2454
|
+
BrVideo: rt
|
|
2455
|
+
}, Symbol.toStringTag, { value: "Module" })), us = {
|
|
2456
|
+
prefix: "Br",
|
|
2457
|
+
theme: "light",
|
|
2458
|
+
locale: "pt-BR"
|
|
2459
|
+
}, bs = {
|
|
2460
|
+
install(e, t = {}) {
|
|
2461
|
+
const a = { ...us, ...t };
|
|
2462
|
+
Object.entries(ds).forEach(([o, r]) => {
|
|
2463
|
+
const h = a.prefix ? `${a.prefix}${o.replace(/^Br/, "")}` : o;
|
|
2464
|
+
e.component(h, r);
|
|
2465
|
+
}), e.provide("braip-ui-options", a), e.provide("braip-ui-theme", a.theme), typeof document < "u" && document.documentElement.setAttribute("data-br-theme", a.theme || "light");
|
|
2466
|
+
}
|
|
2467
|
+
}, fs = "0.1.0";
|
|
2468
|
+
export {
|
|
2469
|
+
ra as BrAccordion,
|
|
2470
|
+
ue as BrAccordionItem,
|
|
2471
|
+
Ze as BrAvatar,
|
|
2472
|
+
Te as BrBadge,
|
|
2473
|
+
pe as BrButton,
|
|
2474
|
+
nl as BrCalendar,
|
|
2475
|
+
ya as BrCard,
|
|
2476
|
+
de as BrCheckbox,
|
|
2477
|
+
jt as BrCheckboxGroup,
|
|
2478
|
+
La as BrFormField,
|
|
2479
|
+
lt as BrImage,
|
|
2480
|
+
Be as BrInput,
|
|
2481
|
+
Jt as BrModal,
|
|
2482
|
+
Nl as BrNavbar,
|
|
2483
|
+
Bt as BrProgressbar,
|
|
2484
|
+
ie as BrRadio,
|
|
2485
|
+
_t as BrRadioGroup,
|
|
2486
|
+
It as BrRating,
|
|
2487
|
+
Ie as BrSelect,
|
|
2488
|
+
is as BrSidebar,
|
|
2489
|
+
Ne as BrSpinner,
|
|
2490
|
+
Ya as BrStepper,
|
|
2491
|
+
We as BrSwitch,
|
|
2492
|
+
kl as BrTab,
|
|
2493
|
+
Bl as BrTabPanel,
|
|
2494
|
+
ml as BrTabs,
|
|
2495
|
+
Ge as BrTextarea,
|
|
2496
|
+
Pe as BrTitle,
|
|
2497
|
+
rt as BrVideo,
|
|
2498
|
+
bs as BraipUI,
|
|
2499
|
+
bs as default,
|
|
2500
|
+
fs as version
|
|
2501
|
+
};
|
|
2502
|
+
//# sourceMappingURL=braip-ui.js.map
|