@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
|
@@ -5,7 +5,7 @@ import { createElement } from "react";
|
|
|
5
5
|
var manifest_default = {
|
|
6
6
|
schema: "refineui.authoring/1",
|
|
7
7
|
packageName: "@refineui/react",
|
|
8
|
-
packageVersion: "0.
|
|
8
|
+
packageVersion: "0.5.0",
|
|
9
9
|
css: [
|
|
10
10
|
"@refineui/react/refineui.css"
|
|
11
11
|
],
|
|
@@ -146,6 +146,110 @@ var manifest_default = {
|
|
|
146
146
|
}
|
|
147
147
|
]
|
|
148
148
|
},
|
|
149
|
+
{
|
|
150
|
+
id: "button-group",
|
|
151
|
+
exportPath: "@refineui/react",
|
|
152
|
+
exportName: "ButtonGroup",
|
|
153
|
+
kind: "root",
|
|
154
|
+
category: "components",
|
|
155
|
+
label: "Button Group",
|
|
156
|
+
props: [
|
|
157
|
+
{
|
|
158
|
+
name: "size",
|
|
159
|
+
label: "Size",
|
|
160
|
+
valueType: "enum",
|
|
161
|
+
control: "segmented",
|
|
162
|
+
options: [
|
|
163
|
+
"sm",
|
|
164
|
+
"md",
|
|
165
|
+
"lg"
|
|
166
|
+
],
|
|
167
|
+
defaultValue: "md",
|
|
168
|
+
section: "variants"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
name: "variant",
|
|
172
|
+
label: "Variant",
|
|
173
|
+
valueType: "enum",
|
|
174
|
+
control: "select",
|
|
175
|
+
options: [
|
|
176
|
+
"primary",
|
|
177
|
+
"secondary",
|
|
178
|
+
"outline",
|
|
179
|
+
"ghost"
|
|
180
|
+
],
|
|
181
|
+
defaultValue: "ghost",
|
|
182
|
+
section: "variants"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
name: "orientation",
|
|
186
|
+
label: "Orientation",
|
|
187
|
+
valueType: "enum",
|
|
188
|
+
control: "segmented",
|
|
189
|
+
options: [
|
|
190
|
+
"horizontal",
|
|
191
|
+
"vertical"
|
|
192
|
+
],
|
|
193
|
+
defaultValue: "horizontal",
|
|
194
|
+
section: "variants"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
name: "attached",
|
|
198
|
+
label: "Attached",
|
|
199
|
+
valueType: "boolean",
|
|
200
|
+
control: "toggle",
|
|
201
|
+
defaultValue: true,
|
|
202
|
+
section: "properties"
|
|
203
|
+
}
|
|
204
|
+
],
|
|
205
|
+
preview: {
|
|
206
|
+
mode: "full"
|
|
207
|
+
},
|
|
208
|
+
slots: [
|
|
209
|
+
{
|
|
210
|
+
name: "children",
|
|
211
|
+
accepts: [
|
|
212
|
+
"Button"
|
|
213
|
+
],
|
|
214
|
+
repeatable: true,
|
|
215
|
+
min: 1
|
|
216
|
+
}
|
|
217
|
+
],
|
|
218
|
+
presets: [
|
|
219
|
+
{
|
|
220
|
+
id: "actions",
|
|
221
|
+
label: "Item actions",
|
|
222
|
+
root: {
|
|
223
|
+
component: "ButtonGroup",
|
|
224
|
+
props: {
|
|
225
|
+
"aria-label": "Item actions"
|
|
226
|
+
},
|
|
227
|
+
slots: {
|
|
228
|
+
children: [
|
|
229
|
+
{
|
|
230
|
+
component: "Button",
|
|
231
|
+
text: "Edit"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
component: "Button",
|
|
235
|
+
text: "Duplicate"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
component: "Button",
|
|
239
|
+
text: "Archive"
|
|
240
|
+
}
|
|
241
|
+
]
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
],
|
|
246
|
+
events: [
|
|
247
|
+
{
|
|
248
|
+
name: "click",
|
|
249
|
+
payload: "void"
|
|
250
|
+
}
|
|
251
|
+
]
|
|
252
|
+
},
|
|
149
253
|
{
|
|
150
254
|
id: "input",
|
|
151
255
|
exportPath: "@refineui/react",
|
|
@@ -1600,7 +1704,7 @@ var manifest_default = {
|
|
|
1600
1704
|
accepts: [
|
|
1601
1705
|
"SelectLabel",
|
|
1602
1706
|
"SelectItem",
|
|
1603
|
-
"
|
|
1707
|
+
"SelectDivider"
|
|
1604
1708
|
],
|
|
1605
1709
|
repeatable: true
|
|
1606
1710
|
}
|
|
@@ -1790,12 +1894,12 @@ var manifest_default = {
|
|
|
1790
1894
|
]
|
|
1791
1895
|
},
|
|
1792
1896
|
{
|
|
1793
|
-
id: "select-
|
|
1897
|
+
id: "select-divider",
|
|
1794
1898
|
exportPath: "@refineui/react",
|
|
1795
|
-
exportName: "
|
|
1899
|
+
exportName: "SelectDivider",
|
|
1796
1900
|
kind: "part",
|
|
1797
1901
|
category: "parts",
|
|
1798
|
-
label: "Select
|
|
1902
|
+
label: "Select Divider",
|
|
1799
1903
|
props: [],
|
|
1800
1904
|
preview: {
|
|
1801
1905
|
mode: "full"
|
|
@@ -1881,7 +1985,7 @@ var manifest_default = {
|
|
|
1881
1985
|
accepts: [
|
|
1882
1986
|
"SelectGroup",
|
|
1883
1987
|
"SelectItem",
|
|
1884
|
-
"
|
|
1988
|
+
"SelectDivider"
|
|
1885
1989
|
],
|
|
1886
1990
|
repeatable: true
|
|
1887
1991
|
}
|
|
@@ -2412,19 +2516,19 @@ var manifest_default = {
|
|
|
2412
2516
|
"CommandEmpty",
|
|
2413
2517
|
"CommandGroup",
|
|
2414
2518
|
"CommandItem",
|
|
2415
|
-
"
|
|
2519
|
+
"CommandDivider"
|
|
2416
2520
|
],
|
|
2417
2521
|
repeatable: true
|
|
2418
2522
|
}
|
|
2419
2523
|
]
|
|
2420
2524
|
},
|
|
2421
2525
|
{
|
|
2422
|
-
id: "command-
|
|
2526
|
+
id: "command-divider",
|
|
2423
2527
|
exportPath: "@refineui/react",
|
|
2424
|
-
exportName: "
|
|
2528
|
+
exportName: "CommandDivider",
|
|
2425
2529
|
kind: "part",
|
|
2426
2530
|
category: "parts",
|
|
2427
|
-
label: "Command
|
|
2531
|
+
label: "Command Divider",
|
|
2428
2532
|
props: [],
|
|
2429
2533
|
preview: {
|
|
2430
2534
|
mode: "full"
|
|
@@ -6193,7 +6297,7 @@ var manifest_default = {
|
|
|
6193
6297
|
"DropdownGroup",
|
|
6194
6298
|
"DropdownItem",
|
|
6195
6299
|
"DropdownLabel",
|
|
6196
|
-
"
|
|
6300
|
+
"DropdownDivider",
|
|
6197
6301
|
"DropdownSub"
|
|
6198
6302
|
],
|
|
6199
6303
|
repeatable: true
|
|
@@ -6223,7 +6327,7 @@ var manifest_default = {
|
|
|
6223
6327
|
accepts: [
|
|
6224
6328
|
"DropdownItem",
|
|
6225
6329
|
"DropdownLabel",
|
|
6226
|
-
"
|
|
6330
|
+
"DropdownDivider",
|
|
6227
6331
|
"DropdownSub"
|
|
6228
6332
|
],
|
|
6229
6333
|
repeatable: true
|
|
@@ -6312,12 +6416,12 @@ var manifest_default = {
|
|
|
6312
6416
|
]
|
|
6313
6417
|
},
|
|
6314
6418
|
{
|
|
6315
|
-
id: "dropdown-
|
|
6419
|
+
id: "dropdown-divider",
|
|
6316
6420
|
exportPath: "@refineui/react",
|
|
6317
|
-
exportName: "
|
|
6421
|
+
exportName: "DropdownDivider",
|
|
6318
6422
|
kind: "part",
|
|
6319
6423
|
category: "parts",
|
|
6320
|
-
label: "Dropdown
|
|
6424
|
+
label: "Dropdown Divider",
|
|
6321
6425
|
props: [],
|
|
6322
6426
|
preview: {
|
|
6323
6427
|
mode: "full"
|
|
@@ -9669,6 +9773,216 @@ var manifest_default = {
|
|
|
9669
9773
|
}
|
|
9670
9774
|
]
|
|
9671
9775
|
},
|
|
9776
|
+
{
|
|
9777
|
+
id: "toolbar",
|
|
9778
|
+
exportPath: "@refineui/react",
|
|
9779
|
+
exportName: "Toolbar",
|
|
9780
|
+
kind: "root",
|
|
9781
|
+
category: "components",
|
|
9782
|
+
label: "Toolbar",
|
|
9783
|
+
props: [
|
|
9784
|
+
{
|
|
9785
|
+
name: "size",
|
|
9786
|
+
label: "size",
|
|
9787
|
+
valueType: "enum",
|
|
9788
|
+
control: "segmented",
|
|
9789
|
+
options: [
|
|
9790
|
+
"sm",
|
|
9791
|
+
"md",
|
|
9792
|
+
"lg"
|
|
9793
|
+
],
|
|
9794
|
+
defaultValue: "sm",
|
|
9795
|
+
section: "variants"
|
|
9796
|
+
},
|
|
9797
|
+
{
|
|
9798
|
+
name: "orientation",
|
|
9799
|
+
label: "orientation",
|
|
9800
|
+
valueType: "enum",
|
|
9801
|
+
control: "segmented",
|
|
9802
|
+
options: [
|
|
9803
|
+
"horizontal",
|
|
9804
|
+
"vertical"
|
|
9805
|
+
],
|
|
9806
|
+
defaultValue: "horizontal",
|
|
9807
|
+
section: "variants"
|
|
9808
|
+
}
|
|
9809
|
+
],
|
|
9810
|
+
preview: {
|
|
9811
|
+
mode: "full"
|
|
9812
|
+
},
|
|
9813
|
+
slots: [
|
|
9814
|
+
{
|
|
9815
|
+
name: "children",
|
|
9816
|
+
accepts: [
|
|
9817
|
+
"ToolbarGroup",
|
|
9818
|
+
"ToolbarButton",
|
|
9819
|
+
"ToolbarToggleButton",
|
|
9820
|
+
"ToolbarDivider"
|
|
9821
|
+
],
|
|
9822
|
+
repeatable: true
|
|
9823
|
+
}
|
|
9824
|
+
],
|
|
9825
|
+
presets: [
|
|
9826
|
+
{
|
|
9827
|
+
id: "formatting",
|
|
9828
|
+
label: "Text formatting",
|
|
9829
|
+
root: {
|
|
9830
|
+
component: "Toolbar",
|
|
9831
|
+
props: {
|
|
9832
|
+
label: "Text formatting"
|
|
9833
|
+
},
|
|
9834
|
+
slots: {
|
|
9835
|
+
children: [
|
|
9836
|
+
{
|
|
9837
|
+
component: "ToolbarGroup",
|
|
9838
|
+
props: {
|
|
9839
|
+
"aria-label": "Text style"
|
|
9840
|
+
},
|
|
9841
|
+
slots: {
|
|
9842
|
+
children: [
|
|
9843
|
+
{
|
|
9844
|
+
component: "ToolbarToggleButton",
|
|
9845
|
+
props: {
|
|
9846
|
+
"aria-label": "Bold"
|
|
9847
|
+
}
|
|
9848
|
+
},
|
|
9849
|
+
{
|
|
9850
|
+
component: "ToolbarToggleButton",
|
|
9851
|
+
props: {
|
|
9852
|
+
"aria-label": "Italic"
|
|
9853
|
+
}
|
|
9854
|
+
}
|
|
9855
|
+
]
|
|
9856
|
+
}
|
|
9857
|
+
},
|
|
9858
|
+
{
|
|
9859
|
+
component: "ToolbarDivider"
|
|
9860
|
+
},
|
|
9861
|
+
{
|
|
9862
|
+
component: "ToolbarGroup",
|
|
9863
|
+
props: {
|
|
9864
|
+
"aria-label": "Clipboard"
|
|
9865
|
+
},
|
|
9866
|
+
slots: {
|
|
9867
|
+
children: [
|
|
9868
|
+
{
|
|
9869
|
+
component: "ToolbarButton",
|
|
9870
|
+
props: {
|
|
9871
|
+
"aria-label": "Copy"
|
|
9872
|
+
}
|
|
9873
|
+
},
|
|
9874
|
+
{
|
|
9875
|
+
component: "ToolbarButton",
|
|
9876
|
+
props: {
|
|
9877
|
+
"aria-label": "Cut"
|
|
9878
|
+
}
|
|
9879
|
+
}
|
|
9880
|
+
]
|
|
9881
|
+
}
|
|
9882
|
+
}
|
|
9883
|
+
]
|
|
9884
|
+
}
|
|
9885
|
+
}
|
|
9886
|
+
}
|
|
9887
|
+
],
|
|
9888
|
+
events: [
|
|
9889
|
+
{
|
|
9890
|
+
name: "click",
|
|
9891
|
+
payload: "void"
|
|
9892
|
+
}
|
|
9893
|
+
]
|
|
9894
|
+
},
|
|
9895
|
+
{
|
|
9896
|
+
id: "toolbar-button",
|
|
9897
|
+
exportPath: "@refineui/react",
|
|
9898
|
+
exportName: "ToolbarButton",
|
|
9899
|
+
kind: "part",
|
|
9900
|
+
category: "parts",
|
|
9901
|
+
label: "Toolbar Button",
|
|
9902
|
+
props: [],
|
|
9903
|
+
preview: {
|
|
9904
|
+
mode: "full"
|
|
9905
|
+
},
|
|
9906
|
+
parents: [
|
|
9907
|
+
{
|
|
9908
|
+
component: "Toolbar",
|
|
9909
|
+
slot: "children"
|
|
9910
|
+
},
|
|
9911
|
+
{
|
|
9912
|
+
component: "ToolbarGroup",
|
|
9913
|
+
slot: "children"
|
|
9914
|
+
}
|
|
9915
|
+
]
|
|
9916
|
+
},
|
|
9917
|
+
{
|
|
9918
|
+
id: "toolbar-group",
|
|
9919
|
+
exportPath: "@refineui/react",
|
|
9920
|
+
exportName: "ToolbarGroup",
|
|
9921
|
+
kind: "part",
|
|
9922
|
+
category: "parts",
|
|
9923
|
+
label: "Toolbar Group",
|
|
9924
|
+
props: [],
|
|
9925
|
+
preview: {
|
|
9926
|
+
mode: "full"
|
|
9927
|
+
},
|
|
9928
|
+
parents: [
|
|
9929
|
+
{
|
|
9930
|
+
component: "Toolbar",
|
|
9931
|
+
slot: "children"
|
|
9932
|
+
}
|
|
9933
|
+
],
|
|
9934
|
+
slots: [
|
|
9935
|
+
{
|
|
9936
|
+
name: "children",
|
|
9937
|
+
accepts: [
|
|
9938
|
+
"ToolbarButton",
|
|
9939
|
+
"ToolbarToggleButton"
|
|
9940
|
+
],
|
|
9941
|
+
repeatable: true,
|
|
9942
|
+
min: 1
|
|
9943
|
+
}
|
|
9944
|
+
]
|
|
9945
|
+
},
|
|
9946
|
+
{
|
|
9947
|
+
id: "toolbar-divider",
|
|
9948
|
+
exportPath: "@refineui/react",
|
|
9949
|
+
exportName: "ToolbarDivider",
|
|
9950
|
+
kind: "part",
|
|
9951
|
+
category: "parts",
|
|
9952
|
+
label: "Toolbar Divider",
|
|
9953
|
+
props: [],
|
|
9954
|
+
preview: {
|
|
9955
|
+
mode: "full"
|
|
9956
|
+
},
|
|
9957
|
+
parents: [
|
|
9958
|
+
{
|
|
9959
|
+
component: "Toolbar",
|
|
9960
|
+
slot: "children"
|
|
9961
|
+
}
|
|
9962
|
+
]
|
|
9963
|
+
},
|
|
9964
|
+
{
|
|
9965
|
+
id: "toolbar-toggle-button",
|
|
9966
|
+
exportPath: "@refineui/react",
|
|
9967
|
+
exportName: "ToolbarToggleButton",
|
|
9968
|
+
kind: "part",
|
|
9969
|
+
category: "parts",
|
|
9970
|
+
label: "Toolbar Toggle Button",
|
|
9971
|
+
props: [],
|
|
9972
|
+
preview: {
|
|
9973
|
+
mode: "full"
|
|
9974
|
+
},
|
|
9975
|
+
parents: [
|
|
9976
|
+
{
|
|
9977
|
+
component: "Toolbar",
|
|
9978
|
+
slot: "children"
|
|
9979
|
+
},
|
|
9980
|
+
{
|
|
9981
|
+
component: "ToolbarGroup",
|
|
9982
|
+
slot: "children"
|
|
9983
|
+
}
|
|
9984
|
+
]
|
|
9985
|
+
},
|
|
9672
9986
|
{
|
|
9673
9987
|
id: "chart",
|
|
9674
9988
|
exportPath: "@refineui/react",
|
|
@@ -10325,7 +10639,7 @@ var manifest_default = {
|
|
|
10325
10639
|
accepts: [
|
|
10326
10640
|
"ContextMenuItem",
|
|
10327
10641
|
"ContextMenuLabel",
|
|
10328
|
-
"
|
|
10642
|
+
"ContextMenuDivider",
|
|
10329
10643
|
"ContextMenuSub"
|
|
10330
10644
|
],
|
|
10331
10645
|
repeatable: true
|
|
@@ -10437,12 +10751,12 @@ var manifest_default = {
|
|
|
10437
10751
|
]
|
|
10438
10752
|
},
|
|
10439
10753
|
{
|
|
10440
|
-
id: "context-menu-
|
|
10754
|
+
id: "context-menu-divider",
|
|
10441
10755
|
exportPath: "@refineui/react",
|
|
10442
|
-
exportName: "
|
|
10756
|
+
exportName: "ContextMenuDivider",
|
|
10443
10757
|
kind: "part",
|
|
10444
10758
|
category: "parts",
|
|
10445
|
-
label: "Context Menu
|
|
10759
|
+
label: "Context Menu Divider",
|
|
10446
10760
|
props: [],
|
|
10447
10761
|
preview: {
|
|
10448
10762
|
mode: "full"
|
|
@@ -10563,7 +10877,7 @@ var manifest_default = {
|
|
|
10563
10877
|
accepts: [
|
|
10564
10878
|
"ContextMenuItem",
|
|
10565
10879
|
"ContextMenuLabel",
|
|
10566
|
-
"
|
|
10880
|
+
"ContextMenuDivider",
|
|
10567
10881
|
"ContextMenuSub"
|
|
10568
10882
|
],
|
|
10569
10883
|
repeatable: true
|