hydrateless 0.6.0 → 0.8.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/alert.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Alert — `<div class="hl-alert" role="alert" data-hl-intent="…">` with an
2
+ * Alert: `<div class="hl-alert" role="alert" data-hl-intent="…">` with an
3
3
  * optional icon, `.hl-alert-title`, and body content.
4
4
  * data-hl-intent: info (default) | success | warning | danger | neutral
5
5
  */
package/dist/avatar.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Avatar — `<span class="hl-avatar">` containing an `<img>` or fallback
2
+ * Avatar: `<span class="hl-avatar">` containing an `<img>` or fallback
3
3
  * initials/icon. Stack with `<div class="hl-avatar-group">`.
4
4
  * data-hl-size: xs | sm | md (default) | lg | xl
5
5
  * data-hl-shape: square
package/dist/badge.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Badge — `<span class="hl-badge" data-hl-intent="…" data-hl-variant="…">`.
2
+ * Badge: `<span class="hl-badge" data-hl-intent="…" data-hl-variant="…">`.
3
3
  * data-hl-intent: neutral (default) | primary | danger | success | warning | info
4
4
  * data-hl-variant: soft (default) | solid | outline
5
5
  * data-hl-size: sm | md (default)
package/dist/button.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Button — `<button class="hl-button">` (works on `<a>`/`<input>` too).
2
+ * Button: `<button class="hl-button">` (works on `<a>`/`<input>` too).
3
3
  *
4
4
  * Color is driven by a small set of local custom properties so the
5
5
  * intent × variant matrix stays DRY: `data-hl-intent` swaps the accent set,
package/dist/card.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Card — `<div class="hl-card">` with optional `.hl-card-header`,
2
+ * Card: `<div class="hl-card">` with optional `.hl-card-header`,
3
3
  * `.hl-card-body`, `.hl-card-footer`, `.hl-card-title`, `.hl-card-description`.
4
4
  * data-hl-interactive: hover/active elevation for clickable cards
5
5
  */
package/dist/checkbox.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Checkbox — `<label class="hl-checkbox"><input type="checkbox"><span>…</span></label>`.
2
+ * Checkbox: `<label class="hl-checkbox"><input type="checkbox"><span>…</span></label>`.
3
3
  * The native input is restyled (appearance:none) with a CSS checkmark, keeping
4
4
  * full keyboard + form semantics.
5
5
  */
package/dist/combobox.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Combobox — `<div data-hl-combobox>` wrapping an `<input>` and a
2
+ * Combobox: `<div data-hl-combobox>` wrapping an `<input>` and a
3
3
  * `<ul role="listbox">` of `<li role="option">`. The enhancer toggles the
4
4
  * listbox and manages `aria-activedescendant`.
5
5
  */
@@ -26,6 +26,24 @@
26
26
  box-shadow: var(--hl-overlay-shadow);
27
27
  }
28
28
 
29
+ /* Modern engines pin the listbox to the input via the anchor-name the
30
+ enhancer sets, so it escapes overflow-clipping ancestors. */
31
+ @supports (anchor-name: --x) {
32
+ [data-hl-combobox] [role='listbox'] {
33
+ position: fixed;
34
+ top: auto;
35
+ right: auto;
36
+ bottom: auto;
37
+ left: auto;
38
+ width: anchor-size(width);
39
+ inset-area: block-end;
40
+ position-area: block-end;
41
+ position-try-fallbacks: flip-block;
42
+ margin-top: var(--hl-space-1);
43
+ margin-bottom: var(--hl-space-1);
44
+ }
45
+ }
46
+
29
47
  [data-hl-combobox] [role='listbox'][hidden] {
30
48
  display: none;
31
49
  }
package/dist/command.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Command palette — `<div data-hl-command>` containing a search input
2
+ * Command palette: `<div data-hl-command>` containing a search input
3
3
  * (`[data-hl-command-input]`), an empty state (`[data-hl-command-empty]`), and a
4
4
  * `[data-hl-command-list] role="listbox"` of grouped `[role="option"]` items.
5
5
  * Often placed inside a `<dialog class="hl-modal">`.