@visitscotland/component-library 3.1.8 → 3.2.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.
Files changed (30) hide show
  1. package/CHANGELOG.md +1999 -0
  2. package/dist/client/manifest.json +21 -23
  3. package/dist/client/scripts/0fbda1b6956238680d5e.js +1 -0
  4. package/dist/client/scripts/4416faec254580e31810.js +1 -0
  5. package/dist/client/scripts/5986848b869848f6c8cd.js +1 -0
  6. package/dist/client/scripts/{8a376c197f08276236aa.js → 902bf1d40c29708e0cd7.js} +2 -2
  7. package/dist/client/scripts/{791b377fec08a7655d7e.js → 99f9d0e0e17c73089157.js} +1 -1
  8. package/dist/client/scripts/d8b558fcdec4b8aa0034.js +1 -0
  9. package/dist/client/styles/{b70a0ff0bbfde9e322b5.css → 4416faec254580e31810.css} +1 -1
  10. package/dist/client/styles/5986848b869848f6c8cd.css +1 -0
  11. package/dist/components/components/article/Article.vue.d.ts +17 -0
  12. package/dist/components/components/article/components/ArticleSection.vue.d.ts +10 -0
  13. package/dist/components/components/quote/Quote.vue.d.ts +14 -1
  14. package/dist/components/components/quote/index.d.ts +14 -1
  15. package/dist/components/components/video-caption/VideoCaption.vue.d.ts +1 -17
  16. package/dist/components/vs-component-library.css +1 -1
  17. package/dist/components/vs-component-library.js +166 -166
  18. package/dist/components/vs-component-library.mjs +8202 -8200
  19. package/dist/ssr/index.js +1 -1
  20. package/dist/ssr/manifest.json +1 -1
  21. package/dist/ssr/styles/{93e071858a0f2d109b89.css → e5ac22c436f98e242182.css} +2 -2
  22. package/package.json +230 -230
  23. package/dist/client/scripts/9a0913e2bb7e116e722a.js +0 -1
  24. package/dist/client/scripts/9cfa0f253a3aebd930a2.js +0 -1
  25. package/dist/client/scripts/a315cc3b2cadb61e66c3.js +0 -1
  26. package/dist/client/scripts/b70a0ff0bbfde9e322b5.js +0 -1
  27. package/dist/client/styles/a315cc3b2cadb61e66c3.css +0 -1
  28. /package/dist/client/scripts/{8a376c197f08276236aa.js.LICENSE.txt → 902bf1d40c29708e0cd7.js.LICENSE.txt} +0 -0
  29. /package/dist/client/styles/{9cfa0f253a3aebd930a2.css → 0fbda1b6956238680d5e.css} +0 -0
  30. /package/dist/client/styles/{9a0913e2bb7e116e722a.css → d8b558fcdec4b8aa0034.css} +0 -0
@@ -20,7 +20,7 @@
20
20
  "index.js"
21
21
  ],
22
22
  "styles": [
23
- "styles/93e071858a0f2d109b89.css"
23
+ "styles/e5ac22c436f98e242182.css"
24
24
  ]
25
25
  }
26
26
  }
@@ -7,7 +7,7 @@
7
7
  .vs-alert{display:flex;flex-flow:row}.vs-alert__icon-holder{background-color:#a8308c;display:inline-flex;justify-content:center;align-items:center;padding:1rem .75rem;min-height:2.5rem}@media(min-width: 992px){.vs-alert__icon-holder{min-height:3rem}}.vs-alert__content-wrapper{flex:1;display:flex;align-items:flex-start}.vs-alert__content{display:flex;align-items:center;padding:.75rem;background-color:#f0eff4;border:1px solid #a8308c;min-height:100%}
8
8
  @media(max-width: 576px){.row:not(.g-0){margin-right:-4px;margin-left:-4px}.row:not(.g-0)>.col,.row:not(.g-0)>[class*=col-]{padding-right:4px;padding-left:4px}}
9
9
  .vs-rich-text-wrapper--normal{font-family:var(--bs-font-sans-serif);font-size:1rem}@media(min-width: 768px){.vs-rich-text-wrapper--normal{font-size:1.125rem}}.vs-rich-text-wrapper--lead{line-height:1.55;font-size:1.125rem}@media(min-width: 768px){.vs-rich-text-wrapper--lead{font-size:1.25rem}}.vs-rich-text-wrapper h3.vs-heading{margin-top:1rem;margin-bottom:1rem}.vs-rich-text-wrapper .vs-heading--style-level-6{margin-top:1rem;margin-bottom:2rem}.vs-rich-text-wrapper *:not(.vs-heading)+.vs-heading--style-level-6{margin-top:4rem}
10
- .vs-article__wrapper{border:1px solid #dedbe6}.vs-article__wrapper figure{margin-bottom:0}.vs-article .vs-video-caption__details{display:block}
10
+ .vs-article__wrapper{border:1px solid #dedbe6}.vs-article__wrapper figure{margin-bottom:0}.vs-article__wrapper--no-border{border:0}.vs-article .vs-video-caption__details{display:block}
11
11
  @media(min-width: 768px){.vs-article-section--sidebar-right{margin-right:-14.8%}}@media(min-width: 992px){.vs-article-section--sidebar-right{margin-right:-12.5%}}@media(min-width: 1200px){.vs-article-section--sidebar-right{margin-right:-13.6%}}@media(min-width: 1400px){.vs-article-section--sidebar-right{margin-right:-23.2%}}@media(min-width: 768px){.vs-article-section--sidebar-left{margin-left:-14.8%}}@media(min-width: 992px){.vs-article-section--sidebar-left{margin-left:-12.5%}}@media(min-width: 1200px){.vs-article-section--sidebar-left{margin-left:-13.6%}}@media(min-width: 1400px){.vs-article-section--sidebar-left{margin-left:-23.2%}}
12
12
  .vs-article-sidebar{background:#fff}.vs-article-sidebar__quote-wrapper{background:#fff;margin-left:-1px;padding:2rem 1.5rem}@media(min-width: 768px){.vs-article-sidebar__quote-wrapper{margin-left:0;padding:2rem 0 .25rem}}@media(min-width: 768px){.vs-article-sidebar--right .vs-article-sidebar__quote-wrapper{padding-left:0;padding-right:1.25rem}.vs-article-sidebar--left .vs-article-sidebar__quote-wrapper{padding-left:1.25rem;padding-right:0}}
13
13
  .vs-banner{background:#f0eff4;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}
@@ -125,7 +125,7 @@ label,legend{font-weight:600;margin-bottom:0}legend{font-size:1.125rem}.error{fo
125
125
  button.vs-guest-selector__trigger{text-align:left}button.vs-guest-selector__trigger:focus{box-shadow:none}button.vs-guest-selector__trigger::after{font-family:"Font Awesome Kit";content:"";display:inline-block;position:absolute;top:3rem;right:1rem;pointer-events:none;font-size:1.125rem;color:#1f49d6}.vs-guest-selector{position:relative}.vs-guest-selector__modal{width:100%;display:none;padding:1rem;box-shadow:0px 1px 2px 0px rgba(0,0,0,.3),0px 1px 3px 1px rgba(0,0,0,.15)}.vs-guest-selector__modal--visible{display:flex;flex-direction:column;position:absolute;background:#fff;z-index:1}.vs-guest-selector__label{font-weight:700;margin-bottom:0}.vs-guest-selector__close{align-self:end}
126
126
  @media(min-width: 992px){.product-search__type .d-lg-flex .vs-select{width:100%}.product-search__type .d-lg-flex .product-search__in{margin:0 1rem}}.product-search__type .product-search__in{font-weight:600}
127
127
  .vs-product-search{width:100%;background:#23014a;padding:2rem .25rem;font-family:"Source Sans Pro",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"}.vs-product-search__no-js{display:none}.vs-product-search__heading,.vs-product-search__intro{color:#fff}.vs-product-search__heading.vs-heading{font-size:1.875rem;font-weight:300;letter-spacing:normal}.vs-product-search__col--left{background:#23014a;font-family:"Source Sans Pro",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";margin-bottom:3rem}.vs-product-search__col--right{display:flex;flex-direction:column;justify-content:center;background:#afafd5;padding:1.5rem 1rem}@media(min-width: 576px){.vs-product-search{padding-left:.75rem;padding-right:.75rem}}@media(min-width: 1200px){.vs-product-search{padding:0;background:rgba(0,0,0,0)}.vs-product-search__heading,.vs-product-search__intro{color:#fff;margin-left:4rem;max-width:70%}.vs-product-search__heading.vs-heading{font-size:2.5rem}.vs-product-search__col{min-height:458px}.vs-product-search__col--left{padding:6rem;margin-bottom:0}.vs-product-search__col--right.col-lg-4{padding:2rem}}.no-js .vs-product-search__col--right{padding:0}.no-js .vs-product-search__no-js{display:flex}.no-js .vs-product-search__widget{display:none}
128
- .vs-quote__content{font-size:1.5rem;font-weight:300;line-height:1.3}.vs-quote__author-name{font-weight:700;margin-bottom:0}@media(min-width: 768px){.vs-quote__author-name{margin-bottom:.25rem;font-size:1.125rem}}.vs-quote__author-title{line-height:1.25rem}@media(min-width: 768px){.vs-quote__author-title{line-height:1.3;font-size:1.125rem;margin-bottom:1.75rem}}.vs-quote__speech-mark{font-weight:700;color:#535396;font-size:7rem;height:5rem;line-height:1;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.vs-quote__speech-container{display:block;margin-bottom:1rem;margin-right:1.25rem;width:3.5rem;height:2.5rem;position:relative}@media(min-width: 576px){.vs-quote__speech-container{display:inline-block;vertical-align:top}}.vs-quote__author-container{display:block;width:50%;max-width:8rem;margin-bottom:1rem}.vs-quote__author-container img{width:100%}@media(min-width: 992px){.vs-quote__author-container{margin-right:1.25rem}}.vs-quote__content-container{display:block}@media(min-width: 576px){.vs-quote--wide .vs-quote__author-container{display:inline-block;vertical-align:top;margin-bottom:1.25rem}}@media(min-width: 576px){.vs-quote--wide .vs-quote__content-container{display:inline-block;vertical-align:top}}@media(min-width: 1200px){.vs-quote--wide .vs-quote__content-container{width:calc(100% - 15rem);margin-top:-7px}}
128
+ .vs-quote__content{font-size:1.5rem;font-weight:300;line-height:1.3}.vs-quote__author-name{font-weight:700;margin-bottom:0}@media(min-width: 768px){.vs-quote__author-name{margin-bottom:.25rem;font-size:1.125rem}}.vs-quote__author-title{line-height:1.25rem}@media(min-width: 768px){.vs-quote__author-title{line-height:1.3;font-size:1.125rem;margin-bottom:1.75rem}}.vs-quote__speech-mark{font-weight:700;color:#535396;font-size:7rem;height:5rem;line-height:1;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.vs-quote__speech-container{display:block;margin-bottom:1rem;margin-right:1.25rem;width:3.5rem;height:2.5rem;position:relative}@media(min-width: 576px){.vs-quote__speech-container{display:inline-block;vertical-align:top}}.vs-quote__author-container{display:block;width:50%;max-width:8rem;margin-bottom:1rem}.vs-quote__author-container img{width:100%}@media(min-width: 992px){.vs-quote__author-container{margin-right:1.25rem}}.vs-quote__content-container{display:block}@media(min-width: 576px){.vs-quote--wide .vs-quote__author-container{display:inline-block;vertical-align:top;margin-bottom:1.25rem}}@media(min-width: 576px){.vs-quote--wide .vs-quote__content-container{display:inline-block;vertical-align:top}}@media(min-width: 1200px){.vs-quote--wide .vs-quote__content-container{width:calc(100% - 15rem);margin-top:-7px}}.vs-quote--with-border{border-left:.25rem solid #535396;padding-left:1.5rem}.vs-quote--with-border .vs-quote__author-name,.vs-quote--with-border .vs-quote__author-title{color:#535396}
129
129
  .vs-table th>span{padding:0}.vs-table .table-sm th,.vs-table .table-sm td{font-size:1rem;padding:.25rem}.vs-table.table.b-table.b-table-stacked>tbody>tr>[data-label]::before{text-align:left}
130
130
  .vs-table .table th{border:0}.vs-table .table thead th{border-bottom:0}
131
131
  .table td{border-top:1px solid #dedbe6;border-bottom:none}
package/package.json CHANGED
@@ -1,230 +1,230 @@
1
- {
2
- "name": "@visitscotland/component-library",
3
- "version": "3.1.8",
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 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": "^1.3.4",
82
- "@originjs/vite-plugin-require-context": "^1.0.9",
83
- "@rushstack/eslint-patch": "^1.3.0",
84
- "@storybook/addon-a11y": "^8.0.10",
85
- "@storybook/addon-essentials": "^8.0.10",
86
- "@storybook/addon-interactions": "^8.0.10",
87
- "@storybook/addon-links": "^8.0.10",
88
- "@storybook/blocks": "8.0.10",
89
- "@storybook/vue3": "^8.0.10",
90
- "@storybook/vue3-vite": "^8.0.10",
91
- "@typescript-eslint/eslint-plugin": "^5.59.8",
92
- "@typescript-eslint/parser": "^5.59.8",
93
- "@vitejs/plugin-vue": "^5.0.4",
94
- "@vue/eslint-config-airbnb": "^7.0.0",
95
- "@vue/test-utils": "^2.3.2",
96
- "@vue/vue3-jest": "^29.2.4",
97
- "babel-jest": "^29.5.0",
98
- "babel-loader": "^9.1.2",
99
- "babel-plugin-macros": "^2.4.2",
100
- "bootstrap": "^5.3.2",
101
- "chromatic": "^6.17.3",
102
- "clean-webpack-plugin": "^4.0.0",
103
- "commitizen": "^4.3.0",
104
- "cross-env": "^7.0.3",
105
- "css-loader": "^6.7.3",
106
- "cz-conventional-changelog": "^3.3.0",
107
- "dotenv-webpack": "^8.0.1",
108
- "eslint": "^8.2.0",
109
- "eslint-import-resolver-webpack": "^0.13.2",
110
- "eslint-plugin-import": "^2.25.2",
111
- "eslint-plugin-storybook": "^0.8.0",
112
- "eslint-plugin-vue": "^9.11.1",
113
- "eslint-webpack-plugin": "^4.0.1",
114
- "file-loader": "^6.2.0",
115
- "husky": "^8.0.3",
116
- "jest": "^29.5.0",
117
- "jest-axe": "^8.0.0",
118
- "jest-environment-jsdom": "^29.5.0",
119
- "jest-serializer-vue": "^3.1.0",
120
- "lint-staged": "^15.2.2",
121
- "mini-css-extract-plugin": "^2.7.5",
122
- "moxios": "^0.4.0",
123
- "node-polyfill-webpack-plugin": "^2.0.1",
124
- "node-sass": "^8.0.0",
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
- "speed-measure-webpack-plugin": "^1.5.0",
134
- "standard-version": "^9.5.0",
135
- "storybook": "^8.0.10",
136
- "storybook-addon-datalayer-watcher": "^1.0.2",
137
- "storybook-addon-mock": "^5.0.0",
138
- "style-loader": "^3.3.2",
139
- "svgo-loader": "^4.0.0",
140
- "theo": "^8.1.5",
141
- "time-analytics-webpack-plugin": "^0.1.20",
142
- "ts-jest": "^29.1.0",
143
- "ts-loader": "^9.4.3",
144
- "typescript": "^5.0.4",
145
- "upgrade": "^1.1.0",
146
- "vite": "^5.2.10",
147
- "vite-plugin-dts": "^3.7.2",
148
- "vite-plugin-turbosnap": "^1.0.2",
149
- "vue": "^3.4.19",
150
- "vue-jest": "^5.0.0-alpha.10",
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
- "@storybook/addon-a11y": "^7.5.3",
163
- "@storybook/test": "^8.0.10",
164
- "@vuelidate/core": "^2.0.2",
165
- "@vuelidate/validators": "^2.0.2",
166
- "axios": "^1.4.0",
167
- "bootstrap-vue-next": "^0.17.0",
168
- "glob": "^8.1.0",
169
- "lodash": "^4.17.21",
170
- "mapbox-gl": "^1.11.1",
171
- "mitt": "^3.0.0",
172
- "pinia": "^2.1.3",
173
- "vite": "^5.1.3",
174
- "vue": "^3.3.4",
175
- "vue-combo-blocks": "^2.1.1",
176
- "vue-recaptcha": "^2.0.1",
177
- "vue-youtube-vue-3": "^1.5.0",
178
- "vue3-charts": "^1.1.33",
179
- "vue3-lazy-hydration": "^1.2.1",
180
- "vue3-simple-typeahead": "^1.0.11",
181
- "vuelidate": "^0.7.7",
182
- "vuex": "^4.1.0",
183
- "webpack-merge": "^5.1.4",
184
- "webpack-node-externals": "^3.0.0"
185
- },
186
- "peerDependencies": {
187
- "@popperjs/core": "*",
188
- "postcss": "*"
189
- },
190
- "engines": {
191
- "node": ">= 16.20.0",
192
- "npm": ">= 6.14.5",
193
- "yarn": ">= 1.22.4"
194
- },
195
- "browserslist": [
196
- "> 1%",
197
- "last 2 versions",
198
- "not Explorer > 0",
199
- "IE 11",
200
- "not ExplorerMobile > 0",
201
- "not BlackBerry > 0",
202
- "not OperaMini all",
203
- "not OperaMobile > 0"
204
- ],
205
- "jest": {
206
- "testPathIgnorePatterns": [
207
- ".test",
208
- "node_modules"
209
- ],
210
- "jest.pathToJest": "node_modules/.bin/jest"
211
- },
212
- "config": {
213
- "commitizen": {
214
- "path": "./node_modules/cz-conventional-changelog"
215
- }
216
- },
217
- "bugs": {
218
- "url": "https://github.com/visitscotland/vs-component-library/issues"
219
- },
220
- "resolutions": {
221
- "minimist": "^0.2.4",
222
- "json5": "^1.0.2",
223
- "word-wrap": "^1.2.4",
224
- "highlight.js": "^10.4.1",
225
- "semver": "^7.5.4",
226
- "get-func-name": "^2.0.1",
227
- "svgo": "3.2.0"
228
- },
229
- "packageManager": "yarn@4.3.1"
230
- }
1
+ {
2
+ "name": "@visitscotland/component-library",
3
+ "version": "3.2.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 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": "^1.3.4",
82
+ "@originjs/vite-plugin-require-context": "^1.0.9",
83
+ "@rushstack/eslint-patch": "^1.3.0",
84
+ "@storybook/addon-a11y": "^8.0.10",
85
+ "@storybook/addon-essentials": "^8.0.10",
86
+ "@storybook/addon-interactions": "^8.0.10",
87
+ "@storybook/addon-links": "^8.0.10",
88
+ "@storybook/blocks": "8.0.10",
89
+ "@storybook/vue3": "^8.0.10",
90
+ "@storybook/vue3-vite": "^8.0.10",
91
+ "@typescript-eslint/eslint-plugin": "^5.59.8",
92
+ "@typescript-eslint/parser": "^5.59.8",
93
+ "@vitejs/plugin-vue": "^5.0.4",
94
+ "@vue/eslint-config-airbnb": "^7.0.0",
95
+ "@vue/test-utils": "^2.3.2",
96
+ "@vue/vue3-jest": "^29.2.4",
97
+ "babel-jest": "^29.5.0",
98
+ "babel-loader": "^9.1.2",
99
+ "babel-plugin-macros": "^2.4.2",
100
+ "bootstrap": "^5.3.2",
101
+ "chromatic": "^6.17.3",
102
+ "clean-webpack-plugin": "^4.0.0",
103
+ "commitizen": "^4.3.0",
104
+ "cross-env": "^7.0.3",
105
+ "css-loader": "^6.7.3",
106
+ "cz-conventional-changelog": "^3.3.0",
107
+ "dotenv-webpack": "^8.0.1",
108
+ "eslint": "^8.2.0",
109
+ "eslint-import-resolver-webpack": "^0.13.2",
110
+ "eslint-plugin-import": "^2.25.2",
111
+ "eslint-plugin-storybook": "^0.8.0",
112
+ "eslint-plugin-vue": "^9.11.1",
113
+ "eslint-webpack-plugin": "^4.0.1",
114
+ "file-loader": "^6.2.0",
115
+ "husky": "^8.0.3",
116
+ "jest": "^29.5.0",
117
+ "jest-axe": "^8.0.0",
118
+ "jest-environment-jsdom": "^29.5.0",
119
+ "jest-serializer-vue": "^3.1.0",
120
+ "lint-staged": "^15.2.2",
121
+ "mini-css-extract-plugin": "^2.7.5",
122
+ "moxios": "^0.4.0",
123
+ "node-polyfill-webpack-plugin": "^2.0.1",
124
+ "node-sass": "^8.0.0",
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
+ "speed-measure-webpack-plugin": "^1.5.0",
134
+ "standard-version": "^9.5.0",
135
+ "storybook": "^8.0.10",
136
+ "storybook-addon-datalayer-watcher": "^1.0.2",
137
+ "storybook-addon-mock": "^5.0.0",
138
+ "style-loader": "^3.3.2",
139
+ "svgo-loader": "^4.0.0",
140
+ "theo": "^8.1.5",
141
+ "time-analytics-webpack-plugin": "^0.1.20",
142
+ "ts-jest": "^29.1.0",
143
+ "ts-loader": "^9.4.3",
144
+ "typescript": "^5.0.4",
145
+ "upgrade": "^1.1.0",
146
+ "vite": "^5.2.10",
147
+ "vite-plugin-dts": "^3.7.2",
148
+ "vite-plugin-turbosnap": "^1.0.2",
149
+ "vue": "^3.4.19",
150
+ "vue-jest": "^5.0.0-alpha.10",
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
+ "@storybook/addon-a11y": "^7.5.3",
163
+ "@storybook/test": "^8.0.10",
164
+ "@vuelidate/core": "^2.0.2",
165
+ "@vuelidate/validators": "^2.0.2",
166
+ "axios": "^1.4.0",
167
+ "bootstrap-vue-next": "^0.17.0",
168
+ "glob": "^8.1.0",
169
+ "lodash": "^4.17.21",
170
+ "mapbox-gl": "^1.11.1",
171
+ "mitt": "^3.0.0",
172
+ "pinia": "^2.1.3",
173
+ "vite": "^5.1.3",
174
+ "vue": "^3.3.4",
175
+ "vue-combo-blocks": "^2.1.1",
176
+ "vue-recaptcha": "^2.0.1",
177
+ "vue-youtube-vue-3": "^1.5.0",
178
+ "vue3-charts": "^1.1.33",
179
+ "vue3-lazy-hydration": "^1.2.1",
180
+ "vue3-simple-typeahead": "^1.0.11",
181
+ "vuelidate": "^0.7.7",
182
+ "vuex": "^4.1.0",
183
+ "webpack-merge": "^5.1.4",
184
+ "webpack-node-externals": "^3.0.0"
185
+ },
186
+ "peerDependencies": {
187
+ "@popperjs/core": "*",
188
+ "postcss": "*"
189
+ },
190
+ "engines": {
191
+ "node": ">= 16.20.0",
192
+ "npm": ">= 6.14.5",
193
+ "yarn": ">= 1.22.4"
194
+ },
195
+ "browserslist": [
196
+ "> 1%",
197
+ "last 2 versions",
198
+ "not Explorer > 0",
199
+ "IE 11",
200
+ "not ExplorerMobile > 0",
201
+ "not BlackBerry > 0",
202
+ "not OperaMini all",
203
+ "not OperaMobile > 0"
204
+ ],
205
+ "jest": {
206
+ "testPathIgnorePatterns": [
207
+ ".test",
208
+ "node_modules"
209
+ ],
210
+ "jest.pathToJest": "node_modules/.bin/jest"
211
+ },
212
+ "config": {
213
+ "commitizen": {
214
+ "path": "./node_modules/cz-conventional-changelog"
215
+ }
216
+ },
217
+ "bugs": {
218
+ "url": "https://github.com/visitscotland/vs-component-library/issues"
219
+ },
220
+ "resolutions": {
221
+ "minimist": "^0.2.4",
222
+ "json5": "^1.0.2",
223
+ "word-wrap": "^1.2.4",
224
+ "highlight.js": "^10.4.1",
225
+ "semver": "^7.5.4",
226
+ "get-func-name": "^2.0.1",
227
+ "svgo": "3.2.0"
228
+ },
229
+ "packageManager": "yarn@4.3.1"
230
+ }
@@ -1 +0,0 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.VsArticleSection=e():t.VsArticleSection=e()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[2489],{81835:function(){},96568:function(t,e,n){"use strict";var s=n(11438),r=n(72958);e.A={name:"VsArticleSection",status:"prototype",release:"0.0.1",components:{VsCol:s.Il,VsRow:s.AQ,VsRichTextWrapper:r.default},props:{sidebarAlign:{type:String,default:"left",validator:function(t){return t.match(/(left|right)/)}}},computed:{sidebarAlignClass:function(){return"right"===this.sidebarAlign?"vs-article-section--sidebar-right":"vs-article-section--sidebar-left"}}}},81719:function(t,e,n){"use strict";n.d(e,{X:function(){return l}});var s=n(20641),r=n(90033),i={class:"mx-6 mx-md-0"};function l(t,e,n,l,o,c){var a=(0,s.g2)("VsCol"),u=(0,s.g2)("VsRichTextWrapper"),f=(0,s.g2)("VsRow");return(0,s.uX)(),(0,s.CE)("div",{class:(0,r.normalizeClass)(["vs-article-section mb-8 mb-md-10",c.sidebarAlignClass]),"data-test":"vs-article-section"},[(0,s.bF)(f,null,{default:(0,s.k6)((function(){return[(0,s.bF)(a,{cols:"12",md:"5",xl:"4","data-test":"vs-article-section__sidebar",class:(0,r.normalizeClass)(["col-xxl-4","right"===n.sidebarAlign?"pe-md-0":"ps-md-0"]),"offset-xl":"right"===n.sidebarAlign?"1":null,"order-md":"right"===n.sidebarAlign?"2":null},{default:(0,s.k6)((function(){return[(0,s.RG)(t.$slots,"article-sidebar")]})),_:3},8,["class","offset-xl","order-md"]),(0,s.bF)(a,{cols:"12",md:"7","data-test":"vs-article-section__content","offset-xl":"left"===n.sidebarAlign?"1":""},{default:(0,s.k6)((function(){return[(0,s.Lk)("div",i,[(0,s.bF)(u,null,{default:(0,s.k6)((function(){return[(0,s.RG)(t.$slots,"default")]})),_:3})])]})),_:3},8,["offset-xl"])]})),_:3})],2)}},83425:function(t,e,n){"use strict";var s=n(85072),r=n.n(s),i=n(97825),l=n.n(i),o=n(77659),c=n.n(o),a=n(55056),u=n.n(a),f=n(10540),d=n.n(f),b=n(41113),m=n.n(b),p=n(81835),g=n.n(p),A={};A.styleTagTransform=m(),A.setAttributes=u(),A.insert=c().bind(null,"head"),A.domAPI=l(),A.insertStyleElement=d(),r()(g(),A),g()&&g().locals&&g().locals},87848:function(t,e,n){"use strict";n.r(e);var s=n(16903),r=n(10844);n(77429);const i=(0,n(66262).A)(r.A,[["render",s.X]]);e.default=i},10844:function(t,e,n){"use strict";n.d(e,{A:function(){return s.A}});var s=n(96568)},16903:function(t,e,n){"use strict";n.d(e,{X:function(){return s.X}});var s=n(81719)},77429:function(t,e,n){"use strict";n(83425)}},function(t){return t.O(0,[641,6262,7510,3751,4352,8638,2368,7521,1438,2958],(function(){return 87848,t(t.s=87848)})),t.O()}])}));
@@ -1 +0,0 @@
1
- (self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[459],{72459:function(){},32373:function(e,t,i){"use strict";var o=i(48836),n=i(17933),s=i(79122),a=i(45921),r=i.n(a),d=i(83178),u=i(12308).A.youtube;t.A={name:"VsVideoCaption",status:"prototype",release:"0.0.1",components:{VsButton:o.default,VsToggleButton:n.default,VsWarning:s.default},mixins:[d.A],inject:{noJsMessage:{default:""},noCookiesMessage:{default:""},cookieLinkText:{default:""},errorMessage:{default:""}},props:{videoBtnText:{type:String,default:""},withToggleBtn:{type:Boolean,default:!1},videoId:{type:String,required:!0},variant:{type:String,default:"wide",validator:function(e){return e.match(/(wide|narrow)/)}}},setup:function(){return{videoStore:r()()}},data:function(){return{requiredCookies:u,showErrorMessage:!1}},computed:{videoDetails:function(){return this.videoStore.videos[this.videoId]},videoLoaded:function(){return void 0!==this.videoDetails&&this.videoDetails.videoDuration>0},showCookieMessage:function(){return!(this.requiredCookiesExist||!this.noCookiesMessage)}},methods:{emitToggle:function(){this.$emit("toggleAction")},emitShowModal:function(){this.emitter&&this.emitter.emit("showModal",this.videoId,"#videoShow")}}}},67119:function(e,t,i){"use strict";i.d(t,{X:function(){return p}});var o=i(20641),n=i(90033),s={key:0,class:"vs-video-caption__buttons-container"},a={class:"container"},r={key:1,class:"vs-video-caption__details"},d={class:"vs-video-caption__title"},u={class:"vs-video-caption__duration"},c={key:1,class:"vs-video-caption vs-video-caption--warning"},l={key:2,class:"vs-video-caption vs-video-caption--warning"},v={key:3,class:"vs-video-caption vs-video-caption--no-js vs-video-caption--warning","data-test":"video-caption-nojs"};function p(e,t,i,p,g,f){var k=(0,o.g2)("VsButton"),h=(0,o.g2)("VsToggleButton"),m=(0,o.g2)("VsWarning");return(0,o.uX)(),(0,o.CE)("div",{"data-test":"video-caption",class:(0,n.normalizeClass)(["vs-video-caption__wrapper","vs-video-caption__wrapper--".concat(i.variant)])},[f.videoLoaded&&e.requiredCookiesExist?((0,o.uX)(),(0,o.CE)("div",{"data-test":"video-caption-variants",class:(0,n.normalizeClass)(["vs-video-caption","vs-video-caption--".concat(i.variant)]),key:"video-caption"},[i.videoBtnText?((0,o.uX)(),(0,o.CE)("div",s,[(0,o.Lk)("div",a,[(0,o.bF)(k,{class:"vs-video-caption__button",icon:"play","icon-position":"left",size:"md",ref:"videoShow",onClick:f.emitShowModal},{default:(0,o.k6)((function(){return[(0,o.eW)((0,n.toDisplayString)(i.videoBtnText),1)]})),_:1},8,["onClick"])]),i.withToggleBtn?((0,o.uX)(),(0,o.Wv)(h,{key:0,onToggleAction:f.emitToggle},{default:(0,o.k6)((function(){return[(0,o.eW)(" Toggle caption ")]})),_:1},8,["onToggleAction"])):(0,o.Q3)("",!0)])):(0,o.Q3)("",!0),e.requiredCookiesExist?((0,o.uX)(),(0,o.CE)("div",r,[(0,o.Lk)("p",d,[(0,o.RG)(e.$slots,"video-title")]),(0,o.Lk)("p",u,(0,n.toDisplayString)(f.videoDetails.videoDurationMsg),1)])):(0,o.Q3)("",!0)],2)):(0,o.Q3)("",!0),f.videoLoaded&&e.requiredCookiesExist||!f.showCookieMessage?(0,o.Q3)("",!0):((0,o.uX)(),(0,o.CE)("div",c,[(0,o.bF)(m,{size:"small",type:"cookie"},{"button-text":(0,o.k6)((function(){return[(0,o.eW)((0,n.toDisplayString)(f.cookieLinkText),1)]})),default:(0,o.k6)((function(){return[(0,o.eW)((0,n.toDisplayString)(f.noCookiesMessage)+" ",1)]})),_:1})])),f.videoLoaded&&e.requiredCookiesExist||"error"!==e.cookiesInitStatus?(0,o.Q3)("",!0):((0,o.uX)(),(0,o.CE)("div",l,[(0,o.bF)(m,{size:"small"},{default:(0,o.k6)((function(){return[(0,o.eW)((0,n.toDisplayString)(f.errorMessage),1)]})),_:1})])),f.noJsMessage?((0,o.uX)(),(0,o.CE)("div",v,[(0,o.bF)(m,{size:"small"},{default:(0,o.k6)((function(){return[(0,o.eW)((0,n.toDisplayString)(f.noJsMessage),1)]})),_:1})])):(0,o.Q3)("",!0)],2)}},45:function(e,t,i){"use strict";var o=i(85072),n=i.n(o),s=i(97825),a=i.n(s),r=i(77659),d=i.n(r),u=i(55056),c=i.n(u),l=i(10540),v=i.n(l),p=i(41113),g=i.n(p),f=i(72459),k=i.n(f),h={};h.styleTagTransform=g(),h.setAttributes=c(),h.insert=d().bind(null,"head"),h.domAPI=a(),h.insertStyleElement=v(),n()(k(),h),k()&&k().locals&&k().locals},70459:function(e,t,i){"use strict";i.r(t);var o=i(87519),n=i(81049);i(10529);const s=(0,i(66262).A)(n.A,[["render",o.X]]);t.default=s},81049:function(e,t,i){"use strict";i.d(t,{A:function(){return o.A}});var o=i(32373)},87519:function(e,t,i){"use strict";i.d(t,{X:function(){return o.X}});var o=i(67119)},10529:function(e,t,i){"use strict";i(45)}}]);
@@ -1 +0,0 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.VsArticle=e():t.VsArticle=e()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[4700],{23456:function(){},29646:function(t,e,n){"use strict";var r=n(11438),s=n(72958),i=n(13838);e.A={name:"VsArticle",status:"prototype",release:"0.0.1",components:{VsCol:r.Il,VsRow:r.AQ,VsContainer:r.T$,VsRichTextWrapper:s.default,VsHeading:i.default},props:{title:{type:String,required:!0},anchorLink:{type:String,default:""}}}},22940:function(t,e,n){"use strict";n.d(e,{X:function(){return u}});var r=n(20641),s=n(90033),i={class:"vs-article__wrapper mb-9 mb-md-11"},l={class:"vs-article__header mx-6 mx-md-0 mt-9 mt-lg-11"},c=["id"],o={class:"vs-article__content"};function u(t,e,n,u,a,f){var d=(0,r.g2)("VsHeading"),p=(0,r.g2)("VsRichTextWrapper"),m=(0,r.g2)("VsCol"),b=(0,r.g2)("VsRow"),v=(0,r.g2)("VsContainer");return(0,r.uX)(),(0,r.CE)("article",(0,r.v6)({class:"vs-article","data-test":"vs-article"},t.$attrs),[(0,r.bF)(v,null,{default:(0,r.k6)((function(){return[(0,r.bF)(b,null,{default:(0,r.k6)((function(){return[(0,r.bF)(m,{cols:"12",class:"col-xxl-10 offset-xxl-1"},{default:(0,r.k6)((function(){return[(0,r.Lk)("div",i,[(0,r.RG)(t.$slots,"vs-article-img"),(0,r.bF)(b,null,{default:(0,r.k6)((function(){return[(0,r.bF)(m,{cols:"12",md:"10","offset-md":"1"},{default:(0,r.k6)((function(){return[(0,r.Lk)("div",l,[(0,r.bF)(d,{level:"2",class:"text-center mb-8 mb-lg-9"},{default:(0,r.k6)((function(){return[(0,r.Lk)("span",{id:n.anchorLink?n.anchorLink:""},(0,s.toDisplayString)(n.title),9,c)]})),_:1}),(0,r.bF)(p,{variant:"lead",class:"text-center mb-9 mb-lg-10"},{default:(0,r.k6)((function(){return[(0,r.RG)(t.$slots,"vs-article-intro")]})),_:3})]),(0,r.Lk)("div",o,[(0,r.RG)(t.$slots,"default")])]})),_:3})]})),_:3})])]})),_:3})]})),_:3})]})),_:3})],16)}},92502:function(t,e,n){"use strict";var r=n(85072),s=n.n(r),i=n(97825),l=n.n(i),c=n(77659),o=n.n(c),u=n(55056),a=n.n(u),f=n(10540),d=n.n(f),p=n(41113),m=n.n(p),b=n(23456),v=n.n(b),_={};_.styleTagTransform=m(),_.setAttributes=a(),_.insert=o().bind(null,"head"),_.domAPI=l(),_.insertStyleElement=d(),s()(v(),_),v()&&v().locals&&v().locals},75782:function(t,e,n){"use strict";n.r(e);var r=n(58796),s=n(6658);n(17282);const i=(0,n(66262).A)(s.A,[["render",r.X]]);e.default=i},6658:function(t,e,n){"use strict";n.d(e,{A:function(){return r.A}});var r=n(29646)},58796:function(t,e,n){"use strict";n.d(e,{X:function(){return r.X}});var r=n(22940)},17282:function(t,e,n){"use strict";n(92502)}},function(t){return t.O(0,[641,6262,7510,3751,4352,2543,3838,8638,2368,7521,1438,2958],(function(){return 75782,t(t.s=75782)})),t.O()}])}));
@@ -1 +0,0 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.VsQuote=e():t.VsQuote=e()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[8166],{77675:function(){},83138:function(t,e){"use strict";e.A={name:"VsQuote",status:"prototype",release:"0.0.1",props:{variant:{type:String,default:"narrow",validator:function(t){return t.match(/(narrow|wide)/)}}},computed:{hasAuthorName:function(){return!!this.$slots["quote-author-name"]},hasAuthorTitle:function(){return!!this.$slots["quote-author-title"]},hasAuthorImage:function(){return!!this.$slots["quote-image"]},variantClass:function(){return this.variant?"vs-quote--".concat(this.variant):""}}}},43291:function(t,e,n){"use strict";n.d(e,{X:function(){return f}});var s=n(20641),o=n(90033),u=(0,s.Lk)("div",{class:"vs-quote__speech-container"},[(0,s.Lk)("span",{class:"vs-quote__speech-mark"},"“")],-1),r={key:0,class:"vs-quote__author-container"},a={class:"vs-quote__content-container"},i={class:"vs-quote__content"},c={key:0,class:"vs-quote__author-name"},l={key:1,class:"vs-quote__author-title"};function f(t,e,n,f,h,v){return(0,s.uX)(),(0,s.CE)("div",{class:(0,o.normalizeClass)(["vs-quote",v.variantClass]),"data-test":"vs-quote"},[u,v.hasAuthorImage?((0,s.uX)(),(0,s.CE)("div",r,[(0,s.RG)(t.$slots,"quote-image")])):(0,s.Q3)("",!0),(0,s.Lk)("div",a,[(0,s.Lk)("div",i,[(0,s.RG)(t.$slots,"quote-content")]),v.hasAuthorName?((0,s.uX)(),(0,s.CE)("p",c,[(0,s.RG)(t.$slots,"quote-author-name")])):(0,s.Q3)("",!0),v.hasAuthorTitle?((0,s.uX)(),(0,s.CE)("p",l,[(0,s.RG)(t.$slots,"quote-author-title")])):(0,s.Q3)("",!0),(0,s.RG)(t.$slots,"quote-link")])],2)}},34821:function(t,e,n){"use strict";var s=n(85072),o=n.n(s),u=n(97825),r=n.n(u),a=n(77659),i=n.n(a),c=n(55056),l=n.n(c),f=n(10540),h=n.n(f),v=n(41113),d=n.n(v),p=n(77675),m=n.n(p),_={};_.styleTagTransform=d(),_.setAttributes=l(),_.insert=i().bind(null,"head"),_.domAPI=r(),_.insertStyleElement=h(),o()(m(),_),m()&&m().locals&&m().locals},31106:function(t,e,n){"use strict";n.r(e);var s=n(62507),o=n(45686);n(31993);const u=(0,n(66262).A)(o.A,[["render",s.X]]);e.default=u},45686:function(t,e,n){"use strict";n.d(e,{A:function(){return s.A}});var s=n(83138)},62507:function(t,e,n){"use strict";n.d(e,{X:function(){return s.X}});var s=n(43291)},31993:function(t,e,n){"use strict";n(34821)}},function(t){return t.O(0,[641,6262,7510],(function(){return 31106,t(t.s=31106)})),t.O()}])}));
@@ -1 +0,0 @@
1
- .vs-article__wrapper{border:1px solid #dedbe6}.vs-article__wrapper figure{margin-bottom:0}.vs-article .vs-video-caption__details{display:block}