@factorialco/f0-react 1.217.0 → 1.219.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.
@@ -0,0 +1,4 @@
1
+ import type { SVGProps } from "react";
2
+ declare const ForwardRef: import("react").ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement>, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
3
+ export default ForwardRef;
4
+ //# sourceMappingURL=One.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"One.d.ts","sourceRoot":"","sources":["../../src/icons/special/One.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AA6ErC,QAAA,MAAM,UAAU,gIAAqB,CAAA;AACrC,eAAe,UAAU,CAAA"}
@@ -0,0 +1,35 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { forwardRef, useId } from "react";
3
+ const pieces = [
4
+ {
5
+ id: "bottom",
6
+ path: "M11.9948 17.5244C14.2802 17.5244 16.5188 18.2872 18.2805 19.7631C16.5189 21.1914 14.2801 22 11.9948 22C9.61453 21.9999 7.42426 21.1436 5.71037 19.7631C7.47193 18.3348 9.70955 17.5245 11.9948 17.5244Z",
7
+ },
8
+ {
9
+ id: "left",
10
+ path: "M4.23721 5.71327C5.66526 7.47502 6.47496 9.71299 6.47503 11.9985C6.47502 14.2841 5.71292 16.5231 4.23721 18.2849C2.80903 16.5231 2 14.2841 2 11.9985C2.00007 9.61784 2.85682 7.42739 4.23721 5.71327Z",
11
+ },
12
+ {
13
+ id: "right",
14
+ path: "M19.7622 5.71327C21.1902 7.47502 21.9999 9.71299 22 11.9985C22 14.2841 21.2379 16.5231 19.7622 18.2849C18.334 16.5231 17.525 14.2841 17.525 11.9985C17.525 9.61784 18.3818 7.42739 19.7622 5.71327Z",
15
+ },
16
+ {
17
+ id: "top",
18
+ path: "M11.9948 2C14.2802 2 16.5188 2.76274 18.2805 4.2387C16.5189 5.66699 14.2801 6.47557 11.9948 6.47557C9.61453 6.4755 7.42426 5.61919 5.71037 4.2387C7.47193 2.81041 9.70955 2.00007 11.9948 2Z",
19
+ },
20
+ ];
21
+ const SvgOne = (props, ref) => {
22
+ const hasColorClass = (props.className?.includes("text-") &&
23
+ !props.className?.includes("text-current")) ||
24
+ props.style?.color !== undefined;
25
+ const clipPathId = useId();
26
+ return (_jsxs("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: ref, ...props, children: [_jsx("defs", { children: pieces.map((piece) => (_jsx("clipPath", { id: `${clipPathId}-${piece.id}`, children: _jsx("path", { d: piece.path }) }, piece.id))) }), hasColorClass
27
+ ? pieces.map((piece) => (_jsx("path", { d: piece.path, fill: "currentColor", vectorEffect: "non-scaling-stroke" }, piece.id)))
28
+ : pieces.map((piece) => (_jsx("foreignObject", { x: "0", y: "0", width: "24", height: "24", clipPath: `url(#${clipPathId}-${piece.id})`, children: _jsx("div", { style: {
29
+ width: "100%",
30
+ height: "100%",
31
+ background: "conic-gradient(from 0deg at 50% 50%, #E55619 0%, #A1ADE5 33%, #E51943 66%, #E55619 100%)",
32
+ } }) }, piece.id)))] }));
33
+ };
34
+ const ForwardRef = forwardRef(SvgOne);
35
+ export default ForwardRef;
@@ -0,0 +1,2 @@
1
+ export { default as One } from "./One";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/icons/special/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,OAAO,CAAA"}
@@ -0,0 +1 @@
1
+ export { default as One } from "./One";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@factorialco/f0-react",
3
- "version": "1.217.0",
3
+ "version": "1.219.0",
4
4
  "main": "dist/f0.js",
5
5
  "typings": "dist/f0.d.ts",
6
6
  "private": false,
@@ -10,6 +10,7 @@
10
10
  ],
11
11
  "files": [
12
12
  "assets",
13
+ "flags",
13
14
  "icons",
14
15
  "dist",
15
16
  "styles.css",
@@ -205,8 +206,9 @@
205
206
  "lint": "eslint -c eslint.config.mjs src/**/*.{ts,tsx} --report-unused-disable-directives --max-warnings 0",
206
207
  "lint-fix": "eslint -c eslint.config.mjs src/**/*.{ts,tsx} --fix --report-unused-disable-directives --max-warnings 0",
207
208
  "preview": "vite preview",
208
- "generate-icons": "rm -fR src/icons/app/* src/icons/modules/* && run-p generate-app-icons generate-module-icons",
209
+ "generate-icons": "rm -fR src/icons/app/* src/icons/modules/* src/flags/* && run-p generate-app-icons generate-module-icons generate-flag-icons && pnpm run prettier:format",
209
210
  "generate-app-icons": "npx @svgr/cli --out-dir src/icons/app node_modules/@factorialco/f0-core/assets/icons/app",
211
+ "generate-flag-icons": "npx @svgr/cli --out-dir src/flags node_modules/@factorialco/f0-core/assets/flags",
210
212
  "generate-module-icons": "npx @svgr/cli --out-dir src/icons/modules node_modules/@factorialco/f0-core/assets/icons/modules",
211
213
  "build-storybook": "storybook build",
212
214
  "serve-storybook": "http-server storybook-static",