@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.
@@ -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;
@@ -1,3 +1,3 @@
1
1
  import { CSetter } from './type';
2
- /** 需要单独倒出避免循环以来,因为 ActionFlowSetter 使用了大量内置 setter */
2
+ /** 需要单独导出避免循环以来,因为 ActionFlowSetter 使用了大量内置 setter */
3
3
  export declare const BUILD_IN_ADVANCE_SETTER_MAP: Record<string, CSetter>;
@@ -0,0 +1,3 @@
1
+ import { CSSSizeInputProps } from '../../../../CSSSizeInput';
2
+ import { CSetter } from '../type';
3
+ export declare const FastLayoutSetter: CSetter<CSSSizeInputProps>;
@@ -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>>;