Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/core/assets/icons/ai/receipt-ai.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions packages/react-native/assets/icons/ai/receipt-ai.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions packages/react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
8 changes: 4 additions & 4 deletions packages/react-native/scripts/generate-icons.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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")
Expand Down
19 changes: 19 additions & 0 deletions packages/react-native/src/icons/ai/ReceiptAi.tsx
Original file line number Diff line number Diff line change
@@ -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<Svg>) => (
<Svg
fill="none"
viewBox="0 0 24 24"
className={props.className}
ref={ref}
{...props}
>
<Path
fill="currentColor"
d="M15 3.35A3.65 3.65 0 0 1 18.65 7V12.2a.651.651 0 0 1-1.3 0V7A2.35 2.35 0 0 0 15 4.65H9A2.35 2.35 0 0 0 6.65 7v11.815c.001.307.37.465.592.253l.887-.849a1.65 1.65 0 0 1 2.396.123l.601.705a.35.35 0 0 0 .533 0l.87-1.024a.65.65 0 0 1 .99.842l-.869 1.023a1.65 1.65 0 0 1-2.514.002l-.6-.705a.35.35 0 0 0-.509-.026l-.886.848c-1.05 1.004-2.79.26-2.791-1.192V7A3.65 3.65 0 0 1 9 3.35zm-2 8.2a.651.651 0 0 1 0 1.3H9a.65.65 0 0 1 0-1.3zm2-4a.651.651 0 0 1 0 1.3H9a.65.65 0 0 1 0-1.3zM18.531 16.278c.102.274.318.49.591.59l1.438.532-1.438.531c-.273.102-.49.318-.59.591L18 19.96l-.531-1.438a1 1 0 0 0-.591-.59L15.44 17.4l1.438-.531c.273-.102.49-.317.59-.591L18 14.841z"
/>
</Svg>
)
const ForwardRef = forwardRef(SvgReceiptAi)
export default ForwardRef
1 change: 1 addition & 0 deletions packages/react-native/src/icons/ai/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default as ReceiptAi } from "./ReceiptAi"
3 changes: 2 additions & 1 deletion packages/react-native/src/icons/index.ts
Original file line number Diff line number Diff line change
@@ -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"
4 changes: 2 additions & 2 deletions packages/react/src/icons/ai/ReceiptAi.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ const SvgReceiptAi = (
>
<path
fill="currentColor"
d="M14.1504 3.40564C16.1661 3.40585 17.8008 5.04032 17.8008 7.05603V12.0687C17.8006 12.4274 17.5091 12.7189 17.1504 12.7191C16.7915 12.7191 16.5002 12.4275 16.5 12.0687V7.05603C16.5 5.75829 15.4481 4.70663 14.1504 4.70642H8.15039C6.85252 4.70642 5.80078 5.75816 5.80078 7.05603V18.8822C5.80138 19.1806 6.15108 19.3419 6.37793 19.1478L7.55762 18.1361C8.18876 17.5952 9.12439 17.6081 9.74023 18.1664L10.8838 19.2035C11.02 19.3266 11.2288 19.3239 11.3613 19.1967L11.8604 18.7181C12.1192 18.4695 12.5306 18.4778 12.7793 18.7367C13.0275 18.9956 13.0194 19.4071 12.7607 19.6556L12.2627 20.1342C11.6375 20.7347 10.6532 20.7493 10.0107 20.1674L8.86719 19.1293C8.73658 19.0109 8.53815 19.0088 8.4043 19.1234L7.22461 20.1342C6.15449 21.0514 4.5006 20.2914 4.5 18.8822V7.05603C4.5 5.04019 6.13455 3.40564 8.15039 3.40564H14.1504ZM12.1504 11.4056C12.5092 11.4058 12.8008 11.6972 12.8008 12.056C12.8006 12.4147 12.5091 12.7062 12.1504 12.7064H8.15039C7.79153 12.7064 7.5002 12.4148 7.5 12.056C7.5 11.697 7.79141 11.4056 8.15039 11.4056H12.1504ZM14.1504 7.40564C14.5092 7.40585 14.8008 7.69717 14.8008 8.05603C14.8006 8.41471 14.5091 8.70621 14.1504 8.70642H8.15039C7.79153 8.70642 7.5002 8.41484 7.5 8.05603C7.5 7.69705 7.79141 7.40564 8.15039 7.40564H14.1504Z"
d="M15 3.34998C17.0157 3.35019 18.6504 4.98466 18.6504 7.00037V12.1986C18.6502 12.5573 18.3587 12.8488 18 12.849C17.6411 12.849 17.3498 12.5574 17.3496 12.1986V7.00037C17.3496 5.70263 16.2977 4.65097 15 4.65076H9C7.70213 4.65076 6.65039 5.7025 6.65039 7.00037V18.8148C6.65104 19.1223 7.01974 19.2804 7.24219 19.0677L8.12891 18.2191C8.81455 17.5635 9.91038 17.6198 10.5254 18.3422L11.126 19.0472C11.2658 19.2111 11.5196 19.2113 11.6592 19.0472L12.5283 18.0228C12.7606 17.7495 13.1707 17.7164 13.4443 17.9486C13.7174 18.181 13.7516 18.5911 13.5195 18.8646L12.6504 19.8881C11.9922 20.6635 10.7953 20.6642 10.1357 19.89L9.53516 19.1849C9.40471 19.0318 9.17277 19.0196 9.02734 19.1586L8.14062 20.0072C7.09125 21.0107 5.35026 20.2666 5.34961 18.8148V7.00037C5.34961 4.98453 6.98416 3.34998 9 3.34998H15ZM13 11.5492C13.3588 11.5492 13.6502 11.8408 13.6504 12.1996C13.6504 12.5586 13.359 12.85 13 12.85H9C8.64101 12.85 8.34961 12.5586 8.34961 12.1996C8.34983 11.8408 8.64115 11.5492 9 11.5492H13ZM15 7.54919C15.3588 7.54919 15.6502 7.84079 15.6504 8.19958C15.6504 8.55857 15.359 8.84998 15 8.84998H9C8.64101 8.84998 8.34961 8.55857 8.34961 8.19958C8.34983 7.84079 8.64115 7.54919 9 7.54919H15Z"
vectorEffect="non-scaling-stroke"
/>
<path
fill="currentColor"
d="M16.6811 14.713C16.8422 14.2776 17.4579 14.2776 17.619 14.713L18.1506 16.1497C18.2013 16.2866 18.3092 16.3945 18.446 16.4451L19.8828 16.9768C20.3181 17.1379 20.3181 17.7536 19.8828 17.9146L18.446 18.4463C18.3092 18.4969 18.2013 18.6048 18.1506 18.7417L17.619 20.1785C17.4579 20.6138 16.8422 20.6138 16.6811 20.1785L16.1495 18.7417C16.0988 18.6048 15.9909 18.4969 15.8541 18.4463L14.4173 17.9146C13.982 17.7536 13.982 17.1379 14.4173 16.9768L15.8541 16.4451C15.9909 16.3945 16.0988 16.2866 16.1495 16.1497L16.6811 14.713Z"
d="M18.5312 16.278C18.6325 16.5515 18.8485 16.7675 19.1221 16.8688L20.5596 17.4L19.1221 17.9313C18.8485 18.0326 18.6325 18.2486 18.5312 18.5221L18 19.9596L17.4688 18.5221C17.3675 18.2486 17.1515 18.0326 16.8779 17.9313L15.4404 17.4L16.8779 16.8688C17.1515 16.7675 17.3675 16.5515 17.4688 16.278L18 14.8405L18.5312 16.278Z"
vectorEffect="non-scaling-stroke"
/>
</svg>
Expand Down
Loading