@sikka/hawa 0.29.9-next → 0.29.11-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/appLayout/index.js +32 -28
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs +32 -28
- package/dist/appLayout/index.mjs.map +1 -1
- package/dist/appTopbar/index.js +32 -28
- package/dist/appTopbar/index.js.map +1 -1
- package/dist/appTopbar/index.mjs +32 -28
- package/dist/appTopbar/index.mjs.map +1 -1
- package/dist/blocks/index.js +32 -28
- package/dist/blocks/index.mjs +2 -2
- package/dist/blocks/pricing/index.js +1 -1
- package/dist/blocks/pricing/index.mjs +1 -1
- package/dist/{chunk-GUWBWOKE.mjs → chunk-MP2LSO6A.mjs} +32 -28
- package/dist/{chunk-JVTCT7PD.mjs → chunk-NJE5DFGB.mjs} +1 -1
- package/dist/{chunk-KAKN4C2M.mjs → chunk-NZVSTIRD.mjs} +1 -1
- package/dist/dataTable/index.js +32 -28
- package/dist/dataTable/index.js.map +1 -1
- package/dist/dataTable/index.mjs +32 -28
- package/dist/dataTable/index.mjs.map +1 -1
- package/dist/dropdownMenu/index.js +32 -28
- package/dist/dropdownMenu/index.js.map +1 -1
- package/dist/dropdownMenu/index.mjs +32 -28
- package/dist/dropdownMenu/index.mjs.map +1 -1
- package/dist/elements/index.js +32 -28
- package/dist/elements/index.mjs +3 -3
- package/dist/index.js +32 -28
- package/dist/index.mjs +32 -28
- package/dist/layout/index.js +32 -28
- package/dist/layout/index.mjs +2 -2
- package/dist/splitButton/index.js +32 -28
- package/dist/splitButton/index.js.map +1 -1
- package/dist/splitButton/index.mjs +32 -28
- package/dist/splitButton/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/blocks/index.js
CHANGED
@@ -6374,7 +6374,7 @@ var DropdownMenuContent = React48.forwardRef(({ className, sideOffset = 4, ...pr
|
|
6374
6374
|
)));
|
6375
6375
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
6376
6376
|
var DropdownMenuItem = React48.forwardRef(({ className, inset, badged, slug, ...props }, ref) => {
|
6377
|
-
const LinkComponent = props.LinkComponent
|
6377
|
+
const LinkComponent = slug && props.LinkComponent ? props.LinkComponent : "a";
|
6378
6378
|
return /* @__PURE__ */ React48.createElement(LinkComponent, { href: slug }, /* @__PURE__ */ React48.createElement(
|
6379
6379
|
DropdownMenuPrimitive.Item,
|
6380
6380
|
{
|
@@ -6545,6 +6545,7 @@ var DropdownMenu = ({
|
|
6545
6545
|
},
|
6546
6546
|
header && header,
|
6547
6547
|
items && items.map((item, index) => {
|
6548
|
+
var _a;
|
6548
6549
|
if (item.itemType === "separator") {
|
6549
6550
|
return /* @__PURE__ */ React48.createElement(DropdownMenuSeparator, { key: index });
|
6550
6551
|
} else if (item.itemType === "label") {
|
@@ -6560,38 +6561,41 @@ var DropdownMenu = ({
|
|
6560
6561
|
},
|
6561
6562
|
item.icon && item.icon,
|
6562
6563
|
item.label && item.label
|
6563
|
-
), /* @__PURE__ */ React48.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React48.createElement(DropdownMenuSubContent, null, item.subitems.map((subitem, subIndex) =>
|
6564
|
-
|
6565
|
-
|
6566
|
-
|
6567
|
-
|
6568
|
-
|
6569
|
-
|
6570
|
-
|
6571
|
-
if (
|
6572
|
-
|
6564
|
+
), /* @__PURE__ */ React48.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React48.createElement(DropdownMenuSubContent, null, item.subitems.map((subitem, subIndex) => {
|
6565
|
+
var _a2;
|
6566
|
+
return /* @__PURE__ */ React48.createElement(
|
6567
|
+
DropdownMenuItem,
|
6568
|
+
{
|
6569
|
+
LinkComponent: (_a2 = subitem.slug) != null ? _a2 : LinkComponent,
|
6570
|
+
slug: subitem.slug,
|
6571
|
+
onMouseDown: (event) => {
|
6572
|
+
if (event.button === 1 || event.button === 0 && event.ctrlKey) {
|
6573
|
+
event.preventDefault();
|
6574
|
+
if (subitem.onMiddleClick) {
|
6575
|
+
subitem.onMiddleClick(item.value);
|
6576
|
+
}
|
6577
|
+
}
|
6578
|
+
},
|
6579
|
+
key: subIndex,
|
6580
|
+
className: cn(
|
6581
|
+
sizeStyles[size],
|
6582
|
+
!item.icon && !item.label ? "hawa-px-0 hawa-py-0 focus:hawa-bg-transparent" : "focus:hawa-bg-accent"
|
6583
|
+
),
|
6584
|
+
disabled: subitem.disabled,
|
6585
|
+
onSelect: () => {
|
6586
|
+
subitem.action && subitem.action();
|
6587
|
+
if (onItemSelect) {
|
6588
|
+
onItemSelect(subitem.value);
|
6573
6589
|
}
|
6574
6590
|
}
|
6575
6591
|
},
|
6576
|
-
|
6577
|
-
|
6578
|
-
|
6579
|
-
|
6580
|
-
),
|
6581
|
-
disabled: subitem.disabled,
|
6582
|
-
onSelect: () => {
|
6583
|
-
subitem.action && subitem.action();
|
6584
|
-
if (onItemSelect) {
|
6585
|
-
onItemSelect(subitem.value);
|
6586
|
-
}
|
6587
|
-
}
|
6588
|
-
},
|
6589
|
-
subitem.icon && subitem.icon,
|
6590
|
-
subitem.label && subitem.label
|
6591
|
-
))))) : /* @__PURE__ */ React48.createElement(
|
6592
|
+
subitem.icon && subitem.icon,
|
6593
|
+
subitem.label && subitem.label
|
6594
|
+
);
|
6595
|
+
})))) : /* @__PURE__ */ React48.createElement(
|
6592
6596
|
DropdownMenuItem,
|
6593
6597
|
{
|
6594
|
-
LinkComponent: item.slug ?
|
6598
|
+
LinkComponent: (_a = item.slug) != null ? _a : LinkComponent,
|
6595
6599
|
slug: item.slug,
|
6596
6600
|
key: index,
|
6597
6601
|
disabled: item.disabled,
|
package/dist/blocks/index.mjs
CHANGED
@@ -26,7 +26,7 @@ import {
|
|
26
26
|
UncheckMark,
|
27
27
|
VeryBadEmoji,
|
28
28
|
VeryGoodEmoji
|
29
|
-
} from "../chunk-
|
29
|
+
} from "../chunk-NZVSTIRD.mjs";
|
30
30
|
import {
|
31
31
|
Button,
|
32
32
|
Card,
|
@@ -42,7 +42,7 @@ import {
|
|
42
42
|
Skeleton,
|
43
43
|
Tooltip,
|
44
44
|
cn
|
45
|
-
} from "../chunk-
|
45
|
+
} from "../chunk-MP2LSO6A.mjs";
|
46
46
|
import "../chunk-4OOSUQZG.mjs";
|
47
47
|
|
48
48
|
// blocks/auth/AuthButtons.tsx
|
@@ -825,7 +825,7 @@ var DropdownMenuContent = React11.forwardRef(({ className, sideOffset = 4, ...pr
|
|
825
825
|
)));
|
826
826
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
827
827
|
var DropdownMenuItem = React11.forwardRef(({ className, inset, badged, slug, ...props }, ref) => {
|
828
|
-
const LinkComponent = props.LinkComponent
|
828
|
+
const LinkComponent = slug && props.LinkComponent ? props.LinkComponent : "a";
|
829
829
|
return /* @__PURE__ */ React11.createElement(LinkComponent, { href: slug }, /* @__PURE__ */ React11.createElement(
|
830
830
|
DropdownMenuPrimitive.Item,
|
831
831
|
{
|
@@ -238,7 +238,7 @@ var DropdownMenuContent = React5.forwardRef(({ className, sideOffset = 4, ...pro
|
|
238
238
|
)));
|
239
239
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
240
240
|
var DropdownMenuItem = React5.forwardRef(({ className, inset, badged, slug, ...props }, ref) => {
|
241
|
-
const LinkComponent = props.LinkComponent
|
241
|
+
const LinkComponent = slug && props.LinkComponent ? props.LinkComponent : "a";
|
242
242
|
return /* @__PURE__ */ React5.createElement(LinkComponent, { href: slug }, /* @__PURE__ */ React5.createElement(
|
243
243
|
DropdownMenuPrimitive.Item,
|
244
244
|
{
|
@@ -1011,7 +1011,7 @@ var DropdownMenuContent = React8.forwardRef(({ className, sideOffset = 4, ...pro
|
|
1011
1011
|
)));
|
1012
1012
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
1013
1013
|
var DropdownMenuItem = React8.forwardRef(({ className, inset, badged, slug, ...props }, ref) => {
|
1014
|
-
const LinkComponent = props.LinkComponent
|
1014
|
+
const LinkComponent = slug && props.LinkComponent ? props.LinkComponent : "a";
|
1015
1015
|
return /* @__PURE__ */ React8.createElement(LinkComponent, { href: slug }, /* @__PURE__ */ React8.createElement(
|
1016
1016
|
DropdownMenuPrimitive.Item,
|
1017
1017
|
{
|
@@ -1182,6 +1182,7 @@ var DropdownMenu = ({
|
|
1182
1182
|
},
|
1183
1183
|
header && header,
|
1184
1184
|
items && items.map((item, index) => {
|
1185
|
+
var _a;
|
1185
1186
|
if (item.itemType === "separator") {
|
1186
1187
|
return /* @__PURE__ */ React8.createElement(DropdownMenuSeparator, { key: index });
|
1187
1188
|
} else if (item.itemType === "label") {
|
@@ -1197,38 +1198,41 @@ var DropdownMenu = ({
|
|
1197
1198
|
},
|
1198
1199
|
item.icon && item.icon,
|
1199
1200
|
item.label && item.label
|
1200
|
-
), /* @__PURE__ */ React8.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React8.createElement(DropdownMenuSubContent, null, item.subitems.map((subitem, subIndex) =>
|
1201
|
-
|
1202
|
-
|
1203
|
-
|
1204
|
-
|
1205
|
-
|
1206
|
-
|
1207
|
-
|
1208
|
-
if (
|
1209
|
-
|
1201
|
+
), /* @__PURE__ */ React8.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React8.createElement(DropdownMenuSubContent, null, item.subitems.map((subitem, subIndex) => {
|
1202
|
+
var _a2;
|
1203
|
+
return /* @__PURE__ */ React8.createElement(
|
1204
|
+
DropdownMenuItem,
|
1205
|
+
{
|
1206
|
+
LinkComponent: (_a2 = subitem.slug) != null ? _a2 : LinkComponent,
|
1207
|
+
slug: subitem.slug,
|
1208
|
+
onMouseDown: (event) => {
|
1209
|
+
if (event.button === 1 || event.button === 0 && event.ctrlKey) {
|
1210
|
+
event.preventDefault();
|
1211
|
+
if (subitem.onMiddleClick) {
|
1212
|
+
subitem.onMiddleClick(item.value);
|
1213
|
+
}
|
1214
|
+
}
|
1215
|
+
},
|
1216
|
+
key: subIndex,
|
1217
|
+
className: cn(
|
1218
|
+
sizeStyles[size],
|
1219
|
+
!item.icon && !item.label ? "hawa-px-0 hawa-py-0 focus:hawa-bg-transparent" : "focus:hawa-bg-accent"
|
1220
|
+
),
|
1221
|
+
disabled: subitem.disabled,
|
1222
|
+
onSelect: () => {
|
1223
|
+
subitem.action && subitem.action();
|
1224
|
+
if (onItemSelect) {
|
1225
|
+
onItemSelect(subitem.value);
|
1210
1226
|
}
|
1211
1227
|
}
|
1212
1228
|
},
|
1213
|
-
|
1214
|
-
|
1215
|
-
|
1216
|
-
|
1217
|
-
),
|
1218
|
-
disabled: subitem.disabled,
|
1219
|
-
onSelect: () => {
|
1220
|
-
subitem.action && subitem.action();
|
1221
|
-
if (onItemSelect) {
|
1222
|
-
onItemSelect(subitem.value);
|
1223
|
-
}
|
1224
|
-
}
|
1225
|
-
},
|
1226
|
-
subitem.icon && subitem.icon,
|
1227
|
-
subitem.label && subitem.label
|
1228
|
-
))))) : /* @__PURE__ */ React8.createElement(
|
1229
|
+
subitem.icon && subitem.icon,
|
1230
|
+
subitem.label && subitem.label
|
1231
|
+
);
|
1232
|
+
})))) : /* @__PURE__ */ React8.createElement(
|
1229
1233
|
DropdownMenuItem,
|
1230
1234
|
{
|
1231
|
-
LinkComponent: item.slug ?
|
1235
|
+
LinkComponent: (_a = item.slug) != null ? _a : LinkComponent,
|
1232
1236
|
slug: item.slug,
|
1233
1237
|
key: index,
|
1234
1238
|
disabled: item.disabled,
|
package/dist/dataTable/index.js
CHANGED
@@ -408,7 +408,7 @@ var DropdownMenuContent = React3.forwardRef(({ className, sideOffset = 4, ...pro
|
|
408
408
|
)));
|
409
409
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
410
410
|
var DropdownMenuItem = React3.forwardRef(({ className, inset, badged, slug, ...props }, ref) => {
|
411
|
-
const LinkComponent = props.LinkComponent
|
411
|
+
const LinkComponent = slug && props.LinkComponent ? props.LinkComponent : "a";
|
412
412
|
return /* @__PURE__ */ React3.createElement(LinkComponent, { href: slug }, /* @__PURE__ */ React3.createElement(
|
413
413
|
DropdownMenuPrimitive.Item,
|
414
414
|
{
|
@@ -579,6 +579,7 @@ var DropdownMenu = ({
|
|
579
579
|
},
|
580
580
|
header && header,
|
581
581
|
items && items.map((item, index) => {
|
582
|
+
var _a;
|
582
583
|
if (item.itemType === "separator") {
|
583
584
|
return /* @__PURE__ */ React3.createElement(DropdownMenuSeparator, { key: index });
|
584
585
|
} else if (item.itemType === "label") {
|
@@ -594,38 +595,41 @@ var DropdownMenu = ({
|
|
594
595
|
},
|
595
596
|
item.icon && item.icon,
|
596
597
|
item.label && item.label
|
597
|
-
), /* @__PURE__ */ React3.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React3.createElement(DropdownMenuSubContent, null, item.subitems.map((subitem, subIndex) =>
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
if (
|
606
|
-
|
598
|
+
), /* @__PURE__ */ React3.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React3.createElement(DropdownMenuSubContent, null, item.subitems.map((subitem, subIndex) => {
|
599
|
+
var _a2;
|
600
|
+
return /* @__PURE__ */ React3.createElement(
|
601
|
+
DropdownMenuItem,
|
602
|
+
{
|
603
|
+
LinkComponent: (_a2 = subitem.slug) != null ? _a2 : LinkComponent,
|
604
|
+
slug: subitem.slug,
|
605
|
+
onMouseDown: (event) => {
|
606
|
+
if (event.button === 1 || event.button === 0 && event.ctrlKey) {
|
607
|
+
event.preventDefault();
|
608
|
+
if (subitem.onMiddleClick) {
|
609
|
+
subitem.onMiddleClick(item.value);
|
610
|
+
}
|
611
|
+
}
|
612
|
+
},
|
613
|
+
key: subIndex,
|
614
|
+
className: cn(
|
615
|
+
sizeStyles[size],
|
616
|
+
!item.icon && !item.label ? "hawa-px-0 hawa-py-0 focus:hawa-bg-transparent" : "focus:hawa-bg-accent"
|
617
|
+
),
|
618
|
+
disabled: subitem.disabled,
|
619
|
+
onSelect: () => {
|
620
|
+
subitem.action && subitem.action();
|
621
|
+
if (onItemSelect) {
|
622
|
+
onItemSelect(subitem.value);
|
607
623
|
}
|
608
624
|
}
|
609
625
|
},
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
),
|
615
|
-
disabled: subitem.disabled,
|
616
|
-
onSelect: () => {
|
617
|
-
subitem.action && subitem.action();
|
618
|
-
if (onItemSelect) {
|
619
|
-
onItemSelect(subitem.value);
|
620
|
-
}
|
621
|
-
}
|
622
|
-
},
|
623
|
-
subitem.icon && subitem.icon,
|
624
|
-
subitem.label && subitem.label
|
625
|
-
))))) : /* @__PURE__ */ React3.createElement(
|
626
|
+
subitem.icon && subitem.icon,
|
627
|
+
subitem.label && subitem.label
|
628
|
+
);
|
629
|
+
})))) : /* @__PURE__ */ React3.createElement(
|
626
630
|
DropdownMenuItem,
|
627
631
|
{
|
628
|
-
LinkComponent: item.slug ?
|
632
|
+
LinkComponent: (_a = item.slug) != null ? _a : LinkComponent,
|
629
633
|
slug: item.slug,
|
630
634
|
key: index,
|
631
635
|
disabled: item.disabled,
|