@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.js +38 -34
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +39 -35
- package/dist/index.mjs.map +1 -1
- package/dist/style/globals.css +54 -2
- package/dist/style/uncompiled/theme/components/property.css +39 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -20199,24 +20199,52 @@ var PropertyBase = ({
|
|
|
20199
20199
|
const isClearEnabled = allowClear && !readOnly;
|
|
20200
20200
|
const isRemoveEnabled = allowRemove && !readOnly;
|
|
20201
20201
|
const showActionsContainer = isClearEnabled || isRemoveEnabled;
|
|
20202
|
-
|
|
20202
|
+
const renderActionButtons = () => /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_jsx_runtime104.Fragment, { children: [
|
|
20203
|
+
isClearEnabled && /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
20204
|
+
IconButton,
|
|
20205
|
+
{
|
|
20206
|
+
tooltip: translation("clearValue"),
|
|
20207
|
+
onClick: onValueClear,
|
|
20208
|
+
disabled: !hasValue,
|
|
20209
|
+
color: "negative",
|
|
20210
|
+
coloringStyle: "text",
|
|
20211
|
+
size: "sm",
|
|
20212
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_lucide_react31.X, { className: "size-force-5" })
|
|
20213
|
+
}
|
|
20214
|
+
),
|
|
20215
|
+
isRemoveEnabled && /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
20216
|
+
IconButton,
|
|
20217
|
+
{
|
|
20218
|
+
tooltip: translation("removeProperty"),
|
|
20219
|
+
onClick: onRemove,
|
|
20220
|
+
color: "negative",
|
|
20221
|
+
coloringStyle: "text",
|
|
20222
|
+
size: "sm",
|
|
20223
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_lucide_react31.Trash, { className: "size-force-5" })
|
|
20224
|
+
}
|
|
20225
|
+
)
|
|
20226
|
+
] });
|
|
20227
|
+
return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
20203
20228
|
"div",
|
|
20204
20229
|
{
|
|
20205
|
-
className: (0, import_clsx41.default)("group/property", className),
|
|
20230
|
+
className: (0, import_clsx41.default)("group/property min-w-0 w-full", className),
|
|
20206
20231
|
"data-name": "property-root",
|
|
20207
20232
|
"data-invalid": PropsUtil.dataAttributes.bool(invalid),
|
|
20208
|
-
children: [
|
|
20233
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { "data-name": "property-inner", children: [
|
|
20209
20234
|
/* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(
|
|
20210
20235
|
"div",
|
|
20211
20236
|
{
|
|
20212
20237
|
"data-name": "property-title",
|
|
20213
20238
|
"data-invalid": PropsUtil.dataAttributes.bool(invalid),
|
|
20214
20239
|
children: [
|
|
20215
|
-
/* @__PURE__ */ (0, import_jsx_runtime104.
|
|
20216
|
-
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
20217
|
-
|
|
20218
|
-
|
|
20219
|
-
|
|
20240
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "flex min-w-0 flex-1 flex-row items-center justify-between gap-2", children: [
|
|
20241
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(Tooltip, { tooltip: name, containerClassName: "min-w-0", children: /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "flex-row-1 items-center", children: [
|
|
20242
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { "data-name": "property-title-icon", children: icon }),
|
|
20243
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)("span", { "data-name": "property-title-text", children: name })
|
|
20244
|
+
] }) }),
|
|
20245
|
+
invalid && /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_lucide_react31.AlertTriangle, { className: "size-force-6 shrink-0" })
|
|
20246
|
+
] }),
|
|
20247
|
+
showActionsContainer && /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { "data-name": "property-title-actions", children: renderActionButtons() })
|
|
20220
20248
|
]
|
|
20221
20249
|
}
|
|
20222
20250
|
),
|
|
@@ -20227,35 +20255,11 @@ var PropertyBase = ({
|
|
|
20227
20255
|
"data-invalid": PropsUtil.dataAttributes.bool(invalid),
|
|
20228
20256
|
children: [
|
|
20229
20257
|
children({ required, hasValue, invalid }),
|
|
20230
|
-
showActionsContainer && /* @__PURE__ */ (0, import_jsx_runtime104.
|
|
20231
|
-
isClearEnabled && /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
20232
|
-
IconButton,
|
|
20233
|
-
{
|
|
20234
|
-
tooltip: translation("clearValue"),
|
|
20235
|
-
onClick: onValueClear,
|
|
20236
|
-
disabled: !hasValue,
|
|
20237
|
-
color: "negative",
|
|
20238
|
-
coloringStyle: "text",
|
|
20239
|
-
size: "sm",
|
|
20240
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_lucide_react31.X, { className: "size-force-5" })
|
|
20241
|
-
}
|
|
20242
|
-
),
|
|
20243
|
-
isRemoveEnabled && /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
20244
|
-
IconButton,
|
|
20245
|
-
{
|
|
20246
|
-
tooltip: translation("removeProperty"),
|
|
20247
|
-
onClick: onRemove,
|
|
20248
|
-
color: "negative",
|
|
20249
|
-
coloringStyle: "text",
|
|
20250
|
-
size: "sm",
|
|
20251
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_lucide_react31.Trash, { className: "size-force-5" })
|
|
20252
|
-
}
|
|
20253
|
-
)
|
|
20254
|
-
] })
|
|
20258
|
+
showActionsContainer && /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { "data-name": "property-actions", children: renderActionButtons() })
|
|
20255
20259
|
]
|
|
20256
20260
|
}
|
|
20257
20261
|
)
|
|
20258
|
-
]
|
|
20262
|
+
] })
|
|
20259
20263
|
}
|
|
20260
20264
|
);
|
|
20261
20265
|
};
|