@refineui/react 0.4.1 → 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.
- package/dist/authoring-manifest.cjs +334 -20
- package/dist/authoring-manifest.cjs.map +1 -1
- package/dist/authoring-manifest.js +334 -20
- package/dist/authoring-manifest.js.map +1 -1
- package/dist/index.cjs +2643 -1995
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +77 -10
- package/dist/index.d.ts +77 -10
- package/dist/index.js +2354 -1714
- package/dist/index.js.map +1 -1
- package/dist/spec/authoring/components/button-group.json +104 -0
- package/dist/spec/authoring/components/{command-separator.json → command-divider.json} +3 -3
- package/dist/spec/authoring/components/command-list.json +1 -1
- package/dist/spec/authoring/components/context-menu-content.json +1 -1
- package/{spec/authoring/components/context-menu-separator.json → dist/spec/authoring/components/context-menu-divider.json} +3 -3
- package/dist/spec/authoring/components/context-menu-sub-content.json +1 -1
- package/dist/spec/authoring/components/dropdown-content.json +1 -1
- package/{spec/authoring/components/dropdown-separator.json → dist/spec/authoring/components/dropdown-divider.json} +3 -3
- package/dist/spec/authoring/components/dropdown-group.json +1 -1
- package/{spec/authoring/components/select-separator.json → dist/spec/authoring/components/select-divider.json} +3 -3
- package/dist/spec/authoring/components/select-group.json +1 -1
- package/dist/spec/authoring/components/select-viewport.json +1 -1
- package/dist/spec/authoring/components/toolbar-button.json +22 -0
- package/dist/spec/authoring/components/toolbar-divider.json +18 -0
- package/dist/spec/authoring/components/toolbar-group.json +29 -0
- package/dist/spec/authoring/components/toolbar-toggle-button.json +22 -0
- package/dist/spec/authoring/components/toolbar.json +119 -0
- package/dist/spec/authoring/manifest.json +334 -20
- package/dist/spec/components/button-group.json +77 -0
- package/dist/spec/components/command.json +1 -1
- package/dist/spec/components/dropdown.json +1 -1
- package/dist/spec/components/toolbar.json +91 -0
- package/dist/spec/contract-index.json +24 -3
- package/dist/spec/manifest.json +23 -2
- package/dist/spec/token-trace-v2.json +1 -1
- package/package.json +1 -1
- package/refineui.css +116 -9
- package/spec/authoring/components/button-group.json +104 -0
- package/spec/authoring/components/{command-separator.json → command-divider.json} +3 -3
- package/spec/authoring/components/command-list.json +1 -1
- package/spec/authoring/components/context-menu-content.json +1 -1
- package/{dist/spec/authoring/components/context-menu-separator.json → spec/authoring/components/context-menu-divider.json} +3 -3
- package/spec/authoring/components/context-menu-sub-content.json +1 -1
- package/spec/authoring/components/dropdown-content.json +1 -1
- package/{dist/spec/authoring/components/dropdown-separator.json → spec/authoring/components/dropdown-divider.json} +3 -3
- package/spec/authoring/components/dropdown-group.json +1 -1
- package/{dist/spec/authoring/components/select-separator.json → spec/authoring/components/select-divider.json} +3 -3
- package/spec/authoring/components/select-group.json +1 -1
- package/spec/authoring/components/select-viewport.json +1 -1
- package/spec/authoring/components/toolbar-button.json +22 -0
- package/spec/authoring/components/toolbar-divider.json +18 -0
- package/spec/authoring/components/toolbar-group.json +29 -0
- package/spec/authoring/components/toolbar-toggle-button.json +22 -0
- package/spec/authoring/components/toolbar.json +119 -0
- package/spec/authoring/manifest.json +334 -20
- package/spec/components/button-group.json +77 -0
- package/spec/components/command.json +1 -1
- package/spec/components/dropdown.json +1 -1
- package/spec/components/toolbar.json +91 -0
- package/spec/manifest.json +23 -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
|
+
}
|
|
@@ -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
|
+
}
|
package/spec/manifest.json
CHANGED
|
@@ -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",
|
|
@@ -228,13 +237,13 @@
|
|
|
228
237
|
"export": "Command",
|
|
229
238
|
"dataRefineui": [
|
|
230
239
|
"command",
|
|
240
|
+
"command-divider",
|
|
231
241
|
"command-empty",
|
|
232
242
|
"command-group",
|
|
233
243
|
"command-group-heading",
|
|
234
244
|
"command-input",
|
|
235
245
|
"command-item",
|
|
236
246
|
"command-list",
|
|
237
|
-
"command-separator",
|
|
238
247
|
"command-shortcut"
|
|
239
248
|
]
|
|
240
249
|
},
|
|
@@ -283,10 +292,10 @@
|
|
|
283
292
|
"dataRefineui": [
|
|
284
293
|
"dropdown-item",
|
|
285
294
|
"dropdown-menu",
|
|
295
|
+
"dropdown-menu-divider",
|
|
286
296
|
"dropdown-menu-group",
|
|
287
297
|
"dropdown-menu-label",
|
|
288
298
|
"dropdown-menu-root",
|
|
289
|
-
"dropdown-menu-separator",
|
|
290
299
|
"dropdown-menu-shortcut"
|
|
291
300
|
]
|
|
292
301
|
},
|
|
@@ -691,6 +700,18 @@
|
|
|
691
700
|
"tooltip"
|
|
692
701
|
]
|
|
693
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
|
+
},
|
|
694
715
|
{
|
|
695
716
|
"name": "Tree",
|
|
696
717
|
"id": "tree",
|