@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,54 +0,0 @@
|
|
|
1
|
-
import clsx from 'clsx';
|
|
2
|
-
import modules_fba16867 from './styles/CdrLabelWrapper.mjs';
|
|
3
|
-
import modifier from '../../mixins/modifier.mjs';
|
|
4
|
-
import size from '../../mixins/size.mjs';
|
|
5
|
-
import validateProp from '../../utils/propValidator.mjs';
|
|
6
|
-
|
|
7
|
-
var CdrLabelWrapper = {
|
|
8
|
-
name: 'CdrLabelWrapper',
|
|
9
|
-
mixins: [modifier, size],
|
|
10
|
-
inheritAttrs: false,
|
|
11
|
-
props: {
|
|
12
|
-
labelClass: String,
|
|
13
|
-
contentClass: String,
|
|
14
|
-
background: {
|
|
15
|
-
type: [String],
|
|
16
|
-
default: 'primary',
|
|
17
|
-
validator: value => validateProp(value, ['primary', 'secondary'])
|
|
18
|
-
},
|
|
19
|
-
disabled: Boolean
|
|
20
|
-
},
|
|
21
|
-
|
|
22
|
-
data() {
|
|
23
|
-
return {
|
|
24
|
-
style: modules_fba16867
|
|
25
|
-
};
|
|
26
|
-
},
|
|
27
|
-
|
|
28
|
-
computed: {
|
|
29
|
-
baseClass() {
|
|
30
|
-
return 'cdr-label-wrapper';
|
|
31
|
-
},
|
|
32
|
-
|
|
33
|
-
disabledClass() {
|
|
34
|
-
return this.disabled ? this.style['cdr-label-wrapper--disabled'] : '';
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
},
|
|
38
|
-
|
|
39
|
-
render() {
|
|
40
|
-
const h = arguments[0];
|
|
41
|
-
return h("div", {
|
|
42
|
-
"class": this.style['cdr-label-wrapper__container']
|
|
43
|
-
}, [h("label", {
|
|
44
|
-
"class": clsx(this.style['cdr-label-wrapper'], this.style["cdr-label-wrapper--".concat(this.background)], this.disabledClass, this.modifierClass, this.sizeClass, this.labelClass)
|
|
45
|
-
}, [this.$slots.input, h("span", {
|
|
46
|
-
"class": this.style['cdr-label-wrapper__figure']
|
|
47
|
-
}), h("div", {
|
|
48
|
-
"class": clsx(this.style['cdr-label-wrapper__content'], this.contentClass)
|
|
49
|
-
}, [this.$slots.default])])]);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
export default CdrLabelWrapper;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
var modules_fba16867 = {"cdr-label-wrapper":"cdr-label-wrapper_11-0-1","cdr-label-wrapper__container":"cdr-label-wrapper__container_11-0-1","cdr-label-wrapper--primary":"cdr-label-wrapper--primary_11-0-1","cdr-label-wrapper--secondary":"cdr-label-wrapper--secondary_11-0-1","cdr-label-wrapper--disabled":"cdr-label-wrapper--disabled_11-0-1","cdr-label-wrapper__figure":"cdr-label-wrapper__figure_11-0-1","cdr-label-wrapper__content":"cdr-label-wrapper__content_11-0-1","cdr-label-wrapper--hide-figure":"cdr-label-wrapper--hide-figure_11-0-1","cdr-label-wrapper--small":"cdr-label-wrapper--small_11-0-1","cdr-label-wrapper--medium":"cdr-label-wrapper--medium_11-0-1","cdr-label-wrapper--large":"cdr-label-wrapper--large_11-0-1","cdr-label-wrapper--small@xs":"cdr-label-wrapper--small@xs_11-0-1","cdr-label-wrapper--medium@xs":"cdr-label-wrapper--medium@xs_11-0-1","cdr-label-wrapper--large@xs":"cdr-label-wrapper--large@xs_11-0-1","cdr-label-wrapper--small@sm":"cdr-label-wrapper--small@sm_11-0-1","cdr-label-wrapper--medium@sm":"cdr-label-wrapper--medium@sm_11-0-1","cdr-label-wrapper--large@sm":"cdr-label-wrapper--large@sm_11-0-1","cdr-label-wrapper--small@md":"cdr-label-wrapper--small@md_11-0-1","cdr-label-wrapper--medium@md":"cdr-label-wrapper--medium@md_11-0-1","cdr-label-wrapper--large@md":"cdr-label-wrapper--large@md_11-0-1","cdr-label-wrapper--small@lg":"cdr-label-wrapper--small@lg_11-0-1","cdr-label-wrapper--medium@lg":"cdr-label-wrapper--medium@lg_11-0-1","cdr-label-wrapper--large@lg":"cdr-label-wrapper--large@lg_11-0-1"};
|
|
2
|
-
|
|
3
|
-
export default modules_fba16867;
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import clsx from 'clsx';
|
|
2
|
-
import modifier from '../../mixins/modifier.mjs';
|
|
3
|
-
import modules_ec342341 from './styles/CdrLink.mjs';
|
|
4
|
-
|
|
5
|
-
var CdrLink = {
|
|
6
|
-
name: 'CdrLink',
|
|
7
|
-
mixins: [modifier],
|
|
8
|
-
props: {
|
|
9
|
-
tag: {
|
|
10
|
-
type: String,
|
|
11
|
-
default: 'a'
|
|
12
|
-
},
|
|
13
|
-
href: {
|
|
14
|
-
type: String,
|
|
15
|
-
default: '#'
|
|
16
|
-
},
|
|
17
|
-
inheritColor: {
|
|
18
|
-
type: Boolean,
|
|
19
|
-
default: false
|
|
20
|
-
},
|
|
21
|
-
|
|
22
|
-
/** @ignore */
|
|
23
|
-
target: String,
|
|
24
|
-
|
|
25
|
-
/** @ignore */
|
|
26
|
-
rel: String
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
data() {
|
|
30
|
-
return {
|
|
31
|
-
style: modules_ec342341
|
|
32
|
-
};
|
|
33
|
-
},
|
|
34
|
-
|
|
35
|
-
computed: {
|
|
36
|
-
baseClass() {
|
|
37
|
-
return 'cdr-link';
|
|
38
|
-
},
|
|
39
|
-
|
|
40
|
-
computedRel() {
|
|
41
|
-
if (this.target === '_blank') {
|
|
42
|
-
return this.rel || 'noopener noreferrer';
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
return this.rel;
|
|
46
|
-
},
|
|
47
|
-
|
|
48
|
-
inheritColorClass() {
|
|
49
|
-
return this.inheritColor ? this.style['cdr-link--inherit-color'] : '';
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
},
|
|
53
|
-
|
|
54
|
-
render() {
|
|
55
|
-
const h = arguments[0];
|
|
56
|
-
const Component = this.tag;
|
|
57
|
-
return h(Component, {
|
|
58
|
-
"class": clsx(this.style[this.baseClass], this.modifierClass, this.inheritColorClass),
|
|
59
|
-
"attrs": {
|
|
60
|
-
"target": this.target,
|
|
61
|
-
"rel": this.computedRel,
|
|
62
|
-
"href": this.tag === 'a' ? this.href : null
|
|
63
|
-
},
|
|
64
|
-
"on": { ...this.$listeners
|
|
65
|
-
}
|
|
66
|
-
}, [this.$slots.default || this.href]);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
export default CdrLink;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import clsx from 'clsx';
|
|
2
|
-
import modifier from '../../mixins/modifier.mjs';
|
|
3
|
-
import modules_c3de6696 from './styles/CdrList.mjs';
|
|
4
|
-
|
|
5
|
-
var CdrList = {
|
|
6
|
-
name: 'CdrList',
|
|
7
|
-
mixins: [modifier],
|
|
8
|
-
props: {
|
|
9
|
-
/**
|
|
10
|
-
* Tag accepts a user defined element and expects either: 'ul' = Unordered List or 'ol' = Ordered List.
|
|
11
|
-
*/
|
|
12
|
-
tag: {
|
|
13
|
-
type: String,
|
|
14
|
-
default: 'ul',
|
|
15
|
-
validator: value => ['ul', 'ol'].indexOf(value) >= 0 || false
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
|
|
19
|
-
data() {
|
|
20
|
-
return {
|
|
21
|
-
style: modules_c3de6696
|
|
22
|
-
};
|
|
23
|
-
},
|
|
24
|
-
|
|
25
|
-
computed: {
|
|
26
|
-
baseClass() {
|
|
27
|
-
return 'cdr-list';
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
},
|
|
31
|
-
|
|
32
|
-
render() {
|
|
33
|
-
const h = arguments[0];
|
|
34
|
-
const Component = this.tag;
|
|
35
|
-
return h(Component, {
|
|
36
|
-
"class": clsx(this.style[this.baseClass], this.modifierClass)
|
|
37
|
-
}, [this.$slots.default]);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
export default CdrList;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
var modules_c3de6696 = {"cdr-list":"cdr-list_11-0-1","cdr-list--compact":"cdr-list--compact_11-0-1","cdr-list--ordered":"cdr-list--ordered_11-0-1","cdr-list--unordered":"cdr-list--unordered_11-0-1","cdr-list--inline":"cdr-list--inline_11-0-1"};
|
|
2
|
-
|
|
3
|
-
export default modules_c3de6696;
|
|
@@ -1,365 +0,0 @@
|
|
|
1
|
-
import debounce from 'lodash-es/debounce';
|
|
2
|
-
import tabbable from 'tabbable';
|
|
3
|
-
import clsx from 'clsx';
|
|
4
|
-
import { CdrBreakpointSm, CdrSpaceTwoX, CdrSpaceOneX } from '../../../node_modules/@rei/cdr-tokens/dist/js/cdr-tokens.esm.mjs';
|
|
5
|
-
import modules_11cadc74 from './styles/CdrModal.mjs';
|
|
6
|
-
import onTransitionEnd from './onTransitionEnd.mjs';
|
|
7
|
-
import CdrButton from '../button/CdrButton.mjs';
|
|
8
|
-
import IconXLg from '../icon/comps/x-lg.mjs';
|
|
9
|
-
|
|
10
|
-
var CdrModal = {
|
|
11
|
-
name: 'CdrModal',
|
|
12
|
-
components: {
|
|
13
|
-
CdrButton,
|
|
14
|
-
IconXLg
|
|
15
|
-
},
|
|
16
|
-
props: {
|
|
17
|
-
opened: {
|
|
18
|
-
type: Boolean,
|
|
19
|
-
required: true
|
|
20
|
-
},
|
|
21
|
-
label: {
|
|
22
|
-
type: String,
|
|
23
|
-
required: true
|
|
24
|
-
},
|
|
25
|
-
role: {
|
|
26
|
-
type: String,
|
|
27
|
-
required: false,
|
|
28
|
-
default: 'dialog'
|
|
29
|
-
},
|
|
30
|
-
showTitle: {
|
|
31
|
-
type: Boolean,
|
|
32
|
-
required: false,
|
|
33
|
-
default: true
|
|
34
|
-
},
|
|
35
|
-
ariaDescribedby: {
|
|
36
|
-
type: String,
|
|
37
|
-
required: false,
|
|
38
|
-
default: null
|
|
39
|
-
},
|
|
40
|
-
id: {
|
|
41
|
-
type: String,
|
|
42
|
-
required: false,
|
|
43
|
-
default: null
|
|
44
|
-
},
|
|
45
|
-
overlayClass: String,
|
|
46
|
-
wrapperClass: String,
|
|
47
|
-
contentClass: String,
|
|
48
|
-
animationDuration: {
|
|
49
|
-
type: Number,
|
|
50
|
-
default: 300
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
|
|
54
|
-
data() {
|
|
55
|
-
return {
|
|
56
|
-
style: modules_11cadc74,
|
|
57
|
-
unsubscribe: null,
|
|
58
|
-
keyHandler: null,
|
|
59
|
-
lastActive: null,
|
|
60
|
-
focusHandler: null,
|
|
61
|
-
resizeHandler: null,
|
|
62
|
-
isOpening: false,
|
|
63
|
-
offset: null,
|
|
64
|
-
headerHeight: 0,
|
|
65
|
-
totalHeight: 0,
|
|
66
|
-
isScrolling: false,
|
|
67
|
-
hasScrollbar: false,
|
|
68
|
-
fullscreen: false
|
|
69
|
-
};
|
|
70
|
-
},
|
|
71
|
-
|
|
72
|
-
computed: {
|
|
73
|
-
dialogAttrs() {
|
|
74
|
-
return {
|
|
75
|
-
'aria-describedby': this.ariaDescribedby,
|
|
76
|
-
'aria-modal': 'true',
|
|
77
|
-
id: this.id
|
|
78
|
-
};
|
|
79
|
-
},
|
|
80
|
-
|
|
81
|
-
scrollPadding() {
|
|
82
|
-
if (this.isScrolling && this.hasScrollbar) {
|
|
83
|
-
// content is scrolling, scrollbar is always present
|
|
84
|
-
return 4;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
if (this.isScrolling) {
|
|
88
|
-
// content is scrolling, scrollbar only appears on scroll
|
|
89
|
-
return 12;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
return 0;
|
|
93
|
-
},
|
|
94
|
-
|
|
95
|
-
verticalSpace() {
|
|
96
|
-
// contentWrap vertical padding
|
|
97
|
-
const fullscreen = Number(CdrSpaceTwoX);
|
|
98
|
-
const windowed = Number(CdrSpaceTwoX) + Number(CdrSpaceOneX);
|
|
99
|
-
return this.fullscreen ? fullscreen : windowed + fullscreen; // fullscreen, here, would account for outerWrap padding, which is the same CdrSpaceTwoX
|
|
100
|
-
},
|
|
101
|
-
|
|
102
|
-
scrollMaxHeight() {
|
|
103
|
-
return this.totalHeight - this.headerHeight - this.verticalSpace;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
},
|
|
107
|
-
watch: {
|
|
108
|
-
opened(newValue, oldValue) {
|
|
109
|
-
if (!!newValue === !!oldValue) return;
|
|
110
|
-
|
|
111
|
-
if (newValue) {
|
|
112
|
-
this.handleOpened();
|
|
113
|
-
} else {
|
|
114
|
-
this.handleClosed();
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
},
|
|
119
|
-
|
|
120
|
-
mounted() {
|
|
121
|
-
if (this.opened) {
|
|
122
|
-
this.handleOpened();
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
this.resizeHandler = debounce(() => {
|
|
126
|
-
this.measureContent();
|
|
127
|
-
}, 300);
|
|
128
|
-
window.addEventListener('resize', this.resizeHandler);
|
|
129
|
-
},
|
|
130
|
-
|
|
131
|
-
beforeDestroy() {
|
|
132
|
-
if (this.unsubscribe) this.unsubscribe();
|
|
133
|
-
if (this.opened) this.removeNoScroll();
|
|
134
|
-
document.removeEventListener('focusin', this.focusHandler, true);
|
|
135
|
-
document.removeEventListener('keydown', this.keyHandler);
|
|
136
|
-
window.removeEventListener('resize', this.resizeHandler);
|
|
137
|
-
},
|
|
138
|
-
|
|
139
|
-
methods: {
|
|
140
|
-
measureContent() {
|
|
141
|
-
this.$nextTick(() => {
|
|
142
|
-
var _this$$refs$header, _this$$refs$content, _this$$refs$content2, _this$$refs$content3, _this$$refs$content4;
|
|
143
|
-
|
|
144
|
-
this.totalHeight = window.innerHeight;
|
|
145
|
-
this.fullscreen = window.innerWidth < CdrBreakpointSm;
|
|
146
|
-
this.headerHeight = (_this$$refs$header = this.$refs.header) === null || _this$$refs$header === void 0 ? void 0 : _this$$refs$header.offsetHeight;
|
|
147
|
-
this.isScrolling = ((_this$$refs$content = this.$refs.content) === null || _this$$refs$content === void 0 ? void 0 : _this$$refs$content.scrollHeight) > ((_this$$refs$content2 = this.$refs.content) === null || _this$$refs$content2 === void 0 ? void 0 : _this$$refs$content2.offsetHeight);
|
|
148
|
-
this.hasScrollbar = ((_this$$refs$content3 = this.$refs.content) === null || _this$$refs$content3 === void 0 ? void 0 : _this$$refs$content3.offsetWidth) - ((_this$$refs$content4 = this.$refs.content) === null || _this$$refs$content4 === void 0 ? void 0 : _this$$refs$content4.clientWidth) > 0;
|
|
149
|
-
});
|
|
150
|
-
},
|
|
151
|
-
|
|
152
|
-
handleKeyDown({
|
|
153
|
-
key
|
|
154
|
-
}) {
|
|
155
|
-
switch (key) {
|
|
156
|
-
case 'Escape':
|
|
157
|
-
case 'Esc':
|
|
158
|
-
this.onClick();
|
|
159
|
-
break;
|
|
160
|
-
}
|
|
161
|
-
},
|
|
162
|
-
|
|
163
|
-
handleFocus(e) {
|
|
164
|
-
const {
|
|
165
|
-
documentElement
|
|
166
|
-
} = document;
|
|
167
|
-
if (this.$refs.modal.contains(e.target) || !documentElement) return;
|
|
168
|
-
const tabbables = tabbable(documentElement);
|
|
169
|
-
const these = tabbable(this.$refs.modal);
|
|
170
|
-
const nextIx = tabbables.indexOf(e.target);
|
|
171
|
-
const firstModalIx = tabbables.indexOf(these[0]);
|
|
172
|
-
const nextRef = nextIx < firstModalIx ? these[these.length - 1] : these[0];
|
|
173
|
-
if (nextRef) nextRef.focus();
|
|
174
|
-
documentElement.scrollTop = this.scrollTop;
|
|
175
|
-
documentElement.scrollLeft = this.scrollLeft;
|
|
176
|
-
},
|
|
177
|
-
|
|
178
|
-
handleOpened() {
|
|
179
|
-
const {
|
|
180
|
-
activeElement
|
|
181
|
-
} = document;
|
|
182
|
-
this.addNoScroll();
|
|
183
|
-
this.isOpening = true;
|
|
184
|
-
this.lastActive = activeElement;
|
|
185
|
-
this.$nextTick(() => {
|
|
186
|
-
if (this.$refs.modal) this.$refs.modal.focus(); // wrapped in if so testing error isn't thrown
|
|
187
|
-
|
|
188
|
-
this.measureContent();
|
|
189
|
-
this.addHandlers();
|
|
190
|
-
setTimeout(() => {
|
|
191
|
-
// for some reason Safari scrolls the wrapper down a bit?
|
|
192
|
-
// doesn't work without setTimeout for some unknown reason
|
|
193
|
-
if (this.$refs.wrapper) this.$refs.wrapper.scrollTop = 0; // there is a race condition for measuring overflow when modal defaults to open,
|
|
194
|
-
// this seems to cover that
|
|
195
|
-
|
|
196
|
-
this.measureContent();
|
|
197
|
-
});
|
|
198
|
-
});
|
|
199
|
-
},
|
|
200
|
-
|
|
201
|
-
handleClosed() {
|
|
202
|
-
const {
|
|
203
|
-
documentElement
|
|
204
|
-
} = document;
|
|
205
|
-
document.removeEventListener('keydown', this.keyHandler);
|
|
206
|
-
document.removeEventListener('focusin', this.focusHandler, true);
|
|
207
|
-
this.isOpening = false;
|
|
208
|
-
this.unsubscribe = onTransitionEnd(this.$refs.wrapper, () => {
|
|
209
|
-
if (this.isOpening) return;
|
|
210
|
-
this.unsubscribe();
|
|
211
|
-
this.removeNoScroll();
|
|
212
|
-
this.unsubscribe = null; // handle scroll-behavior: smooth
|
|
213
|
-
|
|
214
|
-
if (documentElement) documentElement.style.scrollBehavior = 'auto'; // restore previous scroll position
|
|
215
|
-
|
|
216
|
-
window.scrollTo(this.offset.x, this.offset.y);
|
|
217
|
-
if (documentElement) documentElement.style.scrollBehavior = '';
|
|
218
|
-
if (this.lastActive) this.lastActive.focus();
|
|
219
|
-
}, this.animationDuration + 16);
|
|
220
|
-
},
|
|
221
|
-
|
|
222
|
-
addNoScroll() {
|
|
223
|
-
const {
|
|
224
|
-
documentElement,
|
|
225
|
-
body
|
|
226
|
-
} = document;
|
|
227
|
-
const offset = {
|
|
228
|
-
x: window.scrollX || (documentElement || {}).scrollLeft || (body || {}).scrollLeft || 0,
|
|
229
|
-
y: window.scrollY || (documentElement || {}).scrollTop || (body || {}).scrollTop || 0
|
|
230
|
-
};
|
|
231
|
-
this.offset = offset;
|
|
232
|
-
|
|
233
|
-
if (documentElement) {
|
|
234
|
-
documentElement.classList.add(modules_11cadc74['cdr-modal__noscroll']); // keep current scroll position manually
|
|
235
|
-
|
|
236
|
-
documentElement.style.top = "-".concat(offset.y, "px");
|
|
237
|
-
documentElement.style.left = "-".concat(offset.x, "px");
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
if (body) {
|
|
241
|
-
body.classList.add(modules_11cadc74['cdr-modal__noscroll']);
|
|
242
|
-
}
|
|
243
|
-
},
|
|
244
|
-
|
|
245
|
-
removeNoScroll() {
|
|
246
|
-
const {
|
|
247
|
-
documentElement,
|
|
248
|
-
body
|
|
249
|
-
} = document;
|
|
250
|
-
|
|
251
|
-
if (body) {
|
|
252
|
-
body.classList.remove(modules_11cadc74['cdr-modal__noscroll']);
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
if (documentElement) {
|
|
256
|
-
documentElement.classList.remove(modules_11cadc74['cdr-modal__noscroll']);
|
|
257
|
-
documentElement.style.top = '';
|
|
258
|
-
documentElement.style.left = '';
|
|
259
|
-
}
|
|
260
|
-
},
|
|
261
|
-
|
|
262
|
-
addHandlers() {
|
|
263
|
-
this.focusHandler = this.handleFocus.bind(this);
|
|
264
|
-
this.keyHandler = this.handleKeyDown.bind(this);
|
|
265
|
-
document.addEventListener('focusin', this.focusHandler, true);
|
|
266
|
-
document.addEventListener('keydown', this.keyHandler);
|
|
267
|
-
},
|
|
268
|
-
|
|
269
|
-
onClick(e) {
|
|
270
|
-
this.$emit('closed', e);
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
},
|
|
274
|
-
|
|
275
|
-
render() {
|
|
276
|
-
const h = arguments[0];
|
|
277
|
-
const {
|
|
278
|
-
onClick,
|
|
279
|
-
opened,
|
|
280
|
-
label,
|
|
281
|
-
wrapperClass,
|
|
282
|
-
overlayClass,
|
|
283
|
-
contentClass
|
|
284
|
-
} = this;
|
|
285
|
-
return h("div", {
|
|
286
|
-
"class": clsx(this.style['cdr-modal'], {
|
|
287
|
-
[this.style.closed]: !opened
|
|
288
|
-
}),
|
|
289
|
-
"ref": "wrapper"
|
|
290
|
-
}, [h("div", {
|
|
291
|
-
"class": clsx(this.style['cdr-modal__outerWrap'], wrapperClass)
|
|
292
|
-
}, [h("div", {
|
|
293
|
-
"attrs": {
|
|
294
|
-
"aria-hidden": "true"
|
|
295
|
-
},
|
|
296
|
-
"on": {
|
|
297
|
-
"click": onClick
|
|
298
|
-
},
|
|
299
|
-
"class": clsx(this.style['cdr-modal__overlay'], overlayClass)
|
|
300
|
-
}), h("div", {
|
|
301
|
-
"attrs": {
|
|
302
|
-
"tabIndex": opened ? '0' : undefined
|
|
303
|
-
}
|
|
304
|
-
}), h("div", {
|
|
305
|
-
"ref": "modal",
|
|
306
|
-
"class": clsx(this.style['cdr-modal__contentWrap'], this.style['cdr-modal__dialog']),
|
|
307
|
-
"attrs": {
|
|
308
|
-
"tabIndex": "-1",
|
|
309
|
-
"role": this.role,
|
|
310
|
-
"aria-modal": !!opened,
|
|
311
|
-
"aria-label": label,
|
|
312
|
-
...this.dialogAttrs
|
|
313
|
-
}
|
|
314
|
-
}, [this.$slots.modal || h("div", {
|
|
315
|
-
"class": clsx(this.style['cdr-modal__innerWrap'], contentClass),
|
|
316
|
-
"style": !opened ? {
|
|
317
|
-
display: 'none'
|
|
318
|
-
} : undefined
|
|
319
|
-
}, [h("section", [h("div", {
|
|
320
|
-
"class": this.style['cdr-modal__content']
|
|
321
|
-
}, [h("div", {
|
|
322
|
-
"class": this.style['cdr-modal__header'],
|
|
323
|
-
"ref": "header"
|
|
324
|
-
}, [h("div", {
|
|
325
|
-
"class": this.style['cdr-modal__title']
|
|
326
|
-
}, [this.showTitle && this.$slots.title, this.showTitle && !this.$slots.title && h("h1", [this.label])]), h("cdr-button", {
|
|
327
|
-
"class": this.style['cdr-modal__close-button'],
|
|
328
|
-
"attrs": {
|
|
329
|
-
"icon-only": true,
|
|
330
|
-
"with-background": true,
|
|
331
|
-
"aria-label": "Close"
|
|
332
|
-
},
|
|
333
|
-
"on": {
|
|
334
|
-
"click": onClick
|
|
335
|
-
}
|
|
336
|
-
}, [h(IconXLg, {
|
|
337
|
-
"slot": "icon",
|
|
338
|
-
"attrs": {
|
|
339
|
-
"inherit-color": true
|
|
340
|
-
}
|
|
341
|
-
})])]), h("div", {
|
|
342
|
-
"attrs": {
|
|
343
|
-
"role": "document"
|
|
344
|
-
},
|
|
345
|
-
"class": this.style['cdr-modal__text']
|
|
346
|
-
}, [h("div", {
|
|
347
|
-
"class": this.style['cdr-modal__text-content'],
|
|
348
|
-
"style": {
|
|
349
|
-
maxHeight: "".concat(this.scrollMaxHeight, "px"),
|
|
350
|
-
paddingRight: "".concat(this.scrollPadding, "px")
|
|
351
|
-
},
|
|
352
|
-
"ref": "content",
|
|
353
|
-
"attrs": {
|
|
354
|
-
"tabindex": "0"
|
|
355
|
-
}
|
|
356
|
-
}, [this.$slots.default])])])])])]), h("div", {
|
|
357
|
-
"attrs": {
|
|
358
|
-
"tabIndex": opened ? '0' : undefined
|
|
359
|
-
}
|
|
360
|
-
})])]);
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
};
|
|
364
|
-
|
|
365
|
-
export default CdrModal;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
var modules_11cadc74 = {"cdr-modal":"cdr-modal_11-0-1","cdr-modal__overlay":"cdr-modal__overlay_11-0-1","cdr-modal__outerWrap":"cdr-modal__outerWrap_11-0-1","cdr-modal__contentWrap":"cdr-modal__contentWrap_11-0-1","cdr-modal__innerWrap":"cdr-modal__innerWrap_11-0-1","cdr-modal__dialog":"cdr-modal__dialog_11-0-1","cdr-modal__content":"cdr-modal__content_11-0-1","cdr-modal__header":"cdr-modal__header_11-0-1","cdr-modal__title":"cdr-modal__title_11-0-1","cdr-modal__close-button":"cdr-modal__close-button_11-0-1","cdr-modal__text":"cdr-modal__text_11-0-1","cdr-modal__text-content":"cdr-modal__text-content_11-0-1","closed":"closed_11-0-1","cdr-modal__noscroll":"cdr-modal__noscroll_11-0-1"};
|
|
2
|
-
|
|
3
|
-
export default modules_11cadc74;
|