@usevyre/ai-context 1.1.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -305,7 +305,7 @@ import { Button } from "@usevyre/react"
305
305
 
306
306
  ### Calendar
307
307
 
308
- Date picker calendar widget for selecting single dates or ranges.
308
+ Inline date-grid widget (always visible, no input). mode: single | range | multiple, optional time picker. For an input + popover use DatePicker; for start/end ranges with presets use DateRangePicker.
309
309
 
310
310
  ```tsx
311
311
  import { Calendar } from "@usevyre/react"
@@ -314,6 +314,7 @@ import { Calendar } from "@usevyre/react"
314
314
  // value = Date | null
315
315
  // onChange = function
316
316
  // disabled = boolean (default: false)
317
+ // defaultMonth = Date
317
318
 
318
319
  // Examples:
319
320
  const [date, setDate] = useState(null);
@@ -321,7 +322,39 @@ const [date, setDate] = useState(null);
321
322
  ```
322
323
 
323
324
  **Common mistakes:**
324
- - ❌ `Using Calendar for time selection` Combine with a separate time Input if time selection is needed
325
+ - ❌ `Calendar for an input field that opens a popover` Use <DatePicker /> (single date) or <DateRangePicker /> (range)
326
+ - ❌ `value as tuple for mode="single"` → Pass value matching mode; use mode="range" for [start,end]
327
+
328
+ ---
329
+
330
+ ### DatePicker
331
+
332
+ Input trigger that opens a Calendar in a popover. Same modes as Calendar (single | range | multiple) plus a placeholder. Use this for a compact date field; use Calendar for an always-visible grid, or DateRangePicker for start/end ranges with presets.
333
+
334
+ ```tsx
335
+ import { DatePicker } from "@usevyre/react"
336
+
337
+ // Props:
338
+ // value = Date | [Date, Date] | Date[] | null
339
+ // onChange = function
340
+ // mode = "single" | "range" | "multiple" (default: single)
341
+ // placeholder = string (default: Pick a date)
342
+ // showTime = boolean (default: false)
343
+ // minDate = Date
344
+ // maxDate = Date
345
+ // disabled = function
346
+ // weekStartsOn = "0" | "1" (default: 1)
347
+ // inputClassName = string
348
+
349
+ // Examples:
350
+ const [date, setDate] = useState(null);
351
+ <DatePicker value={date} onChange={setDate} placeholder="Pick a date" />
352
+ <DatePicker value={date} onChange={setDate} showTime />
353
+ ```
354
+
355
+ **Common mistakes:**
356
+ - ❌ `DatePicker mode="range" for { from, to } object` → Use <DateRangePicker /> for the { from, to } object API + presets + dual month
357
+ - ❌ `DatePicker without value/onChange` → Provide value and onChange (e.g. from useState)
325
358
 
326
359
  ---
327
360
 
@@ -381,6 +414,78 @@ import { Checkbox } from "@usevyre/react"
381
414
 
382
415
  ---
383
416
 
417
+ ### RadioGroup
418
+
419
+ Controlled single-choice group. RadioGroup owns the selected value; render it data-driven via the options array OR with composable <Radio> children for custom content. role=radiogroup with proper labelling. For multi-select use Checkbox; for a compact dropdown use Select.
420
+
421
+ ```tsx
422
+ import { RadioGroup, Radio } from "@usevyre/react"
423
+
424
+ // Props:
425
+ // value = string
426
+ // defaultValue = string
427
+ // onChange = function
428
+ // name = string
429
+ // disabled = boolean (default: false)
430
+ // size = "sm" | "md" (default: md)
431
+ // orientation = "vertical" | "horizontal" (default: vertical)
432
+ // options = { value: string; label?: string; description?: string; disabled?: boolean }[]
433
+
434
+ // Examples:
435
+ <RadioGroup
436
+ value={plan}
437
+ onChange={setPlan}
438
+ options={[
439
+ { value: "free", label: "Free", description: "For hobby projects" },
440
+ { value: "pro", label: "Pro", description: "For teams" },
441
+ ]}
442
+ />
443
+ <RadioGroup value={plan} onChange={setPlan} orientation="horizontal">
444
+ <Radio value="free" label="Free" />
445
+ <Radio value="pro" label="Pro" />
446
+ </RadioGroup>
447
+ ```
448
+
449
+ **Common mistakes:**
450
+ - ❌ `<Radio> used outside a <RadioGroup>` → Always wrap <Radio> in <RadioGroup>
451
+ - ❌ `RadioGroup without value/onChange (React) or v-model (Vue)` → Bind value + onChange (React) or v-model (Vue); or defaultValue for uncontrolled in React
452
+ - ❌ `Using Checkbox for mutually-exclusive choices` → Use RadioGroup + Radio (or options) for one-of-many
453
+
454
+ ---
455
+
456
+ ### RichTextEditor
457
+
458
+ Controlled WYSIWYG editor. value is an HTML string; you own it in state and set it in onChange (React) / v-model (Vue). Native contentEditable + execCommand — zero dependencies. Toolbar: bold, italic, underline, strike, h1-h3, ordered/unordered lists, quote, code block, link, clear formatting.
459
+
460
+ ```tsx
461
+ import { RichTextEditor } from "@usevyre/react"
462
+
463
+ // Props:
464
+ // value = string
465
+ // onChange = function
466
+ // placeholder = string (default: Write something…)
467
+ // disabled = boolean (default: false)
468
+ // readOnly = boolean (default: false)
469
+ // toolbar = RichTextTool[]
470
+ // minHeight = string (default: 10rem)
471
+
472
+ // Examples:
473
+ const [html, setHtml] = useState("<p>Hello <strong>world</strong></p>");
474
+ <RichTextEditor value={html} onChange={setHtml} placeholder="Write…" />
475
+ <RichTextEditor
476
+ value={html}
477
+ onChange={setHtml}
478
+ toolbar={["bold", "italic", "link"]}
479
+ />
480
+ ```
481
+
482
+ **Common mistakes:**
483
+ - ❌ `RichTextEditor without value/onChange (React) or v-model (Vue)` → Keep the HTML string in state and update it in onChange / v-model
484
+ - ❌ `Rendering value as text or with dangerouslySetInnerHTML elsewhere without sanitising` → Sanitise (e.g. DOMPurify) before re-rendering untrusted RTE output
485
+ - ❌ `toolbar="bold" (string)` → Pass an array, e.g. toolbar={["bold","italic","link"]}
486
+
487
+ ---
488
+
384
489
  ### Command
385
490
 
386
491
  Command palette / search dialog. Use for search-first navigation or quick actions.
@@ -432,7 +537,7 @@ import { DropdownMenu, DropdownItem, DropdownSeparator, DropdownCheckboxItem, Dr
432
537
 
433
538
  ### Field
434
539
 
435
- Form field wrapper providing label, hint text, and validation state for Input or Textarea.
540
+ Form field wrapper. Two ways to use it (both supported): (1) props-based — pass label/hint/state/required for the common case; (2) composable — use the parts FieldLabel, FieldDescription, FieldError, FieldGroup, FieldSet for richer layouts (multiple controls, custom error placement). The props-based API is unchanged and still works.
436
541
 
437
542
  ```tsx
438
543
  import { Field, Input, Textarea } from "@usevyre/react"
@@ -450,10 +555,23 @@ import { Field, Input, Textarea } from "@usevyre/react"
450
555
  <Field label="Search">
451
556
  <Input leftElement={<SearchIcon />} placeholder="Search..." />
452
557
  </Field>
558
+ <Field>
559
+ <FieldLabel required htmlFor="email">Email</FieldLabel>
560
+ <Input id="email" type="email" />
561
+ <FieldDescription>We\u2019ll never share it.</FieldDescription>
562
+ <FieldError>{errors.email}</FieldError>
563
+ </Field>
564
+
565
+ // Two controls side by side
566
+ <FieldGroup orientation="horizontal">
567
+ <Field label="First name"><Input /></Field>
568
+ <Field label="Last name"><Input /></Field>
569
+ </FieldGroup>
453
570
  ```
454
571
 
455
572
  **Common mistakes:**
456
573
  - ❌ `Applying state prop directly to Input` → Wrap Input in <Field state="error"> to apply validation styling
574
+ - ❌ `Mixing props label/hint AND FieldLabel/FieldError for the same field` → Pick one: either props-based (label/hint/state) OR composable parts
457
575
 
458
576
  ---
459
577
 
@@ -465,6 +583,7 @@ Text input field. Wrap in Field for labels and validation. Use leftElement/right
465
583
  import { Input } from "@usevyre/react"
466
584
 
467
585
  // Props:
586
+ // modelValue = string | number
468
587
  // size = "sm" | "md" | "lg" (default: md)
469
588
  // leftElement = ReactNode
470
589
  // rightElement = ReactNode
@@ -476,6 +595,7 @@ import { Input } from "@usevyre/react"
476
595
  **Common mistakes:**
477
596
  - ❌ `size="icon"` → Use size="sm" | "md" | "lg"
478
597
  - ❌ `type="search" for search UI` → Import Command from @usevyre/react for search palettes
598
+ - ❌ `Vue: binding Input/Textarea value without v-model` → Use v-model on <Input>/<Textarea> in Vue; in React use value + onChange
479
599
 
480
600
  ---
481
601
 
@@ -671,6 +791,8 @@ import { AppLayout, Sidebar, SidebarHeader, SidebarContent, SidebarSection, Side
671
791
 
672
792
  // Props:
673
793
  // variant = "default" | "floating" (default: default)
794
+ // SidebarTrigger.icon = ReactNode
795
+ // SidebarTrigger.collapsedIcon = ReactNode
674
796
 
675
797
  // Examples:
676
798
  <AppLayout>
@@ -686,8 +808,18 @@ import { AppLayout, Sidebar, SidebarHeader, SidebarContent, SidebarSection, Side
686
808
  </Sidebar>
687
809
  <main>Page content</main>
688
810
  </AppLayout>
811
+ <SidebarTrigger icon={<PanelLeftClose />} collapsedIcon={<PanelLeftOpen />} />
812
+
813
+ // Vue:
814
+ // <SidebarTrigger>
815
+ // <template #icon><PanelLeftClose /></template>
816
+ // <template #collapsed-icon><PanelLeftOpen /></template>
817
+ // </SidebarTrigger>
689
818
  ```
690
819
 
820
+ **Common mistakes:**
821
+ - ❌ `Vue: passing icon/collapsedIcon as props on SidebarTrigger` → Use <template #icon> and <template #collapsed-icon>; React uses icon / collapsedIcon props
822
+
691
823
  ---
692
824
 
693
825
  ### Skeleton
@@ -1063,6 +1195,180 @@ import { TagGroup, Tag } from "@usevyre/react"
1063
1195
 
1064
1196
  ---
1065
1197
 
1198
+ ### Item
1199
+
1200
+ Layout primitive for list rows, settings rows, and notification rows. Denser than Card — use Item (not Card) for repeated list rows.
1201
+
1202
+ ```tsx
1203
+ import { Item, ItemMedia, ItemContent, ItemTitle, ItemDescription, ItemActions, ItemGroup } from "@usevyre/react"
1204
+
1205
+ // Props:
1206
+ // variant = "default" | "outlined" | "muted" | "plain" (default: default)
1207
+ // size = "sm" | "md" | "lg" (default: md)
1208
+ // clickable = boolean (default: false)
1209
+
1210
+ // Examples:
1211
+ <Item>
1212
+ <ItemMedia><BellIcon /></ItemMedia>
1213
+ <ItemContent>
1214
+ <ItemTitle>Notifications</ItemTitle>
1215
+ <ItemDescription>Receive an email when someone mentions you.</ItemDescription>
1216
+ </ItemContent>
1217
+ <ItemActions>
1218
+ <Switch defaultChecked />
1219
+ </ItemActions>
1220
+ </Item>
1221
+ <ItemGroup separated>
1222
+ <Item clickable>
1223
+ <ItemContent><ItemTitle>Profile</ItemTitle></ItemContent>
1224
+ </Item>
1225
+ <Item clickable>
1226
+ <ItemContent><ItemTitle>Billing</ItemTitle></ItemContent>
1227
+ </Item>
1228
+ </ItemGroup>
1229
+ ```
1230
+
1231
+ **Common mistakes:**
1232
+ - ❌ `Card used for repeated list rows` → Use <Item> (optionally inside <ItemGroup separated>) for list/settings rows
1233
+ - ❌ `Item variant="primary"` → Use variant="default" | "outlined" | "muted"
1234
+ - ❌ `raw text directly inside Item` → Wrap text in <ItemContent><ItemTitle>…</ItemTitle></ItemContent>
1235
+
1236
+ ---
1237
+
1238
+ ### Kanban
1239
+
1240
+ Drag-and-drop board: cards move between columns (or reorder within a column). CONTROLLED & data-driven like DataGrid. While dragging, a placeholder shows the exact drop position. Each card is wrapped in a Card (variant="outlined"); renderCard (React) / #card slot (Vue) can render ANY content incl. complex components (Avatar/Badge/Progress). Columns and cards accept an optional semantic color tint. Native HTML5 DnD, zero deps.
1241
+
1242
+ ```tsx
1243
+ import { Kanban } from "@usevyre/react"
1244
+
1245
+ // Props:
1246
+ // value = KanbanColumn[]
1247
+ // onChange = function
1248
+ // renderCard = function
1249
+ // onCardClick = function
1250
+
1251
+ // Examples:
1252
+ const [columns, setColumns] = useState([
1253
+ { id: "todo", title: "To Do", cards: [{ id: "1", title: "Spec API" }] },
1254
+ { id: "doing", title: "In Progress", cards: [] },
1255
+ { id: "done", title: "Done", cards: [{ id: "2", title: "Kickoff" }] },
1256
+ ]);
1257
+ <Kanban value={columns} onChange={setColumns} />
1258
+ <Kanban
1259
+ value={columns}
1260
+ onChange={setColumns}
1261
+ onCardClick={(card) => openDetail(card.id)}
1262
+ renderCard={(card) => (
1263
+ <><strong>{card.title}</strong><Badge>{card.id}</Badge></>
1264
+ )}
1265
+ />
1266
+ const [cols, setCols] = useState([
1267
+ { id: "doing", title: "In Progress", color: "teal", cards: [
1268
+ { id: "t1", title: "OAuth", assignee: "AK", progress: 60, color: "warning" },
1269
+ ]},
1270
+ ]);
1271
+ <Kanban
1272
+ value={cols}
1273
+ onChange={setCols}
1274
+ renderCard={(card) => (
1275
+ <><strong>{card.title}</strong><Progress value={card.progress} /></>
1276
+ )}
1277
+ />
1278
+ ```
1279
+
1280
+ **Common mistakes:**
1281
+ - ❌ `Kanban without onChange (or ignoring it)` → Store columns in state and setColumns in onChange (v-model in Vue)
1282
+ - ❌ `Duplicate card ids across columns` → Use globally-unique card ids across the entire board
1283
+ - ❌ `Mutating value in place then calling onChange` → Pass the new array Kanban gives you straight to setState / v-model
1284
+ - ❌ `color="blue" (or any non-semantic value)` → Use one of: "default" | "accent" | "teal" | "success" | "warning" | "danger"
1285
+
1286
+ ---
1287
+
1288
+ ### Conversation
1289
+
1290
+ Chat / inbox message thread. CONTROLLED & data-driven like Kanban — you own `value` (messages array) and append in your own send handler; Conversation holds no message state. Consecutive messages from the same author are grouped (avatar + name shown once), day separators are inserted on date change, and outgoing messages (authorId === currentUserId) align right.
1291
+
1292
+ ```tsx
1293
+ import { Conversation } from "@usevyre/react"
1294
+
1295
+ // Props:
1296
+ // value = ConversationMessage[]
1297
+ // currentUserId = string
1298
+ // composer = boolean (default: false)
1299
+ // onSend = function
1300
+ // placeholder = string (default: Write a message…)
1301
+ // typing = boolean | string (default: false)
1302
+ // allowAttachments = boolean (default: false)
1303
+ // accept = string
1304
+ // renderMessage = function
1305
+ // renderComposer = function
1306
+
1307
+ // Examples:
1308
+ const [messages, setMessages] = useState([
1309
+ { id: "1", authorId: "sam", authorName: "Sam", text: "Hey!" },
1310
+ { id: "2", authorId: "me", text: "Hi \ud83d\udc4b", status: "read" },
1311
+ ]);
1312
+ <Conversation
1313
+ value={messages}
1314
+ currentUserId="me"
1315
+ composer
1316
+ onSend={(t) => setMessages((m) => [...m, { id: crypto.randomUUID(), authorId: "me", text: t }])}
1317
+ />
1318
+ <Conversation
1319
+ value={messages}
1320
+ currentUserId="me"
1321
+ typing="Sam is typing"
1322
+ renderMessage={(m) => <strong>{m.text}</strong>}
1323
+ />
1324
+ const messages = [
1325
+ { id: "1", authorId: "sam", authorName: "Sam", text: "Moodboard \ud83d\udc47",
1326
+ attachments: [{ kind: "image", url: "/board.png", name: "board.png" }] },
1327
+ { id: "2", authorId: "me", text: "Specs:", status: "read",
1328
+ attachments: [{ kind: "file", url: "/spec.pdf", name: "spec.pdf", size: "2.4 MB" }] },
1329
+ ];
1330
+ <Conversation value={messages} currentUserId="me" />
1331
+ ```
1332
+
1333
+ **Common mistakes:**
1334
+ - ❌ `Conversation without currentUserId` → Always pass currentUserId matching one of the message authorId values
1335
+ - ❌ `Expecting Conversation to store/append messages` → Append to your own state in onSend (or @send) and pass it back via value
1336
+ - ❌ `composer without onSend (React) / @send (Vue)` → Provide onSend / @send to append the message to value
1337
+ - ❌ `Treating onSend as (text) only when using allowAttachments` → Handle onSend(text, files) — map files to message attachments and append
1338
+
1339
+ ---
1340
+
1341
+ ### DateRangePicker
1342
+
1343
+ Start/end date range picker. Built on Calendar (mode=range) with a friendlier { from, to } object API, a two-month side-by-side view, and preset shortcuts. Use this for report/filter date ranges; use DatePicker for a single date.
1344
+
1345
+ ```tsx
1346
+ import { DateRangePicker } from "@usevyre/react"
1347
+
1348
+ // Props:
1349
+ // value = { from: Date | null; to: Date | null } | null
1350
+ // onChange = function
1351
+ // placeholder = string (default: Pick a date range)
1352
+ // numberOfMonths = "1" | "2" (default: 2)
1353
+ // presets = boolean | DateRangePreset[] (default: false)
1354
+ // minDate = Date
1355
+ // maxDate = Date
1356
+ // disabled = function
1357
+ // weekStartsOn = "0" | "1" (default: 1)
1358
+
1359
+ // Examples:
1360
+ const [range, setRange] = useState({ from: null, to: null });
1361
+ <DateRangePicker value={range} onChange={setRange} presets />
1362
+ <DateRangePicker value={range} onChange={setRange} numberOfMonths={1} />
1363
+ ```
1364
+
1365
+ **Common mistakes:**
1366
+ - ❌ `value={[from, to]}` → Use value={{ from, to }} and read range.from / range.to
1367
+ - ❌ `DateRangePicker for a single date` → Use <DatePicker /> for a single date
1368
+ - ❌ `presets="true" (string)` → Use the bare prop: presets (or presets={true})
1369
+
1370
+ ---
1371
+
1066
1372
  ## Hallucination Guard — Common AI Mistakes
1067
1373
 
1068
1374
  The following prop values and patterns do NOT exist in useVyre.
@@ -1082,18 +1388,30 @@ If you generate these, you are hallucinating.
1082
1388
  - ❌ `<Button color="...">` → Use variant prop instead
1083
1389
  - ❌ `<Button icon={...}>` → Use leftIcon={...} or rightIcon={...}
1084
1390
  - ❌ `<Button size="icon" without aria-label>` → Add aria-label describing the action
1085
- - ❌ `<Calendar Using Calendar for time selection>` Combine with a separate time Input if time selection is needed
1391
+ - ❌ `<Calendar Calendar for an input field that opens a popover>` Use <DatePicker /> (single date) or <DateRangePicker /> (range)
1392
+ - ❌ `<Calendar value as tuple for mode="single">` → Pass value matching mode; use mode="range" for [start,end]
1393
+ - ❌ `<DatePicker DatePicker mode="range" for { from, to } object>` → Use <DateRangePicker /> for the { from, to } object API + presets + dual month
1394
+ - ❌ `<DatePicker DatePicker without value/onChange>` → Provide value and onChange (e.g. from useState)
1086
1395
  - ❌ `<Card variant="primary">` → Use variant="elevated" | "outlined" | "ghost" | "accent"
1087
1396
  - ❌ `<Checkbox size="lg">` → Use size="md"
1397
+ - ❌ `<RadioGroup <Radio> used outside a <RadioGroup>>` → Always wrap <Radio> in <RadioGroup>
1398
+ - ❌ `<RadioGroup RadioGroup without value/onChange (React) or v-model (Vue)>` → Bind value + onChange (React) or v-model (Vue); or defaultValue for uncontrolled in React
1399
+ - ❌ `<RadioGroup Using Checkbox for mutually-exclusive choices>` → Use RadioGroup + Radio (or options) for one-of-many
1400
+ - ❌ `<RichTextEditor RichTextEditor without value/onChange (React) or v-model (Vue)>` → Keep the HTML string in state and update it in onChange / v-model
1401
+ - ❌ `<RichTextEditor Rendering value as text or with dangerouslySetInnerHTML elsewhere without sanitising>` → Sanitise (e.g. DOMPurify) before re-rendering untrusted RTE output
1402
+ - ❌ `<RichTextEditor toolbar="bold" (string)>` → Pass an array, e.g. toolbar={["bold","italic","link"]}
1088
1403
  - ❌ `<Command Using Input type="search" for search UI>` → Use Command + CommandInput + CommandList + CommandItem
1089
1404
  - ❌ `<DropdownMenu DropdownItem variant="primary">` → Use variant="danger" for destructive items only
1090
1405
  - ❌ `<Field Applying state prop directly to Input>` → Wrap Input in <Field state="error"> to apply validation styling
1406
+ - ❌ `<Field Mixing props label/hint AND FieldLabel/FieldError for the same field>` → Pick one: either props-based (label/hint/state) OR composable parts
1091
1407
  - ❌ `<Input size="icon">` → Use size="sm" | "md" | "lg"
1092
1408
  - ❌ `<Input type="search" for search UI>` → Import Command from @usevyre/react for search palettes
1409
+ - ❌ `<Input Vue: binding Input/Textarea value without v-model>` → Use v-model on <Input>/<Textarea> in Vue; in React use value + onChange
1093
1410
  - ❌ `<Modal size="xl">` → Use size="lg" or size="full"
1094
1411
  - ❌ `<Popover placement="top-center">` → Use placement="top" for centered placement
1095
1412
  - ❌ `<Progress value > 100>` → Normalize your value to 0–100 range before passing
1096
1413
  - ❌ `<Select Passing strings directly as children>` → Pass options={[{ value: 'a', label: 'Option A' }]}
1414
+ - ❌ `<Sidebar Vue: passing icon/collapsedIcon as props on SidebarTrigger>` → Use <template #icon> and <template #collapsed-icon>; React uses icon / collapsedIcon props
1097
1415
  - ❌ `<Toast Rendering <Toast> directly in JSX>` → Use: const { toast } = useToast(); then toast({ title, variant })
1098
1416
  - ❌ `<Toast variant="error">` → Use variant="danger"
1099
1417
  - ❌ `<Toast variant="info">` → Use variant="default"
@@ -1114,6 +1432,20 @@ If you generate these, you are hallucinating.
1114
1432
  - ❌ `<Tag Tag size="xl">` → Use size="lg"
1115
1433
  - ❌ `<TagGroup TagGroup without Tag children>` → Place <Tag> elements as direct children
1116
1434
  - ❌ `<TagGroup Using TagGroup for tag input>` → Use TagsInput for an editable tag field
1435
+ - ❌ `<Item Card used for repeated list rows>` → Use <Item> (optionally inside <ItemGroup separated>) for list/settings rows
1436
+ - ❌ `<Item Item variant="primary">` → Use variant="default" | "outlined" | "muted"
1437
+ - ❌ `<Item raw text directly inside Item>` → Wrap text in <ItemContent><ItemTitle>…</ItemTitle></ItemContent>
1438
+ - ❌ `<Kanban Kanban without onChange (or ignoring it)>` → Store columns in state and setColumns in onChange (v-model in Vue)
1439
+ - ❌ `<Kanban Duplicate card ids across columns>` → Use globally-unique card ids across the entire board
1440
+ - ❌ `<Kanban Mutating value in place then calling onChange>` → Pass the new array Kanban gives you straight to setState / v-model
1441
+ - ❌ `<Kanban color="blue" (or any non-semantic value)>` → Use one of: "default" | "accent" | "teal" | "success" | "warning" | "danger"
1442
+ - ❌ `<Conversation Conversation without currentUserId>` → Always pass currentUserId matching one of the message authorId values
1443
+ - ❌ `<Conversation Expecting Conversation to store/append messages>` → Append to your own state in onSend (or @send) and pass it back via value
1444
+ - ❌ `<Conversation composer without onSend (React) / @send (Vue)>` → Provide onSend / @send to append the message to value
1445
+ - ❌ `<Conversation Treating onSend as (text) only when using allowAttachments>` → Handle onSend(text, files) — map files to message attachments and append
1446
+ - ❌ `<DateRangePicker value={[from, to]}>` → Use value={{ from, to }} and read range.from / range.to
1447
+ - ❌ `<DateRangePicker DateRangePicker for a single date>` → Use <DatePicker /> for a single date
1448
+ - ❌ `<DateRangePicker presets="true" (string)>` → Use the bare prop: presets (or presets={true})
1117
1449
 
1118
1450
  ---
1119
1451