@tresjs/leches 1.1.4 → 1.2.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/README.md CHANGED
@@ -1,6 +1,17 @@
1
+ <p align="center">
2
+ <a href="https://npmx.dev/package/@tresjs/leches"><img src="https://npmx.dev/api/registry/badge/version/@tresjs/leches" alt="version"></a>
3
+ <a href="https://www.npmjs.com/package/@tresjs/leches"><img src="https://img.shields.io/npm/dm/@tresjs/leches?color=FBB03B" alt="npm downloads"></a>
4
+ <a href="https://tresjs.org/discord"><img src="https://img.shields.io/badge/chat-discord-purple?style=flat&logo=discord" alt="discord chat"></a>
5
+ </p>
6
+ <br/>
7
+
1
8
  # TresLeches 🍰
2
9
 
3
10
  > Tasty GUI controls for Vue controls
4
11
 
5
12
  - Tasty design 🤤
6
13
  - Smart field recognition 🧠
14
+
15
+ ## Docs
16
+
17
+ Checkout the [npm page](https://www.npmjs.com/package/@tresjs/leches)
@@ -21,7 +21,7 @@ declare function __VLS_template(): {
21
21
  };
22
22
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
23
23
  declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
24
- [x: string]: LechesControlUnion;
24
+ controls: import('vue').ComputedRef<Record<string, LechesControlUnion>>;
25
25
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
26
26
  uuid: string;
27
27
  collapsed: boolean;
@@ -0,0 +1,13 @@
1
+ import { MaybeRef, Ref } from 'vue';
2
+ export interface UseNumberDragOptions {
3
+ getValue: () => number;
4
+ step: MaybeRef<number>;
5
+ min?: MaybeRef<number | undefined>;
6
+ max?: MaybeRef<number | undefined>;
7
+ onUpdate: (value: number) => void;
8
+ formatDelta?: (value: number) => string;
9
+ }
10
+ export declare function useNumberDrag(options: UseNumberDragOptions): {
11
+ onMouseDown: (event: MouseEvent) => void;
12
+ isDragging: Ref<boolean>;
13
+ };