master-components-react-ts 2.2.11 → 2.2.12

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,24 +1,28 @@
1
1
  import { CSSProperties } from 'react';
2
2
  /**InlineLoading Component Props */
3
+ export type Loading = {
4
+ state: boolean;
5
+ color1?: string;
6
+ color2?: string;
7
+ size?: string;
8
+ };
9
+ export type Success = {
10
+ state: boolean;
11
+ color?: string;
12
+ size?: string;
13
+ };
14
+ export type Error = {
15
+ state: boolean;
16
+ color?: string;
17
+ size?: string;
18
+ };
19
+ export type Msg = {
20
+ text?: string;
21
+ style?: CSSProperties;
22
+ };
3
23
  export interface InlineLoadingProps {
4
- loading?: {
5
- state: boolean;
6
- color1?: string;
7
- color2?: string;
8
- size?: string;
9
- };
10
- success?: {
11
- state: boolean;
12
- color?: string;
13
- size?: string;
14
- };
15
- error?: {
16
- state: boolean;
17
- color?: string;
18
- size?: string;
19
- };
20
- msg?: {
21
- text?: string;
22
- style?: CSSProperties;
23
- };
24
+ loading?: Loading;
25
+ success?: Success;
26
+ error?: Error;
27
+ msg?: Msg;
24
28
  }
package/dist/index.d.ts CHANGED
@@ -28,12 +28,11 @@ export type { SkeletonProps } from './components/Skeleton/Skeleton.types';
28
28
  export { default as ActionDropdown } from './components/ActionDropdown/ActionDropdown';
29
29
  export type { ActionDropdownProps } from './components/ActionDropdown/ActionDropdown.types';
30
30
  export { default as InlineLoading } from './components/InlineLoading/InlineLoading';
31
- export type { InlineLoadingProps } from './components/InlineLoading/InlineLoading.types';
31
+ export type { Loading, Success, Error } from './components/InlineLoading/InlineLoading.types';
32
32
  export { default as Slider } from './components/Slider/Slider';
33
- export type { SliderProps } from './components/Slider/Slider.types';
34
33
  export { default as TreeNode } from './components/TreeNode/TreeNode';
35
- export type { TreeNodeProps } from './components/TreeNode/TreeNode.types';
34
+ export type { TreeNodeData } from './components/TreeNode/TreeNode.types';
36
35
  export { default as FilterWithTags } from './components/FilterWithTags/FilterWithTags';
37
- export type { FilterWithTagsProps } from './components/FilterWithTags/FilterWithTags.types';
36
+ export type { FilterOptions } from './components/FilterWithTags/FilterWithTags.types';
38
37
  export { default as Table } from './components/Table/Table';
39
38
  export type { TableProps } from './components/Table/Table.types';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "master-components-react-ts",
3
3
  "private": false,
4
- "version": "2.2.11",
4
+ "version": "2.2.12",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",