@sikka/hawa 0.27.20-next → 0.27.22-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.js CHANGED
@@ -2101,7 +2101,6 @@ Button.displayName = "Button";
2101
2101
 
2102
2102
  // elements/alert/Alert.tsx
2103
2103
  var Alert = ({
2104
- variant = "normal",
2105
2104
  direction = "ltr",
2106
2105
  severity = "none",
2107
2106
  duration,
@@ -10890,7 +10889,7 @@ var ContactForm = ({
10890
10889
  size = "default",
10891
10890
  texts,
10892
10891
  formId,
10893
- formAutoComplete,
10892
+ formAutoComplete = "off",
10894
10893
  onSubmit,
10895
10894
  customFields
10896
10895
  }) => {
@@ -10917,9 +10916,11 @@ var ContactForm = ({
10917
10916
  )
10918
10917
  });
10919
10918
  const contactFormSchema = z8.object({
10920
- name: z8.string({ required_error: texts == null ? void 0 : texts.name.required }).min(1, texts == null ? void 0 : texts.name.required).default(""),
10921
- email: z8.string({ required_error: (_a = texts == null ? void 0 : texts.email) == null ? void 0 : _a.required }).min(1, { message: (_b = texts == null ? void 0 : texts.email) == null ? void 0 : _b.required }).email({ message: (_c = texts == null ? void 0 : texts.email) == null ? void 0 : _c.invalid }).default(""),
10922
- message: z8.string({ required_error: texts == null ? void 0 : texts.message.required }).min(10, texts == null ? void 0 : texts.message.invalid).default("")
10919
+ name: z8.string({ required_error: (texts == null ? void 0 : texts.name.required) || "Name is required" }).min(1, (texts == null ? void 0 : texts.name.required) || "Name is required").default(""),
10920
+ email: z8.string({ required_error: ((_a = texts == null ? void 0 : texts.email) == null ? void 0 : _a.required) || "Email is required" }).min(1, { message: ((_b = texts == null ? void 0 : texts.email) == null ? void 0 : _b.required) || "Email is required" }).email({ message: ((_c = texts == null ? void 0 : texts.email) == null ? void 0 : _c.invalid) || "Invalid email" }).default(""),
10921
+ message: z8.string({
10922
+ required_error: (texts == null ? void 0 : texts.message.required) || "Message is required"
10923
+ }).min(10, (texts == null ? void 0 : texts.message.invalid) || "Message is too short").default("")
10923
10924
  });
10924
10925
  const customFieldsDefaultValues = customFields == null ? void 0 : customFields.reduce(
10925
10926
  (acc, curr) => {
@@ -10990,7 +10991,7 @@ var ContactForm = ({
10990
10991
  return /* @__PURE__ */ import_react64.default.createElement(
10991
10992
  Input,
10992
10993
  {
10993
- label: texts == null ? void 0 : texts.name.label,
10994
+ label: (texts == null ? void 0 : texts.name.label) || "Name",
10994
10995
  id: texts == null ? void 0 : texts.name.label,
10995
10996
  ...field,
10996
10997
  placeholder: texts == null ? void 0 : texts.name.placeholder,
@@ -11010,7 +11011,7 @@ var ContactForm = ({
11010
11011
  return /* @__PURE__ */ import_react64.default.createElement(
11011
11012
  Input,
11012
11013
  {
11013
- label: texts == null ? void 0 : texts.email.label,
11014
+ label: (texts == null ? void 0 : texts.email.label) || "Email",
11014
11015
  id: texts == null ? void 0 : texts.email.label,
11015
11016
  ...field,
11016
11017
  placeholder: texts == null ? void 0 : texts.email.placeholder,
@@ -11070,7 +11071,7 @@ var ContactForm = ({
11070
11071
  return /* @__PURE__ */ import_react64.default.createElement(
11071
11072
  Textarea,
11072
11073
  {
11073
- label: texts == null ? void 0 : texts.message.label,
11074
+ label: (texts == null ? void 0 : texts.message.label) || "Message",
11074
11075
  id: texts == null ? void 0 : texts.message.label,
11075
11076
  textareaProps: {
11076
11077
  placeholder: texts == null ? void 0 : texts.message.placeholder,
package/dist/index.mjs CHANGED
@@ -1868,7 +1868,6 @@ Button.displayName = "Button";
1868
1868
 
1869
1869
  // elements/alert/Alert.tsx
1870
1870
  var Alert = ({
1871
- variant = "normal",
1872
1871
  direction = "ltr",
1873
1872
  severity = "none",
1874
1873
  duration,
@@ -10672,7 +10671,7 @@ var ContactForm = ({
10672
10671
  size = "default",
10673
10672
  texts,
10674
10673
  formId,
10675
- formAutoComplete,
10674
+ formAutoComplete = "off",
10676
10675
  onSubmit,
10677
10676
  customFields
10678
10677
  }) => {
@@ -10699,9 +10698,11 @@ var ContactForm = ({
10699
10698
  )
10700
10699
  });
10701
10700
  const contactFormSchema = z8.object({
10702
- name: z8.string({ required_error: texts == null ? void 0 : texts.name.required }).min(1, texts == null ? void 0 : texts.name.required).default(""),
10703
- email: z8.string({ required_error: (_a = texts == null ? void 0 : texts.email) == null ? void 0 : _a.required }).min(1, { message: (_b = texts == null ? void 0 : texts.email) == null ? void 0 : _b.required }).email({ message: (_c = texts == null ? void 0 : texts.email) == null ? void 0 : _c.invalid }).default(""),
10704
- message: z8.string({ required_error: texts == null ? void 0 : texts.message.required }).min(10, texts == null ? void 0 : texts.message.invalid).default("")
10701
+ name: z8.string({ required_error: (texts == null ? void 0 : texts.name.required) || "Name is required" }).min(1, (texts == null ? void 0 : texts.name.required) || "Name is required").default(""),
10702
+ email: z8.string({ required_error: ((_a = texts == null ? void 0 : texts.email) == null ? void 0 : _a.required) || "Email is required" }).min(1, { message: ((_b = texts == null ? void 0 : texts.email) == null ? void 0 : _b.required) || "Email is required" }).email({ message: ((_c = texts == null ? void 0 : texts.email) == null ? void 0 : _c.invalid) || "Invalid email" }).default(""),
10703
+ message: z8.string({
10704
+ required_error: (texts == null ? void 0 : texts.message.required) || "Message is required"
10705
+ }).min(10, (texts == null ? void 0 : texts.message.invalid) || "Message is too short").default("")
10705
10706
  });
10706
10707
  const customFieldsDefaultValues = customFields == null ? void 0 : customFields.reduce(
10707
10708
  (acc, curr) => {
@@ -10772,7 +10773,7 @@ var ContactForm = ({
10772
10773
  return /* @__PURE__ */ React91.createElement(
10773
10774
  Input,
10774
10775
  {
10775
- label: texts == null ? void 0 : texts.name.label,
10776
+ label: (texts == null ? void 0 : texts.name.label) || "Name",
10776
10777
  id: texts == null ? void 0 : texts.name.label,
10777
10778
  ...field,
10778
10779
  placeholder: texts == null ? void 0 : texts.name.placeholder,
@@ -10792,7 +10793,7 @@ var ContactForm = ({
10792
10793
  return /* @__PURE__ */ React91.createElement(
10793
10794
  Input,
10794
10795
  {
10795
- label: texts == null ? void 0 : texts.email.label,
10796
+ label: (texts == null ? void 0 : texts.email.label) || "Email",
10796
10797
  id: texts == null ? void 0 : texts.email.label,
10797
10798
  ...field,
10798
10799
  placeholder: texts == null ? void 0 : texts.email.placeholder,
@@ -10852,7 +10853,7 @@ var ContactForm = ({
10852
10853
  return /* @__PURE__ */ React91.createElement(
10853
10854
  Textarea,
10854
10855
  {
10855
- label: texts == null ? void 0 : texts.message.label,
10856
+ label: (texts == null ? void 0 : texts.message.label) || "Message",
10856
10857
  id: texts == null ? void 0 : texts.message.label,
10857
10858
  textareaProps: {
10858
10859
  placeholder: texts == null ? void 0 : texts.message.placeholder,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.27.20-next",
3
+ "version": "0.27.22-next",
4
4
  "description": "Modern UI Kit made with Tailwind",
5
5
  "author": {
6
6
  "name": "Sikka Software",