@rei/cedar 13.4.0-alpha.1 → 13.4.1
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 +130 -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,219 @@
|
|
|
1
|
+
import { defineComponent as E, ref as L, computed as s, useCssModule as U, resolveComponent as I, openBlock as i, createBlock as c, normalizeClass as u, createSlots as D, withCtx as l, createElementVNode as $, withDirectives as g, createElementBlock as m, mergeProps as k, vModelText as R, vModelDynamic as j, renderSlot as a, createCommentVNode as C } from "vue";
|
|
2
|
+
import O from "../../utils/propValidator.mjs";
|
|
3
|
+
import G from "../labelStandalone/CdrLabelStandalone.vue.mjs";
|
|
4
|
+
import J from "../formError/CdrFormError.vue.mjs";
|
|
5
|
+
import K from "../../props/size.mjs";
|
|
6
|
+
import Q from "../../props/background.mjs";
|
|
7
|
+
import W from "../../utils/mapClasses.mjs";
|
|
8
|
+
import X from "../../utils/uid.mjs";
|
|
9
|
+
import Y from "./styles/CdrInput.module.scss.mjs";
|
|
10
|
+
import Z from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
11
|
+
const _ = E({
|
|
12
|
+
name: "CdrInput",
|
|
13
|
+
components: {
|
|
14
|
+
CdrLabelStandalone: G,
|
|
15
|
+
CdrFormError: J
|
|
16
|
+
},
|
|
17
|
+
inheritAttrs: !1,
|
|
18
|
+
customOptions: {},
|
|
19
|
+
props: {
|
|
20
|
+
/**
|
|
21
|
+
* `id` for the input that is mapped to the label `for` attribute.
|
|
22
|
+
*/
|
|
23
|
+
id: {
|
|
24
|
+
type: String
|
|
25
|
+
},
|
|
26
|
+
/**
|
|
27
|
+
* 'type' attribute for the input as defined by w3c.
|
|
28
|
+
* Only supporting text|email|number|password|search|url.
|
|
29
|
+
* The increment/decrement webkit psuedo element is hidden for number.
|
|
30
|
+
*/
|
|
31
|
+
type: {
|
|
32
|
+
type: [String],
|
|
33
|
+
default: "text",
|
|
34
|
+
validator: (e) => O(e, ["text", "email", "number", "password", "search", "url", "tel", "date"])
|
|
35
|
+
},
|
|
36
|
+
/**
|
|
37
|
+
* Label text. This is required for a11y even if hiding the label with `hideLabel`.
|
|
38
|
+
*/
|
|
39
|
+
label: {
|
|
40
|
+
type: String,
|
|
41
|
+
required: !0
|
|
42
|
+
},
|
|
43
|
+
// sets default attrs for inputs that should use a numeric keyboard but are not strictly "numbers" (security code, CC number, postal code)
|
|
44
|
+
numeric: {
|
|
45
|
+
type: Boolean,
|
|
46
|
+
default: !1
|
|
47
|
+
},
|
|
48
|
+
/**
|
|
49
|
+
* Removes the label element but sets the input `aria-label` to `label` text for a11y.
|
|
50
|
+
*/
|
|
51
|
+
hideLabel: Boolean,
|
|
52
|
+
/**
|
|
53
|
+
* Number of rows for input. Converts component to text-area if rows greater than 1.
|
|
54
|
+
*/
|
|
55
|
+
rows: Number,
|
|
56
|
+
// Set which background type the input renders on
|
|
57
|
+
background: Q,
|
|
58
|
+
size: K,
|
|
59
|
+
/**
|
|
60
|
+
* Override the error message role, default is `status`.
|
|
61
|
+
*/
|
|
62
|
+
errorRole: {
|
|
63
|
+
type: String,
|
|
64
|
+
required: !1,
|
|
65
|
+
default: "status"
|
|
66
|
+
},
|
|
67
|
+
// Set error styling
|
|
68
|
+
error: {
|
|
69
|
+
type: [Boolean, String],
|
|
70
|
+
default: !1
|
|
71
|
+
},
|
|
72
|
+
disabled: Boolean,
|
|
73
|
+
required: Boolean,
|
|
74
|
+
optional: Boolean,
|
|
75
|
+
modelValue: {
|
|
76
|
+
type: [String, Number, Function]
|
|
77
|
+
},
|
|
78
|
+
// Adds a custom class to the cdr-lable-standalone wrapping div
|
|
79
|
+
labelClass: String
|
|
80
|
+
},
|
|
81
|
+
emits: ["update:modelValue"],
|
|
82
|
+
setup(e, r) {
|
|
83
|
+
const f = "cdr-input", b = L(!1), y = r.slots["helper-text-top"], h = r.slots["helper-text-bottom"], p = r.slots["pre-icon"], t = r.slots["post-icon"], o = t && r.slots["post-icon"]().length > 1, q = r.slots.info, v = r.slots["info-action"], d = e.id ? e.id : X(), B = s(() => e.rows > 1 && "cdr-input--multiline"), w = s(() => p && "cdr-input--preicon"), M = s(() => t && "cdr-input--posticon"), S = s(() => o && "cdr-input--posticons"), z = s(() => e.error && "cdr-input--error"), F = s(() => `cdr-input--${e.background}`), P = s(() => e.size && `${f}--${e.size}`), V = s(() => b.value && "cdr-input--focus"), A = s(() => {
|
|
84
|
+
const n = [r.slots["helper-text-top"] ? `${d}-helper-text-top` : "", r.slots["helper-text-bottom"] ? `${d}-helper-text-bottom` : "", r.attrs["aria-describedby"]].filter((T) => T).join(" ");
|
|
85
|
+
return e.error ? `${d}-error` : n;
|
|
86
|
+
}), N = s(() => {
|
|
87
|
+
const n = e.numeric || e.type === "number";
|
|
88
|
+
return {
|
|
89
|
+
id: d,
|
|
90
|
+
autocorrect: "off",
|
|
91
|
+
spellcheck: "false",
|
|
92
|
+
autocapitalize: "off",
|
|
93
|
+
pattern: n && "[0-9]*" || null,
|
|
94
|
+
inputmode: n && "numeric" || null,
|
|
95
|
+
novalidate: n || null,
|
|
96
|
+
...r.attrs
|
|
97
|
+
};
|
|
98
|
+
}), H = s({
|
|
99
|
+
get() {
|
|
100
|
+
return e.modelValue;
|
|
101
|
+
},
|
|
102
|
+
set(n) {
|
|
103
|
+
r.emit("update:modelValue", n);
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
return {
|
|
107
|
+
style: U(),
|
|
108
|
+
baseClass: f,
|
|
109
|
+
isFocused: b,
|
|
110
|
+
hasHelperTop: y,
|
|
111
|
+
hasHelperBottom: h,
|
|
112
|
+
hasPreIcon: p,
|
|
113
|
+
hasPostIcon: t,
|
|
114
|
+
hasInfo: q,
|
|
115
|
+
hasInfoAction: v,
|
|
116
|
+
uniqueId: d,
|
|
117
|
+
multilineClass: B,
|
|
118
|
+
preIconClass: w,
|
|
119
|
+
postIconClass: M,
|
|
120
|
+
postIconsClass: S,
|
|
121
|
+
errorClass: z,
|
|
122
|
+
backgroundClass: F,
|
|
123
|
+
sizeClass: P,
|
|
124
|
+
focusedClass: V,
|
|
125
|
+
describedby: A,
|
|
126
|
+
inputAttrs: N,
|
|
127
|
+
inputModel: H,
|
|
128
|
+
mapClasses: W
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
}), x = ["rows", "id", "disabled", "aria-required", "aria-invalid", "aria-errormessage", "aria-describedby"], ee = ["type", "id", "disabled", "aria-required", "aria-invalid", "aria-errormessage", "aria-describedby"], re = ["id"];
|
|
132
|
+
function se(e, r, f, b, y, h) {
|
|
133
|
+
const p = I("cdr-form-error"), t = I("cdr-label-standalone");
|
|
134
|
+
return i(), c(t, {
|
|
135
|
+
"for-id": e.uniqueId,
|
|
136
|
+
label: e.label,
|
|
137
|
+
"hide-label": e.hideLabel,
|
|
138
|
+
required: e.required,
|
|
139
|
+
optional: e.optional,
|
|
140
|
+
disabled: e.disabled,
|
|
141
|
+
class: u(e.labelClass)
|
|
142
|
+
}, D({
|
|
143
|
+
default: l(() => [$("div", {
|
|
144
|
+
class: u(e.mapClasses(e.style, "cdr-input-wrap", e.focusedClass))
|
|
145
|
+
}, [e.rows && e.rows > 1 ? g((i(), m("textarea", k({
|
|
146
|
+
key: 0,
|
|
147
|
+
rows: e.rows,
|
|
148
|
+
class: e.mapClasses(e.style, e.baseClass, e.multilineClass, e.preIconClass, e.postIconClass, e.postIconsClass, e.errorClass, e.backgroundClass, e.sizeClass),
|
|
149
|
+
id: e.uniqueId,
|
|
150
|
+
disabled: e.disabled,
|
|
151
|
+
"aria-required": e.required || null,
|
|
152
|
+
"aria-invalid": !!e.error || null,
|
|
153
|
+
"aria-errormessage": !!e.error && `${e.uniqueId}-error` || null
|
|
154
|
+
}, e.inputAttrs, {
|
|
155
|
+
"aria-describedby": e.describedby || null,
|
|
156
|
+
onFocus: r[0] || (r[0] = (o) => e.isFocused = !0),
|
|
157
|
+
onBlur: r[1] || (r[1] = (o) => e.isFocused = !1),
|
|
158
|
+
"onUpdate:modelValue": r[2] || (r[2] = (o) => e.inputModel = o)
|
|
159
|
+
}), null, 16, x)), [[R, e.inputModel]]) : g((i(), m("input", k({
|
|
160
|
+
key: 1,
|
|
161
|
+
type: e.type,
|
|
162
|
+
class: e.mapClasses(e.style, e.baseClass, e.preIconClass, e.postIconClass, e.postIconsClass, e.errorClass, e.backgroundClass, e.sizeClass),
|
|
163
|
+
id: e.uniqueId,
|
|
164
|
+
disabled: e.disabled,
|
|
165
|
+
"aria-required": e.required || null,
|
|
166
|
+
"aria-invalid": !!e.error || null,
|
|
167
|
+
"aria-errormessage": !!e.error && `${e.uniqueId}-error` || null
|
|
168
|
+
}, e.inputAttrs, {
|
|
169
|
+
"aria-describedby": e.describedby || null,
|
|
170
|
+
onFocus: r[3] || (r[3] = (o) => e.isFocused = !0),
|
|
171
|
+
onBlur: r[4] || (r[4] = (o) => e.isFocused = !1),
|
|
172
|
+
"onUpdate:modelValue": r[5] || (r[5] = (o) => e.inputModel = o)
|
|
173
|
+
}), null, 16, ee)), [[j, e.inputModel]]), e.hasPreIcon ? (i(), m("span", {
|
|
174
|
+
key: 2,
|
|
175
|
+
class: u(e.style["cdr-input__pre-icon"])
|
|
176
|
+
}, [a(e.$slots, "pre-icon")], 2)) : C("", !0), e.hasPostIcon ? (i(), m("span", {
|
|
177
|
+
key: 3,
|
|
178
|
+
class: u(e.style["cdr-input__post-icon"])
|
|
179
|
+
}, [a(e.$slots, "post-icon")], 2)) : C("", !0)], 2)]),
|
|
180
|
+
_: 2
|
|
181
|
+
}, [e.hasHelperTop ? {
|
|
182
|
+
name: "helper",
|
|
183
|
+
fn: l(() => [a(e.$slots, "helper-text-top")]),
|
|
184
|
+
key: "0"
|
|
185
|
+
} : void 0, e.hasInfo ? {
|
|
186
|
+
name: "info",
|
|
187
|
+
fn: l(() => [a(e.$slots, "info")]),
|
|
188
|
+
key: "1"
|
|
189
|
+
} : void 0, e.hasInfoAction ? {
|
|
190
|
+
name: "info-action",
|
|
191
|
+
fn: l(() => [a(e.$slots, "info-action")]),
|
|
192
|
+
key: "2"
|
|
193
|
+
} : void 0, e.hasHelperBottom && !e.error ? {
|
|
194
|
+
name: "helper-text-bottom",
|
|
195
|
+
fn: l(() => [$("span", {
|
|
196
|
+
id: `${e.uniqueId}-helper-text-bottom`,
|
|
197
|
+
class: u(e.style["cdr-input__helper-text"])
|
|
198
|
+
}, [a(e.$slots, "helper-text-bottom")], 10, re)]),
|
|
199
|
+
key: "3"
|
|
200
|
+
} : void 0, e.error ? {
|
|
201
|
+
name: "error",
|
|
202
|
+
fn: l(() => [e.error ? (i(), c(p, {
|
|
203
|
+
key: 0,
|
|
204
|
+
error: e.error,
|
|
205
|
+
role: e.errorRole,
|
|
206
|
+
id: `${e.uniqueId}-error`
|
|
207
|
+
}, {
|
|
208
|
+
error: l(() => [a(e.$slots, "error")]),
|
|
209
|
+
_: 3
|
|
210
|
+
}, 8, ["error", "role", "id"])) : C("", !0)]),
|
|
211
|
+
key: "4"
|
|
212
|
+
} : void 0]), 1032, ["for-id", "label", "hide-label", "required", "optional", "disabled", "class"]);
|
|
213
|
+
}
|
|
214
|
+
const oe = {
|
|
215
|
+
$style: Y
|
|
216
|
+
}, be = /* @__PURE__ */ Z(_, [["render", se], ["__cssModules", oe]]);
|
|
217
|
+
export {
|
|
218
|
+
be as default
|
|
219
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
const n = {
|
|
2
|
+
"cdr-label-standalone": "cdr-label-standalone_13-4-1",
|
|
3
|
+
"cdr-label-standalone__label-wrapper": "cdr-label-standalone__label-wrapper_13-4-1",
|
|
4
|
+
"cdr-label-standalone__label": "cdr-label-standalone__label_13-4-1",
|
|
5
|
+
"cdr-label-standalone__label--sr-only": "cdr-label-standalone__label--sr-only_13-4-1",
|
|
6
|
+
"cdr-label-standalone__label--disabled": "cdr-label-standalone__label--disabled_13-4-1",
|
|
7
|
+
"cdr-label-standalone__optional": "cdr-label-standalone__optional_13-4-1",
|
|
8
|
+
"cdr-label-standalone__helper": "cdr-label-standalone__helper_13-4-1",
|
|
9
|
+
"cdr-label-standalone__info": "cdr-label-standalone__info_13-4-1",
|
|
10
|
+
"cdr-label-standalone__post-content": "cdr-label-standalone__post-content_13-4-1",
|
|
11
|
+
"cdr-label-standalone__info-action": "cdr-label-standalone__info-action_13-4-1",
|
|
12
|
+
"cdr-label-standalone__input-wrap": "cdr-label-standalone__input-wrap_13-4-1",
|
|
13
|
+
"cdr-label-standalone__input-spacing": "cdr-label-standalone__input-spacing_13-4-1",
|
|
14
|
+
"cdr-form-error": "cdr-form-error_13-4-1",
|
|
15
|
+
"cdr-form-error__icon": "cdr-form-error__icon_13-4-1",
|
|
16
|
+
"cdr-input": "cdr-input_13-4-1",
|
|
17
|
+
"cdr-input--focus": "cdr-input--focus_13-4-1",
|
|
18
|
+
"cdr-input--multiline": "cdr-input--multiline_13-4-1",
|
|
19
|
+
"cdr-input--preicon": "cdr-input--preicon_13-4-1",
|
|
20
|
+
"cdr-input--posticon": "cdr-input--posticon_13-4-1",
|
|
21
|
+
"cdr-input--posticons": "cdr-input--posticons_13-4-1",
|
|
22
|
+
"cdr-input--primary": "cdr-input--primary_13-4-1",
|
|
23
|
+
"cdr-input--secondary": "cdr-input--secondary_13-4-1",
|
|
24
|
+
"cdr-input--error": "cdr-input--error_13-4-1",
|
|
25
|
+
"cdr-input--large": "cdr-input--large_13-4-1",
|
|
26
|
+
"cdr-input--large@xs": "cdr-input--large@xs_13-4-1",
|
|
27
|
+
"cdr-input--large@sm": "cdr-input--large@sm_13-4-1",
|
|
28
|
+
"cdr-input--large@md": "cdr-input--large@md_13-4-1",
|
|
29
|
+
"cdr-input--large@lg": "cdr-input--large@lg_13-4-1",
|
|
30
|
+
"cdr-input__pre-icon": "cdr-input__pre-icon_13-4-1",
|
|
31
|
+
"cdr-input__post-icon": "cdr-input__post-icon_13-4-1",
|
|
32
|
+
"cdr-input__helper-text": "cdr-input__helper-text_13-4-1",
|
|
33
|
+
"cdr-input-wrap": "cdr-input-wrap_13-4-1"
|
|
34
|
+
};
|
|
35
|
+
export {
|
|
36
|
+
n as default
|
|
37
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { defineComponent as m, computed as p, useCssModule as C, openBlock as l, createElementBlock as a, normalizeClass as s, createElementVNode as t, createTextVNode as $, toDisplayString as f, createCommentVNode as n, renderSlot as o } from "vue";
|
|
2
|
+
import L from "../../utils/mapClasses.mjs";
|
|
3
|
+
import k from "./styles/CdrLabelStandalone.module.scss.mjs";
|
|
4
|
+
import S from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
5
|
+
const I = m({
|
|
6
|
+
name: "CdrLabelStandalone",
|
|
7
|
+
props: {
|
|
8
|
+
forId: {
|
|
9
|
+
type: String,
|
|
10
|
+
required: !0
|
|
11
|
+
},
|
|
12
|
+
label: String,
|
|
13
|
+
disabled: Boolean,
|
|
14
|
+
required: Boolean,
|
|
15
|
+
optional: Boolean,
|
|
16
|
+
hideLabel: Boolean
|
|
17
|
+
},
|
|
18
|
+
setup(e, r) {
|
|
19
|
+
const b = "cdr-label-standalone", d = r.slots.helper, i = r.slots.info, u = r.slots["info-action"], c = p(() => e.disabled && "cdr-label-standalone__label--disabled"), y = p(() => e.hideLabel && "cdr-label-standalone__label--sr-only"), h = p(() => (!e.hideLabel || d || i) && "cdr-label-standalone__input-spacing");
|
|
20
|
+
return {
|
|
21
|
+
style: C(),
|
|
22
|
+
mapClasses: L,
|
|
23
|
+
baseClass: b,
|
|
24
|
+
hasHelper: d,
|
|
25
|
+
hasInfo: i,
|
|
26
|
+
hasInfoAction: u,
|
|
27
|
+
disabledLabelClass: c,
|
|
28
|
+
srOnlyLabelClass: y,
|
|
29
|
+
inputSpacingClass: h
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
}), _ = ["for"], g = {
|
|
33
|
+
key: 0,
|
|
34
|
+
"aria-hidden": "true"
|
|
35
|
+
}, B = {
|
|
36
|
+
key: 0
|
|
37
|
+
}, v = ["id"];
|
|
38
|
+
function q(e, r, b, d, i, u) {
|
|
39
|
+
return l(), a("div", {
|
|
40
|
+
class: s(e.style[e.baseClass])
|
|
41
|
+
}, [t("div", {
|
|
42
|
+
class: s(e.style["cdr-label-standalone__label-wrapper"])
|
|
43
|
+
}, [t("label", {
|
|
44
|
+
class: s(e.mapClasses(e.style, "cdr-label-standalone__label", e.disabledLabelClass, e.srOnlyLabelClass)),
|
|
45
|
+
for: e.forId
|
|
46
|
+
}, [$(f(e.label) + f((e.required || e.optional, "")) + " ", 1), e.required ? (l(), a("span", g, "*")) : e.optional ? (l(), a("span", {
|
|
47
|
+
key: 1,
|
|
48
|
+
class: s(e.style["cdr-label-standalone__optional"])
|
|
49
|
+
}, "(optional)", 2)) : n("", !0)], 10, _), !e.hideLabel && e.hasHelper ? (l(), a("br", B)) : n("", !0), e.hasHelper ? (l(), a("span", {
|
|
50
|
+
key: 1,
|
|
51
|
+
class: s(e.style["cdr-label-standalone__helper"]),
|
|
52
|
+
id: `${e.forId}-helper-text-top`
|
|
53
|
+
}, [o(e.$slots, "helper")], 10, v)) : n("", !0)], 2), t("div", {
|
|
54
|
+
class: s(e.mapClasses(e.style, "cdr-label-standalone__input-wrap", e.inputSpacingClass))
|
|
55
|
+
}, [o(e.$slots, "default"), e.hasInfoAction ? (l(), a("div", {
|
|
56
|
+
key: 0,
|
|
57
|
+
class: s(e.style["cdr-label-standalone__info-action"])
|
|
58
|
+
}, [o(e.$slots, "info-action")], 2)) : n("", !0)], 2), e.hasInfo ? (l(), a("span", {
|
|
59
|
+
key: 0,
|
|
60
|
+
class: s(e.style["cdr-label-standalone__info"])
|
|
61
|
+
}, [o(e.$slots, "info")], 2)) : n("", !0), t("div", {
|
|
62
|
+
class: s(e.style["cdr-label-standalone__post-content"])
|
|
63
|
+
}, [o(e.$slots, "helper-text-bottom"), o(e.$slots, "error")], 2)], 2);
|
|
64
|
+
}
|
|
65
|
+
const H = {
|
|
66
|
+
$style: k
|
|
67
|
+
}, A = /* @__PURE__ */ S(I, [["render", q], ["__cssModules", H]]);
|
|
68
|
+
export {
|
|
69
|
+
A as default
|
|
70
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const l = {
|
|
2
|
+
"cdr-label-standalone": "cdr-label-standalone_13-4-1",
|
|
3
|
+
"cdr-label-standalone__label-wrapper": "cdr-label-standalone__label-wrapper_13-4-1",
|
|
4
|
+
"cdr-label-standalone__label": "cdr-label-standalone__label_13-4-1",
|
|
5
|
+
"cdr-label-standalone__label--sr-only": "cdr-label-standalone__label--sr-only_13-4-1",
|
|
6
|
+
"cdr-label-standalone__label--disabled": "cdr-label-standalone__label--disabled_13-4-1",
|
|
7
|
+
"cdr-label-standalone__optional": "cdr-label-standalone__optional_13-4-1",
|
|
8
|
+
"cdr-label-standalone__helper": "cdr-label-standalone__helper_13-4-1",
|
|
9
|
+
"cdr-label-standalone__info": "cdr-label-standalone__info_13-4-1",
|
|
10
|
+
"cdr-label-standalone__post-content": "cdr-label-standalone__post-content_13-4-1",
|
|
11
|
+
"cdr-label-standalone__info-action": "cdr-label-standalone__info-action_13-4-1",
|
|
12
|
+
"cdr-label-standalone__input-wrap": "cdr-label-standalone__input-wrap_13-4-1",
|
|
13
|
+
"cdr-label-standalone__input-spacing": "cdr-label-standalone__input-spacing_13-4-1"
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
l as default
|
|
17
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { defineComponent as d, computed as a, useCssModule as p, openBlock as c, createElementBlock as m, normalizeClass as l, createElementVNode as r, renderSlot as t } from "vue";
|
|
2
|
+
import { responsiveModifyClass as b } from "../../utils/buildClass.mjs";
|
|
3
|
+
import f from "../../props/background.mjs";
|
|
4
|
+
import C from "../../utils/mapClasses.mjs";
|
|
5
|
+
import u from "./styles/CdrLabelWrapper.module.scss.mjs";
|
|
6
|
+
import $ from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
7
|
+
const g = d({
|
|
8
|
+
name: "CdrLabelWrapper",
|
|
9
|
+
props: {
|
|
10
|
+
labelClass: String,
|
|
11
|
+
contentClass: String,
|
|
12
|
+
background: f,
|
|
13
|
+
disabled: Boolean,
|
|
14
|
+
modifier: String,
|
|
15
|
+
size: String
|
|
16
|
+
},
|
|
17
|
+
setup(s) {
|
|
18
|
+
const e = "cdr-label-wrapper", o = a(() => s.modifier && `${e}--${s.modifier}`), n = a(() => s.size && b(e, "", s.size)), i = a(() => s.disabled && `${e}--disabled`);
|
|
19
|
+
return {
|
|
20
|
+
style: p(),
|
|
21
|
+
modifierClass: o,
|
|
22
|
+
sizeClass: n,
|
|
23
|
+
disabledClass: i,
|
|
24
|
+
mapClasses: C
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
function y(s, e, o, n, i, z) {
|
|
29
|
+
return c(), m("div", {
|
|
30
|
+
class: l(s.style["cdr-label-wrapper__container"])
|
|
31
|
+
}, [r("label", {
|
|
32
|
+
class: l(s.mapClasses(s.style, "cdr-label-wrapper", `cdr-label-wrapper--${s.background}`, s.disabledClass, s.modifierClass, s.sizeClass).concat(` ${s.labelClass || ""}`))
|
|
33
|
+
}, [t(s.$slots, "input"), r("span", {
|
|
34
|
+
class: l(s.style["cdr-label-wrapper__figure"])
|
|
35
|
+
}, null, 2), r("span", {
|
|
36
|
+
class: l([s.style["cdr-label-wrapper__content"], s.contentClass])
|
|
37
|
+
}, [t(s.$slots, "default")], 2)], 2)], 2);
|
|
38
|
+
}
|
|
39
|
+
const w = {
|
|
40
|
+
$style: u
|
|
41
|
+
}, E = /* @__PURE__ */ $(g, [["render", y], ["__cssModules", w]]);
|
|
42
|
+
export {
|
|
43
|
+
E as default
|
|
44
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
const r = {
|
|
2
|
+
"cdr-label-wrapper": "cdr-label-wrapper_13-4-1",
|
|
3
|
+
"cdr-label-wrapper__container": "cdr-label-wrapper__container_13-4-1",
|
|
4
|
+
"cdr-label-wrapper--primary": "cdr-label-wrapper--primary_13-4-1",
|
|
5
|
+
"cdr-label-wrapper--secondary": "cdr-label-wrapper--secondary_13-4-1",
|
|
6
|
+
"cdr-label-wrapper--disabled": "cdr-label-wrapper--disabled_13-4-1",
|
|
7
|
+
"cdr-label-wrapper__figure": "cdr-label-wrapper__figure_13-4-1",
|
|
8
|
+
"cdr-label-wrapper__content": "cdr-label-wrapper__content_13-4-1",
|
|
9
|
+
"cdr-label-wrapper--hide-figure": "cdr-label-wrapper--hide-figure_13-4-1",
|
|
10
|
+
"cdr-label-wrapper--small": "cdr-label-wrapper--small_13-4-1",
|
|
11
|
+
"cdr-label-wrapper--medium": "cdr-label-wrapper--medium_13-4-1",
|
|
12
|
+
"cdr-label-wrapper--large": "cdr-label-wrapper--large_13-4-1",
|
|
13
|
+
"cdr-label-wrapper--small@xs": "cdr-label-wrapper--small@xs_13-4-1",
|
|
14
|
+
"cdr-label-wrapper--medium@xs": "cdr-label-wrapper--medium@xs_13-4-1",
|
|
15
|
+
"cdr-label-wrapper--large@xs": "cdr-label-wrapper--large@xs_13-4-1",
|
|
16
|
+
"cdr-label-wrapper--small@sm": "cdr-label-wrapper--small@sm_13-4-1",
|
|
17
|
+
"cdr-label-wrapper--medium@sm": "cdr-label-wrapper--medium@sm_13-4-1",
|
|
18
|
+
"cdr-label-wrapper--large@sm": "cdr-label-wrapper--large@sm_13-4-1",
|
|
19
|
+
"cdr-label-wrapper--small@md": "cdr-label-wrapper--small@md_13-4-1",
|
|
20
|
+
"cdr-label-wrapper--medium@md": "cdr-label-wrapper--medium@md_13-4-1",
|
|
21
|
+
"cdr-label-wrapper--large@md": "cdr-label-wrapper--large@md_13-4-1",
|
|
22
|
+
"cdr-label-wrapper--small@lg": "cdr-label-wrapper--small@lg_13-4-1",
|
|
23
|
+
"cdr-label-wrapper--medium@lg": "cdr-label-wrapper--medium@lg_13-4-1",
|
|
24
|
+
"cdr-label-wrapper--large@lg": "cdr-label-wrapper--large@lg_13-4-1"
|
|
25
|
+
};
|
|
26
|
+
export {
|
|
27
|
+
r as default
|
|
28
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { defineComponent as n, computed as r, useCssModule as i, openBlock as d, createBlock as f, resolveDynamicComponent as m, normalizeClass as u, withCtx as c, renderSlot as C } from "vue";
|
|
2
|
+
import p from "../../utils/mapClasses.mjs";
|
|
3
|
+
import g from "../../utils/propValidator.mjs";
|
|
4
|
+
import h from "./styles/CdrLink.module.scss.mjs";
|
|
5
|
+
import y from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
6
|
+
const $ = n({
|
|
7
|
+
name: "CdrLink",
|
|
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: !1
|
|
20
|
+
},
|
|
21
|
+
modifier: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: "",
|
|
24
|
+
validator: (e) => g(e, ["", "standalone"])
|
|
25
|
+
},
|
|
26
|
+
/** @ignore */
|
|
27
|
+
target: String,
|
|
28
|
+
/** @ignore */
|
|
29
|
+
rel: String
|
|
30
|
+
},
|
|
31
|
+
setup(e) {
|
|
32
|
+
const t = "cdr-link", o = r(() => e.tag === "a" ? e.href : null), s = r(() => e.target === "_blank" ? e.rel || "noopener noreferrer" : e.rel), l = r(() => e.modifier && `${t}--${e.modifier}`), a = r(() => e.inheritColor && "cdr-link--inherit-color");
|
|
33
|
+
return {
|
|
34
|
+
style: i(),
|
|
35
|
+
baseClass: t,
|
|
36
|
+
computedHref: o,
|
|
37
|
+
computedRel: s,
|
|
38
|
+
modifierClass: l,
|
|
39
|
+
inheritColorClass: a,
|
|
40
|
+
mapClasses: p
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
function k(e, t, o, s, l, a) {
|
|
45
|
+
return d(), f(m(e.tag), {
|
|
46
|
+
class: u(e.mapClasses(e.style, e.baseClass, e.modifierClass, e.inheritColorClass)),
|
|
47
|
+
target: e.target,
|
|
48
|
+
rel: e.computedRel,
|
|
49
|
+
href: e.computedHref
|
|
50
|
+
}, {
|
|
51
|
+
default: c(() => [C(e.$slots, "default")]),
|
|
52
|
+
_: 3
|
|
53
|
+
}, 8, ["class", "target", "rel", "href"]);
|
|
54
|
+
}
|
|
55
|
+
const S = {
|
|
56
|
+
$style: h
|
|
57
|
+
}, L = /* @__PURE__ */ y($, [["render", k], ["__cssModules", S]]);
|
|
58
|
+
export {
|
|
59
|
+
L as default
|
|
60
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { defineComponent as a, useCssModule as n, computed as d, openBlock as m, createBlock as p, resolveDynamicComponent as c, normalizeClass as f, withCtx as u, renderSlot as C } from "vue";
|
|
2
|
+
import i from "../../utils/propValidator.mjs";
|
|
3
|
+
import $ from "./styles/CdrList.module.scss.mjs";
|
|
4
|
+
import y from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
5
|
+
const _ = a({
|
|
6
|
+
name: "CdrList",
|
|
7
|
+
props: {
|
|
8
|
+
/**
|
|
9
|
+
* Tag accepts a user defined element and expects either: 'ul' = Unordered List or 'ol' = Ordered List.
|
|
10
|
+
*/
|
|
11
|
+
tag: {
|
|
12
|
+
type: String,
|
|
13
|
+
default: "ul",
|
|
14
|
+
validator: (e) => i(e, ["ul", "ol"])
|
|
15
|
+
},
|
|
16
|
+
modifier: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: "",
|
|
19
|
+
validator: (e) => i(e, ["", "ordered", "unordered", "compact", "inline"])
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
setup(e) {
|
|
23
|
+
const s = "cdr-list", o = n(), t = d(() => e.modifier.split(" ").map((r) => o[`${s}--${r}`]));
|
|
24
|
+
return {
|
|
25
|
+
style: o,
|
|
26
|
+
baseClass: s,
|
|
27
|
+
modifierClasses: t
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
function g(e, s, o, t, l, r) {
|
|
32
|
+
return m(), p(c(e.tag), {
|
|
33
|
+
class: f([e.style[e.baseClass], e.modifierClasses])
|
|
34
|
+
}, {
|
|
35
|
+
default: u(() => [C(e.$slots, "default")]),
|
|
36
|
+
_: 3
|
|
37
|
+
}, 8, ["class"]);
|
|
38
|
+
}
|
|
39
|
+
const v = {
|
|
40
|
+
$style: $
|
|
41
|
+
}, k = /* @__PURE__ */ y(_, [["render", g], ["__cssModules", v]]);
|
|
42
|
+
export {
|
|
43
|
+
k as default
|
|
44
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
const d = {
|
|
2
|
+
"cdr-list": "cdr-list_13-4-1",
|
|
3
|
+
"cdr-list--compact": "cdr-list--compact_13-4-1",
|
|
4
|
+
"cdr-list--ordered": "cdr-list--ordered_13-4-1",
|
|
5
|
+
"cdr-list--unordered": "cdr-list--unordered_13-4-1",
|
|
6
|
+
"cdr-list--inline": "cdr-list--inline_13-4-1"
|
|
7
|
+
};
|
|
8
|
+
export {
|
|
9
|
+
d as default
|
|
10
|
+
};
|