-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(storybook): consolidate storybook and component types #9500
refactor(storybook): consolidate storybook and component types #9500
Conversation
…eciado88/9418-consolidate-storybook-and-component-types
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aside from a few cleanup comments, this LGTM!
@anveshmekala @driskull @Elijbet @eriklharper @macandcheese can you give this a quick look? 👀
@@ -53,7 +53,10 @@ export class TileGroup implements InteractiveComponent, SelectableGroupComponent | |||
* | |||
* Use `"horizontal"` for rows, and `"vertical"` for a single column. | |||
*/ | |||
@Prop({ reflect: true }) layout: Exclude<Layout, "grid"> = "horizontal"; | |||
@Prop({ reflect: true }) layout: Exclude< |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Based on this PR, I think it's better if we change this to Extract
instead. Applies to other relevant exclusions.
@@ -14,15 +14,14 @@ import { | |||
import { focusFirstTabbable, toAriaBoolean } from "../../utils/dom"; | |||
import { isActivationKey } from "../../utils/key"; | |||
import { connectLocalized, disconnectLocalized, LocalizedComponent } from "../../utils/locale"; | |||
import { FlipContext } from "../interfaces"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we submit these import-only changes separately?
@@ -1,4 +1,2 @@ | |||
export type ArrowType = "inline" | "edge" | "none"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can leave component-specific types where they are. Anything that's shared should go in src/components/interfaces.ts
. Some new types might need to be moved to component-level interfaces.ts
files.
…orkflow * origin/main: (26 commits) revert: refactor: add simpler `componentFocusable` util (deprecates `LoadableComponent`) (#9515) chore(linting): enable selector-pseudo-element-colon-notation rule (#9518) refactor(storybook): refactor tooltip simple story interface (#9538) refactor(dom): consolidate transition/animation waiting utils (#9341) refactor(storybook): build storybook simple story args interfaces using component class (#9457) chore: release next fix(block): add accessible label for slotted controls (#9502) feat(action-bar, action-pad): add expandLabel and collapseLabel to messages (#9497) chore: release next feat(action-menu, combobox, dropdown, input-date-picker, popover): allow logical placements for flipPlacements property. #8825 (#9490) fix(popover): correct border radius on close button (#9485) fix(list-item): hide nested list items by default (#9474) refactor: move component types into component specific interfaces files (#9527) chore: release next fix(alert): pause auto-close alert when link focused (#9503) refactor(storybook): consolidate storybook and component types (#9500) refactor(calcite-block-section,calcite-card): consolidate interfaces imports (#9517) chore: release next fix(block-section): restore block toggling when clicking on the header switch (#9472) chore: release next ...
Related Issue: #9418
Summary
packages/calcite-components/.storybook/interfaces.ts
andpackages/calcite-components/src/components/interfaces.ts