fluekit 2.0.1 → 2.1.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 (64) hide show
  1. package/README.md +24 -9
  2. package/dist/ActionChip.d.ts +31 -0
  3. package/dist/AlertDialog.d.ts +7 -0
  4. package/dist/AnimatedContainer.d.ts +2 -1
  5. package/dist/AppBar.d.ts +3 -2
  6. package/dist/BackdropFilter.d.ts +23 -0
  7. package/dist/Border.d.ts +3 -2
  8. package/dist/Box.d.ts +2 -1
  9. package/dist/BoxDecoration.d.ts +6 -24
  10. package/dist/BoxFit.d.ts +12 -0
  11. package/dist/BoxShadow.d.ts +2 -1
  12. package/dist/Button.d.ts +6 -5
  13. package/dist/ButtonStyle.d.ts +5 -4
  14. package/dist/Card.d.ts +5 -4
  15. package/dist/Checkbox.d.ts +3 -2
  16. package/dist/Chip.d.ts +36 -0
  17. package/dist/ChoiceChip.d.ts +35 -0
  18. package/dist/CircleAvatar.d.ts +29 -0
  19. package/dist/CircularProgressIndicator.d.ts +1 -1
  20. package/dist/Clip.d.ts +11 -0
  21. package/dist/Color.d.ts +7 -0
  22. package/dist/Colors.d.ts +1 -1
  23. package/dist/Container.d.ts +2 -1
  24. package/dist/CupertinoActivityIndicator.d.ts +1 -1
  25. package/dist/CupertinoColors.d.ts +2 -2
  26. package/dist/CupertinoContextMenu.d.ts +2 -6
  27. package/dist/CupertinoNavigationBar.d.ts +3 -2
  28. package/dist/CupertinoPageScaffold.d.ts +3 -2
  29. package/dist/Divider.d.ts +3 -2
  30. package/dist/Drawer.d.ts +44 -0
  31. package/dist/EdgeInsets.d.ts +1 -0
  32. package/dist/ElevatedButton.d.ts +37 -0
  33. package/dist/FlueConfigProvider.d.ts +26 -0
  34. package/dist/Gradient.d.ts +2 -1
  35. package/dist/Icon.d.ts +2 -1
  36. package/dist/IconButton.d.ts +32 -0
  37. package/dist/Icons.d.ts +6 -0
  38. package/dist/ImageFilter.d.ts +28 -0
  39. package/dist/ImageProvider.d.ts +16 -2
  40. package/dist/InkWell.d.ts +4 -4
  41. package/dist/InputDecoration.d.ts +3 -1
  42. package/dist/LinearProgressIndicator.d.ts +1 -1
  43. package/dist/ListTile.d.ts +6 -5
  44. package/dist/ListView.d.ts +1 -0
  45. package/dist/OutlinedButton.d.ts +37 -0
  46. package/dist/Overlay.d.ts +33 -0
  47. package/dist/PopupMenuButton.d.ts +39 -0
  48. package/dist/Radio.d.ts +3 -2
  49. package/dist/RefreshIndicator.d.ts +32 -0
  50. package/dist/Scaffold.d.ts +21 -8
  51. package/dist/Slider.d.ts +7 -6
  52. package/dist/SlidingSegmentedControl.d.ts +25 -0
  53. package/dist/Switch.d.ts +9 -8
  54. package/dist/TabBar.d.ts +25 -0
  55. package/dist/TabBarView.d.ts +20 -0
  56. package/dist/TextButton.d.ts +37 -0
  57. package/dist/TextField.d.ts +2 -1
  58. package/dist/TextStyle.d.ts +5 -4
  59. package/dist/__tests__/px2vw_mobile.spec.d.ts +1 -0
  60. package/dist/index.css +1 -1
  61. package/dist/index.d.ts +26 -2
  62. package/dist/index.js +4428 -3328
  63. package/dist/px2vw.d.ts +2 -1
  64. package/package.json +1 -1
package/dist/Divider.d.ts CHANGED
@@ -1,14 +1,15 @@
1
+ import { Color } from './Color';
1
2
  interface Props {
2
3
  height?: number;
3
4
  thickness?: number;
4
5
  indent?: number;
5
6
  endIndent?: number;
6
- color?: string;
7
+ color?: string | Color;
7
8
  vertical?: boolean;
8
9
  }
9
10
  declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
11
+ color: string | Color;
10
12
  height: number;
11
- color: string;
12
13
  vertical: boolean;
13
14
  thickness: number;
14
15
  indent: number;
@@ -0,0 +1,44 @@
1
+ import { Color } from './Color';
2
+ interface Props {
3
+ modelValue?: boolean;
4
+ backgroundColor?: string | Color;
5
+ elevation?: number;
6
+ width?: number;
7
+ edge?: "start" | "end";
8
+ overlayColor?: string | Color;
9
+ }
10
+ type __VLS_Props = Props;
11
+ declare const open: import('vue').ModelRef<boolean, string, boolean, boolean>;
12
+ type __VLS_PublicProps = {
13
+ "open"?: typeof open['value'];
14
+ } & __VLS_Props;
15
+ declare function __VLS_template(): {
16
+ attrs: Partial<{}>;
17
+ slots: {
18
+ default?(_: {}): any;
19
+ };
20
+ refs: {};
21
+ rootEl: any;
22
+ };
23
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
24
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
25
+ "update:open": (value: boolean) => any;
26
+ } & {
27
+ close: () => any;
28
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
29
+ onClose?: (() => any) | undefined;
30
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
31
+ }>, {
32
+ width: number;
33
+ backgroundColor: string | Color;
34
+ elevation: number;
35
+ edge: "start" | "end";
36
+ overlayColor: string | Color;
37
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
38
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
39
+ export default _default;
40
+ type __VLS_WithTemplateSlots<T, S> = T & {
41
+ new (): {
42
+ $slots: S;
43
+ };
44
+ };
@@ -30,6 +30,7 @@ export declare namespace EdgeInsets {
30
30
  left?: number | string;
31
31
  }) => EdgeInsets;
32
32
  var zero: EdgeInsets;
33
+ var fromLTRB: (left: number | string, top: number | string, right: number | string, bottom: number | string) => EdgeInsets;
33
34
  }
34
35
  /**
35
36
  * 类型守卫:检查对象是否通过 EdgeInsets 创建
@@ -0,0 +1,37 @@
1
+ import { ButtonStyle } from './ButtonStyle';
2
+ interface Props {
3
+ style?: ButtonStyle;
4
+ disabled?: boolean;
5
+ child?: any;
6
+ }
7
+ declare function __VLS_template(): {
8
+ attrs: Partial<{}>;
9
+ slots: {
10
+ default?(_: {}): any;
11
+ };
12
+ refs: {};
13
+ rootEl: any;
14
+ };
15
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
17
+ "long-press": () => any;
18
+ pressed: () => any;
19
+ "tap-down": (payload: any) => any;
20
+ "tap-up": (payload: any) => any;
21
+ "tap-cancel": (payload: any) => any;
22
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
23
+ "onLong-press"?: (() => any) | undefined;
24
+ onPressed?: (() => any) | undefined;
25
+ "onTap-down"?: ((payload: any) => any) | undefined;
26
+ "onTap-up"?: ((payload: any) => any) | undefined;
27
+ "onTap-cancel"?: ((payload: any) => any) | undefined;
28
+ }>, {
29
+ disabled: boolean;
30
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
31
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
32
+ export default _default;
33
+ type __VLS_WithTemplateSlots<T, S> = T & {
34
+ new (): {
35
+ $slots: S;
36
+ };
37
+ };
@@ -0,0 +1,26 @@
1
+ interface Props {
2
+ transform?: boolean;
3
+ designWidth?: number;
4
+ assetBaseURL?: string;
5
+ }
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ default?(_: {}): any;
10
+ };
11
+ refs: {};
12
+ rootEl: any;
13
+ };
14
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
16
+ transform: boolean;
17
+ designWidth: number;
18
+ assetBaseURL: string;
19
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
20
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
21
+ export default _default;
22
+ type __VLS_WithTemplateSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
@@ -1,4 +1,5 @@
1
1
  import { Alignment } from './Alignment';
2
+ import { Color } from './Color';
2
3
  export declare enum TileMode {
3
4
  clamp = "clamp",
4
5
  repeated = "repeated",
@@ -9,7 +10,7 @@ export interface GradientTransform {
9
10
  transform?: string;
10
11
  }
11
12
  export interface GradientProps {
12
- colors: string[];
13
+ colors: (string | Color)[];
13
14
  stops?: number[];
14
15
  transform?: GradientTransform;
15
16
  tileMode?: TileMode;
package/dist/Icon.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { Component } from 'vue';
2
+ import { Color } from './Color';
2
3
  interface Props {
3
4
  /**
4
5
  * The icon to display. Can be:
@@ -15,7 +16,7 @@ interface Props {
15
16
  * The color to use when drawing the icon.
16
17
  * Defaults to the current text color.
17
18
  */
18
- color?: string;
19
+ color?: string | Color;
19
20
  /**
20
21
  * Semantic label for accessibility.
21
22
  */
@@ -0,0 +1,32 @@
1
+ import { Component } from 'vue';
2
+ import { ButtonStyle } from './ButtonStyle';
3
+ import { Color } from './Color';
4
+ import { EdgeInsets } from './EdgeInsets';
5
+ interface Props {
6
+ icon: string | Component;
7
+ iconSize?: number;
8
+ color?: string | Color;
9
+ disabled?: boolean;
10
+ padding?: EdgeInsets;
11
+ alignment?: any;
12
+ splashRadius?: number;
13
+ style?: ButtonStyle;
14
+ }
15
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
16
+ "long-press": () => any;
17
+ pressed: () => any;
18
+ "tap-down": (payload: any) => any;
19
+ "tap-up": (payload: any) => any;
20
+ "tap-cancel": (payload: any) => any;
21
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
22
+ "onLong-press"?: (() => any) | undefined;
23
+ onPressed?: (() => any) | undefined;
24
+ "onTap-down"?: ((payload: any) => any) | undefined;
25
+ "onTap-up"?: ((payload: any) => any) | undefined;
26
+ "onTap-cancel"?: ((payload: any) => any) | undefined;
27
+ }>, {
28
+ padding: EdgeInsets;
29
+ disabled: boolean;
30
+ iconSize: number;
31
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
32
+ export default _default;
@@ -0,0 +1,6 @@
1
+ export declare const Icons: {
2
+ close: string;
3
+ menu: string;
4
+ moreVert: string;
5
+ cancel: string;
6
+ };
@@ -0,0 +1,28 @@
1
+ export declare class ImageFilter {
2
+ private _value;
3
+ constructor(value: string);
4
+ toString(): string;
5
+ /**
6
+ * A filter that applies a Gaussian blur.
7
+ * CSS `backdrop-filter: blur(radius)` only supports a single radius.
8
+ * We will use `sigmaX` as the radius.
9
+ */
10
+ static blur({ sigmaX, sigmaY }: {
11
+ sigmaX?: number;
12
+ sigmaY?: number;
13
+ }): ImageFilter;
14
+ /**
15
+ * A filter that applies a transformation matrix.
16
+ * Not fully supported in CSS filters directly as `matrix`, usually part of transform.
17
+ * But we can support other standard CSS filters.
18
+ */
19
+ static brightness(amount: number): ImageFilter;
20
+ static contrast(amount: number): ImageFilter;
21
+ static grayscale(amount: number): ImageFilter;
22
+ static hueRotate(degrees: number): ImageFilter;
23
+ static invert(amount: number): ImageFilter;
24
+ static opacity(amount: number): ImageFilter;
25
+ static saturate(amount: number): ImageFilter;
26
+ static sepia(amount: number): ImageFilter;
27
+ }
28
+ export declare function isImageFilter(value: any): value is ImageFilter;
@@ -14,9 +14,14 @@ export declare function MemoryImage(data: string | Blob): ImageProvider;
14
14
  export interface AssetImageOptions {
15
15
  package?: string;
16
16
  bundle?: any;
17
+ /**
18
+ * Overrides the global asset base URL for this image.
19
+ */
20
+ baseUrl?: string;
17
21
  }
18
22
  /**
19
23
  * 设置 AssetImage 的基础路径
24
+ * @internal 此函数主要用于 FlueConfigProvider 内部调用。
20
25
  * @param url 基础路径,例如 'https://cdn.example.com/assets/' 或 '/static/'
21
26
  */
22
27
  export declare function setAssetBaseURL(url: string): void;
@@ -30,8 +35,17 @@ export declare function AssetImage(name: string, options?: AssetImageOptions): I
30
35
  * 创建一个预设 package 的 AssetImage 工厂函数
31
36
  *
32
37
  * @example
33
- * const MyPkgAssets = createAssetImage({ package: 'my_pkg' });
38
+ * const MyPkgAssets = createAssetImageProvider({ package: 'my_pkg' });
34
39
  * const img = MyPkgAssets('icons/logo.png'); // 相当于 AssetImage('icons/logo.png', { package: 'my_pkg' })
35
40
  */
36
- export declare function createAssetImage(baseOptions: AssetImageOptions): (name: string, options?: AssetImageOptions) => ImageProvider;
41
+ export declare function createAssetImageProvider(baseOptions: AssetImageOptions): (name: string, options?: AssetImageOptions) => ImageProvider;
42
+ /**
43
+ * Creates a factory function for NetworkImage with a base URL.
44
+ *
45
+ * @example
46
+ * const MyRemoteImages = createNetworkImageProvider("https://api.example.com/images/");
47
+ * const img = MyRemoteImages("user/avatar.png"); // -> NetworkImage("https://api.example.com/images/user/avatar.png")
48
+ */
49
+ export declare function createNetworkImageProvider(baseUrl: string): (url: string) => ImageProvider;
50
+ export declare function ImageProvider(url: string): ImageProvider;
37
51
  export {};
package/dist/InkWell.d.ts CHANGED
@@ -1,7 +1,7 @@
1
+ import { Color } from './Color';
1
2
  interface Props {
2
- onTap?: () => void;
3
- splashColor?: string;
4
- highlightColor?: string;
3
+ splashColor?: string | Color;
4
+ highlightColor?: string | Color;
5
5
  borderRadius?: string;
6
6
  disabled?: boolean;
7
7
  }
@@ -20,7 +20,7 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
20
20
  onTap?: (() => any) | undefined;
21
21
  }>, {
22
22
  disabled: boolean;
23
- splashColor: string;
23
+ splashColor: string | Color;
24
24
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
25
25
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
26
26
  export default _default;
@@ -1,6 +1,7 @@
1
1
  import { BorderSide } from './Border';
2
2
  import { BorderRadius } from './BorderRadius';
3
3
  import { TextStyle } from './TextStyle';
4
+ import { Color } from './Color';
4
5
  export interface InputBorder {
5
6
  borderSide?: BorderSide;
6
7
  borderRadius?: BorderRadius;
@@ -27,9 +28,10 @@ export interface InputDecoration {
27
28
  errorBorder?: InputBorder;
28
29
  disabledBorder?: InputBorder;
29
30
  filled?: boolean;
30
- fillColor?: string;
31
+ fillColor?: string | Color;
31
32
  contentPadding?: number | number[];
32
33
  labelStyle?: TextStyle;
33
34
  hintStyle?: TextStyle;
35
+ helperStyle?: TextStyle;
34
36
  errorStyle?: TextStyle;
35
37
  }
@@ -25,8 +25,8 @@ interface Props {
25
25
  borderRadius?: number | BorderRadius;
26
26
  }
27
27
  declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
28
- minHeight: number;
29
28
  color: string | Color;
29
+ minHeight: number;
30
30
  value: number | null;
31
31
  backgroundColor: string | Color;
32
32
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
@@ -1,4 +1,5 @@
1
1
  import { EdgeInsets } from './EdgeInsets';
2
+ import { Color } from './Color';
2
3
  interface Props {
3
4
  leading?: any;
4
5
  title?: string;
@@ -6,10 +7,10 @@ interface Props {
6
7
  trailing?: any;
7
8
  enabled?: boolean;
8
9
  selected?: boolean;
9
- tileColor?: string;
10
- selectedColor?: string;
11
- iconColor?: string;
12
- textColor?: string;
10
+ tileColor?: string | Color;
11
+ selectedColor?: string | Color;
12
+ iconColor?: string | Color;
13
+ textColor?: string | Color;
13
14
  contentPadding?: EdgeInsets;
14
15
  dense?: boolean;
15
16
  }
@@ -35,7 +36,7 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
35
36
  dense: boolean;
36
37
  enabled: boolean;
37
38
  selected: boolean;
38
- selectedColor: string;
39
+ selectedColor: string | Color;
39
40
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
40
41
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
41
42
  export default _default;
@@ -8,6 +8,7 @@ interface Props {
8
8
  itemExtent?: number;
9
9
  separator?: boolean;
10
10
  clipBehavior?: "none" | "hardEdge" | "antiAlias";
11
+ onRefresh?: () => Promise<void>;
11
12
  }
12
13
  declare function __VLS_template(): {
13
14
  attrs: Partial<{}>;
@@ -0,0 +1,37 @@
1
+ import { ButtonStyle } from './ButtonStyle';
2
+ interface Props {
3
+ style?: ButtonStyle;
4
+ disabled?: boolean;
5
+ child?: any;
6
+ }
7
+ declare function __VLS_template(): {
8
+ attrs: Partial<{}>;
9
+ slots: {
10
+ default?(_: {}): any;
11
+ };
12
+ refs: {};
13
+ rootEl: any;
14
+ };
15
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
17
+ "long-press": () => any;
18
+ pressed: () => any;
19
+ "tap-down": (payload: any) => any;
20
+ "tap-up": (payload: any) => any;
21
+ "tap-cancel": (payload: any) => any;
22
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
23
+ "onLong-press"?: (() => any) | undefined;
24
+ onPressed?: (() => any) | undefined;
25
+ "onTap-down"?: ((payload: any) => any) | undefined;
26
+ "onTap-up"?: ((payload: any) => any) | undefined;
27
+ "onTap-cancel"?: ((payload: any) => any) | undefined;
28
+ }>, {
29
+ disabled: boolean;
30
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
31
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
32
+ export default _default;
33
+ type __VLS_WithTemplateSlots<T, S> = T & {
34
+ new (): {
35
+ $slots: S;
36
+ };
37
+ };
@@ -0,0 +1,33 @@
1
+ import { Color } from './Color';
2
+ interface Props {
3
+ visible?: boolean;
4
+ color?: string | Color;
5
+ zIndex?: number;
6
+ position?: "absolute" | "fixed" | "sticky";
7
+ }
8
+ declare function __VLS_template(): {
9
+ attrs: Partial<{}>;
10
+ slots: {
11
+ default?(_: {}): any;
12
+ };
13
+ refs: {};
14
+ rootEl: any;
15
+ };
16
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
18
+ tap: () => any;
19
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
20
+ onTap?: (() => any) | undefined;
21
+ }>, {
22
+ color: string | Color;
23
+ position: "absolute" | "fixed" | "sticky";
24
+ visible: boolean;
25
+ zIndex: number;
26
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
27
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
28
+ export default _default;
29
+ type __VLS_WithTemplateSlots<T, S> = T & {
30
+ new (): {
31
+ $slots: S;
32
+ };
33
+ };
@@ -0,0 +1,39 @@
1
+ import { Color } from './Color';
2
+ interface Props {
3
+ icon?: any;
4
+ iconSize?: number;
5
+ iconColor?: string | Color;
6
+ color?: string | Color;
7
+ elevation?: number;
8
+ offset?: {
9
+ x: number;
10
+ y: number;
11
+ };
12
+ }
13
+ declare function __VLS_template(): {
14
+ attrs: Partial<{}>;
15
+ slots: {
16
+ default?(_: {
17
+ close: () => boolean;
18
+ }): any;
19
+ };
20
+ refs: {};
21
+ rootEl: any;
22
+ };
23
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
24
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
25
+ color: string | Color;
26
+ offset: {
27
+ x: number;
28
+ y: number;
29
+ };
30
+ elevation: number;
31
+ iconSize: number;
32
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
33
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
34
+ export default _default;
35
+ type __VLS_WithTemplateSlots<T, S> = T & {
36
+ new (): {
37
+ $slots: S;
38
+ };
39
+ };
package/dist/Radio.d.ts CHANGED
@@ -1,9 +1,10 @@
1
+ import { Color } from './Color';
1
2
  export interface RadioProps<T> {
2
3
  value: T;
3
4
  groupValue?: T;
4
5
  onChanged?: (value: T) => void;
5
- activeColor?: string;
6
- fillColor?: string;
6
+ activeColor?: string | Color;
7
+ fillColor?: string | Color;
7
8
  labelPosition?: "left" | "right";
8
9
  hideIcon?: boolean;
9
10
  }
@@ -0,0 +1,32 @@
1
+ import { Color } from './Color';
2
+ interface Props {
3
+ onRefresh: () => Promise<void>;
4
+ color?: string | Color;
5
+ backgroundColor?: string | Color;
6
+ triggerDistance?: number;
7
+ }
8
+ declare function __VLS_template(): {
9
+ attrs: Partial<{}>;
10
+ slots: {
11
+ default?(_: {}): any;
12
+ };
13
+ refs: {
14
+ containerRef: HTMLDivElement;
15
+ };
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
+ color: string | Color;
21
+ backgroundColor: string | Color;
22
+ triggerDistance: number;
23
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
24
+ containerRef: HTMLDivElement;
25
+ }, 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
+ };
@@ -1,24 +1,37 @@
1
+ import { Color } from './Color';
1
2
  export interface ScaffoldProps {
2
- backgroundColor?: string;
3
+ backgroundColor?: string | Color;
3
4
  }
4
5
  declare function __VLS_template(): {
5
6
  attrs: Partial<{}>;
6
7
  slots: {
8
+ navigationBar?(_: {}): any;
7
9
  appBar?(_: {}): any;
8
10
  default?(_: {}): any;
9
- body?(_: {}): any;
11
+ bottomTabBar?(_: {}): any;
10
12
  bottomNavigationBar?(_: {}): any;
11
- floatingActionButton?(_: {}): any;
12
- drawer?(_: {}): any;
13
- endDrawer?(_: {}): any;
13
+ drawer?(_: {
14
+ open: boolean;
15
+ close: () => boolean;
16
+ }): any;
17
+ 'end-drawer'?(_: {
18
+ open: boolean;
19
+ close: () => boolean;
20
+ }): any;
21
+ };
22
+ refs: {
23
+ headerRef: HTMLDivElement;
24
+ footerRef: HTMLDivElement;
14
25
  };
15
- refs: {};
16
26
  rootEl: any;
17
27
  };
18
28
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
19
29
  declare const __VLS_component: import('vue').DefineComponent<ScaffoldProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ScaffoldProps> & Readonly<{}>, {
20
- backgroundColor: string;
21
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
30
+ backgroundColor: string | Color;
31
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
32
+ headerRef: HTMLDivElement;
33
+ footerRef: HTMLDivElement;
34
+ }, any>;
22
35
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
23
36
  export default _default;
24
37
  type __VLS_WithTemplateSlots<T, S> = T & {
package/dist/Slider.d.ts CHANGED
@@ -1,10 +1,11 @@
1
+ import { Color } from './Color';
1
2
  interface Props {
2
3
  value: number;
3
4
  min?: number;
4
5
  max?: number;
5
- activeColor?: string;
6
- inactiveColor?: string;
7
- thumbColor?: string;
6
+ activeColor?: string | Color;
7
+ inactiveColor?: string | Color;
8
+ thumbColor?: string | Color;
8
9
  variant?: "material" | "ios";
9
10
  }
10
11
  declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
@@ -17,9 +18,9 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
17
18
  min: number;
18
19
  max: number;
19
20
  variant: "material" | "ios";
20
- activeColor: string;
21
- inactiveColor: string;
22
- thumbColor: string;
21
+ activeColor: string | Color;
22
+ inactiveColor: string | Color;
23
+ thumbColor: string | Color;
23
24
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
24
25
  trackRef: HTMLDivElement;
25
26
  }, HTMLDivElement>;
@@ -0,0 +1,25 @@
1
+ import { Color } from './Color';
2
+ import { EdgeInsets } from './EdgeInsets';
3
+ import { TextStyle } from './TextStyle';
4
+ interface Props {
5
+ modelValue: string | number;
6
+ options: Record<string | number, string>;
7
+ disabledKeys?: (string | number)[];
8
+ backgroundColor?: string | Color;
9
+ thumbColor?: string | Color;
10
+ padding?: EdgeInsets;
11
+ height?: number | string;
12
+ labelTextStyleBuilder?: (value: string | number, disabled?: boolean) => TextStyle;
13
+ }
14
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
15
+ "update:modelValue": (value: string | number) => any;
16
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
17
+ "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
18
+ }>, {
19
+ height: number | string;
20
+ padding: EdgeInsets;
21
+ backgroundColor: string | Color;
22
+ thumbColor: string | Color;
23
+ disabledKeys: (string | number)[];
24
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
25
+ export default _default;
package/dist/Switch.d.ts CHANGED
@@ -1,10 +1,11 @@
1
+ import { Color } from './Color';
1
2
  interface Props {
2
3
  value: boolean;
3
4
  onChanged?: (value: boolean) => void;
4
- activeColor?: string;
5
- activeTrackColor?: string;
6
- inactiveThumbColor?: string;
7
- inactiveTrackColor?: string;
5
+ activeColor?: string | Color;
6
+ activeTrackColor?: string | Color;
7
+ inactiveThumbColor?: string | Color;
8
+ inactiveTrackColor?: string | Color;
8
9
  variant?: "material" | "ios";
9
10
  }
10
11
  declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
@@ -15,9 +16,9 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
15
16
  "onUpdate:value"?: ((value: boolean) => any) | undefined;
16
17
  }>, {
17
18
  variant: "material" | "ios";
18
- activeColor: string;
19
- activeTrackColor: string;
20
- inactiveThumbColor: string;
21
- inactiveTrackColor: string;
19
+ activeColor: string | Color;
20
+ activeTrackColor: string | Color;
21
+ inactiveThumbColor: string | Color;
22
+ inactiveTrackColor: string | Color;
22
23
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
23
24
  export default _default;