@sikka/hawa 0.14.10-next → 0.14.11-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 CHANGED
@@ -1360,8 +1360,6 @@ type TConfirmation = {
1360
1360
  weSentCode?: string;
1361
1361
  didntGetCode?: string;
1362
1362
  resendCode?: string;
1363
- codeLabel?: string;
1364
- codePlaceholder?: string;
1365
1363
  codeRequiredText?: string;
1366
1364
  codeTooShort?: string;
1367
1365
  confirm?: string;
package/dist/index.d.ts CHANGED
@@ -1360,8 +1360,6 @@ type TConfirmation = {
1360
1360
  weSentCode?: string;
1361
1361
  didntGetCode?: string;
1362
1362
  resendCode?: string;
1363
- codeLabel?: string;
1364
- codePlaceholder?: string;
1365
1363
  codeRequiredText?: string;
1366
1364
  codeTooShort?: string;
1367
1365
  confirm?: string;
package/dist/index.js CHANGED
@@ -8556,7 +8556,7 @@ var CodeConfirmation = function(props) {
8556
8556
  var _ref = (0, import_react_hook_form5.useForm)({
8557
8557
  resolver: (0, import_zod5.zodResolver)(formSchema)
8558
8558
  }), handleSubmit = _ref.handleSubmit, control = _ref.control, formState = _ref.formState, setValue = _ref.setValue;
8559
- var _props_texts_checkYourPhone, _props_texts_weSentCode, _props_texts_didntGetCode, _props_texts_resendCode, _props_texts_cancel, _props_texts_confirm;
8559
+ var _props_texts_didntGetCode;
8560
8560
  return /* @__PURE__ */ import_react50.default.createElement(Card, null, /* @__PURE__ */ import_react50.default.createElement(CardContent, {
8561
8561
  headless: true
8562
8562
  }, props.showError && /* @__PURE__ */ import_react50.default.createElement(Alert, {
@@ -8567,9 +8567,9 @@ var CodeConfirmation = function(props) {
8567
8567
  className: "hawa-mb-4 dark:hawa-text-white"
8568
8568
  }, /* @__PURE__ */ import_react50.default.createElement("div", {
8569
8569
  className: "hawa-text-lg hawa-font-bold"
8570
- }, (_props_texts_checkYourPhone = (_props_texts2 = props.texts) === null || _props_texts2 === void 0 ? void 0 : _props_texts2.checkYourPhone) !== null && _props_texts_checkYourPhone !== void 0 ? _props_texts_checkYourPhone : "Please check your phone"), /* @__PURE__ */ import_react50.default.createElement("div", {
8570
+ }, ((_props_texts2 = props.texts) === null || _props_texts2 === void 0 ? void 0 : _props_texts2.checkYourPhone) || "Please check your phone"), /* @__PURE__ */ import_react50.default.createElement("div", {
8571
8571
  className: "hawa-text-muted-foreground"
8572
- }, /* @__PURE__ */ import_react50.default.createElement("span", null, (_props_texts_weSentCode = (_props_texts3 = props.texts) === null || _props_texts3 === void 0 ? void 0 : _props_texts3.weSentCode) !== null && _props_texts_weSentCode !== void 0 ? _props_texts_weSentCode : "We've sent a code to "), /* @__PURE__ */ import_react50.default.createElement("span", null, props.phoneNumber)), " "), /* @__PURE__ */ import_react50.default.createElement("form", {
8572
+ }, /* @__PURE__ */ import_react50.default.createElement("span", null, ((_props_texts3 = props.texts) === null || _props_texts3 === void 0 ? void 0 : _props_texts3.weSentCode) || "We've sent a code to "), /* @__PURE__ */ import_react50.default.createElement("span", null, props.phoneNumber)), " "), /* @__PURE__ */ import_react50.default.createElement("form", {
8573
8573
  noValidate: true,
8574
8574
  onSubmit: handleSubmit(function(e) {
8575
8575
  if (props.handleConfirm) {
@@ -8597,11 +8597,11 @@ var CodeConfirmation = function(props) {
8597
8597
  className: " hawa-py-2 hawa-text-center hawa-text-xs hawa-text-muted-foreground"
8598
8598
  }, /* @__PURE__ */ import_react50.default.createElement("span", null, (_props_texts_didntGetCode = (_props_texts4 = props.texts) === null || _props_texts4 === void 0 ? void 0 : _props_texts4.didntGetCode) !== null && _props_texts_didntGetCode !== void 0 ? _props_texts_didntGetCode : "Didn't get the code?"), " ", /* @__PURE__ */ import_react50.default.createElement("span", {
8599
8599
  className: "clickable-link"
8600
- }, (_props_texts_resendCode = (_props_texts5 = props.texts) === null || _props_texts5 === void 0 ? void 0 : _props_texts5.resendCode) !== null && _props_texts_resendCode !== void 0 ? _props_texts_resendCode : "Click to resend")), /* @__PURE__ */ import_react50.default.createElement("div", {
8600
+ }, ((_props_texts5 = props.texts) === null || _props_texts5 === void 0 ? void 0 : _props_texts5.resendCode) || "Click to resend")), /* @__PURE__ */ import_react50.default.createElement("div", {
8601
8601
  className: "hawa-mt-4 hawa-grid hawa-grid-cols-2 hawa-gap-2"
8602
8602
  }, /* @__PURE__ */ import_react50.default.createElement(Button, {
8603
8603
  variant: "secondary"
8604
- }, (_props_texts_cancel = (_props_texts6 = props.texts) === null || _props_texts6 === void 0 ? void 0 : _props_texts6.cancel) !== null && _props_texts_cancel !== void 0 ? _props_texts_cancel : "Cancel"), /* @__PURE__ */ import_react50.default.createElement(Button, null, (_props_texts_confirm = (_props_texts7 = props.texts) === null || _props_texts7 === void 0 ? void 0 : _props_texts7.confirm) !== null && _props_texts_confirm !== void 0 ? _props_texts_confirm : "Confirm")))));
8604
+ }, ((_props_texts6 = props.texts) === null || _props_texts6 === void 0 ? void 0 : _props_texts6.cancel) || "Cancel"), /* @__PURE__ */ import_react50.default.createElement(Button, null, ((_props_texts7 = props.texts) === null || _props_texts7 === void 0 ? void 0 : _props_texts7.confirm) || "Confirm")))));
8605
8605
  };
8606
8606
  // components/blocks/feedback/UserReferralSource.tsx
8607
8607
  var import_react51 = __toESM(require("react"));
package/dist/index.mjs CHANGED
@@ -8639,7 +8639,7 @@ var CodeConfirmation = (props) => {
8639
8639
  text: props.errorText,
8640
8640
  severity: "error"
8641
8641
  }
8642
- ), /* @__PURE__ */ React75.createElement("div", { className: "hawa-mb-4 dark:hawa-text-white" }, /* @__PURE__ */ React75.createElement("div", { className: "hawa-text-lg hawa-font-bold" }, props.texts?.checkYourPhone ?? "Please check your phone"), /* @__PURE__ */ React75.createElement("div", { className: "hawa-text-muted-foreground" }, /* @__PURE__ */ React75.createElement("span", null, props.texts?.weSentCode ?? "We've sent a code to "), /* @__PURE__ */ React75.createElement("span", null, props.phoneNumber)), " "), /* @__PURE__ */ React75.createElement(
8642
+ ), /* @__PURE__ */ React75.createElement("div", { className: "hawa-mb-4 dark:hawa-text-white" }, /* @__PURE__ */ React75.createElement("div", { className: "hawa-text-lg hawa-font-bold" }, props.texts?.checkYourPhone || "Please check your phone"), /* @__PURE__ */ React75.createElement("div", { className: "hawa-text-muted-foreground" }, /* @__PURE__ */ React75.createElement("span", null, props.texts?.weSentCode || "We've sent a code to "), /* @__PURE__ */ React75.createElement("span", null, props.phoneNumber)), " "), /* @__PURE__ */ React75.createElement(
8643
8643
  "form",
8644
8644
  {
8645
8645
  noValidate: true,
@@ -8669,8 +8669,8 @@ var CodeConfirmation = (props) => {
8669
8669
  )
8670
8670
  }
8671
8671
  ),
8672
- /* @__PURE__ */ React75.createElement("div", { className: " hawa-py-2 hawa-text-center hawa-text-xs hawa-text-muted-foreground" }, /* @__PURE__ */ React75.createElement("span", null, props.texts?.didntGetCode ?? "Didn't get the code?"), " ", /* @__PURE__ */ React75.createElement("span", { className: "clickable-link" }, props.texts?.resendCode ?? "Click to resend")),
8673
- /* @__PURE__ */ React75.createElement("div", { className: "hawa-mt-4 hawa-grid hawa-grid-cols-2 hawa-gap-2" }, /* @__PURE__ */ React75.createElement(Button, { variant: "secondary" }, props.texts?.cancel ?? "Cancel"), /* @__PURE__ */ React75.createElement(Button, null, props.texts?.confirm ?? "Confirm"))
8672
+ /* @__PURE__ */ React75.createElement("div", { className: " hawa-py-2 hawa-text-center hawa-text-xs hawa-text-muted-foreground" }, /* @__PURE__ */ React75.createElement("span", null, props.texts?.didntGetCode ?? "Didn't get the code?"), " ", /* @__PURE__ */ React75.createElement("span", { className: "clickable-link" }, props.texts?.resendCode || "Click to resend")),
8673
+ /* @__PURE__ */ React75.createElement("div", { className: "hawa-mt-4 hawa-grid hawa-grid-cols-2 hawa-gap-2" }, /* @__PURE__ */ React75.createElement(Button, { variant: "secondary" }, props.texts?.cancel || "Cancel"), /* @__PURE__ */ React75.createElement(Button, null, props.texts?.confirm || "Confirm"))
8674
8674
  )));
8675
8675
  };
8676
8676
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.14.10-next",
3
+ "version": "0.14.11-next",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {