@helpwave/hightide 0.9.4 → 0.9.5

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.mjs CHANGED
@@ -19938,7 +19938,7 @@ import { Check as Check5 } from "lucide-react";
19938
19938
  // src/components/user-interaction/properties/PropertyBase.tsx
19939
19939
  import clsx41 from "clsx";
19940
19940
  import { AlertTriangle, Trash, X as X3 } from "lucide-react";
19941
- import { jsx as jsx103, jsxs as jsxs65 } from "react/jsx-runtime";
19941
+ import { Fragment as Fragment13, jsx as jsx103, jsxs as jsxs65 } from "react/jsx-runtime";
19942
19942
  var PropertyBase = ({
19943
19943
  name,
19944
19944
  children,
@@ -19957,24 +19957,52 @@ var PropertyBase = ({
19957
19957
  const isClearEnabled = allowClear && !readOnly;
19958
19958
  const isRemoveEnabled = allowRemove && !readOnly;
19959
19959
  const showActionsContainer = isClearEnabled || isRemoveEnabled;
19960
- return /* @__PURE__ */ jsxs65(
19960
+ const renderActionButtons = () => /* @__PURE__ */ jsxs65(Fragment13, { children: [
19961
+ isClearEnabled && /* @__PURE__ */ jsx103(
19962
+ IconButton,
19963
+ {
19964
+ tooltip: translation("clearValue"),
19965
+ onClick: onValueClear,
19966
+ disabled: !hasValue,
19967
+ color: "negative",
19968
+ coloringStyle: "text",
19969
+ size: "sm",
19970
+ children: /* @__PURE__ */ jsx103(X3, { className: "size-force-5" })
19971
+ }
19972
+ ),
19973
+ isRemoveEnabled && /* @__PURE__ */ jsx103(
19974
+ IconButton,
19975
+ {
19976
+ tooltip: translation("removeProperty"),
19977
+ onClick: onRemove,
19978
+ color: "negative",
19979
+ coloringStyle: "text",
19980
+ size: "sm",
19981
+ children: /* @__PURE__ */ jsx103(Trash, { className: "size-force-5" })
19982
+ }
19983
+ )
19984
+ ] });
19985
+ return /* @__PURE__ */ jsx103(
19961
19986
  "div",
19962
19987
  {
19963
- className: clsx41("group/property", className),
19988
+ className: clsx41("group/property min-w-0 w-full", className),
19964
19989
  "data-name": "property-root",
19965
19990
  "data-invalid": PropsUtil.dataAttributes.bool(invalid),
19966
- children: [
19991
+ children: /* @__PURE__ */ jsxs65("div", { "data-name": "property-inner", children: [
19967
19992
  /* @__PURE__ */ jsxs65(
19968
19993
  "div",
19969
19994
  {
19970
19995
  "data-name": "property-title",
19971
19996
  "data-invalid": PropsUtil.dataAttributes.bool(invalid),
19972
19997
  children: [
19973
- /* @__PURE__ */ jsx103(Tooltip, { tooltip: name, containerClassName: "min-w-0", children: /* @__PURE__ */ jsxs65("div", { className: "flex-row-1 items-center", children: [
19974
- /* @__PURE__ */ jsx103("div", { "data-name": "property-title-icon", children: icon }),
19975
- /* @__PURE__ */ jsx103("span", { "data-name": "property-title-text", children: name })
19976
- ] }) }),
19977
- invalid && /* @__PURE__ */ jsx103(AlertTriangle, { className: "size-force-6" })
19998
+ /* @__PURE__ */ jsxs65("div", { className: "flex min-w-0 flex-1 flex-row items-center justify-between gap-2", children: [
19999
+ /* @__PURE__ */ jsx103(Tooltip, { tooltip: name, containerClassName: "min-w-0", children: /* @__PURE__ */ jsxs65("div", { className: "flex-row-1 items-center", children: [
20000
+ /* @__PURE__ */ jsx103("div", { "data-name": "property-title-icon", children: icon }),
20001
+ /* @__PURE__ */ jsx103("span", { "data-name": "property-title-text", children: name })
20002
+ ] }) }),
20003
+ invalid && /* @__PURE__ */ jsx103(AlertTriangle, { className: "size-force-6 shrink-0" })
20004
+ ] }),
20005
+ showActionsContainer && /* @__PURE__ */ jsx103("div", { "data-name": "property-title-actions", children: renderActionButtons() })
19978
20006
  ]
19979
20007
  }
19980
20008
  ),
@@ -19985,35 +20013,11 @@ var PropertyBase = ({
19985
20013
  "data-invalid": PropsUtil.dataAttributes.bool(invalid),
19986
20014
  children: [
19987
20015
  children({ required, hasValue, invalid }),
19988
- showActionsContainer && /* @__PURE__ */ jsxs65("div", { "data-name": "property-actions", children: [
19989
- isClearEnabled && /* @__PURE__ */ jsx103(
19990
- IconButton,
19991
- {
19992
- tooltip: translation("clearValue"),
19993
- onClick: onValueClear,
19994
- disabled: !hasValue,
19995
- color: "negative",
19996
- coloringStyle: "text",
19997
- size: "sm",
19998
- children: /* @__PURE__ */ jsx103(X3, { className: "size-force-5" })
19999
- }
20000
- ),
20001
- isRemoveEnabled && /* @__PURE__ */ jsx103(
20002
- IconButton,
20003
- {
20004
- tooltip: translation("removeProperty"),
20005
- onClick: onRemove,
20006
- color: "negative",
20007
- coloringStyle: "text",
20008
- size: "sm",
20009
- children: /* @__PURE__ */ jsx103(Trash, { className: "size-force-5" })
20010
- }
20011
- )
20012
- ] })
20016
+ showActionsContainer && /* @__PURE__ */ jsx103("div", { "data-name": "property-actions", children: renderActionButtons() })
20013
20017
  ]
20014
20018
  }
20015
20019
  )
20016
- ]
20020
+ ] })
20017
20021
  }
20018
20022
  );
20019
20023
  };