@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
|
@@ -30,7 +30,7 @@ var import_react = require("react");
|
|
|
30
30
|
var manifest_default = {
|
|
31
31
|
schema: "refineui.authoring/1",
|
|
32
32
|
packageName: "@refineui/react",
|
|
33
|
-
packageVersion: "0.
|
|
33
|
+
packageVersion: "0.5.0",
|
|
34
34
|
css: [
|
|
35
35
|
"@refineui/react/refineui.css"
|
|
36
36
|
],
|
|
@@ -171,6 +171,110 @@ var manifest_default = {
|
|
|
171
171
|
}
|
|
172
172
|
]
|
|
173
173
|
},
|
|
174
|
+
{
|
|
175
|
+
id: "button-group",
|
|
176
|
+
exportPath: "@refineui/react",
|
|
177
|
+
exportName: "ButtonGroup",
|
|
178
|
+
kind: "root",
|
|
179
|
+
category: "components",
|
|
180
|
+
label: "Button Group",
|
|
181
|
+
props: [
|
|
182
|
+
{
|
|
183
|
+
name: "size",
|
|
184
|
+
label: "Size",
|
|
185
|
+
valueType: "enum",
|
|
186
|
+
control: "segmented",
|
|
187
|
+
options: [
|
|
188
|
+
"sm",
|
|
189
|
+
"md",
|
|
190
|
+
"lg"
|
|
191
|
+
],
|
|
192
|
+
defaultValue: "md",
|
|
193
|
+
section: "variants"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
name: "variant",
|
|
197
|
+
label: "Variant",
|
|
198
|
+
valueType: "enum",
|
|
199
|
+
control: "select",
|
|
200
|
+
options: [
|
|
201
|
+
"primary",
|
|
202
|
+
"secondary",
|
|
203
|
+
"outline",
|
|
204
|
+
"ghost"
|
|
205
|
+
],
|
|
206
|
+
defaultValue: "ghost",
|
|
207
|
+
section: "variants"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
name: "orientation",
|
|
211
|
+
label: "Orientation",
|
|
212
|
+
valueType: "enum",
|
|
213
|
+
control: "segmented",
|
|
214
|
+
options: [
|
|
215
|
+
"horizontal",
|
|
216
|
+
"vertical"
|
|
217
|
+
],
|
|
218
|
+
defaultValue: "horizontal",
|
|
219
|
+
section: "variants"
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
name: "attached",
|
|
223
|
+
label: "Attached",
|
|
224
|
+
valueType: "boolean",
|
|
225
|
+
control: "toggle",
|
|
226
|
+
defaultValue: true,
|
|
227
|
+
section: "properties"
|
|
228
|
+
}
|
|
229
|
+
],
|
|
230
|
+
preview: {
|
|
231
|
+
mode: "full"
|
|
232
|
+
},
|
|
233
|
+
slots: [
|
|
234
|
+
{
|
|
235
|
+
name: "children",
|
|
236
|
+
accepts: [
|
|
237
|
+
"Button"
|
|
238
|
+
],
|
|
239
|
+
repeatable: true,
|
|
240
|
+
min: 1
|
|
241
|
+
}
|
|
242
|
+
],
|
|
243
|
+
presets: [
|
|
244
|
+
{
|
|
245
|
+
id: "actions",
|
|
246
|
+
label: "Item actions",
|
|
247
|
+
root: {
|
|
248
|
+
component: "ButtonGroup",
|
|
249
|
+
props: {
|
|
250
|
+
"aria-label": "Item actions"
|
|
251
|
+
},
|
|
252
|
+
slots: {
|
|
253
|
+
children: [
|
|
254
|
+
{
|
|
255
|
+
component: "Button",
|
|
256
|
+
text: "Edit"
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
component: "Button",
|
|
260
|
+
text: "Duplicate"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
component: "Button",
|
|
264
|
+
text: "Archive"
|
|
265
|
+
}
|
|
266
|
+
]
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
],
|
|
271
|
+
events: [
|
|
272
|
+
{
|
|
273
|
+
name: "click",
|
|
274
|
+
payload: "void"
|
|
275
|
+
}
|
|
276
|
+
]
|
|
277
|
+
},
|
|
174
278
|
{
|
|
175
279
|
id: "input",
|
|
176
280
|
exportPath: "@refineui/react",
|
|
@@ -1625,7 +1729,7 @@ var manifest_default = {
|
|
|
1625
1729
|
accepts: [
|
|
1626
1730
|
"SelectLabel",
|
|
1627
1731
|
"SelectItem",
|
|
1628
|
-
"
|
|
1732
|
+
"SelectDivider"
|
|
1629
1733
|
],
|
|
1630
1734
|
repeatable: true
|
|
1631
1735
|
}
|
|
@@ -1815,12 +1919,12 @@ var manifest_default = {
|
|
|
1815
1919
|
]
|
|
1816
1920
|
},
|
|
1817
1921
|
{
|
|
1818
|
-
id: "select-
|
|
1922
|
+
id: "select-divider",
|
|
1819
1923
|
exportPath: "@refineui/react",
|
|
1820
|
-
exportName: "
|
|
1924
|
+
exportName: "SelectDivider",
|
|
1821
1925
|
kind: "part",
|
|
1822
1926
|
category: "parts",
|
|
1823
|
-
label: "Select
|
|
1927
|
+
label: "Select Divider",
|
|
1824
1928
|
props: [],
|
|
1825
1929
|
preview: {
|
|
1826
1930
|
mode: "full"
|
|
@@ -1906,7 +2010,7 @@ var manifest_default = {
|
|
|
1906
2010
|
accepts: [
|
|
1907
2011
|
"SelectGroup",
|
|
1908
2012
|
"SelectItem",
|
|
1909
|
-
"
|
|
2013
|
+
"SelectDivider"
|
|
1910
2014
|
],
|
|
1911
2015
|
repeatable: true
|
|
1912
2016
|
}
|
|
@@ -2437,19 +2541,19 @@ var manifest_default = {
|
|
|
2437
2541
|
"CommandEmpty",
|
|
2438
2542
|
"CommandGroup",
|
|
2439
2543
|
"CommandItem",
|
|
2440
|
-
"
|
|
2544
|
+
"CommandDivider"
|
|
2441
2545
|
],
|
|
2442
2546
|
repeatable: true
|
|
2443
2547
|
}
|
|
2444
2548
|
]
|
|
2445
2549
|
},
|
|
2446
2550
|
{
|
|
2447
|
-
id: "command-
|
|
2551
|
+
id: "command-divider",
|
|
2448
2552
|
exportPath: "@refineui/react",
|
|
2449
|
-
exportName: "
|
|
2553
|
+
exportName: "CommandDivider",
|
|
2450
2554
|
kind: "part",
|
|
2451
2555
|
category: "parts",
|
|
2452
|
-
label: "Command
|
|
2556
|
+
label: "Command Divider",
|
|
2453
2557
|
props: [],
|
|
2454
2558
|
preview: {
|
|
2455
2559
|
mode: "full"
|
|
@@ -6218,7 +6322,7 @@ var manifest_default = {
|
|
|
6218
6322
|
"DropdownGroup",
|
|
6219
6323
|
"DropdownItem",
|
|
6220
6324
|
"DropdownLabel",
|
|
6221
|
-
"
|
|
6325
|
+
"DropdownDivider",
|
|
6222
6326
|
"DropdownSub"
|
|
6223
6327
|
],
|
|
6224
6328
|
repeatable: true
|
|
@@ -6248,7 +6352,7 @@ var manifest_default = {
|
|
|
6248
6352
|
accepts: [
|
|
6249
6353
|
"DropdownItem",
|
|
6250
6354
|
"DropdownLabel",
|
|
6251
|
-
"
|
|
6355
|
+
"DropdownDivider",
|
|
6252
6356
|
"DropdownSub"
|
|
6253
6357
|
],
|
|
6254
6358
|
repeatable: true
|
|
@@ -6337,12 +6441,12 @@ var manifest_default = {
|
|
|
6337
6441
|
]
|
|
6338
6442
|
},
|
|
6339
6443
|
{
|
|
6340
|
-
id: "dropdown-
|
|
6444
|
+
id: "dropdown-divider",
|
|
6341
6445
|
exportPath: "@refineui/react",
|
|
6342
|
-
exportName: "
|
|
6446
|
+
exportName: "DropdownDivider",
|
|
6343
6447
|
kind: "part",
|
|
6344
6448
|
category: "parts",
|
|
6345
|
-
label: "Dropdown
|
|
6449
|
+
label: "Dropdown Divider",
|
|
6346
6450
|
props: [],
|
|
6347
6451
|
preview: {
|
|
6348
6452
|
mode: "full"
|
|
@@ -9694,6 +9798,216 @@ var manifest_default = {
|
|
|
9694
9798
|
}
|
|
9695
9799
|
]
|
|
9696
9800
|
},
|
|
9801
|
+
{
|
|
9802
|
+
id: "toolbar",
|
|
9803
|
+
exportPath: "@refineui/react",
|
|
9804
|
+
exportName: "Toolbar",
|
|
9805
|
+
kind: "root",
|
|
9806
|
+
category: "components",
|
|
9807
|
+
label: "Toolbar",
|
|
9808
|
+
props: [
|
|
9809
|
+
{
|
|
9810
|
+
name: "size",
|
|
9811
|
+
label: "size",
|
|
9812
|
+
valueType: "enum",
|
|
9813
|
+
control: "segmented",
|
|
9814
|
+
options: [
|
|
9815
|
+
"sm",
|
|
9816
|
+
"md",
|
|
9817
|
+
"lg"
|
|
9818
|
+
],
|
|
9819
|
+
defaultValue: "sm",
|
|
9820
|
+
section: "variants"
|
|
9821
|
+
},
|
|
9822
|
+
{
|
|
9823
|
+
name: "orientation",
|
|
9824
|
+
label: "orientation",
|
|
9825
|
+
valueType: "enum",
|
|
9826
|
+
control: "segmented",
|
|
9827
|
+
options: [
|
|
9828
|
+
"horizontal",
|
|
9829
|
+
"vertical"
|
|
9830
|
+
],
|
|
9831
|
+
defaultValue: "horizontal",
|
|
9832
|
+
section: "variants"
|
|
9833
|
+
}
|
|
9834
|
+
],
|
|
9835
|
+
preview: {
|
|
9836
|
+
mode: "full"
|
|
9837
|
+
},
|
|
9838
|
+
slots: [
|
|
9839
|
+
{
|
|
9840
|
+
name: "children",
|
|
9841
|
+
accepts: [
|
|
9842
|
+
"ToolbarGroup",
|
|
9843
|
+
"ToolbarButton",
|
|
9844
|
+
"ToolbarToggleButton",
|
|
9845
|
+
"ToolbarDivider"
|
|
9846
|
+
],
|
|
9847
|
+
repeatable: true
|
|
9848
|
+
}
|
|
9849
|
+
],
|
|
9850
|
+
presets: [
|
|
9851
|
+
{
|
|
9852
|
+
id: "formatting",
|
|
9853
|
+
label: "Text formatting",
|
|
9854
|
+
root: {
|
|
9855
|
+
component: "Toolbar",
|
|
9856
|
+
props: {
|
|
9857
|
+
label: "Text formatting"
|
|
9858
|
+
},
|
|
9859
|
+
slots: {
|
|
9860
|
+
children: [
|
|
9861
|
+
{
|
|
9862
|
+
component: "ToolbarGroup",
|
|
9863
|
+
props: {
|
|
9864
|
+
"aria-label": "Text style"
|
|
9865
|
+
},
|
|
9866
|
+
slots: {
|
|
9867
|
+
children: [
|
|
9868
|
+
{
|
|
9869
|
+
component: "ToolbarToggleButton",
|
|
9870
|
+
props: {
|
|
9871
|
+
"aria-label": "Bold"
|
|
9872
|
+
}
|
|
9873
|
+
},
|
|
9874
|
+
{
|
|
9875
|
+
component: "ToolbarToggleButton",
|
|
9876
|
+
props: {
|
|
9877
|
+
"aria-label": "Italic"
|
|
9878
|
+
}
|
|
9879
|
+
}
|
|
9880
|
+
]
|
|
9881
|
+
}
|
|
9882
|
+
},
|
|
9883
|
+
{
|
|
9884
|
+
component: "ToolbarDivider"
|
|
9885
|
+
},
|
|
9886
|
+
{
|
|
9887
|
+
component: "ToolbarGroup",
|
|
9888
|
+
props: {
|
|
9889
|
+
"aria-label": "Clipboard"
|
|
9890
|
+
},
|
|
9891
|
+
slots: {
|
|
9892
|
+
children: [
|
|
9893
|
+
{
|
|
9894
|
+
component: "ToolbarButton",
|
|
9895
|
+
props: {
|
|
9896
|
+
"aria-label": "Copy"
|
|
9897
|
+
}
|
|
9898
|
+
},
|
|
9899
|
+
{
|
|
9900
|
+
component: "ToolbarButton",
|
|
9901
|
+
props: {
|
|
9902
|
+
"aria-label": "Cut"
|
|
9903
|
+
}
|
|
9904
|
+
}
|
|
9905
|
+
]
|
|
9906
|
+
}
|
|
9907
|
+
}
|
|
9908
|
+
]
|
|
9909
|
+
}
|
|
9910
|
+
}
|
|
9911
|
+
}
|
|
9912
|
+
],
|
|
9913
|
+
events: [
|
|
9914
|
+
{
|
|
9915
|
+
name: "click",
|
|
9916
|
+
payload: "void"
|
|
9917
|
+
}
|
|
9918
|
+
]
|
|
9919
|
+
},
|
|
9920
|
+
{
|
|
9921
|
+
id: "toolbar-button",
|
|
9922
|
+
exportPath: "@refineui/react",
|
|
9923
|
+
exportName: "ToolbarButton",
|
|
9924
|
+
kind: "part",
|
|
9925
|
+
category: "parts",
|
|
9926
|
+
label: "Toolbar Button",
|
|
9927
|
+
props: [],
|
|
9928
|
+
preview: {
|
|
9929
|
+
mode: "full"
|
|
9930
|
+
},
|
|
9931
|
+
parents: [
|
|
9932
|
+
{
|
|
9933
|
+
component: "Toolbar",
|
|
9934
|
+
slot: "children"
|
|
9935
|
+
},
|
|
9936
|
+
{
|
|
9937
|
+
component: "ToolbarGroup",
|
|
9938
|
+
slot: "children"
|
|
9939
|
+
}
|
|
9940
|
+
]
|
|
9941
|
+
},
|
|
9942
|
+
{
|
|
9943
|
+
id: "toolbar-group",
|
|
9944
|
+
exportPath: "@refineui/react",
|
|
9945
|
+
exportName: "ToolbarGroup",
|
|
9946
|
+
kind: "part",
|
|
9947
|
+
category: "parts",
|
|
9948
|
+
label: "Toolbar Group",
|
|
9949
|
+
props: [],
|
|
9950
|
+
preview: {
|
|
9951
|
+
mode: "full"
|
|
9952
|
+
},
|
|
9953
|
+
parents: [
|
|
9954
|
+
{
|
|
9955
|
+
component: "Toolbar",
|
|
9956
|
+
slot: "children"
|
|
9957
|
+
}
|
|
9958
|
+
],
|
|
9959
|
+
slots: [
|
|
9960
|
+
{
|
|
9961
|
+
name: "children",
|
|
9962
|
+
accepts: [
|
|
9963
|
+
"ToolbarButton",
|
|
9964
|
+
"ToolbarToggleButton"
|
|
9965
|
+
],
|
|
9966
|
+
repeatable: true,
|
|
9967
|
+
min: 1
|
|
9968
|
+
}
|
|
9969
|
+
]
|
|
9970
|
+
},
|
|
9971
|
+
{
|
|
9972
|
+
id: "toolbar-divider",
|
|
9973
|
+
exportPath: "@refineui/react",
|
|
9974
|
+
exportName: "ToolbarDivider",
|
|
9975
|
+
kind: "part",
|
|
9976
|
+
category: "parts",
|
|
9977
|
+
label: "Toolbar Divider",
|
|
9978
|
+
props: [],
|
|
9979
|
+
preview: {
|
|
9980
|
+
mode: "full"
|
|
9981
|
+
},
|
|
9982
|
+
parents: [
|
|
9983
|
+
{
|
|
9984
|
+
component: "Toolbar",
|
|
9985
|
+
slot: "children"
|
|
9986
|
+
}
|
|
9987
|
+
]
|
|
9988
|
+
},
|
|
9989
|
+
{
|
|
9990
|
+
id: "toolbar-toggle-button",
|
|
9991
|
+
exportPath: "@refineui/react",
|
|
9992
|
+
exportName: "ToolbarToggleButton",
|
|
9993
|
+
kind: "part",
|
|
9994
|
+
category: "parts",
|
|
9995
|
+
label: "Toolbar Toggle Button",
|
|
9996
|
+
props: [],
|
|
9997
|
+
preview: {
|
|
9998
|
+
mode: "full"
|
|
9999
|
+
},
|
|
10000
|
+
parents: [
|
|
10001
|
+
{
|
|
10002
|
+
component: "Toolbar",
|
|
10003
|
+
slot: "children"
|
|
10004
|
+
},
|
|
10005
|
+
{
|
|
10006
|
+
component: "ToolbarGroup",
|
|
10007
|
+
slot: "children"
|
|
10008
|
+
}
|
|
10009
|
+
]
|
|
10010
|
+
},
|
|
9697
10011
|
{
|
|
9698
10012
|
id: "chart",
|
|
9699
10013
|
exportPath: "@refineui/react",
|
|
@@ -10350,7 +10664,7 @@ var manifest_default = {
|
|
|
10350
10664
|
accepts: [
|
|
10351
10665
|
"ContextMenuItem",
|
|
10352
10666
|
"ContextMenuLabel",
|
|
10353
|
-
"
|
|
10667
|
+
"ContextMenuDivider",
|
|
10354
10668
|
"ContextMenuSub"
|
|
10355
10669
|
],
|
|
10356
10670
|
repeatable: true
|
|
@@ -10462,12 +10776,12 @@ var manifest_default = {
|
|
|
10462
10776
|
]
|
|
10463
10777
|
},
|
|
10464
10778
|
{
|
|
10465
|
-
id: "context-menu-
|
|
10779
|
+
id: "context-menu-divider",
|
|
10466
10780
|
exportPath: "@refineui/react",
|
|
10467
|
-
exportName: "
|
|
10781
|
+
exportName: "ContextMenuDivider",
|
|
10468
10782
|
kind: "part",
|
|
10469
10783
|
category: "parts",
|
|
10470
|
-
label: "Context Menu
|
|
10784
|
+
label: "Context Menu Divider",
|
|
10471
10785
|
props: [],
|
|
10472
10786
|
preview: {
|
|
10473
10787
|
mode: "full"
|
|
@@ -10588,7 +10902,7 @@ var manifest_default = {
|
|
|
10588
10902
|
accepts: [
|
|
10589
10903
|
"ContextMenuItem",
|
|
10590
10904
|
"ContextMenuLabel",
|
|
10591
|
-
"
|
|
10905
|
+
"ContextMenuDivider",
|
|
10592
10906
|
"ContextMenuSub"
|
|
10593
10907
|
],
|
|
10594
10908
|
repeatable: true
|