fluekit 1.0.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.
Files changed (50) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +63 -0
  3. package/dist/Align.d.ts +25 -0
  4. package/dist/AnimatedContainer.d.ts +41 -0
  5. package/dist/AnimatedOpacity.d.ts +25 -0
  6. package/dist/Border.d.ts +16 -0
  7. package/dist/BorderRadius.d.ts +12 -0
  8. package/dist/BoxConstraints.d.ts +9 -0
  9. package/dist/BoxDecoration.d.ts +89 -0
  10. package/dist/Center.d.ts +29 -0
  11. package/dist/Column.d.ts +18 -0
  12. package/dist/Container.d.ts +37 -0
  13. package/dist/EdgeInsets.d.ts +19 -0
  14. package/dist/Expanded.d.ts +26 -0
  15. package/dist/Fixed.d.ts +20 -0
  16. package/dist/FlexBox.d.ts +26 -0
  17. package/dist/FlexItem.d.ts +30 -0
  18. package/dist/FlexProps.d.ts +131 -0
  19. package/dist/GestureDetector.d.ts +20 -0
  20. package/dist/GridView.d.ts +42 -0
  21. package/dist/IgnorePointer.d.ts +50 -0
  22. package/dist/ListView.d.ts +40 -0
  23. package/dist/Opacity.d.ts +28 -0
  24. package/dist/Padding.d.ts +11 -0
  25. package/dist/Positioned.d.ts +19 -0
  26. package/dist/Row.d.ts +23 -0
  27. package/dist/SafeArea.d.ts +32 -0
  28. package/dist/ScrollView.d.ts +60 -0
  29. package/dist/Size.d.ts +9 -0
  30. package/dist/SizedBox.d.ts +21 -0
  31. package/dist/Stack.d.ts +32 -0
  32. package/dist/Sticky.d.ts +20 -0
  33. package/dist/Text.d.ts +41 -0
  34. package/dist/TextStyle.d.ts +121 -0
  35. package/dist/Transform.d.ts +38 -0
  36. package/dist/Wrap.d.ts +36 -0
  37. package/dist/__tests__/Container.spec.d.ts +1 -0
  38. package/dist/__tests__/normalizeSrc.spec.d.ts +1 -0
  39. package/dist/index.css +2 -0
  40. package/dist/index.d.ts +34 -0
  41. package/dist/index.js +1457 -0
  42. package/dist/px2vw.d.ts +3 -0
  43. package/dist/useChildren.d.ts +3 -0
  44. package/dist/useGesture.d.ts +37 -0
  45. package/dist/useOpacity.d.ts +4 -0
  46. package/dist/usePosition.d.ts +19 -0
  47. package/dist/useSafeAttrs.d.ts +3 -0
  48. package/dist/useStack.d.ts +2 -0
  49. package/dist/utils.d.ts +5 -0
  50. package/package.json +40 -0
@@ -0,0 +1,20 @@
1
+ import { PropType } from 'vue';
2
+ import { Behavior } from './useGesture';
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ behavior: {
5
+ type: PropType<Behavior>;
6
+ default: string;
7
+ };
8
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
9
+ [key: string]: any;
10
+ }> | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, string[], string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
11
+ behavior: {
12
+ type: PropType<Behavior>;
13
+ default: string;
14
+ };
15
+ }>> & Readonly<{
16
+ [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
17
+ }>, {
18
+ behavior: Behavior;
19
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
20
+ export default _default;
@@ -0,0 +1,42 @@
1
+ import { EdgeInsets } from './EdgeInsets';
2
+ interface Props {
3
+ scrollDirection?: "vertical" | "horizontal";
4
+ padding?: EdgeInsets;
5
+ physics?: "bouncing" | "clamping" | "never" | "always";
6
+ shrinkWrap?: boolean;
7
+ clipBehavior?: "none" | "hardEdge" | "antiAlias";
8
+ crossAxisCount?: number;
9
+ mainAxisSpacing?: number | string;
10
+ crossAxisSpacing?: number | string;
11
+ childAspectRatio?: number;
12
+ itemCount?: number;
13
+ }
14
+ declare function __VLS_template(): {
15
+ attrs: Partial<{}>;
16
+ slots: {
17
+ default?(_: {}): any;
18
+ item?(_: {
19
+ index: number;
20
+ }): any;
21
+ };
22
+ refs: {};
23
+ rootEl: any;
24
+ };
25
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
26
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
27
+ clipBehavior: "none" | "hardEdge" | "antiAlias";
28
+ scrollDirection: "vertical" | "horizontal";
29
+ physics: "bouncing" | "clamping" | "never" | "always";
30
+ shrinkWrap: boolean;
31
+ crossAxisCount: number;
32
+ mainAxisSpacing: number | string;
33
+ crossAxisSpacing: number | string;
34
+ childAspectRatio: number;
35
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
36
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
37
+ export default _default;
38
+ type __VLS_WithTemplateSlots<T, S> = T & {
39
+ new (): {
40
+ $slots: S;
41
+ };
42
+ };
@@ -0,0 +1,50 @@
1
+ import { PropType } from 'vue';
2
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
3
+ /**
4
+ * 是否忽略指针事件
5
+ * 当为 true 时,该组件及其子组件将不会接收任何指针事件
6
+ * 当为 false 时,指针事件正常传递
7
+ * @default false
8
+ */
9
+ ignoring: {
10
+ type: PropType<boolean>;
11
+ default: boolean;
12
+ };
13
+ /**
14
+ * 是否忽略语义化事件(如键盘导航、屏幕阅读器等)
15
+ * 当为 true 时,组件对辅助功能不可见
16
+ * 当为 false 时,组件仍然可以被辅助功能访问
17
+ * @default false
18
+ */
19
+ ignoringSemantics: {
20
+ type: PropType<boolean>;
21
+ default: boolean;
22
+ };
23
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
24
+ [key: string]: any;
25
+ }> | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
26
+ /**
27
+ * 是否忽略指针事件
28
+ * 当为 true 时,该组件及其子组件将不会接收任何指针事件
29
+ * 当为 false 时,指针事件正常传递
30
+ * @default false
31
+ */
32
+ ignoring: {
33
+ type: PropType<boolean>;
34
+ default: boolean;
35
+ };
36
+ /**
37
+ * 是否忽略语义化事件(如键盘导航、屏幕阅读器等)
38
+ * 当为 true 时,组件对辅助功能不可见
39
+ * 当为 false 时,组件仍然可以被辅助功能访问
40
+ * @default false
41
+ */
42
+ ignoringSemantics: {
43
+ type: PropType<boolean>;
44
+ default: boolean;
45
+ };
46
+ }>> & Readonly<{}>, {
47
+ ignoring: boolean;
48
+ ignoringSemantics: boolean;
49
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
50
+ export default _default;
@@ -0,0 +1,40 @@
1
+ import { EdgeInsets } from './EdgeInsets';
2
+ interface Props {
3
+ scrollDirection?: "vertical" | "horizontal";
4
+ padding?: EdgeInsets;
5
+ physics?: "bouncing" | "clamping" | "never" | "always";
6
+ shrinkWrap?: boolean;
7
+ itemCount?: number;
8
+ itemExtent?: number | string;
9
+ separator?: boolean;
10
+ clipBehavior?: "none" | "hardEdge" | "antiAlias";
11
+ }
12
+ declare function __VLS_template(): {
13
+ attrs: Partial<{}>;
14
+ slots: {
15
+ default?(_: {}): any;
16
+ item?(_: {
17
+ index: number;
18
+ }): any;
19
+ separator?(_: {
20
+ index: number;
21
+ }): any;
22
+ };
23
+ refs: {};
24
+ rootEl: any;
25
+ };
26
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
27
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
28
+ separator: boolean;
29
+ clipBehavior: "none" | "hardEdge" | "antiAlias";
30
+ scrollDirection: "vertical" | "horizontal";
31
+ physics: "bouncing" | "clamping" | "never" | "always";
32
+ shrinkWrap: boolean;
33
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
34
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
35
+ export default _default;
36
+ type __VLS_WithTemplateSlots<T, S> = T & {
37
+ new (): {
38
+ $slots: S;
39
+ };
40
+ };
@@ -0,0 +1,28 @@
1
+ interface Props {
2
+ /**
3
+ * 透明度值,范围 0.0 到 1.0
4
+ * 0.0 表示完全透明(不可见)
5
+ * 1.0 表示完全不透明(完全可见)
6
+ * @default 1.0
7
+ */
8
+ opacity?: number;
9
+ }
10
+ declare function __VLS_template(): {
11
+ attrs: Partial<{}>;
12
+ slots: {
13
+ default?(_: {}): any;
14
+ };
15
+ refs: {};
16
+ rootEl: any;
17
+ };
18
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
19
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
20
+ opacity: number;
21
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
22
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
23
+ export default _default;
24
+ type __VLS_WithTemplateSlots<T, S> = T & {
25
+ new (): {
26
+ $slots: S;
27
+ };
28
+ };
@@ -0,0 +1,11 @@
1
+ type PaddingValue = string | number | undefined;
2
+ interface Props {
3
+ all?: PaddingValue;
4
+ horizontal?: PaddingValue;
5
+ vertical?: PaddingValue;
6
+ top?: PaddingValue;
7
+ right?: PaddingValue;
8
+ bottom?: PaddingValue;
9
+ }
10
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
11
+ export default _default;
@@ -0,0 +1,19 @@
1
+ import { Props } from './usePosition';
2
+ type __VLS_Props = Omit<Props, "zIndex">;
3
+ declare function __VLS_template(): {
4
+ attrs: Partial<{}>;
5
+ slots: {
6
+ default?(_: {}): any;
7
+ };
8
+ refs: {};
9
+ rootEl: any;
10
+ };
11
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
14
+ export default _default;
15
+ type __VLS_WithTemplateSlots<T, S> = T & {
16
+ new (): {
17
+ $slots: S;
18
+ };
19
+ };
package/dist/Row.d.ts ADDED
@@ -0,0 +1,23 @@
1
+ import { FlexBoxProps } from './FlexProps';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ default?(_: {}): any;
6
+ };
7
+ refs: {};
8
+ rootEl: any;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: import('vue').DefineComponent<FlexBoxProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<FlexBoxProps> & Readonly<{}>, {
12
+ wrap: boolean;
13
+ expanded: boolean;
14
+ mainAxisAlignment: import('./FlexProps').MainAxisAlignment;
15
+ crossAxisAlignment: import('./FlexProps').CrossAxisAlignment;
16
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
17
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
18
+ export default _default;
19
+ type __VLS_WithTemplateSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -0,0 +1,32 @@
1
+ import { EdgeInsets } from './EdgeInsets';
2
+ interface Props {
3
+ left?: boolean;
4
+ top?: boolean;
5
+ right?: boolean;
6
+ bottom?: boolean;
7
+ minimum?: EdgeInsets;
8
+ maintainBottomViewPadding?: boolean;
9
+ }
10
+ declare function __VLS_template(): {
11
+ attrs: Partial<{}>;
12
+ slots: {
13
+ default?(_: {}): any;
14
+ };
15
+ refs: {};
16
+ rootEl: any;
17
+ };
18
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
19
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
20
+ left: boolean;
21
+ right: boolean;
22
+ bottom: boolean;
23
+ top: boolean;
24
+ maintainBottomViewPadding: boolean;
25
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
26
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
27
+ export default _default;
28
+ type __VLS_WithTemplateSlots<T, S> = T & {
29
+ new (): {
30
+ $slots: S;
31
+ };
32
+ };
@@ -0,0 +1,60 @@
1
+ import { EdgeInsets } from './EdgeInsets';
2
+ interface Props {
3
+ /** 滚动方向 */
4
+ scrollDirection?: "vertical" | "horizontal";
5
+ /** 内边距 */
6
+ padding?: EdgeInsets;
7
+ /** 物理滚动效果模拟(主要影响 CSS overflow 行为) */
8
+ physics?: "bouncing" | "clamping" | "never" | "always";
9
+ /** 裁剪行为 */
10
+ clipBehavior?: "none" | "hardEdge" | "antiAlias";
11
+ /** 是否反向滚动 (暂未完全实现,预留接口) */
12
+ reverse?: boolean;
13
+ }
14
+ declare function __VLS_template(): {
15
+ attrs: Partial<{}>;
16
+ slots: {
17
+ default?(_: {}): any;
18
+ };
19
+ refs: {
20
+ scrollRef: HTMLDivElement;
21
+ };
22
+ rootEl: any;
23
+ };
24
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
25
+ declare const __VLS_component: import('vue').DefineComponent<Props, {
26
+ scrollRef: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
27
+ scrollTo: (options: ScrollToOptions) => void;
28
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
29
+ scroll: (payload: {
30
+ scrollTop: number;
31
+ scrollLeft: number;
32
+ scrollHeight: number;
33
+ scrollWidth: number;
34
+ }) => any;
35
+ scrollStart: () => any;
36
+ scrollEnd: () => any;
37
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
38
+ onScroll?: ((payload: {
39
+ scrollTop: number;
40
+ scrollLeft: number;
41
+ scrollHeight: number;
42
+ scrollWidth: number;
43
+ }) => any) | undefined;
44
+ onScrollStart?: (() => any) | undefined;
45
+ onScrollEnd?: (() => any) | undefined;
46
+ }>, {
47
+ reverse: boolean;
48
+ clipBehavior: "none" | "hardEdge" | "antiAlias";
49
+ scrollDirection: "vertical" | "horizontal";
50
+ physics: "bouncing" | "clamping" | "never" | "always";
51
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
52
+ scrollRef: HTMLDivElement;
53
+ }, any>;
54
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
55
+ export default _default;
56
+ type __VLS_WithTemplateSlots<T, S> = T & {
57
+ new (): {
58
+ $slots: S;
59
+ };
60
+ };
package/dist/Size.d.ts ADDED
@@ -0,0 +1,9 @@
1
+ export interface Size {
2
+ width?: number | string;
3
+ height?: number | string;
4
+ }
5
+ export declare function Size(value: Size | string | number): Size | undefined;
6
+ export declare function sizeToStyle(size?: Size): {
7
+ width: string;
8
+ height: string;
9
+ } | undefined;
@@ -0,0 +1,21 @@
1
+ interface Props {
2
+ width?: number | string;
3
+ height?: number | string;
4
+ }
5
+ declare function __VLS_template(): {
6
+ attrs: Partial<{}>;
7
+ slots: {
8
+ default?(_: {}): any;
9
+ };
10
+ refs: {};
11
+ rootEl: any;
12
+ };
13
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
15
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
16
+ export default _default;
17
+ type __VLS_WithTemplateSlots<T, S> = T & {
18
+ new (): {
19
+ $slots: S;
20
+ };
21
+ };
@@ -0,0 +1,32 @@
1
+ interface StackProps {
2
+ /** 对齐方式 */
3
+ alignment?: "topLeft" | "topCenter" | "topRight" | "centerLeft" | "center" | "centerRight" | "bottomLeft" | "bottomCenter" | "bottomRight";
4
+ /** 裁剪行为 */
5
+ clipBehavior?: "none" | "hardEdge" | "antiAlias" | "clip";
6
+ /** 文本方向 */
7
+ textDirection?: "ltr" | "rtl";
8
+ /** 堆叠方式 */
9
+ fit?: "loose" | "expand" | "passthrough";
10
+ }
11
+ declare function __VLS_template(): {
12
+ attrs: Partial<{}>;
13
+ slots: {
14
+ default?(_: {}): any;
15
+ };
16
+ refs: {};
17
+ rootEl: any;
18
+ };
19
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
20
+ declare const __VLS_component: import('vue').DefineComponent<StackProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<StackProps> & Readonly<{}>, {
21
+ alignment: "topLeft" | "topCenter" | "topRight" | "centerLeft" | "center" | "centerRight" | "bottomLeft" | "bottomCenter" | "bottomRight";
22
+ clipBehavior: "none" | "hardEdge" | "antiAlias" | "clip";
23
+ textDirection: "ltr" | "rtl";
24
+ fit: "loose" | "expand" | "passthrough";
25
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
26
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
27
+ export default _default;
28
+ type __VLS_WithTemplateSlots<T, S> = T & {
29
+ new (): {
30
+ $slots: S;
31
+ };
32
+ };
@@ -0,0 +1,20 @@
1
+ import { Props } from './usePosition';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ default?(_: {}): any;
6
+ };
7
+ refs: {};
8
+ rootEl: any;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
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 | string;
13
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
15
+ export default _default;
16
+ type __VLS_WithTemplateSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
package/dist/Text.d.ts ADDED
@@ -0,0 +1,41 @@
1
+ import { TextAlign, TextDirection, TextOverflow, TextStyle } from './TextStyle';
2
+ interface Props {
3
+ /** 文本内容 */
4
+ data?: string | number;
5
+ /** 文本样式 */
6
+ style?: TextStyle;
7
+ /** 文本对齐方式 */
8
+ textAlign?: TextAlign;
9
+ /** 文本方向 */
10
+ textDirection?: TextDirection;
11
+ /** 是否自动换行 */
12
+ softWrap?: boolean;
13
+ /** 溢出处理 */
14
+ overflow?: TextOverflow;
15
+ /** 最大行数 */
16
+ maxLines?: number;
17
+ /** 语义标签 */
18
+ semanticsLabel?: string;
19
+ /** 渲染标签 (Web 特有) */
20
+ tag?: string;
21
+ }
22
+ declare function __VLS_template(): {
23
+ attrs: Partial<{}>;
24
+ slots: {
25
+ default?(_: {}): any;
26
+ };
27
+ refs: {};
28
+ rootEl: any;
29
+ };
30
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
31
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
32
+ softWrap: boolean;
33
+ tag: string;
34
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
35
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
36
+ export default _default;
37
+ type __VLS_WithTemplateSlots<T, S> = T & {
38
+ new (): {
39
+ $slots: S;
40
+ };
41
+ };
@@ -0,0 +1,121 @@
1
+ import { CSSProperties } from 'vue';
2
+ /**
3
+ * 字体粗细枚举,对应 Flutter 的 FontWeight
4
+ */
5
+ export declare enum FontWeight {
6
+ w100 = "100",
7
+ w200 = "200",
8
+ w300 = "300",
9
+ w400 = "400",// normal
10
+ w500 = "500",
11
+ w600 = "600",
12
+ w700 = "700",// bold
13
+ w800 = "800",
14
+ w900 = "900",
15
+ normal = "normal",
16
+ bold = "bold",
17
+ bolder = "bolder"
18
+ }
19
+ /**
20
+ * 字体样式枚举,对应 Flutter 的 FontStyle
21
+ */
22
+ export declare enum FontStyle {
23
+ normal = "normal",
24
+ italic = "italic"
25
+ }
26
+ /**
27
+ * 文本装饰枚举,对应 Flutter 的 TextDecoration
28
+ */
29
+ export declare enum TextDecoration {
30
+ none = "none",
31
+ underline = "underline",
32
+ overline = "overline",
33
+ lineThrough = "line-through"
34
+ }
35
+ /**
36
+ * 文本装饰样式枚举
37
+ */
38
+ export declare enum TextDecorationStyle {
39
+ solid = "solid",
40
+ double = "double",
41
+ dotted = "dotted",
42
+ dashed = "dashed",
43
+ wavy = "wavy"
44
+ }
45
+ /**
46
+ * 文本对齐方式枚举,对应 Flutter 的 TextAlign
47
+ */
48
+ export declare enum TextAlign {
49
+ left = "left",
50
+ right = "right",
51
+ center = "center",
52
+ justify = "justify",
53
+ start = "start",
54
+ end = "end"
55
+ }
56
+ /**
57
+ * 文本溢出处理方式枚举,对应 Flutter 的 TextOverflow
58
+ */
59
+ export declare enum TextOverflow {
60
+ clip = "clip",
61
+ fade = "fade",
62
+ ellipsis = "ellipsis",
63
+ visible = "visible"
64
+ }
65
+ /**
66
+ * 文本基线枚举
67
+ */
68
+ export declare enum TextBaseline {
69
+ alphabetic = "alphabetic",
70
+ ideographic = "ideographic"
71
+ }
72
+ /**
73
+ * 文本阴影配置接口
74
+ */
75
+ /**
76
+ * 文本方向枚举,对应 Flutter 的 TextDirection
77
+ */
78
+ export declare enum TextDirection {
79
+ rtl = "rtl",
80
+ ltr = "ltr"
81
+ }
82
+ export interface TextShadow {
83
+ /** 阴影颜色 */
84
+ color?: string;
85
+ /** 水平偏移 */
86
+ offsetX?: number;
87
+ /** 垂直偏移 */
88
+ offsetY?: number;
89
+ /** 模糊半径 */
90
+ blurRadius?: number;
91
+ }
92
+ export interface TextStyle {
93
+ inherit?: boolean;
94
+ color?: string;
95
+ backgroundColor?: string;
96
+ fontSize?: number | string;
97
+ fontWeight?: FontWeight | number | string;
98
+ fontStyle?: FontStyle;
99
+ letterSpacing?: number | string;
100
+ wordSpacing?: number;
101
+ textBaseline?: TextBaseline;
102
+ height?: number | string;
103
+ leadingDistribution?: any;
104
+ locale?: any;
105
+ foreground?: CSSProperties;
106
+ background?: CSSProperties;
107
+ shadows?: TextShadow[];
108
+ fontFeatures?: any;
109
+ fontVariations?: any;
110
+ decoration?: TextDecoration;
111
+ decorationColor?: string;
112
+ decorationStyle?: TextDecorationStyle;
113
+ decorationThickness?: number;
114
+ debugLabel?: string;
115
+ fontFamily?: string;
116
+ fontFamilyFallback?: string[];
117
+ package?: string;
118
+ overflow?: TextOverflow;
119
+ }
120
+ export declare function toCSSStyle(props?: TextStyle): CSSProperties;
121
+ export declare function TextStyle(initial?: TextStyle, cloned?: TextStyle): TextStyle;
@@ -0,0 +1,38 @@
1
+ import { FlexAlignment } from './FlexProps';
2
+ interface Props {
3
+ /**
4
+ * CSS 变换字符串
5
+ * 例如: "rotate(45deg)", "scale(1.5)", "translate(10px, 20px)"
6
+ * 对应 Flutter 的 transform (Matrix4)
7
+ */
8
+ transform?: string;
9
+ /**
10
+ * 变换的原点对齐方式
11
+ * 对应 Flutter 的 alignment
12
+ */
13
+ alignment?: FlexAlignment;
14
+ /**
15
+ * 具体的原点偏移 (CSS transform-origin)
16
+ * 如果提供了 alignment,origin 会被忽略或合并(取决于实现,这里优先 alignment)
17
+ */
18
+ origin?: string;
19
+ }
20
+ declare function __VLS_template(): {
21
+ attrs: Partial<{}>;
22
+ slots: {
23
+ default?(_: {}): any;
24
+ };
25
+ refs: {};
26
+ rootEl: any;
27
+ };
28
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
29
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
30
+ alignment: FlexAlignment;
31
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
32
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
33
+ export default _default;
34
+ type __VLS_WithTemplateSlots<T, S> = T & {
35
+ new (): {
36
+ $slots: S;
37
+ };
38
+ };
package/dist/Wrap.d.ts ADDED
@@ -0,0 +1,36 @@
1
+ interface Props {
2
+ direction?: "horizontal" | "vertical";
3
+ alignment?: "start" | "end" | "center" | "spaceBetween" | "spaceAround" | "spaceEvenly";
4
+ spacing?: number | string;
5
+ runAlignment?: "start" | "end" | "center" | "spaceBetween" | "spaceAround" | "spaceEvenly";
6
+ runSpacing?: number | string;
7
+ crossAxisAlignment?: "start" | "end" | "center";
8
+ verticalDirection?: "down" | "up";
9
+ clipBehavior?: "none" | "hardEdge" | "antiAlias";
10
+ }
11
+ declare function __VLS_template(): {
12
+ attrs: Partial<{}>;
13
+ slots: {
14
+ default?(_: {}): any;
15
+ };
16
+ refs: {};
17
+ rootEl: any;
18
+ };
19
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
20
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
21
+ alignment: "start" | "end" | "center" | "spaceBetween" | "spaceAround" | "spaceEvenly";
22
+ clipBehavior: "none" | "hardEdge" | "antiAlias";
23
+ direction: "horizontal" | "vertical";
24
+ crossAxisAlignment: "start" | "end" | "center";
25
+ spacing: number | string;
26
+ runAlignment: "start" | "end" | "center" | "spaceBetween" | "spaceAround" | "spaceEvenly";
27
+ runSpacing: number | string;
28
+ verticalDirection: "down" | "up";
29
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
30
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
31
+ export default _default;
32
+ type __VLS_WithTemplateSlots<T, S> = T & {
33
+ new (): {
34
+ $slots: S;
35
+ };
36
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
package/dist/index.css ADDED
@@ -0,0 +1,2 @@
1
+ .flutter-list-view[data-v-3b4a0fca]{flex-direction:column;display:flex}.list-view-shrink-wrap[data-v-3b4a0fca]{flex:none}.flutter-stack[data-v-f268257b]>*{flex-shrink:0}.flutter-transform[data-v-44c40486]{box-sizing:border-box}
2
+ /*$vite$:1*/