@reykjavik/hanna-react 0.10.136 → 0.10.138
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/AccordionList.js +3 -3
- package/ActionCards.js +2 -2
- package/Alert.js +2 -2
- package/ArticleMeta.js +2 -2
- package/Attention.js +2 -2
- package/AutosuggestSearch.js +3 -3
- package/BasicTable.js +2 -2
- package/BgBox.js +2 -2
- package/Bling.js +2 -2
- package/BreadCrumbs.js +2 -2
- package/ButtonBar.js +3 -3
- package/CHANGELOG.md +13 -0
- package/CarouselStepper.js +2 -2
- package/CenterColumn.js +2 -2
- package/ContactBubble.js +3 -3
- package/ContentArticle.js +2 -2
- package/ContentImage.js +2 -2
- package/ExtraLinks.js +3 -3
- package/FeatureList.js +2 -2
- package/FieldGroup.js +2 -2
- package/FileInput.js +3 -3
- package/FooterInfo.js +3 -3
- package/Footnote.js +2 -2
- package/Form.js +2 -2
- package/FormField.js +2 -2
- package/GridBlocks.js +2 -2
- package/Heading.js +2 -2
- package/HeroBlock.js +2 -2
- package/IframeBlock.js +2 -2
- package/IframedLayout.js +2 -2
- package/ImageCards.js +2 -2
- package/InfoBlock.js +2 -2
- package/InfoHero.js +2 -2
- package/LabeledTextBlock.js +2 -2
- package/Layout.js +2 -2
- package/MainMenu/_Auxiliary.js +2 -2
- package/MainMenu/_PrimaryPanel.js +3 -3
- package/MainMenu.d.ts +2 -3
- package/MainMenu.js +4 -4
- package/MainMenu2.d.ts +2 -3
- package/MainMenu2.js +4 -4
- package/MiniMetrics.js +2 -2
- package/Multiselect.js +4 -5
- package/NameCard.js +3 -3
- package/NameCards.js +2 -2
- package/NewsHero.js +1 -2
- package/PageFilter.js +2 -2
- package/PageHeading.js +2 -2
- package/Pagination.js +4 -4
- package/ProcessOverview.js +2 -2
- package/README.md +1 -1
- package/ReadSpeakerPlayer.js +2 -2
- package/RelatedLinks.js +2 -2
- package/RowBlock.js +2 -2
- package/RowBlockColumn.js +2 -2
- package/SearchResults.js +2 -2
- package/ShareButtons.js +2 -2
- package/Sharpie.js +2 -2
- package/SiteSearchCurtain.js +2 -2
- package/Skeleton.js +2 -2
- package/SubHeading.js +2 -2
- package/Tabs.js +2 -2
- package/TagPill.js +3 -3
- package/TextBlock.js +2 -2
- package/TextInput.js +2 -2
- package/Tooltip.js +3 -3
- package/VSpacer.js +2 -2
- package/WizardLayout.js +2 -2
- package/WizardStepper.js +3 -3
- package/_abstract/_AbstractCarousel.js +1 -2
- package/_abstract/_AbstractModal.js +3 -3
- package/_abstract/_Block.js +2 -2
- package/_abstract/_Button.js +2 -2
- package/_abstract/_CardList.d.ts +3 -2
- package/_abstract/_CardList.js +4 -4
- package/_abstract/_CarouselPaging.js +2 -2
- package/_abstract/_Image.js +3 -3
- package/_abstract/_Quote.js +2 -2
- package/_abstract/_ScrollWrapper.js +2 -2
- package/_abstract/_Table.js +2 -3
- package/_abstract/_TogglerGroup.js +2 -2
- package/_abstract/_TogglerGroupField.js +2 -2
- package/_abstract/_TogglerInput.js +2 -2
- package/esm/AccordionList.js +1 -1
- package/esm/ActionCards.js +1 -1
- package/esm/Alert.js +1 -1
- package/esm/ArticleMeta.js +1 -1
- package/esm/Attention.js +1 -1
- package/esm/AutosuggestSearch.js +1 -1
- package/esm/BasicTable.js +1 -1
- package/esm/BgBox.js +1 -1
- package/esm/Bling.js +1 -1
- package/esm/BreadCrumbs.js +1 -1
- package/esm/ButtonBar.js +1 -1
- package/esm/CarouselStepper.js +1 -1
- package/esm/CenterColumn.js +1 -1
- package/esm/ContactBubble.js +1 -1
- package/esm/ContentArticle.js +1 -1
- package/esm/ContentImage.js +1 -1
- package/esm/ExtraLinks.js +1 -1
- package/esm/FeatureList.js +1 -1
- package/esm/FieldGroup.js +1 -1
- package/esm/FileInput.js +1 -1
- package/esm/FooterInfo.js +1 -1
- package/esm/Footnote.js +1 -1
- package/esm/Form.js +1 -1
- package/esm/FormField.js +1 -1
- package/esm/GridBlocks.js +1 -1
- package/esm/Heading.js +1 -1
- package/esm/HeroBlock.js +1 -1
- package/esm/IframeBlock.js +1 -1
- package/esm/IframedLayout.js +1 -1
- package/esm/ImageCards.js +1 -1
- package/esm/InfoBlock.js +1 -1
- package/esm/InfoHero.js +1 -1
- package/esm/LabeledTextBlock.js +1 -1
- package/esm/Layout.js +1 -1
- package/esm/MainMenu/_Auxiliary.js +1 -1
- package/esm/MainMenu/_PrimaryPanel.js +1 -1
- package/esm/MainMenu.d.ts +2 -3
- package/esm/MainMenu.js +1 -1
- package/esm/MainMenu2.d.ts +2 -3
- package/esm/MainMenu2.js +1 -1
- package/esm/MiniMetrics.js +1 -1
- package/esm/Multiselect.js +1 -2
- package/esm/NameCard.js +1 -1
- package/esm/NameCards.js +1 -1
- package/esm/NewsHero.js +1 -2
- package/esm/PageFilter.js +1 -1
- package/esm/PageHeading.js +1 -1
- package/esm/Pagination.js +2 -2
- package/esm/ProcessOverview.js +1 -1
- package/esm/ReadSpeakerPlayer.js +1 -1
- package/esm/RelatedLinks.js +1 -1
- package/esm/RowBlock.js +1 -1
- package/esm/RowBlockColumn.js +1 -1
- package/esm/SearchResults.js +1 -1
- package/esm/ShareButtons.js +1 -1
- package/esm/Sharpie.js +1 -1
- package/esm/SiteSearchCurtain.js +1 -1
- package/esm/Skeleton.js +1 -1
- package/esm/SubHeading.js +1 -1
- package/esm/Tabs.js +1 -1
- package/esm/TagPill.js +1 -1
- package/esm/TextBlock.js +1 -1
- package/esm/TextInput.js +1 -1
- package/esm/Tooltip.js +1 -1
- package/esm/VSpacer.js +1 -1
- package/esm/WizardLayout.js +1 -1
- package/esm/WizardStepper.js +1 -1
- package/esm/_abstract/_AbstractCarousel.js +1 -2
- package/esm/_abstract/_AbstractModal.js +1 -1
- package/esm/_abstract/_Block.js +1 -1
- package/esm/_abstract/_Button.js +1 -1
- package/esm/_abstract/_CardList.d.ts +3 -2
- package/esm/_abstract/_CardList.js +3 -3
- package/esm/_abstract/_CarouselPaging.js +1 -1
- package/esm/_abstract/_Image.js +1 -1
- package/esm/_abstract/_Quote.js +1 -1
- package/esm/_abstract/_ScrollWrapper.js +1 -1
- package/esm/_abstract/_Table.js +1 -2
- package/esm/_abstract/_TogglerGroup.js +1 -1
- package/esm/_abstract/_TogglerGroupField.js +1 -1
- package/esm/_abstract/_TogglerInput.js +1 -1
- package/esm/utils/types.d.ts +2 -2
- package/esm/utils/useScrollEdgeDetect.js +12 -8
- package/package.json +3 -3
- package/utils/types.d.ts +2 -2
- package/utils/useScrollEdgeDetect.js +11 -7
package/esm/ExtraLinks.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { modifiedClass } from '@
|
|
3
|
+
import { modifiedClass } from '@reykjavik/hanna-utils';
|
|
4
4
|
import { CardList } from './_abstract/_CardList.js';
|
|
5
5
|
import { Link } from './_abstract/_Link.js';
|
|
6
6
|
const ExtraLinks__related = (props) => {
|
package/esm/FeatureList.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { modifiedClass } from '@
|
|
2
|
+
import { modifiedClass } from '@reykjavik/hanna-utils';
|
|
3
3
|
import Bling from './Bling.js';
|
|
4
4
|
export const FeatureList = (props) => {
|
|
5
5
|
const { title, features, wrapperProps } = props;
|
package/esm/FieldGroup.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { modifiedClass } from '@
|
|
2
|
+
import { modifiedClass } from '@reykjavik/hanna-utils';
|
|
3
3
|
export const FieldGroup = (props) => {
|
|
4
4
|
const { legend, children, className, disabled, small, wrapperProps } = props;
|
|
5
5
|
return (React.createElement("fieldset", Object.assign({}, wrapperProps, { className: modifiedClass('FieldGroup', small && 'small',
|
package/esm/FileInput.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
2
|
import React, { useEffect, useRef, useState } from 'react';
|
|
3
|
-
import { modifiedClass } from '@
|
|
3
|
+
import { modifiedClass } from '@reykjavik/hanna-utils';
|
|
4
4
|
import { DEFAULT_LANG, ensureHannaLang } from '@reykjavik/hanna-utils/i18n';
|
|
5
5
|
import { useDropzone } from './_mixed_export_resolution_/ReactDropzone.js';
|
|
6
6
|
import { addPreview, formatBytes, getFileListUpdate, releasePreview, } from './FileInput/_FileInput.utils.js';
|
package/esm/FooterInfo.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { modifiedClass } from '@
|
|
2
|
+
import { modifiedClass } from '@reykjavik/hanna-utils';
|
|
3
3
|
export const FooterInfo = (props) => {
|
|
4
4
|
const { boxes } = props;
|
|
5
5
|
return (React.createElement("div", { className: "FooterInfo" }, boxes.map((group, i) => (React.createElement("div", { className: modifiedClass('FooterInfo__group', [
|
package/esm/Footnote.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { modifiedClass } from '@
|
|
2
|
+
import { modifiedClass } from '@reykjavik/hanna-utils';
|
|
3
3
|
export const Footnote = (props) => (React.createElement("div", Object.assign({}, props.wrapperProps, { className: modifiedClass('Footnote', null, (props.wrapperProps || {}).className) }), props.children));
|
|
4
4
|
export default Footnote;
|
package/esm/Form.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { modifiedClass } from '@
|
|
3
|
+
import { modifiedClass } from '@reykjavik/hanna-utils';
|
|
4
4
|
// NOTE: As this component already accepts all `<form/>` props directly,
|
|
5
5
|
// it makes little sense to add support for `wrapperProps` on top.
|
|
6
6
|
export const Form = (props) => {
|
package/esm/FormField.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
2
|
import React, { useCallback, useState } from 'react';
|
|
3
|
-
import { modifiedClass } from '@
|
|
3
|
+
import { modifiedClass } from '@reykjavik/hanna-utils';
|
|
4
4
|
import { DEFAULT_LANG } from '@reykjavik/hanna-utils/i18n';
|
|
5
5
|
import { isPreact } from './utils/env.js';
|
|
6
6
|
import { useDomid } from './utils/useDomid.js';
|
package/esm/GridBlocks.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { modifiedClass } from '@
|
|
2
|
+
import { modifiedClass } from '@reykjavik/hanna-utils';
|
|
3
3
|
import { getEfnistaknUrl } from '@reykjavik/hanna-utils/assets';
|
|
4
4
|
import { Image } from './_abstract/_Image.js';
|
|
5
5
|
import { Link } from './_abstract/_Link.js';
|
package/esm/Heading.js
CHANGED
package/esm/HeroBlock.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { modifiedClass } from '@
|
|
2
|
+
import { modifiedClass } from '@reykjavik/hanna-utils';
|
|
3
3
|
import { getIllustrationUrl } from '@reykjavik/hanna-utils/assets';
|
|
4
4
|
import { Image } from './_abstract/_Image.js';
|
|
5
5
|
import ButtonPrimary from './ButtonPrimary.js';
|
package/esm/IframeBlock.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { modifiedClass } from '@
|
|
2
|
+
import { modifiedClass } from '@reykjavik/hanna-utils';
|
|
3
3
|
import IframeResizer from 'iframe-resizer-react';
|
|
4
4
|
/**
|
|
5
5
|
* When `height` is undefined or "auto", then Add the following code-snipped to the iframed page:
|
package/esm/IframedLayout.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { modifiedClass } from '@
|
|
2
|
+
import { modifiedClass } from '@reykjavik/hanna-utils';
|
|
3
3
|
import { useScrollbarWidthCSSVar } from './utils.js';
|
|
4
4
|
export const IframedLayout = (props) => {
|
|
5
5
|
useScrollbarWidthCSSVar();
|
package/esm/ImageCards.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { modifiedClass } from '@
|
|
3
|
+
import { modifiedClass } from '@reykjavik/hanna-utils';
|
|
4
4
|
import { CardList, } from './_abstract/_CardList.js';
|
|
5
5
|
export const ImageCards = (props) => {
|
|
6
6
|
const { background, wrapperProps } = props, cardListProps = __rest(props, ["background", "wrapperProps"]);
|
package/esm/InfoBlock.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { modifiedClass } from '@
|
|
2
|
+
import { modifiedClass } from '@reykjavik/hanna-utils';
|
|
3
3
|
export const InfoBlock = (props) => {
|
|
4
4
|
const { title, subtitle, items, wrapperProps } = props;
|
|
5
5
|
return (React.createElement("div", Object.assign({}, wrapperProps, { className: modifiedClass('InfoBlock', null, (wrapperProps || {}).className) }),
|
package/esm/InfoHero.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { modifiedClass } from '@
|
|
2
|
+
import { modifiedClass } from '@reykjavik/hanna-utils';
|
|
3
3
|
import { Blings } from './_abstract/_Blings.js';
|
|
4
4
|
import { Image } from './_abstract/_Image.js';
|
|
5
5
|
import { breakOnNL } from './_abstract/breakOnNL.js';
|
package/esm/LabeledTextBlock.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { modifiedClass } from '@
|
|
2
|
+
import { modifiedClass } from '@reykjavik/hanna-utils';
|
|
3
3
|
import ButtonTertiary from './ButtonTertiary.js';
|
|
4
4
|
export const LabeledTextBlock = (props) => {
|
|
5
5
|
const { label, summary, wide, buttons = [], wrapperProps } = props;
|
package/esm/Layout.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { modifiedClass } from '@
|
|
2
|
+
import { modifiedClass } from '@reykjavik/hanna-utils';
|
|
3
3
|
import { getTexts } from '@reykjavik/hanna-utils/i18n';
|
|
4
4
|
import { issueSiteNameWarningInDev, renderLayoutHomeLink } from './_abstract/_Layouts.js';
|
|
5
5
|
import { handleAnchorLinkClick } from './utils/a11yHelpers.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { modifiedClass } from '@
|
|
2
|
+
import { modifiedClass } from '@reykjavik/hanna-utils';
|
|
3
3
|
import { getIllustrationUrl } from '@reykjavik/hanna-utils/assets';
|
|
4
4
|
import { Link } from '../_abstract/_Link.js';
|
|
5
5
|
export const AuxiliaryPanel = (props) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { modifiedClass } from '@
|
|
2
|
+
import { modifiedClass } from '@reykjavik/hanna-utils';
|
|
3
3
|
import { Link } from '../_abstract/_Link.js';
|
|
4
4
|
export const PrimaryPanel = (props) => {
|
|
5
5
|
const { setActivePanel, panel, isParent, isActive, isBrowser, texts } = props;
|
package/esm/MainMenu.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React, { ReactElement } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { Cleanup, EitherObj } from '@reykjavik/hanna-utils';
|
|
2
|
+
import { ClassNameModifiers, Cleanup, EitherObj } from '@reykjavik/hanna-utils';
|
|
4
3
|
import { AuxilaryPanelIllustration, AuxiliaryPanelProps } from './MainMenu/_Auxiliary.js';
|
|
5
4
|
import { MegaMenuItem, MegaMenuItemList, MegaMenuPanel, PrimaryPanelI18n } from './MainMenu/_PrimaryPanel.js';
|
|
6
5
|
import { I18NProps } from './utils/types.js';
|
|
@@ -45,7 +44,7 @@ export type MainMenuItem = {
|
|
|
45
44
|
/**
|
|
46
45
|
* Puts a modifier className for the menu __item <li/> element.
|
|
47
46
|
* */
|
|
48
|
-
modifier?:
|
|
47
|
+
modifier?: ClassNameModifiers;
|
|
49
48
|
/** Signifies if the menu item is part of the page's breadcrumb trail */
|
|
50
49
|
current?: boolean;
|
|
51
50
|
/**
|
package/esm/MainMenu.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useEffect, useMemo, useRef, useState } from 'react';
|
|
2
|
-
import { modifiedClass } from '@hugsmidjan/qj/classUtils';
|
|
3
2
|
import { focusElm } from '@hugsmidjan/qj/focusElm';
|
|
3
|
+
import { modifiedClass, } from '@reykjavik/hanna-utils';
|
|
4
4
|
import { DEFAULT_LANG, getTexts } from '@reykjavik/hanna-utils/i18n';
|
|
5
5
|
import { Link } from './_abstract/_Link.js';
|
|
6
6
|
import { AuxiliaryPanel, } from './MainMenu/_Auxiliary.js';
|
package/esm/MainMenu2.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React, { ReactElement } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { Cleanup, EitherObj } from '@reykjavik/hanna-utils';
|
|
2
|
+
import { ClassNameModifiers, Cleanup, EitherObj } from '@reykjavik/hanna-utils';
|
|
4
3
|
import { Illustration } from '@reykjavik/hanna-utils/assets';
|
|
5
4
|
import { DefaultTexts } from '@reykjavik/hanna-utils/i18n';
|
|
6
5
|
import { I18NProps } from './utils/types.js';
|
|
@@ -26,7 +25,7 @@ export type MainMenu2Item = {
|
|
|
26
25
|
/**
|
|
27
26
|
* Puts a modifier className for the menu __item <li/> element.
|
|
28
27
|
* */
|
|
29
|
-
modifier?:
|
|
28
|
+
modifier?: ClassNameModifiers;
|
|
30
29
|
/** Signifies if the menu item is part of the page's breadcrumb trail */
|
|
31
30
|
current?: boolean;
|
|
32
31
|
/**
|
package/esm/MainMenu2.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { Fragment, useCallback, useEffect, useMemo, useRef, useState, } from 'react';
|
|
2
|
-
import { modifiedClass } from '@
|
|
2
|
+
import { modifiedClass, } from '@reykjavik/hanna-utils';
|
|
3
3
|
import { getIllustrationUrl } from '@reykjavik/hanna-utils/assets';
|
|
4
4
|
import { getTexts } from '@reykjavik/hanna-utils/i18n';
|
|
5
5
|
import { Link } from './_abstract/_Link.js';
|
package/esm/MiniMetrics.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { modifiedClass } from '@
|
|
2
|
+
import { modifiedClass } from '@reykjavik/hanna-utils';
|
|
3
3
|
import { Button } from './_abstract/_Button.js';
|
|
4
4
|
export const MiniMetrics = (props) => {
|
|
5
5
|
const { text, moreButton, wrapperProps } = props;
|
package/esm/Multiselect.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React, { Fragment, useCallback, useEffect, useMemo, useRef, useState, } from 'react';
|
|
2
|
-
import { modifiedClass } from '@hugsmidjan/qj/classUtils';
|
|
3
2
|
import domId from '@hugsmidjan/qj/domid';
|
|
4
|
-
import { notNully } from '@reykjavik/hanna-utils';
|
|
3
|
+
import { modifiedClass, notNully } from '@reykjavik/hanna-utils';
|
|
5
4
|
import { getTexts } from '@reykjavik/hanna-utils/i18n';
|
|
6
5
|
import { filterItems } from './Multiselect/_Multiselect.search.js';
|
|
7
6
|
import { useDomid } from './utils/useDomid.js';
|
package/esm/NameCard.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { modifiedClass } from '@
|
|
2
|
+
import { modifiedClass } from '@reykjavik/hanna-utils';
|
|
3
3
|
import { getTexts } from '@reykjavik/hanna-utils/i18n';
|
|
4
4
|
import { Button } from './_abstract/_Button.js';
|
|
5
5
|
import { breakOnNL } from './_abstract/breakOnNL.js';
|
package/esm/NameCards.js
CHANGED
package/esm/NewsHero.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { modifiedClass } from '@
|
|
3
|
-
import { getStableRandomItem } from '@reykjavik/hanna-utils';
|
|
2
|
+
import { getStableRandomItem, modifiedClass } from '@reykjavik/hanna-utils';
|
|
4
3
|
import { Blings } from './_abstract/_Blings.js';
|
|
5
4
|
import { Image } from './_abstract/_Image.js';
|
|
6
5
|
import ShareButtons from './ShareButtons.js';
|
package/esm/PageFilter.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { modifiedClass } from '@
|
|
2
|
+
import { modifiedClass } from '@reykjavik/hanna-utils';
|
|
3
3
|
import Footnote from './Footnote.js';
|
|
4
4
|
export const PageFilter = (props) => {
|
|
5
5
|
const { title, summary, footnote, filters, children, buttonRow, underlap, wrapperProps, } = props;
|
package/esm/PageHeading.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { modifiedClass } from '@
|
|
2
|
+
import { modifiedClass } from '@reykjavik/hanna-utils';
|
|
3
3
|
export const PageHeading = (props) => {
|
|
4
4
|
const { Tag = 'h1', align, small, children, wrapperProps } = props;
|
|
5
5
|
return (React.createElement(Tag, Object.assign({}, wrapperProps, { className: modifiedClass('PageHeading', [small && 'small', align === 'right' && `align--${align}`], (wrapperProps || {}).className) }), children));
|
package/esm/Pagination.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { memo } from 'react';
|
|
2
|
-
import { modifiedClass } from '@
|
|
2
|
+
import { modifiedClass } from '@reykjavik/hanna-utils';
|
|
3
3
|
import { getTexts } from '@reykjavik/hanna-utils/i18n';
|
|
4
4
|
import { Link } from './_abstract/_Link.js';
|
|
5
5
|
import { generatePageList } from './utils/Pagination.privates.js';
|
|
@@ -89,7 +89,7 @@ export const Pagination = memo((props) => {
|
|
|
89
89
|
' ',
|
|
90
90
|
pageList
|
|
91
91
|
.map((page, i) => {
|
|
92
|
-
return page === '…' ? (React.createElement("span", { className: "Pagination__ellipsis" }, "\u2026")) : (btn({
|
|
92
|
+
return page === '…' ? (React.createElement("span", { className: "Pagination__ellipsis", key: i }, "\u2026")) : (btn({
|
|
93
93
|
key: i,
|
|
94
94
|
page,
|
|
95
95
|
labelLong: texts.pageLabelLong,
|
package/esm/ProcessOverview.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { modifiedClass } from '@
|
|
2
|
+
import { modifiedClass } from '@reykjavik/hanna-utils';
|
|
3
3
|
export const ProcessOverview = (props) => {
|
|
4
4
|
const { title, items, attention, transparent, narrow, wrapperProps } = props;
|
|
5
5
|
return (React.createElement("div", Object.assign({}, wrapperProps, { className: modifiedClass('ProcessOverview', [transparent && 'transparent', narrow && 'narrow'], (wrapperProps || {}).className) }),
|
package/esm/ReadSpeakerPlayer.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useEffect } from 'react';
|
|
2
|
-
import { modifiedClass } from '@
|
|
2
|
+
import { modifiedClass } from '@reykjavik/hanna-utils';
|
|
3
3
|
import { getTexts } from '@reykjavik/hanna-utils/i18n';
|
|
4
4
|
const scriptTagId = 'rs_req_Init';
|
|
5
5
|
const scriptTagSelector = `script#${scriptTagId}`;
|
package/esm/RelatedLinks.js
CHANGED
package/esm/RowBlock.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { modifiedClass } from '@
|
|
2
|
+
import { modifiedClass } from '@reykjavik/hanna-utils';
|
|
3
3
|
export const RowBlock = (props) => {
|
|
4
4
|
const { right, modifier, className, children, wrapperProps } = props;
|
|
5
5
|
return (React.createElement("div", Object.assign({}, wrapperProps, { className: modifiedClass('RowBlock', [modifier, right && 'align--right'], className || (wrapperProps || {}).className) }), children));
|
package/esm/RowBlockColumn.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { modifiedClass } from '@
|
|
2
|
+
import { modifiedClass } from '@reykjavik/hanna-utils';
|
|
3
3
|
export const RowBlockColumn = (props) => {
|
|
4
4
|
const { background, narrow, children, wrapperProps } = props;
|
|
5
5
|
return (React.createElement("div", Object.assign({}, wrapperProps, { className: modifiedClass('RowBlockColumn', [
|
package/esm/SearchResults.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { useEffect, useMemo, useRef } from 'react';
|
|
2
2
|
import { useInView } from 'react-intersection-observer';
|
|
3
|
-
import { modifiedClass } from '@hugsmidjan/qj/classUtils';
|
|
4
3
|
import { prettyNum } from '@hugsmidjan/qj/prettyNum';
|
|
5
4
|
import range from '@hugsmidjan/qj/range';
|
|
5
|
+
import { modifiedClass } from '@reykjavik/hanna-utils';
|
|
6
6
|
import { getTexts } from '@reykjavik/hanna-utils/i18n';
|
|
7
7
|
import { SearchResultsItem, } from './SearchResults/_SearchResultsItem.js';
|
|
8
8
|
import { useDomid } from './utils/useDomid.js';
|
package/esm/ShareButtons.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
|
-
import { modifiedClass } from '@
|
|
2
|
+
import { modifiedClass } from '@reykjavik/hanna-utils';
|
|
3
3
|
import { DEFAULT_LANG } from '@reykjavik/hanna-utils/i18n';
|
|
4
4
|
import { getDocMeta, getShareButtonLabel, openInPopup, shareButtonTexts, shareButtonTypes, } from '@reykjavik/hanna-utils/shareButtonsUtils';
|
|
5
5
|
import { Link } from './_abstract/_Link.js';
|
package/esm/Sharpie.js
CHANGED
package/esm/SiteSearchCurtain.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useEffect } from 'react';
|
|
2
|
-
import { modifiedClass } from '@
|
|
2
|
+
import { modifiedClass } from '@reykjavik/hanna-utils';
|
|
3
3
|
import { isPreact } from './utils/env.js';
|
|
4
4
|
import { useLaggedState } from './utils/useLaggedState.js';
|
|
5
5
|
// NOTE: This component is too low-level (and too esoteric and rarely used)
|
package/esm/Skeleton.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { modifiedClass } from '@hugsmidjan/qj/classUtils';
|
|
3
2
|
import range from '@hugsmidjan/qj/range';
|
|
3
|
+
import { modifiedClass } from '@reykjavik/hanna-utils';
|
|
4
4
|
/**
|
|
5
5
|
Rounds the input number, caps it at max. If it's below min, returns undefined
|
|
6
6
|
*/
|
package/esm/SubHeading.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { modifiedClass } from '@
|
|
2
|
+
import { modifiedClass } from '@reykjavik/hanna-utils';
|
|
3
3
|
export const SubHeading = (props) => {
|
|
4
4
|
const { small, Tag = 'h2', children, align, wide, wrapperProps } = props;
|
|
5
5
|
return (React.createElement(Tag, Object.assign({}, wrapperProps, { className: modifiedClass('SubHeading', [
|
package/esm/Tabs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
|
-
import { modifiedClass } from '@hugsmidjan/qj/classUtils';
|
|
3
2
|
import { getFrag } from '@hugsmidjan/qj/frag';
|
|
3
|
+
import { modifiedClass } from '@reykjavik/hanna-utils';
|
|
4
4
|
import { useIsBrowserSide } from './utils.js';
|
|
5
5
|
const navKeyEffects = {
|
|
6
6
|
ArrowUp: -1,
|
package/esm/TagPill.js
CHANGED
package/esm/TextBlock.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { modifiedClass } from '@
|
|
2
|
+
import { modifiedClass } from '@reykjavik/hanna-utils';
|
|
3
3
|
export const TextBlock = (props) => {
|
|
4
4
|
const { children, align, labelled, wide, small, wrapperProps } = props;
|
|
5
5
|
const rightAligned = align === 'right' || labelled;
|
package/esm/TextInput.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
2
|
import React, { useEffect, useRef, useState } from 'react';
|
|
3
|
-
import { modifiedClass } from '@
|
|
3
|
+
import { modifiedClass } from '@reykjavik/hanna-utils';
|
|
4
4
|
import FormField, { groupFormFieldWrapperProps, } from './FormField.js';
|
|
5
5
|
export const TextInput = (props) => {
|
|
6
6
|
var _a;
|
package/esm/Tooltip.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useRef } from 'react';
|
|
2
2
|
import { arrow as arrowPlugin, autoUpdate, flip, offset, shift, useFloating, } from '@floating-ui/react';
|
|
3
|
-
import { modifiedClass } from '@
|
|
3
|
+
import { modifiedClass } from '@reykjavik/hanna-utils';
|
|
4
4
|
import { useCallbackOnEsc } from './utils/useCallbackOnEsc.js';
|
|
5
5
|
import { useLaggedState } from './utils/useLaggedState.js';
|
|
6
6
|
const getSide = (placement) => placement.split('-')[0];
|
package/esm/VSpacer.js
CHANGED
package/esm/WizardLayout.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { modifiedClass } from '@
|
|
2
|
+
import { modifiedClass } from '@reykjavik/hanna-utils';
|
|
3
3
|
import { renderLayoutHomeLink } from './_abstract/_Layouts.js';
|
|
4
4
|
import { useScrollbarWidthCSSVar } from './utils/useScrollbarWidthCSSVar.js';
|
|
5
5
|
import { useIsBrowserSide } from './utils.js';
|
package/esm/WizardStepper.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { modifiedClass } from '@
|
|
2
|
+
import { modifiedClass } from '@reykjavik/hanna-utils';
|
|
3
3
|
export const WizardStepper = (props) => {
|
|
4
4
|
const { steps, activeStep = -1, allowForwardSkip, disableBacktrack, onClick, wrapperProps, } = props;
|
|
5
5
|
return (React.createElement("div", Object.assign({}, wrapperProps, { className: modifiedClass('WizardStepper', activeStep === -1 && 'preview', (wrapperProps || {}).className) }), steps.map((step, i) => {
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import React, { useEffect, useMemo, useRef, useState, } from 'react';
|
|
2
2
|
import A from '@hugsmidjan/qj/A';
|
|
3
|
-
import { modifiedClass } from '@hugsmidjan/qj/classUtils';
|
|
4
3
|
import debounce from '@hugsmidjan/qj/debounce';
|
|
5
4
|
import { focusElm } from '@hugsmidjan/qj/focusElm';
|
|
6
5
|
import throttle from '@hugsmidjan/qj/throttle';
|
|
7
|
-
import { notNully } from '@reykjavik/hanna-utils';
|
|
6
|
+
import { modifiedClass, notNully } from '@reykjavik/hanna-utils';
|
|
8
7
|
import CarouselStepper from '../CarouselStepper.js';
|
|
9
8
|
import { useIsBrowserSide } from '../utils.js';
|
|
10
9
|
// ---------------------------------------------------------------------------
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { Fragment, useEffect, useRef, useState, } from 'react';
|
|
2
|
-
import { modifiedClass } from '@hugsmidjan/qj/classUtils';
|
|
3
2
|
import { focusElm } from '@hugsmidjan/qj/focusElm';
|
|
3
|
+
import { modifiedClass } from '@reykjavik/hanna-utils';
|
|
4
4
|
import { getTexts } from '@reykjavik/hanna-utils/i18n';
|
|
5
5
|
import { FocusTrap } from '../FocusTrap.js';
|
|
6
6
|
import { useDomid, useIsBrowserSide, } from '../utils.js';
|
package/esm/_abstract/_Block.js
CHANGED
package/esm/_abstract/_Button.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { modifiedClass } from '@
|
|
3
|
+
import { modifiedClass } from '@reykjavik/hanna-utils';
|
|
4
4
|
import { Link } from './_Link.js';
|
|
5
5
|
// ---------------------------------------------------------------------------
|
|
6
6
|
const sizes = {
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import React, { ReactElement, ReactNode } from 'react';
|
|
1
|
+
import React, { MouseEventHandler, ReactElement, ReactNode } from 'react';
|
|
2
2
|
import { EitherObj } from '@reykjavik/hanna-utils';
|
|
3
3
|
import { WrapperElmProps } from '../utils.js';
|
|
4
4
|
import { BemModifierProps } from '../utils/types.js';
|
|
5
5
|
import { ImageProps } from './_Image.js';
|
|
6
6
|
export type TextCardProps = {
|
|
7
7
|
title: string;
|
|
8
|
-
href
|
|
8
|
+
href?: string;
|
|
9
9
|
meta?: string | JSX.Element;
|
|
10
10
|
summary?: string | JSX.Element;
|
|
11
11
|
target?: React.HTMLAttributeAnchorTarget;
|
|
12
|
+
onClick?: MouseEventHandler;
|
|
12
13
|
};
|
|
13
14
|
export type ImageCardProps = TextCardProps & {
|
|
14
15
|
image?: ImageProps;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { modifiedClass } from '@
|
|
2
|
+
import { modifiedClass } from '@reykjavik/hanna-utils';
|
|
3
3
|
import { Button } from './_Button.js';
|
|
4
4
|
import { Image } from './_Image.js';
|
|
5
5
|
const Card = (props) => {
|
|
6
|
-
const { bem, href, title, imgPlaceholder, image, meta, summary, target } = props;
|
|
6
|
+
const { bem, href, title, imgPlaceholder, image, meta, summary, target, onClick } = props;
|
|
7
7
|
const cardClass = `${bem}__card`;
|
|
8
8
|
return (React.createElement(React.Fragment, null,
|
|
9
|
-
React.createElement(Button, { bem: cardClass, href: href, target: target },
|
|
9
|
+
React.createElement(Button, { bem: cardClass, href: href, target: target, onClick: onClick },
|
|
10
10
|
' ',
|
|
11
11
|
!!(image || imgPlaceholder) && (React.createElement(Image, Object.assign({ bem: `${bem}__image` }, image, { placeholder: imgPlaceholder }))),
|
|
12
12
|
React.createElement("span", { className: `${cardClass}__title` }, title),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { modifiedClass } from '@
|
|
2
|
+
import { modifiedClass } from '@reykjavik/hanna-utils';
|
|
3
3
|
const CarouselPaging = (props) => {
|
|
4
4
|
const { bem = 'CarouselPaging', modifier, current, itemCount, setCurrent } = props;
|
|
5
5
|
const { next, prev, unit = '' } = props.texts;
|
package/esm/_abstract/_Image.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { classes, modifiedClass } from '@
|
|
2
|
+
import { classes, modifiedClass } from '@reykjavik/hanna-utils';
|
|
3
3
|
import { useGetSVGtext } from '../utils/useGetSVGtext.js';
|
|
4
4
|
// eslint-disable-next-line complexity
|
|
5
5
|
export const Image = (props) => {
|
package/esm/_abstract/_Quote.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { modifiedClass } from '@
|
|
2
|
+
import { modifiedClass } from '@reykjavik/hanna-utils';
|
|
3
3
|
import { Link } from './_Link.js';
|
|
4
4
|
export const _Quote = (props) => {
|
|
5
5
|
const { bem, children, by, byHref, wrapperProps } = props;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { modifiedClass } from '@
|
|
2
|
+
import { modifiedClass } from '@reykjavik/hanna-utils';
|
|
3
3
|
import { useIsBrowserSide } from '../utils.js';
|
|
4
4
|
import { useScrollEdgeDetect, } from '../utils/useScrollEdgeDetect.js';
|
|
5
5
|
const scrollOptions = {
|
package/esm/_abstract/_Table.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React, { memo, useMemo } from 'react';
|
|
2
|
-
import { classes } from '@
|
|
3
|
-
import { notNully } from '@reykjavik/hanna-utils';
|
|
2
|
+
import { classes, notNully } from '@reykjavik/hanna-utils';
|
|
4
3
|
const TableCell = (props) => {
|
|
5
4
|
const { data, meta = {}, rowIdx, rowScope } = props;
|
|
6
5
|
const Tag = props.th ? 'th' : 'td';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useMemo } from 'react';
|
|
2
|
-
import { modifiedClass } from '@
|
|
2
|
+
import { modifiedClass } from '@reykjavik/hanna-utils';
|
|
3
3
|
import { useMixedControlState } from '../utils.js';
|
|
4
4
|
import { useDomid } from '../utils/useDomid.js';
|
|
5
5
|
export const TogglerGroup = (props) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
2
|
import React, { useMemo } from 'react';
|
|
3
|
-
import { modifiedClass } from '@
|
|
3
|
+
import { modifiedClass } from '@reykjavik/hanna-utils';
|
|
4
4
|
import FormField, { groupFormFieldWrapperProps, } from '../FormField.js';
|
|
5
5
|
import { TogglerGroup, } from './_TogglerGroup.js';
|
|
6
6
|
export const TogglerGroupField = (props) => {
|