@visitscotland/component-library 4.20.0 → 4.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6288,7 +6288,7 @@ const VsLink = /* @__PURE__ */ _export_sfc(_sfc_main$26, [["render", _sfc_render
6288
6288
  }, _hoisted_1$1F = { class: "vs-product-card__image-container" }, _hoisted_2$1a = { class: "vs-product-card__image-inner-container" }, _hoisted_3$X = { class: "vs-product-card__description" }, _hoisted_4$H = {
6289
6289
  key: 0,
6290
6290
  class: "vs-product-card__description-inner"
6291
- }, _hoisted_5$v = { class: "visually-hidden" }, _hoisted_6$k = {
6291
+ }, _hoisted_5$w = { class: "visually-hidden" }, _hoisted_6$k = {
6292
6292
  class: "vs-product-card__logos-container",
6293
6293
  "data-chromatic": "ignore"
6294
6294
  };
@@ -6359,7 +6359,7 @@ function _sfc_render$1V(e, n, t, a, r, o) {
6359
6359
  }, {
6360
6360
  default: withCtx(() => [
6361
6361
  createTextVNode(toDisplayString(t.detailLink.label) + " ", 1),
6362
- createElementVNode("span", _hoisted_5$v, ": " + toDisplayString(t.title), 1)
6362
+ createElementVNode("span", _hoisted_5$w, ": " + toDisplayString(t.title), 1)
6363
6363
  ]),
6364
6364
  _: 1
6365
6365
  }, 8, ["href", "disabled"])
@@ -6890,7 +6890,7 @@ const VsCannedSearchDates = /* @__PURE__ */ _export_sfc(_sfc_main$1Z, [["render"
6890
6890
  }, _hoisted_4$F = {
6891
6891
  key: 2,
6892
6892
  class: "vs-canned-search-badges__badge vs-canned-search-badges__badge--offer vs-canned-search-badges__badge--tr2"
6893
- }, _hoisted_5$u = {
6893
+ }, _hoisted_5$v = {
6894
6894
  key: 3,
6895
6895
  class: "vs-canned-search-badges__badge vs-canned-search-badges__badge--open vs-canned-search-badges__badge--br"
6896
6896
  };
@@ -6903,7 +6903,7 @@ function _sfc_render$1M(e, n, t, a, r, o) {
6903
6903
  }, toDisplayString(l), 1))), 128))
6904
6904
  ])) : createCommentVNode("", !0),
6905
6905
  t.badgeTwo ? (openBlock(), createElementBlock("div", _hoisted_4$F, toDisplayString(t.badgeTwo), 1)) : createCommentVNode("", !0),
6906
- t.badgeThree ? (openBlock(), createElementBlock("div", _hoisted_5$u, toDisplayString(t.badgeThree), 1)) : createCommentVNode("", !0)
6906
+ t.badgeThree ? (openBlock(), createElementBlock("div", _hoisted_5$v, toDisplayString(t.badgeThree), 1)) : createCommentVNode("", !0)
6907
6907
  ]);
6908
6908
  }
6909
6909
  const VsCannedSearchBadges = /* @__PURE__ */ _export_sfc(_sfc_main$1Y, [["render", _sfc_render$1M]]), _sfc_main$1X = {
@@ -7224,7 +7224,7 @@ const VsCannedSearchTourDeparts = /* @__PURE__ */ _export_sfc(_sfc_main$1U, [["r
7224
7224
  }, _hoisted_2$12 = { class: "slider" }, _hoisted_3$R = {
7225
7225
  key: 2,
7226
7226
  class: "vs-carousel__navigation"
7227
- }, _hoisted_4$E = ["onClick", "onKeypress", "data-test"], _hoisted_5$t = { class: "visually-hidden" }, _hoisted_6$j = {
7227
+ }, _hoisted_4$E = ["onClick", "onKeypress", "data-test"], _hoisted_5$u = { class: "visually-hidden" }, _hoisted_6$j = {
7228
7228
  key: 0,
7229
7229
  class: "vs-carousel__mobile-pagination-wrapper"
7230
7230
  }, _hoisted_7$e = {
@@ -7294,7 +7294,7 @@ function _sfc_render$1H(e, n, t, a, r, o) {
7294
7294
  tabindex: "0",
7295
7295
  "data-test": `vs-carousel__nav-${f}`
7296
7296
  }, [
7297
- createElementVNode("span", _hoisted_5$t, [
7297
+ createElementVNode("span", _hoisted_5$u, [
7298
7298
  renderSlot(e.$slots, "vs-carousel-navigate"),
7299
7299
  createTextVNode(" " + toDisplayString(f), 1)
7300
7300
  ])
@@ -10872,7 +10872,7 @@ const CannedSearch = /* @__PURE__ */ _export_sfc(_sfc_main$1R, [["render", _sfc_
10872
10872
  return (t - e) * a / (n - e);
10873
10873
  }
10874
10874
  }
10875
- }, _hoisted_1$1r = ["width", "height"], _hoisted_2$11 = ["stroke"], _hoisted_3$Q = ["stroke"], _hoisted_4$D = ["stroke"], _hoisted_5$s = ["stroke"], _hoisted_6$i = ["stroke"], _hoisted_7$d = ["stroke"], _hoisted_8$5 = ["stroke"], _hoisted_9$4 = ["stroke"], _hoisted_10$4 = ["stroke"], _hoisted_11$3 = ["stroke"], _hoisted_12$3 = ["stroke"], _hoisted_13$3 = ["stroke"], _hoisted_14$2 = ["stroke"], _hoisted_15$2 = ["stroke"], _hoisted_16$2 = ["stroke"], _hoisted_17$2 = ["stroke"], _hoisted_18$1 = ["stroke"], _hoisted_19$1 = ["stroke"], _hoisted_20$1 = ["stroke"], _hoisted_21 = ["stroke"], _hoisted_22 = ["stroke"], _hoisted_23 = ["stroke"], _hoisted_24 = ["stroke"], _hoisted_25 = ["stroke"], _hoisted_26 = ["stroke"], _hoisted_27 = ["stroke"], _hoisted_28 = ["stroke"], _hoisted_29 = ["stroke"], _hoisted_30 = ["stroke"], _hoisted_31 = ["stroke"], _hoisted_32 = ["width", "height"], _hoisted_33 = ["fill", "cx", "cy"];
10875
+ }, _hoisted_1$1r = ["width", "height"], _hoisted_2$11 = ["stroke"], _hoisted_3$Q = ["stroke"], _hoisted_4$D = ["stroke"], _hoisted_5$t = ["stroke"], _hoisted_6$i = ["stroke"], _hoisted_7$d = ["stroke"], _hoisted_8$5 = ["stroke"], _hoisted_9$4 = ["stroke"], _hoisted_10$4 = ["stroke"], _hoisted_11$3 = ["stroke"], _hoisted_12$3 = ["stroke"], _hoisted_13$3 = ["stroke"], _hoisted_14$2 = ["stroke"], _hoisted_15$2 = ["stroke"], _hoisted_16$2 = ["stroke"], _hoisted_17$2 = ["stroke"], _hoisted_18$1 = ["stroke"], _hoisted_19$1 = ["stroke"], _hoisted_20$1 = ["stroke"], _hoisted_21 = ["stroke"], _hoisted_22 = ["stroke"], _hoisted_23 = ["stroke"], _hoisted_24 = ["stroke"], _hoisted_25 = ["stroke"], _hoisted_26 = ["stroke"], _hoisted_27 = ["stroke"], _hoisted_28 = ["stroke"], _hoisted_29 = ["stroke"], _hoisted_30 = ["stroke"], _hoisted_31 = ["stroke"], _hoisted_32 = ["width", "height"], _hoisted_33 = ["fill", "cx", "cy"];
10876
10876
  function _sfc_render$1E(e, n, t, a, r, o) {
10877
10877
  return openBlock(), createElementBlock("svg", {
10878
10878
  xmlns: "http://www.w3.org/2000/svg",
@@ -10929,7 +10929,7 @@ function _sfc_render$1E(e, n, t, a, r, o) {
10929
10929
  "stroke-linejoin": "round",
10930
10930
  "stroke-width": "0.5",
10931
10931
  "fill-rule": "evenodd"
10932
- }, null, 8, _hoisted_5$s),
10932
+ }, null, 8, _hoisted_5$t),
10933
10933
  createElementVNode("path", {
10934
10934
  d: "M65.9965,13.8793l-.668,1.287,1.169-.368Z",
10935
10935
  transform: "translate(-0.2662 -0.2662)",
@@ -11652,7 +11652,7 @@ const VsProgressBar = /* @__PURE__ */ _export_sfc(_sfc_main$1N, [["render", _sfc
11652
11652
  }, _hoisted_1$1n = {
11653
11653
  class: "vs-carbon-calculator-tip",
11654
11654
  "data-test": "vs-carbon-calculator-tip"
11655
- }, _hoisted_2$Z = { class: "vs-carbon-calculator-tip__icon-container" }, _hoisted_3$N = { class: "vs-carbon-calculator-tip__content" }, _hoisted_4$B = ["innerHTML"], _hoisted_5$r = ["innerHTML"];
11655
+ }, _hoisted_2$Z = { class: "vs-carbon-calculator-tip__icon-container" }, _hoisted_3$N = { class: "vs-carbon-calculator-tip__content" }, _hoisted_4$B = ["innerHTML"], _hoisted_5$s = ["innerHTML"];
11656
11656
  function _sfc_render$1A(e, n, t, a, r, o) {
11657
11657
  const l = resolveComponent("VsIcon"), c = resolveComponent("VsHeading");
11658
11658
  return openBlock(), createElementBlock("div", _hoisted_1$1n, [
@@ -11685,7 +11685,7 @@ function _sfc_render$1A(e, n, t, a, r, o) {
11685
11685
  class: "vs-carbon-calculator-tip__content",
11686
11686
  "data-test": "vs-carbon-calculator-tip__content",
11687
11687
  innerHTML: t.tip
11688
- }, null, 8, _hoisted_5$r))
11688
+ }, null, 8, _hoisted_5$s))
11689
11689
  ])
11690
11690
  ]);
11691
11691
  }
@@ -16156,7 +16156,7 @@ var script$1 = defineComponent({
16156
16156
  const _hoisted_1$1$1 = {
16157
16157
  class: "treemap",
16158
16158
  style: { display: "flex", position: "relative" }
16159
- }, _hoisted_2$1$1 = ["width", "height", "viewBox"], _hoisted_3$M = { class: "layer-rectangles" }, _hoisted_4$A = ["transform", "onMouseover"], _hoisted_5$q = ["width", "height"], _hoisted_6$h = {
16159
+ }, _hoisted_2$1$1 = ["width", "height", "viewBox"], _hoisted_3$M = { class: "layer-rectangles" }, _hoisted_4$A = ["transform", "onMouseover"], _hoisted_5$r = ["width", "height"], _hoisted_6$h = {
16160
16160
  x: 10,
16161
16161
  y: 20,
16162
16162
  "font-size": "15px",
@@ -16191,7 +16191,7 @@ function render$1(e, n, t, a, r, o) {
16191
16191
  y: 0,
16192
16192
  width: l.width,
16193
16193
  height: l.height
16194
- }), null, 16, _hoisted_5$q),
16194
+ }), null, 16, _hoisted_5$r),
16195
16195
  renderSlot(e.$slots, "text", {
16196
16196
  r: l,
16197
16197
  selected: e.selected === c
@@ -16446,7 +16446,7 @@ const _sfc_main$1L = {
16446
16446
  };
16447
16447
  }
16448
16448
  }
16449
- }, _hoisted_1$1l = { class: "vs-carbon-calculator-results__headline" }, _hoisted_2$X = { class: "mb-050" }, _hoisted_3$L = { class: "vs-carbon-calculator-results__total" }, _hoisted_4$z = ["innerHTML"], _hoisted_5$p = { class: "vs-carbon-calculator-results__unicorn-icon-container" }, _hoisted_6$g = { class: "vs-carbon-calculator-results__unicorn-content" };
16449
+ }, _hoisted_1$1l = { class: "vs-carbon-calculator-results__headline" }, _hoisted_2$X = { class: "mb-050" }, _hoisted_3$L = { class: "vs-carbon-calculator-results__total" }, _hoisted_4$z = ["innerHTML"], _hoisted_5$q = { class: "vs-carbon-calculator-results__unicorn-icon-container" }, _hoisted_6$g = { class: "vs-carbon-calculator-results__unicorn-content" };
16450
16450
  function _sfc_render$1z(e, n, t, a, r, o) {
16451
16451
  const l = resolveComponent("VsHeading"), c = resolveComponent("VsCol"), d = resolveComponent("VsRow"), p = resolveComponent("VsIcon"), f = resolveComponent("Grid"), m = resolveComponent("Bar"), _ = resolveComponent("Chart"), v = resolveComponent("Responsive");
16452
16452
  return openBlock(), createBlock(d, {
@@ -16511,7 +16511,7 @@ function _sfc_render$1z(e, n, t, a, r, o) {
16511
16511
  class: "vs-carbon-calculator-results__unicorn"
16512
16512
  }, {
16513
16513
  default: withCtx(() => [
16514
- createElementVNode("div", _hoisted_5$p, [
16514
+ createElementVNode("div", _hoisted_5$q, [
16515
16515
  createVNode(p, {
16516
16516
  name: "unicorn",
16517
16517
  size: "lg",
@@ -17966,7 +17966,7 @@ const VsRadioButton = /* @__PURE__ */ _export_sfc(_sfc_main$1I, [["render", _sfc
17966
17966
  validations() {
17967
17967
  return this.rules;
17968
17968
  }
17969
- }, _hoisted_1$1h = { "data-test": "vs-number-input" }, _hoisted_2$U = ["id"], _hoisted_3$I = ["id"], _hoisted_4$w = { class: "visually-hidden" }, _hoisted_5$o = { class: "visually-hidden" };
17969
+ }, _hoisted_1$1h = { "data-test": "vs-number-input" }, _hoisted_2$U = ["id"], _hoisted_3$I = ["id"], _hoisted_4$w = { class: "visually-hidden" }, _hoisted_5$p = { class: "visually-hidden" };
17970
17970
  function _sfc_render$1v(e, n, t, a, r, o) {
17971
17971
  const l = resolveComponent("VsButton"), c = resolveComponent("BFormInput");
17972
17972
  return openBlock(), createElementBlock("div", _hoisted_1$1h, [
@@ -18048,7 +18048,7 @@ function _sfc_render$1v(e, n, t, a, r, o) {
18048
18048
  onClick: n[1] || (n[1] = withModifiers((d) => o.clearInputAndFocus(), ["prevent"]))
18049
18049
  }, {
18050
18050
  default: withCtx(() => [
18051
- createElementVNode("span", _hoisted_5$o, toDisplayString(t.clearButtonText), 1)
18051
+ createElementVNode("span", _hoisted_5$p, toDisplayString(t.clearButtonText), 1)
18052
18052
  ]),
18053
18053
  _: 1
18054
18054
  })) : createCommentVNode("", !0)
@@ -19002,14 +19002,17 @@ const CarbonCalculator = /* @__PURE__ */ _export_sfc(_sfc_main$1F, [["render", _
19002
19002
  key: 0,
19003
19003
  class: "vs-stretched-link-card__video-btn-text"
19004
19004
  }, _hoisted_2$S = {
19005
- key: 1,
19005
+ key: 4,
19006
+ class: "card-body"
19007
+ }, _hoisted_3$H = {
19008
+ key: 0,
19006
19009
  class: "vs-stretched-link-card__category",
19007
19010
  "data-test": "vs-stretched-link-card__category"
19008
- }, _hoisted_3$H = {
19011
+ }, _hoisted_4$v = {
19009
19012
  class: "vs-stretched-link-card__content",
19010
19013
  "data-test": "vs-stretched-link-card__content"
19011
- }, _hoisted_4$v = {
19012
- key: 3,
19014
+ }, _hoisted_5$o = {
19015
+ key: 2,
19013
19016
  class: "vs-stretched-link-card__badges",
19014
19017
  "data-test": "vs-stretched-link-card__badges"
19015
19018
  };
@@ -19048,14 +19051,32 @@ function _sfc_render$1s(e, n, t, a, r, o) {
19048
19051
  key: 2,
19049
19052
  class: normalizeClass(["vs-stretched-link-card__img-container", o.warningClass])
19050
19053
  }, [
19051
- t.imgSrc ? (openBlock(), createBlock(c, {
19052
- key: 0,
19053
- src: t.imgSrc,
19054
- alt: t.imgAlt,
19055
- class: normalizeClass(["vs-stretched-link-card__img", o.isSvg ? "vs-stretched-link-card__img--svg" : ""]),
19056
- "data-test": "vs-stretched-link-card__img",
19057
- "data-chromatic": "ignore"
19058
- }, null, 8, ["src", "alt", "class"])) : createCommentVNode("", !0),
19054
+ t.imgSrc ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
19055
+ createVNode(c, {
19056
+ src: t.imgSrc,
19057
+ alt: t.imgAlt,
19058
+ class: normalizeClass(["vs-stretched-link-card__img", o.isSvg ? "vs-stretched-link-card__img--svg" : ""]),
19059
+ "data-test": "vs-stretched-link-card__img",
19060
+ "data-chromatic": "ignore"
19061
+ }, null, 8, ["src", "alt", "class"]),
19062
+ t.videoId && o.videoLoaded ? (openBlock(), createBlock(d, {
19063
+ key: 0,
19064
+ class: "vs-stretched-link-card__video-button",
19065
+ "data-test": "vs-stretched-link-card__video-button",
19066
+ icon: "play",
19067
+ "icon-position": "left",
19068
+ size: "md",
19069
+ ref: "videoShow",
19070
+ rounded: !1,
19071
+ onClick: o.emitShowModal
19072
+ }, {
19073
+ default: withCtx(() => [
19074
+ t.videoBtnText ? (openBlock(), createElementBlock("span", _hoisted_1$1e, toDisplayString(o.formattedVideoBtnText), 1)) : createCommentVNode("", !0),
19075
+ createTextVNode(" " + toDisplayString(o.formattedVideoDuration), 1)
19076
+ ]),
19077
+ _: 1
19078
+ }, 8, ["onClick"])) : createCommentVNode("", !0)
19079
+ ], 64)) : createCommentVNode("", !0),
19059
19080
  o.showWarning === "image" ? (openBlock(), createBlock(l, {
19060
19081
  key: 1,
19061
19082
  size: t.warningSize,
@@ -19081,32 +19102,12 @@ function _sfc_render$1s(e, n, t, a, r, o) {
19081
19102
  }, 8, ["size"])) : createCommentVNode("", !0)
19082
19103
  ], 2)) : createCommentVNode("", !0),
19083
19104
  e.$slots["stretched-card-panels"] && e.$slots["stretched-card-panels"]() ? renderSlot(e.$slots, "stretched-card-panels", { key: 3 }) : createCommentVNode("", !0),
19084
- o.showWarning !== "full" ? (openBlock(), createElementBlock("div", {
19085
- key: 4,
19086
- class: normalizeClass(["card-body", t.videoId ? "position-relative" : ""])
19087
- }, [
19088
- t.videoId && o.videoLoaded ? (openBlock(), createBlock(d, {
19089
- key: 0,
19090
- class: "vs-stretched-link-card__video-button",
19091
- "data-test": "vs-stretched-link-card__video-button",
19092
- icon: "play",
19093
- "icon-position": "left",
19094
- size: "md",
19095
- ref: "videoShow",
19096
- rounded: !1,
19097
- onClick: o.emitShowModal
19098
- }, {
19099
- default: withCtx(() => [
19100
- t.videoBtnText ? (openBlock(), createElementBlock("span", _hoisted_1$1e, toDisplayString(o.formattedVideoBtnText), 1)) : createCommentVNode("", !0),
19101
- createTextVNode(" " + toDisplayString(o.formattedVideoDuration), 1)
19102
- ]),
19103
- _: 1
19104
- }, 8, ["onClick"])) : createCommentVNode("", !0),
19105
- e.$slots["stretched-card-category"] && e.$slots["stretched-card-category"]() ? (openBlock(), createElementBlock("span", _hoisted_2$S, [
19105
+ o.showWarning !== "full" ? (openBlock(), createElementBlock("div", _hoisted_2$S, [
19106
+ e.$slots["stretched-card-category"] && e.$slots["stretched-card-category"]() ? (openBlock(), createElementBlock("span", _hoisted_3$H, [
19106
19107
  renderSlot(e.$slots, "stretched-card-category")
19107
19108
  ])) : createCommentVNode("", !0),
19108
19109
  e.$slots["stretched-card-header"] && e.$slots["stretched-card-header"]() ? (openBlock(), createBlock(f, {
19109
- key: 2,
19110
+ key: 1,
19110
19111
  level: t.headingLevel,
19111
19112
  "heading-style": t.headingStyle,
19112
19113
  class: "card-title vs-stretched-link-card__title",
@@ -19131,14 +19132,14 @@ function _sfc_render$1s(e, n, t, a, r, o) {
19131
19132
  ]),
19132
19133
  _: 3
19133
19134
  }, 8, ["level", "heading-style"])) : createCommentVNode("", !0),
19134
- createElementVNode("div", _hoisted_3$H, [
19135
+ createElementVNode("div", _hoisted_4$v, [
19135
19136
  renderSlot(e.$slots, "stretched-card-content")
19136
19137
  ]),
19137
- e.$slots["stretched-card-badges"] && e.$slots["stretched-card-badges"]() ? (openBlock(), createElementBlock("div", _hoisted_4$v, [
19138
+ e.$slots["stretched-card-badges"] && e.$slots["stretched-card-badges"]() ? (openBlock(), createElementBlock("div", _hoisted_5$o, [
19138
19139
  renderSlot(e.$slots, "stretched-card-badges")
19139
19140
  ])) : createCommentVNode("", !0),
19140
19141
  e.$slots["stretched-card-link"] && e.$slots["stretched-card-link"]() ? (openBlock(), createBlock(p, {
19141
- key: 4,
19142
+ key: 3,
19142
19143
  href: t.link,
19143
19144
  class: "vs-stretched-link-card__link stretched-link",
19144
19145
  "data-test": "vs-stretched-link-card__link"
@@ -19148,7 +19149,7 @@ function _sfc_render$1s(e, n, t, a, r, o) {
19148
19149
  ]),
19149
19150
  _: 3
19150
19151
  }, 8, ["href"])) : createCommentVNode("", !0)
19151
- ], 2)) : createCommentVNode("", !0)
19152
+ ])) : createCommentVNode("", !0)
19152
19153
  ], 34);
19153
19154
  }
19154
19155
  const VsStretchedLinkCard = /* @__PURE__ */ _export_sfc(_sfc_main$1E, [["render", _sfc_render$1s]]), _sfc_main$1D = {