@zazz-ui/core 0.5.3 → 0.5.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zazz-ui/core",
3
- "version": "0.5.3",
3
+ "version": "0.5.4",
4
4
  "description": "Zazz Design Framework — a zero-build, semantic-token CSS + vanilla JS UI kit built on modern web standards.",
5
5
  "keywords": [
6
6
  "cascade-layers",
@@ -343,7 +343,7 @@
343
343
  line-height: var(--leading-h4);
344
344
  font-weight: var(--font-weight-heading);
345
345
  letter-spacing: var(--tracking-h4);
346
- text-wrap: var(--text-wrap-heading, balance);
346
+ text-wrap: var(--text-wrap-heading, pretty);
347
347
  font-feature-settings: var(--font-feature-heading);
348
348
  font-kerning: var(--font-kerning-heading);
349
349
  font-language-override: var(--font-language-heading);
@@ -365,7 +365,7 @@
365
365
  line-height: var(--leading-h5);
366
366
  font-weight: var(--font-weight-heading);
367
367
  letter-spacing: var(--tracking-h5);
368
- text-wrap: var(--text-wrap-heading, balance);
368
+ text-wrap: var(--text-wrap-heading, pretty);
369
369
  font-feature-settings: var(--font-feature-heading);
370
370
  font-kerning: var(--font-kerning-heading);
371
371
  font-language-override: var(--font-language-heading);
@@ -387,7 +387,7 @@
387
387
  line-height: var(--leading-h6);
388
388
  font-weight: var(--font-weight-heading);
389
389
  letter-spacing: var(--tracking-h6);
390
- text-wrap: var(--text-wrap-heading, balance);
390
+ text-wrap: var(--text-wrap-heading, pretty);
391
391
  font-feature-settings: var(--font-feature-heading);
392
392
  font-kerning: var(--font-kerning-heading);
393
393
  font-language-override: var(--font-language-heading);
@@ -1,22 +1,20 @@
1
1
  /**
2
- * _view-transitions.css — Cross-document view transitions
2
+ * _view-transitions.css — How view transitions animate
3
+ *
4
+ * Cross-document transitions are opt-in: the kit never declares @view-transition,
5
+ * because an at-rule cannot be scoped and would animate every same-origin navigation
6
+ * on a page that loads the kit. A site enables them in its own CSS with
7
+ * `@view-transition { navigation: auto; }`, and these rules style them.
3
8
  *
4
9
  * @layer variables, utilities
5
10
  * @requires _layers.css, _variables.css, _reset.css ([data-transition-layer] names)
6
- * @uses ::view-transition-old/new — cross-document page transitions
7
- * @uses @view-transition { navigation: auto } — enabled here, behind @supports
11
+ * @uses ::view-transition-old/new — page transitions, cross-document and swap navigation
8
12
  * @uses ::view-transition-group(toaster) — frozen group; excludes the toast
9
13
  * stack (named in toaster.css) from transition repaints
10
14
  * @tokens --view-transition-* (@layer variables)
11
15
  */
12
16
 
13
17
  @layer variables {
14
- @supports at-rule(@view-transition) and (navigation: auto) {
15
- @view-transition {
16
- navigation: auto;
17
- }
18
- }
19
-
20
18
  :root {
21
19
  --view-transition-duration: 0ms;
22
20
  --view-transition-ease: var(--bezier-easing);
@@ -1 +1 @@
1
- {"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["navigation.ts"],"names":[],"mappings":"AAqFA;;;;;;;;;GASG;AACH,iBAAS,QAAQ,CAAC,IAAI,EAAE,WAAW,GAAG,WAAW,CAgDhD;AA2ID,OAAO,EAAE,QAAQ,EAAE,CAAC"}
1
+ {"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["navigation.ts"],"names":[],"mappings":"AAsFA;;;;;;;;;GASG;AACH,iBAAS,QAAQ,CAAC,IAAI,EAAE,WAAW,GAAG,WAAW,CAgDhD;AA2ID,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -22,9 +22,10 @@ import { refreshAll } from "./zazz-element.js";
22
22
  * scrolls as the browser decides: to the top or the target for a new entry,
23
23
  * restored on back/forward.
24
24
  *
25
- * Without the opt-in the browser navigates normally, animated by the CSS
26
- * cross-document view transitions in `_view-transitions.css`. Reloads, hash
27
- * changes, downloads and form posts are never intercepted.
25
+ * Without the opt-in the browser navigates normally; a site animates those
26
+ * loads by enabling cross-document view transitions in its own CSS, which
27
+ * `_view-transitions.css` then styles. Reloads, hash changes, downloads and
28
+ * form posts are never intercepted.
28
29
  *
29
30
  * @see https://developer.mozilla.org/en-US/docs/Web/API/Navigation_API
30
31
  * @see https://developer.mozilla.org/en-US/docs/Web/API/NavigateEvent/scroll
@@ -24,9 +24,10 @@ import { refreshAll } from "./zazz-element.ts";
24
24
  * scrolls as the browser decides: to the top or the target for a new entry,
25
25
  * restored on back/forward.
26
26
  *
27
- * Without the opt-in the browser navigates normally, animated by the CSS
28
- * cross-document view transitions in `_view-transitions.css`. Reloads, hash
29
- * changes, downloads and form posts are never intercepted.
27
+ * Without the opt-in the browser navigates normally; a site animates those
28
+ * loads by enabling cross-document view transitions in its own CSS, which
29
+ * `_view-transitions.css` then styles. Reloads, hash changes, downloads and
30
+ * form posts are never intercepted.
30
31
  *
31
32
  * @see https://developer.mozilla.org/en-US/docs/Web/API/Navigation_API
32
33
  * @see https://developer.mozilla.org/en-US/docs/Web/API/NavigateEvent/scroll