@antscorp/antsomi-ui 1.2.3-beta.31 → 1.2.3-beta.32
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/dist/index.js +1 -1
- package/dist/types/components/atoms/DividerPure/DividerPure.d.ts +10 -0
- package/dist/types/components/atoms/DividerPure/index.d.ts +1 -0
- package/dist/types/components/atoms/DividerPure/styled.d.ts +1 -0
- package/dist/types/components/atoms/index.d.ts +1 -0
- package/dist/types/components/molecules/AlignSetting/__tests__/index.test.d.ts +1 -0
- package/dist/types/components/molecules/AlignSetting/index.d.ts +19 -0
- package/dist/types/components/molecules/AlignSetting/styled.d.ts +1 -0
- package/dist/types/components/molecules/AlignSetting/utils.d.ts +3 -0
- package/dist/types/components/molecules/EdgeSetting/__tests__/index.test.d.ts +1 -0
- package/dist/types/components/molecules/EdgeSetting/index.d.ts +39 -0
- package/dist/types/components/molecules/EdgeSetting/styled.d.ts +3 -0
- package/dist/types/components/molecules/index.d.ts +3 -0
- package/dist/types/components/organism/PositionSetting/__tests__/index.test.d.ts +1 -0
- package/dist/types/components/organism/PositionSetting/config.d.ts +10 -0
- package/dist/types/components/organism/PositionSetting/index.d.ts +15 -0
- package/dist/types/components/organism/PositionSetting/styled.d.ts +1 -0
- package/dist/types/components/organism/PositionSetting/types.d.ts +10 -0
- package/dist/types/components/organism/index.d.ts +1 -0
- package/dist/types/test.d.ts +0 -1
- package/dist/types/utils/common.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface DividerProps extends React.HtmlHTMLAttributes<HTMLDivElement> {
|
|
3
|
+
type?: 'vertical' | 'horizontal';
|
|
4
|
+
dot?: boolean;
|
|
5
|
+
dashed?: boolean;
|
|
6
|
+
height?: number | string;
|
|
7
|
+
width?: number | string;
|
|
8
|
+
}
|
|
9
|
+
export declare const DividerPure: React.FC<DividerProps>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DividerPure } from './DividerPure';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Wrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type TAlign = 'left' | 'center' | 'right' | undefined;
|
|
3
|
+
export interface AlignEditProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
align?: TAlign;
|
|
6
|
+
onChange?: (align: TAlign) => void;
|
|
7
|
+
style?: Object;
|
|
8
|
+
}
|
|
9
|
+
export interface AlignSettingProps extends AlignEditProps {
|
|
10
|
+
label?: string;
|
|
11
|
+
labelClassName?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const ALIGN_TYPE: {
|
|
14
|
+
LEFT: string;
|
|
15
|
+
CENTER: string;
|
|
16
|
+
RIGHT: string;
|
|
17
|
+
};
|
|
18
|
+
export declare const AlignEdit: React.FC<AlignEditProps>;
|
|
19
|
+
export declare const AlignSetting: React.FC<AlignSettingProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const AlignSettingWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type MarginProps = number | 'auto';
|
|
3
|
+
type ValueProps = [MarginProps, MarginProps, MarginProps, MarginProps];
|
|
4
|
+
type ValueLabelProps = [string, string, string?, string?];
|
|
5
|
+
type AlignTypeProps = 'left' | 'center' | 'right';
|
|
6
|
+
type UnitProps = 'px' | '%' | any;
|
|
7
|
+
export declare const UNIT: {
|
|
8
|
+
PX: {
|
|
9
|
+
value: string;
|
|
10
|
+
label: string;
|
|
11
|
+
};
|
|
12
|
+
PERCENT: {
|
|
13
|
+
value: string;
|
|
14
|
+
label: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
type DataProps = {
|
|
18
|
+
values: ValueProps;
|
|
19
|
+
linked: boolean;
|
|
20
|
+
unit: UnitProps;
|
|
21
|
+
align: AlignTypeProps;
|
|
22
|
+
};
|
|
23
|
+
type OnChangeProps = (data: DataProps) => void;
|
|
24
|
+
interface EdgeSettingProps {
|
|
25
|
+
label: string;
|
|
26
|
+
minValue?: number;
|
|
27
|
+
maxValue?: number;
|
|
28
|
+
edgeLabels?: ValueLabelProps;
|
|
29
|
+
edgeLabelClassName?: string;
|
|
30
|
+
contentClassName?: string;
|
|
31
|
+
values: ValueProps;
|
|
32
|
+
unit?: UnitProps;
|
|
33
|
+
linked?: boolean;
|
|
34
|
+
onChange?: OnChangeProps;
|
|
35
|
+
align?: AlignTypeProps | null;
|
|
36
|
+
disabledLinked?: boolean | false;
|
|
37
|
+
}
|
|
38
|
+
export declare const EdgeSetting: React.FC<EdgeSettingProps>;
|
|
39
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const EdgeSettingWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const EdgeSettingHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const EdgeSettingContent: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -15,5 +15,8 @@ export { RadioGroup } from './RadioGroup';
|
|
|
15
15
|
export { InputSearch } from './InputSearch';
|
|
16
16
|
export { UploadImage } from './UploadImage';
|
|
17
17
|
export { IconSelection } from './IconSelection';
|
|
18
|
+
export { AlignSetting } from './AlignSetting';
|
|
19
|
+
export { EdgeSetting } from './EdgeSetting';
|
|
18
20
|
export type { AdvancedPickerProps, TAdvancedPickerOption, TAdvancedRangePickerTimeRange, } from './DatePicker';
|
|
19
21
|
export type { ColorPickerProps } from './ColorPicker';
|
|
22
|
+
export type { AlignEditProps, AlignSettingProps } from './AlignSetting';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React, { CSSProperties } from 'react';
|
|
2
|
+
import { TPositionSettings, TPositionStyles } from './types';
|
|
3
|
+
interface PositionSettingProps {
|
|
4
|
+
labelWrapper?: string;
|
|
5
|
+
labelEdgeSetting?: string;
|
|
6
|
+
settings: TPositionSettings;
|
|
7
|
+
styles: TPositionStyles;
|
|
8
|
+
labelStyle?: Partial<CSSProperties>;
|
|
9
|
+
onChange?: (settings: TPositionSettings, styles: TPositionStyles) => void;
|
|
10
|
+
}
|
|
11
|
+
interface PositionSettingPopoverProps extends PositionSettingProps {
|
|
12
|
+
}
|
|
13
|
+
export declare const PositionSetting: React.FC<PositionSettingProps>;
|
|
14
|
+
export declare const PositionSettingPopover: React.FC<PositionSettingPopoverProps>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PositionSettingWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
package/dist/types/test.d.ts
CHANGED