@reykjavik/hanna-react 0.10.163 → 0.10.164

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/Alert.d.ts CHANGED
@@ -26,12 +26,16 @@ export type AlertProps = {
26
26
  } & SSRSupportProps & EitherObj<{
27
27
  /**
28
28
  * Seconds until the Alert auto-closes.
29
- * Mosueover and keyboard focus resets the timer.
29
+ * Mosueover and keyboard focus resets the timer. \
30
+ * NOTE: An `onClosed` handler is required when using this option.
30
31
  */
31
32
  autoClose: number;
32
33
  /** Return `false` to prevent the alert from closing. */
33
34
  onClose?: () => void | boolean;
34
- /** Callback that fires when the alert has closed/transitoned out */
35
+ /**
36
+ * Callback that fires when the alert has closed/transitoned out. \
37
+ * Required when `autoClose` is used.
38
+ */
35
39
  onClosed: () => void;
36
40
  }, {
37
41
  /**
package/CHANGELOG.md CHANGED
@@ -4,6 +4,13 @@
4
4
 
5
5
  - ... <!-- Add new lines here. -->
6
6
 
7
+ ## 0.10.164
8
+
9
+ _2026-01-20_
10
+
11
+ - fix: Broken/missing `IconToken` type export due to bad import path — affects
12
+ both `Button*` and `Icon` components
13
+
7
14
  ## 0.10.163
8
15
 
9
16
  _2026-01-20_
package/Icon.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { IconToken } from '../../hanna-css/src/iconfontTokens.js';
1
+ import { IconToken } from '@reykjavik/hanna-css';
2
2
  import { HTMLProps } from './utils.js';
3
3
  export type IconProps = {
4
4
  type: IconToken;
@@ -1,5 +1,5 @@
1
1
  import { ComponentProps, ReactElement, ReactNode } from 'react';
2
- import { IconToken } from '../../../hanna-css/src/iconfontTokens.js';
2
+ import { IconToken } from '@reykjavik/hanna-css';
3
3
  import { BemModifierProps, BemProps } from '../utils/types.js';
4
4
  type ButtonElmProps = {
5
5
  href?: never;
package/esm/Alert.d.ts CHANGED
@@ -26,12 +26,16 @@ export type AlertProps = {
26
26
  } & SSRSupportProps & EitherObj<{
27
27
  /**
28
28
  * Seconds until the Alert auto-closes.
29
- * Mosueover and keyboard focus resets the timer.
29
+ * Mosueover and keyboard focus resets the timer. \
30
+ * NOTE: An `onClosed` handler is required when using this option.
30
31
  */
31
32
  autoClose: number;
32
33
  /** Return `false` to prevent the alert from closing. */
33
34
  onClose?: () => void | boolean;
34
- /** Callback that fires when the alert has closed/transitoned out */
35
+ /**
36
+ * Callback that fires when the alert has closed/transitoned out. \
37
+ * Required when `autoClose` is used.
38
+ */
35
39
  onClosed: () => void;
36
40
  }, {
37
41
  /**
package/esm/Icon.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { IconToken } from '../../hanna-css/src/iconfontTokens.js';
1
+ import { IconToken } from '@reykjavik/hanna-css';
2
2
  import { HTMLProps } from './utils.js';
3
3
  export type IconProps = {
4
4
  type: IconToken;
@@ -1,5 +1,5 @@
1
1
  import { ComponentProps, ReactElement, ReactNode } from 'react';
2
- import { IconToken } from '../../../hanna-css/src/iconfontTokens.js';
2
+ import { IconToken } from '@reykjavik/hanna-css';
3
3
  import { BemModifierProps, BemProps } from '../utils/types.js';
4
4
  type ButtonElmProps = {
5
5
  href?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reykjavik/hanna-react",
3
- "version": "0.10.163",
3
+ "version": "0.10.164",
4
4
  "author": "Reykjavík (http://www.reykjavik.is)",
5
5
  "contributors": [
6
6
  "Hugsmiðjan ehf (http://www.hugsmidjan.is)",
@@ -17,7 +17,7 @@
17
17
  "@floating-ui/react": "^0.19.2",
18
18
  "@hugsmidjan/qj": "^4.22.1",
19
19
  "@hugsmidjan/react": "^0.4.32",
20
- "@reykjavik/hanna-css": "^0.4.25",
20
+ "@reykjavik/hanna-css": "^0.4.26",
21
21
  "@reykjavik/hanna-utils": "^0.2.21",
22
22
  "@types/react-autosuggest": "^10.1.0",
23
23
  "@types/react-datepicker": "^4.8.0",