@flytedan/flytebot-design-system 0.52.0 → 0.54.0
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/README.md +2 -2
- package/dist/index.cjs +18 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -3
- package/dist/index.d.ts +6 -3
- package/dist/index.js +18 -16
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/styles/components.css +2 -0
package/README.md
CHANGED
|
@@ -69,7 +69,7 @@ TypeScript interfaces, a live interactive example, and a usage snippet — in
|
|
|
69
69
|
the docs site included in this repo (not yet published as a hosted site):
|
|
70
70
|
|
|
71
71
|
```bash
|
|
72
|
-
git clone git@github.com:
|
|
72
|
+
git clone git@github.com:Flytedesk/flytebot-design-system.git
|
|
73
73
|
cd flytebot-design-system
|
|
74
74
|
pnpm install
|
|
75
75
|
pnpm run docs
|
|
@@ -94,7 +94,7 @@ whatever a builder happens to be mid-edit on.
|
|
|
94
94
|
One-time setup, once per machine:
|
|
95
95
|
|
|
96
96
|
```bash
|
|
97
|
-
git clone git@github.com:
|
|
97
|
+
git clone git@github.com:Flytedesk/flytebot-design-system.git C:/Users/newms/deploy/flytebot-design-system
|
|
98
98
|
cd C:/Users/newms/deploy/flytebot-design-system
|
|
99
99
|
touch .deploy-clone-marker # git-ignored; scripts/release.sh refuses to run without it
|
|
100
100
|
```
|
package/dist/index.cjs
CHANGED
|
@@ -3037,19 +3037,6 @@ function FunnelChart({
|
|
|
3037
3037
|
const color = chartColor(i);
|
|
3038
3038
|
const detail = `${s.label} \u2014 ${valueFormat(value)} \xB7 ${formatPercent(Math.round(pctFirst))} of ${steps[0]?.label || "first step"}` + (stepRate != null ? ` \xB7 ${formatPercent(Math.round(stepRate))} of ${steps[i - 1].label}` : "");
|
|
3039
3039
|
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("li", { className: "fd-funnel-row", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Tooltip, { label: detail, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("button", { type: "button", className: "fd-funnel-btn", children: [
|
|
3040
|
-
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: "fd-funnel-shape-wrap", style: { height: barHeight }, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
3041
|
-
"span",
|
|
3042
|
-
{
|
|
3043
|
-
className: "fd-funnel-shape",
|
|
3044
|
-
role: "img",
|
|
3045
|
-
"aria-label": detail,
|
|
3046
|
-
style: {
|
|
3047
|
-
width: widthPct + "%",
|
|
3048
|
-
background: color,
|
|
3049
|
-
clipPath: `polygon(${insetTop}% 0, ${100 - insetTop}% 0, ${100 - insetBottom}% 100%, ${insetBottom}% 100%)`
|
|
3050
|
-
}
|
|
3051
|
-
}
|
|
3052
|
-
) }),
|
|
3053
3040
|
/* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("span", { className: "fd-funnel-meta", children: [
|
|
3054
3041
|
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: "fd-funnel-label", title: truncationTitle(s.label), children: s.label }),
|
|
3055
3042
|
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: "fd-funnel-value fd-tabular", children: valueFormat(value) }),
|
|
@@ -3063,7 +3050,20 @@ function FunnelChart({
|
|
|
3063
3050
|
" of first"
|
|
3064
3051
|
] })
|
|
3065
3052
|
] })
|
|
3066
|
-
] })
|
|
3053
|
+
] }),
|
|
3054
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: "fd-funnel-shape-wrap", style: { height: barHeight }, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
3055
|
+
"span",
|
|
3056
|
+
{
|
|
3057
|
+
className: "fd-funnel-shape",
|
|
3058
|
+
role: "img",
|
|
3059
|
+
"aria-label": detail,
|
|
3060
|
+
style: {
|
|
3061
|
+
width: widthPct + "%",
|
|
3062
|
+
background: color,
|
|
3063
|
+
clipPath: `polygon(${insetTop}% 0, ${100 - insetTop}% 0, ${100 - insetBottom}% 100%, ${insetBottom}% 100%)`
|
|
3064
|
+
}
|
|
3065
|
+
}
|
|
3066
|
+
) })
|
|
3067
3067
|
] }) }) }, s.id);
|
|
3068
3068
|
}) }),
|
|
3069
3069
|
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
@@ -3195,7 +3195,8 @@ function DataTable({
|
|
|
3195
3195
|
columns = [],
|
|
3196
3196
|
rows = [],
|
|
3197
3197
|
compact: compact3 = false,
|
|
3198
|
-
|
|
3198
|
+
selectedIds,
|
|
3199
|
+
rowTitle,
|
|
3199
3200
|
onRowClick,
|
|
3200
3201
|
rowKey = "id",
|
|
3201
3202
|
loading = false,
|
|
@@ -3232,7 +3233,8 @@ function DataTable({
|
|
|
3232
3233
|
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("tbody", { className: stale ? "fd-stale" : void 0, children: loading ? Array.from({ length: skeletonRows }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("tr", { children: columns.map((c) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("td", { className: c.numeric ? "is-num" : "", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: "fd-skel fd-skel-text", style: { display: "inline-block", height: 13, width: c.numeric ? 52 : i % 3 === 0 ? "72%" : "88%" } }) }, c.key)) }, i)) : rows.map((r) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
3233
3234
|
"tr",
|
|
3234
3235
|
{
|
|
3235
|
-
"aria-selected":
|
|
3236
|
+
"aria-selected": selectedIds?.includes(r[rowKey]) ? "true" : void 0,
|
|
3237
|
+
title: rowTitle ? rowTitle(r) : void 0,
|
|
3236
3238
|
onClick: onRowClick ? () => onRowClick(r) : void 0,
|
|
3237
3239
|
style: onRowClick ? { cursor: "pointer" } : void 0,
|
|
3238
3240
|
children: columns.map((c) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("td", { className: c.numeric ? "is-num" : "", children: c.render ? c.render(r) : r[c.key] }, c.key))
|