@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.
- package/README.md +3 -2
- package/dist/CHANGELOG.md +8 -0
- package/dist/{DateCellRenderer-6jyIN-OC.cjs → DateCellRenderer-DMq0adkA.cjs} +1 -1
- package/dist/components/New/Calendar/Calendar.js +245 -228
- package/dist/components/New/ErrorBoundary/ErrorBoundary.js +67 -0
- package/dist/components/New/Grid/components/SelectionCell.js +35 -33
- package/dist/components/Spinner/Spinner.js +16 -11
- package/dist/components-manifest.json +105 -7
- package/dist/dial-ui-kit.cjs +3 -3
- package/dist/dial-ui-kit.js +78 -76
- package/dist/grid.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/src/components/New/Calendar/Calendar.d.ts +32 -1
- package/dist/src/components/New/ErrorBoundary/ErrorBoundary.d.ts +78 -0
- package/dist/src/components/New/Grid/components/SelectionCell.d.ts +4 -1
- package/dist/src/components/Spinner/Spinner.d.ts +27 -1
- package/dist/src/index.d.ts +3 -1
- package/package.json +1 -1
|
@@ -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>;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -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';
|