x-ui-design 0.8.81 → 0.8.83
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/esm/types/helpers/index.d.ts +1 -0
- package/dist/esm/types/hooks/usePopupPosition.d.ts +14 -0
- package/dist/esm/types/utils/index.d.ts +1 -0
- package/dist/index.esm.js +184 -186
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +184 -186
- package/dist/index.js.map +1 -1
- package/lib/components/DatePicker/DatePicker.tsx +19 -13
- package/lib/components/DatePicker/RangePicker/RangePicker.tsx +20 -19
- package/lib/components/DatePicker/RangePicker/style.css +1 -1
- package/lib/components/DatePicker/TimePicker/TimePicker.tsx +57 -50
- package/lib/components/DatePicker/TimePicker/style.css +9 -20
- package/lib/components/DatePicker/style.css +4 -1
- package/lib/components/Dropdown/Dropdown.tsx +17 -19
- package/lib/components/Dropdown/style.css +0 -84
- package/lib/components/Popover/Popover.tsx +15 -20
- package/lib/components/Popover/style.css +0 -65
- package/lib/helpers/index.ts +26 -0
- package/lib/hooks/usePopupPosition.ts +142 -0
- package/lib/hooks/usePosition.ts +174 -175
- package/lib/styles/global.css +65 -0
- package/lib/utils/index.ts +2 -0
- package/package.json +1 -1
- package/src/app/layout.tsx +1 -1
- package/src/app/page.tsx +21 -23
- package/src/app/globals.css +0 -45
|
@@ -2,3 +2,4 @@ import { RuleType } from '../types';
|
|
|
2
2
|
export declare const parseValue: (value: RuleType) => RuleType;
|
|
3
3
|
export declare function createArray(length: number): number[];
|
|
4
4
|
export declare function clsx(...args: RuleType[]): string;
|
|
5
|
+
export declare function getScrollParent(el: HTMLElement | null, includeSelf?: boolean): HTMLElement | null;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CSSProperties, Dispatch, RefObject, SetStateAction } from "react";
|
|
2
|
+
import { Placement } from "../types";
|
|
3
|
+
type TPopupPosition = {
|
|
4
|
+
open: boolean;
|
|
5
|
+
setOpen: Dispatch<SetStateAction<boolean>>;
|
|
6
|
+
targetRef: RefObject<HTMLDivElement | null>;
|
|
7
|
+
popupRef: RefObject<HTMLDivElement | null>;
|
|
8
|
+
placement: Placement;
|
|
9
|
+
inBody: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare const usePopupPosition: ({ open, setOpen, inBody, popupRef, targetRef, placement }: TPopupPosition) => {
|
|
12
|
+
popupStyle: CSSProperties;
|
|
13
|
+
};
|
|
14
|
+
export {};
|