@pontive/pontkit-core 1.27.0 → 1.28.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.
Files changed (41) hide show
  1. package/catalog.json +1 -1
  2. package/custom-elements.json +1 -1
  3. package/dist/pont2/core/controllers/action.d.ts +79 -0
  4. package/dist/pont2/core/controllers/copy.d.ts +34 -0
  5. package/dist/pont2/core/icons.d.ts +24 -16
  6. package/dist/pont2/core/index.d.ts +2 -0
  7. package/dist/pont2/index.mjs +3349 -1494
  8. package/dist/pont2/index.mjs.map +1 -1
  9. package/dist/pont2/kit/auth-button/auth-button.d.ts +185 -0
  10. package/dist/pont2/kit/auth-button/providers.d.ts +15 -0
  11. package/dist/pont2/kit/auth-field/auth-field.d.ts +267 -0
  12. package/dist/pont2/kit/auth-field/password-field.d.ts +124 -0
  13. package/dist/pont2/kit/block/block.d.ts +64 -0
  14. package/dist/pont2/kit/block/branding.d.ts +36 -0
  15. package/dist/pont2/kit/container/container.d.ts +40 -0
  16. package/dist/pont2/kit/countdown/countdown.d.ts +64 -0
  17. package/dist/pont2/kit/divider/divider.d.ts +30 -0
  18. package/dist/pont2/kit/edit-identifier/edit-identifier.d.ts +47 -0
  19. package/dist/pont2/kit/flow-widget/flow-widget.d.ts +151 -0
  20. package/dist/pont2/kit/gap/gap.d.ts +36 -0
  21. package/dist/pont2/kit/header/header.d.ts +37 -0
  22. package/dist/pont2/kit/index.d.ts +23 -0
  23. package/dist/pont2/kit/input-otp/input-otp.d.ts +7 -0
  24. package/dist/pont2/kit/layout/flow-error.d.ts +21 -0
  25. package/dist/pont2/kit/layout/layout.d.ts +120 -0
  26. package/dist/pont2/kit/link/link.d.ts +62 -0
  27. package/dist/pont2/kit/logo/logo.d.ts +57 -0
  28. package/dist/pont2/kit/otp-field/otp-field.d.ts +93 -0
  29. package/dist/pont2/kit/otp-field/otp-resend.d.ts +61 -0
  30. package/dist/pont2/kit/provider-field/provider-field.d.ts +87 -0
  31. package/dist/pont2/kit/qr-code/qr-code.d.ts +86 -0
  32. package/dist/pont2/kit/recovery-codes/recovery-codes.d.ts +64 -0
  33. package/dist/pont2/kit/scope-list/scope-list.d.ts +69 -0
  34. package/dist/pont2/kit/scope-list/scope-value.d.ts +16 -0
  35. package/dist/pont2/kit/secret/secret.d.ts +67 -0
  36. package/dist/pont2/kit/story-helpers.d.ts +9 -0
  37. package/dist/pont2/kit/typography/typography.d.ts +70 -0
  38. package/dist/pont2/kit/watermark/pontive-logo.d.ts +8 -0
  39. package/dist/pont2/kit/watermark/watermark.d.ts +42 -0
  40. package/dist/pont2/styles.css +702 -0
  41. package/package.json +1 -1
@@ -89,9 +89,15 @@
89
89
  --pont2-text-base--line-height: calc(1.5 / 1);
90
90
  --pont2-text-lg: 1.125rem;
91
91
  --pont2-text-lg--line-height: calc(1.75 / 1.125);
92
+ --pont2-text-xl: 1.25rem;
93
+ --pont2-text-xl--line-height: calc(1.75 / 1.25);
94
+ --pont2-text-2xl: 1.5rem;
95
+ --pont2-text-2xl--line-height: calc(2 / 1.5);
92
96
  --pont2-font-weight-normal: 400;
93
97
  --pont2-font-weight-medium: 500;
94
98
  --pont2-font-weight-semibold: 600;
99
+ --pont2-font-weight-bold: 700;
100
+ --pont2-tracking-tight: -0.025em;
95
101
  --pont2-leading-snug: 1.375;
96
102
  --pont2-leading-normal: 1.5;
97
103
 
@@ -4135,3 +4141,699 @@
4135
4141
  min-height: 2.25rem;
4136
4142
  }
4137
4143
  }
4144
+
4145
+ /* ../kit/auth-button/auth-button.css */
4146
+ /*
4147
+ * Auth buttons (kit composites). All visual styling is the button primitive's
4148
+ * recipe (primitives/button/button.css) on the native <button>, including
4149
+ * shadcn's icon spacing (`has-data-[icon=inline-start]`) and the icon sizes.
4150
+ * The busy spinner is the spinner primitive's part.
4151
+ *
4152
+ * Added here:
4153
+ * - before upgrade the shell is empty, so it reserves a default button's
4154
+ * height (h-9) to avoid a layout shift;
4155
+ * - brand marks keep their shape at any button size.
4156
+ */
4157
+ @layer pont2.kit {
4158
+ :is(pont2-provider-button, pont2-passkey-button, pont2-submit-button):not([data-pont2-shell]) {
4159
+ display: inline-block;
4160
+ min-height: 2.25rem;
4161
+ }
4162
+
4163
+ [data-pont2-button] > svg[data-provider-icon] {
4164
+ flex-shrink: 0;
4165
+ }
4166
+
4167
+ /* The busy spinner is decorative (the button carries aria-busy). */
4168
+ [data-pont2-button] > [data-pont2-spinner][aria-hidden="true"] {
4169
+ flex-shrink: 0;
4170
+ }
4171
+ }
4172
+
4173
+ /* ../kit/auth-field/auth-field.css */
4174
+ /*
4175
+ * Auth fields (kit composites). The field, label, input, input-group,
4176
+ * description and error recipes are the primitives'; the field host matches
4177
+ * them through [data-pont2-field], the parts through their identity
4178
+ * attributes. Added here:
4179
+ */
4180
+ @layer pont2.kit {
4181
+ /* Before upgrade the composite is empty: reserve label + gap + input (h-9),
4182
+ so a server-rendered screen does not jump. */
4183
+ :is(pont2-email-field, pont2-phone-field, pont2-username-field, pont2-name-field, pont2-identifier-field,
4184
+ pont2-password-field, pont2-confirm-field):not([data-pont2-field]) {
4185
+ display: block;
4186
+ min-height: 4rem;
4187
+ }
4188
+
4189
+ /* `mark` / required caret after the label text. */
4190
+ [data-pont2-field-label] > [data-slot="field-mark"] {
4191
+ color: var(--pont2-muted-foreground);
4192
+ font-weight: var(--pont2-font-weight-normal, 400);
4193
+ }
4194
+
4195
+ /* Password: label + "Forgot your password?" on one row, as in shadcn's login blocks
4196
+ ("flex items-center" + the link's "ml-auto text-sm underline-offset-4 hover:underline"). */
4197
+ [data-pont2-auth-field-label-row] {
4198
+ display: flex;
4199
+ align-items: center;
4200
+ gap: 0.5rem;
4201
+ }
4202
+ [data-pont2-auth-field-label-row] > [data-slot="field-forgot"] {
4203
+ margin-left: auto;
4204
+ height: auto;
4205
+ padding: 0;
4206
+ font-weight: var(--pont2-font-weight-normal, 400);
4207
+ }
4208
+ }
4209
+
4210
+ /* ../kit/otp-field/otp-field.css */
4211
+ /*
4212
+ * OTP field and resend (kit composites). The field, label, Input OTP and
4213
+ * error styling are the primitives' recipes. Added here:
4214
+ */
4215
+ @layer pont2.kit {
4216
+ /* Before upgrade: reserve the slot row (h-9) so the screen does not jump. */
4217
+ pont2-otp-field:not([data-pont2-field]) {
4218
+ display: block;
4219
+ min-height: 2.25rem;
4220
+ }
4221
+
4222
+ /* Auto-submit pending: the code is being checked. */
4223
+ pont2-otp-field [data-pont2-input-otp][aria-busy="true"] {
4224
+ opacity: 0.6;
4225
+ pointer-events: none;
4226
+ }
4227
+
4228
+ /* Resend row: "Resend code in 42s" / the link, centred, small muted text. */
4229
+ :is(pont2-otp-resend, [data-pont2-otp-resend]) {
4230
+ display: flex;
4231
+ justify-content: center;
4232
+ align-items: center;
4233
+ min-height: 1.25rem;
4234
+ color: var(--pont2-muted-foreground);
4235
+ font-size: var(--pont2-text-sm);
4236
+ line-height: var(--pont2-text-sm--line-height);
4237
+ }
4238
+ [data-pont2-otp-resend] > [data-slot="otp-resend-button"] {
4239
+ height: auto;
4240
+ padding: 0;
4241
+ color: inherit;
4242
+ font-size: inherit;
4243
+ line-height: inherit;
4244
+ font-weight: inherit;
4245
+ text-decoration-line: underline;
4246
+ text-underline-offset: 4px;
4247
+ }
4248
+ [data-pont2-otp-resend] > [data-slot="otp-resend-button"]:hover {
4249
+ color: var(--pont2-primary);
4250
+ }
4251
+ }
4252
+
4253
+ /* ../kit/link/link.css */
4254
+ /*
4255
+ * <pont2-link>. shadcn's login blocks: "text-center text-sm" on the row and
4256
+ * "underline underline-offset-4" on the link. The link itself is the button
4257
+ * primitive's `link` variant; here it is sized as inline text.
4258
+ */
4259
+ @layer pont2.kit {
4260
+ :is(pont2-link, [data-pont2-link]) {
4261
+ display: flex;
4262
+ flex-wrap: wrap;
4263
+ align-items: baseline;
4264
+ justify-content: center;
4265
+ column-gap: 0.25rem;
4266
+ color: var(--pont2-muted-foreground);
4267
+ font-size: var(--pont2-text-sm);
4268
+ line-height: var(--pont2-text-sm--line-height);
4269
+ }
4270
+ [data-pont2-link][data-align="start"] {
4271
+ justify-content: flex-start;
4272
+ }
4273
+ [data-pont2-link][data-align="end"] {
4274
+ justify-content: flex-end;
4275
+ }
4276
+ [data-pont2-link] > [data-slot="link-button"] {
4277
+ height: auto;
4278
+ padding: 0;
4279
+ color: inherit;
4280
+ font-size: inherit;
4281
+ line-height: inherit;
4282
+ font-weight: inherit;
4283
+ text-decoration-line: underline;
4284
+ text-underline-offset: 4px;
4285
+ }
4286
+ [data-pont2-link] > [data-slot="link-button"]:hover {
4287
+ color: var(--pont2-primary);
4288
+ }
4289
+ }
4290
+
4291
+ /* ../kit/divider/divider.css */
4292
+ /*
4293
+ * <pont2-divider>. Styled entirely by the FieldSeparator recipe through
4294
+ * [data-pont2-field-separator]. Added here: before upgrade the composite is
4295
+ * empty, so it reserves the separator's height (h-5).
4296
+ */
4297
+ @layer pont2.kit {
4298
+ pont2-divider:not([data-pont2-field-separator]) {
4299
+ display: block;
4300
+ height: 1.25rem;
4301
+ }
4302
+ }
4303
+
4304
+ /* ../kit/typography/typography.css */
4305
+ /*
4306
+ * <pont2-title> / <pont2-subtitle>: Tier 3 shells around a native <h1>–<h4> / <p>.
4307
+ *
4308
+ * Sizes follow shadcn's auth blocks (login-03/04: `<h1 class="text-2xl
4309
+ * font-bold">` + `<p class="text-muted-foreground text-balance">`); levels 2–4
4310
+ * step down. Margins are reset: spacing belongs to the layout (gap).
4311
+ */
4312
+ @layer pont2.kit {
4313
+ [data-pont2-title] {
4314
+ margin: 0;
4315
+ color: var(--pont2-foreground);
4316
+ font-weight: var(--pont2-font-weight-semibold);
4317
+ letter-spacing: var(--pont2-tracking-tight);
4318
+ text-wrap: balance;
4319
+ }
4320
+ [data-pont2-title][data-level="1"] {
4321
+ font-size: var(--pont2-text-2xl);
4322
+ line-height: var(--pont2-text-2xl--line-height);
4323
+ font-weight: var(--pont2-font-weight-bold);
4324
+ }
4325
+ [data-pont2-title][data-level="2"] {
4326
+ font-size: var(--pont2-text-xl);
4327
+ line-height: var(--pont2-text-xl--line-height);
4328
+ }
4329
+ [data-pont2-title][data-level="3"] {
4330
+ font-size: var(--pont2-text-lg);
4331
+ line-height: var(--pont2-text-lg--line-height);
4332
+ }
4333
+ [data-pont2-title][data-level="4"] {
4334
+ font-size: var(--pont2-text-base);
4335
+ line-height: var(--pont2-text-base--line-height);
4336
+ }
4337
+
4338
+ [data-pont2-subtitle] {
4339
+ margin: 0;
4340
+ color: var(--pont2-muted-foreground);
4341
+ font-size: var(--pont2-text-sm);
4342
+ line-height: var(--pont2-text-sm--line-height);
4343
+ text-wrap: balance;
4344
+ }
4345
+
4346
+ /*
4347
+ * align: `auto` inherits the parent's alignment. An explicit value makes the
4348
+ * element span its parent's inline axis (stretch works in flex and grid
4349
+ * parents, and a block already spans) and aligns the lines inside it, the
4350
+ * legacy kit's approach.
4351
+ */
4352
+ :is([data-pont2-title], [data-pont2-subtitle]):not([data-align="auto"]) {
4353
+ align-self: stretch;
4354
+ justify-self: stretch;
4355
+ }
4356
+ :is([data-pont2-title], [data-pont2-subtitle])[data-align="start"] {
4357
+ text-align: start;
4358
+ }
4359
+ :is([data-pont2-title], [data-pont2-subtitle])[data-align="center"] {
4360
+ text-align: center;
4361
+ }
4362
+ :is([data-pont2-title], [data-pont2-subtitle])[data-align="end"] {
4363
+ text-align: end;
4364
+ }
4365
+ }
4366
+
4367
+ /* ../kit/provider-field/provider-field.css */
4368
+ /*
4369
+ * <pont2-provider-field>: the legacy 12-column grid (provider-field.css in the
4370
+ * legacy kit), on the Field host. The provider buttons' hosts are
4371
+ * `display: contents`, so the grid items are their native buttons, which
4372
+ * stretch to fill their cells (shadcn's login blocks: `w-full`).
4373
+ */
4374
+ @layer pont2.kit {
4375
+ pont2-provider-field {
4376
+ display: grid;
4377
+ grid-template-columns: repeat(12, minmax(0, 1fr));
4378
+ }
4379
+ pont2-provider-field > pont2-provider-button > [data-pont2-button] {
4380
+ grid-column: span 12 / span 12;
4381
+ width: 100%;
4382
+ }
4383
+ pont2-provider-field[data-columns$="three"] > pont2-provider-button > [data-pont2-button] {
4384
+ grid-column: span 4 / span 4;
4385
+ }
4386
+ pont2-provider-field[data-columns$="four"] > pont2-provider-button > [data-pont2-button] {
4387
+ grid-column: span 3 / span 3;
4388
+ }
4389
+ pont2-provider-field[data-columns^="two-"] > pont2-provider-button:nth-child(-n + 2) > [data-pont2-button] {
4390
+ grid-column: span 6 / span 6;
4391
+ }
4392
+ pont2-provider-field[data-columns^="three-"] > pont2-provider-button:nth-child(-n + 3) > [data-pont2-button] {
4393
+ grid-column: span 4 / span 4;
4394
+ }
4395
+
4396
+ /* Before upgrade the composite is empty: reserve one row of buttons (h-9). */
4397
+ pont2-provider-field:not([data-pont2-field]) {
4398
+ display: block;
4399
+ min-height: 2.25rem;
4400
+ }
4401
+ }
4402
+
4403
+ /* ../kit/block/block.css */
4404
+ /*
4405
+ * <pont2-block>: the screen shell. A Card (the primitive recipe styles the
4406
+ * host through [data-pont2-card]) whose content sits directly in the host:
4407
+ * CardContent's inline padding (`px-(--card-spacing)`) is moved onto the host,
4408
+ * and the watermark footer bleeds back to the card's edges.
4409
+ *
4410
+ * Responsive like the legacy block: full-bleed and at least viewport-tall on
4411
+ * narrow screens; a centred card of `--pont2-block-width` from 40rem up.
4412
+ */
4413
+ @layer pont2.kit {
4414
+ pont2-block {
4415
+ display: flex;
4416
+ flex-direction: column;
4417
+ gap: var(--pont2-block-gap, 1rem);
4418
+ width: 100%;
4419
+ max-width: var(--pont2-block-width, 24rem);
4420
+ margin-inline: auto;
4421
+ padding-inline: var(--pont2-card-spacing);
4422
+ }
4423
+ pont2-block[data-align="stretch"] {
4424
+ align-items: stretch;
4425
+ }
4426
+ pont2-block[data-align="start"] {
4427
+ align-items: flex-start;
4428
+ }
4429
+ pont2-block[data-align="center"] {
4430
+ align-items: center;
4431
+ }
4432
+ pont2-block[data-align="end"] {
4433
+ align-items: flex-end;
4434
+ }
4435
+ pont2-block[data-justify="center"] {
4436
+ justify-content: center;
4437
+ }
4438
+ pont2-block[data-justify="end"] {
4439
+ justify-content: flex-end;
4440
+ }
4441
+
4442
+ @media (width < 40rem) {
4443
+ pont2-block {
4444
+ max-width: none;
4445
+ min-height: 100svh;
4446
+ border-radius: 0;
4447
+ }
4448
+ }
4449
+
4450
+ /* The watermark footer: full width, muted band, closes the card. */
4451
+ pont2-block > [data-block-footer] {
4452
+ align-self: stretch;
4453
+ justify-content: center;
4454
+ margin-inline: calc(-1 * var(--pont2-card-spacing));
4455
+ margin-bottom: calc(-1 * var(--pont2-card-spacing));
4456
+ padding-block: 0.75rem;
4457
+ background-color: color-mix(in oklab, var(--pont2-muted) 50%, transparent);
4458
+ }
4459
+
4460
+ /* Before upgrade: the card look comes from the tag-less recipe only after
4461
+ upgrade, so give the shell its width now to avoid a jump. */
4462
+ pont2-block:not([data-pont2-card]) {
4463
+ display: block;
4464
+ width: 100%;
4465
+ max-width: var(--pont2-block-width, 24rem);
4466
+ margin-inline: auto;
4467
+ }
4468
+ }
4469
+
4470
+ /* ../kit/watermark/watermark.css */
4471
+ /*
4472
+ * <pont2-watermark> (and the block footer's watermark part): "Powered by [Pontive]".
4473
+ * The legacy variables, in plain values: gap 1.5 (0.375rem), xs-sm text,
4474
+ * a 0.875rem-tall logo; the mark in Pontive indigo for `brand`.
4475
+ */
4476
+ @layer pont2.kit {
4477
+ :is(pont2-watermark, [data-pont2-watermark]) {
4478
+ display: inline-flex;
4479
+ flex-shrink: 0;
4480
+ align-items: center;
4481
+ gap: 0.375rem;
4482
+ color: currentColor;
4483
+ font-size: 0.8125rem;
4484
+ line-height: 1;
4485
+ --_pont2-watermark-mark: #6366f1;
4486
+ }
4487
+ [data-pont2-watermark][data-variant="theme"] {
4488
+ --_pont2-watermark-mark: currentColor;
4489
+ }
4490
+ [data-pont2-watermark][data-variant="muted"] {
4491
+ color: var(--pont2-muted-foreground);
4492
+ --_pont2-watermark-mark: var(--pont2-muted-foreground);
4493
+ }
4494
+ [data-pont2-watermark] > [data-slot="watermark-logo"] {
4495
+ flex-shrink: 0;
4496
+ width: auto;
4497
+ height: 0.875rem;
4498
+ }
4499
+ [data-pont2-watermark] [data-logo-mark] {
4500
+ fill: var(--_pont2-watermark-mark);
4501
+ }
4502
+ [data-pont2-watermark] [data-logo-wordmark] {
4503
+ fill: currentColor;
4504
+ }
4505
+ }
4506
+
4507
+ /* ../kit/container/container.css */
4508
+ /* <pont2-container>: the host is the flex box (legacy: an inner div). */
4509
+ @layer pont2.kit {
4510
+ :is(pont2-container, [data-pont2-container]) {
4511
+ box-sizing: border-box;
4512
+ display: flex;
4513
+ flex-direction: column;
4514
+ gap: var(--pont2-container-gap, 1rem);
4515
+ width: 100%;
4516
+ }
4517
+ [data-pont2-container][data-type="flex_row"] {
4518
+ flex-direction: row;
4519
+ flex-wrap: wrap;
4520
+ }
4521
+ [data-pont2-container][data-align="start"] {
4522
+ align-items: flex-start;
4523
+ }
4524
+ [data-pont2-container][data-align="center"] {
4525
+ align-items: center;
4526
+ }
4527
+ [data-pont2-container][data-align="end"] {
4528
+ align-items: flex-end;
4529
+ }
4530
+ [data-pont2-container][data-type="flex_row"][data-align="stretch"] {
4531
+ align-items: center; /* a row's cross axis is vertical: don't stretch heights */
4532
+ }
4533
+ [data-pont2-container][data-justify="center"] {
4534
+ justify-content: center;
4535
+ }
4536
+ [data-pont2-container][data-justify="end"] {
4537
+ justify-content: flex-end;
4538
+ }
4539
+ [data-pont2-container][data-justify="between"] {
4540
+ justify-content: space-between;
4541
+ }
4542
+ }
4543
+
4544
+ /* ../kit/header/header.css */
4545
+ /*
4546
+ * <pont2-header>. shadcn's login blocks: "flex flex-col items-center gap-2 text-center".
4547
+ * `align` sets both the boxes and the text, as the legacy header does.
4548
+ */
4549
+ @layer pont2.kit {
4550
+ :is(pont2-header, [data-pont2-header]) {
4551
+ box-sizing: border-box;
4552
+ display: flex;
4553
+ flex-direction: column;
4554
+ align-items: center;
4555
+ gap: var(--pont2-header-gap, 0.5rem);
4556
+ width: 100%;
4557
+ text-align: center;
4558
+ }
4559
+ [data-pont2-header][data-align="start"] {
4560
+ align-items: flex-start;
4561
+ text-align: start;
4562
+ }
4563
+ [data-pont2-header][data-align="end"] {
4564
+ align-items: flex-end;
4565
+ text-align: end;
4566
+ }
4567
+ }
4568
+
4569
+ /* ../kit/gap/gap.css */
4570
+ /* <pont2-gap>: the host is the spacer; its size comes from --pont2-gap-size. */
4571
+ @layer pont2.kit {
4572
+ :is(pont2-gap, [data-pont2-gap]) {
4573
+ display: block;
4574
+ flex-shrink: 0;
4575
+ width: 1px;
4576
+ height: var(--pont2-gap-size, 8px);
4577
+ }
4578
+ [data-pont2-gap][data-type="horizontal"] {
4579
+ width: var(--pont2-gap-size, 8px);
4580
+ height: 1px;
4581
+ }
4582
+ }
4583
+
4584
+ /* ../kit/logo/logo.css */
4585
+ /*
4586
+ * <pont2-logo>: one or two <img>s (light / dark), aligned on the inline axis.
4587
+ * The dark image is shown under the pont2 dark-mode switches, when present.
4588
+ */
4589
+ @layer pont2.kit {
4590
+ :is(pont2-logo, [data-pont2-logo]) {
4591
+ display: flex;
4592
+ justify-content: center;
4593
+ width: 100%;
4594
+ }
4595
+ [data-pont2-logo][data-align="start"] {
4596
+ justify-content: flex-start;
4597
+ }
4598
+ [data-pont2-logo][data-align="end"] {
4599
+ justify-content: flex-end;
4600
+ }
4601
+ [data-pont2-logo] > img {
4602
+ display: block;
4603
+ max-width: 100%;
4604
+ height: auto;
4605
+ }
4606
+ [data-pont2-logo] > img[data-logo-theme="dark"] {
4607
+ display: none;
4608
+ }
4609
+ :where(.dark, [data-theme="dark"]) [data-pont2-logo] > img[data-logo-theme="light"]:has(+ img[data-logo-theme="dark"]) {
4610
+ display: none;
4611
+ }
4612
+ :where(.dark, [data-theme="dark"]) [data-pont2-logo] > img[data-logo-theme="dark"] {
4613
+ display: block;
4614
+ }
4615
+ }
4616
+
4617
+ /* ../kit/countdown/countdown.css */
4618
+ /* <pont2-countdown>: small muted line, digits that do not jitter. */
4619
+ @layer pont2.kit {
4620
+ :is(pont2-countdown, [data-pont2-countdown]) {
4621
+ display: block;
4622
+ color: var(--pont2-muted-foreground);
4623
+ font-size: var(--pont2-text-sm);
4624
+ line-height: var(--pont2-text-sm--line-height);
4625
+ font-variant-numeric: tabular-nums;
4626
+ text-align: center;
4627
+ }
4628
+ }
4629
+
4630
+ /* ../kit/edit-identifier/edit-identifier.css */
4631
+ /* <pont2-edit-identifier>: "ada@example.com ✎", centred, the value truncating. */
4632
+ @layer pont2.kit {
4633
+ :is(pont2-edit-identifier, [data-pont2-edit-identifier]) {
4634
+ display: flex;
4635
+ align-items: center;
4636
+ justify-content: center;
4637
+ gap: 0.25rem;
4638
+ min-width: 0;
4639
+ font-size: var(--pont2-text-sm);
4640
+ line-height: var(--pont2-text-sm--line-height);
4641
+ }
4642
+ [data-pont2-edit-identifier] > [data-slot="edit-identifier-value"] {
4643
+ overflow: hidden;
4644
+ font-weight: var(--pont2-font-weight-medium);
4645
+ text-overflow: ellipsis;
4646
+ white-space: nowrap;
4647
+ }
4648
+ }
4649
+
4650
+ /* ../kit/secret/secret.css */
4651
+ /* <pont2-secret>: title, the secret in an input group, copied status, issuer/account. */
4652
+ @layer pont2.kit {
4653
+ :is(pont2-secret, [data-pont2-secret]) {
4654
+ display: flex;
4655
+ flex-direction: column;
4656
+ gap: 0.5rem;
4657
+ width: 100%;
4658
+ }
4659
+ [data-pont2-secret] > [data-slot="secret-title"] {
4660
+ margin: 0;
4661
+ font-size: var(--pont2-text-sm);
4662
+ line-height: var(--pont2-text-sm--line-height);
4663
+ font-weight: var(--pont2-font-weight-medium);
4664
+ }
4665
+ [data-pont2-secret] [data-secret] {
4666
+ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
4667
+ letter-spacing: 0.05em;
4668
+ }
4669
+ /* Reserved line, so the status appearing does not shift the layout. */
4670
+ [data-pont2-secret] > [data-slot="secret-copied"] {
4671
+ min-height: 1rem;
4672
+ color: var(--pont2-muted-foreground);
4673
+ font-size: var(--pont2-text-xs);
4674
+ line-height: 1rem;
4675
+ }
4676
+ [data-pont2-secret] > [data-slot="secret-metadata"] {
4677
+ display: flex;
4678
+ flex-wrap: wrap;
4679
+ gap: 0.5rem 1.5rem;
4680
+ margin: 0;
4681
+ }
4682
+ [data-pont2-secret] > [data-slot="secret-metadata"] dt {
4683
+ color: var(--pont2-muted-foreground);
4684
+ font-size: var(--pont2-text-xs);
4685
+ line-height: 1rem;
4686
+ }
4687
+ [data-pont2-secret] > [data-slot="secret-metadata"] dd {
4688
+ margin: 0;
4689
+ font-size: var(--pont2-text-sm);
4690
+ line-height: var(--pont2-text-sm--line-height);
4691
+ font-weight: var(--pont2-font-weight-medium);
4692
+ }
4693
+ }
4694
+
4695
+ /* ../kit/qr-code/qr-code.css */
4696
+ /*
4697
+ * <pont2-qr-code>: a dark-on-white code (scanners need the contrast and the quiet
4698
+ * zone, whatever the theme), fading behind a reveal button when obscured.
4699
+ */
4700
+ @layer pont2.kit {
4701
+ :is(pont2-qr-code, [data-pont2-qr-code]) {
4702
+ position: relative;
4703
+ display: grid;
4704
+ place-items: center;
4705
+ width: fit-content;
4706
+ margin-inline: auto;
4707
+ }
4708
+ [data-pont2-qr-code] > [data-slot="qr-code-image"] {
4709
+ display: block;
4710
+ width: var(--pont2-qr-code-size, 12rem);
4711
+ height: auto;
4712
+ border-radius: var(--pont2-radius-md);
4713
+ box-shadow: 0 0 0 1px var(--pont2-border);
4714
+ transition: opacity 200ms ease;
4715
+ }
4716
+ [data-pont2-qr-code][data-obscured] > [data-slot="qr-code-image"] {
4717
+ opacity: 0.15;
4718
+ }
4719
+ [data-pont2-qr-code] > [data-slot="qr-code-overlay"] {
4720
+ position: absolute;
4721
+ inset: 0;
4722
+ display: grid;
4723
+ place-items: center;
4724
+ }
4725
+ @media (prefers-reduced-motion: reduce) {
4726
+ [data-pont2-qr-code] > [data-slot="qr-code-image"] {
4727
+ transition: none;
4728
+ }
4729
+ }
4730
+ }
4731
+
4732
+ /* ../kit/recovery-codes/recovery-codes.css */
4733
+ /* <pont2-recovery-codes>: title, description, a monospace two-column code grid, actions. */
4734
+ @layer pont2.kit {
4735
+ :is(pont2-recovery-codes, [data-pont2-recovery-codes]) {
4736
+ display: flex;
4737
+ flex-direction: column;
4738
+ gap: 0.75rem;
4739
+ width: 100%;
4740
+ }
4741
+ [data-pont2-recovery-codes] > [data-slot="recovery-codes-title"] {
4742
+ margin: 0;
4743
+ font-weight: var(--pont2-font-weight-medium);
4744
+ }
4745
+ [data-pont2-recovery-codes] > :is([data-slot="recovery-codes-description"], [data-slot="recovery-codes-empty"]) {
4746
+ margin: 0;
4747
+ color: var(--pont2-muted-foreground);
4748
+ font-size: var(--pont2-text-sm);
4749
+ line-height: var(--pont2-text-sm--line-height);
4750
+ }
4751
+ [data-pont2-recovery-codes] > [data-slot="recovery-codes-list"] {
4752
+ display: grid;
4753
+ grid-template-columns: repeat(2, minmax(0, 1fr));
4754
+ gap: 0.5rem 1rem;
4755
+ margin: 0;
4756
+ padding: 0.75rem 1rem;
4757
+ list-style: none;
4758
+ border-radius: var(--pont2-radius-md);
4759
+ background-color: var(--pont2-muted);
4760
+ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
4761
+ font-size: var(--pont2-text-sm);
4762
+ line-height: var(--pont2-text-sm--line-height);
4763
+ text-align: center;
4764
+ }
4765
+ [data-pont2-recovery-codes] > [data-slot="recovery-codes-actions"] {
4766
+ display: flex;
4767
+ gap: 0.5rem;
4768
+ }
4769
+ [data-pont2-recovery-codes] > [data-slot="recovery-codes-actions"] > [data-pont2-button] {
4770
+ flex: 1;
4771
+ }
4772
+ [data-pont2-recovery-codes] > [data-slot="recovery-codes-copied"] {
4773
+ min-height: 1rem;
4774
+ color: var(--pont2-muted-foreground);
4775
+ font-size: var(--pont2-text-xs);
4776
+ line-height: 1rem;
4777
+ text-align: center;
4778
+ }
4779
+ }
4780
+
4781
+ /* ../kit/scope-list/scope-list.css */
4782
+ /* <pont2-scope-list>: one checkbox row per scope (shadcn's checkbox + label row: "flex items-center gap-3"). */
4783
+ @layer pont2.kit {
4784
+ :is(pont2-scope-list, [data-pont2-scope-list]) {
4785
+ display: flex;
4786
+ flex-direction: column;
4787
+ gap: 0.75rem;
4788
+ }
4789
+ [data-pont2-scope-list] [data-slot="scope-list-label"] {
4790
+ display: flex;
4791
+ align-items: center;
4792
+ gap: 0.75rem;
4793
+ font-size: var(--pont2-text-sm);
4794
+ line-height: var(--pont2-text-sm--line-height);
4795
+ cursor: pointer;
4796
+ }
4797
+ [data-pont2-scope-list] [data-required] [data-slot="scope-list-label"],
4798
+ [data-pont2-scope-list][data-disabled] [data-slot="scope-list-label"] {
4799
+ cursor: default;
4800
+ }
4801
+ [data-pont2-scope-list][data-disabled] [data-slot="scope-list-text"] {
4802
+ opacity: 0.5;
4803
+ }
4804
+ }
4805
+
4806
+ /* ../kit/layout/layout.css */
4807
+ /*
4808
+ * <pont2-layout>: the flow host. The host and its form have no box of their own
4809
+ * (the screen's block is the visible shell); a pending request is signalled by
4810
+ * aria-busy on the form, which the elements' own busy states already show.
4811
+ */
4812
+ @layer pont2.kit {
4813
+ :is(pont2-layout, [data-pont2-layout]) {
4814
+ display: block;
4815
+ width: 100%;
4816
+ }
4817
+ [data-pont2-layout] > [data-slot="layout-form"] {
4818
+ display: contents;
4819
+ }
4820
+ /* The error banner sits in the screen's flow (block gap); the restart button spans it. */
4821
+ [data-pont2-layout] pont2-button[data-flow-error] > [data-pont2-button] {
4822
+ width: 100%;
4823
+ }
4824
+ }
4825
+
4826
+ /* ../kit/flow-widget/flow-widget.css */
4827
+ /* <pont2-signin> / <pont2-signup>: a block-level host; a centred spinner until the first screen. */
4828
+ @layer pont2.kit {
4829
+ :is(pont2-signin, pont2-signup, [data-pont2-flow-widget]) {
4830
+ display: block;
4831
+ width: 100%;
4832
+ }
4833
+ [data-pont2-flow-widget] > [data-slot="flow-widget-loading"] {
4834
+ display: grid;
4835
+ place-items: center;
4836
+ min-height: 12rem;
4837
+ color: var(--pont2-muted-foreground);
4838
+ }
4839
+ }