@muraldevkit/ui-toolkit 4.48.1 → 4.49.1

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.
@@ -3,3 +3,4 @@ export * from './MrlMenuItem';
3
3
  export * from './MrlMenuItemLink';
4
4
  export * from './MrlMenuGroup';
5
5
  export * from './constants';
6
+ export * from './utilities';
@@ -0,0 +1,2 @@
1
+ export * from './flip-position';
2
+ export * from './get-scrollable-parent';
@@ -8,9 +8,9 @@ export interface SvgPropTypes extends Omit<MrlComponentProps, 'style'>, Omit<Rea
8
8
  /** Any additional classes to style the SVG's container */
9
9
  className?: string;
10
10
  /**
11
- * @todo: Add optional path prop to point to a static SVG url
12
- * @todo: Make SVG prop optional and must pass one of path or SVG
11
+ * URL path to a static SVG file. Must provide either path or svg prop.
13
12
  */
13
+ path?: string;
14
14
  isClone?: boolean;
15
15
  /** The size of an SVG Component */
16
16
  size?: SVGSize;
@@ -19,12 +19,14 @@ export interface SvgPropTypes extends Omit<MrlComponentProps, 'style'>, Omit<Rea
19
19
  * needs can not be met by passing a class to the component.
20
20
  */
21
21
  style?: Record<string, unknown>;
22
- /** The SVG object to parse into an HTML SVG element */
23
- svg: DSIconType;
22
+ /** The SVG object to parse into an HTML SVG element. Must provide either path or svg prop. */
23
+ svg?: DSIconType;
24
24
  }
25
25
  /**
26
26
  * Creating and exporting component class for Mural SVG
27
27
  *
28
+ * Supports both static SVG objects and dynamic URL loading.
29
+ *
28
30
  * @param {SvgPropTypes} props the props for your MrlSvg
29
31
  * @returns {React.ReactElement} a rendered SVG
30
32
  */