@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/styles.css
CHANGED
|
@@ -13,12 +13,9 @@
|
|
|
13
13
|
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700;800&display=swap');
|
|
14
14
|
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@100;300;400;700;900&display=swap');
|
|
15
15
|
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');
|
|
16
|
-
@import url("https://fonts.googleapis.com/css2?family=Geist:ital,wght@0,100..900;1,100..900&display=swap")
|
|
17
|
-
|
|
18
|
-
@import url("https://fonts.googleapis.com/css2?family=
|
|
19
|
-
layer(pont2.tokens);
|
|
20
|
-
@import url("https://fonts.googleapis.com/css2?family=Geist+Mono:ital,wght@0,100..900;1,100..900&display=swap")
|
|
21
|
-
layer(pont2.tokens);
|
|
16
|
+
@import url("https://fonts.googleapis.com/css2?family=Geist:ital,wght@0,100..900;1,100..900&display=swap");
|
|
17
|
+
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");
|
|
18
|
+
@import url("https://fonts.googleapis.com/css2?family=Geist+Mono:ital,wght@0,100..900;1,100..900&display=swap");
|
|
22
19
|
@layer pont-legacy {
|
|
23
20
|
|
|
24
21
|
/*
|
|
@@ -29173,6 +29170,93 @@ body {
|
|
|
29173
29170
|
}
|
|
29174
29171
|
}
|
|
29175
29172
|
|
|
29173
|
+
/* ../primitives/pagination/pagination.css */
|
|
29174
|
+
/*
|
|
29175
|
+
* Pagination. shadcn (Base UI, Vega):
|
|
29176
|
+
* nav: "mx-auto flex w-full justify-center"
|
|
29177
|
+
* content (ul): "flex items-center" + .cn-pagination-content "gap-1"
|
|
29178
|
+
* link: Button variant ghost (outline when active), size icon
|
|
29179
|
+
* previous / next: link size default + .cn-pagination-previous "pl-2!" / -next "pr-2!",
|
|
29180
|
+
* a ChevronLeft / ChevronRight icon (cn-rtl-flip) and text "hidden sm:block"
|
|
29181
|
+
* ellipsis: "flex items-center justify-center" + .cn-pagination-ellipsis "size-9
|
|
29182
|
+
* [&_svg:not([class*='size-'])]:size-4"
|
|
29183
|
+
*
|
|
29184
|
+
* The links are Button recipes (button.css), so their tokens are the Button's. The
|
|
29185
|
+
* previous / next chevrons are mask-drawn pseudo-elements: the native link's content
|
|
29186
|
+
* is the author's (pagination.ts).
|
|
29187
|
+
*/
|
|
29188
|
+
@layer pont2.primitives {
|
|
29189
|
+
:is(pont2-prim-pagination, pont2-pagination, [data-pont2-pagination]) {
|
|
29190
|
+
display: flex;
|
|
29191
|
+
width: 100%;
|
|
29192
|
+
margin-inline: auto;
|
|
29193
|
+
justify-content: center;
|
|
29194
|
+
}
|
|
29195
|
+
|
|
29196
|
+
:is(pont2-prim-pagination-content, [data-pont2-pagination-content]) {
|
|
29197
|
+
display: flex;
|
|
29198
|
+
align-items: center;
|
|
29199
|
+
gap: 0.25rem;
|
|
29200
|
+
margin: 0;
|
|
29201
|
+
padding: 0;
|
|
29202
|
+
list-style: none;
|
|
29203
|
+
}
|
|
29204
|
+
|
|
29205
|
+
:is(pont2-prim-pagination-item, [data-pont2-pagination-item]) {
|
|
29206
|
+
display: block;
|
|
29207
|
+
}
|
|
29208
|
+
|
|
29209
|
+
[data-slot="pagination-previous"][data-pont2-button] {
|
|
29210
|
+
padding-left: 0.5rem;
|
|
29211
|
+
}
|
|
29212
|
+
[data-slot="pagination-next"][data-pont2-button] {
|
|
29213
|
+
padding-right: 0.5rem;
|
|
29214
|
+
}
|
|
29215
|
+
[data-slot="pagination-previous"][data-pont2-button]::before,
|
|
29216
|
+
[data-slot="pagination-next"][data-pont2-button]::after {
|
|
29217
|
+
content: "";
|
|
29218
|
+
flex-shrink: 0;
|
|
29219
|
+
width: 1rem;
|
|
29220
|
+
height: 1rem;
|
|
29221
|
+
background-color: currentColor;
|
|
29222
|
+
-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;
|
|
29223
|
+
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;
|
|
29224
|
+
}
|
|
29225
|
+
/* ChevronRight is ChevronLeft mirrored; cn-rtl-flip mirrors both in RTL. */
|
|
29226
|
+
[data-slot="pagination-next"][data-pont2-button]::after {
|
|
29227
|
+
scale: -1 1;
|
|
29228
|
+
}
|
|
29229
|
+
[data-slot="pagination-previous"][data-pont2-button]:dir(rtl)::before {
|
|
29230
|
+
scale: -1 1;
|
|
29231
|
+
}
|
|
29232
|
+
[data-slot="pagination-next"][data-pont2-button]:dir(rtl)::after {
|
|
29233
|
+
scale: 1 1;
|
|
29234
|
+
}
|
|
29235
|
+
|
|
29236
|
+
[data-slot="pagination-previous-text"],
|
|
29237
|
+
[data-slot="pagination-next-text"] {
|
|
29238
|
+
display: none;
|
|
29239
|
+
}
|
|
29240
|
+
@media (width >= 40rem) {
|
|
29241
|
+
[data-slot="pagination-previous-text"],
|
|
29242
|
+
[data-slot="pagination-next-text"] {
|
|
29243
|
+
display: block;
|
|
29244
|
+
}
|
|
29245
|
+
}
|
|
29246
|
+
|
|
29247
|
+
:is(pont2-prim-pagination-ellipsis, [data-pont2-pagination-ellipsis]) {
|
|
29248
|
+
display: flex;
|
|
29249
|
+
width: 2.25rem;
|
|
29250
|
+
height: 2.25rem;
|
|
29251
|
+
align-items: center;
|
|
29252
|
+
justify-content: center;
|
|
29253
|
+
}
|
|
29254
|
+
:is(pont2-prim-pagination-ellipsis, [data-pont2-pagination-ellipsis]) > svg {
|
|
29255
|
+
width: 1rem;
|
|
29256
|
+
height: 1rem;
|
|
29257
|
+
}
|
|
29258
|
+
}
|
|
29259
|
+
|
|
29176
29260
|
/* --- end structural (A) --- */
|
|
29177
29261
|
|
|
29178
29262
|
/* --- widgets (B) --- */
|
|
@@ -30043,6 +30127,17 @@ body {
|
|
|
30043
30127
|
translate: var(--_pont2-popup-enter-translate-x, 0) var(--_pont2-popup-enter-translate-y, 0);
|
|
30044
30128
|
}
|
|
30045
30129
|
}
|
|
30130
|
+
/* Modal overlays (the popup's ::backdrop): tw-animate-css fade-in-0 / fade-out-0. */
|
|
30131
|
+
@keyframes pont2-backdrop-enter {
|
|
30132
|
+
from {
|
|
30133
|
+
opacity: 0;
|
|
30134
|
+
}
|
|
30135
|
+
}
|
|
30136
|
+
@keyframes pont2-backdrop-exit {
|
|
30137
|
+
to {
|
|
30138
|
+
opacity: 0;
|
|
30139
|
+
}
|
|
30140
|
+
}
|
|
30046
30141
|
@keyframes pont2-popup-exit {
|
|
30047
30142
|
to {
|
|
30048
30143
|
opacity: var(--_pont2-popup-exit-opacity, 1);
|
|
@@ -30108,7 +30203,8 @@ body {
|
|
|
30108
30203
|
}
|
|
30109
30204
|
|
|
30110
30205
|
@media (prefers-reduced-motion: reduce) {
|
|
30111
|
-
[data-pont2-popup]:is([data-open], [data-closed])
|
|
30206
|
+
[data-pont2-popup]:is([data-open], [data-closed]),
|
|
30207
|
+
[data-pont2-popup]:is([data-open], [data-closed])::backdrop {
|
|
30112
30208
|
animation: none;
|
|
30113
30209
|
}
|
|
30114
30210
|
}
|
|
@@ -30655,6 +30751,12 @@ body {
|
|
|
30655
30751
|
--_pont2-combobox-item-bg-focus: var(--pont2-combobox-item-bg-focus, var(--pont2-sem-color-accent));
|
|
30656
30752
|
/** @token Text when highlighted */
|
|
30657
30753
|
--_pont2-combobox-item-fg-focus: var(--pont2-combobox-item-fg-focus, var(--pont2-sem-color-accent-foreground));
|
|
30754
|
+
/** @token Background */
|
|
30755
|
+
--_pont2-combobox-chip-bg: var(--pont2-combobox-chip-bg, var(--pont2-sem-color-muted));
|
|
30756
|
+
/** @token Text */
|
|
30757
|
+
--_pont2-combobox-chip-fg: var(--pont2-combobox-chip-fg, var(--pont2-sem-color-foreground));
|
|
30758
|
+
/** @token Corner radius */
|
|
30759
|
+
--_pont2-combobox-chip-radius: var(--pont2-combobox-chip-radius, var(--pont2-sem-radius-sm));
|
|
30658
30760
|
}
|
|
30659
30761
|
|
|
30660
30762
|
/* ComboboxInput = InputGroup: "relative flex w-full min-w-0 items-center outline-none"
|
|
@@ -30883,6 +30985,100 @@ body {
|
|
|
30883
30985
|
width: auto;
|
|
30884
30986
|
margin: 0.25rem -0.25rem;
|
|
30885
30987
|
}
|
|
30988
|
+
|
|
30989
|
+
/* ------------------------------------------------------------------ */
|
|
30990
|
+
/* Multiple: chips */
|
|
30991
|
+
/* ------------------------------------------------------------------ */
|
|
30992
|
+
|
|
30993
|
+
/* .cn-combobox-chips "dark:bg-input/30 border-input focus-within:border-ring focus-within:ring-ring/50
|
|
30994
|
+
has-aria-invalid:… flex min-h-9 flex-wrap items-center gap-1.5 rounded-md border bg-transparent
|
|
30995
|
+
bg-clip-padding px-2.5 py-1.5 text-sm shadow-xs transition-[color,box-shadow] focus-within:ring-3
|
|
30996
|
+
has-data-[slot=combobox-chip]:px-1.5". It is a ComboboxInput (combobox.ts), so the input
|
|
30997
|
+
group box above applies; these rules make it a wrapping row. */
|
|
30998
|
+
:is(pont2-prim-combobox-chips, [data-pont2-combobox-chips]) {
|
|
30999
|
+
height: auto;
|
|
31000
|
+
min-height: var(--_pont2-combobox-input-height);
|
|
31001
|
+
flex-wrap: wrap;
|
|
31002
|
+
gap: 0.375rem;
|
|
31003
|
+
padding: 0.375rem 0.625rem;
|
|
31004
|
+
background-clip: padding-box;
|
|
31005
|
+
font-size: var(--pont2-sem-text-sm);
|
|
31006
|
+
line-height: var(--pont2-sem-text-sm--line-height);
|
|
31007
|
+
cursor: text;
|
|
31008
|
+
}
|
|
31009
|
+
[data-pont2-combobox-chips]:has(> [data-slot="combobox-chip"]) {
|
|
31010
|
+
padding-inline: 0.375rem;
|
|
31011
|
+
}
|
|
31012
|
+
[data-pont2-combobox-chips]:focus-within {
|
|
31013
|
+
border-color: var(--pont2-sem-color-ring);
|
|
31014
|
+
--pont2-ring-shadow: 0 0 0 var(--pont2-sem-ring-width) color-mix(in oklab, var(--pont2-sem-color-ring) 50%, transparent);
|
|
31015
|
+
}
|
|
31016
|
+
[data-pont2-combobox-chips][data-disabled],
|
|
31017
|
+
[data-pont2-combobox][data-disabled] [data-pont2-combobox-chips] {
|
|
31018
|
+
cursor: not-allowed;
|
|
31019
|
+
opacity: var(--pont2-sem-opacity-disabled);
|
|
31020
|
+
}
|
|
31021
|
+
|
|
31022
|
+
/* .cn-combobox-chip "bg-muted text-foreground flex h-[calc(--spacing(5.5))] w-fit items-center
|
|
31023
|
+
justify-center gap-1 rounded-sm px-1.5 text-xs font-medium whitespace-nowrap
|
|
31024
|
+
has-data-[slot=combobox-chip-remove]:pr-0" */
|
|
31025
|
+
[data-pont2-combobox-chip] {
|
|
31026
|
+
display: flex;
|
|
31027
|
+
width: fit-content;
|
|
31028
|
+
height: 1.375rem;
|
|
31029
|
+
box-sizing: border-box;
|
|
31030
|
+
align-items: center;
|
|
31031
|
+
justify-content: center;
|
|
31032
|
+
gap: 0.25rem;
|
|
31033
|
+
padding: 0 0.375rem;
|
|
31034
|
+
border-radius: var(--_pont2-combobox-chip-radius);
|
|
31035
|
+
background-color: var(--_pont2-combobox-chip-bg);
|
|
31036
|
+
color: var(--_pont2-combobox-chip-fg);
|
|
31037
|
+
font-size: var(--pont2-sem-text-xs);
|
|
31038
|
+
line-height: var(--pont2-sem-text-xs--line-height);
|
|
31039
|
+
font-weight: var(--pont2-sem-font-weight-medium);
|
|
31040
|
+
white-space: nowrap;
|
|
31041
|
+
outline: none;
|
|
31042
|
+
}
|
|
31043
|
+
[data-pont2-combobox-chip]:has(> [data-slot="combobox-chip-remove"]) {
|
|
31044
|
+
padding-right: 0;
|
|
31045
|
+
}
|
|
31046
|
+
[data-pont2-combobox-chip]:focus-visible {
|
|
31047
|
+
--pont2-ring-shadow: 0 0 0 var(--pont2-sem-ring-width) color-mix(in oklab, var(--pont2-sem-color-ring) 50%, transparent);
|
|
31048
|
+
box-shadow: var(--pont2-ring-shadow);
|
|
31049
|
+
}
|
|
31050
|
+
/* .cn-combobox-chip-remove "-ml-1 opacity-50 hover:opacity-100" (Button ghost icon-xs) */
|
|
31051
|
+
[data-pont2-combobox-chip] > [data-slot="combobox-chip-remove"] {
|
|
31052
|
+
margin-left: -0.25rem;
|
|
31053
|
+
opacity: 0.5;
|
|
31054
|
+
}
|
|
31055
|
+
[data-pont2-combobox-chip] > [data-slot="combobox-chip-remove"]:hover {
|
|
31056
|
+
opacity: 1;
|
|
31057
|
+
}
|
|
31058
|
+
[data-pont2-combobox-chip] > [data-slot="combobox-chip-remove"] svg {
|
|
31059
|
+
pointer-events: none;
|
|
31060
|
+
}
|
|
31061
|
+
|
|
31062
|
+
/* .cn-combobox-chip-input "min-w-16 flex-1 outline-none" */
|
|
31063
|
+
[data-pont2-combobox-chip-input] {
|
|
31064
|
+
box-sizing: border-box;
|
|
31065
|
+
flex: 1 1 0%;
|
|
31066
|
+
min-width: 4rem;
|
|
31067
|
+
margin: 0;
|
|
31068
|
+
padding: 0;
|
|
31069
|
+
border: 0;
|
|
31070
|
+
background: transparent;
|
|
31071
|
+
color: inherit;
|
|
31072
|
+
font: inherit;
|
|
31073
|
+
outline: none;
|
|
31074
|
+
}
|
|
31075
|
+
[data-pont2-combobox-chip-input]::placeholder {
|
|
31076
|
+
color: var(--pont2-sem-color-muted-foreground);
|
|
31077
|
+
opacity: 1;
|
|
31078
|
+
}
|
|
31079
|
+
[data-pont2-combobox-chip-input]:disabled {
|
|
31080
|
+
cursor: not-allowed;
|
|
31081
|
+
}
|
|
30886
31082
|
}
|
|
30887
31083
|
|
|
30888
31084
|
/* ../primitives/tooltip/tooltip.css */
|
|
@@ -30972,106 +31168,1032 @@ body {
|
|
|
30972
31168
|
}
|
|
30973
31169
|
}
|
|
30974
31170
|
|
|
30975
|
-
/*
|
|
30976
|
-
|
|
30977
|
-
/* Kit: composites (each file wraps itself in @layer pont2.kit). Aliases need no CSS:
|
|
30978
|
-
their tags are listed in the primitive recipes. docs/10-primitives-and-kit.md */
|
|
30979
|
-
/* ../kit/alert/alert.css */
|
|
31171
|
+
/* ../primitives/dialog/dialog.css */
|
|
30980
31172
|
/*
|
|
30981
|
-
*
|
|
30982
|
-
*
|
|
30983
|
-
*
|
|
30984
|
-
*
|
|
30985
|
-
*
|
|
31173
|
+
* Dialog. shadcn (Base UI, Vega):
|
|
31174
|
+
* overlay: "fixed inset-0 isolate z-50" + .cn-dialog-overlay "data-open:animate-in
|
|
31175
|
+
* data-closed:animate-out fade-in-0/fade-out-0 bg-black/10 duration-100
|
|
31176
|
+
* supports-backdrop-filter:backdrop-blur-xs"
|
|
31177
|
+
* content: "fixed top-1/2 left-1/2 z-50 w-full -translate-x-1/2 -translate-y-1/2 outline-none"
|
|
31178
|
+
* + .cn-dialog-content "bg-popover text-popover-foreground fade/zoom-95 ring-foreground/10
|
|
31179
|
+
* grid max-w-[calc(100%-2rem)] gap-6 rounded-xl p-6 text-sm ring-1 duration-100 sm:max-w-md"
|
|
31180
|
+
* close: Button ghost icon-sm + .cn-dialog-close "absolute top-4 right-4"
|
|
31181
|
+
* header: "flex flex-col gap-2"; footer: "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end"
|
|
31182
|
+
* title: "leading-none font-medium" (+ cn-font-heading); description: "text-muted-foreground text-sm
|
|
31183
|
+
* *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground"
|
|
30986
31184
|
*
|
|
30987
|
-
*
|
|
30988
|
-
*
|
|
31185
|
+
* The overlay is the popup's ::backdrop (dialog.ts), and the popup is centred with
|
|
31186
|
+
* `inset: 0; margin: auto` instead of a translate, so the shared enter/exit
|
|
31187
|
+
* animation (core/popup/popup.css: fade + zoom-95, 100ms) composes with it.
|
|
31188
|
+
*
|
|
31189
|
+
* Tokens (docs/11-tokens.md): `--pont2-dialog-*`, resolved on the content.
|
|
31190
|
+
* The border is shadcn's 1px ring.
|
|
30989
31191
|
*/
|
|
30990
|
-
@layer pont2.
|
|
31192
|
+
@layer pont2.primitives {
|
|
30991
31193
|
/* ------------------------------------------------------------------ */
|
|
30992
31194
|
/* Tokens */
|
|
30993
31195
|
/* ------------------------------------------------------------------ */
|
|
30994
31196
|
|
|
30995
|
-
pont2-
|
|
30996
|
-
|
|
30997
|
-
--_pont2-
|
|
30998
|
-
|
|
30999
|
-
|
|
31000
|
-
/** @token
|
|
31001
|
-
--_pont2-
|
|
31002
|
-
|
|
31003
|
-
|
|
31004
|
-
/** @token
|
|
31005
|
-
--_pont2-
|
|
31006
|
-
|
|
31007
|
-
|
|
31008
|
-
/** @token
|
|
31009
|
-
--_pont2-
|
|
31197
|
+
:is(pont2-prim-dialog-content, [data-pont2-dialog-content]) {
|
|
31198
|
+
/** @token Background */
|
|
31199
|
+
--_pont2-dialog-bg: var(--pont2-dialog-bg, var(--pont2-sem-color-popover));
|
|
31200
|
+
/** @token Text */
|
|
31201
|
+
--_pont2-dialog-fg: var(--pont2-dialog-fg, var(--pont2-sem-color-popover-foreground));
|
|
31202
|
+
/** @token Border */
|
|
31203
|
+
--_pont2-dialog-border-color: var(--pont2-dialog-border-color, color-mix(in oklab, var(--pont2-sem-color-foreground) 10%, transparent));
|
|
31204
|
+
/** @token Corner radius */
|
|
31205
|
+
--_pont2-dialog-radius: var(--pont2-dialog-radius, var(--pont2-sem-radius-xl));
|
|
31206
|
+
/** @token Shadow */
|
|
31207
|
+
--_pont2-dialog-shadow: var(--pont2-dialog-shadow, var(--pont2-sem-shadow-none));
|
|
31208
|
+
/** @token Maximum width */
|
|
31209
|
+
--_pont2-dialog-max-width: var(--pont2-dialog-max-width, 28rem);
|
|
31210
|
+
/** @token Horizontal padding */
|
|
31211
|
+
--_pont2-dialog-padding-x: var(--pont2-dialog-padding-x, 1.5rem);
|
|
31212
|
+
/** @token Vertical padding */
|
|
31213
|
+
--_pont2-dialog-padding-y: var(--pont2-dialog-padding-y, 1.5rem);
|
|
31214
|
+
/** @token Gap */
|
|
31215
|
+
--_pont2-dialog-gap: var(--pont2-dialog-gap, 1.5rem);
|
|
31216
|
+
/** @token Overlay */
|
|
31217
|
+
--_pont2-dialog-overlay-bg: var(--pont2-dialog-overlay-bg, oklch(0 0 0 / 10%));
|
|
31010
31218
|
}
|
|
31011
31219
|
|
|
31012
31220
|
/* ------------------------------------------------------------------ */
|
|
31013
31221
|
/* Recipe */
|
|
31014
31222
|
/* ------------------------------------------------------------------ */
|
|
31015
31223
|
|
|
31016
|
-
|
|
31017
|
-
|
|
31224
|
+
:is(pont2-prim-dialog-content, [data-pont2-dialog-content]) {
|
|
31225
|
+
inset: 0;
|
|
31226
|
+
margin: auto;
|
|
31227
|
+
display: grid;
|
|
31228
|
+
box-sizing: border-box;
|
|
31229
|
+
width: 100%;
|
|
31230
|
+
max-width: calc(100% - 2rem);
|
|
31231
|
+
height: fit-content;
|
|
31232
|
+
max-height: calc(100% - 2rem);
|
|
31233
|
+
overflow-y: auto;
|
|
31234
|
+
gap: var(--_pont2-dialog-gap);
|
|
31235
|
+
padding: var(--_pont2-dialog-padding-y) var(--_pont2-dialog-padding-x);
|
|
31236
|
+
border-radius: var(--_pont2-dialog-radius);
|
|
31237
|
+
background-color: var(--_pont2-dialog-bg);
|
|
31238
|
+
color: var(--_pont2-dialog-fg);
|
|
31239
|
+
font-size: var(--pont2-sem-text-sm);
|
|
31240
|
+
line-height: var(--pont2-sem-text-sm--line-height);
|
|
31241
|
+
outline: none;
|
|
31242
|
+
--pont2-shadow: var(--_pont2-dialog-shadow);
|
|
31243
|
+
--pont2-ring-shadow: 0 0 0 var(--pont2-sem-border-width) var(--_pont2-dialog-border-color);
|
|
31244
|
+
box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
|
|
31018
31245
|
}
|
|
31019
|
-
|
|
31020
|
-
|
|
31246
|
+
@media (width >= 40rem) {
|
|
31247
|
+
:is(pont2-prim-dialog-content, [data-pont2-dialog-content]) {
|
|
31248
|
+
max-width: min(var(--_pont2-dialog-max-width), calc(100% - 2rem));
|
|
31249
|
+
}
|
|
31021
31250
|
}
|
|
31022
|
-
}
|
|
31023
31251
|
|
|
31024
|
-
/*
|
|
31025
|
-
|
|
31026
|
-
|
|
31027
|
-
* (primitives/avatar/avatar.css) through [data-pont2-avatar] and the parts'
|
|
31028
|
-
* identity attributes; the composite adds no visual rules of its own.
|
|
31029
|
-
*
|
|
31030
|
-
* The file exists so every kit element has a stylesheet in @layer pont2.kit,
|
|
31031
|
-
* where composite-specific rules go when they appear.
|
|
31032
|
-
*/
|
|
31033
|
-
@layer pont2.kit {
|
|
31034
|
-
/* Size before upgrade, so a server-rendered composite does not collapse. */
|
|
31035
|
-
pont2-avatar:not([data-pont2-avatar]) {
|
|
31036
|
-
display: inline-flex;
|
|
31037
|
-
width: 2rem;
|
|
31038
|
-
height: 2rem;
|
|
31252
|
+
/* The overlay: the popup's ::backdrop. */
|
|
31253
|
+
:is(pont2-prim-dialog-content, [data-pont2-dialog-content])::backdrop {
|
|
31254
|
+
background-color: var(--_pont2-dialog-overlay-bg);
|
|
31039
31255
|
}
|
|
31040
|
-
|
|
31041
|
-
|
|
31042
|
-
|
|
31256
|
+
|
|
31257
|
+
/* The close button: Button ghost icon-sm, absolute top-4 right-4. */
|
|
31258
|
+
[data-pont2-dialog-content] > [data-pont2-modal-close] {
|
|
31259
|
+
position: absolute;
|
|
31260
|
+
top: 1rem;
|
|
31261
|
+
right: 1rem;
|
|
31043
31262
|
}
|
|
31044
|
-
|
|
31045
|
-
|
|
31046
|
-
|
|
31263
|
+
|
|
31264
|
+
:is(pont2-prim-dialog-header, [data-pont2-dialog-header]) {
|
|
31265
|
+
display: flex;
|
|
31266
|
+
flex-direction: column;
|
|
31267
|
+
gap: 0.5rem;
|
|
31047
31268
|
}
|
|
31048
|
-
}
|
|
31049
31269
|
|
|
31050
|
-
|
|
31051
|
-
/*
|
|
31052
|
-
* <pont2-input-otp> (kit composite). All styling comes from the primitive
|
|
31053
|
-
* recipe (primitives/input-otp/input-otp.css) through [data-pont2-input-otp]
|
|
31054
|
-
* and the parts' identity attributes.
|
|
31055
|
-
*
|
|
31056
|
-
* Added here: the composite has no children before upgrade, so it reserves the
|
|
31057
|
-
* primitive's slot height (2.25rem) to avoid a layout shift.
|
|
31058
|
-
*/
|
|
31059
|
-
@layer pont2.kit {
|
|
31060
|
-
pont2-input-otp:not([data-pont2-input-otp]) {
|
|
31270
|
+
:is(pont2-prim-dialog-footer, [data-pont2-dialog-footer]) {
|
|
31061
31271
|
display: flex;
|
|
31062
|
-
|
|
31272
|
+
flex-direction: column-reverse;
|
|
31273
|
+
gap: 0.5rem;
|
|
31274
|
+
}
|
|
31275
|
+
@media (width >= 40rem) {
|
|
31276
|
+
:is(pont2-prim-dialog-footer, [data-pont2-dialog-footer]) {
|
|
31277
|
+
flex-direction: row;
|
|
31278
|
+
justify-content: flex-end;
|
|
31279
|
+
}
|
|
31280
|
+
}
|
|
31281
|
+
|
|
31282
|
+
:is(pont2-prim-dialog-title, [data-pont2-dialog-title]) {
|
|
31283
|
+
display: block;
|
|
31284
|
+
margin: 0;
|
|
31285
|
+
font-family: var(--pont2-sem-font-heading);
|
|
31286
|
+
line-height: 1;
|
|
31287
|
+
font-weight: var(--pont2-sem-font-weight-medium);
|
|
31288
|
+
}
|
|
31289
|
+
|
|
31290
|
+
:is(pont2-prim-dialog-description, [data-pont2-dialog-description]) {
|
|
31291
|
+
display: block;
|
|
31292
|
+
margin: 0;
|
|
31293
|
+
color: var(--pont2-sem-color-muted-foreground);
|
|
31294
|
+
font-size: var(--pont2-sem-text-sm);
|
|
31295
|
+
line-height: var(--pont2-sem-text-sm--line-height);
|
|
31296
|
+
}
|
|
31297
|
+
:is(pont2-prim-dialog-description, [data-pont2-dialog-description]) > a {
|
|
31298
|
+
color: inherit;
|
|
31299
|
+
text-decoration: underline;
|
|
31300
|
+
text-underline-offset: 3px;
|
|
31301
|
+
}
|
|
31302
|
+
:is(pont2-prim-dialog-description, [data-pont2-dialog-description]) > a:hover {
|
|
31303
|
+
color: var(--pont2-sem-color-foreground);
|
|
31304
|
+
}
|
|
31305
|
+
|
|
31306
|
+
/* ------------------------------------------------------------------ */
|
|
31307
|
+
/* Every modal surface's overlay (dialog, alert dialog, sheet, drawer) */
|
|
31308
|
+
/* ------------------------------------------------------------------ */
|
|
31309
|
+
|
|
31310
|
+
/* supports-backdrop-filter:backdrop-blur-xs; fade-in-0 / fade-out-0 with the popup. */
|
|
31311
|
+
:is([data-pont2-dialog-content], [data-pont2-alert-dialog-content], [data-pont2-sheet-content], [data-pont2-drawer-content])::backdrop {
|
|
31312
|
+
backdrop-filter: blur(4px);
|
|
31313
|
+
}
|
|
31314
|
+
:is([data-pont2-dialog-content], [data-pont2-alert-dialog-content], [data-pont2-sheet-content], [data-pont2-drawer-content])[data-open]::backdrop {
|
|
31315
|
+
animation: pont2-backdrop-enter var(--_pont2-popup-duration) var(--pont2-sem-ease-in-out);
|
|
31316
|
+
}
|
|
31317
|
+
:is([data-pont2-dialog-content], [data-pont2-alert-dialog-content], [data-pont2-sheet-content], [data-pont2-drawer-content])[data-closed]::backdrop {
|
|
31318
|
+
animation: pont2-backdrop-exit var(--_pont2-popup-duration) var(--pont2-sem-ease-in-out) forwards;
|
|
31319
|
+
}
|
|
31320
|
+
/* modal="false": no overlay. */
|
|
31321
|
+
:is([data-pont2-dialog-content], [data-pont2-alert-dialog-content], [data-pont2-sheet-content], [data-pont2-drawer-content])[data-modal="false"]::backdrop {
|
|
31322
|
+
display: none;
|
|
31063
31323
|
}
|
|
31064
31324
|
}
|
|
31065
31325
|
|
|
31066
|
-
/* ../
|
|
31326
|
+
/* ../primitives/alert-dialog/alert-dialog.css */
|
|
31067
31327
|
/*
|
|
31068
|
-
*
|
|
31069
|
-
*
|
|
31070
|
-
*
|
|
31071
|
-
*
|
|
31328
|
+
* Alert Dialog. shadcn (Base UI, Vega):
|
|
31329
|
+
* overlay: .cn-alert-dialog-overlay = the dialog's (bg-black/10, blur, fade; dialog.css)
|
|
31330
|
+
* content: "fixed top-1/2 left-1/2 z-50 grid w-full -translate-1/2 outline-none"
|
|
31331
|
+
* + .cn-alert-dialog-content "bg-popover text-popover-foreground ring-foreground/10 gap-6
|
|
31332
|
+
* rounded-xl p-6 ring-1 duration-100 fade/zoom-95 data-[size=default]:max-w-xs
|
|
31333
|
+
* data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-lg"
|
|
31334
|
+
* header: "grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center
|
|
31335
|
+
* has-media:grid-rows-[auto_auto_1fr] has-media:gap-x-6 sm:size-default:place-items-start
|
|
31336
|
+
* sm:size-default:text-left sm:size-default:has-media:grid-rows-[auto_1fr]"
|
|
31337
|
+
* media: "bg-muted mb-2 inline-flex size-16 items-center justify-center rounded-md
|
|
31338
|
+
* sm:size-default:row-span-2 *:[svg]:size-8"
|
|
31339
|
+
* title: "text-lg font-medium sm:size-default:has-media:col-start-2"
|
|
31340
|
+
* description: "text-muted-foreground text-sm text-balance md:text-pretty" + links
|
|
31341
|
+
* footer: "flex flex-col-reverse gap-2 size-sm:grid size-sm:grid-cols-2 sm:flex-row sm:justify-end"
|
|
31072
31342
|
*
|
|
31073
|
-
*
|
|
31074
|
-
|
|
31343
|
+
* Tokens (docs/11-tokens.md): `--pont2-alert-dialog-*`, resolved on the content.
|
|
31344
|
+
*/
|
|
31345
|
+
@layer pont2.primitives {
|
|
31346
|
+
:is(pont2-prim-alert-dialog-content, [data-pont2-alert-dialog-content]) {
|
|
31347
|
+
/** @token Background */
|
|
31348
|
+
--_pont2-alert-dialog-bg: var(--pont2-alert-dialog-bg, var(--pont2-sem-color-popover));
|
|
31349
|
+
/** @token Text */
|
|
31350
|
+
--_pont2-alert-dialog-fg: var(--pont2-alert-dialog-fg, var(--pont2-sem-color-popover-foreground));
|
|
31351
|
+
/** @token Border */
|
|
31352
|
+
--_pont2-alert-dialog-border-color: var(--pont2-alert-dialog-border-color, color-mix(in oklab, var(--pont2-sem-color-foreground) 10%, transparent));
|
|
31353
|
+
/** @token Corner radius */
|
|
31354
|
+
--_pont2-alert-dialog-radius: var(--pont2-alert-dialog-radius, var(--pont2-sem-radius-xl));
|
|
31355
|
+
/** @token Maximum width */
|
|
31356
|
+
--_pont2-alert-dialog-max-width: var(--pont2-alert-dialog-max-width, 32rem);
|
|
31357
|
+
/** @token Maximum width (small) */
|
|
31358
|
+
--_pont2-alert-dialog-sm-max-width: var(--pont2-alert-dialog-sm-max-width, 20rem);
|
|
31359
|
+
/** @token Horizontal padding */
|
|
31360
|
+
--_pont2-alert-dialog-padding-x: var(--pont2-alert-dialog-padding-x, 1.5rem);
|
|
31361
|
+
/** @token Vertical padding */
|
|
31362
|
+
--_pont2-alert-dialog-padding-y: var(--pont2-alert-dialog-padding-y, 1.5rem);
|
|
31363
|
+
/** @token Gap */
|
|
31364
|
+
--_pont2-alert-dialog-gap: var(--pont2-alert-dialog-gap, 1.5rem);
|
|
31365
|
+
/** @token Overlay */
|
|
31366
|
+
--_pont2-alert-dialog-overlay-bg: var(--pont2-alert-dialog-overlay-bg, oklch(0 0 0 / 10%));
|
|
31367
|
+
}
|
|
31368
|
+
|
|
31369
|
+
:is(pont2-prim-alert-dialog-content, [data-pont2-alert-dialog-content]) {
|
|
31370
|
+
inset: 0;
|
|
31371
|
+
margin: auto;
|
|
31372
|
+
display: grid;
|
|
31373
|
+
box-sizing: border-box;
|
|
31374
|
+
width: 100%;
|
|
31375
|
+
max-width: min(var(--_pont2-alert-dialog-sm-max-width), calc(100% - 2rem));
|
|
31376
|
+
height: fit-content;
|
|
31377
|
+
max-height: calc(100% - 2rem);
|
|
31378
|
+
overflow-y: auto;
|
|
31379
|
+
gap: var(--_pont2-alert-dialog-gap);
|
|
31380
|
+
padding: var(--_pont2-alert-dialog-padding-y) var(--_pont2-alert-dialog-padding-x);
|
|
31381
|
+
border-radius: var(--_pont2-alert-dialog-radius);
|
|
31382
|
+
background-color: var(--_pont2-alert-dialog-bg);
|
|
31383
|
+
color: var(--_pont2-alert-dialog-fg);
|
|
31384
|
+
font-size: var(--pont2-sem-text-sm);
|
|
31385
|
+
line-height: var(--pont2-sem-text-sm--line-height);
|
|
31386
|
+
outline: none;
|
|
31387
|
+
--pont2-ring-shadow: 0 0 0 var(--pont2-sem-border-width) var(--_pont2-alert-dialog-border-color);
|
|
31388
|
+
box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
|
|
31389
|
+
}
|
|
31390
|
+
:is(pont2-prim-alert-dialog-content, [data-pont2-alert-dialog-content])::backdrop {
|
|
31391
|
+
background-color: var(--_pont2-alert-dialog-overlay-bg);
|
|
31392
|
+
}
|
|
31393
|
+
|
|
31394
|
+
:is(pont2-prim-alert-dialog-header, [data-pont2-alert-dialog-header]) {
|
|
31395
|
+
display: grid;
|
|
31396
|
+
grid-template-rows: auto 1fr;
|
|
31397
|
+
place-items: center;
|
|
31398
|
+
gap: 0.375rem;
|
|
31399
|
+
text-align: center;
|
|
31400
|
+
}
|
|
31401
|
+
:is(pont2-prim-alert-dialog-header, [data-pont2-alert-dialog-header]):has(> [data-slot="alert-dialog-media"]) {
|
|
31402
|
+
grid-template-rows: auto auto 1fr;
|
|
31403
|
+
column-gap: 1.5rem;
|
|
31404
|
+
}
|
|
31405
|
+
|
|
31406
|
+
:is(pont2-prim-alert-dialog-media, [data-pont2-alert-dialog-media]) {
|
|
31407
|
+
display: inline-flex;
|
|
31408
|
+
width: 4rem;
|
|
31409
|
+
height: 4rem;
|
|
31410
|
+
margin-bottom: 0.5rem;
|
|
31411
|
+
align-items: center;
|
|
31412
|
+
justify-content: center;
|
|
31413
|
+
border-radius: var(--pont2-sem-radius-md);
|
|
31414
|
+
background-color: var(--pont2-sem-color-muted);
|
|
31415
|
+
}
|
|
31416
|
+
:is(pont2-prim-alert-dialog-media, [data-pont2-alert-dialog-media]) > svg {
|
|
31417
|
+
width: 2rem;
|
|
31418
|
+
height: 2rem;
|
|
31419
|
+
}
|
|
31420
|
+
|
|
31421
|
+
:is(pont2-prim-alert-dialog-title, [data-pont2-alert-dialog-title]) {
|
|
31422
|
+
display: block;
|
|
31423
|
+
margin: 0;
|
|
31424
|
+
font-family: var(--pont2-sem-font-heading);
|
|
31425
|
+
font-size: var(--pont2-sem-text-lg);
|
|
31426
|
+
line-height: var(--pont2-sem-text-lg--line-height);
|
|
31427
|
+
font-weight: var(--pont2-sem-font-weight-medium);
|
|
31428
|
+
}
|
|
31429
|
+
|
|
31430
|
+
:is(pont2-prim-alert-dialog-description, [data-pont2-alert-dialog-description]) {
|
|
31431
|
+
display: block;
|
|
31432
|
+
margin: 0;
|
|
31433
|
+
color: var(--pont2-sem-color-muted-foreground);
|
|
31434
|
+
font-size: var(--pont2-sem-text-sm);
|
|
31435
|
+
line-height: var(--pont2-sem-text-sm--line-height);
|
|
31436
|
+
text-wrap: balance;
|
|
31437
|
+
}
|
|
31438
|
+
:is(pont2-prim-alert-dialog-description, [data-pont2-alert-dialog-description]) > a {
|
|
31439
|
+
color: inherit;
|
|
31440
|
+
text-decoration: underline;
|
|
31441
|
+
text-underline-offset: 3px;
|
|
31442
|
+
}
|
|
31443
|
+
:is(pont2-prim-alert-dialog-description, [data-pont2-alert-dialog-description]) > a:hover {
|
|
31444
|
+
color: var(--pont2-sem-color-foreground);
|
|
31445
|
+
}
|
|
31446
|
+
|
|
31447
|
+
:is(pont2-prim-alert-dialog-footer, [data-pont2-alert-dialog-footer]) {
|
|
31448
|
+
display: flex;
|
|
31449
|
+
flex-direction: column-reverse;
|
|
31450
|
+
gap: 0.5rem;
|
|
31451
|
+
}
|
|
31452
|
+
[data-pont2-alert-dialog-content][data-size="sm"] :is(pont2-prim-alert-dialog-footer, [data-pont2-alert-dialog-footer]) {
|
|
31453
|
+
display: grid;
|
|
31454
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
31455
|
+
}
|
|
31456
|
+
|
|
31457
|
+
@media (width >= 40rem) {
|
|
31458
|
+
[data-pont2-alert-dialog-content]:not([data-size="sm"]) {
|
|
31459
|
+
max-width: min(var(--_pont2-alert-dialog-max-width), calc(100% - 2rem));
|
|
31460
|
+
}
|
|
31461
|
+
[data-pont2-alert-dialog-content]:not([data-size="sm"]) :is(pont2-prim-alert-dialog-header, [data-pont2-alert-dialog-header]) {
|
|
31462
|
+
place-items: start;
|
|
31463
|
+
text-align: left;
|
|
31464
|
+
}
|
|
31465
|
+
[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"]) {
|
|
31466
|
+
grid-template-rows: auto 1fr;
|
|
31467
|
+
}
|
|
31468
|
+
[data-pont2-alert-dialog-content]:not([data-size="sm"]) :is(pont2-prim-alert-dialog-media, [data-pont2-alert-dialog-media]) {
|
|
31469
|
+
grid-row: span 2 / span 2;
|
|
31470
|
+
}
|
|
31471
|
+
[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]),
|
|
31472
|
+
[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]) {
|
|
31473
|
+
grid-column-start: 2;
|
|
31474
|
+
}
|
|
31475
|
+
:is(pont2-prim-alert-dialog-footer, [data-pont2-alert-dialog-footer]) {
|
|
31476
|
+
flex-direction: row;
|
|
31477
|
+
justify-content: flex-end;
|
|
31478
|
+
}
|
|
31479
|
+
}
|
|
31480
|
+
@media (width >= 48rem) {
|
|
31481
|
+
:is(pont2-prim-alert-dialog-description, [data-pont2-alert-dialog-description]) {
|
|
31482
|
+
text-wrap: pretty;
|
|
31483
|
+
}
|
|
31484
|
+
}
|
|
31485
|
+
}
|
|
31486
|
+
|
|
31487
|
+
/* ../primitives/sheet/sheet.css */
|
|
31488
|
+
/*
|
|
31489
|
+
* Sheet. shadcn (Base UI, Vega):
|
|
31490
|
+
* overlay: "fixed inset-0 z-50 transition-opacity duration-150 starting/ending:opacity-0"
|
|
31491
|
+
* + .cn-sheet-overlay "bg-black/10 supports-backdrop-filter:backdrop-blur-xs"
|
|
31492
|
+
* content: "starting/ending:opacity-0 data-[side=…]:starting/ending:translate-…-[2.5rem]"
|
|
31493
|
+
* + .cn-sheet-content "bg-popover text-popover-foreground fixed z-50 flex flex-col gap-4
|
|
31494
|
+
* bg-clip-padding text-sm shadow-lg transition duration-200 ease-in-out
|
|
31495
|
+
* bottom: inset-x-0 bottom-0 h-auto border-t · top: inset-x-0 top-0 h-auto border-b
|
|
31496
|
+
* left: inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm · right: … right-0 … border-l"
|
|
31497
|
+
* close: Button ghost icon-sm, "absolute top-4 right-4"
|
|
31498
|
+
* header: "flex flex-col gap-1.5 p-4"; footer: "mt-auto flex flex-col gap-2 p-4"
|
|
31499
|
+
* title: "text-foreground font-medium" (+ cn-font-heading); description: "text-muted-foreground text-sm"
|
|
31500
|
+
*
|
|
31501
|
+
* The slide is the shared popup keyframes (core/popup/popup.css) with the sheet's
|
|
31502
|
+
* values: from 2.5rem off its edge and transparent, 200ms.
|
|
31503
|
+
*
|
|
31504
|
+
* Tokens (docs/11-tokens.md): `--pont2-sheet-*`, resolved on the content.
|
|
31505
|
+
*/
|
|
31506
|
+
@layer pont2.primitives {
|
|
31507
|
+
:is(pont2-prim-sheet-content, [data-pont2-sheet-content]) {
|
|
31508
|
+
/** @token Background */
|
|
31509
|
+
--_pont2-sheet-bg: var(--pont2-sheet-bg, var(--pont2-sem-color-popover));
|
|
31510
|
+
/** @token Text */
|
|
31511
|
+
--_pont2-sheet-fg: var(--pont2-sheet-fg, var(--pont2-sem-color-popover-foreground));
|
|
31512
|
+
/** @token Border */
|
|
31513
|
+
--_pont2-sheet-border-color: var(--pont2-sheet-border-color, var(--pont2-sem-color-border));
|
|
31514
|
+
/** @token Shadow */
|
|
31515
|
+
--_pont2-sheet-shadow: var(--pont2-sheet-shadow, var(--pont2-sem-shadow-lg));
|
|
31516
|
+
/** @token Width (left and right sheets) */
|
|
31517
|
+
--_pont2-sheet-width: var(--pont2-sheet-width, 75%);
|
|
31518
|
+
/** @token Maximum width (left and right sheets) */
|
|
31519
|
+
--_pont2-sheet-max-width: var(--pont2-sheet-max-width, 24rem);
|
|
31520
|
+
/** @token Gap */
|
|
31521
|
+
--_pont2-sheet-gap: var(--pont2-sheet-gap, 1rem);
|
|
31522
|
+
/** @token Overlay */
|
|
31523
|
+
--_pont2-sheet-overlay-bg: var(--pont2-sheet-overlay-bg, oklch(0 0 0 / 10%));
|
|
31524
|
+
}
|
|
31525
|
+
|
|
31526
|
+
:is(pont2-prim-sheet-content, [data-pont2-sheet-content]) {
|
|
31527
|
+
display: flex;
|
|
31528
|
+
flex-direction: column;
|
|
31529
|
+
box-sizing: border-box;
|
|
31530
|
+
gap: var(--_pont2-sheet-gap);
|
|
31531
|
+
margin: 0;
|
|
31532
|
+
overflow-y: auto;
|
|
31533
|
+
border: 0 solid var(--_pont2-sheet-border-color);
|
|
31534
|
+
background-color: var(--_pont2-sheet-bg);
|
|
31535
|
+
background-clip: padding-box;
|
|
31536
|
+
color: var(--_pont2-sheet-fg);
|
|
31537
|
+
font-size: var(--pont2-sem-text-sm);
|
|
31538
|
+
line-height: var(--pont2-sem-text-sm--line-height);
|
|
31539
|
+
outline: none;
|
|
31540
|
+
--pont2-shadow: var(--_pont2-sheet-shadow);
|
|
31541
|
+
box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
|
|
31542
|
+
/* the slide (core/popup/popup.css keyframes) */
|
|
31543
|
+
--_pont2-popup-duration: 200ms;
|
|
31544
|
+
--_pont2-popup-enter-scale: 1;
|
|
31545
|
+
--_pont2-popup-exit-scale: 1;
|
|
31546
|
+
}
|
|
31547
|
+
:is(pont2-prim-sheet-content, [data-pont2-sheet-content])::backdrop {
|
|
31548
|
+
background-color: var(--_pont2-sheet-overlay-bg);
|
|
31549
|
+
}
|
|
31550
|
+
|
|
31551
|
+
[data-pont2-sheet-content][data-side="right"],
|
|
31552
|
+
[data-pont2-sheet-content]:not([data-side]) {
|
|
31553
|
+
inset: 0 0 0 auto;
|
|
31554
|
+
width: var(--_pont2-sheet-width);
|
|
31555
|
+
height: 100%;
|
|
31556
|
+
border-left-width: var(--pont2-sem-border-width);
|
|
31557
|
+
--_pont2-popup-enter-translate-x: 2.5rem;
|
|
31558
|
+
--_pont2-popup-exit-translate-x: 2.5rem;
|
|
31559
|
+
--_pont2-popup-enter-translate-y: 0;
|
|
31560
|
+
}
|
|
31561
|
+
[data-pont2-sheet-content][data-side="left"] {
|
|
31562
|
+
inset: 0 auto 0 0;
|
|
31563
|
+
width: var(--_pont2-sheet-width);
|
|
31564
|
+
height: 100%;
|
|
31565
|
+
border-right-width: var(--pont2-sem-border-width);
|
|
31566
|
+
--_pont2-popup-enter-translate-x: -2.5rem;
|
|
31567
|
+
--_pont2-popup-exit-translate-x: -2.5rem;
|
|
31568
|
+
--_pont2-popup-enter-translate-y: 0;
|
|
31569
|
+
}
|
|
31570
|
+
[data-pont2-sheet-content][data-side="top"] {
|
|
31571
|
+
inset: 0 0 auto 0;
|
|
31572
|
+
width: 100%;
|
|
31573
|
+
height: auto;
|
|
31574
|
+
border-bottom-width: var(--pont2-sem-border-width);
|
|
31575
|
+
--_pont2-popup-enter-translate-x: 0;
|
|
31576
|
+
--_pont2-popup-enter-translate-y: -2.5rem;
|
|
31577
|
+
--_pont2-popup-exit-translate-y: -2.5rem;
|
|
31578
|
+
}
|
|
31579
|
+
[data-pont2-sheet-content][data-side="bottom"] {
|
|
31580
|
+
inset: auto 0 0 0;
|
|
31581
|
+
width: 100%;
|
|
31582
|
+
height: auto;
|
|
31583
|
+
border-top-width: var(--pont2-sem-border-width);
|
|
31584
|
+
--_pont2-popup-enter-translate-x: 0;
|
|
31585
|
+
--_pont2-popup-enter-translate-y: 2.5rem;
|
|
31586
|
+
--_pont2-popup-exit-translate-y: 2.5rem;
|
|
31587
|
+
}
|
|
31588
|
+
@media (width >= 40rem) {
|
|
31589
|
+
[data-pont2-sheet-content]:is([data-side="left"], [data-side="right"], :not([data-side])) {
|
|
31590
|
+
max-width: var(--_pont2-sheet-max-width);
|
|
31591
|
+
}
|
|
31592
|
+
}
|
|
31593
|
+
|
|
31594
|
+
[data-pont2-sheet-content] > [data-pont2-modal-close] {
|
|
31595
|
+
position: absolute;
|
|
31596
|
+
top: 1rem;
|
|
31597
|
+
right: 1rem;
|
|
31598
|
+
}
|
|
31599
|
+
|
|
31600
|
+
:is(pont2-prim-sheet-header, [data-pont2-sheet-header]) {
|
|
31601
|
+
display: flex;
|
|
31602
|
+
flex-direction: column;
|
|
31603
|
+
gap: 0.375rem;
|
|
31604
|
+
padding: 1rem;
|
|
31605
|
+
}
|
|
31606
|
+
:is(pont2-prim-sheet-footer, [data-pont2-sheet-footer]) {
|
|
31607
|
+
display: flex;
|
|
31608
|
+
flex-direction: column;
|
|
31609
|
+
gap: 0.5rem;
|
|
31610
|
+
margin-top: auto;
|
|
31611
|
+
padding: 1rem;
|
|
31612
|
+
}
|
|
31613
|
+
:is(pont2-prim-sheet-title, [data-pont2-sheet-title]) {
|
|
31614
|
+
display: block;
|
|
31615
|
+
margin: 0;
|
|
31616
|
+
color: var(--pont2-sem-color-foreground);
|
|
31617
|
+
font-family: var(--pont2-sem-font-heading);
|
|
31618
|
+
font-weight: var(--pont2-sem-font-weight-medium);
|
|
31619
|
+
}
|
|
31620
|
+
:is(pont2-prim-sheet-description, [data-pont2-sheet-description]) {
|
|
31621
|
+
display: block;
|
|
31622
|
+
margin: 0;
|
|
31623
|
+
color: var(--pont2-sem-color-muted-foreground);
|
|
31624
|
+
font-size: var(--pont2-sem-text-sm);
|
|
31625
|
+
line-height: var(--pont2-sem-text-sm--line-height);
|
|
31626
|
+
}
|
|
31627
|
+
}
|
|
31628
|
+
|
|
31629
|
+
/* ../primitives/drawer/drawer.css */
|
|
31630
|
+
/*
|
|
31631
|
+
* Drawer. shadcn (Base UI Drawer, Vega):
|
|
31632
|
+
* overlay: "fixed inset-0 z-50 transition-opacity duration-450 ease-[cubic-bezier(0.32,0.72,0,1)]
|
|
31633
|
+
* starting/ending:opacity-0" + .cn-drawer-overlay "bg-black/10 supports-backdrop-filter:backdrop-blur-xs"
|
|
31634
|
+
* popup: "fixed z-50 flex flex-col duration-450 ease-[cubic-bezier(0.22,1,0.36,1)]
|
|
31635
|
+
* starting/ending:transform-(--closed-transform)" (translate 100% off its edge)
|
|
31636
|
+
* y axis: "inset-x-0 max-h-[calc(100dvh-6rem)]"; x axis: "inset-y-0 flex-row w-3/4 sm:w-[24rem]"
|
|
31637
|
+
* + .cn-drawer-popup "bg-popover text-popover-foreground text-sm
|
|
31638
|
+
* down: rounded-t-xl border-t · up: rounded-b-xl border-b · left: rounded-r-xl border-r · right: rounded-l-xl border-l"
|
|
31639
|
+
* content (inner): "flex min-h-0 flex-1 flex-col overflow-hidden overscroll-contain"
|
|
31640
|
+
* swipe handle: after:bg-muted after:rounded-full; y: h-3 w-full justify-center after:h-1.5 after:w-[100px]
|
|
31641
|
+
* header: "flex shrink-0 flex-col gap-0.5 p-4 pb-0 md:gap-1.5 md:text-left y-axis:text-center"
|
|
31642
|
+
* footer: "mt-auto flex shrink-0 flex-col gap-2 p-4 pt-0"
|
|
31643
|
+
* title: "text-foreground font-medium"; description: "text-muted-foreground text-sm text-balance"
|
|
31644
|
+
*
|
|
31645
|
+
* pont2 has one element for popup and inner content (drawer.ts), so the column layout
|
|
31646
|
+
* sits on the popup itself. Swiping is not implemented (docs/primitives/drawer.md).
|
|
31647
|
+
*
|
|
31648
|
+
* Tokens (docs/11-tokens.md): `--pont2-drawer-*`, resolved on the content.
|
|
31649
|
+
*/
|
|
31650
|
+
@layer pont2.primitives {
|
|
31651
|
+
:is(pont2-prim-drawer-content, [data-pont2-drawer-content]) {
|
|
31652
|
+
/** @token Background */
|
|
31653
|
+
--_pont2-drawer-bg: var(--pont2-drawer-bg, var(--pont2-sem-color-popover));
|
|
31654
|
+
/** @token Text */
|
|
31655
|
+
--_pont2-drawer-fg: var(--pont2-drawer-fg, var(--pont2-sem-color-popover-foreground));
|
|
31656
|
+
/** @token Border */
|
|
31657
|
+
--_pont2-drawer-border-color: var(--pont2-drawer-border-color, var(--pont2-sem-color-border));
|
|
31658
|
+
/** @token Corner radius */
|
|
31659
|
+
--_pont2-drawer-radius: var(--pont2-drawer-radius, var(--pont2-sem-radius-xl));
|
|
31660
|
+
/** @token Width (left and right drawers) */
|
|
31661
|
+
--_pont2-drawer-width: var(--pont2-drawer-width, 75%);
|
|
31662
|
+
/** @token Overlay */
|
|
31663
|
+
--_pont2-drawer-overlay-bg: var(--pont2-drawer-overlay-bg, oklch(0 0 0 / 10%));
|
|
31664
|
+
}
|
|
31665
|
+
|
|
31666
|
+
:is(pont2-prim-drawer-content, [data-pont2-drawer-content]) {
|
|
31667
|
+
display: flex;
|
|
31668
|
+
flex-direction: column;
|
|
31669
|
+
box-sizing: border-box;
|
|
31670
|
+
margin: 0;
|
|
31671
|
+
overflow: hidden;
|
|
31672
|
+
overscroll-behavior: contain;
|
|
31673
|
+
border: 0 solid var(--_pont2-drawer-border-color);
|
|
31674
|
+
background-color: var(--_pont2-drawer-bg);
|
|
31675
|
+
color: var(--_pont2-drawer-fg);
|
|
31676
|
+
font-size: var(--pont2-sem-text-sm);
|
|
31677
|
+
line-height: var(--pont2-sem-text-sm--line-height);
|
|
31678
|
+
outline: none;
|
|
31679
|
+
--_pont2-popup-duration: 450ms;
|
|
31680
|
+
--_pont2-popup-enter-opacity: 1;
|
|
31681
|
+
--_pont2-popup-exit-opacity: 1;
|
|
31682
|
+
--_pont2-popup-enter-scale: 1;
|
|
31683
|
+
--_pont2-popup-exit-scale: 1;
|
|
31684
|
+
}
|
|
31685
|
+
[data-pont2-drawer-content]:is([data-open], [data-closed]) {
|
|
31686
|
+
animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
|
|
31687
|
+
}
|
|
31688
|
+
:is(pont2-prim-drawer-content, [data-pont2-drawer-content])::backdrop {
|
|
31689
|
+
background-color: var(--_pont2-drawer-overlay-bg);
|
|
31690
|
+
}
|
|
31691
|
+
|
|
31692
|
+
[data-pont2-drawer-content]:is([data-swipe-direction="down"], :not([data-swipe-direction])) {
|
|
31693
|
+
inset: auto 0 0 0;
|
|
31694
|
+
max-height: calc(100dvh - 6rem);
|
|
31695
|
+
border-top-width: var(--pont2-sem-border-width);
|
|
31696
|
+
border-radius: var(--_pont2-drawer-radius) var(--_pont2-drawer-radius) 0 0;
|
|
31697
|
+
--_pont2-popup-enter-translate-x: 0;
|
|
31698
|
+
--_pont2-popup-enter-translate-y: calc(100% + 2px);
|
|
31699
|
+
--_pont2-popup-exit-translate-y: calc(100% + 2px);
|
|
31700
|
+
}
|
|
31701
|
+
[data-pont2-drawer-content][data-swipe-direction="up"] {
|
|
31702
|
+
inset: 0 0 auto 0;
|
|
31703
|
+
max-height: calc(100dvh - 6rem);
|
|
31704
|
+
border-bottom-width: var(--pont2-sem-border-width);
|
|
31705
|
+
border-radius: 0 0 var(--_pont2-drawer-radius) var(--_pont2-drawer-radius);
|
|
31706
|
+
--_pont2-popup-enter-translate-x: 0;
|
|
31707
|
+
--_pont2-popup-enter-translate-y: calc(-100% - 2px);
|
|
31708
|
+
--_pont2-popup-exit-translate-y: calc(-100% - 2px);
|
|
31709
|
+
}
|
|
31710
|
+
[data-pont2-drawer-content][data-swipe-direction="left"] {
|
|
31711
|
+
inset: 0 auto 0 0;
|
|
31712
|
+
width: var(--_pont2-drawer-width);
|
|
31713
|
+
border-right-width: var(--pont2-sem-border-width);
|
|
31714
|
+
border-radius: 0 var(--_pont2-drawer-radius) var(--_pont2-drawer-radius) 0;
|
|
31715
|
+
--_pont2-popup-enter-translate-y: 0;
|
|
31716
|
+
--_pont2-popup-enter-translate-x: calc(-100% - 2px);
|
|
31717
|
+
--_pont2-popup-exit-translate-x: calc(-100% - 2px);
|
|
31718
|
+
}
|
|
31719
|
+
[data-pont2-drawer-content][data-swipe-direction="right"] {
|
|
31720
|
+
inset: 0 0 0 auto;
|
|
31721
|
+
width: var(--_pont2-drawer-width);
|
|
31722
|
+
border-left-width: var(--pont2-sem-border-width);
|
|
31723
|
+
border-radius: var(--_pont2-drawer-radius) 0 0 var(--_pont2-drawer-radius);
|
|
31724
|
+
--_pont2-popup-enter-translate-y: 0;
|
|
31725
|
+
--_pont2-popup-enter-translate-x: calc(100% + 2px);
|
|
31726
|
+
--_pont2-popup-exit-translate-x: calc(100% + 2px);
|
|
31727
|
+
}
|
|
31728
|
+
@media (width >= 40rem) {
|
|
31729
|
+
[data-pont2-drawer-content][data-swipe-axis="x"] {
|
|
31730
|
+
width: min(var(--_pont2-drawer-width), 24rem);
|
|
31731
|
+
}
|
|
31732
|
+
}
|
|
31733
|
+
|
|
31734
|
+
/* The grab handle (show-swipe-handle): first in the column, a 100px × 6px pill. */
|
|
31735
|
+
[data-pont2-drawer-swipe-handle] {
|
|
31736
|
+
order: -1;
|
|
31737
|
+
display: flex;
|
|
31738
|
+
flex-shrink: 0;
|
|
31739
|
+
justify-content: center;
|
|
31740
|
+
align-items: flex-end;
|
|
31741
|
+
height: 0.75rem;
|
|
31742
|
+
cursor: grab;
|
|
31743
|
+
}
|
|
31744
|
+
[data-pont2-drawer-swipe-handle]::after {
|
|
31745
|
+
content: "";
|
|
31746
|
+
display: block;
|
|
31747
|
+
width: 100px;
|
|
31748
|
+
height: 0.375rem;
|
|
31749
|
+
border-radius: var(--pont2-sem-radius-full);
|
|
31750
|
+
background-color: var(--pont2-sem-color-muted);
|
|
31751
|
+
}
|
|
31752
|
+
[data-pont2-drawer-content][data-swipe-axis="x"] > [data-pont2-drawer-swipe-handle] {
|
|
31753
|
+
position: absolute;
|
|
31754
|
+
inset-block: 0;
|
|
31755
|
+
width: 0.75rem;
|
|
31756
|
+
height: auto;
|
|
31757
|
+
align-items: center;
|
|
31758
|
+
}
|
|
31759
|
+
[data-pont2-drawer-content][data-swipe-direction="right"] > [data-pont2-drawer-swipe-handle] {
|
|
31760
|
+
left: 0;
|
|
31761
|
+
}
|
|
31762
|
+
[data-pont2-drawer-content][data-swipe-direction="left"] > [data-pont2-drawer-swipe-handle] {
|
|
31763
|
+
right: 0;
|
|
31764
|
+
}
|
|
31765
|
+
[data-pont2-drawer-content][data-swipe-direction="up"] > [data-pont2-drawer-swipe-handle] {
|
|
31766
|
+
order: 9999;
|
|
31767
|
+
align-items: flex-start;
|
|
31768
|
+
}
|
|
31769
|
+
[data-pont2-drawer-content][data-swipe-axis="x"] > [data-pont2-drawer-swipe-handle]::after {
|
|
31770
|
+
width: 0.375rem;
|
|
31771
|
+
height: 100px;
|
|
31772
|
+
}
|
|
31773
|
+
|
|
31774
|
+
:is(pont2-prim-drawer-header, [data-pont2-drawer-header]) {
|
|
31775
|
+
display: flex;
|
|
31776
|
+
flex-direction: column;
|
|
31777
|
+
flex-shrink: 0;
|
|
31778
|
+
gap: 0.125rem;
|
|
31779
|
+
padding: 1rem 1rem 0;
|
|
31780
|
+
}
|
|
31781
|
+
[data-pont2-drawer-content][data-swipe-axis="y"] :is(pont2-prim-drawer-header, [data-pont2-drawer-header]) {
|
|
31782
|
+
text-align: center;
|
|
31783
|
+
}
|
|
31784
|
+
@media (width >= 48rem) {
|
|
31785
|
+
:is(pont2-prim-drawer-header, [data-pont2-drawer-header]) {
|
|
31786
|
+
gap: 0.375rem;
|
|
31787
|
+
}
|
|
31788
|
+
[data-pont2-drawer-content] :is(pont2-prim-drawer-header, [data-pont2-drawer-header]) {
|
|
31789
|
+
text-align: left;
|
|
31790
|
+
}
|
|
31791
|
+
}
|
|
31792
|
+
:is(pont2-prim-drawer-footer, [data-pont2-drawer-footer]) {
|
|
31793
|
+
display: flex;
|
|
31794
|
+
flex-direction: column;
|
|
31795
|
+
flex-shrink: 0;
|
|
31796
|
+
gap: 0.5rem;
|
|
31797
|
+
margin-top: auto;
|
|
31798
|
+
padding: 0 1rem 1rem;
|
|
31799
|
+
}
|
|
31800
|
+
:is(pont2-prim-drawer-title, [data-pont2-drawer-title]) {
|
|
31801
|
+
display: block;
|
|
31802
|
+
margin: 0;
|
|
31803
|
+
color: var(--pont2-sem-color-foreground);
|
|
31804
|
+
font-family: var(--pont2-sem-font-heading);
|
|
31805
|
+
font-weight: var(--pont2-sem-font-weight-medium);
|
|
31806
|
+
}
|
|
31807
|
+
:is(pont2-prim-drawer-description, [data-pont2-drawer-description]) {
|
|
31808
|
+
display: block;
|
|
31809
|
+
margin: 0;
|
|
31810
|
+
color: var(--pont2-sem-color-muted-foreground);
|
|
31811
|
+
font-size: var(--pont2-sem-text-sm);
|
|
31812
|
+
line-height: var(--pont2-sem-text-sm--line-height);
|
|
31813
|
+
text-wrap: balance;
|
|
31814
|
+
}
|
|
31815
|
+
}
|
|
31816
|
+
|
|
31817
|
+
/* ../primitives/hover-card/hover-card.css */
|
|
31818
|
+
/*
|
|
31819
|
+
* Hover Card. shadcn (Base UI Preview Card, Vega):
|
|
31820
|
+
* content: "z-50 origin-(--transform-origin) outline-hidden" + .cn-hover-card-content
|
|
31821
|
+
* "fade/zoom-95, slide-in-from-<side>-2, ring-foreground/10 bg-popover
|
|
31822
|
+
* text-popover-foreground w-64 rounded-lg p-4 text-sm shadow-md ring-1 duration-100"
|
|
31823
|
+
* (enter/exit: core/popup/popup.css)
|
|
31824
|
+
*
|
|
31825
|
+
* Tokens (docs/11-tokens.md): `--pont2-hover-card-*`, resolved on the content.
|
|
31826
|
+
*/
|
|
31827
|
+
@layer pont2.primitives {
|
|
31828
|
+
:is(pont2-prim-hover-card-content, [data-pont2-hover-card-content]) {
|
|
31829
|
+
/** @token Background */
|
|
31830
|
+
--_pont2-hover-card-bg: var(--pont2-hover-card-bg, var(--pont2-sem-color-popover));
|
|
31831
|
+
/** @token Text */
|
|
31832
|
+
--_pont2-hover-card-fg: var(--pont2-hover-card-fg, var(--pont2-sem-color-popover-foreground));
|
|
31833
|
+
/** @token Border */
|
|
31834
|
+
--_pont2-hover-card-border-color: var(--pont2-hover-card-border-color, color-mix(in oklab, var(--pont2-sem-color-foreground) 10%, transparent));
|
|
31835
|
+
/** @token Corner radius */
|
|
31836
|
+
--_pont2-hover-card-radius: var(--pont2-hover-card-radius, var(--pont2-sem-radius-lg));
|
|
31837
|
+
/** @token Shadow */
|
|
31838
|
+
--_pont2-hover-card-shadow: var(--pont2-hover-card-shadow, var(--pont2-sem-shadow-md));
|
|
31839
|
+
/** @token Width */
|
|
31840
|
+
--_pont2-hover-card-width: var(--pont2-hover-card-width, 16rem);
|
|
31841
|
+
/** @token Horizontal padding */
|
|
31842
|
+
--_pont2-hover-card-padding-x: var(--pont2-hover-card-padding-x, 1rem);
|
|
31843
|
+
/** @token Vertical padding */
|
|
31844
|
+
--_pont2-hover-card-padding-y: var(--pont2-hover-card-padding-y, 1rem);
|
|
31845
|
+
}
|
|
31846
|
+
|
|
31847
|
+
:is(pont2-prim-hover-card-content, [data-pont2-hover-card-content]) {
|
|
31848
|
+
display: block;
|
|
31849
|
+
box-sizing: border-box;
|
|
31850
|
+
width: var(--_pont2-hover-card-width);
|
|
31851
|
+
max-width: var(--pont2-available-width);
|
|
31852
|
+
padding: var(--_pont2-hover-card-padding-y) var(--_pont2-hover-card-padding-x);
|
|
31853
|
+
border-radius: var(--_pont2-hover-card-radius);
|
|
31854
|
+
background-color: var(--_pont2-hover-card-bg);
|
|
31855
|
+
color: var(--_pont2-hover-card-fg);
|
|
31856
|
+
font-size: var(--pont2-sem-text-sm);
|
|
31857
|
+
line-height: var(--pont2-sem-text-sm--line-height);
|
|
31858
|
+
outline: none;
|
|
31859
|
+
--pont2-shadow: var(--_pont2-hover-card-shadow);
|
|
31860
|
+
--pont2-ring-shadow: 0 0 0 var(--pont2-sem-border-width) var(--_pont2-hover-card-border-color);
|
|
31861
|
+
box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
|
|
31862
|
+
}
|
|
31863
|
+
}
|
|
31864
|
+
|
|
31865
|
+
/* ../primitives/sonner/sonner.css */
|
|
31866
|
+
/*
|
|
31867
|
+
* Toaster: shadcn's Sonner (components/ui/sonner.tsx, Vega). shadcn themes Sonner with
|
|
31868
|
+
* --normal-bg: var(--popover); --normal-text: var(--popover-foreground);
|
|
31869
|
+
* --normal-border: var(--border); --border-radius: var(--radius)
|
|
31870
|
+
* toastOptions.classNames.toast: .cn-toast "rounded-2xl"
|
|
31871
|
+
* and lucide icons at size-4 (the loading one animate-spin). Sonner's own stylesheet
|
|
31872
|
+
* gives the layout ported here: a 356px column 24px from the edge (16px and full width
|
|
31873
|
+
* below 600px), 14px apart; each toast a flex row, padding 16px, 1px border,
|
|
31874
|
+
* shadow 0 4px 12px #0000001a, 13px text, title 500 / description 400; buttons 24px
|
|
31875
|
+
* high, 12px text, radius 4px, the action in the toast's text colour; the × button a
|
|
31876
|
+
* 20px circle on the corner; toasts slide in from their edge and fade out.
|
|
31877
|
+
*
|
|
31878
|
+
* Tokens (docs/11-tokens.md): `--pont2-toast-*`, resolved on the toaster.
|
|
31879
|
+
*/
|
|
31880
|
+
@layer pont2.primitives {
|
|
31881
|
+
:is(pont2-prim-toaster, [data-pont2-toaster]) {
|
|
31882
|
+
/** @token component=toast Background */
|
|
31883
|
+
--_pont2-toast-bg: var(--pont2-toast-bg, var(--pont2-sem-color-popover));
|
|
31884
|
+
/** @token component=toast Text */
|
|
31885
|
+
--_pont2-toast-fg: var(--pont2-toast-fg, var(--pont2-sem-color-popover-foreground));
|
|
31886
|
+
/** @token component=toast Border */
|
|
31887
|
+
--_pont2-toast-border-color: var(--pont2-toast-border-color, var(--pont2-sem-color-border));
|
|
31888
|
+
/** @token component=toast Corner radius */
|
|
31889
|
+
--_pont2-toast-radius: var(--pont2-toast-radius, var(--pont2-sem-radius-2xl));
|
|
31890
|
+
/** @token component=toast Shadow */
|
|
31891
|
+
--_pont2-toast-shadow: var(--pont2-toast-shadow, 0 4px 12px oklch(0 0 0 / 10%));
|
|
31892
|
+
/** @token component=toast Width */
|
|
31893
|
+
--_pont2-toast-width: var(--pont2-toast-width, 356px);
|
|
31894
|
+
--_pont2-toaster-offset: 24px;
|
|
31895
|
+
}
|
|
31896
|
+
|
|
31897
|
+
/* The section: a popover in the top layer, with the UA popover box undone. */
|
|
31898
|
+
:is(pont2-prim-toaster, [data-pont2-toaster]) {
|
|
31899
|
+
position: fixed;
|
|
31900
|
+
inset: auto;
|
|
31901
|
+
width: var(--_pont2-toast-width);
|
|
31902
|
+
height: auto;
|
|
31903
|
+
margin: 0;
|
|
31904
|
+
padding: 0;
|
|
31905
|
+
border: 0;
|
|
31906
|
+
overflow: visible;
|
|
31907
|
+
background: transparent;
|
|
31908
|
+
color: var(--_pont2-toast-fg);
|
|
31909
|
+
font-family: var(--pont2-sem-font-body);
|
|
31910
|
+
outline: none;
|
|
31911
|
+
}
|
|
31912
|
+
:is(pont2-prim-toaster, [data-pont2-toaster]):not(:popover-open) {
|
|
31913
|
+
display: none;
|
|
31914
|
+
}
|
|
31915
|
+
[data-pont2-toaster][data-y-position="bottom"] {
|
|
31916
|
+
bottom: var(--_pont2-toaster-offset);
|
|
31917
|
+
}
|
|
31918
|
+
[data-pont2-toaster][data-y-position="top"] {
|
|
31919
|
+
top: var(--_pont2-toaster-offset);
|
|
31920
|
+
}
|
|
31921
|
+
[data-pont2-toaster][data-x-position="right"] {
|
|
31922
|
+
right: var(--_pont2-toaster-offset);
|
|
31923
|
+
}
|
|
31924
|
+
[data-pont2-toaster][data-x-position="left"] {
|
|
31925
|
+
left: var(--_pont2-toaster-offset);
|
|
31926
|
+
}
|
|
31927
|
+
[data-pont2-toaster][data-x-position="center"] {
|
|
31928
|
+
left: 50%;
|
|
31929
|
+
translate: -50% 0;
|
|
31930
|
+
}
|
|
31931
|
+
@media (width < 600px) {
|
|
31932
|
+
:is(pont2-prim-toaster, [data-pont2-toaster]) {
|
|
31933
|
+
--_pont2-toaster-offset: 16px;
|
|
31934
|
+
width: calc(100% - 2 * var(--_pont2-toaster-offset));
|
|
31935
|
+
}
|
|
31936
|
+
[data-pont2-toaster][data-x-position] {
|
|
31937
|
+
left: var(--_pont2-toaster-offset);
|
|
31938
|
+
right: var(--_pont2-toaster-offset);
|
|
31939
|
+
translate: none;
|
|
31940
|
+
}
|
|
31941
|
+
}
|
|
31942
|
+
|
|
31943
|
+
[data-pont2-toaster] > [data-sonner-toaster] {
|
|
31944
|
+
display: flex;
|
|
31945
|
+
flex-direction: column;
|
|
31946
|
+
gap: 14px;
|
|
31947
|
+
margin: 0;
|
|
31948
|
+
padding: 0;
|
|
31949
|
+
list-style: none;
|
|
31950
|
+
}
|
|
31951
|
+
|
|
31952
|
+
[data-pont2-toast] {
|
|
31953
|
+
position: relative;
|
|
31954
|
+
display: flex;
|
|
31955
|
+
box-sizing: border-box;
|
|
31956
|
+
width: 100%;
|
|
31957
|
+
align-items: center;
|
|
31958
|
+
gap: 6px;
|
|
31959
|
+
padding: 16px;
|
|
31960
|
+
border: var(--pont2-sem-border-width) solid var(--_pont2-toast-border-color);
|
|
31961
|
+
border-radius: var(--_pont2-toast-radius);
|
|
31962
|
+
background-color: var(--_pont2-toast-bg);
|
|
31963
|
+
color: var(--_pont2-toast-fg);
|
|
31964
|
+
font-size: 13px;
|
|
31965
|
+
line-height: 1.5;
|
|
31966
|
+
--pont2-shadow: var(--_pont2-toast-shadow);
|
|
31967
|
+
box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
|
|
31968
|
+
outline: none;
|
|
31969
|
+
overflow-wrap: anywhere;
|
|
31970
|
+
animation: pont2-toast-enter 400ms var(--pont2-sem-ease-out);
|
|
31971
|
+
transition: opacity 400ms, translate 400ms;
|
|
31972
|
+
}
|
|
31973
|
+
[data-pont2-toast]:focus-visible {
|
|
31974
|
+
--pont2-ring-shadow: 0 0 0 var(--pont2-sem-ring-width) color-mix(in oklab, var(--pont2-sem-color-ring) 50%, transparent);
|
|
31975
|
+
}
|
|
31976
|
+
[data-pont2-toaster][data-y-position="top"] [data-pont2-toast] {
|
|
31977
|
+
animation-name: pont2-toast-enter-top;
|
|
31978
|
+
}
|
|
31979
|
+
[data-pont2-toast][data-removed] {
|
|
31980
|
+
opacity: 0;
|
|
31981
|
+
translate: 0 25%;
|
|
31982
|
+
transition-duration: 200ms;
|
|
31983
|
+
pointer-events: none;
|
|
31984
|
+
}
|
|
31985
|
+
[data-pont2-toaster][data-y-position="top"] [data-pont2-toast][data-removed] {
|
|
31986
|
+
translate: 0 -25%;
|
|
31987
|
+
}
|
|
31988
|
+
|
|
31989
|
+
[data-pont2-toast] > [data-icon] {
|
|
31990
|
+
position: relative;
|
|
31991
|
+
display: flex;
|
|
31992
|
+
flex-shrink: 0;
|
|
31993
|
+
width: 16px;
|
|
31994
|
+
height: 16px;
|
|
31995
|
+
margin-inline: -3px 4px;
|
|
31996
|
+
align-items: center;
|
|
31997
|
+
justify-content: flex-start;
|
|
31998
|
+
}
|
|
31999
|
+
[data-pont2-toast] > [data-icon] > svg {
|
|
32000
|
+
width: 1rem;
|
|
32001
|
+
height: 1rem;
|
|
32002
|
+
}
|
|
32003
|
+
[data-pont2-toast] svg[data-spin] {
|
|
32004
|
+
animation: var(--pont2-sem-animate-spin);
|
|
32005
|
+
}
|
|
32006
|
+
|
|
32007
|
+
[data-pont2-toast] > [data-content] {
|
|
32008
|
+
display: flex;
|
|
32009
|
+
flex-direction: column;
|
|
32010
|
+
gap: 2px;
|
|
32011
|
+
min-width: 0;
|
|
32012
|
+
}
|
|
32013
|
+
[data-pont2-toast] [data-title] {
|
|
32014
|
+
font-weight: var(--pont2-sem-font-weight-medium);
|
|
32015
|
+
line-height: 1.5;
|
|
32016
|
+
}
|
|
32017
|
+
[data-pont2-toast] [data-description] {
|
|
32018
|
+
font-weight: var(--pont2-sem-font-weight-normal);
|
|
32019
|
+
line-height: 1.4;
|
|
32020
|
+
color: var(--pont2-sem-color-muted-foreground);
|
|
32021
|
+
}
|
|
32022
|
+
|
|
32023
|
+
[data-pont2-toast] > [data-button] {
|
|
32024
|
+
display: flex;
|
|
32025
|
+
flex-shrink: 0;
|
|
32026
|
+
height: 24px;
|
|
32027
|
+
align-items: center;
|
|
32028
|
+
padding: 0 8px;
|
|
32029
|
+
border: 0;
|
|
32030
|
+
border-radius: 4px;
|
|
32031
|
+
background-color: var(--_pont2-toast-fg);
|
|
32032
|
+
color: var(--_pont2-toast-bg);
|
|
32033
|
+
font: inherit;
|
|
32034
|
+
font-size: 12px;
|
|
32035
|
+
font-weight: var(--pont2-sem-font-weight-medium);
|
|
32036
|
+
cursor: pointer;
|
|
32037
|
+
outline: none;
|
|
32038
|
+
transition: opacity 400ms, box-shadow 200ms;
|
|
32039
|
+
}
|
|
32040
|
+
[data-pont2-toast] > [data-button]:first-of-type {
|
|
32041
|
+
margin-inline-start: auto;
|
|
32042
|
+
}
|
|
32043
|
+
[data-pont2-toast] > [data-button][data-cancel] {
|
|
32044
|
+
background-color: color-mix(in oklab, var(--_pont2-toast-fg) 8%, transparent);
|
|
32045
|
+
color: var(--_pont2-toast-fg);
|
|
32046
|
+
}
|
|
32047
|
+
[data-pont2-toast] > :is([data-button], [data-close-button]):focus-visible {
|
|
32048
|
+
box-shadow: 0 0 0 2px color-mix(in oklab, var(--pont2-sem-color-ring) 50%, transparent);
|
|
32049
|
+
}
|
|
32050
|
+
|
|
32051
|
+
[data-pont2-toast] > [data-close-button] {
|
|
32052
|
+
position: absolute;
|
|
32053
|
+
top: 0;
|
|
32054
|
+
left: 0;
|
|
32055
|
+
display: flex;
|
|
32056
|
+
width: 20px;
|
|
32057
|
+
height: 20px;
|
|
32058
|
+
padding: 0;
|
|
32059
|
+
align-items: center;
|
|
32060
|
+
justify-content: center;
|
|
32061
|
+
translate: -35% -35%;
|
|
32062
|
+
border: var(--pont2-sem-border-width) solid var(--_pont2-toast-border-color);
|
|
32063
|
+
border-radius: var(--pont2-sem-radius-full);
|
|
32064
|
+
background-color: var(--_pont2-toast-bg);
|
|
32065
|
+
color: var(--_pont2-toast-fg);
|
|
32066
|
+
cursor: pointer;
|
|
32067
|
+
outline: none;
|
|
32068
|
+
}
|
|
32069
|
+
[data-pont2-toast] > [data-close-button] > svg {
|
|
32070
|
+
width: 12px;
|
|
32071
|
+
height: 12px;
|
|
32072
|
+
}
|
|
32073
|
+
|
|
32074
|
+
@media (prefers-reduced-motion: reduce) {
|
|
32075
|
+
[data-pont2-toast],
|
|
32076
|
+
[data-pont2-toast][data-removed] {
|
|
32077
|
+
animation: none;
|
|
32078
|
+
transition: none;
|
|
32079
|
+
translate: none;
|
|
32080
|
+
}
|
|
32081
|
+
}
|
|
32082
|
+
}
|
|
32083
|
+
|
|
32084
|
+
@keyframes pont2-toast-enter {
|
|
32085
|
+
from {
|
|
32086
|
+
opacity: 0;
|
|
32087
|
+
translate: 0 100%;
|
|
32088
|
+
}
|
|
32089
|
+
}
|
|
32090
|
+
@keyframes pont2-toast-enter-top {
|
|
32091
|
+
from {
|
|
32092
|
+
opacity: 0;
|
|
32093
|
+
translate: 0 -100%;
|
|
32094
|
+
}
|
|
32095
|
+
}
|
|
32096
|
+
|
|
32097
|
+
/* --- end overlays (C) --- */
|
|
32098
|
+
|
|
32099
|
+
/* Kit: composites (each file wraps itself in @layer pont2.kit). Aliases need no CSS:
|
|
32100
|
+
their tags are listed in the primitive recipes. docs/10-primitives-and-kit.md */
|
|
32101
|
+
/* ../kit/alert/alert.css */
|
|
32102
|
+
/*
|
|
32103
|
+
* <pont2-alert> (kit composite). Everything shadcn defines comes from the
|
|
32104
|
+
* primitive recipe (primitives/alert/alert.css), which matches this element
|
|
32105
|
+
* through [data-pont2-alert]. This file adds only what the composite adds:
|
|
32106
|
+
* the warning / success / info statuses, coloured like shadcn's destructive
|
|
32107
|
+
* variant ("text-destructive bg-card *:data-[slot=alert-description]:text-destructive/90").
|
|
32108
|
+
*
|
|
32109
|
+
* Tokens (docs/11-tokens.md §5): one colour per status, defaulting to the sem
|
|
32110
|
+
* status colours.
|
|
32111
|
+
*/
|
|
32112
|
+
@layer pont2.kit {
|
|
32113
|
+
/* ------------------------------------------------------------------ */
|
|
32114
|
+
/* Tokens */
|
|
32115
|
+
/* ------------------------------------------------------------------ */
|
|
32116
|
+
|
|
32117
|
+
pont2-alert {
|
|
32118
|
+
/* set per status below; declared here so nothing is inherited from an ancestor */
|
|
32119
|
+
--_pont2-alert-status-fg: currentColor;
|
|
32120
|
+
}
|
|
32121
|
+
pont2-alert[data-status="warning"] {
|
|
32122
|
+
/** @token Text (warning) */
|
|
32123
|
+
--_pont2-alert-status-fg: var(--pont2-alert-warning-fg, var(--pont2-sem-color-warning));
|
|
32124
|
+
}
|
|
32125
|
+
pont2-alert[data-status="success"] {
|
|
32126
|
+
/** @token Text (success) */
|
|
32127
|
+
--_pont2-alert-status-fg: var(--pont2-alert-success-fg, var(--pont2-sem-color-success));
|
|
32128
|
+
}
|
|
32129
|
+
pont2-alert[data-status="info"] {
|
|
32130
|
+
/** @token Text (info) */
|
|
32131
|
+
--_pont2-alert-status-fg: var(--pont2-alert-info-fg, var(--pont2-sem-color-info));
|
|
32132
|
+
}
|
|
32133
|
+
|
|
32134
|
+
/* ------------------------------------------------------------------ */
|
|
32135
|
+
/* Recipe */
|
|
32136
|
+
/* ------------------------------------------------------------------ */
|
|
32137
|
+
|
|
32138
|
+
pont2-alert:is([data-status="warning"], [data-status="success"], [data-status="info"]) {
|
|
32139
|
+
color: var(--_pont2-alert-status-fg);
|
|
32140
|
+
}
|
|
32141
|
+
pont2-alert:is([data-status="warning"], [data-status="success"], [data-status="info"]) > [data-slot="alert-description"] {
|
|
32142
|
+
color: color-mix(in oklab, var(--_pont2-alert-status-fg) 90%, transparent);
|
|
32143
|
+
}
|
|
32144
|
+
}
|
|
32145
|
+
|
|
32146
|
+
/* ../kit/avatar/avatar.css */
|
|
32147
|
+
/*
|
|
32148
|
+
* <pont2-avatar> (kit composite). All styling comes from the primitive recipe
|
|
32149
|
+
* (primitives/avatar/avatar.css) through [data-pont2-avatar] and the parts'
|
|
32150
|
+
* identity attributes; the composite adds no visual rules of its own.
|
|
32151
|
+
*
|
|
32152
|
+
* The file exists so every kit element has a stylesheet in @layer pont2.kit,
|
|
32153
|
+
* where composite-specific rules go when they appear.
|
|
32154
|
+
*/
|
|
32155
|
+
@layer pont2.kit {
|
|
32156
|
+
/* Size before upgrade, so a server-rendered composite does not collapse. */
|
|
32157
|
+
pont2-avatar:not([data-pont2-avatar]) {
|
|
32158
|
+
display: inline-flex;
|
|
32159
|
+
width: 2rem;
|
|
32160
|
+
height: 2rem;
|
|
32161
|
+
}
|
|
32162
|
+
pont2-avatar:not([data-pont2-avatar])[size="sm"] {
|
|
32163
|
+
width: 1.5rem;
|
|
32164
|
+
height: 1.5rem;
|
|
32165
|
+
}
|
|
32166
|
+
pont2-avatar:not([data-pont2-avatar])[size="lg"] {
|
|
32167
|
+
width: 2.5rem;
|
|
32168
|
+
height: 2.5rem;
|
|
32169
|
+
}
|
|
32170
|
+
}
|
|
32171
|
+
|
|
32172
|
+
/* ../kit/input-otp/input-otp.css */
|
|
32173
|
+
/*
|
|
32174
|
+
* <pont2-input-otp> (kit composite). All styling comes from the primitive
|
|
32175
|
+
* recipe (primitives/input-otp/input-otp.css) through [data-pont2-input-otp]
|
|
32176
|
+
* and the parts' identity attributes.
|
|
32177
|
+
*
|
|
32178
|
+
* Added here: the composite has no children before upgrade, so it reserves the
|
|
32179
|
+
* primitive's slot height (2.25rem) to avoid a layout shift.
|
|
32180
|
+
*/
|
|
32181
|
+
@layer pont2.kit {
|
|
32182
|
+
pont2-input-otp:not([data-pont2-input-otp]) {
|
|
32183
|
+
display: flex;
|
|
32184
|
+
min-height: 2.25rem;
|
|
32185
|
+
}
|
|
32186
|
+
}
|
|
32187
|
+
|
|
32188
|
+
/* ../kit/auth-button/auth-button.css */
|
|
32189
|
+
/*
|
|
32190
|
+
* Auth buttons (kit composites). All visual styling is the button primitive's
|
|
32191
|
+
* recipe (primitives/button/button.css) on the native <button>, including
|
|
32192
|
+
* shadcn's icon spacing (`has-data-[icon=inline-start]`) and the icon sizes.
|
|
32193
|
+
* The busy spinner is the spinner primitive's part.
|
|
32194
|
+
*
|
|
32195
|
+
* Added here:
|
|
32196
|
+
* - before upgrade the shell is empty, so it reserves a default button's
|
|
31075
32197
|
* height (h-9) to avoid a layout shift;
|
|
31076
32198
|
* - brand marks keep their shape at any button size;
|
|
31077
32199
|
* - provider-button tokens (docs/11-tokens.md §5): the provider button is an
|
|
@@ -31999,3 +33121,125 @@ body {
|
|
|
31999
33121
|
color: var(--pont2-sem-color-muted-foreground);
|
|
32000
33122
|
}
|
|
32001
33123
|
}
|
|
33124
|
+
|
|
33125
|
+
/* ../kit/provider/provider.css */
|
|
33126
|
+
/*
|
|
33127
|
+
* <pont2-provider>, <pont2-signed-in>, <pont2-signed-out>: control elements. They add no box, so
|
|
33128
|
+
* the page lays out as if their children were written in their place.
|
|
33129
|
+
*/
|
|
33130
|
+
@layer pont2.kit {
|
|
33131
|
+
:is(pont2-provider, pont2-signed-in, pont2-signed-out, [data-pont2-provider], [data-pont2-auth-gate]) {
|
|
33132
|
+
display: contents;
|
|
33133
|
+
}
|
|
33134
|
+
}
|
|
33135
|
+
|
|
33136
|
+
/* ../kit/pagination/pagination.css */
|
|
33137
|
+
/*
|
|
33138
|
+
* <pont2-pagination>: the composite adds no styles of its own beyond the primitive
|
|
33139
|
+
* recipe (primitives/pagination/pagination.css), which styles the parts it renders.
|
|
33140
|
+
* While `disabled`, the whole pager reads as disabled.
|
|
33141
|
+
*/
|
|
33142
|
+
@layer pont2.kit {
|
|
33143
|
+
pont2-pagination[data-disabled] {
|
|
33144
|
+
cursor: not-allowed;
|
|
33145
|
+
}
|
|
33146
|
+
}
|
|
33147
|
+
|
|
33148
|
+
/* ../kit/data-table/data-table.css */
|
|
33149
|
+
/*
|
|
33150
|
+
* <pont2-data-table>: the Table primitive's recipe styles the table it renders
|
|
33151
|
+
* (primitives/table/table.css). The composite adds shadcn's data-table guide
|
|
33152
|
+
* details:
|
|
33153
|
+
* sortable header: Button variant="ghost" with an ArrowUpDown icon, pulled to the
|
|
33154
|
+
* cell's edge ("-ml-3" in the guide's examples)
|
|
33155
|
+
* empty row: "<TableCell colSpan={columns.length} className="h-24 text-center">"
|
|
33156
|
+
* actions: a ghost icon button with a MoreHorizontal icon, the menu end-aligned
|
|
33157
|
+
* loading: Skeleton bars ("h-4 w-full")
|
|
33158
|
+
*/
|
|
33159
|
+
@layer pont2.kit {
|
|
33160
|
+
pont2-data-table th[data-sortable] {
|
|
33161
|
+
padding-inline-start: 0;
|
|
33162
|
+
}
|
|
33163
|
+
pont2-data-table [data-pont2-data-table-sort] svg {
|
|
33164
|
+
width: 1rem;
|
|
33165
|
+
height: 1rem;
|
|
33166
|
+
}
|
|
33167
|
+
pont2-data-table [data-pont2-data-table-sort]:not(:hover) svg[data-icon-name="arrow-up-down"] {
|
|
33168
|
+
color: var(--pont2-sem-color-muted-foreground);
|
|
33169
|
+
}
|
|
33170
|
+
pont2-data-table :is(th, td)[data-align="end"] {
|
|
33171
|
+
text-align: end;
|
|
33172
|
+
}
|
|
33173
|
+
pont2-data-table :is(th, td)[data-align="center"] {
|
|
33174
|
+
text-align: center;
|
|
33175
|
+
}
|
|
33176
|
+
pont2-data-table th[data-sortable][data-align="end"] {
|
|
33177
|
+
padding-inline: 0;
|
|
33178
|
+
}
|
|
33179
|
+
pont2-data-table [data-pont2-data-table-actions] {
|
|
33180
|
+
width: 1px;
|
|
33181
|
+
text-align: end;
|
|
33182
|
+
}
|
|
33183
|
+
pont2-data-table [data-pont2-data-table-empty] > td {
|
|
33184
|
+
height: 6rem;
|
|
33185
|
+
text-align: center;
|
|
33186
|
+
color: var(--pont2-sem-color-muted-foreground);
|
|
33187
|
+
}
|
|
33188
|
+
pont2-data-table [data-pont2-data-table-empty]:hover {
|
|
33189
|
+
background-color: transparent;
|
|
33190
|
+
}
|
|
33191
|
+
pont2-data-table [data-pont2-data-table-skeleton] {
|
|
33192
|
+
width: 100%;
|
|
33193
|
+
min-width: 3rem;
|
|
33194
|
+
height: 1rem;
|
|
33195
|
+
}
|
|
33196
|
+
}
|
|
33197
|
+
|
|
33198
|
+
/* ../kit/badge-selector/badge-selector.css */
|
|
33199
|
+
/*
|
|
33200
|
+
* <pont2-badge-selector>: the Combobox primitive's recipe styles everything it renders
|
|
33201
|
+
* (primitives/combobox/combobox.css: the chips input, the popup, the items). The
|
|
33202
|
+
* composite only makes the chips box fill its container, as the legacy selector did.
|
|
33203
|
+
*/
|
|
33204
|
+
@layer pont2.kit {
|
|
33205
|
+
pont2-badge-selector > [data-pont2-combobox-chips] {
|
|
33206
|
+
width: 100%;
|
|
33207
|
+
}
|
|
33208
|
+
}
|
|
33209
|
+
|
|
33210
|
+
/* ../kit/multi-email-input/multi-email-input.css */
|
|
33211
|
+
/*
|
|
33212
|
+
* <pont2-multi-email-input>: the box, chips and input are the multiple Combobox's chips
|
|
33213
|
+
* recipe (primitives/combobox/combobox.css), rendered as parts; the message under it is a
|
|
33214
|
+
* Field description or error (primitives/field/field.css). Laid out like a Field: the box,
|
|
33215
|
+
* then the message, 0.5rem apart.
|
|
33216
|
+
*/
|
|
33217
|
+
@layer pont2.kit {
|
|
33218
|
+
pont2-multi-email-input {
|
|
33219
|
+
display: grid;
|
|
33220
|
+
gap: 0.5rem;
|
|
33221
|
+
min-width: 0;
|
|
33222
|
+
}
|
|
33223
|
+
pont2-multi-email-input > [data-pont2-multi-email-box] {
|
|
33224
|
+
width: 100%;
|
|
33225
|
+
}
|
|
33226
|
+
pont2-multi-email-input > [data-pont2-multi-email-count] {
|
|
33227
|
+
font-variant-numeric: tabular-nums;
|
|
33228
|
+
text-align: end;
|
|
33229
|
+
}
|
|
33230
|
+
}
|
|
33231
|
+
|
|
33232
|
+
/* ../kit/multi-select-filter/multi-select-filter.css */
|
|
33233
|
+
/*
|
|
33234
|
+
* <pont2-multi-select-filter>: the trigger is a Button, the menu the Dropdown Menu
|
|
33235
|
+
* primitive, the count a Badge (their recipes style them). shadcn's faceted filter puts
|
|
33236
|
+
* the count in a secondary badge after a separator; here it sits after the label with
|
|
33237
|
+
* the button's gap, made compact as in shadcn's "rounded-sm px-1 font-normal".
|
|
33238
|
+
*/
|
|
33239
|
+
@layer pont2.kit {
|
|
33240
|
+
[data-pont2-multi-select-filter-trigger] [data-pont2-multi-select-filter-count] {
|
|
33241
|
+
padding-inline: 0.25rem;
|
|
33242
|
+
border-radius: var(--pont2-sem-radius-sm);
|
|
33243
|
+
font-weight: var(--pont2-sem-font-weight-normal);
|
|
33244
|
+
}
|
|
33245
|
+
}
|