etudes 8.0.0 → 8.1.0

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,5 +1,17 @@
1
1
  import { HTMLAttributes } from 'react';
2
2
  export type FlatSVGProps = HTMLAttributes<HTMLDivElement> & {
3
+ /**
4
+ * Specifies how the SVG should be resized:
5
+ * - `none`: The SVG size attributes are stripped.
6
+ * - `preserve`: The SVG size attributes are unchanged.
7
+ * - `fill`: The SVG will fill the container, i.e. `width="100%"` and
8
+ * `height="100%"`.
9
+ * - `height`: Default: the SVG will maintain its aspect ratio and fill the height of
10
+ * the container, i.e. `width="auto"` and `height="100%"`.
11
+ * - `width`: The SVG will maintain its aspect ratio and fill the width of the
12
+ * container, i.e. `width="100%"` and `height="auto"`.
13
+ */
14
+ fillMode?: 'none' | 'preserve' | 'fill' | 'height' | 'width';
3
15
  /**
4
16
  * The SVG string markup, i.e. "<svg>...</svg>".
5
17
  */
@@ -25,11 +37,6 @@ export type FlatSVGProps = HTMLAttributes<HTMLDivElement> & {
25
37
  * root node.
26
38
  */
27
39
  shouldStripPosition?: boolean;
28
- /**
29
- * Specifies whether the 'width' and 'height' attributes should be removed in
30
- * the SVG root node.
31
- */
32
- shouldStripSize?: boolean;
33
40
  /**
34
41
  * Specifies whether the 'style' atribute and any <style> nodes should be
35
42
  * removed in the SVG root node and all of its child nodes.
@@ -48,6 +55,18 @@ export type FlatSVGProps = HTMLAttributes<HTMLDivElement> & {
48
55
  * according to the props specified.
49
56
  */
50
57
  export declare const FlatSVG: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
58
+ /**
59
+ * Specifies how the SVG should be resized:
60
+ * - `none`: The SVG size attributes are stripped.
61
+ * - `preserve`: The SVG size attributes are unchanged.
62
+ * - `fill`: The SVG will fill the container, i.e. `width="100%"` and
63
+ * `height="100%"`.
64
+ * - `height`: Default: the SVG will maintain its aspect ratio and fill the height of
65
+ * the container, i.e. `width="auto"` and `height="100%"`.
66
+ * - `width`: The SVG will maintain its aspect ratio and fill the width of the
67
+ * container, i.e. `width="100%"` and `height="auto"`.
68
+ */
69
+ fillMode?: "none" | "preserve" | "fill" | "height" | "width";
51
70
  /**
52
71
  * The SVG string markup, i.e. "<svg>...</svg>".
53
72
  */
@@ -73,11 +92,6 @@ export declare const FlatSVG: import('react').ForwardRefExoticComponent<HTMLAttr
73
92
  * root node.
74
93
  */
75
94
  shouldStripPosition?: boolean;
76
- /**
77
- * Specifies whether the 'width' and 'height' attributes should be removed in
78
- * the SVG root node.
79
- */
80
- shouldStripSize?: boolean;
81
95
  /**
82
96
  * Specifies whether the 'style' atribute and any <style> nodes should be
83
97
  * removed in the SVG root node and all of its child nodes.