@terjeballestad/bob 0.0.0-stage → 0.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 CHANGED
@@ -1,3 +1,109 @@
1
- # Temporary Holding Version
1
+ # Bob
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Bob is the design system that Time Turtle and pm-board share: React components and the CSS
4
+ tokens they render against. One dark theme.
5
+
6
+ ```sh
7
+ npm i @terjeballestad/bob
8
+ ```
9
+
10
+ ```tsx
11
+ import { Button, Chip, StatusDot } from '@terjeballestad/bob';
12
+
13
+ <Button variant="primary" size="sm" onClick={save}>Save</Button>
14
+ <Chip mono tone="green">admin</Chip>
15
+ <StatusDot state="live" color="var(--green)" size={7} />
16
+ ```
17
+
18
+ An import from `@terjeballestad/bob` also loads `bob.css`: the tokens, the keyframes and the
19
+ component styles. You do not import a stylesheet yourself. If your bundler drops CSS that a
20
+ package imports, import `@terjeballestad/bob/styles.css` once at the root of your app.
21
+
22
+ `react` and `react-dom` 18.3 or later are peer dependencies.
23
+
24
+ ## Layout
25
+
26
+ ```
27
+ src/
28
+ index.ts barrel: every component and its prop types
29
+ types.ts DSOption / DSOptionInput, shared by Select and SegToggle
30
+ styles.css entry stylesheet, @imports tokens/
31
+ tokens/ colors, typography, layout, fonts, base (reset + keyframes)
32
+ components/
33
+ core/ Avatar Button Chip Kbd ProgressBar SegToggle StatusDot
34
+ forms/ FormRow Input SearchInput Select Textarea
35
+ feedback/ Modal Toast ToastStack
36
+ board/ ListRow NavRow SectionLabel TicketCard
37
+ TOKENS.md what each CSS custom property means
38
+ ```
39
+
40
+ ## Conventions
41
+
42
+ - **Each component has a CSS Module** next to it (`Button.module.css`). The rules read the tokens as
43
+ `var(--token)`. [TOKENS.md](./TOKENS.md) lists every token. Hover is a CSS `:hover` rule. No
44
+ component keeps state.
45
+ - **Class names are scoped**, for example `bob_Button-module_btn_<hash>`, so they cannot clash with the app.
46
+ Do not write app CSS that targets them. Pass `className` or `style` instead.
47
+ - **Overrides.** Components that wrap a native element (`Button`, `Chip`, `Input`, `Select`,
48
+ `Textarea`, `SearchInput`) take `className` and forward every other attribute of that element.
49
+ The other components take a `style` prop.
50
+ - **One dark theme.** There is no light mode and no theme switcher yet.
51
+ - **No icons.** Iconography is colored dots (`StatusDot`), mono text chips (`Chip mono`) and
52
+ unicode characters. Do not add an icon set without a decision on the board.
53
+ - **Fonts** come from Google Fonts through an `@import` in `tokens/fonts.css`: Schibsted Grotesk
54
+ and JetBrains Mono.
55
+
56
+ ## Develop
57
+
58
+ ```sh
59
+ npm install
60
+ npm test # builds dist/, then runs the export and render tests
61
+ npm run typecheck # also checks every exported type through the package name
62
+ ```
63
+
64
+ `npm test` checks the built package, not the source: the exports match Time Turtle's original
65
+ barrel, every component renders with Bob's scoped class names, and `dist/index.js` imports
66
+ `bob.css`.
67
+
68
+ ## Storybook and screenshot tests
69
+
70
+ ```sh
71
+ npm run storybook # http://localhost:6006
72
+ npm run build-storybook # static build in storybook-static/
73
+ npm run test:visual:docker # one screenshot per story, in the Playwright Linux image
74
+ ```
75
+
76
+ Each component has a story with controls for its props. The Introduction and Tokens pages show
77
+ this README and [TOKENS.md](./TOKENS.md).
78
+
79
+ The screenshot test opens every story in the built Storybook and compares it with a baseline in
80
+ `visual/__screenshots__/`, with no pixel tolerance. Baselines come from the Playwright Linux image,
81
+ never from macOS, because fonts render differently. CI uses the same image. Build the Storybook
82
+ first.
83
+
84
+ When you change how a component looks on purpose, take new baselines and commit them with the
85
+ change, so the review shows the before and after:
86
+
87
+ ```sh
88
+ npm run build-storybook && npm run test:visual:docker -- --update-snapshots
89
+ ```
90
+
91
+ A new story fails until it has a baseline. The image version in `package.json` and `ci.yml` must
92
+ match the installed `@playwright/test`.
93
+
94
+ ## Release
95
+
96
+ Bump the version in a commit, then push a tag `v<version>`. GitHub Actions runs the tests and
97
+ publishes to npm with trusted publishing, so no one types an OTP. A change to a prop or a token
98
+ name is a major version.
99
+
100
+ ## Provenance
101
+
102
+ Bob 0.1.0 is `client/src/ds/` from Time Turtle at commit `bb93eea`, moved with no change to a
103
+ component, a style or a token. Only this README is new: the old one said that styling was inline
104
+ and that hover was component state, which was no longer true of the code.
105
+
106
+ Before that, the components were unpacked from `_ds_bundle.js`, a prebuilt IIFE that read
107
+ `window.React` and exported through a `window.PMBoardDesignSystem_cdbc5e` namespace (Time Turtle
108
+ SB-006). Behavior and every style value carried over unchanged. The `ui_kits/pm-board` demo app in
109
+ the bundle was dropped, because nothing imported it.
package/TOKENS.md ADDED
@@ -0,0 +1,130 @@
1
+ # Design tokens
2
+
3
+ Every token is a CSS custom property on `:root`, declared in `src/tokens/*.css` and pulled in by
4
+ `src/styles.css` (which `index.ts` imports). Each component's CSS Module reads them as
5
+ `var(--name)`. There is no theme switcher: **one dark theme only.**
6
+
7
+ Values were extracted verbatim from the source dashboard design bundle (not part of this repo).
8
+
9
+ ## Colors — `tokens/colors.css`
10
+
11
+ ### Surfaces
12
+
13
+ | Token | Value | Use |
14
+ | ---------------- | --------- | ---------------------------------------------------- |
15
+ | `--bg` | `#0f1014` | App background (near-black base) |
16
+ | `--bg-side` | `#121318` | Sidebar |
17
+ | `--bg-rail` | `#111218` | Right rail |
18
+ | `--panel` | `#15161b` | Cards, raised rows |
19
+ | `--panel-dim` | `#13141a` | Recessed panels |
20
+ | `--panel-hover` | `#1b1d24` | Hover/selected fill |
21
+ | `--input` | `#191b21` | Input, select, textarea fill |
22
+ | `--input-border` | `#22252f` | Input border; also progress-bar track and `Kbd` fill |
23
+ | `--border` | `#1f222b` | Default hairline |
24
+ | `--border-2` | `#262933` | Stronger hairline (buttons, modals) |
25
+
26
+ The ramp moves one step at a time: `transparent → #16181f → --panel-hover` on hover. Depth comes
27
+ from 1px borders, never elevation.
28
+
29
+ ### Text ramp
30
+
31
+ | Token | Value | Use |
32
+ | -------------- | --------- | ------------------------------------ |
33
+ | `--text` | `#e6e7ec` | Primary |
34
+ | `--text-2` | `#9b9fad` | Secondary, button labels |
35
+ | `--text-3` | `#62667a` | Muted — section labels, placeholders |
36
+ | `--text-4` | `#4a4e5e` | Faint — timestamps, ages |
37
+ | `--text-prose` | `#c9cbd4` | Long-form document body |
38
+
39
+ De-emphasis is a ramp step down or opacity (.55–.85), never a hue change. Disabled is `opacity: .5`.
40
+
41
+ ### Accent and functional hues
42
+
43
+ | Token | Value | Meaning |
44
+ | --------------- | --------- | ------------------------------------------ |
45
+ | `--accent` | `#7b83eb` | The single brand indigo |
46
+ | `--accent-deep` | `#4c56c0` | Pressed/focus border, `accent` button fill |
47
+ | `--on-accent` | `#0f1014` | Text on an `--accent` fill |
48
+ | `--blue` | `#52a9ff` | Docs, references |
49
+ | `--green` | `#46c288` | Done, plans, live agents |
50
+ | `--orange` | `#f0883e` | Blocked, warnings |
51
+ | `--purple` | `#c084fc` | Probe |
52
+ | `--yellow` | `#e2c541` | Gap |
53
+ | `--danger` | `#e5484d` | Destructive |
54
+ | `--gold` | `#d3b078` | Human avatar |
55
+
56
+ Color carries _meaning_, not decoration. It appears mostly as an 8–12% alpha tint behind small text.
57
+
58
+ ### Tints and scrim
59
+
60
+ `--tint-accent` `rgba(123,131,235,.10)` · `--tint-blue` `rgba(82,169,255,.08)` ·
61
+ `--tint-green` `rgba(70,194,136,.10)` · `--tint-orange` `rgba(240,136,62,.09)` ·
62
+ `--tint-danger` `rgba(229,72,77,.12)` · `--tint-yellow` `rgba(226,197,65,.10)` ·
63
+ `--scrim` `rgba(5,6,9,.55)` (modal backdrop — no `backdrop-filter`).
64
+
65
+ ### Semantic aliases
66
+
67
+ `--surface-app` `--surface-sidebar` `--surface-rail` `--surface-card` `--surface-card-hover`
68
+ `--surface-input` alias the raw surfaces above. Standalone: `--surface-overlay` `#131419`,
69
+ `--surface-modal` `#16171d`, `--surface-code` `#0d0e12`, `--surface-toast` `#1d1f27`,
70
+ `--border-card-hover` `#2e3342`. Prefer the semantic name in new code.
71
+
72
+ ## Typography — `tokens/typography.css`
73
+
74
+ | Token | Value |
75
+ | ------------------------ | -------------------------------------------- |
76
+ | `--sans` / `--font-sans` | `'Schibsted Grotesk', system-ui, sans-serif` |
77
+ | `--mono` / `--font-mono` | `'JetBrains Mono', ui-monospace, monospace` |
78
+
79
+ Mono is for identity and measurement — ids, counts, timestamps, durations, `kbd`. Everything else is sans.
80
+
81
+ Size ramp (exact odd values are intentional; there is no modular scale):
82
+
83
+ | Token | Value | Use |
84
+ | -------------- | -------- | -------------------------------- |
85
+ | `--fs-micro` | `9.5px` | Kind/priority labels |
86
+ | `--fs-tiny` | `10.5px` | Mono ids, counts, section labels |
87
+ | `--fs-caption` | `11.5px` | Meta rows, activity lines |
88
+ | `--fs-body` | `12.5px` | Card titles, rows, inputs |
89
+ | `--fs-base` | `13px` | Body default |
90
+ | `--fs-prose` | `13.5px` | Document body |
91
+ | `--fs-title` | `15px` | Modal/featured headings |
92
+ | `--fs-doc` | `21px` | Slide-over document title |
93
+
94
+ Weights `--fw-regular` 400 · `--fw-medium` 500 · `--fw-semibold` 600 · `--fw-bold` 700.
95
+ Tracking `--ls-heading` `-.01em` (headings) · `--ls-label` `.08em` (uppercase section labels).
96
+
97
+ ## Layout — `tokens/layout.css`
98
+
99
+ Radii: `--radius-kbd` 4px (chips/kbd) · `--radius-chip` 5px · `--radius-btn` 7px
100
+ (buttons, inputs, nav rows) · `--radius` 8px (cards) · `--radius-lg` 10px (featured) ·
101
+ `--radius-xl` 12px (modals). Dots are circles; swatches are 2px squares.
102
+
103
+ Shadows only on floating layers: `--shadow-modal` `0 24px 60px rgba(0,0,0,.5)` ·
104
+ `--shadow-overlay` `-24px 0 60px rgba(0,0,0,.55)` · `--shadow-toast` `0 8px 24px rgba(0,0,0,.4)`.
105
+ Emphasis rings: `--glow-accent` `0 0 0 1px rgba(123,131,235,.12)` · `--glow-green` `0 0 6px rgba(70,194,136,.7)`.
106
+
107
+ Structure: `--sidebar-w` 226px · `--rail-w` 290px · `--topbar-h` 48px.
108
+
109
+ Motion: `--dur-fast` .1s · `--dur` .12s · `--dur-slow` .18s, all `--ease` `ease`. Fast and small — nothing bounces.
110
+
111
+ ## Base styles and keyframes — `tokens/base.css`
112
+
113
+ Carries the reset, `body` defaults, the link and scrollbar styling, and four keyframes that
114
+ components reference by name:
115
+
116
+ | Keyframe | Used by |
117
+ | ---------- | --------------------------------------------------------- |
118
+ | `pulse` | `StatusDot state="live"`, `TicketCard live` |
119
+ | `toast-in` | `Toast` |
120
+ | `card-in` | Staggered card entry (available; not used by the app yet) |
121
+ | `slide-in` | Slide-over panels (available; not used by the app yet) |
122
+
123
+ **These keyframes are why components need the stylesheet.** Importing a component from `../ds`
124
+ pulls in `styles.css` automatically, so they are always present.
125
+
126
+ ## Fonts — `tokens/fonts.css`
127
+
128
+ Schibsted Grotesk and JetBrains Mono load from the Google Fonts CDN, matching the source app.
129
+ No font binaries ship with the system. If the app must work offline, self-host and replace this file —
130
+ the `--sans` / `--mono` tokens are the only thing components depend on.
package/dist/bob.css ADDED
@@ -0,0 +1 @@
1
+ @import"https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap";:root{--bg: #0f1014;--bg-side: #121318;--bg-rail: #111218;--panel: #15161b;--panel-dim: #13141a;--panel-hover: #1b1d24;--input: #191b21;--input-border: #22252f;--border: #1f222b;--border-2: #262933;--text: #e6e7ec;--text-2: #9b9fad;--text-3: #62667a;--text-4: #4a4e5e;--accent: #7b83eb;--accent-deep: #4c56c0;--blue: #52a9ff;--green: #46c288;--orange: #f0883e;--purple: #c084fc;--yellow: #e2c541;--danger: #e5484d;--gold: #d3b078;--surface-app: var(--bg);--surface-sidebar: var(--bg-side);--surface-rail: var(--bg-rail);--surface-card: var(--panel);--surface-card-hover: var(--panel-hover);--surface-input: var(--input);--surface-overlay: #131419;--surface-modal: #16171d;--surface-code: #0d0e12;--surface-toast: #1d1f27;--border-card-hover: #2e3342;--text-body: var(--text);--text-secondary: var(--text-2);--text-muted: var(--text-3);--text-faint: var(--text-4);--text-prose: #c9cbd4;--on-accent: #0f1014;--tint-accent: rgba(123, 131, 235, .1);--tint-blue: rgba(82, 169, 255, .08);--tint-green: rgba(70, 194, 136, .1);--tint-orange: rgba(240, 136, 62, .09);--tint-danger: rgba(229, 72, 77, .12);--tint-yellow: rgba(226, 197, 65, .1);--scrim: rgba(5, 6, 9, .55)}:root{--sans: "Schibsted Grotesk", system-ui, sans-serif;--mono: "JetBrains Mono", ui-monospace, monospace;--font-sans: var(--sans);--font-mono: var(--mono);--fs-micro: 9.5px;--fs-tiny: 10.5px;--fs-caption: 11.5px;--fs-body: 12.5px;--fs-base: 13px;--fs-prose: 13.5px;--fs-title: 15px;--fs-doc: 21px;--fw-regular: 400;--fw-medium: 500;--fw-semibold: 600;--fw-bold: 700;--ls-heading: -.01em;--ls-label: .08em}:root{--radius: 8px;--radius-lg: 10px;--radius-xl: 12px;--radius-btn: 7px;--radius-chip: 5px;--radius-kbd: 4px;--shadow-modal: 0 24px 60px rgba(0, 0, 0, .5);--shadow-overlay: -24px 0 60px rgba(0, 0, 0, .55);--shadow-toast: 0 8px 24px rgba(0, 0, 0, .4);--glow-accent: 0 0 0 1px rgba(123, 131, 235, .12);--glow-green: 0 0 6px rgba(70, 194, 136, .7);--sidebar-w: 226px;--rail-w: 290px;--topbar-h: 48px;--ease: ease;--dur-fast: .1s;--dur: .12s;--dur-slow: .18s}*{margin:0;padding:0;box-sizing:border-box}body{font-family:var(--sans);font-size:13px;background:var(--bg);color:var(--text)}button{font-family:inherit;cursor:pointer}input,select,textarea{font-family:inherit}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:#262933;border-radius:5px;border:2px solid var(--bg)}::-webkit-scrollbar-thumb:hover{background:#33374a}@keyframes pulse{0%,to{opacity:1}50%{opacity:.45}}@keyframes card-in{0%{opacity:0;transform:translateY(3px)}to{opacity:1;transform:none}}@keyframes toast-in{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}@keyframes slide-in{0%{transform:translate(24px);opacity:0}to{transform:none;opacity:1}}.bob_Avatar-module_avatar_HScSa{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;font-family:var(--sans);font-weight:700}.bob_Avatar-module_gold_mqr1r{background:#d3b0782e;color:var(--gold)}.bob_Avatar-module_accent_D0JSW{background:#7b83eb2e;color:var(--accent)}.bob_Avatar-module_green_w5bb7{background:#46c2882e;color:var(--green)}.bob_Avatar-module_neutral_kWG2y{background:var(--input-border);color:var(--text-2)}.bob_Button-module_btn_eJJnG{border:1px solid transparent;border-radius:var(--radius-btn);font-family:var(--sans);transition:filter .1s ease,color .1s ease,border-color .1s ease;cursor:pointer}.bob_Button-module_btn_eJJnG:disabled{cursor:default;opacity:.5}.bob_Button-module_sm_vnJyT{font-size:11.5px;padding:4px 10px}.bob_Button-module_md_Qd3AM{font-size:12px;padding:6px 14px}.bob_Button-module_primary_9pVSo{background:var(--accent);color:var(--on-accent);font-weight:600}.bob_Button-module_primary_9pVSo:hover:not(:disabled){filter:brightness(1.12)}.bob_Button-module_secondary_uMApf{background:var(--input);color:var(--text-2);border:1px solid var(--input-border);font-weight:600}.bob_Button-module_secondary_uMApf:hover:not(:disabled){filter:brightness(1.12)}.bob_Button-module_ghost_bqwSN{background:transparent;color:var(--text-2);border:1px solid var(--border-2);font-weight:500}.bob_Button-module_ghost_bqwSN:hover:not(:disabled){color:var(--text);border-color:#333849}.bob_Button-module_accent_YU7-Q{background:var(--accent-deep);color:#fff;font-weight:600}.bob_Button-module_accent_YU7-Q:hover:not(:disabled){filter:brightness(1.12)}.bob_Button-module_danger_CRtnm{background:var(--danger);color:#fff;font-weight:600}.bob_Button-module_danger_CRtnm:hover:not(:disabled){filter:brightness(1.12)}.bob_Button-module_dangerGhost_ieumZ{background:transparent;color:#d47f82;border:1px solid var(--border-2);font-weight:500}.bob_Button-module_dangerGhost_ieumZ:hover:not(:disabled){color:var(--danger);border-color:#e5484d66}.bob_Chip-module_chip_sQbrW{display:inline-block;font-family:var(--sans);font-size:10.5px;font-weight:400;padding:2px 8px;border-radius:var(--radius-chip);white-space:nowrap}.bob_Chip-module_mono_gBHK8{font-family:var(--mono);font-size:10px;padding:1px 6px;border-radius:var(--radius-kbd)}.bob_Chip-module_neutral_kBk9A{color:var(--text-2);background:var(--input)}.bob_Chip-module_accent_WYeMW{color:var(--accent);background:var(--tint-accent)}.bob_Chip-module_blue_dxH3O{color:var(--blue);background:var(--tint-blue)}.bob_Chip-module_green_D-DEq{color:var(--green);background:var(--tint-green)}.bob_Chip-module_orange_jz8fS{color:var(--orange);background:var(--tint-orange)}.bob_Chip-module_danger_9npX2{color:var(--danger);background:var(--tint-danger)}.bob_Chip-module_yellow_N8KNh{color:var(--yellow);background:var(--tint-yellow)}.bob_Chip-module_claim_pTSI5{color:#e6db74;background:#e6db741a;font-weight:600}.bob_Kbd-module_kbd_sVhYa{font-family:var(--mono);font-size:10px;background:var(--input-border);padding:1px 5px;border-radius:var(--radius-kbd);color:var(--text-2)}.bob_ProgressBar-module_track_PsMoi{display:inline-block;background:var(--input-border);border-radius:2px;overflow:hidden;vertical-align:middle}.bob_ProgressBar-module_fill_WWMZj{display:block;height:100%;border-radius:2px}.bob_SegToggle-module_seg_EZ-v3{display:inline-flex;border:1px solid var(--border-2);border-radius:var(--radius-btn);overflow:hidden;font-size:11.5px}.bob_SegToggle-module_opt_MravK{padding:4px 10px;border:none;background:transparent;color:var(--text-3);font-weight:400;font-family:var(--sans);font-size:11.5px;cursor:pointer}.bob_SegToggle-module_active_DbJRD{background:var(--panel-hover);color:var(--text);font-weight:600}.bob_StatusDot-module_dot_-Hg1w{display:inline-block;flex-shrink:0}.bob_FormRow-module_row_QmpYX{margin-bottom:14px}.bob_FormRow-module_label_topys{display:block;font-size:10.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--text-3);margin-bottom:6px;font-family:var(--sans)}.bob_Input-module_input_42-uJ{width:100%;background:var(--input);border:1px solid var(--input-border);border-radius:var(--radius-btn);color:var(--text);font-size:12.5px;padding:8px 10px;outline:none;font-family:var(--sans)}.bob_Input-module_input_42-uJ:focus{border-color:var(--accent-deep)}.bob_SearchInput-module_search_ZKO8L{width:100%;padding:5px 10px;background:var(--input);border:1px solid var(--input-border);border-radius:var(--radius-btn);color:var(--text);font-size:12px;outline:none;transition:width .15s ease,border-color .15s ease;font-family:var(--sans)}.bob_SearchInput-module_search_ZKO8L:focus{border-color:var(--accent-deep)}.bob_SearchInput-module_expand_Mg33w{width:150px}.bob_SearchInput-module_expand_Mg33w:focus{width:210px}.bob_SearchInput-module_kbdBtn_f92g-{display:flex;align-items:center;gap:8px;padding:6px 10px;background:var(--input);border:1px solid var(--input-border);border-radius:var(--radius-btn);color:var(--text-3);font-size:12px;width:100%;text-align:left;font-family:var(--sans);cursor:pointer}.bob_SearchInput-module_kbdBtn_f92g-:hover{border-color:#2b2f3d;color:var(--text-2)}.bob_SearchInput-module_kbdHint_tJdqR{margin-left:auto;font-family:var(--mono);font-size:10px;background:var(--input-border);padding:1px 5px;border-radius:var(--radius-kbd)}.bob_Select-module_select_m3SD0{width:100%;background:var(--input);border:1px solid var(--input-border);border-radius:var(--radius-btn);color:var(--text);font-size:12.5px;padding:8px 10px;outline:none;font-family:var(--sans)}.bob_Select-module_select_m3SD0:focus{border-color:var(--accent-deep)}.bob_Select-module_opt_O0-e2{background:var(--panel)}.bob_Textarea-module_textarea_ZWcVR{width:100%;background:var(--input);border:1px solid var(--input-border);border-radius:var(--radius-btn);color:var(--text);font-size:12.5px;padding:8px 10px;outline:none;resize:vertical;line-height:1.5;font-family:var(--sans)}.bob_Textarea-module_textarea_ZWcVR:focus{border-color:var(--accent-deep)}.bob_Modal-module_overlay_renxZ{position:fixed;inset:0;background:var(--scrim);z-index:200;display:flex;align-items:flex-start;justify-content:center;padding-top:10vh}.bob_Modal-module_dialog_boHlb{width:min(560px,92vw);background:var(--surface-modal);border:1px solid var(--border-2);border-radius:var(--radius-xl);box-shadow:var(--shadow-modal);padding:20px 22px;max-height:80vh;overflow-y:auto;font-family:var(--sans)}.bob_Modal-module_header_sgSCZ{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.bob_Modal-module_title_Yl2B-{font-size:15px;font-weight:700;letter-spacing:-.005em;color:var(--text);margin:0}.bob_Modal-module_close_jGDny{border:none;background:transparent;color:var(--text-3);font-size:20px;line-height:1;cursor:pointer}.bob_Modal-module_footer_DSOC-{display:flex;gap:8px;justify-content:flex-end;margin-top:18px}.bob_Toast-module_toast_5W0cK{background:var(--surface-toast);border:1px solid var(--border-2);border-radius:var(--radius);padding:8px 16px;font-size:12.5px;color:var(--text);box-shadow:var(--shadow-toast);font-family:var(--sans);display:inline-block;animation:bob_Toast-module_toast-in_EPGb7 .18s ease}.bob_Toast-module_error_3l5tr{border-color:#e5484d80;color:#f4a6a8}.bob_Toast-module_stack_Q4oKp{position:fixed;bottom:18px;left:50%;transform:translate(-50%);z-index:400;display:flex;flex-direction:column;gap:8px;align-items:center}.bob_ListRow-module_row_eHUhy{display:flex;align-items:baseline;gap:10px;padding:9px 12px;border-radius:var(--radius);cursor:pointer;min-width:0;background:transparent;font-family:var(--sans)}.bob_ListRow-module_row_eHUhy:hover{background:var(--panel)}.bob_ListRow-module_done_3oGpZ{opacity:.55}.bob_ListRow-module_id_FKJeq{font-family:var(--mono);font-size:10.5px;font-weight:600;flex-shrink:0}.bob_ListRow-module_title_zuj2q{font-size:12.5px;font-weight:500;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text)}.bob_ListRow-module_titleDone_6oZX5{text-decoration:line-through;text-decoration-color:#3b3e4d}.bob_ListRow-module_meta_eb5hN{display:flex;align-items:baseline;gap:6px;font-size:10.5px;color:var(--text-3);flex-shrink:0;margin-left:auto}.bob_ListRow-module_age_CMrAn{font-family:var(--mono);font-size:10px;color:var(--text-4);flex-shrink:0;width:30px;text-align:right}.bob_NavRow-module_nav_-9pYl{display:flex;align-items:center;gap:9px;padding:6px 10px;border:none;border-radius:var(--radius-btn);background:transparent;color:var(--text-2);font-size:12.5px;font-weight:400;width:100%;text-align:left;font-family:var(--sans);cursor:pointer}.bob_NavRow-module_nav_-9pYl:hover{background:#16181f;color:var(--text)}.bob_NavRow-module_active_HLkxe{background:var(--panel-hover);color:var(--text);font-weight:600}.bob_NavRow-module_active_HLkxe:hover{background:var(--panel-hover)}.bob_NavRow-module_label_PIDmE{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.bob_NavRow-module_count_5L9wc{margin-left:auto;font-family:var(--mono);font-size:10.5px;color:var(--text-3)}.bob_SectionLabel-module_label_g4xqW{display:flex;align-items:center;gap:8px;font-size:10.5px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--text-3);font-family:var(--sans)}.bob_SectionLabel-module_action_ZrPHD{margin-left:auto}.bob_TicketCard-module_card_0lt9n{background:var(--panel);border:1px solid var(--tc-border, var(--border));border-radius:var(--radius);padding:9px 11px;cursor:pointer;transition:border-color .12s ease;font-family:var(--sans)}.bob_TicketCard-module_card_0lt9n:hover{border-color:var(--border-card-hover)}.bob_TicketCard-module_head_YKlgD{display:flex;align-items:baseline;gap:8px;margin-bottom:4px}.bob_TicketCard-module_live_0x9cx{width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:var(--glow-green);align-self:center;animation:bob_TicketCard-module_pulse_3UGxo 1.8s ease-in-out infinite}.bob_TicketCard-module_id_1gaw0{font-family:var(--mono);font-size:10.5px;font-weight:600}.bob_TicketCard-module_kind_odK61,.bob_TicketCard-module_priority_pqc9d{font-size:9.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase}.bob_TicketCard-module_age_NnQUS{margin-left:auto;font-family:var(--mono);font-size:10px;color:var(--text-4)}.bob_TicketCard-module_title_HmqYy{font-size:12.5px;font-weight:500;line-height:1.45;color:var(--text)}.bob_TicketCard-module_foot_STG9o{display:flex;align-items:center;gap:7px;margin-top:7px;flex-wrap:wrap}.bob_TicketCard-module_blocked_xYP1-{font-family:var(--mono);font-size:10px;color:var(--orange);background:var(--tint-orange);padding:1px 6px;border-radius:var(--radius-kbd)}.bob_TicketCard-module_track_SIO1B{flex:1;min-width:40px;height:4px;background:var(--input-border);border-radius:2px;overflow:hidden;display:inline-block}.bob_TicketCard-module_fill_y8ve1{display:block;height:100%;background:var(--green);border-radius:2px}.bob_TicketCard-module_count_azXir{font-family:var(--mono);font-size:10.5px;color:var(--text-2)}
package/dist/index.js ADDED
@@ -0,0 +1,384 @@
1
+ import './bob.css';
2
+ import { jsx as t, jsxs as d, Fragment as D } from "react/jsx-runtime";
3
+ function T(o) {
4
+ return typeof o == "string" ? { value: o, label: o } : o;
5
+ }
6
+ const M = "bob_Avatar-module_avatar_HScSa", L = "bob_Avatar-module_gold_mqr1r", A = "bob_Avatar-module_accent_D0JSW", H = "bob_Avatar-module_green_w5bb7", I = "bob_Avatar-module_neutral_kWG2y", w = {
7
+ avatar: M,
8
+ gold: L,
9
+ accent: A,
10
+ green: H,
11
+ neutral: I
12
+ };
13
+ function so({ initials: o = "?", tone: e = "neutral", size: a = 18, style: n }) {
14
+ return /* @__PURE__ */ t(
15
+ "span",
16
+ {
17
+ className: [w.avatar, w[e]].join(" "),
18
+ style: {
19
+ width: a,
20
+ height: a,
21
+ borderRadius: a >= 24 ? 8 : "50%",
22
+ fontSize: a >= 24 ? "11px" : "9px",
23
+ ...n
24
+ },
25
+ children: o
26
+ }
27
+ );
28
+ }
29
+ const K = "bob_Button-module_btn_eJJnG", W = "bob_Button-module_sm_vnJyT", Z = "bob_Button-module_md_Qd3AM", q = "bob_Button-module_primary_9pVSo", G = "bob_Button-module_secondary_uMApf", Y = "bob_Button-module_ghost_bqwSN", J = "bob_Button-module_accent_YU7-Q", O = "bob_Button-module_danger_CRtnm", P = "bob_Button-module_dangerGhost_ieumZ", g = {
30
+ btn: K,
31
+ sm: W,
32
+ md: Z,
33
+ primary: q,
34
+ secondary: G,
35
+ ghost: Y,
36
+ accent: J,
37
+ danger: O,
38
+ dangerGhost: P
39
+ }, Q = {
40
+ primary: "primary",
41
+ secondary: "secondary",
42
+ ghost: "ghost",
43
+ accent: "accent",
44
+ danger: "danger",
45
+ "danger-ghost": "dangerGhost"
46
+ };
47
+ function co({ variant: o = "primary", size: e = "md", className: a, children: n, ...s }) {
48
+ const l = [g.btn, g[e], g[Q[o]], a].filter(Boolean).join(" ");
49
+ return /* @__PURE__ */ t("button", { className: l, ...s, children: n });
50
+ }
51
+ const F = "bob_Chip-module_chip_sQbrW", V = "bob_Chip-module_mono_gBHK8", X = "bob_Chip-module_neutral_kBk9A", E = "bob_Chip-module_accent_WYeMW", U = "bob_Chip-module_blue_dxH3O", z = "bob_Chip-module_green_D-DEq", ee = "bob_Chip-module_orange_jz8fS", oe = "bob_Chip-module_danger_9npX2", te = "bob_Chip-module_yellow_N8KNh", ae = "bob_Chip-module_claim_pTSI5", f = {
52
+ chip: F,
53
+ mono: V,
54
+ neutral: X,
55
+ accent: E,
56
+ blue: U,
57
+ green: z,
58
+ orange: ee,
59
+ danger: oe,
60
+ yellow: te,
61
+ claim: ae
62
+ };
63
+ function ro({ tone: o = "neutral", mono: e = !1, className: a, children: n, ...s }) {
64
+ const l = [f.chip, f[o], e && f.mono, a].filter(Boolean).join(" ");
65
+ return /* @__PURE__ */ t("span", { className: l, ...s, children: n });
66
+ }
67
+ const ne = "bob_Kbd-module_kbd_sVhYa", le = {
68
+ kbd: ne
69
+ };
70
+ function io({ children: o, style: e }) {
71
+ return /* @__PURE__ */ t("kbd", { className: le.kbd, style: e, children: o });
72
+ }
73
+ const se = "bob_ProgressBar-module_track_PsMoi", ce = "bob_ProgressBar-module_fill_WWMZj", S = {
74
+ track: se,
75
+ fill: ce
76
+ };
77
+ function _o({
78
+ value: o = 0,
79
+ max: e = 1,
80
+ width: a = 120,
81
+ height: n = 4,
82
+ color: s = "var(--accent)",
83
+ style: l
84
+ }) {
85
+ const c = e > 0 ? Math.min(100, o / e * 100) : 0;
86
+ return /* @__PURE__ */ t("span", { className: S.track, style: { width: a, height: n, ...l }, children: /* @__PURE__ */ t("span", { className: S.fill, style: { width: c + "%", background: s } }) });
87
+ }
88
+ const re = "bob_SegToggle-module_seg_EZ-v3", de = "bob_SegToggle-module_opt_MravK", ie = "bob_SegToggle-module_active_DbJRD", v = {
89
+ seg: re,
90
+ opt: de,
91
+ active: ie
92
+ };
93
+ function bo({ options: o = [], value: e, onChange: a, style: n }) {
94
+ return /* @__PURE__ */ t("div", { className: v.seg, style: n, children: o.map((s) => {
95
+ const l = T(s), c = l.value === e;
96
+ return /* @__PURE__ */ t(
97
+ "button",
98
+ {
99
+ onClick: () => a && a(l.value),
100
+ className: [v.opt, c && v.active].filter(Boolean).join(" "),
101
+ children: l.label
102
+ },
103
+ l.value
104
+ );
105
+ }) });
106
+ }
107
+ const _e = "bob_StatusDot-module_dot_-Hg1w", u = {
108
+ dot: _e
109
+ };
110
+ function uo({
111
+ state: o = "solid",
112
+ color: e = "var(--green)",
113
+ size: a = 10,
114
+ square: n = !1,
115
+ style: s
116
+ }) {
117
+ const l = {
118
+ width: a,
119
+ height: a,
120
+ borderRadius: n ? 2 : "50%",
121
+ ...s
122
+ };
123
+ return o === "dashed" ? /* @__PURE__ */ t("span", { className: u.dot, style: { ...l, border: "1.5px dashed var(--text-3)" } }) : o === "outline" ? /* @__PURE__ */ t("span", { className: u.dot, style: { ...l, border: `1.5px solid ${e}` } }) : o === "staged" ? /* @__PURE__ */ t(
124
+ "span",
125
+ {
126
+ className: u.dot,
127
+ style: {
128
+ ...l,
129
+ border: `1.5px solid ${e}`,
130
+ background: e.startsWith("var") ? `color-mix(in srgb, ${e} 25%, transparent)` : e + "40"
131
+ }
132
+ }
133
+ ) : o === "live" ? /* @__PURE__ */ t(
134
+ "span",
135
+ {
136
+ className: u.dot,
137
+ style: { ...l, background: e, boxShadow: `0 0 6px ${e}`, animation: "pulse 1.8s ease-in-out infinite" }
138
+ }
139
+ ) : /* @__PURE__ */ t("span", { className: u.dot, style: { ...l, background: e } });
140
+ }
141
+ const be = "bob_FormRow-module_row_QmpYX", ue = "bob_FormRow-module_label_topys", $ = {
142
+ row: be,
143
+ label: ue
144
+ };
145
+ function mo({ label: o, children: e, style: a }) {
146
+ return /* @__PURE__ */ d("div", { className: $.row, style: a, children: [
147
+ o && /* @__PURE__ */ t("label", { className: $.label, children: o }),
148
+ e
149
+ ] });
150
+ }
151
+ const me = "bob_Input-module_input_42-uJ", he = {
152
+ input: me
153
+ };
154
+ function ho({ className: o, ...e }) {
155
+ return /* @__PURE__ */ t("input", { type: "text", className: [he.input, o].filter(Boolean).join(" "), ...e });
156
+ }
157
+ const pe = "bob_SearchInput-module_search_ZKO8L", ge = "bob_SearchInput-module_expand_Mg33w", fe = "bob_SearchInput-module_kbdBtn_f92g-", ve = "bob_SearchInput-module_kbdHint_tJdqR", m = {
158
+ search: pe,
159
+ expand: ge,
160
+ kbdBtn: fe,
161
+ kbdHint: ve
162
+ };
163
+ function po({ kbd: o, expandOnFocus: e = !1, className: a, ...n }) {
164
+ if (o) {
165
+ const s = n;
166
+ return /* @__PURE__ */ d("button", { className: [m.kbdBtn, a].filter(Boolean).join(" "), ...s, children: [
167
+ /* @__PURE__ */ t("span", { children: n.placeholder || "Search" }),
168
+ /* @__PURE__ */ t("kbd", { className: m.kbdHint, children: o })
169
+ ] });
170
+ }
171
+ return /* @__PURE__ */ t(
172
+ "input",
173
+ {
174
+ type: "search",
175
+ className: [m.search, e && m.expand, a].filter(Boolean).join(" "),
176
+ ...n
177
+ }
178
+ );
179
+ }
180
+ const Ne = "bob_Select-module_select_m3SD0", ye = "bob_Select-module_opt_O0-e2", B = {
181
+ select: Ne,
182
+ opt: ye
183
+ };
184
+ function go({ options: o = [], className: e, ...a }) {
185
+ return /* @__PURE__ */ t("select", { className: [B.select, e].filter(Boolean).join(" "), ...a, children: o.map((n) => {
186
+ const s = T(n);
187
+ return /* @__PURE__ */ t("option", { value: s.value, className: B.opt, children: s.label }, s.value);
188
+ }) });
189
+ }
190
+ const ke = "bob_Textarea-module_textarea_ZWcVR", we = {
191
+ textarea: ke
192
+ };
193
+ function fo({ className: o, ...e }) {
194
+ return /* @__PURE__ */ t("textarea", { className: [we.textarea, o].filter(Boolean).join(" "), ...e });
195
+ }
196
+ const Se = "bob_Modal-module_overlay_renxZ", $e = "bob_Modal-module_dialog_boHlb", Be = "bob_Modal-module_header_sgSCZ", xe = "bob_Modal-module_title_Yl2B-", Ce = "bob_Modal-module_close_jGDny", Te = "bob_Modal-module_footer_DSOC-", _ = {
197
+ overlay: Se,
198
+ dialog: $e,
199
+ header: Be,
200
+ title: xe,
201
+ close: Ce,
202
+ footer: Te
203
+ };
204
+ function vo({ title: o, onClose: e, children: a, footer: n, open: s = !0, style: l }) {
205
+ return s ? /* @__PURE__ */ t(
206
+ "div",
207
+ {
208
+ className: _.overlay,
209
+ onClick: (c) => {
210
+ c.target === c.currentTarget && e && e();
211
+ },
212
+ children: /* @__PURE__ */ d("div", { className: _.dialog, style: l, children: [
213
+ /* @__PURE__ */ d("div", { className: _.header, children: [
214
+ /* @__PURE__ */ t("h2", { className: _.title, children: o }),
215
+ /* @__PURE__ */ t("button", { className: _.close, onClick: e, children: "×" })
216
+ ] }),
217
+ a,
218
+ n && /* @__PURE__ */ t("div", { className: _.footer, children: n })
219
+ ] })
220
+ }
221
+ ) : null;
222
+ }
223
+ const Re = "bob_Toast-module_toast_5W0cK", je = "bob_Toast-module_error_3l5tr", De = "bob_Toast-module_stack_Q4oKp", N = {
224
+ toast: Re,
225
+ error: je,
226
+ stack: De
227
+ };
228
+ function No({ children: o, error: e = !1, style: a }) {
229
+ return /* @__PURE__ */ t("div", { className: [N.toast, e && N.error].filter(Boolean).join(" "), style: a, children: o });
230
+ }
231
+ function yo({ children: o }) {
232
+ return /* @__PURE__ */ t("div", { className: N.stack, children: o });
233
+ }
234
+ const Me = "bob_ListRow-module_row_eHUhy", Le = "bob_ListRow-module_done_3oGpZ", Ae = "bob_ListRow-module_id_FKJeq", He = "bob_ListRow-module_title_zuj2q", Ie = "bob_ListRow-module_titleDone_6oZX5", Ke = "bob_ListRow-module_meta_eb5hN", We = "bob_ListRow-module_age_CMrAn", i = {
235
+ row: Me,
236
+ done: Le,
237
+ id: Ae,
238
+ title: He,
239
+ titleDone: Ie,
240
+ meta: Ke,
241
+ age: We
242
+ };
243
+ function ko({
244
+ id: o,
245
+ idColor: e = "var(--accent)",
246
+ title: a,
247
+ meta: n,
248
+ age: s,
249
+ done: l = !1,
250
+ onClick: c,
251
+ style: p
252
+ }) {
253
+ return /* @__PURE__ */ d("div", { onClick: c, className: [i.row, l && i.done].filter(Boolean).join(" "), style: p, children: [
254
+ /* @__PURE__ */ t("span", { className: i.id, style: { color: e }, children: o }),
255
+ /* @__PURE__ */ t("span", { className: [i.title, l && i.titleDone].filter(Boolean).join(" "), children: a }),
256
+ n && /* @__PURE__ */ t("span", { className: i.meta, children: n }),
257
+ s && /* @__PURE__ */ t("span", { className: i.age, children: s })
258
+ ] });
259
+ }
260
+ const Ze = "bob_NavRow-module_nav_-9pYl", qe = "bob_NavRow-module_active_HLkxe", Ge = "bob_NavRow-module_label_PIDmE", Ye = "bob_NavRow-module_count_5L9wc", h = {
261
+ nav: Ze,
262
+ active: qe,
263
+ label: Ge,
264
+ count: Ye
265
+ };
266
+ function wo({ label: o, count: e, active: a = !1, dot: n, onClick: s, style: l }) {
267
+ return /* @__PURE__ */ d("button", { onClick: s, className: [h.nav, a && h.active].filter(Boolean).join(" "), style: l, children: [
268
+ n,
269
+ /* @__PURE__ */ t("span", { className: h.label, children: o }),
270
+ e != null && /* @__PURE__ */ t("span", { className: h.count, children: e })
271
+ ] });
272
+ }
273
+ const Je = "bob_SectionLabel-module_label_g4xqW", Oe = "bob_SectionLabel-module_action_ZrPHD", x = {
274
+ label: Je,
275
+ action: Oe
276
+ };
277
+ function So({ children: o, action: e, dot: a, style: n }) {
278
+ return /* @__PURE__ */ d("div", { className: x.label, style: n, children: [
279
+ a,
280
+ /* @__PURE__ */ t("span", { children: o }),
281
+ e && /* @__PURE__ */ t("span", { className: x.action, children: e })
282
+ ] });
283
+ }
284
+ const Pe = "bob_TicketCard-module_card_0lt9n", Qe = "bob_TicketCard-module_head_YKlgD", Fe = "bob_TicketCard-module_live_0x9cx", Ve = "bob_TicketCard-module_id_1gaw0", Xe = "bob_TicketCard-module_kind_odK61", Ee = "bob_TicketCard-module_priority_pqc9d", Ue = "bob_TicketCard-module_age_NnQUS", ze = "bob_TicketCard-module_title_HmqYy", eo = "bob_TicketCard-module_foot_STG9o", oo = "bob_TicketCard-module_blocked_xYP1-", to = "bob_TicketCard-module_track_SIO1B", ao = "bob_TicketCard-module_fill_y8ve1", no = "bob_TicketCard-module_count_azXir", r = {
285
+ card: Pe,
286
+ head: Qe,
287
+ live: Fe,
288
+ id: Ve,
289
+ kind: Xe,
290
+ priority: Ee,
291
+ age: Ue,
292
+ title: ze,
293
+ foot: eo,
294
+ blocked: oo,
295
+ track: to,
296
+ fill: ao,
297
+ count: no
298
+ }, C = {
299
+ research: "#52a9ff",
300
+ probe: "#c084fc",
301
+ grill: "#f0883e",
302
+ task: "#46c288",
303
+ gap: "#e2c541"
304
+ };
305
+ function $o({
306
+ id: o,
307
+ kind: e,
308
+ title: a,
309
+ age: n,
310
+ priority: s,
311
+ blocked: l,
312
+ progress: c,
313
+ live: p,
314
+ emphasis: y,
315
+ onClick: R,
316
+ style: j
317
+ }) {
318
+ let b = "var(--border)", k = "none";
319
+ return y === "sdd" ? (b = "#2a2d52", k = "var(--glow-accent)") : y === "plan" ? b = "#1f4436" : e === "grill" ? b = "rgba(240,136,62,.3)" : e === "probe" && (b = "rgba(192,132,252,.28)"), /* @__PURE__ */ d(
320
+ "div",
321
+ {
322
+ onClick: R,
323
+ className: r.card,
324
+ style: { "--tc-border": b, boxShadow: k, ...j },
325
+ children: [
326
+ /* @__PURE__ */ d("div", { className: r.head, children: [
327
+ p && /* @__PURE__ */ t("span", { className: r.live }),
328
+ /* @__PURE__ */ t("span", { className: r.id, style: { color: e && C[e] || "var(--text-2)" }, children: o }),
329
+ e && /* @__PURE__ */ t("span", { className: r.kind, style: { color: C[e] }, children: e }),
330
+ s && /* @__PURE__ */ t(
331
+ "span",
332
+ {
333
+ className: r.priority,
334
+ style: { color: s === "critical" ? "var(--danger)" : "var(--orange)" },
335
+ children: s
336
+ }
337
+ ),
338
+ n && /* @__PURE__ */ t("span", { className: r.age, children: n })
339
+ ] }),
340
+ /* @__PURE__ */ t("div", { className: r.title, children: a }),
341
+ (l || c) && /* @__PURE__ */ d("div", { className: r.foot, children: [
342
+ l && /* @__PURE__ */ t("span", { className: r.blocked, children: l }),
343
+ c && /* @__PURE__ */ d(D, { children: [
344
+ /* @__PURE__ */ t("span", { className: r.track, children: /* @__PURE__ */ t(
345
+ "span",
346
+ {
347
+ className: r.fill,
348
+ style: { width: Math.min(100, c.done / c.total * 100) + "%" }
349
+ }
350
+ ) }),
351
+ /* @__PURE__ */ d("span", { className: r.count, children: [
352
+ c.done,
353
+ "/",
354
+ c.total
355
+ ] })
356
+ ] })
357
+ ] })
358
+ ]
359
+ }
360
+ );
361
+ }
362
+ export {
363
+ so as Avatar,
364
+ co as Button,
365
+ ro as Chip,
366
+ mo as FormRow,
367
+ ho as Input,
368
+ io as Kbd,
369
+ ko as ListRow,
370
+ vo as Modal,
371
+ wo as NavRow,
372
+ _o as ProgressBar,
373
+ po as SearchInput,
374
+ So as SectionLabel,
375
+ bo as SegToggle,
376
+ go as Select,
377
+ uo as StatusDot,
378
+ fo as Textarea,
379
+ $o as TicketCard,
380
+ No as Toast,
381
+ yo as ToastStack,
382
+ T as normalizeOption
383
+ };
384
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../src/types.ts","../src/components/core/Avatar.tsx","../src/components/core/Button.tsx","../src/components/core/Chip.tsx","../src/components/core/Kbd.tsx","../src/components/core/ProgressBar.tsx","../src/components/core/SegToggle.tsx","../src/components/core/StatusDot.tsx","../src/components/forms/FormRow.tsx","../src/components/forms/Input.tsx","../src/components/forms/SearchInput.tsx","../src/components/forms/Select.tsx","../src/components/forms/Textarea.tsx","../src/components/feedback/Modal.tsx","../src/components/feedback/Toast.tsx","../src/components/board/ListRow.tsx","../src/components/board/NavRow.tsx","../src/components/board/SectionLabel.tsx","../src/components/board/TicketCard.tsx"],"sourcesContent":["/** Option shape shared by Select and SegToggle. A bare string is shorthand for `{value: s, label: s}`. */\nexport interface DSOption {\n value: string;\n label: string;\n}\n\nexport type DSOptionInput = DSOption | string;\n\nexport function normalizeOption(o: DSOptionInput): DSOption {\n return typeof o === 'string' ? { value: o, label: o } : o;\n}\n","import React from 'react';\nimport styles from './Avatar.module.css';\n\nexport type AvatarTone = 'gold' | 'accent' | 'green' | 'neutral';\n\nexport interface AvatarProps {\n initials?: string;\n tone?: AvatarTone;\n size?: number;\n style?: React.CSSProperties;\n}\n\nexport function Avatar({ initials = '?', tone = 'neutral', size = 18, style }: AvatarProps) {\n return (\n <span\n className={[styles.avatar, styles[tone]].join(' ')}\n style={{\n width: size,\n height: size,\n borderRadius: size >= 24 ? 8 : '50%',\n fontSize: size >= 24 ? '11px' : '9px',\n ...style,\n }}\n >\n {initials}\n </span>\n );\n}\n","import React from 'react';\nimport styles from './Button.module.css';\n\nexport type ButtonVariant = 'primary' | 'secondary' | 'ghost' | 'accent' | 'danger' | 'danger-ghost';\nexport type ButtonSize = 'sm' | 'md';\n\nconst VARIANT_CLASS: Record<ButtonVariant, string> = {\n primary: 'primary',\n secondary: 'secondary',\n ghost: 'ghost',\n accent: 'accent',\n danger: 'danger',\n 'danger-ghost': 'dangerGhost',\n};\n\nexport interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n variant?: ButtonVariant;\n size?: ButtonSize;\n}\n\nexport function Button({ variant = 'primary', size = 'md', className, children, ...rest }: ButtonProps) {\n const cls = [styles.btn, styles[size], styles[VARIANT_CLASS[variant]], className].filter(Boolean).join(' ');\n return (\n <button className={cls} {...rest}>\n {children}\n </button>\n );\n}\n","import React from 'react';\nimport styles from './Chip.module.css';\n\nexport type ChipTone = 'neutral' | 'accent' | 'blue' | 'green' | 'orange' | 'danger' | 'yellow' | 'claim';\n\nexport interface ChipProps extends React.HTMLAttributes<HTMLSpanElement> {\n tone?: ChipTone;\n mono?: boolean;\n}\n\nexport function Chip({ tone = 'neutral', mono = false, className, children, ...rest }: ChipProps) {\n const cls = [styles.chip, styles[tone], mono && styles.mono, className].filter(Boolean).join(' ');\n return (\n <span className={cls} {...rest}>\n {children}\n </span>\n );\n}\n","import React from 'react';\nimport styles from './Kbd.module.css';\n\nexport interface KbdProps {\n children?: React.ReactNode;\n style?: React.CSSProperties;\n}\n\nexport function Kbd({ children, style }: KbdProps) {\n return (\n <kbd className={styles.kbd} style={style}>\n {children}\n </kbd>\n );\n}\n","import React from 'react';\nimport styles from './ProgressBar.module.css';\n\nexport interface ProgressBarProps {\n value?: number;\n max?: number;\n width?: number | string;\n height?: number;\n color?: string;\n style?: React.CSSProperties;\n}\n\nexport function ProgressBar({\n value = 0,\n max = 1,\n width = 120,\n height = 4,\n color = 'var(--accent)',\n style,\n}: ProgressBarProps) {\n const pct = max > 0 ? Math.min(100, (value / max) * 100) : 0;\n return (\n <span className={styles.track} style={{ width, height, ...style }}>\n <span className={styles.fill} style={{ width: pct + '%', background: color }} />\n </span>\n );\n}\n","import React from 'react';\nimport { normalizeOption, type DSOptionInput } from '../../types';\nimport styles from './SegToggle.module.css';\n\nexport interface SegToggleProps {\n options?: DSOptionInput[];\n value?: string;\n onChange?: (value: string) => void;\n style?: React.CSSProperties;\n}\n\nexport function SegToggle({ options = [], value, onChange, style }: SegToggleProps) {\n return (\n <div className={styles.seg} style={style}>\n {options.map((o) => {\n const opt = normalizeOption(o);\n const active = opt.value === value;\n return (\n <button\n key={opt.value}\n onClick={() => onChange && onChange(opt.value)}\n className={[styles.opt, active && styles.active].filter(Boolean).join(' ')}\n >\n {opt.label}\n </button>\n );\n })}\n </div>\n );\n}\n","import React from 'react';\nimport styles from './StatusDot.module.css';\n\n/** dashed = inbox/unset · outline = in progress · staged = staged · solid = done · live = pulsing agent */\nexport type StatusDotState = 'dashed' | 'outline' | 'staged' | 'live' | 'solid';\n\nexport interface StatusDotProps {\n state?: StatusDotState;\n color?: string;\n size?: number;\n square?: boolean;\n style?: React.CSSProperties;\n}\n\nexport function StatusDot({\n state = 'solid',\n color = 'var(--green)',\n size = 10,\n square = false,\n style,\n}: StatusDotProps) {\n // color/size/square are data-driven, so the visual props stay inline; only layout is a class.\n const s: React.CSSProperties = {\n width: size,\n height: size,\n borderRadius: square ? 2 : '50%',\n ...style,\n };\n if (state === 'dashed') return <span className={styles.dot} style={{ ...s, border: '1.5px dashed var(--text-3)' }} />;\n if (state === 'outline') return <span className={styles.dot} style={{ ...s, border: `1.5px solid ${color}` }} />;\n if (state === 'staged') {\n return (\n <span\n className={styles.dot}\n style={{\n ...s,\n border: `1.5px solid ${color}`,\n background: color.startsWith('var') ? `color-mix(in srgb, ${color} 25%, transparent)` : color + '40',\n }}\n />\n );\n }\n if (state === 'live') {\n return (\n <span\n className={styles.dot}\n style={{ ...s, background: color, boxShadow: `0 0 6px ${color}`, animation: 'pulse 1.8s ease-in-out infinite' }}\n />\n );\n }\n return <span className={styles.dot} style={{ ...s, background: color }} />;\n}\n","import React from 'react';\nimport styles from './FormRow.module.css';\n\nexport interface FormRowProps {\n label?: React.ReactNode;\n children?: React.ReactNode;\n style?: React.CSSProperties;\n}\n\nexport function FormRow({ label, children, style }: FormRowProps) {\n return (\n <div className={styles.row} style={style}>\n {label && <label className={styles.label}>{label}</label>}\n {children}\n </div>\n );\n}\n","import React from 'react';\nimport styles from './Input.module.css';\n\nexport interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {}\n\nexport function Input({ className, ...rest }: InputProps) {\n return <input type=\"text\" className={[styles.input, className].filter(Boolean).join(' ')} {...rest} />;\n}\n","import React from 'react';\nimport styles from './SearchInput.module.css';\n\nexport interface SearchInputProps extends React.InputHTMLAttributes<HTMLInputElement> {\n /** When set, renders a click-to-open button showing this key hint (e.g. \"⌘K\") instead of a live input. */\n kbd?: React.ReactNode;\n /** Widens 150 → 210px on focus (the topbar-search pattern). */\n expandOnFocus?: boolean;\n}\n\nexport function SearchInput({ kbd, expandOnFocus = false, className, ...rest }: SearchInputProps) {\n if (kbd) {\n // The kbd variant is a button, not an input — rest carries the shared placeholder/onClick props.\n const buttonRest = rest as unknown as React.ButtonHTMLAttributes<HTMLButtonElement>;\n return (\n <button className={[styles.kbdBtn, className].filter(Boolean).join(' ')} {...buttonRest}>\n <span>{rest.placeholder || 'Search'}</span>\n <kbd className={styles.kbdHint}>{kbd}</kbd>\n </button>\n );\n }\n\n return (\n <input\n type=\"search\"\n className={[styles.search, expandOnFocus && styles.expand, className].filter(Boolean).join(' ')}\n {...rest}\n />\n );\n}\n","import React from 'react';\nimport { normalizeOption, type DSOptionInput } from '../../types';\nimport styles from './Select.module.css';\n\nexport interface SelectProps extends React.SelectHTMLAttributes<HTMLSelectElement> {\n options?: DSOptionInput[];\n}\n\nexport function Select({ options = [], className, ...rest }: SelectProps) {\n return (\n <select className={[styles.select, className].filter(Boolean).join(' ')} {...rest}>\n {options.map((o) => {\n const opt = normalizeOption(o);\n return (\n <option key={opt.value} value={opt.value} className={styles.opt}>\n {opt.label}\n </option>\n );\n })}\n </select>\n );\n}\n","import React from 'react';\nimport styles from './Textarea.module.css';\n\nexport interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {}\n\nexport function Textarea({ className, ...rest }: TextareaProps) {\n return <textarea className={[styles.textarea, className].filter(Boolean).join(' ')} {...rest} />;\n}\n","import React from 'react';\nimport styles from './Modal.module.css';\n\nexport interface ModalProps {\n title?: React.ReactNode;\n onClose?: () => void;\n children?: React.ReactNode;\n footer?: React.ReactNode;\n open?: boolean;\n style?: React.CSSProperties;\n}\n\nexport function Modal({ title, onClose, children, footer, open = true, style }: ModalProps) {\n if (!open) return null;\n return (\n <div\n className={styles.overlay}\n onClick={(e) => {\n if (e.target === e.currentTarget && onClose) onClose();\n }}\n >\n <div className={styles.dialog} style={style}>\n <div className={styles.header}>\n <h2 className={styles.title}>{title}</h2>\n <button className={styles.close} onClick={onClose}>\n &times;\n </button>\n </div>\n {children}\n {footer && <div className={styles.footer}>{footer}</div>}\n </div>\n </div>\n );\n}\n","import React from 'react';\nimport styles from './Toast.module.css';\n\nexport interface ToastProps {\n children?: React.ReactNode;\n error?: boolean;\n style?: React.CSSProperties;\n}\n\n/** Copy rule: 2–5 words, past tense, no subject — \"Title updated\", \"SB-341 archived\". */\nexport function Toast({ children, error = false, style }: ToastProps) {\n return (\n <div className={[styles.toast, error && styles.error].filter(Boolean).join(' ')} style={style}>\n {children}\n </div>\n );\n}\n\nexport interface ToastStackProps {\n children?: React.ReactNode;\n}\n\nexport function ToastStack({ children }: ToastStackProps) {\n return <div className={styles.stack}>{children}</div>;\n}\n","import React from 'react';\nimport styles from './ListRow.module.css';\n\nexport interface ListRowProps {\n id?: React.ReactNode;\n idColor?: string;\n title?: React.ReactNode;\n meta?: React.ReactNode;\n age?: React.ReactNode;\n done?: boolean;\n onClick?: () => void;\n style?: React.CSSProperties;\n}\n\nexport function ListRow({\n id,\n idColor = 'var(--accent)',\n title,\n meta,\n age,\n done = false,\n onClick,\n style,\n}: ListRowProps) {\n return (\n <div onClick={onClick} className={[styles.row, done && styles.done].filter(Boolean).join(' ')} style={style}>\n <span className={styles.id} style={{ color: idColor }}>\n {id}\n </span>\n <span className={[styles.title, done && styles.titleDone].filter(Boolean).join(' ')}>{title}</span>\n {meta && <span className={styles.meta}>{meta}</span>}\n {age && <span className={styles.age}>{age}</span>}\n </div>\n );\n}\n","import React from 'react';\nimport styles from './NavRow.module.css';\n\nexport interface NavRowProps {\n label?: React.ReactNode;\n count?: number | null;\n active?: boolean;\n dot?: React.ReactNode;\n onClick?: () => void;\n style?: React.CSSProperties;\n}\n\nexport function NavRow({ label, count, active = false, dot, onClick, style }: NavRowProps) {\n return (\n <button onClick={onClick} className={[styles.nav, active && styles.active].filter(Boolean).join(' ')} style={style}>\n {dot}\n <span className={styles.label}>{label}</span>\n {count != null && <span className={styles.count}>{count}</span>}\n </button>\n );\n}\n","import React from 'react';\nimport styles from './SectionLabel.module.css';\n\n/** The uppercase 10.5px label pattern — an intentional addition, see readme.md. */\nexport interface SectionLabelProps {\n children?: React.ReactNode;\n action?: React.ReactNode;\n dot?: React.ReactNode;\n style?: React.CSSProperties;\n}\n\nexport function SectionLabel({ children, action, dot, style }: SectionLabelProps) {\n return (\n <div className={styles.label} style={style}>\n {dot}\n <span>{children}</span>\n {action && <span className={styles.action}>{action}</span>}\n </div>\n );\n}\n","import React from 'react';\nimport styles from './TicketCard.module.css';\n\nexport type TicketKind = 'research' | 'probe' | 'grill' | 'task' | 'gap';\n\nconst KIND_COLORS: Record<TicketKind, string> = {\n research: '#52a9ff',\n probe: '#c084fc',\n grill: '#f0883e',\n task: '#46c288',\n gap: '#e2c541',\n};\n\nexport interface TicketCardProps {\n id?: React.ReactNode;\n kind?: TicketKind;\n title?: React.ReactNode;\n age?: React.ReactNode;\n priority?: string;\n blocked?: React.ReactNode;\n progress?: { done: number; total: number };\n live?: boolean;\n emphasis?: 'sdd' | 'plan';\n onClick?: () => void;\n style?: React.CSSProperties;\n}\n\nexport function TicketCard({\n id,\n kind,\n title,\n age,\n priority,\n blocked,\n progress,\n live,\n emphasis,\n onClick,\n style,\n}: TicketCardProps) {\n // Border/shadow are data-driven (emphasis/kind); the hover border comes from CSS (:hover)\n // overriding the --tc-border custom property, so no hover state hook is needed.\n let border = 'var(--border)';\n let shadow = 'none';\n if (emphasis === 'sdd') {\n border = '#2a2d52';\n shadow = 'var(--glow-accent)';\n } else if (emphasis === 'plan') border = '#1f4436';\n else if (kind === 'grill') border = 'rgba(240,136,62,.3)';\n else if (kind === 'probe') border = 'rgba(192,132,252,.28)';\n\n return (\n <div\n onClick={onClick}\n className={styles.card}\n style={{ ['--tc-border' as string]: border, boxShadow: shadow, ...style } as React.CSSProperties}\n >\n <div className={styles.head}>\n {live && <span className={styles.live} />}\n <span className={styles.id} style={{ color: (kind && KIND_COLORS[kind]) || 'var(--text-2)' }}>\n {id}\n </span>\n {kind && (\n <span className={styles.kind} style={{ color: KIND_COLORS[kind] }}>\n {kind}\n </span>\n )}\n {priority && (\n <span\n className={styles.priority}\n style={{ color: priority === 'critical' ? 'var(--danger)' : 'var(--orange)' }}\n >\n {priority}\n </span>\n )}\n {age && <span className={styles.age}>{age}</span>}\n </div>\n <div className={styles.title}>{title}</div>\n {(blocked || progress) && (\n <div className={styles.foot}>\n {blocked && <span className={styles.blocked}>{blocked}</span>}\n {progress && (\n <>\n <span className={styles.track}>\n <span\n className={styles.fill}\n style={{ width: Math.min(100, (progress.done / progress.total) * 100) + '%' }}\n />\n </span>\n <span className={styles.count}>\n {progress.done}/{progress.total}\n </span>\n </>\n )}\n </div>\n )}\n </div>\n );\n}\n"],"names":["normalizeOption","Avatar","initials","tone","size","style","jsx","styles","VARIANT_CLASS","Button","variant","className","children","rest","cls","Chip","mono","Kbd","ProgressBar","value","max","width","height","color","pct","SegToggle","options","onChange","o","opt","active","StatusDot","state","square","s","FormRow","label","jsxs","Input","SearchInput","kbd","expandOnFocus","buttonRest","Select","Textarea","Modal","title","onClose","footer","open","e","Toast","error","ToastStack","ListRow","id","idColor","meta","age","done","onClick","NavRow","count","dot","SectionLabel","action","KIND_COLORS","TicketCard","kind","priority","blocked","progress","live","emphasis","border","shadow","Fragment"],"mappings":";AAQO,SAASA,EAAgB,GAA4B;AAC1D,SAAO,OAAO,KAAM,WAAW,EAAE,OAAO,GAAG,OAAO,MAAM;AAC1D;;;;;;;;ACEO,SAASC,GAAO,EAAE,UAAAC,IAAW,KAAK,MAAAC,IAAO,WAAW,MAAAC,IAAO,IAAI,OAAAC,KAAsB;AAC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,EAAS;AAAA,YAAA,EAAA,CAC5B;AAAA,UAAA,EAAA,CACF;AAAA,QAAA,EAAA,CAEJ;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAIR;"}
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ export interface ListRowProps {
3
+ id?: React.ReactNode;
4
+ idColor?: string;
5
+ title?: React.ReactNode;
6
+ meta?: React.ReactNode;
7
+ age?: React.ReactNode;
8
+ done?: boolean;
9
+ onClick?: () => void;
10
+ style?: React.CSSProperties;
11
+ }
12
+ export declare function ListRow({ id, idColor, title, meta, age, done, onClick, style, }: ListRowProps): React.JSX.Element;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ export interface NavRowProps {
3
+ label?: React.ReactNode;
4
+ count?: number | null;
5
+ active?: boolean;
6
+ dot?: React.ReactNode;
7
+ onClick?: () => void;
8
+ style?: React.CSSProperties;
9
+ }
10
+ export declare function NavRow({ label, count, active, dot, onClick, style }: NavRowProps): React.JSX.Element;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ /** The uppercase 10.5px label pattern — an intentional addition, see readme.md. */
3
+ export interface SectionLabelProps {
4
+ children?: React.ReactNode;
5
+ action?: React.ReactNode;
6
+ dot?: React.ReactNode;
7
+ style?: React.CSSProperties;
8
+ }
9
+ export declare function SectionLabel({ children, action, dot, style }: SectionLabelProps): React.JSX.Element;
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ export type TicketKind = 'research' | 'probe' | 'grill' | 'task' | 'gap';
3
+ export interface TicketCardProps {
4
+ id?: React.ReactNode;
5
+ kind?: TicketKind;
6
+ title?: React.ReactNode;
7
+ age?: React.ReactNode;
8
+ priority?: string;
9
+ blocked?: React.ReactNode;
10
+ progress?: {
11
+ done: number;
12
+ total: number;
13
+ };
14
+ live?: boolean;
15
+ emphasis?: 'sdd' | 'plan';
16
+ onClick?: () => void;
17
+ style?: React.CSSProperties;
18
+ }
19
+ export declare function TicketCard({ id, kind, title, age, priority, blocked, progress, live, emphasis, onClick, style, }: TicketCardProps): React.JSX.Element;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ export type AvatarTone = 'gold' | 'accent' | 'green' | 'neutral';
3
+ export interface AvatarProps {
4
+ initials?: string;
5
+ tone?: AvatarTone;
6
+ size?: number;
7
+ style?: React.CSSProperties;
8
+ }
9
+ export declare function Avatar({ initials, tone, size, style }: AvatarProps): React.JSX.Element;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ export type ButtonVariant = 'primary' | 'secondary' | 'ghost' | 'accent' | 'danger' | 'danger-ghost';
3
+ export type ButtonSize = 'sm' | 'md';
4
+ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
5
+ variant?: ButtonVariant;
6
+ size?: ButtonSize;
7
+ }
8
+ export declare function Button({ variant, size, className, children, ...rest }: ButtonProps): React.JSX.Element;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ export type ChipTone = 'neutral' | 'accent' | 'blue' | 'green' | 'orange' | 'danger' | 'yellow' | 'claim';
3
+ export interface ChipProps extends React.HTMLAttributes<HTMLSpanElement> {
4
+ tone?: ChipTone;
5
+ mono?: boolean;
6
+ }
7
+ export declare function Chip({ tone, mono, className, children, ...rest }: ChipProps): React.JSX.Element;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export interface KbdProps {
3
+ children?: React.ReactNode;
4
+ style?: React.CSSProperties;
5
+ }
6
+ export declare function Kbd({ children, style }: KbdProps): React.JSX.Element;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ export interface ProgressBarProps {
3
+ value?: number;
4
+ max?: number;
5
+ width?: number | string;
6
+ height?: number;
7
+ color?: string;
8
+ style?: React.CSSProperties;
9
+ }
10
+ export declare function ProgressBar({ value, max, width, height, color, style, }: ProgressBarProps): React.JSX.Element;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { type DSOptionInput } from '../../types';
3
+ export interface SegToggleProps {
4
+ options?: DSOptionInput[];
5
+ value?: string;
6
+ onChange?: (value: string) => void;
7
+ style?: React.CSSProperties;
8
+ }
9
+ export declare function SegToggle({ options, value, onChange, style }: SegToggleProps): React.JSX.Element;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ /** dashed = inbox/unset · outline = in progress · staged = staged · solid = done · live = pulsing agent */
3
+ export type StatusDotState = 'dashed' | 'outline' | 'staged' | 'live' | 'solid';
4
+ export interface StatusDotProps {
5
+ state?: StatusDotState;
6
+ color?: string;
7
+ size?: number;
8
+ square?: boolean;
9
+ style?: React.CSSProperties;
10
+ }
11
+ export declare function StatusDot({ state, color, size, square, style, }: StatusDotProps): React.JSX.Element;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ export interface ModalProps {
3
+ title?: React.ReactNode;
4
+ onClose?: () => void;
5
+ children?: React.ReactNode;
6
+ footer?: React.ReactNode;
7
+ open?: boolean;
8
+ style?: React.CSSProperties;
9
+ }
10
+ export declare function Modal({ title, onClose, children, footer, open, style }: ModalProps): React.JSX.Element | null;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ export interface ToastProps {
3
+ children?: React.ReactNode;
4
+ error?: boolean;
5
+ style?: React.CSSProperties;
6
+ }
7
+ /** Copy rule: 2–5 words, past tense, no subject — "Title updated", "SB-341 archived". */
8
+ export declare function Toast({ children, error, style }: ToastProps): React.JSX.Element;
9
+ export interface ToastStackProps {
10
+ children?: React.ReactNode;
11
+ }
12
+ export declare function ToastStack({ children }: ToastStackProps): React.JSX.Element;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ export interface FormRowProps {
3
+ label?: React.ReactNode;
4
+ children?: React.ReactNode;
5
+ style?: React.CSSProperties;
6
+ }
7
+ export declare function FormRow({ label, children, style }: FormRowProps): React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
3
+ }
4
+ export declare function Input({ className, ...rest }: InputProps): React.JSX.Element;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ export interface SearchInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
3
+ /** When set, renders a click-to-open button showing this key hint (e.g. "⌘K") instead of a live input. */
4
+ kbd?: React.ReactNode;
5
+ /** Widens 150 → 210px on focus (the topbar-search pattern). */
6
+ expandOnFocus?: boolean;
7
+ }
8
+ export declare function SearchInput({ kbd, expandOnFocus, className, ...rest }: SearchInputProps): React.JSX.Element;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { type DSOptionInput } from '../../types';
3
+ export interface SelectProps extends React.SelectHTMLAttributes<HTMLSelectElement> {
4
+ options?: DSOptionInput[];
5
+ }
6
+ export declare function Select({ options, className, ...rest }: SelectProps): React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
3
+ }
4
+ export declare function Textarea({ className, ...rest }: TextareaProps): React.JSX.Element;
@@ -0,0 +1,20 @@
1
+ import './styles.css';
2
+ export * from './types';
3
+ export { Avatar, type AvatarProps, type AvatarTone } from './components/core/Avatar';
4
+ export { Button, type ButtonProps, type ButtonSize, type ButtonVariant } from './components/core/Button';
5
+ export { Chip, type ChipProps, type ChipTone } from './components/core/Chip';
6
+ export { Kbd, type KbdProps } from './components/core/Kbd';
7
+ export { ProgressBar, type ProgressBarProps } from './components/core/ProgressBar';
8
+ export { SegToggle, type SegToggleProps } from './components/core/SegToggle';
9
+ export { StatusDot, type StatusDotProps, type StatusDotState } from './components/core/StatusDot';
10
+ export { FormRow, type FormRowProps } from './components/forms/FormRow';
11
+ export { Input, type InputProps } from './components/forms/Input';
12
+ export { SearchInput, type SearchInputProps } from './components/forms/SearchInput';
13
+ export { Select, type SelectProps } from './components/forms/Select';
14
+ export { Textarea, type TextareaProps } from './components/forms/Textarea';
15
+ export { Modal, type ModalProps } from './components/feedback/Modal';
16
+ export { Toast, ToastStack, type ToastProps, type ToastStackProps } from './components/feedback/Toast';
17
+ export { ListRow, type ListRowProps } from './components/board/ListRow';
18
+ export { NavRow, type NavRowProps } from './components/board/NavRow';
19
+ export { SectionLabel, type SectionLabelProps } from './components/board/SectionLabel';
20
+ export { TicketCard, type TicketCardProps, type TicketKind } from './components/board/TicketCard';
@@ -0,0 +1,7 @@
1
+ /** Option shape shared by Select and SegToggle. A bare string is shorthand for `{value: s, label: s}`. */
2
+ export interface DSOption {
3
+ value: string;
4
+ label: string;
5
+ }
6
+ export type DSOptionInput = DSOption | string;
7
+ export declare function normalizeOption(o: DSOptionInput): DSOption;
package/package.json CHANGED
@@ -1,6 +1,60 @@
1
1
  {
2
2
  "name": "@terjeballestad/bob",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0",
4
+ "description": "Bob: the design system shared by Time Turtle and pm-board",
5
+ "type": "module",
6
+ "license": "UNLICENSED",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/TerjeBallestad/bob.git"
10
+ },
11
+ "files": [
12
+ "dist",
13
+ "README.md",
14
+ "TOKENS.md"
15
+ ],
16
+ "main": "./dist/index.js",
17
+ "module": "./dist/index.js",
18
+ "types": "./dist/types/index.d.ts",
19
+ "exports": {
20
+ ".": {
21
+ "types": "./dist/types/index.d.ts",
22
+ "import": "./dist/index.js"
23
+ },
24
+ "./styles.css": "./dist/bob.css"
25
+ },
26
+ "sideEffects": [
27
+ "*.css",
28
+ "./dist/index.js"
29
+ ],
30
+ "scripts": {
31
+ "build": "vite build && node scripts/inject-css.mjs && tsc -p tsconfig.build.json",
32
+ "typecheck": "tsc -p tsconfig.json",
33
+ "test": "npm run build && vitest run",
34
+ "prepublishOnly": "npm test",
35
+ "storybook": "storybook dev -p 6006",
36
+ "build-storybook": "storybook build -o storybook-static --quiet",
37
+ "test:visual": "playwright test",
38
+ "test:visual:docker": "docker run --rm --ipc=host -v \"$PWD\":/work -w /work mcr.microsoft.com/playwright:v1.65.1-noble sh -c 'npx playwright test \"$@\"' --"
39
+ },
40
+ "peerDependencies": {
41
+ "react": ">=18.3",
42
+ "react-dom": ">=18.3"
43
+ },
44
+ "devDependencies": {
45
+ "@playwright/test": "^1.65.1",
46
+ "@storybook/addon-docs": "^10.6.8",
47
+ "@storybook/react-vite": "^10.6.8",
48
+ "@types/node": "^22.20.5",
49
+ "@types/react": "^18.3.31",
50
+ "@types/react-dom": "^18.3.7",
51
+ "@vitejs/plugin-react": "^4.3.4",
52
+ "http-server": "^14.1.1",
53
+ "react": "^18.3.1",
54
+ "react-dom": "^18.3.1",
55
+ "storybook": "^10.6.8",
56
+ "typescript": "^5.9.3",
57
+ "vite": "^6.0.0",
58
+ "vitest": "^3.2.4"
59
+ }
60
+ }