@linagora/twake-icons 2.6.5 → 2.6.7
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/CHANGELOG.md +14 -0
- package/dist/index.cjs +4 -6
- package/dist/index.d.cts +6 -3
- package/dist/index.d.ts +6 -3
- package/dist/index.js +4 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## @linagora/twake-icons [2.6.7](https://github.com/linagora/twake-ui/compare/@linagora/twake-icons@2.6.6...@linagora/twake-icons@2.6.7) (2026-07-01)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* Allow any React component to be rendered in Icon ([d3bdaa4](https://github.com/linagora/twake-ui/commit/d3bdaa498f4b4a91ad489b678369a78345d52dba))
|
|
7
|
+
|
|
8
|
+
## @linagora/twake-icons [2.6.6](https://github.com/linagora/twake-ui/compare/@linagora/twake-icons@2.6.5...@linagora/twake-icons@2.6.6) (2026-06-25)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* Missed some props on SVG Icons (Cube and Spinner) ([3f48a97](https://github.com/linagora/twake-ui/commit/3f48a97006c0aa877a18d72fd932585b845f45e1))
|
|
14
|
+
|
|
1
15
|
## @linagora/twake-icons [2.6.5](https://github.com/linagora/twake-ui/compare/@linagora/twake-icons@2.6.4...@linagora/twake-icons@2.6.5) (2026-06-24)
|
|
2
16
|
|
|
3
17
|
|
package/dist/index.cjs
CHANGED
|
@@ -480,9 +480,7 @@ function Icon(props) {
|
|
|
480
480
|
} = props;
|
|
481
481
|
if (!icon) return null;
|
|
482
482
|
if (import_react.default.isValidElement(icon)) {
|
|
483
|
-
|
|
484
|
-
const isImg = icon.type === "img";
|
|
485
|
-
if (isIconComp || isImg) return icon;
|
|
483
|
+
return icon;
|
|
486
484
|
}
|
|
487
485
|
const isPngPath = typeof icon === "string" && icon.includes(".png");
|
|
488
486
|
if (isPngPath)
|
|
@@ -3215,8 +3213,8 @@ var CrossWhite_default = SvgCrossWhite;
|
|
|
3215
3213
|
|
|
3216
3214
|
// src/Icons/Cube.tsx
|
|
3217
3215
|
var React114 = __toESM(require("react"), 1);
|
|
3218
|
-
function SvgCube(props) {
|
|
3219
|
-
return /* @__PURE__ */ React114.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 15 16", ...props }, /* @__PURE__ */ React114.createElement("path", { d: "M14.4 4 7.2 0 0 4v8l7.2 4 7.2-4zM7.2 1.832l4.728 2.624L9.52 5.792a3.213 3.213 0 0 0-4.64 0L2.472 4.456zm-.8 11.896-4.8-2.664V5.808L4.104 7.2A3.193 3.193 0 0 0 6.4 11.096zM5.6 8c0-.88.72-1.6 1.6-1.6s1.6.72 1.6 1.6-.72 1.6-1.6 1.6S5.6 8.88 5.6 8M8 13.728v-2.624a3.19 3.19 0 0 0 2.4-3.096q.002-.422-.104-.808L12.8 5.808v5.256z" }));
|
|
3216
|
+
function SvgCube({ iconRef, ...props }) {
|
|
3217
|
+
return /* @__PURE__ */ React114.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 15 16", ...props, ref: iconRef }, /* @__PURE__ */ React114.createElement("path", { d: "M14.4 4 7.2 0 0 4v8l7.2 4 7.2-4zM7.2 1.832l4.728 2.624L9.52 5.792a3.213 3.213 0 0 0-4.64 0L2.472 4.456zm-.8 11.896-4.8-2.664V5.808L4.104 7.2A3.193 3.193 0 0 0 6.4 11.096zM5.6 8c0-.88.72-1.6 1.6-1.6s1.6.72 1.6 1.6-.72 1.6-1.6 1.6S5.6 8.88 5.6 8M8 13.728v-2.624a3.19 3.19 0 0 0 2.4-3.096q.002-.422-.104-.808L12.8 5.808v5.256z" }));
|
|
3220
3218
|
}
|
|
3221
3219
|
var Cube_default = SvgCube;
|
|
3222
3220
|
|
|
@@ -6381,7 +6379,7 @@ var Sound_default = SvgSound;
|
|
|
6381
6379
|
// src/Icons/Spinner.tsx
|
|
6382
6380
|
var React345 = __toESM(require("react"), 1);
|
|
6383
6381
|
function SvgSpinner(props) {
|
|
6384
|
-
return /* @__PURE__ */ React345.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", ...props }, /* @__PURE__ */ React345.createElement("path", { d: "M8 16a7.7 7.7 0 0 1-3.1-.63 8.1 8.1 0 0 1-2.55-1.72A8.1 8.1 0 0 1 .63 11.1 7.7 7.7 0 0 1 0 8q0-1.66.63-3.11a8.2 8.2 0 0 1 1.72-2.54A8.1 8.1 0 0 1 4.9.63 7.7 7.7 0 0 1 8 0q.34 0 .57.23T8.8.8a.77.77 0 0 1-.23.57.77.77 0 0 1-.57.23q-2.66 0-4.53 1.87T1.6 8t1.87 4.53T8 14.4t4.53-1.87T14.4 8q0-.34.23-.57a.77.77 0 0 1 .57-.23q.34 0 .57.23T16 8a7.7 7.7 0 0 1-.63 3.1 8.1 8.1 0 0 1-1.72 2.55 8.2 8.2 0 0 1-2.54 1.72A7.7 7.7 0 0 1 8 16" }));
|
|
6382
|
+
return /* @__PURE__ */ React345.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", ...props, role: "progressbar", "aria-busy": "true" }, /* @__PURE__ */ React345.createElement("path", { d: "M8 16a7.7 7.7 0 0 1-3.1-.63 8.1 8.1 0 0 1-2.55-1.72A8.1 8.1 0 0 1 .63 11.1 7.7 7.7 0 0 1 0 8q0-1.66.63-3.11a8.2 8.2 0 0 1 1.72-2.54A8.1 8.1 0 0 1 4.9.63 7.7 7.7 0 0 1 8 0q.34 0 .57.23T8.8.8a.77.77 0 0 1-.23.57.77.77 0 0 1-.57.23q-2.66 0-4.53 1.87T1.6 8t1.87 4.53T8 14.4t4.53-1.87T14.4 8q0-.34.23-.57a.77.77 0 0 1 .57-.23q.34 0 .57.23T16 8a7.7 7.7 0 0 1-.63 3.1 8.1 8.1 0 0 1-1.72 2.55 8.2 8.2 0 0 1-2.54 1.72A7.7 7.7 0 0 1 8 16" }));
|
|
6385
6383
|
}
|
|
6386
6384
|
var Spinner_default = SvgSpinner;
|
|
6387
6385
|
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import React__default, { SVGAttributes, ComponentType, ReactElement, SVGProps } from 'react';
|
|
2
3
|
|
|
3
4
|
interface IconProps extends SVGAttributes<SVGSVGElement> {
|
|
4
5
|
icon: string | ComponentType<SVGAttributes<SVGSVGElement>> | ReactElement;
|
|
@@ -12,7 +13,7 @@ interface IconProps extends SVGAttributes<SVGSVGElement> {
|
|
|
12
13
|
}
|
|
13
14
|
declare function Icon(props: IconProps): ReactElement | null;
|
|
14
15
|
|
|
15
|
-
declare function Sprite():
|
|
16
|
+
declare function Sprite(): React__default.ReactElement | null;
|
|
16
17
|
|
|
17
18
|
/**
|
|
18
19
|
* Returns the appropriate icon component for a given attachment
|
|
@@ -245,7 +246,9 @@ declare function SvgCrossSmall(props: SVGProps<SVGSVGElement>): JSX.Element;
|
|
|
245
246
|
|
|
246
247
|
declare function SvgCrossWhite(props: SVGProps<SVGSVGElement>): JSX.Element;
|
|
247
248
|
|
|
248
|
-
declare function SvgCube(props: SVGProps<SVGSVGElement>
|
|
249
|
+
declare function SvgCube({ iconRef, ...props }: SVGProps<SVGSVGElement> & {
|
|
250
|
+
iconRef?: React.Ref<SVGSVGElement>;
|
|
251
|
+
}): JSX.Element;
|
|
249
252
|
|
|
250
253
|
declare function SvgDash(props: SVGProps<SVGSVGElement>): JSX.Element;
|
|
251
254
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import React__default, { SVGAttributes, ComponentType, ReactElement, SVGProps } from 'react';
|
|
2
3
|
|
|
3
4
|
interface IconProps extends SVGAttributes<SVGSVGElement> {
|
|
4
5
|
icon: string | ComponentType<SVGAttributes<SVGSVGElement>> | ReactElement;
|
|
@@ -12,7 +13,7 @@ interface IconProps extends SVGAttributes<SVGSVGElement> {
|
|
|
12
13
|
}
|
|
13
14
|
declare function Icon(props: IconProps): ReactElement | null;
|
|
14
15
|
|
|
15
|
-
declare function Sprite():
|
|
16
|
+
declare function Sprite(): React__default.ReactElement | null;
|
|
16
17
|
|
|
17
18
|
/**
|
|
18
19
|
* Returns the appropriate icon component for a given attachment
|
|
@@ -245,7 +246,9 @@ declare function SvgCrossSmall(props: SVGProps<SVGSVGElement>): JSX.Element;
|
|
|
245
246
|
|
|
246
247
|
declare function SvgCrossWhite(props: SVGProps<SVGSVGElement>): JSX.Element;
|
|
247
248
|
|
|
248
|
-
declare function SvgCube(props: SVGProps<SVGSVGElement>
|
|
249
|
+
declare function SvgCube({ iconRef, ...props }: SVGProps<SVGSVGElement> & {
|
|
250
|
+
iconRef?: React.Ref<SVGSVGElement>;
|
|
251
|
+
}): JSX.Element;
|
|
249
252
|
|
|
250
253
|
declare function SvgDash(props: SVGProps<SVGSVGElement>): JSX.Element;
|
|
251
254
|
|
package/dist/index.js
CHANGED
|
@@ -46,9 +46,7 @@ function Icon(props) {
|
|
|
46
46
|
} = props;
|
|
47
47
|
if (!icon) return null;
|
|
48
48
|
if (React.isValidElement(icon)) {
|
|
49
|
-
|
|
50
|
-
const isImg = icon.type === "img";
|
|
51
|
-
if (isIconComp || isImg) return icon;
|
|
49
|
+
return icon;
|
|
52
50
|
}
|
|
53
51
|
const isPngPath = typeof icon === "string" && icon.includes(".png");
|
|
54
52
|
if (isPngPath)
|
|
@@ -2781,8 +2779,8 @@ var CrossWhite_default = SvgCrossWhite;
|
|
|
2781
2779
|
|
|
2782
2780
|
// src/Icons/Cube.tsx
|
|
2783
2781
|
import * as React114 from "react";
|
|
2784
|
-
function SvgCube(props) {
|
|
2785
|
-
return /* @__PURE__ */ React114.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 15 16", ...props }, /* @__PURE__ */ React114.createElement("path", { d: "M14.4 4 7.2 0 0 4v8l7.2 4 7.2-4zM7.2 1.832l4.728 2.624L9.52 5.792a3.213 3.213 0 0 0-4.64 0L2.472 4.456zm-.8 11.896-4.8-2.664V5.808L4.104 7.2A3.193 3.193 0 0 0 6.4 11.096zM5.6 8c0-.88.72-1.6 1.6-1.6s1.6.72 1.6 1.6-.72 1.6-1.6 1.6S5.6 8.88 5.6 8M8 13.728v-2.624a3.19 3.19 0 0 0 2.4-3.096q.002-.422-.104-.808L12.8 5.808v5.256z" }));
|
|
2782
|
+
function SvgCube({ iconRef, ...props }) {
|
|
2783
|
+
return /* @__PURE__ */ React114.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 15 16", ...props, ref: iconRef }, /* @__PURE__ */ React114.createElement("path", { d: "M14.4 4 7.2 0 0 4v8l7.2 4 7.2-4zM7.2 1.832l4.728 2.624L9.52 5.792a3.213 3.213 0 0 0-4.64 0L2.472 4.456zm-.8 11.896-4.8-2.664V5.808L4.104 7.2A3.193 3.193 0 0 0 6.4 11.096zM5.6 8c0-.88.72-1.6 1.6-1.6s1.6.72 1.6 1.6-.72 1.6-1.6 1.6S5.6 8.88 5.6 8M8 13.728v-2.624a3.19 3.19 0 0 0 2.4-3.096q.002-.422-.104-.808L12.8 5.808v5.256z" }));
|
|
2786
2784
|
}
|
|
2787
2785
|
var Cube_default = SvgCube;
|
|
2788
2786
|
|
|
@@ -5947,7 +5945,7 @@ var Sound_default = SvgSound;
|
|
|
5947
5945
|
// src/Icons/Spinner.tsx
|
|
5948
5946
|
import * as React345 from "react";
|
|
5949
5947
|
function SvgSpinner(props) {
|
|
5950
|
-
return /* @__PURE__ */ React345.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", ...props }, /* @__PURE__ */ React345.createElement("path", { d: "M8 16a7.7 7.7 0 0 1-3.1-.63 8.1 8.1 0 0 1-2.55-1.72A8.1 8.1 0 0 1 .63 11.1 7.7 7.7 0 0 1 0 8q0-1.66.63-3.11a8.2 8.2 0 0 1 1.72-2.54A8.1 8.1 0 0 1 4.9.63 7.7 7.7 0 0 1 8 0q.34 0 .57.23T8.8.8a.77.77 0 0 1-.23.57.77.77 0 0 1-.57.23q-2.66 0-4.53 1.87T1.6 8t1.87 4.53T8 14.4t4.53-1.87T14.4 8q0-.34.23-.57a.77.77 0 0 1 .57-.23q.34 0 .57.23T16 8a7.7 7.7 0 0 1-.63 3.1 8.1 8.1 0 0 1-1.72 2.55 8.2 8.2 0 0 1-2.54 1.72A7.7 7.7 0 0 1 8 16" }));
|
|
5948
|
+
return /* @__PURE__ */ React345.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", ...props, role: "progressbar", "aria-busy": "true" }, /* @__PURE__ */ React345.createElement("path", { d: "M8 16a7.7 7.7 0 0 1-3.1-.63 8.1 8.1 0 0 1-2.55-1.72A8.1 8.1 0 0 1 .63 11.1 7.7 7.7 0 0 1 0 8q0-1.66.63-3.11a8.2 8.2 0 0 1 1.72-2.54A8.1 8.1 0 0 1 4.9.63 7.7 7.7 0 0 1 8 0q.34 0 .57.23T8.8.8a.77.77 0 0 1-.23.57.77.77 0 0 1-.57.23q-2.66 0-4.53 1.87T1.6 8t1.87 4.53T8 14.4t4.53-1.87T14.4 8q0-.34.23-.57a.77.77 0 0 1 .57-.23q.34 0 .57.23T16 8a7.7 7.7 0 0 1-.63 3.1 8.1 8.1 0 0 1-1.72 2.55 8.2 8.2 0 0 1-2.54 1.72A7.7 7.7 0 0 1 8 16" }));
|
|
5951
5949
|
}
|
|
5952
5950
|
var Spinner_default = SvgSpinner;
|
|
5953
5951
|
|