@cube-dev/ui-kit 0.7.2 → 0.7.6

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.
@@ -0,0 +1,19 @@
1
+ import { ReactNode } from 'react';
2
+ import { BaseProps, ContainerStyleProps } from '../../types';
3
+ export interface CubeResultProps extends BaseProps, ContainerStyleProps {
4
+ /** Additional block content. For example, a set of buttons */
5
+ children?: ReactNode;
6
+ /** Custom icon element */
7
+ icon?: ReactNode;
8
+ /**
9
+ * Result status from ready-made templates
10
+ * @default 'info'
11
+ */
12
+ status?: CubeResultStatus;
13
+ /** The subTitle */
14
+ subTitle?: ReactNode;
15
+ /** The title */
16
+ title?: ReactNode;
17
+ }
18
+ export declare type CubeResultStatus = 'success' | 'error' | 'info' | 'warning' | 404 | 403 | 500;
19
+ export declare const Result: import("react").ForwardRefExoticComponent<CubeResultProps & import("react").RefAttributes<HTMLElement>>;
@@ -47,6 +47,8 @@ export { Header } from './components/content/Header';
47
47
  export type { CubeHeaderProps } from './components/content/Header';
48
48
  export { Footer } from './components/content/Footer';
49
49
  export type { CubeFooterProps } from './components/content/Footer';
50
+ export { Result } from './components/content/Result/Result';
51
+ export type { CubeResultProps, CubeResultStatus, } from './components/content/Result/Result';
50
52
  export { FieldWrapper } from './components/forms/FieldWrapper';
51
53
  export type { CubeFieldWrapperProps } from './components/forms/FieldWrapper';
52
54
  export { LoadingAnimation } from './components/status/LoadingAnimation/LoadingAnimation';