@mantine-vue/hooks 1.1.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/cjs/index.cjs +4696 -0
- package/cjs/index.cjs.map +1 -0
- package/esm/index.mjs +4579 -0
- package/esm/index.mjs.map +1 -0
- package/lib/index.d.mts +141 -0
- package/lib/index.d.ts +141 -0
- package/lib/use-click-outside/use-click-outside.d.ts +4 -0
- package/lib/use-clipboard/use-clipboard.d.ts +11 -0
- package/lib/use-collapse/use-collapse.d.ts +38 -0
- package/lib/use-collapse/use-horizontal-collapse.d.ts +4 -0
- package/lib/use-color-scheme/use-color-scheme.d.ts +4 -0
- package/lib/use-counter/use-counter.d.ts +14 -0
- package/lib/use-debounced-callback/use-debounced-callback.d.ts +12 -0
- package/lib/use-debounced-state/use-debounced-state.d.ts +6 -0
- package/lib/use-debounced-value/use-debounced-value.d.ts +14 -0
- package/lib/use-did-update/use-did-update.d.ts +2 -0
- package/lib/use-disclosure/use-disclosure.d.ts +13 -0
- package/lib/use-document-title/use-document-title.d.ts +2 -0
- package/lib/use-document-visibility/use-document-visibility.d.ts +2 -0
- package/lib/use-drag/use-drag.d.ts +56 -0
- package/lib/use-event-listener/use-event-listener.d.ts +2 -0
- package/lib/use-eye-dropper/use-eye-dropper.d.ts +12 -0
- package/lib/use-favicon/use-favicon.d.ts +2 -0
- package/lib/use-fetch/use-fetch.d.ts +12 -0
- package/lib/use-file-dialog/use-file-dialog.d.ts +25 -0
- package/lib/use-floating-window/use-floating-window.d.ts +30 -0
- package/lib/use-focus-return/use-focus-return.d.ts +6 -0
- package/lib/use-focus-trap/scope-tab.d.ts +1 -0
- package/lib/use-focus-trap/tabbable.d.ts +4 -0
- package/lib/use-focus-trap/use-focus-trap.d.ts +5 -0
- package/lib/use-focus-within/use-focus-within.d.ts +10 -0
- package/lib/use-force-update/use-force-update.d.ts +2 -0
- package/lib/use-fullscreen/use-fullscreen.d.ts +12 -0
- package/lib/use-hash/use-hash.d.ts +6 -0
- package/lib/use-headroom/use-headroom.d.ts +27 -0
- package/lib/use-hotkeys/parse-hotkey.d.ts +20 -0
- package/lib/use-hotkeys/use-hotkeys.d.ts +15 -0
- package/lib/use-hover/use-hover.d.ts +6 -0
- package/lib/use-id/use-id.d.ts +2 -0
- package/lib/use-idle/use-idle.d.ts +6 -0
- package/lib/use-in-viewport/use-in-viewport.d.ts +6 -0
- package/lib/use-input-state/use-input-state.d.ts +6 -0
- package/lib/use-intersection/use-intersection.d.ts +6 -0
- package/lib/use-interval/use-interval.d.ts +16 -0
- package/lib/use-is-first-render/use-is-first-render.d.ts +2 -0
- package/lib/use-isomorphic-effect/use-isomorphic-effect.d.ts +1 -0
- package/lib/use-list-state/use-list-state.d.ts +25 -0
- package/lib/use-local-storage/create-storage.d.ts +23 -0
- package/lib/use-local-storage/use-local-storage.d.ts +3 -0
- package/lib/use-logger/use-logger.d.ts +2 -0
- package/lib/use-long-press/use-long-press.d.ts +20 -0
- package/lib/use-map/use-map.d.ts +1 -0
- package/lib/use-mask/use-mask.d.ts +57 -0
- package/lib/use-media-query/use-media-query.d.ts +5 -0
- package/lib/use-merged-ref/use-merged-ref.d.ts +6 -0
- package/lib/use-mounted/use-mounted.d.ts +2 -0
- package/lib/use-mouse/use-mouse.d.ts +15 -0
- package/lib/use-move/use-move.d.ts +17 -0
- package/lib/use-mutation-observer/use-mutation-observer.d.ts +3 -0
- package/lib/use-network/use-network.d.ts +11 -0
- package/lib/use-orientation/use-orientation.d.ts +23 -0
- package/lib/use-os/use-os.d.ts +6 -0
- package/lib/use-page-leave/use-page-leave.d.ts +2 -0
- package/lib/use-pagination/use-pagination.d.ts +20 -0
- package/lib/use-previous/use-previous.d.ts +2 -0
- package/lib/use-queue/use-queue.d.ts +20 -0
- package/lib/use-radial-move/use-radial-move.d.ts +13 -0
- package/lib/use-reduced-motion/use-reduced-motion.d.ts +3 -0
- package/lib/use-resize-observer/use-resize-observer.d.ts +13 -0
- package/lib/use-roving-index/use-roving-index.d.ts +45 -0
- package/lib/use-scroll-direction/use-scroll-direction.d.ts +3 -0
- package/lib/use-scroll-into-view/use-scroll-into-view.d.ts +32 -0
- package/lib/use-scroll-spy/use-scroll-spy.d.ts +30 -0
- package/lib/use-scroller/use-scroller.d.ts +25 -0
- package/lib/use-selection/use-selection.d.ts +27 -0
- package/lib/use-session-storage/use-session-storage.d.ts +3 -0
- package/lib/use-set/use-set.d.ts +9 -0
- package/lib/use-set-state/use-set-state.d.ts +4 -0
- package/lib/use-shallow-effect/use-shallow-effect.d.ts +2 -0
- package/lib/use-splitter/use-splitter.d.ts +94 -0
- package/lib/use-state-history/use-state-history.d.ts +17 -0
- package/lib/use-text-selection/use-text-selection.d.ts +2 -0
- package/lib/use-throttled-callback/use-throttled-callback.d.ts +2 -0
- package/lib/use-throttled-state/use-throttled-state.d.ts +3 -0
- package/lib/use-throttled-value/use-throttled-value.d.ts +2 -0
- package/lib/use-timeout/use-timeout.d.ts +8 -0
- package/lib/use-toggle/use-toggle.d.ts +4 -0
- package/lib/use-uncontrolled/use-uncontrolled.d.ts +13 -0
- package/lib/use-validated-state/use-validated-state.d.ts +16 -0
- package/lib/use-viewport-size/use-viewport-size.d.ts +6 -0
- package/lib/use-window-event/use-window-event.d.ts +2 -0
- package/lib/use-window-scroll/use-window-scroll.d.ts +8 -0
- package/lib/utils/clamp/clamp.d.ts +1 -0
- package/lib/utils/index.d.ts +7 -0
- package/lib/utils/lower-first/lower-first.d.ts +1 -0
- package/lib/utils/random-id/random-id.d.ts +1 -0
- package/lib/utils/range/range.d.ts +1 -0
- package/lib/utils/shallow-equal/shallow-equal.d.ts +1 -0
- package/lib/utils/upper-first/upper-first.d.ts +1 -0
- package/lib/utils/use-callback-ref/use-callback-ref.d.ts +2 -0
- package/package.json +37 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type ComponentPublicInstance, type Ref } from 'vue';
|
|
2
|
+
export interface UseScrollerOptions {
|
|
3
|
+
scrollAmount?: number;
|
|
4
|
+
draggable?: boolean;
|
|
5
|
+
onScrollStateChange?: (state: UseScrollerScrollState) => void;
|
|
6
|
+
}
|
|
7
|
+
export interface UseScrollerScrollState {
|
|
8
|
+
canScrollStart: boolean;
|
|
9
|
+
canScrollEnd: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface UseScrollerReturnValue {
|
|
12
|
+
ref: (node: Element | ComponentPublicInstance | null) => void;
|
|
13
|
+
canScrollStart: Ref<boolean>;
|
|
14
|
+
canScrollEnd: Ref<boolean>;
|
|
15
|
+
scrollStart: () => void;
|
|
16
|
+
scrollEnd: () => void;
|
|
17
|
+
isDragging: Ref<boolean>;
|
|
18
|
+
dragHandlers: {
|
|
19
|
+
onMousedown: (event: MouseEvent) => void;
|
|
20
|
+
onMousemove: (event: MouseEvent) => void;
|
|
21
|
+
onMouseup: () => void;
|
|
22
|
+
onMouseleave: () => void;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
export declare function useScroller<T extends HTMLElement = HTMLDivElement>({ scrollAmount, draggable, onScrollStateChange, }?: UseScrollerOptions): UseScrollerReturnValue;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type MaybeRefOrGetter, type Ref } from 'vue';
|
|
2
|
+
export interface UseSelectionInput<T> {
|
|
3
|
+
/** The array of items to select from */
|
|
4
|
+
data: MaybeRefOrGetter<T[]>;
|
|
5
|
+
/** The initial selection, empty array by default */
|
|
6
|
+
defaultSelection?: T[];
|
|
7
|
+
/** If true, selection is reset when data changes */
|
|
8
|
+
resetSelectionOnDataChange?: MaybeRefOrGetter<boolean | undefined>;
|
|
9
|
+
}
|
|
10
|
+
export interface UseSelectionHandlers<T> {
|
|
11
|
+
/** Add an item to the selection */
|
|
12
|
+
select: (selected: T) => void;
|
|
13
|
+
/** Remove an item from the selection */
|
|
14
|
+
deselect: (deselected: T) => void;
|
|
15
|
+
/** Toggle an item's selection state */
|
|
16
|
+
toggle: (toggled: T) => void;
|
|
17
|
+
/** Returns true if all items from the `data` are selected */
|
|
18
|
+
isAllSelected: () => boolean;
|
|
19
|
+
/** Returns true if at least one item from the `data` is selected */
|
|
20
|
+
isSomeSelected: () => boolean;
|
|
21
|
+
/** Set the selection to a specific array of items */
|
|
22
|
+
setSelection: (selection: T[]) => void;
|
|
23
|
+
/** Clear all selections */
|
|
24
|
+
resetSelection: () => void;
|
|
25
|
+
}
|
|
26
|
+
export type UseSelectionReturnValue<T> = readonly [Ref<T[]>, UseSelectionHandlers<T>];
|
|
27
|
+
export declare function useSelection<T>(input: UseSelectionInput<T>): UseSelectionReturnValue<T>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { type UseStorageOptions, type UseStorageReturnValue } from '../use-local-storage/create-storage';
|
|
2
|
+
export declare function readSessionStorageValue<T>(options: UseStorageOptions<T>): T;
|
|
3
|
+
export declare function useSessionStorage<T>(options: UseStorageOptions<T>): UseStorageReturnValue<T>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** Local re-declaration of the ES2024 `ReadonlySetLike` lib type so this file
|
|
2
|
+
* does not depend on the project `lib` compiler option including `esnext`. */
|
|
3
|
+
export interface ReadonlySetLike<T> {
|
|
4
|
+
readonly size: number;
|
|
5
|
+
has(value: T): boolean;
|
|
6
|
+
keys(): IterableIterator<T>;
|
|
7
|
+
}
|
|
8
|
+
export declare function readonlySetLikeToSet<T>(input: ReadonlySetLike<T>): Set<T>;
|
|
9
|
+
export declare function useSet<T>(values?: T[]): Set<T>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type Ref } from 'vue';
|
|
2
|
+
export type UseSetStateCallback<T> = (state: Partial<T> | ((currentState: T) => Partial<T>)) => void;
|
|
3
|
+
export type UseSetStateReturnValue<T> = [Ref<T>, UseSetStateCallback<T>];
|
|
4
|
+
export declare function useSetState<T extends Record<string, any>>(initialState: T): UseSetStateReturnValue<T>;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { type ComponentPublicInstance, type MaybeRefOrGetter, type Ref } from 'vue';
|
|
2
|
+
export interface UseSplitterPanel {
|
|
3
|
+
/** Initial size as percentage (0-100). All panels must sum to 100. */
|
|
4
|
+
defaultSize: number;
|
|
5
|
+
/** Minimum size percentage, `0` by default */
|
|
6
|
+
min?: number;
|
|
7
|
+
/** Maximum size percentage, `100` by default */
|
|
8
|
+
max?: number;
|
|
9
|
+
/** Whether this panel can be collapsed, `false` by default */
|
|
10
|
+
collapsible?: boolean;
|
|
11
|
+
/** Size below which the panel snaps to collapsed (percentage), defaults to `min` */
|
|
12
|
+
collapseThreshold?: number;
|
|
13
|
+
}
|
|
14
|
+
export interface UseSplitterRedistributeInput {
|
|
15
|
+
/** Current sizes before applying delta */
|
|
16
|
+
sizes: number[];
|
|
17
|
+
/** Panel configurations */
|
|
18
|
+
panels: UseSplitterPanel[];
|
|
19
|
+
/** Index of the handle being dragged */
|
|
20
|
+
handleIndex: number;
|
|
21
|
+
/** Requested size change in percentage (positive = grow before-panel) */
|
|
22
|
+
delta: number;
|
|
23
|
+
}
|
|
24
|
+
export type UseSplitterRedistributeFn = (input: UseSplitterRedistributeInput) => number[];
|
|
25
|
+
export interface UseSplitterOptions {
|
|
26
|
+
/** Panel configuration array (minimum 2 panels) */
|
|
27
|
+
panels: UseSplitterPanel[];
|
|
28
|
+
/** Layout direction, `'horizontal'` by default */
|
|
29
|
+
orientation?: 'horizontal' | 'vertical';
|
|
30
|
+
/** Controlled sizes (percentages summing to 100) */
|
|
31
|
+
sizes?: MaybeRefOrGetter<number[] | undefined>;
|
|
32
|
+
/** Called during resize with updated sizes */
|
|
33
|
+
onSizeChange?: (sizes: number[]) => void;
|
|
34
|
+
/** Called when drag starts */
|
|
35
|
+
onResizeStart?: (handleIndex: number) => void;
|
|
36
|
+
/** Called when drag ends */
|
|
37
|
+
onResizeEnd?: (handleIndex: number, sizes: number[]) => void;
|
|
38
|
+
/** Called when a panel collapses or expands */
|
|
39
|
+
onCollapseChange?: (panelIndex: number, collapsed: boolean) => void;
|
|
40
|
+
/** How to borrow space from non-adjacent panels when the immediate neighbor is at its min/max.
|
|
41
|
+
* `'nearest'` takes from the nearest panel in the drag direction first.
|
|
42
|
+
* `'equal'` distributes equally among all panels in the drag direction.
|
|
43
|
+
* A function receives sizes, panels, handleIndex and delta, and returns new sizes.
|
|
44
|
+
* When not set, only the two adjacent panels are affected. */
|
|
45
|
+
redistribute?: 'nearest' | 'equal' | UseSplitterRedistributeFn;
|
|
46
|
+
/** Keyboard step size in percentage, `1` by default */
|
|
47
|
+
step?: number;
|
|
48
|
+
/** Shift+arrow step size in percentage, `10` by default */
|
|
49
|
+
shiftStep?: number;
|
|
50
|
+
/** Text direction for keyboard nav, `'ltr'` by default */
|
|
51
|
+
dir?: 'ltr' | 'rtl';
|
|
52
|
+
/** Restore the two panels adjacent to a handle to their default ratio (preserving their combined size) when the handle is double-clicked, `true` by default */
|
|
53
|
+
resetOnDoubleClick?: boolean;
|
|
54
|
+
/** Enable/disable the hook, `true` by default */
|
|
55
|
+
enabled?: boolean;
|
|
56
|
+
}
|
|
57
|
+
export interface UseSplitterReturnValue {
|
|
58
|
+
/** Ref callback for the container element */
|
|
59
|
+
ref: (node: Element | ComponentPublicInstance | null) => void;
|
|
60
|
+
/** Current panel sizes as percentages */
|
|
61
|
+
sizes: Ref<number[]>;
|
|
62
|
+
/** Which panels are currently collapsed */
|
|
63
|
+
collapsed: Ref<boolean[]>;
|
|
64
|
+
/** Index of handle being dragged, or -1 */
|
|
65
|
+
activeHandle: Ref<number>;
|
|
66
|
+
/** Get props to spread on each resize handle */
|
|
67
|
+
getHandleProps: (input: {
|
|
68
|
+
index: number;
|
|
69
|
+
}) => {
|
|
70
|
+
ref: (node: Element | ComponentPublicInstance | null) => void;
|
|
71
|
+
role: 'separator';
|
|
72
|
+
'aria-orientation': 'horizontal' | 'vertical';
|
|
73
|
+
'aria-valuenow': number;
|
|
74
|
+
'aria-valuemin': number;
|
|
75
|
+
'aria-valuemax': number;
|
|
76
|
+
tabIndex: number;
|
|
77
|
+
onKeyDown: (event: KeyboardEvent) => void;
|
|
78
|
+
onDoubleClick: (event: MouseEvent) => void;
|
|
79
|
+
'data-active': boolean | undefined;
|
|
80
|
+
'data-orientation': 'horizontal' | 'vertical';
|
|
81
|
+
};
|
|
82
|
+
/** Programmatically set sizes */
|
|
83
|
+
setSizes: (sizes: number[]) => void;
|
|
84
|
+
/** Collapse a panel */
|
|
85
|
+
collapse: (panelIndex: number) => void;
|
|
86
|
+
/** Expand a collapsed panel */
|
|
87
|
+
expand: (panelIndex: number) => void;
|
|
88
|
+
/** Toggle collapse of a panel */
|
|
89
|
+
toggleCollapse: (panelIndex: number) => void;
|
|
90
|
+
/** Reset the two panels adjacent to a handle to their default ratio, preserving
|
|
91
|
+
* their combined size */
|
|
92
|
+
reset: (handleIndex: number) => void;
|
|
93
|
+
}
|
|
94
|
+
export declare function useSplitter<T extends HTMLElement = any>(options: UseSplitterOptions): UseSplitterReturnValue;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type Ref } from 'vue';
|
|
2
|
+
export interface UseStateHistoryHandlers<T> {
|
|
3
|
+
set: (value: T) => void;
|
|
4
|
+
back: (steps?: number) => void;
|
|
5
|
+
forward: (steps?: number) => void;
|
|
6
|
+
reset: () => void;
|
|
7
|
+
}
|
|
8
|
+
export interface UseStateHistoryValue<T> {
|
|
9
|
+
history: T[];
|
|
10
|
+
current: number;
|
|
11
|
+
}
|
|
12
|
+
export type UseStateHistoryReturnValue<T> = [
|
|
13
|
+
Readonly<Ref<T>>,
|
|
14
|
+
UseStateHistoryHandlers<T>,
|
|
15
|
+
Readonly<Ref<UseStateHistoryValue<T>>>
|
|
16
|
+
];
|
|
17
|
+
export declare function useStateHistory<T>(initialValue: T): UseStateHistoryReturnValue<T>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare function useThrottledCallbackWithClearTimeout<T extends (...args: any[]) => any>(callback: T, wait: number): [(...args: Parameters<T>) => void, () => void];
|
|
2
|
+
export declare function useThrottledCallback<T extends (...args: any[]) => any>(callback: T, wait: number): (...args: Parameters<T>) => void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface UseTimeoutOptions {
|
|
2
|
+
autoInvoke?: boolean;
|
|
3
|
+
}
|
|
4
|
+
export interface UseTimeoutReturnValue {
|
|
5
|
+
start: (...callbackParams: unknown[]) => void;
|
|
6
|
+
clear: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function useTimeout(callback: (...callbackParams: unknown[]) => void, delay: number, options?: UseTimeoutOptions): UseTimeoutReturnValue;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type Ref } from 'vue';
|
|
2
|
+
export type UseToggleAction<T> = (value?: T | ((value: T) => T)) => void;
|
|
3
|
+
export type UseToggleReturnValue<T> = [Ref<T>, UseToggleAction<T>];
|
|
4
|
+
export declare function useToggle<T = boolean>(options?: readonly T[]): UseToggleReturnValue<T>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type MaybeRefOrGetter, type Ref } from 'vue';
|
|
2
|
+
export interface UseUncontrolledOptions<T> {
|
|
3
|
+
value?: MaybeRefOrGetter<T | undefined>;
|
|
4
|
+
defaultValue?: T;
|
|
5
|
+
finalValue?: T;
|
|
6
|
+
onChange?: (value: T, ...payload: any[]) => void;
|
|
7
|
+
}
|
|
8
|
+
export type UseUncontrolledReturnValue<T> = [
|
|
9
|
+
Ref<T>,
|
|
10
|
+
(value: T, ...payload: any[]) => void,
|
|
11
|
+
Ref<boolean>
|
|
12
|
+
];
|
|
13
|
+
export declare function useUncontrolled<T>({ value, defaultValue, finalValue, onChange, }: UseUncontrolledOptions<T>): UseUncontrolledReturnValue<T>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type Ref } from 'vue';
|
|
2
|
+
export interface UseValidatedStateValue<T> {
|
|
3
|
+
/** Current value */
|
|
4
|
+
value: T;
|
|
5
|
+
/** Last valid value */
|
|
6
|
+
lastValidValue: T | undefined;
|
|
7
|
+
/** True if the current value is valid, false otherwise */
|
|
8
|
+
valid: boolean;
|
|
9
|
+
}
|
|
10
|
+
export type UseValidatedStateReturnValue<T> = [
|
|
11
|
+
/** Current value */
|
|
12
|
+
Readonly<Ref<UseValidatedStateValue<T>>>,
|
|
13
|
+
/** Handler to update the state, passes `value` and `payload` to `onChange` */
|
|
14
|
+
(value: T) => void
|
|
15
|
+
];
|
|
16
|
+
export declare function useValidatedState<T>(initialValue: T, validate: (value: T) => boolean, initialValidationState?: boolean): UseValidatedStateReturnValue<T>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type Ref } from 'vue';
|
|
2
|
+
export interface UseWindowScrollPosition {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
}
|
|
6
|
+
export type UseWindowScrollTo = (position: Partial<UseWindowScrollPosition>) => void;
|
|
7
|
+
export type UseWindowScrollReturnValue = [Ref<UseWindowScrollPosition>, UseWindowScrollTo];
|
|
8
|
+
export declare function useWindowScroll(): UseWindowScrollReturnValue;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function clamp(value: number, min: number | undefined, max: number | undefined): number;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { clamp } from './clamp/clamp';
|
|
2
|
+
export { lowerFirst } from './lower-first/lower-first';
|
|
3
|
+
export { randomId } from './random-id/random-id';
|
|
4
|
+
export { range } from './range/range';
|
|
5
|
+
export { shallowEqual } from './shallow-equal/shallow-equal';
|
|
6
|
+
export { upperFirst } from './upper-first/upper-first';
|
|
7
|
+
export { useCallbackRef } from './use-callback-ref/use-callback-ref';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function lowerFirst(value: string): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function randomId(prefix?: string): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function range(start: number, end: number): number[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function shallowEqual(a: any, b: any): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function upperFirst(value: string): string;
|
package/package.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@mantine-vue/hooks",
|
|
3
|
+
"version": "1.1.2",
|
|
4
|
+
"description": "Vue composables equivalent to @mantine/hooks",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"files": [
|
|
7
|
+
"cjs",
|
|
8
|
+
"esm",
|
|
9
|
+
"lib",
|
|
10
|
+
"styles.css",
|
|
11
|
+
"styles.layer.css",
|
|
12
|
+
"styles"
|
|
13
|
+
],
|
|
14
|
+
"sideEffects": false,
|
|
15
|
+
"main": "./cjs/index.cjs",
|
|
16
|
+
"module": "./esm/index.mjs",
|
|
17
|
+
"types": "./lib/index.d.ts",
|
|
18
|
+
"exports": {
|
|
19
|
+
".": {
|
|
20
|
+
"import": {
|
|
21
|
+
"types": "./lib/index.d.mts",
|
|
22
|
+
"default": "./esm/index.mjs"
|
|
23
|
+
},
|
|
24
|
+
"require": {
|
|
25
|
+
"types": "./lib/index.d.ts",
|
|
26
|
+
"default": "./cjs/index.cjs"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@vue/test-utils": "2.4.6",
|
|
32
|
+
"vue": "^3.5.0"
|
|
33
|
+
},
|
|
34
|
+
"peerDependencies": {
|
|
35
|
+
"vue": "^3.5.0"
|
|
36
|
+
}
|
|
37
|
+
}
|