@hgdc/ui 0.53.0 → 0.54.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/dist/addresses.d.ts +3 -2
- package/dist/addresses.js +3 -2
- package/dist/family-svg.d.ts +1 -1
- package/dist/family-svg.js +3 -0
- package/dist/product-badge.js +1 -0
- package/dist/products.js +2 -0
- package/email-icons/manager.png +0 -0
- package/family/app/manager/apple-touch-icon.png +0 -0
- package/family/app/manager/favicon.ico +0 -0
- package/family/app/manager/favicon.svg +1 -0
- package/family/app/manager/icon-192.png +0 -0
- package/family/app/manager/icon-512.png +0 -0
- package/family/app/manager/icon-maskable-512.png +0 -0
- package/family/manager-dark.svg +1 -0
- package/family/manager.svg +1 -0
- package/family/tile/manager.svg +1 -0
- package/package.json +1 -1
- package/styles.css +6 -2
package/dist/addresses.d.ts
CHANGED
|
@@ -11,11 +11,12 @@
|
|
|
11
11
|
export declare const APP_ORIGIN = "https://app.hgdc.ch";
|
|
12
12
|
/**
|
|
13
13
|
* Produits servis sous `https://app.hgdc.ch/<mot>` (consoles relayées par la passerelle, ADR 0005).
|
|
14
|
-
* Account (fournisseur d'identité)
|
|
14
|
+
* Account et ID (fournisseur d'identité) gardent leur hôte ; Manager (organisations, ex-Account) a son backend dans
|
|
15
|
+
* l'instance `account`, mais sa console est relayée comme les autres (ADR 0015 de la famille). Status : la
|
|
15
16
|
* console seule, `status.hgdc.ch` garde les pages publiques et la console de secours. Vérifiée contre
|
|
16
17
|
* le manifeste privé de la famille (`famille check`) : un produit relayé s'ajoute ici et là.
|
|
17
18
|
*/
|
|
18
|
-
export declare const APP_PRODUCTS: readonly ["analytics", "mail", "host", "docs", "status", "iassistant", "portal"];
|
|
19
|
+
export declare const APP_PRODUCTS: readonly ["analytics", "mail", "host", "docs", "status", "iassistant", "portal", "manager"];
|
|
19
20
|
/** Vrai si le produit est servi sous `app.hgdc.ch`. */
|
|
20
21
|
export declare function isAppProduct(product: string): boolean;
|
|
21
22
|
/**
|
package/dist/addresses.js
CHANGED
|
@@ -11,11 +11,12 @@
|
|
|
11
11
|
export const APP_ORIGIN = "https://app.hgdc.ch";
|
|
12
12
|
/**
|
|
13
13
|
* Produits servis sous `https://app.hgdc.ch/<mot>` (consoles relayées par la passerelle, ADR 0005).
|
|
14
|
-
* Account (fournisseur d'identité)
|
|
14
|
+
* Account et ID (fournisseur d'identité) gardent leur hôte ; Manager (organisations, ex-Account) a son backend dans
|
|
15
|
+
* l'instance `account`, mais sa console est relayée comme les autres (ADR 0015 de la famille). Status : la
|
|
15
16
|
* console seule, `status.hgdc.ch` garde les pages publiques et la console de secours. Vérifiée contre
|
|
16
17
|
* le manifeste privé de la famille (`famille check`) : un produit relayé s'ajoute ici et là.
|
|
17
18
|
*/
|
|
18
|
-
export const APP_PRODUCTS = ["analytics", "mail", "host", "docs", "status", "iassistant", "portal"];
|
|
19
|
+
export const APP_PRODUCTS = ["analytics", "mail", "host", "docs", "status", "iassistant", "portal", "manager"];
|
|
19
20
|
/** Vrai si le produit est servi sous `app.hgdc.ch`. */
|
|
20
21
|
export function isAppProduct(product) {
|
|
21
22
|
return APP_PRODUCTS.includes(product.toLowerCase());
|
package/dist/family-svg.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Les produits de la H Collection qui ont une icône, par leur mot en minuscules. */
|
|
2
|
-
export declare const FAMILY_PRODUCTS: readonly ["account", "host", "mail", "portal", "status", "analytics", "docs", "iassistant", "id"];
|
|
2
|
+
export declare const FAMILY_PRODUCTS: readonly ["account", "host", "mail", "portal", "status", "analytics", "docs", "iassistant", "id", "manager"];
|
|
3
3
|
export type FamilyProduct = (typeof FAMILY_PRODUCTS)[number];
|
|
4
4
|
/** Vrai si le mot en minuscules (« host ») désigne un produit qui a une icône. */
|
|
5
5
|
export declare function isFamilyProduct(word: string): word is FamilyProduct;
|
package/dist/family-svg.js
CHANGED
|
@@ -10,6 +10,7 @@ export const FAMILY_PRODUCTS = [
|
|
|
10
10
|
"docs",
|
|
11
11
|
"iassistant",
|
|
12
12
|
"id",
|
|
13
|
+
"manager",
|
|
13
14
|
];
|
|
14
15
|
/** Vrai si le mot en minuscules (« host ») désigne un produit qui a une icône. */
|
|
15
16
|
export function isFamilyProduct(word) {
|
|
@@ -29,6 +30,7 @@ export const PRODUCT_BADGE_SVG = {
|
|
|
29
30
|
docs: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><svg x="0" y="0" width="64" height="64" viewBox="14 13 36 36"><defs><linearGradient id="g" x1="14" y1="14" x2="50" y2="50" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#0ec1dc"/><stop offset="1" stop-color="#0aa3c1"/></linearGradient></defs><path d="M26 13H46A3 3 0 0 1 49 16V43A3 3 0 0 1 46 46H26A3 3 0 0 1 23 43V16A3 3 0 0 1 26 13Z" fill="url(#g)" fill-opacity="0.22" fill-rule="evenodd"/><path d="M18 18H32V24.5A2.5 2.5 0 0 0 34.5 27H41V46A3 3 0 0 1 38 49H18A3 3 0 0 1 15 46V21A3 3 0 0 1 18 18ZM21.3 33H34.7A1.3 1.3 0 0 1 36 34.3V34.300000000000004A1.3 1.3 0 0 1 34.7 35.6H21.3A1.3 1.3 0 0 1 20 34.300000000000004V34.3A1.3 1.3 0 0 1 21.3 33ZM21.3 39H29.7A1.3 1.3 0 0 1 31 40.3V40.300000000000004A1.3 1.3 0 0 1 29.7 41.6H21.3A1.3 1.3 0 0 1 20 40.300000000000004V40.3A1.3 1.3 0 0 1 21.3 39Z" fill="url(#g)" fill-rule="evenodd"/><path d="M32 18L41 27H34.5A2.5 2.5 0 0 1 32 24.5Z" fill="url(#g)" fill-opacity="0.45" fill-rule="evenodd"/></svg></svg>',
|
|
30
31
|
iassistant: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><svg x="0" y="0" width="64" height="64" viewBox="16 18 34 34"><defs><linearGradient id="g" x1="14" y1="14" x2="50" y2="50" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#d946ef"/><stop offset="1" stop-color="#c026d3"/></linearGradient></defs><path d="M24 18H38A6 6 0 0 1 44 24V32A6 6 0 0 1 38 38H27L21 43V37.2A6 6 0 0 1 18 32V24A6 6 0 0 1 24 18Z" fill="url(#g)" fill-opacity="0.4" fill-rule="evenodd"/><path d="M29 27H43A6 6 0 0 1 49 33V41A6 6 0 0 1 43 47V51.5L37.5 47H29A6 6 0 0 1 23 41V33A6 6 0 0 1 29 27ZM28.1 37A1.9 1.9 0 1 0 31.9 37A1.9 1.9 0 1 0 28.1 37ZM34.1 37A1.9 1.9 0 1 0 37.9 37A1.9 1.9 0 1 0 34.1 37ZM40.1 37A1.9 1.9 0 1 0 43.9 37A1.9 1.9 0 1 0 40.1 37Z" fill="url(#g)" fill-rule="evenodd"/></svg></svg>',
|
|
31
32
|
id: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><svg x="0" y="0" width="64" height="64" viewBox="18 18 48 48"><defs><linearGradient id="g" x1="18" y1="18" x2="66" y2="66" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ff2a2a"/><stop offset="1" stop-color="#e60000"/></linearGradient></defs><path d="M28.5 18H55.5A10.5 10.5 0 0 1 66 28.5V55.5A10.5 10.5 0 0 1 55.5 66H28.5A10.5 10.5 0 0 1 18 55.5V28.5A10.5 10.5 0 0 1 28.5 18Z" fill="url(#g)"/><path d="M37.8 28L46.2 28L46.2 37.8L56 37.8L56 46.2L46.2 46.2L46.2 56L37.8 56L37.8 46.2L28 46.2L28 37.8L37.8 37.8Z" transform="translate(1.9 1.9)" fill="#fff" fill-opacity="0.4"/><path d="M37.8 28L46.2 28L46.2 37.8L56 37.8L56 46.2L46.2 46.2L46.2 56L37.8 56L37.8 46.2L28 46.2L28 37.8L37.8 37.8Z" transform="translate(-1.9 -1.9)" fill="#fff"/></svg></svg>',
|
|
33
|
+
manager: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><svg x="0" y="0" width="64" height="64" viewBox="14 16.5 36 36"><defs><linearGradient id="g" x1="14" y1="14" x2="50" y2="50" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ff6a3d"/><stop offset="1" stop-color="#fc582e"/></linearGradient></defs><path d="M17.2 27.5A3.8 3.8 0 1 0 24.8 27.5A3.8 3.8 0 1 0 17.2 27.5ZM14 44.5C14 39.5 17 36 21 36C25 36 28 39.5 28 44.5ZM39.2 27.5A3.8 3.8 0 1 0 46.8 27.5A3.8 3.8 0 1 0 39.2 27.5ZM36 44.5C36 39.5 39 36 43 36C47 36 50 39.5 50 44.5Z" fill="url(#g)" fill-opacity="0.45" fill-rule="evenodd"/><path d="M26.5 25A5.5 5.5 0 1 0 37.5 25A5.5 5.5 0 1 0 26.5 25ZM21 47.5C21 40.5 26 35.5 32 35.5C38 35.5 43 40.5 43 47.5A2.5 2.5 0 0 1 40.5 50H23.5A2.5 2.5 0 0 1 21 47.5Z" fill="url(#g)" fill-rule="evenodd"/></svg></svg>',
|
|
32
34
|
};
|
|
33
35
|
/**
|
|
34
36
|
* Empreinte de chaque icône d'e-mail (`email-icons/<mot>.png`), ajoutée à son adresse : un client
|
|
@@ -44,6 +46,7 @@ export const EMAIL_ICON_VERSION = {
|
|
|
44
46
|
docs: "77f11f0b",
|
|
45
47
|
iassistant: "2b9ed0e0",
|
|
46
48
|
id: "4c663fa1",
|
|
49
|
+
manager: "0923b87a",
|
|
47
50
|
};
|
|
48
51
|
/** SVG du H « Double », la marque de la H Collection, sans fond (`family/hcollection-icon(-dark).svg`). */
|
|
49
52
|
export const FAMILY_MARK_SVG = {
|
package/dist/product-badge.js
CHANGED
|
@@ -16,6 +16,7 @@ export const PRODUCT_GRADIENT = {
|
|
|
16
16
|
docs: { from: "#0ec1dc", to: "#0aa3c1" },
|
|
17
17
|
iassistant: { from: "#d946ef", to: "#c026d3" },
|
|
18
18
|
id: { from: "#ff2a2a", to: "#e60000" },
|
|
19
|
+
manager: { from: "#ff6a3d", to: "#fc582e" },
|
|
19
20
|
};
|
|
20
21
|
// En image plutôt qu'en SVG en ligne : chaque icône garde ses identifiants de dégradé pour elle,
|
|
21
22
|
// plusieurs icônes dans une même page ne se marchent pas dessus.
|
package/dist/products.js
CHANGED
|
@@ -5,6 +5,7 @@ import BubbleChatIcon from "@hugeicons/core-free-icons/BubbleChatIcon";
|
|
|
5
5
|
import Briefcase01Icon from "@hugeicons/core-free-icons/Briefcase01Icon";
|
|
6
6
|
import Mail01Icon from "@hugeicons/core-free-icons/Mail01Icon";
|
|
7
7
|
import Rocket01Icon from "@hugeicons/core-free-icons/Rocket01Icon";
|
|
8
|
+
import UserGroupIcon from "@hugeicons/core-free-icons/UserGroupIcon";
|
|
8
9
|
import UserCircleIcon from "@hugeicons/core-free-icons/UserCircleIcon";
|
|
9
10
|
import { APP_ORIGIN, APP_PRODUCTS, isAppProduct, soloOrigin } from "./addresses.js";
|
|
10
11
|
import { HGDC_EMAIL_ACCENT } from "./email-palette.js";
|
|
@@ -79,6 +80,7 @@ export const HGDC_PRODUCTS = [
|
|
|
79
80
|
product("Docs", "Ta documentation en ligne, avec un assistant qui y répond.", BookOpen01Icon, "live"),
|
|
80
81
|
product("IAssistant", "Une bulle de chat IA sur ton site, qui répond à tes visiteurs.", BubbleChatIcon, "preview"),
|
|
81
82
|
id(),
|
|
83
|
+
product("Manager", "Tes organisations, leurs membres et leurs rôles.", UserGroupIcon, "live"),
|
|
82
84
|
];
|
|
83
85
|
/** ID, le compte de connexion ouvert aux applications tierces : pas d'entrée `/auth/hgdc`, sa racine. */
|
|
84
86
|
function id() {
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><style>.d{display:none}@media (prefers-color-scheme:dark){.l{display:none}.d{display:inline}}</style><g class="l"><svg x="2.56" y="2.56" width="58.88" height="58.88" viewBox="14 16.5 36 36"><defs><linearGradient id="lg" x1="14" y1="14" x2="50" y2="50" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ff6a3d"/><stop offset="1" stop-color="#fc582e"/></linearGradient></defs><path d="M17.2 27.5A3.8 3.8 0 1 0 24.8 27.5A3.8 3.8 0 1 0 17.2 27.5ZM14 44.5C14 39.5 17 36 21 36C25 36 28 39.5 28 44.5ZM39.2 27.5A3.8 3.8 0 1 0 46.8 27.5A3.8 3.8 0 1 0 39.2 27.5ZM36 44.5C36 39.5 39 36 43 36C47 36 50 39.5 50 44.5Z" fill="url(#lg)" fill-opacity="0.45" fill-rule="evenodd"/><path d="M26.5 25A5.5 5.5 0 1 0 37.5 25A5.5 5.5 0 1 0 26.5 25ZM21 47.5C21 40.5 26 35.5 32 35.5C38 35.5 43 40.5 43 47.5A2.5 2.5 0 0 1 40.5 50H23.5A2.5 2.5 0 0 1 21 47.5Z" fill="url(#lg)" fill-rule="evenodd"/></svg></g><g class="d"><svg x="2.56" y="2.56" width="58.88" height="58.88" viewBox="14 16.5 36 36"><defs><linearGradient id="dg" x1="14" y1="14" x2="50" y2="50" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ff9777"/><stop offset="1" stop-color="#ff6a3d"/></linearGradient></defs><path d="M17.2 27.5A3.8 3.8 0 1 0 24.8 27.5A3.8 3.8 0 1 0 17.2 27.5ZM14 44.5C14 39.5 17 36 21 36C25 36 28 39.5 28 44.5ZM39.2 27.5A3.8 3.8 0 1 0 46.8 27.5A3.8 3.8 0 1 0 39.2 27.5ZM36 44.5C36 39.5 39 36 43 36C47 36 50 39.5 50 44.5Z" fill="url(#dg)" fill-opacity="0.64" fill-rule="evenodd"/><path d="M26.5 25A5.5 5.5 0 1 0 37.5 25A5.5 5.5 0 1 0 26.5 25ZM21 47.5C21 40.5 26 35.5 32 35.5C38 35.5 43 40.5 43 47.5A2.5 2.5 0 0 1 40.5 50H23.5A2.5 2.5 0 0 1 21 47.5Z" fill="url(#dg)" fill-rule="evenodd"/></svg></g></svg>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="11 11 42 42"><defs><linearGradient id="g" x1="14" y1="14" x2="50" y2="50" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ff9777"/><stop offset="1" stop-color="#ff6a3d"/></linearGradient></defs><path d="M17.2 27.5A3.8 3.8 0 1 0 24.8 27.5A3.8 3.8 0 1 0 17.2 27.5ZM14 44.5C14 39.5 17 36 21 36C25 36 28 39.5 28 44.5ZM39.2 27.5A3.8 3.8 0 1 0 46.8 27.5A3.8 3.8 0 1 0 39.2 27.5ZM36 44.5C36 39.5 39 36 43 36C47 36 50 39.5 50 44.5Z" fill="url(#g)" fill-opacity="0.64" fill-rule="evenodd"/><path d="M26.5 25A5.5 5.5 0 1 0 37.5 25A5.5 5.5 0 1 0 26.5 25ZM21 47.5C21 40.5 26 35.5 32 35.5C38 35.5 43 40.5 43 47.5A2.5 2.5 0 0 1 40.5 50H23.5A2.5 2.5 0 0 1 21 47.5Z" fill="url(#g)" fill-rule="evenodd"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="11 11 42 42"><defs><linearGradient id="g" x1="14" y1="14" x2="50" y2="50" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ff6a3d"/><stop offset="1" stop-color="#fc582e"/></linearGradient></defs><path d="M17.2 27.5A3.8 3.8 0 1 0 24.8 27.5A3.8 3.8 0 1 0 17.2 27.5ZM14 44.5C14 39.5 17 36 21 36C25 36 28 39.5 28 44.5ZM39.2 27.5A3.8 3.8 0 1 0 46.8 27.5A3.8 3.8 0 1 0 39.2 27.5ZM36 44.5C36 39.5 39 36 43 36C47 36 50 39.5 50 44.5Z" fill="url(#g)" fill-opacity="0.45" fill-rule="evenodd"/><path d="M26.5 25A5.5 5.5 0 1 0 37.5 25A5.5 5.5 0 1 0 26.5 25ZM21 47.5C21 40.5 26 35.5 32 35.5C38 35.5 43 40.5 43 47.5A2.5 2.5 0 0 1 40.5 50H23.5A2.5 2.5 0 0 1 21 47.5Z" fill="url(#g)" fill-rule="evenodd"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><svg x="0" y="0" width="64" height="64" viewBox="14 16.5 36 36"><defs><linearGradient id="g" x1="14" y1="14" x2="50" y2="50" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ff6a3d"/><stop offset="1" stop-color="#fc582e"/></linearGradient></defs><path d="M17.2 27.5A3.8 3.8 0 1 0 24.8 27.5A3.8 3.8 0 1 0 17.2 27.5ZM14 44.5C14 39.5 17 36 21 36C25 36 28 39.5 28 44.5ZM39.2 27.5A3.8 3.8 0 1 0 46.8 27.5A3.8 3.8 0 1 0 39.2 27.5ZM36 44.5C36 39.5 39 36 43 36C47 36 50 39.5 50 44.5Z" fill="url(#g)" fill-opacity="0.45" fill-rule="evenodd"/><path d="M26.5 25A5.5 5.5 0 1 0 37.5 25A5.5 5.5 0 1 0 26.5 25ZM21 47.5C21 40.5 26 35.5 32 35.5C38 35.5 43 40.5 43 47.5A2.5 2.5 0 0 1 40.5 50H23.5A2.5 2.5 0 0 1 21 47.5Z" fill="url(#g)" fill-rule="evenodd"/></svg></svg>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hgdc/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.54.0",
|
|
4
4
|
"description": "Interface de la H Collection : jetons de la DA, thèmes, polices et composants.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"homepage": "https://github.com/hugogebel-boop/hgdc-kit/tree/main/packages/ui#readme",
|
package/styles.css
CHANGED
|
@@ -299,6 +299,8 @@
|
|
|
299
299
|
--product-iassistant-to: #c026d3;
|
|
300
300
|
--product-id-from: #ff2a2a;
|
|
301
301
|
--product-id-to: #e60000;
|
|
302
|
+
--product-manager-from: #ff6a3d;
|
|
303
|
+
--product-manager-to: #fc582e;
|
|
302
304
|
--glow-blue: #2c78fd;
|
|
303
305
|
--glow-violet: #7343fe;
|
|
304
306
|
--glow-pink: #fe5292;
|
|
@@ -865,7 +867,8 @@
|
|
|
865
867
|
:root[data-hgdc-product="analytics"] [data-slot="shell-frame"] [data-product="analytics"],
|
|
866
868
|
:root[data-hgdc-product="docs"] [data-slot="shell-frame"] [data-product="docs"],
|
|
867
869
|
:root[data-hgdc-product="iassistant"] [data-slot="shell-frame"] [data-product="iassistant"],
|
|
868
|
-
:root[data-hgdc-product="id"] [data-slot="shell-frame"] [data-product="id"]
|
|
870
|
+
:root[data-hgdc-product="id"] [data-slot="shell-frame"] [data-product="id"],
|
|
871
|
+
:root[data-hgdc-product="manager"] [data-slot="shell-frame"] [data-product="manager"] {
|
|
869
872
|
display: contents;
|
|
870
873
|
}
|
|
871
874
|
:root[data-hgdc-product="account"] [data-slot="shell-frame-rail"] [data-product="account"],
|
|
@@ -876,7 +879,8 @@
|
|
|
876
879
|
:root[data-hgdc-product="analytics"] [data-slot="shell-frame-rail"] [data-product="analytics"],
|
|
877
880
|
:root[data-hgdc-product="docs"] [data-slot="shell-frame-rail"] [data-product="docs"],
|
|
878
881
|
:root[data-hgdc-product="iassistant"] [data-slot="shell-frame-rail"] [data-product="iassistant"],
|
|
879
|
-
:root[data-hgdc-product="id"] [data-slot="shell-frame-rail"] [data-product="id"]
|
|
882
|
+
:root[data-hgdc-product="id"] [data-slot="shell-frame-rail"] [data-product="id"],
|
|
883
|
+
:root[data-hgdc-product="manager"] [data-slot="shell-frame-rail"] [data-product="manager"] {
|
|
880
884
|
display: flex;
|
|
881
885
|
background: var(--shell-active);
|
|
882
886
|
color: var(--shell-foreground);
|