@flytedan/flytebot-design-system 0.83.0 → 0.84.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/dist/index.cjs +15 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +15 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/styles/components.css +19 -0
package/dist/index.cjs
CHANGED
|
@@ -2195,6 +2195,7 @@ function Collapsible({
|
|
|
2195
2195
|
subtitle,
|
|
2196
2196
|
badge,
|
|
2197
2197
|
icon,
|
|
2198
|
+
actions,
|
|
2198
2199
|
defaultOpen = false,
|
|
2199
2200
|
open: open2,
|
|
2200
2201
|
onToggle,
|
|
@@ -2208,16 +2209,20 @@ function Collapsible({
|
|
|
2208
2209
|
if (open2 === void 0) setInternal(!isOpen);
|
|
2209
2210
|
if (onToggle) onToggle(!isOpen);
|
|
2210
2211
|
};
|
|
2211
|
-
|
|
2212
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.
|
|
2213
|
-
|
|
2214
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.
|
|
2215
|
-
|
|
2216
|
-
subtitle ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "fd-coll-sub", style: { display: "block" }, children: subtitle }) : null
|
|
2217
|
-
] }),
|
|
2218
|
-
badge,
|
|
2219
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "fd-coll-caret", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("i", { className: "ph ph-caret-down", "aria-hidden": "true" }) })
|
|
2212
|
+
const trigger = /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("button", { type: "button", className: "fd-coll-trigger", "aria-expanded": isOpen, onClick: toggle, children: [
|
|
2213
|
+
icon ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "fd-coll-caret", style: { background: "var(--brand-soft)", color: "var(--brand)", transform: "none" }, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("i", { className: "ph ph-" + icon, "aria-hidden": "true" }) }) : null,
|
|
2214
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("span", { style: { flex: 1, minWidth: 0 }, children: [
|
|
2215
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "fd-coll-title", style: { display: "block" }, children: title }),
|
|
2216
|
+
subtitle ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "fd-coll-sub", style: { display: "block" }, children: subtitle }) : null
|
|
2220
2217
|
] }),
|
|
2218
|
+
badge,
|
|
2219
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "fd-coll-caret", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("i", { className: "ph ph-caret-down", "aria-hidden": "true" }) })
|
|
2220
|
+
] });
|
|
2221
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: ["fd-coll", className].filter(Boolean).join(" "), "data-open": isOpen ? "true" : "false", ...rest, children: [
|
|
2222
|
+
actions ? /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "fd-coll-head", children: [
|
|
2223
|
+
trigger,
|
|
2224
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "fd-coll-actions", children: actions })
|
|
2225
|
+
] }) : trigger,
|
|
2221
2226
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "fd-coll-panel", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "fd-coll-content", children }) }) })
|
|
2222
2227
|
] });
|
|
2223
2228
|
}
|
|
@@ -8397,6 +8402,7 @@ function ReferenceList(props) {
|
|
|
8397
8402
|
className: "fd-ref-section",
|
|
8398
8403
|
title: s.title,
|
|
8399
8404
|
subtitle: s.subtitle,
|
|
8405
|
+
actions: s.actions,
|
|
8400
8406
|
badge: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { className: "fd-badge fd-badge-count", children: searching ? `${shown.length} of ${s.entries.length}` : s.entries.length }),
|
|
8401
8407
|
open: open2,
|
|
8402
8408
|
onToggle: (next) => {
|