@rei/cedar 11.0.1 → 13.0.0-alpha.kurt-test
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/README.md +28 -35
- package/dist/cedar-compiled.css +944 -1104
- package/dist/cedar.js +8727 -9237
- package/dist/cedar.mjs +8519 -7534
- package/dist/lib/_virtual/plugin-vue_export-helper.js +9 -0
- package/dist/lib/assets/{cedar-compiled-010f67b6.css → cedar-compiled-f3a569d4.css} +2475 -2635
- package/dist/lib/node_modules/@rei/cdr-tokens/dist/js/{cdr-tokens.esm.mjs → cdr-tokens.esm.js} +0 -0
- package/dist/lib/src/components/accordion/CdrAccordion.js +211 -0
- package/dist/lib/src/components/accordion/CdrAccordionGroup.js +112 -0
- package/dist/lib/src/components/banner/CdrBanner.js +91 -0
- package/dist/lib/src/components/breadcrumb/CdrBreadcrumb.js +140 -0
- package/dist/lib/src/components/button/CdrButton.js +124 -0
- package/dist/lib/src/components/caption/CdrCaption.js +40 -0
- package/dist/lib/src/components/card/CdrCard.js +32 -0
- package/dist/lib/src/components/checkbox/CdrCheckbox.js +118 -0
- package/dist/lib/src/components/chip/CdrChip.js +59 -0
- package/dist/lib/src/components/chip/CdrChipGroup.js +109 -0
- package/dist/lib/src/components/container/CdrContainer.js +49 -0
- package/dist/lib/src/components/formError/CdrFormError.js +40 -0
- package/dist/lib/src/components/formGroup/CdrFormGroup.js +99 -0
- package/dist/lib/src/components/grid/CdrGrid.js +54 -0
- package/dist/lib/src/components/icon/CdrIcon.js +67 -0
- package/dist/lib/src/components/icon/comps/account-profile-fill.js +35 -0
- package/dist/lib/src/components/icon/comps/account-profile.js +35 -0
- package/dist/lib/src/components/icon/comps/arrow-down.js +35 -0
- package/dist/lib/src/components/icon/comps/arrow-left.js +35 -0
- package/dist/lib/src/components/icon/comps/arrow-right.js +35 -0
- package/dist/lib/src/components/icon/comps/arrow-up.js +35 -0
- package/dist/lib/src/components/icon/comps/atv.js +35 -0
- package/dist/lib/src/components/icon/comps/bed-outline.js +35 -0
- package/dist/lib/src/components/icon/comps/bike-shop.js +35 -0
- package/dist/lib/src/components/icon/comps/binoculars.js +35 -0
- package/dist/lib/src/components/icon/comps/birding.js +35 -0
- package/dist/lib/src/components/icon/comps/boat.js +35 -0
- package/dist/lib/src/components/icon/comps/boating.js +35 -0
- package/dist/lib/src/components/icon/comps/bookmark-fill.js +35 -0
- package/dist/lib/src/components/icon/comps/bookmark-stroke.js +35 -0
- package/dist/lib/src/components/icon/comps/brand-abstract.js +35 -0
- package/dist/lib/src/components/icon/comps/brand-code-sandbox.js +35 -0
- package/dist/lib/src/components/icon/comps/brand-github.js +35 -0
- package/dist/lib/src/components/icon/comps/brand-linkedin.js +35 -0
- package/dist/lib/src/components/icon/comps/brand-rei-ice-axes.js +35 -0
- package/dist/lib/src/components/icon/comps/brand-sketch.js +35 -0
- package/dist/lib/src/components/icon/comps/buddies.js +35 -0
- package/dist/lib/src/components/icon/comps/bus.js +35 -0
- package/dist/lib/src/components/icon/comps/calendar.js +35 -0
- package/dist/lib/src/components/icon/comps/camera.js +35 -0
- package/dist/lib/src/components/icon/comps/canoe.js +35 -0
- package/dist/lib/src/components/icon/comps/car.js +35 -0
- package/dist/lib/src/components/icon/comps/caret-down.js +35 -0
- package/dist/lib/src/components/icon/comps/caret-left.js +35 -0
- package/dist/lib/src/components/icon/comps/caret-right.js +35 -0
- package/dist/lib/src/components/icon/comps/caret-up.js +35 -0
- package/dist/lib/src/components/icon/comps/cart-fill.js +35 -0
- package/dist/lib/src/components/icon/comps/cart.js +35 -0
- package/dist/lib/src/components/icon/comps/chain-link.js +35 -0
- package/dist/lib/src/components/icon/comps/chat.js +35 -0
- package/dist/lib/src/components/icon/comps/check-fill.js +35 -0
- package/dist/lib/src/components/icon/comps/check-lg.js +35 -0
- package/dist/lib/src/components/icon/comps/check-sm.js +35 -0
- package/dist/lib/src/components/icon/comps/check-stroke.js +35 -0
- package/dist/lib/src/components/icon/comps/climb.js +35 -0
- package/dist/lib/src/components/icon/comps/clipboard.js +35 -0
- package/dist/lib/src/components/icon/comps/clock.js +35 -0
- package/dist/lib/src/components/icon/comps/code-html.js +35 -0
- package/dist/lib/src/components/icon/comps/code-js.js +35 -0
- package/dist/lib/src/components/icon/comps/compass.js +35 -0
- package/dist/lib/src/components/icon/comps/copy.js +35 -0
- package/dist/lib/src/components/icon/comps/coupon-fill.js +35 -0
- package/dist/lib/src/components/icon/comps/coupon-stroke.js +35 -0
- package/dist/lib/src/components/icon/comps/credit-card.js +35 -0
- package/dist/lib/src/components/icon/comps/curbside-pickup.js +35 -0
- package/dist/lib/src/components/icon/comps/day.js +35 -0
- package/dist/lib/src/components/icon/comps/diving.js +35 -0
- package/dist/lib/src/components/icon/comps/dog.js +35 -0
- package/dist/lib/src/components/icon/comps/download.js +35 -0
- package/dist/lib/src/components/icon/comps/edit.js +35 -0
- package/dist/lib/src/components/icon/comps/elevation.js +35 -0
- package/dist/lib/src/components/icon/comps/error-fill.js +37 -0
- package/dist/lib/src/components/icon/comps/error-stroke.js +42 -0
- package/dist/lib/src/components/icon/comps/expand.js +35 -0
- package/dist/lib/src/components/icon/comps/experiences-backpacking.js +35 -0
- package/dist/lib/src/components/icon/comps/experiences-camping.js +35 -0
- package/dist/lib/src/components/icon/comps/experiences-climbing.js +35 -0
- package/dist/lib/src/components/icon/comps/experiences-clothing.js +35 -0
- package/dist/lib/src/components/icon/comps/experiences-cycling.js +35 -0
- package/dist/lib/src/components/icon/comps/experiences-family.js +35 -0
- package/dist/lib/src/components/icon/comps/experiences-fitness.js +35 -0
- package/dist/lib/src/components/icon/comps/experiences-hiking.js +35 -0
- package/dist/lib/src/components/icon/comps/experiences-outdoor-basics.js +35 -0
- package/dist/lib/src/components/icon/comps/experiences-paddling.js +35 -0
- package/dist/lib/src/components/icon/comps/experiences-rentals.js +35 -0
- package/dist/lib/src/components/icon/comps/experiences-snowsports.js +35 -0
- package/dist/lib/src/components/icon/comps/experiences-travel.js +35 -0
- package/dist/lib/src/components/icon/comps/external-link.js +35 -0
- package/dist/lib/src/components/icon/comps/eye-hide.js +35 -0
- package/dist/lib/src/components/icon/comps/eye-show.js +35 -0
- package/dist/lib/src/components/icon/comps/facebook.js +35 -0
- package/dist/lib/src/components/icon/comps/filter-alt.js +35 -0
- package/dist/lib/src/components/icon/comps/filter.js +35 -0
- package/dist/lib/src/components/icon/comps/find-location.js +35 -0
- package/dist/lib/src/components/icon/comps/fire.js +35 -0
- package/dist/lib/src/components/icon/comps/fishing.js +35 -0
- package/dist/lib/src/components/icon/comps/free-product.js +35 -0
- package/dist/lib/src/components/icon/comps/grid-view.js +35 -0
- package/dist/lib/src/components/icon/comps/heart-fill.js +35 -0
- package/dist/lib/src/components/icon/comps/heart-stroke.js +35 -0
- package/dist/lib/src/components/icon/comps/hike.js +35 -0
- package/dist/lib/src/components/icon/comps/history.js +35 -0
- package/dist/lib/src/components/icon/comps/home.js +35 -0
- package/dist/lib/src/components/icon/comps/horse.js +35 -0
- package/dist/lib/src/components/icon/comps/horseshoe.js +35 -0
- package/dist/lib/src/components/icon/comps/image.js +35 -0
- package/dist/lib/src/components/icon/comps/information-fill.js +35 -0
- package/dist/lib/src/components/icon/comps/information-stroke.js +35 -0
- package/dist/lib/src/components/icon/comps/instagram.js +35 -0
- package/dist/lib/src/components/icon/comps/kayak.js +35 -0
- package/dist/lib/src/components/icon/comps/list-ragged.js +35 -0
- package/dist/lib/src/components/icon/comps/list-view.js +35 -0
- package/dist/lib/src/components/icon/comps/location-pin-fill.js +35 -0
- package/dist/lib/src/components/icon/comps/location-pin-stroke.js +35 -0
- package/dist/lib/src/components/icon/comps/lock-locked-fill.js +35 -0
- package/dist/lib/src/components/icon/comps/lock-locked-stroke.js +35 -0
- package/dist/lib/src/components/icon/comps/lock-unlocked-stroke.js +35 -0
- package/dist/lib/src/components/icon/comps/mail.js +35 -0
- package/dist/lib/src/components/icon/comps/map.js +35 -0
- package/dist/lib/src/components/icon/comps/member-card.js +35 -0
- package/dist/lib/src/components/icon/comps/microphone.js +35 -0
- package/dist/lib/src/components/icon/comps/minus-fill.js +35 -0
- package/dist/lib/src/components/icon/comps/minus-lg.js +35 -0
- package/dist/lib/src/components/icon/comps/minus-sm.js +35 -0
- package/dist/lib/src/components/icon/comps/minus-stroke.js +35 -0
- package/dist/lib/src/components/icon/comps/more-functions.js +35 -0
- package/dist/lib/src/components/icon/comps/my-location.js +35 -0
- package/dist/lib/src/components/icon/comps/navigation-menu.js +35 -0
- package/dist/lib/src/components/icon/comps/night.js +35 -0
- package/dist/lib/src/components/icon/comps/paddle.js +35 -0
- package/dist/lib/src/components/icon/comps/pause-fill.js +35 -0
- package/dist/lib/src/components/icon/comps/pause-stroke.js +35 -0
- package/dist/lib/src/components/icon/comps/pause.js +35 -0
- package/dist/lib/src/components/icon/comps/photography.js +35 -0
- package/dist/lib/src/components/icon/comps/picnic.js +35 -0
- package/dist/lib/src/components/icon/comps/pinterest.js +35 -0
- package/dist/lib/src/components/icon/comps/plane.js +35 -0
- package/dist/lib/src/components/icon/comps/play-fill.js +35 -0
- package/dist/lib/src/components/icon/comps/play-stroke.js +35 -0
- package/dist/lib/src/components/icon/comps/play.js +35 -0
- package/dist/lib/src/components/icon/comps/playground.js +35 -0
- package/dist/lib/src/components/icon/comps/plugin.js +35 -0
- package/dist/lib/src/components/icon/comps/plus-fill.js +35 -0
- package/dist/lib/src/components/icon/comps/plus-lg.js +35 -0
- package/dist/lib/src/components/icon/comps/plus-sm.js +35 -0
- package/dist/lib/src/components/icon/comps/plus-stroke.js +35 -0
- package/dist/lib/src/components/icon/comps/print.js +35 -0
- package/dist/lib/src/components/icon/comps/protection-fill.js +35 -0
- package/dist/lib/src/components/icon/comps/protection-stroke.js +35 -0
- package/dist/lib/src/components/icon/comps/question-fill.js +35 -0
- package/dist/lib/src/components/icon/comps/question-stroke.js +35 -0
- package/dist/lib/src/components/icon/comps/refresh.js +35 -0
- package/dist/lib/src/components/icon/comps/reload.js +35 -0
- package/dist/lib/src/components/icon/comps/returns.js +35 -0
- package/dist/lib/src/components/icon/comps/run.js +35 -0
- package/dist/lib/src/components/icon/comps/scan-barcode.js +35 -0
- package/dist/lib/src/components/icon/comps/search.js +35 -0
- package/dist/lib/src/components/icon/comps/service-shop.js +35 -0
- package/dist/lib/src/components/icon/comps/shipping.js +35 -0
- package/dist/lib/src/components/icon/comps/shopping-bag-fill.js +35 -0
- package/dist/lib/src/components/icon/comps/shopping-bag.js +35 -0
- package/dist/lib/src/components/icon/comps/shrink.js +35 -0
- package/dist/lib/src/components/icon/comps/size-chart.js +35 -0
- package/dist/lib/src/components/icon/comps/ski-boot.js +35 -0
- package/dist/lib/src/components/icon/comps/ski.js +35 -0
- package/dist/lib/src/components/icon/comps/snow-shop.js +35 -0
- package/dist/lib/src/components/icon/comps/snow.js +35 -0
- package/dist/lib/src/components/icon/comps/sort.js +35 -0
- package/dist/lib/src/components/icon/comps/star-100.js +35 -0
- package/dist/lib/src/components/icon/comps/star-25.js +35 -0
- package/dist/lib/src/components/icon/comps/star-50.js +35 -0
- package/dist/lib/src/components/icon/comps/star-75.js +35 -0
- package/dist/lib/src/components/icon/comps/star-stroke.js +35 -0
- package/dist/lib/src/components/icon/comps/storefront.js +35 -0
- package/dist/lib/src/components/icon/comps/swim.js +35 -0
- package/dist/lib/src/components/icon/comps/telephone.js +35 -0
- package/dist/lib/src/components/icon/comps/tent.js +35 -0
- package/dist/lib/src/components/icon/comps/trash.js +35 -0
- package/dist/lib/src/components/icon/comps/twitter.js +35 -0
- package/dist/lib/src/components/icon/comps/upload.js +35 -0
- package/dist/lib/src/components/icon/comps/verified-purchaser.js +35 -0
- package/dist/lib/src/components/icon/comps/virtual-outfitting.js +35 -0
- package/dist/lib/src/components/icon/comps/warning-fill.js +35 -0
- package/dist/lib/src/components/icon/comps/warning-stroke.js +35 -0
- package/dist/lib/src/components/icon/comps/water.js +35 -0
- package/dist/lib/src/components/icon/comps/wilderness.js +35 -0
- package/dist/lib/src/components/icon/comps/x-fill.js +35 -0
- package/dist/lib/src/components/icon/comps/x-lg.js +35 -0
- package/dist/lib/src/components/icon/comps/x-sm.js +35 -0
- package/dist/lib/src/components/icon/comps/x-stroke.js +35 -0
- package/dist/lib/src/components/icon/comps/youtube.js +35 -0
- package/dist/lib/src/components/icon/comps/zoom-in.js +35 -0
- package/dist/lib/src/components/icon/comps/zoom-out.js +35 -0
- package/dist/lib/src/components/image/CdrImg.js +148 -0
- package/dist/lib/src/components/input/CdrInput.js +305 -0
- package/dist/lib/src/components/labelStandalone/CdrLabelStandalone.js +116 -0
- package/dist/lib/src/components/labelWrapper/CdrLabelWrapper.js +60 -0
- package/dist/lib/src/components/link/CdrLink.js +71 -0
- package/dist/lib/src/components/list/CdrList.js +46 -0
- package/dist/lib/src/components/modal/CdrModal.js +383 -0
- package/dist/lib/src/components/modal/{onTransitionEnd.mjs → onTransitionEnd.js} +15 -13
- package/dist/lib/src/components/pagination/CdrPagination.js +315 -0
- package/dist/lib/src/components/popover/CdrPopover.js +183 -0
- package/dist/lib/src/components/popup/CdrPopup.js +188 -0
- package/dist/lib/src/components/popup/calculatePlacement.js +88 -0
- package/dist/lib/src/components/quote/CdrQuote.js +64 -0
- package/dist/lib/src/components/radio/CdrRadio.js +110 -0
- package/dist/lib/src/components/rating/CdrRating.js +184 -0
- package/dist/lib/src/components/select/CdrSelect.js +277 -0
- package/dist/lib/src/components/table/CdrTable.js +84 -0
- package/dist/lib/src/components/tabs/CdrTabPanel.js +117 -0
- package/dist/lib/src/components/tabs/CdrTabs.js +361 -0
- package/dist/lib/src/components/text/CdrText.js +31 -0
- package/dist/lib/src/components/toast/CdrToast.js +160 -0
- package/dist/lib/src/components/tooltip/CdrTooltip.js +129 -0
- package/dist/lib/src/{index.mjs → index.js} +209 -209
- package/dist/lib/src/mixins/breakpoints.js +21 -0
- package/dist/lib/src/props/background.js +11 -0
- package/dist/lib/src/props/size.js +11 -0
- package/dist/lib/src/utils/buildClass.js +90 -0
- package/dist/lib/src/utils/mapClasses.js +22 -0
- package/dist/lib/src/utils/{propValidator.mjs → propValidator.js} +6 -5
- package/dist/style/cedar-full.css +0 -1
- package/package.json +53 -38
- package/dist/lib/src/components/accordion/CdrAccordion.mjs +0 -198
- package/dist/lib/src/components/accordion/CdrAccordionGroup.mjs +0 -119
- package/dist/lib/src/components/accordion/styles/CdrAccordion.mjs +0 -3
- package/dist/lib/src/components/accordion/styles/CdrAccordionGroup.mjs +0 -3
- package/dist/lib/src/components/banner/CdrBanner.mjs +0 -61
- package/dist/lib/src/components/banner/styles/CdrBanner.mjs +0 -3
- package/dist/lib/src/components/breadcrumb/CdrBreadcrumb.mjs +0 -158
- package/dist/lib/src/components/breadcrumb/styles/CdrBreadcrumb.mjs +0 -3
- package/dist/lib/src/components/button/CdrButton.mjs +0 -118
- package/dist/lib/src/components/button/styles/CdrButton.mjs +0 -3
- package/dist/lib/src/components/caption/CdrCaption.mjs +0 -38
- package/dist/lib/src/components/caption/styles/CdrCaption.mjs +0 -3
- package/dist/lib/src/components/card/CdrCard.mjs +0 -35
- package/dist/lib/src/components/card/styles/CdrCard.mjs +0 -3
- package/dist/lib/src/components/checkbox/CdrCheckbox.mjs +0 -165
- package/dist/lib/src/components/checkbox/styles/CdrCheckbox.mjs +0 -3
- package/dist/lib/src/components/chip/CdrChip.mjs +0 -30
- package/dist/lib/src/components/chip/CdrChipGroup.mjs +0 -105
- package/dist/lib/src/components/chip/styles/CdrChip.mjs +0 -3
- package/dist/lib/src/components/chip/styles/CdrChipGroup.mjs +0 -3
- package/dist/lib/src/components/container/CdrContainer.mjs +0 -49
- package/dist/lib/src/components/container/styles/CdrContainer.mjs +0 -3
- package/dist/lib/src/components/formError/CdrFormError.mjs +0 -39
- package/dist/lib/src/components/formError/styles/CdrFormError.mjs +0 -3
- package/dist/lib/src/components/formGroup/CdrFormGroup.mjs +0 -95
- package/dist/lib/src/components/formGroup/styles/CdrFormGroup.mjs +0 -3
- package/dist/lib/src/components/grid/CdrGrid.mjs +0 -55
- package/dist/lib/src/components/grid/styles/CdrGrid.mjs +0 -3
- package/dist/lib/src/components/icon/CdrIcon.mjs +0 -76
- package/dist/lib/src/components/icon/comps/account-profile-fill.mjs +0 -27
- package/dist/lib/src/components/icon/comps/account-profile.mjs +0 -27
- package/dist/lib/src/components/icon/comps/arrow-down.mjs +0 -27
- package/dist/lib/src/components/icon/comps/arrow-left.mjs +0 -27
- package/dist/lib/src/components/icon/comps/arrow-right.mjs +0 -27
- package/dist/lib/src/components/icon/comps/arrow-up.mjs +0 -27
- package/dist/lib/src/components/icon/comps/atv.mjs +0 -27
- package/dist/lib/src/components/icon/comps/bed-outline.mjs +0 -27
- package/dist/lib/src/components/icon/comps/bike-shop.mjs +0 -27
- package/dist/lib/src/components/icon/comps/binoculars.mjs +0 -27
- package/dist/lib/src/components/icon/comps/birding.mjs +0 -27
- package/dist/lib/src/components/icon/comps/boat.mjs +0 -27
- package/dist/lib/src/components/icon/comps/boating.mjs +0 -27
- package/dist/lib/src/components/icon/comps/bookmark-fill.mjs +0 -27
- package/dist/lib/src/components/icon/comps/bookmark-stroke.mjs +0 -27
- package/dist/lib/src/components/icon/comps/brand-abstract.mjs +0 -27
- package/dist/lib/src/components/icon/comps/brand-code-sandbox.mjs +0 -27
- package/dist/lib/src/components/icon/comps/brand-github.mjs +0 -27
- package/dist/lib/src/components/icon/comps/brand-linkedin.mjs +0 -27
- package/dist/lib/src/components/icon/comps/brand-rei-ice-axes.mjs +0 -27
- package/dist/lib/src/components/icon/comps/brand-sketch.mjs +0 -27
- package/dist/lib/src/components/icon/comps/buddies.mjs +0 -27
- package/dist/lib/src/components/icon/comps/bus.mjs +0 -27
- package/dist/lib/src/components/icon/comps/calendar.mjs +0 -27
- package/dist/lib/src/components/icon/comps/camera.mjs +0 -27
- package/dist/lib/src/components/icon/comps/canoe.mjs +0 -27
- package/dist/lib/src/components/icon/comps/car.mjs +0 -27
- package/dist/lib/src/components/icon/comps/caret-down.mjs +0 -27
- package/dist/lib/src/components/icon/comps/caret-left.mjs +0 -27
- package/dist/lib/src/components/icon/comps/caret-right.mjs +0 -27
- package/dist/lib/src/components/icon/comps/caret-up.mjs +0 -27
- package/dist/lib/src/components/icon/comps/cart-fill.mjs +0 -27
- package/dist/lib/src/components/icon/comps/cart.mjs +0 -27
- package/dist/lib/src/components/icon/comps/chain-link.mjs +0 -27
- package/dist/lib/src/components/icon/comps/chat.mjs +0 -27
- package/dist/lib/src/components/icon/comps/check-fill.mjs +0 -27
- package/dist/lib/src/components/icon/comps/check-lg.mjs +0 -27
- package/dist/lib/src/components/icon/comps/check-sm.mjs +0 -27
- package/dist/lib/src/components/icon/comps/check-stroke.mjs +0 -27
- package/dist/lib/src/components/icon/comps/climb.mjs +0 -27
- package/dist/lib/src/components/icon/comps/clipboard.mjs +0 -27
- package/dist/lib/src/components/icon/comps/clock.mjs +0 -27
- package/dist/lib/src/components/icon/comps/code-html.mjs +0 -27
- package/dist/lib/src/components/icon/comps/code-js.mjs +0 -27
- package/dist/lib/src/components/icon/comps/compass.mjs +0 -27
- package/dist/lib/src/components/icon/comps/copy.mjs +0 -27
- package/dist/lib/src/components/icon/comps/coupon-fill.mjs +0 -27
- package/dist/lib/src/components/icon/comps/coupon-stroke.mjs +0 -27
- package/dist/lib/src/components/icon/comps/credit-card.mjs +0 -27
- package/dist/lib/src/components/icon/comps/curbside-pickup.mjs +0 -27
- package/dist/lib/src/components/icon/comps/day.mjs +0 -27
- package/dist/lib/src/components/icon/comps/diving.mjs +0 -27
- package/dist/lib/src/components/icon/comps/dog.mjs +0 -27
- package/dist/lib/src/components/icon/comps/download.mjs +0 -27
- package/dist/lib/src/components/icon/comps/edit.mjs +0 -27
- package/dist/lib/src/components/icon/comps/elevation.mjs +0 -27
- package/dist/lib/src/components/icon/comps/error-fill.mjs +0 -29
- package/dist/lib/src/components/icon/comps/error-stroke.mjs +0 -33
- package/dist/lib/src/components/icon/comps/expand.mjs +0 -27
- package/dist/lib/src/components/icon/comps/experiences-backpacking.mjs +0 -27
- package/dist/lib/src/components/icon/comps/experiences-camping.mjs +0 -27
- package/dist/lib/src/components/icon/comps/experiences-climbing.mjs +0 -27
- package/dist/lib/src/components/icon/comps/experiences-clothing.mjs +0 -27
- package/dist/lib/src/components/icon/comps/experiences-cycling.mjs +0 -27
- package/dist/lib/src/components/icon/comps/experiences-family.mjs +0 -27
- package/dist/lib/src/components/icon/comps/experiences-fitness.mjs +0 -27
- package/dist/lib/src/components/icon/comps/experiences-hiking.mjs +0 -27
- package/dist/lib/src/components/icon/comps/experiences-outdoor-basics.mjs +0 -27
- package/dist/lib/src/components/icon/comps/experiences-paddling.mjs +0 -27
- package/dist/lib/src/components/icon/comps/experiences-rentals.mjs +0 -27
- package/dist/lib/src/components/icon/comps/experiences-snowsports.mjs +0 -27
- package/dist/lib/src/components/icon/comps/experiences-travel.mjs +0 -27
- package/dist/lib/src/components/icon/comps/external-link.mjs +0 -27
- package/dist/lib/src/components/icon/comps/eye-hide.mjs +0 -27
- package/dist/lib/src/components/icon/comps/eye-show.mjs +0 -27
- package/dist/lib/src/components/icon/comps/facebook.mjs +0 -27
- package/dist/lib/src/components/icon/comps/filter-alt.mjs +0 -27
- package/dist/lib/src/components/icon/comps/filter.mjs +0 -27
- package/dist/lib/src/components/icon/comps/find-location.mjs +0 -27
- package/dist/lib/src/components/icon/comps/fire.mjs +0 -27
- package/dist/lib/src/components/icon/comps/fishing.mjs +0 -27
- package/dist/lib/src/components/icon/comps/free-product.mjs +0 -27
- package/dist/lib/src/components/icon/comps/grid-view.mjs +0 -27
- package/dist/lib/src/components/icon/comps/heart-fill.mjs +0 -27
- package/dist/lib/src/components/icon/comps/heart-stroke.mjs +0 -27
- package/dist/lib/src/components/icon/comps/hike.mjs +0 -27
- package/dist/lib/src/components/icon/comps/history.mjs +0 -27
- package/dist/lib/src/components/icon/comps/home.mjs +0 -27
- package/dist/lib/src/components/icon/comps/horse.mjs +0 -27
- package/dist/lib/src/components/icon/comps/horseshoe.mjs +0 -27
- package/dist/lib/src/components/icon/comps/image.mjs +0 -27
- package/dist/lib/src/components/icon/comps/information-fill.mjs +0 -27
- package/dist/lib/src/components/icon/comps/information-stroke.mjs +0 -27
- package/dist/lib/src/components/icon/comps/instagram.mjs +0 -27
- package/dist/lib/src/components/icon/comps/kayak.mjs +0 -27
- package/dist/lib/src/components/icon/comps/list-ragged.mjs +0 -27
- package/dist/lib/src/components/icon/comps/list-view.mjs +0 -27
- package/dist/lib/src/components/icon/comps/location-pin-fill.mjs +0 -27
- package/dist/lib/src/components/icon/comps/location-pin-stroke.mjs +0 -27
- package/dist/lib/src/components/icon/comps/lock-locked-fill.mjs +0 -27
- package/dist/lib/src/components/icon/comps/lock-locked-stroke.mjs +0 -27
- package/dist/lib/src/components/icon/comps/lock-unlocked-stroke.mjs +0 -27
- package/dist/lib/src/components/icon/comps/mail.mjs +0 -27
- package/dist/lib/src/components/icon/comps/map.mjs +0 -27
- package/dist/lib/src/components/icon/comps/member-card.mjs +0 -27
- package/dist/lib/src/components/icon/comps/microphone.mjs +0 -27
- package/dist/lib/src/components/icon/comps/minus-fill.mjs +0 -27
- package/dist/lib/src/components/icon/comps/minus-lg.mjs +0 -27
- package/dist/lib/src/components/icon/comps/minus-sm.mjs +0 -27
- package/dist/lib/src/components/icon/comps/minus-stroke.mjs +0 -27
- package/dist/lib/src/components/icon/comps/more-functions.mjs +0 -27
- package/dist/lib/src/components/icon/comps/my-location.mjs +0 -27
- package/dist/lib/src/components/icon/comps/navigation-menu.mjs +0 -27
- package/dist/lib/src/components/icon/comps/night.mjs +0 -27
- package/dist/lib/src/components/icon/comps/paddle.mjs +0 -27
- package/dist/lib/src/components/icon/comps/pause-fill.mjs +0 -27
- package/dist/lib/src/components/icon/comps/pause-stroke.mjs +0 -27
- package/dist/lib/src/components/icon/comps/pause.mjs +0 -27
- package/dist/lib/src/components/icon/comps/photography.mjs +0 -27
- package/dist/lib/src/components/icon/comps/picnic.mjs +0 -27
- package/dist/lib/src/components/icon/comps/pinterest.mjs +0 -27
- package/dist/lib/src/components/icon/comps/plane.mjs +0 -27
- package/dist/lib/src/components/icon/comps/play-fill.mjs +0 -27
- package/dist/lib/src/components/icon/comps/play-stroke.mjs +0 -27
- package/dist/lib/src/components/icon/comps/play.mjs +0 -27
- package/dist/lib/src/components/icon/comps/playground.mjs +0 -27
- package/dist/lib/src/components/icon/comps/plugin.mjs +0 -27
- package/dist/lib/src/components/icon/comps/plus-fill.mjs +0 -27
- package/dist/lib/src/components/icon/comps/plus-lg.mjs +0 -27
- package/dist/lib/src/components/icon/comps/plus-sm.mjs +0 -27
- package/dist/lib/src/components/icon/comps/plus-stroke.mjs +0 -27
- package/dist/lib/src/components/icon/comps/print.mjs +0 -27
- package/dist/lib/src/components/icon/comps/protection-fill.mjs +0 -27
- package/dist/lib/src/components/icon/comps/protection-stroke.mjs +0 -27
- package/dist/lib/src/components/icon/comps/question-fill.mjs +0 -27
- package/dist/lib/src/components/icon/comps/question-stroke.mjs +0 -27
- package/dist/lib/src/components/icon/comps/refresh.mjs +0 -27
- package/dist/lib/src/components/icon/comps/reload.mjs +0 -27
- package/dist/lib/src/components/icon/comps/returns.mjs +0 -27
- package/dist/lib/src/components/icon/comps/run.mjs +0 -27
- package/dist/lib/src/components/icon/comps/scan-barcode.mjs +0 -27
- package/dist/lib/src/components/icon/comps/search.mjs +0 -27
- package/dist/lib/src/components/icon/comps/service-shop.mjs +0 -27
- package/dist/lib/src/components/icon/comps/shipping.mjs +0 -27
- package/dist/lib/src/components/icon/comps/shopping-bag-fill.mjs +0 -27
- package/dist/lib/src/components/icon/comps/shopping-bag.mjs +0 -27
- package/dist/lib/src/components/icon/comps/shrink.mjs +0 -27
- package/dist/lib/src/components/icon/comps/size-chart.mjs +0 -27
- package/dist/lib/src/components/icon/comps/ski-boot.mjs +0 -27
- package/dist/lib/src/components/icon/comps/ski.mjs +0 -27
- package/dist/lib/src/components/icon/comps/snow-shop.mjs +0 -27
- package/dist/lib/src/components/icon/comps/snow.mjs +0 -27
- package/dist/lib/src/components/icon/comps/sort.mjs +0 -27
- package/dist/lib/src/components/icon/comps/star-100.mjs +0 -27
- package/dist/lib/src/components/icon/comps/star-25.mjs +0 -27
- package/dist/lib/src/components/icon/comps/star-50.mjs +0 -27
- package/dist/lib/src/components/icon/comps/star-75.mjs +0 -27
- package/dist/lib/src/components/icon/comps/star-stroke.mjs +0 -27
- package/dist/lib/src/components/icon/comps/storefront.mjs +0 -27
- package/dist/lib/src/components/icon/comps/swim.mjs +0 -27
- package/dist/lib/src/components/icon/comps/telephone.mjs +0 -27
- package/dist/lib/src/components/icon/comps/tent.mjs +0 -27
- package/dist/lib/src/components/icon/comps/trash.mjs +0 -27
- package/dist/lib/src/components/icon/comps/twitter.mjs +0 -27
- package/dist/lib/src/components/icon/comps/upload.mjs +0 -27
- package/dist/lib/src/components/icon/comps/verified-purchaser.mjs +0 -27
- package/dist/lib/src/components/icon/comps/virtual-outfitting.mjs +0 -27
- package/dist/lib/src/components/icon/comps/warning-fill.mjs +0 -27
- package/dist/lib/src/components/icon/comps/warning-stroke.mjs +0 -27
- package/dist/lib/src/components/icon/comps/water.mjs +0 -27
- package/dist/lib/src/components/icon/comps/wilderness.mjs +0 -27
- package/dist/lib/src/components/icon/comps/x-fill.mjs +0 -27
- package/dist/lib/src/components/icon/comps/x-lg.mjs +0 -27
- package/dist/lib/src/components/icon/comps/x-sm.mjs +0 -27
- package/dist/lib/src/components/icon/comps/x-stroke.mjs +0 -27
- package/dist/lib/src/components/icon/comps/youtube.mjs +0 -27
- package/dist/lib/src/components/icon/comps/zoom-in.mjs +0 -27
- package/dist/lib/src/components/icon/comps/zoom-out.mjs +0 -27
- package/dist/lib/src/components/icon/styles/CdrIcon.mjs +0 -3
- package/dist/lib/src/components/image/CdrImg.mjs +0 -140
- package/dist/lib/src/components/image/styles/CdrImg.mjs +0 -3
- package/dist/lib/src/components/input/CdrInput.mjs +0 -283
- package/dist/lib/src/components/input/styles/CdrInput.mjs +0 -3
- package/dist/lib/src/components/labelStandalone/CdrLabelStandalone.mjs +0 -85
- package/dist/lib/src/components/labelStandalone/styles/CdrLabelStandalone.mjs +0 -3
- package/dist/lib/src/components/labelWrapper/CdrLabelWrapper.mjs +0 -54
- package/dist/lib/src/components/labelWrapper/styles/CdrLabelWrapper.mjs +0 -3
- package/dist/lib/src/components/link/CdrLink.mjs +0 -71
- package/dist/lib/src/components/link/styles/CdrLink.mjs +0 -3
- package/dist/lib/src/components/list/CdrList.mjs +0 -42
- package/dist/lib/src/components/list/styles/CdrList.mjs +0 -3
- package/dist/lib/src/components/modal/CdrModal.mjs +0 -365
- package/dist/lib/src/components/modal/styles/CdrModal.mjs +0 -3
- package/dist/lib/src/components/pagination/CdrPagination.mjs +0 -425
- package/dist/lib/src/components/pagination/styles/CdrPagination.mjs +0 -3
- package/dist/lib/src/components/popover/CdrPopover.mjs +0 -155
- package/dist/lib/src/components/popover/styles/CdrPopover.mjs +0 -3
- package/dist/lib/src/components/popup/CdrPopup.mjs +0 -256
- package/dist/lib/src/components/popup/styles/CdrPopup.mjs +0 -3
- package/dist/lib/src/components/quote/CdrQuote.mjs +0 -66
- package/dist/lib/src/components/quote/styles/CdrQuote.mjs +0 -3
- package/dist/lib/src/components/radio/CdrRadio.mjs +0 -141
- package/dist/lib/src/components/radio/styles/CdrRadio.mjs +0 -3
- package/dist/lib/src/components/rating/CdrRating.mjs +0 -179
- package/dist/lib/src/components/rating/styles/CdrRating.mjs +0 -3
- package/dist/lib/src/components/select/CdrSelect.mjs +0 -255
- package/dist/lib/src/components/select/styles/CdrSelect.mjs +0 -3
- package/dist/lib/src/components/table/CdrTable.mjs +0 -73
- package/dist/lib/src/components/table/styles/CdrTable.mjs +0 -3
- package/dist/lib/src/components/tabs/CdrTabPanel.mjs +0 -105
- package/dist/lib/src/components/tabs/CdrTabs.mjs +0 -353
- package/dist/lib/src/components/tabs/styles/CdrTabPanel.mjs +0 -3
- package/dist/lib/src/components/tabs/styles/CdrTabs.mjs +0 -3
- package/dist/lib/src/components/text/CdrText.mjs +0 -44
- package/dist/lib/src/components/text/styles/CdrText.mjs +0 -3
- package/dist/lib/src/components/toast/CdrToast.mjs +0 -159
- package/dist/lib/src/components/toast/styles/CdrToast.mjs +0 -3
- package/dist/lib/src/components/tooltip/CdrTooltip.mjs +0 -121
- package/dist/lib/src/components/tooltip/styles/CdrTooltip.mjs +0 -3
- package/dist/lib/src/mixins/breakpoints.mjs +0 -26
- package/dist/lib/src/mixins/buildClass.mjs +0 -71
- package/dist/lib/src/mixins/fullWidth.mjs +0 -47
- package/dist/lib/src/mixins/modifier.mjs +0 -22
- package/dist/lib/src/mixins/size.mjs +0 -37
- package/dist/style/cdr-accordion-group.css +0 -1
- package/dist/style/cdr-accordion.css +0 -1
- package/dist/style/cdr-banner-vars.css +0 -0
- package/dist/style/cdr-banner.css +0 -1
- package/dist/style/cdr-breadcrumb.css +0 -1
- package/dist/style/cdr-button.css +0 -1
- package/dist/style/cdr-caption.css +0 -1
- package/dist/style/cdr-card.css +0 -1
- package/dist/style/cdr-checkbox.css +0 -1
- package/dist/style/cdr-chip-group.css +0 -1
- package/dist/style/cdr-chip.css +0 -1
- package/dist/style/cdr-container.css +0 -1
- package/dist/style/cdr-form-error.css +0 -1
- package/dist/style/cdr-form-group.css +0 -1
- package/dist/style/cdr-grid.css +0 -1
- package/dist/style/cdr-icon.css +0 -1
- package/dist/style/cdr-img.css +0 -1
- package/dist/style/cdr-input.css +0 -1
- package/dist/style/cdr-label-standalone.css +0 -1
- package/dist/style/cdr-label-wrapper.css +0 -1
- package/dist/style/cdr-link.css +0 -1
- package/dist/style/cdr-list.css +0 -1
- package/dist/style/cdr-modal.css +0 -1
- package/dist/style/cdr-pagination.css +0 -1
- package/dist/style/cdr-popover.css +0 -1
- package/dist/style/cdr-popup.css +0 -1
- package/dist/style/cdr-quote.css +0 -1
- package/dist/style/cdr-radio.css +0 -1
- package/dist/style/cdr-rating.css +0 -1
- package/dist/style/cdr-select.css +0 -1
- package/dist/style/cdr-tab-panel.css +0 -1
- package/dist/style/cdr-table.css +0 -1
- package/dist/style/cdr-tabs.css +0 -1
- package/dist/style/cdr-text.css +0 -1
- package/dist/style/cdr-toast.css +0 -1
- package/dist/style/cdr-tooltip.css +0 -1
- package/dist/style/reset.css +0 -1
|
@@ -1,256 +0,0 @@
|
|
|
1
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
2
|
-
import clsx from 'clsx';
|
|
3
|
-
import debounce from 'lodash-es/debounce';
|
|
4
|
-
import modules_5ecd7efb from './styles/CdrPopup.mjs';
|
|
5
|
-
import validateProp from '../../utils/propValidator.mjs';
|
|
6
|
-
|
|
7
|
-
var CdrPopup = {
|
|
8
|
-
name: 'CdrPopup',
|
|
9
|
-
inheritAttrs: false,
|
|
10
|
-
props: {
|
|
11
|
-
opened: {
|
|
12
|
-
type: Boolean,
|
|
13
|
-
default: false
|
|
14
|
-
},
|
|
15
|
-
position: {
|
|
16
|
-
type: String,
|
|
17
|
-
required: false,
|
|
18
|
-
default: 'top',
|
|
19
|
-
validator: value => validateProp(value, ['top', 'bottom', 'left', 'right'])
|
|
20
|
-
},
|
|
21
|
-
autoPosition: {
|
|
22
|
-
type: Boolean,
|
|
23
|
-
default: true
|
|
24
|
-
},
|
|
25
|
-
contentClass: {
|
|
26
|
-
type: String
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
|
|
30
|
-
data() {
|
|
31
|
-
return {
|
|
32
|
-
style: modules_5ecd7efb,
|
|
33
|
-
keyHandler: undefined,
|
|
34
|
-
clickHandler: undefined,
|
|
35
|
-
resizeHandler: undefined,
|
|
36
|
-
pos: this.position,
|
|
37
|
-
corner: undefined,
|
|
38
|
-
exiting: false,
|
|
39
|
-
popupRect: undefined,
|
|
40
|
-
closed: !this.opened
|
|
41
|
-
};
|
|
42
|
-
},
|
|
43
|
-
|
|
44
|
-
computed: {
|
|
45
|
-
positionClass() {
|
|
46
|
-
return this.opened || this.exiting ? this.style["cdr-popup--".concat(this.pos)] : undefined;
|
|
47
|
-
},
|
|
48
|
-
|
|
49
|
-
cornerClass() {
|
|
50
|
-
return this.corner ? this.style["cdr-popup--corner-".concat(this.corner)] : undefined;
|
|
51
|
-
},
|
|
52
|
-
|
|
53
|
-
openClass() {
|
|
54
|
-
return this.opened ? this.style['cdr-popup--open'] : undefined;
|
|
55
|
-
},
|
|
56
|
-
|
|
57
|
-
closedClass() {
|
|
58
|
-
return this.closed && !this.exiting ? this.style['cdr-popup--closed'] : undefined;
|
|
59
|
-
},
|
|
60
|
-
|
|
61
|
-
exitingClass() {
|
|
62
|
-
return this.exiting ? this.style['cdr-popup--exit'] : undefined;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
},
|
|
66
|
-
watch: {
|
|
67
|
-
position() {
|
|
68
|
-
this.pos = this.position;
|
|
69
|
-
},
|
|
70
|
-
|
|
71
|
-
opened(newValue, oldValue) {
|
|
72
|
-
if (!!newValue === !!oldValue) return;
|
|
73
|
-
|
|
74
|
-
if (newValue) {
|
|
75
|
-
this.handleOpened();
|
|
76
|
-
} else {
|
|
77
|
-
this.handleClosed();
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
},
|
|
82
|
-
|
|
83
|
-
mounted() {
|
|
84
|
-
this.measurePopup();
|
|
85
|
-
this.resizeHandler = this.handleResize.bind(this);
|
|
86
|
-
window.addEventListener('resize', this.resizeHandler);
|
|
87
|
-
},
|
|
88
|
-
|
|
89
|
-
destroyed() {
|
|
90
|
-
document.removeEventListener('keydown', this.keyHandler);
|
|
91
|
-
document.removeEventListener('click', this.clickHandler);
|
|
92
|
-
window.removeEventListener('resize', this.resizeHandler);
|
|
93
|
-
},
|
|
94
|
-
|
|
95
|
-
methods: {
|
|
96
|
-
closePopup(e) {
|
|
97
|
-
this.$emit('closed', e);
|
|
98
|
-
},
|
|
99
|
-
|
|
100
|
-
handleKeyDown(e) {
|
|
101
|
-
switch (e.key) {
|
|
102
|
-
case 'Escape':
|
|
103
|
-
case 'Esc':
|
|
104
|
-
this.closePopup(e);
|
|
105
|
-
break;
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
|
-
|
|
109
|
-
handleClick(e) {
|
|
110
|
-
this.$nextTick(() => {
|
|
111
|
-
if (e.target !== this.$refs.popup && !this.$refs.popup.contains(e.target)) {
|
|
112
|
-
this.closePopup(e);
|
|
113
|
-
}
|
|
114
|
-
});
|
|
115
|
-
},
|
|
116
|
-
|
|
117
|
-
handleResize() {
|
|
118
|
-
debounce(() => {
|
|
119
|
-
this.measurePopup();
|
|
120
|
-
}, 300);
|
|
121
|
-
},
|
|
122
|
-
|
|
123
|
-
addHandlers() {
|
|
124
|
-
this.keyHandler = this.handleKeyDown.bind(this);
|
|
125
|
-
document.addEventListener('keydown', this.keyHandler);
|
|
126
|
-
this.clickHandler = this.handleClick.bind(this);
|
|
127
|
-
document.addEventListener('click', this.clickHandler);
|
|
128
|
-
},
|
|
129
|
-
|
|
130
|
-
measurePopup() {
|
|
131
|
-
this.closed = false;
|
|
132
|
-
this.$nextTick(() => {
|
|
133
|
-
this.popupRect = this.$refs.popup.getBoundingClientRect();
|
|
134
|
-
this.closed = true;
|
|
135
|
-
});
|
|
136
|
-
},
|
|
137
|
-
|
|
138
|
-
calculatePlacement(triggerRect, popupRect, screenWidth, screenHeight) {
|
|
139
|
-
const offset = 14; // 10px for arrow 4px for spacing
|
|
140
|
-
|
|
141
|
-
const borderSize = 2; // need to include border for corner calculations
|
|
142
|
-
|
|
143
|
-
const triggerCenterY = triggerRect.top + triggerRect.height / 2;
|
|
144
|
-
const triggerCenterX = triggerRect.left + triggerRect.width / 2;
|
|
145
|
-
const dirs = {
|
|
146
|
-
top: triggerRect.top - popupRect.height - offset,
|
|
147
|
-
bottom: screenHeight - triggerRect.bottom - popupRect.height - offset,
|
|
148
|
-
left: triggerRect.left - popupRect.width - offset,
|
|
149
|
-
right: screenWidth - triggerRect.right - popupRect.width - offset
|
|
150
|
-
};
|
|
151
|
-
const corners = {
|
|
152
|
-
left: triggerCenterX - popupRect.width / 2 - borderSize <= 0,
|
|
153
|
-
right: triggerCenterX + popupRect.width / 2 + borderSize >= screenWidth,
|
|
154
|
-
top: triggerCenterY - popupRect.height / 2 - borderSize <= 0,
|
|
155
|
-
bottom: triggerCenterY + popupRect.height / 2 + borderSize >= screenHeight
|
|
156
|
-
};
|
|
157
|
-
const invert = {
|
|
158
|
-
top: 'bottom',
|
|
159
|
-
bottom: 'top',
|
|
160
|
-
left: 'right',
|
|
161
|
-
right: 'left'
|
|
162
|
-
};
|
|
163
|
-
const inverse = invert[this.position];
|
|
164
|
-
const validDirs = Object.keys(dirs).filter(dir => dirs[dir] > 0);
|
|
165
|
-
const sortedDirs = Object.keys(dirs).sort((a, b) => {
|
|
166
|
-
if (dirs[a] > dirs[b]) {
|
|
167
|
-
return -1;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
if (dirs[a] < dirs[b]) {
|
|
171
|
-
return 1;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
return 0;
|
|
175
|
-
});
|
|
176
|
-
|
|
177
|
-
if (dirs[this.position] > 0) {
|
|
178
|
-
// selected position is valid, or no positions are valid
|
|
179
|
-
this.pos = this.position;
|
|
180
|
-
} else if (dirs[inverse] > 0) {
|
|
181
|
-
// inverted position is valid
|
|
182
|
-
this.pos = inverse;
|
|
183
|
-
} else if (validDirs.length) {
|
|
184
|
-
// try the angles
|
|
185
|
-
[this.pos] = validDirs;
|
|
186
|
-
} else {
|
|
187
|
-
// use whichever direction has the most space
|
|
188
|
-
[this.pos] = sortedDirs;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
if (this.pos === 'bottom' || this.pos === 'top') {
|
|
192
|
-
if (corners.left) {
|
|
193
|
-
this.corner = 'left';
|
|
194
|
-
} else if (corners.right) {
|
|
195
|
-
this.corner = 'right';
|
|
196
|
-
}
|
|
197
|
-
} else if (corners.top) {
|
|
198
|
-
this.corner = 'top';
|
|
199
|
-
} else if (corners.bottom) {
|
|
200
|
-
this.corner = 'bottom';
|
|
201
|
-
}
|
|
202
|
-
},
|
|
203
|
-
|
|
204
|
-
handleOpened() {
|
|
205
|
-
this.closed = false;
|
|
206
|
-
this.pos = this.position;
|
|
207
|
-
this.corner = undefined;
|
|
208
|
-
|
|
209
|
-
if (this.autoPosition) {
|
|
210
|
-
this.$nextTick(() => {
|
|
211
|
-
const triggerRect = this.$el.parentElement.getBoundingClientRect();
|
|
212
|
-
const {
|
|
213
|
-
popupRect
|
|
214
|
-
} = this;
|
|
215
|
-
const {
|
|
216
|
-
innerHeight,
|
|
217
|
-
innerWidth
|
|
218
|
-
} = window;
|
|
219
|
-
this.calculatePlacement(triggerRect, popupRect, innerWidth, innerHeight);
|
|
220
|
-
});
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
setTimeout(() => {
|
|
224
|
-
this.addHandlers();
|
|
225
|
-
}, 1);
|
|
226
|
-
},
|
|
227
|
-
|
|
228
|
-
handleClosed() {
|
|
229
|
-
this.closed = true;
|
|
230
|
-
document.removeEventListener('keydown', this.keyHandler);
|
|
231
|
-
document.removeEventListener('click', this.clickHandler);
|
|
232
|
-
this.exiting = true;
|
|
233
|
-
setTimeout(() => {
|
|
234
|
-
this.exiting = false;
|
|
235
|
-
}, 200); // $cdr-duration-2;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
},
|
|
239
|
-
|
|
240
|
-
render() {
|
|
241
|
-
const h = arguments[0];
|
|
242
|
-
return h("div", {
|
|
243
|
-
"class": clsx(this.style['cdr-popup'], this.openClass, this.exitingClass, this.positionClass, this.cornerClass, this.closedClass)
|
|
244
|
-
}, [h("div", {
|
|
245
|
-
"class": clsx(this.style['cdr-popup__content'], this.contentClass),
|
|
246
|
-
"ref": "popup",
|
|
247
|
-
"attrs": { ...this.$attrs
|
|
248
|
-
}
|
|
249
|
-
}, [this.$slots.default]), h("div", {
|
|
250
|
-
"class": this.style['cdr-popup__arrow']
|
|
251
|
-
})]);
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
};
|
|
255
|
-
|
|
256
|
-
export default CdrPopup;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
var modules_5ecd7efb = {"cdr-popup":"cdr-popup_11-0-1","cdr-popup--open":"cdr-popup--open_11-0-1","cdr-popup--closed":"cdr-popup--closed_11-0-1","cdr-popup__content":"cdr-popup__content_11-0-1","cdr-popup__arrow":"cdr-popup__arrow_11-0-1","cdr-popup--top":"cdr-popup--top_11-0-1","cdr-popup--bottom":"cdr-popup--bottom_11-0-1","cdr-popup--exit":"cdr-popup--exit_11-0-1","cdr-popup--corner-left":"cdr-popup--corner-left_11-0-1","cdr-popup--corner-right":"cdr-popup--corner-right_11-0-1","cdr-popup--left":"cdr-popup--left_11-0-1","cdr-popup--right":"cdr-popup--right_11-0-1","cdr-popup--corner-top":"cdr-popup--corner-top_11-0-1","cdr-popup--corner-bottom":"cdr-popup--corner-bottom_11-0-1"};
|
|
2
|
-
|
|
3
|
-
export default modules_5ecd7efb;
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import clsx from 'clsx';
|
|
2
|
-
import CdrText from '../text/CdrText.mjs';
|
|
3
|
-
import modifier from '../../mixins/modifier.mjs';
|
|
4
|
-
import modules_b1efd5d7 from './styles/CdrQuote.mjs';
|
|
5
|
-
|
|
6
|
-
var CdrQuote = {
|
|
7
|
-
name: 'CdrQuote',
|
|
8
|
-
components: {
|
|
9
|
-
CdrText
|
|
10
|
-
},
|
|
11
|
-
mixins: [modifier],
|
|
12
|
-
props: {
|
|
13
|
-
tag: {
|
|
14
|
-
type: String,
|
|
15
|
-
default: 'blockquote',
|
|
16
|
-
validator: value => ['blockquote', 'aside', 'q', 'div'].indexOf(value) >= 0 || false
|
|
17
|
-
},
|
|
18
|
-
|
|
19
|
-
/** Caption summary text */
|
|
20
|
-
summary: String,
|
|
21
|
-
|
|
22
|
-
/** Caption credit text */
|
|
23
|
-
citation: String
|
|
24
|
-
},
|
|
25
|
-
|
|
26
|
-
data() {
|
|
27
|
-
return {
|
|
28
|
-
style: modules_b1efd5d7
|
|
29
|
-
};
|
|
30
|
-
},
|
|
31
|
-
|
|
32
|
-
computed: {
|
|
33
|
-
baseClass() {
|
|
34
|
-
return 'cdr-quote';
|
|
35
|
-
},
|
|
36
|
-
|
|
37
|
-
summaryBlock() {
|
|
38
|
-
const h = this.$createElement;
|
|
39
|
-
return this.summary ? h("p", {
|
|
40
|
-
"class": this.style['cdr-quote__summary']
|
|
41
|
-
}, [this.summary]) : '';
|
|
42
|
-
},
|
|
43
|
-
|
|
44
|
-
citationBlock() {
|
|
45
|
-
const h = this.$createElement;
|
|
46
|
-
return this.citation ? h("cdr-text", {
|
|
47
|
-
"attrs": {
|
|
48
|
-
"tag": "cite"
|
|
49
|
-
},
|
|
50
|
-
"class": this.style['cdr-quote__citation']
|
|
51
|
-
}, [this.citation]) : '';
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
},
|
|
55
|
-
|
|
56
|
-
render() {
|
|
57
|
-
const h = arguments[0];
|
|
58
|
-
const Component = this.tag;
|
|
59
|
-
return h(Component, {
|
|
60
|
-
"class": clsx(this.style[this.baseClass], this.modifierClass)
|
|
61
|
-
}, [this.summaryBlock, this.$slots.default, this.citationBlock]);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
export default CdrQuote;
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
import _mergeJSXProps from '@vue/babel-helper-vue-jsx-merge-props';
|
|
2
|
-
import 'core-js/modules/es.symbol.description.js';
|
|
3
|
-
import clsx from 'clsx';
|
|
4
|
-
import modifier from '../../mixins/modifier.mjs';
|
|
5
|
-
import size from '../../mixins/size.mjs';
|
|
6
|
-
import validateProp from '../../utils/propValidator.mjs';
|
|
7
|
-
import modules_f3ed737b from './styles/CdrRadio.mjs';
|
|
8
|
-
import CdrLabelWrapper from '../labelWrapper/CdrLabelWrapper.mjs';
|
|
9
|
-
|
|
10
|
-
var CdrRadio = {
|
|
11
|
-
name: 'CdrRadio',
|
|
12
|
-
components: {
|
|
13
|
-
CdrLabelWrapper
|
|
14
|
-
},
|
|
15
|
-
mixins: [modifier, size],
|
|
16
|
-
inheritAttrs: false,
|
|
17
|
-
props: {
|
|
18
|
-
/**
|
|
19
|
-
* Class that is added to the label for custom styles
|
|
20
|
-
*/
|
|
21
|
-
labelClass: String,
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Class that is added to the input for custom styles
|
|
25
|
-
*/
|
|
26
|
-
inputClass: String,
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Class that is added to the slot wrapper for custom styles
|
|
30
|
-
*/
|
|
31
|
-
contentClass: String,
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Sets the name of the radio. Required.
|
|
35
|
-
*/
|
|
36
|
-
name: {
|
|
37
|
-
type: String,
|
|
38
|
-
required: true
|
|
39
|
-
},
|
|
40
|
-
// Set which background type the input renders on
|
|
41
|
-
background: {
|
|
42
|
-
type: [String],
|
|
43
|
-
default: 'primary',
|
|
44
|
-
validator: value => validateProp(value, ['primary', 'secondary'])
|
|
45
|
-
},
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Sets the value of the radio. Required.
|
|
49
|
-
*/
|
|
50
|
-
customValue: {
|
|
51
|
-
type: [String, Number, Boolean, Object, Array, Symbol, Function]
|
|
52
|
-
},
|
|
53
|
-
|
|
54
|
-
/** @ignore v-model binding */
|
|
55
|
-
value: {
|
|
56
|
-
type: [String, Number, Boolean, Object, Array, Symbol, Function]
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
|
|
60
|
-
data() {
|
|
61
|
-
return {
|
|
62
|
-
newValue: this.value,
|
|
63
|
-
style: modules_f3ed737b
|
|
64
|
-
};
|
|
65
|
-
},
|
|
66
|
-
|
|
67
|
-
computed: {
|
|
68
|
-
baseClass() {
|
|
69
|
-
return 'cdr-radio';
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
},
|
|
73
|
-
watch: {
|
|
74
|
-
value(val) {
|
|
75
|
-
this.newValue = val;
|
|
76
|
-
},
|
|
77
|
-
|
|
78
|
-
newValue(val) {
|
|
79
|
-
/**
|
|
80
|
-
* `v-model` value. Fires on check/uncheck.
|
|
81
|
-
* @event input
|
|
82
|
-
* @type value | event
|
|
83
|
-
* */
|
|
84
|
-
this.$emit('input', val);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
},
|
|
88
|
-
methods: {
|
|
89
|
-
updateValue(newValue, e) {
|
|
90
|
-
/**
|
|
91
|
-
* Selected radio value. Fires on section.
|
|
92
|
-
* @event change
|
|
93
|
-
* @type boolean|array
|
|
94
|
-
*/
|
|
95
|
-
this.$emit('change', newValue, e);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
},
|
|
99
|
-
|
|
100
|
-
render() {
|
|
101
|
-
const h = arguments[0];
|
|
102
|
-
return h("cdr-label-wrapper", {
|
|
103
|
-
"class": this.style['cdr-radio'],
|
|
104
|
-
"ref": "label",
|
|
105
|
-
"attrs": {
|
|
106
|
-
"size": this.size,
|
|
107
|
-
"modifier": this.modifier,
|
|
108
|
-
"labelClass": this.labelClass,
|
|
109
|
-
"contentClass": this.contentClass,
|
|
110
|
-
"background": this.background,
|
|
111
|
-
"disabled": this.$attrs.disabled
|
|
112
|
-
}
|
|
113
|
-
}, [h("input", _mergeJSXProps([{
|
|
114
|
-
"on": {
|
|
115
|
-
"change": [$event => {
|
|
116
|
-
this.newValue = this.customValue;
|
|
117
|
-
}, e => this.updateValue(this.newValue, e)]
|
|
118
|
-
},
|
|
119
|
-
"class": clsx(this.style['cdr-radio__input'], this.inputClass),
|
|
120
|
-
"attrs": {
|
|
121
|
-
"type": "radio",
|
|
122
|
-
...this.$attrs,
|
|
123
|
-
"name": this.name
|
|
124
|
-
},
|
|
125
|
-
"ref": "radio",
|
|
126
|
-
"slot": "input",
|
|
127
|
-
"domProps": {
|
|
128
|
-
"checked": this._q(this.newValue, this.customValue)
|
|
129
|
-
}
|
|
130
|
-
}, {
|
|
131
|
-
directives: [{
|
|
132
|
-
name: "model",
|
|
133
|
-
value: this.newValue,
|
|
134
|
-
modifiers: {}
|
|
135
|
-
}]
|
|
136
|
-
}])), this.$slots.default]);
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
};
|
|
140
|
-
|
|
141
|
-
export default CdrRadio;
|
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
2
|
-
import clsx from 'clsx';
|
|
3
|
-
import size from '../../mixins/size.mjs';
|
|
4
|
-
import modules_73dd06e5 from './styles/CdrRating.mjs';
|
|
5
|
-
|
|
6
|
-
var CdrRating = {
|
|
7
|
-
name: 'CdrRating',
|
|
8
|
-
mixins: [size],
|
|
9
|
-
props: {
|
|
10
|
-
/**
|
|
11
|
-
* Rating value (out of 5)
|
|
12
|
-
*/
|
|
13
|
-
rating: {
|
|
14
|
-
required: true,
|
|
15
|
-
type: [String, Number],
|
|
16
|
-
default: 0
|
|
17
|
-
},
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Total number of ratings
|
|
21
|
-
*/
|
|
22
|
-
count: {
|
|
23
|
-
required: false,
|
|
24
|
-
type: [String, Number],
|
|
25
|
-
default: null
|
|
26
|
-
},
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Hides the word 'reviews' if true
|
|
30
|
-
*/
|
|
31
|
-
compact: {
|
|
32
|
-
type: Boolean,
|
|
33
|
-
default: false
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Allows the ratings to act as a link
|
|
38
|
-
*/
|
|
39
|
-
href: {
|
|
40
|
-
type: String
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
|
|
44
|
-
data() {
|
|
45
|
-
return {
|
|
46
|
-
style: modules_73dd06e5
|
|
47
|
-
};
|
|
48
|
-
},
|
|
49
|
-
|
|
50
|
-
computed: {
|
|
51
|
-
baseClass() {
|
|
52
|
-
return 'cdr-rating';
|
|
53
|
-
},
|
|
54
|
-
|
|
55
|
-
displayRating() {
|
|
56
|
-
return (Math.round(this.rating * 10) / 10).toFixed(1);
|
|
57
|
-
},
|
|
58
|
-
|
|
59
|
-
rounded() {
|
|
60
|
-
return Math.round(this.rating * 4) / 4;
|
|
61
|
-
},
|
|
62
|
-
|
|
63
|
-
whole() {
|
|
64
|
-
return Math.floor(this.rounded);
|
|
65
|
-
},
|
|
66
|
-
|
|
67
|
-
remainder() {
|
|
68
|
-
return this.rounded.toFixed(2).split('.')[1];
|
|
69
|
-
},
|
|
70
|
-
|
|
71
|
-
empties() {
|
|
72
|
-
return 5 - this.whole - (this.remainder > 0 ? 1 : 0);
|
|
73
|
-
},
|
|
74
|
-
|
|
75
|
-
formattedCount() {
|
|
76
|
-
return this.compact ? "(".concat(this.count, ")") : "".concat(this.count);
|
|
77
|
-
},
|
|
78
|
-
|
|
79
|
-
remainderEl() {
|
|
80
|
-
const h = this.$createElement;
|
|
81
|
-
let remainder;
|
|
82
|
-
|
|
83
|
-
if (this.remainder === '25') {
|
|
84
|
-
remainder = h("span", {
|
|
85
|
-
"class": clsx(this.style['cdr-rating__icon'], this.style['cdr-rating__25']),
|
|
86
|
-
"attrs": {
|
|
87
|
-
"aria-hidden": "true"
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
} else if (this.remainder === '50') {
|
|
91
|
-
remainder = h("span", {
|
|
92
|
-
"class": clsx(this.style['cdr-rating__icon'], this.style['cdr-rating__50']),
|
|
93
|
-
"attrs": {
|
|
94
|
-
"aria-hidden": "true"
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
|
-
} else if (this.remainder === '75') {
|
|
98
|
-
remainder = h("span", {
|
|
99
|
-
"class": clsx(this.style['cdr-rating__icon'], this.style['cdr-rating__75']),
|
|
100
|
-
"attrs": {
|
|
101
|
-
"aria-hidden": "true"
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
return remainder;
|
|
107
|
-
},
|
|
108
|
-
|
|
109
|
-
srText() {
|
|
110
|
-
// linked
|
|
111
|
-
if (this.href) {
|
|
112
|
-
// no reviews
|
|
113
|
-
if (this.count === 0 || this.count === '0') {
|
|
114
|
-
return 'No reviews yet; be the first!';
|
|
115
|
-
} // no count
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
if (this.count === null) {
|
|
119
|
-
return "View the reviews with an average rating of ".concat(this.displayRating, " out of 5 stars");
|
|
120
|
-
} // default
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
return "View the ".concat(this.count, " reviews with an average rating of ").concat(this.displayRating, " out of 5 stars"); // eslint-disable-line max-len
|
|
124
|
-
} // non-linked
|
|
125
|
-
// no reviews
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
if (this.count === 0 || this.count === '0') {
|
|
129
|
-
return '0 reviews';
|
|
130
|
-
} // no count
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
if (this.count === null) {
|
|
134
|
-
return "Rated ".concat(this.displayRating, " out of 5 stars");
|
|
135
|
-
} // default
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
return "".concat(this.count, " reviews with an average rating of ").concat(this.displayRating, " out of 5 stars");
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
},
|
|
142
|
-
|
|
143
|
-
render() {
|
|
144
|
-
const h = arguments[0];
|
|
145
|
-
const Component = this.href ? 'a' : 'div';
|
|
146
|
-
return h(Component, {
|
|
147
|
-
"attrs": {
|
|
148
|
-
"href": this.href
|
|
149
|
-
},
|
|
150
|
-
"class": clsx(this.style[this.baseClass], this.sizeClass, this.href ? this.style['cdr-rating--linked'] : '')
|
|
151
|
-
}, [h("div", {
|
|
152
|
-
"class": this.style['cdr-rating__ratings']
|
|
153
|
-
}, [[...Array(this.whole).keys()].map(n => h("span", {
|
|
154
|
-
"class": clsx(this.style['cdr-rating__icon'], this.style['cdr-rating__100']),
|
|
155
|
-
"key": "rating-whole-".concat(n, "-").concat(this._uid),
|
|
156
|
-
"attrs": {
|
|
157
|
-
"aria-hidden": "true"
|
|
158
|
-
}
|
|
159
|
-
})), this.remainderEl, [...Array(this.empties).keys()].map(n => h("span", {
|
|
160
|
-
"class": clsx(this.style['cdr-rating__icon'], this.rounded > 0 || this.count > 0 ? this.style['cdr-rating__placeholder'] : this.style['cdr-rating__placeholder--no-reviews']),
|
|
161
|
-
"key": "rating-empty-".concat(n, "-").concat(this._uid),
|
|
162
|
-
"attrs": {
|
|
163
|
-
"aria-hidden": "true"
|
|
164
|
-
}
|
|
165
|
-
}))]), this.count !== null ? h("span", {
|
|
166
|
-
"attrs": {
|
|
167
|
-
"aria-hidden": "true"
|
|
168
|
-
},
|
|
169
|
-
"class": this.style['cdr-rating__count']
|
|
170
|
-
}, [this.href && h("span", {
|
|
171
|
-
"class": this.style['cdr-rating__number']
|
|
172
|
-
}, [this.displayRating]), h("span", [this.formattedCount]), !this.compact && h("span", ["\xA0Reviews"])]) : '', h("span", {
|
|
173
|
-
"class": this.style['cdr-rating__caption-sr']
|
|
174
|
-
}, [this.srText])]);
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
};
|
|
178
|
-
|
|
179
|
-
export default CdrRating;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
var modules_73dd06e5 = {"cdr-rating__icon":"cdr-rating__icon_11-0-1","cdr-rating__count":"cdr-rating__count_11-0-1","cdr-rating":"cdr-rating_11-0-1","cdr-rating__number":"cdr-rating__number_11-0-1","cdr-rating__ratings":"cdr-rating__ratings_11-0-1","cdr-rating__caption-sr":"cdr-rating__caption-sr_11-0-1","cdr-rating__placeholder":"cdr-rating__placeholder_11-0-1","cdr-rating__placeholder--no-reviews":"cdr-rating__placeholder--no-reviews_11-0-1","cdr-rating__100":"cdr-rating__100_11-0-1","cdr-rating__75":"cdr-rating__75_11-0-1","cdr-rating__50":"cdr-rating__50_11-0-1","cdr-rating__25":"cdr-rating__25_11-0-1","cdr-rating--linked":"cdr-rating--linked_11-0-1","cdr-rating--large":"cdr-rating--large_11-0-1","cdr-rating--medium":"cdr-rating--medium_11-0-1","cdr-rating--small":"cdr-rating--small_11-0-1","cdr-rating--small@xs":"cdr-rating--small@xs_11-0-1","cdr-rating--medium@xs":"cdr-rating--medium@xs_11-0-1","cdr-rating--large@xs":"cdr-rating--large@xs_11-0-1","cdr-rating--small@sm":"cdr-rating--small@sm_11-0-1","cdr-rating--medium@sm":"cdr-rating--medium@sm_11-0-1","cdr-rating--large@sm":"cdr-rating--large@sm_11-0-1","cdr-rating--small@md":"cdr-rating--small@md_11-0-1","cdr-rating--medium@md":"cdr-rating--medium@md_11-0-1","cdr-rating--large@md":"cdr-rating--large@md_11-0-1","cdr-rating--small@lg":"cdr-rating--small@lg_11-0-1","cdr-rating--medium@lg":"cdr-rating--medium@lg_11-0-1","cdr-rating--large@lg":"cdr-rating--large@lg_11-0-1"};
|
|
2
|
-
|
|
3
|
-
export default modules_73dd06e5;
|