@refineui/react 0.4.0 → 0.5.0

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 (104) hide show
  1. package/dist/authoring-manifest.cjs +897 -52
  2. package/dist/authoring-manifest.cjs.map +1 -1
  3. package/dist/authoring-manifest.js +897 -52
  4. package/dist/authoring-manifest.js.map +1 -1
  5. package/dist/index.cjs +6626 -5228
  6. package/dist/index.cjs.map +1 -1
  7. package/dist/index.d.cts +191 -11
  8. package/dist/index.d.ts +191 -11
  9. package/dist/index.js +6517 -5142
  10. package/dist/index.js.map +1 -1
  11. package/dist/spec/authoring/components/button-group.json +104 -0
  12. package/dist/spec/authoring/components/calendar.json +14 -1
  13. package/dist/spec/authoring/components/code-block-actions.json +28 -0
  14. package/dist/spec/authoring/components/code-block-content.json +45 -0
  15. package/dist/spec/authoring/components/code-block-copy-button.json +28 -0
  16. package/dist/spec/authoring/components/code-block-header.json +28 -0
  17. package/dist/spec/authoring/components/code-block-line.json +31 -0
  18. package/dist/spec/authoring/components/code-block-title.json +18 -0
  19. package/dist/spec/authoring/components/code-block.json +90 -0
  20. package/dist/spec/authoring/components/{command-separator.json → command-divider.json} +3 -3
  21. package/dist/spec/authoring/components/command-list.json +1 -1
  22. package/dist/spec/authoring/components/context-menu-content.json +1 -1
  23. package/{spec/authoring/components/context-menu-separator.json → dist/spec/authoring/components/context-menu-divider.json} +3 -3
  24. package/dist/spec/authoring/components/context-menu-sub-content.json +1 -1
  25. package/dist/spec/authoring/components/date-input.json +61 -0
  26. package/dist/spec/authoring/components/dropdown-content.json +1 -1
  27. package/{spec/authoring/components/dropdown-separator.json → dist/spec/authoring/components/dropdown-divider.json} +3 -3
  28. package/dist/spec/authoring/components/dropdown-group.json +1 -1
  29. package/dist/spec/authoring/components/popover-content.json +18 -1
  30. package/dist/spec/authoring/components/result-actions.json +18 -0
  31. package/dist/spec/authoring/components/result-button.json +18 -0
  32. package/dist/spec/authoring/components/result-description.json +18 -0
  33. package/dist/spec/authoring/components/result-icon.json +18 -0
  34. package/dist/spec/authoring/components/result-title.json +18 -0
  35. package/dist/spec/authoring/components/result.json +44 -0
  36. package/{spec/authoring/components/select-separator.json → dist/spec/authoring/components/select-divider.json} +3 -3
  37. package/dist/spec/authoring/components/select-group.json +1 -1
  38. package/dist/spec/authoring/components/select-viewport.json +1 -1
  39. package/dist/spec/authoring/components/time-input.json +38 -0
  40. package/dist/spec/authoring/components/toolbar-button.json +22 -0
  41. package/dist/spec/authoring/components/toolbar-divider.json +18 -0
  42. package/dist/spec/authoring/components/toolbar-group.json +29 -0
  43. package/dist/spec/authoring/components/toolbar-toggle-button.json +22 -0
  44. package/dist/spec/authoring/components/toolbar.json +119 -0
  45. package/dist/spec/authoring/manifest.json +897 -52
  46. package/dist/spec/components/button-group.json +77 -0
  47. package/dist/spec/components/calendar.json +9 -0
  48. package/dist/spec/components/code-block.json +18 -0
  49. package/dist/spec/components/command.json +1 -1
  50. package/dist/spec/components/date-input.json +71 -0
  51. package/dist/spec/components/dropdown.json +1 -1
  52. package/dist/spec/components/result.json +1 -0
  53. package/dist/spec/components/time-input.json +24 -0
  54. package/dist/spec/components/toolbar.json +91 -0
  55. package/dist/spec/contract-index.json +48 -3
  56. package/dist/spec/manifest.json +47 -2
  57. package/dist/spec/token-trace-v2.json +1 -1
  58. package/package.json +2 -2
  59. package/refineui.css +235 -20
  60. package/spec/authoring/components/button-group.json +104 -0
  61. package/spec/authoring/components/calendar.json +14 -1
  62. package/spec/authoring/components/code-block-actions.json +28 -0
  63. package/spec/authoring/components/code-block-content.json +45 -0
  64. package/spec/authoring/components/code-block-copy-button.json +28 -0
  65. package/spec/authoring/components/code-block-header.json +28 -0
  66. package/spec/authoring/components/code-block-line.json +31 -0
  67. package/spec/authoring/components/code-block-title.json +18 -0
  68. package/spec/authoring/components/code-block.json +90 -0
  69. package/spec/authoring/components/{command-separator.json → command-divider.json} +3 -3
  70. package/spec/authoring/components/command-list.json +1 -1
  71. package/spec/authoring/components/context-menu-content.json +1 -1
  72. package/{dist/spec/authoring/components/context-menu-separator.json → spec/authoring/components/context-menu-divider.json} +3 -3
  73. package/spec/authoring/components/context-menu-sub-content.json +1 -1
  74. package/spec/authoring/components/date-input.json +61 -0
  75. package/spec/authoring/components/dropdown-content.json +1 -1
  76. package/{dist/spec/authoring/components/dropdown-separator.json → spec/authoring/components/dropdown-divider.json} +3 -3
  77. package/spec/authoring/components/dropdown-group.json +1 -1
  78. package/spec/authoring/components/popover-content.json +18 -1
  79. package/spec/authoring/components/result-actions.json +18 -0
  80. package/spec/authoring/components/result-button.json +18 -0
  81. package/spec/authoring/components/result-description.json +18 -0
  82. package/spec/authoring/components/result-icon.json +18 -0
  83. package/spec/authoring/components/result-title.json +18 -0
  84. package/spec/authoring/components/result.json +44 -0
  85. package/{dist/spec/authoring/components/select-separator.json → spec/authoring/components/select-divider.json} +3 -3
  86. package/spec/authoring/components/select-group.json +1 -1
  87. package/spec/authoring/components/select-viewport.json +1 -1
  88. package/spec/authoring/components/time-input.json +38 -0
  89. package/spec/authoring/components/toolbar-button.json +22 -0
  90. package/spec/authoring/components/toolbar-divider.json +18 -0
  91. package/spec/authoring/components/toolbar-group.json +29 -0
  92. package/spec/authoring/components/toolbar-toggle-button.json +22 -0
  93. package/spec/authoring/components/toolbar.json +119 -0
  94. package/spec/authoring/manifest.json +897 -52
  95. package/spec/components/button-group.json +77 -0
  96. package/spec/components/calendar.json +9 -0
  97. package/spec/components/code-block.json +18 -0
  98. package/spec/components/command.json +1 -1
  99. package/spec/components/date-input.json +71 -0
  100. package/spec/components/dropdown.json +1 -1
  101. package/spec/components/result.json +1 -0
  102. package/spec/components/time-input.json +24 -0
  103. package/spec/components/toolbar.json +91 -0
  104. package/spec/manifest.json +47 -2
@@ -0,0 +1,77 @@
1
+ {
2
+ "$schema": "../schema/component-spec.schema.json",
3
+ "component": "button-group",
4
+ "version": 1,
5
+ "export": "ButtonGroup",
6
+ "anatomy": {
7
+ "root": "button-group",
8
+ "button": "button"
9
+ },
10
+ "attributes": {
11
+ "data-refineui": "button-group"
12
+ },
13
+ "variants": {
14
+ "size": [
15
+ "sm",
16
+ "md",
17
+ "lg"
18
+ ],
19
+ "variant": [
20
+ "primary",
21
+ "secondary",
22
+ "outline",
23
+ "ghost"
24
+ ],
25
+ "orientation": [
26
+ "horizontal",
27
+ "vertical"
28
+ ]
29
+ },
30
+ "states": {
31
+ "pseudo": [
32
+ "hover",
33
+ "active",
34
+ "focus-visible"
35
+ ],
36
+ "environment": [
37
+ "forced-colors",
38
+ "dir"
39
+ ]
40
+ },
41
+ "accessibility": {
42
+ "button-group": {
43
+ "element": "div",
44
+ "role": "group",
45
+ "labeling": {
46
+ "accessibleName": "optional"
47
+ }
48
+ },
49
+ "button": {
50
+ "element": "button",
51
+ "native": true
52
+ }
53
+ },
54
+ "keyboard": {
55
+ "Enter": {
56
+ "action": "activate",
57
+ "native": true
58
+ },
59
+ "Space": {
60
+ "action": "activate",
61
+ "native": true
62
+ }
63
+ },
64
+ "focus": {
65
+ "visual": {
66
+ "required": true,
67
+ "selector": ":focus-visible"
68
+ },
69
+ "behavior": {
70
+ "roving": false
71
+ }
72
+ },
73
+ "layout": {
74
+ "direction": "logical",
75
+ "rtl": true
76
+ }
77
+ }
@@ -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
+ }
@@ -12,7 +12,7 @@
12
12
  "input": "command-input",
13
13
  "item": "command-item",
14
14
  "list": "command-list",
15
- "separator": "command-separator",
15
+ "divider": "command-divider",
16
16
  "shortcut": "command-shortcut"
17
17
  },
18
18
  "attributes": {
@@ -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
+ }
@@ -8,7 +8,7 @@
8
8
  "dropdown_item": "dropdown-item",
9
9
  "group": "dropdown-menu-group",
10
10
  "label": "dropdown-menu-label",
11
- "separator": "dropdown-menu-separator",
11
+ "divider": "dropdown-menu-divider",
12
12
  "shortcut": "dropdown-menu-shortcut"
13
13
  },
14
14
  "attributes": {
@@ -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
+ }
@@ -0,0 +1,91 @@
1
+ {
2
+ "$schema": "../schema/component-spec.schema.json",
3
+ "component": "toolbar",
4
+ "version": 1,
5
+ "export": "Toolbar",
6
+ "anatomy": {
7
+ "root": "toolbar",
8
+ "group": "toolbar-group",
9
+ "button": "toolbar-button",
10
+ "toggle": "toolbar-toggle-button",
11
+ "divider": "toolbar-divider"
12
+ },
13
+ "attributes": {
14
+ "data-refineui": "toolbar"
15
+ },
16
+ "variants": {
17
+ "size": [
18
+ "sm",
19
+ "md",
20
+ "lg"
21
+ ],
22
+ "orientation": [
23
+ "horizontal",
24
+ "vertical"
25
+ ]
26
+ },
27
+ "states": {
28
+ "pseudo": [
29
+ "focus-visible"
30
+ ],
31
+ "environment": [
32
+ "forced-colors",
33
+ "dir"
34
+ ]
35
+ },
36
+ "accessibility": {
37
+ "toolbar": {
38
+ "element": "div",
39
+ "role": "toolbar",
40
+ "labeling": {
41
+ "accessibleName": "required"
42
+ }
43
+ },
44
+ "toolbar-group": {
45
+ "element": "div",
46
+ "role": "group"
47
+ },
48
+ "toolbar-divider": {
49
+ "element": "div",
50
+ "role": "separator"
51
+ },
52
+ "toolbar-button": {
53
+ "element": "button"
54
+ },
55
+ "toolbar-toggle-button": {
56
+ "element": "button",
57
+ "states": [
58
+ "aria-pressed"
59
+ ]
60
+ }
61
+ },
62
+ "keyboard": {
63
+ "ArrowRight": "next-trigger",
64
+ "ArrowLeft": "previous-trigger",
65
+ "ArrowDown": "next-trigger",
66
+ "ArrowUp": "previous-trigger",
67
+ "Home": "first-trigger",
68
+ "End": "last-trigger",
69
+ "Enter": {
70
+ "action": "activate",
71
+ "native": true
72
+ },
73
+ "Space": {
74
+ "action": "activate",
75
+ "native": true
76
+ }
77
+ },
78
+ "focus": {
79
+ "visual": {
80
+ "required": true,
81
+ "selector": ":focus-visible"
82
+ },
83
+ "behavior": {
84
+ "roving": true
85
+ }
86
+ },
87
+ "layout": {
88
+ "direction": "logical",
89
+ "rtl": true
90
+ }
91
+ }
@@ -107,6 +107,15 @@
107
107
  ],
108
108
  "recipe": "button"
109
109
  },
110
+ {
111
+ "name": "ButtonGroup",
112
+ "id": "button-group",
113
+ "spec": "./components/button-group.json",
114
+ "export": "ButtonGroup",
115
+ "dataRefineui": [
116
+ "button-group"
117
+ ]
118
+ },
110
119
  {
111
120
  "name": "Calendar",
112
121
  "id": "calendar",
@@ -117,6 +126,15 @@
117
126
  "calendar-day"
118
127
  ]
119
128
  },
129
+ {
130
+ "name": "DateInput",
131
+ "id": "date-input",
132
+ "spec": "./components/date-input.json",
133
+ "export": "DateInput",
134
+ "dataRefineui": [
135
+ "date-input"
136
+ ]
137
+ },
120
138
  {
121
139
  "name": "Card",
122
140
  "id": "card",
@@ -197,6 +215,21 @@
197
215
  "chip-remove"
198
216
  ]
199
217
  },
218
+ {
219
+ "name": "CodeBlock",
220
+ "id": "code-block",
221
+ "spec": "./components/code-block.json",
222
+ "export": "CodeBlock",
223
+ "dataRefineui": [
224
+ "code-block",
225
+ "code-block-actions",
226
+ "code-block-content",
227
+ "code-block-copy",
228
+ "code-block-header",
229
+ "code-block-line",
230
+ "code-block-title"
231
+ ]
232
+ },
200
233
  {
201
234
  "name": "Command",
202
235
  "id": "command",
@@ -204,13 +237,13 @@
204
237
  "export": "Command",
205
238
  "dataRefineui": [
206
239
  "command",
240
+ "command-divider",
207
241
  "command-empty",
208
242
  "command-group",
209
243
  "command-group-heading",
210
244
  "command-input",
211
245
  "command-item",
212
246
  "command-list",
213
- "command-separator",
214
247
  "command-shortcut"
215
248
  ]
216
249
  },
@@ -259,10 +292,10 @@
259
292
  "dataRefineui": [
260
293
  "dropdown-item",
261
294
  "dropdown-menu",
295
+ "dropdown-menu-divider",
262
296
  "dropdown-menu-group",
263
297
  "dropdown-menu-label",
264
298
  "dropdown-menu-root",
265
- "dropdown-menu-separator",
266
299
  "dropdown-menu-shortcut"
267
300
  ]
268
301
  },
@@ -667,6 +700,18 @@
667
700
  "tooltip"
668
701
  ]
669
702
  },
703
+ {
704
+ "name": "Toolbar",
705
+ "id": "toolbar",
706
+ "spec": "./components/toolbar.json",
707
+ "export": "Toolbar",
708
+ "dataRefineui": [
709
+ "toolbar",
710
+ "toolbar-button",
711
+ "toolbar-divider",
712
+ "toolbar-group"
713
+ ]
714
+ },
670
715
  {
671
716
  "name": "Tree",
672
717
  "id": "tree",