Skip to content

Commit

Permalink
fix(*): exit types for notification
Browse files Browse the repository at this point in the history
  • Loading branch information
iljs committed Dec 20, 2024
1 parent 825930d commit 40d094a
Show file tree
Hide file tree
Showing 9 changed files with 82 additions and 24 deletions.
19 changes: 18 additions & 1 deletion packages/sdds-cs/api/sdds-cs.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ import { h4Bold } from '@salutejs/sdds-themes/tokens';
import { h5 } from '@salutejs/sdds-themes/tokens';
import { h5Bold } from '@salutejs/sdds-themes/tokens';
import { HTMLAttributes } from 'react';
import { HTMLAttributesWithoutOnChange } from '@salutejs/plasma-new-hope/types/engines/types';
import { HTMLAttributesWithoutOnChangeAndDefaultValue } from '@salutejs/plasma-new-hope/types/engines/types';
import { ImageProps } from '@salutejs/plasma-new-hope/styled-components';
import { ImgHTMLAttributes } from 'react';
import { IndicatorProps } from '@salutejs/plasma-new-hope/styled-components';
Expand Down Expand Up @@ -2361,7 +2363,22 @@ export { modalClasses }
export { ModalProps }

// @public (undocumented)
const Notification_2: React_2.ForwardRefExoticComponent<NotificationProps & React_2.RefAttributes<HTMLDivElement>>;
const Notification_2: React_2.FunctionComponent<PropsType< {
view: {
default: PolymorphicClassName;
};
layout: {
horizontal: PolymorphicClassName;
vertical: PolymorphicClassName;
};
size: {
xs: PolymorphicClassName;
xxs: PolymorphicClassName;
};
closeIconType: {
thin: PolymorphicClassName;
};
}> & (React_2.HTMLAttributes<HTMLElement> | HTMLAttributesWithoutOnChange<HTMLElement> | HTMLAttributesWithoutOnChangeAndDefaultValue<HTMLElement>)>;
export { Notification_2 as Notification }

export { NotificationIconPlacement }
Expand Down
6 changes: 2 additions & 4 deletions packages/sdds-cs/src/components/Notification/Notification.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { ForwardRefExoticComponent, ReactNode, RefAttributes } from 'react';
import React, { ReactNode } from 'react';
import {
component,
mergeConfig,
Expand All @@ -18,9 +18,7 @@ export { modalClasses } from '../Modal';

const mergedConfig = mergeConfig(notificationConfig, config);

export const Notification = component(mergedConfig) as ForwardRefExoticComponent<
NotificationProps & RefAttributes<HTMLDivElement>
>;
export const Notification = component(mergedConfig);

export const NotificationsProvider: React.FC<{
children: ReactNode;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { ForwardRefExoticComponent, ReactNode, RefAttributes } from 'react';
import React, { ReactNode } from 'react';
import {
component,
mergeConfig,
Expand All @@ -18,9 +18,7 @@ export { modalClasses } from '../Modal';

const mergedConfig = mergeConfig(notificationConfig, config);

export const Notification = component(mergedConfig) as ForwardRefExoticComponent<
NotificationProps & RefAttributes<HTMLDivElement>
>;
export const Notification = component(mergedConfig);

export const NotificationsProvider: React.FC<{
children: ReactNode;
Expand Down
19 changes: 18 additions & 1 deletion packages/sdds-finportal/api/sdds-finportal.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ import { h4Bold } from '@salutejs/sdds-themes/tokens';
import { h5 } from '@salutejs/sdds-themes/tokens';
import { h5Bold } from '@salutejs/sdds-themes/tokens';
import { HTMLAttributes } from 'react';
import { HTMLAttributesWithoutOnChange } from '@salutejs/plasma-new-hope/types/engines/types';
import { HTMLAttributesWithoutOnChangeAndDefaultValue } from '@salutejs/plasma-new-hope/types/engines/types';
import { ImageProps } from '@salutejs/plasma-new-hope/styled-components';
import { ImgHTMLAttributes } from 'react';
import { IndicatorProps } from '@salutejs/plasma-new-hope/styled-components';
Expand Down Expand Up @@ -2580,7 +2582,22 @@ export { modalClasses }
export { ModalProps }

// @public (undocumented)
const Notification_2: React_2.ForwardRefExoticComponent<NotificationProps & React_2.RefAttributes<HTMLDivElement>>;
const Notification_2: React_2.FunctionComponent<PropsType< {
view: {
default: PolymorphicClassName;
};
layout: {
horizontal: PolymorphicClassName;
vertical: PolymorphicClassName;
};
closeIconType: {
default: PolymorphicClassName;
};
size: {
xs: PolymorphicClassName;
xxs: PolymorphicClassName;
};
}> & (React_2.HTMLAttributes<HTMLElement> | HTMLAttributesWithoutOnChange<HTMLElement> | HTMLAttributesWithoutOnChangeAndDefaultValue<HTMLElement>)>;
export { Notification_2 as Notification }

export { NotificationIconPlacement }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { ForwardRefExoticComponent, ReactNode, RefAttributes } from 'react';
import React, { ReactNode } from 'react';
import {
component,
mergeConfig,
Expand All @@ -18,9 +18,7 @@ export { modalClasses } from '../Modal';

const mergedConfig = mergeConfig(notificationConfig, config);

export const Notification = component(mergedConfig) as ForwardRefExoticComponent<
NotificationProps & RefAttributes<HTMLDivElement>
>;
export const Notification = component(mergedConfig);

export const NotificationsProvider: React.FC<{
children: ReactNode;
Expand Down
19 changes: 18 additions & 1 deletion packages/sdds-insol/api/sdds-insol.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ import { h4Bold } from '@salutejs/sdds-themes/tokens';
import { h5 } from '@salutejs/sdds-themes/tokens';
import { h5Bold } from '@salutejs/sdds-themes/tokens';
import { HTMLAttributes } from 'react';
import { HTMLAttributesWithoutOnChange } from '@salutejs/plasma-new-hope/types/engines/types';
import { HTMLAttributesWithoutOnChangeAndDefaultValue } from '@salutejs/plasma-new-hope/types/engines/types';
import { ImageProps } from '@salutejs/plasma-new-hope/styled-components';
import { ImgHTMLAttributes } from 'react';
import { IndicatorProps } from '@salutejs/plasma-new-hope/styled-components';
Expand Down Expand Up @@ -2594,7 +2596,22 @@ export { modalClasses }
export { ModalProps }

// @public (undocumented)
const Notification_2: React_2.ForwardRefExoticComponent<NotificationProps & React_2.RefAttributes<HTMLDivElement>>;
const Notification_2: React_2.FunctionComponent<PropsType< {
view: {
default: PolymorphicClassName;
};
layout: {
horizontal: PolymorphicClassName;
vertical: PolymorphicClassName;
};
closeIconType: {
default: PolymorphicClassName;
};
size: {
xs: PolymorphicClassName;
xxs: PolymorphicClassName;
};
}> & (React_2.HTMLAttributes<HTMLElement> | HTMLAttributesWithoutOnChange<HTMLElement> | HTMLAttributesWithoutOnChangeAndDefaultValue<HTMLElement>)>;
export { Notification_2 as Notification }

export { NotificationIconPlacement }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { ForwardRefExoticComponent, ReactNode, RefAttributes } from 'react';
import React, { ReactNode } from 'react';
import {
component,
mergeConfig,
Expand All @@ -18,9 +18,7 @@ export { modalClasses } from '../Modal';

const mergedConfig = mergeConfig(notificationConfig, config);

export const Notification = component(mergedConfig) as ForwardRefExoticComponent<
NotificationProps & RefAttributes<HTMLDivElement>
>;
export const Notification = component(mergedConfig);

export const NotificationsProvider: React.FC<{
children: ReactNode;
Expand Down
19 changes: 18 additions & 1 deletion packages/sdds-serv/api/sdds-serv.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ import { h4Bold } from '@salutejs/sdds-themes/tokens';
import { h5 } from '@salutejs/sdds-themes/tokens';
import { h5Bold } from '@salutejs/sdds-themes/tokens';
import { HTMLAttributes } from 'react';
import { HTMLAttributesWithoutOnChange } from '@salutejs/plasma-new-hope/types/engines/types';
import { HTMLAttributesWithoutOnChangeAndDefaultValue } from '@salutejs/plasma-new-hope/types/engines/types';
import { ImageProps } from '@salutejs/plasma-new-hope/styled-components';
import { ImgHTMLAttributes } from 'react';
import { IndicatorProps } from '@salutejs/plasma-new-hope/styled-components';
Expand Down Expand Up @@ -2582,7 +2584,22 @@ export { modalClasses }
export { ModalProps }

// @public (undocumented)
const Notification_2: React_2.ForwardRefExoticComponent<NotificationProps & React_2.RefAttributes<HTMLDivElement>>;
const Notification_2: React_2.FunctionComponent<PropsType< {
view: {
default: PolymorphicClassName;
};
layout: {
horizontal: PolymorphicClassName;
vertical: PolymorphicClassName;
};
closeIconType: {
default: PolymorphicClassName;
};
size: {
xs: PolymorphicClassName;
xxs: PolymorphicClassName;
};
}> & (React_2.HTMLAttributes<HTMLElement> | HTMLAttributesWithoutOnChange<HTMLElement> | HTMLAttributesWithoutOnChangeAndDefaultValue<HTMLElement>)>;
export { Notification_2 as Notification }

export { NotificationIconPlacement }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { ForwardRefExoticComponent, ReactNode, RefAttributes } from 'react';
import React, { ReactNode } from 'react';
import {
component,
mergeConfig,
Expand All @@ -18,9 +18,7 @@ export { modalClasses } from '../Modal';

const mergedConfig = mergeConfig(notificationConfig, config);

export const Notification = component(mergedConfig) as ForwardRefExoticComponent<
NotificationProps & RefAttributes<HTMLDivElement>
>;
export const Notification = component(mergedConfig);

export const NotificationsProvider: React.FC<{
children: ReactNode;
Expand Down

0 comments on commit 40d094a

Please sign in to comment.