@visitscotland/component-library 5.63.4 → 5.65.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 (28) hide show
  1. package/dist/components/{LoadingSpinner-DzGYsw47.mjs → LoadingSpinner-CkG_hjpf.mjs} +2652 -2590
  2. package/dist/components/LoadingSpinner-DLhnjm96.js +36 -0
  3. package/dist/components/components/canned-search/CannedSearch.vue.d.ts +4 -0
  4. package/dist/components/components/canned-search/components/CannedSearchLogos.vue.d.ts +2 -0
  5. package/dist/components/components/canned-search/components/CannedSearchProductCard.vue.d.ts +2 -0
  6. package/dist/components/components/carousel/components/CarouselSlide.vue.d.ts +2 -0
  7. package/dist/components/components/hero-section/HeroSection.vue.d.ts +4 -0
  8. package/dist/components/components/hero-section/components/HeroSectionImage.vue.d.ts +2 -0
  9. package/dist/components/components/image-with-caption/ImageWithCaption.vue.d.ts +2 -0
  10. package/dist/components/components/img/Img.vue.d.ts +21 -0
  11. package/dist/components/components/map-with-sidebar/MapWithSidebar.vue.d.ts +4 -0
  12. package/dist/components/components/map-with-sidebar/components/MapWithSidebarDetail.vue.d.ts +2 -0
  13. package/dist/components/components/map-with-sidebar/components/MapWithSidebarListItem.vue.d.ts +2 -0
  14. package/dist/components/components/map-with-sidebar/components/MapWithSidebarPanel.vue.d.ts +4 -0
  15. package/dist/components/components/mega-nav/components/MegaNavFeaturedEvent.vue.d.ts +2 -0
  16. package/dist/components/components/mega-nav/components/MegaNavFeaturedItem.vue.d.ts +2 -0
  17. package/dist/components/components/megalinks/components/megalink-link-list/MegalinkLinkList.vue.d.ts +2 -0
  18. package/dist/components/components/megalinks/components/megalink-multi-image/MegalinkMultiImage.vue.d.ts +2 -0
  19. package/dist/components/components/ski-scotland/ski-scotland-card/SkiScotlandCard.vue.d.ts +2 -0
  20. package/dist/components/components/stretched-link-card/StretchedLinkCard.vue.d.ts +2 -0
  21. package/dist/components/components/video/Video.vue.d.ts +2 -0
  22. package/dist/components/components/video/components/VideoHtml5.vue.d.ts +2 -0
  23. package/dist/components/vs-component-library-maps.js +1 -1
  24. package/dist/components/vs-component-library-maps.mjs +1 -1
  25. package/dist/components/vs-component-library.js +2 -2
  26. package/dist/components/vs-component-library.mjs +8 -4
  27. package/package.json +5 -5
  28. package/dist/components/LoadingSpinner-Dct5OvmT.js +0 -36
@@ -1,6 +1,6 @@
1
1
  import { openBlock, createElementBlock, renderSlot, inject, computed as computed$1, toValue, watch, ref, onMounted, nextTick as nextTick$1, getCurrentInstance, readonly, onBeforeUnmount, onUnmounted, defineComponent, unref, toRef, useId, shallowRef, useSlots, useModel, useTemplateRef, createBlock, withCtx, Transition, mergeProps, withDirectives, createElementVNode, withModifiers, normalizeClass, normalizeProps, guardReactiveProps, resolveDynamicComponent, createTextVNode, toDisplayString, Fragment, createCommentVNode, createVNode, vShow, normalizeStyle, mergeModels, provide, onActivated, renderList, useAttrs, render as render$e, h, vModelSelect, withKeys, resolveComponent, resolveDirective, createSlots, reactive, onBeforeMount, isRef, isReactive, isReadonly, onUpdated, onBeforeUpdate, isVNode, markRaw, Teleport, toHandlers, vModelText, Suspense } from "vue";
2
- import { _ as _export_sfc, b as breadcrumbGlobalIndexKey, a as breadcrumbRegistryKey, u as useEventListener, s as showHideRegistryKey, c as useThrottleFn, d as useDefaults, g as getSafeDocument, e as createSharedComposable, f as useScrollLock$1, h as useMutationObserver, i as getSafeWindow, t as toArray, j as unrefElement, n as notNullish, k as tryOnScopeDispose, l as useId$1, o as onKeyStroke, m as isEmptySlot, p as useColorVariantClasses, q as getModalZIndex, C as ConditionalTeleport_default, B as BButton_default, r as modalManagerKey, v as getSSRHandler, w as progressInjectionKey, x as useToNumber, y as formGroupKey, z as useAriaInvalid, A as useStateClass, D as useFocus, E as inputGroupKey, F as get$1, G as useBLinkHelper, H as BLink_default, I as ConditionalWrapper_default, J as pick, K as omit$2, L as BImg_default, M as offset$2, N as flip$2, O as autoPlacement, P as shift$2, Q as hide, R as inline, S as arrow$2, T as size, U as useFloating, V as autoUpdate$1, W as onClickOutside, X as useMouse$2, Y as buttonGroupKey, Z as dropdownInjectionKey, $ as collapseInjectionKey, a0 as navbarInjectionKey, a1 as formSelectKey, a2 as isVisible, a3 as useBreakpoints, a4 as breakpointsBootstrapV5, a5 as tabsInjectionKey, a6 as sortSlotElementsByPosition, a7 as defaultsKey, a8 as VsButton, a9 as dataLayerMixin, aa as VsHeading, ab as VsIcon, ac as lodashExports, ad as VsBody, ae as VsContainer, af as VsRow, ag as VsCol, ah as dmoUrls, ai as VsImg, aj as axios, ak as designTokens, al as BFormRadio_default, am as BFormRadioGroup_default, an as BFormGroup_default, ao as VsWarning, ap as BFormCheckbox_default, aq as getDefaultExportFromCjs, ar as products, as as paths, at as monthsEnglish, au as VsLoading, av as BThead_default, aw as BTh_default, ax as BTbody_default, ay as BTr_default, az as BTd_default, aA as BTfoot_default, aB as useDataLayerStore, aC as checkVendorLibrary, aD as siteSearchCloseTemplate, aE as siteSearchClickTemplate, aF as siteSearchUsageTemplate, aG as siteSearchOpenTemplate, aH as googleMapInteractionTemplate, aI as googleMapTimeToFirstInteractionTemplate, aJ as googleMapFilterInteractionTemplate, aK as googleMapSearchTemplate } from "./LoadingSpinner-DzGYsw47.mjs";
3
- import { aL as qe } from "./LoadingSpinner-DzGYsw47.mjs";
2
+ import { _ as _export_sfc, b as breadcrumbGlobalIndexKey, a as breadcrumbRegistryKey, u as useEventListener, s as showHideRegistryKey, c as useThrottleFn, d as useDefaults, g as getSafeDocument, e as createSharedComposable, f as useScrollLock$1, h as useMutationObserver, i as getSafeWindow, t as toArray, j as unrefElement, n as notNullish, k as tryOnScopeDispose, l as useId$1, o as onKeyStroke, m as isEmptySlot, p as useColorVariantClasses, q as getModalZIndex, C as ConditionalTeleport_default, B as BButton_default, r as modalManagerKey, v as getSSRHandler, w as progressInjectionKey, x as useToNumber, y as formGroupKey, z as useAriaInvalid, A as useStateClass, D as useFocus, E as inputGroupKey, F as get$1, G as useBLinkHelper, H as BLink_default, I as ConditionalWrapper_default, J as pick, K as omit$2, L as BImg_default, M as offset$2, N as flip$2, O as autoPlacement, P as shift$2, Q as hide, R as inline, S as arrow$2, T as size, U as useFloating, V as autoUpdate$1, W as onClickOutside, X as useMouse$2, Y as buttonGroupKey, Z as dropdownInjectionKey, $ as collapseInjectionKey, a0 as navbarInjectionKey, a1 as formSelectKey, a2 as isVisible, a3 as useBreakpoints, a4 as breakpointsBootstrapV5, a5 as tabsInjectionKey, a6 as sortSlotElementsByPosition, a7 as defaultsKey, a8 as VsButton, a9 as dataLayerMixin, aa as VsHeading, ab as VsIcon, ac as lodashExports, ad as VsBody, ae as VsContainer, af as VsRow, ag as VsCol, ah as dmoUrls, ai as VsImg, aj as axios, ak as designTokens, al as BFormRadio_default, am as BFormRadioGroup_default, an as BFormGroup_default, ao as VsWarning, ap as BFormCheckbox_default, aq as getDefaultExportFromCjs, ar as products, as as paths, at as monthsEnglish, au as VsLoading, av as BThead_default, aw as BTh_default, ax as BTbody_default, ay as BTr_default, az as BTd_default, aA as BTfoot_default, aB as useDataLayerStore, aC as checkVendorLibrary, aD as siteSearchCloseTemplate, aE as siteSearchClickTemplate, aF as siteSearchUsageTemplate, aG as siteSearchOpenTemplate, aH as googleMapInteractionTemplate, aI as googleMapTimeToFirstInteractionTemplate, aJ as googleMapFilterInteractionTemplate, aK as googleMapSearchTemplate } from "./LoadingSpinner-CkG_hjpf.mjs";
3
+ import { aL as qe } from "./LoadingSpinner-CkG_hjpf.mjs";
4
4
  import { defineStore, storeToRefs } from "pinia";
5
5
  const _sfc_main$2E = {
6
6
  name: "VsAccordion",
@@ -1852,7 +1852,9 @@ var normalizeInput = (e, n) => {
1852
1852
  }
1853
1853
  return t;
1854
1854
  }, useFormInput = (e, n, t, a) => {
1855
- const o = useId$1(() => e.id, "input"), r = useToNumber(() => e.debounce ?? 0, { nanToZero: !0 }), s = useToNumber(() => e.debounceMaxWait ?? NaN), i = inject(formGroupKey, null)?.(o), l = computed$1(() => e.state !== void 0 ? e.state : i?.state.value ?? null), c = computed$1(() => e.disabled || (i?.disabled.value ?? !1)), d = useAriaInvalid(() => e.ariaInvalid, l), u = useStateClass(l), p = useDebounceFn((M) => {
1855
+ const o = useId$1(() => e.id, "input"), r = useToNumber(() => e.debounce ?? 0, { nanToZero: !0 }), s = useToNumber(() => e.debounceMaxWait ?? NaN), i = inject(formGroupKey, null)?.();
1856
+ i?.track(o);
1857
+ const l = computed$1(() => e.state !== void 0 ? e.state : i?.state.value ?? null), c = computed$1(() => e.disabled || (i?.disabled.value ?? !1)), d = useAriaInvalid(() => e.ariaInvalid, l), u = useStateClass(l), p = useDebounceFn((M) => {
1856
1858
  t.value = M;
1857
1859
  }, () => a.lazy === !0 ? 0 : r.value, { maxWait: () => a.lazy === !0 ? NaN : s.value }), f = (M, D = !1, S = !1) => {
1858
1860
  a.lazy === !0 && D === !1 || (S ? t.value = M : p(M));
@@ -3567,7 +3569,9 @@ var normalizeInput = (e, n) => {
3567
3569
  }),
3568
3570
  emits: ["update:modelValue"],
3569
3571
  setup(e, { expose: n }) {
3570
- const t = useDefaults(e, "BFormSelect"), a = useModel(e, "modelValue"), o = useId$1(() => t.id, "input"), r = inject(formGroupKey, null)?.(o), s = computed$1(() => t.disabled || (r?.disabled.value ?? !1)), i = useToNumber(() => t.selectSize), l = useStateClass(() => t.state), c = useTemplateRef("_input"), { focused: d } = useFocus(c, { initialValue: t.autofocus }), u = computed$1(() => [l.value, {
3572
+ const t = useDefaults(e, "BFormSelect"), a = useModel(e, "modelValue"), o = useId$1(() => t.id, "input"), r = inject(formGroupKey, null)?.();
3573
+ r?.track(o);
3574
+ const s = computed$1(() => t.disabled || (r?.disabled.value ?? !1)), i = useToNumber(() => t.selectSize), l = useStateClass(() => t.state), c = useTemplateRef("_input"), { focused: d } = useFocus(c, { initialValue: t.autofocus }), u = computed$1(() => [l.value, {
3571
3575
  "form-control": t.plain,
3572
3576
  [`form-control-${t.size}`]: t.size !== void 0 && t.plain,
3573
3577
  "form-select": !t.plain,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visitscotland/component-library",
3
- "version": "5.63.4",
3
+ "version": "5.65.0",
4
4
  "description": "VisitScotland Component Library",
5
5
  "author": "VisitScotland",
6
6
  "homepage": "https://github.com/visitscotland/vs-component-library#readme",
@@ -72,10 +72,10 @@
72
72
  "@rollup/plugin-replace": "^6.0.2",
73
73
  "@semantic-release/exec": "^7.1.0",
74
74
  "@semantic-release/npm": "^13.1.5",
75
- "@storybook/addon-a11y": "10.4.3",
76
- "@storybook/addon-docs": "10.4.4",
77
- "@storybook/addon-links": "10.4.4",
78
- "@storybook/vue3-vite": "10.4.4",
75
+ "@storybook/addon-a11y": "10.4.6",
76
+ "@storybook/addon-docs": "10.4.6",
77
+ "@storybook/addon-links": "10.4.6",
78
+ "@storybook/vue3-vite": "10.4.6",
79
79
  "@types/google.maps": "^3.64.0",
80
80
  "@types/node": "^25.9.1",
81
81
  "@types/react": "^19.2.16",