Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ToolsPanel
: refactor Storybook examples to TypeScript, fix types in…
…consistencies (#47944) * Rename files * Fix imports * Allow panelId to be null across all types * `ToolsPanel`: mark `hasInnerWrapper` and `shouldRenderPlaceholderItems` as optional, assign `false` default value * `ToolsPanelItem`: mark `resetAllFilter` as optional, assign `noop` default value * `ToolsPanelItem`: change `isShownByDefault` to be optional, assign default `false` value * Storybook examples: add component and state types * Storybook example: ignore unsolved errors, add TODO notes * Add Storybook meta object * Fix type errors in Storybook examples * Remove extraneous `isFirstToolsPanelItemShownByDefault` prop from Story args * CHANGELOG * Fix resetAll prop forwarding typo * Update `ResetAllFilter` type to receive and return data. Update READMEs * Update READMEs to sync `resetAll` and `resetAllFilter` types and descriptions * Remove @ts-ignore comments after updating the `ResetAllFilter` type * Remove unnecessary `ToolsPanelWithItemGroupSlot` story * update `resetAll` prop descritption in types JSDocs * Fix ToolsPanel component exports * Draft ToolsPanel JSDoc example comment --------- Co-authored-by: Aaron Robertshaw <60436221+aaronrobertshaw@users.noreply.github.com>
- Loading branch information