@usefidel/design-system 0.25.0 → 0.25.1
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/fidel.manifest.json +2 -2
- package/dist/index.cjs +6 -3
- package/dist/index.css +6 -0
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +6 -3
- package/package.json +1 -1
package/dist/fidel.manifest.json
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1320,15 +1320,18 @@ function Pagination({ page, pageCount, onPageChange, total, pageSize, variant =
|
|
|
1320
1320
|
|
|
1321
1321
|
// src/components/EmptyState/EmptyState.tsx
|
|
1322
1322
|
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
1323
|
-
function EmptyState({ illustration, title, description, action, footer, size = "default", className, ...rest }) {
|
|
1323
|
+
function EmptyState({ illustration, title, description, action, secondaryAction, footer, size = "default", className, ...rest }) {
|
|
1324
1324
|
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: ["fds-empty", size === "compact" ? "fds-empty--compact" : "", className].filter(Boolean).join(" "), ...rest, children: [
|
|
1325
1325
|
illustration != null && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "fds-empty__illustration", children: illustration }),
|
|
1326
1326
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "fds-empty__text", children: [
|
|
1327
1327
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("h2", { className: "fds-empty__title", children: title }),
|
|
1328
1328
|
description != null && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { className: "fds-empty__description", children: description })
|
|
1329
1329
|
] }),
|
|
1330
|
-
(action != null || footer != null) && /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "fds-empty__actions", children: [
|
|
1331
|
-
action,
|
|
1330
|
+
(action != null || secondaryAction != null || footer != null) && /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "fds-empty__actions", children: [
|
|
1331
|
+
(action != null || secondaryAction != null) && /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "fds-empty__buttons", children: [
|
|
1332
|
+
action,
|
|
1333
|
+
secondaryAction
|
|
1334
|
+
] }),
|
|
1332
1335
|
footer != null && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "fds-empty__footer", children: footer })
|
|
1333
1336
|
] })
|
|
1334
1337
|
] });
|
package/dist/index.css
CHANGED
|
@@ -2047,6 +2047,12 @@
|
|
|
2047
2047
|
align-items: center;
|
|
2048
2048
|
gap: var(--spacing-6, 24px);
|
|
2049
2049
|
}
|
|
2050
|
+
.fds-empty__buttons {
|
|
2051
|
+
display: flex;
|
|
2052
|
+
flex-wrap: wrap;
|
|
2053
|
+
justify-content: center;
|
|
2054
|
+
gap: var(--spacing-2, 8px);
|
|
2055
|
+
}
|
|
2050
2056
|
.fds-empty__footer {
|
|
2051
2057
|
display: flex;
|
|
2052
2058
|
flex-wrap: wrap;
|
package/dist/index.d.cts
CHANGED
|
@@ -566,6 +566,8 @@ interface EmptyStateProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'>
|
|
|
566
566
|
description?: ReactNode;
|
|
567
567
|
/** Primary action, usually a Button. */
|
|
568
568
|
action?: ReactNode;
|
|
569
|
+
/** Second button, shown on the same row after the primary one. */
|
|
570
|
+
secondaryAction?: ReactNode;
|
|
569
571
|
/** Secondary line under the action, e.g. a help link. */
|
|
570
572
|
footer?: ReactNode;
|
|
571
573
|
/** `compact` for an empty list inside a card or table: smaller title and
|
|
@@ -577,7 +579,7 @@ interface EmptyStateProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'>
|
|
|
577
579
|
* action and footer, for a list or page with nothing in it yet. Measured from
|
|
578
580
|
* Figma "✅Project" Empty State Container (node 231:59661).
|
|
579
581
|
*/
|
|
580
|
-
declare function EmptyState({ illustration, title, description, action, footer, size, className, ...rest }: EmptyStateProps): react.JSX.Element;
|
|
582
|
+
declare function EmptyState({ illustration, title, description, action, secondaryAction, footer, size, className, ...rest }: EmptyStateProps): react.JSX.Element;
|
|
581
583
|
/**
|
|
582
584
|
* Two tilted cards with a search badge: "nothing found yet". Drawn from the
|
|
583
585
|
* Figma "Stacked Cards" layers (node 80:49887), 240×160.
|
package/dist/index.d.ts
CHANGED
|
@@ -566,6 +566,8 @@ interface EmptyStateProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'>
|
|
|
566
566
|
description?: ReactNode;
|
|
567
567
|
/** Primary action, usually a Button. */
|
|
568
568
|
action?: ReactNode;
|
|
569
|
+
/** Second button, shown on the same row after the primary one. */
|
|
570
|
+
secondaryAction?: ReactNode;
|
|
569
571
|
/** Secondary line under the action, e.g. a help link. */
|
|
570
572
|
footer?: ReactNode;
|
|
571
573
|
/** `compact` for an empty list inside a card or table: smaller title and
|
|
@@ -577,7 +579,7 @@ interface EmptyStateProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'>
|
|
|
577
579
|
* action and footer, for a list or page with nothing in it yet. Measured from
|
|
578
580
|
* Figma "✅Project" Empty State Container (node 231:59661).
|
|
579
581
|
*/
|
|
580
|
-
declare function EmptyState({ illustration, title, description, action, footer, size, className, ...rest }: EmptyStateProps): react.JSX.Element;
|
|
582
|
+
declare function EmptyState({ illustration, title, description, action, secondaryAction, footer, size, className, ...rest }: EmptyStateProps): react.JSX.Element;
|
|
581
583
|
/**
|
|
582
584
|
* Two tilted cards with a search badge: "nothing found yet". Drawn from the
|
|
583
585
|
* Figma "Stacked Cards" layers (node 80:49887), 240×160.
|
package/dist/index.js
CHANGED
|
@@ -1248,15 +1248,18 @@ function Pagination({ page, pageCount, onPageChange, total, pageSize, variant =
|
|
|
1248
1248
|
|
|
1249
1249
|
// src/components/EmptyState/EmptyState.tsx
|
|
1250
1250
|
import { jsx as jsx20, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
1251
|
-
function EmptyState({ illustration, title, description, action, footer, size = "default", className, ...rest }) {
|
|
1251
|
+
function EmptyState({ illustration, title, description, action, secondaryAction, footer, size = "default", className, ...rest }) {
|
|
1252
1252
|
return /* @__PURE__ */ jsxs18("div", { className: ["fds-empty", size === "compact" ? "fds-empty--compact" : "", className].filter(Boolean).join(" "), ...rest, children: [
|
|
1253
1253
|
illustration != null && /* @__PURE__ */ jsx20("div", { className: "fds-empty__illustration", children: illustration }),
|
|
1254
1254
|
/* @__PURE__ */ jsxs18("div", { className: "fds-empty__text", children: [
|
|
1255
1255
|
/* @__PURE__ */ jsx20("h2", { className: "fds-empty__title", children: title }),
|
|
1256
1256
|
description != null && /* @__PURE__ */ jsx20("p", { className: "fds-empty__description", children: description })
|
|
1257
1257
|
] }),
|
|
1258
|
-
(action != null || footer != null) && /* @__PURE__ */ jsxs18("div", { className: "fds-empty__actions", children: [
|
|
1259
|
-
action,
|
|
1258
|
+
(action != null || secondaryAction != null || footer != null) && /* @__PURE__ */ jsxs18("div", { className: "fds-empty__actions", children: [
|
|
1259
|
+
(action != null || secondaryAction != null) && /* @__PURE__ */ jsxs18("div", { className: "fds-empty__buttons", children: [
|
|
1260
|
+
action,
|
|
1261
|
+
secondaryAction
|
|
1262
|
+
] }),
|
|
1260
1263
|
footer != null && /* @__PURE__ */ jsx20("div", { className: "fds-empty__footer", children: footer })
|
|
1261
1264
|
] })
|
|
1262
1265
|
] });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@usefidel/design-system",
|
|
3
|
-
"version": "0.25.
|
|
3
|
+
"version": "0.25.1",
|
|
4
4
|
"description": "Fidel brand design tokens + React component library — DTCG token source of truth, generated per-surface CSS + Tailwind-v4 parser-compatibility output, and on-brand React components (Button, MismatchCard, DiffSection).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|