@sikka/hawa 0.10.25-next → 0.10.26-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/README.md CHANGED
@@ -52,9 +52,9 @@
52
52
 
53
53
  ## Install
54
54
 
55
- **Note:** Current npm tags 👇
55
+ **Note:** Current npm tags 👇
56
56
 
57
- `@beta` is archived.
57
+ `@beta` is archived.
58
58
 
59
59
  `@next` only points to pre-releases.
60
60
 
@@ -70,6 +70,21 @@ npm install @sikka/hawa
70
70
 
71
71
  To contribute, clone this github repository and run the development server
72
72
 
73
+ ```js
74
+ // To preview the components
75
+ npm run storybook
76
+ // To run the landing pages
77
+ npm run dev
78
+ ```
79
+ To build the library to /dist
80
+ ```
81
+ npm run build-lib
82
+ ```
83
+ To generate /dist/index.css
84
+ ```
85
+ npm run build-css
86
+ ```
87
+
73
88
  </br>
74
89
 
75
90
  ![Alt](https://repobeats.axiom.co/api/embed/0aa365b7bd1591de135582699d523de7b262eecb.svg "Repobeats analytics image")
package/dist/index.d.mts CHANGED
@@ -1058,32 +1058,24 @@ type RegisterFormTypes = {
1058
1058
  texts: {
1059
1059
  fullNameLabel: string;
1060
1060
  fullNamePlaceholder: string;
1061
- fullNameRequiredText: string;
1062
1061
  emailLabel: string;
1063
1062
  emailPlaceholder: string;
1064
- emailRequiredText: string;
1065
- emailInvalidText: string;
1063
+ emailRequired: string;
1064
+ emailInvalid: string;
1066
1065
  usernameLabel: string;
1067
1066
  usernamePlaceholder: string;
1068
1067
  usernameInvalid: string;
1069
1068
  usernameRequired: string;
1070
1069
  passwordLabel: string;
1071
1070
  passwordPlaceholder: string;
1072
- passwordRequiredText: string;
1073
- passwordTooShortText: string;
1071
+ passwordRequired: string;
1072
+ passwordTooShort: string;
1074
1073
  passwordsDontMatch: string;
1075
1074
  confirmPasswordLabel: string;
1076
1075
  confirmPasswordPlaceholder: string;
1077
1076
  confirmPasswordRequired: string;
1078
1077
  subscribeToNewsletter: string;
1079
- forgotPasswordText: string;
1080
- termsText: string;
1081
- iAcceptText: string;
1082
- termsRequiredText: string;
1083
- newUserText: string;
1084
- registerText: string;
1085
- loginText: string;
1086
- existingUserText: string;
1078
+ termsRequired: string;
1087
1079
  registerViaGoogleLabel: string;
1088
1080
  registerViaGithubLabel: string;
1089
1081
  registerViaTwitterLabel: string;
@@ -1091,6 +1083,11 @@ type RegisterFormTypes = {
1091
1083
  refCodePlaceholder: string;
1092
1084
  userReferenceLabel: string;
1093
1085
  userReferencePlaceholder: string;
1086
+ existingUserText: string;
1087
+ termsText: string;
1088
+ iAcceptText: string;
1089
+ registerText: string;
1090
+ loginText: string;
1094
1091
  };
1095
1092
  };
1096
1093
  declare const RegisterForm: FC<RegisterFormTypes>;
package/dist/index.d.ts CHANGED
@@ -1058,32 +1058,24 @@ type RegisterFormTypes = {
1058
1058
  texts: {
1059
1059
  fullNameLabel: string;
1060
1060
  fullNamePlaceholder: string;
1061
- fullNameRequiredText: string;
1062
1061
  emailLabel: string;
1063
1062
  emailPlaceholder: string;
1064
- emailRequiredText: string;
1065
- emailInvalidText: string;
1063
+ emailRequired: string;
1064
+ emailInvalid: string;
1066
1065
  usernameLabel: string;
1067
1066
  usernamePlaceholder: string;
1068
1067
  usernameInvalid: string;
1069
1068
  usernameRequired: string;
1070
1069
  passwordLabel: string;
1071
1070
  passwordPlaceholder: string;
1072
- passwordRequiredText: string;
1073
- passwordTooShortText: string;
1071
+ passwordRequired: string;
1072
+ passwordTooShort: string;
1074
1073
  passwordsDontMatch: string;
1075
1074
  confirmPasswordLabel: string;
1076
1075
  confirmPasswordPlaceholder: string;
1077
1076
  confirmPasswordRequired: string;
1078
1077
  subscribeToNewsletter: string;
1079
- forgotPasswordText: string;
1080
- termsText: string;
1081
- iAcceptText: string;
1082
- termsRequiredText: string;
1083
- newUserText: string;
1084
- registerText: string;
1085
- loginText: string;
1086
- existingUserText: string;
1078
+ termsRequired: string;
1087
1079
  registerViaGoogleLabel: string;
1088
1080
  registerViaGithubLabel: string;
1089
1081
  registerViaTwitterLabel: string;
@@ -1091,6 +1083,11 @@ type RegisterFormTypes = {
1091
1083
  refCodePlaceholder: string;
1092
1084
  userReferenceLabel: string;
1093
1085
  userReferencePlaceholder: string;
1086
+ existingUserText: string;
1087
+ termsText: string;
1088
+ iAcceptText: string;
1089
+ registerText: string;
1090
+ loginText: string;
1094
1091
  };
1095
1092
  };
1096
1093
  declare const RegisterForm: FC<RegisterFormTypes>;
package/dist/index.js CHANGED
@@ -7171,11 +7171,11 @@ var RegisterForm = function(_param) {
7171
7171
  break;
7172
7172
  case "email":
7173
7173
  fieldSchemas["email"] = z2.string({
7174
- required_error: texts === null || texts === void 0 ? void 0 : texts.emailRequiredText
7174
+ required_error: texts === null || texts === void 0 ? void 0 : texts.emailRequired
7175
7175
  }).email({
7176
- message: texts === null || texts === void 0 ? void 0 : texts.emailInvalidText
7176
+ message: texts === null || texts === void 0 ? void 0 : texts.emailInvalid
7177
7177
  }).min(1, {
7178
- message: texts === null || texts === void 0 ? void 0 : texts.emailRequiredText
7178
+ message: texts === null || texts === void 0 ? void 0 : texts.emailRequired
7179
7179
  });
7180
7180
  break;
7181
7181
  case "username":
@@ -7194,29 +7194,29 @@ var RegisterForm = function(_param) {
7194
7194
  });
7195
7195
  var formSchema = z2.object(_object_spread_props(_object_spread({}, fieldSchemas), {
7196
7196
  password: z2.string({
7197
- required_error: texts === null || texts === void 0 ? void 0 : texts.passwordRequiredText
7197
+ required_error: texts === null || texts === void 0 ? void 0 : texts.passwordRequired
7198
7198
  }).min(5, {
7199
- message: texts === null || texts === void 0 ? void 0 : texts.passwordTooShortText
7199
+ message: texts === null || texts === void 0 ? void 0 : texts.passwordTooShort
7200
7200
  }).refine(function(value) {
7201
7201
  return value !== "";
7202
7202
  }, {
7203
- message: texts === null || texts === void 0 ? void 0 : texts.passwordRequiredText
7203
+ message: texts === null || texts === void 0 ? void 0 : texts.passwordRequired
7204
7204
  }),
7205
7205
  confirm_password: z2.string({
7206
7206
  required_error: texts === null || texts === void 0 ? void 0 : texts.confirmPasswordRequired
7207
7207
  }).refine(function(value) {
7208
7208
  return value !== "";
7209
7209
  }, {
7210
- message: texts === null || texts === void 0 ? void 0 : texts.passwordRequiredText
7210
+ message: texts === null || texts === void 0 ? void 0 : texts.passwordRequired
7211
7211
  }),
7212
7212
  refCode: z2.string().optional(),
7213
7213
  reference: z2.string().optional(),
7214
7214
  terms_accepted: z2.boolean({
7215
- required_error: texts === null || texts === void 0 ? void 0 : texts.termsRequiredText
7215
+ required_error: texts === null || texts === void 0 ? void 0 : texts.termsRequired
7216
7216
  }).refine(function(value) {
7217
7217
  return value;
7218
7218
  }, {
7219
- message: texts === null || texts === void 0 ? void 0 : texts.termsRequiredText
7219
+ message: texts === null || texts === void 0 ? void 0 : texts.termsRequired
7220
7220
  }),
7221
7221
  newsletter_accepted: z2.boolean().optional()
7222
7222
  })).refine(function(data) {
package/dist/index.mjs CHANGED
@@ -7052,7 +7052,7 @@ var RegisterForm = ({ texts, ...props }) => {
7052
7052
  fieldSchemas["fullName"] = z2.string().optional();
7053
7053
  break;
7054
7054
  case "email":
7055
- fieldSchemas["email"] = z2.string({ required_error: texts?.emailRequiredText }).email({ message: texts?.emailInvalidText }).min(1, { message: texts?.emailRequiredText });
7055
+ fieldSchemas["email"] = z2.string({ required_error: texts?.emailRequired }).email({ message: texts?.emailInvalid }).min(1, { message: texts?.emailRequired });
7056
7056
  break;
7057
7057
  case "username":
7058
7058
  fieldSchemas["username"] = z2.string({ required_error: texts?.usernameRequired }).min(1, { message: texts?.usernameRequired }).refine(
@@ -7067,15 +7067,15 @@ var RegisterForm = ({ texts, ...props }) => {
7067
7067
  });
7068
7068
  const formSchema = z2.object({
7069
7069
  ...fieldSchemas,
7070
- password: z2.string({ required_error: texts?.passwordRequiredText }).min(5, { message: texts?.passwordTooShortText }).refine((value) => value !== "", {
7071
- message: texts?.passwordRequiredText
7070
+ password: z2.string({ required_error: texts?.passwordRequired }).min(5, { message: texts?.passwordTooShort }).refine((value) => value !== "", {
7071
+ message: texts?.passwordRequired
7072
7072
  }),
7073
7073
  confirm_password: z2.string({ required_error: texts?.confirmPasswordRequired }).refine((value) => value !== "", {
7074
- message: texts?.passwordRequiredText
7074
+ message: texts?.passwordRequired
7075
7075
  }),
7076
7076
  refCode: z2.string().optional(),
7077
7077
  reference: z2.string().optional(),
7078
- terms_accepted: z2.boolean({ required_error: texts?.termsRequiredText }).refine((value) => value, { message: texts?.termsRequiredText }),
7078
+ terms_accepted: z2.boolean({ required_error: texts?.termsRequired }).refine((value) => value, { message: texts?.termsRequired }),
7079
7079
  newsletter_accepted: z2.boolean().optional()
7080
7080
  }).refine((data) => data.password === data.confirm_password, {
7081
7081
  message: texts?.passwordsDontMatch,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.10.25-next",
3
+ "version": "0.10.26-next",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {