@kernhq/module-billing 0.5.6 → 0.5.8
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.
|
|
3
|
+
"version": "0.5.8",
|
|
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",
|
|
@@ -323,7 +323,8 @@ function once(run: () => void) {
|
|
|
323
323
|
</EmptyState>
|
|
324
324
|
{:else}
|
|
325
325
|
<!-- current plan -->
|
|
326
|
-
|
|
326
|
+
<!-- The card's own padding is off so the 20px inside is the only padding, on every side. -->
|
|
327
|
+
<Card padding="none">
|
|
327
328
|
<div class="grid gap-4 p-5">
|
|
328
329
|
<div class="flex flex-wrap items-start justify-between gap-3">
|
|
329
330
|
<div class="grid gap-1">
|
|
@@ -419,15 +420,16 @@ function once(run: () => void) {
|
|
|
419
420
|
last line with the card's padding pooled underneath. The layout lives on an element
|
|
420
421
|
of our own inside the card.
|
|
421
422
|
-->
|
|
422
|
-
<Card
|
|
423
|
-
<div class="grid h-full content-between gap-5">
|
|
423
|
+
<Card padding="none">
|
|
424
|
+
<div class="grid h-full content-between gap-5 p-5">
|
|
424
425
|
<div class="grid gap-2">
|
|
425
426
|
<div class="flex items-center justify-between gap-2">
|
|
426
427
|
<span class="text-[15px] font-medium text-[var(--kern-ink-900)]">{plan.name}</span>
|
|
427
428
|
{#if isCurrent}<Badge tone="accent">{t('current')}</Badge>{/if}
|
|
428
429
|
</div>
|
|
429
430
|
<div class="flex items-baseline gap-1.5">
|
|
430
|
-
|
|
431
|
+
<!-- 22px type at the default line-height leaves a hole above the digits. -->
|
|
432
|
+
<span class="text-[22px] font-medium leading-none text-[var(--kern-ink-900)]">
|
|
431
433
|
{formatMoney(plan.priceMinor, plan.currency, locale)}
|
|
432
434
|
</span>
|
|
433
435
|
<span class="text-[12px] text-[var(--kern-ink-400)]">{priceNote(plan)}</span>
|
|
@@ -436,16 +438,19 @@ function once(run: () => void) {
|
|
|
436
438
|
Free text an administrator typed, in whatever language they typed it. Under a
|
|
437
439
|
Persian screen an English highlight rendered backwards — "2 GB of storage" with
|
|
438
440
|
the 2 at the far end — because the block's direction was applied to a line whose
|
|
439
|
-
own direction is Latin. `dir="auto"`
|
|
440
|
-
|
|
441
|
+
own direction is Latin. `dir="auto"` on the block fixed the order and broke the
|
|
442
|
+
alignment — the line became a left-aligned island in a right-aligned card — and
|
|
443
|
+
so did `unicode-bidi: plaintext`, because Chrome resolves `text-align: start`
|
|
444
|
+
against the paragraph's resolved direction in both cases. `<bdi>` isolates the
|
|
445
|
+
run inside a block that keeps the card's direction and alignment.
|
|
441
446
|
-->
|
|
442
447
|
{#if plan.description}
|
|
443
|
-
<p class="text-[13px] text-[var(--kern-ink-700)]"
|
|
448
|
+
<p class="text-[13px] text-[var(--kern-ink-700)]"><bdi>{plan.description}</bdi></p>
|
|
444
449
|
{/if}
|
|
445
450
|
{#if plan.highlights.length}
|
|
446
451
|
<ul class="mt-1 grid gap-1">
|
|
447
452
|
{#each plan.highlights as h (h)}
|
|
448
|
-
<li class="text-[12.5px] text-[var(--kern-ink-700)]"
|
|
453
|
+
<li class="text-[12.5px] text-[var(--kern-ink-700)]"><bdi>{h}</bdi></li>
|
|
449
454
|
{/each}
|
|
450
455
|
</ul>
|
|
451
456
|
{/if}
|
|
@@ -527,4 +532,4 @@ function once(run: () => void) {
|
|
|
527
532
|
{/if}
|
|
528
533
|
</section>
|
|
529
534
|
{/if}
|
|
530
|
-
</div>
|
|
535
|
+
</div>
|