@sikka/hawa 0.49.13-next → 0.49.15-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-KG1_ZmCL.d.mts → Chip-BRMzT5TB.d.mts} +2 -2
- package/dist/{Chip-Cw1twk4G.d.ts → Chip-D58g8OJ_.d.ts} +2 -2
- package/dist/accordion/index.d.mts +1 -1
- package/dist/accordion/index.d.ts +1 -1
- package/dist/accordion/index.js.map +1 -1
- package/dist/accordion/index.mjs.map +1 -1
- package/dist/appLayout/index.js +1 -3
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs +1 -3
- package/dist/appLayout/index.mjs.map +1 -1
- package/dist/appTopbar/index.js +0 -2
- package/dist/appTopbar/index.js.map +1 -1
- package/dist/appTopbar/index.mjs +0 -2
- package/dist/appTopbar/index.mjs.map +1 -1
- package/dist/badge/index.d.mts +1 -1
- package/dist/badge/index.d.ts +1 -1
- package/dist/badge/index.js +11 -2
- package/dist/badge/index.js.map +1 -1
- package/dist/badge/index.mjs +11 -2
- package/dist/badge/index.mjs.map +1 -1
- package/dist/blocks/auth/index.js +15 -16
- package/dist/blocks/auth/index.mjs +15 -16
- package/dist/blocks/index.d.mts +1 -1
- package/dist/blocks/index.d.ts +1 -1
- package/dist/blocks/index.js +15 -18
- package/dist/blocks/index.mjs +4 -6
- package/dist/blocks/misc/index.js +0 -1
- package/dist/blocks/misc/index.mjs +0 -1
- package/dist/button/index.d.mts +1 -1
- package/dist/button/index.d.ts +1 -1
- package/dist/chip/index.d.mts +2 -2
- package/dist/chip/index.d.ts +2 -2
- package/dist/chip/index.js.map +1 -1
- package/dist/chip/index.mjs.map +1 -1
- package/dist/{chunk-XWNN7K63.mjs → chunk-NJJVVA2A.mjs} +17 -17
- package/dist/{chunk-5SQBJRWE.mjs → chunk-OWMN44TT.mjs} +1 -1
- package/dist/{chunk-3CHFVHTW.mjs → chunk-QQ7C5DWR.mjs} +1 -1
- package/dist/{chunk-KDGJZPWK.mjs → chunk-YGLAEAJY.mjs} +0 -1
- package/dist/{chunk-WQR4XZGL.mjs → chunk-Z3ZL22XB.mjs} +1 -3
- package/dist/combobox/index.js +0 -1
- package/dist/combobox/index.js.map +1 -1
- package/dist/combobox/index.mjs +0 -1
- package/dist/combobox/index.mjs.map +1 -1
- package/dist/command/index.js +0 -1
- package/dist/command/index.js.map +1 -1
- package/dist/command/index.mjs +0 -1
- package/dist/command/index.mjs.map +1 -1
- package/dist/count/index.d.mts +2 -2
- package/dist/count/index.d.ts +2 -2
- package/dist/count/index.js.map +1 -1
- package/dist/count/index.mjs.map +1 -1
- package/dist/dataTable/index.js +0 -1
- package/dist/dataTable/index.js.map +1 -1
- package/dist/dataTable/index.mjs +0 -1
- package/dist/dataTable/index.mjs.map +1 -1
- package/dist/datePicker/index.d.mts +1 -1
- package/dist/datePicker/index.d.ts +1 -1
- package/dist/dialog/index.js +0 -1
- package/dist/dialog/index.js.map +1 -1
- package/dist/dialog/index.mjs +0 -1
- package/dist/dialog/index.mjs.map +1 -1
- package/dist/docsLayout/index.js +1 -1
- package/dist/docsLayout/index.js.map +1 -1
- package/dist/docsLayout/index.mjs +1 -1
- package/dist/docsLayout/index.mjs.map +1 -1
- package/dist/dropdownMenu/index.js +0 -1
- package/dist/dropdownMenu/index.js.map +1 -1
- package/dist/dropdownMenu/index.mjs +0 -1
- package/dist/dropdownMenu/index.mjs.map +1 -1
- package/dist/elements/index.d.mts +9 -7
- package/dist/elements/index.d.ts +9 -7
- package/dist/elements/index.js +32 -23
- package/dist/elements/index.mjs +22 -12
- package/dist/fileDropzone/index.js +6 -4
- package/dist/fileDropzone/index.js.map +1 -1
- package/dist/fileDropzone/index.mjs +6 -4
- package/dist/fileDropzone/index.mjs.map +1 -1
- package/dist/hooks/index.d.mts +2 -2
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.js +2 -4
- package/dist/hooks/index.mjs +2 -2
- package/dist/index.css +231 -233
- package/dist/index.d.mts +11 -9
- package/dist/index.d.ts +11 -9
- package/dist/index.js +35 -32
- package/dist/index.mjs +35 -32
- package/dist/layout/index.d.mts +1 -1
- package/dist/layout/index.d.ts +1 -1
- package/dist/layout/index.js +2 -5
- package/dist/layout/index.mjs +4 -6
- package/dist/phoneInput/index.js.map +1 -1
- package/dist/phoneInput/index.mjs.map +1 -1
- package/dist/pinInput/index.d.mts +4 -2
- package/dist/pinInput/index.d.ts +4 -2
- package/dist/pinInput/index.js +15 -15
- package/dist/pinInput/index.js.map +1 -1
- package/dist/pinInput/index.mjs +15 -15
- package/dist/pinInput/index.mjs.map +1 -1
- package/dist/select/index.js.map +1 -1
- package/dist/select/index.mjs.map +1 -1
- package/dist/sidebar/index.js.map +1 -1
- package/dist/sidebar/index.mjs.map +1 -1
- package/dist/splitButton/index.d.mts +1 -1
- package/dist/splitButton/index.d.ts +1 -1
- package/dist/splitButton/index.js +0 -1
- package/dist/splitButton/index.js.map +1 -1
- package/dist/splitButton/index.mjs +0 -1
- package/dist/splitButton/index.mjs.map +1 -1
- package/dist/tabs/index.d.mts +1 -1
- package/dist/tabs/index.d.ts +1 -1
- package/dist/tabs/index.js.map +1 -1
- package/dist/tabs/index.mjs.map +1 -1
- package/package.json +46 -46
package/dist/index.d.mts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as React$1 from 'react';
|
2
|
-
import React__default, { FC, RefObject, ReactNode, ChangeEvent, InputHTMLAttributes, useEffect } from 'react';
|
2
|
+
import React__default, { FC, RefObject, ReactNode, ChangeEvent, InputHTMLAttributes, JSX, useEffect } from 'react';
|
3
3
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
4
4
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
5
5
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
@@ -215,7 +215,7 @@ type ChipTypes = React__default.HTMLAttributes<HTMLSpanElement> & {
|
|
215
215
|
/** The text inside the chip */
|
216
216
|
label: string;
|
217
217
|
/** The small icon before the chip label */
|
218
|
-
icon?: JSX.Element;
|
218
|
+
icon?: React__default.JSX.Element;
|
219
219
|
/** The color of the chip, must be a tailwind color */
|
220
220
|
color?: ChipColors;
|
221
221
|
/** The size of the chip */
|
@@ -230,7 +230,7 @@ declare const Chip: React__default.ForwardRefExoticComponent<React__default.HTML
|
|
230
230
|
/** The text inside the chip */
|
231
231
|
label: string;
|
232
232
|
/** The small icon before the chip label */
|
233
|
-
icon?: JSX.Element;
|
233
|
+
icon?: React__default.JSX.Element;
|
234
234
|
/** The color of the chip, must be a tailwind color */
|
235
235
|
color?: ChipColors;
|
236
236
|
/** The size of the chip */
|
@@ -963,7 +963,7 @@ declare const AppStores: FC<StoreButtonsTypes>;
|
|
963
963
|
|
964
964
|
type BadgeTypes = {
|
965
965
|
position: "right" | "left";
|
966
|
-
anchor: RefObject<
|
966
|
+
anchor: RefObject<HTMLDivElement | null>;
|
967
967
|
size?: "small" | "default" | "large";
|
968
968
|
text?: string | number;
|
969
969
|
className?: string;
|
@@ -987,25 +987,27 @@ type PhoneInputProps = {
|
|
987
987
|
};
|
988
988
|
declare const PhoneInput: FC<PhoneInputProps>;
|
989
989
|
|
990
|
-
declare const PinInputRoot: React$1.ForwardRefExoticComponent<(Omit<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "containerClassName" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "noScriptCSSFallback"> & {
|
990
|
+
declare const PinInputRoot: React$1.ForwardRefExoticComponent<(Omit<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "containerClassName" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "noScriptCSSFallback"> & {
|
991
991
|
value?: string;
|
992
992
|
onChange?: (newValue: string) => unknown;
|
993
993
|
maxLength: number;
|
994
994
|
textAlign?: "left" | "center" | "right";
|
995
995
|
onComplete?: (...args: any[]) => unknown;
|
996
996
|
pushPasswordManagerStrategy?: "increase-width" | "none";
|
997
|
+
pasteTransformer?: (pasted: string) => string;
|
997
998
|
containerClassName?: string;
|
998
999
|
noScriptCSSFallback?: string | null;
|
999
1000
|
} & {
|
1000
1001
|
render: (props: input_otp.RenderProps) => React$1.ReactNode;
|
1001
1002
|
children?: never;
|
1002
|
-
} & React$1.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "containerClassName" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "noScriptCSSFallback"> & {
|
1003
|
+
} & React$1.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "containerClassName" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "noScriptCSSFallback"> & {
|
1003
1004
|
value?: string;
|
1004
1005
|
onChange?: (newValue: string) => unknown;
|
1005
1006
|
maxLength: number;
|
1006
1007
|
textAlign?: "left" | "center" | "right";
|
1007
1008
|
onComplete?: (...args: any[]) => unknown;
|
1008
1009
|
pushPasswordManagerStrategy?: "increase-width" | "none";
|
1010
|
+
pasteTransformer?: (pasted: string) => string;
|
1009
1011
|
containerClassName?: string;
|
1010
1012
|
noScriptCSSFallback?: string | null;
|
1011
1013
|
} & {
|
@@ -1186,7 +1188,7 @@ declare const Carousel: React__default.FC<CarouselProps>;
|
|
1186
1188
|
|
1187
1189
|
type IconCountTypes = {
|
1188
1190
|
/** The icon of the counter */
|
1189
|
-
icon: JSX.Element;
|
1191
|
+
icon: React__default.JSX.Element;
|
1190
1192
|
/** The text next to the icon */
|
1191
1193
|
count?: string;
|
1192
1194
|
};
|
@@ -2267,7 +2269,7 @@ declare const useDialogCarousel: (options?: any) => DialogCarouselType;
|
|
2267
2269
|
declare const useMultiStepDialog: (initialStep: any, stepIds: any[], setOpenDialog: any) => {
|
2268
2270
|
currentStep: any;
|
2269
2271
|
dialogHeight: null;
|
2270
|
-
visibleStepRef: React__default.
|
2272
|
+
visibleStepRef: React__default.RefObject<any>;
|
2271
2273
|
handleNext: () => void;
|
2272
2274
|
handleBack: () => void;
|
2273
2275
|
};
|
@@ -2318,7 +2320,7 @@ interface ContentRect {
|
|
2318
2320
|
}
|
2319
2321
|
declare const useMeasureDirty: (ref: RefObject<HTMLElement>) => ContentRect;
|
2320
2322
|
|
2321
|
-
declare function useClickOutside<T extends HTMLElement = any>(handler: () => void, events?: string[] | null, nodes?: (HTMLElement | null)[]): React$1.
|
2323
|
+
declare function useClickOutside<T extends HTMLElement = any>(handler: () => void, events?: string[] | null, nodes?: (HTMLElement | null)[]): React$1.RefObject<T | null>;
|
2322
2324
|
|
2323
2325
|
type KeyboardModifiers = {
|
2324
2326
|
alt: boolean;
|
package/dist/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as React$1 from 'react';
|
2
|
-
import React__default, { FC, RefObject, ReactNode, ChangeEvent, InputHTMLAttributes, useEffect } from 'react';
|
2
|
+
import React__default, { FC, RefObject, ReactNode, ChangeEvent, InputHTMLAttributes, JSX, useEffect } from 'react';
|
3
3
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
4
4
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
5
5
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
@@ -215,7 +215,7 @@ type ChipTypes = React__default.HTMLAttributes<HTMLSpanElement> & {
|
|
215
215
|
/** The text inside the chip */
|
216
216
|
label: string;
|
217
217
|
/** The small icon before the chip label */
|
218
|
-
icon?: JSX.Element;
|
218
|
+
icon?: React__default.JSX.Element;
|
219
219
|
/** The color of the chip, must be a tailwind color */
|
220
220
|
color?: ChipColors;
|
221
221
|
/** The size of the chip */
|
@@ -230,7 +230,7 @@ declare const Chip: React__default.ForwardRefExoticComponent<React__default.HTML
|
|
230
230
|
/** The text inside the chip */
|
231
231
|
label: string;
|
232
232
|
/** The small icon before the chip label */
|
233
|
-
icon?: JSX.Element;
|
233
|
+
icon?: React__default.JSX.Element;
|
234
234
|
/** The color of the chip, must be a tailwind color */
|
235
235
|
color?: ChipColors;
|
236
236
|
/** The size of the chip */
|
@@ -963,7 +963,7 @@ declare const AppStores: FC<StoreButtonsTypes>;
|
|
963
963
|
|
964
964
|
type BadgeTypes = {
|
965
965
|
position: "right" | "left";
|
966
|
-
anchor: RefObject<
|
966
|
+
anchor: RefObject<HTMLDivElement | null>;
|
967
967
|
size?: "small" | "default" | "large";
|
968
968
|
text?: string | number;
|
969
969
|
className?: string;
|
@@ -987,25 +987,27 @@ type PhoneInputProps = {
|
|
987
987
|
};
|
988
988
|
declare const PhoneInput: FC<PhoneInputProps>;
|
989
989
|
|
990
|
-
declare const PinInputRoot: React$1.ForwardRefExoticComponent<(Omit<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "containerClassName" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "noScriptCSSFallback"> & {
|
990
|
+
declare const PinInputRoot: React$1.ForwardRefExoticComponent<(Omit<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "containerClassName" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "noScriptCSSFallback"> & {
|
991
991
|
value?: string;
|
992
992
|
onChange?: (newValue: string) => unknown;
|
993
993
|
maxLength: number;
|
994
994
|
textAlign?: "left" | "center" | "right";
|
995
995
|
onComplete?: (...args: any[]) => unknown;
|
996
996
|
pushPasswordManagerStrategy?: "increase-width" | "none";
|
997
|
+
pasteTransformer?: (pasted: string) => string;
|
997
998
|
containerClassName?: string;
|
998
999
|
noScriptCSSFallback?: string | null;
|
999
1000
|
} & {
|
1000
1001
|
render: (props: input_otp.RenderProps) => React$1.ReactNode;
|
1001
1002
|
children?: never;
|
1002
|
-
} & React$1.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "containerClassName" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "noScriptCSSFallback"> & {
|
1003
|
+
} & React$1.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "containerClassName" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "noScriptCSSFallback"> & {
|
1003
1004
|
value?: string;
|
1004
1005
|
onChange?: (newValue: string) => unknown;
|
1005
1006
|
maxLength: number;
|
1006
1007
|
textAlign?: "left" | "center" | "right";
|
1007
1008
|
onComplete?: (...args: any[]) => unknown;
|
1008
1009
|
pushPasswordManagerStrategy?: "increase-width" | "none";
|
1010
|
+
pasteTransformer?: (pasted: string) => string;
|
1009
1011
|
containerClassName?: string;
|
1010
1012
|
noScriptCSSFallback?: string | null;
|
1011
1013
|
} & {
|
@@ -1186,7 +1188,7 @@ declare const Carousel: React__default.FC<CarouselProps>;
|
|
1186
1188
|
|
1187
1189
|
type IconCountTypes = {
|
1188
1190
|
/** The icon of the counter */
|
1189
|
-
icon: JSX.Element;
|
1191
|
+
icon: React__default.JSX.Element;
|
1190
1192
|
/** The text next to the icon */
|
1191
1193
|
count?: string;
|
1192
1194
|
};
|
@@ -2267,7 +2269,7 @@ declare const useDialogCarousel: (options?: any) => DialogCarouselType;
|
|
2267
2269
|
declare const useMultiStepDialog: (initialStep: any, stepIds: any[], setOpenDialog: any) => {
|
2268
2270
|
currentStep: any;
|
2269
2271
|
dialogHeight: null;
|
2270
|
-
visibleStepRef: React__default.
|
2272
|
+
visibleStepRef: React__default.RefObject<any>;
|
2271
2273
|
handleNext: () => void;
|
2272
2274
|
handleBack: () => void;
|
2273
2275
|
};
|
@@ -2318,7 +2320,7 @@ interface ContentRect {
|
|
2318
2320
|
}
|
2319
2321
|
declare const useMeasureDirty: (ref: RefObject<HTMLElement>) => ContentRect;
|
2320
2322
|
|
2321
|
-
declare function useClickOutside<T extends HTMLElement = any>(handler: () => void, events?: string[] | null, nodes?: (HTMLElement | null)[]): React$1.
|
2323
|
+
declare function useClickOutside<T extends HTMLElement = any>(handler: () => void, events?: string[] | null, nodes?: (HTMLElement | null)[]): React$1.RefObject<T | null>;
|
2322
2324
|
|
2323
2325
|
type KeyboardModifiers = {
|
2324
2326
|
alt: boolean;
|
package/dist/index.js
CHANGED
@@ -906,7 +906,6 @@ var DropdownMenu = ({
|
|
906
906
|
let newValues = [...values];
|
907
907
|
newValues[index] = e;
|
908
908
|
setValues(newValues);
|
909
|
-
console.log("changing to ", e);
|
910
909
|
if (item.onOptionChange) {
|
911
910
|
item.onOptionChange(e);
|
912
911
|
}
|
@@ -2113,7 +2112,6 @@ var DialogSteps = ({ currentStep, visibleStepRef, children }) => {
|
|
2113
2112
|
React14.useEffect(() => {
|
2114
2113
|
if (visibleStepRef.current) {
|
2115
2114
|
setDialogHeight(visibleStepRef.current.offsetHeight);
|
2116
|
-
console.log("height is ", visibleStepRef.current.offsetHeight);
|
2117
2115
|
}
|
2118
2116
|
}, [currentStep, visibleStepRef]);
|
2119
2117
|
return /* @__PURE__ */ React14.createElement(
|
@@ -4205,11 +4203,13 @@ var FileDropzone = ({
|
|
4205
4203
|
var _a, _b, _c, _d, _e, _f;
|
4206
4204
|
const [cmp, setCmp] = (0, import_react14.useState)(0);
|
4207
4205
|
const [max, setMax] = (0, import_react14.useState)(0);
|
4206
|
+
const [filesAccepted, setFilesAccepted] = (0, import_react14.useState)([]);
|
4208
4207
|
const { getRootProps, getInputProps, fileRejections, acceptedFiles, isDragActive } = (0, import_react_dropzone.useDropzone)({
|
4209
4208
|
multiple: true,
|
4210
4209
|
accept,
|
4211
4210
|
maxSize,
|
4212
4211
|
maxFiles,
|
4212
|
+
useFsAccessApi: true,
|
4213
4213
|
onDrop: (acceptedFiles2) => {
|
4214
4214
|
setFiles(
|
4215
4215
|
acceptedFiles2.map(
|
@@ -4232,12 +4232,12 @@ var FileDropzone = ({
|
|
4232
4232
|
setFiles(acceptedFiles);
|
4233
4233
|
}, [acceptedFiles, cmp, setFiles]);
|
4234
4234
|
onClearFiles = () => {
|
4235
|
-
|
4236
|
-
|
4235
|
+
setFilesAccepted([]);
|
4236
|
+
setFilesAccepted(filesAccepted.splice(0, filesAccepted.length));
|
4237
4237
|
setFiles([]);
|
4238
4238
|
};
|
4239
4239
|
const clearAllFiles = () => {
|
4240
|
-
|
4240
|
+
setFilesAccepted([]);
|
4241
4241
|
setFiles([]);
|
4242
4242
|
};
|
4243
4243
|
(0, import_react14.useEffect)(() => {
|
@@ -4265,7 +4265,7 @@ var FileDropzone = ({
|
|
4265
4265
|
{
|
4266
4266
|
onClick: (e) => {
|
4267
4267
|
e.stopPropagation();
|
4268
|
-
|
4268
|
+
setFilesAccepted(filesAccepted.splice(filesAccepted.indexOf(file), 1));
|
4269
4269
|
setCmp(Math.random);
|
4270
4270
|
onDeleteFile(file);
|
4271
4271
|
},
|
@@ -4516,13 +4516,11 @@ var useDialogCarousel = (options) => {
|
|
4516
4516
|
};
|
4517
4517
|
const nextStep = () => {
|
4518
4518
|
if (emblaApi) {
|
4519
|
-
console.log("going to NEXT \u{1F449}");
|
4520
4519
|
emblaApi.scrollNext();
|
4521
4520
|
}
|
4522
4521
|
};
|
4523
4522
|
const prevStep = () => {
|
4524
4523
|
if (emblaApi) {
|
4525
|
-
console.log("going to BACK \u{1F448}");
|
4526
4524
|
emblaApi.scrollPrev();
|
4527
4525
|
}
|
4528
4526
|
};
|
@@ -4716,7 +4714,7 @@ function useMediaQuery(query, initialValue, { getInitialValueInEffect } = {
|
|
4716
4714
|
const [matches, setMatches] = (0, import_react26.useState)(
|
4717
4715
|
getInitialValueInEffect ? initialValue : getInitialValue(query, initialValue)
|
4718
4716
|
);
|
4719
|
-
const queryRef = (0, import_react26.useRef)();
|
4717
|
+
const queryRef = (0, import_react26.useRef)(null);
|
4720
4718
|
(0, import_react26.useEffect)(() => {
|
4721
4719
|
if ("matchMedia" in window) {
|
4722
4720
|
queryRef.current = window.matchMedia(query);
|
@@ -4797,7 +4795,7 @@ var useMeasureDirty = (ref) => {
|
|
4797
4795
|
var import_react31 = require("react");
|
4798
4796
|
var DEFAULT_EVENTS = ["mousedown", "touchstart"];
|
4799
4797
|
function useClickOutside(handler, events, nodes) {
|
4800
|
-
const ref = (0, import_react31.useRef)();
|
4798
|
+
const ref = (0, import_react31.useRef)(null);
|
4801
4799
|
(0, import_react31.useEffect)(() => {
|
4802
4800
|
const listener = (event) => {
|
4803
4801
|
const { target } = event != null ? event : {};
|
@@ -5573,7 +5571,7 @@ var Badge = ({
|
|
5573
5571
|
(0, import_react38.useEffect)(() => {
|
5574
5572
|
const handlePositioning = () => {
|
5575
5573
|
var _a;
|
5576
|
-
if (anchor.current && indicatorRef.current) {
|
5574
|
+
if (anchor && anchor.current && indicatorRef.current) {
|
5577
5575
|
const rect = anchor.current.getBoundingClientRect();
|
5578
5576
|
const parentRect = (_a = indicatorRef.current.parentElement) == null ? void 0 : _a.getBoundingClientRect();
|
5579
5577
|
const style = window.getComputedStyle(anchor.current);
|
@@ -5612,7 +5610,16 @@ var Badge = ({
|
|
5612
5610
|
};
|
5613
5611
|
var BadgedComponent = ({ children, className, hideBadge, position, size, text }) => {
|
5614
5612
|
const ref = (0, import_react38.useRef)(null);
|
5615
|
-
return /* @__PURE__ */ import_react38.default.createElement("div", { className: cn("hawa-relative hawa-w-fit", className), ref }, !hideBadge && /* @__PURE__ */ import_react38.default.createElement(
|
5613
|
+
return /* @__PURE__ */ import_react38.default.createElement("div", { className: cn("hawa-relative hawa-w-fit", className), ref }, !hideBadge && /* @__PURE__ */ import_react38.default.createElement(
|
5614
|
+
Badge,
|
5615
|
+
{
|
5616
|
+
size,
|
5617
|
+
text,
|
5618
|
+
position,
|
5619
|
+
anchor: ref || null,
|
5620
|
+
className: "hawa-z-10"
|
5621
|
+
}
|
5622
|
+
), children);
|
5616
5623
|
};
|
5617
5624
|
|
5618
5625
|
// elements/phoneInput/PhoneInput.tsx
|
@@ -7375,19 +7382,19 @@ var PhoneInput = ({
|
|
7375
7382
|
var React50 = __toESM(require("react"));
|
7376
7383
|
var import_input_otp = require("input-otp");
|
7377
7384
|
|
7378
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7385
|
+
// ../../node_modules/.pnpm/lucide-react@0.468.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
7379
7386
|
var import_react41 = require("react");
|
7380
7387
|
|
7381
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7388
|
+
// ../../node_modules/.pnpm/lucide-react@0.468.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/utils.js
|
7382
7389
|
var toKebabCase = (string9) => string9.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
7383
7390
|
var mergeClasses = (...classes) => classes.filter((className, index, array) => {
|
7384
|
-
return Boolean(className) && array.indexOf(className) === index;
|
7385
|
-
}).join(" ");
|
7391
|
+
return Boolean(className) && className.trim() !== "" && array.indexOf(className) === index;
|
7392
|
+
}).join(" ").trim();
|
7386
7393
|
|
7387
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7394
|
+
// ../../node_modules/.pnpm/lucide-react@0.468.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
|
7388
7395
|
var import_react40 = require("react");
|
7389
7396
|
|
7390
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7397
|
+
// ../../node_modules/.pnpm/lucide-react@0.468.0_react@18.3.1/node_modules/lucide-react/dist/esm/defaultAttributes.js
|
7391
7398
|
var defaultAttributes = {
|
7392
7399
|
xmlns: "http://www.w3.org/2000/svg",
|
7393
7400
|
width: 24,
|
@@ -7400,7 +7407,7 @@ var defaultAttributes = {
|
|
7400
7407
|
strokeLinejoin: "round"
|
7401
7408
|
};
|
7402
7409
|
|
7403
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7410
|
+
// ../../node_modules/.pnpm/lucide-react@0.468.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
|
7404
7411
|
var Icon = (0, import_react40.forwardRef)(
|
7405
7412
|
({
|
7406
7413
|
color = "currentColor",
|
@@ -7432,7 +7439,7 @@ var Icon = (0, import_react40.forwardRef)(
|
|
7432
7439
|
}
|
7433
7440
|
);
|
7434
7441
|
|
7435
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7442
|
+
// ../../node_modules/.pnpm/lucide-react@0.468.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
7436
7443
|
var createLucideIcon = (iconName, iconNode) => {
|
7437
7444
|
const Component = (0, import_react41.forwardRef)(
|
7438
7445
|
({ className, ...props }, ref) => (0, import_react41.createElement)(Icon, {
|
@@ -7446,7 +7453,7 @@ var createLucideIcon = (iconName, iconNode) => {
|
|
7446
7453
|
return Component;
|
7447
7454
|
};
|
7448
7455
|
|
7449
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7456
|
+
// ../../node_modules/.pnpm/lucide-react@0.468.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/dot.js
|
7450
7457
|
var Dot = createLucideIcon("Dot", [
|
7451
7458
|
["circle", { cx: "12.1", cy: "12.1", r: "1", key: "18d7e5" }]
|
7452
7459
|
]);
|
@@ -9311,7 +9318,6 @@ var AppLayout = ({
|
|
9311
9318
|
width: profileMenuWidth,
|
9312
9319
|
direction,
|
9313
9320
|
items: finalProfileMenuItems || [],
|
9314
|
-
onItemSelect: (e) => console.log("selecting item ", e),
|
9315
9321
|
trigger: /* @__PURE__ */ import_react61.default.createElement(
|
9316
9322
|
"div",
|
9317
9323
|
{
|
@@ -9580,7 +9586,6 @@ var AppTopbar = ({ ...props }) => {
|
|
9580
9586
|
sideOffset: 5,
|
9581
9587
|
direction: isRTL ? "rtl" : "ltr",
|
9582
9588
|
items: props.profileMenuItems || [],
|
9583
|
-
onItemSelect: (e) => console.log("selecting item ", e),
|
9584
9589
|
trigger: /* @__PURE__ */ import_react62.default.createElement("div", { className: "hawa-relative hawa-h-8 hawa-w-8 hawa-cursor-pointer hawa-overflow-clip hawa-rounded hawa-ring-1 hawa-ring-primary/30 dark:hawa-bg-gray-600" }, props.avatarImage ? /* @__PURE__ */ import_react62.default.createElement("img", { src: props.avatarImage, alt: "User Avatar" }) : /* @__PURE__ */ import_react62.default.createElement(
|
9585
9590
|
"svg",
|
9586
9591
|
{
|
@@ -9963,7 +9968,7 @@ var DocsLayout = ({
|
|
9963
9968
|
// Adjust threshold as needed to determine when a section is in view
|
9964
9969
|
});
|
9965
9970
|
import_react65.default.Children.forEach(props.children, (child) => {
|
9966
|
-
if (child && child.props.id) {
|
9971
|
+
if (child && child.props && child.props.id) {
|
9967
9972
|
const element = document.getElementById(child.props.id);
|
9968
9973
|
if (element && observerRef.current) {
|
9969
9974
|
observerRef.current.observe(element);
|
@@ -10636,7 +10641,6 @@ var RegisterForm = ({
|
|
10636
10641
|
resolver: (0, import_zod2.zodResolver)(finalSchema)
|
10637
10642
|
});
|
10638
10643
|
const onSubmit = (data) => {
|
10639
|
-
console.log("Form submitted with data:", data);
|
10640
10644
|
if (props.onRegister) {
|
10641
10645
|
props.onRegister(data);
|
10642
10646
|
} else {
|
@@ -12168,7 +12172,6 @@ var ContactForm = ({
|
|
12168
12172
|
)
|
12169
12173
|
),
|
12170
12174
|
customFields && customFields.map((customField) => {
|
12171
|
-
console.log("custom", customField);
|
12172
12175
|
return /* @__PURE__ */ import_react86.default.createElement(
|
12173
12176
|
import_react_hook_form9.Controller,
|
12174
12177
|
{
|
@@ -13095,7 +13098,7 @@ var Usage = (props) => {
|
|
13095
13098
|
|
13096
13099
|
lucide-react/dist/esm/shared/src/utils.js:
|
13097
13100
|
(**
|
13098
|
-
* @license lucide-react v0.
|
13101
|
+
* @license lucide-react v0.468.0 - ISC
|
13099
13102
|
*
|
13100
13103
|
* This source code is licensed under the ISC license.
|
13101
13104
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -13103,7 +13106,7 @@ lucide-react/dist/esm/shared/src/utils.js:
|
|
13103
13106
|
|
13104
13107
|
lucide-react/dist/esm/defaultAttributes.js:
|
13105
13108
|
(**
|
13106
|
-
* @license lucide-react v0.
|
13109
|
+
* @license lucide-react v0.468.0 - ISC
|
13107
13110
|
*
|
13108
13111
|
* This source code is licensed under the ISC license.
|
13109
13112
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -13111,7 +13114,7 @@ lucide-react/dist/esm/defaultAttributes.js:
|
|
13111
13114
|
|
13112
13115
|
lucide-react/dist/esm/Icon.js:
|
13113
13116
|
(**
|
13114
|
-
* @license lucide-react v0.
|
13117
|
+
* @license lucide-react v0.468.0 - ISC
|
13115
13118
|
*
|
13116
13119
|
* This source code is licensed under the ISC license.
|
13117
13120
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -13119,7 +13122,7 @@ lucide-react/dist/esm/Icon.js:
|
|
13119
13122
|
|
13120
13123
|
lucide-react/dist/esm/createLucideIcon.js:
|
13121
13124
|
(**
|
13122
|
-
* @license lucide-react v0.
|
13125
|
+
* @license lucide-react v0.468.0 - ISC
|
13123
13126
|
*
|
13124
13127
|
* This source code is licensed under the ISC license.
|
13125
13128
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -13127,7 +13130,7 @@ lucide-react/dist/esm/createLucideIcon.js:
|
|
13127
13130
|
|
13128
13131
|
lucide-react/dist/esm/icons/dot.js:
|
13129
13132
|
(**
|
13130
|
-
* @license lucide-react v0.
|
13133
|
+
* @license lucide-react v0.468.0 - ISC
|
13131
13134
|
*
|
13132
13135
|
* This source code is licensed under the ISC license.
|
13133
13136
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -13135,7 +13138,7 @@ lucide-react/dist/esm/icons/dot.js:
|
|
13135
13138
|
|
13136
13139
|
lucide-react/dist/esm/lucide-react.js:
|
13137
13140
|
(**
|
13138
|
-
* @license lucide-react v0.
|
13141
|
+
* @license lucide-react v0.468.0 - ISC
|
13139
13142
|
*
|
13140
13143
|
* This source code is licensed under the ISC license.
|
13141
13144
|
* See the LICENSE file in the root directory of this source tree.
|