@veevarts/design-system 1.7.2 → 1.8.0-alpha.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.cjs +8 -8
- package/dist/index.js +1978 -1613
- package/dist/patterns/TicketSelection/TicketSelection.d.ts +3 -0
- package/dist/patterns/TicketSelection/__test__/TicketSelection.test.d.ts +4 -0
- package/dist/patterns/TicketSelection/index.d.ts +2 -0
- package/dist/patterns/TicketSelection/types.d.ts +48 -0
- package/dist/patterns/index.d.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export type TicketSelectionSettings = {
|
|
2
|
+
locale: string;
|
|
3
|
+
currency: string;
|
|
4
|
+
};
|
|
5
|
+
export type TicketSelectionLabels = {
|
|
6
|
+
ticketSelectionTitle: string;
|
|
7
|
+
ticketsAllowedToRedeem: string;
|
|
8
|
+
ticketsSelectedToRedeem: string;
|
|
9
|
+
noUpgradeTicketsAvailable: string;
|
|
10
|
+
selectAllButtonLabel: string;
|
|
11
|
+
};
|
|
12
|
+
export type TicketData = {
|
|
13
|
+
id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
price: number;
|
|
16
|
+
originalPrice: number;
|
|
17
|
+
max: number;
|
|
18
|
+
};
|
|
19
|
+
export type ExhibitionData = {
|
|
20
|
+
id: string;
|
|
21
|
+
exhibitionName: string;
|
|
22
|
+
tickets: TicketData[];
|
|
23
|
+
};
|
|
24
|
+
export type TicketSelectionState = {
|
|
25
|
+
[groupId: string]: {
|
|
26
|
+
[ticketId: string]: {
|
|
27
|
+
id: string;
|
|
28
|
+
selectedQuantity: number;
|
|
29
|
+
originalPrice: number;
|
|
30
|
+
discountedPrice: number;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
export type TicketSelectionData = ExhibitionData[];
|
|
35
|
+
export interface TicketSelectionProps {
|
|
36
|
+
/** Maximum number of tickets the user can select globally */
|
|
37
|
+
userMaxLimit?: number;
|
|
38
|
+
/** Labels for internationalization */
|
|
39
|
+
labels?: Partial<TicketSelectionLabels>;
|
|
40
|
+
/** Regional settings for locale and currency formatting */
|
|
41
|
+
settings?: TicketSelectionSettings;
|
|
42
|
+
/** Exhibition and ticket data */
|
|
43
|
+
ticketSelectionData?: TicketSelectionData;
|
|
44
|
+
/** Additional CSS classes for the root element */
|
|
45
|
+
className?: string;
|
|
46
|
+
/** Callback fired whenever the ticket selection state changes */
|
|
47
|
+
onSelectionChange?: (state: TicketSelectionState) => void;
|
|
48
|
+
}
|
package/dist/patterns/index.d.ts
CHANGED
|
@@ -17,3 +17,5 @@ export { OfferCard, OfferCardList, OfferCardSkeleton, OfferCardError, OfferCardE
|
|
|
17
17
|
export type { Offer, OfferSelection, OfferCardLabels, OfferCardErrorLabels, OfferCardClassNames, OfferCardListClassNames, OfferCardSkeletonClassNames, OfferCardErrorClassNames, OfferCardEmptyClassNames, OfferCardSlots, OfferCardProps, OfferCardListProps, OfferCardSkeletonProps, OfferCardErrorProps, OfferCardEmptyProps, } from './OfferCard';
|
|
18
18
|
export { RevenueDistributionCard, RevenueDistributionSkeleton, RevenueDistributionError, RevenueDistributionEmpty, formatAmount as formatRevenueAmount, formatCurrency as formatRevenueCurrency, getCurrencySymbol, parseCurrency as parseRevenueCurrency, calculateAllocationDifference, generateDistributionId, } from './RevenueDistribution';
|
|
19
19
|
export type { GlAccount, Distribution, RevenueDistributionLabels, RevenueDistributionErrorLabels, RevenueDistributionEmptyLabels, RevenueDistributionCardClassNames, RevenueDistributionSkeletonClassNames, RevenueDistributionErrorClassNames, RevenueDistributionEmptyClassNames, RevenueDistributionCardProps, RevenueDistributionSkeletonProps, RevenueDistributionErrorProps, RevenueDistributionEmptyProps, } from './RevenueDistribution';
|
|
20
|
+
export { TicketSelection } from './TicketSelection';
|
|
21
|
+
export type * from './TicketSelection';
|