@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
@@ -10,6 +10,15 @@
10
10
  "attributes": {
11
11
  "data-refineui": "calendar"
12
12
  },
13
+ "variants": {
14
+ "mode": [
15
+ "single",
16
+ "range"
17
+ ]
18
+ },
19
+ "tokens": {
20
+ "visual": "calendar"
21
+ },
13
22
  "states": {
14
23
  "pseudo": [
15
24
  "focus-visible"
@@ -0,0 +1,18 @@
1
+ {
2
+ "$schema": "../schema/component-spec.schema.json",
3
+ "component": "code-block",
4
+ "version": 1,
5
+ "export": "CodeBlock",
6
+ "anatomy": {
7
+ "root": "code-block",
8
+ "actions": "code-block-actions",
9
+ "content": "code-block-content",
10
+ "copy": "code-block-copy",
11
+ "header": "code-block-header",
12
+ "line": "code-block-line",
13
+ "title": "code-block-title"
14
+ },
15
+ "attributes": {
16
+ "data-refineui": "code-block"
17
+ }
18
+ }
@@ -0,0 +1,71 @@
1
+ {
2
+ "$schema": "../schema/component-spec.schema.json",
3
+ "component": "date-input",
4
+ "version": 1,
5
+ "export": "DateInput",
6
+ "anatomy": {
7
+ "root": "date-input"
8
+ },
9
+ "attributes": {
10
+ "data-refineui": "date-input"
11
+ },
12
+ "variants": {
13
+ "mode": [
14
+ "single",
15
+ "range"
16
+ ]
17
+ },
18
+ "tokens": {
19
+ "visual": "input"
20
+ },
21
+ "states": {
22
+ "pseudo": [
23
+ "focus-visible"
24
+ ],
25
+ "component": {
26
+ "selection": [
27
+ "placeholder",
28
+ "value"
29
+ ],
30
+ "validation": [
31
+ "error",
32
+ "success"
33
+ ]
34
+ },
35
+ "availability": [
36
+ "disabled"
37
+ ],
38
+ "environment": [
39
+ "dir"
40
+ ]
41
+ },
42
+ "accessibility": {
43
+ "date-input": {
44
+ "element": "button",
45
+ "native": true,
46
+ "labeling": {
47
+ "accessibleName": "required"
48
+ }
49
+ }
50
+ },
51
+ "keyboard": {
52
+ "Enter": {
53
+ "action": "activate",
54
+ "native": true
55
+ },
56
+ "Space": {
57
+ "action": "activate",
58
+ "native": true
59
+ }
60
+ },
61
+ "focus": {
62
+ "visual": {
63
+ "required": true,
64
+ "selector": ":focus-visible"
65
+ }
66
+ },
67
+ "layout": {
68
+ "direction": "logical",
69
+ "rtl": true
70
+ }
71
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "$schema": "../schema/component-spec.schema.json",
3
+ "component": "kbd",
4
+ "version": 1,
5
+ "export": "Kbd",
6
+ "anatomy": {
7
+ "root": "kbd"
8
+ },
9
+ "attributes": {
10
+ "data-refineui": "kbd"
11
+ },
12
+ "layout": {
13
+ "direction": "logical",
14
+ "rtl": true
15
+ }
16
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "$schema": "../schema/component-spec.schema.json",
3
+ "component": "marker",
4
+ "version": 1,
5
+ "export": "Marker",
6
+ "anatomy": {
7
+ "root": "marker",
8
+ "icon": "marker-icon",
9
+ "content": "marker-content"
10
+ },
11
+ "attributes": {
12
+ "data-refineui": "marker"
13
+ },
14
+ "variants": {
15
+ "variant": ["default", "divider"]
16
+ },
17
+ "layout": {
18
+ "direction": "logical",
19
+ "rtl": true
20
+ }
21
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "$schema": "../schema/component-spec.schema.json",
3
+ "component": "message",
4
+ "version": 1,
5
+ "export": "Message",
6
+ "anatomy": {
7
+ "root": "message",
8
+ "avatar": "message-avatar",
9
+ "content": "message-content",
10
+ "footer": "message-footer"
11
+ },
12
+ "attributes": {
13
+ "data-refineui": "message"
14
+ },
15
+ "variants": {
16
+ "align": ["start", "end"]
17
+ },
18
+ "layout": {
19
+ "direction": "logical",
20
+ "rtl": true
21
+ }
22
+ }
@@ -0,0 +1 @@
1
+ {"$schema":"../schema/component-spec.schema.json","component":"result","version":1,"export":"Result","anatomy":{"root":"result","icon":"result-icon","title":"result-title","description":"result-description","actions":"result-actions"},"attributes":{"data-refineui":"result"},"variants":{"variant":["success","info","warning","error"]},"accessibility":{"result":{"element":"section","labeling":{"accessibleName":"required"}}},"layout":{"direction":"logical","rtl":true}}
@@ -0,0 +1,24 @@
1
+ {
2
+ "$schema": "../schema/component-spec.schema.json",
3
+ "component": "time-input",
4
+ "version": 1,
5
+ "export": "TimeInput",
6
+ "anatomy": { "root": "time-input" },
7
+ "attributes": { "data-refineui": "time-input" },
8
+ "tokens": { "visual": "input" },
9
+ "states": {
10
+ "pseudo": ["focus-visible"],
11
+ "component": {
12
+ "selection": ["placeholder", "value"],
13
+ "validation": ["error", "success"]
14
+ },
15
+ "availability": ["disabled"],
16
+ "environment": ["dir"]
17
+ },
18
+ "accessibility": {
19
+ "time-input": { "element": "button", "native": true, "labeling": { "accessibleName": "required" } }
20
+ },
21
+ "keyboard": { "Enter": { "action": "activate", "native": true }, "Space": { "action": "activate", "native": true } },
22
+ "focus": { "visual": { "required": true, "selector": ":focus-visible" } },
23
+ "layout": { "direction": "logical", "rtl": true }
24
+ }
@@ -3,7 +3,7 @@
3
3
  "contractLayer": "component-spec",
4
4
  "contractLayerVersion": "1.1",
5
5
  "status": "catalog",
6
- "generatedAt": "2026-11-13T03:48:30.082Z",
6
+ "generatedAt": "2026-11-15T06:08:39.174Z",
7
7
  "role": "Behavior and DOM contracts — source of truth for Doctor, MCP, and Docs",
8
8
  "files": {
9
9
  "manifest": "./manifest.json",
@@ -151,6 +151,15 @@
151
151
  "calendar-day"
152
152
  ]
153
153
  },
154
+ {
155
+ "name": "DateInput",
156
+ "id": "date-input",
157
+ "spec": "./components/date-input.json",
158
+ "export": "DateInput",
159
+ "dataRefineui": [
160
+ "date-input"
161
+ ]
162
+ },
154
163
  {
155
164
  "name": "Card",
156
165
  "id": "card",
@@ -231,6 +240,21 @@
231
240
  "chip-remove"
232
241
  ]
233
242
  },
243
+ {
244
+ "name": "CodeBlock",
245
+ "id": "code-block",
246
+ "spec": "./components/code-block.json",
247
+ "export": "CodeBlock",
248
+ "dataRefineui": [
249
+ "code-block",
250
+ "code-block-actions",
251
+ "code-block-content",
252
+ "code-block-copy",
253
+ "code-block-header",
254
+ "code-block-line",
255
+ "code-block-title"
256
+ ]
257
+ },
234
258
  {
235
259
  "name": "Command",
236
260
  "id": "command",
@@ -117,6 +117,15 @@
117
117
  "calendar-day"
118
118
  ]
119
119
  },
120
+ {
121
+ "name": "DateInput",
122
+ "id": "date-input",
123
+ "spec": "./components/date-input.json",
124
+ "export": "DateInput",
125
+ "dataRefineui": [
126
+ "date-input"
127
+ ]
128
+ },
120
129
  {
121
130
  "name": "Card",
122
131
  "id": "card",
@@ -197,6 +206,21 @@
197
206
  "chip-remove"
198
207
  ]
199
208
  },
209
+ {
210
+ "name": "CodeBlock",
211
+ "id": "code-block",
212
+ "spec": "./components/code-block.json",
213
+ "export": "CodeBlock",
214
+ "dataRefineui": [
215
+ "code-block",
216
+ "code-block-actions",
217
+ "code-block-content",
218
+ "code-block-copy",
219
+ "code-block-header",
220
+ "code-block-line",
221
+ "code-block-title"
222
+ ]
223
+ },
200
224
  {
201
225
  "name": "Command",
202
226
  "id": "command",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 2,
3
- "generatedAt": "2026-11-13T03:48:30.078Z",
3
+ "generatedAt": "2026-11-15T06:08:39.171Z",
4
4
  "contractLayer": "component-token-trace",
5
5
  "tokens": {
6
6
  "webIcon.primary": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@refineui/react",
3
- "version": "0.3.0",
3
+ "version": "0.4.1",
4
4
  "description": "RefineUI React components — Pelagornis RefineUI Web Kit",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -37,7 +37,7 @@
37
37
  "test:authoring:browser": "vitest run --config vitest.authoring.browser.config.ts"
38
38
  },
39
39
  "dependencies": {
40
- "@refineui/tokens": "2.2.1",
40
+ "@refineui/tokens": "2.2.2",
41
41
  "@refineui/utilities": "0.0.4",
42
42
  "@refineui/web-icons": "^0.3.39",
43
43
  "clsx": "2.1.1"