fluekit 2.7.2 → 2.8.1

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/Slider.d.ts CHANGED
@@ -15,9 +15,9 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
15
15
  onChange?: ((value: number) => any) | undefined;
16
16
  "onUpdate:value"?: ((value: number) => any) | undefined;
17
17
  }>, {
18
+ variant: "material" | "ios";
18
19
  min: number;
19
20
  max: number;
20
- variant: "material" | "ios";
21
21
  activeColor: string | Color;
22
22
  inactiveColor: string | Color;
23
23
  thumbColor: string | Color;
package/dist/Stack.d.ts CHANGED
@@ -1,10 +1,11 @@
1
1
  import { Alignment } from './Alignment';
2
2
  import { StackFit } from './FlexProps';
3
- interface StackProps {
3
+ import { Clip } from './Clip';
4
+ export interface StackProps {
4
5
  /** 对齐方式 */
5
6
  alignment?: Alignment;
6
7
  /** 裁剪行为 */
7
- clipBehavior?: "none" | "hardEdge" | "antiAlias" | "clip";
8
+ clipBehavior?: Clip;
8
9
  /** 文本方向 */
9
10
  textDirection?: "ltr" | "rtl";
10
11
  /** 堆叠方式 */
@@ -12,7 +13,7 @@ interface StackProps {
12
13
  }
13
14
  declare const _default: import('vue').DefineComponent<StackProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<StackProps> & Readonly<{}>, {
14
15
  alignment: Alignment;
15
- clipBehavior: "none" | "hardEdge" | "antiAlias" | "clip";
16
+ clipBehavior: Clip;
16
17
  fit: StackFit;
17
18
  textDirection: "ltr" | "rtl";
18
19
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
package/dist/Table.d.ts CHANGED
@@ -3,6 +3,7 @@ import { EdgeInsets } from './EdgeInsets';
3
3
  import { BoxDecoration } from './BoxDecoration';
4
4
  import { TextStyle } from './TextStyle';
5
5
  import { Color } from './Color';
6
+ import { Clip } from './Clip';
6
7
  export interface TableColumn {
7
8
  title: string;
8
9
  key: string;
@@ -32,7 +33,7 @@ interface Props {
32
33
  headerCellStyle?: CSSProperties;
33
34
  rowStyle?: CSSProperties;
34
35
  cellStyle?: CSSProperties;
35
- clipBehavior?: "none" | "hardEdge" | "antiAlias";
36
+ clipBehavior?: Clip;
36
37
  }
37
38
  declare function __VLS_template(): {
38
39
  attrs: Partial<{}>;
@@ -56,7 +57,7 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
56
57
  }>, {
57
58
  fixed: boolean;
58
59
  border: boolean;
59
- clipBehavior: "none" | "hardEdge" | "antiAlias";
60
+ clipBehavior: Clip;
60
61
  dataSource: any[];
61
62
  stripe: boolean;
62
63
  showHeader: boolean;
@@ -1,7 +1,7 @@
1
1
  import { Color } from './Color';
2
2
  import { InputDecoration } from './InputDecoration';
3
3
  import { TextStyle } from './TextStyle';
4
- interface Props {
4
+ interface TextFieldProps {
5
5
  modelValue?: string | number;
6
6
  decoration?: InputDecoration;
7
7
  enabled?: boolean;
@@ -20,6 +20,7 @@ interface Props {
20
20
  textCapitalization?: "none" | "sentences" | "words" | "characters";
21
21
  autocorrect?: boolean;
22
22
  modelModifiers?: Record<string, boolean>;
23
+ autocomplete?: string;
23
24
  }
24
25
  declare function __VLS_template(): {
25
26
  attrs: Partial<{}>;
@@ -37,12 +38,12 @@ declare function __VLS_template(): {
37
38
  rootEl: any;
38
39
  };
39
40
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
40
- declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
41
+ declare const __VLS_component: import('vue').DefineComponent<TextFieldProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
41
42
  blur: (event: FocusEvent) => any;
42
43
  focus: (event: FocusEvent) => any;
43
44
  submit: (value: string) => any;
44
45
  "update:modelValue": (value: string | number) => any;
45
- }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
46
+ }, string, import('vue').PublicProps, Readonly<TextFieldProps> & Readonly<{
46
47
  onBlur?: ((event: FocusEvent) => any) | undefined;
47
48
  onFocus?: ((event: FocusEvent) => any) | undefined;
48
49
  onSubmit?: ((value: string) => any) | undefined;
@@ -57,6 +58,7 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
57
58
  autoGrow: boolean;
58
59
  autocorrect: boolean;
59
60
  modelModifiers: Record<string, boolean>;
61
+ autocomplete: string;
60
62
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
61
63
  prefixRef: HTMLDivElement;
62
64
  inputRef: unknown;
@@ -1,4 +1,5 @@
1
1
  import { CSSProperties } from 'vue';
2
+ import { PropsWithCopyWith } from './utils';
2
3
  import { Color } from './Color';
3
4
  /**
4
5
  * 字体粗细枚举,对应 Flutter 的 FontWeight
@@ -119,13 +120,13 @@ export interface TextStyleProps {
119
120
  overflow?: TextOverflow;
120
121
  }
121
122
  declare const TEXT_STYLE_SYMBOL: unique symbol;
122
- export type TextStyle = TextStyleProps & {
123
+ export interface TextStyle extends PropsWithCopyWith<TextStyle>, TextStyleProps {
123
124
  [TEXT_STYLE_SYMBOL]?: true;
124
- };
125
- export declare function toCSSStyle(props?: TextStyleProps): CSSProperties;
126
- export { toCSSStyle as textStyleToCSSStyle };
127
- export declare function TextStyle(initial?: TextStyleProps, cloned?: TextStyleProps): TextStyle;
125
+ }
126
+ export declare function textStyleToStyle(props?: TextStyleProps): CSSProperties;
127
+ export declare function TextStyle(props: TextStyleProps): TextStyle;
128
128
  /**
129
129
  * 类型守卫:检查对象是否通过 TextStyle 构造函数创建
130
130
  */
131
131
  export declare function isTextStyle(value: any): value is TextStyle;
132
+ export {};
package/dist/Upload.d.ts CHANGED
@@ -43,9 +43,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
43
43
  onExceed?: (() => any) | undefined;
44
44
  "onUpdate:fileList"?: ((value: UploadFile[]) => any) | undefined;
45
45
  }>, {
46
+ name: string;
46
47
  multiple: boolean;
47
48
  disabled: boolean;
48
- name: string;
49
49
  showFileList: boolean;
50
50
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
51
51
  inputRef: HTMLInputElement;
package/dist/Wrap.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { Clip } from './Clip';
1
2
  interface Props {
2
3
  direction?: "horizontal" | "vertical";
3
4
  alignment?: "start" | "end" | "center" | "spaceBetween" | "spaceAround" | "spaceEvenly";
@@ -6,7 +7,7 @@ interface Props {
6
7
  runSpacing?: number;
7
8
  crossAxisAlignment?: "start" | "end" | "center";
8
9
  verticalDirection?: "down" | "up";
9
- clipBehavior?: "none" | "hardEdge" | "antiAlias";
10
+ clipBehavior?: Clip;
10
11
  }
11
12
  declare function __VLS_template(): {
12
13
  attrs: Partial<{}>;
@@ -19,7 +20,7 @@ declare function __VLS_template(): {
19
20
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
20
21
  declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
21
22
  alignment: "start" | "end" | "center" | "spaceBetween" | "spaceAround" | "spaceEvenly";
22
- clipBehavior: "none" | "hardEdge" | "antiAlias";
23
+ clipBehavior: Clip;
23
24
  direction: "horizontal" | "vertical";
24
25
  crossAxisAlignment: "start" | "end" | "center";
25
26
  spacing: number;
package/dist/device.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export declare const isBrowser: boolean;
2
+ export declare const isClient: boolean;
2
3
  export declare const userAgent: string;
3
4
  export declare const isAndroid: boolean;
4
5
  export declare const isHarmonyOS: boolean;
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { default as BackdropFilter } from './BackdropFilter';
2
2
  export { default as Align } from './Align';
3
3
  export { default as AnimatedContainer } from './AnimatedContainer';
4
- export { default as AnimatedOpacity } from './AnimatedOpacity';
4
+ export { AnimatedOpacity, Opacity } from './AnimatedOpacity.ts';
5
5
  export { default as Box } from './Box';
6
6
  export { default as Button } from './Button';
7
7
  export { default as Card } from './Card';
@@ -19,7 +19,7 @@ export { default as Image } from './Image';
19
19
  export { default as Icon } from './Icon';
20
20
  export { default as ListView } from './ListView';
21
21
  export { default as Modal } from './Modal';
22
- export { default as Opacity } from './Opacity';
22
+ export * from './showModal';
23
23
  export { default as Padding } from './Padding';
24
24
  export { default as Positioned } from './Positioned';
25
25
  export { default as Row } from './Row';
@@ -32,6 +32,7 @@ export { default as Text } from './Text';
32
32
  export { default as TextArea } from './TextArea';
33
33
  export { default as LiquidGlassDialog, type LiquidGlassDialogAction, type LiquidGlassDialogProps, type LiquidGlassDialogActionPayload, type LiquidGlassDialogActionStyle, } from './LiquidGlassDialog';
34
34
  export * from './showLiquidGlassDialog';
35
+ export { Offset } from './Offset.ts';
35
36
  export { default as TextField } from './TextField';
36
37
  export { Toast, toast, showToast, hideToast } from './Toast';
37
38
  export type { ToastType, ToastOptions, ToastPosition } from './ToastComponent';
@@ -92,6 +93,7 @@ export { default as Table } from './Table';
92
93
  export { default as Upload } from './Upload';
93
94
  export * from './UploadTypes';
94
95
  export { default as FlueConfigProvider } from './FlueConfigProvider';
96
+ export { default as DropdownButton } from './DropdownButton';
95
97
  export { default as AnimationWidget } from './Animation';
96
98
  export { StyleProvider } from './StyleProvider';
97
99
  export * from './Animator';