diff --git a/.changeset/cms-supplied-texts.md b/.changeset/cms-supplied-texts.md deleted file mode 100644 index 78ecb18..0000000 --- a/.changeset/cms-supplied-texts.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"non-spooky-react-cookie": minor ---- - -Texts can now come from a CMS. - -- `null` anywhere in `texts` keeps the built-in text, the way a CMS returns a blank field. An empty string still replaces it. -- `dialog.itemsLabel` is now a trigger label, "Show services", followed by the count in parentheses: "Show services (2)". It no longer needs plural forms, so every text is a plain string and all texts are plain JSON. -- New type `DeepPartialNullable`. `TextOverrides` now accepts `null`. -- New exports from both entries: `getBuiltInTexts(language)` and `BUILT_IN_LANGUAGES`. -- Right-to-left: text aligns to the start and the switch thumb moves left under `dir="rtl"`. diff --git a/.changeset/derived-theme-colors.md b/.changeset/derived-theme-colors.md deleted file mode 100644 index d67f60a..0000000 --- a/.changeset/derived-theme-colors.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -"non-spooky-react-cookie": minor ---- - -Theming that holds together when you change more than the primary color. - -- **Derived colors.** Muted text, borders, secondary buttons, hover backgrounds, the required-category card, the switch track and thumb and the focus ring are now derived with `color-mix()` from `--nsr-surface`, `--nsr-text`, `--nsr-primary` and `--nsr-primary-text` on the banner, dialog and settings link. A dark surface in light mode (or a light primary) no longer leaves near-white cards, unreadable grey text or an invisible switch thumb behind. Setting the variable yourself (`--nsr-muted`, `--nsr-border`, `--nsr-surface-muted`, `--nsr-secondary`, `--nsr-secondary-text`, `--nsr-primary-hover`, `--nsr-ring`, `--nsr-switch-off`, `--nsr-switch-thumb`) still wins. -- **`ThemePalette` covers every color**: new `primaryHoverColor`, `surfaceMutedColor`, `ringColor`, `switchOffColor`, `switchThumbColor` and `backdropColor`. -- **`darkTheme` prop** on the provider: colors that apply only under a `.dark` / `[data-theme="dark"]` ancestor. `theme` alone still applies in both modes. -- Theme values are emitted as a `