@pontive/pontkit-core 1.21.1 → 1.21.2

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 (29) hide show
  1. package/catalog.json +1 -1
  2. package/custom-elements.json +1 -1
  3. package/dist/components/renderers/auth/recovery-codes/index.d.ts +1 -7
  4. package/dist/components/renderers/feedback/countdown/_countdown.d.ts +38 -13
  5. package/dist/components/renderers/feedback/countdown/countdown.defs.d.ts +9 -0
  6. package/dist/components/renderers/feedback/countdown/index.d.ts +1 -7
  7. package/dist/components/renderers/typography/subtitle/_subtitle.d.ts +14 -4
  8. package/dist/components/renderers/typography/subtitle/index.d.ts +1 -7
  9. package/dist/components/renderers/typography/subtitle/subtitle.defs.d.ts +4 -0
  10. package/dist/components/renderers/typography/title/_title.d.ts +19 -9
  11. package/dist/components/renderers/typography/title/index.d.ts +1 -7
  12. package/dist/components/renderers/typography/title/title.defs.d.ts +7 -0
  13. package/dist/components/renderers/typography/title/title.stories.d.ts +1 -0
  14. package/dist/element-tag-map.d.ts +2 -0
  15. package/dist/index.js +530 -537
  16. package/dist/index.js.map +1 -1
  17. package/dist/index.mjs +5366 -5359
  18. package/dist/index.mjs.map +1 -1
  19. package/dist/primitives/components/ui/input-otp/_input-otp-group.d.ts +6 -16
  20. package/dist/primitives/components/ui/input-otp/_input-otp-separator.d.ts +7 -7
  21. package/dist/primitives/components/ui/input-otp/_input-otp-slot.d.ts +9 -14
  22. package/dist/primitives/components/ui/input-otp/_input-otp.d.ts +20 -48
  23. package/dist/primitives/components/ui/input-otp/input-otp.d.ts +9 -9
  24. package/dist/primitives/components/ui/input-otp/input-otp.defs.d.ts +3 -3
  25. package/dist/styles.css +698 -178
  26. package/package.json +1 -1
  27. package/dist/components/renderers/feedback/countdown/countdown.types.d.ts +0 -6
  28. package/dist/components/renderers/typography/subtitle/subtitle.types.d.ts +0 -4
  29. package/dist/components/renderers/typography/title/title.types.d.ts +0 -4
@@ -1,7 +1 @@
1
- import { PontRecoveryCodes } from './_recovery-codes';
2
- export { PontRecoveryCodes };
3
- declare global {
4
- interface HTMLElementTagNameMap {
5
- "pont-recovery-codes": PontRecoveryCodes;
6
- }
7
- }
1
+ export { PontRecoveryCodes } from './_recovery-codes';
@@ -1,20 +1,45 @@
1
- import { BaseElement } from '../../..';
2
- import { CountdownProps as Props } from './countdown.types';
3
- export declare class PontCountdown extends BaseElement implements Props {
4
- get _containerElement(): HTMLLIElement | null;
5
- content: string;
1
+ import { LitElement } from 'lit';
2
+ import { CountdownProps as Props, CountdownPart } from './countdown.defs';
3
+ /**
4
+ * Displays remaining seconds and redirects once the timer has finished.
5
+ *
6
+ * @element pont-countdown
7
+ * - data-pont-countdown (`div`): root
8
+ */
9
+ export declare class PontCountdown extends LitElement implements Props {
10
+ static readonly ROOT = "countdown";
11
+ static readonly TAG: string;
12
+ static readonly PARTS: Record<CountdownPart, string>;
13
+ /**
14
+ * Substring used in generated part IDs.
15
+ */
16
+ seed: string;
17
+ /**
18
+ * Custom ID used as the root part ID and as the base of subpart IDs.
19
+ */
20
+ customId?: string;
21
+ /**
22
+ * The countdown duration in seconds before redirecting.
23
+ */
6
24
  duration: number;
25
+ /**
26
+ * The URL used for navigation when the countdown completes.
27
+ */
7
28
  redirectUrl: string;
8
- id: string;
9
- private seconds;
10
- private timerId;
29
+ /**
30
+ * The text displayed before the countdown timer value.
31
+ */
32
+ content: string;
33
+ private _seconds;
34
+ private _timerId;
11
35
  protected createRenderRoot(): this;
36
+ get rootId(): string;
37
+ get rootEl(): HTMLElement | null;
12
38
  connectedCallback(): void;
13
39
  disconnectedCallback(): void;
14
- private initializeCountdown;
15
- private startTimer;
16
- private completeCountdown;
17
- private clearTimer;
18
- private renderContent;
40
+ private _initCountdown;
41
+ private _startTimer;
42
+ private _completeCountdown;
43
+ private _clearTimer;
19
44
  render(): import('lit-html').TemplateResult<1>;
20
45
  }
@@ -0,0 +1,9 @@
1
+ export type CountdownPart = "root";
2
+ export type CountdownProps = {
3
+ seed: string;
4
+ customId?: string;
5
+ duration: number;
6
+ redirectUrl: string;
7
+ content: string;
8
+ };
9
+ export declare const DEFAULT_COUNTDOWN_PROPS: Omit<CountdownProps, "seed">;
@@ -1,7 +1 @@
1
- import { PontCountdown } from './_countdown';
2
- export { PontCountdown };
3
- declare global {
4
- interface HTMLElementTagNameMap {
5
- "pont-countdown": PontCountdown;
6
- }
7
- }
1
+ export { PontCountdown } from './_countdown';
@@ -1,7 +1,17 @@
1
- import { BaseElement } from '../../..';
2
- export declare class PontSubtitle extends BaseElement {
3
- get _containerElement(): HTMLLIElement | null;
4
- id: string;
1
+ import { LitElement } from 'lit';
2
+ import { SubtitleProps as Props } from './subtitle.defs';
3
+ /**
4
+ * A typography component for page, section, and widget subtitles.
5
+ *
6
+ * @element pont-subtitle
7
+ * - data-pont-subtitle (`p`): root/paragraph
8
+ */
9
+ export declare class PontSubtitle extends LitElement implements Props {
10
+ static readonly ROOT = "subtitle";
11
+ static readonly TAG: string;
12
+ /**
13
+ * The text content rendered inside the subtitle/paragraph.
14
+ */
5
15
  content: string;
6
16
  protected createRenderRoot(): this;
7
17
  render(): import('lit-html').TemplateResult<1>;
@@ -1,7 +1 @@
1
- import { PontSubtitle } from './_subtitle';
2
- export { PontSubtitle };
3
- declare global {
4
- interface HTMLElementTagNameMap {
5
- "pont-subtitle": PontSubtitle;
6
- }
7
- }
1
+ export { PontSubtitle } from './_subtitle';
@@ -0,0 +1,4 @@
1
+ export interface SubtitleProps {
2
+ content: string;
3
+ }
4
+ export declare const DEFAULT_SUBTITLE_PROPS: SubtitleProps;
@@ -1,13 +1,23 @@
1
- import { BaseElement } from '../../..';
2
- export declare class PontTitle extends BaseElement {
3
- get _containerElement(): HTMLLIElement | null;
4
- id: string;
1
+ import { LitElement } from 'lit';
2
+ import { TitleProps as Props, TitleLevel } from './title.defs';
3
+ /**
4
+ * A typography component for page, section, and widget headings.
5
+ *
6
+ * @element pont-title
7
+ * - data-pont-title (`h1`/`h2`/`h3`/`h4`): root/heading
8
+ */
9
+ export declare class PontTitle extends LitElement implements Props {
10
+ static readonly ROOT = "title";
11
+ static readonly TAG: string;
12
+ /**
13
+ * The heading level, determining whether `h1`, `h2`, `h3`, or `h4` is
14
+ * rendered.
15
+ */
16
+ level: TitleLevel;
17
+ /**
18
+ * The text content rendered inside the title/heading.
19
+ */
5
20
  content: string;
6
21
  protected createRenderRoot(): this;
7
22
  render(): import('lit-html').TemplateResult<1>;
8
23
  }
9
- declare global {
10
- interface HTMLElementTagNameMap {
11
- "pont-title": PontTitle;
12
- }
13
- }
@@ -1,7 +1 @@
1
- import { PontTitle } from './_title';
2
- export { PontTitle };
3
- declare global {
4
- interface HTMLElementTagNameMap {
5
- "pont-title": PontTitle;
6
- }
7
- }
1
+ export { PontTitle } from './_title';
@@ -0,0 +1,7 @@
1
+ export type TitleLevel = "1" | "2" | "3" | "4";
2
+ export interface TitleProps {
3
+ level: TitleLevel;
4
+ content: string;
5
+ }
6
+ export declare const TITLE_LEVELS: Record<TitleLevel, TitleLevel>;
7
+ export declare const DEFAULT_TITLE_PROPS: TitleProps;
@@ -4,3 +4,4 @@ export default meta;
4
4
  type Story = StoryObj;
5
5
  export declare const Basic: Story;
6
6
  export declare const PageTitle: Story;
7
+ export declare const Levels: Story;
@@ -42,6 +42,7 @@ import { PontSignIn } from './components/widgets/pont-signin/pont-signin';
42
42
  import { PontSignUp } from './components/widgets/pont-signup/pont-signup';
43
43
  import { PontSubmitButton } from './components/renderers/auth/button/_submit-button';
44
44
  import { PontSubtitle } from './components/renderers/typography/subtitle/_subtitle';
45
+ import { PontTitle } from './components/renderers/typography/title/_title';
45
46
  import { PontUsernameField } from './components/renderers/auth/field/_username-field';
46
47
  import { PontWatermark } from './components/renderers/visuals/watermark/_watermark';
47
48
  declare global {
@@ -90,6 +91,7 @@ declare global {
90
91
  "pont-signup": PontSignUp;
91
92
  "pont-submit-button": PontSubmitButton;
92
93
  "pont-subtitle": PontSubtitle;
94
+ "pont-title": PontTitle;
93
95
  "pont-user-snippet": PontUserSnippet;
94
96
  "pont-username-field": PontUsernameField;
95
97
  "pont-watermark": PontWatermark;