@opensite/ui 1.3.2 → 1.3.4
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/footer-accordion-social.cjs +1344 -0
- package/dist/footer-accordion-social.d.cts +154 -0
- package/dist/footer-accordion-social.d.ts +154 -0
- package/dist/footer-accordion-social.js +1322 -0
- package/dist/footer-info-cards-accordion.cjs +1427 -0
- package/dist/footer-info-cards-accordion.d.cts +278 -0
- package/dist/footer-info-cards-accordion.d.ts +278 -0
- package/dist/footer-info-cards-accordion.js +1404 -0
- package/dist/footer-newsletter-contact.cjs +1281 -0
- package/dist/footer-newsletter-contact.d.cts +163 -0
- package/dist/footer-newsletter-contact.d.ts +163 -0
- package/dist/footer-newsletter-contact.js +1259 -0
- package/dist/footer-split-image-accordion.cjs +1395 -0
- package/dist/footer-split-image-accordion.d.cts +236 -0
- package/dist/footer-split-image-accordion.d.ts +236 -0
- package/dist/footer-split-image-accordion.js +1372 -0
- package/dist/list-achievements-showcase.cjs +1141 -0
- package/dist/list-achievements-showcase.d.cts +131 -0
- package/dist/list-achievements-showcase.d.ts +131 -0
- package/dist/list-achievements-showcase.js +1119 -0
- package/dist/list-career-timeline.cjs +531 -0
- package/dist/list-career-timeline.d.cts +153 -0
- package/dist/list-career-timeline.d.ts +153 -0
- package/dist/list-career-timeline.js +509 -0
- package/dist/list-feature-comparison.cjs +1211 -0
- package/dist/list-feature-comparison.d.cts +189 -0
- package/dist/list-feature-comparison.d.ts +189 -0
- package/dist/list-feature-comparison.js +1190 -0
- package/dist/list-metrics-dashboard.cjs +1402 -0
- package/dist/list-metrics-dashboard.d.cts +191 -0
- package/dist/list-metrics-dashboard.d.ts +191 -0
- package/dist/list-metrics-dashboard.js +1379 -0
- package/dist/list-service-category-table.cjs +762 -0
- package/dist/list-service-category-table.d.cts +135 -0
- package/dist/list-service-category-table.d.ts +135 -0
- package/dist/list-service-category-table.js +741 -0
- package/dist/offer-modal-membership-image.cjs +1361 -0
- package/dist/offer-modal-membership-image.d.cts +194 -0
- package/dist/offer-modal-membership-image.d.ts +194 -0
- package/dist/offer-modal-membership-image.js +1339 -0
- package/dist/offer-modal-newsletter-discount.cjs +1296 -0
- package/dist/offer-modal-newsletter-discount.d.cts +164 -0
- package/dist/offer-modal-newsletter-discount.d.ts +164 -0
- package/dist/offer-modal-newsletter-discount.js +1274 -0
- package/dist/offer-modal-sheet-newsletter.cjs +1360 -0
- package/dist/offer-modal-sheet-newsletter.d.cts +221 -0
- package/dist/offer-modal-sheet-newsletter.d.ts +221 -0
- package/dist/offer-modal-sheet-newsletter.js +1337 -0
- package/dist/pricing-addons-cards.cjs +1143 -0
- package/dist/pricing-addons-cards.d.cts +203 -0
- package/dist/pricing-addons-cards.d.ts +203 -0
- package/dist/pricing-addons-cards.js +1122 -0
- package/dist/pricing-addons-featured.cjs +1224 -0
- package/dist/pricing-addons-featured.d.cts +271 -0
- package/dist/pricing-addons-featured.d.ts +271 -0
- package/dist/pricing-addons-featured.js +1203 -0
- package/dist/pricing-collapsible-plans.cjs +1315 -0
- package/dist/pricing-collapsible-plans.d.cts +258 -0
- package/dist/pricing-collapsible-plans.d.ts +258 -0
- package/dist/pricing-collapsible-plans.js +1294 -0
- package/dist/pricing-columns-toggle.cjs +1234 -0
- package/dist/pricing-columns-toggle.d.cts +251 -0
- package/dist/pricing-columns-toggle.d.ts +251 -0
- package/dist/pricing-columns-toggle.js +1212 -0
- package/dist/pricing-comparison-headers.cjs +1235 -0
- package/dist/pricing-comparison-headers.d.cts +245 -0
- package/dist/pricing-comparison-headers.d.ts +245 -0
- package/dist/pricing-comparison-headers.js +1213 -0
- package/dist/pricing-comparison-table.cjs +1374 -0
- package/dist/pricing-comparison-table.d.cts +280 -0
- package/dist/pricing-comparison-table.d.ts +280 -0
- package/dist/pricing-comparison-table.js +1352 -0
- package/dist/pricing-discount-card.cjs +1217 -0
- package/dist/pricing-discount-card.d.cts +195 -0
- package/dist/pricing-discount-card.d.ts +195 -0
- package/dist/pricing-discount-card.js +1195 -0
- package/dist/pricing-enterprise-contact.cjs +1094 -0
- package/dist/pricing-enterprise-contact.d.cts +170 -0
- package/dist/pricing-enterprise-contact.d.ts +170 -0
- package/dist/pricing-enterprise-contact.js +1073 -0
- package/dist/pricing-feature-matrix.cjs +1197 -0
- package/dist/pricing-feature-matrix.d.cts +56 -0
- package/dist/pricing-feature-matrix.d.ts +56 -0
- package/dist/pricing-feature-matrix.js +1174 -0
- package/dist/pricing-four-tier-toggle.cjs +1320 -0
- package/dist/pricing-four-tier-toggle.d.cts +266 -0
- package/dist/pricing-four-tier-toggle.d.ts +266 -0
- package/dist/pricing-four-tier-toggle.js +1297 -0
- package/dist/pricing-full-comparison.cjs +1301 -0
- package/dist/pricing-full-comparison.d.cts +265 -0
- package/dist/pricing-full-comparison.d.ts +265 -0
- package/dist/pricing-full-comparison.js +1279 -0
- package/dist/pricing-gradient-cards.cjs +1248 -0
- package/dist/pricing-gradient-cards.d.cts +258 -0
- package/dist/pricing-gradient-cards.d.ts +258 -0
- package/dist/pricing-gradient-cards.js +1226 -0
- package/dist/pricing-icon-headers.cjs +1163 -0
- package/dist/pricing-icon-headers.d.cts +218 -0
- package/dist/pricing-icon-headers.d.ts +218 -0
- package/dist/pricing-icon-headers.js +1142 -0
- package/dist/pricing-minimal-cards.cjs +1146 -0
- package/dist/pricing-minimal-cards.d.cts +210 -0
- package/dist/pricing-minimal-cards.d.ts +210 -0
- package/dist/pricing-minimal-cards.js +1125 -0
- package/dist/pricing-packages-radio.cjs +1203 -0
- package/dist/pricing-packages-radio.d.cts +243 -0
- package/dist/pricing-packages-radio.d.ts +243 -0
- package/dist/pricing-packages-radio.js +1182 -0
- package/dist/pricing-popular-highlight.cjs +1293 -0
- package/dist/pricing-popular-highlight.d.cts +255 -0
- package/dist/pricing-popular-highlight.d.ts +255 -0
- package/dist/pricing-popular-highlight.js +1271 -0
- package/dist/pricing-radio-toggle.cjs +1277 -0
- package/dist/pricing-radio-toggle.d.cts +251 -0
- package/dist/pricing-radio-toggle.d.ts +251 -0
- package/dist/pricing-radio-toggle.js +1255 -0
- package/dist/pricing-responsive-table.cjs +1229 -0
- package/dist/pricing-responsive-table.d.cts +55 -0
- package/dist/pricing-responsive-table.d.ts +55 -0
- package/dist/pricing-responsive-table.js +1206 -0
- package/dist/pricing-services-cards.cjs +1209 -0
- package/dist/pricing-services-cards.d.cts +230 -0
- package/dist/pricing-services-cards.d.ts +230 -0
- package/dist/pricing-services-cards.js +1188 -0
- package/dist/pricing-simple-card.cjs +1102 -0
- package/dist/pricing-simple-card.d.cts +174 -0
- package/dist/pricing-simple-card.d.ts +174 -0
- package/dist/pricing-simple-card.js +1081 -0
- package/dist/pricing-single-card.cjs +1174 -0
- package/dist/pricing-single-card.d.cts +201 -0
- package/dist/pricing-single-card.d.ts +201 -0
- package/dist/pricing-single-card.js +1152 -0
- package/dist/pricing-split-layout.cjs +1001 -0
- package/dist/pricing-split-layout.d.cts +44 -0
- package/dist/pricing-split-layout.d.ts +44 -0
- package/dist/pricing-split-layout.js +980 -0
- package/dist/pricing-spotlight-card.cjs +1157 -0
- package/dist/pricing-spotlight-card.d.cts +201 -0
- package/dist/pricing-spotlight-card.d.ts +201 -0
- package/dist/pricing-spotlight-card.js +1136 -0
- package/dist/pricing-switch-cards.cjs +1274 -0
- package/dist/pricing-switch-cards.d.cts +254 -0
- package/dist/pricing-switch-cards.d.ts +254 -0
- package/dist/pricing-switch-cards.js +1252 -0
- package/dist/pricing-tabs-toggle.cjs +1314 -0
- package/dist/pricing-tabs-toggle.d.cts +274 -0
- package/dist/pricing-tabs-toggle.d.ts +274 -0
- package/dist/pricing-tabs-toggle.js +1291 -0
- package/dist/pricing-tier-grid.cjs +1190 -0
- package/dist/pricing-tier-grid.d.cts +224 -0
- package/dist/pricing-tier-grid.d.ts +224 -0
- package/dist/pricing-tier-grid.js +1169 -0
- package/dist/pricing-toggle-cards.cjs +1330 -0
- package/dist/pricing-toggle-cards.d.cts +267 -0
- package/dist/pricing-toggle-cards.d.ts +267 -0
- package/dist/pricing-toggle-cards.js +1307 -0
- package/dist/pricing-toggle-period.cjs +1251 -0
- package/dist/pricing-toggle-period.d.cts +265 -0
- package/dist/pricing-toggle-period.d.ts +265 -0
- package/dist/pricing-toggle-period.js +1230 -0
- package/dist/pricing-two-column-basic.cjs +1243 -0
- package/dist/pricing-two-column-basic.d.cts +244 -0
- package/dist/pricing-two-column-basic.d.ts +244 -0
- package/dist/pricing-two-column-basic.js +1222 -0
- package/dist/registry.cjs +109 -85
- package/dist/registry.js +931 -907
- package/package.json +1 -1
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { f as SectionBackground, g as SectionSpacing, t as PatternName } from './community-initiatives-Bz_A5vLU.cjs';
|
|
3
|
+
import { A as ActionConfig } from './blocks-Cohq4eio.cjs';
|
|
4
|
+
import 'react/jsx-runtime';
|
|
5
|
+
import 'class-variance-authority';
|
|
6
|
+
import './button-variants-lRElsmTc.cjs';
|
|
7
|
+
import 'class-variance-authority/types';
|
|
8
|
+
|
|
9
|
+
interface PricingToggleCardsFeature {
|
|
10
|
+
/**
|
|
11
|
+
* Feature text
|
|
12
|
+
*/
|
|
13
|
+
text?: React.ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* Optional icon element
|
|
16
|
+
*/
|
|
17
|
+
icon?: React.ReactNode;
|
|
18
|
+
/**
|
|
19
|
+
* Optional icon name for DynamicIcon
|
|
20
|
+
*/
|
|
21
|
+
iconName?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Additional CSS classes for the feature item
|
|
24
|
+
*/
|
|
25
|
+
className?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Additional CSS classes for the icon
|
|
28
|
+
*/
|
|
29
|
+
iconClassName?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Additional CSS classes for the feature text
|
|
32
|
+
*/
|
|
33
|
+
textClassName?: string;
|
|
34
|
+
}
|
|
35
|
+
interface PricingToggleCardsPlan {
|
|
36
|
+
/**
|
|
37
|
+
* Plan name
|
|
38
|
+
*/
|
|
39
|
+
name?: React.ReactNode;
|
|
40
|
+
/**
|
|
41
|
+
* Plan description
|
|
42
|
+
*/
|
|
43
|
+
description?: React.ReactNode;
|
|
44
|
+
/**
|
|
45
|
+
* Monthly price display
|
|
46
|
+
*/
|
|
47
|
+
monthlyPrice?: React.ReactNode;
|
|
48
|
+
/**
|
|
49
|
+
* Yearly price display
|
|
50
|
+
*/
|
|
51
|
+
yearlyPrice?: React.ReactNode;
|
|
52
|
+
/**
|
|
53
|
+
* Plan features
|
|
54
|
+
*/
|
|
55
|
+
features?: PricingToggleCardsFeature[];
|
|
56
|
+
/**
|
|
57
|
+
* Custom slot for rendering features (overrides features array)
|
|
58
|
+
*/
|
|
59
|
+
featuresSlot?: React.ReactNode;
|
|
60
|
+
/**
|
|
61
|
+
* Call-to-action configuration
|
|
62
|
+
*/
|
|
63
|
+
action?: ActionConfig;
|
|
64
|
+
/**
|
|
65
|
+
* Custom slot for rendering action (overrides action)
|
|
66
|
+
*/
|
|
67
|
+
actionSlot?: React.ReactNode;
|
|
68
|
+
/**
|
|
69
|
+
* Highlight this plan
|
|
70
|
+
*/
|
|
71
|
+
isPopular?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Optional badge content (e.g. Most Popular)
|
|
74
|
+
*/
|
|
75
|
+
badge?: React.ReactNode;
|
|
76
|
+
/**
|
|
77
|
+
* Additional CSS classes for the plan card
|
|
78
|
+
*/
|
|
79
|
+
className?: string;
|
|
80
|
+
}
|
|
81
|
+
interface PricingToggleCardsProps {
|
|
82
|
+
/**
|
|
83
|
+
* Section heading
|
|
84
|
+
*/
|
|
85
|
+
heading?: React.ReactNode;
|
|
86
|
+
/**
|
|
87
|
+
* Supporting description
|
|
88
|
+
*/
|
|
89
|
+
description?: React.ReactNode;
|
|
90
|
+
/**
|
|
91
|
+
* Toggle label for monthly billing
|
|
92
|
+
*/
|
|
93
|
+
monthlyLabel?: React.ReactNode;
|
|
94
|
+
/**
|
|
95
|
+
* Toggle label for yearly billing
|
|
96
|
+
*/
|
|
97
|
+
yearlyLabel?: React.ReactNode;
|
|
98
|
+
/**
|
|
99
|
+
* Badge displayed on yearly toggle
|
|
100
|
+
*/
|
|
101
|
+
yearlyBadge?: React.ReactNode;
|
|
102
|
+
/**
|
|
103
|
+
* Monthly price suffix
|
|
104
|
+
*/
|
|
105
|
+
monthlyInterval?: React.ReactNode;
|
|
106
|
+
/**
|
|
107
|
+
* Yearly price suffix
|
|
108
|
+
*/
|
|
109
|
+
yearlyInterval?: React.ReactNode;
|
|
110
|
+
/**
|
|
111
|
+
* Pricing plans
|
|
112
|
+
*/
|
|
113
|
+
plans?: PricingToggleCardsPlan[];
|
|
114
|
+
/**
|
|
115
|
+
* Custom slot for rendering plans (overrides plans array)
|
|
116
|
+
*/
|
|
117
|
+
plansSlot?: React.ReactNode;
|
|
118
|
+
/**
|
|
119
|
+
* Default icon used for feature items
|
|
120
|
+
*/
|
|
121
|
+
featureIcon?: React.ReactNode;
|
|
122
|
+
/**
|
|
123
|
+
* Default icon name used for feature items
|
|
124
|
+
*/
|
|
125
|
+
featureIconName?: string;
|
|
126
|
+
/**
|
|
127
|
+
* Badge content for popular plans
|
|
128
|
+
*/
|
|
129
|
+
popularBadge?: React.ReactNode;
|
|
130
|
+
/**
|
|
131
|
+
* Background style for the section
|
|
132
|
+
*/
|
|
133
|
+
background?: SectionBackground;
|
|
134
|
+
/**
|
|
135
|
+
* Vertical spacing for the section
|
|
136
|
+
*/
|
|
137
|
+
spacing?: SectionSpacing;
|
|
138
|
+
/**
|
|
139
|
+
* Optional background pattern name or URL
|
|
140
|
+
*/
|
|
141
|
+
pattern?: PatternName | undefined;
|
|
142
|
+
/**
|
|
143
|
+
* Pattern overlay opacity (0-1)
|
|
144
|
+
*/
|
|
145
|
+
patternOpacity?: number;
|
|
146
|
+
/**
|
|
147
|
+
* Additional CSS classes for the pattern overlay
|
|
148
|
+
*/
|
|
149
|
+
patternClassName?: string;
|
|
150
|
+
/**
|
|
151
|
+
* Additional CSS classes for the section
|
|
152
|
+
*/
|
|
153
|
+
className?: string;
|
|
154
|
+
/**
|
|
155
|
+
* Additional CSS classes for the container
|
|
156
|
+
*/
|
|
157
|
+
containerClassName?: string;
|
|
158
|
+
/**
|
|
159
|
+
* Additional CSS classes for the header area
|
|
160
|
+
*/
|
|
161
|
+
headerClassName?: string;
|
|
162
|
+
/**
|
|
163
|
+
* Additional CSS classes for the heading
|
|
164
|
+
*/
|
|
165
|
+
headingClassName?: string;
|
|
166
|
+
/**
|
|
167
|
+
* Additional CSS classes for the description
|
|
168
|
+
*/
|
|
169
|
+
descriptionClassName?: string;
|
|
170
|
+
/**
|
|
171
|
+
* Additional CSS classes for the toggle wrapper
|
|
172
|
+
*/
|
|
173
|
+
toggleClassName?: string;
|
|
174
|
+
/**
|
|
175
|
+
* Additional CSS classes for the toggle labels
|
|
176
|
+
*/
|
|
177
|
+
toggleLabelClassName?: string;
|
|
178
|
+
/**
|
|
179
|
+
* Additional CSS classes for the yearly badge
|
|
180
|
+
*/
|
|
181
|
+
yearlyBadgeClassName?: string;
|
|
182
|
+
/**
|
|
183
|
+
* Additional CSS classes for the grid
|
|
184
|
+
*/
|
|
185
|
+
gridClassName?: string;
|
|
186
|
+
/**
|
|
187
|
+
* Additional CSS classes for each card
|
|
188
|
+
*/
|
|
189
|
+
cardClassName?: string;
|
|
190
|
+
/**
|
|
191
|
+
* Additional CSS classes for highlighted cards
|
|
192
|
+
*/
|
|
193
|
+
popularCardClassName?: string;
|
|
194
|
+
/**
|
|
195
|
+
* Additional CSS classes for the badge
|
|
196
|
+
*/
|
|
197
|
+
badgeClassName?: string;
|
|
198
|
+
/**
|
|
199
|
+
* Additional CSS classes for card headers
|
|
200
|
+
*/
|
|
201
|
+
cardHeaderClassName?: string;
|
|
202
|
+
/**
|
|
203
|
+
* Additional CSS classes for card titles
|
|
204
|
+
*/
|
|
205
|
+
cardTitleClassName?: string;
|
|
206
|
+
/**
|
|
207
|
+
* Additional CSS classes for card descriptions
|
|
208
|
+
*/
|
|
209
|
+
cardDescriptionClassName?: string;
|
|
210
|
+
/**
|
|
211
|
+
* Additional CSS classes for the price
|
|
212
|
+
*/
|
|
213
|
+
priceClassName?: string;
|
|
214
|
+
/**
|
|
215
|
+
* Additional CSS classes for price interval
|
|
216
|
+
*/
|
|
217
|
+
priceIntervalClassName?: string;
|
|
218
|
+
/**
|
|
219
|
+
* Additional CSS classes for the separator
|
|
220
|
+
*/
|
|
221
|
+
separatorClassName?: string;
|
|
222
|
+
/**
|
|
223
|
+
* Additional CSS classes for the features list
|
|
224
|
+
*/
|
|
225
|
+
featuresClassName?: string;
|
|
226
|
+
/**
|
|
227
|
+
* Additional CSS classes for feature items
|
|
228
|
+
*/
|
|
229
|
+
featureItemClassName?: string;
|
|
230
|
+
/**
|
|
231
|
+
* Additional CSS classes for feature icons
|
|
232
|
+
*/
|
|
233
|
+
featureIconClassName?: string;
|
|
234
|
+
/**
|
|
235
|
+
* Additional CSS classes for feature text
|
|
236
|
+
*/
|
|
237
|
+
featureTextClassName?: string;
|
|
238
|
+
/**
|
|
239
|
+
* Additional CSS classes for the card footer
|
|
240
|
+
*/
|
|
241
|
+
cardFooterClassName?: string;
|
|
242
|
+
/**
|
|
243
|
+
* Additional CSS classes for the action
|
|
244
|
+
*/
|
|
245
|
+
actionClassName?: string;
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* PricingToggleCards displays pricing plans with a monthly/yearly toggle switch.
|
|
249
|
+
* Features Card components with feature lists, popular plan highlighting, and responsive grid layout.
|
|
250
|
+
* The toggle allows users to compare monthly vs annual pricing with potential savings.
|
|
251
|
+
*
|
|
252
|
+
* Ideal for subscription-based services that offer both monthly and annual billing options.
|
|
253
|
+
*
|
|
254
|
+
* @example
|
|
255
|
+
* ```tsx
|
|
256
|
+
* <PricingToggleCards
|
|
257
|
+
* heading="Choose Your Plan"
|
|
258
|
+
* description="Save 20% with annual billing"
|
|
259
|
+
* plans={[
|
|
260
|
+
* { name: "Basic", monthlyPrice: "$9", yearlyPrice: "$90", features: [{ text: "Feature 1" }] }
|
|
261
|
+
* ]}
|
|
262
|
+
* />
|
|
263
|
+
* ```
|
|
264
|
+
*/
|
|
265
|
+
declare function PricingToggleCards({ heading, description, monthlyLabel, yearlyLabel, yearlyBadge, monthlyInterval, yearlyInterval, plans, plansSlot, featureIcon, featureIconName, popularBadge, background, spacing, pattern, patternOpacity, patternClassName, className, containerClassName, headerClassName, headingClassName, descriptionClassName, toggleClassName, toggleLabelClassName, yearlyBadgeClassName, gridClassName, cardClassName, popularCardClassName, badgeClassName, cardHeaderClassName, cardTitleClassName, cardDescriptionClassName, priceClassName, priceIntervalClassName, separatorClassName, featuresClassName, featureItemClassName, featureIconClassName, featureTextClassName, cardFooterClassName, actionClassName, }: PricingToggleCardsProps): React.JSX.Element;
|
|
266
|
+
|
|
267
|
+
export { PricingToggleCards, type PricingToggleCardsProps };
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { f as SectionBackground, g as SectionSpacing, t as PatternName } from './community-initiatives-Bi_ClKrO.js';
|
|
3
|
+
import { A as ActionConfig } from './blocks-k17uluAz.js';
|
|
4
|
+
import 'react/jsx-runtime';
|
|
5
|
+
import 'class-variance-authority';
|
|
6
|
+
import './button-variants-lRElsmTc.js';
|
|
7
|
+
import 'class-variance-authority/types';
|
|
8
|
+
|
|
9
|
+
interface PricingToggleCardsFeature {
|
|
10
|
+
/**
|
|
11
|
+
* Feature text
|
|
12
|
+
*/
|
|
13
|
+
text?: React.ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* Optional icon element
|
|
16
|
+
*/
|
|
17
|
+
icon?: React.ReactNode;
|
|
18
|
+
/**
|
|
19
|
+
* Optional icon name for DynamicIcon
|
|
20
|
+
*/
|
|
21
|
+
iconName?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Additional CSS classes for the feature item
|
|
24
|
+
*/
|
|
25
|
+
className?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Additional CSS classes for the icon
|
|
28
|
+
*/
|
|
29
|
+
iconClassName?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Additional CSS classes for the feature text
|
|
32
|
+
*/
|
|
33
|
+
textClassName?: string;
|
|
34
|
+
}
|
|
35
|
+
interface PricingToggleCardsPlan {
|
|
36
|
+
/**
|
|
37
|
+
* Plan name
|
|
38
|
+
*/
|
|
39
|
+
name?: React.ReactNode;
|
|
40
|
+
/**
|
|
41
|
+
* Plan description
|
|
42
|
+
*/
|
|
43
|
+
description?: React.ReactNode;
|
|
44
|
+
/**
|
|
45
|
+
* Monthly price display
|
|
46
|
+
*/
|
|
47
|
+
monthlyPrice?: React.ReactNode;
|
|
48
|
+
/**
|
|
49
|
+
* Yearly price display
|
|
50
|
+
*/
|
|
51
|
+
yearlyPrice?: React.ReactNode;
|
|
52
|
+
/**
|
|
53
|
+
* Plan features
|
|
54
|
+
*/
|
|
55
|
+
features?: PricingToggleCardsFeature[];
|
|
56
|
+
/**
|
|
57
|
+
* Custom slot for rendering features (overrides features array)
|
|
58
|
+
*/
|
|
59
|
+
featuresSlot?: React.ReactNode;
|
|
60
|
+
/**
|
|
61
|
+
* Call-to-action configuration
|
|
62
|
+
*/
|
|
63
|
+
action?: ActionConfig;
|
|
64
|
+
/**
|
|
65
|
+
* Custom slot for rendering action (overrides action)
|
|
66
|
+
*/
|
|
67
|
+
actionSlot?: React.ReactNode;
|
|
68
|
+
/**
|
|
69
|
+
* Highlight this plan
|
|
70
|
+
*/
|
|
71
|
+
isPopular?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Optional badge content (e.g. Most Popular)
|
|
74
|
+
*/
|
|
75
|
+
badge?: React.ReactNode;
|
|
76
|
+
/**
|
|
77
|
+
* Additional CSS classes for the plan card
|
|
78
|
+
*/
|
|
79
|
+
className?: string;
|
|
80
|
+
}
|
|
81
|
+
interface PricingToggleCardsProps {
|
|
82
|
+
/**
|
|
83
|
+
* Section heading
|
|
84
|
+
*/
|
|
85
|
+
heading?: React.ReactNode;
|
|
86
|
+
/**
|
|
87
|
+
* Supporting description
|
|
88
|
+
*/
|
|
89
|
+
description?: React.ReactNode;
|
|
90
|
+
/**
|
|
91
|
+
* Toggle label for monthly billing
|
|
92
|
+
*/
|
|
93
|
+
monthlyLabel?: React.ReactNode;
|
|
94
|
+
/**
|
|
95
|
+
* Toggle label for yearly billing
|
|
96
|
+
*/
|
|
97
|
+
yearlyLabel?: React.ReactNode;
|
|
98
|
+
/**
|
|
99
|
+
* Badge displayed on yearly toggle
|
|
100
|
+
*/
|
|
101
|
+
yearlyBadge?: React.ReactNode;
|
|
102
|
+
/**
|
|
103
|
+
* Monthly price suffix
|
|
104
|
+
*/
|
|
105
|
+
monthlyInterval?: React.ReactNode;
|
|
106
|
+
/**
|
|
107
|
+
* Yearly price suffix
|
|
108
|
+
*/
|
|
109
|
+
yearlyInterval?: React.ReactNode;
|
|
110
|
+
/**
|
|
111
|
+
* Pricing plans
|
|
112
|
+
*/
|
|
113
|
+
plans?: PricingToggleCardsPlan[];
|
|
114
|
+
/**
|
|
115
|
+
* Custom slot for rendering plans (overrides plans array)
|
|
116
|
+
*/
|
|
117
|
+
plansSlot?: React.ReactNode;
|
|
118
|
+
/**
|
|
119
|
+
* Default icon used for feature items
|
|
120
|
+
*/
|
|
121
|
+
featureIcon?: React.ReactNode;
|
|
122
|
+
/**
|
|
123
|
+
* Default icon name used for feature items
|
|
124
|
+
*/
|
|
125
|
+
featureIconName?: string;
|
|
126
|
+
/**
|
|
127
|
+
* Badge content for popular plans
|
|
128
|
+
*/
|
|
129
|
+
popularBadge?: React.ReactNode;
|
|
130
|
+
/**
|
|
131
|
+
* Background style for the section
|
|
132
|
+
*/
|
|
133
|
+
background?: SectionBackground;
|
|
134
|
+
/**
|
|
135
|
+
* Vertical spacing for the section
|
|
136
|
+
*/
|
|
137
|
+
spacing?: SectionSpacing;
|
|
138
|
+
/**
|
|
139
|
+
* Optional background pattern name or URL
|
|
140
|
+
*/
|
|
141
|
+
pattern?: PatternName | undefined;
|
|
142
|
+
/**
|
|
143
|
+
* Pattern overlay opacity (0-1)
|
|
144
|
+
*/
|
|
145
|
+
patternOpacity?: number;
|
|
146
|
+
/**
|
|
147
|
+
* Additional CSS classes for the pattern overlay
|
|
148
|
+
*/
|
|
149
|
+
patternClassName?: string;
|
|
150
|
+
/**
|
|
151
|
+
* Additional CSS classes for the section
|
|
152
|
+
*/
|
|
153
|
+
className?: string;
|
|
154
|
+
/**
|
|
155
|
+
* Additional CSS classes for the container
|
|
156
|
+
*/
|
|
157
|
+
containerClassName?: string;
|
|
158
|
+
/**
|
|
159
|
+
* Additional CSS classes for the header area
|
|
160
|
+
*/
|
|
161
|
+
headerClassName?: string;
|
|
162
|
+
/**
|
|
163
|
+
* Additional CSS classes for the heading
|
|
164
|
+
*/
|
|
165
|
+
headingClassName?: string;
|
|
166
|
+
/**
|
|
167
|
+
* Additional CSS classes for the description
|
|
168
|
+
*/
|
|
169
|
+
descriptionClassName?: string;
|
|
170
|
+
/**
|
|
171
|
+
* Additional CSS classes for the toggle wrapper
|
|
172
|
+
*/
|
|
173
|
+
toggleClassName?: string;
|
|
174
|
+
/**
|
|
175
|
+
* Additional CSS classes for the toggle labels
|
|
176
|
+
*/
|
|
177
|
+
toggleLabelClassName?: string;
|
|
178
|
+
/**
|
|
179
|
+
* Additional CSS classes for the yearly badge
|
|
180
|
+
*/
|
|
181
|
+
yearlyBadgeClassName?: string;
|
|
182
|
+
/**
|
|
183
|
+
* Additional CSS classes for the grid
|
|
184
|
+
*/
|
|
185
|
+
gridClassName?: string;
|
|
186
|
+
/**
|
|
187
|
+
* Additional CSS classes for each card
|
|
188
|
+
*/
|
|
189
|
+
cardClassName?: string;
|
|
190
|
+
/**
|
|
191
|
+
* Additional CSS classes for highlighted cards
|
|
192
|
+
*/
|
|
193
|
+
popularCardClassName?: string;
|
|
194
|
+
/**
|
|
195
|
+
* Additional CSS classes for the badge
|
|
196
|
+
*/
|
|
197
|
+
badgeClassName?: string;
|
|
198
|
+
/**
|
|
199
|
+
* Additional CSS classes for card headers
|
|
200
|
+
*/
|
|
201
|
+
cardHeaderClassName?: string;
|
|
202
|
+
/**
|
|
203
|
+
* Additional CSS classes for card titles
|
|
204
|
+
*/
|
|
205
|
+
cardTitleClassName?: string;
|
|
206
|
+
/**
|
|
207
|
+
* Additional CSS classes for card descriptions
|
|
208
|
+
*/
|
|
209
|
+
cardDescriptionClassName?: string;
|
|
210
|
+
/**
|
|
211
|
+
* Additional CSS classes for the price
|
|
212
|
+
*/
|
|
213
|
+
priceClassName?: string;
|
|
214
|
+
/**
|
|
215
|
+
* Additional CSS classes for price interval
|
|
216
|
+
*/
|
|
217
|
+
priceIntervalClassName?: string;
|
|
218
|
+
/**
|
|
219
|
+
* Additional CSS classes for the separator
|
|
220
|
+
*/
|
|
221
|
+
separatorClassName?: string;
|
|
222
|
+
/**
|
|
223
|
+
* Additional CSS classes for the features list
|
|
224
|
+
*/
|
|
225
|
+
featuresClassName?: string;
|
|
226
|
+
/**
|
|
227
|
+
* Additional CSS classes for feature items
|
|
228
|
+
*/
|
|
229
|
+
featureItemClassName?: string;
|
|
230
|
+
/**
|
|
231
|
+
* Additional CSS classes for feature icons
|
|
232
|
+
*/
|
|
233
|
+
featureIconClassName?: string;
|
|
234
|
+
/**
|
|
235
|
+
* Additional CSS classes for feature text
|
|
236
|
+
*/
|
|
237
|
+
featureTextClassName?: string;
|
|
238
|
+
/**
|
|
239
|
+
* Additional CSS classes for the card footer
|
|
240
|
+
*/
|
|
241
|
+
cardFooterClassName?: string;
|
|
242
|
+
/**
|
|
243
|
+
* Additional CSS classes for the action
|
|
244
|
+
*/
|
|
245
|
+
actionClassName?: string;
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* PricingToggleCards displays pricing plans with a monthly/yearly toggle switch.
|
|
249
|
+
* Features Card components with feature lists, popular plan highlighting, and responsive grid layout.
|
|
250
|
+
* The toggle allows users to compare monthly vs annual pricing with potential savings.
|
|
251
|
+
*
|
|
252
|
+
* Ideal for subscription-based services that offer both monthly and annual billing options.
|
|
253
|
+
*
|
|
254
|
+
* @example
|
|
255
|
+
* ```tsx
|
|
256
|
+
* <PricingToggleCards
|
|
257
|
+
* heading="Choose Your Plan"
|
|
258
|
+
* description="Save 20% with annual billing"
|
|
259
|
+
* plans={[
|
|
260
|
+
* { name: "Basic", monthlyPrice: "$9", yearlyPrice: "$90", features: [{ text: "Feature 1" }] }
|
|
261
|
+
* ]}
|
|
262
|
+
* />
|
|
263
|
+
* ```
|
|
264
|
+
*/
|
|
265
|
+
declare function PricingToggleCards({ heading, description, monthlyLabel, yearlyLabel, yearlyBadge, monthlyInterval, yearlyInterval, plans, plansSlot, featureIcon, featureIconName, popularBadge, background, spacing, pattern, patternOpacity, patternClassName, className, containerClassName, headerClassName, headingClassName, descriptionClassName, toggleClassName, toggleLabelClassName, yearlyBadgeClassName, gridClassName, cardClassName, popularCardClassName, badgeClassName, cardHeaderClassName, cardTitleClassName, cardDescriptionClassName, priceClassName, priceIntervalClassName, separatorClassName, featuresClassName, featureItemClassName, featureIconClassName, featureTextClassName, cardFooterClassName, actionClassName, }: PricingToggleCardsProps): React.JSX.Element;
|
|
266
|
+
|
|
267
|
+
export { PricingToggleCards, type PricingToggleCardsProps };
|