@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.
- package/README.md +4 -0
- 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 +390 -369
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2613 -2580
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +118 -0
- package/package.json +1 -1
package/dist/styles.css
CHANGED
|
@@ -639,6 +639,12 @@
|
|
|
639
639
|
/* * -------- FLEXBOX & GRID -------- * */
|
|
640
640
|
|
|
641
641
|
:root {
|
|
642
|
+
/* * FLEX DIRECTION * */
|
|
643
|
+
--pont-ref-layout-direction-row: row;
|
|
644
|
+
--pont-ref-layout-direction-row-reverse: row-reverse;
|
|
645
|
+
--pont-ref-layout-direction-col: column;
|
|
646
|
+
--pont-ref-layout-direction-col-reverse: column-reverse;
|
|
647
|
+
|
|
642
648
|
/* * JUSTIFY CONTENT * */
|
|
643
649
|
--pont-ref-layout-justify-start: flex-start;
|
|
644
650
|
--pont-ref-layout-justify-end: flex-end;
|
|
@@ -661,6 +667,26 @@
|
|
|
661
667
|
--pont-ref-layout-items-baseline: baseline;
|
|
662
668
|
--pont-ref-layout-items-baseline-last: last baseline;
|
|
663
669
|
--pont-ref-layout-items-stretch: stretch;
|
|
670
|
+
|
|
671
|
+
/* * JUSTIFY SELF * */
|
|
672
|
+
--pont-ref-layout-justify-self-auto: auto;
|
|
673
|
+
--pont-ref-layout-justify-self-start: start;
|
|
674
|
+
--pont-ref-layout-justify-self-center: center;
|
|
675
|
+
--pont-ref-layout-justify-self-center-safe: safe center;
|
|
676
|
+
--pont-ref-layout-justify-self-end: end;
|
|
677
|
+
--pont-ref-layout-justify-self-end-safe: safe end;
|
|
678
|
+
--pont-ref-layout-justify-self-stretch: stretch;
|
|
679
|
+
|
|
680
|
+
/* * ALIGN SELF * */
|
|
681
|
+
--pont-ref-layout-self-auto: auto;
|
|
682
|
+
--pont-ref-layout-self-start: flex-start;
|
|
683
|
+
--pont-ref-layout-self-end: flex-end;
|
|
684
|
+
--pont-ref-layout-self-end-safe: safe flex-end;
|
|
685
|
+
--pont-ref-layout-self-center: center;
|
|
686
|
+
--pont-ref-layout-self-center-safe: safe center;
|
|
687
|
+
--pont-ref-layout-self-stretch: stretch;
|
|
688
|
+
--pont-ref-layout-self-baseline: baseline;
|
|
689
|
+
--pont-ref-layout-self-baseline-last: last baseline;
|
|
664
690
|
}
|
|
665
691
|
|
|
666
692
|
/*
|
|
@@ -17537,6 +17563,7 @@ HEADER
|
|
|
17537
17563
|
:root {
|
|
17538
17564
|
--pont-header-alignment-align-self: auto;
|
|
17539
17565
|
--pont-header-space-gap: var(--pont-ref-space-0-5);
|
|
17566
|
+
--pont-header-sizing-w: var(--pont-ref-sizing-full);
|
|
17540
17567
|
}
|
|
17541
17568
|
|
|
17542
17569
|
/*
|
|
@@ -18866,6 +18893,8 @@ pont-modal[part="no_min_width"] .pont-modal-layout {
|
|
|
18866
18893
|
pont-header {
|
|
18867
18894
|
display: block;
|
|
18868
18895
|
align-self: var(--pont-header-alignment-align-self);
|
|
18896
|
+
|
|
18897
|
+
width: var(--pont-header-sizing-w);
|
|
18869
18898
|
}
|
|
18870
18899
|
|
|
18871
18900
|
/* ===== Alignment =====
|
|
@@ -19016,6 +19045,51 @@ pont-subtitle {
|
|
|
19016
19045
|
color: var(--pont-subtitle-typography-color);
|
|
19017
19046
|
}
|
|
19018
19047
|
|
|
19048
|
+
/* * -------- ALIGN -------- * */
|
|
19049
|
+
|
|
19050
|
+
/* `pont-subtitle` is `display: contents`, so the inner element is what the
|
|
19051
|
+
parent lays out — and that parent may be a flex column (block, header,
|
|
19052
|
+
container), a block, or a grid. `align-self` only works in flex, `justify-self`
|
|
19053
|
+
only in grid, so positioning the box per value breaks in whichever layout it
|
|
19054
|
+
doesn't cover.
|
|
19055
|
+
|
|
19056
|
+
Instead, an explicit `align` makes the box span its parent's inline axis and
|
|
19057
|
+
aligns the lines inside it. For unboxed text that looks identical to moving the
|
|
19058
|
+
box, and it holds in every layout: a block already fills the line, and `stretch`
|
|
19059
|
+
makes a flex column or grid item do the same.
|
|
19060
|
+
|
|
19061
|
+
`auto` sets nothing, so the element keeps whatever its parent decides — both the
|
|
19062
|
+
parent's `align-items` and the `text-align` it inherits (e.g. a centred
|
|
19063
|
+
`pont-header`). */
|
|
19064
|
+
|
|
19065
|
+
[data-pont-subtitle]:not([data-align="auto"]) {
|
|
19066
|
+
align-self: var(--pont-ref-layout-self-stretch);
|
|
19067
|
+
justify-self: var(--pont-ref-layout-justify-self-stretch);
|
|
19068
|
+
}
|
|
19069
|
+
|
|
19070
|
+
[data-pont-subtitle][data-align="start"] {
|
|
19071
|
+
text-align: var(--pont-ref-typography-align-start);
|
|
19072
|
+
}
|
|
19073
|
+
|
|
19074
|
+
[data-pont-subtitle][data-align="center"] {
|
|
19075
|
+
text-align: var(--pont-ref-typography-align-center);
|
|
19076
|
+
}
|
|
19077
|
+
|
|
19078
|
+
[data-pont-subtitle][data-align="end"] {
|
|
19079
|
+
text-align: var(--pont-ref-typography-align-end);
|
|
19080
|
+
}
|
|
19081
|
+
|
|
19082
|
+
/* In a row the cross axis is vertical: stretching there would change the
|
|
19083
|
+
element's height rather than its width, so leave the row's own alignment in
|
|
19084
|
+
charge and only align the lines. */
|
|
19085
|
+
|
|
19086
|
+
pont-container
|
|
19087
|
+
> [data-pont-container][data-type="flex_row"]
|
|
19088
|
+
> pont-subtitle
|
|
19089
|
+
> [data-pont-subtitle] {
|
|
19090
|
+
align-self: var(--pont-ref-layout-self-auto);
|
|
19091
|
+
}
|
|
19092
|
+
|
|
19019
19093
|
/*
|
|
19020
19094
|
* ============================================================
|
|
19021
19095
|
* TITLE
|
|
@@ -19041,6 +19115,50 @@ pont-title {
|
|
|
19041
19115
|
color: var(--pont-title-typography-color);
|
|
19042
19116
|
}
|
|
19043
19117
|
|
|
19118
|
+
/* * -------- ALIGN -------- * */
|
|
19119
|
+
|
|
19120
|
+
/* `pont-title` is `display: contents`, so the inner element is what the parent
|
|
19121
|
+
lays out — and that parent may be a flex column (block, header, container), a
|
|
19122
|
+
block, or a grid. `align-self` only works in flex, `justify-self` only in grid,
|
|
19123
|
+
so positioning the box per value breaks in whichever layout it doesn't cover.
|
|
19124
|
+
|
|
19125
|
+
Instead, an explicit `align` makes the box span its parent's inline axis and
|
|
19126
|
+
aligns the lines inside it. For unboxed text that looks identical to moving the
|
|
19127
|
+
box, and it holds in every layout: a block already fills the line, and `stretch`
|
|
19128
|
+
makes a flex column or grid item do the same.
|
|
19129
|
+
|
|
19130
|
+
`auto` sets nothing, so the element keeps whatever its parent decides — both the
|
|
19131
|
+
parent's `align-items` and the `text-align` it inherits (e.g. a centred
|
|
19132
|
+
`pont-header`). */
|
|
19133
|
+
|
|
19134
|
+
[data-pont-title]:not([data-align="auto"]) {
|
|
19135
|
+
align-self: var(--pont-ref-layout-self-stretch);
|
|
19136
|
+
justify-self: var(--pont-ref-layout-justify-self-stretch);
|
|
19137
|
+
}
|
|
19138
|
+
|
|
19139
|
+
[data-pont-title][data-align="start"] {
|
|
19140
|
+
text-align: var(--pont-ref-typography-align-start);
|
|
19141
|
+
}
|
|
19142
|
+
|
|
19143
|
+
[data-pont-title][data-align="center"] {
|
|
19144
|
+
text-align: var(--pont-ref-typography-align-center);
|
|
19145
|
+
}
|
|
19146
|
+
|
|
19147
|
+
[data-pont-title][data-align="end"] {
|
|
19148
|
+
text-align: var(--pont-ref-typography-align-end);
|
|
19149
|
+
}
|
|
19150
|
+
|
|
19151
|
+
/* In a row the cross axis is vertical: stretching there would change the
|
|
19152
|
+
element's height rather than its width, so leave the row's own alignment in
|
|
19153
|
+
charge and only align the lines. */
|
|
19154
|
+
|
|
19155
|
+
pont-container
|
|
19156
|
+
> [data-pont-container][data-type="flex_row"]
|
|
19157
|
+
> pont-title
|
|
19158
|
+
> [data-pont-title] {
|
|
19159
|
+
align-self: var(--pont-ref-layout-self-auto);
|
|
19160
|
+
}
|
|
19161
|
+
|
|
19044
19162
|
/*
|
|
19045
19163
|
* ============================================================
|
|
19046
19164
|
* WATERMARK
|