@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.
Files changed (169) hide show
  1. package/AccordionList.js +3 -3
  2. package/ActionCards.js +2 -2
  3. package/Alert.js +2 -2
  4. package/ArticleMeta.js +2 -2
  5. package/Attention.js +2 -2
  6. package/AutosuggestSearch.js +3 -3
  7. package/BasicTable.js +2 -2
  8. package/BgBox.js +2 -2
  9. package/Bling.js +2 -2
  10. package/BreadCrumbs.js +2 -2
  11. package/ButtonBar.js +3 -3
  12. package/CHANGELOG.md +13 -0
  13. package/CarouselStepper.js +2 -2
  14. package/CenterColumn.js +2 -2
  15. package/ContactBubble.js +3 -3
  16. package/ContentArticle.js +2 -2
  17. package/ContentImage.js +2 -2
  18. package/ExtraLinks.js +3 -3
  19. package/FeatureList.js +2 -2
  20. package/FieldGroup.js +2 -2
  21. package/FileInput.js +3 -3
  22. package/FooterInfo.js +3 -3
  23. package/Footnote.js +2 -2
  24. package/Form.js +2 -2
  25. package/FormField.js +2 -2
  26. package/GridBlocks.js +2 -2
  27. package/Heading.js +2 -2
  28. package/HeroBlock.js +2 -2
  29. package/IframeBlock.js +2 -2
  30. package/IframedLayout.js +2 -2
  31. package/ImageCards.js +2 -2
  32. package/InfoBlock.js +2 -2
  33. package/InfoHero.js +2 -2
  34. package/LabeledTextBlock.js +2 -2
  35. package/Layout.js +2 -2
  36. package/MainMenu/_Auxiliary.js +2 -2
  37. package/MainMenu/_PrimaryPanel.js +3 -3
  38. package/MainMenu.d.ts +2 -3
  39. package/MainMenu.js +4 -4
  40. package/MainMenu2.d.ts +2 -3
  41. package/MainMenu2.js +4 -4
  42. package/MiniMetrics.js +2 -2
  43. package/Multiselect.js +4 -5
  44. package/NameCard.js +3 -3
  45. package/NameCards.js +2 -2
  46. package/NewsHero.js +1 -2
  47. package/PageFilter.js +2 -2
  48. package/PageHeading.js +2 -2
  49. package/Pagination.js +4 -4
  50. package/ProcessOverview.js +2 -2
  51. package/README.md +1 -1
  52. package/ReadSpeakerPlayer.js +2 -2
  53. package/RelatedLinks.js +2 -2
  54. package/RowBlock.js +2 -2
  55. package/RowBlockColumn.js +2 -2
  56. package/SearchResults.js +2 -2
  57. package/ShareButtons.js +2 -2
  58. package/Sharpie.js +2 -2
  59. package/SiteSearchCurtain.js +2 -2
  60. package/Skeleton.js +2 -2
  61. package/SubHeading.js +2 -2
  62. package/Tabs.js +2 -2
  63. package/TagPill.js +3 -3
  64. package/TextBlock.js +2 -2
  65. package/TextInput.js +2 -2
  66. package/Tooltip.js +3 -3
  67. package/VSpacer.js +2 -2
  68. package/WizardLayout.js +2 -2
  69. package/WizardStepper.js +3 -3
  70. package/_abstract/_AbstractCarousel.js +1 -2
  71. package/_abstract/_AbstractModal.js +3 -3
  72. package/_abstract/_Block.js +2 -2
  73. package/_abstract/_Button.js +2 -2
  74. package/_abstract/_CardList.d.ts +3 -2
  75. package/_abstract/_CardList.js +4 -4
  76. package/_abstract/_CarouselPaging.js +2 -2
  77. package/_abstract/_Image.js +3 -3
  78. package/_abstract/_Quote.js +2 -2
  79. package/_abstract/_ScrollWrapper.js +2 -2
  80. package/_abstract/_Table.js +2 -3
  81. package/_abstract/_TogglerGroup.js +2 -2
  82. package/_abstract/_TogglerGroupField.js +2 -2
  83. package/_abstract/_TogglerInput.js +2 -2
  84. package/esm/AccordionList.js +1 -1
  85. package/esm/ActionCards.js +1 -1
  86. package/esm/Alert.js +1 -1
  87. package/esm/ArticleMeta.js +1 -1
  88. package/esm/Attention.js +1 -1
  89. package/esm/AutosuggestSearch.js +1 -1
  90. package/esm/BasicTable.js +1 -1
  91. package/esm/BgBox.js +1 -1
  92. package/esm/Bling.js +1 -1
  93. package/esm/BreadCrumbs.js +1 -1
  94. package/esm/ButtonBar.js +1 -1
  95. package/esm/CarouselStepper.js +1 -1
  96. package/esm/CenterColumn.js +1 -1
  97. package/esm/ContactBubble.js +1 -1
  98. package/esm/ContentArticle.js +1 -1
  99. package/esm/ContentImage.js +1 -1
  100. package/esm/ExtraLinks.js +1 -1
  101. package/esm/FeatureList.js +1 -1
  102. package/esm/FieldGroup.js +1 -1
  103. package/esm/FileInput.js +1 -1
  104. package/esm/FooterInfo.js +1 -1
  105. package/esm/Footnote.js +1 -1
  106. package/esm/Form.js +1 -1
  107. package/esm/FormField.js +1 -1
  108. package/esm/GridBlocks.js +1 -1
  109. package/esm/Heading.js +1 -1
  110. package/esm/HeroBlock.js +1 -1
  111. package/esm/IframeBlock.js +1 -1
  112. package/esm/IframedLayout.js +1 -1
  113. package/esm/ImageCards.js +1 -1
  114. package/esm/InfoBlock.js +1 -1
  115. package/esm/InfoHero.js +1 -1
  116. package/esm/LabeledTextBlock.js +1 -1
  117. package/esm/Layout.js +1 -1
  118. package/esm/MainMenu/_Auxiliary.js +1 -1
  119. package/esm/MainMenu/_PrimaryPanel.js +1 -1
  120. package/esm/MainMenu.d.ts +2 -3
  121. package/esm/MainMenu.js +1 -1
  122. package/esm/MainMenu2.d.ts +2 -3
  123. package/esm/MainMenu2.js +1 -1
  124. package/esm/MiniMetrics.js +1 -1
  125. package/esm/Multiselect.js +1 -2
  126. package/esm/NameCard.js +1 -1
  127. package/esm/NameCards.js +1 -1
  128. package/esm/NewsHero.js +1 -2
  129. package/esm/PageFilter.js +1 -1
  130. package/esm/PageHeading.js +1 -1
  131. package/esm/Pagination.js +2 -2
  132. package/esm/ProcessOverview.js +1 -1
  133. package/esm/ReadSpeakerPlayer.js +1 -1
  134. package/esm/RelatedLinks.js +1 -1
  135. package/esm/RowBlock.js +1 -1
  136. package/esm/RowBlockColumn.js +1 -1
  137. package/esm/SearchResults.js +1 -1
  138. package/esm/ShareButtons.js +1 -1
  139. package/esm/Sharpie.js +1 -1
  140. package/esm/SiteSearchCurtain.js +1 -1
  141. package/esm/Skeleton.js +1 -1
  142. package/esm/SubHeading.js +1 -1
  143. package/esm/Tabs.js +1 -1
  144. package/esm/TagPill.js +1 -1
  145. package/esm/TextBlock.js +1 -1
  146. package/esm/TextInput.js +1 -1
  147. package/esm/Tooltip.js +1 -1
  148. package/esm/VSpacer.js +1 -1
  149. package/esm/WizardLayout.js +1 -1
  150. package/esm/WizardStepper.js +1 -1
  151. package/esm/_abstract/_AbstractCarousel.js +1 -2
  152. package/esm/_abstract/_AbstractModal.js +1 -1
  153. package/esm/_abstract/_Block.js +1 -1
  154. package/esm/_abstract/_Button.js +1 -1
  155. package/esm/_abstract/_CardList.d.ts +3 -2
  156. package/esm/_abstract/_CardList.js +3 -3
  157. package/esm/_abstract/_CarouselPaging.js +1 -1
  158. package/esm/_abstract/_Image.js +1 -1
  159. package/esm/_abstract/_Quote.js +1 -1
  160. package/esm/_abstract/_ScrollWrapper.js +1 -1
  161. package/esm/_abstract/_Table.js +1 -2
  162. package/esm/_abstract/_TogglerGroup.js +1 -1
  163. package/esm/_abstract/_TogglerGroupField.js +1 -1
  164. package/esm/_abstract/_TogglerInput.js +1 -1
  165. package/esm/utils/types.d.ts +2 -2
  166. package/esm/utils/useScrollEdgeDetect.js +12 -8
  167. package/package.json +3 -3
  168. package/utils/types.d.ts +2 -2
  169. 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 '@hugsmidjan/qj/classUtils';
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) => {
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { modifiedClass } from '@hugsmidjan/qj/classUtils';
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 '@hugsmidjan/qj/classUtils';
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 '@hugsmidjan/qj/classUtils';
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 '@hugsmidjan/qj/classUtils';
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 '@hugsmidjan/qj/classUtils';
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 '@hugsmidjan/qj/classUtils';
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 '@hugsmidjan/qj/classUtils';
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 '@hugsmidjan/qj/classUtils';
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
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { modifiedClass } from '@hugsmidjan/qj/classUtils';
2
+ import { modifiedClass } from '@reykjavik/hanna-utils';
3
3
  const sizes = {
4
4
  small: 'small',
5
5
  /** Default value */
package/esm/HeroBlock.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { modifiedClass } from '@hugsmidjan/qj/classUtils';
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';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { modifiedClass } from '@hugsmidjan/qj/classUtils';
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:
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { modifiedClass } from '@hugsmidjan/qj/classUtils';
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 '@hugsmidjan/qj/classUtils';
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 '@hugsmidjan/qj/classUtils';
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 '@hugsmidjan/qj/classUtils';
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';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { modifiedClass } from '@hugsmidjan/qj/classUtils';
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 '@hugsmidjan/qj/classUtils';
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 '@hugsmidjan/qj/classUtils';
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 '@hugsmidjan/qj/classUtils';
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 { Modifiers } from '@hugsmidjan/qj/classUtils';
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?: Modifiers;
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';
@@ -1,6 +1,5 @@
1
1
  import React, { ReactElement } from 'react';
2
- import { Modifiers } from '@hugsmidjan/qj/classUtils';
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?: Modifiers;
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 '@hugsmidjan/qj/classUtils';
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';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { modifiedClass } from '@hugsmidjan/qj/classUtils';
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;
@@ -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 '@hugsmidjan/qj/classUtils';
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
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { modifiedClass } from '@hugsmidjan/qj/classUtils';
2
+ import { modifiedClass } from '@reykjavik/hanna-utils';
3
3
  import NameCard from './NameCard.js';
4
4
  export const NameCards = (props) => {
5
5
  const { items, wrapperProps } = props;
package/esm/NewsHero.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
- import { modifiedClass } from '@hugsmidjan/qj/classUtils';
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 '@hugsmidjan/qj/classUtils';
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;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { modifiedClass } from '@hugsmidjan/qj/classUtils';
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 '@hugsmidjan/qj/classUtils';
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,
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { modifiedClass } from '@hugsmidjan/qj/classUtils';
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) }),
@@ -1,5 +1,5 @@
1
1
  import React, { useEffect } from 'react';
2
- import { modifiedClass } from '@hugsmidjan/qj/classUtils';
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}`;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { modifiedClass } from '@hugsmidjan/qj/classUtils';
2
+ import { modifiedClass } from '@reykjavik/hanna-utils';
3
3
  import { Link } from './_abstract/_Link.js';
4
4
  const types = {
5
5
  external: 1,
package/esm/RowBlock.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { modifiedClass } from '@hugsmidjan/qj/classUtils';
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));
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { modifiedClass } from '@hugsmidjan/qj/classUtils';
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', [
@@ -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';
@@ -1,5 +1,5 @@
1
1
  import React, { useEffect, useState } from 'react';
2
- import { modifiedClass } from '@hugsmidjan/qj/classUtils';
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
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { modifiedClass } from '@hugsmidjan/qj/classUtils';
2
+ import { modifiedClass } from '@reykjavik/hanna-utils';
3
3
  const colors = {
4
4
  green: 1,
5
5
  red: 1,
@@ -1,5 +1,5 @@
1
1
  import React, { useEffect } from 'react';
2
- import { modifiedClass } from '@hugsmidjan/qj/classUtils';
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 '@hugsmidjan/qj/classUtils';
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
@@ -1,6 +1,6 @@
1
1
  import { __rest } from "tslib";
2
2
  import React from 'react';
3
- import { modifiedClass } from '@hugsmidjan/qj/classUtils';
3
+ import { modifiedClass } from '@reykjavik/hanna-utils';
4
4
  import { Button } from './_abstract/_Button.js';
5
5
  const colors = {
6
6
  normal: '',
package/esm/TextBlock.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { modifiedClass } from '@hugsmidjan/qj/classUtils';
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 '@hugsmidjan/qj/classUtils';
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 '@hugsmidjan/qj/classUtils';
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
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { modifiedClass } from '@hugsmidjan/qj/classUtils';
2
+ import { modifiedClass } from '@reykjavik/hanna-utils';
3
3
  const sizes = {
4
4
  none: 'none',
5
5
  small: 'small',
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { modifiedClass } from '@hugsmidjan/qj/classUtils';
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';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { modifiedClass } from '@hugsmidjan/qj/classUtils';
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';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { modifiedClass } from '@hugsmidjan/qj/classUtils';
2
+ import { modifiedClass } from '@reykjavik/hanna-utils';
3
3
  import { Button } from './_Button.js';
4
4
  import { Image } from './_Image.js';
5
5
  export const Block = (props) => {
@@ -1,6 +1,6 @@
1
1
  import { __rest } from "tslib";
2
2
  import React from 'react';
3
- import { modifiedClass } from '@hugsmidjan/qj/classUtils';
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: string;
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 '@hugsmidjan/qj/classUtils';
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 '@hugsmidjan/qj/classUtils';
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;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { classes, modifiedClass } from '@hugsmidjan/qj/classUtils';
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) => {
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { modifiedClass } from '@hugsmidjan/qj/classUtils';
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 '@hugsmidjan/qj/classUtils';
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 = {
@@ -1,6 +1,5 @@
1
1
  import React, { memo, useMemo } from 'react';
2
- import { classes } from '@hugsmidjan/qj/classUtils';
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 '@hugsmidjan/qj/classUtils';
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 '@hugsmidjan/qj/classUtils';
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) => {