@citizenplane/pimp 8.28.3 → 8.29.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/dist/{IconAccompaniedMinorEach-BhTRB0Xt.js → IconAccompaniedMinorEach-DJAl0F5n.js} +1 -1
- package/dist/{IconAccompaniedMinorNone-CVDRfiLR.js → IconAccompaniedMinorNone-DiM0N51w.js} +1 -1
- package/dist/{IconAccompaniedMinorOne-CjDJrkLH.js → IconAccompaniedMinorOne-CKplzZmh.js} +1 -1
- package/dist/{IconAddReceipt-Dw57KIgu.js → IconAddReceipt-DcCS2bfI.js} +1 -1
- package/dist/{IconAirportTerminal-CAMDLNK1.js → IconAirportTerminal-Ds0ZJoQR.js} +1 -1
- package/dist/{IconArrival-c3iHOjLS.js → IconArrival-D46TLsV9.js} +1 -1
- package/dist/{IconBaggageCabinNone-CfGbgm2w.js → IconBaggageCabinNone-xb3xxuaw.js} +1 -1
- package/dist/{IconBaggageCheckedNone-HBugBdro.js → IconBaggageCheckedNone-B-aRpwV3.js} +1 -1
- package/dist/{IconBaggagePersonalNone-D3yc1Nr3.js → IconBaggagePersonalNone-BANaXEwN.js} +1 -1
- package/dist/{IconBroadcast-Cl25xZ3V.js → IconBroadcast-CaP6RkQS.js} +1 -1
- package/dist/{IconCabinBag-nouejrQO.js → IconCabinBag-C_RCoMJH.js} +1 -1
- package/dist/{IconCalendar-DB5c1Hb9.js → IconCalendar-DsY2EgtV.js} +1 -1
- package/dist/{IconCalendarDelay-C2ZSycA0.js → IconCalendarDelay-Dw2BJrkM.js} +1 -1
- package/dist/{IconCheckedBaggage20-fvncgtMu.js → IconCheckedBaggage20-64O0_VLT.js} +1 -1
- package/dist/{IconCheckedBaggage30-D-5snpDi.js → IconCheckedBaggage30-KqEee1vY.js} +1 -1
- package/dist/{IconChild-6vzhDuGY.js → IconChild-CQgO2S-B.js} +1 -1
- package/dist/{IconContact-DW2EQIvM.js → IconContact-Dp6fiVgj.js} +1 -1
- package/dist/{IconDeparture-Dz7iVI4W.js → IconDeparture-CzilFSlX.js} +1 -1
- package/dist/{IconDistribution-DpTX0efP.js → IconDistribution-DwWykEuK.js} +1 -1
- package/dist/{IconDistributionClosed-1MnLvGpO.js → IconDistributionClosed-BFhm0zlg.js} +1 -1
- package/dist/{IconDistributionExclusivePair-D2KrS0uK.js → IconDistributionExclusivePair-BJloN2rr.js} +1 -1
- package/dist/{IconDistributionSided-jwGOXuS1.js → IconDistributionSided-CGOMrvD9.js} +1 -1
- package/dist/{IconDistributionSupplySided-DRkX2ogx.js → IconDistributionSupplySided-aDOBPVbr.js} +1 -1
- package/dist/{IconDynamicContent-Ce_7vPxD.js → IconDynamicContent-Dy4P_4kE.js} +1 -1
- package/dist/{IconEndDate-DU4Dy0D3.js → IconEndDate-zHqEusva.js} +1 -1
- package/dist/{IconFares-De8x8tAw.js → IconFares-Ar7mT2uJ.js} +1 -1
- package/dist/{IconFaresOutlined-DXF-fqbv.js → IconFaresOutlined-CzXzP1Nq.js} +1 -1
- package/dist/{IconFemale-Dl_uoCsR.js → IconFemale-BAPZu5dD.js} +1 -1
- package/dist/{IconFindConversation-08VqKEJ3.js → IconFindConversation-Dp9kb_9Q.js} +1 -1
- package/dist/{IconFire-lKbNb_Ws.js → IconFire-D-skpITw.js} +1 -1
- package/dist/{IconFlight-CNMq0SbK.js → IconFlight-Bk74FFlO.js} +1 -1
- package/dist/{IconFlightReturn-Bh38ue0g.js → IconFlightReturn-ChU0D5NM.js} +1 -1
- package/dist/{IconFlightSchedule-Bcl-Gaa1.js → IconFlightSchedule-BGqSAgnS.js} +1 -1
- package/dist/{IconHandHeart-DCuVQDKm.js → IconHandHeart-DSLVTWB0.js} +1 -1
- package/dist/{IconHistory-Bk26qQet.js → IconHistory-DoiJxTLv.js} +1 -1
- package/dist/{IconHourGlass-Dh3QiKYR.js → IconHourGlass-DiUkDFsn.js} +1 -1
- package/dist/{IconIdCard-DMfo5q29.js → IconIdCard-AZFJGbhI.js} +1 -1
- package/dist/{IconInfant-CcFYbhBY.js → IconInfant-Upc6KK5G.js} +1 -1
- package/dist/{IconItinerary-OX6XFnGw.js → IconItinerary-B0gVEP6X.js} +1 -1
- package/dist/{IconLeave-BfNuG93H.js → IconLeave-CuUkbugY.js} +1 -1
- package/dist/{IconMale-B1Xztycy.js → IconMale-C38B_sQb.js} +1 -1
- package/dist/{IconMultiSegments-48Y0MOL0.js → IconMultiSegments-DDmDlR8c.js} +1 -1
- package/dist/{IconNoPassport-t_A6_d-m.js → IconNoPassport-C0o54-Yj.js} +1 -1
- package/dist/{IconNoRefund-CT3CmB1z.js → IconNoRefund-B4xImgrQ.js} +1 -1
- package/dist/{IconNoSeat-DHaI_9g1.js → IconNoSeat-Bnh__UM_.js} +1 -1
- package/dist/{IconNotion-C01AxxT1.js → IconNotion-DOT1v1RD.js} +1 -1
- package/dist/{IconOffline-BtXwq9Rk.js → IconOffline-D1d62Jkv.js} +1 -1
- package/dist/{IconOneWay-BvgNp-Tw.js → IconOneWay--BY9YJWU.js} +1 -1
- package/dist/{IconPaid-eZeX0pTC.js → IconPaid-Dyw8JVGl.js} +1 -1
- package/dist/{IconPassport-BB53q3Xj.js → IconPassport-_LaJzaWO.js} +1 -1
- package/dist/{IconPayout-agVkSjKR.js → IconPayout-Df0q7muN.js} +1 -1
- package/dist/{IconPlug-DA0Rn_Dg.js → IconPlug-Djxnwr8c.js} +1 -1
- package/dist/{IconPlugOff-Bhz2gopr.js → IconPlugOff-njGjheAI.js} +1 -1
- package/dist/{IconReceipt-C7iOyJr-.js → IconReceipt-DS1UiNwb.js} +1 -1
- package/dist/{IconRecurrence-PEFMHtkO.js → IconRecurrence-CYJGsNgj.js} +1 -1
- package/dist/{IconRefund-BCOgJ359.js → IconRefund-BqZTvJDf.js} +1 -1
- package/dist/{IconRoundTrip-Czqp1msS.js → IconRoundTrip-Du_iKzRn.js} +1 -1
- package/dist/{IconRouteNoStop-BUAGzqXr.js → IconRouteNoStop-BMimFG1_.js} +1 -1
- package/dist/{IconRouteOneStop-CXMbf4YJ.js → IconRouteOneStop-BCyieuH0.js} +1 -1
- package/dist/{IconScheduleChange-Ba25qfvt.js → IconScheduleChange-CPJ2QMHl.js} +1 -1
- package/dist/{IconSeatEmpty-CzU3MZJ5.js → IconSeatEmpty-BvulUq5w.js} +1 -1
- package/dist/{IconSeatSold-CjZ0AsMC.js → IconSeatSold-Cs3FRT9q.js} +1 -1
- package/dist/{IconSeatTotal-DuMf13IP.js → IconSeatTotal-B3mVvYAL.js} +1 -1
- package/dist/{IconStartDate-CzdY32t3.js → IconStartDate-B-j0bRpZ.js} +1 -1
- package/dist/{IconTemplate-CKqtWoRS.js → IconTemplate-CJfm6u-D.js} +1 -1
- package/dist/{IconTicket-CKOuWpFj.js → IconTicket-Dr5BMylL.js} +1 -1
- package/dist/{IconTimer-CniUunfF.js → IconTimer-DkbtAi6L.js} +1 -1
- package/dist/{IconTrafficControl-CecHfaNY.js → IconTrafficControl-DaYBu9ZI.js} +1 -1
- package/dist/{index-b9vCNG2n.js → index-Cs7xsj5h.js} +718 -720
- package/dist/pimp.es.js +1 -1
- package/dist/pimp.umd.js +14 -14
- package/package.json +1 -1
- package/src/components/CpIcon.vue +0 -6
- package/src/constants/CpCustomIcons.ts +0 -1
- package/src/stories/CpIcon.stories.ts +0 -9
- package/dist/IconCheckedBaggage-CFuPo731.js +0 -18
- package/src/components/icons/IconCheckedBaggage.vue +0 -11
package/package.json
CHANGED
|
@@ -14,19 +14,16 @@ interface Props {
|
|
|
14
14
|
size?: number | string
|
|
15
15
|
tag?: string
|
|
16
16
|
type: string
|
|
17
|
-
weight?: number
|
|
18
17
|
}
|
|
19
18
|
|
|
20
19
|
const props = withDefaults(defineProps<Props>(), {
|
|
21
20
|
size: 24,
|
|
22
21
|
tag: 'i',
|
|
23
|
-
weight: 0,
|
|
24
22
|
})
|
|
25
23
|
|
|
26
24
|
const wrapperTag = computed(() => props.tag)
|
|
27
25
|
const type = computed(() => props.type)
|
|
28
26
|
const size = computed(() => props.size)
|
|
29
|
-
const weight = computed(() => props.weight)
|
|
30
27
|
|
|
31
28
|
// @ts-expect-error cannot use string as index type for CustomCpIcons
|
|
32
29
|
const isCustomIcon = computed(() => !!CustomCpIcons[type.value])
|
|
@@ -41,9 +38,6 @@ const dynamicIcon = computed(() => {
|
|
|
41
38
|
if (isFeatherIcon.value) {
|
|
42
39
|
return 'svg'
|
|
43
40
|
} else if (isCustomIcon.value) {
|
|
44
|
-
if (type.value === 'checked-baggage') {
|
|
45
|
-
return weight.value >= 30 ? CustomCpIcons['checked-baggage-20'] : CustomCpIcons['checked-baggage-30']
|
|
46
|
-
}
|
|
47
41
|
// @ts-expect-error cannot use string as index type for CustomCpIcons
|
|
48
42
|
return CustomCpIcons[type.value]
|
|
49
43
|
}
|
|
@@ -16,7 +16,6 @@ export const CustomCpIcons = {
|
|
|
16
16
|
'calendar-delay': defineAsyncComponent(() => import('@/components/icons/IconCalendarDelay.vue')),
|
|
17
17
|
'cabin-bag': defineAsyncComponent(() => import('@/components/icons/IconCabinBag.vue')),
|
|
18
18
|
'check-list': defineAsyncComponent(() => import('@/components/icons/IconCheckList.vue')),
|
|
19
|
-
'checked-baggage': defineAsyncComponent(() => import('@/components/icons/IconCheckedBaggage.vue')),
|
|
20
19
|
'checked-baggage-20': defineAsyncComponent(() => import('@/components/icons/IconCheckedBaggage20.vue')),
|
|
21
20
|
'checked-baggage-30': defineAsyncComponent(() => import('@/components/icons/IconCheckedBaggage30.vue')),
|
|
22
21
|
child: defineAsyncComponent(() => import('@/components/icons/IconChild.vue')),
|
|
@@ -46,15 +46,6 @@ const meta = {
|
|
|
46
46
|
control: 'text',
|
|
47
47
|
description: 'HTML tag to use for the icon wrapper',
|
|
48
48
|
},
|
|
49
|
-
weight: {
|
|
50
|
-
control: 'number',
|
|
51
|
-
description: 'Weight for specific icons like checked-baggage',
|
|
52
|
-
table: {
|
|
53
|
-
defaultValue: {
|
|
54
|
-
summary: '0',
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
49
|
},
|
|
59
50
|
} satisfies Meta<typeof CpIcon>
|
|
60
51
|
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { createElementBlock as e, openBlock as o } from "vue";
|
|
2
|
-
import { _ as r } from "./index-b9vCNG2n.js";
|
|
3
|
-
const t = {}, c = {
|
|
4
|
-
width: "24",
|
|
5
|
-
height: "24",
|
|
6
|
-
viewBox: "0 0 24 24",
|
|
7
|
-
fill: "currentColor",
|
|
8
|
-
"fill-rule": "evenodd",
|
|
9
|
-
"clip-rule": "evenodd",
|
|
10
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
11
|
-
};
|
|
12
|
-
function n(l, s) {
|
|
13
|
-
return o(), e("svg", c);
|
|
14
|
-
}
|
|
15
|
-
const d = /* @__PURE__ */ r(t, [["render", n]]);
|
|
16
|
-
export {
|
|
17
|
-
d as default
|
|
18
|
-
};
|