anentrypoint-design 0.0.240 → 0.0.242

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/src/page-html.js CHANGED
@@ -103,7 +103,7 @@ ${cssLink}
103
103
  { "imports": { "anentrypoint-design": "https://unpkg.com/anentrypoint-design@latest/dist/247420.js" } }
104
104
  </script>
105
105
  <style>
106
- .app-stage { width: 100%; max-width: var(--measure-wide, 940px); margin-inline: auto; padding: var(--space-6, 48px) var(--space-4, 24px) var(--space-8, 96px); display: grid; gap: var(--space-6, 48px); box-sizing: border-box }
106
+ .app-stage { width: 100%; max-width: var(--stage-wide, min(96vw, 1440px)); margin-inline: auto; padding: var(--space-6, 48px) var(--space-4, 24px) var(--space-8, 96px); display: grid; gap: var(--space-6, 48px); box-sizing: border-box }
107
107
  @media (max-width: 768px) { .app-stage { padding: var(--space-4, 24px) var(--space-3, 16px) var(--space-6, 48px); gap: var(--space-5, 32px) } }
108
108
  .page-body > :first-child { margin-top: 0 }
109
109
  .page-body h1 { margin-top: 0 } .page-body h2 { margin-top: var(--space-5, 32px) } .page-body h3 { margin-top: var(--space-4, 24px) }
@@ -128,14 +128,13 @@ a.row:hover .ds-row-arrow { opacity: 1 }
128
128
  /* accent sits on its own line, muted, so it reads as a distinct aside instead
129
129
  of running on from the hero body sentence. */
130
130
  .ds-hero-accent { display: block; margin-top: var(--space-2, 8px); color: var(--fg-3) }
131
- /* feature rows — single-column stack with a rail accent (the dashboard .row grid
132
- forces a 3-col code/title/meta layout that mangles title+desc+benefit) */
131
+ /* feature rows — single-column stack (the dashboard .row grid forces a 3-col
132
+ code/title/meta layout that mangles title+desc+benefit) */
133
133
  /* background uses a theme-neutral panel token (resolves per data-theme) so dark
134
- mode doesn't flash a literal white card before/independent of the bundle. */
135
- .ds-feature { position: relative; padding: var(--space-3, 16px) var(--space-4, 24px); background: var(--panel-1, var(--bg)); border-radius: var(--r-2, 14px); display: grid; gap: var(--space-1, 4px) }
136
- .ds-feature::before { content: ''; position: absolute; left: 0; top: var(--space-2, 8px); bottom: var(--space-2, 8px); width: 3px; border-radius: 3px; background: var(--rail-color, var(--rule-strong)) }
137
- .ds-feature.rail-green { --rail-color: var(--green) } .ds-feature.rail-purple { --rail-color: var(--purple) } .ds-feature.rail-mascot { --rail-color: var(--mascot) }
138
- .ds-feature.rail-sun { --rail-color: var(--sun) } .ds-feature.rail-flame { --rail-color: var(--flame) } .ds-feature.rail-sky { --rail-color: var(--sky) }
134
+ mode doesn't flash a literal white card before/independent of the bundle.
135
+ Flat tonal fill only no border-left rail accent (house style: no bespoke
136
+ tile chrome, no shadows, no borders; see ui_kits/gallery/app.js). */
137
+ .ds-feature { padding: var(--space-3, 16px) var(--space-4, 24px); background: var(--panel-1, var(--bg)); border-radius: var(--r-2, 14px); display: grid; gap: var(--space-1, 4px) }
139
138
  .ds-feature + .ds-feature { margin-top: var(--space-2, 8px) }
140
139
  .ds-feature-title { font-weight: 600; font-size: var(--fs-lg, 18px); color: var(--fg) }
141
140
  .ds-feature-desc { font-size: var(--fs-sm, 15px); color: var(--fg-2); line-height: 1.5; overflow-wrap: anywhere }
@@ -149,7 +148,6 @@ ${headExtra}
149
148
  <script type="module">
150
149
  import { mount, components as C, h } from 'anentrypoint-design';
151
150
  const data = JSON.parse(document.getElementById('__site__').textContent);
152
- const RAILS = ['rail-green', 'rail-purple', 'rail-mascot', 'rail-sun', 'rail-flame', 'rail-sky'];
153
151
 
154
152
  function heroNode(hero) {
155
153
  if (!hero) return null;
@@ -177,13 +175,12 @@ function heroNode(hero) {
177
175
  }
178
176
 
179
177
  function sectionNode(sec, idx) {
180
- const rail = RAILS[idx % RAILS.length];
181
178
  const features = sec.features || sec.items || [];
182
179
  const rows = features.map((f, i) => {
183
180
  const kids = [h('div', { key: 't', class: 'ds-feature-title' }, String(f.name || ''))];
184
181
  if (f.desc) kids.push(h('div', { key: 'd', class: 'ds-feature-desc', innerHTML: String(f.desc).replace(/\`([^\`]+)\`/g, '<code>$1</code>') }));
185
182
  if (f.benefit) kids.push(h('div', { key: 'b', class: 'ds-feature-benefit' }, String(f.benefit)));
186
- return h('div', { key: i, class: 'ds-feature ' + rail }, ...kids);
183
+ return h('div', { key: i, class: 'ds-feature' }, ...kids);
187
184
  });
188
185
  return C.Section({
189
186
  title: sec.name || sec.title || sec.id,
@@ -200,14 +197,13 @@ function examplesNode(examples) {
200
197
  return C.Section({
201
198
  title: 'explore',
202
199
  children: examples.map((e, i) => {
203
- const rail = RAILS[(i + 1) % RAILS.length];
204
200
  const kids = [
205
201
  h('span', { key: 'c', class: 'code' }, String(i + 1).padStart(2, '0')),
206
202
  h('span', { key: 't', class: 'title' }, String(e.label || e.name || e.href || '')),
207
203
  ];
208
204
  if (e.desc) kids.push(h('span', { key: 'm', class: 'meta dim' }, ' — ' + e.desc));
209
205
  kids.push(h('span', { key: 'a', class: 'ds-row-arrow' }, '->'));
210
- return h('a', { key: i, class: 'row ' + rail, href: e.href || '#' }, ...kids);
206
+ return h('a', { key: i, class: 'row', href: e.href || '#' }, ...kids);
211
207
  }),
212
208
  });
213
209
  }