@bobbykim/mcl-carousel 0.2.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.
- package/CHANGELOG.md +13 -0
- package/LICENSE.md +9 -0
- package/README.md +21 -0
- package/index.d.ts +2 -0
- package/index.js +2 -0
- package/index.ts +3 -0
- package/lib/mcl-carousel-a/MclCarouselA.vue +292 -0
- package/lib/mcl-carousel-a/MclCarouselA.vue.d.ts +108 -0
- package/package.json +28 -0
- package/tsconfig.json +9 -0
- package/tsconfig.vue.json +9 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
# 0.2.0 (2024-02-27)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **manguito-theme,mcl-cards,mcl-header,mcl-footer,mcl-carousel:** add vueuse as one of dependencies, update code to make them ssr friendly ([119a327](https://github.com/bobbykim89/manguito-component-library/commit/119a327adf1ca9866e6ac063bce5acd4790db612))
|
|
12
|
+
* **mcl-carousel:** add mcl-carousel package ([6e03649](https://github.com/bobbykim89/manguito-component-library/commit/6e03649aaf8aca8902db71dcc60e38d75a1533fd))
|
|
13
|
+
* **stories/*:** ran package:build to build type declaration, move deprecated story files into deprecated folder ([ffc487d](https://github.com/bobbykim89/manguito-component-library/commit/ffc487dbcc093be7a3ccfeae98c5e10e8372a0e3))
|
package/LICENSE.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 Bobby Kim
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# @bobbykim/mcl-carousel
|
|
2
|
+
|
|
3
|
+
Add description
|
|
4
|
+
|
|
5
|
+
## Demo
|
|
6
|
+
|
|
7
|
+
[MCL Histoire Page](https://manguito-component-library.vercel.app/story/{%story-link%})
|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
`import MclCarousel from "@bobbykim/mcl-carousel"`;
|
|
14
|
+
|
|
15
|
+
## Maintainer
|
|
16
|
+
|
|
17
|
+
- **Bobby Kim** - _Initial work_
|
|
18
|
+
|
|
19
|
+
## License
|
|
20
|
+
|
|
21
|
+
This project is licensed under the MIT License - see the [LICENSE.md](./LICENSE.md) file for details
|
package/index.d.ts
ADDED
package/index.js
ADDED
package/index.ts
ADDED
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type {
|
|
3
|
+
BodyText,
|
|
4
|
+
ColorPalette,
|
|
5
|
+
HeadingSize,
|
|
6
|
+
SpacingLevel,
|
|
7
|
+
} from '@bobbykim/manguito-theme'
|
|
8
|
+
import generateClass from '@bobbykim/manguito-theme'
|
|
9
|
+
import { MclCardA, MclCardB, MclCardC, MclCardD } from '@bobbykim/mcl-cards'
|
|
10
|
+
import { onBeforeUnmount, onMounted, ref } from 'vue'
|
|
11
|
+
|
|
12
|
+
type BtnNav = 'prev' | 'next'
|
|
13
|
+
|
|
14
|
+
const props = withDefaults(
|
|
15
|
+
defineProps<{
|
|
16
|
+
title: string
|
|
17
|
+
titleSize?: HeadingSize
|
|
18
|
+
titleColor?: ColorPalette
|
|
19
|
+
bgColor?: ColorPalette
|
|
20
|
+
displayTagLine?: boolean
|
|
21
|
+
tagLineUpperCase?: boolean
|
|
22
|
+
tagLine?: string
|
|
23
|
+
tagLineSize?: BodyText
|
|
24
|
+
tagLineColor?: ColorPalette
|
|
25
|
+
displayHighlight?: boolean
|
|
26
|
+
highlightColor?: ColorPalette
|
|
27
|
+
btnColor?: ColorPalette
|
|
28
|
+
btnBgColor?: ColorPalette
|
|
29
|
+
content: any[]
|
|
30
|
+
cardsGap?: SpacingLevel
|
|
31
|
+
}>(),
|
|
32
|
+
{
|
|
33
|
+
titleSize: 'md',
|
|
34
|
+
titleColor: 'dark-3',
|
|
35
|
+
bgColor: 'light-1',
|
|
36
|
+
displayTagLine: true,
|
|
37
|
+
tagLineUpperCase: true,
|
|
38
|
+
tagLineSize: 'md',
|
|
39
|
+
tagLineColor: 'dark-1',
|
|
40
|
+
displayHighlight: true,
|
|
41
|
+
highlightColor: 'primary',
|
|
42
|
+
btnColor: 'dark-3',
|
|
43
|
+
btnBgColor: 'light-4',
|
|
44
|
+
cardsGap: 'xs',
|
|
45
|
+
}
|
|
46
|
+
)
|
|
47
|
+
const slideContainer = ref()
|
|
48
|
+
const carouselCards = ref<
|
|
49
|
+
| null
|
|
50
|
+
| InstanceType<
|
|
51
|
+
typeof MclCardA | typeof MclCardB | typeof MclCardC | typeof MclCardD
|
|
52
|
+
>[]
|
|
53
|
+
>([])
|
|
54
|
+
const emit = defineEmits(['btn-prev', 'btn-next'])
|
|
55
|
+
|
|
56
|
+
const currentIndex = ref(0)
|
|
57
|
+
const isNextBtnDisabled = ref(false)
|
|
58
|
+
let isMoving: boolean = false
|
|
59
|
+
const cardsSpace = (gap: SpacingLevel): number => {
|
|
60
|
+
switch (gap) {
|
|
61
|
+
case '0':
|
|
62
|
+
return 0
|
|
63
|
+
case '3xs':
|
|
64
|
+
return 4
|
|
65
|
+
case '2xs':
|
|
66
|
+
return 8
|
|
67
|
+
case 'xs':
|
|
68
|
+
return 16
|
|
69
|
+
case 'sm':
|
|
70
|
+
return 24
|
|
71
|
+
case 'md':
|
|
72
|
+
return 32
|
|
73
|
+
case 'lg':
|
|
74
|
+
return 48
|
|
75
|
+
case 'xl':
|
|
76
|
+
return 64
|
|
77
|
+
case '2xl':
|
|
78
|
+
return 96
|
|
79
|
+
case '3xl':
|
|
80
|
+
return 128
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// assign ref as
|
|
85
|
+
const setCarouselRef = (el: any): void => {
|
|
86
|
+
carouselCards.value!.push(el)
|
|
87
|
+
// carouselCards.value = el
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// navigation btn control function
|
|
91
|
+
const handleSlideBtnClick = (e: Event, btn: BtnNav): void => {
|
|
92
|
+
if (isMoving) {
|
|
93
|
+
return
|
|
94
|
+
}
|
|
95
|
+
isMoving = true
|
|
96
|
+
// btn === 'prev' ? currentIndex.value-- : currentIndex.value++
|
|
97
|
+
if (btn === 'prev') {
|
|
98
|
+
currentIndex.value--
|
|
99
|
+
emit('btn-prev', e)
|
|
100
|
+
}
|
|
101
|
+
if (btn === 'next') {
|
|
102
|
+
currentIndex.value++
|
|
103
|
+
emit('btn-next', e)
|
|
104
|
+
}
|
|
105
|
+
slideContainer.value.dispatchEvent(new Event('sliderMove'))
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
// intersection observer
|
|
109
|
+
const slideObserver = new IntersectionObserver(
|
|
110
|
+
(slide) => {
|
|
111
|
+
if (slide[0].isIntersecting) {
|
|
112
|
+
// add disable attribute
|
|
113
|
+
isNextBtnDisabled.value = true
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
{ threshold: 0.75 }
|
|
117
|
+
)
|
|
118
|
+
|
|
119
|
+
const getTitleClass = (size: HeadingSize, color: ColorPalette): string => {
|
|
120
|
+
/**
|
|
121
|
+
* @size - titleSize
|
|
122
|
+
* @color - titleColor
|
|
123
|
+
*/
|
|
124
|
+
|
|
125
|
+
const classArray = [
|
|
126
|
+
generateClass('H2', size),
|
|
127
|
+
generateClass('TEXTCOLOR', color),
|
|
128
|
+
]
|
|
129
|
+
|
|
130
|
+
return classArray.join(' ')
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
const getTaglineClass = (
|
|
134
|
+
size: BodyText,
|
|
135
|
+
color: ColorPalette,
|
|
136
|
+
upper: boolean
|
|
137
|
+
): string => {
|
|
138
|
+
/**
|
|
139
|
+
* @size - tagLineSize
|
|
140
|
+
* @color - tagLineColor
|
|
141
|
+
* @upper - tagLineUpperCase
|
|
142
|
+
*/
|
|
143
|
+
|
|
144
|
+
const classArray = [
|
|
145
|
+
generateClass('BODYTEXT', size),
|
|
146
|
+
generateClass('TEXTCOLOR', color),
|
|
147
|
+
]
|
|
148
|
+
|
|
149
|
+
if (upper) {
|
|
150
|
+
classArray.push('uppercase')
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
return classArray.join(' ')
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
const getButtonClass = (color: ColorPalette, bgColor: ColorPalette): string => {
|
|
157
|
+
/**
|
|
158
|
+
* @color - btnColor
|
|
159
|
+
* @bgColor - btnBgColor
|
|
160
|
+
*/
|
|
161
|
+
|
|
162
|
+
const classArray = [
|
|
163
|
+
generateClass('TEXTCOLOR', color),
|
|
164
|
+
generateClass('BGCOLOR', bgColor),
|
|
165
|
+
generateClass('RINGCOLOR', bgColor),
|
|
166
|
+
]
|
|
167
|
+
|
|
168
|
+
return classArray.join(' ')
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
const handleSlide = (): void => {
|
|
172
|
+
slideContainer.value.style.transform = `translateX(-${
|
|
173
|
+
currentIndex.value *
|
|
174
|
+
(carouselCards.value![0].$el.clientWidth + cardsSpace(props.cardsGap) + 2)
|
|
175
|
+
}px)`
|
|
176
|
+
|
|
177
|
+
isNextBtnDisabled.value = false
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
const handleTransitionEnd = (): void => {
|
|
181
|
+
isMoving = false
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
onMounted(() => {
|
|
185
|
+
// handle slide movement
|
|
186
|
+
slideContainer.value.addEventListener('sliderMove', handleSlide)
|
|
187
|
+
// handle transition end event
|
|
188
|
+
slideContainer.value.addEventListener('transitionend', handleTransitionEnd)
|
|
189
|
+
// intersection observer for slider
|
|
190
|
+
slideObserver.observe(
|
|
191
|
+
carouselCards.value![carouselCards.value!.length - 1].$el
|
|
192
|
+
)
|
|
193
|
+
})
|
|
194
|
+
|
|
195
|
+
onBeforeUnmount(() => {
|
|
196
|
+
slideContainer.value.removeEventListener('sliderMove', handleSlide)
|
|
197
|
+
slideContainer.value.removeEventListener('transitionend', handleTransitionEnd)
|
|
198
|
+
slideObserver.unobserve(
|
|
199
|
+
carouselCards.value![carouselCards.value!.length - 1].$el
|
|
200
|
+
)
|
|
201
|
+
})
|
|
202
|
+
</script>
|
|
203
|
+
|
|
204
|
+
<template>
|
|
205
|
+
<section
|
|
206
|
+
class="py-lg lg:py-xl overflow-hidden"
|
|
207
|
+
:class="generateClass('BGCOLOR', bgColor)"
|
|
208
|
+
>
|
|
209
|
+
<div class="container px-xs sm:px-md text-center sm:text-left">
|
|
210
|
+
<div class="relative">
|
|
211
|
+
<div
|
|
212
|
+
v-if="displayHighlight"
|
|
213
|
+
class="hidden sm:block absolute w-md bg-opacity-25 -left-4 h-full"
|
|
214
|
+
:class="generateClass('BGCOLOR', highlightColor)"
|
|
215
|
+
></div>
|
|
216
|
+
<div class="relative">
|
|
217
|
+
<span
|
|
218
|
+
v-if="displayTagLine"
|
|
219
|
+
class="tracking-widest"
|
|
220
|
+
:class="
|
|
221
|
+
getTaglineClass(tagLineSize, tagLineColor, tagLineUpperCase)
|
|
222
|
+
"
|
|
223
|
+
v-html="tagLine"
|
|
224
|
+
></span>
|
|
225
|
+
<h2
|
|
226
|
+
class="tracking-wide"
|
|
227
|
+
:class="getTitleClass(titleSize, titleColor)"
|
|
228
|
+
v-html="title"
|
|
229
|
+
></h2>
|
|
230
|
+
</div>
|
|
231
|
+
<div
|
|
232
|
+
class="relative flex flex-wrap sm:flex-nowrap justify-center sm:justify-start items-center space-x-4 space-y-4"
|
|
233
|
+
>
|
|
234
|
+
<div class="max-w-xl">
|
|
235
|
+
<slot name="description"></slot>
|
|
236
|
+
</div>
|
|
237
|
+
<div class="flex space-x-4">
|
|
238
|
+
<button
|
|
239
|
+
class="grid place-items-center hover:bg-opacity-80 rounded-full p-xs focus:outline-none focus:ring-4 ring-offset-2 ring-offset-inherit disabled:opacity-50 transition-all duration-200"
|
|
240
|
+
:class="getButtonClass(btnColor, btnBgColor)"
|
|
241
|
+
:disabled="currentIndex === 0"
|
|
242
|
+
@click="handleSlideBtnClick($event, 'prev')"
|
|
243
|
+
aria-label="previous"
|
|
244
|
+
>
|
|
245
|
+
<svg
|
|
246
|
+
class="w-xs h-xs"
|
|
247
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
248
|
+
viewBox="0 0 384 512"
|
|
249
|
+
fill="currentColor"
|
|
250
|
+
>
|
|
251
|
+
<!--! Font Awesome Pro 6.2.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. -->
|
|
252
|
+
<path
|
|
253
|
+
d="M41.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 256 278.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"
|
|
254
|
+
/>
|
|
255
|
+
</svg>
|
|
256
|
+
</button>
|
|
257
|
+
<button
|
|
258
|
+
class="grid place-items-center hover:bg-opacity-80 rounded-full p-xs focus:outline-none focus:ring-4 ring-offset-2 ring-offset-inherit disabled:opacity-50 transition-all duration-200"
|
|
259
|
+
:class="getButtonClass(btnColor, btnBgColor)"
|
|
260
|
+
:disabled="isNextBtnDisabled"
|
|
261
|
+
@click="handleSlideBtnClick($event, 'next')"
|
|
262
|
+
aria-label="next"
|
|
263
|
+
>
|
|
264
|
+
<svg
|
|
265
|
+
class="w-xs h-xs"
|
|
266
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
267
|
+
viewBox="0 0 384 512"
|
|
268
|
+
fill="currentColor"
|
|
269
|
+
>
|
|
270
|
+
<!--! Font Awesome Pro 6.2.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. -->
|
|
271
|
+
<path
|
|
272
|
+
d="M342.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L274.7 256 105.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"
|
|
273
|
+
/>
|
|
274
|
+
</svg>
|
|
275
|
+
</button>
|
|
276
|
+
</div>
|
|
277
|
+
</div>
|
|
278
|
+
</div>
|
|
279
|
+
</div>
|
|
280
|
+
<div class="container mt-md sm:mt-lg lg:mt-xl">
|
|
281
|
+
<div
|
|
282
|
+
class="flex transition-transform duration-500 px-xs gap-xs"
|
|
283
|
+
:class="generateClass('GAP', cardsGap)"
|
|
284
|
+
ref="slideContainer"
|
|
285
|
+
>
|
|
286
|
+
<slot name="carousel" :cards="content" :set-ref="setCarouselRef"></slot>
|
|
287
|
+
</div>
|
|
288
|
+
</div>
|
|
289
|
+
</section>
|
|
290
|
+
</template>
|
|
291
|
+
|
|
292
|
+
<style lang="scss" scoped></style>
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import type { BodyText, ColorPalette, HeadingSize, SpacingLevel } from '@bobbykim/manguito-theme';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
title: string;
|
|
4
|
+
titleSize?: HeadingSize | undefined;
|
|
5
|
+
titleColor?: ColorPalette | undefined;
|
|
6
|
+
bgColor?: ColorPalette | undefined;
|
|
7
|
+
displayTagLine?: boolean | undefined;
|
|
8
|
+
tagLineUpperCase?: boolean | undefined;
|
|
9
|
+
tagLine?: string | undefined;
|
|
10
|
+
tagLineSize?: BodyText | undefined;
|
|
11
|
+
tagLineColor?: ColorPalette | undefined;
|
|
12
|
+
displayHighlight?: boolean | undefined;
|
|
13
|
+
highlightColor?: ColorPalette | undefined;
|
|
14
|
+
btnColor?: ColorPalette | undefined;
|
|
15
|
+
btnBgColor?: ColorPalette | undefined;
|
|
16
|
+
content: any[];
|
|
17
|
+
cardsGap?: SpacingLevel | undefined;
|
|
18
|
+
}>, {
|
|
19
|
+
titleSize: string;
|
|
20
|
+
titleColor: string;
|
|
21
|
+
bgColor: string;
|
|
22
|
+
displayTagLine: boolean;
|
|
23
|
+
tagLineUpperCase: boolean;
|
|
24
|
+
tagLineSize: string;
|
|
25
|
+
tagLineColor: string;
|
|
26
|
+
displayHighlight: boolean;
|
|
27
|
+
highlightColor: string;
|
|
28
|
+
btnColor: string;
|
|
29
|
+
btnBgColor: string;
|
|
30
|
+
cardsGap: string;
|
|
31
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
32
|
+
"btn-prev": (...args: any[]) => void;
|
|
33
|
+
"btn-next": (...args: any[]) => void;
|
|
34
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
35
|
+
title: string;
|
|
36
|
+
titleSize?: HeadingSize | undefined;
|
|
37
|
+
titleColor?: ColorPalette | undefined;
|
|
38
|
+
bgColor?: ColorPalette | undefined;
|
|
39
|
+
displayTagLine?: boolean | undefined;
|
|
40
|
+
tagLineUpperCase?: boolean | undefined;
|
|
41
|
+
tagLine?: string | undefined;
|
|
42
|
+
tagLineSize?: BodyText | undefined;
|
|
43
|
+
tagLineColor?: ColorPalette | undefined;
|
|
44
|
+
displayHighlight?: boolean | undefined;
|
|
45
|
+
highlightColor?: ColorPalette | undefined;
|
|
46
|
+
btnColor?: ColorPalette | undefined;
|
|
47
|
+
btnBgColor?: ColorPalette | undefined;
|
|
48
|
+
content: any[];
|
|
49
|
+
cardsGap?: SpacingLevel | undefined;
|
|
50
|
+
}>, {
|
|
51
|
+
titleSize: string;
|
|
52
|
+
titleColor: string;
|
|
53
|
+
bgColor: string;
|
|
54
|
+
displayTagLine: boolean;
|
|
55
|
+
tagLineUpperCase: boolean;
|
|
56
|
+
tagLineSize: string;
|
|
57
|
+
tagLineColor: string;
|
|
58
|
+
displayHighlight: boolean;
|
|
59
|
+
highlightColor: string;
|
|
60
|
+
btnColor: string;
|
|
61
|
+
btnBgColor: string;
|
|
62
|
+
cardsGap: string;
|
|
63
|
+
}>>> & {
|
|
64
|
+
"onBtn-prev"?: ((...args: any[]) => any) | undefined;
|
|
65
|
+
"onBtn-next"?: ((...args: any[]) => any) | undefined;
|
|
66
|
+
}, {
|
|
67
|
+
titleColor: ColorPalette;
|
|
68
|
+
titleSize: HeadingSize;
|
|
69
|
+
bgColor: ColorPalette;
|
|
70
|
+
displayHighlight: boolean;
|
|
71
|
+
highlightColor: ColorPalette;
|
|
72
|
+
displayTagLine: boolean;
|
|
73
|
+
tagLineUpperCase: boolean;
|
|
74
|
+
tagLineSize: BodyText;
|
|
75
|
+
tagLineColor: ColorPalette;
|
|
76
|
+
btnColor: ColorPalette;
|
|
77
|
+
btnBgColor: ColorPalette;
|
|
78
|
+
cardsGap: SpacingLevel;
|
|
79
|
+
}, {}>, {
|
|
80
|
+
description?(_: {}): any;
|
|
81
|
+
carousel?(_: {
|
|
82
|
+
cards: any[];
|
|
83
|
+
setRef: (el: any) => void;
|
|
84
|
+
}): any;
|
|
85
|
+
}>;
|
|
86
|
+
export default _default;
|
|
87
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
88
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
89
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
90
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
91
|
+
} : {
|
|
92
|
+
type: import('vue').PropType<T[K]>;
|
|
93
|
+
required: true;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
type __VLS_WithDefaults<P, D> = {
|
|
97
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
98
|
+
default: D[K];
|
|
99
|
+
}> : P[K];
|
|
100
|
+
};
|
|
101
|
+
type __VLS_Prettify<T> = {
|
|
102
|
+
[K in keyof T]: T[K];
|
|
103
|
+
} & {};
|
|
104
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
105
|
+
new (): {
|
|
106
|
+
$slots: S;
|
|
107
|
+
};
|
|
108
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@bobbykim/mcl-carousel",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "index.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"build": "vue-tsc --project tsconfig.vue.json && tsc"
|
|
9
|
+
},
|
|
10
|
+
"author": {
|
|
11
|
+
"name": "Bobby Kim",
|
|
12
|
+
"url": "https://www.devbobbykim.com/"
|
|
13
|
+
},
|
|
14
|
+
"homepage": "https://manguito-component-library.vercel.app/",
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "https://github.com/bobbykim89/manguito-component-library.git"
|
|
18
|
+
},
|
|
19
|
+
"publishConfig": {
|
|
20
|
+
"access": "public"
|
|
21
|
+
},
|
|
22
|
+
"license": "MIT",
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"@bobbykim/manguito-theme": "^0.14.0",
|
|
25
|
+
"@bobbykim/mcl-cards": "^0.2.0"
|
|
26
|
+
},
|
|
27
|
+
"gitHead": "4d94a8d34988d926c8d465891fd7aa535cffdf33"
|
|
28
|
+
}
|
package/tsconfig.json
ADDED