@solar-icons/react 2.0.0-beta.2 → 2.0.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/README.md CHANGED
@@ -51,7 +51,7 @@ function App() {
51
51
 
52
52
  ## Documentation
53
53
 
54
- For installation guides, API reference, and a searchable icon catalog, visit the [React Documentation](https://solar-icons.vercel.app/docs/v2/frameworks/react).
54
+ For installation guides, API reference, and a searchable icon catalog, visit the [React Documentation](https://solar-icons.vercel.app/docs/v2/packages/react).
55
55
 
56
56
  ## License
57
57
 
@@ -1 +1 @@
1
- import{forwardRef as e}from"react";import{jsx as t,jsxs as n}from"react/jsx-runtime";const r=`solar`;function i(e){return e[`aria-label`]!==void 0||e.title!==void 0}const a=e(({alt:e,color:a,size:o,strokeWidth:s,secondaryColor:c,secondaryOpacity:l,iconName:u,isolated:d,children:f,...p},m)=>{let h=u?`${r} solar-${u}`:r,g=p.className,_=g?`${h} ${g}`:h,v=!!e||i(p),y={...p.style??{}};if(d&&(y[`--solar-secondary-color`]=`initial`,y[`--solar-secondary-opacity`]=`initial`),a!==void 0&&(y.color=a),o!==void 0){let e=typeof o==`number`?`${o}px`:o;y.width=e,y.height=e}s!==void 0&&(y.strokeWidth=String(s)),c&&(y[`--solar-secondary-color`]=c),l!=null&&(y[`--solar-secondary-opacity`]=String(l));let b=o===void 0&&d?`24px`:void 0,x=o===void 0&&d?`24px`:void 0;o===void 0&&!d&&(y.width??(y.width=`var(--solar-size, 24px)`),y.height??(y.height=`var(--solar-size, 24px)`));let S=a===void 0?d?`currentColor`:`var(--solar-color, currentColor)`:void 0,C=s===void 0?d?`1.5`:`var(--solar-stroke-width, 1.5)`:void 0;return n(`svg`,{ref:m,xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,...p,className:_,style:Object.keys(y).length>0?y:void 0,width:b,height:x,color:S,strokeWidth:C,...!v&&{"aria-hidden":`true`},children:[!!e&&t(`title`,{children:e}),f]})});export{a as default};
1
+ import{forwardRef as e}from"react";import{jsx as t,jsxs as n}from"react/jsx-runtime";const r=`solar`;function i(e){return e[`aria-label`]!==void 0||e.title!==void 0}const a=e(({alt:e,color:a,size:o,strokeWidth:s,secondaryColor:c,secondaryOpacity:l,iconName:u,isolated:d,children:f,...p},m)=>{let h=u?`${r} solar-${u}`:r,g=p.className,_=g?`${h} ${g}`:h,v=!!e||i(p),y={...p.style??{}};if(d&&(y[`--solar-secondary-color`]=`initial`,y[`--solar-secondary-opacity`]=`initial`),a!==void 0&&(y.color=a),o!==void 0){let e=typeof o==`number`?`${o}px`:o;y.width=e,y.height=e}s!==void 0&&(y.strokeWidth=String(s)),c&&(y[`--solar-secondary-color`]=c),l!=null&&(y[`--solar-secondary-opacity`]=String(l));let b=o===void 0?d?`24px`:`1em`:void 0,x=o===void 0?d?`24px`:`1em`:void 0;o===void 0&&!d&&(`fontSize`in y||(y.fontSize=`var(--solar-size, 24px)`));let S=a===void 0?d?`currentColor`:`var(--solar-color, currentColor)`:void 0,C=s===void 0?d?`1.5`:`var(--solar-stroke-width, 1.5)`:void 0;return n(`svg`,{ref:m,xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,...p,className:_,style:Object.keys(y).length>0?y:void 0,width:b,height:x,color:S,strokeWidth:C,...!v&&{"aria-hidden":`true`},children:[!!e&&t(`title`,{children:e}),f]})});export{a as default};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solar-icons/react",
3
- "version": "2.0.0-beta.2",
3
+ "version": "2.0.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -68,23 +68,23 @@
68
68
  }
69
69
  },
70
70
  "devDependencies": {
71
- "@tala-tools/eslint": "0.1.4",
71
+ "@tala-tools/eslint": "0.1.5",
72
72
  "@tala-tools/prettier": "0.0.3",
73
- "@tala-tools/tsconfig": "0.0.1",
74
- "@types/node": "^26.1.1",
75
- "@types/react": "^19.2.17",
76
- "@types/react-dom": "^19.2.3",
77
- "@vitejs/plugin-react": "^6.0.3",
73
+ "@tala-tools/tsconfig": "0.0.2",
74
+ "@types/node": "^26.1.2",
75
+ "@types/react": "^19.2.18",
76
+ "@types/react-dom": "^19.2.4",
77
+ "@vitejs/plugin-react": "^6.0.5",
78
78
  "dotenv": "^17.4.2",
79
79
  "picocolors": "^1.1.1",
80
- "prettier": "^3.9.4",
81
- "react": "^19.2.7",
82
- "react-dom": "^19.2.7",
80
+ "prettier": "^3.9.6",
81
+ "react": "^19.2.8",
82
+ "react-dom": "^19.2.8",
83
83
  "rimraf": "^6.1.3",
84
- "tsdown": "^0.22.4",
84
+ "tsdown": "^0.22.14",
85
85
  "typescript": "^6.0.3",
86
86
  "vitest": "^4.1.10",
87
- "@solar-icons/core": "2.0.0-beta.1"
87
+ "@solar-icons/core": "2.0.0"
88
88
  },
89
89
  "peerDependencies": {
90
90
  "react": ">= 16.8",