@explorer-1/vue 0.2.73 → 0.2.74

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@explorer-1/vue",
3
- "version": "0.2.73",
3
+ "version": "0.2.74",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -4,7 +4,7 @@
4
4
  class="HeroMedia"
5
5
  >
6
6
  <div class="vh-crop max-w-screen-3xl relative flex items-center mx-auto overflow-hidden">
7
- <div class="hero">
7
+ <div class="hero w-full">
8
8
  <template v-if="theImageData">
9
9
  <img
10
10
  v-if="theImageData.src"
@@ -4,6 +4,7 @@ import HomepageCarousel from './HomepageCarousel.vue'
4
4
  export default {
5
5
  title: 'Components/WWW/Homepage/HomepageCarousel',
6
6
  component: HomepageCarousel,
7
+ tags: ['!autodocs'],
7
8
  excludeStories: /.*Data$/,
8
9
  parameters: {
9
10
  viewMode: 'canvas'
@@ -74,9 +74,11 @@
74
74
  </transition>
75
75
  </div>
76
76
  <!-- tabbed navigation -->
77
- <div class="HomepageCarouselTabs relative container overflow-hidden mx-auto pt-5 pb-22">
77
+ <div
78
+ class="HomepageCarouselTabs relative container overflow-hidden px-0 mx-auto pt-5 pb-22"
79
+ >
78
80
  <!-- offset by one tab to allow for previous slide transitions -->
79
- <div class="w-full -translate-x-1/5">
81
+ <div class="w-full -translate-x-1/5 ml-10 pr-10 2xl:ml-0 2xl:pr-0">
80
82
  <!-- tab container width adjusts automatically according to slide count when there are less than 6 slides -->
81
83
  <div :class="tabContainerWidthClass">
82
84
  <!-- translate amount depends on tab container width, so the class is applied dynamically -->
@@ -95,7 +97,7 @@
95
97
  external-target-blank
96
98
  class="pr-5 flex-shrink-0 h-auto translate-x-0"
97
99
  :class="tabWidthClass"
98
- link-class="
100
+ :link-class="`
99
101
  group
100
102
  border-opacity-30 border-r border-white
101
103
  can-hover:hover:text-white
@@ -107,7 +109,9 @@
107
109
  -ml-5
108
110
  font-semibold
109
111
  text-base text-left text-white text-opacity-75
110
- transition-all duration-200 ease-in"
112
+ transition-all duration-200 ease-in
113
+ ${index === 0 ? '!text-white' : ''}
114
+ `"
111
115
  >
112
116
  <span>
113
117
  {{ item.slideTitle }}
@@ -157,6 +161,7 @@ export default defineComponent({
157
161
  sliderOptions: SwiperOptions
158
162
  tabbedItems: Slide[] | undefined
159
163
  slideToNext: Boolean
164
+ theIndex: number
160
165
  } {
161
166
  return {
162
167
  slideLoaded: false,
@@ -195,25 +200,23 @@ export default defineComponent({
195
200
  }
196
201
  },
197
202
  slideChange: (swiper: Swiper) => {
203
+ // @ts-ignore
204
+ this.theIndex = swiper.realIndex
198
205
  ;(this as any).videoHandler(swiper)
199
206
  }
200
207
  }
201
208
  },
209
+ theIndex: 0,
202
210
  tabbedItems: undefined,
203
211
  slideToNext: true
204
212
  }
205
213
  },
206
214
  computed: {
207
- theIndex(): number | false {
208
- if (this.slider) {
209
- return this.slider.realIndex
210
- }
211
- return false
212
- },
213
215
  onlyOneSlide(): boolean {
214
216
  return this.items?.length === 1
215
217
  },
216
218
  loopedTabs(): Array<Slide> {
219
+ // used to "cycle" through tabbed items
217
220
  // return a looped array starting at the active slide
218
221
  const items = this.items
219
222
  // offset by one to avoid slice(0,0) in reorderedItems
@@ -237,9 +240,9 @@ export default defineComponent({
237
240
  } else if (this.items?.length === 4) {
238
241
  return 'overflow-hidden w-4/5'
239
242
  } else if (this.items?.length === 5) {
240
- return 'overflow-hidden container'
243
+ return 'overflow-hidden container px-0'
241
244
  }
242
- return 'overflow-visible container'
245
+ return 'overflow-visible container px-0'
243
246
  },
244
247
  tabWidthClass(): string {
245
248
  if (this.items?.length === 2) {
@@ -45,8 +45,6 @@
45
45
  :width="item.listingPageHeroImage.src.width"
46
46
  :height="item.listingPageHeroImage.src.height"
47
47
  alt=""
48
- loading="lazy"
49
- data-chromatic="ignore"
50
48
  />
51
49
  </picture>
52
50
  </div>
@@ -41,10 +41,10 @@ const emit = defineEmits(['filterGroupAccordionItemOpened', 'filterGroupAccordio
41
41
  </script>
42
42
  <template>
43
43
  <div
44
- class="SearchFilterGroupAccordionItem border-t pt-2.5"
44
+ class="SearchFilterGroupAccordionItem border-t pt-[0.4375rem]"
45
45
  :class="{
46
46
  '-open border-gray-light-mid -mb-px': !isHidden,
47
- 'border-transparent mb-3': isHidden
47
+ 'border-transparent mb-2.5': isHidden
48
48
  }"
49
49
  >
50
50
  <div class="SearchFilterGroupAccordionItemHeader flex flex-row w-full content-between">
@@ -90,7 +90,9 @@ const { heading, blocks, image, steps, stepsNumbering, text } = reactive(props)
90
90
  class="px-0 lg:px-4"
91
91
  indent="col-1"
92
92
  >
93
- <div class="ThemeVariantGray bg-gray-light px-8 py-6 md:px-10 md:py-8 lg:px-18 lg:py-16">
93
+ <div
94
+ class="ThemeVariantGray bg-gray-light px-8 py-6 md:px-10 md:py-8 lg:px-18 lg:py-16 overflow-hidden"
95
+ >
94
96
  <template v-if="step.media?.length">
95
97
  <!-- split 50/50 -->
96
98
  <div class="lg:grid grid-cols-2 gap-6 lg:gap-10">