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

feat: export ClickableStyleProps #1860

Merged
merged 1 commit into from
Feb 27, 2024
Merged

feat: export ClickableStyleProps #1860

merged 1 commit into from
Feb 27, 2024

Conversation

ahuth
Copy link
Contributor

@ahuth ahuth commented Feb 27, 2024

Export ClickableStyleProps from the top-level index.ts.

Usages in our Remix apps won't need to deeply import anymore (in fact, they can't with Vite due to how module resolution works)

- import type {ClickableStyleProps} from '@chanzuckerberg/eds/lib/components/ClickableStyle';
+ import type {ClickableStyleProps} from '@chanzuckerberg/eds';

We need the ClickableStyleProps for our custom Remix Link component, so we properly integrate the Remix and EDS Link components.

Re-exporting the props from the top-level index.ts is easier to work with. The deep import edu-stack uses was always a hack.

@ahuth ahuth requested a review from booc0mtaco February 27, 2024 03:35
Copy link

codecov bot commented Feb 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.59%. Comparing base (24ed8bc) to head (9c4ab11).

Additional details and impacted files
@@           Coverage Diff           @@
##             next    #1860   +/-   ##
=======================================
  Coverage   92.59%   92.59%           
=======================================
  Files         148      148           
  Lines        2862     2862           
  Branches      780      780           
=======================================
  Hits         2650     2650           
  Misses        195      195           
  Partials       17       17           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ahuth ahuth force-pushed the ah-clickable-style-props branch 3 times, most recently from a5cfb07 to 5ac4f0c Compare February 27, 2024 03:37
Copy link

github-actions bot commented Feb 27, 2024

size-limit report 📦

Path Size
components 98.2 KB (0%)
styles 39.99 KB (0%)

@ahuth ahuth force-pushed the ah-clickable-style-props branch 4 times, most recently from 256f941 to 5cd2b89 Compare February 27, 2024 12:07
Usages in our Remix apps will not need to deeply import anymore (in fact,
they cannot with Vite due to how the bundling works)

  - import type {ClickableStyleProps} from "@chanzuckerberg/eds/lib/components/ClickableStyle";
  + import type {ClickableStyleProps} from "@chanzuckerberg/eds";

We need the ClickableStyleProps for our custom Remix Link component, so
we properly integrate the Remix and EDS Link components.

Re-exporting the props is easier to work with. The deep import in edu-stack was always a hack.
@ahuth ahuth force-pushed the ah-clickable-style-props branch from 5cd2b89 to 9c4ab11 Compare February 27, 2024 12:10
Copy link
Contributor

@booc0mtaco booc0mtaco left a comment

Choose a reason for hiding this comment

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

👍

@ahuth ahuth merged commit 0d1b49e into next Feb 27, 2024
9 checks passed
@ahuth ahuth deleted the ah-clickable-style-props branch February 27, 2024 15:56
@booc0mtaco booc0mtaco mentioned this pull request Mar 4, 2024
booc0mtaco added a commit that referenced this pull request Mar 4, 2024
## [13.12.0](v13.11.0...v13.12.0) (2024-03-04)

[Storybook](https://61313967cde49b003ae2a860-telsscxlak.chromatic.com/?path=/docs/getting-started--docs)

### Features

* export ClickableStyleProps ([#1860](#1860)) ([0d1b49e](0d1b49e))
* **Select:** add support for required in overline ([#1855](#1855)) ([6e44566](6e44566))


### Bug Fixes

* lodash tree shaking ([#1852](#1852)) ([f55f9cb](f55f9cb))
* **Select:** add max height for Select.Options ([#1858](#1858)) ([24ed8bc](24ed8bc))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants