@mlola-ui/tokens 1.0.13 → 1.1.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.
@@ -1513,6 +1513,7 @@ button.ml-breadcrumb-link {
1513
1513
  .ml-button {
1514
1514
  position: relative;
1515
1515
  display: inline-flex;
1516
+ max-width: 100%;
1516
1517
  min-height: var(--ml-control-md);
1517
1518
  align-items: center;
1518
1519
  justify-content: center;
@@ -1528,7 +1529,6 @@ button.ml-breadcrumb-link {
1528
1529
  line-height: 1;
1529
1530
  letter-spacing: -.006em;
1530
1531
  text-decoration: none;
1531
- white-space: nowrap;
1532
1532
  cursor: pointer;
1533
1533
  user-select: none;
1534
1534
  -webkit-tap-highlight-color: transparent;
@@ -1649,10 +1649,22 @@ button.ml-breadcrumb-link {
1649
1649
  padding: 0;
1650
1650
  }
1651
1651
 
1652
+ /* A label too long for the space wraps onto balanced lines instead of
1653
+ spilling out. The taller line height is taken back by the margins, so a
1654
+ one-line button is exactly as tall as before. */
1652
1655
  .ml-button-label {
1653
1656
  display: inline-flex;
1654
1657
  align-items: center;
1655
1658
  gap: var(--ml-space-1-5);
1659
+ margin-block: -.1em;
1660
+ line-height: 1.2;
1661
+ text-align: center;
1662
+ text-wrap: balance;
1663
+ }
1664
+
1665
+ .ml-button[data-width="full"] {
1666
+ display: flex;
1667
+ width: 100%;
1656
1668
  }
1657
1669
 
1658
1670
  .ml-button[data-state="success"] {
@@ -3493,13 +3505,16 @@ button.ml-breadcrumb-link {
3493
3505
  font-size: var(--ml-type-md);
3494
3506
  }
3495
3507
 
3508
+ /* A field that is a button or a group says it is invalid with data-invalid: aria-invalid belongs to inputs. */
3496
3509
  .ml-input-field[data-invalid] .ml-input,
3497
- .ml-input[aria-invalid="true"] {
3510
+ .ml-input[aria-invalid="true"],
3511
+ .ml-input[data-invalid] {
3498
3512
  border-color: var(--ml-danger);
3499
3513
  }
3500
3514
 
3501
3515
  .ml-input-field[data-invalid] .ml-input:focus,
3502
- .ml-input[aria-invalid="true"]:focus {
3516
+ .ml-input[aria-invalid="true"]:focus,
3517
+ .ml-input[data-invalid]:focus {
3503
3518
  box-shadow: 0 0 0 3px color-mix(in oklab,var(--ml-danger) 20%,transparent);
3504
3519
  }
3505
3520
 
@@ -69,7 +69,7 @@
69
69
  --ml-font-sans: var(--font-inter, "Inter"), ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
70
70
  --ml-font-display: var(--font-inter, "Inter"), ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
71
71
  --ml-font-mono: var(--font-jetbrains, "JetBrains Mono"), ui-monospace, "SFMono-Regular", Consolas, monospace;
72
- --ml-display-weight: 742;
72
+ --ml-display-weight: 700;
73
73
  --ml-body-leading: 1.495;
74
74
  --ml-tracking: -0.0088em;
75
75
  --ml-icon-stroke: 1.974;
@@ -235,7 +235,7 @@
235
235
  --ml-font-sans: var(--font-inter, "Inter"), ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
236
236
  --ml-font-display: var(--font-newsreader, "Newsreader"), "Iowan Old Style", Georgia, serif;
237
237
  --ml-font-mono: var(--font-jetbrains, "JetBrains Mono"), ui-monospace, "SFMono-Regular", Consolas, monospace;
238
- --ml-display-weight: 828;
238
+ --ml-display-weight: 800;
239
239
  --ml-body-leading: 1.536;
240
240
  --ml-tracking: -0.0133em;
241
241
  --ml-icon-stroke: 1.687;
@@ -399,7 +399,7 @@
399
399
  --ml-font-sans: var(--font-jetbrains, "JetBrains Mono"), ui-monospace, "SFMono-Regular", Consolas, monospace;
400
400
  --ml-font-display: var(--font-jetbrains, "JetBrains Mono"), ui-monospace, "SFMono-Regular", Consolas, monospace;
401
401
  --ml-font-mono: var(--font-jetbrains, "JetBrains Mono"), ui-monospace, "SFMono-Regular", Consolas, monospace;
402
- --ml-display-weight: 723;
402
+ --ml-display-weight: 700;
403
403
  --ml-body-leading: 1.47;
404
404
  --ml-tracking: -0.0076em;
405
405
  --ml-icon-stroke: 2.049;
@@ -563,7 +563,7 @@
563
563
  --ml-font-sans: var(--font-inter, "Inter"), ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
564
564
  --ml-font-display: var(--font-inter, "Inter"), ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
565
565
  --ml-font-mono: var(--font-jetbrains, "JetBrains Mono"), ui-monospace, "SFMono-Regular", Consolas, monospace;
566
- --ml-display-weight: 782;
566
+ --ml-display-weight: 800;
567
567
  --ml-body-leading: 1.558;
568
568
  --ml-tracking: -0.009em;
569
569
  --ml-icon-stroke: 1.736;
@@ -727,7 +727,7 @@
727
727
  --ml-font-sans: var(--font-inter, "Inter"), ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
728
728
  --ml-font-display: var(--font-inter, "Inter"), ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
729
729
  --ml-font-mono: var(--font-jetbrains, "JetBrains Mono"), ui-monospace, "SFMono-Regular", Consolas, monospace;
730
- --ml-display-weight: 792;
730
+ --ml-display-weight: 800;
731
731
  --ml-body-leading: 1.541;
732
732
  --ml-tracking: -0.011em;
733
733
  --ml-icon-stroke: 1.834;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mlola-ui/tokens",
3
- "version": "1.0.13",
3
+ "version": "1.1.0",
4
4
  "description": "Stable CSS entry for the framework-free Mlola UI design system",
5
5
  "main": "tokens.css",
6
6
  "sideEffects": [
package/tokens.json CHANGED
@@ -145,6 +145,7 @@
145
145
  "color": {
146
146
  "primary": "oklch(0.21 0.006 286)",
147
147
  "primaryDark": null,
148
+ "primaryForeground": "auto",
148
149
  "neutral": {
149
150
  "hue": 286,
150
151
  "chroma": 0.004
@@ -1187,6 +1188,7 @@
1187
1188
  "color": {
1188
1189
  "primary": "oklch(0.55 0.16 58)",
1189
1190
  "primaryDark": "oklch(0.75 0.16 68)",
1191
+ "primaryForeground": "auto",
1190
1192
  "neutral": {
1191
1193
  "hue": 80,
1192
1194
  "chroma": 0.016
@@ -2232,6 +2234,7 @@
2232
2234
  "color": {
2233
2235
  "primary": "oklch(0.22 0.01 240)",
2234
2236
  "primaryDark": "oklch(0.78 0.15 210)",
2237
+ "primaryForeground": "auto",
2235
2238
  "neutral": {
2236
2239
  "hue": 240,
2237
2240
  "chroma": 0.004
@@ -3277,6 +3280,7 @@
3277
3280
  "color": {
3278
3281
  "primary": "oklch(0.55 0.24 285)",
3279
3282
  "primaryDark": "oklch(0.75 0.2 285)",
3283
+ "primaryForeground": "auto",
3280
3284
  "neutral": {
3281
3285
  "hue": 260,
3282
3286
  "chroma": 0.018
@@ -4322,6 +4326,7 @@
4322
4326
  "color": {
4323
4327
  "primary": "oklch(0.5 0.14 150)",
4324
4328
  "primaryDark": "oklch(0.72 0.15 150)",
4329
+ "primaryForeground": "auto",
4325
4330
  "neutral": {
4326
4331
  "hue": 135,
4327
4332
  "chroma": 0.018