@reykjavik/hanna-react 0.10.59 → 0.10.60

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 (355) hide show
  1. package/AccordionList.js +3 -28
  2. package/ActionCards.js +2 -4
  3. package/Alert.js +4 -29
  4. package/ArticleCards.js +2 -4
  5. package/ArticleCarousel/_ArticleCarouselCard.js +4 -6
  6. package/ArticleCarousel.js +3 -5
  7. package/ArticleMeta.js +3 -28
  8. package/Attention.js +3 -5
  9. package/BasicTable.js +5 -7
  10. package/BgBox.js +3 -5
  11. package/Bling.js +3 -5
  12. package/BlockBreak.js +2 -4
  13. package/BlockQuote.js +2 -4
  14. package/BreadCrumbs.js +2 -4
  15. package/ButtonBack.js +3 -5
  16. package/ButtonBar.js +3 -5
  17. package/ButtonPrimary.js +3 -5
  18. package/ButtonSecondary.js +3 -5
  19. package/ButtonTertiary.js +3 -5
  20. package/CHANGELOG.md +8 -0
  21. package/Carousel.js +3 -5
  22. package/CarouselStepper.js +3 -5
  23. package/CenterColumn.js +3 -5
  24. package/Checkbox.js +3 -5
  25. package/CheckboxButtonsGroup.js +4 -6
  26. package/CheckboxGroup.js +4 -6
  27. package/CityBlock.js +3 -5
  28. package/ContactBubble.js +4 -29
  29. package/ContentArticle.js +8 -10
  30. package/ContentImage.js +3 -5
  31. package/Datepicker.js +6 -31
  32. package/ExtraLinks.js +4 -17
  33. package/FeatureList.js +3 -5
  34. package/FieldGroup.js +3 -5
  35. package/FileInput.js +5 -41
  36. package/Foonote.js +2 -4
  37. package/FooterBadges.js +2 -4
  38. package/FooterInfo.js +3 -5
  39. package/Footnote.js +2 -4
  40. package/Form.js +3 -5
  41. package/FormField.js +3 -28
  42. package/Gallery/_GalleryItem.js +6 -42
  43. package/Gallery/_GalleryModal.js +6 -31
  44. package/Gallery/_GalleryModalContext.js +2 -4
  45. package/Gallery/_GalleryModalItem.js +4 -17
  46. package/Gallery.js +6 -31
  47. package/GridBlocks.js +5 -7
  48. package/Heading.js +3 -5
  49. package/HeroBlock.js +5 -7
  50. package/IframeBlock.d.ts +5 -1
  51. package/IframeBlock.js +6 -8
  52. package/Illustration.js +3 -5
  53. package/ImageCards.js +4 -17
  54. package/InfoBlock.js +2 -4
  55. package/InfoHero.js +7 -9
  56. package/IslandBlock.js +3 -5
  57. package/IslandPageBlock.js +3 -5
  58. package/LabeledTextBlock.js +4 -6
  59. package/Layout.js +4 -6
  60. package/MainMenu/_Auxiliary.js +2 -4
  61. package/MainMenu/_PrimaryPanel.js +3 -5
  62. package/MainMenu.js +5 -30
  63. package/MiniMetrics.js +4 -6
  64. package/Modal.js +3 -5
  65. package/NameCard.js +5 -7
  66. package/NameCards.js +3 -5
  67. package/NewsHero.js +6 -8
  68. package/PageFilter.js +4 -6
  69. package/PageHeading.js +3 -5
  70. package/Picture.js +4 -6
  71. package/ProcessOverview.js +3 -5
  72. package/PullQuote.js +2 -4
  73. package/RadioButtonsGroup.js +4 -6
  74. package/RadioGroup.js +4 -6
  75. package/RelatedLinks.js +2 -4
  76. package/RowBlock.js +3 -5
  77. package/RowBlockColumn.js +3 -5
  78. package/SearchInput.js +5 -41
  79. package/SearchResults/_SearchResultsItem.js +3 -5
  80. package/SearchResults.js +7 -32
  81. package/SeenEffect.js +3 -16
  82. package/Selectbox.js +6 -42
  83. package/ShareButtons.js +2 -24
  84. package/Sharpie.js +3 -5
  85. package/SiteSearchAutocomplete.js +5 -41
  86. package/SiteSearchCurtain.js +3 -28
  87. package/SiteSearchInput.d.ts +1 -1
  88. package/SiteSearchInput.js +4 -40
  89. package/Skeleton.js +4 -6
  90. package/SubHeading.js +3 -5
  91. package/Tabs.js +3 -28
  92. package/TagPill.js +5 -18
  93. package/TextBlock.js +3 -5
  94. package/TextButton.js +3 -5
  95. package/TextInput.js +5 -41
  96. package/VSpacer.js +3 -5
  97. package/VerticalTabsTOC.js +3 -28
  98. package/WizardLayout.js +3 -5
  99. package/WizardLayoutClose.js +3 -5
  100. package/WizardStepper.js +3 -5
  101. package/_abstract/_AbstractCarousel.js +7 -32
  102. package/_abstract/_Blings.js +3 -5
  103. package/_abstract/_Block.js +5 -7
  104. package/_abstract/_Button.js +4 -17
  105. package/_abstract/_CardList.js +4 -6
  106. package/_abstract/_Image.js +3 -5
  107. package/_abstract/_Link.js +2 -4
  108. package/_abstract/_Quote.js +2 -4
  109. package/_abstract/_TogglerGroup.js +8 -8
  110. package/_abstract/_TogglerGroupField.js +6 -19
  111. package/_abstract/_TogglerInput.js +4 -17
  112. package/_abstract/breakOnNL.js +2 -4
  113. package/package.json +4 -378
  114. package/utils/env.js +2 -4
  115. package/utils/useScrollbarWidthCSSVar.js +2 -4
  116. package/utils.js +3 -16
  117. package/esm/AccordionList.d.ts +0 -17
  118. package/esm/AccordionList.js +0 -24
  119. package/esm/ActionCards.d.ts +0 -5
  120. package/esm/ActionCards.js +0 -9
  121. package/esm/Alert.d.ts +0 -49
  122. package/esm/Alert.js +0 -92
  123. package/esm/ArticleCards.d.ts +0 -6
  124. package/esm/ArticleCards.js +0 -4
  125. package/esm/ArticleCarousel/_ArticleCarouselCard.d.ts +0 -27
  126. package/esm/ArticleCarousel/_ArticleCarouselCard.js +0 -24
  127. package/esm/ArticleCarousel.d.ts +0 -12
  128. package/esm/ArticleCarousel.js +0 -8
  129. package/esm/ArticleMeta.d.ts +0 -10
  130. package/esm/ArticleMeta.js +0 -19
  131. package/esm/Attention.d.ts +0 -7
  132. package/esm/Attention.js +0 -4
  133. package/esm/BasicTable.d.ts +0 -12
  134. package/esm/BasicTable.js +0 -29
  135. package/esm/BgBox.d.ts +0 -8
  136. package/esm/BgBox.js +0 -9
  137. package/esm/Bling.d.ts +0 -81
  138. package/esm/Bling.js +0 -44
  139. package/esm/BlockBreak.d.ts +0 -2
  140. package/esm/BlockBreak.js +0 -6
  141. package/esm/BlockQuote.d.ts +0 -4
  142. package/esm/BlockQuote.js +0 -4
  143. package/esm/BreadCrumbs.d.ts +0 -11
  144. package/esm/BreadCrumbs.js +0 -28
  145. package/esm/ButtonBack.d.ts +0 -7
  146. package/esm/ButtonBack.js +0 -4
  147. package/esm/ButtonBar.d.ts +0 -16
  148. package/esm/ButtonBar.js +0 -14
  149. package/esm/ButtonPrimary.d.ts +0 -7
  150. package/esm/ButtonPrimary.js +0 -4
  151. package/esm/ButtonSecondary.d.ts +0 -7
  152. package/esm/ButtonSecondary.js +0 -4
  153. package/esm/ButtonTertiary.d.ts +0 -12
  154. package/esm/ButtonTertiary.js +0 -15
  155. package/esm/Carousel.d.ts +0 -4
  156. package/esm/Carousel.js +0 -4
  157. package/esm/CarouselStepper.d.ts +0 -4
  158. package/esm/CarouselStepper.js +0 -4
  159. package/esm/CenterColumn.d.ts +0 -7
  160. package/esm/CenterColumn.js +0 -7
  161. package/esm/Checkbox.d.ts +0 -4
  162. package/esm/Checkbox.js +0 -4
  163. package/esm/CheckboxButtonsGroup.d.ts +0 -11
  164. package/esm/CheckboxButtonsGroup.js +0 -14
  165. package/esm/CheckboxGroup.d.ts +0 -9
  166. package/esm/CheckboxGroup.js +0 -7
  167. package/esm/CityBlock.d.ts +0 -23
  168. package/esm/CityBlock.js +0 -18
  169. package/esm/ContactBubble.d.ts +0 -58
  170. package/esm/ContactBubble.js +0 -148
  171. package/esm/ContentArticle.d.ts +0 -15
  172. package/esm/ContentArticle.js +0 -21
  173. package/esm/ContentImage.d.ts +0 -8
  174. package/esm/ContentImage.js +0 -18
  175. package/esm/Datepicker.d.ts +0 -39
  176. package/esm/Datepicker.js +0 -63
  177. package/esm/ExtraLinks.d.ts +0 -18
  178. package/esm/ExtraLinks.js +0 -34
  179. package/esm/FeatureList.d.ts +0 -12
  180. package/esm/FeatureList.js +0 -16
  181. package/esm/FieldGroup.d.ts +0 -9
  182. package/esm/FieldGroup.js +0 -9
  183. package/esm/FileInput.d.ts +0 -17
  184. package/esm/FileInput.js +0 -154
  185. package/esm/Foonote.d.ts +0 -12
  186. package/esm/Foonote.js +0 -7
  187. package/esm/FooterBadges.d.ts +0 -9
  188. package/esm/FooterBadges.js +0 -12
  189. package/esm/FooterInfo.d.ts +0 -18
  190. package/esm/FooterInfo.js +0 -9
  191. package/esm/Footnote.d.ts +0 -6
  192. package/esm/Footnote.js +0 -3
  193. package/esm/Form.d.ts +0 -7
  194. package/esm/Form.js +0 -10
  195. package/esm/FormField.d.ts +0 -65
  196. package/esm/FormField.js +0 -91
  197. package/esm/Gallery/_GalleryItem.d.ts +0 -8
  198. package/esm/Gallery/_GalleryItem.js +0 -30
  199. package/esm/Gallery/_GalleryModal.d.ts +0 -6
  200. package/esm/Gallery/_GalleryModal.js +0 -54
  201. package/esm/Gallery/_GalleryModalContext.d.ts +0 -9
  202. package/esm/Gallery/_GalleryModalContext.js +0 -3
  203. package/esm/Gallery/_GalleryModalItem.d.ts +0 -3
  204. package/esm/Gallery/_GalleryModalItem.js +0 -22
  205. package/esm/Gallery.d.ts +0 -17
  206. package/esm/Gallery.js +0 -27
  207. package/esm/GridBlocks.d.ts +0 -26
  208. package/esm/GridBlocks.js +0 -24
  209. package/esm/Heading.d.ts +0 -16
  210. package/esm/Heading.js +0 -17
  211. package/esm/HeroBlock.d.ts +0 -19
  212. package/esm/HeroBlock.js +0 -21
  213. package/esm/IframeBlock.d.ts +0 -23
  214. package/esm/IframeBlock.js +0 -26
  215. package/esm/Illustration.d.ts +0 -13
  216. package/esm/Illustration.js +0 -8
  217. package/esm/ImageCards.d.ts +0 -8
  218. package/esm/ImageCards.js +0 -22
  219. package/esm/InfoBlock.d.ts +0 -17
  220. package/esm/InfoBlock.js +0 -13
  221. package/esm/InfoHero.d.ts +0 -17
  222. package/esm/InfoHero.js +0 -82
  223. package/esm/IslandBlock.d.ts +0 -25
  224. package/esm/IslandBlock.js +0 -16
  225. package/esm/IslandPageBlock.d.ts +0 -24
  226. package/esm/IslandPageBlock.js +0 -16
  227. package/esm/LabeledTextBlock.d.ts +0 -11
  228. package/esm/LabeledTextBlock.js +0 -14
  229. package/esm/Layout.d.ts +0 -33
  230. package/esm/Layout.js +0 -52
  231. package/esm/MainMenu/_Auxiliary.d.ts +0 -6
  232. package/esm/MainMenu/_Auxiliary.js +0 -13
  233. package/esm/MainMenu/_PrimaryPanel.d.ts +0 -13
  234. package/esm/MainMenu/_PrimaryPanel.js +0 -22
  235. package/esm/MainMenu.d.ts +0 -48
  236. package/esm/MainMenu.js +0 -136
  237. package/esm/MiniMetrics.d.ts +0 -8
  238. package/esm/MiniMetrics.js +0 -12
  239. package/esm/Modal.d.ts +0 -10
  240. package/esm/Modal.js +0 -14
  241. package/esm/NameCard.d.ts +0 -64
  242. package/esm/NameCard.js +0 -82
  243. package/esm/NameCards.d.ts +0 -6
  244. package/esm/NameCards.js +0 -7
  245. package/esm/NewsHero.d.ts +0 -14
  246. package/esm/NewsHero.js +0 -86
  247. package/esm/PageFilter.d.ts +0 -17
  248. package/esm/PageFilter.js +0 -15
  249. package/esm/PageHeading.d.ts +0 -10
  250. package/esm/PageHeading.js +0 -12
  251. package/esm/Picture.d.ts +0 -7
  252. package/esm/Picture.js +0 -8
  253. package/esm/ProcessOverview.d.ts +0 -13
  254. package/esm/ProcessOverview.js +0 -17
  255. package/esm/PullQuote.d.ts +0 -4
  256. package/esm/PullQuote.js +0 -4
  257. package/esm/RadioButtonsGroup.d.ts +0 -11
  258. package/esm/RadioButtonsGroup.js +0 -14
  259. package/esm/RadioGroup.d.ts +0 -13
  260. package/esm/RadioGroup.js +0 -7
  261. package/esm/RelatedLinks.d.ts +0 -20
  262. package/esm/RelatedLinks.js +0 -26
  263. package/esm/RowBlock.d.ts +0 -12
  264. package/esm/RowBlock.js +0 -9
  265. package/esm/RowBlockColumn.d.ts +0 -8
  266. package/esm/RowBlockColumn.js +0 -11
  267. package/esm/SearchInput.d.ts +0 -18
  268. package/esm/SearchInput.js +0 -33
  269. package/esm/SearchResults/_SearchResultsItem.d.ts +0 -18
  270. package/esm/SearchResults/_SearchResultsItem.js +0 -15
  271. package/esm/SearchResults.d.ts +0 -33
  272. package/esm/SearchResults.js +0 -109
  273. package/esm/SeenEffect.d.ts +0 -4
  274. package/esm/SeenEffect.js +0 -19
  275. package/esm/Selectbox.d.ts +0 -8
  276. package/esm/Selectbox.js +0 -46
  277. package/esm/ShareButtons.d.ts +0 -9
  278. package/esm/ShareButtons.js +0 -51
  279. package/esm/Sharpie.d.ts +0 -23
  280. package/esm/Sharpie.js +0 -22
  281. package/esm/SiteSearchAutocomplete.d.ts +0 -40
  282. package/esm/SiteSearchAutocomplete.js +0 -58
  283. package/esm/SiteSearchCurtain.d.ts +0 -6
  284. package/esm/SiteSearchCurtain.js +0 -33
  285. package/esm/SiteSearchInput.d.ts +0 -24
  286. package/esm/SiteSearchInput.js +0 -40
  287. package/esm/Skeleton.d.ts +0 -25
  288. package/esm/Skeleton.js +0 -30
  289. package/esm/SubHeading.d.ts +0 -10
  290. package/esm/SubHeading.js +0 -13
  291. package/esm/Tabs.d.ts +0 -35
  292. package/esm/Tabs.js +0 -94
  293. package/esm/TagPill.d.ts +0 -27
  294. package/esm/TagPill.js +0 -43
  295. package/esm/TextBlock.d.ts +0 -15
  296. package/esm/TextBlock.js +0 -15
  297. package/esm/TextButton.d.ts +0 -9
  298. package/esm/TextButton.js +0 -9
  299. package/esm/TextInput.d.ts +0 -16
  300. package/esm/TextInput.js +0 -35
  301. package/esm/VSpacer.d.ts +0 -24
  302. package/esm/VSpacer.js +0 -41
  303. package/esm/VerticalTabsTOC.d.ts +0 -14
  304. package/esm/VerticalTabsTOC.js +0 -68
  305. package/esm/WizardLayout.d.ts +0 -15
  306. package/esm/WizardLayout.js +0 -30
  307. package/esm/WizardLayoutClose.d.ts +0 -3
  308. package/esm/WizardLayoutClose.js +0 -4
  309. package/esm/WizardStepper.d.ts +0 -36
  310. package/esm/WizardStepper.js +0 -25
  311. package/esm/_abstract/_AbstractCarousel.d.ts +0 -25
  312. package/esm/_abstract/_AbstractCarousel.js +0 -130
  313. package/esm/_abstract/_Blings.d.ts +0 -11
  314. package/esm/_abstract/_Blings.js +0 -12
  315. package/esm/_abstract/_Block.d.ts +0 -22
  316. package/esm/_abstract/_Block.js +0 -24
  317. package/esm/_abstract/_Button.d.ts +0 -40
  318. package/esm/_abstract/_Button.js +0 -47
  319. package/esm/_abstract/_CardList.d.ts +0 -30
  320. package/esm/_abstract/_CardList.js +0 -38
  321. package/esm/_abstract/_Image.d.ts +0 -36
  322. package/esm/_abstract/_Image.js +0 -27
  323. package/esm/_abstract/_Link.d.ts +0 -27
  324. package/esm/_abstract/_Link.js +0 -24
  325. package/esm/_abstract/_Quote.d.ts +0 -9
  326. package/esm/_abstract/_Quote.js +0 -8
  327. package/esm/_abstract/_TogglerGroup.d.ts +0 -31
  328. package/esm/_abstract/_TogglerGroup.js +0 -29
  329. package/esm/_abstract/_TogglerGroupField.d.ts +0 -17
  330. package/esm/_abstract/_TogglerGroupField.js +0 -22
  331. package/esm/_abstract/_TogglerInput.d.ts +0 -22
  332. package/esm/_abstract/_TogglerInput.js +0 -33
  333. package/esm/_abstract/breakOnNL.d.ts +0 -2
  334. package/esm/_abstract/breakOnNL.js +0 -8
  335. package/esm/assets.d.ts +0 -42
  336. package/esm/assets.js +0 -56
  337. package/esm/constants.d.ts +0 -39
  338. package/esm/constants.js +0 -22
  339. package/esm/focus-visible.d.ts +0 -1
  340. package/esm/focus-visible.js +0 -1
  341. package/esm/package.json +0 -1
  342. package/esm/utils/env.d.ts +0 -1
  343. package/esm/utils/env.js +0 -8
  344. package/esm/utils/seenEffect.d.ts +0 -28
  345. package/esm/utils/seenEffect.js +0 -73
  346. package/esm/utils/useFormatMonitor.d.ts +0 -38
  347. package/esm/utils/useFormatMonitor.js +0 -41
  348. package/esm/utils/useGetSVGtext.d.ts +0 -6
  349. package/esm/utils/useGetSVGtext.js +0 -19
  350. package/esm/utils/useMenuToggling.d.ts +0 -8
  351. package/esm/utils/useMenuToggling.js +0 -62
  352. package/esm/utils/useScrollbarWidthCSSVar.d.ts +0 -1
  353. package/esm/utils/useScrollbarWidthCSSVar.js +0 -3
  354. package/esm/utils.d.ts +0 -2
  355. package/esm/utils.js +0 -2
@@ -1,21 +1,8 @@
1
1
  "use strict";
2
- var __rest = (this && this.__rest) || function (s, e) {
3
- var t = {};
4
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
- t[p] = s[p];
6
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
- t[p[i]] = s[p[i]];
10
- }
11
- return t;
12
- };
13
- var __importDefault = (this && this.__importDefault) || function (mod) {
14
- return (mod && mod.__esModule) ? mod : { "default": mod };
15
- };
16
2
  Object.defineProperty(exports, "__esModule", { value: true });
17
- const react_1 = __importDefault(require("react"));
18
- const getBemClass_1 = __importDefault(require("@hugsmidjan/react/utils/getBemClass"));
3
+ const tslib_1 = require("tslib");
4
+ const react_1 = tslib_1.__importDefault(require("react"));
5
+ const getBemClass_1 = tslib_1.__importDefault(require("@hugsmidjan/react/utils/getBemClass"));
19
6
  const _Link_1 = require("./_Link");
20
7
  // ---------------------------------------------------------------------------
21
8
  const sizes = {
@@ -38,7 +25,7 @@ const icons = {
38
25
  edit: 'edit',
39
26
  };
40
27
  const Button = (props) => {
41
- const { bem, small, size = 'normal', modifier, children, variant = 'normal', icon = 'none', label = children } = props, buttonProps = __rest(props, ["bem", "small", "size", "modifier", "children", "variant", "icon", "label"]);
28
+ const { bem, small, size = 'normal', modifier, children, variant = 'normal', icon = 'none', label = children } = props, buttonProps = tslib_1.__rest(props, ["bem", "small", "size", "modifier", "children", "variant", "icon", "label"]);
42
29
  const className = bem &&
43
30
  (0, getBemClass_1.default)(bem, [modifier, variants[variant], sizes[size], navigationFlags[icon]]);
44
31
  const iconProp = icons[icon] && { 'data-icon': icons[icon] };
@@ -1,12 +1,10 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.CardList = void 0;
7
- const react_1 = __importDefault(require("react"));
8
- const _Button_1 = __importDefault(require("./_Button"));
9
- const _Image_1 = __importDefault(require("./_Image"));
4
+ const tslib_1 = require("tslib");
5
+ const react_1 = tslib_1.__importDefault(require("react"));
6
+ const _Button_1 = tslib_1.__importDefault(require("./_Button"));
7
+ const _Image_1 = tslib_1.__importDefault(require("./_Image"));
10
8
  const Card = (props) => {
11
9
  const { bem, href, title, imgPlaceholder } = props;
12
10
  const cardClass = `${bem}__card`;
@@ -1,10 +1,8 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const react_1 = __importDefault(require("react"));
7
- const getBemClass_1 = __importDefault(require("@hugsmidjan/react/utils/getBemClass"));
3
+ const tslib_1 = require("tslib");
4
+ const react_1 = tslib_1.__importDefault(require("react"));
5
+ const getBemClass_1 = tslib_1.__importDefault(require("@hugsmidjan/react/utils/getBemClass"));
8
6
  const useGetSVGtext_1 = require("../utils/useGetSVGtext");
9
7
  // eslint-disable-next-line complexity
10
8
  const Image = (props) => {
@@ -1,10 +1,8 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.setLinkRenderer = exports.Link = void 0;
7
- const react_1 = __importDefault(require("react"));
4
+ const tslib_1 = require("tslib");
5
+ const react_1 = tslib_1.__importDefault(require("react"));
8
6
  const DefaultLinkRenderer = (props) => react_1.default.createElement('a', props);
9
7
  exports.Link = DefaultLinkRenderer;
10
8
  /**
@@ -1,10 +1,8 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports._Quote = void 0;
7
- const react_1 = __importDefault(require("react"));
4
+ const tslib_1 = require("tslib");
5
+ const react_1 = tslib_1.__importDefault(require("react"));
8
6
  const _Link_1 = require("./_Link");
9
7
  const _Quote = (props) => {
10
8
  const { bem, children, by, byHref } = props;
@@ -1,28 +1,28 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const react_1 = __importDefault(require("react"));
7
- const getBemClass_1 = __importDefault(require("@hugsmidjan/react/utils/getBemClass"));
3
+ const tslib_1 = require("tslib");
4
+ const react_1 = tslib_1.__importDefault(require("react"));
5
+ const getBemClass_1 = tslib_1.__importDefault(require("@hugsmidjan/react/utils/getBemClass"));
8
6
  const TogglerGroup = (props) => {
9
7
  const {
10
8
  // id,
11
9
  className, bem, name, disabled, Toggler, onSelected, options, inputProps = {}, } = props;
12
- const values = props.value || [];
10
+ const values = props.value;
13
11
  return (react_1.default.createElement("ul", { className: (0, getBemClass_1.default)(bem, null, className), role: "group", "aria-labelledby": props['aria-labelledby'], "aria-describedby": props['aria-describedby'], "aria-required": props.required }, options.map((option, i) => {
14
12
  const isDisabled = option.disabled != null
15
13
  ? option.disabled
16
14
  : disabled && typeof disabled !== 'boolean'
17
15
  ? disabled.includes(i)
18
16
  : disabled;
19
- const isChecked = values.includes(option.value);
17
+ const isChecked = values && values.includes(option.value);
20
18
  return (react_1.default.createElement(Toggler, Object.assign({ key: i }, inputProps, { className: bem + '__item', name: name, Wrapper: "li" }, option, { label: option.label || option.value, onChange: onSelected
21
19
  ? (e) => {
22
20
  const { value } = option;
23
21
  const checked = e.currentTarget.checked;
24
22
  inputProps.onChange && inputProps.onChange(e);
25
- const selectedValues = values.filter((val) => val !== value);
23
+ const selectedValues = values
24
+ ? values.filter((val) => val !== value)
25
+ : [];
26
26
  if (checked) {
27
27
  selectedValues.push(value);
28
28
  }
@@ -1,25 +1,12 @@
1
1
  "use strict";
2
- var __rest = (this && this.__rest) || function (s, e) {
3
- var t = {};
4
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
- t[p] = s[p];
6
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
- t[p[i]] = s[p[i]];
10
- }
11
- return t;
12
- };
13
- var __importDefault = (this && this.__importDefault) || function (mod) {
14
- return (mod && mod.__esModule) ? mod : { "default": mod };
15
- };
16
2
  Object.defineProperty(exports, "__esModule", { value: true });
17
- const react_1 = __importDefault(require("react"));
18
- const getBemClass_1 = __importDefault(require("@hugsmidjan/react/utils/getBemClass"));
19
- const FormField_1 = __importDefault(require("../FormField"));
20
- const _TogglerGroup_1 = __importDefault(require("./_TogglerGroup"));
3
+ const tslib_1 = require("tslib");
4
+ const react_1 = tslib_1.__importDefault(require("react"));
5
+ const getBemClass_1 = tslib_1.__importDefault(require("@hugsmidjan/react/utils/getBemClass"));
6
+ const FormField_1 = tslib_1.__importDefault(require("../FormField"));
7
+ const _TogglerGroup_1 = tslib_1.__importDefault(require("./_TogglerGroup"));
21
8
  const TogglerGroupField = (props) => {
22
- const { bem, Toggler, className, modifier, label, LabelTag, assistText, hideLabel, disabled, readOnly, invalid, errorMessage, required, reqText, id, value } = props, togglerGroupProps = __rest(props, ["bem", "Toggler", "className", "modifier", "label", "LabelTag", "assistText", "hideLabel", "disabled", "readOnly", "invalid", "errorMessage", "required", "reqText", "id", "value"]);
9
+ const { bem, Toggler, className, modifier, label, LabelTag, assistText, hideLabel, disabled, readOnly, invalid, errorMessage, required, reqText, id, value } = props, togglerGroupProps = tslib_1.__rest(props, ["bem", "Toggler", "className", "modifier", "label", "LabelTag", "assistText", "hideLabel", "disabled", "readOnly", "invalid", "errorMessage", "required", "reqText", "id", "value"]);
23
10
  return (react_1.default.createElement(FormField_1.default, { className: (0, getBemClass_1.default)(bem, modifier, className), group: true, label: label, LabelTag: LabelTag, assistText: assistText, hideLabel: hideLabel, disabled: disabled, readOnly: readOnly, invalid: invalid, errorMessage: errorMessage, required: required, reqText: reqText, id: id, renderInput: (className, inputProps) => {
24
11
  return (react_1.default.createElement(_TogglerGroup_1.default, Object.assign({ bem: className.options }, inputProps, togglerGroupProps, { value: Array.isArray(value) ? value : value != null ? [value] : undefined, Toggler: Toggler })));
25
12
  } }));
@@ -1,24 +1,11 @@
1
1
  "use strict";
2
- var __rest = (this && this.__rest) || function (s, e) {
3
- var t = {};
4
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
- t[p] = s[p];
6
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
- t[p[i]] = s[p[i]];
10
- }
11
- return t;
12
- };
13
- var __importDefault = (this && this.__importDefault) || function (mod) {
14
- return (mod && mod.__esModule) ? mod : { "default": mod };
15
- };
16
2
  Object.defineProperty(exports, "__esModule", { value: true });
17
- const react_1 = __importDefault(require("react"));
3
+ const tslib_1 = require("tslib");
4
+ const react_1 = tslib_1.__importDefault(require("react"));
18
5
  const hooks_1 = require("@hugsmidjan/react/hooks");
19
- const getBemClass_1 = __importDefault(require("@hugsmidjan/react/utils/getBemClass"));
6
+ const getBemClass_1 = tslib_1.__importDefault(require("@hugsmidjan/react/utils/getBemClass"));
20
7
  const TogglerInput = (props) => {
21
- const { bem, modifier, className, label, invalid, errorMessage, Wrapper = 'div', required, reqText, type, id } = props, inputProps = __rest(props, ["bem", "modifier", "className", "label", "invalid", "errorMessage", "Wrapper", "required", "reqText", "type", "id"]);
8
+ const { bem, modifier, className, label, invalid, errorMessage, Wrapper = 'div', required, reqText, type, id } = props, inputProps = tslib_1.__rest(props, ["bem", "modifier", "className", "label", "invalid", "errorMessage", "Wrapper", "required", "reqText", "type", "id"]);
22
9
  const domid = (0, hooks_1.useDomid)(id);
23
10
  const errorId = errorMessage && 'error' + domid;
24
11
  const reqStar = required && reqText !== false && (react_1.default.createElement("abbr", { className: bem + '__label__reqstar',
@@ -1,9 +1,7 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const react_1 = __importDefault(require("react"));
3
+ const tslib_1 = require("tslib");
4
+ const react_1 = tslib_1.__importDefault(require("react"));
7
5
  const breakOnNL = (text) => text &&
8
6
  text
9
7
  .trim()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reykjavik/hanna-react",
3
- "version": "0.10.59",
3
+ "version": "0.10.60",
4
4
  "author": "Reykjavík (http://www.reykjavik.is)",
5
5
  "contributors": [
6
6
  "Hugsmiðjan ehf (http://www.hugsmidjan.is)",
@@ -17,10 +17,10 @@
17
17
  "@hugsmidjan/react": "^0.4.17",
18
18
  "@reykjavik/hanna-css": "^0.3.3",
19
19
  "@reykjavik/hanna-utils": "^0.1.7",
20
- "@types/react": "16",
20
+ "@types/react": "^17.0.24",
21
21
  "@types/react-autosuggest": "^10.1.0",
22
22
  "@types/react-datepicker": "^3.0.2",
23
- "@types/react-dom": "16",
23
+ "@types/react-dom": "^17.0.9",
24
24
  "@types/react-transition-group": "^4.4.0",
25
25
  "iframe-resizer-react": "^1.1.0",
26
26
  "react-autosuggest": "^10.1.0",
@@ -38,379 +38,5 @@
38
38
  },
39
39
  "sideEffects": [
40
40
  "**/focus-visible.js"
41
- ],
42
- "exports": {
43
- "./AccordionList": {
44
- "import": "./esm/AccordionList.js",
45
- "require": "./AccordionList.js"
46
- },
47
- "./ActionCards": {
48
- "import": "./esm/ActionCards.js",
49
- "require": "./ActionCards.js"
50
- },
51
- "./Alert": {
52
- "import": "./esm/Alert.js",
53
- "require": "./Alert.js"
54
- },
55
- "./ArticleCards": {
56
- "import": "./esm/ArticleCards.js",
57
- "require": "./ArticleCards.js"
58
- },
59
- "./ArticleCarousel": {
60
- "import": "./esm/ArticleCarousel.js",
61
- "require": "./ArticleCarousel.js"
62
- },
63
- "./ArticleMeta": {
64
- "import": "./esm/ArticleMeta.js",
65
- "require": "./ArticleMeta.js"
66
- },
67
- "./assets": {
68
- "import": "./esm/assets.js",
69
- "require": "./assets.js"
70
- },
71
- "./Attention": {
72
- "import": "./esm/Attention.js",
73
- "require": "./Attention.js"
74
- },
75
- "./BasicTable": {
76
- "import": "./esm/BasicTable.js",
77
- "require": "./BasicTable.js"
78
- },
79
- "./BgBox": {
80
- "import": "./esm/BgBox.js",
81
- "require": "./BgBox.js"
82
- },
83
- "./Bling": {
84
- "import": "./esm/Bling.js",
85
- "require": "./Bling.js"
86
- },
87
- "./BlockBreak": {
88
- "import": "./esm/BlockBreak.js",
89
- "require": "./BlockBreak.js"
90
- },
91
- "./BlockQuote": {
92
- "import": "./esm/BlockQuote.js",
93
- "require": "./BlockQuote.js"
94
- },
95
- "./BreadCrumbs": {
96
- "import": "./esm/BreadCrumbs.js",
97
- "require": "./BreadCrumbs.js"
98
- },
99
- "./ButtonBack": {
100
- "import": "./esm/ButtonBack.js",
101
- "require": "./ButtonBack.js"
102
- },
103
- "./ButtonBar": {
104
- "import": "./esm/ButtonBar.js",
105
- "require": "./ButtonBar.js"
106
- },
107
- "./ButtonPrimary": {
108
- "import": "./esm/ButtonPrimary.js",
109
- "require": "./ButtonPrimary.js"
110
- },
111
- "./ButtonSecondary": {
112
- "import": "./esm/ButtonSecondary.js",
113
- "require": "./ButtonSecondary.js"
114
- },
115
- "./ButtonTertiary": {
116
- "import": "./esm/ButtonTertiary.js",
117
- "require": "./ButtonTertiary.js"
118
- },
119
- "./Carousel": {
120
- "import": "./esm/Carousel.js",
121
- "require": "./Carousel.js"
122
- },
123
- "./CarouselStepper": {
124
- "import": "./esm/CarouselStepper.js",
125
- "require": "./CarouselStepper.js"
126
- },
127
- "./CenterColumn": {
128
- "import": "./esm/CenterColumn.js",
129
- "require": "./CenterColumn.js"
130
- },
131
- "./Checkbox": {
132
- "import": "./esm/Checkbox.js",
133
- "require": "./Checkbox.js"
134
- },
135
- "./CheckboxButtonsGroup": {
136
- "import": "./esm/CheckboxButtonsGroup.js",
137
- "require": "./CheckboxButtonsGroup.js"
138
- },
139
- "./CheckboxGroup": {
140
- "import": "./esm/CheckboxGroup.js",
141
- "require": "./CheckboxGroup.js"
142
- },
143
- "./CityBlock": {
144
- "import": "./esm/CityBlock.js",
145
- "require": "./CityBlock.js"
146
- },
147
- "./constants": {
148
- "import": "./esm/constants.js",
149
- "require": "./constants.js"
150
- },
151
- "./ContactBubble": {
152
- "import": "./esm/ContactBubble.js",
153
- "require": "./ContactBubble.js"
154
- },
155
- "./ContentArticle": {
156
- "import": "./esm/ContentArticle.js",
157
- "require": "./ContentArticle.js"
158
- },
159
- "./ContentImage": {
160
- "import": "./esm/ContentImage.js",
161
- "require": "./ContentImage.js"
162
- },
163
- "./Datepicker": {
164
- "import": "./esm/Datepicker.js",
165
- "require": "./Datepicker.js"
166
- },
167
- "./ExtraLinks": {
168
- "import": "./esm/ExtraLinks.js",
169
- "require": "./ExtraLinks.js"
170
- },
171
- "./FeatureList": {
172
- "import": "./esm/FeatureList.js",
173
- "require": "./FeatureList.js"
174
- },
175
- "./FieldGroup": {
176
- "import": "./esm/FieldGroup.js",
177
- "require": "./FieldGroup.js"
178
- },
179
- "./FileInput": {
180
- "import": "./esm/FileInput.js",
181
- "require": "./FileInput.js"
182
- },
183
- "./focus-visible": {
184
- "import": "./esm/focus-visible.js",
185
- "require": "./focus-visible.js"
186
- },
187
- "./Foonote": {
188
- "import": "./esm/Foonote.js",
189
- "require": "./Foonote.js"
190
- },
191
- "./FooterBadges": {
192
- "import": "./esm/FooterBadges.js",
193
- "require": "./FooterBadges.js"
194
- },
195
- "./FooterInfo": {
196
- "import": "./esm/FooterInfo.js",
197
- "require": "./FooterInfo.js"
198
- },
199
- "./Footnote": {
200
- "import": "./esm/Footnote.js",
201
- "require": "./Footnote.js"
202
- },
203
- "./Form": {
204
- "import": "./esm/Form.js",
205
- "require": "./Form.js"
206
- },
207
- "./FormField": {
208
- "import": "./esm/FormField.js",
209
- "require": "./FormField.js"
210
- },
211
- "./Gallery": {
212
- "import": "./esm/Gallery.js",
213
- "require": "./Gallery.js"
214
- },
215
- "./GridBlocks": {
216
- "import": "./esm/GridBlocks.js",
217
- "require": "./GridBlocks.js"
218
- },
219
- "./Heading": {
220
- "import": "./esm/Heading.js",
221
- "require": "./Heading.js"
222
- },
223
- "./HeroBlock": {
224
- "import": "./esm/HeroBlock.js",
225
- "require": "./HeroBlock.js"
226
- },
227
- "./IframeBlock": {
228
- "import": "./esm/IframeBlock.js",
229
- "require": "./IframeBlock.js"
230
- },
231
- "./Illustration": {
232
- "import": "./esm/Illustration.js",
233
- "require": "./Illustration.js"
234
- },
235
- "./ImageCards": {
236
- "import": "./esm/ImageCards.js",
237
- "require": "./ImageCards.js"
238
- },
239
- "./InfoBlock": {
240
- "import": "./esm/InfoBlock.js",
241
- "require": "./InfoBlock.js"
242
- },
243
- "./InfoHero": {
244
- "import": "./esm/InfoHero.js",
245
- "require": "./InfoHero.js"
246
- },
247
- "./IslandBlock": {
248
- "import": "./esm/IslandBlock.js",
249
- "require": "./IslandBlock.js"
250
- },
251
- "./IslandPageBlock": {
252
- "import": "./esm/IslandPageBlock.js",
253
- "require": "./IslandPageBlock.js"
254
- },
255
- "./LabeledTextBlock": {
256
- "import": "./esm/LabeledTextBlock.js",
257
- "require": "./LabeledTextBlock.js"
258
- },
259
- "./Layout": {
260
- "import": "./esm/Layout.js",
261
- "require": "./Layout.js"
262
- },
263
- "./MainMenu": {
264
- "import": "./esm/MainMenu.js",
265
- "require": "./MainMenu.js"
266
- },
267
- "./MiniMetrics": {
268
- "import": "./esm/MiniMetrics.js",
269
- "require": "./MiniMetrics.js"
270
- },
271
- "./Modal": {
272
- "import": "./esm/Modal.js",
273
- "require": "./Modal.js"
274
- },
275
- "./NameCard": {
276
- "import": "./esm/NameCard.js",
277
- "require": "./NameCard.js"
278
- },
279
- "./NameCards": {
280
- "import": "./esm/NameCards.js",
281
- "require": "./NameCards.js"
282
- },
283
- "./NewsHero": {
284
- "import": "./esm/NewsHero.js",
285
- "require": "./NewsHero.js"
286
- },
287
- "./PageFilter": {
288
- "import": "./esm/PageFilter.js",
289
- "require": "./PageFilter.js"
290
- },
291
- "./PageHeading": {
292
- "import": "./esm/PageHeading.js",
293
- "require": "./PageHeading.js"
294
- },
295
- "./Picture": {
296
- "import": "./esm/Picture.js",
297
- "require": "./Picture.js"
298
- },
299
- "./ProcessOverview": {
300
- "import": "./esm/ProcessOverview.js",
301
- "require": "./ProcessOverview.js"
302
- },
303
- "./PullQuote": {
304
- "import": "./esm/PullQuote.js",
305
- "require": "./PullQuote.js"
306
- },
307
- "./RadioButtonsGroup": {
308
- "import": "./esm/RadioButtonsGroup.js",
309
- "require": "./RadioButtonsGroup.js"
310
- },
311
- "./RadioGroup": {
312
- "import": "./esm/RadioGroup.js",
313
- "require": "./RadioGroup.js"
314
- },
315
- "./RelatedLinks": {
316
- "import": "./esm/RelatedLinks.js",
317
- "require": "./RelatedLinks.js"
318
- },
319
- "./RowBlock": {
320
- "import": "./esm/RowBlock.js",
321
- "require": "./RowBlock.js"
322
- },
323
- "./RowBlockColumn": {
324
- "import": "./esm/RowBlockColumn.js",
325
- "require": "./RowBlockColumn.js"
326
- },
327
- "./SearchInput": {
328
- "import": "./esm/SearchInput.js",
329
- "require": "./SearchInput.js"
330
- },
331
- "./SearchResults": {
332
- "import": "./esm/SearchResults.js",
333
- "require": "./SearchResults.js"
334
- },
335
- "./SeenEffect": {
336
- "import": "./esm/SeenEffect.js",
337
- "require": "./SeenEffect.js"
338
- },
339
- "./Selectbox": {
340
- "import": "./esm/Selectbox.js",
341
- "require": "./Selectbox.js"
342
- },
343
- "./ShareButtons": {
344
- "import": "./esm/ShareButtons.js",
345
- "require": "./ShareButtons.js"
346
- },
347
- "./Sharpie": {
348
- "import": "./esm/Sharpie.js",
349
- "require": "./Sharpie.js"
350
- },
351
- "./SiteSearchAutocomplete": {
352
- "import": "./esm/SiteSearchAutocomplete.js",
353
- "require": "./SiteSearchAutocomplete.js"
354
- },
355
- "./SiteSearchCurtain": {
356
- "import": "./esm/SiteSearchCurtain.js",
357
- "require": "./SiteSearchCurtain.js"
358
- },
359
- "./SiteSearchInput": {
360
- "import": "./esm/SiteSearchInput.js",
361
- "require": "./SiteSearchInput.js"
362
- },
363
- "./Skeleton": {
364
- "import": "./esm/Skeleton.js",
365
- "require": "./Skeleton.js"
366
- },
367
- "./SubHeading": {
368
- "import": "./esm/SubHeading.js",
369
- "require": "./SubHeading.js"
370
- },
371
- "./Tabs": {
372
- "import": "./esm/Tabs.js",
373
- "require": "./Tabs.js"
374
- },
375
- "./TagPill": {
376
- "import": "./esm/TagPill.js",
377
- "require": "./TagPill.js"
378
- },
379
- "./TextBlock": {
380
- "import": "./esm/TextBlock.js",
381
- "require": "./TextBlock.js"
382
- },
383
- "./TextButton": {
384
- "import": "./esm/TextButton.js",
385
- "require": "./TextButton.js"
386
- },
387
- "./TextInput": {
388
- "import": "./esm/TextInput.js",
389
- "require": "./TextInput.js"
390
- },
391
- "./utils": {
392
- "import": "./esm/utils.js",
393
- "require": "./utils.js"
394
- },
395
- "./VerticalTabsTOC": {
396
- "import": "./esm/VerticalTabsTOC.js",
397
- "require": "./VerticalTabsTOC.js"
398
- },
399
- "./VSpacer": {
400
- "import": "./esm/VSpacer.js",
401
- "require": "./VSpacer.js"
402
- },
403
- "./WizardLayout": {
404
- "import": "./esm/WizardLayout.js",
405
- "require": "./WizardLayout.js"
406
- },
407
- "./WizardLayoutClose": {
408
- "import": "./esm/WizardLayoutClose.js",
409
- "require": "./WizardLayoutClose.js"
410
- },
411
- "./WizardStepper": {
412
- "import": "./esm/WizardStepper.js",
413
- "require": "./WizardStepper.js"
414
- }
415
- }
41
+ ]
416
42
  }
package/utils/env.js CHANGED
@@ -1,10 +1,8 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.isPreact = void 0;
7
- const react_1 = __importDefault(require("react"));
4
+ const tslib_1 = require("tslib");
5
+ const react_1 = tslib_1.__importDefault(require("react"));
8
6
  exports.isPreact =
9
7
  // imported from 'preact'
10
8
  'h' in react_1.default ||
@@ -1,10 +1,8 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.useScrollbarWidthCSSVar = void 0;
7
- const getScrollbarWidth_1 = __importDefault(require("@hugsmidjan/qj/getScrollbarWidth"));
4
+ const tslib_1 = require("tslib");
5
+ const getScrollbarWidth_1 = tslib_1.__importDefault(require("@hugsmidjan/qj/getScrollbarWidth"));
8
6
  const hooks_1 = require("@hugsmidjan/react/hooks");
9
7
  const useScrollbarWidthCSSVar = () => (0, hooks_1.useOnMount)(() => getScrollbarWidth_1.default.setCSSvar());
10
8
  exports.useScrollbarWidthCSSVar = useScrollbarWidthCSSVar;
package/utils.js CHANGED
@@ -1,18 +1,5 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
2
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./utils/useFormatMonitor"), exports);
18
- __exportStar(require("./utils/useGetSVGtext"), exports);
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./utils/useFormatMonitor"), exports);
5
+ tslib_1.__exportStar(require("./utils/useGetSVGtext"), exports);