diff --git a/packages/core/assets/icons/ai/receipt-ai.svg b/packages/core/assets/icons/ai/receipt-ai.svg index 0add5e1c7b..e915f27409 100644 --- a/packages/core/assets/icons/ai/receipt-ai.svg +++ b/packages/core/assets/icons/ai/receipt-ai.svg @@ -1,4 +1,4 @@ - - + + diff --git a/packages/react-native/assets/icons/ai/receipt-ai.svg b/packages/react-native/assets/icons/ai/receipt-ai.svg new file mode 100644 index 0000000000..e915f27409 --- /dev/null +++ b/packages/react-native/assets/icons/ai/receipt-ai.svg @@ -0,0 +1,4 @@ + + + + diff --git a/packages/react-native/package.json b/packages/react-native/package.json index bc7b8ecaeb..2b0fe75641 100644 --- a/packages/react-native/package.json +++ b/packages/react-native/package.json @@ -31,6 +31,13 @@ "react-native": "./src/icons/index.ts", "default": "./src/icons/index.ts" }, + "./icons/ai": { + "types": "./src/icons/ai/index.ts", + "import": "./src/icons/ai/index.ts", + "require": "./src/icons/ai/index.ts", + "react-native": "./src/icons/ai/index.ts", + "default": "./src/icons/ai/index.ts" + }, "./icons/app": { "types": "./src/icons/app/index.ts", "import": "./src/icons/app/index.ts", diff --git a/packages/react-native/scripts/generate-icons.mjs b/packages/react-native/scripts/generate-icons.mjs index 41fffb851c..2e513fb05a 100644 --- a/packages/react-native/scripts/generate-icons.mjs +++ b/packages/react-native/scripts/generate-icons.mjs @@ -3,14 +3,14 @@ /** * Regenerates the React Native icon components from the package's own SVG source. * - * Source of truth: packages/react-native/assets/icons/{app,modules} - * Output: packages/react-native/src/icons/{app,modules} + * Source of truth: packages/react-native/assets/icons/{ai,app,modules} + * Output: packages/react-native/src/icons/{ai,app,modules} * * The icon source lives INSIDE this package — React Native is independent from * @factorialco/f0-core and no longer pulls icons from it. * * Usage: - * pnpm generate-icons Regenerate src/icons/{app,modules} from the SVG source. + * pnpm generate-icons Regenerate src/icons/{ai,app,modules} from the SVG source. * pnpm generate-icons --check Verify the committed output is in sync (used in CI). Exits 1 on drift. * * The SVG -> component transform is delegated to @svgr/cli with the exact same @@ -45,7 +45,7 @@ const PKG_DIR = resolve(SCRIPT_DIR, "..") const REPO_ROOT = resolve(PKG_DIR, "..", "..") const SVG_SOURCE = resolve(PKG_DIR, "assets/icons") const OUT_ROOT = resolve(PKG_DIR, "src/icons") -const GROUPS = ["app", "modules"] +const GROUPS = ["ai", "app", "modules"] const CHECK = process.argv.includes("--check") const PRUNE = process.argv.includes("--prune") diff --git a/packages/react-native/src/icons/ai/ReceiptAi.tsx b/packages/react-native/src/icons/ai/ReceiptAi.tsx new file mode 100644 index 0000000000..1b5ec5eee6 --- /dev/null +++ b/packages/react-native/src/icons/ai/ReceiptAi.tsx @@ -0,0 +1,19 @@ +import { Ref, forwardRef } from "react" +import Svg, { Path } from "react-native-svg" +import type { SvgProps } from "react-native-svg" +const SvgReceiptAi = (props: SvgProps, ref: Ref) => ( + + + +) +const ForwardRef = forwardRef(SvgReceiptAi) +export default ForwardRef diff --git a/packages/react-native/src/icons/ai/index.ts b/packages/react-native/src/icons/ai/index.ts new file mode 100644 index 0000000000..d57a975df3 --- /dev/null +++ b/packages/react-native/src/icons/ai/index.ts @@ -0,0 +1 @@ +export { default as ReceiptAi } from "./ReceiptAi" diff --git a/packages/react-native/src/icons/index.ts b/packages/react-native/src/icons/index.ts index 8b1184c302..f8af169b79 100644 --- a/packages/react-native/src/icons/index.ts +++ b/packages/react-native/src/icons/index.ts @@ -1,4 +1,5 @@ +import * as AiIcons from "./ai" import * as AppIcons from "./app" import * as ModuleIcons from "./modules" -export { AppIcons, ModuleIcons } +export { AiIcons, AppIcons, ModuleIcons } export * from "./types" diff --git a/packages/react/src/icons/ai/ReceiptAi.tsx b/packages/react/src/icons/ai/ReceiptAi.tsx index 53f30295f4..506edc19cd 100644 --- a/packages/react/src/icons/ai/ReceiptAi.tsx +++ b/packages/react/src/icons/ai/ReceiptAi.tsx @@ -13,12 +13,12 @@ const SvgReceiptAi = ( >