@nadicodeai/ui 6.6.0 → 6.6.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-status.d.ts","sourceRoot":"","sources":["../../src/components/action-status.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"action-status.d.ts","sourceRoot":"","sources":["../../src/components/action-status.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,UAAU,iBAAiB;IACzB,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AACD,iBAAS,YAAY,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,QAAe,EAAE,EAAE,iBAAiB,+BAapF;AACD,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { CheckIcon
|
|
2
|
+
import { CheckIcon } from "lucide-react";
|
|
3
|
+
import { ActivityOrb } from "./activity-orb.js";
|
|
3
4
|
function ActionStatus({ state, idle, busy, done, idleIcon = null }) {
|
|
4
|
-
return (_jsxs(_Fragment, { children: [state === "saving" ? (_jsx(
|
|
5
|
+
return (_jsxs(_Fragment, { children: [state === "saving" ? (_jsx(ActivityOrb, { activity: "processing", "data-icon": "inline-start", decorative: true })) : state === "done" ? (_jsx(CheckIcon, { "aria-hidden": "true", "data-icon": "inline-start" })) : (idleIcon), state === "saving" ? busy : state === "done" ? done : idle] }));
|
|
5
6
|
}
|
|
6
7
|
export { ActionStatus };
|
package/docs/activity.md
CHANGED
|
@@ -65,6 +65,10 @@ Use 20 CSS pixels inline, including buttons and rows with room for that size;
|
|
|
65
65
|
separately tuned, and must not be obtained by shrinking the 64 preset. The 88
|
|
66
66
|
extent uses the 64 preset. A 12–16 pixel badge slot keeps its existing compact
|
|
67
67
|
spinner until its surrounding component explicitly accommodates this family.
|
|
68
|
+
Nadia's desktop accommodates it once, in the spinner itself: the spinner's box
|
|
69
|
+
stays one text line tall and at least 20 pixels wide, and the 20 pixel orb sits
|
|
70
|
+
centred in it and overhangs it above and below, so a row keeps its height and
|
|
71
|
+
the orb never meets the text beside it.
|
|
68
72
|
|
|
69
73
|
## React
|
|
70
74
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nadicodeai/ui",
|
|
3
|
-
"version": "6.6.
|
|
3
|
+
"version": "6.6.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"@assistant-ui/react": "0.15.18",
|
|
71
71
|
"@assistant-ui/react-markdown": "0.14.14",
|
|
72
72
|
"@base-ui/react": "^1.8.0",
|
|
73
|
-
"@nadicodeai/design-system": "6.6.
|
|
73
|
+
"@nadicodeai/design-system": "6.6.1",
|
|
74
74
|
"@paper-design/shaders": "0.0.80",
|
|
75
75
|
"class-variance-authority": "^0.7.1",
|
|
76
76
|
"clsx": "^2.1.1",
|