@cube-dev/ui-kit 0.8.2 → 0.8.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,12 +1,15 @@
1
1
  /// <reference types="react" />
2
2
  import { CubeButtonProps } from '../../actions/Button/Button';
3
3
  import { CubeDialogProps } from '../Dialog/Dialog';
4
+ export interface CubeAlertDialogActionsProps {
5
+ confirm?: CubeButtonProps | boolean;
6
+ secondary?: CubeButtonProps;
7
+ cancel?: CubeButtonProps | boolean;
8
+ }
4
9
  export interface CubeAlertDialogProps extends CubeDialogProps {
5
10
  /** Whether the dialog is an important prompt */
6
11
  danger?: boolean;
7
- primaryProps?: CubeButtonProps;
8
- secondaryProps?: CubeButtonProps;
9
- cancelProps?: CubeButtonProps;
12
+ actions?: CubeAlertDialogActionsProps;
10
13
  title?: string;
11
14
  noActions?: boolean;
12
15
  }
@@ -1,4 +1,5 @@
1
1
  import { ReactNode, RefObject } from 'react';
2
+ import { Item } from '@react-stately/collections';
2
3
  import { Styles } from '../../../styles/types';
3
4
  import { BasePropsWithoutChildren, BlockStyleProps, OuterStyleProps, Props } from '../../types';
4
5
  import { AriaSelectProps } from '@react-types/select';
@@ -39,5 +40,9 @@ export declare function ListBoxPopup({ state, popoverRef, listBoxRef, listBoxSty
39
40
  placement: any;
40
41
  minWidth: any;
41
42
  }): JSX.Element;
42
- declare const __Select: any;
43
+ declare const __Select: import("react").ForwardRefExoticComponent<CubeSelectProps<object> & import("react").RefAttributes<import("@react-types/shared").DOMRefValue<HTMLDivElement>>> & {
44
+ Item: typeof Item;
45
+ } & {
46
+ Item: <T>(props: import("@react-types/shared").ItemProps<T>) => JSX.Element;
47
+ };
43
48
  export { __Select as Select };
@@ -1,16 +1,26 @@
1
1
  /// <reference types="react" />
2
+ import { TextInput } from './components/forms/TextInput/TextInput';
3
+ import { PasswordInput } from './components/forms/PasswordInput/PasswordInput';
4
+ import { NumberInput } from './components/forms/NumberInput/NumberInput';
2
5
  import { CubeFormProps, Field, useForm, useFormProps, CubeFormInstance } from './components/forms/Form';
3
6
  import { CubeTextProps, Text } from './components/content/Text';
4
7
  import { CubeTitleProps, Title } from './components/content/Title';
5
8
  import { CubeParagraphProps, Paragraph } from './components/content/Paragraph';
9
+ import { TextArea } from './components/forms/TextArea/TextArea';
6
10
  import { ButtonGroup } from './components/actions/ButtonGroup/ButtonGroup';
11
+ import { FileInput } from './components/forms/FileInput/FileInput';
7
12
  import './styles/predefined';
8
13
  declare const _Button: import("react").ForwardRefExoticComponent<import("./components/actions/Button/Button").CubeButtonProps & import("react").RefAttributes<import("@react-types/shared").FocusableRefValue<HTMLElement, HTMLElement>>> & {
14
+ Group: typeof ButtonGroup;
15
+ } & {
9
16
  Group: import("react").ForwardRefExoticComponent<import("./components/layout/Space").CubeSpaceProps & import("react").RefAttributes<unknown>>;
10
17
  };
11
18
  declare const Form: import("react").ForwardRefExoticComponent<CubeFormProps & import("react").RefAttributes<unknown>> & {
12
19
  Item: typeof Field;
13
20
  useForm: typeof useForm;
21
+ } & {
22
+ Item: typeof Field;
23
+ useForm: typeof useForm;
14
24
  };
15
25
  export { Item } from '@react-stately/collections';
16
26
  export { Base } from './components/Base';
@@ -89,7 +99,7 @@ export { Switch } from './components/forms/Switch/Switch';
89
99
  export type { CubeSwitchProps } from './components/forms/Switch/Switch';
90
100
  export { Radio } from './components/forms/RadioGroup/Radio';
91
101
  export type { CubeRadioProps } from './components/forms/RadioGroup/Radio';
92
- export { Form, Field, useFormProps };
102
+ export { Form, Field, useFormProps, useForm };
93
103
  export type { CubeFormProps, CubeFormInstance };
94
104
  export { ComboBox } from './components/pickers/ComboBox/ComboBox';
95
105
  export type { CubeComboBoxProps } from './components/pickers/ComboBox/ComboBox';
@@ -154,6 +164,12 @@ declare const Input: import("react").ForwardRefExoticComponent<Omit<import("./co
154
164
  value?: any;
155
165
  defaultValue?: any;
156
166
  } & import("react").RefAttributes<unknown>> & {
167
+ Text: typeof TextInput;
168
+ Password: typeof PasswordInput;
169
+ Number: typeof NumberInput;
170
+ TextArea: typeof TextArea;
171
+ File: typeof FileInput;
172
+ } & {
157
173
  Text: import("react").ForwardRefExoticComponent<Omit<import("./components/forms/TextInput/TextInputBase").CubeTextInputBaseProps, "value" | "defaultValue"> & {
158
174
  value?: any;
159
175
  defaultValue?: any;