@visitscotland/component-library 4.19.2 → 4.20.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 (25) hide show
  1. package/dist/client/manifest.json +20 -20
  2. package/dist/client/scripts/7cd344dfc0791f0369f2.js +1 -0
  3. package/dist/client/scripts/8d02b002771a5368dec4.js +1 -0
  4. package/dist/client/scripts/a67c811e7eceaf13ef0f.js +1 -0
  5. package/dist/client/scripts/b60ba68449fbe9f6ee9f.js +1 -0
  6. package/dist/client/styles/7cd344dfc0791f0369f2.css +1 -0
  7. package/dist/client/styles/8d02b002771a5368dec4.css +1 -0
  8. package/dist/components/components/site-search/components/SiteSearchForm.vue.d.ts +5 -1
  9. package/dist/components/components/styled-list/components/StyledListItem.vue.d.ts +2 -0
  10. package/dist/components/components/styled-list/index.d.ts +6 -0
  11. package/dist/components/vs-component-library.css +1 -1
  12. package/dist/components/vs-component-library.js +2 -2
  13. package/dist/components/vs-component-library.mjs +14 -7
  14. package/dist/ssr/index.js +1 -1
  15. package/dist/ssr/manifest.json +1 -1
  16. package/dist/ssr/styles/{a58b2ad5f2f5228e6229.css → 8cca8f18b518015c1901.css} +2 -2
  17. package/package.json +1 -1
  18. package/dist/client/scripts/2aeb5b2af4fcfb3be4f0.js +0 -1
  19. package/dist/client/scripts/555732ce2d102a46aa59.js +0 -1
  20. package/dist/client/scripts/cae1fd369c1186a39e6a.js +0 -1
  21. package/dist/client/scripts/f2b357135e9fc63c629a.js +0 -1
  22. package/dist/client/styles/2aeb5b2af4fcfb3be4f0.css +0 -1
  23. package/dist/client/styles/f2b357135e9fc63c629a.css +0 -1
  24. /package/dist/client/styles/{cae1fd369c1186a39e6a.css → a67c811e7eceaf13ef0f.css} +0 -0
  25. /package/dist/client/styles/{555732ce2d102a46aa59.css → b60ba68449fbe9f6ee9f.css} +0 -0
@@ -32035,7 +32035,7 @@ function _sfc_render$V(e, n, t, a, r, o) {
32035
32035
  createVNode(l, {
32036
32036
  ref: "input",
32037
32037
  type: t.type,
32038
- class: normalizeClass(["vs-input", o.elementClass]),
32038
+ class: normalizeClass(["vs-input", [r.inputVal ? "show-cancel" : "", o.elementClass]]),
32039
32039
  modelValue: r.inputVal,
32040
32040
  "onUpdate:modelValue": n[0] || (n[0] = (d) => r.inputVal = d),
32041
32041
  id: t.fieldName,
@@ -34370,6 +34370,7 @@ const VsSiteSearch = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["render", _sfc_r
34370
34370
  },
34371
34371
  /**
34372
34372
  * Text that renders inside the clear button (visually-hidden)
34373
+ * DEPRECATED
34373
34374
  */
34374
34375
  clearButtonText: {
34375
34376
  type: String,
@@ -34468,10 +34469,9 @@ function _sfc_render$D(e, n, t, a, r, o) {
34468
34469
  type: "search",
34469
34470
  "field-name": "site-search",
34470
34471
  placeholder: t.labelText,
34471
- "clear-button-text": t.clearButtonText,
34472
34472
  "auto-complete": !1,
34473
34473
  onUpdated: o.updateVal
34474
- }, null, 8, ["placeholder", "clear-button-text", "onUpdated"])
34474
+ }, null, 8, ["placeholder", "onUpdated"])
34475
34475
  ]),
34476
34476
  createVNode(d, {
34477
34477
  type: "submit",
@@ -34769,9 +34769,8 @@ function _sfc_render$C(e, n, t, a, r, o) {
34769
34769
  "is-showing": r.showSearch,
34770
34770
  "label-text": t.searchLabelText,
34771
34771
  "submit-button-text": t.searchButtonText,
34772
- "clear-button-text": t.searchClearButtonText,
34773
34772
  "close-button-text": t.searchCloseButtonText
34774
- }, null, 8, ["onToggleAction", "is-showing", "label-text", "submit-button-text", "clear-button-text", "close-button-text"]), [
34773
+ }, null, 8, ["onToggleAction", "is-showing", "label-text", "submit-button-text", "close-button-text"]), [
34775
34774
  [vShow, r.showSearch]
34776
34775
  ])
34777
34776
  ]);
@@ -40827,6 +40826,13 @@ const SocialShareItem = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sf
40827
40826
  type: String,
40828
40827
  default: "icon",
40829
40828
  validator: (e) => ["icon", "image", "image-horizontal", "numbered"].includes(e)
40829
+ },
40830
+ /**
40831
+ * ID of the anchor link if needed
40832
+ */
40833
+ anchorLink: {
40834
+ type: String,
40835
+ default: ""
40830
40836
  }
40831
40837
  },
40832
40838
  setup(e) {
@@ -40856,13 +40862,14 @@ const SocialShareItem = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sf
40856
40862
  }, null, 8, ["src"])) : createCommentVNode("", !0),
40857
40863
  createVNode(VsHeading, {
40858
40864
  level: n.headingLevel,
40859
- "heading-style": "heading-xxs"
40865
+ "heading-style": "heading-xxs",
40866
+ id: e.anchorLink ? e.anchorLink : ""
40860
40867
  }, {
40861
40868
  default: withCtx(() => [
40862
40869
  createTextVNode(toDisplayString(e.heading), 1)
40863
40870
  ]),
40864
40871
  _: 1
40865
- }, 8, ["level"]),
40872
+ }, 8, ["level", "id"]),
40866
40873
  createVNode(VsRichTextWrapper, null, {
40867
40874
  default: withCtx(() => [
40868
40875
  renderSlot(t.$slots, "default")