@milesroxas/design-hub 0.0.0-stage → 0.1.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.
- package/LICENSE +21 -0
- package/README.md +80 -2
- package/client.d.ts +6 -0
- package/configs/biome/biome.json +64 -0
- package/configs/tsconfig.project.json +17 -0
- package/core/bytes.test.ts +14 -0
- package/core/bytes.ts +14 -0
- package/core/catalog.test.ts +44 -0
- package/core/catalog.ts +43 -0
- package/core/checks.test.ts +23 -0
- package/core/checks.ts +72 -0
- package/core/contacts.test.ts +31 -0
- package/core/contacts.ts +38 -0
- package/core/doc.ts +4 -0
- package/core/feature.ts +6 -0
- package/core/fixtures.test.ts +33 -0
- package/core/fixtures.ts +69 -0
- package/core/frontmatter.ts +15 -0
- package/core/html.ts +3 -0
- package/core/image.test.ts +22 -0
- package/core/image.ts +37 -0
- package/core/jev.test.ts +66 -0
- package/core/jev.ts +77 -0
- package/core/review/model.ts +189 -0
- package/core/review/policy.ts +26 -0
- package/core/review/service.test.ts +163 -0
- package/core/review/service.ts +309 -0
- package/core/review/store.ts +51 -0
- package/core/review/triage.test.ts +41 -0
- package/core/review/triage.ts +58 -0
- package/core/states.test.ts +36 -0
- package/core/states.ts +34 -0
- package/dist/core/bytes.d.ts +5 -0
- package/dist/core/bytes.js +9 -0
- package/dist/core/catalog.d.ts +17 -0
- package/dist/core/catalog.js +24 -0
- package/dist/core/checks.d.ts +41 -0
- package/dist/core/checks.js +53 -0
- package/dist/core/contacts.d.ts +9 -0
- package/dist/core/contacts.js +34 -0
- package/dist/core/doc.d.ts +11 -0
- package/dist/core/doc.js +1 -0
- package/dist/core/feature.d.ts +3 -0
- package/dist/core/feature.js +4 -0
- package/dist/core/fixtures.d.ts +19 -0
- package/dist/core/fixtures.js +52 -0
- package/dist/core/frontmatter.d.ts +4 -0
- package/dist/core/frontmatter.js +15 -0
- package/dist/core/html.d.ts +2 -0
- package/dist/core/html.js +2 -0
- package/dist/core/image.d.ts +6 -0
- package/dist/core/image.js +34 -0
- package/dist/core/jev.d.ts +54 -0
- package/dist/core/jev.js +52 -0
- package/dist/core/review/model.d.ts +85 -0
- package/dist/core/review/model.js +112 -0
- package/dist/core/review/policy.d.ts +3 -0
- package/dist/core/review/policy.js +19 -0
- package/dist/core/review/service.d.ts +79 -0
- package/dist/core/review/service.js +245 -0
- package/dist/core/review/store.d.ts +20 -0
- package/dist/core/review/store.js +37 -0
- package/dist/core/review/triage.d.ts +6 -0
- package/dist/core/review/triage.js +45 -0
- package/dist/core/states.d.ts +6 -0
- package/dist/core/states.js +29 -0
- package/dist/scripts/bootstrap.d.ts +51 -0
- package/dist/scripts/bootstrap.js +278 -0
- package/dist/scripts/calibrate.d.ts +127 -0
- package/dist/scripts/calibrate.js +164 -0
- package/dist/scripts/check.d.ts +25 -0
- package/dist/scripts/check.js +30 -0
- package/dist/scripts/cli.d.ts +2 -0
- package/dist/scripts/cli.js +73 -0
- package/dist/scripts/commands.d.ts +25 -0
- package/dist/scripts/commands.js +49 -0
- package/dist/scripts/comments.d.ts +63 -0
- package/dist/scripts/comments.js +152 -0
- package/dist/scripts/dev.d.ts +46 -0
- package/dist/scripts/dev.js +84 -0
- package/dist/scripts/elyx.d.ts +61 -0
- package/dist/scripts/elyx.js +195 -0
- package/dist/scripts/fixtures-pull.d.ts +60 -0
- package/dist/scripts/fixtures-pull.js +121 -0
- package/dist/scripts/guard.d.ts +58 -0
- package/dist/scripts/guard.js +201 -0
- package/dist/scripts/hook.d.ts +18 -0
- package/dist/scripts/hook.js +46 -0
- package/dist/scripts/lib/bin.d.ts +4 -0
- package/dist/scripts/lib/bin.js +20 -0
- package/dist/scripts/lib/catalog.d.ts +7 -0
- package/dist/scripts/lib/catalog.js +18 -0
- package/dist/scripts/lib/cli.d.ts +75 -0
- package/dist/scripts/lib/cli.js +88 -0
- package/dist/scripts/lib/css-tokens.d.ts +13 -0
- package/dist/scripts/lib/css-tokens.js +67 -0
- package/dist/scripts/lib/judge.d.ts +24 -0
- package/dist/scripts/lib/judge.js +60 -0
- package/dist/scripts/lib/ports.d.ts +35 -0
- package/dist/scripts/lib/ports.js +113 -0
- package/dist/scripts/lib/review.d.ts +7 -0
- package/dist/scripts/lib/review.js +22 -0
- package/dist/scripts/lib/rules.d.ts +12 -0
- package/dist/scripts/lib/rules.js +20 -0
- package/dist/scripts/lib/vercel.d.ts +17 -0
- package/dist/scripts/lib/vercel.js +53 -0
- package/dist/scripts/new.d.ts +47 -0
- package/dist/scripts/new.js +113 -0
- package/dist/scripts/people.d.ts +59 -0
- package/dist/scripts/people.js +73 -0
- package/dist/scripts/preflight.d.ts +35 -0
- package/dist/scripts/preflight.js +251 -0
- package/dist/scripts/release-check.d.ts +19 -0
- package/dist/scripts/release-check.js +39 -0
- package/dist/scripts/skill-hint.d.ts +32 -0
- package/dist/scripts/skill-hint.js +103 -0
- package/dist/scripts/skills.d.ts +13 -0
- package/dist/scripts/skills.js +34 -0
- package/dist/scripts/visual-match.d.ts +46 -0
- package/dist/scripts/visual-match.js +93 -0
- package/dist/server/api.d.ts +22 -0
- package/dist/server/api.js +143 -0
- package/dist/server/checks.d.ts +4 -0
- package/dist/server/checks.js +22 -0
- package/dist/server/dev.d.ts +2 -0
- package/dist/server/dev.js +54 -0
- package/dist/server/env.d.ts +8 -0
- package/dist/server/env.js +57 -0
- package/dist/server/fake-upstash.d.ts +1 -0
- package/dist/server/fake-upstash.js +37 -0
- package/dist/server/file-kv.d.ts +2 -0
- package/dist/server/file-kv.js +24 -0
- package/dist/server/local.d.ts +4 -0
- package/dist/server/local.js +25 -0
- package/dist/server/paths.d.ts +22 -0
- package/dist/server/paths.js +81 -0
- package/dist/server/session.d.ts +22 -0
- package/dist/server/session.js +110 -0
- package/dist/server/upstash.d.ts +7 -0
- package/dist/server/upstash.js +41 -0
- package/dist/vercel/index.d.ts +5 -0
- package/dist/vercel/index.js +12 -0
- package/dist/vercel/proxy.d.ts +11 -0
- package/dist/vercel/proxy.js +238 -0
- package/dist/vite/kit.d.ts +4 -0
- package/dist/vite/kit.js +35 -0
- package/dist/vite/markdown.d.ts +2 -0
- package/dist/vite/markdown.js +212 -0
- package/dist/vite/plugin.d.ts +15 -0
- package/dist/vite/plugin.js +84 -0
- package/dist/vite/registry.d.ts +7 -0
- package/dist/vite/registry.js +70 -0
- package/kit/Icon.tsx +39 -0
- package/kit/Space.tsx +25 -0
- package/kit/Variants.tsx +134 -0
- package/kit/ViewTools.tsx +34 -0
- package/kit/base.css +27 -0
- package/kit/dials.css +98 -0
- package/kit/dials.tsx +322 -0
- package/kit/fixtures.ts +3 -0
- package/kit/format.ts +13 -0
- package/kit/harness.css +99 -0
- package/kit/hooks.ts +35 -0
- package/kit/icons.ts +329 -0
- package/kit/motion.ts +18 -0
- package/kit/prefs.ts +111 -0
- package/kit/space.css +12 -0
- package/kit/ui/Button.tsx +135 -0
- package/kit/ui/Menu.tsx +386 -0
- package/kit/ui/Overlay.tsx +300 -0
- package/kit/ui/Toast.tsx +187 -0
- package/kit/ui/index.ts +13 -0
- package/kit/ui/layer.ts +51 -0
- package/kit/ui/ui.css +238 -0
- package/package.json +87 -3
- package/shell/Guide.tsx +160 -0
- package/shell/Index.tsx +301 -0
- package/shell/Notice.tsx +27 -0
- package/shell/Prototype.tsx +31 -0
- package/shell/a11y.ts +50 -0
- package/shell/doc.d.ts +7 -0
- package/shell/doc.ts +3 -0
- package/shell/guide.css +133 -0
- package/shell/index.html +17 -0
- package/shell/main.tsx +53 -0
- package/shell/public/favicon.svg +1 -0
- package/shell/registry.ts +21 -0
- package/shell/registry.virtual.d.ts +10 -0
- package/shell/review/Review.tsx +989 -0
- package/shell/review/anchor.ts +132 -0
- package/shell/review/client.ts +165 -0
- package/shell/review/mount.tsx +12 -0
- package/shell/review/review.css +296 -0
- package/shell/shell.css +160 -0
- package/shell/system.css +238 -0
- package/skills/miles-conductor/SKILL.md +37 -0
- package/skills/miles-deploy/SKILL.md +67 -0
- package/skills/miles-design-hub/SKILL.md +62 -0
- package/skills/miles-get-hostile/SKILL.md +61 -0
- package/skills/miles-new-feature/SKILL.md +40 -0
- package/skills/miles-paper-to-prototype/SKILL.md +46 -0
- package/skills/miles-port/SKILL.md +59 -0
- package/skills/miles-port/references/astro.md +35 -0
- package/skills/miles-port/references/next.md +36 -0
- package/skills/miles-prototype/SKILL.md +83 -0
- package/skills/miles-prototype/references/accessibility.md +48 -0
- package/skills/miles-prototype/references/motion.md +59 -0
- package/skills/miles-prototype/references/performance.md +45 -0
- package/skills/miles-review/SKILL.md +39 -0
- package/templates/app/README.md +41 -0
- package/templates/app/index.tsx +32 -0
- package/templates/app/styles.css +1 -0
- package/templates/conductor/settings.toml +29 -0
- package/templates/guide.md +38 -0
- package/templates/space/README.md +37 -0
- package/templates/space/index.tsx +43 -0
- package/templates/space/styles.css +13 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: guide
|
|
3
|
+
feature: {{feature}}
|
|
4
|
+
date: {{created}}
|
|
5
|
+
audience: The people reviewing {{title}}
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# {{title}} prototype: a walkthrough
|
|
9
|
+
|
|
10
|
+
One paragraph on what the prototype is, which design doc it comes from, and where it runs. Say what is real and what is illustrative.
|
|
11
|
+
|
|
12
|
+
This guide walks every workflow and every state the prototype holds. Follow it top to bottom, or jump to the section you want. Each section says what to click and what to look for.
|
|
13
|
+
|
|
14
|
+
## Before you start
|
|
15
|
+
|
|
16
|
+
1. **Open the prototype** in a desktop browser: the password-protected link sent with this guide.
|
|
17
|
+
2. **Find Controls.** The dark round button at the top of the page opens a panel that belongs to the prototype, not the product. It holds the switches a review needs; its last row, **Open the walkthrough**, brings this guide back in a new tab.
|
|
18
|
+
3. **Start clean.** Name the reset control, and say what persists in the browser until it is used.
|
|
19
|
+
|
|
20
|
+
Screenshots live in `assets/guide/` beside this file and are embedded as ``. Every path must exist: the build imports each image, so a missing file fails it.
|
|
21
|
+
|
|
22
|
+
## 1. The first workflow
|
|
23
|
+
|
|
24
|
+
What to click, in order, and what to look for. One screenshot per state that matters.
|
|
25
|
+
|
|
26
|
+
## Every state, and how to reach it
|
|
27
|
+
|
|
28
|
+
| State | How to reach it |
|
|
29
|
+
| --- | --- |
|
|
30
|
+
| | |
|
|
31
|
+
|
|
32
|
+
## What the prototype does not do
|
|
33
|
+
|
|
34
|
+
The scope toasts a reviewer will meet, and what each stands in for.
|
|
35
|
+
|
|
36
|
+
## What we need from you
|
|
37
|
+
|
|
38
|
+
The decisions the review should settle, with a link to the design doc section that lists them.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: {{title}}
|
|
3
|
+
summary: One line on what this explores.
|
|
4
|
+
context: space
|
|
5
|
+
status: exploring
|
|
6
|
+
kind: {{kind}}
|
|
7
|
+
feature: {{feature}}
|
|
8
|
+
created: {{created}}
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# {{title}}
|
|
12
|
+
|
|
13
|
+
## Problem
|
|
14
|
+
|
|
15
|
+
What is wrong or unknown today, and for whom. Write this before any code.
|
|
16
|
+
|
|
17
|
+
## Question
|
|
18
|
+
|
|
19
|
+
The one decision this prototype exists to make.
|
|
20
|
+
|
|
21
|
+
## Directions
|
|
22
|
+
|
|
23
|
+
| # | Name | Axis |
|
|
24
|
+
| --- | --- | --- |
|
|
25
|
+
| 1 | Baseline | What ships today |
|
|
26
|
+
| 2 | | |
|
|
27
|
+
| 3 | | |
|
|
28
|
+
|
|
29
|
+
## States
|
|
30
|
+
|
|
31
|
+
| State | How to reach it |
|
|
32
|
+
| --- | --- |
|
|
33
|
+
| | |
|
|
34
|
+
|
|
35
|
+
## Decision
|
|
36
|
+
|
|
37
|
+
Empty until picked. The direction, its values, and what was rejected and why. Then delete the folder.
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { DialVars } from '@kit/dials';
|
|
2
|
+
import { Space } from '@kit/Space';
|
|
3
|
+
import { Variants } from '@kit/Variants';
|
|
4
|
+
import './styles.css';
|
|
5
|
+
|
|
6
|
+
function Baseline() {
|
|
7
|
+
return (
|
|
8
|
+
<div className="specimen" data-direction="baseline">
|
|
9
|
+
<button type="button" className="specimen-button">
|
|
10
|
+
Continue
|
|
11
|
+
</button>
|
|
12
|
+
</div>
|
|
13
|
+
);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
function Lift() {
|
|
17
|
+
return (
|
|
18
|
+
<div className="specimen" data-direction="lift">
|
|
19
|
+
<button type="button" className="specimen-button">
|
|
20
|
+
Continue
|
|
21
|
+
</button>
|
|
22
|
+
</div>
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
function Sink() {
|
|
27
|
+
return (
|
|
28
|
+
<div className="specimen" data-direction="sink">
|
|
29
|
+
<button type="button" className="specimen-button">
|
|
30
|
+
Continue
|
|
31
|
+
</button>
|
|
32
|
+
</div>
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export default function Prototype() {
|
|
37
|
+
return (
|
|
38
|
+
<Space title="{{title}}" lede="Replace with the question from README.md.">
|
|
39
|
+
<Variants options={{ Baseline, Lift, Sink }} />
|
|
40
|
+
<DialVars name="{{title}}" config={{ press: [0.97, 0.9, 1, 0.005], duration: [160, 0, 600, 10] }} />
|
|
41
|
+
</Space>
|
|
42
|
+
);
|
|
43
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
.specimen { height: 240px; display: grid; place-items: center; background: var(--bg-primary); border: 1px solid var(--border-secondary); border-radius: var(--radius-xl); box-shadow: var(--shadow-xs); }
|
|
2
|
+
|
|
3
|
+
.specimen-button { height: 40px; padding: 0 16px; border: 1px solid var(--button-secondary-border); border-radius: var(--radius-md); background: var(--button-secondary-bg); color: var(--button-secondary-fg); font-weight: 600; box-shadow: var(--shadow-xs); cursor: pointer; transition: transform calc(var(--duration, 160) * 1ms) var(--ease-press); }
|
|
4
|
+
.specimen-button:active { transform: scale(var(--press, 0.97)); }
|
|
5
|
+
|
|
6
|
+
[data-direction="lift"] .specimen-button { box-shadow: var(--shadow-md); }
|
|
7
|
+
[data-direction="lift"] .specimen-button:active { transform: translateY(1px) scale(var(--press, 0.97)); box-shadow: var(--shadow-xs); }
|
|
8
|
+
|
|
9
|
+
[data-direction="sink"] .specimen-button { background: var(--bg-secondary); }
|
|
10
|
+
[data-direction="sink"] .specimen-button:active { transform: scale(calc(var(--press, 0.97) - 0.02)); }
|
|
11
|
+
|
|
12
|
+
:root[data-motion="reduce"] .specimen-button { transition-duration: 0ms; }
|
|
13
|
+
:root[data-motion="reduce"] .specimen-button:active { transform: none; }
|