@dapplelight/signet-ui 0.5.4 → 0.5.5

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,27 @@
1
+ import * as React from "react";
2
+ type ActionRowTone = "neutral" | "ask" | "warn";
3
+ declare function ActionRowRoot({ tone, className, ...props }: React.ComponentProps<"div"> & {
4
+ tone?: ActionRowTone;
5
+ }): React.JSX.Element;
6
+ declare function ActionRowIcon({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
7
+ declare function ActionRowBody({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
8
+ declare function ActionRowTitle({ className, ...props }: React.ComponentProps<"p">): React.JSX.Element;
9
+ declare function ActionRowDescription({ className, ...props }: React.ComponentProps<"p">): React.JSX.Element;
10
+ declare function ActionRowActions({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
11
+ interface ActionRowProps extends Omit<React.ComponentProps<"div">, "title"> {
12
+ tone?: ActionRowTone;
13
+ icon?: React.ReactNode;
14
+ title: React.ReactNode;
15
+ description?: React.ReactNode;
16
+ actions?: React.ReactNode;
17
+ classNames?: {
18
+ icon?: string;
19
+ body?: string;
20
+ title?: string;
21
+ description?: string;
22
+ actions?: string;
23
+ };
24
+ }
25
+ declare function ActionRow({ tone, icon, title, description, actions, classNames, className, ...props }: ActionRowProps): React.JSX.Element;
26
+ export { ActionRow, ActionRowActions, ActionRowBody, ActionRowDescription, ActionRowIcon, type ActionRowProps, ActionRowRoot, ActionRowTitle, type ActionRowTone, };
27
+ //# sourceMappingURL=action-row.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action-row.d.ts","sourceRoot":"","sources":["../../../src/components/ui/action-row.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,KAAK,aAAa,GAAG,SAAS,GAAG,KAAK,GAAG,MAAM,CAAA;AAE/C,iBAAS,aAAa,CAAC,EACrB,IAAgB,E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iBAAS,SAAS,CAAC,EACjB,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,WAAW,EACX,OAAO,EACP,UAAU,EACV,SAAS,EACT,GAAG,KAAK,EACT,EAAE,cAAc,qBAwBhB;AAED,OAAO,EACL,SAAS,EACT,gBAAgB,EAChB,aAAa,EACb,oBAAoB,EACpB,aAAa,EACb,KAAK,cAAc,EACnB,aAAa,EACb,cAAc,EACd,KAAK,aAAa,GACnB,CAAA"}
@@ -0,0 +1,27 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import { cn } from "../../lib/utils.js";
4
+ function ActionRowRoot({ tone = "neutral", className, ...props }) {
5
+ return (_jsx("div", { "data-slot": "action-row", "data-tone": tone, className: cn("group/action-row flex min-w-0 flex-col gap-3 rounded-xl border bg-bg-surface p-4 sm:flex-row sm:items-center sm:gap-4", tone === "neutral" && "border-border-subtle", tone === "ask" && "border-primary/40 bg-primary/5", tone === "warn" && "border-accent-amber/50 bg-accent-amber-subtle", className), ...props }));
6
+ }
7
+ function ActionRowIcon({ className, ...props }) {
8
+ return (_jsx("span", { "data-slot": "action-row-icon", "aria-hidden": "true", className: cn("flex size-5 shrink-0 items-center justify-center text-text-muted [&_svg:not([class*='size-'])]:size-5", "group-data-[tone=ask]/action-row:text-primary group-data-[tone=warn]/action-row:text-accent-amber", className), ...props }));
9
+ }
10
+ function ActionRowBody({ className, ...props }) {
11
+ return _jsx("div", { "data-slot": "action-row-body", className: cn("min-w-0 flex-1", className), ...props });
12
+ }
13
+ function ActionRowTitle({ className, ...props }) {
14
+ return (_jsx("p", { "data-slot": "action-row-title", className: cn("text-body font-medium text-text-primary", className), ...props }));
15
+ }
16
+ function ActionRowDescription({ className, ...props }) {
17
+ return (_jsx("p", { "data-slot": "action-row-description", className: cn("text-caption text-text-secondary", className), ...props }));
18
+ }
19
+ function ActionRowActions({ className, ...props }) {
20
+ return (_jsx("div", { "data-slot": "action-row-actions", className: cn("flex shrink-0 flex-col gap-2 sm:flex-row sm:items-center", "max-sm:[&_[data-slot=button]]:min-h-11 max-sm:[&_[data-slot=button]]:w-full", className), ...props }));
21
+ }
22
+ function ActionRow({ tone, icon, title, description, actions, classNames, className, ...props }) {
23
+ const titleId = React.useId();
24
+ return (_jsxs(ActionRowRoot, { role: "group", "aria-labelledby": titleId, tone: tone, className: className, ...props, children: [icon && _jsx(ActionRowIcon, { className: classNames?.icon, children: icon }), _jsxs(ActionRowBody, { className: classNames?.body, children: [_jsx(ActionRowTitle, { id: titleId, className: classNames?.title, children: title }), description && (_jsx(ActionRowDescription, { className: classNames?.description, children: description }))] }), actions && _jsx(ActionRowActions, { className: classNames?.actions, children: actions })] }));
25
+ }
26
+ export { ActionRow, ActionRowActions, ActionRowBody, ActionRowDescription, ActionRowIcon, ActionRowRoot, ActionRowTitle, };
27
+ //# sourceMappingURL=action-row.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action-row.js","sourceRoot":"","sources":["../../../src/components/ui/action-row.tsx"],"names":[],"mappings":";AAIA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAA;AAIvC,SAAS,aAAa,CAAC,EACrB,IAAI,GAAG,SAAS,EAChB,SAAS,EACT,GAAG,KAAK,EAC+C;IACvD,OAAO,CACL,2BACY,YAAY,eACX,IAAI,EACf,SAAS,EAAE,EAAE,CACX,uHAAuH,EACvH,IAAI,KAAK,SAAS,IAAI,sBAAsB,EAC5C,IAAI,KAAK,KAAK,IAAI,gCAAgC,EAClD,IAAI,KAAK,MAAM,IAAI,+CAA+C,EAClE,SAAS,CACV,KACG,KAAK,GACT,CACH,CAAA;AACH,CAAC;AAED,SAAS,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAgC;IAC1E,OAAO,CACL,4BACY,iBAAiB,iBACf,MAAM,EAClB,SAAS,EAAE,EAAE,CACX,uGAAuG,EACvG,mGAAmG,EAC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AAS,EAAE,UAAU,EAAE,IAAI,aACxC,KAAC,cAAc,IAAC,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,YACtD,KAAK,GACS,EAChB,WAAW,IAAI,CACd,KAAC,oBAAoB,IAAC,SAAS,EAAE,UAAU,EAAE,WAAW,YACrD,WAAW,GACS,CACxB,IACa,EACf,OAAO,IAAI,KAAC,gBAAgB,IAAC,SAAS,EAAE,UAAU,EAAE,OAAO,YAAG,OAAO,GAAoB,IAC5E,CACjB,CAAA;AACH,CAAC;AAED,OAAO,EACL,SAAS,EACT,gBAAgB,EAChB,aAAa,EACb,oBAAoB,EACpB,aAAa,EAEb,aAAa,EACb,cAAc,GAEf,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dapplelight/signet-ui",
3
- "version": "0.5.4",
3
+ "version": "0.5.5",
4
4
  "license": "MIT",
5
5
  "description": "Signet component kit — token-driven React primitives.",
6
6
  "keywords": [
@@ -58,6 +58,10 @@
58
58
  "types": "./dist/hooks/use-channel.d.ts",
59
59
  "import": "./dist/hooks/use-channel.js"
60
60
  },
61
+ "./components/action-row": {
62
+ "types": "./dist/components/ui/action-row.d.ts",
63
+ "import": "./dist/components/ui/action-row.js"
64
+ },
61
65
  "./components/alert": {
62
66
  "types": "./dist/components/ui/alert.d.ts",
63
67
  "import": "./dist/components/ui/alert.js"
@@ -425,7 +429,7 @@
425
429
  },
426
430
  "scripts": {
427
431
  "typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.test.json",
428
- "test": "bun run test/ui.tsx && bun run test/labels.tsx && bun run test/dom.tsx && bun run test/data-table.tsx && bun run test/shortcuts.tsx && bun run test/schema-form.tsx && bun run test/markdown.tsx && bun run test/dom2.tsx && bun run test/domain.tsx && bun run test/basics.tsx && bun run test/behaviors.tsx && bun run test/screens-user.tsx && bun run test/screens-admin.tsx && bun run test/screens-billing.tsx && bun run test/screens-monetisation.tsx && bun run test/screens-growth.tsx && bun run test/screens-api.tsx && bun run test/screens-orgs.tsx && bun run test/screens-workflow.tsx && bun run test/screens-collab.tsx && bun run test/ui-domain.tsx && bun run test/metric-headline.tsx && bun run test/realtime.tsx && bun run test/data-edit.tsx && bun run test/screens-experiments.tsx && bun run test/screens-abuse.tsx && bun run test/screens-funnels.tsx && bun run test/screens-charts.tsx && bun run test/screens-cost.tsx &&bun run test/screens-growth.tsx && bun run test/blocks.tsx",
432
+ "test": "bun run test/ui.tsx && bun run test/labels.tsx && bun run test/dom.tsx && bun run test/data-table.tsx && bun run test/shortcuts.tsx && bun run test/schema-form.tsx && bun run test/markdown.tsx && bun run test/dom2.tsx && bun run test/domain.tsx && bun run test/basics.tsx && bun run test/behaviors.tsx && bun run test/screens-user.tsx && bun run test/screens-admin.tsx && bun run test/screens-billing.tsx && bun run test/screens-monetisation.tsx && bun run test/screens-growth.tsx && bun run test/screens-api.tsx && bun run test/screens-orgs.tsx && bun run test/screens-workflow.tsx && bun run test/screens-collab.tsx && bun run test/ui-domain.tsx && bun run test/metric-headline.tsx && bun run test/action-row.tsx &&bun run test/realtime.tsx && bun run test/data-edit.tsx && bun run test/screens-experiments.tsx && bun run test/screens-abuse.tsx && bun run test/screens-funnels.tsx && bun run test/screens-charts.tsx && bun run test/screens-cost.tsx &&bun run test/screens-growth.tsx && bun run test/blocks.tsx",
429
433
  "build": "tsc -p tsconfig.build.json",
430
434
  "prepublishOnly": "bun run build"
431
435
  },