@web-fuse/wf-components 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  type CssColor = React.CSSProperties["color"];
3
- export interface DarkCardTitleProps {
4
- title?: React.ReactNode;
3
+ export type DarkCardTitleProps = React.PropsWithChildren<{
5
4
  titleColor?: CssColor;
6
- }
5
+ }>;
7
6
  declare const DarkCardTitle: React.FC<DarkCardTitleProps>;
8
7
  export default DarkCardTitle;
@@ -1,6 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import Title, { type DarkCardTitleProps } from "./DarkCard.Title";
3
- export type DarkCardProps = React.PropsWithChildren<DarkCardTitleProps>;
3
+ export type DarkCardProps = React.PropsWithChildren<DarkCardTitleProps & {
4
+ title?: React.ReactNode;
5
+ }>;
4
6
  type DarkCardComponent = React.FC<DarkCardProps> & {
5
7
  Title: typeof Title;
6
8
  };
@@ -1,11 +1,10 @@
1
1
  /// <reference types="react" />
2
2
  type CssColor = React.CSSProperties["color"];
3
- export interface LightCardTitleProps {
4
- title?: React.ReactNode;
3
+ export type LightCardTitleProps = React.PropsWithChildren<{
5
4
  titleColor?: CssColor;
6
- }
7
- declare const LightCardTitle: ({ title, titleColor }: {
8
- title: any;
5
+ }>;
6
+ declare const LightCardTitle: ({ children, titleColor }: {
7
+ children: any;
9
8
  titleColor?: string;
10
9
  }) => import("react/jsx-runtime").JSX.Element;
11
10
  export default LightCardTitle;
@@ -1,6 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import Title, { LightCardTitleProps } from "./LightCard.Title";
3
- export type LightCardProps = React.PropsWithChildren<LightCardTitleProps>;
3
+ export type LightCardProps = React.PropsWithChildren<LightCardTitleProps & {
4
+ title?: React.ReactNode;
5
+ }>;
4
6
  type LightCardComponent = React.FC<LightCardProps> & {
5
7
  Title: typeof Title;
6
8
  };