@central-icons-react/all 1.1.322 → 1.1.323

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.
@@ -4,20 +4,24 @@ const ModernCentralIconBase = (props) => {
4
4
  return React.createElement(CentralIconSvg, { ...props, instanceId: instanceId });
5
5
  };
6
6
  let nextLegacyId = 0;
7
- class LegacyCentralIconBase extends React.Component {
8
- constructor() {
9
- super(...arguments);
10
- this.state = {};
11
- }
12
- componentDidMount() {
13
- // Defer legacy IDs until mount so server and initial client markup agree.
14
- this.setState({ instanceId: `legacy-${++nextLegacyId}` });
15
- }
16
- render() {
17
- return (React.createElement(CentralIconSvg, { ...this.props.iconProps, instanceId: this.state.instanceId }));
18
- }
19
- }
20
- export const CentralIconBase = (props) => typeof React.useId === "function" ? (React.createElement(ModernCentralIconBase, { ...props })) : (React.createElement(LegacyCentralIconBase, { iconProps: props }));
7
+ // React's Server Components runtime exposes useId but not Component. Only
8
+ // define the legacy class when it is needed, so modern imports stay RSC-safe.
9
+ const LegacyCentralIconBase = typeof React.useId === "function"
10
+ ? undefined
11
+ : class extends React.Component {
12
+ constructor() {
13
+ super(...arguments);
14
+ this.state = {};
15
+ }
16
+ componentDidMount() {
17
+ // Defer legacy IDs until mount so server and initial client markup agree.
18
+ this.setState({ instanceId: `legacy-${++nextLegacyId}` });
19
+ }
20
+ render() {
21
+ return (React.createElement(CentralIconSvg, { ...this.props.iconProps, instanceId: this.state.instanceId }));
22
+ }
23
+ };
24
+ export const CentralIconBase = (props) => LegacyCentralIconBase ? (React.createElement(LegacyCentralIconBase, { iconProps: props })) : (React.createElement(ModernCentralIconBase, { ...props }));
21
25
  const CentralIconSvg = ({ children, size = 24, ariaLabel, color, ariaHidden = true, style, mode = "masked", maskId, instanceId, ...props }) => {
22
26
  const uniqueMaskId = instanceId ? `${maskId}-${instanceId}` : maskId;
23
27
  const masked = mode !== "raw" && !!maskId;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","s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,CACT,CACG,CACP,CAAC;AACJ,CAAC,CAAC"}
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  [diffend] Oversized file quarantined before diffing.
2
2
  name: package/index.js
3
- size: 55725527 bytes
4
- sha256: da8904fa2ec822428e1564b0256343357929a8ae998db5784be8624bdecddb5f
3
+ size: 55725536 bytes
4
+ sha256: 321fc83fdb90040ce5ce20bd4b14d63874dec2cf6dae59558110f80fe1985b60
package/index.js.map CHANGED
@@ -1,4 +1,4 @@
1
1
  [diffend] Oversized file quarantined before diffing.
2
2
  name: package/index.js.map
3
- size: 60560221 bytes
4
- sha256: 21c5453a7d8ae87d0d835466ad584111e2ac384b73b82c95dd637e2462a3256c
3
+ size: 60560547 bytes
4
+ sha256: 7a0f05ecd050588154a9204c73239553b27b3a460826442e4d7fa42433cb53a0
package/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
1
  [diffend] Oversized file quarantined before diffing.
2
2
  name: package/index.mjs
3
- size: 55724754 bytes
4
- sha256: 84e2251b5c70d0b171e80f2eadde8e564fdea952bd04dffdf2f3273568a2a2d1
3
+ size: 55724763 bytes
4
+ sha256: 786487ae3f2e13aa0ea9198de269865296244f428d4698872ff3d3a16d4af8a1
package/index.mjs.map CHANGED
@@ -1,4 +1,4 @@
1
1
  [diffend] Oversized file quarantined before diffing.
2
2
  name: package/index.mjs.map
3
- size: 60560009 bytes
4
- sha256: 546b08d67522478bfd946a02c4b343591c2067a4cb0579f7a0357da4f5330c9e
3
+ size: 60560335 bytes
4
+ sha256: 1aeafcf3df7c4c68927ac23fe153e1207dad8e999de810de9ee0bfdadab487e1
package/license-check.js CHANGED
@@ -18,7 +18,7 @@ const licenseCheck = async () => {
18
18
  },
19
19
  body: JSON.stringify({
20
20
  package: "central-icons-react/all",
21
- version: "1.1.322",
21
+ version: "1.1.323",
22
22
  }),
23
23
  signal: controller.signal,
24
24
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@central-icons-react/all",
3
- "version": "1.1.322",
3
+ "version": "1.1.323",
4
4
  "license": "SEE LICENSE IN LICENSE.md",
5
5
  "homepage": "https://iconists.co/central",
6
6
  "bugs": {
@@ -5,7 +5,7 @@ description: Use when inserting icons in React code that imports from @central-i
5
5
 
6
6
  # Central Icons — React (all)
7
7
 
8
- This skill helps you find and insert icons from the `@central-icons-react/all` package (version 1.1.322). The package exposes 2098 icons across 30 variants (round/square × filled/outlined × multiple corner radii and stroke widths) through a single dynamic `CentralIcon` component.
8
+ This skill helps you find and insert icons from the `@central-icons-react/all` package (version 1.1.323). The package exposes 2098 icons across 30 variants (round/square × filled/outlined × multiple corner radii and stroke widths) through a single dynamic `CentralIcon` component.
9
9
 
10
10
  ## Prefer a variant package when possible
11
11