@rei/cedar 11.0.0-alpha.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/LICENSE +21 -0
- package/README.md +120 -0
- package/dist/cdr-fonts.css +21 -0
- package/dist/cedar-compiled.css +4788 -0
- package/dist/cedar.js +11677 -0
- package/dist/cedar.mjs +9944 -0
- package/dist/lib/assets/cedar-compiled-fccbce00.css +4714 -0
- package/dist/lib/node_modules/@rei/cdr-tokens/dist/js/cdr-tokens.esm.mjs +9 -0
- package/dist/lib/src/components/accordion/CdrAccordion.mjs +206 -0
- package/dist/lib/src/components/accordion/CdrAccordionGroup.mjs +124 -0
- package/dist/lib/src/components/accordion/styles/CdrAccordion.mjs +3 -0
- package/dist/lib/src/components/accordion/styles/CdrAccordionGroup.mjs +3 -0
- package/dist/lib/src/components/banner/CdrBanner.mjs +75 -0
- package/dist/lib/src/components/banner/styles/CdrBanner.mjs +3 -0
- package/dist/lib/src/components/breadcrumb/CdrBreadcrumb.mjs +170 -0
- package/dist/lib/src/components/breadcrumb/styles/CdrBreadcrumb.mjs +3 -0
- package/dist/lib/src/components/button/CdrButton.mjs +128 -0
- package/dist/lib/src/components/button/styles/CdrButton.mjs +3 -0
- package/dist/lib/src/components/caption/CdrCaption.mjs +38 -0
- package/dist/lib/src/components/caption/styles/CdrCaption.mjs +3 -0
- package/dist/lib/src/components/card/CdrCard.mjs +35 -0
- package/dist/lib/src/components/card/styles/CdrCard.mjs +3 -0
- package/dist/lib/src/components/checkbox/CdrCheckbox.mjs +182 -0
- package/dist/lib/src/components/checkbox/styles/CdrCheckbox.mjs +3 -0
- package/dist/lib/src/components/chip/CdrChip.mjs +36 -0
- package/dist/lib/src/components/chip/CdrChipGroup.mjs +108 -0
- package/dist/lib/src/components/chip/styles/CdrChip.mjs +3 -0
- package/dist/lib/src/components/chip/styles/CdrChipGroup.mjs +3 -0
- package/dist/lib/src/components/container/CdrContainer.mjs +51 -0
- package/dist/lib/src/components/container/styles/CdrContainer.mjs +3 -0
- package/dist/lib/src/components/flex-grid/CdrCol.mjs +189 -0
- package/dist/lib/src/components/flex-grid/CdrRow.mjs +231 -0
- package/dist/lib/src/components/flex-grid/styles/CdrCol.mjs +3 -0
- package/dist/lib/src/components/flex-grid/styles/CdrRow.mjs +3 -0
- package/dist/lib/src/components/formError/CdrFormError.mjs +31 -0
- package/dist/lib/src/components/formError/styles/CdrFormError.mjs +3 -0
- package/dist/lib/src/components/formGroup/CdrFormGroup.mjs +95 -0
- package/dist/lib/src/components/formGroup/styles/CdrFormGroup.mjs +3 -0
- package/dist/lib/src/components/grid/CdrGrid.mjs +59 -0
- package/dist/lib/src/components/grid/styles/CdrGrid.mjs +3 -0
- package/dist/lib/src/components/icon/CdrIcon.mjs +76 -0
- package/dist/lib/src/components/icon/comps/account-profile-fill.mjs +32 -0
- package/dist/lib/src/components/icon/comps/account-profile.mjs +32 -0
- package/dist/lib/src/components/icon/comps/arrow-down.mjs +32 -0
- package/dist/lib/src/components/icon/comps/arrow-left.mjs +32 -0
- package/dist/lib/src/components/icon/comps/arrow-right.mjs +32 -0
- package/dist/lib/src/components/icon/comps/arrow-up.mjs +32 -0
- package/dist/lib/src/components/icon/comps/atv.mjs +32 -0
- package/dist/lib/src/components/icon/comps/bed-outline.mjs +32 -0
- package/dist/lib/src/components/icon/comps/bike-shop.mjs +32 -0
- package/dist/lib/src/components/icon/comps/binoculars.mjs +32 -0
- package/dist/lib/src/components/icon/comps/birding.mjs +32 -0
- package/dist/lib/src/components/icon/comps/boat.mjs +32 -0
- package/dist/lib/src/components/icon/comps/boating.mjs +32 -0
- package/dist/lib/src/components/icon/comps/bookmark-fill.mjs +32 -0
- package/dist/lib/src/components/icon/comps/bookmark-stroke.mjs +32 -0
- package/dist/lib/src/components/icon/comps/brand-abstract.mjs +32 -0
- package/dist/lib/src/components/icon/comps/brand-code-sandbox.mjs +32 -0
- package/dist/lib/src/components/icon/comps/brand-github.mjs +32 -0
- package/dist/lib/src/components/icon/comps/brand-linkedin.mjs +32 -0
- package/dist/lib/src/components/icon/comps/brand-rei-ice-axes.mjs +32 -0
- package/dist/lib/src/components/icon/comps/brand-sketch.mjs +32 -0
- package/dist/lib/src/components/icon/comps/buddies.mjs +32 -0
- package/dist/lib/src/components/icon/comps/bus.mjs +32 -0
- package/dist/lib/src/components/icon/comps/calendar.mjs +32 -0
- package/dist/lib/src/components/icon/comps/camera.mjs +32 -0
- package/dist/lib/src/components/icon/comps/canoe.mjs +32 -0
- package/dist/lib/src/components/icon/comps/car.mjs +32 -0
- package/dist/lib/src/components/icon/comps/caret-down.mjs +32 -0
- package/dist/lib/src/components/icon/comps/caret-left.mjs +32 -0
- package/dist/lib/src/components/icon/comps/caret-right.mjs +32 -0
- package/dist/lib/src/components/icon/comps/caret-up.mjs +32 -0
- package/dist/lib/src/components/icon/comps/cart-fill.mjs +32 -0
- package/dist/lib/src/components/icon/comps/cart.mjs +32 -0
- package/dist/lib/src/components/icon/comps/chain-link.mjs +32 -0
- package/dist/lib/src/components/icon/comps/chat.mjs +32 -0
- package/dist/lib/src/components/icon/comps/check-fill.mjs +32 -0
- package/dist/lib/src/components/icon/comps/check-lg.mjs +32 -0
- package/dist/lib/src/components/icon/comps/check-sm.mjs +32 -0
- package/dist/lib/src/components/icon/comps/check-stroke.mjs +32 -0
- package/dist/lib/src/components/icon/comps/climb.mjs +32 -0
- package/dist/lib/src/components/icon/comps/clipboard.mjs +32 -0
- package/dist/lib/src/components/icon/comps/clock.mjs +32 -0
- package/dist/lib/src/components/icon/comps/code-html.mjs +32 -0
- package/dist/lib/src/components/icon/comps/code-js.mjs +32 -0
- package/dist/lib/src/components/icon/comps/compass.mjs +32 -0
- package/dist/lib/src/components/icon/comps/copy.mjs +32 -0
- package/dist/lib/src/components/icon/comps/coupon-fill.mjs +32 -0
- package/dist/lib/src/components/icon/comps/coupon-stroke.mjs +32 -0
- package/dist/lib/src/components/icon/comps/credit-card.mjs +32 -0
- package/dist/lib/src/components/icon/comps/curbside-pickup.mjs +32 -0
- package/dist/lib/src/components/icon/comps/day.mjs +32 -0
- package/dist/lib/src/components/icon/comps/diving.mjs +32 -0
- package/dist/lib/src/components/icon/comps/dog.mjs +32 -0
- package/dist/lib/src/components/icon/comps/download.mjs +32 -0
- package/dist/lib/src/components/icon/comps/edit.mjs +32 -0
- package/dist/lib/src/components/icon/comps/elevation.mjs +32 -0
- package/dist/lib/src/components/icon/comps/error-fill.mjs +32 -0
- package/dist/lib/src/components/icon/comps/error-stroke.mjs +32 -0
- package/dist/lib/src/components/icon/comps/expand.mjs +32 -0
- package/dist/lib/src/components/icon/comps/experiences-backpacking.mjs +32 -0
- package/dist/lib/src/components/icon/comps/experiences-camping.mjs +32 -0
- package/dist/lib/src/components/icon/comps/experiences-climbing.mjs +32 -0
- package/dist/lib/src/components/icon/comps/experiences-clothing.mjs +32 -0
- package/dist/lib/src/components/icon/comps/experiences-cycling.mjs +32 -0
- package/dist/lib/src/components/icon/comps/experiences-family.mjs +32 -0
- package/dist/lib/src/components/icon/comps/experiences-fitness.mjs +32 -0
- package/dist/lib/src/components/icon/comps/experiences-hiking.mjs +32 -0
- package/dist/lib/src/components/icon/comps/experiences-outdoor-basics.mjs +32 -0
- package/dist/lib/src/components/icon/comps/experiences-paddling.mjs +32 -0
- package/dist/lib/src/components/icon/comps/experiences-rentals.mjs +32 -0
- package/dist/lib/src/components/icon/comps/experiences-snowsports.mjs +32 -0
- package/dist/lib/src/components/icon/comps/experiences-travel.mjs +32 -0
- package/dist/lib/src/components/icon/comps/external-link.mjs +32 -0
- package/dist/lib/src/components/icon/comps/eye-hide.mjs +32 -0
- package/dist/lib/src/components/icon/comps/eye-show.mjs +32 -0
- package/dist/lib/src/components/icon/comps/facebook.mjs +32 -0
- package/dist/lib/src/components/icon/comps/filter-alt.mjs +32 -0
- package/dist/lib/src/components/icon/comps/filter.mjs +32 -0
- package/dist/lib/src/components/icon/comps/find-location.mjs +32 -0
- package/dist/lib/src/components/icon/comps/fire.mjs +32 -0
- package/dist/lib/src/components/icon/comps/fishing.mjs +32 -0
- package/dist/lib/src/components/icon/comps/free-product.mjs +32 -0
- package/dist/lib/src/components/icon/comps/grid-view.mjs +32 -0
- package/dist/lib/src/components/icon/comps/heart-fill.mjs +32 -0
- package/dist/lib/src/components/icon/comps/heart-stroke.mjs +32 -0
- package/dist/lib/src/components/icon/comps/hike.mjs +32 -0
- package/dist/lib/src/components/icon/comps/history.mjs +32 -0
- package/dist/lib/src/components/icon/comps/home.mjs +32 -0
- package/dist/lib/src/components/icon/comps/horse.mjs +32 -0
- package/dist/lib/src/components/icon/comps/horseshoe.mjs +32 -0
- package/dist/lib/src/components/icon/comps/image.mjs +32 -0
- package/dist/lib/src/components/icon/comps/information-fill.mjs +32 -0
- package/dist/lib/src/components/icon/comps/information-stroke.mjs +32 -0
- package/dist/lib/src/components/icon/comps/instagram.mjs +32 -0
- package/dist/lib/src/components/icon/comps/kayak.mjs +32 -0
- package/dist/lib/src/components/icon/comps/list-ragged.mjs +32 -0
- package/dist/lib/src/components/icon/comps/list-view.mjs +32 -0
- package/dist/lib/src/components/icon/comps/location-pin-fill.mjs +32 -0
- package/dist/lib/src/components/icon/comps/location-pin-stroke.mjs +32 -0
- package/dist/lib/src/components/icon/comps/lock-locked-fill.mjs +32 -0
- package/dist/lib/src/components/icon/comps/lock-locked-stroke.mjs +32 -0
- package/dist/lib/src/components/icon/comps/lock-unlocked-stroke.mjs +32 -0
- package/dist/lib/src/components/icon/comps/mail.mjs +32 -0
- package/dist/lib/src/components/icon/comps/map.mjs +32 -0
- package/dist/lib/src/components/icon/comps/member-card.mjs +32 -0
- package/dist/lib/src/components/icon/comps/microphone.mjs +32 -0
- package/dist/lib/src/components/icon/comps/minus-fill.mjs +32 -0
- package/dist/lib/src/components/icon/comps/minus-lg.mjs +32 -0
- package/dist/lib/src/components/icon/comps/minus-sm.mjs +32 -0
- package/dist/lib/src/components/icon/comps/minus-stroke.mjs +32 -0
- package/dist/lib/src/components/icon/comps/more-functions.mjs +32 -0
- package/dist/lib/src/components/icon/comps/my-location.mjs +32 -0
- package/dist/lib/src/components/icon/comps/navigation-menu.mjs +32 -0
- package/dist/lib/src/components/icon/comps/night.mjs +32 -0
- package/dist/lib/src/components/icon/comps/paddle.mjs +32 -0
- package/dist/lib/src/components/icon/comps/pause-fill.mjs +32 -0
- package/dist/lib/src/components/icon/comps/pause-stroke.mjs +32 -0
- package/dist/lib/src/components/icon/comps/pause.mjs +32 -0
- package/dist/lib/src/components/icon/comps/photography.mjs +32 -0
- package/dist/lib/src/components/icon/comps/picnic.mjs +32 -0
- package/dist/lib/src/components/icon/comps/pinterest.mjs +32 -0
- package/dist/lib/src/components/icon/comps/plane.mjs +32 -0
- package/dist/lib/src/components/icon/comps/play-fill.mjs +32 -0
- package/dist/lib/src/components/icon/comps/play-stroke.mjs +32 -0
- package/dist/lib/src/components/icon/comps/play.mjs +32 -0
- package/dist/lib/src/components/icon/comps/playground.mjs +32 -0
- package/dist/lib/src/components/icon/comps/plugin.mjs +32 -0
- package/dist/lib/src/components/icon/comps/plus-fill.mjs +32 -0
- package/dist/lib/src/components/icon/comps/plus-lg.mjs +32 -0
- package/dist/lib/src/components/icon/comps/plus-sm.mjs +32 -0
- package/dist/lib/src/components/icon/comps/plus-stroke.mjs +32 -0
- package/dist/lib/src/components/icon/comps/print.mjs +32 -0
- package/dist/lib/src/components/icon/comps/protection-fill.mjs +32 -0
- package/dist/lib/src/components/icon/comps/protection-stroke.mjs +32 -0
- package/dist/lib/src/components/icon/comps/question-fill.mjs +32 -0
- package/dist/lib/src/components/icon/comps/question-stroke.mjs +32 -0
- package/dist/lib/src/components/icon/comps/refresh.mjs +32 -0
- package/dist/lib/src/components/icon/comps/reload.mjs +32 -0
- package/dist/lib/src/components/icon/comps/returns.mjs +32 -0
- package/dist/lib/src/components/icon/comps/run.mjs +32 -0
- package/dist/lib/src/components/icon/comps/scan-barcode.mjs +32 -0
- package/dist/lib/src/components/icon/comps/search.mjs +32 -0
- package/dist/lib/src/components/icon/comps/service-shop.mjs +32 -0
- package/dist/lib/src/components/icon/comps/shipping.mjs +32 -0
- package/dist/lib/src/components/icon/comps/shopping-bag-fill.mjs +32 -0
- package/dist/lib/src/components/icon/comps/shopping-bag.mjs +32 -0
- package/dist/lib/src/components/icon/comps/shrink.mjs +32 -0
- package/dist/lib/src/components/icon/comps/size-chart.mjs +32 -0
- package/dist/lib/src/components/icon/comps/ski-boot.mjs +32 -0
- package/dist/lib/src/components/icon/comps/ski.mjs +32 -0
- package/dist/lib/src/components/icon/comps/snow-shop.mjs +32 -0
- package/dist/lib/src/components/icon/comps/snow.mjs +32 -0
- package/dist/lib/src/components/icon/comps/sort.mjs +32 -0
- package/dist/lib/src/components/icon/comps/star-100.mjs +32 -0
- package/dist/lib/src/components/icon/comps/star-25.mjs +32 -0
- package/dist/lib/src/components/icon/comps/star-50.mjs +32 -0
- package/dist/lib/src/components/icon/comps/star-75.mjs +32 -0
- package/dist/lib/src/components/icon/comps/star-stroke.mjs +32 -0
- package/dist/lib/src/components/icon/comps/storefront.mjs +32 -0
- package/dist/lib/src/components/icon/comps/swim.mjs +32 -0
- package/dist/lib/src/components/icon/comps/telephone.mjs +32 -0
- package/dist/lib/src/components/icon/comps/tent.mjs +32 -0
- package/dist/lib/src/components/icon/comps/trash.mjs +32 -0
- package/dist/lib/src/components/icon/comps/twitter.mjs +32 -0
- package/dist/lib/src/components/icon/comps/upload.mjs +32 -0
- package/dist/lib/src/components/icon/comps/verified-purchaser.mjs +32 -0
- package/dist/lib/src/components/icon/comps/virtual-outfitting.mjs +32 -0
- package/dist/lib/src/components/icon/comps/warning-fill.mjs +32 -0
- package/dist/lib/src/components/icon/comps/warning-stroke.mjs +32 -0
- package/dist/lib/src/components/icon/comps/water.mjs +32 -0
- package/dist/lib/src/components/icon/comps/wilderness.mjs +32 -0
- package/dist/lib/src/components/icon/comps/x-fill.mjs +32 -0
- package/dist/lib/src/components/icon/comps/x-lg.mjs +32 -0
- package/dist/lib/src/components/icon/comps/x-sm.mjs +32 -0
- package/dist/lib/src/components/icon/comps/x-stroke.mjs +32 -0
- package/dist/lib/src/components/icon/comps/youtube.mjs +32 -0
- package/dist/lib/src/components/icon/comps/zoom-in.mjs +32 -0
- package/dist/lib/src/components/icon/comps/zoom-out.mjs +32 -0
- package/dist/lib/src/components/icon/styles/CdrIcon.mjs +3 -0
- package/dist/lib/src/components/image/CdrImg.mjs +151 -0
- package/dist/lib/src/components/image/styles/CdrImg.mjs +3 -0
- package/dist/lib/src/components/input/CdrInput.mjs +296 -0
- package/dist/lib/src/components/input/styles/CdrInput.mjs +3 -0
- package/dist/lib/src/components/labelStandalone/CdrLabelStandalone.mjs +85 -0
- package/dist/lib/src/components/labelStandalone/styles/CdrLabelStandalone.mjs +3 -0
- package/dist/lib/src/components/labelWrapper/CdrLabelWrapper.mjs +56 -0
- package/dist/lib/src/components/labelWrapper/styles/CdrLabelWrapper.mjs +3 -0
- package/dist/lib/src/components/link/CdrLink.mjs +77 -0
- package/dist/lib/src/components/link/styles/CdrLink.mjs +3 -0
- package/dist/lib/src/components/list/CdrList.mjs +44 -0
- package/dist/lib/src/components/list/styles/CdrList.mjs +3 -0
- package/dist/lib/src/components/modal/CdrModal.mjs +375 -0
- package/dist/lib/src/components/modal/onTransitionEnd.mjs +42 -0
- package/dist/lib/src/components/modal/styles/CdrModal.mjs +3 -0
- package/dist/lib/src/components/pagination/CdrPagination.mjs +479 -0
- package/dist/lib/src/components/pagination/styles/CdrPagination.mjs +3 -0
- package/dist/lib/src/components/popover/CdrPopover.mjs +158 -0
- package/dist/lib/src/components/popover/styles/CdrPopover.mjs +3 -0
- package/dist/lib/src/components/popup/CdrPopup.mjs +284 -0
- package/dist/lib/src/components/popup/styles/CdrPopup.mjs +3 -0
- package/dist/lib/src/components/quote/CdrQuote.mjs +68 -0
- package/dist/lib/src/components/quote/styles/CdrQuote.mjs +3 -0
- package/dist/lib/src/components/radio/CdrRadio.mjs +154 -0
- package/dist/lib/src/components/radio/styles/CdrRadio.mjs +3 -0
- package/dist/lib/src/components/rating/CdrRating.mjs +200 -0
- package/dist/lib/src/components/rating/styles/CdrRating.mjs +3 -0
- package/dist/lib/src/components/select/CdrSelect.mjs +285 -0
- package/dist/lib/src/components/select/styles/CdrSelect.mjs +3 -0
- package/dist/lib/src/components/table/CdrTable.mjs +79 -0
- package/dist/lib/src/components/table/styles/CdrTable.mjs +3 -0
- package/dist/lib/src/components/tabs/CdrTabPanel.mjs +107 -0
- package/dist/lib/src/components/tabs/CdrTabs.mjs +385 -0
- package/dist/lib/src/components/tabs/styles/CdrTabPanel.mjs +3 -0
- package/dist/lib/src/components/tabs/styles/CdrTabs.mjs +3 -0
- package/dist/lib/src/components/text/CdrText.mjs +44 -0
- package/dist/lib/src/components/text/styles/CdrText.mjs +3 -0
- package/dist/lib/src/components/toast/CdrToast.mjs +129 -0
- package/dist/lib/src/components/toast/styles/CdrToast.mjs +3 -0
- package/dist/lib/src/components/tooltip/CdrTooltip.mjs +126 -0
- package/dist/lib/src/components/tooltip/styles/CdrTooltip.mjs +3 -0
- package/dist/lib/src/index.mjs +211 -0
- package/dist/lib/src/mixins/breakpoints.mjs +26 -0
- package/dist/lib/src/mixins/buildClass.mjs +97 -0
- package/dist/lib/src/mixins/fullWidth.mjs +47 -0
- package/dist/lib/src/mixins/modifier.mjs +22 -0
- package/dist/lib/src/mixins/size.mjs +39 -0
- package/dist/lib/src/utils/propValidator.mjs +27 -0
- package/dist/style/cdr-accordion-group.css +1 -0
- package/dist/style/cdr-accordion.css +1 -0
- package/dist/style/cdr-banner-vars.css +0 -0
- package/dist/style/cdr-banner.css +1 -0
- package/dist/style/cdr-breadcrumb.css +1 -0
- package/dist/style/cdr-button.css +1 -0
- package/dist/style/cdr-caption.css +1 -0
- package/dist/style/cdr-card.css +1 -0
- package/dist/style/cdr-checkbox.css +1 -0
- package/dist/style/cdr-chip-group.css +1 -0
- package/dist/style/cdr-chip.css +1 -0
- package/dist/style/cdr-col.css +1 -0
- package/dist/style/cdr-container.css +1 -0
- package/dist/style/cdr-form-error.css +1 -0
- package/dist/style/cdr-form-group.css +1 -0
- package/dist/style/cdr-grid.css +1 -0
- package/dist/style/cdr-icon.css +1 -0
- package/dist/style/cdr-img.css +1 -0
- package/dist/style/cdr-input.css +1 -0
- package/dist/style/cdr-label-standalone.css +1 -0
- package/dist/style/cdr-label-wrapper.css +1 -0
- package/dist/style/cdr-link.css +1 -0
- package/dist/style/cdr-list.css +1 -0
- package/dist/style/cdr-modal.css +1 -0
- package/dist/style/cdr-pagination.css +1 -0
- package/dist/style/cdr-popover.css +1 -0
- package/dist/style/cdr-popup.css +1 -0
- package/dist/style/cdr-quote.css +1 -0
- package/dist/style/cdr-radio.css +1 -0
- package/dist/style/cdr-rating.css +1 -0
- package/dist/style/cdr-row.css +1 -0
- package/dist/style/cdr-select.css +1 -0
- package/dist/style/cdr-tab-panel.css +1 -0
- package/dist/style/cdr-table.css +1 -0
- package/dist/style/cdr-tabs.css +1 -0
- package/dist/style/cdr-text.css +1 -0
- package/dist/style/cdr-toast.css +1 -0
- package/dist/style/cdr-tooltip.css +1 -0
- package/dist/style/cedar-full.css +39 -0
- package/dist/style/reset.css +1 -0
- package/dist/svg/icon-error.svg +5 -0
- package/dist/svg/star-0.svg +6 -0
- package/dist/svg/star-100.svg +6 -0
- package/dist/svg/star-25.svg +7 -0
- package/dist/svg/star-50.svg +7 -0
- package/dist/svg/star-75.svg +7 -0
- package/dist/svg/star-null.svg +6 -0
- package/package.json +162 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import _Object$getOwnPropertySymbols from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
|
|
2
|
+
import _filterInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/filter';
|
|
3
|
+
import _Object$getOwnPropertyDescriptors from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors';
|
|
4
|
+
import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
|
|
5
|
+
import CdrIcon from '../CdrIcon.mjs';
|
|
6
|
+
|
|
7
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); if (enumerableOnly) { symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
8
|
+
|
|
9
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (_Object$getOwnPropertyDescriptors) { Object.defineProperties(target, _Object$getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
10
|
+
var zoomOut = {
|
|
11
|
+
name: 'IconZoomOut',
|
|
12
|
+
components: {
|
|
13
|
+
CdrIcon
|
|
14
|
+
},
|
|
15
|
+
extends: CdrIcon,
|
|
16
|
+
|
|
17
|
+
render() {
|
|
18
|
+
var h = arguments[0];
|
|
19
|
+
return h("cdr-icon", {
|
|
20
|
+
"props": _objectSpread({}, this.$props),
|
|
21
|
+
"attrs": _objectSpread({}, this.$attrs)
|
|
22
|
+
}, [this.$slots.default, h("path", {
|
|
23
|
+
"attrs": {
|
|
24
|
+
"role": "presentation",
|
|
25
|
+
"d": "M20.706 19.296a1 1 0 01-1.414 1.414l-4.243-4.247a7.5 7.5 0 111.414-1.414l4.243 4.247zM10.5 16a5.5 5.5 0 100-11 5.5 5.5 0 000 11zM7.25 9.75h6.5a.75.75 0 110 1.5h-6.5a.75.75 0 110-1.5z"
|
|
26
|
+
}
|
|
27
|
+
})]);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export default zoomOut;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var modules_195b2ee1 = {"cdr-icon":"cdr-icon_11-0-0-alpha-0","cdr-icon--small":"cdr-icon--small_11-0-0-alpha-0","cdr-icon--large":"cdr-icon--large_11-0-0-alpha-0","cdr-icon--small@xs":"cdr-icon--small@xs_11-0-0-alpha-0","cdr-icon--large@xs":"cdr-icon--large@xs_11-0-0-alpha-0","cdr-icon--small@sm":"cdr-icon--small@sm_11-0-0-alpha-0","cdr-icon--large@sm":"cdr-icon--large@sm_11-0-0-alpha-0","cdr-icon--small@md":"cdr-icon--small@md_11-0-0-alpha-0","cdr-icon--large@md":"cdr-icon--large@md_11-0-0-alpha-0","cdr-icon--small@lg":"cdr-icon--small@lg_11-0-0-alpha-0","cdr-icon--large@lg":"cdr-icon--large@lg_11-0-0-alpha-0","cdr-icon--inherit-color":"cdr-icon--inherit-color_11-0-0-alpha-0"};
|
|
2
|
+
|
|
3
|
+
export default modules_195b2ee1;
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import _Object$getOwnPropertySymbols from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
|
|
2
|
+
import _filterInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/filter';
|
|
3
|
+
import _Object$getOwnPropertyDescriptors from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors';
|
|
4
|
+
import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
|
|
5
|
+
import _slicedToArray from '@babel/runtime-corejs3/helpers/esm/slicedToArray';
|
|
6
|
+
import clsx from 'clsx';
|
|
7
|
+
import modifier from '../../mixins/modifier.mjs';
|
|
8
|
+
import modules_c2c0e66d from './styles/CdrImg.mjs';
|
|
9
|
+
|
|
10
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); if (enumerableOnly) { symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
11
|
+
|
|
12
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (_Object$getOwnPropertyDescriptors) { Object.defineProperties(target, _Object$getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
13
|
+
var CdrImg = {
|
|
14
|
+
name: 'CdrImg',
|
|
15
|
+
mixins: [modifier],
|
|
16
|
+
inheritAttrs: false,
|
|
17
|
+
props: {
|
|
18
|
+
/**
|
|
19
|
+
* Required. Image source url.
|
|
20
|
+
*/
|
|
21
|
+
src: {
|
|
22
|
+
type: String,
|
|
23
|
+
required: true
|
|
24
|
+
},
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Required. Image alt text.
|
|
28
|
+
*/
|
|
29
|
+
alt: {
|
|
30
|
+
type: String,
|
|
31
|
+
default: ''
|
|
32
|
+
},
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Aspect ratio of the media container. {auto, square, 1-2, 2-3, 3-4, 9-16, 2-1, 3-2, 4-3, 16-9}
|
|
36
|
+
*/
|
|
37
|
+
ratio: {
|
|
38
|
+
type: String,
|
|
39
|
+
validator: function validator(value) {
|
|
40
|
+
return ['auto', 'square', '1-2', '2-3', '3-4', '9-16', '2-1', '3-2', '4-3', '16-9'].indexOf(value) >= 0 || false;
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Requires a `ratio`. Area to crop the image overflow to. {left, center, right} {top, center, bottom}
|
|
46
|
+
*/
|
|
47
|
+
crop: {
|
|
48
|
+
type: String
|
|
49
|
+
},
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Requires a `ratio`. Scale the image to be as large as possible to fill the area (background-position: cover;)
|
|
53
|
+
*/
|
|
54
|
+
cover: {
|
|
55
|
+
type: Boolean
|
|
56
|
+
},
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Sets a border radius to an element {square, top, right, bottom, left}
|
|
60
|
+
*/
|
|
61
|
+
radius: {
|
|
62
|
+
type: String,
|
|
63
|
+
validator: function validator(value) {
|
|
64
|
+
return ['circle', 'rounded'].indexOf(value) >= 0 || false;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
|
|
69
|
+
data() {
|
|
70
|
+
return {
|
|
71
|
+
style: modules_c2c0e66d
|
|
72
|
+
};
|
|
73
|
+
},
|
|
74
|
+
|
|
75
|
+
computed: {
|
|
76
|
+
baseClass() {
|
|
77
|
+
return 'cdr-image';
|
|
78
|
+
},
|
|
79
|
+
|
|
80
|
+
radiusClass() {
|
|
81
|
+
return this.radius ? this.style["cdr-image--".concat(this.radius)] : '';
|
|
82
|
+
},
|
|
83
|
+
|
|
84
|
+
coverClass() {
|
|
85
|
+
var classObj = {};
|
|
86
|
+
classObj[this.style['cdr-image-ratio__cover']] = true;
|
|
87
|
+
classObj[this.style['cdr-image-ratio__cover--crop']] = this.crop;
|
|
88
|
+
classObj[this.style['cdr-image-ratio__cover--cover']] = this.cover;
|
|
89
|
+
return classObj;
|
|
90
|
+
},
|
|
91
|
+
|
|
92
|
+
cropObject() {
|
|
93
|
+
return {
|
|
94
|
+
objectPosition: this.crop
|
|
95
|
+
};
|
|
96
|
+
},
|
|
97
|
+
|
|
98
|
+
ratioObject() {
|
|
99
|
+
var ratioPct;
|
|
100
|
+
|
|
101
|
+
if (this.ratio === 'square') {
|
|
102
|
+
ratioPct = '100%';
|
|
103
|
+
} else if (this.ratio === 'auto') {
|
|
104
|
+
ratioPct = '0';
|
|
105
|
+
} else {
|
|
106
|
+
var _this$ratio$split = this.ratio.split('-'),
|
|
107
|
+
_this$ratio$split2 = _slicedToArray(_this$ratio$split, 2),
|
|
108
|
+
x = _this$ratio$split2[0],
|
|
109
|
+
y = _this$ratio$split2[1];
|
|
110
|
+
|
|
111
|
+
ratioPct = "".concat(y / x * 100, "%");
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
return {
|
|
115
|
+
'--ratio': ratioPct
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
},
|
|
120
|
+
|
|
121
|
+
render() {
|
|
122
|
+
var h = arguments[0];
|
|
123
|
+
|
|
124
|
+
if (this.ratio) {
|
|
125
|
+
return h("div", {
|
|
126
|
+
"style": this.ratioObject,
|
|
127
|
+
"class": this.style['cdr-image-ratio']
|
|
128
|
+
}, [h("img", {
|
|
129
|
+
"style": this.cropObject,
|
|
130
|
+
"class": clsx(this.style[this.baseClass], this.modifierClass, this.radiusClass, this.coverClass),
|
|
131
|
+
"attrs": _objectSpread({
|
|
132
|
+
"src": this.src,
|
|
133
|
+
"alt": this.alt
|
|
134
|
+
}, this.$attrs),
|
|
135
|
+
"on": _objectSpread({}, this.$listeners)
|
|
136
|
+
})]);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
return h("img", {
|
|
140
|
+
"class": clsx(this.style[this.baseClass], this.modifierClass, this.radiusClass),
|
|
141
|
+
"attrs": _objectSpread({
|
|
142
|
+
"src": this.src,
|
|
143
|
+
"alt": this.alt
|
|
144
|
+
}, this.$attrs),
|
|
145
|
+
"on": _objectSpread({}, this.$listeners)
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
export default CdrImg;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var modules_c2c0e66d = {"cdr-image":"cdr-image_11-0-0-alpha-0","cdr-image--responsive":"cdr-image--responsive_11-0-0-alpha-0","cdr-image--rounded":"cdr-image--rounded_11-0-0-alpha-0","cdr-image--circle":"cdr-image--circle_11-0-0-alpha-0","cdr-image-ratio":"cdr-image-ratio_11-0-0-alpha-0","cdr-image-ratio__cover":"cdr-image-ratio__cover_11-0-0-alpha-0","cdr-image-ratio__cover--crop":"cdr-image-ratio__cover--crop_11-0-0-alpha-0","cdr-image-ratio__cover--cover":"cdr-image-ratio__cover--cover_11-0-0-alpha-0"};
|
|
2
|
+
|
|
3
|
+
export default modules_c2c0e66d;
|
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
import _Object$getOwnPropertySymbols from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
|
|
2
|
+
import _Object$getOwnPropertyDescriptors from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors';
|
|
3
|
+
import _mergeJSXProps from '@vue/babel-helper-vue-jsx-merge-props';
|
|
4
|
+
import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
|
|
5
|
+
import _filterInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/filter';
|
|
6
|
+
import clsx from 'clsx';
|
|
7
|
+
import size from '../../mixins/size.mjs';
|
|
8
|
+
import validateProp from '../../utils/propValidator.mjs';
|
|
9
|
+
import CdrLabelStandalone from '../labelStandalone/CdrLabelStandalone.mjs';
|
|
10
|
+
import CdrFormError from '../formError/CdrFormError.mjs';
|
|
11
|
+
import modules_3bf8b288 from './styles/CdrInput.mjs';
|
|
12
|
+
|
|
13
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); if (enumerableOnly) { symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
14
|
+
|
|
15
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (_Object$getOwnPropertyDescriptors) { Object.defineProperties(target, _Object$getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
16
|
+
/**
|
|
17
|
+
* Cedar 2 component for input
|
|
18
|
+
* **NOTE:** `v-model` is required.
|
|
19
|
+
* @version 1.0.0
|
|
20
|
+
* @author [REI Software Engineering](https://rei.github.io/rei-cedar/)
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
var CdrInput = {
|
|
24
|
+
name: 'CdrInput',
|
|
25
|
+
components: {
|
|
26
|
+
CdrLabelStandalone,
|
|
27
|
+
CdrFormError
|
|
28
|
+
},
|
|
29
|
+
mixins: [size],
|
|
30
|
+
inheritAttrs: false,
|
|
31
|
+
props: {
|
|
32
|
+
/**
|
|
33
|
+
* `id` for the input that is mapped to the label `for` attribute.
|
|
34
|
+
* If one is not provided, it will be auto generated.
|
|
35
|
+
*/
|
|
36
|
+
id: String,
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* 'type' attribute for the input as defined by w3c.
|
|
40
|
+
* Only supporting text|email|number|password|search|url.
|
|
41
|
+
* The increment/decrement webkit psuedo element is hidden for number.
|
|
42
|
+
*/
|
|
43
|
+
type: {
|
|
44
|
+
type: [String],
|
|
45
|
+
default: 'text',
|
|
46
|
+
validator: function validator(value) {
|
|
47
|
+
return validateProp(value, ['text', 'email', 'number', 'password', 'search', 'url', 'tel']);
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Label text. This is required for a11y even if hiding the label with `hideLabel`.
|
|
53
|
+
*/
|
|
54
|
+
label: {
|
|
55
|
+
type: String,
|
|
56
|
+
required: true
|
|
57
|
+
},
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Override the error message role, default is `status`.
|
|
61
|
+
*/
|
|
62
|
+
errorRole: {
|
|
63
|
+
type: String,
|
|
64
|
+
required: false,
|
|
65
|
+
default: 'status'
|
|
66
|
+
},
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Removes the label element but sets the input `aria-label` to `label` text for a11y.
|
|
70
|
+
*/
|
|
71
|
+
hideLabel: Boolean,
|
|
72
|
+
// sets default attrs for inputs that should use a numeric keyboard but are not strictly "numbers" (security code, CC number, postal code)
|
|
73
|
+
numeric: {
|
|
74
|
+
type: Boolean,
|
|
75
|
+
default: false
|
|
76
|
+
},
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Number of rows for input. Converts component to text-area if rows greater than 1.
|
|
80
|
+
*/
|
|
81
|
+
rows: Number,
|
|
82
|
+
// Set which background type the input renders on
|
|
83
|
+
background: {
|
|
84
|
+
type: [String],
|
|
85
|
+
default: 'primary',
|
|
86
|
+
validator: function validator(value) {
|
|
87
|
+
return validateProp(value, ['primary', 'secondary']);
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
// Set error styling
|
|
91
|
+
error: {
|
|
92
|
+
type: [Boolean, String],
|
|
93
|
+
default: false
|
|
94
|
+
},
|
|
95
|
+
disabled: Boolean,
|
|
96
|
+
required: Boolean,
|
|
97
|
+
optional: Boolean,
|
|
98
|
+
value: {
|
|
99
|
+
type: [String, Number]
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
|
|
103
|
+
data() {
|
|
104
|
+
return {
|
|
105
|
+
style: modules_3bf8b288,
|
|
106
|
+
isFocused: false
|
|
107
|
+
};
|
|
108
|
+
},
|
|
109
|
+
|
|
110
|
+
computed: {
|
|
111
|
+
// Use given id or generate one
|
|
112
|
+
inputId() {
|
|
113
|
+
return this.id ? this.id : this._uid; // eslint-disable-line no-underscore-dangle
|
|
114
|
+
},
|
|
115
|
+
|
|
116
|
+
baseClass() {
|
|
117
|
+
return 'cdr-input';
|
|
118
|
+
},
|
|
119
|
+
|
|
120
|
+
inputAttrs() {
|
|
121
|
+
var isNum = this.numeric || this.type === 'number';
|
|
122
|
+
return _objectSpread({
|
|
123
|
+
pattern: isNum && '[0-9]*',
|
|
124
|
+
inputmode: isNum && 'numeric',
|
|
125
|
+
novalidate: isNum,
|
|
126
|
+
autocorrect: 'off',
|
|
127
|
+
spellcheck: 'false',
|
|
128
|
+
autocapitalize: 'off'
|
|
129
|
+
}, this.$attrs);
|
|
130
|
+
},
|
|
131
|
+
|
|
132
|
+
inputClass() {
|
|
133
|
+
var hasPostIcon = !!this.$slots['post-icon'];
|
|
134
|
+
var hasPostIcons = hasPostIcon && this.$slots['post-icon'].length > 1;
|
|
135
|
+
return {
|
|
136
|
+
[this.style['cdr-input']]: true,
|
|
137
|
+
[this.style['cdr-input--multiline']]: this.rows > 1,
|
|
138
|
+
[this.style['cdr-input--preicon']]: this.$slots['pre-icon'],
|
|
139
|
+
[this.style['cdr-input--posticon']]: hasPostIcon,
|
|
140
|
+
[this.style['cdr-input--posticons']]: hasPostIcons,
|
|
141
|
+
[this.style['cdr-input--error']]: this.error,
|
|
142
|
+
[this.style["cdr-input--".concat(this.background)]]: true
|
|
143
|
+
};
|
|
144
|
+
},
|
|
145
|
+
|
|
146
|
+
wrapperClass() {
|
|
147
|
+
return {
|
|
148
|
+
[this.style['cdr-input-wrap']]: true,
|
|
149
|
+
[this.style['cdr-input--focus']]: this.isFocused
|
|
150
|
+
};
|
|
151
|
+
},
|
|
152
|
+
|
|
153
|
+
describedby() {
|
|
154
|
+
var _context;
|
|
155
|
+
|
|
156
|
+
return _filterInstanceProperty(_context = [this.$slots['helper-text-top'] ? "".concat(this.inputId, "-helper-text-top") : '', this.$slots['helper-text-bottom'] ? "".concat(this.inputId, "-helper-text-bottom") : '', this.$attrs['aria-describedby']]).call(_context, function (x) {
|
|
157
|
+
return x;
|
|
158
|
+
}).join(' ');
|
|
159
|
+
},
|
|
160
|
+
|
|
161
|
+
inputListeners() {
|
|
162
|
+
// https://vuejs.org/v2/guide/components-custom-events.html#Binding-Native-Events-to-Components
|
|
163
|
+
// handles conflict between v-model and v-on="$listeners"
|
|
164
|
+
var vm = this;
|
|
165
|
+
return _objectSpread(_objectSpread({}, this.$listeners), {}, {
|
|
166
|
+
input(event) {
|
|
167
|
+
vm.$emit('input', event.target.value);
|
|
168
|
+
},
|
|
169
|
+
|
|
170
|
+
focus(event) {
|
|
171
|
+
vm.isFocused = true;
|
|
172
|
+
vm.$emit('focus', event);
|
|
173
|
+
},
|
|
174
|
+
|
|
175
|
+
blur(event) {
|
|
176
|
+
vm.isFocused = false;
|
|
177
|
+
vm.$emit('blur', event);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
});
|
|
181
|
+
},
|
|
182
|
+
|
|
183
|
+
inputEl() {
|
|
184
|
+
var _this = this;
|
|
185
|
+
|
|
186
|
+
var h = this.$createElement;
|
|
187
|
+
|
|
188
|
+
if (this.rows && this.rows > 1) {
|
|
189
|
+
return h("textarea", _mergeJSXProps([{
|
|
190
|
+
"on": _objectSpread({
|
|
191
|
+
"input": function input($event) {
|
|
192
|
+
if ($event.target.composing) return;
|
|
193
|
+
_this.value = $event.target.value;
|
|
194
|
+
}
|
|
195
|
+
}, this.inputListeners),
|
|
196
|
+
"attrs": _objectSpread(_objectSpread({
|
|
197
|
+
"rows": this.rows,
|
|
198
|
+
"id": this.inputId,
|
|
199
|
+
"disabled": this.disabled,
|
|
200
|
+
"aria-required": this.required,
|
|
201
|
+
"aria-invalid": !!this.error,
|
|
202
|
+
"aria-errormessage": !!this.error && "".concat(this.inputId, "-error")
|
|
203
|
+
}, this.inputAttrs), {}, {
|
|
204
|
+
"aria-describedby": this.describedby || false
|
|
205
|
+
}),
|
|
206
|
+
"class": clsx(this.inputClass, this.sizeClass),
|
|
207
|
+
"ref": "input",
|
|
208
|
+
"domProps": {
|
|
209
|
+
"value": _this.value
|
|
210
|
+
}
|
|
211
|
+
}, {
|
|
212
|
+
directives: [{
|
|
213
|
+
name: "model",
|
|
214
|
+
value: _this.value,
|
|
215
|
+
modifiers: {}
|
|
216
|
+
}]
|
|
217
|
+
}]));
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
return h("input", _mergeJSXProps([{
|
|
221
|
+
"on": _objectSpread({
|
|
222
|
+
"input": function input($event) {
|
|
223
|
+
if ($event.target.composing) return;
|
|
224
|
+
_this.value = $event.target.value;
|
|
225
|
+
}
|
|
226
|
+
}, this.inputListeners),
|
|
227
|
+
"attrs": _objectSpread(_objectSpread({
|
|
228
|
+
"type": this.type,
|
|
229
|
+
"id": this.inputId,
|
|
230
|
+
"disabled": this.disabled,
|
|
231
|
+
"aria-required": this.required,
|
|
232
|
+
"aria-invalid": !!this.error,
|
|
233
|
+
"aria-errormessage": !!this.error && "".concat(this.inputId, "-error")
|
|
234
|
+
}, this.inputAttrs), {}, {
|
|
235
|
+
"aria-describedby": this.describedby || false
|
|
236
|
+
}),
|
|
237
|
+
"class": clsx(this.inputClass, this.sizeClass),
|
|
238
|
+
"ref": "input",
|
|
239
|
+
"domProps": {
|
|
240
|
+
"value": _this.value
|
|
241
|
+
}
|
|
242
|
+
}, {
|
|
243
|
+
directives: [{
|
|
244
|
+
name: "model",
|
|
245
|
+
value: _this.value,
|
|
246
|
+
modifiers: {}
|
|
247
|
+
}]
|
|
248
|
+
}]));
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
},
|
|
252
|
+
|
|
253
|
+
render() {
|
|
254
|
+
var h = arguments[0];
|
|
255
|
+
return h("cdr-label-standalone", {
|
|
256
|
+
"attrs": {
|
|
257
|
+
"for-id": "".concat(this.inputId),
|
|
258
|
+
"label": this.label,
|
|
259
|
+
"hide-label": this.hideLabel,
|
|
260
|
+
"required": this.required,
|
|
261
|
+
"optional": this.optional,
|
|
262
|
+
"disabled": this.disabled
|
|
263
|
+
}
|
|
264
|
+
}, [this.$slots['helper-text-top'] && h("template", {
|
|
265
|
+
"slot": "helper"
|
|
266
|
+
}, [this.$slots['helper-text-top']]), this.$slots.info && h("template", {
|
|
267
|
+
"slot": "info"
|
|
268
|
+
}, [this.$slots.info]), h("div", {
|
|
269
|
+
"class": this.wrapperClass
|
|
270
|
+
}, [this.inputEl, this.$slots['pre-icon'] && h("span", {
|
|
271
|
+
"class": this.style['cdr-input__pre-icon']
|
|
272
|
+
}, [this.$slots['pre-icon']]), this.$slots['post-icon'] && h("span", {
|
|
273
|
+
"class": this.style['cdr-input__post-icon']
|
|
274
|
+
}, [this.$slots['post-icon']])]), this.$slots['info-action'] && h("template", {
|
|
275
|
+
"slot": "info-action"
|
|
276
|
+
}, [this.$slots['info-action']]), this.$slots['helper-text-bottom'] && !this.error && h("span", {
|
|
277
|
+
"class": this.style['cdr-input__helper-text'],
|
|
278
|
+
"attrs": {
|
|
279
|
+
"id": "".concat(this.inputId, "-helper-text-bottom")
|
|
280
|
+
},
|
|
281
|
+
"slot": "helper-text-bottom"
|
|
282
|
+
}, [this.$slots['helper-text-bottom']]), this.error && h("cdr-form-error", {
|
|
283
|
+
"attrs": {
|
|
284
|
+
"role": this.errorRole,
|
|
285
|
+
"error": this.error,
|
|
286
|
+
"id": "".concat(this.inputId, "-error")
|
|
287
|
+
},
|
|
288
|
+
"slot": "error"
|
|
289
|
+
}, [h("template", {
|
|
290
|
+
"slot": "error"
|
|
291
|
+
}, [this.$slots.error])])]);
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
};
|
|
295
|
+
|
|
296
|
+
export default CdrInput;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var modules_3bf8b288 = {"cdr-input":"cdr-input_11-0-0-alpha-0","cdr-input--focus":"cdr-input--focus_11-0-0-alpha-0","cdr-input--multiline":"cdr-input--multiline_11-0-0-alpha-0","cdr-input--preicon":"cdr-input--preicon_11-0-0-alpha-0","cdr-input--posticon":"cdr-input--posticon_11-0-0-alpha-0","cdr-input--posticons":"cdr-input--posticons_11-0-0-alpha-0","cdr-input--primary":"cdr-input--primary_11-0-0-alpha-0","cdr-input--secondary":"cdr-input--secondary_11-0-0-alpha-0","cdr-input--error":"cdr-input--error_11-0-0-alpha-0","cdr-input--large":"cdr-input--large_11-0-0-alpha-0","cdr-input--large@xs":"cdr-input--large@xs_11-0-0-alpha-0","cdr-input--large@sm":"cdr-input--large@sm_11-0-0-alpha-0","cdr-input--large@md":"cdr-input--large@md_11-0-0-alpha-0","cdr-input--large@lg":"cdr-input--large@lg_11-0-0-alpha-0","cdr-input__pre-icon":"cdr-input__pre-icon_11-0-0-alpha-0","cdr-input__post-icon":"cdr-input__post-icon_11-0-0-alpha-0","cdr-input__helper-text":"cdr-input__helper-text_11-0-0-alpha-0","cdr-input-wrap":"cdr-input-wrap_11-0-0-alpha-0"};
|
|
2
|
+
|
|
3
|
+
export default modules_3bf8b288;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import modules_2157aaf7 from './styles/CdrLabelStandalone.mjs';
|
|
2
|
+
|
|
3
|
+
var CdrLabelStandalone = {
|
|
4
|
+
name: 'CdrLabelStandalone',
|
|
5
|
+
props: {
|
|
6
|
+
forId: {
|
|
7
|
+
type: String,
|
|
8
|
+
required: true
|
|
9
|
+
},
|
|
10
|
+
label: String,
|
|
11
|
+
disabled: Boolean,
|
|
12
|
+
required: Boolean,
|
|
13
|
+
optional: Boolean,
|
|
14
|
+
hideLabel: Boolean
|
|
15
|
+
},
|
|
16
|
+
|
|
17
|
+
data() {
|
|
18
|
+
return {
|
|
19
|
+
style: modules_2157aaf7
|
|
20
|
+
};
|
|
21
|
+
},
|
|
22
|
+
|
|
23
|
+
computed: {
|
|
24
|
+
labelClass() {
|
|
25
|
+
return {
|
|
26
|
+
[this.style['cdr-label-standalone__label']]: true,
|
|
27
|
+
[this.style['cdr-label-standalone__label--disabled']]: this.disabled,
|
|
28
|
+
[this.style['cdr-label-standalone__label--sr-only']]: this.hideLabel
|
|
29
|
+
};
|
|
30
|
+
},
|
|
31
|
+
|
|
32
|
+
inputClass() {
|
|
33
|
+
var hasLabelContent = !this.hideLabel || this.$slots.helper || this.$slots.info;
|
|
34
|
+
return {
|
|
35
|
+
[this.style['cdr-label-standalone__input-wrap']]: true,
|
|
36
|
+
[this.style['cdr-label-standalone__input-spacing']]: hasLabelContent
|
|
37
|
+
};
|
|
38
|
+
},
|
|
39
|
+
|
|
40
|
+
labelEl() {
|
|
41
|
+
var h = this.$createElement;
|
|
42
|
+
var requiredEl = this.required ? h("span", {
|
|
43
|
+
"attrs": {
|
|
44
|
+
"aria-label": "required"
|
|
45
|
+
}
|
|
46
|
+
}, ["*"]) : '';
|
|
47
|
+
var optionalEl = this.optional ? h("span", {
|
|
48
|
+
"class": this.style['cdr-label-standalone__optional']
|
|
49
|
+
}, ["(optional)"]) : '';
|
|
50
|
+
return h("label", {
|
|
51
|
+
"class": this.labelClass,
|
|
52
|
+
"attrs": {
|
|
53
|
+
"for": this.forId
|
|
54
|
+
},
|
|
55
|
+
"ref": "label"
|
|
56
|
+
}, [this.label, requiredEl || optionalEl ? ' ' : '', requiredEl || optionalEl]);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
},
|
|
60
|
+
|
|
61
|
+
render() {
|
|
62
|
+
var h = arguments[0];
|
|
63
|
+
return h("div", {
|
|
64
|
+
"class": this.style['cdr-label-standalone']
|
|
65
|
+
}, [h("div", {
|
|
66
|
+
"class": this.style['cdr-label-standalone__label-wrapper']
|
|
67
|
+
}, [this.labelEl, !this.hideLabel && this.$slots.helper && h("br"), this.$slots.helper && h("span", {
|
|
68
|
+
"class": this.style['cdr-label-standalone__helper'],
|
|
69
|
+
"attrs": {
|
|
70
|
+
"id": "".concat(this.forId, "-helper-text-top")
|
|
71
|
+
}
|
|
72
|
+
}, [this.$slots.helper])]), h("div", {
|
|
73
|
+
"class": this.inputClass
|
|
74
|
+
}, [this.$slots.default, this.$slots['info-action'] && h("div", {
|
|
75
|
+
"class": this.style['cdr-label-standalone__info-action']
|
|
76
|
+
}, [this.$slots['info-action']])]), this.$slots.info && h("span", {
|
|
77
|
+
"class": this.style['cdr-label-standalone__info']
|
|
78
|
+
}, [this.$slots.info]), h("div", {
|
|
79
|
+
"class": this.style['cdr-label-standalone__post-content']
|
|
80
|
+
}, [this.$slots['helper-text-bottom'], this.$slots.error])]);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
export default CdrLabelStandalone;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var modules_2157aaf7 = {"cdr-label-standalone":"cdr-label-standalone_11-0-0-alpha-0","cdr-label-standalone__label-wrapper":"cdr-label-standalone__label-wrapper_11-0-0-alpha-0","cdr-label-standalone__label":"cdr-label-standalone__label_11-0-0-alpha-0","cdr-label-standalone__label--sr-only":"cdr-label-standalone__label--sr-only_11-0-0-alpha-0","cdr-label-standalone__label--disabled":"cdr-label-standalone__label--disabled_11-0-0-alpha-0","cdr-label-standalone__optional":"cdr-label-standalone__optional_11-0-0-alpha-0","cdr-label-standalone__helper":"cdr-label-standalone__helper_11-0-0-alpha-0","cdr-label-standalone__info":"cdr-label-standalone__info_11-0-0-alpha-0","cdr-label-standalone__post-content":"cdr-label-standalone__post-content_11-0-0-alpha-0","cdr-label-standalone__info-action":"cdr-label-standalone__info-action_11-0-0-alpha-0","cdr-label-standalone__input-wrap":"cdr-label-standalone__input-wrap_11-0-0-alpha-0","cdr-label-standalone__input-spacing":"cdr-label-standalone__input-spacing_11-0-0-alpha-0"};
|
|
2
|
+
|
|
3
|
+
export default modules_2157aaf7;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import clsx from 'clsx';
|
|
2
|
+
import modules_fba16867 from './styles/CdrLabelWrapper.mjs';
|
|
3
|
+
import modifier from '../../mixins/modifier.mjs';
|
|
4
|
+
import size from '../../mixins/size.mjs';
|
|
5
|
+
import validateProp from '../../utils/propValidator.mjs';
|
|
6
|
+
|
|
7
|
+
var CdrLabelWrapper = {
|
|
8
|
+
name: 'CdrLabelWrapper',
|
|
9
|
+
mixins: [modifier, size],
|
|
10
|
+
inheritAttrs: false,
|
|
11
|
+
props: {
|
|
12
|
+
labelClass: String,
|
|
13
|
+
contentClass: String,
|
|
14
|
+
background: {
|
|
15
|
+
type: [String],
|
|
16
|
+
default: 'primary',
|
|
17
|
+
validator: function validator(value) {
|
|
18
|
+
return validateProp(value, ['primary', 'secondary']);
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
disabled: Boolean
|
|
22
|
+
},
|
|
23
|
+
|
|
24
|
+
data() {
|
|
25
|
+
return {
|
|
26
|
+
style: modules_fba16867
|
|
27
|
+
};
|
|
28
|
+
},
|
|
29
|
+
|
|
30
|
+
computed: {
|
|
31
|
+
baseClass() {
|
|
32
|
+
return 'cdr-label-wrapper';
|
|
33
|
+
},
|
|
34
|
+
|
|
35
|
+
disabledClass() {
|
|
36
|
+
return this.disabled ? this.style['cdr-label-wrapper--disabled'] : '';
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
},
|
|
40
|
+
|
|
41
|
+
render() {
|
|
42
|
+
var h = arguments[0];
|
|
43
|
+
return h("div", {
|
|
44
|
+
"class": this.style['cdr-label-wrapper__container']
|
|
45
|
+
}, [h("label", {
|
|
46
|
+
"class": clsx(this.style['cdr-label-wrapper'], this.style["cdr-label-wrapper--".concat(this.background)], this.disabledClass, this.modifierClass, this.sizeClass, this.labelClass)
|
|
47
|
+
}, [this.$slots.input, h("span", {
|
|
48
|
+
"class": this.style['cdr-label-wrapper__figure']
|
|
49
|
+
}), h("div", {
|
|
50
|
+
"class": clsx(this.style['cdr-label-wrapper__content'], this.contentClass)
|
|
51
|
+
}, [this.$slots.default])])]);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
export default CdrLabelWrapper;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var modules_fba16867 = {"cdr-label-wrapper":"cdr-label-wrapper_11-0-0-alpha-0","cdr-label-wrapper__container":"cdr-label-wrapper__container_11-0-0-alpha-0","cdr-label-wrapper--primary":"cdr-label-wrapper--primary_11-0-0-alpha-0","cdr-label-wrapper--secondary":"cdr-label-wrapper--secondary_11-0-0-alpha-0","cdr-label-wrapper--disabled":"cdr-label-wrapper--disabled_11-0-0-alpha-0","cdr-label-wrapper__figure":"cdr-label-wrapper__figure_11-0-0-alpha-0","cdr-label-wrapper__content":"cdr-label-wrapper__content_11-0-0-alpha-0","cdr-label-wrapper--hide-figure":"cdr-label-wrapper--hide-figure_11-0-0-alpha-0","cdr-label-wrapper--small":"cdr-label-wrapper--small_11-0-0-alpha-0","cdr-label-wrapper--medium":"cdr-label-wrapper--medium_11-0-0-alpha-0","cdr-label-wrapper--large":"cdr-label-wrapper--large_11-0-0-alpha-0","cdr-label-wrapper--small@xs":"cdr-label-wrapper--small@xs_11-0-0-alpha-0","cdr-label-wrapper--medium@xs":"cdr-label-wrapper--medium@xs_11-0-0-alpha-0","cdr-label-wrapper--large@xs":"cdr-label-wrapper--large@xs_11-0-0-alpha-0","cdr-label-wrapper--small@sm":"cdr-label-wrapper--small@sm_11-0-0-alpha-0","cdr-label-wrapper--medium@sm":"cdr-label-wrapper--medium@sm_11-0-0-alpha-0","cdr-label-wrapper--large@sm":"cdr-label-wrapper--large@sm_11-0-0-alpha-0","cdr-label-wrapper--small@md":"cdr-label-wrapper--small@md_11-0-0-alpha-0","cdr-label-wrapper--medium@md":"cdr-label-wrapper--medium@md_11-0-0-alpha-0","cdr-label-wrapper--large@md":"cdr-label-wrapper--large@md_11-0-0-alpha-0","cdr-label-wrapper--small@lg":"cdr-label-wrapper--small@lg_11-0-0-alpha-0","cdr-label-wrapper--medium@lg":"cdr-label-wrapper--medium@lg_11-0-0-alpha-0","cdr-label-wrapper--large@lg":"cdr-label-wrapper--large@lg_11-0-0-alpha-0"};
|
|
2
|
+
|
|
3
|
+
export default modules_fba16867;
|