@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
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Helpers for Storybook play functions (not part of the library build: nothing
3
+ * in src/index.ts imports this file).
4
+ */
5
+ /** Replaces the clipboard for the duration of a play function. */
6
+ export declare function stubClipboard(): {
7
+ writes: string[];
8
+ restore: () => void;
9
+ };
@@ -0,0 +1,70 @@
1
+ import { PropertyDeclarations, TemplateResult } from 'lit';
2
+ import { ShellElement } from '../../core/host-element';
3
+ export type TitleLevel = "1" | "2" | "3" | "4";
4
+ export type TextAlign = "auto" | "start" | "center" | "end";
5
+ /**
6
+ * Title and subtitle: a heading and its supporting line.
7
+ *
8
+ * shadcn has no typography *components* (its typography page is classes), and
9
+ * its login blocks write `<h1 class="text-2xl font-bold">Welcome back</h1>
10
+ * <p class="text-muted-foreground text-balance">Login to your Acme Inc
11
+ * account</p>`. pont2 keeps the **native** `<h1>`–`<h4>` / `<p>` (document
12
+ * outline, heading navigation, reader modes), so these are Tier 3 shells:
13
+ * the host has no box (`display: contents`), the native element is styled.
14
+ *
15
+ * The text comes from `content` (the legacy attribute, and what render
16
+ * specs emit); a composite owns its children.
17
+ */
18
+ declare abstract class TextShell extends ShellElement {
19
+ static composite: boolean;
20
+ static properties: PropertyDeclarations;
21
+ content: string;
22
+ align: TextAlign;
23
+ constructor();
24
+ get control(): HTMLElement | null;
25
+ }
26
+ /**
27
+ * # `<pont2-title>`
28
+ *
29
+ * ```html
30
+ * <pont2-title level="1" content="Welcome back"></pont2-title>
31
+ * → <pont2-title data-pont2-shell><h1 data-pont2-title data-level="1" data-align="auto">Welcome back</h1></pont2-title>
32
+ * ```
33
+ *
34
+ * Sizes follow shadcn's auth blocks: level 1 is the block heading (`text-2xl
35
+ * font-bold`), 2–4 step down (`text-xl`/`text-lg`/`text-base`, semibold).
36
+ *
37
+ * @tag pont2-title
38
+ * @attr level - 1 (default) | 2 | 3 | 4: the native heading level
39
+ * @attr content - the heading text
40
+ * @attr align - auto (default: inherit) | start | center | end
41
+ */
42
+ export declare class Title extends TextShell {
43
+ static properties: PropertyDeclarations;
44
+ level: TitleLevel;
45
+ constructor();
46
+ render(): TemplateResult;
47
+ }
48
+ /**
49
+ * # `<pont2-subtitle>`
50
+ *
51
+ * ```html
52
+ * <pont2-subtitle content="Login to your Acme Inc account"></pont2-subtitle>
53
+ * → <pont2-subtitle data-pont2-shell><p data-pont2-subtitle data-align="auto">…</p></pont2-subtitle>
54
+ * ```
55
+ *
56
+ * shadcn's block description: `text-muted-foreground text-balance` (text-sm).
57
+ *
58
+ * @tag pont2-subtitle
59
+ * @attr content, align - as Title
60
+ */
61
+ export declare class Subtitle extends TextShell {
62
+ render(): TemplateResult;
63
+ }
64
+ declare global {
65
+ interface HTMLElementTagNameMap {
66
+ "pont2-title": Title;
67
+ "pont2-subtitle": Subtitle;
68
+ }
69
+ }
70
+ export {};
@@ -0,0 +1,8 @@
1
+ /**
2
+ * The Pontive logo (mark + wordmark), the same geometry as the legacy
3
+ * watermark. Pontive's own asset, so it is inlined (no image request) and the
4
+ * mark and wordmark can be coloured separately in CSS.
5
+ */
6
+ export declare const PONTIVE_MARK: import('lit-html').TemplateResult<2>;
7
+ export declare const PONTIVE_WORDMARK: import('lit-html').TemplateResult<2>;
8
+ export declare const pontiveLogo: () => import('lit-html').TemplateResult<1>;
@@ -0,0 +1,42 @@
1
+ import { PropertyDeclarations, TemplateResult } from 'lit';
2
+ import { HostElement } from '../../core/host-element';
3
+ export type WatermarkVariant = "brand" | "theme" | "muted";
4
+ export type WatermarkLogoAlign = "start" | "end";
5
+ /** The watermark's content (label + logo), shared with the block's footer. */
6
+ export declare function watermarkContent(label: string, logoAlign: WatermarkLogoAlign): TemplateResult;
7
+ /**
8
+ * # `<pont2-watermark>`: "Powered by [Pontive]"
9
+ *
10
+ * ```html
11
+ * <pont2-watermark variant="muted"></pont2-watermark>
12
+ * → <pont2-watermark data-pont2-watermark data-slot="watermark" data-variant="muted">
13
+ * <span data-slot="watermark-label">Powered by</span><svg data-slot="watermark-logo" role="img" aria-label="Pontive">…</svg>
14
+ * </pont2-watermark>
15
+ * ```
16
+ *
17
+ * Host-as-root (the legacy element wrapped a `<span>` in its tag). The block
18
+ * renders the same content as a *part* in its footer (`Watermark.part()` +
19
+ * `watermarkContent()`), so the screen shell needs no nested element.
20
+ *
21
+ * @tag pont2-watermark
22
+ * @attr variant - brand (default: the mark in Pontive indigo) | theme (currentColor) | muted (muted text)
23
+ * @attr logo-align - start | end (default)
24
+ * @attr label - default "Powered by"
25
+ */
26
+ export declare class Watermark extends HostElement {
27
+ static identity: string;
28
+ static slotName: string;
29
+ static composite: boolean;
30
+ static properties: PropertyDeclarations;
31
+ variant: WatermarkVariant;
32
+ logoAlign: WatermarkLogoAlign;
33
+ label: string;
34
+ constructor();
35
+ protected willUpdate(): void;
36
+ render(): TemplateResult;
37
+ }
38
+ declare global {
39
+ interface HTMLElementTagNameMap {
40
+ "pont2-watermark": Watermark;
41
+ }
42
+ }