@kiva/kv-components 7.6.2 → 8.0.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/.eslintignore +5 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +236 -216
- package/dist/utils/Alea.d.ts +9 -0
- package/dist/utils/Alea.js +23 -23
- package/dist/utils/arrayUtils.d.ts +3 -0
- package/dist/utils/arrayUtils.js +1 -1
- package/dist/utils/attrs.d.ts +6 -0
- package/dist/utils/carousels.d.ts +21 -0
- package/dist/utils/comparators.d.ts +3 -0
- package/dist/utils/comparators.js +20 -6
- package/dist/utils/debounce.d.ts +1 -0
- package/dist/utils/debounce.js +4 -4
- package/dist/utils/event.d.ts +1 -0
- package/dist/utils/event.js +7 -0
- package/dist/utils/expander.d.ts +14 -0
- package/dist/utils/imageUtils.d.ts +11 -0
- package/dist/utils/imageUtils.js +12 -12
- package/dist/utils/index.d.ts +21 -0
- package/dist/utils/loanCard.d.ts +35 -0
- package/dist/utils/loanCard.js +2 -2
- package/dist/utils/loanSearch/queryParamUtils.d.ts +1 -0
- package/dist/utils/loanUtils.d.ts +11 -0
- package/dist/utils/loanUtils.js +56 -53
- package/dist/utils/mapUtils.d.ts +5 -0
- package/dist/utils/markMatches.d.ts +1 -0
- package/dist/utils/paramCase.d.ts +1 -0
- package/dist/utils/printing.d.ts +2 -0
- package/dist/utils/scrollLock.d.ts +4 -0
- package/dist/utils/themeUtils.d.ts +12 -0
- package/dist/utils/throttle.d.ts +1 -0
- package/dist/utils/throttle.js +4 -4
- package/dist/utils/touchEvents.d.ts +3 -0
- package/dist/utils/touchEvents.js +9 -9
- package/dist/utils/treemap.d.ts +16 -0
- package/dist/utils/treemap.js +1 -1
- package/dist/vue/KvAccordionItem.js +28 -82
- package/dist/vue/KvAccordionItem.vue.d.ts +107 -0
- package/dist/vue/KvAccordionItem2.js +60 -0
- package/dist/vue/KvActivityRow.js +11 -22
- package/dist/vue/KvActivityRow.vue.d.ts +66 -0
- package/dist/vue/KvActivityRow2.js +16 -0
- package/dist/vue/KvAtbModal.css +1 -1
- package/dist/vue/KvAtbModal.js +68 -248
- package/dist/vue/KvAtbModal.vue.d.ts +359 -0
- package/dist/vue/KvAtbModal2.js +186 -0
- package/dist/vue/KvBorrowerImage.js +17 -118
- package/dist/vue/KvBorrowerImage.vue.d.ts +62 -0
- package/dist/vue/KvBorrowerImage2.js +106 -0
- package/dist/vue/KvButton.js +20 -164
- package/dist/vue/KvButton.vue.d.ts +94 -0
- package/dist/vue/KvButton2.js +149 -0
- package/dist/vue/KvCardFrame.js +12 -74
- package/dist/vue/KvCardFrame.vue.d.ts +86 -0
- package/dist/vue/KvCardFrame2.js +67 -0
- package/dist/vue/KvCarousel.css +1 -1
- package/dist/vue/KvCarousel.js +55 -192
- package/dist/vue/KvCarousel.vue.d.ts +135 -0
- package/dist/vue/KvCarousel2.js +142 -0
- package/dist/vue/KvCartModal.css +1 -1
- package/dist/vue/KvCartModal.js +31 -131
- package/dist/vue/KvCartModal.vue.d.ts +163 -0
- package/dist/vue/KvCartModal2.js +106 -0
- package/dist/vue/KvCartPill.js +12 -51
- package/dist/vue/KvCartPill.vue.d.ts +52 -0
- package/dist/vue/KvCartPill2.js +45 -0
- package/dist/vue/KvCheckbox.css +1 -1
- package/dist/vue/KvCheckbox.js +30 -126
- package/dist/vue/KvCheckbox.vue.d.ts +90 -0
- package/dist/vue/KvCheckbox2.js +102 -0
- package/dist/vue/KvCheckoutReceipt.css +1 -1
- package/dist/vue/KvCheckoutReceipt.js +120 -199
- package/dist/vue/KvCheckoutReceipt.vue.d.ts +164 -0
- package/dist/vue/KvCheckoutReceipt2.js +85 -0
- package/dist/vue/KvChip.js +12 -29
- package/dist/vue/KvChip.vue.d.ts +22 -0
- package/dist/vue/KvChip2.js +22 -0
- package/dist/vue/KvClassicLoanCard.css +1 -1
- package/dist/vue/KvClassicLoanCard.js +83 -351
- package/dist/vue/KvClassicLoanCard.vue.d.ts +2120 -0
- package/dist/vue/KvClassicLoanCard2.js +281 -0
- package/dist/vue/KvCommentsAdd.css +1 -1
- package/dist/vue/KvCommentsAdd.js +34 -81
- package/dist/vue/KvCommentsAdd.vue.d.ts +296 -0
- package/dist/vue/KvCommentsAdd2.js +57 -0
- package/dist/vue/KvCommentsContainer.js +15 -66
- package/dist/vue/KvCommentsContainer.vue.d.ts +954 -0
- package/dist/vue/KvCommentsContainer2.js +58 -0
- package/dist/vue/KvCommentsHeartButton.css +1 -1
- package/dist/vue/KvCommentsHeartButton.js +12 -51
- package/dist/vue/KvCommentsHeartButton.vue.d.ts +42 -0
- package/dist/vue/KvCommentsHeartButton2.js +44 -0
- package/dist/vue/KvCommentsList.js +9 -51
- package/dist/vue/KvCommentsList.vue.d.ts +619 -0
- package/dist/vue/KvCommentsList2.js +46 -0
- package/dist/vue/KvCommentsListItem.js +62 -186
- package/dist/vue/KvCommentsListItem.vue.d.ts +571 -0
- package/dist/vue/KvCommentsListItem2.js +135 -0
- package/dist/vue/KvCommentsReplyButton.css +1 -1
- package/dist/vue/KvCommentsReplyButton.js +8 -17
- package/dist/vue/KvCommentsReplyButton.vue.d.ts +98 -0
- package/dist/vue/KvCommentsReplyButton2.js +13 -0
- package/dist/vue/KvCompactLoanCard.css +1 -1
- package/dist/vue/KvCompactLoanCard.js +71 -327
- package/dist/vue/KvCompactLoanCard.vue.d.ts +1272 -0
- package/dist/vue/KvCompactLoanCard2.js +269 -0
- package/dist/vue/KvContentfulImg.js +47 -149
- package/dist/vue/KvContentfulImg.vue.d.ts +107 -0
- package/dist/vue/KvContentfulImg2.js +119 -0
- package/dist/vue/KvCountdownTimer.js +8 -28
- package/dist/vue/KvCountdownTimer.vue.d.ts +15 -0
- package/dist/vue/KvCountdownTimer2.js +26 -0
- package/dist/vue/KvDatePicker.js +21 -101
- package/dist/vue/KvDatePicker.vue.d.ts +58 -0
- package/dist/vue/KvDatePicker2.js +86 -0
- package/dist/vue/KvExpandable.js +9 -56
- package/dist/vue/KvExpandable.vue.d.ts +53 -0
- package/dist/vue/KvExpandable2.js +52 -0
- package/dist/vue/KvExpandableQuestion.js +23 -82
- package/dist/vue/KvExpandableQuestion.vue.d.ts +124 -0
- package/dist/vue/KvExpandableQuestion2.js +65 -0
- package/dist/vue/KvFlag.css +1 -1
- package/dist/vue/KvFlag.js +16 -617
- package/dist/vue/KvFlag.vue.d.ts +66 -0
- package/dist/vue/KvFlag2.js +606 -0
- package/dist/vue/KvGrid.js +7 -18
- package/dist/vue/KvGrid.vue.d.ts +14 -0
- package/dist/vue/KvGrid2.js +15 -0
- package/dist/vue/KvIconBag.js +12 -18
- package/dist/vue/KvIconBag.vue.d.ts +14 -0
- package/dist/vue/KvIconBag2.js +11 -0
- package/dist/vue/KvImpactDashboardHeader.vue.d.ts +17 -0
- package/dist/vue/KvImpactVerticalSelector.js +31 -110
- package/dist/vue/KvImpactVerticalSelector.vue.d.ts +278 -0
- package/dist/vue/KvImpactVerticalSelector2.js +85 -0
- package/dist/vue/KvInlineActivityCard.js +15 -44
- package/dist/vue/KvInlineActivityCard.vue.d.ts +71 -0
- package/dist/vue/KvInlineActivityCard2.js +35 -0
- package/dist/vue/KvInlineActivityFeed.css +1 -1
- package/dist/vue/KvInlineActivityFeed.js +11 -23
- package/dist/vue/KvInlineActivityFeed.vue.d.ts +85 -0
- package/dist/vue/KvInlineActivityFeed2.js +17 -0
- package/dist/vue/KvIntroductionLoanCard.css +1 -1
- package/dist/vue/KvIntroductionLoanCard.js +111 -309
- package/dist/vue/KvIntroductionLoanCard.vue.d.ts +617 -0
- package/dist/vue/KvIntroductionLoanCard2.js +209 -0
- package/dist/vue/KvLendAmountButton.js +9 -53
- package/dist/vue/KvLendAmountButton.vue.d.ts +140 -0
- package/dist/vue/KvLendAmountButton2.js +48 -0
- package/dist/vue/KvLendCta.css +1 -1
- package/dist/vue/KvLendCta.js +150 -530
- package/dist/vue/KvLendCta.vue.d.ts +583 -0
- package/dist/vue/KvLendCta2.js +387 -0
- package/dist/vue/KvLightbox.js +37 -148
- package/dist/vue/KvLightbox.vue.d.ts +77 -0
- package/dist/vue/KvLightbox2.js +117 -0
- package/dist/vue/KvLineGraph.js +25 -58
- package/dist/vue/KvLineGraph.vue.d.ts +35 -0
- package/dist/vue/KvLineGraph2.js +39 -0
- package/dist/vue/KvLoadingPlaceholder.vue.d.ts +2 -0
- package/dist/vue/KvLoadingSpinner.js +9 -34
- package/dist/vue/KvLoadingSpinner.vue.d.ts +27 -0
- package/dist/vue/KvLoadingSpinner2.js +29 -0
- package/dist/vue/KvLoanActivities.css +1 -1
- package/dist/vue/KvLoanActivities.js +37 -179
- package/dist/vue/KvLoanActivities.vue.d.ts +853 -0
- package/dist/vue/KvLoanActivities2.js +151 -0
- package/dist/vue/KvLoanBookmark.js +14 -40
- package/dist/vue/KvLoanBookmark.vue.d.ts +32 -0
- package/dist/vue/KvLoanBookmark2.js +32 -0
- package/dist/vue/KvLoanCallouts.css +1 -1
- package/dist/vue/KvLoanCallouts.js +10 -17
- package/dist/vue/KvLoanCallouts.vue.d.ts +18 -0
- package/dist/vue/KvLoanCallouts2.js +12 -0
- package/dist/vue/KvLoanInfoCard.js +20 -19
- package/dist/vue/KvLoanProgressGroup.css +1 -1
- package/dist/vue/KvLoanProgressGroup.js +18 -57
- package/dist/vue/KvLoanProgressGroup.vue.d.ts +108 -0
- package/dist/vue/KvLoanProgressGroup2.js +44 -0
- package/dist/vue/KvLoanTag.js +15 -103
- package/dist/vue/KvLoanTag.vue.d.ts +46 -0
- package/dist/vue/KvLoanTag2.js +94 -0
- package/dist/vue/KvLoanTeamPick.vue.d.ts +2 -0
- package/dist/vue/KvLoanUse.js +12 -100
- package/dist/vue/KvLoanUse.vue.d.ts +120 -0
- package/dist/vue/KvLoanUse2.js +95 -0
- package/dist/vue/KvLogo.vue.d.ts +2 -0
- package/dist/vue/KvMap.js +13 -381
- package/dist/vue/KvMap.vue.d.ts +213 -0
- package/dist/vue/KvMap2.js +376 -0
- package/dist/vue/KvMaterialIcon.js +10 -20
- package/dist/vue/KvMaterialIcon.vue.d.ts +14 -0
- package/dist/vue/KvMaterialIcon2.js +15 -0
- package/dist/vue/KvPageContainer.js +9 -8
- package/dist/vue/KvPageContainer.vue.d.ts +2 -0
- package/dist/vue/KvPageContainer2.js +4 -0
- package/dist/vue/KvPagination.js +38 -138
- package/dist/vue/KvPagination.vue.d.ts +107 -0
- package/dist/vue/KvPagination2.js +105 -0
- package/dist/vue/KvPieChart.css +1 -1
- package/dist/vue/KvPieChart.js +49 -128
- package/dist/vue/KvPieChart.vue.d.ts +47 -0
- package/dist/vue/KvPieChart2.js +85 -0
- package/dist/vue/KvPill.js +9 -19
- package/dist/vue/KvPill.vue.d.ts +23 -0
- package/dist/vue/KvPill2.js +15 -0
- package/dist/vue/KvPopper.js +14 -122
- package/dist/vue/KvPopper.vue.d.ts +80 -0
- package/dist/vue/KvPopper2.js +113 -0
- package/dist/vue/KvProgressBar.js +17 -112
- package/dist/vue/KvProgressBar.vue.d.ts +70 -0
- package/dist/vue/KvProgressBar2.js +101 -0
- package/dist/vue/KvPulsingDot.css +1 -1
- package/dist/vue/KvPulsingDot.js +11 -25
- package/dist/vue/KvPulsingDot.vue.d.ts +23 -0
- package/dist/vue/KvPulsingDot2.js +19 -0
- package/dist/vue/KvRadio.js +23 -106
- package/dist/vue/KvRadio.vue.d.ts +62 -0
- package/dist/vue/KvRadio2.js +89 -0
- package/dist/vue/KvSecondaryNav.css +1 -1
- package/dist/vue/KvSecondaryNav.js +46 -122
- package/dist/vue/KvSecondaryNav.vue.d.ts +117 -0
- package/dist/vue/KvSecondaryNav2.js +82 -0
- package/dist/vue/KvSelect.css +1 -1
- package/dist/vue/KvSelect.js +18 -78
- package/dist/vue/KvSelect.vue.d.ts +58 -0
- package/dist/vue/KvSelect2.js +66 -0
- package/dist/vue/KvSideSheet.js +44 -262
- package/dist/vue/KvSideSheet.vue.d.ts +136 -0
- package/dist/vue/KvSideSheet2.js +224 -0
- package/dist/vue/KvSwitch.js +23 -76
- package/dist/vue/KvSwitch.vue.d.ts +34 -0
- package/dist/vue/KvSwitch2.js +59 -0
- package/dist/vue/KvTab.js +15 -57
- package/dist/vue/KvTab.vue.d.ts +34 -0
- package/dist/vue/KvTab2.js +48 -0
- package/dist/vue/KvTabPanel.js +14 -36
- package/dist/vue/KvTabPanel.vue.d.ts +14 -0
- package/dist/vue/KvTabPanel2.js +28 -0
- package/dist/vue/KvTabs.js +21 -75
- package/dist/vue/KvTabs.vue.d.ts +22 -0
- package/dist/vue/KvTabs2.js +60 -0
- package/dist/vue/KvTextInput.js +28 -148
- package/dist/vue/KvTextInput.vue.d.ts +105 -0
- package/dist/vue/KvTextInput2.js +126 -0
- package/dist/vue/KvTextLink.js +13 -76
- package/dist/vue/KvTextLink.vue.d.ts +64 -0
- package/dist/vue/KvTextLink2.js +68 -0
- package/dist/vue/KvThemeProvider.js +8 -59
- package/dist/vue/KvThemeProvider.vue.d.ts +23 -0
- package/dist/vue/KvThemeProvider2.js +55 -0
- package/dist/vue/KvToast.js +32 -69
- package/dist/vue/KvToast.vue.d.ts +31 -0
- package/dist/vue/KvToast2.js +43 -0
- package/dist/vue/KvTooltip.css +1 -1
- package/dist/vue/KvTooltip.js +27 -123
- package/dist/vue/KvTooltip.vue.d.ts +2 -0
- package/dist/vue/KvTooltip2.js +103 -0
- package/dist/vue/KvTreeMapChart.css +1 -1
- package/dist/vue/KvTreeMapChart.js +28 -156
- package/dist/vue/KvTreeMapChart.vue.d.ts +60 -0
- package/dist/vue/KvTreeMapChart2.js +133 -0
- package/dist/vue/KvUserAvatar.js +28 -110
- package/dist/vue/KvUserAvatar.vue.d.ts +55 -0
- package/dist/vue/KvUserAvatar2.js +88 -0
- package/dist/vue/KvUtilityMenu.js +19 -95
- package/dist/vue/KvUtilityMenu.vue.d.ts +104 -0
- package/dist/vue/KvUtilityMenu2.js +81 -0
- package/dist/vue/KvVerticalCarousel.js +40 -137
- package/dist/vue/KvVerticalCarousel.vue.d.ts +90 -0
- package/dist/vue/KvVerticalCarousel2.js +103 -0
- package/dist/vue/KvVotingCard.css +1 -1
- package/dist/vue/KvVotingCard.js +31 -88
- package/dist/vue/KvVotingCard.vue.d.ts +249 -0
- package/dist/vue/KvVotingCard2.js +63 -0
- package/dist/vue/KvVotingCardV2.js +35 -90
- package/dist/vue/KvVotingCardV2.vue.d.ts +308 -0
- package/dist/vue/KvVotingCardV22.js +61 -0
- package/dist/vue/KvWideLoanCard.css +1 -1
- package/dist/vue/KvWideLoanCard.js +66 -274
- package/dist/vue/KvWideLoanCard.vue.d.ts +1191 -0
- package/dist/vue/KvWideLoanCard2.js +220 -0
- package/dist/vue/KvWwwHeader/KvHeaderAboutMenu.js +34 -38
- package/dist/vue/KvWwwHeader/KvHeaderAboutMenu.vue.d.ts +20 -0
- package/dist/vue/KvWwwHeader/KvHeaderAboutMenu2.js +9 -0
- package/dist/vue/KvWwwHeader/KvHeaderDropdownLink.js +20 -83
- package/dist/vue/KvWwwHeader/KvHeaderDropdownLink.vue.d.ts +91 -0
- package/dist/vue/KvWwwHeader/KvHeaderDropdownLink2.js +69 -0
- package/dist/vue/KvWwwHeader/KvHeaderLinkBar.css +1 -1
- package/dist/vue/KvWwwHeader/KvHeaderLinkBar.js +77 -248
- package/dist/vue/KvWwwHeader/KvHeaderLinkBar.vue.d.ts +1071 -0
- package/dist/vue/KvWwwHeader/KvHeaderLinkBar2.js +178 -0
- package/dist/vue/KvWwwHeader/KvHeaderLogo.js +8 -12
- package/dist/vue/KvWwwHeader/KvHeaderLogo.vue.d.ts +4 -0
- package/dist/vue/KvWwwHeader/KvHeaderLogo2.js +9 -0
- package/dist/vue/KvWwwHeader/KvHeaderMenuLink.vue.d.ts +17 -0
- package/dist/vue/KvWwwHeader/KvHeaderMobileMenu.css +1 -1
- package/dist/vue/KvWwwHeader/KvHeaderMobileMenu.js +37 -91
- package/dist/vue/KvWwwHeader/KvHeaderMobileMenu.vue.d.ts +162 -0
- package/dist/vue/KvWwwHeader/KvHeaderMobileMenu2.js +59 -0
- package/dist/vue/KvWwwHeader/KvHeaderMyKivaMenu.js +36 -58
- package/dist/vue/KvWwwHeader/KvHeaderMyKivaMenu.vue.d.ts +59 -0
- package/dist/vue/KvWwwHeader/KvHeaderMyKivaMenu2.js +27 -0
- package/dist/vue/KvWwwHeader/KvHeaderTakeActionMenu.js +20 -24
- package/dist/vue/KvWwwHeader/KvHeaderTakeActionMenu.vue.d.ts +20 -0
- package/dist/vue/KvWwwHeader/KvHeaderTakeActionMenu2.js +9 -0
- package/dist/vue/KvWwwHeader/LendMenu/KvLendListMenu.css +1 -1
- package/dist/vue/KvWwwHeader/LendMenu/KvLendListMenu.js +105 -181
- package/dist/vue/KvWwwHeader/LendMenu/KvLendListMenu.vue.d.ts +319 -0
- package/dist/vue/KvWwwHeader/LendMenu/KvLendListMenu2.js +82 -0
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMegaMenu.css +1 -1
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMegaMenu.js +93 -173
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMegaMenu.vue.d.ts +166 -0
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMegaMenu2.js +86 -0
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenu.js +17 -157
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenu.vue.d.ts +506 -0
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenu2.js +145 -0
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenuCountryList.css +1 -1
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenuCountryList.js +11 -18
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenuCountryList.vue.d.ts +20 -0
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenuCountryList2.js +12 -0
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenuSearchList.js +10 -16
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenuSearchList.vue.d.ts +20 -0
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenuSearchList2.js +11 -0
- package/dist/vue/KvWwwHeader.css +1 -1
- package/dist/vue/KvWwwHeader.js +35 -148
- package/dist/vue/KvWwwHeader.vue.d.ts +4430 -0
- package/dist/vue/KvWwwHeader2.js +119 -0
- package/dist/vue/index.d.ts +86 -0
- package/package.json +35 -33
- package/tsconfig.json +32 -0
- package/vite.config.ts +84 -0
package/dist/vue/KvCardFrame.js
CHANGED
|
@@ -1,76 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
},
|
|
9
|
-
props: {
|
|
10
|
-
allowOverflow: {
|
|
11
|
-
type: Boolean,
|
|
12
|
-
default: !0
|
|
13
|
-
},
|
|
14
|
-
bgColorClass: {
|
|
15
|
-
type: String,
|
|
16
|
-
default: "tw-bg-primary"
|
|
17
|
-
},
|
|
18
|
-
borderClass: {
|
|
19
|
-
type: String,
|
|
20
|
-
default: ""
|
|
21
|
-
},
|
|
22
|
-
radiusClass: {
|
|
23
|
-
type: String,
|
|
24
|
-
default: "tw-rounded"
|
|
25
|
-
},
|
|
26
|
-
shadowClass: {
|
|
27
|
-
type: String,
|
|
28
|
-
default: "tw-shadow-lg"
|
|
29
|
-
},
|
|
30
|
-
theme: {
|
|
31
|
-
type: String,
|
|
32
|
-
default: "default",
|
|
33
|
-
validator(t) {
|
|
34
|
-
return [
|
|
35
|
-
"default",
|
|
36
|
-
"greenLight",
|
|
37
|
-
"greenDark",
|
|
38
|
-
"marigoldLight",
|
|
39
|
-
"stoneLight",
|
|
40
|
-
"stoneDark"
|
|
41
|
-
].includes(t);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
setup(t) {
|
|
46
|
-
return { themeStyle: n(() => {
|
|
47
|
-
switch (t.theme) {
|
|
48
|
-
case "default":
|
|
49
|
-
return a;
|
|
50
|
-
case "greenDark":
|
|
51
|
-
return w;
|
|
52
|
-
case "greenLight":
|
|
53
|
-
return p;
|
|
54
|
-
case "marigoldLight":
|
|
55
|
-
return v;
|
|
56
|
-
case "stoneLight":
|
|
57
|
-
return g;
|
|
58
|
-
case "stoneDark":
|
|
59
|
-
return f;
|
|
60
|
-
default:
|
|
61
|
-
return a;
|
|
62
|
-
}
|
|
63
|
-
}) };
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
function y(t, o, e, s, L, S) {
|
|
67
|
-
const l = d("kv-theme-provider");
|
|
68
|
-
return i(), m(l, {
|
|
69
|
-
theme: s.themeStyle,
|
|
1
|
+
import l from "./KvCardFrame2.js";
|
|
2
|
+
import { resolveComponent as s, openBlock as d, createBlock as m, normalizeClass as r, withCtx as c, createElementVNode as n, renderSlot as f } from "vue";
|
|
3
|
+
import i from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
function v(t, _, e, o, h, C) {
|
|
5
|
+
const a = s("kv-theme-provider");
|
|
6
|
+
return d(), m(a, {
|
|
7
|
+
theme: o.themeStyle,
|
|
70
8
|
class: r(["kv-card-frame-theme-provider", e.radiusClass])
|
|
71
9
|
}, {
|
|
72
|
-
default:
|
|
73
|
-
|
|
10
|
+
default: c(() => [
|
|
11
|
+
n("div", {
|
|
74
12
|
class: r([
|
|
75
13
|
"kv-card-frame tw-h-full",
|
|
76
14
|
e.bgColorClass,
|
|
@@ -80,13 +18,13 @@ function y(t, o, e, s, L, S) {
|
|
|
80
18
|
{ "tw-overflow-hidden": !e.allowOverflow }
|
|
81
19
|
])
|
|
82
20
|
}, [
|
|
83
|
-
|
|
21
|
+
f(t.$slots, "default")
|
|
84
22
|
], 2)
|
|
85
23
|
]),
|
|
86
24
|
_: 3
|
|
87
25
|
}, 8, ["theme", "class"]);
|
|
88
26
|
}
|
|
89
|
-
const
|
|
27
|
+
const x = /* @__PURE__ */ i(l, [["render", v]]);
|
|
90
28
|
export {
|
|
91
|
-
|
|
29
|
+
x as default
|
|
92
30
|
};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
allowOverflow: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
bgColorClass: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
borderClass: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
radiusClass: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
shadowClass: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
theme: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: string;
|
|
25
|
+
validator(value: string): boolean;
|
|
26
|
+
};
|
|
27
|
+
}>, {
|
|
28
|
+
themeStyle: import('vue').ComputedRef<any>;
|
|
29
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
30
|
+
allowOverflow: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
34
|
+
bgColorClass: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
borderClass: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
radiusClass: {
|
|
43
|
+
type: StringConstructor;
|
|
44
|
+
default: string;
|
|
45
|
+
};
|
|
46
|
+
shadowClass: {
|
|
47
|
+
type: StringConstructor;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
theme: {
|
|
51
|
+
type: StringConstructor;
|
|
52
|
+
default: string;
|
|
53
|
+
validator(value: string): boolean;
|
|
54
|
+
};
|
|
55
|
+
}>> & Readonly<{}>, {
|
|
56
|
+
theme: string;
|
|
57
|
+
allowOverflow: boolean;
|
|
58
|
+
bgColorClass: string;
|
|
59
|
+
borderClass: string;
|
|
60
|
+
radiusClass: string;
|
|
61
|
+
shadowClass: string;
|
|
62
|
+
}, {}, {
|
|
63
|
+
KvThemeProvider: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
64
|
+
tag: {
|
|
65
|
+
type: StringConstructor;
|
|
66
|
+
default: string;
|
|
67
|
+
};
|
|
68
|
+
theme: {
|
|
69
|
+
type: ObjectConstructor;
|
|
70
|
+
default: any;
|
|
71
|
+
};
|
|
72
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
73
|
+
tag: {
|
|
74
|
+
type: StringConstructor;
|
|
75
|
+
default: string;
|
|
76
|
+
};
|
|
77
|
+
theme: {
|
|
78
|
+
type: ObjectConstructor;
|
|
79
|
+
default: any;
|
|
80
|
+
};
|
|
81
|
+
}>> & Readonly<{}>, {
|
|
82
|
+
tag: string;
|
|
83
|
+
theme: Record<string, any>;
|
|
84
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
85
|
+
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
86
|
+
export default _default;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { computed as r } from "vue";
|
|
2
|
+
import { defaultTheme as t, stoneDarkTheme as a, stoneLightTheme as n, marigoldLightTheme as o, greenLightTheme as s, greenDarkTheme as l } from "@kiva/kv-tokens";
|
|
3
|
+
import i from "./KvThemeProvider.js";
|
|
4
|
+
const h = {
|
|
5
|
+
components: {
|
|
6
|
+
KvThemeProvider: i
|
|
7
|
+
},
|
|
8
|
+
props: {
|
|
9
|
+
allowOverflow: {
|
|
10
|
+
type: Boolean,
|
|
11
|
+
default: !0
|
|
12
|
+
},
|
|
13
|
+
bgColorClass: {
|
|
14
|
+
type: String,
|
|
15
|
+
default: "tw-bg-primary"
|
|
16
|
+
},
|
|
17
|
+
borderClass: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: ""
|
|
20
|
+
},
|
|
21
|
+
radiusClass: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: "tw-rounded"
|
|
24
|
+
},
|
|
25
|
+
shadowClass: {
|
|
26
|
+
type: String,
|
|
27
|
+
default: "tw-shadow-lg"
|
|
28
|
+
},
|
|
29
|
+
theme: {
|
|
30
|
+
type: String,
|
|
31
|
+
default: "default",
|
|
32
|
+
validator(e) {
|
|
33
|
+
return [
|
|
34
|
+
"default",
|
|
35
|
+
"greenLight",
|
|
36
|
+
"greenDark",
|
|
37
|
+
"marigoldLight",
|
|
38
|
+
"stoneLight",
|
|
39
|
+
"stoneDark"
|
|
40
|
+
].includes(e);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
setup(e) {
|
|
45
|
+
return { themeStyle: r(() => {
|
|
46
|
+
switch (e.theme) {
|
|
47
|
+
case "default":
|
|
48
|
+
return t;
|
|
49
|
+
case "greenDark":
|
|
50
|
+
return l;
|
|
51
|
+
case "greenLight":
|
|
52
|
+
return s;
|
|
53
|
+
case "marigoldLight":
|
|
54
|
+
return o;
|
|
55
|
+
case "stoneLight":
|
|
56
|
+
return n;
|
|
57
|
+
case "stoneDark":
|
|
58
|
+
return a;
|
|
59
|
+
default:
|
|
60
|
+
return t;
|
|
61
|
+
}
|
|
62
|
+
}) };
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
export {
|
|
66
|
+
h as default
|
|
67
|
+
};
|
package/dist/vue/KvCarousel.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@media (min-width: 64rem){.aside-controls-content[data-v-
|
|
1
|
+
@media (min-width: 64rem){.aside-controls-content[data-v-c7500299]{width:82%}}.circle-slide[data-v-c7500299]{width:auto}.circle-slide.is-selected[data-v-c7500299]{opacity:1;transform:scale(1.2);max-width:300px}.circle-slide[data-v-c7500299]:not(.is-selected){opacity:.5;transform:scale(.7)}.circle-carousel[data-v-c7500299]{margin:0 auto}
|
package/dist/vue/KvCarousel.js
CHANGED
|
@@ -1,265 +1,128 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import U from "./KvMaterialIcon.js";
|
|
4
|
-
import { resolveComponent as V, openBlock as r, createElementBlock as n, normalizeClass as d, createElementVNode as i, Fragment as u, renderList as g, normalizeStyle as E, renderSlot as M, createVNode as c, toDisplayString as h, createCommentVNode as f } from "vue";
|
|
1
|
+
import g from "./KvCarousel2.js";
|
|
2
|
+
import { resolveComponent as h, openBlock as o, createElementBlock as n, normalizeClass as a, createElementVNode as i, Fragment as c, renderList as m, normalizeStyle as y, renderSlot as x, createVNode as s, toDisplayString as u, createCommentVNode as b } from "vue";
|
|
5
3
|
import "./KvCarousel.css";
|
|
6
|
-
import
|
|
7
|
-
const
|
|
8
|
-
name: "KvCarousel",
|
|
9
|
-
components: {
|
|
10
|
-
KvMaterialIcon: U
|
|
11
|
-
},
|
|
12
|
-
props: {
|
|
13
|
-
/**
|
|
14
|
-
* Should multiple slides be visible at a time.
|
|
15
|
-
* If true, a width must be set for each individual
|
|
16
|
-
* carousel slide or slideMaxWidth must
|
|
17
|
-
* be used.
|
|
18
|
-
* */
|
|
19
|
-
multipleSlidesVisible: {
|
|
20
|
-
type: Boolean,
|
|
21
|
-
default: !1
|
|
22
|
-
},
|
|
23
|
-
/**
|
|
24
|
-
* Options for the embla carousel - // https://davidcetinkaya.github.io/embla-carousel/api#options
|
|
25
|
-
* */
|
|
26
|
-
emblaOptions: {
|
|
27
|
-
type: Object,
|
|
28
|
-
default() {
|
|
29
|
-
return {};
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
/**
|
|
33
|
-
* Options for the autoplay plugin - // https://www.embla-carousel.com/plugins/autoplay/#options
|
|
34
|
-
* */
|
|
35
|
-
autoplayOptions: {
|
|
36
|
-
type: Object,
|
|
37
|
-
default() {
|
|
38
|
-
return {};
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
/**
|
|
42
|
-
* Enable fade plugin - // https://www.embla-carousel.com/plugins/fade/
|
|
43
|
-
* */
|
|
44
|
-
fadeEnabled: {
|
|
45
|
-
type: Boolean,
|
|
46
|
-
default: !1
|
|
47
|
-
},
|
|
48
|
-
/**
|
|
49
|
-
* The type of logic to implement when deciding how many slides
|
|
50
|
-
* to scroll when pressing the next/prev button
|
|
51
|
-
* `visible, auto`
|
|
52
|
-
* */
|
|
53
|
-
slidesToScroll: {
|
|
54
|
-
type: String,
|
|
55
|
-
default: "auto",
|
|
56
|
-
validator: (w) => ["visible", "auto"].indexOf(w) !== -1
|
|
57
|
-
},
|
|
58
|
-
/**
|
|
59
|
-
* CSS value and unit to set the max width on responsive slides.
|
|
60
|
-
* Slide will be responsive full width until the max width value
|
|
61
|
-
* is reached - example value: '32.5rem'
|
|
62
|
-
* */
|
|
63
|
-
slideMaxWidth: {
|
|
64
|
-
type: String,
|
|
65
|
-
default: ""
|
|
66
|
-
},
|
|
67
|
-
/**
|
|
68
|
-
* Aside controls version of the carousel
|
|
69
|
-
* */
|
|
70
|
-
asideControls: {
|
|
71
|
-
type: Boolean,
|
|
72
|
-
default: !1
|
|
73
|
-
},
|
|
74
|
-
/**
|
|
75
|
-
* Dotted controls version of the carousel
|
|
76
|
-
* */
|
|
77
|
-
isDotted: {
|
|
78
|
-
type: Boolean,
|
|
79
|
-
default: !1
|
|
80
|
-
},
|
|
81
|
-
/**
|
|
82
|
-
* Enables carousel slides to have a circle effect
|
|
83
|
-
* */
|
|
84
|
-
inCircle: {
|
|
85
|
-
type: Boolean,
|
|
86
|
-
default: !1
|
|
87
|
-
},
|
|
88
|
-
/**
|
|
89
|
-
* Position carousel controls in the top right corner
|
|
90
|
-
* */
|
|
91
|
-
controlsTopRight: {
|
|
92
|
-
type: Boolean,
|
|
93
|
-
default: !1
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
emits: [
|
|
97
|
-
"change",
|
|
98
|
-
"interact-carousel"
|
|
99
|
-
],
|
|
100
|
-
setup(w, { emit: l, slots: e }) {
|
|
101
|
-
const {
|
|
102
|
-
componentSlotKeys: t,
|
|
103
|
-
currentIndex: m,
|
|
104
|
-
embla: b,
|
|
105
|
-
goToSlide: s,
|
|
106
|
-
handleUserInteraction: o,
|
|
107
|
-
isAriaHidden: a,
|
|
108
|
-
isAutoplaying: y,
|
|
109
|
-
nextIndex: x,
|
|
110
|
-
previousIndex: v,
|
|
111
|
-
reInit: C,
|
|
112
|
-
reInitVisible: I,
|
|
113
|
-
rootEl: k,
|
|
114
|
-
slideIndicatorCount: S,
|
|
115
|
-
slideIndicatorListLength: _,
|
|
116
|
-
slides: R,
|
|
117
|
-
toggleAutoPlay: T
|
|
118
|
-
} = K(w, { emit: l, slots: e });
|
|
119
|
-
return {
|
|
120
|
-
componentSlotKeys: t,
|
|
121
|
-
currentIndex: m,
|
|
122
|
-
embla: b,
|
|
123
|
-
goToSlide: s,
|
|
124
|
-
handleUserInteraction: o,
|
|
125
|
-
isAriaHidden: a,
|
|
126
|
-
isAutoplaying: y,
|
|
127
|
-
mdiArrowLeft: j,
|
|
128
|
-
mdiArrowRight: A,
|
|
129
|
-
mdiChevronLeft: B,
|
|
130
|
-
mdiChevronRight: L,
|
|
131
|
-
nextIndex: x,
|
|
132
|
-
previousIndex: v,
|
|
133
|
-
reInit: C,
|
|
134
|
-
reInitVisible: I,
|
|
135
|
-
rootEl: k,
|
|
136
|
-
slideIndicatorCount: S,
|
|
137
|
-
slideIndicatorListLength: _,
|
|
138
|
-
slides: R,
|
|
139
|
-
toggleAutoPlay: T
|
|
140
|
-
};
|
|
141
|
-
}
|
|
142
|
-
}, W = ["aria-label", "aria-current", "aria-hidden", "tab-index"], D = ["disabled"], H = ["aria-label"], P = ["disabled"], z = {
|
|
4
|
+
import v from "../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const k = ["aria-label", "aria-current", "aria-hidden", "tab-index"], C = ["disabled"], _ = ["aria-label"], I = ["disabled"], S = {
|
|
143
6
|
key: 1,
|
|
144
7
|
class: "kv-carousel__controls tw-flex tw-justify-center tw-items-center tw-gap-1.5 tw-mt-4 tw-w-full"
|
|
145
|
-
},
|
|
8
|
+
}, R = ["onClick"], j = {
|
|
146
9
|
class: "tw-hidden lg:tw-flex tw-absolute tw-h-full tw-top-0 tw-items-center",
|
|
147
10
|
style: { background: "linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%)", width: "8%" }
|
|
148
|
-
},
|
|
11
|
+
}, T = ["disabled"], A = {
|
|
149
12
|
class: "tw-hidden lg:tw-flex tw-absolute tw-h-full tw-top-0 tw-right-0 tw-items-center tw-justify-end tw-w-16",
|
|
150
13
|
style: { background: "linear-gradient(270deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%)", width: "8%" }
|
|
151
|
-
},
|
|
152
|
-
function
|
|
153
|
-
const
|
|
154
|
-
return
|
|
14
|
+
}, N = ["disabled"];
|
|
15
|
+
function L(f, l, e, t, U, V) {
|
|
16
|
+
const d = h("kv-material-icon");
|
|
17
|
+
return o(), n("section", {
|
|
155
18
|
ref: "rootEl",
|
|
156
|
-
class:
|
|
19
|
+
class: a(["kv-carousel tw-overflow-hidden tw-w-full", { "lg:tw-relative": e.asideControls, "tw-relative tw-pt-6": e.controlsTopRight }]),
|
|
157
20
|
"aria-label": "carousel"
|
|
158
21
|
}, [
|
|
159
22
|
i("div", {
|
|
160
|
-
class:
|
|
23
|
+
class: a(["tw-flex tw-gap-x-4", {
|
|
161
24
|
"tw-mx-auto aside-controls-content": e.asideControls,
|
|
162
25
|
"circle-carousel": e.inCircle
|
|
163
26
|
}])
|
|
164
27
|
}, [
|
|
165
|
-
(
|
|
166
|
-
key:
|
|
167
|
-
class:
|
|
28
|
+
(o(!0), n(c, null, m(t.componentSlotKeys, (r, w) => (o(), n("div", {
|
|
29
|
+
key: w,
|
|
30
|
+
class: a(["tw-flex-none tw-relative", { "tw-w-full": !e.multipleSlidesVisible || e.slideMaxWidth, "circle-slide": e.inCircle }]),
|
|
168
31
|
role: "group",
|
|
169
|
-
"aria-label": `slide ${
|
|
170
|
-
"aria-current": t.currentIndex ===
|
|
171
|
-
"aria-hidden": t.isAriaHidden(
|
|
172
|
-
"tab-index": t.isAriaHidden(
|
|
173
|
-
style:
|
|
32
|
+
"aria-label": `slide ${w + 1} of ${t.componentSlotKeys.length}`,
|
|
33
|
+
"aria-current": t.currentIndex === w ? "true" : "false",
|
|
34
|
+
"aria-hidden": t.isAriaHidden(w) ? "true" : "false",
|
|
35
|
+
"tab-index": t.isAriaHidden(w) ? "-1" : !1,
|
|
36
|
+
style: y(e.slideMaxWidth ? `max-width:${e.slideMaxWidth}` : "")
|
|
174
37
|
}, [
|
|
175
|
-
|
|
176
|
-
], 14,
|
|
38
|
+
x(f.$slots, r, {}, void 0, !0)
|
|
39
|
+
], 14, k))), 128))
|
|
177
40
|
], 2),
|
|
178
|
-
t.slideIndicatorCount > 1 && !e.isDotted ? (
|
|
41
|
+
t.slideIndicatorCount > 1 && !e.isDotted ? (o(), n("div", {
|
|
179
42
|
key: 0,
|
|
180
|
-
class:
|
|
43
|
+
class: a(["kv-carousel__controls tw-flex tw-justify-between tw-items-center tw-w-full", {
|
|
181
44
|
"lg:tw-hidden": e.asideControls,
|
|
182
45
|
"tw-mt-4 md:tw-justify-center": !e.controlsTopRight,
|
|
183
46
|
"md:tw-justify-end tw-absolute tw-top-0 tw-right-0 tw-w-auto tw-gap-1.5 tw-pr-1": e.controlsTopRight
|
|
184
47
|
}])
|
|
185
48
|
}, [
|
|
186
49
|
i("button", {
|
|
187
|
-
class:
|
|
50
|
+
class: a(["tw-text-primary tw-rounded-full tw-border-primary tw-flex tw-items-center tw-justify-center disabled:tw-opacity-low disabled:tw-cursor-default", {
|
|
188
51
|
"tw-border-2 tw-h-4 tw-w-4": !e.controlsTopRight,
|
|
189
52
|
"tw-bg-white tw-shadow-lg tw-h-3.5 tw-w-3.5": e.controlsTopRight
|
|
190
53
|
}]),
|
|
191
54
|
disabled: t.embla && !t.embla.canScrollPrev(),
|
|
192
|
-
onClick: l[0] || (l[0] = (
|
|
55
|
+
onClick: l[0] || (l[0] = (r) => t.handleUserInteraction(t.previousIndex, "click-left-arrow"))
|
|
193
56
|
}, [
|
|
194
|
-
|
|
57
|
+
s(d, {
|
|
195
58
|
class: "tw-w-4",
|
|
196
59
|
icon: e.asideControls ? t.mdiArrowLeft : t.mdiChevronLeft
|
|
197
60
|
}, null, 8, ["icon"]),
|
|
198
61
|
l[4] || (l[4] = i("span", { class: "tw-sr-only" }, "Show previous slide", -1))
|
|
199
|
-
], 10,
|
|
200
|
-
e.controlsTopRight ?
|
|
62
|
+
], 10, C),
|
|
63
|
+
e.controlsTopRight ? b("", !0) : (o(), n("div", {
|
|
201
64
|
key: 0,
|
|
202
65
|
"aria-label": `screen ${t.currentIndex + 1} of ${t.slideIndicatorCount}`,
|
|
203
66
|
class: "tw-mx-2 md:tw-mx-3 lg:tw-mx-4 tw-invisible md:tw-visible"
|
|
204
|
-
},
|
|
67
|
+
}, u(t.currentIndex + 1) + "/" + u(t.slideIndicatorCount), 9, _)),
|
|
205
68
|
i("button", {
|
|
206
|
-
class:
|
|
69
|
+
class: a(["tw-text-primary tw-rounded-full tw-border-primary tw-flex tw-items-center tw-justify-center disabled:tw-opacity-low disabled:tw-cursor-default", {
|
|
207
70
|
"tw-border-2 tw-h-4 tw-w-4": !e.controlsTopRight,
|
|
208
71
|
"tw-bg-white tw-shadow-lg tw-h-3.5 tw-w-3.5": e.controlsTopRight
|
|
209
72
|
}]),
|
|
210
73
|
disabled: t.embla && !t.embla.canScrollNext(),
|
|
211
|
-
onClick: l[1] || (l[1] = (
|
|
74
|
+
onClick: l[1] || (l[1] = (r) => t.handleUserInteraction(t.nextIndex, "click-right-arrow"))
|
|
212
75
|
}, [
|
|
213
|
-
|
|
76
|
+
s(d, {
|
|
214
77
|
class: "tw-w-4",
|
|
215
78
|
icon: e.asideControls ? t.mdiArrowRight : t.mdiChevronRight
|
|
216
79
|
}, null, 8, ["icon"]),
|
|
217
80
|
l[5] || (l[5] = i("span", { class: "tw-sr-only" }, "Show next slide", -1))
|
|
218
|
-
], 10,
|
|
219
|
-
], 2)) : t.slideIndicatorCount > 1 ? (
|
|
220
|
-
(
|
|
221
|
-
key:
|
|
222
|
-
onClick: (
|
|
81
|
+
], 10, I)
|
|
82
|
+
], 2)) : t.slideIndicatorCount > 1 ? (o(), n("div", S, [
|
|
83
|
+
(o(!0), n(c, null, m(t.slideIndicatorCount, (r) => (o(), n("button", {
|
|
84
|
+
key: r,
|
|
85
|
+
onClick: (w) => t.goToSlide(r - 1)
|
|
223
86
|
}, [
|
|
224
87
|
i("div", {
|
|
225
|
-
class:
|
|
226
|
-
{ "tw-bg-black tw-border-black tw-h-1.5 tw-w-1.5": t.currentIndex ===
|
|
227
|
-
{ "tw-bg-tertiary tw-border-tertiary tw-h-1 tw-w-1": t.currentIndex !==
|
|
88
|
+
class: a(["tw-rounded-full tw-border tw-transition tw-duration-500 tw-ease-in-out", [
|
|
89
|
+
{ "tw-bg-black tw-border-black tw-h-1.5 tw-w-1.5": t.currentIndex === r - 1 },
|
|
90
|
+
{ "tw-bg-tertiary tw-border-tertiary tw-h-1 tw-w-1": t.currentIndex !== r - 1 }
|
|
228
91
|
]])
|
|
229
92
|
}, null, 2)
|
|
230
|
-
], 8,
|
|
231
|
-
])) :
|
|
232
|
-
e.asideControls ? (
|
|
233
|
-
i("div",
|
|
93
|
+
], 8, R))), 128))
|
|
94
|
+
])) : b("", !0),
|
|
95
|
+
e.asideControls ? (o(), n(c, { key: 2 }, [
|
|
96
|
+
i("div", j, [
|
|
234
97
|
i("button", {
|
|
235
98
|
class: "tw-text-primary tw-bg-gray-100 tw-rounded-full tw-h-6 tw-w-6 tw-ml-3 tw-flex tw-items-center tw-justify-center disabled:tw-opacity-low disabled:tw-cursor-default",
|
|
236
99
|
disabled: t.embla && !t.embla.canScrollPrev(),
|
|
237
|
-
onClick: l[2] || (l[2] = (
|
|
100
|
+
onClick: l[2] || (l[2] = (r) => t.handleUserInteraction(t.previousIndex, "click-left-arrow"))
|
|
238
101
|
}, [
|
|
239
|
-
|
|
102
|
+
s(d, {
|
|
240
103
|
class: "tw-w-4",
|
|
241
104
|
icon: t.mdiArrowLeft
|
|
242
105
|
}, null, 8, ["icon"]),
|
|
243
106
|
l[6] || (l[6] = i("span", { class: "tw-sr-only" }, "Show previous slide", -1))
|
|
244
|
-
], 8,
|
|
107
|
+
], 8, T)
|
|
245
108
|
]),
|
|
246
|
-
i("div",
|
|
109
|
+
i("div", A, [
|
|
247
110
|
i("button", {
|
|
248
111
|
class: "tw-text-primary tw-bg-gray-100 tw-rounded-full tw-h-6 tw-w-6 tw-mr-3 tw-flex tw-items-center tw-justify-center disabled:tw-opacity-low disabled:tw-cursor-default",
|
|
249
112
|
disabled: t.embla && !t.embla.canScrollNext(),
|
|
250
|
-
onClick: l[3] || (l[3] = (
|
|
113
|
+
onClick: l[3] || (l[3] = (r) => t.handleUserInteraction(t.nextIndex, "click-right-arrow"))
|
|
251
114
|
}, [
|
|
252
|
-
|
|
115
|
+
s(d, {
|
|
253
116
|
class: "tw-w-4",
|
|
254
117
|
icon: t.mdiArrowRight
|
|
255
118
|
}, null, 8, ["icon"]),
|
|
256
119
|
l[7] || (l[7] = i("span", { class: "tw-sr-only" }, "Show next slide", -1))
|
|
257
|
-
], 8,
|
|
120
|
+
], 8, N)
|
|
258
121
|
])
|
|
259
|
-
], 64)) :
|
|
122
|
+
], 64)) : b("", !0)
|
|
260
123
|
], 2);
|
|
261
124
|
}
|
|
262
|
-
const
|
|
125
|
+
const z = /* @__PURE__ */ v(g, [["render", L], ["__scopeId", "data-v-c7500299"]]);
|
|
263
126
|
export {
|
|
264
|
-
|
|
127
|
+
z as default
|
|
265
128
|
};
|