@sikka/hawa 0.7.15-next → 0.7.17-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/index.css +0 -4
- package/dist/index.d.mts +8 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js +17 -29
- package/dist/index.mjs +115 -102
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -1718,10 +1718,6 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1718
1718
|
--tw-bg-opacity: 1;
|
|
1719
1719
|
background-color: rgb(219 234 254 / var(--tw-bg-opacity));
|
|
1720
1720
|
}
|
|
1721
|
-
.hawa-bg-blue-400 {
|
|
1722
|
-
--tw-bg-opacity: 1;
|
|
1723
|
-
background-color: rgb(96 165 250 / var(--tw-bg-opacity));
|
|
1724
|
-
}
|
|
1725
1721
|
.hawa-bg-blue-50 {
|
|
1726
1722
|
--tw-bg-opacity: 1;
|
|
1727
1723
|
background-color: rgb(239 246 255 / var(--tw-bg-opacity));
|
package/dist/index.d.mts
CHANGED
|
@@ -220,8 +220,9 @@ declare const Radio: FC<RadioTypes>;
|
|
|
220
220
|
interface SkeletonProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
221
221
|
className?: string;
|
|
222
222
|
animation?: "none" | "pulse" | "shimmer";
|
|
223
|
+
content?: any;
|
|
223
224
|
}
|
|
224
|
-
declare function Skeleton({ className, animation, ...props }: SkeletonProps): React__default.JSX.Element;
|
|
225
|
+
declare function Skeleton({ className, content, animation, ...props }: SkeletonProps): React__default.JSX.Element;
|
|
225
226
|
|
|
226
227
|
type TChipTypes = {
|
|
227
228
|
/** The text inside the chip */
|
|
@@ -322,6 +323,8 @@ interface DropdownMenuProps {
|
|
|
322
323
|
width?: "default" | "sm" | "lg" | "parent";
|
|
323
324
|
size?: "default" | "sm";
|
|
324
325
|
onItemSelect?: any;
|
|
326
|
+
onOpenChange?: any;
|
|
327
|
+
open?: any;
|
|
325
328
|
}
|
|
326
329
|
declare const DropdownMenu: React$1.FC<DropdownMenuProps>;
|
|
327
330
|
|
|
@@ -1124,6 +1127,10 @@ declare const FeedbackEmoji: FC<ComponentTypes>;
|
|
|
1124
1127
|
|
|
1125
1128
|
type FeedbackFormType = {
|
|
1126
1129
|
onSubmit: (e: any) => void;
|
|
1130
|
+
requestTypes?: {
|
|
1131
|
+
label: string;
|
|
1132
|
+
value: any;
|
|
1133
|
+
}[];
|
|
1127
1134
|
texts: {
|
|
1128
1135
|
requestType?: string;
|
|
1129
1136
|
requestTypeRequired?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -220,8 +220,9 @@ declare const Radio: FC<RadioTypes>;
|
|
|
220
220
|
interface SkeletonProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
221
221
|
className?: string;
|
|
222
222
|
animation?: "none" | "pulse" | "shimmer";
|
|
223
|
+
content?: any;
|
|
223
224
|
}
|
|
224
|
-
declare function Skeleton({ className, animation, ...props }: SkeletonProps): React__default.JSX.Element;
|
|
225
|
+
declare function Skeleton({ className, content, animation, ...props }: SkeletonProps): React__default.JSX.Element;
|
|
225
226
|
|
|
226
227
|
type TChipTypes = {
|
|
227
228
|
/** The text inside the chip */
|
|
@@ -322,6 +323,8 @@ interface DropdownMenuProps {
|
|
|
322
323
|
width?: "default" | "sm" | "lg" | "parent";
|
|
323
324
|
size?: "default" | "sm";
|
|
324
325
|
onItemSelect?: any;
|
|
326
|
+
onOpenChange?: any;
|
|
327
|
+
open?: any;
|
|
325
328
|
}
|
|
326
329
|
declare const DropdownMenu: React$1.FC<DropdownMenuProps>;
|
|
327
330
|
|
|
@@ -1124,6 +1127,10 @@ declare const FeedbackEmoji: FC<ComponentTypes>;
|
|
|
1124
1127
|
|
|
1125
1128
|
type FeedbackFormType = {
|
|
1126
1129
|
onSubmit: (e: any) => void;
|
|
1130
|
+
requestTypes?: {
|
|
1131
|
+
label: string;
|
|
1132
|
+
value: any;
|
|
1133
|
+
}[];
|
|
1127
1134
|
texts: {
|
|
1128
1135
|
requestType?: string;
|
|
1129
1136
|
requestTypeRequired?: string;
|
package/dist/index.js
CHANGED
|
@@ -1854,8 +1854,9 @@ var Radio = function(_param) {
|
|
|
1854
1854
|
// components/elements/Skeleton.tsx
|
|
1855
1855
|
var import_react11 = __toESM(require("react"));
|
|
1856
1856
|
function Skeleton(_param) {
|
|
1857
|
-
var className = _param.className, _param_animation = _param.animation, animation = _param_animation === void 0 ? "pulse" : _param_animation, props = _object_without_properties(_param, [
|
|
1857
|
+
var className = _param.className, content = _param.content, _param_animation = _param.animation, animation = _param_animation === void 0 ? "pulse" : _param_animation, props = _object_without_properties(_param, [
|
|
1858
1858
|
"className",
|
|
1859
|
+
"content",
|
|
1859
1860
|
"animation"
|
|
1860
1861
|
]);
|
|
1861
1862
|
var animationStyles = {
|
|
@@ -1867,8 +1868,9 @@ function Skeleton(_param) {
|
|
|
1867
1868
|
className: cn(animationStyles[animation], // animation === "pulse"
|
|
1868
1869
|
// ? "hawa-animate-pulse hawa-rounded hawa-bg-muted"
|
|
1869
1870
|
// : "hawa-space-y-5 hawa-rounded hawa-bg-muted hawa-p-4 hawa-relative before:hawa-absolute before:hawa-inset-0 before:hawa--translate-x-full before:hawa-animate-[shimmer_2s_infinite] before:hawa-bg-gradient-to-r before:hawa-from-transparent before:hawa-via-gray-300/40 dark:before:hawa-via-white/10 before:hawa-to-transparent hawa-isolate hawa-overflow-hidden before:hawa-border-t before:hawa-border-rose-100/10",
|
|
1870
|
-
|
|
1871
|
-
|
|
1871
|
+
// "hawa-justify-center hawa-items-center hawa-text-center",
|
|
1872
|
+
content && "hawa-flex hawa-flex-col hawa-justify-center hawa-items-center", className)
|
|
1873
|
+
}, props), content && content);
|
|
1872
1874
|
}
|
|
1873
1875
|
{}// components/elements/Chip.tsx
|
|
1874
1876
|
var import_react12 = __toESM(require("react"));
|
|
@@ -2152,7 +2154,6 @@ var DropdownMenuItem = React24.forwardRef(function(_param, ref) {
|
|
|
2152
2154
|
"className",
|
|
2153
2155
|
"inset"
|
|
2154
2156
|
]);
|
|
2155
|
-
console.log("sdsdsds", props.children);
|
|
2156
2157
|
return /* @__PURE__ */ React24.createElement(DropdownMenuPrimitive.Item, _object_spread({
|
|
2157
2158
|
disabled: props.disabled,
|
|
2158
2159
|
ref: ref,
|
|
@@ -2247,7 +2248,7 @@ var DropdownMenuShortcut = function(_param) {
|
|
|
2247
2248
|
};
|
|
2248
2249
|
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
2249
2250
|
var DropdownMenu = function(param) {
|
|
2250
|
-
var trigger = param.trigger, items = param.items, direction = param.direction, sideOffset = param.sideOffset, side = param.side, className = param.className, triggerClassname = param.triggerClassname, align = param.align, alignOffset = param.alignOffset, onItemSelect = param.onItemSelect, _param_size = param.size, size = _param_size === void 0 ? "default" : _param_size, _param_width = param.width, width = _param_width === void 0 ? "default" : _param_width;
|
|
2251
|
+
var trigger = param.trigger, items = param.items, direction = param.direction, sideOffset = param.sideOffset, side = param.side, className = param.className, triggerClassname = param.triggerClassname, align = param.align, alignOffset = param.alignOffset, onItemSelect = param.onItemSelect, _param_size = param.size, size = _param_size === void 0 ? "default" : _param_size, _param_width = param.width, width = _param_width === void 0 ? "default" : _param_width, onOpenChange = param.onOpenChange, open = param.open;
|
|
2251
2252
|
var widthStyles = {
|
|
2252
2253
|
default: "hawa-min-w-[8rem]",
|
|
2253
2254
|
sm: "hawa-w-fit",
|
|
@@ -2259,6 +2260,8 @@ var DropdownMenu = function(param) {
|
|
|
2259
2260
|
sm: "hawa-text-xs hawa-px-1.5 hawa-py-1.5 "
|
|
2260
2261
|
};
|
|
2261
2262
|
return /* @__PURE__ */ React24.createElement(DropdownMenuRoot, {
|
|
2263
|
+
onOpenChange: onOpenChange,
|
|
2264
|
+
open: open,
|
|
2262
2265
|
modal: false,
|
|
2263
2266
|
dir: direction
|
|
2264
2267
|
}, /* @__PURE__ */ React24.createElement(DropdownMenuTrigger, {
|
|
@@ -6043,7 +6046,7 @@ var NavigationMenuRoot = React47.forwardRef(function(_param, ref) /* @__PURE__ *
|
|
|
6043
6046
|
]);
|
|
6044
6047
|
return React47.createElement(NavigationMenuPrimitive.Root, _object_spread({
|
|
6045
6048
|
ref: ref,
|
|
6046
|
-
className: cn("hawa-relative hawa-
|
|
6049
|
+
className: cn("hawa-relative hawa-z-10 hawa-flex hawa-max-w-max hawa-flex-1 hawa-items-center hawa-justify-center", className)
|
|
6047
6050
|
}, props), children, /* @__PURE__ */ React47.createElement(NavigationMenuViewport, null));
|
|
6048
6051
|
});
|
|
6049
6052
|
NavigationMenuRoot.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
@@ -6053,7 +6056,7 @@ var NavigationMenuList = React47.forwardRef(function(_param, ref) /* @__PURE__ *
|
|
|
6053
6056
|
]);
|
|
6054
6057
|
return React47.createElement(NavigationMenuPrimitive.List, _object_spread({
|
|
6055
6058
|
ref: ref,
|
|
6056
|
-
className: cn("hawa-group hawa-
|
|
6059
|
+
className: cn("hawa-group hawa-flex hawa-flex-1 hawa-list-none hawa-items-center hawa-justify-center hawa-space-x-1", className)
|
|
6057
6060
|
}, props));
|
|
6058
6061
|
});
|
|
6059
6062
|
NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
|
|
@@ -6090,7 +6093,8 @@ var NavigationMenuContent = React47.forwardRef(function(_param, ref) /* @__PURE_
|
|
|
6090
6093
|
]);
|
|
6091
6094
|
return React47.createElement(NavigationMenuPrimitive.Content, _object_spread({
|
|
6092
6095
|
ref: ref,
|
|
6093
|
-
className: cn("hawa-
|
|
6096
|
+
className: cn("hawa-absolute hawa-w-auto hawa-left-0 hawa-top-0 ", // "md:hawa-absolute md:hawa-w-auto hawa-left-0 hawa-top-0 ",
|
|
6097
|
+
// animation
|
|
6094
6098
|
"data-[motion^=from-]:hawa-animate-in data-[motion^=to-]:hawa-animate-out data-[motion^=from-]:hawa-fade-in data-[motion^=to-]:hawa-fade-out data-[motion=from-end]:hawa-slide-in-from-right-52 data-[motion=from-start]:hawa-slide-in-from-left-52 data-[motion=to-end]:hawa-slide-out-to-right-52 data-[motion=to-start]:hawa-slide-out-to-left-52", className)
|
|
6095
6099
|
}, props));
|
|
6096
6100
|
});
|
|
@@ -6101,9 +6105,10 @@ var NavigationMenuViewport = React47.forwardRef(function(_param, ref) /* @__PURE
|
|
|
6101
6105
|
"className"
|
|
6102
6106
|
]);
|
|
6103
6107
|
return React47.createElement("div", {
|
|
6104
|
-
className: cn("hawa-absolute hawa-
|
|
6108
|
+
className: cn("hawa-absolute hawa-w-full hawa-top-full hawa-flex hawa-justify-center")
|
|
6105
6109
|
}, /* @__PURE__ */ React47.createElement(NavigationMenuPrimitive.Viewport, _object_spread({
|
|
6106
|
-
className: cn("hawa-origin-top-center hawa-relative hawa-mt-1.5 hawa-h-[var(--radix-navigation-menu-viewport-height)] hawa-w-full hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-lg data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-90 md:hawa-w-[var(--radix-navigation-menu-viewport-width)]",
|
|
6110
|
+
className: cn("hawa-origin-top-center hawa-relative hawa-mt-1.5 hawa-h-[var(--radix-navigation-menu-viewport-height)] hawa-w-full hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-lg data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-90 ", // "md:hawa-w-[var(--radix-navigation-menu-viewport-width)]",
|
|
6111
|
+
className),
|
|
6107
6112
|
ref: ref
|
|
6108
6113
|
}, props)));
|
|
6109
6114
|
});
|
|
@@ -6125,7 +6130,7 @@ var NavigationMenu = function(props) {
|
|
|
6125
6130
|
return /* @__PURE__ */ React47.createElement(NavigationMenuItem, {
|
|
6126
6131
|
key: i
|
|
6127
6132
|
}, item.content ? /* @__PURE__ */ React47.createElement(React47.Fragment, null, /* @__PURE__ */ React47.createElement(NavigationMenuTrigger, null, item.trigger), /* @__PURE__ */ React47.createElement(NavigationMenuContent, null, item.content)) : /* @__PURE__ */ React47.createElement(NavigationMenuLink, {
|
|
6128
|
-
className: navigationMenuTriggerStyle()
|
|
6133
|
+
className: cn(navigationMenuTriggerStyle(), "hawa-cursor-pointer hawa-select-none")
|
|
6129
6134
|
}, item.trigger));
|
|
6130
6135
|
})));
|
|
6131
6136
|
};
|
|
@@ -7872,24 +7877,7 @@ var FeedbackForm = function(props) {
|
|
|
7872
7877
|
onChange: function(option) {
|
|
7873
7878
|
return field.onChange(option.value);
|
|
7874
7879
|
},
|
|
7875
|
-
options:
|
|
7876
|
-
{
|
|
7877
|
-
label: "Bug",
|
|
7878
|
-
value: "bug"
|
|
7879
|
-
},
|
|
7880
|
-
{
|
|
7881
|
-
label: "Feature",
|
|
7882
|
-
value: "feature"
|
|
7883
|
-
},
|
|
7884
|
-
{
|
|
7885
|
-
label: "Complain",
|
|
7886
|
-
value: "complain"
|
|
7887
|
-
},
|
|
7888
|
-
{
|
|
7889
|
-
label: "Support",
|
|
7890
|
-
value: "support"
|
|
7891
|
-
}
|
|
7892
|
-
],
|
|
7880
|
+
options: props.requestTypes,
|
|
7893
7881
|
helperText: formState.errors.requestType && ((_formState_errors_requestType = formState.errors.requestType) === null || _formState_errors_requestType === void 0 ? void 0 : _formState_errors_requestType.message)
|
|
7894
7882
|
}));
|
|
7895
7883
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -1282,7 +1282,12 @@ var Radio = ({
|
|
|
1282
1282
|
|
|
1283
1283
|
// components/elements/Skeleton.tsx
|
|
1284
1284
|
import React17 from "react";
|
|
1285
|
-
function Skeleton({
|
|
1285
|
+
function Skeleton({
|
|
1286
|
+
className,
|
|
1287
|
+
content,
|
|
1288
|
+
animation = "pulse",
|
|
1289
|
+
...props
|
|
1290
|
+
}) {
|
|
1286
1291
|
const animationStyles = {
|
|
1287
1292
|
none: "hawa-rounded hawa-bg-muted",
|
|
1288
1293
|
pulse: "hawa-animate-pulse hawa-rounded hawa-bg-muted",
|
|
@@ -1296,10 +1301,13 @@ function Skeleton({ className, animation = "pulse", ...props }) {
|
|
|
1296
1301
|
// animation === "pulse"
|
|
1297
1302
|
// ? "hawa-animate-pulse hawa-rounded hawa-bg-muted"
|
|
1298
1303
|
// : "hawa-space-y-5 hawa-rounded hawa-bg-muted hawa-p-4 hawa-relative before:hawa-absolute before:hawa-inset-0 before:hawa--translate-x-full before:hawa-animate-[shimmer_2s_infinite] before:hawa-bg-gradient-to-r before:hawa-from-transparent before:hawa-via-gray-300/40 dark:before:hawa-via-white/10 before:hawa-to-transparent hawa-isolate hawa-overflow-hidden before:hawa-border-t before:hawa-border-rose-100/10",
|
|
1304
|
+
// "hawa-justify-center hawa-items-center hawa-text-center",
|
|
1305
|
+
content && "hawa-flex hawa-flex-col hawa-justify-center hawa-items-center",
|
|
1299
1306
|
className
|
|
1300
1307
|
),
|
|
1301
1308
|
...props
|
|
1302
|
-
}
|
|
1309
|
+
},
|
|
1310
|
+
content && content
|
|
1303
1311
|
);
|
|
1304
1312
|
}
|
|
1305
1313
|
{
|
|
@@ -1640,7 +1648,6 @@ var DropdownMenuContent = React24.forwardRef(({ className, sideOffset = 4, ...pr
|
|
|
1640
1648
|
)));
|
|
1641
1649
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
1642
1650
|
var DropdownMenuItem = React24.forwardRef(({ className, inset, ...props }, ref) => {
|
|
1643
|
-
console.log("sdsdsds", props.children);
|
|
1644
1651
|
return /* @__PURE__ */ React24.createElement(
|
|
1645
1652
|
DropdownMenuPrimitive.Item,
|
|
1646
1653
|
{
|
|
@@ -1766,7 +1773,9 @@ var DropdownMenu = ({
|
|
|
1766
1773
|
alignOffset,
|
|
1767
1774
|
onItemSelect,
|
|
1768
1775
|
size = "default",
|
|
1769
|
-
width = "default"
|
|
1776
|
+
width = "default",
|
|
1777
|
+
onOpenChange,
|
|
1778
|
+
open
|
|
1770
1779
|
}) => {
|
|
1771
1780
|
const widthStyles = {
|
|
1772
1781
|
default: "hawa-min-w-[8rem]",
|
|
@@ -1778,86 +1787,96 @@ var DropdownMenu = ({
|
|
|
1778
1787
|
default: "hawa-px-2 hawa-py-3 ",
|
|
1779
1788
|
sm: "hawa-text-xs hawa-px-1.5 hawa-py-1.5 "
|
|
1780
1789
|
};
|
|
1781
|
-
return /* @__PURE__ */ React24.createElement(
|
|
1782
|
-
|
|
1790
|
+
return /* @__PURE__ */ React24.createElement(
|
|
1791
|
+
DropdownMenuRoot,
|
|
1783
1792
|
{
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
widthStyles[width],
|
|
1789
|
-
"hawa-flex hawa-flex-col hawa-gap-1"
|
|
1790
|
-
),
|
|
1791
|
-
align,
|
|
1792
|
-
alignOffset
|
|
1793
|
+
onOpenChange,
|
|
1794
|
+
open,
|
|
1795
|
+
modal: false,
|
|
1796
|
+
dir: direction
|
|
1793
1797
|
},
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
{
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
e.preventDefault();
|
|
1836
|
-
}
|
|
1837
|
-
if (item.action) {
|
|
1838
|
-
item.action();
|
|
1839
|
-
if (onItemSelect) {
|
|
1840
|
-
onItemSelect(item.value);
|
|
1841
|
-
}
|
|
1842
|
-
} else {
|
|
1798
|
+
/* @__PURE__ */ React24.createElement(DropdownMenuTrigger, { asChild: true, className: triggerClassname }, trigger),
|
|
1799
|
+
/* @__PURE__ */ React24.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React24.createElement(
|
|
1800
|
+
DropdownMenuContent,
|
|
1801
|
+
{
|
|
1802
|
+
side,
|
|
1803
|
+
sideOffset,
|
|
1804
|
+
className: cn(
|
|
1805
|
+
className,
|
|
1806
|
+
widthStyles[width],
|
|
1807
|
+
"hawa-flex hawa-flex-col hawa-gap-1"
|
|
1808
|
+
),
|
|
1809
|
+
align,
|
|
1810
|
+
alignOffset
|
|
1811
|
+
},
|
|
1812
|
+
items && items.map((item, index) => {
|
|
1813
|
+
if (item.itemType === "separator") {
|
|
1814
|
+
return /* @__PURE__ */ React24.createElement(DropdownMenuSeparator, { key: index });
|
|
1815
|
+
} else if (item.itemType === "label") {
|
|
1816
|
+
return /* @__PURE__ */ React24.createElement(DropdownMenuLabel, { key: index }, item.label);
|
|
1817
|
+
} else if (item.itemType === "custom") {
|
|
1818
|
+
return /* @__PURE__ */ React24.createElement("div", { key: index }, item.content);
|
|
1819
|
+
} else {
|
|
1820
|
+
return item.subitems ? /* @__PURE__ */ React24.createElement(DropdownMenuSub, { key: index }, /* @__PURE__ */ React24.createElement(
|
|
1821
|
+
DropdownMenuSubTrigger,
|
|
1822
|
+
{
|
|
1823
|
+
className: cn(sizeStyles[size]),
|
|
1824
|
+
dir: direction
|
|
1825
|
+
},
|
|
1826
|
+
item.icon && item.icon,
|
|
1827
|
+
item.label && item.label
|
|
1828
|
+
), /* @__PURE__ */ React24.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React24.createElement(DropdownMenuSubContent, null, item.subitems.map((subitem, subIndex) => /* @__PURE__ */ React24.createElement(
|
|
1829
|
+
DropdownMenuItem,
|
|
1830
|
+
{
|
|
1831
|
+
key: subIndex,
|
|
1832
|
+
className: cn(
|
|
1833
|
+
sizeStyles[size],
|
|
1834
|
+
!item.icon && !item.label ? "hawa-px-0 hawa-py-0 focus:hawa-bg-transparent" : "focus:hawa-bg-accent"
|
|
1835
|
+
),
|
|
1836
|
+
disabled: subitem.disabled,
|
|
1837
|
+
onSelect: () => {
|
|
1838
|
+
subitem.action && subitem.action();
|
|
1843
1839
|
if (onItemSelect) {
|
|
1844
|
-
onItemSelect(
|
|
1840
|
+
onItemSelect(subitem.value);
|
|
1845
1841
|
}
|
|
1846
1842
|
}
|
|
1847
1843
|
},
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1844
|
+
subitem.icon && subitem.icon,
|
|
1845
|
+
subitem.label && subitem.label
|
|
1846
|
+
))))) : /* @__PURE__ */ React24.createElement(
|
|
1847
|
+
DropdownMenuItem,
|
|
1848
|
+
{
|
|
1849
|
+
key: index,
|
|
1850
|
+
disabled: item.disabled,
|
|
1851
|
+
onSelect: (e) => {
|
|
1852
|
+
if (item.presist) {
|
|
1853
|
+
e.preventDefault();
|
|
1854
|
+
}
|
|
1855
|
+
if (item.action) {
|
|
1856
|
+
item.action();
|
|
1857
|
+
if (onItemSelect) {
|
|
1858
|
+
onItemSelect(item.value);
|
|
1859
|
+
}
|
|
1860
|
+
} else {
|
|
1861
|
+
if (onItemSelect) {
|
|
1862
|
+
onItemSelect(item.value);
|
|
1863
|
+
}
|
|
1864
|
+
}
|
|
1865
|
+
},
|
|
1866
|
+
end: item.end,
|
|
1867
|
+
className: cn(
|
|
1868
|
+
sizeStyles[size],
|
|
1869
|
+
!item.icon && !item.label ? "hawa-px-0 hawa-py-0 focus:hawa-bg-transparent " : "focus:hawa-bg-accent ",
|
|
1870
|
+
item.presist && "focus:hawa-bg-transparent"
|
|
1871
|
+
)
|
|
1872
|
+
},
|
|
1873
|
+
item.icon && item.icon,
|
|
1874
|
+
item.label && item.label
|
|
1875
|
+
);
|
|
1876
|
+
}
|
|
1877
|
+
})
|
|
1878
|
+
))
|
|
1879
|
+
);
|
|
1861
1880
|
};
|
|
1862
1881
|
|
|
1863
1882
|
// components/elements/ColorPicker.tsx
|
|
@@ -5709,7 +5728,7 @@ var NavigationMenuRoot = React47.forwardRef(({ className, children, ...props },
|
|
|
5709
5728
|
{
|
|
5710
5729
|
ref,
|
|
5711
5730
|
className: cn(
|
|
5712
|
-
"hawa-relative hawa-
|
|
5731
|
+
"hawa-relative hawa-z-10 hawa-flex hawa-max-w-max hawa-flex-1 hawa-items-center hawa-justify-center",
|
|
5713
5732
|
className
|
|
5714
5733
|
),
|
|
5715
5734
|
...props
|
|
@@ -5723,7 +5742,7 @@ var NavigationMenuList = React47.forwardRef(({ className, ...props }, ref) => /*
|
|
|
5723
5742
|
{
|
|
5724
5743
|
ref,
|
|
5725
5744
|
className: cn(
|
|
5726
|
-
"hawa-group hawa-
|
|
5745
|
+
"hawa-group hawa-flex hawa-flex-1 hawa-list-none hawa-items-center hawa-justify-center hawa-space-x-1",
|
|
5727
5746
|
className
|
|
5728
5747
|
),
|
|
5729
5748
|
...props
|
|
@@ -5767,7 +5786,8 @@ var NavigationMenuContent = React47.forwardRef(({ className, ...props }, ref) =>
|
|
|
5767
5786
|
{
|
|
5768
5787
|
ref,
|
|
5769
5788
|
className: cn(
|
|
5770
|
-
"hawa-
|
|
5789
|
+
"hawa-absolute hawa-w-auto hawa-left-0 hawa-top-0 ",
|
|
5790
|
+
// "md:hawa-absolute md:hawa-w-auto hawa-left-0 hawa-top-0 ",
|
|
5771
5791
|
// animation
|
|
5772
5792
|
"data-[motion^=from-]:hawa-animate-in data-[motion^=to-]:hawa-animate-out data-[motion^=from-]:hawa-fade-in data-[motion^=to-]:hawa-fade-out data-[motion=from-end]:hawa-slide-in-from-right-52 data-[motion=from-start]:hawa-slide-in-from-left-52 data-[motion=to-end]:hawa-slide-out-to-right-52 data-[motion=to-start]:hawa-slide-out-to-left-52",
|
|
5773
5793
|
className
|
|
@@ -5781,14 +5801,15 @@ var NavigationMenuViewport = React47.forwardRef(({ className, ...props }, ref) =
|
|
|
5781
5801
|
"div",
|
|
5782
5802
|
{
|
|
5783
5803
|
className: cn(
|
|
5784
|
-
"hawa-absolute hawa-
|
|
5804
|
+
"hawa-absolute hawa-w-full hawa-top-full hawa-flex hawa-justify-center"
|
|
5785
5805
|
)
|
|
5786
5806
|
},
|
|
5787
5807
|
/* @__PURE__ */ React47.createElement(
|
|
5788
5808
|
NavigationMenuPrimitive.Viewport,
|
|
5789
5809
|
{
|
|
5790
5810
|
className: cn(
|
|
5791
|
-
"hawa-origin-top-center hawa-relative hawa-mt-1.5 hawa-h-[var(--radix-navigation-menu-viewport-height)] hawa-w-full hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-lg data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-90
|
|
5811
|
+
"hawa-origin-top-center hawa-relative hawa-mt-1.5 hawa-h-[var(--radix-navigation-menu-viewport-height)] hawa-w-full hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-lg data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-90 ",
|
|
5812
|
+
// "md:hawa-w-[var(--radix-navigation-menu-viewport-width)]",
|
|
5792
5813
|
className
|
|
5793
5814
|
),
|
|
5794
5815
|
ref,
|
|
@@ -5811,7 +5832,16 @@ var NavigationMenuIndicator = React47.forwardRef(({ className, ...props }, ref)
|
|
|
5811
5832
|
));
|
|
5812
5833
|
NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
|
|
5813
5834
|
var NavigationMenu = (props) => {
|
|
5814
|
-
return /* @__PURE__ */ React47.createElement(NavigationMenuRoot, null, /* @__PURE__ */ React47.createElement(NavigationMenuList, null, props.items.map((item, i) => /* @__PURE__ */ React47.createElement(NavigationMenuItem, { key: i }, item.content ? /* @__PURE__ */ React47.createElement(React47.Fragment, null, /* @__PURE__ */ React47.createElement(NavigationMenuTrigger, null, item.trigger), /* @__PURE__ */ React47.createElement(NavigationMenuContent, null, item.content)) : /* @__PURE__ */ React47.createElement(
|
|
5835
|
+
return /* @__PURE__ */ React47.createElement(NavigationMenuRoot, null, /* @__PURE__ */ React47.createElement(NavigationMenuList, null, props.items.map((item, i) => /* @__PURE__ */ React47.createElement(NavigationMenuItem, { key: i }, item.content ? /* @__PURE__ */ React47.createElement(React47.Fragment, null, /* @__PURE__ */ React47.createElement(NavigationMenuTrigger, null, item.trigger), /* @__PURE__ */ React47.createElement(NavigationMenuContent, null, item.content)) : /* @__PURE__ */ React47.createElement(
|
|
5836
|
+
NavigationMenuLink,
|
|
5837
|
+
{
|
|
5838
|
+
className: cn(
|
|
5839
|
+
navigationMenuTriggerStyle(),
|
|
5840
|
+
"hawa-cursor-pointer hawa-select-none"
|
|
5841
|
+
)
|
|
5842
|
+
},
|
|
5843
|
+
item.trigger
|
|
5844
|
+
)))));
|
|
5815
5845
|
};
|
|
5816
5846
|
|
|
5817
5847
|
// components/layout/Stats.tsx
|
|
@@ -7722,24 +7752,7 @@ var FeedbackForm = (props) => {
|
|
|
7722
7752
|
{
|
|
7723
7753
|
...field,
|
|
7724
7754
|
onChange: (option) => field.onChange(option.value),
|
|
7725
|
-
options:
|
|
7726
|
-
{
|
|
7727
|
-
label: "Bug",
|
|
7728
|
-
value: "bug"
|
|
7729
|
-
},
|
|
7730
|
-
{
|
|
7731
|
-
label: "Feature",
|
|
7732
|
-
value: "feature"
|
|
7733
|
-
},
|
|
7734
|
-
{
|
|
7735
|
-
label: "Complain",
|
|
7736
|
-
value: "complain"
|
|
7737
|
-
},
|
|
7738
|
-
{
|
|
7739
|
-
label: "Support",
|
|
7740
|
-
value: "support"
|
|
7741
|
-
}
|
|
7742
|
-
],
|
|
7755
|
+
options: props.requestTypes,
|
|
7743
7756
|
helperText: formState.errors.requestType && formState.errors.requestType?.message
|
|
7744
7757
|
}
|
|
7745
7758
|
)
|