@sikka/hawa 0.27.3-next → 0.27.4-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.
@@ -122,7 +122,7 @@ type RegisterFormTypes = {
122
122
  /** To add more custom input fields */
123
123
  additionalInputs?: any;
124
124
  /** To customize the username input field */
125
- usernameOptions: {
125
+ usernameOptions?: {
126
126
  label?: LabelProps;
127
127
  };
128
128
  };
@@ -122,7 +122,7 @@ type RegisterFormTypes = {
122
122
  /** To add more custom input fields */
123
123
  additionalInputs?: any;
124
124
  /** To customize the username input field */
125
- usernameOptions: {
125
+ usernameOptions?: {
126
126
  label?: LabelProps;
127
127
  };
128
128
  };
@@ -1497,8 +1497,12 @@ var FeedbackForm = (props) => {
1497
1497
  requestType: z2.string({ required_error: (_b = (_a = props.texts) == null ? void 0 : _a.requestType) == null ? void 0 : _b.required }).min(1, { message: (_d = (_c = props.texts) == null ? void 0 : _c.requestType) == null ? void 0 : _d.required }),
1498
1498
  description: z2.string({ required_error: (_f = (_e = props.texts) == null ? void 0 : _e.description) == null ? void 0 : _f.required }).min(10, { message: (_h = (_g = props.texts) == null ? void 0 : _g.description) == null ? void 0 : _h.tooShort })
1499
1499
  });
1500
- const { handleSubmit, control, formState } = (0, import_react_hook_form2.useForm)({
1501
- resolver: (0, import_zod2.zodResolver)(formSchema)
1500
+ const { handleSubmit, control, formState, reset } = (0, import_react_hook_form2.useForm)({
1501
+ resolver: (0, import_zod2.zodResolver)(formSchema),
1502
+ defaultValues: {
1503
+ requestType: "",
1504
+ description: ""
1505
+ }
1502
1506
  });
1503
1507
  return /* @__PURE__ */ import_react12.default.createElement(
1504
1508
  Card,
@@ -1519,7 +1523,7 @@ var FeedbackForm = (props) => {
1519
1523
  console.log("Form is submitted but onSubmit prop is missing");
1520
1524
  }
1521
1525
  }),
1522
- className: "hawa-flex hawa-flex-col hawa-gap-4"
1526
+ className: "hawa-flex hawa-flex-col hawa-gap-2"
1523
1527
  },
1524
1528
  /* @__PURE__ */ import_react12.default.createElement(Label, null),
1525
1529
  /* @__PURE__ */ import_react12.default.createElement(
@@ -1558,6 +1562,7 @@ var FeedbackForm = (props) => {
1558
1562
  Textarea,
1559
1563
  {
1560
1564
  helperText: formState.errors.description && ((_b2 = (_a2 = formState.errors.description) == null ? void 0 : _a2.message) == null ? void 0 : _b2.toString()),
1565
+ classNames: { textarea: "hawa-h-full hawa-min-h-20" },
1561
1566
  label: (_d2 = (_c2 = props.texts) == null ? void 0 : _c2.description) == null ? void 0 : _d2.label,
1562
1567
  textareaProps: {
1563
1568
  onChange: (e) => {
@@ -479,8 +479,12 @@ var FeedbackForm = (props) => {
479
479
  requestType: z2.string({ required_error: (_b = (_a = props.texts) == null ? void 0 : _a.requestType) == null ? void 0 : _b.required }).min(1, { message: (_d = (_c = props.texts) == null ? void 0 : _c.requestType) == null ? void 0 : _d.required }),
480
480
  description: z2.string({ required_error: (_f = (_e = props.texts) == null ? void 0 : _e.description) == null ? void 0 : _f.required }).min(10, { message: (_h = (_g = props.texts) == null ? void 0 : _g.description) == null ? void 0 : _h.tooShort })
481
481
  });
482
- const { handleSubmit, control, formState } = useForm2({
483
- resolver: zodResolver2(formSchema)
482
+ const { handleSubmit, control, formState, reset } = useForm2({
483
+ resolver: zodResolver2(formSchema),
484
+ defaultValues: {
485
+ requestType: "",
486
+ description: ""
487
+ }
484
488
  });
485
489
  return /* @__PURE__ */ React5.createElement(
486
490
  Card,
@@ -501,7 +505,7 @@ var FeedbackForm = (props) => {
501
505
  console.log("Form is submitted but onSubmit prop is missing");
502
506
  }
503
507
  }),
504
- className: "hawa-flex hawa-flex-col hawa-gap-4"
508
+ className: "hawa-flex hawa-flex-col hawa-gap-2"
505
509
  },
506
510
  /* @__PURE__ */ React5.createElement(Label, null),
507
511
  /* @__PURE__ */ React5.createElement(
@@ -540,6 +544,7 @@ var FeedbackForm = (props) => {
540
544
  Textarea,
541
545
  {
542
546
  helperText: formState.errors.description && ((_b2 = (_a2 = formState.errors.description) == null ? void 0 : _a2.message) == null ? void 0 : _b2.toString()),
547
+ classNames: { textarea: "hawa-h-full hawa-min-h-20" },
543
548
  label: (_d2 = (_c2 = props.texts) == null ? void 0 : _c2.description) == null ? void 0 : _d2.label,
544
549
  textareaProps: {
545
550
  onChange: (e) => {
@@ -113,7 +113,7 @@ type RegisterFormTypes = {
113
113
  /** To add more custom input fields */
114
114
  additionalInputs?: any;
115
115
  /** To customize the username input field */
116
- usernameOptions: {
116
+ usernameOptions?: {
117
117
  label?: LabelProps;
118
118
  };
119
119
  };
@@ -113,7 +113,7 @@ type RegisterFormTypes = {
113
113
  /** To add more custom input fields */
114
114
  additionalInputs?: any;
115
115
  /** To customize the username input field */
116
- usernameOptions: {
116
+ usernameOptions?: {
117
117
  label?: LabelProps;
118
118
  };
119
119
  };
@@ -5083,8 +5083,12 @@ var FeedbackForm = (props) => {
5083
5083
  requestType: z7.string({ required_error: (_b = (_a = props.texts) == null ? void 0 : _a.requestType) == null ? void 0 : _b.required }).min(1, { message: (_d = (_c = props.texts) == null ? void 0 : _c.requestType) == null ? void 0 : _d.required }),
5084
5084
  description: z7.string({ required_error: (_f = (_e = props.texts) == null ? void 0 : _e.description) == null ? void 0 : _f.required }).min(10, { message: (_h = (_g = props.texts) == null ? void 0 : _g.description) == null ? void 0 : _h.tooShort })
5085
5085
  });
5086
- const { handleSubmit, control, formState } = (0, import_react_hook_form7.useForm)({
5087
- resolver: (0, import_zod7.zodResolver)(formSchema)
5086
+ const { handleSubmit, control, formState, reset } = (0, import_react_hook_form7.useForm)({
5087
+ resolver: (0, import_zod7.zodResolver)(formSchema),
5088
+ defaultValues: {
5089
+ requestType: "",
5090
+ description: ""
5091
+ }
5088
5092
  });
5089
5093
  return /* @__PURE__ */ import_react26.default.createElement(
5090
5094
  Card,
@@ -5105,7 +5109,7 @@ var FeedbackForm = (props) => {
5105
5109
  console.log("Form is submitted but onSubmit prop is missing");
5106
5110
  }
5107
5111
  }),
5108
- className: "hawa-flex hawa-flex-col hawa-gap-4"
5112
+ className: "hawa-flex hawa-flex-col hawa-gap-2"
5109
5113
  },
5110
5114
  /* @__PURE__ */ import_react26.default.createElement(Label, null),
5111
5115
  /* @__PURE__ */ import_react26.default.createElement(
@@ -5144,6 +5148,7 @@ var FeedbackForm = (props) => {
5144
5148
  Textarea,
5145
5149
  {
5146
5150
  helperText: formState.errors.description && ((_b2 = (_a2 = formState.errors.description) == null ? void 0 : _a2.message) == null ? void 0 : _b2.toString()),
5151
+ classNames: { textarea: "hawa-h-full hawa-min-h-20" },
5147
5152
  label: (_d2 = (_c2 = props.texts) == null ? void 0 : _c2.description) == null ? void 0 : _d2.label,
5148
5153
  textareaProps: {
5149
5154
  onChange: (e) => {
@@ -1467,8 +1467,12 @@ var FeedbackForm = (props) => {
1467
1467
  requestType: z7.string({ required_error: (_b = (_a = props.texts) == null ? void 0 : _a.requestType) == null ? void 0 : _b.required }).min(1, { message: (_d = (_c = props.texts) == null ? void 0 : _c.requestType) == null ? void 0 : _d.required }),
1468
1468
  description: z7.string({ required_error: (_f = (_e = props.texts) == null ? void 0 : _e.description) == null ? void 0 : _f.required }).min(10, { message: (_h = (_g = props.texts) == null ? void 0 : _g.description) == null ? void 0 : _h.tooShort })
1469
1469
  });
1470
- const { handleSubmit, control, formState } = useForm7({
1471
- resolver: zodResolver7(formSchema)
1470
+ const { handleSubmit, control, formState, reset } = useForm7({
1471
+ resolver: zodResolver7(formSchema),
1472
+ defaultValues: {
1473
+ requestType: "",
1474
+ description: ""
1475
+ }
1472
1476
  });
1473
1477
  return /* @__PURE__ */ React12.createElement(
1474
1478
  Card,
@@ -1489,7 +1493,7 @@ var FeedbackForm = (props) => {
1489
1493
  console.log("Form is submitted but onSubmit prop is missing");
1490
1494
  }
1491
1495
  }),
1492
- className: "hawa-flex hawa-flex-col hawa-gap-4"
1496
+ className: "hawa-flex hawa-flex-col hawa-gap-2"
1493
1497
  },
1494
1498
  /* @__PURE__ */ React12.createElement(Label, null),
1495
1499
  /* @__PURE__ */ React12.createElement(
@@ -1528,6 +1532,7 @@ var FeedbackForm = (props) => {
1528
1532
  Textarea,
1529
1533
  {
1530
1534
  helperText: formState.errors.description && ((_b2 = (_a2 = formState.errors.description) == null ? void 0 : _a2.message) == null ? void 0 : _b2.toString()),
1535
+ classNames: { textarea: "hawa-h-full hawa-min-h-20" },
1531
1536
  label: (_d2 = (_c2 = props.texts) == null ? void 0 : _c2.description) == null ? void 0 : _d2.label,
1532
1537
  textareaProps: {
1533
1538
  onChange: (e) => {
package/dist/index.d.mts CHANGED
@@ -1506,7 +1506,7 @@ type RegisterFormTypes = {
1506
1506
  /** To add more custom input fields */
1507
1507
  additionalInputs?: any;
1508
1508
  /** To customize the username input field */
1509
- usernameOptions: {
1509
+ usernameOptions?: {
1510
1510
  label?: LabelProps;
1511
1511
  };
1512
1512
  };
package/dist/index.d.ts CHANGED
@@ -1506,7 +1506,7 @@ type RegisterFormTypes = {
1506
1506
  /** To add more custom input fields */
1507
1507
  additionalInputs?: any;
1508
1508
  /** To customize the username input field */
1509
- usernameOptions: {
1509
+ usernameOptions?: {
1510
1510
  label?: LabelProps;
1511
1511
  };
1512
1512
  };
package/dist/index.js CHANGED
@@ -10569,8 +10569,12 @@ var FeedbackForm = (props) => {
10569
10569
  requestType: z7.string({ required_error: (_b = (_a = props.texts) == null ? void 0 : _a.requestType) == null ? void 0 : _b.required }).min(1, { message: (_d = (_c = props.texts) == null ? void 0 : _c.requestType) == null ? void 0 : _d.required }),
10570
10570
  description: z7.string({ required_error: (_f = (_e = props.texts) == null ? void 0 : _e.description) == null ? void 0 : _f.required }).min(10, { message: (_h = (_g = props.texts) == null ? void 0 : _g.description) == null ? void 0 : _h.tooShort })
10571
10571
  });
10572
- const { handleSubmit, control, formState } = (0, import_react_hook_form7.useForm)({
10573
- resolver: (0, import_zod7.zodResolver)(formSchema)
10572
+ const { handleSubmit, control, formState, reset } = (0, import_react_hook_form7.useForm)({
10573
+ resolver: (0, import_zod7.zodResolver)(formSchema),
10574
+ defaultValues: {
10575
+ requestType: "",
10576
+ description: ""
10577
+ }
10574
10578
  });
10575
10579
  return /* @__PURE__ */ import_react56.default.createElement(
10576
10580
  Card,
@@ -10591,7 +10595,7 @@ var FeedbackForm = (props) => {
10591
10595
  console.log("Form is submitted but onSubmit prop is missing");
10592
10596
  }
10593
10597
  }),
10594
- className: "hawa-flex hawa-flex-col hawa-gap-4"
10598
+ className: "hawa-flex hawa-flex-col hawa-gap-2"
10595
10599
  },
10596
10600
  /* @__PURE__ */ import_react56.default.createElement(Label2, null),
10597
10601
  /* @__PURE__ */ import_react56.default.createElement(
@@ -10630,6 +10634,7 @@ var FeedbackForm = (props) => {
10630
10634
  Textarea,
10631
10635
  {
10632
10636
  helperText: formState.errors.description && ((_b2 = (_a2 = formState.errors.description) == null ? void 0 : _a2.message) == null ? void 0 : _b2.toString()),
10637
+ classNames: { textarea: "hawa-h-full hawa-min-h-20" },
10633
10638
  label: (_d2 = (_c2 = props.texts) == null ? void 0 : _c2.description) == null ? void 0 : _d2.label,
10634
10639
  textareaProps: {
10635
10640
  onChange: (e) => {
package/dist/index.mjs CHANGED
@@ -10351,8 +10351,12 @@ var FeedbackForm = (props) => {
10351
10351
  requestType: z7.string({ required_error: (_b = (_a = props.texts) == null ? void 0 : _a.requestType) == null ? void 0 : _b.required }).min(1, { message: (_d = (_c = props.texts) == null ? void 0 : _c.requestType) == null ? void 0 : _d.required }),
10352
10352
  description: z7.string({ required_error: (_f = (_e = props.texts) == null ? void 0 : _e.description) == null ? void 0 : _f.required }).min(10, { message: (_h = (_g = props.texts) == null ? void 0 : _g.description) == null ? void 0 : _h.tooShort })
10353
10353
  });
10354
- const { handleSubmit, control, formState } = useForm7({
10355
- resolver: zodResolver7(formSchema)
10354
+ const { handleSubmit, control, formState, reset } = useForm7({
10355
+ resolver: zodResolver7(formSchema),
10356
+ defaultValues: {
10357
+ requestType: "",
10358
+ description: ""
10359
+ }
10356
10360
  });
10357
10361
  return /* @__PURE__ */ React83.createElement(
10358
10362
  Card,
@@ -10373,7 +10377,7 @@ var FeedbackForm = (props) => {
10373
10377
  console.log("Form is submitted but onSubmit prop is missing");
10374
10378
  }
10375
10379
  }),
10376
- className: "hawa-flex hawa-flex-col hawa-gap-4"
10380
+ className: "hawa-flex hawa-flex-col hawa-gap-2"
10377
10381
  },
10378
10382
  /* @__PURE__ */ React83.createElement(Label2, null),
10379
10383
  /* @__PURE__ */ React83.createElement(
@@ -10412,6 +10416,7 @@ var FeedbackForm = (props) => {
10412
10416
  Textarea,
10413
10417
  {
10414
10418
  helperText: formState.errors.description && ((_b2 = (_a2 = formState.errors.description) == null ? void 0 : _a2.message) == null ? void 0 : _b2.toString()),
10419
+ classNames: { textarea: "hawa-h-full hawa-min-h-20" },
10415
10420
  label: (_d2 = (_c2 = props.texts) == null ? void 0 : _c2.description) == null ? void 0 : _d2.label,
10416
10421
  textareaProps: {
10417
10422
  onChange: (e) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.27.3-next",
3
+ "version": "0.27.4-next",
4
4
  "description": "Modern UI Kit made with Tailwind",
5
5
  "author": {
6
6
  "name": "Sikka Software",