@sikka/hawa 0.10.11-next → 0.10.12-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.js +5 -4
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6035,14 +6035,15 @@ var Combobox = function(_param) {
|
|
|
6035
6035
|
var _React47_useState1 = _sliced_to_array(React47.useState(defaultValue), 2), value = _React47_useState1[0], setValue = _React47_useState1[1];
|
|
6036
6036
|
return /* @__PURE__ */ React47.createElement("div", {
|
|
6037
6037
|
className: cn("hawa-flex hawa-flex-col hawa-gap-2", props.width === "fit" ? "hawa-w-fit" : "hawa-w-full")
|
|
6038
|
-
}, props.label && /* @__PURE__ */ React47.createElement(Label2, null, props.label),
|
|
6039
|
-
className: "hawa-h-[40px] hawa-w-full"
|
|
6040
|
-
}) : /* @__PURE__ */ React47.createElement(PopoverPrimitive2.Root, {
|
|
6038
|
+
}, props.label && /* @__PURE__ */ React47.createElement(Label2, null, props.label), /* @__PURE__ */ React47.createElement(PopoverPrimitive2.Root, {
|
|
6041
6039
|
open: open,
|
|
6042
6040
|
onOpenChange: setOpen
|
|
6043
6041
|
}, /* @__PURE__ */ React47.createElement(PopoverTrigger, {
|
|
6042
|
+
disabled: props.isLoading,
|
|
6044
6043
|
asChild: true
|
|
6045
|
-
}, /* @__PURE__ */ React47.createElement(
|
|
6044
|
+
}, props.isLoading ? /* @__PURE__ */ React47.createElement(Skeleton, {
|
|
6045
|
+
className: "hawa-h-[40px] hawa-w-full"
|
|
6046
|
+
}) : /* @__PURE__ */ React47.createElement(Button, {
|
|
6046
6047
|
variant: "combobox",
|
|
6047
6048
|
role: "combobox",
|
|
6048
6049
|
"aria-expanded": open,
|
package/dist/index.mjs
CHANGED
|
@@ -5706,7 +5706,7 @@ var Combobox = ({
|
|
|
5706
5706
|
)
|
|
5707
5707
|
},
|
|
5708
5708
|
props.label && /* @__PURE__ */ React47.createElement(Label2, null, props.label),
|
|
5709
|
-
|
|
5709
|
+
/* @__PURE__ */ React47.createElement(PopoverPrimitive2.Root, { open, onOpenChange: setOpen }, /* @__PURE__ */ React47.createElement(PopoverTrigger, { disabled: props.isLoading, asChild: true }, props.isLoading ? /* @__PURE__ */ React47.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" }) : /* @__PURE__ */ React47.createElement(
|
|
5710
5710
|
Button,
|
|
5711
5711
|
{
|
|
5712
5712
|
variant: "combobox",
|