@sikka/hawa 0.13.17-next → 0.13.19-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.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -8
- package/dist/index.mjs +3 -4
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1316,7 +1316,7 @@ var DropdownMenuShortcut = function(_param) {
|
|
|
1316
1316
|
};
|
|
1317
1317
|
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
1318
1318
|
var DropdownMenu = function(param) {
|
|
1319
|
-
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;
|
|
1319
|
+
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, header = param.header, onOpenChange = param.onOpenChange, open = param.open;
|
|
1320
1320
|
var widthStyles = {
|
|
1321
1321
|
default: "hawa-min-w-[8rem]",
|
|
1322
1322
|
sm: "hawa-w-fit",
|
|
@@ -1341,7 +1341,7 @@ var DropdownMenu = function(param) {
|
|
|
1341
1341
|
className: cn(className, widthStyles[width], "hawa-flex hawa-flex-col hawa-gap-1"),
|
|
1342
1342
|
align: align,
|
|
1343
1343
|
alignOffset: alignOffset
|
|
1344
|
-
}, items && items.map(function(item, index) {
|
|
1344
|
+
}, header && header, items && items.map(function(item, index) {
|
|
1345
1345
|
if (item.itemType === "separator") {
|
|
1346
1346
|
return /* @__PURE__ */ React7.createElement(DropdownMenuSeparator, {
|
|
1347
1347
|
key: index
|
|
@@ -1559,9 +1559,7 @@ var SplitButton = function(_param) /* @__PURE__ */ {
|
|
|
1559
1559
|
className: cn("hawa-h-fit hawa-flex hawa-justify-center", direction === "rtl" ? "hawa-flex-row-reverse" : "hawa-flex-row")
|
|
1560
1560
|
}, /* @__PURE__ */ React11.createElement(Button, {
|
|
1561
1561
|
variant: variant,
|
|
1562
|
-
onClick:
|
|
1563
|
-
return console.log("btn clicked");
|
|
1564
|
-
},
|
|
1562
|
+
onClick: props.onClick,
|
|
1565
1563
|
className: cn(direction === "rtl" ? "hawa-rounded-r-none" : "hawa-rounded-l-none", props.className)
|
|
1566
1564
|
}, children), /* @__PURE__ */ React11.createElement(DropdownMenu, {
|
|
1567
1565
|
size: "sm",
|
|
@@ -5770,7 +5768,6 @@ var TabsList = React47.forwardRef(function(_param, ref) {
|
|
|
5770
5768
|
"className"
|
|
5771
5769
|
]);
|
|
5772
5770
|
var orientation = React47.useContext(TabsContext).orientation;
|
|
5773
|
-
console.log("orient ", orientation);
|
|
5774
5771
|
return /* @__PURE__ */ React47.createElement(TabsPrimitive.List, _object_spread({
|
|
5775
5772
|
ref: ref,
|
|
5776
5773
|
className: cn("hawa-flex hawa-w-fit hawa-flex-wrap hawa-items-center hawa-justify-start hawa-gap-1 hawa-rounded hawa-border hawa-bg-muted hawa-p-1 hawa-text-muted-foreground dark:hawa-border-primary/10", orientation === "vertical" ? "hawa-flex-col" : "hawa-flex-row", className)
|
|
@@ -8677,7 +8674,6 @@ var FeedbackEmoji = function(props) {
|
|
|
8677
8674
|
return _ts_generator(this, function(_state) {
|
|
8678
8675
|
switch(_state.label){
|
|
8679
8676
|
case 0:
|
|
8680
|
-
console.log("submitting");
|
|
8681
8677
|
if (!feedbackText) return [
|
|
8682
8678
|
3,
|
|
8683
8679
|
6
|
|
@@ -8788,7 +8784,6 @@ var FeedbackEmoji = function(props) {
|
|
|
8788
8784
|
setHelperText(false);
|
|
8789
8785
|
}
|
|
8790
8786
|
setFeedbackText(e.target.value);
|
|
8791
|
-
console.log("changing to", e.target.value);
|
|
8792
8787
|
}
|
|
8793
8788
|
})
|
|
8794
8789
|
}, /* @__PURE__ */ import_react52.default.createElement("span", {
|
package/dist/index.mjs
CHANGED
|
@@ -606,6 +606,7 @@ var DropdownMenu = ({
|
|
|
606
606
|
onItemSelect,
|
|
607
607
|
size = "default",
|
|
608
608
|
width = "default",
|
|
609
|
+
header,
|
|
609
610
|
onOpenChange,
|
|
610
611
|
open
|
|
611
612
|
}) => {
|
|
@@ -641,6 +642,7 @@ var DropdownMenu = ({
|
|
|
641
642
|
align,
|
|
642
643
|
alignOffset
|
|
643
644
|
},
|
|
645
|
+
header && header,
|
|
644
646
|
items && items.map((item, index) => {
|
|
645
647
|
if (item.itemType === "separator") {
|
|
646
648
|
return /* @__PURE__ */ React7.createElement(DropdownMenuSeparator, { key: index });
|
|
@@ -897,7 +899,7 @@ var SplitButton = ({
|
|
|
897
899
|
Button,
|
|
898
900
|
{
|
|
899
901
|
variant,
|
|
900
|
-
onClick:
|
|
902
|
+
onClick: props.onClick,
|
|
901
903
|
className: cn(
|
|
902
904
|
direction === "rtl" ? "hawa-rounded-r-none" : "hawa-rounded-l-none",
|
|
903
905
|
props.className
|
|
@@ -5498,7 +5500,6 @@ var Tabs = React47.forwardRef(({ className, orientation, ...props }, ref) => /*
|
|
|
5498
5500
|
Tabs.displayName = TabsPrimitive.Root.displayName;
|
|
5499
5501
|
var TabsList = React47.forwardRef(({ className, ...props }, ref) => {
|
|
5500
5502
|
const { orientation } = React47.useContext(TabsContext);
|
|
5501
|
-
console.log("orient ", orientation);
|
|
5502
5503
|
return /* @__PURE__ */ React47.createElement(
|
|
5503
5504
|
TabsPrimitive.List,
|
|
5504
5505
|
{
|
|
@@ -8789,7 +8790,6 @@ var FeedbackEmoji = (props) => {
|
|
|
8789
8790
|
{ icon: /* @__PURE__ */ React77.createElement(VeryBadEmoji, null), value: "very-bad" }
|
|
8790
8791
|
];
|
|
8791
8792
|
const onFeedbackSubmit = async () => {
|
|
8792
|
-
console.log("submitting");
|
|
8793
8793
|
if (feedbackText) {
|
|
8794
8794
|
setLoadingSubmit(true);
|
|
8795
8795
|
try {
|
|
@@ -8868,7 +8868,6 @@ var FeedbackEmoji = (props) => {
|
|
|
8868
8868
|
setHelperText(false);
|
|
8869
8869
|
}
|
|
8870
8870
|
setFeedbackText(e.target.value);
|
|
8871
|
-
console.log("changing to", e.target.value);
|
|
8872
8871
|
}
|
|
8873
8872
|
}
|
|
8874
8873
|
)
|