@sikka/hawa 0.38.4-next → 0.38.6-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/{DropdownMenu-Dly5lsqz.d.mts → DropdownMenu-B3cTLPDi.d.mts} +1 -0
- package/dist/{DropdownMenu-Cxlm5lZl.d.ts → DropdownMenu-BO1TNMm5.d.ts} +1 -0
- package/dist/appLayout/index.js +7 -1
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs +7 -1
- package/dist/appLayout/index.mjs.map +1 -1
- package/dist/appTopbar/index.js +7 -1
- package/dist/appTopbar/index.js.map +1 -1
- package/dist/appTopbar/index.mjs +7 -1
- package/dist/appTopbar/index.mjs.map +1 -1
- package/dist/blocks/index.d.mts +1 -1
- package/dist/blocks/index.d.ts +1 -1
- package/dist/blocks/index.js +7 -1
- package/dist/blocks/index.mjs +2 -2
- package/dist/{chunk-RZJPAN5T.mjs → chunk-HDOYDKDV.mjs} +1 -1
- package/dist/{chunk-GZVEFVSJ.mjs → chunk-SL4ONYNR.mjs} +1 -1
- package/dist/{chunk-GVPIM5KC.mjs → chunk-VE7EQ6VH.mjs} +7 -1
- package/dist/combobox/index.js +41 -38
- package/dist/combobox/index.js.map +1 -1
- package/dist/combobox/index.mjs +41 -38
- package/dist/combobox/index.mjs.map +1 -1
- package/dist/command/index.js +41 -38
- package/dist/command/index.js.map +1 -1
- package/dist/command/index.mjs +41 -38
- package/dist/command/index.mjs.map +1 -1
- package/dist/dataTable/index.js +7 -1
- package/dist/dataTable/index.js.map +1 -1
- package/dist/dataTable/index.mjs +7 -1
- package/dist/dataTable/index.mjs.map +1 -1
- package/dist/dialog/index.d.mts +5 -0
- package/dist/dialog/index.d.ts +5 -0
- package/dist/dialog/index.js +41 -38
- package/dist/dialog/index.js.map +1 -1
- package/dist/dialog/index.mjs +41 -38
- package/dist/dialog/index.mjs.map +1 -1
- package/dist/dropdownMenu/index.d.mts +1 -0
- package/dist/dropdownMenu/index.d.ts +1 -0
- package/dist/dropdownMenu/index.js +7 -1
- package/dist/dropdownMenu/index.js.map +1 -1
- package/dist/dropdownMenu/index.mjs +7 -1
- package/dist/dropdownMenu/index.mjs.map +1 -1
- package/dist/elements/index.d.mts +6 -1
- package/dist/elements/index.d.ts +6 -1
- package/dist/elements/index.js +48 -39
- package/dist/elements/index.mjs +44 -41
- package/dist/index.d.mts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +48 -39
- package/dist/index.mjs +48 -39
- package/dist/layout/index.d.mts +1 -1
- package/dist/layout/index.d.ts +1 -1
- package/dist/layout/index.js +7 -1
- package/dist/layout/index.mjs +2 -2
- package/dist/splitButton/index.js +7 -1
- package/dist/splitButton/index.js.map +1 -1
- package/dist/splitButton/index.mjs +7 -1
- package/dist/splitButton/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/elements/index.mjs
CHANGED
@@ -26,7 +26,7 @@ import {
|
|
26
26
|
TabsList,
|
27
27
|
TabsTrigger,
|
28
28
|
Textarea
|
29
|
-
} from "../chunk-
|
29
|
+
} from "../chunk-HDOYDKDV.mjs";
|
30
30
|
import {
|
31
31
|
useClipboard
|
32
32
|
} from "../chunk-ZBUBNKF6.mjs";
|
@@ -41,7 +41,7 @@ import {
|
|
41
41
|
SheetPortal,
|
42
42
|
SheetTitle,
|
43
43
|
SheetTrigger
|
44
|
-
} from "../chunk-
|
44
|
+
} from "../chunk-SL4ONYNR.mjs";
|
45
45
|
import {
|
46
46
|
Button,
|
47
47
|
Card,
|
@@ -81,7 +81,7 @@ import {
|
|
81
81
|
buttonVariants,
|
82
82
|
calculateLuminance,
|
83
83
|
cn
|
84
|
-
} from "../chunk-
|
84
|
+
} from "../chunk-VE7EQ6VH.mjs";
|
85
85
|
import {
|
86
86
|
__require
|
87
87
|
} from "../chunk-SYGWSBJL.mjs";
|
@@ -392,51 +392,54 @@ var DialogOverlay = React6.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
392
392
|
...props
|
393
393
|
}
|
394
394
|
));
|
395
|
-
var DialogContent = React6.forwardRef(
|
396
|
-
|
397
|
-
|
398
|
-
onPointerDownOutside: (e) => {
|
399
|
-
if (persist) {
|
400
|
-
e.preventDefault();
|
401
|
-
}
|
402
|
-
},
|
403
|
-
ref,
|
404
|
-
className: cn(
|
405
|
-
"hawa-fixed hawa-left-[50%] hawa-top-[50%] hawa-z-50 hawa-grid hawa-w-[90%] hawa-max-w-lg hawa-translate-x-[-50%] hawa-translate-y-[-50%] hawa-gap-4 hawa-border hawa-bg-background hawa-p-6 hawa-shadow-lg hawa-transition-all hawa-duration-200 data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[state=closed]:hawa-slide-out-to-left-1/2 data-[state=closed]:hawa-slide-out-to-top-[48%] data-[state=open]:hawa-slide-in-from-left-1/2 data-[state=open]:hawa-slide-in-from-top-[48%] hawa-rounded md:hawa-w-full",
|
406
|
-
className
|
407
|
-
),
|
408
|
-
...props
|
409
|
-
},
|
410
|
-
children,
|
411
|
-
!hideCloseButton && /* @__PURE__ */ React6.createElement(
|
412
|
-
DialogPrimitive.Close,
|
395
|
+
var DialogContent = React6.forwardRef(
|
396
|
+
({ className, classNames, children, persist, hideCloseButton, ...props }, ref) => /* @__PURE__ */ React6.createElement(DialogPortal, { container: props.container }, /* @__PURE__ */ React6.createElement(DialogOverlay, { className: classNames == null ? void 0 : classNames.overlay }), /* @__PURE__ */ React6.createElement(
|
397
|
+
DialogPrimitive.Content,
|
413
398
|
{
|
399
|
+
onPointerDownOutside: (e) => {
|
400
|
+
if (persist) {
|
401
|
+
e.preventDefault();
|
402
|
+
}
|
403
|
+
},
|
404
|
+
ref,
|
414
405
|
className: cn(
|
415
|
-
"hawa-
|
416
|
-
|
417
|
-
)
|
406
|
+
"hawa-fixed hawa-left-[50%] hawa-top-[50%] hawa-z-50 hawa-grid hawa-w-[90%] hawa-max-w-lg hawa-translate-x-[-50%] hawa-translate-y-[-50%] hawa-gap-4 hawa-border hawa-bg-background hawa-p-6 hawa-shadow-lg hawa-transition-all hawa-duration-200 data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[state=closed]:hawa-slide-out-to-left-1/2 data-[state=closed]:hawa-slide-out-to-top-[48%] data-[state=open]:hawa-slide-in-from-left-1/2 data-[state=open]:hawa-slide-in-from-top-[48%] hawa-rounded md:hawa-w-full",
|
407
|
+
className
|
408
|
+
),
|
409
|
+
...props
|
418
410
|
},
|
419
|
-
|
420
|
-
|
411
|
+
children,
|
412
|
+
!hideCloseButton && /* @__PURE__ */ React6.createElement(
|
413
|
+
DialogPrimitive.Close,
|
421
414
|
{
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
415
|
+
className: cn(
|
416
|
+
"hawa-absolute hawa-top-4 hawa-rounded hawa-opacity-70 hawa-ring-offset-background hawa-transition-opacity hover:hawa-opacity-100 focus:hawa-outline-none focus:hawa-ring-2 focus:hawa-ring-ring focus:hawa-ring-offset-2 disabled:hawa-pointer-events-none data-[state=open]:hawa-bg-accent data-[state=open]:hawa-text-muted-foreground",
|
417
|
+
props.dir === "rtl" ? " hawa-left-4" : " hawa-right-4",
|
418
|
+
classNames == null ? void 0 : classNames.closeButton
|
419
|
+
)
|
427
420
|
},
|
428
421
|
/* @__PURE__ */ React6.createElement(
|
429
|
-
"
|
422
|
+
"svg",
|
430
423
|
{
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
424
|
+
"aria-label": "Close Icon",
|
425
|
+
"aria-hidden": "true",
|
426
|
+
className: "hawa-h-5 hawa-w-5",
|
427
|
+
fill: "currentColor",
|
428
|
+
viewBox: "0 0 20 20"
|
429
|
+
},
|
430
|
+
/* @__PURE__ */ React6.createElement(
|
431
|
+
"path",
|
432
|
+
{
|
433
|
+
fillRule: "evenodd",
|
434
|
+
d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
|
435
|
+
clipRule: "evenodd"
|
436
|
+
}
|
437
|
+
)
|
438
|
+
),
|
439
|
+
/* @__PURE__ */ React6.createElement("span", { className: "hawa-sr-only" }, "Close")
|
440
|
+
)
|
441
|
+
))
|
442
|
+
);
|
440
443
|
var DialogCarouselContent = React6.forwardRef(
|
441
444
|
({
|
442
445
|
className,
|
package/dist/index.d.mts
CHANGED
@@ -174,6 +174,7 @@ interface DropdownMenuProps {
|
|
174
174
|
trigger?: string;
|
175
175
|
content?: string;
|
176
176
|
item?: string;
|
177
|
+
separator?: string;
|
177
178
|
};
|
178
179
|
className?: ExtendedDropdownMenuContentProps["className"];
|
179
180
|
triggerClassname?: ExtendedDropdownMenuTriggerProps["className"];
|
@@ -358,6 +359,11 @@ declare const DialogContent: React$1.ForwardRefExoticComponent<Omit<SheetPrimiti
|
|
358
359
|
persist?: boolean | undefined;
|
359
360
|
hideCloseButton?: boolean | undefined;
|
360
361
|
container?: HTMLElement | undefined;
|
362
|
+
classNames?: {
|
363
|
+
content?: string | undefined;
|
364
|
+
overlay?: string | undefined;
|
365
|
+
closeButton?: string | undefined;
|
366
|
+
} | undefined;
|
361
367
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
362
368
|
declare const DialogCarouselContent: React$1.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
363
369
|
hideCloseButton?: boolean | undefined;
|
package/dist/index.d.ts
CHANGED
@@ -174,6 +174,7 @@ interface DropdownMenuProps {
|
|
174
174
|
trigger?: string;
|
175
175
|
content?: string;
|
176
176
|
item?: string;
|
177
|
+
separator?: string;
|
177
178
|
};
|
178
179
|
className?: ExtendedDropdownMenuContentProps["className"];
|
179
180
|
triggerClassname?: ExtendedDropdownMenuTriggerProps["className"];
|
@@ -358,6 +359,11 @@ declare const DialogContent: React$1.ForwardRefExoticComponent<Omit<SheetPrimiti
|
|
358
359
|
persist?: boolean | undefined;
|
359
360
|
hideCloseButton?: boolean | undefined;
|
360
361
|
container?: HTMLElement | undefined;
|
362
|
+
classNames?: {
|
363
|
+
content?: string | undefined;
|
364
|
+
overlay?: string | undefined;
|
365
|
+
closeButton?: string | undefined;
|
366
|
+
} | undefined;
|
361
367
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
362
368
|
declare const DialogCarouselContent: React$1.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
363
369
|
hideCloseButton?: boolean | undefined;
|
package/dist/index.js
CHANGED
@@ -958,7 +958,13 @@ var DropdownMenu = ({
|
|
958
958
|
var _a;
|
959
959
|
const ItemLinkComponent = item.slug ? LinkComponent : "a";
|
960
960
|
if (item.itemType === "separator") {
|
961
|
-
return /* @__PURE__ */ React5.createElement(
|
961
|
+
return /* @__PURE__ */ React5.createElement(
|
962
|
+
DropdownMenuSeparator,
|
963
|
+
{
|
964
|
+
key: index,
|
965
|
+
className: classNames == null ? void 0 : classNames.separator
|
966
|
+
}
|
967
|
+
);
|
962
968
|
} else if (item.itemType === "label") {
|
963
969
|
return /* @__PURE__ */ React5.createElement(DropdownMenuLabel, { key: index }, item.label);
|
964
970
|
} else if (item.itemType === "radio") {
|
@@ -1970,51 +1976,54 @@ var DialogOverlay = React14.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
1970
1976
|
...props
|
1971
1977
|
}
|
1972
1978
|
));
|
1973
|
-
var DialogContent = React14.forwardRef(
|
1974
|
-
|
1975
|
-
|
1976
|
-
onPointerDownOutside: (e) => {
|
1977
|
-
if (persist) {
|
1978
|
-
e.preventDefault();
|
1979
|
-
}
|
1980
|
-
},
|
1981
|
-
ref,
|
1982
|
-
className: cn(
|
1983
|
-
"hawa-fixed hawa-left-[50%] hawa-top-[50%] hawa-z-50 hawa-grid hawa-w-[90%] hawa-max-w-lg hawa-translate-x-[-50%] hawa-translate-y-[-50%] hawa-gap-4 hawa-border hawa-bg-background hawa-p-6 hawa-shadow-lg hawa-transition-all hawa-duration-200 data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[state=closed]:hawa-slide-out-to-left-1/2 data-[state=closed]:hawa-slide-out-to-top-[48%] data-[state=open]:hawa-slide-in-from-left-1/2 data-[state=open]:hawa-slide-in-from-top-[48%] hawa-rounded md:hawa-w-full",
|
1984
|
-
className
|
1985
|
-
),
|
1986
|
-
...props
|
1987
|
-
},
|
1988
|
-
children,
|
1989
|
-
!hideCloseButton && /* @__PURE__ */ React14.createElement(
|
1990
|
-
DialogPrimitive.Close,
|
1979
|
+
var DialogContent = React14.forwardRef(
|
1980
|
+
({ className, classNames, children, persist, hideCloseButton, ...props }, ref) => /* @__PURE__ */ React14.createElement(DialogPortal, { container: props.container }, /* @__PURE__ */ React14.createElement(DialogOverlay, { className: classNames == null ? void 0 : classNames.overlay }), /* @__PURE__ */ React14.createElement(
|
1981
|
+
DialogPrimitive.Content,
|
1991
1982
|
{
|
1983
|
+
onPointerDownOutside: (e) => {
|
1984
|
+
if (persist) {
|
1985
|
+
e.preventDefault();
|
1986
|
+
}
|
1987
|
+
},
|
1988
|
+
ref,
|
1992
1989
|
className: cn(
|
1993
|
-
"hawa-
|
1994
|
-
|
1995
|
-
)
|
1990
|
+
"hawa-fixed hawa-left-[50%] hawa-top-[50%] hawa-z-50 hawa-grid hawa-w-[90%] hawa-max-w-lg hawa-translate-x-[-50%] hawa-translate-y-[-50%] hawa-gap-4 hawa-border hawa-bg-background hawa-p-6 hawa-shadow-lg hawa-transition-all hawa-duration-200 data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[state=closed]:hawa-slide-out-to-left-1/2 data-[state=closed]:hawa-slide-out-to-top-[48%] data-[state=open]:hawa-slide-in-from-left-1/2 data-[state=open]:hawa-slide-in-from-top-[48%] hawa-rounded md:hawa-w-full",
|
1991
|
+
className
|
1992
|
+
),
|
1993
|
+
...props
|
1996
1994
|
},
|
1997
|
-
|
1998
|
-
|
1995
|
+
children,
|
1996
|
+
!hideCloseButton && /* @__PURE__ */ React14.createElement(
|
1997
|
+
DialogPrimitive.Close,
|
1999
1998
|
{
|
2000
|
-
|
2001
|
-
|
2002
|
-
|
2003
|
-
|
2004
|
-
|
1999
|
+
className: cn(
|
2000
|
+
"hawa-absolute hawa-top-4 hawa-rounded hawa-opacity-70 hawa-ring-offset-background hawa-transition-opacity hover:hawa-opacity-100 focus:hawa-outline-none focus:hawa-ring-2 focus:hawa-ring-ring focus:hawa-ring-offset-2 disabled:hawa-pointer-events-none data-[state=open]:hawa-bg-accent data-[state=open]:hawa-text-muted-foreground",
|
2001
|
+
props.dir === "rtl" ? " hawa-left-4" : " hawa-right-4",
|
2002
|
+
classNames == null ? void 0 : classNames.closeButton
|
2003
|
+
)
|
2005
2004
|
},
|
2006
2005
|
/* @__PURE__ */ React14.createElement(
|
2007
|
-
"
|
2006
|
+
"svg",
|
2008
2007
|
{
|
2009
|
-
|
2010
|
-
|
2011
|
-
|
2012
|
-
|
2013
|
-
|
2014
|
-
|
2015
|
-
|
2016
|
-
|
2017
|
-
|
2008
|
+
"aria-label": "Close Icon",
|
2009
|
+
"aria-hidden": "true",
|
2010
|
+
className: "hawa-h-5 hawa-w-5",
|
2011
|
+
fill: "currentColor",
|
2012
|
+
viewBox: "0 0 20 20"
|
2013
|
+
},
|
2014
|
+
/* @__PURE__ */ React14.createElement(
|
2015
|
+
"path",
|
2016
|
+
{
|
2017
|
+
fillRule: "evenodd",
|
2018
|
+
d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
|
2019
|
+
clipRule: "evenodd"
|
2020
|
+
}
|
2021
|
+
)
|
2022
|
+
),
|
2023
|
+
/* @__PURE__ */ React14.createElement("span", { className: "hawa-sr-only" }, "Close")
|
2024
|
+
)
|
2025
|
+
))
|
2026
|
+
);
|
2018
2027
|
var DialogCarouselContent = React14.forwardRef(
|
2019
2028
|
({
|
2020
2029
|
className,
|
package/dist/index.mjs
CHANGED
@@ -709,7 +709,13 @@ var DropdownMenu = ({
|
|
709
709
|
var _a;
|
710
710
|
const ItemLinkComponent = item.slug ? LinkComponent : "a";
|
711
711
|
if (item.itemType === "separator") {
|
712
|
-
return /* @__PURE__ */ React5.createElement(
|
712
|
+
return /* @__PURE__ */ React5.createElement(
|
713
|
+
DropdownMenuSeparator,
|
714
|
+
{
|
715
|
+
key: index,
|
716
|
+
className: classNames == null ? void 0 : classNames.separator
|
717
|
+
}
|
718
|
+
);
|
713
719
|
} else if (item.itemType === "label") {
|
714
720
|
return /* @__PURE__ */ React5.createElement(DropdownMenuLabel, { key: index }, item.label);
|
715
721
|
} else if (item.itemType === "radio") {
|
@@ -1721,51 +1727,54 @@ var DialogOverlay = React14.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
1721
1727
|
...props
|
1722
1728
|
}
|
1723
1729
|
));
|
1724
|
-
var DialogContent = React14.forwardRef(
|
1725
|
-
|
1726
|
-
|
1727
|
-
onPointerDownOutside: (e) => {
|
1728
|
-
if (persist) {
|
1729
|
-
e.preventDefault();
|
1730
|
-
}
|
1731
|
-
},
|
1732
|
-
ref,
|
1733
|
-
className: cn(
|
1734
|
-
"hawa-fixed hawa-left-[50%] hawa-top-[50%] hawa-z-50 hawa-grid hawa-w-[90%] hawa-max-w-lg hawa-translate-x-[-50%] hawa-translate-y-[-50%] hawa-gap-4 hawa-border hawa-bg-background hawa-p-6 hawa-shadow-lg hawa-transition-all hawa-duration-200 data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[state=closed]:hawa-slide-out-to-left-1/2 data-[state=closed]:hawa-slide-out-to-top-[48%] data-[state=open]:hawa-slide-in-from-left-1/2 data-[state=open]:hawa-slide-in-from-top-[48%] hawa-rounded md:hawa-w-full",
|
1735
|
-
className
|
1736
|
-
),
|
1737
|
-
...props
|
1738
|
-
},
|
1739
|
-
children,
|
1740
|
-
!hideCloseButton && /* @__PURE__ */ React14.createElement(
|
1741
|
-
DialogPrimitive.Close,
|
1730
|
+
var DialogContent = React14.forwardRef(
|
1731
|
+
({ className, classNames, children, persist, hideCloseButton, ...props }, ref) => /* @__PURE__ */ React14.createElement(DialogPortal, { container: props.container }, /* @__PURE__ */ React14.createElement(DialogOverlay, { className: classNames == null ? void 0 : classNames.overlay }), /* @__PURE__ */ React14.createElement(
|
1732
|
+
DialogPrimitive.Content,
|
1742
1733
|
{
|
1734
|
+
onPointerDownOutside: (e) => {
|
1735
|
+
if (persist) {
|
1736
|
+
e.preventDefault();
|
1737
|
+
}
|
1738
|
+
},
|
1739
|
+
ref,
|
1743
1740
|
className: cn(
|
1744
|
-
"hawa-
|
1745
|
-
|
1746
|
-
)
|
1741
|
+
"hawa-fixed hawa-left-[50%] hawa-top-[50%] hawa-z-50 hawa-grid hawa-w-[90%] hawa-max-w-lg hawa-translate-x-[-50%] hawa-translate-y-[-50%] hawa-gap-4 hawa-border hawa-bg-background hawa-p-6 hawa-shadow-lg hawa-transition-all hawa-duration-200 data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[state=closed]:hawa-slide-out-to-left-1/2 data-[state=closed]:hawa-slide-out-to-top-[48%] data-[state=open]:hawa-slide-in-from-left-1/2 data-[state=open]:hawa-slide-in-from-top-[48%] hawa-rounded md:hawa-w-full",
|
1742
|
+
className
|
1743
|
+
),
|
1744
|
+
...props
|
1747
1745
|
},
|
1748
|
-
|
1749
|
-
|
1746
|
+
children,
|
1747
|
+
!hideCloseButton && /* @__PURE__ */ React14.createElement(
|
1748
|
+
DialogPrimitive.Close,
|
1750
1749
|
{
|
1751
|
-
|
1752
|
-
|
1753
|
-
|
1754
|
-
|
1755
|
-
|
1750
|
+
className: cn(
|
1751
|
+
"hawa-absolute hawa-top-4 hawa-rounded hawa-opacity-70 hawa-ring-offset-background hawa-transition-opacity hover:hawa-opacity-100 focus:hawa-outline-none focus:hawa-ring-2 focus:hawa-ring-ring focus:hawa-ring-offset-2 disabled:hawa-pointer-events-none data-[state=open]:hawa-bg-accent data-[state=open]:hawa-text-muted-foreground",
|
1752
|
+
props.dir === "rtl" ? " hawa-left-4" : " hawa-right-4",
|
1753
|
+
classNames == null ? void 0 : classNames.closeButton
|
1754
|
+
)
|
1756
1755
|
},
|
1757
1756
|
/* @__PURE__ */ React14.createElement(
|
1758
|
-
"
|
1757
|
+
"svg",
|
1759
1758
|
{
|
1760
|
-
|
1761
|
-
|
1762
|
-
|
1763
|
-
|
1764
|
-
|
1765
|
-
|
1766
|
-
|
1767
|
-
|
1768
|
-
|
1759
|
+
"aria-label": "Close Icon",
|
1760
|
+
"aria-hidden": "true",
|
1761
|
+
className: "hawa-h-5 hawa-w-5",
|
1762
|
+
fill: "currentColor",
|
1763
|
+
viewBox: "0 0 20 20"
|
1764
|
+
},
|
1765
|
+
/* @__PURE__ */ React14.createElement(
|
1766
|
+
"path",
|
1767
|
+
{
|
1768
|
+
fillRule: "evenodd",
|
1769
|
+
d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
|
1770
|
+
clipRule: "evenodd"
|
1771
|
+
}
|
1772
|
+
)
|
1773
|
+
),
|
1774
|
+
/* @__PURE__ */ React14.createElement("span", { className: "hawa-sr-only" }, "Close")
|
1775
|
+
)
|
1776
|
+
))
|
1777
|
+
);
|
1769
1778
|
var DialogCarouselContent = React14.forwardRef(
|
1770
1779
|
({
|
1771
1780
|
className,
|
package/dist/layout/index.d.mts
CHANGED
@@ -2,7 +2,7 @@ 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
4
|
import { C as ChipColors } from '../Chip-CGl24Kd9.mjs';
|
5
|
-
import { M as MenuItemType } from '../DropdownMenu-
|
5
|
+
import { M as MenuItemType } from '../DropdownMenu-B3cTLPDi.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
@@ -2,7 +2,7 @@ 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
4
|
import { C as ChipColors } from '../Chip-Cato49ar.js';
|
5
|
-
import { M as MenuItemType } from '../DropdownMenu-
|
5
|
+
import { M as MenuItemType } from '../DropdownMenu-BO1TNMm5.js';
|
6
6
|
import * as MenubarPrimitive from '@radix-ui/react-menubar';
|
7
7
|
import '@radix-ui/react-dropdown-menu';
|
8
8
|
|
package/dist/layout/index.js
CHANGED
@@ -1393,7 +1393,13 @@ var DropdownMenu = ({
|
|
1393
1393
|
var _a;
|
1394
1394
|
const ItemLinkComponent = item.slug ? LinkComponent : "a";
|
1395
1395
|
if (item.itemType === "separator") {
|
1396
|
-
return /* @__PURE__ */ React13.createElement(
|
1396
|
+
return /* @__PURE__ */ React13.createElement(
|
1397
|
+
DropdownMenuSeparator,
|
1398
|
+
{
|
1399
|
+
key: index,
|
1400
|
+
className: classNames == null ? void 0 : classNames.separator
|
1401
|
+
}
|
1402
|
+
);
|
1397
1403
|
} else if (item.itemType === "label") {
|
1398
1404
|
return /* @__PURE__ */ React13.createElement(DropdownMenuLabel, { key: index }, item.label);
|
1399
1405
|
} else if (item.itemType === "radio") {
|
package/dist/layout/index.mjs
CHANGED
@@ -3,7 +3,7 @@ import {
|
|
3
3
|
Sheet,
|
4
4
|
SheetContent,
|
5
5
|
SheetTrigger
|
6
|
-
} from "../chunk-
|
6
|
+
} from "../chunk-SL4ONYNR.mjs";
|
7
7
|
import {
|
8
8
|
Button,
|
9
9
|
Card,
|
@@ -16,7 +16,7 @@ import {
|
|
16
16
|
Skeleton,
|
17
17
|
Tooltip,
|
18
18
|
cn
|
19
|
-
} from "../chunk-
|
19
|
+
} from "../chunk-VE7EQ6VH.mjs";
|
20
20
|
import {
|
21
21
|
useBreakpoint,
|
22
22
|
useClickOutside
|
@@ -301,7 +301,13 @@ var DropdownMenu = ({
|
|
301
301
|
var _a;
|
302
302
|
const ItemLinkComponent = item.slug ? LinkComponent : "a";
|
303
303
|
if (item.itemType === "separator") {
|
304
|
-
return /* @__PURE__ */ React.createElement(
|
304
|
+
return /* @__PURE__ */ React.createElement(
|
305
|
+
DropdownMenuSeparator,
|
306
|
+
{
|
307
|
+
key: index,
|
308
|
+
className: classNames == null ? void 0 : classNames.separator
|
309
|
+
}
|
310
|
+
);
|
305
311
|
} else if (item.itemType === "label") {
|
306
312
|
return /* @__PURE__ */ React.createElement(DropdownMenuLabel, { key: index }, item.label);
|
307
313
|
} else if (item.itemType === "radio") {
|