@atomic-ui/theme 0.13.1 → 0.14.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.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * The typefaces of Impakt's redesign, @atomic-ui/theme version 0.13.1.
2
+ * The typefaces of Impakt's redesign, @atomic-ui/theme version 0.14.0.
3
3
  * Archivo, IBM Plex Mono and Kalam, Latin, WOFF2, licensed under the SIL Open Font License 1.1.
4
4
  * The licences are fonts/OFL-Archivo.txt, fonts/OFL-IBM-Plex-Mono.txt and fonts/OFL-Kalam.txt.
5
5
  *
package/dist/index.html CHANGED
@@ -13,8 +13,8 @@
13
13
  .swatch { border: 1px solid var(--ik-line); border-radius: var(--ik-radius-md); overflow: hidden; background: var(--ik-surface-card); font-size: var(--ik-text-xs); }
14
14
  .swatch i { display: block; height: 52px; }
15
15
  .swatch span { display: block; padding: var(--ik-space-2) var(--ik-space-3); }
16
- .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--ik-space-4); }
17
- @media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }
16
+ .grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ik-space-4); }
17
+ @media (max-width: 640px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }
18
18
  .ramp p { margin: 0 0 var(--ik-space-2); }
19
19
  </style>
20
20
  </head>
@@ -189,6 +189,15 @@
189
189
  </div>
190
190
  </section>
191
191
 
192
+ <section aria-labelledby="h-stack">
193
+ <h2 id="h-stack">A column of cards</h2>
194
+ <p>The same class on a table is the stacking table above, which stays a table that fills its card above a phone's width.</p>
195
+ <div class="ik-stack">
196
+ <div class="card">The first card in the column.</div>
197
+ <div class="card">The second, 12px under it.</div>
198
+ </div>
199
+ </section>
200
+
192
201
  <section aria-labelledby="h-board">
193
202
  <h2 id="h-board">Board</h2>
194
203
  <div class="ik-board">
package/dist/theme.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Impakt product theme, @atomic-ui/theme version 0.13.1.
2
+ * Impakt product theme, @atomic-ui/theme version 0.14.0.
3
3
  * https://github.com/matthill8286/impkt-design-system/tree/main/packages/theme
4
4
  *
5
5
  * Generated from the Impakt brand inputs by @atomic-ui/design-tokens. Do not edit this file:
@@ -363,6 +363,8 @@
363
363
  --impakt-field-label-font: "IBM Plex Mono", "ui-monospace", "SFMono-Regular", "Menlo", "Consolas", "monospace", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
364
364
  --impakt-field-label-weight: 400;
365
365
  --impakt-field-label-space: 8px;
366
+ --impakt-field-resize: none;
367
+ --impakt-field-sizing: content;
366
368
  --impakt-select-appearance: none;
367
369
  --impakt-select-caret: block;
368
370
  --impakt-select-padding-end: 36px;
@@ -392,10 +394,13 @@
392
394
  --impakt-tile-lg-label-transform: none;
393
395
  --impakt-tile-caption-line-height: 1.45;
394
396
  --impakt-card-edge: 100%;
397
+ --impakt-stage-tag-radius: 3px;
398
+ --impakt-journey-margin-note: none;
395
399
  --impakt-filter-chip-height: 35px;
396
400
  --impakt-filter-chip-weight: 400;
397
401
  --impakt-filter-chip-edge: 100%;
398
402
  --impakt-chip-outlined-tracking: 0em;
403
+ --impakt-chip-outlined-edge: 100%;
399
404
  --impakt-dialog-edge-width: 1px;
400
405
  --impakt-shadow-dialog: none;
401
406
  --impakt-dialog-backdrop: rgb(17 17 17 / 0.5);
@@ -424,6 +429,27 @@
424
429
  --impakt-accordion-answer-ink: 0%;
425
430
  --impakt-accordion-answer-line-height: 1.6;
426
431
  --impakt-accordion-answer-width: 48rem;
432
+ --impakt-motion-reveal-mode: once;
433
+ --impakt-motion-reveal-arrive: cubic-bezier(0.22, 1, 0.36, 1);
434
+ --impakt-motion-reveal-shape: cubic-bezier(0.65, 0, 0.35, 1);
435
+ --impakt-motion-reveal-stagger: 60ms;
436
+ --impakt-motion-reveal-select-duration: 260ms;
437
+ --impakt-motion-reveal-line-duration: 640ms;
438
+ --impakt-motion-reveal-type-duration: 240ms;
439
+ --impakt-motion-reveal-drop-duration: 420ms;
440
+ --impakt-motion-reveal-drop-distance: 12px;
441
+ --impakt-motion-reveal-count-duration: 900ms;
442
+ --impakt-motion-reveal-mark-duration: 180ms;
443
+ --impakt-motion-reveal-arrow-distance: 4px;
444
+ --impakt-motion-reveal-arrow-duration: 180ms;
445
+ --impakt-motion-reveal-arrow-easing: cubic-bezier(0.22, 1, 0.36, 1);
446
+ --impakt-motion-reveal-link-distance: 4px;
447
+ --impakt-motion-reveal-link-duration: 180ms;
448
+ --impakt-motion-reveal-link-easing: cubic-bezier(0.22, 1, 0.36, 1);
449
+ --impakt-motion-reveal-wipe-from: 0;
450
+ --impakt-motion-reveal-wipe-duration: 180ms;
451
+ --impakt-motion-reveal-wipe-easing: cubic-bezier(0.22, 1, 0.36, 1);
452
+ --impakt-motion-reveal-lead: 60ms;
427
453
  }
428
454
 
429
455
  .impakt-page {
@@ -969,7 +995,9 @@ input:not([type="checkbox"], [type="radio"], [type="file"], [type="range"], [typ
969
995
  :where(select:not([multiple], [size])):disabled { cursor: not-allowed; }
970
996
  /* Forced colours drop a drawn gradient, so there the browser draws its own arrow, in the system's colours. */
971
997
  @media (forced-colors: active) { :where(select:not([multiple], [size])) { appearance: auto; -webkit-appearance: auto; background-image: none; } }
972
- .ik-field { display: grid; gap: 8px; margin-bottom: var(--ik-space-4); }
998
+ /* A field can be narrower than its control's own width, such as a file input's, so its box shrinks to fit the column
999
+ and never widens the page at 320px (#77). */
1000
+ .ik-field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-bottom: var(--ik-space-4); min-width: 0; }
973
1001
  /*
974
1002
  * Fields side by side keep their boxes on one line, as G2 does (37:419), when a label wraps to two lines or has a hint:
975
1003
  * each field sinks to the foot of its row. .ik-fields is the row; a product's own .grid of label-and-field cells gets
@@ -1133,6 +1161,22 @@ input:not([type="checkbox"], [type="radio"], [type="file"], [type="range"], [typ
1133
1161
  }
1134
1162
  }
1135
1163
 
1164
+ /* ------------------------------------------------- reveal once (0.14.0) */
1165
+ /* The reveal set (impkt-web#51) for a page's own markup: what a page marks with data-reveal draws itself in once, as it
1166
+ is reached, when @atomic-ui/ui's startReveal marks it data-motion. Nothing here applies without that mark, so with no
1167
+ script and with reduced motion the page is as it was drawn. "type" types a mono label in: all its words are in the
1168
+ page from the start, and only how much of them shows changes. "drop" drops each child 12px into place, one after
1169
+ another. "count" counts the first number in its words up, drawn over the words, which stay the ones a screen reader
1170
+ reads. The blocks carry their own. */
1171
+ [data-motion="armed"], [data-motion="armed"] > *, [data-motion="armed"]::after { animation-play-state: paused !important; }
1172
+ [data-reveal~="type"][data-motion] { animation: ik-reveal-type var(--impakt-motion-reveal-type-duration, 240ms) var(--impakt-motion-reveal-arrive, cubic-bezier(0.22, 1, 0.36, 1)) var(--ik-reveal-delay, 0ms) both; }
1173
+ [data-reveal~="drop"][data-motion] > * { animation: ik-reveal-drop var(--impakt-motion-reveal-drop-duration, 420ms) var(--impakt-motion-reveal-arrive, cubic-bezier(0.22, 1, 0.36, 1)) calc(var(--ik-reveal-delay, 0ms) + var(--ik-reveal-i, 0) * var(--impakt-motion-reveal-stagger, 60ms)) both; }
1174
+ [data-ik-count][data-count] { position: relative; -webkit-text-fill-color: transparent; }
1175
+ [data-ik-count][data-count]::after { content: attr(data-count); content: attr(data-count) / ""; position: absolute; inset: 0; -webkit-text-fill-color: currentColor; white-space: nowrap; pointer-events: none; }
1176
+ @keyframes ik-reveal-type { from { clip-path: inset(-4px 100% -4px -4px); } to { clip-path: inset(-4px -4px -4px -4px); } }
1177
+ @keyframes ik-reveal-drop { from { translate: 0 calc(-1 * var(--impakt-motion-reveal-drop-distance, 12px)); opacity: 0; } }
1178
+ @media (prefers-reduced-motion: reduce) { [data-motion], [data-motion] > * { animation: none !important; } }
1179
+
1136
1180
  /* --------------------------------------------------------------- header overflow (0.3.0) */
1137
1181
  /* When the controls on the right are wide, the product name shortens with an ellipsis
1138
1182
  instead of running under them, and the controls stay on one row. */
@@ -1397,8 +1441,9 @@ button.ik-source { min-height: 0; min-width: 0; padding: 1px 5px; font-size: var
1397
1441
  .ik-foot-note { flex-basis: 100%; margin: 0; }
1398
1442
  /* A toolbar that heads a card's content keeps a gap under it. */
1399
1443
  .ik-toolbar.ik-gap { margin-bottom: var(--ik-space-4); }
1400
- /* A column of cards with the grid's gap between them. */
1401
- .ik-stack { display: grid; align-content: start; gap: 12px; min-width: 0; }
1444
+ /* A column of cards with the grid's gap between them. A table with the class is the stacking table (see tables), so it
1445
+ keeps its table layout above a phone's width and fills its card (#68). */
1446
+ :not(table).ik-stack { display: grid; align-content: start; gap: 12px; min-width: 0; }
1402
1447
  .ik-stack > .ik-card { margin-bottom: 0; }
1403
1448
  /* A toolbar with its first part at the start and the rest at the end. */
1404
1449
  .ik-toolbar.ik-spread { justify-content: space-between; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atomic-ui/theme",
3
- "version": "0.13.1",
3
+ "version": "0.14.0",
4
4
  "description": "The Impakt product theme: one stylesheet and the Archivo and IBM Plex Mono fonts for the plain HTML products, generated from the Impakt brand by @atomic-ui/design-tokens.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -22,7 +22,7 @@
22
22
  "tsx": "^4.16.0",
23
23
  "typescript": "^5.5.0",
24
24
  "vitest": "^2.0.0",
25
- "@atomic-ui/design-tokens": "^0.13.1"
25
+ "@atomic-ui/design-tokens": "^0.14.0"
26
26
  },
27
27
  "files": [
28
28
  "dist",