fluekit 1.5.7 → 1.5.71

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.
@@ -1,21 +1,21 @@
1
- import { MediaQueryData } from './MediaQuery';
2
- type __VLS_Props = {
3
- data: MediaQueryData;
4
- };
5
- declare function __VLS_template(): {
6
- attrs: Partial<{}>;
7
- slots: {
8
- default?(_: {}): any;
1
+ import { InjectionKey } from 'vue';
2
+ import { EdgeInsets } from './EdgeInsets';
3
+ export declare enum Orientation {
4
+ portrait = "portrait",
5
+ landscape = "landscape"
6
+ }
7
+ export interface MediaQueryData {
8
+ size: {
9
+ width: number;
10
+ height: number;
9
11
  };
10
- refs: {};
11
- rootEl: any;
12
- };
13
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
- 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>;
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
- };
12
+ devicePixelRatio: number;
13
+ platformBrightness: "light" | "dark";
14
+ orientation: Orientation;
15
+ disableAnimations: boolean;
16
+ highContrast: boolean;
17
+ padding: EdgeInsets;
18
+ viewInsets: EdgeInsets;
19
+ }
20
+ export declare const MediaQueryKey: InjectionKey<MediaQueryData>;
21
+ export declare function useMediaQuery(): MediaQueryData;
@@ -1,5 +1,4 @@
1
1
  import { Props } from './usePosition';
2
- type __VLS_Props = Omit<Props, "zIndex">;
3
2
  declare function __VLS_template(): {
4
3
  attrs: Partial<{}>;
5
4
  slots: {
@@ -9,7 +8,7 @@ declare function __VLS_template(): {
9
8
  rootEl: any;
10
9
  };
11
10
  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>;
11
+ 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>;
13
12
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
14
13
  export default _default;
15
14
  type __VLS_WithTemplateSlots<T, S> = T & {
package/dist/index.js CHANGED
@@ -1582,7 +1582,8 @@ var Positioned_default = /* @__PURE__ */ defineComponent({
1582
1582
  left: {},
1583
1583
  right: {},
1584
1584
  width: {},
1585
- height: {}
1585
+ height: {},
1586
+ zIndex: {}
1586
1587
  },
1587
1588
  setup(e) {
1588
1589
  let C = e, w = useStackContext();
@@ -15,5 +15,4 @@ export interface Props {
15
15
  /** z-index 层级 */
16
16
  zIndex?: number;
17
17
  }
18
- export declare function positionToStyle(props: Props, position?: "absolute" | "fixed" | "sticky" | "relative"): CSSProperties;
19
18
  export declare function usePositionStyle(props: Props, position?: "absolute" | "fixed" | "sticky" | "relative"): import('vue').ComputedRef<CSSProperties>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fluekit",
3
- "version": "1.5.7",
3
+ "version": "1.5.71",
4
4
  "description": "A Flutter-style Layout UI kit for Vue",
5
5
  "homepage": "https://fi2zz.github.io/fluekit/",
6
6
  "repository": {
@@ -20,10 +20,6 @@
20
20
  "files": [
21
21
  "dist"
22
22
  ],
23
- "scripts": {
24
- "build": "vite build",
25
- "test": "vitest"
26
- },
27
23
  "peerDependencies": {
28
24
  "vue": "^3.5.0"
29
25
  },
@@ -37,5 +33,9 @@
37
33
  "vite-plugin-dts": "^4.5.4",
38
34
  "vitest": "^4.0.16",
39
35
  "vue-tsc": "^3.1.4"
36
+ },
37
+ "scripts": {
38
+ "build": "vite build",
39
+ "test": "vitest"
40
40
  }
41
- }
41
+ }