@orangecheck/app-design 1.6.2 → 1.8.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 +3 -3
- package/dist/chrome.d.mts +11 -6
- package/dist/chrome.d.ts +11 -6
- package/dist/chrome.js +158 -129
- package/dist/chrome.js.map +1 -1
- package/dist/chrome.mjs +156 -130
- package/dist/chrome.mjs.map +1 -1
- package/dist/components.d.mts +75 -8
- package/dist/components.d.ts +75 -8
- package/dist/components.js +255 -12
- package/dist/components.js.map +1 -1
- package/dist/components.mjs +251 -14
- package/dist/components.mjs.map +1 -1
- package/dist/{docs-CFE5mU_6.d.mts → docs-B9G1BNXI.d.mts} +2 -2
- package/dist/{docs-ByUx4t-D.d.ts → docs-BWWnm5Jv.d.ts} +2 -2
- package/dist/family.d.mts +1 -1
- package/dist/family.d.ts +1 -1
- package/dist/family.js +7 -1
- package/dist/family.js.map +1 -1
- package/dist/family.mjs +5 -2
- package/dist/family.mjs.map +1 -1
- package/dist/{index-DmfyPYe5.d.mts → index-Bkl49Vgy.d.mts} +4 -1
- package/dist/{index-DmfyPYe5.d.ts → index-Bkl49Vgy.d.ts} +4 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +338 -66
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +327 -67
- package/dist/index.mjs.map +1 -1
- package/dist/mdx.d.mts +3 -3
- package/dist/mdx.d.ts +3 -3
- package/dist/mdx.js +15 -3
- package/dist/mdx.js.map +1 -1
- package/dist/mdx.mjs +15 -3
- package/dist/mdx.mjs.map +1 -1
- package/dist/primitives.d.mts +2 -2
- package/dist/primitives.d.ts +2 -2
- package/dist/primitives.js +2 -1
- package/dist/primitives.js.map +1 -1
- package/dist/primitives.mjs +2 -1
- package/dist/primitives.mjs.map +1 -1
- package/dist/session.d.mts +4 -4
- package/dist/session.d.ts +4 -4
- package/dist/session.js +124 -2
- package/dist/session.js.map +1 -1
- package/dist/session.mjs +124 -2
- package/dist/session.mjs.map +1 -1
- package/dist/{status-badge-BJ9Sdsx8.d.mts → status-badge-BBbCO6ZA.d.mts} +1 -1
- package/dist/{status-badge-Bt8x3RhO.d.ts → status-badge-CHHxtFkP.d.ts} +1 -1
- package/dist/styles/swagger.css +24 -1
- package/dist/styles/tokens.css +11 -0
- package/dist/{tool-shell-CQZNRUgH.d.mts → tool-shell-Cg51cRHJ.d.ts} +14 -4
- package/dist/{tool-shell-CRmceGrV.d.ts → tool-shell-Dxw5o2rH.d.mts} +14 -4
- package/dist/{tools-Bg1gi2HO.d.mts → tools-CKO8IseL.d.mts} +2 -2
- package/dist/{tools-Bw7RhO92.d.ts → tools-CzjFPng4.d.ts} +2 -2
- package/package.json +2 -2
package/dist/styles/swagger.css
CHANGED
|
@@ -206,11 +206,34 @@
|
|
|
206
206
|
}
|
|
207
207
|
|
|
208
208
|
/* Swagger UI sets its fields to 12-14px at a specificity that beats the system's
|
|
209
|
-
16px phone floor, so iOS zoomed on every focus. One class more wins here.
|
|
209
|
+
16px phone floor, so iOS zoomed on every focus. One class more wins here.
|
|
210
|
+
Its collapse arrows, the operation lock and the models toggle are 20-30px
|
|
211
|
+
targets; on a phone each reaches 44px, the glyphs unchanged. */
|
|
210
212
|
@media (width < 48rem) {
|
|
211
213
|
[data-oc-app='ochk'] .swagger-ui :is(input:not([type='checkbox'], [type='radio'], [type='file'], [type='hidden']), select, textarea) {
|
|
212
214
|
font-size: 16px;
|
|
213
215
|
}
|
|
216
|
+
[data-oc-app='ochk'] .swagger-ui :is(.expand-operation, .expand-methods, .opblock-control-arrow, .authorization__btn, .models-control) {
|
|
217
|
+
min-width: 44px;
|
|
218
|
+
min-height: 44px;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
/* The operation lock drew at 40% black when open: 2.8:1 on a tinted row in
|
|
223
|
+
light, 1.1:1 in dark. It takes the muted ink in both modes, open or shut;
|
|
224
|
+
the glyph says which. A parameter's place ("path") was grey at 3.5:1 and
|
|
225
|
+
"required" a 60% red; both take the system's inks. */
|
|
226
|
+
[data-oc-app='ochk'] .swagger-ui .authorization__btn svg {
|
|
227
|
+
fill: var(--muted-foreground);
|
|
228
|
+
opacity: 1;
|
|
229
|
+
}
|
|
230
|
+
[data-oc-app='ochk'] .swagger-ui .parameter__in,
|
|
231
|
+
[data-oc-app='ochk'] .swagger-ui .parameter__extension {
|
|
232
|
+
color: var(--muted-foreground);
|
|
233
|
+
}
|
|
234
|
+
[data-oc-app='ochk'] .swagger-ui .parameter__name.required span,
|
|
235
|
+
[data-oc-app='ochk'] .swagger-ui .parameter__name.required::after {
|
|
236
|
+
color: var(--destructive);
|
|
214
237
|
}
|
|
215
238
|
|
|
216
239
|
/* Swagger's method badges put white text on light fills (GET 2.3:1, POST 2.0:1,
|
package/dist/styles/tokens.css
CHANGED
|
@@ -81,6 +81,10 @@
|
|
|
81
81
|
--oca-chart-up: var(--success);
|
|
82
82
|
--oca-chart-down: var(--destructive);
|
|
83
83
|
--oca-chart-grid: var(--border);
|
|
84
|
+
/* Avatar: a person's tint, its hue from their seed, its lightness from the
|
|
85
|
+
mode. check-contrast holds the initials to AA at every hue. */
|
|
86
|
+
--oca-avatar-bg-l: 90%;
|
|
87
|
+
--oca-avatar-fg-l: 28%;
|
|
84
88
|
--oca-sphere-from: #ff6f33;
|
|
85
89
|
--oca-sphere-to: #ffd9c4;
|
|
86
90
|
--oca-outline: #f2cfc3;
|
|
@@ -138,6 +142,11 @@
|
|
|
138
142
|
--oc-signin-strong: 500;
|
|
139
143
|
/* Sentence-case labels carry no trailing arrow (auth-client ≥ 2.29). */
|
|
140
144
|
--oc-signin-arrow: none;
|
|
145
|
+
/* Role sizes for the ceremony (auth-client ≥ 2.33.4): app-design's body, hint, label and button sizes. */
|
|
146
|
+
--oc-signin-text-size: 0.9375rem;
|
|
147
|
+
--oc-signin-hint-size: 0.8125rem;
|
|
148
|
+
--oc-signin-label-size: 0.875rem;
|
|
149
|
+
--oc-signin-button-size: 0.9375rem;
|
|
141
150
|
|
|
142
151
|
/* The wallet picker and sign button (@orangecheck/wallet-adapter's
|
|
143
152
|
OcWalletPicker and OcWalletButton) in this design, read the same way:
|
|
@@ -219,6 +228,8 @@
|
|
|
219
228
|
--oca-chart-3: #f9a8d4;
|
|
220
229
|
--oca-chart-4: #fde047;
|
|
221
230
|
--oca-chart-neutral: #62676e;
|
|
231
|
+
--oca-avatar-bg-l: 22%;
|
|
232
|
+
--oca-avatar-fg-l: 82%;
|
|
222
233
|
--oca-outline: #3a2a24;
|
|
223
234
|
/* In dark the ink band lifts off the canvas, so the deck's rhythm survives. */
|
|
224
235
|
--oca-ink: #171717;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { i as ToolItem } from './tools-
|
|
4
|
-
import { d as FamilySlug,
|
|
3
|
+
import { i as ToolItem } from './tools-CzjFPng4.js';
|
|
4
|
+
import { d as FamilySlug, k as ProtocolSlug } from './index-Bkl49Vgy.js';
|
|
5
5
|
|
|
6
6
|
interface ShellNavItem {
|
|
7
7
|
href: string;
|
|
@@ -46,6 +46,10 @@ interface AccountMenuItem {
|
|
|
46
46
|
icon?: ReactNode;
|
|
47
47
|
destructive?: boolean;
|
|
48
48
|
}
|
|
49
|
+
declare function PaneHeader({ children, className }: {
|
|
50
|
+
children: ReactNode;
|
|
51
|
+
className?: string;
|
|
52
|
+
}): react.JSX.Element;
|
|
49
53
|
declare function AccountMenu({ name, detail, items, nameFrom, }: {
|
|
50
54
|
name: string;
|
|
51
55
|
detail?: string;
|
|
@@ -71,6 +75,11 @@ declare function SessionAccountView({ state, name, detail, items, signInHref, si
|
|
|
71
75
|
onSignOut?: () => void;
|
|
72
76
|
nameFrom?: 'sm' | 'lg';
|
|
73
77
|
}): react.JSX.Element;
|
|
78
|
+
declare function ToolColumn({ measure, className, children, }: {
|
|
79
|
+
measure?: 'wide' | 'narrow';
|
|
80
|
+
className?: string;
|
|
81
|
+
children: ReactNode;
|
|
82
|
+
}): react.JSX.Element;
|
|
74
83
|
interface ToolShellProps {
|
|
75
84
|
protocol: ProtocolSlug;
|
|
76
85
|
tools: readonly ToolItem[];
|
|
@@ -79,10 +88,11 @@ interface ToolShellProps {
|
|
|
79
88
|
rail?: boolean;
|
|
80
89
|
railFooter?: ReactNode;
|
|
81
90
|
variant?: 'tool' | 'app';
|
|
91
|
+
measure?: 'wide' | 'narrow';
|
|
82
92
|
banner?: ReactNode;
|
|
83
93
|
footer?: ReactNode | false;
|
|
84
94
|
children: ReactNode;
|
|
85
95
|
}
|
|
86
|
-
declare function ToolShell({ protocol, tools, home, account, rail, railFooter, variant, banner, footer, children, }: ToolShellProps): react.JSX.Element;
|
|
96
|
+
declare function ToolShell({ protocol, tools, home, account, rail, railFooter, variant, measure, banner, footer, children, }: ToolShellProps): react.JSX.Element;
|
|
87
97
|
|
|
88
|
-
export { AccountMenu as A, OCHK_APP_ACCOUNT as O, SessionAccountView as S, ThemeToggle as T, type AccountMenuItem as a, AppShell as b, type AppShellProps as c, type SessionState as d, type ShellNavGroup as e, type ShellNavItem as f, type ShellSection as g,
|
|
98
|
+
export { AccountMenu as A, OCHK_APP_ACCOUNT as O, PaneHeader as P, SessionAccountView as S, ThemeToggle as T, type AccountMenuItem as a, AppShell as b, type AppShellProps as c, type SessionState as d, type ShellNavGroup as e, type ShellNavItem as f, type ShellSection as g, ToolColumn as h, ToolShell as i, type ToolShellProps as j, useSignInHref as u };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { i as ToolItem } from './tools-
|
|
4
|
-
import { d as FamilySlug,
|
|
3
|
+
import { i as ToolItem } from './tools-CKO8IseL.mjs';
|
|
4
|
+
import { d as FamilySlug, k as ProtocolSlug } from './index-Bkl49Vgy.mjs';
|
|
5
5
|
|
|
6
6
|
interface ShellNavItem {
|
|
7
7
|
href: string;
|
|
@@ -46,6 +46,10 @@ interface AccountMenuItem {
|
|
|
46
46
|
icon?: ReactNode;
|
|
47
47
|
destructive?: boolean;
|
|
48
48
|
}
|
|
49
|
+
declare function PaneHeader({ children, className }: {
|
|
50
|
+
children: ReactNode;
|
|
51
|
+
className?: string;
|
|
52
|
+
}): react.JSX.Element;
|
|
49
53
|
declare function AccountMenu({ name, detail, items, nameFrom, }: {
|
|
50
54
|
name: string;
|
|
51
55
|
detail?: string;
|
|
@@ -71,6 +75,11 @@ declare function SessionAccountView({ state, name, detail, items, signInHref, si
|
|
|
71
75
|
onSignOut?: () => void;
|
|
72
76
|
nameFrom?: 'sm' | 'lg';
|
|
73
77
|
}): react.JSX.Element;
|
|
78
|
+
declare function ToolColumn({ measure, className, children, }: {
|
|
79
|
+
measure?: 'wide' | 'narrow';
|
|
80
|
+
className?: string;
|
|
81
|
+
children: ReactNode;
|
|
82
|
+
}): react.JSX.Element;
|
|
74
83
|
interface ToolShellProps {
|
|
75
84
|
protocol: ProtocolSlug;
|
|
76
85
|
tools: readonly ToolItem[];
|
|
@@ -79,10 +88,11 @@ interface ToolShellProps {
|
|
|
79
88
|
rail?: boolean;
|
|
80
89
|
railFooter?: ReactNode;
|
|
81
90
|
variant?: 'tool' | 'app';
|
|
91
|
+
measure?: 'wide' | 'narrow';
|
|
82
92
|
banner?: ReactNode;
|
|
83
93
|
footer?: ReactNode | false;
|
|
84
94
|
children: ReactNode;
|
|
85
95
|
}
|
|
86
|
-
declare function ToolShell({ protocol, tools, home, account, rail, railFooter, variant, banner, footer, children, }: ToolShellProps): react.JSX.Element;
|
|
96
|
+
declare function ToolShell({ protocol, tools, home, account, rail, railFooter, variant, measure, banner, footer, children, }: ToolShellProps): react.JSX.Element;
|
|
87
97
|
|
|
88
|
-
export { AccountMenu as A, OCHK_APP_ACCOUNT as O, SessionAccountView as S, ThemeToggle as T, type AccountMenuItem as a, AppShell as b, type AppShellProps as c, type SessionState as d, type ShellNavGroup as e, type ShellNavItem as f, type ShellSection as g,
|
|
98
|
+
export { AccountMenu as A, OCHK_APP_ACCOUNT as O, PaneHeader as P, SessionAccountView as S, ThemeToggle as T, type AccountMenuItem as a, AppShell as b, type AppShellProps as c, type SessionState as d, type ShellNavGroup as e, type ShellNavItem as f, type ShellSection as g, ToolColumn as h, ToolShell as i, type ToolShellProps as j, useSignInHref as u };
|
|
@@ -97,12 +97,12 @@ declare function Meter({ value, max, ghost, label, figure, tone, size, className
|
|
|
97
97
|
size?: 'md' | 'sm';
|
|
98
98
|
className?: string;
|
|
99
99
|
}): react.JSX.Element;
|
|
100
|
-
interface FilterOption<T extends string> {
|
|
100
|
+
interface FilterOption<T extends string | number> {
|
|
101
101
|
value: T;
|
|
102
102
|
label: ReactNode;
|
|
103
103
|
count?: number;
|
|
104
104
|
}
|
|
105
|
-
declare function FilterChips<T extends string>({ options, value, onChange, label, className, }: {
|
|
105
|
+
declare function FilterChips<T extends string | number>({ options, value, onChange, label, className, }: {
|
|
106
106
|
options: FilterOption<T>[];
|
|
107
107
|
label: string;
|
|
108
108
|
className?: string;
|
|
@@ -97,12 +97,12 @@ declare function Meter({ value, max, ghost, label, figure, tone, size, className
|
|
|
97
97
|
size?: 'md' | 'sm';
|
|
98
98
|
className?: string;
|
|
99
99
|
}): react.JSX.Element;
|
|
100
|
-
interface FilterOption<T extends string> {
|
|
100
|
+
interface FilterOption<T extends string | number> {
|
|
101
101
|
value: T;
|
|
102
102
|
label: ReactNode;
|
|
103
103
|
count?: number;
|
|
104
104
|
}
|
|
105
|
-
declare function FilterChips<T extends string>({ options, value, onChange, label, className, }: {
|
|
105
|
+
declare function FilterChips<T extends string | number>({ options, value, onChange, label, className, }: {
|
|
106
106
|
options: FilterOption<T>[];
|
|
107
107
|
label: string;
|
|
108
108
|
className?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orangecheck/app-design",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.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",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"scripts": {
|
|
92
92
|
"build": "node scripts/gen-palette.mjs && tsup && yarn copy:css",
|
|
93
93
|
"copy:css": "rm -rf dist/styles && mkdir -p dist/styles && cp src/styles.css dist/styles.css && cp -R src/styles/. dist/styles/",
|
|
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 && node scripts/check-dom.mjs && node scripts/check-layout.mjs && node scripts/check-next.mjs",
|
|
94
|
+
"test": "node scripts/check-contrast.mjs && node scripts/check-swagger.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 && node scripts/check-dom.mjs && node scripts/check-layout.mjs && node scripts/check-next.mjs",
|
|
95
95
|
"dev": "tsup --watch",
|
|
96
96
|
"type-check": "tsc --noEmit",
|
|
97
97
|
"clean": "rm -rf dist"
|