@pontive/pontkit-core 1.38.0 → 1.40.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.
- package/catalog.json +1 -1
- package/custom-elements.json +1 -1
- package/dist/index.js +1410 -1263
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14296 -12214
- package/dist/index.mjs.map +1 -1
- package/dist/pont2/core/context-root.d.ts +1 -0
- package/dist/pont2/core/events.d.ts +1 -1
- package/dist/pont2/core/icons.d.ts +6 -0
- package/dist/pont2/core/index.d.ts +1 -0
- package/dist/pont2/core/messages.d.ts +21 -0
- package/dist/pont2/core/popup/index.d.ts +1 -0
- package/dist/pont2/core/popup/modal.d.ts +56 -0
- package/dist/pont2/core/popup/popup-content.d.ts +7 -0
- package/dist/pont2/core/popup/story-helpers.d.ts +6 -0
- package/dist/pont2/custom-elements.json +42860 -18234
- package/dist/pont2/index.d.ts +7 -0
- package/dist/pont2/index.mjs +4434 -2359
- package/dist/pont2/index.mjs.map +1 -1
- package/dist/pont2/kit/badge-selector/badge-selector.d.ts +65 -0
- package/dist/pont2/kit/consent/consent.d.ts +3 -2
- package/dist/pont2/kit/data-table/data-table.d.ts +120 -0
- package/dist/pont2/kit/data-table/rows.d.ts +25 -0
- package/dist/pont2/kit/flow-widget/flow-widget.d.ts +21 -8
- package/dist/pont2/kit/index.d.ts +7 -0
- package/dist/pont2/kit/layout/layout.d.ts +7 -0
- package/dist/pont2/kit/multi-email-input/emails.d.ts +19 -0
- package/dist/pont2/kit/multi-email-input/multi-email-input.d.ts +78 -0
- package/dist/pont2/kit/multi-select-filter/multi-select-filter.d.ts +53 -0
- package/dist/pont2/kit/pagination/pagination.d.ts +61 -0
- package/dist/pont2/kit/pagination/range.d.ts +17 -0
- package/dist/pont2/kit/provider/coexistence.d.ts +19 -0
- package/dist/pont2/kit/provider/contexts.d.ts +46 -0
- package/dist/pont2/kit/provider/provider.d.ts +185 -0
- package/dist/pont2/kit/provider/redirect.d.ts +122 -0
- package/dist/pont2/kit/provider/runtime-config.d.ts +24 -0
- package/dist/pont2/kit/provider/sdk.d.ts +86 -0
- package/dist/pont2/kit/provider/signed-in.d.ts +81 -0
- package/dist/pont2/kit/provider/widget-messages.d.ts +35 -0
- package/dist/pont2/primitives/alert-dialog/alert-dialog.d.ts +132 -0
- package/dist/pont2/primitives/combobox/combobox.d.ts +82 -14
- package/dist/pont2/primitives/dialog/dialog.d.ts +195 -0
- package/dist/pont2/primitives/drawer/drawer.d.ts +112 -0
- package/dist/pont2/primitives/hover-card/hover-card.d.ts +83 -0
- package/dist/pont2/primitives/pagination/pagination.d.ts +120 -0
- package/dist/pont2/primitives/sheet/sheet.d.ts +92 -0
- package/dist/pont2/primitives/sonner/sonner.d.ts +86 -0
- package/dist/pont2/primitives/sonner/toast-store.d.ts +81 -0
- package/dist/pont2/styles.css +1325 -81
- package/dist/pont2/theme/tokens.json.d.ts +700 -1
- package/dist/pont2/theme-golden.json +85 -43
- package/dist/pont2/theme.mjs +119 -119
- package/dist/pont2/tokens.json +700 -1
- package/dist/styles.css +1325 -81
- package/package.json +11 -5
package/dist/pont2/styles.css
CHANGED
|
@@ -28,12 +28,9 @@
|
|
|
28
28
|
* < unlayered app CSS
|
|
29
29
|
*/
|
|
30
30
|
@layer pont2.reset, pont2.tokens, pont2.base, pont2.primitives, pont2.kit, pont2.theme.preset, pont2.theme.brand;
|
|
31
|
-
@import url("https://fonts.googleapis.com/css2?family=Geist:ital,wght@0,100..900;1,100..900&display=swap")
|
|
32
|
-
|
|
33
|
-
@import url("https://fonts.googleapis.com/css2?family=
|
|
34
|
-
layer(pont2.tokens);
|
|
35
|
-
@import url("https://fonts.googleapis.com/css2?family=Geist+Mono:ital,wght@0,100..900;1,100..900&display=swap")
|
|
36
|
-
layer(pont2.tokens);
|
|
31
|
+
@import url("https://fonts.googleapis.com/css2?family=Geist:ital,wght@0,100..900;1,100..900&display=swap");
|
|
32
|
+
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");
|
|
33
|
+
@import url("https://fonts.googleapis.com/css2?family=Geist+Mono:ital,wght@0,100..900;1,100..900&display=swap");
|
|
37
34
|
|
|
38
35
|
/* ./tokens/index.css */
|
|
39
36
|
/*
|
|
@@ -3721,6 +3718,93 @@ layer(pont2.tokens);
|
|
|
3721
3718
|
}
|
|
3722
3719
|
}
|
|
3723
3720
|
|
|
3721
|
+
/* ../primitives/pagination/pagination.css */
|
|
3722
|
+
/*
|
|
3723
|
+
* Pagination. shadcn (Base UI, Vega):
|
|
3724
|
+
* nav: "mx-auto flex w-full justify-center"
|
|
3725
|
+
* content (ul): "flex items-center" + .cn-pagination-content "gap-1"
|
|
3726
|
+
* link: Button variant ghost (outline when active), size icon
|
|
3727
|
+
* previous / next: link size default + .cn-pagination-previous "pl-2!" / -next "pr-2!",
|
|
3728
|
+
* a ChevronLeft / ChevronRight icon (cn-rtl-flip) and text "hidden sm:block"
|
|
3729
|
+
* ellipsis: "flex items-center justify-center" + .cn-pagination-ellipsis "size-9
|
|
3730
|
+
* [&_svg:not([class*='size-'])]:size-4"
|
|
3731
|
+
*
|
|
3732
|
+
* The links are Button recipes (button.css), so their tokens are the Button's. The
|
|
3733
|
+
* previous / next chevrons are mask-drawn pseudo-elements: the native link's content
|
|
3734
|
+
* is the author's (pagination.ts).
|
|
3735
|
+
*/
|
|
3736
|
+
@layer pont2.primitives {
|
|
3737
|
+
:is(pont2-prim-pagination, pont2-pagination, [data-pont2-pagination]) {
|
|
3738
|
+
display: flex;
|
|
3739
|
+
width: 100%;
|
|
3740
|
+
margin-inline: auto;
|
|
3741
|
+
justify-content: center;
|
|
3742
|
+
}
|
|
3743
|
+
|
|
3744
|
+
:is(pont2-prim-pagination-content, [data-pont2-pagination-content]) {
|
|
3745
|
+
display: flex;
|
|
3746
|
+
align-items: center;
|
|
3747
|
+
gap: 0.25rem;
|
|
3748
|
+
margin: 0;
|
|
3749
|
+
padding: 0;
|
|
3750
|
+
list-style: none;
|
|
3751
|
+
}
|
|
3752
|
+
|
|
3753
|
+
:is(pont2-prim-pagination-item, [data-pont2-pagination-item]) {
|
|
3754
|
+
display: block;
|
|
3755
|
+
}
|
|
3756
|
+
|
|
3757
|
+
[data-slot="pagination-previous"][data-pont2-button] {
|
|
3758
|
+
padding-left: 0.5rem;
|
|
3759
|
+
}
|
|
3760
|
+
[data-slot="pagination-next"][data-pont2-button] {
|
|
3761
|
+
padding-right: 0.5rem;
|
|
3762
|
+
}
|
|
3763
|
+
[data-slot="pagination-previous"][data-pont2-button]::before,
|
|
3764
|
+
[data-slot="pagination-next"][data-pont2-button]::after {
|
|
3765
|
+
content: "";
|
|
3766
|
+
flex-shrink: 0;
|
|
3767
|
+
width: 1rem;
|
|
3768
|
+
height: 1rem;
|
|
3769
|
+
background-color: currentColor;
|
|
3770
|
+
-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-6-6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
|
|
3771
|
+
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-6-6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
|
|
3772
|
+
}
|
|
3773
|
+
/* ChevronRight is ChevronLeft mirrored; cn-rtl-flip mirrors both in RTL. */
|
|
3774
|
+
[data-slot="pagination-next"][data-pont2-button]::after {
|
|
3775
|
+
scale: -1 1;
|
|
3776
|
+
}
|
|
3777
|
+
[data-slot="pagination-previous"][data-pont2-button]:dir(rtl)::before {
|
|
3778
|
+
scale: -1 1;
|
|
3779
|
+
}
|
|
3780
|
+
[data-slot="pagination-next"][data-pont2-button]:dir(rtl)::after {
|
|
3781
|
+
scale: 1 1;
|
|
3782
|
+
}
|
|
3783
|
+
|
|
3784
|
+
[data-slot="pagination-previous-text"],
|
|
3785
|
+
[data-slot="pagination-next-text"] {
|
|
3786
|
+
display: none;
|
|
3787
|
+
}
|
|
3788
|
+
@media (width >= 40rem) {
|
|
3789
|
+
[data-slot="pagination-previous-text"],
|
|
3790
|
+
[data-slot="pagination-next-text"] {
|
|
3791
|
+
display: block;
|
|
3792
|
+
}
|
|
3793
|
+
}
|
|
3794
|
+
|
|
3795
|
+
:is(pont2-prim-pagination-ellipsis, [data-pont2-pagination-ellipsis]) {
|
|
3796
|
+
display: flex;
|
|
3797
|
+
width: 2.25rem;
|
|
3798
|
+
height: 2.25rem;
|
|
3799
|
+
align-items: center;
|
|
3800
|
+
justify-content: center;
|
|
3801
|
+
}
|
|
3802
|
+
:is(pont2-prim-pagination-ellipsis, [data-pont2-pagination-ellipsis]) > svg {
|
|
3803
|
+
width: 1rem;
|
|
3804
|
+
height: 1rem;
|
|
3805
|
+
}
|
|
3806
|
+
}
|
|
3807
|
+
|
|
3724
3808
|
/* --- end structural (A) --- */
|
|
3725
3809
|
|
|
3726
3810
|
/* --- widgets (B) --- */
|
|
@@ -4591,6 +4675,17 @@ layer(pont2.tokens);
|
|
|
4591
4675
|
translate: var(--_pont2-popup-enter-translate-x, 0) var(--_pont2-popup-enter-translate-y, 0);
|
|
4592
4676
|
}
|
|
4593
4677
|
}
|
|
4678
|
+
/* Modal overlays (the popup's ::backdrop): tw-animate-css fade-in-0 / fade-out-0. */
|
|
4679
|
+
@keyframes pont2-backdrop-enter {
|
|
4680
|
+
from {
|
|
4681
|
+
opacity: 0;
|
|
4682
|
+
}
|
|
4683
|
+
}
|
|
4684
|
+
@keyframes pont2-backdrop-exit {
|
|
4685
|
+
to {
|
|
4686
|
+
opacity: 0;
|
|
4687
|
+
}
|
|
4688
|
+
}
|
|
4594
4689
|
@keyframes pont2-popup-exit {
|
|
4595
4690
|
to {
|
|
4596
4691
|
opacity: var(--_pont2-popup-exit-opacity, 1);
|
|
@@ -4656,7 +4751,8 @@ layer(pont2.tokens);
|
|
|
4656
4751
|
}
|
|
4657
4752
|
|
|
4658
4753
|
@media (prefers-reduced-motion: reduce) {
|
|
4659
|
-
[data-pont2-popup]:is([data-open], [data-closed])
|
|
4754
|
+
[data-pont2-popup]:is([data-open], [data-closed]),
|
|
4755
|
+
[data-pont2-popup]:is([data-open], [data-closed])::backdrop {
|
|
4660
4756
|
animation: none;
|
|
4661
4757
|
}
|
|
4662
4758
|
}
|
|
@@ -5203,6 +5299,12 @@ layer(pont2.tokens);
|
|
|
5203
5299
|
--_pont2-combobox-item-bg-focus: var(--pont2-combobox-item-bg-focus, var(--pont2-sem-color-accent));
|
|
5204
5300
|
/** @token Text when highlighted */
|
|
5205
5301
|
--_pont2-combobox-item-fg-focus: var(--pont2-combobox-item-fg-focus, var(--pont2-sem-color-accent-foreground));
|
|
5302
|
+
/** @token Background */
|
|
5303
|
+
--_pont2-combobox-chip-bg: var(--pont2-combobox-chip-bg, var(--pont2-sem-color-muted));
|
|
5304
|
+
/** @token Text */
|
|
5305
|
+
--_pont2-combobox-chip-fg: var(--pont2-combobox-chip-fg, var(--pont2-sem-color-foreground));
|
|
5306
|
+
/** @token Corner radius */
|
|
5307
|
+
--_pont2-combobox-chip-radius: var(--pont2-combobox-chip-radius, var(--pont2-sem-radius-sm));
|
|
5206
5308
|
}
|
|
5207
5309
|
|
|
5208
5310
|
/* ComboboxInput = InputGroup: "relative flex w-full min-w-0 items-center outline-none"
|
|
@@ -5431,6 +5533,100 @@ layer(pont2.tokens);
|
|
|
5431
5533
|
width: auto;
|
|
5432
5534
|
margin: 0.25rem -0.25rem;
|
|
5433
5535
|
}
|
|
5536
|
+
|
|
5537
|
+
/* ------------------------------------------------------------------ */
|
|
5538
|
+
/* Multiple: chips */
|
|
5539
|
+
/* ------------------------------------------------------------------ */
|
|
5540
|
+
|
|
5541
|
+
/* .cn-combobox-chips "dark:bg-input/30 border-input focus-within:border-ring focus-within:ring-ring/50
|
|
5542
|
+
has-aria-invalid:… flex min-h-9 flex-wrap items-center gap-1.5 rounded-md border bg-transparent
|
|
5543
|
+
bg-clip-padding px-2.5 py-1.5 text-sm shadow-xs transition-[color,box-shadow] focus-within:ring-3
|
|
5544
|
+
has-data-[slot=combobox-chip]:px-1.5". It is a ComboboxInput (combobox.ts), so the input
|
|
5545
|
+
group box above applies; these rules make it a wrapping row. */
|
|
5546
|
+
:is(pont2-prim-combobox-chips, [data-pont2-combobox-chips]) {
|
|
5547
|
+
height: auto;
|
|
5548
|
+
min-height: var(--_pont2-combobox-input-height);
|
|
5549
|
+
flex-wrap: wrap;
|
|
5550
|
+
gap: 0.375rem;
|
|
5551
|
+
padding: 0.375rem 0.625rem;
|
|
5552
|
+
background-clip: padding-box;
|
|
5553
|
+
font-size: var(--pont2-sem-text-sm);
|
|
5554
|
+
line-height: var(--pont2-sem-text-sm--line-height);
|
|
5555
|
+
cursor: text;
|
|
5556
|
+
}
|
|
5557
|
+
[data-pont2-combobox-chips]:has(> [data-slot="combobox-chip"]) {
|
|
5558
|
+
padding-inline: 0.375rem;
|
|
5559
|
+
}
|
|
5560
|
+
[data-pont2-combobox-chips]:focus-within {
|
|
5561
|
+
border-color: var(--pont2-sem-color-ring);
|
|
5562
|
+
--pont2-ring-shadow: 0 0 0 var(--pont2-sem-ring-width) color-mix(in oklab, var(--pont2-sem-color-ring) 50%, transparent);
|
|
5563
|
+
}
|
|
5564
|
+
[data-pont2-combobox-chips][data-disabled],
|
|
5565
|
+
[data-pont2-combobox][data-disabled] [data-pont2-combobox-chips] {
|
|
5566
|
+
cursor: not-allowed;
|
|
5567
|
+
opacity: var(--pont2-sem-opacity-disabled);
|
|
5568
|
+
}
|
|
5569
|
+
|
|
5570
|
+
/* .cn-combobox-chip "bg-muted text-foreground flex h-[calc(--spacing(5.5))] w-fit items-center
|
|
5571
|
+
justify-center gap-1 rounded-sm px-1.5 text-xs font-medium whitespace-nowrap
|
|
5572
|
+
has-data-[slot=combobox-chip-remove]:pr-0" */
|
|
5573
|
+
[data-pont2-combobox-chip] {
|
|
5574
|
+
display: flex;
|
|
5575
|
+
width: fit-content;
|
|
5576
|
+
height: 1.375rem;
|
|
5577
|
+
box-sizing: border-box;
|
|
5578
|
+
align-items: center;
|
|
5579
|
+
justify-content: center;
|
|
5580
|
+
gap: 0.25rem;
|
|
5581
|
+
padding: 0 0.375rem;
|
|
5582
|
+
border-radius: var(--_pont2-combobox-chip-radius);
|
|
5583
|
+
background-color: var(--_pont2-combobox-chip-bg);
|
|
5584
|
+
color: var(--_pont2-combobox-chip-fg);
|
|
5585
|
+
font-size: var(--pont2-sem-text-xs);
|
|
5586
|
+
line-height: var(--pont2-sem-text-xs--line-height);
|
|
5587
|
+
font-weight: var(--pont2-sem-font-weight-medium);
|
|
5588
|
+
white-space: nowrap;
|
|
5589
|
+
outline: none;
|
|
5590
|
+
}
|
|
5591
|
+
[data-pont2-combobox-chip]:has(> [data-slot="combobox-chip-remove"]) {
|
|
5592
|
+
padding-right: 0;
|
|
5593
|
+
}
|
|
5594
|
+
[data-pont2-combobox-chip]:focus-visible {
|
|
5595
|
+
--pont2-ring-shadow: 0 0 0 var(--pont2-sem-ring-width) color-mix(in oklab, var(--pont2-sem-color-ring) 50%, transparent);
|
|
5596
|
+
box-shadow: var(--pont2-ring-shadow);
|
|
5597
|
+
}
|
|
5598
|
+
/* .cn-combobox-chip-remove "-ml-1 opacity-50 hover:opacity-100" (Button ghost icon-xs) */
|
|
5599
|
+
[data-pont2-combobox-chip] > [data-slot="combobox-chip-remove"] {
|
|
5600
|
+
margin-left: -0.25rem;
|
|
5601
|
+
opacity: 0.5;
|
|
5602
|
+
}
|
|
5603
|
+
[data-pont2-combobox-chip] > [data-slot="combobox-chip-remove"]:hover {
|
|
5604
|
+
opacity: 1;
|
|
5605
|
+
}
|
|
5606
|
+
[data-pont2-combobox-chip] > [data-slot="combobox-chip-remove"] svg {
|
|
5607
|
+
pointer-events: none;
|
|
5608
|
+
}
|
|
5609
|
+
|
|
5610
|
+
/* .cn-combobox-chip-input "min-w-16 flex-1 outline-none" */
|
|
5611
|
+
[data-pont2-combobox-chip-input] {
|
|
5612
|
+
box-sizing: border-box;
|
|
5613
|
+
flex: 1 1 0%;
|
|
5614
|
+
min-width: 4rem;
|
|
5615
|
+
margin: 0;
|
|
5616
|
+
padding: 0;
|
|
5617
|
+
border: 0;
|
|
5618
|
+
background: transparent;
|
|
5619
|
+
color: inherit;
|
|
5620
|
+
font: inherit;
|
|
5621
|
+
outline: none;
|
|
5622
|
+
}
|
|
5623
|
+
[data-pont2-combobox-chip-input]::placeholder {
|
|
5624
|
+
color: var(--pont2-sem-color-muted-foreground);
|
|
5625
|
+
opacity: 1;
|
|
5626
|
+
}
|
|
5627
|
+
[data-pont2-combobox-chip-input]:disabled {
|
|
5628
|
+
cursor: not-allowed;
|
|
5629
|
+
}
|
|
5434
5630
|
}
|
|
5435
5631
|
|
|
5436
5632
|
/* ../primitives/tooltip/tooltip.css */
|
|
@@ -5520,106 +5716,1032 @@ layer(pont2.tokens);
|
|
|
5520
5716
|
}
|
|
5521
5717
|
}
|
|
5522
5718
|
|
|
5523
|
-
/*
|
|
5524
|
-
|
|
5525
|
-
/* Kit: composites (each file wraps itself in @layer pont2.kit). Aliases need no CSS:
|
|
5526
|
-
their tags are listed in the primitive recipes. docs/10-primitives-and-kit.md */
|
|
5527
|
-
/* ../kit/alert/alert.css */
|
|
5719
|
+
/* ../primitives/dialog/dialog.css */
|
|
5528
5720
|
/*
|
|
5529
|
-
*
|
|
5530
|
-
*
|
|
5531
|
-
*
|
|
5532
|
-
*
|
|
5533
|
-
*
|
|
5721
|
+
* Dialog. shadcn (Base UI, Vega):
|
|
5722
|
+
* overlay: "fixed inset-0 isolate z-50" + .cn-dialog-overlay "data-open:animate-in
|
|
5723
|
+
* data-closed:animate-out fade-in-0/fade-out-0 bg-black/10 duration-100
|
|
5724
|
+
* supports-backdrop-filter:backdrop-blur-xs"
|
|
5725
|
+
* content: "fixed top-1/2 left-1/2 z-50 w-full -translate-x-1/2 -translate-y-1/2 outline-none"
|
|
5726
|
+
* + .cn-dialog-content "bg-popover text-popover-foreground fade/zoom-95 ring-foreground/10
|
|
5727
|
+
* grid max-w-[calc(100%-2rem)] gap-6 rounded-xl p-6 text-sm ring-1 duration-100 sm:max-w-md"
|
|
5728
|
+
* close: Button ghost icon-sm + .cn-dialog-close "absolute top-4 right-4"
|
|
5729
|
+
* header: "flex flex-col gap-2"; footer: "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end"
|
|
5730
|
+
* title: "leading-none font-medium" (+ cn-font-heading); description: "text-muted-foreground text-sm
|
|
5731
|
+
* *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground"
|
|
5534
5732
|
*
|
|
5535
|
-
*
|
|
5536
|
-
*
|
|
5733
|
+
* The overlay is the popup's ::backdrop (dialog.ts), and the popup is centred with
|
|
5734
|
+
* `inset: 0; margin: auto` instead of a translate, so the shared enter/exit
|
|
5735
|
+
* animation (core/popup/popup.css: fade + zoom-95, 100ms) composes with it.
|
|
5736
|
+
*
|
|
5737
|
+
* Tokens (docs/11-tokens.md): `--pont2-dialog-*`, resolved on the content.
|
|
5738
|
+
* The border is shadcn's 1px ring.
|
|
5537
5739
|
*/
|
|
5538
|
-
@layer pont2.
|
|
5740
|
+
@layer pont2.primitives {
|
|
5539
5741
|
/* ------------------------------------------------------------------ */
|
|
5540
5742
|
/* Tokens */
|
|
5541
5743
|
/* ------------------------------------------------------------------ */
|
|
5542
5744
|
|
|
5543
|
-
pont2-
|
|
5544
|
-
|
|
5545
|
-
--_pont2-
|
|
5546
|
-
|
|
5547
|
-
|
|
5548
|
-
/** @token
|
|
5549
|
-
--_pont2-
|
|
5550
|
-
|
|
5551
|
-
|
|
5552
|
-
/** @token
|
|
5553
|
-
--_pont2-
|
|
5554
|
-
|
|
5555
|
-
|
|
5556
|
-
/** @token
|
|
5557
|
-
--_pont2-
|
|
5745
|
+
:is(pont2-prim-dialog-content, [data-pont2-dialog-content]) {
|
|
5746
|
+
/** @token Background */
|
|
5747
|
+
--_pont2-dialog-bg: var(--pont2-dialog-bg, var(--pont2-sem-color-popover));
|
|
5748
|
+
/** @token Text */
|
|
5749
|
+
--_pont2-dialog-fg: var(--pont2-dialog-fg, var(--pont2-sem-color-popover-foreground));
|
|
5750
|
+
/** @token Border */
|
|
5751
|
+
--_pont2-dialog-border-color: var(--pont2-dialog-border-color, color-mix(in oklab, var(--pont2-sem-color-foreground) 10%, transparent));
|
|
5752
|
+
/** @token Corner radius */
|
|
5753
|
+
--_pont2-dialog-radius: var(--pont2-dialog-radius, var(--pont2-sem-radius-xl));
|
|
5754
|
+
/** @token Shadow */
|
|
5755
|
+
--_pont2-dialog-shadow: var(--pont2-dialog-shadow, var(--pont2-sem-shadow-none));
|
|
5756
|
+
/** @token Maximum width */
|
|
5757
|
+
--_pont2-dialog-max-width: var(--pont2-dialog-max-width, 28rem);
|
|
5758
|
+
/** @token Horizontal padding */
|
|
5759
|
+
--_pont2-dialog-padding-x: var(--pont2-dialog-padding-x, 1.5rem);
|
|
5760
|
+
/** @token Vertical padding */
|
|
5761
|
+
--_pont2-dialog-padding-y: var(--pont2-dialog-padding-y, 1.5rem);
|
|
5762
|
+
/** @token Gap */
|
|
5763
|
+
--_pont2-dialog-gap: var(--pont2-dialog-gap, 1.5rem);
|
|
5764
|
+
/** @token Overlay */
|
|
5765
|
+
--_pont2-dialog-overlay-bg: var(--pont2-dialog-overlay-bg, oklch(0 0 0 / 10%));
|
|
5558
5766
|
}
|
|
5559
5767
|
|
|
5560
5768
|
/* ------------------------------------------------------------------ */
|
|
5561
5769
|
/* Recipe */
|
|
5562
5770
|
/* ------------------------------------------------------------------ */
|
|
5563
5771
|
|
|
5564
|
-
|
|
5565
|
-
|
|
5772
|
+
:is(pont2-prim-dialog-content, [data-pont2-dialog-content]) {
|
|
5773
|
+
inset: 0;
|
|
5774
|
+
margin: auto;
|
|
5775
|
+
display: grid;
|
|
5776
|
+
box-sizing: border-box;
|
|
5777
|
+
width: 100%;
|
|
5778
|
+
max-width: calc(100% - 2rem);
|
|
5779
|
+
height: fit-content;
|
|
5780
|
+
max-height: calc(100% - 2rem);
|
|
5781
|
+
overflow-y: auto;
|
|
5782
|
+
gap: var(--_pont2-dialog-gap);
|
|
5783
|
+
padding: var(--_pont2-dialog-padding-y) var(--_pont2-dialog-padding-x);
|
|
5784
|
+
border-radius: var(--_pont2-dialog-radius);
|
|
5785
|
+
background-color: var(--_pont2-dialog-bg);
|
|
5786
|
+
color: var(--_pont2-dialog-fg);
|
|
5787
|
+
font-size: var(--pont2-sem-text-sm);
|
|
5788
|
+
line-height: var(--pont2-sem-text-sm--line-height);
|
|
5789
|
+
outline: none;
|
|
5790
|
+
--pont2-shadow: var(--_pont2-dialog-shadow);
|
|
5791
|
+
--pont2-ring-shadow: 0 0 0 var(--pont2-sem-border-width) var(--_pont2-dialog-border-color);
|
|
5792
|
+
box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
|
|
5566
5793
|
}
|
|
5567
|
-
|
|
5568
|
-
|
|
5794
|
+
@media (width >= 40rem) {
|
|
5795
|
+
:is(pont2-prim-dialog-content, [data-pont2-dialog-content]) {
|
|
5796
|
+
max-width: min(var(--_pont2-dialog-max-width), calc(100% - 2rem));
|
|
5797
|
+
}
|
|
5569
5798
|
}
|
|
5570
|
-
}
|
|
5571
5799
|
|
|
5572
|
-
/*
|
|
5573
|
-
|
|
5574
|
-
|
|
5575
|
-
* (primitives/avatar/avatar.css) through [data-pont2-avatar] and the parts'
|
|
5576
|
-
* identity attributes; the composite adds no visual rules of its own.
|
|
5577
|
-
*
|
|
5578
|
-
* The file exists so every kit element has a stylesheet in @layer pont2.kit,
|
|
5579
|
-
* where composite-specific rules go when they appear.
|
|
5580
|
-
*/
|
|
5581
|
-
@layer pont2.kit {
|
|
5582
|
-
/* Size before upgrade, so a server-rendered composite does not collapse. */
|
|
5583
|
-
pont2-avatar:not([data-pont2-avatar]) {
|
|
5584
|
-
display: inline-flex;
|
|
5585
|
-
width: 2rem;
|
|
5586
|
-
height: 2rem;
|
|
5800
|
+
/* The overlay: the popup's ::backdrop. */
|
|
5801
|
+
:is(pont2-prim-dialog-content, [data-pont2-dialog-content])::backdrop {
|
|
5802
|
+
background-color: var(--_pont2-dialog-overlay-bg);
|
|
5587
5803
|
}
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
|
|
5804
|
+
|
|
5805
|
+
/* The close button: Button ghost icon-sm, absolute top-4 right-4. */
|
|
5806
|
+
[data-pont2-dialog-content] > [data-pont2-modal-close] {
|
|
5807
|
+
position: absolute;
|
|
5808
|
+
top: 1rem;
|
|
5809
|
+
right: 1rem;
|
|
5591
5810
|
}
|
|
5592
|
-
|
|
5593
|
-
|
|
5594
|
-
|
|
5811
|
+
|
|
5812
|
+
:is(pont2-prim-dialog-header, [data-pont2-dialog-header]) {
|
|
5813
|
+
display: flex;
|
|
5814
|
+
flex-direction: column;
|
|
5815
|
+
gap: 0.5rem;
|
|
5595
5816
|
}
|
|
5596
|
-
}
|
|
5597
5817
|
|
|
5598
|
-
|
|
5599
|
-
/*
|
|
5600
|
-
* <pont2-input-otp> (kit composite). All styling comes from the primitive
|
|
5601
|
-
* recipe (primitives/input-otp/input-otp.css) through [data-pont2-input-otp]
|
|
5602
|
-
* and the parts' identity attributes.
|
|
5603
|
-
*
|
|
5604
|
-
* Added here: the composite has no children before upgrade, so it reserves the
|
|
5605
|
-
* primitive's slot height (2.25rem) to avoid a layout shift.
|
|
5606
|
-
*/
|
|
5607
|
-
@layer pont2.kit {
|
|
5608
|
-
pont2-input-otp:not([data-pont2-input-otp]) {
|
|
5818
|
+
:is(pont2-prim-dialog-footer, [data-pont2-dialog-footer]) {
|
|
5609
5819
|
display: flex;
|
|
5610
|
-
|
|
5820
|
+
flex-direction: column-reverse;
|
|
5821
|
+
gap: 0.5rem;
|
|
5822
|
+
}
|
|
5823
|
+
@media (width >= 40rem) {
|
|
5824
|
+
:is(pont2-prim-dialog-footer, [data-pont2-dialog-footer]) {
|
|
5825
|
+
flex-direction: row;
|
|
5826
|
+
justify-content: flex-end;
|
|
5827
|
+
}
|
|
5828
|
+
}
|
|
5829
|
+
|
|
5830
|
+
:is(pont2-prim-dialog-title, [data-pont2-dialog-title]) {
|
|
5831
|
+
display: block;
|
|
5832
|
+
margin: 0;
|
|
5833
|
+
font-family: var(--pont2-sem-font-heading);
|
|
5834
|
+
line-height: 1;
|
|
5835
|
+
font-weight: var(--pont2-sem-font-weight-medium);
|
|
5836
|
+
}
|
|
5837
|
+
|
|
5838
|
+
:is(pont2-prim-dialog-description, [data-pont2-dialog-description]) {
|
|
5839
|
+
display: block;
|
|
5840
|
+
margin: 0;
|
|
5841
|
+
color: var(--pont2-sem-color-muted-foreground);
|
|
5842
|
+
font-size: var(--pont2-sem-text-sm);
|
|
5843
|
+
line-height: var(--pont2-sem-text-sm--line-height);
|
|
5844
|
+
}
|
|
5845
|
+
:is(pont2-prim-dialog-description, [data-pont2-dialog-description]) > a {
|
|
5846
|
+
color: inherit;
|
|
5847
|
+
text-decoration: underline;
|
|
5848
|
+
text-underline-offset: 3px;
|
|
5849
|
+
}
|
|
5850
|
+
:is(pont2-prim-dialog-description, [data-pont2-dialog-description]) > a:hover {
|
|
5851
|
+
color: var(--pont2-sem-color-foreground);
|
|
5852
|
+
}
|
|
5853
|
+
|
|
5854
|
+
/* ------------------------------------------------------------------ */
|
|
5855
|
+
/* Every modal surface's overlay (dialog, alert dialog, sheet, drawer) */
|
|
5856
|
+
/* ------------------------------------------------------------------ */
|
|
5857
|
+
|
|
5858
|
+
/* supports-backdrop-filter:backdrop-blur-xs; fade-in-0 / fade-out-0 with the popup. */
|
|
5859
|
+
:is([data-pont2-dialog-content], [data-pont2-alert-dialog-content], [data-pont2-sheet-content], [data-pont2-drawer-content])::backdrop {
|
|
5860
|
+
backdrop-filter: blur(4px);
|
|
5861
|
+
}
|
|
5862
|
+
:is([data-pont2-dialog-content], [data-pont2-alert-dialog-content], [data-pont2-sheet-content], [data-pont2-drawer-content])[data-open]::backdrop {
|
|
5863
|
+
animation: pont2-backdrop-enter var(--_pont2-popup-duration) var(--pont2-sem-ease-in-out);
|
|
5864
|
+
}
|
|
5865
|
+
:is([data-pont2-dialog-content], [data-pont2-alert-dialog-content], [data-pont2-sheet-content], [data-pont2-drawer-content])[data-closed]::backdrop {
|
|
5866
|
+
animation: pont2-backdrop-exit var(--_pont2-popup-duration) var(--pont2-sem-ease-in-out) forwards;
|
|
5867
|
+
}
|
|
5868
|
+
/* modal="false": no overlay. */
|
|
5869
|
+
:is([data-pont2-dialog-content], [data-pont2-alert-dialog-content], [data-pont2-sheet-content], [data-pont2-drawer-content])[data-modal="false"]::backdrop {
|
|
5870
|
+
display: none;
|
|
5611
5871
|
}
|
|
5612
5872
|
}
|
|
5613
5873
|
|
|
5614
|
-
/* ../
|
|
5874
|
+
/* ../primitives/alert-dialog/alert-dialog.css */
|
|
5615
5875
|
/*
|
|
5616
|
-
*
|
|
5617
|
-
*
|
|
5618
|
-
*
|
|
5619
|
-
*
|
|
5876
|
+
* Alert Dialog. shadcn (Base UI, Vega):
|
|
5877
|
+
* overlay: .cn-alert-dialog-overlay = the dialog's (bg-black/10, blur, fade; dialog.css)
|
|
5878
|
+
* content: "fixed top-1/2 left-1/2 z-50 grid w-full -translate-1/2 outline-none"
|
|
5879
|
+
* + .cn-alert-dialog-content "bg-popover text-popover-foreground ring-foreground/10 gap-6
|
|
5880
|
+
* rounded-xl p-6 ring-1 duration-100 fade/zoom-95 data-[size=default]:max-w-xs
|
|
5881
|
+
* data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-lg"
|
|
5882
|
+
* header: "grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center
|
|
5883
|
+
* has-media:grid-rows-[auto_auto_1fr] has-media:gap-x-6 sm:size-default:place-items-start
|
|
5884
|
+
* sm:size-default:text-left sm:size-default:has-media:grid-rows-[auto_1fr]"
|
|
5885
|
+
* media: "bg-muted mb-2 inline-flex size-16 items-center justify-center rounded-md
|
|
5886
|
+
* sm:size-default:row-span-2 *:[svg]:size-8"
|
|
5887
|
+
* title: "text-lg font-medium sm:size-default:has-media:col-start-2"
|
|
5888
|
+
* description: "text-muted-foreground text-sm text-balance md:text-pretty" + links
|
|
5889
|
+
* footer: "flex flex-col-reverse gap-2 size-sm:grid size-sm:grid-cols-2 sm:flex-row sm:justify-end"
|
|
5620
5890
|
*
|
|
5621
|
-
*
|
|
5622
|
-
|
|
5891
|
+
* Tokens (docs/11-tokens.md): `--pont2-alert-dialog-*`, resolved on the content.
|
|
5892
|
+
*/
|
|
5893
|
+
@layer pont2.primitives {
|
|
5894
|
+
:is(pont2-prim-alert-dialog-content, [data-pont2-alert-dialog-content]) {
|
|
5895
|
+
/** @token Background */
|
|
5896
|
+
--_pont2-alert-dialog-bg: var(--pont2-alert-dialog-bg, var(--pont2-sem-color-popover));
|
|
5897
|
+
/** @token Text */
|
|
5898
|
+
--_pont2-alert-dialog-fg: var(--pont2-alert-dialog-fg, var(--pont2-sem-color-popover-foreground));
|
|
5899
|
+
/** @token Border */
|
|
5900
|
+
--_pont2-alert-dialog-border-color: var(--pont2-alert-dialog-border-color, color-mix(in oklab, var(--pont2-sem-color-foreground) 10%, transparent));
|
|
5901
|
+
/** @token Corner radius */
|
|
5902
|
+
--_pont2-alert-dialog-radius: var(--pont2-alert-dialog-radius, var(--pont2-sem-radius-xl));
|
|
5903
|
+
/** @token Maximum width */
|
|
5904
|
+
--_pont2-alert-dialog-max-width: var(--pont2-alert-dialog-max-width, 32rem);
|
|
5905
|
+
/** @token Maximum width (small) */
|
|
5906
|
+
--_pont2-alert-dialog-sm-max-width: var(--pont2-alert-dialog-sm-max-width, 20rem);
|
|
5907
|
+
/** @token Horizontal padding */
|
|
5908
|
+
--_pont2-alert-dialog-padding-x: var(--pont2-alert-dialog-padding-x, 1.5rem);
|
|
5909
|
+
/** @token Vertical padding */
|
|
5910
|
+
--_pont2-alert-dialog-padding-y: var(--pont2-alert-dialog-padding-y, 1.5rem);
|
|
5911
|
+
/** @token Gap */
|
|
5912
|
+
--_pont2-alert-dialog-gap: var(--pont2-alert-dialog-gap, 1.5rem);
|
|
5913
|
+
/** @token Overlay */
|
|
5914
|
+
--_pont2-alert-dialog-overlay-bg: var(--pont2-alert-dialog-overlay-bg, oklch(0 0 0 / 10%));
|
|
5915
|
+
}
|
|
5916
|
+
|
|
5917
|
+
:is(pont2-prim-alert-dialog-content, [data-pont2-alert-dialog-content]) {
|
|
5918
|
+
inset: 0;
|
|
5919
|
+
margin: auto;
|
|
5920
|
+
display: grid;
|
|
5921
|
+
box-sizing: border-box;
|
|
5922
|
+
width: 100%;
|
|
5923
|
+
max-width: min(var(--_pont2-alert-dialog-sm-max-width), calc(100% - 2rem));
|
|
5924
|
+
height: fit-content;
|
|
5925
|
+
max-height: calc(100% - 2rem);
|
|
5926
|
+
overflow-y: auto;
|
|
5927
|
+
gap: var(--_pont2-alert-dialog-gap);
|
|
5928
|
+
padding: var(--_pont2-alert-dialog-padding-y) var(--_pont2-alert-dialog-padding-x);
|
|
5929
|
+
border-radius: var(--_pont2-alert-dialog-radius);
|
|
5930
|
+
background-color: var(--_pont2-alert-dialog-bg);
|
|
5931
|
+
color: var(--_pont2-alert-dialog-fg);
|
|
5932
|
+
font-size: var(--pont2-sem-text-sm);
|
|
5933
|
+
line-height: var(--pont2-sem-text-sm--line-height);
|
|
5934
|
+
outline: none;
|
|
5935
|
+
--pont2-ring-shadow: 0 0 0 var(--pont2-sem-border-width) var(--_pont2-alert-dialog-border-color);
|
|
5936
|
+
box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
|
|
5937
|
+
}
|
|
5938
|
+
:is(pont2-prim-alert-dialog-content, [data-pont2-alert-dialog-content])::backdrop {
|
|
5939
|
+
background-color: var(--_pont2-alert-dialog-overlay-bg);
|
|
5940
|
+
}
|
|
5941
|
+
|
|
5942
|
+
:is(pont2-prim-alert-dialog-header, [data-pont2-alert-dialog-header]) {
|
|
5943
|
+
display: grid;
|
|
5944
|
+
grid-template-rows: auto 1fr;
|
|
5945
|
+
place-items: center;
|
|
5946
|
+
gap: 0.375rem;
|
|
5947
|
+
text-align: center;
|
|
5948
|
+
}
|
|
5949
|
+
:is(pont2-prim-alert-dialog-header, [data-pont2-alert-dialog-header]):has(> [data-slot="alert-dialog-media"]) {
|
|
5950
|
+
grid-template-rows: auto auto 1fr;
|
|
5951
|
+
column-gap: 1.5rem;
|
|
5952
|
+
}
|
|
5953
|
+
|
|
5954
|
+
:is(pont2-prim-alert-dialog-media, [data-pont2-alert-dialog-media]) {
|
|
5955
|
+
display: inline-flex;
|
|
5956
|
+
width: 4rem;
|
|
5957
|
+
height: 4rem;
|
|
5958
|
+
margin-bottom: 0.5rem;
|
|
5959
|
+
align-items: center;
|
|
5960
|
+
justify-content: center;
|
|
5961
|
+
border-radius: var(--pont2-sem-radius-md);
|
|
5962
|
+
background-color: var(--pont2-sem-color-muted);
|
|
5963
|
+
}
|
|
5964
|
+
:is(pont2-prim-alert-dialog-media, [data-pont2-alert-dialog-media]) > svg {
|
|
5965
|
+
width: 2rem;
|
|
5966
|
+
height: 2rem;
|
|
5967
|
+
}
|
|
5968
|
+
|
|
5969
|
+
:is(pont2-prim-alert-dialog-title, [data-pont2-alert-dialog-title]) {
|
|
5970
|
+
display: block;
|
|
5971
|
+
margin: 0;
|
|
5972
|
+
font-family: var(--pont2-sem-font-heading);
|
|
5973
|
+
font-size: var(--pont2-sem-text-lg);
|
|
5974
|
+
line-height: var(--pont2-sem-text-lg--line-height);
|
|
5975
|
+
font-weight: var(--pont2-sem-font-weight-medium);
|
|
5976
|
+
}
|
|
5977
|
+
|
|
5978
|
+
:is(pont2-prim-alert-dialog-description, [data-pont2-alert-dialog-description]) {
|
|
5979
|
+
display: block;
|
|
5980
|
+
margin: 0;
|
|
5981
|
+
color: var(--pont2-sem-color-muted-foreground);
|
|
5982
|
+
font-size: var(--pont2-sem-text-sm);
|
|
5983
|
+
line-height: var(--pont2-sem-text-sm--line-height);
|
|
5984
|
+
text-wrap: balance;
|
|
5985
|
+
}
|
|
5986
|
+
:is(pont2-prim-alert-dialog-description, [data-pont2-alert-dialog-description]) > a {
|
|
5987
|
+
color: inherit;
|
|
5988
|
+
text-decoration: underline;
|
|
5989
|
+
text-underline-offset: 3px;
|
|
5990
|
+
}
|
|
5991
|
+
:is(pont2-prim-alert-dialog-description, [data-pont2-alert-dialog-description]) > a:hover {
|
|
5992
|
+
color: var(--pont2-sem-color-foreground);
|
|
5993
|
+
}
|
|
5994
|
+
|
|
5995
|
+
:is(pont2-prim-alert-dialog-footer, [data-pont2-alert-dialog-footer]) {
|
|
5996
|
+
display: flex;
|
|
5997
|
+
flex-direction: column-reverse;
|
|
5998
|
+
gap: 0.5rem;
|
|
5999
|
+
}
|
|
6000
|
+
[data-pont2-alert-dialog-content][data-size="sm"] :is(pont2-prim-alert-dialog-footer, [data-pont2-alert-dialog-footer]) {
|
|
6001
|
+
display: grid;
|
|
6002
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
6003
|
+
}
|
|
6004
|
+
|
|
6005
|
+
@media (width >= 40rem) {
|
|
6006
|
+
[data-pont2-alert-dialog-content]:not([data-size="sm"]) {
|
|
6007
|
+
max-width: min(var(--_pont2-alert-dialog-max-width), calc(100% - 2rem));
|
|
6008
|
+
}
|
|
6009
|
+
[data-pont2-alert-dialog-content]:not([data-size="sm"]) :is(pont2-prim-alert-dialog-header, [data-pont2-alert-dialog-header]) {
|
|
6010
|
+
place-items: start;
|
|
6011
|
+
text-align: left;
|
|
6012
|
+
}
|
|
6013
|
+
[data-pont2-alert-dialog-content]:not([data-size="sm"]) :is(pont2-prim-alert-dialog-header, [data-pont2-alert-dialog-header]):has(> [data-slot="alert-dialog-media"]) {
|
|
6014
|
+
grid-template-rows: auto 1fr;
|
|
6015
|
+
}
|
|
6016
|
+
[data-pont2-alert-dialog-content]:not([data-size="sm"]) :is(pont2-prim-alert-dialog-media, [data-pont2-alert-dialog-media]) {
|
|
6017
|
+
grid-row: span 2 / span 2;
|
|
6018
|
+
}
|
|
6019
|
+
[data-pont2-alert-dialog-content]:not([data-size="sm"]):has([data-slot="alert-dialog-media"]) :is(pont2-prim-alert-dialog-title, [data-pont2-alert-dialog-title]),
|
|
6020
|
+
[data-pont2-alert-dialog-content]:not([data-size="sm"]):has([data-slot="alert-dialog-media"]) :is(pont2-prim-alert-dialog-description, [data-pont2-alert-dialog-description]) {
|
|
6021
|
+
grid-column-start: 2;
|
|
6022
|
+
}
|
|
6023
|
+
:is(pont2-prim-alert-dialog-footer, [data-pont2-alert-dialog-footer]) {
|
|
6024
|
+
flex-direction: row;
|
|
6025
|
+
justify-content: flex-end;
|
|
6026
|
+
}
|
|
6027
|
+
}
|
|
6028
|
+
@media (width >= 48rem) {
|
|
6029
|
+
:is(pont2-prim-alert-dialog-description, [data-pont2-alert-dialog-description]) {
|
|
6030
|
+
text-wrap: pretty;
|
|
6031
|
+
}
|
|
6032
|
+
}
|
|
6033
|
+
}
|
|
6034
|
+
|
|
6035
|
+
/* ../primitives/sheet/sheet.css */
|
|
6036
|
+
/*
|
|
6037
|
+
* Sheet. shadcn (Base UI, Vega):
|
|
6038
|
+
* overlay: "fixed inset-0 z-50 transition-opacity duration-150 starting/ending:opacity-0"
|
|
6039
|
+
* + .cn-sheet-overlay "bg-black/10 supports-backdrop-filter:backdrop-blur-xs"
|
|
6040
|
+
* content: "starting/ending:opacity-0 data-[side=…]:starting/ending:translate-…-[2.5rem]"
|
|
6041
|
+
* + .cn-sheet-content "bg-popover text-popover-foreground fixed z-50 flex flex-col gap-4
|
|
6042
|
+
* bg-clip-padding text-sm shadow-lg transition duration-200 ease-in-out
|
|
6043
|
+
* bottom: inset-x-0 bottom-0 h-auto border-t · top: inset-x-0 top-0 h-auto border-b
|
|
6044
|
+
* left: inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm · right: … right-0 … border-l"
|
|
6045
|
+
* close: Button ghost icon-sm, "absolute top-4 right-4"
|
|
6046
|
+
* header: "flex flex-col gap-1.5 p-4"; footer: "mt-auto flex flex-col gap-2 p-4"
|
|
6047
|
+
* title: "text-foreground font-medium" (+ cn-font-heading); description: "text-muted-foreground text-sm"
|
|
6048
|
+
*
|
|
6049
|
+
* The slide is the shared popup keyframes (core/popup/popup.css) with the sheet's
|
|
6050
|
+
* values: from 2.5rem off its edge and transparent, 200ms.
|
|
6051
|
+
*
|
|
6052
|
+
* Tokens (docs/11-tokens.md): `--pont2-sheet-*`, resolved on the content.
|
|
6053
|
+
*/
|
|
6054
|
+
@layer pont2.primitives {
|
|
6055
|
+
:is(pont2-prim-sheet-content, [data-pont2-sheet-content]) {
|
|
6056
|
+
/** @token Background */
|
|
6057
|
+
--_pont2-sheet-bg: var(--pont2-sheet-bg, var(--pont2-sem-color-popover));
|
|
6058
|
+
/** @token Text */
|
|
6059
|
+
--_pont2-sheet-fg: var(--pont2-sheet-fg, var(--pont2-sem-color-popover-foreground));
|
|
6060
|
+
/** @token Border */
|
|
6061
|
+
--_pont2-sheet-border-color: var(--pont2-sheet-border-color, var(--pont2-sem-color-border));
|
|
6062
|
+
/** @token Shadow */
|
|
6063
|
+
--_pont2-sheet-shadow: var(--pont2-sheet-shadow, var(--pont2-sem-shadow-lg));
|
|
6064
|
+
/** @token Width (left and right sheets) */
|
|
6065
|
+
--_pont2-sheet-width: var(--pont2-sheet-width, 75%);
|
|
6066
|
+
/** @token Maximum width (left and right sheets) */
|
|
6067
|
+
--_pont2-sheet-max-width: var(--pont2-sheet-max-width, 24rem);
|
|
6068
|
+
/** @token Gap */
|
|
6069
|
+
--_pont2-sheet-gap: var(--pont2-sheet-gap, 1rem);
|
|
6070
|
+
/** @token Overlay */
|
|
6071
|
+
--_pont2-sheet-overlay-bg: var(--pont2-sheet-overlay-bg, oklch(0 0 0 / 10%));
|
|
6072
|
+
}
|
|
6073
|
+
|
|
6074
|
+
:is(pont2-prim-sheet-content, [data-pont2-sheet-content]) {
|
|
6075
|
+
display: flex;
|
|
6076
|
+
flex-direction: column;
|
|
6077
|
+
box-sizing: border-box;
|
|
6078
|
+
gap: var(--_pont2-sheet-gap);
|
|
6079
|
+
margin: 0;
|
|
6080
|
+
overflow-y: auto;
|
|
6081
|
+
border: 0 solid var(--_pont2-sheet-border-color);
|
|
6082
|
+
background-color: var(--_pont2-sheet-bg);
|
|
6083
|
+
background-clip: padding-box;
|
|
6084
|
+
color: var(--_pont2-sheet-fg);
|
|
6085
|
+
font-size: var(--pont2-sem-text-sm);
|
|
6086
|
+
line-height: var(--pont2-sem-text-sm--line-height);
|
|
6087
|
+
outline: none;
|
|
6088
|
+
--pont2-shadow: var(--_pont2-sheet-shadow);
|
|
6089
|
+
box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
|
|
6090
|
+
/* the slide (core/popup/popup.css keyframes) */
|
|
6091
|
+
--_pont2-popup-duration: 200ms;
|
|
6092
|
+
--_pont2-popup-enter-scale: 1;
|
|
6093
|
+
--_pont2-popup-exit-scale: 1;
|
|
6094
|
+
}
|
|
6095
|
+
:is(pont2-prim-sheet-content, [data-pont2-sheet-content])::backdrop {
|
|
6096
|
+
background-color: var(--_pont2-sheet-overlay-bg);
|
|
6097
|
+
}
|
|
6098
|
+
|
|
6099
|
+
[data-pont2-sheet-content][data-side="right"],
|
|
6100
|
+
[data-pont2-sheet-content]:not([data-side]) {
|
|
6101
|
+
inset: 0 0 0 auto;
|
|
6102
|
+
width: var(--_pont2-sheet-width);
|
|
6103
|
+
height: 100%;
|
|
6104
|
+
border-left-width: var(--pont2-sem-border-width);
|
|
6105
|
+
--_pont2-popup-enter-translate-x: 2.5rem;
|
|
6106
|
+
--_pont2-popup-exit-translate-x: 2.5rem;
|
|
6107
|
+
--_pont2-popup-enter-translate-y: 0;
|
|
6108
|
+
}
|
|
6109
|
+
[data-pont2-sheet-content][data-side="left"] {
|
|
6110
|
+
inset: 0 auto 0 0;
|
|
6111
|
+
width: var(--_pont2-sheet-width);
|
|
6112
|
+
height: 100%;
|
|
6113
|
+
border-right-width: var(--pont2-sem-border-width);
|
|
6114
|
+
--_pont2-popup-enter-translate-x: -2.5rem;
|
|
6115
|
+
--_pont2-popup-exit-translate-x: -2.5rem;
|
|
6116
|
+
--_pont2-popup-enter-translate-y: 0;
|
|
6117
|
+
}
|
|
6118
|
+
[data-pont2-sheet-content][data-side="top"] {
|
|
6119
|
+
inset: 0 0 auto 0;
|
|
6120
|
+
width: 100%;
|
|
6121
|
+
height: auto;
|
|
6122
|
+
border-bottom-width: var(--pont2-sem-border-width);
|
|
6123
|
+
--_pont2-popup-enter-translate-x: 0;
|
|
6124
|
+
--_pont2-popup-enter-translate-y: -2.5rem;
|
|
6125
|
+
--_pont2-popup-exit-translate-y: -2.5rem;
|
|
6126
|
+
}
|
|
6127
|
+
[data-pont2-sheet-content][data-side="bottom"] {
|
|
6128
|
+
inset: auto 0 0 0;
|
|
6129
|
+
width: 100%;
|
|
6130
|
+
height: auto;
|
|
6131
|
+
border-top-width: var(--pont2-sem-border-width);
|
|
6132
|
+
--_pont2-popup-enter-translate-x: 0;
|
|
6133
|
+
--_pont2-popup-enter-translate-y: 2.5rem;
|
|
6134
|
+
--_pont2-popup-exit-translate-y: 2.5rem;
|
|
6135
|
+
}
|
|
6136
|
+
@media (width >= 40rem) {
|
|
6137
|
+
[data-pont2-sheet-content]:is([data-side="left"], [data-side="right"], :not([data-side])) {
|
|
6138
|
+
max-width: var(--_pont2-sheet-max-width);
|
|
6139
|
+
}
|
|
6140
|
+
}
|
|
6141
|
+
|
|
6142
|
+
[data-pont2-sheet-content] > [data-pont2-modal-close] {
|
|
6143
|
+
position: absolute;
|
|
6144
|
+
top: 1rem;
|
|
6145
|
+
right: 1rem;
|
|
6146
|
+
}
|
|
6147
|
+
|
|
6148
|
+
:is(pont2-prim-sheet-header, [data-pont2-sheet-header]) {
|
|
6149
|
+
display: flex;
|
|
6150
|
+
flex-direction: column;
|
|
6151
|
+
gap: 0.375rem;
|
|
6152
|
+
padding: 1rem;
|
|
6153
|
+
}
|
|
6154
|
+
:is(pont2-prim-sheet-footer, [data-pont2-sheet-footer]) {
|
|
6155
|
+
display: flex;
|
|
6156
|
+
flex-direction: column;
|
|
6157
|
+
gap: 0.5rem;
|
|
6158
|
+
margin-top: auto;
|
|
6159
|
+
padding: 1rem;
|
|
6160
|
+
}
|
|
6161
|
+
:is(pont2-prim-sheet-title, [data-pont2-sheet-title]) {
|
|
6162
|
+
display: block;
|
|
6163
|
+
margin: 0;
|
|
6164
|
+
color: var(--pont2-sem-color-foreground);
|
|
6165
|
+
font-family: var(--pont2-sem-font-heading);
|
|
6166
|
+
font-weight: var(--pont2-sem-font-weight-medium);
|
|
6167
|
+
}
|
|
6168
|
+
:is(pont2-prim-sheet-description, [data-pont2-sheet-description]) {
|
|
6169
|
+
display: block;
|
|
6170
|
+
margin: 0;
|
|
6171
|
+
color: var(--pont2-sem-color-muted-foreground);
|
|
6172
|
+
font-size: var(--pont2-sem-text-sm);
|
|
6173
|
+
line-height: var(--pont2-sem-text-sm--line-height);
|
|
6174
|
+
}
|
|
6175
|
+
}
|
|
6176
|
+
|
|
6177
|
+
/* ../primitives/drawer/drawer.css */
|
|
6178
|
+
/*
|
|
6179
|
+
* Drawer. shadcn (Base UI Drawer, Vega):
|
|
6180
|
+
* overlay: "fixed inset-0 z-50 transition-opacity duration-450 ease-[cubic-bezier(0.32,0.72,0,1)]
|
|
6181
|
+
* starting/ending:opacity-0" + .cn-drawer-overlay "bg-black/10 supports-backdrop-filter:backdrop-blur-xs"
|
|
6182
|
+
* popup: "fixed z-50 flex flex-col duration-450 ease-[cubic-bezier(0.22,1,0.36,1)]
|
|
6183
|
+
* starting/ending:transform-(--closed-transform)" (translate 100% off its edge)
|
|
6184
|
+
* y axis: "inset-x-0 max-h-[calc(100dvh-6rem)]"; x axis: "inset-y-0 flex-row w-3/4 sm:w-[24rem]"
|
|
6185
|
+
* + .cn-drawer-popup "bg-popover text-popover-foreground text-sm
|
|
6186
|
+
* down: rounded-t-xl border-t · up: rounded-b-xl border-b · left: rounded-r-xl border-r · right: rounded-l-xl border-l"
|
|
6187
|
+
* content (inner): "flex min-h-0 flex-1 flex-col overflow-hidden overscroll-contain"
|
|
6188
|
+
* swipe handle: after:bg-muted after:rounded-full; y: h-3 w-full justify-center after:h-1.5 after:w-[100px]
|
|
6189
|
+
* header: "flex shrink-0 flex-col gap-0.5 p-4 pb-0 md:gap-1.5 md:text-left y-axis:text-center"
|
|
6190
|
+
* footer: "mt-auto flex shrink-0 flex-col gap-2 p-4 pt-0"
|
|
6191
|
+
* title: "text-foreground font-medium"; description: "text-muted-foreground text-sm text-balance"
|
|
6192
|
+
*
|
|
6193
|
+
* pont2 has one element for popup and inner content (drawer.ts), so the column layout
|
|
6194
|
+
* sits on the popup itself. Swiping is not implemented (docs/primitives/drawer.md).
|
|
6195
|
+
*
|
|
6196
|
+
* Tokens (docs/11-tokens.md): `--pont2-drawer-*`, resolved on the content.
|
|
6197
|
+
*/
|
|
6198
|
+
@layer pont2.primitives {
|
|
6199
|
+
:is(pont2-prim-drawer-content, [data-pont2-drawer-content]) {
|
|
6200
|
+
/** @token Background */
|
|
6201
|
+
--_pont2-drawer-bg: var(--pont2-drawer-bg, var(--pont2-sem-color-popover));
|
|
6202
|
+
/** @token Text */
|
|
6203
|
+
--_pont2-drawer-fg: var(--pont2-drawer-fg, var(--pont2-sem-color-popover-foreground));
|
|
6204
|
+
/** @token Border */
|
|
6205
|
+
--_pont2-drawer-border-color: var(--pont2-drawer-border-color, var(--pont2-sem-color-border));
|
|
6206
|
+
/** @token Corner radius */
|
|
6207
|
+
--_pont2-drawer-radius: var(--pont2-drawer-radius, var(--pont2-sem-radius-xl));
|
|
6208
|
+
/** @token Width (left and right drawers) */
|
|
6209
|
+
--_pont2-drawer-width: var(--pont2-drawer-width, 75%);
|
|
6210
|
+
/** @token Overlay */
|
|
6211
|
+
--_pont2-drawer-overlay-bg: var(--pont2-drawer-overlay-bg, oklch(0 0 0 / 10%));
|
|
6212
|
+
}
|
|
6213
|
+
|
|
6214
|
+
:is(pont2-prim-drawer-content, [data-pont2-drawer-content]) {
|
|
6215
|
+
display: flex;
|
|
6216
|
+
flex-direction: column;
|
|
6217
|
+
box-sizing: border-box;
|
|
6218
|
+
margin: 0;
|
|
6219
|
+
overflow: hidden;
|
|
6220
|
+
overscroll-behavior: contain;
|
|
6221
|
+
border: 0 solid var(--_pont2-drawer-border-color);
|
|
6222
|
+
background-color: var(--_pont2-drawer-bg);
|
|
6223
|
+
color: var(--_pont2-drawer-fg);
|
|
6224
|
+
font-size: var(--pont2-sem-text-sm);
|
|
6225
|
+
line-height: var(--pont2-sem-text-sm--line-height);
|
|
6226
|
+
outline: none;
|
|
6227
|
+
--_pont2-popup-duration: 450ms;
|
|
6228
|
+
--_pont2-popup-enter-opacity: 1;
|
|
6229
|
+
--_pont2-popup-exit-opacity: 1;
|
|
6230
|
+
--_pont2-popup-enter-scale: 1;
|
|
6231
|
+
--_pont2-popup-exit-scale: 1;
|
|
6232
|
+
}
|
|
6233
|
+
[data-pont2-drawer-content]:is([data-open], [data-closed]) {
|
|
6234
|
+
animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
|
|
6235
|
+
}
|
|
6236
|
+
:is(pont2-prim-drawer-content, [data-pont2-drawer-content])::backdrop {
|
|
6237
|
+
background-color: var(--_pont2-drawer-overlay-bg);
|
|
6238
|
+
}
|
|
6239
|
+
|
|
6240
|
+
[data-pont2-drawer-content]:is([data-swipe-direction="down"], :not([data-swipe-direction])) {
|
|
6241
|
+
inset: auto 0 0 0;
|
|
6242
|
+
max-height: calc(100dvh - 6rem);
|
|
6243
|
+
border-top-width: var(--pont2-sem-border-width);
|
|
6244
|
+
border-radius: var(--_pont2-drawer-radius) var(--_pont2-drawer-radius) 0 0;
|
|
6245
|
+
--_pont2-popup-enter-translate-x: 0;
|
|
6246
|
+
--_pont2-popup-enter-translate-y: calc(100% + 2px);
|
|
6247
|
+
--_pont2-popup-exit-translate-y: calc(100% + 2px);
|
|
6248
|
+
}
|
|
6249
|
+
[data-pont2-drawer-content][data-swipe-direction="up"] {
|
|
6250
|
+
inset: 0 0 auto 0;
|
|
6251
|
+
max-height: calc(100dvh - 6rem);
|
|
6252
|
+
border-bottom-width: var(--pont2-sem-border-width);
|
|
6253
|
+
border-radius: 0 0 var(--_pont2-drawer-radius) var(--_pont2-drawer-radius);
|
|
6254
|
+
--_pont2-popup-enter-translate-x: 0;
|
|
6255
|
+
--_pont2-popup-enter-translate-y: calc(-100% - 2px);
|
|
6256
|
+
--_pont2-popup-exit-translate-y: calc(-100% - 2px);
|
|
6257
|
+
}
|
|
6258
|
+
[data-pont2-drawer-content][data-swipe-direction="left"] {
|
|
6259
|
+
inset: 0 auto 0 0;
|
|
6260
|
+
width: var(--_pont2-drawer-width);
|
|
6261
|
+
border-right-width: var(--pont2-sem-border-width);
|
|
6262
|
+
border-radius: 0 var(--_pont2-drawer-radius) var(--_pont2-drawer-radius) 0;
|
|
6263
|
+
--_pont2-popup-enter-translate-y: 0;
|
|
6264
|
+
--_pont2-popup-enter-translate-x: calc(-100% - 2px);
|
|
6265
|
+
--_pont2-popup-exit-translate-x: calc(-100% - 2px);
|
|
6266
|
+
}
|
|
6267
|
+
[data-pont2-drawer-content][data-swipe-direction="right"] {
|
|
6268
|
+
inset: 0 0 0 auto;
|
|
6269
|
+
width: var(--_pont2-drawer-width);
|
|
6270
|
+
border-left-width: var(--pont2-sem-border-width);
|
|
6271
|
+
border-radius: var(--_pont2-drawer-radius) 0 0 var(--_pont2-drawer-radius);
|
|
6272
|
+
--_pont2-popup-enter-translate-y: 0;
|
|
6273
|
+
--_pont2-popup-enter-translate-x: calc(100% + 2px);
|
|
6274
|
+
--_pont2-popup-exit-translate-x: calc(100% + 2px);
|
|
6275
|
+
}
|
|
6276
|
+
@media (width >= 40rem) {
|
|
6277
|
+
[data-pont2-drawer-content][data-swipe-axis="x"] {
|
|
6278
|
+
width: min(var(--_pont2-drawer-width), 24rem);
|
|
6279
|
+
}
|
|
6280
|
+
}
|
|
6281
|
+
|
|
6282
|
+
/* The grab handle (show-swipe-handle): first in the column, a 100px × 6px pill. */
|
|
6283
|
+
[data-pont2-drawer-swipe-handle] {
|
|
6284
|
+
order: -1;
|
|
6285
|
+
display: flex;
|
|
6286
|
+
flex-shrink: 0;
|
|
6287
|
+
justify-content: center;
|
|
6288
|
+
align-items: flex-end;
|
|
6289
|
+
height: 0.75rem;
|
|
6290
|
+
cursor: grab;
|
|
6291
|
+
}
|
|
6292
|
+
[data-pont2-drawer-swipe-handle]::after {
|
|
6293
|
+
content: "";
|
|
6294
|
+
display: block;
|
|
6295
|
+
width: 100px;
|
|
6296
|
+
height: 0.375rem;
|
|
6297
|
+
border-radius: var(--pont2-sem-radius-full);
|
|
6298
|
+
background-color: var(--pont2-sem-color-muted);
|
|
6299
|
+
}
|
|
6300
|
+
[data-pont2-drawer-content][data-swipe-axis="x"] > [data-pont2-drawer-swipe-handle] {
|
|
6301
|
+
position: absolute;
|
|
6302
|
+
inset-block: 0;
|
|
6303
|
+
width: 0.75rem;
|
|
6304
|
+
height: auto;
|
|
6305
|
+
align-items: center;
|
|
6306
|
+
}
|
|
6307
|
+
[data-pont2-drawer-content][data-swipe-direction="right"] > [data-pont2-drawer-swipe-handle] {
|
|
6308
|
+
left: 0;
|
|
6309
|
+
}
|
|
6310
|
+
[data-pont2-drawer-content][data-swipe-direction="left"] > [data-pont2-drawer-swipe-handle] {
|
|
6311
|
+
right: 0;
|
|
6312
|
+
}
|
|
6313
|
+
[data-pont2-drawer-content][data-swipe-direction="up"] > [data-pont2-drawer-swipe-handle] {
|
|
6314
|
+
order: 9999;
|
|
6315
|
+
align-items: flex-start;
|
|
6316
|
+
}
|
|
6317
|
+
[data-pont2-drawer-content][data-swipe-axis="x"] > [data-pont2-drawer-swipe-handle]::after {
|
|
6318
|
+
width: 0.375rem;
|
|
6319
|
+
height: 100px;
|
|
6320
|
+
}
|
|
6321
|
+
|
|
6322
|
+
:is(pont2-prim-drawer-header, [data-pont2-drawer-header]) {
|
|
6323
|
+
display: flex;
|
|
6324
|
+
flex-direction: column;
|
|
6325
|
+
flex-shrink: 0;
|
|
6326
|
+
gap: 0.125rem;
|
|
6327
|
+
padding: 1rem 1rem 0;
|
|
6328
|
+
}
|
|
6329
|
+
[data-pont2-drawer-content][data-swipe-axis="y"] :is(pont2-prim-drawer-header, [data-pont2-drawer-header]) {
|
|
6330
|
+
text-align: center;
|
|
6331
|
+
}
|
|
6332
|
+
@media (width >= 48rem) {
|
|
6333
|
+
:is(pont2-prim-drawer-header, [data-pont2-drawer-header]) {
|
|
6334
|
+
gap: 0.375rem;
|
|
6335
|
+
}
|
|
6336
|
+
[data-pont2-drawer-content] :is(pont2-prim-drawer-header, [data-pont2-drawer-header]) {
|
|
6337
|
+
text-align: left;
|
|
6338
|
+
}
|
|
6339
|
+
}
|
|
6340
|
+
:is(pont2-prim-drawer-footer, [data-pont2-drawer-footer]) {
|
|
6341
|
+
display: flex;
|
|
6342
|
+
flex-direction: column;
|
|
6343
|
+
flex-shrink: 0;
|
|
6344
|
+
gap: 0.5rem;
|
|
6345
|
+
margin-top: auto;
|
|
6346
|
+
padding: 0 1rem 1rem;
|
|
6347
|
+
}
|
|
6348
|
+
:is(pont2-prim-drawer-title, [data-pont2-drawer-title]) {
|
|
6349
|
+
display: block;
|
|
6350
|
+
margin: 0;
|
|
6351
|
+
color: var(--pont2-sem-color-foreground);
|
|
6352
|
+
font-family: var(--pont2-sem-font-heading);
|
|
6353
|
+
font-weight: var(--pont2-sem-font-weight-medium);
|
|
6354
|
+
}
|
|
6355
|
+
:is(pont2-prim-drawer-description, [data-pont2-drawer-description]) {
|
|
6356
|
+
display: block;
|
|
6357
|
+
margin: 0;
|
|
6358
|
+
color: var(--pont2-sem-color-muted-foreground);
|
|
6359
|
+
font-size: var(--pont2-sem-text-sm);
|
|
6360
|
+
line-height: var(--pont2-sem-text-sm--line-height);
|
|
6361
|
+
text-wrap: balance;
|
|
6362
|
+
}
|
|
6363
|
+
}
|
|
6364
|
+
|
|
6365
|
+
/* ../primitives/hover-card/hover-card.css */
|
|
6366
|
+
/*
|
|
6367
|
+
* Hover Card. shadcn (Base UI Preview Card, Vega):
|
|
6368
|
+
* content: "z-50 origin-(--transform-origin) outline-hidden" + .cn-hover-card-content
|
|
6369
|
+
* "fade/zoom-95, slide-in-from-<side>-2, ring-foreground/10 bg-popover
|
|
6370
|
+
* text-popover-foreground w-64 rounded-lg p-4 text-sm shadow-md ring-1 duration-100"
|
|
6371
|
+
* (enter/exit: core/popup/popup.css)
|
|
6372
|
+
*
|
|
6373
|
+
* Tokens (docs/11-tokens.md): `--pont2-hover-card-*`, resolved on the content.
|
|
6374
|
+
*/
|
|
6375
|
+
@layer pont2.primitives {
|
|
6376
|
+
:is(pont2-prim-hover-card-content, [data-pont2-hover-card-content]) {
|
|
6377
|
+
/** @token Background */
|
|
6378
|
+
--_pont2-hover-card-bg: var(--pont2-hover-card-bg, var(--pont2-sem-color-popover));
|
|
6379
|
+
/** @token Text */
|
|
6380
|
+
--_pont2-hover-card-fg: var(--pont2-hover-card-fg, var(--pont2-sem-color-popover-foreground));
|
|
6381
|
+
/** @token Border */
|
|
6382
|
+
--_pont2-hover-card-border-color: var(--pont2-hover-card-border-color, color-mix(in oklab, var(--pont2-sem-color-foreground) 10%, transparent));
|
|
6383
|
+
/** @token Corner radius */
|
|
6384
|
+
--_pont2-hover-card-radius: var(--pont2-hover-card-radius, var(--pont2-sem-radius-lg));
|
|
6385
|
+
/** @token Shadow */
|
|
6386
|
+
--_pont2-hover-card-shadow: var(--pont2-hover-card-shadow, var(--pont2-sem-shadow-md));
|
|
6387
|
+
/** @token Width */
|
|
6388
|
+
--_pont2-hover-card-width: var(--pont2-hover-card-width, 16rem);
|
|
6389
|
+
/** @token Horizontal padding */
|
|
6390
|
+
--_pont2-hover-card-padding-x: var(--pont2-hover-card-padding-x, 1rem);
|
|
6391
|
+
/** @token Vertical padding */
|
|
6392
|
+
--_pont2-hover-card-padding-y: var(--pont2-hover-card-padding-y, 1rem);
|
|
6393
|
+
}
|
|
6394
|
+
|
|
6395
|
+
:is(pont2-prim-hover-card-content, [data-pont2-hover-card-content]) {
|
|
6396
|
+
display: block;
|
|
6397
|
+
box-sizing: border-box;
|
|
6398
|
+
width: var(--_pont2-hover-card-width);
|
|
6399
|
+
max-width: var(--pont2-available-width);
|
|
6400
|
+
padding: var(--_pont2-hover-card-padding-y) var(--_pont2-hover-card-padding-x);
|
|
6401
|
+
border-radius: var(--_pont2-hover-card-radius);
|
|
6402
|
+
background-color: var(--_pont2-hover-card-bg);
|
|
6403
|
+
color: var(--_pont2-hover-card-fg);
|
|
6404
|
+
font-size: var(--pont2-sem-text-sm);
|
|
6405
|
+
line-height: var(--pont2-sem-text-sm--line-height);
|
|
6406
|
+
outline: none;
|
|
6407
|
+
--pont2-shadow: var(--_pont2-hover-card-shadow);
|
|
6408
|
+
--pont2-ring-shadow: 0 0 0 var(--pont2-sem-border-width) var(--_pont2-hover-card-border-color);
|
|
6409
|
+
box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
|
|
6410
|
+
}
|
|
6411
|
+
}
|
|
6412
|
+
|
|
6413
|
+
/* ../primitives/sonner/sonner.css */
|
|
6414
|
+
/*
|
|
6415
|
+
* Toaster: shadcn's Sonner (components/ui/sonner.tsx, Vega). shadcn themes Sonner with
|
|
6416
|
+
* --normal-bg: var(--popover); --normal-text: var(--popover-foreground);
|
|
6417
|
+
* --normal-border: var(--border); --border-radius: var(--radius)
|
|
6418
|
+
* toastOptions.classNames.toast: .cn-toast "rounded-2xl"
|
|
6419
|
+
* and lucide icons at size-4 (the loading one animate-spin). Sonner's own stylesheet
|
|
6420
|
+
* gives the layout ported here: a 356px column 24px from the edge (16px and full width
|
|
6421
|
+
* below 600px), 14px apart; each toast a flex row, padding 16px, 1px border,
|
|
6422
|
+
* shadow 0 4px 12px #0000001a, 13px text, title 500 / description 400; buttons 24px
|
|
6423
|
+
* high, 12px text, radius 4px, the action in the toast's text colour; the × button a
|
|
6424
|
+
* 20px circle on the corner; toasts slide in from their edge and fade out.
|
|
6425
|
+
*
|
|
6426
|
+
* Tokens (docs/11-tokens.md): `--pont2-toast-*`, resolved on the toaster.
|
|
6427
|
+
*/
|
|
6428
|
+
@layer pont2.primitives {
|
|
6429
|
+
:is(pont2-prim-toaster, [data-pont2-toaster]) {
|
|
6430
|
+
/** @token component=toast Background */
|
|
6431
|
+
--_pont2-toast-bg: var(--pont2-toast-bg, var(--pont2-sem-color-popover));
|
|
6432
|
+
/** @token component=toast Text */
|
|
6433
|
+
--_pont2-toast-fg: var(--pont2-toast-fg, var(--pont2-sem-color-popover-foreground));
|
|
6434
|
+
/** @token component=toast Border */
|
|
6435
|
+
--_pont2-toast-border-color: var(--pont2-toast-border-color, var(--pont2-sem-color-border));
|
|
6436
|
+
/** @token component=toast Corner radius */
|
|
6437
|
+
--_pont2-toast-radius: var(--pont2-toast-radius, var(--pont2-sem-radius-2xl));
|
|
6438
|
+
/** @token component=toast Shadow */
|
|
6439
|
+
--_pont2-toast-shadow: var(--pont2-toast-shadow, 0 4px 12px oklch(0 0 0 / 10%));
|
|
6440
|
+
/** @token component=toast Width */
|
|
6441
|
+
--_pont2-toast-width: var(--pont2-toast-width, 356px);
|
|
6442
|
+
--_pont2-toaster-offset: 24px;
|
|
6443
|
+
}
|
|
6444
|
+
|
|
6445
|
+
/* The section: a popover in the top layer, with the UA popover box undone. */
|
|
6446
|
+
:is(pont2-prim-toaster, [data-pont2-toaster]) {
|
|
6447
|
+
position: fixed;
|
|
6448
|
+
inset: auto;
|
|
6449
|
+
width: var(--_pont2-toast-width);
|
|
6450
|
+
height: auto;
|
|
6451
|
+
margin: 0;
|
|
6452
|
+
padding: 0;
|
|
6453
|
+
border: 0;
|
|
6454
|
+
overflow: visible;
|
|
6455
|
+
background: transparent;
|
|
6456
|
+
color: var(--_pont2-toast-fg);
|
|
6457
|
+
font-family: var(--pont2-sem-font-body);
|
|
6458
|
+
outline: none;
|
|
6459
|
+
}
|
|
6460
|
+
:is(pont2-prim-toaster, [data-pont2-toaster]):not(:popover-open) {
|
|
6461
|
+
display: none;
|
|
6462
|
+
}
|
|
6463
|
+
[data-pont2-toaster][data-y-position="bottom"] {
|
|
6464
|
+
bottom: var(--_pont2-toaster-offset);
|
|
6465
|
+
}
|
|
6466
|
+
[data-pont2-toaster][data-y-position="top"] {
|
|
6467
|
+
top: var(--_pont2-toaster-offset);
|
|
6468
|
+
}
|
|
6469
|
+
[data-pont2-toaster][data-x-position="right"] {
|
|
6470
|
+
right: var(--_pont2-toaster-offset);
|
|
6471
|
+
}
|
|
6472
|
+
[data-pont2-toaster][data-x-position="left"] {
|
|
6473
|
+
left: var(--_pont2-toaster-offset);
|
|
6474
|
+
}
|
|
6475
|
+
[data-pont2-toaster][data-x-position="center"] {
|
|
6476
|
+
left: 50%;
|
|
6477
|
+
translate: -50% 0;
|
|
6478
|
+
}
|
|
6479
|
+
@media (width < 600px) {
|
|
6480
|
+
:is(pont2-prim-toaster, [data-pont2-toaster]) {
|
|
6481
|
+
--_pont2-toaster-offset: 16px;
|
|
6482
|
+
width: calc(100% - 2 * var(--_pont2-toaster-offset));
|
|
6483
|
+
}
|
|
6484
|
+
[data-pont2-toaster][data-x-position] {
|
|
6485
|
+
left: var(--_pont2-toaster-offset);
|
|
6486
|
+
right: var(--_pont2-toaster-offset);
|
|
6487
|
+
translate: none;
|
|
6488
|
+
}
|
|
6489
|
+
}
|
|
6490
|
+
|
|
6491
|
+
[data-pont2-toaster] > [data-sonner-toaster] {
|
|
6492
|
+
display: flex;
|
|
6493
|
+
flex-direction: column;
|
|
6494
|
+
gap: 14px;
|
|
6495
|
+
margin: 0;
|
|
6496
|
+
padding: 0;
|
|
6497
|
+
list-style: none;
|
|
6498
|
+
}
|
|
6499
|
+
|
|
6500
|
+
[data-pont2-toast] {
|
|
6501
|
+
position: relative;
|
|
6502
|
+
display: flex;
|
|
6503
|
+
box-sizing: border-box;
|
|
6504
|
+
width: 100%;
|
|
6505
|
+
align-items: center;
|
|
6506
|
+
gap: 6px;
|
|
6507
|
+
padding: 16px;
|
|
6508
|
+
border: var(--pont2-sem-border-width) solid var(--_pont2-toast-border-color);
|
|
6509
|
+
border-radius: var(--_pont2-toast-radius);
|
|
6510
|
+
background-color: var(--_pont2-toast-bg);
|
|
6511
|
+
color: var(--_pont2-toast-fg);
|
|
6512
|
+
font-size: 13px;
|
|
6513
|
+
line-height: 1.5;
|
|
6514
|
+
--pont2-shadow: var(--_pont2-toast-shadow);
|
|
6515
|
+
box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
|
|
6516
|
+
outline: none;
|
|
6517
|
+
overflow-wrap: anywhere;
|
|
6518
|
+
animation: pont2-toast-enter 400ms var(--pont2-sem-ease-out);
|
|
6519
|
+
transition: opacity 400ms, translate 400ms;
|
|
6520
|
+
}
|
|
6521
|
+
[data-pont2-toast]:focus-visible {
|
|
6522
|
+
--pont2-ring-shadow: 0 0 0 var(--pont2-sem-ring-width) color-mix(in oklab, var(--pont2-sem-color-ring) 50%, transparent);
|
|
6523
|
+
}
|
|
6524
|
+
[data-pont2-toaster][data-y-position="top"] [data-pont2-toast] {
|
|
6525
|
+
animation-name: pont2-toast-enter-top;
|
|
6526
|
+
}
|
|
6527
|
+
[data-pont2-toast][data-removed] {
|
|
6528
|
+
opacity: 0;
|
|
6529
|
+
translate: 0 25%;
|
|
6530
|
+
transition-duration: 200ms;
|
|
6531
|
+
pointer-events: none;
|
|
6532
|
+
}
|
|
6533
|
+
[data-pont2-toaster][data-y-position="top"] [data-pont2-toast][data-removed] {
|
|
6534
|
+
translate: 0 -25%;
|
|
6535
|
+
}
|
|
6536
|
+
|
|
6537
|
+
[data-pont2-toast] > [data-icon] {
|
|
6538
|
+
position: relative;
|
|
6539
|
+
display: flex;
|
|
6540
|
+
flex-shrink: 0;
|
|
6541
|
+
width: 16px;
|
|
6542
|
+
height: 16px;
|
|
6543
|
+
margin-inline: -3px 4px;
|
|
6544
|
+
align-items: center;
|
|
6545
|
+
justify-content: flex-start;
|
|
6546
|
+
}
|
|
6547
|
+
[data-pont2-toast] > [data-icon] > svg {
|
|
6548
|
+
width: 1rem;
|
|
6549
|
+
height: 1rem;
|
|
6550
|
+
}
|
|
6551
|
+
[data-pont2-toast] svg[data-spin] {
|
|
6552
|
+
animation: var(--pont2-sem-animate-spin);
|
|
6553
|
+
}
|
|
6554
|
+
|
|
6555
|
+
[data-pont2-toast] > [data-content] {
|
|
6556
|
+
display: flex;
|
|
6557
|
+
flex-direction: column;
|
|
6558
|
+
gap: 2px;
|
|
6559
|
+
min-width: 0;
|
|
6560
|
+
}
|
|
6561
|
+
[data-pont2-toast] [data-title] {
|
|
6562
|
+
font-weight: var(--pont2-sem-font-weight-medium);
|
|
6563
|
+
line-height: 1.5;
|
|
6564
|
+
}
|
|
6565
|
+
[data-pont2-toast] [data-description] {
|
|
6566
|
+
font-weight: var(--pont2-sem-font-weight-normal);
|
|
6567
|
+
line-height: 1.4;
|
|
6568
|
+
color: var(--pont2-sem-color-muted-foreground);
|
|
6569
|
+
}
|
|
6570
|
+
|
|
6571
|
+
[data-pont2-toast] > [data-button] {
|
|
6572
|
+
display: flex;
|
|
6573
|
+
flex-shrink: 0;
|
|
6574
|
+
height: 24px;
|
|
6575
|
+
align-items: center;
|
|
6576
|
+
padding: 0 8px;
|
|
6577
|
+
border: 0;
|
|
6578
|
+
border-radius: 4px;
|
|
6579
|
+
background-color: var(--_pont2-toast-fg);
|
|
6580
|
+
color: var(--_pont2-toast-bg);
|
|
6581
|
+
font: inherit;
|
|
6582
|
+
font-size: 12px;
|
|
6583
|
+
font-weight: var(--pont2-sem-font-weight-medium);
|
|
6584
|
+
cursor: pointer;
|
|
6585
|
+
outline: none;
|
|
6586
|
+
transition: opacity 400ms, box-shadow 200ms;
|
|
6587
|
+
}
|
|
6588
|
+
[data-pont2-toast] > [data-button]:first-of-type {
|
|
6589
|
+
margin-inline-start: auto;
|
|
6590
|
+
}
|
|
6591
|
+
[data-pont2-toast] > [data-button][data-cancel] {
|
|
6592
|
+
background-color: color-mix(in oklab, var(--_pont2-toast-fg) 8%, transparent);
|
|
6593
|
+
color: var(--_pont2-toast-fg);
|
|
6594
|
+
}
|
|
6595
|
+
[data-pont2-toast] > :is([data-button], [data-close-button]):focus-visible {
|
|
6596
|
+
box-shadow: 0 0 0 2px color-mix(in oklab, var(--pont2-sem-color-ring) 50%, transparent);
|
|
6597
|
+
}
|
|
6598
|
+
|
|
6599
|
+
[data-pont2-toast] > [data-close-button] {
|
|
6600
|
+
position: absolute;
|
|
6601
|
+
top: 0;
|
|
6602
|
+
left: 0;
|
|
6603
|
+
display: flex;
|
|
6604
|
+
width: 20px;
|
|
6605
|
+
height: 20px;
|
|
6606
|
+
padding: 0;
|
|
6607
|
+
align-items: center;
|
|
6608
|
+
justify-content: center;
|
|
6609
|
+
translate: -35% -35%;
|
|
6610
|
+
border: var(--pont2-sem-border-width) solid var(--_pont2-toast-border-color);
|
|
6611
|
+
border-radius: var(--pont2-sem-radius-full);
|
|
6612
|
+
background-color: var(--_pont2-toast-bg);
|
|
6613
|
+
color: var(--_pont2-toast-fg);
|
|
6614
|
+
cursor: pointer;
|
|
6615
|
+
outline: none;
|
|
6616
|
+
}
|
|
6617
|
+
[data-pont2-toast] > [data-close-button] > svg {
|
|
6618
|
+
width: 12px;
|
|
6619
|
+
height: 12px;
|
|
6620
|
+
}
|
|
6621
|
+
|
|
6622
|
+
@media (prefers-reduced-motion: reduce) {
|
|
6623
|
+
[data-pont2-toast],
|
|
6624
|
+
[data-pont2-toast][data-removed] {
|
|
6625
|
+
animation: none;
|
|
6626
|
+
transition: none;
|
|
6627
|
+
translate: none;
|
|
6628
|
+
}
|
|
6629
|
+
}
|
|
6630
|
+
}
|
|
6631
|
+
|
|
6632
|
+
@keyframes pont2-toast-enter {
|
|
6633
|
+
from {
|
|
6634
|
+
opacity: 0;
|
|
6635
|
+
translate: 0 100%;
|
|
6636
|
+
}
|
|
6637
|
+
}
|
|
6638
|
+
@keyframes pont2-toast-enter-top {
|
|
6639
|
+
from {
|
|
6640
|
+
opacity: 0;
|
|
6641
|
+
translate: 0 -100%;
|
|
6642
|
+
}
|
|
6643
|
+
}
|
|
6644
|
+
|
|
6645
|
+
/* --- end overlays (C) --- */
|
|
6646
|
+
|
|
6647
|
+
/* Kit: composites (each file wraps itself in @layer pont2.kit). Aliases need no CSS:
|
|
6648
|
+
their tags are listed in the primitive recipes. docs/10-primitives-and-kit.md */
|
|
6649
|
+
/* ../kit/alert/alert.css */
|
|
6650
|
+
/*
|
|
6651
|
+
* <pont2-alert> (kit composite). Everything shadcn defines comes from the
|
|
6652
|
+
* primitive recipe (primitives/alert/alert.css), which matches this element
|
|
6653
|
+
* through [data-pont2-alert]. This file adds only what the composite adds:
|
|
6654
|
+
* the warning / success / info statuses, coloured like shadcn's destructive
|
|
6655
|
+
* variant ("text-destructive bg-card *:data-[slot=alert-description]:text-destructive/90").
|
|
6656
|
+
*
|
|
6657
|
+
* Tokens (docs/11-tokens.md §5): one colour per status, defaulting to the sem
|
|
6658
|
+
* status colours.
|
|
6659
|
+
*/
|
|
6660
|
+
@layer pont2.kit {
|
|
6661
|
+
/* ------------------------------------------------------------------ */
|
|
6662
|
+
/* Tokens */
|
|
6663
|
+
/* ------------------------------------------------------------------ */
|
|
6664
|
+
|
|
6665
|
+
pont2-alert {
|
|
6666
|
+
/* set per status below; declared here so nothing is inherited from an ancestor */
|
|
6667
|
+
--_pont2-alert-status-fg: currentColor;
|
|
6668
|
+
}
|
|
6669
|
+
pont2-alert[data-status="warning"] {
|
|
6670
|
+
/** @token Text (warning) */
|
|
6671
|
+
--_pont2-alert-status-fg: var(--pont2-alert-warning-fg, var(--pont2-sem-color-warning));
|
|
6672
|
+
}
|
|
6673
|
+
pont2-alert[data-status="success"] {
|
|
6674
|
+
/** @token Text (success) */
|
|
6675
|
+
--_pont2-alert-status-fg: var(--pont2-alert-success-fg, var(--pont2-sem-color-success));
|
|
6676
|
+
}
|
|
6677
|
+
pont2-alert[data-status="info"] {
|
|
6678
|
+
/** @token Text (info) */
|
|
6679
|
+
--_pont2-alert-status-fg: var(--pont2-alert-info-fg, var(--pont2-sem-color-info));
|
|
6680
|
+
}
|
|
6681
|
+
|
|
6682
|
+
/* ------------------------------------------------------------------ */
|
|
6683
|
+
/* Recipe */
|
|
6684
|
+
/* ------------------------------------------------------------------ */
|
|
6685
|
+
|
|
6686
|
+
pont2-alert:is([data-status="warning"], [data-status="success"], [data-status="info"]) {
|
|
6687
|
+
color: var(--_pont2-alert-status-fg);
|
|
6688
|
+
}
|
|
6689
|
+
pont2-alert:is([data-status="warning"], [data-status="success"], [data-status="info"]) > [data-slot="alert-description"] {
|
|
6690
|
+
color: color-mix(in oklab, var(--_pont2-alert-status-fg) 90%, transparent);
|
|
6691
|
+
}
|
|
6692
|
+
}
|
|
6693
|
+
|
|
6694
|
+
/* ../kit/avatar/avatar.css */
|
|
6695
|
+
/*
|
|
6696
|
+
* <pont2-avatar> (kit composite). All styling comes from the primitive recipe
|
|
6697
|
+
* (primitives/avatar/avatar.css) through [data-pont2-avatar] and the parts'
|
|
6698
|
+
* identity attributes; the composite adds no visual rules of its own.
|
|
6699
|
+
*
|
|
6700
|
+
* The file exists so every kit element has a stylesheet in @layer pont2.kit,
|
|
6701
|
+
* where composite-specific rules go when they appear.
|
|
6702
|
+
*/
|
|
6703
|
+
@layer pont2.kit {
|
|
6704
|
+
/* Size before upgrade, so a server-rendered composite does not collapse. */
|
|
6705
|
+
pont2-avatar:not([data-pont2-avatar]) {
|
|
6706
|
+
display: inline-flex;
|
|
6707
|
+
width: 2rem;
|
|
6708
|
+
height: 2rem;
|
|
6709
|
+
}
|
|
6710
|
+
pont2-avatar:not([data-pont2-avatar])[size="sm"] {
|
|
6711
|
+
width: 1.5rem;
|
|
6712
|
+
height: 1.5rem;
|
|
6713
|
+
}
|
|
6714
|
+
pont2-avatar:not([data-pont2-avatar])[size="lg"] {
|
|
6715
|
+
width: 2.5rem;
|
|
6716
|
+
height: 2.5rem;
|
|
6717
|
+
}
|
|
6718
|
+
}
|
|
6719
|
+
|
|
6720
|
+
/* ../kit/input-otp/input-otp.css */
|
|
6721
|
+
/*
|
|
6722
|
+
* <pont2-input-otp> (kit composite). All styling comes from the primitive
|
|
6723
|
+
* recipe (primitives/input-otp/input-otp.css) through [data-pont2-input-otp]
|
|
6724
|
+
* and the parts' identity attributes.
|
|
6725
|
+
*
|
|
6726
|
+
* Added here: the composite has no children before upgrade, so it reserves the
|
|
6727
|
+
* primitive's slot height (2.25rem) to avoid a layout shift.
|
|
6728
|
+
*/
|
|
6729
|
+
@layer pont2.kit {
|
|
6730
|
+
pont2-input-otp:not([data-pont2-input-otp]) {
|
|
6731
|
+
display: flex;
|
|
6732
|
+
min-height: 2.25rem;
|
|
6733
|
+
}
|
|
6734
|
+
}
|
|
6735
|
+
|
|
6736
|
+
/* ../kit/auth-button/auth-button.css */
|
|
6737
|
+
/*
|
|
6738
|
+
* Auth buttons (kit composites). All visual styling is the button primitive's
|
|
6739
|
+
* recipe (primitives/button/button.css) on the native <button>, including
|
|
6740
|
+
* shadcn's icon spacing (`has-data-[icon=inline-start]`) and the icon sizes.
|
|
6741
|
+
* The busy spinner is the spinner primitive's part.
|
|
6742
|
+
*
|
|
6743
|
+
* Added here:
|
|
6744
|
+
* - before upgrade the shell is empty, so it reserves a default button's
|
|
5623
6745
|
* height (h-9) to avoid a layout shift;
|
|
5624
6746
|
* - brand marks keep their shape at any button size;
|
|
5625
6747
|
* - provider-button tokens (docs/11-tokens.md §5): the provider button is an
|
|
@@ -6547,3 +7669,125 @@ layer(pont2.tokens);
|
|
|
6547
7669
|
color: var(--pont2-sem-color-muted-foreground);
|
|
6548
7670
|
}
|
|
6549
7671
|
}
|
|
7672
|
+
|
|
7673
|
+
/* ../kit/provider/provider.css */
|
|
7674
|
+
/*
|
|
7675
|
+
* <pont2-provider>, <pont2-signed-in>, <pont2-signed-out>: control elements. They add no box, so
|
|
7676
|
+
* the page lays out as if their children were written in their place.
|
|
7677
|
+
*/
|
|
7678
|
+
@layer pont2.kit {
|
|
7679
|
+
:is(pont2-provider, pont2-signed-in, pont2-signed-out, [data-pont2-provider], [data-pont2-auth-gate]) {
|
|
7680
|
+
display: contents;
|
|
7681
|
+
}
|
|
7682
|
+
}
|
|
7683
|
+
|
|
7684
|
+
/* ../kit/pagination/pagination.css */
|
|
7685
|
+
/*
|
|
7686
|
+
* <pont2-pagination>: the composite adds no styles of its own beyond the primitive
|
|
7687
|
+
* recipe (primitives/pagination/pagination.css), which styles the parts it renders.
|
|
7688
|
+
* While `disabled`, the whole pager reads as disabled.
|
|
7689
|
+
*/
|
|
7690
|
+
@layer pont2.kit {
|
|
7691
|
+
pont2-pagination[data-disabled] {
|
|
7692
|
+
cursor: not-allowed;
|
|
7693
|
+
}
|
|
7694
|
+
}
|
|
7695
|
+
|
|
7696
|
+
/* ../kit/data-table/data-table.css */
|
|
7697
|
+
/*
|
|
7698
|
+
* <pont2-data-table>: the Table primitive's recipe styles the table it renders
|
|
7699
|
+
* (primitives/table/table.css). The composite adds shadcn's data-table guide
|
|
7700
|
+
* details:
|
|
7701
|
+
* sortable header: Button variant="ghost" with an ArrowUpDown icon, pulled to the
|
|
7702
|
+
* cell's edge ("-ml-3" in the guide's examples)
|
|
7703
|
+
* empty row: "<TableCell colSpan={columns.length} className="h-24 text-center">"
|
|
7704
|
+
* actions: a ghost icon button with a MoreHorizontal icon, the menu end-aligned
|
|
7705
|
+
* loading: Skeleton bars ("h-4 w-full")
|
|
7706
|
+
*/
|
|
7707
|
+
@layer pont2.kit {
|
|
7708
|
+
pont2-data-table th[data-sortable] {
|
|
7709
|
+
padding-inline-start: 0;
|
|
7710
|
+
}
|
|
7711
|
+
pont2-data-table [data-pont2-data-table-sort] svg {
|
|
7712
|
+
width: 1rem;
|
|
7713
|
+
height: 1rem;
|
|
7714
|
+
}
|
|
7715
|
+
pont2-data-table [data-pont2-data-table-sort]:not(:hover) svg[data-icon-name="arrow-up-down"] {
|
|
7716
|
+
color: var(--pont2-sem-color-muted-foreground);
|
|
7717
|
+
}
|
|
7718
|
+
pont2-data-table :is(th, td)[data-align="end"] {
|
|
7719
|
+
text-align: end;
|
|
7720
|
+
}
|
|
7721
|
+
pont2-data-table :is(th, td)[data-align="center"] {
|
|
7722
|
+
text-align: center;
|
|
7723
|
+
}
|
|
7724
|
+
pont2-data-table th[data-sortable][data-align="end"] {
|
|
7725
|
+
padding-inline: 0;
|
|
7726
|
+
}
|
|
7727
|
+
pont2-data-table [data-pont2-data-table-actions] {
|
|
7728
|
+
width: 1px;
|
|
7729
|
+
text-align: end;
|
|
7730
|
+
}
|
|
7731
|
+
pont2-data-table [data-pont2-data-table-empty] > td {
|
|
7732
|
+
height: 6rem;
|
|
7733
|
+
text-align: center;
|
|
7734
|
+
color: var(--pont2-sem-color-muted-foreground);
|
|
7735
|
+
}
|
|
7736
|
+
pont2-data-table [data-pont2-data-table-empty]:hover {
|
|
7737
|
+
background-color: transparent;
|
|
7738
|
+
}
|
|
7739
|
+
pont2-data-table [data-pont2-data-table-skeleton] {
|
|
7740
|
+
width: 100%;
|
|
7741
|
+
min-width: 3rem;
|
|
7742
|
+
height: 1rem;
|
|
7743
|
+
}
|
|
7744
|
+
}
|
|
7745
|
+
|
|
7746
|
+
/* ../kit/badge-selector/badge-selector.css */
|
|
7747
|
+
/*
|
|
7748
|
+
* <pont2-badge-selector>: the Combobox primitive's recipe styles everything it renders
|
|
7749
|
+
* (primitives/combobox/combobox.css: the chips input, the popup, the items). The
|
|
7750
|
+
* composite only makes the chips box fill its container, as the legacy selector did.
|
|
7751
|
+
*/
|
|
7752
|
+
@layer pont2.kit {
|
|
7753
|
+
pont2-badge-selector > [data-pont2-combobox-chips] {
|
|
7754
|
+
width: 100%;
|
|
7755
|
+
}
|
|
7756
|
+
}
|
|
7757
|
+
|
|
7758
|
+
/* ../kit/multi-email-input/multi-email-input.css */
|
|
7759
|
+
/*
|
|
7760
|
+
* <pont2-multi-email-input>: the box, chips and input are the multiple Combobox's chips
|
|
7761
|
+
* recipe (primitives/combobox/combobox.css), rendered as parts; the message under it is a
|
|
7762
|
+
* Field description or error (primitives/field/field.css). Laid out like a Field: the box,
|
|
7763
|
+
* then the message, 0.5rem apart.
|
|
7764
|
+
*/
|
|
7765
|
+
@layer pont2.kit {
|
|
7766
|
+
pont2-multi-email-input {
|
|
7767
|
+
display: grid;
|
|
7768
|
+
gap: 0.5rem;
|
|
7769
|
+
min-width: 0;
|
|
7770
|
+
}
|
|
7771
|
+
pont2-multi-email-input > [data-pont2-multi-email-box] {
|
|
7772
|
+
width: 100%;
|
|
7773
|
+
}
|
|
7774
|
+
pont2-multi-email-input > [data-pont2-multi-email-count] {
|
|
7775
|
+
font-variant-numeric: tabular-nums;
|
|
7776
|
+
text-align: end;
|
|
7777
|
+
}
|
|
7778
|
+
}
|
|
7779
|
+
|
|
7780
|
+
/* ../kit/multi-select-filter/multi-select-filter.css */
|
|
7781
|
+
/*
|
|
7782
|
+
* <pont2-multi-select-filter>: the trigger is a Button, the menu the Dropdown Menu
|
|
7783
|
+
* primitive, the count a Badge (their recipes style them). shadcn's faceted filter puts
|
|
7784
|
+
* the count in a secondary badge after a separator; here it sits after the label with
|
|
7785
|
+
* the button's gap, made compact as in shadcn's "rounded-sm px-1 font-normal".
|
|
7786
|
+
*/
|
|
7787
|
+
@layer pont2.kit {
|
|
7788
|
+
[data-pont2-multi-select-filter-trigger] [data-pont2-multi-select-filter-count] {
|
|
7789
|
+
padding-inline: 0.25rem;
|
|
7790
|
+
border-radius: var(--pont2-sem-radius-sm);
|
|
7791
|
+
font-weight: var(--pont2-sem-font-weight-normal);
|
|
7792
|
+
}
|
|
7793
|
+
}
|