@veevarts/design-system 1.10.0 → 1.11.0-beta.2

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.
@@ -52,6 +52,11 @@ export interface DonationLabels {
52
52
  * Aria label for custom amount input
53
53
  */
54
54
  customAmountAriaLabel?: string;
55
+ /**
56
+ * Label for the add donation button next to the custom input
57
+ * @default 'Add Donation'
58
+ */
59
+ addDonationButton?: string;
55
60
  }
56
61
  /**
57
62
  * Props for DonationAmounts component
@@ -74,6 +79,12 @@ export interface DonationAmountsProps {
74
79
  * Callback fired when donation selection changes
75
80
  */
76
81
  onChange?: (donation: SelectedDonation | null) => void;
82
+ /**
83
+ * Callback fired when the "Add Donation" button is pressed.
84
+ * Receives the current selected donation.
85
+ * If provided, an "Add Donation" button is shown next to the custom amount input.
86
+ */
87
+ onAddDonation?: (donation: SelectedDonation) => void;
77
88
  /**
78
89
  * Currency code (ISO 4217)
79
90
  * @default 'USD'
@@ -133,6 +144,11 @@ export interface DonationAmountsProps {
133
144
  * @default 'bordered'
134
145
  */
135
146
  inputVariant?: 'flat' | 'bordered' | 'faded' | 'underlined';
147
+ /**
148
+ * Size of the custom amount input and add button
149
+ * @default 'md'
150
+ */
151
+ size?: 'sm' | 'md' | 'lg';
136
152
  /**
137
153
  * Additional CSS classes
138
154
  */
@@ -8,6 +8,8 @@ export interface MembershipSelectCardsProps {
8
8
  labels?: Partial<MembershipSelectCardsLabels>;
9
9
  showRenewal?: boolean;
10
10
  defaultRenewalValue?: boolean;
11
+ initialSelectedMembershipId?: string | null;
12
+ allowReselect?: boolean;
11
13
  onRenewalChange?: (value: boolean) => void;
12
14
  onCardSelect?: (id: string) => void;
13
15
  className?: string;
@@ -12,6 +12,9 @@ export type TicketSelectionLabels = {
12
12
  export type TicketData = {
13
13
  id: string;
14
14
  name: string;
15
+ membershipName?: string;
16
+ membershipAlert?: string;
17
+ purchasedQuantity?: number;
15
18
  price: number;
16
19
  originalPrice: number;
17
20
  max: number;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@veevarts/design-system",
3
3
  "private": false,
4
- "version": "1.10.0",
4
+ "version": "1.11.0-beta.2",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",