@sikka/hawa 0.29.12-next → 0.29.14-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/{Radio-aAiNsg4d.d.ts → Radio-MHGhfbpA.d.ts} +3 -2
- package/dist/{Radio-H5-wIs2r.d.mts → Radio-ZM5l4CwH.d.mts} +3 -2
- package/dist/appLayout/index.js +38 -42
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs +38 -42
- package/dist/appLayout/index.mjs.map +1 -1
- package/dist/appTopbar/index.js +36 -32
- package/dist/appTopbar/index.js.map +1 -1
- package/dist/appTopbar/index.mjs +36 -32
- package/dist/appTopbar/index.mjs.map +1 -1
- package/dist/blocks/feedback/index.js +9 -4
- package/dist/blocks/feedback/index.mjs +1 -1
- package/dist/blocks/index.d.mts +1 -1
- package/dist/blocks/index.d.ts +1 -1
- package/dist/blocks/index.js +45 -36
- package/dist/blocks/index.mjs +2 -2
- package/dist/blocks/pricing/index.js +9 -4
- package/dist/blocks/pricing/index.mjs +1 -1
- package/dist/{chunk-WEQJRNY5.mjs → chunk-FVBEK44Y.mjs} +36 -32
- package/dist/{chunk-JESKKO3W.mjs → chunk-JMBRP2WR.mjs} +9 -4
- package/dist/{chunk-BRR5Q4AR.mjs → chunk-XKVSLAKW.mjs} +10 -5
- package/dist/{chunk-LAR4X4XW.mjs → chunk-ZXUDZYZZ.mjs} +1 -1
- package/dist/dataTable/index.js +36 -32
- package/dist/dataTable/index.js.map +1 -1
- package/dist/dataTable/index.mjs +36 -32
- package/dist/dataTable/index.mjs.map +1 -1
- package/dist/dropdownMenu/index.js +36 -32
- package/dist/dropdownMenu/index.js.map +1 -1
- package/dist/dropdownMenu/index.mjs +36 -32
- package/dist/dropdownMenu/index.mjs.map +1 -1
- package/dist/elements/index.d.mts +2 -2
- package/dist/elements/index.d.ts +2 -2
- package/dist/elements/index.js +45 -36
- package/dist/elements/index.mjs +3 -3
- package/dist/index.css +0 -3
- package/dist/index.d.mts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +47 -46
- package/dist/index.mjs +47 -46
- package/dist/interfaceSettings/index.js +9 -4
- package/dist/interfaceSettings/index.js.map +1 -1
- package/dist/interfaceSettings/index.mjs +9 -4
- package/dist/interfaceSettings/index.mjs.map +1 -1
- package/dist/layout/index.js +38 -42
- package/dist/layout/index.mjs +4 -12
- package/dist/radio/index.d.mts +3 -2
- package/dist/radio/index.d.ts +3 -2
- package/dist/radio/index.js +9 -4
- package/dist/radio/index.js.map +1 -1
- package/dist/radio/index.mjs +9 -4
- package/dist/radio/index.mjs.map +1 -1
- package/dist/splitButton/index.js +36 -32
- package/dist/splitButton/index.js.map +1 -1
- package/dist/splitButton/index.mjs +36 -32
- package/dist/splitButton/index.mjs.map +1 -1
- package/package.json +1 -1
@@ -56,12 +56,13 @@ type RadioOptionsTypes = {
|
|
56
56
|
icon?: any;
|
57
57
|
};
|
58
58
|
type RadioTypes = {
|
59
|
+
/** Required to enable selection and differentiate between different Radio instances. */
|
60
|
+
name: string;
|
61
|
+
disabled?: boolean;
|
59
62
|
orientation?: OrientationType;
|
60
63
|
design?: "default" | "tabs" | "cards" | "bordered";
|
61
64
|
width?: "default" | "full" | "none";
|
62
65
|
size?: "default" | "lg" | "sm" | "xs";
|
63
|
-
/** Required to enable selection and differentiate between different Radio instances. */
|
64
|
-
name: string;
|
65
66
|
options: RadioOptionsTypes[];
|
66
67
|
onChange?: any;
|
67
68
|
defaultValue?: any;
|
@@ -56,12 +56,13 @@ type RadioOptionsTypes = {
|
|
56
56
|
icon?: any;
|
57
57
|
};
|
58
58
|
type RadioTypes = {
|
59
|
+
/** Required to enable selection and differentiate between different Radio instances. */
|
60
|
+
name: string;
|
61
|
+
disabled?: boolean;
|
59
62
|
orientation?: OrientationType;
|
60
63
|
design?: "default" | "tabs" | "cards" | "bordered";
|
61
64
|
width?: "default" | "full" | "none";
|
62
65
|
size?: "default" | "lg" | "sm" | "xs";
|
63
|
-
/** Required to enable selection and differentiate between different Radio instances. */
|
64
|
-
name: string;
|
65
66
|
options: RadioOptionsTypes[];
|
66
67
|
onChange?: any;
|
67
68
|
defaultValue?: any;
|
package/dist/appLayout/index.js
CHANGED
@@ -564,6 +564,8 @@ var DropdownMenu = ({
|
|
564
564
|
{
|
565
565
|
side,
|
566
566
|
sideOffset,
|
567
|
+
align,
|
568
|
+
alignOffset,
|
567
569
|
className: cn(
|
568
570
|
className,
|
569
571
|
widthStyles[width],
|
@@ -571,12 +573,11 @@ var DropdownMenu = ({
|
|
571
573
|
),
|
572
574
|
style: {
|
573
575
|
maxHeight: "var(--radix-dropdown-menu-content-available-height)"
|
574
|
-
}
|
575
|
-
align,
|
576
|
-
alignOffset
|
576
|
+
}
|
577
577
|
},
|
578
578
|
header && header,
|
579
579
|
items && items.map((item, index) => {
|
580
|
+
const ItemLinkComponent = item.slug ? LinkComponent : "a";
|
580
581
|
if (item.itemType === "separator") {
|
581
582
|
return /* @__PURE__ */ React3.createElement(DropdownMenuSeparator, { key: index });
|
582
583
|
} else if (item.itemType === "label") {
|
@@ -587,43 +588,46 @@ var DropdownMenu = ({
|
|
587
588
|
return item.subitems ? /* @__PURE__ */ React3.createElement(DropdownMenuSub, { key: index }, /* @__PURE__ */ React3.createElement(
|
588
589
|
DropdownMenuSubTrigger,
|
589
590
|
{
|
590
|
-
|
591
|
-
|
591
|
+
dir: direction,
|
592
|
+
className: cn(sizeStyles[size])
|
592
593
|
},
|
593
594
|
item.icon && item.icon,
|
594
595
|
item.label && item.label
|
595
|
-
), /* @__PURE__ */ React3.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React3.createElement(DropdownMenuSubContent, null, item.subitems.map((subitem, subIndex) =>
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
596
|
+
), /* @__PURE__ */ React3.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React3.createElement(DropdownMenuSubContent, null, item.subitems.map((subitem, subIndex) => {
|
597
|
+
const SubitemLinkComponent = subitem.slug ? LinkComponent : "a";
|
598
|
+
return /* @__PURE__ */ React3.createElement(
|
599
|
+
DropdownMenuItem,
|
600
|
+
{
|
601
|
+
key: subIndex,
|
602
|
+
LinkComponent: SubitemLinkComponent,
|
603
|
+
slug: subitem.slug,
|
604
|
+
disabled: subitem.disabled,
|
605
|
+
className: cn(
|
606
|
+
sizeStyles[size],
|
607
|
+
!item.icon && !item.label ? "hawa-px-0 hawa-py-0 focus:hawa-bg-transparent" : "focus:hawa-bg-accent"
|
608
|
+
),
|
609
|
+
onMouseDown: (event) => {
|
610
|
+
if (event.button === 1 || event.button === 0 && event.ctrlKey) {
|
611
|
+
event.preventDefault();
|
612
|
+
if (subitem.onMiddleClick) {
|
613
|
+
subitem.onMiddleClick(item.value);
|
614
|
+
}
|
615
|
+
}
|
616
|
+
},
|
617
|
+
onSelect: () => {
|
618
|
+
subitem.action && subitem.action();
|
619
|
+
if (onItemSelect) {
|
620
|
+
onItemSelect(subitem.value);
|
605
621
|
}
|
606
622
|
}
|
607
623
|
},
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
),
|
613
|
-
disabled: subitem.disabled,
|
614
|
-
onSelect: () => {
|
615
|
-
subitem.action && subitem.action();
|
616
|
-
if (onItemSelect) {
|
617
|
-
onItemSelect(subitem.value);
|
618
|
-
}
|
619
|
-
}
|
620
|
-
},
|
621
|
-
subitem.icon && subitem.icon,
|
622
|
-
subitem.label && subitem.label
|
623
|
-
))))) : /* @__PURE__ */ React3.createElement(
|
624
|
+
subitem.icon && subitem.icon,
|
625
|
+
subitem.label && subitem.label
|
626
|
+
);
|
627
|
+
})))) : /* @__PURE__ */ React3.createElement(
|
624
628
|
DropdownMenuItem,
|
625
629
|
{
|
626
|
-
LinkComponent:
|
630
|
+
LinkComponent: ItemLinkComponent,
|
627
631
|
slug: item.slug,
|
628
632
|
key: index,
|
629
633
|
disabled: item.disabled,
|
@@ -1059,16 +1063,8 @@ var AppLayout = ({
|
|
1059
1063
|
let closeDrawerWidth = 56;
|
1060
1064
|
let openDrawerWidth = 200;
|
1061
1065
|
let drawerSizeStyle = {
|
1062
|
-
opened: {
|
1063
|
-
|
1064
|
-
md: openDrawerWidth,
|
1065
|
-
lg: "250"
|
1066
|
-
},
|
1067
|
-
closed: {
|
1068
|
-
sm: closeDrawerWidth,
|
1069
|
-
md: closeDrawerWidth,
|
1070
|
-
lg: closeDrawerWidth
|
1071
|
-
}
|
1066
|
+
opened: { sm: "100", md: openDrawerWidth, lg: "250" },
|
1067
|
+
closed: { sm: closeDrawerWidth, md: closeDrawerWidth, lg: closeDrawerWidth }
|
1072
1068
|
};
|
1073
1069
|
const ref = (0, import_react4.useRef)(null);
|
1074
1070
|
const isRTL = direction === "rtl";
|