@designcrowd/fe-shared-lib 1.5.26-pre-gt-0007 → 1.5.26

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 (36) hide show
  1. package/.vscode/settings.json +2 -0
  2. package/dist/css/tailwind-brandCrowd.css +0 -3
  3. package/dist/css/tailwind-brandPage.css +2 -321
  4. package/dist/css/tailwind-crazyDomains.css +100 -103
  5. package/dist/css/tailwind-designCom.css +110 -113
  6. package/dist/css/tailwind-designCrowd.css +78 -81
  7. package/index.js +0 -1
  8. package/package.json +1 -1
  9. package/public/css/tailwind-brandCrowd.css +21 -4
  10. package/public/css/tailwind-brandPage.css +13 -4
  11. package/public/css/tailwind-crazyDomains.css +21 -4
  12. package/public/css/tailwind-designCom.css +21 -4
  13. package/public/css/tailwind-designCrowd.css +21 -4
  14. package/src/atoms/components/Carousel/carousel.stories.js +0 -135
  15. package/src/experiences/components/WebsitesContextualUpgradeModal/WebsiteContextualUpgradeModal.vue +5 -4
  16. package/.storybook-static/favicon.svg +0 -1
  17. package/.storybook-static/index.html +0 -156
  18. package/.storybook-static/index.json +0 -1
  19. package/.storybook-static/nunito-sans-bold-italic.woff2 +0 -0
  20. package/.storybook-static/nunito-sans-bold.woff2 +0 -0
  21. package/.storybook-static/nunito-sans-italic.woff2 +0 -0
  22. package/.storybook-static/nunito-sans-regular.woff2 +0 -0
  23. package/.storybook-static/sb-addons/a11y-1/manager-bundle.js +0 -5
  24. package/.storybook-static/sb-addons/links-2/manager-bundle.js +0 -3
  25. package/.storybook-static/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +0 -188
  26. package/.storybook-static/sb-addons/themes-3/manager-bundle.js +0 -3
  27. package/.storybook-static/sb-common-assets/favicon.svg +0 -1
  28. package/.storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  29. package/.storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  30. package/.storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  31. package/.storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  32. package/.storybook-static/sb-manager/globals-module-info.js +0 -797
  33. package/.storybook-static/sb-manager/globals-runtime.js +0 -72062
  34. package/.storybook-static/sb-manager/globals.js +0 -34
  35. package/.storybook-static/sb-manager/runtime.js +0 -13002
  36. package/src/atoms/components/Carousel/CarouselSSR.vue +0 -215
@@ -1,215 +0,0 @@
1
- <template>
2
- <div :class="['carousel tw-flex tw-flex-col tw-box-content', ...normalizedClasses]">
3
- <!-- SSR Skeleton: rendered server-side and before client mount -->
4
- <div v-if="!isMounted" class="tw-flex tw-items-center tw-relative">
5
- <div class="swiper tw-w-full tw-overflow-hidden">
6
- <div class="swiper-wrapper tw-flex tw-flex-row" :style="skeletonWrapperStyle">
7
- <div
8
- v-for="(slide, i) in visibleCards"
9
- :key="i"
10
- class="swiper-slide tw-h-auto tw-flex-shrink-0"
11
- :style="slideStyle(slide)"
12
- >
13
- <div class="tw-h-full">
14
- <slot name="slide" :slide="slide" :index="i"></slot>
15
- </div>
16
- </div>
17
- </div>
18
- </div>
19
- </div>
20
-
21
- <!-- Actual Carousel: only rendered after client-side mount -->
22
- <Carousel
23
- v-else
24
- :ref="swiperRef"
25
- :swiper-ref="swiperRef"
26
- :classes="classes"
27
- :cards="cards"
28
- :options="options"
29
- :disable-right-click="disableRightClick"
30
- :nav-carousel="navCarousel"
31
- :show-controls="showControls"
32
- :show-bullets="showBullets"
33
- :hide-bullets-on-mobile="hideBulletsOnMobile"
34
- :hide-bullets-element="hideBulletsElement"
35
- :navigation-unique-indexer="navigationUniqueIndexer"
36
- :slide-index="slideIndex"
37
- @on-carousel-load="onCarouselLoad"
38
- >
39
- <template #slide="{ slide, index }">
40
- <slot name="slide" :slide="slide" :index="index"></slot>
41
- </template>
42
- <template #arrow-left>
43
- <slot name="arrow-left"></slot>
44
- </template>
45
- <template #arrow-right>
46
- <slot name="arrow-right"></slot>
47
- </template>
48
- </Carousel>
49
- </div>
50
- </template>
51
-
52
- <script setup>
53
- import { ref, computed, onMounted } from 'vue';
54
- import Carousel from './Carousel.vue';
55
-
56
- const props = defineProps({
57
- classes: {
58
- type: [String, Object, Array],
59
- required: false,
60
- default: () => [],
61
- },
62
- cards: {
63
- type: Array,
64
- required: true,
65
- },
66
- options: {
67
- type: Object,
68
- required: false,
69
- default: () => ({}),
70
- },
71
- disableRightClick: {
72
- type: Boolean,
73
- required: false,
74
- default: false,
75
- },
76
- navCarousel: {
77
- type: Boolean,
78
- required: false,
79
- default: false,
80
- },
81
- showControls: {
82
- type: Boolean,
83
- required: false,
84
- default: true,
85
- },
86
- showBullets: {
87
- type: Boolean,
88
- required: false,
89
- default: true,
90
- },
91
- hideBulletsOnMobile: {
92
- type: Boolean,
93
- required: false,
94
- default: true,
95
- },
96
- hideBulletsElement: {
97
- type: Boolean,
98
- required: false,
99
- default: false,
100
- },
101
- swiperRef: {
102
- type: String,
103
- default: 'js-swiper',
104
- },
105
- navigationUniqueIndexer: {
106
- type: String,
107
- default: undefined,
108
- },
109
- slideIndex: {
110
- type: Number,
111
- required: false,
112
- default: undefined,
113
- },
114
- skeletonSlideCount: {
115
- type: Number,
116
- required: false,
117
- default: 6,
118
- },
119
- });
120
-
121
- const emit = defineEmits(['on-carousel-load']);
122
-
123
- const isMounted = ref(false);
124
-
125
- onMounted(() => {
126
- isMounted.value = true;
127
- });
128
-
129
- const normalizedClasses = computed(() => {
130
- if (Array.isArray(props.classes)) {
131
- return props.classes;
132
- }
133
- if (typeof props.classes === 'string') {
134
- return [props.classes];
135
- }
136
- return [props.classes];
137
- });
138
-
139
- const visibleCards = computed(() => {
140
- return props.cards.slice(0, props.skeletonSlideCount);
141
- });
142
-
143
- const spaceBetween = computed(() => {
144
- return props.options?.spaceBetween ?? 10;
145
- });
146
-
147
- const skeletonWrapperStyle = computed(() => {
148
- return {
149
- gap: `${spaceBetween.value}px`,
150
- };
151
- });
152
-
153
- const slideStyle = (slide) => {
154
- if (slide.width) {
155
- const width = typeof slide.width === 'number' ? `${slide.width}px` : slide.width;
156
- return { width, minWidth: width };
157
- }
158
- return {};
159
- };
160
-
161
- const onCarouselLoad = () => {
162
- emit('on-carousel-load');
163
- };
164
- </script>
165
-
166
- <style scoped>
167
- .carousel :deep(.swiper-button-next, .swiper-button-prev) {
168
- @apply tw-hidden;
169
- }
170
-
171
- .carousel :deep(.swiper-button-disabled) {
172
- @apply tw-hidden;
173
- }
174
-
175
- .carousel :deep(.swiper-pagination) {
176
- @apply tw-static tw-pt-6;
177
- }
178
-
179
- .carousel :deep(.swiper-pagination-bullets) {
180
- @apply tw-text-center;
181
- }
182
-
183
- .carousel :deep(.swiper-pagination--desktop-only) {
184
- @apply tw-hidden sm:tw-block;
185
- }
186
-
187
- .carousel :deep(.carousel__button-nav) {
188
- @apply tw-relative;
189
- }
190
-
191
- .carousel :deep(.swiper-pagination-bullet) {
192
- border-color: #595959;
193
- @apply tw-border-2 tw-border-solid tw-opacity-100 tw-bg-transparent tw-w-2 tw-h-2 tw-inline-block tw-rounded tw-cursor-pointer;
194
- }
195
-
196
- .carousel :deep(.swiper-pagination-bullet.swiper-pagination-bullet-active) {
197
- background-color: #595959;
198
- }
199
-
200
- .carousel :deep(.swiper-pagination-bullet:not(:last-child)) {
201
- @apply tw-mr-2;
202
- }
203
-
204
- .carousel :deep(.swiper-pagination-bullet:only-child) {
205
- @apply tw-hidden;
206
- }
207
-
208
- .carousel :deep(.swiper-container) {
209
- @apply tw-w-full;
210
- }
211
-
212
- .carousel :deep(.swiper-slide) {
213
- @apply tw-h-auto tw-w-auto;
214
- }
215
- </style>