Skip to content
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

[docs] Migrate batch of demos to hooks/typescript #16334

Merged
merged 45 commits into from
Jun 24, 2019

Conversation

merceyz
Copy link
Member

@merceyz merceyz commented Jun 22, 2019

Migrated the rest of the demos to hooks/typescript, there are a few missing but they require changes to the declarations i.e. #16333 or include too much change for this PR. It's big enough already.

  • customization/themes/CustomStyles
  • customization/themes/ThemeNesting
  • customization/themes/ThemeNestingExtend
  • customization/themes/WithTheme
  • customization/typography/FontSizeTheme
  • guides/composition/Composition
  • guides/right-to-left/Direction
  • styles/advanced/GlobalClassName
  • styles/advanced/GlobalCss
  • styles/advanced/HybridGlobalCss
  • styles/advanced/ThemeNesting
  • styles/advanced/Theming
  • styles/advanced/UseTheme
  • styles/basics/HigherOrderComponent
  • styles/basics/Hook
  • styles/basics/StressTest

Javascript and TypeScript are identical

  • system/display/Block
  • system/display/Hiding
  • system/display/Inline
  • system/display/Print
  • system/display/Overflow
  • system/display/TextOverflow
  • system/display/Visibility
  • system/display/WhiteSpace

Javascript and TypeScript are identical, changed to immediate export

  • system/flexbox/AlignContent
  • system/flexbox/AlignItems
  • system/flexbox/AlignSelf
  • system/flexbox/Display
  • system/flexbox/FlexDirection
  • system/flexbox/FlexGrow
  • system/flexbox/FlexShrink
  • system/flexbox/FlexWrap
  • system/flexbox/JustifyContent
  • system/flexbox/Order
  • system/palette/BackgroundColor
  • system/palette/Color
  • system/positions/ZIndex
  • system/shadows/Demo
  • system/sizing/Height
  • system/sizing/Values
  • system/sizing/Width
  • system/spacing/Demo
  • system/spacing/HorizontalCentering

@mui-pr-bot
Copy link

mui-pr-bot commented Jun 22, 2019

No bundle size changes comparing 0bee9a7...e0810a6

Generated by 🚫 dangerJS against e0810a6

@eps1lon
Copy link
Member

eps1lon commented Jun 22, 2019

Might take some time to get to this one.

@eps1lon eps1lon added docs Improvements or additions to the documentation typescript labels Jun 22, 2019
Copy link
Member

@oliviertassinari oliviertassinari left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

@merceyz merceyz force-pushed the docs/typescript branch 2 times, most recently from 84249bd to db5c04a Compare June 23, 2019 11:14
@joshwooding
Copy link
Member

This is a lot of migration for one pull request +1,322 −111:eyes:

Copy link
Member

@joshwooding joshwooding left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good :) 🚀

Copy link
Member

@eps1lon eps1lon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! Just added some <ThemeProvider<ThemeType> /> for autocompletion and closer error message (you already did this in another demeo).

@eps1lon eps1lon mentioned this pull request Jun 24, 2019
@oliviertassinari
Copy link
Member

Should this pull request close #15451?

@eps1lon
Copy link
Member

eps1lon commented Jun 24, 2019

Should this pull request close #15451?

The scope of that issue is a bit different. It is concerned with typing the possible values as literals instead of strings. Right now they still accept any value because it's very hard to type every possible overload.

I'm going to experiment a bit with a possible type helper.

@eps1lon eps1lon merged commit 9417f32 into mui:master Jun 24, 2019
@eps1lon
Copy link
Member

eps1lon commented Jun 24, 2019

@merceyz Awesome work

@merceyz merceyz deleted the docs/typescript branch June 24, 2019 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to the documentation typescript
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants