@leabankab/component-library 8.11.0 → 8.12.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/CHANGELOG.md +15 -0
- package/dist/component-library.es.js +1292 -1277
- package/dist/component-library.es.js.map +1 -1
- package/dist/component-library.umd.js +2 -2
- package/dist/component-library.umd.js.map +1 -1
- package/dist/cookie-consent-react.cjs +1 -1
- package/dist/cookie-consent-react.cjs.map +1 -1
- package/dist/cookie-consent-react.mjs +8 -8
- package/dist/cookie-consent-react.mjs.map +1 -1
- package/dist/cookie-consent.css +1 -1
- package/dist/i18n/languages.d.ts +34 -0
- package/dist/index.css +1 -1
- package/dist/next-intl/index.d.ts +21 -0
- package/dist/next-intl/lea-intl-provider.d.ts +35 -0
- package/dist/next-intl/server.d.ts +24 -0
- package/dist/next-intl/texts.d.ts +77 -0
- package/dist/next-intl/use-texts.d.ts +28 -0
- package/dist/next-intl-server.mjs +11 -0
- package/dist/next-intl-server.mjs.map +1 -0
- package/dist/next-intl-texts-De3tiuSm.mjs +25 -0
- package/dist/next-intl-texts-De3tiuSm.mjs.map +1 -0
- package/dist/next-intl.mjs +37 -0
- package/dist/next-intl.mjs.map +1 -0
- package/dist/website/arrow-reveal-link.d.ts +11 -4
- package/dist/website/side-nav/side-nav.d.ts +5 -2
- package/dist/website.cjs +1 -1
- package/dist/website.cjs.map +1 -1
- package/dist/website.css +1 -1
- package/dist/website.mjs +84 -65
- package/dist/website.mjs.map +1 -1
- package/package.json +15 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 8.12.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- c8bbe8e: `Accordion` `card` variant: a hovered header is now `neutral-100` and a pressed one `neutral-200`, as in the `solid` variant. The hover was `bg.subtle`, the same grey as the section the cards sit on, so a hovered card blended into it. No props change.
|
|
8
|
+
- c8bbe8e: `SideNav` (`@leabankab/component-library/website`): a click on a link moves the purple arrow there at once, before the next page arrives. The arrow grows in over 0.2s while the old one shrinks away, as the header menu's arrows do, and jumps under reduced motion. `aria-current` stays on the page's own link until `items` marks another, and a click that opens a new tab or window (Ctrl, ⌘, Shift, `target`) leaves the arrow where it is. No props change.
|
|
9
|
+
|
|
10
|
+
## 8.12.0
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- fe73cf6: - New import path `@leabankab/component-library/next-intl`, for apps that use next-intl (`^4`, an optional peer). `LeaIntlProvider` sets the library's language and country from next-intl's locale, so an app no longer maps its locale to a `Language` or renders `LeaProvider` and `CountryProvider` itself. `useTexts` reads the app's own texts, kept beside the component and checked with `satisfies Texts`: each text must have every language of the locales the app declares to next-intl, so a text with only Norwegian in an app that also has Swedish and Finnish doesn't compile. See Docs → Translations.
|
|
15
|
+
- New import path `@leabankab/component-library/next-intl/server` with `getTexts`, the same for server components.
|
|
16
|
+
- New `toLanguage(locale)` in the main entry: the library language for a locale code (`nb` and `nb-NO` are `"no"`, `sv` is `"se"`, `fi-FI` is `"fi"`).
|
|
17
|
+
|
|
3
18
|
## 8.11.0
|
|
4
19
|
|
|
5
20
|
### Minor Changes
|