@refineui/react 0.4.0 → 0.4.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.
Files changed (62) hide show
  1. package/dist/authoring-manifest.cjs +534 -3
  2. package/dist/authoring-manifest.cjs.map +1 -1
  3. package/dist/authoring-manifest.js +534 -3
  4. package/dist/authoring-manifest.js.map +1 -1
  5. package/dist/index.cjs +10694 -9944
  6. package/dist/index.cjs.map +1 -1
  7. package/dist/index.d.cts +115 -2
  8. package/dist/index.d.ts +115 -2
  9. package/dist/index.js +6159 -5424
  10. package/dist/index.js.map +1 -1
  11. package/dist/spec/authoring/components/calendar.json +14 -1
  12. package/dist/spec/authoring/components/code-block-actions.json +28 -0
  13. package/dist/spec/authoring/components/code-block-content.json +45 -0
  14. package/dist/spec/authoring/components/code-block-copy-button.json +28 -0
  15. package/dist/spec/authoring/components/code-block-header.json +28 -0
  16. package/dist/spec/authoring/components/code-block-line.json +31 -0
  17. package/dist/spec/authoring/components/code-block-title.json +18 -0
  18. package/dist/spec/authoring/components/code-block.json +90 -0
  19. package/dist/spec/authoring/components/date-input.json +61 -0
  20. package/dist/spec/authoring/components/popover-content.json +18 -1
  21. package/dist/spec/authoring/components/result-actions.json +18 -0
  22. package/dist/spec/authoring/components/result-button.json +18 -0
  23. package/dist/spec/authoring/components/result-description.json +18 -0
  24. package/dist/spec/authoring/components/result-icon.json +18 -0
  25. package/dist/spec/authoring/components/result-title.json +18 -0
  26. package/dist/spec/authoring/components/result.json +44 -0
  27. package/dist/spec/authoring/components/time-input.json +38 -0
  28. package/dist/spec/authoring/manifest.json +534 -3
  29. package/dist/spec/components/calendar.json +9 -0
  30. package/dist/spec/components/code-block.json +18 -0
  31. package/dist/spec/components/date-input.json +71 -0
  32. package/dist/spec/components/result.json +1 -0
  33. package/dist/spec/components/time-input.json +24 -0
  34. package/dist/spec/contract-index.json +25 -1
  35. package/dist/spec/manifest.json +24 -0
  36. package/dist/spec/token-trace-v2.json +1 -1
  37. package/package.json +2 -2
  38. package/refineui.css +120 -12
  39. package/spec/authoring/components/calendar.json +14 -1
  40. package/spec/authoring/components/code-block-actions.json +28 -0
  41. package/spec/authoring/components/code-block-content.json +45 -0
  42. package/spec/authoring/components/code-block-copy-button.json +28 -0
  43. package/spec/authoring/components/code-block-header.json +28 -0
  44. package/spec/authoring/components/code-block-line.json +31 -0
  45. package/spec/authoring/components/code-block-title.json +18 -0
  46. package/spec/authoring/components/code-block.json +90 -0
  47. package/spec/authoring/components/date-input.json +61 -0
  48. package/spec/authoring/components/popover-content.json +18 -1
  49. package/spec/authoring/components/result-actions.json +18 -0
  50. package/spec/authoring/components/result-button.json +18 -0
  51. package/spec/authoring/components/result-description.json +18 -0
  52. package/spec/authoring/components/result-icon.json +18 -0
  53. package/spec/authoring/components/result-title.json +18 -0
  54. package/spec/authoring/components/result.json +44 -0
  55. package/spec/authoring/components/time-input.json +38 -0
  56. package/spec/authoring/manifest.json +534 -3
  57. package/spec/components/calendar.json +9 -0
  58. package/spec/components/code-block.json +18 -0
  59. package/spec/components/date-input.json +71 -0
  60. package/spec/components/result.json +1 -0
  61. package/spec/components/time-input.json +24 -0
  62. package/spec/manifest.json +24 -0
@@ -30,7 +30,7 @@ var import_react = require("react");
30
30
  var manifest_default = {
31
31
  schema: "refineui.authoring/1",
32
32
  packageName: "@refineui/react",
33
- packageVersion: "0.4.0",
33
+ packageVersion: "0.4.1",
34
34
  css: [
35
35
  "@refineui/react/refineui.css"
36
36
  ],
@@ -223,6 +223,373 @@ var manifest_default = {
223
223
  }
224
224
  ]
225
225
  },
226
+ {
227
+ id: "date-input",
228
+ exportPath: "@refineui/react",
229
+ exportName: "DateInput",
230
+ kind: "root",
231
+ category: "components",
232
+ label: "Date Input",
233
+ props: [
234
+ {
235
+ name: "mode",
236
+ label: "mode",
237
+ valueType: "enum",
238
+ control: "segmented",
239
+ options: [
240
+ "single",
241
+ "range"
242
+ ],
243
+ defaultValue: "single",
244
+ section: "variants"
245
+ }
246
+ ],
247
+ preview: {
248
+ mode: "full"
249
+ },
250
+ slots: [
251
+ {
252
+ name: "children",
253
+ accepts: [],
254
+ repeatable: true,
255
+ allowText: true,
256
+ allowAnyComponent: true,
257
+ defaultChildren: []
258
+ }
259
+ ],
260
+ presets: [
261
+ {
262
+ id: "default",
263
+ label: "Default",
264
+ root: {
265
+ component: "DateInput",
266
+ slots: {
267
+ children: [
268
+ {
269
+ component: "Text",
270
+ props: {
271
+ variant: "bodyMd"
272
+ },
273
+ text: "Date Input"
274
+ }
275
+ ]
276
+ }
277
+ }
278
+ }
279
+ ],
280
+ events: [
281
+ {
282
+ name: "click",
283
+ payload: "void"
284
+ }
285
+ ]
286
+ },
287
+ {
288
+ id: "time-input",
289
+ exportPath: "@refineui/react",
290
+ exportName: "TimeInput",
291
+ kind: "root",
292
+ category: "utilities",
293
+ label: "Time Input",
294
+ props: [],
295
+ preview: {
296
+ mode: "full"
297
+ },
298
+ slots: [
299
+ {
300
+ name: "children",
301
+ accepts: [],
302
+ repeatable: true,
303
+ allowText: false,
304
+ allowAnyComponent: true,
305
+ defaultChildren: []
306
+ }
307
+ ],
308
+ presets: [
309
+ {
310
+ id: "default",
311
+ label: "Default",
312
+ root: {
313
+ component: "TimeInput",
314
+ slots: {}
315
+ }
316
+ }
317
+ ],
318
+ events: [
319
+ {
320
+ name: "click",
321
+ payload: "void"
322
+ }
323
+ ]
324
+ },
325
+ {
326
+ id: "code-block",
327
+ exportPath: "@refineui/react",
328
+ exportName: "CodeBlock",
329
+ kind: "root",
330
+ category: "components",
331
+ label: "Code Block",
332
+ props: [],
333
+ preview: {
334
+ mode: "full"
335
+ },
336
+ slots: [
337
+ {
338
+ name: "children",
339
+ accepts: [
340
+ "CodeBlockHeader",
341
+ "CodeBlockContent"
342
+ ],
343
+ repeatable: true
344
+ }
345
+ ],
346
+ presets: [
347
+ {
348
+ id: "typescript",
349
+ label: "TypeScript",
350
+ root: {
351
+ component: "CodeBlock",
352
+ slots: {
353
+ children: [
354
+ {
355
+ component: "CodeBlockHeader",
356
+ slots: {
357
+ children: [
358
+ {
359
+ component: "CodeBlockTitle",
360
+ text: "app/api/chat/route.ts"
361
+ },
362
+ {
363
+ component: "CodeBlockActions",
364
+ slots: {
365
+ children: [
366
+ {
367
+ component: "CodeBlockCopyButton",
368
+ props: {
369
+ value: "export async function POST() {\n return Response.json({ ok: true });\n}"
370
+ }
371
+ }
372
+ ]
373
+ }
374
+ }
375
+ ]
376
+ }
377
+ },
378
+ {
379
+ component: "CodeBlockContent",
380
+ props: {
381
+ lineNumbers: true
382
+ },
383
+ slots: {
384
+ children: [
385
+ {
386
+ component: "CodeBlockLine",
387
+ text: "export async function POST() {"
388
+ },
389
+ {
390
+ component: "CodeBlockLine",
391
+ props: {
392
+ variant: "highlighted"
393
+ },
394
+ text: " return Response.json({ ok: true });"
395
+ },
396
+ {
397
+ component: "CodeBlockLine",
398
+ text: "}"
399
+ }
400
+ ]
401
+ }
402
+ }
403
+ ]
404
+ }
405
+ }
406
+ }
407
+ ],
408
+ events: [
409
+ {
410
+ name: "click",
411
+ payload: "void"
412
+ }
413
+ ]
414
+ },
415
+ {
416
+ id: "code-block-actions",
417
+ exportPath: "@refineui/react",
418
+ exportName: "CodeBlockActions",
419
+ kind: "part",
420
+ category: "parts",
421
+ label: "Code Block Actions",
422
+ props: [],
423
+ preview: {
424
+ mode: "full"
425
+ },
426
+ parents: [
427
+ {
428
+ component: "CodeBlockHeader",
429
+ slot: "children"
430
+ }
431
+ ],
432
+ slots: [
433
+ {
434
+ name: "children",
435
+ accepts: [
436
+ "CodeBlockCopyButton",
437
+ "Button"
438
+ ],
439
+ repeatable: true
440
+ }
441
+ ]
442
+ },
443
+ {
444
+ id: "code-block-content",
445
+ exportPath: "@refineui/react",
446
+ exportName: "CodeBlockContent",
447
+ kind: "part",
448
+ category: "parts",
449
+ label: "Code Block Content",
450
+ props: [
451
+ {
452
+ name: "wrap",
453
+ valueType: "boolean",
454
+ control: "toggle",
455
+ defaultValue: false,
456
+ section: "properties",
457
+ label: "wrap"
458
+ },
459
+ {
460
+ name: "lineNumbers",
461
+ valueType: "boolean",
462
+ control: "toggle",
463
+ defaultValue: false,
464
+ section: "properties",
465
+ label: "line Numbers"
466
+ }
467
+ ],
468
+ preview: {
469
+ mode: "full"
470
+ },
471
+ parents: [
472
+ {
473
+ component: "CodeBlock",
474
+ slot: "children"
475
+ }
476
+ ],
477
+ slots: [
478
+ {
479
+ name: "children",
480
+ accepts: [
481
+ "CodeBlockLine"
482
+ ],
483
+ repeatable: true,
484
+ min: 1
485
+ }
486
+ ]
487
+ },
488
+ {
489
+ id: "code-block-copy-button",
490
+ exportPath: "@refineui/react",
491
+ exportName: "CodeBlockCopyButton",
492
+ kind: "part",
493
+ category: "parts",
494
+ label: "Code Block Copy Button",
495
+ props: [
496
+ {
497
+ name: "value",
498
+ label: "value",
499
+ valueType: "string",
500
+ control: "textarea",
501
+ defaultValue: "",
502
+ required: true,
503
+ section: "properties"
504
+ }
505
+ ],
506
+ preview: {
507
+ mode: "full"
508
+ },
509
+ parents: [
510
+ {
511
+ component: "CodeBlockActions",
512
+ slot: "children"
513
+ }
514
+ ]
515
+ },
516
+ {
517
+ id: "code-block-header",
518
+ exportPath: "@refineui/react",
519
+ exportName: "CodeBlockHeader",
520
+ kind: "part",
521
+ category: "parts",
522
+ label: "Code Block Header",
523
+ props: [],
524
+ preview: {
525
+ mode: "full"
526
+ },
527
+ parents: [
528
+ {
529
+ component: "CodeBlock",
530
+ slot: "children"
531
+ }
532
+ ],
533
+ slots: [
534
+ {
535
+ name: "children",
536
+ accepts: [
537
+ "CodeBlockTitle",
538
+ "CodeBlockActions"
539
+ ],
540
+ repeatable: true
541
+ }
542
+ ]
543
+ },
544
+ {
545
+ id: "code-block-line",
546
+ exportPath: "@refineui/react",
547
+ exportName: "CodeBlockLine",
548
+ kind: "part",
549
+ category: "parts",
550
+ label: "Code Block Line",
551
+ props: [
552
+ {
553
+ name: "variant",
554
+ valueType: "enum",
555
+ control: "segmented",
556
+ options: [
557
+ "default",
558
+ "highlighted"
559
+ ],
560
+ defaultValue: "default",
561
+ section: "variants",
562
+ label: "variant"
563
+ }
564
+ ],
565
+ preview: {
566
+ mode: "full"
567
+ },
568
+ parents: [
569
+ {
570
+ component: "CodeBlockContent",
571
+ slot: "children"
572
+ }
573
+ ]
574
+ },
575
+ {
576
+ id: "code-block-title",
577
+ exportPath: "@refineui/react",
578
+ exportName: "CodeBlockTitle",
579
+ kind: "part",
580
+ category: "parts",
581
+ label: "Code Block Title",
582
+ props: [],
583
+ preview: {
584
+ mode: "full"
585
+ },
586
+ parents: [
587
+ {
588
+ component: "CodeBlockHeader",
589
+ slot: "children"
590
+ }
591
+ ]
592
+ },
226
593
  {
227
594
  id: "input-otp",
228
595
  exportPath: "@refineui/react",
@@ -2187,6 +2554,140 @@ var manifest_default = {
2187
2554
  }
2188
2555
  ]
2189
2556
  },
2557
+ {
2558
+ id: "result",
2559
+ exportPath: "@refineui/react",
2560
+ exportName: "Result",
2561
+ kind: "root",
2562
+ category: "utilities",
2563
+ label: "Result",
2564
+ props: [],
2565
+ preview: {
2566
+ mode: "full"
2567
+ },
2568
+ slots: [
2569
+ {
2570
+ name: "children",
2571
+ accepts: [
2572
+ "ResultActions",
2573
+ "ResultButton",
2574
+ "ResultDescription",
2575
+ "ResultIcon",
2576
+ "ResultTitle"
2577
+ ],
2578
+ repeatable: true,
2579
+ allowText: false,
2580
+ allowAnyComponent: false,
2581
+ defaultChildren: []
2582
+ }
2583
+ ],
2584
+ presets: [
2585
+ {
2586
+ id: "default",
2587
+ label: "Default",
2588
+ root: {
2589
+ component: "Result",
2590
+ slots: {}
2591
+ }
2592
+ }
2593
+ ],
2594
+ events: [
2595
+ {
2596
+ name: "click",
2597
+ payload: "void"
2598
+ }
2599
+ ]
2600
+ },
2601
+ {
2602
+ id: "result-actions",
2603
+ exportPath: "@refineui/react",
2604
+ exportName: "ResultActions",
2605
+ kind: "part",
2606
+ category: "parts",
2607
+ label: "Result Actions",
2608
+ props: [],
2609
+ preview: {
2610
+ mode: "full"
2611
+ },
2612
+ parents: [
2613
+ {
2614
+ component: "Result",
2615
+ slot: "children"
2616
+ }
2617
+ ]
2618
+ },
2619
+ {
2620
+ id: "result-button",
2621
+ exportPath: "@refineui/react",
2622
+ exportName: "ResultButton",
2623
+ kind: "part",
2624
+ category: "parts",
2625
+ label: "Result Button",
2626
+ props: [],
2627
+ preview: {
2628
+ mode: "full"
2629
+ },
2630
+ parents: [
2631
+ {
2632
+ component: "Result",
2633
+ slot: "children"
2634
+ }
2635
+ ]
2636
+ },
2637
+ {
2638
+ id: "result-description",
2639
+ exportPath: "@refineui/react",
2640
+ exportName: "ResultDescription",
2641
+ kind: "part",
2642
+ category: "parts",
2643
+ label: "Result Description",
2644
+ props: [],
2645
+ preview: {
2646
+ mode: "full"
2647
+ },
2648
+ parents: [
2649
+ {
2650
+ component: "Result",
2651
+ slot: "children"
2652
+ }
2653
+ ]
2654
+ },
2655
+ {
2656
+ id: "result-icon",
2657
+ exportPath: "@refineui/react",
2658
+ exportName: "ResultIcon",
2659
+ kind: "part",
2660
+ category: "parts",
2661
+ label: "Result Icon",
2662
+ props: [],
2663
+ preview: {
2664
+ mode: "full"
2665
+ },
2666
+ parents: [
2667
+ {
2668
+ component: "Result",
2669
+ slot: "children"
2670
+ }
2671
+ ]
2672
+ },
2673
+ {
2674
+ id: "result-title",
2675
+ exportPath: "@refineui/react",
2676
+ exportName: "ResultTitle",
2677
+ kind: "part",
2678
+ category: "parts",
2679
+ label: "Result Title",
2680
+ props: [],
2681
+ preview: {
2682
+ mode: "full"
2683
+ },
2684
+ parents: [
2685
+ {
2686
+ component: "Result",
2687
+ slot: "children"
2688
+ }
2689
+ ]
2690
+ },
2190
2691
  {
2191
2692
  id: "kbd",
2192
2693
  exportPath: "@refineui/react",
@@ -4773,7 +5274,20 @@ var manifest_default = {
4773
5274
  kind: "root",
4774
5275
  category: "components",
4775
5276
  label: "Calendar",
4776
- props: [],
5277
+ props: [
5278
+ {
5279
+ name: "mode",
5280
+ label: "mode",
5281
+ valueType: "enum",
5282
+ control: "segmented",
5283
+ options: [
5284
+ "single",
5285
+ "range"
5286
+ ],
5287
+ defaultValue: "single",
5288
+ section: "variants"
5289
+ }
5290
+ ],
4777
5291
  preview: {
4778
5292
  mode: "full"
4779
5293
  },
@@ -7544,7 +8058,24 @@ var manifest_default = {
7544
8058
  kind: "part",
7545
8059
  category: "parts",
7546
8060
  label: "Popover Content",
7547
- props: [],
8061
+ props: [
8062
+ {
8063
+ name: "surface",
8064
+ valueType: "boolean",
8065
+ control: "toggle",
8066
+ defaultValue: true,
8067
+ section: "properties",
8068
+ label: "surface"
8069
+ },
8070
+ {
8071
+ name: "fitContent",
8072
+ valueType: "boolean",
8073
+ control: "toggle",
8074
+ defaultValue: false,
8075
+ section: "properties",
8076
+ label: "fit Content"
8077
+ }
8078
+ ],
7548
8079
  preview: {
7549
8080
  mode: "full"
7550
8081
  },