@flytedan/flytebot-design-system 0.12.9 → 0.12.11

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,11 +3159,15 @@ 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/padding moved to the .fd-erow stylesheet rule
3163
+ // (MP-114 follow-ups): an inline style always wins over a stylesheet rule
3164
+ // regardless of specificity or media/container query, which would have made
3165
+ // it impossible for the narrow-container rule below to ever switch this row
3166
+ // from a flex row to a grid — and padding specifically is also read back by
3167
+ // .fd-tlist-footer's own indent calc(), as --erow-pad-x, so it has to be a
3168
+ // real, readable stylesheet value rather than a number only this component
3169
+ // ever sees.
3164
3170
  height: "100%",
3165
- padding: "0 12px",
3166
3171
  cursor: draggable ? "grab" : void 0,
3167
3172
  // Own the gesture on touch too — without this, a touch-drag on a draggable row
3168
3173
  // starts the page scrolling instead of (or as well as) the pointer drag.
@@ -3170,10 +3175,25 @@ function EntityRow({
3170
3175
  ...style
3171
3176
  },
3172
3177
  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,
3178
+ draggable ? (
3179
+ // font-size moved to the .fd-erow-grip stylesheet rule, same reason as the
3180
+ // row's own padding above: .fd-tlist-footer's indent reads it back as
3181
+ // --erow-grip-size.
3182
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("i", { className: "ph ph-dots-six-vertical fd-erow-grip", "aria-hidden": "true", style: { flex: "none", color: "var(--text-muted)" } })
3183
+ ) : null,
3174
3184
  /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("span", { className: "fd-erow-body", children: [
3175
3185
  /* @__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 }),
3186
+ titleIcon ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Tooltip, { label: titleIcon.tooltip, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
3187
+ "button",
3188
+ {
3189
+ type: "button",
3190
+ className: ["fd-erow-title-icon", titleIcon.tone ? "is-" + titleIcon.tone : ""].filter(Boolean).join(" "),
3191
+ children: [
3192
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("i", { className: "ph ph-" + titleIcon.icon, "aria-hidden": "true" }),
3193
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: "fd-erow-title fd-body-sm", children: title })
3194
+ ]
3195
+ }
3196
+ ) }) : /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: "fd-erow-title fd-body-sm", children: title }),
3177
3197
  meta ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: "fd-erow-meta", children: meta }) : null
3178
3198
  ] }),
3179
3199
  hasStrip ? /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("span", { className: "fd-erow-strip", children: [
@@ -3187,7 +3207,7 @@ function EntityRow({
3187
3207
  icon: action.icon,
3188
3208
  label: action.label,
3189
3209
  size: "sm",
3190
- variant: "solid",
3210
+ variant: action.tone ? "soft" : "solid",
3191
3211
  tone: action.tone === "add" ? "ok" : action.tone === "remove" ? "danger" : "neutral",
3192
3212
  className: "fd-erow-action",
3193
3213
  onClick: action.onClick