@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.
- package/CentralIconBase/index.js +18 -14
- package/CentralIconBase/index.js.map +1 -1
- package/index.js +2 -2
- package/index.js.map +2 -2
- package/index.mjs +2 -2
- package/index.mjs.map +2 -2
- package/license-check.js +1 -1
- package/package.json +1 -1
- package/skills/central-icons-react-all/SKILL.md +1 -1
package/CentralIconBase/index.js
CHANGED
|
@@ -4,20 +4,24 @@ const ModernCentralIconBase = (props) => {
|
|
|
4
4
|
return React.createElement(CentralIconSvg, { ...props, instanceId: instanceId });
|
|
5
5
|
};
|
|
6
6
|
let nextLegacyId = 0;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
|
|
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","sourceRoot":"","sources":["../src/CentralIconBase/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,MAAM,qBAAqB,GAAoB,CAAC,KAAK,EAAE,EAAE;IACvD,MAAM,UAAU,GAAG,KAAK,CAAC,KAAK,EAAE,CAAC;IACjC,OAAO,oBAAC,cAAc,OAAK,KAAK,EAAE,UAAU,EAAE,UAAU,GAAI,CAAC;AAC/D,CAAC,CAAC;AAEF,IAAI,YAAY,GAAG,CAAC,CAAC;AAErB,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/CentralIconBase/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,MAAM,qBAAqB,GAAoB,CAAC,KAAK,EAAE,EAAE;IACvD,MAAM,UAAU,GAAG,KAAK,CAAC,KAAK,EAAE,CAAC;IACjC,OAAO,oBAAC,cAAc,OAAK,KAAK,EAAE,UAAU,EAAE,UAAU,GAAI,CAAC;AAC/D,CAAC,CAAC;AAEF,IAAI,YAAY,GAAG,CAAC,CAAC;AAErB,0EAA0E;AAC1E,8EAA8E;AAC9E,MAAM,qBAAqB,GACzB,OAAO,KAAK,CAAC,KAAK,KAAK,UAAU;IAC/B,CAAC,CAAC,SAAS;IACX,CAAC,CAAC,KAAM,SAAQ,KAAK,CAAC,SAGnB;QAHD;;YAIE,UAAK,GAA4B,EAAE,CAAC;QAetC,CAAC;QAbC,iBAAiB;YACf,0EAA0E;YAC1E,IAAI,CAAC,QAAQ,CAAC,EAAE,UAAU,EAAE,UAAU,EAAE,YAAY,EAAE,EAAE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AAK,EAAE;QAEzB,SAAS,IAAI,CAAC,UAAU,IAAI,mCAAQ,SAAS,CAAS;QACtD,MAAM,CAAC,CAAC,CAAC,CACR;YACE,8BACE,EAAE,EAAE,YAAY,EAChB,SAAS,EAAC,gBAAgB,EAC1B,CAAC,EAAC,GAAG,EACL,CAAC,EAAC,GAAG,EACL,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI;gBAEX,8BAAM,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,IAAI,EAAC,MAAM,GAAG;gBAC3C,2BAAG,IAAI,EAAC,MAAM,EAAC,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,IACpC,QAAQ,CACP,CACC;YACP,8BACE,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,IAAI,EAAC,cAAc,EACnB,IAAI,EAAE,QAAQ,YAAY,GAAG,GAC7B,CACD,CACJ,CAAC,CAAC,CAAC,CACF,QAAQ,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:
|
|
4
|
-
sha256:
|
|
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:
|
|
4
|
-
sha256:
|
|
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:
|
|
4
|
-
sha256:
|
|
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:
|
|
4
|
-
sha256:
|
|
3
|
+
size: 60560335 bytes
|
|
4
|
+
sha256: 1aeafcf3df7c4c68927ac23fe153e1207dad8e999de810de9ee0bfdadab487e1
|
package/license-check.js
CHANGED
package/package.json
CHANGED
|
@@ -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.
|
|
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
|
|