@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 +6 -2
- package/CHANGELOG.md +7 -0
- package/Icon.d.ts +1 -1
- package/_abstract/_Button.d.ts +1 -1
- package/esm/Alert.d.ts +6 -2
- package/esm/Icon.d.ts +1 -1
- package/esm/_abstract/_Button.d.ts +1 -1
- package/package.json +2 -2
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
|
-
/**
|
|
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
package/Icon.d.ts
CHANGED
package/_abstract/_Button.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentProps, ReactElement, ReactNode } from 'react';
|
|
2
|
-
import { IconToken } from '
|
|
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
|
-
/**
|
|
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,5 +1,5 @@
|
|
|
1
1
|
import { ComponentProps, ReactElement, ReactNode } from 'react';
|
|
2
|
-
import { IconToken } from '
|
|
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.
|
|
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.
|
|
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",
|