@overdoser/react-toolkit 0.11.0 → 0.13.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/manifest.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "description": "Machine-readable manifest of components, props, allowed values, and hooks. Generated for tooling and AI assistants.",
6
6
  "themeCssImport": "@overdoser/react-toolkit/theme.css",
7
7
  "themeCssLayeredImport": "@overdoser/react-toolkit/theme.layered.css",
8
- "stylingNotes": "className/classes.* overrides are plain CSS classes — they only beat built-in styles if inserted after them. Import theme.layered.css (cascade layer 'crk') instead of theme.css to make any unlayered consumer rule, including classes.*, win deterministically regardless of order. theme.css and theme.layered.css are identical except the layer wrapper — import exactly one (never both); --crk-* token theming works the same in either.",
8
+ "stylingNotes": "className/classes.* overrides are plain CSS classes \u2014 they only beat built-in styles if inserted after them. Import theme.layered.css (cascade layer 'crk') instead of theme.css to make any unlayered consumer rule, including classes.*, win deterministically regardless of order. theme.css and theme.layered.css are identical except the layer wrapper \u2014 import exactly one (never both); --crk-* token theming works the same in either.",
9
9
  "peerDependencies": {
10
10
  "required": [
11
11
  "react",
@@ -63,7 +63,7 @@
63
63
  "iconOnly": {
64
64
  "type": "boolean",
65
65
  "default": false,
66
- "notes": "Squares the button and renders content larger/bolder. For single-glyph buttons (‹, ›, ×, +). Always pair with aria-label."
66
+ "notes": "Squares the button and renders content larger/bolder. For single-glyph buttons (\u2039, \u203a, \u00d7, +). Always pair with aria-label."
67
67
  },
68
68
  "classes": {
69
69
  "type": "Partial<ButtonClasses>",
@@ -82,7 +82,7 @@
82
82
  "element": "button",
83
83
  "extendsNativeProps": "button (except children)",
84
84
  "forwardsRef": true,
85
- "notes": "Stateful action button with morphing icon/label layers: idle → (armed) → (pending) → success → idle. Async onAction shows a pending spinner; confirmLabel adds a two-step confirm. Phase exposed as data-phase on the root; transitions/colors themeable via --crk-action-* custom properties; respects prefers-reduced-motion.",
85
+ "notes": "Stateful action button with morphing icon/label layers: idle \u2192 (armed) \u2192 (pending) \u2192 success \u2192 idle. Async onAction shows a pending spinner; confirmLabel adds a two-step confirm. Phase exposed as data-phase on the root; transitions/colors themeable via --crk-action-* custom properties; respects prefers-reduced-motion.",
86
86
  "props": {
87
87
  "icon": {
88
88
  "type": "ReactNode",
@@ -120,7 +120,7 @@
120
120
  },
121
121
  "onAction": {
122
122
  "type": "(context: { setProgress: (percent: number | null) => void }) => void | Promise<unknown>",
123
- "notes": "Return a promise for a pending phase; rejection returns to idle and calls onError. Call context.setProgress(0–100) during the promise for a determinate pending state (% label + accent fill bar); null falls back to the spinner."
123
+ "notes": "Return a promise for a pending phase; rejection returns to idle and calls onError. Call context.setProgress(0\u2013100) during the promise for a determinate pending state (% label + accent fill bar); null falls back to the spinner."
124
124
  },
125
125
  "progressLabel": {
126
126
  "type": "(percent: number) => ReactNode",
@@ -248,7 +248,7 @@
248
248
  "element": "button",
249
249
  "extendsNativeProps": "button (except children)",
250
250
  "forwardsRef": true,
251
- "notes": "Preconfigured ActionButton for copy-to-clipboard: clipboard icon morphs into a check, label swaps Copy → Copied, success tint, auto-reset. All ActionButton props apply. Falls back to execCommand('copy') without the Clipboard API.",
251
+ "notes": "Preconfigured ActionButton for copy-to-clipboard: clipboard icon morphs into a check, label swaps Copy \u2192 Copied, success tint, auto-reset. All ActionButton props apply. Falls back to execCommand('copy') without the Clipboard API.",
252
252
  "props": {
253
253
  "value": {
254
254
  "type": "string | (() => string | Promise<string>)",
@@ -290,12 +290,12 @@
290
290
  "external": {
291
291
  "type": "boolean",
292
292
  "default": false,
293
- "notes": "Adds target=_blank, rel=noopener noreferrer, an inline ↗ icon, and an sr-only 'opens in a new tab' suffix."
293
+ "notes": "Adds target=_blank, rel=noopener noreferrer, an inline \u2197 icon, and an sr-only 'opens in a new tab' suffix."
294
294
  },
295
295
  "hideExternalIcon": {
296
296
  "type": "boolean",
297
297
  "default": false,
298
- "notes": "Hide the inline ↗ icon shown by default when the link opens in a new tab (external or manual target=_blank). The sr-only suffix is kept."
298
+ "notes": "Hide the inline \u2197 icon shown by default when the link opens in a new tab (external or manual target=_blank). The sr-only suffix is kept."
299
299
  }
300
300
  }
301
301
  },
@@ -406,7 +406,7 @@
406
406
  },
407
407
  "onSort": {
408
408
  "type": "(config: SortConfig[]) => void",
409
- "notes": "When set, Table is fully controlled — does not sort or paginate data internally."
409
+ "notes": "When set, Table is fully controlled \u2014 does not sort or paginate data internally."
410
410
  },
411
411
  "multiSort": {
412
412
  "type": "boolean",
@@ -562,7 +562,7 @@
562
562
  }
563
563
  },
564
564
  "behavior": {
565
- "sortCycle": "none → asc → desc → none",
565
+ "sortCycle": "none \u2192 asc \u2192 desc \u2192 none",
566
566
  "controlledMode": "Activated when onSort is provided. Table renders data as-is and does not slice for pagination."
567
567
  }
568
568
  },
@@ -703,7 +703,7 @@
703
703
  "outside click",
704
704
  "Escape"
705
705
  ],
706
- "childrenTyped": "never — pass via `content` prop"
706
+ "childrenTyped": "never \u2014 pass via `content` prop"
707
707
  }
708
708
  },
709
709
  "Draggable": {
@@ -732,7 +732,7 @@
732
732
  "bounds": {
733
733
  "type": "'viewport' | 'parent' | 'none'",
734
734
  "default": "viewport",
735
- "notes": "Clamp movement to the viewport / parent element, or leave unconstrained."
735
+ "notes": "Clamp movement to the viewport / parent element, or leave unconstrained. Clamping applies during drags and re-applies whenever the element or its bounds resize (content growth, window resize), so a dragged element never ends up stuck outside its bounds."
736
736
  },
737
737
  "keyboardStep": {
738
738
  "type": "number",
@@ -765,7 +765,7 @@
765
765
  "Toast": {
766
766
  "import": "import { ToastProvider, toast, useToast } from '@overdoser/react-toolkit'",
767
767
  "element": "portal viewport at document.body",
768
- "notes": "Imperative notification system backed by a global store. Mount ToastProvider once (it is the renderer; do NOT render toast elements yourself). Trigger via the standalone toast(options) (no hook/context needed; also toast.dismiss(id) / toast.dismissAll()) OR via useToast() which returns the same { toast, dismiss, dismissAll }. useToast does not require the provider and never throws. toast() with no provider mounted warns (dev) and renders nothing. danger/warning use role=alert (assertive); others role=status (polite). Auto-dismiss pauses on hover. SSR/Next.js safe: mount ToastProvider normally — it renders no viewport on the server or the first client render, then attaches its document.body portal after hydration, so there is no hydration mismatch and no mounted-flag workaround is needed.",
768
+ "notes": "Imperative notification system backed by a global store. Mount ToastProvider once (it is the renderer; do NOT render toast elements yourself). Trigger via the standalone toast(options) (no hook/context needed; also toast.dismiss(id) / toast.dismissAll()) OR via useToast() which returns the same { toast, dismiss, dismissAll }. useToast does not require the provider and never throws. toast() with no provider mounted warns (dev) and renders nothing. danger/warning use role=alert (assertive); others role=status (polite). Auto-dismiss pauses on hover. SSR/Next.js safe: mount ToastProvider normally \u2014 it renders no viewport on the server or the first client render, then attaches its document.body portal after hydration, so there is no hydration mismatch and no mounted-flag workaround is needed.",
769
769
  "standaloneTrigger": {
770
770
  "name": "toast",
771
771
  "signature": "toast(options: ToastOptions): string",
@@ -1014,11 +1014,11 @@
1014
1014
  },
1015
1015
  "width": {
1016
1016
  "type": "number | string",
1017
- "notes": "number → px; defaults to 100%."
1017
+ "notes": "number \u2192 px; defaults to 100%."
1018
1018
  },
1019
1019
  "height": {
1020
1020
  "type": "number | string",
1021
- "notes": "number → px; defaults per variant."
1021
+ "notes": "number \u2192 px; defaults per variant."
1022
1022
  },
1023
1023
  "animation": {
1024
1024
  "type": "'pulse' | 'wave' | 'none'",
@@ -1042,17 +1042,54 @@
1042
1042
  "import": "import { Drawer } from '@overdoser/react-toolkit'",
1043
1043
  "element": "div (portal at document.body)",
1044
1044
  "forwardsRef": true,
1045
- "compoundComponents": ["Drawer.Header", "Drawer.Body", "Drawer.Footer"],
1045
+ "compoundComponents": [
1046
+ "Drawer.Header",
1047
+ "Drawer.Body",
1048
+ "Drawer.Footer"
1049
+ ],
1046
1050
  "notes": "Off-canvas panel sliding from a screen edge (left/right = full-height strip, top/bottom = full-width strip). Animates in/out and stays mounted through the close transition.",
1047
1051
  "props": {
1048
- "open": { "type": "boolean", "required": true },
1049
- "onClose": { "type": "() => void", "required": true },
1050
- "side": { "type": "'left' | 'right' | 'top' | 'bottom'", "default": "right" },
1051
- "size": { "type": "'sm' | 'md' | 'lg' | 'full'", "default": "md" },
1052
- "variant": { "type": "'temporary' | 'persistent'", "default": "temporary", "notes": "temporary = scrim + modal (scrim/Escape close); persistent = no scrim, page stays interactive." },
1053
- "closeOnBackdrop": { "type": "boolean", "default": true, "notes": "Temporary only." },
1054
- "closeOnEscape": { "type": "boolean", "default": true },
1055
- "classes": { "type": "Partial<DrawerClasses>", "shape": ["backdrop", "drawer", "header", "closeButton", "body", "footer"] }
1052
+ "open": {
1053
+ "type": "boolean",
1054
+ "required": true
1055
+ },
1056
+ "onClose": {
1057
+ "type": "() => void",
1058
+ "required": true
1059
+ },
1060
+ "side": {
1061
+ "type": "'left' | 'right' | 'top' | 'bottom'",
1062
+ "default": "right"
1063
+ },
1064
+ "size": {
1065
+ "type": "'sm' | 'md' | 'lg' | 'full'",
1066
+ "default": "md"
1067
+ },
1068
+ "variant": {
1069
+ "type": "'temporary' | 'persistent'",
1070
+ "default": "temporary",
1071
+ "notes": "temporary = scrim + modal (scrim/Escape close); persistent = no scrim, page stays interactive."
1072
+ },
1073
+ "closeOnBackdrop": {
1074
+ "type": "boolean",
1075
+ "default": true,
1076
+ "notes": "Temporary only."
1077
+ },
1078
+ "closeOnEscape": {
1079
+ "type": "boolean",
1080
+ "default": true
1081
+ },
1082
+ "classes": {
1083
+ "type": "Partial<DrawerClasses>",
1084
+ "shape": [
1085
+ "backdrop",
1086
+ "drawer",
1087
+ "header",
1088
+ "closeButton",
1089
+ "body",
1090
+ "footer"
1091
+ ]
1092
+ }
1056
1093
  }
1057
1094
  },
1058
1095
  "Tooltip": {
@@ -1060,14 +1097,46 @@
1060
1097
  "element": "inline span wrapper + portaled bubble (role=tooltip)",
1061
1098
  "notes": "Lightweight hover/focus label with delay. Use Popover for interactive/click content.",
1062
1099
  "props": {
1063
- "content": { "type": "ReactNode", "required": true, "notes": "Nullish/empty → never shows." },
1064
- "children": { "type": "ReactNode", "required": true, "notes": "The trigger." },
1065
- "placement": { "type": "'top' | 'bottom' | 'left' | 'right'", "default": "top", "notes": "Flips on overflow." },
1066
- "delay": { "type": "number", "default": 300, "notes": "Open delay ms." },
1067
- "closeDelay": { "type": "number", "default": 0 },
1068
- "disabled": { "type": "boolean", "default": false },
1069
- "hideArrow": { "type": "boolean", "default": false },
1070
- "classes": { "type": "Partial<TooltipClasses>", "shape": ["wrapper", "tooltip", "arrow"] }
1100
+ "content": {
1101
+ "type": "ReactNode",
1102
+ "required": true,
1103
+ "notes": "Nullish/empty \u2192 never shows."
1104
+ },
1105
+ "children": {
1106
+ "type": "ReactNode",
1107
+ "required": true,
1108
+ "notes": "The trigger."
1109
+ },
1110
+ "placement": {
1111
+ "type": "'top' | 'bottom' | 'left' | 'right'",
1112
+ "default": "top",
1113
+ "notes": "Flips on overflow."
1114
+ },
1115
+ "delay": {
1116
+ "type": "number",
1117
+ "default": 300,
1118
+ "notes": "Open delay ms."
1119
+ },
1120
+ "closeDelay": {
1121
+ "type": "number",
1122
+ "default": 0
1123
+ },
1124
+ "disabled": {
1125
+ "type": "boolean",
1126
+ "default": false
1127
+ },
1128
+ "hideArrow": {
1129
+ "type": "boolean",
1130
+ "default": false
1131
+ },
1132
+ "classes": {
1133
+ "type": "Partial<TooltipClasses>",
1134
+ "shape": [
1135
+ "wrapper",
1136
+ "tooltip",
1137
+ "arrow"
1138
+ ]
1139
+ }
1071
1140
  }
1072
1141
  },
1073
1142
  "Avatar": {
@@ -1077,14 +1146,39 @@
1077
1146
  "extendsNativeProps": "span",
1078
1147
  "notes": "Falls back to initials (from name) or a user icon if the image is missing or errors.",
1079
1148
  "props": {
1080
- "src": { "type": "string" },
1081
- "alt": { "type": "string" },
1082
- "name": { "type": "string", "notes": "Used to derive initials." },
1083
- "fallback": { "type": "ReactNode" },
1084
- "size": { "type": "'xs' | 'sm' | 'md' | 'lg' | 'xl'", "default": "md" },
1085
- "shape": { "type": "'circle' | 'square'", "default": "circle" },
1086
- "status": { "type": "'online' | 'offline' | 'away' | 'busy'" },
1087
- "classes": { "type": "Partial<AvatarClasses>", "shape": ["root", "image", "fallback", "status"] }
1149
+ "src": {
1150
+ "type": "string"
1151
+ },
1152
+ "alt": {
1153
+ "type": "string"
1154
+ },
1155
+ "name": {
1156
+ "type": "string",
1157
+ "notes": "Used to derive initials."
1158
+ },
1159
+ "fallback": {
1160
+ "type": "ReactNode"
1161
+ },
1162
+ "size": {
1163
+ "type": "'xs' | 'sm' | 'md' | 'lg' | 'xl'",
1164
+ "default": "md"
1165
+ },
1166
+ "shape": {
1167
+ "type": "'circle' | 'square'",
1168
+ "default": "circle"
1169
+ },
1170
+ "status": {
1171
+ "type": "'online' | 'offline' | 'away' | 'busy'"
1172
+ },
1173
+ "classes": {
1174
+ "type": "Partial<AvatarClasses>",
1175
+ "shape": [
1176
+ "root",
1177
+ "image",
1178
+ "fallback",
1179
+ "status"
1180
+ ]
1181
+ }
1088
1182
  }
1089
1183
  },
1090
1184
  "Divider": {
@@ -1093,28 +1187,71 @@
1093
1187
  "forwardsRef": true,
1094
1188
  "extendsNativeProps": "div (without children)",
1095
1189
  "props": {
1096
- "orientation": { "type": "'horizontal' | 'vertical'", "default": "horizontal" },
1097
- "variant": { "type": "'solid' | 'dashed' | 'dotted'", "default": "solid" },
1098
- "label": { "type": "ReactNode", "notes": "Horizontal only." },
1099
- "labelPosition": { "type": "'start' | 'center' | 'end'", "default": "center" },
1100
- "classes": { "type": "Partial<DividerClasses>", "shape": ["root", "line", "label"] }
1190
+ "orientation": {
1191
+ "type": "'horizontal' | 'vertical'",
1192
+ "default": "horizontal"
1193
+ },
1194
+ "variant": {
1195
+ "type": "'solid' | 'dashed' | 'dotted'",
1196
+ "default": "solid"
1197
+ },
1198
+ "label": {
1199
+ "type": "ReactNode",
1200
+ "notes": "Horizontal only."
1201
+ },
1202
+ "labelPosition": {
1203
+ "type": "'start' | 'center' | 'end'",
1204
+ "default": "center"
1205
+ },
1206
+ "classes": {
1207
+ "type": "Partial<DividerClasses>",
1208
+ "shape": [
1209
+ "root",
1210
+ "line",
1211
+ "label"
1212
+ ]
1213
+ }
1101
1214
  }
1102
1215
  },
1103
1216
  "Breadcrumbs": {
1104
1217
  "import": "import { Breadcrumbs } from '@overdoser/react-toolkit'",
1105
1218
  "element": "nav > ol",
1106
1219
  "forwardsRef": true,
1107
- "compoundComponents": ["Breadcrumbs.Item"],
1220
+ "compoundComponents": [
1221
+ "Breadcrumbs.Item"
1222
+ ],
1108
1223
  "notes": "Separators auto-inserted; the last item defaults to current (aria-current=page, no link).",
1109
1224
  "props": {
1110
- "separator": { "type": "ReactNode", "default": "/" },
1111
- "label": { "type": "string", "default": "Breadcrumb" },
1112
- "classes": { "type": "Partial<BreadcrumbsClasses>", "shape": ["root", "list", "item", "link", "current", "separator"] }
1225
+ "separator": {
1226
+ "type": "ReactNode",
1227
+ "default": "/"
1228
+ },
1229
+ "label": {
1230
+ "type": "string",
1231
+ "default": "Breadcrumb"
1232
+ },
1233
+ "classes": {
1234
+ "type": "Partial<BreadcrumbsClasses>",
1235
+ "shape": [
1236
+ "root",
1237
+ "list",
1238
+ "item",
1239
+ "link",
1240
+ "current",
1241
+ "separator"
1242
+ ]
1243
+ }
1113
1244
  },
1114
1245
  "subComponentProps": {
1115
1246
  "Breadcrumbs.Item": {
1116
- "href": { "type": "string", "notes": "Omit for a plain (non-link) crumb." },
1117
- "current": { "type": "boolean", "notes": "Renders as text with aria-current=page." }
1247
+ "href": {
1248
+ "type": "string",
1249
+ "notes": "Omit for a plain (non-link) crumb."
1250
+ },
1251
+ "current": {
1252
+ "type": "boolean",
1253
+ "notes": "Renders as text with aria-current=page."
1254
+ }
1118
1255
  }
1119
1256
  }
1120
1257
  },
@@ -1122,21 +1259,67 @@
1122
1259
  "import": "import { Pagination } from '@overdoser/react-toolkit'",
1123
1260
  "element": "nav > ul",
1124
1261
  "forwardsRef": true,
1125
- "notes": "Windowed page list with ellipses, e.g. 1 … 6 7 8 9 10 … 99. Also exports paginationRange(page, count, boundaryCount?, siblingCount?). Table has its own pagination — use this for non-table lists.",
1262
+ "notes": "Windowed page list with ellipses, e.g. 1 \u2026 6 7 8 9 10 \u2026 99. Also exports paginationRange(page, count, boundaryCount?, siblingCount?). Table has its own pagination \u2014 use this for non-table lists.",
1126
1263
  "props": {
1127
- "count": { "type": "number", "notes": "Total pages. Or use total + pageSize." },
1128
- "total": { "type": "number", "notes": "With pageSize, derives count." },
1129
- "pageSize": { "type": "number", "default": 10 },
1130
- "page": { "type": "number", "notes": "Controlled, 1-based." },
1131
- "defaultPage": { "type": "number", "default": 1 },
1132
- "onChange": { "type": "(page: number) => void" },
1133
- "boundaryCount": { "type": "number", "default": 1 },
1134
- "siblingCount": { "type": "number", "default": 2, "notes": "Defaults give at most 9 chips." },
1135
- "showPrevNext": { "type": "boolean", "default": true },
1136
- "showFirstLast": { "type": "boolean", "default": false },
1137
- "size": { "type": "'sm' | 'md' | 'lg'", "default": "md" },
1138
- "disabled": { "type": "boolean", "default": false },
1139
- "classes": { "type": "Partial<PaginationClasses>", "shape": ["root", "list", "item", "active", "ellipsis", "control"] }
1264
+ "count": {
1265
+ "type": "number",
1266
+ "notes": "Total pages. Or use total + pageSize."
1267
+ },
1268
+ "total": {
1269
+ "type": "number",
1270
+ "notes": "With pageSize, derives count."
1271
+ },
1272
+ "pageSize": {
1273
+ "type": "number",
1274
+ "default": 10
1275
+ },
1276
+ "page": {
1277
+ "type": "number",
1278
+ "notes": "Controlled, 1-based."
1279
+ },
1280
+ "defaultPage": {
1281
+ "type": "number",
1282
+ "default": 1
1283
+ },
1284
+ "onChange": {
1285
+ "type": "(page: number) => void"
1286
+ },
1287
+ "boundaryCount": {
1288
+ "type": "number",
1289
+ "default": 1
1290
+ },
1291
+ "siblingCount": {
1292
+ "type": "number",
1293
+ "default": 2,
1294
+ "notes": "Defaults give at most 9 chips."
1295
+ },
1296
+ "showPrevNext": {
1297
+ "type": "boolean",
1298
+ "default": true
1299
+ },
1300
+ "showFirstLast": {
1301
+ "type": "boolean",
1302
+ "default": false
1303
+ },
1304
+ "size": {
1305
+ "type": "'sm' | 'md' | 'lg'",
1306
+ "default": "md"
1307
+ },
1308
+ "disabled": {
1309
+ "type": "boolean",
1310
+ "default": false
1311
+ },
1312
+ "classes": {
1313
+ "type": "Partial<PaginationClasses>",
1314
+ "shape": [
1315
+ "root",
1316
+ "list",
1317
+ "item",
1318
+ "active",
1319
+ "ellipsis",
1320
+ "control"
1321
+ ]
1322
+ }
1140
1323
  }
1141
1324
  },
1142
1325
  "Slider": {
@@ -1145,16 +1328,48 @@
1145
1328
  "forwardsRef": true,
1146
1329
  "notes": "A tuple value makes it a range (two thumbs). Pointer drag + keyboard (arrows, Home/End, PageUp/Down).",
1147
1330
  "props": {
1148
- "value": { "type": "number | [number, number]", "notes": "Tuple → range slider." },
1149
- "defaultValue": { "type": "number | [number, number]" },
1150
- "onChange": { "type": "(value: number | [number, number]) => void" },
1151
- "onChangeEnd": { "type": "(value: number | [number, number]) => void" },
1152
- "min": { "type": "number", "default": 0 },
1153
- "max": { "type": "number", "default": 100 },
1154
- "step": { "type": "number", "default": 1 },
1155
- "disabled": { "type": "boolean", "default": false },
1156
- "formatValue": { "type": "(value: number) => string", "notes": "For aria-valuetext." },
1157
- "classes": { "type": "Partial<SliderClasses>", "shape": ["root", "track", "range", "thumb"] }
1331
+ "value": {
1332
+ "type": "number | [number, number]",
1333
+ "notes": "Tuple \u2192 range slider."
1334
+ },
1335
+ "defaultValue": {
1336
+ "type": "number | [number, number]"
1337
+ },
1338
+ "onChange": {
1339
+ "type": "(value: number | [number, number]) => void"
1340
+ },
1341
+ "onChangeEnd": {
1342
+ "type": "(value: number | [number, number]) => void"
1343
+ },
1344
+ "min": {
1345
+ "type": "number",
1346
+ "default": 0
1347
+ },
1348
+ "max": {
1349
+ "type": "number",
1350
+ "default": 100
1351
+ },
1352
+ "step": {
1353
+ "type": "number",
1354
+ "default": 1
1355
+ },
1356
+ "disabled": {
1357
+ "type": "boolean",
1358
+ "default": false
1359
+ },
1360
+ "formatValue": {
1361
+ "type": "(value: number) => string",
1362
+ "notes": "For aria-valuetext."
1363
+ },
1364
+ "classes": {
1365
+ "type": "Partial<SliderClasses>",
1366
+ "shape": [
1367
+ "root",
1368
+ "track",
1369
+ "range",
1370
+ "thumb"
1371
+ ]
1372
+ }
1158
1373
  }
1159
1374
  },
1160
1375
  "NumberInput": {
@@ -1163,17 +1378,52 @@
1163
1378
  "forwardsRef": true,
1164
1379
  "notes": "Emits onChange(value: number | null), so it binds directly inside FormField. Arrow keys step; clamps on blur.",
1165
1380
  "props": {
1166
- "value": { "type": "number | null", "notes": "Controlled." },
1167
- "defaultValue": { "type": "number | null" },
1168
- "onChange": { "type": "(value: number | null) => void" },
1169
- "min": { "type": "number" },
1170
- "max": { "type": "number" },
1171
- "step": { "type": "number", "default": 1 },
1172
- "precision": { "type": "number", "notes": "Decimal places to round to." },
1173
- "inputSize": { "type": "'sm' | 'md' | 'lg'", "default": "md" },
1174
- "error": { "type": "boolean", "default": false },
1175
- "hideControls": { "type": "boolean", "default": false },
1176
- "classes": { "type": "Partial<NumberInputClasses>", "shape": ["root", "input", "controls", "increment", "decrement"] }
1381
+ "value": {
1382
+ "type": "number | null",
1383
+ "notes": "Controlled."
1384
+ },
1385
+ "defaultValue": {
1386
+ "type": "number | null"
1387
+ },
1388
+ "onChange": {
1389
+ "type": "(value: number | null) => void"
1390
+ },
1391
+ "min": {
1392
+ "type": "number"
1393
+ },
1394
+ "max": {
1395
+ "type": "number"
1396
+ },
1397
+ "step": {
1398
+ "type": "number",
1399
+ "default": 1
1400
+ },
1401
+ "precision": {
1402
+ "type": "number",
1403
+ "notes": "Decimal places to round to."
1404
+ },
1405
+ "inputSize": {
1406
+ "type": "'sm' | 'md' | 'lg'",
1407
+ "default": "md"
1408
+ },
1409
+ "error": {
1410
+ "type": "boolean",
1411
+ "default": false
1412
+ },
1413
+ "hideControls": {
1414
+ "type": "boolean",
1415
+ "default": false
1416
+ },
1417
+ "classes": {
1418
+ "type": "Partial<NumberInputClasses>",
1419
+ "shape": [
1420
+ "root",
1421
+ "input",
1422
+ "controls",
1423
+ "increment",
1424
+ "decrement"
1425
+ ]
1426
+ }
1177
1427
  }
1178
1428
  },
1179
1429
  "DatePicker": {
@@ -1182,21 +1432,73 @@
1182
1432
  "forwardsRef": true,
1183
1433
  "notes": "Single date with a pop-up calendar. Binds in FormField (value: Date | null). Keyboard: arrows move days, PageUp/Down change month, Home/End week ends, Enter selects, Esc closes.",
1184
1434
  "props": {
1185
- "value": { "type": "Date | null", "notes": "Controlled." },
1186
- "defaultValue": { "type": "Date | null" },
1187
- "onChange": { "type": "(date: Date | null) => void" },
1188
- "min": { "type": "Date" },
1189
- "max": { "type": "Date" },
1190
- "disabledDate": { "type": "(date: Date) => boolean" },
1191
- "weekStartsOn": { "type": "number", "default": 0, "notes": "0 = Sunday." },
1192
- "locale": { "type": "string", "notes": "BCP-47 for month/weekday names." },
1193
- "format": { "type": "(date: Date) => string" },
1194
- "placeholder": { "type": "string", "default": "Select date" },
1195
- "inputSize": { "type": "'sm' | 'md' | 'lg'", "default": "md" },
1196
- "error": { "type": "boolean", "default": false },
1197
- "disabled": { "type": "boolean", "default": false },
1198
- "portal": { "type": "boolean", "default": true },
1199
- "classes": { "type": "Partial<DatePickerClasses>", "shape": ["root", "input", "icon", "popover", "header", "nav", "grid", "day", "daySelected", "dayToday", "dayOutside"] }
1435
+ "value": {
1436
+ "type": "Date | null",
1437
+ "notes": "Controlled."
1438
+ },
1439
+ "defaultValue": {
1440
+ "type": "Date | null"
1441
+ },
1442
+ "onChange": {
1443
+ "type": "(date: Date | null) => void"
1444
+ },
1445
+ "min": {
1446
+ "type": "Date"
1447
+ },
1448
+ "max": {
1449
+ "type": "Date"
1450
+ },
1451
+ "disabledDate": {
1452
+ "type": "(date: Date) => boolean"
1453
+ },
1454
+ "weekStartsOn": {
1455
+ "type": "number",
1456
+ "default": 0,
1457
+ "notes": "0 = Sunday."
1458
+ },
1459
+ "locale": {
1460
+ "type": "string",
1461
+ "notes": "BCP-47 for month/weekday names."
1462
+ },
1463
+ "format": {
1464
+ "type": "(date: Date) => string"
1465
+ },
1466
+ "placeholder": {
1467
+ "type": "string",
1468
+ "default": "Select date"
1469
+ },
1470
+ "inputSize": {
1471
+ "type": "'sm' | 'md' | 'lg'",
1472
+ "default": "md"
1473
+ },
1474
+ "error": {
1475
+ "type": "boolean",
1476
+ "default": false
1477
+ },
1478
+ "disabled": {
1479
+ "type": "boolean",
1480
+ "default": false
1481
+ },
1482
+ "portal": {
1483
+ "type": "boolean",
1484
+ "default": true
1485
+ },
1486
+ "classes": {
1487
+ "type": "Partial<DatePickerClasses>",
1488
+ "shape": [
1489
+ "root",
1490
+ "input",
1491
+ "icon",
1492
+ "popover",
1493
+ "header",
1494
+ "nav",
1495
+ "grid",
1496
+ "day",
1497
+ "daySelected",
1498
+ "dayToday",
1499
+ "dayOutside"
1500
+ ]
1501
+ }
1200
1502
  }
1201
1503
  },
1202
1504
  "Dropzone": {
@@ -1205,16 +1507,49 @@
1205
1507
  "forwardsRef": true,
1206
1508
  "notes": "Drag-drop or click to browse. Emits accepted/rejected files; file-list UI is left to the consumer.",
1207
1509
  "props": {
1208
- "onFiles": { "type": "(files: File[]) => void" },
1209
- "onReject": { "type": "(rejections: { file: File; reason: 'type' | 'size' | 'multiple' }[]) => void" },
1210
- "accept": { "type": "string", "notes": "Comma list of extensions and/or MIME patterns (e.g. '.png,image/*')." },
1211
- "multiple": { "type": "boolean", "default": false },
1212
- "maxSize": { "type": "number", "notes": "Max bytes per file." },
1213
- "disabled": { "type": "boolean", "default": false },
1214
- "label": { "type": "ReactNode" },
1215
- "hint": { "type": "ReactNode" },
1216
- "children": { "type": "ReactNode | ((state: { isDragging: boolean }) => ReactNode)", "notes": "Custom content; replaces the default UI." },
1217
- "classes": { "type": "Partial<DropzoneClasses>", "shape": ["root", "input", "content", "icon", "label", "hint"] }
1510
+ "onFiles": {
1511
+ "type": "(files: File[]) => void"
1512
+ },
1513
+ "onReject": {
1514
+ "type": "(rejections: { file: File; reason: 'type' | 'size' | 'multiple' }[]) => void"
1515
+ },
1516
+ "accept": {
1517
+ "type": "string",
1518
+ "notes": "Comma list of extensions and/or MIME patterns (e.g. '.png,image/*')."
1519
+ },
1520
+ "multiple": {
1521
+ "type": "boolean",
1522
+ "default": false
1523
+ },
1524
+ "maxSize": {
1525
+ "type": "number",
1526
+ "notes": "Max bytes per file."
1527
+ },
1528
+ "disabled": {
1529
+ "type": "boolean",
1530
+ "default": false
1531
+ },
1532
+ "label": {
1533
+ "type": "ReactNode"
1534
+ },
1535
+ "hint": {
1536
+ "type": "ReactNode"
1537
+ },
1538
+ "children": {
1539
+ "type": "ReactNode | ((state: { isDragging: boolean }) => ReactNode)",
1540
+ "notes": "Custom content; replaces the default UI."
1541
+ },
1542
+ "classes": {
1543
+ "type": "Partial<DropzoneClasses>",
1544
+ "shape": [
1545
+ "root",
1546
+ "input",
1547
+ "content",
1548
+ "icon",
1549
+ "label",
1550
+ "hint"
1551
+ ]
1552
+ }
1218
1553
  }
1219
1554
  },
1220
1555
  "Timer": {
@@ -1224,27 +1559,101 @@
1224
1559
  "refHandle": "TimerHandle = { start(); pause(); reset(); restart(); getTime(): number; isRunning }",
1225
1560
  "notes": "Countdown or stopwatch; digital, ring, or segments (one boxed cell per unit with the label below). Uncontrolled with autoStart + imperative ref, or display-only via value. Time values are in seconds; interval is ms.",
1226
1561
  "props": {
1227
- "mode": { "type": "'countdown' | 'stopwatch'", "default": "countdown" },
1228
- "duration": { "type": "number", "notes": "Seconds; countdown length / stopwatch cap; drives ring progress." },
1229
- "to": { "type": "Date | number", "notes": "Absolute countdown target (overrides duration/pause)." },
1230
- "value": { "type": "number", "notes": "Controlled seconds → display-only (no internal clock)." },
1231
- "autoStart": { "type": "boolean", "default": true },
1232
- "running": { "type": "boolean", "notes": "Controlled run state." },
1233
- "interval": { "type": "number", "default": 1000, "notes": "Tick ms." },
1234
- "variant": { "type": "'digital' | 'ring' | 'segments'", "default": "digital" },
1235
- "size": { "type": "'sm' | 'md' | 'lg'", "default": "md" },
1236
- "format": { "type": "(seconds: number) => ReactNode", "notes": "digital/ring only." },
1237
- "units": { "type": "('days' | 'hours' | 'minutes' | 'seconds')[]", "notes": "segments variant; default = smallest set that fits the duration; leading unit absorbs overflow." },
1238
- "unitFormat": { "type": "'long' | 'short'", "default": "short", "notes": "short → d/h/m/s; long → days/hours/minutes/seconds (fixed, no singular/plural)." },
1239
- "unitLabels": { "type": "Partial<Record<TimerUnit, ReactNode | ((value: number) => ReactNode)>>", "notes": "Override unit labels." },
1240
- "segmentVariant": { "type": "'boxed' | 'plain'", "default": "boxed", "notes": "boxed = square with number, unit below." },
1241
- "renderSegment": { "type": "(segment: TimerSegment, index: number) => ReactNode", "notes": "Custom per-cell rendering; TimerSegment = { unit, value, text, label }." },
1242
- "segmentSeparator": { "type": "ReactNode", "notes": "Content between cells, e.g. ':'." },
1243
- "label": { "type": "ReactNode" },
1244
- "labelPlacement": { "type": "'top' | 'bottom' | 'left' | 'right'", "default": "bottom" },
1245
- "onComplete": { "type": "() => void", "notes": "Countdown reaches zero." },
1246
- "onTick": { "type": "(seconds: number) => void" },
1247
- "classes": { "type": "Partial<TimerClasses>", "shape": ["root", "display", "label", "ringTrack", "ringProgress", "segments", "segment", "segmentValue", "segmentLabel"] }
1562
+ "mode": {
1563
+ "type": "'countdown' | 'stopwatch'",
1564
+ "default": "countdown"
1565
+ },
1566
+ "duration": {
1567
+ "type": "number",
1568
+ "notes": "Seconds; countdown length / stopwatch cap; drives ring progress."
1569
+ },
1570
+ "to": {
1571
+ "type": "Date | number",
1572
+ "notes": "Absolute countdown target (overrides duration/pause)."
1573
+ },
1574
+ "value": {
1575
+ "type": "number",
1576
+ "notes": "Controlled seconds \u2192 display-only (no internal clock)."
1577
+ },
1578
+ "autoStart": {
1579
+ "type": "boolean",
1580
+ "default": true
1581
+ },
1582
+ "running": {
1583
+ "type": "boolean",
1584
+ "notes": "Controlled run state."
1585
+ },
1586
+ "interval": {
1587
+ "type": "number",
1588
+ "default": 1000,
1589
+ "notes": "Tick ms."
1590
+ },
1591
+ "variant": {
1592
+ "type": "'digital' | 'ring' | 'segments'",
1593
+ "default": "digital"
1594
+ },
1595
+ "size": {
1596
+ "type": "'sm' | 'md' | 'lg'",
1597
+ "default": "md"
1598
+ },
1599
+ "format": {
1600
+ "type": "(seconds: number) => ReactNode",
1601
+ "notes": "digital/ring only."
1602
+ },
1603
+ "units": {
1604
+ "type": "('days' | 'hours' | 'minutes' | 'seconds')[]",
1605
+ "notes": "segments variant; default = smallest set that fits the duration; leading unit absorbs overflow."
1606
+ },
1607
+ "unitFormat": {
1608
+ "type": "'long' | 'short'",
1609
+ "default": "short",
1610
+ "notes": "short \u2192 d/h/m/s; long \u2192 days/hours/minutes/seconds (fixed, no singular/plural)."
1611
+ },
1612
+ "unitLabels": {
1613
+ "type": "Partial<Record<TimerUnit, ReactNode | ((value: number) => ReactNode)>>",
1614
+ "notes": "Override unit labels."
1615
+ },
1616
+ "segmentVariant": {
1617
+ "type": "'boxed' | 'plain'",
1618
+ "default": "boxed",
1619
+ "notes": "boxed = square with number, unit below."
1620
+ },
1621
+ "renderSegment": {
1622
+ "type": "(segment: TimerSegment, index: number) => ReactNode",
1623
+ "notes": "Custom per-cell rendering; TimerSegment = { unit, value, text, label }."
1624
+ },
1625
+ "segmentSeparator": {
1626
+ "type": "ReactNode",
1627
+ "notes": "Content between cells, e.g. ':'."
1628
+ },
1629
+ "label": {
1630
+ "type": "ReactNode"
1631
+ },
1632
+ "labelPlacement": {
1633
+ "type": "'top' | 'bottom' | 'left' | 'right'",
1634
+ "default": "bottom"
1635
+ },
1636
+ "onComplete": {
1637
+ "type": "() => void",
1638
+ "notes": "Countdown reaches zero."
1639
+ },
1640
+ "onTick": {
1641
+ "type": "(seconds: number) => void"
1642
+ },
1643
+ "classes": {
1644
+ "type": "Partial<TimerClasses>",
1645
+ "shape": [
1646
+ "root",
1647
+ "display",
1648
+ "label",
1649
+ "ringTrack",
1650
+ "ringProgress",
1651
+ "segments",
1652
+ "segment",
1653
+ "segmentValue",
1654
+ "segmentLabel"
1655
+ ]
1656
+ }
1248
1657
  }
1249
1658
  },
1250
1659
  "Modal": {
@@ -1309,7 +1718,7 @@
1309
1718
  },
1310
1719
  "onClose": {
1311
1720
  "type": "() => void",
1312
- "notes": "When set, renders an × close button."
1721
+ "notes": "When set, renders an \u00d7 close button."
1313
1722
  }
1314
1723
  }
1315
1724
  },
@@ -1424,7 +1833,7 @@
1424
1833
  "onValueChange": "Bridged to react-hook-form onChange (Select single, Dropdown).",
1425
1834
  "onValuesChange": "Bridged to react-hook-form onChange (Select multi).",
1426
1835
  "checked": "Auto-set from value when value is boolean (Checkbox).",
1427
- "values": "CheckboxGroup binds value:string[]/onChange(values) directly to the field — no bridge needed."
1836
+ "values": "CheckboxGroup binds value:string[]/onChange(values) directly to the field \u2014 no bridge needed."
1428
1837
  }
1429
1838
  }
1430
1839
  },
@@ -1480,7 +1889,7 @@
1480
1889
  "extendsNativeProps": "select (without value/onChange)",
1481
1890
  "forwardsRef": true,
1482
1891
  "modes": {
1483
- "native": "Default — wraps a native <select>.",
1892
+ "native": "Default \u2014 wraps a native <select>.",
1484
1893
  "searchable": "When `searchable=true`. Custom dropdown with text filter.",
1485
1894
  "multi": "When `multiple=true`. Chip-based multi with text filter."
1486
1895
  },
@@ -1559,7 +1968,7 @@
1559
1968
  "portal": {
1560
1969
  "type": "boolean",
1561
1970
  "default": true,
1562
- "notes": "Applies to searchable + multiple modes. Renders the open menu in a portal at document.body using --crk-z-floating (1060) — escapes overflow:hidden ancestors and sits above modals. Set false to keep the menu in the trigger's subtree."
1971
+ "notes": "Applies to searchable + multiple modes. Renders the open menu in a portal at document.body using --crk-z-floating (1060) \u2014 escapes overflow:hidden ancestors and sits above modals. Set false to keep the menu in the trigger's subtree."
1563
1972
  },
1564
1973
  "classes": {
1565
1974
  "type": "Partial<SelectClasses>",
@@ -1707,7 +2116,7 @@
1707
2116
  ]
1708
2117
  }
1709
2118
  },
1710
- "behavior": "Inside a <RadioGroup>, name/checked/onChange come from context — do not pass them on Radio."
2119
+ "behavior": "Inside a <RadioGroup>, name/checked/onChange come from context \u2014 do not pass them on Radio."
1711
2120
  },
1712
2121
  "RadioGroup": {
1713
2122
  "import": "import { RadioGroup } from '@overdoser/react-toolkit'",
@@ -1801,7 +2210,7 @@
1801
2210
  "dots-colors": "dotColorKey (each row holds its own dot color)",
1802
2211
  "label": "showValues + valuePosition",
1803
2212
  "label-custom": "renderLabel",
1804
- "interactive": "Series-toggle pattern: keep multiple series in `data` but pass only the active series in `config` (`{ [active]: fullConfig[active] }`). Consumer-side selector — tiles, prev/next navigator, or <Dropdown> (see recipes/interactive-line-chart.tsx)."
2213
+ "interactive": "Series-toggle pattern: keep multiple series in `data` but pass only the active series in `config` (`{ [active]: fullConfig[active] }`). Consumer-side selector \u2014 tiles, prev/next navigator, or <Dropdown> (see recipes/interactive-line-chart.tsx)."
1805
2214
  },
1806
2215
  "props": {
1807
2216
  "data": {
@@ -1833,7 +2242,7 @@
1833
2242
  "step"
1834
2243
  ],
1835
2244
  "default": "monotone",
1836
- "notes": "'step' is step-after — value holds until the next x."
2245
+ "notes": "'step' is step-after \u2014 value holds until the next x."
1837
2246
  },
1838
2247
  "showPoints": {
1839
2248
  "type": "boolean",
@@ -1937,7 +2346,7 @@
1937
2346
  "stacked-expand": "stacked + stackOffset='expand' (normalizes each row to 100%)",
1938
2347
  "gradient": "fillGradient",
1939
2348
  "icons": "set `icon` on each entry in `config` (rendered in legend in place of the swatch)",
1940
- "interactive": "Data-range filter: all series stay rendered (typically stacked + fillGradient); the selector swaps the slice of `data` shown (e.g. last 7d/14d/30d). Not a series toggle. Consumer-side selector — tiles, prev/next navigator, or <Dropdown>. See recipes/interactive-area-chart.tsx."
2349
+ "interactive": "Data-range filter: all series stay rendered (typically stacked + fillGradient); the selector swaps the slice of `data` shown (e.g. last 7d/14d/30d). Not a series toggle. Consumer-side selector \u2014 tiles, prev/next navigator, or <Dropdown>. See recipes/interactive-area-chart.tsx."
1941
2350
  },
1942
2351
  "props": {
1943
2352
  "data": {
@@ -1986,7 +2395,7 @@
1986
2395
  "fillGradient": {
1987
2396
  "type": "boolean",
1988
2397
  "default": false,
1989
- "notes": "Per-series vertical linear gradient (opaque top → transparent bottom)."
2398
+ "notes": "Per-series vertical linear gradient (opaque top \u2192 transparent bottom)."
1990
2399
  },
1991
2400
  "showGrid": {
1992
2401
  "type": "boolean",
@@ -2051,7 +2460,7 @@
2051
2460
  "mixed": "colorBy='index' (+ optional colors)",
2052
2461
  "negative": "numeric values spanning zero; pair with negativeColor",
2053
2462
  "active": "activeIndex={n}",
2054
- "interactive": "Series-toggle pattern: keep multiple series in `data` but pass only the active series in `config` (`{ [active]: fullConfig[active] }`). Consumer-side selector — tiles, prev/next navigator, or <Dropdown> (see recipes/interactive-bar-chart.tsx)."
2463
+ "interactive": "Series-toggle pattern: keep multiple series in `data` but pass only the active series in `config` (`{ [active]: fullConfig[active] }`). Consumer-side selector \u2014 tiles, prev/next navigator, or <Dropdown> (see recipes/interactive-bar-chart.tsx)."
2055
2464
  },
2056
2465
  "props": {
2057
2466
  "data": {
@@ -2125,7 +2534,7 @@
2125
2534
  "inside-start"
2126
2535
  ],
2127
2536
  "default": "outside",
2128
- "notes": "'inside-start' anchors at the baseline edge of the bar; on vertical bars the text rotates ±90° to read along the bar's length."
2537
+ "notes": "'inside-start' anchors at the baseline edge of the bar; on vertical bars the text rotates \u00b190\u00b0 to read along the bar's length."
2129
2538
  },
2130
2539
  "renderLabel": {
2131
2540
  "type": "(args: { row, value, seriesKey, index }) => ReactNode",
@@ -2193,7 +2602,7 @@
2193
2602
  "donut": "innerRadius (number or 'NN%')",
2194
2603
  "legend": "showLegend (on by default)",
2195
2604
  "separator-none": "strokeWidth={0}",
2196
- "label": "showLabels (default content: name + percent). Outside labels get a leader line from slice → label by default; disable with showLabelLines=false.",
2605
+ "label": "showLabels (default content: name + percent). Outside labels get a leader line from slice \u2192 label by default; disable with showLabelLines=false.",
2197
2606
  "label-custom": "renderLabel (leader line still drawn unless showLabelLines=false)",
2198
2607
  "label-list": "valuePosition='inside' + renderLabel returning the row name. Each slice carries its category name on its colored surface (background-colored text for contrast).",
2199
2608
  "donut-text": "innerRadius + centerLabel",
@@ -2321,7 +2730,7 @@
2321
2730
  "grid-circle-fill": "gridType='circle' (+ fillOpacity for the 'fill')",
2322
2731
  "grid-circle-no-lines": "gridType='circle' + showRadialLines={false}",
2323
2732
  "grid-fill": "defaults (filled polygon grid)",
2324
- "grid-custom": "override the grid via classes={{ grid: '…' }} or theme tokens",
2733
+ "grid-custom": "override the grid via classes={{ grid: '\u2026' }} or theme tokens",
2325
2734
  "grid-none": "showGrid={false} (+ usually showRadialLines={false})",
2326
2735
  "icons": "set `icon` on each entry in `config`",
2327
2736
  "label-custom": "renderAxisLabel",
@@ -2430,11 +2839,11 @@
2430
2839
  "unsubscribeBars": "(handle) => void"
2431
2840
  },
2432
2841
  "indicators": {
2433
- "sma": "{ type: 'sma', period, color? } — overlay",
2434
- "ema": "{ type: 'ema', period, color? } — overlay",
2435
- "bollinger": "{ type: 'bollinger', period, stdDev?, color?, fillOpacity? } — overlay (filled band)",
2436
- "rsi": "{ type: 'rsi', period?, color?, overbought?, oversold? } — sub-pane",
2437
- "volume": "{ type: 'volume', upColor?, downColor? } — sub-pane (histogram)"
2842
+ "sma": "{ type: 'sma', period, color? } \u2014 overlay",
2843
+ "ema": "{ type: 'ema', period, color? } \u2014 overlay",
2844
+ "bollinger": "{ type: 'bollinger', period, stdDev?, color?, fillOpacity? } \u2014 overlay (filled band)",
2845
+ "rsi": "{ type: 'rsi', period?, color?, overbought?, oversold? } \u2014 sub-pane",
2846
+ "volume": "{ type: 'volume', upColor?, downColor? } \u2014 sub-pane (histogram)"
2438
2847
  },
2439
2848
  "props": {
2440
2849
  "datafeed": {
@@ -2452,7 +2861,7 @@
2452
2861
  },
2453
2862
  "period": {
2454
2863
  "type": "Period",
2455
- "notes": "Visible time-range window (the 'chart interval'): '1D' | '5D' | '1M' | '3M' | '6M' | '1Y' | '5Y' | '10Y' | '20Y' | 'MAX' or a `<n><unit>` string. Overrides initialLookback when set. 'MAX' fetches from epoch and renders whatever the datafeed returns — pair with a coarse resolution. The chart does not auto-adjust resolution; pair with suggestResolutionForPeriod() / suggestPeriodForResolution() to couple the two."
2864
+ "notes": "Visible time-range window (the 'chart interval'): '1D' | '5D' | '1M' | '3M' | '6M' | '1Y' | '5Y' | '10Y' | '20Y' | 'MAX' or a `<n><unit>` string. Overrides initialLookback when set. 'MAX' fetches from epoch and renders whatever the datafeed returns \u2014 pair with a coarse resolution. The chart does not auto-adjust resolution; pair with suggestResolutionForPeriod() / suggestPeriodForResolution() to couple the two."
2456
2865
  },
2457
2866
  "seriesType": {
2458
2867
  "type": "enum",
@@ -2535,7 +2944,7 @@
2535
2944
  "drag": "pan",
2536
2945
  "wheel": "zoom (cursor-anchored)",
2537
2946
  "arrow-keys": "nudge pan",
2538
- "hover": "full crosshair — dashed horizontal + vertical lines, price badge on the right Y axis at the cursor's price, and a time badge under the X axis showing `YYYY-MM-DD HH:MM:SS <tz>` at the cursor's snapped bar (timezone configurable via the gear panel or props). OHLC readout in the chart header."
2947
+ "hover": "full crosshair \u2014 dashed horizontal + vertical lines, price badge on the right Y axis at the cursor's price, and a time badge under the X axis showing `YYYY-MM-DD HH:MM:SS <tz>` at the cursor's snapped bar (timezone configurable via the gear panel or props). OHLC readout in the chart header."
2539
2948
  },
2540
2949
  "exportedHelpers": [
2541
2950
  "periodToSeconds",
@@ -2562,7 +2971,7 @@
2562
2971
  "import": "import { Sparkline } from '@overdoser/react-toolkit'",
2563
2972
  "element": "svg",
2564
2973
  "forwardsRef": true,
2565
- "behavior": "Inline trend line, fixed pixel size, no axes/legend/tooltip — for table cells and KPI tiles.",
2974
+ "behavior": "Inline trend line, fixed pixel size, no axes/legend/tooltip \u2014 for table cells and KPI tiles.",
2566
2975
  "props": {
2567
2976
  "data": {
2568
2977
  "type": "number[]",
@@ -2610,19 +3019,19 @@
2610
3019
  "import": "import { TraceTimeline } from '@overdoser/react-toolkit'",
2611
3020
  "element": "div",
2612
3021
  "forwardsRef": true,
2613
- "behavior": "Request/response trace of one correlated flow on a single proportional UTC time band. Overlapping bars pack into sub-rows; description chips are placed collision-free (3-pass nudging). Wheel-zoom, drag-pan, Fit, keyword highlight, hover tooltip. A right-side icon rail (default on) docks one drawer at a time: Event details (request/response panel with copy buttons, opened by clicking an event, empty state until then) or Full log (every event vertically with stacked payloads + copy buttons; kept in sync with timeline clicks both ways — timeline click scrolls/flashes the log entry, log click selects and centers the timeline). An events-summary bubble (default on) sits bottom-left and expands into a draggable panel. Fully controlled data: pass the pre-filtered array; the component does no filtering/grouping. Items with an unset end render live (dashed/pulsing) and grow on an internal ticker until an update supplies end.",
3022
+ "behavior": "Trace of one correlated flow on a single proportional UTC time band \u2014 HTTP calls, plain domain events, or both. Overlapping bars pack into sub-rows; description chips are placed collision-free (3-pass nudging). Ctrl/Cmd-wheel zoom (wheelZoom prop: 'ctrl' default | 'free' | 'none'), drag-pan, Fit, keyword highlight, hover tooltip. A right-side icon rail (default on) docks one drawer at a time: Event details (opened by clicking an event, empty state until then; every value rendered under its own label \u2014 Started/Ended/Duration stacked one per row \u2014 and only the sections the event actually has: Message/Payload/Details for plain events, Request/Response for requests, unknown keys under Other fields) or Full log (every event vertically with message, details fields and the payloads it has + copy buttons; kept in sync with timeline clicks both ways \u2014 timeline click scrolls/flashes the log entry, log click selects and centers the timeline). Drawers dock into the card row flush against the timeline (full card height, no gap); the divider strip between card and drawer drags to resize drawer vs timeline. An events-summary bubble (default on) sits bottom-left and expands into a draggable panel, dockable from its header as a full-height column flush beside the card (the timeline shrinks to make room) with the same resizable divider. Fully controlled data: pass the pre-filtered array; the component does no filtering/grouping. Items with an unset end render live (dashed/pulsing) and grow on an internal ticker until an update supplies end.",
2614
3023
  "props": {
2615
3024
  "events": {
2616
3025
  "type": "TraceTimelineEvent[]",
2617
3026
  "required": true,
2618
- "notes": "TraceTimelineEvent = { id, service, start, source?, op?, requestId?, method?, url?, label?, query?, reqHeaders?, reqBody?, status?, resHeaders?, resBody?, end?: number|null }. end unset = in flight."
3027
+ "notes": "TraceTimelineEvent = { id, service, start, end?: number|null, source?, op?, kind?: 'request'|'event', level?: 'debug'|'info'|'success'|'warning'|'error', message?, payload?, details?: { label, value, mono?, copy? }[], requestId?, method?, url?, label?, query?, reqHeaders?, reqBody?, status?, resHeaders?, resBody? }. end unset = in flight (requests) / ongoing (plain events). kind is inferred when omitted: 'request' as soon as any of method/url/status/query/reqHeaders/reqBody/resHeaders/resBody is set, else 'event' \u2014 which drives which detail sections render. payload is the generic body for non-request events (counterpart of reqBody/resBody; an event may carry nothing but payload). details adds arbitrary labeled values (objects render as copyable JSON blocks). Extra keys are allowed, are searched by highlight and are listed under Other fields."
2619
3028
  },
2620
3029
  "title": {
2621
3030
  "type": "ReactNode"
2622
3031
  },
2623
3032
  "meta": {
2624
3033
  "type": "ReactNode",
2625
- "notes": "Defaults to 'N events · span · times in UTC'."
3034
+ "notes": "Defaults to 'N events \u00b7 span \u00b7 times in UTC'."
2626
3035
  },
2627
3036
  "highlight": {
2628
3037
  "type": "string",
@@ -2630,7 +3039,7 @@
2630
3039
  },
2631
3040
  "services": {
2632
3041
  "type": "string[]",
2633
- "notes": "Seeds service→color assignment order for stable colors across traces."
3042
+ "notes": "Seeds service\u2192color assignment order for stable colors across traces."
2634
3043
  },
2635
3044
  "serviceColors": {
2636
3045
  "type": "Record<string, string>"
@@ -2647,6 +3056,16 @@
2647
3056
  "type": "boolean",
2648
3057
  "default": true
2649
3058
  },
3059
+ "wheelZoom": {
3060
+ "type": "enum",
3061
+ "values": [
3062
+ "free",
3063
+ "ctrl",
3064
+ "none"
3065
+ ],
3066
+ "default": "ctrl",
3067
+ "notes": "Wheel-zoom gate, default 'ctrl': zooms only while Ctrl/Cmd is held (plain scrolling passes through to the page; trackpad pinch still zooms since browsers report it as a ctrlKey wheel). 'free' zooms on any scroll; 'none' disables wheel zoom entirely (toolbar zoom buttons still work)."
3068
+ },
2650
3069
  "showLegend": {
2651
3070
  "type": "boolean",
2652
3071
  "default": true
@@ -2672,18 +3091,27 @@
2672
3091
  "floating"
2673
3092
  ],
2674
3093
  "default": "bubble",
2675
- "notes": "bubble = collapsed pill anchored bottom-left of the timeline, expanding in place into a draggable panel (collapse snaps it back to its corner). Or dock beside the timeline, render full-width above/below (rows flow into responsive columns), or float as a draggable palette grabbed by its header. summaryDefaultPosition?: { x, y } sets the floating start offset."
3094
+ "notes": "bubble = collapsed pill anchored bottom-left of the timeline, expanding in place into a draggable panel (collapse snaps it back to its corner; a header toggle docks it as a full-height column flush beside the timeline card, shrinking the timeline; the divider strip between them drags to resize both; undock floats it again \u2014 dockedness survives collapse). Or dock beside the timeline, render full-width above/below (rows flow into responsive columns), or float as a draggable palette grabbed by its header. summaryDefaultPosition?: { x, y } sets the floating start offset."
2676
3095
  },
2677
3096
  "showDock": {
2678
3097
  "type": "boolean",
2679
3098
  "default": true,
2680
- "notes": "Sticky 44px icon rail on the far right toggling one docked drawer at a time: Event details or Full log. Nothing docked initially; clicking an event opens details. false removes the rail and full log — the details panel then opens/closes with the selection."
3099
+ "notes": "Sticky 44px icon rail on the far right toggling one docked drawer at a time: Event details or Full log. Nothing docked initially; clicking an event opens details. false removes the rail and full log \u2014 the details panel then opens/closes with the selection."
2681
3100
  },
2682
3101
  "defaultDock": {
2683
3102
  "type": "'details' | 'log' | null",
2684
3103
  "default": null,
2685
3104
  "notes": "Drawer docked open initially (uncontrolled). Type TraceTimelineDock."
2686
3105
  },
3106
+ "showExtraFields": {
3107
+ "type": "boolean",
3108
+ "default": true,
3109
+ "notes": "Lists event keys the panel does not render itself under an Other fields section in the details drawer."
3110
+ },
3111
+ "hiddenFields": {
3112
+ "type": "string[]",
3113
+ "notes": "Extra event keys to hide from the drawer's Other fields section and exclude from keyword matching. For plumbing values that ride along on every event (tenant ids, ingestion timestamps, shared correlation ids) and would otherwise clutter the drawer or match every event when searched."
3114
+ },
2687
3115
  "maxHeight": {
2688
3116
  "type": "number | string",
2689
3117
  "default": "80vh",
@@ -2735,6 +3163,45 @@
2735
3163
  }
2736
3164
  }
2737
3165
  },
3166
+ "TraceEventDetails": {
3167
+ "import": "import { TraceEventDetails } from '@overdoser/react-toolkit'",
3168
+ "element": "div",
3169
+ "forwardsRef": true,
3170
+ "behavior": "Standalone event inspector \u2014 the panel behind TraceTimeline's Event details drawer, usable in any drawer/modal/split view. Adapts to the event instead of assuming an HTTP call: every value is rendered under its own label (identity, URL, request id and Started / Ended / Duration, each stacked on its own row) and only the sections the event has are shown \u2014 Request/Response (query parameters, headers, bodies, 'Awaiting response\u2026' while in flight) for request-like events, Message/Payload/Details for plain events, Other fields for unrecognized keys. Ships no shell (no surface/border/scrolling) \u2014 wrap it in your own panel. The inference helpers behind it are exported too: isRequestEvent(ev) (the request/event decision), badgeOf(ev, pending) (the status/level badge as { text, tone: TraceBadgeTone } | null), extraFieldsOf(ev, hidden?) (unknown keys as TraceTimelineField[], minus hidden names).",
3171
+ "props": {
3172
+ "event": {
3173
+ "type": "TraceTimelineEvent",
3174
+ "required": true,
3175
+ "notes": "Same model as TraceTimeline events; see the TraceTimeline entry."
3176
+ },
3177
+ "now": {
3178
+ "type": "number",
3179
+ "default": "Date.now()",
3180
+ "notes": "'Now' for an unfinished event's running duration, epoch ms. Pass a ticking value to keep it live."
3181
+ },
3182
+ "highlight": {
3183
+ "type": "string",
3184
+ "notes": "Keyword marked inside field values."
3185
+ },
3186
+ "showExtraFields": {
3187
+ "type": "boolean",
3188
+ "default": true,
3189
+ "notes": "Lists keys the panel does not render itself under an Other fields section."
3190
+ },
3191
+ "hiddenFields": {
3192
+ "type": "string[]",
3193
+ "notes": "Individual extra keys to leave out of Other fields; finer-grained than showExtraFields."
3194
+ },
3195
+ "onClose": {
3196
+ "type": "() => void",
3197
+ "notes": "Adds a close button to the header row; omitted when absent."
3198
+ },
3199
+ "classes": {
3200
+ "type": "Partial<TraceEventDetailsClasses>",
3201
+ "notes": "{ root, head, body, section, field }"
3202
+ }
3203
+ }
3204
+ },
2738
3205
  "HistoryTimeline": {
2739
3206
  "import": "import { HistoryTimeline } from '@overdoser/react-toolkit'",
2740
3207
  "element": "div",
@@ -2771,12 +3238,22 @@
2771
3238
  },
2772
3239
  "tagColors": {
2773
3240
  "type": "Record<string, string>",
2774
- "notes": "Tag→color overrides; unknown tags cycle the palette."
3241
+ "notes": "Tag\u2192color overrides; unknown tags cycle the palette."
2775
3242
  },
2776
3243
  "showControls": {
2777
3244
  "type": "boolean",
2778
3245
  "default": true
2779
3246
  },
3247
+ "wheelZoom": {
3248
+ "type": "enum",
3249
+ "values": [
3250
+ "free",
3251
+ "ctrl",
3252
+ "none"
3253
+ ],
3254
+ "default": "ctrl",
3255
+ "notes": "Wheel-zoom gate, default 'ctrl': zooms only while Ctrl/Cmd is held (plain scrolling passes through to the page; trackpad pinch still zooms since browsers report it as a ctrlKey wheel). 'free' zooms on any scroll; 'none' disables wheel zoom entirely (toolbar zoom buttons still work)."
3256
+ },
2780
3257
  "showLegend": {
2781
3258
  "type": "boolean",
2782
3259
  "default": true
@@ -2802,7 +3279,7 @@
2802
3279
  "bubble"
2803
3280
  ],
2804
3281
  "default": "left",
2805
- "notes": "Dock beside the timeline, render full-width above/below (rows flow into responsive columns), or float as a draggable palette grabbed by its header. summaryDefaultPosition?: { x, y } sets the floating start offset."
3282
+ "notes": "Dock beside the timeline, render full-width above/below (rows flow into responsive columns), or float as a draggable palette grabbed by its header. summaryDefaultPosition?: { x, y } sets the floating start offset. bubble = collapsed pill bottom-left of the timeline expanding into a draggable panel, dockable from its header as a full-height column flush beside the timeline card with a draggable resize divider."
2806
3283
  },
2807
3284
  "maxHeight": {
2808
3285
  "type": "number | string",
@@ -2862,7 +3339,7 @@
2862
3339
  },
2863
3340
  "meta": {
2864
3341
  "type": "ReactNode",
2865
- "notes": "Defaults to 'N tasks · span · K running'."
3342
+ "notes": "Defaults to 'N tasks \u00b7 span \u00b7 K running'."
2866
3343
  },
2867
3344
  "highlight": {
2868
3345
  "type": "string"
@@ -2880,6 +3357,16 @@
2880
3357
  "type": "boolean",
2881
3358
  "default": true
2882
3359
  },
3360
+ "wheelZoom": {
3361
+ "type": "enum",
3362
+ "values": [
3363
+ "free",
3364
+ "ctrl",
3365
+ "none"
3366
+ ],
3367
+ "default": "ctrl",
3368
+ "notes": "Wheel-zoom gate, default 'ctrl': zooms only while Ctrl/Cmd is held (plain scrolling passes through to the page; trackpad pinch still zooms since browsers report it as a ctrlKey wheel). 'free' zooms on any scroll; 'none' disables wheel zoom entirely (toolbar zoom buttons still work)."
3369
+ },
2883
3370
  "showSearch": {
2884
3371
  "type": "boolean",
2885
3372
  "default": true,
@@ -2901,7 +3388,7 @@
2901
3388
  "bubble"
2902
3389
  ],
2903
3390
  "default": "left",
2904
- "notes": "Dock beside the timeline, render full-width above/below (rows flow into responsive columns), or float as a draggable palette grabbed by its header. summaryDefaultPosition?: { x, y } sets the floating start offset."
3391
+ "notes": "Dock beside the timeline, render full-width above/below (rows flow into responsive columns), or float as a draggable palette grabbed by its header. summaryDefaultPosition?: { x, y } sets the floating start offset. bubble = collapsed pill bottom-left of the timeline expanding into a draggable panel, dockable from its header as a full-height column flush beside the timeline card with a draggable resize divider."
2905
3392
  },
2906
3393
  "maxHeight": {
2907
3394
  "type": "number | string",
@@ -2980,8 +3467,8 @@
2980
3467
  "returns": {
2981
3468
  "sortedData": "T[]",
2982
3469
  "sortConfig": "SortConfig[]",
2983
- "requestSort": "(key) => void — single-column; cycles asc → desc → cleared.",
2984
- "requestMultiSort": "(key) => void — adds/toggles a column in multi-sort.",
3470
+ "requestSort": "(key) => void \u2014 single-column; cycles asc \u2192 desc \u2192 cleared.",
3471
+ "requestMultiSort": "(key) => void \u2014 adds/toggles a column in multi-sort.",
2985
3472
  "resetSort": "() => void"
2986
3473
  },
2987
3474
  "notes": "Only needed if you want to manage sort state outside <Table>."
@@ -2993,10 +3480,10 @@
2993
3480
  "Dropdown has two modes: with `options` + `value` + `onChange` it acts as a select input (the `trigger` prop is unused); without `options`, pass `trigger` and `<DropdownItem>` children.",
2994
3481
  "Popover content goes through the `content` prop.",
2995
3482
  "Modal content lives in Modal.Header / Modal.Body / Modal.Footer compound components.",
2996
- "FormField clones a single child element to inject form props — pass exactly one input element.",
3483
+ "FormField clones a single child element to inject form props \u2014 pass exactly one input element.",
2997
3484
  "Server-side Table mode (when `onSort` is provided): the consumer is responsible for sorting and slicing `data` server-side.",
2998
3485
  "Theme stylesheet is imported separately: '@overdoser/react-toolkit/theme.css'.",
2999
- "Charts use `--crk-chart-1` … `--crk-chart-5` color tokens (overridable on `:root`). Each chart is responsive via ResizeObserver; ship no external chart library."
3486
+ "Charts use `--crk-chart-1` \u2026 `--crk-chart-5` color tokens (overridable on `:root`). Each chart is responsive via ResizeObserver; ship no external chart library."
3000
3487
  ],
3001
3488
  "recipes": [
3002
3489
  "recipes/login-form.tsx",