@sikka/hawa 0.49.14-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 -1
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs +1 -1
- package/dist/appLayout/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 -15
- package/dist/blocks/auth/index.mjs +15 -15
- package/dist/blocks/index.d.mts +1 -1
- package/dist/blocks/index.d.ts +1 -1
- package/dist/blocks/index.js +15 -15
- package/dist/blocks/index.mjs +3 -3
- 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-FTS7YP7U.mjs → chunk-NJJVVA2A.mjs} +16 -16
- package/dist/{chunk-5SQBJRWE.mjs → chunk-OWMN44TT.mjs} +1 -1
- package/dist/{chunk-3AANFRLZ.mjs → chunk-Z3ZL22XB.mjs} +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/datePicker/index.d.mts +1 -1
- package/dist/datePicker/index.d.ts +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/elements/index.d.mts +9 -7
- package/dist/elements/index.d.ts +9 -7
- package/dist/elements/index.js +32 -21
- package/dist/elements/index.mjs +20 -9
- 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 -2
- package/dist/hooks/index.mjs +2 -2
- package/dist/index.css +124 -124
- package/dist/index.d.mts +11 -9
- package/dist/index.d.ts +11 -9
- package/dist/index.js +35 -24
- package/dist/index.mjs +35 -24
- package/dist/layout/index.d.mts +1 -1
- package/dist/layout/index.d.ts +1 -1
- package/dist/layout/index.js +2 -2
- package/dist/layout/index.mjs +2 -2
- 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/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/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 +45 -45
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
@@ -4203,11 +4203,13 @@ var FileDropzone = ({
|
|
4203
4203
|
var _a, _b, _c, _d, _e, _f;
|
4204
4204
|
const [cmp, setCmp] = (0, import_react14.useState)(0);
|
4205
4205
|
const [max, setMax] = (0, import_react14.useState)(0);
|
4206
|
+
const [filesAccepted, setFilesAccepted] = (0, import_react14.useState)([]);
|
4206
4207
|
const { getRootProps, getInputProps, fileRejections, acceptedFiles, isDragActive } = (0, import_react_dropzone.useDropzone)({
|
4207
4208
|
multiple: true,
|
4208
4209
|
accept,
|
4209
4210
|
maxSize,
|
4210
4211
|
maxFiles,
|
4212
|
+
useFsAccessApi: true,
|
4211
4213
|
onDrop: (acceptedFiles2) => {
|
4212
4214
|
setFiles(
|
4213
4215
|
acceptedFiles2.map(
|
@@ -4230,12 +4232,12 @@ var FileDropzone = ({
|
|
4230
4232
|
setFiles(acceptedFiles);
|
4231
4233
|
}, [acceptedFiles, cmp, setFiles]);
|
4232
4234
|
onClearFiles = () => {
|
4233
|
-
|
4234
|
-
|
4235
|
+
setFilesAccepted([]);
|
4236
|
+
setFilesAccepted(filesAccepted.splice(0, filesAccepted.length));
|
4235
4237
|
setFiles([]);
|
4236
4238
|
};
|
4237
4239
|
const clearAllFiles = () => {
|
4238
|
-
|
4240
|
+
setFilesAccepted([]);
|
4239
4241
|
setFiles([]);
|
4240
4242
|
};
|
4241
4243
|
(0, import_react14.useEffect)(() => {
|
@@ -4263,7 +4265,7 @@ var FileDropzone = ({
|
|
4263
4265
|
{
|
4264
4266
|
onClick: (e) => {
|
4265
4267
|
e.stopPropagation();
|
4266
|
-
|
4268
|
+
setFilesAccepted(filesAccepted.splice(filesAccepted.indexOf(file), 1));
|
4267
4269
|
setCmp(Math.random);
|
4268
4270
|
onDeleteFile(file);
|
4269
4271
|
},
|
@@ -4712,7 +4714,7 @@ function useMediaQuery(query, initialValue, { getInitialValueInEffect } = {
|
|
4712
4714
|
const [matches, setMatches] = (0, import_react26.useState)(
|
4713
4715
|
getInitialValueInEffect ? initialValue : getInitialValue(query, initialValue)
|
4714
4716
|
);
|
4715
|
-
const queryRef = (0, import_react26.useRef)();
|
4717
|
+
const queryRef = (0, import_react26.useRef)(null);
|
4716
4718
|
(0, import_react26.useEffect)(() => {
|
4717
4719
|
if ("matchMedia" in window) {
|
4718
4720
|
queryRef.current = window.matchMedia(query);
|
@@ -4793,7 +4795,7 @@ var useMeasureDirty = (ref) => {
|
|
4793
4795
|
var import_react31 = require("react");
|
4794
4796
|
var DEFAULT_EVENTS = ["mousedown", "touchstart"];
|
4795
4797
|
function useClickOutside(handler, events, nodes) {
|
4796
|
-
const ref = (0, import_react31.useRef)();
|
4798
|
+
const ref = (0, import_react31.useRef)(null);
|
4797
4799
|
(0, import_react31.useEffect)(() => {
|
4798
4800
|
const listener = (event) => {
|
4799
4801
|
const { target } = event != null ? event : {};
|
@@ -5569,7 +5571,7 @@ var Badge = ({
|
|
5569
5571
|
(0, import_react38.useEffect)(() => {
|
5570
5572
|
const handlePositioning = () => {
|
5571
5573
|
var _a;
|
5572
|
-
if (anchor.current && indicatorRef.current) {
|
5574
|
+
if (anchor && anchor.current && indicatorRef.current) {
|
5573
5575
|
const rect = anchor.current.getBoundingClientRect();
|
5574
5576
|
const parentRect = (_a = indicatorRef.current.parentElement) == null ? void 0 : _a.getBoundingClientRect();
|
5575
5577
|
const style = window.getComputedStyle(anchor.current);
|
@@ -5608,7 +5610,16 @@ var Badge = ({
|
|
5608
5610
|
};
|
5609
5611
|
var BadgedComponent = ({ children, className, hideBadge, position, size, text }) => {
|
5610
5612
|
const ref = (0, import_react38.useRef)(null);
|
5611
|
-
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);
|
5612
5623
|
};
|
5613
5624
|
|
5614
5625
|
// elements/phoneInput/PhoneInput.tsx
|
@@ -7371,19 +7382,19 @@ var PhoneInput = ({
|
|
7371
7382
|
var React50 = __toESM(require("react"));
|
7372
7383
|
var import_input_otp = require("input-otp");
|
7373
7384
|
|
7374
|
-
// ../../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
|
7375
7386
|
var import_react41 = require("react");
|
7376
7387
|
|
7377
|
-
// ../../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
|
7378
7389
|
var toKebabCase = (string9) => string9.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
7379
7390
|
var mergeClasses = (...classes) => classes.filter((className, index, array) => {
|
7380
|
-
return Boolean(className) && array.indexOf(className) === index;
|
7381
|
-
}).join(" ");
|
7391
|
+
return Boolean(className) && className.trim() !== "" && array.indexOf(className) === index;
|
7392
|
+
}).join(" ").trim();
|
7382
7393
|
|
7383
|
-
// ../../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
|
7384
7395
|
var import_react40 = require("react");
|
7385
7396
|
|
7386
|
-
// ../../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
|
7387
7398
|
var defaultAttributes = {
|
7388
7399
|
xmlns: "http://www.w3.org/2000/svg",
|
7389
7400
|
width: 24,
|
@@ -7396,7 +7407,7 @@ var defaultAttributes = {
|
|
7396
7407
|
strokeLinejoin: "round"
|
7397
7408
|
};
|
7398
7409
|
|
7399
|
-
// ../../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
|
7400
7411
|
var Icon = (0, import_react40.forwardRef)(
|
7401
7412
|
({
|
7402
7413
|
color = "currentColor",
|
@@ -7428,7 +7439,7 @@ var Icon = (0, import_react40.forwardRef)(
|
|
7428
7439
|
}
|
7429
7440
|
);
|
7430
7441
|
|
7431
|
-
// ../../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
|
7432
7443
|
var createLucideIcon = (iconName, iconNode) => {
|
7433
7444
|
const Component = (0, import_react41.forwardRef)(
|
7434
7445
|
({ className, ...props }, ref) => (0, import_react41.createElement)(Icon, {
|
@@ -7442,7 +7453,7 @@ var createLucideIcon = (iconName, iconNode) => {
|
|
7442
7453
|
return Component;
|
7443
7454
|
};
|
7444
7455
|
|
7445
|
-
// ../../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
|
7446
7457
|
var Dot = createLucideIcon("Dot", [
|
7447
7458
|
["circle", { cx: "12.1", cy: "12.1", r: "1", key: "18d7e5" }]
|
7448
7459
|
]);
|
@@ -9957,7 +9968,7 @@ var DocsLayout = ({
|
|
9957
9968
|
// Adjust threshold as needed to determine when a section is in view
|
9958
9969
|
});
|
9959
9970
|
import_react65.default.Children.forEach(props.children, (child) => {
|
9960
|
-
if (child && child.props.id) {
|
9971
|
+
if (child && child.props && child.props.id) {
|
9961
9972
|
const element = document.getElementById(child.props.id);
|
9962
9973
|
if (element && observerRef.current) {
|
9963
9974
|
observerRef.current.observe(element);
|
@@ -13087,7 +13098,7 @@ var Usage = (props) => {
|
|
13087
13098
|
|
13088
13099
|
lucide-react/dist/esm/shared/src/utils.js:
|
13089
13100
|
(**
|
13090
|
-
* @license lucide-react v0.
|
13101
|
+
* @license lucide-react v0.468.0 - ISC
|
13091
13102
|
*
|
13092
13103
|
* This source code is licensed under the ISC license.
|
13093
13104
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -13095,7 +13106,7 @@ lucide-react/dist/esm/shared/src/utils.js:
|
|
13095
13106
|
|
13096
13107
|
lucide-react/dist/esm/defaultAttributes.js:
|
13097
13108
|
(**
|
13098
|
-
* @license lucide-react v0.
|
13109
|
+
* @license lucide-react v0.468.0 - ISC
|
13099
13110
|
*
|
13100
13111
|
* This source code is licensed under the ISC license.
|
13101
13112
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -13103,7 +13114,7 @@ lucide-react/dist/esm/defaultAttributes.js:
|
|
13103
13114
|
|
13104
13115
|
lucide-react/dist/esm/Icon.js:
|
13105
13116
|
(**
|
13106
|
-
* @license lucide-react v0.
|
13117
|
+
* @license lucide-react v0.468.0 - ISC
|
13107
13118
|
*
|
13108
13119
|
* This source code is licensed under the ISC license.
|
13109
13120
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -13111,7 +13122,7 @@ lucide-react/dist/esm/Icon.js:
|
|
13111
13122
|
|
13112
13123
|
lucide-react/dist/esm/createLucideIcon.js:
|
13113
13124
|
(**
|
13114
|
-
* @license lucide-react v0.
|
13125
|
+
* @license lucide-react v0.468.0 - ISC
|
13115
13126
|
*
|
13116
13127
|
* This source code is licensed under the ISC license.
|
13117
13128
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -13119,7 +13130,7 @@ lucide-react/dist/esm/createLucideIcon.js:
|
|
13119
13130
|
|
13120
13131
|
lucide-react/dist/esm/icons/dot.js:
|
13121
13132
|
(**
|
13122
|
-
* @license lucide-react v0.
|
13133
|
+
* @license lucide-react v0.468.0 - ISC
|
13123
13134
|
*
|
13124
13135
|
* This source code is licensed under the ISC license.
|
13125
13136
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -13127,7 +13138,7 @@ lucide-react/dist/esm/icons/dot.js:
|
|
13127
13138
|
|
13128
13139
|
lucide-react/dist/esm/lucide-react.js:
|
13129
13140
|
(**
|
13130
|
-
* @license lucide-react v0.
|
13141
|
+
* @license lucide-react v0.468.0 - ISC
|
13131
13142
|
*
|
13132
13143
|
* This source code is licensed under the ISC license.
|
13133
13144
|
* See the LICENSE file in the root directory of this source tree.
|
package/dist/index.mjs
CHANGED
@@ -3959,11 +3959,13 @@ var FileDropzone = ({
|
|
3959
3959
|
var _a, _b, _c, _d, _e, _f;
|
3960
3960
|
const [cmp, setCmp] = useState9(0);
|
3961
3961
|
const [max, setMax] = useState9(0);
|
3962
|
+
const [filesAccepted, setFilesAccepted] = useState9([]);
|
3962
3963
|
const { getRootProps, getInputProps, fileRejections, acceptedFiles, isDragActive } = useDropzone({
|
3963
3964
|
multiple: true,
|
3964
3965
|
accept,
|
3965
3966
|
maxSize,
|
3966
3967
|
maxFiles,
|
3968
|
+
useFsAccessApi: true,
|
3967
3969
|
onDrop: (acceptedFiles2) => {
|
3968
3970
|
setFiles(
|
3969
3971
|
acceptedFiles2.map(
|
@@ -3986,12 +3988,12 @@ var FileDropzone = ({
|
|
3986
3988
|
setFiles(acceptedFiles);
|
3987
3989
|
}, [acceptedFiles, cmp, setFiles]);
|
3988
3990
|
onClearFiles = () => {
|
3989
|
-
|
3990
|
-
|
3991
|
+
setFilesAccepted([]);
|
3992
|
+
setFilesAccepted(filesAccepted.splice(0, filesAccepted.length));
|
3991
3993
|
setFiles([]);
|
3992
3994
|
};
|
3993
3995
|
const clearAllFiles = () => {
|
3994
|
-
|
3996
|
+
setFilesAccepted([]);
|
3995
3997
|
setFiles([]);
|
3996
3998
|
};
|
3997
3999
|
useEffect6(() => {
|
@@ -4019,7 +4021,7 @@ var FileDropzone = ({
|
|
4019
4021
|
{
|
4020
4022
|
onClick: (e) => {
|
4021
4023
|
e.stopPropagation();
|
4022
|
-
|
4024
|
+
setFilesAccepted(filesAccepted.splice(filesAccepted.indexOf(file), 1));
|
4023
4025
|
setCmp(Math.random);
|
4024
4026
|
onDeleteFile(file);
|
4025
4027
|
},
|
@@ -4468,7 +4470,7 @@ function useMediaQuery(query, initialValue, { getInitialValueInEffect } = {
|
|
4468
4470
|
const [matches, setMatches] = useState20(
|
4469
4471
|
getInitialValueInEffect ? initialValue : getInitialValue(query, initialValue)
|
4470
4472
|
);
|
4471
|
-
const queryRef = useRef10();
|
4473
|
+
const queryRef = useRef10(null);
|
4472
4474
|
useEffect15(() => {
|
4473
4475
|
if ("matchMedia" in window) {
|
4474
4476
|
queryRef.current = window.matchMedia(query);
|
@@ -4549,7 +4551,7 @@ var useMeasureDirty = (ref) => {
|
|
4549
4551
|
import { useEffect as useEffect20, useRef as useRef13 } from "react";
|
4550
4552
|
var DEFAULT_EVENTS = ["mousedown", "touchstart"];
|
4551
4553
|
function useClickOutside(handler, events, nodes) {
|
4552
|
-
const ref = useRef13();
|
4554
|
+
const ref = useRef13(null);
|
4553
4555
|
useEffect20(() => {
|
4554
4556
|
const listener = (event) => {
|
4555
4557
|
const { target } = event != null ? event : {};
|
@@ -5325,7 +5327,7 @@ var Badge = ({
|
|
5325
5327
|
useEffect26(() => {
|
5326
5328
|
const handlePositioning = () => {
|
5327
5329
|
var _a;
|
5328
|
-
if (anchor.current && indicatorRef.current) {
|
5330
|
+
if (anchor && anchor.current && indicatorRef.current) {
|
5329
5331
|
const rect = anchor.current.getBoundingClientRect();
|
5330
5332
|
const parentRect = (_a = indicatorRef.current.parentElement) == null ? void 0 : _a.getBoundingClientRect();
|
5331
5333
|
const style = window.getComputedStyle(anchor.current);
|
@@ -5364,7 +5366,16 @@ var Badge = ({
|
|
5364
5366
|
};
|
5365
5367
|
var BadgedComponent = ({ children, className, hideBadge, position, size, text }) => {
|
5366
5368
|
const ref = useRef16(null);
|
5367
|
-
return /* @__PURE__ */ React48.createElement("div", { className: cn("hawa-relative hawa-w-fit", className), ref }, !hideBadge && /* @__PURE__ */ React48.createElement(
|
5369
|
+
return /* @__PURE__ */ React48.createElement("div", { className: cn("hawa-relative hawa-w-fit", className), ref }, !hideBadge && /* @__PURE__ */ React48.createElement(
|
5370
|
+
Badge,
|
5371
|
+
{
|
5372
|
+
size,
|
5373
|
+
text,
|
5374
|
+
position,
|
5375
|
+
anchor: ref || null,
|
5376
|
+
className: "hawa-z-10"
|
5377
|
+
}
|
5378
|
+
), children);
|
5368
5379
|
};
|
5369
5380
|
|
5370
5381
|
// elements/phoneInput/PhoneInput.tsx
|
@@ -7127,19 +7138,19 @@ var PhoneInput = ({
|
|
7127
7138
|
import * as React50 from "react";
|
7128
7139
|
import { OTPInput, OTPInputContext } from "input-otp";
|
7129
7140
|
|
7130
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7141
|
+
// ../../node_modules/.pnpm/lucide-react@0.468.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
7131
7142
|
import { forwardRef as forwardRef25, createElement as createElement24 } from "react";
|
7132
7143
|
|
7133
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7144
|
+
// ../../node_modules/.pnpm/lucide-react@0.468.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/utils.js
|
7134
7145
|
var toKebabCase = (string9) => string9.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
7135
7146
|
var mergeClasses = (...classes) => classes.filter((className, index, array) => {
|
7136
|
-
return Boolean(className) && array.indexOf(className) === index;
|
7137
|
-
}).join(" ");
|
7147
|
+
return Boolean(className) && className.trim() !== "" && array.indexOf(className) === index;
|
7148
|
+
}).join(" ").trim();
|
7138
7149
|
|
7139
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7150
|
+
// ../../node_modules/.pnpm/lucide-react@0.468.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
|
7140
7151
|
import { forwardRef as forwardRef24, createElement as createElement23 } from "react";
|
7141
7152
|
|
7142
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7153
|
+
// ../../node_modules/.pnpm/lucide-react@0.468.0_react@18.3.1/node_modules/lucide-react/dist/esm/defaultAttributes.js
|
7143
7154
|
var defaultAttributes = {
|
7144
7155
|
xmlns: "http://www.w3.org/2000/svg",
|
7145
7156
|
width: 24,
|
@@ -7152,7 +7163,7 @@ var defaultAttributes = {
|
|
7152
7163
|
strokeLinejoin: "round"
|
7153
7164
|
};
|
7154
7165
|
|
7155
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7166
|
+
// ../../node_modules/.pnpm/lucide-react@0.468.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
|
7156
7167
|
var Icon = forwardRef24(
|
7157
7168
|
({
|
7158
7169
|
color = "currentColor",
|
@@ -7184,7 +7195,7 @@ var Icon = forwardRef24(
|
|
7184
7195
|
}
|
7185
7196
|
);
|
7186
7197
|
|
7187
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7198
|
+
// ../../node_modules/.pnpm/lucide-react@0.468.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
7188
7199
|
var createLucideIcon = (iconName, iconNode) => {
|
7189
7200
|
const Component = forwardRef25(
|
7190
7201
|
({ className, ...props }, ref) => createElement24(Icon, {
|
@@ -7198,7 +7209,7 @@ var createLucideIcon = (iconName, iconNode) => {
|
|
7198
7209
|
return Component;
|
7199
7210
|
};
|
7200
7211
|
|
7201
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7212
|
+
// ../../node_modules/.pnpm/lucide-react@0.468.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/dot.js
|
7202
7213
|
var Dot = createLucideIcon("Dot", [
|
7203
7214
|
["circle", { cx: "12.1", cy: "12.1", r: "1", key: "18d7e5" }]
|
7204
7215
|
]);
|
@@ -9717,7 +9728,7 @@ var DocsLayout = ({
|
|
9717
9728
|
// Adjust threshold as needed to determine when a section is in view
|
9718
9729
|
});
|
9719
9730
|
React80.Children.forEach(props.children, (child) => {
|
9720
|
-
if (child && child.props.id) {
|
9731
|
+
if (child && child.props && child.props.id) {
|
9721
9732
|
const element = document.getElementById(child.props.id);
|
9722
9733
|
if (element && observerRef.current) {
|
9723
9734
|
observerRef.current.observe(element);
|
@@ -12856,7 +12867,7 @@ export {
|
|
12856
12867
|
|
12857
12868
|
lucide-react/dist/esm/shared/src/utils.js:
|
12858
12869
|
(**
|
12859
|
-
* @license lucide-react v0.
|
12870
|
+
* @license lucide-react v0.468.0 - ISC
|
12860
12871
|
*
|
12861
12872
|
* This source code is licensed under the ISC license.
|
12862
12873
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -12864,7 +12875,7 @@ lucide-react/dist/esm/shared/src/utils.js:
|
|
12864
12875
|
|
12865
12876
|
lucide-react/dist/esm/defaultAttributes.js:
|
12866
12877
|
(**
|
12867
|
-
* @license lucide-react v0.
|
12878
|
+
* @license lucide-react v0.468.0 - ISC
|
12868
12879
|
*
|
12869
12880
|
* This source code is licensed under the ISC license.
|
12870
12881
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -12872,7 +12883,7 @@ lucide-react/dist/esm/defaultAttributes.js:
|
|
12872
12883
|
|
12873
12884
|
lucide-react/dist/esm/Icon.js:
|
12874
12885
|
(**
|
12875
|
-
* @license lucide-react v0.
|
12886
|
+
* @license lucide-react v0.468.0 - ISC
|
12876
12887
|
*
|
12877
12888
|
* This source code is licensed under the ISC license.
|
12878
12889
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -12880,7 +12891,7 @@ lucide-react/dist/esm/Icon.js:
|
|
12880
12891
|
|
12881
12892
|
lucide-react/dist/esm/createLucideIcon.js:
|
12882
12893
|
(**
|
12883
|
-
* @license lucide-react v0.
|
12894
|
+
* @license lucide-react v0.468.0 - ISC
|
12884
12895
|
*
|
12885
12896
|
* This source code is licensed under the ISC license.
|
12886
12897
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -12888,7 +12899,7 @@ lucide-react/dist/esm/createLucideIcon.js:
|
|
12888
12899
|
|
12889
12900
|
lucide-react/dist/esm/icons/dot.js:
|
12890
12901
|
(**
|
12891
|
-
* @license lucide-react v0.
|
12902
|
+
* @license lucide-react v0.468.0 - ISC
|
12892
12903
|
*
|
12893
12904
|
* This source code is licensed under the ISC license.
|
12894
12905
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -12896,7 +12907,7 @@ lucide-react/dist/esm/icons/dot.js:
|
|
12896
12907
|
|
12897
12908
|
lucide-react/dist/esm/lucide-react.js:
|
12898
12909
|
(**
|
12899
|
-
* @license lucide-react v0.
|
12910
|
+
* @license lucide-react v0.468.0 - ISC
|
12900
12911
|
*
|
12901
12912
|
* This source code is licensed under the ISC license.
|
12902
12913
|
* See the LICENSE file in the root directory of this source tree.
|
package/dist/layout/index.d.mts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import React__default, { FC } from 'react';
|
3
3
|
import { D as DirectionType } from '../commonTypes-C-g8nFFC.mjs';
|
4
|
-
import { C as ChipColors } from '../Chip-
|
4
|
+
import { C as ChipColors } from '../Chip-BRMzT5TB.mjs';
|
5
5
|
import { M as MenuItemType } from '../DropdownMenu-mK9EvfKp.mjs';
|
6
6
|
import * as MenubarPrimitive from '@radix-ui/react-menubar';
|
7
7
|
import '@radix-ui/react-dropdown-menu';
|
package/dist/layout/index.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import React__default, { FC } from 'react';
|
3
3
|
import { D as DirectionType } from '../commonTypes-C-g8nFFC.js';
|
4
|
-
import { C as ChipColors } from '../Chip-
|
4
|
+
import { C as ChipColors } from '../Chip-D58g8OJ_.js';
|
5
5
|
import { M as MenuItemType } from '../DropdownMenu-CDnFCzfc.js';
|
6
6
|
import * as MenubarPrimitive from '@radix-ui/react-menubar';
|
7
7
|
import '@radix-ui/react-dropdown-menu';
|
package/dist/layout/index.js
CHANGED
@@ -592,7 +592,7 @@ var import_react14 = __toESM(require("react"));
|
|
592
592
|
var import_react6 = require("react");
|
593
593
|
var DEFAULT_EVENTS = ["mousedown", "touchstart"];
|
594
594
|
function useClickOutside(handler, events, nodes) {
|
595
|
-
const ref = (0, import_react6.useRef)();
|
595
|
+
const ref = (0, import_react6.useRef)(null);
|
596
596
|
(0, import_react6.useEffect)(() => {
|
597
597
|
const listener = (event) => {
|
598
598
|
const { target } = event != null ? event : {};
|
@@ -2748,7 +2748,7 @@ var DocsLayout = ({
|
|
2748
2748
|
// Adjust threshold as needed to determine when a section is in view
|
2749
2749
|
});
|
2750
2750
|
import_react20.default.Children.forEach(props.children, (child) => {
|
2751
|
-
if (child && child.props.id) {
|
2751
|
+
if (child && child.props && child.props.id) {
|
2752
2752
|
const element = document.getElementById(child.props.id);
|
2753
2753
|
if (element && observerRef.current) {
|
2754
2754
|
observerRef.current.observe(element);
|
package/dist/layout/index.mjs
CHANGED
@@ -20,7 +20,7 @@ import {
|
|
20
20
|
import {
|
21
21
|
useBreakpoint,
|
22
22
|
useClickOutside
|
23
|
-
} from "../chunk-
|
23
|
+
} from "../chunk-OWMN44TT.mjs";
|
24
24
|
|
25
25
|
// layout/stats/Stats.tsx
|
26
26
|
import React from "react";
|
@@ -1166,7 +1166,7 @@ var DocsLayout = ({
|
|
1166
1166
|
// Adjust threshold as needed to determine when a section is in view
|
1167
1167
|
});
|
1168
1168
|
React10.Children.forEach(props.children, (child) => {
|
1169
|
-
if (child && child.props.id) {
|
1169
|
+
if (child && child.props && child.props.id) {
|
1170
1170
|
const element = document.getElementById(child.props.id);
|
1171
1171
|
if (element && observerRef.current) {
|
1172
1172
|
observerRef.current.observe(element);
|