@sikka/hawa 0.19.33-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 +116 -152
- package/dist/index.d.ts +116 -152
- package/dist/index.js +21 -9
- package/dist/index.mjs +22 -10
- 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;
|
|
@@ -1708,37 +1704,21 @@ type PricingPlansTypes = {
|
|
|
1708
1704
|
};
|
|
1709
1705
|
declare const PricingPlans: FC<PricingPlansTypes>;
|
|
1710
1706
|
|
|
1711
|
-
type PlanFeature = {
|
|
1712
|
-
soon?: boolean;
|
|
1713
|
-
included: boolean;
|
|
1714
|
-
text: string;
|
|
1715
|
-
hint?: string;
|
|
1716
|
-
};
|
|
1717
1707
|
type ComparingPlansTypes = {
|
|
1718
1708
|
plans: {
|
|
1719
1709
|
direction?: DirectionType;
|
|
1720
1710
|
features: PlanFeature[];
|
|
1721
1711
|
price?: number;
|
|
1722
|
-
texts?:
|
|
1723
|
-
title?: string;
|
|
1724
|
-
subtitle?: string;
|
|
1725
|
-
buttonText?: string;
|
|
1726
|
-
cycleText?: string;
|
|
1727
|
-
currencyText?: string;
|
|
1728
|
-
soon?: string;
|
|
1729
|
-
};
|
|
1712
|
+
texts?: PricingPlanTexts;
|
|
1730
1713
|
size?: "small" | "medium" | "large";
|
|
1731
1714
|
}[];
|
|
1732
|
-
currencies:
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
billingCycles: {
|
|
1737
|
-
label: string;
|
|
1738
|
-
value: string;
|
|
1739
|
-
}[];
|
|
1715
|
+
currencies: RadioOptionType[];
|
|
1716
|
+
billingCycles: RadioOptionType[];
|
|
1717
|
+
currentCycle: RadioOptionType;
|
|
1718
|
+
currentCurrency: RadioOptionType;
|
|
1740
1719
|
onCycleChange?: (e: any) => void;
|
|
1741
1720
|
onCurrencyChange?: (e: any) => void;
|
|
1721
|
+
onPlanClicked?: (e: any) => void;
|
|
1742
1722
|
direction?: DirectionType;
|
|
1743
1723
|
showButtons?: boolean;
|
|
1744
1724
|
topPosition?: number;
|
|
@@ -1751,19 +1731,9 @@ type HorizontalPricingTypes = {
|
|
|
1751
1731
|
direction?: DirectionType;
|
|
1752
1732
|
currency?: string;
|
|
1753
1733
|
cycleText?: string;
|
|
1754
|
-
features?:
|
|
1755
|
-
included: boolean;
|
|
1756
|
-
text: string;
|
|
1757
|
-
description?: string;
|
|
1758
|
-
}[];
|
|
1734
|
+
features?: PlanFeature[];
|
|
1759
1735
|
price?: number;
|
|
1760
|
-
texts?:
|
|
1761
|
-
title: string;
|
|
1762
|
-
subtitle: string;
|
|
1763
|
-
buttonText?: string;
|
|
1764
|
-
cycleText?: string;
|
|
1765
|
-
currencyText?: string;
|
|
1766
|
-
};
|
|
1736
|
+
texts?: PricingPlanTexts;
|
|
1767
1737
|
size?: "small" | "medium" | "large";
|
|
1768
1738
|
}[];
|
|
1769
1739
|
currencies: {
|
|
@@ -1774,15 +1744,9 @@ type HorizontalPricingTypes = {
|
|
|
1774
1744
|
label: string;
|
|
1775
1745
|
value: string;
|
|
1776
1746
|
}[];
|
|
1747
|
+
currentCycle?: RadioOptionType;
|
|
1748
|
+
currentCurrency?: RadioOptionType;
|
|
1777
1749
|
onPlanClicked?: (e: any) => void;
|
|
1778
|
-
currentCycle?: {
|
|
1779
|
-
label: string;
|
|
1780
|
-
value: string;
|
|
1781
|
-
};
|
|
1782
|
-
currentCurrency?: {
|
|
1783
|
-
label: string;
|
|
1784
|
-
value: string;
|
|
1785
|
-
};
|
|
1786
1750
|
onCycleChange?: (e: any) => void;
|
|
1787
1751
|
onCurrencyChange?: (e: any) => void;
|
|
1788
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;
|
|
@@ -1708,37 +1704,21 @@ type PricingPlansTypes = {
|
|
|
1708
1704
|
};
|
|
1709
1705
|
declare const PricingPlans: FC<PricingPlansTypes>;
|
|
1710
1706
|
|
|
1711
|
-
type PlanFeature = {
|
|
1712
|
-
soon?: boolean;
|
|
1713
|
-
included: boolean;
|
|
1714
|
-
text: string;
|
|
1715
|
-
hint?: string;
|
|
1716
|
-
};
|
|
1717
1707
|
type ComparingPlansTypes = {
|
|
1718
1708
|
plans: {
|
|
1719
1709
|
direction?: DirectionType;
|
|
1720
1710
|
features: PlanFeature[];
|
|
1721
1711
|
price?: number;
|
|
1722
|
-
texts?:
|
|
1723
|
-
title?: string;
|
|
1724
|
-
subtitle?: string;
|
|
1725
|
-
buttonText?: string;
|
|
1726
|
-
cycleText?: string;
|
|
1727
|
-
currencyText?: string;
|
|
1728
|
-
soon?: string;
|
|
1729
|
-
};
|
|
1712
|
+
texts?: PricingPlanTexts;
|
|
1730
1713
|
size?: "small" | "medium" | "large";
|
|
1731
1714
|
}[];
|
|
1732
|
-
currencies:
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
billingCycles: {
|
|
1737
|
-
label: string;
|
|
1738
|
-
value: string;
|
|
1739
|
-
}[];
|
|
1715
|
+
currencies: RadioOptionType[];
|
|
1716
|
+
billingCycles: RadioOptionType[];
|
|
1717
|
+
currentCycle: RadioOptionType;
|
|
1718
|
+
currentCurrency: RadioOptionType;
|
|
1740
1719
|
onCycleChange?: (e: any) => void;
|
|
1741
1720
|
onCurrencyChange?: (e: any) => void;
|
|
1721
|
+
onPlanClicked?: (e: any) => void;
|
|
1742
1722
|
direction?: DirectionType;
|
|
1743
1723
|
showButtons?: boolean;
|
|
1744
1724
|
topPosition?: number;
|
|
@@ -1751,19 +1731,9 @@ type HorizontalPricingTypes = {
|
|
|
1751
1731
|
direction?: DirectionType;
|
|
1752
1732
|
currency?: string;
|
|
1753
1733
|
cycleText?: string;
|
|
1754
|
-
features?:
|
|
1755
|
-
included: boolean;
|
|
1756
|
-
text: string;
|
|
1757
|
-
description?: string;
|
|
1758
|
-
}[];
|
|
1734
|
+
features?: PlanFeature[];
|
|
1759
1735
|
price?: number;
|
|
1760
|
-
texts?:
|
|
1761
|
-
title: string;
|
|
1762
|
-
subtitle: string;
|
|
1763
|
-
buttonText?: string;
|
|
1764
|
-
cycleText?: string;
|
|
1765
|
-
currencyText?: string;
|
|
1766
|
-
};
|
|
1736
|
+
texts?: PricingPlanTexts;
|
|
1767
1737
|
size?: "small" | "medium" | "large";
|
|
1768
1738
|
}[];
|
|
1769
1739
|
currencies: {
|
|
@@ -1774,15 +1744,9 @@ type HorizontalPricingTypes = {
|
|
|
1774
1744
|
label: string;
|
|
1775
1745
|
value: string;
|
|
1776
1746
|
}[];
|
|
1747
|
+
currentCycle?: RadioOptionType;
|
|
1748
|
+
currentCurrency?: RadioOptionType;
|
|
1777
1749
|
onPlanClicked?: (e: any) => void;
|
|
1778
|
-
currentCycle?: {
|
|
1779
|
-
label: string;
|
|
1780
|
-
value: string;
|
|
1781
|
-
};
|
|
1782
|
-
currentCurrency?: {
|
|
1783
|
-
label: string;
|
|
1784
|
-
value: string;
|
|
1785
|
-
};
|
|
1786
1750
|
onCycleChange?: (e: any) => void;
|
|
1787
1751
|
onCurrencyChange?: (e: any) => void;
|
|
1788
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
|
}
|
|
@@ -11243,7 +11237,25 @@ var ComparingPlans = (props) => {
|
|
|
11243
11237
|
key: i,
|
|
11244
11238
|
className: "hawa-flex hawa-justify-center hawa-items-center"
|
|
11245
11239
|
},
|
|
11246
|
-
/* @__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
|
+
)
|
|
11247
11259
|
);
|
|
11248
11260
|
})));
|
|
11249
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
|
}
|
|
@@ -11027,7 +11021,25 @@ var ComparingPlans = (props) => {
|
|
|
11027
11021
|
key: i,
|
|
11028
11022
|
className: "hawa-flex hawa-justify-center hawa-items-center"
|
|
11029
11023
|
},
|
|
11030
|
-
/* @__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
|
+
)
|
|
11031
11043
|
);
|
|
11032
11044
|
})));
|
|
11033
11045
|
};
|