@fulate/components 1.0.0 → 1.0.2

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/README.md CHANGED
@@ -1,7 +1,5 @@
1
1
  # `@fulate/components`
2
2
 
3
- > 文档角色:`GUIDE`。权威来源:组件源码与测试;Root/overlay 生命周期见 [`@fulate/vue`](../vue/README.md)。
4
-
5
3
  `@fulate/components` 提供基于 Vue 和 Material Design 3 的 Canvas UI 组件:`FButton`、`FInput`、
6
4
  `FSelect`、`FRadio`、`FCheckbox`、`FSwitch`、`FTooltip`、`FPopover`、`FDialog` 与 `FMessage`。
7
5
  导入包会加载 Yoga 的 `f-div`/`f-span` 注册,以便组件模板使用 Flex 容器。
@@ -1,6 +1,6 @@
1
- import { type PropType } from "@vue/runtime-core";
1
+ import { type PropType } from "vue";
2
2
  import type { ButtonVariant } from "./types";
3
- export declare const FButton: import("@vue/runtime-core").DefineComponent<import("@vue/runtime-core").ExtractPropTypes<{
3
+ export declare const FButton: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
4
  label: {
5
5
  type: StringConstructor;
6
6
  default: string;
@@ -33,7 +33,7 @@ export declare const FButton: import("@vue/runtime-core").DefineComponent<import
33
33
  type: NumberConstructor;
34
34
  default: any;
35
35
  };
36
- }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("click" | "press")[], "click" | "press", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
36
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "press")[], "click" | "press", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
37
37
  label: {
38
38
  type: StringConstructor;
39
39
  default: string;
@@ -78,4 +78,4 @@ export declare const FButton: import("@vue/runtime-core").DefineComponent<import
78
78
  variant: ButtonVariant;
79
79
  color: string;
80
80
  disabled: boolean;
81
- }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
81
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,6 +1,6 @@
1
- import { type PropType } from "@vue/runtime-core";
1
+ import { type PropType } from "vue";
2
2
  import type { ControlSize } from "../../types/control";
3
- export declare const FCheckboxGroup: import("@vue/runtime-core").DefineComponent<import("@vue/runtime-core").ExtractPropTypes<{
3
+ export declare const FCheckboxGroup: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
4
  modelValue: {
5
5
  type: PropType<string[]>;
6
6
  default: () => any[];
@@ -21,7 +21,7 @@ export declare const FCheckboxGroup: import("@vue/runtime-core").DefineComponent
21
21
  type: NumberConstructor;
22
22
  default: any;
23
23
  };
24
- }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
24
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
25
25
  modelValue: {
26
26
  type: PropType<string[]>;
27
27
  default: () => any[];
@@ -51,8 +51,8 @@ export declare const FCheckboxGroup: import("@vue/runtime-core").DefineComponent
51
51
  modelValue: string[];
52
52
  gap: number;
53
53
  direction: "row" | "column";
54
- }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
55
- export declare const FCheckbox: import("@vue/runtime-core").DefineComponent<import("@vue/runtime-core").ExtractPropTypes<{
54
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
55
+ export declare const FCheckbox: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
56
56
  value: {
57
57
  type: StringConstructor;
58
58
  default: string;
@@ -73,7 +73,7 @@ export declare const FCheckbox: import("@vue/runtime-core").DefineComponent<impo
73
73
  type: BooleanConstructor;
74
74
  default: any;
75
75
  };
76
- }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
76
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
77
77
  value: {
78
78
  type: StringConstructor;
79
79
  default: string;
@@ -103,4 +103,4 @@ export declare const FCheckbox: import("@vue/runtime-core").DefineComponent<impo
103
103
  label: string;
104
104
  disabled: boolean;
105
105
  modelValue: boolean;
106
- }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
106
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,4 +1,4 @@
1
- export declare const FDialog: import("@vue/runtime-core").DefineComponent<import("@vue/runtime-core").ExtractPropTypes<{
1
+ export declare const FDialog: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
2
  modelValue: {
3
3
  type: BooleanConstructor;
4
4
  default: boolean;
@@ -23,7 +23,7 @@ export declare const FDialog: import("@vue/runtime-core").DefineComponent<import
23
23
  type: BooleanConstructor;
24
24
  default: boolean;
25
25
  };
26
- }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("close" | "update:modelValue" | "open" | "opened" | "closed")[], "close" | "update:modelValue" | "open" | "opened" | "closed", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
26
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "update:modelValue" | "open" | "opened" | "closed")[], "close" | "update:modelValue" | "open" | "opened" | "closed", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
27
27
  modelValue: {
28
28
  type: BooleanConstructor;
29
29
  default: boolean;
@@ -61,4 +61,4 @@ export declare const FDialog: import("@vue/runtime-core").DefineComponent<import
61
61
  closeOnEscape: boolean;
62
62
  closeOnOverlayClick: boolean;
63
63
  showClose: boolean;
64
- }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
64
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,6 +1,6 @@
1
1
  import type { Shape } from "@fulate/core";
2
2
  export declare function useFieldBorder(disabled: () => boolean, active: () => boolean): {
3
- borderRef: import("@vue/reactivity").ShallowRef<Shape<import("@fulate/core").ShapeProperties, import("@fulate/core").ShapeOption<any>>, Shape<import("@fulate/core").ShapeProperties, import("@fulate/core").ShapeOption<any>>>;
3
+ borderRef: import("vue").ShallowRef<Shape<import("@fulate/core").ShapeProperties, import("@fulate/core").ShapeOption<any>>, Shape<import("@fulate/core").ShapeProperties, import("@fulate/core").ShapeOption<any>>>;
4
4
  handlers: {
5
5
  onMouseenter(): void;
6
6
  onMouseleave(): void;
@@ -1,4 +1,4 @@
1
- import { type PropType, type ShallowRef } from "@vue/runtime-core";
1
+ import { type PropType, type ShallowRef } from "vue";
2
2
  import type { Element } from "@fulate/core";
3
3
  import type { Text } from "@fulate/ui";
4
4
  export interface FieldLabelSlotProps {
@@ -14,7 +14,7 @@ export interface FieldLabelSlotProps {
14
14
  silent: boolean;
15
15
  pickable: boolean;
16
16
  }
17
- export declare const FField: import("@vue/runtime-core").DefineComponent<import("@vue/runtime-core").ExtractPropTypes<{
17
+ export declare const FField: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
18
18
  active: {
19
19
  type: BooleanConstructor;
20
20
  default: boolean;
@@ -75,7 +75,7 @@ export declare const FField: import("@vue/runtime-core").DefineComponent<import(
75
75
  type: PropType<(element: Element | null) => void>;
76
76
  default: any;
77
77
  };
78
- }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, "click"[], "click", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
78
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
79
79
  active: {
80
80
  type: BooleanConstructor;
81
81
  default: boolean;
@@ -146,4 +146,4 @@ export declare const FField: import("@vue/runtime-core").DefineComponent<import(
146
146
  hasLabel: boolean;
147
147
  suffixWidth: number;
148
148
  elementRef: (element: Element | null) => void;
149
- }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
149
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,4 +1,4 @@
1
- export declare const FInput: import("@vue/runtime-core").DefineComponent<import("@vue/runtime-core").ExtractPropTypes<{
1
+ export declare const FInput: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
2
  modelValue: {
3
3
  type: StringConstructor;
4
4
  default: string;
@@ -16,7 +16,7 @@ export declare const FInput: import("@vue/runtime-core").DefineComponent<import(
16
16
  default: boolean;
17
17
  };
18
18
  size: {
19
- type: import("@vue/runtime-core").PropType<import("../..").ControlSize>;
19
+ type: import("vue").PropType<import("../..").ControlSize>;
20
20
  default: import("../..").ControlSize;
21
21
  };
22
22
  width: {
@@ -31,7 +31,7 @@ export declare const FInput: import("@vue/runtime-core").DefineComponent<import(
31
31
  type: NumberConstructor;
32
32
  default: any;
33
33
  };
34
- }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("change" | "input" | "update:modelValue")[], "change" | "input" | "update:modelValue", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
34
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "input" | "update:modelValue")[], "change" | "input" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
35
35
  modelValue: {
36
36
  type: StringConstructor;
37
37
  default: string;
@@ -49,7 +49,7 @@ export declare const FInput: import("@vue/runtime-core").DefineComponent<import(
49
49
  default: boolean;
50
50
  };
51
51
  size: {
52
- type: import("@vue/runtime-core").PropType<import("../..").ControlSize>;
52
+ type: import("vue").PropType<import("../..").ControlSize>;
53
53
  default: import("../..").ControlSize;
54
54
  };
55
55
  width: {
@@ -77,4 +77,4 @@ export declare const FInput: import("@vue/runtime-core").DefineComponent<import(
77
77
  disabled: boolean;
78
78
  placeholder: string;
79
79
  modelValue: string;
80
- }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
80
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,5 +1,5 @@
1
1
  import type { MessageApi } from "./types";
2
- export declare const FMessage: import("@vue/runtime-core").DefineComponent<import("@vue/runtime-core").ExtractPropTypes<{
2
+ export declare const FMessage: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
3
  duration: {
4
4
  type: NumberConstructor;
5
5
  default: number;
@@ -16,9 +16,9 @@ export declare const FMessage: import("@vue/runtime-core").DefineComponent<impor
16
16
  type: NumberConstructor;
17
17
  default: number;
18
18
  };
19
- }>, () => (import("vue/jsx-runtime").JSX.Element | import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
19
+ }>, () => (import("vue/jsx-runtime").JSX.Element | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
20
20
  [key: string]: any;
21
- }>[])[], {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
21
+ }>[])[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
22
22
  duration: {
23
23
  type: NumberConstructor;
24
24
  default: number;
@@ -40,5 +40,5 @@ export declare const FMessage: import("@vue/runtime-core").DefineComponent<impor
40
40
  duration: number;
41
41
  gap: number;
42
42
  offset: number;
43
- }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
43
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
44
44
  export declare function useMessage(): MessageApi;
@@ -1,9 +1,9 @@
1
- import { type PropType } from "@vue/runtime-core";
1
+ import { type PropType } from "vue";
2
2
  import type { Placement } from "@fulate/ui";
3
3
  import type { ElementReference } from "../../types/floating";
4
4
  import type { PopoverTrigger } from "./types";
5
5
  /** A popover surface anchored by its reference slot or an external Element. */
6
- export declare const FPopover: import("@vue/runtime-core").DefineComponent<import("@vue/runtime-core").ExtractPropTypes<{
6
+ export declare const FPopover: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
7
7
  modelValue: {
8
8
  type: BooleanConstructor;
9
9
  default: any;
@@ -48,9 +48,9 @@ export declare const FPopover: import("@vue/runtime-core").DefineComponent<impor
48
48
  type: BooleanConstructor;
49
49
  default: boolean;
50
50
  };
51
- }>, () => import("vue/jsx-runtime").JSX.Element | import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
51
+ }>, () => import("vue/jsx-runtime").JSX.Element | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
52
52
  [key: string]: any;
53
- }>[], {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("update:modelValue" | "update:visible" | "clickOutside")[], "update:modelValue" | "update:visible" | "clickOutside", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
53
+ }>[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:visible" | "clickOutside")[], "update:modelValue" | "update:visible" | "clickOutside", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
54
54
  modelValue: {
55
55
  type: BooleanConstructor;
56
56
  default: any;
@@ -111,4 +111,4 @@ export declare const FPopover: import("@vue/runtime-core").DefineComponent<impor
111
111
  gap: number;
112
112
  content: string;
113
113
  closeOnEscape: boolean;
114
- }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
114
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,6 +1,6 @@
1
- import { type PropType } from "@vue/runtime-core";
1
+ import { type PropType } from "vue";
2
2
  import type { ControlSize } from "../../types/control";
3
- export declare const FRadioGroup: import("@vue/runtime-core").DefineComponent<import("@vue/runtime-core").ExtractPropTypes<{
3
+ export declare const FRadioGroup: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
4
  modelValue: {
5
5
  type: StringConstructor;
6
6
  default: string;
@@ -21,7 +21,7 @@ export declare const FRadioGroup: import("@vue/runtime-core").DefineComponent<im
21
21
  type: NumberConstructor;
22
22
  default: any;
23
23
  };
24
- }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
24
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
25
25
  modelValue: {
26
26
  type: StringConstructor;
27
27
  default: string;
@@ -51,8 +51,8 @@ export declare const FRadioGroup: import("@vue/runtime-core").DefineComponent<im
51
51
  modelValue: string;
52
52
  gap: number;
53
53
  direction: "row" | "column";
54
- }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
55
- export declare const FRadio: import("@vue/runtime-core").DefineComponent<import("@vue/runtime-core").ExtractPropTypes<{
54
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
55
+ export declare const FRadio: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
56
56
  value: {
57
57
  type: StringConstructor;
58
58
  required: true;
@@ -73,7 +73,7 @@ export declare const FRadio: import("@vue/runtime-core").DefineComponent<import(
73
73
  type: BooleanConstructor;
74
74
  default: any;
75
75
  };
76
- }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
76
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
77
77
  value: {
78
78
  type: StringConstructor;
79
79
  required: true;
@@ -102,4 +102,4 @@ export declare const FRadio: import("@vue/runtime-core").DefineComponent<import(
102
102
  label: string;
103
103
  disabled: boolean;
104
104
  modelValue: boolean;
105
- }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
105
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,6 +1,6 @@
1
- import { type PropType } from "@vue/runtime-core";
1
+ import { type PropType } from "vue";
2
2
  import type { SelectOption } from "./types";
3
- export declare const FSelect: import("@vue/runtime-core").DefineComponent<import("@vue/runtime-core").ExtractPropTypes<{
3
+ export declare const FSelect: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
4
  modelValue: {
5
5
  type: StringConstructor;
6
6
  default: string;
@@ -37,7 +37,7 @@ export declare const FSelect: import("@vue/runtime-core").DefineComponent<import
37
37
  type: NumberConstructor;
38
38
  default: any;
39
39
  };
40
- }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("change" | "update:modelValue" | "visibleChange")[], "change" | "update:modelValue" | "visibleChange", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
40
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue" | "visibleChange")[], "change" | "update:modelValue" | "visibleChange", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
41
41
  modelValue: {
42
42
  type: StringConstructor;
43
43
  default: string;
@@ -88,4 +88,4 @@ export declare const FSelect: import("@vue/runtime-core").DefineComponent<import
88
88
  placeholder: string;
89
89
  modelValue: string;
90
90
  options: readonly SelectOption[];
91
- }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
91
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,4 +1,4 @@
1
- export declare const FSwitch: import("@vue/runtime-core").DefineComponent<import("@vue/runtime-core").ExtractPropTypes<{
1
+ export declare const FSwitch: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
2
  modelValue: {
3
3
  type: BooleanConstructor;
4
4
  default: boolean;
@@ -12,14 +12,14 @@ export declare const FSwitch: import("@vue/runtime-core").DefineComponent<import
12
12
  default: string;
13
13
  };
14
14
  size: {
15
- type: import("@vue/runtime-core").PropType<import("../..").ControlSize>;
15
+ type: import("vue").PropType<import("../..").ControlSize>;
16
16
  default: import("../..").ControlSize;
17
17
  };
18
18
  label: {
19
19
  type: StringConstructor;
20
20
  default: string;
21
21
  };
22
- }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
22
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
23
23
  modelValue: {
24
24
  type: BooleanConstructor;
25
25
  default: boolean;
@@ -33,7 +33,7 @@ export declare const FSwitch: import("@vue/runtime-core").DefineComponent<import
33
33
  default: string;
34
34
  };
35
35
  size: {
36
- type: import("@vue/runtime-core").PropType<import("../..").ControlSize>;
36
+ type: import("vue").PropType<import("../..").ControlSize>;
37
37
  default: import("../..").ControlSize;
38
38
  };
39
39
  label: {
@@ -49,4 +49,4 @@ export declare const FSwitch: import("@vue/runtime-core").DefineComponent<import
49
49
  disabled: boolean;
50
50
  modelValue: boolean;
51
51
  activeColor: string;
52
- }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
52
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,8 +1,8 @@
1
- import { type PropType } from "@vue/runtime-core";
1
+ import { type PropType } from "vue";
2
2
  import { type Placement } from "@fulate/ui";
3
3
  import type { ElementReference } from "../../types/floating";
4
4
  /** 由所属 Root 的唯一 completion 路径定位的受控 Canvas tooltip。 */
5
- export declare const FTooltip: import("@vue/runtime-core").DefineComponent<import("@vue/runtime-core").ExtractPropTypes<{
5
+ export declare const FTooltip: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
6
6
  visible: {
7
7
  type: BooleanConstructor;
8
8
  default: boolean;
@@ -23,7 +23,7 @@ export declare const FTooltip: import("@vue/runtime-core").DefineComponent<impor
23
23
  type: NumberConstructor;
24
24
  default: number;
25
25
  };
26
- }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("mouseenter" | "mouseleave" | "update:visible" | "clickOutside")[], "mouseenter" | "mouseleave" | "update:visible" | "clickOutside", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
26
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("mouseenter" | "mouseleave" | "update:visible" | "clickOutside")[], "mouseenter" | "mouseleave" | "update:visible" | "clickOutside", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
27
27
  visible: {
28
28
  type: BooleanConstructor;
29
29
  default: boolean;
@@ -55,4 +55,4 @@ export declare const FTooltip: import("@vue/runtime-core").DefineComponent<impor
55
55
  placement: Placement;
56
56
  triggerRef: ElementReference;
57
57
  gap: number;
58
- }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
58
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,4 +1,4 @@
1
- import { type MaybeRefOrGetter, type Ref } from "@vue/runtime-core";
1
+ import { type MaybeRefOrGetter, type Ref } from "vue";
2
2
  import type { Element, Node } from "@fulate/core";
3
3
  type ElementRef = Readonly<Ref<Element | null | undefined>>;
4
4
  export declare function isDescendantOf(node: Node | null | undefined, ancestor: Node | null | undefined): boolean;
@@ -1,4 +1,4 @@
1
- import { type MaybeRefOrGetter, type Ref } from "@vue/runtime-core";
1
+ import { type MaybeRefOrGetter, type Ref } from "vue";
2
2
  import { Element } from "@fulate/core";
3
3
  import { type ComputePositionOptions } from "@fulate/ui";
4
4
  type ElementRef = Readonly<Ref<Element | null | undefined>>;
package/dist/index.js CHANGED
@@ -1,8 +1,7 @@
1
1
  import { Align, Display, FlexDirection, Justify, Overflow } from "@fulate/yoga";
2
- import { Teleport, cloneVNode, computed, defineComponent, inject, nextTick, onBeforeUnmount, onMounted, onUnmounted, provide, ref, shallowRef, toValue, unref, watch } from "@vue/runtime-core";
2
+ import { Teleport, cloneVNode, computed, createVNode, defineComponent, inject, isVNode, mergeProps, nextTick, onBeforeUnmount, onMounted, onUnmounted, provide, ref, resolveComponent, shallowRef, toValue, unref, watch } from "vue";
3
3
  import { FTransition, FULATE_OVERLAY_KEY, FULATE_ROOT_KEY, VUE_SHAPE_SIZE_KEY } from "@fulate/vue";
4
4
  import { computePosition, flip, measureTextWidth, offset, shift } from "@fulate/ui";
5
- import { createVNode, isVNode, mergeProps, resolveComponent } from "vue";
6
5
  import { isString, isUndefined } from "lodash-es";
7
6
  import { blendColor, colorWithAlpha } from "@fulate/share";
8
7
  import { Element } from "@fulate/core";
@@ -1,4 +1,4 @@
1
- import type { PropType } from "@vue/runtime-core";
1
+ import type { PropType } from "vue";
2
2
  import type { ControlSize } from "../types/control";
3
3
  export type SizeScale<T> = Readonly<Record<ControlSize, Readonly<T>>>;
4
4
  export declare const controlSizeProp: {
@@ -1,5 +1,5 @@
1
1
  import type { RippleOverlay } from "@fulate/ui";
2
2
  export declare function useRippleAnimation(): {
3
- rippleRef: import("@vue/reactivity").ShallowRef<RippleOverlay, RippleOverlay>;
3
+ rippleRef: import("vue").ShallowRef<RippleOverlay, RippleOverlay>;
4
4
  trigger: (x: number, y: number) => void;
5
5
  };
@@ -1,4 +1,4 @@
1
- import { type ShallowRef } from "@vue/runtime-core";
1
+ import { type ShallowRef } from "vue";
2
2
  import type { Shape } from "@fulate/core";
3
3
  import { type InteractionHandlers } from "./interaction";
4
4
  interface StateLayerController {
@@ -1,4 +1,4 @@
1
1
  import type { Element } from "@fulate/core";
2
- import type { Ref } from "@vue/runtime-core";
2
+ import type { Ref } from "vue";
3
3
  /** A canvas element or a ref that resolves to one. */
4
4
  export type ElementReference = Element | Readonly<Ref<Element | null | undefined>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fulate/components",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -25,7 +25,9 @@
25
25
  "@fulate/share": "*",
26
26
  "@fulate/vue": "*",
27
27
  "@fulate/yoga": "*",
28
- "@vue/runtime-core": "^3.5.0",
29
28
  "lodash-es": "^4.17.22"
29
+ },
30
+ "peerDependencies": {
31
+ "vue": "^3.5.0"
30
32
  }
31
33
  }