fluekit 1.0.1 → 1.1.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/Align.d.ts +1 -1
- package/dist/Alignment.d.ts +38 -0
- package/dist/AnimatedOpacity.d.ts +29 -21
- package/dist/Border.d.ts +34 -3
- package/dist/BorderRadius.d.ts +37 -5
- package/dist/BoxConstraints.d.ts +24 -2
- package/dist/BoxDecoration.d.ts +29 -32
- package/dist/BoxShadow.d.ts +28 -0
- package/dist/Container.d.ts +3 -3
- package/dist/EdgeInsets.d.ts +36 -9
- package/dist/Fixed.d.ts +1 -1
- package/dist/FlexBox.d.ts +1 -1
- package/dist/FlexItem.d.ts +1 -1
- package/dist/FlexProps.d.ts +2 -81
- package/dist/Gradient.d.ts +26 -0
- package/dist/GridView.d.ts +4 -4
- package/dist/IgnorePointer.d.ts +3 -1
- package/dist/ListView.d.ts +1 -1
- package/dist/Opacity.d.ts +19 -19
- package/dist/Size.d.ts +8 -1
- package/dist/Stack.d.ts +6 -4
- package/dist/Sticky.d.ts +1 -1
- package/dist/StyleProvider.d.ts +26 -0
- package/dist/TextStyle.d.ts +13 -5
- package/dist/Wrap.d.ts +4 -4
- package/dist/__tests__/IgnorePointerGesture.spec.d.ts +1 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +480 -296
- package/dist/useGesture.d.ts +2 -0
- package/dist/usePosition.d.ts +1 -1
- package/dist/utils.d.ts +11 -0
- package/package.json +1 -1
- package/dist/useOpacity.d.ts +0 -4
package/dist/Opacity.d.ts
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
2
|
/**
|
|
3
3
|
* 透明度值,范围 0.0 到 1.0
|
|
4
4
|
* 0.0 表示完全透明(不可见)
|
|
5
5
|
* 1.0 表示完全不透明(完全可见)
|
|
6
6
|
* @default 1.0
|
|
7
7
|
*/
|
|
8
|
-
opacity
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
attrs: Partial<{}>;
|
|
12
|
-
slots: {
|
|
13
|
-
default?(_: {}): any;
|
|
8
|
+
opacity: {
|
|
9
|
+
type: NumberConstructor;
|
|
10
|
+
default: undefined;
|
|
14
11
|
};
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
12
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
15
|
+
/**
|
|
16
|
+
* 透明度值,范围 0.0 到 1.0
|
|
17
|
+
* 0.0 表示完全透明(不可见)
|
|
18
|
+
* 1.0 表示完全不透明(完全可见)
|
|
19
|
+
* @default 1.0
|
|
20
|
+
*/
|
|
21
|
+
opacity: {
|
|
22
|
+
type: NumberConstructor;
|
|
23
|
+
default: undefined;
|
|
24
|
+
};
|
|
25
|
+
}>> & Readonly<{}>, {
|
|
20
26
|
opacity: number;
|
|
21
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions,
|
|
22
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
27
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
23
28
|
export default _default;
|
|
24
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
25
|
-
new (): {
|
|
26
|
-
$slots: S;
|
|
27
|
-
};
|
|
28
|
-
};
|
package/dist/Size.d.ts
CHANGED
|
@@ -3,7 +3,14 @@ export interface SizeType {
|
|
|
3
3
|
height?: number | string;
|
|
4
4
|
}
|
|
5
5
|
export type Size = SizeType;
|
|
6
|
-
export declare function Size(
|
|
6
|
+
export declare function Size(props: SizeType): SizeType;
|
|
7
|
+
export declare namespace Size {
|
|
8
|
+
var square: (dimension: number) => SizeType;
|
|
9
|
+
var zero: SizeType;
|
|
10
|
+
var infinite: SizeType;
|
|
11
|
+
var fromHeight: (height: number) => SizeType;
|
|
12
|
+
var fromWidth: (width: number) => SizeType;
|
|
13
|
+
}
|
|
7
14
|
export declare function sizeToStyle(size?: SizeType): {
|
|
8
15
|
width: string;
|
|
9
16
|
height: string;
|
package/dist/Stack.d.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
|
+
import { Alignment } from './Alignment';
|
|
2
|
+
import { StackFit } from './FlexProps';
|
|
1
3
|
interface StackProps {
|
|
2
4
|
/** 对齐方式 */
|
|
3
|
-
alignment?:
|
|
5
|
+
alignment?: Alignment;
|
|
4
6
|
/** 裁剪行为 */
|
|
5
7
|
clipBehavior?: "none" | "hardEdge" | "antiAlias" | "clip";
|
|
6
8
|
/** 文本方向 */
|
|
7
9
|
textDirection?: "ltr" | "rtl";
|
|
8
10
|
/** 堆叠方式 */
|
|
9
|
-
fit?:
|
|
11
|
+
fit?: StackFit;
|
|
10
12
|
}
|
|
11
13
|
declare function __VLS_template(): {
|
|
12
14
|
attrs: Partial<{}>;
|
|
@@ -18,10 +20,10 @@ declare function __VLS_template(): {
|
|
|
18
20
|
};
|
|
19
21
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
20
22
|
declare const __VLS_component: import('vue').DefineComponent<StackProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<StackProps> & Readonly<{}>, {
|
|
21
|
-
alignment:
|
|
23
|
+
alignment: Alignment;
|
|
22
24
|
clipBehavior: "none" | "hardEdge" | "antiAlias" | "clip";
|
|
23
25
|
textDirection: "ltr" | "rtl";
|
|
24
|
-
fit:
|
|
26
|
+
fit: StackFit;
|
|
25
27
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
26
28
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
27
29
|
export default _default;
|
package/dist/Sticky.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ declare function __VLS_template(): {
|
|
|
9
9
|
};
|
|
10
10
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
11
|
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
12
|
-
zIndex: number
|
|
12
|
+
zIndex: number;
|
|
13
13
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
14
14
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
15
15
|
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { CSSProperties, ComputedRef, PropType, VNode } from 'vue';
|
|
2
|
+
export declare function useStyles(): ComputedRef<{}>;
|
|
3
|
+
export declare const StyleProvider: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
style: {
|
|
5
|
+
type: PropType<CSSProperties>;
|
|
6
|
+
default: () => {};
|
|
7
|
+
};
|
|
8
|
+
attrs: {
|
|
9
|
+
type: ObjectConstructor;
|
|
10
|
+
default: () => {};
|
|
11
|
+
};
|
|
12
|
+
}>, () => VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}>[] | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
15
|
+
style: {
|
|
16
|
+
type: PropType<CSSProperties>;
|
|
17
|
+
default: () => {};
|
|
18
|
+
};
|
|
19
|
+
attrs: {
|
|
20
|
+
type: ObjectConstructor;
|
|
21
|
+
default: () => {};
|
|
22
|
+
};
|
|
23
|
+
}>> & Readonly<{}>, {
|
|
24
|
+
style: CSSProperties;
|
|
25
|
+
attrs: Record<string, any>;
|
|
26
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
package/dist/TextStyle.d.ts
CHANGED
|
@@ -93,10 +93,10 @@ export interface TextStyleProps {
|
|
|
93
93
|
inherit?: boolean;
|
|
94
94
|
color?: string;
|
|
95
95
|
backgroundColor?: string;
|
|
96
|
-
fontSize?: number
|
|
97
|
-
fontWeight?: FontWeight | number
|
|
96
|
+
fontSize?: number;
|
|
97
|
+
fontWeight?: FontWeight | number;
|
|
98
98
|
fontStyle?: FontStyle;
|
|
99
|
-
letterSpacing?: number
|
|
99
|
+
letterSpacing?: number;
|
|
100
100
|
wordSpacing?: number;
|
|
101
101
|
textBaseline?: TextBaseline;
|
|
102
102
|
height?: number | string;
|
|
@@ -117,6 +117,14 @@ export interface TextStyleProps {
|
|
|
117
117
|
package?: string;
|
|
118
118
|
overflow?: TextOverflow;
|
|
119
119
|
}
|
|
120
|
-
|
|
120
|
+
declare const TEXT_STYLE_SYMBOL: unique symbol;
|
|
121
|
+
export type TextStyle = TextStyleProps & {
|
|
122
|
+
[TEXT_STYLE_SYMBOL]?: true;
|
|
123
|
+
};
|
|
121
124
|
export declare function toCSSStyle(props?: TextStyleProps): CSSProperties;
|
|
122
|
-
export declare function TextStyle(initial?: TextStyleProps, cloned?: TextStyleProps):
|
|
125
|
+
export declare function TextStyle(initial?: TextStyleProps, cloned?: TextStyleProps): TextStyle;
|
|
126
|
+
/**
|
|
127
|
+
* 类型守卫:检查对象是否通过 TextStyle 构造函数创建
|
|
128
|
+
*/
|
|
129
|
+
export declare function isTextStyle(value: any): value is TextStyle;
|
|
130
|
+
export {};
|
package/dist/Wrap.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
interface Props {
|
|
2
2
|
direction?: "horizontal" | "vertical";
|
|
3
3
|
alignment?: "start" | "end" | "center" | "spaceBetween" | "spaceAround" | "spaceEvenly";
|
|
4
|
-
spacing?: number
|
|
4
|
+
spacing?: number;
|
|
5
5
|
runAlignment?: "start" | "end" | "center" | "spaceBetween" | "spaceAround" | "spaceEvenly";
|
|
6
|
-
runSpacing?: number
|
|
6
|
+
runSpacing?: number;
|
|
7
7
|
crossAxisAlignment?: "start" | "end" | "center";
|
|
8
8
|
verticalDirection?: "down" | "up";
|
|
9
9
|
clipBehavior?: "none" | "hardEdge" | "antiAlias";
|
|
@@ -22,9 +22,9 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
22
22
|
clipBehavior: "none" | "hardEdge" | "antiAlias";
|
|
23
23
|
direction: "horizontal" | "vertical";
|
|
24
24
|
crossAxisAlignment: "start" | "end" | "center";
|
|
25
|
-
spacing: number
|
|
25
|
+
spacing: number;
|
|
26
26
|
runAlignment: "start" | "end" | "center" | "spaceBetween" | "spaceAround" | "spaceEvenly";
|
|
27
|
-
runSpacing: number
|
|
27
|
+
runSpacing: number;
|
|
28
28
|
verticalDirection: "down" | "up";
|
|
29
29
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
30
30
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/index.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
.flutter-list-view[data-v-
|
|
1
|
+
.flutter-list-view[data-v-7ba20c73]{flex-direction:column;display:flex}.list-view-shrink-wrap[data-v-7ba20c73]{flex:none}.flutter-stack[data-v-aefe47c2]>*{grid-area:1/1/2/2}.flutter-transform[data-v-7e66ebaa]{box-sizing:border-box}
|
|
2
2
|
/*$vite$:1*/
|
package/dist/index.d.ts
CHANGED
|
@@ -25,10 +25,12 @@ export { default as Wrap } from './Wrap';
|
|
|
25
25
|
export * from './Border';
|
|
26
26
|
export * from './BoxConstraints';
|
|
27
27
|
export * from './BoxDecoration';
|
|
28
|
+
export * from './BorderRadius';
|
|
29
|
+
export * from './BoxShadow';
|
|
28
30
|
export * from './EdgeInsets';
|
|
29
31
|
export * from './FlexProps';
|
|
30
32
|
export { Alignment as Alignment } from './FlexProps';
|
|
33
|
+
export * from './Gradient';
|
|
31
34
|
export * from './Size';
|
|
32
35
|
export * from './TextStyle';
|
|
33
|
-
export * from './useOpacity';
|
|
34
36
|
export { px2vw, setDefaultVW, setTransform } from './px2vw';
|