@apipass/design-system 1.18.1 → 1.19.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.
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n=require("../../../vendor/clsx/dist/clsx.cjs");;/* empty css */const r=require("../../icons/IconInbox.cjs");function a({message:t,className:s,...i}){return e.jsxs("div",{role:"status",className:n.clsx("widget-empty-state",s),...i,children:[e.jsx(r.IconInbox,{size:"24",className:"widget-empty-state-icon"}),e.jsx("span",{className:"widget-empty-state-message",children:t})]})}exports.WidgetEmptyState=a;
2
+ //# sourceMappingURL=WidgetEmptyState.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WidgetEmptyState.cjs","sources":["../../../../../src/ui/components/WidgetEmptyState/WidgetEmptyState.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { type ComponentPropsWithoutRef } from \"react\";\nimport { IconInbox } from \"icons\";\nimport \"./widget-empty-state.css\";\n\nexport type WidgetEmptyStateProps = ComponentPropsWithoutRef<\"div\"> & {\n message: string;\n};\n\nexport function WidgetEmptyState({\n message,\n className,\n ...props\n}: WidgetEmptyStateProps) {\n return (\n <div role=\"status\" className={clsx(\"widget-empty-state\", className)} {...props}>\n <IconInbox size=\"24\" className=\"widget-empty-state-icon\" />\n <span className=\"widget-empty-state-message\">{message}</span>\n </div>\n );\n}\n"],"names":["WidgetEmptyState","message","className","props","jsxs","clsx","jsx","IconInbox"],"mappings":"0PASO,SAASA,EAAiB,CAC/B,QAAAC,EACA,UAAAC,EACA,GAAGC,CACL,EAA0B,CACxB,OACEC,OAAC,MAAA,CAAI,KAAK,SAAS,UAAWC,EAAAA,KAAK,qBAAsBH,CAAS,EAAI,GAAGC,EACvE,SAAA,CAAAG,EAAAA,IAACC,EAAAA,UAAA,CAAU,KAAK,KAAK,UAAU,0BAA0B,EACzDD,EAAAA,IAAC,OAAA,CAAK,UAAU,6BAA8B,SAAAL,CAAA,CAAQ,CAAA,EACxD,CAEJ"}
@@ -0,0 +1,18 @@
1
+ import { jsxs as i, jsx as t } from "react/jsx-runtime";
2
+ import { clsx as a } from "../../../vendor/clsx/dist/clsx.js";
3
+ /* empty css */
4
+ import { IconInbox as o } from "../../icons/IconInbox.js";
5
+ function d({
6
+ message: e,
7
+ className: s,
8
+ ...m
9
+ }) {
10
+ return /* @__PURE__ */ i("div", { role: "status", className: a("widget-empty-state", s), ...m, children: [
11
+ /* @__PURE__ */ t(o, { size: "24", className: "widget-empty-state-icon" }),
12
+ /* @__PURE__ */ t("span", { className: "widget-empty-state-message", children: e })
13
+ ] });
14
+ }
15
+ export {
16
+ d as WidgetEmptyState
17
+ };
18
+ //# sourceMappingURL=WidgetEmptyState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WidgetEmptyState.js","sources":["../../../../../src/ui/components/WidgetEmptyState/WidgetEmptyState.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { type ComponentPropsWithoutRef } from \"react\";\nimport { IconInbox } from \"icons\";\nimport \"./widget-empty-state.css\";\n\nexport type WidgetEmptyStateProps = ComponentPropsWithoutRef<\"div\"> & {\n message: string;\n};\n\nexport function WidgetEmptyState({\n message,\n className,\n ...props\n}: WidgetEmptyStateProps) {\n return (\n <div role=\"status\" className={clsx(\"widget-empty-state\", className)} {...props}>\n <IconInbox size=\"24\" className=\"widget-empty-state-icon\" />\n <span className=\"widget-empty-state-message\">{message}</span>\n </div>\n );\n}\n"],"names":["WidgetEmptyState","message","className","props","jsxs","clsx","jsx","IconInbox"],"mappings":";;;;AASO,SAASA,EAAiB;AAAA,EAC/B,SAAAC;AAAA,EACA,WAAAC;AAAA,EACA,GAAGC;AACL,GAA0B;AACxB,SACE,gBAAAC,EAAC,OAAA,EAAI,MAAK,UAAS,WAAWC,EAAK,sBAAsBH,CAAS,GAAI,GAAGC,GACvE,UAAA;AAAA,IAAA,gBAAAG,EAACC,GAAA,EAAU,MAAK,MAAK,WAAU,2BAA0B;AAAA,IACzD,gBAAAD,EAAC,QAAA,EAAK,WAAU,8BAA8B,UAAAL,EAAA,CAAQ;AAAA,EAAA,GACxD;AAEJ;"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("../../../vendor/clsx/dist/clsx.cjs");;/* empty css */const l=require("../../icons/IconAlertTriangle.cjs"),o=require("../../primitives/Button/Button.cjs");function c({message:t,retryLabel:s,onRetry:r,className:i,...n}){return e.jsxs("div",{role:"alert",className:a.clsx("widget-error-state",i),...n,children:[e.jsx(l.IconAlertTriangle,{size:"24",className:"widget-error-state-icon"}),e.jsx("span",{className:"widget-error-state-message",children:t}),r&&e.jsx(o.Button,{variant:"neutral",size:"small",onPress:r,children:s})]})}exports.WidgetErrorState=c;
2
+ //# sourceMappingURL=WidgetErrorState.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WidgetErrorState.cjs","sources":["../../../../../src/ui/components/WidgetErrorState/WidgetErrorState.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { type ComponentPropsWithoutRef } from \"react\";\nimport { IconAlertTriangle } from \"icons\";\nimport { Button } from \"primitives\";\nimport \"./widget-error-state.css\";\n\nexport type WidgetErrorStateProps = ComponentPropsWithoutRef<\"div\"> & {\n message: string;\n retryLabel: string;\n onRetry?: () => void;\n};\n\nexport function WidgetErrorState({\n message,\n retryLabel,\n onRetry,\n className,\n ...props\n}: WidgetErrorStateProps) {\n return (\n <div role=\"alert\" className={clsx(\"widget-error-state\", className)} {...props}>\n <IconAlertTriangle size=\"24\" className=\"widget-error-state-icon\" />\n <span className=\"widget-error-state-message\">{message}</span>\n {onRetry && (\n <Button variant=\"neutral\" size=\"small\" onPress={onRetry}>\n {retryLabel}\n </Button>\n )}\n </div>\n );\n}\n"],"names":["WidgetErrorState","message","retryLabel","onRetry","className","props","jsxs","clsx","jsx","IconAlertTriangle","Button"],"mappings":"kTAYO,SAASA,EAAiB,CAC/B,QAAAC,EACA,WAAAC,EACA,QAAAC,EACA,UAAAC,EACA,GAAGC,CACL,EAA0B,CACxB,OACEC,OAAC,MAAA,CAAI,KAAK,QAAQ,UAAWC,EAAAA,KAAK,qBAAsBH,CAAS,EAAI,GAAGC,EACtE,SAAA,CAAAG,EAAAA,IAACC,EAAAA,kBAAA,CAAkB,KAAK,KAAK,UAAU,0BAA0B,EACjED,EAAAA,IAAC,OAAA,CAAK,UAAU,6BAA8B,SAAAP,EAAQ,EACrDE,SACEO,SAAA,CAAO,QAAQ,UAAU,KAAK,QAAQ,QAASP,EAC7C,SAAAD,CAAA,CACH,CAAA,EAEJ,CAEJ"}
@@ -0,0 +1,22 @@
1
+ import { jsxs as a, jsx as r } from "react/jsx-runtime";
2
+ import { clsx as l } from "../../../vendor/clsx/dist/clsx.js";
3
+ /* empty css */
4
+ import { IconAlertTriangle as m } from "../../icons/IconAlertTriangle.js";
5
+ import { Button as n } from "../../primitives/Button/Button.js";
6
+ function u({
7
+ message: t,
8
+ retryLabel: s,
9
+ onRetry: e,
10
+ className: i,
11
+ ...o
12
+ }) {
13
+ return /* @__PURE__ */ a("div", { role: "alert", className: l("widget-error-state", i), ...o, children: [
14
+ /* @__PURE__ */ r(m, { size: "24", className: "widget-error-state-icon" }),
15
+ /* @__PURE__ */ r("span", { className: "widget-error-state-message", children: t }),
16
+ e && /* @__PURE__ */ r(n, { variant: "neutral", size: "small", onPress: e, children: s })
17
+ ] });
18
+ }
19
+ export {
20
+ u as WidgetErrorState
21
+ };
22
+ //# sourceMappingURL=WidgetErrorState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WidgetErrorState.js","sources":["../../../../../src/ui/components/WidgetErrorState/WidgetErrorState.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { type ComponentPropsWithoutRef } from \"react\";\nimport { IconAlertTriangle } from \"icons\";\nimport { Button } from \"primitives\";\nimport \"./widget-error-state.css\";\n\nexport type WidgetErrorStateProps = ComponentPropsWithoutRef<\"div\"> & {\n message: string;\n retryLabel: string;\n onRetry?: () => void;\n};\n\nexport function WidgetErrorState({\n message,\n retryLabel,\n onRetry,\n className,\n ...props\n}: WidgetErrorStateProps) {\n return (\n <div role=\"alert\" className={clsx(\"widget-error-state\", className)} {...props}>\n <IconAlertTriangle size=\"24\" className=\"widget-error-state-icon\" />\n <span className=\"widget-error-state-message\">{message}</span>\n {onRetry && (\n <Button variant=\"neutral\" size=\"small\" onPress={onRetry}>\n {retryLabel}\n </Button>\n )}\n </div>\n );\n}\n"],"names":["WidgetErrorState","message","retryLabel","onRetry","className","props","jsxs","clsx","jsx","IconAlertTriangle","Button"],"mappings":";;;;;AAYO,SAASA,EAAiB;AAAA,EAC/B,SAAAC;AAAA,EACA,YAAAC;AAAA,EACA,SAAAC;AAAA,EACA,WAAAC;AAAA,EACA,GAAGC;AACL,GAA0B;AACxB,SACE,gBAAAC,EAAC,OAAA,EAAI,MAAK,SAAQ,WAAWC,EAAK,sBAAsBH,CAAS,GAAI,GAAGC,GACtE,UAAA;AAAA,IAAA,gBAAAG,EAACC,GAAA,EAAkB,MAAK,MAAK,WAAU,2BAA0B;AAAA,IACjE,gBAAAD,EAAC,QAAA,EAAK,WAAU,8BAA8B,UAAAP,GAAQ;AAAA,IACrDE,uBACEO,GAAA,EAAO,SAAQ,WAAU,MAAK,SAAQ,SAASP,GAC7C,UAAAD,EAAA,CACH;AAAA,EAAA,GAEJ;AAEJ;"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("../../../vendor/clsx/dist/clsx.cjs");;/* empty css */const n=require("../../icons/IconLoader.cjs");function r({message:t,className:s,...i}){return e.jsxs("div",{role:"status","aria-live":"polite",className:a.clsx("widget-loading-state",s),...i,children:[e.jsx(n.IconLoader,{size:"24",className:"widget-loading-state-spinner"}),e.jsx("span",{className:"widget-loading-state-message",children:t})]})}exports.WidgetLoadingState=r;
2
+ //# sourceMappingURL=WidgetLoadingState.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WidgetLoadingState.cjs","sources":["../../../../../src/ui/components/WidgetLoadingState/WidgetLoadingState.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { type ComponentPropsWithoutRef } from \"react\";\nimport { IconLoader } from \"icons\";\nimport \"./widget-loading-state.css\";\n\nexport type WidgetLoadingStateProps = ComponentPropsWithoutRef<\"div\"> & {\n message: string;\n};\n\nexport function WidgetLoadingState({\n message,\n className,\n ...props\n}: WidgetLoadingStateProps) {\n return (\n <div\n role=\"status\"\n aria-live=\"polite\"\n className={clsx(\"widget-loading-state\", className)}\n {...props}\n >\n <IconLoader size=\"24\" className=\"widget-loading-state-spinner\" />\n <span className=\"widget-loading-state-message\">{message}</span>\n </div>\n );\n}\n"],"names":["WidgetLoadingState","message","className","props","jsxs","clsx","jsx","IconLoader"],"mappings":"6PASO,SAASA,EAAmB,CACjC,QAAAC,EACA,UAAAC,EACA,GAAGC,CACL,EAA4B,CAC1B,OACEC,EAAAA,KAAC,MAAA,CACC,KAAK,SACL,YAAU,SACV,UAAWC,EAAAA,KAAK,uBAAwBH,CAAS,EAChD,GAAGC,EAEJ,SAAA,CAAAG,EAAAA,IAACC,EAAAA,WAAA,CAAW,KAAK,KAAK,UAAU,+BAA+B,EAC/DD,EAAAA,IAAC,OAAA,CAAK,UAAU,+BAAgC,SAAAL,CAAA,CAAQ,CAAA,CAAA,CAAA,CAG9D"}
@@ -0,0 +1,27 @@
1
+ import { jsxs as s, jsx as e } from "react/jsx-runtime";
2
+ import { clsx as o } from "../../../vendor/clsx/dist/clsx.js";
3
+ /* empty css */
4
+ import { IconLoader as r } from "../../icons/IconLoader.js";
5
+ function g({
6
+ message: t,
7
+ className: i,
8
+ ...a
9
+ }) {
10
+ return /* @__PURE__ */ s(
11
+ "div",
12
+ {
13
+ role: "status",
14
+ "aria-live": "polite",
15
+ className: o("widget-loading-state", i),
16
+ ...a,
17
+ children: [
18
+ /* @__PURE__ */ e(r, { size: "24", className: "widget-loading-state-spinner" }),
19
+ /* @__PURE__ */ e("span", { className: "widget-loading-state-message", children: t })
20
+ ]
21
+ }
22
+ );
23
+ }
24
+ export {
25
+ g as WidgetLoadingState
26
+ };
27
+ //# sourceMappingURL=WidgetLoadingState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WidgetLoadingState.js","sources":["../../../../../src/ui/components/WidgetLoadingState/WidgetLoadingState.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { type ComponentPropsWithoutRef } from \"react\";\nimport { IconLoader } from \"icons\";\nimport \"./widget-loading-state.css\";\n\nexport type WidgetLoadingStateProps = ComponentPropsWithoutRef<\"div\"> & {\n message: string;\n};\n\nexport function WidgetLoadingState({\n message,\n className,\n ...props\n}: WidgetLoadingStateProps) {\n return (\n <div\n role=\"status\"\n aria-live=\"polite\"\n className={clsx(\"widget-loading-state\", className)}\n {...props}\n >\n <IconLoader size=\"24\" className=\"widget-loading-state-spinner\" />\n <span className=\"widget-loading-state-message\">{message}</span>\n </div>\n );\n}\n"],"names":["WidgetLoadingState","message","className","props","jsxs","clsx","jsx","IconLoader"],"mappings":";;;;AASO,SAASA,EAAmB;AAAA,EACjC,SAAAC;AAAA,EACA,WAAAC;AAAA,EACA,GAAGC;AACL,GAA4B;AAC1B,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAK;AAAA,MACL,aAAU;AAAA,MACV,WAAWC,EAAK,wBAAwBH,CAAS;AAAA,MAChD,GAAGC;AAAA,MAEJ,UAAA;AAAA,QAAA,gBAAAG,EAACC,GAAA,EAAW,MAAK,MAAK,WAAU,gCAA+B;AAAA,QAC/D,gBAAAD,EAAC,QAAA,EAAK,WAAU,gCAAgC,UAAAL,EAAA,CAAQ;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAG9D;"}
@@ -0,0 +1,6 @@
1
+ import { type ComponentPropsWithoutRef } from "react";
2
+ import "./widget-empty-state.css";
3
+ export type WidgetEmptyStateProps = ComponentPropsWithoutRef<"div"> & {
4
+ message: string;
5
+ };
6
+ export declare function WidgetEmptyState({ message, className, ...props }: WidgetEmptyStateProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { type ComponentPropsWithoutRef } from "react";
2
+ import "./widget-error-state.css";
3
+ export type WidgetErrorStateProps = ComponentPropsWithoutRef<"div"> & {
4
+ message: string;
5
+ retryLabel: string;
6
+ onRetry?: () => void;
7
+ };
8
+ export declare function WidgetErrorState({ message, retryLabel, onRetry, className, ...props }: WidgetErrorStateProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { type ComponentPropsWithoutRef } from "react";
2
+ import "./widget-loading-state.css";
3
+ export type WidgetLoadingStateProps = ComponentPropsWithoutRef<"div"> & {
4
+ message: string;
5
+ };
6
+ export declare function WidgetLoadingState({ message, className, ...props }: WidgetLoadingStateProps): import("react/jsx-runtime").JSX.Element;
@@ -6,4 +6,7 @@ export * from "./FormModal/FormModal";
6
6
  export * from "./PageHeader/PageHeader";
7
7
  export * from "./Sidebar/Sidebar";
8
8
  export * from "./Widget/Widget";
9
+ export * from "./WidgetEmptyState/WidgetEmptyState";
10
+ export * from "./WidgetErrorState/WidgetErrorState";
9
11
  export * from "./WidgetGrid/WidgetGrid";
12
+ export * from "./WidgetLoadingState/WidgetLoadingState";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apipass/design-system",
3
- "version": "1.18.1",
3
+ "version": "1.19.0",
4
4
  "type": "module",
5
5
  "description": "APIPass React Design System",
6
6
  "sideEffects": [