@pontive/pontkit-core 1.24.2 → 1.25.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/components/renderers/typography/subtitle/_subtitle.d.ts +6 -1
- package/dist/components/renderers/typography/subtitle/subtitle.defs.d.ts +3 -0
- package/dist/components/renderers/typography/subtitle/subtitle.stories.d.ts +3 -0
- package/dist/components/renderers/typography/title/_title.d.ts +6 -1
- package/dist/components/renderers/typography/title/title.defs.d.ts +3 -0
- package/dist/components/renderers/typography/title/title.stories.d.ts +3 -0
- package/dist/index.js +378 -368
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2594 -2572
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +112 -0
- package/package.json +1 -1
package/dist/styles.css
CHANGED
|
@@ -661,6 +661,26 @@
|
|
|
661
661
|
--pont-ref-layout-items-baseline: baseline;
|
|
662
662
|
--pont-ref-layout-items-baseline-last: last baseline;
|
|
663
663
|
--pont-ref-layout-items-stretch: stretch;
|
|
664
|
+
|
|
665
|
+
/* * JUSTIFY SELF * */
|
|
666
|
+
--pont-ref-layout-justify-self-auto: auto;
|
|
667
|
+
--pont-ref-layout-justify-self-start: start;
|
|
668
|
+
--pont-ref-layout-justify-self-center: center;
|
|
669
|
+
--pont-ref-layout-justify-self-center-safe: safe center;
|
|
670
|
+
--pont-ref-layout-justify-self-end: end;
|
|
671
|
+
--pont-ref-layout-justify-self-end-safe: safe end;
|
|
672
|
+
--pont-ref-layout-justify-self-stretch: stretch;
|
|
673
|
+
|
|
674
|
+
/* * ALIGN SELF * */
|
|
675
|
+
--pont-ref-layout-self-auto: auto;
|
|
676
|
+
--pont-ref-layout-self-start: flex-start;
|
|
677
|
+
--pont-ref-layout-self-end: flex-end;
|
|
678
|
+
--pont-ref-layout-self-end-safe: safe flex-end;
|
|
679
|
+
--pont-ref-layout-self-center: center;
|
|
680
|
+
--pont-ref-layout-self-center-safe: safe center;
|
|
681
|
+
--pont-ref-layout-self-stretch: stretch;
|
|
682
|
+
--pont-ref-layout-self-baseline: baseline;
|
|
683
|
+
--pont-ref-layout-self-baseline-last: last baseline;
|
|
664
684
|
}
|
|
665
685
|
|
|
666
686
|
/*
|
|
@@ -17537,6 +17557,7 @@ HEADER
|
|
|
17537
17557
|
:root {
|
|
17538
17558
|
--pont-header-alignment-align-self: auto;
|
|
17539
17559
|
--pont-header-space-gap: var(--pont-ref-space-0-5);
|
|
17560
|
+
--pont-header-sizing-w: var(--pont-ref-sizing-full);
|
|
17540
17561
|
}
|
|
17541
17562
|
|
|
17542
17563
|
/*
|
|
@@ -18866,6 +18887,8 @@ pont-modal[part="no_min_width"] .pont-modal-layout {
|
|
|
18866
18887
|
pont-header {
|
|
18867
18888
|
display: block;
|
|
18868
18889
|
align-self: var(--pont-header-alignment-align-self);
|
|
18890
|
+
|
|
18891
|
+
width: var(--pont-header-sizing-w);
|
|
18869
18892
|
}
|
|
18870
18893
|
|
|
18871
18894
|
/* ===== Alignment =====
|
|
@@ -19016,6 +19039,51 @@ pont-subtitle {
|
|
|
19016
19039
|
color: var(--pont-subtitle-typography-color);
|
|
19017
19040
|
}
|
|
19018
19041
|
|
|
19042
|
+
/* * -------- ALIGN -------- * */
|
|
19043
|
+
|
|
19044
|
+
/* `pont-subtitle` is `display: contents`, so the inner element is what the
|
|
19045
|
+
parent lays out — and that parent may be a flex column (block, header,
|
|
19046
|
+
container), a block, or a grid. `align-self` only works in flex, `justify-self`
|
|
19047
|
+
only in grid, so positioning the box per value breaks in whichever layout it
|
|
19048
|
+
doesn't cover.
|
|
19049
|
+
|
|
19050
|
+
Instead, an explicit `align` makes the box span its parent's inline axis and
|
|
19051
|
+
aligns the lines inside it. For unboxed text that looks identical to moving the
|
|
19052
|
+
box, and it holds in every layout: a block already fills the line, and `stretch`
|
|
19053
|
+
makes a flex column or grid item do the same.
|
|
19054
|
+
|
|
19055
|
+
`auto` sets nothing, so the element keeps whatever its parent decides — both the
|
|
19056
|
+
parent's `align-items` and the `text-align` it inherits (e.g. a centred
|
|
19057
|
+
`pont-header`). */
|
|
19058
|
+
|
|
19059
|
+
[data-pont-subtitle]:not([data-align="auto"]) {
|
|
19060
|
+
align-self: var(--pont-ref-layout-self-stretch);
|
|
19061
|
+
justify-self: var(--pont-ref-layout-justify-self-stretch);
|
|
19062
|
+
}
|
|
19063
|
+
|
|
19064
|
+
[data-pont-subtitle][data-align="start"] {
|
|
19065
|
+
text-align: var(--pont-ref-typography-align-start);
|
|
19066
|
+
}
|
|
19067
|
+
|
|
19068
|
+
[data-pont-subtitle][data-align="center"] {
|
|
19069
|
+
text-align: var(--pont-ref-typography-align-center);
|
|
19070
|
+
}
|
|
19071
|
+
|
|
19072
|
+
[data-pont-subtitle][data-align="end"] {
|
|
19073
|
+
text-align: var(--pont-ref-typography-align-end);
|
|
19074
|
+
}
|
|
19075
|
+
|
|
19076
|
+
/* In a row the cross axis is vertical: stretching there would change the
|
|
19077
|
+
element's height rather than its width, so leave the row's own alignment in
|
|
19078
|
+
charge and only align the lines. */
|
|
19079
|
+
|
|
19080
|
+
pont-container
|
|
19081
|
+
> [data-pont-container][data-type="flex_row"]
|
|
19082
|
+
> pont-subtitle
|
|
19083
|
+
> [data-pont-subtitle] {
|
|
19084
|
+
align-self: var(--pont-ref-layout-self-auto);
|
|
19085
|
+
}
|
|
19086
|
+
|
|
19019
19087
|
/*
|
|
19020
19088
|
* ============================================================
|
|
19021
19089
|
* TITLE
|
|
@@ -19041,6 +19109,50 @@ pont-title {
|
|
|
19041
19109
|
color: var(--pont-title-typography-color);
|
|
19042
19110
|
}
|
|
19043
19111
|
|
|
19112
|
+
/* * -------- ALIGN -------- * */
|
|
19113
|
+
|
|
19114
|
+
/* `pont-title` is `display: contents`, so the inner element is what the parent
|
|
19115
|
+
lays out — and that parent may be a flex column (block, header, container), a
|
|
19116
|
+
block, or a grid. `align-self` only works in flex, `justify-self` only in grid,
|
|
19117
|
+
so positioning the box per value breaks in whichever layout it doesn't cover.
|
|
19118
|
+
|
|
19119
|
+
Instead, an explicit `align` makes the box span its parent's inline axis and
|
|
19120
|
+
aligns the lines inside it. For unboxed text that looks identical to moving the
|
|
19121
|
+
box, and it holds in every layout: a block already fills the line, and `stretch`
|
|
19122
|
+
makes a flex column or grid item do the same.
|
|
19123
|
+
|
|
19124
|
+
`auto` sets nothing, so the element keeps whatever its parent decides — both the
|
|
19125
|
+
parent's `align-items` and the `text-align` it inherits (e.g. a centred
|
|
19126
|
+
`pont-header`). */
|
|
19127
|
+
|
|
19128
|
+
[data-pont-title]:not([data-align="auto"]) {
|
|
19129
|
+
align-self: var(--pont-ref-layout-self-stretch);
|
|
19130
|
+
justify-self: var(--pont-ref-layout-justify-self-stretch);
|
|
19131
|
+
}
|
|
19132
|
+
|
|
19133
|
+
[data-pont-title][data-align="start"] {
|
|
19134
|
+
text-align: var(--pont-ref-typography-align-start);
|
|
19135
|
+
}
|
|
19136
|
+
|
|
19137
|
+
[data-pont-title][data-align="center"] {
|
|
19138
|
+
text-align: var(--pont-ref-typography-align-center);
|
|
19139
|
+
}
|
|
19140
|
+
|
|
19141
|
+
[data-pont-title][data-align="end"] {
|
|
19142
|
+
text-align: var(--pont-ref-typography-align-end);
|
|
19143
|
+
}
|
|
19144
|
+
|
|
19145
|
+
/* In a row the cross axis is vertical: stretching there would change the
|
|
19146
|
+
element's height rather than its width, so leave the row's own alignment in
|
|
19147
|
+
charge and only align the lines. */
|
|
19148
|
+
|
|
19149
|
+
pont-container
|
|
19150
|
+
> [data-pont-container][data-type="flex_row"]
|
|
19151
|
+
> pont-title
|
|
19152
|
+
> [data-pont-title] {
|
|
19153
|
+
align-self: var(--pont-ref-layout-self-auto);
|
|
19154
|
+
}
|
|
19155
|
+
|
|
19044
19156
|
/*
|
|
19045
19157
|
* ============================================================
|
|
19046
19158
|
* WATERMARK
|