@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
@@ -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
+ }
@@ -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
+ }