@pieai/swimmer-ui-kit 1.11.0 → 1.11.1

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/CHANGELOG.md CHANGED
@@ -37,6 +37,28 @@ Format: [Keep a Changelog](https://keepachangelog.com); versioning: semver.
37
37
  process-wide concurrency budgets, degrade visibly with a one-time warning
38
38
  when over budget, and sleep their requestAnimationFrame clock at rest.
39
39
 
40
+ ## 1.11.1
41
+
42
+ ### Fixed
43
+
44
+ - **Waviness now scales to the element it decorates.** `waviness` is an absolute
45
+ pixel amount, and 6px is 11.5% of a 52px segmented control and 42.9% of a 14px
46
+ progress bar — the same token reading as texture in one place and as bites
47
+ taken out of the bar in the other. The effective amplitude is capped at a
48
+ fraction of the shorter side, so the default is safe wherever it lands instead
49
+ of requiring every consumer to remember a rule that fails silently.
50
+
51
+ - **A clean contour after displacement.** The wavy silhouette is made by moving
52
+ the alpha edge between pixels and nothing reconstructed it afterwards. A 0.5px
53
+ blur on the displaced shape gives the rasteriser something to antialias, and
54
+ the filter region grows to fit it — a blur with no room to spread would have
55
+ traded a ragged edge for a clipped one.
56
+
57
+ This addresses the reconstruction, not the noise. Two octaves at a low base
58
+ frequency is blocky, and a displacement inherits the shape of what drives it;
59
+ the rectangular notches visible on a 14px bar are consistent with that, and
60
+ that hypothesis is still open.
61
+
40
62
  ## 1.11.0
41
63
 
42
64
  ### Added
package/dist/index.d.ts CHANGED
@@ -2313,6 +2313,13 @@ export declare interface ImageMeltOptions {
2313
2313
  waviness?: number;
2314
2314
  }
2315
2315
 
2316
+ /**
2317
+ * The default fraction is intentionally derived from the rendered surface,
2318
+ * not from the requested waviness token. A fixed pixel displacement is safe
2319
+ * on a large blob but can consume a thin control's whole visual height.
2320
+ */
2321
+ export declare const LIQUID_GOOEY_WAVINESS_MAX_FRACTION = 0.3;
2322
+
2316
2323
  declare interface LiquidGooeyBudgetOptions {
2317
2324
  maxAnimatedGroups?: number;
2318
2325
  maxFilterArea?: number;
@@ -2376,6 +2383,11 @@ export declare interface LiquidGroupProps extends Omit<HTMLAttributes<HTMLDivEle
2376
2383
  waviness?: number;
2377
2384
  /** Noise frequency of the undulation; lower values make longer waves. */
2378
2385
  wavinessFreq?: number;
2386
+ /**
2387
+ * Max fraction of the group's shorter side allowed for waviness. Defaults
2388
+ * to 0.3; pass `false` to explicitly disable the size clamp.
2389
+ */
2390
+ wavinessClamp?: number | false;
2379
2391
  /**
2380
2392
  * `auto` follows the existing component transition clock, `follow` adopts
2381
2393
  * the Move surface for an explicit user-caused selection/progress gesture,