@epam/ai-dial-ui-kit 0.16.0-dev.62 → 0.16.0-dev.67

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.
@@ -1,11 +1,37 @@
1
- import { FC } from 'react';
1
+ import { FC, Ref } from 'react';
2
2
  export interface SpinnerProps {
3
3
  size?: number;
4
4
  className?: string;
5
5
  fullWidth?: boolean;
6
+ /**
7
+ * Covers the whole viewport: a fixed overlay on the page background, above
8
+ * the page and at the kit's popup layer, with the ring centred. For an app's
9
+ * loading screen; it replaces the `fullWidth` + `h-screen` wrappers hosts
10
+ * wrote themselves.
11
+ */
12
+ fullScreen?: boolean;
6
13
  ariaLabel?: string;
14
+ /**
15
+ * Makes the ring focusable (`tabIndex={-1}`) and points this ref at it, so
16
+ * a host can move focus to the loading state after a retry removes the
17
+ * focused control. The ring, not the overlay, takes focus, so the host's
18
+ * focus outline stays on screen.
19
+ */
20
+ focusRef?: Ref<HTMLDivElement>;
7
21
  }
8
22
  /**
9
23
  * Design system 2.0
24
+ *
25
+ * @example
26
+ * ```tsx
27
+ * <Spinner fullScreen size={48} ariaLabel="Checking your session…" />
28
+ * ```
29
+ *
30
+ * @param [size] - Ring diameter in px.
31
+ * @param [className] - Additional container classes.
32
+ * @param [fullWidth] - Stretches the container to its parent's width and height.
33
+ * @param [fullScreen] - Covers the whole viewport with the ring centred.
34
+ * @param [ariaLabel] - Accessible label for screen readers.
35
+ * @param [focusRef] - Makes the ring focusable and points this ref at it.
10
36
  */
11
37
  export declare const Spinner: FC<SpinnerProps>;
@@ -84,7 +84,7 @@ export type { CardShellProps } from './components/New/CardShell/CardShell';
84
84
  export { ErrorMessageNotification, ErrorToastNotification, GeneralMessageNotification, GeneralToastNotification, InfoMessageNotification, InfoToastNotification, LoadingMessageNotification, LoadingToastNotification, SuccessMessageNotification, SuccessToastNotification, WarningMessageNotification, WarningToastNotification, } from './components/New/Notification/NotificationWrapper';
85
85
  export { CalendarMode } from './types/calendar.ts';
86
86
  export { Calendar } from './components/New/Calendar/Calendar';
87
- export type { CalendarProps, CalendarValue, } from './components/New/Calendar/Calendar';
87
+ export type { CalendarProps, CalendarTimeFieldRenderProps, CalendarValue, } from './components/New/Calendar/Calendar';
88
88
  export { FolderPath } from './components/New/FolderPath/FolderPath';
89
89
  export type { FolderPathProps } from './components/New/FolderPath/FolderPath';
90
90
  export { BreadcrumbsSize } from './types/breadcrumbs';
@@ -237,6 +237,8 @@ export { NoDataContent } from './components/New/NoDataContent/NoDataContent';
237
237
  export type { NoDataContentProps } from './components/New/NoDataContent/NoDataContent';
238
238
  export { StateScreen } from './components/New/StateScreen/StateScreen';
239
239
  export type { StateScreenProps } from './components/New/StateScreen/StateScreen';
240
+ export { ErrorBoundary } from './components/New/ErrorBoundary/ErrorBoundary';
241
+ export type { ErrorBoundaryProps } from './components/New/ErrorBoundary/ErrorBoundary';
240
242
  export { LoginScreen } from './components/New/LoginScreen/LoginScreen';
241
243
  export type { LoginScreenProps, LoginScreenProvider, } from './components/New/LoginScreen/LoginScreen';
242
244
  export { LiveRegion } from './components/New/LiveRegion/LiveRegion';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-ui-kit",
3
- "version": "0.16.0-dev.62",
3
+ "version": "0.16.0-dev.67",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "A modern UI kit for building AI DIAL interfaces with React",