anentrypoint-design 0.0.463 → 0.0.464

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/247420.css CHANGED
@@ -990,6 +990,28 @@
990
990
  margin-top: var(--space-2);
991
991
  }
992
992
 
993
+ /* A lede immediately followed by the article body is a named pairing too --
994
+ same rationale as the heading+lede gap above. Without this, .lede's
995
+ margin:0 leaves zero space above the first paragraph while every
996
+ paragraph-to-paragraph gap below it uses --space-4 (.ds-prose p), so the
997
+ dek reads as glued to the body it introduces. */
998
+ .ds-247420 .lede + .post-body, .ds-247420 .t-lede + .post-body, .ds-247420 .lede + .ds-prose, .ds-247420 .t-lede + .ds-prose {
999
+ margin-top: var(--space-4);
1000
+ }
1001
+
1002
+ /* Same gap-ownership problem again for .ds-section (hero-content.css):
1003
+ `* + .ds-section { margin-top: 0 }` deliberately relies on the PRECEDING
1004
+ sibling supplying the lead-in space, so two spacing primitives can
1005
+ coordinate into one gap instead of stacking. .lede supplies none (margin:0
1006
+ by design), so a lede-then-section pairing (e.g. project_page's h1 -> lede
1007
+ -> "install" section) collapses to a flush 0px gap instead of inheriting
1008
+ .ds-section's own --space-8 lead. Measured live on project_page: the
1009
+ "install" h3 sat ~4px from the lede above it (padding only) vs the
1010
+ intended --space-8/2 gap other section-adjacent siblings get. */
1011
+ .ds-247420 .lede + .ds-section, .ds-247420 .t-lede + .ds-section {
1012
+ margin-top: var(--space-8);
1013
+ }
1014
+
993
1015
  .ds-247420 .eyebrow {
994
1016
  font-family: var(--ff-mono);
995
1017
  font-size: var(--fs-tiny);
@@ -2289,6 +2311,13 @@
2289
2311
  color: var(--fg-3); text-transform: uppercase; letter-spacing: var(--tr-caps);
2290
2312
  background: var(--bg-2);
2291
2313
  }
2314
+ /* letter-spacing adds trailing space AFTER the last glyph too, but the table's
2315
+ own border-radius+overflow:hidden (above) clips flush to the card edge --
2316
+ the last header's positive tracking bleeds past its own padding box and
2317
+ gets cropped mid-word ("STATUS" -> "STATI"). Absorb that bleed with a bit
2318
+ of extra right padding on the last column only, so no header text sits
2319
+ closer to the clip edge than --tr-caps can push it. */
2320
+ .ds-247420 table th:last-child { padding-right: calc(var(--space-2-75) + var(--tr-caps, 0px)); }
2292
2321
  .ds-247420 table td { padding: calc(var(--space-2) * var(--density)) var(--space-2-75); border-top: 1px solid var(--rule); }
2293
2322
  .ds-247420 table tr.clickable { cursor: pointer; }
2294
2323
  .ds-247420 table tr.clickable:hover td { background: var(--bg-2); }
@@ -4721,6 +4750,40 @@
4721
4750
  border-bottom-color: var(--accent-ink);
4722
4751
  }
4723
4752
 
4753
+ /* Switch primitive (form-primitives.js Toggle) -- track + sliding knob.
4754
+ Previously unstyled anywhere in this repo (a bare button with no visible
4755
+ affordance), so every real consumer resorted to a local literal-bracket-
4756
+ text reimplementation ('[x] on'/'[ ] off') instead. Sized off --space
4757
+ tokens: a 40x22 track (2x11 knob diameter + 2px inset each side) is the
4758
+ standard iOS/Material switch proportion, not an arbitrary literal. */
4759
+ .ds-247420 .ds-toggle {
4760
+ appearance: none; -webkit-appearance: none;
4761
+ display: inline-flex; align-items: center; flex-shrink: 0;
4762
+ width: 40px; height: 22px; padding: 2px;
4763
+ border: 1px solid var(--rule-strong); border-radius: var(--r-pill, 999px);
4764
+ background: var(--bg-3); box-shadow: none; cursor: pointer;
4765
+ transition: background-color var(--dur-snap) var(--ease), border-color var(--dur-snap) var(--ease);
4766
+ }
4767
+ .ds-247420 .ds-toggle-knob {
4768
+ width: 16px; height: 16px; border-radius: 50%;
4769
+ background: var(--fg-3);
4770
+ transition: transform var(--dur-snap) var(--ease), background-color var(--dur-snap) var(--ease);
4771
+ }
4772
+ .ds-247420 .ds-toggle[aria-checked="true"] {
4773
+ background: var(--accent-ink); border-color: var(--accent-ink);
4774
+ }
4775
+ .ds-247420 .ds-toggle[aria-checked="true"] .ds-toggle-knob {
4776
+ background: var(--panel-0, #fff);
4777
+ transform: translateX(18px);
4778
+ }
4779
+ .ds-247420 .ds-toggle:disabled { opacity: 0.5; cursor: not-allowed; }
4780
+ .ds-247420 .ds-toggle:focus-visible {
4781
+ outline: var(--focus-w) solid var(--focus-color);
4782
+ outline-offset: var(--focus-offset);
4783
+ }
4784
+ .ds-247420 .ds-toggle-row { display: inline-flex; align-items: center; gap: var(--space-2); cursor: pointer; }
4785
+ .ds-247420 .ds-toggle-row .ds-toggle-label { color: inherit; }
4786
+
4724
4787
  /* -- Field controls: themed base for TextField / Select / SearchInput --
4725
4788
  Root fix: previously only `transition` was set, so themed apps got
4726
4789
  browser-default white boxes in dark mode and labels collided with inputs