@visitscotland/component-library 5.83.0 → 5.83.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.
@@ -35710,25 +35710,11 @@ function _sfc_render$9(e, t, n, a, o, r) {
35710
35710
  t[0] || (t[0] = createElementVNode("div", { class: "vs-spotlight-section__gradient-overlay" }, null, -1))
35711
35711
  ], 6);
35712
35712
  }
35713
- const SpotlightSection = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$9]]), _hoisted_1$f = { class: "vs-styled-list__list" }, _hoisted_2$a = { class: "vs-styled-list__source" }, _sfc_main$i = {
35713
+ const SpotlightSection = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$9]]), _hoisted_1$f = { class: "vs-styled-list__list" }, _hoisted_2$a = { class: "vs-styled-list__source" }, _sfc_main$i = /* @__PURE__ */ defineComponent({
35714
35714
  __name: "StyledList",
35715
35715
  props: {
35716
- /**
35717
- * Text listing any sources for information displayed in the lists.
35718
- */
35719
- source: {
35720
- type: String,
35721
- default: null
35722
- },
35723
- /**
35724
- * Determines the list style.
35725
- * @values icon, image, image-horizontal, numbered
35726
- */
35727
- variant: {
35728
- type: String,
35729
- default: "icon",
35730
- validator: (e) => ["icon", "image", "image-horizontal", "numbered"].includes(e)
35731
- }
35716
+ source: { default: null },
35717
+ variant: { default: "icon" }
35732
35718
  },
35733
35719
  setup(e) {
35734
35720
  const t = e;
@@ -35766,52 +35752,17 @@ const SpotlightSection = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _s
35766
35752
  })
35767
35753
  ], 2));
35768
35754
  }
35769
- }, _hoisted_1$e = {
35755
+ }), _hoisted_1$e = {
35770
35756
  class: "vs-styled-list__item",
35771
35757
  "data-test": "vs-styled-list__item"
35772
- }, _sfc_main$h = {
35758
+ }, _sfc_main$h = /* @__PURE__ */ defineComponent({
35773
35759
  __name: "StyledListItem",
35774
35760
  props: {
35775
- /**
35776
- * Heading of the list item.
35777
- */
35778
- heading: {
35779
- type: String,
35780
- required: !0
35781
- },
35782
- /**
35783
- * The correct heading level for page hierarchy, the
35784
- * heading will be styled the same regardless of level provided
35785
- * `1|2|3|4|5|6`
35786
- */
35787
- headingLevel: {
35788
- type: Number,
35789
- default: 3,
35790
- validator: (e) => lodashExports.isNumber(e) ? e > 0 && e < 7 : e.match(/(1|2|3|4|5|6)/)
35791
- },
35792
- /**
35793
- * Image source of the list item.
35794
- */
35795
- imageSrc: {
35796
- type: String,
35797
- default: null
35798
- },
35799
- /**
35800
- * Determines column layout and image position.
35801
- * @values icon, image, image-horizontal, numbered
35802
- */
35803
- variant: {
35804
- type: String,
35805
- default: "icon",
35806
- validator: (e) => ["icon", "image", "image-horizontal", "numbered"].includes(e)
35807
- },
35808
- /**
35809
- * ID of the anchor link if needed
35810
- */
35811
- anchorLink: {
35812
- type: String,
35813
- default: ""
35814
- }
35761
+ anchorLink: { default: "" },
35762
+ heading: {},
35763
+ headingLevel: { default: 3 },
35764
+ imageSrc: { default: null },
35765
+ variant: { default: "icon" }
35815
35766
  },
35816
35767
  setup(e) {
35817
35768
  const t = e;
@@ -35824,9 +35775,10 @@ const SpotlightSection = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _s
35824
35775
  md: "2"
35825
35776
  }, {
35826
35777
  default: withCtx(() => [
35827
- createVNode(VsImg, {
35778
+ t.imageSrc ? (openBlock(), createBlock(VsImg, {
35779
+ key: 0,
35828
35780
  src: t.imageSrc
35829
- }, null, 8, ["src"])
35781
+ }, null, 8, ["src"])) : createCommentVNode("", !0)
35830
35782
  ]),
35831
35783
  _: 1
35832
35784
  })) : createCommentVNode("", !0),
@@ -35834,7 +35786,7 @@ const SpotlightSection = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _s
35834
35786
  md: t.variant === "image" ? "10" : "12"
35835
35787
  }, {
35836
35788
  default: withCtx(() => [
35837
- t.variant === "image-horizontal" ? (openBlock(), createBlock(VsImg, {
35789
+ t.variant === "image-horizontal" && t.imageSrc ? (openBlock(), createBlock(VsImg, {
35838
35790
  key: 0,
35839
35791
  src: t.imageSrc
35840
35792
  }, null, 8, ["src"])) : createCommentVNode("", !0),
@@ -35862,7 +35814,7 @@ const SpotlightSection = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _s
35862
35814
  })
35863
35815
  ]));
35864
35816
  }
35865
- }, _sfc_main$g = {
35817
+ }), _sfc_main$g = {
35866
35818
  name: "VsSummaryBoxList",
35867
35819
  status: "deprecated",
35868
35820
  release: "0.0.1"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visitscotland/component-library",
3
- "version": "5.83.0",
3
+ "version": "5.83.1",
4
4
  "description": "VisitScotland Component Library",
5
5
  "author": "VisitScotland",
6
6
  "homepage": "https://github.com/visitscotland/vs-component-library#readme",