@veevarts/design-system 2.8.0 → 2.9.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/index.cjs +8 -8
- package/dist/index.js +3276 -3208
- package/dist/patterns/{CatalogItemCard → Programs/CatalogItemCard}/type.d.ts +1 -1
- package/dist/patterns/{EventDetails → Programs/EventDetails}/EventDetails.d.ts +3 -1
- package/dist/patterns/{OfferCard → Programs/OfferCard}/OfferCard.d.ts +1 -1
- package/dist/patterns/{OfferCard → Programs/OfferCard}/types.d.ts +7 -0
- package/dist/patterns/Programs/ProgramListItem/ProgramListItem.d.ts +17 -0
- package/dist/patterns/Programs/ProgramListItem/index.d.ts +2 -0
- package/dist/patterns/Programs/index.d.ts +5 -0
- package/dist/patterns/index.d.ts +10 -8
- package/package.json +1 -1
- /package/dist/patterns/{CatalogItemCard → Programs/CatalogItemCard}/CatalogItemCard.d.ts +0 -0
- /package/dist/patterns/{CatalogItemCard → Programs/CatalogItemCard}/index.d.ts +0 -0
- /package/dist/patterns/{EventDetails → Programs/EventDetails}/index.d.ts +0 -0
- /package/dist/patterns/{OfferCard → Programs/OfferCard}/examples/CustomQuantitySelectorExample.d.ts +0 -0
- /package/dist/patterns/{OfferCard → Programs/OfferCard}/examples/ListWithEurosCurrencyExample.d.ts +0 -0
- /package/dist/patterns/{OfferCard → Programs/OfferCard}/examples/ListWithoutAnimationExample.d.ts +0 -0
- /package/dist/patterns/{OfferCard → Programs/OfferCard}/examples/index.d.ts +0 -0
- /package/dist/patterns/{OfferCard → Programs/OfferCard}/index.d.ts +0 -0
- /package/dist/patterns/{OfferCard → Programs/OfferCard}/utils/animations.d.ts +0 -0
- /package/dist/patterns/{OfferCard → Programs/OfferCard}/utils/currency.d.ts +0 -0
- /package/dist/patterns/{OfferCard → Programs/OfferCard}/utils/index.d.ts +0 -0
- /package/dist/patterns/{OfferCard → Programs/OfferCard}/utils/offers.d.ts +0 -0
- /package/dist/patterns/{OfferCard → Programs/OfferCard}/variants/OfferCardEmpty.d.ts +0 -0
- /package/dist/patterns/{OfferCard → Programs/OfferCard}/variants/OfferCardError.d.ts +0 -0
- /package/dist/patterns/{OfferCard → Programs/OfferCard}/variants/OfferCardList.d.ts +0 -0
- /package/dist/patterns/{OfferCard → Programs/OfferCard}/variants/OfferCardSkeleton.d.ts +0 -0
- /package/dist/patterns/{OfferCard → Programs/OfferCard}/variants/index.d.ts +0 -0
- /package/dist/patterns/{SessionTimeline → Programs/SessionTimeline}/SessionTimeline.d.ts +0 -0
- /package/dist/patterns/{SessionTimeline → Programs/SessionTimeline}/index.d.ts +0 -0
- /package/dist/patterns/{SessionTimeline → Programs/SessionTimeline}/type.d.ts +0 -0
|
@@ -20,6 +20,8 @@ export interface EventDetailsProps {
|
|
|
20
20
|
classes?: string;
|
|
21
21
|
/** @property {boolean} [compact] - Dense spacing mode for compact side layouts. */
|
|
22
22
|
compact?: boolean;
|
|
23
|
+
/** @property {'stacked' | 'horizontal'} [layout] - Places the image beside content on desktop when horizontal. */
|
|
24
|
+
layout?: 'stacked' | 'horizontal';
|
|
23
25
|
/** @property {boolean} [showImage] - Optional flag to show or hide the event image. Defaults to true. */
|
|
24
26
|
showImage?: boolean;
|
|
25
27
|
/** @property {'lazy' | 'eager'} [imageLoading] - Optional loading strategy for the event image. Use `'lazy'` for off-screen placements (long lists, below-the-fold). Defaults to `'eager'` since the banner is typically above-the-fold. */
|
|
@@ -37,5 +39,5 @@ export interface EventDetailsProps {
|
|
|
37
39
|
* @function EventDetails
|
|
38
40
|
* @description Displays a card with event information such as name, image, date, time, location, and description.
|
|
39
41
|
*/
|
|
40
|
-
export declare const EventDetails: ({ classes, name, imageUrl, eventDate, eventTime, location, description, showImage, compact, imageLoading, showMoreButtonClassName, labels, }: EventDetailsProps) => JSX.Element;
|
|
42
|
+
export declare const EventDetails: ({ classes, name, imageUrl, eventDate, eventTime, location, description, showImage, compact, layout, imageLoading, showMoreButtonClassName, labels, }: EventDetailsProps) => JSX.Element;
|
|
41
43
|
export default EventDetails;
|
|
@@ -6,7 +6,7 @@ import { OfferCardProps } from './types';
|
|
|
6
6
|
* Supports slot-based customization for all rendered elements.
|
|
7
7
|
*/
|
|
8
8
|
export declare const OfferCard: {
|
|
9
|
-
({ offer, quantity: quantityProp, defaultQuantity, onQuantityChange, currency, locale, labels: customLabels, slots, isDisabled, buttonVariant, buttonColor, showCard, showDescription, showPeopleCount, showPrice, priceDisplay, classNames, "data-testid": dataTestId, selectedColor, compact, isSoldOut: isSoldOutProp, isMaxReached: isMaxReachedProp, isRuleBlocked: isRuleBlockedProp, statusTone: statusToneProp, statusLabel, disabledReason, disabled, }: OfferCardProps): JSX.Element;
|
|
9
|
+
({ offer, quantity: quantityProp, defaultQuantity, onQuantityChange, currency, locale, labels: customLabels, slots, isDisabled, buttonVariant, buttonColor, showCard, showDescription, showPeopleCount, showPrice, priceDisplay, classNames, "data-testid": dataTestId, selectedColor, selectionMode, compact, isSoldOut: isSoldOutProp, isMaxReached: isMaxReachedProp, isRuleBlocked: isRuleBlockedProp, statusTone: statusToneProp, statusLabel, disabledReason, disabled, }: OfferCardProps): JSX.Element;
|
|
10
10
|
displayName: string;
|
|
11
11
|
};
|
|
12
12
|
export default OfferCard;
|
|
@@ -350,6 +350,13 @@ export interface OfferCardProps {
|
|
|
350
350
|
* @default 'primary'
|
|
351
351
|
*/
|
|
352
352
|
selectedColor?: 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'danger';
|
|
353
|
+
/**
|
|
354
|
+
* How an available offer is added to the selection.
|
|
355
|
+
* `press-to-add` makes the whole card add one item and omits the inline
|
|
356
|
+
* stepper. It is useful when a separate order summary owns removal.
|
|
357
|
+
* @default 'stepper'
|
|
358
|
+
*/
|
|
359
|
+
selectionMode?: 'stepper' | 'press-to-add';
|
|
353
360
|
/**
|
|
354
361
|
* Whether to show the component inside a Card
|
|
355
362
|
* @default true
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { JSX } from 'react';
|
|
2
|
+
export type ProgramListItemStatus = 'open' | 'selling-fast' | 'sold-out';
|
|
3
|
+
export interface ProgramListItemProps {
|
|
4
|
+
title: string;
|
|
5
|
+
subtitle: string;
|
|
6
|
+
price?: string;
|
|
7
|
+
imageUrl?: string;
|
|
8
|
+
status?: ProgramListItemStatus;
|
|
9
|
+
isDisabled?: boolean;
|
|
10
|
+
onPress?(): void;
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
/** Pressable Programs catalog row for POS list mode. */
|
|
14
|
+
export declare function ProgramListItem({ title, subtitle, price, imageUrl, status, isDisabled, onPress, className }: ProgramListItemProps): JSX.Element;
|
|
15
|
+
export declare namespace ProgramListItem {
|
|
16
|
+
var displayName: string;
|
|
17
|
+
}
|
package/dist/patterns/index.d.ts
CHANGED
|
@@ -13,10 +13,10 @@ export { DonationAmounts } from './DonationAmounts';
|
|
|
13
13
|
export type { DonationAmountsProps, DonationAmount, SelectedDonation, DonationLabels } from './DonationAmounts';
|
|
14
14
|
export { ExpireCartTimer } from './ExpireCartTimer';
|
|
15
15
|
export type { ExpireCartTimerProps } from './ExpireCartTimer';
|
|
16
|
-
export { EventDetails } from './EventDetails';
|
|
17
|
-
export type { EventDetailsProps } from './EventDetails';
|
|
18
|
-
export { OfferCard, OfferCardList, OfferCardSkeleton, OfferCardError, OfferCardEmpty, offerListVariants, offerCardVariants, formatCurrency as formatOfferCurrency, parseCurrency as parseOfferCurrency, } from './OfferCard';
|
|
19
|
-
export type { Offer, OfferSelection, OfferCardLabels, OfferCardErrorLabels, OfferCardClassNames, OfferCardListClassNames, OfferCardSkeletonClassNames, OfferCardErrorClassNames, OfferCardEmptyClassNames, OfferCardSlots, OfferCardProps, OfferCardListProps, OfferCardSkeletonProps, OfferCardErrorProps, OfferCardEmptyProps, } from './OfferCard';
|
|
16
|
+
export { EventDetails } from './Programs/EventDetails';
|
|
17
|
+
export type { EventDetailsProps } from './Programs/EventDetails';
|
|
18
|
+
export { OfferCard, OfferCardList, OfferCardSkeleton, OfferCardError, OfferCardEmpty, offerListVariants, offerCardVariants, formatCurrency as formatOfferCurrency, parseCurrency as parseOfferCurrency, } from './Programs/OfferCard';
|
|
19
|
+
export type { Offer, OfferSelection, OfferCardLabels, OfferCardErrorLabels, OfferCardClassNames, OfferCardListClassNames, OfferCardSkeletonClassNames, OfferCardErrorClassNames, OfferCardEmptyClassNames, OfferCardSlots, OfferCardProps, OfferCardListProps, OfferCardSkeletonProps, OfferCardErrorProps, OfferCardEmptyProps, } from './Programs/OfferCard';
|
|
20
20
|
export { RevenueDistributionCard, RevenueDistributionSkeleton, RevenueDistributionError, RevenueDistributionEmpty, formatAmount as formatRevenueAmount, formatCurrency as formatRevenueCurrency, getCurrencySymbol, parseCurrency as parseRevenueCurrency, calculateAllocationDifference, generateDistributionId, } from './RevenueDistribution';
|
|
21
21
|
export type { GlAccount, Distribution, RevenueDistributionLabels, RevenueDistributionErrorLabels, RevenueDistributionEmptyLabels, RevenueDistributionCardClassNames, RevenueDistributionSkeletonClassNames, RevenueDistributionErrorClassNames, RevenueDistributionEmptyClassNames, RevenueDistributionCardProps, RevenueDistributionSkeletonProps, RevenueDistributionErrorProps, RevenueDistributionEmptyProps, } from './RevenueDistribution';
|
|
22
22
|
export { InstallmentFundAssignment, InstallmentFundAssignmentSkeleton } from './InstallmentFundAssignment';
|
|
@@ -31,8 +31,10 @@ export { MembershipSelectCards } from './MembershipSelectCards';
|
|
|
31
31
|
export type * from './MembershipSelectCards';
|
|
32
32
|
export { ItemCard } from './ItemCard';
|
|
33
33
|
export type * from './ItemCard';
|
|
34
|
-
export { CatalogItemCard } from './CatalogItemCard';
|
|
35
|
-
export type * from './CatalogItemCard';
|
|
34
|
+
export { CatalogItemCard } from './Programs/CatalogItemCard';
|
|
35
|
+
export type * from './Programs/CatalogItemCard';
|
|
36
|
+
export { ProgramListItem } from './Programs/ProgramListItem';
|
|
37
|
+
export type * from './Programs/ProgramListItem';
|
|
36
38
|
export { FeedbackState, EmptyState, ErrorState, LoadingState, SuccessState } from './FeedbackState';
|
|
37
39
|
export type * from './FeedbackState';
|
|
38
40
|
export { Toggle } from './Toggle';
|
|
@@ -41,8 +43,8 @@ export { TicketSelection } from './TicketSelection';
|
|
|
41
43
|
export type * from './TicketSelection';
|
|
42
44
|
export { FilterPopover } from './FilterPopover';
|
|
43
45
|
export type * from './FilterPopover';
|
|
44
|
-
export { SessionTimeline } from './SessionTimeline';
|
|
45
|
-
export type * from './SessionTimeline';
|
|
46
|
+
export { SessionTimeline } from './Programs/SessionTimeline';
|
|
47
|
+
export type * from './Programs/SessionTimeline';
|
|
46
48
|
export { PageHeader } from './PageHeader';
|
|
47
49
|
export type { PageHeaderProps, PageHeaderClassNames } from './PageHeader';
|
|
48
50
|
export { StatusChip } from './StatusChip';
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/patterns/{OfferCard → Programs/OfferCard}/examples/CustomQuantitySelectorExample.d.ts
RENAMED
|
File without changes
|
/package/dist/patterns/{OfferCard → Programs/OfferCard}/examples/ListWithEurosCurrencyExample.d.ts
RENAMED
|
File without changes
|
/package/dist/patterns/{OfferCard → Programs/OfferCard}/examples/ListWithoutAnimationExample.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|