@pontive/pontkit-core 1.39.0 → 1.41.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 +1846 -1289
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17059 -12690
- 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/format.d.ts +46 -0
- package/dist/pont2/core/icons.d.ts +11 -0
- package/dist/pont2/core/index.d.ts +2 -0
- package/dist/pont2/core/messages.d.ts +128 -2
- 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 +55405 -24958
- package/dist/pont2/index.d.ts +7 -0
- package/dist/pont2/index.mjs +6600 -2376
- package/dist/pont2/index.mjs.map +1 -1
- package/dist/pont2/kit/account-menu/account-menu.d.ts +115 -0
- package/dist/pont2/kit/account-settings/account-settings.d.ts +157 -0
- package/dist/pont2/kit/account-settings/profile.d.ts +74 -0
- 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 +11 -0
- package/dist/pont2/kit/layout/layout.d.ts +7 -0
- package/dist/pont2/kit/member-management/errors.d.ts +60 -0
- package/dist/pont2/kit/member-management/member-management.d.ts +237 -0
- package/dist/pont2/kit/member-management/roles.d.ts +42 -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/organization-switcher/organization-switcher.d.ts +111 -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/account-client.d.ts +355 -0
- package/dist/pont2/kit/provider/account-controller.d.ts +47 -0
- package/dist/pont2/kit/provider/account-user.d.ts +16 -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 +219 -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 +100 -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 +2489 -760
- package/dist/pont2/theme/tokens.json.d.ts +700 -1
- package/dist/pont2/theme-golden.json +45 -45
- package/dist/pont2/theme.mjs +119 -119
- package/dist/pont2/tokens.json +700 -1
- package/dist/styles.css +2475 -746
- package/package.json +2 -2
package/dist/styles.css
CHANGED
|
@@ -29170,6 +29170,93 @@ body {
|
|
|
29170
29170
|
}
|
|
29171
29171
|
}
|
|
29172
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
|
+
|
|
29173
29260
|
/* --- end structural (A) --- */
|
|
29174
29261
|
|
|
29175
29262
|
/* --- widgets (B) --- */
|
|
@@ -30040,6 +30127,17 @@ body {
|
|
|
30040
30127
|
translate: var(--_pont2-popup-enter-translate-x, 0) var(--_pont2-popup-enter-translate-y, 0);
|
|
30041
30128
|
}
|
|
30042
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
|
+
}
|
|
30043
30141
|
@keyframes pont2-popup-exit {
|
|
30044
30142
|
to {
|
|
30045
30143
|
opacity: var(--_pont2-popup-exit-opacity, 1);
|
|
@@ -30105,7 +30203,8 @@ body {
|
|
|
30105
30203
|
}
|
|
30106
30204
|
|
|
30107
30205
|
@media (prefers-reduced-motion: reduce) {
|
|
30108
|
-
[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 {
|
|
30109
30208
|
animation: none;
|
|
30110
30209
|
}
|
|
30111
30210
|
}
|
|
@@ -30652,6 +30751,12 @@ body {
|
|
|
30652
30751
|
--_pont2-combobox-item-bg-focus: var(--pont2-combobox-item-bg-focus, var(--pont2-sem-color-accent));
|
|
30653
30752
|
/** @token Text when highlighted */
|
|
30654
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));
|
|
30655
30760
|
}
|
|
30656
30761
|
|
|
30657
30762
|
/* ComboboxInput = InputGroup: "relative flex w-full min-w-0 items-center outline-none"
|
|
@@ -30880,6 +30985,100 @@ body {
|
|
|
30880
30985
|
width: auto;
|
|
30881
30986
|
margin: 0.25rem -0.25rem;
|
|
30882
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
|
+
}
|
|
30883
31082
|
}
|
|
30884
31083
|
|
|
30885
31084
|
/* ../primitives/tooltip/tooltip.css */
|
|
@@ -30969,486 +31168,1412 @@ body {
|
|
|
30969
31168
|
}
|
|
30970
31169
|
}
|
|
30971
31170
|
|
|
30972
|
-
/*
|
|
30973
|
-
|
|
30974
|
-
/* Kit: composites (each file wraps itself in @layer pont2.kit). Aliases need no CSS:
|
|
30975
|
-
their tags are listed in the primitive recipes. docs/10-primitives-and-kit.md */
|
|
30976
|
-
/* ../kit/alert/alert.css */
|
|
31171
|
+
/* ../primitives/dialog/dialog.css */
|
|
30977
31172
|
/*
|
|
30978
|
-
*
|
|
30979
|
-
*
|
|
30980
|
-
*
|
|
30981
|
-
*
|
|
30982
|
-
*
|
|
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"
|
|
30983
31184
|
*
|
|
30984
|
-
*
|
|
30985
|
-
*
|
|
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.
|
|
30986
31191
|
*/
|
|
30987
|
-
@layer pont2.
|
|
31192
|
+
@layer pont2.primitives {
|
|
30988
31193
|
/* ------------------------------------------------------------------ */
|
|
30989
31194
|
/* Tokens */
|
|
30990
31195
|
/* ------------------------------------------------------------------ */
|
|
30991
31196
|
|
|
30992
|
-
pont2-
|
|
30993
|
-
|
|
30994
|
-
--_pont2-
|
|
30995
|
-
|
|
30996
|
-
|
|
30997
|
-
/** @token
|
|
30998
|
-
--_pont2-
|
|
30999
|
-
|
|
31000
|
-
|
|
31001
|
-
/** @token
|
|
31002
|
-
--_pont2-
|
|
31003
|
-
|
|
31004
|
-
|
|
31005
|
-
/** @token
|
|
31006
|
-
--_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%));
|
|
31007
31218
|
}
|
|
31008
31219
|
|
|
31009
31220
|
/* ------------------------------------------------------------------ */
|
|
31010
31221
|
/* Recipe */
|
|
31011
31222
|
/* ------------------------------------------------------------------ */
|
|
31012
31223
|
|
|
31013
|
-
|
|
31014
|
-
|
|
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);
|
|
31015
31245
|
}
|
|
31016
|
-
|
|
31017
|
-
|
|
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
|
+
}
|
|
31018
31250
|
}
|
|
31019
|
-
}
|
|
31020
31251
|
|
|
31021
|
-
/*
|
|
31022
|
-
|
|
31023
|
-
|
|
31024
|
-
* (primitives/avatar/avatar.css) through [data-pont2-avatar] and the parts'
|
|
31025
|
-
* identity attributes; the composite adds no visual rules of its own.
|
|
31026
|
-
*
|
|
31027
|
-
* The file exists so every kit element has a stylesheet in @layer pont2.kit,
|
|
31028
|
-
* where composite-specific rules go when they appear.
|
|
31029
|
-
*/
|
|
31030
|
-
@layer pont2.kit {
|
|
31031
|
-
/* Size before upgrade, so a server-rendered composite does not collapse. */
|
|
31032
|
-
pont2-avatar:not([data-pont2-avatar]) {
|
|
31033
|
-
display: inline-flex;
|
|
31034
|
-
width: 2rem;
|
|
31035
|
-
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);
|
|
31036
31255
|
}
|
|
31037
|
-
|
|
31038
|
-
|
|
31039
|
-
|
|
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;
|
|
31040
31262
|
}
|
|
31041
|
-
|
|
31042
|
-
|
|
31043
|
-
|
|
31263
|
+
|
|
31264
|
+
:is(pont2-prim-dialog-header, [data-pont2-dialog-header]) {
|
|
31265
|
+
display: flex;
|
|
31266
|
+
flex-direction: column;
|
|
31267
|
+
gap: 0.5rem;
|
|
31044
31268
|
}
|
|
31045
|
-
}
|
|
31046
31269
|
|
|
31047
|
-
|
|
31048
|
-
/*
|
|
31049
|
-
* <pont2-input-otp> (kit composite). All styling comes from the primitive
|
|
31050
|
-
* recipe (primitives/input-otp/input-otp.css) through [data-pont2-input-otp]
|
|
31051
|
-
* and the parts' identity attributes.
|
|
31052
|
-
*
|
|
31053
|
-
* Added here: the composite has no children before upgrade, so it reserves the
|
|
31054
|
-
* primitive's slot height (2.25rem) to avoid a layout shift.
|
|
31055
|
-
*/
|
|
31056
|
-
@layer pont2.kit {
|
|
31057
|
-
pont2-input-otp:not([data-pont2-input-otp]) {
|
|
31270
|
+
:is(pont2-prim-dialog-footer, [data-pont2-dialog-footer]) {
|
|
31058
31271
|
display: flex;
|
|
31059
|
-
|
|
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;
|
|
31060
31323
|
}
|
|
31061
31324
|
}
|
|
31062
31325
|
|
|
31063
|
-
/* ../
|
|
31326
|
+
/* ../primitives/alert-dialog/alert-dialog.css */
|
|
31064
31327
|
/*
|
|
31065
|
-
*
|
|
31066
|
-
*
|
|
31067
|
-
*
|
|
31068
|
-
*
|
|
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"
|
|
31069
31342
|
*
|
|
31070
|
-
*
|
|
31071
|
-
* - before upgrade the shell is empty, so it reserves a default button's
|
|
31072
|
-
* height (h-9) to avoid a layout shift;
|
|
31073
|
-
* - brand marks keep their shape at any button size;
|
|
31074
|
-
* - provider-button tokens (docs/11-tokens.md §5): the provider button is an
|
|
31075
|
-
* outline Button by default, brandable on its own, and follows the Button's
|
|
31076
|
-
* outline tokens when only those are set.
|
|
31343
|
+
* Tokens (docs/11-tokens.md): `--pont2-alert-dialog-*`, resolved on the content.
|
|
31077
31344
|
*/
|
|
31078
|
-
@layer pont2.
|
|
31079
|
-
|
|
31080
|
-
|
|
31081
|
-
|
|
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
|
+
}
|
|
31082
31368
|
|
|
31083
|
-
pont2-
|
|
31084
|
-
|
|
31085
|
-
|
|
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);
|
|
31086
31389
|
}
|
|
31087
|
-
pont2-
|
|
31088
|
-
|
|
31089
|
-
--_pont2-button-bg: var(--pont2-provider-button-bg, var(--pont2-button-outline-bg, var(--pont2-sem-color-control)));
|
|
31090
|
-
/** @token component=provider-button Text */
|
|
31091
|
-
--_pont2-button-fg: var(--pont2-provider-button-fg, var(--pont2-button-outline-fg, currentcolor));
|
|
31092
|
-
/** @token component=provider-button Border */
|
|
31093
|
-
--_pont2-button-border-color: var(--pont2-provider-button-border-color, var(--pont2-button-outline-border-color, var(--pont2-sem-color-control-border)));
|
|
31094
|
-
/** @token component=provider-button Background on hover */
|
|
31095
|
-
--_pont2-button-bg-hover: var(--pont2-provider-button-bg-hover, var(--pont2-button-outline-bg-hover, var(--pont2-sem-color-control-hover)));
|
|
31390
|
+
:is(pont2-prim-alert-dialog-content, [data-pont2-alert-dialog-content])::backdrop {
|
|
31391
|
+
background-color: var(--_pont2-alert-dialog-overlay-bg);
|
|
31096
31392
|
}
|
|
31097
31393
|
|
|
31098
|
-
|
|
31099
|
-
|
|
31100
|
-
|
|
31101
|
-
|
|
31102
|
-
|
|
31103
|
-
|
|
31104
|
-
min-height: 2.25rem;
|
|
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;
|
|
31105
31400
|
}
|
|
31106
|
-
|
|
31107
|
-
|
|
31108
|
-
|
|
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;
|
|
31109
31404
|
}
|
|
31110
31405
|
|
|
31111
|
-
|
|
31112
|
-
|
|
31113
|
-
|
|
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;
|
|
31114
31419
|
}
|
|
31115
|
-
}
|
|
31116
31420
|
|
|
31117
|
-
|
|
31118
|
-
/*
|
|
31119
|
-
* Auth fields (kit composites). The field, label, input, input-group,
|
|
31120
|
-
* description and error recipes are the primitives'; the field host matches
|
|
31121
|
-
* them through [data-pont2-field], the parts through their identity
|
|
31122
|
-
* attributes. Added here:
|
|
31123
|
-
*/
|
|
31124
|
-
@layer pont2.kit {
|
|
31125
|
-
/* Before upgrade the composite is empty: reserve label + gap + input (h-9),
|
|
31126
|
-
so a server-rendered screen does not jump. */
|
|
31127
|
-
:is(pont2-email-field, pont2-phone-field, pont2-username-field, pont2-name-field, pont2-identifier-field,
|
|
31128
|
-
pont2-password-field, pont2-confirm-field):not([data-pont2-field]) {
|
|
31421
|
+
:is(pont2-prim-alert-dialog-title, [data-pont2-alert-dialog-title]) {
|
|
31129
31422
|
display: block;
|
|
31130
|
-
|
|
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);
|
|
31131
31428
|
}
|
|
31132
31429
|
|
|
31133
|
-
|
|
31134
|
-
|
|
31430
|
+
:is(pont2-prim-alert-dialog-description, [data-pont2-alert-dialog-description]) {
|
|
31431
|
+
display: block;
|
|
31432
|
+
margin: 0;
|
|
31135
31433
|
color: var(--pont2-sem-color-muted-foreground);
|
|
31136
|
-
font-
|
|
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);
|
|
31137
31445
|
}
|
|
31138
31446
|
|
|
31139
|
-
|
|
31140
|
-
("flex items-center" + the link's "ml-auto text-sm underline-offset-4 hover:underline"). */
|
|
31141
|
-
[data-pont2-auth-field-label-row] {
|
|
31447
|
+
:is(pont2-prim-alert-dialog-footer, [data-pont2-alert-dialog-footer]) {
|
|
31142
31448
|
display: flex;
|
|
31143
|
-
|
|
31449
|
+
flex-direction: column-reverse;
|
|
31144
31450
|
gap: 0.5rem;
|
|
31145
31451
|
}
|
|
31146
|
-
[data-pont2-
|
|
31147
|
-
|
|
31148
|
-
|
|
31149
|
-
|
|
31150
|
-
|
|
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
|
+
}
|
|
31151
31484
|
}
|
|
31152
31485
|
}
|
|
31153
31486
|
|
|
31154
|
-
/* ../
|
|
31487
|
+
/* ../primitives/sheet/sheet.css */
|
|
31155
31488
|
/*
|
|
31156
|
-
*
|
|
31157
|
-
*
|
|
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.
|
|
31158
31505
|
*/
|
|
31159
|
-
@layer pont2.
|
|
31160
|
-
|
|
31161
|
-
|
|
31162
|
-
|
|
31163
|
-
|
|
31164
|
-
|
|
31165
|
-
|
|
31166
|
-
|
|
31167
|
-
|
|
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%));
|
|
31168
31524
|
}
|
|
31169
31525
|
|
|
31170
|
-
|
|
31171
|
-
|
|
31172
|
-
|
|
31173
|
-
|
|
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);
|
|
31174
31549
|
}
|
|
31175
31550
|
|
|
31176
|
-
|
|
31177
|
-
|
|
31178
|
-
|
|
31179
|
-
|
|
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
|
+
}
|
|
31180
31592
|
}
|
|
31181
31593
|
|
|
31182
|
-
|
|
31183
|
-
|
|
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]) {
|
|
31184
31601
|
display: flex;
|
|
31185
|
-
|
|
31186
|
-
|
|
31187
|
-
|
|
31188
|
-
color: var(--_pont2-otp-resend-fg);
|
|
31189
|
-
font-size: var(--pont2-sem-text-sm);
|
|
31190
|
-
line-height: var(--pont2-sem-text-sm--line-height);
|
|
31602
|
+
flex-direction: column;
|
|
31603
|
+
gap: 0.375rem;
|
|
31604
|
+
padding: 1rem;
|
|
31191
31605
|
}
|
|
31192
|
-
|
|
31193
|
-
|
|
31194
|
-
|
|
31195
|
-
|
|
31196
|
-
|
|
31197
|
-
|
|
31198
|
-
font-weight: inherit;
|
|
31199
|
-
text-decoration-line: underline;
|
|
31200
|
-
text-underline-offset: 4px;
|
|
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;
|
|
31201
31612
|
}
|
|
31202
|
-
|
|
31203
|
-
|
|
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);
|
|
31204
31626
|
}
|
|
31205
31627
|
}
|
|
31206
31628
|
|
|
31207
|
-
/* ../
|
|
31629
|
+
/* ../primitives/drawer/drawer.css */
|
|
31208
31630
|
/*
|
|
31209
|
-
*
|
|
31210
|
-
* "
|
|
31211
|
-
*
|
|
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"
|
|
31212
31644
|
*
|
|
31213
|
-
*
|
|
31214
|
-
*
|
|
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.
|
|
31215
31649
|
*/
|
|
31216
|
-
@layer pont2.
|
|
31217
|
-
|
|
31218
|
-
|
|
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));
|
|
31219
31654
|
/** @token Text */
|
|
31220
|
-
--_pont2-
|
|
31221
|
-
/** @token
|
|
31222
|
-
--_pont2-
|
|
31223
|
-
/** @token
|
|
31224
|
-
--_pont2-
|
|
31225
|
-
|
|
31226
|
-
|
|
31227
|
-
|
|
31228
|
-
|
|
31229
|
-
:is(pont2-link, [data-pont2-link])[data-invalid-href] {
|
|
31230
|
-
display: none;
|
|
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%));
|
|
31231
31664
|
}
|
|
31232
31665
|
|
|
31233
|
-
:is(pont2-
|
|
31666
|
+
:is(pont2-prim-drawer-content, [data-pont2-drawer-content]) {
|
|
31234
31667
|
display: flex;
|
|
31235
|
-
flex-
|
|
31236
|
-
|
|
31237
|
-
|
|
31238
|
-
|
|
31239
|
-
|
|
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);
|
|
31240
31676
|
font-size: var(--pont2-sem-text-sm);
|
|
31241
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;
|
|
31242
31684
|
}
|
|
31243
|
-
[data-pont2-
|
|
31244
|
-
|
|
31685
|
+
[data-pont2-drawer-content]:is([data-open], [data-closed]) {
|
|
31686
|
+
animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
|
|
31245
31687
|
}
|
|
31246
|
-
[data-pont2-
|
|
31247
|
-
|
|
31688
|
+
:is(pont2-prim-drawer-content, [data-pont2-drawer-content])::backdrop {
|
|
31689
|
+
background-color: var(--_pont2-drawer-overlay-bg);
|
|
31248
31690
|
}
|
|
31249
|
-
|
|
31250
|
-
|
|
31251
|
-
|
|
31252
|
-
|
|
31253
|
-
|
|
31254
|
-
|
|
31255
|
-
|
|
31256
|
-
|
|
31257
|
-
|
|
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);
|
|
31258
31718
|
}
|
|
31259
|
-
[data-pont2-
|
|
31260
|
-
|
|
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);
|
|
31261
31727
|
}
|
|
31262
|
-
|
|
31263
|
-
|
|
31264
|
-
|
|
31265
|
-
|
|
31266
|
-
* <pont2-divider>. Styled entirely by the FieldSeparator recipe through
|
|
31267
|
-
* [data-pont2-field-separator]. Added here: before upgrade the composite is
|
|
31268
|
-
* empty, so it reserves the separator's height (h-5).
|
|
31269
|
-
*/
|
|
31270
|
-
@layer pont2.kit {
|
|
31271
|
-
pont2-divider:not([data-pont2-field-separator]) {
|
|
31272
|
-
display: block;
|
|
31273
|
-
height: 1.25rem;
|
|
31728
|
+
@media (width >= 40rem) {
|
|
31729
|
+
[data-pont2-drawer-content][data-swipe-axis="x"] {
|
|
31730
|
+
width: min(var(--_pont2-drawer-width), 24rem);
|
|
31731
|
+
}
|
|
31274
31732
|
}
|
|
31275
|
-
}
|
|
31276
|
-
|
|
31277
|
-
/* ../kit/typography/typography.css */
|
|
31278
|
-
/*
|
|
31279
|
-
* <pont2-title> / <pont2-subtitle>: Tier 3 shells around a native <h1>–<h4> / <p>.
|
|
31280
|
-
*
|
|
31281
|
-
* Sizes follow shadcn's auth blocks (login-03/04: `<h1 class="text-2xl
|
|
31282
|
-
* font-bold">` + `<p class="text-muted-foreground text-balance">`); levels 2–4
|
|
31283
|
-
* step down. Margins are reset: spacing belongs to the layout (gap).
|
|
31284
|
-
*
|
|
31285
|
-
* Tokens: the title's colour, weight and per-level size (level 1's weight
|
|
31286
|
-
* falls back to the title weight, then bold); the subtitle's colour and size.
|
|
31287
|
-
*/
|
|
31288
|
-
@layer pont2.kit {
|
|
31289
|
-
/* ------------------------------------------------------------------ */
|
|
31290
|
-
/* Tokens */
|
|
31291
|
-
/* ------------------------------------------------------------------ */
|
|
31292
31733
|
|
|
31293
|
-
/*
|
|
31294
|
-
|
|
31295
|
-
|
|
31296
|
-
|
|
31297
|
-
|
|
31298
|
-
|
|
31299
|
-
|
|
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;
|
|
31300
31743
|
}
|
|
31301
|
-
[data-pont2-
|
|
31302
|
-
|
|
31303
|
-
|
|
31304
|
-
|
|
31305
|
-
|
|
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);
|
|
31306
31751
|
}
|
|
31307
|
-
[data-pont2-
|
|
31308
|
-
|
|
31309
|
-
|
|
31310
|
-
|
|
31311
|
-
|
|
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;
|
|
31312
31758
|
}
|
|
31313
|
-
[data-pont2-
|
|
31314
|
-
|
|
31315
|
-
--_pont2-title-font-size: var(--pont2-title-h2-font-size, var(--pont2-sem-text-xl));
|
|
31759
|
+
[data-pont2-drawer-content][data-swipe-direction="right"] > [data-pont2-drawer-swipe-handle] {
|
|
31760
|
+
left: 0;
|
|
31316
31761
|
}
|
|
31317
|
-
[data-pont2-
|
|
31318
|
-
|
|
31319
|
-
--_pont2-title-font-size: var(--pont2-title-h3-font-size, var(--pont2-sem-text-lg));
|
|
31762
|
+
[data-pont2-drawer-content][data-swipe-direction="left"] > [data-pont2-drawer-swipe-handle] {
|
|
31763
|
+
right: 0;
|
|
31320
31764
|
}
|
|
31321
|
-
[data-pont2-
|
|
31322
|
-
|
|
31323
|
-
|
|
31765
|
+
[data-pont2-drawer-content][data-swipe-direction="up"] > [data-pont2-drawer-swipe-handle] {
|
|
31766
|
+
order: 9999;
|
|
31767
|
+
align-items: flex-start;
|
|
31324
31768
|
}
|
|
31325
|
-
[data-pont2-
|
|
31326
|
-
|
|
31327
|
-
|
|
31328
|
-
/** @token component=subtitle Size */
|
|
31329
|
-
--_pont2-subtitle-font-size: var(--pont2-subtitle-font-size, var(--pont2-sem-text-sm));
|
|
31769
|
+
[data-pont2-drawer-content][data-swipe-axis="x"] > [data-pont2-drawer-swipe-handle]::after {
|
|
31770
|
+
width: 0.375rem;
|
|
31771
|
+
height: 100px;
|
|
31330
31772
|
}
|
|
31331
31773
|
|
|
31332
|
-
|
|
31333
|
-
|
|
31334
|
-
|
|
31335
|
-
|
|
31336
|
-
|
|
31337
|
-
|
|
31338
|
-
color: var(--_pont2-title-fg);
|
|
31339
|
-
font-family: var(--pont2-sem-font-heading);
|
|
31340
|
-
font-size: var(--_pont2-title-font-size);
|
|
31341
|
-
font-weight: var(--_pont2-title-font-weight);
|
|
31342
|
-
letter-spacing: var(--pont2-sem-tracking-tight);
|
|
31343
|
-
text-wrap: balance;
|
|
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;
|
|
31344
31780
|
}
|
|
31345
|
-
[data-pont2-
|
|
31346
|
-
|
|
31781
|
+
[data-pont2-drawer-content][data-swipe-axis="y"] :is(pont2-prim-drawer-header, [data-pont2-drawer-header]) {
|
|
31782
|
+
text-align: center;
|
|
31347
31783
|
}
|
|
31348
|
-
|
|
31349
|
-
|
|
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
|
+
}
|
|
31350
31791
|
}
|
|
31351
|
-
[data-pont2-
|
|
31352
|
-
|
|
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;
|
|
31353
31799
|
}
|
|
31354
|
-
[data-pont2-title]
|
|
31355
|
-
|
|
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);
|
|
31356
31806
|
}
|
|
31357
|
-
|
|
31358
|
-
|
|
31807
|
+
:is(pont2-prim-drawer-description, [data-pont2-drawer-description]) {
|
|
31808
|
+
display: block;
|
|
31359
31809
|
margin: 0;
|
|
31360
|
-
color: var(--
|
|
31361
|
-
font-size: var(--
|
|
31810
|
+
color: var(--pont2-sem-color-muted-foreground);
|
|
31811
|
+
font-size: var(--pont2-sem-text-sm);
|
|
31362
31812
|
line-height: var(--pont2-sem-text-sm--line-height);
|
|
31363
31813
|
text-wrap: balance;
|
|
31364
31814
|
}
|
|
31815
|
+
}
|
|
31365
31816
|
|
|
31366
|
-
|
|
31367
|
-
|
|
31368
|
-
|
|
31369
|
-
|
|
31370
|
-
|
|
31371
|
-
|
|
31372
|
-
|
|
31373
|
-
|
|
31374
|
-
|
|
31375
|
-
|
|
31376
|
-
|
|
31377
|
-
|
|
31378
|
-
|
|
31379
|
-
|
|
31380
|
-
|
|
31381
|
-
|
|
31382
|
-
|
|
31383
|
-
|
|
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);
|
|
31384
31845
|
}
|
|
31385
|
-
|
|
31386
|
-
|
|
31387
|
-
|
|
31388
|
-
|
|
31389
|
-
|
|
31390
|
-
|
|
31391
|
-
|
|
31392
|
-
|
|
31393
|
-
|
|
31394
|
-
|
|
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);
|
|
31395
31862
|
}
|
|
31396
31863
|
}
|
|
31397
31864
|
|
|
31398
|
-
/* ../
|
|
31865
|
+
/* ../primitives/sonner/sonner.css */
|
|
31399
31866
|
/*
|
|
31400
|
-
*
|
|
31401
|
-
*
|
|
31402
|
-
*
|
|
31403
|
-
*
|
|
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.
|
|
31404
31879
|
*/
|
|
31405
|
-
@layer pont2.
|
|
31406
|
-
pont2-
|
|
31407
|
-
|
|
31408
|
-
|
|
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;
|
|
31409
31911
|
}
|
|
31410
|
-
pont2-
|
|
31411
|
-
|
|
31412
|
-
width: 100%;
|
|
31912
|
+
:is(pont2-prim-toaster, [data-pont2-toaster]):not(:popover-open) {
|
|
31913
|
+
display: none;
|
|
31413
31914
|
}
|
|
31414
|
-
|
|
31415
|
-
|
|
31915
|
+
[data-pont2-toaster][data-y-position="bottom"] {
|
|
31916
|
+
bottom: var(--_pont2-toaster-offset);
|
|
31416
31917
|
}
|
|
31417
|
-
|
|
31418
|
-
|
|
31918
|
+
[data-pont2-toaster][data-y-position="top"] {
|
|
31919
|
+
top: var(--_pont2-toaster-offset);
|
|
31419
31920
|
}
|
|
31420
|
-
|
|
31421
|
-
|
|
31921
|
+
[data-pont2-toaster][data-x-position="right"] {
|
|
31922
|
+
right: var(--_pont2-toaster-offset);
|
|
31422
31923
|
}
|
|
31423
|
-
|
|
31424
|
-
|
|
31924
|
+
[data-pont2-toaster][data-x-position="left"] {
|
|
31925
|
+
left: var(--_pont2-toaster-offset);
|
|
31425
31926
|
}
|
|
31426
|
-
|
|
31427
|
-
|
|
31428
|
-
|
|
31429
|
-
|
|
31430
|
-
|
|
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
|
+
}
|
|
31431
31941
|
}
|
|
31432
|
-
}
|
|
31433
31942
|
|
|
31434
|
-
|
|
31435
|
-
|
|
31436
|
-
|
|
31437
|
-
|
|
31438
|
-
|
|
31439
|
-
|
|
31440
|
-
|
|
31441
|
-
|
|
31442
|
-
|
|
31443
|
-
|
|
31444
|
-
|
|
31445
|
-
|
|
31446
|
-
|
|
31447
|
-
|
|
31448
|
-
|
|
31449
|
-
|
|
31450
|
-
|
|
31451
|
-
|
|
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
|
|
32197
|
+
* height (h-9) to avoid a layout shift;
|
|
32198
|
+
* - brand marks keep their shape at any button size;
|
|
32199
|
+
* - provider-button tokens (docs/11-tokens.md §5): the provider button is an
|
|
32200
|
+
* outline Button by default, brandable on its own, and follows the Button's
|
|
32201
|
+
* outline tokens when only those are set.
|
|
32202
|
+
*/
|
|
32203
|
+
@layer pont2.kit {
|
|
32204
|
+
/* ------------------------------------------------------------------ */
|
|
32205
|
+
/* Tokens: re-default the Button's privates on a provider button */
|
|
32206
|
+
/* ------------------------------------------------------------------ */
|
|
32207
|
+
|
|
32208
|
+
pont2-provider-button > [data-pont2-button] {
|
|
32209
|
+
/** @token component=provider-button Corner radius */
|
|
32210
|
+
--_pont2-button-radius: var(--pont2-provider-button-radius, var(--pont2-button-radius, var(--pont2-sem-radius-md)));
|
|
32211
|
+
}
|
|
32212
|
+
pont2-provider-button > [data-pont2-button][data-variant="outline"] {
|
|
32213
|
+
/** @token component=provider-button Background */
|
|
32214
|
+
--_pont2-button-bg: var(--pont2-provider-button-bg, var(--pont2-button-outline-bg, var(--pont2-sem-color-control)));
|
|
32215
|
+
/** @token component=provider-button Text */
|
|
32216
|
+
--_pont2-button-fg: var(--pont2-provider-button-fg, var(--pont2-button-outline-fg, currentcolor));
|
|
32217
|
+
/** @token component=provider-button Border */
|
|
32218
|
+
--_pont2-button-border-color: var(--pont2-provider-button-border-color, var(--pont2-button-outline-border-color, var(--pont2-sem-color-control-border)));
|
|
32219
|
+
/** @token component=provider-button Background on hover */
|
|
32220
|
+
--_pont2-button-bg-hover: var(--pont2-provider-button-bg-hover, var(--pont2-button-outline-bg-hover, var(--pont2-sem-color-control-hover)));
|
|
32221
|
+
}
|
|
32222
|
+
|
|
32223
|
+
/* ------------------------------------------------------------------ */
|
|
32224
|
+
/* Additions */
|
|
32225
|
+
/* ------------------------------------------------------------------ */
|
|
32226
|
+
|
|
32227
|
+
:is(pont2-provider-button, pont2-passkey-button, pont2-submit-button):not([data-pont2-shell]) {
|
|
32228
|
+
display: inline-block;
|
|
32229
|
+
min-height: 2.25rem;
|
|
32230
|
+
}
|
|
32231
|
+
|
|
32232
|
+
[data-pont2-button] > svg[data-provider-icon] {
|
|
32233
|
+
flex-shrink: 0;
|
|
32234
|
+
}
|
|
32235
|
+
|
|
32236
|
+
/* The busy spinner is decorative (the button carries aria-busy). */
|
|
32237
|
+
[data-pont2-button] > [data-pont2-spinner][aria-hidden="true"] {
|
|
32238
|
+
flex-shrink: 0;
|
|
32239
|
+
}
|
|
32240
|
+
}
|
|
32241
|
+
|
|
32242
|
+
/* ../kit/auth-field/auth-field.css */
|
|
32243
|
+
/*
|
|
32244
|
+
* Auth fields (kit composites). The field, label, input, input-group,
|
|
32245
|
+
* description and error recipes are the primitives'; the field host matches
|
|
32246
|
+
* them through [data-pont2-field], the parts through their identity
|
|
32247
|
+
* attributes. Added here:
|
|
32248
|
+
*/
|
|
32249
|
+
@layer pont2.kit {
|
|
32250
|
+
/* Before upgrade the composite is empty: reserve label + gap + input (h-9),
|
|
32251
|
+
so a server-rendered screen does not jump. */
|
|
32252
|
+
:is(pont2-email-field, pont2-phone-field, pont2-username-field, pont2-name-field, pont2-identifier-field,
|
|
32253
|
+
pont2-password-field, pont2-confirm-field):not([data-pont2-field]) {
|
|
32254
|
+
display: block;
|
|
32255
|
+
min-height: 4rem;
|
|
32256
|
+
}
|
|
32257
|
+
|
|
32258
|
+
/* `mark` / required caret after the label text. */
|
|
32259
|
+
[data-pont2-field-label] > [data-slot="field-mark"] {
|
|
32260
|
+
color: var(--pont2-sem-color-muted-foreground);
|
|
32261
|
+
font-weight: var(--pont2-sem-font-weight-normal, 400);
|
|
32262
|
+
}
|
|
32263
|
+
|
|
32264
|
+
/* Password: label + "Forgot your password?" on one row, as in shadcn's login blocks
|
|
32265
|
+
("flex items-center" + the link's "ml-auto text-sm underline-offset-4 hover:underline"). */
|
|
32266
|
+
[data-pont2-auth-field-label-row] {
|
|
32267
|
+
display: flex;
|
|
32268
|
+
align-items: center;
|
|
32269
|
+
gap: 0.5rem;
|
|
32270
|
+
}
|
|
32271
|
+
[data-pont2-auth-field-label-row] > [data-slot="field-forgot"] {
|
|
32272
|
+
margin-left: auto;
|
|
32273
|
+
height: auto;
|
|
32274
|
+
padding: 0;
|
|
32275
|
+
font-weight: var(--pont2-sem-font-weight-normal, 400);
|
|
32276
|
+
}
|
|
32277
|
+
}
|
|
32278
|
+
|
|
32279
|
+
/* ../kit/otp-field/otp-field.css */
|
|
32280
|
+
/*
|
|
32281
|
+
* OTP field and resend (kit composites). The field, label, Input OTP and
|
|
32282
|
+
* error styling are the primitives' recipes. Added here:
|
|
32283
|
+
*/
|
|
32284
|
+
@layer pont2.kit {
|
|
32285
|
+
/* Tokens: the resend row, like <pont2-link> (muted text, link colour and hover). */
|
|
32286
|
+
:is(pont2-otp-resend, [data-pont2-otp-resend]) {
|
|
32287
|
+
/** @token component=otp-resend Text */
|
|
32288
|
+
--_pont2-otp-resend-fg: var(--pont2-otp-resend-fg, var(--pont2-sem-color-muted-foreground));
|
|
32289
|
+
/** @token component=otp-resend Link text */
|
|
32290
|
+
--_pont2-otp-resend-button-fg: var(--pont2-otp-resend-button-fg, currentcolor);
|
|
32291
|
+
/** @token component=otp-resend Link text on hover */
|
|
32292
|
+
--_pont2-otp-resend-button-fg-hover: var(--pont2-otp-resend-button-fg-hover, var(--pont2-sem-color-primary));
|
|
32293
|
+
}
|
|
32294
|
+
|
|
32295
|
+
/* Before upgrade: reserve the slot row (h-9) so the screen does not jump. */
|
|
32296
|
+
pont2-otp-field:not([data-pont2-field]) {
|
|
32297
|
+
display: block;
|
|
32298
|
+
min-height: 2.25rem;
|
|
32299
|
+
}
|
|
32300
|
+
|
|
32301
|
+
/* Auto-submit pending: the code is being checked. */
|
|
32302
|
+
pont2-otp-field [data-pont2-input-otp][aria-busy="true"] {
|
|
32303
|
+
opacity: 0.6;
|
|
32304
|
+
pointer-events: none;
|
|
32305
|
+
}
|
|
32306
|
+
|
|
32307
|
+
/* Resend row: "Resend code in 42s" / the link, centred, small muted text. */
|
|
32308
|
+
:is(pont2-otp-resend, [data-pont2-otp-resend]) {
|
|
32309
|
+
display: flex;
|
|
32310
|
+
justify-content: center;
|
|
32311
|
+
align-items: center;
|
|
32312
|
+
min-height: 1.25rem;
|
|
32313
|
+
color: var(--_pont2-otp-resend-fg);
|
|
32314
|
+
font-size: var(--pont2-sem-text-sm);
|
|
32315
|
+
line-height: var(--pont2-sem-text-sm--line-height);
|
|
32316
|
+
}
|
|
32317
|
+
[data-pont2-otp-resend] > [data-slot="otp-resend-button"] {
|
|
32318
|
+
height: auto;
|
|
32319
|
+
padding: 0;
|
|
32320
|
+
color: var(--_pont2-otp-resend-button-fg);
|
|
32321
|
+
font-size: inherit;
|
|
32322
|
+
line-height: inherit;
|
|
32323
|
+
font-weight: inherit;
|
|
32324
|
+
text-decoration-line: underline;
|
|
32325
|
+
text-underline-offset: 4px;
|
|
32326
|
+
}
|
|
32327
|
+
[data-pont2-otp-resend] > [data-slot="otp-resend-button"]:hover {
|
|
32328
|
+
color: var(--_pont2-otp-resend-button-fg-hover);
|
|
32329
|
+
}
|
|
32330
|
+
}
|
|
32331
|
+
|
|
32332
|
+
/* ../kit/link/link.css */
|
|
32333
|
+
/*
|
|
32334
|
+
* <pont2-link>. shadcn's login blocks: "text-center text-sm" on the row and
|
|
32335
|
+
* "underline underline-offset-4" on the link. The link itself is the button
|
|
32336
|
+
* primitive's `link` variant; here it is sized as inline text.
|
|
32337
|
+
*
|
|
32338
|
+
* Tokens: the row's muted text, and the link's own colour (it inherits the
|
|
32339
|
+
* row's) and hover colour. They resolve on the row and the link inherits them.
|
|
32340
|
+
*/
|
|
32341
|
+
@layer pont2.kit {
|
|
32342
|
+
/* Tokens */
|
|
32343
|
+
:is(pont2-link, [data-pont2-link]) {
|
|
32344
|
+
/** @token Text */
|
|
32345
|
+
--_pont2-link-fg: var(--pont2-link-fg, var(--pont2-sem-color-muted-foreground));
|
|
32346
|
+
/** @token Link text */
|
|
32347
|
+
--_pont2-link-button-fg: var(--pont2-link-button-fg, currentcolor);
|
|
32348
|
+
/** @token Link text on hover */
|
|
32349
|
+
--_pont2-link-button-fg-hover: var(--pont2-link-button-fg-hover, var(--pont2-sem-color-primary));
|
|
32350
|
+
}
|
|
32351
|
+
|
|
32352
|
+
/* Recipe */
|
|
32353
|
+
/* An href that is not http(s) renders nothing; the row goes with it. */
|
|
32354
|
+
:is(pont2-link, [data-pont2-link])[data-invalid-href] {
|
|
32355
|
+
display: none;
|
|
32356
|
+
}
|
|
32357
|
+
|
|
32358
|
+
:is(pont2-link, [data-pont2-link]) {
|
|
32359
|
+
display: flex;
|
|
32360
|
+
flex-wrap: wrap;
|
|
32361
|
+
align-items: baseline;
|
|
32362
|
+
justify-content: center;
|
|
32363
|
+
column-gap: 0.25rem;
|
|
32364
|
+
color: var(--_pont2-link-fg);
|
|
32365
|
+
font-size: var(--pont2-sem-text-sm);
|
|
32366
|
+
line-height: var(--pont2-sem-text-sm--line-height);
|
|
32367
|
+
}
|
|
32368
|
+
[data-pont2-link][data-align="start"] {
|
|
32369
|
+
justify-content: flex-start;
|
|
32370
|
+
}
|
|
32371
|
+
[data-pont2-link][data-align="end"] {
|
|
32372
|
+
justify-content: flex-end;
|
|
32373
|
+
}
|
|
32374
|
+
[data-pont2-link] > [data-slot="link-button"] {
|
|
32375
|
+
height: auto;
|
|
32376
|
+
padding: 0;
|
|
32377
|
+
color: var(--_pont2-link-button-fg);
|
|
32378
|
+
font-size: inherit;
|
|
32379
|
+
line-height: inherit;
|
|
32380
|
+
font-weight: inherit;
|
|
32381
|
+
text-decoration-line: underline;
|
|
32382
|
+
text-underline-offset: 4px;
|
|
32383
|
+
}
|
|
32384
|
+
[data-pont2-link] > [data-slot="link-button"]:hover {
|
|
32385
|
+
color: var(--_pont2-link-button-fg-hover);
|
|
32386
|
+
}
|
|
32387
|
+
}
|
|
32388
|
+
|
|
32389
|
+
/* ../kit/divider/divider.css */
|
|
32390
|
+
/*
|
|
32391
|
+
* <pont2-divider>. Styled entirely by the FieldSeparator recipe through
|
|
32392
|
+
* [data-pont2-field-separator]. Added here: before upgrade the composite is
|
|
32393
|
+
* empty, so it reserves the separator's height (h-5).
|
|
32394
|
+
*/
|
|
32395
|
+
@layer pont2.kit {
|
|
32396
|
+
pont2-divider:not([data-pont2-field-separator]) {
|
|
32397
|
+
display: block;
|
|
32398
|
+
height: 1.25rem;
|
|
32399
|
+
}
|
|
32400
|
+
}
|
|
32401
|
+
|
|
32402
|
+
/* ../kit/typography/typography.css */
|
|
32403
|
+
/*
|
|
32404
|
+
* <pont2-title> / <pont2-subtitle>: Tier 3 shells around a native <h1>–<h4> / <p>.
|
|
32405
|
+
*
|
|
32406
|
+
* Sizes follow shadcn's auth blocks (login-03/04: `<h1 class="text-2xl
|
|
32407
|
+
* font-bold">` + `<p class="text-muted-foreground text-balance">`); levels 2–4
|
|
32408
|
+
* step down. Margins are reset: spacing belongs to the layout (gap).
|
|
32409
|
+
*
|
|
32410
|
+
* Tokens: the title's colour, weight and per-level size (level 1's weight
|
|
32411
|
+
* falls back to the title weight, then bold); the subtitle's colour and size.
|
|
32412
|
+
*/
|
|
32413
|
+
@layer pont2.kit {
|
|
32414
|
+
/* ------------------------------------------------------------------ */
|
|
32415
|
+
/* Tokens */
|
|
32416
|
+
/* ------------------------------------------------------------------ */
|
|
32417
|
+
|
|
32418
|
+
/* Set per element and level below; declared here so nothing is inherited. */
|
|
32419
|
+
:is([data-pont2-title], [data-pont2-subtitle]) {
|
|
32420
|
+
--_pont2-title-fg: initial;
|
|
32421
|
+
--_pont2-title-font-weight: initial;
|
|
32422
|
+
--_pont2-title-font-size: initial;
|
|
32423
|
+
--_pont2-subtitle-fg: initial;
|
|
32424
|
+
--_pont2-subtitle-font-size: initial;
|
|
32425
|
+
}
|
|
32426
|
+
[data-pont2-title] {
|
|
32427
|
+
/** @token component=title Text */
|
|
32428
|
+
--_pont2-title-fg: var(--pont2-title-fg, var(--pont2-sem-color-foreground));
|
|
32429
|
+
/** @token component=title Weight */
|
|
32430
|
+
--_pont2-title-font-weight: var(--pont2-title-font-weight, var(--pont2-sem-font-weight-semibold));
|
|
32431
|
+
}
|
|
32432
|
+
[data-pont2-title][data-level="1"] {
|
|
32433
|
+
/** @token component=title Size (level 1) */
|
|
32434
|
+
--_pont2-title-font-size: var(--pont2-title-h1-font-size, var(--pont2-sem-text-2xl));
|
|
32435
|
+
/** @token component=title Weight (level 1) */
|
|
32436
|
+
--_pont2-title-font-weight: var(--pont2-title-h1-font-weight, var(--pont2-title-font-weight, var(--pont2-sem-font-weight-bold)));
|
|
32437
|
+
}
|
|
32438
|
+
[data-pont2-title][data-level="2"] {
|
|
32439
|
+
/** @token component=title Size (level 2) */
|
|
32440
|
+
--_pont2-title-font-size: var(--pont2-title-h2-font-size, var(--pont2-sem-text-xl));
|
|
32441
|
+
}
|
|
32442
|
+
[data-pont2-title][data-level="3"] {
|
|
32443
|
+
/** @token component=title Size (level 3) */
|
|
32444
|
+
--_pont2-title-font-size: var(--pont2-title-h3-font-size, var(--pont2-sem-text-lg));
|
|
32445
|
+
}
|
|
32446
|
+
[data-pont2-title][data-level="4"] {
|
|
32447
|
+
/** @token component=title Size (level 4) */
|
|
32448
|
+
--_pont2-title-font-size: var(--pont2-title-h4-font-size, var(--pont2-sem-text-base));
|
|
32449
|
+
}
|
|
32450
|
+
[data-pont2-subtitle] {
|
|
32451
|
+
/** @token component=subtitle Text */
|
|
32452
|
+
--_pont2-subtitle-fg: var(--pont2-subtitle-fg, var(--pont2-sem-color-muted-foreground));
|
|
32453
|
+
/** @token component=subtitle Size */
|
|
32454
|
+
--_pont2-subtitle-font-size: var(--pont2-subtitle-font-size, var(--pont2-sem-text-sm));
|
|
32455
|
+
}
|
|
32456
|
+
|
|
32457
|
+
/* ------------------------------------------------------------------ */
|
|
32458
|
+
/* Recipe */
|
|
32459
|
+
/* ------------------------------------------------------------------ */
|
|
32460
|
+
|
|
32461
|
+
[data-pont2-title] {
|
|
32462
|
+
margin: 0;
|
|
32463
|
+
color: var(--_pont2-title-fg);
|
|
32464
|
+
font-family: var(--pont2-sem-font-heading);
|
|
32465
|
+
font-size: var(--_pont2-title-font-size);
|
|
32466
|
+
font-weight: var(--_pont2-title-font-weight);
|
|
32467
|
+
letter-spacing: var(--pont2-sem-tracking-tight);
|
|
32468
|
+
text-wrap: balance;
|
|
32469
|
+
}
|
|
32470
|
+
[data-pont2-title][data-level="1"] {
|
|
32471
|
+
line-height: var(--pont2-sem-text-2xl--line-height);
|
|
32472
|
+
}
|
|
32473
|
+
[data-pont2-title][data-level="2"] {
|
|
32474
|
+
line-height: var(--pont2-sem-text-xl--line-height);
|
|
32475
|
+
}
|
|
32476
|
+
[data-pont2-title][data-level="3"] {
|
|
32477
|
+
line-height: var(--pont2-sem-text-lg--line-height);
|
|
32478
|
+
}
|
|
32479
|
+
[data-pont2-title][data-level="4"] {
|
|
32480
|
+
line-height: var(--pont2-sem-text-base--line-height);
|
|
32481
|
+
}
|
|
32482
|
+
|
|
32483
|
+
[data-pont2-subtitle] {
|
|
32484
|
+
margin: 0;
|
|
32485
|
+
color: var(--_pont2-subtitle-fg);
|
|
32486
|
+
font-size: var(--_pont2-subtitle-font-size);
|
|
32487
|
+
line-height: var(--pont2-sem-text-sm--line-height);
|
|
32488
|
+
text-wrap: balance;
|
|
32489
|
+
}
|
|
32490
|
+
|
|
32491
|
+
/*
|
|
32492
|
+
* align: `auto` inherits the parent's alignment. An explicit value makes the
|
|
32493
|
+
* element span its parent's inline axis (stretch works in flex and grid
|
|
32494
|
+
* parents, and a block already spans) and aligns the lines inside it, the
|
|
32495
|
+
* legacy kit's approach.
|
|
32496
|
+
*/
|
|
32497
|
+
:is([data-pont2-title], [data-pont2-subtitle]):not([data-align="auto"]) {
|
|
32498
|
+
align-self: stretch;
|
|
32499
|
+
justify-self: stretch;
|
|
32500
|
+
}
|
|
32501
|
+
:is([data-pont2-title], [data-pont2-subtitle])[data-align="start"] {
|
|
32502
|
+
text-align: start;
|
|
32503
|
+
}
|
|
32504
|
+
:is([data-pont2-title], [data-pont2-subtitle])[data-align="center"] {
|
|
32505
|
+
text-align: center;
|
|
32506
|
+
}
|
|
32507
|
+
:is([data-pont2-title], [data-pont2-subtitle])[data-align="end"] {
|
|
32508
|
+
text-align: end;
|
|
32509
|
+
}
|
|
32510
|
+
/*
|
|
32511
|
+
* In a flex_row container the cross axis is vertical: stretching there would
|
|
32512
|
+
* change the element's height, not its width. The row keeps its own
|
|
32513
|
+
* alignment, and `align` only aligns the lines (the legacy kit's rule,
|
|
32514
|
+
* carry-over §9).
|
|
32515
|
+
*/
|
|
32516
|
+
[data-pont2-container][data-type="flex_row"]
|
|
32517
|
+
> :is(pont2-title, pont2-subtitle)
|
|
32518
|
+
> :is([data-pont2-title], [data-pont2-subtitle]):not([data-align="auto"]) {
|
|
32519
|
+
align-self: auto;
|
|
32520
|
+
}
|
|
32521
|
+
}
|
|
32522
|
+
|
|
32523
|
+
/* ../kit/provider-field/provider-field.css */
|
|
32524
|
+
/*
|
|
32525
|
+
* <pont2-provider-field>: the legacy 12-column grid (provider-field.css in the
|
|
32526
|
+
* legacy kit), on the Field host. The provider buttons' hosts are
|
|
32527
|
+
* `display: contents`, so the grid items are their native buttons, which
|
|
32528
|
+
* stretch to fill their cells (shadcn's login blocks: `w-full`).
|
|
32529
|
+
*/
|
|
32530
|
+
@layer pont2.kit {
|
|
32531
|
+
pont2-provider-field {
|
|
32532
|
+
display: grid;
|
|
32533
|
+
grid-template-columns: repeat(12, minmax(0, 1fr));
|
|
32534
|
+
}
|
|
32535
|
+
pont2-provider-field > pont2-provider-button > [data-pont2-button] {
|
|
32536
|
+
grid-column: span 12 / span 12;
|
|
32537
|
+
width: 100%;
|
|
32538
|
+
}
|
|
32539
|
+
pont2-provider-field[data-columns$="three"] > pont2-provider-button > [data-pont2-button] {
|
|
32540
|
+
grid-column: span 4 / span 4;
|
|
32541
|
+
}
|
|
32542
|
+
pont2-provider-field[data-columns$="four"] > pont2-provider-button > [data-pont2-button] {
|
|
32543
|
+
grid-column: span 3 / span 3;
|
|
32544
|
+
}
|
|
32545
|
+
pont2-provider-field[data-columns^="two-"] > pont2-provider-button:nth-child(-n + 2) > [data-pont2-button] {
|
|
32546
|
+
grid-column: span 6 / span 6;
|
|
32547
|
+
}
|
|
32548
|
+
pont2-provider-field[data-columns^="three-"] > pont2-provider-button:nth-child(-n + 3) > [data-pont2-button] {
|
|
32549
|
+
grid-column: span 4 / span 4;
|
|
32550
|
+
}
|
|
32551
|
+
|
|
32552
|
+
/* Before upgrade the composite is empty: reserve one row of buttons (h-9). */
|
|
32553
|
+
pont2-provider-field:not([data-pont2-field]) {
|
|
32554
|
+
display: block;
|
|
32555
|
+
min-height: 2.25rem;
|
|
32556
|
+
}
|
|
32557
|
+
}
|
|
32558
|
+
|
|
32559
|
+
/* ../kit/block/block.css */
|
|
32560
|
+
/*
|
|
32561
|
+
* <pont2-block>: the screen shell. A Card (the primitive recipe styles the
|
|
32562
|
+
* host through [data-pont2-card]) whose content sits directly in the host:
|
|
32563
|
+
* CardContent's inline padding (`px-(--card-spacing)`) is moved onto the host,
|
|
32564
|
+
* and the watermark footer bleeds back to the card's edges.
|
|
32565
|
+
*
|
|
32566
|
+
* Responsive like the legacy block: full-bleed and at least viewport-tall on
|
|
32567
|
+
* narrow screens; a centred card of `--pont2-block-max-width` from 40rem up.
|
|
32568
|
+
*
|
|
32569
|
+
* Tokens (docs/11-tokens.md §5): the screen card is brandable on its own. Its
|
|
32570
|
+
* `--pont2-block-*` colour, radius, shadow and spacing tokens fall back to
|
|
32571
|
+
* the Card's, so a theme that only sets `--pont2-card-radius` changes both.
|
|
32572
|
+
*/
|
|
32573
|
+
@layer pont2.kit {
|
|
32574
|
+
/* ------------------------------------------------------------------ */
|
|
32575
|
+
/* Tokens */
|
|
32576
|
+
/* ------------------------------------------------------------------ */
|
|
31452
32577
|
|
|
31453
32578
|
pont2-block {
|
|
31454
32579
|
/** @token Background */
|
|
@@ -31466,533 +32591,1137 @@ body {
|
|
|
31466
32591
|
/** @token Maximum width */
|
|
31467
32592
|
--_pont2-block-max-width: var(--pont2-block-max-width, var(--pont2-sem-container-sm));
|
|
31468
32593
|
/** @token Gap between children */
|
|
31469
|
-
--_pont2-block-gap: var(--pont2-block-gap, 1rem);
|
|
31470
|
-
/** @token Background (watermark band) */
|
|
31471
|
-
--_pont2-block-footer-bg: var(--pont2-block-footer-bg, color-mix(in oklab, var(--pont2-sem-color-muted) 50%, transparent));
|
|
32594
|
+
--_pont2-block-gap: var(--pont2-block-gap, 1rem);
|
|
32595
|
+
/** @token Background (watermark band) */
|
|
32596
|
+
--_pont2-block-footer-bg: var(--pont2-block-footer-bg, color-mix(in oklab, var(--pont2-sem-color-muted) 50%, transparent));
|
|
32597
|
+
}
|
|
32598
|
+
/* size="sm": the Card's small spacing. Re-stated here because the rule above
|
|
32599
|
+
(pont2.kit) would otherwise beat the Card's own size rule (pont2.primitives). */
|
|
32600
|
+
pont2-block:is([data-size="sm"], [size="sm"]) {
|
|
32601
|
+
/** @token Spacing (padding) */
|
|
32602
|
+
--_pont2-card-spacing: var(--pont2-block-sm-spacing, var(--pont2-card-sm-spacing, 1rem));
|
|
32603
|
+
}
|
|
32604
|
+
|
|
32605
|
+
/* ------------------------------------------------------------------ */
|
|
32606
|
+
/* Recipe */
|
|
32607
|
+
/* ------------------------------------------------------------------ */
|
|
32608
|
+
|
|
32609
|
+
pont2-block {
|
|
32610
|
+
display: flex;
|
|
32611
|
+
flex-direction: column;
|
|
32612
|
+
gap: var(--_pont2-block-gap);
|
|
32613
|
+
width: 100%;
|
|
32614
|
+
max-width: var(--_pont2-block-max-width);
|
|
32615
|
+
margin-inline: auto;
|
|
32616
|
+
padding-inline: var(--_pont2-card-spacing);
|
|
32617
|
+
}
|
|
32618
|
+
pont2-block[data-align="stretch"] {
|
|
32619
|
+
align-items: stretch;
|
|
32620
|
+
}
|
|
32621
|
+
pont2-block[data-align="start"] {
|
|
32622
|
+
align-items: flex-start;
|
|
32623
|
+
}
|
|
32624
|
+
pont2-block[data-align="center"] {
|
|
32625
|
+
align-items: center;
|
|
32626
|
+
}
|
|
32627
|
+
pont2-block[data-align="end"] {
|
|
32628
|
+
align-items: flex-end;
|
|
32629
|
+
}
|
|
32630
|
+
pont2-block[data-justify="center"] {
|
|
32631
|
+
justify-content: center;
|
|
32632
|
+
}
|
|
32633
|
+
pont2-block[data-justify="end"] {
|
|
32634
|
+
justify-content: flex-end;
|
|
32635
|
+
}
|
|
32636
|
+
|
|
32637
|
+
@media (width < 40rem) {
|
|
32638
|
+
pont2-block {
|
|
32639
|
+
max-width: none;
|
|
32640
|
+
min-height: 100svh;
|
|
32641
|
+
border-radius: 0;
|
|
32642
|
+
}
|
|
32643
|
+
}
|
|
32644
|
+
|
|
32645
|
+
/* The watermark footer: full width, muted band, closes the card. */
|
|
32646
|
+
pont2-block > [data-block-footer] {
|
|
32647
|
+
align-self: stretch;
|
|
32648
|
+
justify-content: center;
|
|
32649
|
+
margin-inline: calc(-1 * var(--_pont2-card-spacing));
|
|
32650
|
+
margin-bottom: calc(-1 * var(--_pont2-card-spacing));
|
|
32651
|
+
padding-block: 0.75rem;
|
|
32652
|
+
background-color: var(--_pont2-block-footer-bg);
|
|
32653
|
+
}
|
|
32654
|
+
|
|
32655
|
+
/* Before upgrade: the card look comes from the tag-less recipe only after
|
|
32656
|
+
upgrade, so give the shell its width now to avoid a jump. */
|
|
32657
|
+
pont2-block:not([data-pont2-card]) {
|
|
32658
|
+
display: block;
|
|
32659
|
+
width: 100%;
|
|
32660
|
+
max-width: var(--_pont2-block-max-width);
|
|
32661
|
+
margin-inline: auto;
|
|
32662
|
+
}
|
|
32663
|
+
}
|
|
32664
|
+
|
|
32665
|
+
/* ../kit/watermark/watermark.css */
|
|
32666
|
+
/*
|
|
32667
|
+
* <pont2-watermark> (and the block footer's watermark part): "Powered by [Pontive]".
|
|
32668
|
+
* The legacy variables, in plain values: gap 1.5 (0.375rem), xs-sm text,
|
|
32669
|
+
* a 0.875rem-tall logo; the mark in Pontive indigo for `brand`.
|
|
32670
|
+
*
|
|
32671
|
+
* Tokens: the brand variant's mark colour and the muted variant's colour.
|
|
32672
|
+
* `theme` follows the surrounding text and has none.
|
|
32673
|
+
*/
|
|
32674
|
+
@layer pont2.kit {
|
|
32675
|
+
/* ------------------------------------------------------------------ */
|
|
32676
|
+
/* Tokens */
|
|
32677
|
+
/* ------------------------------------------------------------------ */
|
|
32678
|
+
|
|
32679
|
+
:is(pont2-watermark, [data-pont2-watermark]) {
|
|
32680
|
+
/** @token Mark */
|
|
32681
|
+
--_pont2-watermark-icon-color: var(--pont2-watermark-brand-icon-color, #6366f1);
|
|
32682
|
+
--_pont2-watermark-fg: currentColor;
|
|
32683
|
+
}
|
|
32684
|
+
[data-pont2-watermark][data-variant="theme"] {
|
|
32685
|
+
--_pont2-watermark-icon-color: currentColor;
|
|
32686
|
+
}
|
|
32687
|
+
[data-pont2-watermark][data-variant="muted"] {
|
|
32688
|
+
/** @token Text and mark */
|
|
32689
|
+
--_pont2-watermark-fg: var(--pont2-watermark-muted-fg, var(--pont2-sem-color-muted-foreground));
|
|
32690
|
+
--_pont2-watermark-icon-color: currentColor;
|
|
32691
|
+
}
|
|
32692
|
+
|
|
32693
|
+
/* ------------------------------------------------------------------ */
|
|
32694
|
+
/* Recipe */
|
|
32695
|
+
/* ------------------------------------------------------------------ */
|
|
32696
|
+
|
|
32697
|
+
:is(pont2-watermark, [data-pont2-watermark]) {
|
|
32698
|
+
display: inline-flex;
|
|
32699
|
+
flex-shrink: 0;
|
|
32700
|
+
align-items: center;
|
|
32701
|
+
gap: 0.375rem;
|
|
32702
|
+
color: var(--_pont2-watermark-fg);
|
|
32703
|
+
font-size: 0.8125rem;
|
|
32704
|
+
line-height: var(--pont2-sem-leading-none);
|
|
32705
|
+
}
|
|
32706
|
+
[data-pont2-watermark] > [data-slot="watermark-logo"] {
|
|
32707
|
+
flex-shrink: 0;
|
|
32708
|
+
width: auto;
|
|
32709
|
+
height: 0.875rem;
|
|
32710
|
+
}
|
|
32711
|
+
[data-pont2-watermark] [data-logo-mark] {
|
|
32712
|
+
fill: var(--_pont2-watermark-icon-color);
|
|
32713
|
+
}
|
|
32714
|
+
[data-pont2-watermark] [data-logo-wordmark] {
|
|
32715
|
+
fill: currentColor;
|
|
32716
|
+
}
|
|
32717
|
+
}
|
|
32718
|
+
|
|
32719
|
+
/* ../kit/container/container.css */
|
|
32720
|
+
/* <pont2-container>: the host is the flex box (legacy: an inner div). */
|
|
32721
|
+
@layer pont2.kit {
|
|
32722
|
+
/* Tokens */
|
|
32723
|
+
:is(pont2-container, [data-pont2-container]) {
|
|
32724
|
+
/** @token Gap between children */
|
|
32725
|
+
--_pont2-container-gap: var(--pont2-container-gap, 1rem);
|
|
32726
|
+
}
|
|
32727
|
+
|
|
32728
|
+
/* Recipe */
|
|
32729
|
+
:is(pont2-container, [data-pont2-container]) {
|
|
32730
|
+
box-sizing: border-box;
|
|
32731
|
+
display: flex;
|
|
32732
|
+
flex-direction: column;
|
|
32733
|
+
gap: var(--_pont2-container-gap);
|
|
32734
|
+
width: 100%;
|
|
32735
|
+
}
|
|
32736
|
+
[data-pont2-container][data-type="flex_row"] {
|
|
32737
|
+
flex-direction: row;
|
|
32738
|
+
flex-wrap: wrap;
|
|
32739
|
+
}
|
|
32740
|
+
[data-pont2-container][data-align="start"] {
|
|
32741
|
+
align-items: flex-start;
|
|
32742
|
+
}
|
|
32743
|
+
[data-pont2-container][data-align="center"] {
|
|
32744
|
+
align-items: center;
|
|
32745
|
+
}
|
|
32746
|
+
[data-pont2-container][data-align="end"] {
|
|
32747
|
+
align-items: flex-end;
|
|
32748
|
+
}
|
|
32749
|
+
[data-pont2-container][data-type="flex_row"][data-align="stretch"] {
|
|
32750
|
+
align-items: center; /* a row's cross axis is vertical: don't stretch heights */
|
|
32751
|
+
}
|
|
32752
|
+
[data-pont2-container][data-justify="center"] {
|
|
32753
|
+
justify-content: center;
|
|
32754
|
+
}
|
|
32755
|
+
[data-pont2-container][data-justify="end"] {
|
|
32756
|
+
justify-content: flex-end;
|
|
32757
|
+
}
|
|
32758
|
+
[data-pont2-container][data-justify="between"] {
|
|
32759
|
+
justify-content: space-between;
|
|
32760
|
+
}
|
|
32761
|
+
|
|
32762
|
+
/*
|
|
32763
|
+
* Design mode (the designer's canvas only; core/design-mode.ts). An outline takes no space, so
|
|
32764
|
+
* showing the container doesn't reflow what the author is arranging. The inset does reflow, on
|
|
32765
|
+
* purpose: without it a nested container's outline lands on its parent's and the parent has no
|
|
32766
|
+
* surface left to click or drop onto. Served screens never get these attributes.
|
|
32767
|
+
*/
|
|
32768
|
+
[data-pont2-container][data-design] {
|
|
32769
|
+
outline: 1px dotted color-mix(in oklab, var(--pont2-sem-color-foreground) 35%, transparent);
|
|
32770
|
+
outline-offset: -1px;
|
|
32771
|
+
padding: 0.5rem;
|
|
32772
|
+
}
|
|
32773
|
+
[data-pont2-container][data-design-empty] {
|
|
32774
|
+
position: relative;
|
|
32775
|
+
min-height: 3.5rem;
|
|
32776
|
+
}
|
|
32777
|
+
/* Generated content: never part of the authored tree, never a drop target. */
|
|
32778
|
+
[data-pont2-container][data-design-empty]::after {
|
|
32779
|
+
content: "Container";
|
|
32780
|
+
position: absolute;
|
|
32781
|
+
inset: 0;
|
|
32782
|
+
display: flex;
|
|
32783
|
+
align-items: center;
|
|
32784
|
+
justify-content: center;
|
|
32785
|
+
color: var(--pont2-sem-color-muted-foreground);
|
|
32786
|
+
font-size: var(--pont2-sem-text-sm);
|
|
32787
|
+
pointer-events: none;
|
|
32788
|
+
}
|
|
32789
|
+
}
|
|
32790
|
+
|
|
32791
|
+
/* ../kit/header/header.css */
|
|
32792
|
+
/*
|
|
32793
|
+
* <pont2-header>. shadcn's login blocks: "flex flex-col items-center gap-2 text-center".
|
|
32794
|
+
* `align` sets both the boxes and the text, as the legacy header does.
|
|
32795
|
+
*/
|
|
32796
|
+
@layer pont2.kit {
|
|
32797
|
+
/* Tokens */
|
|
32798
|
+
:is(pont2-header, [data-pont2-header]) {
|
|
32799
|
+
/** @token Gap between children */
|
|
32800
|
+
--_pont2-header-gap: var(--pont2-header-gap, 0.5rem);
|
|
32801
|
+
}
|
|
32802
|
+
|
|
32803
|
+
/* Recipe */
|
|
32804
|
+
:is(pont2-header, [data-pont2-header]) {
|
|
32805
|
+
box-sizing: border-box;
|
|
32806
|
+
display: flex;
|
|
32807
|
+
flex-direction: column;
|
|
32808
|
+
align-items: center;
|
|
32809
|
+
gap: var(--_pont2-header-gap);
|
|
32810
|
+
width: 100%;
|
|
32811
|
+
text-align: center;
|
|
32812
|
+
}
|
|
32813
|
+
[data-pont2-header][data-align="start"] {
|
|
32814
|
+
align-items: flex-start;
|
|
32815
|
+
text-align: start;
|
|
32816
|
+
}
|
|
32817
|
+
[data-pont2-header][data-align="end"] {
|
|
32818
|
+
align-items: flex-end;
|
|
32819
|
+
text-align: end;
|
|
32820
|
+
}
|
|
32821
|
+
}
|
|
32822
|
+
|
|
32823
|
+
/* ../kit/gap/gap.css */
|
|
32824
|
+
/* <pont2-gap>: the host is the spacer; its size comes from --pont2-gap-size. */
|
|
32825
|
+
@layer pont2.kit {
|
|
32826
|
+
:is(pont2-gap, [data-pont2-gap]) {
|
|
32827
|
+
display: block;
|
|
32828
|
+
flex-shrink: 0;
|
|
32829
|
+
width: 1px;
|
|
32830
|
+
height: var(--pont2-gap-size, 8px);
|
|
32831
|
+
}
|
|
32832
|
+
[data-pont2-gap][data-type="horizontal"] {
|
|
32833
|
+
width: var(--pont2-gap-size, 8px);
|
|
32834
|
+
height: 1px;
|
|
32835
|
+
}
|
|
32836
|
+
}
|
|
32837
|
+
|
|
32838
|
+
/* ../kit/logo/logo.css */
|
|
32839
|
+
/*
|
|
32840
|
+
* <pont2-logo>: one or two <img>s (light / dark), aligned on the inline axis.
|
|
32841
|
+
* The dark image is shown in dark mode, when present, through the sem mode
|
|
32842
|
+
* switches (sem-mode-light-display / -dark-display), so there is no dark rule here.
|
|
32843
|
+
*/
|
|
32844
|
+
@layer pont2.kit {
|
|
32845
|
+
:is(pont2-logo, [data-pont2-logo]) {
|
|
32846
|
+
display: flex;
|
|
32847
|
+
justify-content: center;
|
|
32848
|
+
width: 100%;
|
|
32849
|
+
}
|
|
32850
|
+
[data-pont2-logo][data-align="start"] {
|
|
32851
|
+
justify-content: flex-start;
|
|
32852
|
+
}
|
|
32853
|
+
[data-pont2-logo][data-align="end"] {
|
|
32854
|
+
justify-content: flex-end;
|
|
32855
|
+
}
|
|
32856
|
+
[data-pont2-logo] > img {
|
|
32857
|
+
display: block;
|
|
32858
|
+
max-width: 100%;
|
|
32859
|
+
height: auto;
|
|
32860
|
+
}
|
|
32861
|
+
[data-pont2-logo] > img[data-logo-theme="dark"] {
|
|
32862
|
+
display: var(--pont2-sem-mode-dark-display, none);
|
|
32863
|
+
}
|
|
32864
|
+
/* The light image is hidden in dark mode only when a dark image follows it. */
|
|
32865
|
+
[data-pont2-logo] > img[data-logo-theme="light"]:has(+ img[data-logo-theme="dark"]) {
|
|
32866
|
+
display: var(--pont2-sem-mode-light-display, block);
|
|
32867
|
+
}
|
|
32868
|
+
}
|
|
32869
|
+
|
|
32870
|
+
/* ../kit/countdown/countdown.css */
|
|
32871
|
+
/* <pont2-countdown>: small muted line, digits that do not jitter. */
|
|
32872
|
+
@layer pont2.kit {
|
|
32873
|
+
:is(pont2-countdown, [data-pont2-countdown]) {
|
|
32874
|
+
display: block;
|
|
32875
|
+
color: var(--pont2-sem-color-muted-foreground);
|
|
32876
|
+
font-size: var(--pont2-sem-text-sm);
|
|
32877
|
+
line-height: var(--pont2-sem-text-sm--line-height);
|
|
32878
|
+
font-variant-numeric: tabular-nums;
|
|
32879
|
+
text-align: center;
|
|
32880
|
+
}
|
|
32881
|
+
}
|
|
32882
|
+
|
|
32883
|
+
/* ../kit/edit-identifier/edit-identifier.css */
|
|
32884
|
+
/* <pont2-edit-identifier>: "ada@example.com ✎", centred, the value truncating. */
|
|
32885
|
+
@layer pont2.kit {
|
|
32886
|
+
:is(pont2-edit-identifier, [data-pont2-edit-identifier]) {
|
|
32887
|
+
display: flex;
|
|
32888
|
+
align-items: center;
|
|
32889
|
+
justify-content: center;
|
|
32890
|
+
gap: 0.25rem;
|
|
32891
|
+
min-width: 0;
|
|
32892
|
+
font-size: var(--pont2-sem-text-sm);
|
|
32893
|
+
line-height: var(--pont2-sem-text-sm--line-height);
|
|
32894
|
+
}
|
|
32895
|
+
[data-pont2-edit-identifier] > [data-slot="edit-identifier-value"] {
|
|
32896
|
+
overflow: hidden;
|
|
32897
|
+
font-weight: var(--pont2-sem-font-weight-medium);
|
|
32898
|
+
text-overflow: ellipsis;
|
|
32899
|
+
white-space: nowrap;
|
|
32900
|
+
}
|
|
32901
|
+
}
|
|
32902
|
+
|
|
32903
|
+
/* ../kit/secret/secret.css */
|
|
32904
|
+
/* <pont2-secret>: title, the secret in an input group, copied status, issuer/account. */
|
|
32905
|
+
@layer pont2.kit {
|
|
32906
|
+
:is(pont2-secret, [data-pont2-secret]) {
|
|
32907
|
+
display: flex;
|
|
32908
|
+
flex-direction: column;
|
|
32909
|
+
gap: 0.5rem;
|
|
32910
|
+
width: 100%;
|
|
32911
|
+
}
|
|
32912
|
+
[data-pont2-secret] > [data-slot="secret-title"] {
|
|
32913
|
+
margin: 0;
|
|
32914
|
+
font-size: var(--pont2-sem-text-sm);
|
|
32915
|
+
line-height: var(--pont2-sem-text-sm--line-height);
|
|
32916
|
+
font-weight: var(--pont2-sem-font-weight-medium);
|
|
32917
|
+
}
|
|
32918
|
+
[data-pont2-secret] [data-secret] {
|
|
32919
|
+
font-family: var(--pont2-sem-font-code);
|
|
32920
|
+
letter-spacing: var(--pont2-sem-tracking-wider);
|
|
32921
|
+
}
|
|
32922
|
+
/* Reserved line, so the status appearing does not shift the layout. */
|
|
32923
|
+
[data-pont2-secret] > [data-slot="secret-copied"] {
|
|
32924
|
+
min-height: 1rem;
|
|
32925
|
+
color: var(--pont2-sem-color-muted-foreground);
|
|
32926
|
+
font-size: var(--pont2-sem-text-xs);
|
|
32927
|
+
line-height: 1rem;
|
|
32928
|
+
}
|
|
32929
|
+
[data-pont2-secret] > [data-slot="secret-metadata"] {
|
|
32930
|
+
display: flex;
|
|
32931
|
+
flex-wrap: wrap;
|
|
32932
|
+
gap: 0.5rem 1.5rem;
|
|
32933
|
+
margin: 0;
|
|
32934
|
+
}
|
|
32935
|
+
[data-pont2-secret] > [data-slot="secret-metadata"] dt {
|
|
32936
|
+
color: var(--pont2-sem-color-muted-foreground);
|
|
32937
|
+
font-size: var(--pont2-sem-text-xs);
|
|
32938
|
+
line-height: 1rem;
|
|
32939
|
+
}
|
|
32940
|
+
[data-pont2-secret] > [data-slot="secret-metadata"] dd {
|
|
32941
|
+
margin: 0;
|
|
32942
|
+
font-size: var(--pont2-sem-text-sm);
|
|
32943
|
+
line-height: var(--pont2-sem-text-sm--line-height);
|
|
32944
|
+
font-weight: var(--pont2-sem-font-weight-medium);
|
|
32945
|
+
}
|
|
32946
|
+
}
|
|
32947
|
+
|
|
32948
|
+
/* ../kit/qr-code/qr-code.css */
|
|
32949
|
+
/*
|
|
32950
|
+
* <pont2-qr-code>: a dark-on-white code (scanners need the contrast and the quiet
|
|
32951
|
+
* zone, whatever the theme), fading behind a reveal button when obscured.
|
|
32952
|
+
*/
|
|
32953
|
+
@layer pont2.kit {
|
|
32954
|
+
/* Tokens (resolved on the host; the image inherits them) */
|
|
32955
|
+
:is(pont2-qr-code, [data-pont2-qr-code]) {
|
|
32956
|
+
/** @token Image width */
|
|
32957
|
+
--_pont2-qr-code-width: var(--pont2-qr-code-width, 12rem);
|
|
32958
|
+
}
|
|
32959
|
+
|
|
32960
|
+
/* Recipe */
|
|
32961
|
+
:is(pont2-qr-code, [data-pont2-qr-code]) {
|
|
32962
|
+
position: relative;
|
|
32963
|
+
display: grid;
|
|
32964
|
+
place-items: center;
|
|
32965
|
+
width: fit-content;
|
|
32966
|
+
margin-inline: auto;
|
|
31472
32967
|
}
|
|
31473
|
-
|
|
31474
|
-
|
|
31475
|
-
|
|
31476
|
-
|
|
31477
|
-
|
|
32968
|
+
[data-pont2-qr-code] > [data-slot="qr-code-image"] {
|
|
32969
|
+
display: block;
|
|
32970
|
+
width: var(--_pont2-qr-code-width);
|
|
32971
|
+
height: auto;
|
|
32972
|
+
border-radius: var(--pont2-sem-radius-md);
|
|
32973
|
+
box-shadow: 0 0 0 var(--pont2-sem-border-width) var(--pont2-sem-color-border);
|
|
32974
|
+
transition: opacity 200ms ease;
|
|
32975
|
+
}
|
|
32976
|
+
[data-pont2-qr-code][data-obscured] > [data-slot="qr-code-image"] {
|
|
32977
|
+
opacity: 0.15;
|
|
31478
32978
|
}
|
|
32979
|
+
[data-pont2-qr-code] > [data-slot="qr-code-overlay"] {
|
|
32980
|
+
position: absolute;
|
|
32981
|
+
inset: 0;
|
|
32982
|
+
display: grid;
|
|
32983
|
+
place-items: center;
|
|
32984
|
+
}
|
|
32985
|
+
@media (prefers-reduced-motion: reduce) {
|
|
32986
|
+
[data-pont2-qr-code] > [data-slot="qr-code-image"] {
|
|
32987
|
+
transition: none;
|
|
32988
|
+
}
|
|
32989
|
+
}
|
|
32990
|
+
}
|
|
31479
32991
|
|
|
31480
|
-
|
|
31481
|
-
|
|
31482
|
-
|
|
32992
|
+
/* ../kit/recovery-codes/recovery-codes.css */
|
|
32993
|
+
/* <pont2-recovery-codes>: title, description, a monospace two-column code grid, actions. */
|
|
32994
|
+
@layer pont2.kit {
|
|
32995
|
+
/* Tokens: the code grid's surface (resolved on the host; the list inherits them). */
|
|
32996
|
+
:is(pont2-recovery-codes, [data-pont2-recovery-codes]) {
|
|
32997
|
+
/** @token Background (code list) */
|
|
32998
|
+
--_pont2-recovery-codes-list-bg: var(--pont2-recovery-codes-list-bg, var(--pont2-sem-color-muted));
|
|
32999
|
+
/** @token Corner radius (code list) */
|
|
33000
|
+
--_pont2-recovery-codes-list-radius: var(--pont2-recovery-codes-list-radius, var(--pont2-sem-radius-md));
|
|
33001
|
+
}
|
|
31483
33002
|
|
|
31484
|
-
|
|
33003
|
+
/* Recipe */
|
|
33004
|
+
:is(pont2-recovery-codes, [data-pont2-recovery-codes]) {
|
|
31485
33005
|
display: flex;
|
|
31486
33006
|
flex-direction: column;
|
|
31487
|
-
gap:
|
|
33007
|
+
gap: 0.75rem;
|
|
31488
33008
|
width: 100%;
|
|
31489
|
-
max-width: var(--_pont2-block-max-width);
|
|
31490
|
-
margin-inline: auto;
|
|
31491
|
-
padding-inline: var(--_pont2-card-spacing);
|
|
31492
33009
|
}
|
|
31493
|
-
pont2-
|
|
31494
|
-
|
|
33010
|
+
[data-pont2-recovery-codes] > [data-slot="recovery-codes-title"] {
|
|
33011
|
+
margin: 0;
|
|
33012
|
+
font-weight: var(--pont2-sem-font-weight-medium);
|
|
31495
33013
|
}
|
|
31496
|
-
pont2-
|
|
31497
|
-
|
|
33014
|
+
[data-pont2-recovery-codes] > :is([data-slot="recovery-codes-description"], [data-slot="recovery-codes-empty"]) {
|
|
33015
|
+
margin: 0;
|
|
33016
|
+
color: var(--pont2-sem-color-muted-foreground);
|
|
33017
|
+
font-size: var(--pont2-sem-text-sm);
|
|
33018
|
+
line-height: var(--pont2-sem-text-sm--line-height);
|
|
31498
33019
|
}
|
|
31499
|
-
pont2-
|
|
31500
|
-
|
|
33020
|
+
[data-pont2-recovery-codes] > [data-slot="recovery-codes-list"] {
|
|
33021
|
+
display: grid;
|
|
33022
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
33023
|
+
gap: 0.5rem 1rem;
|
|
33024
|
+
margin: 0;
|
|
33025
|
+
padding: 0.75rem 1rem;
|
|
33026
|
+
list-style: none;
|
|
33027
|
+
border-radius: var(--_pont2-recovery-codes-list-radius);
|
|
33028
|
+
background-color: var(--_pont2-recovery-codes-list-bg);
|
|
33029
|
+
font-family: var(--pont2-sem-font-code);
|
|
33030
|
+
font-size: var(--pont2-sem-text-sm);
|
|
33031
|
+
line-height: var(--pont2-sem-text-sm--line-height);
|
|
33032
|
+
text-align: center;
|
|
31501
33033
|
}
|
|
31502
|
-
pont2-
|
|
31503
|
-
|
|
33034
|
+
[data-pont2-recovery-codes] > [data-slot="recovery-codes-actions"] {
|
|
33035
|
+
display: flex;
|
|
33036
|
+
gap: 0.5rem;
|
|
31504
33037
|
}
|
|
31505
|
-
pont2-
|
|
31506
|
-
|
|
33038
|
+
[data-pont2-recovery-codes] > [data-slot="recovery-codes-actions"] > [data-pont2-button] {
|
|
33039
|
+
flex: 1;
|
|
31507
33040
|
}
|
|
31508
|
-
pont2-
|
|
31509
|
-
|
|
33041
|
+
[data-pont2-recovery-codes] > [data-slot="recovery-codes-copied"] {
|
|
33042
|
+
min-height: 1rem;
|
|
33043
|
+
color: var(--pont2-sem-color-muted-foreground);
|
|
33044
|
+
font-size: var(--pont2-sem-text-xs);
|
|
33045
|
+
line-height: 1rem;
|
|
33046
|
+
text-align: center;
|
|
31510
33047
|
}
|
|
33048
|
+
}
|
|
31511
33049
|
|
|
31512
|
-
|
|
31513
|
-
|
|
31514
|
-
|
|
31515
|
-
|
|
31516
|
-
|
|
31517
|
-
|
|
33050
|
+
/* ../kit/scope-list/scope-list.css */
|
|
33051
|
+
/* <pont2-scope-list>: one checkbox row per scope (shadcn's checkbox + label row: "flex items-center gap-3"). */
|
|
33052
|
+
@layer pont2.kit {
|
|
33053
|
+
:is(pont2-scope-list, [data-pont2-scope-list]) {
|
|
33054
|
+
display: flex;
|
|
33055
|
+
flex-direction: column;
|
|
33056
|
+
gap: 0.75rem;
|
|
31518
33057
|
}
|
|
31519
|
-
|
|
31520
|
-
|
|
31521
|
-
|
|
31522
|
-
|
|
31523
|
-
|
|
31524
|
-
|
|
31525
|
-
|
|
31526
|
-
padding-block: 0.75rem;
|
|
31527
|
-
background-color: var(--_pont2-block-footer-bg);
|
|
33058
|
+
[data-pont2-scope-list] [data-slot="scope-list-label"] {
|
|
33059
|
+
display: flex;
|
|
33060
|
+
align-items: center;
|
|
33061
|
+
gap: 0.75rem;
|
|
33062
|
+
font-size: var(--pont2-sem-text-sm);
|
|
33063
|
+
line-height: var(--pont2-sem-text-sm--line-height);
|
|
33064
|
+
cursor: pointer;
|
|
31528
33065
|
}
|
|
31529
|
-
|
|
31530
|
-
|
|
31531
|
-
|
|
31532
|
-
|
|
31533
|
-
|
|
31534
|
-
|
|
31535
|
-
max-width: var(--_pont2-block-max-width);
|
|
31536
|
-
margin-inline: auto;
|
|
33066
|
+
[data-pont2-scope-list] [data-required] [data-slot="scope-list-label"],
|
|
33067
|
+
[data-pont2-scope-list][data-disabled] [data-slot="scope-list-label"] {
|
|
33068
|
+
cursor: default;
|
|
33069
|
+
}
|
|
33070
|
+
[data-pont2-scope-list][data-disabled] [data-slot="scope-list-text"] {
|
|
33071
|
+
opacity: var(--pont2-sem-opacity-disabled);
|
|
31537
33072
|
}
|
|
31538
33073
|
}
|
|
31539
33074
|
|
|
31540
|
-
/* ../kit/
|
|
33075
|
+
/* ../kit/layout/layout.css */
|
|
31541
33076
|
/*
|
|
31542
|
-
* <pont2-
|
|
31543
|
-
*
|
|
31544
|
-
*
|
|
31545
|
-
*
|
|
31546
|
-
* Tokens: the brand variant's mark colour and the muted variant's colour.
|
|
31547
|
-
* `theme` follows the surrounding text and has none.
|
|
33077
|
+
* <pont2-layout>: the flow host. The host and its form have no box of their own
|
|
33078
|
+
* (the screen's block is the visible shell); a pending request is signalled by
|
|
33079
|
+
* aria-busy on the form, which the elements' own busy states already show.
|
|
31548
33080
|
*/
|
|
31549
33081
|
@layer pont2.kit {
|
|
31550
|
-
|
|
31551
|
-
|
|
31552
|
-
|
|
31553
|
-
|
|
31554
|
-
:is(pont2-watermark, [data-pont2-watermark]) {
|
|
31555
|
-
/** @token Mark */
|
|
31556
|
-
--_pont2-watermark-icon-color: var(--pont2-watermark-brand-icon-color, #6366f1);
|
|
31557
|
-
--_pont2-watermark-fg: currentColor;
|
|
33082
|
+
:is(pont2-layout, [data-pont2-layout]) {
|
|
33083
|
+
display: block;
|
|
33084
|
+
width: 100%;
|
|
31558
33085
|
}
|
|
31559
|
-
[data-pont2-
|
|
31560
|
-
|
|
33086
|
+
[data-pont2-layout] > [data-slot="layout-form"] {
|
|
33087
|
+
display: contents;
|
|
31561
33088
|
}
|
|
31562
|
-
|
|
31563
|
-
|
|
31564
|
-
|
|
31565
|
-
--_pont2-watermark-icon-color: currentColor;
|
|
33089
|
+
/* The error banner sits in the screen's flow (block gap); the restart button spans it. */
|
|
33090
|
+
[data-pont2-layout] pont2-button[data-flow-error] > [data-pont2-button] {
|
|
33091
|
+
width: 100%;
|
|
31566
33092
|
}
|
|
33093
|
+
}
|
|
31567
33094
|
|
|
31568
|
-
|
|
31569
|
-
|
|
31570
|
-
|
|
31571
|
-
|
|
31572
|
-
|
|
31573
|
-
|
|
31574
|
-
flex-shrink: 0;
|
|
31575
|
-
align-items: center;
|
|
31576
|
-
gap: 0.375rem;
|
|
31577
|
-
color: var(--_pont2-watermark-fg);
|
|
31578
|
-
font-size: 0.8125rem;
|
|
31579
|
-
line-height: var(--pont2-sem-leading-none);
|
|
31580
|
-
}
|
|
31581
|
-
[data-pont2-watermark] > [data-slot="watermark-logo"] {
|
|
31582
|
-
flex-shrink: 0;
|
|
31583
|
-
width: auto;
|
|
31584
|
-
height: 0.875rem;
|
|
31585
|
-
}
|
|
31586
|
-
[data-pont2-watermark] [data-logo-mark] {
|
|
31587
|
-
fill: var(--_pont2-watermark-icon-color);
|
|
33095
|
+
/* ../kit/consent/consent.css */
|
|
33096
|
+
/* <pont2-consent>: a block-level host; a centred spinner until the screen loads (as the flow widgets). */
|
|
33097
|
+
@layer pont2.kit {
|
|
33098
|
+
:is(pont2-consent, [data-pont2-consent]) {
|
|
33099
|
+
display: block;
|
|
33100
|
+
width: 100%;
|
|
31588
33101
|
}
|
|
31589
|
-
[data-pont2-
|
|
31590
|
-
|
|
33102
|
+
[data-pont2-consent] > [data-slot="flow-widget-loading"] {
|
|
33103
|
+
display: grid;
|
|
33104
|
+
place-items: center;
|
|
33105
|
+
min-height: 12rem;
|
|
33106
|
+
color: var(--pont2-sem-color-muted-foreground);
|
|
31591
33107
|
}
|
|
31592
33108
|
}
|
|
31593
33109
|
|
|
31594
|
-
/* ../kit/
|
|
31595
|
-
/* <pont2-
|
|
33110
|
+
/* ../kit/flow-widget/flow-widget.css */
|
|
33111
|
+
/* <pont2-signin> / <pont2-signup> / <pont2-invitation>: a block-level host; a centred spinner until the first screen. */
|
|
31596
33112
|
@layer pont2.kit {
|
|
31597
|
-
|
|
31598
|
-
|
|
31599
|
-
/** @token Gap between children */
|
|
31600
|
-
--_pont2-container-gap: var(--pont2-container-gap, 1rem);
|
|
31601
|
-
}
|
|
31602
|
-
|
|
31603
|
-
/* Recipe */
|
|
31604
|
-
:is(pont2-container, [data-pont2-container]) {
|
|
31605
|
-
box-sizing: border-box;
|
|
31606
|
-
display: flex;
|
|
31607
|
-
flex-direction: column;
|
|
31608
|
-
gap: var(--_pont2-container-gap);
|
|
33113
|
+
:is(pont2-signin, pont2-signup, pont2-invitation, [data-pont2-flow-widget]) {
|
|
33114
|
+
display: block;
|
|
31609
33115
|
width: 100%;
|
|
31610
33116
|
}
|
|
31611
|
-
[data-pont2-
|
|
31612
|
-
|
|
31613
|
-
|
|
33117
|
+
[data-pont2-flow-widget] > [data-slot="flow-widget-loading"] {
|
|
33118
|
+
display: grid;
|
|
33119
|
+
place-items: center;
|
|
33120
|
+
min-height: 12rem;
|
|
33121
|
+
color: var(--pont2-sem-color-muted-foreground);
|
|
31614
33122
|
}
|
|
31615
|
-
|
|
31616
|
-
|
|
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;
|
|
31617
33133
|
}
|
|
31618
|
-
|
|
31619
|
-
|
|
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;
|
|
31620
33145
|
}
|
|
31621
|
-
|
|
31622
|
-
|
|
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;
|
|
31623
33162
|
}
|
|
31624
|
-
[data-pont2-
|
|
31625
|
-
|
|
33163
|
+
pont2-data-table [data-pont2-data-table-sort] svg {
|
|
33164
|
+
width: 1rem;
|
|
33165
|
+
height: 1rem;
|
|
31626
33166
|
}
|
|
31627
|
-
[data-pont2-
|
|
31628
|
-
|
|
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);
|
|
31629
33169
|
}
|
|
31630
|
-
|
|
31631
|
-
|
|
33170
|
+
pont2-data-table :is(th, td)[data-align="end"] {
|
|
33171
|
+
text-align: end;
|
|
31632
33172
|
}
|
|
31633
|
-
|
|
31634
|
-
|
|
33173
|
+
pont2-data-table :is(th, td)[data-align="center"] {
|
|
33174
|
+
text-align: center;
|
|
31635
33175
|
}
|
|
31636
|
-
|
|
31637
|
-
|
|
31638
|
-
* Design mode (the designer's canvas only; core/design-mode.ts). An outline takes no space, so
|
|
31639
|
-
* showing the container doesn't reflow what the author is arranging. The inset does reflow, on
|
|
31640
|
-
* purpose: without it a nested container's outline lands on its parent's and the parent has no
|
|
31641
|
-
* surface left to click or drop onto. Served screens never get these attributes.
|
|
31642
|
-
*/
|
|
31643
|
-
[data-pont2-container][data-design] {
|
|
31644
|
-
outline: 1px dotted color-mix(in oklab, var(--pont2-sem-color-foreground) 35%, transparent);
|
|
31645
|
-
outline-offset: -1px;
|
|
31646
|
-
padding: 0.5rem;
|
|
33176
|
+
pont2-data-table th[data-sortable][data-align="end"] {
|
|
33177
|
+
padding-inline: 0;
|
|
31647
33178
|
}
|
|
31648
|
-
[data-pont2-
|
|
31649
|
-
|
|
31650
|
-
|
|
33179
|
+
pont2-data-table [data-pont2-data-table-actions] {
|
|
33180
|
+
width: 1px;
|
|
33181
|
+
text-align: end;
|
|
31651
33182
|
}
|
|
31652
|
-
|
|
31653
|
-
|
|
31654
|
-
|
|
31655
|
-
position: absolute;
|
|
31656
|
-
inset: 0;
|
|
31657
|
-
display: flex;
|
|
31658
|
-
align-items: center;
|
|
31659
|
-
justify-content: center;
|
|
33183
|
+
pont2-data-table [data-pont2-data-table-empty] > td {
|
|
33184
|
+
height: 6rem;
|
|
33185
|
+
text-align: center;
|
|
31660
33186
|
color: var(--pont2-sem-color-muted-foreground);
|
|
31661
|
-
|
|
31662
|
-
|
|
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;
|
|
31663
33195
|
}
|
|
31664
33196
|
}
|
|
31665
33197
|
|
|
31666
|
-
/* ../kit/
|
|
33198
|
+
/* ../kit/badge-selector/badge-selector.css */
|
|
31667
33199
|
/*
|
|
31668
|
-
* <pont2-
|
|
31669
|
-
*
|
|
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.
|
|
31670
33203
|
*/
|
|
31671
33204
|
@layer pont2.kit {
|
|
31672
|
-
|
|
31673
|
-
|
|
31674
|
-
/** @token Gap between children */
|
|
31675
|
-
--_pont2-header-gap: var(--pont2-header-gap, 0.5rem);
|
|
33205
|
+
pont2-badge-selector > [data-pont2-combobox-chips] {
|
|
33206
|
+
width: 100%;
|
|
31676
33207
|
}
|
|
33208
|
+
}
|
|
31677
33209
|
|
|
31678
|
-
|
|
31679
|
-
|
|
31680
|
-
|
|
31681
|
-
|
|
31682
|
-
|
|
31683
|
-
|
|
31684
|
-
|
|
31685
|
-
|
|
31686
|
-
|
|
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;
|
|
31687
33222
|
}
|
|
31688
|
-
[data-pont2-
|
|
31689
|
-
|
|
31690
|
-
text-align: start;
|
|
33223
|
+
pont2-multi-email-input > [data-pont2-multi-email-box] {
|
|
33224
|
+
width: 100%;
|
|
31691
33225
|
}
|
|
31692
|
-
[data-pont2-
|
|
31693
|
-
|
|
33226
|
+
pont2-multi-email-input > [data-pont2-multi-email-count] {
|
|
33227
|
+
font-variant-numeric: tabular-nums;
|
|
31694
33228
|
text-align: end;
|
|
31695
33229
|
}
|
|
31696
33230
|
}
|
|
31697
33231
|
|
|
31698
|
-
/* ../kit/
|
|
31699
|
-
/*
|
|
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
|
+
*/
|
|
31700
33239
|
@layer pont2.kit {
|
|
31701
|
-
|
|
31702
|
-
|
|
31703
|
-
|
|
31704
|
-
|
|
31705
|
-
height: var(--pont2-gap-size, 8px);
|
|
31706
|
-
}
|
|
31707
|
-
[data-pont2-gap][data-type="horizontal"] {
|
|
31708
|
-
width: var(--pont2-gap-size, 8px);
|
|
31709
|
-
height: 1px;
|
|
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);
|
|
31710
33244
|
}
|
|
31711
33245
|
}
|
|
31712
33246
|
|
|
31713
|
-
/* ../kit/
|
|
33247
|
+
/* ../kit/account-menu/account-menu.css */
|
|
31714
33248
|
/*
|
|
31715
|
-
* <pont2-
|
|
31716
|
-
*
|
|
31717
|
-
*
|
|
33249
|
+
* <pont2-account-menu>: shadcn's "nav user" (sidebar-07). The trigger is a ghost Button,
|
|
33250
|
+
* the menu the Dropdown Menu primitive, the pictures Avatars (their recipes style them).
|
|
33251
|
+
* Here: the user snippet (avatar, then name over email, truncated) in the trigger and the
|
|
33252
|
+
* menu header, as shadcn's "grid flex-1 text-left text-sm leading-tight".
|
|
31718
33253
|
*/
|
|
31719
33254
|
@layer pont2.kit {
|
|
31720
|
-
|
|
33255
|
+
[data-pont2-account-menu-trigger] {
|
|
33256
|
+
max-inline-size: 100%;
|
|
33257
|
+
}
|
|
33258
|
+
|
|
33259
|
+
[data-pont2-account-menu-user] {
|
|
31721
33260
|
display: flex;
|
|
31722
|
-
|
|
31723
|
-
|
|
33261
|
+
align-items: center;
|
|
33262
|
+
gap: 0.5rem;
|
|
33263
|
+
min-inline-size: 0;
|
|
33264
|
+
flex: 1 1 auto;
|
|
33265
|
+
text-align: start;
|
|
31724
33266
|
}
|
|
31725
|
-
|
|
31726
|
-
|
|
33267
|
+
|
|
33268
|
+
[data-pont2-account-menu-text] {
|
|
33269
|
+
display: grid;
|
|
33270
|
+
flex: 1 1 auto;
|
|
33271
|
+
min-inline-size: 0;
|
|
33272
|
+
font-size: var(--pont2-sem-text-sm);
|
|
33273
|
+
line-height: 1.25;
|
|
31727
33274
|
}
|
|
31728
|
-
|
|
31729
|
-
|
|
33275
|
+
|
|
33276
|
+
[data-pont2-account-menu-name] {
|
|
33277
|
+
overflow: hidden;
|
|
33278
|
+
text-overflow: ellipsis;
|
|
33279
|
+
white-space: nowrap;
|
|
33280
|
+
font-weight: var(--pont2-sem-font-weight-medium);
|
|
31730
33281
|
}
|
|
31731
|
-
|
|
31732
|
-
|
|
31733
|
-
|
|
31734
|
-
|
|
33282
|
+
|
|
33283
|
+
[data-pont2-account-menu-email] {
|
|
33284
|
+
overflow: hidden;
|
|
33285
|
+
text-overflow: ellipsis;
|
|
33286
|
+
white-space: nowrap;
|
|
33287
|
+
font-size: var(--pont2-sem-text-xs);
|
|
33288
|
+
font-weight: var(--pont2-sem-font-weight-normal);
|
|
33289
|
+
color: var(--pont2-sem-color-muted-foreground);
|
|
31735
33290
|
}
|
|
31736
|
-
|
|
31737
|
-
|
|
33291
|
+
|
|
33292
|
+
/* The header is a group label: give it the snippet's normal weight and colour. */
|
|
33293
|
+
[data-pont2-account-menu-header] {
|
|
33294
|
+
font-weight: var(--pont2-sem-font-weight-normal);
|
|
33295
|
+
color: inherit;
|
|
31738
33296
|
}
|
|
31739
|
-
|
|
31740
|
-
[data-pont2-
|
|
31741
|
-
|
|
33297
|
+
|
|
33298
|
+
[data-pont2-account-menu-content] {
|
|
33299
|
+
min-inline-size: 14rem;
|
|
31742
33300
|
}
|
|
31743
33301
|
}
|
|
31744
33302
|
|
|
31745
|
-
/* ../kit/
|
|
31746
|
-
/*
|
|
33303
|
+
/* ../kit/organization-switcher/organization-switcher.css */
|
|
33304
|
+
/*
|
|
33305
|
+
* <pont2-organization-switcher>: an outline Button with the current organization (a small
|
|
33306
|
+
* Avatar of its initials and its name, truncated), opening a Dropdown Menu of radio items.
|
|
33307
|
+
* The recipes style the button, menu and avatar; here: truncation, the "Switching…" note
|
|
33308
|
+
* and the refusal under the list.
|
|
33309
|
+
*/
|
|
31747
33310
|
@layer pont2.kit {
|
|
31748
|
-
|
|
31749
|
-
|
|
33311
|
+
[data-pont2-organization-switcher-current] {
|
|
33312
|
+
overflow: hidden;
|
|
33313
|
+
text-overflow: ellipsis;
|
|
33314
|
+
white-space: nowrap;
|
|
33315
|
+
max-inline-size: 12rem;
|
|
33316
|
+
}
|
|
33317
|
+
|
|
33318
|
+
[data-pont2-organization-switcher-content] {
|
|
33319
|
+
min-inline-size: 14rem;
|
|
33320
|
+
}
|
|
33321
|
+
|
|
33322
|
+
[data-pont2-organization-switcher-switching] {
|
|
33323
|
+
margin-inline-start: auto;
|
|
33324
|
+
font-size: var(--pont2-sem-text-xs);
|
|
31750
33325
|
color: var(--pont2-sem-color-muted-foreground);
|
|
31751
|
-
|
|
31752
|
-
|
|
31753
|
-
|
|
31754
|
-
|
|
33326
|
+
}
|
|
33327
|
+
|
|
33328
|
+
[data-pont2-organization-switcher-error] {
|
|
33329
|
+
padding: 0.375rem 0.5rem;
|
|
33330
|
+
font-size: var(--pont2-sem-text-xs);
|
|
33331
|
+
color: var(--pont2-sem-color-destructive);
|
|
31755
33332
|
}
|
|
31756
33333
|
}
|
|
31757
33334
|
|
|
31758
|
-
/* ../kit/
|
|
31759
|
-
/*
|
|
33335
|
+
/* ../kit/account-settings/account-settings.css */
|
|
33336
|
+
/*
|
|
33337
|
+
* <pont2-account-settings>: the profile and security tabs, as cards. The recipes style the
|
|
33338
|
+
* tabs, cards, inputs, selects, buttons, alerts and the dialog; here: the layout (tabs beside or
|
|
33339
|
+
* above the cards, narrowing to one column), and the label / value rows, whose labels keep a gap
|
|
33340
|
+
* from the value and wrap instead of running into it (carry-over §4).
|
|
33341
|
+
*/
|
|
31760
33342
|
@layer pont2.kit {
|
|
31761
|
-
|
|
33343
|
+
pont2-account-settings {
|
|
33344
|
+
display: block;
|
|
33345
|
+
container: pont2-account-settings / inline-size;
|
|
33346
|
+
}
|
|
33347
|
+
|
|
33348
|
+
[data-pont2-account-settings-page] {
|
|
31762
33349
|
display: flex;
|
|
31763
|
-
|
|
31764
|
-
|
|
31765
|
-
|
|
31766
|
-
min-width: 0;
|
|
31767
|
-
font-size: var(--pont2-sem-text-sm);
|
|
31768
|
-
line-height: var(--pont2-sem-text-sm--line-height);
|
|
33350
|
+
flex-direction: column;
|
|
33351
|
+
gap: 1.5rem;
|
|
33352
|
+
inline-size: 100%;
|
|
31769
33353
|
}
|
|
31770
|
-
|
|
31771
|
-
|
|
31772
|
-
|
|
31773
|
-
|
|
31774
|
-
|
|
33354
|
+
|
|
33355
|
+
[data-pont2-account-settings-title] {
|
|
33356
|
+
margin: 0;
|
|
33357
|
+
font-size: var(--pont2-sem-text-xl);
|
|
33358
|
+
font-weight: var(--pont2-sem-font-weight-semibold);
|
|
33359
|
+
line-height: 1.3;
|
|
31775
33360
|
}
|
|
31776
|
-
}
|
|
31777
33361
|
|
|
31778
|
-
/*
|
|
31779
|
-
|
|
31780
|
-
|
|
31781
|
-
|
|
33362
|
+
/* The dialog is wider than a form dialog: the cards need room for a label column. */
|
|
33363
|
+
[data-pont2-account-settings-dialog] {
|
|
33364
|
+
max-inline-size: min(56rem, calc(100% - 2rem));
|
|
33365
|
+
inline-size: 100%;
|
|
33366
|
+
max-block-size: calc(100% - 2rem);
|
|
33367
|
+
overflow-y: auto;
|
|
33368
|
+
container: pont2-account-settings / inline-size;
|
|
33369
|
+
}
|
|
33370
|
+
|
|
33371
|
+
[data-pont2-account-settings-tabs] {
|
|
33372
|
+
gap: 1.5rem;
|
|
33373
|
+
}
|
|
33374
|
+
|
|
33375
|
+
[data-pont2-account-settings-tabs][data-orientation="vertical"] [data-pont2-account-settings-sidebar] {
|
|
33376
|
+
flex: 0 0 11rem;
|
|
33377
|
+
align-self: flex-start;
|
|
33378
|
+
}
|
|
33379
|
+
|
|
33380
|
+
[data-pont2-account-settings-panel] {
|
|
31782
33381
|
display: flex;
|
|
31783
33382
|
flex-direction: column;
|
|
33383
|
+
gap: 1.5rem;
|
|
33384
|
+
min-inline-size: 0;
|
|
33385
|
+
flex: 1 1 auto;
|
|
33386
|
+
}
|
|
33387
|
+
|
|
33388
|
+
[data-pont2-account-settings-panel][data-hidden] {
|
|
33389
|
+
display: none;
|
|
33390
|
+
}
|
|
33391
|
+
|
|
33392
|
+
[data-pont2-account-settings-card-title] {
|
|
33393
|
+
display: flex;
|
|
33394
|
+
align-items: center;
|
|
31784
33395
|
gap: 0.5rem;
|
|
31785
|
-
width: 100%;
|
|
31786
33396
|
}
|
|
31787
|
-
|
|
33397
|
+
|
|
33398
|
+
/* Label / value rows: a label column that keeps its gap and wraps (carry-over §4). */
|
|
33399
|
+
[data-pont2-account-settings-rows] {
|
|
33400
|
+
display: grid;
|
|
33401
|
+
gap: 1rem;
|
|
33402
|
+
margin: 0;
|
|
33403
|
+
}
|
|
33404
|
+
|
|
33405
|
+
[data-pont2-account-settings-row] {
|
|
33406
|
+
display: grid;
|
|
33407
|
+
grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
|
|
33408
|
+
column-gap: 1.5rem;
|
|
33409
|
+
row-gap: 0.375rem;
|
|
33410
|
+
align-items: baseline;
|
|
33411
|
+
}
|
|
33412
|
+
|
|
33413
|
+
[data-pont2-account-settings-rows][data-layout="column"] [data-pont2-account-settings-row] {
|
|
33414
|
+
grid-template-columns: minmax(0, 1fr);
|
|
33415
|
+
}
|
|
33416
|
+
|
|
33417
|
+
[data-pont2-account-settings-label] {
|
|
31788
33418
|
margin: 0;
|
|
31789
33419
|
font-size: var(--pont2-sem-text-sm);
|
|
31790
|
-
line-height: var(--pont2-sem-text-sm--line-height);
|
|
31791
33420
|
font-weight: var(--pont2-sem-font-weight-medium);
|
|
33421
|
+
color: var(--pont2-sem-color-muted-foreground);
|
|
33422
|
+
overflow-wrap: anywhere;
|
|
33423
|
+
hyphens: auto;
|
|
31792
33424
|
}
|
|
31793
|
-
|
|
31794
|
-
|
|
31795
|
-
|
|
33425
|
+
|
|
33426
|
+
[data-pont2-account-settings-value] {
|
|
33427
|
+
margin: 0;
|
|
33428
|
+
min-inline-size: 0;
|
|
33429
|
+
font-size: var(--pont2-sem-text-sm);
|
|
33430
|
+
overflow-wrap: anywhere;
|
|
33431
|
+
display: grid;
|
|
33432
|
+
gap: 0.375rem;
|
|
31796
33433
|
}
|
|
31797
|
-
|
|
31798
|
-
[data-pont2-
|
|
31799
|
-
|
|
33434
|
+
|
|
33435
|
+
[data-pont2-account-settings-row][data-field="profile"] [data-pont2-account-settings-value] {
|
|
33436
|
+
white-space: pre-line;
|
|
33437
|
+
}
|
|
33438
|
+
|
|
33439
|
+
[data-pont2-account-settings-empty] {
|
|
31800
33440
|
color: var(--pont2-sem-color-muted-foreground);
|
|
31801
|
-
font-size: var(--pont2-sem-text-xs);
|
|
31802
|
-
line-height: 1rem;
|
|
31803
33441
|
}
|
|
31804
|
-
|
|
33442
|
+
|
|
33443
|
+
[data-pont2-account-settings-photo] {
|
|
31805
33444
|
display: flex;
|
|
31806
33445
|
flex-wrap: wrap;
|
|
31807
|
-
|
|
31808
|
-
|
|
33446
|
+
align-items: center;
|
|
33447
|
+
gap: 1rem;
|
|
31809
33448
|
}
|
|
31810
|
-
|
|
31811
|
-
|
|
31812
|
-
|
|
31813
|
-
|
|
33449
|
+
|
|
33450
|
+
[data-pont2-account-settings-photo-form] {
|
|
33451
|
+
display: grid;
|
|
33452
|
+
gap: 0.5rem;
|
|
33453
|
+
flex: 1 1 14rem;
|
|
33454
|
+
min-inline-size: 0;
|
|
31814
33455
|
}
|
|
31815
|
-
|
|
31816
|
-
|
|
31817
|
-
|
|
31818
|
-
|
|
31819
|
-
font-weight: var(--pont2-sem-font-weight-medium);
|
|
33456
|
+
|
|
33457
|
+
[data-pont2-account-settings-form] {
|
|
33458
|
+
display: grid;
|
|
33459
|
+
gap: 1rem;
|
|
31820
33460
|
}
|
|
31821
|
-
}
|
|
31822
33461
|
|
|
31823
|
-
|
|
31824
|
-
|
|
31825
|
-
|
|
31826
|
-
|
|
31827
|
-
|
|
31828
|
-
@layer pont2.kit {
|
|
31829
|
-
/* Tokens (resolved on the host; the image inherits them) */
|
|
31830
|
-
:is(pont2-qr-code, [data-pont2-qr-code]) {
|
|
31831
|
-
/** @token Image width */
|
|
31832
|
-
--_pont2-qr-code-width: var(--pont2-qr-code-width, 12rem);
|
|
33462
|
+
[data-pont2-account-settings-actions] {
|
|
33463
|
+
display: flex;
|
|
33464
|
+
flex-wrap: wrap;
|
|
33465
|
+
justify-content: flex-end;
|
|
33466
|
+
gap: 0.5rem;
|
|
31833
33467
|
}
|
|
31834
33468
|
|
|
31835
|
-
|
|
31836
|
-
|
|
31837
|
-
|
|
33469
|
+
[data-pont2-account-settings-problem] {
|
|
33470
|
+
display: flex;
|
|
33471
|
+
flex-direction: column;
|
|
33472
|
+
align-items: flex-start;
|
|
33473
|
+
gap: 1rem;
|
|
33474
|
+
}
|
|
33475
|
+
|
|
33476
|
+
[data-pont2-account-settings-loading] {
|
|
31838
33477
|
display: grid;
|
|
31839
|
-
|
|
31840
|
-
width: fit-content;
|
|
31841
|
-
margin-inline: auto;
|
|
33478
|
+
gap: 1rem;
|
|
31842
33479
|
}
|
|
31843
|
-
|
|
31844
|
-
|
|
31845
|
-
|
|
31846
|
-
|
|
31847
|
-
border-radius: var(--pont2-sem-radius-md);
|
|
31848
|
-
box-shadow: 0 0 0 var(--pont2-sem-border-width) var(--pont2-sem-color-border);
|
|
31849
|
-
transition: opacity 200ms ease;
|
|
33480
|
+
|
|
33481
|
+
[data-pont2-account-settings-loading] [data-part="tab"] {
|
|
33482
|
+
block-size: 2.25rem;
|
|
33483
|
+
inline-size: 11rem;
|
|
31850
33484
|
}
|
|
31851
|
-
|
|
31852
|
-
|
|
33485
|
+
|
|
33486
|
+
[data-pont2-account-settings-loading] [data-part="card"] {
|
|
33487
|
+
block-size: 10rem;
|
|
31853
33488
|
}
|
|
31854
|
-
|
|
33489
|
+
|
|
33490
|
+
[data-pont2-account-settings-sr] {
|
|
31855
33491
|
position: absolute;
|
|
31856
|
-
|
|
31857
|
-
|
|
31858
|
-
|
|
33492
|
+
inline-size: 1px;
|
|
33493
|
+
block-size: 1px;
|
|
33494
|
+
overflow: hidden;
|
|
33495
|
+
clip-path: inset(50%);
|
|
33496
|
+
white-space: nowrap;
|
|
31859
33497
|
}
|
|
31860
|
-
|
|
31861
|
-
|
|
31862
|
-
|
|
33498
|
+
|
|
33499
|
+
[data-pont2-account-settings-footer] {
|
|
33500
|
+
display: flex;
|
|
33501
|
+
justify-content: flex-end;
|
|
33502
|
+
padding-block-start: 0.5rem;
|
|
33503
|
+
}
|
|
33504
|
+
|
|
33505
|
+
/* Narrow: the tabs go above the cards, and each label above its value. */
|
|
33506
|
+
@container pont2-account-settings (max-width: 40rem) {
|
|
33507
|
+
[data-pont2-account-settings-tabs][data-orientation="vertical"] {
|
|
33508
|
+
flex-direction: column;
|
|
33509
|
+
}
|
|
33510
|
+
|
|
33511
|
+
[data-pont2-account-settings-tabs][data-orientation="vertical"] [data-pont2-account-settings-sidebar] {
|
|
33512
|
+
flex: 0 0 auto;
|
|
33513
|
+
flex-direction: row;
|
|
33514
|
+
inline-size: 100%;
|
|
33515
|
+
overflow-x: auto;
|
|
33516
|
+
}
|
|
33517
|
+
}
|
|
33518
|
+
|
|
33519
|
+
@container pont2-account-settings (max-width: 30rem) {
|
|
33520
|
+
[data-pont2-account-settings-row] {
|
|
33521
|
+
grid-template-columns: minmax(0, 1fr);
|
|
31863
33522
|
}
|
|
31864
33523
|
}
|
|
31865
33524
|
}
|
|
31866
33525
|
|
|
31867
|
-
/* ../kit/
|
|
31868
|
-
/*
|
|
33526
|
+
/* ../kit/member-management/member-management.css */
|
|
33527
|
+
/*
|
|
33528
|
+
* <pont2-member-management>: a header, the Members / Invitations tabs (each a toolbar, a Data
|
|
33529
|
+
* Table and a pager) and its dialogs. The recipes style the tabs, table, inputs, buttons, badges,
|
|
33530
|
+
* alerts and dialogs; here: the layout, the person cell, the two-line dates, and the pager row.
|
|
33531
|
+
*/
|
|
31869
33532
|
@layer pont2.kit {
|
|
31870
|
-
|
|
31871
|
-
|
|
31872
|
-
/** @token Background (code list) */
|
|
31873
|
-
--_pont2-recovery-codes-list-bg: var(--pont2-recovery-codes-list-bg, var(--pont2-sem-color-muted));
|
|
31874
|
-
/** @token Corner radius (code list) */
|
|
31875
|
-
--_pont2-recovery-codes-list-radius: var(--pont2-recovery-codes-list-radius, var(--pont2-sem-radius-md));
|
|
33533
|
+
pont2-member-management {
|
|
33534
|
+
display: block;
|
|
31876
33535
|
}
|
|
31877
33536
|
|
|
31878
|
-
|
|
31879
|
-
:is(pont2-recovery-codes, [data-pont2-recovery-codes]) {
|
|
33537
|
+
[data-pont2-member-management-page] {
|
|
31880
33538
|
display: flex;
|
|
31881
33539
|
flex-direction: column;
|
|
31882
|
-
gap:
|
|
31883
|
-
|
|
33540
|
+
gap: 1.5rem;
|
|
33541
|
+
inline-size: 100%;
|
|
31884
33542
|
}
|
|
31885
|
-
|
|
31886
|
-
|
|
31887
|
-
|
|
33543
|
+
|
|
33544
|
+
[data-pont2-member-management-dialog] {
|
|
33545
|
+
max-inline-size: min(64rem, calc(100% - 2rem));
|
|
33546
|
+
inline-size: 100%;
|
|
31888
33547
|
}
|
|
31889
|
-
|
|
33548
|
+
|
|
33549
|
+
[data-pont2-member-management-header] {
|
|
33550
|
+
display: grid;
|
|
33551
|
+
gap: 0.25rem;
|
|
33552
|
+
}
|
|
33553
|
+
|
|
33554
|
+
[data-pont2-member-management-title] {
|
|
31890
33555
|
margin: 0;
|
|
31891
|
-
|
|
31892
|
-
font-
|
|
31893
|
-
line-height:
|
|
33556
|
+
font-size: var(--pont2-sem-text-xl);
|
|
33557
|
+
font-weight: var(--pont2-sem-font-weight-semibold);
|
|
33558
|
+
line-height: 1.3;
|
|
31894
33559
|
}
|
|
31895
|
-
|
|
31896
|
-
|
|
31897
|
-
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
31898
|
-
gap: 0.5rem 1rem;
|
|
33560
|
+
|
|
33561
|
+
[data-pont2-member-management-subtitle] {
|
|
31899
33562
|
margin: 0;
|
|
31900
|
-
padding: 0.75rem 1rem;
|
|
31901
|
-
list-style: none;
|
|
31902
|
-
border-radius: var(--_pont2-recovery-codes-list-radius);
|
|
31903
|
-
background-color: var(--_pont2-recovery-codes-list-bg);
|
|
31904
|
-
font-family: var(--pont2-sem-font-code);
|
|
31905
33563
|
font-size: var(--pont2-sem-text-sm);
|
|
31906
|
-
|
|
31907
|
-
text-align: center;
|
|
33564
|
+
color: var(--pont2-sem-color-muted-foreground);
|
|
31908
33565
|
}
|
|
31909
|
-
|
|
33566
|
+
|
|
33567
|
+
[data-pont2-member-management-tabs] {
|
|
33568
|
+
gap: 1rem;
|
|
33569
|
+
}
|
|
33570
|
+
|
|
33571
|
+
[data-pont2-member-management-bar] {
|
|
33572
|
+
display: flex;
|
|
33573
|
+
flex-wrap: wrap-reverse;
|
|
33574
|
+
align-items: center;
|
|
33575
|
+
justify-content: space-between;
|
|
33576
|
+
gap: 0.75rem;
|
|
33577
|
+
}
|
|
33578
|
+
|
|
33579
|
+
[data-pont2-member-management-panel] {
|
|
33580
|
+
display: flex;
|
|
33581
|
+
flex-direction: column;
|
|
33582
|
+
gap: 1rem;
|
|
33583
|
+
min-inline-size: 0;
|
|
33584
|
+
}
|
|
33585
|
+
|
|
33586
|
+
[data-pont2-member-management-panel][data-hidden] {
|
|
33587
|
+
display: none;
|
|
33588
|
+
}
|
|
33589
|
+
|
|
33590
|
+
[data-pont2-member-management-toolbar] {
|
|
31910
33591
|
display: flex;
|
|
33592
|
+
flex-wrap: wrap;
|
|
33593
|
+
align-items: center;
|
|
31911
33594
|
gap: 0.5rem;
|
|
31912
33595
|
}
|
|
31913
|
-
|
|
31914
|
-
|
|
33596
|
+
|
|
33597
|
+
[data-pont2-member-management-search] {
|
|
33598
|
+
flex: 1 1 14rem;
|
|
33599
|
+
max-inline-size: 22rem;
|
|
31915
33600
|
}
|
|
31916
|
-
|
|
31917
|
-
|
|
31918
|
-
|
|
33601
|
+
|
|
33602
|
+
[data-pont2-member-management-person] {
|
|
33603
|
+
display: flex;
|
|
33604
|
+
align-items: center;
|
|
33605
|
+
gap: 0.625rem;
|
|
33606
|
+
min-inline-size: 0;
|
|
33607
|
+
}
|
|
33608
|
+
|
|
33609
|
+
[data-pont2-member-management-person-text] {
|
|
33610
|
+
display: grid;
|
|
33611
|
+
min-inline-size: 0;
|
|
33612
|
+
line-height: 1.25;
|
|
33613
|
+
}
|
|
33614
|
+
|
|
33615
|
+
[data-pont2-member-management-person-name] {
|
|
33616
|
+
overflow: hidden;
|
|
33617
|
+
text-overflow: ellipsis;
|
|
33618
|
+
white-space: nowrap;
|
|
33619
|
+
font-weight: var(--pont2-sem-font-weight-medium);
|
|
33620
|
+
}
|
|
33621
|
+
|
|
33622
|
+
[data-pont2-member-management-person-email] {
|
|
33623
|
+
overflow: hidden;
|
|
33624
|
+
text-overflow: ellipsis;
|
|
33625
|
+
white-space: nowrap;
|
|
31919
33626
|
font-size: var(--pont2-sem-text-xs);
|
|
31920
|
-
|
|
31921
|
-
text-align: center;
|
|
33627
|
+
color: var(--pont2-sem-color-muted-foreground);
|
|
31922
33628
|
}
|
|
31923
|
-
}
|
|
31924
33629
|
|
|
31925
|
-
|
|
31926
|
-
/* <pont2-scope-list>: one checkbox row per scope (shadcn's checkbox + label row: "flex items-center gap-3"). */
|
|
31927
|
-
@layer pont2.kit {
|
|
31928
|
-
:is(pont2-scope-list, [data-pont2-scope-list]) {
|
|
33630
|
+
[data-pont2-member-management-roles] {
|
|
31929
33631
|
display: flex;
|
|
31930
|
-
flex-
|
|
31931
|
-
gap: 0.
|
|
33632
|
+
flex-wrap: wrap;
|
|
33633
|
+
gap: 0.25rem;
|
|
31932
33634
|
}
|
|
31933
|
-
|
|
33635
|
+
|
|
33636
|
+
[data-pont2-member-management-date] {
|
|
33637
|
+
display: grid;
|
|
33638
|
+
line-height: 1.25;
|
|
33639
|
+
}
|
|
33640
|
+
|
|
33641
|
+
[data-pont2-member-management-time] {
|
|
33642
|
+
font-size: var(--pont2-sem-text-xs);
|
|
33643
|
+
color: var(--pont2-sem-color-muted-foreground);
|
|
33644
|
+
}
|
|
33645
|
+
|
|
33646
|
+
[data-pont2-member-management-pager] {
|
|
31934
33647
|
display: flex;
|
|
33648
|
+
flex-wrap: wrap;
|
|
31935
33649
|
align-items: center;
|
|
31936
|
-
|
|
33650
|
+
justify-content: space-between;
|
|
33651
|
+
gap: 0.75rem 1.5rem;
|
|
31937
33652
|
font-size: var(--pont2-sem-text-sm);
|
|
31938
|
-
line-height: var(--pont2-sem-text-sm--line-height);
|
|
31939
|
-
cursor: pointer;
|
|
31940
33653
|
}
|
|
31941
|
-
|
|
31942
|
-
[data-pont2-
|
|
31943
|
-
|
|
33654
|
+
|
|
33655
|
+
[data-pont2-member-management-range] {
|
|
33656
|
+
color: var(--pont2-sem-color-muted-foreground);
|
|
33657
|
+
font-variant-numeric: tabular-nums;
|
|
31944
33658
|
}
|
|
31945
|
-
|
|
31946
|
-
|
|
33659
|
+
|
|
33660
|
+
[data-pont2-member-management-size] {
|
|
33661
|
+
display: inline-flex;
|
|
33662
|
+
align-items: center;
|
|
33663
|
+
gap: 0.5rem;
|
|
33664
|
+
color: var(--pont2-sem-color-muted-foreground);
|
|
31947
33665
|
}
|
|
31948
|
-
}
|
|
31949
33666
|
|
|
31950
|
-
|
|
31951
|
-
|
|
31952
|
-
|
|
31953
|
-
* (the screen's block is the visible shell); a pending request is signalled by
|
|
31954
|
-
* aria-busy on the form, which the elements' own busy states already show.
|
|
31955
|
-
*/
|
|
31956
|
-
@layer pont2.kit {
|
|
31957
|
-
:is(pont2-layout, [data-pont2-layout]) {
|
|
31958
|
-
display: block;
|
|
31959
|
-
width: 100%;
|
|
33667
|
+
[data-pont2-member-management-pager] > :is(pont2-pagination, [data-pont2-pagination]) {
|
|
33668
|
+
margin-inline: 0;
|
|
33669
|
+
inline-size: auto;
|
|
31960
33670
|
}
|
|
31961
|
-
|
|
31962
|
-
|
|
33671
|
+
|
|
33672
|
+
[data-pont2-member-management-problem] {
|
|
33673
|
+
display: flex;
|
|
33674
|
+
flex-direction: column;
|
|
33675
|
+
align-items: flex-start;
|
|
33676
|
+
gap: 1rem;
|
|
31963
33677
|
}
|
|
31964
|
-
|
|
31965
|
-
[data-pont2-
|
|
31966
|
-
|
|
33678
|
+
|
|
33679
|
+
[data-pont2-member-management-loading] {
|
|
33680
|
+
display: flex;
|
|
33681
|
+
justify-content: center;
|
|
33682
|
+
padding-block: 2.5rem;
|
|
31967
33683
|
}
|
|
31968
|
-
}
|
|
31969
33684
|
|
|
31970
|
-
|
|
31971
|
-
|
|
31972
|
-
|
|
31973
|
-
:is(pont2-consent, [data-pont2-consent]) {
|
|
31974
|
-
display: block;
|
|
31975
|
-
width: 100%;
|
|
33685
|
+
[data-pont2-member-management-loading] > :is(pont2-prim-spinner, [data-pont2-spinner]) {
|
|
33686
|
+
inline-size: 1.5rem;
|
|
33687
|
+
block-size: 1.5rem;
|
|
31976
33688
|
}
|
|
31977
|
-
|
|
33689
|
+
|
|
33690
|
+
[data-pont2-member-management-form] {
|
|
31978
33691
|
display: grid;
|
|
31979
|
-
|
|
31980
|
-
|
|
33692
|
+
gap: 1.25rem;
|
|
33693
|
+
}
|
|
33694
|
+
|
|
33695
|
+
[data-pont2-member-management-who] {
|
|
33696
|
+
display: grid;
|
|
33697
|
+
gap: 0.25rem;
|
|
33698
|
+
margin: 0;
|
|
33699
|
+
}
|
|
33700
|
+
|
|
33701
|
+
[data-pont2-member-management-who] dt {
|
|
33702
|
+
font-size: var(--pont2-sem-text-sm);
|
|
33703
|
+
font-weight: var(--pont2-sem-font-weight-medium);
|
|
33704
|
+
}
|
|
33705
|
+
|
|
33706
|
+
[data-pont2-member-management-who] dd {
|
|
33707
|
+
margin: 0;
|
|
31981
33708
|
color: var(--pont2-sem-color-muted-foreground);
|
|
33709
|
+
overflow-wrap: anywhere;
|
|
31982
33710
|
}
|
|
31983
|
-
}
|
|
31984
33711
|
|
|
31985
|
-
|
|
31986
|
-
/* <pont2-signin> / <pont2-signup> / <pont2-invitation>: a block-level host; a centred spinner until the first screen. */
|
|
31987
|
-
@layer pont2.kit {
|
|
31988
|
-
:is(pont2-signin, pont2-signup, pont2-invitation, [data-pont2-flow-widget]) {
|
|
33712
|
+
[data-pont2-member-management-subject] {
|
|
31989
33713
|
display: block;
|
|
31990
|
-
|
|
33714
|
+
margin-block: 0.5rem;
|
|
33715
|
+
color: var(--pont2-sem-color-foreground);
|
|
33716
|
+
overflow-wrap: anywhere;
|
|
31991
33717
|
}
|
|
31992
|
-
|
|
31993
|
-
|
|
31994
|
-
|
|
31995
|
-
|
|
31996
|
-
|
|
33718
|
+
|
|
33719
|
+
[data-pont2-member-management-warning] {
|
|
33720
|
+
display: block;
|
|
33721
|
+
}
|
|
33722
|
+
|
|
33723
|
+
[data-pont2-member-management-footer] {
|
|
33724
|
+
display: flex;
|
|
33725
|
+
justify-content: flex-end;
|
|
31997
33726
|
}
|
|
31998
33727
|
}
|