Skip to content

Commit

Permalink
Export leading icon types (#2752)
Browse files Browse the repository at this point in the history
* feat(leading icon): export leading icon types

* feat(leading icon): update changeset

* feat(leading icon): rebase to main

---------

Co-authored-by: Ddouglasz <douglas.egiemeh@gmail.com>
  • Loading branch information
ddouglasz and Ddouglasz committed Mar 21, 2024
1 parent e7690f2 commit 90186d4
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/mean-crabs-perform.md
@@ -0,0 +1,5 @@
---
'@commercetools-uikit/icons': minor
---

We now export props typescript types for both `LeadingIcon` and `InlineSvg` components.
1 change: 1 addition & 0 deletions packages/components/icons/src/inline-svg/export-types.ts
@@ -0,0 +1 @@
export type { InlineSvgProps } from './inline-svg';
1 change: 1 addition & 0 deletions packages/components/icons/src/inline-svg/index.ts
@@ -1 +1,2 @@
export { default } from './inline-svg';
export * from './export-types';
2 changes: 1 addition & 1 deletion packages/components/icons/src/inline-svg/inline-svg.tsx
Expand Up @@ -12,7 +12,7 @@ import { ClassNames } from '@emotion/react';
import { canUseDOM } from '@commercetools-uikit/utils';
import { getIconStyles } from '../templates/icon.styles';

type InlineSvgProps = Props & {
export type InlineSvgProps = Props & {
data: string;
};

Expand Down
1 change: 1 addition & 0 deletions packages/components/icons/src/leading-icon/export-types.ts
@@ -0,0 +1 @@
export type { TLeadingIconProps } from './leading-icon';
2 changes: 2 additions & 0 deletions packages/components/icons/src/leading-icon/index.ts
@@ -1 +1,3 @@
export { default } from './leading-icon';

export * from './export-types';

0 comments on commit 90186d4

Please sign in to comment.