@pontive/pontkit-core 1.24.2 → 1.26.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.
@@ -1,5 +1,5 @@
1
1
  import { LitElement } from 'lit';
2
- import { SubtitleProps as Props } from './subtitle.defs';
2
+ import { SubtitleProps as Props, SubtitleAlign } from './subtitle.defs';
3
3
  /**
4
4
  * A typography component for page, section, and widget subtitles.
5
5
  *
@@ -9,6 +9,11 @@ import { SubtitleProps as Props } from './subtitle.defs';
9
9
  export declare class PontSubtitle extends LitElement implements Props {
10
10
  static readonly ROOT = "subtitle";
11
11
  static readonly TAG: string;
12
+ /**
13
+ * The horizontal alignment of the subtitle within its container.
14
+ * `auto` inherits the parent's alignment.
15
+ */
16
+ align: SubtitleAlign;
12
17
  /**
13
18
  * The text content rendered inside the subtitle/paragraph.
14
19
  */
@@ -1,4 +1,7 @@
1
+ export type SubtitleAlign = "auto" | "start" | "center" | "end";
1
2
  export interface SubtitleProps {
3
+ align: SubtitleAlign;
2
4
  content: string;
3
5
  }
6
+ export declare const SUBTITLE_ALIGNS: Record<SubtitleAlign, SubtitleAlign>;
4
7
  export declare const DEFAULT_SUBTITLE_PROPS: SubtitleProps;
@@ -4,3 +4,6 @@ export default meta;
4
4
  type Story = StoryObj;
5
5
  export declare const Basic: Story;
6
6
  export declare const LongContent: Story;
7
+ export declare const Alignment: Story;
8
+ export declare const AlignmentInHeader: Story;
9
+ export declare const AlignmentInParentLayouts: Story;
@@ -1,5 +1,5 @@
1
1
  import { LitElement } from 'lit';
2
- import { TitleProps as Props, TitleLevel } from './title.defs';
2
+ import { TitleProps as Props, TitleAlign, TitleLevel } from './title.defs';
3
3
  /**
4
4
  * A typography component for page, section, and widget headings.
5
5
  *
@@ -14,6 +14,11 @@ export declare class PontTitle extends LitElement implements Props {
14
14
  * rendered.
15
15
  */
16
16
  level: TitleLevel;
17
+ /**
18
+ * The horizontal alignment of the title within its container.
19
+ * `auto` inherits the parent's alignment.
20
+ */
21
+ align: TitleAlign;
17
22
  /**
18
23
  * The text content rendered inside the title/heading.
19
24
  */
@@ -1,7 +1,10 @@
1
1
  export type TitleLevel = "1" | "2" | "3" | "4";
2
+ export type TitleAlign = "auto" | "start" | "center" | "end";
2
3
  export interface TitleProps {
3
4
  level: TitleLevel;
5
+ align: TitleAlign;
4
6
  content: string;
5
7
  }
6
8
  export declare const TITLE_LEVELS: Record<TitleLevel, TitleLevel>;
9
+ export declare const TITLE_ALIGNS: Record<TitleAlign, TitleAlign>;
7
10
  export declare const DEFAULT_TITLE_PROPS: TitleProps;
@@ -5,3 +5,6 @@ type Story = StoryObj;
5
5
  export declare const Basic: Story;
6
6
  export declare const PageTitle: Story;
7
7
  export declare const Levels: Story;
8
+ export declare const Alignment: Story;
9
+ export declare const AlignmentInHeader: Story;
10
+ export declare const AlignmentInParentLayouts: Story;