@mbao01/common 0.0.43 → 0.0.45

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 (172) hide show
  1. package/dist/types/components/Chart/Chart.d.ts +2 -0
  2. package/dist/types/components/Chart/ChartContext.d.ts +2 -0
  3. package/dist/types/components/Chart/components/ChartLegend.d.ts +4 -0
  4. package/dist/types/components/Chart/components/ChartStyle.d.ts +2 -0
  5. package/dist/types/components/Chart/components/ChartTooltip.d.ts +4 -0
  6. package/dist/types/components/Chart/components/index.d.ts +3 -0
  7. package/dist/types/components/Chart/constants.d.ts +22 -0
  8. package/dist/types/components/Chart/helpers.d.ts +11 -0
  9. package/dist/types/components/Chart/hooks/index.d.ts +1 -0
  10. package/dist/types/components/Chart/hooks/useChart/index.d.ts +1 -0
  11. package/dist/types/components/Chart/hooks/useChart/useChart.d.ts +1 -0
  12. package/dist/types/components/Chart/index.d.ts +2 -0
  13. package/dist/types/components/Chart/stories/args/activeShapeArgs.d.ts +2 -0
  14. package/dist/types/components/Chart/stories/args/animationArgs.d.ts +12 -0
  15. package/dist/types/components/Chart/stories/args/areaArgs.d.ts +2 -0
  16. package/dist/types/components/Chart/stories/args/areaChartArgs.d.ts +2 -0
  17. package/dist/types/components/Chart/stories/args/barArgs.d.ts +5 -0
  18. package/dist/types/components/Chart/stories/args/barChartArgs.d.ts +2 -0
  19. package/dist/types/components/Chart/stories/args/cartesianChartArgs.d.ts +2 -0
  20. package/dist/types/components/Chart/stories/args/cartesianSharedArgs.d.ts +11 -0
  21. package/dist/types/components/Chart/stories/args/chartArgs.d.ts +6 -0
  22. package/dist/types/components/Chart/stories/args/dotArgs.d.ts +10 -0
  23. package/dist/types/components/Chart/stories/args/events.d.ts +804 -0
  24. package/dist/types/components/Chart/stories/args/labelListArgs.d.ts +2 -0
  25. package/dist/types/components/Chart/stories/args/legendArgs.d.ts +3 -0
  26. package/dist/types/components/Chart/stories/args/lineArgs.d.ts +2 -0
  27. package/dist/types/components/Chart/stories/args/lineChartArgs.d.ts +2 -0
  28. package/dist/types/components/Chart/stories/args/pieArgs.d.ts +2 -0
  29. package/dist/types/components/Chart/stories/args/pieChartArgs.d.ts +2 -0
  30. package/dist/types/components/Chart/stories/args/polarChartArgs.d.ts +2 -0
  31. package/dist/types/components/Chart/stories/args/polarSharedArgs.d.ts +2 -0
  32. package/dist/types/components/Chart/stories/args/radarArgs.d.ts +2 -0
  33. package/dist/types/components/Chart/stories/args/radarChartArgs.d.ts +2 -0
  34. package/dist/types/components/Chart/stories/args/radialBarArgs.d.ts +2 -0
  35. package/dist/types/components/Chart/stories/args/radialBarChartArgs.d.ts +2 -0
  36. package/dist/types/components/Chart/stories/args/rectangleArgs.d.ts +9 -0
  37. package/dist/types/components/Chart/stories/args/referenceSharedArgs.d.ts +4 -0
  38. package/dist/types/components/Chart/stories/args/sectorArgs.d.ts +7 -0
  39. package/dist/types/components/Chart/stories/args/sharedAxisArgs.d.ts +2 -0
  40. package/dist/types/components/Chart/stories/args/stylesArgs.d.ts +6 -0
  41. package/dist/types/components/Chart/stories/args/textArgs.d.ts +2 -0
  42. package/dist/types/components/Chart/stories/args/tooltipArgs.d.ts +4 -0
  43. package/dist/types/components/Chart/stories/args/types.d.ts +13 -0
  44. package/dist/types/components/Chart/stories/args/xAxisArgs.d.ts +2 -0
  45. package/dist/types/components/Chart/stories/args/yAxisArgs.d.ts +2 -0
  46. package/dist/types/components/Chart/stories/examples/AreaChart.d.ts +16 -0
  47. package/dist/types/components/Chart/stories/examples/BarChart.d.ts +20 -0
  48. package/dist/types/components/Chart/stories/examples/LineChart.d.ts +16 -0
  49. package/dist/types/components/Chart/stories/examples/PieChart.d.ts +19 -0
  50. package/dist/types/components/Chart/stories/examples/RadarChart.d.ts +24 -0
  51. package/dist/types/components/Chart/stories/examples/RadialChart.d.ts +17 -0
  52. package/dist/types/components/Chart/stories/examples/Tooltip.d.ts +15 -0
  53. package/dist/types/components/Chart/stories/helpers/index.d.ts +9 -0
  54. package/dist/types/components/Chart/types.d.ts +37 -0
  55. package/dist/types/components/DatetimePicker/DatetimeGrid.d.ts +26 -0
  56. package/dist/types/components/DatetimePicker/DatetimePicker.d.ts +13 -0
  57. package/dist/types/components/DatetimePicker/constants.d.ts +15 -0
  58. package/dist/types/components/DatetimePicker/index.d.ts +1 -0
  59. package/dist/types/components/DatetimePicker/types.d.ts +25 -0
  60. package/dist/types/components/Form/DatetimeInput/DatetimeCalendar.d.ts +5 -0
  61. package/dist/types/components/Form/DatetimeInput/DatetimeInput.d.ts +83 -0
  62. package/dist/types/components/Form/DatetimeInput/DatetimeInputContext.d.ts +2 -0
  63. package/dist/types/components/Form/DatetimeInput/NaturalLanguageInput.d.ts +5 -0
  64. package/dist/types/components/Form/DatetimeInput/TimePicker.d.ts +1 -0
  65. package/dist/types/components/Form/DatetimeInput/constants.d.ts +24 -0
  66. package/dist/types/components/Form/DatetimeInput/helpers.d.ts +27 -0
  67. package/dist/types/components/Form/DatetimeInput/hooks/index.d.ts +1 -0
  68. package/dist/types/components/Form/DatetimeInput/hooks/useDateInput/index.d.ts +1 -0
  69. package/dist/types/components/Form/DatetimeInput/hooks/useDateInput/useDateInput.d.ts +1 -0
  70. package/dist/types/components/Form/DatetimeInput/index.d.ts +1 -0
  71. package/dist/types/components/Form/DatetimeInput/types.d.ts +31 -0
  72. package/dist/types/components/Form/MultiSelect/MultiSelect.d.ts +46 -0
  73. package/dist/types/components/Form/MultiSelect/MultiSelectContext.d.ts +2 -0
  74. package/dist/types/components/Form/MultiSelect/constants.d.ts +19 -0
  75. package/dist/types/components/Form/MultiSelect/hooks/index.d.ts +1 -0
  76. package/dist/types/components/Form/MultiSelect/hooks/useMultiSelect/index.d.ts +1 -0
  77. package/dist/types/components/Form/MultiSelect/hooks/useMultiSelect/useMultiSelect.d.ts +1 -0
  78. package/dist/types/components/Form/MultiSelect/index.d.ts +1 -0
  79. package/dist/types/components/Form/MultiSelect/types.d.ts +31 -0
  80. package/dist/types/components/Form/TagsInput/TagsInput.d.ts +13 -0
  81. package/dist/types/components/Form/TagsInput/constants.d.ts +16 -0
  82. package/dist/types/components/Form/TagsInput/index.d.ts +1 -0
  83. package/dist/types/components/Form/TagsInput/types.d.ts +9 -0
  84. package/dist/types/components/Form/index.d.ts +2 -0
  85. package/dist/types/index.d.ts +1 -0
  86. package/package.json +7 -3
  87. package/src/components/Chart/Chart.tsx +26 -0
  88. package/src/components/Chart/ChartContext.tsx +4 -0
  89. package/src/components/Chart/components/ChartLegend.tsx +52 -0
  90. package/src/components/Chart/components/ChartStyle.tsx +32 -0
  91. package/src/components/Chart/components/ChartTooltip.tsx +126 -0
  92. package/src/components/Chart/components/index.ts +3 -0
  93. package/src/components/Chart/constants.ts +78 -0
  94. package/src/components/Chart/helpers.ts +27 -0
  95. package/src/components/Chart/hooks/index.ts +1 -0
  96. package/src/components/Chart/hooks/useChart/index.ts +1 -0
  97. package/src/components/Chart/hooks/useChart/useChart.ts +12 -0
  98. package/src/components/Chart/index.ts +2 -0
  99. package/src/components/Chart/stories/args/activeShapeArgs.ts +34 -0
  100. package/src/components/Chart/stories/args/animationArgs.ts +67 -0
  101. package/src/components/Chart/stories/args/areaArgs.ts +16 -0
  102. package/src/components/Chart/stories/args/areaChartArgs.ts +19 -0
  103. package/src/components/Chart/stories/args/barArgs.ts +123 -0
  104. package/src/components/Chart/stories/args/barChartArgs.ts +65 -0
  105. package/src/components/Chart/stories/args/cartesianChartArgs.ts +42 -0
  106. package/src/components/Chart/stories/args/cartesianSharedArgs.ts +136 -0
  107. package/src/components/Chart/stories/args/chartArgs.ts +244 -0
  108. package/src/components/Chart/stories/args/dotArgs.ts +46 -0
  109. package/src/components/Chart/stories/args/events.ts +343 -0
  110. package/src/components/Chart/stories/args/index.ts +178 -0
  111. package/src/components/Chart/stories/args/labelListArgs.ts +124 -0
  112. package/src/components/Chart/stories/args/legendArgs.ts +205 -0
  113. package/src/components/Chart/stories/args/lineArgs.ts +87 -0
  114. package/src/components/Chart/stories/args/lineChartArgs.ts +17 -0
  115. package/src/components/Chart/stories/args/pieArgs.ts +18 -0
  116. package/src/components/Chart/stories/args/pieChartArgs.ts +7 -0
  117. package/src/components/Chart/stories/args/polarChartArgs.ts +86 -0
  118. package/src/components/Chart/stories/args/polarSharedArgs.ts +42 -0
  119. package/src/components/Chart/stories/args/radarArgs.ts +26 -0
  120. package/src/components/Chart/stories/args/radarChartArgs.ts +26 -0
  121. package/src/components/Chart/stories/args/radialBarArgs.ts +36 -0
  122. package/src/components/Chart/stories/args/radialBarChartArgs.ts +16 -0
  123. package/src/components/Chart/stories/args/rectangleArgs.ts +35 -0
  124. package/src/components/Chart/stories/args/referenceSharedArgs.ts +75 -0
  125. package/src/components/Chart/stories/args/sectorArgs.ts +106 -0
  126. package/src/components/Chart/stories/args/sharedAxisArgs.ts +332 -0
  127. package/src/components/Chart/stories/args/stylesArgs.ts +258 -0
  128. package/src/components/Chart/stories/args/textArgs.ts +97 -0
  129. package/src/components/Chart/stories/args/tooltipArgs.ts +41 -0
  130. package/src/components/Chart/stories/args/types.ts +23 -0
  131. package/src/components/Chart/stories/args/xAxisArgs.ts +109 -0
  132. package/src/components/Chart/stories/args/yAxisArgs.ts +73 -0
  133. package/src/components/Chart/stories/examples/AreaChart.tsx +156 -0
  134. package/src/components/Chart/stories/examples/BarChart.tsx +425 -0
  135. package/src/components/Chart/stories/examples/LineChart.tsx +144 -0
  136. package/src/components/Chart/stories/examples/PieChart.tsx +238 -0
  137. package/src/components/Chart/stories/examples/RadarChart.tsx +261 -0
  138. package/src/components/Chart/stories/examples/RadialChart.tsx +239 -0
  139. package/src/components/Chart/stories/examples/Tooltip.tsx +68 -0
  140. package/src/components/Chart/stories/helpers/index.tsx +75 -0
  141. package/src/components/Chart/types.ts +39 -0
  142. package/src/components/DatetimePicker/DatetimeGrid.tsx +59 -0
  143. package/src/components/DatetimePicker/DatetimePicker.tsx +59 -0
  144. package/src/components/DatetimePicker/constants.ts +102 -0
  145. package/src/components/DatetimePicker/index.ts +1 -0
  146. package/src/components/DatetimePicker/types.ts +36 -0
  147. package/src/components/Form/DatetimeInput/DatetimeCalendar.tsx +68 -0
  148. package/src/components/Form/DatetimeInput/DatetimeInput.tsx +90 -0
  149. package/src/components/Form/DatetimeInput/DatetimeInputContext.tsx +4 -0
  150. package/src/components/Form/DatetimeInput/NaturalLanguageInput.tsx +73 -0
  151. package/src/components/Form/DatetimeInput/TimePicker.tsx +202 -0
  152. package/src/components/Form/DatetimeInput/constants.ts +135 -0
  153. package/src/components/Form/DatetimeInput/helpers.ts +93 -0
  154. package/src/components/Form/DatetimeInput/hooks/index.ts +1 -0
  155. package/src/components/Form/DatetimeInput/hooks/useDateInput/index.ts +1 -0
  156. package/src/components/Form/DatetimeInput/hooks/useDateInput/useDateInput.ts +10 -0
  157. package/src/components/Form/DatetimeInput/index.ts +1 -0
  158. package/src/components/Form/DatetimeInput/types.ts +36 -0
  159. package/src/components/Form/MultiSelect/MultiSelect.tsx +348 -0
  160. package/src/components/Form/MultiSelect/MultiSelectContext.tsx +4 -0
  161. package/src/components/Form/MultiSelect/constants.ts +103 -0
  162. package/src/components/Form/MultiSelect/hooks/index.ts +1 -0
  163. package/src/components/Form/MultiSelect/hooks/useMultiSelect/index.ts +1 -0
  164. package/src/components/Form/MultiSelect/hooks/useMultiSelect/useMultiSelect.ts +10 -0
  165. package/src/components/Form/MultiSelect/index.ts +1 -0
  166. package/src/components/Form/MultiSelect/types.ts +46 -0
  167. package/src/components/Form/TagsInput/TagsInput.tsx +278 -0
  168. package/src/components/Form/TagsInput/constants.ts +87 -0
  169. package/src/components/Form/TagsInput/index.ts +1 -0
  170. package/src/components/Form/TagsInput/types.ts +10 -0
  171. package/src/components/Form/index.ts +2 -0
  172. package/src/index.ts +1 -0
@@ -0,0 +1,244 @@
1
+ import { ArgTypes } from "@storybook/react";
2
+ import { onClick, onMouseDown, onMouseEnter, onMouseLeave, onMouseMove, onMouseUp } from "./events";
3
+
4
+ export const data: ArgTypes[0] = {
5
+ description: "The source data, in which each element is an object.",
6
+ table: {
7
+ type: {
8
+ summary: "Array",
9
+ },
10
+ category: "General",
11
+ },
12
+ control: "object",
13
+ };
14
+
15
+ export const chartSizeArgs: ArgTypes = {
16
+ height: {
17
+ description: "The height of chart container.",
18
+ table: {
19
+ type: {
20
+ summary: "number",
21
+ },
22
+ category: "General",
23
+ },
24
+ control: "number",
25
+ },
26
+ width: {
27
+ description: "The width of chart container.",
28
+ table: {
29
+ type: {
30
+ summary: "number",
31
+ },
32
+ category: "General",
33
+ },
34
+ control: "number",
35
+ },
36
+ };
37
+
38
+ export const margin: ArgTypes[0] = {
39
+ description: "The sizes of whitespace around the container.",
40
+ table: {
41
+ type: {
42
+ summary: "object",
43
+ },
44
+ defaultValue: {
45
+ summary: "{ top: 5, right: 5, bottom: 5, left: 5 }",
46
+ },
47
+ category: "General",
48
+ },
49
+ control: "object",
50
+ };
51
+
52
+ export const dataKey: ArgTypes[0] = {
53
+ description: "The key or getter of a group of data which should be unique in a chart.",
54
+ table: {
55
+ type: {
56
+ summary: "string | number | Function",
57
+ },
58
+ category: "General",
59
+ },
60
+ control: "text",
61
+ };
62
+
63
+ // These props are shared between the following charts:
64
+ // - AreaChart
65
+ // - BarChart
66
+ // - ComposedChart
67
+ // - LineChart
68
+ // - PieChart
69
+ // - RadarChart
70
+ // - RadialBarChart
71
+ // - ScatterChart
72
+ // - FunnelChart
73
+ export const categoricalChartArgs: ArgTypes = {
74
+ ...chartSizeArgs,
75
+ dataKey: {
76
+ description: `Can be used to mirror dataKey used on children components, using it as this level will force
77
+ the chart to animate between two states even though the data array stays the same. Useful to animate when
78
+ toggling between multiple dataKey.`,
79
+ table: {
80
+ type: {
81
+ summary: "string | number | Function | undefined",
82
+ },
83
+ category: "General",
84
+ },
85
+ control: "text",
86
+ },
87
+ data,
88
+ margin,
89
+ accessibilityLayer: {
90
+ description: "Turn on accessibility support for keyboard-only and screen reader users.",
91
+ table: {
92
+ type: {
93
+ summary: "boolean",
94
+ },
95
+ defaultValue: {
96
+ summary: "true",
97
+ },
98
+ category: "General",
99
+ },
100
+ control: "boolean",
101
+ },
102
+ role: {
103
+ description:
104
+ "The ARIA role for the chart, which provides semantic information for screen reader users.",
105
+ table: {
106
+ type: {
107
+ summary: "string | undefined",
108
+ },
109
+ defaultValue: undefined,
110
+ category: "General",
111
+ },
112
+ control: "text",
113
+ },
114
+ tabIndex: {
115
+ description: "If and where the chart should appear in the tab order",
116
+ table: {
117
+ type: {
118
+ summary: "number | undefined",
119
+ },
120
+ defaultValue: undefined,
121
+ category: "General",
122
+ },
123
+ control: "number",
124
+ },
125
+ style: {
126
+ description: "The style of chart.",
127
+ table: {
128
+ type: {
129
+ summary: "object",
130
+ },
131
+ category: "General",
132
+ },
133
+ control: "object",
134
+ },
135
+ desc: {
136
+ description: "The description of chart.",
137
+ table: {
138
+ type: {
139
+ summary: "string",
140
+ },
141
+ category: "General",
142
+ },
143
+ control: "text",
144
+ },
145
+ className: {
146
+ table: {
147
+ category: "Internal",
148
+ },
149
+ control: "text",
150
+ },
151
+ defaultShowTooltip: {
152
+ description: "If true set, the tooltip will be displayed when the chart is rendered.",
153
+ table: {
154
+ type: {
155
+ summary: "boolean",
156
+ },
157
+ defaultValue: {
158
+ summary: "false",
159
+ },
160
+ category: "General",
161
+ },
162
+ control: "boolean",
163
+ },
164
+ id: {
165
+ description: "The unique id of chart.",
166
+ table: {
167
+ type: {
168
+ summary: "string",
169
+ },
170
+ category: "General",
171
+ },
172
+ control: "text",
173
+ },
174
+ onClick,
175
+ onMouseDown,
176
+ onMouseEnter,
177
+ onMouseLeave,
178
+ onMouseMove,
179
+ onMouseUp,
180
+ reverseStackOrder: {
181
+ description: `If \`false\`, stacked items will be rendered left to right. If \`true\`, stacked items
182
+ will be rendered right to left. (Render direction affects SVG layering, not x position.)`,
183
+ table: {
184
+ type: {
185
+ summary: "boolean",
186
+ },
187
+ defaultValue: {
188
+ summary: "false",
189
+ },
190
+ category: "General",
191
+ },
192
+ control: "boolean",
193
+ },
194
+ syncId: {
195
+ description: `If any two categorical charts(LineChart, AreaChart, BarChart, ComposedChart) have the same syncId,
196
+ these two charts can sync the position tooltip, and the startIndex, endIndex of Brush.`,
197
+ table: {
198
+ type: {
199
+ summary: "string",
200
+ },
201
+ category: "General",
202
+ },
203
+ control: "text",
204
+ },
205
+ syncMethod: {
206
+ description: `When syncId is provided, allows customization of how the charts will synchronize tooltips and
207
+ brushes. Using 'index' (default setting), other charts will reuse current datum's index within the data array.
208
+ In cases where data does not have the same length, this might yield unexpected results. In that case use 'value'
209
+ which will try to match other charts values, or a fully custom function which will receive tick, data as argument
210
+ and should return an index.`,
211
+ table: {
212
+ type: {
213
+ summary: "'index' | 'value' | Function",
214
+ },
215
+ defaultValue: {
216
+ summary: "'index'",
217
+ },
218
+ category: "General",
219
+ },
220
+ control: "inline-radio",
221
+ options: ["index", "value"],
222
+ },
223
+ throttleDelay: {
224
+ description: `The delay of throttle for mouse events, which can be used to avoid
225
+ the performance problem when the chart is rendered in a heavy environment.`,
226
+ table: {
227
+ type: {
228
+ summary: "number",
229
+ },
230
+ category: "General",
231
+ },
232
+ control: "number",
233
+ },
234
+ title: {
235
+ description: "The title of chart.",
236
+ table: {
237
+ type: {
238
+ summary: "string",
239
+ },
240
+ category: "General",
241
+ },
242
+ control: "text",
243
+ },
244
+ };
@@ -0,0 +1,46 @@
1
+ import { type ArgTypes } from "@storybook/react";
2
+
3
+ export const r: ArgTypes[0] = {
4
+ description: "The radius of the dot.",
5
+ table: {
6
+ type: {
7
+ summary: "number",
8
+ },
9
+ defaultValue: {
10
+ summary: "10",
11
+ },
12
+ category: "General",
13
+ },
14
+ control: "number",
15
+ };
16
+
17
+ export const cx: ArgTypes[0] = {
18
+ description: "The x-coordinate of the dots center.",
19
+ table: {
20
+ type: {
21
+ summary: "number",
22
+ },
23
+ category: "General",
24
+ },
25
+ control: "number",
26
+ };
27
+
28
+ export const cy: ArgTypes[0] = {
29
+ description: "The y-coordinate of the dots center.",
30
+ table: {
31
+ type: { summary: "number" },
32
+ category: "General",
33
+ },
34
+ control: "number",
35
+ };
36
+
37
+ /**
38
+ * Caveat: If any prop is added here, it would falsely be add to the documentation of the component where this group
39
+ * is used. If the group is to be extended, then only single props should be imported by each component that does not
40
+ * use all of them.
41
+ * */
42
+ export const DotProps: ArgTypes = {
43
+ r,
44
+ cx,
45
+ cy,
46
+ };
@@ -0,0 +1,343 @@
1
+ /*
2
+ * This file both exports the documentation of shared props separately, to be reused in places where only single props
3
+ * are documented, as well as grouped in case a whole group is needed.
4
+ */
5
+
6
+ import { type ArgTypes } from "@storybook/react";
7
+
8
+ export const onAbort = { table: { category: "EventHandlers" } };
9
+ export const onAbortCapture = { table: { category: "EventHandlers" } };
10
+ export const onAnimationEnd = {
11
+ table: {
12
+ category: "EventHandlers",
13
+ description: "The customized event handler of animation end",
14
+ },
15
+ };
16
+ export const onAnimationEndCapture = { table: { category: "EventHandlers" } };
17
+ export const onAnimationIteration = { table: { category: "EventHandlers" } };
18
+ export const onAnimationIterationCapture = { table: { category: "EventHandlers" } };
19
+ export const onAnimationStart = {
20
+ table: {
21
+ description: "The customized event handler of animation start",
22
+ category: "EventHandlers",
23
+ },
24
+ };
25
+ export const onAnimationStartCapture = { table: { category: "EventHandlers" } };
26
+ export const onAuxClick = { table: { category: "EventHandlers" } };
27
+ export const onAuxClickCapture = { table: { category: "EventHandlers" } };
28
+ export const onBeforeInput = { table: { category: "EventHandlers" } };
29
+ export const onBeforeInputCapture = { table: { category: "EventHandlers" } };
30
+ export const onBlur = { table: { category: "EventHandlers" } };
31
+ export const onBlurCapture = { table: { category: "EventHandlers" } };
32
+ export const onCanPlay = { table: { category: "EventHandlers" } };
33
+ export const onCanPlayCapture = { table: { category: "EventHandlers" } };
34
+ export const onCanPlayThrough = { table: { category: "EventHandlers" } };
35
+ export const onCanPlayThroughCapture = { table: { category: "EventHandlers" } };
36
+ export const onChange = { table: { category: "EventHandlers" } };
37
+ export const onChangeCapture = { table: { category: "EventHandlers" } };
38
+ export const onClick = { table: { category: "EventHandlers" } };
39
+ export const onClickCapture = { table: { category: "EventHandlers" } };
40
+ export const onCompositionEnd = { table: { category: "EventHandlers" } };
41
+ export const onCompositionEndCapture = { table: { category: "EventHandlers" } };
42
+ export const onCompositionStart = { table: { category: "EventHandlers" } };
43
+ export const onCompositionStartCapture = { table: { category: "EventHandlers" } };
44
+ export const onCompositionUpdate = { table: { category: "EventHandlers" } };
45
+ export const onCompositionUpdateCapture = { table: { category: "EventHandlers" } };
46
+ export const onContextMenu = { table: { category: "EventHandlers" } };
47
+ export const onContextMenuCapture = { table: { category: "EventHandlers" } };
48
+ export const onCopy = { table: { category: "EventHandlers" } };
49
+ export const onCopyCapture = { table: { category: "EventHandlers" } };
50
+ export const onCut = { table: { category: "EventHandlers" } };
51
+ export const onCutCapture = { table: { category: "EventHandlers" } };
52
+ export const onDoubleClick = { table: { category: "EventHandlers" } };
53
+ export const onDoubleClickCapture = { table: { category: "EventHandlers" } };
54
+ export const onDrag = { table: { category: "EventHandlers" } };
55
+ export const onDragCapture = { table: { category: "EventHandlers" } };
56
+ export const onDragEnd = { table: { category: "EventHandlers" } };
57
+ export const onDragEndCapture = { table: { category: "EventHandlers" } };
58
+ export const onDragEnter = { table: { category: "EventHandlers" } };
59
+ export const onDragEnterCapture = { table: { category: "EventHandlers" } };
60
+ export const onDragExit = { table: { category: "EventHandlers" } };
61
+ export const onDragExitCapture = { table: { category: "EventHandlers" } };
62
+ export const onDragLeave = { table: { category: "EventHandlers" } };
63
+ export const onDragLeaveCapture = { table: { category: "EventHandlers" } };
64
+ export const onDragOver = { table: { category: "EventHandlers" } };
65
+ export const onDragOverCapture = { table: { category: "EventHandlers" } };
66
+ export const onDragStart = { table: { category: "EventHandlers" } };
67
+ export const onDragStartCapture = { table: { category: "EventHandlers" } };
68
+ export const onDrop = { table: { category: "EventHandlers" } };
69
+ export const onDropCapture = { table: { category: "EventHandlers" } };
70
+ export const onDurationChange = { table: { category: "EventHandlers" } };
71
+ export const onDurationChangeCapture = { table: { category: "EventHandlers" } };
72
+ export const onEmptied = { table: { category: "EventHandlers" } };
73
+ export const onEmptiedCapture = { table: { category: "EventHandlers" } };
74
+ export const onEncrypted = { table: { category: "EventHandlers" } };
75
+ export const onEncryptedCapture = { table: { category: "EventHandlers" } };
76
+ export const onEnded = { table: { category: "EventHandlers" } };
77
+ export const onEndedCapture = { table: { category: "EventHandlers" } };
78
+ export const onError = { table: { category: "EventHandlers" } };
79
+ export const onErrorCapture = { table: { category: "EventHandlers" } };
80
+ export const onFocus = { table: { category: "EventHandlers" } };
81
+ export const onFocusCapture = { table: { category: "EventHandlers" } };
82
+ export const onGotPointerCapture = { table: { category: "EventHandlers" } };
83
+ export const onGotPointerCaptureCapture = { table: { category: "EventHandlers" } };
84
+ export const onInput = { table: { category: "EventHandlers" } };
85
+ export const onInputCapture = { table: { category: "EventHandlers" } };
86
+ export const onInvalid = { table: { category: "EventHandlers" } };
87
+ export const onInvalidCapture = { table: { category: "EventHandlers" } };
88
+ export const onKeyDown = { table: { category: "EventHandlers" } };
89
+ export const onKeyDownCapture = { table: { category: "EventHandlers" } };
90
+ export const onKeyPress = { table: { category: "EventHandlers" } };
91
+ export const onKeyPressCapture = { table: { category: "EventHandlers" } };
92
+ export const onKeyUp = { table: { category: "EventHandlers" } };
93
+ export const onKeyUpCapture = { table: { category: "EventHandlers" } };
94
+ export const onLoad = { table: { category: "EventHandlers" } };
95
+ export const onLoadCapture = { table: { category: "EventHandlers" } };
96
+ export const onLoadStart = { table: { category: "EventHandlers" } };
97
+ export const onLoadStartCapture = { table: { category: "EventHandlers" } };
98
+ export const onLoadedData = { table: { category: "EventHandlers" } };
99
+ export const onLoadedDataCapture = { table: { category: "EventHandlers" } };
100
+ export const onLoadedMetadata = { table: { category: "EventHandlers" } };
101
+ export const onLoadedMetadataCapture = { table: { category: "EventHandlers" } };
102
+ export const onLostPointerCapture = { table: { category: "EventHandlers" } };
103
+ export const onLostPointerCaptureCapture = { table: { category: "EventHandlers" } };
104
+ export const onMouseDown = { table: { category: "EventHandlers" } };
105
+ export const onMouseDownCapture = { table: { category: "EventHandlers" } };
106
+ export const onMouseEnter = { table: { category: "EventHandlers" } };
107
+ export const onMouseLeave = { table: { category: "EventHandlers" } };
108
+ export const onMouseMove = { table: { category: "EventHandlers" } };
109
+ export const onMouseMoveCapture = { table: { category: "EventHandlers" } };
110
+ export const onMouseOut = { table: { category: "EventHandlers" } };
111
+ export const onMouseOutCapture = { table: { category: "EventHandlers" } };
112
+ export const onMouseOver = { table: { category: "EventHandlers" } };
113
+ export const onMouseOverCapture = { table: { category: "EventHandlers" } };
114
+ export const onMouseUp = { table: { category: "EventHandlers" } };
115
+ export const onMouseUpCapture = { table: { category: "EventHandlers" } };
116
+ export const onPaste = { table: { category: "EventHandlers" } };
117
+ export const onPasteCapture = { table: { category: "EventHandlers" } };
118
+ export const onPause = { table: { category: "EventHandlers" } };
119
+ export const onPauseCapture = { table: { category: "EventHandlers" } };
120
+ export const onPlay = { table: { category: "EventHandlers" } };
121
+ export const onPlayCapture = { table: { category: "EventHandlers" } };
122
+ export const onPlaying = { table: { category: "EventHandlers" } };
123
+ export const onPlayingCapture = { table: { category: "EventHandlers" } };
124
+ export const onPointerCancel = { table: { category: "EventHandlers" } };
125
+ export const onPointerCancelCapture = { table: { category: "EventHandlers" } };
126
+ export const onPointerDown = { table: { category: "EventHandlers" } };
127
+ export const onPointerDownCapture = { table: { category: "EventHandlers" } };
128
+ export const onPointerEnter = { table: { category: "EventHandlers" } };
129
+ export const onPointerEnterCapture = { table: { category: "EventHandlers" } };
130
+ export const onPointerLeave = { table: { category: "EventHandlers" } };
131
+ export const onPointerLeaveCapture = { table: { category: "EventHandlers" } };
132
+ export const onPointerMove = { table: { category: "EventHandlers" } };
133
+ export const onPointerMoveCapture = { table: { category: "EventHandlers" } };
134
+ export const onPointerOut = { table: { category: "EventHandlers" } };
135
+ export const onPointerOutCapture = { table: { category: "EventHandlers" } };
136
+ export const onPointerOver = { table: { category: "EventHandlers" } };
137
+ export const onPointerOverCapture = { table: { category: "EventHandlers" } };
138
+ export const onPointerUp = { table: { category: "EventHandlers" } };
139
+ export const onPointerUpCapture = { table: { category: "EventHandlers" } };
140
+ export const onProgress = { table: { category: "EventHandlers" } };
141
+ export const onProgressCapture = { table: { category: "EventHandlers" } };
142
+ export const onRateChange = { table: { category: "EventHandlers" } };
143
+ export const onRateChangeCapture = { table: { category: "EventHandlers" } };
144
+ export const onReset = { table: { category: "EventHandlers" } };
145
+ export const onResetCapture = { table: { category: "EventHandlers" } };
146
+ export const onScroll = { table: { category: "EventHandlers" } };
147
+ export const onScrollCapture = { table: { category: "EventHandlers" } };
148
+ export const onSeeked = { table: { category: "EventHandlers" } };
149
+ export const onSeekedCapture = { table: { category: "EventHandlers" } };
150
+ export const onSeeking = { table: { category: "EventHandlers" } };
151
+ export const onSeekingCapture = { table: { category: "EventHandlers" } };
152
+ export const onSelect = { table: { category: "EventHandlers" } };
153
+ export const onSelectCapture = { table: { category: "EventHandlers" } };
154
+ export const onStalled = { table: { category: "EventHandlers" } };
155
+ export const onStalledCapture = { table: { category: "EventHandlers" } };
156
+ export const onSubmit = { table: { category: "EventHandlers" } };
157
+ export const onSubmitCapture = { table: { category: "EventHandlers" } };
158
+ export const onSuspend = { table: { category: "EventHandlers" } };
159
+ export const onSuspendCapture = { table: { category: "EventHandlers" } };
160
+ export const onTimeUpdate = { table: { category: "EventHandlers" } };
161
+ export const onTimeUpdateCapture = { table: { category: "EventHandlers" } };
162
+ export const onTouchCancel = { table: { category: "EventHandlers" } };
163
+ export const onTouchCancelCapture = { table: { category: "EventHandlers" } };
164
+ export const onTouchEnd = { table: { category: "EventHandlers" } };
165
+ export const onTouchEndCapture = { table: { category: "EventHandlers" } };
166
+ export const onTouchMove = { table: { category: "EventHandlers" } };
167
+ export const onTouchMoveCapture = { table: { category: "EventHandlers" } };
168
+ export const onTouchStart = { table: { category: "EventHandlers" } };
169
+ export const onTouchStartCapture = { table: { category: "EventHandlers" } };
170
+ export const onTransitionEnd = { table: { category: "EventHandlers" } };
171
+ export const onTransitionEndCapture = { table: { category: "EventHandlers" } };
172
+ export const onVolumeChange = { table: { category: "EventHandlers" } };
173
+ export const onVolumeChangeCapture = { table: { category: "EventHandlers" } };
174
+ export const onWaiting = { table: { category: "EventHandlers" } };
175
+ export const onWaitingCapture = { table: { category: "EventHandlers" } };
176
+ export const onWheel = { table: { category: "EventHandlers" } };
177
+ export const onWheelCapture = { table: { category: "EventHandlers" } };
178
+
179
+ // Caveat: If any prop is added here, it would falsely be add to the documentation of the component
180
+ // where this group is used. If the group is to be extended, then only single props should be imported
181
+ // by each component that does not use all of them.
182
+ export const eventArgs: ArgTypes = {
183
+ onAbort,
184
+ onAbortCapture,
185
+ onAnimationEnd,
186
+ onAnimationEndCapture,
187
+ onAnimationIteration,
188
+ onAnimationIterationCapture,
189
+ onAnimationStart,
190
+ onAnimationStartCapture,
191
+ onAuxClick,
192
+ onAuxClickCapture,
193
+ onBeforeInput,
194
+ onBeforeInputCapture,
195
+ onBlur,
196
+ onBlurCapture,
197
+ onCanPlay,
198
+ onCanPlayCapture,
199
+ onCanPlayThrough,
200
+ onCanPlayThroughCapture,
201
+ onChange,
202
+ onChangeCapture,
203
+ onClick,
204
+ onClickCapture,
205
+ onCompositionEnd,
206
+ onCompositionEndCapture,
207
+ onCompositionStart,
208
+ onCompositionStartCapture,
209
+ onCompositionUpdate,
210
+ onCompositionUpdateCapture,
211
+ onContextMenu,
212
+ onContextMenuCapture,
213
+ onCopy,
214
+ onCopyCapture,
215
+ onCut,
216
+ onCutCapture,
217
+ onDoubleClick,
218
+ onDoubleClickCapture,
219
+ onDrag,
220
+ onDragCapture,
221
+ onDragEnd,
222
+ onDragEndCapture,
223
+ onDragEnter,
224
+ onDragEnterCapture,
225
+ onDragExit,
226
+ onDragExitCapture,
227
+ onDragLeave,
228
+ onDragLeaveCapture,
229
+ onDragOver,
230
+ onDragOverCapture,
231
+ onDragStart,
232
+ onDragStartCapture,
233
+ onDrop,
234
+ onDropCapture,
235
+ onDurationChange,
236
+ onDurationChangeCapture,
237
+ onEmptied,
238
+ onEmptiedCapture,
239
+ onEncrypted,
240
+ onEncryptedCapture,
241
+ onEnded,
242
+ onEndedCapture,
243
+ onError,
244
+ onErrorCapture,
245
+ onFocus,
246
+ onFocusCapture,
247
+ onGotPointerCapture,
248
+ onGotPointerCaptureCapture,
249
+ onInput,
250
+ onInputCapture,
251
+ onInvalid,
252
+ onInvalidCapture,
253
+ onKeyDown,
254
+ onKeyDownCapture,
255
+ onKeyPress,
256
+ onKeyPressCapture,
257
+ onKeyUp,
258
+ onKeyUpCapture,
259
+ onLoad,
260
+ onLoadCapture,
261
+ onLoadStart,
262
+ onLoadStartCapture,
263
+ onLoadedData,
264
+ onLoadedDataCapture,
265
+ onLoadedMetadata,
266
+ onLoadedMetadataCapture,
267
+ onLostPointerCapture,
268
+ onLostPointerCaptureCapture,
269
+ onMouseDown,
270
+ onMouseDownCapture,
271
+ onMouseEnter,
272
+ onMouseLeave,
273
+ onMouseMove,
274
+ onMouseMoveCapture,
275
+ onMouseOut,
276
+ onMouseOutCapture,
277
+ onMouseOver,
278
+ onMouseOverCapture,
279
+ onMouseUp,
280
+ onMouseUpCapture,
281
+ onPaste,
282
+ onPasteCapture,
283
+ onPause,
284
+ onPauseCapture,
285
+ onPlay,
286
+ onPlayCapture,
287
+ onPlaying,
288
+ onPlayingCapture,
289
+ onPointerCancel,
290
+ onPointerCancelCapture,
291
+ onPointerDown,
292
+ onPointerDownCapture,
293
+ onPointerEnter,
294
+ onPointerEnterCapture,
295
+ onPointerLeave,
296
+ onPointerLeaveCapture,
297
+ onPointerMove,
298
+ onPointerMoveCapture,
299
+ onPointerOut,
300
+ onPointerOutCapture,
301
+ onPointerOver,
302
+ onPointerOverCapture,
303
+ onPointerUp,
304
+ onPointerUpCapture,
305
+ onProgress,
306
+ onProgressCapture,
307
+ onRateChange,
308
+ onRateChangeCapture,
309
+ onReset,
310
+ onResetCapture,
311
+ onScroll,
312
+ onScrollCapture,
313
+ onSeeked,
314
+ onSeekedCapture,
315
+ onSeeking,
316
+ onSeekingCapture,
317
+ onSelect,
318
+ onSelectCapture,
319
+ onStalled,
320
+ onStalledCapture,
321
+ onSubmit,
322
+ onSubmitCapture,
323
+ onSuspend,
324
+ onSuspendCapture,
325
+ onTimeUpdate,
326
+ onTimeUpdateCapture,
327
+ onTouchCancel,
328
+ onTouchCancelCapture,
329
+ onTouchEnd,
330
+ onTouchEndCapture,
331
+ onTouchMove,
332
+ onTouchMoveCapture,
333
+ onTouchStart,
334
+ onTouchStartCapture,
335
+ onTransitionEnd,
336
+ onTransitionEndCapture,
337
+ onVolumeChange,
338
+ onVolumeChangeCapture,
339
+ onWaiting,
340
+ onWaitingCapture,
341
+ onWheel,
342
+ onWheelCapture,
343
+ };