@rei/cedar 13.5.2 → 14.0.0-ts.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cedar-compiled.css +1031 -1031
- package/dist/cedar.umd.js +2 -2
- package/dist/component-docgen.json +1369 -1325
- package/dist/icon-component-docgen.json +510 -510
- package/dist/src/components/accordion/CdrAccordion.vue.mjs +7 -165
- package/dist/src/components/accordion/CdrAccordion.vue2.mjs +136 -0
- package/dist/src/components/accordion/CdrAccordionGroup.vue.mjs +7 -80
- package/dist/src/components/accordion/CdrAccordionGroup.vue2.mjs +72 -0
- package/dist/src/components/accordion/styles/CdrAccordion.module.scss.mjs +29 -29
- package/dist/src/components/accordion/styles/CdrAccordionGroup.module.scss.mjs +2 -2
- package/dist/src/components/accordion/symbols.mjs +5 -0
- package/dist/src/components/banner/CdrBanner.vue.mjs +7 -59
- package/dist/src/components/banner/CdrBanner.vue2.mjs +45 -0
- package/dist/src/components/banner/styles/CdrBanner.module.scss.mjs +14 -14
- package/dist/src/components/breadcrumb/CdrBreadcrumb.vue.mjs +7 -113
- package/dist/src/components/breadcrumb/CdrBreadcrumb.vue2.mjs +103 -0
- package/dist/src/components/breadcrumb/styles/CdrBreadcrumb.module.scss.mjs +7 -7
- package/dist/src/components/button/CdrButton.vue.mjs +7 -102
- package/dist/src/components/button/CdrButton.vue2.mjs +85 -0
- package/dist/src/components/button/styles/CdrButton.module.scss.mjs +31 -31
- package/dist/src/components/caption/CdrCaption.vue.mjs +7 -45
- package/dist/src/components/caption/CdrCaption.vue2.mjs +36 -0
- package/dist/src/components/caption/styles/CdrCaption.module.scss.mjs +4 -4
- package/dist/src/components/card/CdrCard.vue.mjs +7 -33
- package/dist/src/components/card/CdrCard.vue2.mjs +24 -0
- package/dist/src/components/card/styles/CdrCard.module.scss.mjs +1 -1
- package/dist/src/components/checkbox/CdrCheckbox.vue.mjs +7 -146
- package/dist/src/components/checkbox/CdrCheckbox.vue2.mjs +134 -0
- package/dist/src/components/checkbox/styles/CdrCheckbox.module.scss.mjs +25 -25
- package/dist/src/components/chip/CdrChip.vue.mjs +7 -29
- package/dist/src/components/chip/CdrChip.vue2.mjs +22 -0
- package/dist/src/components/chip/CdrChipGroup.vue.mjs +7 -83
- package/dist/src/components/chip/CdrChipGroup.vue2.mjs +73 -0
- package/dist/src/components/chip/styles/CdrChip.module.scss.mjs +4 -4
- package/dist/src/components/chip/styles/CdrChipGroup.module.scss.mjs +4 -4
- package/dist/src/components/container/CdrContainer.vue.mjs +7 -46
- package/dist/src/components/container/CdrContainer.vue2.mjs +36 -0
- package/dist/src/components/container/styles/CdrContainer.module.scss.mjs +2 -2
- package/dist/src/components/formError/CdrFormError.vue.mjs +7 -36
- package/dist/src/components/formError/CdrFormError.vue2.mjs +24 -0
- package/dist/src/components/formError/styles/CdrFormError.module.scss.mjs +2 -2
- package/dist/src/components/formGroup/CdrFormGroup.vue.mjs +7 -70
- package/dist/src/components/formGroup/CdrFormGroup.vue2.mjs +65 -0
- package/dist/src/components/formGroup/styles/CdrFormGroup.module.scss.mjs +8 -8
- package/dist/src/components/grid/CdrGrid.vue.mjs +7 -47
- package/dist/src/components/grid/CdrGrid.vue2.mjs +37 -0
- package/dist/src/components/grid/styles/CdrGrid.module.scss.mjs +21 -21
- package/dist/src/components/icon/CdrIcon.vue.mjs +7 -58
- package/dist/src/components/icon/CdrIcon.vue2.mjs +46 -0
- package/dist/src/components/icon/comps/account-profile-fill.vue.mjs +15 -20
- package/dist/src/components/icon/comps/account-profile-fill.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/account-profile.vue.mjs +15 -20
- package/dist/src/components/icon/comps/account-profile.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/arrow-down.vue.mjs +15 -20
- package/dist/src/components/icon/comps/arrow-down.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/arrow-left.vue.mjs +15 -20
- package/dist/src/components/icon/comps/arrow-left.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/arrow-right.vue.mjs +15 -20
- package/dist/src/components/icon/comps/arrow-right.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/arrow-up.vue.mjs +15 -20
- package/dist/src/components/icon/comps/arrow-up.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/atv.vue.mjs +15 -20
- package/dist/src/components/icon/comps/atv.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/bed-outline.vue.mjs +15 -20
- package/dist/src/components/icon/comps/bed-outline.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/bike-shop.vue.mjs +15 -20
- package/dist/src/components/icon/comps/bike-shop.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/binoculars.vue.mjs +14 -19
- package/dist/src/components/icon/comps/binoculars.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/birding.vue.mjs +15 -20
- package/dist/src/components/icon/comps/birding.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/boat.vue.mjs +15 -20
- package/dist/src/components/icon/comps/boat.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/boating.vue.mjs +15 -20
- package/dist/src/components/icon/comps/boating.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/bookmark-fill.vue.mjs +14 -19
- package/dist/src/components/icon/comps/bookmark-fill.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/bookmark-stroke.vue.mjs +15 -20
- package/dist/src/components/icon/comps/bookmark-stroke.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/brand-abstract.vue.mjs +15 -20
- package/dist/src/components/icon/comps/brand-abstract.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/brand-code-sandbox.vue.mjs +15 -20
- package/dist/src/components/icon/comps/brand-code-sandbox.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/brand-github.vue.mjs +15 -20
- package/dist/src/components/icon/comps/brand-github.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/brand-linkedin.vue.mjs +15 -20
- package/dist/src/components/icon/comps/brand-linkedin.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/brand-rei-ice-axes.vue.mjs +15 -20
- package/dist/src/components/icon/comps/brand-rei-ice-axes.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/brand-sketch.vue.mjs +14 -19
- package/dist/src/components/icon/comps/brand-sketch.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/brand-tiktok.vue.mjs +16 -21
- package/dist/src/components/icon/comps/brand-tiktok.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/buddies.vue.mjs +15 -20
- package/dist/src/components/icon/comps/buddies.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/bus.vue.mjs +15 -20
- package/dist/src/components/icon/comps/bus.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/calendar.vue.mjs +15 -20
- package/dist/src/components/icon/comps/calendar.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/camera.vue.mjs +15 -20
- package/dist/src/components/icon/comps/camera.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/canoe.vue.mjs +15 -20
- package/dist/src/components/icon/comps/canoe.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/car.vue.mjs +15 -20
- package/dist/src/components/icon/comps/car.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/caret-down.vue.mjs +15 -20
- package/dist/src/components/icon/comps/caret-down.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/caret-left.vue.mjs +15 -20
- package/dist/src/components/icon/comps/caret-left.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/caret-right.vue.mjs +15 -20
- package/dist/src/components/icon/comps/caret-right.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/caret-up.vue.mjs +15 -20
- package/dist/src/components/icon/comps/caret-up.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/cart-fill.vue.mjs +15 -20
- package/dist/src/components/icon/comps/cart-fill.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/cart.vue.mjs +15 -20
- package/dist/src/components/icon/comps/cart.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/chain-link.vue.mjs +15 -20
- package/dist/src/components/icon/comps/chain-link.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/chat.vue.mjs +15 -20
- package/dist/src/components/icon/comps/chat.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/check-fill.vue.mjs +15 -20
- package/dist/src/components/icon/comps/check-fill.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/check-lg.vue.mjs +15 -20
- package/dist/src/components/icon/comps/check-lg.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/check-sm.vue.mjs +15 -20
- package/dist/src/components/icon/comps/check-sm.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/check-stroke.vue.mjs +15 -20
- package/dist/src/components/icon/comps/check-stroke.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/climb.vue.mjs +15 -20
- package/dist/src/components/icon/comps/climb.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/clipboard.vue.mjs +15 -20
- package/dist/src/components/icon/comps/clipboard.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/clock.vue.mjs +15 -20
- package/dist/src/components/icon/comps/clock.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/code-html.vue.mjs +15 -20
- package/dist/src/components/icon/comps/code-html.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/code-js.vue.mjs +15 -20
- package/dist/src/components/icon/comps/code-js.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/compass.vue.mjs +15 -20
- package/dist/src/components/icon/comps/compass.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/copy.vue.mjs +15 -20
- package/dist/src/components/icon/comps/copy.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/coupon-fill.vue.mjs +15 -20
- package/dist/src/components/icon/comps/coupon-fill.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/coupon-stroke.vue.mjs +14 -19
- package/dist/src/components/icon/comps/coupon-stroke.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/credit-card.vue.mjs +15 -20
- package/dist/src/components/icon/comps/credit-card.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/curbside-pickup.vue.mjs +15 -20
- package/dist/src/components/icon/comps/curbside-pickup.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/day.vue.mjs +15 -20
- package/dist/src/components/icon/comps/day.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/diving.vue.mjs +15 -20
- package/dist/src/components/icon/comps/diving.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/dog.vue.mjs +15 -20
- package/dist/src/components/icon/comps/dog.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/download.vue.mjs +15 -20
- package/dist/src/components/icon/comps/download.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/duplicate.vue.mjs +16 -21
- package/dist/src/components/icon/comps/duplicate.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/edit.vue.mjs +15 -20
- package/dist/src/components/icon/comps/edit.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/elevation.vue.mjs +15 -20
- package/dist/src/components/icon/comps/elevation.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/error-fill.vue.mjs +17 -22
- package/dist/src/components/icon/comps/error-fill.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/error-stroke.vue.mjs +19 -24
- package/dist/src/components/icon/comps/error-stroke.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/expand.vue.mjs +15 -20
- package/dist/src/components/icon/comps/expand.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/experiences-backpacking.vue.mjs +15 -20
- package/dist/src/components/icon/comps/experiences-backpacking.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/experiences-camping.vue.mjs +15 -20
- package/dist/src/components/icon/comps/experiences-camping.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/experiences-climbing.vue.mjs +15 -20
- package/dist/src/components/icon/comps/experiences-climbing.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/experiences-clothing.vue.mjs +15 -20
- package/dist/src/components/icon/comps/experiences-clothing.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/experiences-cycling.vue.mjs +15 -20
- package/dist/src/components/icon/comps/experiences-cycling.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/experiences-family.vue.mjs +15 -20
- package/dist/src/components/icon/comps/experiences-family.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/experiences-fitness.vue.mjs +15 -20
- package/dist/src/components/icon/comps/experiences-fitness.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/experiences-hiking.vue.mjs +15 -20
- package/dist/src/components/icon/comps/experiences-hiking.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/experiences-outdoor-basics.vue.mjs +15 -20
- package/dist/src/components/icon/comps/experiences-outdoor-basics.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/experiences-paddling.vue.mjs +15 -20
- package/dist/src/components/icon/comps/experiences-paddling.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/experiences-rentals.vue.mjs +15 -20
- package/dist/src/components/icon/comps/experiences-rentals.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/experiences-running.vue.mjs +16 -21
- package/dist/src/components/icon/comps/experiences-running.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/experiences-snowsports.vue.mjs +15 -20
- package/dist/src/components/icon/comps/experiences-snowsports.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/experiences-travel.vue.mjs +15 -20
- package/dist/src/components/icon/comps/experiences-travel.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/external-link-alt.vue.mjs +16 -21
- package/dist/src/components/icon/comps/external-link-alt.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/external-link.vue.mjs +15 -20
- package/dist/src/components/icon/comps/external-link.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/eye-hide.vue.mjs +15 -20
- package/dist/src/components/icon/comps/eye-hide.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/eye-show.vue.mjs +15 -20
- package/dist/src/components/icon/comps/eye-show.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/facebook.vue.mjs +15 -20
- package/dist/src/components/icon/comps/facebook.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/filter-alt.vue.mjs +15 -20
- package/dist/src/components/icon/comps/filter-alt.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/filter.vue.mjs +15 -20
- package/dist/src/components/icon/comps/filter.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/find-location.vue.mjs +15 -20
- package/dist/src/components/icon/comps/find-location.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/fire.vue.mjs +14 -19
- package/dist/src/components/icon/comps/fire.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/fishing.vue.mjs +15 -20
- package/dist/src/components/icon/comps/fishing.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/free-product.vue.mjs +15 -20
- package/dist/src/components/icon/comps/free-product.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/grid-view.vue.mjs +15 -20
- package/dist/src/components/icon/comps/grid-view.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/heart-fill.vue.mjs +15 -20
- package/dist/src/components/icon/comps/heart-fill.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/heart-stroke.vue.mjs +15 -20
- package/dist/src/components/icon/comps/heart-stroke.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/hike.vue.mjs +14 -19
- package/dist/src/components/icon/comps/hike.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/history.vue.mjs +15 -20
- package/dist/src/components/icon/comps/history.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/home.vue.mjs +15 -20
- package/dist/src/components/icon/comps/home.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/horse.vue.mjs +14 -19
- package/dist/src/components/icon/comps/horse.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/horseshoe.vue.mjs +15 -20
- package/dist/src/components/icon/comps/horseshoe.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/image.vue.mjs +15 -20
- package/dist/src/components/icon/comps/image.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/information-fill.vue.mjs +15 -20
- package/dist/src/components/icon/comps/information-fill.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/information-stroke.vue.mjs +15 -20
- package/dist/src/components/icon/comps/information-stroke.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/instagram.vue.mjs +15 -20
- package/dist/src/components/icon/comps/instagram.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/kayak.vue.mjs +15 -20
- package/dist/src/components/icon/comps/kayak.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/link-alt.vue.mjs +16 -21
- package/dist/src/components/icon/comps/link-alt.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/list-ragged.vue.mjs +15 -20
- package/dist/src/components/icon/comps/list-ragged.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/list-view.vue.mjs +15 -20
- package/dist/src/components/icon/comps/list-view.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/location-pin-fill.vue.mjs +15 -20
- package/dist/src/components/icon/comps/location-pin-fill.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/location-pin-stroke.vue.mjs +15 -20
- package/dist/src/components/icon/comps/location-pin-stroke.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/lock-locked-fill.vue.mjs +15 -20
- package/dist/src/components/icon/comps/lock-locked-fill.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/lock-locked-stroke.vue.mjs +14 -19
- package/dist/src/components/icon/comps/lock-locked-stroke.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/lock-unlocked-stroke.vue.mjs +15 -20
- package/dist/src/components/icon/comps/lock-unlocked-stroke.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/mail.vue.mjs +14 -19
- package/dist/src/components/icon/comps/mail.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/map.vue.mjs +15 -20
- package/dist/src/components/icon/comps/map.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/member-card.vue.mjs +14 -19
- package/dist/src/components/icon/comps/member-card.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/membership.vue.mjs +16 -21
- package/dist/src/components/icon/comps/membership.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/microphone.vue.mjs +15 -20
- package/dist/src/components/icon/comps/microphone.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/minus-fill.vue.mjs +15 -20
- package/dist/src/components/icon/comps/minus-fill.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/minus-lg.vue.mjs +15 -20
- package/dist/src/components/icon/comps/minus-lg.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/minus-sm.vue.mjs +15 -20
- package/dist/src/components/icon/comps/minus-sm.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/minus-stroke.vue.mjs +15 -20
- package/dist/src/components/icon/comps/minus-stroke.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/more-functions.vue.mjs +15 -20
- package/dist/src/components/icon/comps/more-functions.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/my-location.vue.mjs +15 -20
- package/dist/src/components/icon/comps/my-location.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/navigation-menu.vue.mjs +15 -20
- package/dist/src/components/icon/comps/navigation-menu.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/night.vue.mjs +15 -20
- package/dist/src/components/icon/comps/night.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/paddle.vue.mjs +15 -20
- package/dist/src/components/icon/comps/paddle.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/pause-fill.vue.mjs +15 -20
- package/dist/src/components/icon/comps/pause-fill.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/pause-stroke.vue.mjs +15 -20
- package/dist/src/components/icon/comps/pause-stroke.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/pause.vue.mjs +15 -20
- package/dist/src/components/icon/comps/pause.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/photography.vue.mjs +15 -20
- package/dist/src/components/icon/comps/photography.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/picnic.vue.mjs +15 -20
- package/dist/src/components/icon/comps/picnic.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/pinterest.vue.mjs +15 -20
- package/dist/src/components/icon/comps/pinterest.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/plane.vue.mjs +15 -20
- package/dist/src/components/icon/comps/plane.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/play-fill.vue.mjs +15 -20
- package/dist/src/components/icon/comps/play-fill.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/play-stroke.vue.mjs +14 -19
- package/dist/src/components/icon/comps/play-stroke.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/play.vue.mjs +15 -20
- package/dist/src/components/icon/comps/play.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/playground.vue.mjs +15 -20
- package/dist/src/components/icon/comps/playground.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/plugin.vue.mjs +15 -20
- package/dist/src/components/icon/comps/plugin.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/plus-fill.vue.mjs +15 -20
- package/dist/src/components/icon/comps/plus-fill.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/plus-lg.vue.mjs +15 -20
- package/dist/src/components/icon/comps/plus-lg.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/plus-sm.vue.mjs +15 -20
- package/dist/src/components/icon/comps/plus-sm.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/plus-stroke.vue.mjs +15 -20
- package/dist/src/components/icon/comps/plus-stroke.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/print.vue.mjs +15 -20
- package/dist/src/components/icon/comps/print.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/protection-fill.vue.mjs +15 -20
- package/dist/src/components/icon/comps/protection-fill.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/protection-stroke.vue.mjs +14 -19
- package/dist/src/components/icon/comps/protection-stroke.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/question-fill.vue.mjs +15 -20
- package/dist/src/components/icon/comps/question-fill.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/question-stroke.vue.mjs +15 -20
- package/dist/src/components/icon/comps/question-stroke.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/refresh.vue.mjs +15 -20
- package/dist/src/components/icon/comps/refresh.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/reload.vue.mjs +15 -20
- package/dist/src/components/icon/comps/reload.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/returns.vue.mjs +16 -21
- package/dist/src/components/icon/comps/returns.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/run.vue.mjs +15 -20
- package/dist/src/components/icon/comps/run.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/scan-barcode.vue.mjs +15 -20
- package/dist/src/components/icon/comps/scan-barcode.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/search.vue.mjs +15 -20
- package/dist/src/components/icon/comps/search.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/service-shop.vue.mjs +15 -20
- package/dist/src/components/icon/comps/service-shop.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/shipping-prep.vue.mjs +16 -21
- package/dist/src/components/icon/comps/shipping-prep.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/shipping-truck.vue.mjs +16 -21
- package/dist/src/components/icon/comps/shipping-truck.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/shipping.vue.mjs +15 -20
- package/dist/src/components/icon/comps/shipping.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/shopping-bag-fill.vue.mjs +15 -20
- package/dist/src/components/icon/comps/shopping-bag-fill.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/shopping-bag.vue.mjs +15 -20
- package/dist/src/components/icon/comps/shopping-bag.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/shrink.vue.mjs +15 -20
- package/dist/src/components/icon/comps/shrink.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/size-chart.vue.mjs +15 -20
- package/dist/src/components/icon/comps/size-chart.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/ski-boot.vue.mjs +14 -19
- package/dist/src/components/icon/comps/ski-boot.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/ski.vue.mjs +15 -20
- package/dist/src/components/icon/comps/ski.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/snow-shop.vue.mjs +15 -20
- package/dist/src/components/icon/comps/snow-shop.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/snow.vue.mjs +15 -20
- package/dist/src/components/icon/comps/snow.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/sort.vue.mjs +14 -19
- package/dist/src/components/icon/comps/sort.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/star-100.vue.mjs +15 -20
- package/dist/src/components/icon/comps/star-100.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/star-25.vue.mjs +14 -19
- package/dist/src/components/icon/comps/star-25.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/star-50.vue.mjs +14 -19
- package/dist/src/components/icon/comps/star-50.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/star-75.vue.mjs +14 -19
- package/dist/src/components/icon/comps/star-75.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/star-stroke.vue.mjs +14 -19
- package/dist/src/components/icon/comps/star-stroke.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/storefront.vue.mjs +15 -20
- package/dist/src/components/icon/comps/storefront.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/swim.vue.mjs +15 -20
- package/dist/src/components/icon/comps/swim.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/telephone.vue.mjs +15 -20
- package/dist/src/components/icon/comps/telephone.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/tent.vue.mjs +15 -20
- package/dist/src/components/icon/comps/tent.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/trash.vue.mjs +14 -19
- package/dist/src/components/icon/comps/trash.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/twitter.vue.mjs +15 -20
- package/dist/src/components/icon/comps/twitter.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/upload.vue.mjs +15 -20
- package/dist/src/components/icon/comps/upload.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/verified-purchaser.vue.mjs +15 -20
- package/dist/src/components/icon/comps/verified-purchaser.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/virtual-outfitting.vue.mjs +15 -20
- package/dist/src/components/icon/comps/virtual-outfitting.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/warning-fill.vue.mjs +15 -20
- package/dist/src/components/icon/comps/warning-fill.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/warning-stroke.vue.mjs +15 -20
- package/dist/src/components/icon/comps/warning-stroke.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/water.vue.mjs +15 -20
- package/dist/src/components/icon/comps/water.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/wilderness.vue.mjs +15 -20
- package/dist/src/components/icon/comps/wilderness.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/x-fill.vue.mjs +15 -20
- package/dist/src/components/icon/comps/x-fill.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/x-lg.vue.mjs +15 -20
- package/dist/src/components/icon/comps/x-lg.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/x-sm.vue.mjs +15 -20
- package/dist/src/components/icon/comps/x-sm.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/x-stroke.vue.mjs +15 -20
- package/dist/src/components/icon/comps/x-stroke.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/youtube.vue.mjs +15 -20
- package/dist/src/components/icon/comps/youtube.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/zoom-in.vue.mjs +15 -20
- package/dist/src/components/icon/comps/zoom-in.vue2.mjs +4 -0
- package/dist/src/components/icon/comps/zoom-out.vue.mjs +15 -20
- package/dist/src/components/icon/comps/zoom-out.vue2.mjs +4 -0
- package/dist/src/components/icon/styles/CdrIcon.module.scss.mjs +12 -12
- package/dist/src/components/image/CdrImg.vue.mjs +7 -123
- package/dist/src/components/image/CdrImg.vue2.mjs +107 -0
- package/dist/src/components/image/styles/CdrImg.module.scss.mjs +8 -8
- package/dist/src/components/input/CdrInput.vue.mjs +7 -245
- package/dist/src/components/input/CdrInput.vue2.mjs +213 -0
- package/dist/src/components/input/styles/CdrInput.module.scss.mjs +34 -34
- package/dist/src/components/labelStandalone/CdrLabelStandalone.vue.mjs +7 -68
- package/dist/src/components/labelStandalone/CdrLabelStandalone.vue2.mjs +53 -0
- package/dist/src/components/labelStandalone/styles/CdrLabelStandalone.module.scss.mjs +12 -12
- package/dist/src/components/labelWrapper/CdrLabelWrapper.vue.mjs +7 -42
- package/dist/src/components/labelWrapper/CdrLabelWrapper.vue2.mjs +31 -0
- package/dist/src/components/labelWrapper/styles/CdrLabelWrapper.module.scss.mjs +23 -23
- package/dist/src/components/link/CdrLink.vue.mjs +7 -72
- package/dist/src/components/link/CdrLink.vue2.mjs +59 -0
- package/dist/src/components/link/styles/CdrLink.module.scss.mjs +3 -3
- package/dist/src/components/list/CdrList.vue.mjs +7 -48
- package/dist/src/components/list/CdrList.vue2.mjs +39 -0
- package/dist/src/components/list/styles/CdrList.module.scss.mjs +7 -7
- package/dist/src/components/modal/CdrModal.vue.mjs +7 -239
- package/dist/src/components/modal/CdrModal.vue2.mjs +225 -0
- package/dist/src/components/modal/onTransitionEnd.mjs +13 -10
- package/dist/src/components/modal/styles/CdrModal.module.scss.mjs +12 -12
- package/dist/src/components/pagination/CdrPagination.vue.mjs +7 -226
- package/dist/src/components/pagination/CdrPagination.vue2.mjs +223 -0
- package/dist/src/components/pagination/styles/CdrPagination.module.scss.mjs +53 -53
- package/dist/src/components/popover/CdrPopover.vue.mjs +7 -150
- package/dist/src/components/popover/CdrPopover.vue2.mjs +136 -0
- package/dist/src/components/popover/styles/CdrPopover.module.scss.mjs +65 -65
- package/dist/src/components/popup/CdrPopup.vue.mjs +7 -109
- package/dist/src/components/popup/CdrPopup.vue2.mjs +94 -0
- package/dist/src/components/popup/calculatePlacement.mjs +22 -18
- package/dist/src/components/popup/styles/CdrPopup.module.scss.mjs +14 -14
- package/dist/src/components/quote/CdrQuote.vue.mjs +7 -63
- package/dist/src/components/quote/CdrQuote.vue2.mjs +51 -0
- package/dist/src/components/quote/styles/CdrQuote.module.scss.mjs +4 -4
- package/dist/src/components/radio/CdrRadio.vue.mjs +7 -116
- package/dist/src/components/radio/CdrRadio.vue2.mjs +108 -0
- package/dist/src/components/radio/styles/CdrRadio.module.scss.mjs +25 -25
- package/dist/src/components/rating/CdrRating.vue.mjs +7 -106
- package/dist/src/components/rating/CdrRating.vue2.mjs +86 -0
- package/dist/src/components/rating/styles/CdrRating.module.scss.mjs +28 -28
- package/dist/src/components/select/CdrSelect.vue.mjs +7 -222
- package/dist/src/components/select/CdrSelect.vue2.mjs +196 -0
- package/dist/src/components/select/styles/CdrSelect.module.scss.mjs +42 -42
- package/dist/src/components/skeleton/CdrSkeleton.vue.mjs +7 -36
- package/dist/src/components/skeleton/CdrSkeleton.vue2.mjs +29 -0
- package/dist/src/components/skeleton/CdrSkeletonBone.vue.mjs +7 -41
- package/dist/src/components/skeleton/CdrSkeletonBone.vue2.mjs +29 -0
- package/dist/src/components/skeleton/styles/CdrSkeleton.module.scss.mjs +1 -1
- package/dist/src/components/skeleton/styles/CdrSkeletonBone.module.scss.mjs +7 -7
- package/dist/src/components/skeleton/symbols.mjs +4 -0
- package/dist/src/components/switch/CdrSwitch.vue.mjs +7 -94
- package/dist/src/components/switch/CdrSwitch.vue2.mjs +78 -0
- package/dist/src/components/switch/styles/CdrSwitch.module.scss.mjs +10 -10
- package/dist/src/components/table/CdrTable.vue.mjs +7 -73
- package/dist/src/components/table/CdrTable.vue2.mjs +58 -0
- package/dist/src/components/table/styles/CdrTable.module.scss.mjs +13 -13
- package/dist/src/components/tabs/CdrTabPanel.vue.mjs +7 -47
- package/dist/src/components/tabs/CdrTabPanel.vue2.mjs +40 -0
- package/dist/src/components/tabs/CdrTabs.vue.mjs +7 -186
- package/dist/src/components/tabs/CdrTabs.vue2.mjs +157 -0
- package/dist/src/components/tabs/styles/CdrTabPanel.module.scss.mjs +5 -5
- package/dist/src/components/tabs/styles/CdrTabs.module.scss.mjs +30 -30
- package/dist/src/components/tabs/symbols.mjs +4 -0
- package/dist/src/components/text/CdrText.vue.mjs +7 -30
- package/dist/src/components/text/CdrText.vue2.mjs +24 -0
- package/dist/src/components/text/styles/CdrText.module.scss.mjs +1 -1
- package/dist/src/components/toast/CdrToast.vue.mjs +7 -124
- package/dist/src/components/toast/CdrToast.vue2.mjs +103 -0
- package/dist/src/components/toast/styles/CdrToast.module.scss.mjs +57 -57
- package/dist/src/components/toggleButton/CdrToggleButton.vue.mjs +7 -39
- package/dist/src/components/toggleButton/CdrToggleButton.vue2.mjs +32 -0
- package/dist/src/components/toggleButton/CdrToggleGroup.vue.mjs +7 -85
- package/dist/src/components/toggleButton/CdrToggleGroup.vue2.mjs +74 -0
- package/dist/src/components/toggleButton/styles/CdrToggleButton.module.scss.mjs +2 -2
- package/dist/src/components/toggleButton/styles/CdrToggleGroup.module.scss.mjs +7 -7
- package/dist/src/components/toggleButton/symbols.mjs +4 -0
- package/dist/src/components/tooltip/CdrTooltip.vue.mjs +7 -113
- package/dist/src/components/tooltip/CdrTooltip.vue2.mjs +98 -0
- package/dist/src/components/tooltip/styles/CdrTooltip.module.scss.mjs +16 -16
- package/dist/src/lib.mjs +316 -316
- package/dist/src/props/size.mjs +4 -1
- package/dist/src/utils/buildClass.mjs +1 -1
- package/dist/src/utils/debounce.mjs +9 -0
- package/dist/src/utils/kebabCase.mjs +6 -0
- package/dist/src/utils/mapClasses.mjs +4 -1
- package/dist/style/cdr-accordion-group.css +1 -1
- package/dist/style/cdr-accordion.css +1 -1
- package/dist/style/cdr-banner.css +1 -1
- package/dist/style/cdr-breadcrumb.css +1 -1
- package/dist/style/cdr-button.css +1 -1
- package/dist/style/cdr-caption.css +1 -1
- package/dist/style/cdr-card.css +1 -1
- package/dist/style/cdr-checkbox.css +1 -1
- package/dist/style/cdr-chip-group.css +1 -1
- package/dist/style/cdr-chip.css +1 -1
- package/dist/style/cdr-container.css +1 -1
- package/dist/style/cdr-form-error.css +1 -1
- package/dist/style/cdr-form-group.css +1 -1
- package/dist/style/cdr-grid.css +1 -1
- package/dist/style/cdr-icon.css +1 -1
- package/dist/style/cdr-img.css +1 -1
- package/dist/style/cdr-input.css +1 -1
- package/dist/style/cdr-label-standalone.css +1 -1
- package/dist/style/cdr-label-wrapper.css +1 -1
- package/dist/style/cdr-link.css +1 -1
- package/dist/style/cdr-list.css +1 -1
- package/dist/style/cdr-modal.css +1 -1
- package/dist/style/cdr-pagination.css +1 -1
- package/dist/style/cdr-popover.css +1 -1
- package/dist/style/cdr-popup.css +1 -1
- package/dist/style/cdr-quote.css +1 -1
- package/dist/style/cdr-radio.css +1 -1
- package/dist/style/cdr-rating.css +1 -1
- package/dist/style/cdr-select.css +1 -1
- package/dist/style/cdr-skeleton-bone.css +1 -1
- package/dist/style/cdr-skeleton.css +1 -1
- package/dist/style/cdr-switch.css +1 -1
- package/dist/style/cdr-tab-panel.css +1 -1
- package/dist/style/cdr-table.css +1 -1
- package/dist/style/cdr-tabs.css +1 -1
- package/dist/style/cdr-text.css +1 -1
- package/dist/style/cdr-toast.css +1 -1
- package/dist/style/cdr-toggle-button.css +1 -1
- package/dist/style/cdr-toggle-group.css +1 -1
- package/dist/style/cdr-tooltip.css +1 -1
- package/dist/style.css +1 -1
- package/package.json +20 -16
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { defineComponent as S, useCssModule as B, computed as t, openBlock as a, createBlock as M, resolveDynamicComponent as V, normalizeClass as s, unref as r, withCtx as F, createElementVNode as f, createElementBlock as u, Fragment as y, renderList as w, createCommentVNode as i, toDisplayString as v } from "vue";
|
|
2
|
+
import T from "../../utils/propValidator.mjs";
|
|
3
|
+
import c from "../../utils/mapClasses.mjs";
|
|
4
|
+
const q = {
|
|
5
|
+
key: 1
|
|
6
|
+
}, g = "cdr-rating", j = /* @__PURE__ */ S({
|
|
7
|
+
name: "CdrRating",
|
|
8
|
+
__name: "CdrRating",
|
|
9
|
+
props: {
|
|
10
|
+
/**
|
|
11
|
+
* Sets the rating values between 0 and 5.
|
|
12
|
+
*/
|
|
13
|
+
rating: {
|
|
14
|
+
required: !0,
|
|
15
|
+
type: [String, Number],
|
|
16
|
+
default: 0
|
|
17
|
+
},
|
|
18
|
+
/**
|
|
19
|
+
* Sets the total number of ratings
|
|
20
|
+
*/
|
|
21
|
+
count: {
|
|
22
|
+
required: !1,
|
|
23
|
+
type: [String, Number],
|
|
24
|
+
default: null
|
|
25
|
+
},
|
|
26
|
+
/**
|
|
27
|
+
* Hides the word 'reviews' if true
|
|
28
|
+
*/
|
|
29
|
+
compact: {
|
|
30
|
+
type: Boolean,
|
|
31
|
+
default: !1
|
|
32
|
+
},
|
|
33
|
+
/**
|
|
34
|
+
* Sets the rating component (icons and text) to display inline and wraps them in an anchor tag so they can act as link.
|
|
35
|
+
*/
|
|
36
|
+
href: {
|
|
37
|
+
type: String
|
|
38
|
+
},
|
|
39
|
+
/**
|
|
40
|
+
* Sets the rating size.
|
|
41
|
+
* @demoSelectMultiple false
|
|
42
|
+
* @values small, medium, large
|
|
43
|
+
*/
|
|
44
|
+
size: {
|
|
45
|
+
type: String,
|
|
46
|
+
default: "medium",
|
|
47
|
+
validator: (o) => T(o, ["small", "medium", "large"])
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
setup(o) {
|
|
51
|
+
const e = o, n = B(), p = t(() => Number(e.rating)), C = t(() => Number(e.count)), $ = t(() => e.size ? `${g}--${e.size}` : ""), k = t(() => e.href ? `${g}--linked` : ""), b = t(() => C.value > 0 ? "cdr-rating__placeholder" : "cdr-rating__placeholder--no-reviews"), N = t(() => e.href ? "a" : "div"), l = t(() => (Math.round(p.value * 10) / 10).toFixed(1)), h = t(() => Math.round(p.value * 4) / 4), _ = t(() => Math.floor(h.value)), d = t(() => h.value.toFixed(2).split(".")[1]), x = t(() => 5 - _.value - (+d.value > 0 ? 1 : 0)), z = t(() => e.compact ? `(${e.count})` : `${e.count}`), R = t(() => e.href ? e.count === 0 || e.count === "0" ? "No reviews yet; be the first!" : e.count === null ? `View the reviews with an average rating of ${l.value} out of 5 stars` : `View the ${e.count} reviews with an average rating of ${l.value} out of 5 stars` : e.count === 0 || e.count === "0" ? "0 reviews" : e.count === null ? `Rated ${l.value} out of 5 stars` : `${e.count} reviews with an average rating of ${l.value} out of 5 stars`);
|
|
52
|
+
return (A, D) => (a(), M(V(N.value), {
|
|
53
|
+
href: o.href,
|
|
54
|
+
class: s(r(c)(r(n), g, $.value, k.value))
|
|
55
|
+
}, {
|
|
56
|
+
default: F(() => [f("div", {
|
|
57
|
+
class: s(r(n)["cdr-rating__ratings"])
|
|
58
|
+
}, [(a(!0), u(y, null, w(Array(_.value).keys(), (m) => (a(), u("span", {
|
|
59
|
+
class: s(r(c)(r(n), "cdr-rating__icon", "cdr-rating__100")),
|
|
60
|
+
key: `rating-whole-${m}`,
|
|
61
|
+
"aria-hidden": "true"
|
|
62
|
+
}, null, 2))), 128)), d.value !== "00" ? (a(), u("span", {
|
|
63
|
+
key: 0,
|
|
64
|
+
class: s(r(c)(r(n), "cdr-rating__icon", `cdr-rating__${d.value}`)),
|
|
65
|
+
"aria-hidden": "true"
|
|
66
|
+
}, null, 2)) : i("", !0), (a(!0), u(y, null, w(Array(x.value).keys(), (m) => (a(), u("span", {
|
|
67
|
+
class: s(r(c)(r(n), "cdr-rating__icon", b.value)),
|
|
68
|
+
key: `rating-empty-${m}`,
|
|
69
|
+
"aria-hidden": "true"
|
|
70
|
+
}, null, 2))), 128))], 2), o.count !== null ? (a(), u("span", {
|
|
71
|
+
key: 0,
|
|
72
|
+
"aria-hidden": "true",
|
|
73
|
+
class: s(r(n)["cdr-rating__count"])
|
|
74
|
+
}, [o.href ? (a(), u("span", {
|
|
75
|
+
key: 0,
|
|
76
|
+
class: s(r(n)["cdr-rating__number"])
|
|
77
|
+
}, v(l.value), 3)) : i("", !0), f("span", null, v(z.value), 1), o.compact ? i("", !0) : (a(), u("span", q, " Reviews "))], 2)) : i("", !0), f("span", {
|
|
78
|
+
class: s(r(n)["cdr-rating__caption-sr"])
|
|
79
|
+
}, v(R.value), 3)]),
|
|
80
|
+
_: 1
|
|
81
|
+
}, 8, ["href", "class"]));
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
export {
|
|
85
|
+
j as default
|
|
86
|
+
};
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
const r = {
|
|
2
|
-
"cdr-rating__icon": "cdr-
|
|
3
|
-
"cdr-rating__count": "cdr-
|
|
4
|
-
"cdr-rating": "cdr-
|
|
5
|
-
"cdr-rating__number": "cdr-
|
|
6
|
-
"cdr-rating__ratings": "cdr-
|
|
7
|
-
"cdr-rating__caption-sr": "cdr-rating__caption-
|
|
8
|
-
"cdr-rating__placeholder": "cdr-
|
|
9
|
-
"cdr-rating__placeholder--no-reviews": "cdr-rating__placeholder--no-
|
|
10
|
-
"cdr-rating__100": "cdr-
|
|
11
|
-
"cdr-rating__75": "cdr-
|
|
12
|
-
"cdr-rating__50": "cdr-
|
|
13
|
-
"cdr-rating__25": "cdr-
|
|
14
|
-
"cdr-rating--linked": "cdr-rating--
|
|
15
|
-
"cdr-rating--large": "cdr-rating--
|
|
16
|
-
"cdr-rating--medium": "cdr-rating--
|
|
17
|
-
"cdr-rating--small": "cdr-rating--
|
|
18
|
-
"cdr-rating--small@xs": "cdr-rating--small@
|
|
19
|
-
"cdr-rating--medium@xs": "cdr-rating--medium@
|
|
20
|
-
"cdr-rating--large@xs": "cdr-rating--large@
|
|
21
|
-
"cdr-rating--small@sm": "cdr-rating--small@
|
|
22
|
-
"cdr-rating--medium@sm": "cdr-rating--medium@
|
|
23
|
-
"cdr-rating--large@sm": "cdr-rating--large@
|
|
24
|
-
"cdr-rating--small@md": "cdr-rating--small@
|
|
25
|
-
"cdr-rating--medium@md": "cdr-rating--medium@
|
|
26
|
-
"cdr-rating--large@md": "cdr-rating--large@
|
|
27
|
-
"cdr-rating--small@lg": "cdr-rating--small@
|
|
28
|
-
"cdr-rating--medium@lg": "cdr-rating--medium@
|
|
29
|
-
"cdr-rating--large@lg": "cdr-rating--large@
|
|
2
|
+
"cdr-rating__icon": "cdr-rating__icon_14-0-0-ts-0",
|
|
3
|
+
"cdr-rating__count": "cdr-rating__count_14-0-0-ts-0",
|
|
4
|
+
"cdr-rating": "cdr-rating_14-0-0-ts-0",
|
|
5
|
+
"cdr-rating__number": "cdr-rating__number_14-0-0-ts-0",
|
|
6
|
+
"cdr-rating__ratings": "cdr-rating__ratings_14-0-0-ts-0",
|
|
7
|
+
"cdr-rating__caption-sr": "cdr-rating__caption-sr_14-0-0-ts-0",
|
|
8
|
+
"cdr-rating__placeholder": "cdr-rating__placeholder_14-0-0-ts-0",
|
|
9
|
+
"cdr-rating__placeholder--no-reviews": "cdr-rating__placeholder--no-reviews_14-0-0-ts-0",
|
|
10
|
+
"cdr-rating__100": "cdr-rating__100_14-0-0-ts-0",
|
|
11
|
+
"cdr-rating__75": "cdr-rating__75_14-0-0-ts-0",
|
|
12
|
+
"cdr-rating__50": "cdr-rating__50_14-0-0-ts-0",
|
|
13
|
+
"cdr-rating__25": "cdr-rating__25_14-0-0-ts-0",
|
|
14
|
+
"cdr-rating--linked": "cdr-rating--linked_14-0-0-ts-0",
|
|
15
|
+
"cdr-rating--large": "cdr-rating--large_14-0-0-ts-0",
|
|
16
|
+
"cdr-rating--medium": "cdr-rating--medium_14-0-0-ts-0",
|
|
17
|
+
"cdr-rating--small": "cdr-rating--small_14-0-0-ts-0",
|
|
18
|
+
"cdr-rating--small@xs": "cdr-rating--small@xs_14-0-0-ts-0",
|
|
19
|
+
"cdr-rating--medium@xs": "cdr-rating--medium@xs_14-0-0-ts-0",
|
|
20
|
+
"cdr-rating--large@xs": "cdr-rating--large@xs_14-0-0-ts-0",
|
|
21
|
+
"cdr-rating--small@sm": "cdr-rating--small@sm_14-0-0-ts-0",
|
|
22
|
+
"cdr-rating--medium@sm": "cdr-rating--medium@sm_14-0-0-ts-0",
|
|
23
|
+
"cdr-rating--large@sm": "cdr-rating--large@sm_14-0-0-ts-0",
|
|
24
|
+
"cdr-rating--small@md": "cdr-rating--small@md_14-0-0-ts-0",
|
|
25
|
+
"cdr-rating--medium@md": "cdr-rating--medium@md_14-0-0-ts-0",
|
|
26
|
+
"cdr-rating--large@md": "cdr-rating--large@md_14-0-0-ts-0",
|
|
27
|
+
"cdr-rating--small@lg": "cdr-rating--small@lg_14-0-0-ts-0",
|
|
28
|
+
"cdr-rating--medium@lg": "cdr-rating--medium@lg_14-0-0-ts-0",
|
|
29
|
+
"cdr-rating--large@lg": "cdr-rating--large@lg_14-0-0-ts-0"
|
|
30
30
|
};
|
|
31
31
|
export {
|
|
32
32
|
r as default
|
|
@@ -1,224 +1,9 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import Y from "../../props/background.mjs";
|
|
8
|
-
import Z from "../../utils/mapClasses.mjs";
|
|
9
|
-
import _ from "../../utils/uid.mjs";
|
|
10
|
-
import x from "./styles/CdrSelect.module.scss.mjs";
|
|
11
|
-
import ee from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
12
|
-
const re = L({
|
|
13
|
-
name: "CdrSelect",
|
|
14
|
-
components: {
|
|
15
|
-
IconCaretDown: K,
|
|
16
|
-
CdrLabelStandalone: Q,
|
|
17
|
-
CdrFormError: W
|
|
18
|
-
},
|
|
19
|
-
inheritAttrs: !1,
|
|
20
|
-
props: {
|
|
21
|
-
/**
|
|
22
|
-
* Custom ID that is mapped to the label ‘for’ attribute. If this value is not set, it will be auto-generated.
|
|
23
|
-
*/
|
|
24
|
-
id: {
|
|
25
|
-
type: String
|
|
26
|
-
},
|
|
27
|
-
/**
|
|
28
|
-
* Sets the text value for the select label.
|
|
29
|
-
* Required for accessibility compliance. Use ‘hideLabel’ to
|
|
30
|
-
* visually hide the label but keep it available to screenreaders.
|
|
31
|
-
*/
|
|
32
|
-
label: {
|
|
33
|
-
type: String,
|
|
34
|
-
required: !0
|
|
35
|
-
},
|
|
36
|
-
/**
|
|
37
|
-
* Visually hides the label element, but leaves it available to screen readers for accessibility compliance.
|
|
38
|
-
*/
|
|
39
|
-
hideLabel: {
|
|
40
|
-
type: Boolean,
|
|
41
|
-
default: !1
|
|
42
|
-
},
|
|
43
|
-
/**
|
|
44
|
-
* Adds an option that is disabled and selected by default to serve as a `placeholder` for the select.
|
|
45
|
-
*/
|
|
46
|
-
prompt: String,
|
|
47
|
-
/**
|
|
48
|
-
* Build options programmatically with data.
|
|
49
|
-
* Provide an array of objects [{ text: String, value: String}] for greater control
|
|
50
|
-
* or provide an array of strings ['String'] for simpler setup (value and text will be the same).
|
|
51
|
-
*/
|
|
52
|
-
options: {
|
|
53
|
-
type: Array
|
|
54
|
-
},
|
|
55
|
-
/**
|
|
56
|
-
* Sets the background color the radio button is rendered on
|
|
57
|
-
* @values primary, secondary
|
|
58
|
-
*/
|
|
59
|
-
background: Y,
|
|
60
|
-
/**
|
|
61
|
-
* Sets the component's size; values can target responsive breakpoints. Example `small@lg`
|
|
62
|
-
* @demoSelectMultiple false
|
|
63
|
-
* @values small, medium, large
|
|
64
|
-
*/
|
|
65
|
-
size: X,
|
|
66
|
-
/** Sets the select to an error state, displays the `error` slot if one is present. */
|
|
67
|
-
error: {
|
|
68
|
-
type: [Boolean, String],
|
|
69
|
-
default: !1
|
|
70
|
-
},
|
|
71
|
-
/**
|
|
72
|
-
* Sets the `role` attribute for the embedded error state messaging.
|
|
73
|
-
*/
|
|
74
|
-
errorRole: {
|
|
75
|
-
type: String,
|
|
76
|
-
default: "status"
|
|
77
|
-
},
|
|
78
|
-
/** @ignore */
|
|
79
|
-
modelValue: {
|
|
80
|
-
type: [String, Number, Boolean, Object, Array, Symbol, Function]
|
|
81
|
-
},
|
|
82
|
-
/** Disables the input and sets appropriate styling */
|
|
83
|
-
disabled: Boolean,
|
|
84
|
-
/** Sets aria-required on the input field and displays an asterisk next to the select label */
|
|
85
|
-
required: Boolean,
|
|
86
|
-
/** Displays '(optional)' text next to the select label. */
|
|
87
|
-
optional: Boolean,
|
|
88
|
-
/** Turns CdrSelect into a multi-select element. */
|
|
89
|
-
multiple: Boolean,
|
|
90
|
-
/** Sets the height of the CdrSelect when using the multiple option.
|
|
91
|
-
* This number corresponds to the number of select options that will be visible without scrolling.
|
|
92
|
-
*/
|
|
93
|
-
multipleSize: Number
|
|
94
|
-
},
|
|
95
|
-
emits: {
|
|
96
|
-
/**
|
|
97
|
-
* Event emitted by v-model on the radio's <input> element
|
|
98
|
-
* @param modelValue
|
|
99
|
-
*/
|
|
100
|
-
"update:modelValue": null
|
|
101
|
-
},
|
|
102
|
-
customOptions: {},
|
|
103
|
-
setup(e, r) {
|
|
104
|
-
const p = "cdr-select", $ = r.slots["helper-text"], k = r.slots.info, v = r.slots["info-action"], d = r.slots["pre-icon"], c = e.id ? e.id : _(), f = o(() => e.multiple && "cdr-select--multiple"), l = o(() => !e.modelValue && "cdr-select__prompt"), z = o(() => d && "cdr-select--preicon"), B = o(() => e.error && "cdr-select--error"), V = o(() => `cdr-select--${e.background}`), M = o(() => e.size && `${p}--${e.size}`), w = o(() => e.disabled && "cdr-select__caret--disabled"), A = o(() => {
|
|
105
|
-
const s = [r.slots["helper-text"] ? `${e.id}-helper-text-top` : "", r.attrs["aria-describedby"]].filter((t) => t).join(" ");
|
|
106
|
-
return e.error ? `${e.id}-error` : s;
|
|
107
|
-
}), D = o(() => {
|
|
108
|
-
const s = [];
|
|
109
|
-
return e.options && e.options.forEach((t) => {
|
|
110
|
-
const b = {};
|
|
111
|
-
let y = "", C = "";
|
|
112
|
-
if (typeof t == "string")
|
|
113
|
-
y = t, C = t;
|
|
114
|
-
else {
|
|
115
|
-
const {
|
|
116
|
-
text: P,
|
|
117
|
-
value: E
|
|
118
|
-
} = t;
|
|
119
|
-
y = P, C = E;
|
|
120
|
-
}
|
|
121
|
-
b.text = y, b.value = C, s.push(b);
|
|
122
|
-
}), s;
|
|
123
|
-
}), N = o({
|
|
124
|
-
get() {
|
|
125
|
-
return e.modelValue;
|
|
126
|
-
},
|
|
127
|
-
set(s) {
|
|
128
|
-
r.emit("update:modelValue", s);
|
|
129
|
-
}
|
|
130
|
-
}), O = j();
|
|
131
|
-
return {
|
|
132
|
-
mapClasses: Z,
|
|
133
|
-
baseClass: p,
|
|
134
|
-
hasHelper: $,
|
|
135
|
-
hasInfo: k,
|
|
136
|
-
hasInfoAction: v,
|
|
137
|
-
hasPreIcon: d,
|
|
138
|
-
uniqueId: c,
|
|
139
|
-
multipleClass: f,
|
|
140
|
-
promptClass: l,
|
|
141
|
-
preIconClass: z,
|
|
142
|
-
errorClass: B,
|
|
143
|
-
backgroundClass: V,
|
|
144
|
-
sizeClass: M,
|
|
145
|
-
caretDisabledClass: w,
|
|
146
|
-
describedby: A,
|
|
147
|
-
computedOpts: D,
|
|
148
|
-
selectModel: N,
|
|
149
|
-
style: O
|
|
150
|
-
};
|
|
151
|
-
}
|
|
152
|
-
}), oe = ["id", "multiple", "size", "disabled", "aria-required", "aria-invalid", "aria-errormessage", "aria-describedby", "value"], le = ["value"];
|
|
153
|
-
function se(e, r, p, $, k, v) {
|
|
154
|
-
const d = h("icon-caret-down"), c = h("cdr-form-error"), f = h("cdr-label-standalone");
|
|
155
|
-
return a(), S(f, {
|
|
156
|
-
"for-id": e.uniqueId,
|
|
157
|
-
label: e.label,
|
|
158
|
-
"hide-label": e.hideLabel,
|
|
159
|
-
required: e.required,
|
|
160
|
-
optional: e.optional,
|
|
161
|
-
disabled: e.disabled
|
|
162
|
-
}, F({
|
|
163
|
-
default: n(() => [I("div", {
|
|
164
|
-
class: u(e.style["cdr-select-wrap"])
|
|
165
|
-
}, [e.hasPreIcon ? (a(), m("span", {
|
|
166
|
-
key: 0,
|
|
167
|
-
class: u(e.style["cdr-select__pre-icon"])
|
|
168
|
-
}, [i(e.$slots, "pre-icon")], 2)) : g("", !0), H(I("select", R({
|
|
169
|
-
id: e.uniqueId,
|
|
170
|
-
class: e.mapClasses(e.style, e.baseClass, e.sizeClass, e.promptClass, e.multipleClass, e.backgroundClass, e.errorClass, e.preIconClass),
|
|
171
|
-
multiple: e.multiple,
|
|
172
|
-
size: e.multipleSize,
|
|
173
|
-
disabled: e.disabled,
|
|
174
|
-
"aria-required": e.required || null,
|
|
175
|
-
"aria-invalid": !!e.error || null,
|
|
176
|
-
"aria-errormessage": !!e.error && `${e.uniqueId}-error` || null
|
|
177
|
-
}, e.$attrs, {
|
|
178
|
-
"aria-describedby": e.describedby || null,
|
|
179
|
-
value: e.modelValue,
|
|
180
|
-
"onUpdate:modelValue": r[0] || (r[0] = (l) => e.selectModel = l)
|
|
181
|
-
}), [e.prompt ? (a(), m("option", {
|
|
182
|
-
key: 0,
|
|
183
|
-
class: u(e.style["cdr-select__prompt"]),
|
|
184
|
-
value: "",
|
|
185
|
-
disabled: ""
|
|
186
|
-
}, q(e.prompt), 3)) : g("", !0), (a(!0), m(U, null, T(e.computedOpts, (l) => (a(), m("option", {
|
|
187
|
-
key: l.text,
|
|
188
|
-
value: l.value
|
|
189
|
-
}, q(l.text), 9, le))), 128)), i(e.$slots, "default")], 16, oe), [[G, e.selectModel]]), J(d, {
|
|
190
|
-
class: u(e.mapClasses(e.style, "cdr-select__caret", e.caretDisabledClass))
|
|
191
|
-
}, null, 8, ["class"])], 2)]),
|
|
192
|
-
_: 2
|
|
193
|
-
}, [e.hasHelper ? {
|
|
194
|
-
name: "helper",
|
|
195
|
-
fn: n(() => [i(e.$slots, "helper-text")]),
|
|
196
|
-
key: "0"
|
|
197
|
-
} : void 0, e.hasInfo ? {
|
|
198
|
-
name: "info",
|
|
199
|
-
fn: n(() => [i(e.$slots, "info")]),
|
|
200
|
-
key: "1"
|
|
201
|
-
} : void 0, e.hasInfoAction ? {
|
|
202
|
-
name: "info-action",
|
|
203
|
-
fn: n(() => [i(e.$slots, "info-action")]),
|
|
204
|
-
key: "2"
|
|
205
|
-
} : void 0, e.error ? {
|
|
206
|
-
name: "error",
|
|
207
|
-
fn: n(() => [e.error ? (a(), S(c, {
|
|
208
|
-
key: 0,
|
|
209
|
-
error: e.error,
|
|
210
|
-
role: e.errorRole,
|
|
211
|
-
id: `${e.uniqueId}-error`
|
|
212
|
-
}, {
|
|
213
|
-
error: n(() => [i(e.$slots, "error")]),
|
|
214
|
-
_: 3
|
|
215
|
-
}, 8, ["error", "role", "id"])) : g("", !0)]),
|
|
216
|
-
key: "3"
|
|
217
|
-
} : void 0]), 1032, ["for-id", "label", "hide-label", "required", "optional", "disabled"]);
|
|
218
|
-
}
|
|
219
|
-
const te = {
|
|
220
|
-
$style: x
|
|
221
|
-
}, Ce = /* @__PURE__ */ ee(re, [["render", se], ["__cssModules", te]]);
|
|
1
|
+
import s from "./CdrSelect.vue2.mjs";
|
|
2
|
+
import o from "./styles/CdrSelect.module.scss.mjs";
|
|
3
|
+
import t from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const e = {
|
|
5
|
+
$style: o
|
|
6
|
+
}, f = /* @__PURE__ */ t(s, [["__cssModules", e]]);
|
|
222
7
|
export {
|
|
223
|
-
|
|
8
|
+
f as default
|
|
224
9
|
};
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import "core-js/modules/es.array.push.js";
|
|
2
|
+
import { defineComponent as R, useCssModule as U, useSlots as H, useAttrs as T, computed as o, openBlock as i, createBlock as C, unref as t, createSlots as G, withCtx as n, createElementVNode as S, normalizeClass as p, createElementBlock as f, renderSlot as d, createCommentVNode as y, withDirectives as J, mergeProps as K, toDisplayString as k, Fragment as Q, renderList as W, vModelSelect as X, createVNode as Y } from "vue";
|
|
3
|
+
import Z from "../icon/comps/caret-down.vue.mjs";
|
|
4
|
+
import _ from "../labelStandalone/CdrLabelStandalone.vue.mjs";
|
|
5
|
+
import ee from "../formError/CdrFormError.vue.mjs";
|
|
6
|
+
import re from "../../props/size.mjs";
|
|
7
|
+
import te from "../../props/background.mjs";
|
|
8
|
+
import $ from "../../utils/mapClasses.mjs";
|
|
9
|
+
import le from "../../utils/uid.mjs";
|
|
10
|
+
const oe = ["id", "multiple", "size", "disabled", "aria-required", "aria-invalid", "aria-errormessage", "aria-describedby"], ae = ["value"], z = "cdr-select", be = /* @__PURE__ */ R({
|
|
11
|
+
name: "CdrSelect",
|
|
12
|
+
inheritAttrs: !1,
|
|
13
|
+
customOptions: {},
|
|
14
|
+
__name: "CdrSelect",
|
|
15
|
+
props: {
|
|
16
|
+
/**
|
|
17
|
+
* Custom ID that is mapped to the label ‘for’ attribute. If this value is not set, it will be auto-generated.
|
|
18
|
+
*/
|
|
19
|
+
id: {
|
|
20
|
+
type: String
|
|
21
|
+
},
|
|
22
|
+
/**
|
|
23
|
+
* Sets the text value for the select label.
|
|
24
|
+
* Required for accessibility compliance. Use ‘hideLabel’ to
|
|
25
|
+
* visually hide the label but keep it available to screenreaders.
|
|
26
|
+
*/
|
|
27
|
+
label: {
|
|
28
|
+
type: String,
|
|
29
|
+
required: !0
|
|
30
|
+
},
|
|
31
|
+
/**
|
|
32
|
+
* Visually hides the label element, but leaves it available to screen readers for accessibility compliance.
|
|
33
|
+
*/
|
|
34
|
+
hideLabel: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
default: !1
|
|
37
|
+
},
|
|
38
|
+
/**
|
|
39
|
+
* Adds an option that is disabled and selected by default to serve as a `placeholder` for the select.
|
|
40
|
+
*/
|
|
41
|
+
prompt: String,
|
|
42
|
+
/**
|
|
43
|
+
* Build options programmatically with data.
|
|
44
|
+
* Provide an array of objects [{ text: String, value: String}] for greater control
|
|
45
|
+
* or provide an array of strings ['String'] for simpler setup (value and text will be the same).
|
|
46
|
+
*/
|
|
47
|
+
options: {
|
|
48
|
+
type: Array
|
|
49
|
+
},
|
|
50
|
+
/**
|
|
51
|
+
* Sets the background color the radio button is rendered on
|
|
52
|
+
* @values primary, secondary
|
|
53
|
+
*/
|
|
54
|
+
background: te,
|
|
55
|
+
/**
|
|
56
|
+
* Sets the component's size; values can target responsive breakpoints. Example `small@lg`
|
|
57
|
+
* @demoSelectMultiple false
|
|
58
|
+
* @values small, medium, large
|
|
59
|
+
*/
|
|
60
|
+
size: re,
|
|
61
|
+
/** Sets the select to an error state, displays the `error` slot if one is present. */
|
|
62
|
+
error: {
|
|
63
|
+
type: [Boolean, String],
|
|
64
|
+
default: !1
|
|
65
|
+
},
|
|
66
|
+
/**
|
|
67
|
+
* Sets the `role` attribute for the embedded error state messaging.
|
|
68
|
+
*/
|
|
69
|
+
errorRole: {
|
|
70
|
+
type: String,
|
|
71
|
+
default: "status"
|
|
72
|
+
},
|
|
73
|
+
/** @ignore */
|
|
74
|
+
modelValue: {
|
|
75
|
+
type: [String, Number, Boolean, Object, Array, Symbol, Function]
|
|
76
|
+
},
|
|
77
|
+
/** Disables the input and sets appropriate styling */
|
|
78
|
+
disabled: Boolean,
|
|
79
|
+
/** Sets aria-required on the input field and displays an asterisk next to the select label */
|
|
80
|
+
required: Boolean,
|
|
81
|
+
/** Displays '(optional)' text next to the select label. */
|
|
82
|
+
optional: Boolean,
|
|
83
|
+
/** Turns CdrSelect into a multi-select element. */
|
|
84
|
+
multiple: Boolean,
|
|
85
|
+
/** Sets the height of the CdrSelect when using the multiple option.
|
|
86
|
+
* This number corresponds to the number of select options that will be visible without scrolling.
|
|
87
|
+
*/
|
|
88
|
+
multipleSize: Number
|
|
89
|
+
},
|
|
90
|
+
emits: {
|
|
91
|
+
/**
|
|
92
|
+
* Event emitted by v-model on the radio's <input> element
|
|
93
|
+
* @param modelValue
|
|
94
|
+
*/
|
|
95
|
+
"update:modelValue": null
|
|
96
|
+
},
|
|
97
|
+
setup(e, {
|
|
98
|
+
emit: B
|
|
99
|
+
}) {
|
|
100
|
+
const r = e, c = U(), u = H(), q = T(), V = u["helper-text"], x = u.info, A = u["info-action"], h = u["pre-icon"], m = r.id ? r.id : le(), I = o(() => r.multiple ? "cdr-select--multiple" : ""), N = o(() => r.modelValue ? "" : "cdr-select__prompt"), E = o(() => h ? "cdr-select--preicon" : ""), L = o(() => r.error ? "cdr-select--error" : ""), O = o(() => `cdr-select--${r.background}`), P = o(() => r.size ? `${z}--${r.size}` : ""), j = o(() => r.disabled ? "cdr-select__caret--disabled" : ""), w = o(() => {
|
|
101
|
+
const l = [u["helper-text"] ? `${r.id}-helper-text-top` : "", q["aria-describedby"]].filter((a) => a).join(" ");
|
|
102
|
+
return r.error ? `${r.id}-error` : l;
|
|
103
|
+
}), D = o(() => {
|
|
104
|
+
const l = [];
|
|
105
|
+
return r.options && r.options.forEach((a) => {
|
|
106
|
+
const s = {
|
|
107
|
+
text: "",
|
|
108
|
+
value: ""
|
|
109
|
+
};
|
|
110
|
+
let b = "", v = "";
|
|
111
|
+
if (typeof a == "string")
|
|
112
|
+
b = a, v = a;
|
|
113
|
+
else {
|
|
114
|
+
const {
|
|
115
|
+
text: F,
|
|
116
|
+
value: M
|
|
117
|
+
} = a;
|
|
118
|
+
b = F, v = M;
|
|
119
|
+
}
|
|
120
|
+
s.text = b, s.value = v, l.push(s);
|
|
121
|
+
}), l;
|
|
122
|
+
}), g = o({
|
|
123
|
+
get() {
|
|
124
|
+
return r.modelValue;
|
|
125
|
+
},
|
|
126
|
+
set(l) {
|
|
127
|
+
B("update:modelValue", l);
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
return (l, a) => (i(), C(_, {
|
|
131
|
+
"for-id": t(m),
|
|
132
|
+
label: e.label,
|
|
133
|
+
"hide-label": e.hideLabel,
|
|
134
|
+
required: e.required,
|
|
135
|
+
optional: e.optional,
|
|
136
|
+
disabled: e.disabled
|
|
137
|
+
}, G({
|
|
138
|
+
default: n(() => [S("div", {
|
|
139
|
+
class: p(t(c)["cdr-select-wrap"])
|
|
140
|
+
}, [t(h) ? (i(), f("span", {
|
|
141
|
+
key: 0,
|
|
142
|
+
class: p(t(c)["cdr-select__pre-icon"])
|
|
143
|
+
}, [d(l.$slots, "pre-icon")], 2)) : y("", !0), J(S("select", K({
|
|
144
|
+
id: t(m),
|
|
145
|
+
class: t($)(t(c), z, P.value, N.value, I.value, O.value, L.value, E.value),
|
|
146
|
+
multiple: e.multiple,
|
|
147
|
+
size: e.multipleSize,
|
|
148
|
+
disabled: e.disabled,
|
|
149
|
+
"aria-required": e.required || void 0,
|
|
150
|
+
"aria-invalid": !!e.error || void 0,
|
|
151
|
+
"aria-errormessage": !!e.error && `${t(m)}-error` || void 0
|
|
152
|
+
}, l.$attrs, {
|
|
153
|
+
"aria-describedby": w.value || void 0,
|
|
154
|
+
"onUpdate:modelValue": a[0] || (a[0] = (s) => g.value = s)
|
|
155
|
+
}), [e.prompt ? (i(), f("option", {
|
|
156
|
+
key: 0,
|
|
157
|
+
class: p(t(c)["cdr-select__prompt"]),
|
|
158
|
+
value: "",
|
|
159
|
+
disabled: ""
|
|
160
|
+
}, k(e.prompt), 3)) : y("", !0), (i(!0), f(Q, null, W(D.value, (s) => (i(), f("option", {
|
|
161
|
+
key: s.text,
|
|
162
|
+
value: s.value
|
|
163
|
+
}, k(s.text), 9, ae))), 128)), d(l.$slots, "default")], 16, oe), [[X, g.value]]), Y(Z, {
|
|
164
|
+
class: p(t($)(t(c), "cdr-select__caret", j.value))
|
|
165
|
+
}, null, 8, ["class"])], 2)]),
|
|
166
|
+
_: 2
|
|
167
|
+
}, [t(V) ? {
|
|
168
|
+
name: "helper",
|
|
169
|
+
fn: n(() => [d(l.$slots, "helper-text")]),
|
|
170
|
+
key: "0"
|
|
171
|
+
} : void 0, t(x) ? {
|
|
172
|
+
name: "info",
|
|
173
|
+
fn: n(() => [d(l.$slots, "info")]),
|
|
174
|
+
key: "1"
|
|
175
|
+
} : void 0, t(A) ? {
|
|
176
|
+
name: "info-action",
|
|
177
|
+
fn: n(() => [d(l.$slots, "info-action")]),
|
|
178
|
+
key: "2"
|
|
179
|
+
} : void 0, e.error ? {
|
|
180
|
+
name: "error",
|
|
181
|
+
fn: n(() => [e.error ? (i(), C(ee, {
|
|
182
|
+
key: 0,
|
|
183
|
+
error: e.error,
|
|
184
|
+
role: e.errorRole,
|
|
185
|
+
id: `${t(m)}-error`
|
|
186
|
+
}, {
|
|
187
|
+
error: n(() => [d(l.$slots, "error")]),
|
|
188
|
+
_: 3
|
|
189
|
+
}, 8, ["error", "role", "id"])) : y("", !0)]),
|
|
190
|
+
key: "3"
|
|
191
|
+
} : void 0]), 1032, ["for-id", "label", "hide-label", "required", "optional", "disabled"]));
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
export {
|
|
195
|
+
be as default
|
|
196
|
+
};
|