@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,104 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "button-group",
|
|
3
|
+
"exportPath": "@refineui/react",
|
|
4
|
+
"exportName": "ButtonGroup",
|
|
5
|
+
"kind": "root",
|
|
6
|
+
"category": "components",
|
|
7
|
+
"label": "Button Group",
|
|
8
|
+
"props": [
|
|
9
|
+
{
|
|
10
|
+
"name": "size",
|
|
11
|
+
"label": "Size",
|
|
12
|
+
"valueType": "enum",
|
|
13
|
+
"control": "segmented",
|
|
14
|
+
"options": [
|
|
15
|
+
"sm",
|
|
16
|
+
"md",
|
|
17
|
+
"lg"
|
|
18
|
+
],
|
|
19
|
+
"defaultValue": "md",
|
|
20
|
+
"section": "variants"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "variant",
|
|
24
|
+
"label": "Variant",
|
|
25
|
+
"valueType": "enum",
|
|
26
|
+
"control": "select",
|
|
27
|
+
"options": [
|
|
28
|
+
"primary",
|
|
29
|
+
"secondary",
|
|
30
|
+
"outline",
|
|
31
|
+
"ghost"
|
|
32
|
+
],
|
|
33
|
+
"defaultValue": "ghost",
|
|
34
|
+
"section": "variants"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "orientation",
|
|
38
|
+
"label": "Orientation",
|
|
39
|
+
"valueType": "enum",
|
|
40
|
+
"control": "segmented",
|
|
41
|
+
"options": [
|
|
42
|
+
"horizontal",
|
|
43
|
+
"vertical"
|
|
44
|
+
],
|
|
45
|
+
"defaultValue": "horizontal",
|
|
46
|
+
"section": "variants"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "attached",
|
|
50
|
+
"label": "Attached",
|
|
51
|
+
"valueType": "boolean",
|
|
52
|
+
"control": "toggle",
|
|
53
|
+
"defaultValue": true,
|
|
54
|
+
"section": "properties"
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
"preview": {
|
|
58
|
+
"mode": "full"
|
|
59
|
+
},
|
|
60
|
+
"slots": [
|
|
61
|
+
{
|
|
62
|
+
"name": "children",
|
|
63
|
+
"accepts": [
|
|
64
|
+
"Button"
|
|
65
|
+
],
|
|
66
|
+
"repeatable": true,
|
|
67
|
+
"min": 1
|
|
68
|
+
}
|
|
69
|
+
],
|
|
70
|
+
"presets": [
|
|
71
|
+
{
|
|
72
|
+
"id": "actions",
|
|
73
|
+
"label": "Item actions",
|
|
74
|
+
"root": {
|
|
75
|
+
"component": "ButtonGroup",
|
|
76
|
+
"props": {
|
|
77
|
+
"aria-label": "Item actions"
|
|
78
|
+
},
|
|
79
|
+
"slots": {
|
|
80
|
+
"children": [
|
|
81
|
+
{
|
|
82
|
+
"component": "Button",
|
|
83
|
+
"text": "Edit"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"component": "Button",
|
|
87
|
+
"text": "Duplicate"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"component": "Button",
|
|
91
|
+
"text": "Archive"
|
|
92
|
+
}
|
|
93
|
+
]
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
],
|
|
98
|
+
"events": [
|
|
99
|
+
{
|
|
100
|
+
"name": "click",
|
|
101
|
+
"payload": "void"
|
|
102
|
+
}
|
|
103
|
+
]
|
|
104
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"id": "command-
|
|
2
|
+
"id": "command-divider",
|
|
3
3
|
"exportPath": "@refineui/react",
|
|
4
|
-
"exportName": "
|
|
4
|
+
"exportName": "CommandDivider",
|
|
5
5
|
"kind": "part",
|
|
6
6
|
"category": "parts",
|
|
7
|
-
"label": "Command
|
|
7
|
+
"label": "Command Divider",
|
|
8
8
|
"props": [],
|
|
9
9
|
"preview": {
|
|
10
10
|
"mode": "full"
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"id": "context-menu-
|
|
2
|
+
"id": "context-menu-divider",
|
|
3
3
|
"exportPath": "@refineui/react",
|
|
4
|
-
"exportName": "
|
|
4
|
+
"exportName": "ContextMenuDivider",
|
|
5
5
|
"kind": "part",
|
|
6
6
|
"category": "parts",
|
|
7
|
-
"label": "Context Menu
|
|
7
|
+
"label": "Context Menu Divider",
|
|
8
8
|
"props": [],
|
|
9
9
|
"preview": {
|
|
10
10
|
"mode": "full"
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"id": "dropdown-
|
|
2
|
+
"id": "dropdown-divider",
|
|
3
3
|
"exportPath": "@refineui/react",
|
|
4
|
-
"exportName": "
|
|
4
|
+
"exportName": "DropdownDivider",
|
|
5
5
|
"kind": "part",
|
|
6
6
|
"category": "parts",
|
|
7
|
-
"label": "Dropdown
|
|
7
|
+
"label": "Dropdown Divider",
|
|
8
8
|
"props": [],
|
|
9
9
|
"preview": {
|
|
10
10
|
"mode": "full"
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"id": "select-
|
|
2
|
+
"id": "select-divider",
|
|
3
3
|
"exportPath": "@refineui/react",
|
|
4
|
-
"exportName": "
|
|
4
|
+
"exportName": "SelectDivider",
|
|
5
5
|
"kind": "part",
|
|
6
6
|
"category": "parts",
|
|
7
|
-
"label": "Select
|
|
7
|
+
"label": "Select Divider",
|
|
8
8
|
"props": [],
|
|
9
9
|
"preview": {
|
|
10
10
|
"mode": "full"
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "toolbar-button",
|
|
3
|
+
"exportPath": "@refineui/react",
|
|
4
|
+
"exportName": "ToolbarButton",
|
|
5
|
+
"kind": "part",
|
|
6
|
+
"category": "parts",
|
|
7
|
+
"label": "Toolbar Button",
|
|
8
|
+
"props": [],
|
|
9
|
+
"preview": {
|
|
10
|
+
"mode": "full"
|
|
11
|
+
},
|
|
12
|
+
"parents": [
|
|
13
|
+
{
|
|
14
|
+
"component": "Toolbar",
|
|
15
|
+
"slot": "children"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"component": "ToolbarGroup",
|
|
19
|
+
"slot": "children"
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "toolbar-divider",
|
|
3
|
+
"exportPath": "@refineui/react",
|
|
4
|
+
"exportName": "ToolbarDivider",
|
|
5
|
+
"kind": "part",
|
|
6
|
+
"category": "parts",
|
|
7
|
+
"label": "Toolbar Divider",
|
|
8
|
+
"props": [],
|
|
9
|
+
"preview": {
|
|
10
|
+
"mode": "full"
|
|
11
|
+
},
|
|
12
|
+
"parents": [
|
|
13
|
+
{
|
|
14
|
+
"component": "Toolbar",
|
|
15
|
+
"slot": "children"
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "toolbar-group",
|
|
3
|
+
"exportPath": "@refineui/react",
|
|
4
|
+
"exportName": "ToolbarGroup",
|
|
5
|
+
"kind": "part",
|
|
6
|
+
"category": "parts",
|
|
7
|
+
"label": "Toolbar Group",
|
|
8
|
+
"props": [],
|
|
9
|
+
"preview": {
|
|
10
|
+
"mode": "full"
|
|
11
|
+
},
|
|
12
|
+
"parents": [
|
|
13
|
+
{
|
|
14
|
+
"component": "Toolbar",
|
|
15
|
+
"slot": "children"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"slots": [
|
|
19
|
+
{
|
|
20
|
+
"name": "children",
|
|
21
|
+
"accepts": [
|
|
22
|
+
"ToolbarButton",
|
|
23
|
+
"ToolbarToggleButton"
|
|
24
|
+
],
|
|
25
|
+
"repeatable": true,
|
|
26
|
+
"min": 1
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "toolbar-toggle-button",
|
|
3
|
+
"exportPath": "@refineui/react",
|
|
4
|
+
"exportName": "ToolbarToggleButton",
|
|
5
|
+
"kind": "part",
|
|
6
|
+
"category": "parts",
|
|
7
|
+
"label": "Toolbar Toggle Button",
|
|
8
|
+
"props": [],
|
|
9
|
+
"preview": {
|
|
10
|
+
"mode": "full"
|
|
11
|
+
},
|
|
12
|
+
"parents": [
|
|
13
|
+
{
|
|
14
|
+
"component": "Toolbar",
|
|
15
|
+
"slot": "children"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"component": "ToolbarGroup",
|
|
19
|
+
"slot": "children"
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "toolbar",
|
|
3
|
+
"exportPath": "@refineui/react",
|
|
4
|
+
"exportName": "Toolbar",
|
|
5
|
+
"kind": "root",
|
|
6
|
+
"category": "components",
|
|
7
|
+
"label": "Toolbar",
|
|
8
|
+
"props": [
|
|
9
|
+
{
|
|
10
|
+
"name": "size",
|
|
11
|
+
"label": "size",
|
|
12
|
+
"valueType": "enum",
|
|
13
|
+
"control": "segmented",
|
|
14
|
+
"options": [
|
|
15
|
+
"sm",
|
|
16
|
+
"md",
|
|
17
|
+
"lg"
|
|
18
|
+
],
|
|
19
|
+
"defaultValue": "sm",
|
|
20
|
+
"section": "variants"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "orientation",
|
|
24
|
+
"label": "orientation",
|
|
25
|
+
"valueType": "enum",
|
|
26
|
+
"control": "segmented",
|
|
27
|
+
"options": [
|
|
28
|
+
"horizontal",
|
|
29
|
+
"vertical"
|
|
30
|
+
],
|
|
31
|
+
"defaultValue": "horizontal",
|
|
32
|
+
"section": "variants"
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"preview": {
|
|
36
|
+
"mode": "full"
|
|
37
|
+
},
|
|
38
|
+
"slots": [
|
|
39
|
+
{
|
|
40
|
+
"name": "children",
|
|
41
|
+
"accepts": [
|
|
42
|
+
"ToolbarGroup",
|
|
43
|
+
"ToolbarButton",
|
|
44
|
+
"ToolbarToggleButton",
|
|
45
|
+
"ToolbarDivider"
|
|
46
|
+
],
|
|
47
|
+
"repeatable": true
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
"presets": [
|
|
51
|
+
{
|
|
52
|
+
"id": "formatting",
|
|
53
|
+
"label": "Text formatting",
|
|
54
|
+
"root": {
|
|
55
|
+
"component": "Toolbar",
|
|
56
|
+
"props": {
|
|
57
|
+
"label": "Text formatting"
|
|
58
|
+
},
|
|
59
|
+
"slots": {
|
|
60
|
+
"children": [
|
|
61
|
+
{
|
|
62
|
+
"component": "ToolbarGroup",
|
|
63
|
+
"props": {
|
|
64
|
+
"aria-label": "Text style"
|
|
65
|
+
},
|
|
66
|
+
"slots": {
|
|
67
|
+
"children": [
|
|
68
|
+
{
|
|
69
|
+
"component": "ToolbarToggleButton",
|
|
70
|
+
"props": {
|
|
71
|
+
"aria-label": "Bold"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"component": "ToolbarToggleButton",
|
|
76
|
+
"props": {
|
|
77
|
+
"aria-label": "Italic"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"component": "ToolbarDivider"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"component": "ToolbarGroup",
|
|
88
|
+
"props": {
|
|
89
|
+
"aria-label": "Clipboard"
|
|
90
|
+
},
|
|
91
|
+
"slots": {
|
|
92
|
+
"children": [
|
|
93
|
+
{
|
|
94
|
+
"component": "ToolbarButton",
|
|
95
|
+
"props": {
|
|
96
|
+
"aria-label": "Copy"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"component": "ToolbarButton",
|
|
101
|
+
"props": {
|
|
102
|
+
"aria-label": "Cut"
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
]
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
],
|
|
113
|
+
"events": [
|
|
114
|
+
{
|
|
115
|
+
"name": "click",
|
|
116
|
+
"payload": "void"
|
|
117
|
+
}
|
|
118
|
+
]
|
|
119
|
+
}
|