@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
|
@@ -1,126 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const U = D({
|
|
8
|
-
name: "CdrToast",
|
|
9
|
-
components: {
|
|
10
|
-
IconXSm: V,
|
|
11
|
-
CdrButton: z
|
|
12
|
-
},
|
|
13
|
-
props: {
|
|
14
|
-
/**
|
|
15
|
-
* Sets the toast type.
|
|
16
|
-
* @demoSelectMultiple false
|
|
17
|
-
* @values info, success, warning, error, default
|
|
18
|
-
*/
|
|
19
|
-
type: {
|
|
20
|
-
type: String,
|
|
21
|
-
validator: (e) => S(e, ["info", "warning", "success", "error", "default"]),
|
|
22
|
-
default: "default"
|
|
23
|
-
},
|
|
24
|
-
/**
|
|
25
|
-
* Used to programmatically control the toast open/close state.
|
|
26
|
-
* @demoIgnore true
|
|
27
|
-
*/
|
|
28
|
-
open: {
|
|
29
|
-
type: Boolean,
|
|
30
|
-
default: !1
|
|
31
|
-
},
|
|
32
|
-
/** Set to `false` to disable automatic closing after the `dismissDelay`. */
|
|
33
|
-
autoDismiss: {
|
|
34
|
-
type: Boolean,
|
|
35
|
-
default: !0
|
|
36
|
-
},
|
|
37
|
-
/** Sets the interval (in milliseconds) before the toast automatically closes. */
|
|
38
|
-
dismissDelay: {
|
|
39
|
-
type: Number,
|
|
40
|
-
default: 5e3
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
emits: {
|
|
44
|
-
/** Emits when toast opens */
|
|
45
|
-
open: null,
|
|
46
|
-
/** Emits when toast closes */
|
|
47
|
-
closed: null
|
|
48
|
-
},
|
|
49
|
-
setup(e, a) {
|
|
50
|
-
const d = "cdr-toast", v = L(), p = a.slots["icon-left"], l = _(null), r = _(null);
|
|
51
|
-
let s, t;
|
|
52
|
-
const k = N(() => e.type && `${d}--${e.type}`), i = (o) => {
|
|
53
|
-
s ? clearTimeout(s) : a.emit("open", o), l.value = !0, e.autoDismiss && !o && c();
|
|
54
|
-
}, B = (o) => {
|
|
55
|
-
m(), l.value = !1, a.emit("closed", o);
|
|
56
|
-
}, c = (o) => {
|
|
57
|
-
s = setTimeout(() => {
|
|
58
|
-
m(), l.value = !1, a.emit("closed", o);
|
|
59
|
-
}, e.dismissDelay);
|
|
60
|
-
}, y = () => {
|
|
61
|
-
t = r.value, t && (t.addEventListener("mouseover", i), t.addEventListener("mouseleave", c));
|
|
62
|
-
}, m = () => {
|
|
63
|
-
t && (t.removeEventListener("mouseover", i), t.removeEventListener("mouseleave", c));
|
|
64
|
-
};
|
|
65
|
-
return g(() => e.open, () => {
|
|
66
|
-
e.open && i();
|
|
67
|
-
}), w(() => {
|
|
68
|
-
e.autoDismiss && y();
|
|
69
|
-
}), {
|
|
70
|
-
baseClass: d,
|
|
71
|
-
style: v,
|
|
72
|
-
hasIconLeft: p,
|
|
73
|
-
opened: l,
|
|
74
|
-
toastEl: r,
|
|
75
|
-
timeout: s,
|
|
76
|
-
toastElement: t,
|
|
77
|
-
typeClass: k,
|
|
78
|
-
openToast: i,
|
|
79
|
-
closeToast: B,
|
|
80
|
-
closeToastWithDelay: c,
|
|
81
|
-
addHandlers: y,
|
|
82
|
-
removeHandlers: m
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
});
|
|
86
|
-
function W(e, a, d, v, p, l) {
|
|
87
|
-
const r = C("icon-x-sm"), s = C("cdr-button");
|
|
88
|
-
return u(), I(M, {
|
|
89
|
-
"enter-from-class": e.style["cdr-toast__transition--toast-enter-from"],
|
|
90
|
-
"enter-active-class": e.style["cdr-toast__transition--toast-enter-active"],
|
|
91
|
-
"leave-to-class": e.style["cdr-toast__transition--toast-leave-to"],
|
|
92
|
-
"leave-active-class": e.style["cdr-toast__transition--toast-leave-active"]
|
|
93
|
-
}, {
|
|
94
|
-
default: $(() => [e.opened ? (u(), E("div", {
|
|
95
|
-
key: 0,
|
|
96
|
-
class: n([e.style[e.baseClass], e.style[e.typeClass]]),
|
|
97
|
-
role: "status",
|
|
98
|
-
ref: "toastEl"
|
|
99
|
-
}, [T("div", {
|
|
100
|
-
class: n([e.style["cdr-toast__main"]])
|
|
101
|
-
}, [e.hasIconLeft ? (u(), E("div", {
|
|
102
|
-
key: 0,
|
|
103
|
-
class: n([e.style["cdr-toast__icon-left"]])
|
|
104
|
-
}, [f(e.$slots, "icon-left")], 2)) : b("", !0), T("span", {
|
|
105
|
-
class: n([e.style["cdr-toast__message"]])
|
|
106
|
-
}, [f(e.$slots, "default")], 2), h(s, {
|
|
107
|
-
class: n([e.style["cdr-toast__close-button"]]),
|
|
108
|
-
"icon-only": "",
|
|
109
|
-
onClick: e.closeToast,
|
|
110
|
-
"aria-label": "Close",
|
|
111
|
-
size: "small"
|
|
112
|
-
}, {
|
|
113
|
-
default: $(() => [f(e.$slots, "icon", {}, () => [h(r, {
|
|
114
|
-
"inherit-color": ""
|
|
115
|
-
})])]),
|
|
116
|
-
_: 3
|
|
117
|
-
}, 8, ["class", "onClick"])], 2)], 2)) : b("", !0)]),
|
|
118
|
-
_: 3
|
|
119
|
-
}, 8, ["enter-from-class", "enter-active-class", "leave-to-class", "leave-active-class"]);
|
|
120
|
-
}
|
|
121
|
-
const X = {
|
|
122
|
-
$style: H
|
|
123
|
-
}, K = /* @__PURE__ */ P(U, [["render", W], ["__cssModules", X]]);
|
|
1
|
+
import s from "./CdrToast.vue2.mjs";
|
|
2
|
+
import o from "./styles/CdrToast.module.scss.mjs";
|
|
3
|
+
import t from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const r = {
|
|
5
|
+
$style: o
|
|
6
|
+
}, f = /* @__PURE__ */ t(s, [["__cssModules", r]]);
|
|
124
7
|
export {
|
|
125
|
-
|
|
8
|
+
f as default
|
|
126
9
|
};
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { defineComponent as b, useCssModule as N, useSlots as g, ref as _, computed as w, watch as S, onUpdated as V, openBlock as m, createBlock as z, Transition as H, unref as e, withCtx as y, createElementBlock as C, normalizeClass as l, createElementVNode as E, renderSlot as f, createCommentVNode as T, createVNode as k } from "vue";
|
|
2
|
+
import I from "../../utils/propValidator.mjs";
|
|
3
|
+
import M from "../icon/comps/x-sm.vue.mjs";
|
|
4
|
+
import P from "../button/CdrButton.vue.mjs";
|
|
5
|
+
const h = "cdr-toast", F = /* @__PURE__ */ b({
|
|
6
|
+
name: "CdrToast",
|
|
7
|
+
__name: "CdrToast",
|
|
8
|
+
props: {
|
|
9
|
+
/**
|
|
10
|
+
* Sets the toast type.
|
|
11
|
+
* @demoSelectMultiple false
|
|
12
|
+
* @values info, success, warning, error, default
|
|
13
|
+
*/
|
|
14
|
+
type: {
|
|
15
|
+
type: String,
|
|
16
|
+
validator: (r) => I(r, ["info", "warning", "success", "error", "default"]),
|
|
17
|
+
default: "default"
|
|
18
|
+
},
|
|
19
|
+
/**
|
|
20
|
+
* Used to programmatically control the toast open/close state.
|
|
21
|
+
* @demoIgnore true
|
|
22
|
+
*/
|
|
23
|
+
open: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: !1
|
|
26
|
+
},
|
|
27
|
+
/** Set to `false` to disable automatic closing after the `dismissDelay`. */
|
|
28
|
+
autoDismiss: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
default: !0
|
|
31
|
+
},
|
|
32
|
+
/** Sets the interval (in milliseconds) before the toast automatically closes. */
|
|
33
|
+
dismissDelay: {
|
|
34
|
+
type: Number,
|
|
35
|
+
default: 5e3
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
emits: {
|
|
39
|
+
/** Emits when toast opens */
|
|
40
|
+
open: null,
|
|
41
|
+
/** Emits when toast closes */
|
|
42
|
+
closed: null
|
|
43
|
+
},
|
|
44
|
+
setup(r, {
|
|
45
|
+
emit: c
|
|
46
|
+
}) {
|
|
47
|
+
const o = r, t = N(), B = g()["icon-left"], n = _(!1), v = _(null);
|
|
48
|
+
let i, a;
|
|
49
|
+
const D = w(() => o.type && `${h}--${o.type}`), d = (s) => {
|
|
50
|
+
i ? clearTimeout(i) : c("open", s), n.value = !0, o.autoDismiss && !s && u();
|
|
51
|
+
}, $ = (s) => {
|
|
52
|
+
p(), n.value = !1, c("closed", s);
|
|
53
|
+
}, u = (s) => {
|
|
54
|
+
i = setTimeout(() => {
|
|
55
|
+
p(), n.value = !1, c("closed", s);
|
|
56
|
+
}, o.dismissDelay);
|
|
57
|
+
}, L = () => {
|
|
58
|
+
a = v.value, a && (a.addEventListener("mouseover", d), a.addEventListener("mouseleave", u));
|
|
59
|
+
}, p = () => {
|
|
60
|
+
a && (a.removeEventListener("mouseover", d), a.removeEventListener("mouseleave", u));
|
|
61
|
+
};
|
|
62
|
+
return S(() => o.open, () => {
|
|
63
|
+
o.open && d();
|
|
64
|
+
}), V(() => {
|
|
65
|
+
o.autoDismiss && L();
|
|
66
|
+
}), (s, W) => (m(), z(H, {
|
|
67
|
+
"enter-from-class": e(t)["cdr-toast__transition--toast-enter-from"],
|
|
68
|
+
"enter-active-class": e(t)["cdr-toast__transition--toast-enter-active"],
|
|
69
|
+
"leave-to-class": e(t)["cdr-toast__transition--toast-leave-to"],
|
|
70
|
+
"leave-active-class": e(t)["cdr-toast__transition--toast-leave-active"]
|
|
71
|
+
}, {
|
|
72
|
+
default: y(() => [n.value ? (m(), C("div", {
|
|
73
|
+
key: 0,
|
|
74
|
+
class: l([e(t)[h], e(t)[D.value]]),
|
|
75
|
+
role: "status",
|
|
76
|
+
ref_key: "toastEl",
|
|
77
|
+
ref: v
|
|
78
|
+
}, [E("div", {
|
|
79
|
+
class: l([e(t)["cdr-toast__main"]])
|
|
80
|
+
}, [e(B) ? (m(), C("div", {
|
|
81
|
+
key: 0,
|
|
82
|
+
class: l([e(t)["cdr-toast__icon-left"]])
|
|
83
|
+
}, [f(s.$slots, "icon-left")], 2)) : T("", !0), E("span", {
|
|
84
|
+
class: l([e(t)["cdr-toast__message"]])
|
|
85
|
+
}, [f(s.$slots, "default")], 2), k(P, {
|
|
86
|
+
class: l([e(t)["cdr-toast__close-button"]]),
|
|
87
|
+
"icon-only": "",
|
|
88
|
+
onClick: $,
|
|
89
|
+
"aria-label": "Close",
|
|
90
|
+
size: "small"
|
|
91
|
+
}, {
|
|
92
|
+
default: y(() => [f(s.$slots, "icon", {}, () => [k(M, {
|
|
93
|
+
"inherit-color": ""
|
|
94
|
+
})])]),
|
|
95
|
+
_: 3
|
|
96
|
+
}, 8, ["class"])], 2)], 2)) : T("", !0)]),
|
|
97
|
+
_: 3
|
|
98
|
+
}, 8, ["enter-from-class", "enter-active-class", "leave-to-class", "leave-active-class"]));
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
export {
|
|
102
|
+
F as default
|
|
103
|
+
};
|
|
@@ -1,61 +1,61 @@
|
|
|
1
1
|
const t = {
|
|
2
|
-
"cdr-button": "cdr-
|
|
3
|
-
"cdr-button--has-icon-left": "cdr-button--has-icon-
|
|
4
|
-
"cdr-button--has-icon-right": "cdr-button--has-icon-
|
|
5
|
-
"cdr-button--primary": "cdr-button--
|
|
6
|
-
"cdr-button--secondary": "cdr-button--
|
|
7
|
-
"cdr-button--dark": "cdr-button--
|
|
8
|
-
"cdr-button--sale": "cdr-button--
|
|
9
|
-
"cdr-button--link": "cdr-button--
|
|
10
|
-
"cdr-button--large": "cdr-button--
|
|
11
|
-
"cdr-button--medium": "cdr-button--
|
|
12
|
-
"cdr-button--small": "cdr-button--
|
|
13
|
-
"cdr-button--icon-only": "cdr-button--icon-
|
|
14
|
-
"cdr-button--icon-only-large": "cdr-button--icon-only-
|
|
15
|
-
"cdr-button--with-background": "cdr-button--with-
|
|
16
|
-
"cdr-button--full-width": "cdr-button--full-
|
|
17
|
-
"cdr-button--small@xs": "cdr-button--small@
|
|
18
|
-
"cdr-button--medium@xs": "cdr-button--medium@
|
|
19
|
-
"cdr-button--large@xs": "cdr-button--large@
|
|
20
|
-
"cdr-button--full-width@xs": "cdr-button--full-width@
|
|
21
|
-
"cdr-button--small@sm": "cdr-button--small@
|
|
22
|
-
"cdr-button--medium@sm": "cdr-button--medium@
|
|
23
|
-
"cdr-button--large@sm": "cdr-button--large@
|
|
24
|
-
"cdr-button--full-width@sm": "cdr-button--full-width@
|
|
25
|
-
"cdr-button--small@md": "cdr-button--small@
|
|
26
|
-
"cdr-button--medium@md": "cdr-button--medium@
|
|
27
|
-
"cdr-button--large@md": "cdr-button--large@
|
|
28
|
-
"cdr-button--full-width@md": "cdr-button--full-width@
|
|
29
|
-
"cdr-button--small@lg": "cdr-button--small@
|
|
30
|
-
"cdr-button--medium@lg": "cdr-button--medium@
|
|
31
|
-
"cdr-button--large@lg": "cdr-button--large@
|
|
32
|
-
"cdr-button--full-width@lg": "cdr-button--full-width@
|
|
33
|
-
"cdr-icon": "cdr-
|
|
34
|
-
"cdr-icon--small": "cdr-icon--
|
|
35
|
-
"cdr-icon--large": "cdr-icon--
|
|
36
|
-
"cdr-icon--small@xs": "cdr-icon--small@
|
|
37
|
-
"cdr-icon--large@xs": "cdr-icon--large@
|
|
38
|
-
"cdr-icon--small@sm": "cdr-icon--small@
|
|
39
|
-
"cdr-icon--large@sm": "cdr-icon--large@
|
|
40
|
-
"cdr-icon--small@md": "cdr-icon--small@
|
|
41
|
-
"cdr-icon--large@md": "cdr-icon--large@
|
|
42
|
-
"cdr-icon--small@lg": "cdr-icon--small@
|
|
43
|
-
"cdr-icon--large@lg": "cdr-icon--large@
|
|
44
|
-
"cdr-icon--inherit-color": "cdr-icon--inherit-
|
|
45
|
-
"cdr-toast": "cdr-
|
|
46
|
-
"cdr-toast__transition--toast-enter-from": "cdr-toast__transition--toast-enter-
|
|
47
|
-
"cdr-toast__transition--toast-enter-active": "cdr-toast__transition--toast-enter-
|
|
48
|
-
"cdr-toast__transition--toast-leave-to": "cdr-toast__transition--toast-leave-
|
|
49
|
-
"cdr-toast__transition--toast-leave-active": "cdr-toast__transition--toast-leave-
|
|
50
|
-
"cdr-toast__main": "cdr-
|
|
51
|
-
"cdr-toast__icon-left": "cdr-toast__icon-
|
|
52
|
-
"cdr-toast__message": "cdr-
|
|
53
|
-
"cdr-toast__close-button": "cdr-toast__close-
|
|
54
|
-
"cdr-toast--default": "cdr-toast--
|
|
55
|
-
"cdr-toast--info": "cdr-toast--
|
|
56
|
-
"cdr-toast--warning": "cdr-toast--
|
|
57
|
-
"cdr-toast--success": "cdr-toast--
|
|
58
|
-
"cdr-toast--error": "cdr-toast--
|
|
2
|
+
"cdr-button": "cdr-button_14-0-0-ts-0",
|
|
3
|
+
"cdr-button--has-icon-left": "cdr-button--has-icon-left_14-0-0-ts-0",
|
|
4
|
+
"cdr-button--has-icon-right": "cdr-button--has-icon-right_14-0-0-ts-0",
|
|
5
|
+
"cdr-button--primary": "cdr-button--primary_14-0-0-ts-0",
|
|
6
|
+
"cdr-button--secondary": "cdr-button--secondary_14-0-0-ts-0",
|
|
7
|
+
"cdr-button--dark": "cdr-button--dark_14-0-0-ts-0",
|
|
8
|
+
"cdr-button--sale": "cdr-button--sale_14-0-0-ts-0",
|
|
9
|
+
"cdr-button--link": "cdr-button--link_14-0-0-ts-0",
|
|
10
|
+
"cdr-button--large": "cdr-button--large_14-0-0-ts-0",
|
|
11
|
+
"cdr-button--medium": "cdr-button--medium_14-0-0-ts-0",
|
|
12
|
+
"cdr-button--small": "cdr-button--small_14-0-0-ts-0",
|
|
13
|
+
"cdr-button--icon-only": "cdr-button--icon-only_14-0-0-ts-0",
|
|
14
|
+
"cdr-button--icon-only-large": "cdr-button--icon-only-large_14-0-0-ts-0",
|
|
15
|
+
"cdr-button--with-background": "cdr-button--with-background_14-0-0-ts-0",
|
|
16
|
+
"cdr-button--full-width": "cdr-button--full-width_14-0-0-ts-0",
|
|
17
|
+
"cdr-button--small@xs": "cdr-button--small@xs_14-0-0-ts-0",
|
|
18
|
+
"cdr-button--medium@xs": "cdr-button--medium@xs_14-0-0-ts-0",
|
|
19
|
+
"cdr-button--large@xs": "cdr-button--large@xs_14-0-0-ts-0",
|
|
20
|
+
"cdr-button--full-width@xs": "cdr-button--full-width@xs_14-0-0-ts-0",
|
|
21
|
+
"cdr-button--small@sm": "cdr-button--small@sm_14-0-0-ts-0",
|
|
22
|
+
"cdr-button--medium@sm": "cdr-button--medium@sm_14-0-0-ts-0",
|
|
23
|
+
"cdr-button--large@sm": "cdr-button--large@sm_14-0-0-ts-0",
|
|
24
|
+
"cdr-button--full-width@sm": "cdr-button--full-width@sm_14-0-0-ts-0",
|
|
25
|
+
"cdr-button--small@md": "cdr-button--small@md_14-0-0-ts-0",
|
|
26
|
+
"cdr-button--medium@md": "cdr-button--medium@md_14-0-0-ts-0",
|
|
27
|
+
"cdr-button--large@md": "cdr-button--large@md_14-0-0-ts-0",
|
|
28
|
+
"cdr-button--full-width@md": "cdr-button--full-width@md_14-0-0-ts-0",
|
|
29
|
+
"cdr-button--small@lg": "cdr-button--small@lg_14-0-0-ts-0",
|
|
30
|
+
"cdr-button--medium@lg": "cdr-button--medium@lg_14-0-0-ts-0",
|
|
31
|
+
"cdr-button--large@lg": "cdr-button--large@lg_14-0-0-ts-0",
|
|
32
|
+
"cdr-button--full-width@lg": "cdr-button--full-width@lg_14-0-0-ts-0",
|
|
33
|
+
"cdr-icon": "cdr-icon_14-0-0-ts-0",
|
|
34
|
+
"cdr-icon--small": "cdr-icon--small_14-0-0-ts-0",
|
|
35
|
+
"cdr-icon--large": "cdr-icon--large_14-0-0-ts-0",
|
|
36
|
+
"cdr-icon--small@xs": "cdr-icon--small@xs_14-0-0-ts-0",
|
|
37
|
+
"cdr-icon--large@xs": "cdr-icon--large@xs_14-0-0-ts-0",
|
|
38
|
+
"cdr-icon--small@sm": "cdr-icon--small@sm_14-0-0-ts-0",
|
|
39
|
+
"cdr-icon--large@sm": "cdr-icon--large@sm_14-0-0-ts-0",
|
|
40
|
+
"cdr-icon--small@md": "cdr-icon--small@md_14-0-0-ts-0",
|
|
41
|
+
"cdr-icon--large@md": "cdr-icon--large@md_14-0-0-ts-0",
|
|
42
|
+
"cdr-icon--small@lg": "cdr-icon--small@lg_14-0-0-ts-0",
|
|
43
|
+
"cdr-icon--large@lg": "cdr-icon--large@lg_14-0-0-ts-0",
|
|
44
|
+
"cdr-icon--inherit-color": "cdr-icon--inherit-color_14-0-0-ts-0",
|
|
45
|
+
"cdr-toast": "cdr-toast_14-0-0-ts-0",
|
|
46
|
+
"cdr-toast__transition--toast-enter-from": "cdr-toast__transition--toast-enter-from_14-0-0-ts-0",
|
|
47
|
+
"cdr-toast__transition--toast-enter-active": "cdr-toast__transition--toast-enter-active_14-0-0-ts-0",
|
|
48
|
+
"cdr-toast__transition--toast-leave-to": "cdr-toast__transition--toast-leave-to_14-0-0-ts-0",
|
|
49
|
+
"cdr-toast__transition--toast-leave-active": "cdr-toast__transition--toast-leave-active_14-0-0-ts-0",
|
|
50
|
+
"cdr-toast__main": "cdr-toast__main_14-0-0-ts-0",
|
|
51
|
+
"cdr-toast__icon-left": "cdr-toast__icon-left_14-0-0-ts-0",
|
|
52
|
+
"cdr-toast__message": "cdr-toast__message_14-0-0-ts-0",
|
|
53
|
+
"cdr-toast__close-button": "cdr-toast__close-button_14-0-0-ts-0",
|
|
54
|
+
"cdr-toast--default": "cdr-toast--default_14-0-0-ts-0",
|
|
55
|
+
"cdr-toast--info": "cdr-toast--info_14-0-0-ts-0",
|
|
56
|
+
"cdr-toast--warning": "cdr-toast--warning_14-0-0-ts-0",
|
|
57
|
+
"cdr-toast--success": "cdr-toast--success_14-0-0-ts-0",
|
|
58
|
+
"cdr-toast--error": "cdr-toast--error_14-0-0-ts-0"
|
|
59
59
|
};
|
|
60
60
|
export {
|
|
61
61
|
t as default
|
|
@@ -1,41 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Sets the value and aria-label for the toggle button. Display can be overridden using default slot
|
|
9
|
-
*/
|
|
10
|
-
toggleValue: {
|
|
11
|
-
type: String,
|
|
12
|
-
required: !0
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
setup(e) {
|
|
16
|
-
const t = r("selectedToggleValue"), o = a(() => e.toggleValue === t.value);
|
|
17
|
-
return {
|
|
18
|
-
style: n(),
|
|
19
|
-
isActive: o
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
}), _ = ["value", "aria-label", "aria-checked", "tabindex"];
|
|
23
|
-
function b(e, t, o, v, $, C) {
|
|
24
|
-
return i(), u("li", {
|
|
25
|
-
role: "presentation",
|
|
26
|
-
class: l(e.style["cdr-toggle-button__container"])
|
|
27
|
-
}, [c("button", {
|
|
28
|
-
role: "radio",
|
|
29
|
-
class: l(e.style["cdr-toggle-button__item"]),
|
|
30
|
-
value: e.toggleValue,
|
|
31
|
-
"aria-label": e.toggleValue,
|
|
32
|
-
"aria-checked": e.isActive ? "true" : "false",
|
|
33
|
-
tabindex: e.isActive ? 0 : -1
|
|
34
|
-
}, [d(e.$slots, "default", {}, () => [g(p(e.toggleValue), 1)])], 10, _)], 2);
|
|
35
|
-
}
|
|
36
|
-
const y = {
|
|
37
|
-
$style: m
|
|
38
|
-
}, B = /* @__PURE__ */ f(V, [["render", b], ["__cssModules", y]]);
|
|
1
|
+
import o from "./CdrToggleButton.vue2.mjs";
|
|
2
|
+
import s from "./styles/CdrToggleButton.module.scss.mjs";
|
|
3
|
+
import t from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const r = {
|
|
5
|
+
$style: s
|
|
6
|
+
}, f = /* @__PURE__ */ t(o, [["__cssModules", r]]);
|
|
39
7
|
export {
|
|
40
|
-
|
|
8
|
+
f as default
|
|
41
9
|
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { defineComponent as s, useCssModule as u, inject as g, ref as i, computed as d, openBlock as m, createElementBlock as f, normalizeClass as o, unref as a, createElementVNode as p, renderSlot as b, createTextVNode as V, toDisplayString as v } from "vue";
|
|
2
|
+
import { selectedToggleKey as C } from "./symbols.mjs";
|
|
3
|
+
const T = ["value", "aria-label", "aria-checked", "tabindex"], x = /* @__PURE__ */ s({
|
|
4
|
+
name: "CdrToggleButton",
|
|
5
|
+
__name: "CdrToggleButton",
|
|
6
|
+
props: {
|
|
7
|
+
/**
|
|
8
|
+
* Sets the value and aria-label for the toggle button. Display can be overridden using default slot
|
|
9
|
+
*/
|
|
10
|
+
toggleValue: {
|
|
11
|
+
type: String,
|
|
12
|
+
required: !0
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
setup(e) {
|
|
16
|
+
const r = e, t = u(), n = g(C, i("")), l = d(() => r.toggleValue === n.value);
|
|
17
|
+
return (c, _) => (m(), f("li", {
|
|
18
|
+
role: "presentation",
|
|
19
|
+
class: o(a(t)["cdr-toggle-button__container"])
|
|
20
|
+
}, [p("button", {
|
|
21
|
+
role: "radio",
|
|
22
|
+
class: o(a(t)["cdr-toggle-button__item"]),
|
|
23
|
+
value: e.toggleValue,
|
|
24
|
+
"aria-label": e.toggleValue,
|
|
25
|
+
"aria-checked": l.value ? "true" : "false",
|
|
26
|
+
tabindex: l.value ? 0 : -1
|
|
27
|
+
}, [b(c.$slots, "default", {}, () => [V(v(e.toggleValue), 1)])], 10, T)], 2));
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
export {
|
|
31
|
+
x as default
|
|
32
|
+
};
|
|
@@ -1,87 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
name: "CdrToggleGroup",
|
|
8
|
-
props: {
|
|
9
|
-
/** @ignore */
|
|
10
|
-
modelValue: {
|
|
11
|
-
type: [String, Number, Boolean, Object, Array],
|
|
12
|
-
required: !0
|
|
13
|
-
},
|
|
14
|
-
/**
|
|
15
|
-
* Sets toggle button size
|
|
16
|
-
* @demoSelectMultiple false
|
|
17
|
-
* @values medium, large
|
|
18
|
-
*/
|
|
19
|
-
size: {
|
|
20
|
-
type: String,
|
|
21
|
-
default: "medium",
|
|
22
|
-
validator: (e) => k(e, ["medium", "large"])
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
emits: {
|
|
26
|
-
/**
|
|
27
|
-
* Event emitted by v-model
|
|
28
|
-
* @param modelValue
|
|
29
|
-
*/
|
|
30
|
-
"update:modelValue": null
|
|
31
|
-
},
|
|
32
|
-
setup(e, t) {
|
|
33
|
-
const a = g(null), u = g(e.modelValue);
|
|
34
|
-
b("selectedToggleValue", u);
|
|
35
|
-
const d = $(() => e.size ? `cdr-toggle-group--${e.size}` : "cdr-toggle-group--medium");
|
|
36
|
-
let o;
|
|
37
|
-
T(() => {
|
|
38
|
-
o = Array.from(a.value.querySelectorAll("button"));
|
|
39
|
-
}), V(() => e.modelValue, (s) => {
|
|
40
|
-
u.value = s;
|
|
41
|
-
});
|
|
42
|
-
const r = (s) => {
|
|
43
|
-
if (!s.target.closest("button"))
|
|
44
|
-
return;
|
|
45
|
-
const n = s.target.closest("button");
|
|
46
|
-
u.value = n.value, t.emit("update:modelValue", n.value), n.focus();
|
|
47
|
-
}, m = (s) => {
|
|
48
|
-
const n = s.target, l = o.indexOf(n);
|
|
49
|
-
if (l === o.length - 1)
|
|
50
|
-
return;
|
|
51
|
-
o[l + 1].focus();
|
|
52
|
-
}, f = (s) => {
|
|
53
|
-
const n = s.target, l = o.indexOf(n);
|
|
54
|
-
if (l === 0)
|
|
55
|
-
return;
|
|
56
|
-
o[l - 1].focus();
|
|
57
|
-
}, p = "cdr-toggle-group", B = z();
|
|
58
|
-
return {
|
|
59
|
-
toggleGroup: a,
|
|
60
|
-
selectedToggleValue: u,
|
|
61
|
-
toggleButtonElements: o,
|
|
62
|
-
selectToggleButton: r,
|
|
63
|
-
focusNext: m,
|
|
64
|
-
focusPrev: f,
|
|
65
|
-
sizeClass: d,
|
|
66
|
-
baseClass: p,
|
|
67
|
-
mapClasses: S,
|
|
68
|
-
style: B
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
function q(e, t, a, u, d, o) {
|
|
73
|
-
return M(), P("ul", G({
|
|
74
|
-
ref: "toggleGroup",
|
|
75
|
-
role: "radiogroup"
|
|
76
|
-
}, e.$attrs, {
|
|
77
|
-
class: e.mapClasses(e.style, e.baseClass, e.sizeClass),
|
|
78
|
-
onClick: t[0] || (t[0] = i((...r) => e.selectToggleButton && e.selectToggleButton(...r), ["prevent"])),
|
|
79
|
-
onKeyup: [t[1] || (t[1] = c(i((...r) => e.focusNext && e.focusNext(...r), ["prevent"]), ["right"])), t[2] || (t[2] = c(i((...r) => e.focusPrev && e.focusPrev(...r), ["prevent"]), ["left"]))]
|
|
80
|
-
}), [N(e.$slots, "default")], 16);
|
|
81
|
-
}
|
|
82
|
-
const x = {
|
|
83
|
-
$style: w
|
|
84
|
-
}, j = /* @__PURE__ */ A(O, [["render", q], ["__cssModules", x]]);
|
|
1
|
+
import o from "./CdrToggleGroup.vue2.mjs";
|
|
2
|
+
import s from "./styles/CdrToggleGroup.module.scss.mjs";
|
|
3
|
+
import r from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const t = {
|
|
5
|
+
$style: s
|
|
6
|
+
}, f = /* @__PURE__ */ r(o, [["__cssModules", t]]);
|
|
85
7
|
export {
|
|
86
|
-
|
|
8
|
+
f as default
|
|
87
9
|
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { defineComponent as C, useCssModule as b, ref as a, provide as h, computed as _, onMounted as V, watch as k, openBlock as T, createElementBlock as z, mergeProps as G, unref as i, withModifiers as c, withKeys as d, renderSlot as K } from "vue";
|
|
2
|
+
import S from "../../utils/mapClasses.mjs";
|
|
3
|
+
import w from "../../utils/propValidator.mjs";
|
|
4
|
+
import { selectedToggleKey as A } from "./symbols.mjs";
|
|
5
|
+
const M = ["onClick", "onKeyup"], O = "cdr-toggle-group", F = /* @__PURE__ */ C({
|
|
6
|
+
name: "CdrToggleGroup",
|
|
7
|
+
__name: "CdrToggleGroup",
|
|
8
|
+
props: {
|
|
9
|
+
/** @ignore */
|
|
10
|
+
modelValue: {
|
|
11
|
+
type: [String, Number, Boolean, Object, Array],
|
|
12
|
+
required: !0
|
|
13
|
+
},
|
|
14
|
+
/**
|
|
15
|
+
* Sets toggle button size
|
|
16
|
+
* @demoSelectMultiple false
|
|
17
|
+
* @values medium, large
|
|
18
|
+
*/
|
|
19
|
+
size: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: "medium",
|
|
22
|
+
validator: (u) => w(u, ["medium", "large"])
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
emits: {
|
|
26
|
+
/**
|
|
27
|
+
* Event emitted by v-model
|
|
28
|
+
* @param modelValue
|
|
29
|
+
*/
|
|
30
|
+
"update:modelValue": null
|
|
31
|
+
},
|
|
32
|
+
setup(u, {
|
|
33
|
+
emit: g
|
|
34
|
+
}) {
|
|
35
|
+
const n = u, p = b(), s = a(null), l = a(n.modelValue);
|
|
36
|
+
h(A, l);
|
|
37
|
+
const m = _(() => n.size ? `cdr-toggle-group--${n.size}` : "cdr-toggle-group--medium");
|
|
38
|
+
let r;
|
|
39
|
+
V(() => {
|
|
40
|
+
s.value && (r = Array.from(s.value.querySelectorAll("button")));
|
|
41
|
+
}), k(() => n.modelValue, (e) => {
|
|
42
|
+
l.value = e;
|
|
43
|
+
});
|
|
44
|
+
const f = (e) => {
|
|
45
|
+
var o;
|
|
46
|
+
if (!((o = e.target) != null && o.closest("button")))
|
|
47
|
+
return;
|
|
48
|
+
const t = e.target.closest("button");
|
|
49
|
+
t && (l.value = t.value, g("update:modelValue", t.value), t.focus());
|
|
50
|
+
}, B = (e) => {
|
|
51
|
+
const t = e.target, o = r.indexOf(t);
|
|
52
|
+
if (o === r.length - 1)
|
|
53
|
+
return;
|
|
54
|
+
r[o + 1].focus();
|
|
55
|
+
}, v = (e) => {
|
|
56
|
+
const t = e.target, o = r.indexOf(t);
|
|
57
|
+
if (o === 0)
|
|
58
|
+
return;
|
|
59
|
+
r[o - 1].focus();
|
|
60
|
+
};
|
|
61
|
+
return (e, t) => (T(), z("ul", G({
|
|
62
|
+
ref_key: "toggleGroup",
|
|
63
|
+
ref: s,
|
|
64
|
+
role: "radiogroup"
|
|
65
|
+
}, e.$attrs, {
|
|
66
|
+
class: i(S)(i(p), O, m.value),
|
|
67
|
+
onClick: c(f, ["prevent"]),
|
|
68
|
+
onKeyup: [d(c(B, ["prevent"]), ["right"]), d(c(v, ["prevent"]), ["left"])]
|
|
69
|
+
}), [K(e.$slots, "default")], 16, M));
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
export {
|
|
73
|
+
F as default
|
|
74
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const t = {
|
|
2
|
-
"cdr-toggle-button__item": "cdr-toggle-
|
|
3
|
-
"cdr-toggle-button__container": "cdr-toggle-
|
|
2
|
+
"cdr-toggle-button__item": "cdr-toggle-button__item_14-0-0-ts-0",
|
|
3
|
+
"cdr-toggle-button__container": "cdr-toggle-button__container_14-0-0-ts-0"
|
|
4
4
|
};
|
|
5
5
|
export {
|
|
6
6
|
t as default
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
const
|
|
2
|
-
"cdr-toggle-group": "cdr-toggle-
|
|
3
|
-
"cdr-toggle-group--medium": "cdr-toggle-group--
|
|
4
|
-
"cdr-toggle-button__item": "cdr-toggle-
|
|
5
|
-
"cdr-toggle-button__container": "cdr-toggle-
|
|
6
|
-
"cdr-toggle-group--large": "cdr-toggle-group--
|
|
1
|
+
const t = {
|
|
2
|
+
"cdr-toggle-group": "cdr-toggle-group_14-0-0-ts-0",
|
|
3
|
+
"cdr-toggle-group--medium": "cdr-toggle-group--medium_14-0-0-ts-0",
|
|
4
|
+
"cdr-toggle-button__item": "cdr-toggle-button__item_14-0-0-ts-0",
|
|
5
|
+
"cdr-toggle-button__container": "cdr-toggle-button__container_14-0-0-ts-0",
|
|
6
|
+
"cdr-toggle-group--large": "cdr-toggle-group--large_14-0-0-ts-0"
|
|
7
7
|
};
|
|
8
8
|
export {
|
|
9
|
-
|
|
9
|
+
t as default
|
|
10
10
|
};
|