@orangecheck/app-design 0.6.1 → 1.1.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 +23 -6
- package/dist/brand.js.map +1 -1
- package/dist/brand.mjs.map +1 -1
- package/dist/chrome.d.mts +78 -55
- package/dist/chrome.d.ts +78 -55
- package/dist/chrome.js +1100 -59
- package/dist/chrome.js.map +1 -1
- package/dist/chrome.mjs +1091 -61
- package/dist/chrome.mjs.map +1 -1
- package/dist/code.d.mts +52 -0
- package/dist/code.d.ts +52 -0
- package/dist/code.js +534 -0
- package/dist/code.js.map +1 -0
- package/dist/code.mjs +522 -0
- package/dist/code.mjs.map +1 -0
- package/dist/components.d.mts +216 -42
- package/dist/components.d.ts +216 -42
- package/dist/components.js +3350 -100
- package/dist/components.js.map +1 -1
- package/dist/components.mjs +3293 -103
- package/dist/components.mjs.map +1 -1
- package/dist/docs-DhnstueM.d.ts +219 -0
- package/dist/docs-DiR6s43s.d.mts +219 -0
- package/dist/family.d.mts +2 -0
- package/dist/family.d.ts +2 -0
- package/dist/family.js +167 -0
- package/dist/family.js.map +1 -0
- package/dist/family.mjs +154 -0
- package/dist/family.mjs.map +1 -0
- package/dist/format.d.mts +12 -0
- package/dist/format.d.ts +12 -0
- package/dist/format.js +65 -0
- package/dist/format.js.map +1 -0
- package/dist/format.mjs +58 -0
- package/dist/format.mjs.map +1 -0
- package/dist/hero-Dn37il-9.d.mts +31 -0
- package/dist/hero-Dn37il-9.d.ts +31 -0
- package/dist/index-C6hDqOOS.d.mts +58 -0
- package/dist/index-C6hDqOOS.d.ts +58 -0
- package/dist/index.d.mts +12 -3
- package/dist/index.d.ts +12 -3
- package/dist/index.js +4319 -295
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4219 -298
- package/dist/index.mjs.map +1 -1
- package/dist/mdx.d.mts +58 -0
- package/dist/mdx.d.ts +58 -0
- package/dist/mdx.js +1712 -0
- package/dist/mdx.js.map +1 -0
- package/dist/mdx.mjs +1685 -0
- package/dist/mdx.mjs.map +1 -0
- package/dist/primitives.d.mts +73 -5
- package/dist/primitives.d.ts +73 -5
- package/dist/primitives.js +331 -8
- package/dist/primitives.js.map +1 -1
- package/dist/primitives.mjs +320 -11
- package/dist/primitives.mjs.map +1 -1
- package/dist/session.d.mts +18 -0
- package/dist/session.d.ts +18 -0
- package/dist/session.js +432 -0
- package/dist/session.js.map +1 -0
- package/dist/session.mjs +401 -0
- package/dist/session.mjs.map +1 -0
- package/dist/status-badge-BEOxeY9j.d.ts +13 -0
- package/dist/status-badge-DRwGhB0h.d.mts +13 -0
- package/dist/styles/code.css +97 -0
- package/dist/styles/fonts.css +1 -1
- package/dist/styles/theme.css +2 -0
- package/dist/styles/tokens.css +44 -2
- package/dist/styles.css +1 -0
- package/dist/tokens.d.mts +3 -1
- package/dist/tokens.d.ts +3 -1
- package/dist/tokens.js +5 -3
- package/dist/tokens.js.map +1 -1
- package/dist/tokens.mjs +5 -3
- package/dist/tokens.mjs.map +1 -1
- package/dist/tool-shell-B1C7ahKE.d.ts +81 -0
- package/dist/tool-shell-BDx_N5ai.d.mts +81 -0
- package/dist/tools-BggNN5DV.d.ts +131 -0
- package/dist/tools-DFIxIj5p.d.mts +131 -0
- package/package.json +38 -2
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { Network } from './format.mjs';
|
|
4
|
+
|
|
5
|
+
declare function ArtifactView({ content, title, filename, mime, defaultView, maxLines, className, }: {
|
|
6
|
+
content: string;
|
|
7
|
+
title?: ReactNode;
|
|
8
|
+
filename?: string;
|
|
9
|
+
mime?: string;
|
|
10
|
+
defaultView?: 'formatted' | 'raw';
|
|
11
|
+
maxLines?: number;
|
|
12
|
+
className?: string;
|
|
13
|
+
}): react.JSX.Element;
|
|
14
|
+
interface ChosenFile {
|
|
15
|
+
name: string;
|
|
16
|
+
size: number;
|
|
17
|
+
type?: string;
|
|
18
|
+
}
|
|
19
|
+
declare function DropZone({ onFile, onText, accept, title, hint, privacy, file, progress, progressLabel, onClear, error, disabled, className, }: {
|
|
20
|
+
onFile: (file: File) => void;
|
|
21
|
+
onText?: (text: string) => void;
|
|
22
|
+
accept?: string;
|
|
23
|
+
title?: ReactNode;
|
|
24
|
+
hint?: ReactNode;
|
|
25
|
+
privacy?: ReactNode;
|
|
26
|
+
file?: ChosenFile | null;
|
|
27
|
+
progress?: number | null;
|
|
28
|
+
progressLabel?: ReactNode;
|
|
29
|
+
onClear?: () => void;
|
|
30
|
+
error?: ReactNode;
|
|
31
|
+
disabled?: boolean;
|
|
32
|
+
className?: string;
|
|
33
|
+
}): react.JSX.Element;
|
|
34
|
+
type SectionStatus = 'done' | 'current' | 'upcoming' | 'blocked';
|
|
35
|
+
declare function FormSection({ n, title, hint, status, action, as: Heading, id, children, className, }: {
|
|
36
|
+
n?: number;
|
|
37
|
+
title: ReactNode;
|
|
38
|
+
hint?: ReactNode;
|
|
39
|
+
status?: SectionStatus;
|
|
40
|
+
action?: ReactNode;
|
|
41
|
+
as?: 'h2' | 'h3';
|
|
42
|
+
id?: string;
|
|
43
|
+
children?: ReactNode;
|
|
44
|
+
className?: string;
|
|
45
|
+
}): react.JSX.Element;
|
|
46
|
+
type StateTone = 'good' | 'attention' | 'bad' | 'neutral' | 'quiet';
|
|
47
|
+
declare function StateBadge({ tone, children, title, className, }: {
|
|
48
|
+
tone?: StateTone;
|
|
49
|
+
children: ReactNode;
|
|
50
|
+
title?: string;
|
|
51
|
+
className?: string;
|
|
52
|
+
}): react.JSX.Element;
|
|
53
|
+
interface StateDef {
|
|
54
|
+
label: string;
|
|
55
|
+
tone: StateTone;
|
|
56
|
+
hint?: string;
|
|
57
|
+
}
|
|
58
|
+
declare function createStateBadge<S extends string>(states: Record<S, StateDef>): ({ state, className }: {
|
|
59
|
+
state: S;
|
|
60
|
+
className?: string;
|
|
61
|
+
}) => react.JSX.Element;
|
|
62
|
+
declare function BlockHeight({ height, label, link, network, className, }: {
|
|
63
|
+
height: number;
|
|
64
|
+
label?: boolean;
|
|
65
|
+
link?: boolean;
|
|
66
|
+
network?: Network;
|
|
67
|
+
className?: string;
|
|
68
|
+
}): react.JSX.Element;
|
|
69
|
+
type AnchorState = 'anchored' | 'pending' | 'unverified' | 'none' | 'fail';
|
|
70
|
+
declare function AnchorStatus({ state, blockHeight, blockTime, submittedAt, calendar, message, network, variant, className, }: {
|
|
71
|
+
state: AnchorState;
|
|
72
|
+
blockHeight?: number;
|
|
73
|
+
blockTime?: number | Date | string;
|
|
74
|
+
submittedAt?: number | Date | string;
|
|
75
|
+
calendar?: string;
|
|
76
|
+
message?: ReactNode;
|
|
77
|
+
network?: Network;
|
|
78
|
+
variant?: 'detail' | 'badge';
|
|
79
|
+
className?: string;
|
|
80
|
+
}): react.JSX.Element;
|
|
81
|
+
declare function BlockCountdown({ target, tip, from, reached, minutesPerBlock, network, className, }: {
|
|
82
|
+
target: number;
|
|
83
|
+
tip?: number | null;
|
|
84
|
+
from?: number;
|
|
85
|
+
reached?: string;
|
|
86
|
+
minutesPerBlock?: number;
|
|
87
|
+
network?: Network;
|
|
88
|
+
className?: string;
|
|
89
|
+
}): react.JSX.Element;
|
|
90
|
+
declare function Meter({ value, max, ghost, label, figure, tone, size, className, }: {
|
|
91
|
+
value: number;
|
|
92
|
+
max: number;
|
|
93
|
+
ghost?: number;
|
|
94
|
+
label: ReactNode;
|
|
95
|
+
figure?: ReactNode;
|
|
96
|
+
tone?: 'ink' | 'brand';
|
|
97
|
+
size?: 'md' | 'sm';
|
|
98
|
+
className?: string;
|
|
99
|
+
}): react.JSX.Element;
|
|
100
|
+
interface FilterOption<T extends string> {
|
|
101
|
+
value: T;
|
|
102
|
+
label: ReactNode;
|
|
103
|
+
count?: number;
|
|
104
|
+
}
|
|
105
|
+
declare function FilterChips<T extends string>({ options, value, onChange, label, className, }: {
|
|
106
|
+
options: FilterOption<T>[];
|
|
107
|
+
label: string;
|
|
108
|
+
className?: string;
|
|
109
|
+
} & ({
|
|
110
|
+
multiple?: false;
|
|
111
|
+
value: NoInfer<T>;
|
|
112
|
+
onChange: (v: NoInfer<T>) => void;
|
|
113
|
+
} | {
|
|
114
|
+
multiple: true;
|
|
115
|
+
value: NoInfer<T>[];
|
|
116
|
+
onChange: (v: NoInfer<T>[]) => void;
|
|
117
|
+
})): react.JSX.Element;
|
|
118
|
+
interface ToolItem {
|
|
119
|
+
href: string;
|
|
120
|
+
label: string;
|
|
121
|
+
icon?: ReactNode;
|
|
122
|
+
description?: ReactNode;
|
|
123
|
+
active?: boolean;
|
|
124
|
+
}
|
|
125
|
+
declare function ToolGrid({ tools, as: Heading, className, }: {
|
|
126
|
+
tools: readonly ToolItem[];
|
|
127
|
+
as?: 'h2' | 'h3';
|
|
128
|
+
className?: string;
|
|
129
|
+
}): react.JSX.Element;
|
|
130
|
+
|
|
131
|
+
export { type AnchorState as A, BlockCountdown as B, type ChosenFile as C, DropZone as D, FilterChips as F, Meter as M, type SectionStatus as S, ToolGrid as T, AnchorStatus as a, ArtifactView as b, BlockHeight as c, type FilterOption as d, FormSection as e, StateBadge as f, type StateDef as g, type StateTone as h, type ToolItem as i, createStateBadge as j };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orangecheck/app-design",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "The ochk.app design system: tokens, type, the isometric check, halftone photography, primitives and app chrome. Its own system, scoped under data-oc-app=\"ochk\" so it never reaches the .ochk.io family sites.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"orangecheck",
|
|
@@ -55,6 +55,31 @@
|
|
|
55
55
|
"import": "./dist/chrome.mjs",
|
|
56
56
|
"require": "./dist/chrome.js"
|
|
57
57
|
},
|
|
58
|
+
"./family": {
|
|
59
|
+
"types": "./dist/family.d.ts",
|
|
60
|
+
"import": "./dist/family.mjs",
|
|
61
|
+
"require": "./dist/family.js"
|
|
62
|
+
},
|
|
63
|
+
"./code": {
|
|
64
|
+
"types": "./dist/code.d.ts",
|
|
65
|
+
"import": "./dist/code.mjs",
|
|
66
|
+
"require": "./dist/code.js"
|
|
67
|
+
},
|
|
68
|
+
"./format": {
|
|
69
|
+
"types": "./dist/format.d.ts",
|
|
70
|
+
"import": "./dist/format.mjs",
|
|
71
|
+
"require": "./dist/format.js"
|
|
72
|
+
},
|
|
73
|
+
"./mdx": {
|
|
74
|
+
"types": "./dist/mdx.d.ts",
|
|
75
|
+
"import": "./dist/mdx.mjs",
|
|
76
|
+
"require": "./dist/mdx.js"
|
|
77
|
+
},
|
|
78
|
+
"./session": {
|
|
79
|
+
"types": "./dist/session.d.ts",
|
|
80
|
+
"import": "./dist/session.mjs",
|
|
81
|
+
"require": "./dist/session.js"
|
|
82
|
+
},
|
|
58
83
|
"./styles.css": "./dist/styles.css",
|
|
59
84
|
"./styles/*": "./dist/styles/*"
|
|
60
85
|
},
|
|
@@ -66,7 +91,7 @@
|
|
|
66
91
|
"scripts": {
|
|
67
92
|
"build": "tsup && yarn copy:css",
|
|
68
93
|
"copy:css": "rm -rf dist/styles && mkdir -p dist/styles && cp src/styles.css dist/styles.css && cp -R src/styles/. dist/styles/",
|
|
69
|
-
"test": "node scripts/check-contrast.mjs && node scripts/check-isolation.mjs && node scripts/check-shell.mjs",
|
|
94
|
+
"test": "node scripts/check-contrast.mjs && node scripts/check-isolation.mjs && node scripts/check-shell.mjs && node scripts/check-mirror.mjs && node scripts/check-code.mjs && node scripts/check-entries.mjs && node scripts/check-render.mjs",
|
|
70
95
|
"dev": "tsup --watch",
|
|
71
96
|
"type-check": "tsc --noEmit",
|
|
72
97
|
"clean": "rm -rf dist"
|
|
@@ -89,20 +114,31 @@
|
|
|
89
114
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
90
115
|
"class-variance-authority": "^0.7.1",
|
|
91
116
|
"clsx": "^2.1.1",
|
|
117
|
+
"qrcode": "^1.5.4",
|
|
92
118
|
"sonner": "^2.0.7",
|
|
93
119
|
"tailwind-merge": "^3.3.1"
|
|
94
120
|
},
|
|
95
121
|
"peerDependencies": {
|
|
122
|
+
"@orangecheck/auth-client": "^2.32.0",
|
|
96
123
|
"lucide-react": ">=0.400.0",
|
|
97
124
|
"next": "^15.0.0 || ^16.0.0",
|
|
98
125
|
"next-themes": "^0.4.0",
|
|
99
126
|
"react": "^18.0.0 || ^19.0.0",
|
|
100
127
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
101
128
|
},
|
|
129
|
+
"peerDependenciesMeta": {
|
|
130
|
+
"@orangecheck/auth-client": {
|
|
131
|
+
"optional": true
|
|
132
|
+
}
|
|
133
|
+
},
|
|
102
134
|
"devDependencies": {
|
|
135
|
+
"@orangecheck/auth-client": "^2.32.3",
|
|
136
|
+
"@orangecheck/auth-core": "^2.5.0",
|
|
137
|
+
"@types/qrcode": "^1.5.5",
|
|
103
138
|
"@types/react": "^19.0.0",
|
|
104
139
|
"@types/react-dom": "^19.0.0",
|
|
105
140
|
"lucide-react": "^0.544.0",
|
|
141
|
+
"mermaid": "^11.14.0",
|
|
106
142
|
"next": "^16.3.8",
|
|
107
143
|
"next-themes": "^0.4.6",
|
|
108
144
|
"react": "19.1.0",
|