@trilogy-ds/assets 0.0.1-alpha-prompt

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/README.md ADDED
@@ -0,0 +1,31 @@
1
+ <div align='center'>
2
+
3
+ # @trilogy-ds/assets
4
+
5
+ </div>
6
+
7
+ [![npm](https://img.shields.io/npm/v/@trilogy-ds/assets?style=for-the-badge&logo=npm&logoColor=white&color=D44A4A)](https://www.npmjs.com/package/@trilogy-ds/assets)
8
+
9
+ ---
10
+
11
+ `@trilogy-ds/assets` is a direct dependency of [@trilogy-ds/react](https://www.npmjs.com/package/@trilogy-ds/react). It includes all open-source fonts and icons from [Trilogy](https://github.com/BouyguesTelecom/trilogy).
12
+
13
+ It provides to the `<Icon/>` component, the path information from the `IconPath.ts` file (which is the paths to the icons) and the `IconName` file (which is an enum for the icon names).
14
+
15
+ ## Installation
16
+
17
+ Download the package by running:
18
+
19
+ `npm install @trilogy-ds/assets`
20
+
21
+ ## Scripts 💻
22
+
23
+ This package includes the following scripts using **npm**:
24
+
25
+ 1. `optimise:icons`: This script uses [SVGO](https://github.com/svg/svgo) to optimize all icons in the `assets/icons/all` directory. The optimized icons are stored in `lib/icons/all`.
26
+
27
+ 2. `build`: This script runs the `optimise:icons` script, compiles Typescript files, and finally, copies all fonts from `assets/fonts/` to `lib/fonts/`.
28
+
29
+ ## License
30
+
31
+ This package is licensed under the ISC license.
Binary file
Binary file
@@ -0,0 +1,22 @@
1
+ export declare enum IconName {
2
+ ALERT = "tri-alert",
3
+ ARROW_DOWN = "tri-arrow-down",
4
+ ARROW_LEFT = "tri-arrow-left",
5
+ ARROW_RIGHT = "tri-arrow-right",
6
+ ARROW_UP = "tri-arrow-up",
7
+ BELL = "tri-bell",
8
+ CALENDAR = "tri-calendar",
9
+ CHECK_CIRCLE = "tri-check-circle",
10
+ CHECK = "tri-check",
11
+ EXCLAMATION_CIRCLE = "tri-exclamation-circle",
12
+ EYE_SLASH = "tri-eye-slash",
13
+ EYE = "tri-eye",
14
+ FILE_ATTACHED = "tri-file-attached",
15
+ INFOS_CIRCLE = "tri-infos-circle",
16
+ SEARCH = "tri-search",
17
+ TIMES = "tri-times",
18
+ TRASH = "tri-trash",
19
+ MICRO = "tri-micro",
20
+ ATTACHMENT = "tri-attachment"
21
+ }
22
+ export type IconNameValues = `${IconName}`;
@@ -0,0 +1,22 @@
1
+ export var IconName;
2
+ (function (IconName) {
3
+ IconName["ALERT"] = "tri-alert";
4
+ IconName["ARROW_DOWN"] = "tri-arrow-down";
5
+ IconName["ARROW_LEFT"] = "tri-arrow-left";
6
+ IconName["ARROW_RIGHT"] = "tri-arrow-right";
7
+ IconName["ARROW_UP"] = "tri-arrow-up";
8
+ IconName["BELL"] = "tri-bell";
9
+ IconName["CALENDAR"] = "tri-calendar";
10
+ IconName["CHECK_CIRCLE"] = "tri-check-circle";
11
+ IconName["CHECK"] = "tri-check";
12
+ IconName["EXCLAMATION_CIRCLE"] = "tri-exclamation-circle";
13
+ IconName["EYE_SLASH"] = "tri-eye-slash";
14
+ IconName["EYE"] = "tri-eye";
15
+ IconName["FILE_ATTACHED"] = "tri-file-attached";
16
+ IconName["INFOS_CIRCLE"] = "tri-infos-circle";
17
+ IconName["SEARCH"] = "tri-search";
18
+ IconName["TIMES"] = "tri-times";
19
+ IconName["TRASH"] = "tri-trash";
20
+ IconName["MICRO"] = "tri-micro";
21
+ IconName["ATTACHMENT"] = "tri-attachment";
22
+ })(IconName || (IconName = {}));
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="800" height="800" fill="none" viewBox="-0.5 0 25 25"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M18.22 21.25H5.78a3.6 3.6 0 0 1-3.31-5.33L8.69 5.11a3.87 3.87 0 0 1 6.62 0l6.22 10.81a3.6 3.6 0 0 1-3.31 5.33"/><path fill="currentColor" d="M10.88 17.15a1.12 1.12 0 0 1 1.13-1.12 1.11 1.11 0 1 1-1.13 1.12m.36-2.73L11.1 9.2a.898.898 0 0 1 1.262-.917.9.9 0 0 1 .49.545c.039.12.052.247.039.372l-.13 5.22a.76.76 0 0 1-1.52 0"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="800" height="800" fill="none" viewBox="0 0 24 24"><path fill="currentColor" fill-rule="evenodd" d="M12 3.25a.75.75 0 0 1 .75.75v14.19l4.72-4.72a.75.75 0 1 1 1.06 1.06l-6 6a.75.75 0 0 1-1.06 0l-6-6a.75.75 0 1 1 1.06-1.06l4.72 4.72V4a.75.75 0 0 1 .75-.75" clip-rule="evenodd"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="800" height="800" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 12h14M5 12l6-6m-6 6 6 6"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="800" height="800" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M4 12h16m0 0-6-6m6 6-6 6"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="800" height="800" fill="none" viewBox="0 0 24 24"><path fill="currentColor" fill-rule="evenodd" d="M12 3a1 1 0 0 1 .707.293l7 7a1 1 0 0 1-1.414 1.414L13 6.414V20a1 1 0 1 1-2 0V6.414l-5.293 5.293a1 1 0 0 1-1.414-1.414l7-7A1 1 0 0 1 12 3" clip-rule="evenodd"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="800" height="800" viewBox="-8 0 32 32"><path fill="currentColor" fill-rule="evenodd" d="M14 4v20a6 6 0 0 1-12 0V6a4 4 0 0 1 8 0v18a2 2 0 0 1-4 0V8H4v16a4 4 0 0 0 8 0V6A6 6 0 0 0 0 6v19c.493 3.945 3.921 7 8 7s7.507-3.055 8-7V4z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="800" height="800" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 21h6m3-12.4c0-1.485-.632-2.91-1.757-3.96S13.592 3 12 3c-1.591 0-3.117.59-4.242 1.64S6 7.115 6 8.6c0 2.686-.676 4.584-1.472 5.887-.772 1.262-1.157 1.893-1.143 2.057.016.184.053.248.201.358.133.098.762.098 2.02.098h12.788c1.259 0 1.888 0 2.02-.098.149-.11.185-.174.201-.358.015-.164-.37-.795-1.142-2.057C18.677 13.184 18 11.287 18 8.6"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" width="800" height="800" fill="currentColor" viewBox="0 0 612 612"><path d="M534.219 72.689v-.177h-35.172V19.125C499.047 8.563 490.484 0 479.922 0h-41.438c-10.562 0-19.125 8.563-19.125 19.125v53.392H193.048V19.125C193.048 8.563 184.484 0 173.923 0h-41.439c-10.562 0-19.125 8.563-19.125 19.125v53.392H80.884C33.87 72.517 0 106.77 0 149.017V535.5C0 577.747 34.253 612 76.5 612h459c42.246 0 76.5-34.253 76.5-76.5V149.017c.004-41.08-32.053-74.506-77.781-76.328M152.211 558.211c0 5.273-4.289 9.562-9.562 9.562H47.817c-5.274 0-9.562-4.289-9.562-9.562v-76.299c0-5.274 4.289-9.562 9.562-9.562h94.826c5.274 0 9.562 4.288 9.562 9.562v76.299zm0-133.282c0 5.273-4.289 9.562-9.562 9.562H47.817c-5.274 0-9.562-4.289-9.562-9.562v-57.375c0-5.273 4.289-9.562 9.562-9.562h94.826c5.274 0 9.562 4.289 9.562 9.562v57.375zm0-115.343c0 5.273-4.289 9.562-9.562 9.562H47.817c-5.274 0-9.562-4.289-9.562-9.562v-77.695c0-5.274 4.289-9.562 9.562-9.562h94.826c5.274 0 9.562 4.289 9.562 9.562v77.695zM286.88 558.211c0 5.273-4.289 9.562-9.562 9.562h-76.5c-5.274 0-9.562-4.289-9.562-9.562v-76.299c0-5.274 4.289-9.562 9.562-9.562h76.5c5.273 0 9.562 4.288 9.562 9.562zm0-133.282c0 5.273-4.289 9.562-9.562 9.562h-76.5c-5.274 0-9.562-4.289-9.562-9.562v-57.375c0-5.273 4.289-9.562 9.562-9.562h76.5c5.273 0 9.562 4.289 9.562 9.562zm0-115.343c0 5.273-4.289 9.562-9.562 9.562h-76.5c-5.274 0-9.562-4.289-9.562-9.562v-77.695c0-5.274 4.289-9.562 9.562-9.562h76.5c5.273 0 9.562 4.289 9.562 9.562zm133.874 248.625c0 5.273-4.287 9.562-9.562 9.562H335.49c-5.273 0-9.562-4.289-9.562-9.562v-76.299c0-5.274 4.289-9.562 9.562-9.562h75.701c5.275 0 9.562 4.288 9.562 9.562zm0-133.282c0 5.273-4.287 9.562-9.562 9.562H335.49c-5.273 0-9.562-4.289-9.562-9.562v-57.375c0-5.273 4.289-9.562 9.562-9.562h75.701c5.275 0 9.562 4.289 9.562 9.562zm0-115.343c0 5.273-4.287 9.562-9.562 9.562H335.49c-5.273 0-9.562-4.289-9.562-9.562v-77.695c0-5.274 4.289-9.562 9.562-9.562h75.701c5.275 0 9.562 4.289 9.562 9.562zm152.207 248.625c0 5.273-4.289 9.562-9.562 9.562h-93.637c-5.273 0-9.562-4.289-9.562-9.562v-76.299c0-5.274 4.289-9.562 9.562-9.562h93.633c5.273 0 9.562 4.288 9.562 9.562v76.299zm0-133.282c0 5.273-4.289 9.562-9.562 9.562h-93.637c-5.273 0-9.562-4.289-9.562-9.562v-57.375c0-5.273 4.289-9.562 9.562-9.562h93.633c5.273 0 9.562 4.289 9.562 9.562v57.375zm0-115.343c0 5.273-4.289 9.562-9.562 9.562h-93.637c-5.273 0-9.562-4.289-9.562-9.562v-77.695c0-5.274 4.289-9.562 9.562-9.562h93.633c5.273 0 9.562 4.289 9.562 9.562v77.695z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="800" height="800" fill="none" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10" stroke="currentColor" stroke-width="1.5"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m8.5 12.5 2 2 5-5"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="800" height="800" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 12.611 8.923 17.5 20 6.5"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="800" height="800" fill="none" viewBox="0 0 20 20"><path fill="currentColor" fill-rule="evenodd" d="M10 3a7 7 0 1 0 0 14 7 7 0 0 0 0-14m-9 7a9 9 0 1 1 18 0 9 9 0 0 1-18 0m10.01 4a1 1 0 0 1-1 1H10a1 1 0 1 1 0-2h.01a1 1 0 0 1 1 1M11 6a1 1 0 1 0-2 0v5a1 1 0 1 0 2 0z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="800" height="800" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m2.999 3 18 18M9.843 9.914a3 3 0 0 0 4.265 4.22M6.5 6.646A10.02 10.02 0 0 0 2.457 12c1.274 4.057 5.065 7 9.542 7 1.99 0 3.842-.58 5.4-1.582m-6.4-12.369q.494-.049 1-.049c4.478 0 8.268 2.943 9.542 7a10 10 0 0 1-1.189 2.5"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="800" height="800" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12.001 5C7.524 5 3.733 7.943 2.46 12c1.274 4.057 5.065 7 9.542 7 4.478 0 8.268-2.943 9.542-7-1.274-4.057-5.064-7-9.542-7"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="800" height="800" fill="none" viewBox="0 0 15 15"><path stroke="currentColor" d="M.5 0v4.5a2 2 0 1 0 4 0v-3a1 1 0 0 0-2 0V5M6 .5h6.5a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1h-10a1 1 0 0 1-1-1V8M11 4.5H7m4 3H7m4 3H4"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="800" height="800" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="1.5" d="M12 17v-6"/><circle cx="1" cy="1" r="1" fill="currentColor" transform="matrix(1 0 0 -1 11 9)"/><path stroke="currentColor" stroke-linecap="round" stroke-width="1.5" d="M7 3.338A9.95 9.95 0 0 1 12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12c0-1.821.487-3.53 1.338-5"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="800" height="800" fill="currentColor" class="cf-icon-svg" viewBox="-3 0 19 19"><path d="M11.665 7.915v1.31a5.26 5.26 0 0 1-1.514 3.694 5.2 5.2 0 0 1-1.641 1.126 5 5 0 0 1-1.456.384v1.899h2.312a.554.554 0 0 1 0 1.108H3.634a.554.554 0 0 1 0-1.108h2.312v-1.899a5 5 0 0 1-1.456-.384 5.2 5.2 0 0 1-1.641-1.126 5.26 5.26 0 0 1-1.514-3.695v-1.31a.554.554 0 1 1 1.109 0v1.31a4.13 4.13 0 0 0 1.195 2.917 3.99 3.99 0 0 0 5.722 0 4.13 4.13 0 0 0 1.195-2.917v-1.31a.554.554 0 1 1 1.109 0zM3.77 10.37a2.9 2.9 0 0 1-.233-1.146V4.738A2.9 2.9 0 0 1 3.77 3.58a3 3 0 0 1 1.59-1.59 2.9 2.9 0 0 1 1.158-.233 2.9 2.9 0 0 1 1.152.233 2.98 2.98 0 0 1 1.793 2.748l-.012 4.487a2.96 2.96 0 0 1-.856 2.09 3 3 0 0 1-.937.634 2.9 2.9 0 0 1-1.152.233 2.9 2.9 0 0 1-1.158-.233A2.96 2.96 0 0 1 3.77 10.37"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="800" height="800" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 6a5 5 0 0 1 5 5m.659 5.655L21 21m-2-10a8 8 0 1 1-16 0 8 8 0 0 1 16 0"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="800" height="800" fill="none" viewBox="0 0 24 24"><path fill="currentColor" d="M12 21a9 9 0 1 1 0-18 9 9 0 0 1 0 18m0-16.5a7.5 7.5 0 1 0 0 15 7.5 7.5 0 0 0 0-15"/><path fill="currentColor" d="M9 15.75a.74.74 0 0 1-.53-.22.75.75 0 0 1 0-1.06l6-6a.75.75 0 0 1 1.06 1.06l-6 6a.74.74 0 0 1-.53.22"/><path fill="currentColor" d="M15 15.75a.74.74 0 0 1-.53-.22l-6-6a.75.75 0 0 1 1.06-1.06l6 6a.75.75 0 0 1-.53 1.28"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="800" height="800" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16m-4 0-.27-.812c-.263-.787-.394-1.18-.637-1.471a2 2 0 0 0-.803-.578C13.939 3 13.524 3 12.695 3h-1.388c-.829 0-1.244 0-1.596.139a2 2 0 0 0-.803.578c-.243.29-.374.684-.636 1.471L8 6m10 0v10.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C15.72 21 14.88 21 13.2 21h-2.4c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C6 18.72 6 17.88 6 16.2V6m8 4v7m-4-7v7"/></svg>
@@ -0,0 +1,21 @@
1
+ export declare const SVGicons: {
2
+ alert: any;
3
+ 'arrow-down': any;
4
+ 'arrow-left': any;
5
+ 'arrow-right': any;
6
+ 'arrow-up': any;
7
+ bell: any;
8
+ calendar: any;
9
+ 'check-circle': any;
10
+ check: any;
11
+ 'exclamation-circle': any;
12
+ 'eye-slash': any;
13
+ eye: any;
14
+ 'file-attached': any;
15
+ 'infos-circle': any;
16
+ search: any;
17
+ times: any;
18
+ trash: any;
19
+ attachment: any;
20
+ micro: any;
21
+ };
@@ -0,0 +1,22 @@
1
+ //@ts-nocheck
2
+ export const SVGicons = {
3
+ alert: require('@trilogy-ds/assets/lib/icons/all/alert.svg'),
4
+ 'arrow-down': require('@trilogy-ds/assets/lib/icons/all/arrow-down.svg'),
5
+ 'arrow-left': require('@trilogy-ds/assets/lib/icons/all/arrow-left.svg'),
6
+ 'arrow-right': require('@trilogy-ds/assets/lib/icons/all/arrow-right.svg'),
7
+ 'arrow-up': require('@trilogy-ds/assets/lib/icons/all/arrow-up.svg'),
8
+ bell: require('@trilogy-ds/assets/lib/icons/all/bell.svg'),
9
+ calendar: require('@trilogy-ds/assets/lib/icons/all/calendar.svg'),
10
+ 'check-circle': require('@trilogy-ds/assets/lib/icons/all/check-circle.svg'),
11
+ check: require('@trilogy-ds/assets/lib/icons/all/check.svg'),
12
+ 'exclamation-circle': require('@trilogy-ds/assets/lib/icons/all/exclamation-circle.svg'),
13
+ 'eye-slash': require('@trilogy-ds/assets/lib/icons/all/eye-slash.svg'),
14
+ eye: require('@trilogy-ds/assets/lib/icons/all/eye.svg'),
15
+ 'file-attached': require('@trilogy-ds/assets/lib/icons/all/file-attached.svg'),
16
+ 'infos-circle': require('@trilogy-ds/assets/lib/icons/all/infos-circle.svg'),
17
+ search: require('@trilogy-ds/assets/lib/icons/all/search.svg'),
18
+ times: require('@trilogy-ds/assets/lib/icons/all/times.svg'),
19
+ trash: require('@trilogy-ds/assets/lib/icons/all/trash.svg'),
20
+ attachment: require('@trilogy-ds/assets/lib/icons/all/attachment.svg'),
21
+ micro: require('@trilogy-ds/assets/lib/icons/all/micro.svg'),
22
+ };
package/package.json ADDED
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "@trilogy-ds/assets",
3
+ "version": "0.0.1-alpha-prompt",
4
+ "description": "Trilogy assets include all Open Source Fonts & Icons",
5
+ "author": "Bouygues Telecom",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/BouyguesTelecom/trilogy",
9
+ "directory": "packages/assets"
10
+ },
11
+ "type": "module",
12
+ "module": "lib/index.js",
13
+ "files": [
14
+ "lib"
15
+ ],
16
+ "scripts": {
17
+ "optimise:icons": "svgo -f ./assets/icons/all -o ./lib/icons/all",
18
+ "build": "rm -rf lib && npm run optimise:icons && tsc -p . && cp -r ./assets/fonts/ ./lib/fonts/"
19
+ },
20
+ "license": "ISC",
21
+ "devDependencies": {
22
+ "@types/node": "^20.11.26",
23
+ "svgo": "^3.0.2",
24
+ "esbuild": "^0.20.1"
25
+ }
26
+ }