@sikka/hawa 0.19.32-next → 0.19.34-next
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.d.mts +117 -150
- package/dist/index.d.ts +117 -150
- package/dist/index.js +27 -11
- package/dist/index.mjs +28 -12
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -38,6 +38,10 @@ type PositionType = "top" | "bottom" | "right" | "left";
|
|
|
38
38
|
type SeverityType = "info" | "warning" | "error" | "success" | "none";
|
|
39
39
|
type OrientationType = "vertical" | "horizontal";
|
|
40
40
|
type RadiusType = "full" | "inherit" | "none";
|
|
41
|
+
type RadioOptionType = {
|
|
42
|
+
label: string;
|
|
43
|
+
value: string;
|
|
44
|
+
};
|
|
41
45
|
|
|
42
46
|
type AdCardTypes = {
|
|
43
47
|
orientation: OrientationType;
|
|
@@ -52,15 +56,103 @@ type AdCardTypes = {
|
|
|
52
56
|
};
|
|
53
57
|
declare const AdCard: FC<AdCardTypes>;
|
|
54
58
|
|
|
59
|
+
type PlanFeature = {
|
|
60
|
+
soon?: boolean;
|
|
61
|
+
included?: boolean;
|
|
62
|
+
text: string;
|
|
63
|
+
hint?: string;
|
|
64
|
+
hintSide?: PositionType;
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
type PricingPlanTexts = {
|
|
68
|
+
title?: string;
|
|
69
|
+
subtitle?: string;
|
|
70
|
+
buttonText?: string;
|
|
71
|
+
cycleText?: string;
|
|
72
|
+
currencyText?: string;
|
|
73
|
+
soon?: string;
|
|
74
|
+
recommended?: string;
|
|
75
|
+
};
|
|
76
|
+
type ThirdPartyAuthTextsTypes = {
|
|
77
|
+
continueWithGoogle?: string;
|
|
78
|
+
continueWithTwitter?: string;
|
|
79
|
+
continueWithApple?: string;
|
|
80
|
+
continueWithMicrosoft?: string;
|
|
81
|
+
continueWithGithub?: string;
|
|
82
|
+
continueWithEmail?: string;
|
|
83
|
+
continueWithPhone?: string;
|
|
84
|
+
};
|
|
85
|
+
type BaseInputType = {
|
|
86
|
+
label?: string;
|
|
87
|
+
placeholder?: string;
|
|
88
|
+
};
|
|
89
|
+
type ValidationTexts = {
|
|
90
|
+
required?: string;
|
|
91
|
+
invalid?: string;
|
|
92
|
+
};
|
|
93
|
+
type TextInputType = ValidationTexts & {
|
|
94
|
+
label?: string;
|
|
95
|
+
placeholder?: string;
|
|
96
|
+
};
|
|
97
|
+
type PasswordInputType$1 = BaseInputType & {
|
|
98
|
+
required?: string;
|
|
99
|
+
tooShort?: string;
|
|
100
|
+
};
|
|
101
|
+
type UsernameInputType = TextInputType & {
|
|
102
|
+
tooShort?: string;
|
|
103
|
+
};
|
|
104
|
+
type ConfirmInputType = BaseInputType & {
|
|
105
|
+
required?: string;
|
|
106
|
+
dontMatch?: string;
|
|
107
|
+
};
|
|
108
|
+
type LoginFormTextsTypes = ThirdPartyAuthTextsTypes & {
|
|
109
|
+
email?: TextInputType;
|
|
110
|
+
username?: UsernameInputType;
|
|
111
|
+
phone?: TextInputType;
|
|
112
|
+
password?: PasswordInputType$1;
|
|
113
|
+
forgotPassword?: string;
|
|
114
|
+
newUserText?: string;
|
|
115
|
+
createAccount?: string;
|
|
116
|
+
loginText?: string;
|
|
117
|
+
};
|
|
118
|
+
type RegisterFormTextsTypes = ThirdPartyAuthTextsTypes & {
|
|
119
|
+
fullName?: BaseInputType;
|
|
120
|
+
email?: TextInputType;
|
|
121
|
+
username?: UsernameInputType;
|
|
122
|
+
password?: PasswordInputType$1;
|
|
123
|
+
confirm?: ConfirmInputType;
|
|
124
|
+
userReference?: BaseInputType;
|
|
125
|
+
subscribeToNewsletter?: string;
|
|
126
|
+
termsRequired?: string;
|
|
127
|
+
refCode?: string;
|
|
128
|
+
refCodePlaceholder?: string;
|
|
129
|
+
existingUserText?: string;
|
|
130
|
+
termsText?: string;
|
|
131
|
+
iAcceptText?: string;
|
|
132
|
+
registerText?: string;
|
|
133
|
+
loginText?: string;
|
|
134
|
+
};
|
|
135
|
+
type ResetPasswordTextsTypes = {
|
|
136
|
+
email?: TextInputType;
|
|
137
|
+
emailSentText?: string;
|
|
138
|
+
registerText?: string;
|
|
139
|
+
resetPassword?: string;
|
|
140
|
+
dontHaveAccount?: string;
|
|
141
|
+
headTitle?: string;
|
|
142
|
+
headDescription?: string;
|
|
143
|
+
};
|
|
144
|
+
type NewPasswordTextsTypes = {
|
|
145
|
+
password?: PasswordInputType$1;
|
|
146
|
+
confirm?: ConfirmInputType;
|
|
147
|
+
updatePassword?: string;
|
|
148
|
+
passwordChanged?: string;
|
|
149
|
+
dontHaveAccount?: string;
|
|
150
|
+
registerText?: string;
|
|
151
|
+
};
|
|
152
|
+
|
|
55
153
|
type PricingCardProps = {
|
|
56
154
|
direction?: DirectionType;
|
|
57
|
-
features:
|
|
58
|
-
included: boolean;
|
|
59
|
-
soon?: boolean;
|
|
60
|
-
text: string;
|
|
61
|
-
hint?: string;
|
|
62
|
-
hintSide?: any;
|
|
63
|
-
}[];
|
|
155
|
+
features: PlanFeature[];
|
|
64
156
|
endButton?: boolean;
|
|
65
157
|
price: number;
|
|
66
158
|
oldPrice?: number;
|
|
@@ -71,14 +163,7 @@ type PricingCardProps = {
|
|
|
71
163
|
recommended?: boolean;
|
|
72
164
|
size?: "small" | "medium" | "large";
|
|
73
165
|
isLoading?: boolean;
|
|
74
|
-
texts:
|
|
75
|
-
title: string;
|
|
76
|
-
subtitle?: string;
|
|
77
|
-
buttonText: string;
|
|
78
|
-
cycleText: string;
|
|
79
|
-
currencyText: string;
|
|
80
|
-
recommended?: string;
|
|
81
|
-
};
|
|
166
|
+
texts: PricingPlanTexts;
|
|
82
167
|
};
|
|
83
168
|
declare const PricingCard: FC<PricingCardProps>;
|
|
84
169
|
|
|
@@ -1040,11 +1125,11 @@ type PasswordInputIndicatorProps = {
|
|
|
1040
1125
|
strength?: any;
|
|
1041
1126
|
};
|
|
1042
1127
|
declare const PasswordStrengthIndicator: React__default.FC<PasswordInputIndicatorProps>;
|
|
1043
|
-
type PasswordInputType
|
|
1128
|
+
type PasswordInputType = {
|
|
1044
1129
|
onChange?: (e: React__default.ChangeEvent<HTMLInputElement>) => void;
|
|
1045
1130
|
hidePopover?: boolean;
|
|
1046
1131
|
};
|
|
1047
|
-
declare const PasswordInput: React__default.FC<PasswordInputType
|
|
1132
|
+
declare const PasswordInput: React__default.FC<PasswordInputType>;
|
|
1048
1133
|
|
|
1049
1134
|
interface StatTypes extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
1050
1135
|
label?: string;
|
|
@@ -1285,83 +1370,6 @@ type DocsSidebarType = {
|
|
|
1285
1370
|
};
|
|
1286
1371
|
declare const DocsSidebar: React__default.FC<DocsSidebarType>;
|
|
1287
1372
|
|
|
1288
|
-
type ThirdPartyAuthTextsTypes = {
|
|
1289
|
-
continueWithGoogle?: string;
|
|
1290
|
-
continueWithTwitter?: string;
|
|
1291
|
-
continueWithApple?: string;
|
|
1292
|
-
continueWithMicrosoft?: string;
|
|
1293
|
-
continueWithGithub?: string;
|
|
1294
|
-
continueWithEmail?: string;
|
|
1295
|
-
continueWithPhone?: string;
|
|
1296
|
-
};
|
|
1297
|
-
type BaseInputType = {
|
|
1298
|
-
label?: string;
|
|
1299
|
-
placeholder?: string;
|
|
1300
|
-
};
|
|
1301
|
-
type ValidationTexts = {
|
|
1302
|
-
required?: string;
|
|
1303
|
-
invalid?: string;
|
|
1304
|
-
};
|
|
1305
|
-
type TextInputType = ValidationTexts & {
|
|
1306
|
-
label?: string;
|
|
1307
|
-
placeholder?: string;
|
|
1308
|
-
};
|
|
1309
|
-
type PasswordInputType = BaseInputType & {
|
|
1310
|
-
required?: string;
|
|
1311
|
-
tooShort?: string;
|
|
1312
|
-
};
|
|
1313
|
-
type UsernameInputType = TextInputType & {
|
|
1314
|
-
tooShort?: string;
|
|
1315
|
-
};
|
|
1316
|
-
type ConfirmInputType = BaseInputType & {
|
|
1317
|
-
required?: string;
|
|
1318
|
-
dontMatch?: string;
|
|
1319
|
-
};
|
|
1320
|
-
type LoginFormTextsTypes = ThirdPartyAuthTextsTypes & {
|
|
1321
|
-
email?: TextInputType;
|
|
1322
|
-
username?: UsernameInputType;
|
|
1323
|
-
phone?: TextInputType;
|
|
1324
|
-
password?: PasswordInputType;
|
|
1325
|
-
forgotPassword?: string;
|
|
1326
|
-
newUserText?: string;
|
|
1327
|
-
createAccount?: string;
|
|
1328
|
-
loginText?: string;
|
|
1329
|
-
};
|
|
1330
|
-
type RegisterFormTextsTypes = ThirdPartyAuthTextsTypes & {
|
|
1331
|
-
fullName?: BaseInputType;
|
|
1332
|
-
email?: TextInputType;
|
|
1333
|
-
username?: UsernameInputType;
|
|
1334
|
-
password?: PasswordInputType;
|
|
1335
|
-
confirm?: ConfirmInputType;
|
|
1336
|
-
userReference?: BaseInputType;
|
|
1337
|
-
subscribeToNewsletter?: string;
|
|
1338
|
-
termsRequired?: string;
|
|
1339
|
-
refCode?: string;
|
|
1340
|
-
refCodePlaceholder?: string;
|
|
1341
|
-
existingUserText?: string;
|
|
1342
|
-
termsText?: string;
|
|
1343
|
-
iAcceptText?: string;
|
|
1344
|
-
registerText?: string;
|
|
1345
|
-
loginText?: string;
|
|
1346
|
-
};
|
|
1347
|
-
type ResetPasswordTextsTypes = {
|
|
1348
|
-
email?: TextInputType;
|
|
1349
|
-
emailSentText?: string;
|
|
1350
|
-
registerText?: string;
|
|
1351
|
-
resetPassword?: string;
|
|
1352
|
-
dontHaveAccount?: string;
|
|
1353
|
-
headTitle?: string;
|
|
1354
|
-
headDescription?: string;
|
|
1355
|
-
};
|
|
1356
|
-
type NewPasswordTextsTypes = {
|
|
1357
|
-
password?: PasswordInputType;
|
|
1358
|
-
confirm?: ConfirmInputType;
|
|
1359
|
-
updatePassword?: string;
|
|
1360
|
-
passwordChanged?: string;
|
|
1361
|
-
dontHaveAccount?: string;
|
|
1362
|
-
registerText?: string;
|
|
1363
|
-
};
|
|
1364
|
-
|
|
1365
1373
|
type LoginFormTypes = {
|
|
1366
1374
|
/** Object containing text labels used throughout the form. */
|
|
1367
1375
|
texts?: LoginFormTextsTypes;
|
|
@@ -1683,22 +1691,10 @@ declare const NoPermission: FC<NoPermissionProps>;
|
|
|
1683
1691
|
|
|
1684
1692
|
type PricingPlansTypes = {
|
|
1685
1693
|
plans: PricingCardProps[];
|
|
1686
|
-
currencies:
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
billingCycles: {
|
|
1691
|
-
label: string;
|
|
1692
|
-
value: string;
|
|
1693
|
-
}[];
|
|
1694
|
-
currentCycle: {
|
|
1695
|
-
label: string;
|
|
1696
|
-
value: string;
|
|
1697
|
-
};
|
|
1698
|
-
currentCurrency: {
|
|
1699
|
-
label: string;
|
|
1700
|
-
value: string;
|
|
1701
|
-
};
|
|
1694
|
+
currencies: RadioOptionType[];
|
|
1695
|
+
billingCycles: RadioOptionType[];
|
|
1696
|
+
currentCycle: RadioOptionType;
|
|
1697
|
+
currentCurrency: RadioOptionType;
|
|
1702
1698
|
onPlanClicked?: (e: any) => void;
|
|
1703
1699
|
onCycleChange?: (e: any) => void;
|
|
1704
1700
|
onCurrencyChange?: (e: any) => void;
|
|
@@ -1711,31 +1707,18 @@ declare const PricingPlans: FC<PricingPlansTypes>;
|
|
|
1711
1707
|
type ComparingPlansTypes = {
|
|
1712
1708
|
plans: {
|
|
1713
1709
|
direction?: DirectionType;
|
|
1714
|
-
features:
|
|
1715
|
-
included: boolean;
|
|
1716
|
-
text: string;
|
|
1717
|
-
hint?: string;
|
|
1718
|
-
}[];
|
|
1710
|
+
features: PlanFeature[];
|
|
1719
1711
|
price?: number;
|
|
1720
|
-
texts?:
|
|
1721
|
-
title?: string;
|
|
1722
|
-
subtitle?: string;
|
|
1723
|
-
buttonText?: string;
|
|
1724
|
-
cycleText?: string;
|
|
1725
|
-
currencyText?: string;
|
|
1726
|
-
};
|
|
1712
|
+
texts?: PricingPlanTexts;
|
|
1727
1713
|
size?: "small" | "medium" | "large";
|
|
1728
1714
|
}[];
|
|
1729
|
-
currencies:
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
billingCycles: {
|
|
1734
|
-
label: string;
|
|
1735
|
-
value: string;
|
|
1736
|
-
}[];
|
|
1715
|
+
currencies: RadioOptionType[];
|
|
1716
|
+
billingCycles: RadioOptionType[];
|
|
1717
|
+
currentCycle: RadioOptionType;
|
|
1718
|
+
currentCurrency: RadioOptionType;
|
|
1737
1719
|
onCycleChange?: (e: any) => void;
|
|
1738
1720
|
onCurrencyChange?: (e: any) => void;
|
|
1721
|
+
onPlanClicked?: (e: any) => void;
|
|
1739
1722
|
direction?: DirectionType;
|
|
1740
1723
|
showButtons?: boolean;
|
|
1741
1724
|
topPosition?: number;
|
|
@@ -1748,19 +1731,9 @@ type HorizontalPricingTypes = {
|
|
|
1748
1731
|
direction?: DirectionType;
|
|
1749
1732
|
currency?: string;
|
|
1750
1733
|
cycleText?: string;
|
|
1751
|
-
features?:
|
|
1752
|
-
included: boolean;
|
|
1753
|
-
text: string;
|
|
1754
|
-
description?: string;
|
|
1755
|
-
}[];
|
|
1734
|
+
features?: PlanFeature[];
|
|
1756
1735
|
price?: number;
|
|
1757
|
-
texts?:
|
|
1758
|
-
title: string;
|
|
1759
|
-
subtitle: string;
|
|
1760
|
-
buttonText?: string;
|
|
1761
|
-
cycleText?: string;
|
|
1762
|
-
currencyText?: string;
|
|
1763
|
-
};
|
|
1736
|
+
texts?: PricingPlanTexts;
|
|
1764
1737
|
size?: "small" | "medium" | "large";
|
|
1765
1738
|
}[];
|
|
1766
1739
|
currencies: {
|
|
@@ -1771,15 +1744,9 @@ type HorizontalPricingTypes = {
|
|
|
1771
1744
|
label: string;
|
|
1772
1745
|
value: string;
|
|
1773
1746
|
}[];
|
|
1747
|
+
currentCycle?: RadioOptionType;
|
|
1748
|
+
currentCurrency?: RadioOptionType;
|
|
1774
1749
|
onPlanClicked?: (e: any) => void;
|
|
1775
|
-
currentCycle?: {
|
|
1776
|
-
label: string;
|
|
1777
|
-
value: string;
|
|
1778
|
-
};
|
|
1779
|
-
currentCurrency?: {
|
|
1780
|
-
label: string;
|
|
1781
|
-
value: string;
|
|
1782
|
-
};
|
|
1783
1750
|
onCycleChange?: (e: any) => void;
|
|
1784
1751
|
onCurrencyChange?: (e: any) => void;
|
|
1785
1752
|
direction?: DirectionType;
|
package/dist/index.d.ts
CHANGED
|
@@ -38,6 +38,10 @@ type PositionType = "top" | "bottom" | "right" | "left";
|
|
|
38
38
|
type SeverityType = "info" | "warning" | "error" | "success" | "none";
|
|
39
39
|
type OrientationType = "vertical" | "horizontal";
|
|
40
40
|
type RadiusType = "full" | "inherit" | "none";
|
|
41
|
+
type RadioOptionType = {
|
|
42
|
+
label: string;
|
|
43
|
+
value: string;
|
|
44
|
+
};
|
|
41
45
|
|
|
42
46
|
type AdCardTypes = {
|
|
43
47
|
orientation: OrientationType;
|
|
@@ -52,15 +56,103 @@ type AdCardTypes = {
|
|
|
52
56
|
};
|
|
53
57
|
declare const AdCard: FC<AdCardTypes>;
|
|
54
58
|
|
|
59
|
+
type PlanFeature = {
|
|
60
|
+
soon?: boolean;
|
|
61
|
+
included?: boolean;
|
|
62
|
+
text: string;
|
|
63
|
+
hint?: string;
|
|
64
|
+
hintSide?: PositionType;
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
type PricingPlanTexts = {
|
|
68
|
+
title?: string;
|
|
69
|
+
subtitle?: string;
|
|
70
|
+
buttonText?: string;
|
|
71
|
+
cycleText?: string;
|
|
72
|
+
currencyText?: string;
|
|
73
|
+
soon?: string;
|
|
74
|
+
recommended?: string;
|
|
75
|
+
};
|
|
76
|
+
type ThirdPartyAuthTextsTypes = {
|
|
77
|
+
continueWithGoogle?: string;
|
|
78
|
+
continueWithTwitter?: string;
|
|
79
|
+
continueWithApple?: string;
|
|
80
|
+
continueWithMicrosoft?: string;
|
|
81
|
+
continueWithGithub?: string;
|
|
82
|
+
continueWithEmail?: string;
|
|
83
|
+
continueWithPhone?: string;
|
|
84
|
+
};
|
|
85
|
+
type BaseInputType = {
|
|
86
|
+
label?: string;
|
|
87
|
+
placeholder?: string;
|
|
88
|
+
};
|
|
89
|
+
type ValidationTexts = {
|
|
90
|
+
required?: string;
|
|
91
|
+
invalid?: string;
|
|
92
|
+
};
|
|
93
|
+
type TextInputType = ValidationTexts & {
|
|
94
|
+
label?: string;
|
|
95
|
+
placeholder?: string;
|
|
96
|
+
};
|
|
97
|
+
type PasswordInputType$1 = BaseInputType & {
|
|
98
|
+
required?: string;
|
|
99
|
+
tooShort?: string;
|
|
100
|
+
};
|
|
101
|
+
type UsernameInputType = TextInputType & {
|
|
102
|
+
tooShort?: string;
|
|
103
|
+
};
|
|
104
|
+
type ConfirmInputType = BaseInputType & {
|
|
105
|
+
required?: string;
|
|
106
|
+
dontMatch?: string;
|
|
107
|
+
};
|
|
108
|
+
type LoginFormTextsTypes = ThirdPartyAuthTextsTypes & {
|
|
109
|
+
email?: TextInputType;
|
|
110
|
+
username?: UsernameInputType;
|
|
111
|
+
phone?: TextInputType;
|
|
112
|
+
password?: PasswordInputType$1;
|
|
113
|
+
forgotPassword?: string;
|
|
114
|
+
newUserText?: string;
|
|
115
|
+
createAccount?: string;
|
|
116
|
+
loginText?: string;
|
|
117
|
+
};
|
|
118
|
+
type RegisterFormTextsTypes = ThirdPartyAuthTextsTypes & {
|
|
119
|
+
fullName?: BaseInputType;
|
|
120
|
+
email?: TextInputType;
|
|
121
|
+
username?: UsernameInputType;
|
|
122
|
+
password?: PasswordInputType$1;
|
|
123
|
+
confirm?: ConfirmInputType;
|
|
124
|
+
userReference?: BaseInputType;
|
|
125
|
+
subscribeToNewsletter?: string;
|
|
126
|
+
termsRequired?: string;
|
|
127
|
+
refCode?: string;
|
|
128
|
+
refCodePlaceholder?: string;
|
|
129
|
+
existingUserText?: string;
|
|
130
|
+
termsText?: string;
|
|
131
|
+
iAcceptText?: string;
|
|
132
|
+
registerText?: string;
|
|
133
|
+
loginText?: string;
|
|
134
|
+
};
|
|
135
|
+
type ResetPasswordTextsTypes = {
|
|
136
|
+
email?: TextInputType;
|
|
137
|
+
emailSentText?: string;
|
|
138
|
+
registerText?: string;
|
|
139
|
+
resetPassword?: string;
|
|
140
|
+
dontHaveAccount?: string;
|
|
141
|
+
headTitle?: string;
|
|
142
|
+
headDescription?: string;
|
|
143
|
+
};
|
|
144
|
+
type NewPasswordTextsTypes = {
|
|
145
|
+
password?: PasswordInputType$1;
|
|
146
|
+
confirm?: ConfirmInputType;
|
|
147
|
+
updatePassword?: string;
|
|
148
|
+
passwordChanged?: string;
|
|
149
|
+
dontHaveAccount?: string;
|
|
150
|
+
registerText?: string;
|
|
151
|
+
};
|
|
152
|
+
|
|
55
153
|
type PricingCardProps = {
|
|
56
154
|
direction?: DirectionType;
|
|
57
|
-
features:
|
|
58
|
-
included: boolean;
|
|
59
|
-
soon?: boolean;
|
|
60
|
-
text: string;
|
|
61
|
-
hint?: string;
|
|
62
|
-
hintSide?: any;
|
|
63
|
-
}[];
|
|
155
|
+
features: PlanFeature[];
|
|
64
156
|
endButton?: boolean;
|
|
65
157
|
price: number;
|
|
66
158
|
oldPrice?: number;
|
|
@@ -71,14 +163,7 @@ type PricingCardProps = {
|
|
|
71
163
|
recommended?: boolean;
|
|
72
164
|
size?: "small" | "medium" | "large";
|
|
73
165
|
isLoading?: boolean;
|
|
74
|
-
texts:
|
|
75
|
-
title: string;
|
|
76
|
-
subtitle?: string;
|
|
77
|
-
buttonText: string;
|
|
78
|
-
cycleText: string;
|
|
79
|
-
currencyText: string;
|
|
80
|
-
recommended?: string;
|
|
81
|
-
};
|
|
166
|
+
texts: PricingPlanTexts;
|
|
82
167
|
};
|
|
83
168
|
declare const PricingCard: FC<PricingCardProps>;
|
|
84
169
|
|
|
@@ -1040,11 +1125,11 @@ type PasswordInputIndicatorProps = {
|
|
|
1040
1125
|
strength?: any;
|
|
1041
1126
|
};
|
|
1042
1127
|
declare const PasswordStrengthIndicator: React__default.FC<PasswordInputIndicatorProps>;
|
|
1043
|
-
type PasswordInputType
|
|
1128
|
+
type PasswordInputType = {
|
|
1044
1129
|
onChange?: (e: React__default.ChangeEvent<HTMLInputElement>) => void;
|
|
1045
1130
|
hidePopover?: boolean;
|
|
1046
1131
|
};
|
|
1047
|
-
declare const PasswordInput: React__default.FC<PasswordInputType
|
|
1132
|
+
declare const PasswordInput: React__default.FC<PasswordInputType>;
|
|
1048
1133
|
|
|
1049
1134
|
interface StatTypes extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
1050
1135
|
label?: string;
|
|
@@ -1285,83 +1370,6 @@ type DocsSidebarType = {
|
|
|
1285
1370
|
};
|
|
1286
1371
|
declare const DocsSidebar: React__default.FC<DocsSidebarType>;
|
|
1287
1372
|
|
|
1288
|
-
type ThirdPartyAuthTextsTypes = {
|
|
1289
|
-
continueWithGoogle?: string;
|
|
1290
|
-
continueWithTwitter?: string;
|
|
1291
|
-
continueWithApple?: string;
|
|
1292
|
-
continueWithMicrosoft?: string;
|
|
1293
|
-
continueWithGithub?: string;
|
|
1294
|
-
continueWithEmail?: string;
|
|
1295
|
-
continueWithPhone?: string;
|
|
1296
|
-
};
|
|
1297
|
-
type BaseInputType = {
|
|
1298
|
-
label?: string;
|
|
1299
|
-
placeholder?: string;
|
|
1300
|
-
};
|
|
1301
|
-
type ValidationTexts = {
|
|
1302
|
-
required?: string;
|
|
1303
|
-
invalid?: string;
|
|
1304
|
-
};
|
|
1305
|
-
type TextInputType = ValidationTexts & {
|
|
1306
|
-
label?: string;
|
|
1307
|
-
placeholder?: string;
|
|
1308
|
-
};
|
|
1309
|
-
type PasswordInputType = BaseInputType & {
|
|
1310
|
-
required?: string;
|
|
1311
|
-
tooShort?: string;
|
|
1312
|
-
};
|
|
1313
|
-
type UsernameInputType = TextInputType & {
|
|
1314
|
-
tooShort?: string;
|
|
1315
|
-
};
|
|
1316
|
-
type ConfirmInputType = BaseInputType & {
|
|
1317
|
-
required?: string;
|
|
1318
|
-
dontMatch?: string;
|
|
1319
|
-
};
|
|
1320
|
-
type LoginFormTextsTypes = ThirdPartyAuthTextsTypes & {
|
|
1321
|
-
email?: TextInputType;
|
|
1322
|
-
username?: UsernameInputType;
|
|
1323
|
-
phone?: TextInputType;
|
|
1324
|
-
password?: PasswordInputType;
|
|
1325
|
-
forgotPassword?: string;
|
|
1326
|
-
newUserText?: string;
|
|
1327
|
-
createAccount?: string;
|
|
1328
|
-
loginText?: string;
|
|
1329
|
-
};
|
|
1330
|
-
type RegisterFormTextsTypes = ThirdPartyAuthTextsTypes & {
|
|
1331
|
-
fullName?: BaseInputType;
|
|
1332
|
-
email?: TextInputType;
|
|
1333
|
-
username?: UsernameInputType;
|
|
1334
|
-
password?: PasswordInputType;
|
|
1335
|
-
confirm?: ConfirmInputType;
|
|
1336
|
-
userReference?: BaseInputType;
|
|
1337
|
-
subscribeToNewsletter?: string;
|
|
1338
|
-
termsRequired?: string;
|
|
1339
|
-
refCode?: string;
|
|
1340
|
-
refCodePlaceholder?: string;
|
|
1341
|
-
existingUserText?: string;
|
|
1342
|
-
termsText?: string;
|
|
1343
|
-
iAcceptText?: string;
|
|
1344
|
-
registerText?: string;
|
|
1345
|
-
loginText?: string;
|
|
1346
|
-
};
|
|
1347
|
-
type ResetPasswordTextsTypes = {
|
|
1348
|
-
email?: TextInputType;
|
|
1349
|
-
emailSentText?: string;
|
|
1350
|
-
registerText?: string;
|
|
1351
|
-
resetPassword?: string;
|
|
1352
|
-
dontHaveAccount?: string;
|
|
1353
|
-
headTitle?: string;
|
|
1354
|
-
headDescription?: string;
|
|
1355
|
-
};
|
|
1356
|
-
type NewPasswordTextsTypes = {
|
|
1357
|
-
password?: PasswordInputType;
|
|
1358
|
-
confirm?: ConfirmInputType;
|
|
1359
|
-
updatePassword?: string;
|
|
1360
|
-
passwordChanged?: string;
|
|
1361
|
-
dontHaveAccount?: string;
|
|
1362
|
-
registerText?: string;
|
|
1363
|
-
};
|
|
1364
|
-
|
|
1365
1373
|
type LoginFormTypes = {
|
|
1366
1374
|
/** Object containing text labels used throughout the form. */
|
|
1367
1375
|
texts?: LoginFormTextsTypes;
|
|
@@ -1683,22 +1691,10 @@ declare const NoPermission: FC<NoPermissionProps>;
|
|
|
1683
1691
|
|
|
1684
1692
|
type PricingPlansTypes = {
|
|
1685
1693
|
plans: PricingCardProps[];
|
|
1686
|
-
currencies:
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
billingCycles: {
|
|
1691
|
-
label: string;
|
|
1692
|
-
value: string;
|
|
1693
|
-
}[];
|
|
1694
|
-
currentCycle: {
|
|
1695
|
-
label: string;
|
|
1696
|
-
value: string;
|
|
1697
|
-
};
|
|
1698
|
-
currentCurrency: {
|
|
1699
|
-
label: string;
|
|
1700
|
-
value: string;
|
|
1701
|
-
};
|
|
1694
|
+
currencies: RadioOptionType[];
|
|
1695
|
+
billingCycles: RadioOptionType[];
|
|
1696
|
+
currentCycle: RadioOptionType;
|
|
1697
|
+
currentCurrency: RadioOptionType;
|
|
1702
1698
|
onPlanClicked?: (e: any) => void;
|
|
1703
1699
|
onCycleChange?: (e: any) => void;
|
|
1704
1700
|
onCurrencyChange?: (e: any) => void;
|
|
@@ -1711,31 +1707,18 @@ declare const PricingPlans: FC<PricingPlansTypes>;
|
|
|
1711
1707
|
type ComparingPlansTypes = {
|
|
1712
1708
|
plans: {
|
|
1713
1709
|
direction?: DirectionType;
|
|
1714
|
-
features:
|
|
1715
|
-
included: boolean;
|
|
1716
|
-
text: string;
|
|
1717
|
-
hint?: string;
|
|
1718
|
-
}[];
|
|
1710
|
+
features: PlanFeature[];
|
|
1719
1711
|
price?: number;
|
|
1720
|
-
texts?:
|
|
1721
|
-
title?: string;
|
|
1722
|
-
subtitle?: string;
|
|
1723
|
-
buttonText?: string;
|
|
1724
|
-
cycleText?: string;
|
|
1725
|
-
currencyText?: string;
|
|
1726
|
-
};
|
|
1712
|
+
texts?: PricingPlanTexts;
|
|
1727
1713
|
size?: "small" | "medium" | "large";
|
|
1728
1714
|
}[];
|
|
1729
|
-
currencies:
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
billingCycles: {
|
|
1734
|
-
label: string;
|
|
1735
|
-
value: string;
|
|
1736
|
-
}[];
|
|
1715
|
+
currencies: RadioOptionType[];
|
|
1716
|
+
billingCycles: RadioOptionType[];
|
|
1717
|
+
currentCycle: RadioOptionType;
|
|
1718
|
+
currentCurrency: RadioOptionType;
|
|
1737
1719
|
onCycleChange?: (e: any) => void;
|
|
1738
1720
|
onCurrencyChange?: (e: any) => void;
|
|
1721
|
+
onPlanClicked?: (e: any) => void;
|
|
1739
1722
|
direction?: DirectionType;
|
|
1740
1723
|
showButtons?: boolean;
|
|
1741
1724
|
topPosition?: number;
|
|
@@ -1748,19 +1731,9 @@ type HorizontalPricingTypes = {
|
|
|
1748
1731
|
direction?: DirectionType;
|
|
1749
1732
|
currency?: string;
|
|
1750
1733
|
cycleText?: string;
|
|
1751
|
-
features?:
|
|
1752
|
-
included: boolean;
|
|
1753
|
-
text: string;
|
|
1754
|
-
description?: string;
|
|
1755
|
-
}[];
|
|
1734
|
+
features?: PlanFeature[];
|
|
1756
1735
|
price?: number;
|
|
1757
|
-
texts?:
|
|
1758
|
-
title: string;
|
|
1759
|
-
subtitle: string;
|
|
1760
|
-
buttonText?: string;
|
|
1761
|
-
cycleText?: string;
|
|
1762
|
-
currencyText?: string;
|
|
1763
|
-
};
|
|
1736
|
+
texts?: PricingPlanTexts;
|
|
1764
1737
|
size?: "small" | "medium" | "large";
|
|
1765
1738
|
}[];
|
|
1766
1739
|
currencies: {
|
|
@@ -1771,15 +1744,9 @@ type HorizontalPricingTypes = {
|
|
|
1771
1744
|
label: string;
|
|
1772
1745
|
value: string;
|
|
1773
1746
|
}[];
|
|
1747
|
+
currentCycle?: RadioOptionType;
|
|
1748
|
+
currentCurrency?: RadioOptionType;
|
|
1774
1749
|
onPlanClicked?: (e: any) => void;
|
|
1775
|
-
currentCycle?: {
|
|
1776
|
-
label: string;
|
|
1777
|
-
value: string;
|
|
1778
|
-
};
|
|
1779
|
-
currentCurrency?: {
|
|
1780
|
-
label: string;
|
|
1781
|
-
value: string;
|
|
1782
|
-
};
|
|
1783
1750
|
onCycleChange?: (e: any) => void;
|
|
1784
1751
|
onCurrencyChange?: (e: any) => void;
|
|
1785
1752
|
direction?: DirectionType;
|
package/dist/index.js
CHANGED
|
@@ -11117,8 +11117,6 @@ var PricingPlans = ({
|
|
|
11117
11117
|
// components/blocks/pricing/ComparingPlans.tsx
|
|
11118
11118
|
var import_react70 = __toESM(require("react"));
|
|
11119
11119
|
var ComparingPlans = (props) => {
|
|
11120
|
-
const [currentCurrency, setCurrentCurrency] = (0, import_react70.useState)("sar");
|
|
11121
|
-
const [currentCycle, setCurrentCycle] = (0, import_react70.useState)("monthly");
|
|
11122
11120
|
const uniqueFeatures = Array.from(
|
|
11123
11121
|
new Set(
|
|
11124
11122
|
props.plans.flatMap(
|
|
@@ -11130,13 +11128,11 @@ var ComparingPlans = (props) => {
|
|
|
11130
11128
|
Radio,
|
|
11131
11129
|
{
|
|
11132
11130
|
design: "tabs",
|
|
11133
|
-
defaultValue: currentCycle,
|
|
11131
|
+
defaultValue: props.currentCycle.value,
|
|
11134
11132
|
options: props.billingCycles,
|
|
11135
11133
|
onChangeTab: (e) => {
|
|
11136
11134
|
if (props.onCycleChange) {
|
|
11137
11135
|
props.onCycleChange(e);
|
|
11138
|
-
} else {
|
|
11139
|
-
console.log("onCycleChange was not provided");
|
|
11140
11136
|
}
|
|
11141
11137
|
}
|
|
11142
11138
|
}
|
|
@@ -11144,13 +11140,11 @@ var ComparingPlans = (props) => {
|
|
|
11144
11140
|
Radio,
|
|
11145
11141
|
{
|
|
11146
11142
|
design: "tabs",
|
|
11147
|
-
defaultValue: currentCurrency,
|
|
11143
|
+
defaultValue: props.currentCurrency.value,
|
|
11148
11144
|
options: props.currencies,
|
|
11149
11145
|
onChangeTab: (e) => {
|
|
11150
11146
|
if (props.onCurrencyChange) {
|
|
11151
11147
|
props.onCurrencyChange(e);
|
|
11152
|
-
} else {
|
|
11153
|
-
console.log("onCurrencyChange was not provided");
|
|
11154
11148
|
}
|
|
11155
11149
|
}
|
|
11156
11150
|
}
|
|
@@ -11181,7 +11175,7 @@ var ComparingPlans = (props) => {
|
|
|
11181
11175
|
{
|
|
11182
11176
|
key: featureIndex,
|
|
11183
11177
|
className: cn(
|
|
11184
|
-
"hawa-grid hawa-grid-cols-[1fr_repeat(3,_minmax(0,_1fr))] hawa-gap-x-16 hawa-border-
|
|
11178
|
+
"hawa-grid hawa-grid-cols-[1fr_repeat(3,_minmax(0,_1fr))] hawa-gap-x-16 hawa-border-foreground-muted hawa-px-4 hawa-py-5 hawa-text-sm hawa-text-gray-700 dark:text-white",
|
|
11185
11179
|
featureIndex === 0 ? "" : "hawa-border-t"
|
|
11186
11180
|
)
|
|
11187
11181
|
},
|
|
@@ -11216,7 +11210,11 @@ var ComparingPlans = (props) => {
|
|
|
11216
11210
|
},
|
|
11217
11211
|
/* @__PURE__ */ import_react70.default.createElement("path", { d: "M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z" })
|
|
11218
11212
|
)
|
|
11219
|
-
)
|
|
11213
|
+
), props.plans.some(
|
|
11214
|
+
(plan) => plan.features.some(
|
|
11215
|
+
(feature) => feature.text === featureText && feature.soon
|
|
11216
|
+
)
|
|
11217
|
+
) && /* @__PURE__ */ import_react70.default.createElement(Chip, { label: "Soon" })),
|
|
11220
11218
|
props.plans.map((plan, planIndex) => {
|
|
11221
11219
|
const feature = plan.features.find(
|
|
11222
11220
|
(f) => f.text === featureText
|
|
@@ -11239,7 +11237,25 @@ var ComparingPlans = (props) => {
|
|
|
11239
11237
|
key: i,
|
|
11240
11238
|
className: "hawa-flex hawa-justify-center hawa-items-center"
|
|
11241
11239
|
},
|
|
11242
|
-
/* @__PURE__ */ import_react70.default.createElement(
|
|
11240
|
+
/* @__PURE__ */ import_react70.default.createElement(
|
|
11241
|
+
Button,
|
|
11242
|
+
{
|
|
11243
|
+
className: "hawa-max-w-xs hawa-w-full",
|
|
11244
|
+
onClick: () => {
|
|
11245
|
+
var _a2, _b;
|
|
11246
|
+
if (props.onPlanClicked) {
|
|
11247
|
+
let clickedData = {
|
|
11248
|
+
// plan: plan.id,
|
|
11249
|
+
currency: (_a2 = props.currentCurrency) == null ? void 0 : _a2.value,
|
|
11250
|
+
cycle: (_b = props.currentCycle) == null ? void 0 : _b.value,
|
|
11251
|
+
...plan
|
|
11252
|
+
};
|
|
11253
|
+
props.onPlanClicked(clickedData);
|
|
11254
|
+
}
|
|
11255
|
+
}
|
|
11256
|
+
},
|
|
11257
|
+
((_a = plan.texts) == null ? void 0 : _a.buttonText) || "Get Started"
|
|
11258
|
+
)
|
|
11243
11259
|
);
|
|
11244
11260
|
})));
|
|
11245
11261
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -10899,10 +10899,8 @@ var PricingPlans = ({
|
|
|
10899
10899
|
};
|
|
10900
10900
|
|
|
10901
10901
|
// components/blocks/pricing/ComparingPlans.tsx
|
|
10902
|
-
import React96
|
|
10902
|
+
import React96 from "react";
|
|
10903
10903
|
var ComparingPlans = (props) => {
|
|
10904
|
-
const [currentCurrency, setCurrentCurrency] = useState36("sar");
|
|
10905
|
-
const [currentCycle, setCurrentCycle] = useState36("monthly");
|
|
10906
10904
|
const uniqueFeatures = Array.from(
|
|
10907
10905
|
new Set(
|
|
10908
10906
|
props.plans.flatMap(
|
|
@@ -10914,13 +10912,11 @@ var ComparingPlans = (props) => {
|
|
|
10914
10912
|
Radio,
|
|
10915
10913
|
{
|
|
10916
10914
|
design: "tabs",
|
|
10917
|
-
defaultValue: currentCycle,
|
|
10915
|
+
defaultValue: props.currentCycle.value,
|
|
10918
10916
|
options: props.billingCycles,
|
|
10919
10917
|
onChangeTab: (e) => {
|
|
10920
10918
|
if (props.onCycleChange) {
|
|
10921
10919
|
props.onCycleChange(e);
|
|
10922
|
-
} else {
|
|
10923
|
-
console.log("onCycleChange was not provided");
|
|
10924
10920
|
}
|
|
10925
10921
|
}
|
|
10926
10922
|
}
|
|
@@ -10928,13 +10924,11 @@ var ComparingPlans = (props) => {
|
|
|
10928
10924
|
Radio,
|
|
10929
10925
|
{
|
|
10930
10926
|
design: "tabs",
|
|
10931
|
-
defaultValue: currentCurrency,
|
|
10927
|
+
defaultValue: props.currentCurrency.value,
|
|
10932
10928
|
options: props.currencies,
|
|
10933
10929
|
onChangeTab: (e) => {
|
|
10934
10930
|
if (props.onCurrencyChange) {
|
|
10935
10931
|
props.onCurrencyChange(e);
|
|
10936
|
-
} else {
|
|
10937
|
-
console.log("onCurrencyChange was not provided");
|
|
10938
10932
|
}
|
|
10939
10933
|
}
|
|
10940
10934
|
}
|
|
@@ -10965,7 +10959,7 @@ var ComparingPlans = (props) => {
|
|
|
10965
10959
|
{
|
|
10966
10960
|
key: featureIndex,
|
|
10967
10961
|
className: cn(
|
|
10968
|
-
"hawa-grid hawa-grid-cols-[1fr_repeat(3,_minmax(0,_1fr))] hawa-gap-x-16 hawa-border-
|
|
10962
|
+
"hawa-grid hawa-grid-cols-[1fr_repeat(3,_minmax(0,_1fr))] hawa-gap-x-16 hawa-border-foreground-muted hawa-px-4 hawa-py-5 hawa-text-sm hawa-text-gray-700 dark:text-white",
|
|
10969
10963
|
featureIndex === 0 ? "" : "hawa-border-t"
|
|
10970
10964
|
)
|
|
10971
10965
|
},
|
|
@@ -11000,7 +10994,11 @@ var ComparingPlans = (props) => {
|
|
|
11000
10994
|
},
|
|
11001
10995
|
/* @__PURE__ */ React96.createElement("path", { d: "M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z" })
|
|
11002
10996
|
)
|
|
11003
|
-
)
|
|
10997
|
+
), props.plans.some(
|
|
10998
|
+
(plan) => plan.features.some(
|
|
10999
|
+
(feature) => feature.text === featureText && feature.soon
|
|
11000
|
+
)
|
|
11001
|
+
) && /* @__PURE__ */ React96.createElement(Chip, { label: "Soon" })),
|
|
11004
11002
|
props.plans.map((plan, planIndex) => {
|
|
11005
11003
|
const feature = plan.features.find(
|
|
11006
11004
|
(f) => f.text === featureText
|
|
@@ -11023,7 +11021,25 @@ var ComparingPlans = (props) => {
|
|
|
11023
11021
|
key: i,
|
|
11024
11022
|
className: "hawa-flex hawa-justify-center hawa-items-center"
|
|
11025
11023
|
},
|
|
11026
|
-
/* @__PURE__ */ React96.createElement(
|
|
11024
|
+
/* @__PURE__ */ React96.createElement(
|
|
11025
|
+
Button,
|
|
11026
|
+
{
|
|
11027
|
+
className: "hawa-max-w-xs hawa-w-full",
|
|
11028
|
+
onClick: () => {
|
|
11029
|
+
var _a2, _b;
|
|
11030
|
+
if (props.onPlanClicked) {
|
|
11031
|
+
let clickedData = {
|
|
11032
|
+
// plan: plan.id,
|
|
11033
|
+
currency: (_a2 = props.currentCurrency) == null ? void 0 : _a2.value,
|
|
11034
|
+
cycle: (_b = props.currentCycle) == null ? void 0 : _b.value,
|
|
11035
|
+
...plan
|
|
11036
|
+
};
|
|
11037
|
+
props.onPlanClicked(clickedData);
|
|
11038
|
+
}
|
|
11039
|
+
}
|
|
11040
|
+
},
|
|
11041
|
+
((_a = plan.texts) == null ? void 0 : _a.buttonText) || "Get Started"
|
|
11042
|
+
)
|
|
11027
11043
|
);
|
|
11028
11044
|
})));
|
|
11029
11045
|
};
|