@visitscotland/component-library 4.8.1 → 4.8.3

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 (25) hide show
  1. package/CHANGELOG.md +2824 -0
  2. package/dist/client/manifest.json +84 -84
  3. package/dist/client/scripts/40c88120a022e3905df6.js +1 -0
  4. package/dist/client/scripts/6456cb42d319a40ed667.js +1 -0
  5. package/dist/client/scripts/e0a9cf32900133544c9e.js +1 -0
  6. package/dist/client/styles/40c88120a022e3905df6.css +1 -0
  7. package/dist/components/components/accordion/components/AccordionItem.vue.d.ts +18 -1
  8. package/dist/components/components/accordion/index.d.ts +18 -1
  9. package/dist/components/components/footer/components/FooterAccordionItem.vue.d.ts +18 -1
  10. package/dist/components/components/itineraries/components/ItineraryDay.vue.d.ts +18 -1
  11. package/dist/components/components/mega-nav/components/MegaNavAccordionItem.vue.d.ts +18 -1
  12. package/dist/components/components/ski-scotland/ski-scotland-status/SkiScotlandStatus.vue.d.ts +18 -1
  13. package/dist/components/utils/data-layer-templates.d.ts +1 -0
  14. package/dist/components/vs-component-library.css +1 -1
  15. package/dist/components/vs-component-library.js +117 -117
  16. package/dist/components/vs-component-library.mjs +7437 -7527
  17. package/dist/ssr/index.js +1 -1
  18. package/dist/ssr/manifest.json +1 -1
  19. package/dist/ssr/styles/{85e5710eb6ddb269a5f5.css → f222dcf2cfa541e40028.css} +1 -1
  20. package/package.json +231 -231
  21. package/dist/client/scripts/206ec6607e492acd68be.js +0 -1
  22. package/dist/client/scripts/7bd39916f9a653e81774.js +0 -1
  23. package/dist/client/scripts/a711485aacf81264be3e.js +0 -1
  24. package/dist/client/styles/a711485aacf81264be3e.css +0 -1
  25. /package/dist/client/styles/{7bd39916f9a653e81774.css → e0a9cf32900133544c9e.css} +0 -0
@@ -20,7 +20,7 @@
20
20
  "index.js"
21
21
  ],
22
22
  "styles": [
23
- "styles/85e5710eb6ddb269a5f5.css"
23
+ "styles/f222dcf2cfa541e40028.css"
24
24
  ]
25
25
  }
26
26
  }
@@ -72,7 +72,7 @@ label,legend{font-weight:600;margin-bottom:0}legend{font-size:1.125rem}.error{fo
72
72
  .vs-dropdown .dropdown-menu .vs-global-menu__languages__item:not(:last-of-type){border-bottom:1px solid #fff}.vs-dropdown .dropdown-menu .vs-global-menu__languages__item .dropdown-item{padding:.75rem;color:#fff;text-decoration:none;line-height:1}.vs-dropdown .dropdown-menu .vs-global-menu__languages__item .dropdown-item:hover{background:#33225d}.vs-dropdown .dropdown-menu .vs-global-menu__languages__item .dropdown-item:focus{background:#5b2487;box-shadow:0 0 0 2px #fffa99 inset}.no-js .vs-global-menu__languages__item{width:100%;border:none}@media(min-width: 768px){.no-js .vs-global-menu__languages__item{width:auto;padding:.75rem}}.no-js .vs-global-menu__languages__item .dropdown-item{color:#fff;text-decoration:underline;font-size:1rem}.no-js .vs-global-menu__languages__item .dropdown-item:hover{background:rgba(0,0,0,0);text-decoration:none}@media(min-width: 768px){.no-js .vs-global-menu__languages__item .dropdown-item{padding:.25rem .5rem}}@media(min-width: 992px){.no-js .vs-global-menu__languages__item .dropdown-item{padding:.25rem 1rem}}
73
73
  .vs-global-menu__list{position:initial;flex:auto}.vs-global-menu__list_item a{color:#fff;text-decoration:none;transition:.2s all;padding:.75rem 1.25rem;line-height:1;display:inline-block}.vs-global-menu__list_item a:focus{outline:0;box-shadow:0 0 0 2px #fffa99 inset}.vs-global-menu__list_item a:hover{background:#d6e5ff}.vs-global-menu__list_item a:active{background:#fff;color:#200f2e;outline:none}.vs-global-menu__list_item--active a{background:#fff;color:#200f2e}.vs-global-menu__list_item--active a:hover{background:#fff}.vs-global-menu__list_item--active a:active{background:#fff;color:#200f2e}.no-js .vs-global-menu__list{width:100%;flex-wrap:wrap;display:flex !important}@media(min-width: 768px){.no-js .vs-global-menu__list{flex-wrap:nowrap}}.no-js .vs-global-menu__list_item{display:block;flex-basis:100%}@media(min-width: 768px){.no-js .vs-global-menu__list_item{flex-basis:auto;border:none;margin:0 .5rem}}.no-js .vs-global-menu__list_item:first-of-type{margin-left:0}.no-js .vs-global-menu__list_item:last-of-type{margin-right:0}.no-js .vs-global-menu__list_item a{max-height:none;height:auto;display:block;text-align:center;font-size:1rem;padding:.75rem 1.25rem;line-height:1.2}
74
74
  .vs-global-menu{background:#5b2487;color:#fff;position:relative;font-size:.75rem;display:flex;align-items:center}.vs-global-menu__wrapper{position:initial;display:flex;align-items:center}@media(max-width: 991.98px){.vs-global-menu__wrapper{margin:0}}@media(max-width: 991.98px){.row:not(.g-0)>.vs-global-menu__wrapper{padding:0}}.no-js .vs-global-menu{height:auto;margin-bottom:1rem}.no-js .vs-global-menu .dropdown-toggle{display:none}.no-js .vs-global-menu__wrapper{display:flex;flex-wrap:wrap}.no-js .vs-global-menu__wrapper .vs-global-menu__websites{display:none}
75
- .vs-hero-section-image__img{width:100%;height:386px;object-fit:cover}@media(min-width: 576px){.vs-hero-section-image__img{height:514px}}@media(min-width: 992px){.vs-hero-section-image__img{height:648px}}.vs-hero-section-image--split .vs-hero-section-image__img{height:255px;border-radius:0 0 40px 0}@media(min-width: 576px){.vs-hero-section-image--split .vs-hero-section-image__img{height:408px}}@media(min-width: 992px){.vs-hero-section-image--split .vs-hero-section-image__img{height:540px;border-radius:0 0 0 64px}}.vs-hero-section-image--split .vs-caption{text-align:left}@media(min-width: 992px){.vs-hero-section-image--split .vs-caption{text-align:right}}.vs-hero-section-image--split .vs-caption.vs-caption--fullwidth{min-height:auto}
75
+ .vs-hero-section-image__img{width:100%;height:386px;object-fit:cover}@media(min-width: 576px){.vs-hero-section-image__img{height:514px}}@media(min-width: 992px){.vs-hero-section-image__img{height:648px}}.vs-hero-section-image--split .vs-hero-section-image__img{height:255px}@media(min-width: 576px){.vs-hero-section-image--split .vs-hero-section-image__img{height:408px}}@media(min-width: 992px){.vs-hero-section-image--split .vs-hero-section-image__img{height:540px;border-radius:0 0 0 64px}}.vs-hero-section-image--split .vs-caption{text-align:left}@media(min-width: 992px){.vs-hero-section-image--split .vs-caption{text-align:right}}.vs-hero-section-image--split .vs-caption.vs-caption--fullwidth{min-height:auto}
76
76
  .vs-hero-section{background:#fff;--grid-columns: 12px 1fr 1fr 12px;--content_maxwidth: 100%;--container-col: 2 / span 2;--container-row: 1;--image-col: 1 / -1;--image-row: 2;--inset-image-col: 2 / span 2;--divider-col: 2 / span 2;--divider-row: 2}@media(min-width: 576px){.vs-hero-section{--content_maxwidth: 516px;--grid-columns: 1fr min-content min-content 1fr}}@media(min-width: 768px){.vs-hero-section{--content_maxwidth: 696px}}@media(min-width: 992px){.vs-hero-section{--content_maxwidth: 936px}}@media(min-width: 1200px){.vs-hero-section{--content_maxwidth: 1116px}}@media(min-width: 1400px){.vs-hero-section{--content_maxwidth: 1316px}}.vs-hero-section__grid{display:grid;grid-template-columns:var(--grid-columns);width:100%}.vs-hero-section__image{grid-row:var(--image-row);grid-column:var(--image-col)}.vs-hero-section__image--inset{grid-column:var(--inset-image-col);padding:0}.vs-hero-section__text-container{grid-row:var(--container-row);grid-column:var(--container-col);width:var(--content_maxwidth);padding:1.5rem 0 2.5rem 0}@media(min-width: 992px){.vs-hero-section__text-container{padding:3rem 0}}.vs-hero-section__text{width:100%}@media(min-width: 576px){.vs-hero-section__text{width:80%}}@media(min-width: 768px){.vs-hero-section__text{width:70%}}@media(min-width: 992px){.vs-hero-section__text{width:100%;display:grid;grid-template-columns:1.5fr 1fr;gap:6rem}}@media(min-width: 1200px){.vs-hero-section__text{grid-template-columns:1.5fr .75fr}}@media(min-width: 1400px){.vs-hero-section__text{gap:12rem}}.vs-hero-section__text .vs-hero-section__heading.vs-heading{color:#5b2487}@media(min-width: 768px){.vs-hero-section__text .vs-hero-section__heading.vs-heading{font-size:2rem;margin:1rem 0 .75rem}}@media(min-width: 992px){.vs-hero-section__text .vs-hero-section__heading.vs-heading{margin:0}}@media(min-width: 1200px){.vs-hero-section__text .vs-hero-section__heading.vs-heading{font-size:2.5625rem;margin:1rem 0 .75rem;margin:0}}.vs-hero-section__divider{height:2px;margin:0;color:#e9e9e9;grid-row:var(--divider-row);grid-column:var(--divider-col)}.vs-hero-section--split{--split-image-row: 1;--split-image-col: 1 / -1;--split-container-row: 2;--split-container-col: 2 / -2}@media(min-width: 992px){.vs-hero-section--split{--split-container-row: 1;--split-container-col: 2 / span 2;--split-image-row: 1;--split-image-col: 3 / span 2}}.vs-hero-section--split .vs-hero-section__image{grid-row:var(--split-image-row);grid-column:var(--split-image-col);position:relative;overflow:hidden;z-index:0;min-height:14rem;max-width:1000px}@media(min-width: 992px){.vs-hero-section--split .vs-hero-section__image{grid-row:var(--split-image-row);grid-column:var(--split-image-col)}}.vs-hero-section--split .vs-hero-section__text-container{grid-row:var(--split-container-row);grid-column:var(--split-container-col);padding-top:0}.vs-hero-section--split .vs-hero-section__text{height:100%;width:100%;padding:0}@media(min-width: 576px){.vs-hero-section--split .vs-hero-section__text{width:75%}}@media(min-width: 992px){.vs-hero-section--split .vs-hero-section__text{display:grid;grid-template-columns:1fr;gap:0;place-content:center;width:42%}}@media(min-width: 1400px){.vs-hero-section--split .vs-hero-section__text{width:40%}}@media(min-width: 992px){.vs-hero-section--split .vs-hero-section__text .vs-hero-section__heading.vs-heading{margin:0 0 1.5rem 0}}
77
77
  .vs-icon-list__item{display:inline-table;text-align:center;width:90px;margin-bottom:1rem;padding:0 .25rem;font-size:.875rem;line-height:1.2}.vs-icon-list__item .vs-icon{margin-bottom:.75rem}
78
78
  .vs-icon-list{text-align:center}.vs-icon-list .vs-icon-list__title{font-size:1rem;font-weight:400;margin-bottom:1.25rem}.vs-icon-list .vs-icon-list__list{display:inline-block;margin:0 auto;padding:0;text-align:left}
package/package.json CHANGED
@@ -1,231 +1,231 @@
1
- {
2
- "name": "@visitscotland/component-library",
3
- "version": "4.8.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
- }
1
+ {
2
+ "name": "@visitscotland/component-library",
3
+ "version": "4.8.3",
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 +0,0 @@
1
- "use strict";(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[8745],{98745:function(e,t,a){a.r(t);var r=a(64467),_=a(10810),n=a(4859),o=a(63555),i=a(12554);function c(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function g(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?c(Object(a),!0).forEach((function(t){(0,r.A)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):c(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var l={computed:g({},(0,_.aH)(n.A,{pageUrl:function(e){return e.pageUrl}})),data:function(){return{dataLayerLoadConfirmed:!1,dataLayerStore:null}},mounted:function(){this.dataLayerStore=(0,n.A)()},methods:{templateFiller:function(e,t){var a={};return e.forEach((function(e){a[e]="",a[e]=t[e]||void 0,"language"===e&&void 0===a[e]&&(a[e]=t.site_language||void 0)})),a},createDataLayerObject:function(e,t,a){var r,_,n,o,c,g,l="";switch(t&&t.target&&(g=t.target.text?t.target.text.trim():t.target.innerText),e){case"productSearchDataEvent":_="VS - GA4 - Event - PSR Search",n={event:r="psr_search",psr_search_type:t.searchType,psr_search_location:t.searchLocation,page_path:a,tag_name:_},o=this.compileFullTemplate(n),c=this.templateFiller(i.Gn,o);break;case"pageViewTemplateDataEvent":n={event:r="page_view"},o=this.compileFullTemplate(n),c=this.templateFiller(i.Vq,o);break;case"menuNavigationDataEvent":n={event:r="menu_navigation",click_text:t.target.text.trim(),click_URL:a},o=this.compileFullTemplate(n),c=this.templateFiller(i.qv,o);break;case"socialMediaExternalLinkDataEvent":n={event:r="social_media_footer",tag_name:_="VS - GA - Social Media External Link",click_URL:a},o=this.compileFullTemplate(n),c=this.templateFiller(i.P4,o);break;case"homePageLogoClickDataEvent":n={event:r="homepage_logo_click",tag_name:_="VS - GA - Homepage Logo Click"},o=this.compileFullTemplate(n),c=this.templateFiller(i.C0,o);break;case"externalLinkDataEvent":n={event:r="external_link",tag_name:_="VS - GA - External Link",click_text:g,click_URL:a},o=this.compileFullTemplate(n),c=this.templateFiller(i.Uf,o);break;case"internalLinkDataEvent":n={event:r="internal_link",tag_name:_="VS - GA - Internal Link",click_text:g,click_URL:a},o=this.compileFullTemplate(n),c=this.templateFiller(i.Qo,o);break;case"formsDataEvent":n={event:r="forms",tag_name:_="VS - GA - Forms",form_status:"form_submitted"},o=this.compileFullTemplate(n),c=this.templateFiller(i.Uo,o);break;case"errorDataEvent":n={event:r="errors",tag_name:_="VS - GA - Errors",error_type:t.error_type,error_details:t.error_details},o=this.compileFullTemplate(n),c=this.templateFiller(i.BV,o);break;case"videoTrackingDataEvent":n={event:r="video_tracking",tag_name:_="VS - GA - Video Tracking",video_status:t.status,video_title:t.title||"",video_percent:t.percent||0},o=this.compileFullTemplate(n),c=this.templateFiller(i.lz,o);break;case"socialShareDataEvent":r="share",_="VS - GA - Share",void 0!==t.target.text&&(l=t.target.text.trim()),n={event:r,tag_name:_,click_text:l,click_URL:a},o=this.compileFullTemplate(n),c=this.templateFiller(i.g4,o);break;case"carbonQuestionEvent":n={event:r="carbonCalculatorQuestion",tag_name:_="VS - GA - Carbon Calculator Question Answered",question_number:t.questionNumber,answer:t.answer},o=this.compileFullTemplate(n),c=this.templateFiller(i.QI,o);break;case"carbonCompleteEvent":n={event:r="carbonCalculatorComplete",tag_name:_="VS - GA - Carbon Calculator Complete",total_emissions:t.totalEmissions,total_per_day:t.totalPerDay,travel_percent:t.travelPercent,accommodation_percent:t.accommodationPercent,food_percent:t.foodPercent},o=this.compileFullTemplate(n),c=this.templateFiller(i.T9,o);break;case"cmsReferral":n={event:r="cms_referral",tag_name:_="VS - GA4 - Event - CMS Link Click Referral",referral_location:t.referral_location,dmo_referral:t.dmo_referral},o=this.compileFullTemplate(n),c=this.templateFiller(i.lG,o)}this.pushToDataLayer(c)},returnIsoDate:function(){return new Date(Date.now()).toISOString()},pushToDataLayer:function(e){var t=this;this.dataLayerLoadConfirmed?window.dataLayer.push(e):(0,o.A)("dataLayer",(function(){t.dataLayerLoadConfirmed=!0,window.dataLayer.push(e)}))},compileFullTemplate:function(e){var t=g(g({},this.dataLayerStore.GTMData),e);return t.hit_timestamp=this.returnIsoDate(),t},targetText:function(e){return e.target.text?e.target.text.trim():""}}};t.default=l},63555:function(e,t){var a=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;window.setTimeout((function(){window[e]?t(window[e]):a(e,t,500)}),r)};t.A=a},12554:function(e,t,a){a.d(t,{BV:function(){return s},C0:function(){return c},Gn:function(){return _},P4:function(){return i},QI:function(){return u},Qo:function(){return p},T9:function(){return y},Uf:function(){return l},Uo:function(){return m},Vq:function(){return r},g4:function(){return o},lG:function(){return v},lz:function(){return g},qv:function(){return n}});var r=["event","site_language","content_language","content_category","content_page_type","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","content_region","content_city","provider_search_region","provider_search_category","provider_search_facilities","provider_search_grading","provider_search_awards","provider_search_rooms","provider_search_min_price","provider_search_max_price","provider_category","provider_category_level_1","provider_category_level_2","provider_name","provider_ID","star_grading","provider_region","provider_city","provider_has_website","page_with_booking_link","provider_has_availability","availability_search_start_date","availability_search_end_date","availability_search_no_of_nights","availability_search_no_of_adults","availability_search_no_of_children","availability_search_no_of_rooms","availability_search_price_range","hit_timestamp","tag_name","meta_data"],_=["event","site_language","page_category_1","page_category_2","page_category_3","page_category_4","user_country_setting","hit_timestamp","tag_name","meta_data","psr_search_type","psr_search_location","page_path"],n=["event","site_language","user_country_setting","hit_timestamp","tag_name","meta_data","click_text","click_URL"],o=["event","site_language","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","user_country_setting","hit_timestamp","tag_name","meta_data","click_text","click_URL"],i=["event","site_language","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","user_country_setting","hit_timestamp","tag_name","meta_data","click_URL","location_on_page"],c=["event","site_language","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","user_country_setting","hit_timestamp","tag_name","meta_data","click_URL"],g=["event","language","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","user_country_setting","hit_timestamp","tag_name","meta_data","video_status","video_title","video_percent"],l=["event","site_language","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","user_country_setting","hit_timestamp","tag_name","meta_data","click_text","click_URL","dmo_referral"],p=["event","site_language","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","user_country_setting","hit_timestamp","tag_name","meta_data","click_text","click_URL"],s=["event","site_language","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","user_country_setting","hit_timestamp","tag_name","meta_data","error_type","error_details","page_path"],m=["event","site_language","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","user_country_setting","hit_timestamp","tag_name","meta_data","page_path","form_status"],u=["event","site_language","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","user_country_setting","hit_timestamp","tag_name","meta_data","question_number","answer"],y=["event","site_language","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","user_country_setting","hit_timestamp","tag_name","meta_data","total_emissions","total_per_day","travel_percent","accommodation_percent","food_percent"],v=["event","site_language","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","user_country_setting","hit_timestamp","tag_name","tag_name","meta_data","referral_location","attraction_name","dmo_referral"]},4859:function(e,t,a){var r=a(17527),_=(0,a(48086).defineStore)("datalayer",(function(){var e=(0,r.ref)(""),t=(0,r.ref)(!1),a=(0,r.ref)({});return{pageUrl:e,tagsTestRun:t,GTMData:a,getValueFromKey:function(e){return a.value[e]},setTestRun:function(e){t.value=e},setPageUrl:function(t){e.value=t},processPayload:function(e){a.value[e.key]=e.value}}}));t.A=_}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[9810],{84063:function(){},31188:function(t,e,n){"use strict";var o=n(17275),i=n(46422),a=n(13838),r=n(20641),s=n(2543),c=n(34352);e.A={name:"VsAccordionItem",status:"prototype",release:"0.0.1",components:{VsAccordionToggle:o.default,BCard:c.vm,VsIcon:i.default,BCardHeader:c.Uw,BCardBody:c.un,VsHeading:a.default},inject:{breakPoint:{default:"lg"}},props:{colourBadge:{type:String,required:!1,default:""},controlId:{type:String,required:!0},headingLevel:{type:Number,default:2,validator:function(t){return(0,s.isNumber)(t)?t>0&&t<7:t.match(/(1|2|3|4|5|6)/)}},itemBreakPoint:{type:String,default:function(){return(0,r.WQ)("breakPoint","lg")},validator:function(t){return t.match(/(xs|sm|md|lg|xl|xxl)/)}},openByDefault:{type:Boolean,default:!1},variant:{type:String,default:"transparent"}},data:function(){return{show:this.openByDefault}},computed:{toggleAccordionBtn:function(){return this.itemBreakPoint?"xs"===this.itemBreakPoint?"d-none":"d-".concat(this.itemBreakPoint,"-none"):"d-flex"},toggleResponsiveItem:function(){return this.itemBreakPoint?"xs"===this.itemBreakPoint?"d-block":"d-".concat(this.itemBreakPoint,"-block"):""}},methods:{onButtonClick:function(){this.show=!this.show}}}},75689:function(t,e,n){"use strict";n.d(e,{X:function(){return r}});var o=n(20641),i=n(90033),a=n(53751);function r(t,e,n,r,s,c){var l=(0,o.g2)("VsIcon"),d=(0,o.g2)("VsAccordionToggle"),u=(0,o.g2)("VsHeading"),f=(0,o.g2)("BCardHeader"),m=(0,o.g2)("BCardBody"),g=(0,o.g2)("BCard");return(0,o.uX)(),(0,o.Wv)(g,{"no-body":"",class:(0,i.normalizeClass)(["vs-accordion-item",c.breakPoint?"vs-accordion-item__responsive":""]),"data-test":"vs-accordion__item"},{default:(0,o.k6)((function(){return[(0,o.bF)(f,{class:"vs-accordion-item__card-header","data-test":"vs-accordion__item-header"},{default:(0,o.k6)((function(){return[(0,o.bF)(d,{"aria-controls":n.controlId,visible:s.show,variant:n.variant,class:(0,i.normalizeClass)(c.toggleAccordionBtn),onTogglePanel:c.onButtonClick},{"icon-open":(0,o.k6)((function(){return[(0,o.RG)(t.$slots,"icon-open",{},(function(){return[(0,o.bF)(l,{name:"chevron",size:"sm"})]}))]})),"icon-closed":(0,o.k6)((function(){return[(0,o.RG)(t.$slots,"icon-closed",{},(function(){return[(0,o.bF)(l,{name:"chevron",orientation:"down",size:"sm"})]}))]})),default:(0,o.k6)((function(){return[n.colourBadge?((0,o.uX)(),(0,o.CE)("div",{key:0,class:"vs-accordion-item__card-colour-badge","data-test":"vs-accordion-item__card-colour-badge",style:(0,i.normalizeStyle)("background-color: "+n.colourBadge)},null,4)):(0,o.Q3)("",!0),(0,o.RG)(t.$slots,"title")]})),_:3},8,["aria-controls","visible","variant","class","onTogglePanel"]),(0,o.bF)(u,{level:n.headingLevel,"heading-style":"heading-xxs",class:(0,i.normalizeClass)(["d-none vs-accordion-item__title",c.toggleResponsiveItem]),"data-test":"vs-accordion__item-title"},{default:(0,o.k6)((function(){return[(0,o.RG)(t.$slots,"title")]})),_:3},8,["level","class"])]})),_:3}),(0,o.bo)((0,o.bF)(m,{id:n.controlId,class:(0,i.normalizeClass)(["vs-accordion-item__panel",c.toggleResponsiveItem]),"data-test":"vs-accordion__item-body"},{default:(0,o.k6)((function(){return[(0,o.RG)(t.$slots,"default")]})),_:3},8,["id","class"]),[[a.vShow,s.show]])]})),_:3},8,["class"])}},75837:function(t,e,n){"use strict";var o=n(85072),i=n.n(o),a=n(97825),r=n.n(a),s=n(77659),c=n.n(s),l=n(55056),d=n.n(l),u=n(10540),f=n.n(u),m=n(41113),g=n.n(m),v=n(84063),_=n.n(v),h={};h.styleTagTransform=g(),h.setAttributes=d(),h.insert=c().bind(null,"head"),h.domAPI=r(),h.insertStyleElement=f(),i()(_(),h),_()&&_().locals&&_().locals},49810:function(t,e,n){"use strict";n.r(e);var o=n(75689),i=n(56584);n(20625);const a=(0,n(66262).A)(i.A,[["render",o.X]]);e.default=a},56584:function(t,e,n){"use strict";n.d(e,{A:function(){return o.A}});var o=n(31188)},20625:function(t,e,n){"use strict";n(75837)}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[8533],{8257:function(){},17099:function(t,e,n){"use strict";var i=n(90630),s=n(31574);e.A={name:"VsHeroSectionImage",status:"prototype",release:"0.0.1",components:{VsCaption:i.default,VsImg:s.default},props:{src:{type:String,required:!0},imgAlt:{type:String,default:""},imgCaption:{type:String,default:""},imgCredit:{type:String,default:""},split:{type:Boolean,default:!1}},computed:{isSplit:function(){return this.split?"vs-hero-section-image--split":""}}}},87317:function(t,e,n){"use strict";n.d(e,{X:function(){return r}});var i=n(20641),s=n(90033);function r(t,e,n,r,a,o){var c=(0,i.g2)("VsImg"),l=(0,i.g2)("VsCaption");return(0,i.uX)(),(0,i.CE)("div",{class:(0,s.normalizeClass)(["vs-hero-section-image",o.isSplit]),"data-test":"vs-hero-section-image"},[(0,i.bF)(c,{class:"vs-hero-section-image__img",src:n.src,alt:n.imgAlt},null,8,["src","alt"]),n.imgCaption||n.imgCredit?((0,i.uX)(),(0,i.Wv)(l,{key:0,class:"p-0",theme:"subtle","data-test":"vs-hero-section-image__caption"},(0,i.eX)({credit:(0,i.k6)((function(){return[(0,i.eW)((0,s.toDisplayString)(n.imgCredit),1)]})),_:2},[n.split?void 0:{name:"caption",fn:(0,i.k6)((function(){return[(0,i.eW)((0,s.toDisplayString)(n.imgCaption),1)]})),key:"0"}]),1024)):(0,i.Q3)("",!0)],2)}},11279:function(t,e,n){"use strict";var i=n(85072),s=n.n(i),r=n(97825),a=n.n(r),o=n(77659),c=n.n(o),l=n(55056),u=n.n(l),p=n(10540),m=n.n(p),g=n(41113),d=n.n(g),f=n(8257),v=n.n(f),y={};y.styleTagTransform=d(),y.setAttributes=u(),y.insert=c().bind(null,"head"),y.domAPI=a(),y.insertStyleElement=m(),s()(v(),y),v()&&v().locals&&v().locals},28533:function(t,e,n){"use strict";n.r(e);var i=n(87317),s=n(20295);n(1203);const r=(0,n(66262).A)(s.A,[["render",i.X]]);e.default=r},20295:function(t,e,n){"use strict";n.d(e,{A:function(){return i.A}});var i=n(17099)},1203:function(t,e,n){"use strict";n(11279)}}]);
@@ -1 +0,0 @@
1
- .vs-hero-section-image__img{width:100%;height:386px;object-fit:cover}@media(min-width: 576px){.vs-hero-section-image__img{height:514px}}@media(min-width: 992px){.vs-hero-section-image__img{height:648px}}.vs-hero-section-image--split .vs-hero-section-image__img{height:255px;border-radius:0 0 40px 0}@media(min-width: 576px){.vs-hero-section-image--split .vs-hero-section-image__img{height:408px}}@media(min-width: 992px){.vs-hero-section-image--split .vs-hero-section-image__img{height:540px;border-radius:0 0 0 64px}}.vs-hero-section-image--split .vs-caption{text-align:left}@media(min-width: 992px){.vs-hero-section-image--split .vs-caption{text-align:right}}.vs-hero-section-image--split .vs-caption.vs-caption--fullwidth{min-height:auto}