@instacks/peak 1.0.1 → 1.1.1

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 CHANGED
@@ -205,7 +205,8 @@ variants.
205
205
 
206
206
  `.peak-card-link` on one link makes the whole card clickable (other links stay clickable) and
207
207
  lifts it on hover. Badges: `.peak-badge` with `.secondary`, `.contrast`, `.accent`, `.success`,
208
- `.warning`, `.danger`, `.info`, plus `.solid`, `.outline`, `.dot`. `.peak-card` gives any element
208
+ `.warning`, `.danger`, `.info`, plus `.solid`, `.outline`, `.dot`; a long label wraps inside its
209
+ container. `.peak-card` gives any element
209
210
  the card look. All of these classes also work on a Stacks container stack's class field.
210
211
 
211
212
  ## Typography
@@ -232,7 +233,8 @@ Code blocks that scroll get a shade along each edge with more code beyond it (CS
232
233
  `<a class="peak-anchor" href="#id">#</a>` in a heading is a link to it, shown on hover and focus.
233
234
 
234
235
  Text colors: `.peak-text-primary`, `-secondary`, `-contrast`, `-muted`, `-success`, `-danger`,
235
- `-info`. Headings get balanced line breaks, letter-spacing from `--peak-heading-tracking` (h1 4/3
236
+ `-info`. Alignment by writing direction: `.peak-text-start`, `-center`, `-end`; margin resets
237
+ `.peak-mt-0` and `.peak-mb-0`. Headings get balanced line breaks, letter-spacing from `--peak-heading-tracking` (h1 4/3
236
238
  of it, `.peak-display` 5/3) and Blades' per-level line heights around `--peak-heading-line-height`.
237
239
  Optional weights for h1 (`--peak-display-weight`), h4–h6 (`--peak-subheading-font-weight`) and
238
240
  buttons (`--peak-button-font-weight`) fall back to the heading or body weight while unset.
package/dist/peak.css CHANGED
@@ -4308,11 +4308,12 @@
4308
4308
  --_peak-badge-bg: var(--peak-primary-tint);
4309
4309
  --_peak-badge-solid-fg: var(--peak-on-primary);
4310
4310
  --_peak-badge-solid-bg: var(--peak-primary-fill);
4311
+ overflow-wrap: anywhere;
4311
4312
  background-color: var(--_peak-badge-bg);
4313
+ max-inline-size: 100%;
4312
4314
  color: var(--_peak-badge-fg);
4313
- white-space: nowrap;
4314
4315
  vertical-align: .125em;
4315
- border-radius: 999px;
4316
+ border-radius: calc(.5lh + .125rem);
4316
4317
  align-items: center;
4317
4318
  gap: .375em;
4318
4319
  padding: .125rem .5rem;
@@ -4385,6 +4386,7 @@
4385
4386
  content: "";
4386
4387
  background-color: currentColor;
4387
4388
  border-radius: 50%;
4389
+ flex: none;
4388
4390
  block-size: .5em;
4389
4391
  inline-size: .5em;
4390
4392
  }
@@ -5269,6 +5271,26 @@
5269
5271
  font-size: var(--peak-h6);
5270
5272
  }
5271
5273
 
5274
+ .peak-text-start {
5275
+ text-align: start;
5276
+ }
5277
+
5278
+ .peak-text-center {
5279
+ text-align: center;
5280
+ }
5281
+
5282
+ .peak-text-end {
5283
+ text-align: end;
5284
+ }
5285
+
5286
+ .peak-mt-0 {
5287
+ margin-block-start: 0;
5288
+ }
5289
+
5290
+ .peak-mb-0 {
5291
+ margin-block-end: 0;
5292
+ }
5293
+
5272
5294
  .peak-visually-hidden:not(:focus-within) {
5273
5295
  clip-path: inset(50%);
5274
5296
  white-space: nowrap;