@majoo-ui/react 1.40.0 → 1.41.0

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.
@@ -31,7 +31,7 @@ interface Props {
31
31
  /**
32
32
  * if carousel set true, set children element instead src props
33
33
  */
34
- children?: React.ReactNode | number;
34
+ children?: React.ReactNode;
35
35
  /**
36
36
  * option for use device preview with component
37
37
  * @default false
@@ -0,0 +1,25 @@
1
+ /// <reference types="react" />
2
+ import type * as Stitches from '@stitches/react';
3
+ export interface IResource {
4
+ value: string;
5
+ label: string;
6
+ variants?: string[];
7
+ }
8
+ interface IInputResourceListProps {
9
+ data: IResource[];
10
+ disabled: boolean;
11
+ onItemCheck(checkedItem: IResource): void;
12
+ onItemUncheck(checkedItem: IResource): void;
13
+ searchPlaceholder: string;
14
+ counterFooterText: string;
15
+ isLoading: boolean;
16
+ value?: IResource[];
17
+ fetchData?(props: {
18
+ query?: string;
19
+ pageIndex?: number;
20
+ }): void;
21
+ onQueryChange?(query: string): void;
22
+ css?: Stitches.CSS;
23
+ }
24
+ declare function InputResourceList({ data, disabled, onItemCheck, onItemUncheck, searchPlaceholder, counterFooterText, isLoading, value, fetchData, onQueryChange, css, }: IInputResourceListProps): JSX.Element;
25
+ export default InputResourceList;
@@ -0,0 +1,18 @@
1
+ export { default as FormGroup } from './FormGroup/FormGroup';
2
+ export { default as FormLabel } from './FormLabel/Label';
3
+ export { default as FormHelper } from './FormHelper/Helper';
4
+ export * from './InputCheckbox';
5
+ export * from './InputGroup';
6
+ export * from './InputAddon';
7
+ export * from './InputLetter';
8
+ export * from './InputTextArea';
9
+ export * from './InputRadio';
10
+ export * from './InputText';
11
+ export * from './InputElement';
12
+ export { default as InputTags } from './InputTags/InputTags';
13
+ export { default as InputSwitch } from './InputSwitch/InputSwitch';
14
+ export { default as InputSearchbox } from './InputSearchbox/InputSearchbox';
15
+ export { default as InputSelect } from './InputSelect/InputSelect';
16
+ export { default as InputSelectTag } from './InputSelectTag/InputSelectTag';
17
+ export { default as InputCreatable } from './InputCreatable/InputCreatable';
18
+ export { default as InputResourceList } from './InputResourceList/InputResourceList';
@@ -0,0 +1 @@
1
+ export * from './components';
@@ -0,0 +1,39 @@
1
+ export * from './banner';
2
+ export * from './button';
3
+ export * from './card';
4
+ export * from './heading';
5
+ export * from './text';
6
+ export * from './paragraph';
7
+ export * from './breadcrumb';
8
+ export * from './badge';
9
+ export * from './avatar';
10
+ export * from './image';
11
+ export * from './tooltip';
12
+ export * from './progress';
13
+ export * from './toast';
14
+ export * from './form';
15
+ export * from './popover';
16
+ export * from './slider';
17
+ export * from './tag';
18
+ export * from './tagStatus';
19
+ export * from './tabs';
20
+ export * from './separator';
21
+ export * from './buttonGroup';
22
+ export * from './notificationBadge';
23
+ export * from './paper';
24
+ export * from './iconButton';
25
+ export * from './modalDialog';
26
+ export * from './drawer';
27
+ export * from './accordion';
28
+ export * from './datePicker';
29
+ export * from './table';
30
+ export * from './pagination';
31
+ export * from './pageDialog';
32
+ export * from './dialog';
33
+ export * from './alertDialog';
34
+ export * from './dropdownMenu';
35
+ export * from './upload';
36
+ export * from './devicePreview';
37
+ export * from './colorPicker';
38
+ export * from './stepWizard';
39
+ export * from './tableOfContent';
@@ -0,0 +1,30 @@
1
+ import * as React from 'react';
2
+ import type * as Stitches from '@stitches/react';
3
+ declare type DataContents = {
4
+ title: string;
5
+ withTolltip?: boolean;
6
+ tooltipsContents?: string;
7
+ };
8
+ declare type Transitions = {
9
+ enterRight?: string;
10
+ enterLeft?: string;
11
+ exitRight?: string;
12
+ exitLeft?: string;
13
+ intro?: string;
14
+ };
15
+ interface IStepWizardProps {
16
+ initialStep: number;
17
+ navContents: Array<DataContents>;
18
+ isMobile?: boolean;
19
+ cssNav?: Stitches.CSS;
20
+ children: React.ReactNode;
21
+ transitions?: Transitions;
22
+ onStepChange?: (stepChange: {
23
+ prevStep: number;
24
+ activeStep: number;
25
+ }) => void;
26
+ }
27
+ declare const StepWizard: (props: IStepWizardProps) => JSX.Element;
28
+ export default StepWizard;
29
+ export { StepWizardContext } from './StepWizard';
30
+ export { StepWizard };
package/index.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ export * from './majoo-provider';
2
+ export * from './components';
3
+ export * from './layout';
4
+ export * from './colors';