@muraldevkit/ui-toolkit 4.14.3 → 4.14.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,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { AttrsObject } from '../../../utils';
3
- import { NotificationKind, NotificationIconConfig, NotificationScope, NotificationState, NotificationLevel } from '../constants';
3
+ import { NotificationKind, NotificationScope, NotificationState, NotificationLevel } from '../constants';
4
4
  import { DSIconType } from '../..';
5
5
  import './MrlBlockNotification.global.scss';
6
6
  import { useAutoClose } from '../../../hooks/useAutoClose';
@@ -32,9 +32,9 @@ export interface MrlBlockNotificationProps {
32
32
  */
33
33
  kind?: NotificationKind;
34
34
  /**
35
- * Configuration of an icon. Either an icon or a configuration for an icon can be used.
35
+ * A custom DS icon.
36
36
  */
37
- iconConfig?: DSIconType | string | NotificationIconConfig;
37
+ customIcon?: DSIconType;
38
38
  /**
39
39
  * Sets header text for notification
40
40
  */
@@ -1,4 +1,3 @@
1
- import { DSIconType } from '../..';
2
1
  export declare const allowedValues: {
3
2
  kinds: readonly ["info", "success", "warning", "error", "private", "general"];
4
3
  levels: readonly ["2", "3", "4", "5", "6"];
@@ -16,16 +15,6 @@ export interface NotificationDefaults {
16
15
  scope: NotificationScope;
17
16
  state: NotificationState;
18
17
  }
19
- export interface NotificationIconConfig {
20
- /**
21
- * SVG object from @muraldevkit/ds-icons;
22
- * for pre-defined kinds, the design system handles this information out of the box
23
- * but a developer can still overwrite the theme if needed.
24
- */
25
- svg?: DSIconType;
26
- /** icon theme if you're not using the default */
27
- theme?: string;
28
- }
29
18
  /**
30
19
  * Default values for props on the Notification component;
31
20
  * Shared between the component and Storybook
@@ -80,7 +80,7 @@ export declare const colorPictoStoryData: {
80
80
  export declare const animateStoryData: {
81
81
  args: {
82
82
  delay: number;
83
- state: "stop" | "play";
83
+ state: "play" | "stop";
84
84
  };
85
85
  argTypes: {
86
86
  delay: {