@linagora/twake-icons 2.16.1 → 3.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/CHANGELOG.md +32 -0
- package/README.md +15 -7
- package/dist/index.cjs +7235 -2643
- package/dist/index.d.cts +1282 -414
- package/dist/index.d.ts +1282 -414
- package/dist/index.js +7224 -2643
- package/package.json +2 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,35 @@
|
|
|
1
|
+
# @linagora/twake-icons [3.0.0](https://github.com/linagora/twake-ui/compare/@linagora/twake-icons@2.17.0...@linagora/twake-icons@3.0.0) (2026-10-29)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **twake-icons:** Generate the Cube and Spinner props ([e15774c](https://github.com/linagora/twake-ui/commit/e15774c33a01d5addd73c827434336cfa8843763))
|
|
7
|
+
* **twake-icons:** Remove the root fill of the ManageSearch source ([1bffb58](https://github.com/linagora/twake-ui/commit/1bffb584ab66c2221bdd6428caefc574be82fd7d))
|
|
8
|
+
* **twake-icons:** Rename permission icons that shadow other icons ([fcca309](https://github.com/linagora/twake-ui/commit/fcca3091521e38d73498457dccfe35c5e38fcbec))
|
|
9
|
+
* **twake-icons:** Run svgo until the SVGs stop changing ([202328f](https://github.com/linagora/twake-ui/commit/202328fbf9b25cc28527dfeeddef5cd7fd504620))
|
|
10
|
+
* **twake-icons:** Skip animated icons in npm run svgo ([8a6b503](https://github.com/linagora/twake-ui/commit/8a6b503291f0fc3b5303fd44c434dc0b835e2298))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### BREAKING CHANGES
|
|
14
|
+
|
|
15
|
+
* **twake-icons:** Bill, Calendar, Certified, Contract, Home, Location
|
|
16
|
+
and Safe now render the ui icon, and Contacts the illus one. The old
|
|
17
|
+
permission drawings are exported as BillPermissions,
|
|
18
|
+
CalendarPermissions, CertifiedPermissions, ContactsPermissions,
|
|
19
|
+
ContractPermissions, HomePermissions, LocationPermissions and
|
|
20
|
+
SafePermissions, which no longer render the 16px Twake drawings.
|
|
21
|
+
|
|
22
|
+
Assisted-by: LLM
|
|
23
|
+
|
|
24
|
+
# @linagora/twake-icons [2.17.0](https://github.com/linagora/twake-ui/compare/@linagora/twake-icons@2.16.1...@linagora/twake-icons@2.17.0) (2026-10-27)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Features
|
|
28
|
+
|
|
29
|
+
* **twake-icons:** Add editor and composer icons ([867d1e9](https://github.com/linagora/twake-ui/commit/867d1e9f18eb0c7e972dc23c9f473c4de8c5484b))
|
|
30
|
+
* **twake-icons:** Add mail folder icons ([d5d6065](https://github.com/linagora/twake-ui/commit/d5d6065f7b65ac1c8132b1d14b9cee9381c29f73))
|
|
31
|
+
* **twake-icons:** Add mail message action icons ([444fdec](https://github.com/linagora/twake-ui/commit/444fdecea6919f045066ccfd014e953a57508050))
|
|
32
|
+
|
|
1
33
|
## @linagora/twake-icons [2.16.1](https://github.com/linagora/twake-ui/compare/@linagora/twake-icons@2.16.0...@linagora/twake-icons@2.16.1) (2026-10-27)
|
|
2
34
|
|
|
3
35
|
|
package/README.md
CHANGED
|
@@ -34,13 +34,13 @@ import { Icon, Sprite } from '@linagora/twake-icons'
|
|
|
34
34
|
|
|
35
35
|
### Icon Props
|
|
36
36
|
|
|
37
|
-
| Prop
|
|
38
|
-
|
|
39
|
-
| `icon`
|
|
40
|
-
| `size`
|
|
41
|
-
| `color`
|
|
42
|
-
| `rotate` | `number`
|
|
43
|
-
| `spin`
|
|
37
|
+
| Prop | Type | Description |
|
|
38
|
+
| -------- | ------------------------------------- | ------------------------------------------------------ |
|
|
39
|
+
| `icon` | `string \| Component \| ReactElement` | Icon identifier, SVGr component, or custom SVG element |
|
|
40
|
+
| `size` | `number \| string` | Width and height in pixels |
|
|
41
|
+
| `color` | `string` | Fill color |
|
|
42
|
+
| `rotate` | `number` | Rotation in degrees |
|
|
43
|
+
| `spin` | `boolean` | Apply spinning animation |
|
|
44
44
|
|
|
45
45
|
## How to add an icon
|
|
46
46
|
|
|
@@ -50,29 +50,37 @@ Add the new icon in `/assets` folder, then optimize it and create the SVGr compo
|
|
|
50
50
|
If your SVG file is an icon (not an illustration), verify that the file doesn't have any `fill` or `fill-opacity` properties. Remove them if necessary, to be able to set the color.
|
|
51
51
|
|
|
52
52
|
2. **Optimize SVGs**
|
|
53
|
+
|
|
53
54
|
```bash
|
|
54
55
|
npm run svgo
|
|
55
56
|
```
|
|
57
|
+
|
|
56
58
|
Or for a single icon:
|
|
59
|
+
|
|
57
60
|
```bash
|
|
58
61
|
npx svgo assets/ui/new-icon.svg
|
|
59
62
|
```
|
|
60
63
|
|
|
61
64
|
3. **Generate SVGr components**
|
|
65
|
+
|
|
62
66
|
```bash
|
|
63
67
|
npm run makeSvgr
|
|
64
68
|
```
|
|
69
|
+
|
|
65
70
|
Or for a single icon:
|
|
71
|
+
|
|
66
72
|
```bash
|
|
67
73
|
npm run makeSvgr -- assets/ui/new-icon.svg
|
|
68
74
|
```
|
|
69
75
|
|
|
70
76
|
4. **Regenerate the sprite**
|
|
77
|
+
|
|
71
78
|
```bash
|
|
72
79
|
npm run sprite
|
|
73
80
|
```
|
|
74
81
|
|
|
75
82
|
5. **Rebuild and fix lint**
|
|
83
|
+
|
|
76
84
|
```bash
|
|
77
85
|
npm run build && npm run lint:fix
|
|
78
86
|
```
|