@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": "refineui.authoring/1",
|
|
3
3
|
"packageName": "@refineui/react",
|
|
4
|
-
"packageVersion": "0.
|
|
4
|
+
"packageVersion": "0.5.0",
|
|
5
5
|
"css": [
|
|
6
6
|
"@refineui/react/refineui.css"
|
|
7
7
|
],
|
|
@@ -142,6 +142,110 @@
|
|
|
142
142
|
}
|
|
143
143
|
]
|
|
144
144
|
},
|
|
145
|
+
{
|
|
146
|
+
"id": "button-group",
|
|
147
|
+
"exportPath": "@refineui/react",
|
|
148
|
+
"exportName": "ButtonGroup",
|
|
149
|
+
"kind": "root",
|
|
150
|
+
"category": "components",
|
|
151
|
+
"label": "Button Group",
|
|
152
|
+
"props": [
|
|
153
|
+
{
|
|
154
|
+
"name": "size",
|
|
155
|
+
"label": "Size",
|
|
156
|
+
"valueType": "enum",
|
|
157
|
+
"control": "segmented",
|
|
158
|
+
"options": [
|
|
159
|
+
"sm",
|
|
160
|
+
"md",
|
|
161
|
+
"lg"
|
|
162
|
+
],
|
|
163
|
+
"defaultValue": "md",
|
|
164
|
+
"section": "variants"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"name": "variant",
|
|
168
|
+
"label": "Variant",
|
|
169
|
+
"valueType": "enum",
|
|
170
|
+
"control": "select",
|
|
171
|
+
"options": [
|
|
172
|
+
"primary",
|
|
173
|
+
"secondary",
|
|
174
|
+
"outline",
|
|
175
|
+
"ghost"
|
|
176
|
+
],
|
|
177
|
+
"defaultValue": "ghost",
|
|
178
|
+
"section": "variants"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"name": "orientation",
|
|
182
|
+
"label": "Orientation",
|
|
183
|
+
"valueType": "enum",
|
|
184
|
+
"control": "segmented",
|
|
185
|
+
"options": [
|
|
186
|
+
"horizontal",
|
|
187
|
+
"vertical"
|
|
188
|
+
],
|
|
189
|
+
"defaultValue": "horizontal",
|
|
190
|
+
"section": "variants"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"name": "attached",
|
|
194
|
+
"label": "Attached",
|
|
195
|
+
"valueType": "boolean",
|
|
196
|
+
"control": "toggle",
|
|
197
|
+
"defaultValue": true,
|
|
198
|
+
"section": "properties"
|
|
199
|
+
}
|
|
200
|
+
],
|
|
201
|
+
"preview": {
|
|
202
|
+
"mode": "full"
|
|
203
|
+
},
|
|
204
|
+
"slots": [
|
|
205
|
+
{
|
|
206
|
+
"name": "children",
|
|
207
|
+
"accepts": [
|
|
208
|
+
"Button"
|
|
209
|
+
],
|
|
210
|
+
"repeatable": true,
|
|
211
|
+
"min": 1
|
|
212
|
+
}
|
|
213
|
+
],
|
|
214
|
+
"presets": [
|
|
215
|
+
{
|
|
216
|
+
"id": "actions",
|
|
217
|
+
"label": "Item actions",
|
|
218
|
+
"root": {
|
|
219
|
+
"component": "ButtonGroup",
|
|
220
|
+
"props": {
|
|
221
|
+
"aria-label": "Item actions"
|
|
222
|
+
},
|
|
223
|
+
"slots": {
|
|
224
|
+
"children": [
|
|
225
|
+
{
|
|
226
|
+
"component": "Button",
|
|
227
|
+
"text": "Edit"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"component": "Button",
|
|
231
|
+
"text": "Duplicate"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"component": "Button",
|
|
235
|
+
"text": "Archive"
|
|
236
|
+
}
|
|
237
|
+
]
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
],
|
|
242
|
+
"events": [
|
|
243
|
+
{
|
|
244
|
+
"name": "click",
|
|
245
|
+
"payload": "void"
|
|
246
|
+
}
|
|
247
|
+
]
|
|
248
|
+
},
|
|
145
249
|
{
|
|
146
250
|
"id": "input",
|
|
147
251
|
"exportPath": "@refineui/react",
|
|
@@ -1596,7 +1700,7 @@
|
|
|
1596
1700
|
"accepts": [
|
|
1597
1701
|
"SelectLabel",
|
|
1598
1702
|
"SelectItem",
|
|
1599
|
-
"
|
|
1703
|
+
"SelectDivider"
|
|
1600
1704
|
],
|
|
1601
1705
|
"repeatable": true
|
|
1602
1706
|
}
|
|
@@ -1786,12 +1890,12 @@
|
|
|
1786
1890
|
]
|
|
1787
1891
|
},
|
|
1788
1892
|
{
|
|
1789
|
-
"id": "select-
|
|
1893
|
+
"id": "select-divider",
|
|
1790
1894
|
"exportPath": "@refineui/react",
|
|
1791
|
-
"exportName": "
|
|
1895
|
+
"exportName": "SelectDivider",
|
|
1792
1896
|
"kind": "part",
|
|
1793
1897
|
"category": "parts",
|
|
1794
|
-
"label": "Select
|
|
1898
|
+
"label": "Select Divider",
|
|
1795
1899
|
"props": [],
|
|
1796
1900
|
"preview": {
|
|
1797
1901
|
"mode": "full"
|
|
@@ -1877,7 +1981,7 @@
|
|
|
1877
1981
|
"accepts": [
|
|
1878
1982
|
"SelectGroup",
|
|
1879
1983
|
"SelectItem",
|
|
1880
|
-
"
|
|
1984
|
+
"SelectDivider"
|
|
1881
1985
|
],
|
|
1882
1986
|
"repeatable": true
|
|
1883
1987
|
}
|
|
@@ -2408,19 +2512,19 @@
|
|
|
2408
2512
|
"CommandEmpty",
|
|
2409
2513
|
"CommandGroup",
|
|
2410
2514
|
"CommandItem",
|
|
2411
|
-
"
|
|
2515
|
+
"CommandDivider"
|
|
2412
2516
|
],
|
|
2413
2517
|
"repeatable": true
|
|
2414
2518
|
}
|
|
2415
2519
|
]
|
|
2416
2520
|
},
|
|
2417
2521
|
{
|
|
2418
|
-
"id": "command-
|
|
2522
|
+
"id": "command-divider",
|
|
2419
2523
|
"exportPath": "@refineui/react",
|
|
2420
|
-
"exportName": "
|
|
2524
|
+
"exportName": "CommandDivider",
|
|
2421
2525
|
"kind": "part",
|
|
2422
2526
|
"category": "parts",
|
|
2423
|
-
"label": "Command
|
|
2527
|
+
"label": "Command Divider",
|
|
2424
2528
|
"props": [],
|
|
2425
2529
|
"preview": {
|
|
2426
2530
|
"mode": "full"
|
|
@@ -6189,7 +6293,7 @@
|
|
|
6189
6293
|
"DropdownGroup",
|
|
6190
6294
|
"DropdownItem",
|
|
6191
6295
|
"DropdownLabel",
|
|
6192
|
-
"
|
|
6296
|
+
"DropdownDivider",
|
|
6193
6297
|
"DropdownSub"
|
|
6194
6298
|
],
|
|
6195
6299
|
"repeatable": true
|
|
@@ -6219,7 +6323,7 @@
|
|
|
6219
6323
|
"accepts": [
|
|
6220
6324
|
"DropdownItem",
|
|
6221
6325
|
"DropdownLabel",
|
|
6222
|
-
"
|
|
6326
|
+
"DropdownDivider",
|
|
6223
6327
|
"DropdownSub"
|
|
6224
6328
|
],
|
|
6225
6329
|
"repeatable": true
|
|
@@ -6308,12 +6412,12 @@
|
|
|
6308
6412
|
]
|
|
6309
6413
|
},
|
|
6310
6414
|
{
|
|
6311
|
-
"id": "dropdown-
|
|
6415
|
+
"id": "dropdown-divider",
|
|
6312
6416
|
"exportPath": "@refineui/react",
|
|
6313
|
-
"exportName": "
|
|
6417
|
+
"exportName": "DropdownDivider",
|
|
6314
6418
|
"kind": "part",
|
|
6315
6419
|
"category": "parts",
|
|
6316
|
-
"label": "Dropdown
|
|
6420
|
+
"label": "Dropdown Divider",
|
|
6317
6421
|
"props": [],
|
|
6318
6422
|
"preview": {
|
|
6319
6423
|
"mode": "full"
|
|
@@ -9665,6 +9769,216 @@
|
|
|
9665
9769
|
}
|
|
9666
9770
|
]
|
|
9667
9771
|
},
|
|
9772
|
+
{
|
|
9773
|
+
"id": "toolbar",
|
|
9774
|
+
"exportPath": "@refineui/react",
|
|
9775
|
+
"exportName": "Toolbar",
|
|
9776
|
+
"kind": "root",
|
|
9777
|
+
"category": "components",
|
|
9778
|
+
"label": "Toolbar",
|
|
9779
|
+
"props": [
|
|
9780
|
+
{
|
|
9781
|
+
"name": "size",
|
|
9782
|
+
"label": "size",
|
|
9783
|
+
"valueType": "enum",
|
|
9784
|
+
"control": "segmented",
|
|
9785
|
+
"options": [
|
|
9786
|
+
"sm",
|
|
9787
|
+
"md",
|
|
9788
|
+
"lg"
|
|
9789
|
+
],
|
|
9790
|
+
"defaultValue": "sm",
|
|
9791
|
+
"section": "variants"
|
|
9792
|
+
},
|
|
9793
|
+
{
|
|
9794
|
+
"name": "orientation",
|
|
9795
|
+
"label": "orientation",
|
|
9796
|
+
"valueType": "enum",
|
|
9797
|
+
"control": "segmented",
|
|
9798
|
+
"options": [
|
|
9799
|
+
"horizontal",
|
|
9800
|
+
"vertical"
|
|
9801
|
+
],
|
|
9802
|
+
"defaultValue": "horizontal",
|
|
9803
|
+
"section": "variants"
|
|
9804
|
+
}
|
|
9805
|
+
],
|
|
9806
|
+
"preview": {
|
|
9807
|
+
"mode": "full"
|
|
9808
|
+
},
|
|
9809
|
+
"slots": [
|
|
9810
|
+
{
|
|
9811
|
+
"name": "children",
|
|
9812
|
+
"accepts": [
|
|
9813
|
+
"ToolbarGroup",
|
|
9814
|
+
"ToolbarButton",
|
|
9815
|
+
"ToolbarToggleButton",
|
|
9816
|
+
"ToolbarDivider"
|
|
9817
|
+
],
|
|
9818
|
+
"repeatable": true
|
|
9819
|
+
}
|
|
9820
|
+
],
|
|
9821
|
+
"presets": [
|
|
9822
|
+
{
|
|
9823
|
+
"id": "formatting",
|
|
9824
|
+
"label": "Text formatting",
|
|
9825
|
+
"root": {
|
|
9826
|
+
"component": "Toolbar",
|
|
9827
|
+
"props": {
|
|
9828
|
+
"label": "Text formatting"
|
|
9829
|
+
},
|
|
9830
|
+
"slots": {
|
|
9831
|
+
"children": [
|
|
9832
|
+
{
|
|
9833
|
+
"component": "ToolbarGroup",
|
|
9834
|
+
"props": {
|
|
9835
|
+
"aria-label": "Text style"
|
|
9836
|
+
},
|
|
9837
|
+
"slots": {
|
|
9838
|
+
"children": [
|
|
9839
|
+
{
|
|
9840
|
+
"component": "ToolbarToggleButton",
|
|
9841
|
+
"props": {
|
|
9842
|
+
"aria-label": "Bold"
|
|
9843
|
+
}
|
|
9844
|
+
},
|
|
9845
|
+
{
|
|
9846
|
+
"component": "ToolbarToggleButton",
|
|
9847
|
+
"props": {
|
|
9848
|
+
"aria-label": "Italic"
|
|
9849
|
+
}
|
|
9850
|
+
}
|
|
9851
|
+
]
|
|
9852
|
+
}
|
|
9853
|
+
},
|
|
9854
|
+
{
|
|
9855
|
+
"component": "ToolbarDivider"
|
|
9856
|
+
},
|
|
9857
|
+
{
|
|
9858
|
+
"component": "ToolbarGroup",
|
|
9859
|
+
"props": {
|
|
9860
|
+
"aria-label": "Clipboard"
|
|
9861
|
+
},
|
|
9862
|
+
"slots": {
|
|
9863
|
+
"children": [
|
|
9864
|
+
{
|
|
9865
|
+
"component": "ToolbarButton",
|
|
9866
|
+
"props": {
|
|
9867
|
+
"aria-label": "Copy"
|
|
9868
|
+
}
|
|
9869
|
+
},
|
|
9870
|
+
{
|
|
9871
|
+
"component": "ToolbarButton",
|
|
9872
|
+
"props": {
|
|
9873
|
+
"aria-label": "Cut"
|
|
9874
|
+
}
|
|
9875
|
+
}
|
|
9876
|
+
]
|
|
9877
|
+
}
|
|
9878
|
+
}
|
|
9879
|
+
]
|
|
9880
|
+
}
|
|
9881
|
+
}
|
|
9882
|
+
}
|
|
9883
|
+
],
|
|
9884
|
+
"events": [
|
|
9885
|
+
{
|
|
9886
|
+
"name": "click",
|
|
9887
|
+
"payload": "void"
|
|
9888
|
+
}
|
|
9889
|
+
]
|
|
9890
|
+
},
|
|
9891
|
+
{
|
|
9892
|
+
"id": "toolbar-button",
|
|
9893
|
+
"exportPath": "@refineui/react",
|
|
9894
|
+
"exportName": "ToolbarButton",
|
|
9895
|
+
"kind": "part",
|
|
9896
|
+
"category": "parts",
|
|
9897
|
+
"label": "Toolbar Button",
|
|
9898
|
+
"props": [],
|
|
9899
|
+
"preview": {
|
|
9900
|
+
"mode": "full"
|
|
9901
|
+
},
|
|
9902
|
+
"parents": [
|
|
9903
|
+
{
|
|
9904
|
+
"component": "Toolbar",
|
|
9905
|
+
"slot": "children"
|
|
9906
|
+
},
|
|
9907
|
+
{
|
|
9908
|
+
"component": "ToolbarGroup",
|
|
9909
|
+
"slot": "children"
|
|
9910
|
+
}
|
|
9911
|
+
]
|
|
9912
|
+
},
|
|
9913
|
+
{
|
|
9914
|
+
"id": "toolbar-group",
|
|
9915
|
+
"exportPath": "@refineui/react",
|
|
9916
|
+
"exportName": "ToolbarGroup",
|
|
9917
|
+
"kind": "part",
|
|
9918
|
+
"category": "parts",
|
|
9919
|
+
"label": "Toolbar Group",
|
|
9920
|
+
"props": [],
|
|
9921
|
+
"preview": {
|
|
9922
|
+
"mode": "full"
|
|
9923
|
+
},
|
|
9924
|
+
"parents": [
|
|
9925
|
+
{
|
|
9926
|
+
"component": "Toolbar",
|
|
9927
|
+
"slot": "children"
|
|
9928
|
+
}
|
|
9929
|
+
],
|
|
9930
|
+
"slots": [
|
|
9931
|
+
{
|
|
9932
|
+
"name": "children",
|
|
9933
|
+
"accepts": [
|
|
9934
|
+
"ToolbarButton",
|
|
9935
|
+
"ToolbarToggleButton"
|
|
9936
|
+
],
|
|
9937
|
+
"repeatable": true,
|
|
9938
|
+
"min": 1
|
|
9939
|
+
}
|
|
9940
|
+
]
|
|
9941
|
+
},
|
|
9942
|
+
{
|
|
9943
|
+
"id": "toolbar-divider",
|
|
9944
|
+
"exportPath": "@refineui/react",
|
|
9945
|
+
"exportName": "ToolbarDivider",
|
|
9946
|
+
"kind": "part",
|
|
9947
|
+
"category": "parts",
|
|
9948
|
+
"label": "Toolbar Divider",
|
|
9949
|
+
"props": [],
|
|
9950
|
+
"preview": {
|
|
9951
|
+
"mode": "full"
|
|
9952
|
+
},
|
|
9953
|
+
"parents": [
|
|
9954
|
+
{
|
|
9955
|
+
"component": "Toolbar",
|
|
9956
|
+
"slot": "children"
|
|
9957
|
+
}
|
|
9958
|
+
]
|
|
9959
|
+
},
|
|
9960
|
+
{
|
|
9961
|
+
"id": "toolbar-toggle-button",
|
|
9962
|
+
"exportPath": "@refineui/react",
|
|
9963
|
+
"exportName": "ToolbarToggleButton",
|
|
9964
|
+
"kind": "part",
|
|
9965
|
+
"category": "parts",
|
|
9966
|
+
"label": "Toolbar Toggle Button",
|
|
9967
|
+
"props": [],
|
|
9968
|
+
"preview": {
|
|
9969
|
+
"mode": "full"
|
|
9970
|
+
},
|
|
9971
|
+
"parents": [
|
|
9972
|
+
{
|
|
9973
|
+
"component": "Toolbar",
|
|
9974
|
+
"slot": "children"
|
|
9975
|
+
},
|
|
9976
|
+
{
|
|
9977
|
+
"component": "ToolbarGroup",
|
|
9978
|
+
"slot": "children"
|
|
9979
|
+
}
|
|
9980
|
+
]
|
|
9981
|
+
},
|
|
9668
9982
|
{
|
|
9669
9983
|
"id": "chart",
|
|
9670
9984
|
"exportPath": "@refineui/react",
|
|
@@ -10321,7 +10635,7 @@
|
|
|
10321
10635
|
"accepts": [
|
|
10322
10636
|
"ContextMenuItem",
|
|
10323
10637
|
"ContextMenuLabel",
|
|
10324
|
-
"
|
|
10638
|
+
"ContextMenuDivider",
|
|
10325
10639
|
"ContextMenuSub"
|
|
10326
10640
|
],
|
|
10327
10641
|
"repeatable": true
|
|
@@ -10433,12 +10747,12 @@
|
|
|
10433
10747
|
]
|
|
10434
10748
|
},
|
|
10435
10749
|
{
|
|
10436
|
-
"id": "context-menu-
|
|
10750
|
+
"id": "context-menu-divider",
|
|
10437
10751
|
"exportPath": "@refineui/react",
|
|
10438
|
-
"exportName": "
|
|
10752
|
+
"exportName": "ContextMenuDivider",
|
|
10439
10753
|
"kind": "part",
|
|
10440
10754
|
"category": "parts",
|
|
10441
|
-
"label": "Context Menu
|
|
10755
|
+
"label": "Context Menu Divider",
|
|
10442
10756
|
"props": [],
|
|
10443
10757
|
"preview": {
|
|
10444
10758
|
"mode": "full"
|
|
@@ -10559,7 +10873,7 @@
|
|
|
10559
10873
|
"accepts": [
|
|
10560
10874
|
"ContextMenuItem",
|
|
10561
10875
|
"ContextMenuLabel",
|
|
10562
|
-
"
|
|
10876
|
+
"ContextMenuDivider",
|
|
10563
10877
|
"ContextMenuSub"
|
|
10564
10878
|
],
|
|
10565
10879
|
"repeatable": true
|
|
@@ -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
|
+
}
|