@flytedan/flytebot-design-system 0.12.9 → 0.12.10

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.cjs CHANGED
@@ -275,7 +275,7 @@ function IconButton({
275
275
  const overflowRow = useOverflowRow();
276
276
  const cls = [
277
277
  "fd-btn-icon",
278
- variant === "outline" ? "fd-btn-icon-outline" : variant === "solid" ? "fd-btn-icon-solid" : "",
278
+ variant === "outline" ? "fd-btn-icon-outline" : variant === "solid" ? "fd-btn-icon-solid" : variant === "soft" ? "fd-btn-icon-soft" : "",
279
279
  tone !== "neutral" ? "is-" + tone : "",
280
280
  size === "sm" ? "fd-btn-icon-sm" : size === "lg" ? "fd-btn-icon-lg" : "",
281
281
  round ? "fd-btn-icon-round" : "",
@@ -3141,6 +3141,7 @@ function EntityRowMetrics({ metrics, className = "", style }) {
3141
3141
  }
3142
3142
  function EntityRow({
3143
3143
  title,
3144
+ titleIcon,
3144
3145
  meta,
3145
3146
  metrics,
3146
3147
  accessory,
@@ -3158,9 +3159,11 @@ function EntityRow({
3158
3159
  onPointerDown,
3159
3160
  className: ["fd-erow", tone === "danger" ? "fd-erow-danger" : "", className].filter(Boolean).join(" "),
3160
3161
  style: {
3161
- display: "flex",
3162
- alignItems: "center",
3163
- gap: 10,
3162
+ // display/alignItems/gap moved to the .fd-erow stylesheet rule (MP-114
3163
+ // follow-up): an inline style always wins over a stylesheet rule regardless of
3164
+ // specificity or media/container query, which would have made it impossible
3165
+ // for the narrow-container rule below to ever switch this row from a flex row
3166
+ // to a grid (see that rule's own comment for why it needs to).
3164
3167
  height: "100%",
3165
3168
  padding: "0 12px",
3166
3169
  cursor: draggable ? "grab" : void 0,
@@ -3170,10 +3173,20 @@ function EntityRow({
3170
3173
  ...style
3171
3174
  },
3172
3175
  children: [
3173
- draggable ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("i", { className: "ph ph-dots-six-vertical", "aria-hidden": "true", style: { fontSize: 14, flex: "none", color: "var(--text-muted)" } }) : null,
3176
+ draggable ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("i", { className: "ph ph-dots-six-vertical fd-erow-grip", "aria-hidden": "true", style: { fontSize: 14, flex: "none", color: "var(--text-muted)" } }) : null,
3174
3177
  /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("span", { className: "fd-erow-body", children: [
3175
3178
  /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("span", { className: "fd-erow-titleline", children: [
3176
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: "fd-erow-title fd-body-sm", children: title }),
3179
+ titleIcon ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Tooltip, { label: titleIcon.tooltip, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
3180
+ "button",
3181
+ {
3182
+ type: "button",
3183
+ className: ["fd-erow-title-icon", titleIcon.tone ? "is-" + titleIcon.tone : ""].filter(Boolean).join(" "),
3184
+ children: [
3185
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("i", { className: "ph ph-" + titleIcon.icon, "aria-hidden": "true" }),
3186
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: "fd-erow-title fd-body-sm", children: title })
3187
+ ]
3188
+ }
3189
+ ) }) : /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: "fd-erow-title fd-body-sm", children: title }),
3177
3190
  meta ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: "fd-erow-meta", children: meta }) : null
3178
3191
  ] }),
3179
3192
  hasStrip ? /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("span", { className: "fd-erow-strip", children: [
@@ -3187,7 +3200,7 @@ function EntityRow({
3187
3200
  icon: action.icon,
3188
3201
  label: action.label,
3189
3202
  size: "sm",
3190
- variant: "solid",
3203
+ variant: action.tone ? "soft" : "solid",
3191
3204
  tone: action.tone === "add" ? "ok" : action.tone === "remove" ? "danger" : "neutral",
3192
3205
  className: "fd-erow-action",
3193
3206
  onClick: action.onClick