@thesvg/react 3.2.15 → 3.2.16
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/abn-amro.cjs +43 -0
- package/dist/abn-amro.d.ts +14 -0
- package/dist/abn-amro.js +42 -0
- package/dist/air-algerie.cjs +26 -0
- package/dist/air-algerie.d.ts +14 -0
- package/dist/air-algerie.js +25 -0
- package/dist/aizome.cjs +26 -0
- package/dist/aizome.d.ts +14 -0
- package/dist/aizome.js +25 -0
- package/dist/dai-ichi-life-holdings.cjs +43 -0
- package/dist/dai-ichi-life-holdings.d.ts +14 -0
- package/dist/dai-ichi-life-holdings.js +42 -0
- package/dist/fastwork.cjs +26 -0
- package/dist/fastwork.d.ts +14 -0
- package/dist/fastwork.js +25 -0
- package/dist/glaxnimate.cjs +43 -0
- package/dist/glaxnimate.d.ts +14 -0
- package/dist/glaxnimate.js +42 -0
- package/dist/global-power-synergy.cjs +43 -0
- package/dist/global-power-synergy.d.ts +14 -0
- package/dist/global-power-synergy.js +42 -0
- package/dist/index.cjs +20 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +10 -0
- package/dist/parseable.cjs +26 -0
- package/dist/parseable.d.ts +14 -0
- package/dist/parseable.js +25 -0
- package/dist/rcui.cjs +26 -0
- package/dist/rcui.d.ts +14 -0
- package/dist/rcui.js +25 -0
- package/dist/unicharm.cjs +43 -0
- package/dist/unicharm.d.ts +14 -0
- package/dist/unicharm.js +42 -0
- package/package.json +2 -2
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// @thesvg/react — Unicharm
|
|
3
|
+
// Auto-generated. Do not edit.
|
|
4
|
+
// Variants: default, mono, wordmark
|
|
5
|
+
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
|
|
8
|
+
const react_1 = require("react");
|
|
9
|
+
|
|
10
|
+
const _variants = {"default":{"viewBox":"0 0 1595 1596","fill":"currentColor","childNodes":[{"type":"title","props":{},"children":["Unicharm"]},{"type":"g","props":{"id":"Layer"},"children":[{"type":"path","props":{"id":"Layer","fillRule":"evenodd","fill":"#3c459a","d":"m797.5 1595.5c-440.8 0-797.2-356.5-797.2-797.6 0-441.1 356.4-797.6 797.2-797.6 440.8 0 797.1 356.5 797.1 797.6 0 441.1-356.3 797.6-797.1 797.6zm697.1-798.2c0-385.7-311.6-697.4-697.1-697.4-385.4 0-697 311.7-697 697.4 0 385.7 311.6 697.4 697 697.4 385.5 0 697.1-311.7 697.1-697.4z"},"children":[]},{"type":"path","props":{"id":"Layer","fill":"#f9b900","d":"m799.2 879.2c-138.4-45.7-240.1-116.9-240.1-262.2 0-63.5 40.4-142.8 40.4-228.9 0-120.7-157-148.1-287.6-1.8-63.7 71-150.7 220.5-150.7 411.3 0 283.9 184.2 488.9 348.1 568.2 439.6 210.3 726.1-347.5 289.9-486.6z"},"children":[]},{"type":"path","props":{"id":"Layer","fill":"#f18b00","d":"m1181.2 634.8c54.8 12.4 97.1 50.5 135.3 110.3 75.9 118 93.7 309.3-40.5 470.4-48.9 58.2-152.2 129.2-272.1 136.1-92.4 6.3-182.1-36.9-227.5-82.3-72.4-72.6-69.3-232.5 91.2-244.1 94.4-6.6 163.1-69.5 188.9-113.5 25.2-43.2 46.6-132.4 42.7-203-2.8-53.7 25.6-89.1 82-73.9z"},"children":[]}]}]},"mono":{"viewBox":"0 0 1595 1596","fill":"currentColor","childNodes":[{"type":"title","props":{},"children":["Unicharm"]},{"type":"g","props":{"id":"Layer"},"children":[{"type":"path","props":{"id":"Layer","fillRule":"evenodd","fill":"currentColor","d":"m797.5 1595.5c-440.8 0-797.2-356.5-797.2-797.6 0-441.1 356.4-797.6 797.2-797.6 440.8 0 797.1 356.5 797.1 797.6 0 441.1-356.3 797.6-797.1 797.6zm697.1-798.2c0-385.7-311.6-697.4-697.1-697.4-385.4 0-697 311.7-697 697.4 0 385.7 311.6 697.4 697 697.4 385.5 0 697.1-311.7 697.1-697.4z"},"children":[]},{"type":"path","props":{"id":"Layer","fill":"currentColor","d":"m799.2 879.2c-138.4-45.7-240.1-116.9-240.1-262.2 0-63.5 40.4-142.8 40.4-228.9 0-120.7-157-148.1-287.6-1.8-63.7 71-150.7 220.5-150.7 411.3 0 283.9 184.2 488.9 348.1 568.2 439.6 210.3 726.1-347.5 289.9-486.6z"},"children":[]},{"type":"path","props":{"id":"Layer","fill":"currentColor","d":"m1181.2 634.8c54.8 12.4 97.1 50.5 135.3 110.3 75.9 118 93.7 309.3-40.5 470.4-48.9 58.2-152.2 129.2-272.1 136.1-92.4 6.3-182.1-36.9-227.5-82.3-72.4-72.6-69.3-232.5 91.2-244.1 94.4-6.6 163.1-69.5 188.9-113.5 25.2-43.2 46.6-132.4 42.7-203-2.8-53.7 25.6-89.1 82-73.9z"},"children":[]}]}]},"wordmark":{"viewBox":"0 0 1513 467","fill":"currentColor","childNodes":[{"type":"title","props":{},"children":["Unicharm"]},{"type":"path","props":{"id":"Layer","fillRule":"evenodd","fill":"#3c459a","d":"m1020.7 415.4h-41.3c-2.2 39.8-26.8 51.3-69.7 51.3v-22.6c21.5-2.6 35.2-4.5 37.9-28.7h-51.2v-25.1h51.7v-18.1h-42.1v-23.1h50.1c13.3 0 18.7-3.8 23.9-12.7h31.5c-2.8 19.9-10.9 30.3-31.9 34.1v19.8h41.1c0 0 0 25.1 0 25.1zm132.4-28.5h86.3v29.4h-86.3zm-475.6 47.5c0 0 31.9 0 31.9 0v27.1h-134.7v-27.1h70.3l9.1-61.6h-63.1v-27.1h78.3c12.2 0 19.6 11.5 17.9 22.3zm45.1 0h123.6v27.1h-123.6zm14.2-88.6h95.2v27.1h-95.2zm611.2 118.3h-82.2c-12.2 0-19.5-11.5-17.9-22.3l23-98.4h33l-22 94.7h51.5c-3.4-18.9-8.9-38.8-14.6-57.4h31c5.8 15.8 13.4 41 16.1 61.1 1.6 10.8-5.7 22.3-17.9 22.3zm-209-63.8l-13 40.3h-27.2l11.8-36.3h-28.5l4.8 62.5h-27.3l-4.8-62.5h-21.3v-21.7h19.6l-1.8-23.4h27.3l1.8 23.4h44.3c9.8 0 16.7 9.4 14.3 17.7zm-275.9 17.7c-10.1 0-18.3-8.7-18.3-19.5 0-10.8 8.2-19.5 18.3-19.5 10.2 0 18.4 8.7 18.4 19.5 0 10.8-8.2 19.5-18.4 19.5z"},"children":[]},{"type":"path","props":{"id":"Layer","fillRule":"evenodd","fill":"#3c459a","d":"m534 220.8c-36.4 0-57.4-15.9-57.4-56.9v-109.9h39.5v114.4c0 13.2 6.4 21.4 19.1 21.4 6.1 0 11.5-1.6 15.8-4v-131.8h39.7v153.9c-11.8 7.7-30.9 12.9-56.7 12.9zm154.9-3.2v-115.6c0-14.3-5.7-22.1-19.7-22.1-8.2 0-12.1 0.9-16.4 3v134.7h-39.1v-154.5c13.1-7.3 31.5-12.1 56.4-12.1 40.1 0 58.6 16.4 58.6 51v115.6zm83-175.1c-11.7 0-21.2-9.5-21.2-21.3 0-11.7 9.5-21.2 21.2-21.2 11.8 0 21.2 9.5 21.2 21.2 0 11.8-9.4 21.3-21.2 21.3zm92.7 178.3c-33.3 0-56.4-29.5-56.4-85.4 0-55.5 25.4-84.4 56.4-84.4 17.6 0 28 5.4 34 12.1l-7.9 24.6c-3-3-8.5-6.1-16.7-6.1-17.5 0-26 21-26 53.2 0 33 9.7 53.1 25.4 53.1 8.5 0 13.7-2.4 17.3-6l8.2 26.6c-6.1 6.8-15.8 12.3-34.3 12.3zm124.3-3.2v-115c0-14.6-7.4-22.7-19.2-22.7-6.3 0-11.5 1.1-16.9 4.2v133.5h-39.2v-217.6h39.2v58.9c8.1-4.9 17.9-7.6 28.7-7.6 30 0 47.1 19.4 47.1 51.3v115zm117.2 3.2c-39.1 0-58.9-18.8-58.9-51.4 0-41.9 30.9-54.9 74.7-60.7v-5.5c0-15.5-9.2-22.8-23.4-22.8-13.7 0-25.8 4-34.6 8.5l-8.2-25.8c9.4-5.1 25.8-12.1 50.4-12.1 30.6 0 53.7 15.2 53.7 60.1v97.4c-11.8 7.7-28.2 12.3-53.7 12.3zm15.8-88.4c-25.3 3.3-37.7 11.8-37.7 35.4 0 16.8 8.2 26.2 23.7 26.2 5.4 0 10.9-1.6 14-2.7zm132-48.9c-9.1-4.5-19.4-4.2-27-0.5v134.7h-39.2v-154.5c14.9-8.8 35.8-13.6 73.5-11.8zm172.2 134.1v-115.6c0-13.7-6.4-22.4-18.6-22.4-7.2 0-12.7 2.4-17.3 7.2v130.8h-39.7v-115.3c0-13.3-6.7-22.7-20-22.7-7.6 0-11.6 1.2-16.1 3v135h-39.1v-154.5c12.7-7.2 29-12.1 55.4-12.1 23.7 0 36.8 7 44.1 15.8 9.4-9.4 22.4-15.8 44-15.8 27.6 0 46.7 18.5 46.7 51v115.6zm-634.4-164.1v164.1h-39.3v-163.7z"},"children":[]},{"type":"g","props":{"id":"Layer"},"children":[{"type":"path","props":{"id":"Layer","fillRule":"evenodd","fill":"#3c459a","d":"m198.9 450.9c-109.8 0-198.6-88.8-198.6-198.7 0-109.8 88.8-198.6 198.6-198.6 109.8 0 198.5 88.8 198.5 198.6 0 109.9-88.7 198.7-198.5 198.7zm173.6-198.8c0-96.1-77.6-173.7-173.6-173.7-96 0-173.6 77.6-173.6 173.7 0 96 77.6 173.7 173.6 173.7 96 0 173.6-77.7 173.6-173.7z"},"children":[]},{"type":"path","props":{"id":"Layer","fill":"#f9b900","d":"m199.3 272.5c-34.5-11.4-59.8-29.1-59.8-65.3 0-15.9 10.1-35.6 10.1-57 0-30.1-39.1-36.9-71.7-0.5-15.8 17.7-37.5 54.9-37.5 102.5 0 70.7 45.9 121.7 86.7 141.5 109.5 52.4 180.9-86.6 72.2-121.2z"},"children":[]},{"type":"path","props":{"id":"Layer","fill":"#f18b00","d":"m294.4 211.6c13.7 3.1 24.2 12.6 33.7 27.5 19 29.4 23.4 77-10 117.1-12.2 14.5-38 32.2-67.8 33.9-23 1.6-45.4-9.2-56.7-20.5-18-18.1-17.2-57.9 22.7-60.8 23.5-1.6 40.7-17.3 47.1-28.2 6.3-10.8 11.6-33 10.6-50.6-0.7-13.4 6.4-22.2 20.4-18.4z"},"children":[]}]},{"type":"path","props":{"id":"Layer","fill":"#3c459a","d":"m1511.8 386.9q-0.5-0.4-1-0.7c-32.2-24.2-171.8-122.7-541.5-123.4h0.1c-372.6 0-513.1 99.1-545.4 123.3l-1 0.8q-0.1 0.2-0.3 0.4-0.1 0.2-0.2 0.4-0.1 0.3-0.1 0.5 0 0.2 0 0.5c0 1.5 1.1 2.7 2.6 2.7q0.1 0 0.2 0 0.1 0 0.3 0 0.1 0 0.2-0.1 0.1 0 0.2-0.1 0.4-0.2 0.9-0.6c15.7-10.7 169.6-109 540.4-109.1v0.1c371.1 0 525.1 98.3 540.8 109q0.5 0.4 0.8 0.6 0.2 0.1 0.3 0.1 0.1 0.1 0.2 0.1 0.1 0 0.3 0 0.1 0.1 0.2 0.1c1.5 0 2.6-1.3 2.6-2.8q0-0.2 0-0.5-0.1-0.2-0.1-0.5-0.1-0.2-0.2-0.4-0.2-0.2-0.3-0.4z"},"children":[]}]}};
|
|
11
|
+
|
|
12
|
+
function _ns(props, p) {
|
|
13
|
+
var out = {};
|
|
14
|
+
for (var k in props) {
|
|
15
|
+
var v = props[k];
|
|
16
|
+
if (k === 'id') out[k] = p + v;
|
|
17
|
+
else if (k === 'href' && typeof v === 'string' && v.charCodeAt(0) === 35) out[k] = '#' + p + v.slice(1);
|
|
18
|
+
else if (typeof v === 'string') out[k] = v.replace(/url\(#([^)]+)\)/g, function (_m, id) { return 'url(#' + p + id + ')'; });
|
|
19
|
+
else if (v && typeof v === 'object') {
|
|
20
|
+
var s = {};
|
|
21
|
+
for (var sk in v) { var sv = v[sk]; s[sk] = typeof sv === 'string' ? sv.replace(/url\(#([^)]+)\)/g, function (_m, id) { return 'url(#' + p + id + ')'; }) : sv; }
|
|
22
|
+
out[k] = s;
|
|
23
|
+
} else out[k] = v;
|
|
24
|
+
}
|
|
25
|
+
return out;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const Unicharm = react_1.forwardRef(function Unicharm({ variant = 'default', viewBox, ...props }, ref) {
|
|
29
|
+
const _p = 'tsvg' + react_1.useId().replace(/[^a-zA-Z0-9]/g, '') + '-';
|
|
30
|
+
const _v = _variants[variant] || _variants.default;
|
|
31
|
+
return react_1.createElement(
|
|
32
|
+
'svg',
|
|
33
|
+
Object.assign({ ref, viewBox: viewBox || _v.viewBox, fill: _v.fill, stroke: _v.stroke, xmlns: 'http://www.w3.org/2000/svg' }, props),
|
|
34
|
+
..._v.childNodes
|
|
35
|
+
.map(function _c(el) {
|
|
36
|
+
if (typeof el === 'string') return el;
|
|
37
|
+
return react_1.createElement(el.type, _ns(el.props, _p), ...(el.children || []).map(_c));
|
|
38
|
+
})
|
|
39
|
+
);
|
|
40
|
+
});
|
|
41
|
+
Unicharm.displayName = 'Unicharm';
|
|
42
|
+
|
|
43
|
+
exports.default = Unicharm;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// @thesvg/react — Unicharm
|
|
2
|
+
// Auto-generated. Do not edit.
|
|
3
|
+
|
|
4
|
+
import type { SVGProps, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
5
|
+
|
|
6
|
+
export type UnicharmVariant = 'default' | 'mono' | 'wordmark';
|
|
7
|
+
|
|
8
|
+
export interface UnicharmProps extends SVGProps<SVGSVGElement> {
|
|
9
|
+
/** Which icon variant to render. Defaults to "default". */
|
|
10
|
+
variant?: UnicharmVariant;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
declare const Unicharm: ForwardRefExoticComponent<UnicharmProps & RefAttributes<SVGSVGElement>>;
|
|
14
|
+
export default Unicharm;
|
package/dist/unicharm.js
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// @thesvg/react — Unicharm
|
|
2
|
+
// Auto-generated. Do not edit.
|
|
3
|
+
// Variants: default, mono, wordmark
|
|
4
|
+
|
|
5
|
+
import { forwardRef, createElement, useId } from 'react';
|
|
6
|
+
|
|
7
|
+
const _variants = {"default":{"viewBox":"0 0 1595 1596","fill":"currentColor","childNodes":[{"type":"title","props":{},"children":["Unicharm"]},{"type":"g","props":{"id":"Layer"},"children":[{"type":"path","props":{"id":"Layer","fillRule":"evenodd","fill":"#3c459a","d":"m797.5 1595.5c-440.8 0-797.2-356.5-797.2-797.6 0-441.1 356.4-797.6 797.2-797.6 440.8 0 797.1 356.5 797.1 797.6 0 441.1-356.3 797.6-797.1 797.6zm697.1-798.2c0-385.7-311.6-697.4-697.1-697.4-385.4 0-697 311.7-697 697.4 0 385.7 311.6 697.4 697 697.4 385.5 0 697.1-311.7 697.1-697.4z"},"children":[]},{"type":"path","props":{"id":"Layer","fill":"#f9b900","d":"m799.2 879.2c-138.4-45.7-240.1-116.9-240.1-262.2 0-63.5 40.4-142.8 40.4-228.9 0-120.7-157-148.1-287.6-1.8-63.7 71-150.7 220.5-150.7 411.3 0 283.9 184.2 488.9 348.1 568.2 439.6 210.3 726.1-347.5 289.9-486.6z"},"children":[]},{"type":"path","props":{"id":"Layer","fill":"#f18b00","d":"m1181.2 634.8c54.8 12.4 97.1 50.5 135.3 110.3 75.9 118 93.7 309.3-40.5 470.4-48.9 58.2-152.2 129.2-272.1 136.1-92.4 6.3-182.1-36.9-227.5-82.3-72.4-72.6-69.3-232.5 91.2-244.1 94.4-6.6 163.1-69.5 188.9-113.5 25.2-43.2 46.6-132.4 42.7-203-2.8-53.7 25.6-89.1 82-73.9z"},"children":[]}]}]},"mono":{"viewBox":"0 0 1595 1596","fill":"currentColor","childNodes":[{"type":"title","props":{},"children":["Unicharm"]},{"type":"g","props":{"id":"Layer"},"children":[{"type":"path","props":{"id":"Layer","fillRule":"evenodd","fill":"currentColor","d":"m797.5 1595.5c-440.8 0-797.2-356.5-797.2-797.6 0-441.1 356.4-797.6 797.2-797.6 440.8 0 797.1 356.5 797.1 797.6 0 441.1-356.3 797.6-797.1 797.6zm697.1-798.2c0-385.7-311.6-697.4-697.1-697.4-385.4 0-697 311.7-697 697.4 0 385.7 311.6 697.4 697 697.4 385.5 0 697.1-311.7 697.1-697.4z"},"children":[]},{"type":"path","props":{"id":"Layer","fill":"currentColor","d":"m799.2 879.2c-138.4-45.7-240.1-116.9-240.1-262.2 0-63.5 40.4-142.8 40.4-228.9 0-120.7-157-148.1-287.6-1.8-63.7 71-150.7 220.5-150.7 411.3 0 283.9 184.2 488.9 348.1 568.2 439.6 210.3 726.1-347.5 289.9-486.6z"},"children":[]},{"type":"path","props":{"id":"Layer","fill":"currentColor","d":"m1181.2 634.8c54.8 12.4 97.1 50.5 135.3 110.3 75.9 118 93.7 309.3-40.5 470.4-48.9 58.2-152.2 129.2-272.1 136.1-92.4 6.3-182.1-36.9-227.5-82.3-72.4-72.6-69.3-232.5 91.2-244.1 94.4-6.6 163.1-69.5 188.9-113.5 25.2-43.2 46.6-132.4 42.7-203-2.8-53.7 25.6-89.1 82-73.9z"},"children":[]}]}]},"wordmark":{"viewBox":"0 0 1513 467","fill":"currentColor","childNodes":[{"type":"title","props":{},"children":["Unicharm"]},{"type":"path","props":{"id":"Layer","fillRule":"evenodd","fill":"#3c459a","d":"m1020.7 415.4h-41.3c-2.2 39.8-26.8 51.3-69.7 51.3v-22.6c21.5-2.6 35.2-4.5 37.9-28.7h-51.2v-25.1h51.7v-18.1h-42.1v-23.1h50.1c13.3 0 18.7-3.8 23.9-12.7h31.5c-2.8 19.9-10.9 30.3-31.9 34.1v19.8h41.1c0 0 0 25.1 0 25.1zm132.4-28.5h86.3v29.4h-86.3zm-475.6 47.5c0 0 31.9 0 31.9 0v27.1h-134.7v-27.1h70.3l9.1-61.6h-63.1v-27.1h78.3c12.2 0 19.6 11.5 17.9 22.3zm45.1 0h123.6v27.1h-123.6zm14.2-88.6h95.2v27.1h-95.2zm611.2 118.3h-82.2c-12.2 0-19.5-11.5-17.9-22.3l23-98.4h33l-22 94.7h51.5c-3.4-18.9-8.9-38.8-14.6-57.4h31c5.8 15.8 13.4 41 16.1 61.1 1.6 10.8-5.7 22.3-17.9 22.3zm-209-63.8l-13 40.3h-27.2l11.8-36.3h-28.5l4.8 62.5h-27.3l-4.8-62.5h-21.3v-21.7h19.6l-1.8-23.4h27.3l1.8 23.4h44.3c9.8 0 16.7 9.4 14.3 17.7zm-275.9 17.7c-10.1 0-18.3-8.7-18.3-19.5 0-10.8 8.2-19.5 18.3-19.5 10.2 0 18.4 8.7 18.4 19.5 0 10.8-8.2 19.5-18.4 19.5z"},"children":[]},{"type":"path","props":{"id":"Layer","fillRule":"evenodd","fill":"#3c459a","d":"m534 220.8c-36.4 0-57.4-15.9-57.4-56.9v-109.9h39.5v114.4c0 13.2 6.4 21.4 19.1 21.4 6.1 0 11.5-1.6 15.8-4v-131.8h39.7v153.9c-11.8 7.7-30.9 12.9-56.7 12.9zm154.9-3.2v-115.6c0-14.3-5.7-22.1-19.7-22.1-8.2 0-12.1 0.9-16.4 3v134.7h-39.1v-154.5c13.1-7.3 31.5-12.1 56.4-12.1 40.1 0 58.6 16.4 58.6 51v115.6zm83-175.1c-11.7 0-21.2-9.5-21.2-21.3 0-11.7 9.5-21.2 21.2-21.2 11.8 0 21.2 9.5 21.2 21.2 0 11.8-9.4 21.3-21.2 21.3zm92.7 178.3c-33.3 0-56.4-29.5-56.4-85.4 0-55.5 25.4-84.4 56.4-84.4 17.6 0 28 5.4 34 12.1l-7.9 24.6c-3-3-8.5-6.1-16.7-6.1-17.5 0-26 21-26 53.2 0 33 9.7 53.1 25.4 53.1 8.5 0 13.7-2.4 17.3-6l8.2 26.6c-6.1 6.8-15.8 12.3-34.3 12.3zm124.3-3.2v-115c0-14.6-7.4-22.7-19.2-22.7-6.3 0-11.5 1.1-16.9 4.2v133.5h-39.2v-217.6h39.2v58.9c8.1-4.9 17.9-7.6 28.7-7.6 30 0 47.1 19.4 47.1 51.3v115zm117.2 3.2c-39.1 0-58.9-18.8-58.9-51.4 0-41.9 30.9-54.9 74.7-60.7v-5.5c0-15.5-9.2-22.8-23.4-22.8-13.7 0-25.8 4-34.6 8.5l-8.2-25.8c9.4-5.1 25.8-12.1 50.4-12.1 30.6 0 53.7 15.2 53.7 60.1v97.4c-11.8 7.7-28.2 12.3-53.7 12.3zm15.8-88.4c-25.3 3.3-37.7 11.8-37.7 35.4 0 16.8 8.2 26.2 23.7 26.2 5.4 0 10.9-1.6 14-2.7zm132-48.9c-9.1-4.5-19.4-4.2-27-0.5v134.7h-39.2v-154.5c14.9-8.8 35.8-13.6 73.5-11.8zm172.2 134.1v-115.6c0-13.7-6.4-22.4-18.6-22.4-7.2 0-12.7 2.4-17.3 7.2v130.8h-39.7v-115.3c0-13.3-6.7-22.7-20-22.7-7.6 0-11.6 1.2-16.1 3v135h-39.1v-154.5c12.7-7.2 29-12.1 55.4-12.1 23.7 0 36.8 7 44.1 15.8 9.4-9.4 22.4-15.8 44-15.8 27.6 0 46.7 18.5 46.7 51v115.6zm-634.4-164.1v164.1h-39.3v-163.7z"},"children":[]},{"type":"g","props":{"id":"Layer"},"children":[{"type":"path","props":{"id":"Layer","fillRule":"evenodd","fill":"#3c459a","d":"m198.9 450.9c-109.8 0-198.6-88.8-198.6-198.7 0-109.8 88.8-198.6 198.6-198.6 109.8 0 198.5 88.8 198.5 198.6 0 109.9-88.7 198.7-198.5 198.7zm173.6-198.8c0-96.1-77.6-173.7-173.6-173.7-96 0-173.6 77.6-173.6 173.7 0 96 77.6 173.7 173.6 173.7 96 0 173.6-77.7 173.6-173.7z"},"children":[]},{"type":"path","props":{"id":"Layer","fill":"#f9b900","d":"m199.3 272.5c-34.5-11.4-59.8-29.1-59.8-65.3 0-15.9 10.1-35.6 10.1-57 0-30.1-39.1-36.9-71.7-0.5-15.8 17.7-37.5 54.9-37.5 102.5 0 70.7 45.9 121.7 86.7 141.5 109.5 52.4 180.9-86.6 72.2-121.2z"},"children":[]},{"type":"path","props":{"id":"Layer","fill":"#f18b00","d":"m294.4 211.6c13.7 3.1 24.2 12.6 33.7 27.5 19 29.4 23.4 77-10 117.1-12.2 14.5-38 32.2-67.8 33.9-23 1.6-45.4-9.2-56.7-20.5-18-18.1-17.2-57.9 22.7-60.8 23.5-1.6 40.7-17.3 47.1-28.2 6.3-10.8 11.6-33 10.6-50.6-0.7-13.4 6.4-22.2 20.4-18.4z"},"children":[]}]},{"type":"path","props":{"id":"Layer","fill":"#3c459a","d":"m1511.8 386.9q-0.5-0.4-1-0.7c-32.2-24.2-171.8-122.7-541.5-123.4h0.1c-372.6 0-513.1 99.1-545.4 123.3l-1 0.8q-0.1 0.2-0.3 0.4-0.1 0.2-0.2 0.4-0.1 0.3-0.1 0.5 0 0.2 0 0.5c0 1.5 1.1 2.7 2.6 2.7q0.1 0 0.2 0 0.1 0 0.3 0 0.1 0 0.2-0.1 0.1 0 0.2-0.1 0.4-0.2 0.9-0.6c15.7-10.7 169.6-109 540.4-109.1v0.1c371.1 0 525.1 98.3 540.8 109q0.5 0.4 0.8 0.6 0.2 0.1 0.3 0.1 0.1 0.1 0.2 0.1 0.1 0 0.3 0 0.1 0.1 0.2 0.1c1.5 0 2.6-1.3 2.6-2.8q0-0.2 0-0.5-0.1-0.2-0.1-0.5-0.1-0.2-0.2-0.4-0.2-0.2-0.3-0.4z"},"children":[]}]}};
|
|
8
|
+
|
|
9
|
+
function _ns(props, p) {
|
|
10
|
+
var out = {};
|
|
11
|
+
for (var k in props) {
|
|
12
|
+
var v = props[k];
|
|
13
|
+
if (k === 'id') out[k] = p + v;
|
|
14
|
+
else if (k === 'href' && typeof v === 'string' && v.charCodeAt(0) === 35) out[k] = '#' + p + v.slice(1);
|
|
15
|
+
else if (typeof v === 'string') out[k] = v.replace(/url\(#([^)]+)\)/g, function (_m, id) { return 'url(#' + p + id + ')'; });
|
|
16
|
+
else if (v && typeof v === 'object') {
|
|
17
|
+
var s = {};
|
|
18
|
+
for (var sk in v) { var sv = v[sk]; s[sk] = typeof sv === 'string' ? sv.replace(/url\(#([^)]+)\)/g, function (_m, id) { return 'url(#' + p + id + ')'; }) : sv; }
|
|
19
|
+
out[k] = s;
|
|
20
|
+
} else out[k] = v;
|
|
21
|
+
}
|
|
22
|
+
return out;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
const Unicharm = forwardRef(
|
|
26
|
+
function Unicharm({ variant = 'default', viewBox, ...props }, ref) {
|
|
27
|
+
const _p = 'tsvg' + useId().replace(/[^a-zA-Z0-9]/g, '') + '-';
|
|
28
|
+
const _v = _variants[variant] || _variants.default;
|
|
29
|
+
return createElement(
|
|
30
|
+
'svg',
|
|
31
|
+
Object.assign({ ref, viewBox: viewBox || _v.viewBox, fill: _v.fill, stroke: _v.stroke, xmlns: 'http://www.w3.org/2000/svg' }, props),
|
|
32
|
+
..._v.childNodes
|
|
33
|
+
.map(function _c(el) {
|
|
34
|
+
if (typeof el === 'string') return el;
|
|
35
|
+
return createElement(el.type, _ns(el.props, _p), ...(el.children || []).map(_c));
|
|
36
|
+
})
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
);
|
|
40
|
+
Unicharm.displayName = 'Unicharm';
|
|
41
|
+
|
|
42
|
+
export default Unicharm;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thesvg/react",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.16",
|
|
4
4
|
"description": "Typed React SVG components for all 3,800+ brand icons from thesvg.org",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"react": ">=18"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@types/react": "^19.2.
|
|
53
|
+
"@types/react": "^19.2.18",
|
|
54
54
|
"tsx": "^4.23.1",
|
|
55
55
|
"typescript": "^6.0.3"
|
|
56
56
|
},
|