@pontive/pontkit-core 1.34.1 → 1.36.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/pont2/core/attrs.d.ts +7 -0
- package/dist/pont2/core/design-mode.d.ts +37 -0
- package/dist/pont2/core/index.d.ts +3 -0
- package/dist/pont2/core/messages.d.ts +71 -0
- package/dist/pont2/core/url.d.ts +19 -0
- package/dist/pont2/index.mjs +1841 -1513
- package/dist/pont2/index.mjs.map +1 -1
- package/dist/pont2/kit/auth-button/auth-button.d.ts +5 -0
- package/dist/pont2/kit/auth-field/auth-field.d.ts +12 -2
- package/dist/pont2/kit/auth-field/password-field.d.ts +4 -1
- package/dist/pont2/kit/consent/consent-api.d.ts +53 -0
- package/dist/pont2/kit/consent/consent.d.ts +83 -0
- package/dist/pont2/kit/container/container.d.ts +3 -0
- package/dist/pont2/kit/countdown/countdown.d.ts +2 -2
- package/dist/pont2/kit/flow-widget/flow-widget.d.ts +37 -6
- package/dist/pont2/kit/index.d.ts +1 -0
- package/dist/pont2/kit/layout/flow-error.d.ts +24 -1
- package/dist/pont2/kit/layout/layout.d.ts +31 -3
- package/dist/pont2/kit/link/link.d.ts +43 -4
- package/dist/pont2/kit/logo/logo.d.ts +3 -0
- package/dist/pont2/kit/provider-field/provider-field.d.ts +10 -1
- package/dist/pont2/migration/legacy-markup.d.ts +36 -0
- package/dist/pont2/styles.css +61 -2
- package/package.json +1 -1
package/dist/pont2/styles.css
CHANGED
|
@@ -5776,6 +5776,11 @@ layer(pont2.tokens);
|
|
|
5776
5776
|
}
|
|
5777
5777
|
|
|
5778
5778
|
/* Recipe */
|
|
5779
|
+
/* An href that is not http(s) renders nothing; the row goes with it. */
|
|
5780
|
+
:is(pont2-link, [data-pont2-link])[data-invalid-href] {
|
|
5781
|
+
display: none;
|
|
5782
|
+
}
|
|
5783
|
+
|
|
5779
5784
|
:is(pont2-link, [data-pont2-link]) {
|
|
5780
5785
|
display: flex;
|
|
5781
5786
|
flex-wrap: wrap;
|
|
@@ -5928,6 +5933,17 @@ layer(pont2.tokens);
|
|
|
5928
5933
|
:is([data-pont2-title], [data-pont2-subtitle])[data-align="end"] {
|
|
5929
5934
|
text-align: end;
|
|
5930
5935
|
}
|
|
5936
|
+
/*
|
|
5937
|
+
* In a flex_row container the cross axis is vertical: stretching there would
|
|
5938
|
+
* change the element's height, not its width. The row keeps its own
|
|
5939
|
+
* alignment, and `align` only aligns the lines (the legacy kit's rule,
|
|
5940
|
+
* carry-over §9).
|
|
5941
|
+
*/
|
|
5942
|
+
[data-pont2-container][data-type="flex_row"]
|
|
5943
|
+
> :is(pont2-title, pont2-subtitle)
|
|
5944
|
+
> :is([data-pont2-title], [data-pont2-subtitle]):not([data-align="auto"]) {
|
|
5945
|
+
align-self: auto;
|
|
5946
|
+
}
|
|
5931
5947
|
}
|
|
5932
5948
|
|
|
5933
5949
|
/* ../kit/provider-field/provider-field.css */
|
|
@@ -6168,6 +6184,34 @@ layer(pont2.tokens);
|
|
|
6168
6184
|
[data-pont2-container][data-justify="between"] {
|
|
6169
6185
|
justify-content: space-between;
|
|
6170
6186
|
}
|
|
6187
|
+
|
|
6188
|
+
/*
|
|
6189
|
+
* Design mode (the designer's canvas only; core/design-mode.ts). An outline takes no space, so
|
|
6190
|
+
* showing the container doesn't reflow what the author is arranging. The inset does reflow, on
|
|
6191
|
+
* purpose: without it a nested container's outline lands on its parent's and the parent has no
|
|
6192
|
+
* surface left to click or drop onto. Served screens never get these attributes.
|
|
6193
|
+
*/
|
|
6194
|
+
[data-pont2-container][data-design] {
|
|
6195
|
+
outline: 1px dotted color-mix(in oklab, var(--pont2-sem-color-foreground) 35%, transparent);
|
|
6196
|
+
outline-offset: -1px;
|
|
6197
|
+
padding: 0.5rem;
|
|
6198
|
+
}
|
|
6199
|
+
[data-pont2-container][data-design-empty] {
|
|
6200
|
+
position: relative;
|
|
6201
|
+
min-height: 3.5rem;
|
|
6202
|
+
}
|
|
6203
|
+
/* Generated content: never part of the authored tree, never a drop target. */
|
|
6204
|
+
[data-pont2-container][data-design-empty]::after {
|
|
6205
|
+
content: "Container";
|
|
6206
|
+
position: absolute;
|
|
6207
|
+
inset: 0;
|
|
6208
|
+
display: flex;
|
|
6209
|
+
align-items: center;
|
|
6210
|
+
justify-content: center;
|
|
6211
|
+
color: var(--pont2-sem-color-muted-foreground);
|
|
6212
|
+
font-size: var(--pont2-sem-text-sm);
|
|
6213
|
+
pointer-events: none;
|
|
6214
|
+
}
|
|
6171
6215
|
}
|
|
6172
6216
|
|
|
6173
6217
|
/* ../kit/header/header.css */
|
|
@@ -6474,10 +6518,25 @@ layer(pont2.tokens);
|
|
|
6474
6518
|
}
|
|
6475
6519
|
}
|
|
6476
6520
|
|
|
6521
|
+
/* ../kit/consent/consent.css */
|
|
6522
|
+
/* <pont2-consent>: a block-level host; a centred spinner until the screen loads (as the flow widgets). */
|
|
6523
|
+
@layer pont2.kit {
|
|
6524
|
+
:is(pont2-consent, [data-pont2-consent]) {
|
|
6525
|
+
display: block;
|
|
6526
|
+
width: 100%;
|
|
6527
|
+
}
|
|
6528
|
+
[data-pont2-consent] > [data-slot="flow-widget-loading"] {
|
|
6529
|
+
display: grid;
|
|
6530
|
+
place-items: center;
|
|
6531
|
+
min-height: 12rem;
|
|
6532
|
+
color: var(--pont2-sem-color-muted-foreground);
|
|
6533
|
+
}
|
|
6534
|
+
}
|
|
6535
|
+
|
|
6477
6536
|
/* ../kit/flow-widget/flow-widget.css */
|
|
6478
|
-
/* <pont2-signin> / <pont2-signup>: a block-level host; a centred spinner until the first screen. */
|
|
6537
|
+
/* <pont2-signin> / <pont2-signup> / <pont2-invitation>: a block-level host; a centred spinner until the first screen. */
|
|
6479
6538
|
@layer pont2.kit {
|
|
6480
|
-
:is(pont2-signin, pont2-signup, [data-pont2-flow-widget]) {
|
|
6539
|
+
:is(pont2-signin, pont2-signup, pont2-invitation, [data-pont2-flow-widget]) {
|
|
6481
6540
|
display: block;
|
|
6482
6541
|
width: 100%;
|
|
6483
6542
|
}
|