@rei/cedar 13.4.0-alpha.1 → 13.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_plugin-vue_export-helper.mjs +9 -0
- package/dist/cedar-compiled.css +1031 -1145
- package/dist/node_modules/@rei/cdr-tokens/dist/js/cdr-tokens.mjs +10 -0
- package/dist/src/components/accordion/CdrAccordion.vue.mjs +155 -0
- package/dist/src/components/accordion/CdrAccordionGroup.vue.mjs +78 -0
- package/dist/src/components/accordion/styles/CdrAccordion.module.scss.mjs +34 -0
- package/dist/src/components/accordion/styles/CdrAccordionGroup.module.scss.mjs +7 -0
- package/dist/src/components/banner/CdrBanner.vue.mjs +56 -0
- package/dist/src/components/banner/styles/CdrBanner.module.scss.mjs +19 -0
- package/dist/src/components/breadcrumb/CdrBreadcrumb.vue.mjs +101 -0
- package/dist/src/components/breadcrumb/styles/CdrBreadcrumb.module.scss.mjs +12 -0
- package/dist/src/components/button/CdrButton.vue.mjs +75 -0
- package/dist/src/components/button/styles/CdrButton.module.scss.mjs +36 -0
- package/dist/src/components/caption/CdrCaption.vue.mjs +39 -0
- package/dist/src/components/caption/styles/CdrCaption.module.scss.mjs +7 -0
- package/dist/src/components/card/CdrCard.vue.mjs +32 -0
- package/dist/src/components/card/styles/CdrCard.module.scss.mjs +6 -0
- package/dist/src/components/checkbox/CdrCheckbox.vue.mjs +123 -0
- package/dist/src/components/checkbox/styles/CdrCheckbox.module.scss.mjs +30 -0
- package/dist/src/components/chip/CdrChip.vue.mjs +31 -0
- package/dist/src/components/chip/CdrChipGroup.vue.mjs +79 -0
- package/dist/src/components/chip/styles/CdrChip.module.scss.mjs +9 -0
- package/dist/src/components/chip/styles/CdrChipGroup.module.scss.mjs +9 -0
- package/dist/src/components/container/CdrContainer.vue.mjs +43 -0
- package/dist/src/components/container/styles/CdrContainer.module.scss.mjs +7 -0
- package/dist/src/components/formError/CdrFormError.vue.mjs +38 -0
- package/dist/src/components/formError/styles/CdrFormError.module.scss.mjs +7 -0
- package/dist/src/components/formGroup/CdrFormGroup.vue.mjs +72 -0
- package/dist/src/components/formGroup/styles/CdrFormGroup.module.scss.mjs +13 -0
- package/dist/src/components/grid/CdrGrid.vue.mjs +48 -0
- package/dist/src/components/grid/styles/CdrGrid.module.scss.mjs +26 -0
- package/dist/src/components/icon/CdrIcon.vue.mjs +57 -0
- package/dist/src/components/icon/comps/account-profile-fill.vue.mjs +28 -0
- package/dist/src/components/icon/comps/account-profile.vue.mjs +28 -0
- package/dist/src/components/icon/comps/arrow-down.vue.mjs +28 -0
- package/dist/src/components/icon/comps/arrow-left.vue.mjs +28 -0
- package/dist/src/components/icon/comps/arrow-right.vue.mjs +28 -0
- package/dist/src/components/icon/comps/arrow-up.vue.mjs +28 -0
- package/dist/src/components/icon/comps/atv.vue.mjs +28 -0
- package/dist/src/components/icon/comps/bed-outline.vue.mjs +28 -0
- package/dist/src/components/icon/comps/bike-shop.vue.mjs +28 -0
- package/dist/src/components/icon/comps/binoculars.vue.mjs +28 -0
- package/dist/src/components/icon/comps/birding.vue.mjs +28 -0
- package/dist/src/components/icon/comps/boat.vue.mjs +28 -0
- package/dist/src/components/icon/comps/boating.vue.mjs +28 -0
- package/dist/src/components/icon/comps/bookmark-fill.vue.mjs +28 -0
- package/dist/src/components/icon/comps/bookmark-stroke.vue.mjs +28 -0
- package/dist/src/components/icon/comps/brand-abstract.vue.mjs +28 -0
- package/dist/src/components/icon/comps/brand-code-sandbox.vue.mjs +28 -0
- package/dist/src/components/icon/comps/brand-github.vue.mjs +28 -0
- package/dist/src/components/icon/comps/brand-linkedin.vue.mjs +28 -0
- package/dist/src/components/icon/comps/brand-rei-ice-axes.vue.mjs +28 -0
- package/dist/src/components/icon/comps/brand-sketch.vue.mjs +28 -0
- package/dist/src/components/icon/comps/brand-tiktok.vue.mjs +29 -0
- package/dist/src/components/icon/comps/buddies.vue.mjs +28 -0
- package/dist/src/components/icon/comps/bus.vue.mjs +28 -0
- package/dist/src/components/icon/comps/calendar.vue.mjs +28 -0
- package/dist/src/components/icon/comps/camera.vue.mjs +28 -0
- package/dist/src/components/icon/comps/canoe.vue.mjs +28 -0
- package/dist/src/components/icon/comps/car.vue.mjs +28 -0
- package/dist/src/components/icon/comps/caret-down.vue.mjs +28 -0
- package/dist/src/components/icon/comps/caret-left.vue.mjs +28 -0
- package/dist/src/components/icon/comps/caret-right.vue.mjs +28 -0
- package/dist/src/components/icon/comps/caret-up.vue.mjs +28 -0
- package/dist/src/components/icon/comps/cart-fill.vue.mjs +28 -0
- package/dist/src/components/icon/comps/cart.vue.mjs +28 -0
- package/dist/src/components/icon/comps/chain-link.vue.mjs +28 -0
- package/dist/src/components/icon/comps/chat.vue.mjs +28 -0
- package/dist/src/components/icon/comps/check-fill.vue.mjs +28 -0
- package/dist/src/components/icon/comps/check-lg.vue.mjs +28 -0
- package/dist/src/components/icon/comps/check-sm.vue.mjs +28 -0
- package/dist/src/components/icon/comps/check-stroke.vue.mjs +28 -0
- package/dist/src/components/icon/comps/climb.vue.mjs +28 -0
- package/dist/src/components/icon/comps/clipboard.vue.mjs +28 -0
- package/dist/src/components/icon/comps/clock.vue.mjs +28 -0
- package/dist/src/components/icon/comps/code-html.vue.mjs +28 -0
- package/dist/src/components/icon/comps/code-js.vue.mjs +28 -0
- package/dist/src/components/icon/comps/compass.vue.mjs +28 -0
- package/dist/src/components/icon/comps/copy.vue.mjs +28 -0
- package/dist/src/components/icon/comps/coupon-fill.vue.mjs +28 -0
- package/dist/src/components/icon/comps/coupon-stroke.vue.mjs +28 -0
- package/dist/src/components/icon/comps/credit-card.vue.mjs +28 -0
- package/dist/src/components/icon/comps/curbside-pickup.vue.mjs +28 -0
- package/dist/src/components/icon/comps/day.vue.mjs +28 -0
- package/dist/src/components/icon/comps/diving.vue.mjs +28 -0
- package/dist/src/components/icon/comps/dog.vue.mjs +28 -0
- package/dist/src/components/icon/comps/download.vue.mjs +28 -0
- package/dist/src/components/icon/comps/duplicate.vue.mjs +29 -0
- package/dist/src/components/icon/comps/edit.vue.mjs +28 -0
- package/dist/src/components/icon/comps/elevation.vue.mjs +28 -0
- package/dist/src/components/icon/comps/error-fill.vue.mjs +30 -0
- package/dist/src/components/icon/comps/error-stroke.vue.mjs +32 -0
- package/dist/src/components/icon/comps/expand.vue.mjs +28 -0
- package/dist/src/components/icon/comps/experiences-backpacking.vue.mjs +28 -0
- package/dist/src/components/icon/comps/experiences-camping.vue.mjs +28 -0
- package/dist/src/components/icon/comps/experiences-climbing.vue.mjs +28 -0
- package/dist/src/components/icon/comps/experiences-clothing.vue.mjs +28 -0
- package/dist/src/components/icon/comps/experiences-cycling.vue.mjs +28 -0
- package/dist/src/components/icon/comps/experiences-family.vue.mjs +28 -0
- package/dist/src/components/icon/comps/experiences-fitness.vue.mjs +28 -0
- package/dist/src/components/icon/comps/experiences-hiking.vue.mjs +28 -0
- package/dist/src/components/icon/comps/experiences-outdoor-basics.vue.mjs +28 -0
- package/dist/src/components/icon/comps/experiences-paddling.vue.mjs +28 -0
- package/dist/src/components/icon/comps/experiences-rentals.vue.mjs +28 -0
- package/dist/src/components/icon/comps/experiences-running.vue.mjs +29 -0
- package/dist/src/components/icon/comps/experiences-snowsports.vue.mjs +28 -0
- package/dist/src/components/icon/comps/experiences-travel.vue.mjs +28 -0
- package/dist/src/components/icon/comps/external-link-alt.vue.mjs +29 -0
- package/dist/src/components/icon/comps/external-link.vue.mjs +28 -0
- package/dist/src/components/icon/comps/eye-hide.vue.mjs +28 -0
- package/dist/src/components/icon/comps/eye-show.vue.mjs +28 -0
- package/dist/src/components/icon/comps/facebook.vue.mjs +28 -0
- package/dist/src/components/icon/comps/filter-alt.vue.mjs +28 -0
- package/dist/src/components/icon/comps/filter.vue.mjs +28 -0
- package/dist/src/components/icon/comps/find-location.vue.mjs +28 -0
- package/dist/src/components/icon/comps/fire.vue.mjs +28 -0
- package/dist/src/components/icon/comps/fishing.vue.mjs +28 -0
- package/dist/src/components/icon/comps/free-product.vue.mjs +28 -0
- package/dist/src/components/icon/comps/grid-view.vue.mjs +28 -0
- package/dist/src/components/icon/comps/heart-fill.vue.mjs +28 -0
- package/dist/src/components/icon/comps/heart-stroke.vue.mjs +28 -0
- package/dist/src/components/icon/comps/hike.vue.mjs +28 -0
- package/dist/src/components/icon/comps/history.vue.mjs +28 -0
- package/dist/src/components/icon/comps/home.vue.mjs +28 -0
- package/dist/src/components/icon/comps/horse.vue.mjs +28 -0
- package/dist/src/components/icon/comps/horseshoe.vue.mjs +28 -0
- package/dist/src/components/icon/comps/image.vue.mjs +28 -0
- package/dist/src/components/icon/comps/information-fill.vue.mjs +28 -0
- package/dist/src/components/icon/comps/information-stroke.vue.mjs +28 -0
- package/dist/src/components/icon/comps/instagram.vue.mjs +28 -0
- package/dist/src/components/icon/comps/kayak.vue.mjs +28 -0
- package/dist/src/components/icon/comps/link-alt.vue.mjs +29 -0
- package/dist/src/components/icon/comps/list-ragged.vue.mjs +28 -0
- package/dist/src/components/icon/comps/list-view.vue.mjs +28 -0
- package/dist/src/components/icon/comps/location-pin-fill.vue.mjs +28 -0
- package/dist/src/components/icon/comps/location-pin-stroke.vue.mjs +28 -0
- package/dist/src/components/icon/comps/lock-locked-fill.vue.mjs +28 -0
- package/dist/src/components/icon/comps/lock-locked-stroke.vue.mjs +28 -0
- package/dist/src/components/icon/comps/lock-unlocked-stroke.vue.mjs +28 -0
- package/dist/src/components/icon/comps/mail.vue.mjs +28 -0
- package/dist/src/components/icon/comps/map.vue.mjs +28 -0
- package/dist/src/components/icon/comps/member-card.vue.mjs +28 -0
- package/dist/src/components/icon/comps/membership.vue.mjs +29 -0
- package/dist/src/components/icon/comps/microphone.vue.mjs +28 -0
- package/dist/src/components/icon/comps/minus-fill.vue.mjs +28 -0
- package/dist/src/components/icon/comps/minus-lg.vue.mjs +28 -0
- package/dist/src/components/icon/comps/minus-sm.vue.mjs +28 -0
- package/dist/src/components/icon/comps/minus-stroke.vue.mjs +28 -0
- package/dist/src/components/icon/comps/more-functions.vue.mjs +28 -0
- package/dist/src/components/icon/comps/my-location.vue.mjs +28 -0
- package/dist/src/components/icon/comps/navigation-menu.vue.mjs +28 -0
- package/dist/src/components/icon/comps/night.vue.mjs +28 -0
- package/dist/src/components/icon/comps/paddle.vue.mjs +28 -0
- package/dist/src/components/icon/comps/pause-fill.vue.mjs +28 -0
- package/dist/src/components/icon/comps/pause-stroke.vue.mjs +28 -0
- package/dist/src/components/icon/comps/pause.vue.mjs +28 -0
- package/dist/src/components/icon/comps/photography.vue.mjs +28 -0
- package/dist/src/components/icon/comps/picnic.vue.mjs +28 -0
- package/dist/src/components/icon/comps/pinterest.vue.mjs +28 -0
- package/dist/src/components/icon/comps/plane.vue.mjs +28 -0
- package/dist/src/components/icon/comps/play-fill.vue.mjs +28 -0
- package/dist/src/components/icon/comps/play-stroke.vue.mjs +28 -0
- package/dist/src/components/icon/comps/play.vue.mjs +28 -0
- package/dist/src/components/icon/comps/playground.vue.mjs +28 -0
- package/dist/src/components/icon/comps/plugin.vue.mjs +28 -0
- package/dist/src/components/icon/comps/plus-fill.vue.mjs +28 -0
- package/dist/src/components/icon/comps/plus-lg.vue.mjs +28 -0
- package/dist/src/components/icon/comps/plus-sm.vue.mjs +28 -0
- package/dist/src/components/icon/comps/plus-stroke.vue.mjs +28 -0
- package/dist/src/components/icon/comps/print.vue.mjs +28 -0
- package/dist/src/components/icon/comps/protection-fill.vue.mjs +28 -0
- package/dist/src/components/icon/comps/protection-stroke.vue.mjs +28 -0
- package/dist/src/components/icon/comps/question-fill.vue.mjs +28 -0
- package/dist/src/components/icon/comps/question-stroke.vue.mjs +28 -0
- package/dist/src/components/icon/comps/refresh.vue.mjs +28 -0
- package/dist/src/components/icon/comps/reload.vue.mjs +28 -0
- package/dist/src/components/icon/comps/returns.vue.mjs +29 -0
- package/dist/src/components/icon/comps/run.vue.mjs +28 -0
- package/dist/src/components/icon/comps/scan-barcode.vue.mjs +28 -0
- package/dist/src/components/icon/comps/search.vue.mjs +28 -0
- package/dist/src/components/icon/comps/service-shop.vue.mjs +28 -0
- package/dist/src/components/icon/comps/shipping-prep.vue.mjs +29 -0
- package/dist/src/components/icon/comps/shipping-truck.vue.mjs +29 -0
- package/dist/src/components/icon/comps/shipping.vue.mjs +28 -0
- package/dist/src/components/icon/comps/shopping-bag-fill.vue.mjs +28 -0
- package/dist/src/components/icon/comps/shopping-bag.vue.mjs +28 -0
- package/dist/src/components/icon/comps/shrink.vue.mjs +28 -0
- package/dist/src/components/icon/comps/size-chart.vue.mjs +28 -0
- package/dist/src/components/icon/comps/ski-boot.vue.mjs +28 -0
- package/dist/src/components/icon/comps/ski.vue.mjs +28 -0
- package/dist/src/components/icon/comps/snow-shop.vue.mjs +28 -0
- package/dist/src/components/icon/comps/snow.vue.mjs +28 -0
- package/dist/src/components/icon/comps/sort.vue.mjs +28 -0
- package/dist/src/components/icon/comps/star-100.vue.mjs +28 -0
- package/dist/src/components/icon/comps/star-25.vue.mjs +28 -0
- package/dist/src/components/icon/comps/star-50.vue.mjs +28 -0
- package/dist/src/components/icon/comps/star-75.vue.mjs +28 -0
- package/dist/src/components/icon/comps/star-stroke.vue.mjs +28 -0
- package/dist/src/components/icon/comps/storefront.vue.mjs +28 -0
- package/dist/src/components/icon/comps/swim.vue.mjs +28 -0
- package/dist/src/components/icon/comps/telephone.vue.mjs +28 -0
- package/dist/src/components/icon/comps/tent.vue.mjs +28 -0
- package/dist/src/components/icon/comps/trash.vue.mjs +28 -0
- package/dist/src/components/icon/comps/twitter.vue.mjs +28 -0
- package/dist/src/components/icon/comps/upload.vue.mjs +28 -0
- package/dist/src/components/icon/comps/verified-purchaser.vue.mjs +28 -0
- package/dist/src/components/icon/comps/virtual-outfitting.vue.mjs +28 -0
- package/dist/src/components/icon/comps/warning-fill.vue.mjs +28 -0
- package/dist/src/components/icon/comps/warning-stroke.vue.mjs +28 -0
- package/dist/src/components/icon/comps/water.vue.mjs +28 -0
- package/dist/src/components/icon/comps/wilderness.vue.mjs +28 -0
- package/dist/src/components/icon/comps/x-fill.vue.mjs +28 -0
- package/dist/src/components/icon/comps/x-lg.vue.mjs +28 -0
- package/dist/src/components/icon/comps/x-sm.vue.mjs +28 -0
- package/dist/src/components/icon/comps/x-stroke.vue.mjs +28 -0
- package/dist/src/components/icon/comps/youtube.vue.mjs +28 -0
- package/dist/src/components/icon/comps/zoom-in.vue.mjs +28 -0
- package/dist/src/components/icon/comps/zoom-out.vue.mjs +28 -0
- package/dist/src/components/icon/styles/CdrIcon.module.scss.mjs +17 -0
- package/dist/src/components/image/CdrImg.vue.mjs +114 -0
- package/dist/src/components/image/styles/CdrImg.module.scss.mjs +13 -0
- package/dist/src/components/input/CdrInput.vue.mjs +219 -0
- package/dist/src/components/input/styles/CdrInput.module.scss.mjs +37 -0
- package/dist/src/components/labelStandalone/CdrLabelStandalone.vue.mjs +70 -0
- package/dist/src/components/labelStandalone/styles/CdrLabelStandalone.module.scss.mjs +17 -0
- package/dist/src/components/labelWrapper/CdrLabelWrapper.vue.mjs +44 -0
- package/dist/src/components/labelWrapper/styles/CdrLabelWrapper.module.scss.mjs +28 -0
- package/dist/src/components/link/CdrLink.vue.mjs +60 -0
- package/dist/src/components/link/styles/CdrLink.module.scss.mjs +8 -0
- package/dist/src/components/list/CdrList.vue.mjs +44 -0
- package/dist/src/components/list/styles/CdrList.module.scss.mjs +10 -0
- package/dist/src/components/modal/CdrModal.vue.mjs +214 -0
- package/dist/src/components/modal/onTransitionEnd.mjs +29 -0
- package/dist/src/components/modal/styles/CdrModal.module.scss.mjs +17 -0
- package/dist/src/components/pagination/CdrPagination.vue.mjs +199 -0
- package/dist/src/components/pagination/styles/CdrPagination.module.scss.mjs +58 -0
- package/dist/src/components/popover/CdrPopover.vue.mjs +130 -0
- package/dist/src/components/popover/styles/CdrPopover.module.scss.mjs +68 -0
- package/dist/src/components/popup/CdrPopup.vue.mjs +111 -0
- package/dist/src/components/popup/calculatePlacement.mjs +27 -0
- package/dist/src/components/popup/styles/CdrPopup.module.scss.mjs +19 -0
- package/dist/src/components/quote/CdrQuote.vue.mjs +56 -0
- package/dist/src/components/quote/styles/CdrQuote.module.scss.mjs +9 -0
- package/dist/src/components/radio/CdrRadio.vue.mjs +99 -0
- package/dist/src/components/radio/styles/CdrRadio.module.scss.mjs +30 -0
- package/dist/src/components/rating/CdrRating.vue.mjs +103 -0
- package/dist/src/components/rating/styles/CdrRating.module.scss.mjs +33 -0
- package/dist/src/components/select/CdrSelect.vue.mjs +198 -0
- package/dist/src/components/select/styles/CdrSelect.module.scss.mjs +47 -0
- package/dist/src/components/skeleton/CdrSkeleton.vue.mjs +32 -0
- package/dist/src/components/skeleton/CdrSkeletonBone.vue.mjs +38 -0
- package/dist/src/components/skeleton/styles/CdrSkeleton.module.scss.mjs +6 -0
- package/dist/src/components/skeleton/styles/CdrSkeletonBone.module.scss.mjs +13 -0
- package/dist/src/components/switch/CdrSwitch.vue.mjs +76 -0
- package/dist/src/components/switch/styles/CdrSwitch.module.scss.mjs +13 -0
- package/dist/src/components/table/CdrTable.vue.mjs +63 -0
- package/dist/src/components/table/styles/CdrTable.module.scss.mjs +18 -0
- package/dist/src/components/tabs/CdrTabPanel.vue.mjs +38 -0
- package/dist/src/components/tabs/CdrTabs.vue.mjs +168 -0
- package/dist/src/components/tabs/styles/CdrTabPanel.module.scss.mjs +10 -0
- package/dist/src/components/tabs/styles/CdrTabs.module.scss.mjs +33 -0
- package/dist/src/components/text/CdrText.vue.mjs +31 -0
- package/dist/src/components/text/styles/CdrText.module.scss.mjs +6 -0
- package/dist/src/components/toast/CdrToast.vue.mjs +110 -0
- package/dist/src/components/toast/styles/CdrToast.module.scss.mjs +62 -0
- package/dist/src/components/toggleButton/CdrToggleButton.vue.mjs +38 -0
- package/dist/src/components/toggleButton/CdrToggleGroup.vue.mjs +75 -0
- package/dist/src/components/toggleButton/styles/CdrToggleButton.module.scss.mjs +7 -0
- package/dist/src/components/toggleButton/styles/CdrToggleGroup.module.scss.mjs +10 -0
- package/dist/src/components/tooltip/CdrTooltip.vue.mjs +94 -0
- package/dist/src/components/tooltip/styles/CdrTooltip.module.scss.mjs +21 -0
- package/dist/src/lib.mjs +446 -0
- package/dist/src/mixins/breakpoints.mjs +8 -0
- package/dist/src/props/background.mjs +9 -0
- package/dist/src/props/size.mjs +9 -0
- package/dist/src/utils/buildClass.mjs +6 -0
- package/dist/src/utils/mapClasses.mjs +6 -0
- package/dist/src/utils/propValidator.mjs +9 -0
- package/dist/src/utils/uid.mjs +6 -0
- package/dist/style/cdr-accordion-group.css +1 -1
- package/dist/style/cdr-accordion.css +1 -1
- package/dist/style/cdr-banner.css +1 -1
- package/dist/style/cdr-breadcrumb.css +1 -1
- package/dist/style/cdr-button.css +1 -1
- package/dist/style/cdr-caption.css +1 -1
- package/dist/style/cdr-card.css +1 -1
- package/dist/style/cdr-checkbox.css +1 -1
- package/dist/style/cdr-chip-group.css +1 -1
- package/dist/style/cdr-chip.css +1 -1
- package/dist/style/cdr-container.css +1 -1
- package/dist/style/cdr-form-error.css +1 -1
- package/dist/style/cdr-form-group.css +1 -1
- package/dist/style/cdr-grid.css +1 -1
- package/dist/style/cdr-icon.css +1 -1
- package/dist/style/cdr-img.css +1 -1
- package/dist/style/cdr-input.css +1 -1
- package/dist/style/cdr-label-standalone.css +1 -1
- package/dist/style/cdr-label-wrapper.css +1 -1
- package/dist/style/cdr-link.css +1 -1
- package/dist/style/cdr-list.css +1 -1
- package/dist/style/cdr-modal.css +1 -1
- package/dist/style/cdr-pagination.css +1 -1
- package/dist/style/cdr-popover.css +1 -1
- package/dist/style/cdr-popup.css +1 -1
- package/dist/style/cdr-quote.css +1 -1
- package/dist/style/cdr-radio.css +1 -1
- package/dist/style/cdr-rating.css +1 -1
- package/dist/style/cdr-select.css +1 -1
- package/dist/style/cdr-skeleton-bone.css +1 -1
- package/dist/style/cdr-skeleton.css +1 -1
- package/dist/style/cdr-switch.css +1 -1
- package/dist/style/cdr-tab-panel.css +1 -1
- package/dist/style/cdr-table.css +1 -1
- package/dist/style/cdr-tabs.css +1 -1
- package/dist/style/cdr-text.css +1 -1
- package/dist/style/cdr-toast.css +1 -1
- package/dist/style/cdr-toggle-button.css +1 -1
- package/dist/style/cdr-toggle-group.css +1 -1
- package/dist/style/cdr-tooltip.css +1 -1
- package/dist/style.css +1 -1
- package/package.json +7 -15
- package/dist/cedar.mjs +0 -10590
- package/dist/cedar.umd.js +0 -5
- package/dist/component-docgen.json +0 -3178
- package/dist/icon-component-docgen.json +0 -3536
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { defineComponent as h, useCssModule as p, computed as m, resolveComponent as u, openBlock as C, createElementBlock as y, normalizeClass as s, createElementVNode as n, renderSlot as _, createVNode as f } from "vue";
|
|
2
|
+
import b from "../../utils/propValidator.mjs";
|
|
3
|
+
import { buildBooleanClass as w } from "../../utils/buildClass.mjs";
|
|
4
|
+
import k from "../icon/comps/check-sm.vue.mjs";
|
|
5
|
+
import $ from "../icon/comps/x-sm.vue.mjs";
|
|
6
|
+
import v from "../../utils/mapClasses.mjs";
|
|
7
|
+
import S from "../../utils/uid.mjs";
|
|
8
|
+
import V from "./styles/CdrSwitch.module.scss.mjs";
|
|
9
|
+
import z from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
10
|
+
const B = h({
|
|
11
|
+
name: "CdrSwitch",
|
|
12
|
+
components: {
|
|
13
|
+
IconCheckSm: k,
|
|
14
|
+
IconXSm: $
|
|
15
|
+
},
|
|
16
|
+
props: {
|
|
17
|
+
id: {
|
|
18
|
+
type: String
|
|
19
|
+
},
|
|
20
|
+
size: {
|
|
21
|
+
type: String,
|
|
22
|
+
default: "medium",
|
|
23
|
+
validator: (e) => b(e, ["medium", "large"])
|
|
24
|
+
},
|
|
25
|
+
fullWidth: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
default: !1
|
|
28
|
+
},
|
|
29
|
+
modelValue: {
|
|
30
|
+
type: Boolean,
|
|
31
|
+
required: !0
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
emits: ["update:modelValue"],
|
|
35
|
+
setup(e, l) {
|
|
36
|
+
const d = p(), a = e.id ? e.id : S(), c = (r) => {
|
|
37
|
+
l.emit("update:modelValue", !r);
|
|
38
|
+
}, o = "cdr-switch", t = m(() => e.size ? `cdr-switch--${e.size}` : "cdr-switch--medium"), i = m(() => e.fullWidth && w(o, e.fullWidth, "full-width"));
|
|
39
|
+
return {
|
|
40
|
+
style: d,
|
|
41
|
+
mapClasses: v,
|
|
42
|
+
uniqueId: a,
|
|
43
|
+
onClick: c,
|
|
44
|
+
baseClass: o,
|
|
45
|
+
sizeClass: t,
|
|
46
|
+
fullWidthClass: i
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
}), I = ["id"], W = ["aria-checked", "aria-labelledby"];
|
|
50
|
+
function g(e, l, d, a, c, o) {
|
|
51
|
+
const t = u("icon-check-sm"), i = u("icon-x-sm");
|
|
52
|
+
return C(), y("div", {
|
|
53
|
+
class: s(e.mapClasses(e.style, e.baseClass, e.fullWidthClass, e.sizeClass))
|
|
54
|
+
}, [n("div", {
|
|
55
|
+
id: e.uniqueId,
|
|
56
|
+
class: s(e.style["cdr-switch__label"])
|
|
57
|
+
}, [_(e.$slots, "default")], 10, I), n("button", {
|
|
58
|
+
onClick: l[0] || (l[0] = (r) => e.onClick(e.modelValue)),
|
|
59
|
+
class: s(e.style["cdr-switch__button"]),
|
|
60
|
+
role: "switch",
|
|
61
|
+
"aria-checked": e.modelValue,
|
|
62
|
+
"aria-labelledby": e.uniqueId
|
|
63
|
+
}, [f(t, {
|
|
64
|
+
class: s(e.style["cdr-switch__button-icon"])
|
|
65
|
+
}, null, 8, ["class"]), f(i, {
|
|
66
|
+
class: s(e.style["cdr-switch__button-icon"])
|
|
67
|
+
}, null, 8, ["class"]), n("div", {
|
|
68
|
+
class: s(e.style["cdr-switch__handle"])
|
|
69
|
+
}, null, 2)], 10, W)], 2);
|
|
70
|
+
}
|
|
71
|
+
const q = {
|
|
72
|
+
$style: V
|
|
73
|
+
}, F = /* @__PURE__ */ z(B, [["render", g], ["__cssModules", q]]);
|
|
74
|
+
export {
|
|
75
|
+
F as default
|
|
76
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const c = {
|
|
2
|
+
"cdr-switch": "cdr-switch_13-4-0",
|
|
3
|
+
"cdr-switch__button": "cdr-switch__button_13-4-0",
|
|
4
|
+
"cdr-switch__button-icon": "cdr-switch__button-icon_13-4-0",
|
|
5
|
+
"cdr-switch__handle": "cdr-switch__handle_13-4-0",
|
|
6
|
+
"cdr-switch__label": "cdr-switch__label_13-4-0",
|
|
7
|
+
"cdr-switch--full-width": "cdr-switch--full-width_13-4-0",
|
|
8
|
+
"cdr-switch--large": "cdr-switch--large_13-4-0",
|
|
9
|
+
"cdr-switch--medium": "cdr-switch--medium_13-4-0"
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
c as default
|
|
13
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { defineComponent as u, computed as l, useCssModule as f, openBlock as m, createElementBlock as p, normalizeClass as C, createElementVNode as c, mergeProps as $, renderSlot as b } from "vue";
|
|
2
|
+
import h from "../../utils/mapClasses.mjs";
|
|
3
|
+
import { buildBooleanClass as v } from "../../utils/buildClass.mjs";
|
|
4
|
+
import y from "../../utils/propValidator.mjs";
|
|
5
|
+
import B from "./styles/CdrTable.module.scss.mjs";
|
|
6
|
+
import z from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
7
|
+
const W = u({
|
|
8
|
+
name: "CdrTable",
|
|
9
|
+
props: {
|
|
10
|
+
striped: {
|
|
11
|
+
type: Boolean,
|
|
12
|
+
default: !1
|
|
13
|
+
},
|
|
14
|
+
border: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
default: !0
|
|
17
|
+
},
|
|
18
|
+
fullWidth: {
|
|
19
|
+
type: [Boolean, String],
|
|
20
|
+
default: !0
|
|
21
|
+
},
|
|
22
|
+
responsive: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: !0
|
|
25
|
+
},
|
|
26
|
+
hover: {
|
|
27
|
+
type: Boolean,
|
|
28
|
+
default: !1
|
|
29
|
+
},
|
|
30
|
+
size: {
|
|
31
|
+
type: String,
|
|
32
|
+
default: "medium",
|
|
33
|
+
validator: (e) => y(e, ["small", "medium", "large"])
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
setup(e) {
|
|
37
|
+
const s = "cdr-table", t = l(() => e.size && `${s}--${e.size}`), o = l(() => e.striped && `${s}--striped`), r = l(() => e.hover && `${s}--hover`), a = l(() => e.border && !e.striped && `${s}--border`), d = l(() => e.fullWidth && v(s, e.fullWidth, "full-width")), i = l(() => e.responsive && `${s}--responsive`), n = f();
|
|
38
|
+
return {
|
|
39
|
+
mapClasses: h,
|
|
40
|
+
baseClass: s,
|
|
41
|
+
sizeClass: t,
|
|
42
|
+
stripedClass: o,
|
|
43
|
+
hoverClass: r,
|
|
44
|
+
borderClass: a,
|
|
45
|
+
fullWidthClass: d,
|
|
46
|
+
wrapperClass: i,
|
|
47
|
+
style: n
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
function g(e, s, t, o, r, a) {
|
|
52
|
+
return m(), p("div", {
|
|
53
|
+
class: C(e.style[e.wrapperClass])
|
|
54
|
+
}, [c("table", $(e.$attrs, {
|
|
55
|
+
class: e.mapClasses(e.style, e.baseClass, e.sizeClass, e.stripedClass, e.hoverClass, e.borderClass, e.fullWidthClass)
|
|
56
|
+
}), [b(e.$slots, "default")], 16)], 2);
|
|
57
|
+
}
|
|
58
|
+
const w = {
|
|
59
|
+
$style: B
|
|
60
|
+
}, N = /* @__PURE__ */ z(W, [["render", g], ["__cssModules", w]]);
|
|
61
|
+
export {
|
|
62
|
+
N as default
|
|
63
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const l = {
|
|
2
|
+
"cdr-table": "cdr-table_13-4-0",
|
|
3
|
+
"cdr-table--small": "cdr-table--small_13-4-0",
|
|
4
|
+
"cdr-table--medium": "cdr-table--medium_13-4-0",
|
|
5
|
+
"cdr-table--large": "cdr-table--large_13-4-0",
|
|
6
|
+
"cdr-table--striped": "cdr-table--striped_13-4-0",
|
|
7
|
+
"cdr-table--border": "cdr-table--border_13-4-0",
|
|
8
|
+
"cdr-table--full-width": "cdr-table--full-width_13-4-0",
|
|
9
|
+
"cdr-table--responsive": "cdr-table--responsive_13-4-0",
|
|
10
|
+
"cdr-table--hover": "cdr-table--hover_13-4-0",
|
|
11
|
+
"cdr-table--full-width@xs": "cdr-table--full-width@xs_13-4-0",
|
|
12
|
+
"cdr-table--full-width@sm": "cdr-table--full-width@sm_13-4-0",
|
|
13
|
+
"cdr-table--full-width@md": "cdr-table--full-width@md_13-4-0",
|
|
14
|
+
"cdr-table--full-width@lg": "cdr-table--full-width@lg_13-4-0"
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
l as default
|
|
18
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { defineComponent as r, inject as c, computed as i, useCssModule as d, watch as m, withDirectives as p, openBlock as u, createElementBlock as b, normalizeClass as f, renderSlot as h, vShow as v } from "vue";
|
|
2
|
+
import { kebabCase as $ } from "lodash-es";
|
|
3
|
+
import y from "./styles/CdrTabPanel.module.scss.mjs";
|
|
4
|
+
import C from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
5
|
+
const _ = r({
|
|
6
|
+
name: "CdrTabPanel",
|
|
7
|
+
props: {
|
|
8
|
+
name: String
|
|
9
|
+
},
|
|
10
|
+
emits: ["tab-change"],
|
|
11
|
+
setup(e, s) {
|
|
12
|
+
const a = c("selectedTabName"), t = i(() => e.name === (a == null ? void 0 : a.value)), n = i(() => `${$(e.name)}-panel`), o = d();
|
|
13
|
+
return m(t, (l) => {
|
|
14
|
+
s.emit("tab-change", l, n.value);
|
|
15
|
+
}), {
|
|
16
|
+
selectedTabName: a,
|
|
17
|
+
isActive: t,
|
|
18
|
+
panelId: n,
|
|
19
|
+
style: o
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
}), g = ["aria-hidden", "id", "aria-labelledby"];
|
|
23
|
+
function k(e, s, a, t, n, o) {
|
|
24
|
+
return p((u(), b("section", {
|
|
25
|
+
tabindex: "0",
|
|
26
|
+
"aria-hidden": !e.isActive,
|
|
27
|
+
role: "tabpanel",
|
|
28
|
+
class: f(e.style["cdr-tab-panel"]),
|
|
29
|
+
id: e.panelId,
|
|
30
|
+
"aria-labelledby": e.name
|
|
31
|
+
}, [h(e.$slots, "default")], 10, g)), [[v, e.isActive]]);
|
|
32
|
+
}
|
|
33
|
+
const w = {
|
|
34
|
+
$style: y
|
|
35
|
+
}, I = /* @__PURE__ */ C(_, [["render", k], ["__cssModules", w]]);
|
|
36
|
+
export {
|
|
37
|
+
I as default
|
|
38
|
+
};
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { defineComponent as V, ref as r, provide as j, computed as h, onMounted as q, useCssModule as G, openBlock as L, createElementBlock as N, normalizeClass as c, normalizeStyle as C, createElementVNode as b, Fragment as J, renderList as Q, withModifiers as Y, withKeys as W, toDisplayString as Z, renderSlot as x, nextTick as ee } from "vue";
|
|
2
|
+
import { debounce as A } from "lodash-es";
|
|
3
|
+
import { CdrColorBackgroundPrimary as te, CdrSpaceHalfX as ae, CdrSpaceOneX as le } from "../../../node_modules/@rei/cdr-tokens/dist/js/cdr-tokens.mjs";
|
|
4
|
+
import se from "../../utils/mapClasses.mjs";
|
|
5
|
+
import { modifyClassName as B } from "../../utils/buildClass.mjs";
|
|
6
|
+
import re from "./styles/CdrTabs.module.scss.mjs";
|
|
7
|
+
import ne from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
8
|
+
const ie = V({
|
|
9
|
+
name: "CdrTabs",
|
|
10
|
+
props: {
|
|
11
|
+
height: {
|
|
12
|
+
type: String,
|
|
13
|
+
default: "240px"
|
|
14
|
+
},
|
|
15
|
+
activeTab: {
|
|
16
|
+
type: Number,
|
|
17
|
+
default: 0
|
|
18
|
+
},
|
|
19
|
+
modifier: String,
|
|
20
|
+
size: String,
|
|
21
|
+
backgroundColor: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: te
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
setup(e, d) {
|
|
27
|
+
var R;
|
|
28
|
+
const T = (R = d.slots.default()[0].children) != null && R.length ? d.slots.default()[0].children : d.slots.default(), z = "cdr-tabs", p = r(T.map((a) => ({
|
|
29
|
+
name: a.props.name,
|
|
30
|
+
disabled: a.props.disabled,
|
|
31
|
+
id: a.props["aria-labelledby"]
|
|
32
|
+
}))), m = r(null), l = r(null), n = r(!1), s = r(0), o = r([]), v = r(null), S = r(null), k = r(!1), w = r(!1), i = r(0), f = r(0);
|
|
33
|
+
j("selectedTabName", m);
|
|
34
|
+
const X = h(() => e.modifier && B("cdr-tabs", e.modifier)), O = h(() => e.size && B("cdr-tabs", e.size)), P = h(() => ({
|
|
35
|
+
transform: `translateX(${i.value}px)`,
|
|
36
|
+
width: `${f.value}px`
|
|
37
|
+
})), F = h(() => ({
|
|
38
|
+
background: `linear-gradient(to left, rgba(255, 255, 255, 0), ${e.backgroundColor})`
|
|
39
|
+
})), _ = h(() => ({
|
|
40
|
+
background: `linear-gradient(to right, rgba(255, 255, 255, 0),
|
|
41
|
+
${e.backgroundColor})`
|
|
42
|
+
})), H = (a, t) => l.value === a && !t.disabled, y = () => {
|
|
43
|
+
let a = 0;
|
|
44
|
+
if (S.value && (a = S.value.offsetWidth), n.value = s.value > a, n.value) {
|
|
45
|
+
const t = v.value.scrollLeft;
|
|
46
|
+
k.value = t > 1, w.value = t + 1 < s.value - a;
|
|
47
|
+
} else
|
|
48
|
+
k.value = !1, w.value = !1;
|
|
49
|
+
}, E = () => {
|
|
50
|
+
let a = [];
|
|
51
|
+
v.value && (a = Array.from(v.value.children));
|
|
52
|
+
let t = 0;
|
|
53
|
+
return a.forEach((u, $) => {
|
|
54
|
+
$ > 0 && (t += e.size === "small" ? Number(ae) : Number(le)), t += u.offsetWidth || 0;
|
|
55
|
+
}), t;
|
|
56
|
+
}, g = () => {
|
|
57
|
+
if (o.value.length > 0) {
|
|
58
|
+
const t = o.value[l.value].getBoundingClientRect(), u = v.value.getBoundingClientRect(), $ = t.x - u.x;
|
|
59
|
+
i.value = $ - v.value.scrollLeft, f.value = t.width, i.value + f.value >= u.width ? (f.value = Math.max(0, u.width - i.value), i.value = Math.min(i.value, u.width)) : i.value < 0 && (f.value = Math.max(0, f.value + i.value), i.value = 0);
|
|
60
|
+
}
|
|
61
|
+
}, I = async (a) => {
|
|
62
|
+
const t = o.value[a];
|
|
63
|
+
m.value = p.value[a].name, l.value = a, await ee(), t.focus(), g();
|
|
64
|
+
}, K = () => {
|
|
65
|
+
if (l.value === o.value.length - 1)
|
|
66
|
+
return;
|
|
67
|
+
let t = l.value + 1;
|
|
68
|
+
o.value[t].disabled && (t += 1), t <= o.value.length - 1 && I(t);
|
|
69
|
+
}, D = () => {
|
|
70
|
+
if (l.value <= 0)
|
|
71
|
+
return;
|
|
72
|
+
let t = l.value - 1;
|
|
73
|
+
o.value[t].disabled && (t -= 1), t >= 0 && I(t);
|
|
74
|
+
}, M = () => {
|
|
75
|
+
o.value.forEach((a, t) => {
|
|
76
|
+
!a.disabled && l.value === null && (l.value = t, m.value = p.value[t].name);
|
|
77
|
+
});
|
|
78
|
+
};
|
|
79
|
+
q(() => {
|
|
80
|
+
M(), s.value = E(), y(), setTimeout(() => {
|
|
81
|
+
g();
|
|
82
|
+
}, 250), window.addEventListener("resize", A(() => {
|
|
83
|
+
s.value = E(), y(), g();
|
|
84
|
+
}, 250)), v.value.addEventListener("scroll", A(() => {
|
|
85
|
+
y(), g();
|
|
86
|
+
}, 50));
|
|
87
|
+
});
|
|
88
|
+
const U = G();
|
|
89
|
+
return {
|
|
90
|
+
slottedTabs: T,
|
|
91
|
+
baseClass: z,
|
|
92
|
+
tabs: p,
|
|
93
|
+
selectedTabName: m,
|
|
94
|
+
selectedIndex: l,
|
|
95
|
+
headerOverflow: n,
|
|
96
|
+
headerWidth: s,
|
|
97
|
+
tabElements: o,
|
|
98
|
+
tablist: v,
|
|
99
|
+
containerEl: S,
|
|
100
|
+
overflowLeft: k,
|
|
101
|
+
overflowRight: w,
|
|
102
|
+
underlineOffsetX: i,
|
|
103
|
+
underlineWidth: f,
|
|
104
|
+
mapClasses: se,
|
|
105
|
+
modifierClass: X,
|
|
106
|
+
sizeClass: O,
|
|
107
|
+
underlineStyle: P,
|
|
108
|
+
gradientLeftStyle: F,
|
|
109
|
+
gradientRightStyle: _,
|
|
110
|
+
checkIfActive: H,
|
|
111
|
+
calculateOverflow: y,
|
|
112
|
+
getHeaderWidth: E,
|
|
113
|
+
updateUnderline: g,
|
|
114
|
+
selectTabNext: K,
|
|
115
|
+
selectTabPrev: D,
|
|
116
|
+
selectTab: I,
|
|
117
|
+
setInitialTabStates: M,
|
|
118
|
+
style: U
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
}), oe = ["id", "disabled", "aria-selected", "tabIndex", "onClick"];
|
|
122
|
+
function de(e, d, T, z, p, m) {
|
|
123
|
+
return L(), N("div", {
|
|
124
|
+
class: c(e.mapClasses(e.style, e.baseClass, e.modifierClass, e.sizeClass)),
|
|
125
|
+
ref: "containerEl",
|
|
126
|
+
style: C({
|
|
127
|
+
height: e.height
|
|
128
|
+
})
|
|
129
|
+
}, [b("div", {
|
|
130
|
+
class: c(e.style["cdr-tabs__gradient-container"])
|
|
131
|
+
}, [b("div", {
|
|
132
|
+
class: c(e.mapClasses(e.style, "cdr-tabs__gradient", "cdr-tabs__gradient--left", e.overflowLeft ? "cdr-tabs__gradient--active" : "")),
|
|
133
|
+
style: C(e.gradientLeftStyle)
|
|
134
|
+
}, null, 6), b("ul", {
|
|
135
|
+
class: c(e.style["cdr-tabs__header-container"]),
|
|
136
|
+
role: "tablist",
|
|
137
|
+
ref: "tablist"
|
|
138
|
+
}, [(L(!0), N(J, null, Q(e.tabs, (l, n) => (L(), N("li", {
|
|
139
|
+
key: `${l.name}-${n}`,
|
|
140
|
+
role: "presentation",
|
|
141
|
+
class: c(e.style["cdr-tabs__header"])
|
|
142
|
+
}, [b("button", {
|
|
143
|
+
ref_for: !0,
|
|
144
|
+
ref: (s) => {
|
|
145
|
+
e.tabElements[n] = s;
|
|
146
|
+
},
|
|
147
|
+
id: l.id,
|
|
148
|
+
disabled: l.disabled,
|
|
149
|
+
"aria-selected": e.checkIfActive(n, l),
|
|
150
|
+
tabIndex: e.checkIfActive(n, l) ? 0 : -1,
|
|
151
|
+
class: c(e.mapClasses(e.style, e.checkIfActive(n, l) ? "cdr-tabs__header-item-active" : "", "cdr-tabs__header-item", l.disabled ? "cdr-tabs__header-item--disabled" : "")),
|
|
152
|
+
role: "tab",
|
|
153
|
+
onClick: Y((s) => e.selectTab(n), ["prevent"]),
|
|
154
|
+
onKeyup: [d[0] || (d[0] = W((...s) => e.selectTabNext && e.selectTabNext(...s), ["right"])), d[1] || (d[1] = W((...s) => e.selectTabPrev && e.selectTabPrev(...s), ["left"]))]
|
|
155
|
+
}, Z(l.name), 43, oe)], 2))), 128))], 2), b("div", {
|
|
156
|
+
class: c(e.mapClasses(e.style, "cdr-tabs__gradient", "cdr-tabs__gradient--right", e.overflowRight ? "cdr-tabs__gradient--active" : "")),
|
|
157
|
+
style: C(e.gradientRightStyle)
|
|
158
|
+
}, null, 6), b("div", {
|
|
159
|
+
class: c(e.style["cdr-tabs__underline"]),
|
|
160
|
+
style: C(e.underlineStyle)
|
|
161
|
+
}, null, 6)], 2), x(e.$slots, "default")], 6);
|
|
162
|
+
}
|
|
163
|
+
const ue = {
|
|
164
|
+
$style: re
|
|
165
|
+
}, pe = /* @__PURE__ */ ne(ie, [["render", de], ["__cssModules", ue]]);
|
|
166
|
+
export {
|
|
167
|
+
pe as default
|
|
168
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
const t = {
|
|
2
|
+
"cdr-tab-panel": "cdr-tab-panel_13-4-0",
|
|
3
|
+
"cdr-tab-panel-enter-left": "cdr-tab-panel-enter-left_13-4-0",
|
|
4
|
+
"cdr-tab-panel-enter-right": "cdr-tab-panel-enter-right_13-4-0",
|
|
5
|
+
"cdr-tab-panel-exit-left": "cdr-tab-panel-exit-left_13-4-0",
|
|
6
|
+
"cdr-tab-panel-exit-right": "cdr-tab-panel-exit-right_13-4-0"
|
|
7
|
+
};
|
|
8
|
+
export {
|
|
9
|
+
t as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
const e = {
|
|
2
|
+
"cdr-tab-panel": "cdr-tab-panel_13-4-0",
|
|
3
|
+
"cdr-tab-panel-enter-left": "cdr-tab-panel-enter-left_13-4-0",
|
|
4
|
+
"cdr-tab-panel-enter-right": "cdr-tab-panel-enter-right_13-4-0",
|
|
5
|
+
"cdr-tab-panel-exit-left": "cdr-tab-panel-exit-left_13-4-0",
|
|
6
|
+
"cdr-tab-panel-exit-right": "cdr-tab-panel-exit-right_13-4-0",
|
|
7
|
+
"cdr-tabs": "cdr-tabs_13-4-0",
|
|
8
|
+
"cdr-tabs__header-container": "cdr-tabs__header-container_13-4-0",
|
|
9
|
+
"cdr-tabs__header": "cdr-tabs__header_13-4-0",
|
|
10
|
+
"cdr-tabs__header-item": "cdr-tabs__header-item_13-4-0",
|
|
11
|
+
"cdr-tabs__header-item-active": "cdr-tabs__header-item-active_13-4-0",
|
|
12
|
+
"cdr-tabs__header-item--disabled": "cdr-tabs__header-item--disabled_13-4-0",
|
|
13
|
+
"cdr-tabs__gradient-container": "cdr-tabs__gradient-container_13-4-0",
|
|
14
|
+
"cdr-tabs__gradient": "cdr-tabs__gradient_13-4-0",
|
|
15
|
+
"cdr-tabs__gradient--left": "cdr-tabs__gradient--left_13-4-0",
|
|
16
|
+
"cdr-tabs__gradient--right": "cdr-tabs__gradient--right_13-4-0",
|
|
17
|
+
"cdr-tabs__gradient--active": "cdr-tabs__gradient--active_13-4-0",
|
|
18
|
+
"cdr-tabs__underline": "cdr-tabs__underline_13-4-0",
|
|
19
|
+
"cdr-tabs__content-container": "cdr-tabs__content-container_13-4-0",
|
|
20
|
+
"fade-enter-active": "fade-enter-active_13-4-0",
|
|
21
|
+
"fade-leave-active": "fade-leave-active_13-4-0",
|
|
22
|
+
"fade-enter": "fade-enter_13-4-0",
|
|
23
|
+
"fade-leave-to": "fade-leave-to_13-4-0",
|
|
24
|
+
"cdr-tabs--compact": "cdr-tabs--compact_13-4-0",
|
|
25
|
+
"cdr-tabs__header-item-label": "cdr-tabs__header-item-label_13-4-0",
|
|
26
|
+
"cdr-tabs--small": "cdr-tabs--small_13-4-0",
|
|
27
|
+
"cdr-tabs--no-border": "cdr-tabs--no-border_13-4-0",
|
|
28
|
+
"cdr-tabs--full-width": "cdr-tabs--full-width_13-4-0",
|
|
29
|
+
"cdr-tabs--centered": "cdr-tabs--centered_13-4-0"
|
|
30
|
+
};
|
|
31
|
+
export {
|
|
32
|
+
e as default
|
|
33
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { defineComponent as t, useCssModule as s, openBlock as o, createBlock as r, resolveDynamicComponent as n, normalizeClass as l, withCtx as a, renderSlot as p } from "vue";
|
|
2
|
+
import c from "./styles/CdrText.module.scss.mjs";
|
|
3
|
+
import d from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const u = t({
|
|
5
|
+
name: "CdrText",
|
|
6
|
+
props: {
|
|
7
|
+
tag: {
|
|
8
|
+
type: String,
|
|
9
|
+
default: "p"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
setup() {
|
|
13
|
+
return {
|
|
14
|
+
style: s()
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
function f(e, i, _, C, y, $) {
|
|
19
|
+
return o(), r(n(e.tag), {
|
|
20
|
+
class: l(e.style["cdr-text"])
|
|
21
|
+
}, {
|
|
22
|
+
default: a(() => [p(e.$slots, "default")]),
|
|
23
|
+
_: 3
|
|
24
|
+
}, 8, ["class"]);
|
|
25
|
+
}
|
|
26
|
+
const m = {
|
|
27
|
+
$style: c
|
|
28
|
+
}, h = /* @__PURE__ */ d(u, [["render", f], ["__cssModules", m]]);
|
|
29
|
+
export {
|
|
30
|
+
h as default
|
|
31
|
+
};
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { defineComponent as D, useCssModule as L, ref as _, computed as N, watch as g, onUpdated as w, resolveComponent as C, openBlock as u, createBlock as I, Transition as M, withCtx as $, createElementBlock as E, normalizeClass as n, createElementVNode as T, renderSlot as f, createCommentVNode as b, createVNode as h } from "vue";
|
|
2
|
+
import S from "../../utils/propValidator.mjs";
|
|
3
|
+
import V from "../icon/comps/x-sm.vue.mjs";
|
|
4
|
+
import z from "../button/CdrButton.vue.mjs";
|
|
5
|
+
import H from "./styles/CdrToast.module.scss.mjs";
|
|
6
|
+
import P from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
7
|
+
const U = D({
|
|
8
|
+
name: "CdrToast",
|
|
9
|
+
components: {
|
|
10
|
+
IconXSm: V,
|
|
11
|
+
CdrButton: z
|
|
12
|
+
},
|
|
13
|
+
props: {
|
|
14
|
+
type: {
|
|
15
|
+
type: String,
|
|
16
|
+
validator: (e) => S(e, ["info", "warning", "success", "error", "default"]),
|
|
17
|
+
default: "default"
|
|
18
|
+
},
|
|
19
|
+
open: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
default: !1
|
|
22
|
+
},
|
|
23
|
+
autoDismiss: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: !0
|
|
26
|
+
},
|
|
27
|
+
dismissDelay: {
|
|
28
|
+
type: Number,
|
|
29
|
+
default: 5e3
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
emits: ["open", "closed"],
|
|
33
|
+
setup(e, a) {
|
|
34
|
+
const d = "cdr-toast", v = L(), p = a.slots["icon-left"], l = _(null), r = _(null);
|
|
35
|
+
let s, t;
|
|
36
|
+
const k = N(() => e.type && `${d}--${e.type}`), i = (o) => {
|
|
37
|
+
s ? clearTimeout(s) : a.emit("open", o), l.value = !0, e.autoDismiss && !o && c();
|
|
38
|
+
}, B = (o) => {
|
|
39
|
+
m(), l.value = !1, a.emit("closed", o);
|
|
40
|
+
}, c = (o) => {
|
|
41
|
+
s = setTimeout(() => {
|
|
42
|
+
m(), l.value = !1, a.emit("closed", o);
|
|
43
|
+
}, e.dismissDelay);
|
|
44
|
+
}, y = () => {
|
|
45
|
+
t = r.value, t && (t.addEventListener("mouseover", i), t.addEventListener("mouseleave", c));
|
|
46
|
+
}, m = () => {
|
|
47
|
+
t && (t.removeEventListener("mouseover", i), t.removeEventListener("mouseleave", c));
|
|
48
|
+
};
|
|
49
|
+
return g(() => e.open, () => {
|
|
50
|
+
e.open && i();
|
|
51
|
+
}), w(() => {
|
|
52
|
+
e.autoDismiss && y();
|
|
53
|
+
}), {
|
|
54
|
+
baseClass: d,
|
|
55
|
+
style: v,
|
|
56
|
+
hasIconLeft: p,
|
|
57
|
+
opened: l,
|
|
58
|
+
toastEl: r,
|
|
59
|
+
timeout: s,
|
|
60
|
+
toastElement: t,
|
|
61
|
+
typeClass: k,
|
|
62
|
+
openToast: i,
|
|
63
|
+
closeToast: B,
|
|
64
|
+
closeToastWithDelay: c,
|
|
65
|
+
addHandlers: y,
|
|
66
|
+
removeHandlers: m
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
function W(e, a, d, v, p, l) {
|
|
71
|
+
const r = C("icon-x-sm"), s = C("cdr-button");
|
|
72
|
+
return u(), I(M, {
|
|
73
|
+
"enter-from-class": e.style["cdr-toast__transition--toast-enter-from"],
|
|
74
|
+
"enter-active-class": e.style["cdr-toast__transition--toast-enter-active"],
|
|
75
|
+
"leave-to-class": e.style["cdr-toast__transition--toast-leave-to"],
|
|
76
|
+
"leave-active-class": e.style["cdr-toast__transition--toast-leave-active"]
|
|
77
|
+
}, {
|
|
78
|
+
default: $(() => [e.opened ? (u(), E("div", {
|
|
79
|
+
key: 0,
|
|
80
|
+
class: n([e.style[e.baseClass], e.style[e.typeClass]]),
|
|
81
|
+
role: "status",
|
|
82
|
+
ref: "toastEl"
|
|
83
|
+
}, [T("div", {
|
|
84
|
+
class: n([e.style["cdr-toast__main"]])
|
|
85
|
+
}, [e.hasIconLeft ? (u(), E("div", {
|
|
86
|
+
key: 0,
|
|
87
|
+
class: n([e.style["cdr-toast__icon-left"]])
|
|
88
|
+
}, [f(e.$slots, "icon-left")], 2)) : b("", !0), T("span", {
|
|
89
|
+
class: n([e.style["cdr-toast__message"]])
|
|
90
|
+
}, [f(e.$slots, "default")], 2), h(s, {
|
|
91
|
+
class: n([e.style["cdr-toast__close-button"]]),
|
|
92
|
+
"icon-only": "",
|
|
93
|
+
onClick: e.closeToast,
|
|
94
|
+
"aria-label": "Close",
|
|
95
|
+
size: "small"
|
|
96
|
+
}, {
|
|
97
|
+
default: $(() => [f(e.$slots, "icon", {}, () => [h(r, {
|
|
98
|
+
"inherit-color": ""
|
|
99
|
+
})])]),
|
|
100
|
+
_: 3
|
|
101
|
+
}, 8, ["class", "onClick"])], 2)], 2)) : b("", !0)]),
|
|
102
|
+
_: 3
|
|
103
|
+
}, 8, ["enter-from-class", "enter-active-class", "leave-to-class", "leave-active-class"]);
|
|
104
|
+
}
|
|
105
|
+
const X = {
|
|
106
|
+
$style: H
|
|
107
|
+
}, K = /* @__PURE__ */ P(U, [["render", W], ["__cssModules", X]]);
|
|
108
|
+
export {
|
|
109
|
+
K as default
|
|
110
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
const t = {
|
|
2
|
+
"cdr-button": "cdr-button_13-4-0",
|
|
3
|
+
"cdr-button--has-icon-left": "cdr-button--has-icon-left_13-4-0",
|
|
4
|
+
"cdr-button--has-icon-right": "cdr-button--has-icon-right_13-4-0",
|
|
5
|
+
"cdr-button--primary": "cdr-button--primary_13-4-0",
|
|
6
|
+
"cdr-button--secondary": "cdr-button--secondary_13-4-0",
|
|
7
|
+
"cdr-button--dark": "cdr-button--dark_13-4-0",
|
|
8
|
+
"cdr-button--sale": "cdr-button--sale_13-4-0",
|
|
9
|
+
"cdr-button--link": "cdr-button--link_13-4-0",
|
|
10
|
+
"cdr-button--large": "cdr-button--large_13-4-0",
|
|
11
|
+
"cdr-button--medium": "cdr-button--medium_13-4-0",
|
|
12
|
+
"cdr-button--small": "cdr-button--small_13-4-0",
|
|
13
|
+
"cdr-button--icon-only": "cdr-button--icon-only_13-4-0",
|
|
14
|
+
"cdr-button--icon-only-large": "cdr-button--icon-only-large_13-4-0",
|
|
15
|
+
"cdr-button--with-background": "cdr-button--with-background_13-4-0",
|
|
16
|
+
"cdr-button--full-width": "cdr-button--full-width_13-4-0",
|
|
17
|
+
"cdr-button--small@xs": "cdr-button--small@xs_13-4-0",
|
|
18
|
+
"cdr-button--medium@xs": "cdr-button--medium@xs_13-4-0",
|
|
19
|
+
"cdr-button--large@xs": "cdr-button--large@xs_13-4-0",
|
|
20
|
+
"cdr-button--full-width@xs": "cdr-button--full-width@xs_13-4-0",
|
|
21
|
+
"cdr-button--small@sm": "cdr-button--small@sm_13-4-0",
|
|
22
|
+
"cdr-button--medium@sm": "cdr-button--medium@sm_13-4-0",
|
|
23
|
+
"cdr-button--large@sm": "cdr-button--large@sm_13-4-0",
|
|
24
|
+
"cdr-button--full-width@sm": "cdr-button--full-width@sm_13-4-0",
|
|
25
|
+
"cdr-button--small@md": "cdr-button--small@md_13-4-0",
|
|
26
|
+
"cdr-button--medium@md": "cdr-button--medium@md_13-4-0",
|
|
27
|
+
"cdr-button--large@md": "cdr-button--large@md_13-4-0",
|
|
28
|
+
"cdr-button--full-width@md": "cdr-button--full-width@md_13-4-0",
|
|
29
|
+
"cdr-button--small@lg": "cdr-button--small@lg_13-4-0",
|
|
30
|
+
"cdr-button--medium@lg": "cdr-button--medium@lg_13-4-0",
|
|
31
|
+
"cdr-button--large@lg": "cdr-button--large@lg_13-4-0",
|
|
32
|
+
"cdr-button--full-width@lg": "cdr-button--full-width@lg_13-4-0",
|
|
33
|
+
"cdr-icon": "cdr-icon_13-4-0",
|
|
34
|
+
"cdr-icon--small": "cdr-icon--small_13-4-0",
|
|
35
|
+
"cdr-icon--large": "cdr-icon--large_13-4-0",
|
|
36
|
+
"cdr-icon--small@xs": "cdr-icon--small@xs_13-4-0",
|
|
37
|
+
"cdr-icon--large@xs": "cdr-icon--large@xs_13-4-0",
|
|
38
|
+
"cdr-icon--small@sm": "cdr-icon--small@sm_13-4-0",
|
|
39
|
+
"cdr-icon--large@sm": "cdr-icon--large@sm_13-4-0",
|
|
40
|
+
"cdr-icon--small@md": "cdr-icon--small@md_13-4-0",
|
|
41
|
+
"cdr-icon--large@md": "cdr-icon--large@md_13-4-0",
|
|
42
|
+
"cdr-icon--small@lg": "cdr-icon--small@lg_13-4-0",
|
|
43
|
+
"cdr-icon--large@lg": "cdr-icon--large@lg_13-4-0",
|
|
44
|
+
"cdr-icon--inherit-color": "cdr-icon--inherit-color_13-4-0",
|
|
45
|
+
"cdr-toast": "cdr-toast_13-4-0",
|
|
46
|
+
"cdr-toast__transition--toast-enter-from": "cdr-toast__transition--toast-enter-from_13-4-0",
|
|
47
|
+
"cdr-toast__transition--toast-enter-active": "cdr-toast__transition--toast-enter-active_13-4-0",
|
|
48
|
+
"cdr-toast__transition--toast-leave-to": "cdr-toast__transition--toast-leave-to_13-4-0",
|
|
49
|
+
"cdr-toast__transition--toast-leave-active": "cdr-toast__transition--toast-leave-active_13-4-0",
|
|
50
|
+
"cdr-toast__main": "cdr-toast__main_13-4-0",
|
|
51
|
+
"cdr-toast__icon-left": "cdr-toast__icon-left_13-4-0",
|
|
52
|
+
"cdr-toast__message": "cdr-toast__message_13-4-0",
|
|
53
|
+
"cdr-toast__close-button": "cdr-toast__close-button_13-4-0",
|
|
54
|
+
"cdr-toast--default": "cdr-toast--default_13-4-0",
|
|
55
|
+
"cdr-toast--info": "cdr-toast--info_13-4-0",
|
|
56
|
+
"cdr-toast--warning": "cdr-toast--warning_13-4-0",
|
|
57
|
+
"cdr-toast--success": "cdr-toast--success_13-4-0",
|
|
58
|
+
"cdr-toast--error": "cdr-toast--error_13-4-0"
|
|
59
|
+
};
|
|
60
|
+
export {
|
|
61
|
+
t as default
|
|
62
|
+
};
|