Skip to content

Commit bb80b60

Browse files
committed
fix storybook arg types
1 parent 75a8b51 commit bb80b60

File tree

2 files changed

+46
-1
lines changed

2 files changed

+46
-1
lines changed

.storybook/preview.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ const preview: Preview = {
1414
backgrounds: {
1515
default: getDarkMode() ? "dark" : "light",
1616
},
17-
actions: { argTypesRegex: "^on[A-Z].*" },
1817
controls: {
1918
matchers: {
2019
color: /(background|color)$/i,

src/stories/Spreadsheet.stories.tsx

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,52 @@ const meta: Meta<Props<StringCell>> = {
3939
args: {
4040
data: EMPTY_DATA,
4141
},
42+
argTypes: {
43+
className: { type: "string" },
44+
darkMode: { type: "boolean" },
45+
columnLabels: {
46+
type: {
47+
name: "array",
48+
value: {
49+
name: "string",
50+
},
51+
},
52+
},
53+
rowLabels: {
54+
type: {
55+
name: "array",
56+
value: {
57+
name: "string",
58+
},
59+
},
60+
},
61+
hideRowIndicators: { type: "boolean" },
62+
hideColumnIndicators: { type: "boolean" },
63+
selected: {
64+
type: {
65+
name: "other",
66+
value: "Selection",
67+
},
68+
},
69+
createFormulaParser: { type: "function" },
70+
ColumnIndicator: { type: "function" },
71+
CornerIndicator: { type: "function" },
72+
RowIndicator: { type: "function" },
73+
Table: { type: "function" },
74+
Row: { type: "function" },
75+
HeaderRow: { type: "function" },
76+
Cell: { type: "function" },
77+
DataViewer: { type: "function" },
78+
DataEditor: { type: "function" },
79+
onKeyDown: { type: "function" },
80+
onChange: { type: "function" },
81+
onModeChange: { type: "function" },
82+
onSelect: { type: "function" },
83+
onActivate: { type: "function" },
84+
onBlur: { type: "function" },
85+
onCellCommit: { type: "function" },
86+
onEvaluatedDataChange: { type: "function" },
87+
},
4288
decorators: [
4389
(Story): React.ReactElement => (
4490
<div

0 commit comments

Comments
 (0)