@visitscotland/component-library 4.8.3 → 4.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/manifest.json +75 -57
- package/dist/client/scripts/{be5d458e4228597bbe7f.js → 0b35fe9046c4df7f9069.js} +1 -1
- package/dist/client/scripts/1fcbc41ddfc2f1127ffd.js +1 -0
- package/dist/client/scripts/{4983897f9fb28ac41410.js → 255c3cbb360718a9dcbc.js} +1 -1
- package/dist/client/scripts/{7238f171414569f48dcf.js → 2f50ebfa0b93f25a5c23.js} +1 -1
- package/dist/client/scripts/{69456a75c8e613681829.js → 3aaec75faa024f6a00b1.js} +1 -1
- package/dist/client/scripts/{fb99899e8e2067207032.js → 4c7a7e860040ef9c420f.js} +1 -1
- package/dist/client/scripts/{38ce1d0c3513df64f443.js → 5f0b6647b3831883a22b.js} +1 -1
- package/dist/client/scripts/{05484fd4b55edc9f20f1.js → 649cc76cea6652b5a37a.js} +1 -1
- package/dist/client/scripts/{871c8ebc30fd840b36ab.js → 654f87bad576cd99c781.js} +1 -1
- package/dist/client/scripts/{124d87b30b4163349aaf.js → 6e7520d815f5c8568575.js} +1 -1
- package/dist/client/scripts/{65419d8a841fd3d4fb1b.js → 82c3c89c1ff981d5e406.js} +1 -1
- package/dist/client/scripts/{ce91d1312b14f1160fe5.js → 8b8a48f76a72354c875b.js} +1 -1
- package/dist/client/scripts/{35d032ab0f9792c26dff.js → 8d1d649b55901f23d5b3.js} +1 -1
- package/dist/client/scripts/{d1e2b7320a9ed288184b.js → 933902c3e17bc73de94c.js} +1 -1
- package/dist/client/scripts/{f3291c43cf0110450425.js → a1068973314865dbf912.js} +1 -1
- package/dist/client/scripts/{0f312962307bb451cbcc.js → a4b52e4219e28c0885f7.js} +1 -1
- package/dist/client/scripts/{2232b2491f0299c5201b.js → af63c50271c5457c28d0.js} +1 -1
- package/dist/client/scripts/c1629d59ab57cc9eb7b9.js +1 -0
- package/dist/client/scripts/{5fcf76dd5f152170c721.js → c9fa6fdf02a57f40f869.js} +1 -1
- package/dist/client/scripts/d502c59c539f22283283.js +1 -0
- package/dist/client/scripts/{2961c6dd5863b2ead56a.js → e6ac8286dea01de084cf.js} +1 -1
- package/dist/client/scripts/f4e25e3a6d05e2128711.js +1 -0
- package/dist/client/scripts/{a222cc85442ae484e3e3.js → f87251bcbb33a1c88149.js} +1 -1
- package/dist/client/scripts/{14dd83fcfdb910e502e2.js → fec8d954621c73ff71bd.js} +1 -1
- package/dist/client/styles/933902c3e17bc73de94c.css +1 -0
- package/dist/components/vs-component-library.css +1 -1
- package/dist/components/vs-component-library.js +114 -114
- package/dist/components/vs-component-library.mjs +7357 -7357
- package/dist/ssr/index.js +1 -1
- package/dist/ssr/manifest.json +1 -1
- package/dist/ssr/styles/{f222dcf2cfa541e40028.css → 8f55694a739bc92fe9c3.css} +1 -1
- package/package.json +231 -231
- package/CHANGELOG.md +0 -2824
- package/dist/client/scripts/07354011ea17b3d95e93.js +0 -1
- package/dist/client/scripts/eb8bd7cab79c8b156c1d.js +0 -1
- package/dist/client/scripts/fca05dd323b7d118fca0.js +0 -1
- package/dist/client/styles/d1e2b7320a9ed288184b.css +0 -1
- /package/dist/client/styles/{fca05dd323b7d118fca0.css → 1fcbc41ddfc2f1127ffd.css} +0 -0
- /package/dist/client/styles/{4983897f9fb28ac41410.css → 255c3cbb360718a9dcbc.css} +0 -0
- /package/dist/client/styles/{7238f171414569f48dcf.css → 2f50ebfa0b93f25a5c23.css} +0 -0
- /package/dist/client/styles/{38ce1d0c3513df64f443.css → 5f0b6647b3831883a22b.css} +0 -0
- /package/dist/client/styles/{05484fd4b55edc9f20f1.css → 649cc76cea6652b5a37a.css} +0 -0
- /package/dist/client/styles/{124d87b30b4163349aaf.css → 6e7520d815f5c8568575.css} +0 -0
- /package/dist/client/styles/{f3291c43cf0110450425.css → a1068973314865dbf912.css} +0 -0
- /package/dist/client/styles/{eb8bd7cab79c8b156c1d.css → d502c59c539f22283283.css} +0 -0
- /package/dist/client/styles/{2961c6dd5863b2ead56a.css → e6ac8286dea01de084cf.css} +0 -0
- /package/dist/client/styles/{14dd83fcfdb910e502e2.css → fec8d954621c73ff71bd.css} +0 -0
package/dist/ssr/manifest.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
.vs-banner{background:#e5e5f0;padding:.75rem 0}@media(min-width: 768px){.vs-banner__icon-wrapper{padding-right:0;flex:0 0 6%;max-width:6%}}@media(min-width: 992px){.vs-banner__icon-wrapper{display:inline-flex;align-items:center;flex:0 0 5%;max-width:5%}}@media(min-width: 1200px){.vs-banner__icon-wrapper{flex:0 0 4%;max-width:4%}}.vs-banner__content-wrapper{align-self:center}.vs-banner__icon{display:inline-block}@media(min-width: 576px){.vs-banner__icon{margin-right:.75rem}.vs-banner__icon.vs-icon.vs-icon--size-sm{font-size:24px}}.vs-banner__title.vs-heading{margin-bottom:.5rem}.vs-banner__title.vs-heading .vs-icon{vertical-align:bottom;margin-right:.25rem}.vs-banner__text.vs-rich-text-wrapper--normal{display:inline-block;padding-left:.25rem}@media(min-width: 576px){.vs-banner__text.vs-rich-text-wrapper--normal{padding-left:0}}.vs-banner__text.vs-rich-text-wrapper--normal p{display:inline}.vs-banner__text.vs-rich-text-wrapper--normal p:last-of-type{margin-bottom:.5rem}.vs-banner__text.vs-rich-text-wrapper--normal,.vs-banner__cta-link{font-size:.875rem;line-height:1.3}@media(min-width: 576px){.vs-banner__text.vs-rich-text-wrapper--normal,.vs-banner__cta-link{font-size:1rem}}.vs-banner__close-btn.vs-button.vs-button--icon-only.btn-md{float:right}
|
|
16
16
|
.vs-blog-details__date{display:block}@media(min-width: 576px){.vs-blog-details__date{display:inline}}.vs-blog-details__divider{display:none;padding:0 .25rem}@media(min-width: 576px){.vs-blog-details__divider{display:inline}}.vs-blog-details--highlight{color:#535396}
|
|
17
17
|
.vs-breadcrumb-item a:focus{outline:2px solid #3369ff}.vs-breadcrumb-item{color:#606060;font-size:1rem;font-weight:400;white-space:nowrap;overflow:hidden;padding:3px}.vs-breadcrumb-item:last-child{color:#606060;font-weight:300}.vs-breadcrumb-item a{color:#606060}.vs-breadcrumb-item a,.vs-breadcrumb-item span{text-overflow:ellipsis;overflow:hidden}@media(max-width: 991.98px){.vs-breadcrumb-item{font-size:.75rem}}@media(max-width: 767.98px){.vs-breadcrumb-item{display:none}.vs-breadcrumb-item:last-child,.vs-breadcrumb-item:nth-last-child(2){display:block;max-width:75%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.vs-breadcrumb-item:nth-last-child(2){padding-left:0}.vs-breadcrumb-item:nth-last-child(2)::before{content:"";padding:0}}
|
|
18
|
-
.vs-button-toggle-group--radios label.btn-secondary{font-weight:600;transition:all .2s ease-in-out;text-decoration:none;position:relative;overflow:hidden;border-width:2px;line-height:1.5}.vs-button-toggle-group{width:100%;display:flex;justify-content:center}.vs-button-toggle-group legend{border:0;clip:rect(0, 0, 0, 0);overflow:hidden;position:absolute;height:1px;margin:-1px;padding:0;width:1px}.vs-button-toggle-group--radios{background-color:#d6e5ff;display:flex;border-radius:50rem;overflow:hidden}.vs-button-toggle-group--radios input[type=radio]{position:absolute;clip:rect(0, 0, 0, 0);pointer-events:none}.vs-button-toggle-group--radios label.btn-secondary{color:#1f49d6;transition:none;padding-top:.5rem;margin-bottom:0;padding-bottom:.5rem;display:flex;align-items:center}.vs-button-toggle-group--radios label.btn-secondary .vs-icon{transition:none;color:#1f49d6}.vs-button-toggle-group--radios label.btn-secondary>span{display:flex;height:32px;align-items:center;padding:0 .5rem}.vs-button-toggle-group--radios label.btn-secondary.focus{box-shadow:none}.vs-button-toggle-group--radios label.btn-secondary:hover{background-color:#17359c;border-color:#17359c;color:#fff}.vs-button-toggle-group--radios label.btn-secondary:hover .vs-icon{color:#fff}.vs-button-toggle-group--tabbed-focus input:focus+label span{border:2px solid #3369ff}.vs-button-toggle-group--button{display:flex}.vs-button-toggle-group--button:first-child{
|
|
18
|
+
.vs-button-toggle-group--radios label.btn-secondary{font-weight:600;transition:all .2s ease-in-out;text-decoration:none;position:relative;overflow:hidden;border-width:2px;line-height:1.5}.vs-button-toggle-group{width:100%;display:flex;justify-content:center}.vs-button-toggle-group legend{border:0;clip:rect(0, 0, 0, 0);overflow:hidden;position:absolute;height:1px;margin:-1px;padding:0;width:1px}.vs-button-toggle-group--radios{background-color:#d6e5ff;display:flex;border-radius:50rem;overflow:hidden}.vs-button-toggle-group--radios input[type=radio]{position:absolute;clip:rect(0, 0, 0, 0);pointer-events:none}.vs-button-toggle-group--radios label.btn-secondary{color:#1f49d6;transition:none;padding-top:.5rem;margin-bottom:0;padding-bottom:.5rem;display:flex;align-items:center}.vs-button-toggle-group--radios label.btn-secondary .vs-icon{transition:none;color:#1f49d6}.vs-button-toggle-group--radios label.btn-secondary>span{display:flex;height:32px;align-items:center;padding:0 .5rem}.vs-button-toggle-group--radios label.btn-secondary.focus{box-shadow:none}.vs-button-toggle-group--radios label.btn-secondary:hover{background-color:#17359c;border-color:#17359c;color:#fff}.vs-button-toggle-group--radios label.btn-secondary:hover .vs-icon{color:#fff}.vs-button-toggle-group--tabbed-focus input:focus+label span{border:2px solid #3369ff}.vs-button-toggle-group--button{display:flex}.vs-button-toggle-group--button:first-child{border-top-left-radius:50rem;border-bottom-left-radius:50rem}.vs-button-toggle-group--button:first-child:not(:last-child){margin-right:-1rem}.vs-button-toggle-group--button:last-child{border-top-right-radius:50rem;border-bottom-right-radius:50rem}.vs-button-toggle-group--button .btn{padding:0 1.5rem}.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label{z-index:2;border-radius:50rem;cursor:default;color:#1f49d6;background-color:#fff;border-color:#1f49d6}.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label .vs-icon:not(.vs-map-marker-icon__marker,.vs-map-marker-icon__icon){color:#1f49d6}.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label:hover{color:#1f49d6;background-color:#fff;border-color:#1f49d6}.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label:hover .vs-icon{color:#1f49d6}.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label:active,.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label:active:focus{color:#1f49d6;background-color:#fff;border-color:#1f49d6}.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label:active .vs-icon,.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label:active:focus .vs-icon{color:#1f49d6}@media(min-width: 992px){.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label{color:#1f49d6;background-color:#fff;border-color:#1f49d6}.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label .vs-icon:not(.vs-map-marker-icon__marker,.vs-map-marker-icon__icon){color:#1f49d6}.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label:hover{color:#1f49d6;background-color:#fff;border-color:#1f49d6}.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label:hover .vs-icon{color:#1f49d6}.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label:active,.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label:active:focus{color:#1f49d6;background-color:#fff;border-color:#1f49d6}.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label:active .vs-icon,.vs-button-toggle-group--button:not(:disabled):not(.disabled).active label:active:focus .vs-icon{color:#1f49d6}}
|
|
19
19
|
.low-res-img{background-repeat:no-repeat;background-size:cover;display:block}.low-res-img.generic-lqip{background-image:url("..//[object%20Module]")}
|
|
20
20
|
.vs-link.vs-link--variant-primary:focus{outline:2px solid #3369ff}.vs-link.vs-link--variant-on-dark:focus{outline:2px solid #fffa99}.vs-link.vs-link--variant-primary{color:#1f49d6}.vs-link.vs-link--variant-primary:active{color:#112876}.vs-link.vs-link--variant-primary:visited{color:#a8308c}.vs-link.vs-link--variant-on-dark{color:#fff}.vs-link.vs-link--variant-on-dark:visited{color:#d6e5ff}.vs-link .vs-link__icon{vertical-align:baseline}
|
|
21
21
|
.vs-product-card .stretched-link:focus{outline:2px solid #3369ff}.vs-product-card{text-align:left}.vs-product-card .card{transition:box-shadow .5s;border:none;position:relative;padding-bottom:1.25rem}.vs-product-card .card:hover .vs-product-card__title a{text-decoration:underline}.vs-product-card .card-body{padding:.25rem 0 0;min-height:11.5rem}.vs-product-card .card-body--short{min-height:10rem}.vs-product-card .stretched-link{color:#200f2e;text-decoration:none;display:block}.vs-product-card .vs-product-card__link:focus{border:2px solid #3369ff}.vs-product-card .vs-product-card__image-container{position:relative;height:0;padding-bottom:66.6%}.vs-product-card .vs-product-card__image-inner-container{position:absolute;top:0;left:0;width:100%;height:100%}.vs-product-card .vs-product-card__img{width:100%;height:100%;object-fit:cover;align-self:flex-start;flex-shrink:0}.vs-product-card .vs-product-card__title{display:flex;margin:.75rem 0 .5rem;text-overflow:ellipsis;overflow:hidden;display:-webkit-box !important;-webkit-box-orient:vertical;white-space:normal;-webkit-line-clamp:2}.vs-product-card .vs-product-card__description{font-size:1rem;height:2rem}.vs-product-card .vs-product-card__description p{margin-bottom:.25rem}.vs-product-card .vs-product-card__description .vs-product-card__description-inner{text-overflow:ellipsis;overflow:hidden;display:-webkit-box !important;-webkit-box-orient:vertical;white-space:normal;-webkit-line-clamp:2}.vs-product-card--disabled .card{opacity:.5}.vs-product-card--disabled .card:hover .vs-product-card__title a{text-decoration:none}.vs-product-card--disabled .stretched-link{cursor:default}.no-js .vs-product-card--disabled .card{opacity:1}.no-js .vs-product-card--disabled .card .vs-product-card__title a{text-decoration:underline}.no-js .vs-product-card--disabled .stretched-link{cursor:pointer}
|
package/package.json
CHANGED
|
@@ -1,231 +1,231 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@visitscotland/component-library",
|
|
3
|
-
"version": "4.
|
|
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.9.0",
|
|
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
|
+
}
|