@ostack.tech/ui 0.10.2 → 0.10.4

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.
@@ -5,7 +5,7 @@ import { IconButton } from '../IconButton';
5
5
  /** Properties provided to the fallback element. */
6
6
  export interface FallbackProps {
7
7
  /** Error that occurred. */
8
- error: any;
8
+ error: unknown;
9
9
  /**
10
10
  * Function which, when called, rerenders the boundary `children`.
11
11
  *
@@ -1,7 +1,7 @@
1
1
  import { ErrorInfo } from 'react';
2
2
  /** Value of the error reporting context. */
3
3
  export interface ErrorReportingContextValue {
4
- onError: (error: Error, info?: ErrorInfo) => void;
4
+ onError: (error: unknown, info?: ErrorInfo) => void;
5
5
  }
6
6
  /** Error reporting context. */
7
7
  export declare const ErrorReportingContext: import('react').Context<ErrorReportingContextValue | null>;
@@ -1,2 +1,2 @@
1
1
  /** Hook used to report an error. */
2
- export declare function useErrorReporter(): (error: Error, info?: import('react').ErrorInfo) => void;
2
+ export declare function useErrorReporter(): (error: unknown, info?: import('react').ErrorInfo) => void;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ostack.tech/ui",
3
3
  "description": "ostack/UI component library.",
4
- "version": "0.10.2",
4
+ "version": "0.10.4",
5
5
  "homepage": "https://ui.ostack.tech/",
6
6
  "author": {
7
7
  "name": "Opensoft",
@@ -47,7 +47,7 @@
47
47
  "from-exponential": "^1.1.1",
48
48
  "radix-ui": "^1.4.3",
49
49
  "react-day-picker": "^9.13.0",
50
- "react-error-boundary": "^6.0.3",
50
+ "react-error-boundary": "^6.1.0",
51
51
  "react-number-format": "^5.4.4",
52
52
  "react-to-print": "^3.2.0",
53
53
  "tinykeys": "^3.0.0"
@@ -356,6 +356,7 @@
356
356
  background-color: var(--#{$prefix}tabs-tab-inner-background-color);
357
357
  color: var(--#{$prefix}tabs-tab-inner-color);
358
358
  box-shadow: var(--#{$prefix}tabs-tab-inner-box-shadow);
359
+ text-align: center;
359
360
 
360
361
  &:not(&--hidden) {
361
362
  position: absolute;