@nomosui/react 0.5.2 → 0.5.3
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/index.js +23 -9
- package/dist/mcp/bin.js +12 -10
- package/dist/types/lib/tone.d.ts +5 -3
- package/package.json +1 -1
- package/tokens/theme.css +6 -0
- package/tokens/tokens.generated.css +24 -0
- package/tokens/tokens.json +25 -7
- package/tokens/tokens.resource.json +12 -0
package/dist/index.js
CHANGED
|
@@ -37,9 +37,11 @@ var cn = (...inputs) => twMerge(clsx(inputs));
|
|
|
37
37
|
* statut choisit l'intention (« danger », « succès »), et c'est le cœur qui sait la
|
|
38
38
|
* rendre — l'app ne manipule plus un nom de couleur.
|
|
39
39
|
*
|
|
40
|
-
* Chaque ton lit
|
|
41
|
-
*
|
|
42
|
-
*
|
|
40
|
+
* Chaque ton lit trois emplacements sémantiques (`status-<ton>` pour l'accent, la
|
|
41
|
+
* bordure ; `status-<ton>-surface` pour le fond, **plein** — une carte qui flotte
|
|
42
|
+
* au-dessus du contenu ne doit pas laisser voir ce qui passe dessous ; et `status-<ton>-ink`
|
|
43
|
+
* pour l'encre) : c'est le token qui porte le mode, pas la classe, donc le cœur ne connaît
|
|
44
|
+
* jamais le mode (ADR 0004, ADR 0027).
|
|
43
45
|
*/
|
|
44
46
|
var TONES = [
|
|
45
47
|
"neutral",
|
|
@@ -52,12 +54,12 @@ var TONES = [
|
|
|
52
54
|
];
|
|
53
55
|
var toneClasses = {
|
|
54
56
|
neutral: "border-transparent bg-muted text-muted-foreground",
|
|
55
|
-
info: "border-status-info/30 bg-status-info
|
|
56
|
-
progress: "border-status-progress/30 bg-status-progress
|
|
57
|
-
attention: "border-status-attention/30 bg-status-attention
|
|
58
|
-
warning: "border-status-warning/30 bg-status-warning
|
|
59
|
-
danger: "border-status-danger/30 bg-status-danger
|
|
60
|
-
success: "border-status-success/30 bg-status-success
|
|
57
|
+
info: "border-status-info/30 bg-status-info-surface text-status-info-ink",
|
|
58
|
+
progress: "border-status-progress/30 bg-status-progress-surface text-status-progress-ink",
|
|
59
|
+
attention: "border-status-attention/30 bg-status-attention-surface text-status-attention-ink",
|
|
60
|
+
warning: "border-status-warning/30 bg-status-warning-surface text-status-warning-ink",
|
|
61
|
+
danger: "border-status-danger/30 bg-status-danger-surface text-status-danger-ink",
|
|
62
|
+
success: "border-status-success/30 bg-status-success-surface text-status-success-ink"
|
|
61
63
|
};
|
|
62
64
|
//#endregion
|
|
63
65
|
//#region src/components/alert/alert.tsx
|
|
@@ -5683,16 +5685,22 @@ var tokensResource = {
|
|
|
5683
5685
|
"--nomos-color-brand": "#00c9b1",
|
|
5684
5686
|
"--nomos-color-scrim": "0 0% 0% / 0.8",
|
|
5685
5687
|
"--nomos-color-status-info": "199 89% 48%",
|
|
5688
|
+
"--nomos-color-status-info-surface": "202 49% 14%",
|
|
5686
5689
|
"--nomos-color-status-info-ink": "198 93% 74%",
|
|
5687
5690
|
"--nomos-color-status-progress": "258 90% 66%",
|
|
5691
|
+
"--nomos-color-status-progress-surface": "256 30% 17%",
|
|
5688
5692
|
"--nomos-color-status-progress-ink": "255 92% 85%",
|
|
5689
5693
|
"--nomos-color-status-attention": "38 92% 50%",
|
|
5694
|
+
"--nomos-color-status-attention-surface": "36 45% 14%",
|
|
5690
5695
|
"--nomos-color-status-attention-ink": "46 97% 65%",
|
|
5691
5696
|
"--nomos-color-status-warning": "25 95% 53%",
|
|
5697
|
+
"--nomos-color-status-warning-surface": "22 42% 15%",
|
|
5692
5698
|
"--nomos-color-status-warning-ink": "31 97% 72%",
|
|
5693
5699
|
"--nomos-color-status-danger": "0 84% 60%",
|
|
5700
|
+
"--nomos-color-status-danger-surface": "354 33% 15%",
|
|
5694
5701
|
"--nomos-color-status-danger-ink": "0 94% 82%",
|
|
5695
5702
|
"--nomos-color-status-success": "160 84% 39%",
|
|
5703
|
+
"--nomos-color-status-success-surface": "166 40% 12%",
|
|
5696
5704
|
"--nomos-color-status-success-ink": "156 72% 67%",
|
|
5697
5705
|
"--nomos-radius-pill": "9999px",
|
|
5698
5706
|
"--nomos-radius-control": "0.625rem",
|
|
@@ -5755,16 +5763,22 @@ var tokensResource = {
|
|
|
5755
5763
|
"--nomos-color-brand": "#00c9b1",
|
|
5756
5764
|
"--nomos-color-scrim": "0 0% 0% / 0.8",
|
|
5757
5765
|
"--nomos-color-status-info": "199 89% 48%",
|
|
5766
|
+
"--nomos-color-status-info-surface": "199 82% 92%",
|
|
5758
5767
|
"--nomos-color-status-info-ink": "201 96% 32%",
|
|
5759
5768
|
"--nomos-color-status-progress": "258 90% 66%",
|
|
5769
|
+
"--nomos-color-status-progress-surface": "258 90% 95%",
|
|
5760
5770
|
"--nomos-color-status-progress-ink": "263 70% 50%",
|
|
5761
5771
|
"--nomos-color-status-attention": "38 92% 50%",
|
|
5772
|
+
"--nomos-color-status-attention-surface": "38 92% 93%",
|
|
5762
5773
|
"--nomos-color-status-attention-ink": "26 90% 37%",
|
|
5763
5774
|
"--nomos-color-status-warning": "25 95% 53%",
|
|
5775
|
+
"--nomos-color-status-warning-surface": "25 95% 93%",
|
|
5764
5776
|
"--nomos-color-status-warning-ink": "17 88% 40%",
|
|
5765
5777
|
"--nomos-color-status-danger": "0 84% 60%",
|
|
5778
|
+
"--nomos-color-status-danger-surface": "0 84% 94%",
|
|
5766
5779
|
"--nomos-color-status-danger-ink": "0 74% 42%",
|
|
5767
5780
|
"--nomos-color-status-success": "160 84% 39%",
|
|
5781
|
+
"--nomos-color-status-success-surface": "160 54% 91%",
|
|
5768
5782
|
"--nomos-color-status-success-ink": "161 94% 25%",
|
|
5769
5783
|
"--nomos-radius-pill": "9999px",
|
|
5770
5784
|
"--nomos-radius-control": "0.625rem",
|