@overdoser/react-toolkit 0.13.0 → 0.14.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/CHANGELOG.md +27 -0
- package/index.css +1 -1
- package/index.layered.css +1 -1
- package/llms.txt +2 -0
- package/manifest.json +5 -2
- package/package.json +1 -1
- package/recipes/floating-copy-button.tsx +68 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,33 @@ All notable changes to `@overdoser/react-toolkit` are documented here.
|
|
|
4
4
|
The format is based on [Keep a Changelog](https://keepachangelog.com/), and this
|
|
5
5
|
project adheres to [Semantic Versioning](https://semver.org/).
|
|
6
6
|
|
|
7
|
+
## [0.14.0]
|
|
8
|
+
|
|
9
|
+
Buttons floated over content no longer let it show through their fills.
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- **Opaque ActionButton phase surfaces** — the success and armed phases and
|
|
14
|
+
the ghost variant's hover fill used the global `*-light` tokens, which are
|
|
15
|
+
translucent 8% washes; content behind the button (a code line under a
|
|
16
|
+
floating `CopyButton`) showed through during the success morph. The
|
|
17
|
+
defaults of `--crk-action-success-bg` / `--crk-action-danger-bg` and the
|
|
18
|
+
ghost hover now composite the accent over `--crk-color-bg` via
|
|
19
|
+
`color-mix`, so every fill is opaque and follows a theme's background.
|
|
20
|
+
- **Button ghost fills** — same opaque composite for the ghost hover, and
|
|
21
|
+
the `:active` fill no longer hardcodes indigo: both derive from the live
|
|
22
|
+
`--crk-color-primary`, so themes that override the primary color get
|
|
23
|
+
on-brand tints instead of the stock indigo.
|
|
24
|
+
|
|
25
|
+
### Added
|
|
26
|
+
|
|
27
|
+
- **`recipes/floating-copy-button.tsx`** — a `CodeSnippet` with a
|
|
28
|
+
`CopyButton` pinned to its corner. Encodes the floating-over-content
|
|
29
|
+
pattern: `secondary`/`ghost` are transparent at rest by design, so the
|
|
30
|
+
button sits on a wrapper with a solid `--crk-color-bg` fill and matching
|
|
31
|
+
radius (and `secondary` is preferred there for its visible outline). New
|
|
32
|
+
`OverCodeSnippet` story exercises every fill over long code lines.
|
|
33
|
+
|
|
7
34
|
## [0.13.0]
|
|
8
35
|
|
|
9
36
|
Trace events no longer have to be HTTP requests, and the event inspector is
|