@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
@@ -5,7 +5,7 @@ import { createElement } from "react";
5
5
  var manifest_default = {
6
6
  schema: "refineui.authoring/1",
7
7
  packageName: "@refineui/react",
8
- packageVersion: "0.4.0",
8
+ packageVersion: "0.4.1",
9
9
  css: [
10
10
  "@refineui/react/refineui.css"
11
11
  ],
@@ -198,6 +198,373 @@ var manifest_default = {
198
198
  }
199
199
  ]
200
200
  },
201
+ {
202
+ id: "date-input",
203
+ exportPath: "@refineui/react",
204
+ exportName: "DateInput",
205
+ kind: "root",
206
+ category: "components",
207
+ label: "Date Input",
208
+ props: [
209
+ {
210
+ name: "mode",
211
+ label: "mode",
212
+ valueType: "enum",
213
+ control: "segmented",
214
+ options: [
215
+ "single",
216
+ "range"
217
+ ],
218
+ defaultValue: "single",
219
+ section: "variants"
220
+ }
221
+ ],
222
+ preview: {
223
+ mode: "full"
224
+ },
225
+ slots: [
226
+ {
227
+ name: "children",
228
+ accepts: [],
229
+ repeatable: true,
230
+ allowText: true,
231
+ allowAnyComponent: true,
232
+ defaultChildren: []
233
+ }
234
+ ],
235
+ presets: [
236
+ {
237
+ id: "default",
238
+ label: "Default",
239
+ root: {
240
+ component: "DateInput",
241
+ slots: {
242
+ children: [
243
+ {
244
+ component: "Text",
245
+ props: {
246
+ variant: "bodyMd"
247
+ },
248
+ text: "Date Input"
249
+ }
250
+ ]
251
+ }
252
+ }
253
+ }
254
+ ],
255
+ events: [
256
+ {
257
+ name: "click",
258
+ payload: "void"
259
+ }
260
+ ]
261
+ },
262
+ {
263
+ id: "time-input",
264
+ exportPath: "@refineui/react",
265
+ exportName: "TimeInput",
266
+ kind: "root",
267
+ category: "utilities",
268
+ label: "Time Input",
269
+ props: [],
270
+ preview: {
271
+ mode: "full"
272
+ },
273
+ slots: [
274
+ {
275
+ name: "children",
276
+ accepts: [],
277
+ repeatable: true,
278
+ allowText: false,
279
+ allowAnyComponent: true,
280
+ defaultChildren: []
281
+ }
282
+ ],
283
+ presets: [
284
+ {
285
+ id: "default",
286
+ label: "Default",
287
+ root: {
288
+ component: "TimeInput",
289
+ slots: {}
290
+ }
291
+ }
292
+ ],
293
+ events: [
294
+ {
295
+ name: "click",
296
+ payload: "void"
297
+ }
298
+ ]
299
+ },
300
+ {
301
+ id: "code-block",
302
+ exportPath: "@refineui/react",
303
+ exportName: "CodeBlock",
304
+ kind: "root",
305
+ category: "components",
306
+ label: "Code Block",
307
+ props: [],
308
+ preview: {
309
+ mode: "full"
310
+ },
311
+ slots: [
312
+ {
313
+ name: "children",
314
+ accepts: [
315
+ "CodeBlockHeader",
316
+ "CodeBlockContent"
317
+ ],
318
+ repeatable: true
319
+ }
320
+ ],
321
+ presets: [
322
+ {
323
+ id: "typescript",
324
+ label: "TypeScript",
325
+ root: {
326
+ component: "CodeBlock",
327
+ slots: {
328
+ children: [
329
+ {
330
+ component: "CodeBlockHeader",
331
+ slots: {
332
+ children: [
333
+ {
334
+ component: "CodeBlockTitle",
335
+ text: "app/api/chat/route.ts"
336
+ },
337
+ {
338
+ component: "CodeBlockActions",
339
+ slots: {
340
+ children: [
341
+ {
342
+ component: "CodeBlockCopyButton",
343
+ props: {
344
+ value: "export async function POST() {\n return Response.json({ ok: true });\n}"
345
+ }
346
+ }
347
+ ]
348
+ }
349
+ }
350
+ ]
351
+ }
352
+ },
353
+ {
354
+ component: "CodeBlockContent",
355
+ props: {
356
+ lineNumbers: true
357
+ },
358
+ slots: {
359
+ children: [
360
+ {
361
+ component: "CodeBlockLine",
362
+ text: "export async function POST() {"
363
+ },
364
+ {
365
+ component: "CodeBlockLine",
366
+ props: {
367
+ variant: "highlighted"
368
+ },
369
+ text: " return Response.json({ ok: true });"
370
+ },
371
+ {
372
+ component: "CodeBlockLine",
373
+ text: "}"
374
+ }
375
+ ]
376
+ }
377
+ }
378
+ ]
379
+ }
380
+ }
381
+ }
382
+ ],
383
+ events: [
384
+ {
385
+ name: "click",
386
+ payload: "void"
387
+ }
388
+ ]
389
+ },
390
+ {
391
+ id: "code-block-actions",
392
+ exportPath: "@refineui/react",
393
+ exportName: "CodeBlockActions",
394
+ kind: "part",
395
+ category: "parts",
396
+ label: "Code Block Actions",
397
+ props: [],
398
+ preview: {
399
+ mode: "full"
400
+ },
401
+ parents: [
402
+ {
403
+ component: "CodeBlockHeader",
404
+ slot: "children"
405
+ }
406
+ ],
407
+ slots: [
408
+ {
409
+ name: "children",
410
+ accepts: [
411
+ "CodeBlockCopyButton",
412
+ "Button"
413
+ ],
414
+ repeatable: true
415
+ }
416
+ ]
417
+ },
418
+ {
419
+ id: "code-block-content",
420
+ exportPath: "@refineui/react",
421
+ exportName: "CodeBlockContent",
422
+ kind: "part",
423
+ category: "parts",
424
+ label: "Code Block Content",
425
+ props: [
426
+ {
427
+ name: "wrap",
428
+ valueType: "boolean",
429
+ control: "toggle",
430
+ defaultValue: false,
431
+ section: "properties",
432
+ label: "wrap"
433
+ },
434
+ {
435
+ name: "lineNumbers",
436
+ valueType: "boolean",
437
+ control: "toggle",
438
+ defaultValue: false,
439
+ section: "properties",
440
+ label: "line Numbers"
441
+ }
442
+ ],
443
+ preview: {
444
+ mode: "full"
445
+ },
446
+ parents: [
447
+ {
448
+ component: "CodeBlock",
449
+ slot: "children"
450
+ }
451
+ ],
452
+ slots: [
453
+ {
454
+ name: "children",
455
+ accepts: [
456
+ "CodeBlockLine"
457
+ ],
458
+ repeatable: true,
459
+ min: 1
460
+ }
461
+ ]
462
+ },
463
+ {
464
+ id: "code-block-copy-button",
465
+ exportPath: "@refineui/react",
466
+ exportName: "CodeBlockCopyButton",
467
+ kind: "part",
468
+ category: "parts",
469
+ label: "Code Block Copy Button",
470
+ props: [
471
+ {
472
+ name: "value",
473
+ label: "value",
474
+ valueType: "string",
475
+ control: "textarea",
476
+ defaultValue: "",
477
+ required: true,
478
+ section: "properties"
479
+ }
480
+ ],
481
+ preview: {
482
+ mode: "full"
483
+ },
484
+ parents: [
485
+ {
486
+ component: "CodeBlockActions",
487
+ slot: "children"
488
+ }
489
+ ]
490
+ },
491
+ {
492
+ id: "code-block-header",
493
+ exportPath: "@refineui/react",
494
+ exportName: "CodeBlockHeader",
495
+ kind: "part",
496
+ category: "parts",
497
+ label: "Code Block Header",
498
+ props: [],
499
+ preview: {
500
+ mode: "full"
501
+ },
502
+ parents: [
503
+ {
504
+ component: "CodeBlock",
505
+ slot: "children"
506
+ }
507
+ ],
508
+ slots: [
509
+ {
510
+ name: "children",
511
+ accepts: [
512
+ "CodeBlockTitle",
513
+ "CodeBlockActions"
514
+ ],
515
+ repeatable: true
516
+ }
517
+ ]
518
+ },
519
+ {
520
+ id: "code-block-line",
521
+ exportPath: "@refineui/react",
522
+ exportName: "CodeBlockLine",
523
+ kind: "part",
524
+ category: "parts",
525
+ label: "Code Block Line",
526
+ props: [
527
+ {
528
+ name: "variant",
529
+ valueType: "enum",
530
+ control: "segmented",
531
+ options: [
532
+ "default",
533
+ "highlighted"
534
+ ],
535
+ defaultValue: "default",
536
+ section: "variants",
537
+ label: "variant"
538
+ }
539
+ ],
540
+ preview: {
541
+ mode: "full"
542
+ },
543
+ parents: [
544
+ {
545
+ component: "CodeBlockContent",
546
+ slot: "children"
547
+ }
548
+ ]
549
+ },
550
+ {
551
+ id: "code-block-title",
552
+ exportPath: "@refineui/react",
553
+ exportName: "CodeBlockTitle",
554
+ kind: "part",
555
+ category: "parts",
556
+ label: "Code Block Title",
557
+ props: [],
558
+ preview: {
559
+ mode: "full"
560
+ },
561
+ parents: [
562
+ {
563
+ component: "CodeBlockHeader",
564
+ slot: "children"
565
+ }
566
+ ]
567
+ },
201
568
  {
202
569
  id: "input-otp",
203
570
  exportPath: "@refineui/react",
@@ -2162,6 +2529,140 @@ var manifest_default = {
2162
2529
  }
2163
2530
  ]
2164
2531
  },
2532
+ {
2533
+ id: "result",
2534
+ exportPath: "@refineui/react",
2535
+ exportName: "Result",
2536
+ kind: "root",
2537
+ category: "utilities",
2538
+ label: "Result",
2539
+ props: [],
2540
+ preview: {
2541
+ mode: "full"
2542
+ },
2543
+ slots: [
2544
+ {
2545
+ name: "children",
2546
+ accepts: [
2547
+ "ResultActions",
2548
+ "ResultButton",
2549
+ "ResultDescription",
2550
+ "ResultIcon",
2551
+ "ResultTitle"
2552
+ ],
2553
+ repeatable: true,
2554
+ allowText: false,
2555
+ allowAnyComponent: false,
2556
+ defaultChildren: []
2557
+ }
2558
+ ],
2559
+ presets: [
2560
+ {
2561
+ id: "default",
2562
+ label: "Default",
2563
+ root: {
2564
+ component: "Result",
2565
+ slots: {}
2566
+ }
2567
+ }
2568
+ ],
2569
+ events: [
2570
+ {
2571
+ name: "click",
2572
+ payload: "void"
2573
+ }
2574
+ ]
2575
+ },
2576
+ {
2577
+ id: "result-actions",
2578
+ exportPath: "@refineui/react",
2579
+ exportName: "ResultActions",
2580
+ kind: "part",
2581
+ category: "parts",
2582
+ label: "Result Actions",
2583
+ props: [],
2584
+ preview: {
2585
+ mode: "full"
2586
+ },
2587
+ parents: [
2588
+ {
2589
+ component: "Result",
2590
+ slot: "children"
2591
+ }
2592
+ ]
2593
+ },
2594
+ {
2595
+ id: "result-button",
2596
+ exportPath: "@refineui/react",
2597
+ exportName: "ResultButton",
2598
+ kind: "part",
2599
+ category: "parts",
2600
+ label: "Result Button",
2601
+ props: [],
2602
+ preview: {
2603
+ mode: "full"
2604
+ },
2605
+ parents: [
2606
+ {
2607
+ component: "Result",
2608
+ slot: "children"
2609
+ }
2610
+ ]
2611
+ },
2612
+ {
2613
+ id: "result-description",
2614
+ exportPath: "@refineui/react",
2615
+ exportName: "ResultDescription",
2616
+ kind: "part",
2617
+ category: "parts",
2618
+ label: "Result Description",
2619
+ props: [],
2620
+ preview: {
2621
+ mode: "full"
2622
+ },
2623
+ parents: [
2624
+ {
2625
+ component: "Result",
2626
+ slot: "children"
2627
+ }
2628
+ ]
2629
+ },
2630
+ {
2631
+ id: "result-icon",
2632
+ exportPath: "@refineui/react",
2633
+ exportName: "ResultIcon",
2634
+ kind: "part",
2635
+ category: "parts",
2636
+ label: "Result Icon",
2637
+ props: [],
2638
+ preview: {
2639
+ mode: "full"
2640
+ },
2641
+ parents: [
2642
+ {
2643
+ component: "Result",
2644
+ slot: "children"
2645
+ }
2646
+ ]
2647
+ },
2648
+ {
2649
+ id: "result-title",
2650
+ exportPath: "@refineui/react",
2651
+ exportName: "ResultTitle",
2652
+ kind: "part",
2653
+ category: "parts",
2654
+ label: "Result Title",
2655
+ props: [],
2656
+ preview: {
2657
+ mode: "full"
2658
+ },
2659
+ parents: [
2660
+ {
2661
+ component: "Result",
2662
+ slot: "children"
2663
+ }
2664
+ ]
2665
+ },
2165
2666
  {
2166
2667
  id: "kbd",
2167
2668
  exportPath: "@refineui/react",
@@ -4748,7 +5249,20 @@ var manifest_default = {
4748
5249
  kind: "root",
4749
5250
  category: "components",
4750
5251
  label: "Calendar",
4751
- props: [],
5252
+ props: [
5253
+ {
5254
+ name: "mode",
5255
+ label: "mode",
5256
+ valueType: "enum",
5257
+ control: "segmented",
5258
+ options: [
5259
+ "single",
5260
+ "range"
5261
+ ],
5262
+ defaultValue: "single",
5263
+ section: "variants"
5264
+ }
5265
+ ],
4752
5266
  preview: {
4753
5267
  mode: "full"
4754
5268
  },
@@ -7519,7 +8033,24 @@ var manifest_default = {
7519
8033
  kind: "part",
7520
8034
  category: "parts",
7521
8035
  label: "Popover Content",
7522
- props: [],
8036
+ props: [
8037
+ {
8038
+ name: "surface",
8039
+ valueType: "boolean",
8040
+ control: "toggle",
8041
+ defaultValue: true,
8042
+ section: "properties",
8043
+ label: "surface"
8044
+ },
8045
+ {
8046
+ name: "fitContent",
8047
+ valueType: "boolean",
8048
+ control: "toggle",
8049
+ defaultValue: false,
8050
+ section: "properties",
8051
+ label: "fit Content"
8052
+ }
8053
+ ],
7523
8054
  preview: {
7524
8055
  mode: "full"
7525
8056
  },