Skip to content

Commit

Permalink
fix(nhsuk-frontend-react): add import and fix props type name
Browse files Browse the repository at this point in the history
  • Loading branch information
rowellx68 committed Feb 13, 2025
1 parent 93fcc02 commit 19b7b58
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/short-swans-eat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"nhsuk-frontend-react": patch
---

fix(nhsuk-frontend-react): add import and fix props type name
4 changes: 4 additions & 0 deletions packages/nhsuk-frontend-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,10 @@
"import": "./dist/components/content-presentation/inset-text/InsetText.mjs",
"require": "./dist/components/content-presentation/inset-text/InsetText.cjs"
},
"./components/content-presentation/panel": {
"import": "./dist/components/content-presentation/panel/Panel.mjs",
"require": "./dist/components/content-presentation/panel/Panel.cjs"
},
"./components/content-presentation/summary-list": {
"import": "./dist/components/content-presentation/summary-list/SummaryList.mjs",
"require": "./dist/components/content-presentation/summary-list/SummaryList.cjs"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import {
HeadingProps,
} from '@/components/styles/typography/heading/Heading';

export type HeroProps = ElementProps<'div'>;
export type PanelProps = ElementProps<'div'>;

type PanelFactory = Factory<{
props: HeroProps;
props: PanelProps;
ref: HTMLDivElement;
staticComponents: {
Title: typeof PanelTitle;
Expand Down
1 change: 1 addition & 0 deletions packages/nhsuk-frontend-react/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export * from '@/components/content-presentation/expander/Expander';
export * from '@/components/content-presentation/figure/Figure';
export * from '@/components/content-presentation/hero/Hero';
export * from '@/components/content-presentation/inset-text/InsetText';
export * from '@/components/content-presentation/panel/Panel';
export * from '@/components/content-presentation/summary-list/SummaryList';
export * from '@/components/content-presentation/table/Table';
export * from '@/components/content-presentation/tabs/Tabs';
Expand Down

0 comments on commit 19b7b58

Please sign in to comment.