@reykjavik/hanna-react 0.10.121 → 0.10.122

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,12 @@
4
4
 
5
5
  - ... <!-- Add new lines here. -->
6
6
 
7
+ ## 0.10.122
8
+
9
+ _2024-03-18_
10
+
11
+ - fix: Bad module import path in checkbox and radio inputs
12
+
7
13
  ## 0.10.121
8
14
 
9
15
  _2024-03-14_
@@ -4,7 +4,7 @@ exports.TogglerInput = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const react_1 = tslib_1.__importDefault(require("react"));
6
6
  const classUtils_1 = require("@hugsmidjan/qj/classUtils");
7
- const i18n_js_1 = require("@reykjavik/hanna-utils/i18n.js");
7
+ const i18n_1 = require("@reykjavik/hanna-utils/i18n");
8
8
  const useDomid_js_1 = require("../utils/useDomid.js");
9
9
  const defaultReqText = {
10
10
  is: 'Þarf að haka í',
@@ -18,7 +18,7 @@ const TogglerInput = (props) => {
18
18
  const errorId = errorMessage && `error${domid}`;
19
19
  const reqStar = required && reqText !== false && (react_1.default.createElement("abbr", { className: `${bem}__label__reqstar`,
20
20
  // FIXME: add mo-better i18n thinking
21
- title: `${reqText || defaultReqText[i18n_js_1.DEFAULT_LANG]}: ` }, "*"));
21
+ title: `${reqText || defaultReqText[i18n_1.DEFAULT_LANG]}: ` }, "*"));
22
22
  const readOnly = restInputProps.readOnly || (inputProps || {}).readOnly;
23
23
  const labelContent = (react_1.default.createElement(react_1.default.Fragment, null,
24
24
  ' ',
@@ -1,7 +1,7 @@
1
1
  import { __rest } from "tslib";
2
2
  import React from 'react';
3
3
  import { modifiedClass } from '@hugsmidjan/qj/classUtils';
4
- import { DEFAULT_LANG } from '@reykjavik/hanna-utils/i18n.js';
4
+ import { DEFAULT_LANG } from '@reykjavik/hanna-utils/i18n';
5
5
  import { useDomid } from '../utils/useDomid.js';
6
6
  const defaultReqText = {
7
7
  is: 'Þarf að haka í',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reykjavik/hanna-react",
3
- "version": "0.10.121",
3
+ "version": "0.10.122",
4
4
  "author": "Reykjavík (http://www.reykjavik.is)",
5
5
  "contributors": [
6
6
  "Hugsmiðjan ehf (http://www.hugsmidjan.is)",