@astronox/core 0.4.4 → 0.4.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astronox/core",
3
- "version": "0.4.4",
3
+ "version": "0.4.5",
4
4
  "description": "Reusable Astro components, patterns, styles, and infrastructure for AstroNox sites.",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -103,6 +103,31 @@
103
103
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
104
104
  }
105
105
 
106
+ .grid[data-layout='content-sidebar']:where(
107
+ :has(> [data-composition='grid-item'][data-position='sticky'])
108
+ ) {
109
+ --grid-sticky-viewport-block-size: calc(
110
+ 100vh - var(--nox-site-header-height) - var(--nox-layout-gap) * 2
111
+ );
112
+ --grid-sticky-viewport-block-size: calc(
113
+ 100dvh - var(--nox-site-header-height) - var(--nox-layout-gap) * 2
114
+ );
115
+ --grid-sticky-peer-position: sticky;
116
+ --grid-sticky-peer-inset-block-start: var(--nox-layout-gap);
117
+ --table-progressive-runway-block-size: var(--grid-sticky-viewport-block-size);
118
+
119
+ min-block-size: var(--grid-sticky-viewport-block-size);
120
+ }
121
+
122
+ .grid[data-layout='content-sidebar']:where(
123
+ :has(> [data-composition='grid-item'][data-position='sticky'])
124
+ )
125
+ > [data-composition='grid-item'][data-position='static']
126
+ > .grid-item__content {
127
+ position: var(--grid-sticky-peer-position);
128
+ inset-block-start: var(--grid-sticky-peer-inset-block-start);
129
+ }
130
+
106
131
  .grid[data-rows] {
107
132
  grid-template-rows: repeat(var(--grid-rows), minmax(0, 1fr));
108
133
  }
@@ -112,6 +137,9 @@
112
137
  [data-layout='fixed'],
113
138
  [data-layout='content-sidebar']
114
139
  )[data-collapse-at='sm'] {
140
+ --grid-sticky-viewport-block-size: 0px;
141
+ --grid-sticky-peer-position: static;
142
+ --grid-sticky-peer-inset-block-start: auto;
115
143
  grid-template-columns: 1fr;
116
144
  }
117
145
 
@@ -164,6 +192,9 @@
164
192
  [data-layout='fixed'],
165
193
  [data-layout='content-sidebar']
166
194
  )[data-collapse-at='md'] {
195
+ --grid-sticky-viewport-block-size: 0px;
196
+ --grid-sticky-peer-position: static;
197
+ --grid-sticky-peer-inset-block-start: auto;
167
198
  grid-template-columns: 1fr;
168
199
  }
169
200
 
@@ -216,6 +247,9 @@
216
247
  [data-layout='fixed'],
217
248
  [data-layout='content-sidebar']
218
249
  )[data-collapse-at='lg'] {
250
+ --grid-sticky-viewport-block-size: 0px;
251
+ --grid-sticky-peer-position: static;
252
+ --grid-sticky-peer-inset-block-start: auto;
219
253
  grid-template-columns: 1fr;
220
254
  }
221
255
 
@@ -268,6 +302,9 @@
268
302
  [data-layout='fixed'],
269
303
  [data-layout='content-sidebar']
270
304
  )[data-collapse-at='xl'] {
305
+ --grid-sticky-viewport-block-size: 0px;
306
+ --grid-sticky-peer-position: static;
307
+ --grid-sticky-peer-inset-block-start: auto;
271
308
  grid-template-columns: 1fr;
272
309
  }
273
310
 
@@ -49,13 +49,19 @@
49
49
  position: relative;
50
50
  display: block;
51
51
  overflow: visible;
52
- block-size: 0;
53
- min-block-size: 0;
52
+ block-size: var(--table-progressive-runway-block-size, 0px);
53
+ min-block-size: var(--table-progressive-runway-block-size, 0px);
54
54
  border: 0;
55
55
  border-radius: 0;
56
56
  background: transparent;
57
57
  }
58
58
 
59
+ .table-pagination[data-table-progressive-enhanced='true']
60
+ .table-pagination__sentinel {
61
+ inset-block-start: 0;
62
+ inset-block-end: auto;
63
+ }
64
+
59
65
  .table-pagination[data-table-progressive-enhanced='true']
60
66
  .table-pagination__content {
61
67
  block-size: 0;
@@ -76,7 +82,8 @@
76
82
  .table-pagination__link:focus-visible {
77
83
  z-index: 1;
78
84
  inset-inline: 0;
79
- inset-block-end: 0;
85
+ inset-block-start: 0;
86
+ inset-block-end: auto;
80
87
  display: grid;
81
88
  overflow: visible;
82
89
  width: auto;
@@ -406,6 +406,7 @@ export function initTableProgressive(root: HTMLElement): () => void {
406
406
  generation += 1;
407
407
  request?.abort();
408
408
  request = null;
409
+ activePagination.hidden = false;
409
410
  updateTableState(state);
410
411
  addSkeleton(batchSize);
411
412
  detachRenderedRows();