@pontive/pontkit-core 1.24.1 → 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/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
  /*
@@ -18593,22 +18614,44 @@ pont-countdown {
18593
18614
 
18594
18615
  /* ===== Pass the block's tokens to the card ===== */
18595
18616
  pont-block {
18596
- --pont-card-sizing-w: var(--pont-block-space-width);
18597
-
18617
+ /* SPACING */
18598
18618
  --pont-card-spacing-pt: var(--pont-block-space-py);
18599
- --pont-card-spacing-pr: var(--pont-block-space-px);
18600
18619
  --pont-card-spacing-pb: var(--pont-block-space-py);
18601
- --pont-card-spacing-pl: var(--pont-block-space-px);
18602
18620
 
18621
+ --pont-card-header-spacing-pr: var(--pont-block-space-px);
18622
+ --pont-card-header-spacing-pl: var(--pont-block-space-px);
18623
+
18624
+ --pont-card-header-spacing-pr-has-border: var(--pont-card-header-spacing-pr);
18625
+ --pont-card-header-spacing-pl-has-border: var(--pont-card-header-spacing-pl);
18626
+
18627
+ --pont-card-content-spacing-pr: var(--pont-block-space-px);
18628
+ --pont-card-content-spacing-pl: var(--pont-block-space-px);
18629
+
18630
+ --pont-card-footer-spacing-pr: var(--pont-block-space-px);
18631
+ --pont-card-footer-spacing-pl: var(--pont-block-space-px);
18632
+
18633
+ --pont-card-footer-spacing-pr-has-border: var(--pont-card-footer-spacing-pr);
18634
+ --pont-card-footer-spacing-pl-has-border: var(--pont-card-footer-spacing-pl);
18635
+
18636
+ /* SIZING */
18637
+ --pont-card-sizing-w: var(--pont-block-space-width);
18638
+
18639
+ /* BACKGROUND */
18603
18640
  --pont-card-bg-color: var(--pont-block-color-bg);
18604
-
18641
+
18642
+ /* BORDER */
18605
18643
  --pont-card-border-radius-tl: var(--pont-block-radius);
18606
18644
  --pont-card-border-radius-tr: var(--pont-block-radius);
18607
18645
  --pont-card-border-radius-br: var(--pont-block-radius);
18608
18646
  --pont-card-border-radius-bl: var(--pont-block-radius);
18609
18647
 
18648
+ /* EFFECT */
18610
18649
  --pont-card-effect-ring-w: var(--pont-block-width-ring);
18611
18650
  --pont-card-effect-ring-color: var(--pont-block-color-ring);
18651
+
18652
+ --pont-card-effect-ring: 0 0 0
18653
+ calc(var(--pont-card-effect-ring-w) + var(--pont-card-effect-ring-offset-w))
18654
+ var(--pont-card-effect-ring-color);
18612
18655
  }
18613
18656
 
18614
18657
  /* ===== Card behaviour ===== */
@@ -18844,6 +18887,8 @@ pont-modal[part="no_min_width"] .pont-modal-layout {
18844
18887
  pont-header {
18845
18888
  display: block;
18846
18889
  align-self: var(--pont-header-alignment-align-self);
18890
+
18891
+ width: var(--pont-header-sizing-w);
18847
18892
  }
18848
18893
 
18849
18894
  /* ===== Alignment =====
@@ -18994,6 +19039,51 @@ pont-subtitle {
18994
19039
  color: var(--pont-subtitle-typography-color);
18995
19040
  }
18996
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
+
18997
19087
  /*
18998
19088
  * ============================================================
18999
19089
  * TITLE
@@ -19019,6 +19109,50 @@ pont-title {
19019
19109
  color: var(--pont-title-typography-color);
19020
19110
  }
19021
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
+
19022
19156
  /*
19023
19157
  * ============================================================
19024
19158
  * WATERMARK
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pontive/pontkit-core",
3
- "version": "1.24.1",
3
+ "version": "1.25.0",
4
4
  "license": "MIT",
5
5
  "description": "A collection of core components for Pontive",
6
6
  "main": "dist/index.js",