@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.
- package/dist/authoring-manifest.cjs +1812 -1060
- package/dist/authoring-manifest.cjs.map +1 -1
- package/dist/authoring-manifest.js +1812 -1060
- package/dist/authoring-manifest.js.map +1 -1
- package/dist/index.cjs +6013 -5103
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +176 -22
- package/dist/index.d.ts +176 -22
- package/dist/index.js +6331 -5444
- package/dist/index.js.map +1 -1
- package/dist/spec/authoring/components/calendar.json +14 -1
- package/dist/spec/authoring/components/code-block-actions.json +28 -0
- package/dist/spec/authoring/components/code-block-content.json +45 -0
- package/dist/spec/authoring/components/code-block-copy-button.json +28 -0
- package/dist/spec/authoring/components/code-block-header.json +28 -0
- package/dist/spec/authoring/components/code-block-line.json +31 -0
- package/dist/spec/authoring/components/code-block-title.json +18 -0
- package/dist/spec/authoring/components/code-block.json +90 -0
- package/dist/spec/authoring/components/date-input.json +61 -0
- package/dist/spec/authoring/components/kbd.json +48 -0
- package/dist/spec/authoring/components/marker-content.json +18 -0
- package/dist/spec/authoring/components/marker-icon.json +18 -0
- package/dist/spec/authoring/components/marker.json +41 -0
- package/dist/spec/authoring/components/message-avatar.json +18 -0
- package/dist/spec/authoring/components/message-content.json +18 -0
- package/dist/spec/authoring/components/message-footer.json +18 -0
- package/dist/spec/authoring/components/message.json +42 -0
- package/dist/spec/authoring/components/popover-content.json +18 -1
- package/dist/spec/authoring/components/result-actions.json +18 -0
- package/dist/spec/authoring/components/result-button.json +18 -0
- package/dist/spec/authoring/components/result-description.json +18 -0
- package/dist/spec/authoring/components/result-icon.json +18 -0
- package/dist/spec/authoring/components/result-title.json +18 -0
- package/dist/spec/authoring/components/result.json +44 -0
- package/dist/spec/authoring/components/time-input.json +38 -0
- package/dist/spec/authoring/manifest.json +1812 -1060
- package/dist/spec/components/calendar.json +9 -0
- package/dist/spec/components/code-block.json +18 -0
- package/dist/spec/components/date-input.json +71 -0
- package/dist/spec/components/kbd.json +16 -0
- package/dist/spec/components/marker.json +21 -0
- package/dist/spec/components/message.json +22 -0
- package/dist/spec/components/result.json +1 -0
- package/dist/spec/components/time-input.json +24 -0
- package/dist/spec/contract-index.json +25 -1
- package/dist/spec/manifest.json +24 -0
- package/dist/spec/token-trace-v2.json +1 -1
- package/package.json +2 -2
- package/refineui.css +211 -32
- package/spec/authoring/components/calendar.json +14 -1
- package/spec/authoring/components/code-block-actions.json +28 -0
- package/spec/authoring/components/code-block-content.json +45 -0
- package/spec/authoring/components/code-block-copy-button.json +28 -0
- package/spec/authoring/components/code-block-header.json +28 -0
- package/spec/authoring/components/code-block-line.json +31 -0
- package/spec/authoring/components/code-block-title.json +18 -0
- package/spec/authoring/components/code-block.json +90 -0
- package/spec/authoring/components/date-input.json +61 -0
- package/spec/authoring/components/kbd.json +48 -0
- package/spec/authoring/components/marker-content.json +18 -0
- package/spec/authoring/components/marker-icon.json +18 -0
- package/spec/authoring/components/marker.json +41 -0
- package/spec/authoring/components/message-avatar.json +18 -0
- package/spec/authoring/components/message-content.json +18 -0
- package/spec/authoring/components/message-footer.json +18 -0
- package/spec/authoring/components/message.json +42 -0
- package/spec/authoring/components/popover-content.json +18 -1
- package/spec/authoring/components/result-actions.json +18 -0
- package/spec/authoring/components/result-button.json +18 -0
- package/spec/authoring/components/result-description.json +18 -0
- package/spec/authoring/components/result-icon.json +18 -0
- package/spec/authoring/components/result-title.json +18 -0
- package/spec/authoring/components/result.json +44 -0
- package/spec/authoring/components/time-input.json +38 -0
- package/spec/authoring/manifest.json +1812 -1060
- package/spec/components/calendar.json +9 -0
- package/spec/components/code-block.json +18 -0
- package/spec/components/date-input.json +71 -0
- package/spec/components/kbd.json +16 -0
- package/spec/components/marker.json +21 -0
- package/spec/components/message.json +22 -0
- package/spec/components/result.json +1 -0
- package/spec/components/time-input.json +24 -0
- package/spec/manifest.json +24 -0
|
@@ -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-
|
|
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",
|
package/dist/spec/manifest.json
CHANGED
|
@@ -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",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@refineui/react",
|
|
3
|
-
"version": "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.
|
|
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"
|