@visitscotland/component-library 4.13.0 → 4.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/manifest.json +52 -52
- package/dist/client/scripts/3643e8adbc31fe5e852c.js +1 -0
- package/dist/client/scripts/3ada54e50e313a6737a6.js +1 -0
- package/dist/client/scripts/8593e59e80bc35f4ac1c.js +1 -0
- package/dist/client/styles/{be2e6604c58295414b22.css → 3643e8adbc31fe5e852c.css} +1 -1
- package/dist/client/styles/3ada54e50e313a6737a6.css +1 -0
- package/dist/components/components/canned-search/CannedSearch.vue.d.ts +4 -0
- package/dist/components/components/canned-search/components/CannedSearchLogos.vue.d.ts +2 -0
- package/dist/components/components/canned-search/components/CannedSearchProductCard.vue.d.ts +2 -0
- package/dist/components/components/carousel/components/CarouselSlide.vue.d.ts +3 -0
- package/dist/components/components/hero-section/HeroSection.vue.d.ts +2 -0
- package/dist/components/components/hero-section/components/HeroSectionImage.vue.d.ts +2 -0
- package/dist/components/components/image-with-caption/ImageWithCaption.vue.d.ts +2 -0
- package/dist/components/components/img/Img.vue.d.ts +2 -0
- package/dist/components/components/mega-nav/components/MegaNavFeaturedEvent.vue.d.ts +3 -0
- package/dist/components/components/mega-nav/components/MegaNavFeaturedItem.vue.d.ts +3 -0
- package/dist/components/components/megalinks/components/megalink-link-list/MegalinkLinkList.vue.d.ts +3 -0
- package/dist/components/components/megalinks/components/megalink-multi-image/MegalinkMultiImage.vue.d.ts +3 -0
- package/dist/components/components/ski-scotland/ski-scotland-card/SkiScotlandCard.vue.d.ts +2 -0
- package/dist/components/components/stretched-link-card/StretchedLinkCard.vue.d.ts +3 -0
- package/dist/components/vs-component-library.css +1 -1
- package/dist/components/vs-component-library.js +174 -174
- package/dist/components/vs-component-library.mjs +9127 -9118
- package/dist/ssr/index.js +1 -1
- package/dist/ssr/manifest.json +1 -1
- package/dist/ssr/styles/{52a59c3973095dee25d2.css → 05c8c64652996ad6f8aa.css} +2 -2
- package/package.json +231 -231
- package/CHANGELOG.md +0 -3060
- package/dist/client/scripts/0e6fcaca5793d325e71f.js +0 -1
- package/dist/client/scripts/4c1f26c64e28681543ad.js +0 -1
- package/dist/client/scripts/be2e6604c58295414b22.js +0 -1
- package/dist/client/styles/4c1f26c64e28681543ad.css +0 -1
- /package/dist/client/styles/{0e6fcaca5793d325e71f.css → 8593e59e80bc35f4ac1c.css} +0 -0
package/dist/ssr/manifest.json
CHANGED
|
@@ -45,7 +45,7 @@ h4.vs-canned-search-sub-heading{color:#535396;margin:0;margin-bottom:.75rem}h4.v
|
|
|
45
45
|
label,legend{font-weight:600;margin-bottom:0}legend{font-size:1.125rem}.error{font-size:1rem;color:#940f2c;display:block}.hint-text{font-size:1rem;color:#606060;margin-bottom:0}.vs-number-input{border:#535396 1px solid;display:inline-block;width:4rem;text-align:center;margin-top:.5rem;margin-left:1rem;margin-right:1rem;font-size:1.25rem;padding:.5rem .75rem}.vs-number-input.form-control-md{height:50px}.vs-number-input:focus{border-color:#3369ff;box-shadow:0 0 0 2px #3369ff inset;outline:none}.vs-number-input--error{border-color:#940f2c;box-shadow:0 0 0 2px #940f2c inset}.vs-number-input__clear-button{position:absolute;right:1.25rem;top:50%;transform:translate(0, -50%)}.vs-number-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.vs-number-input__increment{width:1.75rem;height:1.75rem}
|
|
46
46
|
.vs-carbon-calculator-question{margin-bottom:2rem}.vs-carbon-calculator-question__label{width:100%}
|
|
47
47
|
.vs-carbon-calculator{display:block}.vs-carbon-calculator .vs-progress-bar{margin-bottom:2rem}.vs-carbon-calculator .vs-carbon-calculator__category-heading{margin-top:0;margin-bottom:1.5rem}.vs-carbon-calculator__wrapper .vs-warning{display:none}.no-js .vs-carbon-calculator{display:none}.no-js .vs-carbon-calculator__wrapper .vs-warning{display:block}
|
|
48
|
-
.card.vs-stretched-link-card .vs-stretched-link-card__title .stretched-link:focus{outline:2px solid #3369ff}.card.vs-stretched-link-card{border:none;position:relative;line-height:1}.card.vs-stretched-link-card:hover .vs-stretched-link-card__video-button{background-color:#17359c;border-color:#17359c}.card.vs-stretched-link-card:active .vs-stretched-link-card__video-button{background-color:#112876;border-color:#112876}.card.vs-stretched-link-card--video{cursor:pointer}.card.vs-stretched-link-card .vs-stretched-link-card__img-container{width:100%;max-width:100%;position:relative;aspect-ratio:3/2}@supports not (aspect-ratio: 3/2){.card.vs-stretched-link-card .vs-stretched-link-card__img-container{padding-bottom:66.6%}}.card.vs-stretched-link-card .vs-stretched-link-card__img-container .vs-stretched-link-card__img{width:100%;height:100%;object-fit:cover;align-self:flex-start;flex-shrink:0}.card.vs-stretched-link-card .card-body{padding:1rem 0 .5rem;width:100%}.card.vs-stretched-link-card .vs-stretched-link-card__title{color:#200f2e;display:flex}.card.vs-stretched-link-card .vs-stretched-link-card__title .stretched-link{color:#200f2e;text-decoration:none;letter-spacing:inherit;display:block}.card.vs-stretched-link-card .vs-stretched-link-card__title .stretched-link:hover{text-decoration:underline}.card.vs-stretched-link-card .vs-stretched-link-card__title .stretched-link--disabled{cursor:default}.card.vs-stretched-link-card .vs-stretched-link-card__title .stretched-link--disabled::after{display:none}.card.vs-stretched-link-card .vs-stretched-link-card__title .stretched-link .vs-icon{color:#a8308c}.card.vs-stretched-link-card .vs-stretched-link-card__category{font-size:.875rem;line-height:1;color:#535396;letter-spacing:normal;margin-bottom:1rem}.card.vs-stretched-link-card .vs-stretched-link-card__content{margin-top:.5rem;line-height:1.3;font-size:1rem;text-align:left}.card.vs-stretched-link-card .vs-stretched-link-card__content p:last-of-type{margin-bottom:0}.card.vs-stretched-link-card .vs-stretched-link-card__panels{position:absolute;top:.25rem;right:.25rem;display:flex;flex-direction:row}@media(min-width: 576px){.card.vs-stretched-link-card .vs-stretched-link-card__panels{top:.5rem;right:.5rem}}.card.vs-stretched-link-card .vs-stretched-link-card__link{margin:1rem 0 0;color:#1f49d6;text-decoration:underline}.card.vs-stretched-link-card .vs-stretched-link-card__video-button{position:absolute;bottom:100%;left:0}.card.vs-stretched-link-card .vs-stretched-link-card__video-btn-text{padding-right:.25rem}.card.vs-stretched-link-card .vs-stretched-link-card__full-warning{position:absolute;height:127px;width:calc(100% - 1rem);z-index:1}.card.vs-stretched-link-card .vs-stretched-link-card__image-warning{position:absolute;width:100%;height:100%;z-index:1;top:0}.card.vs-stretched-link-card .vs-stretched-link-card__full-warning--no-js,.card.vs-stretched-link-card .vs-stretched-link-card__image-warning--no-js{display:none}.card.vs-stretched-link-card .vs-stretched-link-card__badges{margin-top:.5rem}.no-js .card.vs-stretched-link-card .vs-stretched-link-card__image-warning,.no-js .card.vs-stretched-link-card .vs-stretched-link-card__full-warning,.no-js .card.vs-stretched-link-card .vs-stretched-link-card__video-button{display:none}.no-js .card.vs-stretched-link-card .vs-stretched-link-card__full-warning--no-js,.no-js .card.vs-stretched-link-card .vs-stretched-link-card__image-warning--no-js{display:flex}
|
|
48
|
+
.card.vs-stretched-link-card .vs-stretched-link-card__title .stretched-link:focus{outline:2px solid #3369ff}.card.vs-stretched-link-card{border:none;position:relative;line-height:1}.card.vs-stretched-link-card:hover .vs-stretched-link-card__video-button{background-color:#17359c;border-color:#17359c}.card.vs-stretched-link-card:active .vs-stretched-link-card__video-button{background-color:#112876;border-color:#112876}.card.vs-stretched-link-card--video{cursor:pointer}.card.vs-stretched-link-card .vs-stretched-link-card__img-container{width:100%;max-width:100%;position:relative;aspect-ratio:3/2}@supports not (aspect-ratio: 3/2){.card.vs-stretched-link-card .vs-stretched-link-card__img-container{padding-bottom:66.6%}}.card.vs-stretched-link-card .vs-stretched-link-card__img-container .vs-stretched-link-card__img{width:100%;height:100%;object-fit:cover;align-self:flex-start;flex-shrink:0}.card.vs-stretched-link-card .vs-stretched-link-card__img-container .vs-stretched-link-card__img--svg{object-fit:contain}.card.vs-stretched-link-card .card-body{padding:1rem 0 .5rem;width:100%}.card.vs-stretched-link-card .vs-stretched-link-card__title{color:#200f2e;display:flex}.card.vs-stretched-link-card .vs-stretched-link-card__title .stretched-link{color:#200f2e;text-decoration:none;letter-spacing:inherit;display:block}.card.vs-stretched-link-card .vs-stretched-link-card__title .stretched-link:hover{text-decoration:underline}.card.vs-stretched-link-card .vs-stretched-link-card__title .stretched-link--disabled{cursor:default}.card.vs-stretched-link-card .vs-stretched-link-card__title .stretched-link--disabled::after{display:none}.card.vs-stretched-link-card .vs-stretched-link-card__title .stretched-link .vs-icon{color:#a8308c}.card.vs-stretched-link-card .vs-stretched-link-card__category{font-size:.875rem;line-height:1;color:#535396;letter-spacing:normal;margin-bottom:1rem}.card.vs-stretched-link-card .vs-stretched-link-card__content{margin-top:.5rem;line-height:1.3;font-size:1rem;text-align:left}.card.vs-stretched-link-card .vs-stretched-link-card__content p:last-of-type{margin-bottom:0}.card.vs-stretched-link-card .vs-stretched-link-card__panels{position:absolute;top:.25rem;right:.25rem;display:flex;flex-direction:row}@media(min-width: 576px){.card.vs-stretched-link-card .vs-stretched-link-card__panels{top:.5rem;right:.5rem}}.card.vs-stretched-link-card .vs-stretched-link-card__link{margin:1rem 0 0;color:#1f49d6;text-decoration:underline}.card.vs-stretched-link-card .vs-stretched-link-card__video-button{position:absolute;bottom:100%;left:0}.card.vs-stretched-link-card .vs-stretched-link-card__video-btn-text{padding-right:.25rem}.card.vs-stretched-link-card .vs-stretched-link-card__full-warning{position:absolute;height:127px;width:calc(100% - 1rem);z-index:1}.card.vs-stretched-link-card .vs-stretched-link-card__image-warning{position:absolute;width:100%;height:100%;z-index:1;top:0}.card.vs-stretched-link-card .vs-stretched-link-card__full-warning--no-js,.card.vs-stretched-link-card .vs-stretched-link-card__image-warning--no-js{display:none}.card.vs-stretched-link-card .vs-stretched-link-card__badges{margin-top:.5rem}.no-js .card.vs-stretched-link-card .vs-stretched-link-card__image-warning,.no-js .card.vs-stretched-link-card .vs-stretched-link-card__full-warning,.no-js .card.vs-stretched-link-card .vs-stretched-link-card__video-button{display:none}.no-js .card.vs-stretched-link-card .vs-stretched-link-card__full-warning--no-js,.no-js .card.vs-stretched-link-card .vs-stretched-link-card__image-warning--no-js{display:flex}
|
|
49
49
|
.vs-stretched-link-panels{position:absolute;right:1rem;top:1rem;display:flex;flex-direction:row}.vs-stretched-link-panels__panel{width:55px;height:55px;background:#33225d;margin-left:.5rem;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center}.vs-stretched-link-panels__panel--days{background:#a8308c}.vs-stretched-link-panels__panel p{margin-bottom:0;text-align:center;line-height:1;font-size:.625rem}.vs-stretched-link-panels__days{font-size:1.25rem;font-family:"Source Sans Pro";font-weight:700;display:block;margin-bottom:.25rem}.vs-stretched-link-panels__icon{height:20px;width:auto;margin-bottom:.25rem}
|
|
50
50
|
.vs-carousel-slide{max-width:100%;flex-shrink:0;display:flex}.vs-carousel-slide .vs-carousel-slide__card{flex-shrink:0;opacity:.5;transition:.5s;padding:.5rem;max-width:100%}.vs-carousel-slide .vs-carousel-slide__card--active{opacity:1}.vs-carousel-slide .vs-carousel-slide__card--disabled *{pointer-events:none}.vs-carousel-slide .card-title{margin-bottom:0}.vs-carousel-slide .card-body{text-align:left}.vs-carousel-slide .card-body .vs-heading__sub-heading{display:none}.no-js .vs-carousel-slide{margin-bottom:.5rem}.no-js .vs-carousel-slide::after{content:"";position:absolute;left:.75rem;bottom:.25rem;height:1px;width:calc(100% - 24px);background:#e9e9e9}@media(min-width: 576px){.no-js .vs-carousel-slide::after{width:calc(100% - 40px);left:1.25rem}}.no-js .vs-carousel-slide .vs-stretched-link-card{opacity:1;display:flex;flex-direction:row;padding:.5rem;border:none;height:100%;cursor:pointer}.no-js .vs-carousel-slide .vs-stretched-link-card:hover .vs-stretched-link-card__title{text-decoration:underline}.no-js .vs-carousel-slide .vs-stretched-link-card .stretched-link{text-decoration:none;letter-spacing:0}.no-js .vs-carousel-slide .vs-stretched-link-card .card-body{background:none;padding:0;align-self:flex-start;width:66%;text-align:left}.no-js .vs-carousel-slide .vs-stretched-link-card__img-container{width:33%;align-self:flex-start;margin-right:1rem}.no-js .vs-carousel-slide .vs-stretched-link-card__title{font-size:.75rem;letter-spacing:1px;line-height:1.6;color:#200f2e;text-decoration:none}.no-js .vs-carousel-slide .vs-stretched-link-card__category{margin-bottom:.5rem}.no-js .vs-carousel-slide .vs-stretched-link-card .card-title{display:flex;margin-bottom:0}.no-js .vs-carousel-slide .vs-stretched-link-card__content{display:none}.no-js .vs-carousel-slide .vs-stretched-link-card__content p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.no-js .vs-carousel-slide .vs-stretched-link-card .vs-stretched-link-panels{right:auto;left:calc(33% - 4px);top:1rem;transform:translateX(-100%)}.no-js .vs-carousel-slide .vs-stretched-link-card .vs-stretched-link-panels__panel{display:none;width:36px;height:36px}.no-js .vs-carousel-slide .vs-stretched-link-card .vs-stretched-link-panels__panel--days{display:flex}.no-js .vs-carousel-slide .vs-stretched-link-card .vs-stretched-link-panels__days{font-size:1rem;margin-bottom:0}@media(min-width: 576px){.no-js .vs-stretched-link-card__content{display:block}}@media(min-width: 992px){.no-js .vs-carousel-slide .vs-stretched-link-card__title{font-size:.875rem}.no-js .vs-carousel-slide .vs-stretched-link-card__content{margin:.5rem 0 0;line-height:1.3}}
|
|
51
51
|
label,legend{font-weight:600;margin-bottom:0}legend{font-size:1.125rem}.error{font-size:1rem;color:#940f2c;display:block}.hint-text{font-size:1rem;color:#606060;margin-bottom:0}.vs-checkbox input[type=checkbox]{outline:#535396 1px solid;border:none;width:38px;height:38px;align-self:flex-start;position:relative}.vs-checkbox input[type=checkbox]:before{content:"";width:100%;height:100%;background-color:#fff;position:absolute;top:0;left:0}.vs-checkbox input[type=checkbox]:after{content:"";position:absolute;width:100%;height:100%}.vs-checkbox input[type=checkbox]:focus{outline:none}.vs-checkbox input[type=checkbox]:focus:after{border-color:#3369ff;box-shadow:0 0 0 2px #3369ff inset;outline:none}.vs-checkbox input[type=checkbox]:checked:before{font-family:"Font Awesome Kit";background-color:#1f49d6;content:"";color:#fff;text-align:center;line-height:2;font-size:1.25rem}.vs-checkbox input[type=checkbox]{margin:.5rem 1rem 0 0}.vs-checkbox .form-check{display:flex;align-items:center;padding-left:0;margin-bottom:0}.vs-checkbox label{flex:1;margin-bottom:0}.vs-checkbox__label{display:inline-block;font-size:1rem;font-weight:400}.vs-checkbox--error input[type=checkbox]{outline:none}.vs-checkbox--error input[type=checkbox]:after{content:"";position:absolute;width:100%;height:100%;border-color:#940f2c;box-shadow:0 0 0 2px #940f2c inset}.vs-checkbox--small input[type=checkbox]{outline:#535396 1px solid;border:none;width:16px;height:16px;align-self:flex-start;position:relative}.vs-checkbox--small input[type=checkbox]:before{content:"";width:100%;height:100%;background-color:#fff;position:absolute;top:0;left:0}.vs-checkbox--small input[type=checkbox]:after{content:"";position:absolute;width:100%;height:100%}.vs-checkbox--small input[type=checkbox]:focus{outline:none}.vs-checkbox--small input[type=checkbox]:focus:after{border-color:#3369ff;box-shadow:0 0 0 2px #3369ff inset;outline:none}.vs-checkbox--small input[type=checkbox]:checked:before{font-family:"Font Awesome Kit";background-color:#1f49d6;content:"";color:#fff;text-align:center;line-height:1.3;font-size:.75rem}.vs-checkbox .form-check-input[disabled]~.form-check-label,.vs-checkbox .form-check-input:disabled~.form-check-label,.vs-checkbox .form-check-input[disabled]{opacity:1;color:#909090}.vs-checkbox input[type=checkbox].form-check-input[disabled]{outline:#909090 1px solid}
|
|
@@ -107,7 +107,7 @@ label,legend{font-weight:600;margin-bottom:0}legend{font-size:1.125rem}.error{fo
|
|
|
107
107
|
.vs-map-with-sidebar{height:75vh;display:flex}@media(min-width: 992px){.vs-map-with-sidebar{height:650px}}.vs-map-with-sidebar .container,.vs-map-with-sidebar .row{height:100%}.vs-map-with-sidebar__side-panel{position:relative;width:100%}@media(min-width: 992px){.vs-map-with-sidebar__side-panel{flex:0 0 354px;max-width:354px}}.vs-map-with-sidebar__map{position:relative;height:100%;width:100%}.vs-map-with-sidebar__map-toggle.vs-button{position:absolute;top:.5rem;left:.5rem;max-width:calc(100% - 60px);padding:.25rem .75rem;z-index:100}@media(min-width: 992px){.vs-map-with-sidebar__map-toggle.vs-button{display:none}}.vs-map-with-sidebar__no-js{display:none}.vs-map-with-sidebar .vs-button-toggle-group{position:absolute;top:100%;left:50%;transform:translate(-50%, -50%);margin-bottom:0}@media(min-width: 992px){.vs-map-with-sidebar .vs-button-toggle-group{display:none}}.os-api-branding.logo,.os-api-branding.copyright{margin-bottom:2rem !important}.no-js .vs-map-with-sidebar{display:none}.no-js .vs-map-with-sidebar__no-js{display:flex}
|
|
108
108
|
.vs-mega-nav-accordion-item__cta-link{text-decoration:none;transition:.2s color;font-size:1.125rem;line-height:1.3;display:block;padding:.75rem 2rem}.vs-mega-nav-accordion-item__cta-link:hover{color:#200f2e}.vs-mega-nav-accordion-item__cta-link:focus{outline-offset:-2px}.vs-mega-nav-accordion-item.vs-accordion-item.card{border-top:0}.vs-mega-nav-accordion-item.vs-accordion-item.card .vs-accordion-item__panel.card-body{padding:0}.vs-mega-nav-accordion-item--level-1>.vs-accordion-item__card-header .vs-accordion-toggle.vs-accordion-toggle--open::after,.vs-mega-nav-accordion-item--level-1>.vs-accordion-item__card-header .vs-accordion-toggle:hover::after,.vs-mega-nav-accordion-item--level-2>.vs-accordion-item__card-header .vs-accordion-toggle.vs-accordion-toggle--open::after,.vs-mega-nav-accordion-item--level-2>.vs-accordion-item__card-header .vs-accordion-toggle:hover::after{content:"";position:absolute;display:block;top:0;left:0;width:12px;height:100%;background:#1f49d6}.vs-mega-nav-accordion-item--level-1>.vs-accordion-item__card-header .vs-accordion-toggle.btn,.vs-mega-nav-accordion-item--level-2>.vs-accordion-item__card-header .vs-accordion-toggle.btn{background-color:#fff;color:#200f2e;letter-spacing:normal;text-align:left;font-weight:400;transition:none;border:0}.vs-mega-nav-accordion-item--level-1>.vs-accordion-item__card-header .vs-accordion-toggle.btn:hover,.vs-mega-nav-accordion-item--level-2>.vs-accordion-item__card-header .vs-accordion-toggle.btn:hover{color:#1f49d6}.vs-mega-nav-accordion-item--level-1>.vs-accordion-item__card-header .vs-accordion-toggle.btn .vs-icon,.vs-mega-nav-accordion-item--level-2>.vs-accordion-item__card-header .vs-accordion-toggle.btn .vs-icon{color:#200f2e}.vs-mega-nav-accordion-item--level-1>.vs-accordion-item__card-header .vs-accordion-toggle.btn:active,.vs-mega-nav-accordion-item--level-1>.vs-accordion-item__card-header .vs-accordion-toggle.btn:active:focus,.vs-mega-nav-accordion-item--level-2>.vs-accordion-item__card-header .vs-accordion-toggle.btn:active,.vs-mega-nav-accordion-item--level-2>.vs-accordion-item__card-header .vs-accordion-toggle.btn:active:focus{background-color:#d6e5ff;color:#200f2e}.vs-mega-nav-accordion-item--level-1>.vs-accordion-item__card-header .vs-accordion-toggle.btn:active .vs-icon,.vs-mega-nav-accordion-item--level-1>.vs-accordion-item__card-header .vs-accordion-toggle.btn:active:focus .vs-icon,.vs-mega-nav-accordion-item--level-2>.vs-accordion-item__card-header .vs-accordion-toggle.btn:active .vs-icon,.vs-mega-nav-accordion-item--level-2>.vs-accordion-item__card-header .vs-accordion-toggle.btn:active:focus .vs-icon{color:#200f2e}.vs-mega-nav-accordion-item--level-1>.vs-accordion-item__card-header .vs-accordion-toggle.btn{font-size:1.25rem;padding-left:1.25rem;padding-right:1.25rem}.vs-mega-nav-accordion-item--level-1>.vs-accordion-item__card-header .vs-accordion-toggle.btn:active,.vs-mega-nav-accordion-item--level-1>.vs-accordion-item__card-header .vs-accordion-toggle.btn:active:focus,.vs-mega-nav-accordion-item--level-1>.vs-accordion-item__card-header .vs-accordion-toggle.btn.vs-accordion-toggle--open{background-color:#d6e5ff}.vs-mega-nav-accordion-item--level-1:first-of-type>.vs-accordion-item__card-header .vs-accordion-toggle.btn{border-top:1px solid #e9e9e9}.vs-mega-nav-accordion-item--level-2>.vs-accordion-item__card-header .vs-accordion-toggle.btn{font-size:1.125rem;line-height:1.3;padding-left:2rem;padding-right:1.25rem}
|
|
109
109
|
.vs-mega-nav-dropdown .btn.dropdown-toggle:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #3369ff}.vs-mega-nav-dropdown{padding:.5rem 0 0 .5rem}@media(min-width: 992px){.vs-mega-nav-dropdown{padding:0}}.vs-mega-nav-dropdown .btn.vs-mega-nav-dropdown__close-btn{border:0;height:26px;width:26px;font-size:0;right:.75rem;top:-36px}.vs-mega-nav-dropdown .btn.vs-mega-nav-dropdown__close-btn:hover .vs-icon{color:#1f49d6}@media(min-width: 992px){.vs-mega-nav-dropdown .btn.vs-mega-nav-dropdown__close-btn{right:.25rem;top:-4px}}.vs-mega-nav-dropdown .btn.dropdown-toggle{position:relative;letter-spacing:0;font-weight:400;line-height:1.2;border-radius:0;border:0;height:1.75rem;width:1.75rem;font-size:0;padding:.125rem}.vs-mega-nav-dropdown .btn.dropdown-toggle:focus,.vs-mega-nav-dropdown .btn.dropdown-toggle:active,.vs-mega-nav-dropdown .btn.dropdown-toggle:active:focus{z-index:1001}.vs-mega-nav-dropdown .btn.dropdown-toggle::after{display:none}.vs-mega-nav-dropdown .btn.dropdown-toggle.show::after{width:100%}@media(min-width: 992px){.vs-mega-nav-dropdown .btn.dropdown-toggle{padding:.75rem .5rem;height:auto;width:auto;font-size:1rem}.vs-mega-nav-dropdown .btn.dropdown-toggle::after{content:"";position:absolute;display:block;bottom:0;left:0;width:0;height:4px;background:#1f49d6;transition:width .2s linear;border:0;margin:0}.vs-mega-nav-dropdown .btn.dropdown-toggle:hover{color:#1f49d6}.vs-mega-nav-dropdown .btn.dropdown-toggle:hover::after{width:100%}}@media(min-width: 1200px){.vs-mega-nav-dropdown .btn.dropdown-toggle{margin:0 .75rem}}.vs-mega-nav-dropdown .dropdown-menu{background:#fff;width:100% !important;top:0 !important;left:0 !important;right:0;padding:0;margin:0;border:0;box-shadow:0px 9px 5px -7px rgba(0,0,0,.1),inset 0px 10px 6px -8px rgba(0,0,0,.15);transform:translate3d(0px, 45px, 0px) !important}@media(min-width: 992px){.vs-mega-nav-dropdown .dropdown-menu{padding:1.25rem 0 2rem;max-height:595px;transform:translate3d(0px, 48px, 0px) !important}}.vs-mega-nav-dropdown .dropdown-menu .vs-mega-nav-accordion-item--level-1:first-child>.vs-accordion-item__card-header>.vs-accordion-toggle.btn{box-shadow:inset 0px 10px 6px -8px rgba(0,0,0,.16)}.vs-mega-nav-dropdown .dropdown-menu .vs-mega-nav-accordion-item--level-1:first-child>.vs-accordion-item__card-header>.vs-accordion-toggle.btn:focus{box-shadow:0 0 0 2px #3369ff inset}.no-js .vs-mega-nav-dropdown .btn.dropdown-toggle{padding:.75rem .5rem;height:auto;width:auto;font-size:1rem;margin-bottom:.5rem}@media(min-width: 992px){.no-js .vs-mega-nav-dropdown .btn.dropdown-toggle{margin-bottom:0}}.no-js .vs-mega-nav-dropdown .btn.dropdown-toggle.disabled{opacity:1}.no-js .vs-mega-nav-dropdown .btn.dropdown-toggle:focus{box-shadow:0 0 0 2px #3369ff inset}.no-js .vs-mega-nav-dropdown .btn.dropdown-toggle:focus::after{display:none}.no-js .vs-mega-nav-dropdown .btn.dropdown-toggle::after{content:"";position:absolute;display:block;bottom:0;left:0;width:100%;height:4px;transition:width .2s linear;border:0;margin:0}.no-js .vs-mega-nav-dropdown .btn.dropdown-toggle:hover{color:#1f49d6}.no-js .vs-mega-nav-dropdown .btn.dropdown-toggle:hover::after{width:100%;background:#1f49d6}.no-js .vs-mega-nav-dropdown__close-btn{display:none !important}.no-js .vs-mega-nav-dropdown .dropdown-menu{display:none}.no-js .vs-mega-nav-dropdown .dropdown-menu--fallback{display:block !important;max-height:none;position:relative !important;border:0;box-shadow:none;transform:none !important}
|
|
110
|
-
@media(min-width: 992px){.vs-list.vs-list--unstyled .vs-mega-nav-dropdown-container__featured{margin:.5rem 0 1.25rem 1.5rem;position:absolute;right:0;top:0}}@media(min-width: 992px)and (min-width: 992px){.vs-list.vs-list--unstyled .vs-mega-nav-dropdown-container__featured{width:23%}}@media(min-width: 992px)and (min-width: 1200px){.vs-list.vs-list--unstyled .vs-mega-nav-dropdown-container__featured{width:21.8%}}@media(min-width: 992px)and (min-width: 1400px){.vs-list.vs-list--unstyled .vs-mega-nav-dropdown-container__featured{width:21.3%}}@media(min-width: 992px){.vs-list.vs-list--unstyled .vs-mega-nav-dropdown-container__featured--bottom{bottom:0;top:auto;margin-bottom:0}}@media(min-width: 992px)and (min-width: 992px){.vs-list.vs-list--unstyled .vs-mega-nav-dropdown-container__featured--left{right:23%}}@media(min-width: 992px)and (min-width: 1200px){.vs-list.vs-list--unstyled .vs-mega-nav-dropdown-container__featured--left{right:21.8%}}@media(min-width: 992px)and (min-width: 1400px){.vs-list.vs-list--unstyled .vs-mega-nav-dropdown-container__featured--left{right:21.3%}}@media(min-width: 992px){.vs-list.vs-list--unstyled .vs-mega-nav-dropdown-container__featured--left::after{content:"";position:absolute;top:12px;bottom:12px;right:0;width:1px;background:#e9e9e9}}@media(min-width: 992px){.vs-list.vs-list--unstyled .vs-mega-nav-dropdown-container__featured-event{width:23%}}@media(min-width: 1200px){.vs-list.vs-list--unstyled .vs-mega-nav-dropdown-container__featured-event{width:21.8%}}@media(min-width: 1400px){.vs-list.vs-list--unstyled .vs-mega-nav-dropdown-container__featured-event{width:21.3%}}.vs-list.vs-list--unstyled .vs-mega-nav-dropdown-container__cta-link{text-decoration:none;padding:.12rem 1.25rem;transition:.2s color}.vs-list.vs-list--unstyled .vs-mega-nav-dropdown-container__cta-link:hover{text-decoration:underline}.vs-list.vs-list--unstyled .vs-mega-nav-dropdown-container__divider{margin:.75rem 0 1rem;border-color:#e9e9e9}.vs-list.vs-list--unstyled .vs-mega-nav-dropdown-container__columns-wrapper{position:relative;display:flex;width:100%;flex-flow:column wrap;height:515px;overflow:hidden;align-content:flex-start}.
|
|
110
|
+
@media(min-width: 992px){.vs-list.vs-list--unstyled .vs-mega-nav-dropdown-container__featured{margin:.5rem 0 1.25rem 1.5rem;position:absolute;right:0;top:0}}@media(min-width: 992px)and (min-width: 992px){.vs-list.vs-list--unstyled .vs-mega-nav-dropdown-container__featured{width:23%}}@media(min-width: 992px)and (min-width: 1200px){.vs-list.vs-list--unstyled .vs-mega-nav-dropdown-container__featured{width:21.8%}}@media(min-width: 992px)and (min-width: 1400px){.vs-list.vs-list--unstyled .vs-mega-nav-dropdown-container__featured{width:21.3%}}@media(min-width: 992px){.vs-list.vs-list--unstyled .vs-mega-nav-dropdown-container__featured--bottom{bottom:0;top:auto;margin-bottom:0}}@media(min-width: 992px)and (min-width: 992px){.vs-list.vs-list--unstyled .vs-mega-nav-dropdown-container__featured--left{right:23%}}@media(min-width: 992px)and (min-width: 1200px){.vs-list.vs-list--unstyled .vs-mega-nav-dropdown-container__featured--left{right:21.8%}}@media(min-width: 992px)and (min-width: 1400px){.vs-list.vs-list--unstyled .vs-mega-nav-dropdown-container__featured--left{right:21.3%}}@media(min-width: 992px){.vs-list.vs-list--unstyled .vs-mega-nav-dropdown-container__featured--left::after{content:"";position:absolute;top:12px;bottom:12px;right:0;width:1px;background:#e9e9e9}}@media(min-width: 992px){.vs-list.vs-list--unstyled .vs-mega-nav-dropdown-container__featured-event{width:23%}}@media(min-width: 1200px){.vs-list.vs-list--unstyled .vs-mega-nav-dropdown-container__featured-event{width:21.8%}}@media(min-width: 1400px){.vs-list.vs-list--unstyled .vs-mega-nav-dropdown-container__featured-event{width:21.3%}}.vs-list.vs-list--unstyled .vs-mega-nav-dropdown-container__cta-link{text-decoration:none;padding:.12rem 1.25rem;transition:.2s color}.vs-list.vs-list--unstyled .vs-mega-nav-dropdown-container__cta-link:hover{text-decoration:underline}.vs-list.vs-list--unstyled .vs-mega-nav-dropdown-container__divider{margin:.75rem 0 1rem;border-color:#e9e9e9}.vs-list.vs-list--unstyled .vs-mega-nav-dropdown-container__columns-wrapper{position:relative;display:flex;width:100%;flex-flow:column wrap;height:515px;overflow:hidden;align-content:flex-start}.no-js .vs-list.vs-list--unstyled .vs-mega-nav-dropdown-container__divider{margin-bottom:1rem}.no-js .vs-list.vs-list--unstyled .vs-mega-nav-dropdown-container__columns-wrapper{display:block;height:auto;padding-left:2rem}@media(min-width: 992px){.no-js .vs-list.vs-list--unstyled .vs-mega-nav-dropdown-container__columns-wrapper{padding-left:4rem}}.no-js .vs-list.vs-list--unstyled .vs-mega-nav-dropdown-container__featured{position:relative;right:auto;width:100vw;margin:0 1.5rem 1rem -2rem}@media(min-width: 576px){.no-js .vs-list.vs-list--unstyled .vs-mega-nav-dropdown-container__featured{width:50%}}@media(min-width: 768px){.no-js .vs-list.vs-list--unstyled .vs-mega-nav-dropdown-container__featured{width:32%}}.no-js .vs-list.vs-list--unstyled .vs-mega-nav-dropdown-container__featured .vs-mega-nav-featured-item{width:100%}
|
|
111
111
|
.card.vs-mega-nav-featured-event{border-top:1px solid #e9e9e9;margin-bottom:-0.5rem}@media(min-width: 992px){.card.vs-mega-nav-featured-event{margin-bottom:0}}.card.vs-mega-nav-featured-event:focus .vs-stretched-link-card__link{outline:2px}.card.vs-mega-nav-featured-event--bottom{bottom:0;top:auto}.card.vs-mega-nav-featured-event .card-body{position:absolute;width:80%;bottom:0;left:0;background:#fff;padding:0 0 1rem;border-left:.25rem solid #a8308c}@media(min-width: 768px){.card.vs-mega-nav-featured-event .card-body{padding:0}}@media(min-width: 992px){.card.vs-mega-nav-featured-event .card-body{border-left-width:0}}.card.vs-mega-nav-featured-event .card-title{display:none}.card.vs-mega-nav-featured-event .vs-stretched-link-card__content{padding:0 1.25rem}@media(min-width: 992px){.card.vs-mega-nav-featured-event .vs-stretched-link-card__content{border-left:.25rem solid #a8308c}}.card.vs-mega-nav-featured-event .vs-stretched-link-card__link{font-size:.875em;margin-left:1.25rem}@media(min-width: 992px){.card.vs-mega-nav-featured-event .vs-stretched-link-card__link{margin-left:0}}.card.vs-mega-nav-featured-event .vs-stretched-link-card__link:hover{text-decoration:none}.card.vs-mega-nav-featured-event .vs-mega-nav-featured-event__date-range{color:#a8308c;margin-bottom:.5rem;font-size:.875em}.card.vs-mega-nav-featured-event .vs-mega-nav-featured-event__date-detail{font-weight:700}.card.vs-mega-nav-featured-event .vs-mega-nav-featured-event__title{font-size:.875em;font-weight:700;margin-bottom:0;text-overflow:ellipsis;overflow:hidden;display:-webkit-box !important;-webkit-box-orient:vertical;white-space:normal;-webkit-line-clamp:2}.card.vs-mega-nav-featured-event .vs-mega-nav-featured-event__location{font-size:.875em;text-overflow:ellipsis;overflow:hidden;display:-webkit-box !important;-webkit-box-orient:vertical;white-space:normal;-webkit-line-clamp:1}@media(min-width: 576px){.card.vs-mega-nav-featured-event{display:flex;flex-direction:row-reverse}.card.vs-mega-nav-featured-event .card-title{font-size:1rem}.card.vs-mega-nav-featured-event .card-body{position:initial;width:auto;max-width:100%;display:flex;flex-direction:column;justify-content:space-between}}@media screen and (min-width: 576px)and (-ms-high-contrast: active),screen and (min-width: 576px)and (-ms-high-contrast: none){.card.vs-mega-nav-featured-event .card-body{position:relative}}@media(min-width: 576px){.card.vs-mega-nav-featured-event .vs-stretched-link-card__img-container{width:245px;height:auto}}@media(min-width: 992px){.card.vs-mega-nav-featured-event{padding:.75rem;flex-direction:column;border-top:none}.card.vs-mega-nav-featured-event .vs-stretched-link-card__img-container{width:100%}.card.vs-mega-nav-featured-event .vs-stretched-link-card__link{align-self:flex-end;padding:.5rem}}.no-js .card.vs-mega-nav-featured-event{display:none}
|
|
112
112
|
.card.vs-mega-nav-featured-item{border-top:1px solid #e0e0e0}.card.vs-mega-nav-featured-item:focus .vs-stretched-link-card__link{outline:2px}.card.vs-mega-nav-featured-item--bottom{bottom:0;top:auto}.card.vs-mega-nav-featured-item .card-body{position:absolute;width:80%;bottom:0;left:0;background:#fff;padding:1.25rem .75rem}.card.vs-mega-nav-featured-item .card-title{margin-top:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.card.vs-mega-nav-featured-item .vs-stretched-link-card__content{display:none;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}.card.vs-mega-nav-featured-item .vs-stretched-link-card__link:hover{text-decoration:none}@media(min-width: 576px){.card.vs-mega-nav-featured-item{display:flex;flex-direction:row-reverse}.card.vs-mega-nav-featured-item .card-body{position:initial;width:auto;max-width:100%;padding:2rem;display:flex;flex-direction:column;justify-content:space-between}}@media screen and (min-width: 576px)and (-ms-high-contrast: active),screen and (min-width: 576px)and (-ms-high-contrast: none){.card.vs-mega-nav-featured-item .card-body{position:relative}}@media(min-width: 576px){.card.vs-mega-nav-featured-item .vs-stretched-link-card__img-container{width:245px;height:auto}}@media(min-width: 992px){.card.vs-mega-nav-featured-item{padding:.75rem;flex-direction:column;border-top:none}.card.vs-mega-nav-featured-item .card-body{padding:1.25rem .75rem}.card.vs-mega-nav-featured-item .vs-stretched-link-card__img-container{width:100%}.card.vs-mega-nav-featured-item .vs-stretched-link-card__content{display:-webkit-box;margin:0;color:#200f2e}.card.vs-mega-nav-featured-item .vs-stretched-link-card__link{align-self:flex-end;padding:.5rem}}@media(max-width: 991.98px){.no-js .card.vs-mega-nav-featured-item .vs-stretched-link-card__img-container{width:100%}.no-js .card.vs-mega-nav-featured-item .card-body{position:absolute;width:80%;bottom:0;left:0;background:#fff;padding:1.25rem .75rem}.no-js .card.vs-mega-nav-featured-item .card-title{margin-bottom:0}}
|
|
113
113
|
.vs-mega-nav-list{position:relative;padding:0;margin:0;width:100%}@media(min-width: 992px){.vs-mega-nav-list{margin:0 1.5rem 1rem 0;width:23%}}@media(min-width: 1200px){.vs-mega-nav-list{margin-right:3rem;width:21.8%}}@media(min-width: 1400px){.vs-mega-nav-list{margin-right:4rem;width:21.3%}}.vs-mega-nav-list .vs-list.vs-mega-nav-list__list{padding-inline-start:0;margin:0}.vs-mega-nav-list .vs-list.vs-mega-nav-list__list li::before{display:none}.vs-mega-nav-list .vs-heading.vs-mega-nav-list__heading{display:none;padding:.25rem 1rem;margin:0 0 .25rem;border-bottom:1px solid #e9e9e9}@media(min-width: 992px){.vs-mega-nav-list .vs-heading.vs-mega-nav-list__heading{display:flex}}.no-js .vs-mega-nav-list{width:100%;margin:0 1.5rem 1rem 0}@media(min-width: 576px){.no-js .vs-mega-nav-list{width:50%}}@media(min-width: 768px){.no-js .vs-mega-nav-list{width:32%}}
|
package/package.json
CHANGED
|
@@ -1,231 +1,231 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@visitscotland/component-library",
|
|
3
|
-
"version": "4.13.
|
|
4
|
-
"description": "VisitScotland Component Library",
|
|
5
|
-
"author": "VisitScotland",
|
|
6
|
-
"homepage": "https://github.com/visitscotland/vs-component-library#readme",
|
|
7
|
-
"files": [
|
|
8
|
-
"dist"
|
|
9
|
-
],
|
|
10
|
-
"exports": {
|
|
11
|
-
".": {
|
|
12
|
-
"require": "./dist/ssr/index.js"
|
|
13
|
-
},
|
|
14
|
-
"./components": {
|
|
15
|
-
"import": "./dist/components/vs-component-library.mjs",
|
|
16
|
-
"require": "./dist/components/vs-component-library.umd.js",
|
|
17
|
-
"types": "./dist/components/component-entry.d.ts"
|
|
18
|
-
},
|
|
19
|
-
"./maps": {
|
|
20
|
-
"import": "./dist/components/maps.mjs"
|
|
21
|
-
},
|
|
22
|
-
"./components/style.css": "./dist/components/vs-component-library.css",
|
|
23
|
-
"./components/fonts.css": "./dist/components/fonts.css",
|
|
24
|
-
"./components/icons.css": "./dist/components/icons.css"
|
|
25
|
-
},
|
|
26
|
-
"license": "MIT",
|
|
27
|
-
"scripts": {
|
|
28
|
-
"storybook": "yarn theo && storybook dev -p 6006",
|
|
29
|
-
"build-storybook": "yarn theo && storybook build",
|
|
30
|
-
"build": "yarn theo && npm-run-all build:library build:ssr third-party build:vite-no-theo",
|
|
31
|
-
"build:dev": "yarn theo && npm-run-all build:library:dev build:ssr:dev third-party",
|
|
32
|
-
"build:library": "cross-env NODE_ENV=production webpack --config ./build/webpack.conf.js",
|
|
33
|
-
"build:library:dev": "cross-env NODE_ENV=development webpack --config ./build/webpack.conf.js",
|
|
34
|
-
"build:ssr": "cross-env NODE_ENV=production webpack --config ./build/webpack.ssr.conf.js",
|
|
35
|
-
"build:ssr:dev": "cross-env NODE_ENV=development webpack --config ./build/webpack.ssr.conf.js",
|
|
36
|
-
"build:vite": "yarn theo && vite build",
|
|
37
|
-
"build:vite-no-theo": "vite build",
|
|
38
|
-
"test": "yarn theo && jest --config ./test/unit/jest.conf.js",
|
|
39
|
-
"test:no-theo": "jest --config ./test/unit/jest.conf.js",
|
|
40
|
-
"lint": "eslint",
|
|
41
|
-
"lint:all": "yarn lint:src && yarn lint:build && yarn lint:stories",
|
|
42
|
-
"lint:src": "yarn lint \"src/**/*.{js,vue,ts}\"",
|
|
43
|
-
"lint:build": "yarn lint \"build/*.{js,vue,ts}\"",
|
|
44
|
-
"lint:stories": "yarn lint \"stories/**/*.{js,vue,ts}\"",
|
|
45
|
-
"lint:fix": "yarn lint \"src/**/*.{js,vue,ts}\" \"stories/**/*.js\" --fix",
|
|
46
|
-
"prettier": "prettier . --list-different",
|
|
47
|
-
"theo": "theo ./src/tokens/tokens.yml --transform web --format map.scss,scss,raw.json,json --dest ./src/assets/tokens",
|
|
48
|
-
"third-party": "webpack --config ./build/third-party.webpack.conf.js",
|
|
49
|
-
"commit": "cz",
|
|
50
|
-
"prepare": "husky install",
|
|
51
|
-
"prepack": "yarn && yarn build",
|
|
52
|
-
"release:patch": "standard-version --release-as patch",
|
|
53
|
-
"release:minor": "standard-version --release-as minor",
|
|
54
|
-
"release:major": "standard-version --release-as major"
|
|
55
|
-
},
|
|
56
|
-
"lint-staged": {
|
|
57
|
-
"*.{js,vue,ts}": "eslint"
|
|
58
|
-
},
|
|
59
|
-
"repository": {
|
|
60
|
-
"type": "git",
|
|
61
|
-
"url": "https://github.com/visitscotland/vs-component-library.git"
|
|
62
|
-
},
|
|
63
|
-
"keywords": [
|
|
64
|
-
"vue.js",
|
|
65
|
-
"visit scotland",
|
|
66
|
-
"vue",
|
|
67
|
-
"design system",
|
|
68
|
-
"design",
|
|
69
|
-
"system"
|
|
70
|
-
],
|
|
71
|
-
"devDependencies": {
|
|
72
|
-
"@babel/core": "^7.23.2",
|
|
73
|
-
"@babel/eslint-parser": "^7.21.8",
|
|
74
|
-
"@babel/plugin-proposal-class-properties": "^7.10.4",
|
|
75
|
-
"@babel/plugin-proposal-object-rest-spread": "^7.11.0",
|
|
76
|
-
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
|
|
77
|
-
"@babel/plugin-transform-runtime": "^7.23.2",
|
|
78
|
-
"@babel/polyfill": "^7.10.4",
|
|
79
|
-
"@babel/preset-env": "^7.23.2",
|
|
80
|
-
"@babel/preset-react": "7.12.13",
|
|
81
|
-
"@chromatic-com/storybook": "^3.2.2",
|
|
82
|
-
"@originjs/vite-plugin-require-context": "^1.0.9",
|
|
83
|
-
"@rushstack/eslint-patch": "^1.3.0",
|
|
84
|
-
"@semantic-release/npm": "^12.0.1",
|
|
85
|
-
"@storybook/addon-a11y": "^8.4.6",
|
|
86
|
-
"@storybook/addon-essentials": "^8.4.6",
|
|
87
|
-
"@storybook/addon-interactions": "^8.4.6",
|
|
88
|
-
"@storybook/addon-links": "^8.4.6",
|
|
89
|
-
"@storybook/blocks": "^8.4.6",
|
|
90
|
-
"@storybook/vue3": "^8.4.6",
|
|
91
|
-
"@storybook/vue3-vite": "^8.4.6",
|
|
92
|
-
"@typescript-eslint/eslint-plugin": "^5.59.8",
|
|
93
|
-
"@typescript-eslint/parser": "^5.59.8",
|
|
94
|
-
"@vitejs/plugin-vue": "^5.0.4",
|
|
95
|
-
"@vue/eslint-config-airbnb": "^7.0.0",
|
|
96
|
-
"@vue/test-utils": "^2.3.2",
|
|
97
|
-
"@vue/vue3-jest": "^29.2.4",
|
|
98
|
-
"babel-jest": "^29.5.0",
|
|
99
|
-
"babel-loader": "^9.1.2",
|
|
100
|
-
"babel-plugin-macros": "^2.4.2",
|
|
101
|
-
"bootstrap": "^5.3.2",
|
|
102
|
-
"chromatic": "^6.17.3",
|
|
103
|
-
"clean-webpack-plugin": "^4.0.0",
|
|
104
|
-
"commitizen": "^4.3.0",
|
|
105
|
-
"cross-env": "^7.0.3",
|
|
106
|
-
"css-loader": "^6.7.3",
|
|
107
|
-
"cz-conventional-changelog": "^3.3.0",
|
|
108
|
-
"dotenv-webpack": "^8.0.1",
|
|
109
|
-
"eslint": "^8.2.0",
|
|
110
|
-
"eslint-import-resolver-webpack": "^0.13.2",
|
|
111
|
-
"eslint-plugin-import": "^2.25.2",
|
|
112
|
-
"eslint-plugin-storybook": "^0.11.1",
|
|
113
|
-
"eslint-plugin-vue": "^9.11.1",
|
|
114
|
-
"eslint-webpack-plugin": "^4.0.1",
|
|
115
|
-
"file-loader": "^6.2.0",
|
|
116
|
-
"husky": "^8.0.3",
|
|
117
|
-
"jest": "^29.5.0",
|
|
118
|
-
"jest-axe": "^8.0.0",
|
|
119
|
-
"jest-environment-jsdom": "^29.5.0",
|
|
120
|
-
"jest-serializer-vue": "^3.1.0",
|
|
121
|
-
"lint-staged": "^15.2.2",
|
|
122
|
-
"mini-css-extract-plugin": "^2.7.5",
|
|
123
|
-
"moxios": "^0.4.0",
|
|
124
|
-
"node-polyfill-webpack-plugin": "^2.0.1",
|
|
125
|
-
"npm-run-all": "^4.1.5",
|
|
126
|
-
"optimist": "^0.6.1",
|
|
127
|
-
"path": "^0.12.7",
|
|
128
|
-
"postcss-safe-parser": "^6.0.0",
|
|
129
|
-
"prettier": "^3.2.5",
|
|
130
|
-
"require-context.macro": "^1.2.2",
|
|
131
|
-
"sass": "^1.62.1",
|
|
132
|
-
"sass-loader": "^13.2.2",
|
|
133
|
-
"semantic-release": "^24.2.0",
|
|
134
|
-
"speed-measure-webpack-plugin": "^1.5.0",
|
|
135
|
-
"standard-version": "^9.5.0",
|
|
136
|
-
"storybook": "^8.4.6",
|
|
137
|
-
"storybook-addon-datalayer-watcher": "^1.0.2",
|
|
138
|
-
"storybook-addon-mock": "^5.0.0",
|
|
139
|
-
"style-loader": "^3.3.2",
|
|
140
|
-
"svgo-loader": "^4.0.0",
|
|
141
|
-
"theo": "^8.1.5",
|
|
142
|
-
"time-analytics-webpack-plugin": "^0.1.20",
|
|
143
|
-
"ts-jest": "^29.1.0",
|
|
144
|
-
"ts-loader": "^9.4.3",
|
|
145
|
-
"typescript": "^5.0.4",
|
|
146
|
-
"upgrade": "^1.1.0",
|
|
147
|
-
"vite": "^5.2.10",
|
|
148
|
-
"vite-plugin-dts": "^3.7.2",
|
|
149
|
-
"vite-plugin-turbosnap": "^1.0.2",
|
|
150
|
-
"vue": "^3.4.19",
|
|
151
|
-
"vue-loader": "^17.1.0",
|
|
152
|
-
"vue-style-loader": "^4.1.3",
|
|
153
|
-
"webpack": "^5.81.0",
|
|
154
|
-
"webpack-cli": "^5.0.2",
|
|
155
|
-
"webpack-manifest-plugin": "^5.0.0",
|
|
156
|
-
"webpack-merge": "^5.1.4",
|
|
157
|
-
"webpack-node-externals": "^3.0.0"
|
|
158
|
-
},
|
|
159
|
-
"dependencies": {
|
|
160
|
-
"@mapbox/geojson-extent": "^1.0.1",
|
|
161
|
-
"@pinia/testing": "^0.1.3",
|
|
162
|
-
"@semantic-release/exec": "^6.0.3",
|
|
163
|
-
"@storybook/addon-a11y": "^8.4.6",
|
|
164
|
-
"@storybook/test": "^8.4.6",
|
|
165
|
-
"@vuelidate/core": "^2.0.2",
|
|
166
|
-
"@vuelidate/validators": "^2.0.2",
|
|
167
|
-
"axios": "^1.4.0",
|
|
168
|
-
"bootstrap-vue-next": "^0.17.0",
|
|
169
|
-
"glob": "^8.1.0",
|
|
170
|
-
"lodash": "^4.17.21",
|
|
171
|
-
"mapbox-gl": "^1.11.1",
|
|
172
|
-
"mitt": "^3.0.0",
|
|
173
|
-
"pinia": "^2.1.3",
|
|
174
|
-
"vite": "^5.1.3",
|
|
175
|
-
"vue": "^3.3.4",
|
|
176
|
-
"vue-combo-blocks": "^2.1.1",
|
|
177
|
-
"vue-recaptcha": "^2.0.1",
|
|
178
|
-
"vue-youtube-vue-3": "^1.5.0",
|
|
179
|
-
"vue3-charts": "^1.1.33",
|
|
180
|
-
"vue3-lazy-hydration": "^1.2.1",
|
|
181
|
-
"vue3-simple-typeahead": "^1.0.11",
|
|
182
|
-
"vuelidate": "^0.7.7",
|
|
183
|
-
"vuex": "^4.1.0",
|
|
184
|
-
"webpack-merge": "^5.1.4",
|
|
185
|
-
"webpack-node-externals": "^3.0.0"
|
|
186
|
-
},
|
|
187
|
-
"peerDependencies": {
|
|
188
|
-
"@popperjs/core": "*",
|
|
189
|
-
"postcss": "*"
|
|
190
|
-
},
|
|
191
|
-
"engines": {
|
|
192
|
-
"node": ">= 16.20.0",
|
|
193
|
-
"npm": ">= 6.14.5",
|
|
194
|
-
"yarn": ">= 1.22.4"
|
|
195
|
-
},
|
|
196
|
-
"browserslist": [
|
|
197
|
-
"> 1%",
|
|
198
|
-
"last 2 versions",
|
|
199
|
-
"not Explorer > 0",
|
|
200
|
-
"IE 11",
|
|
201
|
-
"not ExplorerMobile > 0",
|
|
202
|
-
"not BlackBerry > 0",
|
|
203
|
-
"not OperaMini all",
|
|
204
|
-
"not OperaMobile > 0"
|
|
205
|
-
],
|
|
206
|
-
"jest": {
|
|
207
|
-
"testPathIgnorePatterns": [
|
|
208
|
-
".test",
|
|
209
|
-
"node_modules"
|
|
210
|
-
],
|
|
211
|
-
"jest.pathToJest": "node_modules/.bin/jest"
|
|
212
|
-
},
|
|
213
|
-
"config": {
|
|
214
|
-
"commitizen": {
|
|
215
|
-
"path": "./node_modules/cz-conventional-changelog"
|
|
216
|
-
}
|
|
217
|
-
},
|
|
218
|
-
"bugs": {
|
|
219
|
-
"url": "https://github.com/visitscotland/vs-component-library/issues"
|
|
220
|
-
},
|
|
221
|
-
"resolutions": {
|
|
222
|
-
"minimist": "^0.2.4",
|
|
223
|
-
"json5": "^1.0.2",
|
|
224
|
-
"word-wrap": "^1.2.4",
|
|
225
|
-
"highlight.js": "^10.4.1",
|
|
226
|
-
"semver": "^7.5.4",
|
|
227
|
-
"get-func-name": "^2.0.1",
|
|
228
|
-
"svgo": "3.2.0"
|
|
229
|
-
},
|
|
230
|
-
"packageManager": "yarn@4.6.0"
|
|
231
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@visitscotland/component-library",
|
|
3
|
+
"version": "4.13.1",
|
|
4
|
+
"description": "VisitScotland Component Library",
|
|
5
|
+
"author": "VisitScotland",
|
|
6
|
+
"homepage": "https://github.com/visitscotland/vs-component-library#readme",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"require": "./dist/ssr/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./components": {
|
|
15
|
+
"import": "./dist/components/vs-component-library.mjs",
|
|
16
|
+
"require": "./dist/components/vs-component-library.umd.js",
|
|
17
|
+
"types": "./dist/components/component-entry.d.ts"
|
|
18
|
+
},
|
|
19
|
+
"./maps": {
|
|
20
|
+
"import": "./dist/components/maps.mjs"
|
|
21
|
+
},
|
|
22
|
+
"./components/style.css": "./dist/components/vs-component-library.css",
|
|
23
|
+
"./components/fonts.css": "./dist/components/fonts.css",
|
|
24
|
+
"./components/icons.css": "./dist/components/icons.css"
|
|
25
|
+
},
|
|
26
|
+
"license": "MIT",
|
|
27
|
+
"scripts": {
|
|
28
|
+
"storybook": "yarn theo && storybook dev -p 6006",
|
|
29
|
+
"build-storybook": "yarn theo && storybook build",
|
|
30
|
+
"build": "yarn theo && npm-run-all build:library build:ssr third-party build:vite-no-theo",
|
|
31
|
+
"build:dev": "yarn theo && npm-run-all build:library:dev build:ssr:dev third-party",
|
|
32
|
+
"build:library": "cross-env NODE_ENV=production webpack --config ./build/webpack.conf.js",
|
|
33
|
+
"build:library:dev": "cross-env NODE_ENV=development webpack --config ./build/webpack.conf.js",
|
|
34
|
+
"build:ssr": "cross-env NODE_ENV=production webpack --config ./build/webpack.ssr.conf.js",
|
|
35
|
+
"build:ssr:dev": "cross-env NODE_ENV=development webpack --config ./build/webpack.ssr.conf.js",
|
|
36
|
+
"build:vite": "yarn theo && vite build",
|
|
37
|
+
"build:vite-no-theo": "vite build",
|
|
38
|
+
"test": "yarn theo && jest --config ./test/unit/jest.conf.js",
|
|
39
|
+
"test:no-theo": "jest --config ./test/unit/jest.conf.js",
|
|
40
|
+
"lint": "eslint",
|
|
41
|
+
"lint:all": "yarn lint:src && yarn lint:build && yarn lint:stories",
|
|
42
|
+
"lint:src": "yarn lint \"src/**/*.{js,vue,ts}\"",
|
|
43
|
+
"lint:build": "yarn lint \"build/*.{js,vue,ts}\"",
|
|
44
|
+
"lint:stories": "yarn lint \"stories/**/*.{js,vue,ts}\"",
|
|
45
|
+
"lint:fix": "yarn lint \"src/**/*.{js,vue,ts}\" \"stories/**/*.js\" --fix",
|
|
46
|
+
"prettier": "prettier . --list-different",
|
|
47
|
+
"theo": "theo ./src/tokens/tokens.yml --transform web --format map.scss,scss,raw.json,json --dest ./src/assets/tokens",
|
|
48
|
+
"third-party": "webpack --config ./build/third-party.webpack.conf.js",
|
|
49
|
+
"commit": "cz",
|
|
50
|
+
"prepare": "husky install",
|
|
51
|
+
"prepack": "yarn && yarn build",
|
|
52
|
+
"release:patch": "standard-version --release-as patch",
|
|
53
|
+
"release:minor": "standard-version --release-as minor",
|
|
54
|
+
"release:major": "standard-version --release-as major"
|
|
55
|
+
},
|
|
56
|
+
"lint-staged": {
|
|
57
|
+
"*.{js,vue,ts}": "eslint"
|
|
58
|
+
},
|
|
59
|
+
"repository": {
|
|
60
|
+
"type": "git",
|
|
61
|
+
"url": "https://github.com/visitscotland/vs-component-library.git"
|
|
62
|
+
},
|
|
63
|
+
"keywords": [
|
|
64
|
+
"vue.js",
|
|
65
|
+
"visit scotland",
|
|
66
|
+
"vue",
|
|
67
|
+
"design system",
|
|
68
|
+
"design",
|
|
69
|
+
"system"
|
|
70
|
+
],
|
|
71
|
+
"devDependencies": {
|
|
72
|
+
"@babel/core": "^7.23.2",
|
|
73
|
+
"@babel/eslint-parser": "^7.21.8",
|
|
74
|
+
"@babel/plugin-proposal-class-properties": "^7.10.4",
|
|
75
|
+
"@babel/plugin-proposal-object-rest-spread": "^7.11.0",
|
|
76
|
+
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
|
|
77
|
+
"@babel/plugin-transform-runtime": "^7.23.2",
|
|
78
|
+
"@babel/polyfill": "^7.10.4",
|
|
79
|
+
"@babel/preset-env": "^7.23.2",
|
|
80
|
+
"@babel/preset-react": "7.12.13",
|
|
81
|
+
"@chromatic-com/storybook": "^3.2.2",
|
|
82
|
+
"@originjs/vite-plugin-require-context": "^1.0.9",
|
|
83
|
+
"@rushstack/eslint-patch": "^1.3.0",
|
|
84
|
+
"@semantic-release/npm": "^12.0.1",
|
|
85
|
+
"@storybook/addon-a11y": "^8.4.6",
|
|
86
|
+
"@storybook/addon-essentials": "^8.4.6",
|
|
87
|
+
"@storybook/addon-interactions": "^8.4.6",
|
|
88
|
+
"@storybook/addon-links": "^8.4.6",
|
|
89
|
+
"@storybook/blocks": "^8.4.6",
|
|
90
|
+
"@storybook/vue3": "^8.4.6",
|
|
91
|
+
"@storybook/vue3-vite": "^8.4.6",
|
|
92
|
+
"@typescript-eslint/eslint-plugin": "^5.59.8",
|
|
93
|
+
"@typescript-eslint/parser": "^5.59.8",
|
|
94
|
+
"@vitejs/plugin-vue": "^5.0.4",
|
|
95
|
+
"@vue/eslint-config-airbnb": "^7.0.0",
|
|
96
|
+
"@vue/test-utils": "^2.3.2",
|
|
97
|
+
"@vue/vue3-jest": "^29.2.4",
|
|
98
|
+
"babel-jest": "^29.5.0",
|
|
99
|
+
"babel-loader": "^9.1.2",
|
|
100
|
+
"babel-plugin-macros": "^2.4.2",
|
|
101
|
+
"bootstrap": "^5.3.2",
|
|
102
|
+
"chromatic": "^6.17.3",
|
|
103
|
+
"clean-webpack-plugin": "^4.0.0",
|
|
104
|
+
"commitizen": "^4.3.0",
|
|
105
|
+
"cross-env": "^7.0.3",
|
|
106
|
+
"css-loader": "^6.7.3",
|
|
107
|
+
"cz-conventional-changelog": "^3.3.0",
|
|
108
|
+
"dotenv-webpack": "^8.0.1",
|
|
109
|
+
"eslint": "^8.2.0",
|
|
110
|
+
"eslint-import-resolver-webpack": "^0.13.2",
|
|
111
|
+
"eslint-plugin-import": "^2.25.2",
|
|
112
|
+
"eslint-plugin-storybook": "^0.11.1",
|
|
113
|
+
"eslint-plugin-vue": "^9.11.1",
|
|
114
|
+
"eslint-webpack-plugin": "^4.0.1",
|
|
115
|
+
"file-loader": "^6.2.0",
|
|
116
|
+
"husky": "^8.0.3",
|
|
117
|
+
"jest": "^29.5.0",
|
|
118
|
+
"jest-axe": "^8.0.0",
|
|
119
|
+
"jest-environment-jsdom": "^29.5.0",
|
|
120
|
+
"jest-serializer-vue": "^3.1.0",
|
|
121
|
+
"lint-staged": "^15.2.2",
|
|
122
|
+
"mini-css-extract-plugin": "^2.7.5",
|
|
123
|
+
"moxios": "^0.4.0",
|
|
124
|
+
"node-polyfill-webpack-plugin": "^2.0.1",
|
|
125
|
+
"npm-run-all": "^4.1.5",
|
|
126
|
+
"optimist": "^0.6.1",
|
|
127
|
+
"path": "^0.12.7",
|
|
128
|
+
"postcss-safe-parser": "^6.0.0",
|
|
129
|
+
"prettier": "^3.2.5",
|
|
130
|
+
"require-context.macro": "^1.2.2",
|
|
131
|
+
"sass": "^1.62.1",
|
|
132
|
+
"sass-loader": "^13.2.2",
|
|
133
|
+
"semantic-release": "^24.2.0",
|
|
134
|
+
"speed-measure-webpack-plugin": "^1.5.0",
|
|
135
|
+
"standard-version": "^9.5.0",
|
|
136
|
+
"storybook": "^8.4.6",
|
|
137
|
+
"storybook-addon-datalayer-watcher": "^1.0.2",
|
|
138
|
+
"storybook-addon-mock": "^5.0.0",
|
|
139
|
+
"style-loader": "^3.3.2",
|
|
140
|
+
"svgo-loader": "^4.0.0",
|
|
141
|
+
"theo": "^8.1.5",
|
|
142
|
+
"time-analytics-webpack-plugin": "^0.1.20",
|
|
143
|
+
"ts-jest": "^29.1.0",
|
|
144
|
+
"ts-loader": "^9.4.3",
|
|
145
|
+
"typescript": "^5.0.4",
|
|
146
|
+
"upgrade": "^1.1.0",
|
|
147
|
+
"vite": "^5.2.10",
|
|
148
|
+
"vite-plugin-dts": "^3.7.2",
|
|
149
|
+
"vite-plugin-turbosnap": "^1.0.2",
|
|
150
|
+
"vue": "^3.4.19",
|
|
151
|
+
"vue-loader": "^17.1.0",
|
|
152
|
+
"vue-style-loader": "^4.1.3",
|
|
153
|
+
"webpack": "^5.81.0",
|
|
154
|
+
"webpack-cli": "^5.0.2",
|
|
155
|
+
"webpack-manifest-plugin": "^5.0.0",
|
|
156
|
+
"webpack-merge": "^5.1.4",
|
|
157
|
+
"webpack-node-externals": "^3.0.0"
|
|
158
|
+
},
|
|
159
|
+
"dependencies": {
|
|
160
|
+
"@mapbox/geojson-extent": "^1.0.1",
|
|
161
|
+
"@pinia/testing": "^0.1.3",
|
|
162
|
+
"@semantic-release/exec": "^6.0.3",
|
|
163
|
+
"@storybook/addon-a11y": "^8.4.6",
|
|
164
|
+
"@storybook/test": "^8.4.6",
|
|
165
|
+
"@vuelidate/core": "^2.0.2",
|
|
166
|
+
"@vuelidate/validators": "^2.0.2",
|
|
167
|
+
"axios": "^1.4.0",
|
|
168
|
+
"bootstrap-vue-next": "^0.17.0",
|
|
169
|
+
"glob": "^8.1.0",
|
|
170
|
+
"lodash": "^4.17.21",
|
|
171
|
+
"mapbox-gl": "^1.11.1",
|
|
172
|
+
"mitt": "^3.0.0",
|
|
173
|
+
"pinia": "^2.1.3",
|
|
174
|
+
"vite": "^5.1.3",
|
|
175
|
+
"vue": "^3.3.4",
|
|
176
|
+
"vue-combo-blocks": "^2.1.1",
|
|
177
|
+
"vue-recaptcha": "^2.0.1",
|
|
178
|
+
"vue-youtube-vue-3": "^1.5.0",
|
|
179
|
+
"vue3-charts": "^1.1.33",
|
|
180
|
+
"vue3-lazy-hydration": "^1.2.1",
|
|
181
|
+
"vue3-simple-typeahead": "^1.0.11",
|
|
182
|
+
"vuelidate": "^0.7.7",
|
|
183
|
+
"vuex": "^4.1.0",
|
|
184
|
+
"webpack-merge": "^5.1.4",
|
|
185
|
+
"webpack-node-externals": "^3.0.0"
|
|
186
|
+
},
|
|
187
|
+
"peerDependencies": {
|
|
188
|
+
"@popperjs/core": "*",
|
|
189
|
+
"postcss": "*"
|
|
190
|
+
},
|
|
191
|
+
"engines": {
|
|
192
|
+
"node": ">= 16.20.0",
|
|
193
|
+
"npm": ">= 6.14.5",
|
|
194
|
+
"yarn": ">= 1.22.4"
|
|
195
|
+
},
|
|
196
|
+
"browserslist": [
|
|
197
|
+
"> 1%",
|
|
198
|
+
"last 2 versions",
|
|
199
|
+
"not Explorer > 0",
|
|
200
|
+
"IE 11",
|
|
201
|
+
"not ExplorerMobile > 0",
|
|
202
|
+
"not BlackBerry > 0",
|
|
203
|
+
"not OperaMini all",
|
|
204
|
+
"not OperaMobile > 0"
|
|
205
|
+
],
|
|
206
|
+
"jest": {
|
|
207
|
+
"testPathIgnorePatterns": [
|
|
208
|
+
".test",
|
|
209
|
+
"node_modules"
|
|
210
|
+
],
|
|
211
|
+
"jest.pathToJest": "node_modules/.bin/jest"
|
|
212
|
+
},
|
|
213
|
+
"config": {
|
|
214
|
+
"commitizen": {
|
|
215
|
+
"path": "./node_modules/cz-conventional-changelog"
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
"bugs": {
|
|
219
|
+
"url": "https://github.com/visitscotland/vs-component-library/issues"
|
|
220
|
+
},
|
|
221
|
+
"resolutions": {
|
|
222
|
+
"minimist": "^0.2.4",
|
|
223
|
+
"json5": "^1.0.2",
|
|
224
|
+
"word-wrap": "^1.2.4",
|
|
225
|
+
"highlight.js": "^10.4.1",
|
|
226
|
+
"semver": "^7.5.4",
|
|
227
|
+
"get-func-name": "^2.0.1",
|
|
228
|
+
"svgo": "3.2.0"
|
|
229
|
+
},
|
|
230
|
+
"packageManager": "yarn@4.6.0"
|
|
231
|
+
}
|