@refineui/react 0.3.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 (84) hide show
  1. package/dist/authoring-manifest.cjs +1812 -1060
  2. package/dist/authoring-manifest.cjs.map +1 -1
  3. package/dist/authoring-manifest.js +1812 -1060
  4. package/dist/authoring-manifest.js.map +1 -1
  5. package/dist/index.cjs +6013 -5103
  6. package/dist/index.cjs.map +1 -1
  7. package/dist/index.d.cts +176 -22
  8. package/dist/index.d.ts +176 -22
  9. package/dist/index.js +6331 -5444
  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/kbd.json +48 -0
  21. package/dist/spec/authoring/components/marker-content.json +18 -0
  22. package/dist/spec/authoring/components/marker-icon.json +18 -0
  23. package/dist/spec/authoring/components/marker.json +41 -0
  24. package/dist/spec/authoring/components/message-avatar.json +18 -0
  25. package/dist/spec/authoring/components/message-content.json +18 -0
  26. package/dist/spec/authoring/components/message-footer.json +18 -0
  27. package/dist/spec/authoring/components/message.json +42 -0
  28. package/dist/spec/authoring/components/popover-content.json +18 -1
  29. package/dist/spec/authoring/components/result-actions.json +18 -0
  30. package/dist/spec/authoring/components/result-button.json +18 -0
  31. package/dist/spec/authoring/components/result-description.json +18 -0
  32. package/dist/spec/authoring/components/result-icon.json +18 -0
  33. package/dist/spec/authoring/components/result-title.json +18 -0
  34. package/dist/spec/authoring/components/result.json +44 -0
  35. package/dist/spec/authoring/components/time-input.json +38 -0
  36. package/dist/spec/authoring/manifest.json +1812 -1060
  37. package/dist/spec/components/calendar.json +9 -0
  38. package/dist/spec/components/code-block.json +18 -0
  39. package/dist/spec/components/date-input.json +71 -0
  40. package/dist/spec/components/kbd.json +16 -0
  41. package/dist/spec/components/marker.json +21 -0
  42. package/dist/spec/components/message.json +22 -0
  43. package/dist/spec/components/result.json +1 -0
  44. package/dist/spec/components/time-input.json +24 -0
  45. package/dist/spec/contract-index.json +25 -1
  46. package/dist/spec/manifest.json +24 -0
  47. package/dist/spec/token-trace-v2.json +1 -1
  48. package/package.json +2 -2
  49. package/refineui.css +211 -32
  50. package/spec/authoring/components/calendar.json +14 -1
  51. package/spec/authoring/components/code-block-actions.json +28 -0
  52. package/spec/authoring/components/code-block-content.json +45 -0
  53. package/spec/authoring/components/code-block-copy-button.json +28 -0
  54. package/spec/authoring/components/code-block-header.json +28 -0
  55. package/spec/authoring/components/code-block-line.json +31 -0
  56. package/spec/authoring/components/code-block-title.json +18 -0
  57. package/spec/authoring/components/code-block.json +90 -0
  58. package/spec/authoring/components/date-input.json +61 -0
  59. package/spec/authoring/components/kbd.json +48 -0
  60. package/spec/authoring/components/marker-content.json +18 -0
  61. package/spec/authoring/components/marker-icon.json +18 -0
  62. package/spec/authoring/components/marker.json +41 -0
  63. package/spec/authoring/components/message-avatar.json +18 -0
  64. package/spec/authoring/components/message-content.json +18 -0
  65. package/spec/authoring/components/message-footer.json +18 -0
  66. package/spec/authoring/components/message.json +42 -0
  67. package/spec/authoring/components/popover-content.json +18 -1
  68. package/spec/authoring/components/result-actions.json +18 -0
  69. package/spec/authoring/components/result-button.json +18 -0
  70. package/spec/authoring/components/result-description.json +18 -0
  71. package/spec/authoring/components/result-icon.json +18 -0
  72. package/spec/authoring/components/result-title.json +18 -0
  73. package/spec/authoring/components/result.json +44 -0
  74. package/spec/authoring/components/time-input.json +38 -0
  75. package/spec/authoring/manifest.json +1812 -1060
  76. package/spec/components/calendar.json +9 -0
  77. package/spec/components/code-block.json +18 -0
  78. package/spec/components/date-input.json +71 -0
  79. package/spec/components/kbd.json +16 -0
  80. package/spec/components/marker.json +21 -0
  81. package/spec/components/message.json +22 -0
  82. package/spec/components/result.json +1 -0
  83. package/spec/components/time-input.json +24 -0
  84. package/spec/manifest.json +24 -0
@@ -0,0 +1,28 @@
1
+ {
2
+ "id": "code-block-header",
3
+ "exportPath": "@refineui/react",
4
+ "exportName": "CodeBlockHeader",
5
+ "kind": "part",
6
+ "category": "parts",
7
+ "label": "Code Block Header",
8
+ "props": [],
9
+ "preview": {
10
+ "mode": "full"
11
+ },
12
+ "parents": [
13
+ {
14
+ "component": "CodeBlock",
15
+ "slot": "children"
16
+ }
17
+ ],
18
+ "slots": [
19
+ {
20
+ "name": "children",
21
+ "accepts": [
22
+ "CodeBlockTitle",
23
+ "CodeBlockActions"
24
+ ],
25
+ "repeatable": true
26
+ }
27
+ ]
28
+ }
@@ -0,0 +1,31 @@
1
+ {
2
+ "id": "code-block-line",
3
+ "exportPath": "@refineui/react",
4
+ "exportName": "CodeBlockLine",
5
+ "kind": "part",
6
+ "category": "parts",
7
+ "label": "Code Block Line",
8
+ "props": [
9
+ {
10
+ "name": "variant",
11
+ "valueType": "enum",
12
+ "control": "segmented",
13
+ "options": [
14
+ "default",
15
+ "highlighted"
16
+ ],
17
+ "defaultValue": "default",
18
+ "section": "variants",
19
+ "label": "variant"
20
+ }
21
+ ],
22
+ "preview": {
23
+ "mode": "full"
24
+ },
25
+ "parents": [
26
+ {
27
+ "component": "CodeBlockContent",
28
+ "slot": "children"
29
+ }
30
+ ]
31
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "id": "code-block-title",
3
+ "exportPath": "@refineui/react",
4
+ "exportName": "CodeBlockTitle",
5
+ "kind": "part",
6
+ "category": "parts",
7
+ "label": "Code Block Title",
8
+ "props": [],
9
+ "preview": {
10
+ "mode": "full"
11
+ },
12
+ "parents": [
13
+ {
14
+ "component": "CodeBlockHeader",
15
+ "slot": "children"
16
+ }
17
+ ]
18
+ }
@@ -0,0 +1,90 @@
1
+ {
2
+ "id": "code-block",
3
+ "exportPath": "@refineui/react",
4
+ "exportName": "CodeBlock",
5
+ "kind": "root",
6
+ "category": "components",
7
+ "label": "Code Block",
8
+ "props": [],
9
+ "preview": {
10
+ "mode": "full"
11
+ },
12
+ "slots": [
13
+ {
14
+ "name": "children",
15
+ "accepts": [
16
+ "CodeBlockHeader",
17
+ "CodeBlockContent"
18
+ ],
19
+ "repeatable": true
20
+ }
21
+ ],
22
+ "presets": [
23
+ {
24
+ "id": "typescript",
25
+ "label": "TypeScript",
26
+ "root": {
27
+ "component": "CodeBlock",
28
+ "slots": {
29
+ "children": [
30
+ {
31
+ "component": "CodeBlockHeader",
32
+ "slots": {
33
+ "children": [
34
+ {
35
+ "component": "CodeBlockTitle",
36
+ "text": "app/api/chat/route.ts"
37
+ },
38
+ {
39
+ "component": "CodeBlockActions",
40
+ "slots": {
41
+ "children": [
42
+ {
43
+ "component": "CodeBlockCopyButton",
44
+ "props": {
45
+ "value": "export async function POST() {\n return Response.json({ ok: true });\n}"
46
+ }
47
+ }
48
+ ]
49
+ }
50
+ }
51
+ ]
52
+ }
53
+ },
54
+ {
55
+ "component": "CodeBlockContent",
56
+ "props": {
57
+ "lineNumbers": true
58
+ },
59
+ "slots": {
60
+ "children": [
61
+ {
62
+ "component": "CodeBlockLine",
63
+ "text": "export async function POST() {"
64
+ },
65
+ {
66
+ "component": "CodeBlockLine",
67
+ "props": {
68
+ "variant": "highlighted"
69
+ },
70
+ "text": " return Response.json({ ok: true });"
71
+ },
72
+ {
73
+ "component": "CodeBlockLine",
74
+ "text": "}"
75
+ }
76
+ ]
77
+ }
78
+ }
79
+ ]
80
+ }
81
+ }
82
+ }
83
+ ],
84
+ "events": [
85
+ {
86
+ "name": "click",
87
+ "payload": "void"
88
+ }
89
+ ]
90
+ }
@@ -0,0 +1,61 @@
1
+ {
2
+ "id": "date-input",
3
+ "exportPath": "@refineui/react",
4
+ "exportName": "DateInput",
5
+ "kind": "root",
6
+ "category": "components",
7
+ "label": "Date Input",
8
+ "props": [
9
+ {
10
+ "name": "mode",
11
+ "label": "mode",
12
+ "valueType": "enum",
13
+ "control": "segmented",
14
+ "options": [
15
+ "single",
16
+ "range"
17
+ ],
18
+ "defaultValue": "single",
19
+ "section": "variants"
20
+ }
21
+ ],
22
+ "preview": {
23
+ "mode": "full"
24
+ },
25
+ "slots": [
26
+ {
27
+ "name": "children",
28
+ "accepts": [],
29
+ "repeatable": true,
30
+ "allowText": true,
31
+ "allowAnyComponent": true,
32
+ "defaultChildren": []
33
+ }
34
+ ],
35
+ "presets": [
36
+ {
37
+ "id": "default",
38
+ "label": "Default",
39
+ "root": {
40
+ "component": "DateInput",
41
+ "slots": {
42
+ "children": [
43
+ {
44
+ "component": "Text",
45
+ "props": {
46
+ "variant": "bodyMd"
47
+ },
48
+ "text": "Date Input"
49
+ }
50
+ ]
51
+ }
52
+ }
53
+ }
54
+ ],
55
+ "events": [
56
+ {
57
+ "name": "click",
58
+ "payload": "void"
59
+ }
60
+ ]
61
+ }
@@ -0,0 +1,48 @@
1
+ {
2
+ "id": "kbd",
3
+ "exportPath": "@refineui/react",
4
+ "exportName": "Kbd",
5
+ "kind": "root",
6
+ "category": "utilities",
7
+ "label": "Kbd",
8
+ "props": [],
9
+ "preview": {
10
+ "mode": "full"
11
+ },
12
+ "slots": [
13
+ {
14
+ "name": "children",
15
+ "accepts": [],
16
+ "repeatable": true,
17
+ "allowText": true,
18
+ "allowAnyComponent": true,
19
+ "defaultChildren": []
20
+ }
21
+ ],
22
+ "presets": [
23
+ {
24
+ "id": "default",
25
+ "label": "Default",
26
+ "root": {
27
+ "component": "Kbd",
28
+ "slots": {
29
+ "children": [
30
+ {
31
+ "component": "Text",
32
+ "props": {
33
+ "variant": "bodyMd"
34
+ },
35
+ "text": "Kbd"
36
+ }
37
+ ]
38
+ }
39
+ }
40
+ }
41
+ ],
42
+ "events": [
43
+ {
44
+ "name": "click",
45
+ "payload": "void"
46
+ }
47
+ ]
48
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "id": "marker-content",
3
+ "exportPath": "@refineui/react",
4
+ "exportName": "MarkerContent",
5
+ "kind": "part",
6
+ "category": "parts",
7
+ "label": "Marker Content",
8
+ "props": [],
9
+ "preview": {
10
+ "mode": "full"
11
+ },
12
+ "parents": [
13
+ {
14
+ "component": "Marker",
15
+ "slot": "children"
16
+ }
17
+ ]
18
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "id": "marker-icon",
3
+ "exportPath": "@refineui/react",
4
+ "exportName": "MarkerIcon",
5
+ "kind": "part",
6
+ "category": "parts",
7
+ "label": "Marker Icon",
8
+ "props": [],
9
+ "preview": {
10
+ "mode": "full"
11
+ },
12
+ "parents": [
13
+ {
14
+ "component": "Marker",
15
+ "slot": "children"
16
+ }
17
+ ]
18
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ "id": "marker",
3
+ "exportPath": "@refineui/react",
4
+ "exportName": "Marker",
5
+ "kind": "root",
6
+ "category": "utilities",
7
+ "label": "Marker",
8
+ "props": [],
9
+ "preview": {
10
+ "mode": "full"
11
+ },
12
+ "slots": [
13
+ {
14
+ "name": "children",
15
+ "accepts": [
16
+ "MarkerContent",
17
+ "MarkerIcon"
18
+ ],
19
+ "repeatable": true,
20
+ "allowText": true,
21
+ "allowAnyComponent": false,
22
+ "defaultChildren": []
23
+ }
24
+ ],
25
+ "presets": [
26
+ {
27
+ "id": "default",
28
+ "label": "Default",
29
+ "root": {
30
+ "component": "Marker",
31
+ "slots": {}
32
+ }
33
+ }
34
+ ],
35
+ "events": [
36
+ {
37
+ "name": "click",
38
+ "payload": "void"
39
+ }
40
+ ]
41
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "id": "message-avatar",
3
+ "exportPath": "@refineui/react",
4
+ "exportName": "MessageAvatar",
5
+ "kind": "part",
6
+ "category": "parts",
7
+ "label": "Message Avatar",
8
+ "props": [],
9
+ "preview": {
10
+ "mode": "full"
11
+ },
12
+ "parents": [
13
+ {
14
+ "component": "Message",
15
+ "slot": "children"
16
+ }
17
+ ]
18
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "id": "message-content",
3
+ "exportPath": "@refineui/react",
4
+ "exportName": "MessageContent",
5
+ "kind": "part",
6
+ "category": "parts",
7
+ "label": "Message Content",
8
+ "props": [],
9
+ "preview": {
10
+ "mode": "full"
11
+ },
12
+ "parents": [
13
+ {
14
+ "component": "Message",
15
+ "slot": "children"
16
+ }
17
+ ]
18
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "id": "message-footer",
3
+ "exportPath": "@refineui/react",
4
+ "exportName": "MessageFooter",
5
+ "kind": "part",
6
+ "category": "parts",
7
+ "label": "Message Footer",
8
+ "props": [],
9
+ "preview": {
10
+ "mode": "full"
11
+ },
12
+ "parents": [
13
+ {
14
+ "component": "Message",
15
+ "slot": "children"
16
+ }
17
+ ]
18
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ "id": "message",
3
+ "exportPath": "@refineui/react",
4
+ "exportName": "Message",
5
+ "kind": "root",
6
+ "category": "utilities",
7
+ "label": "Message",
8
+ "props": [],
9
+ "preview": {
10
+ "mode": "full"
11
+ },
12
+ "slots": [
13
+ {
14
+ "name": "children",
15
+ "accepts": [
16
+ "MessageAvatar",
17
+ "MessageContent",
18
+ "MessageFooter"
19
+ ],
20
+ "repeatable": true,
21
+ "allowText": true,
22
+ "allowAnyComponent": false,
23
+ "defaultChildren": []
24
+ }
25
+ ],
26
+ "presets": [
27
+ {
28
+ "id": "default",
29
+ "label": "Default",
30
+ "root": {
31
+ "component": "Message",
32
+ "slots": {}
33
+ }
34
+ }
35
+ ],
36
+ "events": [
37
+ {
38
+ "name": "click",
39
+ "payload": "void"
40
+ }
41
+ ]
42
+ }
@@ -5,7 +5,24 @@
5
5
  "kind": "part",
6
6
  "category": "parts",
7
7
  "label": "Popover Content",
8
- "props": [],
8
+ "props": [
9
+ {
10
+ "name": "surface",
11
+ "valueType": "boolean",
12
+ "control": "toggle",
13
+ "defaultValue": true,
14
+ "section": "properties",
15
+ "label": "surface"
16
+ },
17
+ {
18
+ "name": "fitContent",
19
+ "valueType": "boolean",
20
+ "control": "toggle",
21
+ "defaultValue": false,
22
+ "section": "properties",
23
+ "label": "fit Content"
24
+ }
25
+ ],
9
26
  "preview": {
10
27
  "mode": "full"
11
28
  },
@@ -0,0 +1,18 @@
1
+ {
2
+ "id": "result-actions",
3
+ "exportPath": "@refineui/react",
4
+ "exportName": "ResultActions",
5
+ "kind": "part",
6
+ "category": "parts",
7
+ "label": "Result Actions",
8
+ "props": [],
9
+ "preview": {
10
+ "mode": "full"
11
+ },
12
+ "parents": [
13
+ {
14
+ "component": "Result",
15
+ "slot": "children"
16
+ }
17
+ ]
18
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "id": "result-button",
3
+ "exportPath": "@refineui/react",
4
+ "exportName": "ResultButton",
5
+ "kind": "part",
6
+ "category": "parts",
7
+ "label": "Result Button",
8
+ "props": [],
9
+ "preview": {
10
+ "mode": "full"
11
+ },
12
+ "parents": [
13
+ {
14
+ "component": "Result",
15
+ "slot": "children"
16
+ }
17
+ ]
18
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "id": "result-description",
3
+ "exportPath": "@refineui/react",
4
+ "exportName": "ResultDescription",
5
+ "kind": "part",
6
+ "category": "parts",
7
+ "label": "Result Description",
8
+ "props": [],
9
+ "preview": {
10
+ "mode": "full"
11
+ },
12
+ "parents": [
13
+ {
14
+ "component": "Result",
15
+ "slot": "children"
16
+ }
17
+ ]
18
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "id": "result-icon",
3
+ "exportPath": "@refineui/react",
4
+ "exportName": "ResultIcon",
5
+ "kind": "part",
6
+ "category": "parts",
7
+ "label": "Result Icon",
8
+ "props": [],
9
+ "preview": {
10
+ "mode": "full"
11
+ },
12
+ "parents": [
13
+ {
14
+ "component": "Result",
15
+ "slot": "children"
16
+ }
17
+ ]
18
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "id": "result-title",
3
+ "exportPath": "@refineui/react",
4
+ "exportName": "ResultTitle",
5
+ "kind": "part",
6
+ "category": "parts",
7
+ "label": "Result Title",
8
+ "props": [],
9
+ "preview": {
10
+ "mode": "full"
11
+ },
12
+ "parents": [
13
+ {
14
+ "component": "Result",
15
+ "slot": "children"
16
+ }
17
+ ]
18
+ }
@@ -0,0 +1,44 @@
1
+ {
2
+ "id": "result",
3
+ "exportPath": "@refineui/react",
4
+ "exportName": "Result",
5
+ "kind": "root",
6
+ "category": "utilities",
7
+ "label": "Result",
8
+ "props": [],
9
+ "preview": {
10
+ "mode": "full"
11
+ },
12
+ "slots": [
13
+ {
14
+ "name": "children",
15
+ "accepts": [
16
+ "ResultActions",
17
+ "ResultButton",
18
+ "ResultDescription",
19
+ "ResultIcon",
20
+ "ResultTitle"
21
+ ],
22
+ "repeatable": true,
23
+ "allowText": false,
24
+ "allowAnyComponent": false,
25
+ "defaultChildren": []
26
+ }
27
+ ],
28
+ "presets": [
29
+ {
30
+ "id": "default",
31
+ "label": "Default",
32
+ "root": {
33
+ "component": "Result",
34
+ "slots": {}
35
+ }
36
+ }
37
+ ],
38
+ "events": [
39
+ {
40
+ "name": "click",
41
+ "payload": "void"
42
+ }
43
+ ]
44
+ }
@@ -0,0 +1,38 @@
1
+ {
2
+ "id": "time-input",
3
+ "exportPath": "@refineui/react",
4
+ "exportName": "TimeInput",
5
+ "kind": "root",
6
+ "category": "utilities",
7
+ "label": "Time Input",
8
+ "props": [],
9
+ "preview": {
10
+ "mode": "full"
11
+ },
12
+ "slots": [
13
+ {
14
+ "name": "children",
15
+ "accepts": [],
16
+ "repeatable": true,
17
+ "allowText": false,
18
+ "allowAnyComponent": true,
19
+ "defaultChildren": []
20
+ }
21
+ ],
22
+ "presets": [
23
+ {
24
+ "id": "default",
25
+ "label": "Default",
26
+ "root": {
27
+ "component": "TimeInput",
28
+ "slots": {}
29
+ }
30
+ }
31
+ ],
32
+ "events": [
33
+ {
34
+ "name": "click",
35
+ "payload": "void"
36
+ }
37
+ ]
38
+ }