@sikka/hawa 0.20.6-next → 0.20.8-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 +2 -2
- package/dist/index.js +11 -8
- package/dist/index.mjs +11 -8
- package/package.json +5 -5
package/dist/index.css
CHANGED
|
@@ -3223,9 +3223,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
3223
3223
|
--tw-shadow: 0.25rem 0.25rem hsl(var(--primary));
|
|
3224
3224
|
box-shadow: var(--tw-shadow);
|
|
3225
3225
|
}
|
|
3226
|
-
|
|
3226
|
+
body {
|
|
3227
3227
|
font-family: "IBM Plex Sans Arabic", sans-serif;
|
|
3228
|
-
}
|
|
3228
|
+
}
|
|
3229
3229
|
.selection\:hawa-p-0 *::-moz-selection {
|
|
3230
3230
|
padding: 0px;
|
|
3231
3231
|
}
|
package/dist/index.js
CHANGED
|
@@ -11114,10 +11114,19 @@ var ContactForm = ({
|
|
|
11114
11114
|
const {
|
|
11115
11115
|
control,
|
|
11116
11116
|
handleSubmit,
|
|
11117
|
-
formState: { errors }
|
|
11117
|
+
formState: { errors },
|
|
11118
|
+
reset
|
|
11118
11119
|
} = (0, import_react_hook_form9.useForm)({
|
|
11119
11120
|
resolver: (0, import_zod8.zodResolver)(contactFormSchema)
|
|
11120
11121
|
});
|
|
11122
|
+
const handleFormSubmit = (data) => {
|
|
11123
|
+
if (onSubmit) {
|
|
11124
|
+
onSubmit(data);
|
|
11125
|
+
reset();
|
|
11126
|
+
} else {
|
|
11127
|
+
console.log("Form is submitted but onSubmit prop is missing");
|
|
11128
|
+
}
|
|
11129
|
+
};
|
|
11121
11130
|
let sizeStyle = {
|
|
11122
11131
|
sm: "hawa-max-w-sm",
|
|
11123
11132
|
default: "hawa-w-full"
|
|
@@ -11135,13 +11144,7 @@ var ContactForm = ({
|
|
|
11135
11144
|
"form",
|
|
11136
11145
|
{
|
|
11137
11146
|
noValidate: true,
|
|
11138
|
-
onSubmit: handleSubmit(
|
|
11139
|
-
if (onSubmit) {
|
|
11140
|
-
return onSubmit(e);
|
|
11141
|
-
} else {
|
|
11142
|
-
console.log("Form is submitted but onSubmit prop is missing");
|
|
11143
|
-
}
|
|
11144
|
-
}),
|
|
11147
|
+
onSubmit: handleSubmit(handleFormSubmit),
|
|
11145
11148
|
className: "hawa-space-y-2",
|
|
11146
11149
|
id: formId,
|
|
11147
11150
|
autoComplete: formAutoComplete
|
package/dist/index.mjs
CHANGED
|
@@ -10889,10 +10889,19 @@ var ContactForm = ({
|
|
|
10889
10889
|
const {
|
|
10890
10890
|
control,
|
|
10891
10891
|
handleSubmit,
|
|
10892
|
-
formState: { errors }
|
|
10892
|
+
formState: { errors },
|
|
10893
|
+
reset
|
|
10893
10894
|
} = useForm9({
|
|
10894
10895
|
resolver: zodResolver8(contactFormSchema)
|
|
10895
10896
|
});
|
|
10897
|
+
const handleFormSubmit = (data) => {
|
|
10898
|
+
if (onSubmit) {
|
|
10899
|
+
onSubmit(data);
|
|
10900
|
+
reset();
|
|
10901
|
+
} else {
|
|
10902
|
+
console.log("Form is submitted but onSubmit prop is missing");
|
|
10903
|
+
}
|
|
10904
|
+
};
|
|
10896
10905
|
let sizeStyle = {
|
|
10897
10906
|
sm: "hawa-max-w-sm",
|
|
10898
10907
|
default: "hawa-w-full"
|
|
@@ -10910,13 +10919,7 @@ var ContactForm = ({
|
|
|
10910
10919
|
"form",
|
|
10911
10920
|
{
|
|
10912
10921
|
noValidate: true,
|
|
10913
|
-
onSubmit: handleSubmit(
|
|
10914
|
-
if (onSubmit) {
|
|
10915
|
-
return onSubmit(e);
|
|
10916
|
-
} else {
|
|
10917
|
-
console.log("Form is submitted but onSubmit prop is missing");
|
|
10918
|
-
}
|
|
10919
|
-
}),
|
|
10922
|
+
onSubmit: handleSubmit(handleFormSubmit),
|
|
10920
10923
|
className: "hawa-space-y-2",
|
|
10921
10924
|
id: formId,
|
|
10922
10925
|
autoComplete: formAutoComplete
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sikka/hawa",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.8-next",
|
|
4
4
|
"description": "Modern UI Kit made with Tailwind",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Sikka Software",
|
|
@@ -72,14 +72,14 @@
|
|
|
72
72
|
"@radix-ui/react-tooltip": "^1.0.7",
|
|
73
73
|
"@tanstack/react-table": "^8.10.7",
|
|
74
74
|
"@types/node": "^20.10.2",
|
|
75
|
-
"@types/react": "^18.2.
|
|
75
|
+
"@types/react": "^18.2.41",
|
|
76
76
|
"@types/react-dom": "^18.2.17",
|
|
77
77
|
"class-variance-authority": "^0.7.0",
|
|
78
78
|
"clsx": "^2.0.0",
|
|
79
79
|
"cmdk": "^0.2.0",
|
|
80
80
|
"embla-carousel-auto-height": "^8.0.0-rc14",
|
|
81
81
|
"embla-carousel-react": "^8.0.0-rc14",
|
|
82
|
-
"eslint": "^8.
|
|
82
|
+
"eslint": "^8.55.0",
|
|
83
83
|
"eslint-config-next": "^14.0.3",
|
|
84
84
|
"libphonenumber-js": "^1.10.50",
|
|
85
85
|
"next": "^14.0.3",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"react-headless-pagination": "^1.1.4",
|
|
92
92
|
"react-hook-form": "^7.48.2",
|
|
93
93
|
"react-select": "^5.8.0",
|
|
94
|
-
"tailwind-merge": "^2.
|
|
94
|
+
"tailwind-merge": "^2.1.0",
|
|
95
95
|
"zod": "^3.22.3"
|
|
96
96
|
},
|
|
97
97
|
"devDependencies": {
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"jest": "^29.7.0",
|
|
116
116
|
"jest-environment-jsdom": "^29.7.0",
|
|
117
117
|
"lucide-react": "^0.294.0",
|
|
118
|
-
"postcss": "^8.4.
|
|
118
|
+
"postcss": "^8.4.32",
|
|
119
119
|
"postcss-cli": "^10.1.0",
|
|
120
120
|
"postcss-import": "^15.1.0",
|
|
121
121
|
"recharts": "^2.10.3",
|