indicator-ui 1.0.44 → 1.0.46
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/dist/index.cjs +9 -9
- package/dist/index.js +7843 -7734
- package/dist/indicator-ui.css +1 -1
- package/dist/types/src/hooks/elementObservers/index.d.ts +1 -1
- package/dist/types/src/hooks/elementObservers/{useIntersectionObserver.d.ts → useIntersectionObserverOld.d.ts} +1 -1
- package/dist/types/src/hooks/elementsRefsAdapteers/index.d.ts +1 -0
- package/dist/types/src/hooks/elementsRefsAdapteers/useElementRefAdapter.d.ts +3 -0
- package/dist/types/src/hooks/index.d.ts +3 -0
- package/dist/types/src/hooks/scroll/hooks/index.d.ts +3 -0
- package/dist/types/src/hooks/scroll/hooks/useScrollAnchor.d.ts +58 -0
- package/dist/types/src/hooks/scroll/hooks/useScrollHandler.d.ts +18 -0
- package/dist/types/src/hooks/scroll/hooks/useScrollInfo.d.ts +9 -0
- package/dist/types/src/hooks/scroll/index.d.ts +2 -0
- package/dist/types/src/hooks/scroll/types/base.d.ts +4 -0
- package/dist/types/src/hooks/scroll/types/index.d.ts +3 -0
- package/dist/types/src/hooks/scroll/types/scrollAnchor.d.ts +6 -0
- package/dist/types/src/hooks/scroll/types/scrollInfo.d.ts +15 -0
- package/dist/types/src/hooks/scroll/utils/index.d.ts +1 -0
- package/dist/types/src/hooks/simpleElement.d.ts +1 -0
- package/dist/types/src/hooks/ui-animations/index.d.ts +0 -1
- package/dist/types/src/hooks/useDebouncedInvoker.d.ts +1 -0
- package/dist/types/src/hooks/useElementFixedOffset.d.ts +1 -0
- package/dist/types/src/hooks/useFormData.d.ts +1 -0
- package/dist/types/src/hooks/useIsErrorField.d.ts +1 -0
- package/dist/types/src/hooks/useLoading.d.ts +1 -5
- package/dist/types/src/hooks/useResettableTimeout.d.ts +5 -2
- package/dist/types/src/hooks/useSafeCallback.d.ts +1 -0
- package/dist/types/src/hooks/useScroll.d.ts +1 -0
- package/dist/types/src/hooks/useScrollIndicators.d.ts +1 -0
- package/dist/types/src/hooks/useSmartScroll/hooks/useDragScroll.d.ts +3 -3
- package/dist/types/src/hooks/useSmartScroll/hooks/useTouchmove.d.ts +3 -3
- package/dist/types/src/hooks/useSmartScroll/hooks/useWheelEvent.d.ts +3 -3
- package/dist/types/src/hooks/useSyncedStateRef.d.ts +1 -3
- package/dist/types/src/hooks/utils/index.d.ts +6 -0
- package/dist/types/src/hooks/utils/useDebounce.d.ts +37 -0
- package/dist/types/src/hooks/utils/useIntersectionObserver.d.ts +5 -0
- package/dist/types/src/hooks/utils/useLockedCallback.d.ts +26 -0
- package/dist/types/src/hooks/utils/useRefAdapter.d.ts +1 -0
- package/dist/types/src/hooks/utils/useStableCallbackInvoke.d.ts +5 -0
- package/dist/types/src/hooks/utils/useTimeout.d.ts +27 -0
- package/dist/types/src/types/mixins.d.ts +9 -4
- package/dist/types/src/ui/Breadcrumbs/ui/BreadcrumbButton.d.ts +5 -3
- package/dist/types/src/ui/Breadcrumbs/ui/Breadcrumbs.d.ts +4 -3
- package/dist/types/src/ui/Buttons/types/ButtonTypes.d.ts +1 -1
- package/dist/types/src/ui/Collapse/ui/Collapse.d.ts +2 -1
- package/dist/types/src/ui/DropdownV2/ui/DropdownItemV2.d.ts +2 -1
- package/dist/types/src/ui/Tag/ui/FilterTag.d.ts +1 -1
- package/dist/types/src/ui/Tag/ui/TagCount.d.ts +1 -1
- package/dist/types/src/ui/ToggleBase/ui/ToggleBase.d.ts +2 -1
- package/dist/types/src/ui/UserPick/ui/UserPick.d.ts +2 -1
- package/dist/types/src/ui/index.d.ts +1 -0
- package/dist/types/src/ui/visual/ScrollHint/hooks/index.d.ts +1 -0
- package/dist/types/src/ui/visual/ScrollHint/hooks/useContainer.d.ts +7 -0
- package/dist/types/src/ui/visual/ScrollHint/hooks/useHintPosition.d.ts +13 -0
- package/dist/types/src/ui/visual/ScrollHint/hooks/useScrollHint.d.ts +3 -0
- package/dist/types/src/ui/visual/ScrollHint/hooks/useScrollListener.d.ts +7 -0
- package/dist/types/src/ui/visual/ScrollHint/index.d.ts +1 -0
- package/dist/types/src/ui/visual/ScrollHint/styles/components/index.d.ts +1 -0
- package/dist/types/src/ui/visual/ScrollHint/styles/index.d.ts +1 -0
- package/dist/types/src/ui/visual/ScrollHint/types/index.d.ts +8 -0
- package/dist/types/src/ui/visual/ScrollHint/ui/ScrollHint.d.ts +5 -0
- package/dist/types/src/ui/visual/ScrollHint/ui/components/Hint.d.ts +4 -0
- package/dist/types/src/ui/visual/ScrollHint/ui/components/index.d.ts +1 -0
- package/dist/types/src/ui/visual/ScrollHint/ui/index.d.ts +1 -0
- package/dist/types/src/ui/visual/ScrollHint/utils/index.d.ts +1 -0
- package/dist/types/src/ui/visual/Shimmer/hooks/index.d.ts +1 -0
- package/dist/types/src/ui/visual/Shimmer/hooks/useShimmer.d.ts +11 -0
- package/dist/types/src/ui/visual/Shimmer/index.d.ts +1 -0
- package/dist/types/src/ui/visual/Shimmer/styles/index.d.ts +1 -0
- package/dist/types/src/ui/visual/Shimmer/ui/Shimmer.d.ts +5 -0
- package/dist/types/src/ui/visual/Shimmer/ui/ShimmerContent.d.ts +5 -0
- package/dist/types/src/ui/visual/Shimmer/ui/index.d.ts +1 -0
- package/dist/types/src/ui/visual/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/types/src/hooks/ui-animations/useShimmer.d.ts +0 -19
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React, ElementType } from 'react';
|
|
2
|
+
import { AsProps } from '../../../../types';
|
|
3
|
+
export type DefaultElementType = 'div';
|
|
4
|
+
export type InstanceRef<T extends ElementType> = React.ComponentRef<T>;
|
|
5
|
+
export type PropsType<T extends ElementType> = AsProps<T, {
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
className?: string;
|
|
8
|
+
}, InstanceRef<T>>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ElementType } from 'react';
|
|
2
|
+
import { useScrollHint } from '../hooks';
|
|
3
|
+
type PropsType<T extends ElementType> = Parameters<typeof useScrollHint<T>>[number];
|
|
4
|
+
export declare function ScrollHint<T extends ElementType>(props: PropsType<T>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Hint';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ScrollHint';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function assertHTMLElement(instance: any): asserts instance is HTMLElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './useShimmer';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React, ElementType } from 'react';
|
|
2
|
+
import { AsProps } from '../../../../types';
|
|
3
|
+
export type DefaultElementType = 'div';
|
|
4
|
+
type PropsType<T extends ElementType> = AsProps<T, {
|
|
5
|
+
/** Состояние шимера */
|
|
6
|
+
activeShimmer?: boolean;
|
|
7
|
+
}, React.ComponentRef<T>>;
|
|
8
|
+
export declare function useShimmer<T extends ElementType = DefaultElementType>(props: PropsType<T>): {
|
|
9
|
+
resClassName: string;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ui';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ShimmerContentStyle } from './ShimmerContent.module.scss';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ElementType } from 'react';
|
|
2
|
+
import { DefaultElementType, useShimmer } from '../hooks';
|
|
3
|
+
type PropsType<T extends ElementType> = Parameters<typeof useShimmer<T>>[number];
|
|
4
|
+
export declare function Shimmer<T extends ElementType = DefaultElementType>(props: PropsType<T>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Shimmer';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Shimmer';
|
package/package.json
CHANGED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { CSSProperties, RefObject } from 'react';
|
|
2
|
-
type OptionsType = {
|
|
3
|
-
initIsActive?: boolean;
|
|
4
|
-
shimmerClassName?: string;
|
|
5
|
-
shimmerStyle?: CSSProperties;
|
|
6
|
-
};
|
|
7
|
-
type PropsType<T extends HTMLElement = HTMLElement> = [
|
|
8
|
-
ref: RefObject<T | null>,
|
|
9
|
-
options?: OptionsType
|
|
10
|
-
];
|
|
11
|
-
type FunReturnType = {
|
|
12
|
-
isLoading: boolean;
|
|
13
|
-
getIsLoading: () => boolean;
|
|
14
|
-
startLoading: () => void;
|
|
15
|
-
stopLoading: () => void;
|
|
16
|
-
switchLoading: () => void;
|
|
17
|
-
};
|
|
18
|
-
export declare function useShimmer(...args: PropsType): FunReturnType;
|
|
19
|
-
export {};
|