@orangecheck/app-design 1.2.2 → 1.3.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/README.md +6 -0
- package/dist/chrome.d.mts +1 -1
- package/dist/chrome.d.ts +1 -1
- package/dist/chrome.js +27 -4
- package/dist/chrome.js.map +1 -1
- package/dist/chrome.mjs +28 -6
- package/dist/chrome.mjs.map +1 -1
- package/dist/components.d.mts +1 -1
- package/dist/components.d.ts +1 -1
- package/dist/components.js +11 -9
- package/dist/components.js.map +1 -1
- package/dist/components.mjs +12 -10
- package/dist/components.mjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +37 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +38 -14
- package/dist/index.mjs.map +1 -1
- package/dist/mdx.js +1 -1
- package/dist/mdx.js.map +1 -1
- package/dist/mdx.mjs +1 -1
- package/dist/mdx.mjs.map +1 -1
- package/dist/primitives.d.mts +9 -3
- package/dist/primitives.d.ts +9 -3
- package/dist/primitives.js +7 -6
- package/dist/primitives.js.map +1 -1
- package/dist/primitives.mjs +7 -6
- package/dist/primitives.mjs.map +1 -1
- package/dist/session.d.mts +4 -3
- package/dist/session.d.ts +4 -3
- package/dist/session.js +28 -4
- package/dist/session.js.map +1 -1
- package/dist/session.mjs +28 -4
- package/dist/session.mjs.map +1 -1
- package/dist/{tool-shell-DLSwUxTD.d.ts → tool-shell-Be4Q0cNN.d.ts} +5 -3
- package/dist/{tool-shell-kqGWMTep.d.mts → tool-shell-zncroOEQ.d.mts} +5 -3
- package/package.json +2 -2
package/dist/components.d.mts
CHANGED
|
@@ -717,7 +717,7 @@ declare function LegalDocument({ doc, className }: {
|
|
|
717
717
|
className?: string;
|
|
718
718
|
}): react.JSX.Element;
|
|
719
719
|
|
|
720
|
-
type CheckState = 'ok' | 'fail' | 'pending' | 'skipped' | 'unchecked';
|
|
720
|
+
type CheckState = 'ok' | 'fail' | 'pending' | 'none' | 'skipped' | 'unchecked';
|
|
721
721
|
interface VerifyCheck {
|
|
722
722
|
label: ReactNode;
|
|
723
723
|
state: CheckState;
|
package/dist/components.d.ts
CHANGED
|
@@ -717,7 +717,7 @@ declare function LegalDocument({ doc, className }: {
|
|
|
717
717
|
className?: string;
|
|
718
718
|
}): react.JSX.Element;
|
|
719
719
|
|
|
720
|
-
type CheckState = 'ok' | 'fail' | 'pending' | 'skipped' | 'unchecked';
|
|
720
|
+
type CheckState = 'ok' | 'fail' | 'pending' | 'none' | 'skipped' | 'unchecked';
|
|
721
721
|
interface VerifyCheck {
|
|
722
722
|
label: ReactNode;
|
|
723
723
|
state: CheckState;
|
package/dist/components.js
CHANGED
|
@@ -10,7 +10,7 @@ var lucideReact = require('lucide-react');
|
|
|
10
10
|
var reactSlot = require('@radix-ui/react-slot');
|
|
11
11
|
var SeparatorPrimitive = require('@radix-ui/react-separator');
|
|
12
12
|
require('sonner');
|
|
13
|
-
var Link = require('next/link
|
|
13
|
+
var Link = require('next/link');
|
|
14
14
|
var CheckboxPrimitive = require('@radix-ui/react-checkbox');
|
|
15
15
|
var LabelPrimitive = require('@radix-ui/react-label');
|
|
16
16
|
var RadioGroupPrimitive = require('@radix-ui/react-radio-group');
|
|
@@ -2973,16 +2973,17 @@ var Label = react.forwardRef(function Label2({ className, ...props }, ref) {
|
|
|
2973
2973
|
}
|
|
2974
2974
|
);
|
|
2975
2975
|
});
|
|
2976
|
-
function Field({ label, hint, optional, error, children, className, hideLabel, action }) {
|
|
2977
|
-
const
|
|
2976
|
+
function Field({ label, hint, optional, error, children, id: fixedId, className, hideLabel, action }) {
|
|
2977
|
+
const generated = react.useId();
|
|
2978
|
+
const id = fixedId ?? generated;
|
|
2978
2979
|
const hintId = hint ? `${id}-hint` : void 0;
|
|
2979
2980
|
const errorId = error ? `${id}-error` : void 0;
|
|
2980
|
-
const
|
|
2981
|
-
const control = react.isValidElement(children) ? react.cloneElement(children, {
|
|
2981
|
+
const wiring = {
|
|
2982
2982
|
id,
|
|
2983
|
-
"aria-describedby":
|
|
2983
|
+
"aria-describedby": [hintId, errorId].filter(Boolean).join(" ") || void 0,
|
|
2984
2984
|
"aria-invalid": error ? true : void 0
|
|
2985
|
-
}
|
|
2985
|
+
};
|
|
2986
|
+
const control = typeof children === "function" ? children(wiring) : react.isValidElement(children) ? react.cloneElement(children, { ...wiring }) : children;
|
|
2986
2987
|
const hintNode = hint ? /* @__PURE__ */ jsxRuntime.jsx("p", { id: hintId, className: "text-[0.8125rem] leading-snug text-muted-foreground", children: hint }) : null;
|
|
2987
2988
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("flex flex-col gap-2", className), children: [
|
|
2988
2989
|
/* @__PURE__ */ jsxRuntime.jsxs(Label, { htmlFor: id, className: hideLabel ? "sr-only" : "flex items-baseline gap-2", children: [
|
|
@@ -3355,6 +3356,7 @@ var CHECK = {
|
|
|
3355
3356
|
ok: { word: "Passed", icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CircleCheck, {}), tone: "text-success" },
|
|
3356
3357
|
fail: { word: "Failed", icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CircleX, {}), tone: "text-destructive" },
|
|
3357
3358
|
pending: { word: "Pending", icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Clock, {}), tone: "text-oca-accent-ink" },
|
|
3359
|
+
none: { word: "None", icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CircleSlash, {}), tone: "text-muted-foreground" },
|
|
3358
3360
|
skipped: { word: "Skipped", icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CircleMinus, {}), tone: "text-muted-foreground" },
|
|
3359
3361
|
unchecked: { word: "Not checked", icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CircleDashed, {}), tone: "text-oca-subtle" }
|
|
3360
3362
|
};
|
|
@@ -3377,8 +3379,8 @@ function VerifyReport({
|
|
|
3377
3379
|
children: [
|
|
3378
3380
|
/* @__PURE__ */ jsxRuntime.jsxs("header", { className: "flex flex-col items-start gap-3 p-6 md:p-8", children: [
|
|
3379
3381
|
/* @__PURE__ */ jsxRuntime.jsx(StatusBadge, { status: verdict }),
|
|
3380
|
-
/* @__PURE__ */ jsxRuntime.jsx(Heading, { className: "oca-display-3", children: title }),
|
|
3381
|
-
summary ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "oca-body max-w-[40rem]", children: summary }) : null
|
|
3382
|
+
/* @__PURE__ */ jsxRuntime.jsx(Heading, { className: "oca-display-3 [overflow-wrap:anywhere]", children: title }),
|
|
3383
|
+
summary ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "oca-body max-w-[40rem] [overflow-wrap:anywhere]", children: summary }) : null
|
|
3382
3384
|
] }),
|
|
3383
3385
|
/* @__PURE__ */ jsxRuntime.jsx("ul", { "aria-label": "Checks", className: "divide-y divide-border border-t border-border", children: checks.map((c, i) => {
|
|
3384
3386
|
const k = CHECK[c.state];
|