@refineui/react 0.4.0 → 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.
Files changed (104) hide show
  1. package/dist/authoring-manifest.cjs +897 -52
  2. package/dist/authoring-manifest.cjs.map +1 -1
  3. package/dist/authoring-manifest.js +897 -52
  4. package/dist/authoring-manifest.js.map +1 -1
  5. package/dist/index.cjs +6626 -5228
  6. package/dist/index.cjs.map +1 -1
  7. package/dist/index.d.cts +191 -11
  8. package/dist/index.d.ts +191 -11
  9. package/dist/index.js +6517 -5142
  10. package/dist/index.js.map +1 -1
  11. package/dist/spec/authoring/components/button-group.json +104 -0
  12. package/dist/spec/authoring/components/calendar.json +14 -1
  13. package/dist/spec/authoring/components/code-block-actions.json +28 -0
  14. package/dist/spec/authoring/components/code-block-content.json +45 -0
  15. package/dist/spec/authoring/components/code-block-copy-button.json +28 -0
  16. package/dist/spec/authoring/components/code-block-header.json +28 -0
  17. package/dist/spec/authoring/components/code-block-line.json +31 -0
  18. package/dist/spec/authoring/components/code-block-title.json +18 -0
  19. package/dist/spec/authoring/components/code-block.json +90 -0
  20. package/dist/spec/authoring/components/{command-separator.json → command-divider.json} +3 -3
  21. package/dist/spec/authoring/components/command-list.json +1 -1
  22. package/dist/spec/authoring/components/context-menu-content.json +1 -1
  23. package/{spec/authoring/components/context-menu-separator.json → dist/spec/authoring/components/context-menu-divider.json} +3 -3
  24. package/dist/spec/authoring/components/context-menu-sub-content.json +1 -1
  25. package/dist/spec/authoring/components/date-input.json +61 -0
  26. package/dist/spec/authoring/components/dropdown-content.json +1 -1
  27. package/{spec/authoring/components/dropdown-separator.json → dist/spec/authoring/components/dropdown-divider.json} +3 -3
  28. package/dist/spec/authoring/components/dropdown-group.json +1 -1
  29. package/dist/spec/authoring/components/popover-content.json +18 -1
  30. package/dist/spec/authoring/components/result-actions.json +18 -0
  31. package/dist/spec/authoring/components/result-button.json +18 -0
  32. package/dist/spec/authoring/components/result-description.json +18 -0
  33. package/dist/spec/authoring/components/result-icon.json +18 -0
  34. package/dist/spec/authoring/components/result-title.json +18 -0
  35. package/dist/spec/authoring/components/result.json +44 -0
  36. package/{spec/authoring/components/select-separator.json → dist/spec/authoring/components/select-divider.json} +3 -3
  37. package/dist/spec/authoring/components/select-group.json +1 -1
  38. package/dist/spec/authoring/components/select-viewport.json +1 -1
  39. package/dist/spec/authoring/components/time-input.json +38 -0
  40. package/dist/spec/authoring/components/toolbar-button.json +22 -0
  41. package/dist/spec/authoring/components/toolbar-divider.json +18 -0
  42. package/dist/spec/authoring/components/toolbar-group.json +29 -0
  43. package/dist/spec/authoring/components/toolbar-toggle-button.json +22 -0
  44. package/dist/spec/authoring/components/toolbar.json +119 -0
  45. package/dist/spec/authoring/manifest.json +897 -52
  46. package/dist/spec/components/button-group.json +77 -0
  47. package/dist/spec/components/calendar.json +9 -0
  48. package/dist/spec/components/code-block.json +18 -0
  49. package/dist/spec/components/command.json +1 -1
  50. package/dist/spec/components/date-input.json +71 -0
  51. package/dist/spec/components/dropdown.json +1 -1
  52. package/dist/spec/components/result.json +1 -0
  53. package/dist/spec/components/time-input.json +24 -0
  54. package/dist/spec/components/toolbar.json +91 -0
  55. package/dist/spec/contract-index.json +48 -3
  56. package/dist/spec/manifest.json +47 -2
  57. package/dist/spec/token-trace-v2.json +1 -1
  58. package/package.json +2 -2
  59. package/refineui.css +235 -20
  60. package/spec/authoring/components/button-group.json +104 -0
  61. package/spec/authoring/components/calendar.json +14 -1
  62. package/spec/authoring/components/code-block-actions.json +28 -0
  63. package/spec/authoring/components/code-block-content.json +45 -0
  64. package/spec/authoring/components/code-block-copy-button.json +28 -0
  65. package/spec/authoring/components/code-block-header.json +28 -0
  66. package/spec/authoring/components/code-block-line.json +31 -0
  67. package/spec/authoring/components/code-block-title.json +18 -0
  68. package/spec/authoring/components/code-block.json +90 -0
  69. package/spec/authoring/components/{command-separator.json → command-divider.json} +3 -3
  70. package/spec/authoring/components/command-list.json +1 -1
  71. package/spec/authoring/components/context-menu-content.json +1 -1
  72. package/{dist/spec/authoring/components/context-menu-separator.json → spec/authoring/components/context-menu-divider.json} +3 -3
  73. package/spec/authoring/components/context-menu-sub-content.json +1 -1
  74. package/spec/authoring/components/date-input.json +61 -0
  75. package/spec/authoring/components/dropdown-content.json +1 -1
  76. package/{dist/spec/authoring/components/dropdown-separator.json → spec/authoring/components/dropdown-divider.json} +3 -3
  77. package/spec/authoring/components/dropdown-group.json +1 -1
  78. package/spec/authoring/components/popover-content.json +18 -1
  79. package/spec/authoring/components/result-actions.json +18 -0
  80. package/spec/authoring/components/result-button.json +18 -0
  81. package/spec/authoring/components/result-description.json +18 -0
  82. package/spec/authoring/components/result-icon.json +18 -0
  83. package/spec/authoring/components/result-title.json +18 -0
  84. package/spec/authoring/components/result.json +44 -0
  85. package/{dist/spec/authoring/components/select-separator.json → spec/authoring/components/select-divider.json} +3 -3
  86. package/spec/authoring/components/select-group.json +1 -1
  87. package/spec/authoring/components/select-viewport.json +1 -1
  88. package/spec/authoring/components/time-input.json +38 -0
  89. package/spec/authoring/components/toolbar-button.json +22 -0
  90. package/spec/authoring/components/toolbar-divider.json +18 -0
  91. package/spec/authoring/components/toolbar-group.json +29 -0
  92. package/spec/authoring/components/toolbar-toggle-button.json +22 -0
  93. package/spec/authoring/components/toolbar.json +119 -0
  94. package/spec/authoring/manifest.json +897 -52
  95. package/spec/components/button-group.json +77 -0
  96. package/spec/components/calendar.json +9 -0
  97. package/spec/components/code-block.json +18 -0
  98. package/spec/components/command.json +1 -1
  99. package/spec/components/date-input.json +71 -0
  100. package/spec/components/dropdown.json +1 -1
  101. package/spec/components/result.json +1 -0
  102. package/spec/components/time-input.json +24 -0
  103. package/spec/components/toolbar.json +91 -0
  104. package/spec/manifest.json +47 -2
@@ -0,0 +1,44 @@
1
+ {
2
+ "id": "result",
3
+ "exportPath": "@refineui/react",
4
+ "exportName": "Result",
5
+ "kind": "root",
6
+ "category": "utilities",
7
+ "label": "Result",
8
+ "props": [],
9
+ "preview": {
10
+ "mode": "full"
11
+ },
12
+ "slots": [
13
+ {
14
+ "name": "children",
15
+ "accepts": [
16
+ "ResultActions",
17
+ "ResultButton",
18
+ "ResultDescription",
19
+ "ResultIcon",
20
+ "ResultTitle"
21
+ ],
22
+ "repeatable": true,
23
+ "allowText": false,
24
+ "allowAnyComponent": false,
25
+ "defaultChildren": []
26
+ }
27
+ ],
28
+ "presets": [
29
+ {
30
+ "id": "default",
31
+ "label": "Default",
32
+ "root": {
33
+ "component": "Result",
34
+ "slots": {}
35
+ }
36
+ }
37
+ ],
38
+ "events": [
39
+ {
40
+ "name": "click",
41
+ "payload": "void"
42
+ }
43
+ ]
44
+ }
@@ -1,10 +1,10 @@
1
1
  {
2
- "id": "select-separator",
2
+ "id": "select-divider",
3
3
  "exportPath": "@refineui/react",
4
- "exportName": "SelectSeparator",
4
+ "exportName": "SelectDivider",
5
5
  "kind": "part",
6
6
  "category": "parts",
7
- "label": "Select Separator",
7
+ "label": "Select Divider",
8
8
  "props": [],
9
9
  "preview": {
10
10
  "mode": "full"
@@ -21,7 +21,7 @@
21
21
  "accepts": [
22
22
  "SelectLabel",
23
23
  "SelectItem",
24
- "SelectSeparator"
24
+ "SelectDivider"
25
25
  ],
26
26
  "repeatable": true
27
27
  }
@@ -21,7 +21,7 @@
21
21
  "accepts": [
22
22
  "SelectGroup",
23
23
  "SelectItem",
24
- "SelectSeparator"
24
+ "SelectDivider"
25
25
  ],
26
26
  "repeatable": true
27
27
  }
@@ -0,0 +1,38 @@
1
+ {
2
+ "id": "time-input",
3
+ "exportPath": "@refineui/react",
4
+ "exportName": "TimeInput",
5
+ "kind": "root",
6
+ "category": "utilities",
7
+ "label": "Time Input",
8
+ "props": [],
9
+ "preview": {
10
+ "mode": "full"
11
+ },
12
+ "slots": [
13
+ {
14
+ "name": "children",
15
+ "accepts": [],
16
+ "repeatable": true,
17
+ "allowText": false,
18
+ "allowAnyComponent": true,
19
+ "defaultChildren": []
20
+ }
21
+ ],
22
+ "presets": [
23
+ {
24
+ "id": "default",
25
+ "label": "Default",
26
+ "root": {
27
+ "component": "TimeInput",
28
+ "slots": {}
29
+ }
30
+ }
31
+ ],
32
+ "events": [
33
+ {
34
+ "name": "click",
35
+ "payload": "void"
36
+ }
37
+ ]
38
+ }
@@ -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
+ }