@nadicodeai/ui 12.1.181 → 12.1.182
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platform-mark.d.ts","sourceRoot":"","sources":["../../src/components/platform-mark.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,WAAW,EAAE,KAAK,SAAS,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"platform-mark.d.ts","sourceRoot":"","sources":["../../src/components/platform-mark.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,WAAW,EAAE,KAAK,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAYhF,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAwB/B;;;;GAIG;AACH,QAAA,MAAM,SAAS;;;;;;;;;;;;CAYwB,CAAC;AAExC,KAAK,YAAY,GAAG,MAAM,OAAO,SAAS,CAAC;AAE3C,qFAAqF;AACrF,iBAAS,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,IAAI,YAAY,CAEtD;AAOD,KAAK,iBAAiB,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,GAAG,MAAM,GAAG,KAAK,CAAC,GAAG;IACtE,QAAQ,EAAE,YAAY,CAAC;IACvB,wEAAwE;IACxE,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,iBAAS,YAAY,CAAC,EAAE,QAAQ,EAAE,IAAS,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,qBAgBzE;AAED,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC;AACpC,YAAY,EAAE,iBAAiB,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -10,43 +10,25 @@ import windows from "@iconify-icons/logos/microsoft-windows-icon";
|
|
|
10
10
|
import slack from "@iconify-icons/logos/slack-icon";
|
|
11
11
|
import telegram from "@iconify-icons/logos/telegram";
|
|
12
12
|
import whatsapp from "@iconify-icons/logos/whatsapp-icon";
|
|
13
|
+
import { alveareMarkGeometry } from "@nadicodeai/design-system/assets/alveare-geometry";
|
|
13
14
|
import * as React from "react";
|
|
14
15
|
/**
|
|
15
|
-
* Alveare, nadicode's own chat, which no catalogue carries:
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* in the group's own units and boxed to the cells. Each cell keeps its identity
|
|
19
|
-
* colour, row by row from the top.
|
|
16
|
+
* Alveare, nadicode's own chat, which no catalogue carries: its mark, drawn from
|
|
17
|
+
* Alveare's geometry without the app icon's tile, boxed to the cells, each cell
|
|
18
|
+
* in its own token's colour.
|
|
20
19
|
*/
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
[
|
|
24
|
-
"M73.15 71.89L97.5 85.94L97.5 114.06L73.15 128.11L48.81 114.06L48.81 85.94Z",
|
|
25
|
-
"--nc-identity-arancio",
|
|
26
|
-
],
|
|
27
|
-
[
|
|
28
|
-
"M126.85 71.89L151.19 85.94L151.19 114.06L126.85 128.11L102.5 114.06L102.5 85.94Z",
|
|
29
|
-
"--nc-identity-verde",
|
|
30
|
-
],
|
|
31
|
-
[
|
|
32
|
-
"M46.31 118.39L70.65 132.44L70.65 160.56L46.31 174.61L21.96 160.56L21.96 132.44Z",
|
|
33
|
-
"--nc-identity-rosso",
|
|
34
|
-
],
|
|
35
|
-
[
|
|
36
|
-
"M100 118.39L124.35 132.44L124.35 160.56L100 174.61L75.65 160.56L75.65 132.44Z",
|
|
37
|
-
"--nc-identity-giallo",
|
|
38
|
-
],
|
|
39
|
-
[
|
|
40
|
-
"M153.69 118.39L178.04 132.44L178.04 160.56L153.69 174.61L129.35 160.56L129.35 132.44Z",
|
|
41
|
-
"--nc-identity-azzurro",
|
|
42
|
-
],
|
|
43
|
-
];
|
|
20
|
+
const alveareMark = alveareMarkGeometry((token) => `var(--nc-${token})`);
|
|
21
|
+
const [left, top, width, height] = alveareMark.viewBox.split(" ").map(Number);
|
|
44
22
|
const alveare = {
|
|
45
|
-
left
|
|
46
|
-
top
|
|
47
|
-
width
|
|
48
|
-
height
|
|
49
|
-
body:
|
|
23
|
+
left,
|
|
24
|
+
top,
|
|
25
|
+
width,
|
|
26
|
+
height,
|
|
27
|
+
body: alveareMark.nodes
|
|
28
|
+
.map(({ attributes }) => `<path ${Object.entries(attributes)
|
|
29
|
+
.map(([name, value]) => `${name}="${value}"`)
|
|
30
|
+
.join(" ")}/>`)
|
|
31
|
+
.join(""),
|
|
50
32
|
};
|
|
51
33
|
/**
|
|
52
34
|
* The platforms the products name, operating systems, messaging channels and
|
|
@@ -72,7 +54,7 @@ function isPlatform(name) {
|
|
|
72
54
|
}
|
|
73
55
|
/** A mark that declares no paint of its own is one silhouette, so it takes the text colour. */
|
|
74
56
|
function silhouette(icon) {
|
|
75
|
-
return !/\b(?:fill|stroke|stop-color)
|
|
57
|
+
return !/\b(?:fill|stroke|stop-color)=/.test(icon.body);
|
|
76
58
|
}
|
|
77
59
|
/**
|
|
78
60
|
* A platform's genuine mark: an operating system, a messaging channel or a sign-in provider.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nadicodeai/ui",
|
|
3
|
-
"version": "12.1.
|
|
3
|
+
"version": "12.1.182",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"imports": {
|
|
6
6
|
"#jsx": "./src/jsx/index.ts",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"@base-ui/react": "^1.9.0",
|
|
73
73
|
"@iconify-icons/logos": "^2.0.3",
|
|
74
74
|
"@iconify/react": "^6.0.2",
|
|
75
|
-
"@nadicodeai/design-system": "12.1.
|
|
75
|
+
"@nadicodeai/design-system": "12.1.182",
|
|
76
76
|
"@tanstack/react-table": "^9.3.1",
|
|
77
77
|
"@vgpu/wgsl": "0.6.0",
|
|
78
78
|
"class-variance-authority": "^0.7.1",
|