shape-morph 0.1.0 → 0.1.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.
- package/README.md +31 -115
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js.map +1 -1
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +2 -2
- package/dist/react/index.d.ts +2 -2
- package/dist/react/index.js.map +1 -1
- package/package.json +1 -1
package/dist/react/index.d.cts
CHANGED
|
@@ -144,7 +144,7 @@ interface ShapeProps {
|
|
|
144
144
|
* Renders a Material shape as an inline SVG element.
|
|
145
145
|
*
|
|
146
146
|
* The SVG inherits `currentColor` by default, so it responds to
|
|
147
|
-
* the parent's `color` CSS property
|
|
147
|
+
* the parent's `color` CSS property - including Tailwind utilities.
|
|
148
148
|
*
|
|
149
149
|
* ```tsx
|
|
150
150
|
* <Shape name="Heart" size={32} className="text-red-500" />
|
|
@@ -213,4 +213,4 @@ interface ShapeOutput {
|
|
|
213
213
|
*/
|
|
214
214
|
declare function useShape(name: ShapeName, size?: number): ShapeOutput;
|
|
215
215
|
|
|
216
|
-
export { Shape, type ShapeName, useMorph, useShape };
|
|
216
|
+
export { type MorphOptions, type MorphOutput, Shape, type ShapeName, type ShapeOutput, type ShapeProps, useMorph, useShape };
|
package/dist/react/index.d.ts
CHANGED
|
@@ -144,7 +144,7 @@ interface ShapeProps {
|
|
|
144
144
|
* Renders a Material shape as an inline SVG element.
|
|
145
145
|
*
|
|
146
146
|
* The SVG inherits `currentColor` by default, so it responds to
|
|
147
|
-
* the parent's `color` CSS property
|
|
147
|
+
* the parent's `color` CSS property - including Tailwind utilities.
|
|
148
148
|
*
|
|
149
149
|
* ```tsx
|
|
150
150
|
* <Shape name="Heart" size={32} className="text-red-500" />
|
|
@@ -213,4 +213,4 @@ interface ShapeOutput {
|
|
|
213
213
|
*/
|
|
214
214
|
declare function useShape(name: ShapeName, size?: number): ShapeOutput;
|
|
215
215
|
|
|
216
|
-
export { Shape, type ShapeName, useMorph, useShape };
|
|
216
|
+
export { type MorphOptions, type MorphOutput, Shape, type ShapeName, type ShapeOutput, type ShapeProps, useMorph, useShape };
|