@designcrowd/fe-shared-lib 1.5.6 → 1.5.7-eng-3522-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/.eslintrc.js +36 -36
- package/.github/workflows/auto-merge.yml +52 -52
- package/.prettierrc.js +7 -7
- package/.storybook/main.ts +36 -36
- package/.storybook/preview-head-master.html +4 -4
- package/.storybook/preview-head-publish-master.html +4 -4
- package/.storybook/preview-head-publish.html +9 -9
- package/.storybook/preview-head.html +9 -9
- package/.storybook/preview.js +53 -53
- package/CLAUDE.md +70 -70
- package/Dockerfile +43 -43
- package/README.md +103 -103
- package/buildspec.yml +47 -47
- package/index.cjs +16 -16
- package/index.js +58 -58
- package/nodemon.translation.json +6 -6
- package/package.json +115 -115
- package/postcss.config.js +5 -5
- package/{dist → public}/css/tailwind-brandCrowd.css +949 -1132
- package/{dist → public}/css/tailwind-brandPage.css +818 -976
- package/{dist → public}/css/tailwind-crazyDomains.css +949 -1132
- package/{dist → public}/css/tailwind-designCom.css +949 -1132
- package/{dist → public}/css/tailwind-designCrowd.css +949 -1132
- package/src/atoms/components/Button/Button.vue +341 -341
- package/src/atoms/components/Button/ButtonVariant.mixin.vue +126 -126
- package/src/atoms/components/Button/Buttons.stories.js +828 -828
- package/src/atoms/components/Button/ButtonsCrazyDomains.stories.js +117 -117
- package/src/atoms/components/Button/variants/ButtonAi.vue +63 -63
- package/src/atoms/components/Button/variants/ButtonDarkModePill.vue +52 -52
- package/src/atoms/components/Button/variants/ButtonFlat.vue +65 -65
- package/src/atoms/components/Button/variants/ButtonGray.vue +64 -64
- package/src/atoms/components/Button/variants/ButtonInfo.vue +51 -51
- package/src/atoms/components/Button/variants/ButtonInfoFilled.vue +63 -63
- package/src/atoms/components/Button/variants/ButtonNoBorder.vue +65 -65
- package/src/atoms/components/Button/variants/ButtonOutline.vue +62 -62
- package/src/atoms/components/Button/variants/ButtonOutlineNoHover.vue +62 -62
- package/src/atoms/components/Button/variants/ButtonOutlinePrimary.vue +53 -53
- package/src/atoms/components/Button/variants/ButtonOutlineSuccess.vue +54 -54
- package/src/atoms/components/Button/variants/ButtonPill.vue +52 -52
- package/src/atoms/components/Button/variants/ButtonPrimary.vue +69 -69
- package/src/atoms/components/Button/variants/ButtonPrimaryWithIcon.vue +68 -68
- package/src/atoms/components/Button/variants/ButtonSecondary.vue +51 -51
- package/src/atoms/components/Button/variants/ButtonSuccess.vue +55 -55
- package/src/atoms/components/Button/variants/ButtonWarning.vue +65 -65
- package/src/atoms/components/Button/variants/crazy-domains/ButtonCrazyDomainsOutline.vue +58 -58
- package/src/atoms/components/Button/variants/crazy-domains/ButtonCrazyDomainsPrimary.vue +38 -38
- package/src/atoms/components/ButtonGroup/ButtonGroup.stories.js +575 -575
- package/src/atoms/components/ButtonGroup/ButtonGroup.vue +200 -200
- package/src/atoms/components/Carousel/Carousel.fixtures.js +53 -53
- package/src/atoms/components/Carousel/Carousel.vue +352 -352
- package/src/atoms/components/Carousel/carousel.stories.js +530 -530
- package/src/atoms/components/Checkbox/Checkbox.mixin.js +57 -57
- package/src/atoms/components/Checkbox/Checkbox.stories.js +340 -340
- package/src/atoms/components/Checkbox/Checkbox.vue +84 -84
- package/src/atoms/components/Checktile/Checktile.stories.js +79 -79
- package/src/atoms/components/Checktile/Checktile.vue +73 -73
- package/src/atoms/components/CollapsiblePanel/CollapsiblePanel.mixin.js +38 -38
- package/src/atoms/components/CollapsiblePanel/CollapsiblePanel.stories.js +53 -53
- package/src/atoms/components/CollapsiblePanel/CollapsiblePanel.vue +33 -33
- package/src/atoms/components/ColorPicker/ColorPicker.stories.js +89 -89
- package/src/atoms/components/ColorPicker/ColorPicker.vue +95 -95
- package/src/atoms/components/CopyToClipboardText/CopyToClipboardText.stories.js +41 -41
- package/src/atoms/components/CopyToClipboardText/CopyToClipboardText.vue +71 -71
- package/src/atoms/components/Dropdown/Dropdown.stories.js +140 -140
- package/src/atoms/components/Dropdown/Dropdown.vue +118 -118
- package/src/atoms/components/Dropdown/DropdownItem.vue +33 -33
- package/src/atoms/components/FormControl/FormControl.mixin.js +136 -136
- package/src/atoms/components/HelloBar/HelloBar.stories.js +195 -195
- package/src/atoms/components/HelloBar/HelloBar.vue +156 -156
- package/src/atoms/components/Icon/Icon.stories.js +401 -400
- package/src/atoms/components/Icon/Icon.vue +850 -848
- package/src/atoms/components/Icon/icons/add-page.vue +6 -6
- package/src/atoms/components/Icon/icons/ai.vue +6 -6
- package/src/atoms/components/Icon/icons/arrow-down.vue +6 -6
- package/src/atoms/components/Icon/icons/arrow-left.vue +7 -7
- package/src/atoms/components/Icon/icons/arrow-right.vue +7 -7
- package/src/atoms/components/Icon/icons/arrow-top-right.vue +6 -6
- package/src/atoms/components/Icon/icons/arrow-up-underline.vue +7 -7
- package/src/atoms/components/Icon/icons/arrow-up.vue +7 -7
- package/src/atoms/components/Icon/icons/attach.vue +6 -6
- package/src/atoms/components/Icon/icons/auth-facebook-white.vue +17 -17
- package/src/atoms/components/Icon/icons/auth-facebook.vue +24 -24
- package/src/atoms/components/Icon/icons/auth-google.vue +32 -32
- package/src/atoms/components/Icon/icons/background.vue +7 -7
- package/src/atoms/components/Icon/icons/badge.vue +7 -7
- package/src/atoms/components/Icon/icons/banner-centered.vue +6 -6
- package/src/atoms/components/Icon/icons/banner-left.vue +6 -6
- package/src/atoms/components/Icon/icons/banner.vue +7 -7
- package/src/atoms/components/Icon/icons/bc-mast.vue +7 -7
- package/src/atoms/components/Icon/icons/briefcase.vue +7 -7
- package/src/atoms/components/Icon/icons/brush.vue +6 -6
- package/src/atoms/components/Icon/icons/business-card-filled.vue +5 -5
- package/src/atoms/components/Icon/icons/business.vue +6 -6
- package/src/atoms/components/Icon/icons/calculator.vue +3 -3
- package/src/atoms/components/Icon/icons/calendar.vue +5 -5
- package/src/atoms/components/Icon/icons/callout-error.vue +6 -6
- package/src/atoms/components/Icon/icons/callout-info.vue +6 -6
- package/src/atoms/components/Icon/icons/callout-success.vue +8 -8
- package/src/atoms/components/Icon/icons/callout-warning.vue +6 -6
- package/src/atoms/components/Icon/icons/cap.vue +22 -22
- package/src/atoms/components/Icon/icons/card.vue +9 -9
- package/src/atoms/components/Icon/icons/cart-empty.vue +9 -9
- package/src/atoms/components/Icon/icons/check-thin.vue +7 -7
- package/src/atoms/components/Icon/icons/check.vue +3 -3
- package/src/atoms/components/Icon/icons/chevron-down.vue +7 -7
- package/src/atoms/components/Icon/icons/chevron-left.vue +7 -7
- package/src/atoms/components/Icon/icons/chevron-right-wide.vue +3 -3
- package/src/atoms/components/Icon/icons/chevron-right.vue +3 -3
- package/src/atoms/components/Icon/icons/chevron-up.vue +7 -7
- package/src/atoms/components/Icon/icons/clipboard-check.vue +6 -6
- package/src/atoms/components/Icon/icons/close.vue +6 -6
- package/src/atoms/components/Icon/icons/community.vue +5 -5
- package/src/atoms/components/Icon/icons/contact-message.vue +10 -10
- package/src/atoms/components/Icon/icons/content.vue +7 -7
- package/src/atoms/components/Icon/icons/copy.vue +10 -10
- package/src/atoms/components/Icon/icons/crazy-domains/filter.vue +6 -6
- package/src/atoms/components/Icon/icons/crazy-domains/globe.vue +6 -6
- package/src/atoms/components/Icon/icons/crazy-domains/home.vue +6 -6
- package/src/atoms/components/Icon/icons/crazy-domains/social-facebook.vue +6 -6
- package/src/atoms/components/Icon/icons/crazy-domains/social-google.vue +6 -6
- package/src/atoms/components/Icon/icons/crazy-domains/social-instagram.vue +6 -6
- package/src/atoms/components/Icon/icons/crazy-domains/social-twitter.vue +6 -6
- package/src/atoms/components/Icon/icons/crazy-domains/social-youtube.vue +6 -6
- package/src/atoms/components/Icon/icons/crop.vue +6 -6
- package/src/atoms/components/Icon/icons/delete.vue +8 -8
- package/src/atoms/components/Icon/icons/designs.vue +6 -6
- package/src/atoms/components/Icon/icons/desktop.vue +7 -7
- package/src/atoms/components/Icon/icons/donate.vue +6 -6
- package/src/atoms/components/Icon/icons/download.vue +5 -5
- package/src/atoms/components/Icon/icons/duplicate.vue +6 -6
- package/src/atoms/components/Icon/icons/edit-line.vue +10 -10
- package/src/atoms/components/Icon/icons/edit.vue +6 -6
- package/src/atoms/components/Icon/icons/ellipsis.vue +6 -6
- package/src/atoms/components/Icon/icons/envelope-email.vue +9 -9
- package/src/atoms/components/Icon/icons/error.vue +8 -8
- package/src/atoms/components/Icon/icons/eye-crossed.vue +7 -7
- package/src/atoms/components/Icon/icons/eye-open.vue +11 -11
- package/src/atoms/components/Icon/icons/fees.vue +6 -6
- package/src/atoms/components/Icon/icons/file.vue +7 -7
- package/src/atoms/components/Icon/icons/filter.vue +7 -7
- package/src/atoms/components/Icon/icons/filters.vue +6 -6
- package/src/atoms/components/Icon/icons/flag.vue +6 -6
- package/src/atoms/components/Icon/icons/flip-horizontal.vue +7 -7
- package/src/atoms/components/Icon/icons/flip-vertical.vue +7 -7
- package/src/atoms/components/Icon/icons/folder.vue +6 -6
- package/src/atoms/components/Icon/icons/footer-centered.vue +7 -7
- package/src/atoms/components/Icon/icons/footer-left.vue +7 -7
- package/src/atoms/components/Icon/icons/form-message.vue +6 -6
- package/src/atoms/components/Icon/icons/form.vue +5 -5
- package/src/atoms/components/Icon/icons/fullscreen-exit.vue +5 -5
- package/src/atoms/components/Icon/icons/fullscreen.vue +5 -5
- package/src/atoms/components/Icon/icons/globe.vue +6 -6
- package/src/atoms/components/Icon/icons/godaddy/logo.vue +5 -5
- package/src/atoms/components/Icon/icons/hamburger.vue +7 -7
- package/src/atoms/components/Icon/icons/home.vue +7 -7
- package/src/atoms/components/Icon/icons/icon-style-circle-bg.vue +22 -22
- package/src/atoms/components/Icon/icons/icon-style-no-bg.vue +16 -16
- package/src/atoms/components/Icon/icons/icon-style-square-bg.vue +22 -22
- package/src/atoms/components/Icon/icons/image-gallery-carousel.vue +7 -7
- package/src/atoms/components/Icon/icons/image-gallery-grid.vue +7 -7
- package/src/atoms/components/Icon/icons/image-gallery-masonry.vue +6 -6
- package/src/atoms/components/Icon/icons/images-gallery.vue +5 -5
- package/src/atoms/components/Icon/icons/images.vue +7 -7
- package/src/atoms/components/Icon/icons/info.vue +9 -9
- package/src/atoms/components/Icon/icons/jobs.vue +8 -8
- package/src/atoms/components/Icon/icons/layer-bring-front.vue +6 -6
- package/src/atoms/components/Icon/icons/layer-send-back.vue +6 -6
- package/src/atoms/components/Icon/icons/layer.vue +6 -6
- package/src/atoms/components/Icon/icons/layout/display-style-about-1.vue +20 -20
- package/src/atoms/components/Icon/icons/layout/display-style-about-2.vue +20 -20
- package/src/atoms/components/Icon/icons/layout/display-style-about-3.vue +20 -20
- package/src/atoms/components/Icon/icons/layout/display-style-about-4.vue +32 -32
- package/src/atoms/components/Icon/icons/layout/display-style-about-5.vue +27 -27
- package/src/atoms/components/Icon/icons/layout/display-style-about-6.vue +27 -27
- package/src/atoms/components/Icon/icons/layout/display-style-banner-1.vue +20 -20
- package/src/atoms/components/Icon/icons/layout/display-style-banner-2.vue +20 -20
- package/src/atoms/components/Icon/icons/layout/display-style-banner-3.vue +20 -20
- package/src/atoms/components/Icon/icons/layout/display-style-banner-4.vue +20 -20
- package/src/atoms/components/Icon/icons/layout/display-style-banner-5.vue +20 -20
- package/src/atoms/components/Icon/icons/layout/display-style-banner-6.vue +27 -27
- package/src/atoms/components/Icon/icons/layout/display-style-banner-7.vue +27 -27
- package/src/atoms/components/Icon/icons/layout/display-style-banner-8.vue +20 -20
- package/src/atoms/components/Icon/icons/layout/display-style-banner-9.vue +20 -20
- package/src/atoms/components/Icon/icons/layout/display-style-contact-1.vue +24 -24
- package/src/atoms/components/Icon/icons/layout/display-style-contact-2.vue +24 -24
- package/src/atoms/components/Icon/icons/layout/display-style-contact-4.vue +24 -24
- package/src/atoms/components/Icon/icons/layout/display-style-contact-5.vue +39 -39
- package/src/atoms/components/Icon/icons/layout/display-style-contact-6.vue +39 -39
- package/src/atoms/components/Icon/icons/layout/footer/display-style-1.vue +7 -7
- package/src/atoms/components/Icon/icons/layout/footer/display-style-2.vue +16 -16
- package/src/atoms/components/Icon/icons/layout/header/desktop-hamburger-display-style-1.vue +17 -17
- package/src/atoms/components/Icon/icons/layout/header/desktop-hamburger-display-style-2.vue +17 -17
- package/src/atoms/components/Icon/icons/layout/header/desktop-tab-display-style-1.vue +17 -17
- package/src/atoms/components/Icon/icons/layout/header/desktop-tab-display-style-2.vue +17 -17
- package/src/atoms/components/Icon/icons/layout/header/desktop-tab-display-style-3.vue +13 -13
- package/src/atoms/components/Icon/icons/layout/header/desktop-tab-display-style-4.vue +13 -13
- package/src/atoms/components/Icon/icons/layout/header/desktop-tab-display-style-5.vue +17 -17
- package/src/atoms/components/Icon/icons/layout/header/desktop-tab-display-style-6.vue +17 -17
- package/src/atoms/components/Icon/icons/layout/header/hamburger-display-style-no-logo-1.vue +16 -16
- package/src/atoms/components/Icon/icons/layout/header/hamburger-display-style-no-logo-2.vue +16 -16
- package/src/atoms/components/Icon/icons/layout/header/hamburger-display-style-no-logo-3.vue +16 -16
- package/src/atoms/components/Icon/icons/layout/header/mobile-hamburger-display-style-1.vue +17 -17
- package/src/atoms/components/Icon/icons/layout/header/mobile-hamburger-display-style-2.vue +17 -17
- package/src/atoms/components/Icon/icons/layout/header/mobile-hamburger-display-style-3.vue +17 -17
- package/src/atoms/components/Icon/icons/layout/header/mobile-hamburger-display-style-4.vue +21 -21
- package/src/atoms/components/Icon/icons/layout/header/mobile-tab-display-style-1.vue +17 -17
- package/src/atoms/components/Icon/icons/layout/header/mobile-tab-display-style-2.vue +17 -17
- package/src/atoms/components/Icon/icons/layout/header/tab-display-style-no-logo-1.vue +16 -16
- package/src/atoms/components/Icon/icons/layout/header/tab-display-style-no-logo-2.vue +16 -16
- package/src/atoms/components/Icon/icons/layout/header/tab-display-style-no-logo-3.vue +16 -16
- package/src/atoms/components/Icon/icons/layout/layout-icon-bottom-normal-text-center-normal.vue +7 -7
- package/src/atoms/components/Icon/icons/layout/layout-icon-bottom-normal-text-center-small.vue +7 -7
- package/src/atoms/components/Icon/icons/layout/layout-icon-bottom-small-text-center-normal.vue +7 -7
- package/src/atoms/components/Icon/icons/layout/layout-icon-center-normal-curved-text-bottom.vue +11 -11
- package/src/atoms/components/Icon/icons/layout/layout-icon-center-normal-curved-text-circle.vue +10 -10
- package/src/atoms/components/Icon/icons/layout/layout-icon-center-normal-curved-text-top.vue +11 -11
- package/src/atoms/components/Icon/icons/layout/layout-icon-left-normal-text-center-normal.vue +7 -7
- package/src/atoms/components/Icon/icons/layout/layout-icon-left-normal-text-justify-normal.vue +7 -7
- package/src/atoms/components/Icon/icons/layout/layout-icon-left-normal-text-left-normal.vue +7 -7
- package/src/atoms/components/Icon/icons/layout/layout-icon-left-small-text-left-normal.vue +7 -7
- package/src/atoms/components/Icon/icons/layout/layout-icon-right-normal-text-center-normal.vue +7 -7
- package/src/atoms/components/Icon/icons/layout/layout-icon-right-normal-text-justify-normal.vue +7 -7
- package/src/atoms/components/Icon/icons/layout/layout-icon-right-normal-text-right-normal.vue +7 -7
- package/src/atoms/components/Icon/icons/layout/layout-icon-right-small-text-right-normal.vue +7 -7
- package/src/atoms/components/Icon/icons/layout/layout-icon-top-normal-text-center-normal.vue +7 -7
- package/src/atoms/components/Icon/icons/layout/layout-icon-top-normal-text-center-small.vue +7 -7
- package/src/atoms/components/Icon/icons/layout/layout-icon-top-normal-text-justify-normal.vue +7 -7
- package/src/atoms/components/Icon/icons/layout/layout-icon-top-small-text-center-normal.vue +7 -7
- package/src/atoms/components/Icon/icons/layout/nav/hamburger/display-style-1.vue +16 -16
- package/src/atoms/components/Icon/icons/layout/nav/hamburger/display-style-2.vue +10 -10
- package/src/atoms/components/Icon/icons/layout/nav/hamburger/display-style-3.vue +10 -10
- package/src/atoms/components/Icon/icons/layout/nav/hamburger/display-style-4.vue +23 -23
- package/src/atoms/components/Icon/icons/layout/nav/tab/display-style-1.vue +16 -16
- package/src/atoms/components/Icon/icons/layout/nav/tab/display-style-2.vue +7 -7
- package/src/atoms/components/Icon/icons/letterhead-filled.vue +5 -5
- package/src/atoms/components/Icon/icons/link.vue +6 -6
- package/src/atoms/components/Icon/icons/location.vue +6 -6
- package/src/atoms/components/Icon/icons/lock.vue +6 -6
- package/src/atoms/components/Icon/icons/mac-command.vue +7 -7
- package/src/atoms/components/Icon/icons/maker/align-center.vue +7 -7
- package/src/atoms/components/Icon/icons/maker/align-justify.vue +7 -7
- package/src/atoms/components/Icon/icons/maker/align-left.vue +7 -7
- package/src/atoms/components/Icon/icons/maker/align-right.vue +7 -7
- package/src/atoms/components/Icon/icons/maker/animate.vue +7 -7
- package/src/atoms/components/Icon/icons/maker/bold.vue +7 -7
- package/src/atoms/components/Icon/icons/maker/custom-landscape.vue +5 -5
- package/src/atoms/components/Icon/icons/maker/email-symbol.vue +5 -5
- package/src/atoms/components/Icon/icons/maker/email.vue +5 -5
- package/src/atoms/components/Icon/icons/maker/eraser.vue +5 -5
- package/src/atoms/components/Icon/icons/maker/etsy.vue +5 -5
- package/src/atoms/components/Icon/icons/maker/facebook.vue +5 -5
- package/src/atoms/components/Icon/icons/maker/favicon.vue +7 -7
- package/src/atoms/components/Icon/icons/maker/flyer.vue +7 -7
- package/src/atoms/components/Icon/icons/maker/gift-certificate.vue +5 -5
- package/src/atoms/components/Icon/icons/maker/globe.vue +5 -5
- package/src/atoms/components/Icon/icons/maker/image.vue +7 -7
- package/src/atoms/components/Icon/icons/maker/instagram.vue +7 -7
- package/src/atoms/components/Icon/icons/maker/invitation.vue +5 -5
- package/src/atoms/components/Icon/icons/maker/invoice.vue +5 -5
- package/src/atoms/components/Icon/icons/maker/italic.vue +7 -7
- package/src/atoms/components/Icon/icons/maker/link.vue +7 -7
- package/src/atoms/components/Icon/icons/maker/linkedin.vue +7 -7
- package/src/atoms/components/Icon/icons/maker/menu.vue +5 -5
- package/src/atoms/components/Icon/icons/maker/pause.vue +5 -5
- package/src/atoms/components/Icon/icons/maker/phone.vue +5 -5
- package/src/atoms/components/Icon/icons/maker/pinterest.vue +5 -5
- package/src/atoms/components/Icon/icons/maker/play.vue +5 -5
- package/src/atoms/components/Icon/icons/maker/postcard.vue +5 -5
- package/src/atoms/components/Icon/icons/maker/poster.vue +7 -7
- package/src/atoms/components/Icon/icons/maker/profile.vue +5 -5
- package/src/atoms/components/Icon/icons/maker/qrcode.vue +5 -5
- package/src/atoms/components/Icon/icons/maker/snapchat.vue +5 -5
- package/src/atoms/components/Icon/icons/maker/soundcloud.vue +7 -7
- package/src/atoms/components/Icon/icons/maker/spacing.vue +18 -18
- package/src/atoms/components/Icon/icons/maker/strikethrough.vue +7 -7
- package/src/atoms/components/Icon/icons/maker/t-shirt.vue +32 -32
- package/src/atoms/components/Icon/icons/maker/text-background-color.vue +12 -12
- package/src/atoms/components/Icon/icons/maker/text-color.vue +14 -14
- package/src/atoms/components/Icon/icons/maker/text.vue +7 -7
- package/src/atoms/components/Icon/icons/maker/thankyou-card.vue +5 -5
- package/src/atoms/components/Icon/icons/maker/tiktok.vue +5 -5
- package/src/atoms/components/Icon/icons/maker/tumblr.vue +5 -5
- package/src/atoms/components/Icon/icons/maker/twitch.vue +7 -7
- package/src/atoms/components/Icon/icons/maker/twitter.vue +5 -5
- package/src/atoms/components/Icon/icons/maker/underline.vue +7 -7
- package/src/atoms/components/Icon/icons/maker/uppercase.vue +14 -14
- package/src/atoms/components/Icon/icons/maker/video.vue +5 -5
- package/src/atoms/components/Icon/icons/maker/whatsapp.vue +7 -7
- package/src/atoms/components/Icon/icons/maker/youtube.vue +5 -5
- package/src/atoms/components/Icon/icons/maker/zoom.vue +5 -5
- package/src/atoms/components/Icon/icons/map.vue +6 -6
- package/src/atoms/components/Icon/icons/media.vue +3 -3
- package/src/atoms/components/Icon/icons/message.vue +6 -6
- package/src/atoms/components/Icon/icons/minus-circle-light.vue +7 -7
- package/src/atoms/components/Icon/icons/minus.vue +3 -3
- package/src/atoms/components/Icon/icons/mobile.vue +5 -5
- package/src/atoms/components/Icon/icons/mug.vue +29 -29
- package/src/atoms/components/Icon/icons/opacity.vue +6 -6
- package/src/atoms/components/Icon/icons/other.vue +7 -7
- package/src/atoms/components/Icon/icons/page-buttons.vue +8 -8
- package/src/atoms/components/Icon/icons/page-hamburger.vue +9 -9
- package/src/atoms/components/Icon/icons/page-tabs.vue +9 -9
- package/src/atoms/components/Icon/icons/pages.vue +6 -6
- package/src/atoms/components/Icon/icons/palette.vue +6 -6
- package/src/atoms/components/Icon/icons/pause.vue +5 -5
- package/src/atoms/components/Icon/icons/payment.vue +8 -8
- package/src/atoms/components/Icon/icons/payments-featured.vue +6 -6
- package/src/atoms/components/Icon/icons/payments-textonly.vue +8 -8
- package/src/atoms/components/Icon/icons/payments-thumbnail.vue +9 -9
- package/src/atoms/components/Icon/icons/pen-tool.vue +7 -7
- package/src/atoms/components/Icon/icons/phone.vue +6 -6
- package/src/atoms/components/Icon/icons/plus-circle-light.vue +8 -8
- package/src/atoms/components/Icon/icons/plus-circle.vue +7 -7
- package/src/atoms/components/Icon/icons/plus.vue +3 -3
- package/src/atoms/components/Icon/icons/poll.vue +3 -3
- package/src/atoms/components/Icon/icons/portfolio.vue +10 -10
- package/src/atoms/components/Icon/icons/preview.vue +6 -6
- package/src/atoms/components/Icon/icons/printing.vue +6 -6
- package/src/atoms/components/Icon/icons/processing.vue +5 -5
- package/src/atoms/components/Icon/icons/question.vue +11 -11
- package/src/atoms/components/Icon/icons/ratio-1-1.vue +3 -3
- package/src/atoms/components/Icon/icons/ratio-16-9.vue +1 -1
- package/src/atoms/components/Icon/icons/ratio-2-3.vue +3 -3
- package/src/atoms/components/Icon/icons/ratio-3-2.vue +3 -3
- package/src/atoms/components/Icon/icons/ratio-3-4.vue +3 -3
- package/src/atoms/components/Icon/icons/ratio-4-3.vue +3 -3
- package/src/atoms/components/Icon/icons/ratio-9-16.vue +3 -3
- package/src/atoms/components/Icon/icons/ratio-circle.vue +8 -8
- package/src/atoms/components/Icon/icons/ratio-original.vue +11 -11
- package/src/atoms/components/Icon/icons/redo.vue +6 -6
- package/src/atoms/components/Icon/icons/reload.vue +6 -6
- package/src/atoms/components/Icon/icons/reorderable.vue +5 -5
- package/src/atoms/components/Icon/icons/request-payment.vue +6 -6
- package/src/atoms/components/Icon/icons/reset.vue +6 -6
- package/src/atoms/components/Icon/icons/resize.vue +6 -6
- package/src/atoms/components/Icon/icons/search.vue +11 -11
- package/src/atoms/components/Icon/icons/secure.vue +7 -7
- package/src/atoms/components/Icon/icons/send.vue +12 -12
- package/src/atoms/components/Icon/icons/services.vue +7 -7
- package/src/atoms/components/Icon/icons/settings.vue +7 -7
- package/src/atoms/components/Icon/icons/shape.vue +5 -5
- package/src/atoms/components/Icon/icons/share.vue +8 -8
- package/src/atoms/components/Icon/icons/shield-tick.vue +6 -0
- package/src/atoms/components/Icon/icons/shop.vue +5 -5
- package/src/atoms/components/Icon/icons/sms.vue +5 -5
- package/src/atoms/components/Icon/icons/social-facebook-color.vue +9 -9
- package/src/atoms/components/Icon/icons/social-facebook.vue +5 -5
- package/src/atoms/components/Icon/icons/social-google.vue +5 -5
- package/src/atoms/components/Icon/icons/social-instagram-color.vue +24 -24
- package/src/atoms/components/Icon/icons/social-linkedin-color.vue +9 -9
- package/src/atoms/components/Icon/icons/social-share.vue +7 -7
- package/src/atoms/components/Icon/icons/social-twitter-color.vue +9 -9
- package/src/atoms/components/Icon/icons/star-filled.vue +6 -6
- package/src/atoms/components/Icon/icons/star-hollow.vue +6 -6
- package/src/atoms/components/Icon/icons/sticker.vue +28 -28
- package/src/atoms/components/Icon/icons/stop.vue +5 -5
- package/src/atoms/components/Icon/icons/styles.vue +5 -5
- package/src/atoms/components/Icon/icons/submit.vue +5 -5
- package/src/atoms/components/Icon/icons/templates.vue +7 -7
- package/src/atoms/components/Icon/icons/text-image-center.vue +6 -6
- package/src/atoms/components/Icon/icons/text-image-justified.vue +7 -7
- package/src/atoms/components/Icon/icons/text-image-left.vue +9 -9
- package/src/atoms/components/Icon/icons/text-image-only.vue +5 -5
- package/src/atoms/components/Icon/icons/text-image-right.vue +9 -9
- package/src/atoms/components/Icon/icons/text-image.vue +13 -13
- package/src/atoms/components/Icon/icons/time.vue +8 -8
- package/src/atoms/components/Icon/icons/tooltip-bottom.vue +5 -5
- package/src/atoms/components/Icon/icons/tooltip-left.vue +5 -5
- package/src/atoms/components/Icon/icons/tooltip-right.vue +5 -5
- package/src/atoms/components/Icon/icons/tooltip-top.vue +5 -5
- package/src/atoms/components/Icon/icons/undo.vue +6 -6
- package/src/atoms/components/Icon/icons/upgrade-alt.vue +7 -7
- package/src/atoms/components/Icon/icons/upgrade.vue +9 -9
- package/src/atoms/components/Icon/icons/upload-arrow.vue +5 -5
- package/src/atoms/components/Icon/icons/upload.vue +5 -5
- package/src/atoms/components/Icon/icons/user-accounts.vue +5 -5
- package/src/atoms/components/Icon/icons/user-headset.vue +50 -50
- package/src/atoms/components/Icon/icons/volume-muted.vue +5 -5
- package/src/atoms/components/Icon/icons/volume.vue +5 -5
- package/src/atoms/components/Icon/icons/watchlist-filled.vue +14 -14
- package/src/atoms/components/Icon/icons/watchlist-hollow-alt.vue +14 -14
- package/src/atoms/components/Icon/icons/watchlist-hollow.vue +6 -6
- package/src/atoms/components/Icon/icons/website-filled.vue +5 -5
- package/src/atoms/components/Icon/icons/website.vue +6 -6
- package/src/atoms/components/Icon/icons/wholesale.vue +6 -6
- package/src/atoms/components/Icon/icons/zoom-in.vue +5 -5
- package/src/atoms/components/Icon/icons/zoom-out.vue +5 -5
- package/src/atoms/components/Icon/icons/zoom.vue +11 -11
- package/src/atoms/components/Loader/Loader.vue +15 -15
- package/src/atoms/components/Masonry/Masonry.stories.js +48 -48
- package/src/atoms/components/Masonry/Masonry.vue +48 -48
- package/src/atoms/components/Masonry/fixtures.js +589 -589
- package/src/atoms/components/Modal/HashRouteModal.stories.js +68 -68
- package/src/atoms/components/Modal/HashRouteModal.vue +120 -120
- package/src/atoms/components/Modal/Modal.stories.js +293 -293
- package/src/atoms/components/Modal/Modal.vue +263 -263
- package/src/atoms/components/Notice/Notice.stories.js +174 -174
- package/src/atoms/components/Notice/Notice.vue +71 -71
- package/src/atoms/components/NumberStepper/NumberStepper.stories.js +55 -55
- package/src/atoms/components/NumberStepper/NumberStepper.vue +340 -340
- package/src/atoms/components/Picture/Picture.stories.js +90 -90
- package/src/atoms/components/Picture/Picture.vue +84 -84
- package/src/atoms/components/Picture/picture.fixtures.js +35 -35
- package/src/atoms/components/Pill/Pill.stories.js +20 -20
- package/src/atoms/components/Pill/Pill.vue +8 -8
- package/src/atoms/components/PillBar/PillBar.fixtures.js +941 -941
- package/src/atoms/components/PillBar/PillBar.stories.js +39 -39
- package/src/atoms/components/PillBar/PillBar.vue +62 -62
- package/src/atoms/components/Price/Price.fixtures.js +85 -85
- package/src/atoms/components/Price/Price.stories.js +291 -291
- package/src/atoms/components/Price/Price.vue +135 -135
- package/src/atoms/components/Price/i18n/price.de-DE.json +5 -5
- package/src/atoms/components/Price/i18n/price.es-ES.json +5 -5
- package/src/atoms/components/Price/i18n/price.fr-CA.json +5 -5
- package/src/atoms/components/Price/i18n/price.fr-FR.json +5 -5
- package/src/atoms/components/Price/i18n/price.json +5 -5
- package/src/atoms/components/Price/i18n/price.pt-BR.json +5 -5
- package/src/atoms/components/Price/i18n/price.pt-PT.json +5 -5
- package/src/atoms/components/PromoCard/PromoCard.stories.ts +263 -263
- package/src/atoms/components/PromoCard/PromoCard.vue +83 -83
- package/src/atoms/components/SearchBar/SearchBar.stories.js +21 -21
- package/src/atoms/components/SearchBar/SearchBar.vue +51 -51
- package/src/atoms/components/Select/Select.stories.js +142 -142
- package/src/atoms/components/Select/Select.vue +619 -619
- package/src/atoms/components/Select/pointerMixin.js +99 -99
- package/src/atoms/components/Select/selectMixin.js +356 -356
- package/src/atoms/components/SparkleIcon/SparkleIcon.stories.js +386 -386
- package/src/atoms/components/SparkleIcon/SparkleIcon.vue +136 -136
- package/src/atoms/components/SparkleIcon/assets/animations/sparkle/state-01.svg +5 -5
- package/src/atoms/components/SparkleIcon/assets/animations/sparkle/state-02.svg +5 -5
- package/src/atoms/components/SparkleIcon/assets/animations/sparkle/state-03.svg +5 -5
- package/src/atoms/components/SparkleIcon/assets/animations/sparkle/state-04.svg +5 -5
- package/src/atoms/components/SparkleIcon/assets/animations/sparkle/state-05.svg +5 -5
- package/src/atoms/components/SparkleIcon/assets/animations/sparkle/state-06.svg +5 -5
- package/src/atoms/components/SparkleIcon/assets/animations/sparkle/state-07.svg +5 -5
- package/src/atoms/components/SparkleIcon/assets/animations/sparkle/state-08.svg +5 -5
- package/src/atoms/components/SparkleIcon/assets/animations/spinner/state-01.svg +5 -5
- package/src/atoms/components/SparkleIcon/assets/animations/spinner/state-02.svg +14 -14
- package/src/atoms/components/SparkleIcon/assets/animations/spinner/state-03.svg +14 -14
- package/src/atoms/components/SparkleIcon/assets/animations/spinner/state-04.svg +14 -14
- package/src/atoms/components/SparkleIcon/assets/animations/spinner/state-05.svg +14 -14
- package/src/atoms/components/SparkleIcon/assets/animations/spinner/state-06.svg +14 -14
- package/src/atoms/components/SparkleIcon/assets/animations/spinner/state-07.svg +14 -14
- package/src/atoms/components/SparkleIcon/assets/animations/spinner/state-08.svg +14 -14
- package/src/atoms/components/SparkleIcon/assets/sparkle.svg +3 -3
- package/src/atoms/components/SparkleIcon/index.ts +3 -3
- package/src/atoms/components/SparkleIcon/sparkle-paths.ts +54 -54
- package/src/atoms/components/SparkleIcon/sparkle-with-spinner-paths.ts +61 -61
- package/src/atoms/components/StarRating/StarRating.stories.js +50 -50
- package/src/atoms/components/StarRating/StarRating.vue +84 -84
- package/src/atoms/components/TabMenu/TabMenu.stories.js +54 -54
- package/src/atoms/components/TabMenu/TabMenu.vue +44 -44
- package/src/atoms/components/TextCopyField/TextCopyField.stories.js +68 -68
- package/src/atoms/components/TextCopyField/TextCopyField.vue +75 -75
- package/src/atoms/components/TextInput/TextInput.stories.js +232 -232
- package/src/atoms/components/TextInput/TextInput.vue +161 -161
- package/src/atoms/components/Textarea/Textarea.stories.js +209 -209
- package/src/atoms/components/Textarea/Textarea.vue +112 -112
- package/src/atoms/components/Toggle/Toggle.stories.js +176 -176
- package/src/atoms/components/Toggle/Toggle.vue +69 -69
- package/src/atoms/components/Tooltip/Tooltip.stories.js +493 -493
- package/src/atoms/components/Tooltip/Tooltip.vue +196 -196
- package/src/atoms/components/design-com/Icon/Icon.stories.js +82 -82
- package/src/atoms/components/design-com/Icon/Icon.vue +157 -157
- package/src/atoms/components/design-com/Icon/icons/award.vue +7 -7
- package/src/atoms/components/design-com/Icon/icons/bulb.vue +7 -7
- package/src/atoms/components/design-com/Icon/icons/card.vue +7 -7
- package/src/atoms/components/design-com/Icon/icons/check-circle-light.vue +7 -7
- package/src/atoms/components/design-com/Icon/icons/chevron-down.vue +7 -7
- package/src/atoms/components/design-com/Icon/icons/chevron-left.vue +7 -7
- package/src/atoms/components/design-com/Icon/icons/chevron-right.vue +3 -3
- package/src/atoms/components/design-com/Icon/icons/chevron-up.vue +7 -7
- package/src/atoms/components/design-com/Icon/icons/diamond.vue +7 -7
- package/src/atoms/components/design-com/Icon/icons/download.vue +7 -7
- package/src/atoms/components/design-com/Icon/icons/file-empty.vue +7 -7
- package/src/atoms/components/design-com/Icon/icons/file.vue +7 -7
- package/src/atoms/components/design-com/Icon/icons/filter.vue +7 -7
- package/src/atoms/components/design-com/Icon/icons/font.vue +7 -7
- package/src/atoms/components/design-com/Icon/icons/headphones.vue +7 -7
- package/src/atoms/components/design-com/Icon/icons/heart.vue +7 -7
- package/src/atoms/components/design-com/Icon/icons/image.vue +7 -7
- package/src/atoms/components/design-com/Icon/icons/logo.vue +7 -7
- package/src/atoms/components/design-com/Icon/icons/minus-circle-light.vue +7 -7
- package/src/atoms/components/design-com/Icon/icons/plus-circle-light.vue +8 -8
- package/src/atoms/components/design-com/Icon/icons/question-circle-filled.vue +7 -7
- package/src/atoms/components/design-com/Icon/icons/search.vue +7 -7
- package/src/atoms/components/design-com/Icon/icons/star-filled.vue +6 -6
- package/src/atoms/components/design-com/Icon/icons/star-hollow.vue +6 -6
- package/src/atoms/components/design-com/Icon/icons/users.vue +7 -7
- package/src/atoms/constants/constants.ts +6 -6
- package/src/atoms/mixin/hash-router-mixin.js +68 -68
- package/src/atoms/thirdparty-components/VueMasonryWall/VueMasonryWall.vue +280 -280
- package/src/atoms/thirdparty-components/VueMasonryWall/maxBy.js +50 -50
- package/src/bundleTranslation.js +86 -86
- package/src/bundles/bundled-translations.de-DE.json +6 -6
- package/src/bundles/bundled-translations.es-ES.json +6 -6
- package/src/bundles/bundled-translations.fr-CA.json +6 -6
- package/src/bundles/bundled-translations.fr-FR.json +6 -6
- package/src/bundles/bundled-translations.json +6 -6
- package/src/bundles/bundled-translations.pt-BR.json +6 -6
- package/src/bundles/bundled-translations.pt-PT.json +6 -6
- package/src/css/tailwind.css +3 -3
- package/src/experiences/clients/brand-crowd-api.client.js +119 -119
- package/src/experiences/clients/brand-page-api.client.js +62 -62
- package/src/experiences/components/AuthFlow/Auth.fixtures.js +4 -4
- package/src/experiences/components/AuthFlow/Auth.stories.js +345 -345
- package/src/experiences/components/AuthFlow/AuthCrazyDomains.stories.js +60 -60
- package/src/experiences/components/AuthFlow/AuthLegal.vue +108 -108
- package/src/experiences/components/AuthFlow/AuthModal.vue +39 -39
- package/src/experiences/components/AuthFlow/ForgotPassword.vue +222 -222
- package/src/experiences/components/AuthFlow/ForgotPasswordModal.vue +68 -68
- package/src/experiences/components/AuthFlow/ResetPassword.vue +179 -179
- package/src/experiences/components/AuthFlow/ResetPasswordModal.vue +64 -64
- package/src/experiences/components/AuthFlow/ResetPasswordSuccessModal.vue +56 -56
- package/src/experiences/components/AuthFlow/SignIn.vue +465 -465
- package/src/experiences/components/AuthFlow/SignUp.vue +278 -278
- package/src/experiences/components/AuthFlow/SignUpModal.vue +90 -90
- package/src/experiences/components/AuthFlow/SocialSignIn.vue +177 -177
- package/src/experiences/components/AuthFlow/SocialSignInButton.vue +74 -74
- package/src/experiences/components/AuthFlow/SubmissionButton.vue +56 -56
- package/src/experiences/components/PaymentConfigList/PaymentConfig.mixin.js +118 -118
- package/src/experiences/components/PaymentConfigList/PaymentConfigDeleteConfigModal.vue +108 -108
- package/src/experiences/components/PaymentConfigList/PaymentConfigDropdown.vue +175 -175
- package/src/experiences/components/PaymentConfigList/PaymentConfigList.stories.js +234 -234
- package/src/experiences/components/PaymentConfigList/PaymentConfigList.vue +136 -136
- package/src/experiences/components/PaymentConfigList/i18n/shared-payment-config.de-DE.json +11 -11
- package/src/experiences/components/PaymentConfigList/i18n/shared-payment-config.es-ES.json +11 -11
- package/src/experiences/components/PaymentConfigList/i18n/shared-payment-config.fr-CA.json +11 -11
- package/src/experiences/components/PaymentConfigList/i18n/shared-payment-config.fr-FR.json +11 -11
- package/src/experiences/components/PaymentConfigList/i18n/shared-payment-config.json +11 -11
- package/src/experiences/components/PaymentConfigList/i18n/shared-payment-config.pt-BR.json +11 -11
- package/src/experiences/components/PaymentConfigList/i18n/shared-payment-config.pt-PT.json +11 -11
- package/src/experiences/components/PublishBrandPageModal/PublishBrandPageCard.vue +119 -119
- package/src/experiences/components/PublishBrandPageModal/PublishBrandPageModal.stories.js +262 -262
- package/src/experiences/components/PublishBrandPageModal/__fixtures__/data.js +25 -25
- package/src/experiences/components/PublishBrandPageModal/i18n/publish-brand-page-modal.de-DE.json +24 -24
- package/src/experiences/components/PublishBrandPageModal/i18n/publish-brand-page-modal.es-ES.json +24 -24
- package/src/experiences/components/PublishBrandPageModal/i18n/publish-brand-page-modal.fr-CA.json +24 -24
- package/src/experiences/components/PublishBrandPageModal/i18n/publish-brand-page-modal.fr-FR.json +24 -24
- package/src/experiences/components/PublishBrandPageModal/i18n/publish-brand-page-modal.json +24 -24
- package/src/experiences/components/PublishBrandPageModal/i18n/publish-brand-page-modal.pt-BR.json +24 -24
- package/src/experiences/components/PublishBrandPageModal/i18n/publish-brand-page-modal.pt-PT.json +24 -24
- package/src/experiences/components/SellDomainNameList/SellDomainNameList.fixtures.js +32 -32
- package/src/experiences/components/SellDomainNameList/SellDomainNameList.vue +157 -157
- package/src/experiences/components/SellDomainNameList/i18n/sell-domain-name-list.de-DE.json +7 -7
- package/src/experiences/components/SellDomainNameList/i18n/sell-domain-name-list.es-ES.json +7 -7
- package/src/experiences/components/SellDomainNameList/i18n/sell-domain-name-list.fr-CA.json +7 -7
- package/src/experiences/components/SellDomainNameList/i18n/sell-domain-name-list.fr-FR.json +7 -7
- package/src/experiences/components/SellDomainNameList/i18n/sell-domain-name-list.json +7 -7
- package/src/experiences/components/SellDomainNameList/i18n/sell-domain-name-list.pt-BR.json +7 -7
- package/src/experiences/components/SellDomainNameList/i18n/sell-domain-name-list.pt-PT.json +7 -7
- package/src/experiences/components/SellDomainNameListModal/SellDomainNameListModal.stories.js +74 -74
- package/src/experiences/components/SellDomainNameListModal/SellDomainNameListModal.vue +128 -128
- package/src/experiences/components/SellDomainNameListModal/i18n/sell-domain-name-list-modal.de-DE.json +5 -5
- package/src/experiences/components/SellDomainNameListModal/i18n/sell-domain-name-list-modal.es-ES.json +5 -5
- package/src/experiences/components/SellDomainNameListModal/i18n/sell-domain-name-list-modal.fr-CA.json +5 -5
- package/src/experiences/components/SellDomainNameListModal/i18n/sell-domain-name-list-modal.fr-FR.json +5 -5
- package/src/experiences/components/SellDomainNameListModal/i18n/sell-domain-name-list-modal.json +5 -5
- package/src/experiences/components/SellDomainNameListModal/i18n/sell-domain-name-list-modal.pt-BR.json +5 -5
- package/src/experiences/components/SellDomainNameListModal/i18n/sell-domain-name-list-modal.pt-PT.json +5 -5
- package/src/experiences/components/SellDomainNameModalApplication/SellDomainNameModalApplication.vue +209 -209
- package/src/experiences/components/SellDomainNameModalApplication/i18n/sell-domain-name-modal-application.de-DE.json +5 -5
- package/src/experiences/components/SellDomainNameModalApplication/i18n/sell-domain-name-modal-application.es-ES.json +5 -5
- package/src/experiences/components/SellDomainNameModalApplication/i18n/sell-domain-name-modal-application.fr-CA.json +5 -5
- package/src/experiences/components/SellDomainNameModalApplication/i18n/sell-domain-name-modal-application.fr-FR.json +5 -5
- package/src/experiences/components/SellDomainNameModalApplication/i18n/sell-domain-name-modal-application.json +5 -5
- package/src/experiences/components/SellDomainNameModalApplication/i18n/sell-domain-name-modal-application.pt-BR.json +5 -5
- package/src/experiences/components/SellDomainNameModalApplication/i18n/sell-domain-name-modal-application.pt-PT.json +5 -5
- package/src/experiences/components/SellDomainNameSearch/i18n/sell-domain-name-search.de-DE.json +7 -7
- package/src/experiences/components/SellDomainNameSearch/i18n/sell-domain-name-search.es-ES.json +7 -7
- package/src/experiences/components/SellDomainNameSearch/i18n/sell-domain-name-search.fr-CA.json +7 -7
- package/src/experiences/components/SellDomainNameSearch/i18n/sell-domain-name-search.fr-FR.json +7 -7
- package/src/experiences/components/SellDomainNameSearch/i18n/sell-domain-name-search.json +7 -7
- package/src/experiences/components/SellDomainNameSearch/i18n/sell-domain-name-search.pt-BR.json +7 -7
- package/src/experiences/components/SellDomainNameSearch/i18n/sell-domain-name-search.pt-PT.json +7 -7
- package/src/experiences/components/SellDomainNameSearchResult/SellDomainNameListSearchResult.vue +167 -167
- package/src/experiences/components/SellDomainNameSearchResult/i18n/sell-domain-name-list-search-result.de-DE.json +5 -5
- package/src/experiences/components/SellDomainNameSearchResult/i18n/sell-domain-name-list-search-result.es-ES.json +5 -5
- package/src/experiences/components/SellDomainNameSearchResult/i18n/sell-domain-name-list-search-result.fr-CA.json +5 -5
- package/src/experiences/components/SellDomainNameSearchResult/i18n/sell-domain-name-list-search-result.fr-FR.json +5 -5
- package/src/experiences/components/SellDomainNameSearchResult/i18n/sell-domain-name-list-search-result.json +5 -5
- package/src/experiences/components/SellDomainNameSearchResult/i18n/sell-domain-name-list-search-result.pt-BR.json +5 -5
- package/src/experiences/components/SellDomainNameSearchResult/i18n/sell-domain-name-list-search-result.pt-PT.json +5 -5
- package/src/experiences/components/SellDomainNameSearchWithResults/SellDomainNameSearchWithResults.stories.js +38 -38
- package/src/experiences/components/SellDomainNameSearchWithResults/SellDomainNameSearchWithResults.vue +214 -214
- package/src/experiences/components/SellDomainNameWidget/SellDomainNameWidget.stories.js +40 -40
- package/src/experiences/components/SellDomainNameWidget/SellDomainNameWidget.vue +155 -155
- package/src/experiences/components/SellDomainNameWidget/i18n/sell-domain-name-widget.de-DE.json +7 -7
- package/src/experiences/components/SellDomainNameWidget/i18n/sell-domain-name-widget.es-ES.json +7 -7
- package/src/experiences/components/SellDomainNameWidget/i18n/sell-domain-name-widget.fr-CA.json +7 -7
- package/src/experiences/components/SellDomainNameWidget/i18n/sell-domain-name-widget.fr-FR.json +7 -7
- package/src/experiences/components/SellDomainNameWidget/i18n/sell-domain-name-widget.json +7 -7
- package/src/experiences/components/SellDomainNameWidget/i18n/sell-domain-name-widget.pt-BR.json +7 -7
- package/src/experiences/components/SellDomainNameWidget/i18n/sell-domain-name-widget.pt-PT.json +7 -7
- package/src/experiences/components/UploadYourLogoApplication/UploadYourLogoApplication.stories.js +205 -205
- package/src/experiences/components/UploadYourLogoApplication/UploadYourLogoApplication.vue +133 -133
- package/src/experiences/components/UploadYourLogoDropzone/UploadYourLogoDropzone.stories.js +59 -59
- package/src/experiences/components/UploadYourLogoDropzone/UploadYourLogoDropzone.vue +285 -285
- package/src/experiences/components/UploadYourLogoOnBoarding/LogoBusinessBrandColours.stories.js +37 -37
- package/src/experiences/components/UploadYourLogoOnBoarding/LogoBusinessBrandColours.vue +338 -338
- package/src/experiences/components/UploadYourLogoOnBoarding/LogoBusinessText.vue +146 -146
- package/src/experiences/components/UploadYourLogoOnBoarding/LogoCropper.vue +473 -473
- package/src/experiences/components/UploadYourLogoOnBoarding/LogoPreview.vue +103 -103
- package/src/experiences/components/UploadYourLogoOnBoarding/LogoUploadError.vue +75 -75
- package/src/experiences/components/UploadYourLogoOnBoarding/LogoUploadExitConfirmation.vue +55 -55
- package/src/experiences/components/UploadYourLogoOnBoarding/LogoUploadModal.vue +38 -38
- package/src/experiences/components/UploadYourLogoOnBoarding/LogoUploader.vue +102 -102
- package/src/experiences/components/UploadYourLogoOnBoarding/LogoUploadingLoader.vue +22 -22
- package/src/experiences/components/UploadYourLogoOnBoarding/UploadYourLogoOnBoarding.vue +302 -302
- package/src/experiences/components/UploadYourLogoOnBoarding/i18n/upload-your-logo.de-DE.json +34 -34
- package/src/experiences/components/UploadYourLogoOnBoarding/i18n/upload-your-logo.es-ES.json +34 -34
- package/src/experiences/components/UploadYourLogoOnBoarding/i18n/upload-your-logo.fr-CA.json +34 -34
- package/src/experiences/components/UploadYourLogoOnBoarding/i18n/upload-your-logo.fr-FR.json +34 -34
- package/src/experiences/components/UploadYourLogoOnBoarding/i18n/upload-your-logo.json +35 -35
- package/src/experiences/components/UploadYourLogoOnBoarding/i18n/upload-your-logo.pt-BR.json +34 -34
- package/src/experiences/components/UploadYourLogoOnBoarding/i18n/upload-your-logo.pt-PT.json +34 -34
- package/src/experiences/components/UploadedLogoSearchResultCard/UploadedLogoSearchResultCard.stories.js +82 -82
- package/src/experiences/components/UploadedLogoSearchResultCard/UploadedLogoSearchResultCard.vue +211 -211
- package/src/experiences/components/UploadedLogoSearchResultCard/i18n/upload-logo-search-result-card.de-DE.json +8 -8
- package/src/experiences/components/UploadedLogoSearchResultCard/i18n/upload-logo-search-result-card.es-ES.json +8 -8
- package/src/experiences/components/UploadedLogoSearchResultCard/i18n/upload-logo-search-result-card.fr-CA.json +8 -8
- package/src/experiences/components/UploadedLogoSearchResultCard/i18n/upload-logo-search-result-card.fr-FR.json +8 -8
- package/src/experiences/components/UploadedLogoSearchResultCard/i18n/upload-logo-search-result-card.json +8 -8
- package/src/experiences/components/UploadedLogoSearchResultCard/i18n/upload-logo-search-result-card.pt-BR.json +8 -8
- package/src/experiences/components/UploadedLogoSearchResultCard/i18n/upload-logo-search-result-card.pt-PT.json +8 -8
- package/src/experiences/constants/api.js +8 -8
- package/src/experiences/constants/error-constants.js +5 -5
- package/src/experiences/constants/event-constants.js +18 -18
- package/src/experiences/constants/partner-dictionary-constants.js +27 -27
- package/src/experiences/constants/rego-source-constants.js +3 -3
- package/src/experiences/constants/sell-domain-name-constants.js +4 -4
- package/src/experiences/helpers/email-validator.js +5 -5
- package/src/experiences/helpers/hex-diff.js +116 -116
- package/src/experiences/helpers/tracking.js +5 -5
- package/src/experiences/mixins/mediaQueryMixin.js +31 -31
- package/src/experiences/mixins/themeMixin.js +22 -22
- package/src/themes/base.js +20 -20
- package/src/themes/bc.js +95 -95
- package/src/themes/bp.js +21 -21
- package/src/themes/cd.js +94 -94
- package/src/themes/dc.js +84 -84
- package/src/themes/dcom.js +106 -106
- package/src/themes/themes.js +16 -16
- package/src/useSharedLibTranslate.js +127 -127
- package/src/viewports.js +51 -51
- package/stylelint.config.js +19 -19
- package/tailwind.build.js +83 -83
- package/tailwind.config.js +36 -36
- package/tailwind.themes.js +59 -59
- package/vite.config.ts +37 -37
|
@@ -1,619 +1,619 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
:aria-owns="`listbox-${id}`"
|
|
4
|
-
:class="{
|
|
5
|
-
'select--active': isOpen,
|
|
6
|
-
'select--disabled': isDisabled,
|
|
7
|
-
'select--above': isAbove,
|
|
8
|
-
}"
|
|
9
|
-
:tabindex="isSearchable ? -1 : tabindex"
|
|
10
|
-
class="select"
|
|
11
|
-
@blur="isSearchable ? false : deactivate()"
|
|
12
|
-
@focus="activate"
|
|
13
|
-
@keydown.self.down.prevent="pointerForward"
|
|
14
|
-
@keydown.self.up.prevent="pointerBackward"
|
|
15
|
-
@keydown.enter.tab.stop.self="addPointerElement($event)"
|
|
16
|
-
@keyup.esc="deactivate"
|
|
17
|
-
>
|
|
18
|
-
<slot v-if="!isLoading" :toggle="toggle" name="caret">
|
|
19
|
-
<div class="select__caret" @mousedown.prevent.stop="toggle"></div>
|
|
20
|
-
</slot>
|
|
21
|
-
<slot :search="search" name="clear"></slot>
|
|
22
|
-
<div
|
|
23
|
-
ref="tags"
|
|
24
|
-
class="select__tags tw-text-grayscale-600 tw-border tw-border-solid"
|
|
25
|
-
:class="{
|
|
26
|
-
'tw-border-grayscale-500 focus:tw-border-grayscale-600': !isInvalid,
|
|
27
|
-
'tw-border-error-500 focus:tw-border-error-600': isInvalid,
|
|
28
|
-
}"
|
|
29
|
-
>
|
|
30
|
-
<transition name="select__loading">
|
|
31
|
-
<slot name="loading">
|
|
32
|
-
<div v-show="isLoading" class="select__spinner" />
|
|
33
|
-
</slot>
|
|
34
|
-
</transition>
|
|
35
|
-
<input :name="name" :value="valueKey" hidden />
|
|
36
|
-
<input
|
|
37
|
-
v-if="isSearchable"
|
|
38
|
-
:id="id"
|
|
39
|
-
ref="search"
|
|
40
|
-
:aria-controls="`listbox-${id}`"
|
|
41
|
-
:disabled="isDisabled"
|
|
42
|
-
:placeholder="placeholder"
|
|
43
|
-
:style="inputStyle"
|
|
44
|
-
:tabindex="tabindex"
|
|
45
|
-
:value="search"
|
|
46
|
-
class="select__input"
|
|
47
|
-
spellcheck="false"
|
|
48
|
-
autocomplete="one-time-code"
|
|
49
|
-
type="text"
|
|
50
|
-
@input.stop="updateSearch($event.target.value)"
|
|
51
|
-
@blur.prevent="onBlur"
|
|
52
|
-
@focus.prevent="activate"
|
|
53
|
-
@keyup.esc="deactivate"
|
|
54
|
-
@keydown.down.prevent="pointerForward"
|
|
55
|
-
@keydown.up.prevent="pointerBackward"
|
|
56
|
-
@keydown.enter.prevent.stop.self="addPointerElement($event)"
|
|
57
|
-
/>
|
|
58
|
-
<span v-if="isValueVisible" class="select__value" @mousedown.prevent="toggle">
|
|
59
|
-
<slot :option="modelValue" name="label">
|
|
60
|
-
{{ modelValue }}
|
|
61
|
-
</slot>
|
|
62
|
-
</span>
|
|
63
|
-
<span v-if="isPlaceholderVisible" class="select__placeholder" @mousedown.prevent="toggle">
|
|
64
|
-
<slot name="placeholder"> {{ placeholder }} </slot>
|
|
65
|
-
</span>
|
|
66
|
-
</div>
|
|
67
|
-
<transition name="select">
|
|
68
|
-
<div
|
|
69
|
-
v-show="isOpen"
|
|
70
|
-
ref="list"
|
|
71
|
-
:style="{ maxHeight: `${optimizedHeight}px` }"
|
|
72
|
-
class="select__content-wrapper"
|
|
73
|
-
tabindex="-1"
|
|
74
|
-
@focus="activate"
|
|
75
|
-
@mousedown.prevent
|
|
76
|
-
>
|
|
77
|
-
<ul :id="`listbox-${id}`" :style="contentStyle" class="select__content" role="listbox">
|
|
78
|
-
<slot name="beforeList"></slot>
|
|
79
|
-
<li
|
|
80
|
-
v-for="(option, index) of filteredOptions"
|
|
81
|
-
:id="getListId(option)"
|
|
82
|
-
:key="index"
|
|
83
|
-
:role="!(option && option.$isDisabled) ? 'option' : null"
|
|
84
|
-
class="select__element"
|
|
85
|
-
>
|
|
86
|
-
<span
|
|
87
|
-
v-if="!(option && option.$isDisabled)"
|
|
88
|
-
:class="{
|
|
89
|
-
'select__option--highlight': isOptionHighlighted(index),
|
|
90
|
-
'select__option--selected': isOptionSelected(option),
|
|
91
|
-
}"
|
|
92
|
-
:data-deselect="deselectLabelText"
|
|
93
|
-
:data-select="option && option.isCustom ? customPlaceholder : selectLabelText"
|
|
94
|
-
:data-selected="selectedLabelText"
|
|
95
|
-
class="select__option"
|
|
96
|
-
@focus="select(option)"
|
|
97
|
-
@click.stop="select(option)"
|
|
98
|
-
@mouseenter.self="pointerSet(index)"
|
|
99
|
-
>
|
|
100
|
-
<slot :index="index" :option="option" :search="search" name="option">
|
|
101
|
-
<span class="select__item">
|
|
102
|
-
<span v-if="getOptionImageUrl(option)">
|
|
103
|
-
<img
|
|
104
|
-
class="tw-mr-1"
|
|
105
|
-
height="24"
|
|
106
|
-
width="30"
|
|
107
|
-
:src="getOptionImageUrl(option)"
|
|
108
|
-
alt=""
|
|
109
|
-
/>
|
|
110
|
-
</span>
|
|
111
|
-
<span class="select__item__text">{{ getOptionLabel(option) }}</span>
|
|
112
|
-
</span>
|
|
113
|
-
</slot>
|
|
114
|
-
</span>
|
|
115
|
-
</li>
|
|
116
|
-
<li v-show="shouldShowNoResults && filteredOptions.length === 0 && search && !isLoading">
|
|
117
|
-
<span class="select__option">
|
|
118
|
-
<slot :search="search" name="noResult">No results</slot>
|
|
119
|
-
</span>
|
|
120
|
-
</li>
|
|
121
|
-
<slot name="afterList"></slot>
|
|
122
|
-
</ul>
|
|
123
|
-
</div>
|
|
124
|
-
</transition>
|
|
125
|
-
</div>
|
|
126
|
-
</template>
|
|
127
|
-
|
|
128
|
-
<script>
|
|
129
|
-
import selectMixin from './selectMixin';
|
|
130
|
-
import pointerMixin from './pointerMixin';
|
|
131
|
-
|
|
132
|
-
export default {
|
|
133
|
-
mixins: [selectMixin, pointerMixin],
|
|
134
|
-
props: {
|
|
135
|
-
name: {
|
|
136
|
-
type: String,
|
|
137
|
-
default: '',
|
|
138
|
-
},
|
|
139
|
-
selectLabel: {
|
|
140
|
-
type: String,
|
|
141
|
-
default: undefined,
|
|
142
|
-
},
|
|
143
|
-
selectedLabel: {
|
|
144
|
-
type: String,
|
|
145
|
-
default: undefined,
|
|
146
|
-
},
|
|
147
|
-
deselectLabel: {
|
|
148
|
-
type: String,
|
|
149
|
-
default: undefined,
|
|
150
|
-
},
|
|
151
|
-
shouldShowLabels: {
|
|
152
|
-
type: Boolean,
|
|
153
|
-
default: true,
|
|
154
|
-
},
|
|
155
|
-
maxHeight: {
|
|
156
|
-
type: Number,
|
|
157
|
-
default: 300,
|
|
158
|
-
},
|
|
159
|
-
isLoading: {
|
|
160
|
-
type: Boolean,
|
|
161
|
-
default: false,
|
|
162
|
-
},
|
|
163
|
-
openDirection: {
|
|
164
|
-
type: String,
|
|
165
|
-
default: '',
|
|
166
|
-
},
|
|
167
|
-
shouldShowNoResults: {
|
|
168
|
-
type: Boolean,
|
|
169
|
-
default: true,
|
|
170
|
-
},
|
|
171
|
-
tabindex: {
|
|
172
|
-
type: Number,
|
|
173
|
-
default: 0,
|
|
174
|
-
},
|
|
175
|
-
shouldSelectExactMatchOnBlur: {
|
|
176
|
-
type: Boolean,
|
|
177
|
-
default: false,
|
|
178
|
-
},
|
|
179
|
-
isInvalid: {
|
|
180
|
-
type: Boolean,
|
|
181
|
-
default: false,
|
|
182
|
-
},
|
|
183
|
-
},
|
|
184
|
-
computed: {
|
|
185
|
-
isValueVisible() {
|
|
186
|
-
if (this.isSearchable && this.isOpen) {
|
|
187
|
-
return false;
|
|
188
|
-
}
|
|
189
|
-
return !!this.modelValue;
|
|
190
|
-
},
|
|
191
|
-
isPlaceholderVisible() {
|
|
192
|
-
if (this.isSearchable && this.isOpen) {
|
|
193
|
-
return false;
|
|
194
|
-
}
|
|
195
|
-
return !this.modelValue;
|
|
196
|
-
},
|
|
197
|
-
deselectLabelText() {
|
|
198
|
-
return this.shouldShowLabels ? this.deselectLabel : '';
|
|
199
|
-
},
|
|
200
|
-
selectLabelText() {
|
|
201
|
-
return this.shouldShowLabels ? this.selectLabel : '';
|
|
202
|
-
},
|
|
203
|
-
selectedLabelText() {
|
|
204
|
-
return this.shouldShowLabels ? this.selectedLabel : '';
|
|
205
|
-
},
|
|
206
|
-
inputStyle() {
|
|
207
|
-
if (this.isSearchable) {
|
|
208
|
-
// Hide input by setting the width to 0 allowing it to receive focus
|
|
209
|
-
return this.isOpen ? { width: '100%' } : { width: '0', position: 'absolute', padding: '0' };
|
|
210
|
-
}
|
|
211
|
-
return '';
|
|
212
|
-
},
|
|
213
|
-
contentStyle() {
|
|
214
|
-
return this.options.length ? { display: 'inline-block' } : { display: 'block' };
|
|
215
|
-
},
|
|
216
|
-
isAbove() {
|
|
217
|
-
if (this.openDirection === 'above' || this.openDirection === 'top') {
|
|
218
|
-
return true;
|
|
219
|
-
}
|
|
220
|
-
if (this.openDirection === 'below' || this.openDirection === 'bottom') {
|
|
221
|
-
return false;
|
|
222
|
-
}
|
|
223
|
-
return this.preferredOpenDirection === 'above';
|
|
224
|
-
},
|
|
225
|
-
},
|
|
226
|
-
watch: {
|
|
227
|
-
isOpen(isOpen) {
|
|
228
|
-
if (isOpen && this.modelValue) {
|
|
229
|
-
const selectedOption = document.getElementById(this.getListId(this.modelValue));
|
|
230
|
-
|
|
231
|
-
if (selectedOption) {
|
|
232
|
-
this.$nextTick(() => {
|
|
233
|
-
selectedOption.scrollIntoView({ behavior: 'instant', block: 'nearest', inline: 'nearest' });
|
|
234
|
-
});
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
},
|
|
238
|
-
},
|
|
239
|
-
methods: {
|
|
240
|
-
onBlur() {
|
|
241
|
-
if (this.shouldSelectExactMatchOnBlur && this.hasExactMatch) {
|
|
242
|
-
if (!this.isOptionSelected(this.exactMatchOption)) {
|
|
243
|
-
this.select(this.exactMatchOption, this.getOptionKey(this.exactMatchOption));
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
this.deactivate();
|
|
247
|
-
},
|
|
248
|
-
getListId(option) {
|
|
249
|
-
return `${this.id}-${this.getOptionKey(option)}`;
|
|
250
|
-
},
|
|
251
|
-
},
|
|
252
|
-
};
|
|
253
|
-
</script>
|
|
254
|
-
<style scoped>
|
|
255
|
-
fieldset[disabled] .select {
|
|
256
|
-
pointer-events: none;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
.select__spinner {
|
|
260
|
-
position: absolute;
|
|
261
|
-
top: 50%;
|
|
262
|
-
right: 0;
|
|
263
|
-
transform: translateY(-50%);
|
|
264
|
-
width: 40px;
|
|
265
|
-
height: 38px;
|
|
266
|
-
display: block;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
.select__spinner:before,
|
|
270
|
-
.select__spinner:after {
|
|
271
|
-
position: absolute;
|
|
272
|
-
content: '';
|
|
273
|
-
top: 50%;
|
|
274
|
-
left: 50%;
|
|
275
|
-
margin: -8px 0 0 -8px;
|
|
276
|
-
width: 16px;
|
|
277
|
-
height: 16px;
|
|
278
|
-
border-radius: 100%;
|
|
279
|
-
border-color: #41b883 transparent transparent;
|
|
280
|
-
border-style: solid;
|
|
281
|
-
border-width: 2px;
|
|
282
|
-
box-shadow: 0 0 0 1px transparent;
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
.select__spinner:before {
|
|
286
|
-
animation: spinning 2.4s cubic-bezier(0.41, 0.26, 0.2, 0.62);
|
|
287
|
-
animation-iteration-count: infinite;
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
.select__spinner:after {
|
|
291
|
-
animation: spinning 2.4s cubic-bezier(0.51, 0.09, 0.21, 0.8);
|
|
292
|
-
animation-iteration-count: infinite;
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
.select__loading-enter-active,
|
|
296
|
-
.select__loading-leave-active {
|
|
297
|
-
transition: opacity 0.4s ease-in-out;
|
|
298
|
-
opacity: 1;
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
.select__loading-enter,
|
|
302
|
-
.select__loading-leave-active {
|
|
303
|
-
opacity: 0;
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
.select,
|
|
307
|
-
.select__input,
|
|
308
|
-
.select__value {
|
|
309
|
-
font-family: inherit;
|
|
310
|
-
font-size: 16px;
|
|
311
|
-
touch-action: manipulation;
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
.select {
|
|
315
|
-
box-sizing: content-box;
|
|
316
|
-
display: block;
|
|
317
|
-
position: relative;
|
|
318
|
-
width: 100%;
|
|
319
|
-
min-height: 50px;
|
|
320
|
-
text-align: left;
|
|
321
|
-
color: black;
|
|
322
|
-
align-items: center;
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
.select * {
|
|
326
|
-
box-sizing: border-box;
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
.select:focus {
|
|
330
|
-
outline: none;
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
.select--disabled {
|
|
334
|
-
background: #ededed;
|
|
335
|
-
pointer-events: none;
|
|
336
|
-
opacity: 0.6;
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
.select--active {
|
|
340
|
-
z-index: 50;
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
.select--active:not(.select--above) .select__current,
|
|
344
|
-
.select--active:not(.select--above) .select__input,
|
|
345
|
-
.select--active:not(.select--above) .select__tags {
|
|
346
|
-
border-bottom-left-radius: 0;
|
|
347
|
-
border-bottom-right-radius: 0;
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
.select--active .select__caret {
|
|
351
|
-
transform: rotateZ(180deg);
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
.select--above.select--active .select__current,
|
|
355
|
-
.select--above.select--active .select__input,
|
|
356
|
-
.select--above.select--active .select__tags {
|
|
357
|
-
border-top-left-radius: 0;
|
|
358
|
-
border-top-right-radius: 0;
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
.select__input,
|
|
362
|
-
.select__value {
|
|
363
|
-
position: relative;
|
|
364
|
-
display: inline-block;
|
|
365
|
-
min-height: 20px;
|
|
366
|
-
border: none;
|
|
367
|
-
border-radius: 5px;
|
|
368
|
-
background: #fff;
|
|
369
|
-
width: calc(100%);
|
|
370
|
-
transition: border 0.1s ease;
|
|
371
|
-
box-sizing: border-box;
|
|
372
|
-
vertical-align: top;
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
.select__input::placeholder {
|
|
376
|
-
color: #35495e;
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
.select__tag ~ .select__input,
|
|
380
|
-
.select__tag ~ .select__value {
|
|
381
|
-
width: auto;
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
.select__input:hover,
|
|
385
|
-
.select__value:hover {
|
|
386
|
-
border-color: #cfcfcf;
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
.select__input:focus,
|
|
390
|
-
.select__value:focus {
|
|
391
|
-
border-color: #a8a8a8;
|
|
392
|
-
outline: none;
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
.select__tags {
|
|
396
|
-
min-height: 48px;
|
|
397
|
-
display: flex;
|
|
398
|
-
align-items: center;
|
|
399
|
-
padding: 4px 40px 4px 16px;
|
|
400
|
-
border-radius: 5px;
|
|
401
|
-
background: #fff;
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
.select__tags input {
|
|
405
|
-
padding: 0;
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
.select__caret {
|
|
409
|
-
line-height: 16px;
|
|
410
|
-
display: block;
|
|
411
|
-
position: absolute;
|
|
412
|
-
box-sizing: border-box;
|
|
413
|
-
width: 40px;
|
|
414
|
-
height: 38px;
|
|
415
|
-
right: 1px;
|
|
416
|
-
top: 5px;
|
|
417
|
-
padding: 4px 8px;
|
|
418
|
-
margin: 0;
|
|
419
|
-
text-decoration: none;
|
|
420
|
-
text-align: center;
|
|
421
|
-
cursor: pointer;
|
|
422
|
-
transition: transform 0.2s ease;
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
.select__caret:before {
|
|
426
|
-
position: relative;
|
|
427
|
-
right: 0;
|
|
428
|
-
top: 65%;
|
|
429
|
-
color: #999;
|
|
430
|
-
margin-top: 50%;
|
|
431
|
-
border-style: solid;
|
|
432
|
-
border-width: 5px 5px 0 5px;
|
|
433
|
-
border-color: #999999 transparent transparent transparent;
|
|
434
|
-
content: '';
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
.select__placeholder {
|
|
438
|
-
color: #adadad;
|
|
439
|
-
display: flex;
|
|
440
|
-
align-items: center;
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
.select__content-wrapper {
|
|
444
|
-
position: absolute;
|
|
445
|
-
display: block;
|
|
446
|
-
background: #fff;
|
|
447
|
-
width: 100%;
|
|
448
|
-
max-height: 240px;
|
|
449
|
-
overflow: auto;
|
|
450
|
-
border: 1px solid #d0d0d0;
|
|
451
|
-
border-top: none;
|
|
452
|
-
border-bottom-left-radius: 5px;
|
|
453
|
-
border-bottom-right-radius: 5px;
|
|
454
|
-
z-index: 50;
|
|
455
|
-
-webkit-overflow-scrolling: touch;
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
.select__content {
|
|
459
|
-
list-style: none;
|
|
460
|
-
display: inline-block;
|
|
461
|
-
padding: 0;
|
|
462
|
-
margin: 0;
|
|
463
|
-
min-width: 100%;
|
|
464
|
-
vertical-align: top;
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
.select--above .select__content-wrapper {
|
|
468
|
-
bottom: 100%;
|
|
469
|
-
border-bottom-left-radius: 0;
|
|
470
|
-
border-bottom-right-radius: 0;
|
|
471
|
-
border-top-left-radius: 5px;
|
|
472
|
-
border-top-right-radius: 5px;
|
|
473
|
-
border-bottom: none;
|
|
474
|
-
border-top: 1px solid #d0d0d0;
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
.select__content::webkit-scrollbar {
|
|
478
|
-
display: none;
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
.select__element {
|
|
482
|
-
display: block;
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
.select__option {
|
|
486
|
-
display: block;
|
|
487
|
-
padding: 12px;
|
|
488
|
-
min-height: 40px;
|
|
489
|
-
line-height: 16px;
|
|
490
|
-
text-decoration: none;
|
|
491
|
-
text-transform: none;
|
|
492
|
-
vertical-align: middle;
|
|
493
|
-
position: relative;
|
|
494
|
-
cursor: pointer;
|
|
495
|
-
white-space: nowrap;
|
|
496
|
-
color: #4b545d;
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
.select__option:after {
|
|
500
|
-
top: 0;
|
|
501
|
-
right: 0;
|
|
502
|
-
position: absolute;
|
|
503
|
-
line-height: 40px;
|
|
504
|
-
padding-right: 12px;
|
|
505
|
-
padding-left: 20px;
|
|
506
|
-
font-size: 13px;
|
|
507
|
-
}
|
|
508
|
-
|
|
509
|
-
.select__option--highlight {
|
|
510
|
-
background: #f3f3f3;
|
|
511
|
-
outline: none;
|
|
512
|
-
color: black;
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
.select__option--highlight:after {
|
|
516
|
-
content: attr(data-select);
|
|
517
|
-
background: #f3f3f3;
|
|
518
|
-
color: silver;
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
.select__option--selected {
|
|
522
|
-
background: #f3f3f3;
|
|
523
|
-
color: black;
|
|
524
|
-
font-weight: bold;
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
.select__option--selected:after {
|
|
528
|
-
content: attr(data-selected);
|
|
529
|
-
color: silver;
|
|
530
|
-
background: inherit;
|
|
531
|
-
}
|
|
532
|
-
|
|
533
|
-
.select__option--selected.select__option--highlight:after {
|
|
534
|
-
content: attr(data-deselect);
|
|
535
|
-
}
|
|
536
|
-
|
|
537
|
-
.select--disabled .select__current,
|
|
538
|
-
.select--disabled .select__caret {
|
|
539
|
-
color: #a6a6a6;
|
|
540
|
-
}
|
|
541
|
-
|
|
542
|
-
.select__option--disabled {
|
|
543
|
-
background: #ededed !important;
|
|
544
|
-
color: #a6a6a6 !important;
|
|
545
|
-
cursor: text;
|
|
546
|
-
pointer-events: none;
|
|
547
|
-
}
|
|
548
|
-
|
|
549
|
-
.select__item {
|
|
550
|
-
display: flex;
|
|
551
|
-
align-items: center;
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
.select__item__text {
|
|
555
|
-
min-width: 0;
|
|
556
|
-
overflow: hidden;
|
|
557
|
-
text-overflow: ellipsis;
|
|
558
|
-
white-space: nowrap;
|
|
559
|
-
}
|
|
560
|
-
|
|
561
|
-
.select-enter-active,
|
|
562
|
-
.select-leave-active {
|
|
563
|
-
transition: all 0.15s ease;
|
|
564
|
-
}
|
|
565
|
-
|
|
566
|
-
.select-enter,
|
|
567
|
-
.select-leave-active {
|
|
568
|
-
opacity: 0;
|
|
569
|
-
}
|
|
570
|
-
|
|
571
|
-
.select__strong {
|
|
572
|
-
margin-bottom: 8px;
|
|
573
|
-
line-height: 20px;
|
|
574
|
-
display: inline-block;
|
|
575
|
-
vertical-align: top;
|
|
576
|
-
}
|
|
577
|
-
|
|
578
|
-
*[dir='rtl'] .select {
|
|
579
|
-
text-align: right;
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
*[dir='rtl'] .select__caret {
|
|
583
|
-
right: auto;
|
|
584
|
-
left: 1px;
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
*[dir='rtl'] .select__tags {
|
|
588
|
-
padding: 8px 8px 0px 40px;
|
|
589
|
-
}
|
|
590
|
-
|
|
591
|
-
*[dir='rtl'] .select__content {
|
|
592
|
-
text-align: right;
|
|
593
|
-
}
|
|
594
|
-
|
|
595
|
-
*[dir='rtl'] .select__option:after {
|
|
596
|
-
right: auto;
|
|
597
|
-
left: 0;
|
|
598
|
-
}
|
|
599
|
-
|
|
600
|
-
*[dir='rtl'] .select__clear {
|
|
601
|
-
right: auto;
|
|
602
|
-
left: 12px;
|
|
603
|
-
}
|
|
604
|
-
|
|
605
|
-
*[dir='rtl'] .select__spinner {
|
|
606
|
-
right: auto;
|
|
607
|
-
left: 1px;
|
|
608
|
-
}
|
|
609
|
-
|
|
610
|
-
@keyframes spinning {
|
|
611
|
-
from {
|
|
612
|
-
transform: rotate(0);
|
|
613
|
-
}
|
|
614
|
-
|
|
615
|
-
to {
|
|
616
|
-
transform: rotate(2turn);
|
|
617
|
-
}
|
|
618
|
-
}
|
|
619
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
:aria-owns="`listbox-${id}`"
|
|
4
|
+
:class="{
|
|
5
|
+
'select--active': isOpen,
|
|
6
|
+
'select--disabled': isDisabled,
|
|
7
|
+
'select--above': isAbove,
|
|
8
|
+
}"
|
|
9
|
+
:tabindex="isSearchable ? -1 : tabindex"
|
|
10
|
+
class="select"
|
|
11
|
+
@blur="isSearchable ? false : deactivate()"
|
|
12
|
+
@focus="activate"
|
|
13
|
+
@keydown.self.down.prevent="pointerForward"
|
|
14
|
+
@keydown.self.up.prevent="pointerBackward"
|
|
15
|
+
@keydown.enter.tab.stop.self="addPointerElement($event)"
|
|
16
|
+
@keyup.esc="deactivate"
|
|
17
|
+
>
|
|
18
|
+
<slot v-if="!isLoading" :toggle="toggle" name="caret">
|
|
19
|
+
<div class="select__caret" @mousedown.prevent.stop="toggle"></div>
|
|
20
|
+
</slot>
|
|
21
|
+
<slot :search="search" name="clear"></slot>
|
|
22
|
+
<div
|
|
23
|
+
ref="tags"
|
|
24
|
+
class="select__tags tw-text-grayscale-600 tw-border tw-border-solid"
|
|
25
|
+
:class="{
|
|
26
|
+
'tw-border-grayscale-500 focus:tw-border-grayscale-600': !isInvalid,
|
|
27
|
+
'tw-border-error-500 focus:tw-border-error-600': isInvalid,
|
|
28
|
+
}"
|
|
29
|
+
>
|
|
30
|
+
<transition name="select__loading">
|
|
31
|
+
<slot name="loading">
|
|
32
|
+
<div v-show="isLoading" class="select__spinner" />
|
|
33
|
+
</slot>
|
|
34
|
+
</transition>
|
|
35
|
+
<input :name="name" :value="valueKey" hidden />
|
|
36
|
+
<input
|
|
37
|
+
v-if="isSearchable"
|
|
38
|
+
:id="id"
|
|
39
|
+
ref="search"
|
|
40
|
+
:aria-controls="`listbox-${id}`"
|
|
41
|
+
:disabled="isDisabled"
|
|
42
|
+
:placeholder="placeholder"
|
|
43
|
+
:style="inputStyle"
|
|
44
|
+
:tabindex="tabindex"
|
|
45
|
+
:value="search"
|
|
46
|
+
class="select__input"
|
|
47
|
+
spellcheck="false"
|
|
48
|
+
autocomplete="one-time-code"
|
|
49
|
+
type="text"
|
|
50
|
+
@input.stop="updateSearch($event.target.value)"
|
|
51
|
+
@blur.prevent="onBlur"
|
|
52
|
+
@focus.prevent="activate"
|
|
53
|
+
@keyup.esc="deactivate"
|
|
54
|
+
@keydown.down.prevent="pointerForward"
|
|
55
|
+
@keydown.up.prevent="pointerBackward"
|
|
56
|
+
@keydown.enter.prevent.stop.self="addPointerElement($event)"
|
|
57
|
+
/>
|
|
58
|
+
<span v-if="isValueVisible" class="select__value" @mousedown.prevent="toggle">
|
|
59
|
+
<slot :option="modelValue" name="label">
|
|
60
|
+
{{ modelValue }}
|
|
61
|
+
</slot>
|
|
62
|
+
</span>
|
|
63
|
+
<span v-if="isPlaceholderVisible" class="select__placeholder" @mousedown.prevent="toggle">
|
|
64
|
+
<slot name="placeholder"> {{ placeholder }} </slot>
|
|
65
|
+
</span>
|
|
66
|
+
</div>
|
|
67
|
+
<transition name="select">
|
|
68
|
+
<div
|
|
69
|
+
v-show="isOpen"
|
|
70
|
+
ref="list"
|
|
71
|
+
:style="{ maxHeight: `${optimizedHeight}px` }"
|
|
72
|
+
class="select__content-wrapper"
|
|
73
|
+
tabindex="-1"
|
|
74
|
+
@focus="activate"
|
|
75
|
+
@mousedown.prevent
|
|
76
|
+
>
|
|
77
|
+
<ul :id="`listbox-${id}`" :style="contentStyle" class="select__content" role="listbox">
|
|
78
|
+
<slot name="beforeList"></slot>
|
|
79
|
+
<li
|
|
80
|
+
v-for="(option, index) of filteredOptions"
|
|
81
|
+
:id="getListId(option)"
|
|
82
|
+
:key="index"
|
|
83
|
+
:role="!(option && option.$isDisabled) ? 'option' : null"
|
|
84
|
+
class="select__element"
|
|
85
|
+
>
|
|
86
|
+
<span
|
|
87
|
+
v-if="!(option && option.$isDisabled)"
|
|
88
|
+
:class="{
|
|
89
|
+
'select__option--highlight': isOptionHighlighted(index),
|
|
90
|
+
'select__option--selected': isOptionSelected(option),
|
|
91
|
+
}"
|
|
92
|
+
:data-deselect="deselectLabelText"
|
|
93
|
+
:data-select="option && option.isCustom ? customPlaceholder : selectLabelText"
|
|
94
|
+
:data-selected="selectedLabelText"
|
|
95
|
+
class="select__option"
|
|
96
|
+
@focus="select(option)"
|
|
97
|
+
@click.stop="select(option)"
|
|
98
|
+
@mouseenter.self="pointerSet(index)"
|
|
99
|
+
>
|
|
100
|
+
<slot :index="index" :option="option" :search="search" name="option">
|
|
101
|
+
<span class="select__item">
|
|
102
|
+
<span v-if="getOptionImageUrl(option)">
|
|
103
|
+
<img
|
|
104
|
+
class="tw-mr-1"
|
|
105
|
+
height="24"
|
|
106
|
+
width="30"
|
|
107
|
+
:src="getOptionImageUrl(option)"
|
|
108
|
+
alt=""
|
|
109
|
+
/>
|
|
110
|
+
</span>
|
|
111
|
+
<span class="select__item__text">{{ getOptionLabel(option) }}</span>
|
|
112
|
+
</span>
|
|
113
|
+
</slot>
|
|
114
|
+
</span>
|
|
115
|
+
</li>
|
|
116
|
+
<li v-show="shouldShowNoResults && filteredOptions.length === 0 && search && !isLoading">
|
|
117
|
+
<span class="select__option">
|
|
118
|
+
<slot :search="search" name="noResult">No results</slot>
|
|
119
|
+
</span>
|
|
120
|
+
</li>
|
|
121
|
+
<slot name="afterList"></slot>
|
|
122
|
+
</ul>
|
|
123
|
+
</div>
|
|
124
|
+
</transition>
|
|
125
|
+
</div>
|
|
126
|
+
</template>
|
|
127
|
+
|
|
128
|
+
<script>
|
|
129
|
+
import selectMixin from './selectMixin';
|
|
130
|
+
import pointerMixin from './pointerMixin';
|
|
131
|
+
|
|
132
|
+
export default {
|
|
133
|
+
mixins: [selectMixin, pointerMixin],
|
|
134
|
+
props: {
|
|
135
|
+
name: {
|
|
136
|
+
type: String,
|
|
137
|
+
default: '',
|
|
138
|
+
},
|
|
139
|
+
selectLabel: {
|
|
140
|
+
type: String,
|
|
141
|
+
default: undefined,
|
|
142
|
+
},
|
|
143
|
+
selectedLabel: {
|
|
144
|
+
type: String,
|
|
145
|
+
default: undefined,
|
|
146
|
+
},
|
|
147
|
+
deselectLabel: {
|
|
148
|
+
type: String,
|
|
149
|
+
default: undefined,
|
|
150
|
+
},
|
|
151
|
+
shouldShowLabels: {
|
|
152
|
+
type: Boolean,
|
|
153
|
+
default: true,
|
|
154
|
+
},
|
|
155
|
+
maxHeight: {
|
|
156
|
+
type: Number,
|
|
157
|
+
default: 300,
|
|
158
|
+
},
|
|
159
|
+
isLoading: {
|
|
160
|
+
type: Boolean,
|
|
161
|
+
default: false,
|
|
162
|
+
},
|
|
163
|
+
openDirection: {
|
|
164
|
+
type: String,
|
|
165
|
+
default: '',
|
|
166
|
+
},
|
|
167
|
+
shouldShowNoResults: {
|
|
168
|
+
type: Boolean,
|
|
169
|
+
default: true,
|
|
170
|
+
},
|
|
171
|
+
tabindex: {
|
|
172
|
+
type: Number,
|
|
173
|
+
default: 0,
|
|
174
|
+
},
|
|
175
|
+
shouldSelectExactMatchOnBlur: {
|
|
176
|
+
type: Boolean,
|
|
177
|
+
default: false,
|
|
178
|
+
},
|
|
179
|
+
isInvalid: {
|
|
180
|
+
type: Boolean,
|
|
181
|
+
default: false,
|
|
182
|
+
},
|
|
183
|
+
},
|
|
184
|
+
computed: {
|
|
185
|
+
isValueVisible() {
|
|
186
|
+
if (this.isSearchable && this.isOpen) {
|
|
187
|
+
return false;
|
|
188
|
+
}
|
|
189
|
+
return !!this.modelValue;
|
|
190
|
+
},
|
|
191
|
+
isPlaceholderVisible() {
|
|
192
|
+
if (this.isSearchable && this.isOpen) {
|
|
193
|
+
return false;
|
|
194
|
+
}
|
|
195
|
+
return !this.modelValue;
|
|
196
|
+
},
|
|
197
|
+
deselectLabelText() {
|
|
198
|
+
return this.shouldShowLabels ? this.deselectLabel : '';
|
|
199
|
+
},
|
|
200
|
+
selectLabelText() {
|
|
201
|
+
return this.shouldShowLabels ? this.selectLabel : '';
|
|
202
|
+
},
|
|
203
|
+
selectedLabelText() {
|
|
204
|
+
return this.shouldShowLabels ? this.selectedLabel : '';
|
|
205
|
+
},
|
|
206
|
+
inputStyle() {
|
|
207
|
+
if (this.isSearchable) {
|
|
208
|
+
// Hide input by setting the width to 0 allowing it to receive focus
|
|
209
|
+
return this.isOpen ? { width: '100%' } : { width: '0', position: 'absolute', padding: '0' };
|
|
210
|
+
}
|
|
211
|
+
return '';
|
|
212
|
+
},
|
|
213
|
+
contentStyle() {
|
|
214
|
+
return this.options.length ? { display: 'inline-block' } : { display: 'block' };
|
|
215
|
+
},
|
|
216
|
+
isAbove() {
|
|
217
|
+
if (this.openDirection === 'above' || this.openDirection === 'top') {
|
|
218
|
+
return true;
|
|
219
|
+
}
|
|
220
|
+
if (this.openDirection === 'below' || this.openDirection === 'bottom') {
|
|
221
|
+
return false;
|
|
222
|
+
}
|
|
223
|
+
return this.preferredOpenDirection === 'above';
|
|
224
|
+
},
|
|
225
|
+
},
|
|
226
|
+
watch: {
|
|
227
|
+
isOpen(isOpen) {
|
|
228
|
+
if (isOpen && this.modelValue) {
|
|
229
|
+
const selectedOption = document.getElementById(this.getListId(this.modelValue));
|
|
230
|
+
|
|
231
|
+
if (selectedOption) {
|
|
232
|
+
this.$nextTick(() => {
|
|
233
|
+
selectedOption.scrollIntoView({ behavior: 'instant', block: 'nearest', inline: 'nearest' });
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
},
|
|
239
|
+
methods: {
|
|
240
|
+
onBlur() {
|
|
241
|
+
if (this.shouldSelectExactMatchOnBlur && this.hasExactMatch) {
|
|
242
|
+
if (!this.isOptionSelected(this.exactMatchOption)) {
|
|
243
|
+
this.select(this.exactMatchOption, this.getOptionKey(this.exactMatchOption));
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
this.deactivate();
|
|
247
|
+
},
|
|
248
|
+
getListId(option) {
|
|
249
|
+
return `${this.id}-${this.getOptionKey(option)}`;
|
|
250
|
+
},
|
|
251
|
+
},
|
|
252
|
+
};
|
|
253
|
+
</script>
|
|
254
|
+
<style scoped>
|
|
255
|
+
fieldset[disabled] .select {
|
|
256
|
+
pointer-events: none;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.select__spinner {
|
|
260
|
+
position: absolute;
|
|
261
|
+
top: 50%;
|
|
262
|
+
right: 0;
|
|
263
|
+
transform: translateY(-50%);
|
|
264
|
+
width: 40px;
|
|
265
|
+
height: 38px;
|
|
266
|
+
display: block;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.select__spinner:before,
|
|
270
|
+
.select__spinner:after {
|
|
271
|
+
position: absolute;
|
|
272
|
+
content: '';
|
|
273
|
+
top: 50%;
|
|
274
|
+
left: 50%;
|
|
275
|
+
margin: -8px 0 0 -8px;
|
|
276
|
+
width: 16px;
|
|
277
|
+
height: 16px;
|
|
278
|
+
border-radius: 100%;
|
|
279
|
+
border-color: #41b883 transparent transparent;
|
|
280
|
+
border-style: solid;
|
|
281
|
+
border-width: 2px;
|
|
282
|
+
box-shadow: 0 0 0 1px transparent;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.select__spinner:before {
|
|
286
|
+
animation: spinning 2.4s cubic-bezier(0.41, 0.26, 0.2, 0.62);
|
|
287
|
+
animation-iteration-count: infinite;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.select__spinner:after {
|
|
291
|
+
animation: spinning 2.4s cubic-bezier(0.51, 0.09, 0.21, 0.8);
|
|
292
|
+
animation-iteration-count: infinite;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.select__loading-enter-active,
|
|
296
|
+
.select__loading-leave-active {
|
|
297
|
+
transition: opacity 0.4s ease-in-out;
|
|
298
|
+
opacity: 1;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.select__loading-enter,
|
|
302
|
+
.select__loading-leave-active {
|
|
303
|
+
opacity: 0;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.select,
|
|
307
|
+
.select__input,
|
|
308
|
+
.select__value {
|
|
309
|
+
font-family: inherit;
|
|
310
|
+
font-size: 16px;
|
|
311
|
+
touch-action: manipulation;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.select {
|
|
315
|
+
box-sizing: content-box;
|
|
316
|
+
display: block;
|
|
317
|
+
position: relative;
|
|
318
|
+
width: 100%;
|
|
319
|
+
min-height: 50px;
|
|
320
|
+
text-align: left;
|
|
321
|
+
color: black;
|
|
322
|
+
align-items: center;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.select * {
|
|
326
|
+
box-sizing: border-box;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.select:focus {
|
|
330
|
+
outline: none;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.select--disabled {
|
|
334
|
+
background: #ededed;
|
|
335
|
+
pointer-events: none;
|
|
336
|
+
opacity: 0.6;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.select--active {
|
|
340
|
+
z-index: 50;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
.select--active:not(.select--above) .select__current,
|
|
344
|
+
.select--active:not(.select--above) .select__input,
|
|
345
|
+
.select--active:not(.select--above) .select__tags {
|
|
346
|
+
border-bottom-left-radius: 0;
|
|
347
|
+
border-bottom-right-radius: 0;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.select--active .select__caret {
|
|
351
|
+
transform: rotateZ(180deg);
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.select--above.select--active .select__current,
|
|
355
|
+
.select--above.select--active .select__input,
|
|
356
|
+
.select--above.select--active .select__tags {
|
|
357
|
+
border-top-left-radius: 0;
|
|
358
|
+
border-top-right-radius: 0;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
.select__input,
|
|
362
|
+
.select__value {
|
|
363
|
+
position: relative;
|
|
364
|
+
display: inline-block;
|
|
365
|
+
min-height: 20px;
|
|
366
|
+
border: none;
|
|
367
|
+
border-radius: 5px;
|
|
368
|
+
background: #fff;
|
|
369
|
+
width: calc(100%);
|
|
370
|
+
transition: border 0.1s ease;
|
|
371
|
+
box-sizing: border-box;
|
|
372
|
+
vertical-align: top;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
.select__input::placeholder {
|
|
376
|
+
color: #35495e;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
.select__tag ~ .select__input,
|
|
380
|
+
.select__tag ~ .select__value {
|
|
381
|
+
width: auto;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
.select__input:hover,
|
|
385
|
+
.select__value:hover {
|
|
386
|
+
border-color: #cfcfcf;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
.select__input:focus,
|
|
390
|
+
.select__value:focus {
|
|
391
|
+
border-color: #a8a8a8;
|
|
392
|
+
outline: none;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
.select__tags {
|
|
396
|
+
min-height: 48px;
|
|
397
|
+
display: flex;
|
|
398
|
+
align-items: center;
|
|
399
|
+
padding: 4px 40px 4px 16px;
|
|
400
|
+
border-radius: 5px;
|
|
401
|
+
background: #fff;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
.select__tags input {
|
|
405
|
+
padding: 0;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
.select__caret {
|
|
409
|
+
line-height: 16px;
|
|
410
|
+
display: block;
|
|
411
|
+
position: absolute;
|
|
412
|
+
box-sizing: border-box;
|
|
413
|
+
width: 40px;
|
|
414
|
+
height: 38px;
|
|
415
|
+
right: 1px;
|
|
416
|
+
top: 5px;
|
|
417
|
+
padding: 4px 8px;
|
|
418
|
+
margin: 0;
|
|
419
|
+
text-decoration: none;
|
|
420
|
+
text-align: center;
|
|
421
|
+
cursor: pointer;
|
|
422
|
+
transition: transform 0.2s ease;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
.select__caret:before {
|
|
426
|
+
position: relative;
|
|
427
|
+
right: 0;
|
|
428
|
+
top: 65%;
|
|
429
|
+
color: #999;
|
|
430
|
+
margin-top: 50%;
|
|
431
|
+
border-style: solid;
|
|
432
|
+
border-width: 5px 5px 0 5px;
|
|
433
|
+
border-color: #999999 transparent transparent transparent;
|
|
434
|
+
content: '';
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
.select__placeholder {
|
|
438
|
+
color: #adadad;
|
|
439
|
+
display: flex;
|
|
440
|
+
align-items: center;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
.select__content-wrapper {
|
|
444
|
+
position: absolute;
|
|
445
|
+
display: block;
|
|
446
|
+
background: #fff;
|
|
447
|
+
width: 100%;
|
|
448
|
+
max-height: 240px;
|
|
449
|
+
overflow: auto;
|
|
450
|
+
border: 1px solid #d0d0d0;
|
|
451
|
+
border-top: none;
|
|
452
|
+
border-bottom-left-radius: 5px;
|
|
453
|
+
border-bottom-right-radius: 5px;
|
|
454
|
+
z-index: 50;
|
|
455
|
+
-webkit-overflow-scrolling: touch;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
.select__content {
|
|
459
|
+
list-style: none;
|
|
460
|
+
display: inline-block;
|
|
461
|
+
padding: 0;
|
|
462
|
+
margin: 0;
|
|
463
|
+
min-width: 100%;
|
|
464
|
+
vertical-align: top;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
.select--above .select__content-wrapper {
|
|
468
|
+
bottom: 100%;
|
|
469
|
+
border-bottom-left-radius: 0;
|
|
470
|
+
border-bottom-right-radius: 0;
|
|
471
|
+
border-top-left-radius: 5px;
|
|
472
|
+
border-top-right-radius: 5px;
|
|
473
|
+
border-bottom: none;
|
|
474
|
+
border-top: 1px solid #d0d0d0;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
.select__content::webkit-scrollbar {
|
|
478
|
+
display: none;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
.select__element {
|
|
482
|
+
display: block;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
.select__option {
|
|
486
|
+
display: block;
|
|
487
|
+
padding: 12px;
|
|
488
|
+
min-height: 40px;
|
|
489
|
+
line-height: 16px;
|
|
490
|
+
text-decoration: none;
|
|
491
|
+
text-transform: none;
|
|
492
|
+
vertical-align: middle;
|
|
493
|
+
position: relative;
|
|
494
|
+
cursor: pointer;
|
|
495
|
+
white-space: nowrap;
|
|
496
|
+
color: #4b545d;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
.select__option:after {
|
|
500
|
+
top: 0;
|
|
501
|
+
right: 0;
|
|
502
|
+
position: absolute;
|
|
503
|
+
line-height: 40px;
|
|
504
|
+
padding-right: 12px;
|
|
505
|
+
padding-left: 20px;
|
|
506
|
+
font-size: 13px;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
.select__option--highlight {
|
|
510
|
+
background: #f3f3f3;
|
|
511
|
+
outline: none;
|
|
512
|
+
color: black;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
.select__option--highlight:after {
|
|
516
|
+
content: attr(data-select);
|
|
517
|
+
background: #f3f3f3;
|
|
518
|
+
color: silver;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
.select__option--selected {
|
|
522
|
+
background: #f3f3f3;
|
|
523
|
+
color: black;
|
|
524
|
+
font-weight: bold;
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
.select__option--selected:after {
|
|
528
|
+
content: attr(data-selected);
|
|
529
|
+
color: silver;
|
|
530
|
+
background: inherit;
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
.select__option--selected.select__option--highlight:after {
|
|
534
|
+
content: attr(data-deselect);
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
.select--disabled .select__current,
|
|
538
|
+
.select--disabled .select__caret {
|
|
539
|
+
color: #a6a6a6;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
.select__option--disabled {
|
|
543
|
+
background: #ededed !important;
|
|
544
|
+
color: #a6a6a6 !important;
|
|
545
|
+
cursor: text;
|
|
546
|
+
pointer-events: none;
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
.select__item {
|
|
550
|
+
display: flex;
|
|
551
|
+
align-items: center;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
.select__item__text {
|
|
555
|
+
min-width: 0;
|
|
556
|
+
overflow: hidden;
|
|
557
|
+
text-overflow: ellipsis;
|
|
558
|
+
white-space: nowrap;
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
.select-enter-active,
|
|
562
|
+
.select-leave-active {
|
|
563
|
+
transition: all 0.15s ease;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
.select-enter,
|
|
567
|
+
.select-leave-active {
|
|
568
|
+
opacity: 0;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
.select__strong {
|
|
572
|
+
margin-bottom: 8px;
|
|
573
|
+
line-height: 20px;
|
|
574
|
+
display: inline-block;
|
|
575
|
+
vertical-align: top;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
*[dir='rtl'] .select {
|
|
579
|
+
text-align: right;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
*[dir='rtl'] .select__caret {
|
|
583
|
+
right: auto;
|
|
584
|
+
left: 1px;
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
*[dir='rtl'] .select__tags {
|
|
588
|
+
padding: 8px 8px 0px 40px;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
*[dir='rtl'] .select__content {
|
|
592
|
+
text-align: right;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
*[dir='rtl'] .select__option:after {
|
|
596
|
+
right: auto;
|
|
597
|
+
left: 0;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
*[dir='rtl'] .select__clear {
|
|
601
|
+
right: auto;
|
|
602
|
+
left: 12px;
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
*[dir='rtl'] .select__spinner {
|
|
606
|
+
right: auto;
|
|
607
|
+
left: 1px;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
@keyframes spinning {
|
|
611
|
+
from {
|
|
612
|
+
transform: rotate(0);
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
to {
|
|
616
|
+
transform: rotate(2turn);
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
</style>
|