@leabankab/component-library 8.8.0 → 8.9.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 +30 -0
- package/dist/component-library.es.js +1241 -1215
- 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/components/buttons/{action-button.d.ts → action-button/action-button.d.ts} +1 -1
- package/dist/components/buttons/{button.d.ts → button/button.d.ts} +2 -2
- package/dist/components/buttons/{close-button.d.ts → close-button/close-button.d.ts} +1 -1
- package/dist/components/buttons/{download-trigger.d.ts → download-trigger/download-trigger.d.ts} +2 -2
- package/dist/components/buttons/{icon-button.d.ts → icon-button/icon-button.d.ts} +1 -1
- package/dist/components/buttons/index.d.ts +6 -6
- package/dist/components/buttons/{skip-link.d.ts → skip-link/skip-link.d.ts} +1 -1
- package/dist/components/data-display/{card.d.ts → card/card.d.ts} +1 -1
- package/dist/components/data-display/{chip.d.ts → chip/chip.d.ts} +1 -1
- package/dist/components/data-display/index.d.ts +17 -16
- package/dist/components/data-display/{link-card.d.ts → link-card/link-card.d.ts} +1 -1
- package/dist/components/data-display/{media-card.d.ts → media-card/media-card.d.ts} +1 -1
- package/dist/components/data-display/{service-card.d.ts → service-card/service-card.d.ts} +1 -1
- package/dist/components/feedback/{alert.d.ts → alert/alert.d.ts} +2 -2
- package/dist/components/feedback/{global-alert.d.ts → global-alert/global-alert.d.ts} +1 -1
- package/dist/components/feedback/index.d.ts +8 -8
- package/dist/components/feedback/{toast.d.ts → toast/toast.d.ts} +1 -1
- package/dist/components/form/{autocomplete.d.ts → autocomplete/autocomplete.d.ts} +2 -2
- package/dist/components/form/{email-input.d.ts → email-input/email-input.d.ts} +1 -1
- package/dist/components/form/index.d.ts +12 -12
- package/dist/components/form/{multi-select.d.ts → multi-select/multi-select.d.ts} +1 -1
- package/dist/components/form/{number-input-unit.d.ts → number-input/number-input-unit.d.ts} +2 -2
- package/dist/components/form/{radio.d.ts → radio/radio.d.ts} +2 -2
- package/dist/components/form/{radio-card.d.ts → radio-card/radio-card.d.ts} +3 -3
- package/dist/components/form/{select.d.ts → select/select.d.ts} +13 -3
- package/dist/components/form/select-field.d.ts +20 -1
- package/dist/components/form/{slider.d.ts → slider/slider.d.ts} +1 -1
- package/dist/components/index.d.ts +1 -2
- package/dist/components/layout/{container.d.ts → container/container.d.ts} +1 -1
- package/dist/components/layout/{grid.d.ts → grid/grid.d.ts} +2 -2
- package/dist/components/layout/index.d.ts +3 -3
- package/dist/components/layout/{stack.d.ts → stack/stack.d.ts} +2 -2
- package/dist/components/navigation/{form-stepper.d.ts → form-stepper/form-stepper.d.ts} +2 -2
- package/dist/components/navigation/index.d.ts +9 -8
- package/dist/components/navigation/{linear-form-stepper.d.ts → linear-form-stepper/linear-form-stepper.d.ts} +2 -2
- package/dist/components/navigation/{progress-circle.d.ts → progress-circle/progress-circle.d.ts} +1 -1
- package/dist/components/navigation/{tabs.d.ts → tabs/tabs.d.ts} +1 -1
- package/dist/components/surfaces/index.d.ts +3 -3
- package/dist/components/typography/index.d.ts +3 -3
- package/dist/components/typography/{link.d.ts → link/link.d.ts} +1 -1
- package/dist/components/typography/{text.d.ts → text/text.d.ts} +4 -4
- package/dist/cookie-consent-react.cjs.map +1 -1
- package/dist/cookie-consent-react.mjs +3 -3
- package/dist/cookie-consent-react.mjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/utils/{formatDecimalString.d.ts → format-decimal-string.d.ts} +1 -1
- package/dist/utils/index.d.ts +5 -5
- package/dist/website/alert-banner/alert-banner.d.ts +48 -0
- package/dist/website/arrow-reveal-link.d.ts +22 -0
- package/dist/website/{use-carousel.d.ts → carousel/use-carousel.d.ts} +3 -1
- package/dist/website/{expanding-cards-item.d.ts → expanding-cards/expanding-cards-item.d.ts} +1 -1
- package/dist/website/index.d.ts +25 -21
- package/dist/website/{payment-feature.d.ts → payment-feature/payment-feature.d.ts} +1 -1
- package/dist/website/{section.d.ts → section/section.d.ts} +1 -1
- package/dist/website/side-nav/side-nav.d.ts +57 -0
- package/dist/website/side-nav/use-side-nav-labels.d.ts +5 -0
- package/dist/website/site-footer/flags.d.ts +7 -0
- package/dist/website/site-footer/site-footer.d.ts +122 -0
- package/dist/website/site-footer/use-site-footer-labels.d.ts +7 -0
- package/dist/website/site-header/site-header-menu.d.ts +21 -0
- package/dist/website/site-header/site-header.d.ts +141 -0
- package/dist/website/site-header-link.d.ts +16 -0
- package/dist/website/use-site-header-labels.d.ts +7 -0
- package/dist/website.cjs +1 -1
- package/dist/website.cjs.map +1 -1
- package/dist/website.css +1 -1
- package/dist/website.mjs +1185 -433
- package/dist/website.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/components/ui/index.d.ts +0 -2
- /package/dist/components/buttons/{use-download-labels.d.ts → download-trigger/use-download-labels.d.ts} +0 -0
- /package/dist/components/data-display/{article-card.d.ts → article-card/article-card.d.ts} +0 -0
- /package/dist/components/data-display/{avatar.d.ts → avatar/avatar.d.ts} +0 -0
- /package/dist/components/{ui → data-display/brand-divider}/brand-divider.d.ts +0 -0
- /package/dist/components/data-display/{use-chip-labels.d.ts → chip/use-chip-labels.d.ts} +0 -0
- /package/dist/components/data-display/{data-field.d.ts → data-field/data-field.d.ts} +0 -0
- /package/dist/components/data-display/{featured-image.d.ts → featured-image/featured-image.d.ts} +0 -0
- /package/dist/components/data-display/{arrow-circle.d.ts → link-card/arrow-circle.d.ts} +0 -0
- /package/dist/components/data-display/{partner-row.d.ts → partner-row/partner-row.d.ts} +0 -0
- /package/dist/components/data-display/{rich-text.d.ts → rich-text/rich-text.d.ts} +0 -0
- /package/dist/components/data-display/{star-rating.d.ts → star-rating/star-rating.d.ts} +0 -0
- /package/dist/components/data-display/{use-star-rating-labels.d.ts → star-rating/use-star-rating-labels.d.ts} +0 -0
- /package/dist/components/data-display/{table.d.ts → table/table.d.ts} +0 -0
- /package/dist/components/data-display/{testimonial-card.d.ts → testimonial-card/testimonial-card.d.ts} +0 -0
- /package/dist/components/data-display/{tooltip.d.ts → tooltip/tooltip.d.ts} +0 -0
- /package/dist/components/data-display/{use-video-player-labels.d.ts → video-player/use-video-player-labels.d.ts} +0 -0
- /package/dist/components/data-display/{video-player.d.ts → video-player/video-player.d.ts} +0 -0
- /package/dist/components/feedback/{dialog.d.ts → dialog/dialog.d.ts} +0 -0
- /package/dist/components/feedback/{simple-dialog.d.ts → dialog/simple-dialog.d.ts} +0 -0
- /package/dist/components/feedback/{drawer.d.ts → drawer/drawer.d.ts} +0 -0
- /package/dist/components/feedback/{simple-drawer.d.ts → drawer/simple-drawer.d.ts} +0 -0
- /package/dist/components/feedback/{skeleton.d.ts → skeleton/skeleton.d.ts} +0 -0
- /package/dist/components/form/{amount-slider.d.ts → amount-slider/amount-slider.d.ts} +0 -0
- /package/dist/components/form/{checkbox.d.ts → checkbox/checkbox.d.ts} +0 -0
- /package/dist/components/form/{input.d.ts → input/input.d.ts} +0 -0
- /package/dist/components/form/{number-input.d.ts → number-input/number-input.d.ts} +0 -0
- /package/dist/components/form/{switch.d.ts → switch/switch.d.ts} +0 -0
- /package/dist/components/{ui → navigation/app-header}/app-header.d.ts +0 -0
- /package/dist/components/navigation/{breadcrumbs.d.ts → breadcrumbs/breadcrumbs.d.ts} +0 -0
- /package/dist/components/navigation/{use-breadcrumbs-labels.d.ts → breadcrumbs/use-breadcrumbs-labels.d.ts} +0 -0
- /package/dist/components/navigation/{step-progress.d.ts → linear-form-stepper/step-progress.d.ts} +0 -0
- /package/dist/components/navigation/{pagination.d.ts → pagination/pagination.d.ts} +0 -0
- /package/dist/components/navigation/{pagination-dots.d.ts → pagination-dots/pagination-dots.d.ts} +0 -0
- /package/dist/components/surfaces/{accordion.d.ts → accordion/accordion.d.ts} +0 -0
- /package/dist/components/surfaces/{simple-accordion.d.ts → accordion/simple-accordion.d.ts} +0 -0
- /package/dist/components/surfaces/{panel.d.ts → panel/panel.d.ts} +0 -0
- /package/dist/components/typography/{lists.d.ts → lists/lists.d.ts} +0 -0
- /package/dist/utils/{downloadFile.d.ts → download-file.d.ts} +0 -0
- /package/dist/utils/{formatDecimal.d.ts → format-decimal.d.ts} +0 -0
- /package/dist/utils/{formatPercentage.d.ts → format-percentage.d.ts} +0 -0
- /package/dist/utils/{parseExpirationDate.d.ts → parse-expiration-date.d.ts} +0 -0
- /package/dist/website/{brand-letters.d.ts → brand-letters/brand-letters.d.ts} +0 -0
- /package/dist/website/{use-brand-letters-labels.d.ts → brand-letters/use-brand-letters-labels.d.ts} +0 -0
- /package/dist/website/{calculator.d.ts → calculator/calculator.d.ts} +0 -0
- /package/dist/website/{carousel.d.ts → carousel/carousel.d.ts} +0 -0
- /package/dist/website/{use-carousel-labels.d.ts → carousel/use-carousel-labels.d.ts} +0 -0
- /package/dist/website/{cta-banner.d.ts → cta-banner/cta-banner.d.ts} +0 -0
- /package/dist/website/{expanding-cards-context.d.ts → expanding-cards/expanding-cards-context.d.ts} +0 -0
- /package/dist/website/{expanding-cards.d.ts → expanding-cards/expanding-cards.d.ts} +0 -0
- /package/dist/website/{hero.d.ts → hero/hero.d.ts} +0 -0
- /package/dist/website/{hero-service-grid.d.ts → hero-service-grid/hero-service-grid.d.ts} +0 -0
- /package/dist/website/{navigation-grid.d.ts → navigation-grid/navigation-grid.d.ts} +0 -0
- /package/dist/website/{partner-list.d.ts → partner-list/partner-list.d.ts} +0 -0
- /package/dist/website/{use-partner-list-labels.d.ts → partner-list/use-partner-list-labels.d.ts} +0 -0
- /package/dist/website/{promo-grid.d.ts → promo-grid/promo-grid.d.ts} +0 -0
- /package/dist/website/{section-header.d.ts → section-header/section-header.d.ts} +0 -0
- /package/dist/website/{service-card-grid.d.ts → service-card-grid/service-card-grid.d.ts} +0 -0
- /package/dist/website/{split-content.d.ts → split-content/split-content.d.ts} +0 -0
- /package/dist/website/{stats.d.ts → stats/stats.d.ts} +0 -0
- /package/dist/website/{testimonials.d.ts → testimonials/testimonials.d.ts} +0 -0
- /package/dist/website/{use-testimonials-labels.d.ts → testimonials/use-testimonials-labels.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 8.9.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 8f4a4ed: `Carousel` in `@leabankab/component-library/website`: the previous and next buttons and the dots now scroll the track smoothly, over 0.6s with the `standard` easing, where the browser's own smooth scroll crossed most of a slide in a few frames and read as a jump. A swipe, a wheel or a key during the scroll takes over from it. Under reduced motion the buttons still jump.
|
|
8
|
+
- a0895af: Every component now sits in a folder of its own, with its stylesheet and story. Nothing you import changes: the package root and the `date-picker`, `dev-panel`, `react-hook-form` and `cookie-consent` subpaths export the same names, and the bundles and CSS are the same. Only the type declarations you would reach through `@leabankab/component-library/dist/*` moved one folder down (`dist/components/form/input.d.ts` is now `dist/components/form/input/input.d.ts`); import the types from `@leabankab/component-library` instead.
|
|
9
|
+
- 2bab4ca: Storybook: every component page is now titled with the component's name as you import it (`Buttons/ActionButton`, `Website/CtaBanner`), and `Text`, `Link` and `List` moved from "Data Display" to "Typography". The URLs of those pages changed, so update any bookmarks. The Getting Started, Quirks & Caveats and FAQ pages now show the same text as `docs/development/`. Nothing you import changed; only files you would reach through `@leabankab/component-library/dist/*` moved: the type declarations of `AppHeader` and `BrandDivider` (from `dist/components/ui/` to `dist/components/navigation/` and `dist/components/data-display/`) and of the formatting helpers in `dist/utils/` (now kebab-case, e.g. `download-file.d.ts`).
|
|
10
|
+
- 0caac37: Every website section now sits in a folder of its own, with its stylesheet and story. Nothing you import from `@leabankab/component-library/website` changes, and the bundle and `website.css` are the same. Only the type declarations you would reach through `@leabankab/component-library/dist/*` moved one folder down (`dist/website/hero.d.ts` is now `dist/website/hero/hero.d.ts`); import the types from `@leabankab/component-library/website` instead.
|
|
11
|
+
|
|
12
|
+
## 8.9.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- 783e06d: `SiteFooter`, `SideNav` and `AlertBanner` in `@leabankab/component-library/website`, and a compact `Select` with icons on its options.
|
|
17
|
+
|
|
18
|
+
- `SiteFooter`: the footer of leabank.no. The white logo in a link to the start page (`logo`, `homeRender`), the columns of links (`columns`, each a `title` and `links`, links as in `SiteHeader`), the market select (`market`: the four markets with their flags, sorted by name, calling `onValueChange` with the market's code), the social links (`social`), a button that opens the cookie settings (`onOpenCookieSettings`) and the copyright line (`copyright`), on a near-black band. The titles are `h2` (`titleRender` for another element).
|
|
19
|
+
- `SideNav`: the two-column page of the Investor Relations pages. A beige sidebar of links (`items`, the current page marked `current`, with `aria-current="page"` and a purple arrow), a `nav` named by `label`, beside a white `Panel size="sm"` with the `breadcrumbs` and the page's content. From 1024px the sidebar is 280px wide (360 from 1312px) and stays in view.
|
|
20
|
+
- `AlertBanner`: the website's notice, a 48px icon (`icon`, Lucide's `TriangleAlert` by default) beside a `title` and a `text`, in the colour of its `Section`. Not announced and not closable.
|
|
21
|
+
- `Select`: `size="sm"`, a compact 32px field with its `label` above it; `size="md"` (the default) is unchanged. An option can take an `icon` (20px, decoration), shown before its label in the list and, once chosen, in the field, unless `startAdornment` is given. `SelectSize` is exported.
|
|
22
|
+
|
|
23
|
+
New strings: "Marked", "Sosiale medier", "Cookie-innstillinger" and "Sidemeny", in Norwegian, Swedish, Finnish and Spanish.
|
|
24
|
+
|
|
25
|
+
- 4356e2e: `SiteHeader` in `@leabankab/component-library/website`: the header of leabank.no.
|
|
26
|
+
|
|
27
|
+
- A white bar over the brand stripe with the logo (`logo`, in a link to the start page, `homeRender` for a router link), the items (`items`, and `endItems` at the end of the row), the account icon (`account`) and the call to action (`action`, an `ActionButton size="sm"`).
|
|
28
|
+
- An item is a link (`href`, or a router link in `render`) or a menu of `groups`, each with a `title`, `links` and a `cta`. From 1312px the items are pills and a menu opens under its pill on hover, on a click or from the keyboard, as a panel of links (Base UI's `NavigationMenu`, no `role="menu"`). The closed menus are in the server's markup, hidden, so crawlers find their links.
|
|
29
|
+
- Below 1312px a menu button opens the items in a dialog from the top (Base UI's `Drawer`): the focus moves into it and back to the button, the page behind does not scroll, and each menu is a row that opens under itself with the item's own page as its first link, one at a time. Its links are not in the page while it is closed, and following a link closes it.
|
|
30
|
+
|
|
31
|
+
New strings: "Hovedmeny", "Meny", "Lukk meny" and "Lea Bank, forside", in Norwegian, Swedish, Finnish and Spanish.
|
|
32
|
+
|
|
3
33
|
## 8.8.0
|
|
4
34
|
|
|
5
35
|
### Minor Changes
|