@selfdecode/sd-component-library 3.0.22 → 3.0.25
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/lib/components/containers/index.d.ts +1 -0
- package/lib/components/containers/max-width-container-v2/max-width-container-v2.d.ts +2 -1
- package/lib/components/containers/underlined-max-width-container/index.d.ts +1 -0
- package/lib/components/containers/underlined-max-width-container/underlined-max-width-container.d.ts +3 -0
- package/lib/components/modals/modal/interfaces.d.ts +2 -0
- package/lib/components/modals/primary-modal/interfaces.d.ts +1 -1
- package/lib/components/pagination-bars/pagination-bar-mobile/interfaces.d.ts +1 -1
- package/lib/core/custom-hooks.d.ts +1 -1
- package/lib/core/functions.d.ts +7 -0
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/lib/components/containers/max-width-container-v2/interfaces.d.ts +0 -2
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
2
|
+
import { MaxWidthContainerProps as Props } from "../max-width-container";
|
|
3
|
+
export declare const MaxWidthContainerV2: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { UnderlinedMaxWidthContainer } from "./underlined-max-width-container";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GridProps } from "../../containers";
|
|
2
2
|
import { PaginationBarProps } from "../pagination-bar";
|
|
3
|
-
export declare type PaginationBarMobileProps = GridProps & Omit<PaginationBarProps, "onChange" | "bgSx" | "innerSx"> & {
|
|
3
|
+
export declare type PaginationBarMobileProps = Omit<GridProps, "onChange"> & Omit<PaginationBarProps, "onChange" | "bgSx" | "innerSx"> & {
|
|
4
4
|
onChange: (newValue: number) => void;
|
|
5
5
|
};
|
|
@@ -81,4 +81,4 @@ export declare function useBoundingClientRect<T extends Element = HTMLElement>(s
|
|
|
81
81
|
ref: RefObject<T>;
|
|
82
82
|
rect: DOMRect | undefined;
|
|
83
83
|
};
|
|
84
|
-
export declare const useBodyScrollLock: (target:
|
|
84
|
+
export declare const useBodyScrollLock: <T extends HTMLElement = HTMLElement>(target: T | null, shouldEnable?: boolean) => void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const isIOS: () => boolean;
|
|
2
|
+
export declare const isTouchScreen: () => boolean;
|
|
3
|
+
export declare const getResponsiveClick: (callback: () => void) => {
|
|
4
|
+
shouldUseTouch: boolean;
|
|
5
|
+
onClick: (() => void) | undefined;
|
|
6
|
+
onTouchStart: (() => void) | undefined;
|
|
7
|
+
};
|