@metacensus/library-ui 0.1.0 → 0.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.
Files changed (45) hide show
  1. package/README.md +115 -1
  2. package/dist/chrome/Footer.d.ts +8 -0
  3. package/dist/chrome/Footer.js +8 -0
  4. package/dist/chrome/Footer.js.map +1 -0
  5. package/dist/chrome/Header.d.ts +8 -0
  6. package/dist/chrome/Header.js +8 -0
  7. package/dist/chrome/Header.js.map +1 -0
  8. package/dist/chrome/Nav.d.ts +12 -0
  9. package/dist/chrome/Nav.js +10 -0
  10. package/dist/chrome/Nav.js.map +1 -0
  11. package/dist/index.d.ts +11 -1
  12. package/dist/index.js +11 -1
  13. package/dist/index.js.map +1 -1
  14. package/dist/marks/Marks.d.ts +23 -0
  15. package/dist/marks/Marks.js +33 -0
  16. package/dist/marks/Marks.js.map +1 -0
  17. package/dist/marks/geometry.d.ts +38 -0
  18. package/dist/marks/geometry.js +100 -0
  19. package/dist/marks/geometry.js.map +1 -0
  20. package/dist/marks/lockupPaths.d.ts +2 -0
  21. package/dist/marks/lockupPaths.js +22 -0
  22. package/dist/marks/lockupPaths.js.map +1 -0
  23. package/dist/tools/Button.d.ts +16 -0
  24. package/dist/tools/Button.js +14 -0
  25. package/dist/tools/Button.js.map +1 -0
  26. package/dist/tools/Chip.d.ts +7 -0
  27. package/dist/tools/Chip.js +7 -0
  28. package/dist/tools/Chip.js.map +1 -0
  29. package/dist/tools/Notice.d.ts +8 -0
  30. package/dist/tools/Notice.js +8 -0
  31. package/dist/tools/Notice.js.map +1 -0
  32. package/dist/tools/cn.d.ts +2 -0
  33. package/dist/tools/cn.js +3 -0
  34. package/dist/tools/cn.js.map +1 -0
  35. package/dist/tools/form.d.ts +31 -0
  36. package/dist/tools/form.js +50 -0
  37. package/dist/tools/form.js.map +1 -0
  38. package/dist/tools/theme.d.ts +16 -0
  39. package/dist/tools/theme.js +53 -0
  40. package/dist/tools/theme.js.map +1 -0
  41. package/package.json +15 -3
  42. package/src/css/fonts.css +5 -0
  43. package/src/css/styles.css +307 -0
  44. package/src/css/theme.css +31 -0
  45. package/src/css/tokens.css +107 -0
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  MetaCensus's brand layer and a small set of UI tools, as one ESM React package (React 18 peer).
4
4
 
5
- The first release's contents are tracked in this repository's issues. Nothing ships yet beyond the marks.
5
+ The first release's contents are tracked in this repository's issues. So far it ships the marks, the brand tokens and the components.
6
6
 
7
7
  ## Use
8
8
 
@@ -12,6 +12,120 @@ npm install @metacensus/library-ui
12
12
 
13
13
  Marks are importable as `@metacensus/library-ui/marks/mark.svg` and its siblings.
14
14
 
15
+ ## Components
16
+
17
+ ```css
18
+ @import '@metacensus/library-ui/fonts.css';
19
+ @import '@metacensus/library-ui/tokens.css';
20
+ @import '@metacensus/library-ui/styles.css';
21
+ ```
22
+
23
+ `styles.css` is plain CSS, every class `mc-` prefixed and none scoped to a site, reading the roles in `tokens.css`. No Tailwind is needed. Set `font-family: var(--mc-font-sans)` on your page.
24
+
25
+ Components render on the server: no router, auth or API client, and no browser global while rendering. In Astro, add `@astrojs/react`; the marks and chrome render at build with no `client:` directive and ship no JS. Only `ThemeToggle` needs one, as `client:visible`.
26
+
27
+ - Marks: `MetaCensusMark`, `MetaCensusLockup`, `MetaCensusArrow`, `LogoArrowMorph`, and the shared geometry.
28
+ - Chrome: `Header` (`nav` and `actions` slots), `Footer` (`tagline`; link columns as children), `Nav` (`links`).
29
+ - Tools: `cn`, `Button`, `Notice`, `Chip`, the form kit (`Field`, `Label`, `Input`, `Textarea`, `Select`, `Checkbox`, `RadioGroup`, `FieldError`), `useTheme`, `ThemeToggle`, `themeScript`.
30
+
31
+ - Marks take `variant`: `auto` (the default: solid on light, reversed on dark), `solid` or `reversed`, and `gradient` on the lockup, which needs a white or very light ground. Mark usage is in [TRADEMARKS.md](TRADEMARKS.md).
32
+ - `LogoArrowMorph` is a pure function of `progress`, 0 the mark and 1 the arrow; whatever places it owns the timing. Keep it horizontal.
33
+ - `Nav`'s mobile menu is a checkbox and CSS, so it works without JS.
34
+ - `Button` takes `variant`: `primary` (the default; one per view), `secondary`, `text` or `danger`. A solid Garnet fill marks only a risky action: one that destroys, discards, revokes or cannot be undone. A vote, a filter or a choice between options is not risky.
35
+ - `Button` and `Notice` follow the guidelines' illustrated Actions and Callout patterns. Those patterns do not bind yet: the guidelines have yet to state their shape.
36
+ - Theme: inline `themeScript` in `<head>` so a stored override is on `<html>` before first paint. `useTheme` and `ThemeToggle` read and set it: `system` (the OS), `light` or `dark`.
37
+
38
+ ```astro
39
+ ---
40
+ import { Header, Nav, Button, themeScript } from '@metacensus/library-ui'
41
+ ---
42
+ <head>
43
+ <script is:inline set:html={themeScript} />
44
+ </head>
45
+ <Header>
46
+ <Nav slot="nav" links={[{ href: '/research', label: 'Research' }]} />
47
+ <Button slot="actions" href="/join">Join</Button>
48
+ </Header>
49
+ <Button variant="danger">Delete account</Button>
50
+ ```
51
+
52
+ In `.astro` files, pass `Header`'s `nav` and `actions` as named slots; JSX props there fail the build.
53
+
54
+ ## Brand tokens
55
+
56
+ ```css
57
+ @import '@metacensus/library-ui/fonts.css';
58
+ @import '@metacensus/library-ui/tokens.css';
59
+ @import '@metacensus/library-ui/theme.css'; /* optional: Tailwind 4 */
60
+ ```
61
+
62
+ - `tokens.css` holds every `--mc-*` property below.
63
+ - `fonts.css` loads Inter 400, 500, 700 and 800 from [`@fontsource/inter`](https://fontsource.org/fonts/inter), under its own licence (SIL OFL 1.1). No type scale ships: the guidelines state none. Medium over bold.
64
+ - `theme.css` maps the roles, the font and the shape into a Tailwind 4 `@theme` (`bg-mc-card`, `text-mc-ink`). Consumers not on Tailwind skip it.
65
+
66
+ Roles resolve light or dark by the OS setting. `.dark` or `.light` on any element overrides its subtree, which is also how a light panel stays light on a dark page. Components read roles, never the palette.
67
+
68
+ ### Palette
69
+
70
+ Each family runs bold, mid, tint. Purple leads and grey follows; reds then blues accent. Golds are named for print and no role uses them.
71
+
72
+ | Family | Bold | Mid | Tint |
73
+ | -------- | --------- | --------- | --------- |
74
+ | `purple` | `#3B0E75` | `#915EDA` | `#D0B5E6` |
75
+ | `grey` | `#444A5A` | `#8A90A2` | `#E8E8EC` |
76
+ | `red` | `#91042A` | `#FF6F5E` | `#FFE5E2` |
77
+ | `blue` | `#0A4A78` | `#3D9BD1` | `#DCEDF7` |
78
+ | `gold` | `#C28E2F` | `#E0D3A8` | `#F9F7EF` |
79
+
80
+ A step is `--mc-<family>-<step>`, as `--mc-purple-bold`. `--mc-white` and `--mc-night` (`#121318`, the dark ground) complete it.
81
+
82
+ ### Roles
83
+
84
+ | Role | Light | Dark |
85
+ | -------------------- | ----------- | --------------------------- |
86
+ | `--mc-ground` | white | night |
87
+ | `--mc-card` | white | grey bold into the ground |
88
+ | `--mc-surface` | grey tint | grey bold, deeper |
89
+ | `--mc-hairline` | grey tint | grey bold, deepest |
90
+ | `--mc-ink` | grey bold | grey tint |
91
+ | `--mc-ink-secondary` | grey mid | grey mid |
92
+ | `--mc-ink-accent` | purple bold | purple tint |
93
+ | `--mc-line-accent` | purple mid | purple mid |
94
+ | `--mc-fill-solid` | purple bold | purple bold |
95
+ | `--mc-fill-emphasis` | purple tint | purple bold into the ground |
96
+ | `--mc-action` | purple bold | purple bold |
97
+ | `--mc-action-risk` | red bold | red bold |
98
+ | `--mc-alert-fill` | red tint | red bold into the ground |
99
+ | `--mc-alert-ink` | red bold | red mid |
100
+ | `--mc-alert-border` | red bold | red bold |
101
+ | `--mc-signal` | red mid | red mid |
102
+
103
+ `--mc-fill-solid`, `--mc-action` and `--mc-action-risk` sit under white text. `--mc-signal` is Coral: one use per surface, never in the logo, headings, chrome or an action. On dark, `--mc-alert-ink` and `--mc-tint-red-ink` resolve to Coral too, but are not the signal.
104
+
105
+ ### Tint fills
106
+
107
+ The default for a chip, pill, badge or callout: the family's tint as the fill, its bold step as ink and border. On dark each family inverts: bold at 18% over the ground is the fill, mid is the ink and border.
108
+
109
+ `--mc-tint-<family>-fill` and `--mc-tint-<family>-ink` for `purple`, `grey`, `red` and `blue`. The border takes the ink. Gold has no pair; it is print only.
110
+
111
+ ### Slate Mist
112
+
113
+ `--mc-grey-mid` is for text demoted in place: copy that stops being the subject and becomes context for what replaced it. Copy that is merely secondary starts in Charcoal, which is `--mc-ink`. On white Slate Mist is about 3.2:1, under the 4.5:1 minimum for small text, so `--mc-ink-secondary` is not for small text there.
114
+
115
+ ### Gradients
116
+
117
+ - `--mc-gradient-hero`, `#3B0E75` to `#915EDA`, for hero fills.
118
+ - `--mc-gradient-lockup`, `#37128A` to `#AB82EC`, the lockup's own.
119
+
120
+ Two stops each; add no third and route neither through an accent family.
121
+
122
+ ### Shape (provisional)
123
+
124
+ - `--mc-radius: 6px`
125
+ - `--mc-shadow`: a hard `5px 5px 0` offset in `--mc-ink` at 90%
126
+
127
+ Both are the public site's values. The guidelines state no shape yet; the pending shape decision settles them.
128
+
15
129
  ## Develop
16
130
 
17
131
  ```shell
@@ -0,0 +1,8 @@
1
+ import type { ReactNode } from 'react';
2
+ /** The lockup and `tagline`, then the consumer's link columns as `children`. */
3
+ export declare function Footer({ homeHref, tagline, children, className, }: {
4
+ homeHref?: string;
5
+ tagline?: ReactNode;
6
+ children?: ReactNode;
7
+ className?: string;
8
+ }): import("react").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { MetaCensusLockup } from '../marks/Marks.js';
3
+ import { cn } from '../tools/cn.js';
4
+ /** The lockup and `tagline`, then the consumer's link columns as `children`. */
5
+ export function Footer({ homeHref = '/', tagline, children, className, }) {
6
+ return (_jsxs("footer", { className: cn('mc-footer', className), children: [_jsxs("div", { className: "mc-footer-brand", children: [_jsx("a", { href: homeHref, children: _jsx(MetaCensusLockup, {}) }), tagline && _jsx("p", { className: "mc-footer-tagline", children: tagline })] }), children && _jsx("div", { className: "mc-footer-columns", children: children })] }));
7
+ }
8
+ //# sourceMappingURL=Footer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Footer.js","sourceRoot":"","sources":["../../src/chrome/Footer.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AACpD,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAA;AAEnC,gFAAgF;AAChF,MAAM,UAAU,MAAM,CAAC,EACrB,QAAQ,GAAG,GAAG,EACd,OAAO,EACP,QAAQ,EACR,SAAS,GAMV;IACC,OAAO,CACL,kBAAQ,SAAS,EAAE,EAAE,CAAC,WAAW,EAAE,SAAS,CAAC,aAC3C,eAAK,SAAS,EAAC,iBAAiB,aAC9B,YAAG,IAAI,EAAE,QAAQ,YACf,KAAC,gBAAgB,KAAG,GAClB,EACH,OAAO,IAAI,YAAG,SAAS,EAAC,mBAAmB,YAAE,OAAO,GAAK,IACtD,EACL,QAAQ,IAAI,cAAK,SAAS,EAAC,mBAAmB,YAAE,QAAQ,GAAO,IACzD,CACV,CAAA;AACH,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { ReactNode } from 'react';
2
+ /** The lockup, then the consumer's `nav` and `actions`. */
3
+ export declare function Header({ homeHref, nav, actions, className, }: {
4
+ homeHref?: string;
5
+ nav?: ReactNode;
6
+ actions?: ReactNode;
7
+ className?: string;
8
+ }): import("react").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { MetaCensusLockup } from '../marks/Marks.js';
3
+ import { cn } from '../tools/cn.js';
4
+ /** The lockup, then the consumer's `nav` and `actions`. */
5
+ export function Header({ homeHref = '/', nav, actions, className, }) {
6
+ return (_jsxs("header", { className: cn('mc-header', className), children: [_jsx("a", { href: homeHref, className: "mc-header-home", children: _jsx(MetaCensusLockup, {}) }), nav && _jsx("div", { className: "mc-header-nav", children: nav }), actions && _jsx("div", { className: "mc-header-actions", children: actions })] }));
7
+ }
8
+ //# sourceMappingURL=Header.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Header.js","sourceRoot":"","sources":["../../src/chrome/Header.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AACpD,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAA;AAEnC,2DAA2D;AAC3D,MAAM,UAAU,MAAM,CAAC,EACrB,QAAQ,GAAG,GAAG,EACd,GAAG,EACH,OAAO,EACP,SAAS,GAMV;IACC,OAAO,CACL,kBAAQ,SAAS,EAAE,EAAE,CAAC,WAAW,EAAE,SAAS,CAAC,aAC3C,YAAG,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAC,gBAAgB,YAC3C,KAAC,gBAAgB,KAAG,GAClB,EACH,GAAG,IAAI,cAAK,SAAS,EAAC,eAAe,YAAE,GAAG,GAAO,EACjD,OAAO,IAAI,cAAK,SAAS,EAAC,mBAAmB,YAAE,OAAO,GAAO,IACvD,CACV,CAAA;AACH,CAAC"}
@@ -0,0 +1,12 @@
1
+ export type NavLink = {
2
+ href: string;
3
+ label: string;
4
+ current?: boolean;
5
+ };
6
+ /** Links in a row; on a narrow screen a Menu button opens them. The disclosure
7
+ * is a checkbox and CSS, so it works without JS. */
8
+ export declare function Nav({ links, label, className, }: {
9
+ links: NavLink[];
10
+ label?: string;
11
+ className?: string;
12
+ }): import("react").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useId } from 'react';
3
+ import { cn } from '../tools/cn.js';
4
+ /** Links in a row; on a narrow screen a Menu button opens them. The disclosure
5
+ * is a checkbox and CSS, so it works without JS. */
6
+ export function Nav({ links, label = 'Main', className, }) {
7
+ const id = useId();
8
+ return (_jsxs("nav", { "aria-label": label, className: cn('mc-nav', className), children: [_jsx("input", { id: id, type: "checkbox", className: "mc-nav-toggle" }), _jsx("label", { htmlFor: id, className: "mc-nav-menu", children: "Menu" }), _jsx("ul", { className: "mc-nav-links", children: links.map((link) => (_jsx("li", { children: _jsx("a", { href: link.href, "aria-current": link.current ? 'page' : undefined, children: link.label }) }, link.href))) })] }));
9
+ }
10
+ //# sourceMappingURL=Nav.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Nav.js","sourceRoot":"","sources":["../../src/chrome/Nav.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAA;AAInC;qDACqD;AACrD,MAAM,UAAU,GAAG,CAAC,EAClB,KAAK,EACL,KAAK,GAAG,MAAM,EACd,SAAS,GAKV;IACC,MAAM,EAAE,GAAG,KAAK,EAAE,CAAA;IAClB,OAAO,CACL,6BAAiB,KAAK,EAAE,SAAS,EAAE,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC,aACxD,gBAAO,EAAE,EAAE,EAAE,EAAE,IAAI,EAAC,UAAU,EAAC,SAAS,EAAC,eAAe,GAAG,EAC3D,gBAAO,OAAO,EAAE,EAAE,EAAE,SAAS,EAAC,aAAa,qBAEnC,EACR,aAAI,SAAS,EAAC,cAAc,YACzB,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CACnB,uBACE,YACE,IAAI,EAAE,IAAI,CAAC,IAAI,kBACD,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,YAE9C,IAAI,CAAC,KAAK,GACT,IANG,IAAI,CAAC,IAAI,CAOb,CACN,CAAC,GACC,IACD,CACP,CAAA;AACH,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1 +1,11 @@
1
- export {};
1
+ export { LogoArrowMorph, MetaCensusArrow, MetaCensusLockup, MetaCensusMark, } from './marks/Marks.js';
2
+ export * from './marks/geometry.js';
3
+ export { Footer } from './chrome/Footer.js';
4
+ export { Header } from './chrome/Header.js';
5
+ export { Nav, type NavLink } from './chrome/Nav.js';
6
+ export { Button } from './tools/Button.js';
7
+ export { Chip } from './tools/Chip.js';
8
+ export { cn } from './tools/cn.js';
9
+ export { Checkbox, Field, FieldError, Input, Label, RadioGroup, Select, Textarea, } from './tools/form.js';
10
+ export { Notice } from './tools/Notice.js';
11
+ export { ThemeToggle, themeScript, useTheme, type Theme, } from './tools/theme.js';
package/dist/index.js CHANGED
@@ -1,2 +1,12 @@
1
- export {};
1
+ export { LogoArrowMorph, MetaCensusArrow, MetaCensusLockup, MetaCensusMark, } from './marks/Marks.js';
2
+ export * from './marks/geometry.js';
3
+ export { Footer } from './chrome/Footer.js';
4
+ export { Header } from './chrome/Header.js';
5
+ export { Nav } from './chrome/Nav.js';
6
+ export { Button } from './tools/Button.js';
7
+ export { Chip } from './tools/Chip.js';
8
+ export { cn } from './tools/cn.js';
9
+ export { Checkbox, Field, FieldError, Input, Label, RadioGroup, Select, Textarea, } from './tools/form.js';
10
+ export { Notice } from './tools/Notice.js';
11
+ export { ThemeToggle, themeScript, useTheme, } from './tools/theme.js';
2
12
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,cAAc,GACf,MAAM,kBAAkB,CAAA;AACzB,cAAc,qBAAqB,CAAA;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAC3C,OAAO,EAAE,GAAG,EAAgB,MAAM,iBAAiB,CAAA;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AACtC,OAAO,EAAE,EAAE,EAAE,MAAM,eAAe,CAAA;AAClC,OAAO,EACL,QAAQ,EACR,KAAK,EACL,UAAU,EACV,KAAK,EACL,KAAK,EACL,UAAU,EACV,MAAM,EACN,QAAQ,GACT,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAC1C,OAAO,EACL,WAAW,EACX,WAAW,EACX,QAAQ,GAET,MAAM,kBAAkB,CAAA"}
@@ -0,0 +1,23 @@
1
+ type Variant = 'auto' | 'solid' | 'reversed';
2
+ type MarkProps = {
3
+ variant?: Variant;
4
+ className?: string;
5
+ title?: string;
6
+ };
7
+ /** The primary mark: the six bars of the forest plot. */
8
+ export declare function MetaCensusMark({ variant, className, title, }: MarkProps): import("react").JSX.Element;
9
+ /** The mark and wordmark, outlined. `gradient` is the canonical lockup and
10
+ * needs a white or very light ground. */
11
+ export declare function MetaCensusLockup({ variant, className, title, }: Omit<MarkProps, 'variant'> & {
12
+ variant?: Variant | 'gradient';
13
+ }): import("react").JSX.Element;
14
+ /** The arrow. Decorative unless given a `title`. It may be rotated to follow
15
+ * reading direction; nothing else of the brand may. */
16
+ export declare function MetaCensusArrow({ variant, className, title, }: MarkProps): import("react").JSX.Element;
17
+ /** The mark drawn between itself and the arrow: a pure function of `progress`,
18
+ * 0 the mark and 1 the arrow. It holds no clock; whatever places it owns the
19
+ * timing. Keep it horizontal in every layout. */
20
+ export declare function LogoArrowMorph({ progress, variant, className, title, }: MarkProps & {
21
+ progress: number;
22
+ }): import("react").JSX.Element;
23
+ export {};
@@ -0,0 +1,33 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useId } from 'react';
3
+ import { cn } from '../tools/cn.js';
4
+ import { ARROW_SEGMENTS, ARROW_VIEWBOX, BARS, BAR_RECTS, CAP_RADIUS, MARK_VIEWBOX, STROKE_WIDTH, barAt, } from './geometry.js';
5
+ import { LOCKUP_PATHS, LOCKUP_VIEWBOX } from './lockupPaths.js';
6
+ const fillClass = (variant) => `mc-fill-${variant}`;
7
+ /** The primary mark: the six bars of the forest plot. */
8
+ export function MetaCensusMark({ variant = 'auto', className, title = 'MetaCensus', }) {
9
+ return (_jsxs("svg", { viewBox: MARK_VIEWBOX, className: cn('mc-mark', fillClass(variant), className), role: "img", "aria-label": title, children: [_jsx("title", { children: title }), BAR_RECTS.map((b) => (_jsx("rect", { x: b.x, y: b.y, width: b.w, height: STROKE_WIDTH, rx: CAP_RADIUS }, b.y)))] }));
10
+ }
11
+ /** The mark and wordmark, outlined. `gradient` is the canonical lockup and
12
+ * needs a white or very light ground. */
13
+ export function MetaCensusLockup({ variant = 'auto', className, title = 'MetaCensus', }) {
14
+ const gradientId = `mc-lockup-${useId().replace(/:/g, '')}`;
15
+ const gradient = variant === 'gradient';
16
+ return (_jsxs("svg", { viewBox: LOCKUP_VIEWBOX, className: cn('mc-lockup', !gradient && fillClass(variant), className), fill: gradient ? `url(#${gradientId})` : undefined, role: "img", "aria-label": title, children: [_jsx("title", { children: title }), gradient && (_jsx("defs", { children: _jsxs("linearGradient", { id: gradientId, x1: "0", x2: "158.055", y1: "0", y2: "0", gradientUnits: "userSpaceOnUse", children: [_jsx("stop", { offset: "0", stopColor: "#37128A" }), _jsx("stop", { offset: "1", stopColor: "#AB82EC" })] }) })), LOCKUP_PATHS.map((d) => (_jsx("path", { d: d }, d)))] }));
17
+ }
18
+ /** The arrow. Decorative unless given a `title`. It may be rotated to follow
19
+ * reading direction; nothing else of the brand may. */
20
+ export function MetaCensusArrow({ variant = 'auto', className, title, }) {
21
+ return (_jsxs("svg", { viewBox: ARROW_VIEWBOX, className: cn('mc-arrow', `mc-stroke-${variant}`, className), role: title ? 'img' : 'presentation', "aria-label": title, "aria-hidden": title ? undefined : true, fill: "none", strokeWidth: STROKE_WIDTH, strokeLinecap: "round", children: [title && _jsx("title", { children: title }), ARROW_SEGMENTS.map((s) => (_jsx("line", { x1: s.x1, y1: s.y1, x2: s.x2, y2: s.y2 }, s.y1)))] }));
22
+ }
23
+ /** The mark drawn between itself and the arrow: a pure function of `progress`,
24
+ * 0 the mark and 1 the arrow. It holds no clock; whatever places it owns the
25
+ * timing. Keep it horizontal in every layout. */
26
+ export function LogoArrowMorph({ progress, variant = 'auto', className, title = 'Evidence becomes consensus', }) {
27
+ const p = Math.min(1, Math.max(0, progress));
28
+ return (_jsxs("svg", { viewBox: MARK_VIEWBOX, className: cn('mc-mark', `mc-stroke-${variant}`, className), role: "img", "aria-label": title, fill: "none", strokeWidth: STROKE_WIDTH, strokeLinecap: "round", children: [_jsx("title", { children: title }), BARS.map((bar, i) => {
29
+ const s = barAt(i, p);
30
+ return _jsx("line", { x1: s.x1, y1: s.y1, x2: s.x2, y2: s.y2 }, bar.y1);
31
+ })] }));
32
+ }
33
+ //# sourceMappingURL=Marks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Marks.js","sourceRoot":"","sources":["../../src/marks/Marks.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAA;AACnC,OAAO,EACL,cAAc,EACd,aAAa,EACb,IAAI,EACJ,SAAS,EACT,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,KAAK,GACN,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAW/D,MAAM,SAAS,GAAG,CAAC,OAAgB,EAAE,EAAE,CAAC,WAAW,OAAO,EAAE,CAAA;AAE5D,yDAAyD;AACzD,MAAM,UAAU,cAAc,CAAC,EAC7B,OAAO,GAAG,MAAM,EAChB,SAAS,EACT,KAAK,GAAG,YAAY,GACV;IACV,OAAO,CACL,eACE,OAAO,EAAE,YAAY,EACrB,SAAS,EAAE,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC,OAAO,CAAC,EAAE,SAAS,CAAC,EACvD,IAAI,EAAC,KAAK,gBACE,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,KAAK,gBACE,KAAK,EACjB,IAAI,EAAC,MAAM,EACX,WAAW,EAAE,YAAY,EACzB,aAAa,EAAC,OAAO,aAErB,0BAAQ,KAAK,GAAS,EACrB,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE;gBACnB,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;gBACrB,OAAO,eAAmB,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,IAA9C,GAAG,CAAC,EAAE,CAA4C,CAAA;YACtE,CAAC,CAAC,IACE,CACP,CAAA;AACH,CAAC"}
@@ -0,0 +1,38 @@
1
+ export declare const STROKE_WIDTH = 17.2;
2
+ export declare const CAP_RADIUS: number;
3
+ export declare const MARK_VIEWBOX = "0 0 185.9 155";
4
+ export type Segment = {
5
+ x1: number;
6
+ y1: number;
7
+ x2: number;
8
+ y2: number;
9
+ };
10
+ export declare const BAR_RECTS: {
11
+ x: number;
12
+ y: number;
13
+ w: number;
14
+ }[];
15
+ export declare const BARS: Segment[];
16
+ export declare const ARROW: {
17
+ shaft: {
18
+ x1: number;
19
+ y1: number;
20
+ x2: number;
21
+ y2: number;
22
+ };
23
+ headUp: {
24
+ x1: number;
25
+ y1: number;
26
+ x2: number;
27
+ y2: number;
28
+ };
29
+ headDown: {
30
+ x1: number;
31
+ y1: number;
32
+ x2: number;
33
+ y2: number;
34
+ };
35
+ };
36
+ export declare const ARROW_VIEWBOX = "0 0 173.2 101.2";
37
+ export declare const ARROW_SEGMENTS: Segment[];
38
+ export declare function barAt(index: number, p: number): Segment;
@@ -0,0 +1,100 @@
1
+ // The mark and the arrow as round-capped strokes of one weight in one space:
2
+ // the mark's ink box, `MARK_VIEWBOX`. Each bar is a rect whose `rx` is half its
3
+ // height, so it is a segment with round caps, and the two marks interpolate
4
+ // stroke for stroke. The arrow's ink box is centred on the mark's.
5
+ export const STROKE_WIDTH = 17.2;
6
+ export const CAP_RADIUS = STROKE_WIDTH / 2;
7
+ export const MARK_VIEWBOX = '0 0 185.9 155';
8
+ // The six bars, top to bottom.
9
+ export const BAR_RECTS = [
10
+ { x: 76.1, y: 0, w: 33.8 },
11
+ { x: 59.2, y: 27.6, w: 76.1 },
12
+ { x: 0, y: 55.1, w: 117.1 },
13
+ { x: 67.6, y: 82.7, w: 118.3 },
14
+ { x: 33.8, y: 110.2, w: 93 },
15
+ { x: 76.1, y: 137.8, w: 33.8 },
16
+ ];
17
+ export const BARS = BAR_RECTS.map((b) => ({
18
+ x1: b.x + CAP_RADIUS,
19
+ y1: b.y + CAP_RADIUS,
20
+ x2: b.x + b.w - CAP_RADIUS,
21
+ y2: b.y + CAP_RADIUS,
22
+ }));
23
+ // The arrow: a shaft and two barbs. The head's depth is also its half-height,
24
+ // which holds the barbs at 45 degrees.
25
+ const CENTRE_Y = 77.5;
26
+ const TIP_X = 171;
27
+ const TAIL_X = 15;
28
+ const HEAD_DEPTH = 42;
29
+ export const ARROW = {
30
+ shaft: { x1: TAIL_X, y1: CENTRE_Y, x2: TIP_X, y2: CENTRE_Y },
31
+ headUp: {
32
+ x1: TIP_X - HEAD_DEPTH,
33
+ y1: CENTRE_Y - HEAD_DEPTH,
34
+ x2: TIP_X,
35
+ y2: CENTRE_Y,
36
+ },
37
+ headDown: {
38
+ x1: TIP_X - HEAD_DEPTH,
39
+ y1: CENTRE_Y + HEAD_DEPTH,
40
+ x2: TIP_X,
41
+ y2: CENTRE_Y,
42
+ },
43
+ };
44
+ // The arrow's ink box, caps included, and its strokes rebased onto it.
45
+ const INK_X = TAIL_X - CAP_RADIUS;
46
+ const INK_Y = CENTRE_Y - HEAD_DEPTH - CAP_RADIUS;
47
+ export const ARROW_VIEWBOX = `0 0 ${TIP_X - TAIL_X + STROKE_WIDTH} ${2 * HEAD_DEPTH + STROKE_WIDTH}`;
48
+ export const ARROW_SEGMENTS = Object.values(ARROW).map((s) => ({
49
+ x1: s.x1 - INK_X,
50
+ y1: s.y1 - INK_Y,
51
+ x2: s.x2 - INK_X,
52
+ y2: s.y2 - INK_Y,
53
+ }));
54
+ // Converge, then launch. All six bars pool onto the shaft in one shared
55
+ // window. The two mid bars collapse to the tip, hidden under the shaft, and
56
+ // grow back out along the barbs, so the head extends from the point. The two
57
+ // smallest bars have no counterpart: they shrink to a point on the shaft's
58
+ // centreline, where a zero-length round cap draws a dot the shaft covers.
59
+ // Nothing fades.
60
+ const POOL_POINT = { x1: 93, y1: CENTRE_Y, x2: 93, y2: CENTRE_Y };
61
+ const TIP_POINT = { x1: TIP_X, y1: CENTRE_Y, x2: TIP_X, y2: CENTRE_Y };
62
+ const ROLES = [
63
+ { land: POOL_POINT, becomes: null },
64
+ { land: ARROW.shaft, becomes: ARROW.headUp },
65
+ { land: ARROW.shaft, becomes: null },
66
+ { land: ARROW.shaft, becomes: null },
67
+ { land: ARROW.shaft, becomes: ARROW.headDown },
68
+ { land: POOL_POINT, becomes: null },
69
+ ];
70
+ // Phase ends as fractions of the run: the converge carries two thirds, being
71
+ // the part that has to read as a gesture.
72
+ const CONVERGE_END = 0.65;
73
+ const RETRACT_END = 0.69;
74
+ const clamp01 = (t) => Math.min(1, Math.max(0, t));
75
+ const window01 = (t, a, b) => clamp01((t - a) / (b - a));
76
+ const easeInOut = (t) => t < 0.5 ? 4 * t * t * t : 1 - Math.pow(-2 * t + 2, 3) / 2;
77
+ const easeOutQuint = (t) => 1 - Math.pow(1 - t, 5);
78
+ const lerp = (a, b, t) => a + (b - a) * t;
79
+ const lerpSegment = (a, b, t) => ({
80
+ x1: lerp(a.x1, b.x1, t),
81
+ y1: lerp(a.y1, b.y1, t),
82
+ x2: lerp(a.x2, b.x2, t),
83
+ y2: lerp(a.y2, b.y2, t),
84
+ });
85
+ // Where bar `index` is at progress `p`: 0 is the mark, 1 is the arrow.
86
+ export function barAt(index, p) {
87
+ const role = ROLES[index];
88
+ const bar = BARS[index];
89
+ if (!role || !bar)
90
+ throw new RangeError(`no bar ${index}`);
91
+ let segment = lerpSegment(bar, role.land, easeInOut(window01(p, 0, CONVERGE_END)));
92
+ if (role.becomes) {
93
+ const retract = easeInOut(window01(p, CONVERGE_END, RETRACT_END));
94
+ segment = lerpSegment(segment, TIP_POINT, retract);
95
+ const extend = easeOutQuint(window01(p, RETRACT_END, 1));
96
+ segment = lerpSegment(segment, role.becomes, extend);
97
+ }
98
+ return segment;
99
+ }
100
+ //# sourceMappingURL=geometry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"geometry.js","sourceRoot":"","sources":["../../src/marks/geometry.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,gFAAgF;AAChF,4EAA4E;AAC5E,mEAAmE;AAEnE,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,CAAA;AAChC,MAAM,CAAC,MAAM,UAAU,GAAG,YAAY,GAAG,CAAC,CAAA;AAC1C,MAAM,CAAC,MAAM,YAAY,GAAG,eAAe,CAAA;AAI3C,+BAA+B;AAC/B,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE;IAC1B,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE;IAC7B,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE;IAC3B,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE;IAC9B,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE;IAC5B,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE;CAC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AAE,EAAE,CAAC,CAAC;IACvB,EAAE,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;CACxB,CAAC,CAAA;AAEF,uEAAuE;AACvE,MAAM,UAAU,KAAK,CAAC,KAAa,EAAE,CAAS;IAC5C,MAAM,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC,CAAA;IACzB,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,CAAA;IACvB,IAAI,CAAC,IAAI,IAAI,CAAC,GAAG;QAAE,MAAM,IAAI,UAAU,CAAC,UAAU,KAAK,EAAE,CAAC,CAAA;IAE1D,IAAI,OAAO,GAAG,WAAW,CAAC,GAAG,EAAE,IAAI,CAAC,IAAI,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC,CAAA;IAClF,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;QACjB,MAAM,OAAO,GAAG,SAAS,CAAC,QAAQ,CAAC,CAAC,EAAE,YAAY,EAAE,WAAW,CAAC,CAAC,CAAA;QACjE,OAAO,GAAG,WAAW,CAAC,OAAO,EAAE,SAAS,EAAE,OAAO,CAAC,CAAA;QAClD,MAAM,MAAM,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,CAAA;QACxD,OAAO,GAAG,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,CAAA;IACtD,CAAC;IACD,OAAO,OAAO,CAAA;AAChB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const LOCKUP_VIEWBOX = "0 0 159 23";
2
+ export declare const LOCKUP_PATHS: string[];
@@ -0,0 +1,22 @@
1
+ // The wordmark lockup's outlines, copied from marks/wordmark-lockup.svg:
2
+ // the six bars, then the letters. Outlined, never live text.
3
+ export const LOCKUP_VIEWBOX = '0 0 159 23';
4
+ export const LOCKUP_PATHS = [
5
+ 'M11.0455 1.25C11.0455 0.559644 11.6051 0 12.2955 0H14.7045C15.3949 0 15.9545 0.559644 15.9545 1.25C15.9545 1.94036 15.3949 2.5 14.7045 2.5H12.2955C11.6051 2.5 11.0455 1.94036 11.0455 1.25Z',
6
+ 'M8.59091 5.25C8.59091 4.55964 9.15055 4 9.84091 4H18.3864C19.0767 4 19.6364 4.55964 19.6364 5.25C19.6364 5.94036 19.0767 6.5 18.3864 6.5H9.84091C9.15056 6.5 8.59091 5.94036 8.59091 5.25Z',
7
+ 'M0 9.25C0 8.55964 0.559644 8 1.25 8H15.75C16.4404 8 17 8.55964 17 9.25C17 9.94036 16.4404 10.5 15.75 10.5H1.25C0.559644 10.5 0 9.94036 0 9.25Z',
8
+ 'M9.81818 13.25C9.81818 12.5596 10.3778 12 11.0682 12H25.75C26.4404 12 27 12.5596 27 13.25C27 13.9404 26.4404 14.5 25.75 14.5H11.0682C10.3778 14.5 9.81818 13.9404 9.81818 13.25Z',
9
+ 'M4.90909 17.25C4.90909 16.5596 5.46874 16 6.15909 16H17.1591C17.8494 16 18.4091 16.5596 18.4091 17.25C18.4091 17.9404 17.8494 18.5 17.1591 18.5H6.15909C5.46874 18.5 4.90909 17.9404 4.90909 17.25Z',
10
+ 'M11.0455 21.25C11.0455 20.5596 11.6051 20 12.2955 20H14.7045C15.3949 20 15.9545 20.5596 15.9545 21.25C15.9545 21.9404 15.3949 22.5 14.7045 22.5H12.2955C11.6051 22.5 11.0455 21.9404 11.0455 21.25Z',
11
+ 'M34.4348 4.20455H37.6593L41.9774 14.7443H42.1479L46.4661 4.20455H49.6905V18.75H47.1621V8.7571H47.0272L43.0073 18.7074H41.1181L37.0982 8.7358H36.9632V18.75H34.4348V4.20455Z',
12
+ 'M57.2757 18.9631C56.182 18.9631 55.2374 18.7358 54.4419 18.2812C53.6512 17.822 53.0428 17.1733 52.6167 16.3352C52.1905 15.4924 51.9774 14.5005 51.9774 13.3594C51.9774 12.2372 52.1905 11.2524 52.6167 10.4048C53.0475 9.55256 53.6489 8.88968 54.4206 8.41619C55.1924 7.93797 56.0991 7.69886 57.1408 7.69886C57.8131 7.69886 58.4476 7.80777 59.0442 8.02557C59.6455 8.23864 60.1758 8.57008 60.6351 9.01989C61.0991 9.4697 61.4637 10.0426 61.7289 10.7386C61.994 11.4299 62.1266 12.2538 62.1266 13.2102V13.9986H53.1848V12.2656H59.6621C59.6574 11.7732 59.5508 11.3352 59.3425 10.9517C59.1342 10.5634 58.843 10.258 58.4689 10.0355C58.0996 9.81297 57.6687 9.7017 57.1763 9.7017C56.6507 9.7017 56.1891 9.82955 55.7914 10.0852C55.3936 10.3362 55.0835 10.6676 54.861 11.0795C54.6432 11.4867 54.5319 11.9342 54.5272 12.4219V13.9347C54.5272 14.5691 54.6432 15.1136 54.8752 15.5682C55.1072 16.018 55.4315 16.3636 55.8482 16.6051C56.2649 16.8419 56.7525 16.9602 57.3113 16.9602C57.6853 16.9602 58.0239 16.9081 58.3269 16.804C58.6299 16.6951 58.8927 16.5365 59.1152 16.3281C59.3378 16.1198 59.5059 15.8617 59.6195 15.554L62.0201 15.8239C61.8685 16.4583 61.5797 17.0123 61.1536 17.4858C60.7322 17.9545 60.1924 18.3191 59.5343 18.5795C58.8761 18.8352 58.1233 18.9631 57.2757 18.9631Z',
13
+ 'M69.7491 7.84091V9.82955H63.4778V7.84091H69.7491ZM65.0261 5.22727H67.5971V15.4688C67.5971 15.8144 67.6492 16.0795 67.7534 16.2642C67.8623 16.4441 68.0043 16.5672 68.1795 16.6335C68.3547 16.6998 68.5488 16.733 68.7619 16.733C68.9229 16.733 69.0697 16.7211 69.2022 16.6974C69.3395 16.6738 69.4437 16.6525 69.5147 16.6335L69.948 18.6435C69.8107 18.6908 69.6142 18.7429 69.3585 18.7997C69.1075 18.8565 68.7998 18.8897 68.4352 18.8991C67.7912 18.9181 67.2112 18.821 66.6951 18.608C66.179 18.3902 65.7695 18.054 65.4664 17.5994C65.1681 17.1449 65.0214 16.5767 65.0261 15.8949V5.22727Z',
14
+ 'M75.0385 18.9702C74.3472 18.9702 73.7246 18.8471 73.1706 18.6009C72.6214 18.3499 72.1858 17.9806 71.8638 17.4929C71.5466 17.0052 71.388 16.4039 71.388 15.6889C71.388 15.0734 71.5016 14.5644 71.7289 14.1619C71.9561 13.7595 72.2663 13.4375 72.6593 13.196C73.0523 12.9545 73.495 12.7723 73.9874 12.6491C74.4845 12.5213 74.9983 12.429 75.5286 12.3722C76.1678 12.3059 76.6863 12.2467 77.084 12.1946C77.4817 12.1378 77.7705 12.0526 77.9505 11.9389C78.1351 11.8205 78.2274 11.6383 78.2274 11.392V11.3494C78.2274 10.8144 78.0688 10.4001 77.7516 10.1065C77.4344 9.81297 76.9775 9.66619 76.3809 9.66619C75.7511 9.66619 75.2516 9.8035 74.8823 10.0781C74.5177 10.3527 74.2715 10.6771 74.1436 11.0511L71.7431 10.7102C71.9325 10.0473 72.245 9.49337 72.6806 9.0483C73.1162 8.59848 73.6489 8.26231 74.2786 8.03977C74.9083 7.8125 75.6043 7.69886 76.3667 7.69886C76.8922 7.69886 77.4154 7.76042 77.9363 7.88352C78.4571 8.00663 78.9329 8.21023 79.3638 8.49432C79.7947 8.77367 80.1403 9.15483 80.4007 9.63778C80.6659 10.1207 80.7985 10.7244 80.7985 11.4489V18.75H78.3269V17.2514H78.2417C78.0854 17.5545 77.8652 17.8385 77.5811 18.1037C77.3018 18.3641 76.949 18.5748 76.5229 18.7358C76.1015 18.892 75.6067 18.9702 75.0385 18.9702ZM75.7061 17.081C76.2222 17.081 76.6697 16.9792 77.0485 16.7756C77.4273 16.5672 77.7185 16.2926 77.9221 15.9517C78.1304 15.6108 78.2346 15.2391 78.2346 14.8366V13.5511C78.1541 13.6174 78.0167 13.679 77.8226 13.7358C77.6332 13.7926 77.4202 13.8423 77.1834 13.8849C76.9467 13.9276 76.7123 13.9654 76.4803 13.9986C76.2483 14.0317 76.047 14.0601 75.8766 14.0838C75.4931 14.1359 75.1498 14.2211 74.8468 14.3395C74.5437 14.4579 74.3046 14.6236 74.1294 14.8366C73.9543 15.045 73.8667 15.3149 73.8667 15.6463C73.8667 16.1198 74.0395 16.4773 74.3851 16.7188C74.7308 16.9602 75.1711 17.081 75.7061 17.081Z',
15
+ 'M97.3042 9.97443H93.753C93.7057 9.60985 93.6086 9.28078 93.4618 8.98722C93.315 8.69366 93.1209 8.44271 92.8794 8.23438C92.638 8.02604 92.3515 7.86742 92.0201 7.75852C91.6934 7.64489 91.3311 7.58807 90.9334 7.58807C90.2279 7.58807 89.6195 7.76089 89.1081 8.10653C88.6015 8.45218 88.2109 8.9517 87.9363 9.60511C87.6664 10.2585 87.5314 11.0492 87.5314 11.9773C87.5314 12.9432 87.6687 13.7528 87.9434 14.4062C88.2227 15.0549 88.6133 15.545 89.1152 15.8764C89.6219 16.2031 90.2208 16.3665 90.9121 16.3665C91.3004 16.3665 91.6531 16.3168 91.9703 16.2173C92.2923 16.1179 92.574 15.9735 92.8155 15.7841C93.0617 15.59 93.263 15.3556 93.4192 15.081C93.5802 14.8016 93.6915 14.4867 93.753 14.1364L97.3042 14.1577C97.2426 14.8016 97.0556 15.4361 96.7431 16.0611C96.4353 16.6861 96.0115 17.2566 95.4718 17.7727C94.932 18.2841 94.2739 18.6913 93.4973 18.9943C92.7256 19.2973 91.8401 19.4489 90.8411 19.4489C89.5248 19.4489 88.3458 19.16 87.3042 18.5824C86.2672 18 85.4481 17.1525 84.8468 16.0398C84.2454 14.9271 83.9448 13.5729 83.9448 11.9773C83.9448 10.3769 84.2502 9.02036 84.861 7.90767C85.4718 6.79498 86.298 5.94981 87.3397 5.37216C88.3813 4.79451 89.5485 4.50568 90.8411 4.50568C91.7218 4.50568 92.5362 4.62879 93.2843 4.875C94.0324 5.11648 94.6905 5.47159 95.2587 5.94034C95.8269 6.40436 96.2885 6.97491 96.6436 7.65199C96.9988 8.32907 97.2189 9.10322 97.3042 9.97443Z',
16
+ 'M104.415 19.456C103.274 19.456 102.289 19.2311 101.461 18.7812C100.637 18.3267 100.002 17.6804 99.5574 16.8423C99.117 15.9995 98.8968 14.9981 98.8968 13.8381C98.8968 12.7112 99.1194 11.7263 99.5645 10.8835C100.01 10.036 100.637 9.37784 101.447 8.90909C102.256 8.43561 103.21 8.19886 104.309 8.19886C105.085 8.19886 105.796 8.3196 106.439 8.56108C107.083 8.80256 107.64 9.16004 108.108 9.63352C108.577 10.107 108.942 10.6918 109.202 11.3878C109.463 12.0791 109.593 12.8722 109.593 13.767V14.6335H100.111V12.6165H106.361C106.357 12.2472 106.269 11.9181 106.099 11.6293C105.928 11.3404 105.694 11.1155 105.395 10.9545C105.102 10.7888 104.763 10.706 104.38 10.706C103.992 10.706 103.644 10.7936 103.336 10.9688C103.028 11.1392 102.784 11.3736 102.604 11.6719C102.424 11.9654 102.33 12.2992 102.32 12.6733V14.7259C102.32 15.1709 102.408 15.5616 102.583 15.8977C102.758 16.2292 103.007 16.4872 103.329 16.6719C103.651 16.8565 104.034 16.9489 104.479 16.9489C104.787 16.9489 105.066 16.9062 105.317 16.821C105.568 16.7358 105.784 16.6103 105.964 16.4446C106.144 16.2789 106.278 16.0753 106.368 15.8338L109.557 15.9261C109.425 16.6411 109.134 17.2637 108.684 17.794C108.239 18.3196 107.654 18.7292 106.93 19.0227C106.205 19.3116 105.367 19.456 104.415 19.456Z',
17
+ 'M114.84 13.0284V19.25H111.367V8.34091H114.669V10.3438H114.79C115.031 9.67614 115.443 9.15293 116.026 8.77415C116.608 8.39062 117.302 8.19886 118.107 8.19886C118.874 8.19886 119.539 8.37169 120.102 8.71733C120.671 9.05824 121.111 9.53646 121.423 10.152C121.741 10.7628 121.897 11.4777 121.892 12.2969V19.25H118.419V12.9787C118.424 12.3726 118.27 11.8991 117.958 11.5582C117.65 11.2173 117.221 11.0469 116.672 11.0469C116.307 11.0469 115.985 11.1274 115.706 11.2884C115.432 11.4446 115.218 11.6695 115.067 11.9631C114.92 12.2566 114.844 12.6117 114.84 13.0284Z',
18
+ 'M133.567 11.6719L130.378 11.7571C130.345 11.5298 130.255 11.3286 130.108 11.1534C129.961 10.9735 129.769 10.8338 129.532 10.7344C129.3 10.6302 129.031 10.5781 128.723 10.5781C128.32 10.5781 127.977 10.6586 127.693 10.8196C127.414 10.9806 127.276 11.1984 127.281 11.473C127.276 11.6861 127.362 11.8707 127.537 12.027C127.717 12.1832 128.036 12.3087 128.496 12.4034L130.598 12.8011C131.687 13.0095 132.497 13.3551 133.027 13.8381C133.562 14.321 133.832 14.9602 133.836 15.7557C133.832 16.5038 133.609 17.1548 133.169 17.7088C132.733 18.2628 132.137 18.6937 131.379 19.0014C130.622 19.3045 129.755 19.456 128.78 19.456C127.222 19.456 125.993 19.1364 125.094 18.4972C124.199 17.8532 123.687 16.9915 123.559 15.9119L126.99 15.8267C127.066 16.2244 127.262 16.5275 127.579 16.7358C127.897 16.9441 128.301 17.0483 128.794 17.0483C129.239 17.0483 129.601 16.9654 129.881 16.7997C130.16 16.634 130.302 16.4138 130.307 16.1392C130.302 15.893 130.193 15.6965 129.98 15.5497C129.767 15.3982 129.433 15.2798 128.979 15.1946L127.075 14.8324C125.981 14.6335 125.167 14.2666 124.632 13.7315C124.097 13.1918 123.832 12.5052 123.836 11.6719C123.832 10.9427 124.026 10.3201 124.419 9.80398C124.812 9.28314 125.371 8.88542 126.095 8.6108C126.819 8.33617 127.674 8.19886 128.659 8.19886C130.136 8.19886 131.301 8.509 132.153 9.12926C133.006 9.74479 133.477 10.5923 133.567 11.6719Z',
19
+ 'M142.585 14.5412V8.34091H146.051V19.25H142.741V17.2188H142.627C142.386 17.8864 141.974 18.4167 141.392 18.8097C140.814 19.1979 140.115 19.392 139.296 19.392C138.553 19.392 137.9 19.2216 137.336 18.8807C136.773 18.5398 136.335 18.0639 136.022 17.4531C135.71 16.8376 135.551 16.1179 135.546 15.294V8.34091H139.019V14.6122C139.024 15.2041 139.18 15.6705 139.488 16.0114C139.796 16.3523 140.215 16.5227 140.745 16.5227C141.091 16.5227 141.401 16.447 141.676 16.2955C141.955 16.1392 142.175 15.9143 142.336 15.6207C142.502 15.3224 142.585 14.9626 142.585 14.5412Z',
20
+ 'M157.785 11.6719L154.596 11.7571C154.563 11.5298 154.473 11.3286 154.327 11.1534C154.18 10.9735 153.988 10.8338 153.751 10.7344C153.519 10.6302 153.249 10.5781 152.942 10.5781C152.539 10.5781 152.196 10.6586 151.912 10.8196C151.632 10.9806 151.495 11.1984 151.5 11.473C151.495 11.6861 151.58 11.8707 151.756 12.027C151.935 12.1832 152.255 12.3087 152.714 12.4034L154.817 12.8011C155.906 13.0095 156.715 13.3551 157.246 13.8381C157.781 14.321 158.05 14.9602 158.055 15.7557C158.05 16.5038 157.828 17.1548 157.388 17.7088C156.952 18.2628 156.355 18.6937 155.598 19.0014C154.84 19.3045 153.974 19.456 152.998 19.456C151.441 19.456 150.212 19.1364 149.312 18.4972C148.417 17.8532 147.906 16.9915 147.778 15.9119L151.209 15.8267C151.284 16.2244 151.481 16.5275 151.798 16.7358C152.115 16.9441 152.52 17.0483 153.013 17.0483C153.458 17.0483 153.82 16.9654 154.099 16.7997C154.379 16.634 154.521 16.4138 154.525 16.1392C154.521 15.893 154.412 15.6965 154.199 15.5497C153.986 15.3982 153.652 15.2798 153.197 15.1946L151.294 14.8324C150.2 14.6335 149.386 14.2666 148.851 13.7315C148.316 13.1918 148.05 12.5052 148.055 11.6719C148.05 10.9427 148.245 10.3201 148.638 9.80398C149.031 9.28314 149.589 8.88542 150.314 8.6108C151.038 8.33617 151.893 8.19886 152.878 8.19886C154.355 8.19886 155.52 8.509 156.372 9.12926C157.224 9.74479 157.695 10.5923 157.785 11.6719Z',
21
+ ];
22
+ //# sourceMappingURL=lockupPaths.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lockupPaths.js","sourceRoot":"","sources":["../../src/marks/lockupPaths.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,6DAA6D;AAC7D,MAAM,CAAC,MAAM,cAAc,GAAG,YAAY,CAAA;AAE1C,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,8LAA8L;IAC9L,4LAA4L;IAC5L,gJAAgJ;IAChJ,kLAAkL;IAClL,qMAAqM;IACrM,qMAAqM;IACrM,6KAA6K;IAC7K,8uCAA8uC;IAC9uC,okBAAokB;IACpkB,6wDAA6wD;IAC7wD,o1CAAo1C;IACp1C,quCAAquC;IACruC,gjBAAgjB;IAChjB,i1CAAi1C;IACj1C,gjBAAgjB;IAChjB,00CAA00C;CAC30C,CAAA"}
@@ -0,0 +1,16 @@
1
+ import type { AnchorHTMLAttributes, ButtonHTMLAttributes } from 'react';
2
+ type Own = {
3
+ variant?: 'primary' | 'secondary' | 'text' | 'danger';
4
+ };
5
+ type ButtonProps = Own & (({
6
+ href?: undefined;
7
+ } & ButtonHTMLAttributes<HTMLButtonElement>) | ({
8
+ href: string;
9
+ } & AnchorHTMLAttributes<HTMLAnchorElement>));
10
+ /** An action: Royal Purple solid for the primary, a Charcoal outline for the
11
+ * secondary, bare text for the third. One primary per view. A solid Garnet
12
+ * fill, `danger`, marks only a risky action: one that destroys, discards,
13
+ * revokes or cannot be undone. With an `href` it renders a link. The
14
+ * guidelines' Actions pattern does not bind yet. */
15
+ export declare function Button({ variant, className, ...props }: ButtonProps): import("react").JSX.Element;
16
+ export {};
@@ -0,0 +1,14 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { cn } from './cn.js';
3
+ /** An action: Royal Purple solid for the primary, a Charcoal outline for the
4
+ * secondary, bare text for the third. One primary per view. A solid Garnet
5
+ * fill, `danger`, marks only a risky action: one that destroys, discards,
6
+ * revokes or cannot be undone. With an `href` it renders a link. The
7
+ * guidelines' Actions pattern does not bind yet. */
8
+ export function Button({ variant = 'primary', className, ...props }) {
9
+ const classes = cn('mc-button', `mc-button-${variant}`, className);
10
+ if (props.href !== undefined)
11
+ return _jsx("a", { className: classes, ...props });
12
+ return _jsx("button", { type: "button", className: classes, ...props });
13
+ }
14
+ //# sourceMappingURL=Button.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.js","sourceRoot":"","sources":["../../src/tools/Button.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAA;AAU5B;;;;qDAIqD;AACrD,MAAM,UAAU,MAAM,CAAC,EACrB,OAAO,GAAG,SAAS,EACnB,SAAS,EACT,GAAG,KAAK,EACI;IACZ,MAAM,OAAO,GAAG,EAAE,CAAC,WAAW,EAAE,aAAa,OAAO,EAAE,EAAE,SAAS,CAAC,CAAA;IAClE,IAAI,KAAK,CAAC,IAAI,KAAK,SAAS;QAAE,OAAO,YAAG,SAAS,EAAE,OAAO,KAAM,KAAK,GAAI,CAAA;IACzE,OAAO,iBAAQ,IAAI,EAAC,QAAQ,EAAC,SAAS,EAAE,OAAO,KAAM,KAAK,GAAI,CAAA;AAChE,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { HTMLAttributes } from 'react';
2
+ type ChipProps = HTMLAttributes<HTMLSpanElement> & {
3
+ family?: 'purple' | 'grey' | 'red' | 'blue';
4
+ };
5
+ /** A small label in a family's tint fill, with its bold ink and border. */
6
+ export declare function Chip({ family, className, ...props }: ChipProps): import("react").JSX.Element;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { cn } from './cn.js';
3
+ /** A small label in a family's tint fill, with its bold ink and border. */
4
+ export function Chip({ family = 'purple', className, ...props }) {
5
+ return (_jsx("span", { className: cn('mc-chip', `mc-chip-${family}`, className), ...props }));
6
+ }
7
+ //# sourceMappingURL=Chip.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Chip.js","sourceRoot":"","sources":["../../src/tools/Chip.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAA;AAM5B,2EAA2E;AAC3E,MAAM,UAAU,IAAI,CAAC,EAAE,MAAM,GAAG,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,EAAa;IACxE,OAAO,CACL,eACE,SAAS,EAAE,EAAE,CAAC,SAAS,EAAE,WAAW,MAAM,EAAE,EAAE,SAAS,CAAC,KACpD,KAAK,GACT,CACH,CAAA;AACH,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { HTMLAttributes, ReactNode } from 'react';
2
+ type NoticeProps = HTMLAttributes<HTMLDivElement> & {
3
+ title?: ReactNode;
4
+ };
5
+ /** A callout: the Reds' tint fill at full width, bold ink and border. The
6
+ * guidelines' Callout pattern does not bind yet. */
7
+ export declare function Notice({ title, children, className, ...props }: NoticeProps): import("react").JSX.Element;
8
+ export {};
@@ -0,0 +1,8 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { cn } from './cn.js';
3
+ /** A callout: the Reds' tint fill at full width, bold ink and border. The
4
+ * guidelines' Callout pattern does not bind yet. */
5
+ export function Notice({ title, children, className, ...props }) {
6
+ return (_jsxs("div", { role: "note", className: cn('mc-notice', className), ...props, children: [title && _jsx("p", { className: "mc-notice-title", children: title }), children] }));
7
+ }
8
+ //# sourceMappingURL=Notice.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Notice.js","sourceRoot":"","sources":["../../src/tools/Notice.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAA;AAI5B;qDACqD;AACrD,MAAM,UAAU,MAAM,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,EAAe;IAC1E,OAAO,CACL,eAAK,IAAI,EAAC,MAAM,EAAC,SAAS,EAAE,EAAE,CAAC,WAAW,EAAE,SAAS,CAAC,KAAM,KAAK,aAC9D,KAAK,IAAI,YAAG,SAAS,EAAC,iBAAiB,YAAE,KAAK,GAAK,EACnD,QAAQ,IACL,CACP,CAAA;AACH,CAAC"}
@@ -0,0 +1,2 @@
1
+ /** Joins the class names that are set. */
2
+ export declare const cn: (...names: (string | false | null | undefined)[]) => string;
@@ -0,0 +1,3 @@
1
+ /** Joins the class names that are set. */
2
+ export const cn = (...names) => names.filter(Boolean).join(' ');
3
+ //# sourceMappingURL=cn.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cn.js","sourceRoot":"","sources":["../../src/tools/cn.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,KAA4C,EAAE,EAAE,CACpE,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA"}