@chamn/engine 0.5.2 → 0.7.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.
- package/dist/component/CSSCodeEditor/helper.d.ts +1 -0
- package/dist/component/CSSCodeEditor/index.d.ts +7 -0
- package/dist/component/CSSSizeInput/index.d.ts +1 -0
- package/dist/component/CustomSchemaForm/components/Setters/AdvanceSetterList.d.ts +1 -1
- package/dist/component/CustomSchemaForm/components/Setters/FastLayoutSetter/index.d.ts +3 -0
- package/dist/component/MonacoEditor/index.d.ts +1 -1
- package/dist/component/{CSSUIPanel → StylePanel}/DimensionInput/index.d.ts +1 -1
- package/dist/component/StylePanel/index.d.ts +9 -0
- package/dist/index.cjs +183 -66
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +16299 -15656
- package/dist/index.js.map +1 -1
- package/dist/material/container.meta.d.ts +2 -0
- package/dist/plugins/ComponentLibrary/index.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/type.d.ts +3 -0
- package/dist/utils/index.d.ts +1 -1
- package/package.json +8 -7
- package/dist/component/CSSUIPanel/index.d.ts +0 -8
- package/dist/material/evetList.d.ts +0 -2
- /package/dist/component/{CSSUIPanel → StylePanel}/BackgroundInput/index.d.ts +0 -0
- /package/dist/component/{CSSUIPanel → StylePanel}/BorderInput/index.d.ts +0 -0
- /package/dist/component/{CSSUIPanel → StylePanel}/FontInput/index.d.ts +0 -0
- /package/dist/component/{CSSUIPanel → StylePanel}/MarginAndPaddingInput/index.d.ts +0 -0
- /package/dist/component/{CSSUIPanel → StylePanel}/ShadowInput/index.d.ts +0 -0
- /package/dist/component/{CSSUIPanel → StylePanel}/type.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function parseCssToObject(css: string): Record<string, Record<string, string>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { InputCommonRef } from '../StylePanel/type';
|
|
2
|
+
type CSSCodeEditorProps = {
|
|
3
|
+
onValueChange?: (newVal: Record<any, any>) => void;
|
|
4
|
+
};
|
|
5
|
+
export type CSSCodeEditorRef = InputCommonRef;
|
|
6
|
+
export declare const CSSCodeEditor: import('react').ForwardRefExoticComponent<CSSCodeEditorProps & import('react').RefAttributes<InputCommonRef>>;
|
|
7
|
+
export {};
|
|
@@ -30,6 +30,7 @@ export type CSSSizeInputProps = {
|
|
|
30
30
|
max?: MinMaxType | number;
|
|
31
31
|
size?: InputProps['size'];
|
|
32
32
|
style?: React.CSSProperties;
|
|
33
|
+
className?: string;
|
|
33
34
|
unit?: boolean;
|
|
34
35
|
/** 累计的偏移量,映射为具体的值,默认 1:1 */
|
|
35
36
|
cumulativeTransform?: (params: CumulativeInfoType) => CumulativeInfoType;
|
|
@@ -7,7 +7,7 @@ export type MonacoEditorProps = {
|
|
|
7
7
|
options?: EditorType['options'];
|
|
8
8
|
onChange?: EditorType['onChange'];
|
|
9
9
|
initialValue?: string;
|
|
10
|
-
language?: 'json' | 'javascript' | 'typescript';
|
|
10
|
+
language?: 'json' | 'javascript' | 'typescript' | 'css';
|
|
11
11
|
theme?: 'vs-dark' | 'light';
|
|
12
12
|
};
|
|
13
13
|
export declare const MonacoEditor: (props: MonacoEditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InputCommonRef } from '../type';
|
|
2
|
-
declare const keyList: readonly ["width", "height", "min-width", "max-width", "min-height", "max-height", "flex", "display"];
|
|
2
|
+
declare const keyList: readonly ["width", "height", "min-width", "max-width", "min-height", "max-height", "flex", "display", "flex-direction", "justify-content", "align-items", "flex-wrap"];
|
|
3
3
|
type Value = Record<typeof keyList[number], string>;
|
|
4
4
|
export type DimensionInputProps = {
|
|
5
5
|
value?: Value;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { InputCommonRef } from './type';
|
|
2
|
+
export type StyleUIPanelProps = {
|
|
3
|
+
initialVal?: Record<string, string>;
|
|
4
|
+
value?: Record<string, string>;
|
|
5
|
+
onValueChange?: (newVal: Record<string, string>) => void;
|
|
6
|
+
noCard?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export type StyleUIPanelRef = InputCommonRef;
|
|
9
|
+
export declare const StyleUIPanel: import('react').ForwardRefExoticComponent<StyleUIPanelProps & import('react').RefAttributes<InputCommonRef>>;
|