@kiva/kv-components 10.6.0 → 10.6.1
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/dist/index.js +20 -20
- package/dist/vue/KvAccordionItem.js +1 -1
- package/dist/vue/KvActivityRow.js +1 -1
- package/dist/vue/KvAtbModal.js +1 -1
- package/dist/vue/KvBorrowerImage.js +1 -1
- package/dist/vue/KvButton.js +1 -1
- package/dist/vue/KvCardFrame.js +1 -1
- package/dist/vue/KvCarousel.js +1 -1
- package/dist/vue/KvCartModal.js +1 -1
- package/dist/vue/KvCartPill.js +1 -1
- package/dist/vue/KvCheckbox.js +1 -1
- package/dist/vue/KvCheckoutReceipt.js +1 -1
- package/dist/vue/KvChip.js +1 -1
- package/dist/vue/KvClassicLoanCard.js +252 -295
- package/dist/vue/KvClassicLoanCard.script.js +298 -0
- package/dist/vue/KvCommentsAdd.js +2 -2
- package/dist/vue/KvCommentsContainer.js +2 -2
- package/dist/vue/KvCommentsHeartButton.js +1 -1
- package/dist/vue/KvCommentsList.js +1 -1
- package/dist/vue/KvCommentsListItem.js +2 -2
- package/dist/vue/KvCommentsReplyButton.js +1 -1
- package/dist/vue/KvCompactLoanCard.js +416 -380
- package/dist/vue/KvCompactLoanCard.script.js +382 -0
- package/dist/vue/KvContentfulImg.js +1 -1
- package/dist/vue/KvCountdownTimer.js +1 -1
- package/dist/vue/KvDatePicker.js +1 -1
- package/dist/vue/KvExpandable.js +1 -1
- package/dist/vue/KvExpandableQuestion.js +1 -1
- package/dist/vue/KvFlag.js +1 -1
- package/dist/vue/KvFormAssemblyForm.js +2 -95
- package/dist/vue/KvFormAssemblyForm.script.js +97 -0
- package/dist/vue/KvGrid.js +1 -1
- package/dist/vue/KvIconBag.js +1 -1
- package/dist/vue/KvIconButton.js +2 -116
- package/dist/vue/KvIconButton.script.js +118 -0
- package/dist/vue/KvImageUpload.js +1 -1
- package/dist/vue/KvImpactVerticalSelector.js +1 -1
- package/dist/vue/KvInlineActivityCard.js +1 -1
- package/dist/vue/KvInlineActivityFeed.js +1 -1
- package/dist/vue/KvIntroductionLoanCard.js +247 -220
- package/dist/vue/KvIntroductionLoanCard.script.js +223 -0
- package/dist/vue/KvLendAmountButton.js +1 -1
- package/dist/vue/KvLendCta.js +355 -389
- package/dist/vue/KvLendCta.script.js +391 -0
- package/dist/vue/KvLightbox.js +1 -1
- package/dist/vue/KvLineGraph.js +1 -1
- package/dist/vue/KvLoadingSpinner.js +1 -1
- package/dist/vue/KvLoanActivities.js +75 -149
- package/dist/vue/KvLoanActivities.script.js +151 -0
- package/dist/vue/KvLoanBookmark.js +22 -33
- package/dist/vue/KvLoanBookmark.script.js +35 -0
- package/dist/vue/KvLoanCallouts.js +1 -1
- package/dist/vue/KvLoanInfoCard.js +2 -2
- package/dist/vue/KvLoanProgressGroup.js +1 -1
- package/dist/vue/KvLoanTag.js +44 -123
- package/dist/vue/KvLoanTag.script.js +125 -0
- package/dist/vue/KvLoanUse.js +14 -111
- package/dist/vue/KvLoanUse.script.js +113 -0
- package/dist/vue/KvMap.js +1 -1
- package/dist/vue/KvMaterialIcon.js +1 -1
- package/dist/vue/KvPageContainer.js +1 -1
- package/dist/vue/KvPagination.js +1 -1
- package/dist/vue/KvPieChart.js +1 -1
- package/dist/vue/KvPieChartV2.js +1 -1
- package/dist/vue/KvPill.js +1 -1
- package/dist/vue/KvPopper.js +1 -1
- package/dist/vue/KvProgressBar.js +1 -1
- package/dist/vue/KvProgressCircle.js +1 -1
- package/dist/vue/KvPulsingDot.js +1 -1
- package/dist/vue/KvRadio.js +1 -1
- package/dist/vue/KvSecondaryNav.js +1 -1
- package/dist/vue/KvSelect.js +1 -1
- package/dist/vue/KvSideSheet.js +1 -1
- package/dist/vue/KvSimpleMap.js +1 -1
- package/dist/vue/KvStackedBarGraph.js +1 -1
- package/dist/vue/KvSwitch.js +1 -1
- package/dist/vue/KvTab.js +1 -1
- package/dist/vue/KvTabPanel.js +1 -1
- package/dist/vue/KvTabs.js +1 -1
- package/dist/vue/KvTextInput.js +1 -1
- package/dist/vue/KvTextLink.js +1 -1
- package/dist/vue/KvThemeProvider.js +1 -1
- package/dist/vue/KvToast.js +1 -1
- package/dist/vue/KvTooltip.js +1 -1
- package/dist/vue/KvTreeMapChart.js +1 -1
- package/dist/vue/KvUserAvatar.js +1 -1
- package/dist/vue/KvUtilityMenu.js +1 -1
- package/dist/vue/KvVerticalCarousel.js +1 -1
- package/dist/vue/KvVotingCard.js +1 -1
- package/dist/vue/KvVotingCardV2.js +1 -1
- package/dist/vue/KvWideLoanCard.js +206 -232
- package/dist/vue/KvWideLoanCard.script.js +235 -0
- package/dist/vue/KvWwwHeader/KvHeaderAboutMenu.js +1 -1
- package/dist/vue/KvWwwHeader/KvHeaderDropdownLink.js +1 -1
- package/dist/vue/KvWwwHeader/KvHeaderLinkBar.js +1 -1
- package/dist/vue/KvWwwHeader/KvHeaderLogo.js +1 -1
- package/dist/vue/KvWwwHeader/KvHeaderMobileMenu.js +1 -1
- package/dist/vue/KvWwwHeader/KvHeaderMyKivaMenu.js +1 -1
- package/dist/vue/KvWwwHeader/KvHeaderTakeActionMenu.js +1 -1
- package/dist/vue/KvWwwHeader/LendMenu/KvLendListMenu.js +1 -1
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMegaMenu.js +1 -1
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenu.js +1 -1
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenuCountryList.js +1 -1
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenuSearchList.js +1 -1
- package/dist/vue/KvWwwHeader.js +1 -1
- package/dist/vue/KvWwwHeaderBasic/AboutMenu.js +1 -1
- package/dist/vue/KvWwwHeaderBasic/HeaderMenuGroup.js +1 -1
- package/dist/vue/KvWwwHeaderBasic/KvWwwHeaderBasic.js +1 -1
- package/dist/vue/KvWwwHeaderBasic/LinkBar.js +1 -1
- package/dist/vue/KvWwwHeaderBasic/MobileLendMenu/CategoriesPanel.js +1 -1
- package/dist/vue/KvWwwHeaderBasic/MobileLendMenu/MobileLendMenu.js +1 -1
- package/dist/vue/KvWwwHeaderBasic/MobileLendMenu/MyKivaPanel.js +1 -1
- package/dist/vue/KvWwwHeaderBasic/MobileLendMenu/RegionsPanel.js +1 -1
- package/dist/vue/KvWwwHeaderBasic/MobileLendMenu/SearchPanel.js +1 -1
- package/dist/vue/KvWwwHeaderBasic/MobileMenu.js +1 -1
- package/dist/vue/KvWwwHeaderBasic/MyKivaMenu.js +1 -1
- package/dist/vue/KvWwwHeaderBasic/SearchBar.js +1 -1
- package/package.json +2 -2
- package/vite.config.ts +16 -13
- package/dist/vue/KvClassicLoanCard2.js +0 -255
- package/dist/vue/KvCompactLoanCard2.js +0 -418
- package/dist/vue/KvFormAssemblyForm2.js +0 -4
- package/dist/vue/KvIconButton2.js +0 -4
- package/dist/vue/KvIntroductionLoanCard2.js +0 -250
- package/dist/vue/KvLendCta2.js +0 -357
- package/dist/vue/KvLoanActivities2.js +0 -77
- package/dist/vue/KvLoanBookmark2.js +0 -24
- package/dist/vue/KvLoanTag2.js +0 -46
- package/dist/vue/KvLoanUse2.js +0 -16
- package/dist/vue/KvWideLoanCard2.js +0 -209
- /package/dist/vue/{KvAccordionItem2.js → KvAccordionItem.script.js} +0 -0
- /package/dist/vue/{KvActivityRow2.js → KvActivityRow.script.js} +0 -0
- /package/dist/vue/{KvAtbModal2.js → KvAtbModal.script.js} +0 -0
- /package/dist/vue/{KvBorrowerImage2.js → KvBorrowerImage.script.js} +0 -0
- /package/dist/vue/{KvButton2.js → KvButton.script.js} +0 -0
- /package/dist/vue/{KvCardFrame2.js → KvCardFrame.script.js} +0 -0
- /package/dist/vue/{KvCarousel2.js → KvCarousel.script.js} +0 -0
- /package/dist/vue/{KvCartModal2.js → KvCartModal.script.js} +0 -0
- /package/dist/vue/{KvCartPill2.js → KvCartPill.script.js} +0 -0
- /package/dist/vue/{KvCheckbox2.js → KvCheckbox.script.js} +0 -0
- /package/dist/vue/{KvCheckoutReceipt2.js → KvCheckoutReceipt.script.js} +0 -0
- /package/dist/vue/{KvChip2.js → KvChip.script.js} +0 -0
- /package/dist/vue/{KvCommentsAdd2.js → KvCommentsAdd.script.js} +0 -0
- /package/dist/vue/{KvCommentsContainer2.js → KvCommentsContainer.script.js} +0 -0
- /package/dist/vue/{KvCommentsHeartButton2.js → KvCommentsHeartButton.script.js} +0 -0
- /package/dist/vue/{KvCommentsList2.js → KvCommentsList.script.js} +0 -0
- /package/dist/vue/{KvCommentsListItem2.js → KvCommentsListItem.script.js} +0 -0
- /package/dist/vue/{KvCommentsReplyButton2.js → KvCommentsReplyButton.script.js} +0 -0
- /package/dist/vue/{KvContentfulImg2.js → KvContentfulImg.script.js} +0 -0
- /package/dist/vue/{KvCountdownTimer2.js → KvCountdownTimer.script.js} +0 -0
- /package/dist/vue/{KvDatePicker2.js → KvDatePicker.script.js} +0 -0
- /package/dist/vue/{KvExpandable2.js → KvExpandable.script.js} +0 -0
- /package/dist/vue/{KvExpandableQuestion2.js → KvExpandableQuestion.script.js} +0 -0
- /package/dist/vue/{KvFlag2.js → KvFlag.script.js} +0 -0
- /package/dist/vue/{KvGrid2.js → KvGrid.script.js} +0 -0
- /package/dist/vue/{KvIconBag2.js → KvIconBag.script.js} +0 -0
- /package/dist/vue/{KvImageUpload2.js → KvImageUpload.script.js} +0 -0
- /package/dist/vue/{KvImpactVerticalSelector2.js → KvImpactVerticalSelector.script.js} +0 -0
- /package/dist/vue/{KvInlineActivityCard2.js → KvInlineActivityCard.script.js} +0 -0
- /package/dist/vue/{KvInlineActivityFeed2.js → KvInlineActivityFeed.script.js} +0 -0
- /package/dist/vue/{KvLendAmountButton2.js → KvLendAmountButton.script.js} +0 -0
- /package/dist/vue/{KvLightbox2.js → KvLightbox.script.js} +0 -0
- /package/dist/vue/{KvLineGraph2.js → KvLineGraph.script.js} +0 -0
- /package/dist/vue/{KvLoadingSpinner2.js → KvLoadingSpinner.script.js} +0 -0
- /package/dist/vue/{KvLoanCallouts2.js → KvLoanCallouts.script.js} +0 -0
- /package/dist/vue/{KvLoanProgressGroup2.js → KvLoanProgressGroup.script.js} +0 -0
- /package/dist/vue/{KvMap2.js → KvMap.script.js} +0 -0
- /package/dist/vue/{KvMaterialIcon2.js → KvMaterialIcon.script.js} +0 -0
- /package/dist/vue/{KvPageContainer2.js → KvPageContainer.script.js} +0 -0
- /package/dist/vue/{KvPagination2.js → KvPagination.script.js} +0 -0
- /package/dist/vue/{KvPieChart2.js → KvPieChart.script.js} +0 -0
- /package/dist/vue/{KvPieChartV22.js → KvPieChartV2.script.js} +0 -0
- /package/dist/vue/{KvPill2.js → KvPill.script.js} +0 -0
- /package/dist/vue/{KvPopper2.js → KvPopper.script.js} +0 -0
- /package/dist/vue/{KvProgressBar2.js → KvProgressBar.script.js} +0 -0
- /package/dist/vue/{KvProgressCircle2.js → KvProgressCircle.script.js} +0 -0
- /package/dist/vue/{KvPulsingDot2.js → KvPulsingDot.script.js} +0 -0
- /package/dist/vue/{KvRadio2.js → KvRadio.script.js} +0 -0
- /package/dist/vue/{KvSecondaryNav2.js → KvSecondaryNav.script.js} +0 -0
- /package/dist/vue/{KvSelect2.js → KvSelect.script.js} +0 -0
- /package/dist/vue/{KvSideSheet2.js → KvSideSheet.script.js} +0 -0
- /package/dist/vue/{KvSimpleMap2.js → KvSimpleMap.script.js} +0 -0
- /package/dist/vue/{KvStackedBarGraph2.js → KvStackedBarGraph.script.js} +0 -0
- /package/dist/vue/{KvSwitch2.js → KvSwitch.script.js} +0 -0
- /package/dist/vue/{KvTab2.js → KvTab.script.js} +0 -0
- /package/dist/vue/{KvTabPanel2.js → KvTabPanel.script.js} +0 -0
- /package/dist/vue/{KvTabs2.js → KvTabs.script.js} +0 -0
- /package/dist/vue/{KvTextInput2.js → KvTextInput.script.js} +0 -0
- /package/dist/vue/{KvTextLink2.js → KvTextLink.script.js} +0 -0
- /package/dist/vue/{KvThemeProvider2.js → KvThemeProvider.script.js} +0 -0
- /package/dist/vue/{KvToast2.js → KvToast.script.js} +0 -0
- /package/dist/vue/{KvTooltip2.js → KvTooltip.script.js} +0 -0
- /package/dist/vue/{KvTreeMapChart2.js → KvTreeMapChart.script.js} +0 -0
- /package/dist/vue/{KvUserAvatar2.js → KvUserAvatar.script.js} +0 -0
- /package/dist/vue/{KvUtilityMenu2.js → KvUtilityMenu.script.js} +0 -0
- /package/dist/vue/{KvVerticalCarousel2.js → KvVerticalCarousel.script.js} +0 -0
- /package/dist/vue/{KvVotingCard2.js → KvVotingCard.script.js} +0 -0
- /package/dist/vue/{KvVotingCardV22.js → KvVotingCardV2.script.js} +0 -0
- /package/dist/vue/KvWwwHeader/{KvHeaderAboutMenu2.js → KvHeaderAboutMenu.script.js} +0 -0
- /package/dist/vue/KvWwwHeader/{KvHeaderDropdownLink2.js → KvHeaderDropdownLink.script.js} +0 -0
- /package/dist/vue/KvWwwHeader/{KvHeaderLinkBar2.js → KvHeaderLinkBar.script.js} +0 -0
- /package/dist/vue/KvWwwHeader/{KvHeaderLogo2.js → KvHeaderLogo.script.js} +0 -0
- /package/dist/vue/KvWwwHeader/{KvHeaderMobileMenu2.js → KvHeaderMobileMenu.script.js} +0 -0
- /package/dist/vue/KvWwwHeader/{KvHeaderMyKivaMenu2.js → KvHeaderMyKivaMenu.script.js} +0 -0
- /package/dist/vue/KvWwwHeader/{KvHeaderTakeActionMenu2.js → KvHeaderTakeActionMenu.script.js} +0 -0
- /package/dist/vue/KvWwwHeader/LendMenu/{KvLendListMenu2.js → KvLendListMenu.script.js} +0 -0
- /package/dist/vue/KvWwwHeader/LendMenu/{KvLendMegaMenu2.js → KvLendMegaMenu.script.js} +0 -0
- /package/dist/vue/KvWwwHeader/LendMenu/{KvLendMenu2.js → KvLendMenu.script.js} +0 -0
- /package/dist/vue/KvWwwHeader/LendMenu/{KvLendMenuCountryList2.js → KvLendMenuCountryList.script.js} +0 -0
- /package/dist/vue/KvWwwHeader/LendMenu/{KvLendMenuSearchList2.js → KvLendMenuSearchList.script.js} +0 -0
- /package/dist/vue/{KvWwwHeader2.js → KvWwwHeader.script.js} +0 -0
- /package/dist/vue/KvWwwHeaderBasic/{AboutMenu2.js → AboutMenu.script.js} +0 -0
- /package/dist/vue/KvWwwHeaderBasic/{HeaderMenuGroup2.js → HeaderMenuGroup.script.js} +0 -0
- /package/dist/vue/KvWwwHeaderBasic/{KvWwwHeaderBasic2.js → KvWwwHeaderBasic.script.js} +0 -0
- /package/dist/vue/KvWwwHeaderBasic/{LinkBar2.js → LinkBar.script.js} +0 -0
- /package/dist/vue/KvWwwHeaderBasic/MobileLendMenu/{CategoriesPanel2.js → CategoriesPanel.script.js} +0 -0
- /package/dist/vue/KvWwwHeaderBasic/MobileLendMenu/{MobileLendMenu2.js → MobileLendMenu.script.js} +0 -0
- /package/dist/vue/KvWwwHeaderBasic/MobileLendMenu/{MyKivaPanel2.js → MyKivaPanel.script.js} +0 -0
- /package/dist/vue/KvWwwHeaderBasic/MobileLendMenu/{RegionsPanel2.js → RegionsPanel.script.js} +0 -0
- /package/dist/vue/KvWwwHeaderBasic/MobileLendMenu/{SearchPanel2.js → SearchPanel.script.js} +0 -0
- /package/dist/vue/KvWwwHeaderBasic/{MobileMenu2.js → MobileMenu.script.js} +0 -0
- /package/dist/vue/KvWwwHeaderBasic/{MyKivaMenu2.js → MyKivaMenu.script.js} +0 -0
- /package/dist/vue/KvWwwHeaderBasic/{SearchBar2.js → SearchBar.script.js} +0 -0
package/dist/vue/KvIconButton.js
CHANGED
|
@@ -1,118 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { mdiDotsVertical as f } from "@mdi/js";
|
|
3
|
-
import y from "./KvMaterialIcon.js";
|
|
4
|
-
const b = ["disabled", "aria-pressed"], V = /* @__PURE__ */ n({
|
|
5
|
-
__name: "KvIconButton",
|
|
6
|
-
props: {
|
|
7
|
-
/**
|
|
8
|
-
* The Material Design Icon path from @mdi/js
|
|
9
|
-
*/
|
|
10
|
-
icon: {
|
|
11
|
-
type: String,
|
|
12
|
-
default: f
|
|
13
|
-
},
|
|
14
|
-
/**
|
|
15
|
-
* Size of the visual button element (touch target is always 44px minimum)
|
|
16
|
-
* `small (16px), medium (20px), large (24px - default)`
|
|
17
|
-
*/
|
|
18
|
-
size: {
|
|
19
|
-
type: String,
|
|
20
|
-
default: "large",
|
|
21
|
-
validator(e) {
|
|
22
|
-
return ["small", "medium", "large"].includes(e);
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
/**
|
|
26
|
-
* Whether to show a border on the button
|
|
27
|
-
*/
|
|
28
|
-
showBorder: {
|
|
29
|
-
type: Boolean,
|
|
30
|
-
default: !1
|
|
31
|
-
},
|
|
32
|
-
/**
|
|
33
|
-
* Border color variant. Only applies when showBorder is true.
|
|
34
|
-
* `primary, secondary, tertiary`
|
|
35
|
-
*/
|
|
36
|
-
borderColor: {
|
|
37
|
-
type: String,
|
|
38
|
-
default: "tertiary",
|
|
39
|
-
validator(e) {
|
|
40
|
-
return ["primary", "secondary", "tertiary"].includes(e);
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
/**
|
|
44
|
-
* Whether to show background on the button
|
|
45
|
-
* Applies white background with hover and active states
|
|
46
|
-
*/
|
|
47
|
-
showBackground: {
|
|
48
|
-
type: Boolean,
|
|
49
|
-
default: !1
|
|
50
|
-
},
|
|
51
|
-
/**
|
|
52
|
-
* Whether the button is disabled
|
|
53
|
-
*/
|
|
54
|
-
disabled: {
|
|
55
|
-
type: Boolean,
|
|
56
|
-
default: !1
|
|
57
|
-
},
|
|
58
|
-
/**
|
|
59
|
-
* Whether the button acts as a toggle (on/off switch)
|
|
60
|
-
*/
|
|
61
|
-
toggleable: {
|
|
62
|
-
type: Boolean,
|
|
63
|
-
default: !1
|
|
64
|
-
},
|
|
65
|
-
/**
|
|
66
|
-
* The toggle state (for v-model support). Only used when toggleable is true.
|
|
67
|
-
*/
|
|
68
|
-
modelValue: {
|
|
69
|
-
type: Boolean,
|
|
70
|
-
default: !1
|
|
71
|
-
},
|
|
72
|
-
/**
|
|
73
|
-
* Icon to display when toggle is active/on. Only used when toggleable is true.
|
|
74
|
-
*/
|
|
75
|
-
activeIcon: {
|
|
76
|
-
type: String,
|
|
77
|
-
default: ""
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
emits: ["click", "update:modelValue"],
|
|
81
|
-
setup(e, { emit: l }) {
|
|
82
|
-
const t = e, r = l, i = (o) => {
|
|
83
|
-
t.disabled || (t.toggleable && r("update:modelValue", !t.modelValue), r("click", o));
|
|
84
|
-
}, d = c(() => t.toggleable && t.modelValue && t.activeIcon ? t.activeIcon : t.icon);
|
|
85
|
-
return (o, g) => (s(), u("button", {
|
|
86
|
-
type: "button",
|
|
87
|
-
disabled: e.disabled,
|
|
88
|
-
"aria-pressed": e.toggleable ? e.modelValue : void 0,
|
|
89
|
-
class: a(["tw-flex tw-items-center tw-justify-center tw-min-w-5.5 tw-min-h-5.5 tw-bg-transparent", {
|
|
90
|
-
"tw-opacity-low tw-cursor-default": e.disabled
|
|
91
|
-
}]),
|
|
92
|
-
onClick: i
|
|
93
|
-
}, [
|
|
94
|
-
w("span", {
|
|
95
|
-
class: a(["tw-flex tw-items-center tw-justify-center tw-transition-colors tw-duration-200 tw-rounded-full", {
|
|
96
|
-
"tw-w-4 tw-h-4": e.size === "small",
|
|
97
|
-
"tw-w-5 tw-h-5": e.size === "medium",
|
|
98
|
-
"tw-w-6 tw-h-6": e.size === "large",
|
|
99
|
-
"tw-bg-white hover:tw-bg-gray-100 active:tw-bg-gray-200": e.showBackground,
|
|
100
|
-
"tw-border": e.showBorder,
|
|
101
|
-
"tw-border-primary": e.showBorder && e.borderColor === "primary",
|
|
102
|
-
"tw-border-secondary": e.showBorder && e.borderColor === "secondary",
|
|
103
|
-
"tw-border-tertiary": e.showBorder && e.borderColor === "tertiary"
|
|
104
|
-
}])
|
|
105
|
-
}, [
|
|
106
|
-
m(y, {
|
|
107
|
-
icon: d.value,
|
|
108
|
-
class: a({
|
|
109
|
-
"tw-w-2.5 tw-h-2.5": e.size === "small"
|
|
110
|
-
})
|
|
111
|
-
}, null, 8, ["icon", "class"])
|
|
112
|
-
], 2)
|
|
113
|
-
], 10, b));
|
|
114
|
-
}
|
|
115
|
-
});
|
|
1
|
+
import f from "./KvIconButton.script.js";
|
|
116
2
|
export {
|
|
117
|
-
|
|
3
|
+
f as default
|
|
118
4
|
};
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { defineComponent as n, computed as c, openBlock as s, createElementBlock as u, normalizeClass as a, createElementVNode as w, createVNode as m } from "vue";
|
|
2
|
+
import { mdiDotsVertical as f } from "@mdi/js";
|
|
3
|
+
import y from "./KvMaterialIcon.js";
|
|
4
|
+
const b = ["disabled", "aria-pressed"], V = /* @__PURE__ */ n({
|
|
5
|
+
__name: "KvIconButton",
|
|
6
|
+
props: {
|
|
7
|
+
/**
|
|
8
|
+
* The Material Design Icon path from @mdi/js
|
|
9
|
+
*/
|
|
10
|
+
icon: {
|
|
11
|
+
type: String,
|
|
12
|
+
default: f
|
|
13
|
+
},
|
|
14
|
+
/**
|
|
15
|
+
* Size of the visual button element (touch target is always 44px minimum)
|
|
16
|
+
* `small (16px), medium (20px), large (24px - default)`
|
|
17
|
+
*/
|
|
18
|
+
size: {
|
|
19
|
+
type: String,
|
|
20
|
+
default: "large",
|
|
21
|
+
validator(e) {
|
|
22
|
+
return ["small", "medium", "large"].includes(e);
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
/**
|
|
26
|
+
* Whether to show a border on the button
|
|
27
|
+
*/
|
|
28
|
+
showBorder: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
default: !1
|
|
31
|
+
},
|
|
32
|
+
/**
|
|
33
|
+
* Border color variant. Only applies when showBorder is true.
|
|
34
|
+
* `primary, secondary, tertiary`
|
|
35
|
+
*/
|
|
36
|
+
borderColor: {
|
|
37
|
+
type: String,
|
|
38
|
+
default: "tertiary",
|
|
39
|
+
validator(e) {
|
|
40
|
+
return ["primary", "secondary", "tertiary"].includes(e);
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
/**
|
|
44
|
+
* Whether to show background on the button
|
|
45
|
+
* Applies white background with hover and active states
|
|
46
|
+
*/
|
|
47
|
+
showBackground: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
default: !1
|
|
50
|
+
},
|
|
51
|
+
/**
|
|
52
|
+
* Whether the button is disabled
|
|
53
|
+
*/
|
|
54
|
+
disabled: {
|
|
55
|
+
type: Boolean,
|
|
56
|
+
default: !1
|
|
57
|
+
},
|
|
58
|
+
/**
|
|
59
|
+
* Whether the button acts as a toggle (on/off switch)
|
|
60
|
+
*/
|
|
61
|
+
toggleable: {
|
|
62
|
+
type: Boolean,
|
|
63
|
+
default: !1
|
|
64
|
+
},
|
|
65
|
+
/**
|
|
66
|
+
* The toggle state (for v-model support). Only used when toggleable is true.
|
|
67
|
+
*/
|
|
68
|
+
modelValue: {
|
|
69
|
+
type: Boolean,
|
|
70
|
+
default: !1
|
|
71
|
+
},
|
|
72
|
+
/**
|
|
73
|
+
* Icon to display when toggle is active/on. Only used when toggleable is true.
|
|
74
|
+
*/
|
|
75
|
+
activeIcon: {
|
|
76
|
+
type: String,
|
|
77
|
+
default: ""
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
emits: ["click", "update:modelValue"],
|
|
81
|
+
setup(e, { emit: l }) {
|
|
82
|
+
const t = e, r = l, i = (o) => {
|
|
83
|
+
t.disabled || (t.toggleable && r("update:modelValue", !t.modelValue), r("click", o));
|
|
84
|
+
}, d = c(() => t.toggleable && t.modelValue && t.activeIcon ? t.activeIcon : t.icon);
|
|
85
|
+
return (o, g) => (s(), u("button", {
|
|
86
|
+
type: "button",
|
|
87
|
+
disabled: e.disabled,
|
|
88
|
+
"aria-pressed": e.toggleable ? e.modelValue : void 0,
|
|
89
|
+
class: a(["tw-flex tw-items-center tw-justify-center tw-min-w-5.5 tw-min-h-5.5 tw-bg-transparent", {
|
|
90
|
+
"tw-opacity-low tw-cursor-default": e.disabled
|
|
91
|
+
}]),
|
|
92
|
+
onClick: i
|
|
93
|
+
}, [
|
|
94
|
+
w("span", {
|
|
95
|
+
class: a(["tw-flex tw-items-center tw-justify-center tw-transition-colors tw-duration-200 tw-rounded-full", {
|
|
96
|
+
"tw-w-4 tw-h-4": e.size === "small",
|
|
97
|
+
"tw-w-5 tw-h-5": e.size === "medium",
|
|
98
|
+
"tw-w-6 tw-h-6": e.size === "large",
|
|
99
|
+
"tw-bg-white hover:tw-bg-gray-100 active:tw-bg-gray-200": e.showBackground,
|
|
100
|
+
"tw-border": e.showBorder,
|
|
101
|
+
"tw-border-primary": e.showBorder && e.borderColor === "primary",
|
|
102
|
+
"tw-border-secondary": e.showBorder && e.borderColor === "secondary",
|
|
103
|
+
"tw-border-tertiary": e.showBorder && e.borderColor === "tertiary"
|
|
104
|
+
}])
|
|
105
|
+
}, [
|
|
106
|
+
m(y, {
|
|
107
|
+
icon: d.value,
|
|
108
|
+
class: a({
|
|
109
|
+
"tw-w-2.5 tw-h-2.5": e.size === "small"
|
|
110
|
+
})
|
|
111
|
+
}, null, 8, ["icon", "class"])
|
|
112
|
+
], 2)
|
|
113
|
+
], 10, b));
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
export {
|
|
117
|
+
V as default
|
|
118
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import p from "./
|
|
1
|
+
import p from "./KvImageUpload.script.js";
|
|
2
2
|
import { resolveComponent as f, openBlock as i, createElementBlock as n, createElementVNode as a, normalizeStyle as g, normalizeClass as l, renderSlot as b, createVNode as c, withModifiers as w, createCommentVNode as m } from "vue";
|
|
3
3
|
import "./KvImageUpload.css";
|
|
4
4
|
import u from "../_virtual/_plugin-vue_export-helper.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _ from "./
|
|
1
|
+
import _ from "./KvImpactVerticalSelector.script.js";
|
|
2
2
|
import { resolveComponent as d, openBlock as s, createElementBlock as n, createElementVNode as l, Fragment as f, renderList as C, createBlock as c, withCtx as g, normalizeClass as i, createCommentVNode as o, toDisplayString as r } from "vue";
|
|
3
3
|
import h from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
const b = { class: "tw-grid tw-grid-cols-1 md:tw-grid-cols-2 tw-gap-3" }, k = ["alt", "src", "width"], u = { class: "tw-mb-0.5 tw-font-medium" }, v = { class: "tw-text-small" }, x = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import o from "./
|
|
1
|
+
import o from "./KvInlineActivityCard.script.js";
|
|
2
2
|
import { resolveComponent as s, openBlock as a, createElementBlock as l, createVNode as d, createElementVNode as r, toDisplayString as c, createTextVNode as i } from "vue";
|
|
3
3
|
import m from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
const p = { class: "tw-flex tw-items-center tw-gap-1 tw-py-0.5 tw-px-1 tw-shadow-lg tw-rounded-xs tw-bg-white" }, w = { class: "tw-text-base tw-whitespace-nowrap" }, _ = { class: "data-hj-suppress" };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import c from "./
|
|
1
|
+
import c from "./KvInlineActivityFeed.script.js";
|
|
2
2
|
import { resolveComponent as a, openBlock as t, createElementBlock as e, Fragment as l, renderList as s, createBlock as p } from "vue";
|
|
3
3
|
import "./KvInlineActivityFeed.css";
|
|
4
4
|
import d from "../_virtual/_plugin-vue_export-helper.js";
|