@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
package/dist/index.mjs
CHANGED
@@ -5138,7 +5138,7 @@ var BadgedComponent = ({
|
|
5138
5138
|
};
|
5139
5139
|
|
5140
5140
|
// elements/phoneInput/PhoneInput.tsx
|
5141
|
-
import React48, { useState as useState26, useRef as useRef16
|
5141
|
+
import React48, { useState as useState26, useRef as useRef16 } from "react";
|
5142
5142
|
|
5143
5143
|
// countries.ts
|
5144
5144
|
var countries = [
|
@@ -6834,16 +6834,14 @@ var countries = [
|
|
6834
6834
|
var countries_default = countries;
|
6835
6835
|
|
6836
6836
|
// elements/phoneInput/PhoneInput.tsx
|
6837
|
-
var PhoneInput = ({
|
6837
|
+
var PhoneInput = ({
|
6838
|
+
labelProps,
|
6839
|
+
inputProps,
|
6840
|
+
...props
|
6841
|
+
}) => {
|
6838
6842
|
const [phoneNumber, setPhoneNumber] = useState26("");
|
6839
6843
|
const [countryCode, setCountryCode] = useState26(props.preferredCountry);
|
6840
6844
|
const inputRef = useRef16(null);
|
6841
|
-
useEffect22(() => {
|
6842
|
-
var _a;
|
6843
|
-
if (inputRef.current) {
|
6844
|
-
(_a = inputRef.current) == null ? void 0 : _a.focus();
|
6845
|
-
}
|
6846
|
-
}, []);
|
6847
6845
|
const handleInputChange = (e) => {
|
6848
6846
|
const validChars = /^[0-9-()]+$/;
|
6849
6847
|
const input = e.target.value;
|
@@ -6859,31 +6857,32 @@ var PhoneInput = ({ labelProps, ...props }) => {
|
|
6859
6857
|
return /* @__PURE__ */ React48.createElement("div", { className: "hawa-flex hawa-h-fit hawa-w-full hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ React48.createElement(Label2, { ...labelProps }, props.label), /* @__PURE__ */ React48.createElement("div", { dir: "ltr", className: "hawa-flex hawa-w-full hawa-flex-row" }, /* @__PURE__ */ React48.createElement(
|
6860
6858
|
Select,
|
6861
6859
|
{
|
6860
|
+
phoneCode: true,
|
6862
6861
|
width: "fit",
|
6863
6862
|
hideHelperText: true,
|
6864
|
-
phoneCode: true,
|
6865
6863
|
hideIndicator: true,
|
6866
|
-
placeholder: "Code",
|
6867
|
-
options: countries_default,
|
6868
6864
|
isMulti: false,
|
6869
6865
|
isSearchable: true,
|
6870
6866
|
isClearable: false,
|
6871
|
-
|
6867
|
+
placeholder: "Code",
|
6868
|
+
options: countries_default,
|
6869
|
+
onChange: setCountryCode,
|
6872
6870
|
value: countryCode == null ? void 0 : countryCode.label,
|
6873
|
-
|
6871
|
+
defaultValue: props.preferredCountry
|
6874
6872
|
}
|
6875
6873
|
), /* @__PURE__ */ React48.createElement("div", { className: "hawa-relative hawa-flex hawa-h-fit hawa-w-full hawa-flex-col hawa-justify-center hawa-gap-0" }, /* @__PURE__ */ React48.createElement(
|
6876
6874
|
"input",
|
6877
6875
|
{
|
6876
|
+
type: "tel",
|
6878
6877
|
ref: inputRef,
|
6879
6878
|
id: "phone-number",
|
6879
|
+
value: phoneNumber,
|
6880
|
+
onChange: handleInputChange,
|
6881
|
+
placeholder: props.placeholder,
|
6880
6882
|
className: cn(
|
6881
6883
|
"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"
|
6882
6884
|
),
|
6883
|
-
|
6884
|
-
value: phoneNumber,
|
6885
|
-
type: "tel",
|
6886
|
-
placeholder: props.placeholder
|
6885
|
+
...inputProps
|
6887
6886
|
}
|
6888
6887
|
))), /* @__PURE__ */ React48.createElement(
|
6889
6888
|
"p",
|
@@ -9910,7 +9909,8 @@ var AuthButtons = (props) => {
|
|
9910
9909
|
};
|
9911
9910
|
|
9912
9911
|
// blocks/auth/LoginForm.tsx
|
9913
|
-
import React82
|
9912
|
+
import React82 from "react";
|
9913
|
+
import { useState as useState39 } from "react";
|
9914
9914
|
import { Controller, useForm } from "react-hook-form";
|
9915
9915
|
import { zodResolver } from "@hookform/resolvers/zod";
|
9916
9916
|
import { parsePhoneNumber } from "libphonenumber-js";
|
package/dist/label/index.d.mts
CHANGED
package/dist/label/index.d.ts
CHANGED
package/dist/layout/index.d.mts
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import React__default, { FC } from 'react';
|
3
|
-
import { D as DirectionType } from '../commonTypes-
|
4
|
-
import { C as ChipColors } from '../Chip-
|
5
|
-
import { M as MenuItemType } from '../DropdownMenu-
|
3
|
+
import { D as DirectionType } from '../commonTypes-C-g8nFFC.mjs';
|
4
|
+
import { C as ChipColors } from '../Chip-BT2hUlGJ.mjs';
|
5
|
+
import { M as MenuItemType } from '../DropdownMenu-K3ztliYc.mjs';
|
6
6
|
import * as MenubarPrimitive from '@radix-ui/react-menubar';
|
7
7
|
import '@radix-ui/react-dropdown-menu';
|
8
8
|
|
package/dist/layout/index.d.ts
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import React__default, { FC } from 'react';
|
3
|
-
import { D as DirectionType } from '../commonTypes-
|
4
|
-
import { C as ChipColors } from '../Chip-
|
5
|
-
import { M as MenuItemType } from '../DropdownMenu-
|
3
|
+
import { D as DirectionType } from '../commonTypes-C-g8nFFC.js';
|
4
|
+
import { C as ChipColors } from '../Chip-Dt7zJ-jZ.js';
|
5
|
+
import { M as MenuItemType } from '../DropdownMenu-CJblb-9q.js';
|
6
6
|
import * as MenubarPrimitive from '@radix-ui/react-menubar';
|
7
7
|
import '@radix-ui/react-dropdown-menu';
|
8
8
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
2
2
|
import * as React from 'react';
|
3
3
|
import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
4
|
-
import { D as DirectionType } from '../commonTypes-
|
4
|
+
import { D as DirectionType } from '../commonTypes-ClC9C8Mh.mjs';
|
5
5
|
|
6
6
|
declare const navigationMenuTriggerStyle: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
7
7
|
type StandardNavigationMenuItemProps = {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
2
2
|
import * as React from 'react';
|
3
3
|
import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
4
|
-
import { D as DirectionType } from '../commonTypes-
|
4
|
+
import { D as DirectionType } from '../commonTypes-ClC9C8Mh.js';
|
5
5
|
|
6
6
|
declare const navigationMenuTriggerStyle: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
7
7
|
type StandardNavigationMenuItemProps = {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as React from 'react';
|
2
|
-
import { FC } from 'react';
|
2
|
+
import React__default, { FC } from 'react';
|
3
3
|
|
4
4
|
type PositionType = "top" | "bottom" | "right" | "left";
|
5
5
|
|
@@ -19,6 +19,7 @@ type PhoneInputTypes = {
|
|
19
19
|
labelProps?: LabelProps;
|
20
20
|
placeholder?: string;
|
21
21
|
handleChange?: (value: string) => void;
|
22
|
+
inputProps?: React__default.InputHTMLAttributes<HTMLInputElement>;
|
22
23
|
};
|
23
24
|
declare const PhoneInput: FC<PhoneInputTypes>;
|
24
25
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as React from 'react';
|
2
|
-
import { FC } from 'react';
|
2
|
+
import React__default, { FC } from 'react';
|
3
3
|
|
4
4
|
type PositionType = "top" | "bottom" | "right" | "left";
|
5
5
|
|
@@ -19,6 +19,7 @@ type PhoneInputTypes = {
|
|
19
19
|
labelProps?: LabelProps;
|
20
20
|
placeholder?: string;
|
21
21
|
handleChange?: (value: string) => void;
|
22
|
+
inputProps?: React__default.InputHTMLAttributes<HTMLInputElement>;
|
22
23
|
};
|
23
24
|
declare const PhoneInput: FC<PhoneInputTypes>;
|
24
25
|
|
package/dist/phoneInput/index.js
CHANGED
@@ -2080,16 +2080,14 @@ var Select = ({
|
|
2080
2080
|
};
|
2081
2081
|
|
2082
2082
|
// elements/phoneInput/PhoneInput.tsx
|
2083
|
-
var PhoneInput = ({
|
2083
|
+
var PhoneInput = ({
|
2084
|
+
labelProps,
|
2085
|
+
inputProps,
|
2086
|
+
...props
|
2087
|
+
}) => {
|
2084
2088
|
const [phoneNumber, setPhoneNumber] = (0, import_react4.useState)("");
|
2085
2089
|
const [countryCode, setCountryCode] = (0, import_react4.useState)(props.preferredCountry);
|
2086
2090
|
const inputRef = (0, import_react4.useRef)(null);
|
2087
|
-
(0, import_react4.useEffect)(() => {
|
2088
|
-
var _a;
|
2089
|
-
if (inputRef.current) {
|
2090
|
-
(_a = inputRef.current) == null ? void 0 : _a.focus();
|
2091
|
-
}
|
2092
|
-
}, []);
|
2093
2091
|
const handleInputChange = (e) => {
|
2094
2092
|
const validChars = /^[0-9-()]+$/;
|
2095
2093
|
const input = e.target.value;
|
@@ -2105,31 +2103,32 @@ var PhoneInput = ({ labelProps, ...props }) => {
|
|
2105
2103
|
return /* @__PURE__ */ import_react4.default.createElement("div", { className: "hawa-flex hawa-h-fit hawa-w-full hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ import_react4.default.createElement(Label, { ...labelProps }, props.label), /* @__PURE__ */ import_react4.default.createElement("div", { dir: "ltr", className: "hawa-flex hawa-w-full hawa-flex-row" }, /* @__PURE__ */ import_react4.default.createElement(
|
2106
2104
|
Select,
|
2107
2105
|
{
|
2106
|
+
phoneCode: true,
|
2108
2107
|
width: "fit",
|
2109
2108
|
hideHelperText: true,
|
2110
|
-
phoneCode: true,
|
2111
2109
|
hideIndicator: true,
|
2112
|
-
placeholder: "Code",
|
2113
|
-
options: countries_default,
|
2114
2110
|
isMulti: false,
|
2115
2111
|
isSearchable: true,
|
2116
2112
|
isClearable: false,
|
2117
|
-
|
2113
|
+
placeholder: "Code",
|
2114
|
+
options: countries_default,
|
2115
|
+
onChange: setCountryCode,
|
2118
2116
|
value: countryCode == null ? void 0 : countryCode.label,
|
2119
|
-
|
2117
|
+
defaultValue: props.preferredCountry
|
2120
2118
|
}
|
2121
2119
|
), /* @__PURE__ */ import_react4.default.createElement("div", { className: "hawa-relative hawa-flex hawa-h-fit hawa-w-full hawa-flex-col hawa-justify-center hawa-gap-0" }, /* @__PURE__ */ import_react4.default.createElement(
|
2122
2120
|
"input",
|
2123
2121
|
{
|
2122
|
+
type: "tel",
|
2124
2123
|
ref: inputRef,
|
2125
2124
|
id: "phone-number",
|
2125
|
+
value: phoneNumber,
|
2126
|
+
onChange: handleInputChange,
|
2127
|
+
placeholder: props.placeholder,
|
2126
2128
|
className: cn(
|
2127
2129
|
"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"
|
2128
2130
|
),
|
2129
|
-
|
2130
|
-
value: phoneNumber,
|
2131
|
-
type: "tel",
|
2132
|
-
placeholder: props.placeholder
|
2131
|
+
...inputProps
|
2133
2132
|
}
|
2134
2133
|
))), /* @__PURE__ */ import_react4.default.createElement(
|
2135
2134
|
"p",
|