@sikka/hawa 0.35.2-next → 0.35.4-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-K3ztliYc.d.mts → DropdownMenu-BYiPSEYy.d.mts} +1 -0
- package/dist/{DropdownMenu-CJblb-9q.d.ts → DropdownMenu-ChxqadLu.d.ts} +1 -0
- package/dist/appLayout/index.js +53 -43
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs +15 -5
- package/dist/appLayout/index.mjs.map +1 -1
- package/dist/appTopbar/index.js +28 -19
- package/dist/appTopbar/index.js.map +1 -1
- package/dist/appTopbar/index.mjs +14 -5
- 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 +72 -63
- package/dist/blocks/index.mjs +2 -2
- package/dist/blocks/pricing/index.js +75 -74
- package/dist/blocks/pricing/index.mjs +2 -1
- package/dist/{chunk-FY7BKFH7.mjs → chunk-G7JHUC5N.mjs} +14 -4
- package/dist/{chunk-WVMMGOXW.mjs → chunk-HSRW7X3Z.mjs} +1 -1
- package/dist/{chunk-Y6XTMPVO.mjs → chunk-TERP5K6R.mjs} +1 -1
- package/dist/dataTable/index.js +27 -18
- package/dist/dataTable/index.js.map +1 -1
- package/dist/dataTable/index.mjs +14 -5
- package/dist/dataTable/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 +14 -4
- package/dist/dropdownMenu/index.js.map +1 -1
- package/dist/dropdownMenu/index.mjs +14 -4
- package/dist/dropdownMenu/index.mjs.map +1 -1
- package/dist/elements/index.d.mts +1 -1
- package/dist/elements/index.d.ts +1 -1
- package/dist/elements/index.js +381 -371
- package/dist/elements/index.mjs +3 -3
- package/dist/index.css +4 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +821 -810
- package/dist/index.mjs +16 -5
- package/dist/layout/index.d.mts +1 -1
- package/dist/layout/index.d.ts +1 -1
- package/dist/layout/index.js +149 -139
- package/dist/layout/index.mjs +4 -3
- package/dist/splitButton/index.js +39 -30
- package/dist/splitButton/index.js.map +1 -1
- package/dist/splitButton/index.mjs +14 -5
- package/dist/splitButton/index.mjs.map +1 -1
- package/dist/stats/index.js +1 -1
- package/dist/stats/index.js.map +1 -1
- package/dist/stats/index.mjs +1 -1
- package/dist/stats/index.mjs.map +1 -1
- package/package.json +2 -1
package/dist/index.mjs
CHANGED
@@ -452,6 +452,7 @@ function Skeleton({
|
|
452
452
|
|
453
453
|
// elements/dropdownMenu/DropdownMenu.tsx
|
454
454
|
import * as React5 from "react";
|
455
|
+
import { Portal } from "@headlessui/react";
|
455
456
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
456
457
|
var DropdownMenuRoot = DropdownMenuPrimitive.Root;
|
457
458
|
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
@@ -506,7 +507,7 @@ var DropdownMenuSubContent = React5.forwardRef(({ className, ...props }, ref) =>
|
|
506
507
|
}
|
507
508
|
));
|
508
509
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
509
|
-
var DropdownMenuContent = React5.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React5.createElement(
|
510
|
+
var DropdownMenuContent = React5.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React5.createElement(Portal, null, /* @__PURE__ */ React5.createElement(
|
510
511
|
DropdownMenuPrimitive.Content,
|
511
512
|
{
|
512
513
|
ref,
|
@@ -643,6 +644,7 @@ var DropdownMenu = ({
|
|
643
644
|
side,
|
644
645
|
className,
|
645
646
|
triggerClassname,
|
647
|
+
triggerProps,
|
646
648
|
align,
|
647
649
|
alignOffset,
|
648
650
|
onItemSelect,
|
@@ -674,8 +676,16 @@ var DropdownMenu = ({
|
|
674
676
|
modal: false,
|
675
677
|
dir: direction
|
676
678
|
},
|
677
|
-
/* @__PURE__ */ React5.createElement(
|
678
|
-
|
679
|
+
/* @__PURE__ */ React5.createElement(
|
680
|
+
DropdownMenuTrigger,
|
681
|
+
{
|
682
|
+
asChild: true,
|
683
|
+
className: triggerClassname,
|
684
|
+
...triggerProps
|
685
|
+
},
|
686
|
+
trigger
|
687
|
+
),
|
688
|
+
/* @__PURE__ */ React5.createElement(Portal, null, /* @__PURE__ */ React5.createElement(
|
679
689
|
DropdownMenuContent,
|
680
690
|
{
|
681
691
|
side,
|
@@ -736,7 +746,7 @@ var DropdownMenu = ({
|
|
736
746
|
},
|
737
747
|
item.icon && item.icon,
|
738
748
|
item.label && item.label
|
739
|
-
), /* @__PURE__ */ React5.createElement(
|
749
|
+
), /* @__PURE__ */ React5.createElement(Portal, null, /* @__PURE__ */ React5.createElement(DropdownMenuSubContent, null, item.subitems.map((subitem, subIndex) => {
|
740
750
|
const SubitemLinkComponent = subitem.slug ? LinkComponent : "a";
|
741
751
|
return /* @__PURE__ */ React5.createElement(
|
742
752
|
DropdownMenuItem,
|
@@ -8582,7 +8592,7 @@ var Stats = ({
|
|
8582
8592
|
negative: "hawa-text-red-600 dark:hawa-text-red-500",
|
8583
8593
|
muted: "hawa-text-muted-foreground"
|
8584
8594
|
};
|
8585
|
-
return /* @__PURE__ */ React73.createElement(Card, { ...props, clickable }, /* @__PURE__ */ React73.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-between hawa-p-4" }, /* @__PURE__ */ React73.createElement(CardTitle, { className: "hawa-text-sm hawa-font-medium" }, label), icon && /* @__PURE__ */ React73.createElement("span", null, icon)), /* @__PURE__ */ React73.createElement(CardContent, { className: "hawa-transition-all" }, isLoading ? /* @__PURE__ */ React73.createElement(Skeleton, { className: "hawa-h-8 hawa-w-3/4" }) : /* @__PURE__ */ React73.createElement("div", { className: "hawa-text-2xl hawa-font-bold" }, number), helperText && /* @__PURE__ */ React73.createElement(
|
8595
|
+
return /* @__PURE__ */ React73.createElement(Card, { ...props, clickable }, /* @__PURE__ */ React73.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-between hawa-p-4 hawa-px-6" }, /* @__PURE__ */ React73.createElement(CardTitle, { className: "hawa-text-sm hawa-font-medium" }, label), icon && /* @__PURE__ */ React73.createElement("span", null, icon)), /* @__PURE__ */ React73.createElement(CardContent, { className: "hawa-transition-all" }, isLoading ? /* @__PURE__ */ React73.createElement(Skeleton, { className: "hawa-h-8 hawa-w-3/4" }) : /* @__PURE__ */ React73.createElement("div", { className: "hawa-text-2xl hawa-font-bold" }, number), helperText && /* @__PURE__ */ React73.createElement(
|
8586
8596
|
"div",
|
8587
8597
|
{
|
8588
8598
|
className: cn(
|
@@ -9060,6 +9070,7 @@ var AppLayout = ({
|
|
9060
9070
|
direction,
|
9061
9071
|
items: props.profileMenuItems || [],
|
9062
9072
|
onItemSelect: (e) => console.log("selecting item ", e),
|
9073
|
+
triggerProps: { asChild: true },
|
9063
9074
|
trigger: /* @__PURE__ */ React77.createElement(
|
9064
9075
|
"div",
|
9065
9076
|
{
|
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-BtgTAs8x.mjs';
|
5
|
-
import { M as MenuItemType } from '../DropdownMenu-
|
5
|
+
import { M as MenuItemType } from '../DropdownMenu-BYiPSEYy.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-DQsP5hFS.js';
|
5
|
-
import { M as MenuItemType } from '../DropdownMenu-
|
5
|
+
import { M as MenuItemType } from '../DropdownMenu-ChxqadLu.js';
|
6
6
|
import * as MenubarPrimitive from '@radix-ui/react-menubar';
|
7
7
|
import '@radix-ui/react-dropdown-menu';
|
8
8
|
|