Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
feat: icon wallet
dev_wandrye853546b01a6
diff --git a/components/docs/icons-gallery.tsx b/components/docs/icons-gallery.tsxindex d5146a85..a1a90eb1 100644--- a/components/docs/icons-gallery.tsx+++ b/components/docs/icons-gallery.tsx@@ -95,6 +95,7 @@ import { UsersIconStatic } from "@/registry/remocn/icon-users";import { VideoIconStatic } from "@/registry/remocn/icon-video";import { Volume2IconStatic } from "@/registry/remocn/icon-volume-2";import { VolumeXIconStatic } from "@/registry/remocn/icon-volume-x";+import { WalletIconStatic } from "@/registry/remocn/icon-wallet";import { XIconStatic } from "@/registry/remocn/icon-x";import { XCircleIconStatic } from "@/registry/remocn/icon-x-circle";@@ -315,6 +316,12 @@ export const ICONS: IconEntry[] = [category: "Commerce",Static: GiftIconStatic,},+ {+ name: "icon-wallet",+ label: "Wallet",+ category: "Commerce",+ Static: WalletIconStatic,+ },{name: "icon-search",label: "Search",diff --git a/registry/__index__.tsx b/registry/__index__.tsxindex 6050e7ac..cf6281c3 100644--- a/registry/__index__.tsx+++ b/registry/__index__.tsx@@ -110,6 +110,7 @@ import { iconUsersConfig } from "@/registry/remocn/icon-users/config";import { iconVideoConfig } from "@/registry/remocn/icon-video/config";import { iconVolume2Config } from "@/registry/remocn/icon-volume-2/config";import { iconVolumeXConfig } from "@/registry/remocn/icon-volume-x/config";+import { iconWalletConfig } from "@/registry/remocn/icon-wallet/config";import { iconXCircleConfig } from "@/registry/remocn/icon-x-circle/config";import { iconXConfig } from "@/registry/remocn/icon-x/config";import { iconZapConfig } from "@/registry/remocn/icon-zap/config";@@ -1241,6 +1242,13 @@ const registry: Record<string, RegistryEntry> = {})),config: iconVolumeXConfig,},+ "icon-wallet": {+ load: () =>+ import("@/registry/remocn/icon-wallet").then((m) => ({+ default: m.WalletIcon,+ })),+ config: iconWalletConfig,+ },"icon-check-circle": {load: () =>import("@/registry/remocn/icon-check-circle").then((m) => ({diff --git a/registry/remocn/icon-wallet/config.ts b/registry/remocn/icon-wallet/config.tsnew file mode 100644index 00000000..26f05057--- /dev/null+++ b/registry/remocn/icon-wallet/config.ts@@ -0,0 +1,44 @@+import { type ComponentConfig, FPS } from "@/lib/customizer-config";++export const iconWalletConfig: ComponentConfig = {+ componentName: "WalletIcon",+ importPath: "@/components/remocn/icon-wallet",+ controls: {+ animation: {+ type: "select",+ default: "both",+ options: ["draw", "action", "both"],+ label: "Animation",+ },+ loop: {+ type: "boolean",+ default: false,+ label: "Loop",+ },+ size: {+ type: "number",+ default: 48,+ min: 24,+ max: 200,+ step: 4,+ label: "Size",+ },+ color: {+ type: "color",+ default: "#171717",+ label: "Color",+ },+ strokeWidth: {+ type: "number",+ default: 2,+ min: 1,+ max: 3,+ step: 0.25,+ label: "Stroke width",+ },+ },+ durationInFrames: 70,+ fps: FPS,+ compositionWidth: 48,+ compositionHeight: 48,+};diff --git a/registry/remocn/icon-wallet/index.tsx b/registry/remocn/icon-wallet/index.tsxnew file mode 100644index 00000000..9af27808--- /dev/null+++ b/registry/remocn/icon-wallet/index.tsx@@ -0,0 +1,123 @@+"use client";++import { Easing, interpolate } from "remotion";+import {+ drawnPathProps,+ type IconAnimationProps,+ useIconAnimation,+} from "@/lib/remocn-icons";++const FLAP_PATH =+ "M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1";+const BODY_PATH = "M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4";++const CENTER = 12;++const TIMINGS = {+ drawDurationInFrames: 16,+ actionDelayInFrames: 2,+ actionDurationInFrames: 20,+ loop: false,+} as const;++export function WalletIcon({+ animation = "both",+ loop,+ speed,+ size = 48,+ color = "currentColor",+ strokeWidth = 2,+ className,+}: IconAnimationProps) {+ const { drawProgress, scaleIn, actionProgress, actionFrame } =+ useIconAnimation({ animation, loop, speed }, TIMINGS);++ const linearDraw = 1 - (1 - drawProgress) ** (1 / 3);+ const acting = animation !== "draw" && actionFrame >= 0;++ const bodyDraw = interpolate(linearDraw, [0, 0.7], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.out(Easing.quad),+ });+ const flapDraw = interpolate(linearDraw, [0.5, 1], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.out(Easing.quad),+ });++ const fatten = acting+ ? interpolate(actionProgress, [0.1, 0.5, 1], [1, 1.05, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.inOut(Easing.quad),+ })+ : 1;++ const flap = drawnPathProps(FLAP_PATH, acting ? 1 : flapDraw);+ const body = drawnPathProps(BODY_PATH, acting ? 1 : bodyDraw);++ const scale = 0.85 + 0.15 * scaleIn;+ const fattenTransform = `translate(${CENTER * (1 - fatten)} 0) scale(${fatten} 1)`;++ return (+ <svg+ className={className}+ width={size}+ height={size}+ viewBox="0 0 24 24"+ fill="none"+ stroke={color}+ strokeWidth={strokeWidth}+ strokeLinecap="round"+ strokeLinejoin="round"+ style={{+ overflow: "visible",+ transformOrigin: "center",+ transform: `scale(${scale})`,+ }}+ >+ <g transform={fattenTransform}>+ <path+ d={BODY_PATH}+ strokeDasharray={body.strokeDasharray}+ strokeDashoffset={body.strokeDashoffset}+ />+ <path+ d={FLAP_PATH}+ strokeDasharray={flap.strokeDasharray}+ strokeDashoffset={flap.strokeDashoffset}+ />+ </g>+ </svg>+ );+}++export function WalletIconStatic({+ size = 48,+ color = "currentColor",+ strokeWidth = 2,+ className,+}: {+ size?: number;+ color?: string;+ strokeWidth?: number;+ className?: string;+}) {+ return (+ <svg+ className={className}+ width={size}+ height={size}+ viewBox="0 0 24 24"+ fill="none"+ stroke={color}+ strokeWidth={strokeWidth}+ strokeLinecap="round"+ strokeLinejoin="round"+ >+ <path d={FLAP_PATH} />+ <path d={BODY_PATH} />+ </svg>+ );+}diff --git a/registry/remocn/registry.json b/registry/remocn/registry.jsonindex 398b0bd1..bccfc00b 100644--- a/registry/remocn/registry.json+++ b/registry/remocn/registry.json@@ -2584,6 +2584,21 @@}]},+ {+ "name": "icon-wallet",+ "type": "registry:component",+ "title": "Wallet",+ "description": "Animated Lucide wallet icon — draws on, then the wallet thickens with a quiet x-scale: money in.",+ "dependencies": ["remotion"],+ "registryDependencies": ["@remocn/icons-core"],+ "files": [+ {+ "path": "icon-wallet/index.tsx",+ "type": "registry:component",+ "target": "components/remocn/icon-wallet.tsx"+ }+ ]+ },{"name": "icon-user","type": "registry:component",