@sikka/hawa 0.31.6-next → 0.31.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/{Chip-hr2gRBJ-.d.mts → Chip-BT2hUlGJ.d.mts} +1 -1
- package/dist/{Chip-H5BnuDdx.d.ts → Chip-Dt7zJ-jZ.d.ts} +1 -1
- package/dist/{DropdownMenu-p-Ha-y2R.d.ts → DropdownMenu-CJblb-9q.d.ts} +1 -1
- package/dist/{DropdownMenu-o_-MnT5h.d.mts → DropdownMenu-K3ztliYc.d.mts} +1 -1
- package/dist/{Radio-3B8RZYJA.d.ts → Radio-B-DG0FMr.d.ts} +1 -1
- package/dist/{Radio-L369ID7b.d.mts → Radio-D52-m4Ns.d.mts} +1 -1
- package/dist/{Toast-ySvjL_-K.d.mts → Toast-BcFD9aeQ.d.mts} +1 -1
- package/dist/{Toast-YaClwi7z.d.ts → Toast-fy9tBz19.d.ts} +1 -1
- package/dist/accordion/index.d.mts +1 -1
- package/dist/accordion/index.d.ts +1 -1
- package/dist/alert/index.d.mts +1 -1
- package/dist/alert/index.d.ts +1 -1
- package/dist/appTopbar/index.d.mts +1 -1
- package/dist/appTopbar/index.d.ts +1 -1
- package/dist/blocks/auth/index.d.mts +1 -1
- package/dist/blocks/auth/index.d.ts +1 -1
- package/dist/blocks/auth/index.js +92 -92
- package/dist/blocks/auth/index.mjs +18 -18
- package/dist/blocks/feedback/index.d.mts +1 -1
- package/dist/blocks/feedback/index.d.ts +1 -1
- package/dist/blocks/index.d.mts +3 -3
- package/dist/blocks/index.d.ts +3 -3
- package/dist/blocks/index.js +328 -328
- package/dist/blocks/index.mjs +3 -2
- package/dist/blocks/misc/index.d.mts +1 -1
- package/dist/blocks/misc/index.d.ts +1 -1
- package/dist/blocks/pricing/index.d.mts +1 -1
- package/dist/blocks/pricing/index.d.ts +1 -1
- package/dist/carousel/index.d.mts +1 -1
- package/dist/carousel/index.d.ts +1 -1
- package/dist/checkbox/index.d.mts +1 -1
- package/dist/checkbox/index.d.ts +1 -1
- package/dist/chip/index.d.mts +1 -1
- package/dist/chip/index.d.ts +1 -1
- package/dist/{chunk-NPD4FUIM.mjs → chunk-JXN2PVGT.mjs} +16 -17
- package/dist/dataTable/index.d.mts +1 -1
- package/dist/dataTable/index.d.ts +1 -1
- package/dist/destroyableCard/index.d.mts +1 -1
- package/dist/destroyableCard/index.d.ts +1 -1
- package/dist/dialog/index.d.mts +1 -1
- package/dist/dialog/index.d.ts +1 -1
- package/dist/docsLayout/index.d.mts +1 -1
- package/dist/docsLayout/index.d.ts +1 -1
- package/dist/docsSidebar/index.d.mts +1 -1
- package/dist/docsSidebar/index.d.ts +1 -1
- package/dist/elements/index.d.mts +9 -8
- package/dist/elements/index.d.ts +9 -8
- package/dist/elements/index.js +15 -16
- package/dist/elements/index.mjs +1 -1
- package/dist/hooks/index.d.mts +2 -2
- package/dist/hooks/index.d.ts +2 -2
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +277 -277
- package/dist/index.mjs +18 -18
- package/dist/interfaceSettings/index.d.mts +1 -1
- package/dist/interfaceSettings/index.d.ts +1 -1
- package/dist/label/index.d.mts +1 -1
- package/dist/label/index.d.ts +1 -1
- package/dist/layout/index.d.mts +3 -3
- package/dist/layout/index.d.ts +3 -3
- package/dist/navigationMenu/index.d.mts +1 -1
- package/dist/navigationMenu/index.d.ts +1 -1
- package/dist/pagination/index.d.mts +1 -1
- package/dist/pagination/index.d.ts +1 -1
- package/dist/phoneInput/index.d.mts +2 -1
- package/dist/phoneInput/index.d.ts +2 -1
- package/dist/phoneInput/index.js +15 -16
- package/dist/phoneInput/index.js.map +1 -1
- package/dist/phoneInput/index.mjs +16 -17
- package/dist/phoneInput/index.mjs.map +1 -1
- package/dist/popover/index.d.mts +1 -1
- package/dist/popover/index.d.ts +1 -1
- package/dist/progress/index.d.mts +1 -1
- package/dist/progress/index.d.ts +1 -1
- package/dist/radio/index.d.mts +1 -1
- package/dist/radio/index.d.ts +1 -1
- package/dist/scrollArea/index.d.mts +1 -1
- package/dist/scrollArea/index.d.ts +1 -1
- package/dist/select/index.d.mts +1 -1
- package/dist/select/index.d.ts +1 -1
- package/dist/separator/index.d.mts +1 -1
- package/dist/separator/index.d.ts +1 -1
- package/dist/sidebar/index.d.mts +1 -1
- package/dist/sidebar/index.d.ts +1 -1
- package/dist/signature/index.d.mts +1 -1
- package/dist/signature/index.d.ts +1 -1
- package/dist/simpleTable/index.d.mts +1 -1
- package/dist/simpleTable/index.d.ts +1 -1
- package/dist/sonner/index.d.mts +1 -1
- package/dist/sonner/index.d.ts +1 -1
- package/dist/switch/index.d.mts +1 -1
- package/dist/switch/index.d.ts +1 -1
- package/dist/tabs/index.d.mts +1 -1
- package/dist/tabs/index.d.ts +1 -1
- package/dist/textarea/index.d.mts +1 -1
- package/dist/textarea/index.d.ts +1 -1
- package/dist/toast/index.d.mts +1 -1
- package/dist/toast/index.d.ts +1 -1
- package/dist/toaster/index.d.mts +1 -1
- package/dist/toaster/index.d.ts +1 -1
- package/dist/tooltip/index.d.mts +1 -1
- package/dist/tooltip/index.d.ts +1 -1
- package/dist/types/index.d.mts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/package.json +1 -1
- /package/dist/{commonTypes-2IGtJ5cq.d.mts → commonTypes-BIZhOigS.d.mts} +0 -0
- /package/dist/{commonTypes-2IGtJ5cq.d.ts → commonTypes-BIZhOigS.d.ts} +0 -0
- /package/dist/{commonTypes-_11epZYh.d.mts → commonTypes-BtF87PmG.d.mts} +0 -0
- /package/dist/{commonTypes-_11epZYh.d.ts → commonTypes-BtF87PmG.d.ts} +0 -0
- /package/dist/{commonTypes-CKtkuNFH.d.mts → commonTypes-C-g8nFFC.d.mts} +0 -0
- /package/dist/{commonTypes-CKtkuNFH.d.ts → commonTypes-C-g8nFFC.d.ts} +0 -0
- /package/dist/{commonTypes-WPhcN3Vr.d.mts → commonTypes-C0OLP6TN.d.mts} +0 -0
- /package/dist/{commonTypes-WPhcN3Vr.d.ts → commonTypes-C0OLP6TN.d.ts} +0 -0
- /package/dist/{commonTypes-eIwARo5g.d.mts → commonTypes-CMqMLkhN.d.mts} +0 -0
- /package/dist/{commonTypes-eIwARo5g.d.ts → commonTypes-CMqMLkhN.d.ts} +0 -0
- /package/dist/{commonTypes-ko_NGEoT.d.mts → commonTypes-ClC9C8Mh.d.mts} +0 -0
- /package/dist/{commonTypes-ko_NGEoT.d.ts → commonTypes-ClC9C8Mh.d.ts} +0 -0
- /package/dist/{commonTypes-2k6FnHw5.d.mts → commonTypes-D23Z4zYt.d.mts} +0 -0
- /package/dist/{commonTypes-2k6FnHw5.d.ts → commonTypes-D23Z4zYt.d.ts} +0 -0
- /package/dist/{commonTypes-LrR8QrYP.d.mts → commonTypes-D_7LV7Ri.d.mts} +0 -0
- /package/dist/{commonTypes-LrR8QrYP.d.ts → commonTypes-D_7LV7Ri.d.ts} +0 -0
- /package/dist/{commonTypes-GhKAraJw.d.mts → commonTypes-DinbCdmt.d.mts} +0 -0
- /package/dist/{commonTypes-GhKAraJw.d.ts → commonTypes-DinbCdmt.d.ts} +0 -0
- /package/dist/{commonTypes-52DloiYq.d.mts → commonTypes-TGqbHlp_.d.mts} +0 -0
- /package/dist/{commonTypes-52DloiYq.d.ts → commonTypes-TGqbHlp_.d.ts} +0 -0
- /package/dist/{textTypes-0bvyKoeH.d.mts → textTypes-DXLtO2fL.d.mts} +0 -0
- /package/dist/{textTypes-0bvyKoeH.d.ts → textTypes-DXLtO2fL.d.ts} +0 -0
@@ -478,7 +478,8 @@ var AuthButtons = (props) => {
|
|
478
478
|
};
|
479
479
|
|
480
480
|
// blocks/auth/LoginForm.tsx
|
481
|
-
import React5
|
481
|
+
import React5 from "react";
|
482
|
+
import { useState as useState3 } from "react";
|
482
483
|
import { Controller, useForm } from "react-hook-form";
|
483
484
|
import { zodResolver } from "@hookform/resolvers/zod";
|
484
485
|
import { parsePhoneNumber } from "libphonenumber-js";
|
@@ -629,7 +630,7 @@ var Alert = ({
|
|
629
630
|
};
|
630
631
|
|
631
632
|
// elements/phoneInput/PhoneInput.tsx
|
632
|
-
import React4, { useState as useState2, useRef as useRef2
|
633
|
+
import React4, { useState as useState2, useRef as useRef2 } from "react";
|
633
634
|
|
634
635
|
// countries.ts
|
635
636
|
var countries = [
|
@@ -2325,16 +2326,14 @@ var countries = [
|
|
2325
2326
|
var countries_default = countries;
|
2326
2327
|
|
2327
2328
|
// elements/phoneInput/PhoneInput.tsx
|
2328
|
-
var PhoneInput = ({
|
2329
|
+
var PhoneInput = ({
|
2330
|
+
labelProps,
|
2331
|
+
inputProps,
|
2332
|
+
...props
|
2333
|
+
}) => {
|
2329
2334
|
const [phoneNumber, setPhoneNumber] = useState2("");
|
2330
2335
|
const [countryCode, setCountryCode] = useState2(props.preferredCountry);
|
2331
2336
|
const inputRef = useRef2(null);
|
2332
|
-
useEffect2(() => {
|
2333
|
-
var _a;
|
2334
|
-
if (inputRef.current) {
|
2335
|
-
(_a = inputRef.current) == null ? void 0 : _a.focus();
|
2336
|
-
}
|
2337
|
-
}, []);
|
2338
2337
|
const handleInputChange = (e) => {
|
2339
2338
|
const validChars = /^[0-9-()]+$/;
|
2340
2339
|
const input = e.target.value;
|
@@ -2350,31 +2349,32 @@ var PhoneInput = ({ labelProps, ...props }) => {
|
|
2350
2349
|
return /* @__PURE__ */ React4.createElement("div", { className: "hawa-flex hawa-h-fit hawa-w-full hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ React4.createElement(Label, { ...labelProps }, props.label), /* @__PURE__ */ React4.createElement("div", { dir: "ltr", className: "hawa-flex hawa-w-full hawa-flex-row" }, /* @__PURE__ */ React4.createElement(
|
2351
2350
|
Select,
|
2352
2351
|
{
|
2352
|
+
phoneCode: true,
|
2353
2353
|
width: "fit",
|
2354
2354
|
hideHelperText: true,
|
2355
|
-
phoneCode: true,
|
2356
2355
|
hideIndicator: true,
|
2357
|
-
placeholder: "Code",
|
2358
|
-
options: countries_default,
|
2359
2356
|
isMulti: false,
|
2360
2357
|
isSearchable: true,
|
2361
2358
|
isClearable: false,
|
2362
|
-
|
2359
|
+
placeholder: "Code",
|
2360
|
+
options: countries_default,
|
2361
|
+
onChange: setCountryCode,
|
2363
2362
|
value: countryCode == null ? void 0 : countryCode.label,
|
2364
|
-
|
2363
|
+
defaultValue: props.preferredCountry
|
2365
2364
|
}
|
2366
2365
|
), /* @__PURE__ */ React4.createElement("div", { className: "hawa-relative hawa-flex hawa-h-fit hawa-w-full hawa-flex-col hawa-justify-center hawa-gap-0" }, /* @__PURE__ */ React4.createElement(
|
2367
2366
|
"input",
|
2368
2367
|
{
|
2368
|
+
type: "tel",
|
2369
2369
|
ref: inputRef,
|
2370
2370
|
id: "phone-number",
|
2371
|
+
value: phoneNumber,
|
2372
|
+
onChange: handleInputChange,
|
2373
|
+
placeholder: props.placeholder,
|
2371
2374
|
className: cn(
|
2372
2375
|
"hawa-block hawa-h-[40px] hawa-w-full hawa-rounded hawa-rounded-l-none hawa-border hawa-border-l-0 hawa-border-l-transparent hawa-bg-background hawa-p-2 hawa-text-sm hawa-transition-all"
|
2373
2376
|
),
|
2374
|
-
|
2375
|
-
value: phoneNumber,
|
2376
|
-
type: "tel",
|
2377
|
-
placeholder: props.placeholder
|
2377
|
+
...inputProps
|
2378
2378
|
}
|
2379
2379
|
))), /* @__PURE__ */ React4.createElement(
|
2380
2380
|
"p",
|
package/dist/blocks/index.d.mts
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import React__default, { FC, InputHTMLAttributes } from 'react';
|
2
2
|
import { ThirdPartyAuthTextsTypes, LoginFormTextsTypes, RegisterFormTextsTypes, NewPasswordTextsTypes, ResetPasswordTextsTypes, BaseInputType, TextInputType, PricingCardProps, PlanFeature, PricingPlanTexts } from '../types/index.mjs';
|
3
|
-
import { D as DirectionType, a as RadioOptionType, O as OrientationType } from '../commonTypes-
|
4
|
-
import { S as SelectOptionProps, L as LabelProps, R as RadioOptionsTypes } from '../Radio-
|
5
|
-
import { M as MenuItemType } from '../DropdownMenu-
|
3
|
+
import { D as DirectionType, a as RadioOptionType, O as OrientationType } from '../commonTypes-C-g8nFFC.mjs';
|
4
|
+
import { S as SelectOptionProps, L as LabelProps, R as RadioOptionsTypes } from '../Radio-D52-m4Ns.mjs';
|
5
|
+
import { M as MenuItemType } from '../DropdownMenu-K3ztliYc.mjs';
|
6
6
|
import '@radix-ui/react-dropdown-menu';
|
7
7
|
|
8
8
|
type AuthButtonsType = {
|
package/dist/blocks/index.d.ts
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import React__default, { FC, InputHTMLAttributes } from 'react';
|
2
2
|
import { ThirdPartyAuthTextsTypes, LoginFormTextsTypes, RegisterFormTextsTypes, NewPasswordTextsTypes, ResetPasswordTextsTypes, BaseInputType, TextInputType, PricingCardProps, PlanFeature, PricingPlanTexts } from '../types/index.js';
|
3
|
-
import { D as DirectionType, a as RadioOptionType, O as OrientationType } from '../commonTypes-
|
4
|
-
import { S as SelectOptionProps, L as LabelProps, R as RadioOptionsTypes } from '../Radio-
|
5
|
-
import { M as MenuItemType } from '../DropdownMenu-
|
3
|
+
import { D as DirectionType, a as RadioOptionType, O as OrientationType } from '../commonTypes-C-g8nFFC.js';
|
4
|
+
import { S as SelectOptionProps, L as LabelProps, R as RadioOptionsTypes } from '../Radio-B-DG0FMr.js';
|
5
|
+
import { M as MenuItemType } from '../DropdownMenu-CJblb-9q.js';
|
6
6
|
import '@radix-ui/react-dropdown-menu';
|
7
7
|
|
8
8
|
type AuthButtonsType = {
|