@kernhq/module-billing 0.5.5 → 0.5.7

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": "@kernhq/module-billing",
3
- "version": "0.5.5",
3
+ "version": "0.5.7",
4
4
  "description": "Kern billing module: plans, entitlements, subscriptions and Stripe — the mechanism that lets any Kern instance sell seats on itself",
5
5
  "homepage": "https://github.com/KernAIO/module-billing#readme",
6
6
  "license": "AGPL-3.0-only",
@@ -413,7 +413,14 @@ function once(run: () => void) {
413
413
  {@const isCurrent = sub?.planId === plan.id}
414
414
  {@const blocked = planBlockedReason(plan, { seats: usage.seats })}
415
415
  <li class="grid">
416
- <Card class="grid content-between gap-4 p-4">
416
+ <!--
417
+ `Card` is a block: a `grid` class on it does not reach its content, so the gap
418
+ between the highlights and the button was lost and the button sat flush against the
419
+ last line with the card's padding pooled underneath. The layout lives on an element
420
+ of our own inside the card.
421
+ -->
422
+ <Card class="p-4">
423
+ <div class="grid h-full content-between gap-5">
417
424
  <div class="grid gap-2">
418
425
  <div class="flex items-center justify-between gap-2">
419
426
  <span class="text-[15px] font-medium text-[var(--kern-ink-900)]">{plan.name}</span>
@@ -429,16 +436,19 @@ function once(run: () => void) {
429
436
  Free text an administrator typed, in whatever language they typed it. Under a
430
437
  Persian screen an English highlight rendered backwards — "2 GB of storage" with
431
438
  the 2 at the far end — because the block's direction was applied to a line whose
432
- own direction is Latin. `dir="auto"` lets each line follow its first strong
433
- character; the text alignment stays with the screen.
439
+ own direction is Latin. `dir="auto"` on the block fixed the order and broke the
440
+ alignment the line became a left-aligned island in a right-aligned card — and
441
+ so did `unicode-bidi: plaintext`, because Chrome resolves `text-align: start`
442
+ against the paragraph's resolved direction in both cases. `<bdi>` isolates the
443
+ run inside a block that keeps the card's direction and alignment.
434
444
  -->
435
445
  {#if plan.description}
436
- <p class="text-[13px] text-[var(--kern-ink-700)]" dir="auto">{plan.description}</p>
446
+ <p class="text-[13px] text-[var(--kern-ink-700)]"><bdi>{plan.description}</bdi></p>
437
447
  {/if}
438
448
  {#if plan.highlights.length}
439
449
  <ul class="mt-1 grid gap-1">
440
450
  {#each plan.highlights as h (h)}
441
- <li class="text-[12.5px] text-[var(--kern-ink-700)]" dir="auto">{h}</li>
451
+ <li class="text-[12.5px] text-[var(--kern-ink-700)]"><bdi>{h}</bdi></li>
442
452
  {/each}
443
453
  </ul>
444
454
  {/if}
@@ -468,6 +478,7 @@ function once(run: () => void) {
468
478
  </span>
469
479
  {/snippet}
470
480
  </Tooltip>
481
+ </div>
471
482
  </Card>
472
483
  </li>
473
484
  {/each}
@@ -519,4 +530,4 @@ function once(run: () => void) {
519
530
  {/if}
520
531
  </section>
521
532
  {/if}
522
- </div>
533
+ </div>