@factorialco/f0-react 1.292.0 → 1.294.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.
- package/dist/experimental.d.ts +33 -16
- package/dist/experimental.js +9048 -9012
- package/dist/f0.d.ts +37 -16
- package/dist/f0.js +5 -3
- package/dist/{hooks-C7xcrcsI.js → hooks-B9lijBjS.js} +10984 -10997
- package/dist/i18n-provider-defaults.d.ts +5 -5
- package/dist/styles.css +1 -1
- package/icons/ai/Calendar.d.ts +4 -0
- package/icons/ai/Calendar.d.ts.map +1 -0
- package/icons/ai/Calendar.js +5 -0
- package/icons/ai/Search.d.ts +4 -0
- package/icons/ai/Search.d.ts.map +1 -0
- package/icons/ai/Search.js +5 -0
- package/icons/ai/Summary.d.ts +4 -0
- package/icons/ai/Summary.d.ts.map +1 -0
- package/icons/ai/Summary.js +5 -0
- package/icons/ai/index.d.ts +4 -0
- package/icons/ai/index.d.ts.map +1 -0
- package/icons/ai/index.js +3 -0
- package/package.json +4 -3
- package/tailwind.config.ts +17 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Calendar.d.ts","sourceRoot":"","sources":["../../src/icons/ai/Calendar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAoBrC,QAAA,MAAM,UAAU,gIAA0B,CAAA;AAC1C,eAAe,UAAU,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef } from "react";
|
|
3
|
+
const SvgCalendar = (props, ref) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ref: ref, ...props, children: _jsx("path", { fill: "currentColor", d: "M18.5312 16.2676C18.6923 15.8323 19.3077 15.8323 19.4688 16.2676L20.001 17.7041C20.0516 17.8408 20.1592 17.9484 20.2959 17.999L21.7324 18.5312C22.1677 18.6923 22.1677 19.3077 21.7324 19.4688L20.2959 20.001C20.1592 20.0516 20.0516 20.1592 20.001 20.2959L19.4688 21.7324C19.3077 22.1677 18.6923 22.1677 18.5312 21.7324L17.999 20.2959C17.9484 20.1592 17.8408 20.0516 17.7041 20.001L16.2676 19.4688C15.8323 19.3077 15.8323 18.6923 16.2676 18.5312L17.7041 17.999C17.8408 17.9484 17.9484 17.8408 17.999 17.7041L18.5312 16.2676ZM15 2.34961C15.359 2.34961 15.6504 2.64101 15.6504 3V4.34961H16C18.0158 4.34961 19.6504 5.98416 19.6504 8V13.5C19.6504 13.859 19.359 14.1504 19 14.1504C18.641 14.1504 18.3496 13.859 18.3496 13.5V10.6504H5.65039V16C5.65039 17.2979 6.70213 18.3496 8 18.3496H13.5C13.859 18.3496 14.1504 18.641 14.1504 19C14.1504 19.359 13.859 19.6504 13.5 19.6504H8C5.98416 19.6504 4.34961 18.0158 4.34961 16V8C4.34961 5.98416 5.98416 4.34961 8 4.34961H8.34961V3C8.34961 2.64101 8.64101 2.34961 9 2.34961C9.35899 2.34961 9.65039 2.64101 9.65039 3V4.34961H14.3496V3C14.3496 2.64101 14.641 2.34961 15 2.34961ZM8 5.65039C6.70213 5.65039 5.65039 6.70213 5.65039 8V9.34961H18.3496V8C18.3496 6.70213 17.2979 5.65039 16 5.65039H15.6504V7C15.6504 7.35899 15.359 7.65039 15 7.65039C14.641 7.65039 14.3496 7.35899 14.3496 7V5.65039H9.65039V7C9.65039 7.35899 9.35899 7.65039 9 7.65039C8.64101 7.65039 8.34961 7.35899 8.34961 7V5.65039H8Z", vectorEffect: "non-scaling-stroke" }) }));
|
|
4
|
+
const ForwardRef = forwardRef(SvgCalendar);
|
|
5
|
+
export default ForwardRef;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Search.d.ts","sourceRoot":"","sources":["../../src/icons/ai/Search.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAiBrC,QAAA,MAAM,UAAU,gIAAwB,CAAA;AACxC,eAAe,UAAU,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef } from "react";
|
|
3
|
+
const SvgSearch = (props, ref) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ref: ref, ...props, children: _jsx("path", { fill: "currentColor", d: "M11 3.35001C11.359 3.35001 11.6504 3.64141 11.6504 4.0004C11.6502 4.3592 11.3589 4.65079 11 4.65079C7.49299 4.65079 4.65039 7.49339 4.65039 11.0004C4.65061 14.5072 7.49313 17.35 11 17.35C13.9108 17.35 16.3659 15.3909 17.1152 12.7182C17.2121 12.3727 17.5705 12.1713 17.916 12.268C18.2615 12.3649 18.4638 12.7232 18.3672 13.0688C18.0684 14.1347 17.5432 15.1057 16.8486 15.9291L19.46 18.5404C19.7136 18.7943 19.7137 19.2066 19.46 19.4604C19.2062 19.7139 18.7938 19.7139 18.54 19.4604L15.9287 16.849C14.5974 17.9722 12.8784 18.6508 11 18.6508C6.77516 18.6508 3.34983 15.2252 3.34961 11.0004C3.34961 6.77542 6.77502 3.35001 11 3.35001ZM16.5312 3.267C16.6925 2.83206 17.3075 2.83206 17.4688 3.267L18.001 4.7045C18.0517 4.84107 18.1593 4.94883 18.2959 4.99942L19.7324 5.53067C20.1677 5.69175 20.1677 6.30807 19.7324 6.46915L18.2959 7.0004C18.159 7.05104 18.0516 7.15944 18.001 7.2963L17.4688 8.73282C17.3076 9.16796 16.6924 9.16796 16.5312 8.73282L15.999 7.2963C15.9484 7.15944 15.841 7.05104 15.7041 7.0004L14.2676 6.46915C13.8323 6.30807 13.8323 5.69175 14.2676 5.53067L15.7041 4.99942C15.8407 4.94883 15.9483 4.84107 15.999 4.7045L16.5312 3.267Z", vectorEffect: "non-scaling-stroke" }) }));
|
|
4
|
+
const ForwardRef = forwardRef(SvgSearch);
|
|
5
|
+
export default ForwardRef;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Summary.d.ts","sourceRoot":"","sources":["../../src/icons/ai/Summary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAoBrC,QAAA,MAAM,UAAU,gIAAyB,CAAA;AACzC,eAAe,UAAU,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef } from "react";
|
|
3
|
+
const SvgSummary = (props, ref) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ref: ref, ...props, children: _jsx("path", { fill: "currentColor", d: "M19 15.35C19.359 15.35 19.6504 15.6414 19.6504 16.0004C19.6502 16.3592 19.3588 16.6508 19 16.6508H5C4.64115 16.6508 4.34983 16.3592 4.34961 16.0004C4.34961 15.6414 4.64101 15.35 5 15.35H19ZM13.2314 7.26701C13.3927 6.83211 14.0078 6.83202 14.1689 7.26701L14.7002 8.70354C14.7508 8.8404 14.8592 8.94879 14.9961 8.99944L16.4326 9.53069C16.8679 9.69176 16.8679 10.3081 16.4326 10.4692L14.9961 11.0004C14.8592 11.0511 14.7508 11.1595 14.7002 11.2963L14.1689 12.7328C14.0079 13.168 13.3926 13.1679 13.2314 12.7328L12.6992 11.2963C12.6486 11.1595 12.5411 11.0511 12.4043 11.0004L10.9668 10.4692C10.5319 10.3079 10.5319 9.69188 10.9668 9.53069L12.4043 8.99944C12.541 8.94875 12.6486 8.84031 12.6992 8.70354L13.2314 7.26701ZM9.5 11.35C9.85899 11.35 10.1504 11.6414 10.1504 12.0004C10.1502 12.3592 9.85885 12.6508 9.5 12.6508H5C4.64115 12.6508 4.34983 12.3592 4.34961 12.0004C4.34961 11.6414 4.64101 11.35 5 11.35H9.5ZM19 11.35C19.359 11.35 19.6504 11.6414 19.6504 12.0004C19.6502 12.3592 19.3588 12.6508 19 12.6508H18C17.6412 12.6508 17.3498 12.3592 17.3496 12.0004C17.3496 11.6414 17.641 11.35 18 11.35H19ZM9.5 7.35002C9.85899 7.35002 10.1504 7.64143 10.1504 8.00041C10.1502 8.35921 9.85885 8.6508 9.5 8.6508H5C4.64115 8.6508 4.34983 8.35921 4.34961 8.00041C4.34961 7.64143 4.64101 7.35002 5 7.35002H9.5ZM19 7.35002C19.359 7.35002 19.6504 7.64143 19.6504 8.00041C19.6502 8.35921 19.3588 8.6508 19 8.6508H18C17.6412 8.6508 17.3498 8.35921 17.3496 8.00041C17.3496 7.64143 17.641 7.35002 18 7.35002H19Z", vectorEffect: "non-scaling-stroke" }) }));
|
|
4
|
+
const ForwardRef = forwardRef(SvgSummary);
|
|
5
|
+
export default ForwardRef;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/icons/ai/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAA;AAChD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAA;AAC5C,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@factorialco/f0-react",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.294.0",
|
|
4
4
|
"main": "dist/f0.js",
|
|
5
5
|
"typings": "dist/f0.d.ts",
|
|
6
6
|
"private": false,
|
|
@@ -220,7 +220,7 @@
|
|
|
220
220
|
"y-protocols": "^1.0.6",
|
|
221
221
|
"yjs": "^13.6.27",
|
|
222
222
|
"zen-observable-ts": "^1.1.0",
|
|
223
|
-
"@factorialco/f0-core": "1.
|
|
223
|
+
"@factorialco/f0-core": "1.41.0"
|
|
224
224
|
},
|
|
225
225
|
"scripts": {
|
|
226
226
|
"dev": "storybook dev -p 6006",
|
|
@@ -236,10 +236,11 @@
|
|
|
236
236
|
"lint": "eslint -c eslint.config.mjs src/**/*.{ts,tsx} --report-unused-disable-directives --max-warnings 0",
|
|
237
237
|
"lint-fix": "eslint -c eslint.config.mjs src/**/*.{ts,tsx} --fix --report-unused-disable-directives --max-warnings 0",
|
|
238
238
|
"preview": "vite preview",
|
|
239
|
-
"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",
|
|
239
|
+
"generate-icons": "rm -fR src/icons/app/* src/icons/modules/* src/flags/* src/icons/ai/* && run-p generate-app-icons generate-module-icons generate-flag-icons generate-ai-icons && pnpm run prettier:format",
|
|
240
240
|
"generate-app-icons": "npx @svgr/cli --out-dir src/icons/app node_modules/@factorialco/f0-core/assets/icons/app",
|
|
241
241
|
"generate-flag-icons": "npx @svgr/cli --out-dir src/flags node_modules/@factorialco/f0-core/assets/flags",
|
|
242
242
|
"generate-module-icons": "npx @svgr/cli --out-dir src/icons/modules node_modules/@factorialco/f0-core/assets/icons/modules",
|
|
243
|
+
"generate-ai-icons": "npx @svgr/cli --out-dir src/icons/ai node_modules/@factorialco/f0-core/assets/icons/ai",
|
|
243
244
|
"build-storybook": "storybook build",
|
|
244
245
|
"serve-storybook": "http-server storybook-static",
|
|
245
246
|
"test-storybook": "test-storybook --testTimeout=60000",
|
package/tailwind.config.ts
CHANGED
|
@@ -11,4 +11,21 @@ export default {
|
|
|
11
11
|
"./docs/**/*.{mdx,ts,tsx}",
|
|
12
12
|
"./storybook/**/*.{mdx,ts,tsx}",
|
|
13
13
|
],
|
|
14
|
+
theme: {
|
|
15
|
+
...baseConfig.theme,
|
|
16
|
+
extend: {
|
|
17
|
+
...baseConfig.theme?.extend,
|
|
18
|
+
keyframes: {
|
|
19
|
+
...baseConfig.theme?.extend?.keyframes,
|
|
20
|
+
"rotate-gradient": {
|
|
21
|
+
from: { "--gradient-angle": "0deg" },
|
|
22
|
+
to: { "--gradient-angle": "360deg" },
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
animation: {
|
|
26
|
+
...baseConfig.theme?.extend?.animation,
|
|
27
|
+
"rotate-gradient": "rotate-gradient 2s linear infinite",
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
},
|
|
14
31
|
} satisfies Config
|