@sikka/hawa 0.11.18-next → 0.11.20-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.css CHANGED
@@ -2439,14 +2439,6 @@ input[type="number"]::-webkit-inner-spin-button,
2439
2439
  --tw-text-opacity: 1;
2440
2440
  color: rgb(115 115 115 / var(--tw-text-opacity));
2441
2441
  }
2442
- .hawa-text-neutral-700 {
2443
- --tw-text-opacity: 1;
2444
- color: rgb(64 64 64 / var(--tw-text-opacity));
2445
- }
2446
- .hawa-text-neutral-900 {
2447
- --tw-text-opacity: 1;
2448
- color: rgb(23 23 23 / var(--tw-text-opacity));
2449
- }
2450
2442
  .hawa-text-orange-500 {
2451
2443
  --tw-text-opacity: 1;
2452
2444
  color: rgb(249 115 22 / var(--tw-text-opacity));
@@ -2460,9 +2452,15 @@ input[type="number"]::-webkit-inner-spin-button,
2460
2452
  .hawa-text-primary-foreground {
2461
2453
  color: hsl(var(--primary-foreground));
2462
2454
  }
2455
+ .hawa-text-primary\/60 {
2456
+ color: hsl(var(--primary) / 0.6);
2457
+ }
2463
2458
  .hawa-text-primary\/70 {
2464
2459
  color: hsl(var(--primary) / 0.7);
2465
2460
  }
2461
+ .hawa-text-primary\/90 {
2462
+ color: hsl(var(--primary) / 0.9);
2463
+ }
2466
2464
  .hawa-text-purple-500 {
2467
2465
  --tw-text-opacity: 1;
2468
2466
  color: rgb(168 85 247 / var(--tw-text-opacity));
@@ -3089,18 +3087,25 @@ body {
3089
3087
  .hawa-group.destructive .group-\[\.destructive\]\:focus\:hawa-ring-offset-red-600:focus {
3090
3088
  --tw-ring-offset-color: #dc2626;
3091
3089
  }
3092
- .hawa-peer:checked ~ .peer-checked\:hawa-border-blue-500 {
3093
- --tw-border-opacity: 1;
3094
- border-color: rgb(59 130 246 / var(--tw-border-opacity));
3095
- }
3096
3090
  .hawa-peer:checked ~ .peer-checked\:hawa-border-blue-600 {
3097
3091
  --tw-border-opacity: 1;
3098
3092
  border-color: rgb(37 99 235 / var(--tw-border-opacity));
3099
3093
  }
3094
+ .hawa-peer:checked ~ .peer-checked\:hawa-border-primary {
3095
+ border-color: hsl(var(--primary));
3096
+ }
3100
3097
  .hawa-peer:checked ~ .peer-checked\:hawa-text-blue-600 {
3101
3098
  --tw-text-opacity: 1;
3102
3099
  color: rgb(37 99 235 / var(--tw-text-opacity));
3103
3100
  }
3101
+ .hawa-peer:checked ~ .peer-checked\:hawa-ring-4 {
3102
+ --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
3103
+ --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);
3104
+ box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
3105
+ }
3106
+ .hawa-peer:checked ~ .peer-checked\:hawa-ring-primary\/20 {
3107
+ --tw-ring-color: hsl(var(--primary) / 0.2);
3108
+ }
3104
3109
  .hawa-peer:disabled ~ .peer-disabled\:hawa-cursor-not-allowed {
3105
3110
  cursor: not-allowed;
3106
3111
  }
@@ -3466,10 +3471,6 @@ body {
3466
3471
  --tw-text-opacity: 1;
3467
3472
  color: rgb(30 64 175 / var(--tw-text-opacity));
3468
3473
  }
3469
- :is([data-mode="dark"] .dark\:hawa-text-gray-100) {
3470
- --tw-text-opacity: 1;
3471
- color: rgb(243 244 246 / var(--tw-text-opacity));
3472
- }
3473
3474
  :is([data-mode="dark"] .dark\:hawa-text-gray-300) {
3474
3475
  --tw-text-opacity: 1;
3475
3476
  color: rgb(209 213 219 / var(--tw-text-opacity));
package/dist/index.d.mts CHANGED
@@ -1037,8 +1037,7 @@ type LoginFormTextsTypes = ThirdPartyAuthTextsTypes & {
1037
1037
  loginText?: string;
1038
1038
  };
1039
1039
  type RegisterFormTextsTypes = ThirdPartyAuthTextsTypes & {
1040
- fullNameLabel: string;
1041
- fullNamePlaceholder: string;
1040
+ fullName: BaseInputType;
1042
1041
  email?: TextInputType;
1043
1042
  username?: UsernameInputType;
1044
1043
  password?: PasswordInputType;
@@ -1054,6 +1053,23 @@ type RegisterFormTextsTypes = ThirdPartyAuthTextsTypes & {
1054
1053
  registerText: string;
1055
1054
  loginText: string;
1056
1055
  };
1056
+ type ResetPasswordTextsTypes = {
1057
+ email: TextInputType;
1058
+ emailSentText: string;
1059
+ registerText: string;
1060
+ resetPassword: string;
1061
+ dontHaveAccount: string;
1062
+ headTitle?: string;
1063
+ headDescription?: string;
1064
+ };
1065
+ type NewPasswordTextsTypes = {
1066
+ password?: PasswordInputType;
1067
+ confirm?: ConfirmInputType;
1068
+ updatePassword: string;
1069
+ passwordChanged: string;
1070
+ dontHaveAccount?: string;
1071
+ registerText?: string;
1072
+ };
1057
1073
 
1058
1074
  type LoginFormTypes = {
1059
1075
  texts?: LoginFormTextsTypes;
@@ -1225,20 +1241,7 @@ type NewPasswordTypes = {
1225
1241
  headless?: boolean;
1226
1242
  allowRegister?: boolean;
1227
1243
  passwordChanged: any;
1228
- texts: {
1229
- passwordPlaceholder: string;
1230
- passwordRequired: string;
1231
- passwordLabel: string;
1232
- passwordMatchError: string;
1233
- passwordTooShort: string;
1234
- updatePassword: string;
1235
- passwordChanged: string;
1236
- confirmPasswordPlaceholder: string;
1237
- confirmPasswordLabel: string;
1238
- confirmPasswordRequired: string;
1239
- dontHaveAccount?: string;
1240
- registerText?: string;
1241
- };
1244
+ texts: NewPasswordTextsTypes;
1242
1245
  };
1243
1246
  declare const NewPasswordForm: FC<NewPasswordTypes>;
1244
1247
 
@@ -1249,25 +1252,11 @@ type ResetPasswordType = {
1249
1252
  headless?: boolean;
1250
1253
  allowRegister?: boolean;
1251
1254
  direction?: "rtl" | "ltr";
1252
- texts?: {
1253
- emailLabel: string;
1254
- emailPlaceholder: string;
1255
- emailRequired: string;
1256
- emailInvalid: string;
1257
- emailSentText: string;
1258
- registerText: string;
1259
- resetPassword: string;
1260
- dontHaveAccount: string;
1261
- headTitle?: string;
1262
- headDescription?: string;
1263
- };
1255
+ texts?: ResetPasswordTextsTypes;
1264
1256
  };
1265
1257
  declare const ResetPasswordForm: FC<ResetPasswordType>;
1266
1258
 
1267
1259
  type TConfirmation = {
1268
- showError?: any;
1269
- errorTitle?: any;
1270
- errorText?: any;
1271
1260
  texts?: {
1272
1261
  checkYourPhone?: string;
1273
1262
  weSentCode?: string;
@@ -1280,6 +1269,9 @@ type TConfirmation = {
1280
1269
  confirm?: string;
1281
1270
  cancel?: string;
1282
1271
  };
1272
+ showError?: any;
1273
+ errorTitle?: any;
1274
+ errorText?: any;
1283
1275
  phoneNumber?: string;
1284
1276
  handleConfirm?: any;
1285
1277
  };
package/dist/index.d.ts CHANGED
@@ -1037,8 +1037,7 @@ type LoginFormTextsTypes = ThirdPartyAuthTextsTypes & {
1037
1037
  loginText?: string;
1038
1038
  };
1039
1039
  type RegisterFormTextsTypes = ThirdPartyAuthTextsTypes & {
1040
- fullNameLabel: string;
1041
- fullNamePlaceholder: string;
1040
+ fullName: BaseInputType;
1042
1041
  email?: TextInputType;
1043
1042
  username?: UsernameInputType;
1044
1043
  password?: PasswordInputType;
@@ -1054,6 +1053,23 @@ type RegisterFormTextsTypes = ThirdPartyAuthTextsTypes & {
1054
1053
  registerText: string;
1055
1054
  loginText: string;
1056
1055
  };
1056
+ type ResetPasswordTextsTypes = {
1057
+ email: TextInputType;
1058
+ emailSentText: string;
1059
+ registerText: string;
1060
+ resetPassword: string;
1061
+ dontHaveAccount: string;
1062
+ headTitle?: string;
1063
+ headDescription?: string;
1064
+ };
1065
+ type NewPasswordTextsTypes = {
1066
+ password?: PasswordInputType;
1067
+ confirm?: ConfirmInputType;
1068
+ updatePassword: string;
1069
+ passwordChanged: string;
1070
+ dontHaveAccount?: string;
1071
+ registerText?: string;
1072
+ };
1057
1073
 
1058
1074
  type LoginFormTypes = {
1059
1075
  texts?: LoginFormTextsTypes;
@@ -1225,20 +1241,7 @@ type NewPasswordTypes = {
1225
1241
  headless?: boolean;
1226
1242
  allowRegister?: boolean;
1227
1243
  passwordChanged: any;
1228
- texts: {
1229
- passwordPlaceholder: string;
1230
- passwordRequired: string;
1231
- passwordLabel: string;
1232
- passwordMatchError: string;
1233
- passwordTooShort: string;
1234
- updatePassword: string;
1235
- passwordChanged: string;
1236
- confirmPasswordPlaceholder: string;
1237
- confirmPasswordLabel: string;
1238
- confirmPasswordRequired: string;
1239
- dontHaveAccount?: string;
1240
- registerText?: string;
1241
- };
1244
+ texts: NewPasswordTextsTypes;
1242
1245
  };
1243
1246
  declare const NewPasswordForm: FC<NewPasswordTypes>;
1244
1247
 
@@ -1249,25 +1252,11 @@ type ResetPasswordType = {
1249
1252
  headless?: boolean;
1250
1253
  allowRegister?: boolean;
1251
1254
  direction?: "rtl" | "ltr";
1252
- texts?: {
1253
- emailLabel: string;
1254
- emailPlaceholder: string;
1255
- emailRequired: string;
1256
- emailInvalid: string;
1257
- emailSentText: string;
1258
- registerText: string;
1259
- resetPassword: string;
1260
- dontHaveAccount: string;
1261
- headTitle?: string;
1262
- headDescription?: string;
1263
- };
1255
+ texts?: ResetPasswordTextsTypes;
1264
1256
  };
1265
1257
  declare const ResetPasswordForm: FC<ResetPasswordType>;
1266
1258
 
1267
1259
  type TConfirmation = {
1268
- showError?: any;
1269
- errorTitle?: any;
1270
- errorText?: any;
1271
1260
  texts?: {
1272
1261
  checkYourPhone?: string;
1273
1262
  weSentCode?: string;
@@ -1280,6 +1269,9 @@ type TConfirmation = {
1280
1269
  confirm?: string;
1281
1270
  cancel?: string;
1282
1271
  };
1272
+ showError?: any;
1273
+ errorTitle?: any;
1274
+ errorText?: any;
1283
1275
  phoneNumber?: string;
1284
1276
  handleConfirm?: any;
1285
1277
  };
package/dist/index.js CHANGED
@@ -7394,11 +7394,11 @@ var RegisterForm = function(_param) {
7394
7394
  name: "fullName",
7395
7395
  render: function(param) {
7396
7396
  var field = param.field;
7397
- var _formState_errors_fullName;
7397
+ var _texts_fullName, _texts_fullName1, _formState_errors_fullName;
7398
7398
  return /* @__PURE__ */ import_react39.default.createElement(Input, _object_spread({
7399
7399
  width: "full",
7400
- label: texts === null || texts === void 0 ? void 0 : texts.fullNameLabel,
7401
- placeholder: texts === null || texts === void 0 ? void 0 : texts.fullNamePlaceholder,
7400
+ label: texts === null || texts === void 0 ? void 0 : (_texts_fullName = texts.fullName) === null || _texts_fullName === void 0 ? void 0 : _texts_fullName.label,
7401
+ placeholder: texts === null || texts === void 0 ? void 0 : (_texts_fullName1 = texts.fullName) === null || _texts_fullName1 === void 0 ? void 0 : _texts_fullName1.placeholder,
7402
7402
  helperText: (_formState_errors_fullName = formState.errors.fullName) === null || _formState_errors_fullName === void 0 ? void 0 : _formState_errors_fullName.message
7403
7403
  }, field));
7404
7404
  }
@@ -7700,25 +7700,26 @@ var NewPasswordForm = function(_param) {
7700
7700
  var texts = _param.texts, props = _object_without_properties(_param, [
7701
7701
  "texts"
7702
7702
  ]);
7703
+ var _texts_password, _texts_password1, _texts_password2, _texts_confirm, _texts_password3, _texts_confirm1, _texts_confirm2;
7703
7704
  var formSchema = z3.object({
7704
7705
  password: z3.string({
7705
- required_error: texts === null || texts === void 0 ? void 0 : texts.passwordRequired
7706
+ required_error: texts === null || texts === void 0 ? void 0 : (_texts_password = texts.password) === null || _texts_password === void 0 ? void 0 : _texts_password.required
7706
7707
  }).min(1, {
7707
- message: texts === null || texts === void 0 ? void 0 : texts.passwordRequired
7708
+ message: texts === null || texts === void 0 ? void 0 : (_texts_password1 = texts.password) === null || _texts_password1 === void 0 ? void 0 : _texts_password1.required
7708
7709
  }).min(8, {
7709
- message: texts === null || texts === void 0 ? void 0 : texts.passwordTooShort
7710
+ message: texts === null || texts === void 0 ? void 0 : (_texts_password2 = texts.password) === null || _texts_password2 === void 0 ? void 0 : _texts_password2.tooShort
7710
7711
  }),
7711
7712
  confirm_password: z3.string({
7712
- required_error: texts === null || texts === void 0 ? void 0 : texts.confirmPasswordRequired
7713
+ required_error: texts === null || texts === void 0 ? void 0 : (_texts_confirm = texts.confirm) === null || _texts_confirm === void 0 ? void 0 : _texts_confirm.required
7713
7714
  }).refine(function(value) {
7714
7715
  return value !== "";
7715
7716
  }, {
7716
- message: texts === null || texts === void 0 ? void 0 : texts.passwordRequired
7717
+ message: texts === null || texts === void 0 ? void 0 : (_texts_password3 = texts.password) === null || _texts_password3 === void 0 ? void 0 : _texts_password3.required
7717
7718
  })
7718
7719
  }).refine(function(data) {
7719
7720
  return data.password === data.confirm_password;
7720
7721
  }, {
7721
- message: "Passwords don't match",
7722
+ message: texts === null || texts === void 0 ? void 0 : (_texts_confirm1 = texts.confirm) === null || _texts_confirm1 === void 0 ? void 0 : _texts_confirm1.dontMatch,
7722
7723
  path: [
7723
7724
  "confirm_password"
7724
7725
  ]
@@ -7731,7 +7732,7 @@ var NewPasswordForm = function(_param) {
7731
7732
  return /* @__PURE__ */ import_react42.default.createElement(Card, {
7732
7733
  dir: props.direction
7733
7734
  }, matchError && /* @__PURE__ */ import_react42.default.createElement(Alert, {
7734
- text: texts === null || texts === void 0 ? void 0 : texts.passwordMatchError,
7735
+ text: texts === null || texts === void 0 ? void 0 : (_texts_confirm2 = texts.confirm) === null || _texts_confirm2 === void 0 ? void 0 : _texts_confirm2.dontMatch,
7735
7736
  severity: "error"
7736
7737
  }), props.passwordChanged ? /* @__PURE__ */ import_react42.default.createElement(CardContent, {
7737
7738
  headless: true
@@ -7754,13 +7755,13 @@ var NewPasswordForm = function(_param) {
7754
7755
  name: "password",
7755
7756
  render: function(param) {
7756
7757
  var field = param.field;
7757
- var _formState_errors_password;
7758
+ var _texts_password, _texts_password1, _formState_errors_password;
7758
7759
  return /* @__PURE__ */ import_react42.default.createElement(Input, _object_spread({
7759
7760
  width: "full",
7760
7761
  type: "password",
7761
7762
  autoComplete: "new-password",
7762
- label: texts === null || texts === void 0 ? void 0 : texts.passwordLabel,
7763
- placeholder: texts === null || texts === void 0 ? void 0 : texts.passwordPlaceholder,
7763
+ label: texts === null || texts === void 0 ? void 0 : (_texts_password = texts.password) === null || _texts_password === void 0 ? void 0 : _texts_password.label,
7764
+ placeholder: texts === null || texts === void 0 ? void 0 : (_texts_password1 = texts.password) === null || _texts_password1 === void 0 ? void 0 : _texts_password1.placeholder,
7764
7765
  helperText: (_formState_errors_password = formState.errors.password) === null || _formState_errors_password === void 0 ? void 0 : _formState_errors_password.message
7765
7766
  }, field));
7766
7767
  }
@@ -7769,13 +7770,13 @@ var NewPasswordForm = function(_param) {
7769
7770
  name: "confirm_password",
7770
7771
  render: function(param) {
7771
7772
  var field = param.field;
7772
- var _formState_errors_confirm_password;
7773
+ var _texts_confirm, _texts_confirm1, _formState_errors_confirm_password;
7773
7774
  return /* @__PURE__ */ import_react42.default.createElement(Input, _object_spread({
7774
7775
  width: "full",
7775
7776
  type: "password",
7776
7777
  autoComplete: "new-password",
7777
- label: texts === null || texts === void 0 ? void 0 : texts.confirmPasswordLabel,
7778
- placeholder: texts === null || texts === void 0 ? void 0 : texts.confirmPasswordPlaceholder,
7778
+ label: texts === null || texts === void 0 ? void 0 : (_texts_confirm = texts.confirm) === null || _texts_confirm === void 0 ? void 0 : _texts_confirm.label,
7779
+ placeholder: texts === null || texts === void 0 ? void 0 : (_texts_confirm1 = texts.confirm) === null || _texts_confirm1 === void 0 ? void 0 : _texts_confirm1.placeholder,
7779
7780
  helperText: (_formState_errors_confirm_password = formState.errors.confirm_password) === null || _formState_errors_confirm_password === void 0 ? void 0 : _formState_errors_confirm_password.message
7780
7781
  }, field));
7781
7782
  }
@@ -7797,14 +7798,14 @@ var import_react_hook_form4 = require("react-hook-form");
7797
7798
  var import_zod4 = require("@hookform/resolvers/zod");
7798
7799
  var z4 = __toESM(require("zod"));
7799
7800
  var ResetPasswordForm = function(props) {
7800
- var _props_texts, _props_texts1, _props_texts2, _props_texts3, _props_texts4, _props_texts5, _props_texts6, _props_texts7, _props_texts8;
7801
+ var _props_texts_email, _props_texts, _props_texts_email1, _props_texts1, _props_texts_email2, _props_texts2, _props_texts3, _props_texts4, _props_texts5, _props_texts6, _props_texts7, _props_texts8;
7801
7802
  var formSchema = z4.object({
7802
7803
  email: z4.string({
7803
- required_error: (_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : _props_texts.emailRequired
7804
+ required_error: (_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : (_props_texts_email = _props_texts.email) === null || _props_texts_email === void 0 ? void 0 : _props_texts_email.required
7804
7805
  }).email({
7805
- message: (_props_texts1 = props.texts) === null || _props_texts1 === void 0 ? void 0 : _props_texts1.emailInvalid
7806
+ message: (_props_texts1 = props.texts) === null || _props_texts1 === void 0 ? void 0 : (_props_texts_email1 = _props_texts1.email) === null || _props_texts_email1 === void 0 ? void 0 : _props_texts_email1.invalid
7806
7807
  }).min(1, {
7807
- message: (_props_texts2 = props.texts) === null || _props_texts2 === void 0 ? void 0 : _props_texts2.emailRequired
7808
+ message: (_props_texts2 = props.texts) === null || _props_texts2 === void 0 ? void 0 : (_props_texts_email2 = _props_texts2.email) === null || _props_texts_email2 === void 0 ? void 0 : _props_texts_email2.required
7808
7809
  })
7809
7810
  });
7810
7811
  var _ref = (0, import_react_hook_form4.useForm)({
@@ -7829,12 +7830,12 @@ var ResetPasswordForm = function(props) {
7829
7830
  name: "email",
7830
7831
  render: function(param) {
7831
7832
  var field = param.field;
7832
- var _props_texts, _formState_errors_email, _props_texts1;
7833
+ var _props_texts_email, _props_texts, _formState_errors_email, _props_texts_email1, _props_texts1;
7833
7834
  return /* @__PURE__ */ import_react43.default.createElement(Input, _object_spread({
7834
7835
  width: "full",
7835
- label: (_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : _props_texts.emailLabel,
7836
+ label: (_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : (_props_texts_email = _props_texts.email) === null || _props_texts_email === void 0 ? void 0 : _props_texts_email.label,
7836
7837
  helperText: (_formState_errors_email = formState.errors.email) === null || _formState_errors_email === void 0 ? void 0 : _formState_errors_email.message,
7837
- placeholder: (_props_texts1 = props.texts) === null || _props_texts1 === void 0 ? void 0 : _props_texts1.emailPlaceholder
7838
+ placeholder: (_props_texts1 = props.texts) === null || _props_texts1 === void 0 ? void 0 : (_props_texts_email1 = _props_texts1.email) === null || _props_texts_email1 === void 0 ? void 0 : _props_texts_email1.placeholder
7838
7839
  }, field));
7839
7840
  }
7840
7841
  })), /* @__PURE__ */ import_react43.default.createElement(CardFooter, {
@@ -8797,7 +8798,7 @@ var HorizontalPricing = function(props) {
8797
8798
  id: d.title,
8798
8799
  className: "hawa-peer hawa-appearance-none"
8799
8800
  }), /* @__PURE__ */ import_react58.default.createElement("div", {
8800
- className: (0, import_clsx13.default)(selectedCard === d.title ? "peer-checked:hawa-border-blue-500" : "", "hawa-peer hawa-flex hawa-cursor-pointer hawa-items-center hawa-justify-between hawa-rounded-xl hawa-border hawa-bg-background hawa-px-5 hawa-py-4 hawa-shadow dark:hawa-text-white peer-checked:[&_.active]:hawa-block peer-checked:[&_.default]:hawa-hidden")
8801
+ className: (0, import_clsx13.default)(selectedCard === d.title ? "peer-checked:hawa-border-primary peer-checked:hawa-ring-primary/20 peer-checked:hawa-ring-4 " : "", "hawa-peer hawa-flex hawa-cursor-pointer hawa-items-center hawa-justify-between hawa-rounded-xl hawa-border hawa-bg-background hawa-px-5 hawa-py-4 hawa-shadow dark:hawa-text-white peer-checked:[&_.active]:hawa-block peer-checked:[&_.default]:hawa-hidden")
8801
8802
  }, /* @__PURE__ */ import_react58.default.createElement("div", {
8802
8803
  className: "hawa-peer hawa-flex hawa-items-center hawa-gap-4"
8803
8804
  }, /* @__PURE__ */ import_react58.default.createElement(CheckIcons, null), /* @__PURE__ */ import_react58.default.createElement(CardText, {
@@ -8834,14 +8835,14 @@ var CardText = function(props) {
8834
8835
  return /* @__PURE__ */ import_react58.default.createElement("div", {
8835
8836
  className: "hawa-peer hawa-flex hawa-flex-col hawa-items-start "
8836
8837
  }, /* @__PURE__ */ import_react58.default.createElement("h2", {
8837
- className: "hawa-font-medium hawa-text-neutral-700 dark:hawa-text-gray-100 sm:hawa-text-xl"
8838
+ className: "hawa-font-medium hawa-text-primary/90 sm:hawa-text-xl"
8838
8839
  }, props.title), /* @__PURE__ */ import_react58.default.createElement("p", {
8839
- className: "hawa-text-sm hawa-text-neutral-500 dark:hawa-text-gray-300"
8840
+ className: "hawa-text-sm hawa-text-primary/60"
8840
8841
  }, props.subtitle, " "));
8841
8842
  };
8842
8843
  var CardPrice = function(props) {
8843
8844
  return /* @__PURE__ */ import_react58.default.createElement("h2", {
8844
- className: "hawa-peer hawa-text-xl hawa-font-semibold hawa-text-neutral-900 dark:hawa-text-white sm:hawa-text-2xl"
8845
+ className: "hawa-peer hawa-text-xl hawa-font-semibold hawa-text-primary sm:hawa-text-2xl"
8845
8846
  }, props.amount, /* @__PURE__ */ import_react58.default.createElement("span", {
8846
8847
  className: "hawa-text-base hawa-font-medium hawa-text-neutral-400"
8847
8848
  }, props.cycle));
package/dist/index.mjs CHANGED
@@ -4748,10 +4748,7 @@ var DataTable = ({
4748
4748
  ...props
4749
4749
  }) => {
4750
4750
  const [sorting, setSorting] = React38.useState([
4751
- {
4752
- id: props.defaultSort || "",
4753
- desc: false
4754
- }
4751
+ { id: props.defaultSort || "", desc: false }
4755
4752
  ]);
4756
4753
  const [columnFilters, setColumnFilters] = React38.useState(
4757
4754
  []
@@ -7320,8 +7317,8 @@ var RegisterForm = ({ texts, ...props }) => {
7320
7317
  Input,
7321
7318
  {
7322
7319
  width: "full",
7323
- label: texts?.fullNameLabel,
7324
- placeholder: texts?.fullNamePlaceholder,
7320
+ label: texts?.fullName?.label,
7321
+ placeholder: texts?.fullName?.placeholder,
7325
7322
  helperText: formState.errors.fullName?.message,
7326
7323
  ...field
7327
7324
  }
@@ -7656,19 +7653,19 @@ import { zodResolver as zodResolver3 } from "@hookform/resolvers/zod";
7656
7653
  import * as z3 from "zod";
7657
7654
  var NewPasswordForm = ({ texts, ...props }) => {
7658
7655
  const formSchema = z3.object({
7659
- password: z3.string({ required_error: texts?.passwordRequired }).min(1, { message: texts?.passwordRequired }).min(8, { message: texts?.passwordTooShort }),
7660
- confirm_password: z3.string({ required_error: texts?.confirmPasswordRequired }).refine((value) => value !== "", {
7661
- message: texts?.passwordRequired
7656
+ password: z3.string({ required_error: texts?.password?.required }).min(1, { message: texts?.password?.required }).min(8, { message: texts?.password?.tooShort }),
7657
+ confirm_password: z3.string({ required_error: texts?.confirm?.required }).refine((value) => value !== "", {
7658
+ message: texts?.password?.required
7662
7659
  })
7663
7660
  }).refine((data) => data.password === data.confirm_password, {
7664
- message: "Passwords don't match",
7661
+ message: texts?.confirm?.dontMatch,
7665
7662
  path: ["confirm_password"]
7666
7663
  });
7667
7664
  const { handleSubmit, control, formState } = useForm3({
7668
7665
  resolver: zodResolver3(formSchema)
7669
7666
  });
7670
7667
  const [matchError, setMatchError] = useState24(false);
7671
- return /* @__PURE__ */ React66.createElement(Card, { dir: props.direction }, matchError && /* @__PURE__ */ React66.createElement(Alert, { text: texts?.passwordMatchError, severity: "error" }), props.passwordChanged ? /* @__PURE__ */ React66.createElement(CardContent, { headless: true }, /* @__PURE__ */ React66.createElement("div", { className: "hawa-text-center" }, texts?.passwordChanged)) : /* @__PURE__ */ React66.createElement(
7668
+ return /* @__PURE__ */ React66.createElement(Card, { dir: props.direction }, matchError && /* @__PURE__ */ React66.createElement(Alert, { text: texts?.confirm?.dontMatch, severity: "error" }), props.passwordChanged ? /* @__PURE__ */ React66.createElement(CardContent, { headless: true }, /* @__PURE__ */ React66.createElement("div", { className: "hawa-text-center" }, texts?.passwordChanged)) : /* @__PURE__ */ React66.createElement(
7672
7669
  "form",
7673
7670
  {
7674
7671
  noValidate: true,
@@ -7700,8 +7697,8 @@ var NewPasswordForm = ({ texts, ...props }) => {
7700
7697
  width: "full",
7701
7698
  type: "password",
7702
7699
  autoComplete: "new-password",
7703
- label: texts?.passwordLabel,
7704
- placeholder: texts?.passwordPlaceholder,
7700
+ label: texts?.password?.label,
7701
+ placeholder: texts?.password?.placeholder,
7705
7702
  helperText: formState.errors.password?.message,
7706
7703
  ...field
7707
7704
  }
@@ -7719,8 +7716,8 @@ var NewPasswordForm = ({ texts, ...props }) => {
7719
7716
  width: "full",
7720
7717
  type: "password",
7721
7718
  autoComplete: "new-password",
7722
- label: texts?.confirmPasswordLabel,
7723
- placeholder: texts?.confirmPasswordPlaceholder,
7719
+ label: texts?.confirm?.label,
7720
+ placeholder: texts?.confirm?.placeholder,
7724
7721
  helperText: formState.errors.confirm_password?.message,
7725
7722
  ...field
7726
7723
  }
@@ -7746,7 +7743,7 @@ import { zodResolver as zodResolver4 } from "@hookform/resolvers/zod";
7746
7743
  import * as z4 from "zod";
7747
7744
  var ResetPasswordForm = (props) => {
7748
7745
  const formSchema = z4.object({
7749
- email: z4.string({ required_error: props.texts?.emailRequired }).email({ message: props.texts?.emailInvalid }).min(1, { message: props.texts?.emailRequired })
7746
+ email: z4.string({ required_error: props.texts?.email?.required }).email({ message: props.texts?.email?.invalid }).min(1, { message: props.texts?.email?.required })
7750
7747
  });
7751
7748
  const { handleSubmit, control, formState } = useForm4({
7752
7749
  resolver: zodResolver4(formSchema)
@@ -7772,9 +7769,9 @@ var ResetPasswordForm = (props) => {
7772
7769
  Input,
7773
7770
  {
7774
7771
  width: "full",
7775
- label: props.texts?.emailLabel,
7772
+ label: props.texts?.email?.label,
7776
7773
  helperText: formState.errors.email?.message,
7777
- placeholder: props.texts?.emailPlaceholder,
7774
+ placeholder: props.texts?.email?.placeholder,
7778
7775
  ...field
7779
7776
  }
7780
7777
  )
@@ -8704,7 +8701,7 @@ var HorizontalPricing = (props) => {
8704
8701
  "div",
8705
8702
  {
8706
8703
  className: clsx13(
8707
- selectedCard === d.title ? "peer-checked:hawa-border-blue-500" : "",
8704
+ selectedCard === d.title ? "peer-checked:hawa-border-primary peer-checked:hawa-ring-primary/20 peer-checked:hawa-ring-4 " : "",
8708
8705
  "hawa-peer hawa-flex hawa-cursor-pointer hawa-items-center hawa-justify-between hawa-rounded-xl hawa-border hawa-bg-background hawa-px-5 hawa-py-4 hawa-shadow dark:hawa-text-white peer-checked:[&_.active]:hawa-block peer-checked:[&_.default]:hawa-hidden"
8709
8706
  )
8710
8707
  },
@@ -8752,8 +8749,8 @@ var CheckIcons = () => /* @__PURE__ */ React82.createElement(React82.Fragment, n
8752
8749
  }
8753
8750
  )
8754
8751
  ));
8755
- var CardText = (props) => /* @__PURE__ */ React82.createElement("div", { className: "hawa-peer hawa-flex hawa-flex-col hawa-items-start " }, /* @__PURE__ */ React82.createElement("h2", { className: "hawa-font-medium hawa-text-neutral-700 dark:hawa-text-gray-100 sm:hawa-text-xl" }, props.title), /* @__PURE__ */ React82.createElement("p", { className: "hawa-text-sm hawa-text-neutral-500 dark:hawa-text-gray-300" }, props.subtitle, " "));
8756
- var CardPrice = (props) => /* @__PURE__ */ React82.createElement("h2", { className: "hawa-peer hawa-text-xl hawa-font-semibold hawa-text-neutral-900 dark:hawa-text-white sm:hawa-text-2xl" }, props.amount, /* @__PURE__ */ React82.createElement("span", { className: "hawa-text-base hawa-font-medium hawa-text-neutral-400" }, props.cycle));
8752
+ var CardText = (props) => /* @__PURE__ */ React82.createElement("div", { className: "hawa-peer hawa-flex hawa-flex-col hawa-items-start " }, /* @__PURE__ */ React82.createElement("h2", { className: "hawa-font-medium hawa-text-primary/90 sm:hawa-text-xl" }, props.title), /* @__PURE__ */ React82.createElement("p", { className: "hawa-text-sm hawa-text-primary/60" }, props.subtitle, " "));
8753
+ var CardPrice = (props) => /* @__PURE__ */ React82.createElement("h2", { className: "hawa-peer hawa-text-xl hawa-font-semibold hawa-text-primary sm:hawa-text-2xl" }, props.amount, /* @__PURE__ */ React82.createElement("span", { className: "hawa-text-base hawa-font-medium hawa-text-neutral-400" }, props.cycle));
8757
8754
 
8758
8755
  // components/blocks/Usage.tsx
8759
8756
  import React83 from "react";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.11.18-next",
3
+ "version": "0.11.20-next",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {