diff --git a/package-lock.json b/package-lock.json index a012810ff4..f7675b5d15 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7476,16 +7476,16 @@ } }, "node_modules/@fortawesome/react-fontawesome": { - "version": "0.2.6", - "resolved": "https://registry.npmjs.org/@fortawesome/react-fontawesome/-/react-fontawesome-0.2.6.tgz", - "integrity": "sha512-mtBFIi1UsYQo7rYonYFkjgYKGoL8T+fEH6NGUpvuqtY3ytMsAoDaPo5rk25KuMtKDipY4bGYM/CkmCHA1N3FUg==", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@fortawesome/react-fontawesome/-/react-fontawesome-3.0.2.tgz", + "integrity": "sha512-cmp/nT0pPC7HUALF8uc3+D5ECwEBWxYQbOIHwtGUWEu72sWtZc26k5onr920HWOViF0nYaC+Qzz6Ln56SQcaVg==", "license": "MIT", - "dependencies": { - "prop-types": "^15.8.1" + "engines": { + "node": ">=20" }, "peerDependencies": { - "@fortawesome/fontawesome-svg-core": "~1 || ~6 || ~7", - "react": "^16.3 || ^17.0.0 || ^18.0.0 || ^19.0.0" + "@fortawesome/fontawesome-svg-core": "~6 || ~7", + "react": "^18.0.0 || ^19.0.0" } }, "node_modules/@griffel/core": { @@ -38906,7 +38906,7 @@ "dependencies": { "@fortawesome/fontawesome-svg-core": "^7.0.1", "@fortawesome/free-solid-svg-icons": "^7.0.1", - "@fortawesome/react-fontawesome": "^0.2.6", + "@fortawesome/react-fontawesome": "^3.0.2", "date-fns": "^4.1.0", "react-day-picker": "^9.9.0", "tailwindcss": "^4.1.12" diff --git a/packages/daisyui/package.json b/packages/daisyui/package.json index fd22f6d685..b15340d97f 100644 --- a/packages/daisyui/package.json +++ b/packages/daisyui/package.json @@ -65,7 +65,7 @@ "dependencies": { "@fortawesome/fontawesome-svg-core": "^7.0.1", "@fortawesome/free-solid-svg-icons": "^7.0.1", - "@fortawesome/react-fontawesome": "^0.2.6", + "@fortawesome/react-fontawesome": "^3.0.2", "date-fns": "^4.1.0", "react-day-picker": "^9.9.0", "tailwindcss": "^4.1.12" diff --git a/packages/daisyui/test/__snapshots__/Array.test.tsx.snap b/packages/daisyui/test/__snapshots__/Array.test.tsx.snap index a01a3f47b2..f5e33fc7e7 100644 --- a/packages/daisyui/test/__snapshots__/Array.test.tsx.snap +++ b/packages/daisyui/test/__snapshots__/Array.test.tsx.snap @@ -52,13 +52,11 @@ exports[`array fields array 1`] = ` data-icon="plus" data-prefix="fas" role="img" - style={{}} viewBox="0 0 448 512" > @@ -206,13 +204,11 @@ exports[`array fields array icons 1`] = ` data-icon="arrow-up" data-prefix="fas" role="img" - style={{}} viewBox="0 0 384 512" > @@ -231,13 +227,11 @@ exports[`array fields array icons 1`] = ` data-icon="arrow-down" data-prefix="fas" role="img" - style={{}} viewBox="0 0 384 512" > @@ -256,13 +250,11 @@ exports[`array fields array icons 1`] = ` data-icon="copy" data-prefix="fas" role="img" - style={{}} viewBox="0 0 448 512" > @@ -281,13 +273,11 @@ exports[`array fields array icons 1`] = ` data-icon="trash" data-prefix="fas" role="img" - style={{}} viewBox="0 0 448 512" > @@ -385,13 +375,11 @@ exports[`array fields array icons 1`] = ` data-icon="arrow-up" data-prefix="fas" role="img" - style={{}} viewBox="0 0 384 512" > @@ -410,13 +398,11 @@ exports[`array fields array icons 1`] = ` data-icon="arrow-down" data-prefix="fas" role="img" - style={{}} viewBox="0 0 384 512" > @@ -435,13 +421,11 @@ exports[`array fields array icons 1`] = ` data-icon="copy" data-prefix="fas" role="img" - style={{}} viewBox="0 0 448 512" > @@ -460,13 +444,11 @@ exports[`array fields array icons 1`] = ` data-icon="trash" data-prefix="fas" role="img" - style={{}} viewBox="0 0 448 512" > @@ -498,13 +480,11 @@ exports[`array fields array icons 1`] = ` data-icon="plus" data-prefix="fas" role="img" - style={{}} viewBox="0 0 448 512" > @@ -1311,13 +1291,11 @@ exports[`with title and description array 1`] = ` data-icon="plus" data-prefix="fas" role="img" - style={{}} viewBox="0 0 448 512" > @@ -1491,13 +1469,11 @@ exports[`with title and description array icons 1`] = ` data-icon="arrow-up" data-prefix="fas" role="img" - style={{}} viewBox="0 0 384 512" > @@ -1516,13 +1492,11 @@ exports[`with title and description array icons 1`] = ` data-icon="arrow-down" data-prefix="fas" role="img" - style={{}} viewBox="0 0 384 512" > @@ -1541,13 +1515,11 @@ exports[`with title and description array icons 1`] = ` data-icon="copy" data-prefix="fas" role="img" - style={{}} viewBox="0 0 448 512" > @@ -1566,13 +1538,11 @@ exports[`with title and description array icons 1`] = ` data-icon="trash" data-prefix="fas" role="img" - style={{}} viewBox="0 0 448 512" > @@ -1673,13 +1643,11 @@ exports[`with title and description array icons 1`] = ` data-icon="arrow-up" data-prefix="fas" role="img" - style={{}} viewBox="0 0 384 512" > @@ -1698,13 +1666,11 @@ exports[`with title and description array icons 1`] = ` data-icon="arrow-down" data-prefix="fas" role="img" - style={{}} viewBox="0 0 384 512" > @@ -1723,13 +1689,11 @@ exports[`with title and description array icons 1`] = ` data-icon="copy" data-prefix="fas" role="img" - style={{}} viewBox="0 0 448 512" > @@ -1748,13 +1712,11 @@ exports[`with title and description array icons 1`] = ` data-icon="trash" data-prefix="fas" role="img" - style={{}} viewBox="0 0 448 512" > @@ -1786,13 +1748,11 @@ exports[`with title and description array icons 1`] = ` data-icon="plus" data-prefix="fas" role="img" - style={{}} viewBox="0 0 448 512" > @@ -2267,13 +2227,11 @@ exports[`with title and description from both array 1`] = ` data-icon="plus" data-prefix="fas" role="img" - style={{}} viewBox="0 0 448 512" > @@ -2447,13 +2405,11 @@ exports[`with title and description from both array icons 1`] = ` data-icon="arrow-up" data-prefix="fas" role="img" - style={{}} viewBox="0 0 384 512" > @@ -2472,13 +2428,11 @@ exports[`with title and description from both array icons 1`] = ` data-icon="arrow-down" data-prefix="fas" role="img" - style={{}} viewBox="0 0 384 512" > @@ -2497,13 +2451,11 @@ exports[`with title and description from both array icons 1`] = ` data-icon="copy" data-prefix="fas" role="img" - style={{}} viewBox="0 0 448 512" > @@ -2522,13 +2474,11 @@ exports[`with title and description from both array icons 1`] = ` data-icon="trash" data-prefix="fas" role="img" - style={{}} viewBox="0 0 448 512" > @@ -2629,13 +2579,11 @@ exports[`with title and description from both array icons 1`] = ` data-icon="arrow-up" data-prefix="fas" role="img" - style={{}} viewBox="0 0 384 512" > @@ -2654,13 +2602,11 @@ exports[`with title and description from both array icons 1`] = ` data-icon="arrow-down" data-prefix="fas" role="img" - style={{}} viewBox="0 0 384 512" > @@ -2679,13 +2625,11 @@ exports[`with title and description from both array icons 1`] = ` data-icon="copy" data-prefix="fas" role="img" - style={{}} viewBox="0 0 448 512" > @@ -2704,13 +2648,11 @@ exports[`with title and description from both array icons 1`] = ` data-icon="trash" data-prefix="fas" role="img" - style={{}} viewBox="0 0 448 512" > @@ -2742,13 +2684,11 @@ exports[`with title and description from both array icons 1`] = ` data-icon="plus" data-prefix="fas" role="img" - style={{}} viewBox="0 0 448 512" > @@ -3223,13 +3163,11 @@ exports[`with title and description from uiSchema array 1`] = ` data-icon="plus" data-prefix="fas" role="img" - style={{}} viewBox="0 0 448 512" > @@ -3403,13 +3341,11 @@ exports[`with title and description from uiSchema array icons 1`] = ` data-icon="arrow-up" data-prefix="fas" role="img" - style={{}} viewBox="0 0 384 512" > @@ -3428,13 +3364,11 @@ exports[`with title and description from uiSchema array icons 1`] = ` data-icon="arrow-down" data-prefix="fas" role="img" - style={{}} viewBox="0 0 384 512" > @@ -3453,13 +3387,11 @@ exports[`with title and description from uiSchema array icons 1`] = ` data-icon="copy" data-prefix="fas" role="img" - style={{}} viewBox="0 0 448 512" > @@ -3478,13 +3410,11 @@ exports[`with title and description from uiSchema array icons 1`] = ` data-icon="trash" data-prefix="fas" role="img" - style={{}} viewBox="0 0 448 512" > @@ -3585,13 +3515,11 @@ exports[`with title and description from uiSchema array icons 1`] = ` data-icon="arrow-up" data-prefix="fas" role="img" - style={{}} viewBox="0 0 384 512" > @@ -3610,13 +3538,11 @@ exports[`with title and description from uiSchema array icons 1`] = ` data-icon="arrow-down" data-prefix="fas" role="img" - style={{}} viewBox="0 0 384 512" > @@ -3635,13 +3561,11 @@ exports[`with title and description from uiSchema array icons 1`] = ` data-icon="copy" data-prefix="fas" role="img" - style={{}} viewBox="0 0 448 512" > @@ -3660,13 +3584,11 @@ exports[`with title and description from uiSchema array icons 1`] = ` data-icon="trash" data-prefix="fas" role="img" - style={{}} viewBox="0 0 448 512" > @@ -3698,13 +3620,11 @@ exports[`with title and description from uiSchema array icons 1`] = ` data-icon="plus" data-prefix="fas" role="img" - style={{}} viewBox="0 0 448 512" > @@ -4156,13 +4076,11 @@ exports[`with title and description with global label off array 1`] = ` data-icon="plus" data-prefix="fas" role="img" - style={{}} viewBox="0 0 448 512" > @@ -4298,13 +4216,11 @@ exports[`with title and description with global label off array icons 1`] = ` data-icon="arrow-up" data-prefix="fas" role="img" - style={{}} viewBox="0 0 384 512" > @@ -4323,13 +4239,11 @@ exports[`with title and description with global label off array icons 1`] = ` data-icon="arrow-down" data-prefix="fas" role="img" - style={{}} viewBox="0 0 384 512" > @@ -4348,13 +4262,11 @@ exports[`with title and description with global label off array icons 1`] = ` data-icon="copy" data-prefix="fas" role="img" - style={{}} viewBox="0 0 448 512" > @@ -4373,13 +4285,11 @@ exports[`with title and description with global label off array icons 1`] = ` data-icon="trash" data-prefix="fas" role="img" - style={{}} viewBox="0 0 448 512" > @@ -4465,13 +4375,11 @@ exports[`with title and description with global label off array icons 1`] = ` data-icon="arrow-up" data-prefix="fas" role="img" - style={{}} viewBox="0 0 384 512" > @@ -4490,13 +4398,11 @@ exports[`with title and description with global label off array icons 1`] = ` data-icon="arrow-down" data-prefix="fas" role="img" - style={{}} viewBox="0 0 384 512" > @@ -4515,13 +4421,11 @@ exports[`with title and description with global label off array icons 1`] = ` data-icon="copy" data-prefix="fas" role="img" - style={{}} viewBox="0 0 448 512" > @@ -4540,13 +4444,11 @@ exports[`with title and description with global label off array icons 1`] = ` data-icon="trash" data-prefix="fas" role="img" - style={{}} viewBox="0 0 448 512" > @@ -4578,13 +4480,11 @@ exports[`with title and description with global label off array icons 1`] = ` data-icon="plus" data-prefix="fas" role="img" - style={{}} viewBox="0 0 448 512" > diff --git a/packages/daisyui/test/__snapshots__/Form.test.tsx.snap b/packages/daisyui/test/__snapshots__/Form.test.tsx.snap index 12b2dbc490..154274a0f9 100644 --- a/packages/daisyui/test/__snapshots__/Form.test.tsx.snap +++ b/packages/daisyui/test/__snapshots__/Form.test.tsx.snap @@ -1011,13 +1011,11 @@ exports[`single fields format date 1`] = ` data-icon="calendar" data-prefix="fas" role="img" - style={{}} viewBox="0 0 448 512" > @@ -1098,13 +1096,11 @@ exports[`single fields format datetime 1`] = ` data-icon="calendar" data-prefix="fas" role="img" - style={{}} viewBox="0 0 448 512" > diff --git a/packages/daisyui/test/__snapshots__/Object.test.tsx.snap b/packages/daisyui/test/__snapshots__/Object.test.tsx.snap index 18cbabcb9a..84d23de528 100644 --- a/packages/daisyui/test/__snapshots__/Object.test.tsx.snap +++ b/packages/daisyui/test/__snapshots__/Object.test.tsx.snap @@ -132,13 +132,11 @@ exports[`object fields additionalProperties 1`] = ` data-icon="trash" data-prefix="fas" role="img" - style={{}} viewBox="0 0 448 512" > @@ -170,13 +168,11 @@ exports[`object fields additionalProperties 1`] = ` data-icon="plus" data-prefix="fas" role="img" - style={{}} viewBox="0 0 448 512" > @@ -529,13 +525,11 @@ exports[`object fields show add button and fields if additionalProperties is tru data-icon="trash" data-prefix="fas" role="img" - style={{}} viewBox="0 0 448 512" > @@ -567,13 +561,11 @@ exports[`object fields show add button and fields if additionalProperties is tru data-icon="plus" data-prefix="fas" role="img" - style={{}} viewBox="0 0 448 512" > @@ -763,13 +755,11 @@ exports[`object fields with title and description additionalProperties 1`] = ` data-icon="trash" data-prefix="fas" role="img" - style={{}} viewBox="0 0 448 512" > @@ -801,13 +791,11 @@ exports[`object fields with title and description additionalProperties 1`] = ` data-icon="plus" data-prefix="fas" role="img" - style={{}} viewBox="0 0 448 512" > @@ -997,13 +985,11 @@ exports[`object fields with title and description from both additionalProperties data-icon="trash" data-prefix="fas" role="img" - style={{}} viewBox="0 0 448 512" > @@ -1035,13 +1021,11 @@ exports[`object fields with title and description from both additionalProperties data-icon="plus" data-prefix="fas" role="img" - style={{}} viewBox="0 0 448 512" > @@ -1440,13 +1424,11 @@ exports[`object fields with title and description from uiSchema additionalProper data-icon="trash" data-prefix="fas" role="img" - style={{}} viewBox="0 0 448 512" > @@ -1478,13 +1460,11 @@ exports[`object fields with title and description from uiSchema additionalProper data-icon="plus" data-prefix="fas" role="img" - style={{}} viewBox="0 0 448 512" > @@ -1883,13 +1863,11 @@ exports[`object fields with title and description from uiSchema show add button data-icon="trash" data-prefix="fas" role="img" - style={{}} viewBox="0 0 448 512" > @@ -1921,13 +1899,11 @@ exports[`object fields with title and description from uiSchema show add button data-icon="plus" data-prefix="fas" role="img" - style={{}} viewBox="0 0 448 512" > @@ -2326,13 +2302,11 @@ exports[`object fields with title and description show add button and fields if data-icon="trash" data-prefix="fas" role="img" - style={{}} viewBox="0 0 448 512" > @@ -2364,13 +2338,11 @@ exports[`object fields with title and description show add button and fields if data-icon="plus" data-prefix="fas" role="img" - style={{}} viewBox="0 0 448 512" > @@ -2527,13 +2499,11 @@ exports[`object fields with title and description with global label off addition data-icon="trash" data-prefix="fas" role="img" - style={{}} viewBox="0 0 448 512" > @@ -2565,13 +2535,11 @@ exports[`object fields with title and description with global label off addition data-icon="plus" data-prefix="fas" role="img" - style={{}} viewBox="0 0 448 512" > @@ -2894,13 +2862,11 @@ exports[`object fields with title and description with global label off show add data-icon="trash" data-prefix="fas" role="img" - style={{}} viewBox="0 0 448 512" > @@ -2932,13 +2898,11 @@ exports[`object fields with title and description with global label off show add data-icon="plus" data-prefix="fas" role="img" - style={{}} viewBox="0 0 448 512" >